Skip to content

Commit

Permalink
feat(api): update via SDK Studio (#45)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] committed Jan 14, 2025
1 parent 3c88900 commit 214aa99
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
configured_endpoints: 5
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/prelude%2Fprelude-f4068a5a3ee027f16de68f9f411e9f52a83354e76ad8291ec02c4b7a1b53ccd3.yml
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/prelude%2Fprelude-76adb3ec741cc2142bfab5258e5a81c5dddf75376e28b20d794bfc22cd66dd85.yml
8 changes: 8 additions & 0 deletions src/prelude_python_sdk/resources/verification.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ def create(
self,
*,
target: verification_create_params.Target,
dispatch_id: str | NotGiven = NOT_GIVEN,
metadata: verification_create_params.Metadata | NotGiven = NOT_GIVEN,
options: verification_create_params.Options | NotGiven = NOT_GIVEN,
signals: verification_create_params.Signals | NotGiven = NOT_GIVEN,
Expand All @@ -68,6 +69,8 @@ def create(
Args:
target: The target. Currently this can only be an E.164 formatted phone number.
dispatch_id: The identifier of the dispatch that came from the front-end SDK.
metadata: The metadata for this verification. This object will be returned with every
response or webhook sent that refers to this verification.
Expand All @@ -88,6 +91,7 @@ def create(
body=maybe_transform(
{
"target": target,
"dispatch_id": dispatch_id,
"metadata": metadata,
"options": options,
"signals": signals,
Expand Down Expand Up @@ -168,6 +172,7 @@ async def create(
self,
*,
target: verification_create_params.Target,
dispatch_id: str | NotGiven = NOT_GIVEN,
metadata: verification_create_params.Metadata | NotGiven = NOT_GIVEN,
options: verification_create_params.Options | NotGiven = NOT_GIVEN,
signals: verification_create_params.Signals | NotGiven = NOT_GIVEN,
Expand All @@ -187,6 +192,8 @@ async def create(
Args:
target: The target. Currently this can only be an E.164 formatted phone number.
dispatch_id: The identifier of the dispatch that came from the front-end SDK.
metadata: The metadata for this verification. This object will be returned with every
response or webhook sent that refers to this verification.
Expand All @@ -207,6 +214,7 @@ async def create(
body=await async_maybe_transform(
{
"target": target,
"dispatch_id": dispatch_id,
"metadata": metadata,
"options": options,
"signals": signals,
Expand Down
3 changes: 3 additions & 0 deletions src/prelude_python_sdk/types/verification_create_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ class VerificationCreateParams(TypedDict, total=False):
target: Required[Target]
"""The target. Currently this can only be an E.164 formatted phone number."""

dispatch_id: str
"""The identifier of the dispatch that came from the front-end SDK."""

metadata: Metadata
"""The metadata for this verification.
Expand Down
2 changes: 2 additions & 0 deletions tests/api_resources/test_verification.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ def test_method_create_with_all_params(self, client: Prelude) -> None:
"type": "phone_number",
"value": "+30123456789",
},
dispatch_id="dispatch_id",
metadata={"correlation_id": "correlation_id"},
options={
"app_realm": {
Expand Down Expand Up @@ -155,6 +156,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncPrelude) -
"type": "phone_number",
"value": "+30123456789",
},
dispatch_id="dispatch_id",
metadata={"correlation_id": "correlation_id"},
options={
"app_realm": {
Expand Down

0 comments on commit 214aa99

Please sign in to comment.