@djangocfg/api 2.1.41 → 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.
- package/dist/auth.cjs +42 -44
- package/dist/auth.cjs.map +1 -1
- package/dist/auth.mjs +50 -45
- package/dist/auth.mjs.map +1 -1
- package/dist/clients.cjs +1842 -1842
- package/dist/clients.cjs.map +1 -1
- package/dist/clients.d.cts +1627 -1837
- package/dist/clients.d.ts +1627 -1837
- package/dist/clients.mjs +1840 -1840
- package/dist/clients.mjs.map +1 -1
- package/dist/hooks.cjs.map +1 -1
- package/dist/hooks.d.cts +0 -66
- package/dist/hooks.d.ts +0 -66
- package/dist/hooks.mjs.map +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +0 -210
- package/dist/index.d.ts +0 -210
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
- package/src/auth/context/AccountsContext.tsx +15 -15
- package/src/auth/context/AuthContext.tsx +6 -5
- package/src/auth/hooks/useAuthForm.ts +1 -1
- package/src/auth/hooks/useAuthGuard.ts +2 -1
- package/src/auth/hooks/useAutoAuth.ts +4 -2
- package/src/auth/hooks/useGithubAuth.ts +3 -2
- package/src/auth/hooks/useLocalStorage.ts +1 -0
- package/src/auth/hooks/useProfileCache.ts +1 -1
- package/src/auth/hooks/useSessionStorage.ts +1 -0
- package/src/clients.ts +1 -1
- package/src/generated/cfg_accounts/CLAUDE.md +92 -0
- package/src/generated/cfg_accounts/_utils/fetchers/accounts.ts +1 -8
- package/src/generated/cfg_accounts/_utils/fetchers/accounts__auth.ts +1 -8
- package/src/generated/cfg_accounts/_utils/fetchers/accounts__oauth.ts +1 -8
- package/src/generated/cfg_accounts/_utils/fetchers/accounts__user_profile.ts +1 -8
- package/src/generated/cfg_accounts/_utils/fetchers/index.ts +1 -8
- package/src/generated/cfg_accounts/_utils/hooks/accounts.ts +1 -8
- package/src/generated/cfg_accounts/_utils/hooks/accounts__auth.ts +1 -8
- package/src/generated/cfg_accounts/_utils/hooks/accounts__oauth.ts +1 -8
- package/src/generated/cfg_accounts/_utils/hooks/accounts__user_profile.ts +1 -8
- package/src/generated/cfg_accounts/_utils/hooks/index.ts +1 -8
- package/src/generated/cfg_accounts/_utils/schemas/index.ts +1 -8
- package/src/generated/cfg_accounts/accounts/index.ts +1 -8
- package/src/generated/cfg_accounts/accounts/models.ts +1 -8
- package/src/generated/cfg_accounts/accounts__auth/index.ts +1 -8
- package/src/generated/cfg_accounts/accounts__auth/models.ts +1 -8
- package/src/generated/cfg_accounts/accounts__oauth/index.ts +1 -8
- package/src/generated/cfg_accounts/accounts__oauth/models.ts +1 -8
- package/src/generated/cfg_accounts/accounts__user_profile/index.ts +1 -8
- package/src/generated/cfg_accounts/accounts__user_profile/models.ts +1 -8
- package/src/generated/cfg_accounts/api-instance.ts +1 -8
- package/src/generated/cfg_accounts/enums.ts +1 -8
- package/src/generated/cfg_accounts/errors.ts +1 -8
- package/src/generated/cfg_accounts/http.ts +1 -8
- package/src/generated/cfg_accounts/index.ts +1 -8
- package/src/generated/cfg_accounts/logger.ts +1 -8
- package/src/generated/cfg_accounts/retry.ts +1 -8
- package/src/generated/cfg_accounts/storage.ts +1 -8
- package/src/generated/cfg_accounts/validation-events.ts +1 -8
- package/src/generated/cfg_centrifugo/CLAUDE.md +92 -0
- package/src/generated/cfg_centrifugo/_utils/fetchers/centrifugo__centrifugo_admin_api.ts +1 -8
- package/src/generated/cfg_centrifugo/_utils/fetchers/centrifugo__centrifugo_auth.ts +1 -8
- package/src/generated/cfg_centrifugo/_utils/fetchers/centrifugo__centrifugo_monitoring.ts +1 -8
- package/src/generated/cfg_centrifugo/_utils/fetchers/centrifugo__centrifugo_testing.ts +1 -8
- package/src/generated/cfg_centrifugo/_utils/fetchers/index.ts +1 -8
- package/src/generated/cfg_centrifugo/_utils/hooks/centrifugo__centrifugo_admin_api.ts +1 -8
- package/src/generated/cfg_centrifugo/_utils/hooks/centrifugo__centrifugo_auth.ts +1 -8
- package/src/generated/cfg_centrifugo/_utils/hooks/centrifugo__centrifugo_monitoring.ts +1 -8
- package/src/generated/cfg_centrifugo/_utils/hooks/centrifugo__centrifugo_testing.ts +1 -8
- package/src/generated/cfg_centrifugo/_utils/hooks/index.ts +1 -8
- package/src/generated/cfg_centrifugo/_utils/schemas/index.ts +1 -8
- package/src/generated/cfg_centrifugo/api-instance.ts +1 -8
- package/src/generated/cfg_centrifugo/centrifugo__centrifugo_admin_api/index.ts +1 -8
- package/src/generated/cfg_centrifugo/centrifugo__centrifugo_admin_api/models.ts +1 -8
- package/src/generated/cfg_centrifugo/centrifugo__centrifugo_auth/index.ts +1 -8
- package/src/generated/cfg_centrifugo/centrifugo__centrifugo_auth/models.ts +1 -8
- package/src/generated/cfg_centrifugo/centrifugo__centrifugo_monitoring/index.ts +1 -8
- package/src/generated/cfg_centrifugo/centrifugo__centrifugo_monitoring/models.ts +1 -8
- package/src/generated/cfg_centrifugo/centrifugo__centrifugo_testing/index.ts +1 -8
- package/src/generated/cfg_centrifugo/centrifugo__centrifugo_testing/models.ts +1 -8
- package/src/generated/cfg_centrifugo/errors.ts +1 -8
- package/src/generated/cfg_centrifugo/http.ts +1 -8
- package/src/generated/cfg_centrifugo/index.ts +1 -8
- package/src/generated/cfg_centrifugo/logger.ts +1 -8
- package/src/generated/cfg_centrifugo/retry.ts +1 -8
- package/src/generated/cfg_centrifugo/storage.ts +1 -8
- package/src/generated/cfg_centrifugo/validation-events.ts +1 -8
- package/src/generated/cfg_webpush/CLAUDE.md +70 -0
- package/src/generated/cfg_webpush/_utils/fetchers/index.ts +1 -8
- package/src/generated/cfg_webpush/_utils/fetchers/webpush__web_push.ts +1 -8
- package/src/generated/cfg_webpush/_utils/hooks/index.ts +1 -8
- package/src/generated/cfg_webpush/_utils/hooks/webpush__web_push.ts +1 -8
- package/src/generated/cfg_webpush/_utils/schemas/index.ts +1 -8
- package/src/generated/cfg_webpush/api-instance.ts +1 -8
- package/src/generated/cfg_webpush/errors.ts +1 -8
- package/src/generated/cfg_webpush/http.ts +1 -8
- package/src/generated/cfg_webpush/index.ts +1 -8
- package/src/generated/cfg_webpush/logger.ts +1 -8
- package/src/generated/cfg_webpush/retry.ts +1 -8
- package/src/generated/cfg_webpush/storage.ts +1 -8
- package/src/generated/cfg_webpush/validation-events.ts +1 -8
- package/src/generated/cfg_webpush/webpush__web_push/index.ts +1 -8
- 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.
|
|
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.
|
|
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.
|
|
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 {
|
|
17
|
-
|
|
18
|
-
|
|
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 {
|
|
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 {
|
|
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 {
|
|
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;
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
|
|
12
12
|
import type { User } from '../../';
|
|
13
13
|
import { authLogger as profileLogger } from '../utils/logger';
|
|
14
|
-
import {
|
|
14
|
+
import { decodeBase64, encodeBase64 } from './useBase64';
|
|
15
15
|
|
|
16
16
|
// Cache configuration
|
|
17
17
|
const CACHE_KEY = 'user_profile_cache';
|
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
|
*
|