Skip to content

Commit c80997e

Browse files
authored
feat(sdk): generate SDK for version v3.3.0 (#49)
1 parent a4d3c89 commit c80997e

4 files changed

Lines changed: 185 additions & 15 deletions

File tree

zitadel_client/api/feature_service_api.py

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1060,6 +1060,19 @@ def __feature_service_set_organization_features_serialize(
10601060
]
10611061
)
10621062

1063+
# set the HTTP header `Content-Type`
1064+
if _content_type:
1065+
_header_params['Content-Type'] = _content_type
1066+
else:
1067+
_default_content_type = (
1068+
self.api_client.select_header_content_type(
1069+
[
1070+
'application/json'
1071+
]
1072+
)
1073+
)
1074+
if _default_content_type is not None:
1075+
_header_params['Content-Type'] = _default_content_type
10631076

10641077
# authentication setting
10651078
_auth_settings: List[str] = [
@@ -1277,6 +1290,19 @@ def __feature_service_set_user_features_serialize(
12771290
]
12781291
)
12791292

1293+
# set the HTTP header `Content-Type`
1294+
if _content_type:
1295+
_header_params['Content-Type'] = _content_type
1296+
else:
1297+
_default_content_type = (
1298+
self.api_client.select_header_content_type(
1299+
[
1300+
'application/json'
1301+
]
1302+
)
1303+
)
1304+
if _default_content_type is not None:
1305+
_header_params['Content-Type'] = _default_content_type
12801306

12811307
# authentication setting
12821308
_auth_settings: List[str] = [

zitadel_client/api/session_service_api.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -355,9 +355,9 @@ def __session_service_get_session_serialize(
355355
_path_params['sessionId'] = session_id
356356
# process the query parameters
357357
if session_token is not None:
358-
358+
359359
_query_params.append(('sessionToken', session_token))
360-
360+
361361
# process the header parameters
362362
# process the form parameters
363363
# process the body parameter

zitadel_client/api/user_service_api.py

Lines changed: 155 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -422,6 +422,19 @@ def __user_service_add_otp_email_serialize(
422422
]
423423
)
424424

425+
# set the HTTP header `Content-Type`
426+
if _content_type:
427+
_header_params['Content-Type'] = _content_type
428+
else:
429+
_default_content_type = (
430+
self.api_client.select_header_content_type(
431+
[
432+
'application/json'
433+
]
434+
)
435+
)
436+
if _default_content_type is not None:
437+
_header_params['Content-Type'] = _default_content_type
425438

426439
# authentication setting
427440
_auth_settings: List[str] = [
@@ -524,6 +537,19 @@ def __user_service_add_otpsms_serialize(
524537
]
525538
)
526539

540+
# set the HTTP header `Content-Type`
541+
if _content_type:
542+
_header_params['Content-Type'] = _content_type
543+
else:
544+
_default_content_type = (
545+
self.api_client.select_header_content_type(
546+
[
547+
'application/json'
548+
]
549+
)
550+
)
551+
if _default_content_type is not None:
552+
_header_params['Content-Type'] = _default_content_type
527553

528554
# authentication setting
529555
_auth_settings: List[str] = [
@@ -556,7 +582,7 @@ def user_service_create_invite_code(
556582
) -> UserServiceCreateInviteCodeResponse:
557583
"""Create an invite code for a user
558584
559-
Create an invite code for a user to initialize their first authentication method (password, passkeys, IdP) depending on the organization's available methods.
585+
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.
560586
561587
:param user_id: (required)
562588
:type user_id: str
@@ -870,6 +896,19 @@ def __user_service_deactivate_user_serialize(
870896
]
871897
)
872898

899+
# set the HTTP header `Content-Type`
900+
if _content_type:
901+
_header_params['Content-Type'] = _content_type
902+
else:
903+
_default_content_type = (
904+
self.api_client.select_header_content_type(
905+
[
906+
'application/json'
907+
]
908+
)
909+
)
910+
if _default_content_type is not None:
911+
_header_params['Content-Type'] = _default_content_type
873912

874913
# authentication setting
875914
_auth_settings: List[str] = [
@@ -1176,6 +1215,19 @@ def __user_service_human_mfa_init_skipped_serialize(
11761215
]
11771216
)
11781217

1218+
# set the HTTP header `Content-Type`
1219+
if _content_type:
1220+
_header_params['Content-Type'] = _content_type
1221+
else:
1222+
_default_content_type = (
1223+
self.api_client.select_header_content_type(
1224+
[
1225+
'application/json'
1226+
]
1227+
)
1228+
)
1229+
if _default_content_type is not None:
1230+
_header_params['Content-Type'] = _default_content_type
11791231

11801232
# authentication setting
11811233
_auth_settings: List[str] = [
@@ -1277,13 +1329,13 @@ def __user_service_list_authentication_factors_serialize(
12771329
_path_params['userId'] = user_id
12781330
# process the query parameters
12791331
if auth_factors is not None:
1280-
1332+
12811333
_query_params.append(('authFactors', auth_factors))
1282-
1334+
12831335
if states is not None:
1284-
1336+
12851337
_query_params.append(('states', states))
1286-
1338+
12871339
# process the header parameters
12881340
# process the form parameters
12891341
# process the body parameter
@@ -1397,13 +1449,13 @@ def __user_service_list_authentication_method_types_serialize(
13971449
_path_params['userId'] = user_id
13981450
# process the query parameters
13991451
if domain_query_include_without_domain is not None:
1400-
1452+
14011453
_query_params.append(('domainQuery.includeWithoutDomain', domain_query_include_without_domain))
1402-
1454+
14031455
if domain_query_domain is not None:
1404-
1456+
14051457
_query_params.append(('domainQuery.domain', domain_query_domain))
1406-
1458+
14071459
# process the header parameters
14081460
# process the form parameters
14091461
# process the body parameter
@@ -1641,6 +1693,19 @@ def __user_service_list_passkeys_serialize(
16411693
]
16421694
)
16431695

1696+
# set the HTTP header `Content-Type`
1697+
if _content_type:
1698+
_header_params['Content-Type'] = _content_type
1699+
else:
1700+
_default_content_type = (
1701+
self.api_client.select_header_content_type(
1702+
[
1703+
'application/json'
1704+
]
1705+
)
1706+
)
1707+
if _default_content_type is not None:
1708+
_header_params['Content-Type'] = _default_content_type
16441709

16451710
# authentication setting
16461711
_auth_settings: List[str] = [
@@ -1859,6 +1924,19 @@ def __user_service_lock_user_serialize(
18591924
]
18601925
)
18611926

1927+
# set the HTTP header `Content-Type`
1928+
if _content_type:
1929+
_header_params['Content-Type'] = _content_type
1930+
else:
1931+
_default_content_type = (
1932+
self.api_client.select_header_content_type(
1933+
[
1934+
'application/json'
1935+
]
1936+
)
1937+
)
1938+
if _default_content_type is not None:
1939+
_header_params['Content-Type'] = _default_content_type
18621940

18631941
# authentication setting
18641942
_auth_settings: List[str] = [
@@ -2083,6 +2161,19 @@ def __user_service_reactivate_user_serialize(
20832161
]
20842162
)
20852163

2164+
# set the HTTP header `Content-Type`
2165+
if _content_type:
2166+
_header_params['Content-Type'] = _content_type
2167+
else:
2168+
_default_content_type = (
2169+
self.api_client.select_header_content_type(
2170+
[
2171+
'application/json'
2172+
]
2173+
)
2174+
)
2175+
if _default_content_type is not None:
2176+
_header_params['Content-Type'] = _default_content_type
20862177

20872178
# authentication setting
20882179
_auth_settings: List[str] = [
@@ -2307,6 +2398,19 @@ def __user_service_register_totp_serialize(
23072398
]
23082399
)
23092400

2401+
# set the HTTP header `Content-Type`
2402+
if _content_type:
2403+
_header_params['Content-Type'] = _content_type
2404+
else:
2405+
_default_content_type = (
2406+
self.api_client.select_header_content_type(
2407+
[
2408+
'application/json'
2409+
]
2410+
)
2411+
)
2412+
if _default_content_type is not None:
2413+
_header_params['Content-Type'] = _default_content_type
23102414

23112415
# authentication setting
23122416
_auth_settings: List[str] = [
@@ -2545,6 +2649,19 @@ def __user_service_remove_idp_link_serialize(
25452649
]
25462650
)
25472651

2652+
# set the HTTP header `Content-Type`
2653+
if _content_type:
2654+
_header_params['Content-Type'] = _content_type
2655+
else:
2656+
_default_content_type = (
2657+
self.api_client.select_header_content_type(
2658+
[
2659+
'application/json'
2660+
]
2661+
)
2662+
)
2663+
if _default_content_type is not None:
2664+
_header_params['Content-Type'] = _default_content_type
25482665

25492666
# authentication setting
25502667
_auth_settings: List[str] = [
@@ -2960,6 +3077,19 @@ def __user_service_remove_phone_serialize(
29603077
]
29613078
)
29623079

3080+
# set the HTTP header `Content-Type`
3081+
if _content_type:
3082+
_header_params['Content-Type'] = _content_type
3083+
else:
3084+
_default_content_type = (
3085+
self.api_client.select_header_content_type(
3086+
[
3087+
'application/json'
3088+
]
3089+
)
3090+
)
3091+
if _default_content_type is not None:
3092+
_header_params['Content-Type'] = _default_content_type
29633093

29643094
# authentication setting
29653095
_auth_settings: List[str] = [
@@ -3322,14 +3452,15 @@ def user_service_resend_invite_code(
33223452
self,
33233453
user_id: StrictStr,
33243454
) -> UserServiceResendInviteCodeResponse:
3325-
"""Resend an invite code for a user
3455+
"""(Deprecated) Resend an invite code for a user
33263456
3327-
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.
3457+
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.
33283458
33293459
:param user_id: (required)
33303460
:type user_id: str
33313461
:return: Returns the result object.
33323462
""" # noqa: E501
3463+
warnings.warn("POST /v2/users/{userId}/invite_code/resend is deprecated.", DeprecationWarning)
33333464

33343465
_param = self.__user_service_resend_invite_code_serialize(
33353466
user_id=user_id,
@@ -4344,6 +4475,19 @@ def __user_service_unlock_user_serialize(
43444475
]
43454476
)
43464477

4478+
# set the HTTP header `Content-Type`
4479+
if _content_type:
4480+
_header_params['Content-Type'] = _content_type
4481+
else:
4482+
_default_content_type = (
4483+
self.api_client.select_header_content_type(
4484+
[
4485+
'application/json'
4486+
]
4487+
)
4488+
)
4489+
if _default_content_type is not None:
4490+
_header_params['Content-Type'] = _default_content_type
43474491

43484492
# authentication setting
43494493
_auth_settings: List[str] = [

zitadel_client/models/user_service_send_invite_code.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ class UserServiceSendInviteCode(BaseModel):
2727
"""
2828
UserServiceSendInviteCode
2929
""" # noqa: E501
30-
url_template: Optional[Annotated[str, Field(min_length=1, strict=True, max_length=200)]] = Field(default=None, description="Optionally set a url_template, which will be used in the invite mail sent by ZITADEL to guide the user to your invitation page. If no template is set, the default ZITADEL url will be used. The following placeholders can be used: UserID, OrgID, Code", alias="urlTemplate")
31-
application_name: Optional[Annotated[str, Field(min_length=1, strict=True, max_length=200)]] = Field(default=None, description="Optionally set an application name, which will be used in the invite mail sent by ZITADEL. If no application name is set, ZITADEL will be used as default.", alias="applicationName")
30+
url_template: Optional[Annotated[str, Field(min_length=1, strict=True, max_length=200)]] = Field(default=None, description="Optionally set a url_template, which will be used in the invite mail sent by ZITADEL to guide the user to your invitation page. If no template is set and no previous code was created, the default ZITADEL url will be used. The following placeholders can be used: UserID, OrgID, Code", alias="urlTemplate")
31+
application_name: Optional[Annotated[str, Field(min_length=1, strict=True, max_length=200)]] = Field(default=None, description="Optionally set an application name, which will be used in the invite mail sent by ZITADEL. If no application name is set and no previous code was created, ZITADEL will be used as default.", alias="applicationName")
3232

3333
model_config = ConfigDict(
3434
populate_by_name=True,

0 commit comments

Comments
 (0)