@djangocfg/api 2.1.228 → 2.1.230
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/clients.d.cts +234 -234
- package/dist/clients.d.ts +234 -234
- package/dist/hooks.d.cts +54 -54
- package/dist/hooks.d.ts +54 -54
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +83 -83
- package/dist/index.d.ts +83 -83
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
- package/src/_api/generated/cfg_accounts/accounts/models.ts +43 -43
- package/src/_api/generated/cfg_accounts/accounts__oauth/models.ts +22 -22
- package/src/_api/generated/cfg_accounts/accounts__user_profile/models.ts +23 -23
- package/src/_api/generated/cfg_centrifugo/centrifugo__centrifugo_admin_api/models.ts +99 -99
- package/src/_api/generated/cfg_centrifugo/centrifugo__centrifugo_monitoring/models.ts +28 -28
- package/src/_api/generated/cfg_centrifugo/centrifugo__centrifugo_testing/models.ts +16 -16
- package/src/_api/generated/cfg_totp/totp__backup_codes/models.ts +10 -10
- package/src/_api/generated/cfg_totp/totp__totp_management/models.ts +10 -10
- package/src/_api/generated/cfg_totp/totp__totp_setup/models.ts +15 -15
- package/src/_api/generated/cfg_totp/totp__totp_verification/models.ts +12 -12
package/dist/hooks.d.cts
CHANGED
|
@@ -39,13 +39,15 @@ declare enum OAuthConnectionProvider {
|
|
|
39
39
|
}
|
|
40
40
|
|
|
41
41
|
/**
|
|
42
|
-
*
|
|
42
|
+
* Request to start OAuth flow.
|
|
43
43
|
*
|
|
44
|
-
*
|
|
44
|
+
* Request model (no read-only fields).
|
|
45
45
|
*/
|
|
46
|
-
interface
|
|
47
|
-
/**
|
|
48
|
-
|
|
46
|
+
interface OAuthAuthorizeRequestRequest$1 {
|
|
47
|
+
/** URL to redirect after OAuth authorization. If not provided, uses config's site_url + callback_path */
|
|
48
|
+
redirect_uri?: string;
|
|
49
|
+
/** Optional source URL for registration tracking */
|
|
50
|
+
source_url?: string;
|
|
49
51
|
}
|
|
50
52
|
/**
|
|
51
53
|
* Request to disconnect OAuth provider.
|
|
@@ -59,15 +61,13 @@ interface OAuthDisconnectRequestRequest$1 {
|
|
|
59
61
|
provider: OAuthConnectionProvider;
|
|
60
62
|
}
|
|
61
63
|
/**
|
|
62
|
-
*
|
|
64
|
+
* Response with available OAuth providers.
|
|
63
65
|
*
|
|
64
|
-
*
|
|
66
|
+
* Response model (includes read-only fields).
|
|
65
67
|
*/
|
|
66
|
-
interface
|
|
67
|
-
/**
|
|
68
|
-
|
|
69
|
-
/** Optional source URL for registration tracking */
|
|
70
|
-
source_url?: string;
|
|
68
|
+
interface OAuthProvidersResponse {
|
|
69
|
+
/** List of available OAuth providers */
|
|
70
|
+
providers: Array<Record<string, any>>;
|
|
71
71
|
}
|
|
72
72
|
/**
|
|
73
73
|
* Request to complete OAuth flow (callback handler).
|
|
@@ -160,17 +160,6 @@ declare class Oauth {
|
|
|
160
160
|
accountsOauthProvidersRetrieve(): Promise<OAuthProvidersResponse>;
|
|
161
161
|
}
|
|
162
162
|
|
|
163
|
-
/**
|
|
164
|
-
* Response serializer for account deletion.
|
|
165
|
-
*
|
|
166
|
-
* Response model (includes read-only fields).
|
|
167
|
-
*/
|
|
168
|
-
interface AccountDeleteResponse$1 {
|
|
169
|
-
/** Whether the account was successfully deleted */
|
|
170
|
-
success: boolean;
|
|
171
|
-
/** Human-readable message about the deletion */
|
|
172
|
-
message: string;
|
|
173
|
-
}
|
|
174
163
|
/**
|
|
175
164
|
* Serializer for updating user profile.
|
|
176
165
|
*
|
|
@@ -185,17 +174,12 @@ interface UserProfileUpdateRequest$1 {
|
|
|
185
174
|
language?: string;
|
|
186
175
|
}
|
|
187
176
|
/**
|
|
188
|
-
* Serializer for updating user profile.
|
|
189
177
|
*
|
|
190
178
|
* Request model (no read-only fields).
|
|
191
179
|
*/
|
|
192
|
-
interface
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
company?: string;
|
|
196
|
-
phone?: string;
|
|
197
|
-
position?: string;
|
|
198
|
-
language?: string;
|
|
180
|
+
interface CfgAccountsProfileAvatarCreateRequest$1 {
|
|
181
|
+
/** Avatar image file (JPEG, PNG, GIF, WebP, max 5MB) */
|
|
182
|
+
avatar: File | Blob;
|
|
199
183
|
}
|
|
200
184
|
/**
|
|
201
185
|
* Serializer for user details.
|
|
@@ -228,12 +212,28 @@ interface User$2 {
|
|
|
228
212
|
centrifugo: CentrifugoToken$1 | null;
|
|
229
213
|
}
|
|
230
214
|
/**
|
|
215
|
+
* Serializer for updating user profile.
|
|
231
216
|
*
|
|
232
217
|
* Request model (no read-only fields).
|
|
233
218
|
*/
|
|
234
|
-
interface
|
|
235
|
-
|
|
236
|
-
|
|
219
|
+
interface PatchedUserProfileUpdateRequest$1 {
|
|
220
|
+
first_name?: string;
|
|
221
|
+
last_name?: string;
|
|
222
|
+
company?: string;
|
|
223
|
+
phone?: string;
|
|
224
|
+
position?: string;
|
|
225
|
+
language?: string;
|
|
226
|
+
}
|
|
227
|
+
/**
|
|
228
|
+
* Response serializer for account deletion.
|
|
229
|
+
*
|
|
230
|
+
* Response model (includes read-only fields).
|
|
231
|
+
*/
|
|
232
|
+
interface AccountDeleteResponse$1 {
|
|
233
|
+
/** Whether the account was successfully deleted */
|
|
234
|
+
success: boolean;
|
|
235
|
+
/** Human-readable message about the deletion */
|
|
236
|
+
message: string;
|
|
237
237
|
}
|
|
238
238
|
/**
|
|
239
239
|
* Nested serializer for Centrifugo WebSocket connection token.
|
|
@@ -308,26 +308,6 @@ declare class UserProfile {
|
|
|
308
308
|
accountsProfileUpdatePartialUpdate(data?: PatchedUserProfileUpdateRequest$1): Promise<User$2>;
|
|
309
309
|
}
|
|
310
310
|
|
|
311
|
-
/**
|
|
312
|
-
* Serializer for OTP request.
|
|
313
|
-
*
|
|
314
|
-
* Request model (no read-only fields).
|
|
315
|
-
*/
|
|
316
|
-
interface OTPRequestRequest$1 {
|
|
317
|
-
/** Email address for OTP delivery */
|
|
318
|
-
identifier: string;
|
|
319
|
-
/** Source URL for tracking registration (e.g., https://my.djangocfg.com) */
|
|
320
|
-
source_url?: string;
|
|
321
|
-
}
|
|
322
|
-
/**
|
|
323
|
-
* OTP request response.
|
|
324
|
-
*
|
|
325
|
-
* Response model (includes read-only fields).
|
|
326
|
-
*/
|
|
327
|
-
interface OTPRequestResponse$1 {
|
|
328
|
-
/** Success message */
|
|
329
|
-
message: string;
|
|
330
|
-
}
|
|
331
311
|
/**
|
|
332
312
|
* OTP verification response. When 2FA is required: - requires_2fa: True -
|
|
333
313
|
* session_id: UUID of 2FA verification session - refresh/access/user: null
|
|
@@ -361,6 +341,26 @@ interface OTPVerifyRequest$1 {
|
|
|
361
341
|
/** Source URL for tracking login (e.g., https://my.djangocfg.com) */
|
|
362
342
|
source_url?: string;
|
|
363
343
|
}
|
|
344
|
+
/**
|
|
345
|
+
* Serializer for OTP request.
|
|
346
|
+
*
|
|
347
|
+
* Request model (no read-only fields).
|
|
348
|
+
*/
|
|
349
|
+
interface OTPRequestRequest$1 {
|
|
350
|
+
/** Email address for OTP delivery */
|
|
351
|
+
identifier: string;
|
|
352
|
+
/** Source URL for tracking registration (e.g., https://my.djangocfg.com) */
|
|
353
|
+
source_url?: string;
|
|
354
|
+
}
|
|
355
|
+
/**
|
|
356
|
+
* OTP request response.
|
|
357
|
+
*
|
|
358
|
+
* Response model (includes read-only fields).
|
|
359
|
+
*/
|
|
360
|
+
interface OTPRequestResponse$1 {
|
|
361
|
+
/** Success message */
|
|
362
|
+
message: string;
|
|
363
|
+
}
|
|
364
364
|
/**
|
|
365
365
|
* Serializer for user details.
|
|
366
366
|
*
|
package/dist/hooks.d.ts
CHANGED
|
@@ -39,13 +39,15 @@ declare enum OAuthConnectionProvider {
|
|
|
39
39
|
}
|
|
40
40
|
|
|
41
41
|
/**
|
|
42
|
-
*
|
|
42
|
+
* Request to start OAuth flow.
|
|
43
43
|
*
|
|
44
|
-
*
|
|
44
|
+
* Request model (no read-only fields).
|
|
45
45
|
*/
|
|
46
|
-
interface
|
|
47
|
-
/**
|
|
48
|
-
|
|
46
|
+
interface OAuthAuthorizeRequestRequest$1 {
|
|
47
|
+
/** URL to redirect after OAuth authorization. If not provided, uses config's site_url + callback_path */
|
|
48
|
+
redirect_uri?: string;
|
|
49
|
+
/** Optional source URL for registration tracking */
|
|
50
|
+
source_url?: string;
|
|
49
51
|
}
|
|
50
52
|
/**
|
|
51
53
|
* Request to disconnect OAuth provider.
|
|
@@ -59,15 +61,13 @@ interface OAuthDisconnectRequestRequest$1 {
|
|
|
59
61
|
provider: OAuthConnectionProvider;
|
|
60
62
|
}
|
|
61
63
|
/**
|
|
62
|
-
*
|
|
64
|
+
* Response with available OAuth providers.
|
|
63
65
|
*
|
|
64
|
-
*
|
|
66
|
+
* Response model (includes read-only fields).
|
|
65
67
|
*/
|
|
66
|
-
interface
|
|
67
|
-
/**
|
|
68
|
-
|
|
69
|
-
/** Optional source URL for registration tracking */
|
|
70
|
-
source_url?: string;
|
|
68
|
+
interface OAuthProvidersResponse {
|
|
69
|
+
/** List of available OAuth providers */
|
|
70
|
+
providers: Array<Record<string, any>>;
|
|
71
71
|
}
|
|
72
72
|
/**
|
|
73
73
|
* Request to complete OAuth flow (callback handler).
|
|
@@ -160,17 +160,6 @@ declare class Oauth {
|
|
|
160
160
|
accountsOauthProvidersRetrieve(): Promise<OAuthProvidersResponse>;
|
|
161
161
|
}
|
|
162
162
|
|
|
163
|
-
/**
|
|
164
|
-
* Response serializer for account deletion.
|
|
165
|
-
*
|
|
166
|
-
* Response model (includes read-only fields).
|
|
167
|
-
*/
|
|
168
|
-
interface AccountDeleteResponse$1 {
|
|
169
|
-
/** Whether the account was successfully deleted */
|
|
170
|
-
success: boolean;
|
|
171
|
-
/** Human-readable message about the deletion */
|
|
172
|
-
message: string;
|
|
173
|
-
}
|
|
174
163
|
/**
|
|
175
164
|
* Serializer for updating user profile.
|
|
176
165
|
*
|
|
@@ -185,17 +174,12 @@ interface UserProfileUpdateRequest$1 {
|
|
|
185
174
|
language?: string;
|
|
186
175
|
}
|
|
187
176
|
/**
|
|
188
|
-
* Serializer for updating user profile.
|
|
189
177
|
*
|
|
190
178
|
* Request model (no read-only fields).
|
|
191
179
|
*/
|
|
192
|
-
interface
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
company?: string;
|
|
196
|
-
phone?: string;
|
|
197
|
-
position?: string;
|
|
198
|
-
language?: string;
|
|
180
|
+
interface CfgAccountsProfileAvatarCreateRequest$1 {
|
|
181
|
+
/** Avatar image file (JPEG, PNG, GIF, WebP, max 5MB) */
|
|
182
|
+
avatar: File | Blob;
|
|
199
183
|
}
|
|
200
184
|
/**
|
|
201
185
|
* Serializer for user details.
|
|
@@ -228,12 +212,28 @@ interface User$2 {
|
|
|
228
212
|
centrifugo: CentrifugoToken$1 | null;
|
|
229
213
|
}
|
|
230
214
|
/**
|
|
215
|
+
* Serializer for updating user profile.
|
|
231
216
|
*
|
|
232
217
|
* Request model (no read-only fields).
|
|
233
218
|
*/
|
|
234
|
-
interface
|
|
235
|
-
|
|
236
|
-
|
|
219
|
+
interface PatchedUserProfileUpdateRequest$1 {
|
|
220
|
+
first_name?: string;
|
|
221
|
+
last_name?: string;
|
|
222
|
+
company?: string;
|
|
223
|
+
phone?: string;
|
|
224
|
+
position?: string;
|
|
225
|
+
language?: string;
|
|
226
|
+
}
|
|
227
|
+
/**
|
|
228
|
+
* Response serializer for account deletion.
|
|
229
|
+
*
|
|
230
|
+
* Response model (includes read-only fields).
|
|
231
|
+
*/
|
|
232
|
+
interface AccountDeleteResponse$1 {
|
|
233
|
+
/** Whether the account was successfully deleted */
|
|
234
|
+
success: boolean;
|
|
235
|
+
/** Human-readable message about the deletion */
|
|
236
|
+
message: string;
|
|
237
237
|
}
|
|
238
238
|
/**
|
|
239
239
|
* Nested serializer for Centrifugo WebSocket connection token.
|
|
@@ -308,26 +308,6 @@ declare class UserProfile {
|
|
|
308
308
|
accountsProfileUpdatePartialUpdate(data?: PatchedUserProfileUpdateRequest$1): Promise<User$2>;
|
|
309
309
|
}
|
|
310
310
|
|
|
311
|
-
/**
|
|
312
|
-
* Serializer for OTP request.
|
|
313
|
-
*
|
|
314
|
-
* Request model (no read-only fields).
|
|
315
|
-
*/
|
|
316
|
-
interface OTPRequestRequest$1 {
|
|
317
|
-
/** Email address for OTP delivery */
|
|
318
|
-
identifier: string;
|
|
319
|
-
/** Source URL for tracking registration (e.g., https://my.djangocfg.com) */
|
|
320
|
-
source_url?: string;
|
|
321
|
-
}
|
|
322
|
-
/**
|
|
323
|
-
* OTP request response.
|
|
324
|
-
*
|
|
325
|
-
* Response model (includes read-only fields).
|
|
326
|
-
*/
|
|
327
|
-
interface OTPRequestResponse$1 {
|
|
328
|
-
/** Success message */
|
|
329
|
-
message: string;
|
|
330
|
-
}
|
|
331
311
|
/**
|
|
332
312
|
* OTP verification response. When 2FA is required: - requires_2fa: True -
|
|
333
313
|
* session_id: UUID of 2FA verification session - refresh/access/user: null
|
|
@@ -361,6 +341,26 @@ interface OTPVerifyRequest$1 {
|
|
|
361
341
|
/** Source URL for tracking login (e.g., https://my.djangocfg.com) */
|
|
362
342
|
source_url?: string;
|
|
363
343
|
}
|
|
344
|
+
/**
|
|
345
|
+
* Serializer for OTP request.
|
|
346
|
+
*
|
|
347
|
+
* Request model (no read-only fields).
|
|
348
|
+
*/
|
|
349
|
+
interface OTPRequestRequest$1 {
|
|
350
|
+
/** Email address for OTP delivery */
|
|
351
|
+
identifier: string;
|
|
352
|
+
/** Source URL for tracking registration (e.g., https://my.djangocfg.com) */
|
|
353
|
+
source_url?: string;
|
|
354
|
+
}
|
|
355
|
+
/**
|
|
356
|
+
* OTP request response.
|
|
357
|
+
*
|
|
358
|
+
* Response model (includes read-only fields).
|
|
359
|
+
*/
|
|
360
|
+
interface OTPRequestResponse$1 {
|
|
361
|
+
/** Success message */
|
|
362
|
+
message: string;
|
|
363
|
+
}
|
|
364
364
|
/**
|
|
365
365
|
* Serializer for user details.
|
|
366
366
|
*
|