ory-client 1.11.7__py3-none-any.whl → 1.11.11__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- ory_client/__init__.py +19 -9
- ory_client/api/__init__.py +1 -0
- ory_client/api/courier_api.py +1 -1
- ory_client/api/events_api.py +33 -21
- ory_client/api/frontend_api.py +1 -1
- ory_client/api/identity_api.py +7 -4
- ory_client/api/jwk_api.py +1 -1
- ory_client/api/metadata_api.py +1 -1
- ory_client/api/o_auth2_api.py +1 -1
- ory_client/api/oidc_api.py +1 -1
- ory_client/api/permission_api.py +1 -1
- ory_client/api/project_api.py +201 -967
- ory_client/api/relationship_api.py +1 -1
- ory_client/api/wellknown_api.py +1 -1
- ory_client/api/workspace_api.py +1463 -0
- ory_client/api_client.py +2 -2
- ory_client/configuration.py +34 -6
- ory_client/exceptions.py +1 -1
- ory_client/models/__init__.py +17 -8
- ory_client/models/accept_o_auth2_consent_request.py +1 -1
- ory_client/models/accept_o_auth2_consent_request_session.py +1 -1
- ory_client/models/accept_o_auth2_login_request.py +1 -1
- ory_client/models/account_experience_configuration.py +109 -0
- ory_client/models/account_experience_theme_variables.py +282 -0
- ory_client/models/active_project_in_console.py +1 -1
- ory_client/models/{migration_options.py → add_project_to_workspace_body.py} +5 -5
- ory_client/models/attribute.py +1 -1
- ory_client/models/attribute_filter.py +1 -1
- ory_client/models/attributes_count_datapoint.py +1 -1
- ory_client/models/authenticator_assurance_level.py +1 -1
- ory_client/models/batch_patch_identities_response.py +1 -1
- ory_client/models/billing_period_bucket.py +120 -0
- ory_client/models/check_opl_syntax_result.py +1 -1
- ory_client/models/check_permission_result.py +1 -1
- ory_client/models/cloud_account.py +1 -1
- ory_client/models/consistency_request_parameters.py +1 -1
- ory_client/models/continue_with.py +1 -1
- ory_client/models/continue_with_recovery_ui.py +1 -1
- ory_client/models/continue_with_recovery_ui_flow.py +1 -1
- ory_client/models/continue_with_set_ory_session_token.py +1 -1
- ory_client/models/continue_with_settings_ui.py +1 -1
- ory_client/models/continue_with_settings_ui_flow.py +1 -1
- ory_client/models/continue_with_verification_ui.py +1 -1
- ory_client/models/continue_with_verification_ui_flow.py +1 -1
- ory_client/models/courier_message_status.py +1 -1
- ory_client/models/courier_message_type.py +1 -1
- ory_client/models/create_custom_domain_body.py +1 -1
- ory_client/models/create_event_stream_body.py +1 -1
- ory_client/models/create_identity_body.py +1 -1
- ory_client/models/create_invite_response.py +1 -1
- ory_client/models/create_json_web_key_set.py +1 -1
- ory_client/models/create_project_api_key_request.py +1 -1
- ory_client/models/create_project_body.py +14 -2
- ory_client/models/create_project_branding.py +1 -1
- ory_client/models/create_project_member_invite_body.py +1 -1
- ory_client/models/create_project_normalized_payload.py +27 -3
- ory_client/models/create_recovery_code_for_identity_body.py +4 -2
- ory_client/models/create_recovery_link_for_identity_body.py +1 -1
- ory_client/models/create_relationship_body.py +1 -1
- ory_client/models/create_subscription_body.py +1 -1
- ory_client/models/create_subscription_common.py +1 -1
- ory_client/models/create_verifiable_credential_request_body.py +1 -1
- ory_client/models/{create_workspace_payload.py → create_workspace_body.py} +5 -5
- ory_client/models/create_workspace_member_invite_body.py +1 -1
- ory_client/models/create_workspace_subscription_body.py +1 -1
- ory_client/models/credential_supported_draft00.py +1 -1
- ory_client/models/custom_domain.py +1 -1
- ory_client/models/delete_my_sessions_count.py +1 -1
- ory_client/models/email_template_data.py +1 -1
- ory_client/models/email_template_data_body.py +1 -1
- ory_client/models/error_authenticator_assurance_level_not_satisfied.py +1 -1
- ory_client/models/error_browser_location_change_required.py +1 -1
- ory_client/models/error_flow_replaced.py +1 -1
- ory_client/models/error_generic.py +1 -1
- ory_client/models/error_o_auth2.py +1 -1
- ory_client/models/event_stream.py +1 -1
- ory_client/models/expanded_permission_tree.py +1 -1
- ory_client/models/flow_error.py +1 -1
- ory_client/models/generic_error.py +1 -1
- ory_client/models/generic_error_content.py +1 -1
- ory_client/models/generic_usage.py +7 -3
- ory_client/models/get_attributes_count_response.py +1 -1
- ory_client/models/get_managed_identity_schema_location.py +1 -1
- ory_client/models/get_metrics_event_attributes_response.py +1 -1
- ory_client/models/get_metrics_event_types_response.py +1 -1
- ory_client/models/get_organization_response.py +1 -1
- ory_client/models/get_project_events_body.py +1 -1
- ory_client/models/get_project_events_response.py +1 -1
- ory_client/models/get_project_metrics_response.py +1 -1
- ory_client/models/get_session_activity_response.py +1 -1
- ory_client/models/get_version200_response.py +1 -1
- ory_client/models/health_not_ready_status.py +1 -1
- ory_client/models/health_status.py +1 -1
- ory_client/models/identity.py +1 -1
- ory_client/models/identity_credentials.py +1 -1
- ory_client/models/identity_credentials_code.py +1 -1
- ory_client/models/identity_credentials_oidc.py +1 -1
- ory_client/models/identity_credentials_oidc_provider.py +1 -1
- ory_client/models/identity_credentials_password.py +1 -1
- ory_client/models/identity_patch.py +1 -1
- ory_client/models/identity_patch_response.py +1 -1
- ory_client/models/identity_schema_container.py +1 -1
- ory_client/models/identity_schema_preset.py +1 -1
- ory_client/models/identity_with_credentials.py +1 -1
- ory_client/models/identity_with_credentials_oidc.py +1 -1
- ory_client/models/identity_with_credentials_oidc_config.py +1 -1
- ory_client/models/identity_with_credentials_oidc_config_provider.py +1 -1
- ory_client/models/identity_with_credentials_password.py +1 -1
- ory_client/models/identity_with_credentials_password_config.py +1 -1
- ory_client/models/internal_get_project_branding_body.py +1 -1
- ory_client/models/internal_is_ax_welcome_screen_enabled_for_project_body.py +1 -1
- ory_client/models/internal_is_owner_for_project_by_slug_body.py +1 -1
- ory_client/models/internal_is_owner_for_project_by_slug_response.py +1 -1
- ory_client/models/introspected_o_auth2_token.py +1 -1
- ory_client/models/{workspace_meta.py → invoice.py} +31 -28
- ory_client/models/invoice_data_v1.py +149 -0
- ory_client/models/is_owner_for_project_by_slug.py +1 -1
- ory_client/models/json_patch.py +1 -1
- ory_client/models/json_web_key.py +1 -1
- ory_client/models/json_web_key_set.py +1 -1
- ory_client/models/keto_namespace.py +1 -1
- ory_client/models/line_item_v1.py +120 -0
- ory_client/models/list_event_streams.py +1 -1
- ory_client/models/list_invoices_response.py +113 -0
- ory_client/models/list_organizations_response.py +8 -4
- ory_client/models/{list_workspace_projects_response.py → list_workspace_projects.py} +5 -5
- ory_client/models/{list_my_workspaces_response.py → list_workspaces.py} +8 -8
- ory_client/models/login_flow.py +1 -1
- ory_client/models/login_flow_state.py +1 -1
- ory_client/models/logout_flow.py +1 -1
- ory_client/models/managed_identity_schema.py +1 -1
- ory_client/models/managed_identity_schema_validation_result.py +1 -1
- ory_client/models/member_invite.py +1 -1
- ory_client/models/message.py +1 -1
- ory_client/models/message_dispatch.py +1 -1
- ory_client/models/metrics_datapoint.py +1 -1
- ory_client/models/money.py +105 -0
- ory_client/models/namespace.py +1 -1
- ory_client/models/needs_privileged_session_error.py +1 -1
- ory_client/models/normalized_project.py +13 -2
- ory_client/models/normalized_project_revision.py +15 -3
- ory_client/models/normalized_project_revision_courier_channel.py +1 -1
- ory_client/models/normalized_project_revision_hook.py +1 -1
- ory_client/models/normalized_project_revision_identity_schema.py +1 -1
- ory_client/models/normalized_project_revision_third_party_provider.py +1 -1
- ory_client/models/normalized_project_revision_tokenizer_template.py +1 -1
- ory_client/models/o_auth2_client.py +1 -1
- ory_client/models/o_auth2_client_token_lifespans.py +1 -1
- ory_client/models/o_auth2_consent_request.py +1 -1
- ory_client/models/o_auth2_consent_request_open_id_connect_context.py +1 -1
- ory_client/models/o_auth2_consent_session.py +1 -1
- ory_client/models/o_auth2_consent_session_expires_at.py +1 -1
- ory_client/models/o_auth2_login_request.py +1 -1
- ory_client/models/o_auth2_logout_request.py +1 -1
- ory_client/models/o_auth2_redirect_to.py +1 -1
- ory_client/models/o_auth2_token_exchange.py +1 -1
- ory_client/models/oidc_configuration.py +1 -1
- ory_client/models/oidc_user_info.py +1 -1
- ory_client/models/organization.py +1 -1
- ory_client/models/organization_body.py +1 -1
- ory_client/models/pagination.py +1 -1
- ory_client/models/pagination_headers.py +1 -1
- ory_client/models/parse_error.py +1 -1
- ory_client/models/patch_identities_body.py +1 -1
- ory_client/models/perform_native_logout_body.py +1 -1
- ory_client/models/{permissions_on_workpace_response.py → permissions_on_workspace.py} +4 -4
- ory_client/models/plan.py +1 -1
- ory_client/models/plan_details.py +1 -1
- ory_client/models/post_check_permission_body.py +1 -1
- ory_client/models/post_check_permission_or_error_body.py +1 -1
- ory_client/models/project.py +20 -2
- ory_client/models/project_api_key.py +1 -1
- ory_client/models/project_branding.py +1 -1
- ory_client/models/project_branding_colors.py +1 -1
- ory_client/models/project_branding_theme.py +14 -2
- ory_client/models/project_cors.py +1 -1
- ory_client/models/project_events_datapoint.py +1 -1
- ory_client/models/project_host.py +1 -1
- ory_client/models/project_member.py +1 -1
- ory_client/models/project_metadata.py +12 -3
- ory_client/models/project_service_identity.py +1 -1
- ory_client/models/project_service_o_auth2.py +1 -1
- ory_client/models/project_service_permission.py +1 -1
- ory_client/models/project_services.py +1 -1
- ory_client/models/quota_usage.py +5 -5
- ory_client/models/recovery_code_for_identity.py +1 -1
- ory_client/models/recovery_flow.py +1 -1
- ory_client/models/recovery_flow_state.py +1 -1
- ory_client/models/recovery_identity_address.py +1 -1
- ory_client/models/recovery_link_for_identity.py +1 -1
- ory_client/models/registration_flow.py +1 -1
- ory_client/models/registration_flow_state.py +1 -1
- ory_client/models/reject_o_auth2_request.py +1 -1
- ory_client/models/relation_query.py +1 -1
- ory_client/models/relationship.py +1 -1
- ory_client/models/relationship_namespaces.py +1 -1
- ory_client/models/relationship_patch.py +1 -1
- ory_client/models/relationships.py +1 -1
- ory_client/models/rfc6749_error_json.py +1 -1
- ory_client/models/schema_patch.py +1 -1
- ory_client/models/self_service_flow_expired_error.py +1 -1
- ory_client/models/session.py +1 -1
- ory_client/models/session_activity_datapoint.py +1 -1
- ory_client/models/session_authentication_method.py +1 -1
- ory_client/models/session_device.py +1 -1
- ory_client/models/set_active_project_in_console_body.py +1 -1
- ory_client/models/set_custom_domain_body.py +1 -1
- ory_client/models/set_event_stream_body.py +1 -1
- ory_client/models/set_project.py +1 -1
- ory_client/models/set_project_branding_theme_body.py +1 -1
- ory_client/models/settings_flow.py +1 -1
- ory_client/models/settings_flow_state.py +1 -1
- ory_client/models/source_position.py +1 -1
- ory_client/models/subject_set.py +1 -1
- ory_client/models/subscription.py +1 -1
- ory_client/models/successful_code_exchange_response.py +1 -1
- ory_client/models/successful_native_login.py +1 -1
- ory_client/models/successful_native_registration.py +1 -1
- ory_client/models/successful_project_update.py +1 -1
- ory_client/models/tax_line_item.py +103 -0
- ory_client/models/time_interval.py +104 -0
- ory_client/models/token_pagination.py +1 -1
- ory_client/models/token_pagination_headers.py +1 -1
- ory_client/models/token_pagination_request_parameters.py +1 -1
- ory_client/models/token_pagination_response_headers.py +1 -1
- ory_client/models/trust_o_auth2_jwt_grant_issuer.py +1 -1
- ory_client/models/trusted_o_auth2_jwt_grant_issuer.py +1 -1
- ory_client/models/trusted_o_auth2_jwt_grant_json_web_key.py +1 -1
- ory_client/models/ui_container.py +1 -1
- ory_client/models/ui_node.py +1 -1
- ory_client/models/ui_node_anchor_attributes.py +1 -1
- ory_client/models/ui_node_attributes.py +1 -1
- ory_client/models/ui_node_image_attributes.py +1 -1
- ory_client/models/ui_node_input_attributes.py +1 -1
- ory_client/models/ui_node_meta.py +1 -1
- ory_client/models/ui_node_script_attributes.py +1 -1
- ory_client/models/ui_node_text_attributes.py +1 -1
- ory_client/models/ui_text.py +1 -1
- ory_client/models/update_identity_body.py +1 -1
- ory_client/models/update_login_flow_body.py +1 -1
- ory_client/models/update_login_flow_with_code_method.py +1 -1
- ory_client/models/update_login_flow_with_lookup_secret_method.py +1 -1
- ory_client/models/update_login_flow_with_oidc_method.py +1 -1
- ory_client/models/update_login_flow_with_passkey_method.py +1 -1
- ory_client/models/update_login_flow_with_password_method.py +1 -1
- ory_client/models/update_login_flow_with_totp_method.py +1 -1
- ory_client/models/update_login_flow_with_web_authn_method.py +1 -1
- ory_client/models/update_recovery_flow_body.py +1 -1
- ory_client/models/update_recovery_flow_with_code_method.py +1 -1
- ory_client/models/update_recovery_flow_with_link_method.py +1 -1
- ory_client/models/update_registration_flow_body.py +1 -1
- ory_client/models/update_registration_flow_with_code_method.py +1 -1
- ory_client/models/update_registration_flow_with_oidc_method.py +1 -1
- ory_client/models/update_registration_flow_with_passkey_method.py +1 -1
- ory_client/models/update_registration_flow_with_password_method.py +1 -1
- ory_client/models/update_registration_flow_with_profile_method.py +1 -1
- ory_client/models/update_registration_flow_with_web_authn_method.py +1 -1
- ory_client/models/update_settings_flow_body.py +1 -1
- ory_client/models/update_settings_flow_with_lookup_method.py +1 -1
- ory_client/models/update_settings_flow_with_oidc_method.py +1 -1
- ory_client/models/update_settings_flow_with_passkey_method.py +1 -1
- ory_client/models/update_settings_flow_with_password_method.py +1 -1
- ory_client/models/update_settings_flow_with_profile_method.py +1 -1
- ory_client/models/update_settings_flow_with_totp_method.py +1 -1
- ory_client/models/update_settings_flow_with_web_authn_method.py +1 -1
- ory_client/models/update_subscription_body.py +1 -1
- ory_client/models/update_verification_flow_body.py +1 -1
- ory_client/models/update_verification_flow_with_code_method.py +1 -1
- ory_client/models/update_verification_flow_with_link_method.py +1 -1
- ory_client/models/{update_workspace_payload.py → update_workspace_body.py} +5 -5
- ory_client/models/usage.py +1 -1
- ory_client/models/verifiable_credential_priming_response.py +1 -1
- ory_client/models/verifiable_credential_proof.py +1 -1
- ory_client/models/verifiable_credential_response.py +1 -1
- ory_client/models/verifiable_identity_address.py +1 -1
- ory_client/models/verification_flow.py +1 -1
- ory_client/models/verification_flow_state.py +1 -1
- ory_client/models/version.py +1 -1
- ory_client/models/warning.py +1 -1
- ory_client/models/workspace.py +9 -2
- ory_client/rest.py +1 -1
- {ory_client-1.11.7.dist-info → ory_client-1.11.11.dist-info}/METADATA +1 -1
- ory_client-1.11.11.dist-info/RECORD +288 -0
- ory_client-1.11.7.dist-info/RECORD +0 -278
- {ory_client-1.11.7.dist-info → ory_client-1.11.11.dist-info}/LICENSE +0 -0
- {ory_client-1.11.7.dist-info → ory_client-1.11.11.dist-info}/WHEEL +0 -0
- {ory_client-1.11.7.dist-info → ory_client-1.11.11.dist-info}/top_level.txt +0 -0
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers.
|
7
7
|
|
8
|
-
The version of the OpenAPI document: v1.11.
|
8
|
+
The version of the OpenAPI document: v1.11.11
|
9
9
|
Contact: support@ory.sh
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
11
|
|
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers.
|
7
7
|
|
8
|
-
The version of the OpenAPI document: v1.11.
|
8
|
+
The version of the OpenAPI document: v1.11.11
|
9
9
|
Contact: support@ory.sh
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
11
|
|
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers.
|
7
7
|
|
8
|
-
The version of the OpenAPI document: v1.11.
|
8
|
+
The version of the OpenAPI document: v1.11.11
|
9
9
|
Contact: support@ory.sh
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
11
|
|
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers.
|
7
7
|
|
8
|
-
The version of the OpenAPI document: v1.11.
|
8
|
+
The version of the OpenAPI document: v1.11.11
|
9
9
|
Contact: support@ory.sh
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
11
|
|
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers.
|
7
7
|
|
8
|
-
The version of the OpenAPI document: v1.11.
|
8
|
+
The version of the OpenAPI document: v1.11.11
|
9
9
|
Contact: support@ory.sh
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
11
|
|
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers.
|
7
7
|
|
8
|
-
The version of the OpenAPI document: v1.11.
|
8
|
+
The version of the OpenAPI document: v1.11.11
|
9
9
|
Contact: support@ory.sh
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
11
|
|
@@ -19,23 +19,30 @@ import re # noqa: F401
|
|
19
19
|
import json
|
20
20
|
|
21
21
|
from datetime import datetime
|
22
|
-
from pydantic import BaseModel, ConfigDict, StrictStr
|
22
|
+
from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator
|
23
23
|
from typing import Any, ClassVar, Dict, List, Optional
|
24
|
+
from ory_client.models.invoice_data_v1 import InvoiceDataV1
|
24
25
|
from typing import Optional, Set
|
25
26
|
from typing_extensions import Self
|
26
27
|
|
27
|
-
class
|
28
|
+
class Invoice(BaseModel):
|
28
29
|
"""
|
29
|
-
|
30
|
+
Invoice
|
30
31
|
""" # noqa: E501
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
updated_at: datetime
|
32
|
+
id: StrictStr = Field(description="The ID of the subscription")
|
33
|
+
invoiced_at: datetime
|
34
|
+
type: StrictStr = Field(description="Type is the type of the invoice. usage InvoiceTypeUsage base InvoiceTypeBase")
|
35
|
+
updated_at: Optional[datetime] = None
|
36
|
+
v1: Optional[InvoiceDataV1] = None
|
37
37
|
additional_properties: Dict[str, Any] = {}
|
38
|
-
__properties: ClassVar[List[str]] = ["
|
38
|
+
__properties: ClassVar[List[str]] = ["id", "invoiced_at", "type", "updated_at", "v1"]
|
39
|
+
|
40
|
+
@field_validator('type')
|
41
|
+
def type_validate_enum(cls, value):
|
42
|
+
"""Validates the enum"""
|
43
|
+
if value not in set(['usage', 'base']):
|
44
|
+
raise ValueError("must be one of enum values ('usage', 'base')")
|
45
|
+
return value
|
39
46
|
|
40
47
|
model_config = ConfigDict(
|
41
48
|
populate_by_name=True,
|
@@ -55,7 +62,7 @@ class WorkspaceMeta(BaseModel):
|
|
55
62
|
|
56
63
|
@classmethod
|
57
64
|
def from_json(cls, json_str: str) -> Optional[Self]:
|
58
|
-
"""Create an instance of
|
65
|
+
"""Create an instance of Invoice from a JSON string"""
|
59
66
|
return cls.from_dict(json.loads(json_str))
|
60
67
|
|
61
68
|
def to_dict(self) -> Dict[str, Any]:
|
@@ -67,9 +74,13 @@ class WorkspaceMeta(BaseModel):
|
|
67
74
|
* `None` is only added to the output dict for nullable fields that
|
68
75
|
were set at model initialization. Other fields with value `None`
|
69
76
|
are ignored.
|
77
|
+
* OpenAPI `readOnly` fields are excluded.
|
78
|
+
* OpenAPI `readOnly` fields are excluded.
|
70
79
|
* Fields in `self.additional_properties` are added to the output dict.
|
71
80
|
"""
|
72
81
|
excluded_fields: Set[str] = set([
|
82
|
+
"id",
|
83
|
+
"type",
|
73
84
|
"additional_properties",
|
74
85
|
])
|
75
86
|
|
@@ -78,26 +89,19 @@ class WorkspaceMeta(BaseModel):
|
|
78
89
|
exclude=excluded_fields,
|
79
90
|
exclude_none=True,
|
80
91
|
)
|
92
|
+
# override the default output from pydantic by calling `to_dict()` of v1
|
93
|
+
if self.v1:
|
94
|
+
_dict['v1'] = self.v1.to_dict()
|
81
95
|
# puts key-value pairs in additional_properties in the top level
|
82
96
|
if self.additional_properties is not None:
|
83
97
|
for _key, _value in self.additional_properties.items():
|
84
98
|
_dict[_key] = _value
|
85
99
|
|
86
|
-
# set to None if subscription_id (nullable) is None
|
87
|
-
# and model_fields_set contains the field
|
88
|
-
if self.subscription_id is None and "subscription_id" in self.model_fields_set:
|
89
|
-
_dict['subscription_id'] = None
|
90
|
-
|
91
|
-
# set to None if subscription_plan (nullable) is None
|
92
|
-
# and model_fields_set contains the field
|
93
|
-
if self.subscription_plan is None and "subscription_plan" in self.model_fields_set:
|
94
|
-
_dict['subscription_plan'] = None
|
95
|
-
|
96
100
|
return _dict
|
97
101
|
|
98
102
|
@classmethod
|
99
103
|
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
100
|
-
"""Create an instance of
|
104
|
+
"""Create an instance of Invoice from a dict"""
|
101
105
|
if obj is None:
|
102
106
|
return None
|
103
107
|
|
@@ -105,12 +109,11 @@ class WorkspaceMeta(BaseModel):
|
|
105
109
|
return cls.model_validate(obj)
|
106
110
|
|
107
111
|
_obj = cls.model_validate({
|
108
|
-
"created_at": obj.get("created_at"),
|
109
112
|
"id": obj.get("id"),
|
110
|
-
"
|
111
|
-
"
|
112
|
-
"
|
113
|
-
"
|
113
|
+
"invoiced_at": obj.get("invoiced_at"),
|
114
|
+
"type": obj.get("type"),
|
115
|
+
"updated_at": obj.get("updated_at"),
|
116
|
+
"v1": InvoiceDataV1.from_dict(obj["v1"]) if obj.get("v1") is not None else None
|
114
117
|
})
|
115
118
|
# store additional fields in additional_properties
|
116
119
|
for _key in obj.keys():
|
@@ -0,0 +1,149 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
"""
|
4
|
+
Ory APIs
|
5
|
+
|
6
|
+
Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers.
|
7
|
+
|
8
|
+
The version of the OpenAPI document: v1.11.11
|
9
|
+
Contact: support@ory.sh
|
10
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
|
+
|
12
|
+
Do not edit the class manually.
|
13
|
+
""" # noqa: E501
|
14
|
+
|
15
|
+
|
16
|
+
from __future__ import annotations
|
17
|
+
import pprint
|
18
|
+
import re # noqa: F401
|
19
|
+
import json
|
20
|
+
|
21
|
+
from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr
|
22
|
+
from typing import Any, ClassVar, Dict, List, Optional
|
23
|
+
from ory_client.models.line_item_v1 import LineItemV1
|
24
|
+
from ory_client.models.tax_line_item import TaxLineItem
|
25
|
+
from ory_client.models.time_interval import TimeInterval
|
26
|
+
from typing import Optional, Set
|
27
|
+
from typing_extensions import Self
|
28
|
+
|
29
|
+
class InvoiceDataV1(BaseModel):
|
30
|
+
"""
|
31
|
+
InvoiceDataV1
|
32
|
+
""" # noqa: E501
|
33
|
+
billing_period: TimeInterval
|
34
|
+
currency: StrictStr = Field(description="The currency of the invoice.")
|
35
|
+
items: List[LineItemV1] = Field(description="The items that are part of this invoice.")
|
36
|
+
plan: Optional[StrictStr] = Field(default=None, description="The plan that this invoice is based on.")
|
37
|
+
stripe_invoice_item: Optional[StrictStr] = None
|
38
|
+
stripe_invoice_status: Optional[StrictStr] = Field(default=None, description="The status of the invoice, one of `draft`, `open`, `paid`, `uncollectible`, or `void`. [Learn more](https://stripe.com/docs/billing/invoices/workflow#workflow-overview)")
|
39
|
+
stripe_link: Optional[StrictStr] = Field(default=None, description="An optional link to the invoice on Stripe.")
|
40
|
+
subtitle: Optional[StrictStr] = Field(default=None, description="The subtitle of the invoice.")
|
41
|
+
tax: Optional[TaxLineItem] = None
|
42
|
+
title: StrictStr = Field(description="The title of the invoice.")
|
43
|
+
total_in_cent: StrictInt
|
44
|
+
additional_properties: Dict[str, Any] = {}
|
45
|
+
__properties: ClassVar[List[str]] = ["billing_period", "currency", "items", "plan", "stripe_invoice_item", "stripe_invoice_status", "stripe_link", "subtitle", "tax", "title", "total_in_cent"]
|
46
|
+
|
47
|
+
model_config = ConfigDict(
|
48
|
+
populate_by_name=True,
|
49
|
+
validate_assignment=True,
|
50
|
+
protected_namespaces=(),
|
51
|
+
)
|
52
|
+
|
53
|
+
|
54
|
+
def to_str(self) -> str:
|
55
|
+
"""Returns the string representation of the model using alias"""
|
56
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
57
|
+
|
58
|
+
def to_json(self) -> str:
|
59
|
+
"""Returns the JSON representation of the model using alias"""
|
60
|
+
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
61
|
+
return json.dumps(self.to_dict())
|
62
|
+
|
63
|
+
@classmethod
|
64
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
65
|
+
"""Create an instance of InvoiceDataV1 from a JSON string"""
|
66
|
+
return cls.from_dict(json.loads(json_str))
|
67
|
+
|
68
|
+
def to_dict(self) -> Dict[str, Any]:
|
69
|
+
"""Return the dictionary representation of the model using alias.
|
70
|
+
|
71
|
+
This has the following differences from calling pydantic's
|
72
|
+
`self.model_dump(by_alias=True)`:
|
73
|
+
|
74
|
+
* `None` is only added to the output dict for nullable fields that
|
75
|
+
were set at model initialization. Other fields with value `None`
|
76
|
+
are ignored.
|
77
|
+
* OpenAPI `readOnly` fields are excluded.
|
78
|
+
* OpenAPI `readOnly` fields are excluded.
|
79
|
+
* OpenAPI `readOnly` fields are excluded.
|
80
|
+
* OpenAPI `readOnly` fields are excluded.
|
81
|
+
* OpenAPI `readOnly` fields are excluded.
|
82
|
+
* OpenAPI `readOnly` fields are excluded.
|
83
|
+
* Fields in `self.additional_properties` are added to the output dict.
|
84
|
+
"""
|
85
|
+
excluded_fields: Set[str] = set([
|
86
|
+
"currency",
|
87
|
+
"items",
|
88
|
+
"plan",
|
89
|
+
"stripe_link",
|
90
|
+
"subtitle",
|
91
|
+
"title",
|
92
|
+
"additional_properties",
|
93
|
+
])
|
94
|
+
|
95
|
+
_dict = self.model_dump(
|
96
|
+
by_alias=True,
|
97
|
+
exclude=excluded_fields,
|
98
|
+
exclude_none=True,
|
99
|
+
)
|
100
|
+
# override the default output from pydantic by calling `to_dict()` of billing_period
|
101
|
+
if self.billing_period:
|
102
|
+
_dict['billing_period'] = self.billing_period.to_dict()
|
103
|
+
# override the default output from pydantic by calling `to_dict()` of each item in items (list)
|
104
|
+
_items = []
|
105
|
+
if self.items:
|
106
|
+
for _item in self.items:
|
107
|
+
if _item:
|
108
|
+
_items.append(_item.to_dict())
|
109
|
+
_dict['items'] = _items
|
110
|
+
# override the default output from pydantic by calling `to_dict()` of tax
|
111
|
+
if self.tax:
|
112
|
+
_dict['tax'] = self.tax.to_dict()
|
113
|
+
# puts key-value pairs in additional_properties in the top level
|
114
|
+
if self.additional_properties is not None:
|
115
|
+
for _key, _value in self.additional_properties.items():
|
116
|
+
_dict[_key] = _value
|
117
|
+
|
118
|
+
return _dict
|
119
|
+
|
120
|
+
@classmethod
|
121
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
122
|
+
"""Create an instance of InvoiceDataV1 from a dict"""
|
123
|
+
if obj is None:
|
124
|
+
return None
|
125
|
+
|
126
|
+
if not isinstance(obj, dict):
|
127
|
+
return cls.model_validate(obj)
|
128
|
+
|
129
|
+
_obj = cls.model_validate({
|
130
|
+
"billing_period": TimeInterval.from_dict(obj["billing_period"]) if obj.get("billing_period") is not None else None,
|
131
|
+
"currency": obj.get("currency"),
|
132
|
+
"items": [LineItemV1.from_dict(_item) for _item in obj["items"]] if obj.get("items") is not None else None,
|
133
|
+
"plan": obj.get("plan"),
|
134
|
+
"stripe_invoice_item": obj.get("stripe_invoice_item"),
|
135
|
+
"stripe_invoice_status": obj.get("stripe_invoice_status"),
|
136
|
+
"stripe_link": obj.get("stripe_link"),
|
137
|
+
"subtitle": obj.get("subtitle"),
|
138
|
+
"tax": TaxLineItem.from_dict(obj["tax"]) if obj.get("tax") is not None else None,
|
139
|
+
"title": obj.get("title"),
|
140
|
+
"total_in_cent": obj.get("total_in_cent")
|
141
|
+
})
|
142
|
+
# store additional fields in additional_properties
|
143
|
+
for _key in obj.keys():
|
144
|
+
if _key not in cls.__properties:
|
145
|
+
_obj.additional_properties[_key] = obj.get(_key)
|
146
|
+
|
147
|
+
return _obj
|
148
|
+
|
149
|
+
|
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers.
|
7
7
|
|
8
|
-
The version of the OpenAPI document: v1.11.
|
8
|
+
The version of the OpenAPI document: v1.11.11
|
9
9
|
Contact: support@ory.sh
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
11
|
|
ory_client/models/json_patch.py
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers.
|
7
7
|
|
8
|
-
The version of the OpenAPI document: v1.11.
|
8
|
+
The version of the OpenAPI document: v1.11.11
|
9
9
|
Contact: support@ory.sh
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
11
|
|
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers.
|
7
7
|
|
8
|
-
The version of the OpenAPI document: v1.11.
|
8
|
+
The version of the OpenAPI document: v1.11.11
|
9
9
|
Contact: support@ory.sh
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
11
|
|
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers.
|
7
7
|
|
8
|
-
The version of the OpenAPI document: v1.11.
|
8
|
+
The version of the OpenAPI document: v1.11.11
|
9
9
|
Contact: support@ory.sh
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
11
|
|
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers.
|
7
7
|
|
8
|
-
The version of the OpenAPI document: v1.11.
|
8
|
+
The version of the OpenAPI document: v1.11.11
|
9
9
|
Contact: support@ory.sh
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
11
|
|
@@ -0,0 +1,120 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
"""
|
4
|
+
Ory APIs
|
5
|
+
|
6
|
+
Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers.
|
7
|
+
|
8
|
+
The version of the OpenAPI document: v1.11.11
|
9
|
+
Contact: support@ory.sh
|
10
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
|
+
|
12
|
+
Do not edit the class manually.
|
13
|
+
""" # noqa: E501
|
14
|
+
|
15
|
+
|
16
|
+
from __future__ import annotations
|
17
|
+
import pprint
|
18
|
+
import re # noqa: F401
|
19
|
+
import json
|
20
|
+
|
21
|
+
from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr
|
22
|
+
from typing import Any, ClassVar, Dict, List, Optional
|
23
|
+
from typing import Optional, Set
|
24
|
+
from typing_extensions import Self
|
25
|
+
|
26
|
+
class LineItemV1(BaseModel):
|
27
|
+
"""
|
28
|
+
LineItemV1
|
29
|
+
""" # noqa: E501
|
30
|
+
amount_in_cent: Optional[StrictInt] = None
|
31
|
+
description: Optional[StrictStr] = None
|
32
|
+
items: Optional[List[LineItemV1]] = Field(default=None, description="Each line item can have sub-items to create a hierarchy.")
|
33
|
+
quantity: Optional[StrictInt] = None
|
34
|
+
title: Optional[StrictStr] = None
|
35
|
+
unit_price: Optional[StrictStr] = None
|
36
|
+
additional_properties: Dict[str, Any] = {}
|
37
|
+
__properties: ClassVar[List[str]] = ["amount_in_cent", "description", "items", "quantity", "title", "unit_price"]
|
38
|
+
|
39
|
+
model_config = ConfigDict(
|
40
|
+
populate_by_name=True,
|
41
|
+
validate_assignment=True,
|
42
|
+
protected_namespaces=(),
|
43
|
+
)
|
44
|
+
|
45
|
+
|
46
|
+
def to_str(self) -> str:
|
47
|
+
"""Returns the string representation of the model using alias"""
|
48
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
49
|
+
|
50
|
+
def to_json(self) -> str:
|
51
|
+
"""Returns the JSON representation of the model using alias"""
|
52
|
+
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
53
|
+
return json.dumps(self.to_dict())
|
54
|
+
|
55
|
+
@classmethod
|
56
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
57
|
+
"""Create an instance of LineItemV1 from a JSON string"""
|
58
|
+
return cls.from_dict(json.loads(json_str))
|
59
|
+
|
60
|
+
def to_dict(self) -> Dict[str, Any]:
|
61
|
+
"""Return the dictionary representation of the model using alias.
|
62
|
+
|
63
|
+
This has the following differences from calling pydantic's
|
64
|
+
`self.model_dump(by_alias=True)`:
|
65
|
+
|
66
|
+
* `None` is only added to the output dict for nullable fields that
|
67
|
+
were set at model initialization. Other fields with value `None`
|
68
|
+
are ignored.
|
69
|
+
* Fields in `self.additional_properties` are added to the output dict.
|
70
|
+
"""
|
71
|
+
excluded_fields: Set[str] = set([
|
72
|
+
"additional_properties",
|
73
|
+
])
|
74
|
+
|
75
|
+
_dict = self.model_dump(
|
76
|
+
by_alias=True,
|
77
|
+
exclude=excluded_fields,
|
78
|
+
exclude_none=True,
|
79
|
+
)
|
80
|
+
# override the default output from pydantic by calling `to_dict()` of each item in items (list)
|
81
|
+
_items = []
|
82
|
+
if self.items:
|
83
|
+
for _item in self.items:
|
84
|
+
if _item:
|
85
|
+
_items.append(_item.to_dict())
|
86
|
+
_dict['items'] = _items
|
87
|
+
# puts key-value pairs in additional_properties in the top level
|
88
|
+
if self.additional_properties is not None:
|
89
|
+
for _key, _value in self.additional_properties.items():
|
90
|
+
_dict[_key] = _value
|
91
|
+
|
92
|
+
return _dict
|
93
|
+
|
94
|
+
@classmethod
|
95
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
96
|
+
"""Create an instance of LineItemV1 from a dict"""
|
97
|
+
if obj is None:
|
98
|
+
return None
|
99
|
+
|
100
|
+
if not isinstance(obj, dict):
|
101
|
+
return cls.model_validate(obj)
|
102
|
+
|
103
|
+
_obj = cls.model_validate({
|
104
|
+
"amount_in_cent": obj.get("amount_in_cent"),
|
105
|
+
"description": obj.get("description"),
|
106
|
+
"items": [LineItemV1.from_dict(_item) for _item in obj["items"]] if obj.get("items") is not None else None,
|
107
|
+
"quantity": obj.get("quantity"),
|
108
|
+
"title": obj.get("title"),
|
109
|
+
"unit_price": obj.get("unit_price")
|
110
|
+
})
|
111
|
+
# store additional fields in additional_properties
|
112
|
+
for _key in obj.keys():
|
113
|
+
if _key not in cls.__properties:
|
114
|
+
_obj.additional_properties[_key] = obj.get(_key)
|
115
|
+
|
116
|
+
return _obj
|
117
|
+
|
118
|
+
# TODO: Rewrite to not use raise_errors
|
119
|
+
LineItemV1.model_rebuild(raise_errors=False)
|
120
|
+
|
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers.
|
7
7
|
|
8
|
-
The version of the OpenAPI document: v1.11.
|
8
|
+
The version of the OpenAPI document: v1.11.11
|
9
9
|
Contact: support@ory.sh
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
11
|
|
@@ -0,0 +1,113 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
"""
|
4
|
+
Ory APIs
|
5
|
+
|
6
|
+
Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers.
|
7
|
+
|
8
|
+
The version of the OpenAPI document: v1.11.11
|
9
|
+
Contact: support@ory.sh
|
10
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
|
+
|
12
|
+
Do not edit the class manually.
|
13
|
+
""" # noqa: E501
|
14
|
+
|
15
|
+
|
16
|
+
from __future__ import annotations
|
17
|
+
import pprint
|
18
|
+
import re # noqa: F401
|
19
|
+
import json
|
20
|
+
|
21
|
+
from pydantic import BaseModel, ConfigDict, StrictBool, StrictStr
|
22
|
+
from typing import Any, ClassVar, Dict, List
|
23
|
+
from ory_client.models.billing_period_bucket import BillingPeriodBucket
|
24
|
+
from typing import Optional, Set
|
25
|
+
from typing_extensions import Self
|
26
|
+
|
27
|
+
class ListInvoicesResponse(BaseModel):
|
28
|
+
"""
|
29
|
+
ListInvoicesResponse
|
30
|
+
""" # noqa: E501
|
31
|
+
buckets: List[BillingPeriodBucket]
|
32
|
+
has_next_page: StrictBool
|
33
|
+
next_page_token: StrictStr
|
34
|
+
additional_properties: Dict[str, Any] = {}
|
35
|
+
__properties: ClassVar[List[str]] = ["buckets", "has_next_page", "next_page_token"]
|
36
|
+
|
37
|
+
model_config = ConfigDict(
|
38
|
+
populate_by_name=True,
|
39
|
+
validate_assignment=True,
|
40
|
+
protected_namespaces=(),
|
41
|
+
)
|
42
|
+
|
43
|
+
|
44
|
+
def to_str(self) -> str:
|
45
|
+
"""Returns the string representation of the model using alias"""
|
46
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
47
|
+
|
48
|
+
def to_json(self) -> str:
|
49
|
+
"""Returns the JSON representation of the model using alias"""
|
50
|
+
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
51
|
+
return json.dumps(self.to_dict())
|
52
|
+
|
53
|
+
@classmethod
|
54
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
55
|
+
"""Create an instance of ListInvoicesResponse from a JSON string"""
|
56
|
+
return cls.from_dict(json.loads(json_str))
|
57
|
+
|
58
|
+
def to_dict(self) -> Dict[str, Any]:
|
59
|
+
"""Return the dictionary representation of the model using alias.
|
60
|
+
|
61
|
+
This has the following differences from calling pydantic's
|
62
|
+
`self.model_dump(by_alias=True)`:
|
63
|
+
|
64
|
+
* `None` is only added to the output dict for nullable fields that
|
65
|
+
were set at model initialization. Other fields with value `None`
|
66
|
+
are ignored.
|
67
|
+
* Fields in `self.additional_properties` are added to the output dict.
|
68
|
+
"""
|
69
|
+
excluded_fields: Set[str] = set([
|
70
|
+
"additional_properties",
|
71
|
+
])
|
72
|
+
|
73
|
+
_dict = self.model_dump(
|
74
|
+
by_alias=True,
|
75
|
+
exclude=excluded_fields,
|
76
|
+
exclude_none=True,
|
77
|
+
)
|
78
|
+
# override the default output from pydantic by calling `to_dict()` of each item in buckets (list)
|
79
|
+
_items = []
|
80
|
+
if self.buckets:
|
81
|
+
for _item in self.buckets:
|
82
|
+
if _item:
|
83
|
+
_items.append(_item.to_dict())
|
84
|
+
_dict['buckets'] = _items
|
85
|
+
# puts key-value pairs in additional_properties in the top level
|
86
|
+
if self.additional_properties is not None:
|
87
|
+
for _key, _value in self.additional_properties.items():
|
88
|
+
_dict[_key] = _value
|
89
|
+
|
90
|
+
return _dict
|
91
|
+
|
92
|
+
@classmethod
|
93
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
94
|
+
"""Create an instance of ListInvoicesResponse from a dict"""
|
95
|
+
if obj is None:
|
96
|
+
return None
|
97
|
+
|
98
|
+
if not isinstance(obj, dict):
|
99
|
+
return cls.model_validate(obj)
|
100
|
+
|
101
|
+
_obj = cls.model_validate({
|
102
|
+
"buckets": [BillingPeriodBucket.from_dict(_item) for _item in obj["buckets"]] if obj.get("buckets") is not None else None,
|
103
|
+
"has_next_page": obj.get("has_next_page"),
|
104
|
+
"next_page_token": obj.get("next_page_token")
|
105
|
+
})
|
106
|
+
# store additional fields in additional_properties
|
107
|
+
for _key in obj.keys():
|
108
|
+
if _key not in cls.__properties:
|
109
|
+
_obj.additional_properties[_key] = obj.get(_key)
|
110
|
+
|
111
|
+
return _obj
|
112
|
+
|
113
|
+
|
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers.
|
7
7
|
|
8
|
-
The version of the OpenAPI document: v1.11.
|
8
|
+
The version of the OpenAPI document: v1.11.11
|
9
9
|
Contact: support@ory.sh
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
11
|
|
@@ -18,7 +18,7 @@ import pprint
|
|
18
18
|
import re # noqa: F401
|
19
19
|
import json
|
20
20
|
|
21
|
-
from pydantic import BaseModel, ConfigDict
|
21
|
+
from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr
|
22
22
|
from typing import Any, ClassVar, Dict, List
|
23
23
|
from ory_client.models.organization import Organization
|
24
24
|
from typing import Optional, Set
|
@@ -28,9 +28,11 @@ class ListOrganizationsResponse(BaseModel):
|
|
28
28
|
"""
|
29
29
|
B2B SSO Organization List
|
30
30
|
""" # noqa: E501
|
31
|
-
|
31
|
+
has_next_page: StrictBool
|
32
|
+
next_page_token: StrictStr
|
33
|
+
organizations: List[Organization] = Field(description="The list of organizations")
|
32
34
|
additional_properties: Dict[str, Any] = {}
|
33
|
-
__properties: ClassVar[List[str]] = ["organizations"]
|
35
|
+
__properties: ClassVar[List[str]] = ["has_next_page", "next_page_token", "organizations"]
|
34
36
|
|
35
37
|
model_config = ConfigDict(
|
36
38
|
populate_by_name=True,
|
@@ -97,6 +99,8 @@ class ListOrganizationsResponse(BaseModel):
|
|
97
99
|
return cls.model_validate(obj)
|
98
100
|
|
99
101
|
_obj = cls.model_validate({
|
102
|
+
"has_next_page": obj.get("has_next_page"),
|
103
|
+
"next_page_token": obj.get("next_page_token"),
|
100
104
|
"organizations": [Organization.from_dict(_item) for _item in obj["organizations"]] if obj.get("organizations") is not None else None
|
101
105
|
})
|
102
106
|
# store additional fields in additional_properties
|