dfns-sdk 0.0.0.dev0__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.
- dfns_sdk/__init__.py +24 -0
- dfns_sdk/_internal/__init__.py +5 -0
- dfns_sdk/_internal/http_client.py +395 -0
- dfns_sdk/auth.py +137 -0
- dfns_sdk/base_auth_api.py +129 -0
- dfns_sdk/client.py +81 -0
- dfns_sdk/delegated_client.py +97 -0
- dfns_sdk/generated/__init__.py +47 -0
- dfns_sdk/generated/agreements/__init__.py +7 -0
- dfns_sdk/generated/agreements/client.py +55 -0
- dfns_sdk/generated/agreements/delegated_client.py +95 -0
- dfns_sdk/generated/agreements/types.py +20 -0
- dfns_sdk/generated/allocations/__init__.py +7 -0
- dfns_sdk/generated/allocations/client.py +118 -0
- dfns_sdk/generated/allocations/delegated_client.py +187 -0
- dfns_sdk/generated/allocations/types.py +69 -0
- dfns_sdk/generated/auth/__init__.py +7 -0
- dfns_sdk/generated/auth/client.py +1215 -0
- dfns_sdk/generated/auth/delegated_client.py +1825 -0
- dfns_sdk/generated/auth/types.py +702 -0
- dfns_sdk/generated/exchanges/__init__.py +7 -0
- dfns_sdk/generated/exchanges/client.py +209 -0
- dfns_sdk/generated/exchanges/delegated_client.py +341 -0
- dfns_sdk/generated/exchanges/types.py +96 -0
- dfns_sdk/generated/fee_sponsors/__init__.py +7 -0
- dfns_sdk/generated/fee_sponsors/client.py +161 -0
- dfns_sdk/generated/fee_sponsors/delegated_client.py +287 -0
- dfns_sdk/generated/fee_sponsors/types.py +89 -0
- dfns_sdk/generated/keys/__init__.py +7 -0
- dfns_sdk/generated/keys/client.py +310 -0
- dfns_sdk/generated/keys/delegated_client.py +518 -0
- dfns_sdk/generated/keys/types.py +229 -0
- dfns_sdk/generated/networks/__init__.py +7 -0
- dfns_sdk/generated/networks/client.py +176 -0
- dfns_sdk/generated/networks/delegated_client.py +274 -0
- dfns_sdk/generated/networks/types.py +77 -0
- dfns_sdk/generated/permissions/__init__.py +7 -0
- dfns_sdk/generated/permissions/client.py +185 -0
- dfns_sdk/generated/permissions/delegated_client.py +344 -0
- dfns_sdk/generated/permissions/types.py +107 -0
- dfns_sdk/generated/policies/__init__.py +7 -0
- dfns_sdk/generated/policies/client.py +187 -0
- dfns_sdk/generated/policies/delegated_client.py +311 -0
- dfns_sdk/generated/policies/types.py +70 -0
- dfns_sdk/generated/signers/__init__.py +7 -0
- dfns_sdk/generated/signers/client.py +45 -0
- dfns_sdk/generated/signers/delegated_client.py +56 -0
- dfns_sdk/generated/signers/types.py +13 -0
- dfns_sdk/generated/staking/__init__.py +7 -0
- dfns_sdk/generated/staking/client.py +142 -0
- dfns_sdk/generated/staking/delegated_client.py +211 -0
- dfns_sdk/generated/staking/types.py +64 -0
- dfns_sdk/generated/swaps/__init__.py +7 -0
- dfns_sdk/generated/swaps/client.py +118 -0
- dfns_sdk/generated/swaps/delegated_client.py +157 -0
- dfns_sdk/generated/swaps/types.py +99 -0
- dfns_sdk/generated/wallets/__init__.py +7 -0
- dfns_sdk/generated/wallets/client.py +805 -0
- dfns_sdk/generated/wallets/delegated_client.py +1231 -0
- dfns_sdk/generated/wallets/types.py +534 -0
- dfns_sdk/generated/webhooks/__init__.py +7 -0
- dfns_sdk/generated/webhooks/client.py +193 -0
- dfns_sdk/generated/webhooks/delegated_client.py +320 -0
- dfns_sdk/generated/webhooks/types.py +101 -0
- dfns_sdk/types.py +72 -0
- dfns_sdk-0.0.0.dev0.dist-info/METADATA +191 -0
- dfns_sdk-0.0.0.dev0.dist-info/RECORD +69 -0
- dfns_sdk-0.0.0.dev0.dist-info/WHEEL +4 -0
- dfns_sdk-0.0.0.dev0.dist-info/licenses/LICENSE +21 -0
|
@@ -0,0 +1,702 @@
|
|
|
1
|
+
"""Types for the auth domain."""
|
|
2
|
+
|
|
3
|
+
from typing import Any, Literal, NotRequired, Optional, TypedDict, Union
|
|
4
|
+
|
|
5
|
+
class CreateUserActionSignatureRequest(TypedDict, total=False):
|
|
6
|
+
"""createUserActionSignature request body."""
|
|
7
|
+
|
|
8
|
+
challenge_identifier: str
|
|
9
|
+
first_factor: TypedDict
|
|
10
|
+
second_factor: NotRequired[TypedDict]
|
|
11
|
+
|
|
12
|
+
class CreateUserActionSignatureResponse(TypedDict, total=False):
|
|
13
|
+
"""createUserActionSignature response."""
|
|
14
|
+
|
|
15
|
+
user_action: str
|
|
16
|
+
|
|
17
|
+
class CreateUserActionChallengeRequest(TypedDict, total=False):
|
|
18
|
+
"""createUserActionChallenge request body."""
|
|
19
|
+
|
|
20
|
+
user_action_server_kind: NotRequired[Literal["Api"]]
|
|
21
|
+
user_action_http_method: Literal["POST", "PUT", "DELETE", "GET"]
|
|
22
|
+
user_action_http_path: str
|
|
23
|
+
user_action_payload: str
|
|
24
|
+
|
|
25
|
+
class CreateUserActionChallengeResponse(TypedDict, total=False):
|
|
26
|
+
"""createUserActionChallenge response."""
|
|
27
|
+
|
|
28
|
+
challenge: str
|
|
29
|
+
challenge_identifier: str
|
|
30
|
+
rp: NotRequired[TypedDict]
|
|
31
|
+
supported_credential_kinds: list[TypedDict]
|
|
32
|
+
user_verification: Literal["required", "preferred", "discouraged"]
|
|
33
|
+
attestation: Literal["none", "indirect", "direct", "enterprise"]
|
|
34
|
+
allow_credentials: TypedDict
|
|
35
|
+
external_authentication_url: str
|
|
36
|
+
|
|
37
|
+
class ListAuditLogsQuery(TypedDict, total=False):
|
|
38
|
+
"""listAuditLogs query parameters."""
|
|
39
|
+
|
|
40
|
+
start_time: str
|
|
41
|
+
end_time: str
|
|
42
|
+
user_id: NotRequired[str]
|
|
43
|
+
|
|
44
|
+
class GetAuditLogResponse(TypedDict, total=False):
|
|
45
|
+
"""getAuditLog response."""
|
|
46
|
+
|
|
47
|
+
id: str
|
|
48
|
+
action: str
|
|
49
|
+
action_token: str
|
|
50
|
+
user_id: Any
|
|
51
|
+
username: Any
|
|
52
|
+
date_performed: str
|
|
53
|
+
first_factor_credential: TypedDict
|
|
54
|
+
|
|
55
|
+
class ListApplicationsResponse(TypedDict, total=False):
|
|
56
|
+
"""listApplications response."""
|
|
57
|
+
|
|
58
|
+
items: list[TypedDict]
|
|
59
|
+
|
|
60
|
+
class GetApplicationResponse(TypedDict, total=False):
|
|
61
|
+
"""getApplication response."""
|
|
62
|
+
|
|
63
|
+
app_id: str
|
|
64
|
+
kind: Literal["ServerSideApplication", "ClientSideApplication"]
|
|
65
|
+
org_id: str
|
|
66
|
+
expected_rp_id: NotRequired[str]
|
|
67
|
+
name: str
|
|
68
|
+
is_active: bool
|
|
69
|
+
expected_origin: NotRequired[str]
|
|
70
|
+
permission_assignments: list[TypedDict]
|
|
71
|
+
access_tokens: list[TypedDict]
|
|
72
|
+
|
|
73
|
+
class ListCredentialsResponse(TypedDict, total=False):
|
|
74
|
+
"""listCredentials response."""
|
|
75
|
+
|
|
76
|
+
items: list[TypedDict]
|
|
77
|
+
|
|
78
|
+
class CreateCredentialResponse(TypedDict, total=False):
|
|
79
|
+
"""createCredential response."""
|
|
80
|
+
|
|
81
|
+
kind: Literal["Fido2", "Key", "Password", "Totp", "RecoveryKey", "PasswordProtectedKey"]
|
|
82
|
+
credential_id: str
|
|
83
|
+
credential_uuid: str
|
|
84
|
+
date_created: str
|
|
85
|
+
is_active: bool
|
|
86
|
+
name: str
|
|
87
|
+
public_key: str
|
|
88
|
+
relying_party_id: str
|
|
89
|
+
origin: str
|
|
90
|
+
|
|
91
|
+
class CreateCredentialChallengeRequest(TypedDict, total=False):
|
|
92
|
+
"""createCredentialChallenge request body."""
|
|
93
|
+
|
|
94
|
+
kind: TypedDict
|
|
95
|
+
|
|
96
|
+
class ActivateCredentialRequest(TypedDict, total=False):
|
|
97
|
+
"""activateCredential request body."""
|
|
98
|
+
|
|
99
|
+
credential_uuid: str
|
|
100
|
+
|
|
101
|
+
class ActivateCredentialResponse(TypedDict, total=False):
|
|
102
|
+
"""activateCredential response."""
|
|
103
|
+
|
|
104
|
+
message: str
|
|
105
|
+
|
|
106
|
+
class DeactivateCredentialRequest(TypedDict, total=False):
|
|
107
|
+
"""deactivateCredential request body."""
|
|
108
|
+
|
|
109
|
+
credential_uuid: str
|
|
110
|
+
|
|
111
|
+
class DeactivateCredentialResponse(TypedDict, total=False):
|
|
112
|
+
"""deactivateCredential response."""
|
|
113
|
+
|
|
114
|
+
message: str
|
|
115
|
+
|
|
116
|
+
class CreateCredentialCodeRequest(TypedDict, total=False):
|
|
117
|
+
"""createCredentialCode request body."""
|
|
118
|
+
|
|
119
|
+
expiration: Union[str, int]
|
|
120
|
+
|
|
121
|
+
class CreateCredentialCodeResponse(TypedDict, total=False):
|
|
122
|
+
"""createCredentialCode response."""
|
|
123
|
+
|
|
124
|
+
code: str
|
|
125
|
+
expiration: str
|
|
126
|
+
|
|
127
|
+
class CreateCredentialChallengeWithCodeRequest(TypedDict, total=False):
|
|
128
|
+
"""createCredentialChallengeWithCode request body."""
|
|
129
|
+
|
|
130
|
+
credential_kind: Literal["Fido2", "Key", "Password", "Totp", "RecoveryKey", "PasswordProtectedKey"]
|
|
131
|
+
code: str
|
|
132
|
+
|
|
133
|
+
class CreateCredentialWithCodeResponse(TypedDict, total=False):
|
|
134
|
+
"""createCredentialWithCode response."""
|
|
135
|
+
|
|
136
|
+
kind: Literal["Fido2", "Key", "Password", "Totp", "RecoveryKey", "PasswordProtectedKey"]
|
|
137
|
+
credential_id: str
|
|
138
|
+
credential_uuid: str
|
|
139
|
+
date_created: str
|
|
140
|
+
is_active: bool
|
|
141
|
+
name: str
|
|
142
|
+
public_key: str
|
|
143
|
+
relying_party_id: str
|
|
144
|
+
origin: str
|
|
145
|
+
|
|
146
|
+
class CreateLoginChallengeRequest(TypedDict, total=False):
|
|
147
|
+
"""createLoginChallenge request body."""
|
|
148
|
+
|
|
149
|
+
username: NotRequired[str]
|
|
150
|
+
org_id: str
|
|
151
|
+
login_code: NotRequired[str]
|
|
152
|
+
|
|
153
|
+
class CreateLoginChallengeResponse(TypedDict, total=False):
|
|
154
|
+
"""createLoginChallenge response."""
|
|
155
|
+
|
|
156
|
+
challenge: str
|
|
157
|
+
challenge_identifier: str
|
|
158
|
+
rp: NotRequired[TypedDict]
|
|
159
|
+
supported_credential_kinds: list[TypedDict]
|
|
160
|
+
user_verification: Literal["required", "preferred", "discouraged"]
|
|
161
|
+
attestation: Literal["none", "indirect", "direct", "enterprise"]
|
|
162
|
+
allow_credentials: TypedDict
|
|
163
|
+
external_authentication_url: str
|
|
164
|
+
|
|
165
|
+
class DelegatedLoginRequest(TypedDict, total=False):
|
|
166
|
+
"""delegatedLogin request body."""
|
|
167
|
+
|
|
168
|
+
username: str
|
|
169
|
+
|
|
170
|
+
class DelegatedLoginResponse(TypedDict, total=False):
|
|
171
|
+
"""delegatedLogin response."""
|
|
172
|
+
|
|
173
|
+
token: str
|
|
174
|
+
|
|
175
|
+
class CompleteUserLoginRequest(TypedDict, total=False):
|
|
176
|
+
"""completeUserLogin request body."""
|
|
177
|
+
|
|
178
|
+
challenge_identifier: str
|
|
179
|
+
first_factor: TypedDict
|
|
180
|
+
second_factor: NotRequired[TypedDict]
|
|
181
|
+
|
|
182
|
+
class LogoutRequest(TypedDict, total=False):
|
|
183
|
+
"""logout request body."""
|
|
184
|
+
|
|
185
|
+
all_sessions: NotRequired[bool]
|
|
186
|
+
|
|
187
|
+
class LogoutResponse(TypedDict, total=False):
|
|
188
|
+
"""logout response."""
|
|
189
|
+
|
|
190
|
+
message: str
|
|
191
|
+
|
|
192
|
+
class SendLoginCodeRequest(TypedDict, total=False):
|
|
193
|
+
"""sendLoginCode request body."""
|
|
194
|
+
|
|
195
|
+
username: str
|
|
196
|
+
org_id: str
|
|
197
|
+
|
|
198
|
+
class SendLoginCodeResponse(TypedDict, total=False):
|
|
199
|
+
"""sendLoginCode response."""
|
|
200
|
+
|
|
201
|
+
message: str
|
|
202
|
+
|
|
203
|
+
class SocialLoginRequest(TypedDict, total=False):
|
|
204
|
+
"""socialLogin request body."""
|
|
205
|
+
|
|
206
|
+
org_id: NotRequired[str]
|
|
207
|
+
social_login_provider_kind: Literal["Oidc"]
|
|
208
|
+
id_token: str
|
|
209
|
+
|
|
210
|
+
class SocialLoginResponse(TypedDict, total=False):
|
|
211
|
+
"""socialLogin response."""
|
|
212
|
+
|
|
213
|
+
token: str
|
|
214
|
+
|
|
215
|
+
class CompleteSsoLoginRequest(TypedDict, total=False):
|
|
216
|
+
"""completeSsoLogin request body."""
|
|
217
|
+
|
|
218
|
+
code: str
|
|
219
|
+
state: str
|
|
220
|
+
|
|
221
|
+
class CompleteSsoLoginResponse(TypedDict, total=False):
|
|
222
|
+
"""completeSsoLogin response."""
|
|
223
|
+
|
|
224
|
+
token: str
|
|
225
|
+
|
|
226
|
+
class InitiateSsoLoginRequest(TypedDict, total=False):
|
|
227
|
+
"""initiateSsoLogin request body."""
|
|
228
|
+
|
|
229
|
+
org_id: str
|
|
230
|
+
client_id: str
|
|
231
|
+
redirect_uri: str
|
|
232
|
+
|
|
233
|
+
class InitiateSsoLoginResponse(TypedDict, total=False):
|
|
234
|
+
"""initiateSsoLogin response."""
|
|
235
|
+
|
|
236
|
+
sso_redirect_url: str
|
|
237
|
+
|
|
238
|
+
class ListPersonalAccessTokensResponse(TypedDict, total=False):
|
|
239
|
+
"""listPersonalAccessTokens response."""
|
|
240
|
+
|
|
241
|
+
items: list[TypedDict]
|
|
242
|
+
|
|
243
|
+
class CreatePersonalAccessTokenRequest(TypedDict, total=False):
|
|
244
|
+
"""createPersonalAccessToken request body."""
|
|
245
|
+
|
|
246
|
+
name: str
|
|
247
|
+
public_key: str
|
|
248
|
+
permission_id: NotRequired[str]
|
|
249
|
+
external_id: NotRequired[str]
|
|
250
|
+
days_valid: NotRequired[int]
|
|
251
|
+
seconds_valid: NotRequired[int]
|
|
252
|
+
|
|
253
|
+
class CreatePersonalAccessTokenResponse(TypedDict, total=False):
|
|
254
|
+
"""createPersonalAccessToken response."""
|
|
255
|
+
|
|
256
|
+
access_token: str
|
|
257
|
+
date_created: str
|
|
258
|
+
cred_id: str
|
|
259
|
+
is_active: bool
|
|
260
|
+
kind: Literal["Pat", "ServiceAccount", "Token", "Code", "Recovery", "Temp", "Application"]
|
|
261
|
+
linked_user_id: str
|
|
262
|
+
linked_app_id: str
|
|
263
|
+
name: str
|
|
264
|
+
org_id: str
|
|
265
|
+
public_key: str
|
|
266
|
+
token_id: str
|
|
267
|
+
permission_assignments: list[TypedDict]
|
|
268
|
+
|
|
269
|
+
class GetPersonalAccessTokenResponse(TypedDict, total=False):
|
|
270
|
+
"""getPersonalAccessToken response."""
|
|
271
|
+
|
|
272
|
+
access_token: NotRequired[str]
|
|
273
|
+
date_created: str
|
|
274
|
+
cred_id: str
|
|
275
|
+
is_active: bool
|
|
276
|
+
kind: Literal["Pat", "ServiceAccount", "Token", "Code", "Recovery", "Temp", "Application"]
|
|
277
|
+
linked_user_id: str
|
|
278
|
+
linked_app_id: str
|
|
279
|
+
name: str
|
|
280
|
+
org_id: str
|
|
281
|
+
permission_assignments: list[TypedDict]
|
|
282
|
+
public_key: str
|
|
283
|
+
token_id: str
|
|
284
|
+
|
|
285
|
+
class UpdatePersonalAccessTokenRequest(TypedDict, total=False):
|
|
286
|
+
"""updatePersonalAccessToken request body."""
|
|
287
|
+
|
|
288
|
+
name: NotRequired[str]
|
|
289
|
+
external_id: NotRequired[str]
|
|
290
|
+
|
|
291
|
+
class UpdatePersonalAccessTokenResponse(TypedDict, total=False):
|
|
292
|
+
"""updatePersonalAccessToken response."""
|
|
293
|
+
|
|
294
|
+
access_token: NotRequired[str]
|
|
295
|
+
date_created: str
|
|
296
|
+
cred_id: str
|
|
297
|
+
is_active: bool
|
|
298
|
+
kind: Literal["Pat", "ServiceAccount", "Token", "Code", "Recovery", "Temp", "Application"]
|
|
299
|
+
linked_user_id: str
|
|
300
|
+
linked_app_id: str
|
|
301
|
+
name: str
|
|
302
|
+
org_id: str
|
|
303
|
+
permission_assignments: list[TypedDict]
|
|
304
|
+
public_key: str
|
|
305
|
+
token_id: str
|
|
306
|
+
|
|
307
|
+
class DeletePersonalAccessTokenResponse(TypedDict, total=False):
|
|
308
|
+
"""deletePersonalAccessToken response."""
|
|
309
|
+
|
|
310
|
+
access_token: NotRequired[str]
|
|
311
|
+
date_created: str
|
|
312
|
+
cred_id: str
|
|
313
|
+
is_active: bool
|
|
314
|
+
kind: Literal["Pat", "ServiceAccount", "Token", "Code", "Recovery", "Temp", "Application"]
|
|
315
|
+
linked_user_id: str
|
|
316
|
+
linked_app_id: str
|
|
317
|
+
name: str
|
|
318
|
+
org_id: str
|
|
319
|
+
permission_assignments: list[TypedDict]
|
|
320
|
+
public_key: str
|
|
321
|
+
token_id: str
|
|
322
|
+
|
|
323
|
+
class ActivatePersonalAccessTokenResponse(TypedDict, total=False):
|
|
324
|
+
"""activatePersonalAccessToken response."""
|
|
325
|
+
|
|
326
|
+
access_token: NotRequired[str]
|
|
327
|
+
date_created: str
|
|
328
|
+
cred_id: str
|
|
329
|
+
is_active: bool
|
|
330
|
+
kind: Literal["Pat", "ServiceAccount", "Token", "Code", "Recovery", "Temp", "Application"]
|
|
331
|
+
linked_user_id: str
|
|
332
|
+
linked_app_id: str
|
|
333
|
+
name: str
|
|
334
|
+
org_id: str
|
|
335
|
+
permission_assignments: list[TypedDict]
|
|
336
|
+
public_key: str
|
|
337
|
+
token_id: str
|
|
338
|
+
|
|
339
|
+
class DeactivatePersonalAccessTokenResponse(TypedDict, total=False):
|
|
340
|
+
"""deactivatePersonalAccessToken response."""
|
|
341
|
+
|
|
342
|
+
access_token: NotRequired[str]
|
|
343
|
+
date_created: str
|
|
344
|
+
cred_id: str
|
|
345
|
+
is_active: bool
|
|
346
|
+
kind: Literal["Pat", "ServiceAccount", "Token", "Code", "Recovery", "Temp", "Application"]
|
|
347
|
+
linked_user_id: str
|
|
348
|
+
linked_app_id: str
|
|
349
|
+
name: str
|
|
350
|
+
org_id: str
|
|
351
|
+
permission_assignments: list[TypedDict]
|
|
352
|
+
public_key: str
|
|
353
|
+
token_id: str
|
|
354
|
+
|
|
355
|
+
class CreateDelegatedRecoveryChallengeRequest(TypedDict, total=False):
|
|
356
|
+
"""createDelegatedRecoveryChallenge request body."""
|
|
357
|
+
|
|
358
|
+
username: str
|
|
359
|
+
credential_id: str
|
|
360
|
+
|
|
361
|
+
class CreateDelegatedRecoveryChallengeResponse(TypedDict, total=False):
|
|
362
|
+
"""createDelegatedRecoveryChallenge response."""
|
|
363
|
+
|
|
364
|
+
user: TypedDict
|
|
365
|
+
temporary_authentication_token: str
|
|
366
|
+
challenge: str
|
|
367
|
+
rp: NotRequired[TypedDict]
|
|
368
|
+
supported_credential_kinds: TypedDict
|
|
369
|
+
authenticator_selection: TypedDict
|
|
370
|
+
attestation: Literal["none", "indirect", "direct", "enterprise"]
|
|
371
|
+
pub_key_cred_params: list[TypedDict]
|
|
372
|
+
exclude_credentials: list[TypedDict]
|
|
373
|
+
otp_url: str
|
|
374
|
+
allowed_recovery_credentials: list[TypedDict]
|
|
375
|
+
|
|
376
|
+
class RecoverUserRequest(TypedDict, total=False):
|
|
377
|
+
"""recoverUser request body."""
|
|
378
|
+
|
|
379
|
+
recovery: TypedDict
|
|
380
|
+
new_credentials: TypedDict
|
|
381
|
+
|
|
382
|
+
class RecoverUserResponse(TypedDict, total=False):
|
|
383
|
+
"""recoverUser response."""
|
|
384
|
+
|
|
385
|
+
credential: TypedDict
|
|
386
|
+
user: TypedDict
|
|
387
|
+
|
|
388
|
+
class CreateRecoveryChallengeRequest(TypedDict, total=False):
|
|
389
|
+
"""createRecoveryChallenge request body."""
|
|
390
|
+
|
|
391
|
+
username: str
|
|
392
|
+
verification_code: str
|
|
393
|
+
org_id: str
|
|
394
|
+
credential_id: str
|
|
395
|
+
|
|
396
|
+
class CreateRecoveryChallengeResponse(TypedDict, total=False):
|
|
397
|
+
"""createRecoveryChallenge response."""
|
|
398
|
+
|
|
399
|
+
user: TypedDict
|
|
400
|
+
temporary_authentication_token: str
|
|
401
|
+
challenge: str
|
|
402
|
+
rp: NotRequired[TypedDict]
|
|
403
|
+
supported_credential_kinds: TypedDict
|
|
404
|
+
authenticator_selection: TypedDict
|
|
405
|
+
attestation: Literal["none", "indirect", "direct", "enterprise"]
|
|
406
|
+
pub_key_cred_params: list[TypedDict]
|
|
407
|
+
exclude_credentials: list[TypedDict]
|
|
408
|
+
otp_url: str
|
|
409
|
+
allowed_recovery_credentials: list[TypedDict]
|
|
410
|
+
|
|
411
|
+
class SendRecoveryCodeEmailRequest(TypedDict, total=False):
|
|
412
|
+
"""sendRecoveryCodeEmail request body."""
|
|
413
|
+
|
|
414
|
+
username: str
|
|
415
|
+
org_id: str
|
|
416
|
+
|
|
417
|
+
class SendRecoveryCodeEmailResponse(TypedDict, total=False):
|
|
418
|
+
"""sendRecoveryCodeEmail response."""
|
|
419
|
+
|
|
420
|
+
message: str
|
|
421
|
+
|
|
422
|
+
class CreateDelegatedRegistrationChallengeRequest(TypedDict, total=False):
|
|
423
|
+
"""createDelegatedRegistrationChallenge request body."""
|
|
424
|
+
|
|
425
|
+
email: str
|
|
426
|
+
kind: Literal["EndUser"]
|
|
427
|
+
external_id: NotRequired[str]
|
|
428
|
+
|
|
429
|
+
class CreateDelegatedRegistrationChallengeResponse(TypedDict, total=False):
|
|
430
|
+
"""createDelegatedRegistrationChallenge response."""
|
|
431
|
+
|
|
432
|
+
user: TypedDict
|
|
433
|
+
temporary_authentication_token: str
|
|
434
|
+
challenge: str
|
|
435
|
+
rp: NotRequired[TypedDict]
|
|
436
|
+
supported_credential_kinds: TypedDict
|
|
437
|
+
authenticator_selection: TypedDict
|
|
438
|
+
attestation: Literal["none", "indirect", "direct", "enterprise"]
|
|
439
|
+
pub_key_cred_params: list[TypedDict]
|
|
440
|
+
exclude_credentials: list[TypedDict]
|
|
441
|
+
otp_url: str
|
|
442
|
+
|
|
443
|
+
class CreateRegistrationChallengeRequest(TypedDict, total=False):
|
|
444
|
+
"""createRegistrationChallenge request body."""
|
|
445
|
+
|
|
446
|
+
org_id: str
|
|
447
|
+
username: str
|
|
448
|
+
registration_code: str
|
|
449
|
+
|
|
450
|
+
class CreateRegistrationChallengeResponse(TypedDict, total=False):
|
|
451
|
+
"""createRegistrationChallenge response."""
|
|
452
|
+
|
|
453
|
+
user: TypedDict
|
|
454
|
+
temporary_authentication_token: str
|
|
455
|
+
challenge: str
|
|
456
|
+
rp: NotRequired[TypedDict]
|
|
457
|
+
supported_credential_kinds: TypedDict
|
|
458
|
+
authenticator_selection: TypedDict
|
|
459
|
+
attestation: Literal["none", "indirect", "direct", "enterprise"]
|
|
460
|
+
pub_key_cred_params: list[TypedDict]
|
|
461
|
+
exclude_credentials: list[TypedDict]
|
|
462
|
+
otp_url: str
|
|
463
|
+
|
|
464
|
+
class CreateSocialRegistrationChallengeRequest(TypedDict, total=False):
|
|
465
|
+
"""createSocialRegistrationChallenge request body."""
|
|
466
|
+
|
|
467
|
+
org_id: NotRequired[str]
|
|
468
|
+
social_login_provider_kind: Literal["Oidc"]
|
|
469
|
+
id_token: str
|
|
470
|
+
|
|
471
|
+
class CreateSocialRegistrationChallengeResponse(TypedDict, total=False):
|
|
472
|
+
"""createSocialRegistrationChallenge response."""
|
|
473
|
+
|
|
474
|
+
user: TypedDict
|
|
475
|
+
temporary_authentication_token: str
|
|
476
|
+
challenge: str
|
|
477
|
+
rp: NotRequired[TypedDict]
|
|
478
|
+
supported_credential_kinds: TypedDict
|
|
479
|
+
authenticator_selection: TypedDict
|
|
480
|
+
attestation: Literal["none", "indirect", "direct", "enterprise"]
|
|
481
|
+
pub_key_cred_params: list[TypedDict]
|
|
482
|
+
exclude_credentials: list[TypedDict]
|
|
483
|
+
otp_url: str
|
|
484
|
+
|
|
485
|
+
class CompleteUserRegistrationRequest(TypedDict, total=False):
|
|
486
|
+
"""completeUserRegistration request body."""
|
|
487
|
+
|
|
488
|
+
first_factor_credential: TypedDict
|
|
489
|
+
second_factor_credential: NotRequired[TypedDict]
|
|
490
|
+
recovery_credential: NotRequired[TypedDict]
|
|
491
|
+
|
|
492
|
+
class CompleteUserRegistrationResponse(TypedDict, total=False):
|
|
493
|
+
"""completeUserRegistration response."""
|
|
494
|
+
|
|
495
|
+
credential: TypedDict
|
|
496
|
+
user: TypedDict
|
|
497
|
+
|
|
498
|
+
class CompleteEndUserRegistrationWithWalletsRequest(TypedDict, total=False):
|
|
499
|
+
"""completeEndUserRegistrationWithWallets request body."""
|
|
500
|
+
|
|
501
|
+
first_factor_credential: TypedDict
|
|
502
|
+
second_factor_credential: NotRequired[TypedDict]
|
|
503
|
+
recovery_credential: NotRequired[TypedDict]
|
|
504
|
+
wallets: list[TypedDict]
|
|
505
|
+
|
|
506
|
+
class CompleteEndUserRegistrationWithWalletsResponse(TypedDict, total=False):
|
|
507
|
+
"""completeEndUserRegistrationWithWallets response."""
|
|
508
|
+
|
|
509
|
+
credential: TypedDict
|
|
510
|
+
user: TypedDict
|
|
511
|
+
authentication: TypedDict
|
|
512
|
+
wallets: list[TypedDict]
|
|
513
|
+
|
|
514
|
+
class ResendRegistrationCodeRequest(TypedDict, total=False):
|
|
515
|
+
"""resendRegistrationCode request body."""
|
|
516
|
+
|
|
517
|
+
username: str
|
|
518
|
+
org_id: str
|
|
519
|
+
|
|
520
|
+
class ResendRegistrationCodeResponse(TypedDict, total=False):
|
|
521
|
+
"""resendRegistrationCode response."""
|
|
522
|
+
|
|
523
|
+
message: str
|
|
524
|
+
|
|
525
|
+
class ListServiceAccountsResponse(TypedDict, total=False):
|
|
526
|
+
"""listServiceAccounts response."""
|
|
527
|
+
|
|
528
|
+
items: list[TypedDict]
|
|
529
|
+
|
|
530
|
+
class CreateServiceAccountRequest(TypedDict, total=False):
|
|
531
|
+
"""createServiceAccount request body."""
|
|
532
|
+
|
|
533
|
+
name: str
|
|
534
|
+
public_key: str
|
|
535
|
+
permission_id: NotRequired[str]
|
|
536
|
+
external_id: NotRequired[str]
|
|
537
|
+
days_valid: NotRequired[int]
|
|
538
|
+
|
|
539
|
+
class CreateServiceAccountResponse(TypedDict, total=False):
|
|
540
|
+
"""createServiceAccount response."""
|
|
541
|
+
|
|
542
|
+
user_info: TypedDict
|
|
543
|
+
access_tokens: list[TypedDict]
|
|
544
|
+
|
|
545
|
+
class GetServiceAccountResponse(TypedDict, total=False):
|
|
546
|
+
"""getServiceAccount response."""
|
|
547
|
+
|
|
548
|
+
user_info: TypedDict
|
|
549
|
+
access_tokens: list[TypedDict]
|
|
550
|
+
|
|
551
|
+
class UpdateServiceAccountRequest(TypedDict, total=False):
|
|
552
|
+
"""updateServiceAccount request body."""
|
|
553
|
+
|
|
554
|
+
name: NotRequired[str]
|
|
555
|
+
external_id: NotRequired[str]
|
|
556
|
+
|
|
557
|
+
class UpdateServiceAccountResponse(TypedDict, total=False):
|
|
558
|
+
"""updateServiceAccount response."""
|
|
559
|
+
|
|
560
|
+
user_info: TypedDict
|
|
561
|
+
access_tokens: list[TypedDict]
|
|
562
|
+
|
|
563
|
+
class DeleteServiceAccountResponse(TypedDict, total=False):
|
|
564
|
+
"""deleteServiceAccount response."""
|
|
565
|
+
|
|
566
|
+
user_info: TypedDict
|
|
567
|
+
access_tokens: list[TypedDict]
|
|
568
|
+
|
|
569
|
+
class ActivateServiceAccountResponse(TypedDict, total=False):
|
|
570
|
+
"""activateServiceAccount response."""
|
|
571
|
+
|
|
572
|
+
user_info: TypedDict
|
|
573
|
+
access_tokens: list[TypedDict]
|
|
574
|
+
|
|
575
|
+
class DeactivateServiceAccountResponse(TypedDict, total=False):
|
|
576
|
+
"""deactivateServiceAccount response."""
|
|
577
|
+
|
|
578
|
+
user_info: TypedDict
|
|
579
|
+
access_tokens: list[TypedDict]
|
|
580
|
+
|
|
581
|
+
class ActivateUserResponse(TypedDict, total=False):
|
|
582
|
+
"""activateUser response."""
|
|
583
|
+
|
|
584
|
+
username: str
|
|
585
|
+
name: str
|
|
586
|
+
user_id: str
|
|
587
|
+
kind: Literal["AccountUser", "CustomerEmployee", "EndUser"]
|
|
588
|
+
credential_uuid: str
|
|
589
|
+
org_id: str
|
|
590
|
+
permissions: NotRequired[list[str]]
|
|
591
|
+
is_active: bool
|
|
592
|
+
is_service_account: bool
|
|
593
|
+
is_registered: bool
|
|
594
|
+
is_s_s_o_required: bool
|
|
595
|
+
permission_assignments: list[TypedDict]
|
|
596
|
+
|
|
597
|
+
class DeactivateUserResponse(TypedDict, total=False):
|
|
598
|
+
"""deactivateUser response."""
|
|
599
|
+
|
|
600
|
+
username: str
|
|
601
|
+
name: str
|
|
602
|
+
user_id: str
|
|
603
|
+
kind: Literal["AccountUser", "CustomerEmployee", "EndUser"]
|
|
604
|
+
credential_uuid: str
|
|
605
|
+
org_id: str
|
|
606
|
+
permissions: NotRequired[list[str]]
|
|
607
|
+
is_active: bool
|
|
608
|
+
is_service_account: bool
|
|
609
|
+
is_registered: bool
|
|
610
|
+
is_s_s_o_required: bool
|
|
611
|
+
permission_assignments: list[TypedDict]
|
|
612
|
+
|
|
613
|
+
class GetUserResponse(TypedDict, total=False):
|
|
614
|
+
"""getUser response."""
|
|
615
|
+
|
|
616
|
+
username: str
|
|
617
|
+
name: str
|
|
618
|
+
user_id: str
|
|
619
|
+
kind: Literal["AccountUser", "CustomerEmployee", "EndUser"]
|
|
620
|
+
credential_uuid: str
|
|
621
|
+
org_id: str
|
|
622
|
+
permissions: NotRequired[list[str]]
|
|
623
|
+
is_active: bool
|
|
624
|
+
is_service_account: bool
|
|
625
|
+
is_registered: bool
|
|
626
|
+
is_s_s_o_required: bool
|
|
627
|
+
permission_assignments: list[TypedDict]
|
|
628
|
+
|
|
629
|
+
class UpdateUserRequest(TypedDict, total=False):
|
|
630
|
+
"""updateUser request body."""
|
|
631
|
+
|
|
632
|
+
is_s_s_o_required: bool
|
|
633
|
+
|
|
634
|
+
class UpdateUserResponse(TypedDict, total=False):
|
|
635
|
+
"""updateUser response."""
|
|
636
|
+
|
|
637
|
+
username: str
|
|
638
|
+
name: str
|
|
639
|
+
user_id: str
|
|
640
|
+
kind: Literal["AccountUser", "CustomerEmployee", "EndUser"]
|
|
641
|
+
credential_uuid: str
|
|
642
|
+
org_id: str
|
|
643
|
+
permissions: NotRequired[list[str]]
|
|
644
|
+
is_active: bool
|
|
645
|
+
is_service_account: bool
|
|
646
|
+
is_registered: bool
|
|
647
|
+
is_s_s_o_required: bool
|
|
648
|
+
permission_assignments: list[TypedDict]
|
|
649
|
+
|
|
650
|
+
class DeleteUserResponse(TypedDict, total=False):
|
|
651
|
+
"""deleteUser response."""
|
|
652
|
+
|
|
653
|
+
username: str
|
|
654
|
+
name: str
|
|
655
|
+
user_id: str
|
|
656
|
+
kind: Literal["AccountUser", "CustomerEmployee", "EndUser"]
|
|
657
|
+
credential_uuid: str
|
|
658
|
+
org_id: str
|
|
659
|
+
permissions: NotRequired[list[str]]
|
|
660
|
+
is_active: bool
|
|
661
|
+
is_service_account: bool
|
|
662
|
+
is_registered: bool
|
|
663
|
+
is_s_s_o_required: bool
|
|
664
|
+
permission_assignments: list[TypedDict]
|
|
665
|
+
|
|
666
|
+
class ListUsersResponse(TypedDict, total=False):
|
|
667
|
+
"""listUsers response."""
|
|
668
|
+
|
|
669
|
+
items: list[TypedDict]
|
|
670
|
+
next_page_token: NotRequired[str]
|
|
671
|
+
|
|
672
|
+
class ListUsersQuery(TypedDict, total=False):
|
|
673
|
+
"""listUsers query parameters."""
|
|
674
|
+
|
|
675
|
+
limit: NotRequired[int]
|
|
676
|
+
pagination_token: NotRequired[str]
|
|
677
|
+
kind: NotRequired[Literal["CustomerEmployee", "EndUser"]]
|
|
678
|
+
|
|
679
|
+
class CreateUserRequest(TypedDict, total=False):
|
|
680
|
+
"""createUser request body."""
|
|
681
|
+
|
|
682
|
+
email: str
|
|
683
|
+
kind: Literal["CustomerEmployee"]
|
|
684
|
+
public_key: NotRequired[str]
|
|
685
|
+
external_id: NotRequired[str]
|
|
686
|
+
is_s_s_o_required: NotRequired[bool]
|
|
687
|
+
|
|
688
|
+
class CreateUserResponse(TypedDict, total=False):
|
|
689
|
+
"""createUser response."""
|
|
690
|
+
|
|
691
|
+
username: str
|
|
692
|
+
name: str
|
|
693
|
+
user_id: str
|
|
694
|
+
kind: Literal["AccountUser", "CustomerEmployee", "EndUser"]
|
|
695
|
+
credential_uuid: str
|
|
696
|
+
org_id: str
|
|
697
|
+
permissions: NotRequired[list[str]]
|
|
698
|
+
is_active: bool
|
|
699
|
+
is_service_account: bool
|
|
700
|
+
is_registered: bool
|
|
701
|
+
is_s_s_o_required: bool
|
|
702
|
+
permission_assignments: list[TypedDict]
|