@djangocfg/api 2.1.327 → 2.1.332
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-server.cjs +328 -3553
- package/dist/auth-server.cjs.map +1 -1
- package/dist/auth-server.mjs +328 -3553
- package/dist/auth-server.mjs.map +1 -1
- package/dist/auth.cjs +744 -3036
- package/dist/auth.cjs.map +1 -1
- package/dist/auth.d.cts +35 -35
- package/dist/auth.d.ts +35 -35
- package/dist/auth.mjs +744 -3036
- package/dist/auth.mjs.map +1 -1
- package/dist/clients.cjs +303 -3548
- package/dist/clients.cjs.map +1 -1
- package/dist/clients.d.cts +28 -2557
- package/dist/clients.d.ts +28 -2557
- package/dist/clients.mjs +303 -3548
- package/dist/clients.mjs.map +1 -1
- package/dist/index.cjs +1130 -3099
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1807 -2165
- package/dist/index.d.ts +1807 -2165
- package/dist/index.mjs +1130 -3099
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
- package/src/_api/generated/_cfg_accounts/api.ts +67 -0
- package/src/_api/generated/{cfg_totp → _cfg_accounts}/events.ts +3 -3
- package/src/_api/generated/{cfg_accounts → _cfg_accounts}/hooks/index.ts +1 -1
- package/src/_api/generated/{cfg_accounts → _cfg_accounts}/hooks/useCfgAccountsOauthConnectionsList.ts +5 -6
- package/src/_api/generated/{cfg_accounts → _cfg_accounts}/hooks/useCfgAccountsOauthDisconnectCreate.ts +3 -3
- package/src/_api/generated/{cfg_accounts → _cfg_accounts}/hooks/useCfgAccountsOauthGithubAuthorizeCreate.ts +3 -3
- package/src/_api/generated/{cfg_accounts → _cfg_accounts}/hooks/useCfgAccountsOauthGithubCallbackCreate.ts +3 -3
- package/src/_api/generated/{cfg_accounts → _cfg_accounts}/hooks/useCfgAccountsOauthProvidersRetrieve.ts +5 -6
- package/src/_api/generated/{cfg_accounts → _cfg_accounts}/hooks/useCfgAccountsOtpRequestCreate.ts +3 -3
- package/src/_api/generated/{cfg_accounts → _cfg_accounts}/hooks/useCfgAccountsOtpVerifyCreate.ts +3 -3
- package/src/_api/generated/{cfg_accounts → _cfg_accounts}/hooks/useCfgAccountsProfileAvatarCreate.ts +3 -3
- package/src/_api/generated/{cfg_accounts → _cfg_accounts}/hooks/useCfgAccountsProfileDeleteCreate.ts +3 -3
- package/src/_api/generated/{cfg_accounts → _cfg_accounts}/hooks/useCfgAccountsProfilePartialPartialUpdate.ts +3 -3
- package/src/_api/generated/{cfg_accounts → _cfg_accounts}/hooks/useCfgAccountsProfilePartialUpdate.ts +3 -3
- package/src/_api/generated/{cfg_accounts → _cfg_accounts}/hooks/useCfgAccountsProfileRetrieve.ts +5 -6
- package/src/_api/generated/{cfg_accounts → _cfg_accounts}/hooks/useCfgAccountsProfileUpdatePartialUpdate.ts +3 -3
- package/src/_api/generated/{cfg_accounts → _cfg_accounts}/hooks/useCfgAccountsProfileUpdateUpdate.ts +3 -3
- package/src/_api/generated/{cfg_accounts → _cfg_accounts}/hooks/useCfgAccountsTokenRefreshCreate.ts +3 -3
- package/src/_api/generated/{cfg_centrifugo → _cfg_accounts}/index.ts +6 -6
- package/src/_api/generated/{cfg_accounts → _cfg_accounts}/schemas/AccountDeleteResponse.ts +3 -3
- package/src/_api/generated/{cfg_accounts → _cfg_accounts}/schemas/CentrifugoToken.ts +4 -4
- package/src/_api/generated/{cfg_accounts → _cfg_accounts}/schemas/CfgUserUpdateRequest.ts +4 -4
- package/src/_api/generated/{cfg_accounts → _cfg_accounts}/schemas/OAuthAuthorizeRequestRequest.ts +2 -2
- package/src/_api/generated/{cfg_accounts → _cfg_accounts}/schemas/OAuthAuthorizeResponse.ts +2 -2
- package/src/_api/generated/{cfg_accounts → _cfg_accounts}/schemas/OAuthCallbackRequestRequest.ts +3 -3
- package/src/_api/generated/{cfg_accounts → _cfg_accounts}/schemas/OAuthConnection.ts +6 -6
- package/src/_api/generated/{cfg_accounts → _cfg_accounts}/schemas/OAuthDisconnectRequestRequest.ts +2 -2
- package/src/_api/generated/{cfg_accounts → _cfg_accounts}/schemas/OAuthError.ts +2 -2
- package/src/_api/generated/{cfg_accounts → _cfg_accounts}/schemas/OAuthProvidersResponse.ts +3 -3
- package/src/_api/generated/{cfg_accounts → _cfg_accounts}/schemas/OAuthTokenResponse.ts +7 -7
- package/src/_api/generated/{cfg_accounts → _cfg_accounts}/schemas/OTPErrorResponse.ts +2 -2
- package/src/_api/generated/{cfg_accounts → _cfg_accounts}/schemas/OTPRequestRequest.ts +2 -2
- package/src/_api/generated/{cfg_accounts → _cfg_accounts}/schemas/OTPRequestResponse.ts +2 -2
- package/src/_api/generated/{cfg_accounts → _cfg_accounts}/schemas/OTPVerifyRequest.ts +2 -2
- package/src/_api/generated/{cfg_accounts → _cfg_accounts}/schemas/OTPVerifyResponse.ts +6 -6
- package/src/_api/generated/{cfg_accounts → _cfg_accounts}/schemas/PatchedCfgUserUpdateRequest.ts +4 -4
- package/src/_api/generated/{cfg_accounts → _cfg_accounts}/schemas/ProviderEnum.ts +2 -2
- package/src/_api/generated/{cfg_accounts → _cfg_accounts}/schemas/TokenRefresh.ts +2 -2
- package/src/_api/generated/{cfg_accounts → _cfg_accounts}/schemas/TokenRefreshRequest.ts +2 -2
- package/src/_api/generated/{cfg_accounts → _cfg_accounts}/schemas/User.ts +13 -13
- package/src/_api/generated/_cfg_accounts/sdk.gen.ts +5 -0
- package/src/_api/generated/_cfg_accounts/types.gen.ts +5 -0
- package/src/_api/generated/_cfg_centrifugo/api.ts +67 -0
- package/src/_api/generated/{cfg_centrifugo → _cfg_centrifugo}/events.ts +3 -3
- package/src/_api/generated/{cfg_centrifugo → _cfg_centrifugo}/hooks/index.ts +1 -1
- package/src/_api/generated/{cfg_centrifugo → _cfg_centrifugo}/hooks/useCfgCentrifugoAuthTokenRetrieve.ts +5 -6
- package/src/_api/generated/{cfg_accounts → _cfg_centrifugo}/index.ts +6 -6
- package/src/_api/generated/{cfg_centrifugo → _cfg_centrifugo}/schemas/ConnectionTokenResponse.ts +4 -4
- package/src/_api/generated/_cfg_centrifugo/sdk.gen.ts +5 -0
- package/src/_api/generated/_cfg_centrifugo/types.gen.ts +5 -0
- package/src/_api/generated/_cfg_totp/api.ts +67 -0
- package/src/_api/generated/{cfg_accounts → _cfg_totp}/events.ts +3 -3
- package/src/_api/generated/{cfg_totp → _cfg_totp}/hooks/index.ts +1 -1
- package/src/_api/generated/{cfg_totp → _cfg_totp}/hooks/useCfgTotpBackupCodesRegenerateCreate.ts +3 -3
- package/src/_api/generated/{cfg_totp → _cfg_totp}/hooks/useCfgTotpBackupCodesRetrieve.ts +5 -6
- package/src/_api/generated/{cfg_totp → _cfg_totp}/hooks/useCfgTotpDevicesDestroy.ts +3 -3
- package/src/_api/generated/{cfg_totp → _cfg_totp}/hooks/useCfgTotpDevicesRetrieve.ts +5 -6
- package/src/_api/generated/{cfg_totp → _cfg_totp}/hooks/useCfgTotpDisableCreate.ts +3 -3
- package/src/_api/generated/{cfg_totp → _cfg_totp}/hooks/useCfgTotpSetupConfirmCreate.ts +3 -3
- package/src/_api/generated/{cfg_totp → _cfg_totp}/hooks/useCfgTotpSetupCreate.ts +3 -3
- package/src/_api/generated/{cfg_totp → _cfg_totp}/hooks/useCfgTotpVerifyBackupCreate.ts +3 -3
- package/src/_api/generated/{cfg_totp → _cfg_totp}/hooks/useCfgTotpVerifyCreate.ts +3 -3
- package/src/_api/generated/{cfg_totp → _cfg_totp}/index.ts +6 -6
- package/src/_api/generated/{cfg_totp → _cfg_totp}/schemas/BackupCodesRegenerateRequest.ts +2 -2
- package/src/_api/generated/{cfg_totp → _cfg_totp}/schemas/BackupCodesRegenerateResponse.ts +2 -2
- package/src/_api/generated/{cfg_totp → _cfg_totp}/schemas/BackupCodesStatus.ts +2 -2
- package/src/_api/generated/{cfg_totp → _cfg_totp}/schemas/ConfirmSetupRequest.ts +3 -3
- package/src/_api/generated/{cfg_totp → _cfg_totp}/schemas/ConfirmSetupResponse.ts +3 -3
- package/src/_api/generated/{cfg_totp → _cfg_totp}/schemas/DeviceList.ts +6 -6
- package/src/_api/generated/{cfg_totp → _cfg_totp}/schemas/DeviceListResponse.ts +2 -2
- package/src/_api/generated/{cfg_totp → _cfg_totp}/schemas/DeviceListStatusEnum.ts +2 -2
- package/src/_api/generated/{cfg_totp → _cfg_totp}/schemas/DisableRequest.ts +2 -2
- package/src/_api/generated/_cfg_totp/schemas/SetupRequest.ts +11 -0
- package/src/_api/generated/{cfg_totp → _cfg_totp}/schemas/SetupResponse.ts +4 -4
- package/src/_api/generated/{cfg_totp → _cfg_totp}/schemas/TotpVerifyUser.ts +12 -12
- package/src/_api/generated/{cfg_totp → _cfg_totp}/schemas/VerifyBackupRequest.ts +3 -3
- package/src/_api/generated/{cfg_totp → _cfg_totp}/schemas/VerifyRequest.ts +3 -3
- package/src/_api/generated/{cfg_totp → _cfg_totp}/schemas/VerifyResponse.ts +4 -4
- package/src/_api/generated/_cfg_totp/sdk.gen.ts +5 -0
- package/src/_api/generated/_cfg_totp/types.gen.ts +5 -0
- package/src/_api/generated/{cfg_centrifugo/client.gen.ts → client.gen.ts} +3 -0
- package/src/_api/generated/helpers/auth.ts +223 -0
- package/src/_api/generated/{_shared → helpers}/index.ts +1 -0
- package/src/_api/generated/index.ts +22 -20
- package/src/_api/generated/{cfg_accounts/sdk.gen.ts → sdk.gen.ts} +455 -1
- package/src/_api/generated/{cfg_accounts/types.gen.ts → types.gen.ts} +607 -77
- package/src/auth/context/AccountsContext.tsx +10 -10
- package/src/auth/context/AuthContext.tsx +1 -1
- package/src/auth/hooks/useDeleteAccount.ts +2 -1
- package/src/auth/hooks/useGithubAuth.ts +3 -2
- package/src/auth/hooks/useTokenRefresh.ts +2 -1
- package/src/auth/hooks/useTwoFactor.ts +4 -3
- package/src/auth/hooks/useTwoFactorSetup.ts +3 -2
- package/src/auth/hooks/useTwoFactorStatus.ts +4 -3
- package/src/auth/middlewares/tokenRefresh.ts +2 -1
- package/src/clients.ts +3 -3
- package/src/index.ts +22 -5
- package/src/server.ts +9 -9
- package/src/_api/generated/cfg_accounts/api.ts +0 -187
- package/src/_api/generated/cfg_accounts/client.gen.ts +0 -16
- package/src/_api/generated/cfg_centrifugo/api.ts +0 -164
- package/src/_api/generated/cfg_centrifugo/client/client.gen.ts +0 -280
- package/src/_api/generated/cfg_centrifugo/client/index.ts +0 -25
- package/src/_api/generated/cfg_centrifugo/client/types.gen.ts +0 -217
- package/src/_api/generated/cfg_centrifugo/client/utils.gen.ts +0 -318
- package/src/_api/generated/cfg_centrifugo/core/auth.gen.ts +0 -41
- package/src/_api/generated/cfg_centrifugo/core/bodySerializer.gen.ts +0 -82
- package/src/_api/generated/cfg_centrifugo/core/params.gen.ts +0 -169
- package/src/_api/generated/cfg_centrifugo/core/pathSerializer.gen.ts +0 -171
- package/src/_api/generated/cfg_centrifugo/core/queryKeySerializer.gen.ts +0 -117
- package/src/_api/generated/cfg_centrifugo/core/serverSentEvents.gen.ts +0 -242
- package/src/_api/generated/cfg_centrifugo/core/types.gen.ts +0 -104
- package/src/_api/generated/cfg_centrifugo/core/utils.gen.ts +0 -140
- package/src/_api/generated/cfg_centrifugo/sdk.gen.ts +0 -64
- package/src/_api/generated/cfg_centrifugo/types.gen.ts +0 -61
- package/src/_api/generated/cfg_totp/api.ts +0 -181
- package/src/_api/generated/cfg_totp/client/client.gen.ts +0 -280
- package/src/_api/generated/cfg_totp/client/index.ts +0 -25
- package/src/_api/generated/cfg_totp/client/types.gen.ts +0 -217
- package/src/_api/generated/cfg_totp/client/utils.gen.ts +0 -318
- package/src/_api/generated/cfg_totp/client.gen.ts +0 -16
- package/src/_api/generated/cfg_totp/core/auth.gen.ts +0 -41
- package/src/_api/generated/cfg_totp/core/bodySerializer.gen.ts +0 -82
- package/src/_api/generated/cfg_totp/core/params.gen.ts +0 -169
- package/src/_api/generated/cfg_totp/core/pathSerializer.gen.ts +0 -171
- package/src/_api/generated/cfg_totp/core/queryKeySerializer.gen.ts +0 -117
- package/src/_api/generated/cfg_totp/core/serverSentEvents.gen.ts +0 -242
- package/src/_api/generated/cfg_totp/core/types.gen.ts +0 -104
- package/src/_api/generated/cfg_totp/core/utils.gen.ts +0 -140
- package/src/_api/generated/cfg_totp/schemas/SetupRequest.ts +0 -11
- package/src/_api/generated/cfg_totp/sdk.gen.ts +0 -432
- package/src/_api/generated/cfg_totp/types.gen.ts +0 -479
- /package/src/_api/generated/{cfg_accounts → _cfg_accounts}/schemas/index.ts +0 -0
- /package/src/_api/generated/{cfg_centrifugo → _cfg_centrifugo}/schemas/index.ts +0 -0
- /package/src/_api/generated/{cfg_totp → _cfg_totp}/schemas/index.ts +0 -0
- /package/src/_api/generated/{cfg_accounts/client → client}/client.gen.ts +0 -0
- /package/src/_api/generated/{cfg_accounts/client → client}/index.ts +0 -0
- /package/src/_api/generated/{cfg_accounts/client → client}/types.gen.ts +0 -0
- /package/src/_api/generated/{cfg_accounts/client → client}/utils.gen.ts +0 -0
- /package/src/_api/generated/{cfg_accounts/core → core}/auth.gen.ts +0 -0
- /package/src/_api/generated/{cfg_accounts/core → core}/bodySerializer.gen.ts +0 -0
- /package/src/_api/generated/{cfg_accounts/core → core}/params.gen.ts +0 -0
- /package/src/_api/generated/{cfg_accounts/core → core}/pathSerializer.gen.ts +0 -0
- /package/src/_api/generated/{cfg_accounts/core → core}/queryKeySerializer.gen.ts +0 -0
- /package/src/_api/generated/{cfg_accounts/core → core}/serverSentEvents.gen.ts +0 -0
- /package/src/_api/generated/{cfg_accounts/core → core}/types.gen.ts +0 -0
- /package/src/_api/generated/{cfg_accounts/core → core}/utils.gen.ts +0 -0
- /package/src/_api/generated/{_shared → helpers}/errors.ts +0 -0
- /package/src/_api/generated/{_shared → helpers}/logger.ts +0 -0
- /package/src/_api/generated/{_shared → helpers}/storage.ts +0 -0
- /package/src/_api/generated/{_shared → helpers}/validation-events.ts +0 -0
package/dist/index.d.ts
CHANGED
|
@@ -1,1920 +1,1218 @@
|
|
|
1
1
|
import { ConsolaInstance } from 'consola';
|
|
2
2
|
import { ZodError } from 'zod';
|
|
3
3
|
|
|
4
|
-
type
|
|
5
|
-
|
|
4
|
+
type StorageMode = 'localStorage' | 'cookie';
|
|
5
|
+
/**
|
|
6
|
+
* Global auth/config store. All getters read live state every call —
|
|
7
|
+
* the interceptor below uses these to attach headers per-request.
|
|
8
|
+
*
|
|
9
|
+
* Default storage backend is `localStorage`. Switch to cookies (e.g.
|
|
10
|
+
* for Next.js SSR cookie access) via `auth.setStorageMode('cookie')`
|
|
11
|
+
* early in the app bootstrap.
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* import { auth } from '@your/api';
|
|
15
|
+
*
|
|
16
|
+
* // After login
|
|
17
|
+
* auth.setToken(jwt);
|
|
18
|
+
* auth.setRefreshToken(refresh);
|
|
19
|
+
*
|
|
20
|
+
* // After logout
|
|
21
|
+
* auth.clearTokens();
|
|
22
|
+
*
|
|
23
|
+
* // Switch to cookie storage (call once during app init)
|
|
24
|
+
* auth.setStorageMode('cookie');
|
|
25
|
+
*/
|
|
26
|
+
declare const auth: {
|
|
27
|
+
getStorageMode(): StorageMode;
|
|
6
28
|
/**
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
* @default 'header'
|
|
29
|
+
* Switch the storage backend. Existing values in the *previous*
|
|
30
|
+
* backend are NOT migrated — set fresh values after switching.
|
|
10
31
|
*/
|
|
11
|
-
|
|
32
|
+
setStorageMode(mode: StorageMode): void;
|
|
33
|
+
getToken(): string | null;
|
|
34
|
+
setToken(token: string | null): void;
|
|
35
|
+
getRefreshToken(): string | null;
|
|
36
|
+
setRefreshToken(token: string | null): void;
|
|
37
|
+
clearTokens(): void;
|
|
38
|
+
isAuthenticated(): boolean;
|
|
39
|
+
/** In-memory API key. Falls back to storage, then NEXT_PUBLIC_API_KEY. */
|
|
40
|
+
getApiKey(): string | null;
|
|
41
|
+
/** In-memory only (cleared on reload). */
|
|
42
|
+
setApiKey(key: string | null): void;
|
|
43
|
+
/** Persist to active storage backend (localStorage or cookie). */
|
|
44
|
+
setApiKeyPersist(key: string | null): void;
|
|
45
|
+
clearApiKey(): void;
|
|
46
|
+
/** Override locale → falls back to NEXT_LOCALE cookie / navigator.language. */
|
|
47
|
+
getLocale(): string | null;
|
|
48
|
+
setLocale(locale: string | null): void;
|
|
49
|
+
getBaseUrl(): string;
|
|
50
|
+
setBaseUrl(url: string | null): void;
|
|
51
|
+
getWithCredentials(): boolean;
|
|
52
|
+
setWithCredentials(value: boolean): void;
|
|
12
53
|
/**
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
54
|
+
* Register a callback fired on every 401 response. Use this to wire
|
|
55
|
+
* a token-refresh flow or a forced logout. Setting `null` removes
|
|
56
|
+
* the handler.
|
|
16
57
|
*/
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
58
|
+
onUnauthorized(cb: ((response: Response) => void) | null): void;
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
interface RequestLog {
|
|
62
|
+
method: string;
|
|
63
|
+
url: string;
|
|
64
|
+
headers?: Record<string, string>;
|
|
65
|
+
body?: any;
|
|
66
|
+
timestamp: number;
|
|
67
|
+
}
|
|
68
|
+
interface ResponseLog {
|
|
69
|
+
status: number;
|
|
70
|
+
statusText: string;
|
|
71
|
+
data?: any;
|
|
72
|
+
duration: number;
|
|
73
|
+
timestamp: number;
|
|
74
|
+
}
|
|
75
|
+
interface ErrorLog {
|
|
76
|
+
message: string;
|
|
77
|
+
statusCode?: number;
|
|
78
|
+
fieldErrors?: Record<string, string[]>;
|
|
79
|
+
duration: number;
|
|
80
|
+
timestamp: number;
|
|
81
|
+
}
|
|
82
|
+
interface LoggerConfig {
|
|
83
|
+
enabled: boolean;
|
|
84
|
+
logRequests: boolean;
|
|
85
|
+
logResponses: boolean;
|
|
86
|
+
logErrors: boolean;
|
|
87
|
+
logBodies: boolean;
|
|
88
|
+
logHeaders: boolean;
|
|
89
|
+
consola?: ConsolaInstance;
|
|
90
|
+
}
|
|
91
|
+
declare class APILogger {
|
|
92
|
+
private config;
|
|
93
|
+
private consola;
|
|
94
|
+
constructor(config?: Partial<LoggerConfig>);
|
|
95
|
+
enable(): void;
|
|
96
|
+
disable(): void;
|
|
97
|
+
setConfig(config: Partial<LoggerConfig>): void;
|
|
98
|
+
private filterHeaders;
|
|
99
|
+
logRequest(request: RequestLog): void;
|
|
100
|
+
logResponse(request: RequestLog, response: ResponseLog): void;
|
|
101
|
+
logError(request: RequestLog, error: ErrorLog): void;
|
|
102
|
+
info(message: string, ...args: any[]): void;
|
|
103
|
+
warn(message: string, ...args: any[]): void;
|
|
104
|
+
error(message: string, ...args: any[]): void;
|
|
105
|
+
debug(message: string, ...args: any[]): void;
|
|
106
|
+
success(message: string, ...args: any[]): void;
|
|
107
|
+
withTag(tag: string): ConsolaInstance;
|
|
20
108
|
}
|
|
109
|
+
declare const defaultLogger: APILogger;
|
|
21
110
|
|
|
22
|
-
interface
|
|
23
|
-
/**
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
111
|
+
interface APIOptions$2 {
|
|
112
|
+
/** Logger config (defaults to dev-only). */
|
|
113
|
+
logger?: Partial<LoggerConfig>;
|
|
114
|
+
/** Locale for `Accept-Language`. If omitted, auto-detected from cookie/navigator. */
|
|
115
|
+
locale?: string;
|
|
116
|
+
/** API key sent as `X-API-Key`. Falls back to NEXT_PUBLIC_API_KEY. */
|
|
117
|
+
apiKey?: string;
|
|
118
|
+
/** Send Django session/CSRF cookies cross-origin. Defaults to true. */
|
|
119
|
+
withCredentials?: boolean;
|
|
120
|
+
}
|
|
121
|
+
/**
|
|
122
|
+
* Per-group ergonomic facade.
|
|
123
|
+
*
|
|
124
|
+
* Calling `setToken/setApiKey/setLocale/setBaseUrl` proxies to the
|
|
125
|
+
* global `auth` store — the change applies to **every** group's API
|
|
126
|
+
* instance because they share the same HTTP client and interceptor.
|
|
127
|
+
*
|
|
128
|
+
* Use the global `auth` object directly when you don't need a group
|
|
129
|
+
* facade: `import { auth } from '@your/api'; auth.setToken(jwt);`
|
|
130
|
+
*/
|
|
131
|
+
declare class API$2 {
|
|
132
|
+
readonly logger: APILogger;
|
|
133
|
+
constructor(_baseUrl?: string, opts?: APIOptions$2);
|
|
134
|
+
getBaseUrl(): string;
|
|
135
|
+
setBaseUrl(url: string): void;
|
|
136
|
+
getToken(): string | null;
|
|
137
|
+
setToken(token: string | null): void;
|
|
138
|
+
getRefreshToken(): string | null;
|
|
139
|
+
setRefreshToken(token: string | null): void;
|
|
140
|
+
clearToken(): void;
|
|
141
|
+
isAuthenticated(): boolean;
|
|
142
|
+
getLocale(): string | null;
|
|
143
|
+
setLocale(locale: string | null): void;
|
|
144
|
+
getApiKey(): string | null;
|
|
145
|
+
setApiKey(key: string | null): void;
|
|
28
146
|
}
|
|
29
|
-
type ArrayStyle$2 = 'form' | 'spaceDelimited' | 'pipeDelimited';
|
|
30
|
-
type ObjectStyle$2 = 'form' | 'deepObject';
|
|
31
147
|
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
148
|
+
interface StorageAdapter {
|
|
149
|
+
getItem(key: string): string | null;
|
|
150
|
+
setItem(key: string, value: string): void;
|
|
151
|
+
removeItem(key: string): void;
|
|
152
|
+
clear?(): void;
|
|
153
|
+
}
|
|
154
|
+
/** Browser localStorage. Falls back to no-op on SSR / private mode. */
|
|
155
|
+
declare class LocalStorageAdapter implements StorageAdapter {
|
|
156
|
+
getItem(key: string): string | null;
|
|
157
|
+
setItem(key: string, value: string): void;
|
|
158
|
+
removeItem(key: string): void;
|
|
159
|
+
clear(): void;
|
|
160
|
+
}
|
|
161
|
+
/** In-memory store. Use for SSR, Electron main process, or tests. */
|
|
162
|
+
declare class MemoryStorageAdapter implements StorageAdapter {
|
|
163
|
+
private store;
|
|
164
|
+
getItem(key: string): string | null;
|
|
165
|
+
setItem(key: string, value: string): void;
|
|
166
|
+
removeItem(key: string): void;
|
|
167
|
+
clear(): void;
|
|
168
|
+
}
|
|
169
|
+
/** Cookie-backed storage (browser only). */
|
|
170
|
+
declare class CookieStorageAdapter implements StorageAdapter {
|
|
171
|
+
private opts;
|
|
172
|
+
constructor(opts?: {
|
|
173
|
+
domain?: string;
|
|
174
|
+
path?: string;
|
|
175
|
+
secure?: boolean;
|
|
176
|
+
sameSite?: "Strict" | "Lax" | "None";
|
|
177
|
+
maxAgeSeconds?: number;
|
|
178
|
+
});
|
|
179
|
+
getItem(key: string): string | null;
|
|
180
|
+
setItem(key: string, value: string): void;
|
|
181
|
+
removeItem(key: string): void;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
/**
|
|
185
|
+
* HTTP API Error with DRF field-specific validation errors.
|
|
186
|
+
*/
|
|
187
|
+
declare class APIError extends Error {
|
|
188
|
+
statusCode: number;
|
|
189
|
+
statusText: string;
|
|
190
|
+
response: any;
|
|
191
|
+
url: string;
|
|
192
|
+
constructor(statusCode: number, statusText: string, response: any, url: string, message?: string);
|
|
193
|
+
get details(): Record<string, any> | null;
|
|
194
|
+
get fieldErrors(): Record<string, string[]> | null;
|
|
195
|
+
get errorMessage(): string;
|
|
196
|
+
get isValidationError(): boolean;
|
|
197
|
+
get isAuthError(): boolean;
|
|
198
|
+
get isPermissionError(): boolean;
|
|
199
|
+
get isNotFoundError(): boolean;
|
|
200
|
+
get isServerError(): boolean;
|
|
201
|
+
}
|
|
202
|
+
/** Network Error (connection failed, timeout, etc.) */
|
|
203
|
+
declare class NetworkError extends Error {
|
|
204
|
+
url: string;
|
|
205
|
+
originalError?: Error;
|
|
206
|
+
constructor(message: string, url: string, originalError?: Error);
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
interface ValidationErrorDetail {
|
|
210
|
+
operation: string;
|
|
211
|
+
path: string;
|
|
212
|
+
method: string;
|
|
213
|
+
error: ZodError;
|
|
214
|
+
response: any;
|
|
215
|
+
timestamp: Date;
|
|
216
|
+
}
|
|
217
|
+
type ValidationErrorEvent = CustomEvent<ValidationErrorDetail>;
|
|
218
|
+
declare function dispatchValidationError(detail: ValidationErrorDetail): void;
|
|
219
|
+
declare function onValidationError(callback: (detail: ValidationErrorDetail) => void): () => void;
|
|
220
|
+
declare function formatZodError(error: ZodError): string;
|
|
221
|
+
|
|
222
|
+
type ClientOptions$1 = {
|
|
223
|
+
baseUrl: 'http://localhost:8000' | (string & {});
|
|
38
224
|
};
|
|
39
|
-
|
|
225
|
+
/**
|
|
226
|
+
* Response serializer for account deletion.
|
|
227
|
+
*/
|
|
228
|
+
type AccountDeleteResponse = {
|
|
40
229
|
/**
|
|
41
|
-
*
|
|
42
|
-
* override the global array/object settings for specific parameter names.
|
|
230
|
+
* Human-readable message about the deletion
|
|
43
231
|
*/
|
|
44
|
-
|
|
45
|
-
};
|
|
46
|
-
|
|
47
|
-
type HttpMethod$2 = 'connect' | 'delete' | 'get' | 'head' | 'options' | 'patch' | 'post' | 'put' | 'trace';
|
|
48
|
-
type Client$5<RequestFn = never, Config = unknown, MethodFn = never, BuildUrlFn = never, SseFn = never> = {
|
|
232
|
+
message: string;
|
|
49
233
|
/**
|
|
50
|
-
*
|
|
234
|
+
* Whether the account was successfully deleted
|
|
51
235
|
*/
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
} & ([SseFn] extends [never] ? {
|
|
59
|
-
sse?: never;
|
|
60
|
-
} : {
|
|
61
|
-
sse: {
|
|
62
|
-
[K in HttpMethod$2]: SseFn;
|
|
63
|
-
};
|
|
64
|
-
});
|
|
65
|
-
interface Config$5 {
|
|
236
|
+
success: boolean;
|
|
237
|
+
};
|
|
238
|
+
/**
|
|
239
|
+
* Serializer for regenerating backup codes.
|
|
240
|
+
*/
|
|
241
|
+
type BackupCodesRegenerateRequest = {
|
|
66
242
|
/**
|
|
67
|
-
*
|
|
68
|
-
* added to the request payload as defined by its `security` array.
|
|
243
|
+
* TOTP code for verification
|
|
69
244
|
*/
|
|
70
|
-
|
|
245
|
+
code: string;
|
|
246
|
+
};
|
|
247
|
+
/**
|
|
248
|
+
* Response serializer for backup codes regeneration.
|
|
249
|
+
*/
|
|
250
|
+
type BackupCodesRegenerateResponse = {
|
|
71
251
|
/**
|
|
72
|
-
*
|
|
73
|
-
* {@link JSON.stringify()} will be used.
|
|
252
|
+
* List of new backup codes (save these!)
|
|
74
253
|
*/
|
|
75
|
-
|
|
254
|
+
backup_codes: Array<string>;
|
|
76
255
|
/**
|
|
77
|
-
*
|
|
78
|
-
* `Headers` object with.
|
|
79
|
-
*
|
|
80
|
-
* {@link https://developer.mozilla.org/docs/Web/API/Headers/Headers#init See more}
|
|
256
|
+
* Warning about previous codes being invalidated
|
|
81
257
|
*/
|
|
82
|
-
|
|
258
|
+
warning: string;
|
|
259
|
+
};
|
|
260
|
+
/**
|
|
261
|
+
* Serializer for backup codes status.
|
|
262
|
+
*/
|
|
263
|
+
type BackupCodesStatus = {
|
|
83
264
|
/**
|
|
84
|
-
*
|
|
85
|
-
*
|
|
86
|
-
* {@link https://developer.mozilla.org/docs/Web/API/fetch#method See more}
|
|
265
|
+
* Number of unused backup codes
|
|
87
266
|
*/
|
|
88
|
-
|
|
267
|
+
remaining_count: number;
|
|
89
268
|
/**
|
|
90
|
-
*
|
|
91
|
-
* will be exploded in form style, objects will be exploded in deepObject
|
|
92
|
-
* style, and reserved characters are percent-encoded.
|
|
93
|
-
*
|
|
94
|
-
* This method will have no effect if the native `paramsSerializer()` Axios
|
|
95
|
-
* API function is used.
|
|
96
|
-
*
|
|
97
|
-
* {@link https://swagger.io/docs/specification/serialization/#query View examples}
|
|
269
|
+
* Total number of codes generated
|
|
98
270
|
*/
|
|
99
|
-
|
|
271
|
+
total_generated: number;
|
|
100
272
|
/**
|
|
101
|
-
*
|
|
102
|
-
* the request conforms to the desired shape, so it can be safely sent to
|
|
103
|
-
* the server.
|
|
104
|
-
*/
|
|
105
|
-
requestValidator?: (data: unknown) => Promise<unknown>;
|
|
106
|
-
/**
|
|
107
|
-
* A function transforming response data before it's returned. This is useful
|
|
108
|
-
* for post-processing data, e.g., converting ISO strings into Date objects.
|
|
109
|
-
*/
|
|
110
|
-
responseTransformer?: (data: unknown) => Promise<unknown>;
|
|
111
|
-
/**
|
|
112
|
-
* A function validating response data. This is useful if you want to ensure
|
|
113
|
-
* the response conforms to the desired shape, so it can be safely passed to
|
|
114
|
-
* the transformers and returned to the user.
|
|
115
|
-
*/
|
|
116
|
-
responseValidator?: (data: unknown) => Promise<unknown>;
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
type ServerSentEventsOptions$2<TData = unknown> = Omit<RequestInit, 'method'> & Pick<Config$5, 'method' | 'responseTransformer' | 'responseValidator'> & {
|
|
120
|
-
/**
|
|
121
|
-
* Fetch API implementation. You can use this option to provide a custom
|
|
122
|
-
* fetch instance.
|
|
123
|
-
*
|
|
124
|
-
* @default globalThis.fetch
|
|
125
|
-
*/
|
|
126
|
-
fetch?: typeof fetch;
|
|
127
|
-
/**
|
|
128
|
-
* Implementing clients can call request interceptors inside this hook.
|
|
129
|
-
*/
|
|
130
|
-
onRequest?: (url: string, init: RequestInit) => Promise<Request>;
|
|
131
|
-
/**
|
|
132
|
-
* Callback invoked when a network or parsing error occurs during streaming.
|
|
133
|
-
*
|
|
134
|
-
* This option applies only if the endpoint returns a stream of events.
|
|
135
|
-
*
|
|
136
|
-
* @param error The error that occurred.
|
|
137
|
-
*/
|
|
138
|
-
onSseError?: (error: unknown) => void;
|
|
139
|
-
/**
|
|
140
|
-
* Callback invoked when an event is streamed from the server.
|
|
141
|
-
*
|
|
142
|
-
* This option applies only if the endpoint returns a stream of events.
|
|
143
|
-
*
|
|
144
|
-
* @param event Event streamed from the server.
|
|
145
|
-
* @returns Nothing (void).
|
|
146
|
-
*/
|
|
147
|
-
onSseEvent?: (event: StreamEvent$2<TData>) => void;
|
|
148
|
-
serializedBody?: RequestInit['body'];
|
|
149
|
-
/**
|
|
150
|
-
* Default retry delay in milliseconds.
|
|
151
|
-
*
|
|
152
|
-
* This option applies only if the endpoint returns a stream of events.
|
|
153
|
-
*
|
|
154
|
-
* @default 3000
|
|
155
|
-
*/
|
|
156
|
-
sseDefaultRetryDelay?: number;
|
|
157
|
-
/**
|
|
158
|
-
* Maximum number of retry attempts before giving up.
|
|
159
|
-
*/
|
|
160
|
-
sseMaxRetryAttempts?: number;
|
|
161
|
-
/**
|
|
162
|
-
* Maximum retry delay in milliseconds.
|
|
163
|
-
*
|
|
164
|
-
* Applies only when exponential backoff is used.
|
|
165
|
-
*
|
|
166
|
-
* This option applies only if the endpoint returns a stream of events.
|
|
167
|
-
*
|
|
168
|
-
* @default 30000
|
|
169
|
-
*/
|
|
170
|
-
sseMaxRetryDelay?: number;
|
|
171
|
-
/**
|
|
172
|
-
* Optional sleep function for retry backoff.
|
|
173
|
-
*
|
|
174
|
-
* Defaults to using `setTimeout`.
|
|
175
|
-
*/
|
|
176
|
-
sseSleepFn?: (ms: number) => Promise<void>;
|
|
177
|
-
url: string;
|
|
178
|
-
};
|
|
179
|
-
interface StreamEvent$2<TData = unknown> {
|
|
180
|
-
data: TData;
|
|
181
|
-
event?: string;
|
|
182
|
-
id?: string;
|
|
183
|
-
retry?: number;
|
|
184
|
-
}
|
|
185
|
-
type ServerSentEventsResult$2<TData = unknown, TReturn = void, TNext = unknown> = {
|
|
186
|
-
stream: AsyncGenerator<TData extends Record<string, unknown> ? TData[keyof TData] : TData, TReturn, TNext>;
|
|
187
|
-
};
|
|
188
|
-
|
|
189
|
-
type ErrInterceptor$2<Err, Res, Req, Options> = (error: Err,
|
|
190
|
-
/** response may be undefined due to a network error where no response object is produced */
|
|
191
|
-
response: Res | undefined,
|
|
192
|
-
/** request may be undefined, because error may be from building the request object itself */
|
|
193
|
-
request: Req | undefined, options: Options) => Err | Promise<Err>;
|
|
194
|
-
type ReqInterceptor$2<Req, Options> = (request: Req, options: Options) => Req | Promise<Req>;
|
|
195
|
-
type ResInterceptor$2<Res, Req, Options> = (response: Res, request: Req, options: Options) => Res | Promise<Res>;
|
|
196
|
-
declare class Interceptors$2<Interceptor> {
|
|
197
|
-
fns: Array<Interceptor | null>;
|
|
198
|
-
clear(): void;
|
|
199
|
-
eject(id: number | Interceptor): void;
|
|
200
|
-
exists(id: number | Interceptor): boolean;
|
|
201
|
-
getInterceptorIndex(id: number | Interceptor): number;
|
|
202
|
-
update(id: number | Interceptor, fn: Interceptor): number | Interceptor | false;
|
|
203
|
-
use(fn: Interceptor): number;
|
|
204
|
-
}
|
|
205
|
-
interface Middleware$2<Req, Res, Err, Options> {
|
|
206
|
-
error: Interceptors$2<ErrInterceptor$2<Err, Res, Req, Options>>;
|
|
207
|
-
request: Interceptors$2<ReqInterceptor$2<Req, Options>>;
|
|
208
|
-
response: Interceptors$2<ResInterceptor$2<Res, Req, Options>>;
|
|
209
|
-
}
|
|
210
|
-
|
|
211
|
-
type ResponseStyle$2 = 'data' | 'fields';
|
|
212
|
-
interface Config$4<T extends ClientOptions$5 = ClientOptions$5> extends Omit<RequestInit, 'body' | 'headers' | 'method'>, Config$5 {
|
|
213
|
-
/**
|
|
214
|
-
* Base URL for all requests made by this client.
|
|
215
|
-
*/
|
|
216
|
-
baseUrl?: T['baseUrl'];
|
|
217
|
-
/**
|
|
218
|
-
* Fetch API implementation. You can use this option to provide a custom
|
|
219
|
-
* fetch instance.
|
|
220
|
-
*
|
|
221
|
-
* @default globalThis.fetch
|
|
222
|
-
*/
|
|
223
|
-
fetch?: typeof fetch;
|
|
224
|
-
/**
|
|
225
|
-
* Please don't use the Fetch client for Next.js applications. The `next`
|
|
226
|
-
* options won't have any effect.
|
|
227
|
-
*
|
|
228
|
-
* Install {@link https://www.npmjs.com/package/@hey-api/client-next `@hey-api/client-next`} instead.
|
|
229
|
-
*/
|
|
230
|
-
next?: never;
|
|
231
|
-
/**
|
|
232
|
-
* Return the response data parsed in a specified format. By default, `auto`
|
|
233
|
-
* will infer the appropriate method from the `Content-Type` response header.
|
|
234
|
-
* You can override this behavior with any of the {@link Body} methods.
|
|
235
|
-
* Select `stream` if you don't want to parse response data at all.
|
|
236
|
-
*
|
|
237
|
-
* @default 'auto'
|
|
238
|
-
*/
|
|
239
|
-
parseAs?: 'arrayBuffer' | 'auto' | 'blob' | 'formData' | 'json' | 'stream' | 'text';
|
|
240
|
-
/**
|
|
241
|
-
* Should we return only data or multiple fields (data, error, response, etc.)?
|
|
242
|
-
*
|
|
243
|
-
* @default 'fields'
|
|
244
|
-
*/
|
|
245
|
-
responseStyle?: ResponseStyle$2;
|
|
246
|
-
/**
|
|
247
|
-
* Throw an error instead of returning it in the response?
|
|
248
|
-
*
|
|
249
|
-
* @default false
|
|
250
|
-
*/
|
|
251
|
-
throwOnError?: T['throwOnError'];
|
|
252
|
-
}
|
|
253
|
-
interface RequestOptions$2<TData = unknown, TResponseStyle extends ResponseStyle$2 = 'fields', ThrowOnError extends boolean = boolean, Url extends string = string> extends Config$4<{
|
|
254
|
-
responseStyle: TResponseStyle;
|
|
255
|
-
throwOnError: ThrowOnError;
|
|
256
|
-
}>, Pick<ServerSentEventsOptions$2<TData>, 'onRequest' | 'onSseError' | 'onSseEvent' | 'sseDefaultRetryDelay' | 'sseMaxRetryAttempts' | 'sseMaxRetryDelay'> {
|
|
257
|
-
/**
|
|
258
|
-
* Any body that you want to add to your request.
|
|
259
|
-
*
|
|
260
|
-
* {@link https://developer.mozilla.org/docs/Web/API/fetch#body}
|
|
261
|
-
*/
|
|
262
|
-
body?: unknown;
|
|
263
|
-
path?: Record<string, unknown>;
|
|
264
|
-
query?: Record<string, unknown>;
|
|
265
|
-
/**
|
|
266
|
-
* Security mechanism(s) to use for the request.
|
|
267
|
-
*/
|
|
268
|
-
security?: ReadonlyArray<Auth$3>;
|
|
269
|
-
url: Url;
|
|
270
|
-
}
|
|
271
|
-
interface ResolvedRequestOptions$2<TResponseStyle extends ResponseStyle$2 = 'fields', ThrowOnError extends boolean = boolean, Url extends string = string> extends RequestOptions$2<unknown, TResponseStyle, ThrowOnError, Url> {
|
|
272
|
-
headers: Headers;
|
|
273
|
-
serializedBody?: string;
|
|
274
|
-
}
|
|
275
|
-
type RequestResult$2<TData = unknown, TError = unknown, ThrowOnError extends boolean = boolean, TResponseStyle extends ResponseStyle$2 = 'fields'> = ThrowOnError extends true ? Promise<TResponseStyle extends 'data' ? TData extends Record<string, unknown> ? TData[keyof TData] : TData : {
|
|
276
|
-
data: TData extends Record<string, unknown> ? TData[keyof TData] : TData;
|
|
277
|
-
request: Request;
|
|
278
|
-
response: Response;
|
|
279
|
-
}> : Promise<TResponseStyle extends 'data' ? (TData extends Record<string, unknown> ? TData[keyof TData] : TData) | undefined : ({
|
|
280
|
-
data: TData extends Record<string, unknown> ? TData[keyof TData] : TData;
|
|
281
|
-
error: undefined;
|
|
282
|
-
} | {
|
|
283
|
-
data: undefined;
|
|
284
|
-
error: TError extends Record<string, unknown> ? TError[keyof TError] : TError;
|
|
285
|
-
}) & {
|
|
286
|
-
/** request may be undefined, because error may be from building the request object itself */
|
|
287
|
-
request?: Request;
|
|
288
|
-
/** response may be undefined, because error may be from building the request object itself or from a network error */
|
|
289
|
-
response?: Response;
|
|
290
|
-
}>;
|
|
291
|
-
interface ClientOptions$5 {
|
|
292
|
-
baseUrl?: string;
|
|
293
|
-
responseStyle?: ResponseStyle$2;
|
|
294
|
-
throwOnError?: boolean;
|
|
295
|
-
}
|
|
296
|
-
type MethodFn$2 = <TData = unknown, TError = unknown, ThrowOnError extends boolean = false, TResponseStyle extends ResponseStyle$2 = 'fields'>(options: Omit<RequestOptions$2<TData, TResponseStyle, ThrowOnError>, 'method'>) => RequestResult$2<TData, TError, ThrowOnError, TResponseStyle>;
|
|
297
|
-
type SseFn$2 = <TData = unknown, TError = unknown, ThrowOnError extends boolean = false, TResponseStyle extends ResponseStyle$2 = 'fields'>(options: Omit<RequestOptions$2<never, TResponseStyle, ThrowOnError>, 'method'>) => Promise<ServerSentEventsResult$2<TData, TError>>;
|
|
298
|
-
type RequestFn$2 = <TData = unknown, TError = unknown, ThrowOnError extends boolean = false, TResponseStyle extends ResponseStyle$2 = 'fields'>(options: Omit<RequestOptions$2<TData, TResponseStyle, ThrowOnError>, 'method'> & Pick<Required<RequestOptions$2<TData, TResponseStyle, ThrowOnError>>, 'method'>) => RequestResult$2<TData, TError, ThrowOnError, TResponseStyle>;
|
|
299
|
-
type BuildUrlFn$2 = <TData extends {
|
|
300
|
-
body?: unknown;
|
|
301
|
-
path?: Record<string, unknown>;
|
|
302
|
-
query?: Record<string, unknown>;
|
|
303
|
-
url: string;
|
|
304
|
-
}>(options: TData & Options$5<TData>) => string;
|
|
305
|
-
type Client$4 = Client$5<RequestFn$2, Config$4, MethodFn$2, BuildUrlFn$2, SseFn$2> & {
|
|
306
|
-
interceptors: Middleware$2<Request, Response, unknown, ResolvedRequestOptions$2>;
|
|
307
|
-
};
|
|
308
|
-
interface TDataShape$2 {
|
|
309
|
-
body?: unknown;
|
|
310
|
-
headers?: unknown;
|
|
311
|
-
path?: unknown;
|
|
312
|
-
query?: unknown;
|
|
313
|
-
url: string;
|
|
314
|
-
}
|
|
315
|
-
type OmitKeys$2<T, K> = Pick<T, Exclude<keyof T, K>>;
|
|
316
|
-
type Options$5<TData extends TDataShape$2 = TDataShape$2, ThrowOnError extends boolean = boolean, TResponse = unknown, TResponseStyle extends ResponseStyle$2 = 'fields'> = OmitKeys$2<RequestOptions$2<TResponse, TResponseStyle, ThrowOnError>, 'body' | 'path' | 'query' | 'url'> & ([TData] extends [never] ? unknown : Omit<TData, 'url'>);
|
|
317
|
-
|
|
318
|
-
type ClientOptions$4 = {
|
|
319
|
-
baseUrl: 'http://localhost:8000' | (string & {});
|
|
320
|
-
};
|
|
321
|
-
/**
|
|
322
|
-
* Response serializer for account deletion.
|
|
323
|
-
*/
|
|
324
|
-
type AccountDeleteResponse = {
|
|
325
|
-
/**
|
|
326
|
-
* Whether the account was successfully deleted
|
|
327
|
-
*/
|
|
328
|
-
success: boolean;
|
|
329
|
-
/**
|
|
330
|
-
* Human-readable message about the deletion
|
|
273
|
+
* Warning if running low on codes
|
|
331
274
|
*/
|
|
332
|
-
|
|
275
|
+
warning?: string | null;
|
|
333
276
|
};
|
|
334
277
|
/**
|
|
335
278
|
* Nested serializer for Centrifugo WebSocket connection token.
|
|
336
279
|
*/
|
|
337
280
|
type CentrifugoToken = {
|
|
338
|
-
/**
|
|
339
|
-
* JWT token for Centrifugo WebSocket connection
|
|
340
|
-
*/
|
|
341
|
-
token: string;
|
|
342
281
|
/**
|
|
343
282
|
* Centrifugo WebSocket URL
|
|
344
283
|
*/
|
|
345
284
|
centrifugo_url: string;
|
|
285
|
+
/**
|
|
286
|
+
* List of allowed channels for this user
|
|
287
|
+
*/
|
|
288
|
+
channels: Array<string>;
|
|
346
289
|
/**
|
|
347
290
|
* Token expiration time (ISO 8601)
|
|
348
291
|
*/
|
|
349
292
|
expires_at: string;
|
|
350
293
|
/**
|
|
351
|
-
*
|
|
294
|
+
* JWT token for Centrifugo WebSocket connection
|
|
352
295
|
*/
|
|
353
|
-
|
|
296
|
+
token: string;
|
|
354
297
|
};
|
|
355
298
|
/**
|
|
356
299
|
* Serializer for updating user profile.
|
|
357
300
|
*/
|
|
358
301
|
type CfgUserUpdateRequest = {
|
|
302
|
+
company?: string;
|
|
359
303
|
first_name?: string;
|
|
304
|
+
language?: string;
|
|
360
305
|
last_name?: string;
|
|
361
|
-
company?: string;
|
|
362
306
|
phone?: string;
|
|
363
307
|
position?: string;
|
|
364
|
-
language?: string;
|
|
365
308
|
};
|
|
366
309
|
/**
|
|
367
|
-
*
|
|
310
|
+
* Serializer for confirming 2FA setup with first code.
|
|
368
311
|
*/
|
|
369
|
-
type
|
|
312
|
+
type ConfirmSetupRequest = {
|
|
370
313
|
/**
|
|
371
|
-
*
|
|
314
|
+
* 6-digit TOTP code from authenticator app
|
|
372
315
|
*/
|
|
373
|
-
|
|
316
|
+
code: string;
|
|
374
317
|
/**
|
|
375
|
-
*
|
|
318
|
+
* Device ID from setup response
|
|
376
319
|
*/
|
|
377
|
-
|
|
320
|
+
device_id: string;
|
|
378
321
|
};
|
|
379
322
|
/**
|
|
380
|
-
* Response
|
|
323
|
+
* Response serializer for setup confirmation.
|
|
381
324
|
*/
|
|
382
|
-
type
|
|
325
|
+
type ConfirmSetupResponse = {
|
|
383
326
|
/**
|
|
384
|
-
*
|
|
327
|
+
* List of backup recovery codes (save these!)
|
|
385
328
|
*/
|
|
386
|
-
|
|
329
|
+
backup_codes: Array<string>;
|
|
387
330
|
/**
|
|
388
|
-
*
|
|
331
|
+
* Warning message about backup codes
|
|
389
332
|
*/
|
|
390
|
-
|
|
333
|
+
backup_codes_warning: string;
|
|
334
|
+
message: string;
|
|
391
335
|
};
|
|
392
336
|
/**
|
|
393
|
-
*
|
|
337
|
+
* ConnectionTokenResponse
|
|
338
|
+
*
|
|
339
|
+
* Response model for Centrifugo connection token.
|
|
394
340
|
*/
|
|
395
|
-
type
|
|
341
|
+
type ConnectionTokenResponse = {
|
|
396
342
|
/**
|
|
397
|
-
*
|
|
343
|
+
* Centrifugo Url
|
|
344
|
+
*
|
|
345
|
+
* Centrifugo WebSocket URL
|
|
398
346
|
*/
|
|
399
|
-
|
|
347
|
+
centrifugo_url: string;
|
|
400
348
|
/**
|
|
401
|
-
*
|
|
349
|
+
* Channels
|
|
350
|
+
*
|
|
351
|
+
* List of allowed channels
|
|
402
352
|
*/
|
|
403
|
-
|
|
404
|
-
/**
|
|
405
|
-
* Same redirect_uri used in authorize request. If not provided, uses config's site_url + callback_path
|
|
406
|
-
*/
|
|
407
|
-
redirect_uri?: string;
|
|
408
|
-
};
|
|
409
|
-
/**
|
|
410
|
-
* Serializer for OAuth connection info (user-facing).
|
|
411
|
-
*/
|
|
412
|
-
type OAuthConnection = {
|
|
413
|
-
readonly id: number;
|
|
353
|
+
channels: Array<string>;
|
|
414
354
|
/**
|
|
415
|
-
*
|
|
355
|
+
* Expires At
|
|
416
356
|
*
|
|
417
|
-
*
|
|
418
|
-
*/
|
|
419
|
-
readonly provider: ProviderEnum;
|
|
420
|
-
readonly provider_display: string;
|
|
421
|
-
/**
|
|
422
|
-
* Username on the OAuth provider platform
|
|
357
|
+
* Token expiration time (ISO 8601)
|
|
423
358
|
*/
|
|
424
|
-
|
|
359
|
+
expires_at: string;
|
|
425
360
|
/**
|
|
426
|
-
*
|
|
361
|
+
* Token
|
|
362
|
+
*
|
|
363
|
+
* JWT token for Centrifugo connection
|
|
427
364
|
*/
|
|
428
|
-
|
|
365
|
+
token: string;
|
|
366
|
+
};
|
|
367
|
+
/**
|
|
368
|
+
* Serializer for listing TOTP devices.
|
|
369
|
+
*/
|
|
370
|
+
type DeviceList = {
|
|
429
371
|
/**
|
|
430
|
-
*
|
|
372
|
+
* When device setup was confirmed
|
|
431
373
|
*/
|
|
432
|
-
readonly
|
|
374
|
+
readonly confirmed_at: string | null;
|
|
375
|
+
readonly created_at: string;
|
|
376
|
+
readonly id: string;
|
|
433
377
|
/**
|
|
434
|
-
*
|
|
378
|
+
* Primary device used for verification
|
|
435
379
|
*/
|
|
436
|
-
readonly
|
|
380
|
+
readonly is_primary: boolean;
|
|
437
381
|
/**
|
|
438
|
-
* Last
|
|
382
|
+
* Last successful verification
|
|
439
383
|
*/
|
|
440
|
-
readonly
|
|
441
|
-
};
|
|
442
|
-
/**
|
|
443
|
-
* Request to disconnect OAuth provider.
|
|
444
|
-
*/
|
|
445
|
-
type OAuthDisconnectRequestRequest = {
|
|
384
|
+
readonly last_used_at: string | null;
|
|
446
385
|
/**
|
|
447
|
-
*
|
|
448
|
-
*
|
|
449
|
-
* * `github` - GitHub
|
|
386
|
+
* Device name for identification
|
|
450
387
|
*/
|
|
451
|
-
|
|
388
|
+
readonly name: string;
|
|
389
|
+
readonly status: DeviceListStatusEnum;
|
|
452
390
|
};
|
|
453
391
|
/**
|
|
454
|
-
*
|
|
392
|
+
* Response serializer for device list endpoint.
|
|
455
393
|
*/
|
|
456
|
-
type
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
*/
|
|
460
|
-
error: string;
|
|
461
|
-
/**
|
|
462
|
-
* Human-readable error description
|
|
463
|
-
*/
|
|
464
|
-
error_description?: string;
|
|
394
|
+
type DeviceListResponse = {
|
|
395
|
+
devices: Array<DeviceList>;
|
|
396
|
+
has_2fa_enabled: boolean;
|
|
465
397
|
};
|
|
466
398
|
/**
|
|
467
|
-
*
|
|
399
|
+
* * `pending` - Pending Confirmation
|
|
400
|
+
* * `active` - Active
|
|
401
|
+
* * `disabled` - Disabled
|
|
468
402
|
*/
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
[key: string]: unknown;
|
|
475
|
-
}>;
|
|
476
|
-
};
|
|
403
|
+
declare enum DeviceListStatusEnum {
|
|
404
|
+
PENDING = "pending",
|
|
405
|
+
ACTIVE = "active",
|
|
406
|
+
DISABLED = "disabled"
|
|
407
|
+
}
|
|
477
408
|
/**
|
|
478
|
-
*
|
|
479
|
-
*
|
|
480
|
-
* When 2FA is required:
|
|
481
|
-
* - requires_2fa: True
|
|
482
|
-
* - session_id: UUID of 2FA verification session
|
|
483
|
-
* - access/refresh/user: null
|
|
484
|
-
*
|
|
485
|
-
* When 2FA is not required:
|
|
486
|
-
* - requires_2fa: False
|
|
487
|
-
* - session_id: null
|
|
488
|
-
* - access/refresh/user: populated
|
|
409
|
+
* Serializer for completely disabling 2FA.
|
|
489
410
|
*/
|
|
490
|
-
type
|
|
491
|
-
/**
|
|
492
|
-
* True if 2FA verification is required
|
|
493
|
-
*/
|
|
494
|
-
requires_2fa?: boolean;
|
|
495
|
-
/**
|
|
496
|
-
* 2FA session ID (only when requires_2fa=True)
|
|
497
|
-
*/
|
|
498
|
-
session_id?: string | null;
|
|
499
|
-
/**
|
|
500
|
-
* JWT access token (null when requires_2fa=True)
|
|
501
|
-
*/
|
|
502
|
-
access?: string | null;
|
|
503
|
-
/**
|
|
504
|
-
* JWT refresh token (null when requires_2fa=True)
|
|
505
|
-
*/
|
|
506
|
-
refresh?: string | null;
|
|
507
|
-
/**
|
|
508
|
-
* Authenticated user info (null when requires_2fa=True)
|
|
509
|
-
*/
|
|
510
|
-
user?: {
|
|
511
|
-
[key: string]: unknown;
|
|
512
|
-
} | null;
|
|
513
|
-
/**
|
|
514
|
-
* True if a new user was created during this OAuth flow
|
|
515
|
-
*/
|
|
516
|
-
is_new_user: boolean;
|
|
517
|
-
/**
|
|
518
|
-
* True if a new OAuth connection was created
|
|
519
|
-
*/
|
|
520
|
-
is_new_connection: boolean;
|
|
411
|
+
type DisableRequest = {
|
|
521
412
|
/**
|
|
522
|
-
*
|
|
413
|
+
* TOTP code for verification
|
|
523
414
|
*/
|
|
524
|
-
|
|
415
|
+
code: string;
|
|
525
416
|
};
|
|
526
417
|
/**
|
|
527
|
-
*
|
|
528
|
-
*
|
|
529
|
-
* error_code values:
|
|
530
|
-
* - invalid_identifier — malformed email
|
|
531
|
-
* - cooldown — too soon after last request (retry_after = seconds)
|
|
532
|
-
* - hourly_limit — hourly quota exceeded (retry_after = seconds until reset)
|
|
533
|
-
* - daily_limit — daily quota exceeded (retry_after = seconds until reset)
|
|
534
|
-
* - rate_limited — IP-level rate limit hit (no retry_after)
|
|
535
|
-
* - user_creation_failed — internal error creating account
|
|
536
|
-
* - send_failed — transport error (email / SMS)
|
|
537
|
-
* - internal_error — unexpected server error
|
|
418
|
+
* Request to start OAuth flow.
|
|
538
419
|
*/
|
|
539
|
-
type
|
|
540
|
-
/**
|
|
541
|
-
* Human-readable error message
|
|
542
|
-
*/
|
|
543
|
-
error: string;
|
|
420
|
+
type OAuthAuthorizeRequestRequest = {
|
|
544
421
|
/**
|
|
545
|
-
*
|
|
422
|
+
* URL to redirect after OAuth authorization. If not provided, uses config's site_url + callback_path
|
|
546
423
|
*/
|
|
547
|
-
|
|
424
|
+
redirect_uri?: string;
|
|
548
425
|
/**
|
|
549
|
-
*
|
|
426
|
+
* Optional source URL for registration tracking
|
|
550
427
|
*/
|
|
551
|
-
|
|
428
|
+
source_url?: string;
|
|
552
429
|
};
|
|
553
430
|
/**
|
|
554
|
-
*
|
|
431
|
+
* Response with OAuth authorization URL.
|
|
555
432
|
*/
|
|
556
|
-
type
|
|
433
|
+
type OAuthAuthorizeResponse = {
|
|
557
434
|
/**
|
|
558
|
-
*
|
|
435
|
+
* Full URL to redirect user to OAuth provider
|
|
559
436
|
*/
|
|
560
|
-
|
|
437
|
+
authorization_url: string;
|
|
561
438
|
/**
|
|
562
|
-
*
|
|
439
|
+
* State token for CSRF protection. Store this and verify on callback.
|
|
563
440
|
*/
|
|
564
|
-
|
|
441
|
+
state: string;
|
|
565
442
|
};
|
|
566
443
|
/**
|
|
567
|
-
*
|
|
444
|
+
* Request to complete OAuth flow (callback handler).
|
|
568
445
|
*/
|
|
569
|
-
type
|
|
446
|
+
type OAuthCallbackRequestRequest = {
|
|
570
447
|
/**
|
|
571
|
-
*
|
|
448
|
+
* Authorization code from OAuth provider callback
|
|
572
449
|
*/
|
|
573
|
-
|
|
574
|
-
};
|
|
575
|
-
/**
|
|
576
|
-
* Serializer for OTP verification.
|
|
577
|
-
*/
|
|
578
|
-
type OtpVerifyRequest = {
|
|
450
|
+
code: string;
|
|
579
451
|
/**
|
|
580
|
-
*
|
|
452
|
+
* Same redirect_uri used in authorize request. If not provided, uses config's site_url + callback_path
|
|
581
453
|
*/
|
|
582
|
-
|
|
583
|
-
otp: string;
|
|
454
|
+
redirect_uri?: string;
|
|
584
455
|
/**
|
|
585
|
-
*
|
|
456
|
+
* State token for CSRF verification (from authorize response)
|
|
586
457
|
*/
|
|
587
|
-
|
|
458
|
+
state: string;
|
|
588
459
|
};
|
|
589
460
|
/**
|
|
590
|
-
*
|
|
591
|
-
*
|
|
592
|
-
* When 2FA is required:
|
|
593
|
-
* - requires_2fa: True
|
|
594
|
-
* - session_id: UUID of 2FA verification session
|
|
595
|
-
* - refresh/access/user: null
|
|
596
|
-
*
|
|
597
|
-
* When 2FA is not required:
|
|
598
|
-
* - requires_2fa: False
|
|
599
|
-
* - session_id: null
|
|
600
|
-
* - refresh/access/user: populated
|
|
461
|
+
* Serializer for OAuth connection info (user-facing).
|
|
601
462
|
*/
|
|
602
|
-
type
|
|
603
|
-
/**
|
|
604
|
-
* Whether 2FA verification is required
|
|
605
|
-
*/
|
|
606
|
-
requires_2fa?: boolean;
|
|
607
|
-
/**
|
|
608
|
-
* 2FA session ID (if requires_2fa is True)
|
|
609
|
-
*/
|
|
610
|
-
session_id?: string | null;
|
|
611
|
-
/**
|
|
612
|
-
* JWT refresh token (if requires_2fa is False)
|
|
613
|
-
*/
|
|
614
|
-
refresh?: string | null;
|
|
463
|
+
type OAuthConnection = {
|
|
615
464
|
/**
|
|
616
|
-
*
|
|
465
|
+
* When this OAuth connection was created
|
|
617
466
|
*/
|
|
618
|
-
|
|
467
|
+
readonly connected_at: string;
|
|
468
|
+
readonly id: number;
|
|
619
469
|
/**
|
|
620
|
-
*
|
|
470
|
+
* Last time this OAuth connection was used for login
|
|
621
471
|
*/
|
|
622
|
-
|
|
472
|
+
readonly last_login_at: string;
|
|
623
473
|
/**
|
|
624
|
-
*
|
|
474
|
+
* OAuth provider name (github, google, etc.)
|
|
475
|
+
*
|
|
476
|
+
* * `github` - GitHub
|
|
625
477
|
*/
|
|
626
|
-
|
|
627
|
-
};
|
|
628
|
-
/**
|
|
629
|
-
* Serializer for updating user profile.
|
|
630
|
-
*/
|
|
631
|
-
type PatchedCfgUserUpdateRequest = {
|
|
632
|
-
first_name?: string;
|
|
633
|
-
last_name?: string;
|
|
634
|
-
company?: string;
|
|
635
|
-
phone?: string;
|
|
636
|
-
position?: string;
|
|
637
|
-
language?: string;
|
|
638
|
-
};
|
|
639
|
-
/**
|
|
640
|
-
* * `github` - GitHub
|
|
641
|
-
*/
|
|
642
|
-
declare enum ProviderEnum {
|
|
643
|
-
GITHUB = "github"
|
|
644
|
-
}
|
|
645
|
-
type TokenRefresh = {
|
|
646
|
-
readonly access: string;
|
|
647
|
-
refresh: string;
|
|
648
|
-
};
|
|
649
|
-
type TokenRefreshRequest = {
|
|
650
|
-
refresh: string;
|
|
651
|
-
};
|
|
652
|
-
/**
|
|
653
|
-
* Serializer for user details.
|
|
654
|
-
*/
|
|
655
|
-
type User = {
|
|
656
|
-
readonly id: number;
|
|
657
|
-
readonly email: string;
|
|
658
|
-
first_name?: string;
|
|
659
|
-
last_name?: string;
|
|
660
|
-
/**
|
|
661
|
-
* Get user's full name.
|
|
662
|
-
*/
|
|
663
|
-
readonly full_name: string;
|
|
664
|
-
/**
|
|
665
|
-
* Get user's initials for avatar fallback.
|
|
666
|
-
*/
|
|
667
|
-
readonly initials: string;
|
|
668
|
-
/**
|
|
669
|
-
* Get formatted username for display.
|
|
670
|
-
*/
|
|
671
|
-
readonly display_username: string;
|
|
672
|
-
company?: string;
|
|
673
|
-
phone?: string;
|
|
674
|
-
position?: string;
|
|
675
|
-
language?: string;
|
|
676
|
-
readonly avatar: string | null;
|
|
677
|
-
/**
|
|
678
|
-
* Staff status
|
|
679
|
-
*
|
|
680
|
-
* Designates whether the user can log into this admin site.
|
|
681
|
-
*/
|
|
682
|
-
readonly is_staff: boolean;
|
|
683
|
-
/**
|
|
684
|
-
* Superuser status
|
|
685
|
-
*
|
|
686
|
-
* Designates that this user has all permissions without explicitly assigning them.
|
|
687
|
-
*/
|
|
688
|
-
readonly is_superuser: boolean;
|
|
689
|
-
readonly date_joined: string;
|
|
690
|
-
readonly last_login: string | null;
|
|
691
|
-
readonly unanswered_messages_count: number;
|
|
692
|
-
readonly centrifugo: CentrifugoToken | null;
|
|
693
|
-
};
|
|
694
|
-
/**
|
|
695
|
-
* OTP verification response.
|
|
696
|
-
*
|
|
697
|
-
* When 2FA is required:
|
|
698
|
-
* - requires_2fa: True
|
|
699
|
-
* - session_id: UUID of 2FA verification session
|
|
700
|
-
* - refresh/access/user: null
|
|
701
|
-
*
|
|
702
|
-
* When 2FA is not required:
|
|
703
|
-
* - requires_2fa: False
|
|
704
|
-
* - session_id: null
|
|
705
|
-
* - refresh/access/user: populated
|
|
706
|
-
*/
|
|
707
|
-
type OtpVerifyResponseWritable = {
|
|
708
|
-
/**
|
|
709
|
-
* Whether 2FA verification is required
|
|
710
|
-
*/
|
|
711
|
-
requires_2fa?: boolean;
|
|
712
|
-
/**
|
|
713
|
-
* 2FA session ID (if requires_2fa is True)
|
|
714
|
-
*/
|
|
715
|
-
session_id?: string | null;
|
|
716
|
-
/**
|
|
717
|
-
* JWT refresh token (if requires_2fa is False)
|
|
718
|
-
*/
|
|
719
|
-
refresh?: string | null;
|
|
720
|
-
/**
|
|
721
|
-
* JWT access token (if requires_2fa is False)
|
|
722
|
-
*/
|
|
723
|
-
access?: string | null;
|
|
724
|
-
/**
|
|
725
|
-
* User information (if requires_2fa is False)
|
|
726
|
-
*/
|
|
727
|
-
user?: UserWritable | null;
|
|
728
|
-
/**
|
|
729
|
-
* Whether user should be prompted to enable 2FA
|
|
730
|
-
*/
|
|
731
|
-
should_prompt_2fa?: boolean;
|
|
732
|
-
};
|
|
733
|
-
type TokenRefreshWritable = {
|
|
734
|
-
refresh: string;
|
|
735
|
-
};
|
|
736
|
-
/**
|
|
737
|
-
* Serializer for user details.
|
|
738
|
-
*/
|
|
739
|
-
type UserWritable = {
|
|
740
|
-
first_name?: string;
|
|
741
|
-
last_name?: string;
|
|
742
|
-
company?: string;
|
|
743
|
-
phone?: string;
|
|
744
|
-
position?: string;
|
|
745
|
-
language?: string;
|
|
746
|
-
};
|
|
747
|
-
type CfgAccountsOauthConnectionsListData = {
|
|
748
|
-
body?: never;
|
|
749
|
-
path?: never;
|
|
750
|
-
query?: never;
|
|
751
|
-
url: '/cfg/accounts/oauth/connections/';
|
|
752
|
-
};
|
|
753
|
-
type CfgAccountsOauthConnectionsListResponses = {
|
|
754
|
-
200: Array<OAuthConnection>;
|
|
755
|
-
};
|
|
756
|
-
type CfgAccountsOauthConnectionsListResponse = CfgAccountsOauthConnectionsListResponses[keyof CfgAccountsOauthConnectionsListResponses];
|
|
757
|
-
type CfgAccountsOauthDisconnectCreateData = {
|
|
758
|
-
body: OAuthDisconnectRequestRequest;
|
|
759
|
-
path?: never;
|
|
760
|
-
query?: never;
|
|
761
|
-
url: '/cfg/accounts/oauth/disconnect/';
|
|
762
|
-
};
|
|
763
|
-
type CfgAccountsOauthDisconnectCreateErrors = {
|
|
764
|
-
400: OAuthError;
|
|
765
|
-
404: OAuthError;
|
|
766
|
-
};
|
|
767
|
-
type CfgAccountsOauthDisconnectCreateError = CfgAccountsOauthDisconnectCreateErrors[keyof CfgAccountsOauthDisconnectCreateErrors];
|
|
768
|
-
type CfgAccountsOauthDisconnectCreateResponses = {
|
|
769
|
-
200: {
|
|
770
|
-
message?: string;
|
|
771
|
-
};
|
|
772
|
-
};
|
|
773
|
-
type CfgAccountsOauthDisconnectCreateResponse = CfgAccountsOauthDisconnectCreateResponses[keyof CfgAccountsOauthDisconnectCreateResponses];
|
|
774
|
-
type CfgAccountsOauthGithubAuthorizeCreateData = {
|
|
775
|
-
body?: OAuthAuthorizeRequestRequest;
|
|
776
|
-
path?: never;
|
|
777
|
-
query?: never;
|
|
778
|
-
url: '/cfg/accounts/oauth/github/authorize/';
|
|
779
|
-
};
|
|
780
|
-
type CfgAccountsOauthGithubAuthorizeCreateErrors = {
|
|
781
|
-
503: OAuthError;
|
|
782
|
-
};
|
|
783
|
-
type CfgAccountsOauthGithubAuthorizeCreateError = CfgAccountsOauthGithubAuthorizeCreateErrors[keyof CfgAccountsOauthGithubAuthorizeCreateErrors];
|
|
784
|
-
type CfgAccountsOauthGithubAuthorizeCreateResponses = {
|
|
785
|
-
200: OAuthAuthorizeResponse;
|
|
786
|
-
};
|
|
787
|
-
type CfgAccountsOauthGithubAuthorizeCreateResponse = CfgAccountsOauthGithubAuthorizeCreateResponses[keyof CfgAccountsOauthGithubAuthorizeCreateResponses];
|
|
788
|
-
type CfgAccountsOauthGithubCallbackCreateData = {
|
|
789
|
-
body: OAuthCallbackRequestRequest;
|
|
790
|
-
path?: never;
|
|
791
|
-
query?: never;
|
|
792
|
-
url: '/cfg/accounts/oauth/github/callback/';
|
|
793
|
-
};
|
|
794
|
-
type CfgAccountsOauthGithubCallbackCreateErrors = {
|
|
795
|
-
400: OAuthError;
|
|
796
|
-
};
|
|
797
|
-
type CfgAccountsOauthGithubCallbackCreateError = CfgAccountsOauthGithubCallbackCreateErrors[keyof CfgAccountsOauthGithubCallbackCreateErrors];
|
|
798
|
-
type CfgAccountsOauthGithubCallbackCreateResponses = {
|
|
799
|
-
200: OAuthTokenResponse;
|
|
800
|
-
};
|
|
801
|
-
type CfgAccountsOauthGithubCallbackCreateResponse = CfgAccountsOauthGithubCallbackCreateResponses[keyof CfgAccountsOauthGithubCallbackCreateResponses];
|
|
802
|
-
type CfgAccountsOauthProvidersRetrieveData = {
|
|
803
|
-
body?: never;
|
|
804
|
-
path?: never;
|
|
805
|
-
query?: never;
|
|
806
|
-
url: '/cfg/accounts/oauth/providers/';
|
|
807
|
-
};
|
|
808
|
-
type CfgAccountsOauthProvidersRetrieveResponses = {
|
|
809
|
-
200: OAuthProvidersResponse;
|
|
810
|
-
};
|
|
811
|
-
type CfgAccountsOauthProvidersRetrieveResponse = CfgAccountsOauthProvidersRetrieveResponses[keyof CfgAccountsOauthProvidersRetrieveResponses];
|
|
812
|
-
type CfgAccountsOtpRequestCreateData = {
|
|
813
|
-
body: OtpRequestRequest;
|
|
814
|
-
path?: never;
|
|
815
|
-
query?: never;
|
|
816
|
-
url: '/cfg/accounts/otp/request/';
|
|
817
|
-
};
|
|
818
|
-
type CfgAccountsOtpRequestCreateErrors = {
|
|
819
|
-
400: OtpErrorResponse;
|
|
820
|
-
429: OtpErrorResponse;
|
|
821
|
-
500: OtpErrorResponse;
|
|
822
|
-
};
|
|
823
|
-
type CfgAccountsOtpRequestCreateError = CfgAccountsOtpRequestCreateErrors[keyof CfgAccountsOtpRequestCreateErrors];
|
|
824
|
-
type CfgAccountsOtpRequestCreateResponses = {
|
|
825
|
-
200: OtpRequestResponse;
|
|
826
|
-
};
|
|
827
|
-
type CfgAccountsOtpRequestCreateResponse = CfgAccountsOtpRequestCreateResponses[keyof CfgAccountsOtpRequestCreateResponses];
|
|
828
|
-
type CfgAccountsOtpVerifyCreateData = {
|
|
829
|
-
body: OtpVerifyRequest;
|
|
830
|
-
path?: never;
|
|
831
|
-
query?: never;
|
|
832
|
-
url: '/cfg/accounts/otp/verify/';
|
|
833
|
-
};
|
|
834
|
-
type CfgAccountsOtpVerifyCreateErrors = {
|
|
835
|
-
401: OtpErrorResponse;
|
|
836
|
-
429: OtpErrorResponse;
|
|
837
|
-
};
|
|
838
|
-
type CfgAccountsOtpVerifyCreateError = CfgAccountsOtpVerifyCreateErrors[keyof CfgAccountsOtpVerifyCreateErrors];
|
|
839
|
-
type CfgAccountsOtpVerifyCreateResponses = {
|
|
840
|
-
200: OtpVerifyResponse;
|
|
841
|
-
};
|
|
842
|
-
type CfgAccountsOtpVerifyCreateResponse = CfgAccountsOtpVerifyCreateResponses[keyof CfgAccountsOtpVerifyCreateResponses];
|
|
843
|
-
type CfgAccountsProfileRetrieveData = {
|
|
844
|
-
body?: never;
|
|
845
|
-
path?: never;
|
|
846
|
-
query?: never;
|
|
847
|
-
url: '/cfg/accounts/profile/';
|
|
848
|
-
};
|
|
849
|
-
type CfgAccountsProfileRetrieveErrors = {
|
|
850
|
-
/**
|
|
851
|
-
* Authentication credentials were not provided.
|
|
852
|
-
*/
|
|
853
|
-
401: unknown;
|
|
854
|
-
};
|
|
855
|
-
type CfgAccountsProfileRetrieveResponses = {
|
|
856
|
-
200: User;
|
|
857
|
-
};
|
|
858
|
-
type CfgAccountsProfileRetrieveResponse = CfgAccountsProfileRetrieveResponses[keyof CfgAccountsProfileRetrieveResponses];
|
|
859
|
-
type CfgAccountsProfileAvatarCreateData = {
|
|
860
|
-
body?: {
|
|
861
|
-
/**
|
|
862
|
-
* Avatar image file (JPEG, PNG, GIF, WebP, max 5MB)
|
|
863
|
-
*/
|
|
864
|
-
avatar: Blob | File;
|
|
865
|
-
};
|
|
866
|
-
path?: never;
|
|
867
|
-
query?: never;
|
|
868
|
-
url: '/cfg/accounts/profile/avatar/';
|
|
869
|
-
};
|
|
870
|
-
type CfgAccountsProfileAvatarCreateErrors = {
|
|
871
|
-
/**
|
|
872
|
-
* Invalid file or validation error.
|
|
873
|
-
*/
|
|
874
|
-
400: unknown;
|
|
875
|
-
/**
|
|
876
|
-
* Authentication credentials were not provided.
|
|
877
|
-
*/
|
|
878
|
-
401: unknown;
|
|
879
|
-
};
|
|
880
|
-
type CfgAccountsProfileAvatarCreateResponses = {
|
|
881
|
-
200: User;
|
|
882
|
-
};
|
|
883
|
-
type CfgAccountsProfileAvatarCreateResponse = CfgAccountsProfileAvatarCreateResponses[keyof CfgAccountsProfileAvatarCreateResponses];
|
|
884
|
-
type CfgAccountsProfileDeleteCreateData = {
|
|
885
|
-
body?: never;
|
|
886
|
-
path?: never;
|
|
887
|
-
query?: never;
|
|
888
|
-
url: '/cfg/accounts/profile/delete/';
|
|
889
|
-
};
|
|
890
|
-
type CfgAccountsProfileDeleteCreateErrors = {
|
|
891
|
-
/**
|
|
892
|
-
* Account is already deleted.
|
|
893
|
-
*/
|
|
894
|
-
400: unknown;
|
|
895
|
-
/**
|
|
896
|
-
* Authentication credentials were not provided.
|
|
897
|
-
*/
|
|
898
|
-
401: unknown;
|
|
899
|
-
};
|
|
900
|
-
type CfgAccountsProfileDeleteCreateResponses = {
|
|
901
|
-
200: AccountDeleteResponse;
|
|
902
|
-
};
|
|
903
|
-
type CfgAccountsProfileDeleteCreateResponse = CfgAccountsProfileDeleteCreateResponses[keyof CfgAccountsProfileDeleteCreateResponses];
|
|
904
|
-
type CfgAccountsProfilePartialPartialUpdateData = {
|
|
905
|
-
body?: PatchedCfgUserUpdateRequest;
|
|
906
|
-
path?: never;
|
|
907
|
-
query?: never;
|
|
908
|
-
url: '/cfg/accounts/profile/partial/';
|
|
909
|
-
};
|
|
910
|
-
type CfgAccountsProfilePartialPartialUpdateErrors = {
|
|
911
|
-
/**
|
|
912
|
-
* Invalid data provided.
|
|
913
|
-
*/
|
|
914
|
-
400: unknown;
|
|
915
|
-
/**
|
|
916
|
-
* Authentication credentials were not provided.
|
|
917
|
-
*/
|
|
918
|
-
401: unknown;
|
|
919
|
-
};
|
|
920
|
-
type CfgAccountsProfilePartialPartialUpdateResponses = {
|
|
921
|
-
200: User;
|
|
922
|
-
};
|
|
923
|
-
type CfgAccountsProfilePartialPartialUpdateResponse = CfgAccountsProfilePartialPartialUpdateResponses[keyof CfgAccountsProfilePartialPartialUpdateResponses];
|
|
924
|
-
type CfgAccountsProfilePartialUpdateData = {
|
|
925
|
-
body?: CfgUserUpdateRequest;
|
|
926
|
-
path?: never;
|
|
927
|
-
query?: never;
|
|
928
|
-
url: '/cfg/accounts/profile/partial/';
|
|
929
|
-
};
|
|
930
|
-
type CfgAccountsProfilePartialUpdateErrors = {
|
|
931
|
-
/**
|
|
932
|
-
* Invalid data provided.
|
|
933
|
-
*/
|
|
934
|
-
400: unknown;
|
|
935
|
-
/**
|
|
936
|
-
* Authentication credentials were not provided.
|
|
937
|
-
*/
|
|
938
|
-
401: unknown;
|
|
939
|
-
};
|
|
940
|
-
type CfgAccountsProfilePartialUpdateResponses = {
|
|
941
|
-
200: User;
|
|
942
|
-
};
|
|
943
|
-
type CfgAccountsProfilePartialUpdateResponse = CfgAccountsProfilePartialUpdateResponses[keyof CfgAccountsProfilePartialUpdateResponses];
|
|
944
|
-
type CfgAccountsProfileUpdatePartialUpdateData = {
|
|
945
|
-
body?: PatchedCfgUserUpdateRequest;
|
|
946
|
-
path?: never;
|
|
947
|
-
query?: never;
|
|
948
|
-
url: '/cfg/accounts/profile/update/';
|
|
949
|
-
};
|
|
950
|
-
type CfgAccountsProfileUpdatePartialUpdateErrors = {
|
|
951
|
-
/**
|
|
952
|
-
* Invalid data provided.
|
|
953
|
-
*/
|
|
954
|
-
400: unknown;
|
|
955
|
-
/**
|
|
956
|
-
* Authentication credentials were not provided.
|
|
957
|
-
*/
|
|
958
|
-
401: unknown;
|
|
959
|
-
};
|
|
960
|
-
type CfgAccountsProfileUpdatePartialUpdateResponses = {
|
|
961
|
-
200: User;
|
|
962
|
-
};
|
|
963
|
-
type CfgAccountsProfileUpdatePartialUpdateResponse = CfgAccountsProfileUpdatePartialUpdateResponses[keyof CfgAccountsProfileUpdatePartialUpdateResponses];
|
|
964
|
-
type CfgAccountsProfileUpdateUpdateData = {
|
|
965
|
-
body?: CfgUserUpdateRequest;
|
|
966
|
-
path?: never;
|
|
967
|
-
query?: never;
|
|
968
|
-
url: '/cfg/accounts/profile/update/';
|
|
969
|
-
};
|
|
970
|
-
type CfgAccountsProfileUpdateUpdateErrors = {
|
|
971
|
-
/**
|
|
972
|
-
* Invalid data provided.
|
|
973
|
-
*/
|
|
974
|
-
400: unknown;
|
|
975
|
-
/**
|
|
976
|
-
* Authentication credentials were not provided.
|
|
977
|
-
*/
|
|
978
|
-
401: unknown;
|
|
979
|
-
};
|
|
980
|
-
type CfgAccountsProfileUpdateUpdateResponses = {
|
|
981
|
-
200: User;
|
|
982
|
-
};
|
|
983
|
-
type CfgAccountsProfileUpdateUpdateResponse = CfgAccountsProfileUpdateUpdateResponses[keyof CfgAccountsProfileUpdateUpdateResponses];
|
|
984
|
-
type CfgAccountsTokenRefreshCreateData = {
|
|
985
|
-
body: TokenRefreshRequest;
|
|
986
|
-
path?: never;
|
|
987
|
-
query?: never;
|
|
988
|
-
url: '/cfg/accounts/token/refresh/';
|
|
989
|
-
};
|
|
990
|
-
type CfgAccountsTokenRefreshCreateResponses = {
|
|
991
|
-
200: TokenRefresh;
|
|
992
|
-
};
|
|
993
|
-
type CfgAccountsTokenRefreshCreateResponse = CfgAccountsTokenRefreshCreateResponses[keyof CfgAccountsTokenRefreshCreateResponses];
|
|
994
|
-
|
|
995
|
-
type types_gen$2_AccountDeleteResponse = AccountDeleteResponse;
|
|
996
|
-
type types_gen$2_CentrifugoToken = CentrifugoToken;
|
|
997
|
-
type types_gen$2_CfgAccountsOauthConnectionsListData = CfgAccountsOauthConnectionsListData;
|
|
998
|
-
type types_gen$2_CfgAccountsOauthConnectionsListResponse = CfgAccountsOauthConnectionsListResponse;
|
|
999
|
-
type types_gen$2_CfgAccountsOauthConnectionsListResponses = CfgAccountsOauthConnectionsListResponses;
|
|
1000
|
-
type types_gen$2_CfgAccountsOauthDisconnectCreateData = CfgAccountsOauthDisconnectCreateData;
|
|
1001
|
-
type types_gen$2_CfgAccountsOauthDisconnectCreateError = CfgAccountsOauthDisconnectCreateError;
|
|
1002
|
-
type types_gen$2_CfgAccountsOauthDisconnectCreateErrors = CfgAccountsOauthDisconnectCreateErrors;
|
|
1003
|
-
type types_gen$2_CfgAccountsOauthDisconnectCreateResponse = CfgAccountsOauthDisconnectCreateResponse;
|
|
1004
|
-
type types_gen$2_CfgAccountsOauthDisconnectCreateResponses = CfgAccountsOauthDisconnectCreateResponses;
|
|
1005
|
-
type types_gen$2_CfgAccountsOauthGithubAuthorizeCreateData = CfgAccountsOauthGithubAuthorizeCreateData;
|
|
1006
|
-
type types_gen$2_CfgAccountsOauthGithubAuthorizeCreateError = CfgAccountsOauthGithubAuthorizeCreateError;
|
|
1007
|
-
type types_gen$2_CfgAccountsOauthGithubAuthorizeCreateErrors = CfgAccountsOauthGithubAuthorizeCreateErrors;
|
|
1008
|
-
type types_gen$2_CfgAccountsOauthGithubAuthorizeCreateResponse = CfgAccountsOauthGithubAuthorizeCreateResponse;
|
|
1009
|
-
type types_gen$2_CfgAccountsOauthGithubAuthorizeCreateResponses = CfgAccountsOauthGithubAuthorizeCreateResponses;
|
|
1010
|
-
type types_gen$2_CfgAccountsOauthGithubCallbackCreateData = CfgAccountsOauthGithubCallbackCreateData;
|
|
1011
|
-
type types_gen$2_CfgAccountsOauthGithubCallbackCreateError = CfgAccountsOauthGithubCallbackCreateError;
|
|
1012
|
-
type types_gen$2_CfgAccountsOauthGithubCallbackCreateErrors = CfgAccountsOauthGithubCallbackCreateErrors;
|
|
1013
|
-
type types_gen$2_CfgAccountsOauthGithubCallbackCreateResponse = CfgAccountsOauthGithubCallbackCreateResponse;
|
|
1014
|
-
type types_gen$2_CfgAccountsOauthGithubCallbackCreateResponses = CfgAccountsOauthGithubCallbackCreateResponses;
|
|
1015
|
-
type types_gen$2_CfgAccountsOauthProvidersRetrieveData = CfgAccountsOauthProvidersRetrieveData;
|
|
1016
|
-
type types_gen$2_CfgAccountsOauthProvidersRetrieveResponse = CfgAccountsOauthProvidersRetrieveResponse;
|
|
1017
|
-
type types_gen$2_CfgAccountsOauthProvidersRetrieveResponses = CfgAccountsOauthProvidersRetrieveResponses;
|
|
1018
|
-
type types_gen$2_CfgAccountsOtpRequestCreateData = CfgAccountsOtpRequestCreateData;
|
|
1019
|
-
type types_gen$2_CfgAccountsOtpRequestCreateError = CfgAccountsOtpRequestCreateError;
|
|
1020
|
-
type types_gen$2_CfgAccountsOtpRequestCreateErrors = CfgAccountsOtpRequestCreateErrors;
|
|
1021
|
-
type types_gen$2_CfgAccountsOtpRequestCreateResponse = CfgAccountsOtpRequestCreateResponse;
|
|
1022
|
-
type types_gen$2_CfgAccountsOtpRequestCreateResponses = CfgAccountsOtpRequestCreateResponses;
|
|
1023
|
-
type types_gen$2_CfgAccountsOtpVerifyCreateData = CfgAccountsOtpVerifyCreateData;
|
|
1024
|
-
type types_gen$2_CfgAccountsOtpVerifyCreateError = CfgAccountsOtpVerifyCreateError;
|
|
1025
|
-
type types_gen$2_CfgAccountsOtpVerifyCreateErrors = CfgAccountsOtpVerifyCreateErrors;
|
|
1026
|
-
type types_gen$2_CfgAccountsOtpVerifyCreateResponse = CfgAccountsOtpVerifyCreateResponse;
|
|
1027
|
-
type types_gen$2_CfgAccountsOtpVerifyCreateResponses = CfgAccountsOtpVerifyCreateResponses;
|
|
1028
|
-
type types_gen$2_CfgAccountsProfileAvatarCreateData = CfgAccountsProfileAvatarCreateData;
|
|
1029
|
-
type types_gen$2_CfgAccountsProfileAvatarCreateErrors = CfgAccountsProfileAvatarCreateErrors;
|
|
1030
|
-
type types_gen$2_CfgAccountsProfileAvatarCreateResponse = CfgAccountsProfileAvatarCreateResponse;
|
|
1031
|
-
type types_gen$2_CfgAccountsProfileAvatarCreateResponses = CfgAccountsProfileAvatarCreateResponses;
|
|
1032
|
-
type types_gen$2_CfgAccountsProfileDeleteCreateData = CfgAccountsProfileDeleteCreateData;
|
|
1033
|
-
type types_gen$2_CfgAccountsProfileDeleteCreateErrors = CfgAccountsProfileDeleteCreateErrors;
|
|
1034
|
-
type types_gen$2_CfgAccountsProfileDeleteCreateResponse = CfgAccountsProfileDeleteCreateResponse;
|
|
1035
|
-
type types_gen$2_CfgAccountsProfileDeleteCreateResponses = CfgAccountsProfileDeleteCreateResponses;
|
|
1036
|
-
type types_gen$2_CfgAccountsProfilePartialPartialUpdateData = CfgAccountsProfilePartialPartialUpdateData;
|
|
1037
|
-
type types_gen$2_CfgAccountsProfilePartialPartialUpdateErrors = CfgAccountsProfilePartialPartialUpdateErrors;
|
|
1038
|
-
type types_gen$2_CfgAccountsProfilePartialPartialUpdateResponse = CfgAccountsProfilePartialPartialUpdateResponse;
|
|
1039
|
-
type types_gen$2_CfgAccountsProfilePartialPartialUpdateResponses = CfgAccountsProfilePartialPartialUpdateResponses;
|
|
1040
|
-
type types_gen$2_CfgAccountsProfilePartialUpdateData = CfgAccountsProfilePartialUpdateData;
|
|
1041
|
-
type types_gen$2_CfgAccountsProfilePartialUpdateErrors = CfgAccountsProfilePartialUpdateErrors;
|
|
1042
|
-
type types_gen$2_CfgAccountsProfilePartialUpdateResponse = CfgAccountsProfilePartialUpdateResponse;
|
|
1043
|
-
type types_gen$2_CfgAccountsProfilePartialUpdateResponses = CfgAccountsProfilePartialUpdateResponses;
|
|
1044
|
-
type types_gen$2_CfgAccountsProfileRetrieveData = CfgAccountsProfileRetrieveData;
|
|
1045
|
-
type types_gen$2_CfgAccountsProfileRetrieveErrors = CfgAccountsProfileRetrieveErrors;
|
|
1046
|
-
type types_gen$2_CfgAccountsProfileRetrieveResponse = CfgAccountsProfileRetrieveResponse;
|
|
1047
|
-
type types_gen$2_CfgAccountsProfileRetrieveResponses = CfgAccountsProfileRetrieveResponses;
|
|
1048
|
-
type types_gen$2_CfgAccountsProfileUpdatePartialUpdateData = CfgAccountsProfileUpdatePartialUpdateData;
|
|
1049
|
-
type types_gen$2_CfgAccountsProfileUpdatePartialUpdateErrors = CfgAccountsProfileUpdatePartialUpdateErrors;
|
|
1050
|
-
type types_gen$2_CfgAccountsProfileUpdatePartialUpdateResponse = CfgAccountsProfileUpdatePartialUpdateResponse;
|
|
1051
|
-
type types_gen$2_CfgAccountsProfileUpdatePartialUpdateResponses = CfgAccountsProfileUpdatePartialUpdateResponses;
|
|
1052
|
-
type types_gen$2_CfgAccountsProfileUpdateUpdateData = CfgAccountsProfileUpdateUpdateData;
|
|
1053
|
-
type types_gen$2_CfgAccountsProfileUpdateUpdateErrors = CfgAccountsProfileUpdateUpdateErrors;
|
|
1054
|
-
type types_gen$2_CfgAccountsProfileUpdateUpdateResponse = CfgAccountsProfileUpdateUpdateResponse;
|
|
1055
|
-
type types_gen$2_CfgAccountsProfileUpdateUpdateResponses = CfgAccountsProfileUpdateUpdateResponses;
|
|
1056
|
-
type types_gen$2_CfgAccountsTokenRefreshCreateData = CfgAccountsTokenRefreshCreateData;
|
|
1057
|
-
type types_gen$2_CfgAccountsTokenRefreshCreateResponse = CfgAccountsTokenRefreshCreateResponse;
|
|
1058
|
-
type types_gen$2_CfgAccountsTokenRefreshCreateResponses = CfgAccountsTokenRefreshCreateResponses;
|
|
1059
|
-
type types_gen$2_CfgUserUpdateRequest = CfgUserUpdateRequest;
|
|
1060
|
-
type types_gen$2_OAuthAuthorizeRequestRequest = OAuthAuthorizeRequestRequest;
|
|
1061
|
-
type types_gen$2_OAuthAuthorizeResponse = OAuthAuthorizeResponse;
|
|
1062
|
-
type types_gen$2_OAuthCallbackRequestRequest = OAuthCallbackRequestRequest;
|
|
1063
|
-
type types_gen$2_OAuthConnection = OAuthConnection;
|
|
1064
|
-
type types_gen$2_OAuthDisconnectRequestRequest = OAuthDisconnectRequestRequest;
|
|
1065
|
-
type types_gen$2_OAuthError = OAuthError;
|
|
1066
|
-
type types_gen$2_OAuthProvidersResponse = OAuthProvidersResponse;
|
|
1067
|
-
type types_gen$2_OAuthTokenResponse = OAuthTokenResponse;
|
|
1068
|
-
type types_gen$2_OtpErrorResponse = OtpErrorResponse;
|
|
1069
|
-
type types_gen$2_OtpRequestRequest = OtpRequestRequest;
|
|
1070
|
-
type types_gen$2_OtpRequestResponse = OtpRequestResponse;
|
|
1071
|
-
type types_gen$2_OtpVerifyRequest = OtpVerifyRequest;
|
|
1072
|
-
type types_gen$2_OtpVerifyResponse = OtpVerifyResponse;
|
|
1073
|
-
type types_gen$2_OtpVerifyResponseWritable = OtpVerifyResponseWritable;
|
|
1074
|
-
type types_gen$2_PatchedCfgUserUpdateRequest = PatchedCfgUserUpdateRequest;
|
|
1075
|
-
type types_gen$2_ProviderEnum = ProviderEnum;
|
|
1076
|
-
declare const types_gen$2_ProviderEnum: typeof ProviderEnum;
|
|
1077
|
-
type types_gen$2_TokenRefresh = TokenRefresh;
|
|
1078
|
-
type types_gen$2_TokenRefreshRequest = TokenRefreshRequest;
|
|
1079
|
-
type types_gen$2_TokenRefreshWritable = TokenRefreshWritable;
|
|
1080
|
-
type types_gen$2_User = User;
|
|
1081
|
-
type types_gen$2_UserWritable = UserWritable;
|
|
1082
|
-
declare namespace types_gen$2 {
|
|
1083
|
-
export { type types_gen$2_AccountDeleteResponse as AccountDeleteResponse, type types_gen$2_CentrifugoToken as CentrifugoToken, type types_gen$2_CfgAccountsOauthConnectionsListData as CfgAccountsOauthConnectionsListData, type types_gen$2_CfgAccountsOauthConnectionsListResponse as CfgAccountsOauthConnectionsListResponse, type types_gen$2_CfgAccountsOauthConnectionsListResponses as CfgAccountsOauthConnectionsListResponses, type types_gen$2_CfgAccountsOauthDisconnectCreateData as CfgAccountsOauthDisconnectCreateData, type types_gen$2_CfgAccountsOauthDisconnectCreateError as CfgAccountsOauthDisconnectCreateError, type types_gen$2_CfgAccountsOauthDisconnectCreateErrors as CfgAccountsOauthDisconnectCreateErrors, type types_gen$2_CfgAccountsOauthDisconnectCreateResponse as CfgAccountsOauthDisconnectCreateResponse, type types_gen$2_CfgAccountsOauthDisconnectCreateResponses as CfgAccountsOauthDisconnectCreateResponses, type types_gen$2_CfgAccountsOauthGithubAuthorizeCreateData as CfgAccountsOauthGithubAuthorizeCreateData, type types_gen$2_CfgAccountsOauthGithubAuthorizeCreateError as CfgAccountsOauthGithubAuthorizeCreateError, type types_gen$2_CfgAccountsOauthGithubAuthorizeCreateErrors as CfgAccountsOauthGithubAuthorizeCreateErrors, type types_gen$2_CfgAccountsOauthGithubAuthorizeCreateResponse as CfgAccountsOauthGithubAuthorizeCreateResponse, type types_gen$2_CfgAccountsOauthGithubAuthorizeCreateResponses as CfgAccountsOauthGithubAuthorizeCreateResponses, type types_gen$2_CfgAccountsOauthGithubCallbackCreateData as CfgAccountsOauthGithubCallbackCreateData, type types_gen$2_CfgAccountsOauthGithubCallbackCreateError as CfgAccountsOauthGithubCallbackCreateError, type types_gen$2_CfgAccountsOauthGithubCallbackCreateErrors as CfgAccountsOauthGithubCallbackCreateErrors, type types_gen$2_CfgAccountsOauthGithubCallbackCreateResponse as CfgAccountsOauthGithubCallbackCreateResponse, type types_gen$2_CfgAccountsOauthGithubCallbackCreateResponses as CfgAccountsOauthGithubCallbackCreateResponses, type types_gen$2_CfgAccountsOauthProvidersRetrieveData as CfgAccountsOauthProvidersRetrieveData, type types_gen$2_CfgAccountsOauthProvidersRetrieveResponse as CfgAccountsOauthProvidersRetrieveResponse, type types_gen$2_CfgAccountsOauthProvidersRetrieveResponses as CfgAccountsOauthProvidersRetrieveResponses, type types_gen$2_CfgAccountsOtpRequestCreateData as CfgAccountsOtpRequestCreateData, type types_gen$2_CfgAccountsOtpRequestCreateError as CfgAccountsOtpRequestCreateError, type types_gen$2_CfgAccountsOtpRequestCreateErrors as CfgAccountsOtpRequestCreateErrors, type types_gen$2_CfgAccountsOtpRequestCreateResponse as CfgAccountsOtpRequestCreateResponse, type types_gen$2_CfgAccountsOtpRequestCreateResponses as CfgAccountsOtpRequestCreateResponses, type types_gen$2_CfgAccountsOtpVerifyCreateData as CfgAccountsOtpVerifyCreateData, type types_gen$2_CfgAccountsOtpVerifyCreateError as CfgAccountsOtpVerifyCreateError, type types_gen$2_CfgAccountsOtpVerifyCreateErrors as CfgAccountsOtpVerifyCreateErrors, type types_gen$2_CfgAccountsOtpVerifyCreateResponse as CfgAccountsOtpVerifyCreateResponse, type types_gen$2_CfgAccountsOtpVerifyCreateResponses as CfgAccountsOtpVerifyCreateResponses, type types_gen$2_CfgAccountsProfileAvatarCreateData as CfgAccountsProfileAvatarCreateData, type types_gen$2_CfgAccountsProfileAvatarCreateErrors as CfgAccountsProfileAvatarCreateErrors, type types_gen$2_CfgAccountsProfileAvatarCreateResponse as CfgAccountsProfileAvatarCreateResponse, type types_gen$2_CfgAccountsProfileAvatarCreateResponses as CfgAccountsProfileAvatarCreateResponses, type types_gen$2_CfgAccountsProfileDeleteCreateData as CfgAccountsProfileDeleteCreateData, type types_gen$2_CfgAccountsProfileDeleteCreateErrors as CfgAccountsProfileDeleteCreateErrors, type types_gen$2_CfgAccountsProfileDeleteCreateResponse as CfgAccountsProfileDeleteCreateResponse, type types_gen$2_CfgAccountsProfileDeleteCreateResponses as CfgAccountsProfileDeleteCreateResponses, type types_gen$2_CfgAccountsProfilePartialPartialUpdateData as CfgAccountsProfilePartialPartialUpdateData, type types_gen$2_CfgAccountsProfilePartialPartialUpdateErrors as CfgAccountsProfilePartialPartialUpdateErrors, type types_gen$2_CfgAccountsProfilePartialPartialUpdateResponse as CfgAccountsProfilePartialPartialUpdateResponse, type types_gen$2_CfgAccountsProfilePartialPartialUpdateResponses as CfgAccountsProfilePartialPartialUpdateResponses, type types_gen$2_CfgAccountsProfilePartialUpdateData as CfgAccountsProfilePartialUpdateData, type types_gen$2_CfgAccountsProfilePartialUpdateErrors as CfgAccountsProfilePartialUpdateErrors, type types_gen$2_CfgAccountsProfilePartialUpdateResponse as CfgAccountsProfilePartialUpdateResponse, type types_gen$2_CfgAccountsProfilePartialUpdateResponses as CfgAccountsProfilePartialUpdateResponses, type types_gen$2_CfgAccountsProfileRetrieveData as CfgAccountsProfileRetrieveData, type types_gen$2_CfgAccountsProfileRetrieveErrors as CfgAccountsProfileRetrieveErrors, type types_gen$2_CfgAccountsProfileRetrieveResponse as CfgAccountsProfileRetrieveResponse, type types_gen$2_CfgAccountsProfileRetrieveResponses as CfgAccountsProfileRetrieveResponses, type types_gen$2_CfgAccountsProfileUpdatePartialUpdateData as CfgAccountsProfileUpdatePartialUpdateData, type types_gen$2_CfgAccountsProfileUpdatePartialUpdateErrors as CfgAccountsProfileUpdatePartialUpdateErrors, type types_gen$2_CfgAccountsProfileUpdatePartialUpdateResponse as CfgAccountsProfileUpdatePartialUpdateResponse, type types_gen$2_CfgAccountsProfileUpdatePartialUpdateResponses as CfgAccountsProfileUpdatePartialUpdateResponses, type types_gen$2_CfgAccountsProfileUpdateUpdateData as CfgAccountsProfileUpdateUpdateData, type types_gen$2_CfgAccountsProfileUpdateUpdateErrors as CfgAccountsProfileUpdateUpdateErrors, type types_gen$2_CfgAccountsProfileUpdateUpdateResponse as CfgAccountsProfileUpdateUpdateResponse, type types_gen$2_CfgAccountsProfileUpdateUpdateResponses as CfgAccountsProfileUpdateUpdateResponses, type types_gen$2_CfgAccountsTokenRefreshCreateData as CfgAccountsTokenRefreshCreateData, type types_gen$2_CfgAccountsTokenRefreshCreateResponse as CfgAccountsTokenRefreshCreateResponse, type types_gen$2_CfgAccountsTokenRefreshCreateResponses as CfgAccountsTokenRefreshCreateResponses, type types_gen$2_CfgUserUpdateRequest as CfgUserUpdateRequest, type ClientOptions$4 as ClientOptions, type types_gen$2_OAuthAuthorizeRequestRequest as OAuthAuthorizeRequestRequest, type types_gen$2_OAuthAuthorizeResponse as OAuthAuthorizeResponse, type types_gen$2_OAuthCallbackRequestRequest as OAuthCallbackRequestRequest, type types_gen$2_OAuthConnection as OAuthConnection, type types_gen$2_OAuthDisconnectRequestRequest as OAuthDisconnectRequestRequest, type types_gen$2_OAuthError as OAuthError, type types_gen$2_OAuthProvidersResponse as OAuthProvidersResponse, type types_gen$2_OAuthTokenResponse as OAuthTokenResponse, type types_gen$2_OtpErrorResponse as OtpErrorResponse, type types_gen$2_OtpRequestRequest as OtpRequestRequest, type types_gen$2_OtpRequestResponse as OtpRequestResponse, type types_gen$2_OtpVerifyRequest as OtpVerifyRequest, type types_gen$2_OtpVerifyResponse as OtpVerifyResponse, type types_gen$2_OtpVerifyResponseWritable as OtpVerifyResponseWritable, type types_gen$2_PatchedCfgUserUpdateRequest as PatchedCfgUserUpdateRequest, types_gen$2_ProviderEnum as ProviderEnum, type types_gen$2_TokenRefresh as TokenRefresh, type types_gen$2_TokenRefreshRequest as TokenRefreshRequest, type types_gen$2_TokenRefreshWritable as TokenRefreshWritable, type types_gen$2_User as User, type types_gen$2_UserWritable as UserWritable };
|
|
1084
|
-
}
|
|
1085
|
-
|
|
1086
|
-
interface StorageAdapter {
|
|
1087
|
-
getItem(key: string): string | null;
|
|
1088
|
-
setItem(key: string, value: string): void;
|
|
1089
|
-
removeItem(key: string): void;
|
|
1090
|
-
clear?(): void;
|
|
1091
|
-
}
|
|
1092
|
-
/** Browser localStorage. Falls back to no-op on SSR / private mode. */
|
|
1093
|
-
declare class LocalStorageAdapter implements StorageAdapter {
|
|
1094
|
-
getItem(key: string): string | null;
|
|
1095
|
-
setItem(key: string, value: string): void;
|
|
1096
|
-
removeItem(key: string): void;
|
|
1097
|
-
clear(): void;
|
|
1098
|
-
}
|
|
1099
|
-
/** In-memory store. Use for SSR, Electron main process, or tests. */
|
|
1100
|
-
declare class MemoryStorageAdapter implements StorageAdapter {
|
|
1101
|
-
private store;
|
|
1102
|
-
getItem(key: string): string | null;
|
|
1103
|
-
setItem(key: string, value: string): void;
|
|
1104
|
-
removeItem(key: string): void;
|
|
1105
|
-
clear(): void;
|
|
1106
|
-
}
|
|
1107
|
-
/** Cookie-backed storage (browser only). */
|
|
1108
|
-
declare class CookieStorageAdapter implements StorageAdapter {
|
|
1109
|
-
private opts;
|
|
1110
|
-
constructor(opts?: {
|
|
1111
|
-
domain?: string;
|
|
1112
|
-
path?: string;
|
|
1113
|
-
secure?: boolean;
|
|
1114
|
-
sameSite?: "Strict" | "Lax" | "None";
|
|
1115
|
-
maxAgeSeconds?: number;
|
|
1116
|
-
});
|
|
1117
|
-
getItem(key: string): string | null;
|
|
1118
|
-
setItem(key: string, value: string): void;
|
|
1119
|
-
removeItem(key: string): void;
|
|
1120
|
-
}
|
|
1121
|
-
|
|
1122
|
-
interface RequestLog {
|
|
1123
|
-
method: string;
|
|
1124
|
-
url: string;
|
|
1125
|
-
headers?: Record<string, string>;
|
|
1126
|
-
body?: any;
|
|
1127
|
-
timestamp: number;
|
|
1128
|
-
}
|
|
1129
|
-
interface ResponseLog {
|
|
1130
|
-
status: number;
|
|
1131
|
-
statusText: string;
|
|
1132
|
-
data?: any;
|
|
1133
|
-
duration: number;
|
|
1134
|
-
timestamp: number;
|
|
1135
|
-
}
|
|
1136
|
-
interface ErrorLog {
|
|
1137
|
-
message: string;
|
|
1138
|
-
statusCode?: number;
|
|
1139
|
-
fieldErrors?: Record<string, string[]>;
|
|
1140
|
-
duration: number;
|
|
1141
|
-
timestamp: number;
|
|
1142
|
-
}
|
|
1143
|
-
interface LoggerConfig {
|
|
1144
|
-
enabled: boolean;
|
|
1145
|
-
logRequests: boolean;
|
|
1146
|
-
logResponses: boolean;
|
|
1147
|
-
logErrors: boolean;
|
|
1148
|
-
logBodies: boolean;
|
|
1149
|
-
logHeaders: boolean;
|
|
1150
|
-
consola?: ConsolaInstance;
|
|
1151
|
-
}
|
|
1152
|
-
declare class APILogger {
|
|
1153
|
-
private config;
|
|
1154
|
-
private consola;
|
|
1155
|
-
constructor(config?: Partial<LoggerConfig>);
|
|
1156
|
-
enable(): void;
|
|
1157
|
-
disable(): void;
|
|
1158
|
-
setConfig(config: Partial<LoggerConfig>): void;
|
|
1159
|
-
private filterHeaders;
|
|
1160
|
-
logRequest(request: RequestLog): void;
|
|
1161
|
-
logResponse(request: RequestLog, response: ResponseLog): void;
|
|
1162
|
-
logError(request: RequestLog, error: ErrorLog): void;
|
|
1163
|
-
info(message: string, ...args: any[]): void;
|
|
1164
|
-
warn(message: string, ...args: any[]): void;
|
|
1165
|
-
error(message: string, ...args: any[]): void;
|
|
1166
|
-
debug(message: string, ...args: any[]): void;
|
|
1167
|
-
success(message: string, ...args: any[]): void;
|
|
1168
|
-
withTag(tag: string): ConsolaInstance;
|
|
1169
|
-
}
|
|
1170
|
-
declare const defaultLogger: APILogger;
|
|
1171
|
-
|
|
1172
|
-
type Options$4<TData extends TDataShape$2 = TDataShape$2, ThrowOnError extends boolean = boolean, TResponse = unknown> = Options$5<TData, ThrowOnError, TResponse> & {
|
|
478
|
+
readonly provider: ProviderEnum;
|
|
1173
479
|
/**
|
|
1174
|
-
*
|
|
1175
|
-
* individual options. This might be also useful if you want to implement a
|
|
1176
|
-
* custom client.
|
|
480
|
+
* Avatar URL from OAuth provider
|
|
1177
481
|
*/
|
|
1178
|
-
|
|
482
|
+
readonly provider_avatar_url: string;
|
|
483
|
+
readonly provider_display: string;
|
|
1179
484
|
/**
|
|
1180
|
-
*
|
|
1181
|
-
* used to access values that aren't defined as part of the SDK function.
|
|
485
|
+
* Email from OAuth provider (may differ from user.email)
|
|
1182
486
|
*/
|
|
1183
|
-
|
|
487
|
+
readonly provider_email: string;
|
|
488
|
+
/**
|
|
489
|
+
* Username on the OAuth provider platform
|
|
490
|
+
*/
|
|
491
|
+
readonly provider_username: string;
|
|
1184
492
|
};
|
|
1185
|
-
|
|
493
|
+
/**
|
|
494
|
+
* Request to disconnect OAuth provider.
|
|
495
|
+
*/
|
|
496
|
+
type OAuthDisconnectRequestRequest = {
|
|
1186
497
|
/**
|
|
1187
|
-
*
|
|
498
|
+
* OAuth provider to disconnect
|
|
1188
499
|
*
|
|
1189
|
-
*
|
|
500
|
+
* * `github` - GitHub
|
|
1190
501
|
*/
|
|
1191
|
-
|
|
502
|
+
provider: ProviderEnum;
|
|
503
|
+
};
|
|
504
|
+
/**
|
|
505
|
+
* Error response for OAuth endpoints.
|
|
506
|
+
*/
|
|
507
|
+
type OAuthError = {
|
|
1192
508
|
/**
|
|
1193
|
-
*
|
|
1194
|
-
*
|
|
1195
|
-
* Remove OAuth connection for the specified provider.
|
|
509
|
+
* Error code
|
|
1196
510
|
*/
|
|
1197
|
-
|
|
511
|
+
error: string;
|
|
1198
512
|
/**
|
|
1199
|
-
*
|
|
1200
|
-
*
|
|
1201
|
-
* Generate GitHub OAuth authorization URL. Redirect user to this URL to start authentication.
|
|
513
|
+
* Human-readable error description
|
|
1202
514
|
*/
|
|
1203
|
-
|
|
515
|
+
error_description?: string;
|
|
516
|
+
};
|
|
517
|
+
/**
|
|
518
|
+
* Response with available OAuth providers.
|
|
519
|
+
*/
|
|
520
|
+
type OAuthProvidersResponse = {
|
|
1204
521
|
/**
|
|
1205
|
-
*
|
|
1206
|
-
*
|
|
1207
|
-
* Exchange authorization code for JWT tokens. Call this after GitHub redirects back with code.
|
|
522
|
+
* List of available OAuth providers
|
|
1208
523
|
*/
|
|
1209
|
-
|
|
524
|
+
providers: Array<{
|
|
525
|
+
[key: string]: unknown;
|
|
526
|
+
}>;
|
|
527
|
+
};
|
|
528
|
+
/**
|
|
529
|
+
* Response with JWT tokens after OAuth authentication.
|
|
530
|
+
*
|
|
531
|
+
* When 2FA is required:
|
|
532
|
+
* - requires_2fa: True
|
|
533
|
+
* - session_id: UUID of 2FA verification session
|
|
534
|
+
* - access/refresh/user: null
|
|
535
|
+
*
|
|
536
|
+
* When 2FA is not required:
|
|
537
|
+
* - requires_2fa: False
|
|
538
|
+
* - session_id: null
|
|
539
|
+
* - access/refresh/user: populated
|
|
540
|
+
*/
|
|
541
|
+
type OAuthTokenResponse = {
|
|
1210
542
|
/**
|
|
1211
|
-
*
|
|
1212
|
-
*
|
|
1213
|
-
* Get list of available OAuth providers for authentication.
|
|
543
|
+
* JWT access token (null when requires_2fa=True)
|
|
1214
544
|
*/
|
|
1215
|
-
|
|
545
|
+
access?: string | null;
|
|
1216
546
|
/**
|
|
1217
|
-
*
|
|
547
|
+
* True if a new OAuth connection was created
|
|
1218
548
|
*/
|
|
1219
|
-
|
|
549
|
+
is_new_connection: boolean;
|
|
1220
550
|
/**
|
|
1221
|
-
*
|
|
1222
|
-
*
|
|
1223
|
-
* If user has 2FA enabled:
|
|
1224
|
-
* - Returns requires_2fa=True with session_id
|
|
1225
|
-
* - Client must complete 2FA verification at /cfg/totp/verify/
|
|
1226
|
-
*
|
|
1227
|
-
* If user has no 2FA:
|
|
1228
|
-
* - Returns JWT tokens and user data directly
|
|
551
|
+
* True if a new user was created during this OAuth flow
|
|
1229
552
|
*/
|
|
1230
|
-
|
|
553
|
+
is_new_user: boolean;
|
|
1231
554
|
/**
|
|
1232
|
-
*
|
|
1233
|
-
*
|
|
1234
|
-
* Retrieve the current authenticated user's profile information.
|
|
555
|
+
* JWT refresh token (null when requires_2fa=True)
|
|
1235
556
|
*/
|
|
1236
|
-
|
|
557
|
+
refresh?: string | null;
|
|
1237
558
|
/**
|
|
1238
|
-
*
|
|
1239
|
-
*
|
|
1240
|
-
* Upload avatar image for the current authenticated user. Accepts multipart/form-data with 'avatar' field.
|
|
559
|
+
* True if 2FA verification is required
|
|
1241
560
|
*/
|
|
1242
|
-
|
|
561
|
+
requires_2fa?: boolean;
|
|
1243
562
|
/**
|
|
1244
|
-
*
|
|
1245
|
-
*
|
|
1246
|
-
*
|
|
1247
|
-
* Permanently delete the current user's account.
|
|
1248
|
-
*
|
|
1249
|
-
* This operation:
|
|
1250
|
-
* - Deactivates the account (user cannot log in)
|
|
1251
|
-
* - Anonymizes personal data (GDPR compliance)
|
|
1252
|
-
* - Frees up the email address for re-registration
|
|
1253
|
-
* - Preserves audit trail
|
|
1254
|
-
*
|
|
1255
|
-
* The account can be restored by an administrator if needed.
|
|
1256
|
-
*
|
|
563
|
+
* 2FA session ID (only when requires_2fa=True)
|
|
1257
564
|
*/
|
|
1258
|
-
|
|
565
|
+
session_id?: string | null;
|
|
1259
566
|
/**
|
|
1260
|
-
*
|
|
1261
|
-
*
|
|
1262
|
-
* Partially update the current authenticated user's profile information. Supports avatar upload.
|
|
567
|
+
* True if user should be prompted to enable 2FA
|
|
1263
568
|
*/
|
|
1264
|
-
|
|
569
|
+
should_prompt_2fa?: boolean;
|
|
1265
570
|
/**
|
|
1266
|
-
*
|
|
1267
|
-
*
|
|
1268
|
-
* Partially update the current authenticated user's profile information. Supports avatar upload.
|
|
571
|
+
* Authenticated user info (null when requires_2fa=True)
|
|
1269
572
|
*/
|
|
1270
|
-
|
|
573
|
+
user?: {
|
|
574
|
+
[key: string]: unknown;
|
|
575
|
+
} | null;
|
|
576
|
+
};
|
|
577
|
+
/**
|
|
578
|
+
* Typed error response for OTP operations.
|
|
579
|
+
*
|
|
580
|
+
* error_code values:
|
|
581
|
+
* - invalid_identifier — malformed email
|
|
582
|
+
* - cooldown — too soon after last request (retry_after = seconds)
|
|
583
|
+
* - hourly_limit — hourly quota exceeded (retry_after = seconds until reset)
|
|
584
|
+
* - daily_limit — daily quota exceeded (retry_after = seconds until reset)
|
|
585
|
+
* - rate_limited — IP-level rate limit hit (no retry_after)
|
|
586
|
+
* - user_creation_failed — internal error creating account
|
|
587
|
+
* - send_failed — transport error (email / SMS)
|
|
588
|
+
* - internal_error — unexpected server error
|
|
589
|
+
*/
|
|
590
|
+
type OtpErrorResponse = {
|
|
1271
591
|
/**
|
|
1272
|
-
*
|
|
1273
|
-
*
|
|
1274
|
-
* Update the current authenticated user's profile information.
|
|
592
|
+
* Human-readable error message
|
|
1275
593
|
*/
|
|
1276
|
-
|
|
594
|
+
error: string;
|
|
1277
595
|
/**
|
|
1278
|
-
*
|
|
1279
|
-
*
|
|
1280
|
-
* Update the current authenticated user's profile information.
|
|
596
|
+
* Machine-readable error code
|
|
1281
597
|
*/
|
|
1282
|
-
|
|
598
|
+
error_code?: string | null;
|
|
1283
599
|
/**
|
|
1284
|
-
*
|
|
600
|
+
* Seconds until the client may retry (present only for rate-limit errors)
|
|
1285
601
|
*/
|
|
1286
|
-
|
|
1287
|
-
}
|
|
1288
|
-
|
|
602
|
+
retry_after?: number | null;
|
|
603
|
+
};
|
|
604
|
+
/**
|
|
605
|
+
* Serializer for OTP request.
|
|
606
|
+
*/
|
|
607
|
+
type OtpRequestRequest = {
|
|
1289
608
|
/**
|
|
1290
|
-
*
|
|
1291
|
-
*
|
|
1292
|
-
* Get all OAuth connections for the current user.
|
|
609
|
+
* Email address for OTP delivery
|
|
1293
610
|
*/
|
|
1294
|
-
|
|
611
|
+
identifier: string;
|
|
1295
612
|
/**
|
|
1296
|
-
*
|
|
1297
|
-
*
|
|
1298
|
-
* Remove OAuth connection for the specified provider.
|
|
613
|
+
* Source URL for tracking registration (e.g., https://my.djangocfg.com)
|
|
1299
614
|
*/
|
|
1300
|
-
|
|
615
|
+
source_url?: string;
|
|
616
|
+
};
|
|
617
|
+
/**
|
|
618
|
+
* OTP request response.
|
|
619
|
+
*/
|
|
620
|
+
type OtpRequestResponse = {
|
|
1301
621
|
/**
|
|
1302
|
-
*
|
|
1303
|
-
*
|
|
1304
|
-
* Generate GitHub OAuth authorization URL. Redirect user to this URL to start authentication.
|
|
622
|
+
* Success message
|
|
1305
623
|
*/
|
|
1306
|
-
|
|
624
|
+
message: string;
|
|
625
|
+
};
|
|
626
|
+
/**
|
|
627
|
+
* Serializer for OTP verification.
|
|
628
|
+
*/
|
|
629
|
+
type OtpVerifyRequest = {
|
|
1307
630
|
/**
|
|
1308
|
-
*
|
|
1309
|
-
*
|
|
1310
|
-
* Exchange authorization code for JWT tokens. Call this after GitHub redirects back with code.
|
|
631
|
+
* Email address used for OTP request
|
|
1311
632
|
*/
|
|
1312
|
-
|
|
633
|
+
identifier: string;
|
|
634
|
+
otp: string;
|
|
1313
635
|
/**
|
|
1314
|
-
*
|
|
1315
|
-
*
|
|
1316
|
-
* Get list of available OAuth providers for authentication.
|
|
636
|
+
* Source URL for tracking login (e.g., https://my.djangocfg.com)
|
|
1317
637
|
*/
|
|
1318
|
-
|
|
638
|
+
source_url?: string;
|
|
639
|
+
};
|
|
640
|
+
/**
|
|
641
|
+
* OTP verification response.
|
|
642
|
+
*
|
|
643
|
+
* When 2FA is required:
|
|
644
|
+
* - requires_2fa: True
|
|
645
|
+
* - session_id: UUID of 2FA verification session
|
|
646
|
+
* - refresh/access/user: null
|
|
647
|
+
*
|
|
648
|
+
* When 2FA is not required:
|
|
649
|
+
* - requires_2fa: False
|
|
650
|
+
* - session_id: null
|
|
651
|
+
* - refresh/access/user: populated
|
|
652
|
+
*/
|
|
653
|
+
type OtpVerifyResponse = {
|
|
1319
654
|
/**
|
|
1320
|
-
*
|
|
655
|
+
* JWT access token (if requires_2fa is False)
|
|
1321
656
|
*/
|
|
1322
|
-
|
|
657
|
+
access?: string | null;
|
|
1323
658
|
/**
|
|
1324
|
-
*
|
|
1325
|
-
*
|
|
1326
|
-
* If user has 2FA enabled:
|
|
1327
|
-
* - Returns requires_2fa=True with session_id
|
|
1328
|
-
* - Client must complete 2FA verification at /cfg/totp/verify/
|
|
1329
|
-
*
|
|
1330
|
-
* If user has no 2FA:
|
|
1331
|
-
* - Returns JWT tokens and user data directly
|
|
659
|
+
* JWT refresh token (if requires_2fa is False)
|
|
1332
660
|
*/
|
|
1333
|
-
|
|
661
|
+
refresh?: string | null;
|
|
1334
662
|
/**
|
|
1335
|
-
*
|
|
1336
|
-
*
|
|
1337
|
-
* Retrieve the current authenticated user's profile information.
|
|
663
|
+
* Whether 2FA verification is required
|
|
1338
664
|
*/
|
|
1339
|
-
|
|
665
|
+
requires_2fa?: boolean;
|
|
1340
666
|
/**
|
|
1341
|
-
*
|
|
1342
|
-
*
|
|
1343
|
-
* Upload avatar image for the current authenticated user. Accepts multipart/form-data with 'avatar' field.
|
|
667
|
+
* 2FA session ID (if requires_2fa is True)
|
|
1344
668
|
*/
|
|
1345
|
-
|
|
669
|
+
session_id?: string | null;
|
|
1346
670
|
/**
|
|
1347
|
-
*
|
|
1348
|
-
*
|
|
1349
|
-
*
|
|
1350
|
-
* Permanently delete the current user's account.
|
|
1351
|
-
*
|
|
1352
|
-
* This operation:
|
|
1353
|
-
* - Deactivates the account (user cannot log in)
|
|
1354
|
-
* - Anonymizes personal data (GDPR compliance)
|
|
1355
|
-
* - Frees up the email address for re-registration
|
|
1356
|
-
* - Preserves audit trail
|
|
1357
|
-
*
|
|
1358
|
-
* The account can be restored by an administrator if needed.
|
|
1359
|
-
*
|
|
671
|
+
* Whether user should be prompted to enable 2FA
|
|
1360
672
|
*/
|
|
1361
|
-
|
|
673
|
+
should_prompt_2fa?: boolean;
|
|
1362
674
|
/**
|
|
1363
|
-
*
|
|
1364
|
-
*
|
|
1365
|
-
* Partially update the current authenticated user's profile information. Supports avatar upload.
|
|
675
|
+
* User information (if requires_2fa is False)
|
|
1366
676
|
*/
|
|
1367
|
-
|
|
677
|
+
user?: User | null;
|
|
678
|
+
};
|
|
679
|
+
/**
|
|
680
|
+
* Serializer for updating user profile.
|
|
681
|
+
*/
|
|
682
|
+
type PatchedCfgUserUpdateRequest = {
|
|
683
|
+
company?: string;
|
|
684
|
+
first_name?: string;
|
|
685
|
+
language?: string;
|
|
686
|
+
last_name?: string;
|
|
687
|
+
phone?: string;
|
|
688
|
+
position?: string;
|
|
689
|
+
};
|
|
690
|
+
/**
|
|
691
|
+
* * `github` - GitHub
|
|
692
|
+
*/
|
|
693
|
+
declare enum ProviderEnum {
|
|
694
|
+
GITHUB = "github"
|
|
695
|
+
}
|
|
696
|
+
/**
|
|
697
|
+
* Serializer for starting 2FA setup.
|
|
698
|
+
*/
|
|
699
|
+
type SetupRequest = {
|
|
1368
700
|
/**
|
|
1369
|
-
*
|
|
1370
|
-
*
|
|
1371
|
-
* Partially update the current authenticated user's profile information. Supports avatar upload.
|
|
701
|
+
* Device name for identification (e.g., 'My iPhone')
|
|
1372
702
|
*/
|
|
1373
|
-
|
|
703
|
+
device_name?: string;
|
|
704
|
+
};
|
|
705
|
+
/**
|
|
706
|
+
* Response serializer for setup initiation.
|
|
707
|
+
*/
|
|
708
|
+
type SetupResponse = {
|
|
1374
709
|
/**
|
|
1375
|
-
*
|
|
1376
|
-
*
|
|
1377
|
-
* Update the current authenticated user's profile information.
|
|
710
|
+
* Device ID to use for confirmation
|
|
1378
711
|
*/
|
|
1379
|
-
|
|
712
|
+
device_id: string;
|
|
1380
713
|
/**
|
|
1381
|
-
*
|
|
1382
|
-
*
|
|
1383
|
-
* Update the current authenticated user's profile information.
|
|
714
|
+
* Seconds until setup expires (typically 600 = 10 minutes)
|
|
1384
715
|
*/
|
|
1385
|
-
|
|
716
|
+
expires_in: number;
|
|
1386
717
|
/**
|
|
1387
|
-
*
|
|
718
|
+
* otpauth:// URI for QR code generation
|
|
1388
719
|
*/
|
|
1389
|
-
|
|
1390
|
-
}
|
|
1391
|
-
declare class OAuth {
|
|
720
|
+
provisioning_uri: string;
|
|
1392
721
|
/**
|
|
1393
|
-
*
|
|
1394
|
-
*
|
|
1395
|
-
* Get all OAuth connections for the current user.
|
|
722
|
+
* Base64-encoded QR code image (data URI)
|
|
1396
723
|
*/
|
|
1397
|
-
|
|
724
|
+
qr_code_base64: string;
|
|
1398
725
|
/**
|
|
1399
|
-
*
|
|
1400
|
-
*
|
|
1401
|
-
* Remove OAuth connection for the specified provider.
|
|
726
|
+
* Base32-encoded TOTP secret (for manual entry)
|
|
1402
727
|
*/
|
|
1403
|
-
|
|
728
|
+
secret: string;
|
|
729
|
+
};
|
|
730
|
+
type TokenRefresh = {
|
|
731
|
+
readonly access: string;
|
|
732
|
+
refresh: string;
|
|
733
|
+
};
|
|
734
|
+
type TokenRefreshRequest = {
|
|
735
|
+
refresh: string;
|
|
736
|
+
};
|
|
737
|
+
/**
|
|
738
|
+
* User data returned after 2FA verification.
|
|
739
|
+
*/
|
|
740
|
+
type TotpVerifyUser = {
|
|
741
|
+
readonly avatar: string | null;
|
|
742
|
+
company?: string;
|
|
743
|
+
readonly date_joined: string;
|
|
1404
744
|
/**
|
|
1405
|
-
*
|
|
1406
|
-
*
|
|
1407
|
-
* Generate GitHub OAuth authorization URL. Redirect user to this URL to start authentication.
|
|
745
|
+
* Get formatted username for display.
|
|
1408
746
|
*/
|
|
1409
|
-
|
|
747
|
+
readonly display_username: string;
|
|
748
|
+
readonly email: string;
|
|
749
|
+
first_name?: string;
|
|
1410
750
|
/**
|
|
1411
|
-
*
|
|
1412
|
-
*
|
|
1413
|
-
* Exchange authorization code for JWT tokens. Call this after GitHub redirects back with code.
|
|
751
|
+
* Get user's full name.
|
|
1414
752
|
*/
|
|
1415
|
-
|
|
753
|
+
readonly full_name: string;
|
|
754
|
+
readonly id: number;
|
|
1416
755
|
/**
|
|
1417
|
-
*
|
|
1418
|
-
*
|
|
1419
|
-
* Get list of available OAuth providers for authentication.
|
|
756
|
+
* Get user's initials for avatar fallback.
|
|
1420
757
|
*/
|
|
1421
|
-
|
|
1422
|
-
}
|
|
1423
|
-
declare class UserProfile {
|
|
758
|
+
readonly initials: string;
|
|
1424
759
|
/**
|
|
1425
|
-
*
|
|
760
|
+
* Staff status
|
|
1426
761
|
*
|
|
1427
|
-
*
|
|
762
|
+
* Designates whether the user can log into this admin site.
|
|
1428
763
|
*/
|
|
1429
|
-
|
|
764
|
+
readonly is_staff: boolean;
|
|
1430
765
|
/**
|
|
1431
|
-
*
|
|
766
|
+
* Superuser status
|
|
1432
767
|
*
|
|
1433
|
-
*
|
|
768
|
+
* Designates that this user has all permissions without explicitly assigning them.
|
|
1434
769
|
*/
|
|
1435
|
-
|
|
770
|
+
readonly is_superuser: boolean;
|
|
771
|
+
language?: string;
|
|
772
|
+
readonly last_login: string | null;
|
|
773
|
+
last_name?: string;
|
|
774
|
+
phone?: string;
|
|
775
|
+
position?: string;
|
|
776
|
+
readonly unanswered_messages_count: number;
|
|
777
|
+
};
|
|
778
|
+
/**
|
|
779
|
+
* Serializer for user details.
|
|
780
|
+
*/
|
|
781
|
+
type User = {
|
|
782
|
+
readonly avatar: string | null;
|
|
783
|
+
readonly centrifugo: CentrifugoToken | null;
|
|
784
|
+
company?: string;
|
|
785
|
+
readonly date_joined: string;
|
|
1436
786
|
/**
|
|
1437
|
-
*
|
|
1438
|
-
*
|
|
1439
|
-
*
|
|
1440
|
-
* Permanently delete the current user's account.
|
|
1441
|
-
*
|
|
1442
|
-
* This operation:
|
|
1443
|
-
* - Deactivates the account (user cannot log in)
|
|
1444
|
-
* - Anonymizes personal data (GDPR compliance)
|
|
1445
|
-
* - Frees up the email address for re-registration
|
|
1446
|
-
* - Preserves audit trail
|
|
1447
|
-
*
|
|
1448
|
-
* The account can be restored by an administrator if needed.
|
|
1449
|
-
*
|
|
787
|
+
* Get formatted username for display.
|
|
1450
788
|
*/
|
|
1451
|
-
|
|
789
|
+
readonly display_username: string;
|
|
790
|
+
readonly email: string;
|
|
791
|
+
first_name?: string;
|
|
1452
792
|
/**
|
|
1453
|
-
*
|
|
1454
|
-
*
|
|
1455
|
-
* Partially update the current authenticated user's profile information. Supports avatar upload.
|
|
793
|
+
* Get user's full name.
|
|
1456
794
|
*/
|
|
1457
|
-
|
|
795
|
+
readonly full_name: string;
|
|
796
|
+
readonly id: number;
|
|
1458
797
|
/**
|
|
1459
|
-
*
|
|
1460
|
-
*
|
|
1461
|
-
* Partially update the current authenticated user's profile information. Supports avatar upload.
|
|
798
|
+
* Get user's initials for avatar fallback.
|
|
1462
799
|
*/
|
|
1463
|
-
|
|
800
|
+
readonly initials: string;
|
|
1464
801
|
/**
|
|
1465
|
-
*
|
|
802
|
+
* Staff status
|
|
1466
803
|
*
|
|
1467
|
-
*
|
|
804
|
+
* Designates whether the user can log into this admin site.
|
|
1468
805
|
*/
|
|
1469
|
-
|
|
806
|
+
readonly is_staff: boolean;
|
|
1470
807
|
/**
|
|
1471
|
-
*
|
|
808
|
+
* Superuser status
|
|
1472
809
|
*
|
|
1473
|
-
*
|
|
1474
|
-
*/
|
|
1475
|
-
static cfgAccountsProfileUpdateUpdate<ThrowOnError extends boolean = false>(options?: Options$4<CfgAccountsProfileUpdateUpdateData, ThrowOnError>): RequestResult$2<CfgAccountsProfileUpdateUpdateResponses, CfgAccountsProfileUpdateUpdateErrors, ThrowOnError, "fields">;
|
|
1476
|
-
}
|
|
1477
|
-
declare class Auth$2 {
|
|
1478
|
-
/**
|
|
1479
|
-
* Refresh JWT token.
|
|
810
|
+
* Designates that this user has all permissions without explicitly assigning them.
|
|
1480
811
|
*/
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
/** Locale for `Accept-Language`. If omitted, auto-detected from cookie/navigator. */
|
|
1490
|
-
locale?: string;
|
|
1491
|
-
/** API key sent as `X-API-Key`. Falls back to NEXT_PUBLIC_API_KEY. */
|
|
1492
|
-
apiKey?: string;
|
|
1493
|
-
/** Send Django session/CSRF cookies cross-origin. Defaults to true. */
|
|
1494
|
-
withCredentials?: boolean;
|
|
1495
|
-
}
|
|
1496
|
-
/**
|
|
1497
|
-
* Self-contained API wrapper for this group.
|
|
1498
|
-
*
|
|
1499
|
-
* Each group has its own client + interceptor + token store. The interceptor
|
|
1500
|
-
* automatically attaches:
|
|
1501
|
-
* - `Authorization: Bearer <jwt>` from storage
|
|
1502
|
-
* - `Accept-Language` from `opts.locale` or `NEXT_LOCALE` cookie
|
|
1503
|
-
* - `X-API-Key` from `opts.apiKey` or `NEXT_PUBLIC_API_KEY`
|
|
1504
|
-
* - `credentials: 'include'` for Django session/CSRF cookies (toggle via opts)
|
|
1505
|
-
*/
|
|
1506
|
-
declare class API$2 {
|
|
1507
|
-
private baseUrl;
|
|
1508
|
-
private storage;
|
|
1509
|
-
private locale;
|
|
1510
|
-
private apiKey;
|
|
1511
|
-
readonly logger: APILogger;
|
|
1512
|
-
readonly cfg: typeof Cfg$2;
|
|
1513
|
-
readonly accounts: typeof Accounts;
|
|
1514
|
-
readonly oAuth: typeof OAuth;
|
|
1515
|
-
readonly userProfile: typeof UserProfile;
|
|
1516
|
-
readonly auth: typeof Auth$2;
|
|
1517
|
-
constructor(baseUrl: string, opts?: APIOptions$2);
|
|
1518
|
-
getBaseUrl(): string;
|
|
1519
|
-
setBaseUrl(url: string): void;
|
|
1520
|
-
getToken(): string | null;
|
|
1521
|
-
setToken(token: string | null): void;
|
|
1522
|
-
getRefreshToken(): string | null;
|
|
1523
|
-
setRefreshToken(token: string | null): void;
|
|
1524
|
-
clearToken(): void;
|
|
1525
|
-
isAuthenticated(): boolean;
|
|
1526
|
-
getLocale(): string | null;
|
|
1527
|
-
setLocale(locale: string | null): void;
|
|
1528
|
-
getApiKey(): string | null;
|
|
1529
|
-
setApiKey(key: string | null): void;
|
|
1530
|
-
}
|
|
1531
|
-
|
|
812
|
+
readonly is_superuser: boolean;
|
|
813
|
+
language?: string;
|
|
814
|
+
readonly last_login: string | null;
|
|
815
|
+
last_name?: string;
|
|
816
|
+
phone?: string;
|
|
817
|
+
position?: string;
|
|
818
|
+
readonly unanswered_messages_count: number;
|
|
819
|
+
};
|
|
1532
820
|
/**
|
|
1533
|
-
*
|
|
821
|
+
* Serializer for backup code verification during login.
|
|
1534
822
|
*/
|
|
1535
|
-
|
|
1536
|
-
statusCode: number;
|
|
1537
|
-
statusText: string;
|
|
1538
|
-
response: any;
|
|
1539
|
-
url: string;
|
|
1540
|
-
constructor(statusCode: number, statusText: string, response: any, url: string, message?: string);
|
|
1541
|
-
get details(): Record<string, any> | null;
|
|
1542
|
-
get fieldErrors(): Record<string, string[]> | null;
|
|
1543
|
-
get errorMessage(): string;
|
|
1544
|
-
get isValidationError(): boolean;
|
|
1545
|
-
get isAuthError(): boolean;
|
|
1546
|
-
get isPermissionError(): boolean;
|
|
1547
|
-
get isNotFoundError(): boolean;
|
|
1548
|
-
get isServerError(): boolean;
|
|
1549
|
-
}
|
|
1550
|
-
/** Network Error (connection failed, timeout, etc.) */
|
|
1551
|
-
declare class NetworkError extends Error {
|
|
1552
|
-
url: string;
|
|
1553
|
-
originalError?: Error;
|
|
1554
|
-
constructor(message: string, url: string, originalError?: Error);
|
|
1555
|
-
}
|
|
1556
|
-
|
|
1557
|
-
interface ValidationErrorDetail {
|
|
1558
|
-
operation: string;
|
|
1559
|
-
path: string;
|
|
1560
|
-
method: string;
|
|
1561
|
-
error: ZodError;
|
|
1562
|
-
response: any;
|
|
1563
|
-
timestamp: Date;
|
|
1564
|
-
}
|
|
1565
|
-
type ValidationErrorEvent = CustomEvent<ValidationErrorDetail>;
|
|
1566
|
-
declare function dispatchValidationError(detail: ValidationErrorDetail): void;
|
|
1567
|
-
declare function onValidationError(callback: (detail: ValidationErrorDetail) => void): () => void;
|
|
1568
|
-
declare function formatZodError(error: ZodError): string;
|
|
1569
|
-
|
|
1570
|
-
type AuthToken$1 = string | undefined;
|
|
1571
|
-
interface Auth$1 {
|
|
1572
|
-
/**
|
|
1573
|
-
* Which part of the request do we use to send the auth?
|
|
1574
|
-
*
|
|
1575
|
-
* @default 'header'
|
|
1576
|
-
*/
|
|
1577
|
-
in?: 'header' | 'query' | 'cookie';
|
|
823
|
+
type VerifyBackupRequest = {
|
|
1578
824
|
/**
|
|
1579
|
-
*
|
|
1580
|
-
*
|
|
1581
|
-
* @default 'Authorization'
|
|
825
|
+
* 8-character backup recovery code
|
|
1582
826
|
*/
|
|
1583
|
-
|
|
1584
|
-
scheme?: 'basic' | 'bearer';
|
|
1585
|
-
type: 'apiKey' | 'http';
|
|
1586
|
-
}
|
|
1587
|
-
|
|
1588
|
-
interface SerializerOptions$1<T> {
|
|
827
|
+
backup_code: string;
|
|
1589
828
|
/**
|
|
1590
|
-
*
|
|
829
|
+
* 2FA session ID from login response
|
|
1591
830
|
*/
|
|
1592
|
-
|
|
1593
|
-
style: T;
|
|
1594
|
-
}
|
|
1595
|
-
type ArrayStyle$1 = 'form' | 'spaceDelimited' | 'pipeDelimited';
|
|
1596
|
-
type ObjectStyle$1 = 'form' | 'deepObject';
|
|
1597
|
-
|
|
1598
|
-
type QuerySerializer$1 = (query: Record<string, unknown>) => string;
|
|
1599
|
-
type BodySerializer$1 = (body: unknown) => unknown;
|
|
1600
|
-
type QuerySerializerOptionsObject$1 = {
|
|
1601
|
-
allowReserved?: boolean;
|
|
1602
|
-
array?: Partial<SerializerOptions$1<ArrayStyle$1>>;
|
|
1603
|
-
object?: Partial<SerializerOptions$1<ObjectStyle$1>>;
|
|
831
|
+
session_id: string;
|
|
1604
832
|
};
|
|
1605
|
-
|
|
833
|
+
/**
|
|
834
|
+
* Serializer for TOTP code verification during login.
|
|
835
|
+
*/
|
|
836
|
+
type VerifyRequest = {
|
|
1606
837
|
/**
|
|
1607
|
-
*
|
|
1608
|
-
|
|
838
|
+
* 6-digit TOTP code from authenticator app
|
|
839
|
+
*/
|
|
840
|
+
code: string;
|
|
841
|
+
/**
|
|
842
|
+
* 2FA session ID from login response
|
|
1609
843
|
*/
|
|
1610
|
-
|
|
844
|
+
session_id: string;
|
|
1611
845
|
};
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
|
|
846
|
+
/**
|
|
847
|
+
* Response serializer for successful 2FA verification.
|
|
848
|
+
*/
|
|
849
|
+
type VerifyResponse = {
|
|
1615
850
|
/**
|
|
1616
|
-
*
|
|
851
|
+
* JWT access token
|
|
1617
852
|
*/
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
request: RequestFn;
|
|
1621
|
-
setConfig: (config: Config) => Config;
|
|
1622
|
-
} & {
|
|
1623
|
-
[K in HttpMethod$1]: MethodFn;
|
|
1624
|
-
} & ([SseFn] extends [never] ? {
|
|
1625
|
-
sse?: never;
|
|
1626
|
-
} : {
|
|
1627
|
-
sse: {
|
|
1628
|
-
[K in HttpMethod$1]: SseFn;
|
|
1629
|
-
};
|
|
1630
|
-
});
|
|
1631
|
-
interface Config$3 {
|
|
853
|
+
access_token: string;
|
|
854
|
+
message: string;
|
|
1632
855
|
/**
|
|
1633
|
-
*
|
|
1634
|
-
* added to the request payload as defined by its `security` array.
|
|
856
|
+
* JWT refresh token
|
|
1635
857
|
*/
|
|
1636
|
-
|
|
858
|
+
refresh_token: string;
|
|
1637
859
|
/**
|
|
1638
|
-
*
|
|
1639
|
-
* {@link JSON.stringify()} will be used.
|
|
860
|
+
* Number of remaining backup codes (if backup code was used)
|
|
1640
861
|
*/
|
|
1641
|
-
|
|
862
|
+
remaining_backup_codes?: number;
|
|
1642
863
|
/**
|
|
1643
|
-
*
|
|
1644
|
-
* `Headers` object with.
|
|
1645
|
-
*
|
|
1646
|
-
* {@link https://developer.mozilla.org/docs/Web/API/Headers/Headers#init See more}
|
|
864
|
+
* User profile data
|
|
1647
865
|
*/
|
|
1648
|
-
|
|
866
|
+
user: TotpVerifyUser;
|
|
1649
867
|
/**
|
|
1650
|
-
*
|
|
1651
|
-
*
|
|
1652
|
-
* {@link https://developer.mozilla.org/docs/Web/API/fetch#method See more}
|
|
868
|
+
* Warning message (e.g., low backup codes)
|
|
1653
869
|
*/
|
|
1654
|
-
|
|
870
|
+
warning?: string;
|
|
871
|
+
};
|
|
872
|
+
/**
|
|
873
|
+
* Response serializer for device list endpoint.
|
|
874
|
+
*/
|
|
875
|
+
type DeviceListResponseWritable = {
|
|
876
|
+
devices: Array<unknown>;
|
|
877
|
+
has_2fa_enabled: boolean;
|
|
878
|
+
};
|
|
879
|
+
/**
|
|
880
|
+
* OTP verification response.
|
|
881
|
+
*
|
|
882
|
+
* When 2FA is required:
|
|
883
|
+
* - requires_2fa: True
|
|
884
|
+
* - session_id: UUID of 2FA verification session
|
|
885
|
+
* - refresh/access/user: null
|
|
886
|
+
*
|
|
887
|
+
* When 2FA is not required:
|
|
888
|
+
* - requires_2fa: False
|
|
889
|
+
* - session_id: null
|
|
890
|
+
* - refresh/access/user: populated
|
|
891
|
+
*/
|
|
892
|
+
type OtpVerifyResponseWritable = {
|
|
1655
893
|
/**
|
|
1656
|
-
*
|
|
1657
|
-
* will be exploded in form style, objects will be exploded in deepObject
|
|
1658
|
-
* style, and reserved characters are percent-encoded.
|
|
1659
|
-
*
|
|
1660
|
-
* This method will have no effect if the native `paramsSerializer()` Axios
|
|
1661
|
-
* API function is used.
|
|
1662
|
-
*
|
|
1663
|
-
* {@link https://swagger.io/docs/specification/serialization/#query View examples}
|
|
894
|
+
* JWT access token (if requires_2fa is False)
|
|
1664
895
|
*/
|
|
1665
|
-
|
|
896
|
+
access?: string | null;
|
|
1666
897
|
/**
|
|
1667
|
-
*
|
|
1668
|
-
* the request conforms to the desired shape, so it can be safely sent to
|
|
1669
|
-
* the server.
|
|
898
|
+
* JWT refresh token (if requires_2fa is False)
|
|
1670
899
|
*/
|
|
1671
|
-
|
|
900
|
+
refresh?: string | null;
|
|
1672
901
|
/**
|
|
1673
|
-
*
|
|
1674
|
-
* for post-processing data, e.g., converting ISO strings into Date objects.
|
|
902
|
+
* Whether 2FA verification is required
|
|
1675
903
|
*/
|
|
1676
|
-
|
|
904
|
+
requires_2fa?: boolean;
|
|
1677
905
|
/**
|
|
1678
|
-
*
|
|
1679
|
-
* the response conforms to the desired shape, so it can be safely passed to
|
|
1680
|
-
* the transformers and returned to the user.
|
|
906
|
+
* 2FA session ID (if requires_2fa is True)
|
|
1681
907
|
*/
|
|
1682
|
-
|
|
1683
|
-
}
|
|
1684
|
-
|
|
1685
|
-
type ServerSentEventsOptions$1<TData = unknown> = Omit<RequestInit, 'method'> & Pick<Config$3, 'method' | 'responseTransformer' | 'responseValidator'> & {
|
|
908
|
+
session_id?: string | null;
|
|
1686
909
|
/**
|
|
1687
|
-
*
|
|
1688
|
-
* fetch instance.
|
|
1689
|
-
*
|
|
1690
|
-
* @default globalThis.fetch
|
|
910
|
+
* Whether user should be prompted to enable 2FA
|
|
1691
911
|
*/
|
|
1692
|
-
|
|
912
|
+
should_prompt_2fa?: boolean;
|
|
1693
913
|
/**
|
|
1694
|
-
*
|
|
914
|
+
* User information (if requires_2fa is False)
|
|
1695
915
|
*/
|
|
1696
|
-
|
|
916
|
+
user?: UserWritable | null;
|
|
917
|
+
};
|
|
918
|
+
type TokenRefreshWritable = {
|
|
919
|
+
refresh: string;
|
|
920
|
+
};
|
|
921
|
+
/**
|
|
922
|
+
* User data returned after 2FA verification.
|
|
923
|
+
*/
|
|
924
|
+
type TotpVerifyUserWritable = {
|
|
925
|
+
company?: string;
|
|
926
|
+
first_name?: string;
|
|
927
|
+
language?: string;
|
|
928
|
+
last_name?: string;
|
|
929
|
+
phone?: string;
|
|
930
|
+
position?: string;
|
|
931
|
+
};
|
|
932
|
+
/**
|
|
933
|
+
* Serializer for user details.
|
|
934
|
+
*/
|
|
935
|
+
type UserWritable = {
|
|
936
|
+
company?: string;
|
|
937
|
+
first_name?: string;
|
|
938
|
+
language?: string;
|
|
939
|
+
last_name?: string;
|
|
940
|
+
phone?: string;
|
|
941
|
+
position?: string;
|
|
942
|
+
};
|
|
943
|
+
/**
|
|
944
|
+
* Response serializer for successful 2FA verification.
|
|
945
|
+
*/
|
|
946
|
+
type VerifyResponseWritable = {
|
|
1697
947
|
/**
|
|
1698
|
-
*
|
|
1699
|
-
*
|
|
1700
|
-
* This option applies only if the endpoint returns a stream of events.
|
|
1701
|
-
*
|
|
1702
|
-
* @param error The error that occurred.
|
|
948
|
+
* JWT access token
|
|
1703
949
|
*/
|
|
1704
|
-
|
|
950
|
+
access_token: string;
|
|
951
|
+
message: string;
|
|
1705
952
|
/**
|
|
1706
|
-
*
|
|
1707
|
-
*
|
|
1708
|
-
* This option applies only if the endpoint returns a stream of events.
|
|
1709
|
-
*
|
|
1710
|
-
* @param event Event streamed from the server.
|
|
1711
|
-
* @returns Nothing (void).
|
|
953
|
+
* JWT refresh token
|
|
1712
954
|
*/
|
|
1713
|
-
|
|
1714
|
-
serializedBody?: RequestInit['body'];
|
|
955
|
+
refresh_token: string;
|
|
1715
956
|
/**
|
|
1716
|
-
*
|
|
1717
|
-
*
|
|
1718
|
-
* This option applies only if the endpoint returns a stream of events.
|
|
1719
|
-
*
|
|
1720
|
-
* @default 3000
|
|
957
|
+
* Number of remaining backup codes (if backup code was used)
|
|
1721
958
|
*/
|
|
1722
|
-
|
|
959
|
+
remaining_backup_codes?: number;
|
|
1723
960
|
/**
|
|
1724
|
-
*
|
|
961
|
+
* User profile data
|
|
1725
962
|
*/
|
|
1726
|
-
|
|
963
|
+
user: TotpVerifyUserWritable;
|
|
1727
964
|
/**
|
|
1728
|
-
*
|
|
1729
|
-
*
|
|
1730
|
-
* Applies only when exponential backoff is used.
|
|
1731
|
-
*
|
|
1732
|
-
* This option applies only if the endpoint returns a stream of events.
|
|
1733
|
-
*
|
|
1734
|
-
* @default 30000
|
|
965
|
+
* Warning message (e.g., low backup codes)
|
|
1735
966
|
*/
|
|
1736
|
-
|
|
967
|
+
warning?: string;
|
|
968
|
+
};
|
|
969
|
+
type CfgAccountsOauthConnectionsListData = {
|
|
970
|
+
body?: never;
|
|
971
|
+
path?: never;
|
|
972
|
+
query?: never;
|
|
973
|
+
url: '/cfg/accounts/oauth/connections/';
|
|
974
|
+
};
|
|
975
|
+
type CfgAccountsOauthConnectionsListResponses = {
|
|
976
|
+
200: Array<OAuthConnection>;
|
|
977
|
+
};
|
|
978
|
+
type CfgAccountsOauthConnectionsListResponse = CfgAccountsOauthConnectionsListResponses[keyof CfgAccountsOauthConnectionsListResponses];
|
|
979
|
+
type CfgAccountsOauthDisconnectCreateData = {
|
|
980
|
+
body: OAuthDisconnectRequestRequest;
|
|
981
|
+
path?: never;
|
|
982
|
+
query?: never;
|
|
983
|
+
url: '/cfg/accounts/oauth/disconnect/';
|
|
984
|
+
};
|
|
985
|
+
type CfgAccountsOauthDisconnectCreateErrors = {
|
|
986
|
+
400: OAuthError;
|
|
987
|
+
404: OAuthError;
|
|
988
|
+
};
|
|
989
|
+
type CfgAccountsOauthDisconnectCreateError = CfgAccountsOauthDisconnectCreateErrors[keyof CfgAccountsOauthDisconnectCreateErrors];
|
|
990
|
+
type CfgAccountsOauthDisconnectCreateResponses = {
|
|
991
|
+
200: {
|
|
992
|
+
message?: string;
|
|
993
|
+
};
|
|
994
|
+
};
|
|
995
|
+
type CfgAccountsOauthDisconnectCreateResponse = CfgAccountsOauthDisconnectCreateResponses[keyof CfgAccountsOauthDisconnectCreateResponses];
|
|
996
|
+
type CfgAccountsOauthGithubAuthorizeCreateData = {
|
|
997
|
+
body?: OAuthAuthorizeRequestRequest;
|
|
998
|
+
path?: never;
|
|
999
|
+
query?: never;
|
|
1000
|
+
url: '/cfg/accounts/oauth/github/authorize/';
|
|
1001
|
+
};
|
|
1002
|
+
type CfgAccountsOauthGithubAuthorizeCreateErrors = {
|
|
1003
|
+
503: OAuthError;
|
|
1004
|
+
};
|
|
1005
|
+
type CfgAccountsOauthGithubAuthorizeCreateError = CfgAccountsOauthGithubAuthorizeCreateErrors[keyof CfgAccountsOauthGithubAuthorizeCreateErrors];
|
|
1006
|
+
type CfgAccountsOauthGithubAuthorizeCreateResponses = {
|
|
1007
|
+
200: OAuthAuthorizeResponse;
|
|
1008
|
+
};
|
|
1009
|
+
type CfgAccountsOauthGithubAuthorizeCreateResponse = CfgAccountsOauthGithubAuthorizeCreateResponses[keyof CfgAccountsOauthGithubAuthorizeCreateResponses];
|
|
1010
|
+
type CfgAccountsOauthGithubCallbackCreateData = {
|
|
1011
|
+
body: OAuthCallbackRequestRequest;
|
|
1012
|
+
path?: never;
|
|
1013
|
+
query?: never;
|
|
1014
|
+
url: '/cfg/accounts/oauth/github/callback/';
|
|
1015
|
+
};
|
|
1016
|
+
type CfgAccountsOauthGithubCallbackCreateErrors = {
|
|
1017
|
+
400: OAuthError;
|
|
1018
|
+
};
|
|
1019
|
+
type CfgAccountsOauthGithubCallbackCreateError = CfgAccountsOauthGithubCallbackCreateErrors[keyof CfgAccountsOauthGithubCallbackCreateErrors];
|
|
1020
|
+
type CfgAccountsOauthGithubCallbackCreateResponses = {
|
|
1021
|
+
200: OAuthTokenResponse;
|
|
1022
|
+
};
|
|
1023
|
+
type CfgAccountsOauthGithubCallbackCreateResponse = CfgAccountsOauthGithubCallbackCreateResponses[keyof CfgAccountsOauthGithubCallbackCreateResponses];
|
|
1024
|
+
type CfgAccountsOauthProvidersRetrieveData = {
|
|
1025
|
+
body?: never;
|
|
1026
|
+
path?: never;
|
|
1027
|
+
query?: never;
|
|
1028
|
+
url: '/cfg/accounts/oauth/providers/';
|
|
1029
|
+
};
|
|
1030
|
+
type CfgAccountsOauthProvidersRetrieveResponses = {
|
|
1031
|
+
200: OAuthProvidersResponse;
|
|
1032
|
+
};
|
|
1033
|
+
type CfgAccountsOauthProvidersRetrieveResponse = CfgAccountsOauthProvidersRetrieveResponses[keyof CfgAccountsOauthProvidersRetrieveResponses];
|
|
1034
|
+
type CfgAccountsOtpRequestCreateData = {
|
|
1035
|
+
body: OtpRequestRequest;
|
|
1036
|
+
path?: never;
|
|
1037
|
+
query?: never;
|
|
1038
|
+
url: '/cfg/accounts/otp/request/';
|
|
1039
|
+
};
|
|
1040
|
+
type CfgAccountsOtpRequestCreateErrors = {
|
|
1041
|
+
400: OtpErrorResponse;
|
|
1042
|
+
429: OtpErrorResponse;
|
|
1043
|
+
500: OtpErrorResponse;
|
|
1044
|
+
};
|
|
1045
|
+
type CfgAccountsOtpRequestCreateError = CfgAccountsOtpRequestCreateErrors[keyof CfgAccountsOtpRequestCreateErrors];
|
|
1046
|
+
type CfgAccountsOtpRequestCreateResponses = {
|
|
1047
|
+
200: OtpRequestResponse;
|
|
1048
|
+
};
|
|
1049
|
+
type CfgAccountsOtpRequestCreateResponse = CfgAccountsOtpRequestCreateResponses[keyof CfgAccountsOtpRequestCreateResponses];
|
|
1050
|
+
type CfgAccountsOtpVerifyCreateData = {
|
|
1051
|
+
body: OtpVerifyRequest;
|
|
1052
|
+
path?: never;
|
|
1053
|
+
query?: never;
|
|
1054
|
+
url: '/cfg/accounts/otp/verify/';
|
|
1055
|
+
};
|
|
1056
|
+
type CfgAccountsOtpVerifyCreateErrors = {
|
|
1057
|
+
401: OtpErrorResponse;
|
|
1058
|
+
429: OtpErrorResponse;
|
|
1059
|
+
};
|
|
1060
|
+
type CfgAccountsOtpVerifyCreateError = CfgAccountsOtpVerifyCreateErrors[keyof CfgAccountsOtpVerifyCreateErrors];
|
|
1061
|
+
type CfgAccountsOtpVerifyCreateResponses = {
|
|
1062
|
+
200: OtpVerifyResponse;
|
|
1063
|
+
};
|
|
1064
|
+
type CfgAccountsOtpVerifyCreateResponse = CfgAccountsOtpVerifyCreateResponses[keyof CfgAccountsOtpVerifyCreateResponses];
|
|
1065
|
+
type CfgAccountsProfileRetrieveData = {
|
|
1066
|
+
body?: never;
|
|
1067
|
+
path?: never;
|
|
1068
|
+
query?: never;
|
|
1069
|
+
url: '/cfg/accounts/profile/';
|
|
1070
|
+
};
|
|
1071
|
+
type CfgAccountsProfileRetrieveErrors = {
|
|
1737
1072
|
/**
|
|
1738
|
-
*
|
|
1739
|
-
*
|
|
1740
|
-
* Defaults to using `setTimeout`.
|
|
1073
|
+
* Authentication credentials were not provided.
|
|
1741
1074
|
*/
|
|
1742
|
-
|
|
1743
|
-
url: string;
|
|
1075
|
+
401: unknown;
|
|
1744
1076
|
};
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
event?: string;
|
|
1748
|
-
id?: string;
|
|
1749
|
-
retry?: number;
|
|
1750
|
-
}
|
|
1751
|
-
type ServerSentEventsResult$1<TData = unknown, TReturn = void, TNext = unknown> = {
|
|
1752
|
-
stream: AsyncGenerator<TData extends Record<string, unknown> ? TData[keyof TData] : TData, TReturn, TNext>;
|
|
1077
|
+
type CfgAccountsProfileRetrieveResponses = {
|
|
1078
|
+
200: User;
|
|
1753
1079
|
};
|
|
1754
|
-
|
|
1755
|
-
type
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
|
-
|
|
1765
|
-
|
|
1766
|
-
|
|
1767
|
-
getInterceptorIndex(id: number | Interceptor): number;
|
|
1768
|
-
update(id: number | Interceptor, fn: Interceptor): number | Interceptor | false;
|
|
1769
|
-
use(fn: Interceptor): number;
|
|
1770
|
-
}
|
|
1771
|
-
interface Middleware$1<Req, Res, Err, Options> {
|
|
1772
|
-
error: Interceptors$1<ErrInterceptor$1<Err, Res, Req, Options>>;
|
|
1773
|
-
request: Interceptors$1<ReqInterceptor$1<Req, Options>>;
|
|
1774
|
-
response: Interceptors$1<ResInterceptor$1<Res, Req, Options>>;
|
|
1775
|
-
}
|
|
1776
|
-
|
|
1777
|
-
type ResponseStyle$1 = 'data' | 'fields';
|
|
1778
|
-
interface Config$2<T extends ClientOptions$3 = ClientOptions$3> extends Omit<RequestInit, 'body' | 'headers' | 'method'>, Config$3 {
|
|
1080
|
+
type CfgAccountsProfileRetrieveResponse = CfgAccountsProfileRetrieveResponses[keyof CfgAccountsProfileRetrieveResponses];
|
|
1081
|
+
type CfgAccountsProfileAvatarCreateData = {
|
|
1082
|
+
body?: {
|
|
1083
|
+
/**
|
|
1084
|
+
* Avatar image file (JPEG, PNG, GIF, WebP, max 5MB)
|
|
1085
|
+
*/
|
|
1086
|
+
avatar: Blob | File;
|
|
1087
|
+
};
|
|
1088
|
+
path?: never;
|
|
1089
|
+
query?: never;
|
|
1090
|
+
url: '/cfg/accounts/profile/avatar/';
|
|
1091
|
+
};
|
|
1092
|
+
type CfgAccountsProfileAvatarCreateErrors = {
|
|
1779
1093
|
/**
|
|
1780
|
-
*
|
|
1094
|
+
* Invalid file or validation error.
|
|
1781
1095
|
*/
|
|
1782
|
-
|
|
1096
|
+
400: unknown;
|
|
1783
1097
|
/**
|
|
1784
|
-
*
|
|
1785
|
-
* fetch instance.
|
|
1786
|
-
*
|
|
1787
|
-
* @default globalThis.fetch
|
|
1098
|
+
* Authentication credentials were not provided.
|
|
1788
1099
|
*/
|
|
1789
|
-
|
|
1100
|
+
401: unknown;
|
|
1101
|
+
};
|
|
1102
|
+
type CfgAccountsProfileAvatarCreateResponses = {
|
|
1103
|
+
200: User;
|
|
1104
|
+
};
|
|
1105
|
+
type CfgAccountsProfileAvatarCreateResponse = CfgAccountsProfileAvatarCreateResponses[keyof CfgAccountsProfileAvatarCreateResponses];
|
|
1106
|
+
type CfgAccountsProfileDeleteCreateData = {
|
|
1107
|
+
body?: never;
|
|
1108
|
+
path?: never;
|
|
1109
|
+
query?: never;
|
|
1110
|
+
url: '/cfg/accounts/profile/delete/';
|
|
1111
|
+
};
|
|
1112
|
+
type CfgAccountsProfileDeleteCreateErrors = {
|
|
1790
1113
|
/**
|
|
1791
|
-
*
|
|
1792
|
-
* options won't have any effect.
|
|
1793
|
-
*
|
|
1794
|
-
* Install {@link https://www.npmjs.com/package/@hey-api/client-next `@hey-api/client-next`} instead.
|
|
1114
|
+
* Account is already deleted.
|
|
1795
1115
|
*/
|
|
1796
|
-
|
|
1116
|
+
400: unknown;
|
|
1797
1117
|
/**
|
|
1798
|
-
*
|
|
1799
|
-
* will infer the appropriate method from the `Content-Type` response header.
|
|
1800
|
-
* You can override this behavior with any of the {@link Body} methods.
|
|
1801
|
-
* Select `stream` if you don't want to parse response data at all.
|
|
1802
|
-
*
|
|
1803
|
-
* @default 'auto'
|
|
1118
|
+
* Authentication credentials were not provided.
|
|
1804
1119
|
*/
|
|
1805
|
-
|
|
1120
|
+
401: unknown;
|
|
1121
|
+
};
|
|
1122
|
+
type CfgAccountsProfileDeleteCreateResponses = {
|
|
1123
|
+
200: AccountDeleteResponse;
|
|
1124
|
+
};
|
|
1125
|
+
type CfgAccountsProfileDeleteCreateResponse = CfgAccountsProfileDeleteCreateResponses[keyof CfgAccountsProfileDeleteCreateResponses];
|
|
1126
|
+
type CfgAccountsProfilePartialPartialUpdateData = {
|
|
1127
|
+
body?: PatchedCfgUserUpdateRequest;
|
|
1128
|
+
path?: never;
|
|
1129
|
+
query?: never;
|
|
1130
|
+
url: '/cfg/accounts/profile/partial/';
|
|
1131
|
+
};
|
|
1132
|
+
type CfgAccountsProfilePartialPartialUpdateErrors = {
|
|
1806
1133
|
/**
|
|
1807
|
-
*
|
|
1808
|
-
*
|
|
1809
|
-
* @default 'fields'
|
|
1134
|
+
* Invalid data provided.
|
|
1810
1135
|
*/
|
|
1811
|
-
|
|
1136
|
+
400: unknown;
|
|
1812
1137
|
/**
|
|
1813
|
-
*
|
|
1814
|
-
*
|
|
1815
|
-
* @default false
|
|
1138
|
+
* Authentication credentials were not provided.
|
|
1816
1139
|
*/
|
|
1817
|
-
|
|
1818
|
-
}
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
|
|
1140
|
+
401: unknown;
|
|
1141
|
+
};
|
|
1142
|
+
type CfgAccountsProfilePartialPartialUpdateResponses = {
|
|
1143
|
+
200: User;
|
|
1144
|
+
};
|
|
1145
|
+
type CfgAccountsProfilePartialPartialUpdateResponse = CfgAccountsProfilePartialPartialUpdateResponses[keyof CfgAccountsProfilePartialPartialUpdateResponses];
|
|
1146
|
+
type CfgAccountsProfilePartialUpdateData = {
|
|
1147
|
+
body?: CfgUserUpdateRequest;
|
|
1148
|
+
path?: never;
|
|
1149
|
+
query?: never;
|
|
1150
|
+
url: '/cfg/accounts/profile/partial/';
|
|
1151
|
+
};
|
|
1152
|
+
type CfgAccountsProfilePartialUpdateErrors = {
|
|
1823
1153
|
/**
|
|
1824
|
-
*
|
|
1825
|
-
*
|
|
1826
|
-
* {@link https://developer.mozilla.org/docs/Web/API/fetch#body}
|
|
1154
|
+
* Invalid data provided.
|
|
1827
1155
|
*/
|
|
1828
|
-
|
|
1829
|
-
path?: Record<string, unknown>;
|
|
1830
|
-
query?: Record<string, unknown>;
|
|
1156
|
+
400: unknown;
|
|
1831
1157
|
/**
|
|
1832
|
-
*
|
|
1158
|
+
* Authentication credentials were not provided.
|
|
1833
1159
|
*/
|
|
1834
|
-
|
|
1835
|
-
url: Url;
|
|
1836
|
-
}
|
|
1837
|
-
interface ResolvedRequestOptions$1<TResponseStyle extends ResponseStyle$1 = 'fields', ThrowOnError extends boolean = boolean, Url extends string = string> extends RequestOptions$1<unknown, TResponseStyle, ThrowOnError, Url> {
|
|
1838
|
-
headers: Headers;
|
|
1839
|
-
serializedBody?: string;
|
|
1840
|
-
}
|
|
1841
|
-
type RequestResult$1<TData = unknown, TError = unknown, ThrowOnError extends boolean = boolean, TResponseStyle extends ResponseStyle$1 = 'fields'> = ThrowOnError extends true ? Promise<TResponseStyle extends 'data' ? TData extends Record<string, unknown> ? TData[keyof TData] : TData : {
|
|
1842
|
-
data: TData extends Record<string, unknown> ? TData[keyof TData] : TData;
|
|
1843
|
-
request: Request;
|
|
1844
|
-
response: Response;
|
|
1845
|
-
}> : Promise<TResponseStyle extends 'data' ? (TData extends Record<string, unknown> ? TData[keyof TData] : TData) | undefined : ({
|
|
1846
|
-
data: TData extends Record<string, unknown> ? TData[keyof TData] : TData;
|
|
1847
|
-
error: undefined;
|
|
1848
|
-
} | {
|
|
1849
|
-
data: undefined;
|
|
1850
|
-
error: TError extends Record<string, unknown> ? TError[keyof TError] : TError;
|
|
1851
|
-
}) & {
|
|
1852
|
-
/** request may be undefined, because error may be from building the request object itself */
|
|
1853
|
-
request?: Request;
|
|
1854
|
-
/** response may be undefined, because error may be from building the request object itself or from a network error */
|
|
1855
|
-
response?: Response;
|
|
1856
|
-
}>;
|
|
1857
|
-
interface ClientOptions$3 {
|
|
1858
|
-
baseUrl?: string;
|
|
1859
|
-
responseStyle?: ResponseStyle$1;
|
|
1860
|
-
throwOnError?: boolean;
|
|
1861
|
-
}
|
|
1862
|
-
type MethodFn$1 = <TData = unknown, TError = unknown, ThrowOnError extends boolean = false, TResponseStyle extends ResponseStyle$1 = 'fields'>(options: Omit<RequestOptions$1<TData, TResponseStyle, ThrowOnError>, 'method'>) => RequestResult$1<TData, TError, ThrowOnError, TResponseStyle>;
|
|
1863
|
-
type SseFn$1 = <TData = unknown, TError = unknown, ThrowOnError extends boolean = false, TResponseStyle extends ResponseStyle$1 = 'fields'>(options: Omit<RequestOptions$1<never, TResponseStyle, ThrowOnError>, 'method'>) => Promise<ServerSentEventsResult$1<TData, TError>>;
|
|
1864
|
-
type RequestFn$1 = <TData = unknown, TError = unknown, ThrowOnError extends boolean = false, TResponseStyle extends ResponseStyle$1 = 'fields'>(options: Omit<RequestOptions$1<TData, TResponseStyle, ThrowOnError>, 'method'> & Pick<Required<RequestOptions$1<TData, TResponseStyle, ThrowOnError>>, 'method'>) => RequestResult$1<TData, TError, ThrowOnError, TResponseStyle>;
|
|
1865
|
-
type BuildUrlFn$1 = <TData extends {
|
|
1866
|
-
body?: unknown;
|
|
1867
|
-
path?: Record<string, unknown>;
|
|
1868
|
-
query?: Record<string, unknown>;
|
|
1869
|
-
url: string;
|
|
1870
|
-
}>(options: TData & Options$3<TData>) => string;
|
|
1871
|
-
type Client$2 = Client$3<RequestFn$1, Config$2, MethodFn$1, BuildUrlFn$1, SseFn$1> & {
|
|
1872
|
-
interceptors: Middleware$1<Request, Response, unknown, ResolvedRequestOptions$1>;
|
|
1160
|
+
401: unknown;
|
|
1873
1161
|
};
|
|
1874
|
-
|
|
1875
|
-
|
|
1876
|
-
headers?: unknown;
|
|
1877
|
-
path?: unknown;
|
|
1878
|
-
query?: unknown;
|
|
1879
|
-
url: string;
|
|
1880
|
-
}
|
|
1881
|
-
type OmitKeys$1<T, K> = Pick<T, Exclude<keyof T, K>>;
|
|
1882
|
-
type Options$3<TData extends TDataShape$1 = TDataShape$1, ThrowOnError extends boolean = boolean, TResponse = unknown, TResponseStyle extends ResponseStyle$1 = 'fields'> = OmitKeys$1<RequestOptions$1<TResponse, TResponseStyle, ThrowOnError>, 'body' | 'path' | 'query' | 'url'> & ([TData] extends [never] ? unknown : Omit<TData, 'url'>);
|
|
1883
|
-
|
|
1884
|
-
type ClientOptions$2 = {
|
|
1885
|
-
baseUrl: 'http://localhost:8000' | (string & {});
|
|
1162
|
+
type CfgAccountsProfilePartialUpdateResponses = {
|
|
1163
|
+
200: User;
|
|
1886
1164
|
};
|
|
1887
|
-
|
|
1888
|
-
|
|
1889
|
-
|
|
1890
|
-
|
|
1891
|
-
|
|
1892
|
-
|
|
1165
|
+
type CfgAccountsProfilePartialUpdateResponse = CfgAccountsProfilePartialUpdateResponses[keyof CfgAccountsProfilePartialUpdateResponses];
|
|
1166
|
+
type CfgAccountsProfileUpdatePartialUpdateData = {
|
|
1167
|
+
body?: PatchedCfgUserUpdateRequest;
|
|
1168
|
+
path?: never;
|
|
1169
|
+
query?: never;
|
|
1170
|
+
url: '/cfg/accounts/profile/update/';
|
|
1171
|
+
};
|
|
1172
|
+
type CfgAccountsProfileUpdatePartialUpdateErrors = {
|
|
1893
1173
|
/**
|
|
1894
|
-
*
|
|
1895
|
-
*
|
|
1896
|
-
* JWT token for Centrifugo connection
|
|
1174
|
+
* Invalid data provided.
|
|
1897
1175
|
*/
|
|
1898
|
-
|
|
1176
|
+
400: unknown;
|
|
1899
1177
|
/**
|
|
1900
|
-
*
|
|
1901
|
-
*
|
|
1902
|
-
* Centrifugo WebSocket URL
|
|
1178
|
+
* Authentication credentials were not provided.
|
|
1903
1179
|
*/
|
|
1904
|
-
|
|
1180
|
+
401: unknown;
|
|
1181
|
+
};
|
|
1182
|
+
type CfgAccountsProfileUpdatePartialUpdateResponses = {
|
|
1183
|
+
200: User;
|
|
1184
|
+
};
|
|
1185
|
+
type CfgAccountsProfileUpdatePartialUpdateResponse = CfgAccountsProfileUpdatePartialUpdateResponses[keyof CfgAccountsProfileUpdatePartialUpdateResponses];
|
|
1186
|
+
type CfgAccountsProfileUpdateUpdateData = {
|
|
1187
|
+
body?: CfgUserUpdateRequest;
|
|
1188
|
+
path?: never;
|
|
1189
|
+
query?: never;
|
|
1190
|
+
url: '/cfg/accounts/profile/update/';
|
|
1191
|
+
};
|
|
1192
|
+
type CfgAccountsProfileUpdateUpdateErrors = {
|
|
1905
1193
|
/**
|
|
1906
|
-
*
|
|
1907
|
-
*
|
|
1908
|
-
* Token expiration time (ISO 8601)
|
|
1194
|
+
* Invalid data provided.
|
|
1909
1195
|
*/
|
|
1910
|
-
|
|
1196
|
+
400: unknown;
|
|
1911
1197
|
/**
|
|
1912
|
-
*
|
|
1913
|
-
*
|
|
1914
|
-
* List of allowed channels
|
|
1198
|
+
* Authentication credentials were not provided.
|
|
1915
1199
|
*/
|
|
1916
|
-
|
|
1200
|
+
401: unknown;
|
|
1201
|
+
};
|
|
1202
|
+
type CfgAccountsProfileUpdateUpdateResponses = {
|
|
1203
|
+
200: User;
|
|
1204
|
+
};
|
|
1205
|
+
type CfgAccountsProfileUpdateUpdateResponse = CfgAccountsProfileUpdateUpdateResponses[keyof CfgAccountsProfileUpdateUpdateResponses];
|
|
1206
|
+
type CfgAccountsTokenRefreshCreateData = {
|
|
1207
|
+
body: TokenRefreshRequest;
|
|
1208
|
+
path?: never;
|
|
1209
|
+
query?: never;
|
|
1210
|
+
url: '/cfg/accounts/token/refresh/';
|
|
1211
|
+
};
|
|
1212
|
+
type CfgAccountsTokenRefreshCreateResponses = {
|
|
1213
|
+
200: TokenRefresh;
|
|
1917
1214
|
};
|
|
1215
|
+
type CfgAccountsTokenRefreshCreateResponse = CfgAccountsTokenRefreshCreateResponses[keyof CfgAccountsTokenRefreshCreateResponses];
|
|
1918
1216
|
type CfgCentrifugoAuthTokenRetrieveData = {
|
|
1919
1217
|
body?: never;
|
|
1920
1218
|
path?: never;
|
|
@@ -1935,57 +1233,145 @@ type CfgCentrifugoAuthTokenRetrieveResponses = {
|
|
|
1935
1233
|
200: ConnectionTokenResponse;
|
|
1936
1234
|
};
|
|
1937
1235
|
type CfgCentrifugoAuthTokenRetrieveResponse = CfgCentrifugoAuthTokenRetrieveResponses[keyof CfgCentrifugoAuthTokenRetrieveResponses];
|
|
1938
|
-
|
|
1939
|
-
|
|
1940
|
-
|
|
1941
|
-
|
|
1942
|
-
|
|
1943
|
-
|
|
1944
|
-
|
|
1945
|
-
|
|
1946
|
-
}
|
|
1947
|
-
|
|
1948
|
-
type
|
|
1236
|
+
type CfgTotpBackupCodesRetrieveData = {
|
|
1237
|
+
body?: never;
|
|
1238
|
+
path?: never;
|
|
1239
|
+
query?: never;
|
|
1240
|
+
url: '/cfg/totp/backup-codes/';
|
|
1241
|
+
};
|
|
1242
|
+
type CfgTotpBackupCodesRetrieveResponses = {
|
|
1243
|
+
200: BackupCodesStatus;
|
|
1244
|
+
};
|
|
1245
|
+
type CfgTotpBackupCodesRetrieveResponse = CfgTotpBackupCodesRetrieveResponses[keyof CfgTotpBackupCodesRetrieveResponses];
|
|
1246
|
+
type CfgTotpBackupCodesRegenerateCreateData = {
|
|
1247
|
+
body: BackupCodesRegenerateRequest;
|
|
1248
|
+
path?: never;
|
|
1249
|
+
query?: never;
|
|
1250
|
+
url: '/cfg/totp/backup-codes/regenerate/';
|
|
1251
|
+
};
|
|
1252
|
+
type CfgTotpBackupCodesRegenerateCreateErrors = {
|
|
1949
1253
|
/**
|
|
1950
|
-
*
|
|
1951
|
-
* individual options. This might be also useful if you want to implement a
|
|
1952
|
-
* custom client.
|
|
1254
|
+
* Invalid code or 2FA not enabled
|
|
1953
1255
|
*/
|
|
1954
|
-
|
|
1256
|
+
400: unknown;
|
|
1257
|
+
};
|
|
1258
|
+
type CfgTotpBackupCodesRegenerateCreateResponses = {
|
|
1259
|
+
200: BackupCodesRegenerateResponse;
|
|
1260
|
+
};
|
|
1261
|
+
type CfgTotpBackupCodesRegenerateCreateResponse = CfgTotpBackupCodesRegenerateCreateResponses[keyof CfgTotpBackupCodesRegenerateCreateResponses];
|
|
1262
|
+
type CfgTotpDevicesRetrieveData = {
|
|
1263
|
+
body?: never;
|
|
1264
|
+
path?: never;
|
|
1265
|
+
query?: never;
|
|
1266
|
+
url: '/cfg/totp/devices/';
|
|
1267
|
+
};
|
|
1268
|
+
type CfgTotpDevicesRetrieveResponses = {
|
|
1269
|
+
200: DeviceListResponse;
|
|
1270
|
+
};
|
|
1271
|
+
type CfgTotpDevicesRetrieveResponse = CfgTotpDevicesRetrieveResponses[keyof CfgTotpDevicesRetrieveResponses];
|
|
1272
|
+
type CfgTotpDevicesDestroyData = {
|
|
1273
|
+
body?: never;
|
|
1274
|
+
path: {
|
|
1275
|
+
id: string;
|
|
1276
|
+
};
|
|
1277
|
+
query?: never;
|
|
1278
|
+
url: '/cfg/totp/devices/{id}/';
|
|
1279
|
+
};
|
|
1280
|
+
type CfgTotpDevicesDestroyResponses = {
|
|
1955
1281
|
/**
|
|
1956
|
-
*
|
|
1957
|
-
* used to access values that aren't defined as part of the SDK function.
|
|
1282
|
+
* No response body
|
|
1958
1283
|
*/
|
|
1959
|
-
|
|
1284
|
+
204: void;
|
|
1285
|
+
};
|
|
1286
|
+
type CfgTotpDevicesDestroyResponse = CfgTotpDevicesDestroyResponses[keyof CfgTotpDevicesDestroyResponses];
|
|
1287
|
+
type CfgTotpDisableCreateData = {
|
|
1288
|
+
body: DisableRequest;
|
|
1289
|
+
path?: never;
|
|
1290
|
+
query?: never;
|
|
1291
|
+
url: '/cfg/totp/disable/';
|
|
1960
1292
|
};
|
|
1961
|
-
|
|
1293
|
+
type CfgTotpDisableCreateErrors = {
|
|
1962
1294
|
/**
|
|
1963
|
-
*
|
|
1964
|
-
*
|
|
1965
|
-
* Generate JWT token for WebSocket connection to Centrifugo. Token includes user's allowed channels based on their permissions. Requires authentication.
|
|
1295
|
+
* Invalid code
|
|
1966
1296
|
*/
|
|
1967
|
-
|
|
1968
|
-
}
|
|
1969
|
-
|
|
1297
|
+
400: unknown;
|
|
1298
|
+
};
|
|
1299
|
+
type CfgTotpDisableCreateResponses = {
|
|
1970
1300
|
/**
|
|
1971
|
-
*
|
|
1972
|
-
*
|
|
1973
|
-
* Generate JWT token for WebSocket connection to Centrifugo. Token includes user's allowed channels based on their permissions. Requires authentication.
|
|
1301
|
+
* 2FA disabled successfully
|
|
1974
1302
|
*/
|
|
1975
|
-
|
|
1976
|
-
}
|
|
1977
|
-
|
|
1303
|
+
200: unknown;
|
|
1304
|
+
};
|
|
1305
|
+
type CfgTotpSetupCreateData = {
|
|
1306
|
+
body?: SetupRequest;
|
|
1307
|
+
path?: never;
|
|
1308
|
+
query?: never;
|
|
1309
|
+
url: '/cfg/totp/setup/';
|
|
1310
|
+
};
|
|
1311
|
+
type CfgTotpSetupCreateErrors = {
|
|
1978
1312
|
/**
|
|
1979
|
-
*
|
|
1980
|
-
*
|
|
1981
|
-
* Generate JWT token for WebSocket connection to Centrifugo. Token includes user's allowed channels based on their permissions. Requires authentication.
|
|
1313
|
+
* 2FA already enabled or invalid request
|
|
1982
1314
|
*/
|
|
1983
|
-
|
|
1984
|
-
}
|
|
1315
|
+
400: unknown;
|
|
1316
|
+
};
|
|
1317
|
+
type CfgTotpSetupCreateResponses = {
|
|
1318
|
+
200: SetupResponse;
|
|
1319
|
+
};
|
|
1320
|
+
type CfgTotpSetupCreateResponse = CfgTotpSetupCreateResponses[keyof CfgTotpSetupCreateResponses];
|
|
1321
|
+
type CfgTotpSetupConfirmCreateData = {
|
|
1322
|
+
body: ConfirmSetupRequest;
|
|
1323
|
+
path?: never;
|
|
1324
|
+
query?: never;
|
|
1325
|
+
url: '/cfg/totp/setup/confirm/';
|
|
1326
|
+
};
|
|
1327
|
+
type CfgTotpSetupConfirmCreateErrors = {
|
|
1328
|
+
/**
|
|
1329
|
+
* Invalid code or setup expired
|
|
1330
|
+
*/
|
|
1331
|
+
400: unknown;
|
|
1332
|
+
};
|
|
1333
|
+
type CfgTotpSetupConfirmCreateResponses = {
|
|
1334
|
+
200: ConfirmSetupResponse;
|
|
1335
|
+
};
|
|
1336
|
+
type CfgTotpSetupConfirmCreateResponse = CfgTotpSetupConfirmCreateResponses[keyof CfgTotpSetupConfirmCreateResponses];
|
|
1337
|
+
type CfgTotpVerifyCreateData = {
|
|
1338
|
+
body: VerifyRequest;
|
|
1339
|
+
path?: never;
|
|
1340
|
+
query?: never;
|
|
1341
|
+
url: '/cfg/totp/verify/';
|
|
1342
|
+
};
|
|
1343
|
+
type CfgTotpVerifyCreateErrors = {
|
|
1344
|
+
/**
|
|
1345
|
+
* Invalid code or session
|
|
1346
|
+
*/
|
|
1347
|
+
400: unknown;
|
|
1348
|
+
/**
|
|
1349
|
+
* Too many attempts
|
|
1350
|
+
*/
|
|
1351
|
+
403: unknown;
|
|
1352
|
+
};
|
|
1353
|
+
type CfgTotpVerifyCreateResponses = {
|
|
1354
|
+
200: VerifyResponse;
|
|
1355
|
+
};
|
|
1356
|
+
type CfgTotpVerifyCreateResponse = CfgTotpVerifyCreateResponses[keyof CfgTotpVerifyCreateResponses];
|
|
1357
|
+
type CfgTotpVerifyBackupCreateData = {
|
|
1358
|
+
body: VerifyBackupRequest;
|
|
1359
|
+
path?: never;
|
|
1360
|
+
query?: never;
|
|
1361
|
+
url: '/cfg/totp/verify/backup/';
|
|
1362
|
+
};
|
|
1363
|
+
type CfgTotpVerifyBackupCreateErrors = {
|
|
1364
|
+
/**
|
|
1365
|
+
* Invalid backup code or session
|
|
1366
|
+
*/
|
|
1367
|
+
400: unknown;
|
|
1368
|
+
};
|
|
1369
|
+
type CfgTotpVerifyBackupCreateResponses = {
|
|
1370
|
+
200: VerifyResponse;
|
|
1371
|
+
};
|
|
1372
|
+
type CfgTotpVerifyBackupCreateResponse = CfgTotpVerifyBackupCreateResponses[keyof CfgTotpVerifyBackupCreateResponses];
|
|
1985
1373
|
|
|
1986
1374
|
interface APIOptions$1 {
|
|
1987
|
-
/** Override storage backend (LocalStorage by default; Memory for SSR/tests). */
|
|
1988
|
-
storage?: StorageAdapter;
|
|
1989
1375
|
/** Logger config (defaults to dev-only). */
|
|
1990
1376
|
logger?: Partial<LoggerConfig>;
|
|
1991
1377
|
/** Locale for `Accept-Language`. If omitted, auto-detected from cookie/navigator. */
|
|
@@ -1996,25 +1382,55 @@ interface APIOptions$1 {
|
|
|
1996
1382
|
withCredentials?: boolean;
|
|
1997
1383
|
}
|
|
1998
1384
|
/**
|
|
1999
|
-
*
|
|
1385
|
+
* Per-group ergonomic facade.
|
|
2000
1386
|
*
|
|
2001
|
-
*
|
|
2002
|
-
*
|
|
2003
|
-
*
|
|
2004
|
-
*
|
|
2005
|
-
*
|
|
2006
|
-
*
|
|
1387
|
+
* Calling `setToken/setApiKey/setLocale/setBaseUrl` proxies to the
|
|
1388
|
+
* global `auth` store — the change applies to **every** group's API
|
|
1389
|
+
* instance because they share the same HTTP client and interceptor.
|
|
1390
|
+
*
|
|
1391
|
+
* Use the global `auth` object directly when you don't need a group
|
|
1392
|
+
* facade: `import { auth } from '@your/api'; auth.setToken(jwt);`
|
|
2007
1393
|
*/
|
|
2008
1394
|
declare class API$1 {
|
|
2009
|
-
private baseUrl;
|
|
2010
|
-
private storage;
|
|
2011
|
-
private locale;
|
|
2012
|
-
private apiKey;
|
|
2013
1395
|
readonly logger: APILogger;
|
|
2014
|
-
|
|
2015
|
-
|
|
2016
|
-
|
|
2017
|
-
|
|
1396
|
+
constructor(_baseUrl?: string, opts?: APIOptions$1);
|
|
1397
|
+
getBaseUrl(): string;
|
|
1398
|
+
setBaseUrl(url: string): void;
|
|
1399
|
+
getToken(): string | null;
|
|
1400
|
+
setToken(token: string | null): void;
|
|
1401
|
+
getRefreshToken(): string | null;
|
|
1402
|
+
setRefreshToken(token: string | null): void;
|
|
1403
|
+
clearToken(): void;
|
|
1404
|
+
isAuthenticated(): boolean;
|
|
1405
|
+
getLocale(): string | null;
|
|
1406
|
+
setLocale(locale: string | null): void;
|
|
1407
|
+
getApiKey(): string | null;
|
|
1408
|
+
setApiKey(key: string | null): void;
|
|
1409
|
+
}
|
|
1410
|
+
|
|
1411
|
+
interface APIOptions {
|
|
1412
|
+
/** Logger config (defaults to dev-only). */
|
|
1413
|
+
logger?: Partial<LoggerConfig>;
|
|
1414
|
+
/** Locale for `Accept-Language`. If omitted, auto-detected from cookie/navigator. */
|
|
1415
|
+
locale?: string;
|
|
1416
|
+
/** API key sent as `X-API-Key`. Falls back to NEXT_PUBLIC_API_KEY. */
|
|
1417
|
+
apiKey?: string;
|
|
1418
|
+
/** Send Django session/CSRF cookies cross-origin. Defaults to true. */
|
|
1419
|
+
withCredentials?: boolean;
|
|
1420
|
+
}
|
|
1421
|
+
/**
|
|
1422
|
+
* Per-group ergonomic facade.
|
|
1423
|
+
*
|
|
1424
|
+
* Calling `setToken/setApiKey/setLocale/setBaseUrl` proxies to the
|
|
1425
|
+
* global `auth` store — the change applies to **every** group's API
|
|
1426
|
+
* instance because they share the same HTTP client and interceptor.
|
|
1427
|
+
*
|
|
1428
|
+
* Use the global `auth` object directly when you don't need a group
|
|
1429
|
+
* facade: `import { auth } from '@your/api'; auth.setToken(jwt);`
|
|
1430
|
+
*/
|
|
1431
|
+
declare class API {
|
|
1432
|
+
readonly logger: APILogger;
|
|
1433
|
+
constructor(_baseUrl?: string, opts?: APIOptions);
|
|
2018
1434
|
getBaseUrl(): string;
|
|
2019
1435
|
setBaseUrl(url: string): void;
|
|
2020
1436
|
getToken(): string | null;
|
|
@@ -2029,8 +1445,12 @@ declare class API$1 {
|
|
|
2029
1445
|
setApiKey(key: string | null): void;
|
|
2030
1446
|
}
|
|
2031
1447
|
|
|
1448
|
+
declare const CfgAccountsApi: API$2;
|
|
1449
|
+
declare const CfgCentrifugoApi: API$1;
|
|
1450
|
+
declare const CfgTotpApi: API;
|
|
1451
|
+
|
|
2032
1452
|
type AuthToken = string | undefined;
|
|
2033
|
-
interface Auth {
|
|
1453
|
+
interface Auth$1 {
|
|
2034
1454
|
/**
|
|
2035
1455
|
* Which part of the request do we use to send the auth?
|
|
2036
1456
|
*
|
|
@@ -2095,7 +1515,7 @@ interface Config$1 {
|
|
|
2095
1515
|
* Auth token or a function returning auth token. The resolved value will be
|
|
2096
1516
|
* added to the request payload as defined by its `security` array.
|
|
2097
1517
|
*/
|
|
2098
|
-
auth?: ((auth: Auth) => Promise<AuthToken> | AuthToken) | AuthToken;
|
|
1518
|
+
auth?: ((auth: Auth$1) => Promise<AuthToken> | AuthToken) | AuthToken;
|
|
2099
1519
|
/**
|
|
2100
1520
|
* A function for serializing request body parameter. By default,
|
|
2101
1521
|
* {@link JSON.stringify()} will be used.
|
|
@@ -2237,7 +1657,7 @@ interface Middleware<Req, Res, Err, Options> {
|
|
|
2237
1657
|
}
|
|
2238
1658
|
|
|
2239
1659
|
type ResponseStyle = 'data' | 'fields';
|
|
2240
|
-
interface Config<T extends ClientOptions
|
|
1660
|
+
interface Config<T extends ClientOptions = ClientOptions> extends Omit<RequestInit, 'body' | 'headers' | 'method'>, Config$1 {
|
|
2241
1661
|
/**
|
|
2242
1662
|
* Base URL for all requests made by this client.
|
|
2243
1663
|
*/
|
|
@@ -2293,7 +1713,7 @@ interface RequestOptions<TData = unknown, TResponseStyle extends ResponseStyle =
|
|
|
2293
1713
|
/**
|
|
2294
1714
|
* Security mechanism(s) to use for the request.
|
|
2295
1715
|
*/
|
|
2296
|
-
security?: ReadonlyArray<Auth>;
|
|
1716
|
+
security?: ReadonlyArray<Auth$1>;
|
|
2297
1717
|
url: Url;
|
|
2298
1718
|
}
|
|
2299
1719
|
interface ResolvedRequestOptions<TResponseStyle extends ResponseStyle = 'fields', ThrowOnError extends boolean = boolean, Url extends string = string> extends RequestOptions<unknown, TResponseStyle, ThrowOnError, Url> {
|
|
@@ -2316,7 +1736,7 @@ type RequestResult<TData = unknown, TError = unknown, ThrowOnError extends boole
|
|
|
2316
1736
|
/** response may be undefined, because error may be from building the request object itself or from a network error */
|
|
2317
1737
|
response?: Response;
|
|
2318
1738
|
}>;
|
|
2319
|
-
interface ClientOptions
|
|
1739
|
+
interface ClientOptions {
|
|
2320
1740
|
baseUrl?: string;
|
|
2321
1741
|
responseStyle?: ResponseStyle;
|
|
2322
1742
|
throwOnError?: boolean;
|
|
@@ -2343,555 +1763,389 @@ interface TDataShape {
|
|
|
2343
1763
|
type OmitKeys<T, K> = Pick<T, Exclude<keyof T, K>>;
|
|
2344
1764
|
type Options$1<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean, TResponse = unknown, TResponseStyle extends ResponseStyle = 'fields'> = OmitKeys<RequestOptions<TResponse, TResponseStyle, ThrowOnError>, 'body' | 'path' | 'query' | 'url'> & ([TData] extends [never] ? unknown : Omit<TData, 'url'>);
|
|
2345
1765
|
|
|
2346
|
-
type
|
|
2347
|
-
baseUrl: 'http://localhost:8000' | (string & {});
|
|
2348
|
-
};
|
|
2349
|
-
/**
|
|
2350
|
-
* Serializer for regenerating backup codes.
|
|
2351
|
-
*/
|
|
2352
|
-
type BackupCodesRegenerateRequest = {
|
|
2353
|
-
/**
|
|
2354
|
-
* TOTP code for verification
|
|
2355
|
-
*/
|
|
2356
|
-
code: string;
|
|
2357
|
-
};
|
|
2358
|
-
/**
|
|
2359
|
-
* Response serializer for backup codes regeneration.
|
|
2360
|
-
*/
|
|
2361
|
-
type BackupCodesRegenerateResponse = {
|
|
2362
|
-
/**
|
|
2363
|
-
* List of new backup codes (save these!)
|
|
2364
|
-
*/
|
|
2365
|
-
backup_codes: Array<string>;
|
|
2366
|
-
/**
|
|
2367
|
-
* Warning about previous codes being invalidated
|
|
2368
|
-
*/
|
|
2369
|
-
warning: string;
|
|
2370
|
-
};
|
|
2371
|
-
/**
|
|
2372
|
-
* Serializer for backup codes status.
|
|
2373
|
-
*/
|
|
2374
|
-
type BackupCodesStatus = {
|
|
2375
|
-
/**
|
|
2376
|
-
* Number of unused backup codes
|
|
2377
|
-
*/
|
|
2378
|
-
remaining_count: number;
|
|
2379
|
-
/**
|
|
2380
|
-
* Total number of codes generated
|
|
2381
|
-
*/
|
|
2382
|
-
total_generated: number;
|
|
2383
|
-
/**
|
|
2384
|
-
* Warning if running low on codes
|
|
2385
|
-
*/
|
|
2386
|
-
warning?: string | null;
|
|
2387
|
-
};
|
|
2388
|
-
/**
|
|
2389
|
-
* Serializer for confirming 2FA setup with first code.
|
|
2390
|
-
*/
|
|
2391
|
-
type ConfirmSetupRequest = {
|
|
2392
|
-
/**
|
|
2393
|
-
* Device ID from setup response
|
|
2394
|
-
*/
|
|
2395
|
-
device_id: string;
|
|
2396
|
-
/**
|
|
2397
|
-
* 6-digit TOTP code from authenticator app
|
|
2398
|
-
*/
|
|
2399
|
-
code: string;
|
|
2400
|
-
};
|
|
2401
|
-
/**
|
|
2402
|
-
* Response serializer for setup confirmation.
|
|
2403
|
-
*/
|
|
2404
|
-
type ConfirmSetupResponse = {
|
|
2405
|
-
message: string;
|
|
1766
|
+
type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean, TResponse = unknown> = Options$1<TData, ThrowOnError, TResponse> & {
|
|
2406
1767
|
/**
|
|
2407
|
-
*
|
|
1768
|
+
* You can provide a client instance returned by `createClient()` instead of
|
|
1769
|
+
* individual options. This might be also useful if you want to implement a
|
|
1770
|
+
* custom client.
|
|
2408
1771
|
*/
|
|
2409
|
-
|
|
1772
|
+
client?: Client;
|
|
2410
1773
|
/**
|
|
2411
|
-
*
|
|
1774
|
+
* You can pass arbitrary values through the `meta` object. This can be
|
|
1775
|
+
* used to access values that aren't defined as part of the SDK function.
|
|
2412
1776
|
*/
|
|
2413
|
-
|
|
1777
|
+
meta?: Record<string, unknown>;
|
|
2414
1778
|
};
|
|
2415
|
-
|
|
2416
|
-
* Serializer for listing TOTP devices.
|
|
2417
|
-
*/
|
|
2418
|
-
type DeviceList = {
|
|
2419
|
-
readonly id: string;
|
|
1779
|
+
declare class Cfg {
|
|
2420
1780
|
/**
|
|
2421
|
-
*
|
|
1781
|
+
* List OAuth connections
|
|
1782
|
+
*
|
|
1783
|
+
* Get all OAuth connections for the current user.
|
|
2422
1784
|
*/
|
|
2423
|
-
|
|
1785
|
+
static cfgAccountsOauthConnectionsList<ThrowOnError extends boolean = false>(options?: Options<CfgAccountsOauthConnectionsListData, ThrowOnError>): RequestResult<CfgAccountsOauthConnectionsListResponses, unknown, ThrowOnError, "fields">;
|
|
2424
1786
|
/**
|
|
2425
|
-
*
|
|
1787
|
+
* Disconnect OAuth provider
|
|
1788
|
+
*
|
|
1789
|
+
* Remove OAuth connection for the specified provider.
|
|
2426
1790
|
*/
|
|
2427
|
-
|
|
2428
|
-
readonly status: DeviceListStatusEnum;
|
|
2429
|
-
readonly created_at: string;
|
|
1791
|
+
static cfgAccountsOauthDisconnectCreate<ThrowOnError extends boolean = false>(options: Options<CfgAccountsOauthDisconnectCreateData, ThrowOnError>): RequestResult<CfgAccountsOauthDisconnectCreateResponses, CfgAccountsOauthDisconnectCreateErrors, ThrowOnError, "fields">;
|
|
2430
1792
|
/**
|
|
2431
|
-
*
|
|
1793
|
+
* Start GitHub OAuth
|
|
1794
|
+
*
|
|
1795
|
+
* Generate GitHub OAuth authorization URL. Redirect user to this URL to start authentication.
|
|
2432
1796
|
*/
|
|
2433
|
-
|
|
1797
|
+
static cfgAccountsOauthGithubAuthorizeCreate<ThrowOnError extends boolean = false>(options?: Options<CfgAccountsOauthGithubAuthorizeCreateData, ThrowOnError>): RequestResult<CfgAccountsOauthGithubAuthorizeCreateResponses, CfgAccountsOauthGithubAuthorizeCreateErrors, ThrowOnError, "fields">;
|
|
2434
1798
|
/**
|
|
2435
|
-
*
|
|
1799
|
+
* Complete GitHub OAuth
|
|
1800
|
+
*
|
|
1801
|
+
* Exchange authorization code for JWT tokens. Call this after GitHub redirects back with code.
|
|
2436
1802
|
*/
|
|
2437
|
-
|
|
2438
|
-
};
|
|
2439
|
-
/**
|
|
2440
|
-
* Response serializer for device list endpoint.
|
|
2441
|
-
*/
|
|
2442
|
-
type DeviceListResponse = {
|
|
2443
|
-
devices: Array<DeviceList>;
|
|
2444
|
-
has_2fa_enabled: boolean;
|
|
2445
|
-
};
|
|
2446
|
-
/**
|
|
2447
|
-
* * `pending` - Pending Confirmation
|
|
2448
|
-
* * `active` - Active
|
|
2449
|
-
* * `disabled` - Disabled
|
|
2450
|
-
*/
|
|
2451
|
-
declare enum DeviceListStatusEnum {
|
|
2452
|
-
PENDING = "pending",
|
|
2453
|
-
ACTIVE = "active",
|
|
2454
|
-
DISABLED = "disabled"
|
|
2455
|
-
}
|
|
2456
|
-
/**
|
|
2457
|
-
* Serializer for completely disabling 2FA.
|
|
2458
|
-
*/
|
|
2459
|
-
type DisableRequest = {
|
|
1803
|
+
static cfgAccountsOauthGithubCallbackCreate<ThrowOnError extends boolean = false>(options: Options<CfgAccountsOauthGithubCallbackCreateData, ThrowOnError>): RequestResult<CfgAccountsOauthGithubCallbackCreateResponses, CfgAccountsOauthGithubCallbackCreateErrors, ThrowOnError, "fields">;
|
|
2460
1804
|
/**
|
|
2461
|
-
*
|
|
1805
|
+
* List OAuth providers
|
|
1806
|
+
*
|
|
1807
|
+
* Get list of available OAuth providers for authentication.
|
|
2462
1808
|
*/
|
|
2463
|
-
|
|
2464
|
-
};
|
|
2465
|
-
/**
|
|
2466
|
-
* Serializer for starting 2FA setup.
|
|
2467
|
-
*/
|
|
2468
|
-
type SetupRequest = {
|
|
1809
|
+
static cfgAccountsOauthProvidersRetrieve<ThrowOnError extends boolean = false>(options?: Options<CfgAccountsOauthProvidersRetrieveData, ThrowOnError>): RequestResult<CfgAccountsOauthProvidersRetrieveResponses, unknown, ThrowOnError, "fields">;
|
|
2469
1810
|
/**
|
|
2470
|
-
*
|
|
1811
|
+
* Request OTP code to email.
|
|
2471
1812
|
*/
|
|
2472
|
-
|
|
2473
|
-
};
|
|
2474
|
-
/**
|
|
2475
|
-
* Response serializer for setup initiation.
|
|
2476
|
-
*/
|
|
2477
|
-
type SetupResponse = {
|
|
1813
|
+
static cfgAccountsOtpRequestCreate<ThrowOnError extends boolean = false>(options: Options<CfgAccountsOtpRequestCreateData, ThrowOnError>): RequestResult<CfgAccountsOtpRequestCreateResponses, CfgAccountsOtpRequestCreateErrors, ThrowOnError, "fields">;
|
|
2478
1814
|
/**
|
|
2479
|
-
*
|
|
1815
|
+
* Verify OTP code and return JWT tokens or 2FA session.
|
|
1816
|
+
*
|
|
1817
|
+
* If user has 2FA enabled:
|
|
1818
|
+
* - Returns requires_2fa=True with session_id
|
|
1819
|
+
* - Client must complete 2FA verification at /cfg/totp/verify/
|
|
1820
|
+
*
|
|
1821
|
+
* If user has no 2FA:
|
|
1822
|
+
* - Returns JWT tokens and user data directly
|
|
2480
1823
|
*/
|
|
2481
|
-
|
|
1824
|
+
static cfgAccountsOtpVerifyCreate<ThrowOnError extends boolean = false>(options: Options<CfgAccountsOtpVerifyCreateData, ThrowOnError>): RequestResult<CfgAccountsOtpVerifyCreateResponses, CfgAccountsOtpVerifyCreateErrors, ThrowOnError, "fields">;
|
|
2482
1825
|
/**
|
|
2483
|
-
*
|
|
1826
|
+
* Get current user profile
|
|
1827
|
+
*
|
|
1828
|
+
* Retrieve the current authenticated user's profile information.
|
|
2484
1829
|
*/
|
|
2485
|
-
|
|
1830
|
+
static cfgAccountsProfileRetrieve<ThrowOnError extends boolean = false>(options?: Options<CfgAccountsProfileRetrieveData, ThrowOnError>): RequestResult<CfgAccountsProfileRetrieveResponses, CfgAccountsProfileRetrieveErrors, ThrowOnError, "fields">;
|
|
2486
1831
|
/**
|
|
2487
|
-
*
|
|
1832
|
+
* Upload user avatar
|
|
1833
|
+
*
|
|
1834
|
+
* Upload avatar image for the current authenticated user. Accepts multipart/form-data with 'avatar' field.
|
|
2488
1835
|
*/
|
|
2489
|
-
|
|
1836
|
+
static cfgAccountsProfileAvatarCreate<ThrowOnError extends boolean = false>(options?: Options<CfgAccountsProfileAvatarCreateData, ThrowOnError>): RequestResult<CfgAccountsProfileAvatarCreateResponses, CfgAccountsProfileAvatarCreateErrors, ThrowOnError, "fields">;
|
|
2490
1837
|
/**
|
|
2491
|
-
*
|
|
1838
|
+
* Delete user account
|
|
1839
|
+
*
|
|
1840
|
+
*
|
|
1841
|
+
* Permanently delete the current user's account.
|
|
1842
|
+
*
|
|
1843
|
+
* This operation:
|
|
1844
|
+
* - Deactivates the account (user cannot log in)
|
|
1845
|
+
* - Anonymizes personal data (GDPR compliance)
|
|
1846
|
+
* - Frees up the email address for re-registration
|
|
1847
|
+
* - Preserves audit trail
|
|
1848
|
+
*
|
|
1849
|
+
* The account can be restored by an administrator if needed.
|
|
1850
|
+
*
|
|
2492
1851
|
*/
|
|
2493
|
-
|
|
1852
|
+
static cfgAccountsProfileDeleteCreate<ThrowOnError extends boolean = false>(options?: Options<CfgAccountsProfileDeleteCreateData, ThrowOnError>): RequestResult<CfgAccountsProfileDeleteCreateResponses, CfgAccountsProfileDeleteCreateErrors, ThrowOnError, "fields">;
|
|
2494
1853
|
/**
|
|
2495
|
-
*
|
|
1854
|
+
* Partial update user profile
|
|
1855
|
+
*
|
|
1856
|
+
* Partially update the current authenticated user's profile information. Supports avatar upload.
|
|
2496
1857
|
*/
|
|
2497
|
-
|
|
2498
|
-
};
|
|
2499
|
-
/**
|
|
2500
|
-
* User data returned after 2FA verification.
|
|
2501
|
-
*/
|
|
2502
|
-
type TotpVerifyUser = {
|
|
2503
|
-
readonly id: number;
|
|
2504
|
-
readonly email: string;
|
|
2505
|
-
first_name?: string;
|
|
2506
|
-
last_name?: string;
|
|
1858
|
+
static cfgAccountsProfilePartialPartialUpdate<ThrowOnError extends boolean = false>(options?: Options<CfgAccountsProfilePartialPartialUpdateData, ThrowOnError>): RequestResult<CfgAccountsProfilePartialPartialUpdateResponses, CfgAccountsProfilePartialPartialUpdateErrors, ThrowOnError, "fields">;
|
|
2507
1859
|
/**
|
|
2508
|
-
*
|
|
1860
|
+
* Partial update user profile
|
|
1861
|
+
*
|
|
1862
|
+
* Partially update the current authenticated user's profile information. Supports avatar upload.
|
|
2509
1863
|
*/
|
|
2510
|
-
|
|
1864
|
+
static cfgAccountsProfilePartialUpdate<ThrowOnError extends boolean = false>(options?: Options<CfgAccountsProfilePartialUpdateData, ThrowOnError>): RequestResult<CfgAccountsProfilePartialUpdateResponses, CfgAccountsProfilePartialUpdateErrors, ThrowOnError, "fields">;
|
|
2511
1865
|
/**
|
|
2512
|
-
*
|
|
1866
|
+
* Update user profile
|
|
1867
|
+
*
|
|
1868
|
+
* Update the current authenticated user's profile information.
|
|
2513
1869
|
*/
|
|
2514
|
-
|
|
1870
|
+
static cfgAccountsProfileUpdatePartialUpdate<ThrowOnError extends boolean = false>(options?: Options<CfgAccountsProfileUpdatePartialUpdateData, ThrowOnError>): RequestResult<CfgAccountsProfileUpdatePartialUpdateResponses, CfgAccountsProfileUpdatePartialUpdateErrors, ThrowOnError, "fields">;
|
|
2515
1871
|
/**
|
|
2516
|
-
*
|
|
1872
|
+
* Update user profile
|
|
1873
|
+
*
|
|
1874
|
+
* Update the current authenticated user's profile information.
|
|
2517
1875
|
*/
|
|
2518
|
-
|
|
2519
|
-
company?: string;
|
|
2520
|
-
phone?: string;
|
|
2521
|
-
position?: string;
|
|
2522
|
-
language?: string;
|
|
2523
|
-
readonly avatar: string | null;
|
|
1876
|
+
static cfgAccountsProfileUpdateUpdate<ThrowOnError extends boolean = false>(options?: Options<CfgAccountsProfileUpdateUpdateData, ThrowOnError>): RequestResult<CfgAccountsProfileUpdateUpdateResponses, CfgAccountsProfileUpdateUpdateErrors, ThrowOnError, "fields">;
|
|
2524
1877
|
/**
|
|
2525
|
-
*
|
|
2526
|
-
*
|
|
2527
|
-
* Designates whether the user can log into this admin site.
|
|
1878
|
+
* Refresh JWT token.
|
|
2528
1879
|
*/
|
|
2529
|
-
|
|
1880
|
+
static cfgAccountsTokenRefreshCreate<ThrowOnError extends boolean = false>(options: Options<CfgAccountsTokenRefreshCreateData, ThrowOnError>): RequestResult<CfgAccountsTokenRefreshCreateResponses, unknown, ThrowOnError, "fields">;
|
|
2530
1881
|
/**
|
|
2531
|
-
*
|
|
1882
|
+
* Get Centrifugo connection token
|
|
2532
1883
|
*
|
|
2533
|
-
*
|
|
1884
|
+
* Generate JWT token for WebSocket connection to Centrifugo. Token includes user's allowed channels based on their permissions. Requires authentication.
|
|
2534
1885
|
*/
|
|
2535
|
-
|
|
2536
|
-
readonly date_joined: string;
|
|
2537
|
-
readonly last_login: string | null;
|
|
2538
|
-
readonly unanswered_messages_count: number;
|
|
2539
|
-
};
|
|
2540
|
-
/**
|
|
2541
|
-
* Serializer for backup code verification during login.
|
|
2542
|
-
*/
|
|
2543
|
-
type VerifyBackupRequest = {
|
|
1886
|
+
static cfgCentrifugoAuthTokenRetrieve<ThrowOnError extends boolean = false>(options?: Options<CfgCentrifugoAuthTokenRetrieveData, ThrowOnError>): RequestResult<CfgCentrifugoAuthTokenRetrieveResponses, CfgCentrifugoAuthTokenRetrieveErrors, ThrowOnError, "fields">;
|
|
2544
1887
|
/**
|
|
2545
|
-
*
|
|
1888
|
+
* Get backup codes status for user.
|
|
2546
1889
|
*/
|
|
2547
|
-
|
|
1890
|
+
static cfgTotpBackupCodesRetrieve<ThrowOnError extends boolean = false>(options?: Options<CfgTotpBackupCodesRetrieveData, ThrowOnError>): RequestResult<CfgTotpBackupCodesRetrieveResponses, unknown, ThrowOnError, "fields">;
|
|
2548
1891
|
/**
|
|
2549
|
-
*
|
|
1892
|
+
* Regenerate backup codes.
|
|
1893
|
+
*
|
|
1894
|
+
* Requires TOTP code for verification.
|
|
1895
|
+
* Invalidates all existing codes.
|
|
2550
1896
|
*/
|
|
2551
|
-
|
|
2552
|
-
};
|
|
2553
|
-
/**
|
|
2554
|
-
* Serializer for TOTP code verification during login.
|
|
2555
|
-
*/
|
|
2556
|
-
type VerifyRequest = {
|
|
1897
|
+
static cfgTotpBackupCodesRegenerateCreate<ThrowOnError extends boolean = false>(options: Options<CfgTotpBackupCodesRegenerateCreateData, ThrowOnError>): RequestResult<CfgTotpBackupCodesRegenerateCreateResponses, CfgTotpBackupCodesRegenerateCreateErrors, ThrowOnError, "fields">;
|
|
2557
1898
|
/**
|
|
2558
|
-
*
|
|
1899
|
+
* List all TOTP devices for user.
|
|
2559
1900
|
*/
|
|
2560
|
-
|
|
1901
|
+
static cfgTotpDevicesRetrieve<ThrowOnError extends boolean = false>(options?: Options<CfgTotpDevicesRetrieveData, ThrowOnError>): RequestResult<CfgTotpDevicesRetrieveResponses, unknown, ThrowOnError, "fields">;
|
|
2561
1902
|
/**
|
|
2562
|
-
*
|
|
1903
|
+
* Delete a TOTP device.
|
|
1904
|
+
*
|
|
1905
|
+
* Requires verification code if removing the last/primary device.
|
|
2563
1906
|
*/
|
|
2564
|
-
|
|
2565
|
-
};
|
|
2566
|
-
/**
|
|
2567
|
-
* Response serializer for successful 2FA verification.
|
|
2568
|
-
*/
|
|
2569
|
-
type VerifyResponse = {
|
|
2570
|
-
message: string;
|
|
1907
|
+
static cfgTotpDevicesDestroy<ThrowOnError extends boolean = false>(options: Options<CfgTotpDevicesDestroyData, ThrowOnError>): RequestResult<CfgTotpDevicesDestroyResponses, unknown, ThrowOnError, "fields">;
|
|
2571
1908
|
/**
|
|
2572
|
-
*
|
|
1909
|
+
* Completely disable 2FA for account.
|
|
1910
|
+
*
|
|
1911
|
+
* Requires verification code.
|
|
2573
1912
|
*/
|
|
2574
|
-
|
|
1913
|
+
static cfgTotpDisableCreate<ThrowOnError extends boolean = false>(options: Options<CfgTotpDisableCreateData, ThrowOnError>): RequestResult<CfgTotpDisableCreateResponses, CfgTotpDisableCreateErrors, ThrowOnError, "fields">;
|
|
2575
1914
|
/**
|
|
2576
|
-
*
|
|
1915
|
+
* Start 2FA setup process.
|
|
1916
|
+
*
|
|
1917
|
+
* Creates a new TOTP device and returns QR code for scanning.
|
|
2577
1918
|
*/
|
|
2578
|
-
|
|
1919
|
+
static cfgTotpSetupCreate<ThrowOnError extends boolean = false>(options?: Options<CfgTotpSetupCreateData, ThrowOnError>): RequestResult<CfgTotpSetupCreateResponses, CfgTotpSetupCreateErrors, ThrowOnError, "fields">;
|
|
2579
1920
|
/**
|
|
2580
|
-
*
|
|
1921
|
+
* Confirm 2FA setup with first valid code.
|
|
1922
|
+
*
|
|
1923
|
+
* Activates the device and generates backup codes.
|
|
2581
1924
|
*/
|
|
2582
|
-
|
|
1925
|
+
static cfgTotpSetupConfirmCreate<ThrowOnError extends boolean = false>(options: Options<CfgTotpSetupConfirmCreateData, ThrowOnError>): RequestResult<CfgTotpSetupConfirmCreateResponses, CfgTotpSetupConfirmCreateErrors, ThrowOnError, "fields">;
|
|
2583
1926
|
/**
|
|
2584
|
-
*
|
|
1927
|
+
* Verify TOTP code for 2FA session.
|
|
1928
|
+
*
|
|
1929
|
+
* Completes authentication and returns JWT tokens on success.
|
|
2585
1930
|
*/
|
|
2586
|
-
|
|
1931
|
+
static cfgTotpVerifyCreate<ThrowOnError extends boolean = false>(options: Options<CfgTotpVerifyCreateData, ThrowOnError>): RequestResult<CfgTotpVerifyCreateResponses, CfgTotpVerifyCreateErrors, ThrowOnError, "fields">;
|
|
2587
1932
|
/**
|
|
2588
|
-
*
|
|
1933
|
+
* Verify backup recovery code for 2FA session.
|
|
1934
|
+
*
|
|
1935
|
+
* Alternative verification method when TOTP device unavailable.
|
|
2589
1936
|
*/
|
|
2590
|
-
|
|
2591
|
-
}
|
|
2592
|
-
|
|
2593
|
-
|
|
2594
|
-
|
|
2595
|
-
|
|
2596
|
-
|
|
2597
|
-
|
|
2598
|
-
|
|
2599
|
-
/**
|
|
2600
|
-
* User data returned after 2FA verification.
|
|
2601
|
-
*/
|
|
2602
|
-
type TotpVerifyUserWritable = {
|
|
2603
|
-
first_name?: string;
|
|
2604
|
-
last_name?: string;
|
|
2605
|
-
company?: string;
|
|
2606
|
-
phone?: string;
|
|
2607
|
-
position?: string;
|
|
2608
|
-
language?: string;
|
|
2609
|
-
};
|
|
2610
|
-
/**
|
|
2611
|
-
* Response serializer for successful 2FA verification.
|
|
2612
|
-
*/
|
|
2613
|
-
type VerifyResponseWritable = {
|
|
2614
|
-
message: string;
|
|
1937
|
+
static cfgTotpVerifyBackupCreate<ThrowOnError extends boolean = false>(options: Options<CfgTotpVerifyBackupCreateData, ThrowOnError>): RequestResult<CfgTotpVerifyBackupCreateResponses, CfgTotpVerifyBackupCreateErrors, ThrowOnError, "fields">;
|
|
1938
|
+
}
|
|
1939
|
+
declare class Accounts {
|
|
1940
|
+
/**
|
|
1941
|
+
* List OAuth connections
|
|
1942
|
+
*
|
|
1943
|
+
* Get all OAuth connections for the current user.
|
|
1944
|
+
*/
|
|
1945
|
+
static cfgAccountsOauthConnectionsList<ThrowOnError extends boolean = false>(options?: Options<CfgAccountsOauthConnectionsListData, ThrowOnError>): RequestResult<CfgAccountsOauthConnectionsListResponses, unknown, ThrowOnError, "fields">;
|
|
2615
1946
|
/**
|
|
2616
|
-
*
|
|
1947
|
+
* Disconnect OAuth provider
|
|
1948
|
+
*
|
|
1949
|
+
* Remove OAuth connection for the specified provider.
|
|
2617
1950
|
*/
|
|
2618
|
-
|
|
1951
|
+
static cfgAccountsOauthDisconnectCreate<ThrowOnError extends boolean = false>(options: Options<CfgAccountsOauthDisconnectCreateData, ThrowOnError>): RequestResult<CfgAccountsOauthDisconnectCreateResponses, CfgAccountsOauthDisconnectCreateErrors, ThrowOnError, "fields">;
|
|
2619
1952
|
/**
|
|
2620
|
-
*
|
|
1953
|
+
* Start GitHub OAuth
|
|
1954
|
+
*
|
|
1955
|
+
* Generate GitHub OAuth authorization URL. Redirect user to this URL to start authentication.
|
|
2621
1956
|
*/
|
|
2622
|
-
|
|
1957
|
+
static cfgAccountsOauthGithubAuthorizeCreate<ThrowOnError extends boolean = false>(options?: Options<CfgAccountsOauthGithubAuthorizeCreateData, ThrowOnError>): RequestResult<CfgAccountsOauthGithubAuthorizeCreateResponses, CfgAccountsOauthGithubAuthorizeCreateErrors, ThrowOnError, "fields">;
|
|
2623
1958
|
/**
|
|
2624
|
-
*
|
|
1959
|
+
* Complete GitHub OAuth
|
|
1960
|
+
*
|
|
1961
|
+
* Exchange authorization code for JWT tokens. Call this after GitHub redirects back with code.
|
|
2625
1962
|
*/
|
|
2626
|
-
|
|
1963
|
+
static cfgAccountsOauthGithubCallbackCreate<ThrowOnError extends boolean = false>(options: Options<CfgAccountsOauthGithubCallbackCreateData, ThrowOnError>): RequestResult<CfgAccountsOauthGithubCallbackCreateResponses, CfgAccountsOauthGithubCallbackCreateErrors, ThrowOnError, "fields">;
|
|
2627
1964
|
/**
|
|
2628
|
-
*
|
|
1965
|
+
* List OAuth providers
|
|
1966
|
+
*
|
|
1967
|
+
* Get list of available OAuth providers for authentication.
|
|
2629
1968
|
*/
|
|
2630
|
-
|
|
1969
|
+
static cfgAccountsOauthProvidersRetrieve<ThrowOnError extends boolean = false>(options?: Options<CfgAccountsOauthProvidersRetrieveData, ThrowOnError>): RequestResult<CfgAccountsOauthProvidersRetrieveResponses, unknown, ThrowOnError, "fields">;
|
|
2631
1970
|
/**
|
|
2632
|
-
*
|
|
1971
|
+
* Request OTP code to email.
|
|
2633
1972
|
*/
|
|
2634
|
-
|
|
2635
|
-
};
|
|
2636
|
-
type CfgTotpBackupCodesRetrieveData = {
|
|
2637
|
-
body?: never;
|
|
2638
|
-
path?: never;
|
|
2639
|
-
query?: never;
|
|
2640
|
-
url: '/cfg/totp/backup-codes/';
|
|
2641
|
-
};
|
|
2642
|
-
type CfgTotpBackupCodesRetrieveResponses = {
|
|
2643
|
-
200: BackupCodesStatus;
|
|
2644
|
-
};
|
|
2645
|
-
type CfgTotpBackupCodesRetrieveResponse = CfgTotpBackupCodesRetrieveResponses[keyof CfgTotpBackupCodesRetrieveResponses];
|
|
2646
|
-
type CfgTotpBackupCodesRegenerateCreateData = {
|
|
2647
|
-
body: BackupCodesRegenerateRequest;
|
|
2648
|
-
path?: never;
|
|
2649
|
-
query?: never;
|
|
2650
|
-
url: '/cfg/totp/backup-codes/regenerate/';
|
|
2651
|
-
};
|
|
2652
|
-
type CfgTotpBackupCodesRegenerateCreateErrors = {
|
|
1973
|
+
static cfgAccountsOtpRequestCreate<ThrowOnError extends boolean = false>(options: Options<CfgAccountsOtpRequestCreateData, ThrowOnError>): RequestResult<CfgAccountsOtpRequestCreateResponses, CfgAccountsOtpRequestCreateErrors, ThrowOnError, "fields">;
|
|
2653
1974
|
/**
|
|
2654
|
-
*
|
|
1975
|
+
* Verify OTP code and return JWT tokens or 2FA session.
|
|
1976
|
+
*
|
|
1977
|
+
* If user has 2FA enabled:
|
|
1978
|
+
* - Returns requires_2fa=True with session_id
|
|
1979
|
+
* - Client must complete 2FA verification at /cfg/totp/verify/
|
|
1980
|
+
*
|
|
1981
|
+
* If user has no 2FA:
|
|
1982
|
+
* - Returns JWT tokens and user data directly
|
|
2655
1983
|
*/
|
|
2656
|
-
|
|
2657
|
-
};
|
|
2658
|
-
type CfgTotpBackupCodesRegenerateCreateResponses = {
|
|
2659
|
-
200: BackupCodesRegenerateResponse;
|
|
2660
|
-
};
|
|
2661
|
-
type CfgTotpBackupCodesRegenerateCreateResponse = CfgTotpBackupCodesRegenerateCreateResponses[keyof CfgTotpBackupCodesRegenerateCreateResponses];
|
|
2662
|
-
type CfgTotpDevicesRetrieveData = {
|
|
2663
|
-
body?: never;
|
|
2664
|
-
path?: never;
|
|
2665
|
-
query?: never;
|
|
2666
|
-
url: '/cfg/totp/devices/';
|
|
2667
|
-
};
|
|
2668
|
-
type CfgTotpDevicesRetrieveResponses = {
|
|
2669
|
-
200: DeviceListResponse;
|
|
2670
|
-
};
|
|
2671
|
-
type CfgTotpDevicesRetrieveResponse = CfgTotpDevicesRetrieveResponses[keyof CfgTotpDevicesRetrieveResponses];
|
|
2672
|
-
type CfgTotpDevicesDestroyData = {
|
|
2673
|
-
body?: never;
|
|
2674
|
-
path: {
|
|
2675
|
-
id: string;
|
|
2676
|
-
};
|
|
2677
|
-
query?: never;
|
|
2678
|
-
url: '/cfg/totp/devices/{id}/';
|
|
2679
|
-
};
|
|
2680
|
-
type CfgTotpDevicesDestroyResponses = {
|
|
1984
|
+
static cfgAccountsOtpVerifyCreate<ThrowOnError extends boolean = false>(options: Options<CfgAccountsOtpVerifyCreateData, ThrowOnError>): RequestResult<CfgAccountsOtpVerifyCreateResponses, CfgAccountsOtpVerifyCreateErrors, ThrowOnError, "fields">;
|
|
2681
1985
|
/**
|
|
2682
|
-
*
|
|
1986
|
+
* Get current user profile
|
|
1987
|
+
*
|
|
1988
|
+
* Retrieve the current authenticated user's profile information.
|
|
2683
1989
|
*/
|
|
2684
|
-
|
|
2685
|
-
};
|
|
2686
|
-
type CfgTotpDevicesDestroyResponse = CfgTotpDevicesDestroyResponses[keyof CfgTotpDevicesDestroyResponses];
|
|
2687
|
-
type CfgTotpDisableCreateData = {
|
|
2688
|
-
body: DisableRequest;
|
|
2689
|
-
path?: never;
|
|
2690
|
-
query?: never;
|
|
2691
|
-
url: '/cfg/totp/disable/';
|
|
2692
|
-
};
|
|
2693
|
-
type CfgTotpDisableCreateErrors = {
|
|
1990
|
+
static cfgAccountsProfileRetrieve<ThrowOnError extends boolean = false>(options?: Options<CfgAccountsProfileRetrieveData, ThrowOnError>): RequestResult<CfgAccountsProfileRetrieveResponses, CfgAccountsProfileRetrieveErrors, ThrowOnError, "fields">;
|
|
2694
1991
|
/**
|
|
2695
|
-
*
|
|
1992
|
+
* Upload user avatar
|
|
1993
|
+
*
|
|
1994
|
+
* Upload avatar image for the current authenticated user. Accepts multipart/form-data with 'avatar' field.
|
|
2696
1995
|
*/
|
|
2697
|
-
|
|
2698
|
-
};
|
|
2699
|
-
type CfgTotpDisableCreateResponses = {
|
|
1996
|
+
static cfgAccountsProfileAvatarCreate<ThrowOnError extends boolean = false>(options?: Options<CfgAccountsProfileAvatarCreateData, ThrowOnError>): RequestResult<CfgAccountsProfileAvatarCreateResponses, CfgAccountsProfileAvatarCreateErrors, ThrowOnError, "fields">;
|
|
2700
1997
|
/**
|
|
2701
|
-
*
|
|
1998
|
+
* Delete user account
|
|
1999
|
+
*
|
|
2000
|
+
*
|
|
2001
|
+
* Permanently delete the current user's account.
|
|
2002
|
+
*
|
|
2003
|
+
* This operation:
|
|
2004
|
+
* - Deactivates the account (user cannot log in)
|
|
2005
|
+
* - Anonymizes personal data (GDPR compliance)
|
|
2006
|
+
* - Frees up the email address for re-registration
|
|
2007
|
+
* - Preserves audit trail
|
|
2008
|
+
*
|
|
2009
|
+
* The account can be restored by an administrator if needed.
|
|
2010
|
+
*
|
|
2702
2011
|
*/
|
|
2703
|
-
|
|
2704
|
-
};
|
|
2705
|
-
type CfgTotpSetupCreateData = {
|
|
2706
|
-
body?: SetupRequest;
|
|
2707
|
-
path?: never;
|
|
2708
|
-
query?: never;
|
|
2709
|
-
url: '/cfg/totp/setup/';
|
|
2710
|
-
};
|
|
2711
|
-
type CfgTotpSetupCreateErrors = {
|
|
2012
|
+
static cfgAccountsProfileDeleteCreate<ThrowOnError extends boolean = false>(options?: Options<CfgAccountsProfileDeleteCreateData, ThrowOnError>): RequestResult<CfgAccountsProfileDeleteCreateResponses, CfgAccountsProfileDeleteCreateErrors, ThrowOnError, "fields">;
|
|
2712
2013
|
/**
|
|
2713
|
-
*
|
|
2014
|
+
* Partial update user profile
|
|
2015
|
+
*
|
|
2016
|
+
* Partially update the current authenticated user's profile information. Supports avatar upload.
|
|
2714
2017
|
*/
|
|
2715
|
-
|
|
2716
|
-
};
|
|
2717
|
-
type CfgTotpSetupCreateResponses = {
|
|
2718
|
-
200: SetupResponse;
|
|
2719
|
-
};
|
|
2720
|
-
type CfgTotpSetupCreateResponse = CfgTotpSetupCreateResponses[keyof CfgTotpSetupCreateResponses];
|
|
2721
|
-
type CfgTotpSetupConfirmCreateData = {
|
|
2722
|
-
body: ConfirmSetupRequest;
|
|
2723
|
-
path?: never;
|
|
2724
|
-
query?: never;
|
|
2725
|
-
url: '/cfg/totp/setup/confirm/';
|
|
2726
|
-
};
|
|
2727
|
-
type CfgTotpSetupConfirmCreateErrors = {
|
|
2018
|
+
static cfgAccountsProfilePartialPartialUpdate<ThrowOnError extends boolean = false>(options?: Options<CfgAccountsProfilePartialPartialUpdateData, ThrowOnError>): RequestResult<CfgAccountsProfilePartialPartialUpdateResponses, CfgAccountsProfilePartialPartialUpdateErrors, ThrowOnError, "fields">;
|
|
2728
2019
|
/**
|
|
2729
|
-
*
|
|
2020
|
+
* Partial update user profile
|
|
2021
|
+
*
|
|
2022
|
+
* Partially update the current authenticated user's profile information. Supports avatar upload.
|
|
2730
2023
|
*/
|
|
2731
|
-
|
|
2732
|
-
};
|
|
2733
|
-
type CfgTotpSetupConfirmCreateResponses = {
|
|
2734
|
-
200: ConfirmSetupResponse;
|
|
2735
|
-
};
|
|
2736
|
-
type CfgTotpSetupConfirmCreateResponse = CfgTotpSetupConfirmCreateResponses[keyof CfgTotpSetupConfirmCreateResponses];
|
|
2737
|
-
type CfgTotpVerifyCreateData = {
|
|
2738
|
-
body: VerifyRequest;
|
|
2739
|
-
path?: never;
|
|
2740
|
-
query?: never;
|
|
2741
|
-
url: '/cfg/totp/verify/';
|
|
2742
|
-
};
|
|
2743
|
-
type CfgTotpVerifyCreateErrors = {
|
|
2024
|
+
static cfgAccountsProfilePartialUpdate<ThrowOnError extends boolean = false>(options?: Options<CfgAccountsProfilePartialUpdateData, ThrowOnError>): RequestResult<CfgAccountsProfilePartialUpdateResponses, CfgAccountsProfilePartialUpdateErrors, ThrowOnError, "fields">;
|
|
2744
2025
|
/**
|
|
2745
|
-
*
|
|
2026
|
+
* Update user profile
|
|
2027
|
+
*
|
|
2028
|
+
* Update the current authenticated user's profile information.
|
|
2746
2029
|
*/
|
|
2747
|
-
|
|
2030
|
+
static cfgAccountsProfileUpdatePartialUpdate<ThrowOnError extends boolean = false>(options?: Options<CfgAccountsProfileUpdatePartialUpdateData, ThrowOnError>): RequestResult<CfgAccountsProfileUpdatePartialUpdateResponses, CfgAccountsProfileUpdatePartialUpdateErrors, ThrowOnError, "fields">;
|
|
2748
2031
|
/**
|
|
2749
|
-
*
|
|
2032
|
+
* Update user profile
|
|
2033
|
+
*
|
|
2034
|
+
* Update the current authenticated user's profile information.
|
|
2750
2035
|
*/
|
|
2751
|
-
|
|
2752
|
-
};
|
|
2753
|
-
type CfgTotpVerifyCreateResponses = {
|
|
2754
|
-
200: VerifyResponse;
|
|
2755
|
-
};
|
|
2756
|
-
type CfgTotpVerifyCreateResponse = CfgTotpVerifyCreateResponses[keyof CfgTotpVerifyCreateResponses];
|
|
2757
|
-
type CfgTotpVerifyBackupCreateData = {
|
|
2758
|
-
body: VerifyBackupRequest;
|
|
2759
|
-
path?: never;
|
|
2760
|
-
query?: never;
|
|
2761
|
-
url: '/cfg/totp/verify/backup/';
|
|
2762
|
-
};
|
|
2763
|
-
type CfgTotpVerifyBackupCreateErrors = {
|
|
2036
|
+
static cfgAccountsProfileUpdateUpdate<ThrowOnError extends boolean = false>(options?: Options<CfgAccountsProfileUpdateUpdateData, ThrowOnError>): RequestResult<CfgAccountsProfileUpdateUpdateResponses, CfgAccountsProfileUpdateUpdateErrors, ThrowOnError, "fields">;
|
|
2764
2037
|
/**
|
|
2765
|
-
*
|
|
2038
|
+
* Refresh JWT token.
|
|
2766
2039
|
*/
|
|
2767
|
-
|
|
2768
|
-
};
|
|
2769
|
-
type CfgTotpVerifyBackupCreateResponses = {
|
|
2770
|
-
200: VerifyResponse;
|
|
2771
|
-
};
|
|
2772
|
-
type CfgTotpVerifyBackupCreateResponse = CfgTotpVerifyBackupCreateResponses[keyof CfgTotpVerifyBackupCreateResponses];
|
|
2773
|
-
|
|
2774
|
-
type types_gen_BackupCodesRegenerateRequest = BackupCodesRegenerateRequest;
|
|
2775
|
-
type types_gen_BackupCodesRegenerateResponse = BackupCodesRegenerateResponse;
|
|
2776
|
-
type types_gen_BackupCodesStatus = BackupCodesStatus;
|
|
2777
|
-
type types_gen_CfgTotpBackupCodesRegenerateCreateData = CfgTotpBackupCodesRegenerateCreateData;
|
|
2778
|
-
type types_gen_CfgTotpBackupCodesRegenerateCreateErrors = CfgTotpBackupCodesRegenerateCreateErrors;
|
|
2779
|
-
type types_gen_CfgTotpBackupCodesRegenerateCreateResponse = CfgTotpBackupCodesRegenerateCreateResponse;
|
|
2780
|
-
type types_gen_CfgTotpBackupCodesRegenerateCreateResponses = CfgTotpBackupCodesRegenerateCreateResponses;
|
|
2781
|
-
type types_gen_CfgTotpBackupCodesRetrieveData = CfgTotpBackupCodesRetrieveData;
|
|
2782
|
-
type types_gen_CfgTotpBackupCodesRetrieveResponse = CfgTotpBackupCodesRetrieveResponse;
|
|
2783
|
-
type types_gen_CfgTotpBackupCodesRetrieveResponses = CfgTotpBackupCodesRetrieveResponses;
|
|
2784
|
-
type types_gen_CfgTotpDevicesDestroyData = CfgTotpDevicesDestroyData;
|
|
2785
|
-
type types_gen_CfgTotpDevicesDestroyResponse = CfgTotpDevicesDestroyResponse;
|
|
2786
|
-
type types_gen_CfgTotpDevicesDestroyResponses = CfgTotpDevicesDestroyResponses;
|
|
2787
|
-
type types_gen_CfgTotpDevicesRetrieveData = CfgTotpDevicesRetrieveData;
|
|
2788
|
-
type types_gen_CfgTotpDevicesRetrieveResponse = CfgTotpDevicesRetrieveResponse;
|
|
2789
|
-
type types_gen_CfgTotpDevicesRetrieveResponses = CfgTotpDevicesRetrieveResponses;
|
|
2790
|
-
type types_gen_CfgTotpDisableCreateData = CfgTotpDisableCreateData;
|
|
2791
|
-
type types_gen_CfgTotpDisableCreateErrors = CfgTotpDisableCreateErrors;
|
|
2792
|
-
type types_gen_CfgTotpDisableCreateResponses = CfgTotpDisableCreateResponses;
|
|
2793
|
-
type types_gen_CfgTotpSetupConfirmCreateData = CfgTotpSetupConfirmCreateData;
|
|
2794
|
-
type types_gen_CfgTotpSetupConfirmCreateErrors = CfgTotpSetupConfirmCreateErrors;
|
|
2795
|
-
type types_gen_CfgTotpSetupConfirmCreateResponse = CfgTotpSetupConfirmCreateResponse;
|
|
2796
|
-
type types_gen_CfgTotpSetupConfirmCreateResponses = CfgTotpSetupConfirmCreateResponses;
|
|
2797
|
-
type types_gen_CfgTotpSetupCreateData = CfgTotpSetupCreateData;
|
|
2798
|
-
type types_gen_CfgTotpSetupCreateErrors = CfgTotpSetupCreateErrors;
|
|
2799
|
-
type types_gen_CfgTotpSetupCreateResponse = CfgTotpSetupCreateResponse;
|
|
2800
|
-
type types_gen_CfgTotpSetupCreateResponses = CfgTotpSetupCreateResponses;
|
|
2801
|
-
type types_gen_CfgTotpVerifyBackupCreateData = CfgTotpVerifyBackupCreateData;
|
|
2802
|
-
type types_gen_CfgTotpVerifyBackupCreateErrors = CfgTotpVerifyBackupCreateErrors;
|
|
2803
|
-
type types_gen_CfgTotpVerifyBackupCreateResponse = CfgTotpVerifyBackupCreateResponse;
|
|
2804
|
-
type types_gen_CfgTotpVerifyBackupCreateResponses = CfgTotpVerifyBackupCreateResponses;
|
|
2805
|
-
type types_gen_CfgTotpVerifyCreateData = CfgTotpVerifyCreateData;
|
|
2806
|
-
type types_gen_CfgTotpVerifyCreateErrors = CfgTotpVerifyCreateErrors;
|
|
2807
|
-
type types_gen_CfgTotpVerifyCreateResponse = CfgTotpVerifyCreateResponse;
|
|
2808
|
-
type types_gen_CfgTotpVerifyCreateResponses = CfgTotpVerifyCreateResponses;
|
|
2809
|
-
type types_gen_ClientOptions = ClientOptions;
|
|
2810
|
-
type types_gen_ConfirmSetupRequest = ConfirmSetupRequest;
|
|
2811
|
-
type types_gen_ConfirmSetupResponse = ConfirmSetupResponse;
|
|
2812
|
-
type types_gen_DeviceList = DeviceList;
|
|
2813
|
-
type types_gen_DeviceListResponse = DeviceListResponse;
|
|
2814
|
-
type types_gen_DeviceListResponseWritable = DeviceListResponseWritable;
|
|
2815
|
-
type types_gen_DeviceListStatusEnum = DeviceListStatusEnum;
|
|
2816
|
-
declare const types_gen_DeviceListStatusEnum: typeof DeviceListStatusEnum;
|
|
2817
|
-
type types_gen_DisableRequest = DisableRequest;
|
|
2818
|
-
type types_gen_SetupRequest = SetupRequest;
|
|
2819
|
-
type types_gen_SetupResponse = SetupResponse;
|
|
2820
|
-
type types_gen_TotpVerifyUser = TotpVerifyUser;
|
|
2821
|
-
type types_gen_TotpVerifyUserWritable = TotpVerifyUserWritable;
|
|
2822
|
-
type types_gen_VerifyBackupRequest = VerifyBackupRequest;
|
|
2823
|
-
type types_gen_VerifyRequest = VerifyRequest;
|
|
2824
|
-
type types_gen_VerifyResponse = VerifyResponse;
|
|
2825
|
-
type types_gen_VerifyResponseWritable = VerifyResponseWritable;
|
|
2826
|
-
declare namespace types_gen {
|
|
2827
|
-
export { type types_gen_BackupCodesRegenerateRequest as BackupCodesRegenerateRequest, type types_gen_BackupCodesRegenerateResponse as BackupCodesRegenerateResponse, type types_gen_BackupCodesStatus as BackupCodesStatus, type types_gen_CfgTotpBackupCodesRegenerateCreateData as CfgTotpBackupCodesRegenerateCreateData, type types_gen_CfgTotpBackupCodesRegenerateCreateErrors as CfgTotpBackupCodesRegenerateCreateErrors, type types_gen_CfgTotpBackupCodesRegenerateCreateResponse as CfgTotpBackupCodesRegenerateCreateResponse, type types_gen_CfgTotpBackupCodesRegenerateCreateResponses as CfgTotpBackupCodesRegenerateCreateResponses, type types_gen_CfgTotpBackupCodesRetrieveData as CfgTotpBackupCodesRetrieveData, type types_gen_CfgTotpBackupCodesRetrieveResponse as CfgTotpBackupCodesRetrieveResponse, type types_gen_CfgTotpBackupCodesRetrieveResponses as CfgTotpBackupCodesRetrieveResponses, type types_gen_CfgTotpDevicesDestroyData as CfgTotpDevicesDestroyData, type types_gen_CfgTotpDevicesDestroyResponse as CfgTotpDevicesDestroyResponse, type types_gen_CfgTotpDevicesDestroyResponses as CfgTotpDevicesDestroyResponses, type types_gen_CfgTotpDevicesRetrieveData as CfgTotpDevicesRetrieveData, type types_gen_CfgTotpDevicesRetrieveResponse as CfgTotpDevicesRetrieveResponse, type types_gen_CfgTotpDevicesRetrieveResponses as CfgTotpDevicesRetrieveResponses, type types_gen_CfgTotpDisableCreateData as CfgTotpDisableCreateData, type types_gen_CfgTotpDisableCreateErrors as CfgTotpDisableCreateErrors, type types_gen_CfgTotpDisableCreateResponses as CfgTotpDisableCreateResponses, type types_gen_CfgTotpSetupConfirmCreateData as CfgTotpSetupConfirmCreateData, type types_gen_CfgTotpSetupConfirmCreateErrors as CfgTotpSetupConfirmCreateErrors, type types_gen_CfgTotpSetupConfirmCreateResponse as CfgTotpSetupConfirmCreateResponse, type types_gen_CfgTotpSetupConfirmCreateResponses as CfgTotpSetupConfirmCreateResponses, type types_gen_CfgTotpSetupCreateData as CfgTotpSetupCreateData, type types_gen_CfgTotpSetupCreateErrors as CfgTotpSetupCreateErrors, type types_gen_CfgTotpSetupCreateResponse as CfgTotpSetupCreateResponse, type types_gen_CfgTotpSetupCreateResponses as CfgTotpSetupCreateResponses, type types_gen_CfgTotpVerifyBackupCreateData as CfgTotpVerifyBackupCreateData, type types_gen_CfgTotpVerifyBackupCreateErrors as CfgTotpVerifyBackupCreateErrors, type types_gen_CfgTotpVerifyBackupCreateResponse as CfgTotpVerifyBackupCreateResponse, type types_gen_CfgTotpVerifyBackupCreateResponses as CfgTotpVerifyBackupCreateResponses, type types_gen_CfgTotpVerifyCreateData as CfgTotpVerifyCreateData, type types_gen_CfgTotpVerifyCreateErrors as CfgTotpVerifyCreateErrors, type types_gen_CfgTotpVerifyCreateResponse as CfgTotpVerifyCreateResponse, type types_gen_CfgTotpVerifyCreateResponses as CfgTotpVerifyCreateResponses, type types_gen_ClientOptions as ClientOptions, type types_gen_ConfirmSetupRequest as ConfirmSetupRequest, type types_gen_ConfirmSetupResponse as ConfirmSetupResponse, type types_gen_DeviceList as DeviceList, type types_gen_DeviceListResponse as DeviceListResponse, type types_gen_DeviceListResponseWritable as DeviceListResponseWritable, types_gen_DeviceListStatusEnum as DeviceListStatusEnum, type types_gen_DisableRequest as DisableRequest, type types_gen_SetupRequest as SetupRequest, type types_gen_SetupResponse as SetupResponse, type types_gen_TotpVerifyUser as TotpVerifyUser, type types_gen_TotpVerifyUserWritable as TotpVerifyUserWritable, type types_gen_VerifyBackupRequest as VerifyBackupRequest, type types_gen_VerifyRequest as VerifyRequest, type types_gen_VerifyResponse as VerifyResponse, type types_gen_VerifyResponseWritable as VerifyResponseWritable };
|
|
2040
|
+
static cfgAccountsTokenRefreshCreate<ThrowOnError extends boolean = false>(options: Options<CfgAccountsTokenRefreshCreateData, ThrowOnError>): RequestResult<CfgAccountsTokenRefreshCreateResponses, unknown, ThrowOnError, "fields">;
|
|
2828
2041
|
}
|
|
2829
|
-
|
|
2830
|
-
|
|
2042
|
+
declare class OAuth {
|
|
2043
|
+
/**
|
|
2044
|
+
* List OAuth connections
|
|
2045
|
+
*
|
|
2046
|
+
* Get all OAuth connections for the current user.
|
|
2047
|
+
*/
|
|
2048
|
+
static cfgAccountsOauthConnectionsList<ThrowOnError extends boolean = false>(options?: Options<CfgAccountsOauthConnectionsListData, ThrowOnError>): RequestResult<CfgAccountsOauthConnectionsListResponses, unknown, ThrowOnError, "fields">;
|
|
2049
|
+
/**
|
|
2050
|
+
* Disconnect OAuth provider
|
|
2051
|
+
*
|
|
2052
|
+
* Remove OAuth connection for the specified provider.
|
|
2053
|
+
*/
|
|
2054
|
+
static cfgAccountsOauthDisconnectCreate<ThrowOnError extends boolean = false>(options: Options<CfgAccountsOauthDisconnectCreateData, ThrowOnError>): RequestResult<CfgAccountsOauthDisconnectCreateResponses, CfgAccountsOauthDisconnectCreateErrors, ThrowOnError, "fields">;
|
|
2055
|
+
/**
|
|
2056
|
+
* Start GitHub OAuth
|
|
2057
|
+
*
|
|
2058
|
+
* Generate GitHub OAuth authorization URL. Redirect user to this URL to start authentication.
|
|
2059
|
+
*/
|
|
2060
|
+
static cfgAccountsOauthGithubAuthorizeCreate<ThrowOnError extends boolean = false>(options?: Options<CfgAccountsOauthGithubAuthorizeCreateData, ThrowOnError>): RequestResult<CfgAccountsOauthGithubAuthorizeCreateResponses, CfgAccountsOauthGithubAuthorizeCreateErrors, ThrowOnError, "fields">;
|
|
2831
2061
|
/**
|
|
2832
|
-
*
|
|
2833
|
-
*
|
|
2834
|
-
*
|
|
2062
|
+
* Complete GitHub OAuth
|
|
2063
|
+
*
|
|
2064
|
+
* Exchange authorization code for JWT tokens. Call this after GitHub redirects back with code.
|
|
2835
2065
|
*/
|
|
2836
|
-
|
|
2066
|
+
static cfgAccountsOauthGithubCallbackCreate<ThrowOnError extends boolean = false>(options: Options<CfgAccountsOauthGithubCallbackCreateData, ThrowOnError>): RequestResult<CfgAccountsOauthGithubCallbackCreateResponses, CfgAccountsOauthGithubCallbackCreateErrors, ThrowOnError, "fields">;
|
|
2837
2067
|
/**
|
|
2838
|
-
*
|
|
2839
|
-
*
|
|
2068
|
+
* List OAuth providers
|
|
2069
|
+
*
|
|
2070
|
+
* Get list of available OAuth providers for authentication.
|
|
2840
2071
|
*/
|
|
2841
|
-
|
|
2842
|
-
}
|
|
2843
|
-
declare class
|
|
2072
|
+
static cfgAccountsOauthProvidersRetrieve<ThrowOnError extends boolean = false>(options?: Options<CfgAccountsOauthProvidersRetrieveData, ThrowOnError>): RequestResult<CfgAccountsOauthProvidersRetrieveResponses, unknown, ThrowOnError, "fields">;
|
|
2073
|
+
}
|
|
2074
|
+
declare class UserProfile {
|
|
2844
2075
|
/**
|
|
2845
|
-
* Get
|
|
2076
|
+
* Get current user profile
|
|
2077
|
+
*
|
|
2078
|
+
* Retrieve the current authenticated user's profile information.
|
|
2846
2079
|
*/
|
|
2847
|
-
static
|
|
2080
|
+
static cfgAccountsProfileRetrieve<ThrowOnError extends boolean = false>(options?: Options<CfgAccountsProfileRetrieveData, ThrowOnError>): RequestResult<CfgAccountsProfileRetrieveResponses, CfgAccountsProfileRetrieveErrors, ThrowOnError, "fields">;
|
|
2848
2081
|
/**
|
|
2849
|
-
*
|
|
2082
|
+
* Upload user avatar
|
|
2850
2083
|
*
|
|
2851
|
-
*
|
|
2852
|
-
* Invalidates all existing codes.
|
|
2084
|
+
* Upload avatar image for the current authenticated user. Accepts multipart/form-data with 'avatar' field.
|
|
2853
2085
|
*/
|
|
2854
|
-
static
|
|
2086
|
+
static cfgAccountsProfileAvatarCreate<ThrowOnError extends boolean = false>(options?: Options<CfgAccountsProfileAvatarCreateData, ThrowOnError>): RequestResult<CfgAccountsProfileAvatarCreateResponses, CfgAccountsProfileAvatarCreateErrors, ThrowOnError, "fields">;
|
|
2855
2087
|
/**
|
|
2856
|
-
*
|
|
2088
|
+
* Delete user account
|
|
2089
|
+
*
|
|
2090
|
+
*
|
|
2091
|
+
* Permanently delete the current user's account.
|
|
2092
|
+
*
|
|
2093
|
+
* This operation:
|
|
2094
|
+
* - Deactivates the account (user cannot log in)
|
|
2095
|
+
* - Anonymizes personal data (GDPR compliance)
|
|
2096
|
+
* - Frees up the email address for re-registration
|
|
2097
|
+
* - Preserves audit trail
|
|
2098
|
+
*
|
|
2099
|
+
* The account can be restored by an administrator if needed.
|
|
2100
|
+
*
|
|
2857
2101
|
*/
|
|
2858
|
-
static
|
|
2102
|
+
static cfgAccountsProfileDeleteCreate<ThrowOnError extends boolean = false>(options?: Options<CfgAccountsProfileDeleteCreateData, ThrowOnError>): RequestResult<CfgAccountsProfileDeleteCreateResponses, CfgAccountsProfileDeleteCreateErrors, ThrowOnError, "fields">;
|
|
2859
2103
|
/**
|
|
2860
|
-
*
|
|
2104
|
+
* Partial update user profile
|
|
2861
2105
|
*
|
|
2862
|
-
*
|
|
2106
|
+
* Partially update the current authenticated user's profile information. Supports avatar upload.
|
|
2863
2107
|
*/
|
|
2864
|
-
static
|
|
2108
|
+
static cfgAccountsProfilePartialPartialUpdate<ThrowOnError extends boolean = false>(options?: Options<CfgAccountsProfilePartialPartialUpdateData, ThrowOnError>): RequestResult<CfgAccountsProfilePartialPartialUpdateResponses, CfgAccountsProfilePartialPartialUpdateErrors, ThrowOnError, "fields">;
|
|
2865
2109
|
/**
|
|
2866
|
-
*
|
|
2110
|
+
* Partial update user profile
|
|
2867
2111
|
*
|
|
2868
|
-
*
|
|
2112
|
+
* Partially update the current authenticated user's profile information. Supports avatar upload.
|
|
2869
2113
|
*/
|
|
2870
|
-
static
|
|
2114
|
+
static cfgAccountsProfilePartialUpdate<ThrowOnError extends boolean = false>(options?: Options<CfgAccountsProfilePartialUpdateData, ThrowOnError>): RequestResult<CfgAccountsProfilePartialUpdateResponses, CfgAccountsProfilePartialUpdateErrors, ThrowOnError, "fields">;
|
|
2871
2115
|
/**
|
|
2872
|
-
*
|
|
2116
|
+
* Update user profile
|
|
2873
2117
|
*
|
|
2874
|
-
*
|
|
2118
|
+
* Update the current authenticated user's profile information.
|
|
2875
2119
|
*/
|
|
2876
|
-
static
|
|
2120
|
+
static cfgAccountsProfileUpdatePartialUpdate<ThrowOnError extends boolean = false>(options?: Options<CfgAccountsProfileUpdatePartialUpdateData, ThrowOnError>): RequestResult<CfgAccountsProfileUpdatePartialUpdateResponses, CfgAccountsProfileUpdatePartialUpdateErrors, ThrowOnError, "fields">;
|
|
2877
2121
|
/**
|
|
2878
|
-
*
|
|
2122
|
+
* Update user profile
|
|
2879
2123
|
*
|
|
2880
|
-
*
|
|
2124
|
+
* Update the current authenticated user's profile information.
|
|
2881
2125
|
*/
|
|
2882
|
-
static
|
|
2126
|
+
static cfgAccountsProfileUpdateUpdate<ThrowOnError extends boolean = false>(options?: Options<CfgAccountsProfileUpdateUpdateData, ThrowOnError>): RequestResult<CfgAccountsProfileUpdateUpdateResponses, CfgAccountsProfileUpdateUpdateErrors, ThrowOnError, "fields">;
|
|
2127
|
+
}
|
|
2128
|
+
declare class Auth {
|
|
2883
2129
|
/**
|
|
2884
|
-
*
|
|
2130
|
+
* Refresh JWT token.
|
|
2131
|
+
*/
|
|
2132
|
+
static cfgAccountsTokenRefreshCreate<ThrowOnError extends boolean = false>(options: Options<CfgAccountsTokenRefreshCreateData, ThrowOnError>): RequestResult<CfgAccountsTokenRefreshCreateResponses, unknown, ThrowOnError, "fields">;
|
|
2133
|
+
}
|
|
2134
|
+
declare class Centrifugo {
|
|
2135
|
+
/**
|
|
2136
|
+
* Get Centrifugo connection token
|
|
2885
2137
|
*
|
|
2886
|
-
*
|
|
2138
|
+
* Generate JWT token for WebSocket connection to Centrifugo. Token includes user's allowed channels based on their permissions. Requires authentication.
|
|
2887
2139
|
*/
|
|
2888
|
-
static
|
|
2140
|
+
static cfgCentrifugoAuthTokenRetrieve<ThrowOnError extends boolean = false>(options?: Options<CfgCentrifugoAuthTokenRetrieveData, ThrowOnError>): RequestResult<CfgCentrifugoAuthTokenRetrieveResponses, CfgCentrifugoAuthTokenRetrieveErrors, ThrowOnError, "fields">;
|
|
2141
|
+
}
|
|
2142
|
+
declare class CentrifugoAuth {
|
|
2889
2143
|
/**
|
|
2890
|
-
*
|
|
2144
|
+
* Get Centrifugo connection token
|
|
2891
2145
|
*
|
|
2892
|
-
*
|
|
2146
|
+
* Generate JWT token for WebSocket connection to Centrifugo. Token includes user's allowed channels based on their permissions. Requires authentication.
|
|
2893
2147
|
*/
|
|
2894
|
-
static
|
|
2148
|
+
static cfgCentrifugoAuthTokenRetrieve<ThrowOnError extends boolean = false>(options?: Options<CfgCentrifugoAuthTokenRetrieveData, ThrowOnError>): RequestResult<CfgCentrifugoAuthTokenRetrieveResponses, CfgCentrifugoAuthTokenRetrieveErrors, ThrowOnError, "fields">;
|
|
2895
2149
|
}
|
|
2896
2150
|
declare class Totp {
|
|
2897
2151
|
/**
|
|
@@ -3000,57 +2254,445 @@ declare class TotpVerification {
|
|
|
3000
2254
|
static cfgTotpVerifyBackupCreate<ThrowOnError extends boolean = false>(options: Options<CfgTotpVerifyBackupCreateData, ThrowOnError>): RequestResult<CfgTotpVerifyBackupCreateResponses, CfgTotpVerifyBackupCreateErrors, ThrowOnError, "fields">;
|
|
3001
2255
|
}
|
|
3002
2256
|
|
|
3003
|
-
|
|
3004
|
-
|
|
3005
|
-
|
|
3006
|
-
|
|
3007
|
-
|
|
3008
|
-
|
|
3009
|
-
|
|
3010
|
-
|
|
3011
|
-
|
|
3012
|
-
|
|
3013
|
-
|
|
2257
|
+
type types_gen$2_AccountDeleteResponse = AccountDeleteResponse;
|
|
2258
|
+
type types_gen$2_BackupCodesRegenerateRequest = BackupCodesRegenerateRequest;
|
|
2259
|
+
type types_gen$2_BackupCodesRegenerateResponse = BackupCodesRegenerateResponse;
|
|
2260
|
+
type types_gen$2_BackupCodesStatus = BackupCodesStatus;
|
|
2261
|
+
type types_gen$2_CentrifugoToken = CentrifugoToken;
|
|
2262
|
+
type types_gen$2_CfgAccountsOauthConnectionsListData = CfgAccountsOauthConnectionsListData;
|
|
2263
|
+
type types_gen$2_CfgAccountsOauthConnectionsListResponse = CfgAccountsOauthConnectionsListResponse;
|
|
2264
|
+
type types_gen$2_CfgAccountsOauthConnectionsListResponses = CfgAccountsOauthConnectionsListResponses;
|
|
2265
|
+
type types_gen$2_CfgAccountsOauthDisconnectCreateData = CfgAccountsOauthDisconnectCreateData;
|
|
2266
|
+
type types_gen$2_CfgAccountsOauthDisconnectCreateError = CfgAccountsOauthDisconnectCreateError;
|
|
2267
|
+
type types_gen$2_CfgAccountsOauthDisconnectCreateErrors = CfgAccountsOauthDisconnectCreateErrors;
|
|
2268
|
+
type types_gen$2_CfgAccountsOauthDisconnectCreateResponse = CfgAccountsOauthDisconnectCreateResponse;
|
|
2269
|
+
type types_gen$2_CfgAccountsOauthDisconnectCreateResponses = CfgAccountsOauthDisconnectCreateResponses;
|
|
2270
|
+
type types_gen$2_CfgAccountsOauthGithubAuthorizeCreateData = CfgAccountsOauthGithubAuthorizeCreateData;
|
|
2271
|
+
type types_gen$2_CfgAccountsOauthGithubAuthorizeCreateError = CfgAccountsOauthGithubAuthorizeCreateError;
|
|
2272
|
+
type types_gen$2_CfgAccountsOauthGithubAuthorizeCreateErrors = CfgAccountsOauthGithubAuthorizeCreateErrors;
|
|
2273
|
+
type types_gen$2_CfgAccountsOauthGithubAuthorizeCreateResponse = CfgAccountsOauthGithubAuthorizeCreateResponse;
|
|
2274
|
+
type types_gen$2_CfgAccountsOauthGithubAuthorizeCreateResponses = CfgAccountsOauthGithubAuthorizeCreateResponses;
|
|
2275
|
+
type types_gen$2_CfgAccountsOauthGithubCallbackCreateData = CfgAccountsOauthGithubCallbackCreateData;
|
|
2276
|
+
type types_gen$2_CfgAccountsOauthGithubCallbackCreateError = CfgAccountsOauthGithubCallbackCreateError;
|
|
2277
|
+
type types_gen$2_CfgAccountsOauthGithubCallbackCreateErrors = CfgAccountsOauthGithubCallbackCreateErrors;
|
|
2278
|
+
type types_gen$2_CfgAccountsOauthGithubCallbackCreateResponse = CfgAccountsOauthGithubCallbackCreateResponse;
|
|
2279
|
+
type types_gen$2_CfgAccountsOauthGithubCallbackCreateResponses = CfgAccountsOauthGithubCallbackCreateResponses;
|
|
2280
|
+
type types_gen$2_CfgAccountsOauthProvidersRetrieveData = CfgAccountsOauthProvidersRetrieveData;
|
|
2281
|
+
type types_gen$2_CfgAccountsOauthProvidersRetrieveResponse = CfgAccountsOauthProvidersRetrieveResponse;
|
|
2282
|
+
type types_gen$2_CfgAccountsOauthProvidersRetrieveResponses = CfgAccountsOauthProvidersRetrieveResponses;
|
|
2283
|
+
type types_gen$2_CfgAccountsOtpRequestCreateData = CfgAccountsOtpRequestCreateData;
|
|
2284
|
+
type types_gen$2_CfgAccountsOtpRequestCreateError = CfgAccountsOtpRequestCreateError;
|
|
2285
|
+
type types_gen$2_CfgAccountsOtpRequestCreateErrors = CfgAccountsOtpRequestCreateErrors;
|
|
2286
|
+
type types_gen$2_CfgAccountsOtpRequestCreateResponse = CfgAccountsOtpRequestCreateResponse;
|
|
2287
|
+
type types_gen$2_CfgAccountsOtpRequestCreateResponses = CfgAccountsOtpRequestCreateResponses;
|
|
2288
|
+
type types_gen$2_CfgAccountsOtpVerifyCreateData = CfgAccountsOtpVerifyCreateData;
|
|
2289
|
+
type types_gen$2_CfgAccountsOtpVerifyCreateError = CfgAccountsOtpVerifyCreateError;
|
|
2290
|
+
type types_gen$2_CfgAccountsOtpVerifyCreateErrors = CfgAccountsOtpVerifyCreateErrors;
|
|
2291
|
+
type types_gen$2_CfgAccountsOtpVerifyCreateResponse = CfgAccountsOtpVerifyCreateResponse;
|
|
2292
|
+
type types_gen$2_CfgAccountsOtpVerifyCreateResponses = CfgAccountsOtpVerifyCreateResponses;
|
|
2293
|
+
type types_gen$2_CfgAccountsProfileAvatarCreateData = CfgAccountsProfileAvatarCreateData;
|
|
2294
|
+
type types_gen$2_CfgAccountsProfileAvatarCreateErrors = CfgAccountsProfileAvatarCreateErrors;
|
|
2295
|
+
type types_gen$2_CfgAccountsProfileAvatarCreateResponse = CfgAccountsProfileAvatarCreateResponse;
|
|
2296
|
+
type types_gen$2_CfgAccountsProfileAvatarCreateResponses = CfgAccountsProfileAvatarCreateResponses;
|
|
2297
|
+
type types_gen$2_CfgAccountsProfileDeleteCreateData = CfgAccountsProfileDeleteCreateData;
|
|
2298
|
+
type types_gen$2_CfgAccountsProfileDeleteCreateErrors = CfgAccountsProfileDeleteCreateErrors;
|
|
2299
|
+
type types_gen$2_CfgAccountsProfileDeleteCreateResponse = CfgAccountsProfileDeleteCreateResponse;
|
|
2300
|
+
type types_gen$2_CfgAccountsProfileDeleteCreateResponses = CfgAccountsProfileDeleteCreateResponses;
|
|
2301
|
+
type types_gen$2_CfgAccountsProfilePartialPartialUpdateData = CfgAccountsProfilePartialPartialUpdateData;
|
|
2302
|
+
type types_gen$2_CfgAccountsProfilePartialPartialUpdateErrors = CfgAccountsProfilePartialPartialUpdateErrors;
|
|
2303
|
+
type types_gen$2_CfgAccountsProfilePartialPartialUpdateResponse = CfgAccountsProfilePartialPartialUpdateResponse;
|
|
2304
|
+
type types_gen$2_CfgAccountsProfilePartialPartialUpdateResponses = CfgAccountsProfilePartialPartialUpdateResponses;
|
|
2305
|
+
type types_gen$2_CfgAccountsProfilePartialUpdateData = CfgAccountsProfilePartialUpdateData;
|
|
2306
|
+
type types_gen$2_CfgAccountsProfilePartialUpdateErrors = CfgAccountsProfilePartialUpdateErrors;
|
|
2307
|
+
type types_gen$2_CfgAccountsProfilePartialUpdateResponse = CfgAccountsProfilePartialUpdateResponse;
|
|
2308
|
+
type types_gen$2_CfgAccountsProfilePartialUpdateResponses = CfgAccountsProfilePartialUpdateResponses;
|
|
2309
|
+
type types_gen$2_CfgAccountsProfileRetrieveData = CfgAccountsProfileRetrieveData;
|
|
2310
|
+
type types_gen$2_CfgAccountsProfileRetrieveErrors = CfgAccountsProfileRetrieveErrors;
|
|
2311
|
+
type types_gen$2_CfgAccountsProfileRetrieveResponse = CfgAccountsProfileRetrieveResponse;
|
|
2312
|
+
type types_gen$2_CfgAccountsProfileRetrieveResponses = CfgAccountsProfileRetrieveResponses;
|
|
2313
|
+
type types_gen$2_CfgAccountsProfileUpdatePartialUpdateData = CfgAccountsProfileUpdatePartialUpdateData;
|
|
2314
|
+
type types_gen$2_CfgAccountsProfileUpdatePartialUpdateErrors = CfgAccountsProfileUpdatePartialUpdateErrors;
|
|
2315
|
+
type types_gen$2_CfgAccountsProfileUpdatePartialUpdateResponse = CfgAccountsProfileUpdatePartialUpdateResponse;
|
|
2316
|
+
type types_gen$2_CfgAccountsProfileUpdatePartialUpdateResponses = CfgAccountsProfileUpdatePartialUpdateResponses;
|
|
2317
|
+
type types_gen$2_CfgAccountsProfileUpdateUpdateData = CfgAccountsProfileUpdateUpdateData;
|
|
2318
|
+
type types_gen$2_CfgAccountsProfileUpdateUpdateErrors = CfgAccountsProfileUpdateUpdateErrors;
|
|
2319
|
+
type types_gen$2_CfgAccountsProfileUpdateUpdateResponse = CfgAccountsProfileUpdateUpdateResponse;
|
|
2320
|
+
type types_gen$2_CfgAccountsProfileUpdateUpdateResponses = CfgAccountsProfileUpdateUpdateResponses;
|
|
2321
|
+
type types_gen$2_CfgAccountsTokenRefreshCreateData = CfgAccountsTokenRefreshCreateData;
|
|
2322
|
+
type types_gen$2_CfgAccountsTokenRefreshCreateResponse = CfgAccountsTokenRefreshCreateResponse;
|
|
2323
|
+
type types_gen$2_CfgAccountsTokenRefreshCreateResponses = CfgAccountsTokenRefreshCreateResponses;
|
|
2324
|
+
type types_gen$2_CfgCentrifugoAuthTokenRetrieveData = CfgCentrifugoAuthTokenRetrieveData;
|
|
2325
|
+
type types_gen$2_CfgCentrifugoAuthTokenRetrieveErrors = CfgCentrifugoAuthTokenRetrieveErrors;
|
|
2326
|
+
type types_gen$2_CfgCentrifugoAuthTokenRetrieveResponse = CfgCentrifugoAuthTokenRetrieveResponse;
|
|
2327
|
+
type types_gen$2_CfgCentrifugoAuthTokenRetrieveResponses = CfgCentrifugoAuthTokenRetrieveResponses;
|
|
2328
|
+
type types_gen$2_CfgTotpBackupCodesRegenerateCreateData = CfgTotpBackupCodesRegenerateCreateData;
|
|
2329
|
+
type types_gen$2_CfgTotpBackupCodesRegenerateCreateErrors = CfgTotpBackupCodesRegenerateCreateErrors;
|
|
2330
|
+
type types_gen$2_CfgTotpBackupCodesRegenerateCreateResponse = CfgTotpBackupCodesRegenerateCreateResponse;
|
|
2331
|
+
type types_gen$2_CfgTotpBackupCodesRegenerateCreateResponses = CfgTotpBackupCodesRegenerateCreateResponses;
|
|
2332
|
+
type types_gen$2_CfgTotpBackupCodesRetrieveData = CfgTotpBackupCodesRetrieveData;
|
|
2333
|
+
type types_gen$2_CfgTotpBackupCodesRetrieveResponse = CfgTotpBackupCodesRetrieveResponse;
|
|
2334
|
+
type types_gen$2_CfgTotpBackupCodesRetrieveResponses = CfgTotpBackupCodesRetrieveResponses;
|
|
2335
|
+
type types_gen$2_CfgTotpDevicesDestroyData = CfgTotpDevicesDestroyData;
|
|
2336
|
+
type types_gen$2_CfgTotpDevicesDestroyResponse = CfgTotpDevicesDestroyResponse;
|
|
2337
|
+
type types_gen$2_CfgTotpDevicesDestroyResponses = CfgTotpDevicesDestroyResponses;
|
|
2338
|
+
type types_gen$2_CfgTotpDevicesRetrieveData = CfgTotpDevicesRetrieveData;
|
|
2339
|
+
type types_gen$2_CfgTotpDevicesRetrieveResponse = CfgTotpDevicesRetrieveResponse;
|
|
2340
|
+
type types_gen$2_CfgTotpDevicesRetrieveResponses = CfgTotpDevicesRetrieveResponses;
|
|
2341
|
+
type types_gen$2_CfgTotpDisableCreateData = CfgTotpDisableCreateData;
|
|
2342
|
+
type types_gen$2_CfgTotpDisableCreateErrors = CfgTotpDisableCreateErrors;
|
|
2343
|
+
type types_gen$2_CfgTotpDisableCreateResponses = CfgTotpDisableCreateResponses;
|
|
2344
|
+
type types_gen$2_CfgTotpSetupConfirmCreateData = CfgTotpSetupConfirmCreateData;
|
|
2345
|
+
type types_gen$2_CfgTotpSetupConfirmCreateErrors = CfgTotpSetupConfirmCreateErrors;
|
|
2346
|
+
type types_gen$2_CfgTotpSetupConfirmCreateResponse = CfgTotpSetupConfirmCreateResponse;
|
|
2347
|
+
type types_gen$2_CfgTotpSetupConfirmCreateResponses = CfgTotpSetupConfirmCreateResponses;
|
|
2348
|
+
type types_gen$2_CfgTotpSetupCreateData = CfgTotpSetupCreateData;
|
|
2349
|
+
type types_gen$2_CfgTotpSetupCreateErrors = CfgTotpSetupCreateErrors;
|
|
2350
|
+
type types_gen$2_CfgTotpSetupCreateResponse = CfgTotpSetupCreateResponse;
|
|
2351
|
+
type types_gen$2_CfgTotpSetupCreateResponses = CfgTotpSetupCreateResponses;
|
|
2352
|
+
type types_gen$2_CfgTotpVerifyBackupCreateData = CfgTotpVerifyBackupCreateData;
|
|
2353
|
+
type types_gen$2_CfgTotpVerifyBackupCreateErrors = CfgTotpVerifyBackupCreateErrors;
|
|
2354
|
+
type types_gen$2_CfgTotpVerifyBackupCreateResponse = CfgTotpVerifyBackupCreateResponse;
|
|
2355
|
+
type types_gen$2_CfgTotpVerifyBackupCreateResponses = CfgTotpVerifyBackupCreateResponses;
|
|
2356
|
+
type types_gen$2_CfgTotpVerifyCreateData = CfgTotpVerifyCreateData;
|
|
2357
|
+
type types_gen$2_CfgTotpVerifyCreateErrors = CfgTotpVerifyCreateErrors;
|
|
2358
|
+
type types_gen$2_CfgTotpVerifyCreateResponse = CfgTotpVerifyCreateResponse;
|
|
2359
|
+
type types_gen$2_CfgTotpVerifyCreateResponses = CfgTotpVerifyCreateResponses;
|
|
2360
|
+
type types_gen$2_CfgUserUpdateRequest = CfgUserUpdateRequest;
|
|
2361
|
+
type types_gen$2_ConfirmSetupRequest = ConfirmSetupRequest;
|
|
2362
|
+
type types_gen$2_ConfirmSetupResponse = ConfirmSetupResponse;
|
|
2363
|
+
type types_gen$2_ConnectionTokenResponse = ConnectionTokenResponse;
|
|
2364
|
+
type types_gen$2_DeviceList = DeviceList;
|
|
2365
|
+
type types_gen$2_DeviceListResponse = DeviceListResponse;
|
|
2366
|
+
type types_gen$2_DeviceListResponseWritable = DeviceListResponseWritable;
|
|
2367
|
+
type types_gen$2_DeviceListStatusEnum = DeviceListStatusEnum;
|
|
2368
|
+
declare const types_gen$2_DeviceListStatusEnum: typeof DeviceListStatusEnum;
|
|
2369
|
+
type types_gen$2_DisableRequest = DisableRequest;
|
|
2370
|
+
type types_gen$2_OAuthAuthorizeRequestRequest = OAuthAuthorizeRequestRequest;
|
|
2371
|
+
type types_gen$2_OAuthAuthorizeResponse = OAuthAuthorizeResponse;
|
|
2372
|
+
type types_gen$2_OAuthCallbackRequestRequest = OAuthCallbackRequestRequest;
|
|
2373
|
+
type types_gen$2_OAuthConnection = OAuthConnection;
|
|
2374
|
+
type types_gen$2_OAuthDisconnectRequestRequest = OAuthDisconnectRequestRequest;
|
|
2375
|
+
type types_gen$2_OAuthError = OAuthError;
|
|
2376
|
+
type types_gen$2_OAuthProvidersResponse = OAuthProvidersResponse;
|
|
2377
|
+
type types_gen$2_OAuthTokenResponse = OAuthTokenResponse;
|
|
2378
|
+
type types_gen$2_OtpErrorResponse = OtpErrorResponse;
|
|
2379
|
+
type types_gen$2_OtpRequestRequest = OtpRequestRequest;
|
|
2380
|
+
type types_gen$2_OtpRequestResponse = OtpRequestResponse;
|
|
2381
|
+
type types_gen$2_OtpVerifyRequest = OtpVerifyRequest;
|
|
2382
|
+
type types_gen$2_OtpVerifyResponse = OtpVerifyResponse;
|
|
2383
|
+
type types_gen$2_OtpVerifyResponseWritable = OtpVerifyResponseWritable;
|
|
2384
|
+
type types_gen$2_PatchedCfgUserUpdateRequest = PatchedCfgUserUpdateRequest;
|
|
2385
|
+
type types_gen$2_ProviderEnum = ProviderEnum;
|
|
2386
|
+
declare const types_gen$2_ProviderEnum: typeof ProviderEnum;
|
|
2387
|
+
type types_gen$2_SetupRequest = SetupRequest;
|
|
2388
|
+
type types_gen$2_SetupResponse = SetupResponse;
|
|
2389
|
+
type types_gen$2_TokenRefresh = TokenRefresh;
|
|
2390
|
+
type types_gen$2_TokenRefreshRequest = TokenRefreshRequest;
|
|
2391
|
+
type types_gen$2_TokenRefreshWritable = TokenRefreshWritable;
|
|
2392
|
+
type types_gen$2_TotpVerifyUser = TotpVerifyUser;
|
|
2393
|
+
type types_gen$2_TotpVerifyUserWritable = TotpVerifyUserWritable;
|
|
2394
|
+
type types_gen$2_User = User;
|
|
2395
|
+
type types_gen$2_UserWritable = UserWritable;
|
|
2396
|
+
type types_gen$2_VerifyBackupRequest = VerifyBackupRequest;
|
|
2397
|
+
type types_gen$2_VerifyRequest = VerifyRequest;
|
|
2398
|
+
type types_gen$2_VerifyResponse = VerifyResponse;
|
|
2399
|
+
type types_gen$2_VerifyResponseWritable = VerifyResponseWritable;
|
|
2400
|
+
declare namespace types_gen$2 {
|
|
2401
|
+
export { type types_gen$2_AccountDeleteResponse as AccountDeleteResponse, type types_gen$2_BackupCodesRegenerateRequest as BackupCodesRegenerateRequest, type types_gen$2_BackupCodesRegenerateResponse as BackupCodesRegenerateResponse, type types_gen$2_BackupCodesStatus as BackupCodesStatus, type types_gen$2_CentrifugoToken as CentrifugoToken, type types_gen$2_CfgAccountsOauthConnectionsListData as CfgAccountsOauthConnectionsListData, type types_gen$2_CfgAccountsOauthConnectionsListResponse as CfgAccountsOauthConnectionsListResponse, type types_gen$2_CfgAccountsOauthConnectionsListResponses as CfgAccountsOauthConnectionsListResponses, type types_gen$2_CfgAccountsOauthDisconnectCreateData as CfgAccountsOauthDisconnectCreateData, type types_gen$2_CfgAccountsOauthDisconnectCreateError as CfgAccountsOauthDisconnectCreateError, type types_gen$2_CfgAccountsOauthDisconnectCreateErrors as CfgAccountsOauthDisconnectCreateErrors, type types_gen$2_CfgAccountsOauthDisconnectCreateResponse as CfgAccountsOauthDisconnectCreateResponse, type types_gen$2_CfgAccountsOauthDisconnectCreateResponses as CfgAccountsOauthDisconnectCreateResponses, type types_gen$2_CfgAccountsOauthGithubAuthorizeCreateData as CfgAccountsOauthGithubAuthorizeCreateData, type types_gen$2_CfgAccountsOauthGithubAuthorizeCreateError as CfgAccountsOauthGithubAuthorizeCreateError, type types_gen$2_CfgAccountsOauthGithubAuthorizeCreateErrors as CfgAccountsOauthGithubAuthorizeCreateErrors, type types_gen$2_CfgAccountsOauthGithubAuthorizeCreateResponse as CfgAccountsOauthGithubAuthorizeCreateResponse, type types_gen$2_CfgAccountsOauthGithubAuthorizeCreateResponses as CfgAccountsOauthGithubAuthorizeCreateResponses, type types_gen$2_CfgAccountsOauthGithubCallbackCreateData as CfgAccountsOauthGithubCallbackCreateData, type types_gen$2_CfgAccountsOauthGithubCallbackCreateError as CfgAccountsOauthGithubCallbackCreateError, type types_gen$2_CfgAccountsOauthGithubCallbackCreateErrors as CfgAccountsOauthGithubCallbackCreateErrors, type types_gen$2_CfgAccountsOauthGithubCallbackCreateResponse as CfgAccountsOauthGithubCallbackCreateResponse, type types_gen$2_CfgAccountsOauthGithubCallbackCreateResponses as CfgAccountsOauthGithubCallbackCreateResponses, type types_gen$2_CfgAccountsOauthProvidersRetrieveData as CfgAccountsOauthProvidersRetrieveData, type types_gen$2_CfgAccountsOauthProvidersRetrieveResponse as CfgAccountsOauthProvidersRetrieveResponse, type types_gen$2_CfgAccountsOauthProvidersRetrieveResponses as CfgAccountsOauthProvidersRetrieveResponses, type types_gen$2_CfgAccountsOtpRequestCreateData as CfgAccountsOtpRequestCreateData, type types_gen$2_CfgAccountsOtpRequestCreateError as CfgAccountsOtpRequestCreateError, type types_gen$2_CfgAccountsOtpRequestCreateErrors as CfgAccountsOtpRequestCreateErrors, type types_gen$2_CfgAccountsOtpRequestCreateResponse as CfgAccountsOtpRequestCreateResponse, type types_gen$2_CfgAccountsOtpRequestCreateResponses as CfgAccountsOtpRequestCreateResponses, type types_gen$2_CfgAccountsOtpVerifyCreateData as CfgAccountsOtpVerifyCreateData, type types_gen$2_CfgAccountsOtpVerifyCreateError as CfgAccountsOtpVerifyCreateError, type types_gen$2_CfgAccountsOtpVerifyCreateErrors as CfgAccountsOtpVerifyCreateErrors, type types_gen$2_CfgAccountsOtpVerifyCreateResponse as CfgAccountsOtpVerifyCreateResponse, type types_gen$2_CfgAccountsOtpVerifyCreateResponses as CfgAccountsOtpVerifyCreateResponses, type types_gen$2_CfgAccountsProfileAvatarCreateData as CfgAccountsProfileAvatarCreateData, type types_gen$2_CfgAccountsProfileAvatarCreateErrors as CfgAccountsProfileAvatarCreateErrors, type types_gen$2_CfgAccountsProfileAvatarCreateResponse as CfgAccountsProfileAvatarCreateResponse, type types_gen$2_CfgAccountsProfileAvatarCreateResponses as CfgAccountsProfileAvatarCreateResponses, type types_gen$2_CfgAccountsProfileDeleteCreateData as CfgAccountsProfileDeleteCreateData, type types_gen$2_CfgAccountsProfileDeleteCreateErrors as CfgAccountsProfileDeleteCreateErrors, type types_gen$2_CfgAccountsProfileDeleteCreateResponse as CfgAccountsProfileDeleteCreateResponse, type types_gen$2_CfgAccountsProfileDeleteCreateResponses as CfgAccountsProfileDeleteCreateResponses, type types_gen$2_CfgAccountsProfilePartialPartialUpdateData as CfgAccountsProfilePartialPartialUpdateData, type types_gen$2_CfgAccountsProfilePartialPartialUpdateErrors as CfgAccountsProfilePartialPartialUpdateErrors, type types_gen$2_CfgAccountsProfilePartialPartialUpdateResponse as CfgAccountsProfilePartialPartialUpdateResponse, type types_gen$2_CfgAccountsProfilePartialPartialUpdateResponses as CfgAccountsProfilePartialPartialUpdateResponses, type types_gen$2_CfgAccountsProfilePartialUpdateData as CfgAccountsProfilePartialUpdateData, type types_gen$2_CfgAccountsProfilePartialUpdateErrors as CfgAccountsProfilePartialUpdateErrors, type types_gen$2_CfgAccountsProfilePartialUpdateResponse as CfgAccountsProfilePartialUpdateResponse, type types_gen$2_CfgAccountsProfilePartialUpdateResponses as CfgAccountsProfilePartialUpdateResponses, type types_gen$2_CfgAccountsProfileRetrieveData as CfgAccountsProfileRetrieveData, type types_gen$2_CfgAccountsProfileRetrieveErrors as CfgAccountsProfileRetrieveErrors, type types_gen$2_CfgAccountsProfileRetrieveResponse as CfgAccountsProfileRetrieveResponse, type types_gen$2_CfgAccountsProfileRetrieveResponses as CfgAccountsProfileRetrieveResponses, type types_gen$2_CfgAccountsProfileUpdatePartialUpdateData as CfgAccountsProfileUpdatePartialUpdateData, type types_gen$2_CfgAccountsProfileUpdatePartialUpdateErrors as CfgAccountsProfileUpdatePartialUpdateErrors, type types_gen$2_CfgAccountsProfileUpdatePartialUpdateResponse as CfgAccountsProfileUpdatePartialUpdateResponse, type types_gen$2_CfgAccountsProfileUpdatePartialUpdateResponses as CfgAccountsProfileUpdatePartialUpdateResponses, type types_gen$2_CfgAccountsProfileUpdateUpdateData as CfgAccountsProfileUpdateUpdateData, type types_gen$2_CfgAccountsProfileUpdateUpdateErrors as CfgAccountsProfileUpdateUpdateErrors, type types_gen$2_CfgAccountsProfileUpdateUpdateResponse as CfgAccountsProfileUpdateUpdateResponse, type types_gen$2_CfgAccountsProfileUpdateUpdateResponses as CfgAccountsProfileUpdateUpdateResponses, type types_gen$2_CfgAccountsTokenRefreshCreateData as CfgAccountsTokenRefreshCreateData, type types_gen$2_CfgAccountsTokenRefreshCreateResponse as CfgAccountsTokenRefreshCreateResponse, type types_gen$2_CfgAccountsTokenRefreshCreateResponses as CfgAccountsTokenRefreshCreateResponses, type types_gen$2_CfgCentrifugoAuthTokenRetrieveData as CfgCentrifugoAuthTokenRetrieveData, type types_gen$2_CfgCentrifugoAuthTokenRetrieveErrors as CfgCentrifugoAuthTokenRetrieveErrors, type types_gen$2_CfgCentrifugoAuthTokenRetrieveResponse as CfgCentrifugoAuthTokenRetrieveResponse, type types_gen$2_CfgCentrifugoAuthTokenRetrieveResponses as CfgCentrifugoAuthTokenRetrieveResponses, type types_gen$2_CfgTotpBackupCodesRegenerateCreateData as CfgTotpBackupCodesRegenerateCreateData, type types_gen$2_CfgTotpBackupCodesRegenerateCreateErrors as CfgTotpBackupCodesRegenerateCreateErrors, type types_gen$2_CfgTotpBackupCodesRegenerateCreateResponse as CfgTotpBackupCodesRegenerateCreateResponse, type types_gen$2_CfgTotpBackupCodesRegenerateCreateResponses as CfgTotpBackupCodesRegenerateCreateResponses, type types_gen$2_CfgTotpBackupCodesRetrieveData as CfgTotpBackupCodesRetrieveData, type types_gen$2_CfgTotpBackupCodesRetrieveResponse as CfgTotpBackupCodesRetrieveResponse, type types_gen$2_CfgTotpBackupCodesRetrieveResponses as CfgTotpBackupCodesRetrieveResponses, type types_gen$2_CfgTotpDevicesDestroyData as CfgTotpDevicesDestroyData, type types_gen$2_CfgTotpDevicesDestroyResponse as CfgTotpDevicesDestroyResponse, type types_gen$2_CfgTotpDevicesDestroyResponses as CfgTotpDevicesDestroyResponses, type types_gen$2_CfgTotpDevicesRetrieveData as CfgTotpDevicesRetrieveData, type types_gen$2_CfgTotpDevicesRetrieveResponse as CfgTotpDevicesRetrieveResponse, type types_gen$2_CfgTotpDevicesRetrieveResponses as CfgTotpDevicesRetrieveResponses, type types_gen$2_CfgTotpDisableCreateData as CfgTotpDisableCreateData, type types_gen$2_CfgTotpDisableCreateErrors as CfgTotpDisableCreateErrors, type types_gen$2_CfgTotpDisableCreateResponses as CfgTotpDisableCreateResponses, type types_gen$2_CfgTotpSetupConfirmCreateData as CfgTotpSetupConfirmCreateData, type types_gen$2_CfgTotpSetupConfirmCreateErrors as CfgTotpSetupConfirmCreateErrors, type types_gen$2_CfgTotpSetupConfirmCreateResponse as CfgTotpSetupConfirmCreateResponse, type types_gen$2_CfgTotpSetupConfirmCreateResponses as CfgTotpSetupConfirmCreateResponses, type types_gen$2_CfgTotpSetupCreateData as CfgTotpSetupCreateData, type types_gen$2_CfgTotpSetupCreateErrors as CfgTotpSetupCreateErrors, type types_gen$2_CfgTotpSetupCreateResponse as CfgTotpSetupCreateResponse, type types_gen$2_CfgTotpSetupCreateResponses as CfgTotpSetupCreateResponses, type types_gen$2_CfgTotpVerifyBackupCreateData as CfgTotpVerifyBackupCreateData, type types_gen$2_CfgTotpVerifyBackupCreateErrors as CfgTotpVerifyBackupCreateErrors, type types_gen$2_CfgTotpVerifyBackupCreateResponse as CfgTotpVerifyBackupCreateResponse, type types_gen$2_CfgTotpVerifyBackupCreateResponses as CfgTotpVerifyBackupCreateResponses, type types_gen$2_CfgTotpVerifyCreateData as CfgTotpVerifyCreateData, type types_gen$2_CfgTotpVerifyCreateErrors as CfgTotpVerifyCreateErrors, type types_gen$2_CfgTotpVerifyCreateResponse as CfgTotpVerifyCreateResponse, type types_gen$2_CfgTotpVerifyCreateResponses as CfgTotpVerifyCreateResponses, type types_gen$2_CfgUserUpdateRequest as CfgUserUpdateRequest, type ClientOptions$1 as ClientOptions, type types_gen$2_ConfirmSetupRequest as ConfirmSetupRequest, type types_gen$2_ConfirmSetupResponse as ConfirmSetupResponse, type types_gen$2_ConnectionTokenResponse as ConnectionTokenResponse, type types_gen$2_DeviceList as DeviceList, type types_gen$2_DeviceListResponse as DeviceListResponse, type types_gen$2_DeviceListResponseWritable as DeviceListResponseWritable, types_gen$2_DeviceListStatusEnum as DeviceListStatusEnum, type types_gen$2_DisableRequest as DisableRequest, type types_gen$2_OAuthAuthorizeRequestRequest as OAuthAuthorizeRequestRequest, type types_gen$2_OAuthAuthorizeResponse as OAuthAuthorizeResponse, type types_gen$2_OAuthCallbackRequestRequest as OAuthCallbackRequestRequest, type types_gen$2_OAuthConnection as OAuthConnection, type types_gen$2_OAuthDisconnectRequestRequest as OAuthDisconnectRequestRequest, type types_gen$2_OAuthError as OAuthError, type types_gen$2_OAuthProvidersResponse as OAuthProvidersResponse, type types_gen$2_OAuthTokenResponse as OAuthTokenResponse, type types_gen$2_OtpErrorResponse as OtpErrorResponse, type types_gen$2_OtpRequestRequest as OtpRequestRequest, type types_gen$2_OtpRequestResponse as OtpRequestResponse, type types_gen$2_OtpVerifyRequest as OtpVerifyRequest, type types_gen$2_OtpVerifyResponse as OtpVerifyResponse, type types_gen$2_OtpVerifyResponseWritable as OtpVerifyResponseWritable, type types_gen$2_PatchedCfgUserUpdateRequest as PatchedCfgUserUpdateRequest, types_gen$2_ProviderEnum as ProviderEnum, type types_gen$2_SetupRequest as SetupRequest, type types_gen$2_SetupResponse as SetupResponse, type types_gen$2_TokenRefresh as TokenRefresh, type types_gen$2_TokenRefreshRequest as TokenRefreshRequest, type types_gen$2_TokenRefreshWritable as TokenRefreshWritable, type types_gen$2_TotpVerifyUser as TotpVerifyUser, type types_gen$2_TotpVerifyUserWritable as TotpVerifyUserWritable, type types_gen$2_User as User, type types_gen$2_UserWritable as UserWritable, type types_gen$2_VerifyBackupRequest as VerifyBackupRequest, type types_gen$2_VerifyRequest as VerifyRequest, type types_gen$2_VerifyResponse as VerifyResponse, type types_gen$2_VerifyResponseWritable as VerifyResponseWritable };
|
|
3014
2402
|
}
|
|
3015
|
-
|
|
3016
|
-
|
|
3017
|
-
|
|
3018
|
-
|
|
3019
|
-
|
|
3020
|
-
|
|
3021
|
-
|
|
3022
|
-
|
|
3023
|
-
|
|
3024
|
-
|
|
3025
|
-
|
|
3026
|
-
|
|
3027
|
-
|
|
3028
|
-
|
|
3029
|
-
|
|
3030
|
-
|
|
3031
|
-
|
|
3032
|
-
|
|
3033
|
-
|
|
3034
|
-
|
|
3035
|
-
|
|
3036
|
-
|
|
3037
|
-
|
|
3038
|
-
|
|
3039
|
-
|
|
3040
|
-
|
|
3041
|
-
|
|
3042
|
-
|
|
3043
|
-
|
|
3044
|
-
|
|
3045
|
-
|
|
3046
|
-
|
|
3047
|
-
|
|
3048
|
-
|
|
3049
|
-
|
|
2403
|
+
|
|
2404
|
+
type types_gen$1_AccountDeleteResponse = AccountDeleteResponse;
|
|
2405
|
+
type types_gen$1_BackupCodesRegenerateRequest = BackupCodesRegenerateRequest;
|
|
2406
|
+
type types_gen$1_BackupCodesRegenerateResponse = BackupCodesRegenerateResponse;
|
|
2407
|
+
type types_gen$1_BackupCodesStatus = BackupCodesStatus;
|
|
2408
|
+
type types_gen$1_CentrifugoToken = CentrifugoToken;
|
|
2409
|
+
type types_gen$1_CfgAccountsOauthConnectionsListData = CfgAccountsOauthConnectionsListData;
|
|
2410
|
+
type types_gen$1_CfgAccountsOauthConnectionsListResponse = CfgAccountsOauthConnectionsListResponse;
|
|
2411
|
+
type types_gen$1_CfgAccountsOauthConnectionsListResponses = CfgAccountsOauthConnectionsListResponses;
|
|
2412
|
+
type types_gen$1_CfgAccountsOauthDisconnectCreateData = CfgAccountsOauthDisconnectCreateData;
|
|
2413
|
+
type types_gen$1_CfgAccountsOauthDisconnectCreateError = CfgAccountsOauthDisconnectCreateError;
|
|
2414
|
+
type types_gen$1_CfgAccountsOauthDisconnectCreateErrors = CfgAccountsOauthDisconnectCreateErrors;
|
|
2415
|
+
type types_gen$1_CfgAccountsOauthDisconnectCreateResponse = CfgAccountsOauthDisconnectCreateResponse;
|
|
2416
|
+
type types_gen$1_CfgAccountsOauthDisconnectCreateResponses = CfgAccountsOauthDisconnectCreateResponses;
|
|
2417
|
+
type types_gen$1_CfgAccountsOauthGithubAuthorizeCreateData = CfgAccountsOauthGithubAuthorizeCreateData;
|
|
2418
|
+
type types_gen$1_CfgAccountsOauthGithubAuthorizeCreateError = CfgAccountsOauthGithubAuthorizeCreateError;
|
|
2419
|
+
type types_gen$1_CfgAccountsOauthGithubAuthorizeCreateErrors = CfgAccountsOauthGithubAuthorizeCreateErrors;
|
|
2420
|
+
type types_gen$1_CfgAccountsOauthGithubAuthorizeCreateResponse = CfgAccountsOauthGithubAuthorizeCreateResponse;
|
|
2421
|
+
type types_gen$1_CfgAccountsOauthGithubAuthorizeCreateResponses = CfgAccountsOauthGithubAuthorizeCreateResponses;
|
|
2422
|
+
type types_gen$1_CfgAccountsOauthGithubCallbackCreateData = CfgAccountsOauthGithubCallbackCreateData;
|
|
2423
|
+
type types_gen$1_CfgAccountsOauthGithubCallbackCreateError = CfgAccountsOauthGithubCallbackCreateError;
|
|
2424
|
+
type types_gen$1_CfgAccountsOauthGithubCallbackCreateErrors = CfgAccountsOauthGithubCallbackCreateErrors;
|
|
2425
|
+
type types_gen$1_CfgAccountsOauthGithubCallbackCreateResponse = CfgAccountsOauthGithubCallbackCreateResponse;
|
|
2426
|
+
type types_gen$1_CfgAccountsOauthGithubCallbackCreateResponses = CfgAccountsOauthGithubCallbackCreateResponses;
|
|
2427
|
+
type types_gen$1_CfgAccountsOauthProvidersRetrieveData = CfgAccountsOauthProvidersRetrieveData;
|
|
2428
|
+
type types_gen$1_CfgAccountsOauthProvidersRetrieveResponse = CfgAccountsOauthProvidersRetrieveResponse;
|
|
2429
|
+
type types_gen$1_CfgAccountsOauthProvidersRetrieveResponses = CfgAccountsOauthProvidersRetrieveResponses;
|
|
2430
|
+
type types_gen$1_CfgAccountsOtpRequestCreateData = CfgAccountsOtpRequestCreateData;
|
|
2431
|
+
type types_gen$1_CfgAccountsOtpRequestCreateError = CfgAccountsOtpRequestCreateError;
|
|
2432
|
+
type types_gen$1_CfgAccountsOtpRequestCreateErrors = CfgAccountsOtpRequestCreateErrors;
|
|
2433
|
+
type types_gen$1_CfgAccountsOtpRequestCreateResponse = CfgAccountsOtpRequestCreateResponse;
|
|
2434
|
+
type types_gen$1_CfgAccountsOtpRequestCreateResponses = CfgAccountsOtpRequestCreateResponses;
|
|
2435
|
+
type types_gen$1_CfgAccountsOtpVerifyCreateData = CfgAccountsOtpVerifyCreateData;
|
|
2436
|
+
type types_gen$1_CfgAccountsOtpVerifyCreateError = CfgAccountsOtpVerifyCreateError;
|
|
2437
|
+
type types_gen$1_CfgAccountsOtpVerifyCreateErrors = CfgAccountsOtpVerifyCreateErrors;
|
|
2438
|
+
type types_gen$1_CfgAccountsOtpVerifyCreateResponse = CfgAccountsOtpVerifyCreateResponse;
|
|
2439
|
+
type types_gen$1_CfgAccountsOtpVerifyCreateResponses = CfgAccountsOtpVerifyCreateResponses;
|
|
2440
|
+
type types_gen$1_CfgAccountsProfileAvatarCreateData = CfgAccountsProfileAvatarCreateData;
|
|
2441
|
+
type types_gen$1_CfgAccountsProfileAvatarCreateErrors = CfgAccountsProfileAvatarCreateErrors;
|
|
2442
|
+
type types_gen$1_CfgAccountsProfileAvatarCreateResponse = CfgAccountsProfileAvatarCreateResponse;
|
|
2443
|
+
type types_gen$1_CfgAccountsProfileAvatarCreateResponses = CfgAccountsProfileAvatarCreateResponses;
|
|
2444
|
+
type types_gen$1_CfgAccountsProfileDeleteCreateData = CfgAccountsProfileDeleteCreateData;
|
|
2445
|
+
type types_gen$1_CfgAccountsProfileDeleteCreateErrors = CfgAccountsProfileDeleteCreateErrors;
|
|
2446
|
+
type types_gen$1_CfgAccountsProfileDeleteCreateResponse = CfgAccountsProfileDeleteCreateResponse;
|
|
2447
|
+
type types_gen$1_CfgAccountsProfileDeleteCreateResponses = CfgAccountsProfileDeleteCreateResponses;
|
|
2448
|
+
type types_gen$1_CfgAccountsProfilePartialPartialUpdateData = CfgAccountsProfilePartialPartialUpdateData;
|
|
2449
|
+
type types_gen$1_CfgAccountsProfilePartialPartialUpdateErrors = CfgAccountsProfilePartialPartialUpdateErrors;
|
|
2450
|
+
type types_gen$1_CfgAccountsProfilePartialPartialUpdateResponse = CfgAccountsProfilePartialPartialUpdateResponse;
|
|
2451
|
+
type types_gen$1_CfgAccountsProfilePartialPartialUpdateResponses = CfgAccountsProfilePartialPartialUpdateResponses;
|
|
2452
|
+
type types_gen$1_CfgAccountsProfilePartialUpdateData = CfgAccountsProfilePartialUpdateData;
|
|
2453
|
+
type types_gen$1_CfgAccountsProfilePartialUpdateErrors = CfgAccountsProfilePartialUpdateErrors;
|
|
2454
|
+
type types_gen$1_CfgAccountsProfilePartialUpdateResponse = CfgAccountsProfilePartialUpdateResponse;
|
|
2455
|
+
type types_gen$1_CfgAccountsProfilePartialUpdateResponses = CfgAccountsProfilePartialUpdateResponses;
|
|
2456
|
+
type types_gen$1_CfgAccountsProfileRetrieveData = CfgAccountsProfileRetrieveData;
|
|
2457
|
+
type types_gen$1_CfgAccountsProfileRetrieveErrors = CfgAccountsProfileRetrieveErrors;
|
|
2458
|
+
type types_gen$1_CfgAccountsProfileRetrieveResponse = CfgAccountsProfileRetrieveResponse;
|
|
2459
|
+
type types_gen$1_CfgAccountsProfileRetrieveResponses = CfgAccountsProfileRetrieveResponses;
|
|
2460
|
+
type types_gen$1_CfgAccountsProfileUpdatePartialUpdateData = CfgAccountsProfileUpdatePartialUpdateData;
|
|
2461
|
+
type types_gen$1_CfgAccountsProfileUpdatePartialUpdateErrors = CfgAccountsProfileUpdatePartialUpdateErrors;
|
|
2462
|
+
type types_gen$1_CfgAccountsProfileUpdatePartialUpdateResponse = CfgAccountsProfileUpdatePartialUpdateResponse;
|
|
2463
|
+
type types_gen$1_CfgAccountsProfileUpdatePartialUpdateResponses = CfgAccountsProfileUpdatePartialUpdateResponses;
|
|
2464
|
+
type types_gen$1_CfgAccountsProfileUpdateUpdateData = CfgAccountsProfileUpdateUpdateData;
|
|
2465
|
+
type types_gen$1_CfgAccountsProfileUpdateUpdateErrors = CfgAccountsProfileUpdateUpdateErrors;
|
|
2466
|
+
type types_gen$1_CfgAccountsProfileUpdateUpdateResponse = CfgAccountsProfileUpdateUpdateResponse;
|
|
2467
|
+
type types_gen$1_CfgAccountsProfileUpdateUpdateResponses = CfgAccountsProfileUpdateUpdateResponses;
|
|
2468
|
+
type types_gen$1_CfgAccountsTokenRefreshCreateData = CfgAccountsTokenRefreshCreateData;
|
|
2469
|
+
type types_gen$1_CfgAccountsTokenRefreshCreateResponse = CfgAccountsTokenRefreshCreateResponse;
|
|
2470
|
+
type types_gen$1_CfgAccountsTokenRefreshCreateResponses = CfgAccountsTokenRefreshCreateResponses;
|
|
2471
|
+
type types_gen$1_CfgCentrifugoAuthTokenRetrieveData = CfgCentrifugoAuthTokenRetrieveData;
|
|
2472
|
+
type types_gen$1_CfgCentrifugoAuthTokenRetrieveErrors = CfgCentrifugoAuthTokenRetrieveErrors;
|
|
2473
|
+
type types_gen$1_CfgCentrifugoAuthTokenRetrieveResponse = CfgCentrifugoAuthTokenRetrieveResponse;
|
|
2474
|
+
type types_gen$1_CfgCentrifugoAuthTokenRetrieveResponses = CfgCentrifugoAuthTokenRetrieveResponses;
|
|
2475
|
+
type types_gen$1_CfgTotpBackupCodesRegenerateCreateData = CfgTotpBackupCodesRegenerateCreateData;
|
|
2476
|
+
type types_gen$1_CfgTotpBackupCodesRegenerateCreateErrors = CfgTotpBackupCodesRegenerateCreateErrors;
|
|
2477
|
+
type types_gen$1_CfgTotpBackupCodesRegenerateCreateResponse = CfgTotpBackupCodesRegenerateCreateResponse;
|
|
2478
|
+
type types_gen$1_CfgTotpBackupCodesRegenerateCreateResponses = CfgTotpBackupCodesRegenerateCreateResponses;
|
|
2479
|
+
type types_gen$1_CfgTotpBackupCodesRetrieveData = CfgTotpBackupCodesRetrieveData;
|
|
2480
|
+
type types_gen$1_CfgTotpBackupCodesRetrieveResponse = CfgTotpBackupCodesRetrieveResponse;
|
|
2481
|
+
type types_gen$1_CfgTotpBackupCodesRetrieveResponses = CfgTotpBackupCodesRetrieveResponses;
|
|
2482
|
+
type types_gen$1_CfgTotpDevicesDestroyData = CfgTotpDevicesDestroyData;
|
|
2483
|
+
type types_gen$1_CfgTotpDevicesDestroyResponse = CfgTotpDevicesDestroyResponse;
|
|
2484
|
+
type types_gen$1_CfgTotpDevicesDestroyResponses = CfgTotpDevicesDestroyResponses;
|
|
2485
|
+
type types_gen$1_CfgTotpDevicesRetrieveData = CfgTotpDevicesRetrieveData;
|
|
2486
|
+
type types_gen$1_CfgTotpDevicesRetrieveResponse = CfgTotpDevicesRetrieveResponse;
|
|
2487
|
+
type types_gen$1_CfgTotpDevicesRetrieveResponses = CfgTotpDevicesRetrieveResponses;
|
|
2488
|
+
type types_gen$1_CfgTotpDisableCreateData = CfgTotpDisableCreateData;
|
|
2489
|
+
type types_gen$1_CfgTotpDisableCreateErrors = CfgTotpDisableCreateErrors;
|
|
2490
|
+
type types_gen$1_CfgTotpDisableCreateResponses = CfgTotpDisableCreateResponses;
|
|
2491
|
+
type types_gen$1_CfgTotpSetupConfirmCreateData = CfgTotpSetupConfirmCreateData;
|
|
2492
|
+
type types_gen$1_CfgTotpSetupConfirmCreateErrors = CfgTotpSetupConfirmCreateErrors;
|
|
2493
|
+
type types_gen$1_CfgTotpSetupConfirmCreateResponse = CfgTotpSetupConfirmCreateResponse;
|
|
2494
|
+
type types_gen$1_CfgTotpSetupConfirmCreateResponses = CfgTotpSetupConfirmCreateResponses;
|
|
2495
|
+
type types_gen$1_CfgTotpSetupCreateData = CfgTotpSetupCreateData;
|
|
2496
|
+
type types_gen$1_CfgTotpSetupCreateErrors = CfgTotpSetupCreateErrors;
|
|
2497
|
+
type types_gen$1_CfgTotpSetupCreateResponse = CfgTotpSetupCreateResponse;
|
|
2498
|
+
type types_gen$1_CfgTotpSetupCreateResponses = CfgTotpSetupCreateResponses;
|
|
2499
|
+
type types_gen$1_CfgTotpVerifyBackupCreateData = CfgTotpVerifyBackupCreateData;
|
|
2500
|
+
type types_gen$1_CfgTotpVerifyBackupCreateErrors = CfgTotpVerifyBackupCreateErrors;
|
|
2501
|
+
type types_gen$1_CfgTotpVerifyBackupCreateResponse = CfgTotpVerifyBackupCreateResponse;
|
|
2502
|
+
type types_gen$1_CfgTotpVerifyBackupCreateResponses = CfgTotpVerifyBackupCreateResponses;
|
|
2503
|
+
type types_gen$1_CfgTotpVerifyCreateData = CfgTotpVerifyCreateData;
|
|
2504
|
+
type types_gen$1_CfgTotpVerifyCreateErrors = CfgTotpVerifyCreateErrors;
|
|
2505
|
+
type types_gen$1_CfgTotpVerifyCreateResponse = CfgTotpVerifyCreateResponse;
|
|
2506
|
+
type types_gen$1_CfgTotpVerifyCreateResponses = CfgTotpVerifyCreateResponses;
|
|
2507
|
+
type types_gen$1_CfgUserUpdateRequest = CfgUserUpdateRequest;
|
|
2508
|
+
type types_gen$1_ConfirmSetupRequest = ConfirmSetupRequest;
|
|
2509
|
+
type types_gen$1_ConfirmSetupResponse = ConfirmSetupResponse;
|
|
2510
|
+
type types_gen$1_ConnectionTokenResponse = ConnectionTokenResponse;
|
|
2511
|
+
type types_gen$1_DeviceList = DeviceList;
|
|
2512
|
+
type types_gen$1_DeviceListResponse = DeviceListResponse;
|
|
2513
|
+
type types_gen$1_DeviceListResponseWritable = DeviceListResponseWritable;
|
|
2514
|
+
type types_gen$1_DeviceListStatusEnum = DeviceListStatusEnum;
|
|
2515
|
+
declare const types_gen$1_DeviceListStatusEnum: typeof DeviceListStatusEnum;
|
|
2516
|
+
type types_gen$1_DisableRequest = DisableRequest;
|
|
2517
|
+
type types_gen$1_OAuthAuthorizeRequestRequest = OAuthAuthorizeRequestRequest;
|
|
2518
|
+
type types_gen$1_OAuthAuthorizeResponse = OAuthAuthorizeResponse;
|
|
2519
|
+
type types_gen$1_OAuthCallbackRequestRequest = OAuthCallbackRequestRequest;
|
|
2520
|
+
type types_gen$1_OAuthConnection = OAuthConnection;
|
|
2521
|
+
type types_gen$1_OAuthDisconnectRequestRequest = OAuthDisconnectRequestRequest;
|
|
2522
|
+
type types_gen$1_OAuthError = OAuthError;
|
|
2523
|
+
type types_gen$1_OAuthProvidersResponse = OAuthProvidersResponse;
|
|
2524
|
+
type types_gen$1_OAuthTokenResponse = OAuthTokenResponse;
|
|
2525
|
+
type types_gen$1_OtpErrorResponse = OtpErrorResponse;
|
|
2526
|
+
type types_gen$1_OtpRequestRequest = OtpRequestRequest;
|
|
2527
|
+
type types_gen$1_OtpRequestResponse = OtpRequestResponse;
|
|
2528
|
+
type types_gen$1_OtpVerifyRequest = OtpVerifyRequest;
|
|
2529
|
+
type types_gen$1_OtpVerifyResponse = OtpVerifyResponse;
|
|
2530
|
+
type types_gen$1_OtpVerifyResponseWritable = OtpVerifyResponseWritable;
|
|
2531
|
+
type types_gen$1_PatchedCfgUserUpdateRequest = PatchedCfgUserUpdateRequest;
|
|
2532
|
+
type types_gen$1_ProviderEnum = ProviderEnum;
|
|
2533
|
+
declare const types_gen$1_ProviderEnum: typeof ProviderEnum;
|
|
2534
|
+
type types_gen$1_SetupRequest = SetupRequest;
|
|
2535
|
+
type types_gen$1_SetupResponse = SetupResponse;
|
|
2536
|
+
type types_gen$1_TokenRefresh = TokenRefresh;
|
|
2537
|
+
type types_gen$1_TokenRefreshRequest = TokenRefreshRequest;
|
|
2538
|
+
type types_gen$1_TokenRefreshWritable = TokenRefreshWritable;
|
|
2539
|
+
type types_gen$1_TotpVerifyUser = TotpVerifyUser;
|
|
2540
|
+
type types_gen$1_TotpVerifyUserWritable = TotpVerifyUserWritable;
|
|
2541
|
+
type types_gen$1_User = User;
|
|
2542
|
+
type types_gen$1_UserWritable = UserWritable;
|
|
2543
|
+
type types_gen$1_VerifyBackupRequest = VerifyBackupRequest;
|
|
2544
|
+
type types_gen$1_VerifyRequest = VerifyRequest;
|
|
2545
|
+
type types_gen$1_VerifyResponse = VerifyResponse;
|
|
2546
|
+
type types_gen$1_VerifyResponseWritable = VerifyResponseWritable;
|
|
2547
|
+
declare namespace types_gen$1 {
|
|
2548
|
+
export { type types_gen$1_AccountDeleteResponse as AccountDeleteResponse, type types_gen$1_BackupCodesRegenerateRequest as BackupCodesRegenerateRequest, type types_gen$1_BackupCodesRegenerateResponse as BackupCodesRegenerateResponse, type types_gen$1_BackupCodesStatus as BackupCodesStatus, type types_gen$1_CentrifugoToken as CentrifugoToken, type types_gen$1_CfgAccountsOauthConnectionsListData as CfgAccountsOauthConnectionsListData, type types_gen$1_CfgAccountsOauthConnectionsListResponse as CfgAccountsOauthConnectionsListResponse, type types_gen$1_CfgAccountsOauthConnectionsListResponses as CfgAccountsOauthConnectionsListResponses, type types_gen$1_CfgAccountsOauthDisconnectCreateData as CfgAccountsOauthDisconnectCreateData, type types_gen$1_CfgAccountsOauthDisconnectCreateError as CfgAccountsOauthDisconnectCreateError, type types_gen$1_CfgAccountsOauthDisconnectCreateErrors as CfgAccountsOauthDisconnectCreateErrors, type types_gen$1_CfgAccountsOauthDisconnectCreateResponse as CfgAccountsOauthDisconnectCreateResponse, type types_gen$1_CfgAccountsOauthDisconnectCreateResponses as CfgAccountsOauthDisconnectCreateResponses, type types_gen$1_CfgAccountsOauthGithubAuthorizeCreateData as CfgAccountsOauthGithubAuthorizeCreateData, type types_gen$1_CfgAccountsOauthGithubAuthorizeCreateError as CfgAccountsOauthGithubAuthorizeCreateError, type types_gen$1_CfgAccountsOauthGithubAuthorizeCreateErrors as CfgAccountsOauthGithubAuthorizeCreateErrors, type types_gen$1_CfgAccountsOauthGithubAuthorizeCreateResponse as CfgAccountsOauthGithubAuthorizeCreateResponse, type types_gen$1_CfgAccountsOauthGithubAuthorizeCreateResponses as CfgAccountsOauthGithubAuthorizeCreateResponses, type types_gen$1_CfgAccountsOauthGithubCallbackCreateData as CfgAccountsOauthGithubCallbackCreateData, type types_gen$1_CfgAccountsOauthGithubCallbackCreateError as CfgAccountsOauthGithubCallbackCreateError, type types_gen$1_CfgAccountsOauthGithubCallbackCreateErrors as CfgAccountsOauthGithubCallbackCreateErrors, type types_gen$1_CfgAccountsOauthGithubCallbackCreateResponse as CfgAccountsOauthGithubCallbackCreateResponse, type types_gen$1_CfgAccountsOauthGithubCallbackCreateResponses as CfgAccountsOauthGithubCallbackCreateResponses, type types_gen$1_CfgAccountsOauthProvidersRetrieveData as CfgAccountsOauthProvidersRetrieveData, type types_gen$1_CfgAccountsOauthProvidersRetrieveResponse as CfgAccountsOauthProvidersRetrieveResponse, type types_gen$1_CfgAccountsOauthProvidersRetrieveResponses as CfgAccountsOauthProvidersRetrieveResponses, type types_gen$1_CfgAccountsOtpRequestCreateData as CfgAccountsOtpRequestCreateData, type types_gen$1_CfgAccountsOtpRequestCreateError as CfgAccountsOtpRequestCreateError, type types_gen$1_CfgAccountsOtpRequestCreateErrors as CfgAccountsOtpRequestCreateErrors, type types_gen$1_CfgAccountsOtpRequestCreateResponse as CfgAccountsOtpRequestCreateResponse, type types_gen$1_CfgAccountsOtpRequestCreateResponses as CfgAccountsOtpRequestCreateResponses, type types_gen$1_CfgAccountsOtpVerifyCreateData as CfgAccountsOtpVerifyCreateData, type types_gen$1_CfgAccountsOtpVerifyCreateError as CfgAccountsOtpVerifyCreateError, type types_gen$1_CfgAccountsOtpVerifyCreateErrors as CfgAccountsOtpVerifyCreateErrors, type types_gen$1_CfgAccountsOtpVerifyCreateResponse as CfgAccountsOtpVerifyCreateResponse, type types_gen$1_CfgAccountsOtpVerifyCreateResponses as CfgAccountsOtpVerifyCreateResponses, type types_gen$1_CfgAccountsProfileAvatarCreateData as CfgAccountsProfileAvatarCreateData, type types_gen$1_CfgAccountsProfileAvatarCreateErrors as CfgAccountsProfileAvatarCreateErrors, type types_gen$1_CfgAccountsProfileAvatarCreateResponse as CfgAccountsProfileAvatarCreateResponse, type types_gen$1_CfgAccountsProfileAvatarCreateResponses as CfgAccountsProfileAvatarCreateResponses, type types_gen$1_CfgAccountsProfileDeleteCreateData as CfgAccountsProfileDeleteCreateData, type types_gen$1_CfgAccountsProfileDeleteCreateErrors as CfgAccountsProfileDeleteCreateErrors, type types_gen$1_CfgAccountsProfileDeleteCreateResponse as CfgAccountsProfileDeleteCreateResponse, type types_gen$1_CfgAccountsProfileDeleteCreateResponses as CfgAccountsProfileDeleteCreateResponses, type types_gen$1_CfgAccountsProfilePartialPartialUpdateData as CfgAccountsProfilePartialPartialUpdateData, type types_gen$1_CfgAccountsProfilePartialPartialUpdateErrors as CfgAccountsProfilePartialPartialUpdateErrors, type types_gen$1_CfgAccountsProfilePartialPartialUpdateResponse as CfgAccountsProfilePartialPartialUpdateResponse, type types_gen$1_CfgAccountsProfilePartialPartialUpdateResponses as CfgAccountsProfilePartialPartialUpdateResponses, type types_gen$1_CfgAccountsProfilePartialUpdateData as CfgAccountsProfilePartialUpdateData, type types_gen$1_CfgAccountsProfilePartialUpdateErrors as CfgAccountsProfilePartialUpdateErrors, type types_gen$1_CfgAccountsProfilePartialUpdateResponse as CfgAccountsProfilePartialUpdateResponse, type types_gen$1_CfgAccountsProfilePartialUpdateResponses as CfgAccountsProfilePartialUpdateResponses, type types_gen$1_CfgAccountsProfileRetrieveData as CfgAccountsProfileRetrieveData, type types_gen$1_CfgAccountsProfileRetrieveErrors as CfgAccountsProfileRetrieveErrors, type types_gen$1_CfgAccountsProfileRetrieveResponse as CfgAccountsProfileRetrieveResponse, type types_gen$1_CfgAccountsProfileRetrieveResponses as CfgAccountsProfileRetrieveResponses, type types_gen$1_CfgAccountsProfileUpdatePartialUpdateData as CfgAccountsProfileUpdatePartialUpdateData, type types_gen$1_CfgAccountsProfileUpdatePartialUpdateErrors as CfgAccountsProfileUpdatePartialUpdateErrors, type types_gen$1_CfgAccountsProfileUpdatePartialUpdateResponse as CfgAccountsProfileUpdatePartialUpdateResponse, type types_gen$1_CfgAccountsProfileUpdatePartialUpdateResponses as CfgAccountsProfileUpdatePartialUpdateResponses, type types_gen$1_CfgAccountsProfileUpdateUpdateData as CfgAccountsProfileUpdateUpdateData, type types_gen$1_CfgAccountsProfileUpdateUpdateErrors as CfgAccountsProfileUpdateUpdateErrors, type types_gen$1_CfgAccountsProfileUpdateUpdateResponse as CfgAccountsProfileUpdateUpdateResponse, type types_gen$1_CfgAccountsProfileUpdateUpdateResponses as CfgAccountsProfileUpdateUpdateResponses, type types_gen$1_CfgAccountsTokenRefreshCreateData as CfgAccountsTokenRefreshCreateData, type types_gen$1_CfgAccountsTokenRefreshCreateResponse as CfgAccountsTokenRefreshCreateResponse, type types_gen$1_CfgAccountsTokenRefreshCreateResponses as CfgAccountsTokenRefreshCreateResponses, type types_gen$1_CfgCentrifugoAuthTokenRetrieveData as CfgCentrifugoAuthTokenRetrieveData, type types_gen$1_CfgCentrifugoAuthTokenRetrieveErrors as CfgCentrifugoAuthTokenRetrieveErrors, type types_gen$1_CfgCentrifugoAuthTokenRetrieveResponse as CfgCentrifugoAuthTokenRetrieveResponse, type types_gen$1_CfgCentrifugoAuthTokenRetrieveResponses as CfgCentrifugoAuthTokenRetrieveResponses, type types_gen$1_CfgTotpBackupCodesRegenerateCreateData as CfgTotpBackupCodesRegenerateCreateData, type types_gen$1_CfgTotpBackupCodesRegenerateCreateErrors as CfgTotpBackupCodesRegenerateCreateErrors, type types_gen$1_CfgTotpBackupCodesRegenerateCreateResponse as CfgTotpBackupCodesRegenerateCreateResponse, type types_gen$1_CfgTotpBackupCodesRegenerateCreateResponses as CfgTotpBackupCodesRegenerateCreateResponses, type types_gen$1_CfgTotpBackupCodesRetrieveData as CfgTotpBackupCodesRetrieveData, type types_gen$1_CfgTotpBackupCodesRetrieveResponse as CfgTotpBackupCodesRetrieveResponse, type types_gen$1_CfgTotpBackupCodesRetrieveResponses as CfgTotpBackupCodesRetrieveResponses, type types_gen$1_CfgTotpDevicesDestroyData as CfgTotpDevicesDestroyData, type types_gen$1_CfgTotpDevicesDestroyResponse as CfgTotpDevicesDestroyResponse, type types_gen$1_CfgTotpDevicesDestroyResponses as CfgTotpDevicesDestroyResponses, type types_gen$1_CfgTotpDevicesRetrieveData as CfgTotpDevicesRetrieveData, type types_gen$1_CfgTotpDevicesRetrieveResponse as CfgTotpDevicesRetrieveResponse, type types_gen$1_CfgTotpDevicesRetrieveResponses as CfgTotpDevicesRetrieveResponses, type types_gen$1_CfgTotpDisableCreateData as CfgTotpDisableCreateData, type types_gen$1_CfgTotpDisableCreateErrors as CfgTotpDisableCreateErrors, type types_gen$1_CfgTotpDisableCreateResponses as CfgTotpDisableCreateResponses, type types_gen$1_CfgTotpSetupConfirmCreateData as CfgTotpSetupConfirmCreateData, type types_gen$1_CfgTotpSetupConfirmCreateErrors as CfgTotpSetupConfirmCreateErrors, type types_gen$1_CfgTotpSetupConfirmCreateResponse as CfgTotpSetupConfirmCreateResponse, type types_gen$1_CfgTotpSetupConfirmCreateResponses as CfgTotpSetupConfirmCreateResponses, type types_gen$1_CfgTotpSetupCreateData as CfgTotpSetupCreateData, type types_gen$1_CfgTotpSetupCreateErrors as CfgTotpSetupCreateErrors, type types_gen$1_CfgTotpSetupCreateResponse as CfgTotpSetupCreateResponse, type types_gen$1_CfgTotpSetupCreateResponses as CfgTotpSetupCreateResponses, type types_gen$1_CfgTotpVerifyBackupCreateData as CfgTotpVerifyBackupCreateData, type types_gen$1_CfgTotpVerifyBackupCreateErrors as CfgTotpVerifyBackupCreateErrors, type types_gen$1_CfgTotpVerifyBackupCreateResponse as CfgTotpVerifyBackupCreateResponse, type types_gen$1_CfgTotpVerifyBackupCreateResponses as CfgTotpVerifyBackupCreateResponses, type types_gen$1_CfgTotpVerifyCreateData as CfgTotpVerifyCreateData, type types_gen$1_CfgTotpVerifyCreateErrors as CfgTotpVerifyCreateErrors, type types_gen$1_CfgTotpVerifyCreateResponse as CfgTotpVerifyCreateResponse, type types_gen$1_CfgTotpVerifyCreateResponses as CfgTotpVerifyCreateResponses, type types_gen$1_CfgUserUpdateRequest as CfgUserUpdateRequest, type ClientOptions$1 as ClientOptions, type types_gen$1_ConfirmSetupRequest as ConfirmSetupRequest, type types_gen$1_ConfirmSetupResponse as ConfirmSetupResponse, type types_gen$1_ConnectionTokenResponse as ConnectionTokenResponse, type types_gen$1_DeviceList as DeviceList, type types_gen$1_DeviceListResponse as DeviceListResponse, type types_gen$1_DeviceListResponseWritable as DeviceListResponseWritable, types_gen$1_DeviceListStatusEnum as DeviceListStatusEnum, type types_gen$1_DisableRequest as DisableRequest, type types_gen$1_OAuthAuthorizeRequestRequest as OAuthAuthorizeRequestRequest, type types_gen$1_OAuthAuthorizeResponse as OAuthAuthorizeResponse, type types_gen$1_OAuthCallbackRequestRequest as OAuthCallbackRequestRequest, type types_gen$1_OAuthConnection as OAuthConnection, type types_gen$1_OAuthDisconnectRequestRequest as OAuthDisconnectRequestRequest, type types_gen$1_OAuthError as OAuthError, type types_gen$1_OAuthProvidersResponse as OAuthProvidersResponse, type types_gen$1_OAuthTokenResponse as OAuthTokenResponse, type types_gen$1_OtpErrorResponse as OtpErrorResponse, type types_gen$1_OtpRequestRequest as OtpRequestRequest, type types_gen$1_OtpRequestResponse as OtpRequestResponse, type types_gen$1_OtpVerifyRequest as OtpVerifyRequest, type types_gen$1_OtpVerifyResponse as OtpVerifyResponse, type types_gen$1_OtpVerifyResponseWritable as OtpVerifyResponseWritable, type types_gen$1_PatchedCfgUserUpdateRequest as PatchedCfgUserUpdateRequest, types_gen$1_ProviderEnum as ProviderEnum, type types_gen$1_SetupRequest as SetupRequest, type types_gen$1_SetupResponse as SetupResponse, type types_gen$1_TokenRefresh as TokenRefresh, type types_gen$1_TokenRefreshRequest as TokenRefreshRequest, type types_gen$1_TokenRefreshWritable as TokenRefreshWritable, type types_gen$1_TotpVerifyUser as TotpVerifyUser, type types_gen$1_TotpVerifyUserWritable as TotpVerifyUserWritable, type types_gen$1_User as User, type types_gen$1_UserWritable as UserWritable, type types_gen$1_VerifyBackupRequest as VerifyBackupRequest, type types_gen$1_VerifyRequest as VerifyRequest, type types_gen$1_VerifyResponse as VerifyResponse, type types_gen$1_VerifyResponseWritable as VerifyResponseWritable };
|
|
3050
2549
|
}
|
|
3051
2550
|
|
|
3052
|
-
|
|
3053
|
-
|
|
3054
|
-
|
|
2551
|
+
type types_gen_AccountDeleteResponse = AccountDeleteResponse;
|
|
2552
|
+
type types_gen_BackupCodesRegenerateRequest = BackupCodesRegenerateRequest;
|
|
2553
|
+
type types_gen_BackupCodesRegenerateResponse = BackupCodesRegenerateResponse;
|
|
2554
|
+
type types_gen_BackupCodesStatus = BackupCodesStatus;
|
|
2555
|
+
type types_gen_CentrifugoToken = CentrifugoToken;
|
|
2556
|
+
type types_gen_CfgAccountsOauthConnectionsListData = CfgAccountsOauthConnectionsListData;
|
|
2557
|
+
type types_gen_CfgAccountsOauthConnectionsListResponse = CfgAccountsOauthConnectionsListResponse;
|
|
2558
|
+
type types_gen_CfgAccountsOauthConnectionsListResponses = CfgAccountsOauthConnectionsListResponses;
|
|
2559
|
+
type types_gen_CfgAccountsOauthDisconnectCreateData = CfgAccountsOauthDisconnectCreateData;
|
|
2560
|
+
type types_gen_CfgAccountsOauthDisconnectCreateError = CfgAccountsOauthDisconnectCreateError;
|
|
2561
|
+
type types_gen_CfgAccountsOauthDisconnectCreateErrors = CfgAccountsOauthDisconnectCreateErrors;
|
|
2562
|
+
type types_gen_CfgAccountsOauthDisconnectCreateResponse = CfgAccountsOauthDisconnectCreateResponse;
|
|
2563
|
+
type types_gen_CfgAccountsOauthDisconnectCreateResponses = CfgAccountsOauthDisconnectCreateResponses;
|
|
2564
|
+
type types_gen_CfgAccountsOauthGithubAuthorizeCreateData = CfgAccountsOauthGithubAuthorizeCreateData;
|
|
2565
|
+
type types_gen_CfgAccountsOauthGithubAuthorizeCreateError = CfgAccountsOauthGithubAuthorizeCreateError;
|
|
2566
|
+
type types_gen_CfgAccountsOauthGithubAuthorizeCreateErrors = CfgAccountsOauthGithubAuthorizeCreateErrors;
|
|
2567
|
+
type types_gen_CfgAccountsOauthGithubAuthorizeCreateResponse = CfgAccountsOauthGithubAuthorizeCreateResponse;
|
|
2568
|
+
type types_gen_CfgAccountsOauthGithubAuthorizeCreateResponses = CfgAccountsOauthGithubAuthorizeCreateResponses;
|
|
2569
|
+
type types_gen_CfgAccountsOauthGithubCallbackCreateData = CfgAccountsOauthGithubCallbackCreateData;
|
|
2570
|
+
type types_gen_CfgAccountsOauthGithubCallbackCreateError = CfgAccountsOauthGithubCallbackCreateError;
|
|
2571
|
+
type types_gen_CfgAccountsOauthGithubCallbackCreateErrors = CfgAccountsOauthGithubCallbackCreateErrors;
|
|
2572
|
+
type types_gen_CfgAccountsOauthGithubCallbackCreateResponse = CfgAccountsOauthGithubCallbackCreateResponse;
|
|
2573
|
+
type types_gen_CfgAccountsOauthGithubCallbackCreateResponses = CfgAccountsOauthGithubCallbackCreateResponses;
|
|
2574
|
+
type types_gen_CfgAccountsOauthProvidersRetrieveData = CfgAccountsOauthProvidersRetrieveData;
|
|
2575
|
+
type types_gen_CfgAccountsOauthProvidersRetrieveResponse = CfgAccountsOauthProvidersRetrieveResponse;
|
|
2576
|
+
type types_gen_CfgAccountsOauthProvidersRetrieveResponses = CfgAccountsOauthProvidersRetrieveResponses;
|
|
2577
|
+
type types_gen_CfgAccountsOtpRequestCreateData = CfgAccountsOtpRequestCreateData;
|
|
2578
|
+
type types_gen_CfgAccountsOtpRequestCreateError = CfgAccountsOtpRequestCreateError;
|
|
2579
|
+
type types_gen_CfgAccountsOtpRequestCreateErrors = CfgAccountsOtpRequestCreateErrors;
|
|
2580
|
+
type types_gen_CfgAccountsOtpRequestCreateResponse = CfgAccountsOtpRequestCreateResponse;
|
|
2581
|
+
type types_gen_CfgAccountsOtpRequestCreateResponses = CfgAccountsOtpRequestCreateResponses;
|
|
2582
|
+
type types_gen_CfgAccountsOtpVerifyCreateData = CfgAccountsOtpVerifyCreateData;
|
|
2583
|
+
type types_gen_CfgAccountsOtpVerifyCreateError = CfgAccountsOtpVerifyCreateError;
|
|
2584
|
+
type types_gen_CfgAccountsOtpVerifyCreateErrors = CfgAccountsOtpVerifyCreateErrors;
|
|
2585
|
+
type types_gen_CfgAccountsOtpVerifyCreateResponse = CfgAccountsOtpVerifyCreateResponse;
|
|
2586
|
+
type types_gen_CfgAccountsOtpVerifyCreateResponses = CfgAccountsOtpVerifyCreateResponses;
|
|
2587
|
+
type types_gen_CfgAccountsProfileAvatarCreateData = CfgAccountsProfileAvatarCreateData;
|
|
2588
|
+
type types_gen_CfgAccountsProfileAvatarCreateErrors = CfgAccountsProfileAvatarCreateErrors;
|
|
2589
|
+
type types_gen_CfgAccountsProfileAvatarCreateResponse = CfgAccountsProfileAvatarCreateResponse;
|
|
2590
|
+
type types_gen_CfgAccountsProfileAvatarCreateResponses = CfgAccountsProfileAvatarCreateResponses;
|
|
2591
|
+
type types_gen_CfgAccountsProfileDeleteCreateData = CfgAccountsProfileDeleteCreateData;
|
|
2592
|
+
type types_gen_CfgAccountsProfileDeleteCreateErrors = CfgAccountsProfileDeleteCreateErrors;
|
|
2593
|
+
type types_gen_CfgAccountsProfileDeleteCreateResponse = CfgAccountsProfileDeleteCreateResponse;
|
|
2594
|
+
type types_gen_CfgAccountsProfileDeleteCreateResponses = CfgAccountsProfileDeleteCreateResponses;
|
|
2595
|
+
type types_gen_CfgAccountsProfilePartialPartialUpdateData = CfgAccountsProfilePartialPartialUpdateData;
|
|
2596
|
+
type types_gen_CfgAccountsProfilePartialPartialUpdateErrors = CfgAccountsProfilePartialPartialUpdateErrors;
|
|
2597
|
+
type types_gen_CfgAccountsProfilePartialPartialUpdateResponse = CfgAccountsProfilePartialPartialUpdateResponse;
|
|
2598
|
+
type types_gen_CfgAccountsProfilePartialPartialUpdateResponses = CfgAccountsProfilePartialPartialUpdateResponses;
|
|
2599
|
+
type types_gen_CfgAccountsProfilePartialUpdateData = CfgAccountsProfilePartialUpdateData;
|
|
2600
|
+
type types_gen_CfgAccountsProfilePartialUpdateErrors = CfgAccountsProfilePartialUpdateErrors;
|
|
2601
|
+
type types_gen_CfgAccountsProfilePartialUpdateResponse = CfgAccountsProfilePartialUpdateResponse;
|
|
2602
|
+
type types_gen_CfgAccountsProfilePartialUpdateResponses = CfgAccountsProfilePartialUpdateResponses;
|
|
2603
|
+
type types_gen_CfgAccountsProfileRetrieveData = CfgAccountsProfileRetrieveData;
|
|
2604
|
+
type types_gen_CfgAccountsProfileRetrieveErrors = CfgAccountsProfileRetrieveErrors;
|
|
2605
|
+
type types_gen_CfgAccountsProfileRetrieveResponse = CfgAccountsProfileRetrieveResponse;
|
|
2606
|
+
type types_gen_CfgAccountsProfileRetrieveResponses = CfgAccountsProfileRetrieveResponses;
|
|
2607
|
+
type types_gen_CfgAccountsProfileUpdatePartialUpdateData = CfgAccountsProfileUpdatePartialUpdateData;
|
|
2608
|
+
type types_gen_CfgAccountsProfileUpdatePartialUpdateErrors = CfgAccountsProfileUpdatePartialUpdateErrors;
|
|
2609
|
+
type types_gen_CfgAccountsProfileUpdatePartialUpdateResponse = CfgAccountsProfileUpdatePartialUpdateResponse;
|
|
2610
|
+
type types_gen_CfgAccountsProfileUpdatePartialUpdateResponses = CfgAccountsProfileUpdatePartialUpdateResponses;
|
|
2611
|
+
type types_gen_CfgAccountsProfileUpdateUpdateData = CfgAccountsProfileUpdateUpdateData;
|
|
2612
|
+
type types_gen_CfgAccountsProfileUpdateUpdateErrors = CfgAccountsProfileUpdateUpdateErrors;
|
|
2613
|
+
type types_gen_CfgAccountsProfileUpdateUpdateResponse = CfgAccountsProfileUpdateUpdateResponse;
|
|
2614
|
+
type types_gen_CfgAccountsProfileUpdateUpdateResponses = CfgAccountsProfileUpdateUpdateResponses;
|
|
2615
|
+
type types_gen_CfgAccountsTokenRefreshCreateData = CfgAccountsTokenRefreshCreateData;
|
|
2616
|
+
type types_gen_CfgAccountsTokenRefreshCreateResponse = CfgAccountsTokenRefreshCreateResponse;
|
|
2617
|
+
type types_gen_CfgAccountsTokenRefreshCreateResponses = CfgAccountsTokenRefreshCreateResponses;
|
|
2618
|
+
type types_gen_CfgCentrifugoAuthTokenRetrieveData = CfgCentrifugoAuthTokenRetrieveData;
|
|
2619
|
+
type types_gen_CfgCentrifugoAuthTokenRetrieveErrors = CfgCentrifugoAuthTokenRetrieveErrors;
|
|
2620
|
+
type types_gen_CfgCentrifugoAuthTokenRetrieveResponse = CfgCentrifugoAuthTokenRetrieveResponse;
|
|
2621
|
+
type types_gen_CfgCentrifugoAuthTokenRetrieveResponses = CfgCentrifugoAuthTokenRetrieveResponses;
|
|
2622
|
+
type types_gen_CfgTotpBackupCodesRegenerateCreateData = CfgTotpBackupCodesRegenerateCreateData;
|
|
2623
|
+
type types_gen_CfgTotpBackupCodesRegenerateCreateErrors = CfgTotpBackupCodesRegenerateCreateErrors;
|
|
2624
|
+
type types_gen_CfgTotpBackupCodesRegenerateCreateResponse = CfgTotpBackupCodesRegenerateCreateResponse;
|
|
2625
|
+
type types_gen_CfgTotpBackupCodesRegenerateCreateResponses = CfgTotpBackupCodesRegenerateCreateResponses;
|
|
2626
|
+
type types_gen_CfgTotpBackupCodesRetrieveData = CfgTotpBackupCodesRetrieveData;
|
|
2627
|
+
type types_gen_CfgTotpBackupCodesRetrieveResponse = CfgTotpBackupCodesRetrieveResponse;
|
|
2628
|
+
type types_gen_CfgTotpBackupCodesRetrieveResponses = CfgTotpBackupCodesRetrieveResponses;
|
|
2629
|
+
type types_gen_CfgTotpDevicesDestroyData = CfgTotpDevicesDestroyData;
|
|
2630
|
+
type types_gen_CfgTotpDevicesDestroyResponse = CfgTotpDevicesDestroyResponse;
|
|
2631
|
+
type types_gen_CfgTotpDevicesDestroyResponses = CfgTotpDevicesDestroyResponses;
|
|
2632
|
+
type types_gen_CfgTotpDevicesRetrieveData = CfgTotpDevicesRetrieveData;
|
|
2633
|
+
type types_gen_CfgTotpDevicesRetrieveResponse = CfgTotpDevicesRetrieveResponse;
|
|
2634
|
+
type types_gen_CfgTotpDevicesRetrieveResponses = CfgTotpDevicesRetrieveResponses;
|
|
2635
|
+
type types_gen_CfgTotpDisableCreateData = CfgTotpDisableCreateData;
|
|
2636
|
+
type types_gen_CfgTotpDisableCreateErrors = CfgTotpDisableCreateErrors;
|
|
2637
|
+
type types_gen_CfgTotpDisableCreateResponses = CfgTotpDisableCreateResponses;
|
|
2638
|
+
type types_gen_CfgTotpSetupConfirmCreateData = CfgTotpSetupConfirmCreateData;
|
|
2639
|
+
type types_gen_CfgTotpSetupConfirmCreateErrors = CfgTotpSetupConfirmCreateErrors;
|
|
2640
|
+
type types_gen_CfgTotpSetupConfirmCreateResponse = CfgTotpSetupConfirmCreateResponse;
|
|
2641
|
+
type types_gen_CfgTotpSetupConfirmCreateResponses = CfgTotpSetupConfirmCreateResponses;
|
|
2642
|
+
type types_gen_CfgTotpSetupCreateData = CfgTotpSetupCreateData;
|
|
2643
|
+
type types_gen_CfgTotpSetupCreateErrors = CfgTotpSetupCreateErrors;
|
|
2644
|
+
type types_gen_CfgTotpSetupCreateResponse = CfgTotpSetupCreateResponse;
|
|
2645
|
+
type types_gen_CfgTotpSetupCreateResponses = CfgTotpSetupCreateResponses;
|
|
2646
|
+
type types_gen_CfgTotpVerifyBackupCreateData = CfgTotpVerifyBackupCreateData;
|
|
2647
|
+
type types_gen_CfgTotpVerifyBackupCreateErrors = CfgTotpVerifyBackupCreateErrors;
|
|
2648
|
+
type types_gen_CfgTotpVerifyBackupCreateResponse = CfgTotpVerifyBackupCreateResponse;
|
|
2649
|
+
type types_gen_CfgTotpVerifyBackupCreateResponses = CfgTotpVerifyBackupCreateResponses;
|
|
2650
|
+
type types_gen_CfgTotpVerifyCreateData = CfgTotpVerifyCreateData;
|
|
2651
|
+
type types_gen_CfgTotpVerifyCreateErrors = CfgTotpVerifyCreateErrors;
|
|
2652
|
+
type types_gen_CfgTotpVerifyCreateResponse = CfgTotpVerifyCreateResponse;
|
|
2653
|
+
type types_gen_CfgTotpVerifyCreateResponses = CfgTotpVerifyCreateResponses;
|
|
2654
|
+
type types_gen_CfgUserUpdateRequest = CfgUserUpdateRequest;
|
|
2655
|
+
type types_gen_ConfirmSetupRequest = ConfirmSetupRequest;
|
|
2656
|
+
type types_gen_ConfirmSetupResponse = ConfirmSetupResponse;
|
|
2657
|
+
type types_gen_ConnectionTokenResponse = ConnectionTokenResponse;
|
|
2658
|
+
type types_gen_DeviceList = DeviceList;
|
|
2659
|
+
type types_gen_DeviceListResponse = DeviceListResponse;
|
|
2660
|
+
type types_gen_DeviceListResponseWritable = DeviceListResponseWritable;
|
|
2661
|
+
type types_gen_DeviceListStatusEnum = DeviceListStatusEnum;
|
|
2662
|
+
declare const types_gen_DeviceListStatusEnum: typeof DeviceListStatusEnum;
|
|
2663
|
+
type types_gen_DisableRequest = DisableRequest;
|
|
2664
|
+
type types_gen_OAuthAuthorizeRequestRequest = OAuthAuthorizeRequestRequest;
|
|
2665
|
+
type types_gen_OAuthAuthorizeResponse = OAuthAuthorizeResponse;
|
|
2666
|
+
type types_gen_OAuthCallbackRequestRequest = OAuthCallbackRequestRequest;
|
|
2667
|
+
type types_gen_OAuthConnection = OAuthConnection;
|
|
2668
|
+
type types_gen_OAuthDisconnectRequestRequest = OAuthDisconnectRequestRequest;
|
|
2669
|
+
type types_gen_OAuthError = OAuthError;
|
|
2670
|
+
type types_gen_OAuthProvidersResponse = OAuthProvidersResponse;
|
|
2671
|
+
type types_gen_OAuthTokenResponse = OAuthTokenResponse;
|
|
2672
|
+
type types_gen_OtpErrorResponse = OtpErrorResponse;
|
|
2673
|
+
type types_gen_OtpRequestRequest = OtpRequestRequest;
|
|
2674
|
+
type types_gen_OtpRequestResponse = OtpRequestResponse;
|
|
2675
|
+
type types_gen_OtpVerifyRequest = OtpVerifyRequest;
|
|
2676
|
+
type types_gen_OtpVerifyResponse = OtpVerifyResponse;
|
|
2677
|
+
type types_gen_OtpVerifyResponseWritable = OtpVerifyResponseWritable;
|
|
2678
|
+
type types_gen_PatchedCfgUserUpdateRequest = PatchedCfgUserUpdateRequest;
|
|
2679
|
+
type types_gen_ProviderEnum = ProviderEnum;
|
|
2680
|
+
declare const types_gen_ProviderEnum: typeof ProviderEnum;
|
|
2681
|
+
type types_gen_SetupRequest = SetupRequest;
|
|
2682
|
+
type types_gen_SetupResponse = SetupResponse;
|
|
2683
|
+
type types_gen_TokenRefresh = TokenRefresh;
|
|
2684
|
+
type types_gen_TokenRefreshRequest = TokenRefreshRequest;
|
|
2685
|
+
type types_gen_TokenRefreshWritable = TokenRefreshWritable;
|
|
2686
|
+
type types_gen_TotpVerifyUser = TotpVerifyUser;
|
|
2687
|
+
type types_gen_TotpVerifyUserWritable = TotpVerifyUserWritable;
|
|
2688
|
+
type types_gen_User = User;
|
|
2689
|
+
type types_gen_UserWritable = UserWritable;
|
|
2690
|
+
type types_gen_VerifyBackupRequest = VerifyBackupRequest;
|
|
2691
|
+
type types_gen_VerifyRequest = VerifyRequest;
|
|
2692
|
+
type types_gen_VerifyResponse = VerifyResponse;
|
|
2693
|
+
type types_gen_VerifyResponseWritable = VerifyResponseWritable;
|
|
2694
|
+
declare namespace types_gen {
|
|
2695
|
+
export { type types_gen_AccountDeleteResponse as AccountDeleteResponse, type types_gen_BackupCodesRegenerateRequest as BackupCodesRegenerateRequest, type types_gen_BackupCodesRegenerateResponse as BackupCodesRegenerateResponse, type types_gen_BackupCodesStatus as BackupCodesStatus, type types_gen_CentrifugoToken as CentrifugoToken, type types_gen_CfgAccountsOauthConnectionsListData as CfgAccountsOauthConnectionsListData, type types_gen_CfgAccountsOauthConnectionsListResponse as CfgAccountsOauthConnectionsListResponse, type types_gen_CfgAccountsOauthConnectionsListResponses as CfgAccountsOauthConnectionsListResponses, type types_gen_CfgAccountsOauthDisconnectCreateData as CfgAccountsOauthDisconnectCreateData, type types_gen_CfgAccountsOauthDisconnectCreateError as CfgAccountsOauthDisconnectCreateError, type types_gen_CfgAccountsOauthDisconnectCreateErrors as CfgAccountsOauthDisconnectCreateErrors, type types_gen_CfgAccountsOauthDisconnectCreateResponse as CfgAccountsOauthDisconnectCreateResponse, type types_gen_CfgAccountsOauthDisconnectCreateResponses as CfgAccountsOauthDisconnectCreateResponses, type types_gen_CfgAccountsOauthGithubAuthorizeCreateData as CfgAccountsOauthGithubAuthorizeCreateData, type types_gen_CfgAccountsOauthGithubAuthorizeCreateError as CfgAccountsOauthGithubAuthorizeCreateError, type types_gen_CfgAccountsOauthGithubAuthorizeCreateErrors as CfgAccountsOauthGithubAuthorizeCreateErrors, type types_gen_CfgAccountsOauthGithubAuthorizeCreateResponse as CfgAccountsOauthGithubAuthorizeCreateResponse, type types_gen_CfgAccountsOauthGithubAuthorizeCreateResponses as CfgAccountsOauthGithubAuthorizeCreateResponses, type types_gen_CfgAccountsOauthGithubCallbackCreateData as CfgAccountsOauthGithubCallbackCreateData, type types_gen_CfgAccountsOauthGithubCallbackCreateError as CfgAccountsOauthGithubCallbackCreateError, type types_gen_CfgAccountsOauthGithubCallbackCreateErrors as CfgAccountsOauthGithubCallbackCreateErrors, type types_gen_CfgAccountsOauthGithubCallbackCreateResponse as CfgAccountsOauthGithubCallbackCreateResponse, type types_gen_CfgAccountsOauthGithubCallbackCreateResponses as CfgAccountsOauthGithubCallbackCreateResponses, type types_gen_CfgAccountsOauthProvidersRetrieveData as CfgAccountsOauthProvidersRetrieveData, type types_gen_CfgAccountsOauthProvidersRetrieveResponse as CfgAccountsOauthProvidersRetrieveResponse, type types_gen_CfgAccountsOauthProvidersRetrieveResponses as CfgAccountsOauthProvidersRetrieveResponses, type types_gen_CfgAccountsOtpRequestCreateData as CfgAccountsOtpRequestCreateData, type types_gen_CfgAccountsOtpRequestCreateError as CfgAccountsOtpRequestCreateError, type types_gen_CfgAccountsOtpRequestCreateErrors as CfgAccountsOtpRequestCreateErrors, type types_gen_CfgAccountsOtpRequestCreateResponse as CfgAccountsOtpRequestCreateResponse, type types_gen_CfgAccountsOtpRequestCreateResponses as CfgAccountsOtpRequestCreateResponses, type types_gen_CfgAccountsOtpVerifyCreateData as CfgAccountsOtpVerifyCreateData, type types_gen_CfgAccountsOtpVerifyCreateError as CfgAccountsOtpVerifyCreateError, type types_gen_CfgAccountsOtpVerifyCreateErrors as CfgAccountsOtpVerifyCreateErrors, type types_gen_CfgAccountsOtpVerifyCreateResponse as CfgAccountsOtpVerifyCreateResponse, type types_gen_CfgAccountsOtpVerifyCreateResponses as CfgAccountsOtpVerifyCreateResponses, type types_gen_CfgAccountsProfileAvatarCreateData as CfgAccountsProfileAvatarCreateData, type types_gen_CfgAccountsProfileAvatarCreateErrors as CfgAccountsProfileAvatarCreateErrors, type types_gen_CfgAccountsProfileAvatarCreateResponse as CfgAccountsProfileAvatarCreateResponse, type types_gen_CfgAccountsProfileAvatarCreateResponses as CfgAccountsProfileAvatarCreateResponses, type types_gen_CfgAccountsProfileDeleteCreateData as CfgAccountsProfileDeleteCreateData, type types_gen_CfgAccountsProfileDeleteCreateErrors as CfgAccountsProfileDeleteCreateErrors, type types_gen_CfgAccountsProfileDeleteCreateResponse as CfgAccountsProfileDeleteCreateResponse, type types_gen_CfgAccountsProfileDeleteCreateResponses as CfgAccountsProfileDeleteCreateResponses, type types_gen_CfgAccountsProfilePartialPartialUpdateData as CfgAccountsProfilePartialPartialUpdateData, type types_gen_CfgAccountsProfilePartialPartialUpdateErrors as CfgAccountsProfilePartialPartialUpdateErrors, type types_gen_CfgAccountsProfilePartialPartialUpdateResponse as CfgAccountsProfilePartialPartialUpdateResponse, type types_gen_CfgAccountsProfilePartialPartialUpdateResponses as CfgAccountsProfilePartialPartialUpdateResponses, type types_gen_CfgAccountsProfilePartialUpdateData as CfgAccountsProfilePartialUpdateData, type types_gen_CfgAccountsProfilePartialUpdateErrors as CfgAccountsProfilePartialUpdateErrors, type types_gen_CfgAccountsProfilePartialUpdateResponse as CfgAccountsProfilePartialUpdateResponse, type types_gen_CfgAccountsProfilePartialUpdateResponses as CfgAccountsProfilePartialUpdateResponses, type types_gen_CfgAccountsProfileRetrieveData as CfgAccountsProfileRetrieveData, type types_gen_CfgAccountsProfileRetrieveErrors as CfgAccountsProfileRetrieveErrors, type types_gen_CfgAccountsProfileRetrieveResponse as CfgAccountsProfileRetrieveResponse, type types_gen_CfgAccountsProfileRetrieveResponses as CfgAccountsProfileRetrieveResponses, type types_gen_CfgAccountsProfileUpdatePartialUpdateData as CfgAccountsProfileUpdatePartialUpdateData, type types_gen_CfgAccountsProfileUpdatePartialUpdateErrors as CfgAccountsProfileUpdatePartialUpdateErrors, type types_gen_CfgAccountsProfileUpdatePartialUpdateResponse as CfgAccountsProfileUpdatePartialUpdateResponse, type types_gen_CfgAccountsProfileUpdatePartialUpdateResponses as CfgAccountsProfileUpdatePartialUpdateResponses, type types_gen_CfgAccountsProfileUpdateUpdateData as CfgAccountsProfileUpdateUpdateData, type types_gen_CfgAccountsProfileUpdateUpdateErrors as CfgAccountsProfileUpdateUpdateErrors, type types_gen_CfgAccountsProfileUpdateUpdateResponse as CfgAccountsProfileUpdateUpdateResponse, type types_gen_CfgAccountsProfileUpdateUpdateResponses as CfgAccountsProfileUpdateUpdateResponses, type types_gen_CfgAccountsTokenRefreshCreateData as CfgAccountsTokenRefreshCreateData, type types_gen_CfgAccountsTokenRefreshCreateResponse as CfgAccountsTokenRefreshCreateResponse, type types_gen_CfgAccountsTokenRefreshCreateResponses as CfgAccountsTokenRefreshCreateResponses, type types_gen_CfgCentrifugoAuthTokenRetrieveData as CfgCentrifugoAuthTokenRetrieveData, type types_gen_CfgCentrifugoAuthTokenRetrieveErrors as CfgCentrifugoAuthTokenRetrieveErrors, type types_gen_CfgCentrifugoAuthTokenRetrieveResponse as CfgCentrifugoAuthTokenRetrieveResponse, type types_gen_CfgCentrifugoAuthTokenRetrieveResponses as CfgCentrifugoAuthTokenRetrieveResponses, type types_gen_CfgTotpBackupCodesRegenerateCreateData as CfgTotpBackupCodesRegenerateCreateData, type types_gen_CfgTotpBackupCodesRegenerateCreateErrors as CfgTotpBackupCodesRegenerateCreateErrors, type types_gen_CfgTotpBackupCodesRegenerateCreateResponse as CfgTotpBackupCodesRegenerateCreateResponse, type types_gen_CfgTotpBackupCodesRegenerateCreateResponses as CfgTotpBackupCodesRegenerateCreateResponses, type types_gen_CfgTotpBackupCodesRetrieveData as CfgTotpBackupCodesRetrieveData, type types_gen_CfgTotpBackupCodesRetrieveResponse as CfgTotpBackupCodesRetrieveResponse, type types_gen_CfgTotpBackupCodesRetrieveResponses as CfgTotpBackupCodesRetrieveResponses, type types_gen_CfgTotpDevicesDestroyData as CfgTotpDevicesDestroyData, type types_gen_CfgTotpDevicesDestroyResponse as CfgTotpDevicesDestroyResponse, type types_gen_CfgTotpDevicesDestroyResponses as CfgTotpDevicesDestroyResponses, type types_gen_CfgTotpDevicesRetrieveData as CfgTotpDevicesRetrieveData, type types_gen_CfgTotpDevicesRetrieveResponse as CfgTotpDevicesRetrieveResponse, type types_gen_CfgTotpDevicesRetrieveResponses as CfgTotpDevicesRetrieveResponses, type types_gen_CfgTotpDisableCreateData as CfgTotpDisableCreateData, type types_gen_CfgTotpDisableCreateErrors as CfgTotpDisableCreateErrors, type types_gen_CfgTotpDisableCreateResponses as CfgTotpDisableCreateResponses, type types_gen_CfgTotpSetupConfirmCreateData as CfgTotpSetupConfirmCreateData, type types_gen_CfgTotpSetupConfirmCreateErrors as CfgTotpSetupConfirmCreateErrors, type types_gen_CfgTotpSetupConfirmCreateResponse as CfgTotpSetupConfirmCreateResponse, type types_gen_CfgTotpSetupConfirmCreateResponses as CfgTotpSetupConfirmCreateResponses, type types_gen_CfgTotpSetupCreateData as CfgTotpSetupCreateData, type types_gen_CfgTotpSetupCreateErrors as CfgTotpSetupCreateErrors, type types_gen_CfgTotpSetupCreateResponse as CfgTotpSetupCreateResponse, type types_gen_CfgTotpSetupCreateResponses as CfgTotpSetupCreateResponses, type types_gen_CfgTotpVerifyBackupCreateData as CfgTotpVerifyBackupCreateData, type types_gen_CfgTotpVerifyBackupCreateErrors as CfgTotpVerifyBackupCreateErrors, type types_gen_CfgTotpVerifyBackupCreateResponse as CfgTotpVerifyBackupCreateResponse, type types_gen_CfgTotpVerifyBackupCreateResponses as CfgTotpVerifyBackupCreateResponses, type types_gen_CfgTotpVerifyCreateData as CfgTotpVerifyCreateData, type types_gen_CfgTotpVerifyCreateErrors as CfgTotpVerifyCreateErrors, type types_gen_CfgTotpVerifyCreateResponse as CfgTotpVerifyCreateResponse, type types_gen_CfgTotpVerifyCreateResponses as CfgTotpVerifyCreateResponses, type types_gen_CfgUserUpdateRequest as CfgUserUpdateRequest, type ClientOptions$1 as ClientOptions, type types_gen_ConfirmSetupRequest as ConfirmSetupRequest, type types_gen_ConfirmSetupResponse as ConfirmSetupResponse, type types_gen_ConnectionTokenResponse as ConnectionTokenResponse, type types_gen_DeviceList as DeviceList, type types_gen_DeviceListResponse as DeviceListResponse, type types_gen_DeviceListResponseWritable as DeviceListResponseWritable, types_gen_DeviceListStatusEnum as DeviceListStatusEnum, type types_gen_DisableRequest as DisableRequest, type types_gen_OAuthAuthorizeRequestRequest as OAuthAuthorizeRequestRequest, type types_gen_OAuthAuthorizeResponse as OAuthAuthorizeResponse, type types_gen_OAuthCallbackRequestRequest as OAuthCallbackRequestRequest, type types_gen_OAuthConnection as OAuthConnection, type types_gen_OAuthDisconnectRequestRequest as OAuthDisconnectRequestRequest, type types_gen_OAuthError as OAuthError, type types_gen_OAuthProvidersResponse as OAuthProvidersResponse, type types_gen_OAuthTokenResponse as OAuthTokenResponse, type types_gen_OtpErrorResponse as OtpErrorResponse, type types_gen_OtpRequestRequest as OtpRequestRequest, type types_gen_OtpRequestResponse as OtpRequestResponse, type types_gen_OtpVerifyRequest as OtpVerifyRequest, type types_gen_OtpVerifyResponse as OtpVerifyResponse, type types_gen_OtpVerifyResponseWritable as OtpVerifyResponseWritable, type types_gen_PatchedCfgUserUpdateRequest as PatchedCfgUserUpdateRequest, types_gen_ProviderEnum as ProviderEnum, type types_gen_SetupRequest as SetupRequest, type types_gen_SetupResponse as SetupResponse, type types_gen_TokenRefresh as TokenRefresh, type types_gen_TokenRefreshRequest as TokenRefreshRequest, type types_gen_TokenRefreshWritable as TokenRefreshWritable, type types_gen_TotpVerifyUser as TotpVerifyUser, type types_gen_TotpVerifyUserWritable as TotpVerifyUserWritable, type types_gen_User as User, type types_gen_UserWritable as UserWritable, type types_gen_VerifyBackupRequest as VerifyBackupRequest, type types_gen_VerifyRequest as VerifyRequest, type types_gen_VerifyResponse as VerifyResponse, type types_gen_VerifyResponseWritable as VerifyResponseWritable };
|
|
2696
|
+
}
|
|
3055
2697
|
|
|
3056
|
-
export { APIError, APILogger, Accounts, types_gen$2 as AccountsTypes, Auth
|
|
2698
|
+
export { APIError, APILogger, Accounts, types_gen$2 as AccountsTypes, Auth, BackupCodes, Centrifugo, CentrifugoAuth, types_gen as CentrifugoTypes, Cfg, API$2 as CfgAccountsAPI, CfgAccountsApi, API$1 as CfgCentrifugoAPI, CfgCentrifugoApi, API as CfgTotpAPI, CfgTotpApi, CookieStorageAdapter, type ErrorLog, LocalStorageAdapter, type LoggerConfig, MemoryStorageAdapter, NetworkError, OAuth, type RequestLog, type ResponseLog, type StorageAdapter, Totp, TotpManagement, TotpSetup, types_gen$1 as TotpTypes, TotpVerification, type User, UserProfile, type ValidationErrorDetail, type ValidationErrorEvent, CfgAccountsApi as api, auth, defaultLogger, dispatchValidationError, formatZodError, onValidationError };
|