Skip to content

Commit e4afb47

Browse files
Update API Client
### authentik (v 2026.5.0-rc1) --- #### Result --- No differences. Specifications are equivalent
1 parent de51d11 commit e4afb47

17 files changed

+56
-9
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ This repo contains a generated API client to talk with authentik's API from Pyth
1616
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
1717

1818
- API version: 2026.5.0-rc1
19-
- Package version: 2026.5.0-rc1-1773445570
19+
- Package version: 2026.5.0-rc1-1773519033
2020
- Generator version: 7.20.0
2121
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
2222

authentik_client/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
""" # noqa: E501
1616

1717

18-
__version__ = "2026.5.0-rc1-1773445570"
18+
__version__ = "2026.5.0-rc1-1773519033"
1919

2020
# Define package exports
2121
__all__ = [

authentik_client/api_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ def __init__(
9191
self.default_headers[header_name] = header_value
9292
self.cookie = cookie
9393
# Set default User-Agent.
94-
self.user_agent = 'OpenAPI-Generator/2026.5.0-rc1-1773445570/python'
94+
self.user_agent = 'OpenAPI-Generator/2026.5.0-rc1-1773519033/python'
9595
self.client_side_validation = configuration.client_side_validation
9696

9797
def __enter__(self):

authentik_client/configuration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -514,7 +514,7 @@ def to_debug_report(self) -> str:
514514
"OS: {env}\n"\
515515
"Python Version: {pyversion}\n"\
516516
"Version of the API: 2026.5.0-rc1\n"\
517-
"SDK Package Version: 2026.5.0-rc1-1773445570".\
517+
"SDK Package Version: 2026.5.0-rc1-1773519033".\
518518
format(env=sys.platform, pyversion=sys.version)
519519

520520
def get_host_settings(self) -> List[HostSetting]:

authentik_client/models/notification_transport.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,13 @@ class NotificationTransport(BaseModel):
3434
mode: Optional[NotificationTransportModeEnum] = None
3535
mode_verbose: StrictStr = Field(description="Return selected mode with a UI Label")
3636
webhook_url: Optional[StrictStr] = None
37+
webhook_ca: Optional[UUID] = Field(default=None, description="When set, the selected ceritifcate is used to validate the certificate of the webhook server.")
3738
webhook_mapping_body: Optional[UUID] = Field(default=None, description="Customize the body of the request. Mapping should return data that is JSON-serializable.")
3839
webhook_mapping_headers: Optional[UUID] = Field(default=None, description="Configure additional headers to be sent. Mapping should return a dictionary of key-value pairs")
3940
email_subject_prefix: Optional[StrictStr] = None
4041
email_template: Optional[StrictStr] = None
4142
send_once: Optional[StrictBool] = Field(default=None, description="Only send notification once, for example when sending a webhook into a chat channel.")
42-
__properties: ClassVar[List[str]] = ["pk", "name", "mode", "mode_verbose", "webhook_url", "webhook_mapping_body", "webhook_mapping_headers", "email_subject_prefix", "email_template", "send_once"]
43+
__properties: ClassVar[List[str]] = ["pk", "name", "mode", "mode_verbose", "webhook_url", "webhook_ca", "webhook_mapping_body", "webhook_mapping_headers", "email_subject_prefix", "email_template", "send_once"]
4344

4445
model_config = ConfigDict(
4546
populate_by_name=True,
@@ -84,6 +85,11 @@ def to_dict(self) -> Dict[str, Any]:
8485
exclude=excluded_fields,
8586
exclude_none=True,
8687
)
88+
# set to None if webhook_ca (nullable) is None
89+
# and model_fields_set contains the field
90+
if self.webhook_ca is None and "webhook_ca" in self.model_fields_set:
91+
_dict['webhook_ca'] = None
92+
8793
# set to None if webhook_mapping_body (nullable) is None
8894
# and model_fields_set contains the field
8995
if self.webhook_mapping_body is None and "webhook_mapping_body" in self.model_fields_set:
@@ -111,6 +117,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
111117
"mode": obj.get("mode"),
112118
"mode_verbose": obj.get("mode_verbose"),
113119
"webhook_url": obj.get("webhook_url"),
120+
"webhook_ca": obj.get("webhook_ca"),
114121
"webhook_mapping_body": obj.get("webhook_mapping_body"),
115122
"webhook_mapping_headers": obj.get("webhook_mapping_headers"),
116123
"email_subject_prefix": obj.get("email_subject_prefix"),

authentik_client/models/notification_transport_request.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,13 @@ class NotificationTransportRequest(BaseModel):
3333
name: Annotated[str, Field(min_length=1, strict=True)]
3434
mode: Optional[NotificationTransportModeEnum] = None
3535
webhook_url: Optional[StrictStr] = None
36+
webhook_ca: Optional[UUID] = Field(default=None, description="When set, the selected ceritifcate is used to validate the certificate of the webhook server.")
3637
webhook_mapping_body: Optional[UUID] = Field(default=None, description="Customize the body of the request. Mapping should return data that is JSON-serializable.")
3738
webhook_mapping_headers: Optional[UUID] = Field(default=None, description="Configure additional headers to be sent. Mapping should return a dictionary of key-value pairs")
3839
email_subject_prefix: Optional[StrictStr] = None
3940
email_template: Optional[Annotated[str, Field(min_length=1, strict=True)]] = None
4041
send_once: Optional[StrictBool] = Field(default=None, description="Only send notification once, for example when sending a webhook into a chat channel.")
41-
__properties: ClassVar[List[str]] = ["name", "mode", "webhook_url", "webhook_mapping_body", "webhook_mapping_headers", "email_subject_prefix", "email_template", "send_once"]
42+
__properties: ClassVar[List[str]] = ["name", "mode", "webhook_url", "webhook_ca", "webhook_mapping_body", "webhook_mapping_headers", "email_subject_prefix", "email_template", "send_once"]
4243

4344
model_config = ConfigDict(
4445
populate_by_name=True,
@@ -79,6 +80,11 @@ def to_dict(self) -> Dict[str, Any]:
7980
exclude=excluded_fields,
8081
exclude_none=True,
8182
)
83+
# set to None if webhook_ca (nullable) is None
84+
# and model_fields_set contains the field
85+
if self.webhook_ca is None and "webhook_ca" in self.model_fields_set:
86+
_dict['webhook_ca'] = None
87+
8288
# set to None if webhook_mapping_body (nullable) is None
8389
# and model_fields_set contains the field
8490
if self.webhook_mapping_body is None and "webhook_mapping_body" in self.model_fields_set:
@@ -104,6 +110,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
104110
"name": obj.get("name"),
105111
"mode": obj.get("mode"),
106112
"webhook_url": obj.get("webhook_url"),
113+
"webhook_ca": obj.get("webhook_ca"),
107114
"webhook_mapping_body": obj.get("webhook_mapping_body"),
108115
"webhook_mapping_headers": obj.get("webhook_mapping_headers"),
109116
"email_subject_prefix": obj.get("email_subject_prefix"),

authentik_client/models/patched_notification_transport_request.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,13 @@ class PatchedNotificationTransportRequest(BaseModel):
3333
name: Optional[Annotated[str, Field(min_length=1, strict=True)]] = None
3434
mode: Optional[NotificationTransportModeEnum] = None
3535
webhook_url: Optional[StrictStr] = None
36+
webhook_ca: Optional[UUID] = Field(default=None, description="When set, the selected ceritifcate is used to validate the certificate of the webhook server.")
3637
webhook_mapping_body: Optional[UUID] = Field(default=None, description="Customize the body of the request. Mapping should return data that is JSON-serializable.")
3738
webhook_mapping_headers: Optional[UUID] = Field(default=None, description="Configure additional headers to be sent. Mapping should return a dictionary of key-value pairs")
3839
email_subject_prefix: Optional[StrictStr] = None
3940
email_template: Optional[Annotated[str, Field(min_length=1, strict=True)]] = None
4041
send_once: Optional[StrictBool] = Field(default=None, description="Only send notification once, for example when sending a webhook into a chat channel.")
41-
__properties: ClassVar[List[str]] = ["name", "mode", "webhook_url", "webhook_mapping_body", "webhook_mapping_headers", "email_subject_prefix", "email_template", "send_once"]
42+
__properties: ClassVar[List[str]] = ["name", "mode", "webhook_url", "webhook_ca", "webhook_mapping_body", "webhook_mapping_headers", "email_subject_prefix", "email_template", "send_once"]
4243

4344
model_config = ConfigDict(
4445
populate_by_name=True,
@@ -79,6 +80,11 @@ def to_dict(self) -> Dict[str, Any]:
7980
exclude=excluded_fields,
8081
exclude_none=True,
8182
)
83+
# set to None if webhook_ca (nullable) is None
84+
# and model_fields_set contains the field
85+
if self.webhook_ca is None and "webhook_ca" in self.model_fields_set:
86+
_dict['webhook_ca'] = None
87+
8288
# set to None if webhook_mapping_body (nullable) is None
8389
# and model_fields_set contains the field
8490
if self.webhook_mapping_body is None and "webhook_mapping_body" in self.model_fields_set:
@@ -104,6 +110,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
104110
"name": obj.get("name"),
105111
"mode": obj.get("mode"),
106112
"webhook_url": obj.get("webhook_url"),
113+
"webhook_ca": obj.get("webhook_ca"),
107114
"webhook_mapping_body": obj.get("webhook_mapping_body"),
108115
"webhook_mapping_headers": obj.get("webhook_mapping_headers"),
109116
"email_subject_prefix": obj.get("email_subject_prefix"),

docs/NotificationTransport.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ Name | Type | Description | Notes
1111
**mode** | [**NotificationTransportModeEnum**](NotificationTransportModeEnum.md) | | [optional]
1212
**mode_verbose** | **str** | Return selected mode with a UI Label | [readonly]
1313
**webhook_url** | **str** | | [optional]
14+
**webhook_ca** | **UUID** | When set, the selected ceritifcate is used to validate the certificate of the webhook server. | [optional]
1415
**webhook_mapping_body** | **UUID** | Customize the body of the request. Mapping should return data that is JSON-serializable. | [optional]
1516
**webhook_mapping_headers** | **UUID** | Configure additional headers to be sent. Mapping should return a dictionary of key-value pairs | [optional]
1617
**email_subject_prefix** | **str** | | [optional]

docs/NotificationTransportRequest.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ Name | Type | Description | Notes
99
**name** | **str** | |
1010
**mode** | [**NotificationTransportModeEnum**](NotificationTransportModeEnum.md) | | [optional]
1111
**webhook_url** | **str** | | [optional]
12+
**webhook_ca** | **UUID** | When set, the selected ceritifcate is used to validate the certificate of the webhook server. | [optional]
1213
**webhook_mapping_body** | **UUID** | Customize the body of the request. Mapping should return data that is JSON-serializable. | [optional]
1314
**webhook_mapping_headers** | **UUID** | Configure additional headers to be sent. Mapping should return a dictionary of key-value pairs | [optional]
1415
**email_subject_prefix** | **str** | | [optional]

docs/PatchedNotificationTransportRequest.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ Name | Type | Description | Notes
99
**name** | **str** | | [optional]
1010
**mode** | [**NotificationTransportModeEnum**](NotificationTransportModeEnum.md) | | [optional]
1111
**webhook_url** | **str** | | [optional]
12+
**webhook_ca** | **UUID** | When set, the selected ceritifcate is used to validate the certificate of the webhook server. | [optional]
1213
**webhook_mapping_body** | **UUID** | Customize the body of the request. Mapping should return data that is JSON-serializable. | [optional]
1314
**webhook_mapping_headers** | **UUID** | Configure additional headers to be sent. Mapping should return a dictionary of key-value pairs | [optional]
1415
**email_subject_prefix** | **str** | | [optional]

0 commit comments

Comments
 (0)