@djangocfg/api 2.1.224 → 2.1.226
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 +230 -230
- package/dist/clients.d.ts +230 -230
- package/dist/hooks.d.cts +61 -61
- package/dist/hooks.d.ts +61 -61
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +76 -76
- package/dist/index.d.ts +76 -76
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
- package/src/_api/generated/cfg_accounts/accounts/models.ts +14 -14
- package/src/_api/generated/cfg_accounts/accounts__oauth/models.ts +42 -42
- package/src/_api/generated/cfg_accounts/accounts__user_profile/models.ts +24 -24
- package/src/_api/generated/cfg_centrifugo/centrifugo__centrifugo_admin_api/models.ts +86 -86
- package/src/_api/generated/cfg_centrifugo/centrifugo__centrifugo_monitoring/models.ts +30 -30
- package/src/_api/generated/cfg_centrifugo/centrifugo__centrifugo_testing/models.ts +30 -30
- 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 +12 -12
package/dist/hooks.d.cts
CHANGED
|
@@ -48,28 +48,15 @@ declare enum OTPRequestRequestChannel {
|
|
|
48
48
|
}
|
|
49
49
|
|
|
50
50
|
/**
|
|
51
|
-
* Request to
|
|
52
|
-
*
|
|
53
|
-
* Request model (no read-only fields).
|
|
54
|
-
*/
|
|
55
|
-
interface OAuthCallbackRequestRequest$1 {
|
|
56
|
-
/** Authorization code from OAuth provider callback */
|
|
57
|
-
code: string;
|
|
58
|
-
/** State token for CSRF verification (from authorize response) */
|
|
59
|
-
state: string;
|
|
60
|
-
/** Same redirect_uri used in authorize request. If not provided, uses config's site_url + callback_path */
|
|
61
|
-
redirect_uri?: string;
|
|
62
|
-
}
|
|
63
|
-
/**
|
|
64
|
-
* Request to start OAuth flow.
|
|
51
|
+
* Request to disconnect OAuth provider.
|
|
65
52
|
*
|
|
66
53
|
* Request model (no read-only fields).
|
|
67
54
|
*/
|
|
68
|
-
interface
|
|
69
|
-
/**
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
55
|
+
interface OAuthDisconnectRequestRequest$1 {
|
|
56
|
+
/** OAuth provider to disconnect
|
|
57
|
+
|
|
58
|
+
* `github` - GitHub */
|
|
59
|
+
provider: OAuthConnectionProvider;
|
|
73
60
|
}
|
|
74
61
|
/**
|
|
75
62
|
* Response with OAuth authorization URL.
|
|
@@ -83,13 +70,15 @@ interface OAuthAuthorizeResponse$1 {
|
|
|
83
70
|
state: string;
|
|
84
71
|
}
|
|
85
72
|
/**
|
|
86
|
-
*
|
|
73
|
+
* Request to start OAuth flow.
|
|
87
74
|
*
|
|
88
|
-
*
|
|
75
|
+
* Request model (no read-only fields).
|
|
89
76
|
*/
|
|
90
|
-
interface
|
|
91
|
-
/**
|
|
92
|
-
|
|
77
|
+
interface OAuthAuthorizeRequestRequest$1 {
|
|
78
|
+
/** URL to redirect after OAuth authorization. If not provided, uses config's site_url + callback_path */
|
|
79
|
+
redirect_uri?: string;
|
|
80
|
+
/** Optional source URL for registration tracking */
|
|
81
|
+
source_url?: string;
|
|
93
82
|
}
|
|
94
83
|
/**
|
|
95
84
|
* Response with JWT tokens after OAuth authentication. When 2FA is required: -
|
|
@@ -118,15 +107,26 @@ interface OAuthTokenResponse$1 {
|
|
|
118
107
|
should_prompt_2fa?: boolean;
|
|
119
108
|
}
|
|
120
109
|
/**
|
|
121
|
-
*
|
|
110
|
+
* Response with available OAuth providers.
|
|
111
|
+
*
|
|
112
|
+
* Response model (includes read-only fields).
|
|
113
|
+
*/
|
|
114
|
+
interface OAuthProvidersResponse {
|
|
115
|
+
/** List of available OAuth providers */
|
|
116
|
+
providers: Array<Record<string, any>>;
|
|
117
|
+
}
|
|
118
|
+
/**
|
|
119
|
+
* Request to complete OAuth flow (callback handler).
|
|
122
120
|
*
|
|
123
121
|
* Request model (no read-only fields).
|
|
124
122
|
*/
|
|
125
|
-
interface
|
|
126
|
-
/** OAuth provider
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
123
|
+
interface OAuthCallbackRequestRequest$1 {
|
|
124
|
+
/** Authorization code from OAuth provider callback */
|
|
125
|
+
code: string;
|
|
126
|
+
/** State token for CSRF verification (from authorize response) */
|
|
127
|
+
state: string;
|
|
128
|
+
/** Same redirect_uri used in authorize request. If not provided, uses config's site_url + callback_path */
|
|
129
|
+
redirect_uri?: string;
|
|
130
130
|
}
|
|
131
131
|
|
|
132
132
|
/**
|
|
@@ -169,6 +169,27 @@ declare class Oauth {
|
|
|
169
169
|
accountsOauthProvidersRetrieve(): Promise<OAuthProvidersResponse>;
|
|
170
170
|
}
|
|
171
171
|
|
|
172
|
+
/**
|
|
173
|
+
* Serializer for updating user profile.
|
|
174
|
+
*
|
|
175
|
+
* Request model (no read-only fields).
|
|
176
|
+
*/
|
|
177
|
+
interface UserProfileUpdateRequest$1 {
|
|
178
|
+
first_name?: string;
|
|
179
|
+
last_name?: string;
|
|
180
|
+
company?: string;
|
|
181
|
+
phone?: string;
|
|
182
|
+
position?: string;
|
|
183
|
+
language?: string;
|
|
184
|
+
}
|
|
185
|
+
/**
|
|
186
|
+
*
|
|
187
|
+
* Request model (no read-only fields).
|
|
188
|
+
*/
|
|
189
|
+
interface CfgAccountsProfileAvatarCreateRequest$1 {
|
|
190
|
+
/** Avatar image file (JPEG, PNG, GIF, WebP, max 5MB) */
|
|
191
|
+
avatar: File | Blob;
|
|
192
|
+
}
|
|
172
193
|
/**
|
|
173
194
|
* Serializer for user details.
|
|
174
195
|
*
|
|
@@ -204,7 +225,7 @@ interface User$2 {
|
|
|
204
225
|
*
|
|
205
226
|
* Request model (no read-only fields).
|
|
206
227
|
*/
|
|
207
|
-
interface
|
|
228
|
+
interface PatchedUserProfileUpdateRequest$1 {
|
|
208
229
|
first_name?: string;
|
|
209
230
|
last_name?: string;
|
|
210
231
|
company?: string;
|
|
@@ -223,27 +244,6 @@ interface AccountDeleteResponse$1 {
|
|
|
223
244
|
/** Human-readable message about the deletion */
|
|
224
245
|
message: string;
|
|
225
246
|
}
|
|
226
|
-
/**
|
|
227
|
-
* Serializer for updating user profile.
|
|
228
|
-
*
|
|
229
|
-
* Request model (no read-only fields).
|
|
230
|
-
*/
|
|
231
|
-
interface PatchedUserProfileUpdateRequest$1 {
|
|
232
|
-
first_name?: string;
|
|
233
|
-
last_name?: string;
|
|
234
|
-
company?: string;
|
|
235
|
-
phone?: string;
|
|
236
|
-
position?: string;
|
|
237
|
-
language?: string;
|
|
238
|
-
}
|
|
239
|
-
/**
|
|
240
|
-
*
|
|
241
|
-
* Request model (no read-only fields).
|
|
242
|
-
*/
|
|
243
|
-
interface CfgAccountsProfileAvatarCreateRequest$1 {
|
|
244
|
-
/** Avatar image file (JPEG, PNG, GIF, WebP, max 5MB) */
|
|
245
|
-
avatar: File | Blob;
|
|
246
|
-
}
|
|
247
247
|
/**
|
|
248
248
|
* Nested serializer for Centrifugo WebSocket connection token.
|
|
249
249
|
*
|
|
@@ -333,15 +333,6 @@ interface OTPRequestRequest$1 {
|
|
|
333
333
|
/** Source URL for tracking registration (e.g., https://my.djangocfg.com) */
|
|
334
334
|
source_url?: string;
|
|
335
335
|
}
|
|
336
|
-
/**
|
|
337
|
-
* OTP request response.
|
|
338
|
-
*
|
|
339
|
-
* Response model (includes read-only fields).
|
|
340
|
-
*/
|
|
341
|
-
interface OTPRequestResponse$1 {
|
|
342
|
-
/** Success message */
|
|
343
|
-
message: string;
|
|
344
|
-
}
|
|
345
336
|
/**
|
|
346
337
|
* OTP verification response. When 2FA is required: - requires_2fa: True -
|
|
347
338
|
* session_id: UUID of 2FA verification session - refresh/access/user: null
|
|
@@ -363,6 +354,15 @@ interface OTPVerifyResponse$1 {
|
|
|
363
354
|
/** Whether user should be prompted to enable 2FA */
|
|
364
355
|
should_prompt_2fa?: boolean;
|
|
365
356
|
}
|
|
357
|
+
/**
|
|
358
|
+
* OTP request response.
|
|
359
|
+
*
|
|
360
|
+
* Response model (includes read-only fields).
|
|
361
|
+
*/
|
|
362
|
+
interface OTPRequestResponse$1 {
|
|
363
|
+
/** Success message */
|
|
364
|
+
message: string;
|
|
365
|
+
}
|
|
366
366
|
/**
|
|
367
367
|
* Serializer for OTP verification.
|
|
368
368
|
*
|
package/dist/hooks.d.ts
CHANGED
|
@@ -48,28 +48,15 @@ declare enum OTPRequestRequestChannel {
|
|
|
48
48
|
}
|
|
49
49
|
|
|
50
50
|
/**
|
|
51
|
-
* Request to
|
|
52
|
-
*
|
|
53
|
-
* Request model (no read-only fields).
|
|
54
|
-
*/
|
|
55
|
-
interface OAuthCallbackRequestRequest$1 {
|
|
56
|
-
/** Authorization code from OAuth provider callback */
|
|
57
|
-
code: string;
|
|
58
|
-
/** State token for CSRF verification (from authorize response) */
|
|
59
|
-
state: string;
|
|
60
|
-
/** Same redirect_uri used in authorize request. If not provided, uses config's site_url + callback_path */
|
|
61
|
-
redirect_uri?: string;
|
|
62
|
-
}
|
|
63
|
-
/**
|
|
64
|
-
* Request to start OAuth flow.
|
|
51
|
+
* Request to disconnect OAuth provider.
|
|
65
52
|
*
|
|
66
53
|
* Request model (no read-only fields).
|
|
67
54
|
*/
|
|
68
|
-
interface
|
|
69
|
-
/**
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
55
|
+
interface OAuthDisconnectRequestRequest$1 {
|
|
56
|
+
/** OAuth provider to disconnect
|
|
57
|
+
|
|
58
|
+
* `github` - GitHub */
|
|
59
|
+
provider: OAuthConnectionProvider;
|
|
73
60
|
}
|
|
74
61
|
/**
|
|
75
62
|
* Response with OAuth authorization URL.
|
|
@@ -83,13 +70,15 @@ interface OAuthAuthorizeResponse$1 {
|
|
|
83
70
|
state: string;
|
|
84
71
|
}
|
|
85
72
|
/**
|
|
86
|
-
*
|
|
73
|
+
* Request to start OAuth flow.
|
|
87
74
|
*
|
|
88
|
-
*
|
|
75
|
+
* Request model (no read-only fields).
|
|
89
76
|
*/
|
|
90
|
-
interface
|
|
91
|
-
/**
|
|
92
|
-
|
|
77
|
+
interface OAuthAuthorizeRequestRequest$1 {
|
|
78
|
+
/** URL to redirect after OAuth authorization. If not provided, uses config's site_url + callback_path */
|
|
79
|
+
redirect_uri?: string;
|
|
80
|
+
/** Optional source URL for registration tracking */
|
|
81
|
+
source_url?: string;
|
|
93
82
|
}
|
|
94
83
|
/**
|
|
95
84
|
* Response with JWT tokens after OAuth authentication. When 2FA is required: -
|
|
@@ -118,15 +107,26 @@ interface OAuthTokenResponse$1 {
|
|
|
118
107
|
should_prompt_2fa?: boolean;
|
|
119
108
|
}
|
|
120
109
|
/**
|
|
121
|
-
*
|
|
110
|
+
* Response with available OAuth providers.
|
|
111
|
+
*
|
|
112
|
+
* Response model (includes read-only fields).
|
|
113
|
+
*/
|
|
114
|
+
interface OAuthProvidersResponse {
|
|
115
|
+
/** List of available OAuth providers */
|
|
116
|
+
providers: Array<Record<string, any>>;
|
|
117
|
+
}
|
|
118
|
+
/**
|
|
119
|
+
* Request to complete OAuth flow (callback handler).
|
|
122
120
|
*
|
|
123
121
|
* Request model (no read-only fields).
|
|
124
122
|
*/
|
|
125
|
-
interface
|
|
126
|
-
/** OAuth provider
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
123
|
+
interface OAuthCallbackRequestRequest$1 {
|
|
124
|
+
/** Authorization code from OAuth provider callback */
|
|
125
|
+
code: string;
|
|
126
|
+
/** State token for CSRF verification (from authorize response) */
|
|
127
|
+
state: string;
|
|
128
|
+
/** Same redirect_uri used in authorize request. If not provided, uses config's site_url + callback_path */
|
|
129
|
+
redirect_uri?: string;
|
|
130
130
|
}
|
|
131
131
|
|
|
132
132
|
/**
|
|
@@ -169,6 +169,27 @@ declare class Oauth {
|
|
|
169
169
|
accountsOauthProvidersRetrieve(): Promise<OAuthProvidersResponse>;
|
|
170
170
|
}
|
|
171
171
|
|
|
172
|
+
/**
|
|
173
|
+
* Serializer for updating user profile.
|
|
174
|
+
*
|
|
175
|
+
* Request model (no read-only fields).
|
|
176
|
+
*/
|
|
177
|
+
interface UserProfileUpdateRequest$1 {
|
|
178
|
+
first_name?: string;
|
|
179
|
+
last_name?: string;
|
|
180
|
+
company?: string;
|
|
181
|
+
phone?: string;
|
|
182
|
+
position?: string;
|
|
183
|
+
language?: string;
|
|
184
|
+
}
|
|
185
|
+
/**
|
|
186
|
+
*
|
|
187
|
+
* Request model (no read-only fields).
|
|
188
|
+
*/
|
|
189
|
+
interface CfgAccountsProfileAvatarCreateRequest$1 {
|
|
190
|
+
/** Avatar image file (JPEG, PNG, GIF, WebP, max 5MB) */
|
|
191
|
+
avatar: File | Blob;
|
|
192
|
+
}
|
|
172
193
|
/**
|
|
173
194
|
* Serializer for user details.
|
|
174
195
|
*
|
|
@@ -204,7 +225,7 @@ interface User$2 {
|
|
|
204
225
|
*
|
|
205
226
|
* Request model (no read-only fields).
|
|
206
227
|
*/
|
|
207
|
-
interface
|
|
228
|
+
interface PatchedUserProfileUpdateRequest$1 {
|
|
208
229
|
first_name?: string;
|
|
209
230
|
last_name?: string;
|
|
210
231
|
company?: string;
|
|
@@ -223,27 +244,6 @@ interface AccountDeleteResponse$1 {
|
|
|
223
244
|
/** Human-readable message about the deletion */
|
|
224
245
|
message: string;
|
|
225
246
|
}
|
|
226
|
-
/**
|
|
227
|
-
* Serializer for updating user profile.
|
|
228
|
-
*
|
|
229
|
-
* Request model (no read-only fields).
|
|
230
|
-
*/
|
|
231
|
-
interface PatchedUserProfileUpdateRequest$1 {
|
|
232
|
-
first_name?: string;
|
|
233
|
-
last_name?: string;
|
|
234
|
-
company?: string;
|
|
235
|
-
phone?: string;
|
|
236
|
-
position?: string;
|
|
237
|
-
language?: string;
|
|
238
|
-
}
|
|
239
|
-
/**
|
|
240
|
-
*
|
|
241
|
-
* Request model (no read-only fields).
|
|
242
|
-
*/
|
|
243
|
-
interface CfgAccountsProfileAvatarCreateRequest$1 {
|
|
244
|
-
/** Avatar image file (JPEG, PNG, GIF, WebP, max 5MB) */
|
|
245
|
-
avatar: File | Blob;
|
|
246
|
-
}
|
|
247
247
|
/**
|
|
248
248
|
* Nested serializer for Centrifugo WebSocket connection token.
|
|
249
249
|
*
|
|
@@ -333,15 +333,6 @@ interface OTPRequestRequest$1 {
|
|
|
333
333
|
/** Source URL for tracking registration (e.g., https://my.djangocfg.com) */
|
|
334
334
|
source_url?: string;
|
|
335
335
|
}
|
|
336
|
-
/**
|
|
337
|
-
* OTP request response.
|
|
338
|
-
*
|
|
339
|
-
* Response model (includes read-only fields).
|
|
340
|
-
*/
|
|
341
|
-
interface OTPRequestResponse$1 {
|
|
342
|
-
/** Success message */
|
|
343
|
-
message: string;
|
|
344
|
-
}
|
|
345
336
|
/**
|
|
346
337
|
* OTP verification response. When 2FA is required: - requires_2fa: True -
|
|
347
338
|
* session_id: UUID of 2FA verification session - refresh/access/user: null
|
|
@@ -363,6 +354,15 @@ interface OTPVerifyResponse$1 {
|
|
|
363
354
|
/** Whether user should be prompted to enable 2FA */
|
|
364
355
|
should_prompt_2fa?: boolean;
|
|
365
356
|
}
|
|
357
|
+
/**
|
|
358
|
+
* OTP request response.
|
|
359
|
+
*
|
|
360
|
+
* Response model (includes read-only fields).
|
|
361
|
+
*/
|
|
362
|
+
interface OTPRequestResponse$1 {
|
|
363
|
+
/** Success message */
|
|
364
|
+
message: string;
|
|
365
|
+
}
|
|
366
366
|
/**
|
|
367
367
|
* Serializer for OTP verification.
|
|
368
368
|
*
|