@djangocfg/api 2.1.230 → 2.1.232
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/README.md +19 -4
- package/dist/auth-server.cjs +45 -358
- package/dist/auth-server.cjs.map +1 -1
- package/dist/auth-server.mjs +43 -356
- package/dist/auth-server.mjs.map +1 -1
- package/dist/auth.cjs +223 -735
- package/dist/auth.cjs.map +1 -1
- package/dist/auth.mjs +218 -730
- package/dist/auth.mjs.map +1 -1
- package/dist/clients.cjs +313 -1568
- package/dist/clients.cjs.map +1 -1
- package/dist/clients.d.cts +211 -1932
- package/dist/clients.d.ts +211 -1932
- package/dist/clients.mjs +309 -1564
- package/dist/clients.mjs.map +1 -1
- package/dist/hooks.cjs +36 -32
- package/dist/hooks.cjs.map +1 -1
- package/dist/hooks.d.cts +76 -76
- package/dist/hooks.d.ts +76 -76
- package/dist/hooks.mjs +36 -32
- package/dist/hooks.mjs.map +1 -1
- package/dist/index.cjs +88 -593
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +88 -88
- package/dist/index.d.ts +88 -88
- package/dist/index.mjs +88 -593
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
- package/src/_api/generated/cfg_accounts/accounts/models.ts +34 -34
- package/src/_api/generated/cfg_accounts/accounts__oauth/models.ts +41 -41
- package/src/_api/generated/cfg_accounts/accounts__user_profile/models.ts +18 -18
- package/src/_api/generated/cfg_accounts/client.ts +39 -42
- package/src/_api/generated/cfg_centrifugo/CLAUDE.md +2 -27
- package/src/_api/generated/cfg_centrifugo/_utils/fetchers/index.ts +0 -3
- package/src/_api/generated/cfg_centrifugo/_utils/hooks/index.ts +0 -3
- package/src/_api/generated/cfg_centrifugo/_utils/schemas/index.ts +0 -34
- package/src/_api/generated/cfg_centrifugo/client.ts +39 -51
- package/src/_api/generated/cfg_centrifugo/index.ts +0 -21
- package/src/_api/generated/cfg_centrifugo/schema.json +4 -2039
- package/src/_api/generated/cfg_totp/client.ts +39 -42
- package/src/_api/generated/cfg_totp/totp__totp_management/models.ts +10 -10
- package/src/_api/generated/cfg_totp/totp__totp_setup/models.ts +12 -12
- package/src/_api/generated/cfg_totp/totp__totp_verification/models.ts +8 -8
- package/src/_api/generated/cfg_centrifugo/_utils/fetchers/centrifugo__centrifugo_admin_api.ts +0 -344
- package/src/_api/generated/cfg_centrifugo/_utils/fetchers/centrifugo__centrifugo_monitoring.ts +0 -326
- package/src/_api/generated/cfg_centrifugo/_utils/fetchers/centrifugo__centrifugo_testing.ts +0 -211
- package/src/_api/generated/cfg_centrifugo/_utils/hooks/centrifugo__centrifugo_admin_api.ts +0 -141
- package/src/_api/generated/cfg_centrifugo/_utils/hooks/centrifugo__centrifugo_monitoring.ts +0 -99
- package/src/_api/generated/cfg_centrifugo/_utils/hooks/centrifugo__centrifugo_testing.ts +0 -82
- package/src/_api/generated/cfg_centrifugo/_utils/schemas/CentrifugoChannelInfo.schema.ts +0 -19
- package/src/_api/generated/cfg_centrifugo/_utils/schemas/CentrifugoChannelsRequestRequest.schema.ts +0 -19
- package/src/_api/generated/cfg_centrifugo/_utils/schemas/CentrifugoChannelsResponse.schema.ts +0 -22
- package/src/_api/generated/cfg_centrifugo/_utils/schemas/CentrifugoChannelsResult.schema.ts +0 -20
- package/src/_api/generated/cfg_centrifugo/_utils/schemas/CentrifugoClientInfo.schema.ts +0 -22
- package/src/_api/generated/cfg_centrifugo/_utils/schemas/CentrifugoError.schema.ts +0 -20
- package/src/_api/generated/cfg_centrifugo/_utils/schemas/CentrifugoHealthCheck.schema.ts +0 -22
- package/src/_api/generated/cfg_centrifugo/_utils/schemas/CentrifugoHistoryRequestRequest.schema.ts +0 -23
- package/src/_api/generated/cfg_centrifugo/_utils/schemas/CentrifugoHistoryResponse.schema.ts +0 -22
- package/src/_api/generated/cfg_centrifugo/_utils/schemas/CentrifugoHistoryResult.schema.ts +0 -22
- package/src/_api/generated/cfg_centrifugo/_utils/schemas/CentrifugoInfoResponse.schema.ts +0 -22
- package/src/_api/generated/cfg_centrifugo/_utils/schemas/CentrifugoInfoResult.schema.ts +0 -20
- package/src/_api/generated/cfg_centrifugo/_utils/schemas/CentrifugoMetrics.schema.ts +0 -20
- package/src/_api/generated/cfg_centrifugo/_utils/schemas/CentrifugoNodeInfo.schema.ts +0 -30
- package/src/_api/generated/cfg_centrifugo/_utils/schemas/CentrifugoOverviewStats.schema.ts +0 -26
- package/src/_api/generated/cfg_centrifugo/_utils/schemas/CentrifugoPresenceRequestRequest.schema.ts +0 -19
- package/src/_api/generated/cfg_centrifugo/_utils/schemas/CentrifugoPresenceResponse.schema.ts +0 -22
- package/src/_api/generated/cfg_centrifugo/_utils/schemas/CentrifugoPresenceResult.schema.ts +0 -20
- package/src/_api/generated/cfg_centrifugo/_utils/schemas/CentrifugoPresenceStatsRequestRequest.schema.ts +0 -19
- package/src/_api/generated/cfg_centrifugo/_utils/schemas/CentrifugoPresenceStatsResponse.schema.ts +0 -22
- package/src/_api/generated/cfg_centrifugo/_utils/schemas/CentrifugoPresenceStatsResult.schema.ts +0 -20
- package/src/_api/generated/cfg_centrifugo/_utils/schemas/CentrifugoProcess.schema.ts +0 -20
- package/src/_api/generated/cfg_centrifugo/_utils/schemas/CentrifugoPublication.schema.ts +0 -23
- package/src/_api/generated/cfg_centrifugo/_utils/schemas/CentrifugoStreamPosition.schema.ts +0 -20
- package/src/_api/generated/cfg_centrifugo/_utils/schemas/ChannelList.schema.ts +0 -21
- package/src/_api/generated/cfg_centrifugo/_utils/schemas/ChannelStats.schema.ts +0 -25
- package/src/_api/generated/cfg_centrifugo/_utils/schemas/ManualAckRequestRequest.schema.ts +0 -20
- package/src/_api/generated/cfg_centrifugo/_utils/schemas/ManualAckResponse.schema.ts +0 -21
- package/src/_api/generated/cfg_centrifugo/_utils/schemas/PaginatedPublishList.schema.ts +0 -24
- package/src/_api/generated/cfg_centrifugo/_utils/schemas/Publish.schema.ts +0 -29
- package/src/_api/generated/cfg_centrifugo/_utils/schemas/PublishTestRequestRequest.schema.ts +0 -22
- package/src/_api/generated/cfg_centrifugo/_utils/schemas/PublishTestResponse.schema.ts +0 -24
- package/src/_api/generated/cfg_centrifugo/_utils/schemas/TimelineItem.schema.ts +0 -23
- package/src/_api/generated/cfg_centrifugo/_utils/schemas/TimelineResponse.schema.ts +0 -22
- package/src/_api/generated/cfg_centrifugo/centrifugo__centrifugo_admin_api/client.ts +0 -76
- package/src/_api/generated/cfg_centrifugo/centrifugo__centrifugo_admin_api/index.ts +0 -4
- package/src/_api/generated/cfg_centrifugo/centrifugo__centrifugo_admin_api/models.ts +0 -268
- package/src/_api/generated/cfg_centrifugo/centrifugo__centrifugo_monitoring/client.ts +0 -110
- package/src/_api/generated/cfg_centrifugo/centrifugo__centrifugo_monitoring/index.ts +0 -4
- package/src/_api/generated/cfg_centrifugo/centrifugo__centrifugo_monitoring/models.ts +0 -144
- package/src/_api/generated/cfg_centrifugo/centrifugo__centrifugo_testing/client.ts +0 -48
- package/src/_api/generated/cfg_centrifugo/centrifugo__centrifugo_testing/index.ts +0 -4
- package/src/_api/generated/cfg_centrifugo/centrifugo__centrifugo_testing/models.ts +0 -64
package/dist/index.d.cts
CHANGED
|
@@ -48,26 +48,13 @@ 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
|
-
* Error response for OAuth endpoints.
|
|
51
|
+
* Response with available OAuth providers.
|
|
63
52
|
*
|
|
64
53
|
* Response model (includes read-only fields).
|
|
65
54
|
*/
|
|
66
|
-
interface
|
|
67
|
-
/**
|
|
68
|
-
|
|
69
|
-
/** Human-readable error description */
|
|
70
|
-
error_description?: string;
|
|
55
|
+
interface OAuthProvidersResponse$1 {
|
|
56
|
+
/** List of available OAuth providers */
|
|
57
|
+
providers: Array<Record<string, any>>;
|
|
71
58
|
}
|
|
72
59
|
/**
|
|
73
60
|
* Request to disconnect OAuth provider.
|
|
@@ -81,37 +68,26 @@ interface OAuthDisconnectRequestRequest$1 {
|
|
|
81
68
|
provider: OAuthConnectionProvider;
|
|
82
69
|
}
|
|
83
70
|
/**
|
|
84
|
-
*
|
|
71
|
+
* Error response for OAuth endpoints.
|
|
85
72
|
*
|
|
86
73
|
* Response model (includes read-only fields).
|
|
87
74
|
*/
|
|
88
|
-
interface
|
|
89
|
-
/**
|
|
90
|
-
|
|
75
|
+
interface OAuthError$1 {
|
|
76
|
+
/** Error code */
|
|
77
|
+
error: string;
|
|
78
|
+
/** Human-readable error description */
|
|
79
|
+
error_description?: string;
|
|
91
80
|
}
|
|
92
81
|
/**
|
|
93
|
-
* Request to
|
|
82
|
+
* Request to start OAuth flow.
|
|
94
83
|
*
|
|
95
84
|
* Request model (no read-only fields).
|
|
96
85
|
*/
|
|
97
|
-
interface
|
|
98
|
-
/**
|
|
99
|
-
code: string;
|
|
100
|
-
/** State token for CSRF verification (from authorize response) */
|
|
101
|
-
state: string;
|
|
102
|
-
/** Same redirect_uri used in authorize request. If not provided, uses config's site_url + callback_path */
|
|
86
|
+
interface OAuthAuthorizeRequestRequest$1 {
|
|
87
|
+
/** URL to redirect after OAuth authorization. If not provided, uses config's site_url + callback_path */
|
|
103
88
|
redirect_uri?: string;
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
* Response with OAuth authorization URL.
|
|
107
|
-
*
|
|
108
|
-
* Response model (includes read-only fields).
|
|
109
|
-
*/
|
|
110
|
-
interface OAuthAuthorizeResponse$1 {
|
|
111
|
-
/** Full URL to redirect user to OAuth provider */
|
|
112
|
-
authorization_url: string;
|
|
113
|
-
/** State token for CSRF protection. Store this and verify on callback. */
|
|
114
|
-
state: string;
|
|
89
|
+
/** Optional source URL for registration tracking */
|
|
90
|
+
source_url?: string;
|
|
115
91
|
}
|
|
116
92
|
/**
|
|
117
93
|
* Response with JWT tokens after OAuth authentication. When 2FA is required: -
|
|
@@ -162,6 +138,30 @@ interface OAuthConnection$1 {
|
|
|
162
138
|
/** Last time this OAuth connection was used for login */
|
|
163
139
|
last_login_at: string;
|
|
164
140
|
}
|
|
141
|
+
/**
|
|
142
|
+
* Response with OAuth authorization URL.
|
|
143
|
+
*
|
|
144
|
+
* Response model (includes read-only fields).
|
|
145
|
+
*/
|
|
146
|
+
interface OAuthAuthorizeResponse$1 {
|
|
147
|
+
/** Full URL to redirect user to OAuth provider */
|
|
148
|
+
authorization_url: string;
|
|
149
|
+
/** State token for CSRF protection. Store this and verify on callback. */
|
|
150
|
+
state: string;
|
|
151
|
+
}
|
|
152
|
+
/**
|
|
153
|
+
* Request to complete OAuth flow (callback handler).
|
|
154
|
+
*
|
|
155
|
+
* Request model (no read-only fields).
|
|
156
|
+
*/
|
|
157
|
+
interface OAuthCallbackRequestRequest$1 {
|
|
158
|
+
/** Authorization code from OAuth provider callback */
|
|
159
|
+
code: string;
|
|
160
|
+
/** State token for CSRF verification (from authorize response) */
|
|
161
|
+
state: string;
|
|
162
|
+
/** Same redirect_uri used in authorize request. If not provided, uses config's site_url + callback_path */
|
|
163
|
+
redirect_uri?: string;
|
|
164
|
+
}
|
|
165
165
|
|
|
166
166
|
declare namespace models$2 {
|
|
167
167
|
export type { OAuthAuthorizeRequestRequest$1 as OAuthAuthorizeRequestRequest, OAuthAuthorizeResponse$1 as OAuthAuthorizeResponse, OAuthCallbackRequestRequest$1 as OAuthCallbackRequestRequest, OAuthConnection$1 as OAuthConnection, OAuthDisconnectRequestRequest$1 as OAuthDisconnectRequestRequest, OAuthError$1 as OAuthError, OAuthProvidersResponse$1 as OAuthProvidersResponse, OAuthTokenResponse$1 as OAuthTokenResponse };
|
|
@@ -212,7 +212,7 @@ declare class Oauth {
|
|
|
212
212
|
*
|
|
213
213
|
* Request model (no read-only fields).
|
|
214
214
|
*/
|
|
215
|
-
interface
|
|
215
|
+
interface PatchedUserProfileUpdateRequest$1 {
|
|
216
216
|
first_name?: string;
|
|
217
217
|
last_name?: string;
|
|
218
218
|
company?: string;
|
|
@@ -220,14 +220,6 @@ interface UserProfileUpdateRequest$1 {
|
|
|
220
220
|
position?: string;
|
|
221
221
|
language?: string;
|
|
222
222
|
}
|
|
223
|
-
/**
|
|
224
|
-
*
|
|
225
|
-
* Request model (no read-only fields).
|
|
226
|
-
*/
|
|
227
|
-
interface CfgAccountsProfileAvatarCreateRequest$1 {
|
|
228
|
-
/** Avatar image file (JPEG, PNG, GIF, WebP, max 5MB) */
|
|
229
|
-
avatar: File | Blob;
|
|
230
|
-
}
|
|
231
223
|
/**
|
|
232
224
|
* Serializer for user details.
|
|
233
225
|
*
|
|
@@ -258,12 +250,23 @@ interface User$2 {
|
|
|
258
250
|
unanswered_messages_count: number;
|
|
259
251
|
centrifugo: CentrifugoToken$2 | null;
|
|
260
252
|
}
|
|
253
|
+
/**
|
|
254
|
+
* Response serializer for account deletion.
|
|
255
|
+
*
|
|
256
|
+
* Response model (includes read-only fields).
|
|
257
|
+
*/
|
|
258
|
+
interface AccountDeleteResponse$1 {
|
|
259
|
+
/** Whether the account was successfully deleted */
|
|
260
|
+
success: boolean;
|
|
261
|
+
/** Human-readable message about the deletion */
|
|
262
|
+
message: string;
|
|
263
|
+
}
|
|
261
264
|
/**
|
|
262
265
|
* Serializer for updating user profile.
|
|
263
266
|
*
|
|
264
267
|
* Request model (no read-only fields).
|
|
265
268
|
*/
|
|
266
|
-
interface
|
|
269
|
+
interface UserProfileUpdateRequest$1 {
|
|
267
270
|
first_name?: string;
|
|
268
271
|
last_name?: string;
|
|
269
272
|
company?: string;
|
|
@@ -272,15 +275,12 @@ interface PatchedUserProfileUpdateRequest$1 {
|
|
|
272
275
|
language?: string;
|
|
273
276
|
}
|
|
274
277
|
/**
|
|
275
|
-
* Response serializer for account deletion.
|
|
276
278
|
*
|
|
277
|
-
*
|
|
279
|
+
* Request model (no read-only fields).
|
|
278
280
|
*/
|
|
279
|
-
interface
|
|
280
|
-
/**
|
|
281
|
-
|
|
282
|
-
/** Human-readable message about the deletion */
|
|
283
|
-
message: 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.
|
|
@@ -359,27 +359,6 @@ declare class UserProfile {
|
|
|
359
359
|
accountsProfileUpdatePartialUpdate(data?: PatchedUserProfileUpdateRequest$1): Promise<User$2>;
|
|
360
360
|
}
|
|
361
361
|
|
|
362
|
-
/**
|
|
363
|
-
* OTP verification response. When 2FA is required: - requires_2fa: True -
|
|
364
|
-
* session_id: UUID of 2FA verification session - refresh/access/user: null
|
|
365
|
-
* When 2FA is not required: - requires_2fa: False - session_id: null -
|
|
366
|
-
* refresh/access/user: populated
|
|
367
|
-
*
|
|
368
|
-
* Response model (includes read-only fields).
|
|
369
|
-
*/
|
|
370
|
-
interface OTPVerifyResponse$1 {
|
|
371
|
-
/** Whether 2FA verification is required */
|
|
372
|
-
requires_2fa?: boolean;
|
|
373
|
-
/** 2FA session ID (if requires_2fa is True) */
|
|
374
|
-
session_id?: string | null;
|
|
375
|
-
/** JWT refresh token (if requires_2fa is False) */
|
|
376
|
-
refresh?: string | null;
|
|
377
|
-
/** JWT access token (if requires_2fa is False) */
|
|
378
|
-
access?: string | null;
|
|
379
|
-
user?: User$1 | null;
|
|
380
|
-
/** Whether user should be prompted to enable 2FA */
|
|
381
|
-
should_prompt_2fa?: boolean;
|
|
382
|
-
}
|
|
383
362
|
/**
|
|
384
363
|
* Serializer for OTP verification.
|
|
385
364
|
*
|
|
@@ -392,17 +371,6 @@ interface OTPVerifyRequest$1 {
|
|
|
392
371
|
/** Source URL for tracking login (e.g., https://my.djangocfg.com) */
|
|
393
372
|
source_url?: string;
|
|
394
373
|
}
|
|
395
|
-
/**
|
|
396
|
-
* Serializer for OTP request.
|
|
397
|
-
*
|
|
398
|
-
* Request model (no read-only fields).
|
|
399
|
-
*/
|
|
400
|
-
interface OTPRequestRequest$1 {
|
|
401
|
-
/** Email address for OTP delivery */
|
|
402
|
-
identifier: string;
|
|
403
|
-
/** Source URL for tracking registration (e.g., https://my.djangocfg.com) */
|
|
404
|
-
source_url?: string;
|
|
405
|
-
}
|
|
406
374
|
/**
|
|
407
375
|
* OTP request response.
|
|
408
376
|
*
|
|
@@ -432,6 +400,38 @@ interface OTPErrorResponse$1 {
|
|
|
432
400
|
/** Seconds until the client may retry (present only for rate-limit errors) */
|
|
433
401
|
retry_after?: number | null;
|
|
434
402
|
}
|
|
403
|
+
/**
|
|
404
|
+
* Serializer for OTP request.
|
|
405
|
+
*
|
|
406
|
+
* Request model (no read-only fields).
|
|
407
|
+
*/
|
|
408
|
+
interface OTPRequestRequest$1 {
|
|
409
|
+
/** Email address for OTP delivery */
|
|
410
|
+
identifier: string;
|
|
411
|
+
/** Source URL for tracking registration (e.g., https://my.djangocfg.com) */
|
|
412
|
+
source_url?: string;
|
|
413
|
+
}
|
|
414
|
+
/**
|
|
415
|
+
* OTP verification response. When 2FA is required: - requires_2fa: True -
|
|
416
|
+
* session_id: UUID of 2FA verification session - refresh/access/user: null
|
|
417
|
+
* When 2FA is not required: - requires_2fa: False - session_id: null -
|
|
418
|
+
* refresh/access/user: populated
|
|
419
|
+
*
|
|
420
|
+
* Response model (includes read-only fields).
|
|
421
|
+
*/
|
|
422
|
+
interface OTPVerifyResponse$1 {
|
|
423
|
+
/** Whether 2FA verification is required */
|
|
424
|
+
requires_2fa?: boolean;
|
|
425
|
+
/** 2FA session ID (if requires_2fa is True) */
|
|
426
|
+
session_id?: string | null;
|
|
427
|
+
/** JWT refresh token (if requires_2fa is False) */
|
|
428
|
+
refresh?: string | null;
|
|
429
|
+
/** JWT access token (if requires_2fa is False) */
|
|
430
|
+
access?: string | null;
|
|
431
|
+
user?: User$1 | null;
|
|
432
|
+
/** Whether user should be prompted to enable 2FA */
|
|
433
|
+
should_prompt_2fa?: boolean;
|
|
434
|
+
}
|
|
435
435
|
/**
|
|
436
436
|
* Serializer for user details.
|
|
437
437
|
*
|
package/dist/index.d.ts
CHANGED
|
@@ -48,26 +48,13 @@ 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
|
-
* Error response for OAuth endpoints.
|
|
51
|
+
* Response with available OAuth providers.
|
|
63
52
|
*
|
|
64
53
|
* Response model (includes read-only fields).
|
|
65
54
|
*/
|
|
66
|
-
interface
|
|
67
|
-
/**
|
|
68
|
-
|
|
69
|
-
/** Human-readable error description */
|
|
70
|
-
error_description?: string;
|
|
55
|
+
interface OAuthProvidersResponse$1 {
|
|
56
|
+
/** List of available OAuth providers */
|
|
57
|
+
providers: Array<Record<string, any>>;
|
|
71
58
|
}
|
|
72
59
|
/**
|
|
73
60
|
* Request to disconnect OAuth provider.
|
|
@@ -81,37 +68,26 @@ interface OAuthDisconnectRequestRequest$1 {
|
|
|
81
68
|
provider: OAuthConnectionProvider;
|
|
82
69
|
}
|
|
83
70
|
/**
|
|
84
|
-
*
|
|
71
|
+
* Error response for OAuth endpoints.
|
|
85
72
|
*
|
|
86
73
|
* Response model (includes read-only fields).
|
|
87
74
|
*/
|
|
88
|
-
interface
|
|
89
|
-
/**
|
|
90
|
-
|
|
75
|
+
interface OAuthError$1 {
|
|
76
|
+
/** Error code */
|
|
77
|
+
error: string;
|
|
78
|
+
/** Human-readable error description */
|
|
79
|
+
error_description?: string;
|
|
91
80
|
}
|
|
92
81
|
/**
|
|
93
|
-
* Request to
|
|
82
|
+
* Request to start OAuth flow.
|
|
94
83
|
*
|
|
95
84
|
* Request model (no read-only fields).
|
|
96
85
|
*/
|
|
97
|
-
interface
|
|
98
|
-
/**
|
|
99
|
-
code: string;
|
|
100
|
-
/** State token for CSRF verification (from authorize response) */
|
|
101
|
-
state: string;
|
|
102
|
-
/** Same redirect_uri used in authorize request. If not provided, uses config's site_url + callback_path */
|
|
86
|
+
interface OAuthAuthorizeRequestRequest$1 {
|
|
87
|
+
/** URL to redirect after OAuth authorization. If not provided, uses config's site_url + callback_path */
|
|
103
88
|
redirect_uri?: string;
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
* Response with OAuth authorization URL.
|
|
107
|
-
*
|
|
108
|
-
* Response model (includes read-only fields).
|
|
109
|
-
*/
|
|
110
|
-
interface OAuthAuthorizeResponse$1 {
|
|
111
|
-
/** Full URL to redirect user to OAuth provider */
|
|
112
|
-
authorization_url: string;
|
|
113
|
-
/** State token for CSRF protection. Store this and verify on callback. */
|
|
114
|
-
state: string;
|
|
89
|
+
/** Optional source URL for registration tracking */
|
|
90
|
+
source_url?: string;
|
|
115
91
|
}
|
|
116
92
|
/**
|
|
117
93
|
* Response with JWT tokens after OAuth authentication. When 2FA is required: -
|
|
@@ -162,6 +138,30 @@ interface OAuthConnection$1 {
|
|
|
162
138
|
/** Last time this OAuth connection was used for login */
|
|
163
139
|
last_login_at: string;
|
|
164
140
|
}
|
|
141
|
+
/**
|
|
142
|
+
* Response with OAuth authorization URL.
|
|
143
|
+
*
|
|
144
|
+
* Response model (includes read-only fields).
|
|
145
|
+
*/
|
|
146
|
+
interface OAuthAuthorizeResponse$1 {
|
|
147
|
+
/** Full URL to redirect user to OAuth provider */
|
|
148
|
+
authorization_url: string;
|
|
149
|
+
/** State token for CSRF protection. Store this and verify on callback. */
|
|
150
|
+
state: string;
|
|
151
|
+
}
|
|
152
|
+
/**
|
|
153
|
+
* Request to complete OAuth flow (callback handler).
|
|
154
|
+
*
|
|
155
|
+
* Request model (no read-only fields).
|
|
156
|
+
*/
|
|
157
|
+
interface OAuthCallbackRequestRequest$1 {
|
|
158
|
+
/** Authorization code from OAuth provider callback */
|
|
159
|
+
code: string;
|
|
160
|
+
/** State token for CSRF verification (from authorize response) */
|
|
161
|
+
state: string;
|
|
162
|
+
/** Same redirect_uri used in authorize request. If not provided, uses config's site_url + callback_path */
|
|
163
|
+
redirect_uri?: string;
|
|
164
|
+
}
|
|
165
165
|
|
|
166
166
|
declare namespace models$2 {
|
|
167
167
|
export type { OAuthAuthorizeRequestRequest$1 as OAuthAuthorizeRequestRequest, OAuthAuthorizeResponse$1 as OAuthAuthorizeResponse, OAuthCallbackRequestRequest$1 as OAuthCallbackRequestRequest, OAuthConnection$1 as OAuthConnection, OAuthDisconnectRequestRequest$1 as OAuthDisconnectRequestRequest, OAuthError$1 as OAuthError, OAuthProvidersResponse$1 as OAuthProvidersResponse, OAuthTokenResponse$1 as OAuthTokenResponse };
|
|
@@ -212,7 +212,7 @@ declare class Oauth {
|
|
|
212
212
|
*
|
|
213
213
|
* Request model (no read-only fields).
|
|
214
214
|
*/
|
|
215
|
-
interface
|
|
215
|
+
interface PatchedUserProfileUpdateRequest$1 {
|
|
216
216
|
first_name?: string;
|
|
217
217
|
last_name?: string;
|
|
218
218
|
company?: string;
|
|
@@ -220,14 +220,6 @@ interface UserProfileUpdateRequest$1 {
|
|
|
220
220
|
position?: string;
|
|
221
221
|
language?: string;
|
|
222
222
|
}
|
|
223
|
-
/**
|
|
224
|
-
*
|
|
225
|
-
* Request model (no read-only fields).
|
|
226
|
-
*/
|
|
227
|
-
interface CfgAccountsProfileAvatarCreateRequest$1 {
|
|
228
|
-
/** Avatar image file (JPEG, PNG, GIF, WebP, max 5MB) */
|
|
229
|
-
avatar: File | Blob;
|
|
230
|
-
}
|
|
231
223
|
/**
|
|
232
224
|
* Serializer for user details.
|
|
233
225
|
*
|
|
@@ -258,12 +250,23 @@ interface User$2 {
|
|
|
258
250
|
unanswered_messages_count: number;
|
|
259
251
|
centrifugo: CentrifugoToken$2 | null;
|
|
260
252
|
}
|
|
253
|
+
/**
|
|
254
|
+
* Response serializer for account deletion.
|
|
255
|
+
*
|
|
256
|
+
* Response model (includes read-only fields).
|
|
257
|
+
*/
|
|
258
|
+
interface AccountDeleteResponse$1 {
|
|
259
|
+
/** Whether the account was successfully deleted */
|
|
260
|
+
success: boolean;
|
|
261
|
+
/** Human-readable message about the deletion */
|
|
262
|
+
message: string;
|
|
263
|
+
}
|
|
261
264
|
/**
|
|
262
265
|
* Serializer for updating user profile.
|
|
263
266
|
*
|
|
264
267
|
* Request model (no read-only fields).
|
|
265
268
|
*/
|
|
266
|
-
interface
|
|
269
|
+
interface UserProfileUpdateRequest$1 {
|
|
267
270
|
first_name?: string;
|
|
268
271
|
last_name?: string;
|
|
269
272
|
company?: string;
|
|
@@ -272,15 +275,12 @@ interface PatchedUserProfileUpdateRequest$1 {
|
|
|
272
275
|
language?: string;
|
|
273
276
|
}
|
|
274
277
|
/**
|
|
275
|
-
* Response serializer for account deletion.
|
|
276
278
|
*
|
|
277
|
-
*
|
|
279
|
+
* Request model (no read-only fields).
|
|
278
280
|
*/
|
|
279
|
-
interface
|
|
280
|
-
/**
|
|
281
|
-
|
|
282
|
-
/** Human-readable message about the deletion */
|
|
283
|
-
message: 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.
|
|
@@ -359,27 +359,6 @@ declare class UserProfile {
|
|
|
359
359
|
accountsProfileUpdatePartialUpdate(data?: PatchedUserProfileUpdateRequest$1): Promise<User$2>;
|
|
360
360
|
}
|
|
361
361
|
|
|
362
|
-
/**
|
|
363
|
-
* OTP verification response. When 2FA is required: - requires_2fa: True -
|
|
364
|
-
* session_id: UUID of 2FA verification session - refresh/access/user: null
|
|
365
|
-
* When 2FA is not required: - requires_2fa: False - session_id: null -
|
|
366
|
-
* refresh/access/user: populated
|
|
367
|
-
*
|
|
368
|
-
* Response model (includes read-only fields).
|
|
369
|
-
*/
|
|
370
|
-
interface OTPVerifyResponse$1 {
|
|
371
|
-
/** Whether 2FA verification is required */
|
|
372
|
-
requires_2fa?: boolean;
|
|
373
|
-
/** 2FA session ID (if requires_2fa is True) */
|
|
374
|
-
session_id?: string | null;
|
|
375
|
-
/** JWT refresh token (if requires_2fa is False) */
|
|
376
|
-
refresh?: string | null;
|
|
377
|
-
/** JWT access token (if requires_2fa is False) */
|
|
378
|
-
access?: string | null;
|
|
379
|
-
user?: User$1 | null;
|
|
380
|
-
/** Whether user should be prompted to enable 2FA */
|
|
381
|
-
should_prompt_2fa?: boolean;
|
|
382
|
-
}
|
|
383
362
|
/**
|
|
384
363
|
* Serializer for OTP verification.
|
|
385
364
|
*
|
|
@@ -392,17 +371,6 @@ interface OTPVerifyRequest$1 {
|
|
|
392
371
|
/** Source URL for tracking login (e.g., https://my.djangocfg.com) */
|
|
393
372
|
source_url?: string;
|
|
394
373
|
}
|
|
395
|
-
/**
|
|
396
|
-
* Serializer for OTP request.
|
|
397
|
-
*
|
|
398
|
-
* Request model (no read-only fields).
|
|
399
|
-
*/
|
|
400
|
-
interface OTPRequestRequest$1 {
|
|
401
|
-
/** Email address for OTP delivery */
|
|
402
|
-
identifier: string;
|
|
403
|
-
/** Source URL for tracking registration (e.g., https://my.djangocfg.com) */
|
|
404
|
-
source_url?: string;
|
|
405
|
-
}
|
|
406
374
|
/**
|
|
407
375
|
* OTP request response.
|
|
408
376
|
*
|
|
@@ -432,6 +400,38 @@ interface OTPErrorResponse$1 {
|
|
|
432
400
|
/** Seconds until the client may retry (present only for rate-limit errors) */
|
|
433
401
|
retry_after?: number | null;
|
|
434
402
|
}
|
|
403
|
+
/**
|
|
404
|
+
* Serializer for OTP request.
|
|
405
|
+
*
|
|
406
|
+
* Request model (no read-only fields).
|
|
407
|
+
*/
|
|
408
|
+
interface OTPRequestRequest$1 {
|
|
409
|
+
/** Email address for OTP delivery */
|
|
410
|
+
identifier: string;
|
|
411
|
+
/** Source URL for tracking registration (e.g., https://my.djangocfg.com) */
|
|
412
|
+
source_url?: string;
|
|
413
|
+
}
|
|
414
|
+
/**
|
|
415
|
+
* OTP verification response. When 2FA is required: - requires_2fa: True -
|
|
416
|
+
* session_id: UUID of 2FA verification session - refresh/access/user: null
|
|
417
|
+
* When 2FA is not required: - requires_2fa: False - session_id: null -
|
|
418
|
+
* refresh/access/user: populated
|
|
419
|
+
*
|
|
420
|
+
* Response model (includes read-only fields).
|
|
421
|
+
*/
|
|
422
|
+
interface OTPVerifyResponse$1 {
|
|
423
|
+
/** Whether 2FA verification is required */
|
|
424
|
+
requires_2fa?: boolean;
|
|
425
|
+
/** 2FA session ID (if requires_2fa is True) */
|
|
426
|
+
session_id?: string | null;
|
|
427
|
+
/** JWT refresh token (if requires_2fa is False) */
|
|
428
|
+
refresh?: string | null;
|
|
429
|
+
/** JWT access token (if requires_2fa is False) */
|
|
430
|
+
access?: string | null;
|
|
431
|
+
user?: User$1 | null;
|
|
432
|
+
/** Whether user should be prompted to enable 2FA */
|
|
433
|
+
should_prompt_2fa?: boolean;
|
|
434
|
+
}
|
|
435
435
|
/**
|
|
436
436
|
* Serializer for user details.
|
|
437
437
|
*
|