Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .spec-sha
Original file line number Diff line number Diff line change
@@ -1 +1 @@
22d7f164e18c741e9d6e2cba0f280a3a3af4d153
6363a658f424759e28af8f8fc73ab0912d855c51
2 changes: 1 addition & 1 deletion src/onepin/.fern/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
}
]
},
"originGitCommit": "e61a07d289073104a086ed6aec6161a6169f829a",
"originGitCommit": "930bf67ab47aa5c39e42e042ccd13eb95aa1d11d",
"originGitCommitIsDirty": false,
"invokedBy": "ci",
"ciProvider": "github"
Expand Down
15 changes: 14 additions & 1 deletion src/onepin/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@
ApiResponseProviderKeysManifestOut,
ApiResponseRunsSummaryOut,
ApiResponseSetupIntentResponse,
ApiResponseSlugAvailabilityOut,
ApiResponseTemplateEstimateResponse,
ApiResponseTemplateOut,
ApiResponseUnionCustomerSubscriptionResponseNoneType,
Expand Down Expand Up @@ -134,6 +135,8 @@
ProviderKeysManifestOut,
RunsSummaryOut,
SetupIntentResponse,
SlugAvailabilityOut,
SlugAvailabilityOutReason,
TemplateCategory,
TemplateEstimateResponse,
TemplateEstimateResponseCacheStatus,
Expand Down Expand Up @@ -222,7 +225,7 @@
WorkspaceSettingsOut,
WorkspaceWorkflowsStatsOut,
)
from .errors import ConflictError, NotFoundError, UnprocessableEntityError
from .errors import BadRequestError, ConflictError, ForbiddenError, NotFoundError, UnprocessableEntityError
from . import (
api_keys,
auth,
Expand Down Expand Up @@ -325,6 +328,7 @@
"ApiResponseProviderKeysManifestOut": ".types",
"ApiResponseRunsSummaryOut": ".types",
"ApiResponseSetupIntentResponse": ".types",
"ApiResponseSlugAvailabilityOut": ".types",
"ApiResponseTemplateEstimateResponse": ".types",
"ApiResponseTemplateOut": ".types",
"ApiResponseUnionCustomerSubscriptionResponseNoneType": ".types",
Expand All @@ -346,6 +350,7 @@
"AsyncOnePinClient": ".client",
"AuthWhoamiOut": ".types",
"AuthWhoamiOutAuthKind": ".types",
"BadRequestError": ".errors",
"BalanceResponse": ".types",
"CatalogLink": ".types",
"CatalogModelOut": ".types",
Expand All @@ -367,6 +372,7 @@
"EnumOption": ".types",
"EstimateResponse": ".types",
"ExecutionDefinition": ".types",
"ForbiddenError": ".errors",
"GraphDefinitionInput": ".types",
"GraphDefinitionOutput": ".types",
"GraphEdge": ".types",
Expand Down Expand Up @@ -425,6 +431,8 @@
"SearchDictionaryEntriesApiV1DictionarySearchGetRequestOrder": ".dictionary",
"SearchDictionaryEntriesApiV1DictionarySearchGetRequestSort": ".dictionary",
"SetupIntentResponse": ".types",
"SlugAvailabilityOut": ".types",
"SlugAvailabilityOutReason": ".types",
"TemplateCategory": ".types",
"TemplateEstimateResponse": ".types",
"TemplateEstimateResponseCacheStatus": ".types",
Expand Down Expand Up @@ -616,6 +624,7 @@ def __dir__():
"ApiResponseProviderKeysManifestOut",
"ApiResponseRunsSummaryOut",
"ApiResponseSetupIntentResponse",
"ApiResponseSlugAvailabilityOut",
"ApiResponseTemplateEstimateResponse",
"ApiResponseTemplateOut",
"ApiResponseUnionCustomerSubscriptionResponseNoneType",
Expand All @@ -637,6 +646,7 @@ def __dir__():
"AsyncOnePinClient",
"AuthWhoamiOut",
"AuthWhoamiOutAuthKind",
"BadRequestError",
"BalanceResponse",
"CatalogLink",
"CatalogModelOut",
Expand All @@ -658,6 +668,7 @@ def __dir__():
"EnumOption",
"EstimateResponse",
"ExecutionDefinition",
"ForbiddenError",
"GraphDefinitionInput",
"GraphDefinitionOutput",
"GraphEdge",
Expand Down Expand Up @@ -716,6 +727,8 @@ def __dir__():
"SearchDictionaryEntriesApiV1DictionarySearchGetRequestOrder",
"SearchDictionaryEntriesApiV1DictionarySearchGetRequestSort",
"SetupIntentResponse",
"SlugAvailabilityOut",
"SlugAvailabilityOutReason",
"TemplateCategory",
"TemplateEstimateResponse",
"TemplateEstimateResponseCacheStatus",
Expand Down
49 changes: 24 additions & 25 deletions src/onepin/api_keys/raw_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
from ..types.api_response_api_key_created_out import ApiResponseApiKeyCreatedOut
from ..types.api_response_api_key_out import ApiResponseApiKeyOut
from ..types.api_response_api_key_rotate_out import ApiResponseApiKeyRotateOut
from ..types.http_validation_error import HttpValidationError
from pydantic import ValidationError

# this is used as the default value for optional parameters
Expand Down Expand Up @@ -86,9 +85,9 @@ def list_api_keys(
raise UnprocessableEntityError(
headers=dict(_response.headers),
body=typing.cast(
HttpValidationError,
typing.Any,
parse_obj_as(
type_=HttpValidationError, # type: ignore
type_=typing.Any, # type: ignore
object_=_response.json(),
),
),
Expand Down Expand Up @@ -166,9 +165,9 @@ def create_api_key(
raise UnprocessableEntityError(
headers=dict(_response.headers),
body=typing.cast(
HttpValidationError,
typing.Any,
parse_obj_as(
type_=HttpValidationError, # type: ignore
type_=typing.Any, # type: ignore
object_=_response.json(),
),
),
Expand Down Expand Up @@ -228,9 +227,9 @@ def get_api_key(
raise UnprocessableEntityError(
headers=dict(_response.headers),
body=typing.cast(
HttpValidationError,
typing.Any,
parse_obj_as(
type_=HttpValidationError, # type: ignore
type_=typing.Any, # type: ignore
object_=_response.json(),
),
),
Expand Down Expand Up @@ -290,9 +289,9 @@ def delete_api_key(
raise UnprocessableEntityError(
headers=dict(_response.headers),
body=typing.cast(
HttpValidationError,
typing.Any,
parse_obj_as(
type_=HttpValidationError, # type: ignore
type_=typing.Any, # type: ignore
object_=_response.json(),
),
),
Expand Down Expand Up @@ -372,9 +371,9 @@ def update_api_key(
raise UnprocessableEntityError(
headers=dict(_response.headers),
body=typing.cast(
HttpValidationError,
typing.Any,
parse_obj_as(
type_=HttpValidationError, # type: ignore
type_=typing.Any, # type: ignore
object_=_response.json(),
),
),
Expand Down Expand Up @@ -434,9 +433,9 @@ def rotate_api_key(
raise UnprocessableEntityError(
headers=dict(_response.headers),
body=typing.cast(
HttpValidationError,
typing.Any,
parse_obj_as(
type_=HttpValidationError, # type: ignore
type_=typing.Any, # type: ignore
object_=_response.json(),
),
),
Expand Down Expand Up @@ -513,9 +512,9 @@ async def list_api_keys(
raise UnprocessableEntityError(
headers=dict(_response.headers),
body=typing.cast(
HttpValidationError,
typing.Any,
parse_obj_as(
type_=HttpValidationError, # type: ignore
type_=typing.Any, # type: ignore
object_=_response.json(),
),
),
Expand Down Expand Up @@ -593,9 +592,9 @@ async def create_api_key(
raise UnprocessableEntityError(
headers=dict(_response.headers),
body=typing.cast(
HttpValidationError,
typing.Any,
parse_obj_as(
type_=HttpValidationError, # type: ignore
type_=typing.Any, # type: ignore
object_=_response.json(),
),
),
Expand Down Expand Up @@ -655,9 +654,9 @@ async def get_api_key(
raise UnprocessableEntityError(
headers=dict(_response.headers),
body=typing.cast(
HttpValidationError,
typing.Any,
parse_obj_as(
type_=HttpValidationError, # type: ignore
type_=typing.Any, # type: ignore
object_=_response.json(),
),
),
Expand Down Expand Up @@ -717,9 +716,9 @@ async def delete_api_key(
raise UnprocessableEntityError(
headers=dict(_response.headers),
body=typing.cast(
HttpValidationError,
typing.Any,
parse_obj_as(
type_=HttpValidationError, # type: ignore
type_=typing.Any, # type: ignore
object_=_response.json(),
),
),
Expand Down Expand Up @@ -799,9 +798,9 @@ async def update_api_key(
raise UnprocessableEntityError(
headers=dict(_response.headers),
body=typing.cast(
HttpValidationError,
typing.Any,
parse_obj_as(
type_=HttpValidationError, # type: ignore
type_=typing.Any, # type: ignore
object_=_response.json(),
),
),
Expand Down Expand Up @@ -861,9 +860,9 @@ async def rotate_api_key(
raise UnprocessableEntityError(
headers=dict(_response.headers),
body=typing.cast(
HttpValidationError,
typing.Any,
parse_obj_as(
type_=HttpValidationError, # type: ignore
type_=typing.Any, # type: ignore
object_=_response.json(),
),
),
Expand Down
9 changes: 4 additions & 5 deletions src/onepin/auth/raw_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
from ..core.request_options import RequestOptions
from ..errors.unprocessable_entity_error import UnprocessableEntityError
from ..types.api_response_auth_whoami_out import ApiResponseAuthWhoamiOut
from ..types.http_validation_error import HttpValidationError
from pydantic import ValidationError


Expand Down Expand Up @@ -54,9 +53,9 @@ def whoami(
raise UnprocessableEntityError(
headers=dict(_response.headers),
body=typing.cast(
HttpValidationError,
typing.Any,
parse_obj_as(
type_=HttpValidationError, # type: ignore
type_=typing.Any, # type: ignore
object_=_response.json(),
),
),
Expand Down Expand Up @@ -110,9 +109,9 @@ async def whoami(
raise UnprocessableEntityError(
headers=dict(_response.headers),
body=typing.cast(
HttpValidationError,
typing.Any,
parse_obj_as(
type_=HttpValidationError, # type: ignore
type_=typing.Any, # type: ignore
object_=_response.json(),
),
),
Expand Down
17 changes: 8 additions & 9 deletions src/onepin/billing/raw_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
from ..types.api_list_response_customer_plan_response import ApiListResponseCustomerPlanResponse
from ..types.api_response_checkout_response import ApiResponseCheckoutResponse
from ..types.api_response_customer_plan_change_preview_response import ApiResponseCustomerPlanChangePreviewResponse
from ..types.http_validation_error import HttpValidationError
from pydantic import ValidationError

# this is used as the default value for optional parameters
Expand Down Expand Up @@ -107,9 +106,9 @@ def preview_plan_change(
raise UnprocessableEntityError(
headers=dict(_response.headers),
body=typing.cast(
HttpValidationError,
typing.Any,
parse_obj_as(
type_=HttpValidationError, # type: ignore
type_=typing.Any, # type: ignore
object_=_response.json(),
),
),
Expand Down Expand Up @@ -170,9 +169,9 @@ def create_checkout(
raise UnprocessableEntityError(
headers=dict(_response.headers),
body=typing.cast(
HttpValidationError,
typing.Any,
parse_obj_as(
type_=HttpValidationError, # type: ignore
type_=typing.Any, # type: ignore
object_=_response.json(),
),
),
Expand Down Expand Up @@ -273,9 +272,9 @@ async def preview_plan_change(
raise UnprocessableEntityError(
headers=dict(_response.headers),
body=typing.cast(
HttpValidationError,
typing.Any,
parse_obj_as(
type_=HttpValidationError, # type: ignore
type_=typing.Any, # type: ignore
object_=_response.json(),
),
),
Expand Down Expand Up @@ -336,9 +335,9 @@ async def create_checkout(
raise UnprocessableEntityError(
headers=dict(_response.headers),
body=typing.cast(
HttpValidationError,
typing.Any,
parse_obj_as(
type_=HttpValidationError, # type: ignore
type_=typing.Any, # type: ignore
object_=_response.json(),
),
),
Expand Down
2 changes: 1 addition & 1 deletion src/onepin/core/client_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def get_headers(self) -> typing.Dict[str, str]:
import platform

headers: typing.Dict[str, str] = {
"User-Agent": "onepin/0.6.1",
"User-Agent": "onepin/0.7.2",
"X-Fern-Language": "Python",
"X-Fern-Runtime": f"python/{platform.python_version()}",
"X-Fern-Platform": f"{platform.system().lower()}/{platform.release()}",
Expand Down
Loading
Loading