@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@djangocfg/api",
3
- "version": "2.1.42",
3
+ "version": "2.1.43",
4
4
  "description": "Auto-generated TypeScript API client with React hooks, SWR integration, and Zod validation for Django REST Framework backends",
5
5
  "keywords": [
6
6
  "django",
@@ -74,7 +74,7 @@
74
74
  "check": "tsc --noEmit"
75
75
  },
76
76
  "peerDependencies": {
77
- "@djangocfg/ui-nextjs": "^2.1.42",
77
+ "@djangocfg/ui-nextjs": "^2.1.43",
78
78
  "consola": "^3.4.2",
79
79
  "next": "^14 || ^15",
80
80
  "p-retry": "^7.0.0",
@@ -85,7 +85,7 @@
85
85
  "devDependencies": {
86
86
  "@types/node": "^24.7.2",
87
87
  "@types/react": "^19.0.0",
88
- "@djangocfg/typescript-config": "^2.1.42",
88
+ "@djangocfg/typescript-config": "^2.1.43",
89
89
  "next": "^15.0.0",
90
90
  "react": "^19.0.0",
91
91
  "tsup": "^8.5.0",
@@ -13,11 +13,23 @@
13
13
 
14
14
  "use client";
15
15
 
16
- import { createContext, useContext, ReactNode, useState, useCallback, useRef, useEffect } from 'react';
17
- import { getCachedProfile, setCachedProfile, clearProfileCache } from '../hooks/useProfileCache';
18
- import { authLogger } from '../utils/logger';
16
+ import {
17
+ createContext, ReactNode, useCallback, useContext, useEffect, useRef, useState
18
+ } from 'react';
19
+
19
20
  // Import API instance and fetcher
20
21
  import { api as apiAccounts, getAccountsProfileRetrieve } from '../../';
22
+ // Import schema
23
+ import { PatchedUserProfileUpdateRequestSchema } from '../../generated/cfg_accounts';
24
+ // Import hooks from generated API hooks
25
+ import {
26
+ useCreateAccountsOtpRequestCreate, useCreateAccountsOtpVerifyCreate,
27
+ useCreateAccountsProfileAvatarCreate, useCreateAccountsTokenRefreshCreate,
28
+ usePartialUpdateAccountsProfilePartialUpdate, useUpdateAccountsProfileUpdateUpdate
29
+ } from '../../generated/cfg_accounts/_utils/hooks';
30
+ import { clearProfileCache, getCachedProfile, setCachedProfile } from '../hooks/useProfileCache';
31
+ import { authLogger } from '../utils/logger';
32
+
21
33
  // Import types from generated API
22
34
  import type {
23
35
  User,
@@ -30,18 +42,6 @@ import type {
30
42
  TokenRefresh,
31
43
  API,
32
44
  } from '../../generated/cfg_accounts';
33
- // Import schema
34
- import { PatchedUserProfileUpdateRequestSchema } from '../../generated/cfg_accounts';
35
- // Import hooks from generated API hooks
36
- import {
37
- usePartialUpdateAccountsProfilePartialUpdate,
38
- useUpdateAccountsProfileUpdateUpdate,
39
- useCreateAccountsProfileAvatarCreate,
40
- useCreateAccountsOtpRequestCreate,
41
- useCreateAccountsOtpVerifyCreate,
42
- useCreateAccountsTokenRefreshCreate,
43
- } from '../../generated/cfg_accounts/_utils/hooks';
44
-
45
45
  // Re-export schemas for external use
46
46
  export { PatchedUserProfileUpdateRequestSchema };
47
47
  export type { PatchedUserProfileUpdateRequest };
@@ -6,13 +6,14 @@ import React, {
6
6
  createContext, ReactNode, useCallback, useContext, useEffect, useMemo, useRef, useState
7
7
  } from 'react';
8
8
 
9
- import { api as apiAccounts, Enums } from '../../';
10
- import { useAccountsContext, AccountsProvider } from './AccountsContext';
11
- import { useLocalStorage, useQueryParams, useCfgRouter } from '@djangocfg/ui-nextjs/hooks';
12
- import { getCachedProfile, clearProfileCache } from '../hooks/useProfileCache';
9
+ import { useCfgRouter, useLocalStorage, useQueryParams } from '@djangocfg/ui-nextjs/hooks';
13
10
 
11
+ import { api as apiAccounts, Enums } from '../../';
12
+ import { clearProfileCache, getCachedProfile } from '../hooks/useProfileCache';
13
+ import { Analytics, AnalyticsCategory, AnalyticsEvent } from '../utils/analytics';
14
14
  import { authLogger } from '../utils/logger';
15
- import { Analytics, AnalyticsEvent, AnalyticsCategory } from '../utils/analytics';
15
+ import { AccountsProvider, useAccountsContext } from './AccountsContext';
16
+
16
17
  import type { AuthConfig, AuthContextType, AuthProviderProps, UserProfile } from './types';
17
18
 
18
19
  // Default routes
@@ -3,9 +3,9 @@
3
3
  import { useCallback, useEffect, useState } from 'react';
4
4
 
5
5
  import { useAuth } from '../context';
6
+ import { authLogger } from '../utils/logger';
6
7
  import { useAutoAuth } from './useAutoAuth';
7
8
  import { useLocalStorage } from './useLocalStorage';
8
- import { authLogger } from '../utils/logger';
9
9
 
10
10
  export interface AuthFormState {
11
11
  identifier: string; // Email or phone number
@@ -2,9 +2,10 @@
2
2
 
3
3
  import { useEffect } from 'react';
4
4
 
5
- import { useAuth } from '../context';
6
5
  import { useCfgRouter } from '@djangocfg/ui-nextjs/hooks';
7
6
 
7
+ import { useAuth } from '../context';
8
+
8
9
  interface UseAuthGuardOptions {
9
10
  redirectTo?: string;
10
11
  requireAuth?: boolean;
@@ -1,8 +1,10 @@
1
1
  'use client';
2
2
 
3
- import { useEffect } from 'react';
4
3
  import { usePathname } from 'next/navigation';
5
- import { useQueryParams, useCfgRouter } from '@djangocfg/ui-nextjs/hooks';
4
+ import { useEffect } from 'react';
5
+
6
+ import { useCfgRouter, useQueryParams } from '@djangocfg/ui-nextjs/hooks';
7
+
6
8
  import { authLogger } from '../utils/logger';
7
9
 
8
10
  export interface UseAutoAuthOptions {
@@ -2,10 +2,11 @@
2
2
 
3
3
  import { useCallback, useState } from 'react';
4
4
 
5
- import { apiAccounts } from '../../clients';
6
5
  import { useCfgRouter } from '@djangocfg/ui-nextjs/hooks';
6
+
7
+ import { apiAccounts } from '../../clients';
8
+ import { Analytics, AnalyticsCategory, AnalyticsEvent } from '../utils/analytics';
7
9
  import { authLogger } from '../utils/logger';
8
- import { Analytics, AnalyticsEvent, AnalyticsCategory } from '../utils/analytics';
9
10
 
10
11
  export interface UseGithubAuthOptions {
11
12
  sourceUrl?: string;
@@ -1,6 +1,7 @@
1
1
  'use client';
2
2
 
3
3
  import { useEffect, useState } from 'react';
4
+
4
5
  import { authLogger } from '../utils/logger';
5
6
 
6
7
  /**
@@ -11,7 +11,7 @@
11
11
 
12
12
  import type { User } from '../../';
13
13
  import { authLogger as profileLogger } from '../utils/logger';
14
- import { encodeBase64, decodeBase64 } from './useBase64';
14
+ import { decodeBase64, encodeBase64 } from './useBase64';
15
15
 
16
16
  // Cache configuration
17
17
  const CACHE_KEY = 'user_profile_cache';
@@ -1,6 +1,7 @@
1
1
  'use client';
2
2
 
3
3
  import { useState } from 'react';
4
+
4
5
  import { authLogger } from '../utils/logger';
5
6
 
6
7
  /**
package/src/clients.ts CHANGED
@@ -9,8 +9,8 @@
9
9
  */
10
10
 
11
11
  import { API as AccountsAPIClass, LocalStorageAdapter } from './generated/cfg_accounts';
12
- import { API as WebPushAPIClass } from './generated/cfg_webpush';
13
12
  import { API as CentrifugoAPIClass } from './generated/cfg_centrifugo';
13
+ import { API as WebPushAPIClass } from './generated/cfg_webpush';
14
14
 
15
15
  // ============================================================================
16
16
  // Pre-configured API instances (for hooks and direct usage)
@@ -0,0 +1,92 @@
1
+ # Django CFG API - Typescript Client
2
+
3
+ Auto-generated. **Do not edit manually.**
4
+
5
+ ```bash
6
+ python manage.py generate_client --groups cfg_accounts --typescript
7
+ ```
8
+
9
+ ## Stats
10
+
11
+ | | |
12
+ |---|---|
13
+ | Version | 3.0.3 |
14
+ | Operations | 14 |
15
+ | Schemas | 19 |
16
+
17
+ ## Resources
18
+
19
+ - **Auth** (1 ops)
20
+ - **OAuth** (5 ops)
21
+ - **User Profile** (6 ops)
22
+ - **accounts** (2 ops)
23
+
24
+ ## Operations
25
+
26
+ **Auth:**
27
+ - `POST` /cfg/accounts/token/refresh/ → `cfg_accounts_token_refresh_create`
28
+
29
+ **OAuth:**
30
+ - `GET` /cfg/accounts/oauth/connections/ → `cfg_accounts_oauth_connections_list`
31
+ - `POST` /cfg/accounts/oauth/disconnect/ → `cfg_accounts_oauth_disconnect_create`
32
+ - `POST` /cfg/accounts/oauth/github/authorize/ → `cfg_accounts_oauth_github_authorize_create`
33
+ - `POST` /cfg/accounts/oauth/github/callback/ → `cfg_accounts_oauth_github_callback_create`
34
+ - `GET` /cfg/accounts/oauth/providers/ → `cfg_accounts_oauth_providers_retrieve`
35
+
36
+ **User Profile:**
37
+ - `POST` /cfg/accounts/profile/avatar/ → `cfg_accounts_profile_avatar_create`
38
+ - `PATCH` /cfg/accounts/profile/partial/ → `cfg_accounts_profile_partial_partial_update`
39
+ - `PUT` /cfg/accounts/profile/partial/ → `cfg_accounts_profile_partial_update`
40
+ - `GET` /cfg/accounts/profile/ → `cfg_accounts_profile_retrieve`
41
+ - `PATCH` /cfg/accounts/profile/update/ → `cfg_accounts_profile_update_partial_update`
42
+ - `PUT` /cfg/accounts/profile/update/ → `cfg_accounts_profile_update_update`
43
+
44
+ **accounts:**
45
+ - `POST` /cfg/accounts/otp/request/ → `cfg_accounts_otp_request_create`
46
+ - `POST` /cfg/accounts/otp/verify/ → `cfg_accounts_otp_verify_create`
47
+
48
+ ## Usage
49
+
50
+ ```typescript
51
+ import { APIClient } from './';
52
+
53
+ const client = new APIClient({ baseUrl, token });
54
+
55
+ await client.oauth.list();
56
+ await client.oauth.retrieve({ id: 1 });
57
+ await client.oauth.create({ ... });
58
+ await client.accounts.create({ ... });
59
+ ```
60
+
61
+ **SWR Hooks:**
62
+ ```typescript
63
+ import { useOauthList } from './hooks';
64
+ const { data, isLoading } = useOauthList();
65
+ ```
66
+
67
+ ## How It Works
68
+
69
+ ```
70
+ DRF ViewSets → drf-spectacular → OpenAPI → IR Parser → Generator → This Client
71
+ ```
72
+
73
+ **Configuration** (`api/config.py`):
74
+ ```python
75
+ openapi_client = OpenAPIClientConfig(
76
+ enabled=True,
77
+ groups=[OpenAPIGroupConfig(name="cfg_accounts", apps=["..."])],
78
+ generate_zod_schemas=True, # → schemas.ts
79
+ generate_fetchers=True, # → fetchers.ts
80
+ generate_swr_hooks=True, # → hooks.ts
81
+ )
82
+ ```
83
+
84
+ **Copy to Next.js** (if `nextjs_admin` configured):
85
+ ```python
86
+ nextjs_admin = NextJsAdminConfig(
87
+ project_path="../frontend/apps/...",
88
+ api_output_path="app/_lib/api/generated",
89
+ )
90
+ ```
91
+
92
+ @see https://djangocfg.com/docs/features/api-generation
@@ -1,11 +1,4 @@
1
- /**
2
- * AUTO-GENERATED FILE - DO NOT EDIT
3
- *
4
- * This file is automatically generated by DjangoCFG.
5
- * Any manual changes will be lost when the code is regenerated.
6
- *
7
- * @see https://djangocfg.com/docs/features/modules/django-client/overview/
8
- */
1
+ // Auto-generated by DjangoCFG - see CLAUDE.md
9
2
  /**
10
3
  * Typed fetchers for Accounts
11
4
  *
@@ -1,11 +1,4 @@
1
- /**
2
- * AUTO-GENERATED FILE - DO NOT EDIT
3
- *
4
- * This file is automatically generated by DjangoCFG.
5
- * Any manual changes will be lost when the code is regenerated.
6
- *
7
- * @see https://djangocfg.com/docs/features/modules/django-client/overview/
8
- */
1
+ // Auto-generated by DjangoCFG - see CLAUDE.md
9
2
  /**
10
3
  * Typed fetchers for Auth
11
4
  *
@@ -1,11 +1,4 @@
1
- /**
2
- * AUTO-GENERATED FILE - DO NOT EDIT
3
- *
4
- * This file is automatically generated by DjangoCFG.
5
- * Any manual changes will be lost when the code is regenerated.
6
- *
7
- * @see https://djangocfg.com/docs/features/modules/django-client/overview/
8
- */
1
+ // Auto-generated by DjangoCFG - see CLAUDE.md
9
2
  /**
10
3
  * Typed fetchers for Oauth
11
4
  *
@@ -1,11 +1,4 @@
1
- /**
2
- * AUTO-GENERATED FILE - DO NOT EDIT
3
- *
4
- * This file is automatically generated by DjangoCFG.
5
- * Any manual changes will be lost when the code is regenerated.
6
- *
7
- * @see https://djangocfg.com/docs/features/modules/django-client/overview/
8
- */
1
+ // Auto-generated by DjangoCFG - see CLAUDE.md
9
2
  /**
10
3
  * Typed fetchers for User Profile
11
4
  *
@@ -1,11 +1,4 @@
1
- /**
2
- * AUTO-GENERATED FILE - DO NOT EDIT
3
- *
4
- * This file is automatically generated by DjangoCFG.
5
- * Any manual changes will be lost when the code is regenerated.
6
- *
7
- * @see https://djangocfg.com/docs/features/modules/django-client/overview/
8
- */
1
+ // Auto-generated by DjangoCFG - see CLAUDE.md
9
2
  /**
10
3
  * Typed Fetchers - Universal API functions
11
4
  *
@@ -1,11 +1,4 @@
1
- /**
2
- * AUTO-GENERATED FILE - DO NOT EDIT
3
- *
4
- * This file is automatically generated by DjangoCFG.
5
- * Any manual changes will be lost when the code is regenerated.
6
- *
7
- * @see https://djangocfg.com/docs/features/modules/django-client/overview/
8
- */
1
+ // Auto-generated by DjangoCFG - see CLAUDE.md
9
2
  'use client';
10
3
 
11
4
  /**
@@ -1,11 +1,4 @@
1
- /**
2
- * AUTO-GENERATED FILE - DO NOT EDIT
3
- *
4
- * This file is automatically generated by DjangoCFG.
5
- * Any manual changes will be lost when the code is regenerated.
6
- *
7
- * @see https://djangocfg.com/docs/features/modules/django-client/overview/
8
- */
1
+ // Auto-generated by DjangoCFG - see CLAUDE.md
9
2
  'use client';
10
3
 
11
4
  /**
@@ -1,11 +1,4 @@
1
- /**
2
- * AUTO-GENERATED FILE - DO NOT EDIT
3
- *
4
- * This file is automatically generated by DjangoCFG.
5
- * Any manual changes will be lost when the code is regenerated.
6
- *
7
- * @see https://djangocfg.com/docs/features/modules/django-client/overview/
8
- */
1
+ // Auto-generated by DjangoCFG - see CLAUDE.md
9
2
  'use client';
10
3
 
11
4
  /**
@@ -1,11 +1,4 @@
1
- /**
2
- * AUTO-GENERATED FILE - DO NOT EDIT
3
- *
4
- * This file is automatically generated by DjangoCFG.
5
- * Any manual changes will be lost when the code is regenerated.
6
- *
7
- * @see https://djangocfg.com/docs/features/modules/django-client/overview/
8
- */
1
+ // Auto-generated by DjangoCFG - see CLAUDE.md
9
2
  'use client';
10
3
 
11
4
  /**
@@ -1,11 +1,4 @@
1
- /**
2
- * AUTO-GENERATED FILE - DO NOT EDIT
3
- *
4
- * This file is automatically generated by DjangoCFG.
5
- * Any manual changes will be lost when the code is regenerated.
6
- *
7
- * @see https://djangocfg.com/docs/features/modules/django-client/overview/
8
- */
1
+ // Auto-generated by DjangoCFG - see CLAUDE.md
9
2
  'use client';
10
3
 
11
4
  /**
@@ -1,11 +1,4 @@
1
- /**
2
- * AUTO-GENERATED FILE - DO NOT EDIT
3
- *
4
- * This file is automatically generated by DjangoCFG.
5
- * Any manual changes will be lost when the code is regenerated.
6
- *
7
- * @see https://djangocfg.com/docs/features/modules/django-client/overview/
8
- */
1
+ // Auto-generated by DjangoCFG - see CLAUDE.md
9
2
  /**
10
3
  * Zod Schemas - Runtime validation and type inference
11
4
  *
@@ -1,10 +1,3 @@
1
- /**
2
- * AUTO-GENERATED FILE - DO NOT EDIT
3
- *
4
- * This file is automatically generated by DjangoCFG.
5
- * Any manual changes will be lost when the code is regenerated.
6
- *
7
- * @see https://djangocfg.com/docs/features/modules/django-client/overview/
8
- */
1
+ // Auto-generated by DjangoCFG - see CLAUDE.md
9
2
  export * from "./client";
10
3
  export * as Models from "./models";
@@ -1,11 +1,4 @@
1
- /**
2
- * AUTO-GENERATED FILE - DO NOT EDIT
3
- *
4
- * This file is automatically generated by DjangoCFG.
5
- * Any manual changes will be lost when the code is regenerated.
6
- *
7
- * @see https://djangocfg.com/docs/features/modules/django-client/overview/
8
- */
1
+ // Auto-generated by DjangoCFG - see CLAUDE.md
9
2
  import * as Enums from "../enums";
10
3
 
11
4
  /**
@@ -1,10 +1,3 @@
1
- /**
2
- * AUTO-GENERATED FILE - DO NOT EDIT
3
- *
4
- * This file is automatically generated by DjangoCFG.
5
- * Any manual changes will be lost when the code is regenerated.
6
- *
7
- * @see https://djangocfg.com/docs/features/modules/django-client/overview/
8
- */
1
+ // Auto-generated by DjangoCFG - see CLAUDE.md
9
2
  export * from "./client";
10
3
  export * as Models from "./models";
@@ -1,11 +1,4 @@
1
- /**
2
- * AUTO-GENERATED FILE - DO NOT EDIT
3
- *
4
- * This file is automatically generated by DjangoCFG.
5
- * Any manual changes will be lost when the code is regenerated.
6
- *
7
- * @see https://djangocfg.com/docs/features/modules/django-client/overview/
8
- */
1
+ // Auto-generated by DjangoCFG - see CLAUDE.md
9
2
  /**
10
3
  *
11
4
  * Request model (no read-only fields).
@@ -1,10 +1,3 @@
1
- /**
2
- * AUTO-GENERATED FILE - DO NOT EDIT
3
- *
4
- * This file is automatically generated by DjangoCFG.
5
- * Any manual changes will be lost when the code is regenerated.
6
- *
7
- * @see https://djangocfg.com/docs/features/modules/django-client/overview/
8
- */
1
+ // Auto-generated by DjangoCFG - see CLAUDE.md
9
2
  export * from "./client";
10
3
  export * as Models from "./models";
@@ -1,11 +1,4 @@
1
- /**
2
- * AUTO-GENERATED FILE - DO NOT EDIT
3
- *
4
- * This file is automatically generated by DjangoCFG.
5
- * Any manual changes will be lost when the code is regenerated.
6
- *
7
- * @see https://djangocfg.com/docs/features/modules/django-client/overview/
8
- */
1
+ // Auto-generated by DjangoCFG - see CLAUDE.md
9
2
  import * as Enums from "../enums";
10
3
 
11
4
  /**
@@ -1,10 +1,3 @@
1
- /**
2
- * AUTO-GENERATED FILE - DO NOT EDIT
3
- *
4
- * This file is automatically generated by DjangoCFG.
5
- * Any manual changes will be lost when the code is regenerated.
6
- *
7
- * @see https://djangocfg.com/docs/features/modules/django-client/overview/
8
- */
1
+ // Auto-generated by DjangoCFG - see CLAUDE.md
9
2
  export * from "./client";
10
3
  export * as Models from "./models";
@@ -1,11 +1,4 @@
1
- /**
2
- * AUTO-GENERATED FILE - DO NOT EDIT
3
- *
4
- * This file is automatically generated by DjangoCFG.
5
- * Any manual changes will be lost when the code is regenerated.
6
- *
7
- * @see https://djangocfg.com/docs/features/modules/django-client/overview/
8
- */
1
+ // Auto-generated by DjangoCFG - see CLAUDE.md
9
2
  /**
10
3
  * Serializer for user details.
11
4
  *
@@ -1,11 +1,4 @@
1
- /**
2
- * AUTO-GENERATED FILE - DO NOT EDIT
3
- *
4
- * This file is automatically generated by DjangoCFG.
5
- * Any manual changes will be lost when the code is regenerated.
6
- *
7
- * @see https://djangocfg.com/docs/features/modules/django-client/overview/
8
- */
1
+ // Auto-generated by DjangoCFG - see CLAUDE.md
9
2
  /**
10
3
  * Global API Instance - Singleton configuration
11
4
  *
@@ -1,11 +1,4 @@
1
- /**
2
- * AUTO-GENERATED FILE - DO NOT EDIT
3
- *
4
- * This file is automatically generated by DjangoCFG.
5
- * Any manual changes will be lost when the code is regenerated.
6
- *
7
- * @see https://djangocfg.com/docs/features/modules/django-client/overview/
8
- */
1
+ // Auto-generated by DjangoCFG - see CLAUDE.md
9
2
  /**
10
3
  * OAuth provider name (github, google, etc.)
11
4
  * * `github` - GitHub
@@ -1,11 +1,4 @@
1
- /**
2
- * AUTO-GENERATED FILE - DO NOT EDIT
3
- *
4
- * This file is automatically generated by DjangoCFG.
5
- * Any manual changes will be lost when the code is regenerated.
6
- *
7
- * @see https://djangocfg.com/docs/features/modules/django-client/overview/
8
- */
1
+ // Auto-generated by DjangoCFG - see CLAUDE.md
9
2
  /**
10
3
  * API Error Classes
11
4
  *
@@ -1,11 +1,4 @@
1
- /**
2
- * AUTO-GENERATED FILE - DO NOT EDIT
3
- *
4
- * This file is automatically generated by DjangoCFG.
5
- * Any manual changes will be lost when the code is regenerated.
6
- *
7
- * @see https://djangocfg.com/docs/features/modules/django-client/overview/
8
- */
1
+ // Auto-generated by DjangoCFG - see CLAUDE.md
9
2
  /**
10
3
  * HTTP Client Adapter Pattern
11
4
  *
@@ -1,11 +1,4 @@
1
- /**
2
- * AUTO-GENERATED FILE - DO NOT EDIT
3
- *
4
- * This file is automatically generated by DjangoCFG.
5
- * Any manual changes will be lost when the code is regenerated.
6
- *
7
- * @see https://djangocfg.com/docs/features/modules/django-client/overview/
8
- */
1
+ // Auto-generated by DjangoCFG - see CLAUDE.md
9
2
  /**
10
3
  * Django CFG API - API Client with JWT Management
11
4
  *
@@ -1,11 +1,4 @@
1
- /**
2
- * AUTO-GENERATED FILE - DO NOT EDIT
3
- *
4
- * This file is automatically generated by DjangoCFG.
5
- * Any manual changes will be lost when the code is regenerated.
6
- *
7
- * @see https://djangocfg.com/docs/features/modules/django-client/overview/
8
- */
1
+ // Auto-generated by DjangoCFG - see CLAUDE.md
9
2
  /**
10
3
  * API Logger with Consola
11
4
  * Beautiful console logging for API requests and responses
@@ -1,11 +1,4 @@
1
- /**
2
- * AUTO-GENERATED FILE - DO NOT EDIT
3
- *
4
- * This file is automatically generated by DjangoCFG.
5
- * Any manual changes will be lost when the code is regenerated.
6
- *
7
- * @see https://djangocfg.com/docs/features/modules/django-client/overview/
8
- */
1
+ // Auto-generated by DjangoCFG - see CLAUDE.md
9
2
  /**
10
3
  * Retry Configuration and Utilities
11
4
  *
@@ -1,11 +1,4 @@
1
- /**
2
- * AUTO-GENERATED FILE - DO NOT EDIT
3
- *
4
- * This file is automatically generated by DjangoCFG.
5
- * Any manual changes will be lost when the code is regenerated.
6
- *
7
- * @see https://djangocfg.com/docs/features/modules/django-client/overview/
8
- */
1
+ // Auto-generated by DjangoCFG - see CLAUDE.md
9
2
  /**
10
3
  * Storage adapters for cross-platform token storage.
11
4
  *