@djangocfg/api 2.1.42 → 2.1.43

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.
Files changed (102) hide show
  1. package/dist/auth.cjs +42 -44
  2. package/dist/auth.cjs.map +1 -1
  3. package/dist/auth.mjs +50 -45
  4. package/dist/auth.mjs.map +1 -1
  5. package/dist/clients.cjs +1842 -1842
  6. package/dist/clients.cjs.map +1 -1
  7. package/dist/clients.d.cts +1627 -1837
  8. package/dist/clients.d.ts +1627 -1837
  9. package/dist/clients.mjs +1840 -1840
  10. package/dist/clients.mjs.map +1 -1
  11. package/dist/hooks.cjs.map +1 -1
  12. package/dist/hooks.d.cts +0 -66
  13. package/dist/hooks.d.ts +0 -66
  14. package/dist/hooks.mjs.map +1 -1
  15. package/dist/index.cjs.map +1 -1
  16. package/dist/index.d.cts +0 -210
  17. package/dist/index.d.ts +0 -210
  18. package/dist/index.mjs.map +1 -1
  19. package/package.json +3 -3
  20. package/src/auth/context/AccountsContext.tsx +15 -15
  21. package/src/auth/context/AuthContext.tsx +6 -5
  22. package/src/auth/hooks/useAuthForm.ts +1 -1
  23. package/src/auth/hooks/useAuthGuard.ts +2 -1
  24. package/src/auth/hooks/useAutoAuth.ts +4 -2
  25. package/src/auth/hooks/useGithubAuth.ts +3 -2
  26. package/src/auth/hooks/useLocalStorage.ts +1 -0
  27. package/src/auth/hooks/useProfileCache.ts +1 -1
  28. package/src/auth/hooks/useSessionStorage.ts +1 -0
  29. package/src/clients.ts +1 -1
  30. package/src/generated/cfg_accounts/CLAUDE.md +92 -0
  31. package/src/generated/cfg_accounts/_utils/fetchers/accounts.ts +1 -8
  32. package/src/generated/cfg_accounts/_utils/fetchers/accounts__auth.ts +1 -8
  33. package/src/generated/cfg_accounts/_utils/fetchers/accounts__oauth.ts +1 -8
  34. package/src/generated/cfg_accounts/_utils/fetchers/accounts__user_profile.ts +1 -8
  35. package/src/generated/cfg_accounts/_utils/fetchers/index.ts +1 -8
  36. package/src/generated/cfg_accounts/_utils/hooks/accounts.ts +1 -8
  37. package/src/generated/cfg_accounts/_utils/hooks/accounts__auth.ts +1 -8
  38. package/src/generated/cfg_accounts/_utils/hooks/accounts__oauth.ts +1 -8
  39. package/src/generated/cfg_accounts/_utils/hooks/accounts__user_profile.ts +1 -8
  40. package/src/generated/cfg_accounts/_utils/hooks/index.ts +1 -8
  41. package/src/generated/cfg_accounts/_utils/schemas/index.ts +1 -8
  42. package/src/generated/cfg_accounts/accounts/index.ts +1 -8
  43. package/src/generated/cfg_accounts/accounts/models.ts +1 -8
  44. package/src/generated/cfg_accounts/accounts__auth/index.ts +1 -8
  45. package/src/generated/cfg_accounts/accounts__auth/models.ts +1 -8
  46. package/src/generated/cfg_accounts/accounts__oauth/index.ts +1 -8
  47. package/src/generated/cfg_accounts/accounts__oauth/models.ts +1 -8
  48. package/src/generated/cfg_accounts/accounts__user_profile/index.ts +1 -8
  49. package/src/generated/cfg_accounts/accounts__user_profile/models.ts +1 -8
  50. package/src/generated/cfg_accounts/api-instance.ts +1 -8
  51. package/src/generated/cfg_accounts/enums.ts +1 -8
  52. package/src/generated/cfg_accounts/errors.ts +1 -8
  53. package/src/generated/cfg_accounts/http.ts +1 -8
  54. package/src/generated/cfg_accounts/index.ts +1 -8
  55. package/src/generated/cfg_accounts/logger.ts +1 -8
  56. package/src/generated/cfg_accounts/retry.ts +1 -8
  57. package/src/generated/cfg_accounts/storage.ts +1 -8
  58. package/src/generated/cfg_accounts/validation-events.ts +1 -8
  59. package/src/generated/cfg_centrifugo/CLAUDE.md +92 -0
  60. package/src/generated/cfg_centrifugo/_utils/fetchers/centrifugo__centrifugo_admin_api.ts +1 -8
  61. package/src/generated/cfg_centrifugo/_utils/fetchers/centrifugo__centrifugo_auth.ts +1 -8
  62. package/src/generated/cfg_centrifugo/_utils/fetchers/centrifugo__centrifugo_monitoring.ts +1 -8
  63. package/src/generated/cfg_centrifugo/_utils/fetchers/centrifugo__centrifugo_testing.ts +1 -8
  64. package/src/generated/cfg_centrifugo/_utils/fetchers/index.ts +1 -8
  65. package/src/generated/cfg_centrifugo/_utils/hooks/centrifugo__centrifugo_admin_api.ts +1 -8
  66. package/src/generated/cfg_centrifugo/_utils/hooks/centrifugo__centrifugo_auth.ts +1 -8
  67. package/src/generated/cfg_centrifugo/_utils/hooks/centrifugo__centrifugo_monitoring.ts +1 -8
  68. package/src/generated/cfg_centrifugo/_utils/hooks/centrifugo__centrifugo_testing.ts +1 -8
  69. package/src/generated/cfg_centrifugo/_utils/hooks/index.ts +1 -8
  70. package/src/generated/cfg_centrifugo/_utils/schemas/index.ts +1 -8
  71. package/src/generated/cfg_centrifugo/api-instance.ts +1 -8
  72. package/src/generated/cfg_centrifugo/centrifugo__centrifugo_admin_api/index.ts +1 -8
  73. package/src/generated/cfg_centrifugo/centrifugo__centrifugo_admin_api/models.ts +1 -8
  74. package/src/generated/cfg_centrifugo/centrifugo__centrifugo_auth/index.ts +1 -8
  75. package/src/generated/cfg_centrifugo/centrifugo__centrifugo_auth/models.ts +1 -8
  76. package/src/generated/cfg_centrifugo/centrifugo__centrifugo_monitoring/index.ts +1 -8
  77. package/src/generated/cfg_centrifugo/centrifugo__centrifugo_monitoring/models.ts +1 -8
  78. package/src/generated/cfg_centrifugo/centrifugo__centrifugo_testing/index.ts +1 -8
  79. package/src/generated/cfg_centrifugo/centrifugo__centrifugo_testing/models.ts +1 -8
  80. package/src/generated/cfg_centrifugo/errors.ts +1 -8
  81. package/src/generated/cfg_centrifugo/http.ts +1 -8
  82. package/src/generated/cfg_centrifugo/index.ts +1 -8
  83. package/src/generated/cfg_centrifugo/logger.ts +1 -8
  84. package/src/generated/cfg_centrifugo/retry.ts +1 -8
  85. package/src/generated/cfg_centrifugo/storage.ts +1 -8
  86. package/src/generated/cfg_centrifugo/validation-events.ts +1 -8
  87. package/src/generated/cfg_webpush/CLAUDE.md +70 -0
  88. package/src/generated/cfg_webpush/_utils/fetchers/index.ts +1 -8
  89. package/src/generated/cfg_webpush/_utils/fetchers/webpush__web_push.ts +1 -8
  90. package/src/generated/cfg_webpush/_utils/hooks/index.ts +1 -8
  91. package/src/generated/cfg_webpush/_utils/hooks/webpush__web_push.ts +1 -8
  92. package/src/generated/cfg_webpush/_utils/schemas/index.ts +1 -8
  93. package/src/generated/cfg_webpush/api-instance.ts +1 -8
  94. package/src/generated/cfg_webpush/errors.ts +1 -8
  95. package/src/generated/cfg_webpush/http.ts +1 -8
  96. package/src/generated/cfg_webpush/index.ts +1 -8
  97. package/src/generated/cfg_webpush/logger.ts +1 -8
  98. package/src/generated/cfg_webpush/retry.ts +1 -8
  99. package/src/generated/cfg_webpush/storage.ts +1 -8
  100. package/src/generated/cfg_webpush/validation-events.ts +1 -8
  101. package/src/generated/cfg_webpush/webpush__web_push/index.ts +1 -8
  102. package/src/generated/cfg_webpush/webpush__web_push/models.ts +1 -8
package/dist/hooks.d.ts CHANGED
@@ -2,14 +2,6 @@ import { ConsolaInstance } from 'consola';
2
2
  import { z } from 'zod';
3
3
  import useSWR from 'swr';
4
4
 
5
- /**
6
- * AUTO-GENERATED FILE - DO NOT EDIT
7
- *
8
- * This file is automatically generated by DjangoCFG.
9
- * Any manual changes will be lost when the code is regenerated.
10
- *
11
- * @see https://djangocfg.com/docs/features/modules/django-client/overview/
12
- */
13
5
  /**
14
6
  *
15
7
  * Request model (no read-only fields).
@@ -64,15 +56,6 @@ declare enum OTPVerifyRequestChannel {
64
56
  PHONE = "phone"
65
57
  }
66
58
 
67
- /**
68
- * AUTO-GENERATED FILE - DO NOT EDIT
69
- *
70
- * This file is automatically generated by DjangoCFG.
71
- * Any manual changes will be lost when the code is regenerated.
72
- *
73
- * @see https://djangocfg.com/docs/features/modules/django-client/overview/
74
- */
75
-
76
59
  /**
77
60
  * Request to disconnect OAuth provider.
78
61
  *
@@ -186,14 +169,6 @@ declare class Oauth {
186
169
  accountsOauthProvidersRetrieve(): Promise<OAuthProvidersResponse>;
187
170
  }
188
171
 
189
- /**
190
- * AUTO-GENERATED FILE - DO NOT EDIT
191
- *
192
- * This file is automatically generated by DjangoCFG.
193
- * Any manual changes will be lost when the code is regenerated.
194
- *
195
- * @see https://djangocfg.com/docs/features/modules/django-client/overview/
196
- */
197
172
  /**
198
173
  * Serializer for user details.
199
174
  *
@@ -311,15 +286,6 @@ declare class UserProfile {
311
286
  accountsProfileUpdatePartialUpdate(data?: PatchedUserProfileUpdateRequest$1): Promise<User$2>;
312
287
  }
313
288
 
314
- /**
315
- * AUTO-GENERATED FILE - DO NOT EDIT
316
- *
317
- * This file is automatically generated by DjangoCFG.
318
- * Any manual changes will be lost when the code is regenerated.
319
- *
320
- * @see https://djangocfg.com/docs/features/modules/django-client/overview/
321
- */
322
-
323
289
  /**
324
290
  * Serializer for OTP request.
325
291
  *
@@ -436,14 +402,6 @@ declare class Accounts {
436
402
  otpVerifyCreate(data: OTPVerifyRequest$1): Promise<OTPVerifyResponse$1>;
437
403
  }
438
404
 
439
- /**
440
- * AUTO-GENERATED FILE - DO NOT EDIT
441
- *
442
- * This file is automatically generated by DjangoCFG.
443
- * Any manual changes will be lost when the code is regenerated.
444
- *
445
- * @see https://djangocfg.com/docs/features/modules/django-client/overview/
446
- */
447
405
  /**
448
406
  * API Logger with Consola
449
407
  * Beautiful console logging for API requests and responses
@@ -472,14 +430,6 @@ interface LoggerConfig {
472
430
  consola?: ConsolaInstance;
473
431
  }
474
432
 
475
- /**
476
- * AUTO-GENERATED FILE - DO NOT EDIT
477
- *
478
- * This file is automatically generated by DjangoCFG.
479
- * Any manual changes will be lost when the code is regenerated.
480
- *
481
- * @see https://djangocfg.com/docs/features/modules/django-client/overview/
482
- */
483
433
  /**
484
434
  * Retry Configuration and Utilities
485
435
  *
@@ -535,14 +485,6 @@ interface RetryConfig {
535
485
  onFailedAttempt?: (info: FailedAttemptInfo) => void;
536
486
  }
537
487
 
538
- /**
539
- * AUTO-GENERATED FILE - DO NOT EDIT
540
- *
541
- * This file is automatically generated by DjangoCFG.
542
- * Any manual changes will be lost when the code is regenerated.
543
- *
544
- * @see https://djangocfg.com/docs/features/modules/django-client/overview/
545
- */
546
488
  /**
547
489
  * Storage adapters for cross-platform token storage.
548
490
  *
@@ -873,14 +815,6 @@ declare const UserProfileUpdateRequestSchema: z.ZodObject<{
873
815
  */
874
816
  type UserProfileUpdateRequest = z.infer<typeof UserProfileUpdateRequestSchema>;
875
817
 
876
- /**
877
- * AUTO-GENERATED FILE - DO NOT EDIT
878
- *
879
- * This file is automatically generated by DjangoCFG.
880
- * Any manual changes will be lost when the code is regenerated.
881
- *
882
- * @see https://djangocfg.com/docs/features/modules/django-client/overview/
883
- */
884
818
  /**
885
819
  * Django CFG API - API Client with JWT Management
886
820
  *
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/generated/cfg_accounts/_utils/hooks/accounts__auth.ts","../src/generated/cfg_accounts/_utils/fetchers/accounts__auth.ts","../src/generated/cfg_accounts/_utils/schemas/TokenRefresh.schema.ts","../src/generated/cfg_accounts/logger.ts","../src/generated/cfg_accounts/retry.ts","../src/generated/cfg_accounts/enums.ts","../src/generated/cfg_accounts/_utils/schemas/CentrifugoToken.schema.ts","../src/generated/cfg_accounts/_utils/schemas/OAuthAuthorizeRequestRequest.schema.ts","../src/generated/cfg_accounts/_utils/schemas/OAuthAuthorizeResponse.schema.ts","../src/generated/cfg_accounts/_utils/schemas/OAuthCallbackRequestRequest.schema.ts","../src/generated/cfg_accounts/_utils/schemas/OAuthConnection.schema.ts","../src/generated/cfg_accounts/_utils/schemas/OAuthDisconnectRequestRequest.schema.ts","../src/generated/cfg_accounts/_utils/schemas/OAuthError.schema.ts","../src/generated/cfg_accounts/_utils/schemas/OAuthProvidersResponse.schema.ts","../src/generated/cfg_accounts/_utils/schemas/OAuthTokenResponse.schema.ts","../src/generated/cfg_accounts/_utils/schemas/OTPErrorResponse.schema.ts","../src/generated/cfg_accounts/_utils/schemas/OTPRequestRequest.schema.ts","../src/generated/cfg_accounts/_utils/schemas/OTPRequestResponse.schema.ts","../src/generated/cfg_accounts/_utils/schemas/OTPVerifyRequest.schema.ts","../src/generated/cfg_accounts/_utils/schemas/OTPVerifyResponse.schema.ts","../src/generated/cfg_accounts/_utils/schemas/User.schema.ts","../src/generated/cfg_accounts/_utils/schemas/PatchedUserProfileUpdateRequest.schema.ts","../src/generated/cfg_accounts/_utils/schemas/TokenRefreshRequest.schema.ts","../src/generated/cfg_accounts/_utils/schemas/UserProfileUpdateRequest.schema.ts","../src/generated/cfg_accounts/_utils/fetchers/accounts.ts","../src/generated/cfg_accounts/_utils/fetchers/accounts__oauth.ts","../src/generated/cfg_accounts/_utils/fetchers/accounts__user_profile.ts","../src/generated/cfg_accounts/api-instance.ts","../src/generated/cfg_accounts/_utils/hooks/accounts__oauth.ts","../src/generated/cfg_accounts/_utils/hooks/accounts__user_profile.ts","../src/generated/cfg_accounts/_utils/hooks/accounts.ts"],"sourcesContent":["/**\n * AUTO-GENERATED FILE - DO NOT EDIT\n *\n * This file is automatically generated by DjangoCFG.\n * Any manual changes will be lost when the code is regenerated.\n *\n * @see https://djangocfg.com/docs/features/modules/django-client/overview/\n */\n'use client';\n\n/**\n * SWR Hooks for Auth\n *\n * React hooks powered by SWR for data fetching with automatic caching,\n * revalidation, and optimistic updates.\n *\n * Usage:\n * ```typescript\n * // Query hooks (GET)\n * const { data, error, isLoading } = useUsers({ page: 1 })\n *\n * // Mutation hooks (POST/PUT/PATCH/DELETE)\n * const createUser = useCreateUser()\n * await createUser({ name: 'John', email: 'john@example.com' })\n * ```\n */\nimport { useSWRConfig } from 'swr'\nimport * as Fetchers from '../fetchers/accounts__auth'\nimport type { API } from '../../index'\nimport type { TokenRefresh } from '../schemas/TokenRefresh.schema'\nimport type { TokenRefreshRequest } from '../schemas/TokenRefreshRequest.schema'\n\n/**\n * API operation\n *\n * @method POST\n * @path /cfg/accounts/token/refresh/\n */\nexport function useCreateAccountsTokenRefreshCreate() {\n const { mutate } = useSWRConfig()\n\n return async (data: TokenRefreshRequest, client?: API): Promise<TokenRefresh> => {\n const result = await Fetchers.createAccountsTokenRefreshCreate(data, client)\n // Revalidate related queries\n mutate('cfg-accounts-token-refresh')\n return result\n }\n}\n\n\n","/**\n * AUTO-GENERATED FILE - DO NOT EDIT\n *\n * This file is automatically generated by DjangoCFG.\n * Any manual changes will be lost when the code is regenerated.\n *\n * @see https://djangocfg.com/docs/features/modules/django-client/overview/\n */\n/**\n * Typed fetchers for Auth\n *\n * Universal functions that work in any environment:\n * - Next.js (App Router / Pages Router / Server Components)\n * - React Native\n * - Node.js backend\n *\n * These fetchers use Zod schemas for runtime validation.\n *\n * Usage:\n * ```typescript\n * // Configure API once (in your app entry point)\n * import { configureAPI } from '../../api-instance'\n * configureAPI({ baseUrl: 'https://api.example.com' })\n *\n * // Then use fetchers anywhere\n * const users = await getUsers({ page: 1 })\n *\n * // With SWR\n * const { data } = useSWR(['users', params], () => getUsers(params))\n *\n * // With React Query\n * const { data } = useQuery(['users', params], () => getUsers(params))\n *\n * // In Server Component or SSR (pass custom client)\n * import { API } from '../../index'\n * const api = new API('https://api.example.com')\n * const users = await getUsers({ page: 1 }, api)\n * ```\n */\nimport { consola } from 'consola'\nimport { TokenRefreshSchema, type TokenRefresh } from '../schemas/TokenRefresh.schema'\nimport { TokenRefreshRequestSchema, type TokenRefreshRequest } from '../schemas/TokenRefreshRequest.schema'\nimport { getAPIInstance } from '../../api-instance'\n\n/**\n * API operation\n *\n * @method POST\n * @path /cfg/accounts/token/refresh/\n */\nexport async function createAccountsTokenRefreshCreate( data: TokenRefreshRequest, client?: any\n): Promise<TokenRefresh> {\n const api = client || getAPIInstance()\n const response = await api.auth.accountsTokenRefreshCreate(data)\n try {\n return TokenRefreshSchema.parse(response)\n } catch (error) {\n // Zod validation error - log detailed information\n consola.error('❌ Zod Validation Failed');\n consola.box(`createAccountsTokenRefreshCreate\\nPath: /cfg/accounts/token/refresh/\\nMethod: POST`);\n\n if (error instanceof Error && 'issues' in error && Array.isArray((error as any).issues)) {\n consola.error('Validation Issues:');\n (error as any).issues.forEach((issue: any, index: number) => {\n consola.error(` ${index + 1}. ${issue.path.join('.') || 'root'}`);\n consola.error(` ├─ Message: ${issue.message}`);\n if (issue.expected) consola.error(` ├─ Expected: ${issue.expected}`);\n if (issue.received) consola.error(` └─ Received: ${issue.received}`);\n });\n }\n\n consola.error('Response data:', response);\n\n // Dispatch browser CustomEvent (only if window is defined)\n if (typeof window !== 'undefined' && error instanceof Error && 'issues' in error) {\n try {\n const event = new CustomEvent('zod-validation-error', {\n detail: {\n operation: 'createAccountsTokenRefreshCreate',\n path: '/cfg/accounts/token/refresh/',\n method: 'POST',\n error: error,\n response: response,\n timestamp: new Date(),\n },\n bubbles: true,\n cancelable: false,\n });\n window.dispatchEvent(event);\n } catch (eventError) {\n // Silently fail - event dispatch should never crash the app\n consola.warn('Failed to dispatch validation error event:', eventError);\n }\n }\n\n // Re-throw the error\n throw error;\n }\n}\n\n\n","/**\n * Zod schema for TokenRefresh\n *\n * This schema provides runtime validation and type inference.\n * */\nimport { z } from 'zod'\n\nexport const TokenRefreshSchema = z.object({\n access: z.string(),\n refresh: z.string(),\n})\n\n/**\n * Infer TypeScript type from Zod schema\n */\nexport type TokenRefresh = z.infer<typeof TokenRefreshSchema>","/**\n * AUTO-GENERATED FILE - DO NOT EDIT\n *\n * This file is automatically generated by DjangoCFG.\n * Any manual changes will be lost when the code is regenerated.\n *\n * @see https://djangocfg.com/docs/features/modules/django-client/overview/\n */\n/**\n * API Logger with Consola\n * Beautiful console logging for API requests and responses\n *\n * Installation:\n * npm install consola\n */\n\nimport { type ConsolaInstance, createConsola } from 'consola';\n\n/**\n * Request log data\n */\nexport interface RequestLog {\n method: string;\n url: string;\n headers?: Record<string, string>;\n body?: any;\n timestamp: number;\n}\n\n/**\n * Response log data\n */\nexport interface ResponseLog {\n status: number;\n statusText: string;\n data?: any;\n duration: number;\n timestamp: number;\n}\n\n/**\n * Error log data\n */\nexport interface ErrorLog {\n message: string;\n statusCode?: number;\n fieldErrors?: Record<string, string[]>;\n duration: number;\n timestamp: number;\n}\n\n/**\n * Logger configuration\n */\nexport interface LoggerConfig {\n /** Enable logging */\n enabled: boolean;\n /** Log requests */\n logRequests: boolean;\n /** Log responses */\n logResponses: boolean;\n /** Log errors */\n logErrors: boolean;\n /** Log request/response bodies */\n logBodies: boolean;\n /** Log headers (excluding sensitive ones) */\n logHeaders: boolean;\n /** Custom consola instance */\n consola?: ConsolaInstance;\n}\n\n/**\n * Default logger configuration\n */\nconst DEFAULT_CONFIG: LoggerConfig = {\n enabled: process.env.NODE_ENV !== 'production',\n logRequests: true,\n logResponses: true,\n logErrors: true,\n logBodies: true,\n logHeaders: false,\n};\n\n/**\n * Sensitive header names to filter out\n */\nconst SENSITIVE_HEADERS = [\n 'authorization',\n 'cookie',\n 'set-cookie',\n 'x-api-key',\n 'x-csrf-token',\n];\n\n/**\n * API Logger class\n */\nexport class APILogger {\n private config: LoggerConfig;\n private consola: ConsolaInstance;\n\n constructor(config: Partial<LoggerConfig> = {}) {\n this.config = { ...DEFAULT_CONFIG, ...config };\n this.consola = config.consola || createConsola({\n level: this.config.enabled ? 4 : 0,\n });\n }\n\n /**\n * Enable logging\n */\n enable(): void {\n this.config.enabled = true;\n }\n\n /**\n * Disable logging\n */\n disable(): void {\n this.config.enabled = false;\n }\n\n /**\n * Update configuration\n */\n setConfig(config: Partial<LoggerConfig>): void {\n this.config = { ...this.config, ...config };\n }\n\n /**\n * Filter sensitive headers\n */\n private filterHeaders(headers?: Record<string, string>): Record<string, string> {\n if (!headers) return {};\n\n const filtered: Record<string, string> = {};\n Object.keys(headers).forEach((key) => {\n const lowerKey = key.toLowerCase();\n if (SENSITIVE_HEADERS.includes(lowerKey)) {\n filtered[key] = '***';\n } else {\n filtered[key] = headers[key] || '';\n }\n });\n\n return filtered;\n }\n\n /**\n * Log request\n */\n logRequest(request: RequestLog): void {\n if (!this.config.enabled || !this.config.logRequests) return;\n\n const { method, url, headers, body } = request;\n\n this.consola.start(`${method} ${url}`);\n\n if (this.config.logHeaders && headers) {\n this.consola.debug('Headers:', this.filterHeaders(headers));\n }\n\n if (this.config.logBodies && body) {\n this.consola.debug('Body:', body);\n }\n }\n\n /**\n * Log response\n */\n logResponse(request: RequestLog, response: ResponseLog): void {\n if (!this.config.enabled || !this.config.logResponses) return;\n\n const { method, url } = request;\n const { status, statusText, data, duration } = response;\n\n const statusColor = status >= 500 ? 'red'\n : status >= 400 ? 'yellow'\n : status >= 300 ? 'cyan'\n : 'green';\n\n this.consola.success(\n `${method} ${url} ${status} ${statusText} (${duration}ms)`\n );\n\n if (this.config.logBodies && data) {\n this.consola.debug('Response:', data);\n }\n }\n\n /**\n * Log error\n */\n logError(request: RequestLog, error: ErrorLog): void {\n if (!this.config.enabled || !this.config.logErrors) return;\n\n const { method, url } = request;\n const { message, statusCode, fieldErrors, duration } = error;\n\n this.consola.error(\n `${method} ${url} ${statusCode || 'Network'} Error (${duration}ms)`\n );\n\n this.consola.error('Message:', message);\n\n if (fieldErrors && Object.keys(fieldErrors).length > 0) {\n this.consola.error('Field Errors:');\n Object.entries(fieldErrors).forEach(([field, errors]) => {\n errors.forEach((err) => {\n this.consola.error(` • ${field}: ${err}`);\n });\n });\n }\n }\n\n /**\n * Log general info\n */\n info(message: string, ...args: any[]): void {\n if (!this.config.enabled) return;\n this.consola.info(message, ...args);\n }\n\n /**\n * Log warning\n */\n warn(message: string, ...args: any[]): void {\n if (!this.config.enabled) return;\n this.consola.warn(message, ...args);\n }\n\n /**\n * Log error\n */\n error(message: string, ...args: any[]): void {\n if (!this.config.enabled) return;\n this.consola.error(message, ...args);\n }\n\n /**\n * Log debug\n */\n debug(message: string, ...args: any[]): void {\n if (!this.config.enabled) return;\n this.consola.debug(message, ...args);\n }\n\n /**\n * Log success\n */\n success(message: string, ...args: any[]): void {\n if (!this.config.enabled) return;\n this.consola.success(message, ...args);\n }\n\n /**\n * Create a sub-logger with prefix\n */\n withTag(tag: string): ConsolaInstance {\n return this.consola.withTag(tag);\n }\n}\n\n/**\n * Default logger instance\n */\nexport const defaultLogger = new APILogger();","/**\n * AUTO-GENERATED FILE - DO NOT EDIT\n *\n * This file is automatically generated by DjangoCFG.\n * Any manual changes will be lost when the code is regenerated.\n *\n * @see https://djangocfg.com/docs/features/modules/django-client/overview/\n */\n/**\n * Retry Configuration and Utilities\n *\n * Provides automatic retry logic for failed HTTP requests using p-retry.\n * Retries only on network errors and server errors (5xx), not client errors (4xx).\n */\n\nimport pRetry, { AbortError } from 'p-retry';\nimport { APIError, NetworkError } from './errors';\n\n/**\n * Information about a failed retry attempt.\n */\nexport interface FailedAttemptInfo {\n /** The error that caused the failure */\n error: Error;\n /** The attempt number (1-indexed) */\n attemptNumber: number;\n /** Number of retries left */\n retriesLeft: number;\n}\n\n/**\n * Retry configuration options.\n *\n * Uses exponential backoff with jitter by default to avoid thundering herd.\n */\nexport interface RetryConfig {\n /**\n * Maximum number of retry attempts.\n * @default 3\n */\n retries?: number;\n\n /**\n * Exponential backoff factor.\n * @default 2\n */\n factor?: number;\n\n /**\n * Minimum wait time between retries (ms).\n * @default 1000\n */\n minTimeout?: number;\n\n /**\n * Maximum wait time between retries (ms).\n * @default 60000\n */\n maxTimeout?: number;\n\n /**\n * Add randomness to wait times (jitter).\n * Helps avoid thundering herd problem.\n * @default true\n */\n randomize?: boolean;\n\n /**\n * Callback called on each failed attempt.\n */\n onFailedAttempt?: (info: FailedAttemptInfo) => void;\n}\n\n/**\n * Default retry configuration.\n */\nexport const DEFAULT_RETRY_CONFIG: Required<RetryConfig> = {\n retries: 3,\n factor: 2,\n minTimeout: 1000,\n maxTimeout: 60000,\n randomize: true,\n onFailedAttempt: () => {},\n};\n\n/**\n * Determine if an error should trigger a retry.\n *\n * Retries on:\n * - Network errors (connection refused, timeout, etc.)\n * - Server errors (5xx status codes)\n * - Rate limiting (429 status code)\n *\n * Does NOT retry on:\n * - Client errors (4xx except 429)\n * - Authentication errors (401, 403)\n * - Not found (404)\n *\n * @param error - The error to check\n * @returns true if should retry, false otherwise\n */\nexport function shouldRetry(error: any): boolean {\n // Always retry network errors\n if (error instanceof NetworkError) {\n return true;\n }\n\n // For API errors, check status code\n if (error instanceof APIError) {\n const status = error.statusCode;\n\n // Retry on 5xx server errors\n if (status >= 500 && status < 600) {\n return true;\n }\n\n // Retry on 429 (rate limit)\n if (status === 429) {\n return true;\n }\n\n // Do NOT retry on 4xx client errors\n return false;\n }\n\n // Retry on unknown errors (might be network issues)\n return true;\n}\n\n/**\n * Wrap a function with retry logic.\n *\n * @param fn - Async function to retry\n * @param config - Retry configuration\n * @returns Result of the function\n *\n * @example\n * ```typescript\n * const result = await withRetry(\n * async () => fetch('https://api.example.com/users'),\n * { retries: 5, minTimeout: 2000 }\n * );\n * ```\n */\nexport async function withRetry<T>(\n fn: () => Promise<T>,\n config?: RetryConfig\n): Promise<T> {\n const finalConfig = { ...DEFAULT_RETRY_CONFIG, ...config };\n\n return pRetry(\n async () => {\n try {\n return await fn();\n } catch (error) {\n // Check if we should retry this error\n if (!shouldRetry(error)) {\n // Abort retry immediately for non-retryable errors\n throw new AbortError(error as Error);\n }\n\n // Re-throw error to trigger retry\n throw error;\n }\n },\n {\n retries: finalConfig.retries,\n factor: finalConfig.factor,\n minTimeout: finalConfig.minTimeout,\n maxTimeout: finalConfig.maxTimeout,\n randomize: finalConfig.randomize,\n onFailedAttempt: finalConfig.onFailedAttempt ? (error) => {\n // Adapt p-retry's FailedAttemptError to our FailedAttemptInfo\n const pRetryError = error as any; // p-retry's internal type\n finalConfig.onFailedAttempt!({\n error: pRetryError as Error,\n attemptNumber: pRetryError.attemptNumber,\n retriesLeft: pRetryError.retriesLeft,\n });\n } : undefined,\n }\n );\n}","/**\n * AUTO-GENERATED FILE - DO NOT EDIT\n *\n * This file is automatically generated by DjangoCFG.\n * Any manual changes will be lost when the code is regenerated.\n *\n * @see https://djangocfg.com/docs/features/modules/django-client/overview/\n */\n/**\n * OAuth provider name (github, google, etc.)\n * * `github` - GitHub\n */\nexport enum OAuthConnectionProvider {\n GITHUB = \"github\",\n}\n\n/**\n * OAuth provider to disconnect\n * * `github` - GitHub\n */\nexport enum OAuthDisconnectRequestRequestProvider {\n GITHUB = \"github\",\n}\n\n/**\n * Delivery channel: 'email' or 'phone'. Auto-detected if not provided.\n * * `email` - Email\n * * `phone` - Phone\n */\nexport enum OTPRequestRequestChannel {\n EMAIL = \"email\",\n PHONE = \"phone\",\n}\n\n/**\n * Delivery channel: 'email' or 'phone'. Auto-detected if not provided.\n * * `email` - Email\n * * `phone` - Phone\n */\nexport enum OTPVerifyRequestChannel {\n EMAIL = \"email\",\n PHONE = \"phone\",\n}\n\n","/**\n * Zod schema for CentrifugoToken\n *\n * This schema provides runtime validation and type inference.\n * * Nested serializer for Centrifugo WebSocket connection token.\n * */\nimport { z } from 'zod'\n\n/**\n * Nested serializer for Centrifugo WebSocket connection token.\n */\nexport const CentrifugoTokenSchema = z.object({\n token: z.string(),\n centrifugo_url: z.url(),\n expires_at: z.iso.datetime(),\n channels: z.array(z.string()),\n})\n\n/**\n * Infer TypeScript type from Zod schema\n */\nexport type CentrifugoToken = z.infer<typeof CentrifugoTokenSchema>","/**\n * Zod schema for OAuthAuthorizeRequestRequest\n *\n * This schema provides runtime validation and type inference.\n * * Request to start OAuth flow.\n * */\nimport { z } from 'zod'\n\n/**\n * Request to start OAuth flow.\n */\nexport const OAuthAuthorizeRequestRequestSchema = z.object({\n redirect_uri: z.url().optional(),\n source_url: z.url().optional(),\n})\n\n/**\n * Infer TypeScript type from Zod schema\n */\nexport type OAuthAuthorizeRequestRequest = z.infer<typeof OAuthAuthorizeRequestRequestSchema>","/**\n * Zod schema for OAuthAuthorizeResponse\n *\n * This schema provides runtime validation and type inference.\n * * Response with OAuth authorization URL.\n * */\nimport { z } from 'zod'\n\n/**\n * Response with OAuth authorization URL.\n */\nexport const OAuthAuthorizeResponseSchema = z.object({\n authorization_url: z.url(),\n state: z.string(),\n})\n\n/**\n * Infer TypeScript type from Zod schema\n */\nexport type OAuthAuthorizeResponse = z.infer<typeof OAuthAuthorizeResponseSchema>","/**\n * Zod schema for OAuthCallbackRequestRequest\n *\n * This schema provides runtime validation and type inference.\n * * Request to complete OAuth flow (callback handler).\n * */\nimport { z } from 'zod'\n\n/**\n * Request to complete OAuth flow (callback handler).\n */\nexport const OAuthCallbackRequestRequestSchema = z.object({\n code: z.string().min(10).max(500),\n state: z.string().min(20).max(100),\n redirect_uri: z.url().optional(),\n})\n\n/**\n * Infer TypeScript type from Zod schema\n */\nexport type OAuthCallbackRequestRequest = z.infer<typeof OAuthCallbackRequestRequestSchema>","/**\n * Zod schema for OAuthConnection\n *\n * This schema provides runtime validation and type inference.\n * * Serializer for OAuth connection info (user-facing).\n * */\nimport { z } from 'zod'\nimport * as Enums from '../../enums'\n\n/**\n * Serializer for OAuth connection info (user-facing).\n */\nexport const OAuthConnectionSchema = z.object({\n id: z.int(),\n provider: z.nativeEnum(Enums.OAuthConnectionProvider),\n provider_display: z.string(),\n provider_username: z.string(),\n provider_email: z.email(),\n provider_avatar_url: z.url(),\n connected_at: z.iso.datetime(),\n last_login_at: z.iso.datetime(),\n})\n\n/**\n * Infer TypeScript type from Zod schema\n */\nexport type OAuthConnection = z.infer<typeof OAuthConnectionSchema>","/**\n * Zod schema for OAuthDisconnectRequestRequest\n *\n * This schema provides runtime validation and type inference.\n * * Request to disconnect OAuth provider.\n * */\nimport { z } from 'zod'\nimport * as Enums from '../../enums'\n\n/**\n * Request to disconnect OAuth provider.\n */\nexport const OAuthDisconnectRequestRequestSchema = z.object({\n provider: z.nativeEnum(Enums.OAuthDisconnectRequestRequestProvider),\n})\n\n/**\n * Infer TypeScript type from Zod schema\n */\nexport type OAuthDisconnectRequestRequest = z.infer<typeof OAuthDisconnectRequestRequestSchema>","/**\n * Zod schema for OAuthError\n *\n * This schema provides runtime validation and type inference.\n * * Error response for OAuth endpoints.\n * */\nimport { z } from 'zod'\n\n/**\n * Error response for OAuth endpoints.\n */\nexport const OAuthErrorSchema = z.object({\n error: z.string(),\n error_description: z.string().optional(),\n})\n\n/**\n * Infer TypeScript type from Zod schema\n */\nexport type OAuthError = z.infer<typeof OAuthErrorSchema>","/**\n * Zod schema for OAuthProvidersResponse\n *\n * This schema provides runtime validation and type inference.\n * * Response with available OAuth providers.\n * */\nimport { z } from 'zod'\n\n/**\n * Response with available OAuth providers.\n */\nexport const OAuthProvidersResponseSchema = z.object({\n providers: z.array(z.record(z.string(), z.record(z.string(), z.any()))),\n})\n\n/**\n * Infer TypeScript type from Zod schema\n */\nexport type OAuthProvidersResponse = z.infer<typeof OAuthProvidersResponseSchema>","/**\n * Zod schema for OAuthTokenResponse\n *\n * This schema provides runtime validation and type inference.\n * * Response with JWT tokens after OAuth authentication.\n * */\nimport { z } from 'zod'\n\n/**\n * Response with JWT tokens after OAuth authentication.\n */\nexport const OAuthTokenResponseSchema = z.object({\n access: z.string(),\n refresh: z.string(),\n user: z.record(z.string(), z.record(z.string(), z.any())),\n is_new_user: z.boolean(),\n is_new_connection: z.boolean(),\n})\n\n/**\n * Infer TypeScript type from Zod schema\n */\nexport type OAuthTokenResponse = z.infer<typeof OAuthTokenResponseSchema>","/**\n * Zod schema for OTPErrorResponse\n *\n * This schema provides runtime validation and type inference.\n * * Error response for OTP operations.\n * */\nimport { z } from 'zod'\n\n/**\n * Error response for OTP operations.\n */\nexport const OTPErrorResponseSchema = z.object({\n error: z.string(),\n})\n\n/**\n * Infer TypeScript type from Zod schema\n */\nexport type OTPErrorResponse = z.infer<typeof OTPErrorResponseSchema>","/**\n * Zod schema for OTPRequestRequest\n *\n * This schema provides runtime validation and type inference.\n * * Serializer for OTP request.\n * */\nimport { z } from 'zod'\nimport * as Enums from '../../enums'\n\n/**\n * Serializer for OTP request.\n */\nexport const OTPRequestRequestSchema = z.object({\n identifier: z.string().min(1),\n channel: z.nativeEnum(Enums.OTPRequestRequestChannel).optional(),\n source_url: z.url().optional(),\n})\n\n/**\n * Infer TypeScript type from Zod schema\n */\nexport type OTPRequestRequest = z.infer<typeof OTPRequestRequestSchema>","/**\n * Zod schema for OTPRequestResponse\n *\n * This schema provides runtime validation and type inference.\n * * OTP request response.\n * */\nimport { z } from 'zod'\n\n/**\n * OTP request response.\n */\nexport const OTPRequestResponseSchema = z.object({\n message: z.string(),\n})\n\n/**\n * Infer TypeScript type from Zod schema\n */\nexport type OTPRequestResponse = z.infer<typeof OTPRequestResponseSchema>","/**\n * Zod schema for OTPVerifyRequest\n *\n * This schema provides runtime validation and type inference.\n * * Serializer for OTP verification.\n * */\nimport { z } from 'zod'\nimport * as Enums from '../../enums'\n\n/**\n * Serializer for OTP verification.\n */\nexport const OTPVerifyRequestSchema = z.object({\n identifier: z.string().min(1),\n otp: z.string().min(6).max(6),\n channel: z.nativeEnum(Enums.OTPVerifyRequestChannel).optional(),\n source_url: z.url().optional(),\n})\n\n/**\n * Infer TypeScript type from Zod schema\n */\nexport type OTPVerifyRequest = z.infer<typeof OTPVerifyRequestSchema>","/**\n * Zod schema for OTPVerifyResponse\n *\n * This schema provides runtime validation and type inference.\n * * OTP verification response.\n * */\nimport { z } from 'zod'\nimport { UserSchema } from './User.schema'\n\n/**\n * OTP verification response.\n */\nexport const OTPVerifyResponseSchema = z.object({\n refresh: z.string(),\n access: z.string(),\n user: UserSchema,\n})\n\n/**\n * Infer TypeScript type from Zod schema\n */\nexport type OTPVerifyResponse = z.infer<typeof OTPVerifyResponseSchema>","/**\n * Zod schema for User\n *\n * This schema provides runtime validation and type inference.\n * * Serializer for user details.\n * */\nimport { z } from 'zod'\nimport { CentrifugoTokenSchema } from './CentrifugoToken.schema'\n\n/**\n * Serializer for user details.\n */\nexport const UserSchema = z.object({\n id: z.int(),\n email: z.email(),\n first_name: z.string().max(50).optional(),\n last_name: z.string().max(50).optional(),\n full_name: z.string(),\n initials: z.string(),\n display_username: z.string(),\n company: z.string().max(100).optional(),\n phone: z.string().max(20).optional(),\n position: z.string().max(100).optional(),\n avatar: z.url().nullable(),\n is_staff: z.boolean(),\n is_superuser: z.boolean(),\n date_joined: z.iso.datetime(),\n last_login: z.iso.datetime().nullable(),\n unanswered_messages_count: z.int(),\n centrifugo: CentrifugoTokenSchema.nullable(),\n})\n\n/**\n * Infer TypeScript type from Zod schema\n */\nexport type User = z.infer<typeof UserSchema>","/**\n * Zod schema for PatchedUserProfileUpdateRequest\n *\n * This schema provides runtime validation and type inference.\n * * Serializer for updating user profile.\n * */\nimport { z } from 'zod'\n\n/**\n * Serializer for updating user profile.\n */\nexport const PatchedUserProfileUpdateRequestSchema = z.object({\n first_name: z.string().max(50).optional(),\n last_name: z.string().max(50).optional(),\n company: z.string().max(100).optional(),\n phone: z.string().max(20).optional(),\n position: z.string().max(100).optional(),\n})\n\n/**\n * Infer TypeScript type from Zod schema\n */\nexport type PatchedUserProfileUpdateRequest = z.infer<typeof PatchedUserProfileUpdateRequestSchema>","/**\n * Zod schema for TokenRefreshRequest\n *\n * This schema provides runtime validation and type inference.\n * */\nimport { z } from 'zod'\n\nexport const TokenRefreshRequestSchema = z.object({\n refresh: z.string().min(1),\n})\n\n/**\n * Infer TypeScript type from Zod schema\n */\nexport type TokenRefreshRequest = z.infer<typeof TokenRefreshRequestSchema>","/**\n * Zod schema for UserProfileUpdateRequest\n *\n * This schema provides runtime validation and type inference.\n * * Serializer for updating user profile.\n * */\nimport { z } from 'zod'\n\n/**\n * Serializer for updating user profile.\n */\nexport const UserProfileUpdateRequestSchema = z.object({\n first_name: z.string().max(50).optional(),\n last_name: z.string().max(50).optional(),\n company: z.string().max(100).optional(),\n phone: z.string().max(20).optional(),\n position: z.string().max(100).optional(),\n})\n\n/**\n * Infer TypeScript type from Zod schema\n */\nexport type UserProfileUpdateRequest = z.infer<typeof UserProfileUpdateRequestSchema>","/**\n * AUTO-GENERATED FILE - DO NOT EDIT\n *\n * This file is automatically generated by DjangoCFG.\n * Any manual changes will be lost when the code is regenerated.\n *\n * @see https://djangocfg.com/docs/features/modules/django-client/overview/\n */\n/**\n * Typed fetchers for Accounts\n *\n * Universal functions that work in any environment:\n * - Next.js (App Router / Pages Router / Server Components)\n * - React Native\n * - Node.js backend\n *\n * These fetchers use Zod schemas for runtime validation.\n *\n * Usage:\n * ```typescript\n * // Configure API once (in your app entry point)\n * import { configureAPI } from '../../api-instance'\n * configureAPI({ baseUrl: 'https://api.example.com' })\n *\n * // Then use fetchers anywhere\n * const users = await getUsers({ page: 1 })\n *\n * // With SWR\n * const { data } = useSWR(['users', params], () => getUsers(params))\n *\n * // With React Query\n * const { data } = useQuery(['users', params], () => getUsers(params))\n *\n * // In Server Component or SSR (pass custom client)\n * import { API } from '../../index'\n * const api = new API('https://api.example.com')\n * const users = await getUsers({ page: 1 }, api)\n * ```\n */\nimport { consola } from 'consola'\nimport { OTPRequestRequestSchema, type OTPRequestRequest } from '../schemas/OTPRequestRequest.schema'\nimport { OTPRequestResponseSchema, type OTPRequestResponse } from '../schemas/OTPRequestResponse.schema'\nimport { OTPVerifyRequestSchema, type OTPVerifyRequest } from '../schemas/OTPVerifyRequest.schema'\nimport { OTPVerifyResponseSchema, type OTPVerifyResponse } from '../schemas/OTPVerifyResponse.schema'\nimport { getAPIInstance } from '../../api-instance'\n\n/**\n * API operation\n *\n * @method POST\n * @path /cfg/accounts/otp/request/\n */\nexport async function createAccountsOtpRequestCreate( data: OTPRequestRequest, client?: any\n): Promise<OTPRequestResponse> {\n const api = client || getAPIInstance()\n const response = await api.accounts.otpRequestCreate(data)\n try {\n return OTPRequestResponseSchema.parse(response)\n } catch (error) {\n // Zod validation error - log detailed information\n consola.error('❌ Zod Validation Failed');\n consola.box(`createAccountsOtpRequestCreate\\nPath: /cfg/accounts/otp/request/\\nMethod: POST`);\n\n if (error instanceof Error && 'issues' in error && Array.isArray((error as any).issues)) {\n consola.error('Validation Issues:');\n (error as any).issues.forEach((issue: any, index: number) => {\n consola.error(` ${index + 1}. ${issue.path.join('.') || 'root'}`);\n consola.error(` ├─ Message: ${issue.message}`);\n if (issue.expected) consola.error(` ├─ Expected: ${issue.expected}`);\n if (issue.received) consola.error(` └─ Received: ${issue.received}`);\n });\n }\n\n consola.error('Response data:', response);\n\n // Dispatch browser CustomEvent (only if window is defined)\n if (typeof window !== 'undefined' && error instanceof Error && 'issues' in error) {\n try {\n const event = new CustomEvent('zod-validation-error', {\n detail: {\n operation: 'createAccountsOtpRequestCreate',\n path: '/cfg/accounts/otp/request/',\n method: 'POST',\n error: error,\n response: response,\n timestamp: new Date(),\n },\n bubbles: true,\n cancelable: false,\n });\n window.dispatchEvent(event);\n } catch (eventError) {\n // Silently fail - event dispatch should never crash the app\n consola.warn('Failed to dispatch validation error event:', eventError);\n }\n }\n\n // Re-throw the error\n throw error;\n }\n}\n\n\n/**\n * API operation\n *\n * @method POST\n * @path /cfg/accounts/otp/verify/\n */\nexport async function createAccountsOtpVerifyCreate( data: OTPVerifyRequest, client?: any\n): Promise<OTPVerifyResponse> {\n const api = client || getAPIInstance()\n const response = await api.accounts.otpVerifyCreate(data)\n try {\n return OTPVerifyResponseSchema.parse(response)\n } catch (error) {\n // Zod validation error - log detailed information\n consola.error('❌ Zod Validation Failed');\n consola.box(`createAccountsOtpVerifyCreate\\nPath: /cfg/accounts/otp/verify/\\nMethod: POST`);\n\n if (error instanceof Error && 'issues' in error && Array.isArray((error as any).issues)) {\n consola.error('Validation Issues:');\n (error as any).issues.forEach((issue: any, index: number) => {\n consola.error(` ${index + 1}. ${issue.path.join('.') || 'root'}`);\n consola.error(` ├─ Message: ${issue.message}`);\n if (issue.expected) consola.error(` ├─ Expected: ${issue.expected}`);\n if (issue.received) consola.error(` └─ Received: ${issue.received}`);\n });\n }\n\n consola.error('Response data:', response);\n\n // Dispatch browser CustomEvent (only if window is defined)\n if (typeof window !== 'undefined' && error instanceof Error && 'issues' in error) {\n try {\n const event = new CustomEvent('zod-validation-error', {\n detail: {\n operation: 'createAccountsOtpVerifyCreate',\n path: '/cfg/accounts/otp/verify/',\n method: 'POST',\n error: error,\n response: response,\n timestamp: new Date(),\n },\n bubbles: true,\n cancelable: false,\n });\n window.dispatchEvent(event);\n } catch (eventError) {\n // Silently fail - event dispatch should never crash the app\n consola.warn('Failed to dispatch validation error event:', eventError);\n }\n }\n\n // Re-throw the error\n throw error;\n }\n}\n\n\n","/**\n * AUTO-GENERATED FILE - DO NOT EDIT\n *\n * This file is automatically generated by DjangoCFG.\n * Any manual changes will be lost when the code is regenerated.\n *\n * @see https://djangocfg.com/docs/features/modules/django-client/overview/\n */\n/**\n * Typed fetchers for Oauth\n *\n * Universal functions that work in any environment:\n * - Next.js (App Router / Pages Router / Server Components)\n * - React Native\n * - Node.js backend\n *\n * These fetchers use Zod schemas for runtime validation.\n *\n * Usage:\n * ```typescript\n * // Configure API once (in your app entry point)\n * import { configureAPI } from '../../api-instance'\n * configureAPI({ baseUrl: 'https://api.example.com' })\n *\n * // Then use fetchers anywhere\n * const users = await getUsers({ page: 1 })\n *\n * // With SWR\n * const { data } = useSWR(['users', params], () => getUsers(params))\n *\n * // With React Query\n * const { data } = useQuery(['users', params], () => getUsers(params))\n *\n * // In Server Component or SSR (pass custom client)\n * import { API } from '../../index'\n * const api = new API('https://api.example.com')\n * const users = await getUsers({ page: 1 }, api)\n * ```\n */\nimport { consola } from 'consola'\nimport { OAuthAuthorizeRequestRequestSchema, type OAuthAuthorizeRequestRequest } from '../schemas/OAuthAuthorizeRequestRequest.schema'\nimport { OAuthAuthorizeResponseSchema, type OAuthAuthorizeResponse } from '../schemas/OAuthAuthorizeResponse.schema'\nimport { OAuthCallbackRequestRequestSchema, type OAuthCallbackRequestRequest } from '../schemas/OAuthCallbackRequestRequest.schema'\nimport { OAuthDisconnectRequestRequestSchema, type OAuthDisconnectRequestRequest } from '../schemas/OAuthDisconnectRequestRequest.schema'\nimport { OAuthProvidersResponseSchema, type OAuthProvidersResponse } from '../schemas/OAuthProvidersResponse.schema'\nimport { OAuthTokenResponseSchema, type OAuthTokenResponse } from '../schemas/OAuthTokenResponse.schema'\nimport { getAPIInstance } from '../../api-instance'\n\n/**\n * List OAuth connections\n *\n * @method GET\n * @path /cfg/accounts/oauth/connections/\n */\nexport async function getAccountsOauthConnectionsList( client?: any\n): Promise<any> {\n const api = client || getAPIInstance()\n const response = await api.oauth.accountsOauthConnectionsList()\n return response\n}\n\n\n/**\n * Disconnect OAuth provider\n *\n * @method POST\n * @path /cfg/accounts/oauth/disconnect/\n */\nexport async function createAccountsOauthDisconnectCreate( data: OAuthDisconnectRequestRequest, client?: any\n): Promise<any> {\n const api = client || getAPIInstance()\n const response = await api.oauth.accountsOauthDisconnectCreate(data)\n return response\n}\n\n\n/**\n * Start GitHub OAuth\n *\n * @method POST\n * @path /cfg/accounts/oauth/github/authorize/\n */\nexport async function createAccountsOauthGithubAuthorizeCreate( data: OAuthAuthorizeRequestRequest, client?: any\n): Promise<OAuthAuthorizeResponse> {\n const api = client || getAPIInstance()\n const response = await api.oauth.accountsOauthGithubAuthorizeCreate(data)\n try {\n return OAuthAuthorizeResponseSchema.parse(response)\n } catch (error) {\n // Zod validation error - log detailed information\n consola.error('❌ Zod Validation Failed');\n consola.box(`createAccountsOauthGithubAuthorizeCreate\\nPath: /cfg/accounts/oauth/github/authorize/\\nMethod: POST`);\n\n if (error instanceof Error && 'issues' in error && Array.isArray((error as any).issues)) {\n consola.error('Validation Issues:');\n (error as any).issues.forEach((issue: any, index: number) => {\n consola.error(` ${index + 1}. ${issue.path.join('.') || 'root'}`);\n consola.error(` ├─ Message: ${issue.message}`);\n if (issue.expected) consola.error(` ├─ Expected: ${issue.expected}`);\n if (issue.received) consola.error(` └─ Received: ${issue.received}`);\n });\n }\n\n consola.error('Response data:', response);\n\n // Dispatch browser CustomEvent (only if window is defined)\n if (typeof window !== 'undefined' && error instanceof Error && 'issues' in error) {\n try {\n const event = new CustomEvent('zod-validation-error', {\n detail: {\n operation: 'createAccountsOauthGithubAuthorizeCreate',\n path: '/cfg/accounts/oauth/github/authorize/',\n method: 'POST',\n error: error,\n response: response,\n timestamp: new Date(),\n },\n bubbles: true,\n cancelable: false,\n });\n window.dispatchEvent(event);\n } catch (eventError) {\n // Silently fail - event dispatch should never crash the app\n consola.warn('Failed to dispatch validation error event:', eventError);\n }\n }\n\n // Re-throw the error\n throw error;\n }\n}\n\n\n/**\n * Complete GitHub OAuth\n *\n * @method POST\n * @path /cfg/accounts/oauth/github/callback/\n */\nexport async function createAccountsOauthGithubCallbackCreate( data: OAuthCallbackRequestRequest, client?: any\n): Promise<OAuthTokenResponse> {\n const api = client || getAPIInstance()\n const response = await api.oauth.accountsOauthGithubCallbackCreate(data)\n try {\n return OAuthTokenResponseSchema.parse(response)\n } catch (error) {\n // Zod validation error - log detailed information\n consola.error('❌ Zod Validation Failed');\n consola.box(`createAccountsOauthGithubCallbackCreate\\nPath: /cfg/accounts/oauth/github/callback/\\nMethod: POST`);\n\n if (error instanceof Error && 'issues' in error && Array.isArray((error as any).issues)) {\n consola.error('Validation Issues:');\n (error as any).issues.forEach((issue: any, index: number) => {\n consola.error(` ${index + 1}. ${issue.path.join('.') || 'root'}`);\n consola.error(` ├─ Message: ${issue.message}`);\n if (issue.expected) consola.error(` ├─ Expected: ${issue.expected}`);\n if (issue.received) consola.error(` └─ Received: ${issue.received}`);\n });\n }\n\n consola.error('Response data:', response);\n\n // Dispatch browser CustomEvent (only if window is defined)\n if (typeof window !== 'undefined' && error instanceof Error && 'issues' in error) {\n try {\n const event = new CustomEvent('zod-validation-error', {\n detail: {\n operation: 'createAccountsOauthGithubCallbackCreate',\n path: '/cfg/accounts/oauth/github/callback/',\n method: 'POST',\n error: error,\n response: response,\n timestamp: new Date(),\n },\n bubbles: true,\n cancelable: false,\n });\n window.dispatchEvent(event);\n } catch (eventError) {\n // Silently fail - event dispatch should never crash the app\n consola.warn('Failed to dispatch validation error event:', eventError);\n }\n }\n\n // Re-throw the error\n throw error;\n }\n}\n\n\n/**\n * List OAuth providers\n *\n * @method GET\n * @path /cfg/accounts/oauth/providers/\n */\nexport async function getAccountsOauthProvidersRetrieve( client?: any\n): Promise<OAuthProvidersResponse> {\n const api = client || getAPIInstance()\n const response = await api.oauth.accountsOauthProvidersRetrieve()\n try {\n return OAuthProvidersResponseSchema.parse(response)\n } catch (error) {\n // Zod validation error - log detailed information\n consola.error('❌ Zod Validation Failed');\n consola.box(`getAccountsOauthProvidersRetrieve\\nPath: /cfg/accounts/oauth/providers/\\nMethod: GET`);\n\n if (error instanceof Error && 'issues' in error && Array.isArray((error as any).issues)) {\n consola.error('Validation Issues:');\n (error as any).issues.forEach((issue: any, index: number) => {\n consola.error(` ${index + 1}. ${issue.path.join('.') || 'root'}`);\n consola.error(` ├─ Message: ${issue.message}`);\n if (issue.expected) consola.error(` ├─ Expected: ${issue.expected}`);\n if (issue.received) consola.error(` └─ Received: ${issue.received}`);\n });\n }\n\n consola.error('Response data:', response);\n\n // Dispatch browser CustomEvent (only if window is defined)\n if (typeof window !== 'undefined' && error instanceof Error && 'issues' in error) {\n try {\n const event = new CustomEvent('zod-validation-error', {\n detail: {\n operation: 'getAccountsOauthProvidersRetrieve',\n path: '/cfg/accounts/oauth/providers/',\n method: 'GET',\n error: error,\n response: response,\n timestamp: new Date(),\n },\n bubbles: true,\n cancelable: false,\n });\n window.dispatchEvent(event);\n } catch (eventError) {\n // Silently fail - event dispatch should never crash the app\n consola.warn('Failed to dispatch validation error event:', eventError);\n }\n }\n\n // Re-throw the error\n throw error;\n }\n}\n\n\n","/**\n * AUTO-GENERATED FILE - DO NOT EDIT\n *\n * This file is automatically generated by DjangoCFG.\n * Any manual changes will be lost when the code is regenerated.\n *\n * @see https://djangocfg.com/docs/features/modules/django-client/overview/\n */\n/**\n * Typed fetchers for User Profile\n *\n * Universal functions that work in any environment:\n * - Next.js (App Router / Pages Router / Server Components)\n * - React Native\n * - Node.js backend\n *\n * These fetchers use Zod schemas for runtime validation.\n *\n * Usage:\n * ```typescript\n * // Configure API once (in your app entry point)\n * import { configureAPI } from '../../api-instance'\n * configureAPI({ baseUrl: 'https://api.example.com' })\n *\n * // Then use fetchers anywhere\n * const users = await getUsers({ page: 1 })\n *\n * // With SWR\n * const { data } = useSWR(['users', params], () => getUsers(params))\n *\n * // With React Query\n * const { data } = useQuery(['users', params], () => getUsers(params))\n *\n * // In Server Component or SSR (pass custom client)\n * import { API } from '../../index'\n * const api = new API('https://api.example.com')\n * const users = await getUsers({ page: 1 }, api)\n * ```\n */\nimport { consola } from 'consola'\nimport { PatchedUserProfileUpdateRequestSchema, type PatchedUserProfileUpdateRequest } from '../schemas/PatchedUserProfileUpdateRequest.schema'\nimport { UserSchema, type User } from '../schemas/User.schema'\nimport { UserProfileUpdateRequestSchema, type UserProfileUpdateRequest } from '../schemas/UserProfileUpdateRequest.schema'\nimport { getAPIInstance } from '../../api-instance'\n\n/**\n * Get current user profile\n *\n * @method GET\n * @path /cfg/accounts/profile/\n */\nexport async function getAccountsProfileRetrieve( client?: any\n): Promise<User> {\n const api = client || getAPIInstance()\n const response = await api.user_profile.accountsProfileRetrieve()\n try {\n return UserSchema.parse(response)\n } catch (error) {\n // Zod validation error - log detailed information\n consola.error('❌ Zod Validation Failed');\n consola.box(`getAccountsProfileRetrieve\\nPath: /cfg/accounts/profile/\\nMethod: GET`);\n\n if (error instanceof Error && 'issues' in error && Array.isArray((error as any).issues)) {\n consola.error('Validation Issues:');\n (error as any).issues.forEach((issue: any, index: number) => {\n consola.error(` ${index + 1}. ${issue.path.join('.') || 'root'}`);\n consola.error(` ├─ Message: ${issue.message}`);\n if (issue.expected) consola.error(` ├─ Expected: ${issue.expected}`);\n if (issue.received) consola.error(` └─ Received: ${issue.received}`);\n });\n }\n\n consola.error('Response data:', response);\n\n // Dispatch browser CustomEvent (only if window is defined)\n if (typeof window !== 'undefined' && error instanceof Error && 'issues' in error) {\n try {\n const event = new CustomEvent('zod-validation-error', {\n detail: {\n operation: 'getAccountsProfileRetrieve',\n path: '/cfg/accounts/profile/',\n method: 'GET',\n error: error,\n response: response,\n timestamp: new Date(),\n },\n bubbles: true,\n cancelable: false,\n });\n window.dispatchEvent(event);\n } catch (eventError) {\n // Silently fail - event dispatch should never crash the app\n consola.warn('Failed to dispatch validation error event:', eventError);\n }\n }\n\n // Re-throw the error\n throw error;\n }\n}\n\n\n/**\n * Upload user avatar\n *\n * @method POST\n * @path /cfg/accounts/profile/avatar/\n */\nexport async function createAccountsProfileAvatarCreate( data: any, client?: any\n): Promise<User> {\n const api = client || getAPIInstance()\n const response = await api.user_profile.accountsProfileAvatarCreate(data)\n try {\n return UserSchema.parse(response)\n } catch (error) {\n // Zod validation error - log detailed information\n consola.error('❌ Zod Validation Failed');\n consola.box(`createAccountsProfileAvatarCreate\\nPath: /cfg/accounts/profile/avatar/\\nMethod: POST`);\n\n if (error instanceof Error && 'issues' in error && Array.isArray((error as any).issues)) {\n consola.error('Validation Issues:');\n (error as any).issues.forEach((issue: any, index: number) => {\n consola.error(` ${index + 1}. ${issue.path.join('.') || 'root'}`);\n consola.error(` ├─ Message: ${issue.message}`);\n if (issue.expected) consola.error(` ├─ Expected: ${issue.expected}`);\n if (issue.received) consola.error(` └─ Received: ${issue.received}`);\n });\n }\n\n consola.error('Response data:', response);\n\n // Dispatch browser CustomEvent (only if window is defined)\n if (typeof window !== 'undefined' && error instanceof Error && 'issues' in error) {\n try {\n const event = new CustomEvent('zod-validation-error', {\n detail: {\n operation: 'createAccountsProfileAvatarCreate',\n path: '/cfg/accounts/profile/avatar/',\n method: 'POST',\n error: error,\n response: response,\n timestamp: new Date(),\n },\n bubbles: true,\n cancelable: false,\n });\n window.dispatchEvent(event);\n } catch (eventError) {\n // Silently fail - event dispatch should never crash the app\n consola.warn('Failed to dispatch validation error event:', eventError);\n }\n }\n\n // Re-throw the error\n throw error;\n }\n}\n\n\n/**\n * Partial update user profile\n *\n * @method PUT\n * @path /cfg/accounts/profile/partial/\n */\nexport async function partialUpdateAccountsProfilePartialUpdate( data: UserProfileUpdateRequest, client?: any\n): Promise<User> {\n const api = client || getAPIInstance()\n const response = await api.user_profile.accountsProfilePartialUpdate(data)\n try {\n return UserSchema.parse(response)\n } catch (error) {\n // Zod validation error - log detailed information\n consola.error('❌ Zod Validation Failed');\n consola.box(`partialUpdateAccountsProfilePartialUpdate\\nPath: /cfg/accounts/profile/partial/\\nMethod: PUT`);\n\n if (error instanceof Error && 'issues' in error && Array.isArray((error as any).issues)) {\n consola.error('Validation Issues:');\n (error as any).issues.forEach((issue: any, index: number) => {\n consola.error(` ${index + 1}. ${issue.path.join('.') || 'root'}`);\n consola.error(` ├─ Message: ${issue.message}`);\n if (issue.expected) consola.error(` ├─ Expected: ${issue.expected}`);\n if (issue.received) consola.error(` └─ Received: ${issue.received}`);\n });\n }\n\n consola.error('Response data:', response);\n\n // Dispatch browser CustomEvent (only if window is defined)\n if (typeof window !== 'undefined' && error instanceof Error && 'issues' in error) {\n try {\n const event = new CustomEvent('zod-validation-error', {\n detail: {\n operation: 'partialUpdateAccountsProfilePartialUpdate',\n path: '/cfg/accounts/profile/partial/',\n method: 'PUT',\n error: error,\n response: response,\n timestamp: new Date(),\n },\n bubbles: true,\n cancelable: false,\n });\n window.dispatchEvent(event);\n } catch (eventError) {\n // Silently fail - event dispatch should never crash the app\n consola.warn('Failed to dispatch validation error event:', eventError);\n }\n }\n\n // Re-throw the error\n throw error;\n }\n}\n\n\n/**\n * Partial update user profile\n *\n * @method PATCH\n * @path /cfg/accounts/profile/partial/\n */\nexport async function partialUpdateAccountsProfilePartialPartialUpdate( data?: PatchedUserProfileUpdateRequest, client?: any\n): Promise<User> {\n const api = client || getAPIInstance()\n const response = await api.user_profile.accountsProfilePartialPartialUpdate(data)\n try {\n return UserSchema.parse(response)\n } catch (error) {\n // Zod validation error - log detailed information\n consola.error('❌ Zod Validation Failed');\n consola.box(`partialUpdateAccountsProfilePartialPartialUpdate\\nPath: /cfg/accounts/profile/partial/\\nMethod: PATCH`);\n\n if (error instanceof Error && 'issues' in error && Array.isArray((error as any).issues)) {\n consola.error('Validation Issues:');\n (error as any).issues.forEach((issue: any, index: number) => {\n consola.error(` ${index + 1}. ${issue.path.join('.') || 'root'}`);\n consola.error(` ├─ Message: ${issue.message}`);\n if (issue.expected) consola.error(` ├─ Expected: ${issue.expected}`);\n if (issue.received) consola.error(` └─ Received: ${issue.received}`);\n });\n }\n\n consola.error('Response data:', response);\n\n // Dispatch browser CustomEvent (only if window is defined)\n if (typeof window !== 'undefined' && error instanceof Error && 'issues' in error) {\n try {\n const event = new CustomEvent('zod-validation-error', {\n detail: {\n operation: 'partialUpdateAccountsProfilePartialPartialUpdate',\n path: '/cfg/accounts/profile/partial/',\n method: 'PATCH',\n error: error,\n response: response,\n timestamp: new Date(),\n },\n bubbles: true,\n cancelable: false,\n });\n window.dispatchEvent(event);\n } catch (eventError) {\n // Silently fail - event dispatch should never crash the app\n consola.warn('Failed to dispatch validation error event:', eventError);\n }\n }\n\n // Re-throw the error\n throw error;\n }\n}\n\n\n/**\n * Update user profile\n *\n * @method PUT\n * @path /cfg/accounts/profile/update/\n */\nexport async function updateAccountsProfileUpdateUpdate( data: UserProfileUpdateRequest, client?: any\n): Promise<User> {\n const api = client || getAPIInstance()\n const response = await api.user_profile.accountsProfileUpdateUpdate(data)\n try {\n return UserSchema.parse(response)\n } catch (error) {\n // Zod validation error - log detailed information\n consola.error('❌ Zod Validation Failed');\n consola.box(`updateAccountsProfileUpdateUpdate\\nPath: /cfg/accounts/profile/update/\\nMethod: PUT`);\n\n if (error instanceof Error && 'issues' in error && Array.isArray((error as any).issues)) {\n consola.error('Validation Issues:');\n (error as any).issues.forEach((issue: any, index: number) => {\n consola.error(` ${index + 1}. ${issue.path.join('.') || 'root'}`);\n consola.error(` ├─ Message: ${issue.message}`);\n if (issue.expected) consola.error(` ├─ Expected: ${issue.expected}`);\n if (issue.received) consola.error(` └─ Received: ${issue.received}`);\n });\n }\n\n consola.error('Response data:', response);\n\n // Dispatch browser CustomEvent (only if window is defined)\n if (typeof window !== 'undefined' && error instanceof Error && 'issues' in error) {\n try {\n const event = new CustomEvent('zod-validation-error', {\n detail: {\n operation: 'updateAccountsProfileUpdateUpdate',\n path: '/cfg/accounts/profile/update/',\n method: 'PUT',\n error: error,\n response: response,\n timestamp: new Date(),\n },\n bubbles: true,\n cancelable: false,\n });\n window.dispatchEvent(event);\n } catch (eventError) {\n // Silently fail - event dispatch should never crash the app\n consola.warn('Failed to dispatch validation error event:', eventError);\n }\n }\n\n // Re-throw the error\n throw error;\n }\n}\n\n\n/**\n * Update user profile\n *\n * @method PATCH\n * @path /cfg/accounts/profile/update/\n */\nexport async function partialUpdateAccountsProfileUpdatePartialUpdate( data?: PatchedUserProfileUpdateRequest, client?: any\n): Promise<User> {\n const api = client || getAPIInstance()\n const response = await api.user_profile.accountsProfileUpdatePartialUpdate(data)\n try {\n return UserSchema.parse(response)\n } catch (error) {\n // Zod validation error - log detailed information\n consola.error('❌ Zod Validation Failed');\n consola.box(`partialUpdateAccountsProfileUpdatePartialUpdate\\nPath: /cfg/accounts/profile/update/\\nMethod: PATCH`);\n\n if (error instanceof Error && 'issues' in error && Array.isArray((error as any).issues)) {\n consola.error('Validation Issues:');\n (error as any).issues.forEach((issue: any, index: number) => {\n consola.error(` ${index + 1}. ${issue.path.join('.') || 'root'}`);\n consola.error(` ├─ Message: ${issue.message}`);\n if (issue.expected) consola.error(` ├─ Expected: ${issue.expected}`);\n if (issue.received) consola.error(` └─ Received: ${issue.received}`);\n });\n }\n\n consola.error('Response data:', response);\n\n // Dispatch browser CustomEvent (only if window is defined)\n if (typeof window !== 'undefined' && error instanceof Error && 'issues' in error) {\n try {\n const event = new CustomEvent('zod-validation-error', {\n detail: {\n operation: 'partialUpdateAccountsProfileUpdatePartialUpdate',\n path: '/cfg/accounts/profile/update/',\n method: 'PATCH',\n error: error,\n response: response,\n timestamp: new Date(),\n },\n bubbles: true,\n cancelable: false,\n });\n window.dispatchEvent(event);\n } catch (eventError) {\n // Silently fail - event dispatch should never crash the app\n consola.warn('Failed to dispatch validation error event:', eventError);\n }\n }\n\n // Re-throw the error\n throw error;\n }\n}\n\n\n","/**\n * AUTO-GENERATED FILE - DO NOT EDIT\n *\n * This file is automatically generated by DjangoCFG.\n * Any manual changes will be lost when the code is regenerated.\n *\n * @see https://djangocfg.com/docs/features/modules/django-client/overview/\n */\n/**\n * Global API Instance - Singleton configuration\n *\n * This module provides a global API instance that can be configured once\n * and used throughout your application.\n *\n * Usage:\n * ```typescript\n * // Configure once (e.g., in your app entry point)\n * import { configureAPI } from './api-instance'\n *\n * configureAPI({\n * baseUrl: 'https://api.example.com',\n * token: 'your-jwt-token'\n * })\n *\n * // Then use fetchers and hooks anywhere without configuration\n * import { getUsers } from './fetchers'\n * const users = await getUsers({ page: 1 })\n * ```\n *\n * For SSR or multiple instances:\n * ```typescript\n * import { API } from './index'\n * import { getUsers } from './fetchers'\n *\n * const api = new API('https://api.example.com')\n * const users = await getUsers({ page: 1 }, api)\n * ```\n */\n\nimport { API, type APIOptions } from './index'\n\nlet globalAPI: API | null = null\n\n/**\n * Get the global API instance\n * @throws Error if API is not configured\n */\nexport function getAPIInstance(): API {\n if (!globalAPI) {\n throw new Error(\n 'API not configured. Call configureAPI() with your base URL before using fetchers or hooks.\\n\\n' +\n 'Example:\\n' +\n ' import { configureAPI } from \"./api-instance\"\\n' +\n ' configureAPI({ baseUrl: \"https://api.example.com\" })'\n )\n }\n return globalAPI\n}\n\n/**\n * Check if API is configured\n */\nexport function isAPIConfigured(): boolean {\n return globalAPI !== null\n}\n\n/**\n * Configure the global API instance\n *\n * @param baseUrl - Base URL for the API\n * @param options - Optional configuration (storage, retry, logger)\n *\n * @example\n * ```typescript\n * configureAPI({\n * baseUrl: 'https://api.example.com',\n * token: 'jwt-token',\n * options: {\n * retryConfig: { maxRetries: 3 },\n * loggerConfig: { enabled: true }\n * }\n * })\n * ```\n */\nexport function configureAPI(config: {\n baseUrl: string\n token?: string\n refreshToken?: string\n options?: APIOptions\n}): API {\n globalAPI = new API(config.baseUrl, config.options)\n\n if (config.token) {\n globalAPI.setToken(config.token, config.refreshToken)\n }\n\n return globalAPI\n}\n\n/**\n * Reconfigure the global API instance with new settings\n * Useful for updating tokens or base URL\n */\nexport function reconfigureAPI(updates: {\n baseUrl?: string\n token?: string\n refreshToken?: string\n}): API {\n const instance = getAPIInstance()\n\n if (updates.baseUrl) {\n instance.setBaseUrl(updates.baseUrl)\n }\n\n if (updates.token) {\n instance.setToken(updates.token, updates.refreshToken)\n }\n\n return instance\n}\n\n/**\n * Clear tokens from the global API instance\n */\nexport function clearAPITokens(): void {\n const instance = getAPIInstance()\n instance.clearTokens()\n}\n\n/**\n * Reset the global API instance\n * Useful for testing or logout scenarios\n */\nexport function resetAPI(): void {\n if (globalAPI) {\n globalAPI.clearTokens()\n }\n globalAPI = null\n}","/**\n * AUTO-GENERATED FILE - DO NOT EDIT\n *\n * This file is automatically generated by DjangoCFG.\n * Any manual changes will be lost when the code is regenerated.\n *\n * @see https://djangocfg.com/docs/features/modules/django-client/overview/\n */\n'use client';\n\n/**\n * SWR Hooks for Oauth\n *\n * React hooks powered by SWR for data fetching with automatic caching,\n * revalidation, and optimistic updates.\n *\n * Usage:\n * ```typescript\n * // Query hooks (GET)\n * const { data, error, isLoading } = useUsers({ page: 1 })\n *\n * // Mutation hooks (POST/PUT/PATCH/DELETE)\n * const createUser = useCreateUser()\n * await createUser({ name: 'John', email: 'john@example.com' })\n * ```\n */\nimport useSWR from 'swr'\nimport { useSWRConfig } from 'swr'\nimport * as Fetchers from '../fetchers/accounts__oauth'\nimport type { API } from '../../index'\nimport type { OAuthAuthorizeRequestRequest } from '../schemas/OAuthAuthorizeRequestRequest.schema'\nimport type { OAuthAuthorizeResponse } from '../schemas/OAuthAuthorizeResponse.schema'\nimport type { OAuthCallbackRequestRequest } from '../schemas/OAuthCallbackRequestRequest.schema'\nimport type { OAuthDisconnectRequestRequest } from '../schemas/OAuthDisconnectRequestRequest.schema'\nimport type { OAuthProvidersResponse } from '../schemas/OAuthProvidersResponse.schema'\nimport type { OAuthTokenResponse } from '../schemas/OAuthTokenResponse.schema'\n\n/**\n * List OAuth connections\n *\n * @method GET\n * @path /cfg/accounts/oauth/connections/\n */\nexport function useAccountsOauthConnectionsList(client?: API): ReturnType<typeof useSWR<any>> {\n return useSWR<any>(\n 'cfg-accounts-oauth-connections',\n () => Fetchers.getAccountsOauthConnectionsList(client)\n )\n}\n\n\n/**\n * Disconnect OAuth provider\n *\n * @method POST\n * @path /cfg/accounts/oauth/disconnect/\n */\nexport function useCreateAccountsOauthDisconnectCreate() {\n const { mutate } = useSWRConfig()\n\n return async (data: OAuthDisconnectRequestRequest, client?: API): Promise<any> => {\n const result = await Fetchers.createAccountsOauthDisconnectCreate(data, client)\n // Revalidate related queries\n mutate('cfg-accounts-oauth-disconnect')\n return result\n }\n}\n\n\n/**\n * Start GitHub OAuth\n *\n * @method POST\n * @path /cfg/accounts/oauth/github/authorize/\n */\nexport function useCreateAccountsOauthGithubAuthorizeCreate() {\n const { mutate } = useSWRConfig()\n\n return async (data: OAuthAuthorizeRequestRequest, client?: API): Promise<OAuthAuthorizeResponse> => {\n const result = await Fetchers.createAccountsOauthGithubAuthorizeCreate(data, client)\n // Revalidate related queries\n mutate('cfg-accounts-oauth-github-authorize')\n return result\n }\n}\n\n\n/**\n * Complete GitHub OAuth\n *\n * @method POST\n * @path /cfg/accounts/oauth/github/callback/\n */\nexport function useCreateAccountsOauthGithubCallbackCreate() {\n const { mutate } = useSWRConfig()\n\n return async (data: OAuthCallbackRequestRequest, client?: API): Promise<OAuthTokenResponse> => {\n const result = await Fetchers.createAccountsOauthGithubCallbackCreate(data, client)\n // Revalidate related queries\n mutate('cfg-accounts-oauth-github-callback')\n return result\n }\n}\n\n\n/**\n * List OAuth providers\n *\n * @method GET\n * @path /cfg/accounts/oauth/providers/\n */\nexport function useAccountsOauthProvidersRetrieve(client?: API): ReturnType<typeof useSWR<OAuthProvidersResponse>> {\n return useSWR<OAuthProvidersResponse>(\n 'cfg-accounts-oauth-provider',\n () => Fetchers.getAccountsOauthProvidersRetrieve(client)\n )\n}\n\n\n","/**\n * AUTO-GENERATED FILE - DO NOT EDIT\n *\n * This file is automatically generated by DjangoCFG.\n * Any manual changes will be lost when the code is regenerated.\n *\n * @see https://djangocfg.com/docs/features/modules/django-client/overview/\n */\n'use client';\n\n/**\n * SWR Hooks for User Profile\n *\n * React hooks powered by SWR for data fetching with automatic caching,\n * revalidation, and optimistic updates.\n *\n * Usage:\n * ```typescript\n * // Query hooks (GET)\n * const { data, error, isLoading } = useUsers({ page: 1 })\n *\n * // Mutation hooks (POST/PUT/PATCH/DELETE)\n * const createUser = useCreateUser()\n * await createUser({ name: 'John', email: 'john@example.com' })\n * ```\n */\nimport useSWR from 'swr'\nimport { useSWRConfig } from 'swr'\nimport * as Fetchers from '../fetchers/accounts__user_profile'\nimport type { API } from '../../index'\nimport type { PatchedUserProfileUpdateRequest } from '../schemas/PatchedUserProfileUpdateRequest.schema'\nimport type { User } from '../schemas/User.schema'\nimport type { UserProfileUpdateRequest } from '../schemas/UserProfileUpdateRequest.schema'\n\n/**\n * Get current user profile\n *\n * @method GET\n * @path /cfg/accounts/profile/\n */\nexport function useAccountsProfileRetrieve(client?: API): ReturnType<typeof useSWR<User>> {\n return useSWR<User>(\n 'cfg-accounts-profile',\n () => Fetchers.getAccountsProfileRetrieve(client)\n )\n}\n\n\n/**\n * Upload user avatar\n *\n * @method POST\n * @path /cfg/accounts/profile/avatar/\n */\nexport function useCreateAccountsProfileAvatarCreate() {\n const { mutate } = useSWRConfig()\n\n return async (data: any, client?: API): Promise<User> => {\n const result = await Fetchers.createAccountsProfileAvatarCreate(data, client)\n // Revalidate related queries\n mutate('cfg-accounts-profile-avatar')\n return result\n }\n}\n\n\n/**\n * Partial update user profile\n *\n * @method PUT\n * @path /cfg/accounts/profile/partial/\n */\nexport function usePartialUpdateAccountsProfilePartialUpdate() {\n const { mutate } = useSWRConfig()\n\n return async (data: UserProfileUpdateRequest, client?: API): Promise<User> => {\n const result = await Fetchers.partialUpdateAccountsProfilePartialUpdate(data, client)\n // Revalidate related queries\n mutate('cfg-accounts-profile-partial')\n return result\n }\n}\n\n\n/**\n * Partial update user profile\n *\n * @method PATCH\n * @path /cfg/accounts/profile/partial/\n */\nexport function usePartialUpdateAccountsProfilePartialPartialUpdate() {\n const { mutate } = useSWRConfig()\n\n return async (data?: PatchedUserProfileUpdateRequest, client?: API): Promise<User> => {\n const result = await Fetchers.partialUpdateAccountsProfilePartialPartialUpdate(data, client)\n // Revalidate related queries\n mutate('cfg-accounts-profile-partial-partial')\n return result\n }\n}\n\n\n/**\n * Update user profile\n *\n * @method PUT\n * @path /cfg/accounts/profile/update/\n */\nexport function useUpdateAccountsProfileUpdateUpdate() {\n const { mutate } = useSWRConfig()\n\n return async (data: UserProfileUpdateRequest, client?: API): Promise<User> => {\n const result = await Fetchers.updateAccountsProfileUpdateUpdate(data, client)\n // Revalidate related queries\n mutate('cfg-accounts-profile')\n return result\n }\n}\n\n\n/**\n * Update user profile\n *\n * @method PATCH\n * @path /cfg/accounts/profile/update/\n */\nexport function usePartialUpdateAccountsProfileUpdatePartialUpdate() {\n const { mutate } = useSWRConfig()\n\n return async (data?: PatchedUserProfileUpdateRequest, client?: API): Promise<User> => {\n const result = await Fetchers.partialUpdateAccountsProfileUpdatePartialUpdate(data, client)\n // Revalidate related queries\n mutate('cfg-accounts-profile-partial')\n return result\n }\n}\n\n\n","/**\n * AUTO-GENERATED FILE - DO NOT EDIT\n *\n * This file is automatically generated by DjangoCFG.\n * Any manual changes will be lost when the code is regenerated.\n *\n * @see https://djangocfg.com/docs/features/modules/django-client/overview/\n */\n'use client';\n\n/**\n * SWR Hooks for Accounts\n *\n * React hooks powered by SWR for data fetching with automatic caching,\n * revalidation, and optimistic updates.\n *\n * Usage:\n * ```typescript\n * // Query hooks (GET)\n * const { data, error, isLoading } = useUsers({ page: 1 })\n *\n * // Mutation hooks (POST/PUT/PATCH/DELETE)\n * const createUser = useCreateUser()\n * await createUser({ name: 'John', email: 'john@example.com' })\n * ```\n */\nimport { useSWRConfig } from 'swr'\nimport * as Fetchers from '../fetchers/accounts'\nimport type { API } from '../../index'\nimport type { OTPRequestRequest } from '../schemas/OTPRequestRequest.schema'\nimport type { OTPRequestResponse } from '../schemas/OTPRequestResponse.schema'\nimport type { OTPVerifyRequest } from '../schemas/OTPVerifyRequest.schema'\nimport type { OTPVerifyResponse } from '../schemas/OTPVerifyResponse.schema'\n\n/**\n * API operation\n *\n * @method POST\n * @path /cfg/accounts/otp/request/\n */\nexport function useCreateAccountsOtpRequestCreate() {\n const { mutate } = useSWRConfig()\n\n return async (data: OTPRequestRequest, client?: API): Promise<OTPRequestResponse> => {\n const result = await Fetchers.createAccountsOtpRequestCreate(data, client)\n // Revalidate related queries\n mutate('cfg-accounts-otp-request')\n return result\n }\n}\n\n\n/**\n * API operation\n *\n * @method POST\n * @path /cfg/accounts/otp/verify/\n */\nexport function useCreateAccountsOtpVerifyCreate() {\n const { mutate } = useSWRConfig()\n\n return async (data: OTPVerifyRequest, client?: API): Promise<OTPVerifyResponse> => {\n const result = await Fetchers.createAccountsOtpVerifyCreate(data, client)\n // Revalidate related queries\n mutate('cfg-accounts-otp-verify')\n return result\n }\n}\n\n\n"],"mappings":";;;;;AA0BA,SAAS,oBAAoB;;;ACa7B,SAAS,WAAAA,gBAAe;;;AClCxB,SAAS,SAAS;AAEX,IAAM,qBAAqB,EAAE,OAAO;AAAA,EACzC,QAAQ,EAAE,OAAO;AAAA,EACjB,SAAS,EAAE,OAAO;AACpB,CAAC;;;ACMD,SAA+B,qBAAqB;AA0DpD,IAAM,iBAA+B;AAAA,EACnC,SAAS,QAAQ,IAAI,aAAa;AAAA,EAClC,aAAa;AAAA,EACb,cAAc;AAAA,EACd,WAAW;AAAA,EACX,WAAW;AAAA,EACX,YAAY;AACd;AAKA,IAAM,oBAAoB;AAAA,EACxB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF;AAKO,IAAM,YAAN,MAAgB;AAAA,EAjGvB,OAiGuB;AAAA;AAAA;AAAA,EAIrB,YAAY,SAAgC,CAAC,GAAG;AAC9C,SAAK,SAAS,EAAE,GAAG,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WAAO,8BAA8B;AACrC,WAAO;AAAA,EACT;AACF;AATgB;AAkBT,SAAS,sDAAsD;AACpE,QAAM,EAAE,OAAO,IAAIA,cAAa;AAEhC,SAAO,OAAO,MAAwC,WAAgC;AACpF,UAAM,SAAS,MAAe,iDAAiD,MAAM,MAAM;AAE3F,WAAO,sCAAsC;AAC7C,WAAO;AAAA,EACT;AACF;AATgB;AAkBT,SAAS,uCAAuC;AACrD,QAAM,EAAE,OAAO,IAAIA,cAAa;AAEhC,SAAO,OAAO,MAAgC,WAAgC;AAC5E,UAAM,SAAS,MAAe,kCAAkC,MAAM,MAAM;AAE5E,WAAO,sBAAsB;AAC7B,WAAO;AAAA,EACT;AACF;AATgB;AAkBT,SAAS,qDAAqD;AACnE,QAAM,EAAE,OAAO,IAAIA,cAAa;AAEhC,SAAO,OAAO,MAAwC,WAAgC;AACpF,UAAM,SAAS,MAAe,gDAAgD,MAAM,MAAM;AAE1F,WAAO,8BAA8B;AACrC,WAAO;AAAA,EACT;AACF;AATgB;;;ACpGhB,SAAS,gBAAAC,qBAAoB;AActB,SAAS,oCAAoC;AAClD,QAAM,EAAE,OAAO,IAAIC,cAAa;AAEhC,SAAO,OAAO,MAAyB,WAA8C;AACnF,UAAM,SAAS,MAAe,+BAA+B,MAAM,MAAM;AAEzE,WAAO,0BAA0B;AACjC,WAAO;AAAA,EACT;AACF;AATgB;AAkBT,SAAS,mCAAmC;AACjD,QAAM,EAAE,OAAO,IAAIA,cAAa;AAEhC,SAAO,OAAO,MAAwB,WAA6C;AACjF,UAAM,SAAS,MAAe,8BAA8B,MAAM,MAAM;AAExE,WAAO,yBAAyB;AAChC,WAAO;AAAA,EACT;AACF;AATgB;","names":["consola","OAuthConnectionProvider","OAuthDisconnectRequestRequestProvider","OTPRequestRequestChannel","OTPVerifyRequestChannel","z","z","z","z","z","z","z","z","z","z","z","z","z","z","z","z","z","z","z","z","z","z","z","z","consola","consola","consola","consola","consola","useSWRConfig","useSWRConfig","useSWR","useSWRConfig","useSWR","useSWRConfig","useSWRConfig","useSWRConfig"]}
1
+ {"version":3,"sources":["../src/generated/cfg_accounts/_utils/hooks/accounts__auth.ts","../src/generated/cfg_accounts/_utils/fetchers/accounts__auth.ts","../src/generated/cfg_accounts/_utils/schemas/TokenRefresh.schema.ts","../src/generated/cfg_accounts/logger.ts","../src/generated/cfg_accounts/retry.ts","../src/generated/cfg_accounts/enums.ts","../src/generated/cfg_accounts/_utils/schemas/CentrifugoToken.schema.ts","../src/generated/cfg_accounts/_utils/schemas/OAuthAuthorizeRequestRequest.schema.ts","../src/generated/cfg_accounts/_utils/schemas/OAuthAuthorizeResponse.schema.ts","../src/generated/cfg_accounts/_utils/schemas/OAuthCallbackRequestRequest.schema.ts","../src/generated/cfg_accounts/_utils/schemas/OAuthConnection.schema.ts","../src/generated/cfg_accounts/_utils/schemas/OAuthDisconnectRequestRequest.schema.ts","../src/generated/cfg_accounts/_utils/schemas/OAuthError.schema.ts","../src/generated/cfg_accounts/_utils/schemas/OAuthProvidersResponse.schema.ts","../src/generated/cfg_accounts/_utils/schemas/OAuthTokenResponse.schema.ts","../src/generated/cfg_accounts/_utils/schemas/OTPErrorResponse.schema.ts","../src/generated/cfg_accounts/_utils/schemas/OTPRequestRequest.schema.ts","../src/generated/cfg_accounts/_utils/schemas/OTPRequestResponse.schema.ts","../src/generated/cfg_accounts/_utils/schemas/OTPVerifyRequest.schema.ts","../src/generated/cfg_accounts/_utils/schemas/OTPVerifyResponse.schema.ts","../src/generated/cfg_accounts/_utils/schemas/User.schema.ts","../src/generated/cfg_accounts/_utils/schemas/PatchedUserProfileUpdateRequest.schema.ts","../src/generated/cfg_accounts/_utils/schemas/TokenRefreshRequest.schema.ts","../src/generated/cfg_accounts/_utils/schemas/UserProfileUpdateRequest.schema.ts","../src/generated/cfg_accounts/_utils/fetchers/accounts.ts","../src/generated/cfg_accounts/_utils/fetchers/accounts__oauth.ts","../src/generated/cfg_accounts/_utils/fetchers/accounts__user_profile.ts","../src/generated/cfg_accounts/api-instance.ts","../src/generated/cfg_accounts/_utils/hooks/accounts__oauth.ts","../src/generated/cfg_accounts/_utils/hooks/accounts__user_profile.ts","../src/generated/cfg_accounts/_utils/hooks/accounts.ts"],"sourcesContent":["// Auto-generated by DjangoCFG - see CLAUDE.md\n'use client';\n\n/**\n * SWR Hooks for Auth\n *\n * React hooks powered by SWR for data fetching with automatic caching,\n * revalidation, and optimistic updates.\n *\n * Usage:\n * ```typescript\n * // Query hooks (GET)\n * const { data, error, isLoading } = useUsers({ page: 1 })\n *\n * // Mutation hooks (POST/PUT/PATCH/DELETE)\n * const createUser = useCreateUser()\n * await createUser({ name: 'John', email: 'john@example.com' })\n * ```\n */\nimport { useSWRConfig } from 'swr'\nimport * as Fetchers from '../fetchers/accounts__auth'\nimport type { API } from '../../index'\nimport type { TokenRefresh } from '../schemas/TokenRefresh.schema'\nimport type { TokenRefreshRequest } from '../schemas/TokenRefreshRequest.schema'\n\n/**\n * API operation\n *\n * @method POST\n * @path /cfg/accounts/token/refresh/\n */\nexport function useCreateAccountsTokenRefreshCreate() {\n const { mutate } = useSWRConfig()\n\n return async (data: TokenRefreshRequest, client?: API): Promise<TokenRefresh> => {\n const result = await Fetchers.createAccountsTokenRefreshCreate(data, client)\n // Revalidate related queries\n mutate('cfg-accounts-token-refresh')\n return result\n }\n}\n\n\n","// Auto-generated by DjangoCFG - see CLAUDE.md\n/**\n * Typed fetchers for Auth\n *\n * Universal functions that work in any environment:\n * - Next.js (App Router / Pages Router / Server Components)\n * - React Native\n * - Node.js backend\n *\n * These fetchers use Zod schemas for runtime validation.\n *\n * Usage:\n * ```typescript\n * // Configure API once (in your app entry point)\n * import { configureAPI } from '../../api-instance'\n * configureAPI({ baseUrl: 'https://api.example.com' })\n *\n * // Then use fetchers anywhere\n * const users = await getUsers({ page: 1 })\n *\n * // With SWR\n * const { data } = useSWR(['users', params], () => getUsers(params))\n *\n * // With React Query\n * const { data } = useQuery(['users', params], () => getUsers(params))\n *\n * // In Server Component or SSR (pass custom client)\n * import { API } from '../../index'\n * const api = new API('https://api.example.com')\n * const users = await getUsers({ page: 1 }, api)\n * ```\n */\nimport { consola } from 'consola'\nimport { TokenRefreshSchema, type TokenRefresh } from '../schemas/TokenRefresh.schema'\nimport { TokenRefreshRequestSchema, type TokenRefreshRequest } from '../schemas/TokenRefreshRequest.schema'\nimport { getAPIInstance } from '../../api-instance'\n\n/**\n * API operation\n *\n * @method POST\n * @path /cfg/accounts/token/refresh/\n */\nexport async function createAccountsTokenRefreshCreate( data: TokenRefreshRequest, client?: any\n): Promise<TokenRefresh> {\n const api = client || getAPIInstance()\n const response = await api.auth.accountsTokenRefreshCreate(data)\n try {\n return TokenRefreshSchema.parse(response)\n } catch (error) {\n // Zod validation error - log detailed information\n consola.error('❌ Zod Validation Failed');\n consola.box(`createAccountsTokenRefreshCreate\\nPath: /cfg/accounts/token/refresh/\\nMethod: POST`);\n\n if (error instanceof Error && 'issues' in error && Array.isArray((error as any).issues)) {\n consola.error('Validation Issues:');\n (error as any).issues.forEach((issue: any, index: number) => {\n consola.error(` ${index + 1}. ${issue.path.join('.') || 'root'}`);\n consola.error(` ├─ Message: ${issue.message}`);\n if (issue.expected) consola.error(` ├─ Expected: ${issue.expected}`);\n if (issue.received) consola.error(` └─ Received: ${issue.received}`);\n });\n }\n\n consola.error('Response data:', response);\n\n // Dispatch browser CustomEvent (only if window is defined)\n if (typeof window !== 'undefined' && error instanceof Error && 'issues' in error) {\n try {\n const event = new CustomEvent('zod-validation-error', {\n detail: {\n operation: 'createAccountsTokenRefreshCreate',\n path: '/cfg/accounts/token/refresh/',\n method: 'POST',\n error: error,\n response: response,\n timestamp: new Date(),\n },\n bubbles: true,\n cancelable: false,\n });\n window.dispatchEvent(event);\n } catch (eventError) {\n // Silently fail - event dispatch should never crash the app\n consola.warn('Failed to dispatch validation error event:', eventError);\n }\n }\n\n // Re-throw the error\n throw error;\n }\n}\n\n\n","/**\n * Zod schema for TokenRefresh\n *\n * This schema provides runtime validation and type inference.\n * */\nimport { z } from 'zod'\n\nexport const TokenRefreshSchema = z.object({\n access: z.string(),\n refresh: z.string(),\n})\n\n/**\n * Infer TypeScript type from Zod schema\n */\nexport type TokenRefresh = z.infer<typeof TokenRefreshSchema>","// Auto-generated by DjangoCFG - see CLAUDE.md\n/**\n * API Logger with Consola\n * Beautiful console logging for API requests and responses\n *\n * Installation:\n * npm install consola\n */\n\nimport { type ConsolaInstance, createConsola } from 'consola';\n\n/**\n * Request log data\n */\nexport interface RequestLog {\n method: string;\n url: string;\n headers?: Record<string, string>;\n body?: any;\n timestamp: number;\n}\n\n/**\n * Response log data\n */\nexport interface ResponseLog {\n status: number;\n statusText: string;\n data?: any;\n duration: number;\n timestamp: number;\n}\n\n/**\n * Error log data\n */\nexport interface ErrorLog {\n message: string;\n statusCode?: number;\n fieldErrors?: Record<string, string[]>;\n duration: number;\n timestamp: number;\n}\n\n/**\n * Logger configuration\n */\nexport interface LoggerConfig {\n /** Enable logging */\n enabled: boolean;\n /** Log requests */\n logRequests: boolean;\n /** Log responses */\n logResponses: boolean;\n /** Log errors */\n logErrors: boolean;\n /** Log request/response bodies */\n logBodies: boolean;\n /** Log headers (excluding sensitive ones) */\n logHeaders: boolean;\n /** Custom consola instance */\n consola?: ConsolaInstance;\n}\n\n/**\n * Default logger configuration\n */\nconst DEFAULT_CONFIG: LoggerConfig = {\n enabled: process.env.NODE_ENV !== 'production',\n logRequests: true,\n logResponses: true,\n logErrors: true,\n logBodies: true,\n logHeaders: false,\n};\n\n/**\n * Sensitive header names to filter out\n */\nconst SENSITIVE_HEADERS = [\n 'authorization',\n 'cookie',\n 'set-cookie',\n 'x-api-key',\n 'x-csrf-token',\n];\n\n/**\n * API Logger class\n */\nexport class APILogger {\n private config: LoggerConfig;\n private consola: ConsolaInstance;\n\n constructor(config: Partial<LoggerConfig> = {}) {\n this.config = { ...DEFAULT_CONFIG, ...config };\n this.consola = config.consola || createConsola({\n level: this.config.enabled ? 4 : 0,\n });\n }\n\n /**\n * Enable logging\n */\n enable(): void {\n this.config.enabled = true;\n }\n\n /**\n * Disable logging\n */\n disable(): void {\n this.config.enabled = false;\n }\n\n /**\n * Update configuration\n */\n setConfig(config: Partial<LoggerConfig>): void {\n this.config = { ...this.config, ...config };\n }\n\n /**\n * Filter sensitive headers\n */\n private filterHeaders(headers?: Record<string, string>): Record<string, string> {\n if (!headers) return {};\n\n const filtered: Record<string, string> = {};\n Object.keys(headers).forEach((key) => {\n const lowerKey = key.toLowerCase();\n if (SENSITIVE_HEADERS.includes(lowerKey)) {\n filtered[key] = '***';\n } else {\n filtered[key] = headers[key] || '';\n }\n });\n\n return filtered;\n }\n\n /**\n * Log request\n */\n logRequest(request: RequestLog): void {\n if (!this.config.enabled || !this.config.logRequests) return;\n\n const { method, url, headers, body } = request;\n\n this.consola.start(`${method} ${url}`);\n\n if (this.config.logHeaders && headers) {\n this.consola.debug('Headers:', this.filterHeaders(headers));\n }\n\n if (this.config.logBodies && body) {\n this.consola.debug('Body:', body);\n }\n }\n\n /**\n * Log response\n */\n logResponse(request: RequestLog, response: ResponseLog): void {\n if (!this.config.enabled || !this.config.logResponses) return;\n\n const { method, url } = request;\n const { status, statusText, data, duration } = response;\n\n const statusColor = status >= 500 ? 'red'\n : status >= 400 ? 'yellow'\n : status >= 300 ? 'cyan'\n : 'green';\n\n this.consola.success(\n `${method} ${url} ${status} ${statusText} (${duration}ms)`\n );\n\n if (this.config.logBodies && data) {\n this.consola.debug('Response:', data);\n }\n }\n\n /**\n * Log error\n */\n logError(request: RequestLog, error: ErrorLog): void {\n if (!this.config.enabled || !this.config.logErrors) return;\n\n const { method, url } = request;\n const { message, statusCode, fieldErrors, duration } = error;\n\n this.consola.error(\n `${method} ${url} ${statusCode || 'Network'} Error (${duration}ms)`\n );\n\n this.consola.error('Message:', message);\n\n if (fieldErrors && Object.keys(fieldErrors).length > 0) {\n this.consola.error('Field Errors:');\n Object.entries(fieldErrors).forEach(([field, errors]) => {\n errors.forEach((err) => {\n this.consola.error(` • ${field}: ${err}`);\n });\n });\n }\n }\n\n /**\n * Log general info\n */\n info(message: string, ...args: any[]): void {\n if (!this.config.enabled) return;\n this.consola.info(message, ...args);\n }\n\n /**\n * Log warning\n */\n warn(message: string, ...args: any[]): void {\n if (!this.config.enabled) return;\n this.consola.warn(message, ...args);\n }\n\n /**\n * Log error\n */\n error(message: string, ...args: any[]): void {\n if (!this.config.enabled) return;\n this.consola.error(message, ...args);\n }\n\n /**\n * Log debug\n */\n debug(message: string, ...args: any[]): void {\n if (!this.config.enabled) return;\n this.consola.debug(message, ...args);\n }\n\n /**\n * Log success\n */\n success(message: string, ...args: any[]): void {\n if (!this.config.enabled) return;\n this.consola.success(message, ...args);\n }\n\n /**\n * Create a sub-logger with prefix\n */\n withTag(tag: string): ConsolaInstance {\n return this.consola.withTag(tag);\n }\n}\n\n/**\n * Default logger instance\n */\nexport const defaultLogger = new APILogger();","// Auto-generated by DjangoCFG - see CLAUDE.md\n/**\n * Retry Configuration and Utilities\n *\n * Provides automatic retry logic for failed HTTP requests using p-retry.\n * Retries only on network errors and server errors (5xx), not client errors (4xx).\n */\n\nimport pRetry, { AbortError } from 'p-retry';\nimport { APIError, NetworkError } from './errors';\n\n/**\n * Information about a failed retry attempt.\n */\nexport interface FailedAttemptInfo {\n /** The error that caused the failure */\n error: Error;\n /** The attempt number (1-indexed) */\n attemptNumber: number;\n /** Number of retries left */\n retriesLeft: number;\n}\n\n/**\n * Retry configuration options.\n *\n * Uses exponential backoff with jitter by default to avoid thundering herd.\n */\nexport interface RetryConfig {\n /**\n * Maximum number of retry attempts.\n * @default 3\n */\n retries?: number;\n\n /**\n * Exponential backoff factor.\n * @default 2\n */\n factor?: number;\n\n /**\n * Minimum wait time between retries (ms).\n * @default 1000\n */\n minTimeout?: number;\n\n /**\n * Maximum wait time between retries (ms).\n * @default 60000\n */\n maxTimeout?: number;\n\n /**\n * Add randomness to wait times (jitter).\n * Helps avoid thundering herd problem.\n * @default true\n */\n randomize?: boolean;\n\n /**\n * Callback called on each failed attempt.\n */\n onFailedAttempt?: (info: FailedAttemptInfo) => void;\n}\n\n/**\n * Default retry configuration.\n */\nexport const DEFAULT_RETRY_CONFIG: Required<RetryConfig> = {\n retries: 3,\n factor: 2,\n minTimeout: 1000,\n maxTimeout: 60000,\n randomize: true,\n onFailedAttempt: () => {},\n};\n\n/**\n * Determine if an error should trigger a retry.\n *\n * Retries on:\n * - Network errors (connection refused, timeout, etc.)\n * - Server errors (5xx status codes)\n * - Rate limiting (429 status code)\n *\n * Does NOT retry on:\n * - Client errors (4xx except 429)\n * - Authentication errors (401, 403)\n * - Not found (404)\n *\n * @param error - The error to check\n * @returns true if should retry, false otherwise\n */\nexport function shouldRetry(error: any): boolean {\n // Always retry network errors\n if (error instanceof NetworkError) {\n return true;\n }\n\n // For API errors, check status code\n if (error instanceof APIError) {\n const status = error.statusCode;\n\n // Retry on 5xx server errors\n if (status >= 500 && status < 600) {\n return true;\n }\n\n // Retry on 429 (rate limit)\n if (status === 429) {\n return true;\n }\n\n // Do NOT retry on 4xx client errors\n return false;\n }\n\n // Retry on unknown errors (might be network issues)\n return true;\n}\n\n/**\n * Wrap a function with retry logic.\n *\n * @param fn - Async function to retry\n * @param config - Retry configuration\n * @returns Result of the function\n *\n * @example\n * ```typescript\n * const result = await withRetry(\n * async () => fetch('https://api.example.com/users'),\n * { retries: 5, minTimeout: 2000 }\n * );\n * ```\n */\nexport async function withRetry<T>(\n fn: () => Promise<T>,\n config?: RetryConfig\n): Promise<T> {\n const finalConfig = { ...DEFAULT_RETRY_CONFIG, ...config };\n\n return pRetry(\n async () => {\n try {\n return await fn();\n } catch (error) {\n // Check if we should retry this error\n if (!shouldRetry(error)) {\n // Abort retry immediately for non-retryable errors\n throw new AbortError(error as Error);\n }\n\n // Re-throw error to trigger retry\n throw error;\n }\n },\n {\n retries: finalConfig.retries,\n factor: finalConfig.factor,\n minTimeout: finalConfig.minTimeout,\n maxTimeout: finalConfig.maxTimeout,\n randomize: finalConfig.randomize,\n onFailedAttempt: finalConfig.onFailedAttempt ? (error) => {\n // Adapt p-retry's FailedAttemptError to our FailedAttemptInfo\n const pRetryError = error as any; // p-retry's internal type\n finalConfig.onFailedAttempt!({\n error: pRetryError as Error,\n attemptNumber: pRetryError.attemptNumber,\n retriesLeft: pRetryError.retriesLeft,\n });\n } : undefined,\n }\n );\n}","// Auto-generated by DjangoCFG - see CLAUDE.md\n/**\n * OAuth provider name (github, google, etc.)\n * * `github` - GitHub\n */\nexport enum OAuthConnectionProvider {\n GITHUB = \"github\",\n}\n\n/**\n * OAuth provider to disconnect\n * * `github` - GitHub\n */\nexport enum OAuthDisconnectRequestRequestProvider {\n GITHUB = \"github\",\n}\n\n/**\n * Delivery channel: 'email' or 'phone'. Auto-detected if not provided.\n * * `email` - Email\n * * `phone` - Phone\n */\nexport enum OTPRequestRequestChannel {\n EMAIL = \"email\",\n PHONE = \"phone\",\n}\n\n/**\n * Delivery channel: 'email' or 'phone'. Auto-detected if not provided.\n * * `email` - Email\n * * `phone` - Phone\n */\nexport enum OTPVerifyRequestChannel {\n EMAIL = \"email\",\n PHONE = \"phone\",\n}\n\n","/**\n * Zod schema for CentrifugoToken\n *\n * This schema provides runtime validation and type inference.\n * * Nested serializer for Centrifugo WebSocket connection token.\n * */\nimport { z } from 'zod'\n\n/**\n * Nested serializer for Centrifugo WebSocket connection token.\n */\nexport const CentrifugoTokenSchema = z.object({\n token: z.string(),\n centrifugo_url: z.url(),\n expires_at: z.iso.datetime(),\n channels: z.array(z.string()),\n})\n\n/**\n * Infer TypeScript type from Zod schema\n */\nexport type CentrifugoToken = z.infer<typeof CentrifugoTokenSchema>","/**\n * Zod schema for OAuthAuthorizeRequestRequest\n *\n * This schema provides runtime validation and type inference.\n * * Request to start OAuth flow.\n * */\nimport { z } from 'zod'\n\n/**\n * Request to start OAuth flow.\n */\nexport const OAuthAuthorizeRequestRequestSchema = z.object({\n redirect_uri: z.url().optional(),\n source_url: z.url().optional(),\n})\n\n/**\n * Infer TypeScript type from Zod schema\n */\nexport type OAuthAuthorizeRequestRequest = z.infer<typeof OAuthAuthorizeRequestRequestSchema>","/**\n * Zod schema for OAuthAuthorizeResponse\n *\n * This schema provides runtime validation and type inference.\n * * Response with OAuth authorization URL.\n * */\nimport { z } from 'zod'\n\n/**\n * Response with OAuth authorization URL.\n */\nexport const OAuthAuthorizeResponseSchema = z.object({\n authorization_url: z.url(),\n state: z.string(),\n})\n\n/**\n * Infer TypeScript type from Zod schema\n */\nexport type OAuthAuthorizeResponse = z.infer<typeof OAuthAuthorizeResponseSchema>","/**\n * Zod schema for OAuthCallbackRequestRequest\n *\n * This schema provides runtime validation and type inference.\n * * Request to complete OAuth flow (callback handler).\n * */\nimport { z } from 'zod'\n\n/**\n * Request to complete OAuth flow (callback handler).\n */\nexport const OAuthCallbackRequestRequestSchema = z.object({\n code: z.string().min(10).max(500),\n state: z.string().min(20).max(100),\n redirect_uri: z.url().optional(),\n})\n\n/**\n * Infer TypeScript type from Zod schema\n */\nexport type OAuthCallbackRequestRequest = z.infer<typeof OAuthCallbackRequestRequestSchema>","/**\n * Zod schema for OAuthConnection\n *\n * This schema provides runtime validation and type inference.\n * * Serializer for OAuth connection info (user-facing).\n * */\nimport { z } from 'zod'\nimport * as Enums from '../../enums'\n\n/**\n * Serializer for OAuth connection info (user-facing).\n */\nexport const OAuthConnectionSchema = z.object({\n id: z.int(),\n provider: z.nativeEnum(Enums.OAuthConnectionProvider),\n provider_display: z.string(),\n provider_username: z.string(),\n provider_email: z.email(),\n provider_avatar_url: z.url(),\n connected_at: z.iso.datetime(),\n last_login_at: z.iso.datetime(),\n})\n\n/**\n * Infer TypeScript type from Zod schema\n */\nexport type OAuthConnection = z.infer<typeof OAuthConnectionSchema>","/**\n * Zod schema for OAuthDisconnectRequestRequest\n *\n * This schema provides runtime validation and type inference.\n * * Request to disconnect OAuth provider.\n * */\nimport { z } from 'zod'\nimport * as Enums from '../../enums'\n\n/**\n * Request to disconnect OAuth provider.\n */\nexport const OAuthDisconnectRequestRequestSchema = z.object({\n provider: z.nativeEnum(Enums.OAuthDisconnectRequestRequestProvider),\n})\n\n/**\n * Infer TypeScript type from Zod schema\n */\nexport type OAuthDisconnectRequestRequest = z.infer<typeof OAuthDisconnectRequestRequestSchema>","/**\n * Zod schema for OAuthError\n *\n * This schema provides runtime validation and type inference.\n * * Error response for OAuth endpoints.\n * */\nimport { z } from 'zod'\n\n/**\n * Error response for OAuth endpoints.\n */\nexport const OAuthErrorSchema = z.object({\n error: z.string(),\n error_description: z.string().optional(),\n})\n\n/**\n * Infer TypeScript type from Zod schema\n */\nexport type OAuthError = z.infer<typeof OAuthErrorSchema>","/**\n * Zod schema for OAuthProvidersResponse\n *\n * This schema provides runtime validation and type inference.\n * * Response with available OAuth providers.\n * */\nimport { z } from 'zod'\n\n/**\n * Response with available OAuth providers.\n */\nexport const OAuthProvidersResponseSchema = z.object({\n providers: z.array(z.record(z.string(), z.record(z.string(), z.any()))),\n})\n\n/**\n * Infer TypeScript type from Zod schema\n */\nexport type OAuthProvidersResponse = z.infer<typeof OAuthProvidersResponseSchema>","/**\n * Zod schema for OAuthTokenResponse\n *\n * This schema provides runtime validation and type inference.\n * * Response with JWT tokens after OAuth authentication.\n * */\nimport { z } from 'zod'\n\n/**\n * Response with JWT tokens after OAuth authentication.\n */\nexport const OAuthTokenResponseSchema = z.object({\n access: z.string(),\n refresh: z.string(),\n user: z.record(z.string(), z.record(z.string(), z.any())),\n is_new_user: z.boolean(),\n is_new_connection: z.boolean(),\n})\n\n/**\n * Infer TypeScript type from Zod schema\n */\nexport type OAuthTokenResponse = z.infer<typeof OAuthTokenResponseSchema>","/**\n * Zod schema for OTPErrorResponse\n *\n * This schema provides runtime validation and type inference.\n * * Error response for OTP operations.\n * */\nimport { z } from 'zod'\n\n/**\n * Error response for OTP operations.\n */\nexport const OTPErrorResponseSchema = z.object({\n error: z.string(),\n})\n\n/**\n * Infer TypeScript type from Zod schema\n */\nexport type OTPErrorResponse = z.infer<typeof OTPErrorResponseSchema>","/**\n * Zod schema for OTPRequestRequest\n *\n * This schema provides runtime validation and type inference.\n * * Serializer for OTP request.\n * */\nimport { z } from 'zod'\nimport * as Enums from '../../enums'\n\n/**\n * Serializer for OTP request.\n */\nexport const OTPRequestRequestSchema = z.object({\n identifier: z.string().min(1),\n channel: z.nativeEnum(Enums.OTPRequestRequestChannel).optional(),\n source_url: z.url().optional(),\n})\n\n/**\n * Infer TypeScript type from Zod schema\n */\nexport type OTPRequestRequest = z.infer<typeof OTPRequestRequestSchema>","/**\n * Zod schema for OTPRequestResponse\n *\n * This schema provides runtime validation and type inference.\n * * OTP request response.\n * */\nimport { z } from 'zod'\n\n/**\n * OTP request response.\n */\nexport const OTPRequestResponseSchema = z.object({\n message: z.string(),\n})\n\n/**\n * Infer TypeScript type from Zod schema\n */\nexport type OTPRequestResponse = z.infer<typeof OTPRequestResponseSchema>","/**\n * Zod schema for OTPVerifyRequest\n *\n * This schema provides runtime validation and type inference.\n * * Serializer for OTP verification.\n * */\nimport { z } from 'zod'\nimport * as Enums from '../../enums'\n\n/**\n * Serializer for OTP verification.\n */\nexport const OTPVerifyRequestSchema = z.object({\n identifier: z.string().min(1),\n otp: z.string().min(6).max(6),\n channel: z.nativeEnum(Enums.OTPVerifyRequestChannel).optional(),\n source_url: z.url().optional(),\n})\n\n/**\n * Infer TypeScript type from Zod schema\n */\nexport type OTPVerifyRequest = z.infer<typeof OTPVerifyRequestSchema>","/**\n * Zod schema for OTPVerifyResponse\n *\n * This schema provides runtime validation and type inference.\n * * OTP verification response.\n * */\nimport { z } from 'zod'\nimport { UserSchema } from './User.schema'\n\n/**\n * OTP verification response.\n */\nexport const OTPVerifyResponseSchema = z.object({\n refresh: z.string(),\n access: z.string(),\n user: UserSchema,\n})\n\n/**\n * Infer TypeScript type from Zod schema\n */\nexport type OTPVerifyResponse = z.infer<typeof OTPVerifyResponseSchema>","/**\n * Zod schema for User\n *\n * This schema provides runtime validation and type inference.\n * * Serializer for user details.\n * */\nimport { z } from 'zod'\nimport { CentrifugoTokenSchema } from './CentrifugoToken.schema'\n\n/**\n * Serializer for user details.\n */\nexport const UserSchema = z.object({\n id: z.int(),\n email: z.email(),\n first_name: z.string().max(50).optional(),\n last_name: z.string().max(50).optional(),\n full_name: z.string(),\n initials: z.string(),\n display_username: z.string(),\n company: z.string().max(100).optional(),\n phone: z.string().max(20).optional(),\n position: z.string().max(100).optional(),\n avatar: z.url().nullable(),\n is_staff: z.boolean(),\n is_superuser: z.boolean(),\n date_joined: z.iso.datetime(),\n last_login: z.iso.datetime().nullable(),\n unanswered_messages_count: z.int(),\n centrifugo: CentrifugoTokenSchema.nullable(),\n})\n\n/**\n * Infer TypeScript type from Zod schema\n */\nexport type User = z.infer<typeof UserSchema>","/**\n * Zod schema for PatchedUserProfileUpdateRequest\n *\n * This schema provides runtime validation and type inference.\n * * Serializer for updating user profile.\n * */\nimport { z } from 'zod'\n\n/**\n * Serializer for updating user profile.\n */\nexport const PatchedUserProfileUpdateRequestSchema = z.object({\n first_name: z.string().max(50).optional(),\n last_name: z.string().max(50).optional(),\n company: z.string().max(100).optional(),\n phone: z.string().max(20).optional(),\n position: z.string().max(100).optional(),\n})\n\n/**\n * Infer TypeScript type from Zod schema\n */\nexport type PatchedUserProfileUpdateRequest = z.infer<typeof PatchedUserProfileUpdateRequestSchema>","/**\n * Zod schema for TokenRefreshRequest\n *\n * This schema provides runtime validation and type inference.\n * */\nimport { z } from 'zod'\n\nexport const TokenRefreshRequestSchema = z.object({\n refresh: z.string().min(1),\n})\n\n/**\n * Infer TypeScript type from Zod schema\n */\nexport type TokenRefreshRequest = z.infer<typeof TokenRefreshRequestSchema>","/**\n * Zod schema for UserProfileUpdateRequest\n *\n * This schema provides runtime validation and type inference.\n * * Serializer for updating user profile.\n * */\nimport { z } from 'zod'\n\n/**\n * Serializer for updating user profile.\n */\nexport const UserProfileUpdateRequestSchema = z.object({\n first_name: z.string().max(50).optional(),\n last_name: z.string().max(50).optional(),\n company: z.string().max(100).optional(),\n phone: z.string().max(20).optional(),\n position: z.string().max(100).optional(),\n})\n\n/**\n * Infer TypeScript type from Zod schema\n */\nexport type UserProfileUpdateRequest = z.infer<typeof UserProfileUpdateRequestSchema>","// Auto-generated by DjangoCFG - see CLAUDE.md\n/**\n * Typed fetchers for Accounts\n *\n * Universal functions that work in any environment:\n * - Next.js (App Router / Pages Router / Server Components)\n * - React Native\n * - Node.js backend\n *\n * These fetchers use Zod schemas for runtime validation.\n *\n * Usage:\n * ```typescript\n * // Configure API once (in your app entry point)\n * import { configureAPI } from '../../api-instance'\n * configureAPI({ baseUrl: 'https://api.example.com' })\n *\n * // Then use fetchers anywhere\n * const users = await getUsers({ page: 1 })\n *\n * // With SWR\n * const { data } = useSWR(['users', params], () => getUsers(params))\n *\n * // With React Query\n * const { data } = useQuery(['users', params], () => getUsers(params))\n *\n * // In Server Component or SSR (pass custom client)\n * import { API } from '../../index'\n * const api = new API('https://api.example.com')\n * const users = await getUsers({ page: 1 }, api)\n * ```\n */\nimport { consola } from 'consola'\nimport { OTPRequestRequestSchema, type OTPRequestRequest } from '../schemas/OTPRequestRequest.schema'\nimport { OTPRequestResponseSchema, type OTPRequestResponse } from '../schemas/OTPRequestResponse.schema'\nimport { OTPVerifyRequestSchema, type OTPVerifyRequest } from '../schemas/OTPVerifyRequest.schema'\nimport { OTPVerifyResponseSchema, type OTPVerifyResponse } from '../schemas/OTPVerifyResponse.schema'\nimport { getAPIInstance } from '../../api-instance'\n\n/**\n * API operation\n *\n * @method POST\n * @path /cfg/accounts/otp/request/\n */\nexport async function createAccountsOtpRequestCreate( data: OTPRequestRequest, client?: any\n): Promise<OTPRequestResponse> {\n const api = client || getAPIInstance()\n const response = await api.accounts.otpRequestCreate(data)\n try {\n return OTPRequestResponseSchema.parse(response)\n } catch (error) {\n // Zod validation error - log detailed information\n consola.error('❌ Zod Validation Failed');\n consola.box(`createAccountsOtpRequestCreate\\nPath: /cfg/accounts/otp/request/\\nMethod: POST`);\n\n if (error instanceof Error && 'issues' in error && Array.isArray((error as any).issues)) {\n consola.error('Validation Issues:');\n (error as any).issues.forEach((issue: any, index: number) => {\n consola.error(` ${index + 1}. ${issue.path.join('.') || 'root'}`);\n consola.error(` ├─ Message: ${issue.message}`);\n if (issue.expected) consola.error(` ├─ Expected: ${issue.expected}`);\n if (issue.received) consola.error(` └─ Received: ${issue.received}`);\n });\n }\n\n consola.error('Response data:', response);\n\n // Dispatch browser CustomEvent (only if window is defined)\n if (typeof window !== 'undefined' && error instanceof Error && 'issues' in error) {\n try {\n const event = new CustomEvent('zod-validation-error', {\n detail: {\n operation: 'createAccountsOtpRequestCreate',\n path: '/cfg/accounts/otp/request/',\n method: 'POST',\n error: error,\n response: response,\n timestamp: new Date(),\n },\n bubbles: true,\n cancelable: false,\n });\n window.dispatchEvent(event);\n } catch (eventError) {\n // Silently fail - event dispatch should never crash the app\n consola.warn('Failed to dispatch validation error event:', eventError);\n }\n }\n\n // Re-throw the error\n throw error;\n }\n}\n\n\n/**\n * API operation\n *\n * @method POST\n * @path /cfg/accounts/otp/verify/\n */\nexport async function createAccountsOtpVerifyCreate( data: OTPVerifyRequest, client?: any\n): Promise<OTPVerifyResponse> {\n const api = client || getAPIInstance()\n const response = await api.accounts.otpVerifyCreate(data)\n try {\n return OTPVerifyResponseSchema.parse(response)\n } catch (error) {\n // Zod validation error - log detailed information\n consola.error('❌ Zod Validation Failed');\n consola.box(`createAccountsOtpVerifyCreate\\nPath: /cfg/accounts/otp/verify/\\nMethod: POST`);\n\n if (error instanceof Error && 'issues' in error && Array.isArray((error as any).issues)) {\n consola.error('Validation Issues:');\n (error as any).issues.forEach((issue: any, index: number) => {\n consola.error(` ${index + 1}. ${issue.path.join('.') || 'root'}`);\n consola.error(` ├─ Message: ${issue.message}`);\n if (issue.expected) consola.error(` ├─ Expected: ${issue.expected}`);\n if (issue.received) consola.error(` └─ Received: ${issue.received}`);\n });\n }\n\n consola.error('Response data:', response);\n\n // Dispatch browser CustomEvent (only if window is defined)\n if (typeof window !== 'undefined' && error instanceof Error && 'issues' in error) {\n try {\n const event = new CustomEvent('zod-validation-error', {\n detail: {\n operation: 'createAccountsOtpVerifyCreate',\n path: '/cfg/accounts/otp/verify/',\n method: 'POST',\n error: error,\n response: response,\n timestamp: new Date(),\n },\n bubbles: true,\n cancelable: false,\n });\n window.dispatchEvent(event);\n } catch (eventError) {\n // Silently fail - event dispatch should never crash the app\n consola.warn('Failed to dispatch validation error event:', eventError);\n }\n }\n\n // Re-throw the error\n throw error;\n }\n}\n\n\n","// Auto-generated by DjangoCFG - see CLAUDE.md\n/**\n * Typed fetchers for Oauth\n *\n * Universal functions that work in any environment:\n * - Next.js (App Router / Pages Router / Server Components)\n * - React Native\n * - Node.js backend\n *\n * These fetchers use Zod schemas for runtime validation.\n *\n * Usage:\n * ```typescript\n * // Configure API once (in your app entry point)\n * import { configureAPI } from '../../api-instance'\n * configureAPI({ baseUrl: 'https://api.example.com' })\n *\n * // Then use fetchers anywhere\n * const users = await getUsers({ page: 1 })\n *\n * // With SWR\n * const { data } = useSWR(['users', params], () => getUsers(params))\n *\n * // With React Query\n * const { data } = useQuery(['users', params], () => getUsers(params))\n *\n * // In Server Component or SSR (pass custom client)\n * import { API } from '../../index'\n * const api = new API('https://api.example.com')\n * const users = await getUsers({ page: 1 }, api)\n * ```\n */\nimport { consola } from 'consola'\nimport { OAuthAuthorizeRequestRequestSchema, type OAuthAuthorizeRequestRequest } from '../schemas/OAuthAuthorizeRequestRequest.schema'\nimport { OAuthAuthorizeResponseSchema, type OAuthAuthorizeResponse } from '../schemas/OAuthAuthorizeResponse.schema'\nimport { OAuthCallbackRequestRequestSchema, type OAuthCallbackRequestRequest } from '../schemas/OAuthCallbackRequestRequest.schema'\nimport { OAuthDisconnectRequestRequestSchema, type OAuthDisconnectRequestRequest } from '../schemas/OAuthDisconnectRequestRequest.schema'\nimport { OAuthProvidersResponseSchema, type OAuthProvidersResponse } from '../schemas/OAuthProvidersResponse.schema'\nimport { OAuthTokenResponseSchema, type OAuthTokenResponse } from '../schemas/OAuthTokenResponse.schema'\nimport { getAPIInstance } from '../../api-instance'\n\n/**\n * List OAuth connections\n *\n * @method GET\n * @path /cfg/accounts/oauth/connections/\n */\nexport async function getAccountsOauthConnectionsList( client?: any\n): Promise<any> {\n const api = client || getAPIInstance()\n const response = await api.oauth.accountsOauthConnectionsList()\n return response\n}\n\n\n/**\n * Disconnect OAuth provider\n *\n * @method POST\n * @path /cfg/accounts/oauth/disconnect/\n */\nexport async function createAccountsOauthDisconnectCreate( data: OAuthDisconnectRequestRequest, client?: any\n): Promise<any> {\n const api = client || getAPIInstance()\n const response = await api.oauth.accountsOauthDisconnectCreate(data)\n return response\n}\n\n\n/**\n * Start GitHub OAuth\n *\n * @method POST\n * @path /cfg/accounts/oauth/github/authorize/\n */\nexport async function createAccountsOauthGithubAuthorizeCreate( data: OAuthAuthorizeRequestRequest, client?: any\n): Promise<OAuthAuthorizeResponse> {\n const api = client || getAPIInstance()\n const response = await api.oauth.accountsOauthGithubAuthorizeCreate(data)\n try {\n return OAuthAuthorizeResponseSchema.parse(response)\n } catch (error) {\n // Zod validation error - log detailed information\n consola.error('❌ Zod Validation Failed');\n consola.box(`createAccountsOauthGithubAuthorizeCreate\\nPath: /cfg/accounts/oauth/github/authorize/\\nMethod: POST`);\n\n if (error instanceof Error && 'issues' in error && Array.isArray((error as any).issues)) {\n consola.error('Validation Issues:');\n (error as any).issues.forEach((issue: any, index: number) => {\n consola.error(` ${index + 1}. ${issue.path.join('.') || 'root'}`);\n consola.error(` ├─ Message: ${issue.message}`);\n if (issue.expected) consola.error(` ├─ Expected: ${issue.expected}`);\n if (issue.received) consola.error(` └─ Received: ${issue.received}`);\n });\n }\n\n consola.error('Response data:', response);\n\n // Dispatch browser CustomEvent (only if window is defined)\n if (typeof window !== 'undefined' && error instanceof Error && 'issues' in error) {\n try {\n const event = new CustomEvent('zod-validation-error', {\n detail: {\n operation: 'createAccountsOauthGithubAuthorizeCreate',\n path: '/cfg/accounts/oauth/github/authorize/',\n method: 'POST',\n error: error,\n response: response,\n timestamp: new Date(),\n },\n bubbles: true,\n cancelable: false,\n });\n window.dispatchEvent(event);\n } catch (eventError) {\n // Silently fail - event dispatch should never crash the app\n consola.warn('Failed to dispatch validation error event:', eventError);\n }\n }\n\n // Re-throw the error\n throw error;\n }\n}\n\n\n/**\n * Complete GitHub OAuth\n *\n * @method POST\n * @path /cfg/accounts/oauth/github/callback/\n */\nexport async function createAccountsOauthGithubCallbackCreate( data: OAuthCallbackRequestRequest, client?: any\n): Promise<OAuthTokenResponse> {\n const api = client || getAPIInstance()\n const response = await api.oauth.accountsOauthGithubCallbackCreate(data)\n try {\n return OAuthTokenResponseSchema.parse(response)\n } catch (error) {\n // Zod validation error - log detailed information\n consola.error('❌ Zod Validation Failed');\n consola.box(`createAccountsOauthGithubCallbackCreate\\nPath: /cfg/accounts/oauth/github/callback/\\nMethod: POST`);\n\n if (error instanceof Error && 'issues' in error && Array.isArray((error as any).issues)) {\n consola.error('Validation Issues:');\n (error as any).issues.forEach((issue: any, index: number) => {\n consola.error(` ${index + 1}. ${issue.path.join('.') || 'root'}`);\n consola.error(` ├─ Message: ${issue.message}`);\n if (issue.expected) consola.error(` ├─ Expected: ${issue.expected}`);\n if (issue.received) consola.error(` └─ Received: ${issue.received}`);\n });\n }\n\n consola.error('Response data:', response);\n\n // Dispatch browser CustomEvent (only if window is defined)\n if (typeof window !== 'undefined' && error instanceof Error && 'issues' in error) {\n try {\n const event = new CustomEvent('zod-validation-error', {\n detail: {\n operation: 'createAccountsOauthGithubCallbackCreate',\n path: '/cfg/accounts/oauth/github/callback/',\n method: 'POST',\n error: error,\n response: response,\n timestamp: new Date(),\n },\n bubbles: true,\n cancelable: false,\n });\n window.dispatchEvent(event);\n } catch (eventError) {\n // Silently fail - event dispatch should never crash the app\n consola.warn('Failed to dispatch validation error event:', eventError);\n }\n }\n\n // Re-throw the error\n throw error;\n }\n}\n\n\n/**\n * List OAuth providers\n *\n * @method GET\n * @path /cfg/accounts/oauth/providers/\n */\nexport async function getAccountsOauthProvidersRetrieve( client?: any\n): Promise<OAuthProvidersResponse> {\n const api = client || getAPIInstance()\n const response = await api.oauth.accountsOauthProvidersRetrieve()\n try {\n return OAuthProvidersResponseSchema.parse(response)\n } catch (error) {\n // Zod validation error - log detailed information\n consola.error('❌ Zod Validation Failed');\n consola.box(`getAccountsOauthProvidersRetrieve\\nPath: /cfg/accounts/oauth/providers/\\nMethod: GET`);\n\n if (error instanceof Error && 'issues' in error && Array.isArray((error as any).issues)) {\n consola.error('Validation Issues:');\n (error as any).issues.forEach((issue: any, index: number) => {\n consola.error(` ${index + 1}. ${issue.path.join('.') || 'root'}`);\n consola.error(` ├─ Message: ${issue.message}`);\n if (issue.expected) consola.error(` ├─ Expected: ${issue.expected}`);\n if (issue.received) consola.error(` └─ Received: ${issue.received}`);\n });\n }\n\n consola.error('Response data:', response);\n\n // Dispatch browser CustomEvent (only if window is defined)\n if (typeof window !== 'undefined' && error instanceof Error && 'issues' in error) {\n try {\n const event = new CustomEvent('zod-validation-error', {\n detail: {\n operation: 'getAccountsOauthProvidersRetrieve',\n path: '/cfg/accounts/oauth/providers/',\n method: 'GET',\n error: error,\n response: response,\n timestamp: new Date(),\n },\n bubbles: true,\n cancelable: false,\n });\n window.dispatchEvent(event);\n } catch (eventError) {\n // Silently fail - event dispatch should never crash the app\n consola.warn('Failed to dispatch validation error event:', eventError);\n }\n }\n\n // Re-throw the error\n throw error;\n }\n}\n\n\n","// Auto-generated by DjangoCFG - see CLAUDE.md\n/**\n * Typed fetchers for User Profile\n *\n * Universal functions that work in any environment:\n * - Next.js (App Router / Pages Router / Server Components)\n * - React Native\n * - Node.js backend\n *\n * These fetchers use Zod schemas for runtime validation.\n *\n * Usage:\n * ```typescript\n * // Configure API once (in your app entry point)\n * import { configureAPI } from '../../api-instance'\n * configureAPI({ baseUrl: 'https://api.example.com' })\n *\n * // Then use fetchers anywhere\n * const users = await getUsers({ page: 1 })\n *\n * // With SWR\n * const { data } = useSWR(['users', params], () => getUsers(params))\n *\n * // With React Query\n * const { data } = useQuery(['users', params], () => getUsers(params))\n *\n * // In Server Component or SSR (pass custom client)\n * import { API } from '../../index'\n * const api = new API('https://api.example.com')\n * const users = await getUsers({ page: 1 }, api)\n * ```\n */\nimport { consola } from 'consola'\nimport { PatchedUserProfileUpdateRequestSchema, type PatchedUserProfileUpdateRequest } from '../schemas/PatchedUserProfileUpdateRequest.schema'\nimport { UserSchema, type User } from '../schemas/User.schema'\nimport { UserProfileUpdateRequestSchema, type UserProfileUpdateRequest } from '../schemas/UserProfileUpdateRequest.schema'\nimport { getAPIInstance } from '../../api-instance'\n\n/**\n * Get current user profile\n *\n * @method GET\n * @path /cfg/accounts/profile/\n */\nexport async function getAccountsProfileRetrieve( client?: any\n): Promise<User> {\n const api = client || getAPIInstance()\n const response = await api.user_profile.accountsProfileRetrieve()\n try {\n return UserSchema.parse(response)\n } catch (error) {\n // Zod validation error - log detailed information\n consola.error('❌ Zod Validation Failed');\n consola.box(`getAccountsProfileRetrieve\\nPath: /cfg/accounts/profile/\\nMethod: GET`);\n\n if (error instanceof Error && 'issues' in error && Array.isArray((error as any).issues)) {\n consola.error('Validation Issues:');\n (error as any).issues.forEach((issue: any, index: number) => {\n consola.error(` ${index + 1}. ${issue.path.join('.') || 'root'}`);\n consola.error(` ├─ Message: ${issue.message}`);\n if (issue.expected) consola.error(` ├─ Expected: ${issue.expected}`);\n if (issue.received) consola.error(` └─ Received: ${issue.received}`);\n });\n }\n\n consola.error('Response data:', response);\n\n // Dispatch browser CustomEvent (only if window is defined)\n if (typeof window !== 'undefined' && error instanceof Error && 'issues' in error) {\n try {\n const event = new CustomEvent('zod-validation-error', {\n detail: {\n operation: 'getAccountsProfileRetrieve',\n path: '/cfg/accounts/profile/',\n method: 'GET',\n error: error,\n response: response,\n timestamp: new Date(),\n },\n bubbles: true,\n cancelable: false,\n });\n window.dispatchEvent(event);\n } catch (eventError) {\n // Silently fail - event dispatch should never crash the app\n consola.warn('Failed to dispatch validation error event:', eventError);\n }\n }\n\n // Re-throw the error\n throw error;\n }\n}\n\n\n/**\n * Upload user avatar\n *\n * @method POST\n * @path /cfg/accounts/profile/avatar/\n */\nexport async function createAccountsProfileAvatarCreate( data: any, client?: any\n): Promise<User> {\n const api = client || getAPIInstance()\n const response = await api.user_profile.accountsProfileAvatarCreate(data)\n try {\n return UserSchema.parse(response)\n } catch (error) {\n // Zod validation error - log detailed information\n consola.error('❌ Zod Validation Failed');\n consola.box(`createAccountsProfileAvatarCreate\\nPath: /cfg/accounts/profile/avatar/\\nMethod: POST`);\n\n if (error instanceof Error && 'issues' in error && Array.isArray((error as any).issues)) {\n consola.error('Validation Issues:');\n (error as any).issues.forEach((issue: any, index: number) => {\n consola.error(` ${index + 1}. ${issue.path.join('.') || 'root'}`);\n consola.error(` ├─ Message: ${issue.message}`);\n if (issue.expected) consola.error(` ├─ Expected: ${issue.expected}`);\n if (issue.received) consola.error(` └─ Received: ${issue.received}`);\n });\n }\n\n consola.error('Response data:', response);\n\n // Dispatch browser CustomEvent (only if window is defined)\n if (typeof window !== 'undefined' && error instanceof Error && 'issues' in error) {\n try {\n const event = new CustomEvent('zod-validation-error', {\n detail: {\n operation: 'createAccountsProfileAvatarCreate',\n path: '/cfg/accounts/profile/avatar/',\n method: 'POST',\n error: error,\n response: response,\n timestamp: new Date(),\n },\n bubbles: true,\n cancelable: false,\n });\n window.dispatchEvent(event);\n } catch (eventError) {\n // Silently fail - event dispatch should never crash the app\n consola.warn('Failed to dispatch validation error event:', eventError);\n }\n }\n\n // Re-throw the error\n throw error;\n }\n}\n\n\n/**\n * Partial update user profile\n *\n * @method PUT\n * @path /cfg/accounts/profile/partial/\n */\nexport async function partialUpdateAccountsProfilePartialUpdate( data: UserProfileUpdateRequest, client?: any\n): Promise<User> {\n const api = client || getAPIInstance()\n const response = await api.user_profile.accountsProfilePartialUpdate(data)\n try {\n return UserSchema.parse(response)\n } catch (error) {\n // Zod validation error - log detailed information\n consola.error('❌ Zod Validation Failed');\n consola.box(`partialUpdateAccountsProfilePartialUpdate\\nPath: /cfg/accounts/profile/partial/\\nMethod: PUT`);\n\n if (error instanceof Error && 'issues' in error && Array.isArray((error as any).issues)) {\n consola.error('Validation Issues:');\n (error as any).issues.forEach((issue: any, index: number) => {\n consola.error(` ${index + 1}. ${issue.path.join('.') || 'root'}`);\n consola.error(` ├─ Message: ${issue.message}`);\n if (issue.expected) consola.error(` ├─ Expected: ${issue.expected}`);\n if (issue.received) consola.error(` └─ Received: ${issue.received}`);\n });\n }\n\n consola.error('Response data:', response);\n\n // Dispatch browser CustomEvent (only if window is defined)\n if (typeof window !== 'undefined' && error instanceof Error && 'issues' in error) {\n try {\n const event = new CustomEvent('zod-validation-error', {\n detail: {\n operation: 'partialUpdateAccountsProfilePartialUpdate',\n path: '/cfg/accounts/profile/partial/',\n method: 'PUT',\n error: error,\n response: response,\n timestamp: new Date(),\n },\n bubbles: true,\n cancelable: false,\n });\n window.dispatchEvent(event);\n } catch (eventError) {\n // Silently fail - event dispatch should never crash the app\n consola.warn('Failed to dispatch validation error event:', eventError);\n }\n }\n\n // Re-throw the error\n throw error;\n }\n}\n\n\n/**\n * Partial update user profile\n *\n * @method PATCH\n * @path /cfg/accounts/profile/partial/\n */\nexport async function partialUpdateAccountsProfilePartialPartialUpdate( data?: PatchedUserProfileUpdateRequest, client?: any\n): Promise<User> {\n const api = client || getAPIInstance()\n const response = await api.user_profile.accountsProfilePartialPartialUpdate(data)\n try {\n return UserSchema.parse(response)\n } catch (error) {\n // Zod validation error - log detailed information\n consola.error('❌ Zod Validation Failed');\n consola.box(`partialUpdateAccountsProfilePartialPartialUpdate\\nPath: /cfg/accounts/profile/partial/\\nMethod: PATCH`);\n\n if (error instanceof Error && 'issues' in error && Array.isArray((error as any).issues)) {\n consola.error('Validation Issues:');\n (error as any).issues.forEach((issue: any, index: number) => {\n consola.error(` ${index + 1}. ${issue.path.join('.') || 'root'}`);\n consola.error(` ├─ Message: ${issue.message}`);\n if (issue.expected) consola.error(` ├─ Expected: ${issue.expected}`);\n if (issue.received) consola.error(` └─ Received: ${issue.received}`);\n });\n }\n\n consola.error('Response data:', response);\n\n // Dispatch browser CustomEvent (only if window is defined)\n if (typeof window !== 'undefined' && error instanceof Error && 'issues' in error) {\n try {\n const event = new CustomEvent('zod-validation-error', {\n detail: {\n operation: 'partialUpdateAccountsProfilePartialPartialUpdate',\n path: '/cfg/accounts/profile/partial/',\n method: 'PATCH',\n error: error,\n response: response,\n timestamp: new Date(),\n },\n bubbles: true,\n cancelable: false,\n });\n window.dispatchEvent(event);\n } catch (eventError) {\n // Silently fail - event dispatch should never crash the app\n consola.warn('Failed to dispatch validation error event:', eventError);\n }\n }\n\n // Re-throw the error\n throw error;\n }\n}\n\n\n/**\n * Update user profile\n *\n * @method PUT\n * @path /cfg/accounts/profile/update/\n */\nexport async function updateAccountsProfileUpdateUpdate( data: UserProfileUpdateRequest, client?: any\n): Promise<User> {\n const api = client || getAPIInstance()\n const response = await api.user_profile.accountsProfileUpdateUpdate(data)\n try {\n return UserSchema.parse(response)\n } catch (error) {\n // Zod validation error - log detailed information\n consola.error('❌ Zod Validation Failed');\n consola.box(`updateAccountsProfileUpdateUpdate\\nPath: /cfg/accounts/profile/update/\\nMethod: PUT`);\n\n if (error instanceof Error && 'issues' in error && Array.isArray((error as any).issues)) {\n consola.error('Validation Issues:');\n (error as any).issues.forEach((issue: any, index: number) => {\n consola.error(` ${index + 1}. ${issue.path.join('.') || 'root'}`);\n consola.error(` ├─ Message: ${issue.message}`);\n if (issue.expected) consola.error(` ├─ Expected: ${issue.expected}`);\n if (issue.received) consola.error(` └─ Received: ${issue.received}`);\n });\n }\n\n consola.error('Response data:', response);\n\n // Dispatch browser CustomEvent (only if window is defined)\n if (typeof window !== 'undefined' && error instanceof Error && 'issues' in error) {\n try {\n const event = new CustomEvent('zod-validation-error', {\n detail: {\n operation: 'updateAccountsProfileUpdateUpdate',\n path: '/cfg/accounts/profile/update/',\n method: 'PUT',\n error: error,\n response: response,\n timestamp: new Date(),\n },\n bubbles: true,\n cancelable: false,\n });\n window.dispatchEvent(event);\n } catch (eventError) {\n // Silently fail - event dispatch should never crash the app\n consola.warn('Failed to dispatch validation error event:', eventError);\n }\n }\n\n // Re-throw the error\n throw error;\n }\n}\n\n\n/**\n * Update user profile\n *\n * @method PATCH\n * @path /cfg/accounts/profile/update/\n */\nexport async function partialUpdateAccountsProfileUpdatePartialUpdate( data?: PatchedUserProfileUpdateRequest, client?: any\n): Promise<User> {\n const api = client || getAPIInstance()\n const response = await api.user_profile.accountsProfileUpdatePartialUpdate(data)\n try {\n return UserSchema.parse(response)\n } catch (error) {\n // Zod validation error - log detailed information\n consola.error('❌ Zod Validation Failed');\n consola.box(`partialUpdateAccountsProfileUpdatePartialUpdate\\nPath: /cfg/accounts/profile/update/\\nMethod: PATCH`);\n\n if (error instanceof Error && 'issues' in error && Array.isArray((error as any).issues)) {\n consola.error('Validation Issues:');\n (error as any).issues.forEach((issue: any, index: number) => {\n consola.error(` ${index + 1}. ${issue.path.join('.') || 'root'}`);\n consola.error(` ├─ Message: ${issue.message}`);\n if (issue.expected) consola.error(` ├─ Expected: ${issue.expected}`);\n if (issue.received) consola.error(` └─ Received: ${issue.received}`);\n });\n }\n\n consola.error('Response data:', response);\n\n // Dispatch browser CustomEvent (only if window is defined)\n if (typeof window !== 'undefined' && error instanceof Error && 'issues' in error) {\n try {\n const event = new CustomEvent('zod-validation-error', {\n detail: {\n operation: 'partialUpdateAccountsProfileUpdatePartialUpdate',\n path: '/cfg/accounts/profile/update/',\n method: 'PATCH',\n error: error,\n response: response,\n timestamp: new Date(),\n },\n bubbles: true,\n cancelable: false,\n });\n window.dispatchEvent(event);\n } catch (eventError) {\n // Silently fail - event dispatch should never crash the app\n consola.warn('Failed to dispatch validation error event:', eventError);\n }\n }\n\n // Re-throw the error\n throw error;\n }\n}\n\n\n","// Auto-generated by DjangoCFG - see CLAUDE.md\n/**\n * Global API Instance - Singleton configuration\n *\n * This module provides a global API instance that can be configured once\n * and used throughout your application.\n *\n * Usage:\n * ```typescript\n * // Configure once (e.g., in your app entry point)\n * import { configureAPI } from './api-instance'\n *\n * configureAPI({\n * baseUrl: 'https://api.example.com',\n * token: 'your-jwt-token'\n * })\n *\n * // Then use fetchers and hooks anywhere without configuration\n * import { getUsers } from './fetchers'\n * const users = await getUsers({ page: 1 })\n * ```\n *\n * For SSR or multiple instances:\n * ```typescript\n * import { API } from './index'\n * import { getUsers } from './fetchers'\n *\n * const api = new API('https://api.example.com')\n * const users = await getUsers({ page: 1 }, api)\n * ```\n */\n\nimport { API, type APIOptions } from './index'\n\nlet globalAPI: API | null = null\n\n/**\n * Get the global API instance\n * @throws Error if API is not configured\n */\nexport function getAPIInstance(): API {\n if (!globalAPI) {\n throw new Error(\n 'API not configured. Call configureAPI() with your base URL before using fetchers or hooks.\\n\\n' +\n 'Example:\\n' +\n ' import { configureAPI } from \"./api-instance\"\\n' +\n ' configureAPI({ baseUrl: \"https://api.example.com\" })'\n )\n }\n return globalAPI\n}\n\n/**\n * Check if API is configured\n */\nexport function isAPIConfigured(): boolean {\n return globalAPI !== null\n}\n\n/**\n * Configure the global API instance\n *\n * @param baseUrl - Base URL for the API\n * @param options - Optional configuration (storage, retry, logger)\n *\n * @example\n * ```typescript\n * configureAPI({\n * baseUrl: 'https://api.example.com',\n * token: 'jwt-token',\n * options: {\n * retryConfig: { maxRetries: 3 },\n * loggerConfig: { enabled: true }\n * }\n * })\n * ```\n */\nexport function configureAPI(config: {\n baseUrl: string\n token?: string\n refreshToken?: string\n options?: APIOptions\n}): API {\n globalAPI = new API(config.baseUrl, config.options)\n\n if (config.token) {\n globalAPI.setToken(config.token, config.refreshToken)\n }\n\n return globalAPI\n}\n\n/**\n * Reconfigure the global API instance with new settings\n * Useful for updating tokens or base URL\n */\nexport function reconfigureAPI(updates: {\n baseUrl?: string\n token?: string\n refreshToken?: string\n}): API {\n const instance = getAPIInstance()\n\n if (updates.baseUrl) {\n instance.setBaseUrl(updates.baseUrl)\n }\n\n if (updates.token) {\n instance.setToken(updates.token, updates.refreshToken)\n }\n\n return instance\n}\n\n/**\n * Clear tokens from the global API instance\n */\nexport function clearAPITokens(): void {\n const instance = getAPIInstance()\n instance.clearTokens()\n}\n\n/**\n * Reset the global API instance\n * Useful for testing or logout scenarios\n */\nexport function resetAPI(): void {\n if (globalAPI) {\n globalAPI.clearTokens()\n }\n globalAPI = null\n}","// Auto-generated by DjangoCFG - see CLAUDE.md\n'use client';\n\n/**\n * SWR Hooks for Oauth\n *\n * React hooks powered by SWR for data fetching with automatic caching,\n * revalidation, and optimistic updates.\n *\n * Usage:\n * ```typescript\n * // Query hooks (GET)\n * const { data, error, isLoading } = useUsers({ page: 1 })\n *\n * // Mutation hooks (POST/PUT/PATCH/DELETE)\n * const createUser = useCreateUser()\n * await createUser({ name: 'John', email: 'john@example.com' })\n * ```\n */\nimport useSWR from 'swr'\nimport { useSWRConfig } from 'swr'\nimport * as Fetchers from '../fetchers/accounts__oauth'\nimport type { API } from '../../index'\nimport type { OAuthAuthorizeRequestRequest } from '../schemas/OAuthAuthorizeRequestRequest.schema'\nimport type { OAuthAuthorizeResponse } from '../schemas/OAuthAuthorizeResponse.schema'\nimport type { OAuthCallbackRequestRequest } from '../schemas/OAuthCallbackRequestRequest.schema'\nimport type { OAuthDisconnectRequestRequest } from '../schemas/OAuthDisconnectRequestRequest.schema'\nimport type { OAuthProvidersResponse } from '../schemas/OAuthProvidersResponse.schema'\nimport type { OAuthTokenResponse } from '../schemas/OAuthTokenResponse.schema'\n\n/**\n * List OAuth connections\n *\n * @method GET\n * @path /cfg/accounts/oauth/connections/\n */\nexport function useAccountsOauthConnectionsList(client?: API): ReturnType<typeof useSWR<any>> {\n return useSWR<any>(\n 'cfg-accounts-oauth-connections',\n () => Fetchers.getAccountsOauthConnectionsList(client)\n )\n}\n\n\n/**\n * Disconnect OAuth provider\n *\n * @method POST\n * @path /cfg/accounts/oauth/disconnect/\n */\nexport function useCreateAccountsOauthDisconnectCreate() {\n const { mutate } = useSWRConfig()\n\n return async (data: OAuthDisconnectRequestRequest, client?: API): Promise<any> => {\n const result = await Fetchers.createAccountsOauthDisconnectCreate(data, client)\n // Revalidate related queries\n mutate('cfg-accounts-oauth-disconnect')\n return result\n }\n}\n\n\n/**\n * Start GitHub OAuth\n *\n * @method POST\n * @path /cfg/accounts/oauth/github/authorize/\n */\nexport function useCreateAccountsOauthGithubAuthorizeCreate() {\n const { mutate } = useSWRConfig()\n\n return async (data: OAuthAuthorizeRequestRequest, client?: API): Promise<OAuthAuthorizeResponse> => {\n const result = await Fetchers.createAccountsOauthGithubAuthorizeCreate(data, client)\n // Revalidate related queries\n mutate('cfg-accounts-oauth-github-authorize')\n return result\n }\n}\n\n\n/**\n * Complete GitHub OAuth\n *\n * @method POST\n * @path /cfg/accounts/oauth/github/callback/\n */\nexport function useCreateAccountsOauthGithubCallbackCreate() {\n const { mutate } = useSWRConfig()\n\n return async (data: OAuthCallbackRequestRequest, client?: API): Promise<OAuthTokenResponse> => {\n const result = await Fetchers.createAccountsOauthGithubCallbackCreate(data, client)\n // Revalidate related queries\n mutate('cfg-accounts-oauth-github-callback')\n return result\n }\n}\n\n\n/**\n * List OAuth providers\n *\n * @method GET\n * @path /cfg/accounts/oauth/providers/\n */\nexport function useAccountsOauthProvidersRetrieve(client?: API): ReturnType<typeof useSWR<OAuthProvidersResponse>> {\n return useSWR<OAuthProvidersResponse>(\n 'cfg-accounts-oauth-provider',\n () => Fetchers.getAccountsOauthProvidersRetrieve(client)\n )\n}\n\n\n","// Auto-generated by DjangoCFG - see CLAUDE.md\n'use client';\n\n/**\n * SWR Hooks for User Profile\n *\n * React hooks powered by SWR for data fetching with automatic caching,\n * revalidation, and optimistic updates.\n *\n * Usage:\n * ```typescript\n * // Query hooks (GET)\n * const { data, error, isLoading } = useUsers({ page: 1 })\n *\n * // Mutation hooks (POST/PUT/PATCH/DELETE)\n * const createUser = useCreateUser()\n * await createUser({ name: 'John', email: 'john@example.com' })\n * ```\n */\nimport useSWR from 'swr'\nimport { useSWRConfig } from 'swr'\nimport * as Fetchers from '../fetchers/accounts__user_profile'\nimport type { API } from '../../index'\nimport type { PatchedUserProfileUpdateRequest } from '../schemas/PatchedUserProfileUpdateRequest.schema'\nimport type { User } from '../schemas/User.schema'\nimport type { UserProfileUpdateRequest } from '../schemas/UserProfileUpdateRequest.schema'\n\n/**\n * Get current user profile\n *\n * @method GET\n * @path /cfg/accounts/profile/\n */\nexport function useAccountsProfileRetrieve(client?: API): ReturnType<typeof useSWR<User>> {\n return useSWR<User>(\n 'cfg-accounts-profile',\n () => Fetchers.getAccountsProfileRetrieve(client)\n )\n}\n\n\n/**\n * Upload user avatar\n *\n * @method POST\n * @path /cfg/accounts/profile/avatar/\n */\nexport function useCreateAccountsProfileAvatarCreate() {\n const { mutate } = useSWRConfig()\n\n return async (data: any, client?: API): Promise<User> => {\n const result = await Fetchers.createAccountsProfileAvatarCreate(data, client)\n // Revalidate related queries\n mutate('cfg-accounts-profile-avatar')\n return result\n }\n}\n\n\n/**\n * Partial update user profile\n *\n * @method PUT\n * @path /cfg/accounts/profile/partial/\n */\nexport function usePartialUpdateAccountsProfilePartialUpdate() {\n const { mutate } = useSWRConfig()\n\n return async (data: UserProfileUpdateRequest, client?: API): Promise<User> => {\n const result = await Fetchers.partialUpdateAccountsProfilePartialUpdate(data, client)\n // Revalidate related queries\n mutate('cfg-accounts-profile-partial')\n return result\n }\n}\n\n\n/**\n * Partial update user profile\n *\n * @method PATCH\n * @path /cfg/accounts/profile/partial/\n */\nexport function usePartialUpdateAccountsProfilePartialPartialUpdate() {\n const { mutate } = useSWRConfig()\n\n return async (data?: PatchedUserProfileUpdateRequest, client?: API): Promise<User> => {\n const result = await Fetchers.partialUpdateAccountsProfilePartialPartialUpdate(data, client)\n // Revalidate related queries\n mutate('cfg-accounts-profile-partial-partial')\n return result\n }\n}\n\n\n/**\n * Update user profile\n *\n * @method PUT\n * @path /cfg/accounts/profile/update/\n */\nexport function useUpdateAccountsProfileUpdateUpdate() {\n const { mutate } = useSWRConfig()\n\n return async (data: UserProfileUpdateRequest, client?: API): Promise<User> => {\n const result = await Fetchers.updateAccountsProfileUpdateUpdate(data, client)\n // Revalidate related queries\n mutate('cfg-accounts-profile')\n return result\n }\n}\n\n\n/**\n * Update user profile\n *\n * @method PATCH\n * @path /cfg/accounts/profile/update/\n */\nexport function usePartialUpdateAccountsProfileUpdatePartialUpdate() {\n const { mutate } = useSWRConfig()\n\n return async (data?: PatchedUserProfileUpdateRequest, client?: API): Promise<User> => {\n const result = await Fetchers.partialUpdateAccountsProfileUpdatePartialUpdate(data, client)\n // Revalidate related queries\n mutate('cfg-accounts-profile-partial')\n return result\n }\n}\n\n\n","// Auto-generated by DjangoCFG - see CLAUDE.md\n'use client';\n\n/**\n * SWR Hooks for Accounts\n *\n * React hooks powered by SWR for data fetching with automatic caching,\n * revalidation, and optimistic updates.\n *\n * Usage:\n * ```typescript\n * // Query hooks (GET)\n * const { data, error, isLoading } = useUsers({ page: 1 })\n *\n * // Mutation hooks (POST/PUT/PATCH/DELETE)\n * const createUser = useCreateUser()\n * await createUser({ name: 'John', email: 'john@example.com' })\n * ```\n */\nimport { useSWRConfig } from 'swr'\nimport * as Fetchers from '../fetchers/accounts'\nimport type { API } from '../../index'\nimport type { OTPRequestRequest } from '../schemas/OTPRequestRequest.schema'\nimport type { OTPRequestResponse } from '../schemas/OTPRequestResponse.schema'\nimport type { OTPVerifyRequest } from '../schemas/OTPVerifyRequest.schema'\nimport type { OTPVerifyResponse } from '../schemas/OTPVerifyResponse.schema'\n\n/**\n * API operation\n *\n * @method POST\n * @path /cfg/accounts/otp/request/\n */\nexport function useCreateAccountsOtpRequestCreate() {\n const { mutate } = useSWRConfig()\n\n return async (data: OTPRequestRequest, client?: API): Promise<OTPRequestResponse> => {\n const result = await Fetchers.createAccountsOtpRequestCreate(data, client)\n // Revalidate related queries\n mutate('cfg-accounts-otp-request')\n return result\n }\n}\n\n\n/**\n * API operation\n *\n * @method POST\n * @path /cfg/accounts/otp/verify/\n */\nexport function useCreateAccountsOtpVerifyCreate() {\n const { mutate } = useSWRConfig()\n\n return async (data: OTPVerifyRequest, client?: API): Promise<OTPVerifyResponse> => {\n const result = await Fetchers.createAccountsOtpVerifyCreate(data, client)\n // Revalidate related queries\n mutate('cfg-accounts-otp-verify')\n return result\n }\n}\n\n\n"],"mappings":";;;;;AAmBA,SAAS,oBAAoB;;;ACa7B,SAAS,WAAAA,gBAAe;;;AC3BxB,SAAS,SAAS;AAEX,IAAM,qBAAqB,EAAE,OAAO;AAAA,EACzC,QAAQ,EAAE,OAAO;AAAA,EACjB,SAAS,EAAE,OAAO;AACpB,CAAC;;;ACDD,SAA+B,qBAAqB;AA0DpD,IAAM,iBAA+B;AAAA,EACnC,SAAS,QAAQ,IAAI,aAAa;AAAA,EAClC,aAAa;AAAA,EACb,cAAc;AAAA,EACd,WAAW;AAAA,EACX,WAAW;AAAA,EACX,YAAY;AACd;AAKA,IAAM,oBAAoB;AAAA,EACxB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF;AAKO,IAAM,YAAN,MAAgB;AAAA,EA1FvB,OA0FuB;AAAA;AAAA;AAAA,EAIrB,YAAY,SAAgC,CAAC,GAAG;AAC9C,SAAK,SAAS,EAAE,GAAG,gBAAgB,GAAG,OAAO;AAC7C,SAAK,UAAU,OAAO,WAAW,cAAc;AAAA,MAC7C,OAAO,KAAK,OAAO,UAAU,IAAI;AAAA,IACnC,CAAC;AAAA,EACH;AAAA;AAAA;AAAA;AAAA,EAKA,SAAe;AACb,SAAK,OAAO,UAAU;AAAA,EACxB;AAAA;AAAA;AAAA;AAAA,EAKA,UAAgB;AACd,SAAK,OAAO,UAAU;AAAA,EACxB;AAAA;AAAA;AAAA;AAAA,EAKA,UAAU,QAAqC;AAC7C,SAAK,SAAS,EAAE,GAAG,KAAK,QAAQ,GAAG,OAAO;AAAA,EAC5C;A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AAO,sBAAsB;AAC7B,WAAO;AAAA,EACT;AACF;AATgB;AAkBT,SAAS,qDAAqD;AACnE,QAAM,EAAE,OAAO,IAAIA,cAAa;AAEhC,SAAO,OAAO,MAAwC,WAAgC;AACpF,UAAM,SAAS,MAAe,gDAAgD,MAAM,MAAM;AAE1F,WAAO,8BAA8B;AACrC,WAAO;AAAA,EACT;AACF;AATgB;;;ACpGhB,SAAS,gBAAAC,qBAAoB;AActB,SAAS,oCAAoC;AAClD,QAAM,EAAE,OAAO,IAAIC,cAAa;AAEhC,SAAO,OAAO,MAAyB,WAA8C;AACnF,UAAM,SAAS,MAAe,+BAA+B,MAAM,MAAM;AAEzE,WAAO,0BAA0B;AACjC,WAAO;AAAA,EACT;AACF;AATgB;AAkBT,SAAS,mCAAmC;AACjD,QAAM,EAAE,OAAO,IAAIA,cAAa;AAEhC,SAAO,OAAO,MAAwB,WAA6C;AACjF,UAAM,SAAS,MAAe,8BAA8B,MAAM,MAAM;AAExE,WAAO,yBAAyB;AAChC,WAAO;AAAA,EACT;AACF;AATgB;","names":["consola","OAuthConnectionProvider","OAuthDisconnectRequestRequestProvider","OTPRequestRequestChannel","OTPVerifyRequestChannel","z","z","z","z","z","z","z","z","z","z","z","z","z","z","z","z","z","z","z","z","z","z","z","z","consola","consola","consola","consola","consola","useSWRConfig","useSWRConfig","useSWR","useSWRConfig","useSWR","useSWRConfig","useSWRConfig","useSWRConfig"]}