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

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions etc/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ services:
restart: 'no'
networks:
- storage
image: 'ghcr.io/zitadel/zitadel:v4.0.0-rc.1'
image: 'ghcr.io/zitadel/zitadel:v4.0.0'
command: 'init --config /example-zitadel-config.yaml --config /example-zitadel-secrets.yaml'
depends_on:
db:
Expand All @@ -34,7 +34,7 @@ services:
restart: 'no'
networks:
- storage
image: 'ghcr.io/zitadel/zitadel:v4.0.0-rc.1-debug'
image: 'ghcr.io/zitadel/zitadel:v4.0.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').\"" ]
Expand All @@ -55,7 +55,7 @@ services:
networks:
- backend
- storage
image: 'ghcr.io/zitadel/zitadel:v4.0.0-rc.1'
image: 'ghcr.io/zitadel/zitadel:v4.0.0'
command: >
start --config /example-zitadel-config.yaml
--config /example-zitadel-secrets.yaml
Expand Down
1 change: 1 addition & 0 deletions zitadel_client/api/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# flake8: noqa

# import apis into api package
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
Expand Down
1,339 changes: 1,339 additions & 0 deletions zitadel_client/api/action_service_api.py

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions zitadel_client/api/beta_organization_service_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ def _add_organization_domain_serialize(
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 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`
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.

:param beta_organization_service_create_organization_request: (required)
:type beta_organization_service_create_organization_request: BetaOrganizationServiceCreateOrganizationRequest
Expand Down Expand Up @@ -1347,7 +1347,7 @@ def _list_organization_metadata_serialize(
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 Returns a list of organizations that match the requesting filters. All filters are applied with an AND condition. Required permission: - `iam.read`
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
Expand Down
41 changes: 41 additions & 0 deletions zitadel_client/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,47 @@


# import models into model package
from zitadel_client.models.action_service_any import ActionServiceAny
from zitadel_client.models.action_service_condition import ActionServiceCondition
from zitadel_client.models.action_service_connect_error import ActionServiceConnectError
from zitadel_client.models.action_service_create_target_request import ActionServiceCreateTargetRequest
from zitadel_client.models.action_service_create_target_response import ActionServiceCreateTargetResponse
from zitadel_client.models.action_service_delete_target_request import ActionServiceDeleteTargetRequest
from zitadel_client.models.action_service_delete_target_response import ActionServiceDeleteTargetResponse
from zitadel_client.models.action_service_event_execution import ActionServiceEventExecution
from zitadel_client.models.action_service_execution import ActionServiceExecution
from zitadel_client.models.action_service_execution_field_name import ActionServiceExecutionFieldName
from zitadel_client.models.action_service_execution_search_filter import ActionServiceExecutionSearchFilter
from zitadel_client.models.action_service_execution_type import ActionServiceExecutionType
from zitadel_client.models.action_service_execution_type_filter import ActionServiceExecutionTypeFilter
from zitadel_client.models.action_service_function_execution import ActionServiceFunctionExecution
from zitadel_client.models.action_service_get_target_request import ActionServiceGetTargetRequest
from zitadel_client.models.action_service_get_target_response import ActionServiceGetTargetResponse
from zitadel_client.models.action_service_in_conditions_filter import ActionServiceInConditionsFilter
from zitadel_client.models.action_service_in_target_ids_filter import ActionServiceInTargetIDsFilter
from zitadel_client.models.action_service_list_execution_functions_response import ActionServiceListExecutionFunctionsResponse
from zitadel_client.models.action_service_list_execution_methods_response import ActionServiceListExecutionMethodsResponse
from zitadel_client.models.action_service_list_execution_services_response import ActionServiceListExecutionServicesResponse
from zitadel_client.models.action_service_list_executions_request import ActionServiceListExecutionsRequest
from zitadel_client.models.action_service_list_executions_response import ActionServiceListExecutionsResponse
from zitadel_client.models.action_service_list_targets_request import ActionServiceListTargetsRequest
from zitadel_client.models.action_service_list_targets_response import ActionServiceListTargetsResponse
from zitadel_client.models.action_service_pagination_request import ActionServicePaginationRequest
from zitadel_client.models.action_service_pagination_response import ActionServicePaginationResponse
from zitadel_client.models.action_service_rest_call import ActionServiceRESTCall
from zitadel_client.models.action_service_rest_webhook import ActionServiceRESTWebhook
from zitadel_client.models.action_service_request_execution import ActionServiceRequestExecution
from zitadel_client.models.action_service_response_execution import ActionServiceResponseExecution
from zitadel_client.models.action_service_set_execution_request import ActionServiceSetExecutionRequest
from zitadel_client.models.action_service_set_execution_response import ActionServiceSetExecutionResponse
from zitadel_client.models.action_service_target import ActionServiceTarget
from zitadel_client.models.action_service_target_field_name import ActionServiceTargetFieldName
from zitadel_client.models.action_service_target_filter import ActionServiceTargetFilter
from zitadel_client.models.action_service_target_name_filter import ActionServiceTargetNameFilter
from zitadel_client.models.action_service_target_search_filter import ActionServiceTargetSearchFilter
from zitadel_client.models.action_service_text_filter_method import ActionServiceTextFilterMethod
from zitadel_client.models.action_service_update_target_request import ActionServiceUpdateTargetRequest
from zitadel_client.models.action_service_update_target_response import ActionServiceUpdateTargetResponse
from zitadel_client.models.beta_action_service_any import BetaActionServiceAny
from zitadel_client.models.beta_action_service_condition import BetaActionServiceCondition
from zitadel_client.models.beta_action_service_connect_error import BetaActionServiceConnectError
Expand Down
104 changes: 104 additions & 0 deletions zitadel_client/models/action_service_any.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,104 @@
# 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, 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.
""" # noqa: E501
type: Optional[StrictStr] = None
value: Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]] = None
debug: Optional[Dict[str, Any]] = None
additional_properties: Dict[str, Any] = {}
__properties: ClassVar[List[str]] = ["type", "value", "debug"]

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 ActionServiceAny 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.
* Fields in `self.additional_properties` are added to the output dict.
"""
excluded_fields: Set[str] = set([
"additional_properties",
])

_dict = self.model_dump(
by_alias=True,
exclude=excluded_fields,
exclude_none=True,
)
# 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():
_dict[_key] = _value

return _dict

@classmethod
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
"""Create an instance of ActionServiceAny from a dict"""
if obj is None:
return None

if not isinstance(obj, dict):
return cls.model_validate(obj)

_obj = cls.model_validate({
"type": obj.get("type"),
"value": obj.get("value"),
"debug": obj.get("debug")
})
# store additional fields in additional_properties
for _key in obj.keys():
if _key not in cls.__properties:
_obj.additional_properties[_key] = obj.get(_key)

return _obj


109 changes: 109 additions & 0 deletions zitadel_client/models/action_service_condition.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,109 @@
# 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
from typing import Any, ClassVar, Dict, Optional
from zitadel_client.models.action_service_event_execution import ActionServiceEventExecution
from zitadel_client.models.action_service_function_execution import ActionServiceFunctionExecution
from zitadel_client.models.action_service_request_execution import ActionServiceRequestExecution
from zitadel_client.models.action_service_response_execution import ActionServiceResponseExecution
from typing import Optional, Set
from typing_extensions import Self

class ActionServiceCondition(BaseModel):
"""
ActionServiceCondition
""" # noqa: E501
event: Optional[ActionServiceEventExecution] = None
function: Optional[ActionServiceFunctionExecution] = None
request: Optional[ActionServiceRequestExecution] = None
response: Optional[ActionServiceResponseExecution] = None
__properties: ClassVar[List[str]] = ["event", "function", "request", "response"]

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 ActionServiceCondition 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,
)
# override the default output from pydantic by calling `to_dict()` of event
if self.event:
_dict['event'] = self.event.to_dict()
# override the default output from pydantic by calling `to_dict()` of function
if self.function:
_dict['function'] = self.function.to_dict()
# override the default output from pydantic by calling `to_dict()` of request
if self.request:
_dict['request'] = self.request.to_dict()
# override the default output from pydantic by calling `to_dict()` of response
if self.response:
_dict['response'] = self.response.to_dict()
return _dict

@classmethod
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
"""Create an instance of ActionServiceCondition from a dict"""
if obj is None:
return None

if not isinstance(obj, dict):
return cls.model_validate(obj)

_obj = cls.model_validate({
"event": ActionServiceEventExecution.from_dict(obj["event"]) if obj.get("event") is not None else None,
"function": ActionServiceFunctionExecution.from_dict(obj["function"]) if obj.get("function") is not None else None,
"request": ActionServiceRequestExecution.from_dict(obj["request"]) if obj.get("request") is not None else None,
"response": ActionServiceResponseExecution.from_dict(obj["response"]) if obj.get("response") is not None else None
})
return _obj


Loading
Loading