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
1 change: 0 additions & 1 deletion zitadel_client/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
14 changes: 3 additions & 11 deletions zitadel_client/models/action_service_beta_execution.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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,
Expand Down Expand Up @@ -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
Expand All @@ -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

Expand Down
89 changes: 0 additions & 89 deletions zitadel_client/models/action_service_beta_execution_target_type.py

This file was deleted.

14 changes: 3 additions & 11 deletions zitadel_client/models/action_service_set_execution_request.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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,
Expand Down Expand Up @@ -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
Expand All @@ -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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down Expand Up @@ -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()
Expand Down Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down Expand Up @@ -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()
Expand Down Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down Expand Up @@ -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"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down Expand Up @@ -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"),
Expand Down
Loading
Loading