Skip to content

Commit 8225102

Browse files
-e Update API Client
#### What's Changed --- ##### `GET` /tasks/tasks/{message_id}/ ###### Return Type: Changed response : **200 OK** * Changed content type : `application/json` New required properties: - `logs` - `previous_logs` New optional properties: - `messages` - `previous_messages` * Added property `logs` (array) Items (object): > Single log message with all context logged. * Property `timestamp` (string) * Property `log_level` (string) Enum values: * `critical` * `exception` * `error` * `warn` * `warning` * `info` * `debug` * `notset` * Property `logger` (string) * Property `event` (string) * Property `attributes` (object) * Added property `previous_logs` (array) * Deleted property `messages` (array) * Deleted property `previous_messages` (array) ##### `GET` /tasks/tasks/ ###### Return Type: Changed response : **200 OK** * Changed content type : `application/json` * Changed property `results` (array) Changed items (object): New required properties: - `logs` - `previous_logs` New optional properties: - `messages` - `previous_messages` * Added property `logs` (array) * Added property `previous_logs` (array) * Deleted property `messages` (array) * Deleted property `previous_messages` (array)
1 parent 3bb4cc3 commit 8225102

File tree

11 files changed

+43
-37
lines changed

11 files changed

+43
-37
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: 2025.10.0-rc1
19-
- Package version: 2025.10.0-rc1-1760098401
19+
- Package version: 2025.10.0-rc1-1760107121
2020
- Generator version: 7.15.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__ = "2025.10.0-rc1-1760098401"
18+
__version__ = "2025.10.0-rc1-1760107121"
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
@@ -92,7 +92,7 @@ def __init__(
9292
self.default_headers[header_name] = header_value
9393
self.cookie = cookie
9494
# Set default User-Agent.
95-
self.user_agent = 'OpenAPI-Generator/2025.10.0-rc1-1760098401/python'
95+
self.user_agent = 'OpenAPI-Generator/2025.10.0-rc1-1760107121/python'
9696
self.client_side_validation = configuration.client_side_validation
9797

9898
def __enter__(self):

authentik_client/configuration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -511,7 +511,7 @@ def to_debug_report(self) -> str:
511511
"OS: {env}\n"\
512512
"Python Version: {pyversion}\n"\
513513
"Version of the API: 2025.10.0-rc1\n"\
514-
"SDK Package Version: 2025.10.0-rc1-1760098401".\
514+
"SDK Package Version: 2025.10.0-rc1-1760107121".\
515515
format(env=sys.platform, pyversion=sys.version)
516516

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

authentik_client/models/task.py

Lines changed: 21 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,11 @@ class Task(BaseModel):
4444
rel_obj_model: StrictStr
4545
rel_obj_id: Optional[StrictStr] = None
4646
uid: StrictStr
47-
messages: List[LogEvent]
48-
previous_messages: List[LogEvent]
47+
logs: List[LogEvent]
48+
previous_logs: List[LogEvent]
4949
aggregated_status: TaskAggregatedStatusEnum
5050
description: Optional[StrictStr]
51-
__properties: ClassVar[List[str]] = ["message_id", "queue_name", "actor_name", "state", "mtime", "retries", "eta", "rel_obj_app_label", "rel_obj_model", "rel_obj_id", "uid", "messages", "previous_messages", "aggregated_status", "description"]
51+
__properties: ClassVar[List[str]] = ["message_id", "queue_name", "actor_name", "state", "mtime", "retries", "eta", "rel_obj_app_label", "rel_obj_model", "rel_obj_id", "uid", "logs", "previous_logs", "aggregated_status", "description"]
5252

5353
model_config = ConfigDict(
5454
populate_by_name=True,
@@ -84,11 +84,15 @@ def to_dict(self) -> Dict[str, Any]:
8484
* OpenAPI `readOnly` fields are excluded.
8585
* OpenAPI `readOnly` fields are excluded.
8686
* OpenAPI `readOnly` fields are excluded.
87+
* OpenAPI `readOnly` fields are excluded.
88+
* OpenAPI `readOnly` fields are excluded.
8789
"""
8890
excluded_fields: Set[str] = set([
8991
"rel_obj_app_label",
9092
"rel_obj_model",
9193
"uid",
94+
"logs",
95+
"previous_logs",
9296
"description",
9397
])
9498

@@ -97,20 +101,20 @@ def to_dict(self) -> Dict[str, Any]:
97101
exclude=excluded_fields,
98102
exclude_none=True,
99103
)
100-
# override the default output from pydantic by calling `to_dict()` of each item in messages (list)
104+
# override the default output from pydantic by calling `to_dict()` of each item in logs (list)
101105
_items = []
102-
if self.messages:
103-
for _item_messages in self.messages:
104-
if _item_messages:
105-
_items.append(_item_messages.to_dict())
106-
_dict['messages'] = _items
107-
# override the default output from pydantic by calling `to_dict()` of each item in previous_messages (list)
106+
if self.logs:
107+
for _item_logs in self.logs:
108+
if _item_logs:
109+
_items.append(_item_logs.to_dict())
110+
_dict['logs'] = _items
111+
# override the default output from pydantic by calling `to_dict()` of each item in previous_logs (list)
108112
_items = []
109-
if self.previous_messages:
110-
for _item_previous_messages in self.previous_messages:
111-
if _item_previous_messages:
112-
_items.append(_item_previous_messages.to_dict())
113-
_dict['previous_messages'] = _items
113+
if self.previous_logs:
114+
for _item_previous_logs in self.previous_logs:
115+
if _item_previous_logs:
116+
_items.append(_item_previous_logs.to_dict())
117+
_dict['previous_logs'] = _items
114118
# set to None if eta (nullable) is None
115119
# and model_fields_set contains the field
116120
if self.eta is None and "eta" in self.model_fields_set:
@@ -149,8 +153,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
149153
"rel_obj_model": obj.get("rel_obj_model"),
150154
"rel_obj_id": obj.get("rel_obj_id"),
151155
"uid": obj.get("uid"),
152-
"messages": [LogEvent.from_dict(_item) for _item in obj["messages"]] if obj.get("messages") is not None else None,
153-
"previous_messages": [LogEvent.from_dict(_item) for _item in obj["previous_messages"]] if obj.get("previous_messages") is not None else None,
156+
"logs": [LogEvent.from_dict(_item) for _item in obj["logs"]] if obj.get("logs") is not None else None,
157+
"previous_logs": [LogEvent.from_dict(_item) for _item in obj["previous_logs"]] if obj.get("previous_logs") is not None else None,
154158
"aggregated_status": obj.get("aggregated_status"),
155159
"description": obj.get("description")
156160
})

docs/Task.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ Name | Type | Description | Notes
1616
**rel_obj_model** | **str** | | [readonly]
1717
**rel_obj_id** | **str** | | [optional]
1818
**uid** | **str** | | [readonly]
19-
**messages** | [**List[LogEvent]**](LogEvent.md) | |
20-
**previous_messages** | [**List[LogEvent]**](LogEvent.md) | |
19+
**logs** | [**List[LogEvent]**](LogEvent.md) | | [readonly]
20+
**previous_logs** | [**List[LogEvent]**](LogEvent.md) | | [readonly]
2121
**aggregated_status** | [**TaskAggregatedStatusEnum**](TaskAggregatedStatusEnum.md) | |
2222
**description** | **str** | | [readonly]
2323

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "authentik_client"
3-
version = "2025.10.0-rc1-1760098401"
3+
version = "2025.10.0-rc1-1760107121"
44
description = "authentik"
55
authors = [
66
{name = "authentik Team",email = "[email protected]"},

schema.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50882,14 +50882,16 @@ components:
5088250882
uid:
5088350883
type: string
5088450884
readOnly: true
50885-
messages:
50885+
logs:
5088650886
type: array
5088750887
items:
5088850888
$ref: '#/components/schemas/LogEvent'
50889-
previous_messages:
50889+
readOnly: true
50890+
previous_logs:
5089050891
type: array
5089150892
items:
5089250893
$ref: '#/components/schemas/LogEvent'
50894+
readOnly: true
5089350895
aggregated_status:
5089450896
$ref: '#/components/schemas/TaskAggregatedStatusEnum'
5089550897
description:
@@ -50900,8 +50902,8 @@ components:
5090050902
- actor_name
5090150903
- aggregated_status
5090250904
- description
50903-
- messages
50904-
- previous_messages
50905+
- logs
50906+
- previous_logs
5090550907
- rel_obj_app_label
5090650908
- rel_obj_model
5090750909
- uid

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
# prerequisite: setuptools
2323
# http://pypi.python.org/pypi/setuptools
2424
NAME = "authentik-client"
25-
VERSION = "2025.10.0-rc1-1760098401"
25+
VERSION = "2025.10.0-rc1-1760107121"
2626
PYTHON_REQUIRES = ">= 3.9"
2727
REQUIRES = [
2828
"urllib3 >= 2.1.0, < 3.0.0",

test/test_paginated_task_list.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def make_instance(self, include_optional) -> PaginatedTaskList:
5757
rel_obj_model = '',
5858
rel_obj_id = '',
5959
uid = '',
60-
messages = [
60+
logs = [
6161
authentik_client.models.log_event.LogEvent(
6262
timestamp = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
6363
log_level = 'critical',
@@ -67,7 +67,7 @@ def make_instance(self, include_optional) -> PaginatedTaskList:
6767
'key' : null
6868
}, )
6969
],
70-
previous_messages = [
70+
previous_logs = [
7171
authentik_client.models.log_event.LogEvent(
7272
timestamp = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
7373
log_level = 'critical',
@@ -107,7 +107,7 @@ def make_instance(self, include_optional) -> PaginatedTaskList:
107107
rel_obj_model = '',
108108
rel_obj_id = '',
109109
uid = '',
110-
messages = [
110+
logs = [
111111
authentik_client.models.log_event.LogEvent(
112112
timestamp = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
113113
log_level = 'critical',
@@ -117,7 +117,7 @@ def make_instance(self, include_optional) -> PaginatedTaskList:
117117
'key' : null
118118
}, )
119119
],
120-
previous_messages = [
120+
previous_logs = [
121121
authentik_client.models.log_event.LogEvent(
122122
timestamp = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
123123
log_level = 'critical',

0 commit comments

Comments
 (0)