@djangocfg/api 2.1.263 → 2.1.266
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.
- package/dist/auth.cjs +62 -74
- package/dist/auth.cjs.map +1 -1
- package/dist/auth.d.cts +0 -18
- package/dist/auth.d.ts +0 -18
- package/dist/auth.mjs +62 -74
- package/dist/auth.mjs.map +1 -1
- package/dist/clients.cjs +57 -79
- package/dist/clients.cjs.map +1 -1
- package/dist/clients.d.cts +113 -179
- package/dist/clients.d.ts +113 -179
- package/dist/clients.mjs +57 -79
- package/dist/clients.mjs.map +1 -1
- package/dist/hooks.d.cts +72 -72
- package/dist/hooks.d.ts +72 -72
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +97 -97
- package/dist/index.d.ts +97 -97
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
- package/src/_api/generated/cfg_accounts/accounts/models.ts +31 -31
- package/src/_api/generated/cfg_accounts/accounts__oauth/models.ts +40 -40
- package/src/_api/generated/cfg_accounts/accounts__user_profile/models.ts +31 -31
- package/src/_api/generated/cfg_totp/CLAUDE.md +3 -3
- package/src/_api/generated/cfg_totp/_utils/fetchers/totp__totp_management.ts +7 -7
- package/src/_api/generated/cfg_totp/_utils/hooks/totp__totp_management.ts +5 -5
- package/src/_api/generated/cfg_totp/_utils/schemas/index.ts +0 -1
- package/src/_api/generated/cfg_totp/schema.json +2 -103
- package/src/_api/generated/cfg_totp/totp__backup_codes/models.ts +14 -14
- package/src/_api/generated/cfg_totp/totp__totp_management/client.ts +2 -13
- package/src/_api/generated/cfg_totp/totp__totp_management/models.ts +4 -29
- package/src/_api/generated/cfg_totp/totp__totp_setup/models.ts +13 -13
- package/src/auth/hooks/useTwoFactorStatus.ts +21 -14
- package/src/_api/generated/cfg_totp/_utils/schemas/PaginatedDeviceListResponseList.schema.ts +0 -24
package/dist/index.d.cts
CHANGED
|
@@ -48,39 +48,24 @@ declare namespace enums {
|
|
|
48
48
|
}
|
|
49
49
|
|
|
50
50
|
/**
|
|
51
|
-
*
|
|
52
|
-
*
|
|
53
|
-
* Request model (no read-only fields).
|
|
54
|
-
*/
|
|
55
|
-
interface OAuthAuthorizeRequestRequest$1 {
|
|
56
|
-
/** URL to redirect after OAuth authorization. If not provided, uses config's site_url + callback_path */
|
|
57
|
-
redirect_uri?: string;
|
|
58
|
-
/** Optional source URL for registration tracking */
|
|
59
|
-
source_url?: string;
|
|
60
|
-
}
|
|
61
|
-
/**
|
|
62
|
-
* Request to disconnect OAuth provider.
|
|
51
|
+
* Error response for OAuth endpoints.
|
|
63
52
|
*
|
|
64
|
-
*
|
|
53
|
+
* Response model (includes read-only fields).
|
|
65
54
|
*/
|
|
66
|
-
interface
|
|
67
|
-
/**
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
55
|
+
interface OAuthError$1 {
|
|
56
|
+
/** Error code */
|
|
57
|
+
error: string;
|
|
58
|
+
/** Human-readable error description */
|
|
59
|
+
error_description?: string;
|
|
71
60
|
}
|
|
72
61
|
/**
|
|
73
|
-
*
|
|
62
|
+
* Response with available OAuth providers.
|
|
74
63
|
*
|
|
75
|
-
*
|
|
64
|
+
* Response model (includes read-only fields).
|
|
76
65
|
*/
|
|
77
|
-
interface
|
|
78
|
-
/**
|
|
79
|
-
|
|
80
|
-
/** State token for CSRF verification (from authorize response) */
|
|
81
|
-
state: string;
|
|
82
|
-
/** Same redirect_uri used in authorize request. If not provided, uses config's site_url + callback_path */
|
|
83
|
-
redirect_uri?: string;
|
|
66
|
+
interface OAuthProvidersResponse$1 {
|
|
67
|
+
/** List of available OAuth providers */
|
|
68
|
+
providers: Array<Record<string, any>>;
|
|
84
69
|
}
|
|
85
70
|
/**
|
|
86
71
|
* Response with OAuth authorization URL.
|
|
@@ -94,13 +79,17 @@ interface OAuthAuthorizeResponse$1 {
|
|
|
94
79
|
state: string;
|
|
95
80
|
}
|
|
96
81
|
/**
|
|
97
|
-
*
|
|
82
|
+
* Request to complete OAuth flow (callback handler).
|
|
98
83
|
*
|
|
99
|
-
*
|
|
84
|
+
* Request model (no read-only fields).
|
|
100
85
|
*/
|
|
101
|
-
interface
|
|
102
|
-
/**
|
|
103
|
-
|
|
86
|
+
interface OAuthCallbackRequestRequest$1 {
|
|
87
|
+
/** Authorization code from OAuth provider callback */
|
|
88
|
+
code: string;
|
|
89
|
+
/** State token for CSRF verification (from authorize response) */
|
|
90
|
+
state: string;
|
|
91
|
+
/** Same redirect_uri used in authorize request. If not provided, uses config's site_url + callback_path */
|
|
92
|
+
redirect_uri?: string;
|
|
104
93
|
}
|
|
105
94
|
/**
|
|
106
95
|
* Serializer for OAuth connection info (user-facing).
|
|
@@ -125,6 +114,17 @@ interface OAuthConnection$1 {
|
|
|
125
114
|
/** Last time this OAuth connection was used for login */
|
|
126
115
|
last_login_at: string;
|
|
127
116
|
}
|
|
117
|
+
/**
|
|
118
|
+
* Request to start OAuth flow.
|
|
119
|
+
*
|
|
120
|
+
* Request model (no read-only fields).
|
|
121
|
+
*/
|
|
122
|
+
interface OAuthAuthorizeRequestRequest$1 {
|
|
123
|
+
/** URL to redirect after OAuth authorization. If not provided, uses config's site_url + callback_path */
|
|
124
|
+
redirect_uri?: string;
|
|
125
|
+
/** Optional source URL for registration tracking */
|
|
126
|
+
source_url?: string;
|
|
127
|
+
}
|
|
128
128
|
/**
|
|
129
129
|
* Response with JWT tokens after OAuth authentication. When 2FA is required: -
|
|
130
130
|
* requires_2fa: True - session_id: UUID of 2FA verification session -
|
|
@@ -152,15 +152,15 @@ interface OAuthTokenResponse$1 {
|
|
|
152
152
|
should_prompt_2fa?: boolean;
|
|
153
153
|
}
|
|
154
154
|
/**
|
|
155
|
-
*
|
|
155
|
+
* Request to disconnect OAuth provider.
|
|
156
156
|
*
|
|
157
|
-
*
|
|
157
|
+
* Request model (no read-only fields).
|
|
158
158
|
*/
|
|
159
|
-
interface
|
|
160
|
-
/**
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
159
|
+
interface OAuthDisconnectRequestRequest$1 {
|
|
160
|
+
/** OAuth provider to disconnect
|
|
161
|
+
|
|
162
|
+
* `github` - GitHub */
|
|
163
|
+
provider: OAuthConnectionProvider;
|
|
164
164
|
}
|
|
165
165
|
|
|
166
166
|
declare namespace models$2 {
|
|
@@ -207,6 +207,32 @@ declare class Oauth {
|
|
|
207
207
|
accountsOauthProvidersRetrieve(): Promise<OAuthProvidersResponse$1>;
|
|
208
208
|
}
|
|
209
209
|
|
|
210
|
+
/**
|
|
211
|
+
* Serializer for updating user profile.
|
|
212
|
+
*
|
|
213
|
+
* Request model (no read-only fields).
|
|
214
|
+
*/
|
|
215
|
+
interface UserProfileUpdateRequest$1 {
|
|
216
|
+
first_name?: string;
|
|
217
|
+
last_name?: string;
|
|
218
|
+
company?: string;
|
|
219
|
+
phone?: string;
|
|
220
|
+
position?: string;
|
|
221
|
+
language?: string;
|
|
222
|
+
}
|
|
223
|
+
/**
|
|
224
|
+
* Serializer for updating user profile.
|
|
225
|
+
*
|
|
226
|
+
* Request model (no read-only fields).
|
|
227
|
+
*/
|
|
228
|
+
interface PatchedUserProfileUpdateRequest$1 {
|
|
229
|
+
first_name?: string;
|
|
230
|
+
last_name?: string;
|
|
231
|
+
company?: string;
|
|
232
|
+
phone?: string;
|
|
233
|
+
position?: string;
|
|
234
|
+
language?: string;
|
|
235
|
+
}
|
|
210
236
|
/**
|
|
211
237
|
* Serializer for user details.
|
|
212
238
|
*
|
|
@@ -237,27 +263,6 @@ interface User$2 {
|
|
|
237
263
|
unanswered_messages_count: number;
|
|
238
264
|
centrifugo: CentrifugoToken$2 | null;
|
|
239
265
|
}
|
|
240
|
-
/**
|
|
241
|
-
* Serializer for updating user profile.
|
|
242
|
-
*
|
|
243
|
-
* Request model (no read-only fields).
|
|
244
|
-
*/
|
|
245
|
-
interface PatchedUserProfileUpdateRequest$1 {
|
|
246
|
-
first_name?: string;
|
|
247
|
-
last_name?: string;
|
|
248
|
-
company?: string;
|
|
249
|
-
phone?: string;
|
|
250
|
-
position?: string;
|
|
251
|
-
language?: string;
|
|
252
|
-
}
|
|
253
|
-
/**
|
|
254
|
-
*
|
|
255
|
-
* Request model (no read-only fields).
|
|
256
|
-
*/
|
|
257
|
-
interface CfgAccountsProfileAvatarCreateRequest$1 {
|
|
258
|
-
/** Avatar image file (JPEG, PNG, GIF, WebP, max 5MB) */
|
|
259
|
-
avatar: File | Blob;
|
|
260
|
-
}
|
|
261
266
|
/**
|
|
262
267
|
* Response serializer for account deletion.
|
|
263
268
|
*
|
|
@@ -270,17 +275,12 @@ interface AccountDeleteResponse$1 {
|
|
|
270
275
|
message: string;
|
|
271
276
|
}
|
|
272
277
|
/**
|
|
273
|
-
* Serializer for updating user profile.
|
|
274
278
|
*
|
|
275
279
|
* Request model (no read-only fields).
|
|
276
280
|
*/
|
|
277
|
-
interface
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
company?: string;
|
|
281
|
-
phone?: string;
|
|
282
|
-
position?: string;
|
|
283
|
-
language?: string;
|
|
281
|
+
interface CfgAccountsProfileAvatarCreateRequest$1 {
|
|
282
|
+
/** Avatar image file (JPEG, PNG, GIF, WebP, max 5MB) */
|
|
283
|
+
avatar: File | Blob;
|
|
284
284
|
}
|
|
285
285
|
/**
|
|
286
286
|
* Nested serializer for Centrifugo WebSocket connection token.
|
|
@@ -371,35 +371,6 @@ interface OTPVerifyRequest$1 {
|
|
|
371
371
|
/** Source URL for tracking login (e.g., https://my.djangocfg.com) */
|
|
372
372
|
source_url?: string;
|
|
373
373
|
}
|
|
374
|
-
/**
|
|
375
|
-
* OTP request response.
|
|
376
|
-
*
|
|
377
|
-
* Response model (includes read-only fields).
|
|
378
|
-
*/
|
|
379
|
-
interface OTPRequestResponse$1 {
|
|
380
|
-
/** Success message */
|
|
381
|
-
message: string;
|
|
382
|
-
}
|
|
383
|
-
/**
|
|
384
|
-
* Typed error response for OTP operations. error_code values: -
|
|
385
|
-
* invalid_identifier — malformed email - cooldown — too soon after last
|
|
386
|
-
* request (retry_after = seconds) - hourly_limit — hourly quota exceeded
|
|
387
|
-
* (retry_after = seconds until reset) - daily_limit — daily quota exceeded
|
|
388
|
-
* (retry_after = seconds until reset) - rate_limited — IP-level rate limit hit
|
|
389
|
-
* (no retry_after) - user_creation_failed — internal error creating account -
|
|
390
|
-
* send_failed — transport error (email / SMS) - internal_error — unexpected
|
|
391
|
-
* server error
|
|
392
|
-
*
|
|
393
|
-
* Response model (includes read-only fields).
|
|
394
|
-
*/
|
|
395
|
-
interface OTPErrorResponse$1 {
|
|
396
|
-
/** Human-readable error message */
|
|
397
|
-
error: string;
|
|
398
|
-
/** Machine-readable error code */
|
|
399
|
-
error_code?: string | null;
|
|
400
|
-
/** Seconds until the client may retry (present only for rate-limit errors) */
|
|
401
|
-
retry_after?: number | null;
|
|
402
|
-
}
|
|
403
374
|
/**
|
|
404
375
|
* OTP verification response. When 2FA is required: - requires_2fa: True -
|
|
405
376
|
* session_id: UUID of 2FA verification session - refresh/access/user: null
|
|
@@ -432,6 +403,35 @@ interface OTPRequestRequest$1 {
|
|
|
432
403
|
/** Source URL for tracking registration (e.g., https://my.djangocfg.com) */
|
|
433
404
|
source_url?: string;
|
|
434
405
|
}
|
|
406
|
+
/**
|
|
407
|
+
* OTP request response.
|
|
408
|
+
*
|
|
409
|
+
* Response model (includes read-only fields).
|
|
410
|
+
*/
|
|
411
|
+
interface OTPRequestResponse$1 {
|
|
412
|
+
/** Success message */
|
|
413
|
+
message: string;
|
|
414
|
+
}
|
|
415
|
+
/**
|
|
416
|
+
* Typed error response for OTP operations. error_code values: -
|
|
417
|
+
* invalid_identifier — malformed email - cooldown — too soon after last
|
|
418
|
+
* request (retry_after = seconds) - hourly_limit — hourly quota exceeded
|
|
419
|
+
* (retry_after = seconds until reset) - daily_limit — daily quota exceeded
|
|
420
|
+
* (retry_after = seconds until reset) - rate_limited — IP-level rate limit hit
|
|
421
|
+
* (no retry_after) - user_creation_failed — internal error creating account -
|
|
422
|
+
* send_failed — transport error (email / SMS) - internal_error — unexpected
|
|
423
|
+
* server error
|
|
424
|
+
*
|
|
425
|
+
* Response model (includes read-only fields).
|
|
426
|
+
*/
|
|
427
|
+
interface OTPErrorResponse$1 {
|
|
428
|
+
/** Human-readable error message */
|
|
429
|
+
error: string;
|
|
430
|
+
/** Machine-readable error code */
|
|
431
|
+
error_code?: string | null;
|
|
432
|
+
/** Seconds until the client may retry (present only for rate-limit errors) */
|
|
433
|
+
retry_after?: number | null;
|
|
434
|
+
}
|
|
435
435
|
/**
|
|
436
436
|
* Serializer for user details.
|
|
437
437
|
*
|
package/dist/index.d.ts
CHANGED
|
@@ -48,39 +48,24 @@ declare namespace enums {
|
|
|
48
48
|
}
|
|
49
49
|
|
|
50
50
|
/**
|
|
51
|
-
*
|
|
52
|
-
*
|
|
53
|
-
* Request model (no read-only fields).
|
|
54
|
-
*/
|
|
55
|
-
interface OAuthAuthorizeRequestRequest$1 {
|
|
56
|
-
/** URL to redirect after OAuth authorization. If not provided, uses config's site_url + callback_path */
|
|
57
|
-
redirect_uri?: string;
|
|
58
|
-
/** Optional source URL for registration tracking */
|
|
59
|
-
source_url?: string;
|
|
60
|
-
}
|
|
61
|
-
/**
|
|
62
|
-
* Request to disconnect OAuth provider.
|
|
51
|
+
* Error response for OAuth endpoints.
|
|
63
52
|
*
|
|
64
|
-
*
|
|
53
|
+
* Response model (includes read-only fields).
|
|
65
54
|
*/
|
|
66
|
-
interface
|
|
67
|
-
/**
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
55
|
+
interface OAuthError$1 {
|
|
56
|
+
/** Error code */
|
|
57
|
+
error: string;
|
|
58
|
+
/** Human-readable error description */
|
|
59
|
+
error_description?: string;
|
|
71
60
|
}
|
|
72
61
|
/**
|
|
73
|
-
*
|
|
62
|
+
* Response with available OAuth providers.
|
|
74
63
|
*
|
|
75
|
-
*
|
|
64
|
+
* Response model (includes read-only fields).
|
|
76
65
|
*/
|
|
77
|
-
interface
|
|
78
|
-
/**
|
|
79
|
-
|
|
80
|
-
/** State token for CSRF verification (from authorize response) */
|
|
81
|
-
state: string;
|
|
82
|
-
/** Same redirect_uri used in authorize request. If not provided, uses config's site_url + callback_path */
|
|
83
|
-
redirect_uri?: string;
|
|
66
|
+
interface OAuthProvidersResponse$1 {
|
|
67
|
+
/** List of available OAuth providers */
|
|
68
|
+
providers: Array<Record<string, any>>;
|
|
84
69
|
}
|
|
85
70
|
/**
|
|
86
71
|
* Response with OAuth authorization URL.
|
|
@@ -94,13 +79,17 @@ interface OAuthAuthorizeResponse$1 {
|
|
|
94
79
|
state: string;
|
|
95
80
|
}
|
|
96
81
|
/**
|
|
97
|
-
*
|
|
82
|
+
* Request to complete OAuth flow (callback handler).
|
|
98
83
|
*
|
|
99
|
-
*
|
|
84
|
+
* Request model (no read-only fields).
|
|
100
85
|
*/
|
|
101
|
-
interface
|
|
102
|
-
/**
|
|
103
|
-
|
|
86
|
+
interface OAuthCallbackRequestRequest$1 {
|
|
87
|
+
/** Authorization code from OAuth provider callback */
|
|
88
|
+
code: string;
|
|
89
|
+
/** State token for CSRF verification (from authorize response) */
|
|
90
|
+
state: string;
|
|
91
|
+
/** Same redirect_uri used in authorize request. If not provided, uses config's site_url + callback_path */
|
|
92
|
+
redirect_uri?: string;
|
|
104
93
|
}
|
|
105
94
|
/**
|
|
106
95
|
* Serializer for OAuth connection info (user-facing).
|
|
@@ -125,6 +114,17 @@ interface OAuthConnection$1 {
|
|
|
125
114
|
/** Last time this OAuth connection was used for login */
|
|
126
115
|
last_login_at: string;
|
|
127
116
|
}
|
|
117
|
+
/**
|
|
118
|
+
* Request to start OAuth flow.
|
|
119
|
+
*
|
|
120
|
+
* Request model (no read-only fields).
|
|
121
|
+
*/
|
|
122
|
+
interface OAuthAuthorizeRequestRequest$1 {
|
|
123
|
+
/** URL to redirect after OAuth authorization. If not provided, uses config's site_url + callback_path */
|
|
124
|
+
redirect_uri?: string;
|
|
125
|
+
/** Optional source URL for registration tracking */
|
|
126
|
+
source_url?: string;
|
|
127
|
+
}
|
|
128
128
|
/**
|
|
129
129
|
* Response with JWT tokens after OAuth authentication. When 2FA is required: -
|
|
130
130
|
* requires_2fa: True - session_id: UUID of 2FA verification session -
|
|
@@ -152,15 +152,15 @@ interface OAuthTokenResponse$1 {
|
|
|
152
152
|
should_prompt_2fa?: boolean;
|
|
153
153
|
}
|
|
154
154
|
/**
|
|
155
|
-
*
|
|
155
|
+
* Request to disconnect OAuth provider.
|
|
156
156
|
*
|
|
157
|
-
*
|
|
157
|
+
* Request model (no read-only fields).
|
|
158
158
|
*/
|
|
159
|
-
interface
|
|
160
|
-
/**
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
159
|
+
interface OAuthDisconnectRequestRequest$1 {
|
|
160
|
+
/** OAuth provider to disconnect
|
|
161
|
+
|
|
162
|
+
* `github` - GitHub */
|
|
163
|
+
provider: OAuthConnectionProvider;
|
|
164
164
|
}
|
|
165
165
|
|
|
166
166
|
declare namespace models$2 {
|
|
@@ -207,6 +207,32 @@ declare class Oauth {
|
|
|
207
207
|
accountsOauthProvidersRetrieve(): Promise<OAuthProvidersResponse$1>;
|
|
208
208
|
}
|
|
209
209
|
|
|
210
|
+
/**
|
|
211
|
+
* Serializer for updating user profile.
|
|
212
|
+
*
|
|
213
|
+
* Request model (no read-only fields).
|
|
214
|
+
*/
|
|
215
|
+
interface UserProfileUpdateRequest$1 {
|
|
216
|
+
first_name?: string;
|
|
217
|
+
last_name?: string;
|
|
218
|
+
company?: string;
|
|
219
|
+
phone?: string;
|
|
220
|
+
position?: string;
|
|
221
|
+
language?: string;
|
|
222
|
+
}
|
|
223
|
+
/**
|
|
224
|
+
* Serializer for updating user profile.
|
|
225
|
+
*
|
|
226
|
+
* Request model (no read-only fields).
|
|
227
|
+
*/
|
|
228
|
+
interface PatchedUserProfileUpdateRequest$1 {
|
|
229
|
+
first_name?: string;
|
|
230
|
+
last_name?: string;
|
|
231
|
+
company?: string;
|
|
232
|
+
phone?: string;
|
|
233
|
+
position?: string;
|
|
234
|
+
language?: string;
|
|
235
|
+
}
|
|
210
236
|
/**
|
|
211
237
|
* Serializer for user details.
|
|
212
238
|
*
|
|
@@ -237,27 +263,6 @@ interface User$2 {
|
|
|
237
263
|
unanswered_messages_count: number;
|
|
238
264
|
centrifugo: CentrifugoToken$2 | null;
|
|
239
265
|
}
|
|
240
|
-
/**
|
|
241
|
-
* Serializer for updating user profile.
|
|
242
|
-
*
|
|
243
|
-
* Request model (no read-only fields).
|
|
244
|
-
*/
|
|
245
|
-
interface PatchedUserProfileUpdateRequest$1 {
|
|
246
|
-
first_name?: string;
|
|
247
|
-
last_name?: string;
|
|
248
|
-
company?: string;
|
|
249
|
-
phone?: string;
|
|
250
|
-
position?: string;
|
|
251
|
-
language?: string;
|
|
252
|
-
}
|
|
253
|
-
/**
|
|
254
|
-
*
|
|
255
|
-
* Request model (no read-only fields).
|
|
256
|
-
*/
|
|
257
|
-
interface CfgAccountsProfileAvatarCreateRequest$1 {
|
|
258
|
-
/** Avatar image file (JPEG, PNG, GIF, WebP, max 5MB) */
|
|
259
|
-
avatar: File | Blob;
|
|
260
|
-
}
|
|
261
266
|
/**
|
|
262
267
|
* Response serializer for account deletion.
|
|
263
268
|
*
|
|
@@ -270,17 +275,12 @@ interface AccountDeleteResponse$1 {
|
|
|
270
275
|
message: string;
|
|
271
276
|
}
|
|
272
277
|
/**
|
|
273
|
-
* Serializer for updating user profile.
|
|
274
278
|
*
|
|
275
279
|
* Request model (no read-only fields).
|
|
276
280
|
*/
|
|
277
|
-
interface
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
company?: string;
|
|
281
|
-
phone?: string;
|
|
282
|
-
position?: string;
|
|
283
|
-
language?: string;
|
|
281
|
+
interface CfgAccountsProfileAvatarCreateRequest$1 {
|
|
282
|
+
/** Avatar image file (JPEG, PNG, GIF, WebP, max 5MB) */
|
|
283
|
+
avatar: File | Blob;
|
|
284
284
|
}
|
|
285
285
|
/**
|
|
286
286
|
* Nested serializer for Centrifugo WebSocket connection token.
|
|
@@ -371,35 +371,6 @@ interface OTPVerifyRequest$1 {
|
|
|
371
371
|
/** Source URL for tracking login (e.g., https://my.djangocfg.com) */
|
|
372
372
|
source_url?: string;
|
|
373
373
|
}
|
|
374
|
-
/**
|
|
375
|
-
* OTP request response.
|
|
376
|
-
*
|
|
377
|
-
* Response model (includes read-only fields).
|
|
378
|
-
*/
|
|
379
|
-
interface OTPRequestResponse$1 {
|
|
380
|
-
/** Success message */
|
|
381
|
-
message: string;
|
|
382
|
-
}
|
|
383
|
-
/**
|
|
384
|
-
* Typed error response for OTP operations. error_code values: -
|
|
385
|
-
* invalid_identifier — malformed email - cooldown — too soon after last
|
|
386
|
-
* request (retry_after = seconds) - hourly_limit — hourly quota exceeded
|
|
387
|
-
* (retry_after = seconds until reset) - daily_limit — daily quota exceeded
|
|
388
|
-
* (retry_after = seconds until reset) - rate_limited — IP-level rate limit hit
|
|
389
|
-
* (no retry_after) - user_creation_failed — internal error creating account -
|
|
390
|
-
* send_failed — transport error (email / SMS) - internal_error — unexpected
|
|
391
|
-
* server error
|
|
392
|
-
*
|
|
393
|
-
* Response model (includes read-only fields).
|
|
394
|
-
*/
|
|
395
|
-
interface OTPErrorResponse$1 {
|
|
396
|
-
/** Human-readable error message */
|
|
397
|
-
error: string;
|
|
398
|
-
/** Machine-readable error code */
|
|
399
|
-
error_code?: string | null;
|
|
400
|
-
/** Seconds until the client may retry (present only for rate-limit errors) */
|
|
401
|
-
retry_after?: number | null;
|
|
402
|
-
}
|
|
403
374
|
/**
|
|
404
375
|
* OTP verification response. When 2FA is required: - requires_2fa: True -
|
|
405
376
|
* session_id: UUID of 2FA verification session - refresh/access/user: null
|
|
@@ -432,6 +403,35 @@ interface OTPRequestRequest$1 {
|
|
|
432
403
|
/** Source URL for tracking registration (e.g., https://my.djangocfg.com) */
|
|
433
404
|
source_url?: string;
|
|
434
405
|
}
|
|
406
|
+
/**
|
|
407
|
+
* OTP request response.
|
|
408
|
+
*
|
|
409
|
+
* Response model (includes read-only fields).
|
|
410
|
+
*/
|
|
411
|
+
interface OTPRequestResponse$1 {
|
|
412
|
+
/** Success message */
|
|
413
|
+
message: string;
|
|
414
|
+
}
|
|
415
|
+
/**
|
|
416
|
+
* Typed error response for OTP operations. error_code values: -
|
|
417
|
+
* invalid_identifier — malformed email - cooldown — too soon after last
|
|
418
|
+
* request (retry_after = seconds) - hourly_limit — hourly quota exceeded
|
|
419
|
+
* (retry_after = seconds until reset) - daily_limit — daily quota exceeded
|
|
420
|
+
* (retry_after = seconds until reset) - rate_limited — IP-level rate limit hit
|
|
421
|
+
* (no retry_after) - user_creation_failed — internal error creating account -
|
|
422
|
+
* send_failed — transport error (email / SMS) - internal_error — unexpected
|
|
423
|
+
* server error
|
|
424
|
+
*
|
|
425
|
+
* Response model (includes read-only fields).
|
|
426
|
+
*/
|
|
427
|
+
interface OTPErrorResponse$1 {
|
|
428
|
+
/** Human-readable error message */
|
|
429
|
+
error: string;
|
|
430
|
+
/** Machine-readable error code */
|
|
431
|
+
error_code?: string | null;
|
|
432
|
+
/** Seconds until the client may retry (present only for rate-limit errors) */
|
|
433
|
+
retry_after?: number | null;
|
|
434
|
+
}
|
|
435
435
|
/**
|
|
436
436
|
* Serializer for user details.
|
|
437
437
|
*
|