diff --git a/etc/docker-compose.yaml b/etc/docker-compose.yaml index db0a518..de7731a 100644 --- a/etc/docker-compose.yaml +++ b/etc/docker-compose.yaml @@ -20,7 +20,7 @@ services: restart: 'no' networks: - storage - image: 'ghcr.io/zitadel/zitadel:v4.0.0' + image: 'ghcr.io/zitadel/zitadel:v4.2.0' command: 'init --config /example-zitadel-config.yaml --config /example-zitadel-secrets.yaml' depends_on: db: @@ -34,7 +34,7 @@ services: restart: 'no' networks: - storage - image: 'ghcr.io/zitadel/zitadel:v4.0.0-debug' + image: 'ghcr.io/zitadel/zitadel:v4.2.0-debug' user: root entrypoint: '/bin/bash' command: [ "-c", "/app/zitadel setup --config /example-zitadel-config.yaml --config /example-zitadel-secrets.yaml --steps /example-zitadel-init-steps.yaml --masterkey \"my_test_masterkey_0123456789ABEF\" && echo \"--- ZITADEL SETUP COMPLETE ---\" && echo \"Personal Access Token (PAT) will be in ./zitadel_output/pat.txt on your host.\" && echo \"Service Account Key will be in ./zitadel_output/sa-key.json on your host.\" && echo \"OAuth Client ID and Secret will be in 'zitadel' service logs (grep for 'Application created').\"" ] @@ -55,7 +55,7 @@ services: networks: - backend - storage - image: 'ghcr.io/zitadel/zitadel:v4.0.0' + image: 'ghcr.io/zitadel/zitadel:v4.2.0' command: > start --config /example-zitadel-config.yaml --config /example-zitadel-secrets.yaml diff --git a/zitadel_client/api/action_service_api.py b/zitadel_client/api/action_service_api.py index 15bcefc..34670f8 100644 --- a/zitadel_client/api/action_service_api.py +++ b/zitadel_client/api/action_service_api.py @@ -54,10 +54,12 @@ def __init__(self, api_client=None) -> None: @validate_call - def create_target( self, action_service_create_target_request: ActionServiceCreateTargetRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ActionServiceCreateTargetResponse: - """CreateTarget + def create_target( self, action_service_create_target_request: Optional[ActionServiceCreateTargetRequest] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ActionServiceCreateTargetResponse: + if action_service_create_target_request is None: + action_service_create_target_request = {} + """Create Target - Create Target Create a new target to your endpoint, which can be used in executions. Required permission: - `action.target.write` Required feature flag: - `actions` + Create a new target to your endpoint, which can be used in executions. Required permission: - `action.target.write` Required feature flag: - `actions` :param action_service_create_target_request: (required) :type action_service_create_target_request: ActionServiceCreateTargetRequest @@ -183,9 +185,9 @@ def _create_target_serialize( @validate_call def delete_target( self, action_service_delete_target_request: ActionServiceDeleteTargetRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ActionServiceDeleteTargetResponse: - """DeleteTarget + """Delete Target - Delete Target Delete an existing target. This will remove it from any configured execution as well. In case the target is not found, the request will return a successful response as the desired state is already achieved. Required permission: - `action.target.delete` Required feature flag: - `actions` + Delete an existing target. This will remove it from any configured execution as well. In case the target is not found, the request will return a successful response as the desired state is already achieved. Required permission: - `action.target.delete` Required feature flag: - `actions` :param action_service_delete_target_request: (required) :type action_service_delete_target_request: ActionServiceDeleteTargetRequest @@ -311,9 +313,9 @@ def _delete_target_serialize( @validate_call def get_target( self, action_service_get_target_request: ActionServiceGetTargetRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ActionServiceGetTargetResponse: - """GetTarget + """Get Target - Get Target Returns the target identified by the requested ID. Required permission: - `action.target.read` Required feature flag: - `actions` + Returns the target identified by the requested ID. Required permission: - `action.target.read` Required feature flag: - `actions` :param action_service_get_target_request: (required) :type action_service_get_target_request: ActionServiceGetTargetRequest @@ -441,9 +443,9 @@ def _get_target_serialize( def list_execution_functions( self, body: Optional[Dict[str, Any]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ActionServiceListExecutionFunctionsResponse: if body is None: body = {} - """ListExecutionFunctions + """List Execution Functions - List Execution Functions List all available functions which can be used as condition for executions. + List all available functions which can be used as condition for executions. :param body: (required) :type body: object @@ -571,9 +573,9 @@ def _list_execution_functions_serialize( def list_execution_methods( self, body: Optional[Dict[str, Any]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ActionServiceListExecutionMethodsResponse: if body is None: body = {} - """ListExecutionMethods + """List Execution Methods - List Execution Methods List all available methods which can be used as condition for executions. + List all available methods which can be used as condition for executions. :param body: (required) :type body: object @@ -701,9 +703,9 @@ def _list_execution_methods_serialize( def list_execution_services( self, body: Optional[Dict[str, Any]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ActionServiceListExecutionServicesResponse: if body is None: body = {} - """ListExecutionServices + """List Execution Services - List Execution Services List all available services which can be used as condition for executions. + List all available services which can be used as condition for executions. :param body: (required) :type body: object @@ -829,9 +831,9 @@ def _list_execution_services_serialize( @validate_call def list_executions( self, action_service_list_executions_request: ActionServiceListExecutionsRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ActionServiceListExecutionsResponse: - """ListExecutions + """List Executions - List Executions List all matching executions. By default all executions of the instance are returned that have at least one execution target. Make sure to include a limit and sorting for pagination. Required permission: - `action.execution.read` Required feature flag: - `actions` + List all matching executions. By default all executions of the instance are returned that have at least one execution target. Make sure to include a limit and sorting for pagination. Required permission: - `action.execution.read` Required feature flag: - `actions` :param action_service_list_executions_request: (required) :type action_service_list_executions_request: ActionServiceListExecutionsRequest @@ -957,9 +959,9 @@ def _list_executions_serialize( @validate_call def list_targets( self, action_service_list_targets_request: ActionServiceListTargetsRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ActionServiceListTargetsResponse: - """ListTargets + """List targets - List targets List all matching targets. By default all targets of the instance are returned. Make sure to include a limit and sorting for pagination. Required permission: - `action.target.read` Required feature flag: - `actions` + List all matching targets. By default all targets of the instance are returned. Make sure to include a limit and sorting for pagination. Required permission: - `action.target.read` Required feature flag: - `actions` :param action_service_list_targets_request: (required) :type action_service_list_targets_request: ActionServiceListTargetsRequest @@ -1085,9 +1087,9 @@ def _list_targets_serialize( @validate_call def set_execution( self, action_service_set_execution_request: ActionServiceSetExecutionRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ActionServiceSetExecutionResponse: - """SetExecution + """Set Execution - Set Execution Sets an execution to call a target or include the targets of another execution. Setting an empty list of targets will remove all targets from the execution, making it a noop. Required permission: - `action.execution.write` Required feature flag: - `actions` + Sets an execution to call a target or include the targets of another execution. Setting an empty list of targets will remove all targets from the execution, making it a noop. Required permission: - `action.execution.write` Required feature flag: - `actions` :param action_service_set_execution_request: (required) :type action_service_set_execution_request: ActionServiceSetExecutionRequest @@ -1212,10 +1214,12 @@ def _set_execution_serialize( @validate_call - def update_target( self, action_service_update_target_request: ActionServiceUpdateTargetRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ActionServiceUpdateTargetResponse: - """UpdateTarget + def update_target( self, action_service_update_target_request: Optional[ActionServiceUpdateTargetRequest] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ActionServiceUpdateTargetResponse: + if action_service_update_target_request is None: + action_service_update_target_request = {} + """Update Target - Update Target Update an existing target. To generate a new signing key set the optional expirationSigningKey. Required permission: - `action.target.write` Required feature flag: - `actions` + Update an existing target. To generate a new signing key set the optional expirationSigningKey. Required permission: - `action.target.write` Required feature flag: - `actions` :param action_service_update_target_request: (required) :type action_service_update_target_request: ActionServiceUpdateTargetRequest diff --git a/zitadel_client/api/beta_action_service_api.py b/zitadel_client/api/beta_action_service_api.py index 807b518..efea93a 100644 --- a/zitadel_client/api/beta_action_service_api.py +++ b/zitadel_client/api/beta_action_service_api.py @@ -54,10 +54,12 @@ def __init__(self, api_client=None) -> None: @validate_call - def create_target( self, beta_action_service_create_target_request: BetaActionServiceCreateTargetRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> BetaActionServiceCreateTargetResponse: - """CreateTarget + def create_target( self, beta_action_service_create_target_request: Optional[BetaActionServiceCreateTargetRequest] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> BetaActionServiceCreateTargetResponse: + if beta_action_service_create_target_request is None: + beta_action_service_create_target_request = {} + """Create Target - Create Target Create a new target to your endpoint, which can be used in executions. Required permission: - `action.target.write` Required feature flag: - `actions` + Create a new target to your endpoint, which can be used in executions. Required permission: - `action.target.write` Required feature flag: - `actions` :param beta_action_service_create_target_request: (required) :type beta_action_service_create_target_request: BetaActionServiceCreateTargetRequest @@ -183,9 +185,9 @@ def _create_target_serialize( @validate_call def delete_target( self, beta_action_service_delete_target_request: BetaActionServiceDeleteTargetRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> BetaActionServiceDeleteTargetResponse: - """DeleteTarget + """Delete Target - Delete Target Delete an existing target. This will remove it from any configured execution as well. In case the target is not found, the request will return a successful response as the desired state is already achieved. Required permission: - `action.target.delete` Required feature flag: - `actions` + Delete an existing target. This will remove it from any configured execution as well. In case the target is not found, the request will return a successful response as the desired state is already achieved. Required permission: - `action.target.delete` Required feature flag: - `actions` :param beta_action_service_delete_target_request: (required) :type beta_action_service_delete_target_request: BetaActionServiceDeleteTargetRequest @@ -311,9 +313,9 @@ def _delete_target_serialize( @validate_call def get_target( self, beta_action_service_get_target_request: BetaActionServiceGetTargetRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> BetaActionServiceGetTargetResponse: - """GetTarget + """Get Target - Get Target Returns the target identified by the requested ID. Required permission: - `action.target.read` Required feature flag: - `actions` + Returns the target identified by the requested ID. Required permission: - `action.target.read` Required feature flag: - `actions` :param beta_action_service_get_target_request: (required) :type beta_action_service_get_target_request: BetaActionServiceGetTargetRequest @@ -441,9 +443,9 @@ def _get_target_serialize( def list_execution_functions( self, body: Optional[Dict[str, Any]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> BetaActionServiceListExecutionFunctionsResponse: if body is None: body = {} - """ListExecutionFunctions + """List Execution Functions - List Execution Functions List all available functions which can be used as condition for executions. + List all available functions which can be used as condition for executions. :param body: (required) :type body: object @@ -571,9 +573,9 @@ def _list_execution_functions_serialize( def list_execution_methods( self, body: Optional[Dict[str, Any]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> BetaActionServiceListExecutionMethodsResponse: if body is None: body = {} - """ListExecutionMethods + """List Execution Methods - List Execution Methods List all available methods which can be used as condition for executions. + List all available methods which can be used as condition for executions. :param body: (required) :type body: object @@ -701,9 +703,9 @@ def _list_execution_methods_serialize( def list_execution_services( self, body: Optional[Dict[str, Any]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> BetaActionServiceListExecutionServicesResponse: if body is None: body = {} - """ListExecutionServices + """List Execution Services - List Execution Services List all available services which can be used as condition for executions. + List all available services which can be used as condition for executions. :param body: (required) :type body: object @@ -829,9 +831,9 @@ def _list_execution_services_serialize( @validate_call def list_executions( self, beta_action_service_list_executions_request: BetaActionServiceListExecutionsRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> BetaActionServiceListExecutionsResponse: - """ListExecutions + """List Executions - List Executions List all matching executions. By default all executions of the instance are returned that have at least one execution target. Make sure to include a limit and sorting for pagination. Required permission: - `action.execution.read` Required feature flag: - `actions` + List all matching executions. By default all executions of the instance are returned that have at least one execution target. Make sure to include a limit and sorting for pagination. Required permission: - `action.execution.read` Required feature flag: - `actions` :param beta_action_service_list_executions_request: (required) :type beta_action_service_list_executions_request: BetaActionServiceListExecutionsRequest @@ -957,9 +959,9 @@ def _list_executions_serialize( @validate_call def list_targets( self, beta_action_service_list_targets_request: BetaActionServiceListTargetsRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> BetaActionServiceListTargetsResponse: - """ListTargets + """List targets - List targets List all matching targets. By default all targets of the instance are returned. Make sure to include a limit and sorting for pagination. Required permission: - `action.target.read` Required feature flag: - `actions` + List all matching targets. By default all targets of the instance are returned. Make sure to include a limit and sorting for pagination. Required permission: - `action.target.read` Required feature flag: - `actions` :param beta_action_service_list_targets_request: (required) :type beta_action_service_list_targets_request: BetaActionServiceListTargetsRequest @@ -1085,9 +1087,9 @@ def _list_targets_serialize( @validate_call def set_execution( self, beta_action_service_set_execution_request: BetaActionServiceSetExecutionRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> BetaActionServiceSetExecutionResponse: - """SetExecution + """Set Execution - Set Execution Sets an execution to call a target or include the targets of another execution. Setting an empty list of targets will remove all targets from the execution, making it a noop. Required permission: - `action.execution.write` Required feature flag: - `actions` + Sets an execution to call a target or include the targets of another execution. Setting an empty list of targets will remove all targets from the execution, making it a noop. Required permission: - `action.execution.write` Required feature flag: - `actions` :param beta_action_service_set_execution_request: (required) :type beta_action_service_set_execution_request: BetaActionServiceSetExecutionRequest @@ -1212,10 +1214,12 @@ def _set_execution_serialize( @validate_call - def update_target( self, beta_action_service_update_target_request: BetaActionServiceUpdateTargetRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> BetaActionServiceUpdateTargetResponse: - """UpdateTarget + def update_target( self, beta_action_service_update_target_request: Optional[BetaActionServiceUpdateTargetRequest] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> BetaActionServiceUpdateTargetResponse: + if beta_action_service_update_target_request is None: + beta_action_service_update_target_request = {} + """Update Target - Update Target Update an existing target. To generate a new signing key set the optional expirationSigningKey. Required permission: - `action.target.write` Required feature flag: - `actions` + Update an existing target. To generate a new signing key set the optional expirationSigningKey. Required permission: - `action.target.write` Required feature flag: - `actions` :param beta_action_service_update_target_request: (required) :type beta_action_service_update_target_request: BetaActionServiceUpdateTargetRequest diff --git a/zitadel_client/api/beta_app_service_api.py b/zitadel_client/api/beta_app_service_api.py index 3937299..704b8e7 100644 --- a/zitadel_client/api/beta_app_service_api.py +++ b/zitadel_client/api/beta_app_service_api.py @@ -60,10 +60,12 @@ def __init__(self, api_client=None) -> None: @validate_call - def create_application( self, beta_app_service_create_application_request: BetaAppServiceCreateApplicationRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> BetaAppServiceCreateApplicationResponse: - """CreateApplication + def create_application( self, beta_app_service_create_application_request: Optional[BetaAppServiceCreateApplicationRequest] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> BetaAppServiceCreateApplicationResponse: + if beta_app_service_create_application_request is None: + beta_app_service_create_application_request = {} + """Create Application - Create Application Create an application. The application can be OIDC, API or SAML type, based on the input. Required permissions: - project.app.write + Create an application. The application can be OIDC, API or SAML type, based on the input. Required permissions: - project.app.write :param beta_app_service_create_application_request: (required) :type beta_app_service_create_application_request: BetaAppServiceCreateApplicationRequest @@ -189,9 +191,9 @@ def _create_application_serialize( @validate_call def create_application_key( self, beta_app_service_create_application_key_request: BetaAppServiceCreateApplicationKeyRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> BetaAppServiceCreateApplicationKeyResponse: - """CreateApplicationKey + """Create Application Key - Create Application Key Create a new application key, which is used to authorize an API application. Key details are returned in the response. They must be stored safely, as it will not be possible to retrieve them again. Required permissions: - `project.app.write` + Create a new application key, which is used to authorize an API application. Key details are returned in the response. They must be stored safely, as it will not be possible to retrieve them again. Required permissions: - `project.app.write` :param beta_app_service_create_application_key_request: (required) :type beta_app_service_create_application_key_request: BetaAppServiceCreateApplicationKeyRequest @@ -317,9 +319,9 @@ def _create_application_key_serialize( @validate_call def deactivate_application( self, beta_app_service_deactivate_application_request: BetaAppServiceDeactivateApplicationRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> BetaAppServiceDeactivateApplicationResponse: - """DeactivateApplication + """Deactivate Application - Deactivate Application Deactivates the application belonging to the input project and matching the provided application ID. Required permissions: - project.app.write + Deactivates the application belonging to the input project and matching the provided application ID. Required permissions: - project.app.write :param beta_app_service_deactivate_application_request: (required) :type beta_app_service_deactivate_application_request: BetaAppServiceDeactivateApplicationRequest @@ -445,9 +447,9 @@ def _deactivate_application_serialize( @validate_call def delete_application( self, beta_app_service_delete_application_request: BetaAppServiceDeleteApplicationRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> BetaAppServiceDeleteApplicationResponse: - """DeleteApplication + """Delete Application - Delete Application Deletes the application belonging to the input project and matching the provided application ID. Required permissions: - project.app.delete + Deletes the application belonging to the input project and matching the provided application ID. Required permissions: - project.app.delete :param beta_app_service_delete_application_request: (required) :type beta_app_service_delete_application_request: BetaAppServiceDeleteApplicationRequest @@ -573,9 +575,9 @@ def _delete_application_serialize( @validate_call def delete_application_key( self, beta_app_service_delete_application_key_request: BetaAppServiceDeleteApplicationKeyRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> BetaAppServiceDeleteApplicationKeyResponse: - """DeleteApplicationKey + """Delete Application Key - Delete Application Key Deletes an application key matching the provided ID. Organization ID is not mandatory, but helps with filtering/performance. The deletion time is returned in response message. Required permissions: - `project.app.write` + Deletes an application key matching the provided ID. Organization ID is not mandatory, but helps with filtering/performance. The deletion time is returned in response message. Required permissions: - `project.app.write` :param beta_app_service_delete_application_key_request: (required) :type beta_app_service_delete_application_key_request: BetaAppServiceDeleteApplicationKeyRequest @@ -701,9 +703,9 @@ def _delete_application_key_serialize( @validate_call def get_application( self, beta_app_service_get_application_request: BetaAppServiceGetApplicationRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> BetaAppServiceGetApplicationResponse: - """GetApplication + """Get Application - Get Application Retrieves the application matching the provided ID. Required permissions: - project.app.read + Retrieves the application matching the provided ID. Required permissions: - project.app.read :param beta_app_service_get_application_request: (required) :type beta_app_service_get_application_request: BetaAppServiceGetApplicationRequest @@ -829,9 +831,9 @@ def _get_application_serialize( @validate_call def get_application_key( self, beta_app_service_get_application_key_request: BetaAppServiceGetApplicationKeyRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> BetaAppServiceGetApplicationKeyResponse: - """GetApplicationKey + """Get Application Key - Get Application Key Retrieves the application key matching the provided ID. Specifying a project, organization and app ID is optional but help with filtering/performance. Required permissions: - project.app.read + Retrieves the application key matching the provided ID. Specifying a project, organization and app ID is optional but help with filtering/performance. Required permissions: - project.app.read :param beta_app_service_get_application_key_request: (required) :type beta_app_service_get_application_key_request: BetaAppServiceGetApplicationKeyRequest @@ -956,10 +958,12 @@ def _get_application_key_serialize( @validate_call - def list_application_keys( self, beta_app_service_list_application_keys_request: BetaAppServiceListApplicationKeysRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> BetaAppServiceListApplicationKeysResponse: - """ListApplicationKeys + def list_application_keys( self, beta_app_service_list_application_keys_request: Optional[BetaAppServiceListApplicationKeysRequest] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> BetaAppServiceListApplicationKeysResponse: + if beta_app_service_list_application_keys_request is None: + beta_app_service_list_application_keys_request = {} + """List Application Keys - List Application Keys Returns a list of application keys matching the input parameters. The result can be sorted by id, aggregate, creation date, expiration date, resource owner or type. It can also be filtered by app, project or organization ID. Required permissions: - project.app.read + Returns a list of application keys matching the input parameters. The result can be sorted by id, aggregate, creation date, expiration date, resource owner or type. It can also be filtered by app, project or organization ID. Required permissions: - project.app.read :param beta_app_service_list_application_keys_request: (required) :type beta_app_service_list_application_keys_request: BetaAppServiceListApplicationKeysRequest @@ -1085,9 +1089,9 @@ def _list_application_keys_serialize( @validate_call def list_applications( self, beta_app_service_list_applications_request: BetaAppServiceListApplicationsRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> BetaAppServiceListApplicationsResponse: - """ListApplications + """List Applications - List Applications Returns a list of applications matching the input parameters that belong to the provided project. The result can be sorted by app id, name, creation date, change date or state. It can also be filtered by app state, app type and app name. Required permissions: - project.app.read + Returns a list of applications matching the input parameters that belong to the provided project. The result can be sorted by app id, name, creation date, change date or state. It can also be filtered by app state, app type and app name. Required permissions: - project.app.read :param beta_app_service_list_applications_request: (required) :type beta_app_service_list_applications_request: BetaAppServiceListApplicationsRequest @@ -1213,9 +1217,9 @@ def _list_applications_serialize( @validate_call def reactivate_application( self, beta_app_service_reactivate_application_request: BetaAppServiceReactivateApplicationRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> BetaAppServiceReactivateApplicationResponse: - """ReactivateApplication + """Reactivate Application - Reactivate Application Reactivates the application belonging to the input project and matching the provided application ID. Required permissions: - project.app.write + Reactivates the application belonging to the input project and matching the provided application ID. Required permissions: - project.app.write :param beta_app_service_reactivate_application_request: (required) :type beta_app_service_reactivate_application_request: BetaAppServiceReactivateApplicationRequest @@ -1340,10 +1344,12 @@ def _reactivate_application_serialize( @validate_call - def regenerate_client_secret( self, beta_app_service_regenerate_client_secret_request: BetaAppServiceRegenerateClientSecretRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> BetaAppServiceRegenerateClientSecretResponse: - """RegenerateClientSecret + def regenerate_client_secret( self, beta_app_service_regenerate_client_secret_request: Optional[BetaAppServiceRegenerateClientSecretRequest] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> BetaAppServiceRegenerateClientSecretResponse: + if beta_app_service_regenerate_client_secret_request is None: + beta_app_service_regenerate_client_secret_request = {} + """Regenerate Client Secret - Regenerate Client Secret Regenerates the client secret of an API or OIDC application that belongs to the input project. Required permissions: - project.app.write + Regenerates the client secret of an API or OIDC application that belongs to the input project. Required permissions: - project.app.write :param beta_app_service_regenerate_client_secret_request: (required) :type beta_app_service_regenerate_client_secret_request: BetaAppServiceRegenerateClientSecretRequest @@ -1468,10 +1474,12 @@ def _regenerate_client_secret_serialize( @validate_call - def update_application( self, beta_app_service_update_application_request: BetaAppServiceUpdateApplicationRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> BetaAppServiceUpdateApplicationResponse: - """UpdateApplication + def update_application( self, beta_app_service_update_application_request: Optional[BetaAppServiceUpdateApplicationRequest] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> BetaAppServiceUpdateApplicationResponse: + if beta_app_service_update_application_request is None: + beta_app_service_update_application_request = {} + """Update Application - Update Application Changes the configuration of an OIDC, API or SAML type application, as well as the application name, based on the input provided. Required permissions: - project.app.write + Changes the configuration of an OIDC, API or SAML type application, as well as the application name, based on the input provided. Required permissions: - project.app.write :param beta_app_service_update_application_request: (required) :type beta_app_service_update_application_request: BetaAppServiceUpdateApplicationRequest diff --git a/zitadel_client/api/beta_authorization_service_api.py b/zitadel_client/api/beta_authorization_service_api.py index 10708b8..e4bced7 100644 --- a/zitadel_client/api/beta_authorization_service_api.py +++ b/zitadel_client/api/beta_authorization_service_api.py @@ -49,9 +49,9 @@ def __init__(self, api_client=None) -> None: @validate_call def activate_authorization( self, beta_authorization_service_activate_authorization_request: BetaAuthorizationServiceActivateAuthorizationRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> BetaAuthorizationServiceActivateAuthorizationResponse: - """ActivateAuthorization + """Activate Authorization - Activate Authorization ActivateAuthorization activates an existing but inactive authorization. In case the authorization is already active, the request will return a successful response as the desired state is already achieved. You can check the change date in the response to verify if the authorization was activated by the request. Required permissions: - \"user.grant.write\" + ActivateAuthorization activates an existing but inactive authorization. In case the authorization is already active, the request will return a successful response as the desired state is already achieved. You can check the change date in the response to verify if the authorization was activated by the request. Required permissions: - \"user.grant.write\" :param beta_authorization_service_activate_authorization_request: (required) :type beta_authorization_service_activate_authorization_request: BetaAuthorizationServiceActivateAuthorizationRequest @@ -177,9 +177,9 @@ def _activate_authorization_serialize( @validate_call def create_authorization( self, beta_authorization_service_create_authorization_request: BetaAuthorizationServiceCreateAuthorizationRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> BetaAuthorizationServiceCreateAuthorizationResponse: - """CreateAuthorization + """Create Authorization - Create Authorization CreateAuthorization creates a new authorization for a user in an owned or granted project. Required permissions: - \"user.grant.write\" + CreateAuthorization creates a new authorization for a user in an owned or granted project. Required permissions: - \"user.grant.write\" :param beta_authorization_service_create_authorization_request: (required) :type beta_authorization_service_create_authorization_request: BetaAuthorizationServiceCreateAuthorizationRequest @@ -305,9 +305,9 @@ def _create_authorization_serialize( @validate_call def deactivate_authorization( self, beta_authorization_service_deactivate_authorization_request: BetaAuthorizationServiceDeactivateAuthorizationRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> BetaAuthorizationServiceDeactivateAuthorizationResponse: - """DeactivateAuthorization + """Deactivate Authorization - Deactivate Authorization DeactivateAuthorization deactivates an existing and active authorization. In case the authorization is already inactive, the request will return a successful response as the desired state is already achieved. You can check the change date in the response to verify if the authorization was deactivated by the request. Required permissions: - \"user.grant.write\" + DeactivateAuthorization deactivates an existing and active authorization. In case the authorization is already inactive, the request will return a successful response as the desired state is already achieved. You can check the change date in the response to verify if the authorization was deactivated by the request. Required permissions: - \"user.grant.write\" :param beta_authorization_service_deactivate_authorization_request: (required) :type beta_authorization_service_deactivate_authorization_request: BetaAuthorizationServiceDeactivateAuthorizationRequest @@ -433,9 +433,9 @@ def _deactivate_authorization_serialize( @validate_call def delete_authorization( self, beta_authorization_service_delete_authorization_request: BetaAuthorizationServiceDeleteAuthorizationRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> BetaAuthorizationServiceDeleteAuthorizationResponse: - """DeleteAuthorization + """Delete Authorization - Delete Authorization DeleteAuthorization deletes the authorization. In case the authorization is not found, the request will return a successful response as the desired state is already achieved. You can check the deletion date in the response to verify if the authorization was deleted by the request. Required permissions: - \"user.grant.delete\" + DeleteAuthorization deletes the authorization. In case the authorization is not found, the request will return a successful response as the desired state is already achieved. You can check the deletion date in the response to verify if the authorization was deleted by the request. Required permissions: - \"user.grant.delete\" :param beta_authorization_service_delete_authorization_request: (required) :type beta_authorization_service_delete_authorization_request: BetaAuthorizationServiceDeleteAuthorizationRequest @@ -561,9 +561,9 @@ def _delete_authorization_serialize( @validate_call def list_authorizations( self, beta_authorization_service_list_authorizations_request: BetaAuthorizationServiceListAuthorizationsRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> BetaAuthorizationServiceListAuthorizationsResponse: - """ListAuthorizations + """List Authorizations - List Authorizations ListAuthorizations returns all authorizations matching the request and necessary permissions. Required permissions: - \"user.grant.read\" - no permissions required for listing own authorizations + ListAuthorizations returns all authorizations matching the request and necessary permissions. Required permissions: - \"user.grant.read\" - no permissions required for listing own authorizations :param beta_authorization_service_list_authorizations_request: (required) :type beta_authorization_service_list_authorizations_request: BetaAuthorizationServiceListAuthorizationsRequest @@ -689,9 +689,9 @@ def _list_authorizations_serialize( @validate_call def update_authorization( self, beta_authorization_service_update_authorization_request: BetaAuthorizationServiceUpdateAuthorizationRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> BetaAuthorizationServiceUpdateAuthorizationResponse: - """UpdateAuthorization + """Update Authorization - Update Authorization UpdateAuthorization updates the authorization. Note that any role keys previously granted to the user and not present in the request will be revoked. Required permissions: - \"user.grant.write\" + UpdateAuthorization updates the authorization. Note that any role keys previously granted to the user and not present in the request will be revoked. Required permissions: - \"user.grant.write\" :param beta_authorization_service_update_authorization_request: (required) :type beta_authorization_service_update_authorization_request: BetaAuthorizationServiceUpdateAuthorizationRequest diff --git a/zitadel_client/api/beta_instance_service_api.py b/zitadel_client/api/beta_instance_service_api.py index 386bd2c..b920da6 100644 --- a/zitadel_client/api/beta_instance_service_api.py +++ b/zitadel_client/api/beta_instance_service_api.py @@ -57,9 +57,9 @@ def __init__(self, api_client=None) -> None: @validate_call def add_custom_domain( self, beta_instance_service_add_custom_domain_request: BetaInstanceServiceAddCustomDomainRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> BetaInstanceServiceAddCustomDomainResponse: - """AddCustomDomain + """Add Custom Domain - Add Custom Domain Adds a custom domain to the instance in context. The instance_id in the input message will be used in the future Required permissions: - `system.domain.write` + Adds a custom domain to the instance in context. The instance_id in the input message will be used in the future Required permissions: - `system.domain.write` :param beta_instance_service_add_custom_domain_request: (required) :type beta_instance_service_add_custom_domain_request: BetaInstanceServiceAddCustomDomainRequest @@ -185,9 +185,9 @@ def _add_custom_domain_serialize( @validate_call def add_trusted_domain( self, beta_instance_service_add_trusted_domain_request: BetaInstanceServiceAddTrustedDomainRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> BetaInstanceServiceAddTrustedDomainResponse: - """AddTrustedDomain + """Add Trusted Domain - Add Trusted Domain Adds a trusted domain to the instance. The instance_id in the input message will be used in the future. Required permissions: - `iam.write` + Adds a trusted domain to the instance. The instance_id in the input message will be used in the future. Required permissions: - `iam.write` :param beta_instance_service_add_trusted_domain_request: (required) :type beta_instance_service_add_trusted_domain_request: BetaInstanceServiceAddTrustedDomainRequest @@ -313,9 +313,9 @@ def _add_trusted_domain_serialize( @validate_call def delete_instance( self, beta_instance_service_delete_instance_request: BetaInstanceServiceDeleteInstanceRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> BetaInstanceServiceDeleteInstanceResponse: - """DeleteInstance + """Delete Instance - Delete Instance Deletes an instance with the given ID. Required permissions: - `system.instance.delete` + Deletes an instance with the given ID. Required permissions: - `system.instance.delete` :param beta_instance_service_delete_instance_request: (required) :type beta_instance_service_delete_instance_request: BetaInstanceServiceDeleteInstanceRequest @@ -441,9 +441,9 @@ def _delete_instance_serialize( @validate_call def get_instance( self, beta_instance_service_get_instance_request: BetaInstanceServiceGetInstanceRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> BetaInstanceServiceGetInstanceResponse: - """GetInstance + """Get Instance - Get Instance Returns the instance in the current context. The instance_id in the input message will be used in the future. Required permissions: - `iam.read` + Returns the instance in the current context. The instance_id in the input message will be used in the future. Required permissions: - `iam.read` :param beta_instance_service_get_instance_request: (required) :type beta_instance_service_get_instance_request: BetaInstanceServiceGetInstanceRequest @@ -569,9 +569,9 @@ def _get_instance_serialize( @validate_call def list_custom_domains( self, beta_instance_service_list_custom_domains_request: BetaInstanceServiceListCustomDomainsRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> BetaInstanceServiceListCustomDomainsResponse: - """ListCustomDomains + """List Custom Domains - List Custom Domains Lists custom domains of the instance. The instance_id in the input message will be used in the future. Required permissions: - `iam.read` + Lists custom domains of the instance. The instance_id in the input message will be used in the future. Required permissions: - `iam.read` :param beta_instance_service_list_custom_domains_request: (required) :type beta_instance_service_list_custom_domains_request: BetaInstanceServiceListCustomDomainsRequest @@ -697,9 +697,9 @@ def _list_custom_domains_serialize( @validate_call def list_instances( self, beta_instance_service_list_instances_request: BetaInstanceServiceListInstancesRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> BetaInstanceServiceListInstancesResponse: - """ListInstances + """List Instances - List Instances Lists instances matching the given query. The query can be used to filter either by instance ID or domain. The request is paginated and returns 100 results by default. Required permissions: - `system.instance.read` + Lists instances matching the given query. The query can be used to filter either by instance ID or domain. The request is paginated and returns 100 results by default. Required permissions: - `system.instance.read` :param beta_instance_service_list_instances_request: (required) :type beta_instance_service_list_instances_request: BetaInstanceServiceListInstancesRequest @@ -825,9 +825,9 @@ def _list_instances_serialize( @validate_call def list_trusted_domains( self, beta_instance_service_list_trusted_domains_request: BetaInstanceServiceListTrustedDomainsRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> BetaInstanceServiceListTrustedDomainsResponse: - """ListTrustedDomains + """List Trusted Domains - List Trusted Domains Lists trusted domains of the instance. The instance_id in the input message will be used in the future. Required permissions: - `iam.read` + Lists trusted domains of the instance. The instance_id in the input message will be used in the future. Required permissions: - `iam.read` :param beta_instance_service_list_trusted_domains_request: (required) :type beta_instance_service_list_trusted_domains_request: BetaInstanceServiceListTrustedDomainsRequest @@ -953,9 +953,9 @@ def _list_trusted_domains_serialize( @validate_call def remove_custom_domain( self, beta_instance_service_remove_custom_domain_request: BetaInstanceServiceRemoveCustomDomainRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> BetaInstanceServiceRemoveCustomDomainResponse: - """RemoveCustomDomain + """Remove Custom Domain - Remove Custom Domain Removes a custom domain from the instance. The instance_id in the input message will be used in the future. Required permissions: - `system.domain.write` + Removes a custom domain from the instance. The instance_id in the input message will be used in the future. Required permissions: - `system.domain.write` :param beta_instance_service_remove_custom_domain_request: (required) :type beta_instance_service_remove_custom_domain_request: BetaInstanceServiceRemoveCustomDomainRequest @@ -1081,9 +1081,9 @@ def _remove_custom_domain_serialize( @validate_call def remove_trusted_domain( self, beta_instance_service_remove_trusted_domain_request: BetaInstanceServiceRemoveTrustedDomainRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> BetaInstanceServiceRemoveTrustedDomainResponse: - """RemoveTrustedDomain + """Remove Trusted Domain - Remove Trusted Domain Removes a trusted domain from the instance. The instance_id in the input message will be used in the future. Required permissions: - `iam.write` + Removes a trusted domain from the instance. The instance_id in the input message will be used in the future. Required permissions: - `iam.write` :param beta_instance_service_remove_trusted_domain_request: (required) :type beta_instance_service_remove_trusted_domain_request: BetaInstanceServiceRemoveTrustedDomainRequest @@ -1209,9 +1209,9 @@ def _remove_trusted_domain_serialize( @validate_call def update_instance( self, beta_instance_service_update_instance_request: BetaInstanceServiceUpdateInstanceRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> BetaInstanceServiceUpdateInstanceResponse: - """UpdateInstance + """Update Instance - Update Instance Updates instance in context with the given name. The instance_id in the input message will be used in the future. Required permissions: - `iam.write` + Updates instance in context with the given name. The instance_id in the input message will be used in the future. Required permissions: - `iam.write` :param beta_instance_service_update_instance_request: (required) :type beta_instance_service_update_instance_request: BetaInstanceServiceUpdateInstanceRequest diff --git a/zitadel_client/api/beta_internal_permission_service_api.py b/zitadel_client/api/beta_internal_permission_service_api.py index 60e2a51..5d34630 100644 --- a/zitadel_client/api/beta_internal_permission_service_api.py +++ b/zitadel_client/api/beta_internal_permission_service_api.py @@ -45,9 +45,9 @@ def __init__(self, api_client=None) -> None: @validate_call def create_administrator( self, beta_internal_permission_service_create_administrator_request: BetaInternalPermissionServiceCreateAdministratorRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> BetaInternalPermissionServiceCreateAdministratorResponse: - """CreateAdministrator + """CreateAdministrator grants a administrator role to a user for a specific resource. - CreateAdministrator grants a administrator role to a user for a specific resource. Note that the roles are specific to the resource type. This means that if you want to grant a user the administrator role for an organization and a project, you need to create two administrator roles. Required permissions depend on the resource type: - \"iam.member.write\" for instance administrators - \"org.member.write\" for organization administrators - \"project.member.write\" for project administrators - \"project.grant.member.write\" for project grant administrators + Note that the roles are specific to the resource type. This means that if you want to grant a user the administrator role for an organization and a project, you need to create two administrator roles. Required permissions depend on the resource type: - \"iam.member.write\" for instance administrators - \"org.member.write\" for organization administrators - \"project.member.write\" for project administrators - \"project.grant.member.write\" for project grant administrators :param beta_internal_permission_service_create_administrator_request: (required) :type beta_internal_permission_service_create_administrator_request: BetaInternalPermissionServiceCreateAdministratorRequest @@ -173,9 +173,9 @@ def _create_administrator_serialize( @validate_call def delete_administrator( self, beta_internal_permission_service_delete_administrator_request: BetaInternalPermissionServiceDeleteAdministratorRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> BetaInternalPermissionServiceDeleteAdministratorResponse: - """DeleteAdministrator + """DeleteAdministrator revokes a administrator role from a user. - DeleteAdministrator revokes a administrator role from a user. In case the administrator role is not found, the request will return a successful response as the desired state is already achieved. You can check the deletion date in the response to verify if the administrator role was deleted during the request. Required permissions depend on the resource type: - \"iam.member.delete\" for instance administrators - \"org.member.delete\" for organization administrators - \"project.member.delete\" for project administrators - \"project.grant.member.delete\" for project grant administrators + In case the administrator role is not found, the request will return a successful response as the desired state is already achieved. You can check the deletion date in the response to verify if the administrator role was deleted during the request. Required permissions depend on the resource type: - \"iam.member.delete\" for instance administrators - \"org.member.delete\" for organization administrators - \"project.member.delete\" for project administrators - \"project.grant.member.delete\" for project grant administrators :param beta_internal_permission_service_delete_administrator_request: (required) :type beta_internal_permission_service_delete_administrator_request: BetaInternalPermissionServiceDeleteAdministratorRequest @@ -301,9 +301,9 @@ def _delete_administrator_serialize( @validate_call def list_administrators( self, beta_internal_permission_service_list_administrators_request: BetaInternalPermissionServiceListAdministratorsRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> BetaInternalPermissionServiceListAdministratorsResponse: - """ListAdministrators + """ListAdministrators returns all administrators and its roles matching the request and necessary permissions. - ListAdministrators returns all administrators and its roles matching the request and necessary permissions. Required permissions depend on the resource type: - \"iam.member.read\" for instance administrators - \"org.member.read\" for organization administrators - \"project.member.read\" for project administrators - \"project.grant.member.read\" for project grant administrators - no permissions required for listing own administrator roles + Required permissions depend on the resource type: - \"iam.member.read\" for instance administrators - \"org.member.read\" for organization administrators - \"project.member.read\" for project administrators - \"project.grant.member.read\" for project grant administrators - no permissions required for listing own administrator roles :param beta_internal_permission_service_list_administrators_request: (required) :type beta_internal_permission_service_list_administrators_request: BetaInternalPermissionServiceListAdministratorsRequest @@ -429,9 +429,9 @@ def _list_administrators_serialize( @validate_call def update_administrator( self, beta_internal_permission_service_update_administrator_request: BetaInternalPermissionServiceUpdateAdministratorRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> BetaInternalPermissionServiceUpdateAdministratorResponse: - """UpdateAdministrator + """UpdateAdministrator updates the specific administrator role. - UpdateAdministrator updates the specific administrator role. Note that any role previously granted to the user and not present in the request will be revoked. Required permissions depend on the resource type: - \"iam.member.write\" for instance administrators - \"org.member.write\" for organization administrators - \"project.member.write\" for project administrators - \"project.grant.member.write\" for project grant administrators + Note that any role previously granted to the user and not present in the request will be revoked. Required permissions depend on the resource type: - \"iam.member.write\" for instance administrators - \"org.member.write\" for organization administrators - \"project.member.write\" for project administrators - \"project.grant.member.write\" for project grant administrators :param beta_internal_permission_service_update_administrator_request: (required) :type beta_internal_permission_service_update_administrator_request: BetaInternalPermissionServiceUpdateAdministratorRequest diff --git a/zitadel_client/api/beta_oidc_service_api.py b/zitadel_client/api/beta_oidc_service_api.py index 494e38c..1444b90 100644 --- a/zitadel_client/api/beta_oidc_service_api.py +++ b/zitadel_client/api/beta_oidc_service_api.py @@ -40,7 +40,9 @@ def __init__(self, api_client=None) -> None: @validate_call - def create_callback( self, beta_oidc_service_create_callback_request: BetaOIDCServiceCreateCallbackRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> BetaOIDCServiceCreateCallbackResponse: + def create_callback( self, beta_oidc_service_create_callback_request: Optional[BetaOIDCServiceCreateCallbackRequest] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> BetaOIDCServiceCreateCallbackResponse: + if beta_oidc_service_create_callback_request is None: + beta_oidc_service_create_callback_request = {} """CreateCallback diff --git a/zitadel_client/api/beta_organization_service_api.py b/zitadel_client/api/beta_organization_service_api.py index 1e6ba38..7db0919 100644 --- a/zitadel_client/api/beta_organization_service_api.py +++ b/zitadel_client/api/beta_organization_service_api.py @@ -65,9 +65,9 @@ def __init__(self, api_client=None) -> None: @validate_call def activate_organization( self, beta_organization_service_activate_organization_request: BetaOrganizationServiceActivateOrganizationRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> BetaOrganizationServiceActivateOrganizationResponse: - """ActivateOrganization + """Activate Organization - Activate Organization Set the state of my organization to active. The state of the organization has to be deactivated to perform the request. Users of this organization will be able to log in again. Required permission: - `org.write` + Set the state of my organization to active. The state of the organization has to be deactivated to perform the request. Users of this organization will be able to log in again. Required permission: - `org.write` :param beta_organization_service_activate_organization_request: (required) :type beta_organization_service_activate_organization_request: BetaOrganizationServiceActivateOrganizationRequest @@ -193,9 +193,9 @@ def _activate_organization_serialize( @validate_call def add_organization_domain( self, beta_organization_service_add_organization_domain_request: BetaOrganizationServiceAddOrganizationDomainRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> BetaOrganizationServiceAddOrganizationDomainResponse: - """AddOrganizationDomain + """Add Organization Domain - Add Organization Domain Add a new domain to an organization. The domains are used to identify to which organization a user belongs. Required permission: - `org.write` + Add a new domain to an organization. The domains are used to identify to which organization a user belongs. Required permission: - `org.write` :param beta_organization_service_add_organization_domain_request: (required) :type beta_organization_service_add_organization_domain_request: BetaOrganizationServiceAddOrganizationDomainRequest @@ -321,9 +321,9 @@ def _add_organization_domain_serialize( @validate_call def create_organization( self, beta_organization_service_create_organization_request: BetaOrganizationServiceCreateOrganizationRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> BetaOrganizationServiceCreateOrganizationResponse: - """CreateOrganization + """Create Organization - Create Organization Create a new organization with an administrative user. If no specific roles are sent for the users, they will be granted the role ORG_OWNER. Required permission: - `org.create` Deprecated: Use [AddOrganization](/apis/resources/org_service_v2/organization-service-add-organization.api.mdx) instead to create an organization. + Create a new organization with an administrative user. If no specific roles are sent for the users, they will be granted the role ORG_OWNER. Required permission: - `org.create` Deprecated: Use [AddOrganization](/apis/resources/org_service_v2/organization-service-add-organization.api.mdx) instead to create an organization. :param beta_organization_service_create_organization_request: (required) :type beta_organization_service_create_organization_request: BetaOrganizationServiceCreateOrganizationRequest @@ -449,9 +449,9 @@ def _create_organization_serialize( @validate_call def deactivate_organization( self, beta_organization_service_deactivate_organization_request: BetaOrganizationServiceDeactivateOrganizationRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> BetaOrganizationServiceDeactivateOrganizationResponse: - """DeactivateOrganization + """Deactivate Organization - Deactivate Organization Sets the state of my organization to deactivated. Users of this organization will not be able to log in. Required permission: - `org.write` + Sets the state of my organization to deactivated. Users of this organization will not be able to log in. Required permission: - `org.write` :param beta_organization_service_deactivate_organization_request: (required) :type beta_organization_service_deactivate_organization_request: BetaOrganizationServiceDeactivateOrganizationRequest @@ -577,9 +577,9 @@ def _deactivate_organization_serialize( @validate_call def delete_organization( self, beta_organization_service_delete_organization_request: BetaOrganizationServiceDeleteOrganizationRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> BetaOrganizationServiceDeleteOrganizationResponse: - """DeleteOrganization + """Delete Organization - Delete Organization Deletes the organization and all its resources (Users, Projects, Grants to and from the org). Users of this organization will not be able to log in. Required permission: - `org.delete` + Deletes the organization and all its resources (Users, Projects, Grants to and from the org). Users of this organization will not be able to log in. Required permission: - `org.delete` :param beta_organization_service_delete_organization_request: (required) :type beta_organization_service_delete_organization_request: BetaOrganizationServiceDeleteOrganizationRequest @@ -705,9 +705,9 @@ def _delete_organization_serialize( @validate_call def delete_organization_domain( self, beta_organization_service_delete_organization_domain_request: BetaOrganizationServiceDeleteOrganizationDomainRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> BetaOrganizationServiceDeleteOrganizationDomainResponse: - """DeleteOrganizationDomain + """Delete Organization Domain - Delete Organization Domain Delete a new domain from an organization. The domains are used to identify to which organization a user belongs. If the uses use the domain for login, this will not be possible afterwards. They have to use another domain instead. Required permission: - `org.write` + Delete a new domain from an organization. The domains are used to identify to which organization a user belongs. If the uses use the domain for login, this will not be possible afterwards. They have to use another domain instead. Required permission: - `org.write` :param beta_organization_service_delete_organization_domain_request: (required) :type beta_organization_service_delete_organization_domain_request: BetaOrganizationServiceDeleteOrganizationDomainRequest @@ -833,9 +833,9 @@ def _delete_organization_domain_serialize( @validate_call def delete_organization_metadata( self, beta_organization_service_delete_organization_metadata_request: BetaOrganizationServiceDeleteOrganizationMetadataRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> BetaOrganizationServiceDeleteOrganizationMetadataResponse: - """DeleteOrganizationMetadata + """Delete Organization Metadata - Delete Organization Metadata Delete metadata objects from an organization with a specific key. Required permission: - `org.write` + Delete metadata objects from an organization with a specific key. Required permission: - `org.write` :param beta_organization_service_delete_organization_metadata_request: (required) :type beta_organization_service_delete_organization_metadata_request: BetaOrganizationServiceDeleteOrganizationMetadataRequest @@ -961,9 +961,9 @@ def _delete_organization_metadata_serialize( @validate_call def generate_organization_domain_validation( self, beta_organization_service_generate_organization_domain_validation_request: BetaOrganizationServiceGenerateOrganizationDomainValidationRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> BetaOrganizationServiceGenerateOrganizationDomainValidationResponse: - """GenerateOrganizationDomainValidation + """Generate Organization Domain Validation - Generate Organization Domain Validation Generate a new file to be able to verify your domain with DNS or HTTP challenge. Required permission: - `org.write` + Generate a new file to be able to verify your domain with DNS or HTTP challenge. Required permission: - `org.write` :param beta_organization_service_generate_organization_domain_validation_request: (required) :type beta_organization_service_generate_organization_domain_validation_request: BetaOrganizationServiceGenerateOrganizationDomainValidationRequest @@ -1089,9 +1089,9 @@ def _generate_organization_domain_validation_serialize( @validate_call def list_organization_domains( self, beta_organization_service_list_organization_domains_request: BetaOrganizationServiceListOrganizationDomainsRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> BetaOrganizationServiceListOrganizationDomainsResponse: - """ListOrganizationDomains + """List Organization Domains - List Organization Domains Returns the list of registered domains of an organization. The domains are used to identify to which organization a user belongs. Required permission: - `org.read` + Returns the list of registered domains of an organization. The domains are used to identify to which organization a user belongs. Required permission: - `org.read` :param beta_organization_service_list_organization_domains_request: (required) :type beta_organization_service_list_organization_domains_request: BetaOrganizationServiceListOrganizationDomainsRequest @@ -1217,9 +1217,9 @@ def _list_organization_domains_serialize( @validate_call def list_organization_metadata( self, beta_organization_service_list_organization_metadata_request: BetaOrganizationServiceListOrganizationMetadataRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> BetaOrganizationServiceListOrganizationMetadataResponse: - """ListOrganizationMetadata + """List Organization Metadata - List Organization Metadata List metadata of an organization filtered by query. Required permission: - `org.read` + List metadata of an organization filtered by query. Required permission: - `org.read` :param beta_organization_service_list_organization_metadata_request: (required) :type beta_organization_service_list_organization_metadata_request: BetaOrganizationServiceListOrganizationMetadataRequest @@ -1345,9 +1345,9 @@ def _list_organization_metadata_serialize( @validate_call def list_organizations( self, beta_organization_service_list_organizations_request: BetaOrganizationServiceListOrganizationsRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> BetaOrganizationServiceListOrganizationsResponse: - """ListOrganizations + """List Organizations - List Organizations Returns a list of organizations that match the requesting filters. All filters are applied with an AND condition. Required permission: - `iam.read` Deprecated: Use [ListOrganizations](/apis/resources/org_service_v2/organization-service-list-organizations.api.mdx) instead to list organizations. + Returns a list of organizations that match the requesting filters. All filters are applied with an AND condition. Required permission: - `iam.read` Deprecated: Use [ListOrganizations](/apis/resources/org_service_v2/organization-service-list-organizations.api.mdx) instead to list organizations. :param beta_organization_service_list_organizations_request: (required) :type beta_organization_service_list_organizations_request: BetaOrganizationServiceListOrganizationsRequest @@ -1473,9 +1473,9 @@ def _list_organizations_serialize( @validate_call def set_organization_metadata( self, beta_organization_service_set_organization_metadata_request: BetaOrganizationServiceSetOrganizationMetadataRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> BetaOrganizationServiceSetOrganizationMetadataResponse: - """SetOrganizationMetadata + """Set Organization Metadata - Set Organization Metadata Adds or updates a metadata value for the requested key. Make sure the value is base64 encoded. Required permission: - `org.write` + Adds or updates a metadata value for the requested key. Make sure the value is base64 encoded. Required permission: - `org.write` :param beta_organization_service_set_organization_metadata_request: (required) :type beta_organization_service_set_organization_metadata_request: BetaOrganizationServiceSetOrganizationMetadataRequest @@ -1601,9 +1601,9 @@ def _set_organization_metadata_serialize( @validate_call def update_organization( self, beta_organization_service_update_organization_request: BetaOrganizationServiceUpdateOrganizationRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> BetaOrganizationServiceUpdateOrganizationResponse: - """UpdateOrganization + """Update Organization - Update Organization Change the name of the organization. Required permission: - `org.write` + Change the name of the organization. Required permission: - `org.write` :param beta_organization_service_update_organization_request: (required) :type beta_organization_service_update_organization_request: BetaOrganizationServiceUpdateOrganizationRequest @@ -1729,9 +1729,9 @@ def _update_organization_serialize( @validate_call def verify_organization_domain( self, beta_organization_service_verify_organization_domain_request: BetaOrganizationServiceVerifyOrganizationDomainRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> BetaOrganizationServiceVerifyOrganizationDomainResponse: - """VerifyOrganizationDomain + """Verify Organization Domain - Verify Organization Domain Make sure you have added the required verification to your domain, depending on the method you have chosen (HTTP or DNS challenge). ZITADEL will check it and set the domain as verified if it was successful. A verify domain has to be unique. Required permission: - `org.write` + Make sure you have added the required verification to your domain, depending on the method you have chosen (HTTP or DNS challenge). ZITADEL will check it and set the domain as verified if it was successful. A verify domain has to be unique. Required permission: - `org.write` :param beta_organization_service_verify_organization_domain_request: (required) :type beta_organization_service_verify_organization_domain_request: BetaOrganizationServiceVerifyOrganizationDomainRequest diff --git a/zitadel_client/api/beta_project_service_api.py b/zitadel_client/api/beta_project_service_api.py index ade527e..936df26 100644 --- a/zitadel_client/api/beta_project_service_api.py +++ b/zitadel_client/api/beta_project_service_api.py @@ -71,9 +71,9 @@ def __init__(self, api_client=None) -> None: @validate_call def activate_project( self, beta_project_service_activate_project_request: BetaProjectServiceActivateProjectRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> BetaProjectServiceActivateProjectResponse: - """ActivateProject + """Activate Project - Activate Project Set the state of a project to active. Request returns no error if the project is already activated. Required permission: - `project.write` + Set the state of a project to active. Request returns no error if the project is already activated. Required permission: - `project.write` :param beta_project_service_activate_project_request: (required) :type beta_project_service_activate_project_request: BetaProjectServiceActivateProjectRequest @@ -199,9 +199,9 @@ def _activate_project_serialize( @validate_call def activate_project_grant( self, beta_project_service_activate_project_grant_request: BetaProjectServiceActivateProjectGrantRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> BetaProjectServiceActivateProjectGrantResponse: - """ActivateProjectGrant + """Activate Project Grant - Activate Project Grant Set the state of the project grant to activated. Required permission: - `project.grant.write` + Set the state of the project grant to activated. Required permission: - `project.grant.write` :param beta_project_service_activate_project_grant_request: (required) :type beta_project_service_activate_project_grant_request: BetaProjectServiceActivateProjectGrantRequest @@ -327,9 +327,9 @@ def _activate_project_grant_serialize( @validate_call def add_project_role( self, beta_project_service_add_project_role_request: BetaProjectServiceAddProjectRoleRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> BetaProjectServiceAddProjectRoleResponse: - """AddProjectRole + """Add Project Role - Add Project Role Add a new project role to a project. The key must be unique within the project. Required permission: - `project.role.write` + Add a new project role to a project. The key must be unique within the project. Required permission: - `project.role.write` :param beta_project_service_add_project_role_request: (required) :type beta_project_service_add_project_role_request: BetaProjectServiceAddProjectRoleRequest @@ -455,9 +455,9 @@ def _add_project_role_serialize( @validate_call def create_project( self, beta_project_service_create_project_request: BetaProjectServiceCreateProjectRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> BetaProjectServiceCreateProjectResponse: - """CreateProject + """Create Project - Create Project Create a new Project. Required permission: - `project.create` + Create a new Project. Required permission: - `project.create` :param beta_project_service_create_project_request: (required) :type beta_project_service_create_project_request: BetaProjectServiceCreateProjectRequest @@ -583,9 +583,9 @@ def _create_project_serialize( @validate_call def create_project_grant( self, beta_project_service_create_project_grant_request: BetaProjectServiceCreateProjectGrantRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> BetaProjectServiceCreateProjectGrantResponse: - """CreateProjectGrant + """Create Project Grant - Create Project Grant Grant a project to another organization. The project grant will allow the granted organization to access the project and manage the authorizations for its users. Required permission: - `project.grant.create` + Grant a project to another organization. The project grant will allow the granted organization to access the project and manage the authorizations for its users. Required permission: - `project.grant.create` :param beta_project_service_create_project_grant_request: (required) :type beta_project_service_create_project_grant_request: BetaProjectServiceCreateProjectGrantRequest @@ -711,9 +711,9 @@ def _create_project_grant_serialize( @validate_call def deactivate_project( self, beta_project_service_deactivate_project_request: BetaProjectServiceDeactivateProjectRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> BetaProjectServiceDeactivateProjectResponse: - """DeactivateProject + """Deactivate Project - Deactivate Project Set the state of a project to deactivated. Request returns no error if the project is already deactivated. Applications under deactivated projects are not able to login anymore. Required permission: - `project.write` + Set the state of a project to deactivated. Request returns no error if the project is already deactivated. Applications under deactivated projects are not able to login anymore. Required permission: - `project.write` :param beta_project_service_deactivate_project_request: (required) :type beta_project_service_deactivate_project_request: BetaProjectServiceDeactivateProjectRequest @@ -839,9 +839,9 @@ def _deactivate_project_serialize( @validate_call def deactivate_project_grant( self, beta_project_service_deactivate_project_grant_request: BetaProjectServiceDeactivateProjectGrantRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> BetaProjectServiceDeactivateProjectGrantResponse: - """DeactivateProjectGrant + """Deactivate Project Grant - Deactivate Project Grant Set the state of the project grant to deactivated. Applications under deactivated projects grants are not able to login anymore. Required permission: - `project.grant.write` + Set the state of the project grant to deactivated. Applications under deactivated projects grants are not able to login anymore. Required permission: - `project.grant.write` :param beta_project_service_deactivate_project_grant_request: (required) :type beta_project_service_deactivate_project_grant_request: BetaProjectServiceDeactivateProjectGrantRequest @@ -967,9 +967,9 @@ def _deactivate_project_grant_serialize( @validate_call def delete_project( self, beta_project_service_delete_project_request: BetaProjectServiceDeleteProjectRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> BetaProjectServiceDeleteProjectResponse: - """DeleteProject + """Delete Project - Delete Project Delete an existing project. In case the project is not found, the request will return a successful response as the desired state is already achieved. Required permission: - `project.delete` + Delete an existing project. In case the project is not found, the request will return a successful response as the desired state is already achieved. Required permission: - `project.delete` :param beta_project_service_delete_project_request: (required) :type beta_project_service_delete_project_request: BetaProjectServiceDeleteProjectRequest @@ -1095,9 +1095,9 @@ def _delete_project_serialize( @validate_call def delete_project_grant( self, beta_project_service_delete_project_grant_request: BetaProjectServiceDeleteProjectGrantRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> BetaProjectServiceDeleteProjectGrantResponse: - """DeleteProjectGrant + """Delete Project Grant - Delete Project Grant Delete a project grant. All user grants for this project grant will also be removed. A user will not have access to the project afterward (if permissions are checked). In case the project grant is not found, the request will return a successful response as the desired state is already achieved. Required permission: - `project.grant.delete` + Delete a project grant. All user grants for this project grant will also be removed. A user will not have access to the project afterward (if permissions are checked). In case the project grant is not found, the request will return a successful response as the desired state is already achieved. Required permission: - `project.grant.delete` :param beta_project_service_delete_project_grant_request: (required) :type beta_project_service_delete_project_grant_request: BetaProjectServiceDeleteProjectGrantRequest @@ -1223,9 +1223,9 @@ def _delete_project_grant_serialize( @validate_call def get_project( self, beta_project_service_get_project_request: BetaProjectServiceGetProjectRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> BetaProjectServiceGetProjectResponse: - """GetProject + """Get Project - Get Project Returns the project identified by the requested ID. Required permission: - `project.read` + Returns the project identified by the requested ID. Required permission: - `project.read` :param beta_project_service_get_project_request: (required) :type beta_project_service_get_project_request: BetaProjectServiceGetProjectRequest @@ -1351,9 +1351,9 @@ def _get_project_serialize( @validate_call def list_project_grants( self, beta_project_service_list_project_grants_request: BetaProjectServiceListProjectGrantsRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> BetaProjectServiceListProjectGrantsResponse: - """ListProjectGrants + """List Project Grants - List Project Grants Returns a list of project grants. A project grant is when the organization grants its project to another organization. Required permission: - `project.grant.write` + Returns a list of project grants. A project grant is when the organization grants its project to another organization. Required permission: - `project.grant.write` :param beta_project_service_list_project_grants_request: (required) :type beta_project_service_list_project_grants_request: BetaProjectServiceListProjectGrantsRequest @@ -1479,9 +1479,9 @@ def _list_project_grants_serialize( @validate_call def list_project_roles( self, beta_project_service_list_project_roles_request: BetaProjectServiceListProjectRolesRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> BetaProjectServiceListProjectRolesResponse: - """ListProjectRoles + """List Project Roles - List Project Roles Returns all roles of a project matching the search query. Required permission: - `project.role.read` + Returns all roles of a project matching the search query. Required permission: - `project.role.read` :param beta_project_service_list_project_roles_request: (required) :type beta_project_service_list_project_roles_request: BetaProjectServiceListProjectRolesRequest @@ -1607,9 +1607,9 @@ def _list_project_roles_serialize( @validate_call def list_projects( self, beta_project_service_list_projects_request: BetaProjectServiceListProjectsRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> BetaProjectServiceListProjectsResponse: - """ListProjects + """List Projects - List Projects List all matching projects. By default all projects of the instance that the caller has permission to read are returned. Make sure to include a limit and sorting for pagination. Required permission: - `project.read` + List all matching projects. By default all projects of the instance that the caller has permission to read are returned. Make sure to include a limit and sorting for pagination. Required permission: - `project.read` :param beta_project_service_list_projects_request: (required) :type beta_project_service_list_projects_request: BetaProjectServiceListProjectsRequest @@ -1735,9 +1735,9 @@ def _list_projects_serialize( @validate_call def remove_project_role( self, beta_project_service_remove_project_role_request: BetaProjectServiceRemoveProjectRoleRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> BetaProjectServiceRemoveProjectRoleResponse: - """RemoveProjectRole + """Remove Project Role - Remove Project Role Removes the role from the project and on every resource it has a dependency. This includes project grants and user grants. Required permission: - `project.role.write` + Removes the role from the project and on every resource it has a dependency. This includes project grants and user grants. Required permission: - `project.role.write` :param beta_project_service_remove_project_role_request: (required) :type beta_project_service_remove_project_role_request: BetaProjectServiceRemoveProjectRoleRequest @@ -1863,9 +1863,9 @@ def _remove_project_role_serialize( @validate_call def update_project( self, beta_project_service_update_project_request: BetaProjectServiceUpdateProjectRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> BetaProjectServiceUpdateProjectResponse: - """UpdateProject + """Update Project - Update Project Update an existing project. Required permission: - `project.write` + Update an existing project. Required permission: - `project.write` :param beta_project_service_update_project_request: (required) :type beta_project_service_update_project_request: BetaProjectServiceUpdateProjectRequest @@ -1991,9 +1991,9 @@ def _update_project_serialize( @validate_call def update_project_grant( self, beta_project_service_update_project_grant_request: BetaProjectServiceUpdateProjectGrantRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> BetaProjectServiceUpdateProjectGrantResponse: - """UpdateProjectGrant + """Update Project Grant - Update Project Grant Change the roles of the project that is granted to another organization. The project grant will allow the granted organization to access the project and manage the authorizations for its users. Required permission: - `project.grant.write` + Change the roles of the project that is granted to another organization. The project grant will allow the granted organization to access the project and manage the authorizations for its users. Required permission: - `project.grant.write` :param beta_project_service_update_project_grant_request: (required) :type beta_project_service_update_project_grant_request: BetaProjectServiceUpdateProjectGrantRequest @@ -2119,9 +2119,9 @@ def _update_project_grant_serialize( @validate_call def update_project_role( self, beta_project_service_update_project_role_request: BetaProjectServiceUpdateProjectRoleRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> BetaProjectServiceUpdateProjectRoleResponse: - """UpdateProjectRole + """Update Project Role - Update Project Role Change a project role. The key is not editable. If a key should change, remove the role and create a new one. Required permission: - `project.role.write` + Change a project role. The key is not editable. If a key should change, remove the role and create a new one. Required permission: - `project.role.write` :param beta_project_service_update_project_role_request: (required) :type beta_project_service_update_project_role_request: BetaProjectServiceUpdateProjectRoleRequest diff --git a/zitadel_client/api/beta_session_service_api.py b/zitadel_client/api/beta_session_service_api.py index c0eb19c..230b7df 100644 --- a/zitadel_client/api/beta_session_service_api.py +++ b/zitadel_client/api/beta_session_service_api.py @@ -47,7 +47,7 @@ def __init__(self, api_client=None) -> None: @validate_call def create_session( self, beta_session_service_create_session_request: BetaSessionServiceCreateSessionRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> BetaSessionServiceCreateSessionResponse: - """CreateSession + """Create a new session Create a new session @@ -175,7 +175,7 @@ def _create_session_serialize( @validate_call def delete_session( self, beta_session_service_delete_session_request: BetaSessionServiceDeleteSessionRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> BetaSessionServiceDeleteSessionResponse: - """DeleteSession + """Terminate a session Terminate a session @@ -303,7 +303,7 @@ def _delete_session_serialize( @validate_call def get_session( self, beta_session_service_get_session_request: BetaSessionServiceGetSessionRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> BetaSessionServiceGetSessionResponse: - """GetSession + """GetSession a session GetSession a session @@ -431,7 +431,7 @@ def _get_session_serialize( @validate_call def list_sessions( self, beta_session_service_list_sessions_request: BetaSessionServiceListSessionsRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> BetaSessionServiceListSessionsResponse: - """ListSessions + """Search sessions Search sessions @@ -559,7 +559,7 @@ def _list_sessions_serialize( @validate_call def set_session( self, beta_session_service_set_session_request: BetaSessionServiceSetSessionRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> BetaSessionServiceSetSessionResponse: - """SetSession + """Update a session Update a session diff --git a/zitadel_client/api/beta_settings_service_api.py b/zitadel_client/api/beta_settings_service_api.py index aa980fd..ce43dd8 100644 --- a/zitadel_client/api/beta_settings_service_api.py +++ b/zitadel_client/api/beta_settings_service_api.py @@ -58,7 +58,7 @@ def __init__(self, api_client=None) -> None: @validate_call def get_active_identity_providers( self, beta_settings_service_get_active_identity_providers_request: BetaSettingsServiceGetActiveIdentityProvidersRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> BetaSettingsServiceGetActiveIdentityProvidersResponse: - """GetActiveIdentityProviders + """Get the current active identity providers Get the current active identity providers @@ -186,7 +186,7 @@ def _get_active_identity_providers_serialize( @validate_call def get_branding_settings( self, beta_settings_service_get_branding_settings_request: BetaSettingsServiceGetBrandingSettingsRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> BetaSettingsServiceGetBrandingSettingsResponse: - """GetBrandingSettings + """Get the current active branding settings Get the current active branding settings @@ -314,7 +314,7 @@ def _get_branding_settings_serialize( @validate_call def get_domain_settings( self, beta_settings_service_get_domain_settings_request: BetaSettingsServiceGetDomainSettingsRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> BetaSettingsServiceGetDomainSettingsResponse: - """GetDomainSettings + """Get the domain settings Get the domain settings @@ -444,7 +444,7 @@ def _get_domain_settings_serialize( def get_general_settings( self, body: Optional[Dict[str, Any]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> BetaSettingsServiceGetGeneralSettingsResponse: if body is None: body = {} - """GetGeneralSettings + """Get basic information over the instance Get basic information over the instance @@ -572,7 +572,7 @@ def _get_general_settings_serialize( @validate_call def get_legal_and_support_settings( self, beta_settings_service_get_legal_and_support_settings_request: BetaSettingsServiceGetLegalAndSupportSettingsRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> BetaSettingsServiceGetLegalAndSupportSettingsResponse: - """GetLegalAndSupportSettings + """Get the legal and support settings Get the legal and support settings @@ -700,7 +700,7 @@ def _get_legal_and_support_settings_serialize( @validate_call def get_lockout_settings( self, beta_settings_service_get_lockout_settings_request: BetaSettingsServiceGetLockoutSettingsRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> BetaSettingsServiceGetLockoutSettingsResponse: - """GetLockoutSettings + """Get the lockout settings Get the lockout settings @@ -828,7 +828,7 @@ def _get_lockout_settings_serialize( @validate_call def get_login_settings( self, beta_settings_service_get_login_settings_request: BetaSettingsServiceGetLoginSettingsRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> BetaSettingsServiceGetLoginSettingsResponse: - """GetLoginSettings + """Get the login settings Get the login settings @@ -956,7 +956,7 @@ def _get_login_settings_serialize( @validate_call def get_password_complexity_settings( self, beta_settings_service_get_password_complexity_settings_request: BetaSettingsServiceGetPasswordComplexitySettingsRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> BetaSettingsServiceGetPasswordComplexitySettingsResponse: - """GetPasswordComplexitySettings + """Get the password complexity settings Get the password complexity settings @@ -1084,7 +1084,7 @@ def _get_password_complexity_settings_serialize( @validate_call def get_password_expiry_settings( self, beta_settings_service_get_password_expiry_settings_request: BetaSettingsServiceGetPasswordExpirySettingsRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> BetaSettingsServiceGetPasswordExpirySettingsResponse: - """GetPasswordExpirySettings + """Get the password expiry settings Get the password expiry settings @@ -1214,7 +1214,7 @@ def _get_password_expiry_settings_serialize( def get_security_settings( self, body: Optional[Dict[str, Any]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> BetaSettingsServiceGetSecuritySettingsResponse: if body is None: body = {} - """GetSecuritySettings + """Get the security settings Get the security settings @@ -1342,7 +1342,7 @@ def _get_security_settings_serialize( @validate_call def set_security_settings( self, beta_settings_service_set_security_settings_request: BetaSettingsServiceSetSecuritySettingsRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> BetaSettingsServiceSetSecuritySettingsResponse: - """SetSecuritySettings + """Set the security settings Set the security settings diff --git a/zitadel_client/api/beta_telemetry_service_api.py b/zitadel_client/api/beta_telemetry_service_api.py index 7e0d9e4..4fb0c27 100644 --- a/zitadel_client/api/beta_telemetry_service_api.py +++ b/zitadel_client/api/beta_telemetry_service_api.py @@ -41,7 +41,7 @@ def __init__(self, api_client=None) -> None: @validate_call def report_base_information( self, beta_telemetry_service_report_base_information_request: BetaTelemetryServiceReportBaseInformationRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> BetaTelemetryServiceReportBaseInformationResponse: - """ReportBaseInformation + """ReportBaseInformation is used to report the base information of the ZITADEL system, including the version, instances, their creation date and domains. The response contains a report ID to link it to the resource counts or other reports. The report ID is only valid for the same system ID. ReportBaseInformation is used to report the base information of the ZITADEL system, including the version, instances, their creation date and domains. The response contains a report ID to link it to the resource counts or other reports. The report ID is only valid for the same system ID. @@ -169,7 +169,7 @@ def _report_base_information_serialize( @validate_call def report_resource_counts( self, beta_telemetry_service_report_resource_counts_request: BetaTelemetryServiceReportResourceCountsRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> BetaTelemetryServiceReportResourceCountsResponse: - """ReportResourceCounts + """ReportResourceCounts is used to report the resource counts such as amount of organizations or users per organization and much more. Since the resource counts can be reported in multiple batches, the response contains a report ID to continue reporting. The report ID is only valid for the same system ID. ReportResourceCounts is used to report the resource counts such as amount of organizations or users per organization and much more. Since the resource counts can be reported in multiple batches, the response contains a report ID to continue reporting. The report ID is only valid for the same system ID. diff --git a/zitadel_client/api/beta_user_service_api.py b/zitadel_client/api/beta_user_service_api.py index 18babd0..357e9f5 100644 --- a/zitadel_client/api/beta_user_service_api.py +++ b/zitadel_client/api/beta_user_service_api.py @@ -104,10 +104,12 @@ def __init__(self, api_client=None) -> None: @validate_call - def add_human_user( self, beta_user_service_add_human_user_request: BetaUserServiceAddHumanUserRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> BetaUserServiceAddHumanUserResponse: - """AddHumanUser + def add_human_user( self, beta_user_service_add_human_user_request: Optional[BetaUserServiceAddHumanUserRequest] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> BetaUserServiceAddHumanUserResponse: + if beta_user_service_add_human_user_request is None: + beta_user_service_add_human_user_request = {} + """Create a new human user - Create a new human user Create/import a new user with the type human. The newly created user will get a verification email if either the email address is not marked as verified and you did not request the verification to be returned. Deprecated: please move to the corresponding endpoint under user service v2 (GA) + Create/import a new user with the type human. The newly created user will get a verification email if either the email address is not marked as verified and you did not request the verification to be returned. Deprecated: please move to the corresponding endpoint under user service v2 (GA) :param beta_user_service_add_human_user_request: (required) :type beta_user_service_add_human_user_request: BetaUserServiceAddHumanUserRequest @@ -233,9 +235,9 @@ def _add_human_user_serialize( @validate_call def add_idp_link( self, beta_user_service_add_idp_link_request: BetaUserServiceAddIDPLinkRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> BetaUserServiceAddIDPLinkResponse: - """AddIDPLink + """Add link to an identity provider to an user - Add link to an identity provider to an user Add link to an identity provider to an user. Deprecated: please move to the corresponding endpoint under user service v2 (GA). + Add link to an identity provider to an user. Deprecated: please move to the corresponding endpoint under user service v2 (GA). :param beta_user_service_add_idp_link_request: (required) :type beta_user_service_add_idp_link_request: BetaUserServiceAddIDPLinkRequest @@ -361,9 +363,9 @@ def _add_idp_link_serialize( @validate_call def add_otp_email( self, beta_user_service_add_otp_email_request: BetaUserServiceAddOTPEmailRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> BetaUserServiceAddOTPEmailResponse: - """AddOTPEmail + """Add OTP Email for a user - Add OTP Email for a user Add a new One-Time Password (OTP) Email factor to the authenticated user. OTP Email will enable the user to verify a OTP with the latest verified email. The email has to be verified to add the second factor. Deprecated: please move to the corresponding endpoint under user service v2 (GA). + Add a new One-Time Password (OTP) Email factor to the authenticated user. OTP Email will enable the user to verify a OTP with the latest verified email. The email has to be verified to add the second factor. Deprecated: please move to the corresponding endpoint under user service v2 (GA). :param beta_user_service_add_otp_email_request: (required) :type beta_user_service_add_otp_email_request: BetaUserServiceAddOTPEmailRequest @@ -489,9 +491,9 @@ def _add_otp_email_serialize( @validate_call def add_otpsms( self, beta_user_service_add_otpsms_request: BetaUserServiceAddOTPSMSRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> BetaUserServiceAddOTPSMSResponse: - """AddOTPSMS + """Add OTP SMS for a user - Add OTP SMS for a user Add a new One-Time Password (OTP) SMS factor to the authenticated user. OTP SMS will enable the user to verify a OTP with the latest verified phone number. The phone number has to be verified to add the second factor. Deprecated: please move to the corresponding endpoint under user service v2 (GA). + Add a new One-Time Password (OTP) SMS factor to the authenticated user. OTP SMS will enable the user to verify a OTP with the latest verified phone number. The phone number has to be verified to add the second factor. Deprecated: please move to the corresponding endpoint under user service v2 (GA). :param beta_user_service_add_otpsms_request: (required) :type beta_user_service_add_otpsms_request: BetaUserServiceAddOTPSMSRequest @@ -616,10 +618,12 @@ def _add_otpsms_serialize( @validate_call - def create_passkey_registration_link( self, beta_user_service_create_passkey_registration_link_request: BetaUserServiceCreatePasskeyRegistrationLinkRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> BetaUserServiceCreatePasskeyRegistrationLinkResponse: - """CreatePasskeyRegistrationLink + def create_passkey_registration_link( self, beta_user_service_create_passkey_registration_link_request: Optional[BetaUserServiceCreatePasskeyRegistrationLinkRequest] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> BetaUserServiceCreatePasskeyRegistrationLinkResponse: + if beta_user_service_create_passkey_registration_link_request is None: + beta_user_service_create_passkey_registration_link_request = {} + """Create a passkey registration link for a user - Create a passkey registration link for a user Create a passkey registration link which includes a code and either return it or send it to the user. Deprecated: please move to the corresponding endpoint under user service v2 (GA). + Create a passkey registration link which includes a code and either return it or send it to the user. Deprecated: please move to the corresponding endpoint under user service v2 (GA). :param beta_user_service_create_passkey_registration_link_request: (required) :type beta_user_service_create_passkey_registration_link_request: BetaUserServiceCreatePasskeyRegistrationLinkRequest @@ -745,9 +749,9 @@ def _create_passkey_registration_link_serialize( @validate_call def deactivate_user( self, beta_user_service_deactivate_user_request: BetaUserServiceDeactivateUserRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> BetaUserServiceDeactivateUserResponse: - """DeactivateUser + """Deactivate user - Deactivate user The state of the user will be changed to 'deactivated'. The user will not be able to log in anymore. The endpoint returns an error if the user is already in the state 'deactivated'. Use deactivate user when the user should not be able to use the account anymore, but you still need access to the user data. Deprecated: please move to the corresponding endpoint under user service v2 (GA). + The state of the user will be changed to 'deactivated'. The user will not be able to log in anymore. The endpoint returns an error if the user is already in the state 'deactivated'. Use deactivate user when the user should not be able to use the account anymore, but you still need access to the user data. Deprecated: please move to the corresponding endpoint under user service v2 (GA). :param beta_user_service_deactivate_user_request: (required) :type beta_user_service_deactivate_user_request: BetaUserServiceDeactivateUserRequest @@ -873,9 +877,9 @@ def _deactivate_user_serialize( @validate_call def delete_user( self, beta_user_service_delete_user_request: BetaUserServiceDeleteUserRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> BetaUserServiceDeleteUserResponse: - """DeleteUser + """Delete user - Delete user The state of the user will be changed to 'deleted'. The user will not be able to log in anymore. Endpoints requesting this user will return an error 'User not found. Deprecated: please move to the corresponding endpoint under user service v2 (GA). + The state of the user will be changed to 'deleted'. The user will not be able to log in anymore. Endpoints requesting this user will return an error 'User not found. Deprecated: please move to the corresponding endpoint under user service v2 (GA). :param beta_user_service_delete_user_request: (required) :type beta_user_service_delete_user_request: BetaUserServiceDeleteUserRequest @@ -1001,9 +1005,9 @@ def _delete_user_serialize( @validate_call def get_user_by_id( self, beta_user_service_get_user_by_id_request: BetaUserServiceGetUserByIDRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> BetaUserServiceGetUserByIDResponse: - """GetUserByID + """User by ID - User by ID Returns the full user object (human or machine) including the profile, email, etc. Deprecated: please move to the corresponding endpoint under user service v2 (GA). + Returns the full user object (human or machine) including the profile, email, etc. Deprecated: please move to the corresponding endpoint under user service v2 (GA). :param beta_user_service_get_user_by_id_request: (required) :type beta_user_service_get_user_by_id_request: BetaUserServiceGetUserByIDRequest @@ -1129,9 +1133,9 @@ def _get_user_by_id_serialize( @validate_call def list_authentication_method_types( self, beta_user_service_list_authentication_method_types_request: BetaUserServiceListAuthenticationMethodTypesRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> BetaUserServiceListAuthenticationMethodTypesResponse: - """ListAuthenticationMethodTypes + """List all possible authentication methods of a user - List all possible authentication methods of a user List all possible authentication methods of a user like password, passwordless, (T)OTP and more. Deprecated: please move to the corresponding endpoint under user service v2 (GA). + List all possible authentication methods of a user like password, passwordless, (T)OTP and more. Deprecated: please move to the corresponding endpoint under user service v2 (GA). :param beta_user_service_list_authentication_method_types_request: (required) :type beta_user_service_list_authentication_method_types_request: BetaUserServiceListAuthenticationMethodTypesRequest @@ -1257,9 +1261,9 @@ def _list_authentication_method_types_serialize( @validate_call def list_users( self, beta_user_service_list_users_request: BetaUserServiceListUsersRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> BetaUserServiceListUsersResponse: - """ListUsers + """Search Users - Search Users Search for users. By default, we will return all users of your instance that you have permission to read. Make sure to include a limit and sorting for pagination. Deprecated: please move to the corresponding endpoint under user service v2 (GA). + Search for users. By default, we will return all users of your instance that you have permission to read. Make sure to include a limit and sorting for pagination. Deprecated: please move to the corresponding endpoint under user service v2 (GA). :param beta_user_service_list_users_request: (required) :type beta_user_service_list_users_request: BetaUserServiceListUsersRequest @@ -1385,9 +1389,9 @@ def _list_users_serialize( @validate_call def lock_user( self, beta_user_service_lock_user_request: BetaUserServiceLockUserRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> BetaUserServiceLockUserResponse: - """LockUser + """Lock user - Lock user The state of the user will be changed to 'locked'. The user will not be able to log in anymore. The endpoint returns an error if the user is already in the state 'locked'. Use this endpoint if the user should not be able to log in temporarily because of an event that happened (wrong password, etc.). Deprecated: please move to the corresponding endpoint under user service v2 (GA). + The state of the user will be changed to 'locked'. The user will not be able to log in anymore. The endpoint returns an error if the user is already in the state 'locked'. Use this endpoint if the user should not be able to log in temporarily because of an event that happened (wrong password, etc.). Deprecated: please move to the corresponding endpoint under user service v2 (GA). :param beta_user_service_lock_user_request: (required) :type beta_user_service_lock_user_request: BetaUserServiceLockUserRequest @@ -1512,10 +1516,12 @@ def _lock_user_serialize( @validate_call - def password_reset( self, beta_user_service_password_reset_request: BetaUserServicePasswordResetRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> BetaUserServicePasswordResetResponse: - """PasswordReset + def password_reset( self, beta_user_service_password_reset_request: Optional[BetaUserServicePasswordResetRequest] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> BetaUserServicePasswordResetResponse: + if beta_user_service_password_reset_request is None: + beta_user_service_password_reset_request = {} + """Request a code to reset a password - Request a code to reset a password Request a code to reset a password. Deprecated: please move to the corresponding endpoint under user service v2 (GA). + Request a code to reset a password. Deprecated: please move to the corresponding endpoint under user service v2 (GA). :param beta_user_service_password_reset_request: (required) :type beta_user_service_password_reset_request: BetaUserServicePasswordResetRequest @@ -1641,9 +1647,9 @@ def _password_reset_serialize( @validate_call def reactivate_user( self, beta_user_service_reactivate_user_request: BetaUserServiceReactivateUserRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> BetaUserServiceReactivateUserResponse: - """ReactivateUser + """Reactivate user - Reactivate user Reactivate a user with the state 'deactivated'. The user will be able to log in again afterward. The endpoint returns an error if the user is not in the state 'deactivated'. Deprecated: please move to the corresponding endpoint under user service v2 (GA). + Reactivate a user with the state 'deactivated'. The user will be able to log in again afterward. The endpoint returns an error if the user is not in the state 'deactivated'. Deprecated: please move to the corresponding endpoint under user service v2 (GA). :param beta_user_service_reactivate_user_request: (required) :type beta_user_service_reactivate_user_request: BetaUserServiceReactivateUserRequest @@ -1769,9 +1775,9 @@ def _reactivate_user_serialize( @validate_call def register_passkey( self, beta_user_service_register_passkey_request: BetaUserServiceRegisterPasskeyRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> BetaUserServiceRegisterPasskeyResponse: - """RegisterPasskey + """Start the registration of passkey for a user - Start the registration of passkey for a user Start the registration of a passkey for a user, as a response the public key credential creation options are returned, which are used to verify the passkey. Deprecated: please move to the corresponding endpoint under user service v2 (GA). + Start the registration of a passkey for a user, as a response the public key credential creation options are returned, which are used to verify the passkey. Deprecated: please move to the corresponding endpoint under user service v2 (GA). :param beta_user_service_register_passkey_request: (required) :type beta_user_service_register_passkey_request: BetaUserServiceRegisterPasskeyRequest @@ -1897,9 +1903,9 @@ def _register_passkey_serialize( @validate_call def register_totp( self, beta_user_service_register_totp_request: BetaUserServiceRegisterTOTPRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> BetaUserServiceRegisterTOTPResponse: - """RegisterTOTP + """Start the registration of a TOTP generator for a user - Start the registration of a TOTP generator for a user Start the registration of a TOTP generator for a user, as a response a secret returned, which is used to initialize a TOTP app or device. Deprecated: please move to the corresponding endpoint under user service v2 (GA). + Start the registration of a TOTP generator for a user, as a response a secret returned, which is used to initialize a TOTP app or device. Deprecated: please move to the corresponding endpoint under user service v2 (GA). :param beta_user_service_register_totp_request: (required) :type beta_user_service_register_totp_request: BetaUserServiceRegisterTOTPRequest @@ -2025,9 +2031,9 @@ def _register_totp_serialize( @validate_call def register_u2_f( self, beta_user_service_register_u2_f_request: BetaUserServiceRegisterU2FRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> BetaUserServiceRegisterU2FResponse: - """RegisterU2F + """Start the registration of a u2f token for a user - Start the registration of a u2f token for a user Start the registration of a u2f token for a user, as a response the public key credential creation options are returned, which are used to verify the u2f token. Deprecated: please move to the corresponding endpoint under user service v2 (GA). + Start the registration of a u2f token for a user, as a response the public key credential creation options are returned, which are used to verify the u2f token. Deprecated: please move to the corresponding endpoint under user service v2 (GA). :param beta_user_service_register_u2_f_request: (required) :type beta_user_service_register_u2_f_request: BetaUserServiceRegisterU2FRequest @@ -2153,9 +2159,9 @@ def _register_u2_f_serialize( @validate_call def remove_otp_email( self, beta_user_service_remove_otp_email_request: BetaUserServiceRemoveOTPEmailRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> BetaUserServiceRemoveOTPEmailResponse: - """RemoveOTPEmail + """Remove One-Time Password (OTP) Email from a user - Remove One-Time Password (OTP) Email from a user Remove the configured One-Time Password (OTP) Email factor of a user. As only one OTP Email per user is allowed, the user will not have OTP Email as a second factor afterward. Deprecated: please move to the corresponding endpoint under user service v2 (GA). + Remove the configured One-Time Password (OTP) Email factor of a user. As only one OTP Email per user is allowed, the user will not have OTP Email as a second factor afterward. Deprecated: please move to the corresponding endpoint under user service v2 (GA). :param beta_user_service_remove_otp_email_request: (required) :type beta_user_service_remove_otp_email_request: BetaUserServiceRemoveOTPEmailRequest @@ -2281,9 +2287,9 @@ def _remove_otp_email_serialize( @validate_call def remove_otpsms( self, beta_user_service_remove_otpsms_request: BetaUserServiceRemoveOTPSMSRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> BetaUserServiceRemoveOTPSMSResponse: - """RemoveOTPSMS + """Remove One-Time Password (OTP) SMS from a user - Remove One-Time Password (OTP) SMS from a user Remove the configured One-Time Password (OTP) SMS factor of a user. As only one OTP SMS per user is allowed, the user will not have OTP SMS as a second factor afterward. Deprecated: please move to the corresponding endpoint under user service v2 (GA). + Remove the configured One-Time Password (OTP) SMS factor of a user. As only one OTP SMS per user is allowed, the user will not have OTP SMS as a second factor afterward. Deprecated: please move to the corresponding endpoint under user service v2 (GA). :param beta_user_service_remove_otpsms_request: (required) :type beta_user_service_remove_otpsms_request: BetaUserServiceRemoveOTPSMSRequest @@ -2409,9 +2415,9 @@ def _remove_otpsms_serialize( @validate_call def remove_phone( self, beta_user_service_remove_phone_request: BetaUserServiceRemovePhoneRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> BetaUserServiceRemovePhoneResponse: - """RemovePhone + """Remove the user phone - Remove the user phone Remove the user phone Deprecated: please move to the corresponding endpoint under user service v2 (GA). + Remove the user phone Deprecated: please move to the corresponding endpoint under user service v2 (GA). :param beta_user_service_remove_phone_request: (required) :type beta_user_service_remove_phone_request: BetaUserServiceRemovePhoneRequest @@ -2537,9 +2543,9 @@ def _remove_phone_serialize( @validate_call def remove_totp( self, beta_user_service_remove_totp_request: BetaUserServiceRemoveTOTPRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> BetaUserServiceRemoveTOTPResponse: - """RemoveTOTP + """Remove TOTP generator from a user - Remove TOTP generator from a user Remove the configured TOTP generator of a user. As only one TOTP generator per user is allowed, the user will not have TOTP as a second factor afterward. Deprecated: please move to the corresponding endpoint under user service v2 (GA). + Remove the configured TOTP generator of a user. As only one TOTP generator per user is allowed, the user will not have TOTP as a second factor afterward. Deprecated: please move to the corresponding endpoint under user service v2 (GA). :param beta_user_service_remove_totp_request: (required) :type beta_user_service_remove_totp_request: BetaUserServiceRemoveTOTPRequest @@ -2664,10 +2670,12 @@ def _remove_totp_serialize( @validate_call - def resend_email_code( self, beta_user_service_resend_email_code_request: BetaUserServiceResendEmailCodeRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> BetaUserServiceResendEmailCodeResponse: - """ResendEmailCode + def resend_email_code( self, beta_user_service_resend_email_code_request: Optional[BetaUserServiceResendEmailCodeRequest] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> BetaUserServiceResendEmailCodeResponse: + if beta_user_service_resend_email_code_request is None: + beta_user_service_resend_email_code_request = {} + """Resend code to verify user email - Resend code to verify user email Resend code to verify user email Deprecated: please move to the corresponding endpoint under user service v2 (GA). + Resend code to verify user email Deprecated: please move to the corresponding endpoint under user service v2 (GA). :param beta_user_service_resend_email_code_request: (required) :type beta_user_service_resend_email_code_request: BetaUserServiceResendEmailCodeRequest @@ -2792,10 +2800,12 @@ def _resend_email_code_serialize( @validate_call - def resend_phone_code( self, beta_user_service_resend_phone_code_request: BetaUserServiceResendPhoneCodeRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> BetaUserServiceResendPhoneCodeResponse: - """ResendPhoneCode + def resend_phone_code( self, beta_user_service_resend_phone_code_request: Optional[BetaUserServiceResendPhoneCodeRequest] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> BetaUserServiceResendPhoneCodeResponse: + if beta_user_service_resend_phone_code_request is None: + beta_user_service_resend_phone_code_request = {} + """Resend code to verify user phone - Resend code to verify user phone Resend code to verify user phone Deprecated: please move to the corresponding endpoint under user service v2 (GA). + Resend code to verify user phone Deprecated: please move to the corresponding endpoint under user service v2 (GA). :param beta_user_service_resend_phone_code_request: (required) :type beta_user_service_resend_phone_code_request: BetaUserServiceResendPhoneCodeRequest @@ -2921,9 +2931,9 @@ def _resend_phone_code_serialize( @validate_call def retrieve_identity_provider_intent( self, beta_user_service_retrieve_identity_provider_intent_request: BetaUserServiceRetrieveIdentityProviderIntentRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> BetaUserServiceRetrieveIdentityProviderIntentResponse: - """RetrieveIdentityProviderIntent + """Retrieve the information returned by the identity provider - Retrieve the information returned by the identity provider Retrieve the information returned by the identity provider for registration or updating an existing user with new information. Deprecated: please move to the corresponding endpoint under user service v2 (GA). + Retrieve the information returned by the identity provider for registration or updating an existing user with new information. Deprecated: please move to the corresponding endpoint under user service v2 (GA). :param beta_user_service_retrieve_identity_provider_intent_request: (required) :type beta_user_service_retrieve_identity_provider_intent_request: BetaUserServiceRetrieveIdentityProviderIntentRequest @@ -3048,10 +3058,12 @@ def _retrieve_identity_provider_intent_serialize( @validate_call - def set_email( self, beta_user_service_set_email_request: BetaUserServiceSetEmailRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> BetaUserServiceSetEmailResponse: - """SetEmail + def set_email( self, beta_user_service_set_email_request: Optional[BetaUserServiceSetEmailRequest] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> BetaUserServiceSetEmailResponse: + if beta_user_service_set_email_request is None: + beta_user_service_set_email_request = {} + """Change the user email - Change the user email Change the email address of a user. If the state is set to not verified, a verification code will be generated, which can be either returned or sent to the user by email. Deprecated: please move to the corresponding endpoint under user service v2 (GA). + Change the email address of a user. If the state is set to not verified, a verification code will be generated, which can be either returned or sent to the user by email. Deprecated: please move to the corresponding endpoint under user service v2 (GA). :param beta_user_service_set_email_request: (required) :type beta_user_service_set_email_request: BetaUserServiceSetEmailRequest @@ -3176,10 +3188,12 @@ def _set_email_serialize( @validate_call - def set_password( self, beta_user_service_set_password_request: BetaUserServiceSetPasswordRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> BetaUserServiceSetPasswordResponse: - """SetPassword + def set_password( self, beta_user_service_set_password_request: Optional[BetaUserServiceSetPasswordRequest] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> BetaUserServiceSetPasswordResponse: + if beta_user_service_set_password_request is None: + beta_user_service_set_password_request = {} + """Change password - Change password Change the password of a user with either a verification code or the current password. Deprecated: please move to the corresponding endpoint under user service v2 (GA). + Change the password of a user with either a verification code or the current password. Deprecated: please move to the corresponding endpoint under user service v2 (GA). :param beta_user_service_set_password_request: (required) :type beta_user_service_set_password_request: BetaUserServiceSetPasswordRequest @@ -3304,10 +3318,12 @@ def _set_password_serialize( @validate_call - def set_phone( self, beta_user_service_set_phone_request: BetaUserServiceSetPhoneRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> BetaUserServiceSetPhoneResponse: - """SetPhone + def set_phone( self, beta_user_service_set_phone_request: Optional[BetaUserServiceSetPhoneRequest] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> BetaUserServiceSetPhoneResponse: + if beta_user_service_set_phone_request is None: + beta_user_service_set_phone_request = {} + """Set the user phone - Set the user phone Set the phone number of a user. If the state is set to not verified, a verification code will be generated, which can be either returned or sent to the user by sms. Deprecated: please move to the corresponding endpoint under user service v2 (GA). + Set the phone number of a user. If the state is set to not verified, a verification code will be generated, which can be either returned or sent to the user by sms. Deprecated: please move to the corresponding endpoint under user service v2 (GA). :param beta_user_service_set_phone_request: (required) :type beta_user_service_set_phone_request: BetaUserServiceSetPhoneRequest @@ -3432,10 +3448,12 @@ def _set_phone_serialize( @validate_call - def start_identity_provider_intent( self, beta_user_service_start_identity_provider_intent_request: BetaUserServiceStartIdentityProviderIntentRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> BetaUserServiceStartIdentityProviderIntentResponse: - """StartIdentityProviderIntent + def start_identity_provider_intent( self, beta_user_service_start_identity_provider_intent_request: Optional[BetaUserServiceStartIdentityProviderIntentRequest] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> BetaUserServiceStartIdentityProviderIntentResponse: + if beta_user_service_start_identity_provider_intent_request is None: + beta_user_service_start_identity_provider_intent_request = {} + """Start flow with an identity provider - Start flow with an identity provider Start a flow with an identity provider, for external login, registration or linking. Deprecated: please move to the corresponding endpoint under user service v2 (GA). + Start a flow with an identity provider, for external login, registration or linking. Deprecated: please move to the corresponding endpoint under user service v2 (GA). :param beta_user_service_start_identity_provider_intent_request: (required) :type beta_user_service_start_identity_provider_intent_request: BetaUserServiceStartIdentityProviderIntentRequest @@ -3561,9 +3579,9 @@ def _start_identity_provider_intent_serialize( @validate_call def unlock_user( self, beta_user_service_unlock_user_request: BetaUserServiceUnlockUserRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> BetaUserServiceUnlockUserResponse: - """UnlockUser + """Unlock user - Unlock user The state of the user will be changed to 'locked'. The user will not be able to log in anymore. The endpoint returns an error if the user is already in the state 'locked'. Use this endpoint if the user should not be able to log in temporarily because of an event that happened (wrong password, etc.). Deprecated: please move to the corresponding endpoint under user service v2 (GA). + The state of the user will be changed to 'locked'. The user will not be able to log in anymore. The endpoint returns an error if the user is already in the state 'locked'. Use this endpoint if the user should not be able to log in temporarily because of an event that happened (wrong password, etc.). Deprecated: please move to the corresponding endpoint under user service v2 (GA). :param beta_user_service_unlock_user_request: (required) :type beta_user_service_unlock_user_request: BetaUserServiceUnlockUserRequest @@ -3689,9 +3707,9 @@ def _unlock_user_serialize( @validate_call def update_human_user( self, beta_user_service_update_human_user_request: BetaUserServiceUpdateHumanUserRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> BetaUserServiceUpdateHumanUserResponse: - """UpdateHumanUser + """Update User - Update User Update all information from a user. Deprecated: please move to the corresponding endpoint under user service v2 (GA). + Update all information from a user. Deprecated: please move to the corresponding endpoint under user service v2 (GA). :param beta_user_service_update_human_user_request: (required) :type beta_user_service_update_human_user_request: BetaUserServiceUpdateHumanUserRequest @@ -3817,9 +3835,9 @@ def _update_human_user_serialize( @validate_call def verify_email( self, beta_user_service_verify_email_request: BetaUserServiceVerifyEmailRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> BetaUserServiceVerifyEmailResponse: - """VerifyEmail + """Verify the email - Verify the email Verify the email with the generated code. Deprecated: please move to the corresponding endpoint under user service v2 (GA). + Verify the email with the generated code. Deprecated: please move to the corresponding endpoint under user service v2 (GA). :param beta_user_service_verify_email_request: (required) :type beta_user_service_verify_email_request: BetaUserServiceVerifyEmailRequest @@ -3945,9 +3963,9 @@ def _verify_email_serialize( @validate_call def verify_passkey_registration( self, beta_user_service_verify_passkey_registration_request: BetaUserServiceVerifyPasskeyRegistrationRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> BetaUserServiceVerifyPasskeyRegistrationResponse: - """VerifyPasskeyRegistration + """Verify a passkey for a user - Verify a passkey for a user Verify the passkey registration with the public key credential. Deprecated: please move to the corresponding endpoint under user service v2 (GA). + Verify the passkey registration with the public key credential. Deprecated: please move to the corresponding endpoint under user service v2 (GA). :param beta_user_service_verify_passkey_registration_request: (required) :type beta_user_service_verify_passkey_registration_request: BetaUserServiceVerifyPasskeyRegistrationRequest @@ -4073,9 +4091,9 @@ def _verify_passkey_registration_serialize( @validate_call def verify_phone( self, beta_user_service_verify_phone_request: BetaUserServiceVerifyPhoneRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> BetaUserServiceVerifyPhoneResponse: - """VerifyPhone + """Verify the phone - Verify the phone Verify the phone with the generated code. Deprecated: please move to the corresponding endpoint under user service v2 (GA). + Verify the phone with the generated code. Deprecated: please move to the corresponding endpoint under user service v2 (GA). :param beta_user_service_verify_phone_request: (required) :type beta_user_service_verify_phone_request: BetaUserServiceVerifyPhoneRequest @@ -4201,9 +4219,9 @@ def _verify_phone_serialize( @validate_call def verify_totp_registration( self, beta_user_service_verify_totp_registration_request: BetaUserServiceVerifyTOTPRegistrationRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> BetaUserServiceVerifyTOTPRegistrationResponse: - """VerifyTOTPRegistration + """Verify a TOTP generator for a user - Verify a TOTP generator for a user Verify the TOTP registration with a generated code. Deprecated: please move to the corresponding endpoint under user service v2 (GA). + Verify the TOTP registration with a generated code. Deprecated: please move to the corresponding endpoint under user service v2 (GA). :param beta_user_service_verify_totp_registration_request: (required) :type beta_user_service_verify_totp_registration_request: BetaUserServiceVerifyTOTPRegistrationRequest @@ -4329,9 +4347,9 @@ def _verify_totp_registration_serialize( @validate_call def verify_u2_f_registration( self, beta_user_service_verify_u2_f_registration_request: BetaUserServiceVerifyU2FRegistrationRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> BetaUserServiceVerifyU2FRegistrationResponse: - """VerifyU2FRegistration + """Verify a u2f token for a user - Verify a u2f token for a user Verify the u2f token registration with the public key credential. Deprecated: please move to the corresponding endpoint under user service v2 (GA). + Verify the u2f token registration with the public key credential. Deprecated: please move to the corresponding endpoint under user service v2 (GA). :param beta_user_service_verify_u2_f_registration_request: (required) :type beta_user_service_verify_u2_f_registration_request: BetaUserServiceVerifyU2FRegistrationRequest diff --git a/zitadel_client/api/beta_web_key_service_api.py b/zitadel_client/api/beta_web_key_service_api.py index d6acb1c..7bfe367 100644 --- a/zitadel_client/api/beta_web_key_service_api.py +++ b/zitadel_client/api/beta_web_key_service_api.py @@ -45,9 +45,9 @@ def __init__(self, api_client=None) -> None: @validate_call def activate_web_key( self, beta_web_key_service_activate_web_key_request: BetaWebKeyServiceActivateWebKeyRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> BetaWebKeyServiceActivateWebKeyResponse: - """ActivateWebKey + """Activate Web Key - Activate Web Key Switch the active signing web key. The previously active key will be deactivated. Note that the JWKs OIDC endpoint returns a cacheable response. Therefore it is not advised to activate a key that has been created within the cache duration (default is 5min), as the public key may not have been propagated to caches and clients yet. Required permission: - `iam.web_key.write` Required feature flag: - `web_key` + Switch the active signing web key. The previously active key will be deactivated. Note that the JWKs OIDC endpoint returns a cacheable response. Therefore it is not advised to activate a key that has been created within the cache duration (default is 5min), as the public key may not have been propagated to caches and clients yet. Required permission: - `iam.web_key.write` Required feature flag: - `web_key` :param beta_web_key_service_activate_web_key_request: (required) :type beta_web_key_service_activate_web_key_request: BetaWebKeyServiceActivateWebKeyRequest @@ -173,9 +173,9 @@ def _activate_web_key_serialize( @validate_call def create_web_key( self, beta_web_key_service_create_web_key_request: BetaWebKeyServiceCreateWebKeyRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> BetaWebKeyServiceCreateWebKeyResponse: - """CreateWebKey + """Create Web Key - Create Web Key Generate a private and public key pair. The private key can be used to sign OIDC tokens after activation. The public key can be used to validate OIDC tokens. The newly created key will have the state `STATE_INITIAL` and is published to the public key endpoint. Note that the JWKs OIDC endpoint returns a cacheable response. If no key type is provided, a RSA key pair with 2048 bits and SHA256 hashing will be created. Required permission: - `iam.web_key.write` Required feature flag: - `web_key` + Generate a private and public key pair. The private key can be used to sign OIDC tokens after activation. The public key can be used to validate OIDC tokens. The newly created key will have the state `STATE_INITIAL` and is published to the public key endpoint. Note that the JWKs OIDC endpoint returns a cacheable response. If no key type is provided, a RSA key pair with 2048 bits and SHA256 hashing will be created. Required permission: - `iam.web_key.write` Required feature flag: - `web_key` :param beta_web_key_service_create_web_key_request: (required) :type beta_web_key_service_create_web_key_request: BetaWebKeyServiceCreateWebKeyRequest @@ -301,9 +301,9 @@ def _create_web_key_serialize( @validate_call def delete_web_key( self, beta_web_key_service_delete_web_key_request: BetaWebKeyServiceDeleteWebKeyRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> BetaWebKeyServiceDeleteWebKeyResponse: - """DeleteWebKey + """Delete Web Key - Delete Web Key Delete a web key pair. Only inactive keys can be deleted. Once a key is deleted, any tokens signed by this key will be invalid. Note that the JWKs OIDC endpoint returns a cacheable response. In case the web key is not found, the request will return a successful response as the desired state is already achieved. You can check the change date in the response to verify if the web key was deleted during the request. Required permission: - `iam.web_key.delete` Required feature flag: - `web_key` + Delete a web key pair. Only inactive keys can be deleted. Once a key is deleted, any tokens signed by this key will be invalid. Note that the JWKs OIDC endpoint returns a cacheable response. In case the web key is not found, the request will return a successful response as the desired state is already achieved. You can check the change date in the response to verify if the web key was deleted during the request. Required permission: - `iam.web_key.delete` Required feature flag: - `web_key` :param beta_web_key_service_delete_web_key_request: (required) :type beta_web_key_service_delete_web_key_request: BetaWebKeyServiceDeleteWebKeyRequest @@ -431,9 +431,9 @@ def _delete_web_key_serialize( def list_web_keys( self, body: Optional[Dict[str, Any]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> BetaWebKeyServiceListWebKeysResponse: if body is None: body = {} - """ListWebKeys + """List Web Keys - List Web Keys List all web keys and their states. Required permission: - `iam.web_key.read` Required feature flag: - `web_key` + List all web keys and their states. Required permission: - `iam.web_key.read` Required feature flag: - `web_key` :param body: (required) :type body: object diff --git a/zitadel_client/api/feature_service_api.py b/zitadel_client/api/feature_service_api.py index d8a8381..13cb8e2 100644 --- a/zitadel_client/api/feature_service_api.py +++ b/zitadel_client/api/feature_service_api.py @@ -59,9 +59,9 @@ def __init__(self, api_client=None) -> None: @validate_call def get_instance_features( self, feature_service_get_instance_features_request: FeatureServiceGetInstanceFeaturesRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> FeatureServiceGetInstanceFeaturesResponse: - """GetInstanceFeatures + """Get Instance Features - Get Instance Features Returns all configured features for an instance. Unset fields mean the feature is the current system default. Required permissions: - none + Returns all configured features for an instance. Unset fields mean the feature is the current system default. Required permissions: - none :param feature_service_get_instance_features_request: (required) :type feature_service_get_instance_features_request: FeatureServiceGetInstanceFeaturesRequest @@ -187,9 +187,9 @@ def _get_instance_features_serialize( @validate_call def get_organization_features( self, feature_service_get_organization_features_request: FeatureServiceGetOrganizationFeaturesRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> FeatureServiceGetOrganizationFeaturesResponse: - """GetOrganizationFeatures + """Get Organization Features - Get Organization Features Returns all configured features for an organization. Unset fields mean the feature is the current instance default. Required permissions: - org.feature.read - no permission required for the organization the user belongs to + Returns all configured features for an organization. Unset fields mean the feature is the current instance default. Required permissions: - org.feature.read - no permission required for the organization the user belongs to :param feature_service_get_organization_features_request: (required) :type feature_service_get_organization_features_request: FeatureServiceGetOrganizationFeaturesRequest @@ -317,9 +317,9 @@ def _get_organization_features_serialize( def get_system_features( self, body: Optional[Dict[str, Any]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> FeatureServiceGetSystemFeaturesResponse: if body is None: body = {} - """GetSystemFeatures + """Get System Features - Get System Features Returns all configured features for the system. Unset fields mean the feature is the current system default. Required permissions: - none + Returns all configured features for the system. Unset fields mean the feature is the current system default. Required permissions: - none :param body: (required) :type body: object @@ -445,9 +445,9 @@ def _get_system_features_serialize( @validate_call def get_user_features( self, feature_service_get_user_features_request: FeatureServiceGetUserFeaturesRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> FeatureServiceGetUserFeaturesResponse: - """GetUserFeatures + """Get User Features - Get User Features Returns all configured features for a user. Unset fields mean the feature is the current organization default. Required permissions: - user.feature.read - no permission required for the own user + Returns all configured features for a user. Unset fields mean the feature is the current organization default. Required permissions: - user.feature.read - no permission required for the own user :param feature_service_get_user_features_request: (required) :type feature_service_get_user_features_request: FeatureServiceGetUserFeaturesRequest @@ -575,9 +575,9 @@ def _get_user_features_serialize( def reset_instance_features( self, body: Optional[Dict[str, Any]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> FeatureServiceResetInstanceFeaturesResponse: if body is None: body = {} - """ResetInstanceFeatures + """Reset Instance Features - Reset Instance Features Deletes ALL configured features for an instance, reverting the behaviors to system defaults. Required permissions: - iam.feature.delete + Deletes ALL configured features for an instance, reverting the behaviors to system defaults. Required permissions: - iam.feature.delete :param body: (required) :type body: object @@ -703,9 +703,9 @@ def _reset_instance_features_serialize( @validate_call def reset_organization_features( self, feature_service_reset_organization_features_request: FeatureServiceResetOrganizationFeaturesRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> FeatureServiceResetOrganizationFeaturesResponse: - """ResetOrganizationFeatures + """Reset Organization Features - Reset Organization Features Deletes ALL configured features for an organization, reverting the behaviors to instance defaults. Required permissions: - org.feature.delete + Deletes ALL configured features for an organization, reverting the behaviors to instance defaults. Required permissions: - org.feature.delete :param feature_service_reset_organization_features_request: (required) :type feature_service_reset_organization_features_request: FeatureServiceResetOrganizationFeaturesRequest @@ -833,9 +833,9 @@ def _reset_organization_features_serialize( def reset_system_features( self, body: Optional[Dict[str, Any]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> FeatureServiceResetSystemFeaturesResponse: if body is None: body = {} - """ResetSystemFeatures + """Reset System Features - Reset System Features Deletes ALL configured features for the system, reverting the behaviors to system defaults. Required permissions: - system.feature.delete + Deletes ALL configured features for the system, reverting the behaviors to system defaults. Required permissions: - system.feature.delete :param body: (required) :type body: object @@ -961,9 +961,9 @@ def _reset_system_features_serialize( @validate_call def reset_user_features( self, feature_service_reset_user_features_request: FeatureServiceResetUserFeaturesRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> FeatureServiceResetUserFeaturesResponse: - """ResetUserFeatures + """Reset User Features - Reset User Features Deletes ALL configured features for a user, reverting the behaviors to organization defaults. Required permissions: - user.feature.delete + Deletes ALL configured features for a user, reverting the behaviors to organization defaults. Required permissions: - user.feature.delete :param feature_service_reset_user_features_request: (required) :type feature_service_reset_user_features_request: FeatureServiceResetUserFeaturesRequest @@ -1089,9 +1089,9 @@ def _reset_user_features_serialize( @validate_call def set_instance_features( self, feature_service_set_instance_features_request: FeatureServiceSetInstanceFeaturesRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> FeatureServiceSetInstanceFeaturesResponse: - """SetInstanceFeatures + """Set Instance Features - Set Instance Features Configure and set features that apply to a complete instance. Only fields present in the request are set or unset. Required permissions: - iam.feature.write + Configure and set features that apply to a complete instance. Only fields present in the request are set or unset. Required permissions: - iam.feature.write :param feature_service_set_instance_features_request: (required) :type feature_service_set_instance_features_request: FeatureServiceSetInstanceFeaturesRequest @@ -1217,9 +1217,9 @@ def _set_instance_features_serialize( @validate_call def set_organization_features( self, feature_service_set_organization_features_request: FeatureServiceSetOrganizationFeaturesRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> FeatureServiceSetOrganizationFeaturesResponse: - """SetOrganizationFeatures + """Set Organization Features - Set Organization Features Configure and set features that apply to a complete instance. Only fields present in the request are set or unset. Required permissions: - org.feature.write + Configure and set features that apply to a complete instance. Only fields present in the request are set or unset. Required permissions: - org.feature.write :param feature_service_set_organization_features_request: (required) :type feature_service_set_organization_features_request: FeatureServiceSetOrganizationFeaturesRequest @@ -1345,9 +1345,9 @@ def _set_organization_features_serialize( @validate_call def set_system_features( self, feature_service_set_system_features_request: FeatureServiceSetSystemFeaturesRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> FeatureServiceSetSystemFeaturesResponse: - """SetSystemFeatures + """Set System Features - Set System Features Configure and set features that apply to the complete system. Only fields present in the request are set or unset. Required permissions: - system.feature.write + Configure and set features that apply to the complete system. Only fields present in the request are set or unset. Required permissions: - system.feature.write :param feature_service_set_system_features_request: (required) :type feature_service_set_system_features_request: FeatureServiceSetSystemFeaturesRequest @@ -1473,9 +1473,9 @@ def _set_system_features_serialize( @validate_call def set_user_features( self, feature_service_set_user_feature_request: FeatureServiceSetUserFeatureRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> FeatureServiceSetUserFeaturesResponse: - """SetUserFeatures + """Set User Features - Set User Features Configure and set features that apply to an user. Only fields present in the request are set or unset. Required permissions: - user.feature.write + Configure and set features that apply to an user. Only fields present in the request are set or unset. Required permissions: - user.feature.write :param feature_service_set_user_feature_request: (required) :type feature_service_set_user_feature_request: FeatureServiceSetUserFeatureRequest diff --git a/zitadel_client/api/identity_provider_service_api.py b/zitadel_client/api/identity_provider_service_api.py index 30e1b51..818410b 100644 --- a/zitadel_client/api/identity_provider_service_api.py +++ b/zitadel_client/api/identity_provider_service_api.py @@ -39,9 +39,9 @@ def __init__(self, api_client=None) -> None: @validate_call def get_idpby_id( self, identity_provider_service_get_idpby_id_request: IdentityProviderServiceGetIDPByIDRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> IdentityProviderServiceGetIDPByIDResponse: - """GetIDPByID + """Get identity provider (IdP) by ID - Get identity provider (IdP) by ID Returns an identity provider (social/enterprise login) by its ID, which can be of the type Google, AzureAD, etc. + Returns an identity provider (social/enterprise login) by its ID, which can be of the type Google, AzureAD, etc. :param identity_provider_service_get_idpby_id_request: (required) :type identity_provider_service_get_idpby_id_request: IdentityProviderServiceGetIDPByIDRequest diff --git a/zitadel_client/api/oidc_service_api.py b/zitadel_client/api/oidc_service_api.py index 882a929..d9944c9 100644 --- a/zitadel_client/api/oidc_service_api.py +++ b/zitadel_client/api/oidc_service_api.py @@ -44,10 +44,12 @@ def __init__(self, api_client=None) -> None: @validate_call - def authorize_or_deny_device_authorization( self, oidc_service_authorize_or_deny_device_authorization_request: OIDCServiceAuthorizeOrDenyDeviceAuthorizationRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> object: - """AuthorizeOrDenyDeviceAuthorization + def authorize_or_deny_device_authorization( self, oidc_service_authorize_or_deny_device_authorization_request: Optional[OIDCServiceAuthorizeOrDenyDeviceAuthorizationRequest] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> object: + if oidc_service_authorize_or_deny_device_authorization_request is None: + oidc_service_authorize_or_deny_device_authorization_request = {} + """Authorize or deny device authorization - Authorize or deny device authorization Authorize or deny the device authorization request based on the provided device authorization id. + Authorize or deny the device authorization request based on the provided device authorization id. :param oidc_service_authorize_or_deny_device_authorization_request: (required) :type oidc_service_authorize_or_deny_device_authorization_request: OIDCServiceAuthorizeOrDenyDeviceAuthorizationRequest @@ -172,7 +174,9 @@ def _authorize_or_deny_device_authorization_serialize( @validate_call - def create_callback( self, oidc_service_create_callback_request: OIDCServiceCreateCallbackRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> OIDCServiceCreateCallbackResponse: + def create_callback( self, oidc_service_create_callback_request: Optional[OIDCServiceCreateCallbackRequest] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> OIDCServiceCreateCallbackResponse: + if oidc_service_create_callback_request is None: + oidc_service_create_callback_request = {} """CreateCallback @@ -427,9 +431,9 @@ def _get_auth_request_serialize( @validate_call def get_device_authorization_request( self, oidc_service_get_device_authorization_request_request: OIDCServiceGetDeviceAuthorizationRequestRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> OIDCServiceGetDeviceAuthorizationRequestResponse: - """GetDeviceAuthorizationRequest + """Get device authorization request - Get device authorization request Get the device authorization based on the provided \"user code\". This will return the device authorization request, which contains the device authorization id that is required to authorize the request once the user signed in or to deny it. + Get the device authorization based on the provided \"user code\". This will return the device authorization request, which contains the device authorization id that is required to authorize the request once the user signed in or to deny it. :param oidc_service_get_device_authorization_request_request: (required) :type oidc_service_get_device_authorization_request_request: OIDCServiceGetDeviceAuthorizationRequestRequest diff --git a/zitadel_client/api/organization_service_api.py b/zitadel_client/api/organization_service_api.py index 04a43cc..26e0f1a 100644 --- a/zitadel_client/api/organization_service_api.py +++ b/zitadel_client/api/organization_service_api.py @@ -41,9 +41,9 @@ def __init__(self, api_client=None) -> None: @validate_call def add_organization( self, organization_service_add_organization_request: OrganizationServiceAddOrganizationRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> OrganizationServiceAddOrganizationResponse: - """AddOrganization + """Create an Organization - Create an Organization Create a new organization with an administrative user. If no specific roles are sent for the users, they will be granted the role ORG_OWNER. + Create a new organization with an administrative user. If no specific roles are sent for the users, they will be granted the role ORG_OWNER. :param organization_service_add_organization_request: (required) :type organization_service_add_organization_request: OrganizationServiceAddOrganizationRequest @@ -169,9 +169,9 @@ def _add_organization_serialize( @validate_call def list_organizations( self, organization_service_list_organizations_request: OrganizationServiceListOrganizationsRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> OrganizationServiceListOrganizationsResponse: - """ListOrganizations + """Search Organizations - Search Organizations Search for Organizations. By default, we will return all organization of the instance. Make sure to include a limit and sorting for pagination.. + Search for Organizations. By default, we will return all organization of the instance. Make sure to include a limit and sorting for pagination.. :param organization_service_list_organizations_request: (required) :type organization_service_list_organizations_request: OrganizationServiceListOrganizationsRequest diff --git a/zitadel_client/api/saml_service_api.py b/zitadel_client/api/saml_service_api.py index e403c3c..356a1f5 100644 --- a/zitadel_client/api/saml_service_api.py +++ b/zitadel_client/api/saml_service_api.py @@ -40,7 +40,9 @@ def __init__(self, api_client=None) -> None: @validate_call - def create_response( self, saml_service_create_response_request: SAMLServiceCreateResponseRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> SAMLServiceCreateResponseResponse: + def create_response( self, saml_service_create_response_request: Optional[SAMLServiceCreateResponseRequest] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> SAMLServiceCreateResponseResponse: + if saml_service_create_response_request is None: + saml_service_create_response_request = {} """CreateResponse diff --git a/zitadel_client/api/session_service_api.py b/zitadel_client/api/session_service_api.py index 71c1e5d..0d0fb5b 100644 --- a/zitadel_client/api/session_service_api.py +++ b/zitadel_client/api/session_service_api.py @@ -47,7 +47,7 @@ def __init__(self, api_client=None) -> None: @validate_call def create_session( self, session_service_create_session_request: SessionServiceCreateSessionRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> SessionServiceCreateSessionResponse: - """CreateSession + """Create a new session Create a new session @@ -175,7 +175,7 @@ def _create_session_serialize( @validate_call def delete_session( self, session_service_delete_session_request: SessionServiceDeleteSessionRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> SessionServiceDeleteSessionResponse: - """DeleteSession + """Terminate a session Terminate a session @@ -303,7 +303,7 @@ def _delete_session_serialize( @validate_call def get_session( self, session_service_get_session_request: SessionServiceGetSessionRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> SessionServiceGetSessionResponse: - """GetSession + """GetSession a session GetSession a session @@ -431,7 +431,7 @@ def _get_session_serialize( @validate_call def list_sessions( self, session_service_list_sessions_request: SessionServiceListSessionsRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> SessionServiceListSessionsResponse: - """ListSessions + """Search sessions Search sessions @@ -559,7 +559,7 @@ def _list_sessions_serialize( @validate_call def set_session( self, session_service_set_session_request: SessionServiceSetSessionRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> SessionServiceSetSessionResponse: - """SetSession + """Update a session Update a session diff --git a/zitadel_client/api/settings_service_api.py b/zitadel_client/api/settings_service_api.py index 61a0bd3..118c9c3 100644 --- a/zitadel_client/api/settings_service_api.py +++ b/zitadel_client/api/settings_service_api.py @@ -62,7 +62,7 @@ def __init__(self, api_client=None) -> None: @validate_call def get_active_identity_providers( self, settings_service_get_active_identity_providers_request: SettingsServiceGetActiveIdentityProvidersRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> SettingsServiceGetActiveIdentityProvidersResponse: - """GetActiveIdentityProviders + """Get the current active identity providers Get the current active identity providers @@ -190,7 +190,7 @@ def _get_active_identity_providers_serialize( @validate_call def get_branding_settings( self, settings_service_get_branding_settings_request: SettingsServiceGetBrandingSettingsRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> SettingsServiceGetBrandingSettingsResponse: - """GetBrandingSettings + """Get the current active branding settings Get the current active branding settings @@ -318,7 +318,7 @@ def _get_branding_settings_serialize( @validate_call def get_domain_settings( self, settings_service_get_domain_settings_request: SettingsServiceGetDomainSettingsRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> SettingsServiceGetDomainSettingsResponse: - """GetDomainSettings + """Get the domain settings Get the domain settings @@ -448,7 +448,7 @@ def _get_domain_settings_serialize( def get_general_settings( self, body: Optional[Dict[str, Any]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> SettingsServiceGetGeneralSettingsResponse: if body is None: body = {} - """GetGeneralSettings + """Get basic information over the instance Get basic information over the instance @@ -575,10 +575,12 @@ def _get_general_settings_serialize( @validate_call - def get_hosted_login_translation( self, settings_service_get_hosted_login_translation_request: SettingsServiceGetHostedLoginTranslationRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> SettingsServiceGetHostedLoginTranslationResponse: - """GetHostedLoginTranslation + def get_hosted_login_translation( self, settings_service_get_hosted_login_translation_request: Optional[SettingsServiceGetHostedLoginTranslationRequest] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> SettingsServiceGetHostedLoginTranslationResponse: + if settings_service_get_hosted_login_translation_request is None: + settings_service_get_hosted_login_translation_request = {} + """Get Hosted Login Translation - Get Hosted Login Translation Returns the translations in the requested locale for the hosted login. The translations returned are based on the input level specified (system, instance or organization). If the requested level doesn't contain all translations, and ignore_inheritance is set to false, a merging process fallbacks onto the higher levels ensuring all keys in the file have a translation, which could be in the default language if the one of the locale is missing on all levels. The etag returned in the response represents the hash of the translations as they are stored on DB and its reliable only if ignore_inheritance = true. Required permissions: - `iam.policy.read` + Returns the translations in the requested locale for the hosted login. The translations returned are based on the input level specified (system, instance or organization). If the requested level doesn't contain all translations, and ignore_inheritance is set to false, a merging process fallbacks onto the higher levels ensuring all keys in the file have a translation, which could be in the default language if the one of the locale is missing on all levels. The etag returned in the response represents the hash of the translations as they are stored on DB and its reliable only if ignore_inheritance = true. Required permissions: - `iam.policy.read` :param settings_service_get_hosted_login_translation_request: (required) :type settings_service_get_hosted_login_translation_request: SettingsServiceGetHostedLoginTranslationRequest @@ -704,7 +706,7 @@ def _get_hosted_login_translation_serialize( @validate_call def get_legal_and_support_settings( self, settings_service_get_legal_and_support_settings_request: SettingsServiceGetLegalAndSupportSettingsRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> SettingsServiceGetLegalAndSupportSettingsResponse: - """GetLegalAndSupportSettings + """Get the legal and support settings Get the legal and support settings @@ -832,7 +834,7 @@ def _get_legal_and_support_settings_serialize( @validate_call def get_lockout_settings( self, settings_service_get_lockout_settings_request: SettingsServiceGetLockoutSettingsRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> SettingsServiceGetLockoutSettingsResponse: - """GetLockoutSettings + """Get the lockout settings Get the lockout settings @@ -960,7 +962,7 @@ def _get_lockout_settings_serialize( @validate_call def get_login_settings( self, settings_service_get_login_settings_request: SettingsServiceGetLoginSettingsRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> SettingsServiceGetLoginSettingsResponse: - """GetLoginSettings + """Get the login settings Get the login settings @@ -1088,7 +1090,7 @@ def _get_login_settings_serialize( @validate_call def get_password_complexity_settings( self, settings_service_get_password_complexity_settings_request: SettingsServiceGetPasswordComplexitySettingsRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> SettingsServiceGetPasswordComplexitySettingsResponse: - """GetPasswordComplexitySettings + """Get the password complexity settings Get the password complexity settings @@ -1216,7 +1218,7 @@ def _get_password_complexity_settings_serialize( @validate_call def get_password_expiry_settings( self, settings_service_get_password_expiry_settings_request: SettingsServiceGetPasswordExpirySettingsRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> SettingsServiceGetPasswordExpirySettingsResponse: - """GetPasswordExpirySettings + """Get the password expiry settings Get the password expiry settings @@ -1346,7 +1348,7 @@ def _get_password_expiry_settings_serialize( def get_security_settings( self, body: Optional[Dict[str, Any]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> SettingsServiceGetSecuritySettingsResponse: if body is None: body = {} - """GetSecuritySettings + """Get the security settings Get the security settings @@ -1473,10 +1475,12 @@ def _get_security_settings_serialize( @validate_call - def set_hosted_login_translation( self, settings_service_set_hosted_login_translation_request: SettingsServiceSetHostedLoginTranslationRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> SettingsServiceSetHostedLoginTranslationResponse: - """SetHostedLoginTranslation + def set_hosted_login_translation( self, settings_service_set_hosted_login_translation_request: Optional[SettingsServiceSetHostedLoginTranslationRequest] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> SettingsServiceSetHostedLoginTranslationResponse: + if settings_service_set_hosted_login_translation_request is None: + settings_service_set_hosted_login_translation_request = {} + """Set Hosted Login Translation - Set Hosted Login Translation Sets the input translations at the specified level (instance or organization) for the input language. Required permissions: - `iam.policy.write` + Sets the input translations at the specified level (instance or organization) for the input language. Required permissions: - `iam.policy.write` :param settings_service_set_hosted_login_translation_request: (required) :type settings_service_set_hosted_login_translation_request: SettingsServiceSetHostedLoginTranslationRequest @@ -1602,7 +1606,7 @@ def _set_hosted_login_translation_serialize( @validate_call def set_security_settings( self, settings_service_set_security_settings_request: SettingsServiceSetSecuritySettingsRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> SettingsServiceSetSecuritySettingsResponse: - """SetSecuritySettings + """Set the security settings Set the security settings diff --git a/zitadel_client/api/user_service_api.py b/zitadel_client/api/user_service_api.py index 867dd01..59137b3 100644 --- a/zitadel_client/api/user_service_api.py +++ b/zitadel_client/api/user_service_api.py @@ -152,10 +152,12 @@ def __init__(self, api_client=None) -> None: @validate_call - def add_human_user( self, user_service_add_human_user_request: UserServiceAddHumanUserRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> UserServiceAddHumanUserResponse: - """AddHumanUser + def add_human_user( self, user_service_add_human_user_request: Optional[UserServiceAddHumanUserRequest] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> UserServiceAddHumanUserResponse: + if user_service_add_human_user_request is None: + user_service_add_human_user_request = {} + """Create a new human user - Create a new human user Deprecated: Use [CreateUser](apis/resources/user_service_v2/user-service-create-user.api.mdx) to create a new user of type human instead. Create/import a new user with the type human. The newly created user will get a verification email if either the email address is not marked as verified and you did not request the verification to be returned. + Deprecated: Use [CreateUser](apis/resources/user_service_v2/user-service-create-user.api.mdx) to create a new user of type human instead. Create/import a new user with the type human. The newly created user will get a verification email if either the email address is not marked as verified and you did not request the verification to be returned. :param user_service_add_human_user_request: (required) :type user_service_add_human_user_request: UserServiceAddHumanUserRequest @@ -281,9 +283,9 @@ def _add_human_user_serialize( @validate_call def add_idp_link( self, user_service_add_idp_link_request: UserServiceAddIDPLinkRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> UserServiceAddIDPLinkResponse: - """AddIDPLink + """Add link to an identity provider to an user - Add link to an identity provider to an user Add link to an identity provider to an user.. + Add link to an identity provider to an user.. :param user_service_add_idp_link_request: (required) :type user_service_add_idp_link_request: UserServiceAddIDPLinkRequest @@ -409,9 +411,9 @@ def _add_idp_link_serialize( @validate_call def add_key( self, user_service_add_key_request: UserServiceAddKeyRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> UserServiceAddKeyResponse: - """AddKey + """Add a Key - Add a Key Add a keys that can be used to securely authenticate at the Zitadel APIs using JWT profile authentication using short-lived tokens. Make sure you store the returned key safely, as you won't be able to read it from the Zitadel API anymore. Only users of type machine can have keys. Required permission: - user.write + Add a keys that can be used to securely authenticate at the Zitadel APIs using JWT profile authentication using short-lived tokens. Make sure you store the returned key safely, as you won't be able to read it from the Zitadel API anymore. Only users of type machine can have keys. Required permission: - user.write :param user_service_add_key_request: (required) :type user_service_add_key_request: UserServiceAddKeyRequest @@ -537,9 +539,9 @@ def _add_key_serialize( @validate_call def add_otp_email( self, user_service_add_otp_email_request: UserServiceAddOTPEmailRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> UserServiceAddOTPEmailResponse: - """AddOTPEmail + """Add OTP Email for a user - Add OTP Email for a user Add a new One-Time Password (OTP) Email factor to the authenticated user. OTP Email will enable the user to verify a OTP with the latest verified email. The email has to be verified to add the second factor.. + Add a new One-Time Password (OTP) Email factor to the authenticated user. OTP Email will enable the user to verify a OTP with the latest verified email. The email has to be verified to add the second factor.. :param user_service_add_otp_email_request: (required) :type user_service_add_otp_email_request: UserServiceAddOTPEmailRequest @@ -665,9 +667,9 @@ def _add_otp_email_serialize( @validate_call def add_otpsms( self, user_service_add_otpsms_request: UserServiceAddOTPSMSRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> UserServiceAddOTPSMSResponse: - """AddOTPSMS + """Add OTP SMS for a user - Add OTP SMS for a user Add a new One-Time Password (OTP) SMS factor to the authenticated user. OTP SMS will enable the user to verify a OTP with the latest verified phone number. The phone number has to be verified to add the second factor.. + Add a new One-Time Password (OTP) SMS factor to the authenticated user. OTP SMS will enable the user to verify a OTP with the latest verified phone number. The phone number has to be verified to add the second factor.. :param user_service_add_otpsms_request: (required) :type user_service_add_otpsms_request: UserServiceAddOTPSMSRequest @@ -793,9 +795,9 @@ def _add_otpsms_serialize( @validate_call def add_personal_access_token( self, user_service_add_personal_access_token_request: UserServiceAddPersonalAccessTokenRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> UserServiceAddPersonalAccessTokenResponse: - """AddPersonalAccessToken + """Add a Personal Access Token - Add a Personal Access Token Personal access tokens (PAT) are the easiest way to authenticate to the Zitadel APIs. Make sure you store the returned PAT safely, as you won't be able to read it from the Zitadel API anymore. Only users of type machine can have personal access tokens. Required permission: - user.write + Personal access tokens (PAT) are the easiest way to authenticate to the Zitadel APIs. Make sure you store the returned PAT safely, as you won't be able to read it from the Zitadel API anymore. Only users of type machine can have personal access tokens. Required permission: - user.write :param user_service_add_personal_access_token_request: (required) :type user_service_add_personal_access_token_request: UserServiceAddPersonalAccessTokenRequest @@ -921,9 +923,9 @@ def _add_personal_access_token_serialize( @validate_call def add_secret( self, user_service_add_secret_request: UserServiceAddSecretRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> UserServiceAddSecretResponse: - """AddSecret + """Add a Users Secret - Add a Users Secret Generates a client secret for the user. The client id is the users username. If the user already has a secret, it is overwritten. Only users of type machine can have a secret. Required permission: - user.write + Generates a client secret for the user. The client id is the users username. If the user already has a secret, it is overwritten. Only users of type machine can have a secret. Required permission: - user.write :param user_service_add_secret_request: (required) :type user_service_add_secret_request: UserServiceAddSecretRequest @@ -1048,10 +1050,12 @@ def _add_secret_serialize( @validate_call - def create_invite_code( self, user_service_create_invite_code_request: UserServiceCreateInviteCodeRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> UserServiceCreateInviteCodeResponse: - """CreateInviteCode + def create_invite_code( self, user_service_create_invite_code_request: Optional[UserServiceCreateInviteCodeRequest] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> UserServiceCreateInviteCodeResponse: + if user_service_create_invite_code_request is None: + user_service_create_invite_code_request = {} + """Create an invite code for a user - Create an invite code for a user Create an invite code for a user to initialize their first authentication method (password, passkeys, IdP) depending on the organization's available methods. If an invite code has been created previously, it's url template and application name will be used as defaults for the new code. The new code will overwrite the previous one and make it invalid. Note: It is possible to reissue a new code only when the previous code has expired, or when the user provides a wrong code three or more times during verification. + Create an invite code for a user to initialize their first authentication method (password, passkeys, IdP) depending on the organization's available methods. If an invite code has been created previously, it's url template and application name will be used as defaults for the new code. The new code will overwrite the previous one and make it invalid. Note: It is possible to reissue a new code only when the previous code has expired, or when the user provides a wrong code three or more times during verification. :param user_service_create_invite_code_request: (required) :type user_service_create_invite_code_request: UserServiceCreateInviteCodeRequest @@ -1176,10 +1180,12 @@ def _create_invite_code_serialize( @validate_call - def create_passkey_registration_link( self, user_service_create_passkey_registration_link_request: UserServiceCreatePasskeyRegistrationLinkRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> UserServiceCreatePasskeyRegistrationLinkResponse: - """CreatePasskeyRegistrationLink + def create_passkey_registration_link( self, user_service_create_passkey_registration_link_request: Optional[UserServiceCreatePasskeyRegistrationLinkRequest] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> UserServiceCreatePasskeyRegistrationLinkResponse: + if user_service_create_passkey_registration_link_request is None: + user_service_create_passkey_registration_link_request = {} + """Create a passkey registration link for a user - Create a passkey registration link for a user Create a passkey registration link which includes a code and either return it or send it to the user.. + Create a passkey registration link which includes a code and either return it or send it to the user.. :param user_service_create_passkey_registration_link_request: (required) :type user_service_create_passkey_registration_link_request: UserServiceCreatePasskeyRegistrationLinkRequest @@ -1304,10 +1310,12 @@ def _create_passkey_registration_link_serialize( @validate_call - def create_user( self, user_service_create_user_request: UserServiceCreateUserRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> UserServiceCreateUserResponse: - """CreateUser + def create_user( self, user_service_create_user_request: Optional[UserServiceCreateUserRequest] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> UserServiceCreateUserResponse: + if user_service_create_user_request is None: + user_service_create_user_request = {} + """Create a User - Create a User Create a new human or machine user in the specified organization. Required permission: - user.write + Create a new human or machine user in the specified organization. Required permission: - user.write :param user_service_create_user_request: (required) :type user_service_create_user_request: UserServiceCreateUserRequest @@ -1433,9 +1441,9 @@ def _create_user_serialize( @validate_call def deactivate_user( self, user_service_deactivate_user_request: UserServiceDeactivateUserRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> UserServiceDeactivateUserResponse: - """DeactivateUser + """Deactivate user - Deactivate user The state of the user will be changed to 'deactivated'. The user will not be able to log in anymore. The endpoint returns an error if the user is already in the state 'deactivated'. Use deactivate user when the user should not be able to use the account anymore, but you still need access to the user data.. + The state of the user will be changed to 'deactivated'. The user will not be able to log in anymore. The endpoint returns an error if the user is already in the state 'deactivated'. Use deactivate user when the user should not be able to use the account anymore, but you still need access to the user data.. :param user_service_deactivate_user_request: (required) :type user_service_deactivate_user_request: UserServiceDeactivateUserRequest @@ -1561,9 +1569,9 @@ def _deactivate_user_serialize( @validate_call def delete_user( self, user_service_delete_user_request: UserServiceDeleteUserRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> UserServiceDeleteUserResponse: - """DeleteUser + """Delete user - Delete user The state of the user will be changed to 'deleted'. The user will not be able to log in anymore. Endpoints requesting this user will return an error 'User not found.. + The state of the user will be changed to 'deleted'. The user will not be able to log in anymore. Endpoints requesting this user will return an error 'User not found.. :param user_service_delete_user_request: (required) :type user_service_delete_user_request: UserServiceDeleteUserRequest @@ -1689,9 +1697,9 @@ def _delete_user_serialize( @validate_call def delete_user_metadata( self, user_service_delete_user_metadata_request: UserServiceDeleteUserMetadataRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> UserServiceDeleteUserMetadataResponse: - """DeleteUserMetadata + """Delete User Metadata - Delete User Metadata Delete metadata objects from an user with a specific key. Required permission: - `user.write` + Delete metadata objects from an user with a specific key. Required permission: - `user.write` :param user_service_delete_user_metadata_request: (required) :type user_service_delete_user_metadata_request: UserServiceDeleteUserMetadataRequest @@ -1817,9 +1825,9 @@ def _delete_user_metadata_serialize( @validate_call def get_user_by_id( self, user_service_get_user_by_id_request: UserServiceGetUserByIDRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> UserServiceGetUserByIDResponse: - """GetUserByID + """User by ID - User by ID Returns the full user object (human or machine) including the profile, email, etc.. + Returns the full user object (human or machine) including the profile, email, etc.. :param user_service_get_user_by_id_request: (required) :type user_service_get_user_by_id_request: UserServiceGetUserByIDRequest @@ -1945,9 +1953,9 @@ def _get_user_by_id_serialize( @validate_call def human_mfa_init_skipped( self, user_service_human_mfa_init_skipped_request: UserServiceHumanMFAInitSkippedRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> UserServiceHumanMFAInitSkippedResponse: - """HumanMFAInitSkipped + """MFA Init Skipped - MFA Init Skipped Update the last time the user has skipped MFA initialization. The server timestamp is used. + Update the last time the user has skipped MFA initialization. The server timestamp is used. :param user_service_human_mfa_init_skipped_request: (required) :type user_service_human_mfa_init_skipped_request: UserServiceHumanMFAInitSkippedRequest @@ -2200,9 +2208,9 @@ def _list_authentication_factors_serialize( @validate_call def list_authentication_method_types( self, user_service_list_authentication_method_types_request: UserServiceListAuthenticationMethodTypesRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> UserServiceListAuthenticationMethodTypesResponse: - """ListAuthenticationMethodTypes + """List all possible authentication methods of a user - List all possible authentication methods of a user List all possible authentication methods of a user like password, passwordless, (T)OTP and more.. + List all possible authentication methods of a user like password, passwordless, (T)OTP and more.. :param user_service_list_authentication_method_types_request: (required) :type user_service_list_authentication_method_types_request: UserServiceListAuthenticationMethodTypesRequest @@ -2328,9 +2336,9 @@ def _list_authentication_method_types_serialize( @validate_call def list_idp_links( self, user_service_list_idp_links_request: UserServiceListIDPLinksRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> UserServiceListIDPLinksResponse: - """ListIDPLinks + """List links to an identity provider of an user - List links to an identity provider of an user List links to an identity provider of an user. + List links to an identity provider of an user. :param user_service_list_idp_links_request: (required) :type user_service_list_idp_links_request: UserServiceListIDPLinksRequest @@ -2456,9 +2464,9 @@ def _list_idp_links_serialize( @validate_call def list_keys( self, user_service_list_keys_request: UserServiceListKeysRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> UserServiceListKeysResponse: - """ListKeys + """Search Keys - Search Keys List all matching keys. By default all keys of the instance on which the caller has permission to read the owning users are returned. Make sure to include a limit and sorting for pagination. Required permission: - user.read + List all matching keys. By default all keys of the instance on which the caller has permission to read the owning users are returned. Make sure to include a limit and sorting for pagination. Required permission: - user.read :param user_service_list_keys_request: (required) :type user_service_list_keys_request: UserServiceListKeysRequest @@ -2584,9 +2592,9 @@ def _list_keys_serialize( @validate_call def list_passkeys( self, user_service_list_passkeys_request: UserServiceListPasskeysRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> UserServiceListPasskeysResponse: - """ListPasskeys + """List passkeys of an user - List passkeys of an user List passkeys of an user + List passkeys of an user :param user_service_list_passkeys_request: (required) :type user_service_list_passkeys_request: UserServiceListPasskeysRequest @@ -2712,9 +2720,9 @@ def _list_passkeys_serialize( @validate_call def list_personal_access_tokens( self, user_service_list_personal_access_tokens_request: UserServiceListPersonalAccessTokensRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> UserServiceListPersonalAccessTokensResponse: - """ListPersonalAccessTokens + """Search Personal Access Tokens - Search Personal Access Tokens List all personal access tokens. By default all personal access tokens of the instance on which the caller has permission to read the owning users are returned. Make sure to include a limit and sorting for pagination. Required permission: - user.read + List all personal access tokens. By default all personal access tokens of the instance on which the caller has permission to read the owning users are returned. Make sure to include a limit and sorting for pagination. Required permission: - user.read :param user_service_list_personal_access_tokens_request: (required) :type user_service_list_personal_access_tokens_request: UserServiceListPersonalAccessTokensRequest @@ -2840,9 +2848,9 @@ def _list_personal_access_tokens_serialize( @validate_call def list_user_metadata( self, user_service_list_user_metadata_request: UserServiceListUserMetadataRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> UserServiceListUserMetadataResponse: - """ListUserMetadata + """List User Metadata - List User Metadata List metadata of an user filtered by query. Required permission: - `user.read` + List metadata of an user filtered by query. Required permission: - `user.read` :param user_service_list_user_metadata_request: (required) :type user_service_list_user_metadata_request: UserServiceListUserMetadataRequest @@ -2968,9 +2976,9 @@ def _list_user_metadata_serialize( @validate_call def list_users( self, user_service_list_users_request: UserServiceListUsersRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> UserServiceListUsersResponse: - """ListUsers + """Search Users - Search Users Search for users. By default, we will return all users of your instance that you have permission to read. Make sure to include a limit and sorting for pagination. + Search for users. By default, we will return all users of your instance that you have permission to read. Make sure to include a limit and sorting for pagination. :param user_service_list_users_request: (required) :type user_service_list_users_request: UserServiceListUsersRequest @@ -3096,9 +3104,9 @@ def _list_users_serialize( @validate_call def lock_user( self, user_service_lock_user_request: UserServiceLockUserRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> UserServiceLockUserResponse: - """LockUser + """Lock user - Lock user The state of the user will be changed to 'locked'. The user will not be able to log in anymore. The endpoint returns an error if the user is already in the state 'locked'. Use this endpoint if the user should not be able to log in temporarily because of an event that happened (wrong password, etc.).. + The state of the user will be changed to 'locked'. The user will not be able to log in anymore. The endpoint returns an error if the user is already in the state 'locked'. Use this endpoint if the user should not be able to log in temporarily because of an event that happened (wrong password, etc.).. :param user_service_lock_user_request: (required) :type user_service_lock_user_request: UserServiceLockUserRequest @@ -3223,10 +3231,12 @@ def _lock_user_serialize( @validate_call - def password_reset( self, user_service_password_reset_request: UserServicePasswordResetRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> UserServicePasswordResetResponse: - """PasswordReset + def password_reset( self, user_service_password_reset_request: Optional[UserServicePasswordResetRequest] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> UserServicePasswordResetResponse: + if user_service_password_reset_request is None: + user_service_password_reset_request = {} + """Request a code to reset a password - Request a code to reset a password Request a code to reset a password.. + Request a code to reset a password.. :param user_service_password_reset_request: (required) :type user_service_password_reset_request: UserServicePasswordResetRequest @@ -3352,9 +3362,9 @@ def _password_reset_serialize( @validate_call def reactivate_user( self, user_service_reactivate_user_request: UserServiceReactivateUserRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> UserServiceReactivateUserResponse: - """ReactivateUser + """Reactivate user - Reactivate user Reactivate a user with the state 'deactivated'. The user will be able to log in again afterward. The endpoint returns an error if the user is not in the state 'deactivated'.. + Reactivate a user with the state 'deactivated'. The user will be able to log in again afterward. The endpoint returns an error if the user is not in the state 'deactivated'.. :param user_service_reactivate_user_request: (required) :type user_service_reactivate_user_request: UserServiceReactivateUserRequest @@ -3480,9 +3490,9 @@ def _reactivate_user_serialize( @validate_call def register_passkey( self, user_service_register_passkey_request: UserServiceRegisterPasskeyRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> UserServiceRegisterPasskeyResponse: - """RegisterPasskey + """Start the registration of passkey for a user - Start the registration of passkey for a user Start the registration of a passkey for a user, as a response the public key credential creation options are returned, which are used to verify the passkey.. + Start the registration of a passkey for a user, as a response the public key credential creation options are returned, which are used to verify the passkey.. :param user_service_register_passkey_request: (required) :type user_service_register_passkey_request: UserServiceRegisterPasskeyRequest @@ -3608,9 +3618,9 @@ def _register_passkey_serialize( @validate_call def register_totp( self, user_service_register_totp_request: UserServiceRegisterTOTPRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> UserServiceRegisterTOTPResponse: - """RegisterTOTP + """Start the registration of a TOTP generator for a user - Start the registration of a TOTP generator for a user Start the registration of a TOTP generator for a user, as a response a secret returned, which is used to initialize a TOTP app or device.. + Start the registration of a TOTP generator for a user, as a response a secret returned, which is used to initialize a TOTP app or device.. :param user_service_register_totp_request: (required) :type user_service_register_totp_request: UserServiceRegisterTOTPRequest @@ -3736,9 +3746,9 @@ def _register_totp_serialize( @validate_call def register_u2_f( self, user_service_register_u2_f_request: UserServiceRegisterU2FRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> UserServiceRegisterU2FResponse: - """RegisterU2F + """Start the registration of a u2f token for a user - Start the registration of a u2f token for a user Start the registration of a u2f token for a user, as a response the public key credential creation options are returned, which are used to verify the u2f token.. + Start the registration of a u2f token for a user, as a response the public key credential creation options are returned, which are used to verify the u2f token.. :param user_service_register_u2_f_request: (required) :type user_service_register_u2_f_request: UserServiceRegisterU2FRequest @@ -3864,9 +3874,9 @@ def _register_u2_f_serialize( @validate_call def remove_idp_link( self, user_service_remove_idp_link_request: UserServiceRemoveIDPLinkRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> UserServiceRemoveIDPLinkResponse: - """RemoveIDPLink + """Remove link of an identity provider to an user - Remove link of an identity provider to an user Remove link of an identity provider to an user. + Remove link of an identity provider to an user. :param user_service_remove_idp_link_request: (required) :type user_service_remove_idp_link_request: UserServiceRemoveIDPLinkRequest @@ -3992,9 +4002,9 @@ def _remove_idp_link_serialize( @validate_call def remove_key( self, user_service_remove_key_request: UserServiceRemoveKeyRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> UserServiceRemoveKeyResponse: - """RemoveKey + """Remove a Key - Remove a Key Remove a machine users key by the given key ID and an optionally given user ID. Required permission: - user.write + Remove a machine users key by the given key ID and an optionally given user ID. Required permission: - user.write :param user_service_remove_key_request: (required) :type user_service_remove_key_request: UserServiceRemoveKeyRequest @@ -4120,9 +4130,9 @@ def _remove_key_serialize( @validate_call def remove_otp_email( self, user_service_remove_otp_email_request: UserServiceRemoveOTPEmailRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> UserServiceRemoveOTPEmailResponse: - """RemoveOTPEmail + """Remove One-Time Password (OTP) Email from a user - Remove One-Time Password (OTP) Email from a user Remove the configured One-Time Password (OTP) Email factor of a user. As only one OTP Email per user is allowed, the user will not have OTP Email as a second factor afterward. + Remove the configured One-Time Password (OTP) Email factor of a user. As only one OTP Email per user is allowed, the user will not have OTP Email as a second factor afterward. :param user_service_remove_otp_email_request: (required) :type user_service_remove_otp_email_request: UserServiceRemoveOTPEmailRequest @@ -4248,9 +4258,9 @@ def _remove_otp_email_serialize( @validate_call def remove_otpsms( self, user_service_remove_otpsms_request: UserServiceRemoveOTPSMSRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> UserServiceRemoveOTPSMSResponse: - """RemoveOTPSMS + """Remove One-Time Password (OTP) SMS from a user - Remove One-Time Password (OTP) SMS from a user Remove the configured One-Time Password (OTP) SMS factor of a user. As only one OTP SMS per user is allowed, the user will not have OTP SMS as a second factor afterward. + Remove the configured One-Time Password (OTP) SMS factor of a user. As only one OTP SMS per user is allowed, the user will not have OTP SMS as a second factor afterward. :param user_service_remove_otpsms_request: (required) :type user_service_remove_otpsms_request: UserServiceRemoveOTPSMSRequest @@ -4376,9 +4386,9 @@ def _remove_otpsms_serialize( @validate_call def remove_passkey( self, user_service_remove_passkey_request: UserServiceRemovePasskeyRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> UserServiceRemovePasskeyResponse: - """RemovePasskey + """Remove passkey from a user - Remove passkey from a user Remove passkey from a user. + Remove passkey from a user. :param user_service_remove_passkey_request: (required) :type user_service_remove_passkey_request: UserServiceRemovePasskeyRequest @@ -4504,9 +4514,9 @@ def _remove_passkey_serialize( @validate_call def remove_personal_access_token( self, user_service_remove_personal_access_token_request: UserServiceRemovePersonalAccessTokenRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> UserServiceRemovePersonalAccessTokenResponse: - """RemovePersonalAccessToken + """Remove a Personal Access Token - Remove a Personal Access Token Removes a machine users personal access token by the given token ID and an optionally given user ID. Required permission: - user.write + Removes a machine users personal access token by the given token ID and an optionally given user ID. Required permission: - user.write :param user_service_remove_personal_access_token_request: (required) :type user_service_remove_personal_access_token_request: UserServiceRemovePersonalAccessTokenRequest @@ -4632,9 +4642,9 @@ def _remove_personal_access_token_serialize( @validate_call def remove_phone( self, user_service_remove_phone_request: UserServiceRemovePhoneRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> UserServiceRemovePhoneResponse: - """RemovePhone + """Delete the user phone - Delete the user phone Deprecated: [Update the users phone field](apis/resources/user_service_v2/user-service-update-user.api.mdx) to remove the phone number. Delete the phone number of a user. + Deprecated: [Update the users phone field](apis/resources/user_service_v2/user-service-update-user.api.mdx) to remove the phone number. Delete the phone number of a user. :param user_service_remove_phone_request: (required) :type user_service_remove_phone_request: UserServiceRemovePhoneRequest @@ -4760,9 +4770,9 @@ def _remove_phone_serialize( @validate_call def remove_secret( self, user_service_remove_secret_request: UserServiceRemoveSecretRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> UserServiceRemoveSecretResponse: - """RemoveSecret + """Remove a Users Secret - Remove a Users Secret Remove the current client ID and client secret from a machine user. Required permission: - user.write + Remove the current client ID and client secret from a machine user. Required permission: - user.write :param user_service_remove_secret_request: (required) :type user_service_remove_secret_request: UserServiceRemoveSecretRequest @@ -4888,9 +4898,9 @@ def _remove_secret_serialize( @validate_call def remove_totp( self, user_service_remove_totp_request: UserServiceRemoveTOTPRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> UserServiceRemoveTOTPResponse: - """RemoveTOTP + """Remove TOTP generator from a user - Remove TOTP generator from a user Remove the configured TOTP generator of a user. As only one TOTP generator per user is allowed, the user will not have TOTP as a second factor afterward. + Remove the configured TOTP generator of a user. As only one TOTP generator per user is allowed, the user will not have TOTP as a second factor afterward. :param user_service_remove_totp_request: (required) :type user_service_remove_totp_request: UserServiceRemoveTOTPRequest @@ -5016,9 +5026,9 @@ def _remove_totp_serialize( @validate_call def remove_u2_f( self, user_service_remove_u2_f_request: UserServiceRemoveU2FRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> UserServiceRemoveU2FResponse: - """RemoveU2F + """Remove u2f token from a user - Remove u2f token from a user Remove u2f token from a user. + Remove u2f token from a user. :param user_service_remove_u2_f_request: (required) :type user_service_remove_u2_f_request: UserServiceRemoveU2FRequest @@ -5143,8 +5153,10 @@ def _remove_u2_f_serialize( @validate_call - def resend_email_code( self, user_service_resend_email_code_request: UserServiceResendEmailCodeRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> UserServiceResendEmailCodeResponse: - """ResendEmailCode + def resend_email_code( self, user_service_resend_email_code_request: Optional[UserServiceResendEmailCodeRequest] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> UserServiceResendEmailCodeResponse: + if user_service_resend_email_code_request is None: + user_service_resend_email_code_request = {} + """Resend code to verify user email Resend code to verify user email @@ -5272,9 +5284,9 @@ def _resend_email_code_serialize( @validate_call def resend_invite_code( self, user_service_resend_invite_code_request: UserServiceResendInviteCodeRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> UserServiceResendInviteCodeResponse: - """ResendInviteCode + """Resend an invite code for a user - Resend an invite code for a user Deprecated: Use [CreateInviteCode](apis/resources/user_service_v2/user-service-create-invite-code.api.mdx) instead. Resend an invite code for a user to initialize their first authentication method (password, passkeys, IdP) depending on the organization's available methods. A resend is only possible if a code has been created previously and sent to the user. If there is no code or it was directly returned, an error will be returned. + Deprecated: Use [CreateInviteCode](apis/resources/user_service_v2/user-service-create-invite-code.api.mdx) instead. Resend an invite code for a user to initialize their first authentication method (password, passkeys, IdP) depending on the organization's available methods. A resend is only possible if a code has been created previously and sent to the user. If there is no code or it was directly returned, an error will be returned. :param user_service_resend_invite_code_request: (required) :type user_service_resend_invite_code_request: UserServiceResendInviteCodeRequest @@ -5399,10 +5411,12 @@ def _resend_invite_code_serialize( @validate_call - def resend_phone_code( self, user_service_resend_phone_code_request: UserServiceResendPhoneCodeRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> UserServiceResendPhoneCodeResponse: - """ResendPhoneCode + def resend_phone_code( self, user_service_resend_phone_code_request: Optional[UserServiceResendPhoneCodeRequest] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> UserServiceResendPhoneCodeResponse: + if user_service_resend_phone_code_request is None: + user_service_resend_phone_code_request = {} + """Resend code to verify user phone number - Resend code to verify user phone number Resend code to verify user phone number. + Resend code to verify user phone number. :param user_service_resend_phone_code_request: (required) :type user_service_resend_phone_code_request: UserServiceResendPhoneCodeRequest @@ -5528,9 +5542,9 @@ def _resend_phone_code_serialize( @validate_call def retrieve_identity_provider_intent( self, user_service_retrieve_identity_provider_intent_request: UserServiceRetrieveIdentityProviderIntentRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> UserServiceRetrieveIdentityProviderIntentResponse: - """RetrieveIdentityProviderIntent + """Retrieve the information returned by the identity provider - Retrieve the information returned by the identity provider Retrieve the information returned by the identity provider for registration or updating an existing user with new information.. + Retrieve the information returned by the identity provider for registration or updating an existing user with new information.. :param user_service_retrieve_identity_provider_intent_request: (required) :type user_service_retrieve_identity_provider_intent_request: UserServiceRetrieveIdentityProviderIntentRequest @@ -5655,8 +5669,10 @@ def _retrieve_identity_provider_intent_serialize( @validate_call - def send_email_code( self, user_service_send_email_code_request: UserServiceSendEmailCodeRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> UserServiceSendEmailCodeResponse: - """SendEmailCode + def send_email_code( self, user_service_send_email_code_request: Optional[UserServiceSendEmailCodeRequest] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> UserServiceSendEmailCodeResponse: + if user_service_send_email_code_request is None: + user_service_send_email_code_request = {} + """Send code to verify user email Send code to verify user email @@ -5783,10 +5799,12 @@ def _send_email_code_serialize( @validate_call - def set_email( self, user_service_set_email_request: UserServiceSetEmailRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> UserServiceSetEmailResponse: - """SetEmail + def set_email( self, user_service_set_email_request: Optional[UserServiceSetEmailRequest] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> UserServiceSetEmailResponse: + if user_service_set_email_request is None: + user_service_set_email_request = {} + """Change the user email - Change the user email Deprecated: [Update the users email field](apis/resources/user_service_v2/user-service-update-user.api.mdx). Change the email address of a user. If the state is set to not verified, a verification code will be generated, which can be either returned or sent to the user by email.. + Deprecated: [Update the users email field](apis/resources/user_service_v2/user-service-update-user.api.mdx). Change the email address of a user. If the state is set to not verified, a verification code will be generated, which can be either returned or sent to the user by email.. :param user_service_set_email_request: (required) :type user_service_set_email_request: UserServiceSetEmailRequest @@ -5911,10 +5929,12 @@ def _set_email_serialize( @validate_call - def set_password( self, user_service_set_password_request: UserServiceSetPasswordRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> UserServiceSetPasswordResponse: - """SetPassword + def set_password( self, user_service_set_password_request: Optional[UserServiceSetPasswordRequest] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> UserServiceSetPasswordResponse: + if user_service_set_password_request is None: + user_service_set_password_request = {} + """Change password - Change password Deprecated: [Update the users password](apis/resources/user_service_v2/user-service-update-user.api.mdx) instead. Change the password of a user with either a verification code or the current password.. + Deprecated: [Update the users password](apis/resources/user_service_v2/user-service-update-user.api.mdx) instead. Change the password of a user with either a verification code or the current password.. :param user_service_set_password_request: (required) :type user_service_set_password_request: UserServiceSetPasswordRequest @@ -6039,10 +6059,12 @@ def _set_password_serialize( @validate_call - def set_phone( self, user_service_set_phone_request: UserServiceSetPhoneRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> UserServiceSetPhoneResponse: - """SetPhone + def set_phone( self, user_service_set_phone_request: Optional[UserServiceSetPhoneRequest] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> UserServiceSetPhoneResponse: + if user_service_set_phone_request is None: + user_service_set_phone_request = {} + """Set the user phone - Set the user phone Deprecated: [Update the users phone field](apis/resources/user_service_v2/user-service-update-user.api.mdx). Set the phone number of a user. If the state is set to not verified, a verification code will be generated, which can be either returned or sent to the user by sms.. + Deprecated: [Update the users phone field](apis/resources/user_service_v2/user-service-update-user.api.mdx). Set the phone number of a user. If the state is set to not verified, a verification code will be generated, which can be either returned or sent to the user by sms.. :param user_service_set_phone_request: (required) :type user_service_set_phone_request: UserServiceSetPhoneRequest @@ -6168,9 +6190,9 @@ def _set_phone_serialize( @validate_call def set_user_metadata( self, user_service_set_user_metadata_request: UserServiceSetUserMetadataRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> UserServiceSetUserMetadataResponse: - """SetUserMetadata + """Set User Metadata - Set User Metadata Sets a list of key value pairs. Existing metadata entries with matching keys are overwritten. Existing metadata entries without matching keys are untouched. To remove metadata entries, use [DeleteUserMetadata](apis/resources/user_service_v2/user-service-delete-user-metadata.api.mdx). For HTTP requests, make sure the bytes array value is base64 encoded. Required permission: - `user.write` + Sets a list of key value pairs. Existing metadata entries with matching keys are overwritten. Existing metadata entries without matching keys are untouched. To remove metadata entries, use [DeleteUserMetadata](apis/resources/user_service_v2/user-service-delete-user-metadata.api.mdx). For HTTP requests, make sure the bytes array value is base64 encoded. Required permission: - `user.write` :param user_service_set_user_metadata_request: (required) :type user_service_set_user_metadata_request: UserServiceSetUserMetadataRequest @@ -6295,10 +6317,12 @@ def _set_user_metadata_serialize( @validate_call - def start_identity_provider_intent( self, user_service_start_identity_provider_intent_request: UserServiceStartIdentityProviderIntentRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> UserServiceStartIdentityProviderIntentResponse: - """StartIdentityProviderIntent + def start_identity_provider_intent( self, user_service_start_identity_provider_intent_request: Optional[UserServiceStartIdentityProviderIntentRequest] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> UserServiceStartIdentityProviderIntentResponse: + if user_service_start_identity_provider_intent_request is None: + user_service_start_identity_provider_intent_request = {} + """Start flow with an identity provider - Start flow with an identity provider Start a flow with an identity provider, for external login, registration or linking.. + Start a flow with an identity provider, for external login, registration or linking.. :param user_service_start_identity_provider_intent_request: (required) :type user_service_start_identity_provider_intent_request: UserServiceStartIdentityProviderIntentRequest @@ -6424,9 +6448,9 @@ def _start_identity_provider_intent_serialize( @validate_call def unlock_user( self, user_service_unlock_user_request: UserServiceUnlockUserRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> UserServiceUnlockUserResponse: - """UnlockUser + """Unlock user - Unlock user The state of the user will be changed to 'active'. The user will be able to log in again. The endpoint returns an error if the user is not in the state 'locked'. + The state of the user will be changed to 'active'. The user will be able to log in again. The endpoint returns an error if the user is not in the state 'locked'. :param user_service_unlock_user_request: (required) :type user_service_unlock_user_request: UserServiceUnlockUserRequest @@ -6552,9 +6576,9 @@ def _unlock_user_serialize( @validate_call def update_human_user( self, user_service_update_human_user_request: UserServiceUpdateHumanUserRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> UserServiceUpdateHumanUserResponse: - """UpdateHumanUser + """Update Human User - Update Human User Deprecated: Use [UpdateUser](apis/resources/user_service_v2/user-service-update-user.api.mdx) to update a user of type human instead. Update all information from a user. + Deprecated: Use [UpdateUser](apis/resources/user_service_v2/user-service-update-user.api.mdx) to update a user of type human instead. Update all information from a user. :param user_service_update_human_user_request: (required) :type user_service_update_human_user_request: UserServiceUpdateHumanUserRequest @@ -6679,10 +6703,12 @@ def _update_human_user_serialize( @validate_call - def update_user( self, user_service_update_user_request: UserServiceUpdateUserRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> UserServiceUpdateUserResponse: - """UpdateUser + def update_user( self, user_service_update_user_request: Optional[UserServiceUpdateUserRequest] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> UserServiceUpdateUserResponse: + if user_service_update_user_request is None: + user_service_update_user_request = {} + """Update a User - Update a User Partially update an existing user. If you change the users email or phone, you can specify how the ownership should be verified. If you change the users password, you can specify if the password should be changed again on the users next login. Required permission: - user.write + Partially update an existing user. If you change the users email or phone, you can specify how the ownership should be verified. If you change the users password, you can specify if the password should be changed again on the users next login. Required permission: - user.write :param user_service_update_user_request: (required) :type user_service_update_user_request: UserServiceUpdateUserRequest @@ -6808,9 +6834,9 @@ def _update_user_serialize( @validate_call def verify_email( self, user_service_verify_email_request: UserServiceVerifyEmailRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> UserServiceVerifyEmailResponse: - """VerifyEmail + """Verify the email - Verify the email Verify the email with the generated code. + Verify the email with the generated code. :param user_service_verify_email_request: (required) :type user_service_verify_email_request: UserServiceVerifyEmailRequest @@ -6936,9 +6962,9 @@ def _verify_email_serialize( @validate_call def verify_invite_code( self, user_service_verify_invite_code_request: UserServiceVerifyInviteCodeRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> UserServiceVerifyInviteCodeResponse: - """VerifyInviteCode + """Verify an invite code for a user - Verify an invite code for a user Verify the invite code of a user previously issued. This will set their email to a verified state and allow the user to set up their first authentication method (password, passkeys, IdP) depending on the organization's available methods. + Verify the invite code of a user previously issued. This will set their email to a verified state and allow the user to set up their first authentication method (password, passkeys, IdP) depending on the organization's available methods. :param user_service_verify_invite_code_request: (required) :type user_service_verify_invite_code_request: UserServiceVerifyInviteCodeRequest @@ -7064,9 +7090,9 @@ def _verify_invite_code_serialize( @validate_call def verify_passkey_registration( self, user_service_verify_passkey_registration_request: UserServiceVerifyPasskeyRegistrationRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> UserServiceVerifyPasskeyRegistrationResponse: - """VerifyPasskeyRegistration + """Verify a passkey for a user - Verify a passkey for a user Verify the passkey registration with the public key credential.. + Verify the passkey registration with the public key credential.. :param user_service_verify_passkey_registration_request: (required) :type user_service_verify_passkey_registration_request: UserServiceVerifyPasskeyRegistrationRequest @@ -7192,9 +7218,9 @@ def _verify_passkey_registration_serialize( @validate_call def verify_phone( self, user_service_verify_phone_request: UserServiceVerifyPhoneRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> UserServiceVerifyPhoneResponse: - """VerifyPhone + """Verify the phone number - Verify the phone number Verify the phone number with the generated code. + Verify the phone number with the generated code. :param user_service_verify_phone_request: (required) :type user_service_verify_phone_request: UserServiceVerifyPhoneRequest @@ -7320,9 +7346,9 @@ def _verify_phone_serialize( @validate_call def verify_totp_registration( self, user_service_verify_totp_registration_request: UserServiceVerifyTOTPRegistrationRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> UserServiceVerifyTOTPRegistrationResponse: - """VerifyTOTPRegistration + """Verify a TOTP generator for a user - Verify a TOTP generator for a user Verify the TOTP registration with a generated code.. + Verify the TOTP registration with a generated code.. :param user_service_verify_totp_registration_request: (required) :type user_service_verify_totp_registration_request: UserServiceVerifyTOTPRegistrationRequest @@ -7448,9 +7474,9 @@ def _verify_totp_registration_serialize( @validate_call def verify_u2_f_registration( self, user_service_verify_u2_f_registration_request: UserServiceVerifyU2FRegistrationRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> UserServiceVerifyU2FRegistrationResponse: - """VerifyU2FRegistration + """Verify a u2f token for a user - Verify a u2f token for a user Verify the u2f token registration with the public key credential.. + Verify the u2f token registration with the public key credential.. :param user_service_verify_u2_f_registration_request: (required) :type user_service_verify_u2_f_registration_request: UserServiceVerifyU2FRegistrationRequest diff --git a/zitadel_client/api/web_key_service_api.py b/zitadel_client/api/web_key_service_api.py index 53bb9ba..6b44501 100644 --- a/zitadel_client/api/web_key_service_api.py +++ b/zitadel_client/api/web_key_service_api.py @@ -45,9 +45,9 @@ def __init__(self, api_client=None) -> None: @validate_call def activate_web_key( self, web_key_service_activate_web_key_request: WebKeyServiceActivateWebKeyRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> WebKeyServiceActivateWebKeyResponse: - """ActivateWebKey + """Activate Web Key - Activate Web Key Switch the active signing web key. The previously active key will be deactivated. Note that the JWKs OIDC endpoint returns a cacheable response. Therefore it is not advised to activate a key that has been created within the cache duration (default is 5min), as the public key may not have been propagated to caches and clients yet. Required permission: - `iam.web_key.write` Required feature flag: - `web_key` + Switch the active signing web key. The previously active key will be deactivated. Note that the JWKs OIDC endpoint returns a cacheable response. Therefore it is not advised to activate a key that has been created within the cache duration (default is 5min), as the public key may not have been propagated to caches and clients yet. Required permission: - `iam.web_key.write` Required feature flag: - `web_key` :param web_key_service_activate_web_key_request: (required) :type web_key_service_activate_web_key_request: WebKeyServiceActivateWebKeyRequest @@ -173,9 +173,9 @@ def _activate_web_key_serialize( @validate_call def create_web_key( self, web_key_service_create_web_key_request: WebKeyServiceCreateWebKeyRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> WebKeyServiceCreateWebKeyResponse: - """CreateWebKey + """Create Web Key - Create Web Key Generate a private and public key pair. The private key can be used to sign OIDC tokens after activation. The public key can be used to validate OIDC tokens. The newly created key will have the state `STATE_INITIAL` and is published to the public key endpoint. Note that the JWKs OIDC endpoint returns a cacheable response. If no key type is provided, a RSA key pair with 2048 bits and SHA256 hashing will be created. Required permission: - `iam.web_key.write` Required feature flag: - `web_key` + Generate a private and public key pair. The private key can be used to sign OIDC tokens after activation. The public key can be used to validate OIDC tokens. The newly created key will have the state `STATE_INITIAL` and is published to the public key endpoint. Note that the JWKs OIDC endpoint returns a cacheable response. If no key type is provided, a RSA key pair with 2048 bits and SHA256 hashing will be created. Required permission: - `iam.web_key.write` Required feature flag: - `web_key` :param web_key_service_create_web_key_request: (required) :type web_key_service_create_web_key_request: WebKeyServiceCreateWebKeyRequest @@ -301,9 +301,9 @@ def _create_web_key_serialize( @validate_call def delete_web_key( self, web_key_service_delete_web_key_request: WebKeyServiceDeleteWebKeyRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> WebKeyServiceDeleteWebKeyResponse: - """DeleteWebKey + """Delete Web Key - Delete Web Key Delete a web key pair. Only inactive keys can be deleted. Once a key is deleted, any tokens signed by this key will be invalid. Note that the JWKs OIDC endpoint returns a cacheable response. In case the web key is not found, the request will return a successful response as the desired state is already achieved. You can check the change date in the response to verify if the web key was deleted during the request. Required permission: - `iam.web_key.delete` Required feature flag: - `web_key` + Delete a web key pair. Only inactive keys can be deleted. Once a key is deleted, any tokens signed by this key will be invalid. Note that the JWKs OIDC endpoint returns a cacheable response. In case the web key is not found, the request will return a successful response as the desired state is already achieved. You can check the change date in the response to verify if the web key was deleted during the request. Required permission: - `iam.web_key.delete` Required feature flag: - `web_key` :param web_key_service_delete_web_key_request: (required) :type web_key_service_delete_web_key_request: WebKeyServiceDeleteWebKeyRequest @@ -431,9 +431,9 @@ def _delete_web_key_serialize( def list_web_keys( self, body: Optional[Dict[str, Any]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] ] ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> WebKeyServiceListWebKeysResponse: if body is None: body = {} - """ListWebKeys + """List Web Keys - List Web Keys List all web keys and their states. Required permission: - `iam.web_key.read` Required feature flag: - `web_key` + List all web keys and their states. Required permission: - `iam.web_key.read` Required feature flag: - `web_key` :param body: (required) :type body: object diff --git a/zitadel_client/api_client.py b/zitadel_client/api_client.py index 8f70e76..94a6ce3 100644 --- a/zitadel_client/api_client.py +++ b/zitadel_client/api_client.py @@ -250,7 +250,25 @@ def response_deserialize( return_data = self.deserialize(response_text, response_type, content_type) finally: if not 200 <= response_data.status <= 299: - raise ApiError(response_data.status, response_data.getheaders(), return_data) + body = None + if response_data.data: + content_type = response_data.getheader("content-type") or "" + + # Manually check if the content type is JSON-like + is_json = re.match(r"^(application/json|[^;/ \t]+/[^;/ \t]+[+]json)", content_type, re.IGNORECASE) + + if is_json: + try: + # Attempt to decode the JSON into a standard dictionary + body = json.loads(response_data.data.decode("utf-8")) + except (json.JSONDecodeError, UnicodeDecodeError): + # Fallback to raw text if JSON is malformed + body = response_data.data.decode("utf-8", errors="ignore") + else: + # If content type is not JSON, use the raw text + body = response_data.data.decode("utf-8", errors="ignore") + + raise ApiError(response_data.status, response_data.getheaders(), body) else: return ApiResponse( status_code=response_data.status, diff --git a/zitadel_client/models/__init__.py b/zitadel_client/models/__init__.py index f1be3ef..e195e73 100644 --- a/zitadel_client/models/__init__.py +++ b/zitadel_client/models/__init__.py @@ -362,6 +362,7 @@ from zitadel_client.models.beta_project_service_activate_project_response import BetaProjectServiceActivateProjectResponse from zitadel_client.models.beta_project_service_add_project_role_request import BetaProjectServiceAddProjectRoleRequest from zitadel_client.models.beta_project_service_add_project_role_response import BetaProjectServiceAddProjectRoleResponse +from zitadel_client.models.beta_project_service_admin import BetaProjectServiceAdmin from zitadel_client.models.beta_project_service_any import BetaProjectServiceAny from zitadel_client.models.beta_project_service_connect_error import BetaProjectServiceConnectError from zitadel_client.models.beta_project_service_create_project_grant_request import BetaProjectServiceCreateProjectGrantRequest diff --git a/zitadel_client/models/action_service_any.py b/zitadel_client/models/action_service_any.py index 5bfc124..10292b1 100644 --- a/zitadel_client/models/action_service_any.py +++ b/zitadel_client/models/action_service_any.py @@ -17,18 +17,18 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, StrictBytes, StrictStr +from pydantic import BaseModel, ConfigDict, Field, StrictBytes, StrictStr from typing import Any, ClassVar, Dict, List, Optional, Tuple, Union from typing import Optional, Set from typing_extensions import Self class ActionServiceAny(BaseModel): """ - Contains an arbitrary serialized message along with a @type that describes the type of the serialized message. + Contains an arbitrary serialized message along with a @type that describes the type of the serialized message, with an additional debug field for ConnectRPC error details. """ # noqa: E501 - type: Optional[StrictStr] = None - value: Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]] = None - debug: Optional[Dict[str, Any]] = None + type: Optional[StrictStr] = Field(default=None, description="A URL that acts as a globally unique identifier for the type of the serialized message. For example: `type.googleapis.com/google.rpc.ErrorInfo`. This is used to determine the schema of the data in the `value` field and is the discriminator for the `debug` field.") + value: Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]] = Field(default=None, description="The Protobuf message, serialized as bytes and base64-encoded. The specific message type is identified by the `type` field.") + debug: Optional[Any] = Field(default=None, description="Deserialized error detail payload. The 'type' field indicates the schema. This field is for easier debugging and should not be relied upon for application logic.") additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["type", "value", "debug"] @@ -78,6 +78,11 @@ def to_dict(self) -> Dict[str, Any]: for _key, _value in self.additional_properties.items(): _dict[_key] = _value + # set to None if debug (nullable) is None + # and model_fields_set contains the field + if self.debug is None and "debug" in self.model_fields_set: + _dict['debug'] = None + return _dict @classmethod diff --git a/zitadel_client/models/action_service_connect_error.py b/zitadel_client/models/action_service_connect_error.py index a0fda80..6bb6536 100644 --- a/zitadel_client/models/action_service_connect_error.py +++ b/zitadel_client/models/action_service_connect_error.py @@ -29,9 +29,9 @@ class ActionServiceConnectError(BaseModel): """ # noqa: E501 code: Optional[StrictStr] = Field(default=None, description="The status code, which should be an enum value of [google.rpc.Code][google.rpc.Code].") message: Optional[StrictStr] = Field(default=None, description="A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the [google.rpc.Status.details][google.rpc.Status.details] field, or localized by the client.") - detail: Optional[ActionServiceAny] = None + details: Optional[List[ActionServiceAny]] = Field(default=None, description="A list of messages that carry the error details. There is no limit on the number of messages.") additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["code", "message", "detail"] + __properties: ClassVar[List[str]] = ["code", "message", "details"] @field_validator('code') def code_validate_enum(cls, value): @@ -84,9 +84,13 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # override the default output from pydantic by calling `to_dict()` of detail - if self.detail: - _dict['detail'] = self.detail.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in details (list) + _items = [] + if self.details: + for _item_details in self.details: + if _item_details: + _items.append(_item_details.to_dict()) + _dict['details'] = _items # puts key-value pairs in additional_properties in the top level if self.additional_properties is not None: for _key, _value in self.additional_properties.items(): @@ -106,7 +110,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "code": obj.get("code"), "message": obj.get("message"), - "detail": ActionServiceAny.from_dict(obj["detail"]) if obj.get("detail") is not None else None + "details": [ActionServiceAny.from_dict(_item) for _item in obj["details"]] if obj.get("details") is not None else None }) # store additional fields in additional_properties for _key in obj.keys(): diff --git a/zitadel_client/models/action_service_delete_target_request.py b/zitadel_client/models/action_service_delete_target_request.py index 78ecc8e..3e144ae 100644 --- a/zitadel_client/models/action_service_delete_target_request.py +++ b/zitadel_client/models/action_service_delete_target_request.py @@ -18,7 +18,7 @@ import json from pydantic import BaseModel, ConfigDict, StrictStr -from typing import Any, ClassVar, Dict +from typing import Any, ClassVar, Dict, Optional from typing import Optional, Set from typing_extensions import Self @@ -26,7 +26,7 @@ class ActionServiceDeleteTargetRequest(BaseModel): """ ActionServiceDeleteTargetRequest """ # noqa: E501 - id: StrictStr + id: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["id"] model_config = ConfigDict( diff --git a/zitadel_client/models/beta_action_service_any.py b/zitadel_client/models/beta_action_service_any.py index c0e3c9a..3247066 100644 --- a/zitadel_client/models/beta_action_service_any.py +++ b/zitadel_client/models/beta_action_service_any.py @@ -17,18 +17,18 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, StrictBytes, StrictStr +from pydantic import BaseModel, ConfigDict, Field, StrictBytes, StrictStr from typing import Any, ClassVar, Dict, List, Optional, Tuple, Union from typing import Optional, Set from typing_extensions import Self class BetaActionServiceAny(BaseModel): """ - Contains an arbitrary serialized message along with a @type that describes the type of the serialized message. + Contains an arbitrary serialized message along with a @type that describes the type of the serialized message, with an additional debug field for ConnectRPC error details. """ # noqa: E501 - type: Optional[StrictStr] = None - value: Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]] = None - debug: Optional[Dict[str, Any]] = None + type: Optional[StrictStr] = Field(default=None, description="A URL that acts as a globally unique identifier for the type of the serialized message. For example: `type.googleapis.com/google.rpc.ErrorInfo`. This is used to determine the schema of the data in the `value` field and is the discriminator for the `debug` field.") + value: Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]] = Field(default=None, description="The Protobuf message, serialized as bytes and base64-encoded. The specific message type is identified by the `type` field.") + debug: Optional[Any] = Field(default=None, description="Deserialized error detail payload. The 'type' field indicates the schema. This field is for easier debugging and should not be relied upon for application logic.") additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["type", "value", "debug"] @@ -78,6 +78,11 @@ def to_dict(self) -> Dict[str, Any]: for _key, _value in self.additional_properties.items(): _dict[_key] = _value + # set to None if debug (nullable) is None + # and model_fields_set contains the field + if self.debug is None and "debug" in self.model_fields_set: + _dict['debug'] = None + return _dict @classmethod diff --git a/zitadel_client/models/beta_action_service_connect_error.py b/zitadel_client/models/beta_action_service_connect_error.py index 022432a..ea1094a 100644 --- a/zitadel_client/models/beta_action_service_connect_error.py +++ b/zitadel_client/models/beta_action_service_connect_error.py @@ -29,9 +29,9 @@ class BetaActionServiceConnectError(BaseModel): """ # noqa: E501 code: Optional[StrictStr] = Field(default=None, description="The status code, which should be an enum value of [google.rpc.Code][google.rpc.Code].") message: Optional[StrictStr] = Field(default=None, description="A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the [google.rpc.Status.details][google.rpc.Status.details] field, or localized by the client.") - detail: Optional[BetaActionServiceAny] = None + details: Optional[List[BetaActionServiceAny]] = Field(default=None, description="A list of messages that carry the error details. There is no limit on the number of messages.") additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["code", "message", "detail"] + __properties: ClassVar[List[str]] = ["code", "message", "details"] @field_validator('code') def code_validate_enum(cls, value): @@ -84,9 +84,13 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # override the default output from pydantic by calling `to_dict()` of detail - if self.detail: - _dict['detail'] = self.detail.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in details (list) + _items = [] + if self.details: + for _item_details in self.details: + if _item_details: + _items.append(_item_details.to_dict()) + _dict['details'] = _items # puts key-value pairs in additional_properties in the top level if self.additional_properties is not None: for _key, _value in self.additional_properties.items(): @@ -106,7 +110,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "code": obj.get("code"), "message": obj.get("message"), - "detail": BetaActionServiceAny.from_dict(obj["detail"]) if obj.get("detail") is not None else None + "details": [BetaActionServiceAny.from_dict(_item) for _item in obj["details"]] if obj.get("details") is not None else None }) # store additional fields in additional_properties for _key in obj.keys(): diff --git a/zitadel_client/models/beta_action_service_delete_target_request.py b/zitadel_client/models/beta_action_service_delete_target_request.py index af39f74..016a1fd 100644 --- a/zitadel_client/models/beta_action_service_delete_target_request.py +++ b/zitadel_client/models/beta_action_service_delete_target_request.py @@ -18,7 +18,7 @@ import json from pydantic import BaseModel, ConfigDict, StrictStr -from typing import Any, ClassVar, Dict +from typing import Any, ClassVar, Dict, Optional from typing import Optional, Set from typing_extensions import Self @@ -26,7 +26,7 @@ class BetaActionServiceDeleteTargetRequest(BaseModel): """ BetaActionServiceDeleteTargetRequest """ # noqa: E501 - id: StrictStr + id: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["id"] model_config = ConfigDict( diff --git a/zitadel_client/models/beta_app_service_any.py b/zitadel_client/models/beta_app_service_any.py index 62bc714..7f4d695 100644 --- a/zitadel_client/models/beta_app_service_any.py +++ b/zitadel_client/models/beta_app_service_any.py @@ -17,18 +17,18 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, StrictBytes, StrictStr +from pydantic import BaseModel, ConfigDict, Field, StrictBytes, StrictStr from typing import Any, ClassVar, Dict, List, Optional, Tuple, Union from typing import Optional, Set from typing_extensions import Self class BetaAppServiceAny(BaseModel): """ - Contains an arbitrary serialized message along with a @type that describes the type of the serialized message. + Contains an arbitrary serialized message along with a @type that describes the type of the serialized message, with an additional debug field for ConnectRPC error details. """ # noqa: E501 - type: Optional[StrictStr] = None - value: Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]] = None - debug: Optional[Dict[str, Any]] = None + type: Optional[StrictStr] = Field(default=None, description="A URL that acts as a globally unique identifier for the type of the serialized message. For example: `type.googleapis.com/google.rpc.ErrorInfo`. This is used to determine the schema of the data in the `value` field and is the discriminator for the `debug` field.") + value: Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]] = Field(default=None, description="The Protobuf message, serialized as bytes and base64-encoded. The specific message type is identified by the `type` field.") + debug: Optional[Any] = Field(default=None, description="Deserialized error detail payload. The 'type' field indicates the schema. This field is for easier debugging and should not be relied upon for application logic.") additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["type", "value", "debug"] @@ -78,6 +78,11 @@ def to_dict(self) -> Dict[str, Any]: for _key, _value in self.additional_properties.items(): _dict[_key] = _value + # set to None if debug (nullable) is None + # and model_fields_set contains the field + if self.debug is None and "debug" in self.model_fields_set: + _dict['debug'] = None + return _dict @classmethod diff --git a/zitadel_client/models/beta_app_service_connect_error.py b/zitadel_client/models/beta_app_service_connect_error.py index 5a98d4a..5082ada 100644 --- a/zitadel_client/models/beta_app_service_connect_error.py +++ b/zitadel_client/models/beta_app_service_connect_error.py @@ -29,9 +29,9 @@ class BetaAppServiceConnectError(BaseModel): """ # noqa: E501 code: Optional[StrictStr] = Field(default=None, description="The status code, which should be an enum value of [google.rpc.Code][google.rpc.Code].") message: Optional[StrictStr] = Field(default=None, description="A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the [google.rpc.Status.details][google.rpc.Status.details] field, or localized by the client.") - detail: Optional[BetaAppServiceAny] = None + details: Optional[List[BetaAppServiceAny]] = Field(default=None, description="A list of messages that carry the error details. There is no limit on the number of messages.") additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["code", "message", "detail"] + __properties: ClassVar[List[str]] = ["code", "message", "details"] @field_validator('code') def code_validate_enum(cls, value): @@ -84,9 +84,13 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # override the default output from pydantic by calling `to_dict()` of detail - if self.detail: - _dict['detail'] = self.detail.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in details (list) + _items = [] + if self.details: + for _item_details in self.details: + if _item_details: + _items.append(_item_details.to_dict()) + _dict['details'] = _items # puts key-value pairs in additional_properties in the top level if self.additional_properties is not None: for _key, _value in self.additional_properties.items(): @@ -106,7 +110,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "code": obj.get("code"), "message": obj.get("message"), - "detail": BetaAppServiceAny.from_dict(obj["detail"]) if obj.get("detail") is not None else None + "details": [BetaAppServiceAny.from_dict(_item) for _item in obj["details"]] if obj.get("details") is not None else None }) # store additional fields in additional_properties for _key in obj.keys(): diff --git a/zitadel_client/models/beta_app_service_create_application_request.py b/zitadel_client/models/beta_app_service_create_application_request.py index 63410f1..51eede7 100644 --- a/zitadel_client/models/beta_app_service_create_application_request.py +++ b/zitadel_client/models/beta_app_service_create_application_request.py @@ -31,7 +31,7 @@ class BetaAppServiceCreateApplicationRequest(BaseModel): """ # noqa: E501 project_id: Optional[StrictStr] = Field(default=None, alias="projectId") id: Optional[StrictStr] = None - name: StrictStr + name: Optional[StrictStr] = None api_request: Optional[BetaAppServiceCreateAPIApplicationRequest] = Field(default=None, alias="apiRequest") oidc_request: Optional[BetaAppServiceCreateOIDCApplicationRequest] = Field(default=None, alias="oidcRequest") saml_request: Optional[BetaAppServiceCreateSAMLApplicationRequest] = Field(default=None, alias="samlRequest") diff --git a/zitadel_client/models/beta_app_service_get_application_request.py b/zitadel_client/models/beta_app_service_get_application_request.py index c94bf32..8df61f1 100644 --- a/zitadel_client/models/beta_app_service_get_application_request.py +++ b/zitadel_client/models/beta_app_service_get_application_request.py @@ -18,7 +18,7 @@ import json from pydantic import BaseModel, ConfigDict, StrictStr -from typing import Any, ClassVar, Dict +from typing import Any, ClassVar, Dict, Optional from typing import Optional, Set from typing_extensions import Self @@ -26,7 +26,7 @@ class BetaAppServiceGetApplicationRequest(BaseModel): """ BetaAppServiceGetApplicationRequest """ # noqa: E501 - id: StrictStr + id: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["id"] model_config = ConfigDict( diff --git a/zitadel_client/models/beta_app_service_update_application_request.py b/zitadel_client/models/beta_app_service_update_application_request.py index c0c7d53..1a99c00 100644 --- a/zitadel_client/models/beta_app_service_update_application_request.py +++ b/zitadel_client/models/beta_app_service_update_application_request.py @@ -30,7 +30,7 @@ class BetaAppServiceUpdateApplicationRequest(BaseModel): BetaAppServiceUpdateApplicationRequest """ # noqa: E501 project_id: Optional[StrictStr] = Field(default=None, alias="projectId") - id: StrictStr + id: Optional[StrictStr] = None name: Optional[StrictStr] = None api_configuration_request: Optional[BetaAppServiceUpdateAPIApplicationConfigurationRequest] = Field(default=None, alias="apiConfigurationRequest") oidc_configuration_request: Optional[BetaAppServiceUpdateOIDCApplicationConfigurationRequest] = Field(default=None, alias="oidcConfigurationRequest") diff --git a/zitadel_client/models/beta_authorization_service_any.py b/zitadel_client/models/beta_authorization_service_any.py index a6b18a7..87a8a0b 100644 --- a/zitadel_client/models/beta_authorization_service_any.py +++ b/zitadel_client/models/beta_authorization_service_any.py @@ -17,18 +17,18 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, StrictBytes, StrictStr +from pydantic import BaseModel, ConfigDict, Field, StrictBytes, StrictStr from typing import Any, ClassVar, Dict, List, Optional, Tuple, Union from typing import Optional, Set from typing_extensions import Self class BetaAuthorizationServiceAny(BaseModel): """ - Contains an arbitrary serialized message along with a @type that describes the type of the serialized message. + Contains an arbitrary serialized message along with a @type that describes the type of the serialized message, with an additional debug field for ConnectRPC error details. """ # noqa: E501 - type: Optional[StrictStr] = None - value: Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]] = None - debug: Optional[Dict[str, Any]] = None + type: Optional[StrictStr] = Field(default=None, description="A URL that acts as a globally unique identifier for the type of the serialized message. For example: `type.googleapis.com/google.rpc.ErrorInfo`. This is used to determine the schema of the data in the `value` field and is the discriminator for the `debug` field.") + value: Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]] = Field(default=None, description="The Protobuf message, serialized as bytes and base64-encoded. The specific message type is identified by the `type` field.") + debug: Optional[Any] = Field(default=None, description="Deserialized error detail payload. The 'type' field indicates the schema. This field is for easier debugging and should not be relied upon for application logic.") additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["type", "value", "debug"] @@ -78,6 +78,11 @@ def to_dict(self) -> Dict[str, Any]: for _key, _value in self.additional_properties.items(): _dict[_key] = _value + # set to None if debug (nullable) is None + # and model_fields_set contains the field + if self.debug is None and "debug" in self.model_fields_set: + _dict['debug'] = None + return _dict @classmethod diff --git a/zitadel_client/models/beta_authorization_service_connect_error.py b/zitadel_client/models/beta_authorization_service_connect_error.py index 37dc29c..234697c 100644 --- a/zitadel_client/models/beta_authorization_service_connect_error.py +++ b/zitadel_client/models/beta_authorization_service_connect_error.py @@ -29,9 +29,9 @@ class BetaAuthorizationServiceConnectError(BaseModel): """ # noqa: E501 code: Optional[StrictStr] = Field(default=None, description="The status code, which should be an enum value of [google.rpc.Code][google.rpc.Code].") message: Optional[StrictStr] = Field(default=None, description="A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the [google.rpc.Status.details][google.rpc.Status.details] field, or localized by the client.") - detail: Optional[BetaAuthorizationServiceAny] = None + details: Optional[List[BetaAuthorizationServiceAny]] = Field(default=None, description="A list of messages that carry the error details. There is no limit on the number of messages.") additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["code", "message", "detail"] + __properties: ClassVar[List[str]] = ["code", "message", "details"] @field_validator('code') def code_validate_enum(cls, value): @@ -84,9 +84,13 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # override the default output from pydantic by calling `to_dict()` of detail - if self.detail: - _dict['detail'] = self.detail.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in details (list) + _items = [] + if self.details: + for _item_details in self.details: + if _item_details: + _items.append(_item_details.to_dict()) + _dict['details'] = _items # puts key-value pairs in additional_properties in the top level if self.additional_properties is not None: for _key, _value in self.additional_properties.items(): @@ -106,7 +110,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "code": obj.get("code"), "message": obj.get("message"), - "detail": BetaAuthorizationServiceAny.from_dict(obj["detail"]) if obj.get("detail") is not None else None + "details": [BetaAuthorizationServiceAny.from_dict(_item) for _item in obj["details"]] if obj.get("details") is not None else None }) # store additional fields in additional_properties for _key in obj.keys(): diff --git a/zitadel_client/models/beta_feature_service_any.py b/zitadel_client/models/beta_feature_service_any.py index 12fb52a..0345e5b 100644 --- a/zitadel_client/models/beta_feature_service_any.py +++ b/zitadel_client/models/beta_feature_service_any.py @@ -17,18 +17,18 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, StrictBytes, StrictStr +from pydantic import BaseModel, ConfigDict, Field, StrictBytes, StrictStr from typing import Any, ClassVar, Dict, List, Optional, Tuple, Union from typing import Optional, Set from typing_extensions import Self class BetaFeatureServiceAny(BaseModel): """ - Contains an arbitrary serialized message along with a @type that describes the type of the serialized message. + Contains an arbitrary serialized message along with a @type that describes the type of the serialized message, with an additional debug field for ConnectRPC error details. """ # noqa: E501 - type: Optional[StrictStr] = None - value: Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]] = None - debug: Optional[Dict[str, Any]] = None + type: Optional[StrictStr] = Field(default=None, description="A URL that acts as a globally unique identifier for the type of the serialized message. For example: `type.googleapis.com/google.rpc.ErrorInfo`. This is used to determine the schema of the data in the `value` field and is the discriminator for the `debug` field.") + value: Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]] = Field(default=None, description="The Protobuf message, serialized as bytes and base64-encoded. The specific message type is identified by the `type` field.") + debug: Optional[Any] = Field(default=None, description="Deserialized error detail payload. The 'type' field indicates the schema. This field is for easier debugging and should not be relied upon for application logic.") additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["type", "value", "debug"] @@ -78,6 +78,11 @@ def to_dict(self) -> Dict[str, Any]: for _key, _value in self.additional_properties.items(): _dict[_key] = _value + # set to None if debug (nullable) is None + # and model_fields_set contains the field + if self.debug is None and "debug" in self.model_fields_set: + _dict['debug'] = None + return _dict @classmethod diff --git a/zitadel_client/models/beta_feature_service_connect_error.py b/zitadel_client/models/beta_feature_service_connect_error.py index 2ef2715..dc8aff6 100644 --- a/zitadel_client/models/beta_feature_service_connect_error.py +++ b/zitadel_client/models/beta_feature_service_connect_error.py @@ -29,9 +29,9 @@ class BetaFeatureServiceConnectError(BaseModel): """ # noqa: E501 code: Optional[StrictStr] = Field(default=None, description="The status code, which should be an enum value of [google.rpc.Code][google.rpc.Code].") message: Optional[StrictStr] = Field(default=None, description="A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the [google.rpc.Status.details][google.rpc.Status.details] field, or localized by the client.") - detail: Optional[BetaFeatureServiceAny] = None + details: Optional[List[BetaFeatureServiceAny]] = Field(default=None, description="A list of messages that carry the error details. There is no limit on the number of messages.") additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["code", "message", "detail"] + __properties: ClassVar[List[str]] = ["code", "message", "details"] @field_validator('code') def code_validate_enum(cls, value): @@ -84,9 +84,13 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # override the default output from pydantic by calling `to_dict()` of detail - if self.detail: - _dict['detail'] = self.detail.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in details (list) + _items = [] + if self.details: + for _item_details in self.details: + if _item_details: + _items.append(_item_details.to_dict()) + _dict['details'] = _items # puts key-value pairs in additional_properties in the top level if self.additional_properties is not None: for _key, _value in self.additional_properties.items(): @@ -106,7 +110,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "code": obj.get("code"), "message": obj.get("message"), - "detail": BetaFeatureServiceAny.from_dict(obj["detail"]) if obj.get("detail") is not None else None + "details": [BetaFeatureServiceAny.from_dict(_item) for _item in obj["details"]] if obj.get("details") is not None else None }) # store additional fields in additional_properties for _key in obj.keys(): diff --git a/zitadel_client/models/beta_instance_service_add_trusted_domain_request.py b/zitadel_client/models/beta_instance_service_add_trusted_domain_request.py index 5c609c1..72c84e3 100644 --- a/zitadel_client/models/beta_instance_service_add_trusted_domain_request.py +++ b/zitadel_client/models/beta_instance_service_add_trusted_domain_request.py @@ -27,7 +27,7 @@ class BetaInstanceServiceAddTrustedDomainRequest(BaseModel): BetaInstanceServiceAddTrustedDomainRequest """ # noqa: E501 instance_id: Optional[StrictStr] = Field(default=None, alias="instanceId") - domain: StrictStr + domain: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["instanceId", "domain"] model_config = ConfigDict( diff --git a/zitadel_client/models/beta_instance_service_any.py b/zitadel_client/models/beta_instance_service_any.py index 6c3423f..debf25a 100644 --- a/zitadel_client/models/beta_instance_service_any.py +++ b/zitadel_client/models/beta_instance_service_any.py @@ -17,18 +17,18 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, StrictBytes, StrictStr +from pydantic import BaseModel, ConfigDict, Field, StrictBytes, StrictStr from typing import Any, ClassVar, Dict, List, Optional, Tuple, Union from typing import Optional, Set from typing_extensions import Self class BetaInstanceServiceAny(BaseModel): """ - Contains an arbitrary serialized message along with a @type that describes the type of the serialized message. + Contains an arbitrary serialized message along with a @type that describes the type of the serialized message, with an additional debug field for ConnectRPC error details. """ # noqa: E501 - type: Optional[StrictStr] = None - value: Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]] = None - debug: Optional[Dict[str, Any]] = None + type: Optional[StrictStr] = Field(default=None, description="A URL that acts as a globally unique identifier for the type of the serialized message. For example: `type.googleapis.com/google.rpc.ErrorInfo`. This is used to determine the schema of the data in the `value` field and is the discriminator for the `debug` field.") + value: Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]] = Field(default=None, description="The Protobuf message, serialized as bytes and base64-encoded. The specific message type is identified by the `type` field.") + debug: Optional[Any] = Field(default=None, description="Deserialized error detail payload. The 'type' field indicates the schema. This field is for easier debugging and should not be relied upon for application logic.") additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["type", "value", "debug"] @@ -78,6 +78,11 @@ def to_dict(self) -> Dict[str, Any]: for _key, _value in self.additional_properties.items(): _dict[_key] = _value + # set to None if debug (nullable) is None + # and model_fields_set contains the field + if self.debug is None and "debug" in self.model_fields_set: + _dict['debug'] = None + return _dict @classmethod diff --git a/zitadel_client/models/beta_instance_service_connect_error.py b/zitadel_client/models/beta_instance_service_connect_error.py index 4a6b07e..92b7cbe 100644 --- a/zitadel_client/models/beta_instance_service_connect_error.py +++ b/zitadel_client/models/beta_instance_service_connect_error.py @@ -29,9 +29,9 @@ class BetaInstanceServiceConnectError(BaseModel): """ # noqa: E501 code: Optional[StrictStr] = Field(default=None, description="The status code, which should be an enum value of [google.rpc.Code][google.rpc.Code].") message: Optional[StrictStr] = Field(default=None, description="A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the [google.rpc.Status.details][google.rpc.Status.details] field, or localized by the client.") - detail: Optional[BetaInstanceServiceAny] = None + details: Optional[List[BetaInstanceServiceAny]] = Field(default=None, description="A list of messages that carry the error details. There is no limit on the number of messages.") additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["code", "message", "detail"] + __properties: ClassVar[List[str]] = ["code", "message", "details"] @field_validator('code') def code_validate_enum(cls, value): @@ -84,9 +84,13 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # override the default output from pydantic by calling `to_dict()` of detail - if self.detail: - _dict['detail'] = self.detail.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in details (list) + _items = [] + if self.details: + for _item_details in self.details: + if _item_details: + _items.append(_item_details.to_dict()) + _dict['details'] = _items # puts key-value pairs in additional_properties in the top level if self.additional_properties is not None: for _key, _value in self.additional_properties.items(): @@ -106,7 +110,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "code": obj.get("code"), "message": obj.get("message"), - "detail": BetaInstanceServiceAny.from_dict(obj["detail"]) if obj.get("detail") is not None else None + "details": [BetaInstanceServiceAny.from_dict(_item) for _item in obj["details"]] if obj.get("details") is not None else None }) # store additional fields in additional_properties for _key in obj.keys(): diff --git a/zitadel_client/models/beta_instance_service_remove_trusted_domain_request.py b/zitadel_client/models/beta_instance_service_remove_trusted_domain_request.py index db836aa..6f39836 100644 --- a/zitadel_client/models/beta_instance_service_remove_trusted_domain_request.py +++ b/zitadel_client/models/beta_instance_service_remove_trusted_domain_request.py @@ -27,7 +27,7 @@ class BetaInstanceServiceRemoveTrustedDomainRequest(BaseModel): BetaInstanceServiceRemoveTrustedDomainRequest """ # noqa: E501 instance_id: Optional[StrictStr] = Field(default=None, alias="instanceId") - domain: StrictStr + domain: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["instanceId", "domain"] model_config = ConfigDict( diff --git a/zitadel_client/models/beta_internal_permission_service_any.py b/zitadel_client/models/beta_internal_permission_service_any.py index 56a5ed9..14462a0 100644 --- a/zitadel_client/models/beta_internal_permission_service_any.py +++ b/zitadel_client/models/beta_internal_permission_service_any.py @@ -17,18 +17,18 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, StrictBytes, StrictStr +from pydantic import BaseModel, ConfigDict, Field, StrictBytes, StrictStr from typing import Any, ClassVar, Dict, List, Optional, Tuple, Union from typing import Optional, Set from typing_extensions import Self class BetaInternalPermissionServiceAny(BaseModel): """ - Contains an arbitrary serialized message along with a @type that describes the type of the serialized message. + Contains an arbitrary serialized message along with a @type that describes the type of the serialized message, with an additional debug field for ConnectRPC error details. """ # noqa: E501 - type: Optional[StrictStr] = None - value: Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]] = None - debug: Optional[Dict[str, Any]] = None + type: Optional[StrictStr] = Field(default=None, description="A URL that acts as a globally unique identifier for the type of the serialized message. For example: `type.googleapis.com/google.rpc.ErrorInfo`. This is used to determine the schema of the data in the `value` field and is the discriminator for the `debug` field.") + value: Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]] = Field(default=None, description="The Protobuf message, serialized as bytes and base64-encoded. The specific message type is identified by the `type` field.") + debug: Optional[Any] = Field(default=None, description="Deserialized error detail payload. The 'type' field indicates the schema. This field is for easier debugging and should not be relied upon for application logic.") additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["type", "value", "debug"] @@ -78,6 +78,11 @@ def to_dict(self) -> Dict[str, Any]: for _key, _value in self.additional_properties.items(): _dict[_key] = _value + # set to None if debug (nullable) is None + # and model_fields_set contains the field + if self.debug is None and "debug" in self.model_fields_set: + _dict['debug'] = None + return _dict @classmethod diff --git a/zitadel_client/models/beta_internal_permission_service_connect_error.py b/zitadel_client/models/beta_internal_permission_service_connect_error.py index 18ef256..f4ee8b5 100644 --- a/zitadel_client/models/beta_internal_permission_service_connect_error.py +++ b/zitadel_client/models/beta_internal_permission_service_connect_error.py @@ -29,9 +29,9 @@ class BetaInternalPermissionServiceConnectError(BaseModel): """ # noqa: E501 code: Optional[StrictStr] = Field(default=None, description="The status code, which should be an enum value of [google.rpc.Code][google.rpc.Code].") message: Optional[StrictStr] = Field(default=None, description="A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the [google.rpc.Status.details][google.rpc.Status.details] field, or localized by the client.") - detail: Optional[BetaInternalPermissionServiceAny] = None + details: Optional[List[BetaInternalPermissionServiceAny]] = Field(default=None, description="A list of messages that carry the error details. There is no limit on the number of messages.") additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["code", "message", "detail"] + __properties: ClassVar[List[str]] = ["code", "message", "details"] @field_validator('code') def code_validate_enum(cls, value): @@ -84,9 +84,13 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # override the default output from pydantic by calling `to_dict()` of detail - if self.detail: - _dict['detail'] = self.detail.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in details (list) + _items = [] + if self.details: + for _item_details in self.details: + if _item_details: + _items.append(_item_details.to_dict()) + _dict['details'] = _items # puts key-value pairs in additional_properties in the top level if self.additional_properties is not None: for _key, _value in self.additional_properties.items(): @@ -106,7 +110,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "code": obj.get("code"), "message": obj.get("message"), - "detail": BetaInternalPermissionServiceAny.from_dict(obj["detail"]) if obj.get("detail") is not None else None + "details": [BetaInternalPermissionServiceAny.from_dict(_item) for _item in obj["details"]] if obj.get("details") is not None else None }) # store additional fields in additional_properties for _key in obj.keys(): diff --git a/zitadel_client/models/beta_oidc_service_any.py b/zitadel_client/models/beta_oidc_service_any.py index 8619bdb..93cde67 100644 --- a/zitadel_client/models/beta_oidc_service_any.py +++ b/zitadel_client/models/beta_oidc_service_any.py @@ -17,18 +17,18 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, StrictBytes, StrictStr +from pydantic import BaseModel, ConfigDict, Field, StrictBytes, StrictStr from typing import Any, ClassVar, Dict, List, Optional, Tuple, Union from typing import Optional, Set from typing_extensions import Self class BetaOIDCServiceAny(BaseModel): """ - Contains an arbitrary serialized message along with a @type that describes the type of the serialized message. + Contains an arbitrary serialized message along with a @type that describes the type of the serialized message, with an additional debug field for ConnectRPC error details. """ # noqa: E501 - type: Optional[StrictStr] = None - value: Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]] = None - debug: Optional[Dict[str, Any]] = None + type: Optional[StrictStr] = Field(default=None, description="A URL that acts as a globally unique identifier for the type of the serialized message. For example: `type.googleapis.com/google.rpc.ErrorInfo`. This is used to determine the schema of the data in the `value` field and is the discriminator for the `debug` field.") + value: Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]] = Field(default=None, description="The Protobuf message, serialized as bytes and base64-encoded. The specific message type is identified by the `type` field.") + debug: Optional[Any] = Field(default=None, description="Deserialized error detail payload. The 'type' field indicates the schema. This field is for easier debugging and should not be relied upon for application logic.") additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["type", "value", "debug"] @@ -78,6 +78,11 @@ def to_dict(self) -> Dict[str, Any]: for _key, _value in self.additional_properties.items(): _dict[_key] = _value + # set to None if debug (nullable) is None + # and model_fields_set contains the field + if self.debug is None and "debug" in self.model_fields_set: + _dict['debug'] = None + return _dict @classmethod diff --git a/zitadel_client/models/beta_oidc_service_connect_error.py b/zitadel_client/models/beta_oidc_service_connect_error.py index e2b3dfa..33bffff 100644 --- a/zitadel_client/models/beta_oidc_service_connect_error.py +++ b/zitadel_client/models/beta_oidc_service_connect_error.py @@ -29,9 +29,9 @@ class BetaOIDCServiceConnectError(BaseModel): """ # noqa: E501 code: Optional[StrictStr] = Field(default=None, description="The status code, which should be an enum value of [google.rpc.Code][google.rpc.Code].") message: Optional[StrictStr] = Field(default=None, description="A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the [google.rpc.Status.details][google.rpc.Status.details] field, or localized by the client.") - detail: Optional[BetaOIDCServiceAny] = None + details: Optional[List[BetaOIDCServiceAny]] = Field(default=None, description="A list of messages that carry the error details. There is no limit on the number of messages.") additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["code", "message", "detail"] + __properties: ClassVar[List[str]] = ["code", "message", "details"] @field_validator('code') def code_validate_enum(cls, value): @@ -84,9 +84,13 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # override the default output from pydantic by calling `to_dict()` of detail - if self.detail: - _dict['detail'] = self.detail.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in details (list) + _items = [] + if self.details: + for _item_details in self.details: + if _item_details: + _items.append(_item_details.to_dict()) + _dict['details'] = _items # puts key-value pairs in additional_properties in the top level if self.additional_properties is not None: for _key, _value in self.additional_properties.items(): @@ -106,7 +110,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "code": obj.get("code"), "message": obj.get("message"), - "detail": BetaOIDCServiceAny.from_dict(obj["detail"]) if obj.get("detail") is not None else None + "details": [BetaOIDCServiceAny.from_dict(_item) for _item in obj["details"]] if obj.get("details") is not None else None }) # store additional fields in additional_properties for _key in obj.keys(): diff --git a/zitadel_client/models/beta_organization_service_add_human_user_request.py b/zitadel_client/models/beta_organization_service_add_human_user_request.py index 8994899..81ba7b8 100644 --- a/zitadel_client/models/beta_organization_service_add_human_user_request.py +++ b/zitadel_client/models/beta_organization_service_add_human_user_request.py @@ -37,8 +37,8 @@ class BetaOrganizationServiceAddHumanUserRequest(BaseModel): user_id: Optional[StrictStr] = Field(default=None, description="optionally set your own id unique for the user.", alias="userId") username: Optional[StrictStr] = Field(default=None, description="optionally set a unique username, if none is provided the email will be used.") organization: Optional[BetaOrganizationServiceOrganization] = None - profile: BetaOrganizationServiceSetHumanProfile - email: BetaOrganizationServiceSetHumanEmail + profile: Optional[BetaOrganizationServiceSetHumanProfile] = None + email: Optional[BetaOrganizationServiceSetHumanEmail] = None phone: Optional[BetaOrganizationServiceSetHumanPhone] = None metadata: Optional[List[BetaOrganizationServiceSetMetadataEntry]] = None idp_links: Optional[List[BetaOrganizationServiceIDPLink]] = Field(default=None, alias="idpLinks") diff --git a/zitadel_client/models/beta_organization_service_add_organization_domain_request.py b/zitadel_client/models/beta_organization_service_add_organization_domain_request.py index 245024b..e16de8e 100644 --- a/zitadel_client/models/beta_organization_service_add_organization_domain_request.py +++ b/zitadel_client/models/beta_organization_service_add_organization_domain_request.py @@ -18,7 +18,7 @@ import json from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict +from typing import Any, ClassVar, Dict, Optional from typing import Optional, Set from typing_extensions import Self @@ -26,8 +26,8 @@ class BetaOrganizationServiceAddOrganizationDomainRequest(BaseModel): """ BetaOrganizationServiceAddOrganizationDomainRequest """ # noqa: E501 - organization_id: StrictStr = Field(description="Organization Id for the Organization for which the domain is to be added to.", alias="organizationId") - domain: StrictStr = Field(description="The domain you want to add to the organization.") + organization_id: Optional[StrictStr] = Field(default=None, description="Organization Id for the Organization for which the domain is to be added to.", alias="organizationId") + domain: Optional[StrictStr] = Field(default=None, description="The domain you want to add to the organization.") __properties: ClassVar[List[str]] = ["organizationId", "domain"] model_config = ConfigDict( diff --git a/zitadel_client/models/beta_organization_service_any.py b/zitadel_client/models/beta_organization_service_any.py index eef5218..5215081 100644 --- a/zitadel_client/models/beta_organization_service_any.py +++ b/zitadel_client/models/beta_organization_service_any.py @@ -17,18 +17,18 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, StrictBytes, StrictStr +from pydantic import BaseModel, ConfigDict, Field, StrictBytes, StrictStr from typing import Any, ClassVar, Dict, List, Optional, Tuple, Union from typing import Optional, Set from typing_extensions import Self class BetaOrganizationServiceAny(BaseModel): """ - Contains an arbitrary serialized message along with a @type that describes the type of the serialized message. + Contains an arbitrary serialized message along with a @type that describes the type of the serialized message, with an additional debug field for ConnectRPC error details. """ # noqa: E501 - type: Optional[StrictStr] = None - value: Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]] = None - debug: Optional[Dict[str, Any]] = None + type: Optional[StrictStr] = Field(default=None, description="A URL that acts as a globally unique identifier for the type of the serialized message. For example: `type.googleapis.com/google.rpc.ErrorInfo`. This is used to determine the schema of the data in the `value` field and is the discriminator for the `debug` field.") + value: Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]] = Field(default=None, description="The Protobuf message, serialized as bytes and base64-encoded. The specific message type is identified by the `type` field.") + debug: Optional[Any] = Field(default=None, description="Deserialized error detail payload. The 'type' field indicates the schema. This field is for easier debugging and should not be relied upon for application logic.") additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["type", "value", "debug"] @@ -78,6 +78,11 @@ def to_dict(self) -> Dict[str, Any]: for _key, _value in self.additional_properties.items(): _dict[_key] = _value + # set to None if debug (nullable) is None + # and model_fields_set contains the field + if self.debug is None and "debug" in self.model_fields_set: + _dict['debug'] = None + return _dict @classmethod diff --git a/zitadel_client/models/beta_organization_service_connect_error.py b/zitadel_client/models/beta_organization_service_connect_error.py index c98c4eb..aad55cf 100644 --- a/zitadel_client/models/beta_organization_service_connect_error.py +++ b/zitadel_client/models/beta_organization_service_connect_error.py @@ -29,9 +29,9 @@ class BetaOrganizationServiceConnectError(BaseModel): """ # noqa: E501 code: Optional[StrictStr] = Field(default=None, description="The status code, which should be an enum value of [google.rpc.Code][google.rpc.Code].") message: Optional[StrictStr] = Field(default=None, description="A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the [google.rpc.Status.details][google.rpc.Status.details] field, or localized by the client.") - detail: Optional[BetaOrganizationServiceAny] = None + details: Optional[List[BetaOrganizationServiceAny]] = Field(default=None, description="A list of messages that carry the error details. There is no limit on the number of messages.") additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["code", "message", "detail"] + __properties: ClassVar[List[str]] = ["code", "message", "details"] @field_validator('code') def code_validate_enum(cls, value): @@ -84,9 +84,13 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # override the default output from pydantic by calling `to_dict()` of detail - if self.detail: - _dict['detail'] = self.detail.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in details (list) + _items = [] + if self.details: + for _item_details in self.details: + if _item_details: + _items.append(_item_details.to_dict()) + _dict['details'] = _items # puts key-value pairs in additional_properties in the top level if self.additional_properties is not None: for _key, _value in self.additional_properties.items(): @@ -106,7 +110,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "code": obj.get("code"), "message": obj.get("message"), - "detail": BetaOrganizationServiceAny.from_dict(obj["detail"]) if obj.get("detail") is not None else None + "details": [BetaOrganizationServiceAny.from_dict(_item) for _item in obj["details"]] if obj.get("details") is not None else None }) # store additional fields in additional_properties for _key in obj.keys(): diff --git a/zitadel_client/models/beta_organization_service_create_organization_request.py b/zitadel_client/models/beta_organization_service_create_organization_request.py index 20d639f..784db7a 100644 --- a/zitadel_client/models/beta_organization_service_create_organization_request.py +++ b/zitadel_client/models/beta_organization_service_create_organization_request.py @@ -27,7 +27,7 @@ class BetaOrganizationServiceCreateOrganizationRequest(BaseModel): """ BetaOrganizationServiceCreateOrganizationRequest """ # noqa: E501 - name: StrictStr = Field(description="name of the Organization to be created.") + name: Optional[StrictStr] = Field(default=None, description="name of the Organization to be created.") id: Optional[StrictStr] = Field(default=None, description="Optionally set your own id unique for the organization.") admins: Optional[List[BetaOrganizationServiceAdmin]] = Field(default=None, description="Additional Admins for the Organization.") __properties: ClassVar[List[str]] = ["name", "id", "admins"] diff --git a/zitadel_client/models/beta_organization_service_create_organization_response.py b/zitadel_client/models/beta_organization_service_create_organization_response.py index ca6e822..2225a21 100644 --- a/zitadel_client/models/beta_organization_service_create_organization_response.py +++ b/zitadel_client/models/beta_organization_service_create_organization_response.py @@ -29,7 +29,7 @@ class BetaOrganizationServiceCreateOrganizationResponse(BaseModel): BetaOrganizationServiceCreateOrganizationResponse """ # noqa: E501 creation_date: Optional[datetime] = Field(default=None, description="A Timestamp represents a point in time independent of any time zone or local calendar, encoded as a count of seconds and fractions of seconds at nanosecond resolution. The count is relative to an epoch at UTC midnight on January 1, 1970, in the proleptic Gregorian calendar which extends the Gregorian calendar backwards to year one. All minutes are 60 seconds long. Leap seconds are \"smeared\" so that no leap second table is needed for interpretation, using a [24-hour linear smear](https://developers.google.com/time/smear). The range is from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. By restricting to that range, we ensure that we can convert to and from [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) date strings. # Examples Example 1: Compute Timestamp from POSIX `time()`. Timestamp timestamp; timestamp.set_seconds(time(NULL)); timestamp.set_nanos(0); Example 2: Compute Timestamp from POSIX `gettimeofday()`. struct timeval tv; gettimeofday(&tv, NULL); Timestamp timestamp; timestamp.set_seconds(tv.tv_sec); timestamp.set_nanos(tv.tv_usec * 1000); Example 3: Compute Timestamp from Win32 `GetSystemTimeAsFileTime()`. FILETIME ft; GetSystemTimeAsFileTime(&ft); UINT64 ticks = (((UINT64)ft.dwHighDateTime) << 32) | ft.dwLowDateTime; // A Windows tick is 100 nanoseconds. Windows epoch 1601-01-01T00:00:00Z // is 11644473600 seconds before Unix epoch 1970-01-01T00:00:00Z. Timestamp timestamp; timestamp.set_seconds((INT64) ((ticks / 10000000) - 11644473600LL)); timestamp.set_nanos((INT32) ((ticks % 10000000) * 100)); Example 4: Compute Timestamp from Java `System.currentTimeMillis()`. long millis = System.currentTimeMillis(); Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000) .setNanos((int) ((millis % 1000) * 1000000)).build(); Example 5: Compute Timestamp from Java `Instant.now()`. Instant now = Instant.now(); Timestamp timestamp = Timestamp.newBuilder().setSeconds(now.getEpochSecond()) .setNanos(now.getNano()).build(); Example 6: Compute Timestamp from current time in Python. timestamp = Timestamp() timestamp.GetCurrentTime() # JSON Mapping In JSON format, the Timestamp type is encoded as a string in the [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format. That is, the format is \"{year}-{month}-{day}T{hour}:{min}:{sec}[.{frac_sec}]Z\" where {year} is always expressed using four digits while {month}, {day}, {hour}, {min}, and {sec} are zero-padded to two digits each. The fractional seconds, which can go up to 9 digits (i.e. up to 1 nanosecond resolution), are optional. The \"Z\" suffix indicates the timezone (\"UTC\"); the timezone is required. A proto3 JSON serializer should always use UTC (as indicated by \"Z\") when printing the Timestamp type and a proto3 JSON parser should be able to accept both UTC and other timezones (as indicated by an offset). For example, \"2017-01-15T01:30:15.01Z\" encodes 15.01 seconds past 01:30 UTC on January 15, 2017. In JavaScript, one can convert a Date object to this format using the standard [toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString) method. In Python, a standard `datetime.datetime` object can be converted to this format using [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use the Joda Time's [`ISODateTimeFormat.dateTime()`]( http://joda-time.sourceforge.net/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime() ) to obtain a formatter capable of generating timestamps in this format.", alias="creationDate") - id: StrictStr = Field(description="Organization ID of the newly created organization.") + id: Optional[StrictStr] = Field(default=None, description="Organization ID of the newly created organization.") organization_admins: Optional[List[BetaOrganizationServiceOrganizationAdmin]] = Field(default=None, description="The admins created/assigned for the Organization", alias="organizationAdmins") __properties: ClassVar[List[str]] = ["creationDate", "id", "organizationAdmins"] diff --git a/zitadel_client/models/beta_organization_service_delete_organization_domain_request.py b/zitadel_client/models/beta_organization_service_delete_organization_domain_request.py index d63f374..fe2beb3 100644 --- a/zitadel_client/models/beta_organization_service_delete_organization_domain_request.py +++ b/zitadel_client/models/beta_organization_service_delete_organization_domain_request.py @@ -18,7 +18,7 @@ import json from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict +from typing import Any, ClassVar, Dict, Optional from typing import Optional, Set from typing_extensions import Self @@ -26,8 +26,8 @@ class BetaOrganizationServiceDeleteOrganizationDomainRequest(BaseModel): """ BetaOrganizationServiceDeleteOrganizationDomainRequest """ # noqa: E501 - organization_id: StrictStr = Field(description="Organization Id for the Organization which domain is to be deleted.", alias="organizationId") - domain: StrictStr + organization_id: Optional[StrictStr] = Field(default=None, description="Organization Id for the Organization which domain is to be deleted.", alias="organizationId") + domain: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["organizationId", "domain"] model_config = ConfigDict( diff --git a/zitadel_client/models/beta_organization_service_delete_organization_metadata_request.py b/zitadel_client/models/beta_organization_service_delete_organization_metadata_request.py index 5ad9725..a98006d 100644 --- a/zitadel_client/models/beta_organization_service_delete_organization_metadata_request.py +++ b/zitadel_client/models/beta_organization_service_delete_organization_metadata_request.py @@ -26,7 +26,7 @@ class BetaOrganizationServiceDeleteOrganizationMetadataRequest(BaseModel): """ BetaOrganizationServiceDeleteOrganizationMetadataRequest """ # noqa: E501 - organization_id: StrictStr = Field(description="Organization ID of Orgalization which metadata is to be deleted is stored on.", alias="organizationId") + organization_id: Optional[StrictStr] = Field(default=None, description="Organization ID of Orgalization which metadata is to be deleted is stored on.", alias="organizationId") keys: Optional[List[StrictStr]] = Field(default=None, description="The keys for the Organization metadata to be deleted.") __properties: ClassVar[List[str]] = ["organizationId", "keys"] diff --git a/zitadel_client/models/beta_organization_service_delete_organization_request.py b/zitadel_client/models/beta_organization_service_delete_organization_request.py index fc4ba5a..fa2cd3c 100644 --- a/zitadel_client/models/beta_organization_service_delete_organization_request.py +++ b/zitadel_client/models/beta_organization_service_delete_organization_request.py @@ -18,7 +18,7 @@ import json from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict +from typing import Any, ClassVar, Dict, Optional from typing import Optional, Set from typing_extensions import Self @@ -26,7 +26,7 @@ class BetaOrganizationServiceDeleteOrganizationRequest(BaseModel): """ BetaOrganizationServiceDeleteOrganizationRequest """ # noqa: E501 - id: StrictStr = Field(description="Organization Id for the Organization to be deleted") + id: Optional[StrictStr] = Field(default=None, description="Organization Id for the Organization to be deleted") __properties: ClassVar[List[str]] = ["id"] model_config = ConfigDict( diff --git a/zitadel_client/models/beta_organization_service_generate_organization_domain_validation_request.py b/zitadel_client/models/beta_organization_service_generate_organization_domain_validation_request.py index bec34bc..650c169 100644 --- a/zitadel_client/models/beta_organization_service_generate_organization_domain_validation_request.py +++ b/zitadel_client/models/beta_organization_service_generate_organization_domain_validation_request.py @@ -27,8 +27,8 @@ class BetaOrganizationServiceGenerateOrganizationDomainValidationRequest(BaseMod """ BetaOrganizationServiceGenerateOrganizationDomainValidationRequest """ # noqa: E501 - organization_id: StrictStr = Field(description="Organization Id for the Organization which doman to be validated.", alias="organizationId") - domain: StrictStr = Field(description="The domain which to be deleted.") + organization_id: Optional[StrictStr] = Field(default=None, description="Organization Id for the Organization which doman to be validated.", alias="organizationId") + domain: Optional[StrictStr] = Field(default=None, description="The domain which to be deleted.") type: Optional[BetaOrganizationServiceDomainValidationType] = None __properties: ClassVar[List[str]] = ["organizationId", "domain", "type"] diff --git a/zitadel_client/models/beta_organization_service_hashed_password.py b/zitadel_client/models/beta_organization_service_hashed_password.py index 1b05635..32ddefc 100644 --- a/zitadel_client/models/beta_organization_service_hashed_password.py +++ b/zitadel_client/models/beta_organization_service_hashed_password.py @@ -26,7 +26,7 @@ class BetaOrganizationServiceHashedPassword(BaseModel): """ BetaOrganizationServiceHashedPassword """ # noqa: E501 - hash: StrictStr + hash: Optional[StrictStr] = None change_required: Optional[StrictBool] = Field(default=None, alias="changeRequired") __properties: ClassVar[List[str]] = ["hash", "changeRequired"] diff --git a/zitadel_client/models/beta_organization_service_list_organization_domains_request.py b/zitadel_client/models/beta_organization_service_list_organization_domains_request.py index 646ee82..e4e987a 100644 --- a/zitadel_client/models/beta_organization_service_list_organization_domains_request.py +++ b/zitadel_client/models/beta_organization_service_list_organization_domains_request.py @@ -28,7 +28,7 @@ class BetaOrganizationServiceListOrganizationDomainsRequest(BaseModel): """ BetaOrganizationServiceListOrganizationDomainsRequest """ # noqa: E501 - organization_id: StrictStr = Field(description="Organization Id for the Organization which domains are to be listed.", alias="organizationId") + organization_id: Optional[StrictStr] = Field(default=None, description="Organization Id for the Organization which domains are to be listed.", alias="organizationId") pagination: Optional[BetaOrganizationServicePaginationRequest] = None filters: Optional[List[BetaOrganizationServiceDomainSearchFilter]] = Field(default=None, description="Define the criteria to query for.") __properties: ClassVar[List[str]] = ["organizationId", "pagination", "filters"] diff --git a/zitadel_client/models/beta_organization_service_list_organization_metadata_request.py b/zitadel_client/models/beta_organization_service_list_organization_metadata_request.py index 993b1b7..4b49d13 100644 --- a/zitadel_client/models/beta_organization_service_list_organization_metadata_request.py +++ b/zitadel_client/models/beta_organization_service_list_organization_metadata_request.py @@ -28,7 +28,7 @@ class BetaOrganizationServiceListOrganizationMetadataRequest(BaseModel): """ BetaOrganizationServiceListOrganizationMetadataRequest """ # noqa: E501 - organization_id: StrictStr = Field(description="Organization ID of Orgalization which metadata is to be listed.", alias="organizationId") + organization_id: Optional[StrictStr] = Field(default=None, description="Organization ID of Orgalization which metadata is to be listed.", alias="organizationId") pagination: Optional[BetaOrganizationServicePaginationRequest] = None filter: Optional[List[BetaOrganizationServiceMetadataQuery]] = Field(default=None, description="Define the criteria to query for.") __properties: ClassVar[List[str]] = ["organizationId", "pagination", "filter"] diff --git a/zitadel_client/models/beta_organization_service_password.py b/zitadel_client/models/beta_organization_service_password.py index 986a58f..ed86bfc 100644 --- a/zitadel_client/models/beta_organization_service_password.py +++ b/zitadel_client/models/beta_organization_service_password.py @@ -26,7 +26,7 @@ class BetaOrganizationServicePassword(BaseModel): """ BetaOrganizationServicePassword """ # noqa: E501 - password: StrictStr + password: Optional[StrictStr] = None change_required: Optional[StrictBool] = Field(default=None, alias="changeRequired") __properties: ClassVar[List[str]] = ["password", "changeRequired"] diff --git a/zitadel_client/models/beta_organization_service_set_human_email.py b/zitadel_client/models/beta_organization_service_set_human_email.py index 31e665a..9d6ca72 100644 --- a/zitadel_client/models/beta_organization_service_set_human_email.py +++ b/zitadel_client/models/beta_organization_service_set_human_email.py @@ -27,7 +27,7 @@ class BetaOrganizationServiceSetHumanEmail(BaseModel): """ BetaOrganizationServiceSetHumanEmail """ # noqa: E501 - email: StrictStr + email: Optional[StrictStr] = None is_verified: Optional[StrictBool] = Field(default=None, alias="isVerified") return_code: Optional[Dict[str, Any]] = Field(default=None, alias="returnCode") send_code: Optional[BetaOrganizationServiceSendEmailVerificationCode] = Field(default=None, alias="sendCode") diff --git a/zitadel_client/models/beta_organization_service_set_human_profile.py b/zitadel_client/models/beta_organization_service_set_human_profile.py index bd9c5bc..99658d6 100644 --- a/zitadel_client/models/beta_organization_service_set_human_profile.py +++ b/zitadel_client/models/beta_organization_service_set_human_profile.py @@ -27,8 +27,8 @@ class BetaOrganizationServiceSetHumanProfile(BaseModel): """ BetaOrganizationServiceSetHumanProfile """ # noqa: E501 - given_name: StrictStr = Field(alias="givenName") - family_name: StrictStr = Field(alias="familyName") + given_name: Optional[StrictStr] = Field(default=None, alias="givenName") + family_name: Optional[StrictStr] = Field(default=None, alias="familyName") nick_name: Optional[StrictStr] = Field(default=None, alias="nickName") display_name: Optional[StrictStr] = Field(default=None, alias="displayName") preferred_language: Optional[StrictStr] = Field(default=None, alias="preferredLanguage") diff --git a/zitadel_client/models/beta_organization_service_set_metadata_entry.py b/zitadel_client/models/beta_organization_service_set_metadata_entry.py index 27caf5c..19d4e8c 100644 --- a/zitadel_client/models/beta_organization_service_set_metadata_entry.py +++ b/zitadel_client/models/beta_organization_service_set_metadata_entry.py @@ -18,7 +18,7 @@ import json from pydantic import BaseModel, ConfigDict, StrictBytes, StrictStr -from typing import Any, ClassVar, Dict, Union +from typing import Any, ClassVar, Dict, Optional, Union from typing import Optional, Set from typing_extensions import Self @@ -26,8 +26,8 @@ class BetaOrganizationServiceSetMetadataEntry(BaseModel): """ BetaOrganizationServiceSetMetadataEntry """ # noqa: E501 - key: StrictStr - value: Union[StrictBytes, StrictStr] + key: Optional[StrictStr] = None + value: Optional[Union[StrictBytes, StrictStr]] = None __properties: ClassVar[List[str]] = ["key", "value"] model_config = ConfigDict( diff --git a/zitadel_client/models/beta_organization_service_set_organization_metadata_request.py b/zitadel_client/models/beta_organization_service_set_organization_metadata_request.py index ac330db..df77795 100644 --- a/zitadel_client/models/beta_organization_service_set_organization_metadata_request.py +++ b/zitadel_client/models/beta_organization_service_set_organization_metadata_request.py @@ -27,7 +27,7 @@ class BetaOrganizationServiceSetOrganizationMetadataRequest(BaseModel): """ BetaOrganizationServiceSetOrganizationMetadataRequest """ # noqa: E501 - organization_id: StrictStr = Field(description="Organization Id for the Organization doman to be verified.", alias="organizationId") + organization_id: Optional[StrictStr] = Field(default=None, description="Organization Id for the Organization doman to be verified.", alias="organizationId") metadata: Optional[List[BetaOrganizationServiceMetadata]] = Field(default=None, description="Metadata to set.") __properties: ClassVar[List[str]] = ["organizationId", "metadata"] diff --git a/zitadel_client/models/beta_organization_service_update_organization_request.py b/zitadel_client/models/beta_organization_service_update_organization_request.py index 0e38b89..7f1917c 100644 --- a/zitadel_client/models/beta_organization_service_update_organization_request.py +++ b/zitadel_client/models/beta_organization_service_update_organization_request.py @@ -18,7 +18,7 @@ import json from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict +from typing import Any, ClassVar, Dict, Optional from typing import Optional, Set from typing_extensions import Self @@ -26,8 +26,8 @@ class BetaOrganizationServiceUpdateOrganizationRequest(BaseModel): """ BetaOrganizationServiceUpdateOrganizationRequest """ # noqa: E501 - id: StrictStr = Field(description="Organization Id for the Organization to be updated") - name: StrictStr = Field(description="New Name for the Organization to be updated") + id: Optional[StrictStr] = Field(default=None, description="Organization Id for the Organization to be updated") + name: Optional[StrictStr] = Field(default=None, description="New Name for the Organization to be updated") __properties: ClassVar[List[str]] = ["id", "name"] model_config = ConfigDict( diff --git a/zitadel_client/models/beta_organization_service_verify_organization_domain_request.py b/zitadel_client/models/beta_organization_service_verify_organization_domain_request.py index fa9b951..d3a46ef 100644 --- a/zitadel_client/models/beta_organization_service_verify_organization_domain_request.py +++ b/zitadel_client/models/beta_organization_service_verify_organization_domain_request.py @@ -26,7 +26,7 @@ class BetaOrganizationServiceVerifyOrganizationDomainRequest(BaseModel): """ BetaOrganizationServiceVerifyOrganizationDomainRequest """ # noqa: E501 - organization_id: StrictStr = Field(description="Organization Id for the Organization doman to be verified.", alias="organizationId") + organization_id: Optional[StrictStr] = Field(default=None, description="Organization Id for the Organization doman to be verified.", alias="organizationId") domain: Optional[StrictStr] = Field(default=None, description="Organization Id for the Organization doman to be verified.") __properties: ClassVar[List[str]] = ["organizationId", "domain"] diff --git a/zitadel_client/models/beta_project_service_activate_project_grant_request.py b/zitadel_client/models/beta_project_service_activate_project_grant_request.py index ffb4ca0..2f7d334 100644 --- a/zitadel_client/models/beta_project_service_activate_project_grant_request.py +++ b/zitadel_client/models/beta_project_service_activate_project_grant_request.py @@ -18,7 +18,7 @@ import json from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict +from typing import Any, ClassVar, Dict, Optional from typing import Optional, Set from typing_extensions import Self @@ -26,8 +26,8 @@ class BetaProjectServiceActivateProjectGrantRequest(BaseModel): """ BetaProjectServiceActivateProjectGrantRequest """ # noqa: E501 - project_id: StrictStr = Field(description="ID of the project.", alias="projectId") - granted_organization_id: StrictStr = Field(description="Organization the project is granted to.", alias="grantedOrganizationId") + project_id: Optional[StrictStr] = Field(default=None, description="ID of the project.", alias="projectId") + granted_organization_id: Optional[StrictStr] = Field(default=None, description="Organization the project is granted to.", alias="grantedOrganizationId") __properties: ClassVar[List[str]] = ["projectId", "grantedOrganizationId"] model_config = ConfigDict( diff --git a/zitadel_client/models/beta_project_service_activate_project_request.py b/zitadel_client/models/beta_project_service_activate_project_request.py index 5c9e13e..af24ae2 100644 --- a/zitadel_client/models/beta_project_service_activate_project_request.py +++ b/zitadel_client/models/beta_project_service_activate_project_request.py @@ -18,7 +18,7 @@ import json from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict +from typing import Any, ClassVar, Dict, Optional from typing import Optional, Set from typing_extensions import Self @@ -26,7 +26,7 @@ class BetaProjectServiceActivateProjectRequest(BaseModel): """ BetaProjectServiceActivateProjectRequest """ # noqa: E501 - id: StrictStr = Field(description="The unique identifier of the project.") + id: Optional[StrictStr] = Field(default=None, description="The unique identifier of the project.") __properties: ClassVar[List[str]] = ["id"] model_config = ConfigDict( diff --git a/zitadel_client/models/beta_project_service_add_project_role_request.py b/zitadel_client/models/beta_project_service_add_project_role_request.py index 0e7f7b8..4c61b65 100644 --- a/zitadel_client/models/beta_project_service_add_project_role_request.py +++ b/zitadel_client/models/beta_project_service_add_project_role_request.py @@ -26,9 +26,9 @@ class BetaProjectServiceAddProjectRoleRequest(BaseModel): """ BetaProjectServiceAddProjectRoleRequest """ # noqa: E501 - project_id: StrictStr = Field(description="ID of the project.", alias="projectId") - role_key: StrictStr = Field(description="The key is the only relevant attribute for ZITADEL regarding the authorization checks.", alias="roleKey") - display_name: StrictStr = Field(description="Name displayed for the role.", alias="displayName") + project_id: Optional[StrictStr] = Field(default=None, description="ID of the project.", alias="projectId") + role_key: Optional[StrictStr] = Field(default=None, description="The key is the only relevant attribute for ZITADEL regarding the authorization checks.", alias="roleKey") + display_name: Optional[StrictStr] = Field(default=None, description="Name displayed for the role.", alias="displayName") group: Optional[StrictStr] = Field(default=None, description="The group is only used for display purposes. That you have better handling, like giving all the roles from a group to a user.") __properties: ClassVar[List[str]] = ["projectId", "roleKey", "displayName", "group"] diff --git a/zitadel_client/models/beta_project_service_admin.py b/zitadel_client/models/beta_project_service_admin.py new file mode 100644 index 0000000..18c590c --- /dev/null +++ b/zitadel_client/models/beta_project_service_admin.py @@ -0,0 +1,89 @@ +# 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 typing import Optional, Set +from typing_extensions import Self + +class BetaProjectServiceAdmin(BaseModel): + """ + BetaProjectServiceAdmin + """ # noqa: E501 + user_id: Optional[StrictStr] = Field(default=None, alias="userId") + roles: Optional[List[StrictStr]] = Field(default=None, description="specify the Project Member Roles for the provided user (default is PROJECT_OWNER if roles are empty") + __properties: ClassVar[List[str]] = ["userId", "roles"] + + 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 BetaProjectServiceAdmin 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 BetaProjectServiceAdmin from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "userId": obj.get("userId"), + "roles": obj.get("roles") + }) + return _obj + + diff --git a/zitadel_client/models/beta_project_service_any.py b/zitadel_client/models/beta_project_service_any.py index 397fcf8..1f61296 100644 --- a/zitadel_client/models/beta_project_service_any.py +++ b/zitadel_client/models/beta_project_service_any.py @@ -17,18 +17,18 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, StrictBytes, StrictStr +from pydantic import BaseModel, ConfigDict, Field, StrictBytes, StrictStr from typing import Any, ClassVar, Dict, List, Optional, Tuple, Union from typing import Optional, Set from typing_extensions import Self class BetaProjectServiceAny(BaseModel): """ - Contains an arbitrary serialized message along with a @type that describes the type of the serialized message. + Contains an arbitrary serialized message along with a @type that describes the type of the serialized message, with an additional debug field for ConnectRPC error details. """ # noqa: E501 - type: Optional[StrictStr] = None - value: Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]] = None - debug: Optional[Dict[str, Any]] = None + type: Optional[StrictStr] = Field(default=None, description="A URL that acts as a globally unique identifier for the type of the serialized message. For example: `type.googleapis.com/google.rpc.ErrorInfo`. This is used to determine the schema of the data in the `value` field and is the discriminator for the `debug` field.") + value: Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]] = Field(default=None, description="The Protobuf message, serialized as bytes and base64-encoded. The specific message type is identified by the `type` field.") + debug: Optional[Any] = Field(default=None, description="Deserialized error detail payload. The 'type' field indicates the schema. This field is for easier debugging and should not be relied upon for application logic.") additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["type", "value", "debug"] @@ -78,6 +78,11 @@ def to_dict(self) -> Dict[str, Any]: for _key, _value in self.additional_properties.items(): _dict[_key] = _value + # set to None if debug (nullable) is None + # and model_fields_set contains the field + if self.debug is None and "debug" in self.model_fields_set: + _dict['debug'] = None + return _dict @classmethod diff --git a/zitadel_client/models/beta_project_service_connect_error.py b/zitadel_client/models/beta_project_service_connect_error.py index 100dcb7..c972552 100644 --- a/zitadel_client/models/beta_project_service_connect_error.py +++ b/zitadel_client/models/beta_project_service_connect_error.py @@ -29,9 +29,9 @@ class BetaProjectServiceConnectError(BaseModel): """ # noqa: E501 code: Optional[StrictStr] = Field(default=None, description="The status code, which should be an enum value of [google.rpc.Code][google.rpc.Code].") message: Optional[StrictStr] = Field(default=None, description="A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the [google.rpc.Status.details][google.rpc.Status.details] field, or localized by the client.") - detail: Optional[BetaProjectServiceAny] = None + details: Optional[List[BetaProjectServiceAny]] = Field(default=None, description="A list of messages that carry the error details. There is no limit on the number of messages.") additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["code", "message", "detail"] + __properties: ClassVar[List[str]] = ["code", "message", "details"] @field_validator('code') def code_validate_enum(cls, value): @@ -84,9 +84,13 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # override the default output from pydantic by calling `to_dict()` of detail - if self.detail: - _dict['detail'] = self.detail.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in details (list) + _items = [] + if self.details: + for _item_details in self.details: + if _item_details: + _items.append(_item_details.to_dict()) + _dict['details'] = _items # puts key-value pairs in additional_properties in the top level if self.additional_properties is not None: for _key, _value in self.additional_properties.items(): @@ -106,7 +110,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "code": obj.get("code"), "message": obj.get("message"), - "detail": BetaProjectServiceAny.from_dict(obj["detail"]) if obj.get("detail") is not None else None + "details": [BetaProjectServiceAny.from_dict(_item) for _item in obj["details"]] if obj.get("details") is not None else None }) # store additional fields in additional_properties for _key in obj.keys(): diff --git a/zitadel_client/models/beta_project_service_create_project_grant_request.py b/zitadel_client/models/beta_project_service_create_project_grant_request.py index cf03c77..7316cf9 100644 --- a/zitadel_client/models/beta_project_service_create_project_grant_request.py +++ b/zitadel_client/models/beta_project_service_create_project_grant_request.py @@ -26,8 +26,8 @@ class BetaProjectServiceCreateProjectGrantRequest(BaseModel): """ BetaProjectServiceCreateProjectGrantRequest """ # noqa: E501 - project_id: StrictStr = Field(description="ID of the project.", alias="projectId") - granted_organization_id: StrictStr = Field(description="Organization the project is granted to.", alias="grantedOrganizationId") + project_id: Optional[StrictStr] = Field(default=None, description="ID of the project.", alias="projectId") + granted_organization_id: Optional[StrictStr] = Field(default=None, description="Organization the project is granted to.", alias="grantedOrganizationId") role_keys: Optional[List[StrictStr]] = Field(default=None, description="Keys of the role available for the project grant.", alias="roleKeys") __properties: ClassVar[List[str]] = ["projectId", "grantedOrganizationId", "roleKeys"] diff --git a/zitadel_client/models/beta_project_service_create_project_request.py b/zitadel_client/models/beta_project_service_create_project_request.py index 4a437e9..07eec98 100644 --- a/zitadel_client/models/beta_project_service_create_project_request.py +++ b/zitadel_client/models/beta_project_service_create_project_request.py @@ -18,7 +18,8 @@ import json from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr -from typing import Any, ClassVar, Dict, Optional +from typing import Any, ClassVar, Dict, List, Optional +from zitadel_client.models.beta_project_service_admin import BetaProjectServiceAdmin from zitadel_client.models.beta_project_service_private_labeling_setting import BetaProjectServicePrivateLabelingSetting from typing import Optional, Set from typing_extensions import Self @@ -29,12 +30,13 @@ class BetaProjectServiceCreateProjectRequest(BaseModel): """ # noqa: E501 organization_id: Optional[StrictStr] = Field(default=None, description="The unique identifier of the organization the project belongs to.", alias="organizationId") id: Optional[StrictStr] = Field(default=None, description="The unique identifier of the project.") - name: StrictStr = Field(description="Name of the project.") + name: Optional[StrictStr] = Field(default=None, description="Name of the project.") project_role_assertion: Optional[StrictBool] = Field(default=None, description="Enable this setting to have role information included in the user info endpoint. It is also dependent on your application settings to include it in tokens and other types.", alias="projectRoleAssertion") authorization_required: Optional[StrictBool] = Field(default=None, description="When enabled ZITADEL will check if a user has an authorization to use this project assigned when login into an application of this project.", alias="authorizationRequired") project_access_required: Optional[StrictBool] = Field(default=None, description="When enabled ZITADEL will check if the organization of the user, that is trying to log in, has access to this project (either owns the project or is granted).", alias="projectAccessRequired") private_labeling_setting: Optional[BetaProjectServicePrivateLabelingSetting] = Field(default=None, alias="privateLabelingSetting") - __properties: ClassVar[List[str]] = ["organizationId", "id", "name", "projectRoleAssertion", "authorizationRequired", "projectAccessRequired", "privateLabelingSetting"] + admins: Optional[List[BetaProjectServiceAdmin]] = Field(default=None, description="List of users and Project Member roles (PROJECT_OWNER, by default) to be assigned to those users.") + __properties: ClassVar[List[str]] = ["organizationId", "id", "name", "projectRoleAssertion", "authorizationRequired", "projectAccessRequired", "privateLabelingSetting", "admins"] model_config = ConfigDict( populate_by_name=True, @@ -75,6 +77,13 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) + # override the default output from pydantic by calling `to_dict()` of each item in admins (list) + _items = [] + if self.admins: + for _item_admins in self.admins: + if _item_admins: + _items.append(_item_admins.to_dict()) + _dict['admins'] = _items # set to None if id (nullable) is None # and model_fields_set contains the field if self.id is None and "id" in self.model_fields_set: @@ -98,7 +107,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "projectRoleAssertion": obj.get("projectRoleAssertion"), "authorizationRequired": obj.get("authorizationRequired"), "projectAccessRequired": obj.get("projectAccessRequired"), - "privateLabelingSetting": obj.get("privateLabelingSetting") + "privateLabelingSetting": obj.get("privateLabelingSetting"), + "admins": [BetaProjectServiceAdmin.from_dict(_item) for _item in obj["admins"]] if obj.get("admins") is not None else None }) return _obj diff --git a/zitadel_client/models/beta_project_service_deactivate_project_grant_request.py b/zitadel_client/models/beta_project_service_deactivate_project_grant_request.py index a3ab627..79968ea 100644 --- a/zitadel_client/models/beta_project_service_deactivate_project_grant_request.py +++ b/zitadel_client/models/beta_project_service_deactivate_project_grant_request.py @@ -18,7 +18,7 @@ import json from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict +from typing import Any, ClassVar, Dict, Optional from typing import Optional, Set from typing_extensions import Self @@ -26,8 +26,8 @@ class BetaProjectServiceDeactivateProjectGrantRequest(BaseModel): """ BetaProjectServiceDeactivateProjectGrantRequest """ # noqa: E501 - project_id: StrictStr = Field(description="ID of the project.", alias="projectId") - granted_organization_id: StrictStr = Field(description="Organization the project is granted to.", alias="grantedOrganizationId") + project_id: Optional[StrictStr] = Field(default=None, description="ID of the project.", alias="projectId") + granted_organization_id: Optional[StrictStr] = Field(default=None, description="Organization the project is granted to.", alias="grantedOrganizationId") __properties: ClassVar[List[str]] = ["projectId", "grantedOrganizationId"] model_config = ConfigDict( diff --git a/zitadel_client/models/beta_project_service_deactivate_project_request.py b/zitadel_client/models/beta_project_service_deactivate_project_request.py index f3a6d92..142993f 100644 --- a/zitadel_client/models/beta_project_service_deactivate_project_request.py +++ b/zitadel_client/models/beta_project_service_deactivate_project_request.py @@ -18,7 +18,7 @@ import json from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict +from typing import Any, ClassVar, Dict, Optional from typing import Optional, Set from typing_extensions import Self @@ -26,7 +26,7 @@ class BetaProjectServiceDeactivateProjectRequest(BaseModel): """ BetaProjectServiceDeactivateProjectRequest """ # noqa: E501 - id: StrictStr = Field(description="The unique identifier of the project.") + id: Optional[StrictStr] = Field(default=None, description="The unique identifier of the project.") __properties: ClassVar[List[str]] = ["id"] model_config = ConfigDict( diff --git a/zitadel_client/models/beta_project_service_delete_project_grant_request.py b/zitadel_client/models/beta_project_service_delete_project_grant_request.py index b85c065..806b8e5 100644 --- a/zitadel_client/models/beta_project_service_delete_project_grant_request.py +++ b/zitadel_client/models/beta_project_service_delete_project_grant_request.py @@ -18,7 +18,7 @@ import json from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict +from typing import Any, ClassVar, Dict, Optional from typing import Optional, Set from typing_extensions import Self @@ -26,8 +26,8 @@ class BetaProjectServiceDeleteProjectGrantRequest(BaseModel): """ BetaProjectServiceDeleteProjectGrantRequest """ # noqa: E501 - project_id: StrictStr = Field(description="ID of the project.", alias="projectId") - granted_organization_id: StrictStr = Field(description="Organization the project is granted to.", alias="grantedOrganizationId") + project_id: Optional[StrictStr] = Field(default=None, description="ID of the project.", alias="projectId") + granted_organization_id: Optional[StrictStr] = Field(default=None, description="Organization the project is granted to.", alias="grantedOrganizationId") __properties: ClassVar[List[str]] = ["projectId", "grantedOrganizationId"] model_config = ConfigDict( diff --git a/zitadel_client/models/beta_project_service_delete_project_request.py b/zitadel_client/models/beta_project_service_delete_project_request.py index 6bd1157..283cf51 100644 --- a/zitadel_client/models/beta_project_service_delete_project_request.py +++ b/zitadel_client/models/beta_project_service_delete_project_request.py @@ -18,7 +18,7 @@ import json from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict +from typing import Any, ClassVar, Dict, Optional from typing import Optional, Set from typing_extensions import Self @@ -26,7 +26,7 @@ class BetaProjectServiceDeleteProjectRequest(BaseModel): """ BetaProjectServiceDeleteProjectRequest """ # noqa: E501 - id: StrictStr = Field(description="The unique identifier of the project.") + id: Optional[StrictStr] = Field(default=None, description="The unique identifier of the project.") __properties: ClassVar[List[str]] = ["id"] model_config = ConfigDict( diff --git a/zitadel_client/models/beta_project_service_list_project_roles_request.py b/zitadel_client/models/beta_project_service_list_project_roles_request.py index e4bc66e..f288bdd 100644 --- a/zitadel_client/models/beta_project_service_list_project_roles_request.py +++ b/zitadel_client/models/beta_project_service_list_project_roles_request.py @@ -29,7 +29,7 @@ class BetaProjectServiceListProjectRolesRequest(BaseModel): """ BetaProjectServiceListProjectRolesRequest """ # noqa: E501 - project_id: StrictStr = Field(description="ID of the project.", alias="projectId") + project_id: Optional[StrictStr] = Field(default=None, description="ID of the project.", alias="projectId") pagination: Optional[BetaProjectServicePaginationRequest] = None sorting_column: Optional[BetaProjectServiceProjectRoleFieldName] = Field(default=None, alias="sortingColumn") filters: Optional[List[BetaProjectServiceProjectRoleSearchFilter]] = Field(default=None, description="Define the criteria to query for.") diff --git a/zitadel_client/models/beta_project_service_remove_project_role_request.py b/zitadel_client/models/beta_project_service_remove_project_role_request.py index 0ee2cba..40fbe3c 100644 --- a/zitadel_client/models/beta_project_service_remove_project_role_request.py +++ b/zitadel_client/models/beta_project_service_remove_project_role_request.py @@ -18,7 +18,7 @@ import json from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict +from typing import Any, ClassVar, Dict, Optional from typing import Optional, Set from typing_extensions import Self @@ -26,8 +26,8 @@ class BetaProjectServiceRemoveProjectRoleRequest(BaseModel): """ BetaProjectServiceRemoveProjectRoleRequest """ # noqa: E501 - project_id: StrictStr = Field(description="ID of the project.", alias="projectId") - role_key: StrictStr = Field(description="The key is the only relevant attribute for ZITADEL regarding the authorization checks.", alias="roleKey") + project_id: Optional[StrictStr] = Field(default=None, description="ID of the project.", alias="projectId") + role_key: Optional[StrictStr] = Field(default=None, description="The key is the only relevant attribute for ZITADEL regarding the authorization checks.", alias="roleKey") __properties: ClassVar[List[str]] = ["projectId", "roleKey"] model_config = ConfigDict( diff --git a/zitadel_client/models/beta_project_service_update_project_grant_request.py b/zitadel_client/models/beta_project_service_update_project_grant_request.py index 47ed9f7..d35e09d 100644 --- a/zitadel_client/models/beta_project_service_update_project_grant_request.py +++ b/zitadel_client/models/beta_project_service_update_project_grant_request.py @@ -26,8 +26,8 @@ class BetaProjectServiceUpdateProjectGrantRequest(BaseModel): """ BetaProjectServiceUpdateProjectGrantRequest """ # noqa: E501 - project_id: StrictStr = Field(description="ID of the project.", alias="projectId") - granted_organization_id: StrictStr = Field(description="Organization the project is granted to.", alias="grantedOrganizationId") + project_id: Optional[StrictStr] = Field(default=None, description="ID of the project.", alias="projectId") + granted_organization_id: Optional[StrictStr] = Field(default=None, description="Organization the project is granted to.", alias="grantedOrganizationId") role_keys: Optional[List[StrictStr]] = Field(default=None, description="Keys of the role available for the project grant.", alias="roleKeys") __properties: ClassVar[List[str]] = ["projectId", "grantedOrganizationId", "roleKeys"] diff --git a/zitadel_client/models/beta_project_service_update_project_request.py b/zitadel_client/models/beta_project_service_update_project_request.py index f443f26..68e136d 100644 --- a/zitadel_client/models/beta_project_service_update_project_request.py +++ b/zitadel_client/models/beta_project_service_update_project_request.py @@ -27,7 +27,7 @@ class BetaProjectServiceUpdateProjectRequest(BaseModel): """ BetaProjectServiceUpdateProjectRequest """ # noqa: E501 - id: StrictStr + id: Optional[StrictStr] = None name: Optional[StrictStr] = Field(default=None, description="Name of the project.") project_role_assertion: Optional[StrictBool] = Field(default=None, description="Enable this setting to have role information included in the user info endpoint. It is also dependent on your application settings to include it in tokens and other types.", alias="projectRoleAssertion") project_role_check: Optional[StrictBool] = Field(default=None, description="When enabled ZITADEL will check if a user has a role of this project assigned when login into an application of this project.", alias="projectRoleCheck") diff --git a/zitadel_client/models/beta_project_service_update_project_role_request.py b/zitadel_client/models/beta_project_service_update_project_role_request.py index 13a858f..671461f 100644 --- a/zitadel_client/models/beta_project_service_update_project_role_request.py +++ b/zitadel_client/models/beta_project_service_update_project_role_request.py @@ -26,9 +26,9 @@ class BetaProjectServiceUpdateProjectRoleRequest(BaseModel): """ BetaProjectServiceUpdateProjectRoleRequest """ # noqa: E501 - project_id: StrictStr = Field(description="ID of the project.", alias="projectId") - role_key: StrictStr = Field(description="The key is the only relevant attribute for ZITADEL regarding the authorization checks.", alias="roleKey") - display_name: Optional[StrictStr] = Field(description="Name displayed for the role.", alias="displayName") + project_id: Optional[StrictStr] = Field(default=None, description="ID of the project.", alias="projectId") + role_key: Optional[StrictStr] = Field(default=None, description="The key is the only relevant attribute for ZITADEL regarding the authorization checks.", alias="roleKey") + display_name: Optional[StrictStr] = Field(default=None, description="Name displayed for the role.", alias="displayName") group: Optional[StrictStr] = Field(default=None, description="The group is only used for display purposes. That you have better handling, like giving all the roles from a group to a user.") __properties: ClassVar[List[str]] = ["projectId", "roleKey", "displayName", "group"] diff --git a/zitadel_client/models/beta_session_service_any.py b/zitadel_client/models/beta_session_service_any.py index dbfaa31..3f9c712 100644 --- a/zitadel_client/models/beta_session_service_any.py +++ b/zitadel_client/models/beta_session_service_any.py @@ -17,18 +17,18 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, StrictBytes, StrictStr +from pydantic import BaseModel, ConfigDict, Field, StrictBytes, StrictStr from typing import Any, ClassVar, Dict, List, Optional, Tuple, Union from typing import Optional, Set from typing_extensions import Self class BetaSessionServiceAny(BaseModel): """ - Contains an arbitrary serialized message along with a @type that describes the type of the serialized message. + Contains an arbitrary serialized message along with a @type that describes the type of the serialized message, with an additional debug field for ConnectRPC error details. """ # noqa: E501 - type: Optional[StrictStr] = None - value: Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]] = None - debug: Optional[Dict[str, Any]] = None + type: Optional[StrictStr] = Field(default=None, description="A URL that acts as a globally unique identifier for the type of the serialized message. For example: `type.googleapis.com/google.rpc.ErrorInfo`. This is used to determine the schema of the data in the `value` field and is the discriminator for the `debug` field.") + value: Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]] = Field(default=None, description="The Protobuf message, serialized as bytes and base64-encoded. The specific message type is identified by the `type` field.") + debug: Optional[Any] = Field(default=None, description="Deserialized error detail payload. The 'type' field indicates the schema. This field is for easier debugging and should not be relied upon for application logic.") additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["type", "value", "debug"] @@ -78,6 +78,11 @@ def to_dict(self) -> Dict[str, Any]: for _key, _value in self.additional_properties.items(): _dict[_key] = _value + # set to None if debug (nullable) is None + # and model_fields_set contains the field + if self.debug is None and "debug" in self.model_fields_set: + _dict['debug'] = None + return _dict @classmethod diff --git a/zitadel_client/models/beta_session_service_check_web_auth_n.py b/zitadel_client/models/beta_session_service_check_web_auth_n.py index b33565a..0c8c11c 100644 --- a/zitadel_client/models/beta_session_service_check_web_auth_n.py +++ b/zitadel_client/models/beta_session_service_check_web_auth_n.py @@ -18,7 +18,7 @@ import json from pydantic import BaseModel, ConfigDict, Field -from typing import Any, ClassVar, Dict +from typing import Any, ClassVar, Dict, Optional from typing import Optional, Set from typing_extensions import Self @@ -26,7 +26,7 @@ class BetaSessionServiceCheckWebAuthN(BaseModel): """ BetaSessionServiceCheckWebAuthN """ # noqa: E501 - credential_assertion_data: Dict[str, Any] = Field(description="`Struct` represents a structured data value, consisting of fields which map to dynamically typed values. In some languages, `Struct` might be supported by a native representation. For example, in scripting languages like JS a struct is represented as an object. The details of that representation are described together with the proto support for the language. The JSON representation for `Struct` is JSON object.", alias="credentialAssertionData") + credential_assertion_data: Optional[Dict[str, Any]] = Field(default=None, description="`Struct` represents a structured data value, consisting of fields which map to dynamically typed values. In some languages, `Struct` might be supported by a native representation. For example, in scripting languages like JS a struct is represented as an object. The details of that representation are described together with the proto support for the language. The JSON representation for `Struct` is JSON object.", alias="credentialAssertionData") __properties: ClassVar[List[str]] = ["credentialAssertionData"] model_config = ConfigDict( diff --git a/zitadel_client/models/beta_session_service_connect_error.py b/zitadel_client/models/beta_session_service_connect_error.py index 58afc25..7f7c9c5 100644 --- a/zitadel_client/models/beta_session_service_connect_error.py +++ b/zitadel_client/models/beta_session_service_connect_error.py @@ -29,9 +29,9 @@ class BetaSessionServiceConnectError(BaseModel): """ # noqa: E501 code: Optional[StrictStr] = Field(default=None, description="The status code, which should be an enum value of [google.rpc.Code][google.rpc.Code].") message: Optional[StrictStr] = Field(default=None, description="A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the [google.rpc.Status.details][google.rpc.Status.details] field, or localized by the client.") - detail: Optional[BetaSessionServiceAny] = None + details: Optional[List[BetaSessionServiceAny]] = Field(default=None, description="A list of messages that carry the error details. There is no limit on the number of messages.") additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["code", "message", "detail"] + __properties: ClassVar[List[str]] = ["code", "message", "details"] @field_validator('code') def code_validate_enum(cls, value): @@ -84,9 +84,13 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # override the default output from pydantic by calling `to_dict()` of detail - if self.detail: - _dict['detail'] = self.detail.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in details (list) + _items = [] + if self.details: + for _item_details in self.details: + if _item_details: + _items.append(_item_details.to_dict()) + _dict['details'] = _items # puts key-value pairs in additional_properties in the top level if self.additional_properties is not None: for _key, _value in self.additional_properties.items(): @@ -106,7 +110,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "code": obj.get("code"), "message": obj.get("message"), - "detail": BetaSessionServiceAny.from_dict(obj["detail"]) if obj.get("detail") is not None else None + "details": [BetaSessionServiceAny.from_dict(_item) for _item in obj["details"]] if obj.get("details") is not None else None }) # store additional fields in additional_properties for _key in obj.keys(): diff --git a/zitadel_client/models/beta_session_service_web_auth_n.py b/zitadel_client/models/beta_session_service_web_auth_n.py index 75f4007..a3cb9b3 100644 --- a/zitadel_client/models/beta_session_service_web_auth_n.py +++ b/zitadel_client/models/beta_session_service_web_auth_n.py @@ -18,7 +18,7 @@ import json from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict +from typing import Any, ClassVar, Dict, Optional from zitadel_client.models.beta_session_service_user_verification_requirement import BetaSessionServiceUserVerificationRequirement from typing import Optional, Set from typing_extensions import Self @@ -27,8 +27,8 @@ class BetaSessionServiceWebAuthN(BaseModel): """ BetaSessionServiceWebAuthN """ # noqa: E501 - domain: StrictStr - user_verification_requirement: BetaSessionServiceUserVerificationRequirement = Field(alias="userVerificationRequirement") + domain: Optional[StrictStr] = None + user_verification_requirement: Optional[BetaSessionServiceUserVerificationRequirement] = Field(default=None, alias="userVerificationRequirement") __properties: ClassVar[List[str]] = ["domain", "userVerificationRequirement"] model_config = ConfigDict( diff --git a/zitadel_client/models/beta_settings_service_any.py b/zitadel_client/models/beta_settings_service_any.py index 69b7e94..8a27975 100644 --- a/zitadel_client/models/beta_settings_service_any.py +++ b/zitadel_client/models/beta_settings_service_any.py @@ -17,18 +17,18 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, StrictBytes, StrictStr +from pydantic import BaseModel, ConfigDict, Field, StrictBytes, StrictStr from typing import Any, ClassVar, Dict, List, Optional, Tuple, Union from typing import Optional, Set from typing_extensions import Self class BetaSettingsServiceAny(BaseModel): """ - Contains an arbitrary serialized message along with a @type that describes the type of the serialized message. + Contains an arbitrary serialized message along with a @type that describes the type of the serialized message, with an additional debug field for ConnectRPC error details. """ # noqa: E501 - type: Optional[StrictStr] = None - value: Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]] = None - debug: Optional[Dict[str, Any]] = None + type: Optional[StrictStr] = Field(default=None, description="A URL that acts as a globally unique identifier for the type of the serialized message. For example: `type.googleapis.com/google.rpc.ErrorInfo`. This is used to determine the schema of the data in the `value` field and is the discriminator for the `debug` field.") + value: Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]] = Field(default=None, description="The Protobuf message, serialized as bytes and base64-encoded. The specific message type is identified by the `type` field.") + debug: Optional[Any] = Field(default=None, description="Deserialized error detail payload. The 'type' field indicates the schema. This field is for easier debugging and should not be relied upon for application logic.") additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["type", "value", "debug"] @@ -78,6 +78,11 @@ def to_dict(self) -> Dict[str, Any]: for _key, _value in self.additional_properties.items(): _dict[_key] = _value + # set to None if debug (nullable) is None + # and model_fields_set contains the field + if self.debug is None and "debug" in self.model_fields_set: + _dict['debug'] = None + return _dict @classmethod diff --git a/zitadel_client/models/beta_settings_service_connect_error.py b/zitadel_client/models/beta_settings_service_connect_error.py index d30f7fa..3fcaba5 100644 --- a/zitadel_client/models/beta_settings_service_connect_error.py +++ b/zitadel_client/models/beta_settings_service_connect_error.py @@ -29,9 +29,9 @@ class BetaSettingsServiceConnectError(BaseModel): """ # noqa: E501 code: Optional[StrictStr] = Field(default=None, description="The status code, which should be an enum value of [google.rpc.Code][google.rpc.Code].") message: Optional[StrictStr] = Field(default=None, description="A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the [google.rpc.Status.details][google.rpc.Status.details] field, or localized by the client.") - detail: Optional[BetaSettingsServiceAny] = None + details: Optional[List[BetaSettingsServiceAny]] = Field(default=None, description="A list of messages that carry the error details. There is no limit on the number of messages.") additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["code", "message", "detail"] + __properties: ClassVar[List[str]] = ["code", "message", "details"] @field_validator('code') def code_validate_enum(cls, value): @@ -84,9 +84,13 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # override the default output from pydantic by calling `to_dict()` of detail - if self.detail: - _dict['detail'] = self.detail.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in details (list) + _items = [] + if self.details: + for _item_details in self.details: + if _item_details: + _items.append(_item_details.to_dict()) + _dict['details'] = _items # puts key-value pairs in additional_properties in the top level if self.additional_properties is not None: for _key, _value in self.additional_properties.items(): @@ -106,7 +110,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "code": obj.get("code"), "message": obj.get("message"), - "detail": BetaSettingsServiceAny.from_dict(obj["detail"]) if obj.get("detail") is not None else None + "details": [BetaSettingsServiceAny.from_dict(_item) for _item in obj["details"]] if obj.get("details") is not None else None }) # store additional fields in additional_properties for _key in obj.keys(): diff --git a/zitadel_client/models/beta_telemetry_service_any.py b/zitadel_client/models/beta_telemetry_service_any.py index 07f111b..55fec35 100644 --- a/zitadel_client/models/beta_telemetry_service_any.py +++ b/zitadel_client/models/beta_telemetry_service_any.py @@ -17,18 +17,18 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, StrictBytes, StrictStr +from pydantic import BaseModel, ConfigDict, Field, StrictBytes, StrictStr from typing import Any, ClassVar, Dict, List, Optional, Tuple, Union from typing import Optional, Set from typing_extensions import Self class BetaTelemetryServiceAny(BaseModel): """ - Contains an arbitrary serialized message along with a @type that describes the type of the serialized message. + Contains an arbitrary serialized message along with a @type that describes the type of the serialized message, with an additional debug field for ConnectRPC error details. """ # noqa: E501 - type: Optional[StrictStr] = None - value: Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]] = None - debug: Optional[Dict[str, Any]] = None + type: Optional[StrictStr] = Field(default=None, description="A URL that acts as a globally unique identifier for the type of the serialized message. For example: `type.googleapis.com/google.rpc.ErrorInfo`. This is used to determine the schema of the data in the `value` field and is the discriminator for the `debug` field.") + value: Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]] = Field(default=None, description="The Protobuf message, serialized as bytes and base64-encoded. The specific message type is identified by the `type` field.") + debug: Optional[Any] = Field(default=None, description="Deserialized error detail payload. The 'type' field indicates the schema. This field is for easier debugging and should not be relied upon for application logic.") additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["type", "value", "debug"] @@ -78,6 +78,11 @@ def to_dict(self) -> Dict[str, Any]: for _key, _value in self.additional_properties.items(): _dict[_key] = _value + # set to None if debug (nullable) is None + # and model_fields_set contains the field + if self.debug is None and "debug" in self.model_fields_set: + _dict['debug'] = None + return _dict @classmethod diff --git a/zitadel_client/models/beta_telemetry_service_connect_error.py b/zitadel_client/models/beta_telemetry_service_connect_error.py index f6e7dce..b1fa11f 100644 --- a/zitadel_client/models/beta_telemetry_service_connect_error.py +++ b/zitadel_client/models/beta_telemetry_service_connect_error.py @@ -29,9 +29,9 @@ class BetaTelemetryServiceConnectError(BaseModel): """ # noqa: E501 code: Optional[StrictStr] = Field(default=None, description="The status code, which should be an enum value of [google.rpc.Code][google.rpc.Code].") message: Optional[StrictStr] = Field(default=None, description="A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the [google.rpc.Status.details][google.rpc.Status.details] field, or localized by the client.") - detail: Optional[BetaTelemetryServiceAny] = None + details: Optional[List[BetaTelemetryServiceAny]] = Field(default=None, description="A list of messages that carry the error details. There is no limit on the number of messages.") additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["code", "message", "detail"] + __properties: ClassVar[List[str]] = ["code", "message", "details"] @field_validator('code') def code_validate_enum(cls, value): @@ -84,9 +84,13 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # override the default output from pydantic by calling `to_dict()` of detail - if self.detail: - _dict['detail'] = self.detail.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in details (list) + _items = [] + if self.details: + for _item_details in self.details: + if _item_details: + _items.append(_item_details.to_dict()) + _dict['details'] = _items # puts key-value pairs in additional_properties in the top level if self.additional_properties is not None: for _key, _value in self.additional_properties.items(): @@ -106,7 +110,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "code": obj.get("code"), "message": obj.get("message"), - "detail": BetaTelemetryServiceAny.from_dict(obj["detail"]) if obj.get("detail") is not None else None + "details": [BetaTelemetryServiceAny.from_dict(_item) for _item in obj["details"]] if obj.get("details") is not None else None }) # store additional fields in additional_properties for _key in obj.keys(): diff --git a/zitadel_client/models/beta_user_service_add_human_user_request.py b/zitadel_client/models/beta_user_service_add_human_user_request.py index 142e4be..38e84f5 100644 --- a/zitadel_client/models/beta_user_service_add_human_user_request.py +++ b/zitadel_client/models/beta_user_service_add_human_user_request.py @@ -37,8 +37,8 @@ class BetaUserServiceAddHumanUserRequest(BaseModel): user_id: Optional[StrictStr] = Field(default=None, description="optionally set your own id unique for the user.", alias="userId") username: Optional[StrictStr] = Field(default=None, description="optionally set a unique username, if none is provided the email will be used.") organization: Optional[BetaUserServiceOrganization] = None - profile: BetaUserServiceSetHumanProfile - email: BetaUserServiceSetHumanEmail + profile: Optional[BetaUserServiceSetHumanProfile] = None + email: Optional[BetaUserServiceSetHumanEmail] = None phone: Optional[BetaUserServiceSetHumanPhone] = None metadata: Optional[List[BetaUserServiceSetMetadataEntry]] = None idp_links: Optional[List[BetaUserServiceIDPLink]] = Field(default=None, alias="idpLinks") diff --git a/zitadel_client/models/beta_user_service_add_idp_link_request.py b/zitadel_client/models/beta_user_service_add_idp_link_request.py index ebf3ebf..fdf8c45 100644 --- a/zitadel_client/models/beta_user_service_add_idp_link_request.py +++ b/zitadel_client/models/beta_user_service_add_idp_link_request.py @@ -27,7 +27,7 @@ class BetaUserServiceAddIDPLinkRequest(BaseModel): """ BetaUserServiceAddIDPLinkRequest """ # noqa: E501 - user_id: StrictStr = Field(alias="userId") + user_id: Optional[StrictStr] = Field(default=None, alias="userId") idp_link: Optional[BetaUserServiceIDPLink] = Field(default=None, alias="idpLink") __properties: ClassVar[List[str]] = ["userId", "idpLink"] diff --git a/zitadel_client/models/beta_user_service_add_otp_email_request.py b/zitadel_client/models/beta_user_service_add_otp_email_request.py index ead3cd7..06d350d 100644 --- a/zitadel_client/models/beta_user_service_add_otp_email_request.py +++ b/zitadel_client/models/beta_user_service_add_otp_email_request.py @@ -18,7 +18,7 @@ import json from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict +from typing import Any, ClassVar, Dict, Optional from typing import Optional, Set from typing_extensions import Self @@ -26,7 +26,7 @@ class BetaUserServiceAddOTPEmailRequest(BaseModel): """ BetaUserServiceAddOTPEmailRequest """ # noqa: E501 - user_id: StrictStr = Field(alias="userId") + user_id: Optional[StrictStr] = Field(default=None, alias="userId") __properties: ClassVar[List[str]] = ["userId"] model_config = ConfigDict( diff --git a/zitadel_client/models/beta_user_service_add_otpsms_request.py b/zitadel_client/models/beta_user_service_add_otpsms_request.py index f8dcfb8..7bf2587 100644 --- a/zitadel_client/models/beta_user_service_add_otpsms_request.py +++ b/zitadel_client/models/beta_user_service_add_otpsms_request.py @@ -18,7 +18,7 @@ import json from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict +from typing import Any, ClassVar, Dict, Optional from typing import Optional, Set from typing_extensions import Self @@ -26,7 +26,7 @@ class BetaUserServiceAddOTPSMSRequest(BaseModel): """ BetaUserServiceAddOTPSMSRequest """ # noqa: E501 - user_id: StrictStr = Field(alias="userId") + user_id: Optional[StrictStr] = Field(default=None, alias="userId") __properties: ClassVar[List[str]] = ["userId"] model_config = ConfigDict( diff --git a/zitadel_client/models/beta_user_service_any.py b/zitadel_client/models/beta_user_service_any.py index ca515a7..e98aee6 100644 --- a/zitadel_client/models/beta_user_service_any.py +++ b/zitadel_client/models/beta_user_service_any.py @@ -17,18 +17,18 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, StrictBytes, StrictStr +from pydantic import BaseModel, ConfigDict, Field, StrictBytes, StrictStr from typing import Any, ClassVar, Dict, List, Optional, Tuple, Union from typing import Optional, Set from typing_extensions import Self class BetaUserServiceAny(BaseModel): """ - Contains an arbitrary serialized message along with a @type that describes the type of the serialized message. + Contains an arbitrary serialized message along with a @type that describes the type of the serialized message, with an additional debug field for ConnectRPC error details. """ # noqa: E501 - type: Optional[StrictStr] = None - value: Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]] = None - debug: Optional[Dict[str, Any]] = None + type: Optional[StrictStr] = Field(default=None, description="A URL that acts as a globally unique identifier for the type of the serialized message. For example: `type.googleapis.com/google.rpc.ErrorInfo`. This is used to determine the schema of the data in the `value` field and is the discriminator for the `debug` field.") + value: Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]] = Field(default=None, description="The Protobuf message, serialized as bytes and base64-encoded. The specific message type is identified by the `type` field.") + debug: Optional[Any] = Field(default=None, description="Deserialized error detail payload. The 'type' field indicates the schema. This field is for easier debugging and should not be relied upon for application logic.") additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["type", "value", "debug"] @@ -78,6 +78,11 @@ def to_dict(self) -> Dict[str, Any]: for _key, _value in self.additional_properties.items(): _dict[_key] = _value + # set to None if debug (nullable) is None + # and model_fields_set contains the field + if self.debug is None and "debug" in self.model_fields_set: + _dict['debug'] = None + return _dict @classmethod diff --git a/zitadel_client/models/beta_user_service_connect_error.py b/zitadel_client/models/beta_user_service_connect_error.py index 035ad1e..caad7eb 100644 --- a/zitadel_client/models/beta_user_service_connect_error.py +++ b/zitadel_client/models/beta_user_service_connect_error.py @@ -29,9 +29,9 @@ class BetaUserServiceConnectError(BaseModel): """ # noqa: E501 code: Optional[StrictStr] = Field(default=None, description="The status code, which should be an enum value of [google.rpc.Code][google.rpc.Code].") message: Optional[StrictStr] = Field(default=None, description="A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the [google.rpc.Status.details][google.rpc.Status.details] field, or localized by the client.") - detail: Optional[BetaUserServiceAny] = None + details: Optional[List[BetaUserServiceAny]] = Field(default=None, description="A list of messages that carry the error details. There is no limit on the number of messages.") additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["code", "message", "detail"] + __properties: ClassVar[List[str]] = ["code", "message", "details"] @field_validator('code') def code_validate_enum(cls, value): @@ -84,9 +84,13 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # override the default output from pydantic by calling `to_dict()` of detail - if self.detail: - _dict['detail'] = self.detail.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in details (list) + _items = [] + if self.details: + for _item_details in self.details: + if _item_details: + _items.append(_item_details.to_dict()) + _dict['details'] = _items # puts key-value pairs in additional_properties in the top level if self.additional_properties is not None: for _key, _value in self.additional_properties.items(): @@ -106,7 +110,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "code": obj.get("code"), "message": obj.get("message"), - "detail": BetaUserServiceAny.from_dict(obj["detail"]) if obj.get("detail") is not None else None + "details": [BetaUserServiceAny.from_dict(_item) for _item in obj["details"]] if obj.get("details") is not None else None }) # store additional fields in additional_properties for _key in obj.keys(): diff --git a/zitadel_client/models/beta_user_service_create_passkey_registration_link_request.py b/zitadel_client/models/beta_user_service_create_passkey_registration_link_request.py index e723b7c..5b974f4 100644 --- a/zitadel_client/models/beta_user_service_create_passkey_registration_link_request.py +++ b/zitadel_client/models/beta_user_service_create_passkey_registration_link_request.py @@ -27,7 +27,7 @@ class BetaUserServiceCreatePasskeyRegistrationLinkRequest(BaseModel): """ BetaUserServiceCreatePasskeyRegistrationLinkRequest """ # noqa: E501 - user_id: StrictStr = Field(alias="userId") + user_id: Optional[StrictStr] = Field(default=None, alias="userId") return_code: Optional[Dict[str, Any]] = Field(default=None, alias="returnCode") send_link: Optional[BetaUserServiceSendPasskeyRegistrationLink] = Field(default=None, alias="sendLink") __properties: ClassVar[List[str]] = ["userId", "returnCode", "sendLink"] diff --git a/zitadel_client/models/beta_user_service_deactivate_user_request.py b/zitadel_client/models/beta_user_service_deactivate_user_request.py index cd70fab..c6ac392 100644 --- a/zitadel_client/models/beta_user_service_deactivate_user_request.py +++ b/zitadel_client/models/beta_user_service_deactivate_user_request.py @@ -18,7 +18,7 @@ import json from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict +from typing import Any, ClassVar, Dict, Optional from typing import Optional, Set from typing_extensions import Self @@ -26,7 +26,7 @@ class BetaUserServiceDeactivateUserRequest(BaseModel): """ BetaUserServiceDeactivateUserRequest """ # noqa: E501 - user_id: StrictStr = Field(alias="userId") + user_id: Optional[StrictStr] = Field(default=None, alias="userId") __properties: ClassVar[List[str]] = ["userId"] model_config = ConfigDict( diff --git a/zitadel_client/models/beta_user_service_delete_user_request.py b/zitadel_client/models/beta_user_service_delete_user_request.py index b8739fa..1256a5c 100644 --- a/zitadel_client/models/beta_user_service_delete_user_request.py +++ b/zitadel_client/models/beta_user_service_delete_user_request.py @@ -18,7 +18,7 @@ import json from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict +from typing import Any, ClassVar, Dict, Optional from typing import Optional, Set from typing_extensions import Self @@ -26,7 +26,7 @@ class BetaUserServiceDeleteUserRequest(BaseModel): """ BetaUserServiceDeleteUserRequest """ # noqa: E501 - user_id: StrictStr = Field(alias="userId") + user_id: Optional[StrictStr] = Field(default=None, alias="userId") __properties: ClassVar[List[str]] = ["userId"] model_config = ConfigDict( diff --git a/zitadel_client/models/beta_user_service_display_name_query.py b/zitadel_client/models/beta_user_service_display_name_query.py index 2d1a7b7..5c4abe4 100644 --- a/zitadel_client/models/beta_user_service_display_name_query.py +++ b/zitadel_client/models/beta_user_service_display_name_query.py @@ -27,7 +27,7 @@ class BetaUserServiceDisplayNameQuery(BaseModel): """ Query for users with a specific display name. """ # noqa: E501 - display_name: StrictStr = Field(alias="displayName") + display_name: Optional[StrictStr] = Field(default=None, alias="displayName") method: Optional[BetaUserServiceTextQueryMethod] = None __properties: ClassVar[List[str]] = ["displayName", "method"] diff --git a/zitadel_client/models/beta_user_service_email_query.py b/zitadel_client/models/beta_user_service_email_query.py index cb15adc..424674b 100644 --- a/zitadel_client/models/beta_user_service_email_query.py +++ b/zitadel_client/models/beta_user_service_email_query.py @@ -27,7 +27,7 @@ class BetaUserServiceEmailQuery(BaseModel): """ Query for users with a specific email. """ # noqa: E501 - email_address: StrictStr = Field(alias="emailAddress") + email_address: Optional[StrictStr] = Field(default=None, alias="emailAddress") method: Optional[BetaUserServiceTextQueryMethod] = None __properties: ClassVar[List[str]] = ["emailAddress", "method"] diff --git a/zitadel_client/models/beta_user_service_first_name_query.py b/zitadel_client/models/beta_user_service_first_name_query.py index 103e2a6..2a5e4d7 100644 --- a/zitadel_client/models/beta_user_service_first_name_query.py +++ b/zitadel_client/models/beta_user_service_first_name_query.py @@ -27,7 +27,7 @@ class BetaUserServiceFirstNameQuery(BaseModel): """ Query for users with a specific first name. """ # noqa: E501 - first_name: StrictStr = Field(alias="firstName") + first_name: Optional[StrictStr] = Field(default=None, alias="firstName") method: Optional[BetaUserServiceTextQueryMethod] = None __properties: ClassVar[List[str]] = ["firstName", "method"] diff --git a/zitadel_client/models/beta_user_service_get_user_by_id_request.py b/zitadel_client/models/beta_user_service_get_user_by_id_request.py index 522230e..3c35a60 100644 --- a/zitadel_client/models/beta_user_service_get_user_by_id_request.py +++ b/zitadel_client/models/beta_user_service_get_user_by_id_request.py @@ -18,7 +18,7 @@ import json from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict +from typing import Any, ClassVar, Dict, Optional from typing import Optional, Set from typing_extensions import Self @@ -26,7 +26,7 @@ class BetaUserServiceGetUserByIDRequest(BaseModel): """ BetaUserServiceGetUserByIDRequest """ # noqa: E501 - user_id: StrictStr = Field(alias="userId") + user_id: Optional[StrictStr] = Field(default=None, alias="userId") __properties: ClassVar[List[str]] = ["userId"] model_config = ConfigDict( diff --git a/zitadel_client/models/beta_user_service_hashed_password.py b/zitadel_client/models/beta_user_service_hashed_password.py index 06cec56..1100841 100644 --- a/zitadel_client/models/beta_user_service_hashed_password.py +++ b/zitadel_client/models/beta_user_service_hashed_password.py @@ -26,7 +26,7 @@ class BetaUserServiceHashedPassword(BaseModel): """ BetaUserServiceHashedPassword """ # noqa: E501 - hash: StrictStr + hash: Optional[StrictStr] = None change_required: Optional[StrictBool] = Field(default=None, alias="changeRequired") __properties: ClassVar[List[str]] = ["hash", "changeRequired"] diff --git a/zitadel_client/models/beta_user_service_last_name_query.py b/zitadel_client/models/beta_user_service_last_name_query.py index d5363a8..b66c318 100644 --- a/zitadel_client/models/beta_user_service_last_name_query.py +++ b/zitadel_client/models/beta_user_service_last_name_query.py @@ -27,7 +27,7 @@ class BetaUserServiceLastNameQuery(BaseModel): """ Query for users with a specific last name. """ # noqa: E501 - last_name: StrictStr = Field(alias="lastName") + last_name: Optional[StrictStr] = Field(default=None, alias="lastName") method: Optional[BetaUserServiceTextQueryMethod] = None __properties: ClassVar[List[str]] = ["lastName", "method"] diff --git a/zitadel_client/models/beta_user_service_list_authentication_method_types_request.py b/zitadel_client/models/beta_user_service_list_authentication_method_types_request.py index 3e67a7f..4b90ddd 100644 --- a/zitadel_client/models/beta_user_service_list_authentication_method_types_request.py +++ b/zitadel_client/models/beta_user_service_list_authentication_method_types_request.py @@ -18,7 +18,7 @@ import json from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict +from typing import Any, ClassVar, Dict, Optional from typing import Optional, Set from typing_extensions import Self @@ -26,7 +26,7 @@ class BetaUserServiceListAuthenticationMethodTypesRequest(BaseModel): """ BetaUserServiceListAuthenticationMethodTypesRequest """ # noqa: E501 - user_id: StrictStr = Field(alias="userId") + user_id: Optional[StrictStr] = Field(default=None, alias="userId") __properties: ClassVar[List[str]] = ["userId"] model_config = ConfigDict( diff --git a/zitadel_client/models/beta_user_service_lock_user_request.py b/zitadel_client/models/beta_user_service_lock_user_request.py index 8f35515..6248402 100644 --- a/zitadel_client/models/beta_user_service_lock_user_request.py +++ b/zitadel_client/models/beta_user_service_lock_user_request.py @@ -18,7 +18,7 @@ import json from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict +from typing import Any, ClassVar, Dict, Optional from typing import Optional, Set from typing_extensions import Self @@ -26,7 +26,7 @@ class BetaUserServiceLockUserRequest(BaseModel): """ BetaUserServiceLockUserRequest """ # noqa: E501 - user_id: StrictStr = Field(alias="userId") + user_id: Optional[StrictStr] = Field(default=None, alias="userId") __properties: ClassVar[List[str]] = ["userId"] model_config = ConfigDict( diff --git a/zitadel_client/models/beta_user_service_login_name_query.py b/zitadel_client/models/beta_user_service_login_name_query.py index d55f0a4..aa26a8f 100644 --- a/zitadel_client/models/beta_user_service_login_name_query.py +++ b/zitadel_client/models/beta_user_service_login_name_query.py @@ -27,7 +27,7 @@ class BetaUserServiceLoginNameQuery(BaseModel): """ Query for users with a specific state. """ # noqa: E501 - login_name: StrictStr = Field(alias="loginName") + login_name: Optional[StrictStr] = Field(default=None, alias="loginName") method: Optional[BetaUserServiceTextQueryMethod] = None __properties: ClassVar[List[str]] = ["loginName", "method"] diff --git a/zitadel_client/models/beta_user_service_nick_name_query.py b/zitadel_client/models/beta_user_service_nick_name_query.py index 567de48..36bb79d 100644 --- a/zitadel_client/models/beta_user_service_nick_name_query.py +++ b/zitadel_client/models/beta_user_service_nick_name_query.py @@ -27,7 +27,7 @@ class BetaUserServiceNickNameQuery(BaseModel): """ Query for users with a specific nickname. """ # noqa: E501 - nick_name: StrictStr = Field(alias="nickName") + nick_name: Optional[StrictStr] = Field(default=None, alias="nickName") method: Optional[BetaUserServiceTextQueryMethod] = None __properties: ClassVar[List[str]] = ["nickName", "method"] diff --git a/zitadel_client/models/beta_user_service_organization_id_query.py b/zitadel_client/models/beta_user_service_organization_id_query.py index f403d5a..ed388fb 100644 --- a/zitadel_client/models/beta_user_service_organization_id_query.py +++ b/zitadel_client/models/beta_user_service_organization_id_query.py @@ -18,7 +18,7 @@ import json from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict +from typing import Any, ClassVar, Dict, Optional from typing import Optional, Set from typing_extensions import Self @@ -26,7 +26,7 @@ class BetaUserServiceOrganizationIdQuery(BaseModel): """ Query for users under a specific organization as resource owner. """ # noqa: E501 - organization_id: StrictStr = Field(alias="organizationId") + organization_id: Optional[StrictStr] = Field(default=None, alias="organizationId") __properties: ClassVar[List[str]] = ["organizationId"] model_config = ConfigDict( diff --git a/zitadel_client/models/beta_user_service_passkey_registration_code.py b/zitadel_client/models/beta_user_service_passkey_registration_code.py index f9f6e5f..5aede4a 100644 --- a/zitadel_client/models/beta_user_service_passkey_registration_code.py +++ b/zitadel_client/models/beta_user_service_passkey_registration_code.py @@ -18,7 +18,7 @@ import json from pydantic import BaseModel, ConfigDict, StrictStr -from typing import Any, ClassVar, Dict +from typing import Any, ClassVar, Dict, Optional from typing import Optional, Set from typing_extensions import Self @@ -26,8 +26,8 @@ class BetaUserServicePasskeyRegistrationCode(BaseModel): """ BetaUserServicePasskeyRegistrationCode """ # noqa: E501 - id: StrictStr - code: StrictStr + id: Optional[StrictStr] = None + code: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["id", "code"] model_config = ConfigDict( diff --git a/zitadel_client/models/beta_user_service_password.py b/zitadel_client/models/beta_user_service_password.py index 64dcc30..ab9c124 100644 --- a/zitadel_client/models/beta_user_service_password.py +++ b/zitadel_client/models/beta_user_service_password.py @@ -26,7 +26,7 @@ class BetaUserServicePassword(BaseModel): """ BetaUserServicePassword """ # noqa: E501 - password: StrictStr + password: Optional[StrictStr] = None change_required: Optional[StrictBool] = Field(default=None, alias="changeRequired") __properties: ClassVar[List[str]] = ["password", "changeRequired"] diff --git a/zitadel_client/models/beta_user_service_password_reset_request.py b/zitadel_client/models/beta_user_service_password_reset_request.py index eba1091..79ddacd 100644 --- a/zitadel_client/models/beta_user_service_password_reset_request.py +++ b/zitadel_client/models/beta_user_service_password_reset_request.py @@ -27,7 +27,7 @@ class BetaUserServicePasswordResetRequest(BaseModel): """ BetaUserServicePasswordResetRequest """ # noqa: E501 - user_id: StrictStr = Field(alias="userId") + user_id: Optional[StrictStr] = Field(default=None, alias="userId") return_code: Optional[Dict[str, Any]] = Field(default=None, alias="returnCode") send_link: Optional[BetaUserServiceSendPasswordResetLink] = Field(default=None, alias="sendLink") __properties: ClassVar[List[str]] = ["userId", "returnCode", "sendLink"] diff --git a/zitadel_client/models/beta_user_service_phone_query.py b/zitadel_client/models/beta_user_service_phone_query.py index 0b64008..d9efed9 100644 --- a/zitadel_client/models/beta_user_service_phone_query.py +++ b/zitadel_client/models/beta_user_service_phone_query.py @@ -27,7 +27,7 @@ class BetaUserServicePhoneQuery(BaseModel): """ Query for users with a specific phone. """ # noqa: E501 - number: StrictStr + number: Optional[StrictStr] = None method: Optional[BetaUserServiceTextQueryMethod] = None __properties: ClassVar[List[str]] = ["number", "method"] diff --git a/zitadel_client/models/beta_user_service_reactivate_user_request.py b/zitadel_client/models/beta_user_service_reactivate_user_request.py index 0bcff18..dc2f71e 100644 --- a/zitadel_client/models/beta_user_service_reactivate_user_request.py +++ b/zitadel_client/models/beta_user_service_reactivate_user_request.py @@ -18,7 +18,7 @@ import json from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict +from typing import Any, ClassVar, Dict, Optional from typing import Optional, Set from typing_extensions import Self @@ -26,7 +26,7 @@ class BetaUserServiceReactivateUserRequest(BaseModel): """ BetaUserServiceReactivateUserRequest """ # noqa: E501 - user_id: StrictStr = Field(alias="userId") + user_id: Optional[StrictStr] = Field(default=None, alias="userId") __properties: ClassVar[List[str]] = ["userId"] model_config = ConfigDict( diff --git a/zitadel_client/models/beta_user_service_register_passkey_request.py b/zitadel_client/models/beta_user_service_register_passkey_request.py index 85de1f2..b1f40a3 100644 --- a/zitadel_client/models/beta_user_service_register_passkey_request.py +++ b/zitadel_client/models/beta_user_service_register_passkey_request.py @@ -28,7 +28,7 @@ class BetaUserServiceRegisterPasskeyRequest(BaseModel): """ BetaUserServiceRegisterPasskeyRequest """ # noqa: E501 - user_id: StrictStr = Field(alias="userId") + user_id: Optional[StrictStr] = Field(default=None, alias="userId") code: Optional[BetaUserServicePasskeyRegistrationCode] = None authenticator: Optional[BetaUserServicePasskeyAuthenticator] = None domain: Optional[StrictStr] = None diff --git a/zitadel_client/models/beta_user_service_register_totp_request.py b/zitadel_client/models/beta_user_service_register_totp_request.py index e9e6835..78c2458 100644 --- a/zitadel_client/models/beta_user_service_register_totp_request.py +++ b/zitadel_client/models/beta_user_service_register_totp_request.py @@ -18,7 +18,7 @@ import json from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict +from typing import Any, ClassVar, Dict, Optional from typing import Optional, Set from typing_extensions import Self @@ -26,7 +26,7 @@ class BetaUserServiceRegisterTOTPRequest(BaseModel): """ BetaUserServiceRegisterTOTPRequest """ # noqa: E501 - user_id: StrictStr = Field(alias="userId") + user_id: Optional[StrictStr] = Field(default=None, alias="userId") __properties: ClassVar[List[str]] = ["userId"] model_config = ConfigDict( diff --git a/zitadel_client/models/beta_user_service_register_u2_f_request.py b/zitadel_client/models/beta_user_service_register_u2_f_request.py index afdb187..37238bb 100644 --- a/zitadel_client/models/beta_user_service_register_u2_f_request.py +++ b/zitadel_client/models/beta_user_service_register_u2_f_request.py @@ -26,7 +26,7 @@ class BetaUserServiceRegisterU2FRequest(BaseModel): """ BetaUserServiceRegisterU2FRequest """ # noqa: E501 - user_id: StrictStr = Field(alias="userId") + user_id: Optional[StrictStr] = Field(default=None, alias="userId") domain: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["userId", "domain"] diff --git a/zitadel_client/models/beta_user_service_remove_otp_email_request.py b/zitadel_client/models/beta_user_service_remove_otp_email_request.py index d0e6e91..2d3205d 100644 --- a/zitadel_client/models/beta_user_service_remove_otp_email_request.py +++ b/zitadel_client/models/beta_user_service_remove_otp_email_request.py @@ -18,7 +18,7 @@ import json from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict +from typing import Any, ClassVar, Dict, Optional from typing import Optional, Set from typing_extensions import Self @@ -26,7 +26,7 @@ class BetaUserServiceRemoveOTPEmailRequest(BaseModel): """ BetaUserServiceRemoveOTPEmailRequest """ # noqa: E501 - user_id: StrictStr = Field(alias="userId") + user_id: Optional[StrictStr] = Field(default=None, alias="userId") __properties: ClassVar[List[str]] = ["userId"] model_config = ConfigDict( diff --git a/zitadel_client/models/beta_user_service_remove_otpsms_request.py b/zitadel_client/models/beta_user_service_remove_otpsms_request.py index 22f9554..8a38ccf 100644 --- a/zitadel_client/models/beta_user_service_remove_otpsms_request.py +++ b/zitadel_client/models/beta_user_service_remove_otpsms_request.py @@ -18,7 +18,7 @@ import json from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict +from typing import Any, ClassVar, Dict, Optional from typing import Optional, Set from typing_extensions import Self @@ -26,7 +26,7 @@ class BetaUserServiceRemoveOTPSMSRequest(BaseModel): """ BetaUserServiceRemoveOTPSMSRequest """ # noqa: E501 - user_id: StrictStr = Field(alias="userId") + user_id: Optional[StrictStr] = Field(default=None, alias="userId") __properties: ClassVar[List[str]] = ["userId"] model_config = ConfigDict( diff --git a/zitadel_client/models/beta_user_service_remove_phone_request.py b/zitadel_client/models/beta_user_service_remove_phone_request.py index 03190fd..b8c5931 100644 --- a/zitadel_client/models/beta_user_service_remove_phone_request.py +++ b/zitadel_client/models/beta_user_service_remove_phone_request.py @@ -18,7 +18,7 @@ import json from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict +from typing import Any, ClassVar, Dict, Optional from typing import Optional, Set from typing_extensions import Self @@ -26,7 +26,7 @@ class BetaUserServiceRemovePhoneRequest(BaseModel): """ BetaUserServiceRemovePhoneRequest """ # noqa: E501 - user_id: StrictStr = Field(alias="userId") + user_id: Optional[StrictStr] = Field(default=None, alias="userId") __properties: ClassVar[List[str]] = ["userId"] model_config = ConfigDict( diff --git a/zitadel_client/models/beta_user_service_remove_totp_request.py b/zitadel_client/models/beta_user_service_remove_totp_request.py index d2ff179..1bf6ee9 100644 --- a/zitadel_client/models/beta_user_service_remove_totp_request.py +++ b/zitadel_client/models/beta_user_service_remove_totp_request.py @@ -18,7 +18,7 @@ import json from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict +from typing import Any, ClassVar, Dict, Optional from typing import Optional, Set from typing_extensions import Self @@ -26,7 +26,7 @@ class BetaUserServiceRemoveTOTPRequest(BaseModel): """ BetaUserServiceRemoveTOTPRequest """ # noqa: E501 - user_id: StrictStr = Field(alias="userId") + user_id: Optional[StrictStr] = Field(default=None, alias="userId") __properties: ClassVar[List[str]] = ["userId"] model_config = ConfigDict( diff --git a/zitadel_client/models/beta_user_service_resend_email_code_request.py b/zitadel_client/models/beta_user_service_resend_email_code_request.py index b7b1950..083d17b 100644 --- a/zitadel_client/models/beta_user_service_resend_email_code_request.py +++ b/zitadel_client/models/beta_user_service_resend_email_code_request.py @@ -27,7 +27,7 @@ class BetaUserServiceResendEmailCodeRequest(BaseModel): """ BetaUserServiceResendEmailCodeRequest """ # noqa: E501 - user_id: StrictStr = Field(alias="userId") + user_id: Optional[StrictStr] = Field(default=None, alias="userId") return_code: Optional[Dict[str, Any]] = Field(default=None, alias="returnCode") send_code: Optional[BetaUserServiceSendEmailVerificationCode] = Field(default=None, alias="sendCode") __properties: ClassVar[List[str]] = ["userId", "returnCode", "sendCode"] diff --git a/zitadel_client/models/beta_user_service_resend_phone_code_request.py b/zitadel_client/models/beta_user_service_resend_phone_code_request.py index 3bde521..3253966 100644 --- a/zitadel_client/models/beta_user_service_resend_phone_code_request.py +++ b/zitadel_client/models/beta_user_service_resend_phone_code_request.py @@ -26,7 +26,7 @@ class BetaUserServiceResendPhoneCodeRequest(BaseModel): """ BetaUserServiceResendPhoneCodeRequest """ # noqa: E501 - user_id: StrictStr = Field(alias="userId") + user_id: Optional[StrictStr] = Field(default=None, alias="userId") return_code: Optional[Dict[str, Any]] = Field(default=None, alias="returnCode") send_code: Optional[Dict[str, Any]] = Field(default=None, alias="sendCode") __properties: ClassVar[List[str]] = ["userId", "returnCode", "sendCode"] diff --git a/zitadel_client/models/beta_user_service_set_email_request.py b/zitadel_client/models/beta_user_service_set_email_request.py index ef622e8..ca9d548 100644 --- a/zitadel_client/models/beta_user_service_set_email_request.py +++ b/zitadel_client/models/beta_user_service_set_email_request.py @@ -27,8 +27,8 @@ class BetaUserServiceSetEmailRequest(BaseModel): """ BetaUserServiceSetEmailRequest """ # noqa: E501 - user_id: StrictStr = Field(alias="userId") - email: StrictStr + user_id: Optional[StrictStr] = Field(default=None, alias="userId") + email: Optional[StrictStr] = None is_verified: Optional[StrictBool] = Field(default=None, alias="isVerified") return_code: Optional[Dict[str, Any]] = Field(default=None, alias="returnCode") send_code: Optional[BetaUserServiceSendEmailVerificationCode] = Field(default=None, alias="sendCode") diff --git a/zitadel_client/models/beta_user_service_set_human_email.py b/zitadel_client/models/beta_user_service_set_human_email.py index 5063f8c..670646c 100644 --- a/zitadel_client/models/beta_user_service_set_human_email.py +++ b/zitadel_client/models/beta_user_service_set_human_email.py @@ -27,7 +27,7 @@ class BetaUserServiceSetHumanEmail(BaseModel): """ BetaUserServiceSetHumanEmail """ # noqa: E501 - email: StrictStr + email: Optional[StrictStr] = None is_verified: Optional[StrictBool] = Field(default=None, alias="isVerified") return_code: Optional[Dict[str, Any]] = Field(default=None, alias="returnCode") send_code: Optional[BetaUserServiceSendEmailVerificationCode] = Field(default=None, alias="sendCode") diff --git a/zitadel_client/models/beta_user_service_set_human_profile.py b/zitadel_client/models/beta_user_service_set_human_profile.py index c747ddd..c50c885 100644 --- a/zitadel_client/models/beta_user_service_set_human_profile.py +++ b/zitadel_client/models/beta_user_service_set_human_profile.py @@ -27,8 +27,8 @@ class BetaUserServiceSetHumanProfile(BaseModel): """ BetaUserServiceSetHumanProfile """ # noqa: E501 - given_name: StrictStr = Field(alias="givenName") - family_name: StrictStr = Field(alias="familyName") + given_name: Optional[StrictStr] = Field(default=None, alias="givenName") + family_name: Optional[StrictStr] = Field(default=None, alias="familyName") nick_name: Optional[StrictStr] = Field(default=None, alias="nickName") display_name: Optional[StrictStr] = Field(default=None, alias="displayName") preferred_language: Optional[StrictStr] = Field(default=None, alias="preferredLanguage") diff --git a/zitadel_client/models/beta_user_service_set_metadata_entry.py b/zitadel_client/models/beta_user_service_set_metadata_entry.py index bc06545..7be5bcf 100644 --- a/zitadel_client/models/beta_user_service_set_metadata_entry.py +++ b/zitadel_client/models/beta_user_service_set_metadata_entry.py @@ -18,7 +18,7 @@ import json from pydantic import BaseModel, ConfigDict, StrictBytes, StrictStr -from typing import Any, ClassVar, Dict, Union +from typing import Any, ClassVar, Dict, Optional, Union from typing import Optional, Set from typing_extensions import Self @@ -26,8 +26,8 @@ class BetaUserServiceSetMetadataEntry(BaseModel): """ BetaUserServiceSetMetadataEntry """ # noqa: E501 - key: StrictStr - value: Union[StrictBytes, StrictStr] + key: Optional[StrictStr] = None + value: Optional[Union[StrictBytes, StrictStr]] = None __properties: ClassVar[List[str]] = ["key", "value"] model_config = ConfigDict( diff --git a/zitadel_client/models/beta_user_service_set_password_request.py b/zitadel_client/models/beta_user_service_set_password_request.py index 069b63c..d6013f8 100644 --- a/zitadel_client/models/beta_user_service_set_password_request.py +++ b/zitadel_client/models/beta_user_service_set_password_request.py @@ -27,7 +27,7 @@ class BetaUserServiceSetPasswordRequest(BaseModel): """ BetaUserServiceSetPasswordRequest """ # noqa: E501 - user_id: StrictStr = Field(alias="userId") + user_id: Optional[StrictStr] = Field(default=None, alias="userId") new_password: Optional[BetaUserServicePassword] = Field(default=None, alias="newPassword") current_password: Optional[StrictStr] = Field(default=None, alias="currentPassword") verification_code: Optional[StrictStr] = Field(default=None, alias="verificationCode") diff --git a/zitadel_client/models/beta_user_service_set_phone_request.py b/zitadel_client/models/beta_user_service_set_phone_request.py index df32633..6b472ac 100644 --- a/zitadel_client/models/beta_user_service_set_phone_request.py +++ b/zitadel_client/models/beta_user_service_set_phone_request.py @@ -26,8 +26,8 @@ class BetaUserServiceSetPhoneRequest(BaseModel): """ BetaUserServiceSetPhoneRequest """ # noqa: E501 - user_id: StrictStr = Field(alias="userId") - phone: StrictStr + user_id: Optional[StrictStr] = Field(default=None, alias="userId") + phone: Optional[StrictStr] = None is_verified: Optional[StrictBool] = Field(default=None, alias="isVerified") return_code: Optional[Dict[str, Any]] = Field(default=None, alias="returnCode") send_code: Optional[Dict[str, Any]] = Field(default=None, alias="sendCode") diff --git a/zitadel_client/models/beta_user_service_state_query.py b/zitadel_client/models/beta_user_service_state_query.py index b0134e8..5ac2056 100644 --- a/zitadel_client/models/beta_user_service_state_query.py +++ b/zitadel_client/models/beta_user_service_state_query.py @@ -18,7 +18,7 @@ import json from pydantic import BaseModel, ConfigDict -from typing import Any, ClassVar, Dict +from typing import Any, ClassVar, Dict, Optional from zitadel_client.models.beta_user_service_user_state import BetaUserServiceUserState from typing import Optional, Set from typing_extensions import Self @@ -27,7 +27,7 @@ class BetaUserServiceStateQuery(BaseModel): """ Query for users with a specific state. """ # noqa: E501 - state: BetaUserServiceUserState + state: Optional[BetaUserServiceUserState] = None __properties: ClassVar[List[str]] = ["state"] model_config = ConfigDict( diff --git a/zitadel_client/models/beta_user_service_type_query.py b/zitadel_client/models/beta_user_service_type_query.py index 3a07625..e263355 100644 --- a/zitadel_client/models/beta_user_service_type_query.py +++ b/zitadel_client/models/beta_user_service_type_query.py @@ -18,7 +18,7 @@ import json from pydantic import BaseModel, ConfigDict -from typing import Any, ClassVar, Dict +from typing import Any, ClassVar, Dict, Optional from zitadel_client.models.beta_user_service_type import BetaUserServiceType from typing import Optional, Set from typing_extensions import Self @@ -27,7 +27,7 @@ class BetaUserServiceTypeQuery(BaseModel): """ Query for users with a specific type. """ # noqa: E501 - type: BetaUserServiceType + type: Optional[BetaUserServiceType] = None __properties: ClassVar[List[str]] = ["type"] model_config = ConfigDict( diff --git a/zitadel_client/models/beta_user_service_unlock_user_request.py b/zitadel_client/models/beta_user_service_unlock_user_request.py index 9392451..6f034d4 100644 --- a/zitadel_client/models/beta_user_service_unlock_user_request.py +++ b/zitadel_client/models/beta_user_service_unlock_user_request.py @@ -18,7 +18,7 @@ import json from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict +from typing import Any, ClassVar, Dict, Optional from typing import Optional, Set from typing_extensions import Self @@ -26,7 +26,7 @@ class BetaUserServiceUnlockUserRequest(BaseModel): """ BetaUserServiceUnlockUserRequest """ # noqa: E501 - user_id: StrictStr = Field(alias="userId") + user_id: Optional[StrictStr] = Field(default=None, alias="userId") __properties: ClassVar[List[str]] = ["userId"] model_config = ConfigDict( diff --git a/zitadel_client/models/beta_user_service_user_name_query.py b/zitadel_client/models/beta_user_service_user_name_query.py index 0c862a2..5e3a745 100644 --- a/zitadel_client/models/beta_user_service_user_name_query.py +++ b/zitadel_client/models/beta_user_service_user_name_query.py @@ -27,7 +27,7 @@ class BetaUserServiceUserNameQuery(BaseModel): """ Query for users with a specific user name. """ # noqa: E501 - user_name: StrictStr = Field(alias="userName") + user_name: Optional[StrictStr] = Field(default=None, alias="userName") method: Optional[BetaUserServiceTextQueryMethod] = None __properties: ClassVar[List[str]] = ["userName", "method"] diff --git a/zitadel_client/models/beta_user_service_verify_email_request.py b/zitadel_client/models/beta_user_service_verify_email_request.py index a6e9f6f..a8fc4fb 100644 --- a/zitadel_client/models/beta_user_service_verify_email_request.py +++ b/zitadel_client/models/beta_user_service_verify_email_request.py @@ -18,7 +18,7 @@ import json from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict +from typing import Any, ClassVar, Dict, Optional from typing import Optional, Set from typing_extensions import Self @@ -26,8 +26,8 @@ class BetaUserServiceVerifyEmailRequest(BaseModel): """ BetaUserServiceVerifyEmailRequest """ # noqa: E501 - user_id: StrictStr = Field(alias="userId") - verification_code: StrictStr = Field(alias="verificationCode") + user_id: Optional[StrictStr] = Field(default=None, alias="userId") + verification_code: Optional[StrictStr] = Field(default=None, alias="verificationCode") __properties: ClassVar[List[str]] = ["userId", "verificationCode"] model_config = ConfigDict( diff --git a/zitadel_client/models/beta_user_service_verify_passkey_registration_request.py b/zitadel_client/models/beta_user_service_verify_passkey_registration_request.py index daf9dca..9fa629e 100644 --- a/zitadel_client/models/beta_user_service_verify_passkey_registration_request.py +++ b/zitadel_client/models/beta_user_service_verify_passkey_registration_request.py @@ -18,7 +18,7 @@ import json from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict +from typing import Any, ClassVar, Dict, Optional from typing import Optional, Set from typing_extensions import Self @@ -26,10 +26,10 @@ class BetaUserServiceVerifyPasskeyRegistrationRequest(BaseModel): """ BetaUserServiceVerifyPasskeyRegistrationRequest """ # noqa: E501 - user_id: StrictStr = Field(alias="userId") - passkey_id: StrictStr = Field(alias="passkeyId") - public_key_credential: Dict[str, Any] = Field(description="`Struct` represents a structured data value, consisting of fields which map to dynamically typed values. In some languages, `Struct` might be supported by a native representation. For example, in scripting languages like JS a struct is represented as an object. The details of that representation are described together with the proto support for the language. The JSON representation for `Struct` is JSON object.", alias="publicKeyCredential") - passkey_name: StrictStr = Field(alias="passkeyName") + user_id: Optional[StrictStr] = Field(default=None, alias="userId") + passkey_id: Optional[StrictStr] = Field(default=None, alias="passkeyId") + public_key_credential: Optional[Dict[str, Any]] = Field(default=None, description="`Struct` represents a structured data value, consisting of fields which map to dynamically typed values. In some languages, `Struct` might be supported by a native representation. For example, in scripting languages like JS a struct is represented as an object. The details of that representation are described together with the proto support for the language. The JSON representation for `Struct` is JSON object.", alias="publicKeyCredential") + passkey_name: Optional[StrictStr] = Field(default=None, alias="passkeyName") __properties: ClassVar[List[str]] = ["userId", "passkeyId", "publicKeyCredential", "passkeyName"] model_config = ConfigDict( diff --git a/zitadel_client/models/beta_user_service_verify_phone_request.py b/zitadel_client/models/beta_user_service_verify_phone_request.py index 539db5b..6bddf6d 100644 --- a/zitadel_client/models/beta_user_service_verify_phone_request.py +++ b/zitadel_client/models/beta_user_service_verify_phone_request.py @@ -18,7 +18,7 @@ import json from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict +from typing import Any, ClassVar, Dict, Optional from typing import Optional, Set from typing_extensions import Self @@ -26,8 +26,8 @@ class BetaUserServiceVerifyPhoneRequest(BaseModel): """ BetaUserServiceVerifyPhoneRequest """ # noqa: E501 - user_id: StrictStr = Field(alias="userId") - verification_code: StrictStr = Field(alias="verificationCode") + user_id: Optional[StrictStr] = Field(default=None, alias="userId") + verification_code: Optional[StrictStr] = Field(default=None, alias="verificationCode") __properties: ClassVar[List[str]] = ["userId", "verificationCode"] model_config = ConfigDict( diff --git a/zitadel_client/models/beta_user_service_verify_totp_registration_request.py b/zitadel_client/models/beta_user_service_verify_totp_registration_request.py index c982490..38b8148 100644 --- a/zitadel_client/models/beta_user_service_verify_totp_registration_request.py +++ b/zitadel_client/models/beta_user_service_verify_totp_registration_request.py @@ -18,7 +18,7 @@ import json from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict +from typing import Any, ClassVar, Dict, Optional from typing import Optional, Set from typing_extensions import Self @@ -26,8 +26,8 @@ class BetaUserServiceVerifyTOTPRegistrationRequest(BaseModel): """ BetaUserServiceVerifyTOTPRegistrationRequest """ # noqa: E501 - user_id: StrictStr = Field(alias="userId") - code: StrictStr + user_id: Optional[StrictStr] = Field(default=None, alias="userId") + code: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["userId", "code"] model_config = ConfigDict( diff --git a/zitadel_client/models/beta_user_service_verify_u2_f_registration_request.py b/zitadel_client/models/beta_user_service_verify_u2_f_registration_request.py index 45048b5..af1d31e 100644 --- a/zitadel_client/models/beta_user_service_verify_u2_f_registration_request.py +++ b/zitadel_client/models/beta_user_service_verify_u2_f_registration_request.py @@ -18,7 +18,7 @@ import json from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict +from typing import Any, ClassVar, Dict, Optional from typing import Optional, Set from typing_extensions import Self @@ -26,10 +26,10 @@ class BetaUserServiceVerifyU2FRegistrationRequest(BaseModel): """ BetaUserServiceVerifyU2FRegistrationRequest """ # noqa: E501 - user_id: StrictStr = Field(alias="userId") - u2f_id: StrictStr = Field(alias="u2fId") - public_key_credential: Dict[str, Any] = Field(description="`Struct` represents a structured data value, consisting of fields which map to dynamically typed values. In some languages, `Struct` might be supported by a native representation. For example, in scripting languages like JS a struct is represented as an object. The details of that representation are described together with the proto support for the language. The JSON representation for `Struct` is JSON object.", alias="publicKeyCredential") - token_name: StrictStr = Field(alias="tokenName") + user_id: Optional[StrictStr] = Field(default=None, alias="userId") + u2f_id: Optional[StrictStr] = Field(default=None, alias="u2fId") + public_key_credential: Optional[Dict[str, Any]] = Field(default=None, description="`Struct` represents a structured data value, consisting of fields which map to dynamically typed values. In some languages, `Struct` might be supported by a native representation. For example, in scripting languages like JS a struct is represented as an object. The details of that representation are described together with the proto support for the language. The JSON representation for `Struct` is JSON object.", alias="publicKeyCredential") + token_name: Optional[StrictStr] = Field(default=None, alias="tokenName") __properties: ClassVar[List[str]] = ["userId", "u2fId", "publicKeyCredential", "tokenName"] model_config = ConfigDict( diff --git a/zitadel_client/models/beta_web_key_service_activate_web_key_request.py b/zitadel_client/models/beta_web_key_service_activate_web_key_request.py index 3c12563..3c3224b 100644 --- a/zitadel_client/models/beta_web_key_service_activate_web_key_request.py +++ b/zitadel_client/models/beta_web_key_service_activate_web_key_request.py @@ -18,7 +18,7 @@ import json from pydantic import BaseModel, ConfigDict, StrictStr -from typing import Any, ClassVar, Dict +from typing import Any, ClassVar, Dict, Optional from typing import Optional, Set from typing_extensions import Self @@ -26,7 +26,7 @@ class BetaWebKeyServiceActivateWebKeyRequest(BaseModel): """ BetaWebKeyServiceActivateWebKeyRequest """ # noqa: E501 - id: StrictStr + id: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["id"] model_config = ConfigDict( diff --git a/zitadel_client/models/beta_web_key_service_any.py b/zitadel_client/models/beta_web_key_service_any.py index 1a46b99..021bf9c 100644 --- a/zitadel_client/models/beta_web_key_service_any.py +++ b/zitadel_client/models/beta_web_key_service_any.py @@ -17,18 +17,18 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, StrictBytes, StrictStr +from pydantic import BaseModel, ConfigDict, Field, StrictBytes, StrictStr from typing import Any, ClassVar, Dict, List, Optional, Tuple, Union from typing import Optional, Set from typing_extensions import Self class BetaWebKeyServiceAny(BaseModel): """ - Contains an arbitrary serialized message along with a @type that describes the type of the serialized message. + Contains an arbitrary serialized message along with a @type that describes the type of the serialized message, with an additional debug field for ConnectRPC error details. """ # noqa: E501 - type: Optional[StrictStr] = None - value: Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]] = None - debug: Optional[Dict[str, Any]] = None + type: Optional[StrictStr] = Field(default=None, description="A URL that acts as a globally unique identifier for the type of the serialized message. For example: `type.googleapis.com/google.rpc.ErrorInfo`. This is used to determine the schema of the data in the `value` field and is the discriminator for the `debug` field.") + value: Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]] = Field(default=None, description="The Protobuf message, serialized as bytes and base64-encoded. The specific message type is identified by the `type` field.") + debug: Optional[Any] = Field(default=None, description="Deserialized error detail payload. The 'type' field indicates the schema. This field is for easier debugging and should not be relied upon for application logic.") additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["type", "value", "debug"] @@ -78,6 +78,11 @@ def to_dict(self) -> Dict[str, Any]: for _key, _value in self.additional_properties.items(): _dict[_key] = _value + # set to None if debug (nullable) is None + # and model_fields_set contains the field + if self.debug is None and "debug" in self.model_fields_set: + _dict['debug'] = None + return _dict @classmethod diff --git a/zitadel_client/models/beta_web_key_service_connect_error.py b/zitadel_client/models/beta_web_key_service_connect_error.py index 236f723..364cc5c 100644 --- a/zitadel_client/models/beta_web_key_service_connect_error.py +++ b/zitadel_client/models/beta_web_key_service_connect_error.py @@ -29,9 +29,9 @@ class BetaWebKeyServiceConnectError(BaseModel): """ # noqa: E501 code: Optional[StrictStr] = Field(default=None, description="The status code, which should be an enum value of [google.rpc.Code][google.rpc.Code].") message: Optional[StrictStr] = Field(default=None, description="A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the [google.rpc.Status.details][google.rpc.Status.details] field, or localized by the client.") - detail: Optional[BetaWebKeyServiceAny] = None + details: Optional[List[BetaWebKeyServiceAny]] = Field(default=None, description="A list of messages that carry the error details. There is no limit on the number of messages.") additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["code", "message", "detail"] + __properties: ClassVar[List[str]] = ["code", "message", "details"] @field_validator('code') def code_validate_enum(cls, value): @@ -84,9 +84,13 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # override the default output from pydantic by calling `to_dict()` of detail - if self.detail: - _dict['detail'] = self.detail.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in details (list) + _items = [] + if self.details: + for _item_details in self.details: + if _item_details: + _items.append(_item_details.to_dict()) + _dict['details'] = _items # puts key-value pairs in additional_properties in the top level if self.additional_properties is not None: for _key, _value in self.additional_properties.items(): @@ -106,7 +110,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "code": obj.get("code"), "message": obj.get("message"), - "detail": BetaWebKeyServiceAny.from_dict(obj["detail"]) if obj.get("detail") is not None else None + "details": [BetaWebKeyServiceAny.from_dict(_item) for _item in obj["details"]] if obj.get("details") is not None else None }) # store additional fields in additional_properties for _key in obj.keys(): diff --git a/zitadel_client/models/beta_web_key_service_delete_web_key_request.py b/zitadel_client/models/beta_web_key_service_delete_web_key_request.py index 222b5d4..bc1bc8f 100644 --- a/zitadel_client/models/beta_web_key_service_delete_web_key_request.py +++ b/zitadel_client/models/beta_web_key_service_delete_web_key_request.py @@ -18,7 +18,7 @@ import json from pydantic import BaseModel, ConfigDict, StrictStr -from typing import Any, ClassVar, Dict +from typing import Any, ClassVar, Dict, Optional from typing import Optional, Set from typing_extensions import Self @@ -26,7 +26,7 @@ class BetaWebKeyServiceDeleteWebKeyRequest(BaseModel): """ BetaWebKeyServiceDeleteWebKeyRequest """ # noqa: E501 - id: StrictStr + id: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["id"] model_config = ConfigDict( diff --git a/zitadel_client/models/feature_service_any.py b/zitadel_client/models/feature_service_any.py index cc5185e..1b436a5 100644 --- a/zitadel_client/models/feature_service_any.py +++ b/zitadel_client/models/feature_service_any.py @@ -17,18 +17,18 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, StrictBytes, StrictStr +from pydantic import BaseModel, ConfigDict, Field, StrictBytes, StrictStr from typing import Any, ClassVar, Dict, List, Optional, Tuple, Union from typing import Optional, Set from typing_extensions import Self class FeatureServiceAny(BaseModel): """ - Contains an arbitrary serialized message along with a @type that describes the type of the serialized message. + Contains an arbitrary serialized message along with a @type that describes the type of the serialized message, with an additional debug field for ConnectRPC error details. """ # noqa: E501 - type: Optional[StrictStr] = None - value: Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]] = None - debug: Optional[Dict[str, Any]] = None + type: Optional[StrictStr] = Field(default=None, description="A URL that acts as a globally unique identifier for the type of the serialized message. For example: `type.googleapis.com/google.rpc.ErrorInfo`. This is used to determine the schema of the data in the `value` field and is the discriminator for the `debug` field.") + value: Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]] = Field(default=None, description="The Protobuf message, serialized as bytes and base64-encoded. The specific message type is identified by the `type` field.") + debug: Optional[Any] = Field(default=None, description="Deserialized error detail payload. The 'type' field indicates the schema. This field is for easier debugging and should not be relied upon for application logic.") additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["type", "value", "debug"] @@ -78,6 +78,11 @@ def to_dict(self) -> Dict[str, Any]: for _key, _value in self.additional_properties.items(): _dict[_key] = _value + # set to None if debug (nullable) is None + # and model_fields_set contains the field + if self.debug is None and "debug" in self.model_fields_set: + _dict['debug'] = None + return _dict @classmethod diff --git a/zitadel_client/models/feature_service_connect_error.py b/zitadel_client/models/feature_service_connect_error.py index b0b7572..f8cfefc 100644 --- a/zitadel_client/models/feature_service_connect_error.py +++ b/zitadel_client/models/feature_service_connect_error.py @@ -29,9 +29,9 @@ class FeatureServiceConnectError(BaseModel): """ # noqa: E501 code: Optional[StrictStr] = Field(default=None, description="The status code, which should be an enum value of [google.rpc.Code][google.rpc.Code].") message: Optional[StrictStr] = Field(default=None, description="A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the [google.rpc.Status.details][google.rpc.Status.details] field, or localized by the client.") - detail: Optional[FeatureServiceAny] = None + details: Optional[List[FeatureServiceAny]] = Field(default=None, description="A list of messages that carry the error details. There is no limit on the number of messages.") additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["code", "message", "detail"] + __properties: ClassVar[List[str]] = ["code", "message", "details"] @field_validator('code') def code_validate_enum(cls, value): @@ -84,9 +84,13 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # override the default output from pydantic by calling `to_dict()` of detail - if self.detail: - _dict['detail'] = self.detail.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in details (list) + _items = [] + if self.details: + for _item_details in self.details: + if _item_details: + _items.append(_item_details.to_dict()) + _dict['details'] = _items # puts key-value pairs in additional_properties in the top level if self.additional_properties is not None: for _key, _value in self.additional_properties.items(): @@ -106,7 +110,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "code": obj.get("code"), "message": obj.get("message"), - "detail": FeatureServiceAny.from_dict(obj["detail"]) if obj.get("detail") is not None else None + "details": [FeatureServiceAny.from_dict(_item) for _item in obj["details"]] if obj.get("details") is not None else None }) # store additional fields in additional_properties for _key in obj.keys(): diff --git a/zitadel_client/models/identity_provider_service_any.py b/zitadel_client/models/identity_provider_service_any.py index 3a0a542..c4dedc3 100644 --- a/zitadel_client/models/identity_provider_service_any.py +++ b/zitadel_client/models/identity_provider_service_any.py @@ -17,18 +17,18 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, StrictBytes, StrictStr +from pydantic import BaseModel, ConfigDict, Field, StrictBytes, StrictStr from typing import Any, ClassVar, Dict, List, Optional, Tuple, Union from typing import Optional, Set from typing_extensions import Self class IdentityProviderServiceAny(BaseModel): """ - Contains an arbitrary serialized message along with a @type that describes the type of the serialized message. + Contains an arbitrary serialized message along with a @type that describes the type of the serialized message, with an additional debug field for ConnectRPC error details. """ # noqa: E501 - type: Optional[StrictStr] = None - value: Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]] = None - debug: Optional[Dict[str, Any]] = None + type: Optional[StrictStr] = Field(default=None, description="A URL that acts as a globally unique identifier for the type of the serialized message. For example: `type.googleapis.com/google.rpc.ErrorInfo`. This is used to determine the schema of the data in the `value` field and is the discriminator for the `debug` field.") + value: Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]] = Field(default=None, description="The Protobuf message, serialized as bytes and base64-encoded. The specific message type is identified by the `type` field.") + debug: Optional[Any] = Field(default=None, description="Deserialized error detail payload. The 'type' field indicates the schema. This field is for easier debugging and should not be relied upon for application logic.") additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["type", "value", "debug"] @@ -78,6 +78,11 @@ def to_dict(self) -> Dict[str, Any]: for _key, _value in self.additional_properties.items(): _dict[_key] = _value + # set to None if debug (nullable) is None + # and model_fields_set contains the field + if self.debug is None and "debug" in self.model_fields_set: + _dict['debug'] = None + return _dict @classmethod diff --git a/zitadel_client/models/identity_provider_service_connect_error.py b/zitadel_client/models/identity_provider_service_connect_error.py index 8b08ba1..7d83ad1 100644 --- a/zitadel_client/models/identity_provider_service_connect_error.py +++ b/zitadel_client/models/identity_provider_service_connect_error.py @@ -29,9 +29,9 @@ class IdentityProviderServiceConnectError(BaseModel): """ # noqa: E501 code: Optional[StrictStr] = Field(default=None, description="The status code, which should be an enum value of [google.rpc.Code][google.rpc.Code].") message: Optional[StrictStr] = Field(default=None, description="A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the [google.rpc.Status.details][google.rpc.Status.details] field, or localized by the client.") - detail: Optional[IdentityProviderServiceAny] = None + details: Optional[List[IdentityProviderServiceAny]] = Field(default=None, description="A list of messages that carry the error details. There is no limit on the number of messages.") additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["code", "message", "detail"] + __properties: ClassVar[List[str]] = ["code", "message", "details"] @field_validator('code') def code_validate_enum(cls, value): @@ -84,9 +84,13 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # override the default output from pydantic by calling `to_dict()` of detail - if self.detail: - _dict['detail'] = self.detail.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in details (list) + _items = [] + if self.details: + for _item_details in self.details: + if _item_details: + _items.append(_item_details.to_dict()) + _dict['details'] = _items # puts key-value pairs in additional_properties in the top level if self.additional_properties is not None: for _key, _value in self.additional_properties.items(): @@ -106,7 +110,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "code": obj.get("code"), "message": obj.get("message"), - "detail": IdentityProviderServiceAny.from_dict(obj["detail"]) if obj.get("detail") is not None else None + "details": [IdentityProviderServiceAny.from_dict(_item) for _item in obj["details"]] if obj.get("details") is not None else None }) # store additional fields in additional_properties for _key in obj.keys(): diff --git a/zitadel_client/models/oidc_service_any.py b/zitadel_client/models/oidc_service_any.py index 313763d..0157751 100644 --- a/zitadel_client/models/oidc_service_any.py +++ b/zitadel_client/models/oidc_service_any.py @@ -17,18 +17,18 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, StrictBytes, StrictStr +from pydantic import BaseModel, ConfigDict, Field, StrictBytes, StrictStr from typing import Any, ClassVar, Dict, List, Optional, Tuple, Union from typing import Optional, Set from typing_extensions import Self class OIDCServiceAny(BaseModel): """ - Contains an arbitrary serialized message along with a @type that describes the type of the serialized message. + Contains an arbitrary serialized message along with a @type that describes the type of the serialized message, with an additional debug field for ConnectRPC error details. """ # noqa: E501 - type: Optional[StrictStr] = None - value: Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]] = None - debug: Optional[Dict[str, Any]] = None + type: Optional[StrictStr] = Field(default=None, description="A URL that acts as a globally unique identifier for the type of the serialized message. For example: `type.googleapis.com/google.rpc.ErrorInfo`. This is used to determine the schema of the data in the `value` field and is the discriminator for the `debug` field.") + value: Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]] = Field(default=None, description="The Protobuf message, serialized as bytes and base64-encoded. The specific message type is identified by the `type` field.") + debug: Optional[Any] = Field(default=None, description="Deserialized error detail payload. The 'type' field indicates the schema. This field is for easier debugging and should not be relied upon for application logic.") additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["type", "value", "debug"] @@ -78,6 +78,11 @@ def to_dict(self) -> Dict[str, Any]: for _key, _value in self.additional_properties.items(): _dict[_key] = _value + # set to None if debug (nullable) is None + # and model_fields_set contains the field + if self.debug is None and "debug" in self.model_fields_set: + _dict['debug'] = None + return _dict @classmethod diff --git a/zitadel_client/models/oidc_service_connect_error.py b/zitadel_client/models/oidc_service_connect_error.py index 3845181..b3e8739 100644 --- a/zitadel_client/models/oidc_service_connect_error.py +++ b/zitadel_client/models/oidc_service_connect_error.py @@ -29,9 +29,9 @@ class OIDCServiceConnectError(BaseModel): """ # noqa: E501 code: Optional[StrictStr] = Field(default=None, description="The status code, which should be an enum value of [google.rpc.Code][google.rpc.Code].") message: Optional[StrictStr] = Field(default=None, description="A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the [google.rpc.Status.details][google.rpc.Status.details] field, or localized by the client.") - detail: Optional[OIDCServiceAny] = None + details: Optional[List[OIDCServiceAny]] = Field(default=None, description="A list of messages that carry the error details. There is no limit on the number of messages.") additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["code", "message", "detail"] + __properties: ClassVar[List[str]] = ["code", "message", "details"] @field_validator('code') def code_validate_enum(cls, value): @@ -84,9 +84,13 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # override the default output from pydantic by calling `to_dict()` of detail - if self.detail: - _dict['detail'] = self.detail.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in details (list) + _items = [] + if self.details: + for _item_details in self.details: + if _item_details: + _items.append(_item_details.to_dict()) + _dict['details'] = _items # puts key-value pairs in additional_properties in the top level if self.additional_properties is not None: for _key, _value in self.additional_properties.items(): @@ -106,7 +110,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "code": obj.get("code"), "message": obj.get("message"), - "detail": OIDCServiceAny.from_dict(obj["detail"]) if obj.get("detail") is not None else None + "details": [OIDCServiceAny.from_dict(_item) for _item in obj["details"]] if obj.get("details") is not None else None }) # store additional fields in additional_properties for _key in obj.keys(): diff --git a/zitadel_client/models/organization_service_add_human_user_request.py b/zitadel_client/models/organization_service_add_human_user_request.py index 904a42a..fe84e96 100644 --- a/zitadel_client/models/organization_service_add_human_user_request.py +++ b/zitadel_client/models/organization_service_add_human_user_request.py @@ -37,8 +37,8 @@ class OrganizationServiceAddHumanUserRequest(BaseModel): user_id: Optional[StrictStr] = Field(default=None, description="optionally set your own id unique for the user.", alias="userId") username: Optional[StrictStr] = Field(default=None, description="optionally set a unique username, if none is provided the email will be used.") organization: Optional[OrganizationServiceOrganization] = None - profile: OrganizationServiceSetHumanProfile - email: OrganizationServiceSetHumanEmail + profile: Optional[OrganizationServiceSetHumanProfile] = None + email: Optional[OrganizationServiceSetHumanEmail] = None phone: Optional[OrganizationServiceSetHumanPhone] = None metadata: Optional[List[OrganizationServiceSetMetadataEntry]] = None idp_links: Optional[List[OrganizationServiceIDPLink]] = Field(default=None, alias="idpLinks") diff --git a/zitadel_client/models/organization_service_add_organization_request.py b/zitadel_client/models/organization_service_add_organization_request.py index 0e8c2b7..ea5e129 100644 --- a/zitadel_client/models/organization_service_add_organization_request.py +++ b/zitadel_client/models/organization_service_add_organization_request.py @@ -27,7 +27,7 @@ class OrganizationServiceAddOrganizationRequest(BaseModel): """ OrganizationServiceAddOrganizationRequest """ # noqa: E501 - name: StrictStr + name: Optional[StrictStr] = None admins: Optional[List[OrganizationServiceAdmin]] = None org_id: Optional[StrictStr] = Field(default=None, description="optionally set your own id unique for the organization.", alias="orgId") __properties: ClassVar[List[str]] = ["name", "admins", "orgId"] diff --git a/zitadel_client/models/organization_service_any.py b/zitadel_client/models/organization_service_any.py index b36faf0..e802940 100644 --- a/zitadel_client/models/organization_service_any.py +++ b/zitadel_client/models/organization_service_any.py @@ -17,18 +17,18 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, StrictBytes, StrictStr +from pydantic import BaseModel, ConfigDict, Field, StrictBytes, StrictStr from typing import Any, ClassVar, Dict, List, Optional, Tuple, Union from typing import Optional, Set from typing_extensions import Self class OrganizationServiceAny(BaseModel): """ - Contains an arbitrary serialized message along with a @type that describes the type of the serialized message. + Contains an arbitrary serialized message along with a @type that describes the type of the serialized message, with an additional debug field for ConnectRPC error details. """ # noqa: E501 - type: Optional[StrictStr] = None - value: Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]] = None - debug: Optional[Dict[str, Any]] = None + type: Optional[StrictStr] = Field(default=None, description="A URL that acts as a globally unique identifier for the type of the serialized message. For example: `type.googleapis.com/google.rpc.ErrorInfo`. This is used to determine the schema of the data in the `value` field and is the discriminator for the `debug` field.") + value: Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]] = Field(default=None, description="The Protobuf message, serialized as bytes and base64-encoded. The specific message type is identified by the `type` field.") + debug: Optional[Any] = Field(default=None, description="Deserialized error detail payload. The 'type' field indicates the schema. This field is for easier debugging and should not be relied upon for application logic.") additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["type", "value", "debug"] @@ -78,6 +78,11 @@ def to_dict(self) -> Dict[str, Any]: for _key, _value in self.additional_properties.items(): _dict[_key] = _value + # set to None if debug (nullable) is None + # and model_fields_set contains the field + if self.debug is None and "debug" in self.model_fields_set: + _dict['debug'] = None + return _dict @classmethod diff --git a/zitadel_client/models/organization_service_connect_error.py b/zitadel_client/models/organization_service_connect_error.py index 9069f74..4b441b8 100644 --- a/zitadel_client/models/organization_service_connect_error.py +++ b/zitadel_client/models/organization_service_connect_error.py @@ -29,9 +29,9 @@ class OrganizationServiceConnectError(BaseModel): """ # noqa: E501 code: Optional[StrictStr] = Field(default=None, description="The status code, which should be an enum value of [google.rpc.Code][google.rpc.Code].") message: Optional[StrictStr] = Field(default=None, description="A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the [google.rpc.Status.details][google.rpc.Status.details] field, or localized by the client.") - detail: Optional[OrganizationServiceAny] = None + details: Optional[List[OrganizationServiceAny]] = Field(default=None, description="A list of messages that carry the error details. There is no limit on the number of messages.") additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["code", "message", "detail"] + __properties: ClassVar[List[str]] = ["code", "message", "details"] @field_validator('code') def code_validate_enum(cls, value): @@ -84,9 +84,13 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # override the default output from pydantic by calling `to_dict()` of detail - if self.detail: - _dict['detail'] = self.detail.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in details (list) + _items = [] + if self.details: + for _item_details in self.details: + if _item_details: + _items.append(_item_details.to_dict()) + _dict['details'] = _items # puts key-value pairs in additional_properties in the top level if self.additional_properties is not None: for _key, _value in self.additional_properties.items(): @@ -106,7 +110,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "code": obj.get("code"), "message": obj.get("message"), - "detail": OrganizationServiceAny.from_dict(obj["detail"]) if obj.get("detail") is not None else None + "details": [OrganizationServiceAny.from_dict(_item) for _item in obj["details"]] if obj.get("details") is not None else None }) # store additional fields in additional_properties for _key in obj.keys(): diff --git a/zitadel_client/models/organization_service_hashed_password.py b/zitadel_client/models/organization_service_hashed_password.py index 4d0d1e9..5e56b84 100644 --- a/zitadel_client/models/organization_service_hashed_password.py +++ b/zitadel_client/models/organization_service_hashed_password.py @@ -26,7 +26,7 @@ class OrganizationServiceHashedPassword(BaseModel): """ OrganizationServiceHashedPassword """ # noqa: E501 - hash: StrictStr + hash: Optional[StrictStr] = None change_required: Optional[StrictBool] = Field(default=None, alias="changeRequired") __properties: ClassVar[List[str]] = ["hash", "changeRequired"] diff --git a/zitadel_client/models/organization_service_organization_domain_query.py b/zitadel_client/models/organization_service_organization_domain_query.py index 109f89e..3be23cf 100644 --- a/zitadel_client/models/organization_service_organization_domain_query.py +++ b/zitadel_client/models/organization_service_organization_domain_query.py @@ -27,7 +27,7 @@ class OrganizationServiceOrganizationDomainQuery(BaseModel): """ OrganizationServiceOrganizationDomainQuery """ # noqa: E501 - domain: StrictStr = Field(description="Domain used in organization, not necessary primary domain.") + domain: Optional[StrictStr] = Field(default=None, description="Domain used in organization, not necessary primary domain.") method: Optional[OrganizationServiceTextQueryMethod] = None __properties: ClassVar[List[str]] = ["domain", "method"] diff --git a/zitadel_client/models/organization_service_organization_id_query.py b/zitadel_client/models/organization_service_organization_id_query.py index 257a639..61b1c8b 100644 --- a/zitadel_client/models/organization_service_organization_id_query.py +++ b/zitadel_client/models/organization_service_organization_id_query.py @@ -18,7 +18,7 @@ import json from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict +from typing import Any, ClassVar, Dict, Optional from typing import Optional, Set from typing_extensions import Self @@ -26,7 +26,7 @@ class OrganizationServiceOrganizationIDQuery(BaseModel): """ OrganizationServiceOrganizationIDQuery """ # noqa: E501 - id: StrictStr = Field(description="Unique identifier of the organization.") + id: Optional[StrictStr] = Field(default=None, description="Unique identifier of the organization.") __properties: ClassVar[List[str]] = ["id"] model_config = ConfigDict( diff --git a/zitadel_client/models/organization_service_organization_name_query.py b/zitadel_client/models/organization_service_organization_name_query.py index 344272b..d6b88c5 100644 --- a/zitadel_client/models/organization_service_organization_name_query.py +++ b/zitadel_client/models/organization_service_organization_name_query.py @@ -27,7 +27,7 @@ class OrganizationServiceOrganizationNameQuery(BaseModel): """ OrganizationServiceOrganizationNameQuery """ # noqa: E501 - name: StrictStr = Field(description="Name of the organization.") + name: Optional[StrictStr] = Field(default=None, description="Name of the organization.") method: Optional[OrganizationServiceTextQueryMethod] = None __properties: ClassVar[List[str]] = ["name", "method"] diff --git a/zitadel_client/models/organization_service_password.py b/zitadel_client/models/organization_service_password.py index a68d9e5..25a8898 100644 --- a/zitadel_client/models/organization_service_password.py +++ b/zitadel_client/models/organization_service_password.py @@ -26,7 +26,7 @@ class OrganizationServicePassword(BaseModel): """ OrganizationServicePassword """ # noqa: E501 - password: StrictStr + password: Optional[StrictStr] = None change_required: Optional[StrictBool] = Field(default=None, alias="changeRequired") __properties: ClassVar[List[str]] = ["password", "changeRequired"] diff --git a/zitadel_client/models/organization_service_set_human_email.py b/zitadel_client/models/organization_service_set_human_email.py index 14e8750..844df13 100644 --- a/zitadel_client/models/organization_service_set_human_email.py +++ b/zitadel_client/models/organization_service_set_human_email.py @@ -27,7 +27,7 @@ class OrganizationServiceSetHumanEmail(BaseModel): """ OrganizationServiceSetHumanEmail """ # noqa: E501 - email: StrictStr + email: Optional[StrictStr] = None is_verified: Optional[StrictBool] = Field(default=None, alias="isVerified") return_code: Optional[Dict[str, Any]] = Field(default=None, alias="returnCode") send_code: Optional[OrganizationServiceSendEmailVerificationCode] = Field(default=None, alias="sendCode") diff --git a/zitadel_client/models/organization_service_set_human_profile.py b/zitadel_client/models/organization_service_set_human_profile.py index a956dec..0119db2 100644 --- a/zitadel_client/models/organization_service_set_human_profile.py +++ b/zitadel_client/models/organization_service_set_human_profile.py @@ -27,8 +27,8 @@ class OrganizationServiceSetHumanProfile(BaseModel): """ OrganizationServiceSetHumanProfile """ # noqa: E501 - given_name: StrictStr = Field(alias="givenName") - family_name: StrictStr = Field(alias="familyName") + given_name: Optional[StrictStr] = Field(default=None, alias="givenName") + family_name: Optional[StrictStr] = Field(default=None, alias="familyName") nick_name: Optional[StrictStr] = Field(default=None, alias="nickName") display_name: Optional[StrictStr] = Field(default=None, alias="displayName") preferred_language: Optional[StrictStr] = Field(default=None, alias="preferredLanguage") diff --git a/zitadel_client/models/organization_service_set_metadata_entry.py b/zitadel_client/models/organization_service_set_metadata_entry.py index 9195f62..5628533 100644 --- a/zitadel_client/models/organization_service_set_metadata_entry.py +++ b/zitadel_client/models/organization_service_set_metadata_entry.py @@ -18,7 +18,7 @@ import json from pydantic import BaseModel, ConfigDict, StrictBytes, StrictStr -from typing import Any, ClassVar, Dict, Union +from typing import Any, ClassVar, Dict, Optional, Union from typing import Optional, Set from typing_extensions import Self @@ -26,8 +26,8 @@ class OrganizationServiceSetMetadataEntry(BaseModel): """ OrganizationServiceSetMetadataEntry """ # noqa: E501 - key: StrictStr - value: Union[StrictBytes, StrictStr] + key: Optional[StrictStr] = None + value: Optional[Union[StrictBytes, StrictStr]] = None __properties: ClassVar[List[str]] = ["key", "value"] model_config = ConfigDict( diff --git a/zitadel_client/models/saml_service_any.py b/zitadel_client/models/saml_service_any.py index 57d20b3..7eeed48 100644 --- a/zitadel_client/models/saml_service_any.py +++ b/zitadel_client/models/saml_service_any.py @@ -17,18 +17,18 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, StrictBytes, StrictStr +from pydantic import BaseModel, ConfigDict, Field, StrictBytes, StrictStr from typing import Any, ClassVar, Dict, List, Optional, Tuple, Union from typing import Optional, Set from typing_extensions import Self class SAMLServiceAny(BaseModel): """ - Contains an arbitrary serialized message along with a @type that describes the type of the serialized message. + Contains an arbitrary serialized message along with a @type that describes the type of the serialized message, with an additional debug field for ConnectRPC error details. """ # noqa: E501 - type: Optional[StrictStr] = None - value: Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]] = None - debug: Optional[Dict[str, Any]] = None + type: Optional[StrictStr] = Field(default=None, description="A URL that acts as a globally unique identifier for the type of the serialized message. For example: `type.googleapis.com/google.rpc.ErrorInfo`. This is used to determine the schema of the data in the `value` field and is the discriminator for the `debug` field.") + value: Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]] = Field(default=None, description="The Protobuf message, serialized as bytes and base64-encoded. The specific message type is identified by the `type` field.") + debug: Optional[Any] = Field(default=None, description="Deserialized error detail payload. The 'type' field indicates the schema. This field is for easier debugging and should not be relied upon for application logic.") additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["type", "value", "debug"] @@ -78,6 +78,11 @@ def to_dict(self) -> Dict[str, Any]: for _key, _value in self.additional_properties.items(): _dict[_key] = _value + # set to None if debug (nullable) is None + # and model_fields_set contains the field + if self.debug is None and "debug" in self.model_fields_set: + _dict['debug'] = None + return _dict @classmethod diff --git a/zitadel_client/models/saml_service_connect_error.py b/zitadel_client/models/saml_service_connect_error.py index f6df900..c200a2c 100644 --- a/zitadel_client/models/saml_service_connect_error.py +++ b/zitadel_client/models/saml_service_connect_error.py @@ -29,9 +29,9 @@ class SAMLServiceConnectError(BaseModel): """ # noqa: E501 code: Optional[StrictStr] = Field(default=None, description="The status code, which should be an enum value of [google.rpc.Code][google.rpc.Code].") message: Optional[StrictStr] = Field(default=None, description="A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the [google.rpc.Status.details][google.rpc.Status.details] field, or localized by the client.") - detail: Optional[SAMLServiceAny] = None + details: Optional[List[SAMLServiceAny]] = Field(default=None, description="A list of messages that carry the error details. There is no limit on the number of messages.") additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["code", "message", "detail"] + __properties: ClassVar[List[str]] = ["code", "message", "details"] @field_validator('code') def code_validate_enum(cls, value): @@ -84,9 +84,13 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # override the default output from pydantic by calling `to_dict()` of detail - if self.detail: - _dict['detail'] = self.detail.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in details (list) + _items = [] + if self.details: + for _item_details in self.details: + if _item_details: + _items.append(_item_details.to_dict()) + _dict['details'] = _items # puts key-value pairs in additional_properties in the top level if self.additional_properties is not None: for _key, _value in self.additional_properties.items(): @@ -106,7 +110,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "code": obj.get("code"), "message": obj.get("message"), - "detail": SAMLServiceAny.from_dict(obj["detail"]) if obj.get("detail") is not None else None + "details": [SAMLServiceAny.from_dict(_item) for _item in obj["details"]] if obj.get("details") is not None else None }) # store additional fields in additional_properties for _key in obj.keys(): diff --git a/zitadel_client/models/session_service_any.py b/zitadel_client/models/session_service_any.py index c7a908c..6729ae3 100644 --- a/zitadel_client/models/session_service_any.py +++ b/zitadel_client/models/session_service_any.py @@ -17,18 +17,18 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, StrictBytes, StrictStr +from pydantic import BaseModel, ConfigDict, Field, StrictBytes, StrictStr from typing import Any, ClassVar, Dict, List, Optional, Tuple, Union from typing import Optional, Set from typing_extensions import Self class SessionServiceAny(BaseModel): """ - Contains an arbitrary serialized message along with a @type that describes the type of the serialized message. + Contains an arbitrary serialized message along with a @type that describes the type of the serialized message, with an additional debug field for ConnectRPC error details. """ # noqa: E501 - type: Optional[StrictStr] = None - value: Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]] = None - debug: Optional[Dict[str, Any]] = None + type: Optional[StrictStr] = Field(default=None, description="A URL that acts as a globally unique identifier for the type of the serialized message. For example: `type.googleapis.com/google.rpc.ErrorInfo`. This is used to determine the schema of the data in the `value` field and is the discriminator for the `debug` field.") + value: Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]] = Field(default=None, description="The Protobuf message, serialized as bytes and base64-encoded. The specific message type is identified by the `type` field.") + debug: Optional[Any] = Field(default=None, description="Deserialized error detail payload. The 'type' field indicates the schema. This field is for easier debugging and should not be relied upon for application logic.") additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["type", "value", "debug"] @@ -78,6 +78,11 @@ def to_dict(self) -> Dict[str, Any]: for _key, _value in self.additional_properties.items(): _dict[_key] = _value + # set to None if debug (nullable) is None + # and model_fields_set contains the field + if self.debug is None and "debug" in self.model_fields_set: + _dict['debug'] = None + return _dict @classmethod diff --git a/zitadel_client/models/session_service_check_web_auth_n.py b/zitadel_client/models/session_service_check_web_auth_n.py index 192be04..105df4e 100644 --- a/zitadel_client/models/session_service_check_web_auth_n.py +++ b/zitadel_client/models/session_service_check_web_auth_n.py @@ -18,7 +18,7 @@ import json from pydantic import BaseModel, ConfigDict, Field -from typing import Any, ClassVar, Dict +from typing import Any, ClassVar, Dict, Optional from typing import Optional, Set from typing_extensions import Self @@ -26,7 +26,7 @@ class SessionServiceCheckWebAuthN(BaseModel): """ SessionServiceCheckWebAuthN """ # noqa: E501 - credential_assertion_data: Dict[str, Any] = Field(description="`Struct` represents a structured data value, consisting of fields which map to dynamically typed values. In some languages, `Struct` might be supported by a native representation. For example, in scripting languages like JS a struct is represented as an object. The details of that representation are described together with the proto support for the language. The JSON representation for `Struct` is JSON object.", alias="credentialAssertionData") + credential_assertion_data: Optional[Dict[str, Any]] = Field(default=None, description="`Struct` represents a structured data value, consisting of fields which map to dynamically typed values. In some languages, `Struct` might be supported by a native representation. For example, in scripting languages like JS a struct is represented as an object. The details of that representation are described together with the proto support for the language. The JSON representation for `Struct` is JSON object.", alias="credentialAssertionData") __properties: ClassVar[List[str]] = ["credentialAssertionData"] model_config = ConfigDict( diff --git a/zitadel_client/models/session_service_connect_error.py b/zitadel_client/models/session_service_connect_error.py index 555aded..f515c7e 100644 --- a/zitadel_client/models/session_service_connect_error.py +++ b/zitadel_client/models/session_service_connect_error.py @@ -29,9 +29,9 @@ class SessionServiceConnectError(BaseModel): """ # noqa: E501 code: Optional[StrictStr] = Field(default=None, description="The status code, which should be an enum value of [google.rpc.Code][google.rpc.Code].") message: Optional[StrictStr] = Field(default=None, description="A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the [google.rpc.Status.details][google.rpc.Status.details] field, or localized by the client.") - detail: Optional[SessionServiceAny] = None + details: Optional[List[SessionServiceAny]] = Field(default=None, description="A list of messages that carry the error details. There is no limit on the number of messages.") additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["code", "message", "detail"] + __properties: ClassVar[List[str]] = ["code", "message", "details"] @field_validator('code') def code_validate_enum(cls, value): @@ -84,9 +84,13 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # override the default output from pydantic by calling `to_dict()` of detail - if self.detail: - _dict['detail'] = self.detail.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in details (list) + _items = [] + if self.details: + for _item_details in self.details: + if _item_details: + _items.append(_item_details.to_dict()) + _dict['details'] = _items # puts key-value pairs in additional_properties in the top level if self.additional_properties is not None: for _key, _value in self.additional_properties.items(): @@ -106,7 +110,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "code": obj.get("code"), "message": obj.get("message"), - "detail": SessionServiceAny.from_dict(obj["detail"]) if obj.get("detail") is not None else None + "details": [SessionServiceAny.from_dict(_item) for _item in obj["details"]] if obj.get("details") is not None else None }) # store additional fields in additional_properties for _key in obj.keys(): diff --git a/zitadel_client/models/session_service_web_auth_n.py b/zitadel_client/models/session_service_web_auth_n.py index 33579c0..c09ddc1 100644 --- a/zitadel_client/models/session_service_web_auth_n.py +++ b/zitadel_client/models/session_service_web_auth_n.py @@ -18,7 +18,7 @@ import json from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict +from typing import Any, ClassVar, Dict, Optional from zitadel_client.models.session_service_user_verification_requirement import SessionServiceUserVerificationRequirement from typing import Optional, Set from typing_extensions import Self @@ -27,8 +27,8 @@ class SessionServiceWebAuthN(BaseModel): """ SessionServiceWebAuthN """ # noqa: E501 - domain: StrictStr - user_verification_requirement: SessionServiceUserVerificationRequirement = Field(alias="userVerificationRequirement") + domain: Optional[StrictStr] = None + user_verification_requirement: Optional[SessionServiceUserVerificationRequirement] = Field(default=None, alias="userVerificationRequirement") __properties: ClassVar[List[str]] = ["domain", "userVerificationRequirement"] model_config = ConfigDict( diff --git a/zitadel_client/models/settings_service_any.py b/zitadel_client/models/settings_service_any.py index a20c6af..173480e 100644 --- a/zitadel_client/models/settings_service_any.py +++ b/zitadel_client/models/settings_service_any.py @@ -17,18 +17,18 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, StrictBytes, StrictStr +from pydantic import BaseModel, ConfigDict, Field, StrictBytes, StrictStr from typing import Any, ClassVar, Dict, List, Optional, Tuple, Union from typing import Optional, Set from typing_extensions import Self class SettingsServiceAny(BaseModel): """ - Contains an arbitrary serialized message along with a @type that describes the type of the serialized message. + Contains an arbitrary serialized message along with a @type that describes the type of the serialized message, with an additional debug field for ConnectRPC error details. """ # noqa: E501 - type: Optional[StrictStr] = None - value: Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]] = None - debug: Optional[Dict[str, Any]] = None + type: Optional[StrictStr] = Field(default=None, description="A URL that acts as a globally unique identifier for the type of the serialized message. For example: `type.googleapis.com/google.rpc.ErrorInfo`. This is used to determine the schema of the data in the `value` field and is the discriminator for the `debug` field.") + value: Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]] = Field(default=None, description="The Protobuf message, serialized as bytes and base64-encoded. The specific message type is identified by the `type` field.") + debug: Optional[Any] = Field(default=None, description="Deserialized error detail payload. The 'type' field indicates the schema. This field is for easier debugging and should not be relied upon for application logic.") additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["type", "value", "debug"] @@ -78,6 +78,11 @@ def to_dict(self) -> Dict[str, Any]: for _key, _value in self.additional_properties.items(): _dict[_key] = _value + # set to None if debug (nullable) is None + # and model_fields_set contains the field + if self.debug is None and "debug" in self.model_fields_set: + _dict['debug'] = None + return _dict @classmethod diff --git a/zitadel_client/models/settings_service_connect_error.py b/zitadel_client/models/settings_service_connect_error.py index 70693dd..50536ae 100644 --- a/zitadel_client/models/settings_service_connect_error.py +++ b/zitadel_client/models/settings_service_connect_error.py @@ -29,9 +29,9 @@ class SettingsServiceConnectError(BaseModel): """ # noqa: E501 code: Optional[StrictStr] = Field(default=None, description="The status code, which should be an enum value of [google.rpc.Code][google.rpc.Code].") message: Optional[StrictStr] = Field(default=None, description="A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the [google.rpc.Status.details][google.rpc.Status.details] field, or localized by the client.") - detail: Optional[SettingsServiceAny] = None + details: Optional[List[SettingsServiceAny]] = Field(default=None, description="A list of messages that carry the error details. There is no limit on the number of messages.") additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["code", "message", "detail"] + __properties: ClassVar[List[str]] = ["code", "message", "details"] @field_validator('code') def code_validate_enum(cls, value): @@ -84,9 +84,13 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # override the default output from pydantic by calling `to_dict()` of detail - if self.detail: - _dict['detail'] = self.detail.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in details (list) + _items = [] + if self.details: + for _item_details in self.details: + if _item_details: + _items.append(_item_details.to_dict()) + _dict['details'] = _items # puts key-value pairs in additional_properties in the top level if self.additional_properties is not None: for _key, _value in self.additional_properties.items(): @@ -106,7 +110,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "code": obj.get("code"), "message": obj.get("message"), - "detail": SettingsServiceAny.from_dict(obj["detail"]) if obj.get("detail") is not None else None + "details": [SettingsServiceAny.from_dict(_item) for _item in obj["details"]] if obj.get("details") is not None else None }) # store additional fields in additional_properties for _key in obj.keys(): diff --git a/zitadel_client/models/user_service_add_human_user_request.py b/zitadel_client/models/user_service_add_human_user_request.py index a3a893d..1c765bd 100644 --- a/zitadel_client/models/user_service_add_human_user_request.py +++ b/zitadel_client/models/user_service_add_human_user_request.py @@ -37,8 +37,8 @@ class UserServiceAddHumanUserRequest(BaseModel): user_id: Optional[StrictStr] = Field(default=None, description="optionally set your own id unique for the user.", alias="userId") username: Optional[StrictStr] = Field(default=None, description="optionally set a unique username, if none is provided the email will be used.") organization: Optional[UserServiceOrganization] = None - profile: UserServiceSetHumanProfile - email: UserServiceSetHumanEmail + profile: Optional[UserServiceSetHumanProfile] = None + email: Optional[UserServiceSetHumanEmail] = None phone: Optional[UserServiceSetHumanPhone] = None metadata: Optional[List[UserServiceSetMetadataEntry]] = None idp_links: Optional[List[UserServiceIDPLink]] = Field(default=None, alias="idpLinks") diff --git a/zitadel_client/models/user_service_add_idp_link_request.py b/zitadel_client/models/user_service_add_idp_link_request.py index 351d11f..51baed6 100644 --- a/zitadel_client/models/user_service_add_idp_link_request.py +++ b/zitadel_client/models/user_service_add_idp_link_request.py @@ -27,7 +27,7 @@ class UserServiceAddIDPLinkRequest(BaseModel): """ UserServiceAddIDPLinkRequest """ # noqa: E501 - user_id: StrictStr = Field(alias="userId") + user_id: Optional[StrictStr] = Field(default=None, alias="userId") idp_link: Optional[UserServiceIDPLink] = Field(default=None, alias="idpLink") __properties: ClassVar[List[str]] = ["userId", "idpLink"] diff --git a/zitadel_client/models/user_service_add_otp_email_request.py b/zitadel_client/models/user_service_add_otp_email_request.py index fdf6d0f..be85b7e 100644 --- a/zitadel_client/models/user_service_add_otp_email_request.py +++ b/zitadel_client/models/user_service_add_otp_email_request.py @@ -18,7 +18,7 @@ import json from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict +from typing import Any, ClassVar, Dict, Optional from typing import Optional, Set from typing_extensions import Self @@ -26,7 +26,7 @@ class UserServiceAddOTPEmailRequest(BaseModel): """ UserServiceAddOTPEmailRequest """ # noqa: E501 - user_id: StrictStr = Field(alias="userId") + user_id: Optional[StrictStr] = Field(default=None, alias="userId") __properties: ClassVar[List[str]] = ["userId"] model_config = ConfigDict( diff --git a/zitadel_client/models/user_service_add_otpsms_request.py b/zitadel_client/models/user_service_add_otpsms_request.py index 009d2a1..152d01a 100644 --- a/zitadel_client/models/user_service_add_otpsms_request.py +++ b/zitadel_client/models/user_service_add_otpsms_request.py @@ -18,7 +18,7 @@ import json from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict +from typing import Any, ClassVar, Dict, Optional from typing import Optional, Set from typing_extensions import Self @@ -26,7 +26,7 @@ class UserServiceAddOTPSMSRequest(BaseModel): """ UserServiceAddOTPSMSRequest """ # noqa: E501 - user_id: StrictStr = Field(alias="userId") + user_id: Optional[StrictStr] = Field(default=None, alias="userId") __properties: ClassVar[List[str]] = ["userId"] model_config = ConfigDict( diff --git a/zitadel_client/models/user_service_any.py b/zitadel_client/models/user_service_any.py index 8c50065..659a361 100644 --- a/zitadel_client/models/user_service_any.py +++ b/zitadel_client/models/user_service_any.py @@ -17,18 +17,18 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, StrictBytes, StrictStr +from pydantic import BaseModel, ConfigDict, Field, StrictBytes, StrictStr from typing import Any, ClassVar, Dict, List, Optional, Tuple, Union from typing import Optional, Set from typing_extensions import Self class UserServiceAny(BaseModel): """ - Contains an arbitrary serialized message along with a @type that describes the type of the serialized message. + Contains an arbitrary serialized message along with a @type that describes the type of the serialized message, with an additional debug field for ConnectRPC error details. """ # noqa: E501 - type: Optional[StrictStr] = None - value: Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]] = None - debug: Optional[Dict[str, Any]] = None + type: Optional[StrictStr] = Field(default=None, description="A URL that acts as a globally unique identifier for the type of the serialized message. For example: `type.googleapis.com/google.rpc.ErrorInfo`. This is used to determine the schema of the data in the `value` field and is the discriminator for the `debug` field.") + value: Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]] = Field(default=None, description="The Protobuf message, serialized as bytes and base64-encoded. The specific message type is identified by the `type` field.") + debug: Optional[Any] = Field(default=None, description="Deserialized error detail payload. The 'type' field indicates the schema. This field is for easier debugging and should not be relied upon for application logic.") additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["type", "value", "debug"] @@ -78,6 +78,11 @@ def to_dict(self) -> Dict[str, Any]: for _key, _value in self.additional_properties.items(): _dict[_key] = _value + # set to None if debug (nullable) is None + # and model_fields_set contains the field + if self.debug is None and "debug" in self.model_fields_set: + _dict['debug'] = None + return _dict @classmethod diff --git a/zitadel_client/models/user_service_connect_error.py b/zitadel_client/models/user_service_connect_error.py index d1005ad..5a1d647 100644 --- a/zitadel_client/models/user_service_connect_error.py +++ b/zitadel_client/models/user_service_connect_error.py @@ -29,9 +29,9 @@ class UserServiceConnectError(BaseModel): """ # noqa: E501 code: Optional[StrictStr] = Field(default=None, description="The status code, which should be an enum value of [google.rpc.Code][google.rpc.Code].") message: Optional[StrictStr] = Field(default=None, description="A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the [google.rpc.Status.details][google.rpc.Status.details] field, or localized by the client.") - detail: Optional[UserServiceAny] = None + details: Optional[List[UserServiceAny]] = Field(default=None, description="A list of messages that carry the error details. There is no limit on the number of messages.") additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["code", "message", "detail"] + __properties: ClassVar[List[str]] = ["code", "message", "details"] @field_validator('code') def code_validate_enum(cls, value): @@ -84,9 +84,13 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # override the default output from pydantic by calling `to_dict()` of detail - if self.detail: - _dict['detail'] = self.detail.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in details (list) + _items = [] + if self.details: + for _item_details in self.details: + if _item_details: + _items.append(_item_details.to_dict()) + _dict['details'] = _items # puts key-value pairs in additional_properties in the top level if self.additional_properties is not None: for _key, _value in self.additional_properties.items(): @@ -106,7 +110,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "code": obj.get("code"), "message": obj.get("message"), - "detail": UserServiceAny.from_dict(obj["detail"]) if obj.get("detail") is not None else None + "details": [UserServiceAny.from_dict(_item) for _item in obj["details"]] if obj.get("details") is not None else None }) # store additional fields in additional_properties for _key in obj.keys(): diff --git a/zitadel_client/models/user_service_create_invite_code_request.py b/zitadel_client/models/user_service_create_invite_code_request.py index 46836e6..c6e5d9a 100644 --- a/zitadel_client/models/user_service_create_invite_code_request.py +++ b/zitadel_client/models/user_service_create_invite_code_request.py @@ -27,7 +27,7 @@ class UserServiceCreateInviteCodeRequest(BaseModel): """ UserServiceCreateInviteCodeRequest """ # noqa: E501 - user_id: StrictStr = Field(alias="userId") + user_id: Optional[StrictStr] = Field(default=None, alias="userId") return_code: Optional[Dict[str, Any]] = Field(default=None, alias="returnCode") send_code: Optional[UserServiceSendInviteCode] = Field(default=None, alias="sendCode") __properties: ClassVar[List[str]] = ["userId", "returnCode", "sendCode"] diff --git a/zitadel_client/models/user_service_create_passkey_registration_link_request.py b/zitadel_client/models/user_service_create_passkey_registration_link_request.py index 1a3e836..adb57d0 100644 --- a/zitadel_client/models/user_service_create_passkey_registration_link_request.py +++ b/zitadel_client/models/user_service_create_passkey_registration_link_request.py @@ -27,7 +27,7 @@ class UserServiceCreatePasskeyRegistrationLinkRequest(BaseModel): """ UserServiceCreatePasskeyRegistrationLinkRequest """ # noqa: E501 - user_id: StrictStr = Field(alias="userId") + user_id: Optional[StrictStr] = Field(default=None, alias="userId") return_code: Optional[Dict[str, Any]] = Field(default=None, alias="returnCode") send_link: Optional[UserServiceSendPasskeyRegistrationLink] = Field(default=None, alias="sendLink") __properties: ClassVar[List[str]] = ["userId", "returnCode", "sendLink"] diff --git a/zitadel_client/models/user_service_deactivate_user_request.py b/zitadel_client/models/user_service_deactivate_user_request.py index 6a1aca2..004a23f 100644 --- a/zitadel_client/models/user_service_deactivate_user_request.py +++ b/zitadel_client/models/user_service_deactivate_user_request.py @@ -18,7 +18,7 @@ import json from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict +from typing import Any, ClassVar, Dict, Optional from typing import Optional, Set from typing_extensions import Self @@ -26,7 +26,7 @@ class UserServiceDeactivateUserRequest(BaseModel): """ UserServiceDeactivateUserRequest """ # noqa: E501 - user_id: StrictStr = Field(alias="userId") + user_id: Optional[StrictStr] = Field(default=None, alias="userId") __properties: ClassVar[List[str]] = ["userId"] model_config = ConfigDict( diff --git a/zitadel_client/models/user_service_delete_user_request.py b/zitadel_client/models/user_service_delete_user_request.py index 82885fa..578bcd8 100644 --- a/zitadel_client/models/user_service_delete_user_request.py +++ b/zitadel_client/models/user_service_delete_user_request.py @@ -18,7 +18,7 @@ import json from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict +from typing import Any, ClassVar, Dict, Optional from typing import Optional, Set from typing_extensions import Self @@ -26,7 +26,7 @@ class UserServiceDeleteUserRequest(BaseModel): """ UserServiceDeleteUserRequest """ # noqa: E501 - user_id: StrictStr = Field(alias="userId") + user_id: Optional[StrictStr] = Field(default=None, alias="userId") __properties: ClassVar[List[str]] = ["userId"] model_config = ConfigDict( diff --git a/zitadel_client/models/user_service_display_name_query.py b/zitadel_client/models/user_service_display_name_query.py index 6a5fb53..c25828d 100644 --- a/zitadel_client/models/user_service_display_name_query.py +++ b/zitadel_client/models/user_service_display_name_query.py @@ -27,7 +27,7 @@ class UserServiceDisplayNameQuery(BaseModel): """ Query for users with a specific display name. """ # noqa: E501 - display_name: StrictStr = Field(alias="displayName") + display_name: Optional[StrictStr] = Field(default=None, alias="displayName") method: Optional[UserServiceTextQueryMethod] = None __properties: ClassVar[List[str]] = ["displayName", "method"] diff --git a/zitadel_client/models/user_service_email_query.py b/zitadel_client/models/user_service_email_query.py index 2aa6d2f..889e611 100644 --- a/zitadel_client/models/user_service_email_query.py +++ b/zitadel_client/models/user_service_email_query.py @@ -27,7 +27,7 @@ class UserServiceEmailQuery(BaseModel): """ Query for users with a specific email. """ # noqa: E501 - email_address: StrictStr = Field(alias="emailAddress") + email_address: Optional[StrictStr] = Field(default=None, alias="emailAddress") method: Optional[UserServiceTextQueryMethod] = None __properties: ClassVar[List[str]] = ["emailAddress", "method"] diff --git a/zitadel_client/models/user_service_first_name_query.py b/zitadel_client/models/user_service_first_name_query.py index 9219b07..c4ecf66 100644 --- a/zitadel_client/models/user_service_first_name_query.py +++ b/zitadel_client/models/user_service_first_name_query.py @@ -27,7 +27,7 @@ class UserServiceFirstNameQuery(BaseModel): """ Query for users with a specific first name. """ # noqa: E501 - first_name: StrictStr = Field(alias="firstName") + first_name: Optional[StrictStr] = Field(default=None, alias="firstName") method: Optional[UserServiceTextQueryMethod] = None __properties: ClassVar[List[str]] = ["firstName", "method"] diff --git a/zitadel_client/models/user_service_get_user_by_id_request.py b/zitadel_client/models/user_service_get_user_by_id_request.py index 83382eb..45f3c6b 100644 --- a/zitadel_client/models/user_service_get_user_by_id_request.py +++ b/zitadel_client/models/user_service_get_user_by_id_request.py @@ -18,7 +18,7 @@ import json from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict +from typing import Any, ClassVar, Dict, Optional from typing import Optional, Set from typing_extensions import Self @@ -26,7 +26,7 @@ class UserServiceGetUserByIDRequest(BaseModel): """ UserServiceGetUserByIDRequest """ # noqa: E501 - user_id: StrictStr = Field(alias="userId") + user_id: Optional[StrictStr] = Field(default=None, alias="userId") __properties: ClassVar[List[str]] = ["userId"] model_config = ConfigDict( diff --git a/zitadel_client/models/user_service_hashed_password.py b/zitadel_client/models/user_service_hashed_password.py index 75b29c8..3258a51 100644 --- a/zitadel_client/models/user_service_hashed_password.py +++ b/zitadel_client/models/user_service_hashed_password.py @@ -26,7 +26,7 @@ class UserServiceHashedPassword(BaseModel): """ UserServiceHashedPassword """ # noqa: E501 - hash: StrictStr + hash: Optional[StrictStr] = None change_required: Optional[StrictBool] = Field(default=None, alias="changeRequired") __properties: ClassVar[List[str]] = ["hash", "changeRequired"] diff --git a/zitadel_client/models/user_service_human_mfa_init_skipped_request.py b/zitadel_client/models/user_service_human_mfa_init_skipped_request.py index 557be23..e6e4647 100644 --- a/zitadel_client/models/user_service_human_mfa_init_skipped_request.py +++ b/zitadel_client/models/user_service_human_mfa_init_skipped_request.py @@ -18,7 +18,7 @@ import json from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict +from typing import Any, ClassVar, Dict, Optional from typing import Optional, Set from typing_extensions import Self @@ -26,7 +26,7 @@ class UserServiceHumanMFAInitSkippedRequest(BaseModel): """ UserServiceHumanMFAInitSkippedRequest """ # noqa: E501 - user_id: StrictStr = Field(alias="userId") + user_id: Optional[StrictStr] = Field(default=None, alias="userId") __properties: ClassVar[List[str]] = ["userId"] model_config = ConfigDict( diff --git a/zitadel_client/models/user_service_last_name_query.py b/zitadel_client/models/user_service_last_name_query.py index 11e226e..c6e6d93 100644 --- a/zitadel_client/models/user_service_last_name_query.py +++ b/zitadel_client/models/user_service_last_name_query.py @@ -27,7 +27,7 @@ class UserServiceLastNameQuery(BaseModel): """ Query for users with a specific last name. """ # noqa: E501 - last_name: StrictStr = Field(alias="lastName") + last_name: Optional[StrictStr] = Field(default=None, alias="lastName") method: Optional[UserServiceTextQueryMethod] = None __properties: ClassVar[List[str]] = ["lastName", "method"] diff --git a/zitadel_client/models/user_service_list_authentication_factors_request.py b/zitadel_client/models/user_service_list_authentication_factors_request.py index b01aaff..13aa9aa 100644 --- a/zitadel_client/models/user_service_list_authentication_factors_request.py +++ b/zitadel_client/models/user_service_list_authentication_factors_request.py @@ -28,7 +28,7 @@ class UserServiceListAuthenticationFactorsRequest(BaseModel): """ UserServiceListAuthenticationFactorsRequest """ # noqa: E501 - user_id: StrictStr = Field(alias="userId") + user_id: Optional[StrictStr] = Field(default=None, alias="userId") auth_factors: Optional[List[UserServiceAuthFactors]] = Field(default=None, alias="authFactors") states: Optional[List[UserServiceAuthFactorState]] = None __properties: ClassVar[List[str]] = ["userId", "authFactors", "states"] diff --git a/zitadel_client/models/user_service_list_authentication_method_types_request.py b/zitadel_client/models/user_service_list_authentication_method_types_request.py index 0bc20c8..a01c8ab 100644 --- a/zitadel_client/models/user_service_list_authentication_method_types_request.py +++ b/zitadel_client/models/user_service_list_authentication_method_types_request.py @@ -27,7 +27,7 @@ class UserServiceListAuthenticationMethodTypesRequest(BaseModel): """ UserServiceListAuthenticationMethodTypesRequest """ # noqa: E501 - user_id: StrictStr = Field(alias="userId") + user_id: Optional[StrictStr] = Field(default=None, alias="userId") domain_query: Optional[UserServiceDomainQuery] = Field(default=None, alias="domainQuery") __properties: ClassVar[List[str]] = ["userId", "domainQuery"] diff --git a/zitadel_client/models/user_service_list_passkeys_request.py b/zitadel_client/models/user_service_list_passkeys_request.py index cc2d093..469cbd9 100644 --- a/zitadel_client/models/user_service_list_passkeys_request.py +++ b/zitadel_client/models/user_service_list_passkeys_request.py @@ -18,7 +18,7 @@ import json from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict +from typing import Any, ClassVar, Dict, Optional from typing import Optional, Set from typing_extensions import Self @@ -26,7 +26,7 @@ class UserServiceListPasskeysRequest(BaseModel): """ UserServiceListPasskeysRequest """ # noqa: E501 - user_id: StrictStr = Field(alias="userId") + user_id: Optional[StrictStr] = Field(default=None, alias="userId") __properties: ClassVar[List[str]] = ["userId"] model_config = ConfigDict( diff --git a/zitadel_client/models/user_service_list_user_metadata_request.py b/zitadel_client/models/user_service_list_user_metadata_request.py index 180d65d..143e9d9 100644 --- a/zitadel_client/models/user_service_list_user_metadata_request.py +++ b/zitadel_client/models/user_service_list_user_metadata_request.py @@ -28,7 +28,7 @@ class UserServiceListUserMetadataRequest(BaseModel): """ UserServiceListUserMetadataRequest """ # noqa: E501 - user_id: StrictStr = Field(description="ID of the user under which the metadata is to be listed.", alias="userId") + user_id: Optional[StrictStr] = Field(default=None, description="ID of the user under which the metadata is to be listed.", alias="userId") pagination: Optional[UserServicePaginationRequest] = None filters: Optional[List[UserServiceMetadataSearchFilter]] = Field(default=None, description="Define the criteria to query for.") __properties: ClassVar[List[str]] = ["userId", "pagination", "filters"] diff --git a/zitadel_client/models/user_service_lock_user_request.py b/zitadel_client/models/user_service_lock_user_request.py index b52ddb6..cc3f4f1 100644 --- a/zitadel_client/models/user_service_lock_user_request.py +++ b/zitadel_client/models/user_service_lock_user_request.py @@ -18,7 +18,7 @@ import json from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict +from typing import Any, ClassVar, Dict, Optional from typing import Optional, Set from typing_extensions import Self @@ -26,7 +26,7 @@ class UserServiceLockUserRequest(BaseModel): """ UserServiceLockUserRequest """ # noqa: E501 - user_id: StrictStr = Field(alias="userId") + user_id: Optional[StrictStr] = Field(default=None, alias="userId") __properties: ClassVar[List[str]] = ["userId"] model_config = ConfigDict( diff --git a/zitadel_client/models/user_service_login_name_query.py b/zitadel_client/models/user_service_login_name_query.py index 66c3dd8..f68038b 100644 --- a/zitadel_client/models/user_service_login_name_query.py +++ b/zitadel_client/models/user_service_login_name_query.py @@ -27,7 +27,7 @@ class UserServiceLoginNameQuery(BaseModel): """ Query for users with a specific state. """ # noqa: E501 - login_name: StrictStr = Field(alias="loginName") + login_name: Optional[StrictStr] = Field(default=None, alias="loginName") method: Optional[UserServiceTextQueryMethod] = None __properties: ClassVar[List[str]] = ["loginName", "method"] diff --git a/zitadel_client/models/user_service_nick_name_query.py b/zitadel_client/models/user_service_nick_name_query.py index fc00de4..182628a 100644 --- a/zitadel_client/models/user_service_nick_name_query.py +++ b/zitadel_client/models/user_service_nick_name_query.py @@ -27,7 +27,7 @@ class UserServiceNickNameQuery(BaseModel): """ Query for users with a specific nickname. """ # noqa: E501 - nick_name: StrictStr = Field(alias="nickName") + nick_name: Optional[StrictStr] = Field(default=None, alias="nickName") method: Optional[UserServiceTextQueryMethod] = None __properties: ClassVar[List[str]] = ["nickName", "method"] diff --git a/zitadel_client/models/user_service_organization_id_query.py b/zitadel_client/models/user_service_organization_id_query.py index b2c37ba..68aea86 100644 --- a/zitadel_client/models/user_service_organization_id_query.py +++ b/zitadel_client/models/user_service_organization_id_query.py @@ -18,7 +18,7 @@ import json from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict +from typing import Any, ClassVar, Dict, Optional from typing import Optional, Set from typing_extensions import Self @@ -26,7 +26,7 @@ class UserServiceOrganizationIdQuery(BaseModel): """ Query for users under a specific organization as resource owner. """ # noqa: E501 - organization_id: StrictStr = Field(alias="organizationId") + organization_id: Optional[StrictStr] = Field(default=None, alias="organizationId") __properties: ClassVar[List[str]] = ["organizationId"] model_config = ConfigDict( diff --git a/zitadel_client/models/user_service_passkey_registration_code.py b/zitadel_client/models/user_service_passkey_registration_code.py index 59d3263..13035de 100644 --- a/zitadel_client/models/user_service_passkey_registration_code.py +++ b/zitadel_client/models/user_service_passkey_registration_code.py @@ -18,7 +18,7 @@ import json from pydantic import BaseModel, ConfigDict, StrictStr -from typing import Any, ClassVar, Dict +from typing import Any, ClassVar, Dict, Optional from typing import Optional, Set from typing_extensions import Self @@ -26,8 +26,8 @@ class UserServicePasskeyRegistrationCode(BaseModel): """ UserServicePasskeyRegistrationCode """ # noqa: E501 - id: StrictStr - code: StrictStr + id: Optional[StrictStr] = None + code: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["id", "code"] model_config = ConfigDict( diff --git a/zitadel_client/models/user_service_password.py b/zitadel_client/models/user_service_password.py index 0486c87..c57e466 100644 --- a/zitadel_client/models/user_service_password.py +++ b/zitadel_client/models/user_service_password.py @@ -26,7 +26,7 @@ class UserServicePassword(BaseModel): """ UserServicePassword """ # noqa: E501 - password: StrictStr + password: Optional[StrictStr] = None change_required: Optional[StrictBool] = Field(default=None, alias="changeRequired") __properties: ClassVar[List[str]] = ["password", "changeRequired"] diff --git a/zitadel_client/models/user_service_password_reset_request.py b/zitadel_client/models/user_service_password_reset_request.py index 1f36399..db3f352 100644 --- a/zitadel_client/models/user_service_password_reset_request.py +++ b/zitadel_client/models/user_service_password_reset_request.py @@ -27,7 +27,7 @@ class UserServicePasswordResetRequest(BaseModel): """ UserServicePasswordResetRequest """ # noqa: E501 - user_id: StrictStr = Field(alias="userId") + user_id: Optional[StrictStr] = Field(default=None, alias="userId") return_code: Optional[Dict[str, Any]] = Field(default=None, alias="returnCode") send_link: Optional[UserServiceSendPasswordResetLink] = Field(default=None, alias="sendLink") __properties: ClassVar[List[str]] = ["userId", "returnCode", "sendLink"] diff --git a/zitadel_client/models/user_service_phone_query.py b/zitadel_client/models/user_service_phone_query.py index a851b0e..4c86450 100644 --- a/zitadel_client/models/user_service_phone_query.py +++ b/zitadel_client/models/user_service_phone_query.py @@ -27,7 +27,7 @@ class UserServicePhoneQuery(BaseModel): """ Query for users with a specific phone. """ # noqa: E501 - number: StrictStr + number: Optional[StrictStr] = None method: Optional[UserServiceTextQueryMethod] = None __properties: ClassVar[List[str]] = ["number", "method"] diff --git a/zitadel_client/models/user_service_reactivate_user_request.py b/zitadel_client/models/user_service_reactivate_user_request.py index 1d4ff51..076534f 100644 --- a/zitadel_client/models/user_service_reactivate_user_request.py +++ b/zitadel_client/models/user_service_reactivate_user_request.py @@ -18,7 +18,7 @@ import json from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict +from typing import Any, ClassVar, Dict, Optional from typing import Optional, Set from typing_extensions import Self @@ -26,7 +26,7 @@ class UserServiceReactivateUserRequest(BaseModel): """ UserServiceReactivateUserRequest """ # noqa: E501 - user_id: StrictStr = Field(alias="userId") + user_id: Optional[StrictStr] = Field(default=None, alias="userId") __properties: ClassVar[List[str]] = ["userId"] model_config = ConfigDict( diff --git a/zitadel_client/models/user_service_register_passkey_request.py b/zitadel_client/models/user_service_register_passkey_request.py index 57bcc56..a0ab83a 100644 --- a/zitadel_client/models/user_service_register_passkey_request.py +++ b/zitadel_client/models/user_service_register_passkey_request.py @@ -28,7 +28,7 @@ class UserServiceRegisterPasskeyRequest(BaseModel): """ UserServiceRegisterPasskeyRequest """ # noqa: E501 - user_id: StrictStr = Field(alias="userId") + user_id: Optional[StrictStr] = Field(default=None, alias="userId") code: Optional[UserServicePasskeyRegistrationCode] = None authenticator: Optional[UserServicePasskeyAuthenticator] = None domain: Optional[StrictStr] = None diff --git a/zitadel_client/models/user_service_register_totp_request.py b/zitadel_client/models/user_service_register_totp_request.py index ed63304..98e909b 100644 --- a/zitadel_client/models/user_service_register_totp_request.py +++ b/zitadel_client/models/user_service_register_totp_request.py @@ -18,7 +18,7 @@ import json from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict +from typing import Any, ClassVar, Dict, Optional from typing import Optional, Set from typing_extensions import Self @@ -26,7 +26,7 @@ class UserServiceRegisterTOTPRequest(BaseModel): """ UserServiceRegisterTOTPRequest """ # noqa: E501 - user_id: StrictStr = Field(alias="userId") + user_id: Optional[StrictStr] = Field(default=None, alias="userId") __properties: ClassVar[List[str]] = ["userId"] model_config = ConfigDict( diff --git a/zitadel_client/models/user_service_register_u2_f_request.py b/zitadel_client/models/user_service_register_u2_f_request.py index 61943f2..95f14ca 100644 --- a/zitadel_client/models/user_service_register_u2_f_request.py +++ b/zitadel_client/models/user_service_register_u2_f_request.py @@ -26,7 +26,7 @@ class UserServiceRegisterU2FRequest(BaseModel): """ UserServiceRegisterU2FRequest """ # noqa: E501 - user_id: StrictStr = Field(alias="userId") + user_id: Optional[StrictStr] = Field(default=None, alias="userId") domain: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["userId", "domain"] diff --git a/zitadel_client/models/user_service_remove_idp_link_request.py b/zitadel_client/models/user_service_remove_idp_link_request.py index eac1864..694a1e3 100644 --- a/zitadel_client/models/user_service_remove_idp_link_request.py +++ b/zitadel_client/models/user_service_remove_idp_link_request.py @@ -18,7 +18,7 @@ import json from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict +from typing import Any, ClassVar, Dict, Optional from typing import Optional, Set from typing_extensions import Self @@ -26,9 +26,9 @@ class UserServiceRemoveIDPLinkRequest(BaseModel): """ UserServiceRemoveIDPLinkRequest """ # noqa: E501 - user_id: StrictStr = Field(alias="userId") - idp_id: StrictStr = Field(alias="idpId") - linked_user_id: StrictStr = Field(alias="linkedUserId") + user_id: Optional[StrictStr] = Field(default=None, alias="userId") + idp_id: Optional[StrictStr] = Field(default=None, alias="idpId") + linked_user_id: Optional[StrictStr] = Field(default=None, alias="linkedUserId") __properties: ClassVar[List[str]] = ["userId", "idpId", "linkedUserId"] model_config = ConfigDict( diff --git a/zitadel_client/models/user_service_remove_otp_email_request.py b/zitadel_client/models/user_service_remove_otp_email_request.py index 6b26b93..e3436df 100644 --- a/zitadel_client/models/user_service_remove_otp_email_request.py +++ b/zitadel_client/models/user_service_remove_otp_email_request.py @@ -18,7 +18,7 @@ import json from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict +from typing import Any, ClassVar, Dict, Optional from typing import Optional, Set from typing_extensions import Self @@ -26,7 +26,7 @@ class UserServiceRemoveOTPEmailRequest(BaseModel): """ UserServiceRemoveOTPEmailRequest """ # noqa: E501 - user_id: StrictStr = Field(alias="userId") + user_id: Optional[StrictStr] = Field(default=None, alias="userId") __properties: ClassVar[List[str]] = ["userId"] model_config = ConfigDict( diff --git a/zitadel_client/models/user_service_remove_otpsms_request.py b/zitadel_client/models/user_service_remove_otpsms_request.py index 0a05a9c..b528cb9 100644 --- a/zitadel_client/models/user_service_remove_otpsms_request.py +++ b/zitadel_client/models/user_service_remove_otpsms_request.py @@ -18,7 +18,7 @@ import json from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict +from typing import Any, ClassVar, Dict, Optional from typing import Optional, Set from typing_extensions import Self @@ -26,7 +26,7 @@ class UserServiceRemoveOTPSMSRequest(BaseModel): """ UserServiceRemoveOTPSMSRequest """ # noqa: E501 - user_id: StrictStr = Field(alias="userId") + user_id: Optional[StrictStr] = Field(default=None, alias="userId") __properties: ClassVar[List[str]] = ["userId"] model_config = ConfigDict( diff --git a/zitadel_client/models/user_service_remove_passkey_request.py b/zitadel_client/models/user_service_remove_passkey_request.py index 0b6fc56..ceb1140 100644 --- a/zitadel_client/models/user_service_remove_passkey_request.py +++ b/zitadel_client/models/user_service_remove_passkey_request.py @@ -18,7 +18,7 @@ import json from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict +from typing import Any, ClassVar, Dict, Optional from typing import Optional, Set from typing_extensions import Self @@ -26,8 +26,8 @@ class UserServiceRemovePasskeyRequest(BaseModel): """ UserServiceRemovePasskeyRequest """ # noqa: E501 - user_id: StrictStr = Field(alias="userId") - passkey_id: StrictStr = Field(alias="passkeyId") + user_id: Optional[StrictStr] = Field(default=None, alias="userId") + passkey_id: Optional[StrictStr] = Field(default=None, alias="passkeyId") __properties: ClassVar[List[str]] = ["userId", "passkeyId"] model_config = ConfigDict( diff --git a/zitadel_client/models/user_service_remove_phone_request.py b/zitadel_client/models/user_service_remove_phone_request.py index 290dd2c..c4f6199 100644 --- a/zitadel_client/models/user_service_remove_phone_request.py +++ b/zitadel_client/models/user_service_remove_phone_request.py @@ -18,7 +18,7 @@ import json from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict +from typing import Any, ClassVar, Dict, Optional from typing import Optional, Set from typing_extensions import Self @@ -26,7 +26,7 @@ class UserServiceRemovePhoneRequest(BaseModel): """ UserServiceRemovePhoneRequest """ # noqa: E501 - user_id: StrictStr = Field(alias="userId") + user_id: Optional[StrictStr] = Field(default=None, alias="userId") __properties: ClassVar[List[str]] = ["userId"] model_config = ConfigDict( diff --git a/zitadel_client/models/user_service_remove_totp_request.py b/zitadel_client/models/user_service_remove_totp_request.py index 3ab0fb1..2b36883 100644 --- a/zitadel_client/models/user_service_remove_totp_request.py +++ b/zitadel_client/models/user_service_remove_totp_request.py @@ -18,7 +18,7 @@ import json from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict +from typing import Any, ClassVar, Dict, Optional from typing import Optional, Set from typing_extensions import Self @@ -26,7 +26,7 @@ class UserServiceRemoveTOTPRequest(BaseModel): """ UserServiceRemoveTOTPRequest """ # noqa: E501 - user_id: StrictStr = Field(alias="userId") + user_id: Optional[StrictStr] = Field(default=None, alias="userId") __properties: ClassVar[List[str]] = ["userId"] model_config = ConfigDict( diff --git a/zitadel_client/models/user_service_remove_u2_f_request.py b/zitadel_client/models/user_service_remove_u2_f_request.py index 045177c..04eabd5 100644 --- a/zitadel_client/models/user_service_remove_u2_f_request.py +++ b/zitadel_client/models/user_service_remove_u2_f_request.py @@ -18,7 +18,7 @@ import json from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict +from typing import Any, ClassVar, Dict, Optional from typing import Optional, Set from typing_extensions import Self @@ -26,8 +26,8 @@ class UserServiceRemoveU2FRequest(BaseModel): """ UserServiceRemoveU2FRequest """ # noqa: E501 - user_id: StrictStr = Field(alias="userId") - u2f_id: StrictStr = Field(alias="u2fId") + user_id: Optional[StrictStr] = Field(default=None, alias="userId") + u2f_id: Optional[StrictStr] = Field(default=None, alias="u2fId") __properties: ClassVar[List[str]] = ["userId", "u2fId"] model_config = ConfigDict( diff --git a/zitadel_client/models/user_service_resend_email_code_request.py b/zitadel_client/models/user_service_resend_email_code_request.py index 034516d..d6b6e85 100644 --- a/zitadel_client/models/user_service_resend_email_code_request.py +++ b/zitadel_client/models/user_service_resend_email_code_request.py @@ -27,7 +27,7 @@ class UserServiceResendEmailCodeRequest(BaseModel): """ UserServiceResendEmailCodeRequest """ # noqa: E501 - user_id: StrictStr = Field(alias="userId") + user_id: Optional[StrictStr] = Field(default=None, alias="userId") return_code: Optional[Dict[str, Any]] = Field(default=None, alias="returnCode") send_code: Optional[UserServiceSendEmailVerificationCode] = Field(default=None, alias="sendCode") __properties: ClassVar[List[str]] = ["userId", "returnCode", "sendCode"] diff --git a/zitadel_client/models/user_service_resend_invite_code_request.py b/zitadel_client/models/user_service_resend_invite_code_request.py index 6713b6b..339c2e0 100644 --- a/zitadel_client/models/user_service_resend_invite_code_request.py +++ b/zitadel_client/models/user_service_resend_invite_code_request.py @@ -18,7 +18,7 @@ import json from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict +from typing import Any, ClassVar, Dict, Optional from typing import Optional, Set from typing_extensions import Self @@ -26,7 +26,7 @@ class UserServiceResendInviteCodeRequest(BaseModel): """ UserServiceResendInviteCodeRequest """ # noqa: E501 - user_id: StrictStr = Field(alias="userId") + user_id: Optional[StrictStr] = Field(default=None, alias="userId") __properties: ClassVar[List[str]] = ["userId"] model_config = ConfigDict( diff --git a/zitadel_client/models/user_service_resend_phone_code_request.py b/zitadel_client/models/user_service_resend_phone_code_request.py index d2ede25..0fbf597 100644 --- a/zitadel_client/models/user_service_resend_phone_code_request.py +++ b/zitadel_client/models/user_service_resend_phone_code_request.py @@ -26,7 +26,7 @@ class UserServiceResendPhoneCodeRequest(BaseModel): """ UserServiceResendPhoneCodeRequest """ # noqa: E501 - user_id: StrictStr = Field(alias="userId") + user_id: Optional[StrictStr] = Field(default=None, alias="userId") return_code: Optional[Dict[str, Any]] = Field(default=None, alias="returnCode") send_code: Optional[Dict[str, Any]] = Field(default=None, alias="sendCode") __properties: ClassVar[List[str]] = ["userId", "returnCode", "sendCode"] diff --git a/zitadel_client/models/user_service_send_email_code_request.py b/zitadel_client/models/user_service_send_email_code_request.py index 27e7c72..0588f4e 100644 --- a/zitadel_client/models/user_service_send_email_code_request.py +++ b/zitadel_client/models/user_service_send_email_code_request.py @@ -27,7 +27,7 @@ class UserServiceSendEmailCodeRequest(BaseModel): """ UserServiceSendEmailCodeRequest """ # noqa: E501 - user_id: StrictStr = Field(alias="userId") + user_id: Optional[StrictStr] = Field(default=None, alias="userId") return_code: Optional[Dict[str, Any]] = Field(default=None, alias="returnCode") send_code: Optional[UserServiceSendEmailVerificationCode] = Field(default=None, alias="sendCode") __properties: ClassVar[List[str]] = ["userId", "returnCode", "sendCode"] diff --git a/zitadel_client/models/user_service_set_email_request.py b/zitadel_client/models/user_service_set_email_request.py index d3436f2..ab7a316 100644 --- a/zitadel_client/models/user_service_set_email_request.py +++ b/zitadel_client/models/user_service_set_email_request.py @@ -27,8 +27,8 @@ class UserServiceSetEmailRequest(BaseModel): """ UserServiceSetEmailRequest """ # noqa: E501 - user_id: StrictStr = Field(alias="userId") - email: StrictStr + user_id: Optional[StrictStr] = Field(default=None, alias="userId") + email: Optional[StrictStr] = None is_verified: Optional[StrictBool] = Field(default=None, alias="isVerified") return_code: Optional[Dict[str, Any]] = Field(default=None, alias="returnCode") send_code: Optional[UserServiceSendEmailVerificationCode] = Field(default=None, alias="sendCode") diff --git a/zitadel_client/models/user_service_set_human_email.py b/zitadel_client/models/user_service_set_human_email.py index 7d0eed2..2808010 100644 --- a/zitadel_client/models/user_service_set_human_email.py +++ b/zitadel_client/models/user_service_set_human_email.py @@ -27,7 +27,7 @@ class UserServiceSetHumanEmail(BaseModel): """ UserServiceSetHumanEmail """ # noqa: E501 - email: StrictStr + email: Optional[StrictStr] = None is_verified: Optional[StrictBool] = Field(default=None, alias="isVerified") return_code: Optional[Dict[str, Any]] = Field(default=None, alias="returnCode") send_code: Optional[UserServiceSendEmailVerificationCode] = Field(default=None, alias="sendCode") diff --git a/zitadel_client/models/user_service_set_human_profile.py b/zitadel_client/models/user_service_set_human_profile.py index a3586fa..3f177cd 100644 --- a/zitadel_client/models/user_service_set_human_profile.py +++ b/zitadel_client/models/user_service_set_human_profile.py @@ -27,8 +27,8 @@ class UserServiceSetHumanProfile(BaseModel): """ UserServiceSetHumanProfile """ # noqa: E501 - given_name: StrictStr = Field(alias="givenName") - family_name: StrictStr = Field(alias="familyName") + given_name: Optional[StrictStr] = Field(default=None, alias="givenName") + family_name: Optional[StrictStr] = Field(default=None, alias="familyName") nick_name: Optional[StrictStr] = Field(default=None, alias="nickName") display_name: Optional[StrictStr] = Field(default=None, alias="displayName") preferred_language: Optional[StrictStr] = Field(default=None, alias="preferredLanguage") diff --git a/zitadel_client/models/user_service_set_metadata_entry.py b/zitadel_client/models/user_service_set_metadata_entry.py index fef2f28..8760607 100644 --- a/zitadel_client/models/user_service_set_metadata_entry.py +++ b/zitadel_client/models/user_service_set_metadata_entry.py @@ -18,7 +18,7 @@ import json from pydantic import BaseModel, ConfigDict, StrictBytes, StrictStr -from typing import Any, ClassVar, Dict, Union +from typing import Any, ClassVar, Dict, Optional, Union from typing import Optional, Set from typing_extensions import Self @@ -26,8 +26,8 @@ class UserServiceSetMetadataEntry(BaseModel): """ UserServiceSetMetadataEntry """ # noqa: E501 - key: StrictStr - value: Union[StrictBytes, StrictStr] + key: Optional[StrictStr] = None + value: Optional[Union[StrictBytes, StrictStr]] = None __properties: ClassVar[List[str]] = ["key", "value"] model_config = ConfigDict( diff --git a/zitadel_client/models/user_service_set_password_request.py b/zitadel_client/models/user_service_set_password_request.py index f211c77..2234a01 100644 --- a/zitadel_client/models/user_service_set_password_request.py +++ b/zitadel_client/models/user_service_set_password_request.py @@ -27,7 +27,7 @@ class UserServiceSetPasswordRequest(BaseModel): """ UserServiceSetPasswordRequest """ # noqa: E501 - user_id: StrictStr = Field(alias="userId") + user_id: Optional[StrictStr] = Field(default=None, alias="userId") new_password: Optional[UserServicePassword] = Field(default=None, alias="newPassword") current_password: Optional[StrictStr] = Field(default=None, alias="currentPassword") verification_code: Optional[StrictStr] = Field(default=None, alias="verificationCode") diff --git a/zitadel_client/models/user_service_set_phone_request.py b/zitadel_client/models/user_service_set_phone_request.py index d9b2b00..0926607 100644 --- a/zitadel_client/models/user_service_set_phone_request.py +++ b/zitadel_client/models/user_service_set_phone_request.py @@ -26,8 +26,8 @@ class UserServiceSetPhoneRequest(BaseModel): """ UserServiceSetPhoneRequest """ # noqa: E501 - user_id: StrictStr = Field(alias="userId") - phone: StrictStr + user_id: Optional[StrictStr] = Field(default=None, alias="userId") + phone: Optional[StrictStr] = None is_verified: Optional[StrictBool] = Field(default=None, alias="isVerified") return_code: Optional[Dict[str, Any]] = Field(default=None, alias="returnCode") send_code: Optional[Dict[str, Any]] = Field(default=None, alias="sendCode") diff --git a/zitadel_client/models/user_service_set_user_metadata_request.py b/zitadel_client/models/user_service_set_user_metadata_request.py index 831be55..ea9c256 100644 --- a/zitadel_client/models/user_service_set_user_metadata_request.py +++ b/zitadel_client/models/user_service_set_user_metadata_request.py @@ -27,7 +27,7 @@ class UserServiceSetUserMetadataRequest(BaseModel): """ UserServiceSetUserMetadataRequest """ # noqa: E501 - user_id: StrictStr = Field(description="ID of the user under which the metadata gets set.", alias="userId") + user_id: Optional[StrictStr] = Field(default=None, description="ID of the user under which the metadata gets set.", alias="userId") metadata: Optional[List[UserServiceMetadata]] = Field(default=None, description="Metadata to bet set. The values have to be base64 encoded.") __properties: ClassVar[List[str]] = ["userId", "metadata"] diff --git a/zitadel_client/models/user_service_state_query.py b/zitadel_client/models/user_service_state_query.py index 43f6835..83a4f3f 100644 --- a/zitadel_client/models/user_service_state_query.py +++ b/zitadel_client/models/user_service_state_query.py @@ -18,7 +18,7 @@ import json from pydantic import BaseModel, ConfigDict -from typing import Any, ClassVar, Dict +from typing import Any, ClassVar, Dict, Optional from zitadel_client.models.user_service_user_state import UserServiceUserState from typing import Optional, Set from typing_extensions import Self @@ -27,7 +27,7 @@ class UserServiceStateQuery(BaseModel): """ Query for users with a specific state. """ # noqa: E501 - state: UserServiceUserState + state: Optional[UserServiceUserState] = None __properties: ClassVar[List[str]] = ["state"] model_config = ConfigDict( diff --git a/zitadel_client/models/user_service_type_query.py b/zitadel_client/models/user_service_type_query.py index fa511de..c56afef 100644 --- a/zitadel_client/models/user_service_type_query.py +++ b/zitadel_client/models/user_service_type_query.py @@ -18,7 +18,7 @@ import json from pydantic import BaseModel, ConfigDict -from typing import Any, ClassVar, Dict +from typing import Any, ClassVar, Dict, Optional from zitadel_client.models.user_service_type import UserServiceType from typing import Optional, Set from typing_extensions import Self @@ -27,7 +27,7 @@ class UserServiceTypeQuery(BaseModel): """ Query for users with a specific type. """ # noqa: E501 - type: UserServiceType + type: Optional[UserServiceType] = None __properties: ClassVar[List[str]] = ["type"] model_config = ConfigDict( diff --git a/zitadel_client/models/user_service_unlock_user_request.py b/zitadel_client/models/user_service_unlock_user_request.py index cee2f6d..9ed61ce 100644 --- a/zitadel_client/models/user_service_unlock_user_request.py +++ b/zitadel_client/models/user_service_unlock_user_request.py @@ -18,7 +18,7 @@ import json from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict +from typing import Any, ClassVar, Dict, Optional from typing import Optional, Set from typing_extensions import Self @@ -26,7 +26,7 @@ class UserServiceUnlockUserRequest(BaseModel): """ UserServiceUnlockUserRequest """ # noqa: E501 - user_id: StrictStr = Field(alias="userId") + user_id: Optional[StrictStr] = Field(default=None, alias="userId") __properties: ClassVar[List[str]] = ["userId"] model_config = ConfigDict( diff --git a/zitadel_client/models/user_service_user_name_query.py b/zitadel_client/models/user_service_user_name_query.py index 71498ab..17a1721 100644 --- a/zitadel_client/models/user_service_user_name_query.py +++ b/zitadel_client/models/user_service_user_name_query.py @@ -27,7 +27,7 @@ class UserServiceUserNameQuery(BaseModel): """ Query for users with a specific user name. """ # noqa: E501 - user_name: StrictStr = Field(alias="userName") + user_name: Optional[StrictStr] = Field(default=None, alias="userName") method: Optional[UserServiceTextQueryMethod] = None __properties: ClassVar[List[str]] = ["userName", "method"] diff --git a/zitadel_client/models/user_service_verify_email_request.py b/zitadel_client/models/user_service_verify_email_request.py index e0d2c47..86647d6 100644 --- a/zitadel_client/models/user_service_verify_email_request.py +++ b/zitadel_client/models/user_service_verify_email_request.py @@ -18,7 +18,7 @@ import json from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict +from typing import Any, ClassVar, Dict, Optional from typing import Optional, Set from typing_extensions import Self @@ -26,8 +26,8 @@ class UserServiceVerifyEmailRequest(BaseModel): """ UserServiceVerifyEmailRequest """ # noqa: E501 - user_id: StrictStr = Field(alias="userId") - verification_code: StrictStr = Field(alias="verificationCode") + user_id: Optional[StrictStr] = Field(default=None, alias="userId") + verification_code: Optional[StrictStr] = Field(default=None, alias="verificationCode") __properties: ClassVar[List[str]] = ["userId", "verificationCode"] model_config = ConfigDict( diff --git a/zitadel_client/models/user_service_verify_invite_code_request.py b/zitadel_client/models/user_service_verify_invite_code_request.py index 5bc7010..65c636d 100644 --- a/zitadel_client/models/user_service_verify_invite_code_request.py +++ b/zitadel_client/models/user_service_verify_invite_code_request.py @@ -18,7 +18,7 @@ import json from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict +from typing import Any, ClassVar, Dict, Optional from typing import Optional, Set from typing_extensions import Self @@ -26,8 +26,8 @@ class UserServiceVerifyInviteCodeRequest(BaseModel): """ UserServiceVerifyInviteCodeRequest """ # noqa: E501 - user_id: StrictStr = Field(alias="userId") - verification_code: StrictStr = Field(alias="verificationCode") + user_id: Optional[StrictStr] = Field(default=None, alias="userId") + verification_code: Optional[StrictStr] = Field(default=None, alias="verificationCode") __properties: ClassVar[List[str]] = ["userId", "verificationCode"] model_config = ConfigDict( diff --git a/zitadel_client/models/user_service_verify_passkey_registration_request.py b/zitadel_client/models/user_service_verify_passkey_registration_request.py index ae71807..3e9bb7d 100644 --- a/zitadel_client/models/user_service_verify_passkey_registration_request.py +++ b/zitadel_client/models/user_service_verify_passkey_registration_request.py @@ -18,7 +18,7 @@ import json from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict +from typing import Any, ClassVar, Dict, Optional from typing import Optional, Set from typing_extensions import Self @@ -26,10 +26,10 @@ class UserServiceVerifyPasskeyRegistrationRequest(BaseModel): """ UserServiceVerifyPasskeyRegistrationRequest """ # noqa: E501 - user_id: StrictStr = Field(alias="userId") - passkey_id: StrictStr = Field(alias="passkeyId") - public_key_credential: Dict[str, Any] = Field(description="`Struct` represents a structured data value, consisting of fields which map to dynamically typed values. In some languages, `Struct` might be supported by a native representation. For example, in scripting languages like JS a struct is represented as an object. The details of that representation are described together with the proto support for the language. The JSON representation for `Struct` is JSON object.", alias="publicKeyCredential") - passkey_name: StrictStr = Field(alias="passkeyName") + user_id: Optional[StrictStr] = Field(default=None, alias="userId") + passkey_id: Optional[StrictStr] = Field(default=None, alias="passkeyId") + public_key_credential: Optional[Dict[str, Any]] = Field(default=None, description="`Struct` represents a structured data value, consisting of fields which map to dynamically typed values. In some languages, `Struct` might be supported by a native representation. For example, in scripting languages like JS a struct is represented as an object. The details of that representation are described together with the proto support for the language. The JSON representation for `Struct` is JSON object.", alias="publicKeyCredential") + passkey_name: Optional[StrictStr] = Field(default=None, alias="passkeyName") __properties: ClassVar[List[str]] = ["userId", "passkeyId", "publicKeyCredential", "passkeyName"] model_config = ConfigDict( diff --git a/zitadel_client/models/user_service_verify_phone_request.py b/zitadel_client/models/user_service_verify_phone_request.py index 9b73b0f..fc5036a 100644 --- a/zitadel_client/models/user_service_verify_phone_request.py +++ b/zitadel_client/models/user_service_verify_phone_request.py @@ -18,7 +18,7 @@ import json from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict +from typing import Any, ClassVar, Dict, Optional from typing import Optional, Set from typing_extensions import Self @@ -26,8 +26,8 @@ class UserServiceVerifyPhoneRequest(BaseModel): """ UserServiceVerifyPhoneRequest """ # noqa: E501 - user_id: StrictStr = Field(alias="userId") - verification_code: StrictStr = Field(alias="verificationCode") + user_id: Optional[StrictStr] = Field(default=None, alias="userId") + verification_code: Optional[StrictStr] = Field(default=None, alias="verificationCode") __properties: ClassVar[List[str]] = ["userId", "verificationCode"] model_config = ConfigDict( diff --git a/zitadel_client/models/user_service_verify_totp_registration_request.py b/zitadel_client/models/user_service_verify_totp_registration_request.py index f63810b..0607f8d 100644 --- a/zitadel_client/models/user_service_verify_totp_registration_request.py +++ b/zitadel_client/models/user_service_verify_totp_registration_request.py @@ -18,7 +18,7 @@ import json from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict +from typing import Any, ClassVar, Dict, Optional from typing import Optional, Set from typing_extensions import Self @@ -26,8 +26,8 @@ class UserServiceVerifyTOTPRegistrationRequest(BaseModel): """ UserServiceVerifyTOTPRegistrationRequest """ # noqa: E501 - user_id: StrictStr = Field(alias="userId") - code: StrictStr + user_id: Optional[StrictStr] = Field(default=None, alias="userId") + code: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["userId", "code"] model_config = ConfigDict( diff --git a/zitadel_client/models/user_service_verify_u2_f_registration_request.py b/zitadel_client/models/user_service_verify_u2_f_registration_request.py index 49cba98..f8cb7da 100644 --- a/zitadel_client/models/user_service_verify_u2_f_registration_request.py +++ b/zitadel_client/models/user_service_verify_u2_f_registration_request.py @@ -18,7 +18,7 @@ import json from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict +from typing import Any, ClassVar, Dict, Optional from typing import Optional, Set from typing_extensions import Self @@ -26,10 +26,10 @@ class UserServiceVerifyU2FRegistrationRequest(BaseModel): """ UserServiceVerifyU2FRegistrationRequest """ # noqa: E501 - user_id: StrictStr = Field(alias="userId") - u2f_id: StrictStr = Field(alias="u2fId") - public_key_credential: Dict[str, Any] = Field(description="`Struct` represents a structured data value, consisting of fields which map to dynamically typed values. In some languages, `Struct` might be supported by a native representation. For example, in scripting languages like JS a struct is represented as an object. The details of that representation are described together with the proto support for the language. The JSON representation for `Struct` is JSON object.", alias="publicKeyCredential") - token_name: StrictStr = Field(alias="tokenName") + user_id: Optional[StrictStr] = Field(default=None, alias="userId") + u2f_id: Optional[StrictStr] = Field(default=None, alias="u2fId") + public_key_credential: Optional[Dict[str, Any]] = Field(default=None, description="`Struct` represents a structured data value, consisting of fields which map to dynamically typed values. In some languages, `Struct` might be supported by a native representation. For example, in scripting languages like JS a struct is represented as an object. The details of that representation are described together with the proto support for the language. The JSON representation for `Struct` is JSON object.", alias="publicKeyCredential") + token_name: Optional[StrictStr] = Field(default=None, alias="tokenName") __properties: ClassVar[List[str]] = ["userId", "u2fId", "publicKeyCredential", "tokenName"] model_config = ConfigDict( diff --git a/zitadel_client/models/web_key_service_activate_web_key_request.py b/zitadel_client/models/web_key_service_activate_web_key_request.py index 79b7123..08099bf 100644 --- a/zitadel_client/models/web_key_service_activate_web_key_request.py +++ b/zitadel_client/models/web_key_service_activate_web_key_request.py @@ -18,7 +18,7 @@ import json from pydantic import BaseModel, ConfigDict, StrictStr -from typing import Any, ClassVar, Dict +from typing import Any, ClassVar, Dict, Optional from typing import Optional, Set from typing_extensions import Self @@ -26,7 +26,7 @@ class WebKeyServiceActivateWebKeyRequest(BaseModel): """ WebKeyServiceActivateWebKeyRequest """ # noqa: E501 - id: StrictStr + id: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["id"] model_config = ConfigDict( diff --git a/zitadel_client/models/web_key_service_any.py b/zitadel_client/models/web_key_service_any.py index 5368be9..4787e74 100644 --- a/zitadel_client/models/web_key_service_any.py +++ b/zitadel_client/models/web_key_service_any.py @@ -17,18 +17,18 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, StrictBytes, StrictStr +from pydantic import BaseModel, ConfigDict, Field, StrictBytes, StrictStr from typing import Any, ClassVar, Dict, List, Optional, Tuple, Union from typing import Optional, Set from typing_extensions import Self class WebKeyServiceAny(BaseModel): """ - Contains an arbitrary serialized message along with a @type that describes the type of the serialized message. + Contains an arbitrary serialized message along with a @type that describes the type of the serialized message, with an additional debug field for ConnectRPC error details. """ # noqa: E501 - type: Optional[StrictStr] = None - value: Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]] = None - debug: Optional[Dict[str, Any]] = None + type: Optional[StrictStr] = Field(default=None, description="A URL that acts as a globally unique identifier for the type of the serialized message. For example: `type.googleapis.com/google.rpc.ErrorInfo`. This is used to determine the schema of the data in the `value` field and is the discriminator for the `debug` field.") + value: Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]] = Field(default=None, description="The Protobuf message, serialized as bytes and base64-encoded. The specific message type is identified by the `type` field.") + debug: Optional[Any] = Field(default=None, description="Deserialized error detail payload. The 'type' field indicates the schema. This field is for easier debugging and should not be relied upon for application logic.") additional_properties: Dict[str, Any] = {} __properties: ClassVar[List[str]] = ["type", "value", "debug"] @@ -78,6 +78,11 @@ def to_dict(self) -> Dict[str, Any]: for _key, _value in self.additional_properties.items(): _dict[_key] = _value + # set to None if debug (nullable) is None + # and model_fields_set contains the field + if self.debug is None and "debug" in self.model_fields_set: + _dict['debug'] = None + return _dict @classmethod diff --git a/zitadel_client/models/web_key_service_connect_error.py b/zitadel_client/models/web_key_service_connect_error.py index 6125d40..9147cba 100644 --- a/zitadel_client/models/web_key_service_connect_error.py +++ b/zitadel_client/models/web_key_service_connect_error.py @@ -29,9 +29,9 @@ class WebKeyServiceConnectError(BaseModel): """ # noqa: E501 code: Optional[StrictStr] = Field(default=None, description="The status code, which should be an enum value of [google.rpc.Code][google.rpc.Code].") message: Optional[StrictStr] = Field(default=None, description="A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the [google.rpc.Status.details][google.rpc.Status.details] field, or localized by the client.") - detail: Optional[WebKeyServiceAny] = None + details: Optional[List[WebKeyServiceAny]] = Field(default=None, description="A list of messages that carry the error details. There is no limit on the number of messages.") additional_properties: Dict[str, Any] = {} - __properties: ClassVar[List[str]] = ["code", "message", "detail"] + __properties: ClassVar[List[str]] = ["code", "message", "details"] @field_validator('code') def code_validate_enum(cls, value): @@ -84,9 +84,13 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # override the default output from pydantic by calling `to_dict()` of detail - if self.detail: - _dict['detail'] = self.detail.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in details (list) + _items = [] + if self.details: + for _item_details in self.details: + if _item_details: + _items.append(_item_details.to_dict()) + _dict['details'] = _items # puts key-value pairs in additional_properties in the top level if self.additional_properties is not None: for _key, _value in self.additional_properties.items(): @@ -106,7 +110,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "code": obj.get("code"), "message": obj.get("message"), - "detail": WebKeyServiceAny.from_dict(obj["detail"]) if obj.get("detail") is not None else None + "details": [WebKeyServiceAny.from_dict(_item) for _item in obj["details"]] if obj.get("details") is not None else None }) # store additional fields in additional_properties for _key in obj.keys(): diff --git a/zitadel_client/models/web_key_service_delete_web_key_request.py b/zitadel_client/models/web_key_service_delete_web_key_request.py index 4c55dda..7bb830d 100644 --- a/zitadel_client/models/web_key_service_delete_web_key_request.py +++ b/zitadel_client/models/web_key_service_delete_web_key_request.py @@ -18,7 +18,7 @@ import json from pydantic import BaseModel, ConfigDict, StrictStr -from typing import Any, ClassVar, Dict +from typing import Any, ClassVar, Dict, Optional from typing import Optional, Set from typing_extensions import Self @@ -26,7 +26,7 @@ class WebKeyServiceDeleteWebKeyRequest(BaseModel): """ WebKeyServiceDeleteWebKeyRequest """ # noqa: E501 - id: StrictStr + id: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["id"] model_config = ConfigDict( diff --git a/zitadel_client/zitadel.py b/zitadel_client/zitadel.py index d383065..a5e3ff3 100644 --- a/zitadel_client/zitadel.py +++ b/zitadel_client/zitadel.py @@ -1,6 +1,7 @@ from types import TracebackType from typing import Callable, Optional, Type, TypeVar +from zitadel_client.api.action_service_api import ActionServiceApi from zitadel_client.api.beta_action_service_api import BetaActionServiceApi from zitadel_client.api.beta_app_service_api import BetaAppServiceApi from zitadel_client.api.beta_authorization_service_api import BetaAuthorizationServiceApi @@ -24,7 +25,6 @@ from zitadel_client.api.settings_service_api import SettingsServiceApi from zitadel_client.api.user_service_api import UserServiceApi from zitadel_client.api.web_key_service_api import WebKeyServiceApi -from zitadel_client.api.action_service_api import ActionServiceApi from zitadel_client.api_client import ApiClient from zitadel_client.auth.authenticator import Authenticator from zitadel_client.auth.client_credentials_authenticator import ClientCredentialsAuthenticator