@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/hooks.d.cts CHANGED
@@ -39,13 +39,15 @@ declare enum OAuthConnectionProvider {
39
39
  }
40
40
 
41
41
  /**
42
- * Response with available OAuth providers.
42
+ * Request to start OAuth flow.
43
43
  *
44
- * Response model (includes read-only fields).
44
+ * Request model (no read-only fields).
45
45
  */
46
- interface OAuthProvidersResponse {
47
- /** List of available OAuth providers */
48
- providers: Array<Record<string, any>>;
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
- * Request to start OAuth flow.
64
+ * Response with available OAuth providers.
63
65
  *
64
- * Request model (no read-only fields).
66
+ * Response model (includes read-only fields).
65
67
  */
66
- interface OAuthAuthorizeRequestRequest$1 {
67
- /** URL to redirect after OAuth authorization. If not provided, uses config's site_url + callback_path */
68
- redirect_uri?: string;
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 PatchedUserProfileUpdateRequest$1 {
193
- first_name?: string;
194
- last_name?: string;
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 CfgAccountsProfileAvatarCreateRequest$1 {
235
- /** Avatar image file (JPEG, PNG, GIF, WebP, max 5MB) */
236
- avatar: File | Blob;
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
- * Response with available OAuth providers.
42
+ * Request to start OAuth flow.
43
43
  *
44
- * Response model (includes read-only fields).
44
+ * Request model (no read-only fields).
45
45
  */
46
- interface OAuthProvidersResponse {
47
- /** List of available OAuth providers */
48
- providers: Array<Record<string, any>>;
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
- * Request to start OAuth flow.
64
+ * Response with available OAuth providers.
63
65
  *
64
- * Request model (no read-only fields).
66
+ * Response model (includes read-only fields).
65
67
  */
66
- interface OAuthAuthorizeRequestRequest$1 {
67
- /** URL to redirect after OAuth authorization. If not provided, uses config's site_url + callback_path */
68
- redirect_uri?: string;
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 PatchedUserProfileUpdateRequest$1 {
193
- first_name?: string;
194
- last_name?: string;
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 CfgAccountsProfileAvatarCreateRequest$1 {
235
- /** Avatar image file (JPEG, PNG, GIF, WebP, max 5MB) */
236
- avatar: File | Blob;
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
  *