diff --git a/.stats.yml b/.stats.yml index 2c94a69..0d90c5c 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 5 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/prelude%2Fprelude-1f5a50e21d467599b13b9fa8a754941c04020e024bb43ec00017b5c48b5d6c51.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/prelude%2Fprelude-64c1896dedae5302f4967c8edb2a675a48cba330193a20bdda1409fe3f9f9972.yml diff --git a/src/prelude_python_sdk/types/verification_check_response.py b/src/prelude_python_sdk/types/verification_check_response.py index 4bcb3b4..7bca9cf 100644 --- a/src/prelude_python_sdk/types/verification_check_response.py +++ b/src/prelude_python_sdk/types/verification_check_response.py @@ -13,6 +13,9 @@ class Metadata(BaseModel): class VerificationCheckResponse(BaseModel): + status: Literal["success", "failure", "expired_or_not_found"] + """The status of the check.""" + id: Optional[str] = None """The verification identifier.""" @@ -20,6 +23,3 @@ class VerificationCheckResponse(BaseModel): """The metadata for this verification.""" request_id: Optional[str] = None - - status: Optional[Literal["success", "failure", "expired"]] = None - """The status of the check.""" diff --git a/src/prelude_python_sdk/types/verification_create_response.py b/src/prelude_python_sdk/types/verification_create_response.py index f1121cb..fdc66ff 100644 --- a/src/prelude_python_sdk/types/verification_create_response.py +++ b/src/prelude_python_sdk/types/verification_create_response.py @@ -13,16 +13,16 @@ class Metadata(BaseModel): class VerificationCreateResponse(BaseModel): - id: Optional[str] = None + id: str """The verification identifier.""" + method: Literal["message"] + """The method used for verifying this phone number.""" + + status: Literal["success", "retry", "blocked"] + """The status of the verification.""" + metadata: Optional[Metadata] = None """The metadata for this verification.""" - method: Optional[Literal["message"]] = None - """The method used for verifying this phone number.""" - request_id: Optional[str] = None - - status: Optional[Literal["success", "retry", "blocked"]] = None - """The status of the verification.""" diff --git a/src/prelude_python_sdk/types/watch_feed_back_response.py b/src/prelude_python_sdk/types/watch_feed_back_response.py index aa10b12..c879860 100644 --- a/src/prelude_python_sdk/types/watch_feed_back_response.py +++ b/src/prelude_python_sdk/types/watch_feed_back_response.py @@ -1,6 +1,5 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from typing import Optional from .._models import BaseModel @@ -8,5 +7,5 @@ class WatchFeedBackResponse(BaseModel): - id: Optional[str] = None + id: str """A unique identifier for your feedback request.""" diff --git a/src/prelude_python_sdk/types/watch_predict_response.py b/src/prelude_python_sdk/types/watch_predict_response.py index d85e251..cb5a871 100644 --- a/src/prelude_python_sdk/types/watch_predict_response.py +++ b/src/prelude_python_sdk/types/watch_predict_response.py @@ -20,10 +20,10 @@ class Reasoning(BaseModel): class WatchPredictResponse(BaseModel): - id: Optional[str] = None + id: str """A unique identifier for your prediction request.""" - prediction: Optional[Literal["allow", "block"]] = None + prediction: Literal["allow", "block"] """A label indicating the trustworthiness of the phone number.""" - reasoning: Optional[Reasoning] = None + reasoning: Reasoning