authentik-client 2026.2.0rc1.post1770131035__py3-none-any.whl → 2026.2.0rc1.post1770134694__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- authentik_client/__init__.py +5 -1
- authentik_client/api/core_api.py +58 -17
- authentik_client/api_client.py +1 -1
- authentik_client/configuration.py +1 -1
- authentik_client/models/__init__.py +2 -0
- authentik_client/models/user_recovery_email_request.py +92 -0
- authentik_client/models/user_recovery_link_request.py +89 -0
- {authentik_client-2026.2.0rc1.post1770131035.dist-info → authentik_client-2026.2.0rc1.post1770134694.dist-info}/METADATA +4 -2
- {authentik_client-2026.2.0rc1.post1770131035.dist-info → authentik_client-2026.2.0rc1.post1770134694.dist-info}/RECORD +12 -10
- {authentik_client-2026.2.0rc1.post1770131035.dist-info → authentik_client-2026.2.0rc1.post1770134694.dist-info}/WHEEL +0 -0
- {authentik_client-2026.2.0rc1.post1770131035.dist-info → authentik_client-2026.2.0rc1.post1770134694.dist-info}/licenses/LICENSE +0 -0
- {authentik_client-2026.2.0rc1.post1770131035.dist-info → authentik_client-2026.2.0rc1.post1770134694.dist-info}/top_level.txt +0 -0
authentik_client/__init__.py
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
""" # noqa: E501
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
__version__ = "2026.2.0-rc1-
|
|
18
|
+
__version__ = "2026.2.0-rc1-1770134694"
|
|
19
19
|
|
|
20
20
|
# Define package exports
|
|
21
21
|
__all__ = [
|
|
@@ -867,6 +867,8 @@ __all__ = [
|
|
|
867
867
|
"UserPath",
|
|
868
868
|
"UserPlexSourceConnection",
|
|
869
869
|
"UserPlexSourceConnectionRequest",
|
|
870
|
+
"UserRecoveryEmailRequest",
|
|
871
|
+
"UserRecoveryLinkRequest",
|
|
870
872
|
"UserRequest",
|
|
871
873
|
"UserSAMLSourceConnection",
|
|
872
874
|
"UserSAMLSourceConnectionRequest",
|
|
@@ -1749,6 +1751,8 @@ from authentik_client.models.user_password_set_request import UserPasswordSetReq
|
|
|
1749
1751
|
from authentik_client.models.user_path import UserPath as UserPath
|
|
1750
1752
|
from authentik_client.models.user_plex_source_connection import UserPlexSourceConnection as UserPlexSourceConnection
|
|
1751
1753
|
from authentik_client.models.user_plex_source_connection_request import UserPlexSourceConnectionRequest as UserPlexSourceConnectionRequest
|
|
1754
|
+
from authentik_client.models.user_recovery_email_request import UserRecoveryEmailRequest as UserRecoveryEmailRequest
|
|
1755
|
+
from authentik_client.models.user_recovery_link_request import UserRecoveryLinkRequest as UserRecoveryLinkRequest
|
|
1752
1756
|
from authentik_client.models.user_request import UserRequest as UserRequest
|
|
1753
1757
|
from authentik_client.models.user_saml_source_connection import UserSAMLSourceConnection as UserSAMLSourceConnection
|
|
1754
1758
|
from authentik_client.models.user_saml_source_connection_request import UserSAMLSourceConnectionRequest as UserSAMLSourceConnectionRequest
|
authentik_client/api/core_api.py
CHANGED
|
@@ -64,6 +64,8 @@ from authentik_client.models.user_account_request import UserAccountRequest
|
|
|
64
64
|
from authentik_client.models.user_consent import UserConsent
|
|
65
65
|
from authentik_client.models.user_password_set_request import UserPasswordSetRequest
|
|
66
66
|
from authentik_client.models.user_path import UserPath
|
|
67
|
+
from authentik_client.models.user_recovery_email_request import UserRecoveryEmailRequest
|
|
68
|
+
from authentik_client.models.user_recovery_link_request import UserRecoveryLinkRequest
|
|
67
69
|
from authentik_client.models.user_request import UserRequest
|
|
68
70
|
from authentik_client.models.user_service_account_request import UserServiceAccountRequest
|
|
69
71
|
from authentik_client.models.user_service_account_response import UserServiceAccountResponse
|
|
@@ -18971,6 +18973,7 @@ class CoreApi:
|
|
|
18971
18973
|
def core_users_recovery_create(
|
|
18972
18974
|
self,
|
|
18973
18975
|
id: Annotated[StrictInt, Field(description="A unique integer value identifying this User.")],
|
|
18976
|
+
user_recovery_link_request: Optional[UserRecoveryLinkRequest] = None,
|
|
18974
18977
|
_request_timeout: Union[
|
|
18975
18978
|
None,
|
|
18976
18979
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -18990,6 +18993,8 @@ class CoreApi:
|
|
|
18990
18993
|
|
|
18991
18994
|
:param id: A unique integer value identifying this User. (required)
|
|
18992
18995
|
:type id: int
|
|
18996
|
+
:param user_recovery_link_request:
|
|
18997
|
+
:type user_recovery_link_request: UserRecoveryLinkRequest
|
|
18993
18998
|
:param _request_timeout: timeout setting for this request. If one
|
|
18994
18999
|
number provided, it will be total request
|
|
18995
19000
|
timeout. It can also be a pair (tuple) of
|
|
@@ -19014,6 +19019,7 @@ class CoreApi:
|
|
|
19014
19019
|
|
|
19015
19020
|
_param = self._core_users_recovery_create_serialize(
|
|
19016
19021
|
id=id,
|
|
19022
|
+
user_recovery_link_request=user_recovery_link_request,
|
|
19017
19023
|
_request_auth=_request_auth,
|
|
19018
19024
|
_content_type=_content_type,
|
|
19019
19025
|
_headers=_headers,
|
|
@@ -19040,6 +19046,7 @@ class CoreApi:
|
|
|
19040
19046
|
def core_users_recovery_create_with_http_info(
|
|
19041
19047
|
self,
|
|
19042
19048
|
id: Annotated[StrictInt, Field(description="A unique integer value identifying this User.")],
|
|
19049
|
+
user_recovery_link_request: Optional[UserRecoveryLinkRequest] = None,
|
|
19043
19050
|
_request_timeout: Union[
|
|
19044
19051
|
None,
|
|
19045
19052
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -19059,6 +19066,8 @@ class CoreApi:
|
|
|
19059
19066
|
|
|
19060
19067
|
:param id: A unique integer value identifying this User. (required)
|
|
19061
19068
|
:type id: int
|
|
19069
|
+
:param user_recovery_link_request:
|
|
19070
|
+
:type user_recovery_link_request: UserRecoveryLinkRequest
|
|
19062
19071
|
:param _request_timeout: timeout setting for this request. If one
|
|
19063
19072
|
number provided, it will be total request
|
|
19064
19073
|
timeout. It can also be a pair (tuple) of
|
|
@@ -19083,6 +19092,7 @@ class CoreApi:
|
|
|
19083
19092
|
|
|
19084
19093
|
_param = self._core_users_recovery_create_serialize(
|
|
19085
19094
|
id=id,
|
|
19095
|
+
user_recovery_link_request=user_recovery_link_request,
|
|
19086
19096
|
_request_auth=_request_auth,
|
|
19087
19097
|
_content_type=_content_type,
|
|
19088
19098
|
_headers=_headers,
|
|
@@ -19109,6 +19119,7 @@ class CoreApi:
|
|
|
19109
19119
|
def core_users_recovery_create_without_preload_content(
|
|
19110
19120
|
self,
|
|
19111
19121
|
id: Annotated[StrictInt, Field(description="A unique integer value identifying this User.")],
|
|
19122
|
+
user_recovery_link_request: Optional[UserRecoveryLinkRequest] = None,
|
|
19112
19123
|
_request_timeout: Union[
|
|
19113
19124
|
None,
|
|
19114
19125
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -19128,6 +19139,8 @@ class CoreApi:
|
|
|
19128
19139
|
|
|
19129
19140
|
:param id: A unique integer value identifying this User. (required)
|
|
19130
19141
|
:type id: int
|
|
19142
|
+
:param user_recovery_link_request:
|
|
19143
|
+
:type user_recovery_link_request: UserRecoveryLinkRequest
|
|
19131
19144
|
:param _request_timeout: timeout setting for this request. If one
|
|
19132
19145
|
number provided, it will be total request
|
|
19133
19146
|
timeout. It can also be a pair (tuple) of
|
|
@@ -19152,6 +19165,7 @@ class CoreApi:
|
|
|
19152
19165
|
|
|
19153
19166
|
_param = self._core_users_recovery_create_serialize(
|
|
19154
19167
|
id=id,
|
|
19168
|
+
user_recovery_link_request=user_recovery_link_request,
|
|
19155
19169
|
_request_auth=_request_auth,
|
|
19156
19170
|
_content_type=_content_type,
|
|
19157
19171
|
_headers=_headers,
|
|
@@ -19173,6 +19187,7 @@ class CoreApi:
|
|
|
19173
19187
|
def _core_users_recovery_create_serialize(
|
|
19174
19188
|
self,
|
|
19175
19189
|
id,
|
|
19190
|
+
user_recovery_link_request,
|
|
19176
19191
|
_request_auth,
|
|
19177
19192
|
_content_type,
|
|
19178
19193
|
_headers,
|
|
@@ -19200,6 +19215,8 @@ class CoreApi:
|
|
|
19200
19215
|
# process the header parameters
|
|
19201
19216
|
# process the form parameters
|
|
19202
19217
|
# process the body parameter
|
|
19218
|
+
if user_recovery_link_request is not None:
|
|
19219
|
+
_body_params = user_recovery_link_request
|
|
19203
19220
|
|
|
19204
19221
|
|
|
19205
19222
|
# set the HTTP header `Accept`
|
|
@@ -19210,6 +19227,19 @@ class CoreApi:
|
|
|
19210
19227
|
]
|
|
19211
19228
|
)
|
|
19212
19229
|
|
|
19230
|
+
# set the HTTP header `Content-Type`
|
|
19231
|
+
if _content_type:
|
|
19232
|
+
_header_params['Content-Type'] = _content_type
|
|
19233
|
+
else:
|
|
19234
|
+
_default_content_type = (
|
|
19235
|
+
self.api_client.select_header_content_type(
|
|
19236
|
+
[
|
|
19237
|
+
'application/json'
|
|
19238
|
+
]
|
|
19239
|
+
)
|
|
19240
|
+
)
|
|
19241
|
+
if _default_content_type is not None:
|
|
19242
|
+
_header_params['Content-Type'] = _default_content_type
|
|
19213
19243
|
|
|
19214
19244
|
# authentication setting
|
|
19215
19245
|
_auth_settings: List[str] = [
|
|
@@ -19237,8 +19267,8 @@ class CoreApi:
|
|
|
19237
19267
|
@validate_call
|
|
19238
19268
|
def core_users_recovery_email_create(
|
|
19239
19269
|
self,
|
|
19240
|
-
email_stage: StrictStr,
|
|
19241
19270
|
id: Annotated[StrictInt, Field(description="A unique integer value identifying this User.")],
|
|
19271
|
+
user_recovery_email_request: UserRecoveryEmailRequest,
|
|
19242
19272
|
_request_timeout: Union[
|
|
19243
19273
|
None,
|
|
19244
19274
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -19256,10 +19286,10 @@ class CoreApi:
|
|
|
19256
19286
|
|
|
19257
19287
|
Send an email with a temporary link that a user can use to recover their account
|
|
19258
19288
|
|
|
19259
|
-
:param email_stage: (required)
|
|
19260
|
-
:type email_stage: str
|
|
19261
19289
|
:param id: A unique integer value identifying this User. (required)
|
|
19262
19290
|
:type id: int
|
|
19291
|
+
:param user_recovery_email_request: (required)
|
|
19292
|
+
:type user_recovery_email_request: UserRecoveryEmailRequest
|
|
19263
19293
|
:param _request_timeout: timeout setting for this request. If one
|
|
19264
19294
|
number provided, it will be total request
|
|
19265
19295
|
timeout. It can also be a pair (tuple) of
|
|
@@ -19283,8 +19313,8 @@ class CoreApi:
|
|
|
19283
19313
|
""" # noqa: E501
|
|
19284
19314
|
|
|
19285
19315
|
_param = self._core_users_recovery_email_create_serialize(
|
|
19286
|
-
email_stage=email_stage,
|
|
19287
19316
|
id=id,
|
|
19317
|
+
user_recovery_email_request=user_recovery_email_request,
|
|
19288
19318
|
_request_auth=_request_auth,
|
|
19289
19319
|
_content_type=_content_type,
|
|
19290
19320
|
_headers=_headers,
|
|
@@ -19310,8 +19340,8 @@ class CoreApi:
|
|
|
19310
19340
|
@validate_call
|
|
19311
19341
|
def core_users_recovery_email_create_with_http_info(
|
|
19312
19342
|
self,
|
|
19313
|
-
email_stage: StrictStr,
|
|
19314
19343
|
id: Annotated[StrictInt, Field(description="A unique integer value identifying this User.")],
|
|
19344
|
+
user_recovery_email_request: UserRecoveryEmailRequest,
|
|
19315
19345
|
_request_timeout: Union[
|
|
19316
19346
|
None,
|
|
19317
19347
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -19329,10 +19359,10 @@ class CoreApi:
|
|
|
19329
19359
|
|
|
19330
19360
|
Send an email with a temporary link that a user can use to recover their account
|
|
19331
19361
|
|
|
19332
|
-
:param email_stage: (required)
|
|
19333
|
-
:type email_stage: str
|
|
19334
19362
|
:param id: A unique integer value identifying this User. (required)
|
|
19335
19363
|
:type id: int
|
|
19364
|
+
:param user_recovery_email_request: (required)
|
|
19365
|
+
:type user_recovery_email_request: UserRecoveryEmailRequest
|
|
19336
19366
|
:param _request_timeout: timeout setting for this request. If one
|
|
19337
19367
|
number provided, it will be total request
|
|
19338
19368
|
timeout. It can also be a pair (tuple) of
|
|
@@ -19356,8 +19386,8 @@ class CoreApi:
|
|
|
19356
19386
|
""" # noqa: E501
|
|
19357
19387
|
|
|
19358
19388
|
_param = self._core_users_recovery_email_create_serialize(
|
|
19359
|
-
email_stage=email_stage,
|
|
19360
19389
|
id=id,
|
|
19390
|
+
user_recovery_email_request=user_recovery_email_request,
|
|
19361
19391
|
_request_auth=_request_auth,
|
|
19362
19392
|
_content_type=_content_type,
|
|
19363
19393
|
_headers=_headers,
|
|
@@ -19383,8 +19413,8 @@ class CoreApi:
|
|
|
19383
19413
|
@validate_call
|
|
19384
19414
|
def core_users_recovery_email_create_without_preload_content(
|
|
19385
19415
|
self,
|
|
19386
|
-
email_stage: StrictStr,
|
|
19387
19416
|
id: Annotated[StrictInt, Field(description="A unique integer value identifying this User.")],
|
|
19417
|
+
user_recovery_email_request: UserRecoveryEmailRequest,
|
|
19388
19418
|
_request_timeout: Union[
|
|
19389
19419
|
None,
|
|
19390
19420
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -19402,10 +19432,10 @@ class CoreApi:
|
|
|
19402
19432
|
|
|
19403
19433
|
Send an email with a temporary link that a user can use to recover their account
|
|
19404
19434
|
|
|
19405
|
-
:param email_stage: (required)
|
|
19406
|
-
:type email_stage: str
|
|
19407
19435
|
:param id: A unique integer value identifying this User. (required)
|
|
19408
19436
|
:type id: int
|
|
19437
|
+
:param user_recovery_email_request: (required)
|
|
19438
|
+
:type user_recovery_email_request: UserRecoveryEmailRequest
|
|
19409
19439
|
:param _request_timeout: timeout setting for this request. If one
|
|
19410
19440
|
number provided, it will be total request
|
|
19411
19441
|
timeout. It can also be a pair (tuple) of
|
|
@@ -19429,8 +19459,8 @@ class CoreApi:
|
|
|
19429
19459
|
""" # noqa: E501
|
|
19430
19460
|
|
|
19431
19461
|
_param = self._core_users_recovery_email_create_serialize(
|
|
19432
|
-
email_stage=email_stage,
|
|
19433
19462
|
id=id,
|
|
19463
|
+
user_recovery_email_request=user_recovery_email_request,
|
|
19434
19464
|
_request_auth=_request_auth,
|
|
19435
19465
|
_content_type=_content_type,
|
|
19436
19466
|
_headers=_headers,
|
|
@@ -19451,8 +19481,8 @@ class CoreApi:
|
|
|
19451
19481
|
|
|
19452
19482
|
def _core_users_recovery_email_create_serialize(
|
|
19453
19483
|
self,
|
|
19454
|
-
email_stage,
|
|
19455
19484
|
id,
|
|
19485
|
+
user_recovery_email_request,
|
|
19456
19486
|
_request_auth,
|
|
19457
19487
|
_content_type,
|
|
19458
19488
|
_headers,
|
|
@@ -19477,13 +19507,11 @@ class CoreApi:
|
|
|
19477
19507
|
if id is not None:
|
|
19478
19508
|
_path_params['id'] = id
|
|
19479
19509
|
# process the query parameters
|
|
19480
|
-
if email_stage is not None:
|
|
19481
|
-
|
|
19482
|
-
_query_params.append(('email_stage', email_stage))
|
|
19483
|
-
|
|
19484
19510
|
# process the header parameters
|
|
19485
19511
|
# process the form parameters
|
|
19486
19512
|
# process the body parameter
|
|
19513
|
+
if user_recovery_email_request is not None:
|
|
19514
|
+
_body_params = user_recovery_email_request
|
|
19487
19515
|
|
|
19488
19516
|
|
|
19489
19517
|
# set the HTTP header `Accept`
|
|
@@ -19494,6 +19522,19 @@ class CoreApi:
|
|
|
19494
19522
|
]
|
|
19495
19523
|
)
|
|
19496
19524
|
|
|
19525
|
+
# set the HTTP header `Content-Type`
|
|
19526
|
+
if _content_type:
|
|
19527
|
+
_header_params['Content-Type'] = _content_type
|
|
19528
|
+
else:
|
|
19529
|
+
_default_content_type = (
|
|
19530
|
+
self.api_client.select_header_content_type(
|
|
19531
|
+
[
|
|
19532
|
+
'application/json'
|
|
19533
|
+
]
|
|
19534
|
+
)
|
|
19535
|
+
)
|
|
19536
|
+
if _default_content_type is not None:
|
|
19537
|
+
_header_params['Content-Type'] = _default_content_type
|
|
19497
19538
|
|
|
19498
19539
|
# authentication setting
|
|
19499
19540
|
_auth_settings: List[str] = [
|
authentik_client/api_client.py
CHANGED
|
@@ -92,7 +92,7 @@ class ApiClient:
|
|
|
92
92
|
self.default_headers[header_name] = header_value
|
|
93
93
|
self.cookie = cookie
|
|
94
94
|
# Set default User-Agent.
|
|
95
|
-
self.user_agent = 'OpenAPI-Generator/2026.2.0-rc1-
|
|
95
|
+
self.user_agent = 'OpenAPI-Generator/2026.2.0-rc1-1770134694/python'
|
|
96
96
|
self.client_side_validation = configuration.client_side_validation
|
|
97
97
|
|
|
98
98
|
def __enter__(self):
|
|
@@ -516,7 +516,7 @@ class Configuration:
|
|
|
516
516
|
"OS: {env}\n"\
|
|
517
517
|
"Python Version: {pyversion}\n"\
|
|
518
518
|
"Version of the API: 2026.2.0-rc1\n"\
|
|
519
|
-
"SDK Package Version: 2026.2.0-rc1-
|
|
519
|
+
"SDK Package Version: 2026.2.0-rc1-1770134694".\
|
|
520
520
|
format(env=sys.platform, pyversion=sys.version)
|
|
521
521
|
|
|
522
522
|
def get_host_settings(self) -> List[HostSetting]:
|
|
@@ -829,6 +829,8 @@ from authentik_client.models.user_password_set_request import UserPasswordSetReq
|
|
|
829
829
|
from authentik_client.models.user_path import UserPath
|
|
830
830
|
from authentik_client.models.user_plex_source_connection import UserPlexSourceConnection
|
|
831
831
|
from authentik_client.models.user_plex_source_connection_request import UserPlexSourceConnectionRequest
|
|
832
|
+
from authentik_client.models.user_recovery_email_request import UserRecoveryEmailRequest
|
|
833
|
+
from authentik_client.models.user_recovery_link_request import UserRecoveryLinkRequest
|
|
832
834
|
from authentik_client.models.user_request import UserRequest
|
|
833
835
|
from authentik_client.models.user_saml_source_connection import UserSAMLSourceConnection
|
|
834
836
|
from authentik_client.models.user_saml_source_connection_request import UserSAMLSourceConnectionRequest
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
authentik
|
|
5
|
+
|
|
6
|
+
Making authentication simple.
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 2026.2.0-rc1
|
|
9
|
+
Contact: hello@goauthentik.io
|
|
10
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
11
|
+
|
|
12
|
+
Do not edit the class manually.
|
|
13
|
+
""" # noqa: E501
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
from __future__ import annotations
|
|
17
|
+
import pprint
|
|
18
|
+
import re # noqa: F401
|
|
19
|
+
import json
|
|
20
|
+
|
|
21
|
+
from pydantic import BaseModel, ConfigDict, Field
|
|
22
|
+
from typing import Any, ClassVar, Dict, List, Optional
|
|
23
|
+
from typing_extensions import Annotated
|
|
24
|
+
from uuid import UUID
|
|
25
|
+
from typing import Optional, Set
|
|
26
|
+
from typing_extensions import Self
|
|
27
|
+
|
|
28
|
+
class UserRecoveryEmailRequest(BaseModel):
|
|
29
|
+
"""
|
|
30
|
+
Payload to create and email a recovery link
|
|
31
|
+
""" # noqa: E501
|
|
32
|
+
token_duration: Optional[Annotated[str, Field(min_length=1, strict=True)]] = None
|
|
33
|
+
email_stage: UUID
|
|
34
|
+
__properties: ClassVar[List[str]] = ["token_duration", "email_stage"]
|
|
35
|
+
|
|
36
|
+
model_config = ConfigDict(
|
|
37
|
+
populate_by_name=True,
|
|
38
|
+
validate_assignment=True,
|
|
39
|
+
protected_namespaces=(),
|
|
40
|
+
)
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
def to_str(self) -> str:
|
|
44
|
+
"""Returns the string representation of the model using alias"""
|
|
45
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
|
46
|
+
|
|
47
|
+
def to_json(self) -> str:
|
|
48
|
+
"""Returns the JSON representation of the model using alias"""
|
|
49
|
+
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
|
50
|
+
return json.dumps(self.to_dict())
|
|
51
|
+
|
|
52
|
+
@classmethod
|
|
53
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
54
|
+
"""Create an instance of UserRecoveryEmailRequest from a JSON string"""
|
|
55
|
+
return cls.from_dict(json.loads(json_str))
|
|
56
|
+
|
|
57
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
58
|
+
"""Return the dictionary representation of the model using alias.
|
|
59
|
+
|
|
60
|
+
This has the following differences from calling pydantic's
|
|
61
|
+
`self.model_dump(by_alias=True)`:
|
|
62
|
+
|
|
63
|
+
* `None` is only added to the output dict for nullable fields that
|
|
64
|
+
were set at model initialization. Other fields with value `None`
|
|
65
|
+
are ignored.
|
|
66
|
+
"""
|
|
67
|
+
excluded_fields: Set[str] = set([
|
|
68
|
+
])
|
|
69
|
+
|
|
70
|
+
_dict = self.model_dump(
|
|
71
|
+
by_alias=True,
|
|
72
|
+
exclude=excluded_fields,
|
|
73
|
+
exclude_none=True,
|
|
74
|
+
)
|
|
75
|
+
return _dict
|
|
76
|
+
|
|
77
|
+
@classmethod
|
|
78
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
79
|
+
"""Create an instance of UserRecoveryEmailRequest from a dict"""
|
|
80
|
+
if obj is None:
|
|
81
|
+
return None
|
|
82
|
+
|
|
83
|
+
if not isinstance(obj, dict):
|
|
84
|
+
return cls.model_validate(obj)
|
|
85
|
+
|
|
86
|
+
_obj = cls.model_validate({
|
|
87
|
+
"token_duration": obj.get("token_duration"),
|
|
88
|
+
"email_stage": obj.get("email_stage")
|
|
89
|
+
})
|
|
90
|
+
return _obj
|
|
91
|
+
|
|
92
|
+
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
authentik
|
|
5
|
+
|
|
6
|
+
Making authentication simple.
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 2026.2.0-rc1
|
|
9
|
+
Contact: hello@goauthentik.io
|
|
10
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
11
|
+
|
|
12
|
+
Do not edit the class manually.
|
|
13
|
+
""" # noqa: E501
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
from __future__ import annotations
|
|
17
|
+
import pprint
|
|
18
|
+
import re # noqa: F401
|
|
19
|
+
import json
|
|
20
|
+
|
|
21
|
+
from pydantic import BaseModel, ConfigDict, Field
|
|
22
|
+
from typing import Any, ClassVar, Dict, List, Optional
|
|
23
|
+
from typing_extensions import Annotated
|
|
24
|
+
from typing import Optional, Set
|
|
25
|
+
from typing_extensions import Self
|
|
26
|
+
|
|
27
|
+
class UserRecoveryLinkRequest(BaseModel):
|
|
28
|
+
"""
|
|
29
|
+
Payload to create a recovery link
|
|
30
|
+
""" # noqa: E501
|
|
31
|
+
token_duration: Optional[Annotated[str, Field(min_length=1, strict=True)]] = None
|
|
32
|
+
__properties: ClassVar[List[str]] = ["token_duration"]
|
|
33
|
+
|
|
34
|
+
model_config = ConfigDict(
|
|
35
|
+
populate_by_name=True,
|
|
36
|
+
validate_assignment=True,
|
|
37
|
+
protected_namespaces=(),
|
|
38
|
+
)
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
def to_str(self) -> str:
|
|
42
|
+
"""Returns the string representation of the model using alias"""
|
|
43
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
|
44
|
+
|
|
45
|
+
def to_json(self) -> str:
|
|
46
|
+
"""Returns the JSON representation of the model using alias"""
|
|
47
|
+
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
|
48
|
+
return json.dumps(self.to_dict())
|
|
49
|
+
|
|
50
|
+
@classmethod
|
|
51
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
52
|
+
"""Create an instance of UserRecoveryLinkRequest from a JSON string"""
|
|
53
|
+
return cls.from_dict(json.loads(json_str))
|
|
54
|
+
|
|
55
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
56
|
+
"""Return the dictionary representation of the model using alias.
|
|
57
|
+
|
|
58
|
+
This has the following differences from calling pydantic's
|
|
59
|
+
`self.model_dump(by_alias=True)`:
|
|
60
|
+
|
|
61
|
+
* `None` is only added to the output dict for nullable fields that
|
|
62
|
+
were set at model initialization. Other fields with value `None`
|
|
63
|
+
are ignored.
|
|
64
|
+
"""
|
|
65
|
+
excluded_fields: Set[str] = set([
|
|
66
|
+
])
|
|
67
|
+
|
|
68
|
+
_dict = self.model_dump(
|
|
69
|
+
by_alias=True,
|
|
70
|
+
exclude=excluded_fields,
|
|
71
|
+
exclude_none=True,
|
|
72
|
+
)
|
|
73
|
+
return _dict
|
|
74
|
+
|
|
75
|
+
@classmethod
|
|
76
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
77
|
+
"""Create an instance of UserRecoveryLinkRequest from a dict"""
|
|
78
|
+
if obj is None:
|
|
79
|
+
return None
|
|
80
|
+
|
|
81
|
+
if not isinstance(obj, dict):
|
|
82
|
+
return cls.model_validate(obj)
|
|
83
|
+
|
|
84
|
+
_obj = cls.model_validate({
|
|
85
|
+
"token_duration": obj.get("token_duration")
|
|
86
|
+
})
|
|
87
|
+
return _obj
|
|
88
|
+
|
|
89
|
+
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: authentik_client
|
|
3
|
-
Version: 2026.2.0rc1.
|
|
3
|
+
Version: 2026.2.0rc1.post1770134694
|
|
4
4
|
Summary: authentik
|
|
5
5
|
Home-page:
|
|
6
6
|
Author: authentik Team
|
|
@@ -36,7 +36,7 @@ This repo contains a generated API client to talk with authentik's API from Pyth
|
|
|
36
36
|
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
|
37
37
|
|
|
38
38
|
- API version: 2026.2.0-rc1
|
|
39
|
-
- Package version: 2026.2.0-rc1-
|
|
39
|
+
- Package version: 2026.2.0-rc1-1770134694
|
|
40
40
|
- Generator version: 7.19.0
|
|
41
41
|
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
|
|
42
42
|
|
|
@@ -2046,6 +2046,8 @@ Class | Method | HTTP request | Description
|
|
|
2046
2046
|
- [UserPath](docs/UserPath.md)
|
|
2047
2047
|
- [UserPlexSourceConnection](docs/UserPlexSourceConnection.md)
|
|
2048
2048
|
- [UserPlexSourceConnectionRequest](docs/UserPlexSourceConnectionRequest.md)
|
|
2049
|
+
- [UserRecoveryEmailRequest](docs/UserRecoveryEmailRequest.md)
|
|
2050
|
+
- [UserRecoveryLinkRequest](docs/UserRecoveryLinkRequest.md)
|
|
2049
2051
|
- [UserRequest](docs/UserRequest.md)
|
|
2050
2052
|
- [UserSAMLSourceConnection](docs/UserSAMLSourceConnection.md)
|
|
2051
2053
|
- [UserSAMLSourceConnectionRequest](docs/UserSAMLSourceConnectionRequest.md)
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
authentik_client/__init__.py,sha256=
|
|
2
|
-
authentik_client/api_client.py,sha256=
|
|
1
|
+
authentik_client/__init__.py,sha256=V7ZD8ju0vil6vKdWZNPsEamshthp9OOgDh0CVGZsiec,124789
|
|
2
|
+
authentik_client/api_client.py,sha256=41RFEzFzISI52zlhUwVTiD0mhw7lOucQAoeH_6c4Aaw,27785
|
|
3
3
|
authentik_client/api_response.py,sha256=eMxw1mpmJcoGZ3gs9z6jM4oYoZ10Gjk333s9sKxGv7s,652
|
|
4
|
-
authentik_client/configuration.py,sha256=
|
|
4
|
+
authentik_client/configuration.py,sha256=tOkfEJ5dN0nZZe1XlbKe_hN3CSRcRRqobPH-mmUIKa4,18484
|
|
5
5
|
authentik_client/exceptions.py,sha256=Zl9klN9b-toKdeQ8skUpsENCpRsKPtN8jGzv9XWWFgg,6504
|
|
6
6
|
authentik_client/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
7
7
|
authentik_client/rest.py,sha256=b8zllTu-p05_kRnQfqpXFGAhNKc8v-QTQHviZHSBymE,9623
|
|
8
8
|
authentik_client/api/__init__.py,sha256=Hd_8S5nHCJg9T8IlhvCuq96ZRZS0og04Lu9sohJSnHk,1386
|
|
9
9
|
authentik_client/api/admin_api.py,sha256=9UVKm3rIIK6Fy1h91X1UC3dXN2vm8CdOTCR3Ahx-lQY,145972
|
|
10
10
|
authentik_client/api/authenticators_api.py,sha256=rx3rwwnDSLmBVKE8IYes8SVy88DUmMO1-sYm_AKkFn4,952522
|
|
11
|
-
authentik_client/api/core_api.py,sha256=
|
|
11
|
+
authentik_client/api/core_api.py,sha256=wrmeTJS0EW2sdfc0r59IW9wkJ08Ct-T8gYKbizSMoYk,812585
|
|
12
12
|
authentik_client/api/crypto_api.py,sha256=Y-YjvPXDzTe5GDmmbUI9n28pOkBDSNluxUb5ql_h1Rk,118981
|
|
13
13
|
authentik_client/api/endpoints_api.py,sha256=bhuHnCzBW-cOyYgTi-WdP-D8DA_-P_RKnMyZopT9yaQ,647499
|
|
14
14
|
authentik_client/api/enterprise_api.py,sha256=vgtCg0LrXEUZEBSK0F-pgdZ-YtkfJu8ESl9rr9gWSJw,109858
|
|
@@ -30,7 +30,7 @@ authentik_client/api/ssf_api.py,sha256=wso3F_EpjuB5muj1nqFzw8NFNVxJ8tTne8QSf_JS7
|
|
|
30
30
|
authentik_client/api/stages_api.py,sha256=foRL30go4CEFF3qUJ16Blat_OToO3b1Mom74SlwoJmA,2388982
|
|
31
31
|
authentik_client/api/tasks_api.py,sha256=Qpg93bWBRJtWqmnwzG6IvOlXBgtFSzssYnaVqgCJwlk,119872
|
|
32
32
|
authentik_client/api/tenants_api.py,sha256=LW7vFyCuRhjJ5xH7Osf2-2vITcAaBhyrrYRzBynUFas,159935
|
|
33
|
-
authentik_client/models/__init__.py,sha256=
|
|
33
|
+
authentik_client/models/__init__.py,sha256=zT80QGeZF4lvg5jItLRKLkHaxMZV6zhm6M93j2tvBeo,73074
|
|
34
34
|
authentik_client/models/access_denied_challenge.py,sha256=7h-fIA1xr4xP1G67fXes5db1ZAaMF9XhJhmutgPq66U,4438
|
|
35
35
|
authentik_client/models/agent_authentication_response.py,sha256=9G7ySVMbcPWtH0YJy-ELqkFDFYJdG4Eqxy7svfer9Ng,2526
|
|
36
36
|
authentik_client/models/agent_config.py,sha256=WgNhp3VwtgZOGdBsg_qceQHwkPLabXZZ_6pVyQYe-Dk,5263
|
|
@@ -846,6 +846,8 @@ authentik_client/models/user_password_set_request.py,sha256=X8196sAPkjxraL_6UoYR
|
|
|
846
846
|
authentik_client/models/user_path.py,sha256=a_EYMeOM7N-qDkHNRXOcCOMrPgtv3uJh32YHt2vqUGU,2495
|
|
847
847
|
authentik_client/models/user_plex_source_connection.py,sha256=_axDtXSTFKkTfq6bthUQgZo_phMpgi5fzdvGOuxkz2U,3594
|
|
848
848
|
authentik_client/models/user_plex_source_connection_request.py,sha256=wego2fQzarXYe4rHPkCLJT0TRLYH0wAcbTx7kYRDY-0,2890
|
|
849
|
+
authentik_client/models/user_recovery_email_request.py,sha256=xFlVc95CTaGeZJCYP055_Wl0Oatzwhf-qs43k5w_990,2749
|
|
850
|
+
authentik_client/models/user_recovery_link_request.py,sha256=hhkOEp3Gxke1Oh69jRsAtKxcf94j-S_dnSxQ27jrJEk,2626
|
|
849
851
|
authentik_client/models/user_request.py,sha256=tY4fVw12kTFdQRQgFnGXaraLvinP460PPIsTeVKS7Tg,3980
|
|
850
852
|
authentik_client/models/user_saml_source_connection.py,sha256=mfu7QuvDZMDwnxsx9EfFdsoZT8ZRy86U85Bp7-yuSRI,3594
|
|
851
853
|
authentik_client/models/user_saml_source_connection_request.py,sha256=aC9uQYhFu2efNGdBWU6ydSgx7rPAZ99xqdLja-SloOc,2762
|
|
@@ -873,8 +875,8 @@ authentik_client/models/web_authn_device_type.py,sha256=mTcPBpVgIRtABWmXloXd96oA
|
|
|
873
875
|
authentik_client/models/worker.py,sha256=-Vu4iEV3H1X11OuXSIEI4-t5SaFS0gv5FVhtrTZOMrU,2629
|
|
874
876
|
authentik_client/models/ws_federation_provider.py,sha256=rEBKMMvND568aPnj5K4RDrxQ7YdyV_3EahhKdqXWJ-g,12034
|
|
875
877
|
authentik_client/models/ws_federation_provider_request.py,sha256=lXuod7qO_yOj-1FPbnXPh5kE6WUGzM4ZfRK3j3UIulE,7969
|
|
876
|
-
authentik_client-2026.2.0rc1.
|
|
877
|
-
authentik_client-2026.2.0rc1.
|
|
878
|
-
authentik_client-2026.2.0rc1.
|
|
879
|
-
authentik_client-2026.2.0rc1.
|
|
880
|
-
authentik_client-2026.2.0rc1.
|
|
878
|
+
authentik_client-2026.2.0rc1.post1770134694.dist-info/licenses/LICENSE,sha256=_ANh2dRwYEmvYN1KFWcawUKip_A4cVU8M7GMx82oq5Y,1080
|
|
879
|
+
authentik_client-2026.2.0rc1.post1770134694.dist-info/METADATA,sha256=EmVws5jvsh76bYT3rQA9ai49texOpcQqLhDML2hEV3U,226041
|
|
880
|
+
authentik_client-2026.2.0rc1.post1770134694.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
|
|
881
|
+
authentik_client-2026.2.0rc1.post1770134694.dist-info/top_level.txt,sha256=Flt5cPkht9FMHom7_FQi3Y9Aoqw5jlDOlkh_oP8r068,17
|
|
882
|
+
authentik_client-2026.2.0rc1.post1770134694.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|