From 6cec1c50bab416a2882da187433b4a2a13f5d8cf Mon Sep 17 00:00:00 2001 From: Mridang Agarwalla Date: Mon, 26 May 2025 09:58:20 +0300 Subject: [PATCH] chore: update generated output under .openapi markers --- zitadel_client/models/__init__.py | 1 - .../models/action_service_beta_execution.py | 14 +-- ...tion_service_beta_execution_target_type.py | 89 ------------------- .../action_service_set_execution_request.py | 14 +-- ..._service_get_instance_features_response.py | 5 -- ...re_service_get_system_features_response.py | 5 -- ...e_service_set_instance_features_request.py | 2 - ...ure_service_set_system_features_request.py | 2 - .../identity_provider_service_saml_config.py | 4 +- 9 files changed, 9 insertions(+), 127 deletions(-) delete mode 100644 zitadel_client/models/action_service_beta_execution_target_type.py diff --git a/zitadel_client/models/__init__.py b/zitadel_client/models/__init__.py index 93015d7f..5c2f3f26 100644 --- a/zitadel_client/models/__init__.py +++ b/zitadel_client/models/__init__.py @@ -19,7 +19,6 @@ from zitadel_client.models.action_service_beta_delete_target_response import ActionServiceBetaDeleteTargetResponse from zitadel_client.models.action_service_beta_event_execution import ActionServiceBetaEventExecution from zitadel_client.models.action_service_beta_execution import ActionServiceBetaExecution -from zitadel_client.models.action_service_beta_execution_target_type import ActionServiceBetaExecutionTargetType from zitadel_client.models.action_service_beta_function_execution import ActionServiceBetaFunctionExecution from zitadel_client.models.action_service_beta_get_target_response import ActionServiceBetaGetTargetResponse from zitadel_client.models.action_service_beta_in_target_ids_filter import ActionServiceBetaInTargetIDsFilter diff --git a/zitadel_client/models/action_service_beta_execution.py b/zitadel_client/models/action_service_beta_execution.py index c2ce5a31..dd544268 100644 --- a/zitadel_client/models/action_service_beta_execution.py +++ b/zitadel_client/models/action_service_beta_execution.py @@ -18,10 +18,9 @@ import json from datetime import datetime -from pydantic import BaseModel, ConfigDict, Field +from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional from zitadel_client.models.action_service_beta_condition import ActionServiceBetaCondition -from zitadel_client.models.action_service_beta_execution_target_type import ActionServiceBetaExecutionTargetType from typing import Optional, Set from typing_extensions import Self @@ -32,7 +31,7 @@ class ActionServiceBetaExecution(BaseModel): condition: Optional[ActionServiceBetaCondition] = None creation_date: Optional[datetime] = Field(default=None, description="The timestamp of the execution creation.", alias="creationDate") change_date: Optional[datetime] = Field(default=None, description="The timestamp of the last change to the execution.", alias="changeDate") - targets: Optional[List[ActionServiceBetaExecutionTargetType]] = Field(default=None, description="Ordered list of targets/includes called during the execution.") + targets: Optional[List[StrictStr]] = Field(default=None, description="Ordered list of targets called during the execution.") model_config = ConfigDict( populate_by_name=True, @@ -76,13 +75,6 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of condition if self.condition: _dict['condition'] = self.condition.to_dict() - # override the default output from pydantic by calling `to_dict()` of each item in targets (list) - _items = [] - if self.targets: - for _item_targets in self.targets: - if _item_targets: - _items.append(_item_targets.to_dict()) - _dict['targets'] = _items return _dict @classmethod @@ -98,7 +90,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "condition": ActionServiceBetaCondition.from_dict(obj["condition"]) if obj.get("condition") is not None else None, "creationDate": obj.get("creationDate"), "changeDate": obj.get("changeDate"), - "targets": [ActionServiceBetaExecutionTargetType.from_dict(_item) for _item in obj["targets"]] if obj.get("targets") is not None else None + "targets": obj.get("targets") }) return _obj diff --git a/zitadel_client/models/action_service_beta_execution_target_type.py b/zitadel_client/models/action_service_beta_execution_target_type.py deleted file mode 100644 index 808bf383..00000000 --- a/zitadel_client/models/action_service_beta_execution_target_type.py +++ /dev/null @@ -1,89 +0,0 @@ -# coding: utf-8 - -""" - Zitadel SDK - - The Zitadel SDK is a convenience wrapper around the Zitadel APIs to assist you in integrating with your Zitadel environment. This SDK enables you to handle resources, settings, and configurations within the Zitadel platform. - - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from zitadel_client.models.action_service_beta_condition import ActionServiceBetaCondition -from typing import Optional, Set -from typing_extensions import Self - -class ActionServiceBetaExecutionTargetType(BaseModel): - """ - ActionServiceBetaExecutionTargetType - """ # noqa: E501 - target: Optional[StrictStr] = Field(default=None, description="Unique identifier of existing target to call.") - include: Optional[ActionServiceBetaCondition] = None - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of ActionServiceBetaExecutionTargetType from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of ActionServiceBetaExecutionTargetType from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "target": obj.get("target"), - "include": ActionServiceBetaCondition.from_dict(obj["include"]) if obj.get("include") is not None else None - }) - return _obj - - diff --git a/zitadel_client/models/action_service_set_execution_request.py b/zitadel_client/models/action_service_set_execution_request.py index 3b1a4b42..58b67bcf 100644 --- a/zitadel_client/models/action_service_set_execution_request.py +++ b/zitadel_client/models/action_service_set_execution_request.py @@ -17,10 +17,9 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field +from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional from zitadel_client.models.action_service_beta_condition import ActionServiceBetaCondition -from zitadel_client.models.action_service_beta_execution_target_type import ActionServiceBetaExecutionTargetType from typing import Optional, Set from typing_extensions import Self @@ -29,7 +28,7 @@ class ActionServiceSetExecutionRequest(BaseModel): ActionServiceSetExecutionRequest """ # noqa: E501 condition: Optional[ActionServiceBetaCondition] = None - targets: Optional[List[ActionServiceBetaExecutionTargetType]] = Field(default=None, description="Ordered list of targets/includes called during the execution.") + targets: Optional[List[StrictStr]] = Field(default=None, description="Ordered list of targets called during the execution.") model_config = ConfigDict( populate_by_name=True, @@ -73,13 +72,6 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of condition if self.condition: _dict['condition'] = self.condition.to_dict() - # override the default output from pydantic by calling `to_dict()` of each item in targets (list) - _items = [] - if self.targets: - for _item_targets in self.targets: - if _item_targets: - _items.append(_item_targets.to_dict()) - _dict['targets'] = _items return _dict @classmethod @@ -93,7 +85,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "condition": ActionServiceBetaCondition.from_dict(obj["condition"]) if obj.get("condition") is not None else None, - "targets": [ActionServiceBetaExecutionTargetType.from_dict(_item) for _item in obj["targets"]] if obj.get("targets") is not None else None + "targets": obj.get("targets") }) return _obj diff --git a/zitadel_client/models/feature_service_get_instance_features_response.py b/zitadel_client/models/feature_service_get_instance_features_response.py index df7de043..768c1c54 100644 --- a/zitadel_client/models/feature_service_get_instance_features_response.py +++ b/zitadel_client/models/feature_service_get_instance_features_response.py @@ -36,7 +36,6 @@ class FeatureServiceGetInstanceFeaturesResponse(BaseModel): oidc_legacy_introspection: Optional[FeatureServiceFeatureFlag] = Field(default=None, alias="oidcLegacyIntrospection") user_schema: Optional[FeatureServiceFeatureFlag] = Field(default=None, alias="userSchema") oidc_token_exchange: Optional[FeatureServiceFeatureFlag] = Field(default=None, alias="oidcTokenExchange") - actions: Optional[FeatureServiceFeatureFlag] = None improved_performance: Optional[FeatureServiceImprovedPerformanceFeatureFlag] = Field(default=None, alias="improvedPerformance") web_key: Optional[FeatureServiceFeatureFlag] = Field(default=None, alias="webKey") debug_oidc_parent_error: Optional[FeatureServiceFeatureFlag] = Field(default=None, alias="debugOidcParentError") @@ -104,9 +103,6 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of oidc_token_exchange if self.oidc_token_exchange: _dict['oidcTokenExchange'] = self.oidc_token_exchange.to_dict() - # override the default output from pydantic by calling `to_dict()` of actions - if self.actions: - _dict['actions'] = self.actions.to_dict() # override the default output from pydantic by calling `to_dict()` of improved_performance if self.improved_performance: _dict['improvedPerformance'] = self.improved_performance.to_dict() @@ -152,7 +148,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "oidcLegacyIntrospection": FeatureServiceFeatureFlag.from_dict(obj["oidcLegacyIntrospection"]) if obj.get("oidcLegacyIntrospection") is not None else None, "userSchema": FeatureServiceFeatureFlag.from_dict(obj["userSchema"]) if obj.get("userSchema") is not None else None, "oidcTokenExchange": FeatureServiceFeatureFlag.from_dict(obj["oidcTokenExchange"]) if obj.get("oidcTokenExchange") is not None else None, - "actions": FeatureServiceFeatureFlag.from_dict(obj["actions"]) if obj.get("actions") is not None else None, "improvedPerformance": FeatureServiceImprovedPerformanceFeatureFlag.from_dict(obj["improvedPerformance"]) if obj.get("improvedPerformance") is not None else None, "webKey": FeatureServiceFeatureFlag.from_dict(obj["webKey"]) if obj.get("webKey") is not None else None, "debugOidcParentError": FeatureServiceFeatureFlag.from_dict(obj["debugOidcParentError"]) if obj.get("debugOidcParentError") is not None else None, diff --git a/zitadel_client/models/feature_service_get_system_features_response.py b/zitadel_client/models/feature_service_get_system_features_response.py index c2571f38..5a638f46 100644 --- a/zitadel_client/models/feature_service_get_system_features_response.py +++ b/zitadel_client/models/feature_service_get_system_features_response.py @@ -36,7 +36,6 @@ class FeatureServiceGetSystemFeaturesResponse(BaseModel): oidc_legacy_introspection: Optional[FeatureServiceFeatureFlag] = Field(default=None, alias="oidcLegacyIntrospection") user_schema: Optional[FeatureServiceFeatureFlag] = Field(default=None, alias="userSchema") oidc_token_exchange: Optional[FeatureServiceFeatureFlag] = Field(default=None, alias="oidcTokenExchange") - actions: Optional[FeatureServiceFeatureFlag] = None improved_performance: Optional[FeatureServiceImprovedPerformanceFeatureFlag] = Field(default=None, alias="improvedPerformance") oidc_single_v1_session_termination: Optional[FeatureServiceFeatureFlag] = Field(default=None, alias="oidcSingleV1SessionTermination") disable_user_token_event: Optional[FeatureServiceFeatureFlag] = Field(default=None, alias="disableUserTokenEvent") @@ -101,9 +100,6 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of oidc_token_exchange if self.oidc_token_exchange: _dict['oidcTokenExchange'] = self.oidc_token_exchange.to_dict() - # override the default output from pydantic by calling `to_dict()` of actions - if self.actions: - _dict['actions'] = self.actions.to_dict() # override the default output from pydantic by calling `to_dict()` of improved_performance if self.improved_performance: _dict['improvedPerformance'] = self.improved_performance.to_dict() @@ -140,7 +136,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "oidcLegacyIntrospection": FeatureServiceFeatureFlag.from_dict(obj["oidcLegacyIntrospection"]) if obj.get("oidcLegacyIntrospection") is not None else None, "userSchema": FeatureServiceFeatureFlag.from_dict(obj["userSchema"]) if obj.get("userSchema") is not None else None, "oidcTokenExchange": FeatureServiceFeatureFlag.from_dict(obj["oidcTokenExchange"]) if obj.get("oidcTokenExchange") is not None else None, - "actions": FeatureServiceFeatureFlag.from_dict(obj["actions"]) if obj.get("actions") is not None else None, "improvedPerformance": FeatureServiceImprovedPerformanceFeatureFlag.from_dict(obj["improvedPerformance"]) if obj.get("improvedPerformance") is not None else None, "oidcSingleV1SessionTermination": FeatureServiceFeatureFlag.from_dict(obj["oidcSingleV1SessionTermination"]) if obj.get("oidcSingleV1SessionTermination") is not None else None, "disableUserTokenEvent": FeatureServiceFeatureFlag.from_dict(obj["disableUserTokenEvent"]) if obj.get("disableUserTokenEvent") is not None else None, diff --git a/zitadel_client/models/feature_service_set_instance_features_request.py b/zitadel_client/models/feature_service_set_instance_features_request.py index b12e07ca..d1e16799 100644 --- a/zitadel_client/models/feature_service_set_instance_features_request.py +++ b/zitadel_client/models/feature_service_set_instance_features_request.py @@ -33,7 +33,6 @@ class FeatureServiceSetInstanceFeaturesRequest(BaseModel): oidc_legacy_introspection: Optional[StrictBool] = Field(default=None, description="We have recently refactored the introspection endpoint for performance reasons. This feature can be used to rollback to the legacy implementation if unexpected bugs arise. Please raise an issue if you needed to enable this feature.", alias="oidcLegacyIntrospection") user_schema: Optional[StrictBool] = Field(default=None, description="User Schemas allow to manage data schemas of user. If the flag is enabled, you'll be able to use the new API and its features. Note that it is still in an early stage.", alias="userSchema") oidc_token_exchange: Optional[StrictBool] = Field(default=None, description="Enable the experimental `urn:ietf:params:oauth:grant-type:token-exchange` grant type for the OIDC token endpoint. Token exchange can be used to request tokens with a lesser scope or impersonate other users. See the security policy to allow impersonation on an instance.", alias="oidcTokenExchange") - actions: Optional[StrictBool] = Field(default=None, description="Actions allow to manage data executions and targets. If the flag is enabled, you'll be able to use the new API and its features. Note that it is still in an early stage.") improved_performance: Optional[List[FeatureServiceImprovedPerformance]] = Field(default=None, description="Improves performance of specified execution paths.", alias="improvedPerformance") web_key: Optional[StrictBool] = Field(default=None, description="Enable the webkey/v3alpha API. The first time this feature is enabled, web keys are generated and activated.", alias="webKey") debug_oidc_parent_error: Optional[StrictBool] = Field(default=None, description="Return parent errors to OIDC clients for debugging purposes. Parent errors may contain sensitive data or unwanted details about the system status of zitadel. Only enable if really needed.", alias="debugOidcParentError") @@ -103,7 +102,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "oidcLegacyIntrospection": obj.get("oidcLegacyIntrospection"), "userSchema": obj.get("userSchema"), "oidcTokenExchange": obj.get("oidcTokenExchange"), - "actions": obj.get("actions"), "improvedPerformance": obj.get("improvedPerformance"), "webKey": obj.get("webKey"), "debugOidcParentError": obj.get("debugOidcParentError"), diff --git a/zitadel_client/models/feature_service_set_system_features_request.py b/zitadel_client/models/feature_service_set_system_features_request.py index 2456ac62..fe71feb9 100644 --- a/zitadel_client/models/feature_service_set_system_features_request.py +++ b/zitadel_client/models/feature_service_set_system_features_request.py @@ -33,7 +33,6 @@ class FeatureServiceSetSystemFeaturesRequest(BaseModel): oidc_legacy_introspection: Optional[StrictBool] = Field(default=None, description="We have recently refactored the introspection endpoint for performance reasons. This feature can be used to rollback to the legacy implementation if unexpected bugs arise. Please raise an issue if you needed to enable this feature.", alias="oidcLegacyIntrospection") user_schema: Optional[StrictBool] = Field(default=None, description="User Schemas allow to manage data schemas of user. If the flag is enabled, you'll be able to use the new API and its features. Note that it is still in an early stage.", alias="userSchema") oidc_token_exchange: Optional[StrictBool] = Field(default=None, description="Enable the experimental `urn:ietf:params:oauth:grant-type:token-exchange` grant type for the OIDC token endpoint. Token exchange can be used to request tokens with a lesser scope or impersonate other users. See the security policy to allow impersonation on an instance.", alias="oidcTokenExchange") - actions: Optional[StrictBool] = Field(default=None, description="Actions allow to manage data executions and targets. If the flag is enabled, you'll be able to use the new API and its features. Note that it is still in an early stage.") improved_performance: Optional[List[FeatureServiceImprovedPerformance]] = Field(default=None, description="Improves performance of specified execution paths.", alias="improvedPerformance") oidc_single_v1_session_termination: Optional[StrictBool] = Field(default=None, description="If the flag is enabled, you'll be able to terminate a single session from the login UI by providing an id_token with a `sid` claim as id_token_hint on the end_session endpoint. Note that currently all sessions from the same user agent (browser) are terminated in the login UI. Sessions managed through the Session API already allow the termination of single sessions.", alias="oidcSingleV1SessionTermination") disable_user_token_event: Optional[StrictBool] = Field(default=None, description="Do not push user token meta-event user.token.v2.added to improve performance on many concurrent single (machine-)user logins", alias="disableUserTokenEvent") @@ -100,7 +99,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "oidcLegacyIntrospection": obj.get("oidcLegacyIntrospection"), "userSchema": obj.get("userSchema"), "oidcTokenExchange": obj.get("oidcTokenExchange"), - "actions": obj.get("actions"), "improvedPerformance": obj.get("improvedPerformance"), "oidcSingleV1SessionTermination": obj.get("oidcSingleV1SessionTermination"), "disableUserTokenEvent": obj.get("disableUserTokenEvent"), diff --git a/zitadel_client/models/identity_provider_service_saml_config.py b/zitadel_client/models/identity_provider_service_saml_config.py index 63daf0b8..c81b9e16 100644 --- a/zitadel_client/models/identity_provider_service_saml_config.py +++ b/zitadel_client/models/identity_provider_service_saml_config.py @@ -33,6 +33,7 @@ class IdentityProviderServiceSAMLConfig(BaseModel): with_signed_request: Optional[StrictBool] = Field(default=None, description="Boolean which defines if the authentication requests are signed.", alias="withSignedRequest") name_id_format: Optional[IdentityProviderServiceSAMLNameIDFormat] = Field(default=IdentityProviderServiceSAMLNameIDFormat.SAML_NAME_ID_FORMAT_UNSPECIFIED, alias="nameIdFormat") transient_mapping_attribute_name: Optional[StrictStr] = Field(default=None, description="Optional name of the attribute, which will be used to map the user in case the nameid-format returned is `urn:oasis:names:tc:SAML:2.0:nameid-format:transient`.", alias="transientMappingAttributeName") + federated_logout_enabled: Optional[StrictBool] = Field(default=None, description="Boolean weather federated logout is enabled. If enabled, ZITADEL will send a logout request to the identity provider, if the user terminates the session in ZITADEL. Be sure to provide a SLO endpoint as part of the metadata.", alias="federatedLogoutEnabled") model_config = ConfigDict( populate_by_name=True, @@ -89,7 +90,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "binding": obj.get("binding") if obj.get("binding") is not None else IdentityProviderServiceSAMLBinding.SAML_BINDING_UNSPECIFIED, "withSignedRequest": obj.get("withSignedRequest"), "nameIdFormat": obj.get("nameIdFormat") if obj.get("nameIdFormat") is not None else IdentityProviderServiceSAMLNameIDFormat.SAML_NAME_ID_FORMAT_UNSPECIFIED, - "transientMappingAttributeName": obj.get("transientMappingAttributeName") + "transientMappingAttributeName": obj.get("transientMappingAttributeName"), + "federatedLogoutEnabled": obj.get("federatedLogoutEnabled") }) return _obj