@djangocfg/api 2.1.356 → 2.1.357
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/README.md +53 -632
- package/dist/auth-server.cjs +717 -200
- package/dist/auth-server.cjs.map +1 -1
- package/dist/auth-server.mjs +717 -200
- package/dist/auth-server.mjs.map +1 -1
- package/dist/auth.cjs +843 -783
- package/dist/auth.cjs.map +1 -1
- package/dist/auth.d.cts +58 -37
- package/dist/auth.d.ts +58 -37
- package/dist/auth.mjs +846 -784
- package/dist/auth.mjs.map +1 -1
- package/dist/clients.cjs +1427 -0
- package/dist/clients.cjs.map +1 -1
- package/dist/clients.d.cts +1686 -0
- package/dist/clients.d.ts +1686 -0
- package/dist/clients.mjs +1427 -0
- package/dist/clients.mjs.map +1 -1
- package/dist/hooks.cjs +1277 -1924
- package/dist/hooks.cjs.map +1 -1
- package/dist/hooks.d.cts +18 -1206
- package/dist/hooks.d.ts +18 -1206
- package/dist/hooks.mjs +1253 -1900
- package/dist/hooks.mjs.map +1 -1
- package/dist/index.cjs +545 -1232
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1389 -1455
- package/dist/index.d.ts +1389 -1455
- package/dist/index.mjs +545 -1232
- package/dist/index.mjs.map +1 -1
- package/package.json +7 -2
- package/src/_api/generated/_cfg_accounts/api.ts +11 -3
- package/src/_api/generated/_cfg_accounts/hooks/index.ts +3 -0
- package/src/_api/generated/_cfg_accounts/hooks/useCfgAccountsApiKeyRegenerateCreate.ts +64 -0
- package/src/_api/generated/_cfg_accounts/hooks/useCfgAccountsApiKeyRetrieve.ts +65 -0
- package/src/_api/generated/_cfg_accounts/hooks/useCfgAccountsApiKeyTestCreate.ts +64 -0
- package/src/_api/generated/_cfg_accounts/hooks/useCfgAccountsOauthConnectionsList.ts +43 -3
- package/src/_api/generated/_cfg_accounts/hooks/useCfgAccountsOauthDisconnectCreate.ts +43 -3
- package/src/_api/generated/_cfg_accounts/hooks/useCfgAccountsOauthGithubAuthorizeCreate.ts +43 -3
- package/src/_api/generated/_cfg_accounts/hooks/useCfgAccountsOauthGithubCallbackCreate.ts +43 -3
- package/src/_api/generated/_cfg_accounts/hooks/useCfgAccountsOauthProvidersRetrieve.ts +43 -3
- package/src/_api/generated/_cfg_accounts/hooks/useCfgAccountsOtpRequestCreate.ts +43 -3
- package/src/_api/generated/_cfg_accounts/hooks/useCfgAccountsOtpVerifyCreate.ts +43 -3
- package/src/_api/generated/_cfg_accounts/hooks/useCfgAccountsProfileAvatarCreate.ts +43 -3
- package/src/_api/generated/_cfg_accounts/hooks/useCfgAccountsProfileDeleteCreate.ts +43 -3
- package/src/_api/generated/_cfg_accounts/hooks/useCfgAccountsProfilePartialPartialUpdate.ts +43 -3
- package/src/_api/generated/_cfg_accounts/hooks/useCfgAccountsProfilePartialUpdate.ts +43 -3
- package/src/_api/generated/_cfg_accounts/hooks/useCfgAccountsProfileRetrieve.ts +43 -3
- package/src/_api/generated/_cfg_accounts/hooks/useCfgAccountsProfileUpdatePartialUpdate.ts +43 -3
- package/src/_api/generated/_cfg_accounts/hooks/useCfgAccountsProfileUpdateUpdate.ts +43 -3
- package/src/_api/generated/_cfg_accounts/hooks/useCfgAccountsTokenRefreshCreate.ts +43 -3
- package/src/_api/generated/_cfg_accounts/index.ts +1 -1
- package/src/_api/generated/_cfg_accounts/schemas/APIKey.ts +13 -0
- package/src/_api/generated/_cfg_accounts/schemas/APIKeyRegenerate.ts +12 -0
- package/src/_api/generated/_cfg_accounts/schemas/APIKeyRequest.ts +13 -0
- package/src/_api/generated/{_cfg_totp/schemas/DeviceListStatusEnum.ts → _cfg_accounts/schemas/APIKeyTestRequest.ts} +4 -2
- package/src/_api/generated/_cfg_accounts/schemas/APIKeyTestResult.ts +12 -0
- package/src/_api/generated/_cfg_accounts/schemas/AccountDeleteResponse.ts +1 -1
- package/src/_api/generated/_cfg_accounts/schemas/CentrifugoToken.ts +2 -2
- package/src/_api/generated/_cfg_accounts/schemas/CfgUserUpdateRequest.ts +3 -2
- package/src/_api/generated/_cfg_accounts/schemas/OAuthCallbackRequestRequest.ts +1 -1
- package/src/_api/generated/_cfg_accounts/schemas/OAuthConnection.ts +6 -6
- package/src/_api/generated/_cfg_accounts/schemas/OAuthDisconnectRequestRequest.ts +2 -2
- package/src/_api/generated/_cfg_accounts/schemas/{ProviderEnum.ts → OAuthProviderEnum.ts} +2 -2
- package/src/_api/generated/_cfg_accounts/schemas/OAuthTokenResponse.ts +5 -5
- package/src/_api/generated/_cfg_accounts/schemas/OTPVerifyRequest.ts +1 -1
- package/src/_api/generated/_cfg_accounts/schemas/OTPVerifyResponse.ts +3 -3
- package/src/_api/generated/_cfg_accounts/schemas/PatchedCfgUserUpdateRequest.ts +3 -2
- package/src/_api/generated/_cfg_accounts/schemas/User.ts +12 -10
- package/src/_api/generated/_cfg_accounts/schemas/cfg_accounts_oauth_connections_response_200_AutoRef.ts +10 -0
- package/src/_api/generated/_cfg_accounts/schemas/cfg_accounts_oauth_disconnect_response_200_AutoRef.ts +11 -0
- package/src/_api/generated/_cfg_accounts/schemas/index.ts +8 -1
- package/src/_api/generated/_cfg_centrifugo/api.ts +3 -3
- package/src/_api/generated/_cfg_centrifugo/hooks/useCfgCentrifugoAuthTokenRetrieve.ts +43 -3
- package/src/_api/generated/_cfg_centrifugo/index.ts +1 -1
- package/src/_api/generated/_cfg_centrifugo/schemas/ConnectionTokenResponse.ts +2 -2
- package/src/_api/generated/_cfg_totp/api.ts +9 -3
- package/src/_api/generated/_cfg_totp/hooks/useCfgTotpBackupCodesRegenerateCreate.ts +43 -3
- package/src/_api/generated/_cfg_totp/hooks/useCfgTotpBackupCodesRetrieve.ts +43 -3
- package/src/_api/generated/_cfg_totp/hooks/useCfgTotpDevicesDestroy.ts +7 -3
- package/src/_api/generated/_cfg_totp/hooks/useCfgTotpDevicesRetrieve.ts +43 -3
- package/src/_api/generated/_cfg_totp/hooks/useCfgTotpDisableCreate.ts +43 -3
- package/src/_api/generated/_cfg_totp/hooks/useCfgTotpSetupConfirmCreate.ts +43 -3
- package/src/_api/generated/_cfg_totp/hooks/useCfgTotpSetupCreate.ts +43 -3
- package/src/_api/generated/_cfg_totp/hooks/useCfgTotpVerifyBackupCreate.ts +43 -3
- package/src/_api/generated/_cfg_totp/hooks/useCfgTotpVerifyCreate.ts +43 -3
- package/src/_api/generated/_cfg_totp/index.ts +1 -1
- package/src/_api/generated/_cfg_totp/schemas/ConfirmSetupRequest.ts +1 -1
- package/src/_api/generated/_cfg_totp/schemas/ConfirmSetupResponse.ts +1 -1
- package/src/_api/generated/_cfg_totp/schemas/DeviceList.ts +5 -5
- package/src/_api/generated/_cfg_totp/schemas/DeviceStatusEnum.ts +9 -0
- package/src/_api/generated/_cfg_totp/schemas/SetupResponse.ts +2 -2
- package/src/_api/generated/_cfg_totp/schemas/TotpVerifyUser.ts +11 -9
- package/src/_api/generated/_cfg_totp/schemas/VerifyBackupRequest.ts +1 -1
- package/src/_api/generated/_cfg_totp/schemas/VerifyRequest.ts +1 -1
- package/src/_api/generated/_cfg_totp/schemas/VerifyResponse.ts +2 -2
- package/src/_api/generated/_cfg_totp/schemas/cfg_totp_disable_response_200_AutoRef.ts +9 -0
- package/src/_api/generated/_cfg_totp/schemas/index.ts +2 -1
- package/src/_api/generated/index.ts +3 -1
- package/src/_api/generated/sdk.gen.ts +80 -813
- package/src/_api/generated/types.gen.ts +320 -159
- package/src/auth/context/AccountsContext.tsx +18 -6
- package/src/auth/context/AuthContext.tsx +11 -3
- package/src/auth/hooks/useDeleteAccount.ts +2 -2
- package/src/auth/hooks/useGithubAuth.ts +3 -3
- package/src/auth/hooks/useTokenRefresh.ts +2 -2
- package/src/auth/hooks/useTwoFactor.ts +3 -3
- package/src/auth/hooks/useTwoFactorSetup.ts +3 -3
- package/src/auth/hooks/useTwoFactorStatus.ts +3 -3
- package/src/auth/middlewares/tokenRefresh.ts +2 -2
- package/src/hooks/index.ts +1 -0
- package/src/hooks/useApiKey.ts +73 -0
- package/src/index.ts +12 -16
package/dist/index.d.ts
CHANGED
|
@@ -67,6 +67,7 @@ declare const auth: {
|
|
|
67
67
|
*/
|
|
68
68
|
setRefreshHandler(fn: RefreshHandler | null): void;
|
|
69
69
|
};
|
|
70
|
+
type Auth$1 = typeof auth;
|
|
70
71
|
|
|
71
72
|
interface RequestLog {
|
|
72
73
|
method: string;
|
|
@@ -118,564 +119,831 @@ declare class APILogger {
|
|
|
118
119
|
}
|
|
119
120
|
declare const defaultLogger: APILogger;
|
|
120
121
|
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
*
|
|
138
|
-
* Use the global `auth` object directly when you don't need a group
|
|
139
|
-
* facade: `import { auth } from '@your/api'; auth.setToken(jwt);`
|
|
140
|
-
*/
|
|
141
|
-
declare class API$2 {
|
|
142
|
-
readonly logger: APILogger;
|
|
143
|
-
constructor(_baseUrl?: string, opts?: APIOptions$2);
|
|
144
|
-
getBaseUrl(): string;
|
|
145
|
-
setBaseUrl(url: string): void;
|
|
146
|
-
getToken(): string | null;
|
|
147
|
-
setToken(token: string | null): void;
|
|
148
|
-
getRefreshToken(): string | null;
|
|
149
|
-
setRefreshToken(token: string | null): void;
|
|
150
|
-
clearToken(): void;
|
|
151
|
-
isAuthenticated(): boolean;
|
|
152
|
-
getLocale(): string | null;
|
|
153
|
-
setLocale(locale: string | null): void;
|
|
154
|
-
getApiKey(): string | null;
|
|
155
|
-
setApiKey(key: string | null): void;
|
|
156
|
-
/** Fired only on terminal 401 (after refresh+retry path is exhausted). */
|
|
157
|
-
onUnauthorized(cb: ((response: Response) => void) | null): void;
|
|
158
|
-
/** Provide a refresh strategy. See `auth.setRefreshHandler` for the contract. */
|
|
159
|
-
setRefreshHandler(fn: ((refreshToken: string) => Promise<{
|
|
160
|
-
access: string;
|
|
161
|
-
refresh?: string;
|
|
162
|
-
} | null>) | null): void;
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
interface StorageAdapter {
|
|
166
|
-
getItem(key: string): string | null;
|
|
167
|
-
setItem(key: string, value: string): void;
|
|
168
|
-
removeItem(key: string): void;
|
|
169
|
-
clear?(): void;
|
|
170
|
-
}
|
|
171
|
-
/** Browser localStorage. Falls back to no-op on SSR / private mode. */
|
|
172
|
-
declare class LocalStorageAdapter implements StorageAdapter {
|
|
173
|
-
getItem(key: string): string | null;
|
|
174
|
-
setItem(key: string, value: string): void;
|
|
175
|
-
removeItem(key: string): void;
|
|
176
|
-
clear(): void;
|
|
177
|
-
}
|
|
178
|
-
/** In-memory store. Use for SSR, Electron main process, or tests. */
|
|
179
|
-
declare class MemoryStorageAdapter implements StorageAdapter {
|
|
180
|
-
private store;
|
|
181
|
-
getItem(key: string): string | null;
|
|
182
|
-
setItem(key: string, value: string): void;
|
|
183
|
-
removeItem(key: string): void;
|
|
184
|
-
clear(): void;
|
|
185
|
-
}
|
|
186
|
-
/** Cookie-backed storage (browser only). */
|
|
187
|
-
declare class CookieStorageAdapter implements StorageAdapter {
|
|
188
|
-
private opts;
|
|
189
|
-
constructor(opts?: {
|
|
190
|
-
domain?: string;
|
|
191
|
-
path?: string;
|
|
192
|
-
secure?: boolean;
|
|
193
|
-
sameSite?: "Strict" | "Lax" | "None";
|
|
194
|
-
maxAgeSeconds?: number;
|
|
195
|
-
});
|
|
196
|
-
getItem(key: string): string | null;
|
|
197
|
-
setItem(key: string, value: string): void;
|
|
198
|
-
removeItem(key: string): void;
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
/**
|
|
202
|
-
* HTTP API Error with DRF field-specific validation errors.
|
|
203
|
-
*/
|
|
204
|
-
declare class APIError extends Error {
|
|
205
|
-
statusCode: number;
|
|
206
|
-
statusText: string;
|
|
207
|
-
response: any;
|
|
208
|
-
url: string;
|
|
209
|
-
constructor(statusCode: number, statusText: string, response: any, url: string, message?: string);
|
|
210
|
-
get details(): Record<string, any> | null;
|
|
211
|
-
get fieldErrors(): Record<string, string[]> | null;
|
|
212
|
-
get errorMessage(): string;
|
|
213
|
-
get isValidationError(): boolean;
|
|
214
|
-
get isAuthError(): boolean;
|
|
215
|
-
get isPermissionError(): boolean;
|
|
216
|
-
get isNotFoundError(): boolean;
|
|
217
|
-
get isServerError(): boolean;
|
|
218
|
-
}
|
|
219
|
-
/** Network Error (connection failed, timeout, etc.) */
|
|
220
|
-
declare class NetworkError extends Error {
|
|
221
|
-
url: string;
|
|
222
|
-
originalError?: Error;
|
|
223
|
-
constructor(message: string, url: string, originalError?: Error);
|
|
122
|
+
type AuthToken = string | undefined;
|
|
123
|
+
interface Auth {
|
|
124
|
+
/**
|
|
125
|
+
* Which part of the request do we use to send the auth?
|
|
126
|
+
*
|
|
127
|
+
* @default 'header'
|
|
128
|
+
*/
|
|
129
|
+
in?: 'header' | 'query' | 'cookie';
|
|
130
|
+
/**
|
|
131
|
+
* Header or query parameter name.
|
|
132
|
+
*
|
|
133
|
+
* @default 'Authorization'
|
|
134
|
+
*/
|
|
135
|
+
name?: string;
|
|
136
|
+
scheme?: 'basic' | 'bearer';
|
|
137
|
+
type: 'apiKey' | 'http';
|
|
224
138
|
}
|
|
225
139
|
|
|
226
|
-
interface
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
timestamp: Date;
|
|
140
|
+
interface SerializerOptions<T> {
|
|
141
|
+
/**
|
|
142
|
+
* @default true
|
|
143
|
+
*/
|
|
144
|
+
explode: boolean;
|
|
145
|
+
style: T;
|
|
233
146
|
}
|
|
234
|
-
type
|
|
235
|
-
|
|
236
|
-
declare function onValidationError(callback: (detail: ValidationErrorDetail) => void): () => void;
|
|
237
|
-
declare function formatZodError(error: ZodError): string;
|
|
147
|
+
type ArrayStyle = 'form' | 'spaceDelimited' | 'pipeDelimited';
|
|
148
|
+
type ObjectStyle = 'form' | 'deepObject';
|
|
238
149
|
|
|
239
|
-
type
|
|
240
|
-
|
|
150
|
+
type QuerySerializer = (query: Record<string, unknown>) => string;
|
|
151
|
+
type BodySerializer = (body: unknown) => unknown;
|
|
152
|
+
type QuerySerializerOptionsObject = {
|
|
153
|
+
allowReserved?: boolean;
|
|
154
|
+
array?: Partial<SerializerOptions<ArrayStyle>>;
|
|
155
|
+
object?: Partial<SerializerOptions<ObjectStyle>>;
|
|
241
156
|
};
|
|
242
|
-
|
|
243
|
-
* Response serializer for account deletion.
|
|
244
|
-
*/
|
|
245
|
-
type AccountDeleteResponse = {
|
|
246
|
-
/**
|
|
247
|
-
* Human-readable message about the deletion
|
|
248
|
-
*/
|
|
249
|
-
message: string;
|
|
157
|
+
type QuerySerializerOptions = QuerySerializerOptionsObject & {
|
|
250
158
|
/**
|
|
251
|
-
*
|
|
159
|
+
* Per-parameter serialization overrides. When provided, these settings
|
|
160
|
+
* override the global array/object settings for specific parameter names.
|
|
252
161
|
*/
|
|
253
|
-
|
|
162
|
+
parameters?: Record<string, QuerySerializerOptionsObject>;
|
|
254
163
|
};
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
type BackupCodesRegenerateRequest = {
|
|
164
|
+
|
|
165
|
+
type HttpMethod = 'connect' | 'delete' | 'get' | 'head' | 'options' | 'patch' | 'post' | 'put' | 'trace';
|
|
166
|
+
type Client$1<RequestFn = never, Config = unknown, MethodFn = never, BuildUrlFn = never, SseFn = never> = {
|
|
259
167
|
/**
|
|
260
|
-
*
|
|
168
|
+
* Returns the final request URL.
|
|
261
169
|
*/
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
170
|
+
buildUrl: BuildUrlFn;
|
|
171
|
+
getConfig: () => Config;
|
|
172
|
+
request: RequestFn;
|
|
173
|
+
setConfig: (config: Config) => Config;
|
|
174
|
+
} & {
|
|
175
|
+
[K in HttpMethod]: MethodFn;
|
|
176
|
+
} & ([SseFn] extends [never] ? {
|
|
177
|
+
sse?: never;
|
|
178
|
+
} : {
|
|
179
|
+
sse: {
|
|
180
|
+
[K in HttpMethod]: SseFn;
|
|
181
|
+
};
|
|
182
|
+
});
|
|
183
|
+
interface Config$1 {
|
|
268
184
|
/**
|
|
269
|
-
*
|
|
185
|
+
* Auth token or a function returning auth token. The resolved value will be
|
|
186
|
+
* added to the request payload as defined by its `security` array.
|
|
270
187
|
*/
|
|
271
|
-
|
|
188
|
+
auth?: ((auth: Auth) => Promise<AuthToken> | AuthToken) | AuthToken;
|
|
272
189
|
/**
|
|
273
|
-
*
|
|
190
|
+
* A function for serializing request body parameter. By default,
|
|
191
|
+
* {@link JSON.stringify()} will be used.
|
|
274
192
|
*/
|
|
275
|
-
|
|
276
|
-
};
|
|
277
|
-
/**
|
|
278
|
-
* Serializer for backup codes status.
|
|
279
|
-
*/
|
|
280
|
-
type BackupCodesStatus = {
|
|
193
|
+
bodySerializer?: BodySerializer | null;
|
|
281
194
|
/**
|
|
282
|
-
*
|
|
195
|
+
* An object containing any HTTP headers that you want to pre-populate your
|
|
196
|
+
* `Headers` object with.
|
|
197
|
+
*
|
|
198
|
+
* {@link https://developer.mozilla.org/docs/Web/API/Headers/Headers#init See more}
|
|
283
199
|
*/
|
|
284
|
-
|
|
200
|
+
headers?: RequestInit['headers'] | Record<string, string | number | boolean | (string | number | boolean)[] | null | undefined | unknown>;
|
|
285
201
|
/**
|
|
286
|
-
*
|
|
202
|
+
* The request method.
|
|
203
|
+
*
|
|
204
|
+
* {@link https://developer.mozilla.org/docs/Web/API/fetch#method See more}
|
|
287
205
|
*/
|
|
288
|
-
|
|
206
|
+
method?: Uppercase<HttpMethod>;
|
|
289
207
|
/**
|
|
290
|
-
*
|
|
208
|
+
* A function for serializing request query parameters. By default, arrays
|
|
209
|
+
* will be exploded in form style, objects will be exploded in deepObject
|
|
210
|
+
* style, and reserved characters are percent-encoded.
|
|
211
|
+
*
|
|
212
|
+
* This method will have no effect if the native `paramsSerializer()` Axios
|
|
213
|
+
* API function is used.
|
|
214
|
+
*
|
|
215
|
+
* {@link https://swagger.io/docs/specification/serialization/#query View examples}
|
|
291
216
|
*/
|
|
292
|
-
|
|
293
|
-
};
|
|
294
|
-
/**
|
|
295
|
-
* Nested serializer for Centrifugo WebSocket connection token.
|
|
296
|
-
*/
|
|
297
|
-
type CentrifugoToken = {
|
|
217
|
+
querySerializer?: QuerySerializer | QuerySerializerOptions;
|
|
298
218
|
/**
|
|
299
|
-
*
|
|
219
|
+
* A function validating request data. This is useful if you want to ensure
|
|
220
|
+
* the request conforms to the desired shape, so it can be safely sent to
|
|
221
|
+
* the server.
|
|
300
222
|
*/
|
|
301
|
-
|
|
223
|
+
requestValidator?: (data: unknown) => Promise<unknown>;
|
|
302
224
|
/**
|
|
303
|
-
*
|
|
225
|
+
* A function transforming response data before it's returned. This is useful
|
|
226
|
+
* for post-processing data, e.g., converting ISO strings into Date objects.
|
|
304
227
|
*/
|
|
305
|
-
|
|
228
|
+
responseTransformer?: (data: unknown) => Promise<unknown>;
|
|
306
229
|
/**
|
|
307
|
-
*
|
|
230
|
+
* A function validating response data. This is useful if you want to ensure
|
|
231
|
+
* the response conforms to the desired shape, so it can be safely passed to
|
|
232
|
+
* the transformers and returned to the user.
|
|
308
233
|
*/
|
|
309
|
-
|
|
234
|
+
responseValidator?: (data: unknown) => Promise<unknown>;
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
type ServerSentEventsOptions<TData = unknown> = Omit<RequestInit, 'method'> & Pick<Config$1, 'method' | 'responseTransformer' | 'responseValidator'> & {
|
|
310
238
|
/**
|
|
311
|
-
*
|
|
239
|
+
* Fetch API implementation. You can use this option to provide a custom
|
|
240
|
+
* fetch instance.
|
|
241
|
+
*
|
|
242
|
+
* @default globalThis.fetch
|
|
312
243
|
*/
|
|
313
|
-
|
|
314
|
-
};
|
|
315
|
-
/**
|
|
316
|
-
* Serializer for updating user profile.
|
|
317
|
-
*/
|
|
318
|
-
type CfgUserUpdateRequest = {
|
|
319
|
-
company?: string;
|
|
320
|
-
first_name?: string;
|
|
321
|
-
language?: string;
|
|
322
|
-
last_name?: string;
|
|
323
|
-
phone?: string;
|
|
324
|
-
position?: string;
|
|
325
|
-
};
|
|
326
|
-
/**
|
|
327
|
-
* Serializer for confirming 2FA setup with first code.
|
|
328
|
-
*/
|
|
329
|
-
type ConfirmSetupRequest = {
|
|
244
|
+
fetch?: typeof fetch;
|
|
330
245
|
/**
|
|
331
|
-
*
|
|
246
|
+
* Implementing clients can call request interceptors inside this hook.
|
|
332
247
|
*/
|
|
333
|
-
|
|
248
|
+
onRequest?: (url: string, init: RequestInit) => Promise<Request>;
|
|
334
249
|
/**
|
|
335
|
-
*
|
|
250
|
+
* Callback invoked when a network or parsing error occurs during streaming.
|
|
251
|
+
*
|
|
252
|
+
* This option applies only if the endpoint returns a stream of events.
|
|
253
|
+
*
|
|
254
|
+
* @param error The error that occurred.
|
|
336
255
|
*/
|
|
337
|
-
|
|
338
|
-
};
|
|
339
|
-
/**
|
|
340
|
-
* Response serializer for setup confirmation.
|
|
341
|
-
*/
|
|
342
|
-
type ConfirmSetupResponse = {
|
|
256
|
+
onSseError?: (error: unknown) => void;
|
|
343
257
|
/**
|
|
344
|
-
*
|
|
258
|
+
* Callback invoked when an event is streamed from the server.
|
|
259
|
+
*
|
|
260
|
+
* This option applies only if the endpoint returns a stream of events.
|
|
261
|
+
*
|
|
262
|
+
* @param event Event streamed from the server.
|
|
263
|
+
* @returns Nothing (void).
|
|
345
264
|
*/
|
|
346
|
-
|
|
265
|
+
onSseEvent?: (event: StreamEvent<TData>) => void;
|
|
266
|
+
serializedBody?: RequestInit['body'];
|
|
347
267
|
/**
|
|
348
|
-
*
|
|
268
|
+
* Default retry delay in milliseconds.
|
|
269
|
+
*
|
|
270
|
+
* This option applies only if the endpoint returns a stream of events.
|
|
271
|
+
*
|
|
272
|
+
* @default 3000
|
|
349
273
|
*/
|
|
350
|
-
|
|
351
|
-
message: string;
|
|
352
|
-
};
|
|
353
|
-
/**
|
|
354
|
-
* ConnectionTokenResponse
|
|
355
|
-
*
|
|
356
|
-
* Response model for Centrifugo connection token.
|
|
357
|
-
*/
|
|
358
|
-
type ConnectionTokenResponse = {
|
|
274
|
+
sseDefaultRetryDelay?: number;
|
|
359
275
|
/**
|
|
360
|
-
*
|
|
276
|
+
* Maximum number of retry attempts before giving up.
|
|
277
|
+
*/
|
|
278
|
+
sseMaxRetryAttempts?: number;
|
|
279
|
+
/**
|
|
280
|
+
* Maximum retry delay in milliseconds.
|
|
361
281
|
*
|
|
362
|
-
*
|
|
282
|
+
* Applies only when exponential backoff is used.
|
|
283
|
+
*
|
|
284
|
+
* This option applies only if the endpoint returns a stream of events.
|
|
285
|
+
*
|
|
286
|
+
* @default 30000
|
|
363
287
|
*/
|
|
364
|
-
|
|
288
|
+
sseMaxRetryDelay?: number;
|
|
365
289
|
/**
|
|
366
|
-
*
|
|
290
|
+
* Optional sleep function for retry backoff.
|
|
367
291
|
*
|
|
368
|
-
*
|
|
292
|
+
* Defaults to using `setTimeout`.
|
|
369
293
|
*/
|
|
370
|
-
|
|
294
|
+
sseSleepFn?: (ms: number) => Promise<void>;
|
|
295
|
+
url: string;
|
|
296
|
+
};
|
|
297
|
+
interface StreamEvent<TData = unknown> {
|
|
298
|
+
data: TData;
|
|
299
|
+
event?: string;
|
|
300
|
+
id?: string;
|
|
301
|
+
retry?: number;
|
|
302
|
+
}
|
|
303
|
+
type ServerSentEventsResult<TData = unknown, TReturn = void, TNext = unknown> = {
|
|
304
|
+
stream: AsyncGenerator<TData extends Record<string, unknown> ? TData[keyof TData] : TData, TReturn, TNext>;
|
|
305
|
+
};
|
|
306
|
+
|
|
307
|
+
type ErrInterceptor<Err, Res, Req, Options> = (error: Err,
|
|
308
|
+
/** response may be undefined due to a network error where no response object is produced */
|
|
309
|
+
response: Res | undefined,
|
|
310
|
+
/** request may be undefined, because error may be from building the request object itself */
|
|
311
|
+
request: Req | undefined, options: Options) => Err | Promise<Err>;
|
|
312
|
+
type ReqInterceptor<Req, Options> = (request: Req, options: Options) => Req | Promise<Req>;
|
|
313
|
+
type ResInterceptor<Res, Req, Options> = (response: Res, request: Req, options: Options) => Res | Promise<Res>;
|
|
314
|
+
declare class Interceptors<Interceptor> {
|
|
315
|
+
fns: Array<Interceptor | null>;
|
|
316
|
+
clear(): void;
|
|
317
|
+
eject(id: number | Interceptor): void;
|
|
318
|
+
exists(id: number | Interceptor): boolean;
|
|
319
|
+
getInterceptorIndex(id: number | Interceptor): number;
|
|
320
|
+
update(id: number | Interceptor, fn: Interceptor): number | Interceptor | false;
|
|
321
|
+
use(fn: Interceptor): number;
|
|
322
|
+
}
|
|
323
|
+
interface Middleware<Req, Res, Err, Options> {
|
|
324
|
+
error: Interceptors<ErrInterceptor<Err, Res, Req, Options>>;
|
|
325
|
+
request: Interceptors<ReqInterceptor<Req, Options>>;
|
|
326
|
+
response: Interceptors<ResInterceptor<Res, Req, Options>>;
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
type ResponseStyle = 'data' | 'fields';
|
|
330
|
+
interface Config<T extends ClientOptions$1 = ClientOptions$1> extends Omit<RequestInit, 'body' | 'headers' | 'method'>, Config$1 {
|
|
371
331
|
/**
|
|
372
|
-
*
|
|
332
|
+
* Base URL for all requests made by this client.
|
|
333
|
+
*/
|
|
334
|
+
baseUrl?: T['baseUrl'];
|
|
335
|
+
/**
|
|
336
|
+
* Fetch API implementation. You can use this option to provide a custom
|
|
337
|
+
* fetch instance.
|
|
373
338
|
*
|
|
374
|
-
*
|
|
339
|
+
* @default globalThis.fetch
|
|
375
340
|
*/
|
|
376
|
-
|
|
341
|
+
fetch?: typeof fetch;
|
|
377
342
|
/**
|
|
378
|
-
*
|
|
343
|
+
* Please don't use the Fetch client for Next.js applications. The `next`
|
|
344
|
+
* options won't have any effect.
|
|
379
345
|
*
|
|
380
|
-
*
|
|
346
|
+
* Install {@link https://www.npmjs.com/package/@hey-api/client-next `@hey-api/client-next`} instead.
|
|
381
347
|
*/
|
|
382
|
-
|
|
383
|
-
};
|
|
384
|
-
/**
|
|
385
|
-
* Serializer for listing TOTP devices.
|
|
386
|
-
*/
|
|
387
|
-
type DeviceList = {
|
|
348
|
+
next?: never;
|
|
388
349
|
/**
|
|
389
|
-
*
|
|
350
|
+
* Return the response data parsed in a specified format. By default, `auto`
|
|
351
|
+
* will infer the appropriate method from the `Content-Type` response header.
|
|
352
|
+
* You can override this behavior with any of the {@link Body} methods.
|
|
353
|
+
* Select `stream` if you don't want to parse response data at all.
|
|
354
|
+
*
|
|
355
|
+
* @default 'auto'
|
|
390
356
|
*/
|
|
391
|
-
|
|
392
|
-
readonly created_at: string;
|
|
393
|
-
readonly id: string;
|
|
357
|
+
parseAs?: 'arrayBuffer' | 'auto' | 'blob' | 'formData' | 'json' | 'stream' | 'text';
|
|
394
358
|
/**
|
|
395
|
-
*
|
|
359
|
+
* Should we return only data or multiple fields (data, error, response, etc.)?
|
|
360
|
+
*
|
|
361
|
+
* @default 'fields'
|
|
396
362
|
*/
|
|
397
|
-
|
|
363
|
+
responseStyle?: ResponseStyle;
|
|
398
364
|
/**
|
|
399
|
-
*
|
|
365
|
+
* Throw an error instead of returning it in the response?
|
|
366
|
+
*
|
|
367
|
+
* @default false
|
|
400
368
|
*/
|
|
401
|
-
|
|
369
|
+
throwOnError?: T['throwOnError'];
|
|
370
|
+
}
|
|
371
|
+
interface RequestOptions<TData = unknown, TResponseStyle extends ResponseStyle = 'fields', ThrowOnError extends boolean = boolean, Url extends string = string> extends Config<{
|
|
372
|
+
responseStyle: TResponseStyle;
|
|
373
|
+
throwOnError: ThrowOnError;
|
|
374
|
+
}>, Pick<ServerSentEventsOptions<TData>, 'onRequest' | 'onSseError' | 'onSseEvent' | 'sseDefaultRetryDelay' | 'sseMaxRetryAttempts' | 'sseMaxRetryDelay'> {
|
|
402
375
|
/**
|
|
403
|
-
*
|
|
376
|
+
* Any body that you want to add to your request.
|
|
377
|
+
*
|
|
378
|
+
* {@link https://developer.mozilla.org/docs/Web/API/fetch#body}
|
|
404
379
|
*/
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
/**
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
380
|
+
body?: unknown;
|
|
381
|
+
path?: Record<string, unknown>;
|
|
382
|
+
query?: Record<string, unknown>;
|
|
383
|
+
/**
|
|
384
|
+
* Security mechanism(s) to use for the request.
|
|
385
|
+
*/
|
|
386
|
+
security?: ReadonlyArray<Auth>;
|
|
387
|
+
url: Url;
|
|
388
|
+
}
|
|
389
|
+
interface ResolvedRequestOptions<TResponseStyle extends ResponseStyle = 'fields', ThrowOnError extends boolean = boolean, Url extends string = string> extends RequestOptions<unknown, TResponseStyle, ThrowOnError, Url> {
|
|
390
|
+
headers: Headers;
|
|
391
|
+
serializedBody?: string;
|
|
392
|
+
}
|
|
393
|
+
type RequestResult<TData = unknown, TError = unknown, ThrowOnError extends boolean = boolean, TResponseStyle extends ResponseStyle = 'fields'> = ThrowOnError extends true ? Promise<TResponseStyle extends 'data' ? TData extends Record<string, unknown> ? TData[keyof TData] : TData : {
|
|
394
|
+
data: TData extends Record<string, unknown> ? TData[keyof TData] : TData;
|
|
395
|
+
request: Request;
|
|
396
|
+
response: Response;
|
|
397
|
+
}> : Promise<TResponseStyle extends 'data' ? (TData extends Record<string, unknown> ? TData[keyof TData] : TData) | undefined : ({
|
|
398
|
+
data: TData extends Record<string, unknown> ? TData[keyof TData] : TData;
|
|
399
|
+
error: undefined;
|
|
400
|
+
} | {
|
|
401
|
+
data: undefined;
|
|
402
|
+
error: TError extends Record<string, unknown> ? TError[keyof TError] : TError;
|
|
403
|
+
}) & {
|
|
404
|
+
/** request may be undefined, because error may be from building the request object itself */
|
|
405
|
+
request?: Request;
|
|
406
|
+
/** response may be undefined, because error may be from building the request object itself or from a network error */
|
|
407
|
+
response?: Response;
|
|
408
|
+
}>;
|
|
409
|
+
interface ClientOptions$1 {
|
|
410
|
+
baseUrl?: string;
|
|
411
|
+
responseStyle?: ResponseStyle;
|
|
412
|
+
throwOnError?: boolean;
|
|
413
|
+
}
|
|
414
|
+
type MethodFn = <TData = unknown, TError = unknown, ThrowOnError extends boolean = false, TResponseStyle extends ResponseStyle = 'fields'>(options: Omit<RequestOptions<TData, TResponseStyle, ThrowOnError>, 'method'>) => RequestResult<TData, TError, ThrowOnError, TResponseStyle>;
|
|
415
|
+
type SseFn = <TData = unknown, TError = unknown, ThrowOnError extends boolean = false, TResponseStyle extends ResponseStyle = 'fields'>(options: Omit<RequestOptions<never, TResponseStyle, ThrowOnError>, 'method'>) => Promise<ServerSentEventsResult<TData, TError>>;
|
|
416
|
+
type RequestFn = <TData = unknown, TError = unknown, ThrowOnError extends boolean = false, TResponseStyle extends ResponseStyle = 'fields'>(options: Omit<RequestOptions<TData, TResponseStyle, ThrowOnError>, 'method'> & Pick<Required<RequestOptions<TData, TResponseStyle, ThrowOnError>>, 'method'>) => RequestResult<TData, TError, ThrowOnError, TResponseStyle>;
|
|
417
|
+
type BuildUrlFn = <TData extends {
|
|
418
|
+
body?: unknown;
|
|
419
|
+
path?: Record<string, unknown>;
|
|
420
|
+
query?: Record<string, unknown>;
|
|
421
|
+
url: string;
|
|
422
|
+
}>(options: TData & Options$1<TData>) => string;
|
|
423
|
+
type Client = Client$1<RequestFn, Config, MethodFn, BuildUrlFn, SseFn> & {
|
|
424
|
+
interceptors: Middleware<Request, Response, unknown, ResolvedRequestOptions>;
|
|
414
425
|
};
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
PENDING = "pending",
|
|
422
|
-
ACTIVE = "active",
|
|
423
|
-
DISABLED = "disabled"
|
|
426
|
+
interface TDataShape {
|
|
427
|
+
body?: unknown;
|
|
428
|
+
headers?: unknown;
|
|
429
|
+
path?: unknown;
|
|
430
|
+
query?: unknown;
|
|
431
|
+
url: string;
|
|
424
432
|
}
|
|
433
|
+
type OmitKeys<T, K> = Pick<T, Exclude<keyof T, K>>;
|
|
434
|
+
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'>);
|
|
435
|
+
|
|
436
|
+
type ClientOptions = {
|
|
437
|
+
baseUrl: 'http://localhost:8000' | (string & {});
|
|
438
|
+
};
|
|
425
439
|
/**
|
|
426
|
-
* Serializer for
|
|
440
|
+
* Serializer for API key response (masked).
|
|
427
441
|
*/
|
|
428
|
-
type
|
|
442
|
+
type ApiKey = {
|
|
429
443
|
/**
|
|
430
|
-
*
|
|
444
|
+
* Masked API key
|
|
431
445
|
*/
|
|
432
|
-
|
|
446
|
+
key: string;
|
|
447
|
+
/**
|
|
448
|
+
* When the key was last regenerated
|
|
449
|
+
*/
|
|
450
|
+
reissued_at: string | null;
|
|
451
|
+
/**
|
|
452
|
+
* When the key was created
|
|
453
|
+
*/
|
|
454
|
+
created_at: string;
|
|
433
455
|
};
|
|
434
456
|
/**
|
|
435
|
-
*
|
|
457
|
+
* Serializer for API key regeneration response (full key shown once).
|
|
436
458
|
*/
|
|
437
|
-
type
|
|
459
|
+
type ApiKeyRegenerate = {
|
|
438
460
|
/**
|
|
439
|
-
*
|
|
461
|
+
* New API key (shown only once)
|
|
440
462
|
*/
|
|
441
|
-
|
|
463
|
+
key: string;
|
|
442
464
|
/**
|
|
443
|
-
*
|
|
465
|
+
* When the key was regenerated
|
|
444
466
|
*/
|
|
445
|
-
|
|
467
|
+
reissued_at: string;
|
|
446
468
|
};
|
|
447
469
|
/**
|
|
448
|
-
*
|
|
470
|
+
* Serializer for API key response (masked).
|
|
449
471
|
*/
|
|
450
|
-
type
|
|
472
|
+
type ApiKeyRequest = {
|
|
451
473
|
/**
|
|
452
|
-
*
|
|
474
|
+
* Masked API key
|
|
453
475
|
*/
|
|
454
|
-
|
|
476
|
+
key: string;
|
|
455
477
|
/**
|
|
456
|
-
*
|
|
478
|
+
* When the key was last regenerated
|
|
457
479
|
*/
|
|
458
|
-
|
|
480
|
+
reissued_at: string | null;
|
|
481
|
+
/**
|
|
482
|
+
* When the key was created
|
|
483
|
+
*/
|
|
484
|
+
created_at: string;
|
|
459
485
|
};
|
|
460
486
|
/**
|
|
461
|
-
*
|
|
487
|
+
* Serializer for testing an API key.
|
|
462
488
|
*/
|
|
463
|
-
type
|
|
489
|
+
type ApiKeyTestRequest = {
|
|
464
490
|
/**
|
|
465
|
-
*
|
|
491
|
+
* API key to test
|
|
466
492
|
*/
|
|
467
|
-
|
|
493
|
+
key: string;
|
|
494
|
+
};
|
|
495
|
+
/**
|
|
496
|
+
* Serializer for API key test result.
|
|
497
|
+
*/
|
|
498
|
+
type ApiKeyTestResult = {
|
|
468
499
|
/**
|
|
469
|
-
*
|
|
500
|
+
* Whether the key is valid
|
|
470
501
|
*/
|
|
471
|
-
|
|
502
|
+
valid: boolean;
|
|
472
503
|
/**
|
|
473
|
-
*
|
|
504
|
+
* User ID if valid, null otherwise
|
|
474
505
|
*/
|
|
475
|
-
|
|
506
|
+
user_id: string | null;
|
|
476
507
|
};
|
|
477
508
|
/**
|
|
478
|
-
*
|
|
509
|
+
* Response serializer for account deletion.
|
|
479
510
|
*/
|
|
480
|
-
type
|
|
481
|
-
/**
|
|
482
|
-
* When this OAuth connection was created
|
|
483
|
-
*/
|
|
484
|
-
readonly connected_at: string;
|
|
485
|
-
readonly id: number;
|
|
511
|
+
type AccountDeleteResponse = {
|
|
486
512
|
/**
|
|
487
|
-
*
|
|
513
|
+
* Whether the account was successfully deleted
|
|
488
514
|
*/
|
|
489
|
-
|
|
515
|
+
success: boolean;
|
|
490
516
|
/**
|
|
491
|
-
*
|
|
492
|
-
*
|
|
493
|
-
* * `github` - GitHub
|
|
517
|
+
* Human-readable message about the deletion
|
|
494
518
|
*/
|
|
495
|
-
|
|
519
|
+
message: string;
|
|
520
|
+
};
|
|
521
|
+
/**
|
|
522
|
+
* Serializer for regenerating backup codes.
|
|
523
|
+
*/
|
|
524
|
+
type BackupCodesRegenerateRequest = {
|
|
496
525
|
/**
|
|
497
|
-
*
|
|
526
|
+
* TOTP code for verification
|
|
498
527
|
*/
|
|
499
|
-
|
|
500
|
-
|
|
528
|
+
code: string;
|
|
529
|
+
};
|
|
530
|
+
/**
|
|
531
|
+
* Response serializer for backup codes regeneration.
|
|
532
|
+
*/
|
|
533
|
+
type BackupCodesRegenerateResponse = {
|
|
501
534
|
/**
|
|
502
|
-
*
|
|
535
|
+
* List of new backup codes (save these!)
|
|
503
536
|
*/
|
|
504
|
-
|
|
537
|
+
backup_codes: Array<string>;
|
|
505
538
|
/**
|
|
506
|
-
*
|
|
539
|
+
* Warning about previous codes being invalidated
|
|
507
540
|
*/
|
|
508
|
-
|
|
541
|
+
warning: string;
|
|
509
542
|
};
|
|
510
543
|
/**
|
|
511
|
-
*
|
|
544
|
+
* Serializer for backup codes status.
|
|
512
545
|
*/
|
|
513
|
-
type
|
|
546
|
+
type BackupCodesStatus = {
|
|
514
547
|
/**
|
|
515
|
-
*
|
|
516
|
-
|
|
517
|
-
|
|
548
|
+
* Number of unused backup codes
|
|
549
|
+
*/
|
|
550
|
+
remaining_count: number;
|
|
551
|
+
/**
|
|
552
|
+
* Total number of codes generated
|
|
553
|
+
*/
|
|
554
|
+
total_generated: number;
|
|
555
|
+
/**
|
|
556
|
+
* Warning if running low on codes
|
|
518
557
|
*/
|
|
519
|
-
|
|
558
|
+
warning?: string | null;
|
|
520
559
|
};
|
|
521
560
|
/**
|
|
522
|
-
*
|
|
561
|
+
* Nested serializer for Centrifugo WebSocket connection token.
|
|
523
562
|
*/
|
|
524
|
-
type
|
|
563
|
+
type CentrifugoToken = {
|
|
525
564
|
/**
|
|
526
|
-
*
|
|
565
|
+
* JWT token for Centrifugo WebSocket connection
|
|
527
566
|
*/
|
|
528
|
-
|
|
567
|
+
token: string;
|
|
529
568
|
/**
|
|
530
|
-
*
|
|
569
|
+
* Centrifugo WebSocket URL
|
|
531
570
|
*/
|
|
532
|
-
|
|
571
|
+
centrifugo_url: string;
|
|
572
|
+
/**
|
|
573
|
+
* Token expiration time (ISO 8601)
|
|
574
|
+
*/
|
|
575
|
+
expires_at: string;
|
|
576
|
+
/**
|
|
577
|
+
* List of allowed channels for this user
|
|
578
|
+
*/
|
|
579
|
+
channels: Array<string>;
|
|
533
580
|
};
|
|
534
581
|
/**
|
|
535
|
-
*
|
|
582
|
+
* Serializer for updating user profile.
|
|
536
583
|
*/
|
|
537
|
-
type
|
|
584
|
+
type CfgUserUpdateRequest = {
|
|
585
|
+
first_name?: string;
|
|
586
|
+
last_name?: string;
|
|
587
|
+
company?: string;
|
|
588
|
+
phone?: string;
|
|
589
|
+
position?: string;
|
|
590
|
+
language?: string;
|
|
538
591
|
/**
|
|
539
|
-
*
|
|
592
|
+
* IANA timezone name (e.g. 'Asia/Seoul'). Auto-detected from browser via X-Timezone header.
|
|
540
593
|
*/
|
|
541
|
-
|
|
542
|
-
[key: string]: unknown;
|
|
543
|
-
}>;
|
|
594
|
+
timezone?: string;
|
|
544
595
|
};
|
|
545
596
|
/**
|
|
546
|
-
*
|
|
547
|
-
*
|
|
548
|
-
* When 2FA is required:
|
|
549
|
-
* - requires_2fa: True
|
|
550
|
-
* - session_id: UUID of 2FA verification session
|
|
551
|
-
* - access/refresh/user: null
|
|
552
|
-
*
|
|
553
|
-
* When 2FA is not required:
|
|
554
|
-
* - requires_2fa: False
|
|
555
|
-
* - session_id: null
|
|
556
|
-
* - access/refresh/user: populated
|
|
597
|
+
* Serializer for confirming 2FA setup with first code.
|
|
557
598
|
*/
|
|
558
|
-
type
|
|
599
|
+
type ConfirmSetupRequest = {
|
|
559
600
|
/**
|
|
560
|
-
*
|
|
601
|
+
* Device ID from setup response
|
|
561
602
|
*/
|
|
562
|
-
|
|
603
|
+
device_id: string;
|
|
563
604
|
/**
|
|
564
|
-
*
|
|
605
|
+
* 6-digit TOTP code from authenticator app
|
|
565
606
|
*/
|
|
566
|
-
|
|
607
|
+
code: string;
|
|
608
|
+
};
|
|
609
|
+
/**
|
|
610
|
+
* Response serializer for setup confirmation.
|
|
611
|
+
*/
|
|
612
|
+
type ConfirmSetupResponse = {
|
|
613
|
+
message: string;
|
|
567
614
|
/**
|
|
568
|
-
*
|
|
615
|
+
* List of backup recovery codes (save these!)
|
|
569
616
|
*/
|
|
570
|
-
|
|
617
|
+
backup_codes: Array<string>;
|
|
571
618
|
/**
|
|
572
|
-
*
|
|
619
|
+
* Warning message about backup codes
|
|
573
620
|
*/
|
|
574
|
-
|
|
621
|
+
backup_codes_warning: string;
|
|
622
|
+
};
|
|
623
|
+
/**
|
|
624
|
+
* ConnectionTokenResponse
|
|
625
|
+
*
|
|
626
|
+
* Response model for Centrifugo connection token.
|
|
627
|
+
*/
|
|
628
|
+
type ConnectionTokenResponse = {
|
|
575
629
|
/**
|
|
576
|
-
*
|
|
630
|
+
* Token
|
|
631
|
+
*
|
|
632
|
+
* JWT token for Centrifugo connection
|
|
577
633
|
*/
|
|
578
|
-
|
|
634
|
+
token: string;
|
|
579
635
|
/**
|
|
580
|
-
*
|
|
636
|
+
* Centrifugo Url
|
|
637
|
+
*
|
|
638
|
+
* Centrifugo WebSocket URL
|
|
581
639
|
*/
|
|
582
|
-
|
|
640
|
+
centrifugo_url: string;
|
|
583
641
|
/**
|
|
584
|
-
*
|
|
642
|
+
* Expires At
|
|
643
|
+
*
|
|
644
|
+
* Token expiration time (ISO 8601)
|
|
585
645
|
*/
|
|
586
|
-
|
|
646
|
+
expires_at: string;
|
|
587
647
|
/**
|
|
588
|
-
*
|
|
648
|
+
* Channels
|
|
649
|
+
*
|
|
650
|
+
* List of allowed channels
|
|
589
651
|
*/
|
|
590
|
-
|
|
591
|
-
[key: string]: unknown;
|
|
592
|
-
} | null;
|
|
652
|
+
channels: Array<string>;
|
|
593
653
|
};
|
|
594
654
|
/**
|
|
595
|
-
*
|
|
596
|
-
*
|
|
597
|
-
* error_code values:
|
|
598
|
-
* - invalid_identifier — malformed email
|
|
599
|
-
* - cooldown — too soon after last request (retry_after = seconds)
|
|
600
|
-
* - hourly_limit — hourly quota exceeded (retry_after = seconds until reset)
|
|
601
|
-
* - daily_limit — daily quota exceeded (retry_after = seconds until reset)
|
|
602
|
-
* - rate_limited — IP-level rate limit hit (no retry_after)
|
|
603
|
-
* - user_creation_failed — internal error creating account
|
|
604
|
-
* - send_failed — transport error (email / SMS)
|
|
605
|
-
* - internal_error — unexpected server error
|
|
655
|
+
* Serializer for listing TOTP devices.
|
|
606
656
|
*/
|
|
607
|
-
type
|
|
657
|
+
type DeviceList = {
|
|
658
|
+
readonly id: string;
|
|
608
659
|
/**
|
|
609
|
-
*
|
|
660
|
+
* Device name for identification
|
|
610
661
|
*/
|
|
611
|
-
|
|
662
|
+
readonly name: string;
|
|
612
663
|
/**
|
|
613
|
-
*
|
|
664
|
+
* Primary device used for verification
|
|
614
665
|
*/
|
|
615
|
-
|
|
666
|
+
readonly is_primary: boolean;
|
|
667
|
+
readonly status: DeviceStatusEnum;
|
|
668
|
+
readonly created_at: string;
|
|
616
669
|
/**
|
|
617
|
-
*
|
|
670
|
+
* When device setup was confirmed
|
|
618
671
|
*/
|
|
619
|
-
|
|
672
|
+
readonly confirmed_at: string | null;
|
|
673
|
+
/**
|
|
674
|
+
* Last successful verification
|
|
675
|
+
*/
|
|
676
|
+
readonly last_used_at: string | null;
|
|
620
677
|
};
|
|
621
678
|
/**
|
|
622
|
-
*
|
|
679
|
+
* Response serializer for device list endpoint.
|
|
623
680
|
*/
|
|
624
|
-
type
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
*/
|
|
628
|
-
identifier: string;
|
|
629
|
-
/**
|
|
630
|
-
* Source URL for tracking registration (e.g., https://my.djangocfg.com)
|
|
631
|
-
*/
|
|
632
|
-
source_url?: string;
|
|
681
|
+
type DeviceListResponse = {
|
|
682
|
+
devices: Array<DeviceList>;
|
|
683
|
+
has_2fa_enabled: boolean;
|
|
633
684
|
};
|
|
634
685
|
/**
|
|
635
|
-
*
|
|
686
|
+
* * `pending` - Pending Confirmation
|
|
687
|
+
* * `active` - Active
|
|
688
|
+
* * `disabled` - Disabled
|
|
636
689
|
*/
|
|
637
|
-
|
|
690
|
+
declare enum DeviceStatusEnum {
|
|
691
|
+
PENDING = "pending",
|
|
692
|
+
ACTIVE = "active",
|
|
693
|
+
DISABLED = "disabled"
|
|
694
|
+
}
|
|
695
|
+
/**
|
|
696
|
+
* Serializer for completely disabling 2FA.
|
|
697
|
+
*/
|
|
698
|
+
type DisableRequest = {
|
|
638
699
|
/**
|
|
639
|
-
*
|
|
700
|
+
* TOTP code for verification
|
|
640
701
|
*/
|
|
641
|
-
|
|
702
|
+
code: string;
|
|
642
703
|
};
|
|
643
704
|
/**
|
|
644
|
-
*
|
|
705
|
+
* Request to start OAuth flow.
|
|
645
706
|
*/
|
|
646
|
-
type
|
|
707
|
+
type OAuthAuthorizeRequestRequest = {
|
|
647
708
|
/**
|
|
648
|
-
*
|
|
709
|
+
* URL to redirect after OAuth authorization. If not provided, uses config's site_url + callback_path
|
|
649
710
|
*/
|
|
650
|
-
|
|
651
|
-
otp: string;
|
|
711
|
+
redirect_uri?: string;
|
|
652
712
|
/**
|
|
653
|
-
*
|
|
713
|
+
* Optional source URL for registration tracking
|
|
654
714
|
*/
|
|
655
715
|
source_url?: string;
|
|
656
716
|
};
|
|
657
717
|
/**
|
|
658
|
-
*
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
718
|
+
* Response with OAuth authorization URL.
|
|
719
|
+
*/
|
|
720
|
+
type OAuthAuthorizeResponse = {
|
|
721
|
+
/**
|
|
722
|
+
* Full URL to redirect user to OAuth provider
|
|
723
|
+
*/
|
|
724
|
+
authorization_url: string;
|
|
725
|
+
/**
|
|
726
|
+
* State token for CSRF protection. Store this and verify on callback.
|
|
727
|
+
*/
|
|
728
|
+
state: string;
|
|
729
|
+
};
|
|
730
|
+
/**
|
|
731
|
+
* Request to complete OAuth flow (callback handler).
|
|
732
|
+
*/
|
|
733
|
+
type OAuthCallbackRequestRequest = {
|
|
734
|
+
/**
|
|
735
|
+
* Authorization code from OAuth provider callback
|
|
736
|
+
*/
|
|
737
|
+
code: string;
|
|
738
|
+
/**
|
|
739
|
+
* State token for CSRF verification (from authorize response)
|
|
740
|
+
*/
|
|
741
|
+
state: string;
|
|
742
|
+
/**
|
|
743
|
+
* Same redirect_uri used in authorize request. If not provided, uses config's site_url + callback_path
|
|
744
|
+
*/
|
|
745
|
+
redirect_uri?: string;
|
|
746
|
+
};
|
|
747
|
+
/**
|
|
748
|
+
* Serializer for OAuth connection info (user-facing).
|
|
749
|
+
*/
|
|
750
|
+
type OAuthConnection = {
|
|
751
|
+
readonly id: number;
|
|
752
|
+
/**
|
|
753
|
+
* OAuth provider name (github, google, etc.)
|
|
754
|
+
*
|
|
755
|
+
* * `github` - GitHub
|
|
756
|
+
*/
|
|
757
|
+
readonly provider: OAuthProviderEnum;
|
|
758
|
+
readonly provider_display: string;
|
|
759
|
+
/**
|
|
760
|
+
* Username on the OAuth provider platform
|
|
761
|
+
*/
|
|
762
|
+
readonly provider_username: string;
|
|
763
|
+
/**
|
|
764
|
+
* Email from OAuth provider (may differ from user.email)
|
|
765
|
+
*/
|
|
766
|
+
readonly provider_email: string;
|
|
767
|
+
/**
|
|
768
|
+
* Avatar URL from OAuth provider
|
|
769
|
+
*/
|
|
770
|
+
readonly provider_avatar_url: string;
|
|
771
|
+
/**
|
|
772
|
+
* When this OAuth connection was created
|
|
773
|
+
*/
|
|
774
|
+
readonly connected_at: string;
|
|
775
|
+
/**
|
|
776
|
+
* Last time this OAuth connection was used for login
|
|
777
|
+
*/
|
|
778
|
+
readonly last_login_at: string;
|
|
779
|
+
};
|
|
780
|
+
/**
|
|
781
|
+
* Request to disconnect OAuth provider.
|
|
782
|
+
*/
|
|
783
|
+
type OAuthDisconnectRequestRequest = {
|
|
784
|
+
/**
|
|
785
|
+
* OAuth provider to disconnect
|
|
786
|
+
*
|
|
787
|
+
* * `github` - GitHub
|
|
788
|
+
*/
|
|
789
|
+
provider: OAuthProviderEnum;
|
|
790
|
+
};
|
|
791
|
+
/**
|
|
792
|
+
* Error response for OAuth endpoints.
|
|
793
|
+
*/
|
|
794
|
+
type OAuthError = {
|
|
795
|
+
/**
|
|
796
|
+
* Error code
|
|
797
|
+
*/
|
|
798
|
+
error: string;
|
|
799
|
+
/**
|
|
800
|
+
* Human-readable error description
|
|
801
|
+
*/
|
|
802
|
+
error_description?: string;
|
|
803
|
+
};
|
|
804
|
+
/**
|
|
805
|
+
* * `github` - GitHub
|
|
806
|
+
*/
|
|
807
|
+
declare enum OAuthProviderEnum {
|
|
808
|
+
GITHUB = "github"
|
|
809
|
+
}
|
|
810
|
+
/**
|
|
811
|
+
* Response with available OAuth providers.
|
|
812
|
+
*/
|
|
813
|
+
type OAuthProvidersResponse = {
|
|
814
|
+
/**
|
|
815
|
+
* List of available OAuth providers
|
|
816
|
+
*/
|
|
817
|
+
providers: Array<{
|
|
818
|
+
[key: string]: unknown;
|
|
819
|
+
}>;
|
|
820
|
+
};
|
|
821
|
+
/**
|
|
822
|
+
* Response with JWT tokens after OAuth authentication.
|
|
823
|
+
*
|
|
824
|
+
* When 2FA is required:
|
|
825
|
+
* - requires_2fa: True
|
|
662
826
|
* - session_id: UUID of 2FA verification session
|
|
663
|
-
* - refresh/
|
|
827
|
+
* - access/refresh/user: null
|
|
664
828
|
*
|
|
665
829
|
* When 2FA is not required:
|
|
666
830
|
* - requires_2fa: False
|
|
667
831
|
* - session_id: null
|
|
668
|
-
* - refresh/
|
|
832
|
+
* - access/refresh/user: populated
|
|
669
833
|
*/
|
|
670
|
-
type
|
|
834
|
+
type OAuthTokenResponse = {
|
|
671
835
|
/**
|
|
672
|
-
*
|
|
836
|
+
* True if 2FA verification is required
|
|
837
|
+
*/
|
|
838
|
+
requires_2fa?: boolean;
|
|
839
|
+
/**
|
|
840
|
+
* 2FA session ID (only when requires_2fa=True)
|
|
841
|
+
*/
|
|
842
|
+
session_id?: string | null;
|
|
843
|
+
/**
|
|
844
|
+
* JWT access token (null when requires_2fa=True)
|
|
673
845
|
*/
|
|
674
846
|
access?: string | null;
|
|
675
847
|
/**
|
|
676
|
-
* JWT refresh token (
|
|
848
|
+
* JWT refresh token (null when requires_2fa=True)
|
|
677
849
|
*/
|
|
678
850
|
refresh?: string | null;
|
|
851
|
+
/**
|
|
852
|
+
* Authenticated user info (null when requires_2fa=True)
|
|
853
|
+
*/
|
|
854
|
+
user?: {
|
|
855
|
+
[key: string]: unknown;
|
|
856
|
+
} | null;
|
|
857
|
+
/**
|
|
858
|
+
* True if a new user was created during this OAuth flow
|
|
859
|
+
*/
|
|
860
|
+
is_new_user: boolean;
|
|
861
|
+
/**
|
|
862
|
+
* True if a new OAuth connection was created
|
|
863
|
+
*/
|
|
864
|
+
is_new_connection: boolean;
|
|
865
|
+
/**
|
|
866
|
+
* True if user should be prompted to enable 2FA
|
|
867
|
+
*/
|
|
868
|
+
should_prompt_2fa?: boolean;
|
|
869
|
+
};
|
|
870
|
+
/**
|
|
871
|
+
* Typed error response for OTP operations.
|
|
872
|
+
*
|
|
873
|
+
* error_code values:
|
|
874
|
+
* - invalid_identifier — malformed email
|
|
875
|
+
* - cooldown — too soon after last request (retry_after = seconds)
|
|
876
|
+
* - hourly_limit — hourly quota exceeded (retry_after = seconds until reset)
|
|
877
|
+
* - daily_limit — daily quota exceeded (retry_after = seconds until reset)
|
|
878
|
+
* - rate_limited — IP-level rate limit hit (no retry_after)
|
|
879
|
+
* - user_creation_failed — internal error creating account
|
|
880
|
+
* - send_failed — transport error (email / SMS)
|
|
881
|
+
* - internal_error — unexpected server error
|
|
882
|
+
*/
|
|
883
|
+
type OtpErrorResponse = {
|
|
884
|
+
/**
|
|
885
|
+
* Human-readable error message
|
|
886
|
+
*/
|
|
887
|
+
error: string;
|
|
888
|
+
/**
|
|
889
|
+
* Machine-readable error code
|
|
890
|
+
*/
|
|
891
|
+
error_code?: string | null;
|
|
892
|
+
/**
|
|
893
|
+
* Seconds until the client may retry (present only for rate-limit errors)
|
|
894
|
+
*/
|
|
895
|
+
retry_after?: number | null;
|
|
896
|
+
};
|
|
897
|
+
/**
|
|
898
|
+
* Serializer for OTP request.
|
|
899
|
+
*/
|
|
900
|
+
type OtpRequestRequest = {
|
|
901
|
+
/**
|
|
902
|
+
* Email address for OTP delivery
|
|
903
|
+
*/
|
|
904
|
+
identifier: string;
|
|
905
|
+
/**
|
|
906
|
+
* Source URL for tracking registration (e.g., https://my.djangocfg.com)
|
|
907
|
+
*/
|
|
908
|
+
source_url?: string;
|
|
909
|
+
};
|
|
910
|
+
/**
|
|
911
|
+
* OTP request response.
|
|
912
|
+
*/
|
|
913
|
+
type OtpRequestResponse = {
|
|
914
|
+
/**
|
|
915
|
+
* Success message
|
|
916
|
+
*/
|
|
917
|
+
message: string;
|
|
918
|
+
};
|
|
919
|
+
/**
|
|
920
|
+
* Serializer for OTP verification.
|
|
921
|
+
*/
|
|
922
|
+
type OtpVerifyRequest = {
|
|
923
|
+
/**
|
|
924
|
+
* Email address used for OTP request
|
|
925
|
+
*/
|
|
926
|
+
identifier: string;
|
|
927
|
+
otp: string;
|
|
928
|
+
/**
|
|
929
|
+
* Source URL for tracking login (e.g., https://my.djangocfg.com)
|
|
930
|
+
*/
|
|
931
|
+
source_url?: string;
|
|
932
|
+
};
|
|
933
|
+
/**
|
|
934
|
+
* OTP verification response.
|
|
935
|
+
*
|
|
936
|
+
* When 2FA is required:
|
|
937
|
+
* - requires_2fa: True
|
|
938
|
+
* - session_id: UUID of 2FA verification session
|
|
939
|
+
* - refresh/access/user: null
|
|
940
|
+
*
|
|
941
|
+
* When 2FA is not required:
|
|
942
|
+
* - requires_2fa: False
|
|
943
|
+
* - session_id: null
|
|
944
|
+
* - refresh/access/user: populated
|
|
945
|
+
*/
|
|
946
|
+
type OtpVerifyResponse = {
|
|
679
947
|
/**
|
|
680
948
|
* Whether 2FA verification is required
|
|
681
949
|
*/
|
|
@@ -685,31 +953,37 @@ type OtpVerifyResponse = {
|
|
|
685
953
|
*/
|
|
686
954
|
session_id?: string | null;
|
|
687
955
|
/**
|
|
688
|
-
*
|
|
956
|
+
* JWT refresh token (if requires_2fa is False)
|
|
689
957
|
*/
|
|
690
|
-
|
|
958
|
+
refresh?: string | null;
|
|
959
|
+
/**
|
|
960
|
+
* JWT access token (if requires_2fa is False)
|
|
961
|
+
*/
|
|
962
|
+
access?: string | null;
|
|
691
963
|
/**
|
|
692
964
|
* User information (if requires_2fa is False)
|
|
693
965
|
*/
|
|
694
966
|
user?: User | null;
|
|
967
|
+
/**
|
|
968
|
+
* Whether user should be prompted to enable 2FA
|
|
969
|
+
*/
|
|
970
|
+
should_prompt_2fa?: boolean;
|
|
695
971
|
};
|
|
696
972
|
/**
|
|
697
973
|
* Serializer for updating user profile.
|
|
698
974
|
*/
|
|
699
975
|
type PatchedCfgUserUpdateRequest = {
|
|
700
|
-
company?: string;
|
|
701
976
|
first_name?: string;
|
|
702
|
-
language?: string;
|
|
703
977
|
last_name?: string;
|
|
978
|
+
company?: string;
|
|
704
979
|
phone?: string;
|
|
705
980
|
position?: string;
|
|
981
|
+
language?: string;
|
|
982
|
+
/**
|
|
983
|
+
* IANA timezone name (e.g. 'Asia/Seoul'). Auto-detected from browser via X-Timezone header.
|
|
984
|
+
*/
|
|
985
|
+
timezone?: string;
|
|
706
986
|
};
|
|
707
|
-
/**
|
|
708
|
-
* * `github` - GitHub
|
|
709
|
-
*/
|
|
710
|
-
declare enum ProviderEnum {
|
|
711
|
-
GITHUB = "github"
|
|
712
|
-
}
|
|
713
987
|
/**
|
|
714
988
|
* Serializer for starting 2FA setup.
|
|
715
989
|
*/
|
|
@@ -728,9 +1002,9 @@ type SetupResponse = {
|
|
|
728
1002
|
*/
|
|
729
1003
|
device_id: string;
|
|
730
1004
|
/**
|
|
731
|
-
*
|
|
1005
|
+
* Base32-encoded TOTP secret (for manual entry)
|
|
732
1006
|
*/
|
|
733
|
-
|
|
1007
|
+
secret: string;
|
|
734
1008
|
/**
|
|
735
1009
|
* otpauth:// URI for QR code generation
|
|
736
1010
|
*/
|
|
@@ -740,9 +1014,9 @@ type SetupResponse = {
|
|
|
740
1014
|
*/
|
|
741
1015
|
qr_code_base64: string;
|
|
742
1016
|
/**
|
|
743
|
-
*
|
|
1017
|
+
* Seconds until setup expires (typically 600 = 10 minutes)
|
|
744
1018
|
*/
|
|
745
|
-
|
|
1019
|
+
expires_in: number;
|
|
746
1020
|
};
|
|
747
1021
|
type TokenRefresh = {
|
|
748
1022
|
readonly access: string;
|
|
@@ -755,24 +1029,31 @@ type TokenRefreshRequest = {
|
|
|
755
1029
|
* User data returned after 2FA verification.
|
|
756
1030
|
*/
|
|
757
1031
|
type TotpVerifyUser = {
|
|
758
|
-
readonly
|
|
759
|
-
company?: string;
|
|
760
|
-
readonly date_joined: string;
|
|
761
|
-
/**
|
|
762
|
-
* Get formatted username for display.
|
|
763
|
-
*/
|
|
764
|
-
readonly display_username: string;
|
|
1032
|
+
readonly id: number;
|
|
765
1033
|
readonly email: string;
|
|
766
1034
|
first_name?: string;
|
|
1035
|
+
last_name?: string;
|
|
767
1036
|
/**
|
|
768
1037
|
* Get user's full name.
|
|
769
1038
|
*/
|
|
770
1039
|
readonly full_name: string;
|
|
771
|
-
readonly id: number;
|
|
772
1040
|
/**
|
|
773
1041
|
* Get user's initials for avatar fallback.
|
|
774
1042
|
*/
|
|
775
1043
|
readonly initials: string;
|
|
1044
|
+
/**
|
|
1045
|
+
* Get formatted username for display.
|
|
1046
|
+
*/
|
|
1047
|
+
readonly display_username: string;
|
|
1048
|
+
company?: string;
|
|
1049
|
+
phone?: string;
|
|
1050
|
+
position?: string;
|
|
1051
|
+
language?: string;
|
|
1052
|
+
/**
|
|
1053
|
+
* IANA timezone name (e.g. 'Asia/Seoul'). Auto-detected from browser via X-Timezone header.
|
|
1054
|
+
*/
|
|
1055
|
+
timezone?: string;
|
|
1056
|
+
readonly avatar: string | null;
|
|
776
1057
|
/**
|
|
777
1058
|
* Staff status
|
|
778
1059
|
*
|
|
@@ -785,36 +1066,40 @@ type TotpVerifyUser = {
|
|
|
785
1066
|
* Designates that this user has all permissions without explicitly assigning them.
|
|
786
1067
|
*/
|
|
787
1068
|
readonly is_superuser: boolean;
|
|
788
|
-
|
|
1069
|
+
readonly date_joined: string;
|
|
789
1070
|
readonly last_login: string | null;
|
|
790
|
-
last_name?: string;
|
|
791
|
-
phone?: string;
|
|
792
|
-
position?: string;
|
|
793
1071
|
readonly unanswered_messages_count: number;
|
|
1072
|
+
readonly api_key: string | null;
|
|
794
1073
|
};
|
|
795
1074
|
/**
|
|
796
1075
|
* Serializer for user details.
|
|
797
1076
|
*/
|
|
798
1077
|
type User = {
|
|
799
|
-
readonly
|
|
800
|
-
readonly centrifugo: CentrifugoToken | null;
|
|
801
|
-
company?: string;
|
|
802
|
-
readonly date_joined: string;
|
|
803
|
-
/**
|
|
804
|
-
* Get formatted username for display.
|
|
805
|
-
*/
|
|
806
|
-
readonly display_username: string;
|
|
1078
|
+
readonly id: number;
|
|
807
1079
|
readonly email: string;
|
|
808
1080
|
first_name?: string;
|
|
1081
|
+
last_name?: string;
|
|
809
1082
|
/**
|
|
810
1083
|
* Get user's full name.
|
|
811
1084
|
*/
|
|
812
1085
|
readonly full_name: string;
|
|
813
|
-
readonly id: number;
|
|
814
1086
|
/**
|
|
815
1087
|
* Get user's initials for avatar fallback.
|
|
816
1088
|
*/
|
|
817
1089
|
readonly initials: string;
|
|
1090
|
+
/**
|
|
1091
|
+
* Get formatted username for display.
|
|
1092
|
+
*/
|
|
1093
|
+
readonly display_username: string;
|
|
1094
|
+
company?: string;
|
|
1095
|
+
phone?: string;
|
|
1096
|
+
position?: string;
|
|
1097
|
+
language?: string;
|
|
1098
|
+
/**
|
|
1099
|
+
* IANA timezone name (e.g. 'Asia/Seoul'). Auto-detected from browser via X-Timezone header.
|
|
1100
|
+
*/
|
|
1101
|
+
timezone?: string;
|
|
1102
|
+
readonly avatar: string | null;
|
|
818
1103
|
/**
|
|
819
1104
|
* Staff status
|
|
820
1105
|
*
|
|
@@ -827,65 +1112,72 @@ type User = {
|
|
|
827
1112
|
* Designates that this user has all permissions without explicitly assigning them.
|
|
828
1113
|
*/
|
|
829
1114
|
readonly is_superuser: boolean;
|
|
830
|
-
|
|
1115
|
+
readonly date_joined: string;
|
|
831
1116
|
readonly last_login: string | null;
|
|
832
|
-
last_name?: string;
|
|
833
|
-
phone?: string;
|
|
834
|
-
position?: string;
|
|
835
1117
|
readonly unanswered_messages_count: number;
|
|
1118
|
+
readonly centrifugo: CentrifugoToken | null;
|
|
1119
|
+
readonly api_key: string | null;
|
|
836
1120
|
};
|
|
837
1121
|
/**
|
|
838
1122
|
* Serializer for backup code verification during login.
|
|
839
1123
|
*/
|
|
840
1124
|
type VerifyBackupRequest = {
|
|
841
|
-
/**
|
|
842
|
-
* 8-character backup recovery code
|
|
843
|
-
*/
|
|
844
|
-
backup_code: string;
|
|
845
1125
|
/**
|
|
846
1126
|
* 2FA session ID from login response
|
|
847
1127
|
*/
|
|
848
1128
|
session_id: string;
|
|
1129
|
+
/**
|
|
1130
|
+
* 8-character backup recovery code
|
|
1131
|
+
*/
|
|
1132
|
+
backup_code: string;
|
|
849
1133
|
};
|
|
850
1134
|
/**
|
|
851
1135
|
* Serializer for TOTP code verification during login.
|
|
852
1136
|
*/
|
|
853
1137
|
type VerifyRequest = {
|
|
854
|
-
/**
|
|
855
|
-
* 6-digit TOTP code from authenticator app
|
|
856
|
-
*/
|
|
857
|
-
code: string;
|
|
858
1138
|
/**
|
|
859
1139
|
* 2FA session ID from login response
|
|
860
1140
|
*/
|
|
861
1141
|
session_id: string;
|
|
1142
|
+
/**
|
|
1143
|
+
* 6-digit TOTP code from authenticator app
|
|
1144
|
+
*/
|
|
1145
|
+
code: string;
|
|
862
1146
|
};
|
|
863
1147
|
/**
|
|
864
1148
|
* Response serializer for successful 2FA verification.
|
|
865
1149
|
*/
|
|
866
1150
|
type VerifyResponse = {
|
|
1151
|
+
message: string;
|
|
867
1152
|
/**
|
|
868
1153
|
* JWT access token
|
|
869
1154
|
*/
|
|
870
1155
|
access_token: string;
|
|
871
|
-
message: string;
|
|
872
1156
|
/**
|
|
873
1157
|
* JWT refresh token
|
|
874
1158
|
*/
|
|
875
1159
|
refresh_token: string;
|
|
876
|
-
/**
|
|
877
|
-
* Number of remaining backup codes (if backup code was used)
|
|
878
|
-
*/
|
|
879
|
-
remaining_backup_codes?: number;
|
|
880
1160
|
/**
|
|
881
1161
|
* User profile data
|
|
882
1162
|
*/
|
|
883
1163
|
user: TotpVerifyUser;
|
|
1164
|
+
/**
|
|
1165
|
+
* Number of remaining backup codes (if backup code was used)
|
|
1166
|
+
*/
|
|
1167
|
+
remaining_backup_codes?: number;
|
|
884
1168
|
/**
|
|
885
1169
|
* Warning message (e.g., low backup codes)
|
|
886
1170
|
*/
|
|
887
1171
|
warning?: string;
|
|
888
1172
|
};
|
|
1173
|
+
type CfgAccountsOauthConnectionsResponse200AutoRef = Array<OAuthConnection>;
|
|
1174
|
+
type CfgAccountsOauthDisconnectResponse200AutoRef = {
|
|
1175
|
+
message?: string;
|
|
1176
|
+
};
|
|
1177
|
+
/**
|
|
1178
|
+
* 2FA disabled successfully
|
|
1179
|
+
*/
|
|
1180
|
+
type CfgTotpDisableResponse200AutoRef = unknown;
|
|
889
1181
|
/**
|
|
890
1182
|
* Response serializer for device list endpoint.
|
|
891
1183
|
*/
|
|
@@ -907,14 +1199,6 @@ type DeviceListResponseWritable = {
|
|
|
907
1199
|
* - refresh/access/user: populated
|
|
908
1200
|
*/
|
|
909
1201
|
type OtpVerifyResponseWritable = {
|
|
910
|
-
/**
|
|
911
|
-
* JWT access token (if requires_2fa is False)
|
|
912
|
-
*/
|
|
913
|
-
access?: string | null;
|
|
914
|
-
/**
|
|
915
|
-
* JWT refresh token (if requires_2fa is False)
|
|
916
|
-
*/
|
|
917
|
-
refresh?: string | null;
|
|
918
1202
|
/**
|
|
919
1203
|
* Whether 2FA verification is required
|
|
920
1204
|
*/
|
|
@@ -924,13 +1208,21 @@ type OtpVerifyResponseWritable = {
|
|
|
924
1208
|
*/
|
|
925
1209
|
session_id?: string | null;
|
|
926
1210
|
/**
|
|
927
|
-
*
|
|
1211
|
+
* JWT refresh token (if requires_2fa is False)
|
|
928
1212
|
*/
|
|
929
|
-
|
|
1213
|
+
refresh?: string | null;
|
|
1214
|
+
/**
|
|
1215
|
+
* JWT access token (if requires_2fa is False)
|
|
1216
|
+
*/
|
|
1217
|
+
access?: string | null;
|
|
930
1218
|
/**
|
|
931
1219
|
* User information (if requires_2fa is False)
|
|
932
1220
|
*/
|
|
933
1221
|
user?: UserWritable | null;
|
|
1222
|
+
/**
|
|
1223
|
+
* Whether user should be prompted to enable 2FA
|
|
1224
|
+
*/
|
|
1225
|
+
should_prompt_2fa?: boolean;
|
|
934
1226
|
};
|
|
935
1227
|
type TokenRefreshWritable = {
|
|
936
1228
|
refresh: string;
|
|
@@ -939,50 +1231,100 @@ type TokenRefreshWritable = {
|
|
|
939
1231
|
* User data returned after 2FA verification.
|
|
940
1232
|
*/
|
|
941
1233
|
type TotpVerifyUserWritable = {
|
|
942
|
-
company?: string;
|
|
943
1234
|
first_name?: string;
|
|
944
|
-
language?: string;
|
|
945
1235
|
last_name?: string;
|
|
1236
|
+
company?: string;
|
|
946
1237
|
phone?: string;
|
|
947
1238
|
position?: string;
|
|
1239
|
+
language?: string;
|
|
1240
|
+
/**
|
|
1241
|
+
* IANA timezone name (e.g. 'Asia/Seoul'). Auto-detected from browser via X-Timezone header.
|
|
1242
|
+
*/
|
|
1243
|
+
timezone?: string;
|
|
948
1244
|
};
|
|
949
1245
|
/**
|
|
950
1246
|
* Serializer for user details.
|
|
951
1247
|
*/
|
|
952
1248
|
type UserWritable = {
|
|
953
|
-
company?: string;
|
|
954
1249
|
first_name?: string;
|
|
955
|
-
language?: string;
|
|
956
1250
|
last_name?: string;
|
|
1251
|
+
company?: string;
|
|
957
1252
|
phone?: string;
|
|
958
1253
|
position?: string;
|
|
1254
|
+
language?: string;
|
|
1255
|
+
/**
|
|
1256
|
+
* IANA timezone name (e.g. 'Asia/Seoul'). Auto-detected from browser via X-Timezone header.
|
|
1257
|
+
*/
|
|
1258
|
+
timezone?: string;
|
|
959
1259
|
};
|
|
960
1260
|
/**
|
|
961
1261
|
* Response serializer for successful 2FA verification.
|
|
962
1262
|
*/
|
|
963
1263
|
type VerifyResponseWritable = {
|
|
1264
|
+
message: string;
|
|
964
1265
|
/**
|
|
965
1266
|
* JWT access token
|
|
966
1267
|
*/
|
|
967
1268
|
access_token: string;
|
|
968
|
-
message: string;
|
|
969
1269
|
/**
|
|
970
1270
|
* JWT refresh token
|
|
971
1271
|
*/
|
|
972
1272
|
refresh_token: string;
|
|
973
|
-
/**
|
|
974
|
-
* Number of remaining backup codes (if backup code was used)
|
|
975
|
-
*/
|
|
976
|
-
remaining_backup_codes?: number;
|
|
977
1273
|
/**
|
|
978
1274
|
* User profile data
|
|
979
1275
|
*/
|
|
980
1276
|
user: TotpVerifyUserWritable;
|
|
1277
|
+
/**
|
|
1278
|
+
* Number of remaining backup codes (if backup code was used)
|
|
1279
|
+
*/
|
|
1280
|
+
remaining_backup_codes?: number;
|
|
981
1281
|
/**
|
|
982
1282
|
* Warning message (e.g., low backup codes)
|
|
983
1283
|
*/
|
|
984
1284
|
warning?: string;
|
|
985
1285
|
};
|
|
1286
|
+
type CfgAccountsApiKeyRetrieveData = {
|
|
1287
|
+
body?: never;
|
|
1288
|
+
path?: never;
|
|
1289
|
+
query?: never;
|
|
1290
|
+
url: '/cfg/accounts/api-key/';
|
|
1291
|
+
};
|
|
1292
|
+
type CfgAccountsApiKeyRetrieveErrors = {
|
|
1293
|
+
/**
|
|
1294
|
+
* Authentication credentials were not provided.
|
|
1295
|
+
*/
|
|
1296
|
+
401: unknown;
|
|
1297
|
+
};
|
|
1298
|
+
type CfgAccountsApiKeyRetrieveResponses = {
|
|
1299
|
+
200: ApiKey;
|
|
1300
|
+
};
|
|
1301
|
+
type CfgAccountsApiKeyRetrieveResponse = CfgAccountsApiKeyRetrieveResponses[keyof CfgAccountsApiKeyRetrieveResponses];
|
|
1302
|
+
type CfgAccountsApiKeyRegenerateCreateData = {
|
|
1303
|
+
body: ApiKeyRequest;
|
|
1304
|
+
path?: never;
|
|
1305
|
+
query?: never;
|
|
1306
|
+
url: '/cfg/accounts/api-key/regenerate/';
|
|
1307
|
+
};
|
|
1308
|
+
type CfgAccountsApiKeyRegenerateCreateErrors = {
|
|
1309
|
+
/**
|
|
1310
|
+
* Authentication credentials were not provided.
|
|
1311
|
+
*/
|
|
1312
|
+
401: unknown;
|
|
1313
|
+
};
|
|
1314
|
+
type CfgAccountsApiKeyRegenerateCreateResponses = {
|
|
1315
|
+
200: ApiKeyRegenerate;
|
|
1316
|
+
};
|
|
1317
|
+
type CfgAccountsApiKeyRegenerateCreateResponse = CfgAccountsApiKeyRegenerateCreateResponses[keyof CfgAccountsApiKeyRegenerateCreateResponses];
|
|
1318
|
+
type CfgAccountsApiKeyTestCreateData = {
|
|
1319
|
+
body: ApiKeyTestRequest;
|
|
1320
|
+
path?: never;
|
|
1321
|
+
query?: never;
|
|
1322
|
+
url: '/cfg/accounts/api-key/test/';
|
|
1323
|
+
};
|
|
1324
|
+
type CfgAccountsApiKeyTestCreateResponses = {
|
|
1325
|
+
200: ApiKeyTestResult;
|
|
1326
|
+
};
|
|
1327
|
+
type CfgAccountsApiKeyTestCreateResponse = CfgAccountsApiKeyTestCreateResponses[keyof CfgAccountsApiKeyTestCreateResponses];
|
|
986
1328
|
type CfgAccountsOauthConnectionsListData = {
|
|
987
1329
|
body?: never;
|
|
988
1330
|
path?: never;
|
|
@@ -990,7 +1332,7 @@ type CfgAccountsOauthConnectionsListData = {
|
|
|
990
1332
|
url: '/cfg/accounts/oauth/connections/';
|
|
991
1333
|
};
|
|
992
1334
|
type CfgAccountsOauthConnectionsListResponses = {
|
|
993
|
-
200:
|
|
1335
|
+
200: CfgAccountsOauthConnectionsResponse200AutoRef;
|
|
994
1336
|
};
|
|
995
1337
|
type CfgAccountsOauthConnectionsListResponse = CfgAccountsOauthConnectionsListResponses[keyof CfgAccountsOauthConnectionsListResponses];
|
|
996
1338
|
type CfgAccountsOauthDisconnectCreateData = {
|
|
@@ -1005,9 +1347,7 @@ type CfgAccountsOauthDisconnectCreateErrors = {
|
|
|
1005
1347
|
};
|
|
1006
1348
|
type CfgAccountsOauthDisconnectCreateError = CfgAccountsOauthDisconnectCreateErrors[keyof CfgAccountsOauthDisconnectCreateErrors];
|
|
1007
1349
|
type CfgAccountsOauthDisconnectCreateResponses = {
|
|
1008
|
-
200:
|
|
1009
|
-
message?: string;
|
|
1010
|
-
};
|
|
1350
|
+
200: CfgAccountsOauthDisconnectResponse200AutoRef;
|
|
1011
1351
|
};
|
|
1012
1352
|
type CfgAccountsOauthDisconnectCreateResponse = CfgAccountsOauthDisconnectCreateResponses[keyof CfgAccountsOauthDisconnectCreateResponses];
|
|
1013
1353
|
type CfgAccountsOauthGithubAuthorizeCreateData = {
|
|
@@ -1106,868 +1446,320 @@ type CfgAccountsProfileAvatarCreateData = {
|
|
|
1106
1446
|
query?: never;
|
|
1107
1447
|
url: '/cfg/accounts/profile/avatar/';
|
|
1108
1448
|
};
|
|
1109
|
-
type CfgAccountsProfileAvatarCreateErrors = {
|
|
1110
|
-
/**
|
|
1111
|
-
* Invalid file or validation error.
|
|
1112
|
-
*/
|
|
1113
|
-
400: unknown;
|
|
1114
|
-
/**
|
|
1115
|
-
* Authentication credentials were not provided.
|
|
1116
|
-
*/
|
|
1117
|
-
401: unknown;
|
|
1118
|
-
};
|
|
1119
|
-
type CfgAccountsProfileAvatarCreateResponses = {
|
|
1120
|
-
200: User;
|
|
1121
|
-
};
|
|
1122
|
-
type CfgAccountsProfileAvatarCreateResponse = CfgAccountsProfileAvatarCreateResponses[keyof CfgAccountsProfileAvatarCreateResponses];
|
|
1123
|
-
type CfgAccountsProfileDeleteCreateData = {
|
|
1124
|
-
body?: never;
|
|
1125
|
-
path?: never;
|
|
1126
|
-
query?: never;
|
|
1127
|
-
url: '/cfg/accounts/profile/delete/';
|
|
1128
|
-
};
|
|
1129
|
-
type CfgAccountsProfileDeleteCreateErrors = {
|
|
1130
|
-
/**
|
|
1131
|
-
* Account is already deleted.
|
|
1132
|
-
*/
|
|
1133
|
-
400: unknown;
|
|
1134
|
-
/**
|
|
1135
|
-
* Authentication credentials were not provided.
|
|
1136
|
-
*/
|
|
1137
|
-
401: unknown;
|
|
1138
|
-
};
|
|
1139
|
-
type CfgAccountsProfileDeleteCreateResponses = {
|
|
1140
|
-
200: AccountDeleteResponse;
|
|
1141
|
-
};
|
|
1142
|
-
type CfgAccountsProfileDeleteCreateResponse = CfgAccountsProfileDeleteCreateResponses[keyof CfgAccountsProfileDeleteCreateResponses];
|
|
1143
|
-
type CfgAccountsProfilePartialPartialUpdateData = {
|
|
1144
|
-
body?: PatchedCfgUserUpdateRequest;
|
|
1145
|
-
path?: never;
|
|
1146
|
-
query?: never;
|
|
1147
|
-
url: '/cfg/accounts/profile/partial/';
|
|
1148
|
-
};
|
|
1149
|
-
type CfgAccountsProfilePartialPartialUpdateErrors = {
|
|
1150
|
-
/**
|
|
1151
|
-
* Invalid data provided.
|
|
1152
|
-
*/
|
|
1153
|
-
400: unknown;
|
|
1154
|
-
/**
|
|
1155
|
-
* Authentication credentials were not provided.
|
|
1156
|
-
*/
|
|
1157
|
-
401: unknown;
|
|
1158
|
-
};
|
|
1159
|
-
type CfgAccountsProfilePartialPartialUpdateResponses = {
|
|
1160
|
-
200: User;
|
|
1161
|
-
};
|
|
1162
|
-
type CfgAccountsProfilePartialPartialUpdateResponse = CfgAccountsProfilePartialPartialUpdateResponses[keyof CfgAccountsProfilePartialPartialUpdateResponses];
|
|
1163
|
-
type CfgAccountsProfilePartialUpdateData = {
|
|
1164
|
-
body?: CfgUserUpdateRequest;
|
|
1165
|
-
path?: never;
|
|
1166
|
-
query?: never;
|
|
1167
|
-
url: '/cfg/accounts/profile/partial/';
|
|
1168
|
-
};
|
|
1169
|
-
type CfgAccountsProfilePartialUpdateErrors = {
|
|
1170
|
-
/**
|
|
1171
|
-
* Invalid data provided.
|
|
1172
|
-
*/
|
|
1173
|
-
400: unknown;
|
|
1174
|
-
/**
|
|
1175
|
-
* Authentication credentials were not provided.
|
|
1176
|
-
*/
|
|
1177
|
-
401: unknown;
|
|
1178
|
-
};
|
|
1179
|
-
type CfgAccountsProfilePartialUpdateResponses = {
|
|
1180
|
-
200: User;
|
|
1181
|
-
};
|
|
1182
|
-
type CfgAccountsProfilePartialUpdateResponse = CfgAccountsProfilePartialUpdateResponses[keyof CfgAccountsProfilePartialUpdateResponses];
|
|
1183
|
-
type CfgAccountsProfileUpdatePartialUpdateData = {
|
|
1184
|
-
body?: PatchedCfgUserUpdateRequest;
|
|
1185
|
-
path?: never;
|
|
1186
|
-
query?: never;
|
|
1187
|
-
url: '/cfg/accounts/profile/update/';
|
|
1188
|
-
};
|
|
1189
|
-
type CfgAccountsProfileUpdatePartialUpdateErrors = {
|
|
1190
|
-
/**
|
|
1191
|
-
* Invalid data provided.
|
|
1192
|
-
*/
|
|
1193
|
-
400: unknown;
|
|
1194
|
-
/**
|
|
1195
|
-
* Authentication credentials were not provided.
|
|
1196
|
-
*/
|
|
1197
|
-
401: unknown;
|
|
1198
|
-
};
|
|
1199
|
-
type CfgAccountsProfileUpdatePartialUpdateResponses = {
|
|
1200
|
-
200: User;
|
|
1201
|
-
};
|
|
1202
|
-
type CfgAccountsProfileUpdatePartialUpdateResponse = CfgAccountsProfileUpdatePartialUpdateResponses[keyof CfgAccountsProfileUpdatePartialUpdateResponses];
|
|
1203
|
-
type CfgAccountsProfileUpdateUpdateData = {
|
|
1204
|
-
body?: CfgUserUpdateRequest;
|
|
1205
|
-
path?: never;
|
|
1206
|
-
query?: never;
|
|
1207
|
-
url: '/cfg/accounts/profile/update/';
|
|
1208
|
-
};
|
|
1209
|
-
type CfgAccountsProfileUpdateUpdateErrors = {
|
|
1210
|
-
/**
|
|
1211
|
-
* Invalid data provided.
|
|
1212
|
-
*/
|
|
1213
|
-
400: unknown;
|
|
1214
|
-
/**
|
|
1215
|
-
* Authentication credentials were not provided.
|
|
1216
|
-
*/
|
|
1217
|
-
401: unknown;
|
|
1218
|
-
};
|
|
1219
|
-
type CfgAccountsProfileUpdateUpdateResponses = {
|
|
1220
|
-
200: User;
|
|
1221
|
-
};
|
|
1222
|
-
type CfgAccountsProfileUpdateUpdateResponse = CfgAccountsProfileUpdateUpdateResponses[keyof CfgAccountsProfileUpdateUpdateResponses];
|
|
1223
|
-
type CfgAccountsTokenRefreshCreateData = {
|
|
1224
|
-
body: TokenRefreshRequest;
|
|
1225
|
-
path?: never;
|
|
1226
|
-
query?: never;
|
|
1227
|
-
url: '/cfg/accounts/token/refresh/';
|
|
1228
|
-
};
|
|
1229
|
-
type CfgAccountsTokenRefreshCreateResponses = {
|
|
1230
|
-
200: TokenRefresh;
|
|
1231
|
-
};
|
|
1232
|
-
type CfgAccountsTokenRefreshCreateResponse = CfgAccountsTokenRefreshCreateResponses[keyof CfgAccountsTokenRefreshCreateResponses];
|
|
1233
|
-
type CfgCentrifugoAuthTokenRetrieveData = {
|
|
1234
|
-
body?: never;
|
|
1235
|
-
path?: never;
|
|
1236
|
-
query?: never;
|
|
1237
|
-
url: '/cfg/centrifugo/auth/token/';
|
|
1238
|
-
};
|
|
1239
|
-
type CfgCentrifugoAuthTokenRetrieveErrors = {
|
|
1240
|
-
/**
|
|
1241
|
-
* Unauthorized - authentication required
|
|
1242
|
-
*/
|
|
1243
|
-
401: unknown;
|
|
1244
|
-
/**
|
|
1245
|
-
* Server error
|
|
1246
|
-
*/
|
|
1247
|
-
500: unknown;
|
|
1248
|
-
};
|
|
1249
|
-
type CfgCentrifugoAuthTokenRetrieveResponses = {
|
|
1250
|
-
200: ConnectionTokenResponse;
|
|
1251
|
-
};
|
|
1252
|
-
type CfgCentrifugoAuthTokenRetrieveResponse = CfgCentrifugoAuthTokenRetrieveResponses[keyof CfgCentrifugoAuthTokenRetrieveResponses];
|
|
1253
|
-
type CfgTotpBackupCodesRetrieveData = {
|
|
1254
|
-
body?: never;
|
|
1255
|
-
path?: never;
|
|
1256
|
-
query?: never;
|
|
1257
|
-
url: '/cfg/totp/backup-codes/';
|
|
1258
|
-
};
|
|
1259
|
-
type CfgTotpBackupCodesRetrieveResponses = {
|
|
1260
|
-
200: BackupCodesStatus;
|
|
1261
|
-
};
|
|
1262
|
-
type CfgTotpBackupCodesRetrieveResponse = CfgTotpBackupCodesRetrieveResponses[keyof CfgTotpBackupCodesRetrieveResponses];
|
|
1263
|
-
type CfgTotpBackupCodesRegenerateCreateData = {
|
|
1264
|
-
body: BackupCodesRegenerateRequest;
|
|
1265
|
-
path?: never;
|
|
1266
|
-
query?: never;
|
|
1267
|
-
url: '/cfg/totp/backup-codes/regenerate/';
|
|
1268
|
-
};
|
|
1269
|
-
type CfgTotpBackupCodesRegenerateCreateErrors = {
|
|
1270
|
-
/**
|
|
1271
|
-
* Invalid code or 2FA not enabled
|
|
1272
|
-
*/
|
|
1273
|
-
400: unknown;
|
|
1274
|
-
};
|
|
1275
|
-
type CfgTotpBackupCodesRegenerateCreateResponses = {
|
|
1276
|
-
200: BackupCodesRegenerateResponse;
|
|
1277
|
-
};
|
|
1278
|
-
type CfgTotpBackupCodesRegenerateCreateResponse = CfgTotpBackupCodesRegenerateCreateResponses[keyof CfgTotpBackupCodesRegenerateCreateResponses];
|
|
1279
|
-
type CfgTotpDevicesRetrieveData = {
|
|
1280
|
-
body?: never;
|
|
1281
|
-
path?: never;
|
|
1282
|
-
query?: never;
|
|
1283
|
-
url: '/cfg/totp/devices/';
|
|
1284
|
-
};
|
|
1285
|
-
type CfgTotpDevicesRetrieveResponses = {
|
|
1286
|
-
200: DeviceListResponse;
|
|
1287
|
-
};
|
|
1288
|
-
type CfgTotpDevicesRetrieveResponse = CfgTotpDevicesRetrieveResponses[keyof CfgTotpDevicesRetrieveResponses];
|
|
1289
|
-
type CfgTotpDevicesDestroyData = {
|
|
1290
|
-
body?: never;
|
|
1291
|
-
path: {
|
|
1292
|
-
id: string;
|
|
1293
|
-
};
|
|
1294
|
-
query?: never;
|
|
1295
|
-
url: '/cfg/totp/devices/{id}/';
|
|
1296
|
-
};
|
|
1297
|
-
type CfgTotpDevicesDestroyResponses = {
|
|
1298
|
-
/**
|
|
1299
|
-
* No response body
|
|
1300
|
-
*/
|
|
1301
|
-
204: void;
|
|
1302
|
-
};
|
|
1303
|
-
type CfgTotpDevicesDestroyResponse = CfgTotpDevicesDestroyResponses[keyof CfgTotpDevicesDestroyResponses];
|
|
1304
|
-
type CfgTotpDisableCreateData = {
|
|
1305
|
-
body: DisableRequest;
|
|
1306
|
-
path?: never;
|
|
1307
|
-
query?: never;
|
|
1308
|
-
url: '/cfg/totp/disable/';
|
|
1309
|
-
};
|
|
1310
|
-
type CfgTotpDisableCreateErrors = {
|
|
1311
|
-
/**
|
|
1312
|
-
* Invalid code
|
|
1313
|
-
*/
|
|
1314
|
-
400: unknown;
|
|
1315
|
-
};
|
|
1316
|
-
type CfgTotpDisableCreateResponses = {
|
|
1317
|
-
/**
|
|
1318
|
-
* 2FA disabled successfully
|
|
1319
|
-
*/
|
|
1320
|
-
200: unknown;
|
|
1321
|
-
};
|
|
1322
|
-
type CfgTotpSetupCreateData = {
|
|
1323
|
-
body?: SetupRequest;
|
|
1324
|
-
path?: never;
|
|
1325
|
-
query?: never;
|
|
1326
|
-
url: '/cfg/totp/setup/';
|
|
1327
|
-
};
|
|
1328
|
-
type CfgTotpSetupCreateErrors = {
|
|
1329
|
-
/**
|
|
1330
|
-
* 2FA already enabled or invalid request
|
|
1331
|
-
*/
|
|
1332
|
-
400: unknown;
|
|
1333
|
-
};
|
|
1334
|
-
type CfgTotpSetupCreateResponses = {
|
|
1335
|
-
200: SetupResponse;
|
|
1336
|
-
};
|
|
1337
|
-
type CfgTotpSetupCreateResponse = CfgTotpSetupCreateResponses[keyof CfgTotpSetupCreateResponses];
|
|
1338
|
-
type CfgTotpSetupConfirmCreateData = {
|
|
1339
|
-
body: ConfirmSetupRequest;
|
|
1340
|
-
path?: never;
|
|
1341
|
-
query?: never;
|
|
1342
|
-
url: '/cfg/totp/setup/confirm/';
|
|
1343
|
-
};
|
|
1344
|
-
type CfgTotpSetupConfirmCreateErrors = {
|
|
1345
|
-
/**
|
|
1346
|
-
* Invalid code or setup expired
|
|
1347
|
-
*/
|
|
1348
|
-
400: unknown;
|
|
1349
|
-
};
|
|
1350
|
-
type CfgTotpSetupConfirmCreateResponses = {
|
|
1351
|
-
200: ConfirmSetupResponse;
|
|
1352
|
-
};
|
|
1353
|
-
type CfgTotpSetupConfirmCreateResponse = CfgTotpSetupConfirmCreateResponses[keyof CfgTotpSetupConfirmCreateResponses];
|
|
1354
|
-
type CfgTotpVerifyCreateData = {
|
|
1355
|
-
body: VerifyRequest;
|
|
1356
|
-
path?: never;
|
|
1357
|
-
query?: never;
|
|
1358
|
-
url: '/cfg/totp/verify/';
|
|
1359
|
-
};
|
|
1360
|
-
type CfgTotpVerifyCreateErrors = {
|
|
1361
|
-
/**
|
|
1362
|
-
* Invalid code or session
|
|
1363
|
-
*/
|
|
1364
|
-
400: unknown;
|
|
1365
|
-
/**
|
|
1366
|
-
* Too many attempts
|
|
1367
|
-
*/
|
|
1368
|
-
403: unknown;
|
|
1369
|
-
};
|
|
1370
|
-
type CfgTotpVerifyCreateResponses = {
|
|
1371
|
-
200: VerifyResponse;
|
|
1372
|
-
};
|
|
1373
|
-
type CfgTotpVerifyCreateResponse = CfgTotpVerifyCreateResponses[keyof CfgTotpVerifyCreateResponses];
|
|
1374
|
-
type CfgTotpVerifyBackupCreateData = {
|
|
1375
|
-
body: VerifyBackupRequest;
|
|
1376
|
-
path?: never;
|
|
1377
|
-
query?: never;
|
|
1378
|
-
url: '/cfg/totp/verify/backup/';
|
|
1379
|
-
};
|
|
1380
|
-
type CfgTotpVerifyBackupCreateErrors = {
|
|
1381
|
-
/**
|
|
1382
|
-
* Invalid backup code or session
|
|
1383
|
-
*/
|
|
1384
|
-
400: unknown;
|
|
1385
|
-
};
|
|
1386
|
-
type CfgTotpVerifyBackupCreateResponses = {
|
|
1387
|
-
200: VerifyResponse;
|
|
1388
|
-
};
|
|
1389
|
-
type CfgTotpVerifyBackupCreateResponse = CfgTotpVerifyBackupCreateResponses[keyof CfgTotpVerifyBackupCreateResponses];
|
|
1390
|
-
|
|
1391
|
-
interface APIOptions$1 {
|
|
1392
|
-
/** Logger config (defaults to dev-only). */
|
|
1393
|
-
logger?: Partial<LoggerConfig>;
|
|
1394
|
-
/** Locale for `Accept-Language`. If omitted, auto-detected from cookie/navigator. */
|
|
1395
|
-
locale?: string;
|
|
1396
|
-
/** API key sent as `X-API-Key`. Falls back to NEXT_PUBLIC_API_KEY. */
|
|
1397
|
-
apiKey?: string;
|
|
1398
|
-
/** Send Django session/CSRF cookies cross-origin. Defaults to true. */
|
|
1399
|
-
withCredentials?: boolean;
|
|
1400
|
-
}
|
|
1401
|
-
/**
|
|
1402
|
-
* Per-group ergonomic facade.
|
|
1403
|
-
*
|
|
1404
|
-
* Calling `setToken/setApiKey/setLocale/setBaseUrl` proxies to the
|
|
1405
|
-
* global `auth` store — the change applies to **every** group's API
|
|
1406
|
-
* instance because they share the same HTTP client and interceptor.
|
|
1407
|
-
*
|
|
1408
|
-
* Use the global `auth` object directly when you don't need a group
|
|
1409
|
-
* facade: `import { auth } from '@your/api'; auth.setToken(jwt);`
|
|
1410
|
-
*/
|
|
1411
|
-
declare class API$1 {
|
|
1412
|
-
readonly logger: APILogger;
|
|
1413
|
-
constructor(_baseUrl?: string, opts?: APIOptions$1);
|
|
1414
|
-
getBaseUrl(): string;
|
|
1415
|
-
setBaseUrl(url: string): void;
|
|
1416
|
-
getToken(): string | null;
|
|
1417
|
-
setToken(token: string | null): void;
|
|
1418
|
-
getRefreshToken(): string | null;
|
|
1419
|
-
setRefreshToken(token: string | null): void;
|
|
1420
|
-
clearToken(): void;
|
|
1421
|
-
isAuthenticated(): boolean;
|
|
1422
|
-
getLocale(): string | null;
|
|
1423
|
-
setLocale(locale: string | null): void;
|
|
1424
|
-
getApiKey(): string | null;
|
|
1425
|
-
setApiKey(key: string | null): void;
|
|
1426
|
-
/** Fired only on terminal 401 (after refresh+retry path is exhausted). */
|
|
1427
|
-
onUnauthorized(cb: ((response: Response) => void) | null): void;
|
|
1428
|
-
/** Provide a refresh strategy. See `auth.setRefreshHandler` for the contract. */
|
|
1429
|
-
setRefreshHandler(fn: ((refreshToken: string) => Promise<{
|
|
1430
|
-
access: string;
|
|
1431
|
-
refresh?: string;
|
|
1432
|
-
} | null>) | null): void;
|
|
1433
|
-
}
|
|
1434
|
-
|
|
1435
|
-
interface APIOptions {
|
|
1436
|
-
/** Logger config (defaults to dev-only). */
|
|
1437
|
-
logger?: Partial<LoggerConfig>;
|
|
1438
|
-
/** Locale for `Accept-Language`. If omitted, auto-detected from cookie/navigator. */
|
|
1439
|
-
locale?: string;
|
|
1440
|
-
/** API key sent as `X-API-Key`. Falls back to NEXT_PUBLIC_API_KEY. */
|
|
1441
|
-
apiKey?: string;
|
|
1442
|
-
/** Send Django session/CSRF cookies cross-origin. Defaults to true. */
|
|
1443
|
-
withCredentials?: boolean;
|
|
1444
|
-
}
|
|
1445
|
-
/**
|
|
1446
|
-
* Per-group ergonomic facade.
|
|
1447
|
-
*
|
|
1448
|
-
* Calling `setToken/setApiKey/setLocale/setBaseUrl` proxies to the
|
|
1449
|
-
* global `auth` store — the change applies to **every** group's API
|
|
1450
|
-
* instance because they share the same HTTP client and interceptor.
|
|
1451
|
-
*
|
|
1452
|
-
* Use the global `auth` object directly when you don't need a group
|
|
1453
|
-
* facade: `import { auth } from '@your/api'; auth.setToken(jwt);`
|
|
1454
|
-
*/
|
|
1455
|
-
declare class API {
|
|
1456
|
-
readonly logger: APILogger;
|
|
1457
|
-
constructor(_baseUrl?: string, opts?: APIOptions);
|
|
1458
|
-
getBaseUrl(): string;
|
|
1459
|
-
setBaseUrl(url: string): void;
|
|
1460
|
-
getToken(): string | null;
|
|
1461
|
-
setToken(token: string | null): void;
|
|
1462
|
-
getRefreshToken(): string | null;
|
|
1463
|
-
setRefreshToken(token: string | null): void;
|
|
1464
|
-
clearToken(): void;
|
|
1465
|
-
isAuthenticated(): boolean;
|
|
1466
|
-
getLocale(): string | null;
|
|
1467
|
-
setLocale(locale: string | null): void;
|
|
1468
|
-
getApiKey(): string | null;
|
|
1469
|
-
setApiKey(key: string | null): void;
|
|
1470
|
-
/** Fired only on terminal 401 (after refresh+retry path is exhausted). */
|
|
1471
|
-
onUnauthorized(cb: ((response: Response) => void) | null): void;
|
|
1472
|
-
/** Provide a refresh strategy. See `auth.setRefreshHandler` for the contract. */
|
|
1473
|
-
setRefreshHandler(fn: ((refreshToken: string) => Promise<{
|
|
1474
|
-
access: string;
|
|
1475
|
-
refresh?: string;
|
|
1476
|
-
} | null>) | null): void;
|
|
1477
|
-
}
|
|
1478
|
-
|
|
1479
|
-
declare const CfgAccountsApi: API$2;
|
|
1480
|
-
declare const CfgCentrifugoApi: API$1;
|
|
1481
|
-
declare const CfgTotpApi: API;
|
|
1482
|
-
|
|
1483
|
-
type AuthToken = string | undefined;
|
|
1484
|
-
interface Auth$1 {
|
|
1485
|
-
/**
|
|
1486
|
-
* Which part of the request do we use to send the auth?
|
|
1487
|
-
*
|
|
1488
|
-
* @default 'header'
|
|
1489
|
-
*/
|
|
1490
|
-
in?: 'header' | 'query' | 'cookie';
|
|
1491
|
-
/**
|
|
1492
|
-
* Header or query parameter name.
|
|
1493
|
-
*
|
|
1494
|
-
* @default 'Authorization'
|
|
1495
|
-
*/
|
|
1496
|
-
name?: string;
|
|
1497
|
-
scheme?: 'basic' | 'bearer';
|
|
1498
|
-
type: 'apiKey' | 'http';
|
|
1499
|
-
}
|
|
1500
|
-
|
|
1501
|
-
interface SerializerOptions<T> {
|
|
1502
|
-
/**
|
|
1503
|
-
* @default true
|
|
1504
|
-
*/
|
|
1505
|
-
explode: boolean;
|
|
1506
|
-
style: T;
|
|
1507
|
-
}
|
|
1508
|
-
type ArrayStyle = 'form' | 'spaceDelimited' | 'pipeDelimited';
|
|
1509
|
-
type ObjectStyle = 'form' | 'deepObject';
|
|
1510
|
-
|
|
1511
|
-
type QuerySerializer = (query: Record<string, unknown>) => string;
|
|
1512
|
-
type BodySerializer = (body: unknown) => unknown;
|
|
1513
|
-
type QuerySerializerOptionsObject = {
|
|
1514
|
-
allowReserved?: boolean;
|
|
1515
|
-
array?: Partial<SerializerOptions<ArrayStyle>>;
|
|
1516
|
-
object?: Partial<SerializerOptions<ObjectStyle>>;
|
|
1517
|
-
};
|
|
1518
|
-
type QuerySerializerOptions = QuerySerializerOptionsObject & {
|
|
1519
|
-
/**
|
|
1520
|
-
* Per-parameter serialization overrides. When provided, these settings
|
|
1521
|
-
* override the global array/object settings for specific parameter names.
|
|
1522
|
-
*/
|
|
1523
|
-
parameters?: Record<string, QuerySerializerOptionsObject>;
|
|
1524
|
-
};
|
|
1525
|
-
|
|
1526
|
-
type HttpMethod = 'connect' | 'delete' | 'get' | 'head' | 'options' | 'patch' | 'post' | 'put' | 'trace';
|
|
1527
|
-
type Client$1<RequestFn = never, Config = unknown, MethodFn = never, BuildUrlFn = never, SseFn = never> = {
|
|
1528
|
-
/**
|
|
1529
|
-
* Returns the final request URL.
|
|
1530
|
-
*/
|
|
1531
|
-
buildUrl: BuildUrlFn;
|
|
1532
|
-
getConfig: () => Config;
|
|
1533
|
-
request: RequestFn;
|
|
1534
|
-
setConfig: (config: Config) => Config;
|
|
1535
|
-
} & {
|
|
1536
|
-
[K in HttpMethod]: MethodFn;
|
|
1537
|
-
} & ([SseFn] extends [never] ? {
|
|
1538
|
-
sse?: never;
|
|
1539
|
-
} : {
|
|
1540
|
-
sse: {
|
|
1541
|
-
[K in HttpMethod]: SseFn;
|
|
1542
|
-
};
|
|
1543
|
-
});
|
|
1544
|
-
interface Config$1 {
|
|
1545
|
-
/**
|
|
1546
|
-
* Auth token or a function returning auth token. The resolved value will be
|
|
1547
|
-
* added to the request payload as defined by its `security` array.
|
|
1548
|
-
*/
|
|
1549
|
-
auth?: ((auth: Auth$1) => Promise<AuthToken> | AuthToken) | AuthToken;
|
|
1550
|
-
/**
|
|
1551
|
-
* A function for serializing request body parameter. By default,
|
|
1552
|
-
* {@link JSON.stringify()} will be used.
|
|
1553
|
-
*/
|
|
1554
|
-
bodySerializer?: BodySerializer | null;
|
|
1555
|
-
/**
|
|
1556
|
-
* An object containing any HTTP headers that you want to pre-populate your
|
|
1557
|
-
* `Headers` object with.
|
|
1558
|
-
*
|
|
1559
|
-
* {@link https://developer.mozilla.org/docs/Web/API/Headers/Headers#init See more}
|
|
1560
|
-
*/
|
|
1561
|
-
headers?: RequestInit['headers'] | Record<string, string | number | boolean | (string | number | boolean)[] | null | undefined | unknown>;
|
|
1562
|
-
/**
|
|
1563
|
-
* The request method.
|
|
1564
|
-
*
|
|
1565
|
-
* {@link https://developer.mozilla.org/docs/Web/API/fetch#method See more}
|
|
1566
|
-
*/
|
|
1567
|
-
method?: Uppercase<HttpMethod>;
|
|
1568
|
-
/**
|
|
1569
|
-
* A function for serializing request query parameters. By default, arrays
|
|
1570
|
-
* will be exploded in form style, objects will be exploded in deepObject
|
|
1571
|
-
* style, and reserved characters are percent-encoded.
|
|
1572
|
-
*
|
|
1573
|
-
* This method will have no effect if the native `paramsSerializer()` Axios
|
|
1574
|
-
* API function is used.
|
|
1575
|
-
*
|
|
1576
|
-
* {@link https://swagger.io/docs/specification/serialization/#query View examples}
|
|
1577
|
-
*/
|
|
1578
|
-
querySerializer?: QuerySerializer | QuerySerializerOptions;
|
|
1579
|
-
/**
|
|
1580
|
-
* A function validating request data. This is useful if you want to ensure
|
|
1581
|
-
* the request conforms to the desired shape, so it can be safely sent to
|
|
1582
|
-
* the server.
|
|
1583
|
-
*/
|
|
1584
|
-
requestValidator?: (data: unknown) => Promise<unknown>;
|
|
1585
|
-
/**
|
|
1586
|
-
* A function transforming response data before it's returned. This is useful
|
|
1587
|
-
* for post-processing data, e.g., converting ISO strings into Date objects.
|
|
1588
|
-
*/
|
|
1589
|
-
responseTransformer?: (data: unknown) => Promise<unknown>;
|
|
1590
|
-
/**
|
|
1591
|
-
* A function validating response data. This is useful if you want to ensure
|
|
1592
|
-
* the response conforms to the desired shape, so it can be safely passed to
|
|
1593
|
-
* the transformers and returned to the user.
|
|
1594
|
-
*/
|
|
1595
|
-
responseValidator?: (data: unknown) => Promise<unknown>;
|
|
1596
|
-
}
|
|
1597
|
-
|
|
1598
|
-
type ServerSentEventsOptions<TData = unknown> = Omit<RequestInit, 'method'> & Pick<Config$1, 'method' | 'responseTransformer' | 'responseValidator'> & {
|
|
1599
|
-
/**
|
|
1600
|
-
* Fetch API implementation. You can use this option to provide a custom
|
|
1601
|
-
* fetch instance.
|
|
1602
|
-
*
|
|
1603
|
-
* @default globalThis.fetch
|
|
1604
|
-
*/
|
|
1605
|
-
fetch?: typeof fetch;
|
|
1606
|
-
/**
|
|
1607
|
-
* Implementing clients can call request interceptors inside this hook.
|
|
1608
|
-
*/
|
|
1609
|
-
onRequest?: (url: string, init: RequestInit) => Promise<Request>;
|
|
1610
|
-
/**
|
|
1611
|
-
* Callback invoked when a network or parsing error occurs during streaming.
|
|
1612
|
-
*
|
|
1613
|
-
* This option applies only if the endpoint returns a stream of events.
|
|
1614
|
-
*
|
|
1615
|
-
* @param error The error that occurred.
|
|
1616
|
-
*/
|
|
1617
|
-
onSseError?: (error: unknown) => void;
|
|
1618
|
-
/**
|
|
1619
|
-
* Callback invoked when an event is streamed from the server.
|
|
1620
|
-
*
|
|
1621
|
-
* This option applies only if the endpoint returns a stream of events.
|
|
1622
|
-
*
|
|
1623
|
-
* @param event Event streamed from the server.
|
|
1624
|
-
* @returns Nothing (void).
|
|
1625
|
-
*/
|
|
1626
|
-
onSseEvent?: (event: StreamEvent<TData>) => void;
|
|
1627
|
-
serializedBody?: RequestInit['body'];
|
|
1628
|
-
/**
|
|
1629
|
-
* Default retry delay in milliseconds.
|
|
1630
|
-
*
|
|
1631
|
-
* This option applies only if the endpoint returns a stream of events.
|
|
1632
|
-
*
|
|
1633
|
-
* @default 3000
|
|
1634
|
-
*/
|
|
1635
|
-
sseDefaultRetryDelay?: number;
|
|
1636
|
-
/**
|
|
1637
|
-
* Maximum number of retry attempts before giving up.
|
|
1638
|
-
*/
|
|
1639
|
-
sseMaxRetryAttempts?: number;
|
|
1640
|
-
/**
|
|
1641
|
-
* Maximum retry delay in milliseconds.
|
|
1642
|
-
*
|
|
1643
|
-
* Applies only when exponential backoff is used.
|
|
1644
|
-
*
|
|
1645
|
-
* This option applies only if the endpoint returns a stream of events.
|
|
1646
|
-
*
|
|
1647
|
-
* @default 30000
|
|
1648
|
-
*/
|
|
1649
|
-
sseMaxRetryDelay?: number;
|
|
1650
|
-
/**
|
|
1651
|
-
* Optional sleep function for retry backoff.
|
|
1652
|
-
*
|
|
1653
|
-
* Defaults to using `setTimeout`.
|
|
1654
|
-
*/
|
|
1655
|
-
sseSleepFn?: (ms: number) => Promise<void>;
|
|
1656
|
-
url: string;
|
|
1657
|
-
};
|
|
1658
|
-
interface StreamEvent<TData = unknown> {
|
|
1659
|
-
data: TData;
|
|
1660
|
-
event?: string;
|
|
1661
|
-
id?: string;
|
|
1662
|
-
retry?: number;
|
|
1663
|
-
}
|
|
1664
|
-
type ServerSentEventsResult<TData = unknown, TReturn = void, TNext = unknown> = {
|
|
1665
|
-
stream: AsyncGenerator<TData extends Record<string, unknown> ? TData[keyof TData] : TData, TReturn, TNext>;
|
|
1666
|
-
};
|
|
1667
|
-
|
|
1668
|
-
type ErrInterceptor<Err, Res, Req, Options> = (error: Err,
|
|
1669
|
-
/** response may be undefined due to a network error where no response object is produced */
|
|
1670
|
-
response: Res | undefined,
|
|
1671
|
-
/** request may be undefined, because error may be from building the request object itself */
|
|
1672
|
-
request: Req | undefined, options: Options) => Err | Promise<Err>;
|
|
1673
|
-
type ReqInterceptor<Req, Options> = (request: Req, options: Options) => Req | Promise<Req>;
|
|
1674
|
-
type ResInterceptor<Res, Req, Options> = (response: Res, request: Req, options: Options) => Res | Promise<Res>;
|
|
1675
|
-
declare class Interceptors<Interceptor> {
|
|
1676
|
-
fns: Array<Interceptor | null>;
|
|
1677
|
-
clear(): void;
|
|
1678
|
-
eject(id: number | Interceptor): void;
|
|
1679
|
-
exists(id: number | Interceptor): boolean;
|
|
1680
|
-
getInterceptorIndex(id: number | Interceptor): number;
|
|
1681
|
-
update(id: number | Interceptor, fn: Interceptor): number | Interceptor | false;
|
|
1682
|
-
use(fn: Interceptor): number;
|
|
1683
|
-
}
|
|
1684
|
-
interface Middleware<Req, Res, Err, Options> {
|
|
1685
|
-
error: Interceptors<ErrInterceptor<Err, Res, Req, Options>>;
|
|
1686
|
-
request: Interceptors<ReqInterceptor<Req, Options>>;
|
|
1687
|
-
response: Interceptors<ResInterceptor<Res, Req, Options>>;
|
|
1688
|
-
}
|
|
1689
|
-
|
|
1690
|
-
type ResponseStyle = 'data' | 'fields';
|
|
1691
|
-
interface Config<T extends ClientOptions = ClientOptions> extends Omit<RequestInit, 'body' | 'headers' | 'method'>, Config$1 {
|
|
1692
|
-
/**
|
|
1693
|
-
* Base URL for all requests made by this client.
|
|
1694
|
-
*/
|
|
1695
|
-
baseUrl?: T['baseUrl'];
|
|
1696
|
-
/**
|
|
1697
|
-
* Fetch API implementation. You can use this option to provide a custom
|
|
1698
|
-
* fetch instance.
|
|
1699
|
-
*
|
|
1700
|
-
* @default globalThis.fetch
|
|
1701
|
-
*/
|
|
1702
|
-
fetch?: typeof fetch;
|
|
1703
|
-
/**
|
|
1704
|
-
* Please don't use the Fetch client for Next.js applications. The `next`
|
|
1705
|
-
* options won't have any effect.
|
|
1706
|
-
*
|
|
1707
|
-
* Install {@link https://www.npmjs.com/package/@hey-api/client-next `@hey-api/client-next`} instead.
|
|
1708
|
-
*/
|
|
1709
|
-
next?: never;
|
|
1710
|
-
/**
|
|
1711
|
-
* Return the response data parsed in a specified format. By default, `auto`
|
|
1712
|
-
* will infer the appropriate method from the `Content-Type` response header.
|
|
1713
|
-
* You can override this behavior with any of the {@link Body} methods.
|
|
1714
|
-
* Select `stream` if you don't want to parse response data at all.
|
|
1715
|
-
*
|
|
1716
|
-
* @default 'auto'
|
|
1717
|
-
*/
|
|
1718
|
-
parseAs?: 'arrayBuffer' | 'auto' | 'blob' | 'formData' | 'json' | 'stream' | 'text';
|
|
1719
|
-
/**
|
|
1720
|
-
* Should we return only data or multiple fields (data, error, response, etc.)?
|
|
1721
|
-
*
|
|
1722
|
-
* @default 'fields'
|
|
1723
|
-
*/
|
|
1724
|
-
responseStyle?: ResponseStyle;
|
|
1725
|
-
/**
|
|
1726
|
-
* Throw an error instead of returning it in the response?
|
|
1727
|
-
*
|
|
1728
|
-
* @default false
|
|
1729
|
-
*/
|
|
1730
|
-
throwOnError?: T['throwOnError'];
|
|
1731
|
-
}
|
|
1732
|
-
interface RequestOptions<TData = unknown, TResponseStyle extends ResponseStyle = 'fields', ThrowOnError extends boolean = boolean, Url extends string = string> extends Config<{
|
|
1733
|
-
responseStyle: TResponseStyle;
|
|
1734
|
-
throwOnError: ThrowOnError;
|
|
1735
|
-
}>, Pick<ServerSentEventsOptions<TData>, 'onRequest' | 'onSseError' | 'onSseEvent' | 'sseDefaultRetryDelay' | 'sseMaxRetryAttempts' | 'sseMaxRetryDelay'> {
|
|
1736
|
-
/**
|
|
1737
|
-
* Any body that you want to add to your request.
|
|
1738
|
-
*
|
|
1739
|
-
* {@link https://developer.mozilla.org/docs/Web/API/fetch#body}
|
|
1740
|
-
*/
|
|
1741
|
-
body?: unknown;
|
|
1742
|
-
path?: Record<string, unknown>;
|
|
1743
|
-
query?: Record<string, unknown>;
|
|
1744
|
-
/**
|
|
1745
|
-
* Security mechanism(s) to use for the request.
|
|
1746
|
-
*/
|
|
1747
|
-
security?: ReadonlyArray<Auth$1>;
|
|
1748
|
-
url: Url;
|
|
1749
|
-
}
|
|
1750
|
-
interface ResolvedRequestOptions<TResponseStyle extends ResponseStyle = 'fields', ThrowOnError extends boolean = boolean, Url extends string = string> extends RequestOptions<unknown, TResponseStyle, ThrowOnError, Url> {
|
|
1751
|
-
headers: Headers;
|
|
1752
|
-
serializedBody?: string;
|
|
1753
|
-
}
|
|
1754
|
-
type RequestResult<TData = unknown, TError = unknown, ThrowOnError extends boolean = boolean, TResponseStyle extends ResponseStyle = 'fields'> = ThrowOnError extends true ? Promise<TResponseStyle extends 'data' ? TData extends Record<string, unknown> ? TData[keyof TData] : TData : {
|
|
1755
|
-
data: TData extends Record<string, unknown> ? TData[keyof TData] : TData;
|
|
1756
|
-
request: Request;
|
|
1757
|
-
response: Response;
|
|
1758
|
-
}> : Promise<TResponseStyle extends 'data' ? (TData extends Record<string, unknown> ? TData[keyof TData] : TData) | undefined : ({
|
|
1759
|
-
data: TData extends Record<string, unknown> ? TData[keyof TData] : TData;
|
|
1760
|
-
error: undefined;
|
|
1761
|
-
} | {
|
|
1762
|
-
data: undefined;
|
|
1763
|
-
error: TError extends Record<string, unknown> ? TError[keyof TError] : TError;
|
|
1764
|
-
}) & {
|
|
1765
|
-
/** request may be undefined, because error may be from building the request object itself */
|
|
1766
|
-
request?: Request;
|
|
1767
|
-
/** response may be undefined, because error may be from building the request object itself or from a network error */
|
|
1768
|
-
response?: Response;
|
|
1769
|
-
}>;
|
|
1770
|
-
interface ClientOptions {
|
|
1771
|
-
baseUrl?: string;
|
|
1772
|
-
responseStyle?: ResponseStyle;
|
|
1773
|
-
throwOnError?: boolean;
|
|
1774
|
-
}
|
|
1775
|
-
type MethodFn = <TData = unknown, TError = unknown, ThrowOnError extends boolean = false, TResponseStyle extends ResponseStyle = 'fields'>(options: Omit<RequestOptions<TData, TResponseStyle, ThrowOnError>, 'method'>) => RequestResult<TData, TError, ThrowOnError, TResponseStyle>;
|
|
1776
|
-
type SseFn = <TData = unknown, TError = unknown, ThrowOnError extends boolean = false, TResponseStyle extends ResponseStyle = 'fields'>(options: Omit<RequestOptions<never, TResponseStyle, ThrowOnError>, 'method'>) => Promise<ServerSentEventsResult<TData, TError>>;
|
|
1777
|
-
type RequestFn = <TData = unknown, TError = unknown, ThrowOnError extends boolean = false, TResponseStyle extends ResponseStyle = 'fields'>(options: Omit<RequestOptions<TData, TResponseStyle, ThrowOnError>, 'method'> & Pick<Required<RequestOptions<TData, TResponseStyle, ThrowOnError>>, 'method'>) => RequestResult<TData, TError, ThrowOnError, TResponseStyle>;
|
|
1778
|
-
type BuildUrlFn = <TData extends {
|
|
1779
|
-
body?: unknown;
|
|
1780
|
-
path?: Record<string, unknown>;
|
|
1781
|
-
query?: Record<string, unknown>;
|
|
1782
|
-
url: string;
|
|
1783
|
-
}>(options: TData & Options$1<TData>) => string;
|
|
1784
|
-
type Client = Client$1<RequestFn, Config, MethodFn, BuildUrlFn, SseFn> & {
|
|
1785
|
-
interceptors: Middleware<Request, Response, unknown, ResolvedRequestOptions>;
|
|
1786
|
-
};
|
|
1787
|
-
interface TDataShape {
|
|
1788
|
-
body?: unknown;
|
|
1789
|
-
headers?: unknown;
|
|
1790
|
-
path?: unknown;
|
|
1791
|
-
query?: unknown;
|
|
1792
|
-
url: string;
|
|
1793
|
-
}
|
|
1794
|
-
type OmitKeys<T, K> = Pick<T, Exclude<keyof T, K>>;
|
|
1795
|
-
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'>);
|
|
1796
|
-
|
|
1797
|
-
type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean, TResponse = unknown> = Options$1<TData, ThrowOnError, TResponse> & {
|
|
1449
|
+
type CfgAccountsProfileAvatarCreateErrors = {
|
|
1798
1450
|
/**
|
|
1799
|
-
*
|
|
1800
|
-
* individual options. This might be also useful if you want to implement a
|
|
1801
|
-
* custom client.
|
|
1451
|
+
* Invalid file or validation error.
|
|
1802
1452
|
*/
|
|
1803
|
-
|
|
1453
|
+
400: unknown;
|
|
1804
1454
|
/**
|
|
1805
|
-
*
|
|
1806
|
-
* used to access values that aren't defined as part of the SDK function.
|
|
1455
|
+
* Authentication credentials were not provided.
|
|
1807
1456
|
*/
|
|
1808
|
-
|
|
1457
|
+
401: unknown;
|
|
1458
|
+
};
|
|
1459
|
+
type CfgAccountsProfileAvatarCreateResponses = {
|
|
1460
|
+
200: User;
|
|
1461
|
+
};
|
|
1462
|
+
type CfgAccountsProfileAvatarCreateResponse = CfgAccountsProfileAvatarCreateResponses[keyof CfgAccountsProfileAvatarCreateResponses];
|
|
1463
|
+
type CfgAccountsProfileDeleteCreateData = {
|
|
1464
|
+
body?: never;
|
|
1465
|
+
path?: never;
|
|
1466
|
+
query?: never;
|
|
1467
|
+
url: '/cfg/accounts/profile/delete/';
|
|
1809
1468
|
};
|
|
1810
|
-
|
|
1469
|
+
type CfgAccountsProfileDeleteCreateErrors = {
|
|
1811
1470
|
/**
|
|
1812
|
-
*
|
|
1813
|
-
*
|
|
1814
|
-
* Get all OAuth connections for the current user.
|
|
1471
|
+
* Account is already deleted.
|
|
1815
1472
|
*/
|
|
1816
|
-
|
|
1473
|
+
400: unknown;
|
|
1817
1474
|
/**
|
|
1818
|
-
*
|
|
1819
|
-
*
|
|
1820
|
-
* Remove OAuth connection for the specified provider.
|
|
1475
|
+
* Authentication credentials were not provided.
|
|
1821
1476
|
*/
|
|
1822
|
-
|
|
1477
|
+
401: unknown;
|
|
1478
|
+
};
|
|
1479
|
+
type CfgAccountsProfileDeleteCreateResponses = {
|
|
1480
|
+
200: AccountDeleteResponse;
|
|
1481
|
+
};
|
|
1482
|
+
type CfgAccountsProfileDeleteCreateResponse = CfgAccountsProfileDeleteCreateResponses[keyof CfgAccountsProfileDeleteCreateResponses];
|
|
1483
|
+
type CfgAccountsProfilePartialPartialUpdateData = {
|
|
1484
|
+
body?: PatchedCfgUserUpdateRequest;
|
|
1485
|
+
path?: never;
|
|
1486
|
+
query?: never;
|
|
1487
|
+
url: '/cfg/accounts/profile/partial/';
|
|
1488
|
+
};
|
|
1489
|
+
type CfgAccountsProfilePartialPartialUpdateErrors = {
|
|
1823
1490
|
/**
|
|
1824
|
-
*
|
|
1825
|
-
*
|
|
1826
|
-
* Generate GitHub OAuth authorization URL. Redirect user to this URL to start authentication.
|
|
1491
|
+
* Invalid data provided.
|
|
1827
1492
|
*/
|
|
1828
|
-
|
|
1493
|
+
400: unknown;
|
|
1829
1494
|
/**
|
|
1830
|
-
*
|
|
1831
|
-
*
|
|
1832
|
-
* Exchange authorization code for JWT tokens. Call this after GitHub redirects back with code.
|
|
1495
|
+
* Authentication credentials were not provided.
|
|
1833
1496
|
*/
|
|
1834
|
-
|
|
1497
|
+
401: unknown;
|
|
1498
|
+
};
|
|
1499
|
+
type CfgAccountsProfilePartialPartialUpdateResponses = {
|
|
1500
|
+
200: User;
|
|
1501
|
+
};
|
|
1502
|
+
type CfgAccountsProfilePartialPartialUpdateResponse = CfgAccountsProfilePartialPartialUpdateResponses[keyof CfgAccountsProfilePartialPartialUpdateResponses];
|
|
1503
|
+
type CfgAccountsProfilePartialUpdateData = {
|
|
1504
|
+
body?: CfgUserUpdateRequest;
|
|
1505
|
+
path?: never;
|
|
1506
|
+
query?: never;
|
|
1507
|
+
url: '/cfg/accounts/profile/partial/';
|
|
1508
|
+
};
|
|
1509
|
+
type CfgAccountsProfilePartialUpdateErrors = {
|
|
1835
1510
|
/**
|
|
1836
|
-
*
|
|
1837
|
-
*
|
|
1838
|
-
* Get list of available OAuth providers for authentication.
|
|
1511
|
+
* Invalid data provided.
|
|
1839
1512
|
*/
|
|
1840
|
-
|
|
1513
|
+
400: unknown;
|
|
1841
1514
|
/**
|
|
1842
|
-
*
|
|
1515
|
+
* Authentication credentials were not provided.
|
|
1843
1516
|
*/
|
|
1844
|
-
|
|
1517
|
+
401: unknown;
|
|
1518
|
+
};
|
|
1519
|
+
type CfgAccountsProfilePartialUpdateResponses = {
|
|
1520
|
+
200: User;
|
|
1521
|
+
};
|
|
1522
|
+
type CfgAccountsProfilePartialUpdateResponse = CfgAccountsProfilePartialUpdateResponses[keyof CfgAccountsProfilePartialUpdateResponses];
|
|
1523
|
+
type CfgAccountsProfileUpdatePartialUpdateData = {
|
|
1524
|
+
body?: PatchedCfgUserUpdateRequest;
|
|
1525
|
+
path?: never;
|
|
1526
|
+
query?: never;
|
|
1527
|
+
url: '/cfg/accounts/profile/update/';
|
|
1528
|
+
};
|
|
1529
|
+
type CfgAccountsProfileUpdatePartialUpdateErrors = {
|
|
1845
1530
|
/**
|
|
1846
|
-
*
|
|
1847
|
-
*
|
|
1848
|
-
* If user has 2FA enabled:
|
|
1849
|
-
* - Returns requires_2fa=True with session_id
|
|
1850
|
-
* - Client must complete 2FA verification at /cfg/totp/verify/
|
|
1851
|
-
*
|
|
1852
|
-
* If user has no 2FA:
|
|
1853
|
-
* - Returns JWT tokens and user data directly
|
|
1531
|
+
* Invalid data provided.
|
|
1854
1532
|
*/
|
|
1855
|
-
|
|
1533
|
+
400: unknown;
|
|
1856
1534
|
/**
|
|
1857
|
-
*
|
|
1858
|
-
*
|
|
1859
|
-
* Retrieve the current authenticated user's profile information.
|
|
1535
|
+
* Authentication credentials were not provided.
|
|
1860
1536
|
*/
|
|
1861
|
-
|
|
1537
|
+
401: unknown;
|
|
1538
|
+
};
|
|
1539
|
+
type CfgAccountsProfileUpdatePartialUpdateResponses = {
|
|
1540
|
+
200: User;
|
|
1541
|
+
};
|
|
1542
|
+
type CfgAccountsProfileUpdatePartialUpdateResponse = CfgAccountsProfileUpdatePartialUpdateResponses[keyof CfgAccountsProfileUpdatePartialUpdateResponses];
|
|
1543
|
+
type CfgAccountsProfileUpdateUpdateData = {
|
|
1544
|
+
body?: CfgUserUpdateRequest;
|
|
1545
|
+
path?: never;
|
|
1546
|
+
query?: never;
|
|
1547
|
+
url: '/cfg/accounts/profile/update/';
|
|
1548
|
+
};
|
|
1549
|
+
type CfgAccountsProfileUpdateUpdateErrors = {
|
|
1862
1550
|
/**
|
|
1863
|
-
*
|
|
1864
|
-
*
|
|
1865
|
-
* Upload avatar image for the current authenticated user. Accepts multipart/form-data with 'avatar' field.
|
|
1551
|
+
* Invalid data provided.
|
|
1866
1552
|
*/
|
|
1867
|
-
|
|
1553
|
+
400: unknown;
|
|
1868
1554
|
/**
|
|
1869
|
-
*
|
|
1870
|
-
*
|
|
1871
|
-
*
|
|
1872
|
-
* Permanently delete the current user's account.
|
|
1873
|
-
*
|
|
1874
|
-
* This operation:
|
|
1875
|
-
* - Deactivates the account (user cannot log in)
|
|
1876
|
-
* - Anonymizes personal data (GDPR compliance)
|
|
1877
|
-
* - Frees up the email address for re-registration
|
|
1878
|
-
* - Preserves audit trail
|
|
1879
|
-
*
|
|
1880
|
-
* The account can be restored by an administrator if needed.
|
|
1881
|
-
*
|
|
1555
|
+
* Authentication credentials were not provided.
|
|
1882
1556
|
*/
|
|
1883
|
-
|
|
1557
|
+
401: unknown;
|
|
1558
|
+
};
|
|
1559
|
+
type CfgAccountsProfileUpdateUpdateResponses = {
|
|
1560
|
+
200: User;
|
|
1561
|
+
};
|
|
1562
|
+
type CfgAccountsProfileUpdateUpdateResponse = CfgAccountsProfileUpdateUpdateResponses[keyof CfgAccountsProfileUpdateUpdateResponses];
|
|
1563
|
+
type CfgAccountsTokenRefreshCreateData = {
|
|
1564
|
+
body: TokenRefreshRequest;
|
|
1565
|
+
path?: never;
|
|
1566
|
+
query?: never;
|
|
1567
|
+
url: '/cfg/accounts/token/refresh/';
|
|
1568
|
+
};
|
|
1569
|
+
type CfgAccountsTokenRefreshCreateResponses = {
|
|
1570
|
+
200: TokenRefresh;
|
|
1571
|
+
};
|
|
1572
|
+
type CfgAccountsTokenRefreshCreateResponse = CfgAccountsTokenRefreshCreateResponses[keyof CfgAccountsTokenRefreshCreateResponses];
|
|
1573
|
+
type CfgCentrifugoAuthTokenRetrieveData = {
|
|
1574
|
+
body?: never;
|
|
1575
|
+
path?: never;
|
|
1576
|
+
query?: never;
|
|
1577
|
+
url: '/cfg/centrifugo/auth/token/';
|
|
1578
|
+
};
|
|
1579
|
+
type CfgCentrifugoAuthTokenRetrieveErrors = {
|
|
1884
1580
|
/**
|
|
1885
|
-
*
|
|
1886
|
-
*
|
|
1887
|
-
* Partially update the current authenticated user's profile information. Supports avatar upload.
|
|
1581
|
+
* Unauthorized - authentication required
|
|
1888
1582
|
*/
|
|
1889
|
-
|
|
1583
|
+
401: unknown;
|
|
1890
1584
|
/**
|
|
1891
|
-
*
|
|
1892
|
-
*
|
|
1893
|
-
* Partially update the current authenticated user's profile information. Supports avatar upload.
|
|
1585
|
+
* Server error
|
|
1894
1586
|
*/
|
|
1895
|
-
|
|
1587
|
+
500: unknown;
|
|
1588
|
+
};
|
|
1589
|
+
type CfgCentrifugoAuthTokenRetrieveResponses = {
|
|
1590
|
+
200: ConnectionTokenResponse;
|
|
1591
|
+
};
|
|
1592
|
+
type CfgCentrifugoAuthTokenRetrieveResponse = CfgCentrifugoAuthTokenRetrieveResponses[keyof CfgCentrifugoAuthTokenRetrieveResponses];
|
|
1593
|
+
type CfgTotpBackupCodesRetrieveData = {
|
|
1594
|
+
body?: never;
|
|
1595
|
+
path?: never;
|
|
1596
|
+
query?: never;
|
|
1597
|
+
url: '/cfg/totp/backup-codes/';
|
|
1598
|
+
};
|
|
1599
|
+
type CfgTotpBackupCodesRetrieveResponses = {
|
|
1600
|
+
200: BackupCodesStatus;
|
|
1601
|
+
};
|
|
1602
|
+
type CfgTotpBackupCodesRetrieveResponse = CfgTotpBackupCodesRetrieveResponses[keyof CfgTotpBackupCodesRetrieveResponses];
|
|
1603
|
+
type CfgTotpBackupCodesRegenerateCreateData = {
|
|
1604
|
+
body: BackupCodesRegenerateRequest;
|
|
1605
|
+
path?: never;
|
|
1606
|
+
query?: never;
|
|
1607
|
+
url: '/cfg/totp/backup-codes/regenerate/';
|
|
1608
|
+
};
|
|
1609
|
+
type CfgTotpBackupCodesRegenerateCreateErrors = {
|
|
1896
1610
|
/**
|
|
1897
|
-
*
|
|
1898
|
-
*
|
|
1899
|
-
* Update the current authenticated user's profile information.
|
|
1611
|
+
* Invalid code or 2FA not enabled
|
|
1900
1612
|
*/
|
|
1901
|
-
|
|
1613
|
+
400: unknown;
|
|
1614
|
+
};
|
|
1615
|
+
type CfgTotpBackupCodesRegenerateCreateResponses = {
|
|
1616
|
+
200: BackupCodesRegenerateResponse;
|
|
1617
|
+
};
|
|
1618
|
+
type CfgTotpBackupCodesRegenerateCreateResponse = CfgTotpBackupCodesRegenerateCreateResponses[keyof CfgTotpBackupCodesRegenerateCreateResponses];
|
|
1619
|
+
type CfgTotpDevicesRetrieveData = {
|
|
1620
|
+
body?: never;
|
|
1621
|
+
path?: never;
|
|
1622
|
+
query?: never;
|
|
1623
|
+
url: '/cfg/totp/devices/';
|
|
1624
|
+
};
|
|
1625
|
+
type CfgTotpDevicesRetrieveResponses = {
|
|
1626
|
+
200: DeviceListResponse;
|
|
1627
|
+
};
|
|
1628
|
+
type CfgTotpDevicesRetrieveResponse = CfgTotpDevicesRetrieveResponses[keyof CfgTotpDevicesRetrieveResponses];
|
|
1629
|
+
type CfgTotpDevicesDestroyData = {
|
|
1630
|
+
body?: never;
|
|
1631
|
+
path: {
|
|
1632
|
+
id: string;
|
|
1633
|
+
};
|
|
1634
|
+
query?: never;
|
|
1635
|
+
url: '/cfg/totp/devices/{id}/';
|
|
1636
|
+
};
|
|
1637
|
+
type CfgTotpDevicesDestroyResponses = {
|
|
1902
1638
|
/**
|
|
1903
|
-
*
|
|
1904
|
-
*
|
|
1905
|
-
* Update the current authenticated user's profile information.
|
|
1639
|
+
* No response body
|
|
1906
1640
|
*/
|
|
1907
|
-
|
|
1641
|
+
204: void;
|
|
1642
|
+
};
|
|
1643
|
+
type CfgTotpDevicesDestroyResponse = CfgTotpDevicesDestroyResponses[keyof CfgTotpDevicesDestroyResponses];
|
|
1644
|
+
type CfgTotpDisableCreateData = {
|
|
1645
|
+
body: DisableRequest;
|
|
1646
|
+
path?: never;
|
|
1647
|
+
query?: never;
|
|
1648
|
+
url: '/cfg/totp/disable/';
|
|
1649
|
+
};
|
|
1650
|
+
type CfgTotpDisableCreateErrors = {
|
|
1908
1651
|
/**
|
|
1909
|
-
*
|
|
1652
|
+
* Invalid code
|
|
1910
1653
|
*/
|
|
1911
|
-
|
|
1654
|
+
400: unknown;
|
|
1655
|
+
};
|
|
1656
|
+
type CfgTotpDisableCreateResponses = {
|
|
1657
|
+
200: CfgTotpDisableResponse200AutoRef;
|
|
1658
|
+
};
|
|
1659
|
+
type CfgTotpDisableCreateResponse = CfgTotpDisableCreateResponses[keyof CfgTotpDisableCreateResponses];
|
|
1660
|
+
type CfgTotpSetupCreateData = {
|
|
1661
|
+
body?: SetupRequest;
|
|
1662
|
+
path?: never;
|
|
1663
|
+
query?: never;
|
|
1664
|
+
url: '/cfg/totp/setup/';
|
|
1665
|
+
};
|
|
1666
|
+
type CfgTotpSetupCreateErrors = {
|
|
1912
1667
|
/**
|
|
1913
|
-
*
|
|
1914
|
-
*
|
|
1915
|
-
* Generate JWT token for WebSocket connection to Centrifugo. Token includes user's allowed channels based on their permissions. Requires authentication.
|
|
1668
|
+
* 2FA already enabled or invalid request
|
|
1916
1669
|
*/
|
|
1917
|
-
|
|
1670
|
+
400: unknown;
|
|
1671
|
+
};
|
|
1672
|
+
type CfgTotpSetupCreateResponses = {
|
|
1673
|
+
200: SetupResponse;
|
|
1674
|
+
};
|
|
1675
|
+
type CfgTotpSetupCreateResponse = CfgTotpSetupCreateResponses[keyof CfgTotpSetupCreateResponses];
|
|
1676
|
+
type CfgTotpSetupConfirmCreateData = {
|
|
1677
|
+
body: ConfirmSetupRequest;
|
|
1678
|
+
path?: never;
|
|
1679
|
+
query?: never;
|
|
1680
|
+
url: '/cfg/totp/setup/confirm/';
|
|
1681
|
+
};
|
|
1682
|
+
type CfgTotpSetupConfirmCreateErrors = {
|
|
1918
1683
|
/**
|
|
1919
|
-
*
|
|
1684
|
+
* Invalid code or setup expired
|
|
1920
1685
|
*/
|
|
1921
|
-
|
|
1686
|
+
400: unknown;
|
|
1687
|
+
};
|
|
1688
|
+
type CfgTotpSetupConfirmCreateResponses = {
|
|
1689
|
+
200: ConfirmSetupResponse;
|
|
1690
|
+
};
|
|
1691
|
+
type CfgTotpSetupConfirmCreateResponse = CfgTotpSetupConfirmCreateResponses[keyof CfgTotpSetupConfirmCreateResponses];
|
|
1692
|
+
type CfgTotpVerifyCreateData = {
|
|
1693
|
+
body: VerifyRequest;
|
|
1694
|
+
path?: never;
|
|
1695
|
+
query?: never;
|
|
1696
|
+
url: '/cfg/totp/verify/';
|
|
1697
|
+
};
|
|
1698
|
+
type CfgTotpVerifyCreateErrors = {
|
|
1922
1699
|
/**
|
|
1923
|
-
*
|
|
1924
|
-
*
|
|
1925
|
-
* Requires TOTP code for verification.
|
|
1926
|
-
* Invalidates all existing codes.
|
|
1700
|
+
* Invalid code or session
|
|
1927
1701
|
*/
|
|
1928
|
-
|
|
1702
|
+
400: unknown;
|
|
1929
1703
|
/**
|
|
1930
|
-
*
|
|
1704
|
+
* Too many attempts
|
|
1931
1705
|
*/
|
|
1932
|
-
|
|
1706
|
+
403: unknown;
|
|
1707
|
+
};
|
|
1708
|
+
type CfgTotpVerifyCreateResponses = {
|
|
1709
|
+
200: VerifyResponse;
|
|
1710
|
+
};
|
|
1711
|
+
type CfgTotpVerifyCreateResponse = CfgTotpVerifyCreateResponses[keyof CfgTotpVerifyCreateResponses];
|
|
1712
|
+
type CfgTotpVerifyBackupCreateData = {
|
|
1713
|
+
body: VerifyBackupRequest;
|
|
1714
|
+
path?: never;
|
|
1715
|
+
query?: never;
|
|
1716
|
+
url: '/cfg/totp/verify/backup/';
|
|
1717
|
+
};
|
|
1718
|
+
type CfgTotpVerifyBackupCreateErrors = {
|
|
1933
1719
|
/**
|
|
1934
|
-
*
|
|
1935
|
-
*
|
|
1936
|
-
* Requires verification code if removing the last/primary device.
|
|
1720
|
+
* Invalid backup code or session
|
|
1937
1721
|
*/
|
|
1938
|
-
|
|
1722
|
+
400: unknown;
|
|
1723
|
+
};
|
|
1724
|
+
type CfgTotpVerifyBackupCreateResponses = {
|
|
1725
|
+
200: VerifyResponse;
|
|
1726
|
+
};
|
|
1727
|
+
type CfgTotpVerifyBackupCreateResponse = CfgTotpVerifyBackupCreateResponses[keyof CfgTotpVerifyBackupCreateResponses];
|
|
1728
|
+
|
|
1729
|
+
type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean, TResponse = unknown> = Options$1<TData, ThrowOnError, TResponse> & {
|
|
1939
1730
|
/**
|
|
1940
|
-
*
|
|
1941
|
-
*
|
|
1942
|
-
*
|
|
1731
|
+
* You can provide a client instance returned by `createClient()` instead of
|
|
1732
|
+
* individual options. This might be also useful if you want to implement a
|
|
1733
|
+
* custom client.
|
|
1943
1734
|
*/
|
|
1944
|
-
|
|
1735
|
+
client?: Client;
|
|
1945
1736
|
/**
|
|
1946
|
-
*
|
|
1947
|
-
*
|
|
1948
|
-
* Creates a new TOTP device and returns QR code for scanning.
|
|
1737
|
+
* You can pass arbitrary values through the `meta` object. This can be
|
|
1738
|
+
* used to access values that aren't defined as part of the SDK function.
|
|
1949
1739
|
*/
|
|
1950
|
-
|
|
1740
|
+
meta?: Record<string, unknown>;
|
|
1741
|
+
};
|
|
1742
|
+
declare class CfgAccountsApiKey {
|
|
1951
1743
|
/**
|
|
1952
|
-
*
|
|
1744
|
+
* Get API key details
|
|
1953
1745
|
*
|
|
1954
|
-
*
|
|
1746
|
+
* Retrieve the current user's API key (masked) and metadata.
|
|
1955
1747
|
*/
|
|
1956
|
-
static
|
|
1748
|
+
static cfgAccountsApiKeyRetrieve<ThrowOnError extends boolean = false>(options?: Options<CfgAccountsApiKeyRetrieveData, ThrowOnError>): RequestResult<CfgAccountsApiKeyRetrieveResponses, CfgAccountsApiKeyRetrieveErrors, ThrowOnError, "fields">;
|
|
1957
1749
|
/**
|
|
1958
|
-
*
|
|
1750
|
+
* Regenerate API key
|
|
1959
1751
|
*
|
|
1960
|
-
*
|
|
1752
|
+
* Generate a new API key. The full key is returned only once.
|
|
1961
1753
|
*/
|
|
1962
|
-
static
|
|
1754
|
+
static cfgAccountsApiKeyRegenerateCreate<ThrowOnError extends boolean = false>(options: Options<CfgAccountsApiKeyRegenerateCreateData, ThrowOnError>): RequestResult<CfgAccountsApiKeyRegenerateCreateResponses, CfgAccountsApiKeyRegenerateCreateErrors, ThrowOnError, "fields">;
|
|
1963
1755
|
/**
|
|
1964
|
-
*
|
|
1756
|
+
* Test API key
|
|
1965
1757
|
*
|
|
1966
|
-
*
|
|
1758
|
+
* Test whether an API key is valid without consuming it.
|
|
1967
1759
|
*/
|
|
1968
|
-
static
|
|
1760
|
+
static cfgAccountsApiKeyTestCreate<ThrowOnError extends boolean = false>(options: Options<CfgAccountsApiKeyTestCreateData, ThrowOnError>): RequestResult<CfgAccountsApiKeyTestCreateResponses, unknown, ThrowOnError, "fields">;
|
|
1969
1761
|
}
|
|
1970
|
-
declare class
|
|
1762
|
+
declare class CfgAccountsOauth {
|
|
1971
1763
|
/**
|
|
1972
1764
|
* List OAuth connections
|
|
1973
1765
|
*
|
|
@@ -1998,6 +1790,8 @@ declare class Accounts {
|
|
|
1998
1790
|
* Get list of available OAuth providers for authentication.
|
|
1999
1791
|
*/
|
|
2000
1792
|
static cfgAccountsOauthProvidersRetrieve<ThrowOnError extends boolean = false>(options?: Options<CfgAccountsOauthProvidersRetrieveData, ThrowOnError>): RequestResult<CfgAccountsOauthProvidersRetrieveResponses, unknown, ThrowOnError, "fields">;
|
|
1793
|
+
}
|
|
1794
|
+
declare class CfgAccounts {
|
|
2001
1795
|
/**
|
|
2002
1796
|
* Request OTP code to email.
|
|
2003
1797
|
*/
|
|
@@ -2013,96 +1807,8 @@ declare class Accounts {
|
|
|
2013
1807
|
* - Returns JWT tokens and user data directly
|
|
2014
1808
|
*/
|
|
2015
1809
|
static cfgAccountsOtpVerifyCreate<ThrowOnError extends boolean = false>(options: Options<CfgAccountsOtpVerifyCreateData, ThrowOnError>): RequestResult<CfgAccountsOtpVerifyCreateResponses, CfgAccountsOtpVerifyCreateErrors, ThrowOnError, "fields">;
|
|
2016
|
-
/**
|
|
2017
|
-
* Get current user profile
|
|
2018
|
-
*
|
|
2019
|
-
* Retrieve the current authenticated user's profile information.
|
|
2020
|
-
*/
|
|
2021
|
-
static cfgAccountsProfileRetrieve<ThrowOnError extends boolean = false>(options?: Options<CfgAccountsProfileRetrieveData, ThrowOnError>): RequestResult<CfgAccountsProfileRetrieveResponses, CfgAccountsProfileRetrieveErrors, ThrowOnError, "fields">;
|
|
2022
|
-
/**
|
|
2023
|
-
* Upload user avatar
|
|
2024
|
-
*
|
|
2025
|
-
* Upload avatar image for the current authenticated user. Accepts multipart/form-data with 'avatar' field.
|
|
2026
|
-
*/
|
|
2027
|
-
static cfgAccountsProfileAvatarCreate<ThrowOnError extends boolean = false>(options?: Options<CfgAccountsProfileAvatarCreateData, ThrowOnError>): RequestResult<CfgAccountsProfileAvatarCreateResponses, CfgAccountsProfileAvatarCreateErrors, ThrowOnError, "fields">;
|
|
2028
|
-
/**
|
|
2029
|
-
* Delete user account
|
|
2030
|
-
*
|
|
2031
|
-
*
|
|
2032
|
-
* Permanently delete the current user's account.
|
|
2033
|
-
*
|
|
2034
|
-
* This operation:
|
|
2035
|
-
* - Deactivates the account (user cannot log in)
|
|
2036
|
-
* - Anonymizes personal data (GDPR compliance)
|
|
2037
|
-
* - Frees up the email address for re-registration
|
|
2038
|
-
* - Preserves audit trail
|
|
2039
|
-
*
|
|
2040
|
-
* The account can be restored by an administrator if needed.
|
|
2041
|
-
*
|
|
2042
|
-
*/
|
|
2043
|
-
static cfgAccountsProfileDeleteCreate<ThrowOnError extends boolean = false>(options?: Options<CfgAccountsProfileDeleteCreateData, ThrowOnError>): RequestResult<CfgAccountsProfileDeleteCreateResponses, CfgAccountsProfileDeleteCreateErrors, ThrowOnError, "fields">;
|
|
2044
|
-
/**
|
|
2045
|
-
* Partial update user profile
|
|
2046
|
-
*
|
|
2047
|
-
* Partially update the current authenticated user's profile information. Supports avatar upload.
|
|
2048
|
-
*/
|
|
2049
|
-
static cfgAccountsProfilePartialPartialUpdate<ThrowOnError extends boolean = false>(options?: Options<CfgAccountsProfilePartialPartialUpdateData, ThrowOnError>): RequestResult<CfgAccountsProfilePartialPartialUpdateResponses, CfgAccountsProfilePartialPartialUpdateErrors, ThrowOnError, "fields">;
|
|
2050
|
-
/**
|
|
2051
|
-
* Partial update user profile
|
|
2052
|
-
*
|
|
2053
|
-
* Partially update the current authenticated user's profile information. Supports avatar upload.
|
|
2054
|
-
*/
|
|
2055
|
-
static cfgAccountsProfilePartialUpdate<ThrowOnError extends boolean = false>(options?: Options<CfgAccountsProfilePartialUpdateData, ThrowOnError>): RequestResult<CfgAccountsProfilePartialUpdateResponses, CfgAccountsProfilePartialUpdateErrors, ThrowOnError, "fields">;
|
|
2056
|
-
/**
|
|
2057
|
-
* Update user profile
|
|
2058
|
-
*
|
|
2059
|
-
* Update the current authenticated user's profile information.
|
|
2060
|
-
*/
|
|
2061
|
-
static cfgAccountsProfileUpdatePartialUpdate<ThrowOnError extends boolean = false>(options?: Options<CfgAccountsProfileUpdatePartialUpdateData, ThrowOnError>): RequestResult<CfgAccountsProfileUpdatePartialUpdateResponses, CfgAccountsProfileUpdatePartialUpdateErrors, ThrowOnError, "fields">;
|
|
2062
|
-
/**
|
|
2063
|
-
* Update user profile
|
|
2064
|
-
*
|
|
2065
|
-
* Update the current authenticated user's profile information.
|
|
2066
|
-
*/
|
|
2067
|
-
static cfgAccountsProfileUpdateUpdate<ThrowOnError extends boolean = false>(options?: Options<CfgAccountsProfileUpdateUpdateData, ThrowOnError>): RequestResult<CfgAccountsProfileUpdateUpdateResponses, CfgAccountsProfileUpdateUpdateErrors, ThrowOnError, "fields">;
|
|
2068
|
-
/**
|
|
2069
|
-
* Refresh JWT token.
|
|
2070
|
-
*/
|
|
2071
|
-
static cfgAccountsTokenRefreshCreate<ThrowOnError extends boolean = false>(options: Options<CfgAccountsTokenRefreshCreateData, ThrowOnError>): RequestResult<CfgAccountsTokenRefreshCreateResponses, unknown, ThrowOnError, "fields">;
|
|
2072
|
-
}
|
|
2073
|
-
declare class OAuth {
|
|
2074
|
-
/**
|
|
2075
|
-
* List OAuth connections
|
|
2076
|
-
*
|
|
2077
|
-
* Get all OAuth connections for the current user.
|
|
2078
|
-
*/
|
|
2079
|
-
static cfgAccountsOauthConnectionsList<ThrowOnError extends boolean = false>(options?: Options<CfgAccountsOauthConnectionsListData, ThrowOnError>): RequestResult<CfgAccountsOauthConnectionsListResponses, unknown, ThrowOnError, "fields">;
|
|
2080
|
-
/**
|
|
2081
|
-
* Disconnect OAuth provider
|
|
2082
|
-
*
|
|
2083
|
-
* Remove OAuth connection for the specified provider.
|
|
2084
|
-
*/
|
|
2085
|
-
static cfgAccountsOauthDisconnectCreate<ThrowOnError extends boolean = false>(options: Options<CfgAccountsOauthDisconnectCreateData, ThrowOnError>): RequestResult<CfgAccountsOauthDisconnectCreateResponses, CfgAccountsOauthDisconnectCreateErrors, ThrowOnError, "fields">;
|
|
2086
|
-
/**
|
|
2087
|
-
* Start GitHub OAuth
|
|
2088
|
-
*
|
|
2089
|
-
* Generate GitHub OAuth authorization URL. Redirect user to this URL to start authentication.
|
|
2090
|
-
*/
|
|
2091
|
-
static cfgAccountsOauthGithubAuthorizeCreate<ThrowOnError extends boolean = false>(options?: Options<CfgAccountsOauthGithubAuthorizeCreateData, ThrowOnError>): RequestResult<CfgAccountsOauthGithubAuthorizeCreateResponses, CfgAccountsOauthGithubAuthorizeCreateErrors, ThrowOnError, "fields">;
|
|
2092
|
-
/**
|
|
2093
|
-
* Complete GitHub OAuth
|
|
2094
|
-
*
|
|
2095
|
-
* Exchange authorization code for JWT tokens. Call this after GitHub redirects back with code.
|
|
2096
|
-
*/
|
|
2097
|
-
static cfgAccountsOauthGithubCallbackCreate<ThrowOnError extends boolean = false>(options: Options<CfgAccountsOauthGithubCallbackCreateData, ThrowOnError>): RequestResult<CfgAccountsOauthGithubCallbackCreateResponses, CfgAccountsOauthGithubCallbackCreateErrors, ThrowOnError, "fields">;
|
|
2098
|
-
/**
|
|
2099
|
-
* List OAuth providers
|
|
2100
|
-
*
|
|
2101
|
-
* Get list of available OAuth providers for authentication.
|
|
2102
|
-
*/
|
|
2103
|
-
static cfgAccountsOauthProvidersRetrieve<ThrowOnError extends boolean = false>(options?: Options<CfgAccountsOauthProvidersRetrieveData, ThrowOnError>): RequestResult<CfgAccountsOauthProvidersRetrieveResponses, unknown, ThrowOnError, "fields">;
|
|
2104
1810
|
}
|
|
2105
|
-
declare class
|
|
1811
|
+
declare class CfgAccountsProfile {
|
|
2106
1812
|
/**
|
|
2107
1813
|
* Get current user profile
|
|
2108
1814
|
*
|
|
@@ -2130,108 +1836,47 @@ declare class UserProfile {
|
|
|
2130
1836
|
* The account can be restored by an administrator if needed.
|
|
2131
1837
|
*
|
|
2132
1838
|
*/
|
|
2133
|
-
static cfgAccountsProfileDeleteCreate<ThrowOnError extends boolean = false>(options?: Options<CfgAccountsProfileDeleteCreateData, ThrowOnError>): RequestResult<CfgAccountsProfileDeleteCreateResponses, CfgAccountsProfileDeleteCreateErrors, ThrowOnError, "fields">;
|
|
2134
|
-
/**
|
|
2135
|
-
* Partial update user profile
|
|
2136
|
-
*
|
|
2137
|
-
* Partially update the current authenticated user's profile information. Supports avatar upload.
|
|
2138
|
-
*/
|
|
2139
|
-
static cfgAccountsProfilePartialPartialUpdate<ThrowOnError extends boolean = false>(options?: Options<CfgAccountsProfilePartialPartialUpdateData, ThrowOnError>): RequestResult<CfgAccountsProfilePartialPartialUpdateResponses, CfgAccountsProfilePartialPartialUpdateErrors, ThrowOnError, "fields">;
|
|
2140
|
-
/**
|
|
2141
|
-
* Partial update user profile
|
|
2142
|
-
*
|
|
2143
|
-
* Partially update the current authenticated user's profile information. Supports avatar upload.
|
|
2144
|
-
*/
|
|
2145
|
-
static cfgAccountsProfilePartialUpdate<ThrowOnError extends boolean = false>(options?: Options<CfgAccountsProfilePartialUpdateData, ThrowOnError>): RequestResult<CfgAccountsProfilePartialUpdateResponses, CfgAccountsProfilePartialUpdateErrors, ThrowOnError, "fields">;
|
|
2146
|
-
/**
|
|
2147
|
-
* Update user profile
|
|
2148
|
-
*
|
|
2149
|
-
* Update the current authenticated user's profile information.
|
|
2150
|
-
*/
|
|
2151
|
-
static cfgAccountsProfileUpdatePartialUpdate<ThrowOnError extends boolean = false>(options?: Options<CfgAccountsProfileUpdatePartialUpdateData, ThrowOnError>): RequestResult<CfgAccountsProfileUpdatePartialUpdateResponses, CfgAccountsProfileUpdatePartialUpdateErrors, ThrowOnError, "fields">;
|
|
2152
|
-
/**
|
|
2153
|
-
* Update user profile
|
|
2154
|
-
*
|
|
2155
|
-
* Update the current authenticated user's profile information.
|
|
2156
|
-
*/
|
|
2157
|
-
static cfgAccountsProfileUpdateUpdate<ThrowOnError extends boolean = false>(options?: Options<CfgAccountsProfileUpdateUpdateData, ThrowOnError>): RequestResult<CfgAccountsProfileUpdateUpdateResponses, CfgAccountsProfileUpdateUpdateErrors, ThrowOnError, "fields">;
|
|
2158
|
-
}
|
|
2159
|
-
declare class Auth {
|
|
2160
|
-
/**
|
|
2161
|
-
* Refresh JWT token.
|
|
2162
|
-
*/
|
|
2163
|
-
static cfgAccountsTokenRefreshCreate<ThrowOnError extends boolean = false>(options: Options<CfgAccountsTokenRefreshCreateData, ThrowOnError>): RequestResult<CfgAccountsTokenRefreshCreateResponses, unknown, ThrowOnError, "fields">;
|
|
2164
|
-
}
|
|
2165
|
-
declare class Centrifugo {
|
|
2166
|
-
/**
|
|
2167
|
-
* Get Centrifugo connection token
|
|
2168
|
-
*
|
|
2169
|
-
* Generate JWT token for WebSocket connection to Centrifugo. Token includes user's allowed channels based on their permissions. Requires authentication.
|
|
2170
|
-
*/
|
|
2171
|
-
static cfgCentrifugoAuthTokenRetrieve<ThrowOnError extends boolean = false>(options?: Options<CfgCentrifugoAuthTokenRetrieveData, ThrowOnError>): RequestResult<CfgCentrifugoAuthTokenRetrieveResponses, CfgCentrifugoAuthTokenRetrieveErrors, ThrowOnError, "fields">;
|
|
2172
|
-
}
|
|
2173
|
-
declare class CentrifugoAuth {
|
|
2174
|
-
/**
|
|
2175
|
-
* Get Centrifugo connection token
|
|
2176
|
-
*
|
|
2177
|
-
* Generate JWT token for WebSocket connection to Centrifugo. Token includes user's allowed channels based on their permissions. Requires authentication.
|
|
2178
|
-
*/
|
|
2179
|
-
static cfgCentrifugoAuthTokenRetrieve<ThrowOnError extends boolean = false>(options?: Options<CfgCentrifugoAuthTokenRetrieveData, ThrowOnError>): RequestResult<CfgCentrifugoAuthTokenRetrieveResponses, CfgCentrifugoAuthTokenRetrieveErrors, ThrowOnError, "fields">;
|
|
2180
|
-
}
|
|
2181
|
-
declare class Totp {
|
|
2182
|
-
/**
|
|
2183
|
-
* Get backup codes status for user.
|
|
2184
|
-
*/
|
|
2185
|
-
static cfgTotpBackupCodesRetrieve<ThrowOnError extends boolean = false>(options?: Options<CfgTotpBackupCodesRetrieveData, ThrowOnError>): RequestResult<CfgTotpBackupCodesRetrieveResponses, unknown, ThrowOnError, "fields">;
|
|
2186
|
-
/**
|
|
2187
|
-
* Regenerate backup codes.
|
|
2188
|
-
*
|
|
2189
|
-
* Requires TOTP code for verification.
|
|
2190
|
-
* Invalidates all existing codes.
|
|
2191
|
-
*/
|
|
2192
|
-
static cfgTotpBackupCodesRegenerateCreate<ThrowOnError extends boolean = false>(options: Options<CfgTotpBackupCodesRegenerateCreateData, ThrowOnError>): RequestResult<CfgTotpBackupCodesRegenerateCreateResponses, CfgTotpBackupCodesRegenerateCreateErrors, ThrowOnError, "fields">;
|
|
2193
|
-
/**
|
|
2194
|
-
* List all TOTP devices for user.
|
|
2195
|
-
*/
|
|
2196
|
-
static cfgTotpDevicesRetrieve<ThrowOnError extends boolean = false>(options?: Options<CfgTotpDevicesRetrieveData, ThrowOnError>): RequestResult<CfgTotpDevicesRetrieveResponses, unknown, ThrowOnError, "fields">;
|
|
1839
|
+
static cfgAccountsProfileDeleteCreate<ThrowOnError extends boolean = false>(options?: Options<CfgAccountsProfileDeleteCreateData, ThrowOnError>): RequestResult<CfgAccountsProfileDeleteCreateResponses, CfgAccountsProfileDeleteCreateErrors, ThrowOnError, "fields">;
|
|
2197
1840
|
/**
|
|
2198
|
-
*
|
|
1841
|
+
* Partial update user profile
|
|
2199
1842
|
*
|
|
2200
|
-
*
|
|
1843
|
+
* Partially update the current authenticated user's profile information. Supports avatar upload.
|
|
2201
1844
|
*/
|
|
2202
|
-
static
|
|
1845
|
+
static cfgAccountsProfilePartialPartialUpdate<ThrowOnError extends boolean = false>(options?: Options<CfgAccountsProfilePartialPartialUpdateData, ThrowOnError>): RequestResult<CfgAccountsProfilePartialPartialUpdateResponses, CfgAccountsProfilePartialPartialUpdateErrors, ThrowOnError, "fields">;
|
|
2203
1846
|
/**
|
|
2204
|
-
*
|
|
1847
|
+
* Partial update user profile
|
|
2205
1848
|
*
|
|
2206
|
-
*
|
|
1849
|
+
* Partially update the current authenticated user's profile information. Supports avatar upload.
|
|
2207
1850
|
*/
|
|
2208
|
-
static
|
|
1851
|
+
static cfgAccountsProfilePartialUpdate<ThrowOnError extends boolean = false>(options?: Options<CfgAccountsProfilePartialUpdateData, ThrowOnError>): RequestResult<CfgAccountsProfilePartialUpdateResponses, CfgAccountsProfilePartialUpdateErrors, ThrowOnError, "fields">;
|
|
2209
1852
|
/**
|
|
2210
|
-
*
|
|
1853
|
+
* Update user profile
|
|
2211
1854
|
*
|
|
2212
|
-
*
|
|
1855
|
+
* Update the current authenticated user's profile information.
|
|
2213
1856
|
*/
|
|
2214
|
-
static
|
|
1857
|
+
static cfgAccountsProfileUpdatePartialUpdate<ThrowOnError extends boolean = false>(options?: Options<CfgAccountsProfileUpdatePartialUpdateData, ThrowOnError>): RequestResult<CfgAccountsProfileUpdatePartialUpdateResponses, CfgAccountsProfileUpdatePartialUpdateErrors, ThrowOnError, "fields">;
|
|
2215
1858
|
/**
|
|
2216
|
-
*
|
|
1859
|
+
* Update user profile
|
|
2217
1860
|
*
|
|
2218
|
-
*
|
|
1861
|
+
* Update the current authenticated user's profile information.
|
|
2219
1862
|
*/
|
|
2220
|
-
static
|
|
1863
|
+
static cfgAccountsProfileUpdateUpdate<ThrowOnError extends boolean = false>(options?: Options<CfgAccountsProfileUpdateUpdateData, ThrowOnError>): RequestResult<CfgAccountsProfileUpdateUpdateResponses, CfgAccountsProfileUpdateUpdateErrors, ThrowOnError, "fields">;
|
|
1864
|
+
}
|
|
1865
|
+
declare class CfgAccountsAuth {
|
|
2221
1866
|
/**
|
|
2222
|
-
*
|
|
2223
|
-
*
|
|
2224
|
-
* Completes authentication and returns JWT tokens on success.
|
|
1867
|
+
* Refresh JWT token.
|
|
2225
1868
|
*/
|
|
2226
|
-
static
|
|
1869
|
+
static cfgAccountsTokenRefreshCreate<ThrowOnError extends boolean = false>(options: Options<CfgAccountsTokenRefreshCreateData, ThrowOnError>): RequestResult<CfgAccountsTokenRefreshCreateResponses, unknown, ThrowOnError, "fields">;
|
|
1870
|
+
}
|
|
1871
|
+
declare class CfgCentrifugo {
|
|
2227
1872
|
/**
|
|
2228
|
-
*
|
|
1873
|
+
* Get Centrifugo connection token
|
|
2229
1874
|
*
|
|
2230
|
-
*
|
|
1875
|
+
* Generate JWT token for WebSocket connection to Centrifugo. Token includes user's allowed channels based on their permissions. Requires authentication.
|
|
2231
1876
|
*/
|
|
2232
|
-
static
|
|
1877
|
+
static cfgCentrifugoAuthTokenRetrieve<ThrowOnError extends boolean = false>(options?: Options<CfgCentrifugoAuthTokenRetrieveData, ThrowOnError>): RequestResult<CfgCentrifugoAuthTokenRetrieveResponses, CfgCentrifugoAuthTokenRetrieveErrors, ThrowOnError, "fields">;
|
|
2233
1878
|
}
|
|
2234
|
-
declare class
|
|
1879
|
+
declare class CfgTotpBackupCodes {
|
|
2235
1880
|
/**
|
|
2236
1881
|
* Get backup codes status for user.
|
|
2237
1882
|
*/
|
|
@@ -2244,11 +1889,17 @@ declare class BackupCodes {
|
|
|
2244
1889
|
*/
|
|
2245
1890
|
static cfgTotpBackupCodesRegenerateCreate<ThrowOnError extends boolean = false>(options: Options<CfgTotpBackupCodesRegenerateCreateData, ThrowOnError>): RequestResult<CfgTotpBackupCodesRegenerateCreateResponses, CfgTotpBackupCodesRegenerateCreateErrors, ThrowOnError, "fields">;
|
|
2246
1891
|
}
|
|
2247
|
-
declare class
|
|
1892
|
+
declare class CfgTotp {
|
|
2248
1893
|
/**
|
|
2249
1894
|
* List all TOTP devices for user.
|
|
2250
1895
|
*/
|
|
2251
1896
|
static cfgTotpDevicesRetrieve<ThrowOnError extends boolean = false>(options?: Options<CfgTotpDevicesRetrieveData, ThrowOnError>): RequestResult<CfgTotpDevicesRetrieveResponses, unknown, ThrowOnError, "fields">;
|
|
1897
|
+
/**
|
|
1898
|
+
* Delete a TOTP device.
|
|
1899
|
+
*
|
|
1900
|
+
* Requires verification code if removing the last/primary device.
|
|
1901
|
+
*/
|
|
1902
|
+
static cfgTotpDevicesDestroy<ThrowOnError extends boolean = false>(options: Options<CfgTotpDevicesDestroyData, ThrowOnError>): RequestResult<CfgTotpDevicesDestroyResponses, unknown, ThrowOnError, "fields">;
|
|
2252
1903
|
/**
|
|
2253
1904
|
* Completely disable 2FA for account.
|
|
2254
1905
|
*
|
|
@@ -2256,7 +1907,7 @@ declare class TotpManagement {
|
|
|
2256
1907
|
*/
|
|
2257
1908
|
static cfgTotpDisableCreate<ThrowOnError extends boolean = false>(options: Options<CfgTotpDisableCreateData, ThrowOnError>): RequestResult<CfgTotpDisableCreateResponses, CfgTotpDisableCreateErrors, ThrowOnError, "fields">;
|
|
2258
1909
|
}
|
|
2259
|
-
declare class
|
|
1910
|
+
declare class CfgTotpSetup {
|
|
2260
1911
|
/**
|
|
2261
1912
|
* Start 2FA setup process.
|
|
2262
1913
|
*
|
|
@@ -2270,7 +1921,7 @@ declare class TotpSetup {
|
|
|
2270
1921
|
*/
|
|
2271
1922
|
static cfgTotpSetupConfirmCreate<ThrowOnError extends boolean = false>(options: Options<CfgTotpSetupConfirmCreateData, ThrowOnError>): RequestResult<CfgTotpSetupConfirmCreateResponses, CfgTotpSetupConfirmCreateErrors, ThrowOnError, "fields">;
|
|
2272
1923
|
}
|
|
2273
|
-
declare class
|
|
1924
|
+
declare class CfgTotpVerify {
|
|
2274
1925
|
/**
|
|
2275
1926
|
* Verify TOTP code for 2FA session.
|
|
2276
1927
|
*
|
|
@@ -2285,19 +1936,257 @@ declare class TotpVerification {
|
|
|
2285
1936
|
static cfgTotpVerifyBackupCreate<ThrowOnError extends boolean = false>(options: Options<CfgTotpVerifyBackupCreateData, ThrowOnError>): RequestResult<CfgTotpVerifyBackupCreateResponses, CfgTotpVerifyBackupCreateErrors, ThrowOnError, "fields">;
|
|
2286
1937
|
}
|
|
2287
1938
|
|
|
1939
|
+
interface APIOptions$2 {
|
|
1940
|
+
/** Logger config (defaults to dev-only). */
|
|
1941
|
+
logger?: Partial<LoggerConfig>;
|
|
1942
|
+
/** Locale for `Accept-Language`. If omitted, auto-detected from cookie/navigator. */
|
|
1943
|
+
locale?: string;
|
|
1944
|
+
/** API key sent as `X-API-Key`. Falls back to NEXT_PUBLIC_API_KEY. */
|
|
1945
|
+
apiKey?: string;
|
|
1946
|
+
/** Send Django session/CSRF cookies cross-origin. Defaults to true. */
|
|
1947
|
+
withCredentials?: boolean;
|
|
1948
|
+
}
|
|
1949
|
+
/**
|
|
1950
|
+
* Per-group ergonomic facade.
|
|
1951
|
+
*
|
|
1952
|
+
* Calling `setToken/setApiKey/setLocale/setBaseUrl` proxies to the
|
|
1953
|
+
* global `auth` store — the change applies to **every** group's API
|
|
1954
|
+
* instance because they share the same HTTP client and interceptor.
|
|
1955
|
+
*
|
|
1956
|
+
* Use the global `auth` object directly when you don't need a group
|
|
1957
|
+
* facade: `import { auth } from '@your/api'; auth.setToken(jwt);`
|
|
1958
|
+
*/
|
|
1959
|
+
declare class API$2 {
|
|
1960
|
+
readonly logger: APILogger;
|
|
1961
|
+
readonly cfgAccountsApiKey: typeof CfgAccountsApiKey;
|
|
1962
|
+
readonly cfgAccountsOauth: typeof CfgAccountsOauth;
|
|
1963
|
+
readonly cfgAccounts: typeof CfgAccounts;
|
|
1964
|
+
readonly cfgAccountsProfile: typeof CfgAccountsProfile;
|
|
1965
|
+
readonly cfgAccountsAuth: typeof CfgAccountsAuth;
|
|
1966
|
+
constructor(_baseUrl?: string, opts?: APIOptions$2);
|
|
1967
|
+
getBaseUrl(): string;
|
|
1968
|
+
setBaseUrl(url: string): void;
|
|
1969
|
+
getToken(): string | null;
|
|
1970
|
+
setToken(token: string | null): void;
|
|
1971
|
+
getRefreshToken(): string | null;
|
|
1972
|
+
setRefreshToken(token: string | null): void;
|
|
1973
|
+
clearToken(): void;
|
|
1974
|
+
isAuthenticated(): boolean;
|
|
1975
|
+
getLocale(): string | null;
|
|
1976
|
+
setLocale(locale: string | null): void;
|
|
1977
|
+
getApiKey(): string | null;
|
|
1978
|
+
setApiKey(key: string | null): void;
|
|
1979
|
+
/** Fired only on terminal 401 (after refresh+retry path is exhausted). */
|
|
1980
|
+
onUnauthorized(cb: ((response: Response) => void) | null): void;
|
|
1981
|
+
/** Provide a refresh strategy. See `auth.setRefreshHandler` for the contract. */
|
|
1982
|
+
setRefreshHandler(fn: ((refreshToken: string) => Promise<{
|
|
1983
|
+
access: string;
|
|
1984
|
+
refresh?: string;
|
|
1985
|
+
} | null>) | null): void;
|
|
1986
|
+
}
|
|
1987
|
+
|
|
1988
|
+
interface StorageAdapter {
|
|
1989
|
+
getItem(key: string): string | null;
|
|
1990
|
+
setItem(key: string, value: string): void;
|
|
1991
|
+
removeItem(key: string): void;
|
|
1992
|
+
clear?(): void;
|
|
1993
|
+
}
|
|
1994
|
+
/** Browser localStorage. Falls back to no-op on SSR / private mode. */
|
|
1995
|
+
declare class LocalStorageAdapter implements StorageAdapter {
|
|
1996
|
+
getItem(key: string): string | null;
|
|
1997
|
+
setItem(key: string, value: string): void;
|
|
1998
|
+
removeItem(key: string): void;
|
|
1999
|
+
clear(): void;
|
|
2000
|
+
}
|
|
2001
|
+
/** In-memory store. Use for SSR, Electron main process, or tests. */
|
|
2002
|
+
declare class MemoryStorageAdapter implements StorageAdapter {
|
|
2003
|
+
private store;
|
|
2004
|
+
getItem(key: string): string | null;
|
|
2005
|
+
setItem(key: string, value: string): void;
|
|
2006
|
+
removeItem(key: string): void;
|
|
2007
|
+
clear(): void;
|
|
2008
|
+
}
|
|
2009
|
+
/** Cookie-backed storage (browser only). */
|
|
2010
|
+
declare class CookieStorageAdapter implements StorageAdapter {
|
|
2011
|
+
private opts;
|
|
2012
|
+
constructor(opts?: {
|
|
2013
|
+
domain?: string;
|
|
2014
|
+
path?: string;
|
|
2015
|
+
secure?: boolean;
|
|
2016
|
+
sameSite?: "Strict" | "Lax" | "None";
|
|
2017
|
+
maxAgeSeconds?: number;
|
|
2018
|
+
});
|
|
2019
|
+
getItem(key: string): string | null;
|
|
2020
|
+
setItem(key: string, value: string): void;
|
|
2021
|
+
removeItem(key: string): void;
|
|
2022
|
+
}
|
|
2023
|
+
|
|
2024
|
+
/**
|
|
2025
|
+
* HTTP API Error with DRF field-specific validation errors.
|
|
2026
|
+
*/
|
|
2027
|
+
declare class APIError extends Error {
|
|
2028
|
+
statusCode: number;
|
|
2029
|
+
statusText: string;
|
|
2030
|
+
response: any;
|
|
2031
|
+
url: string;
|
|
2032
|
+
constructor(statusCode: number, statusText: string, response: any, url: string, message?: string);
|
|
2033
|
+
get details(): Record<string, any> | null;
|
|
2034
|
+
get fieldErrors(): Record<string, string[]> | null;
|
|
2035
|
+
get errorMessage(): string;
|
|
2036
|
+
get isValidationError(): boolean;
|
|
2037
|
+
get isAuthError(): boolean;
|
|
2038
|
+
get isPermissionError(): boolean;
|
|
2039
|
+
get isNotFoundError(): boolean;
|
|
2040
|
+
get isServerError(): boolean;
|
|
2041
|
+
}
|
|
2042
|
+
/** Network Error (connection failed, timeout, etc.) */
|
|
2043
|
+
declare class NetworkError extends Error {
|
|
2044
|
+
url: string;
|
|
2045
|
+
originalError?: Error;
|
|
2046
|
+
constructor(message: string, url: string, originalError?: Error);
|
|
2047
|
+
}
|
|
2048
|
+
|
|
2049
|
+
interface ValidationErrorDetail {
|
|
2050
|
+
operation: string;
|
|
2051
|
+
path: string;
|
|
2052
|
+
method: string;
|
|
2053
|
+
error: ZodError;
|
|
2054
|
+
response: any;
|
|
2055
|
+
timestamp: Date;
|
|
2056
|
+
}
|
|
2057
|
+
type ValidationErrorEvent = CustomEvent<ValidationErrorDetail>;
|
|
2058
|
+
declare function dispatchValidationError(detail: ValidationErrorDetail): void;
|
|
2059
|
+
declare function onValidationError(callback: (detail: ValidationErrorDetail) => void): () => void;
|
|
2060
|
+
declare function formatZodError(error: ZodError): string;
|
|
2061
|
+
|
|
2062
|
+
interface APIOptions$1 {
|
|
2063
|
+
/** Logger config (defaults to dev-only). */
|
|
2064
|
+
logger?: Partial<LoggerConfig>;
|
|
2065
|
+
/** Locale for `Accept-Language`. If omitted, auto-detected from cookie/navigator. */
|
|
2066
|
+
locale?: string;
|
|
2067
|
+
/** API key sent as `X-API-Key`. Falls back to NEXT_PUBLIC_API_KEY. */
|
|
2068
|
+
apiKey?: string;
|
|
2069
|
+
/** Send Django session/CSRF cookies cross-origin. Defaults to true. */
|
|
2070
|
+
withCredentials?: boolean;
|
|
2071
|
+
}
|
|
2072
|
+
/**
|
|
2073
|
+
* Per-group ergonomic facade.
|
|
2074
|
+
*
|
|
2075
|
+
* Calling `setToken/setApiKey/setLocale/setBaseUrl` proxies to the
|
|
2076
|
+
* global `auth` store — the change applies to **every** group's API
|
|
2077
|
+
* instance because they share the same HTTP client and interceptor.
|
|
2078
|
+
*
|
|
2079
|
+
* Use the global `auth` object directly when you don't need a group
|
|
2080
|
+
* facade: `import { auth } from '@your/api'; auth.setToken(jwt);`
|
|
2081
|
+
*/
|
|
2082
|
+
declare class API$1 {
|
|
2083
|
+
readonly logger: APILogger;
|
|
2084
|
+
readonly cfgCentrifugo: typeof CfgCentrifugo;
|
|
2085
|
+
constructor(_baseUrl?: string, opts?: APIOptions$1);
|
|
2086
|
+
getBaseUrl(): string;
|
|
2087
|
+
setBaseUrl(url: string): void;
|
|
2088
|
+
getToken(): string | null;
|
|
2089
|
+
setToken(token: string | null): void;
|
|
2090
|
+
getRefreshToken(): string | null;
|
|
2091
|
+
setRefreshToken(token: string | null): void;
|
|
2092
|
+
clearToken(): void;
|
|
2093
|
+
isAuthenticated(): boolean;
|
|
2094
|
+
getLocale(): string | null;
|
|
2095
|
+
setLocale(locale: string | null): void;
|
|
2096
|
+
getApiKey(): string | null;
|
|
2097
|
+
setApiKey(key: string | null): void;
|
|
2098
|
+
/** Fired only on terminal 401 (after refresh+retry path is exhausted). */
|
|
2099
|
+
onUnauthorized(cb: ((response: Response) => void) | null): void;
|
|
2100
|
+
/** Provide a refresh strategy. See `auth.setRefreshHandler` for the contract. */
|
|
2101
|
+
setRefreshHandler(fn: ((refreshToken: string) => Promise<{
|
|
2102
|
+
access: string;
|
|
2103
|
+
refresh?: string;
|
|
2104
|
+
} | null>) | null): void;
|
|
2105
|
+
}
|
|
2106
|
+
|
|
2107
|
+
interface APIOptions {
|
|
2108
|
+
/** Logger config (defaults to dev-only). */
|
|
2109
|
+
logger?: Partial<LoggerConfig>;
|
|
2110
|
+
/** Locale for `Accept-Language`. If omitted, auto-detected from cookie/navigator. */
|
|
2111
|
+
locale?: string;
|
|
2112
|
+
/** API key sent as `X-API-Key`. Falls back to NEXT_PUBLIC_API_KEY. */
|
|
2113
|
+
apiKey?: string;
|
|
2114
|
+
/** Send Django session/CSRF cookies cross-origin. Defaults to true. */
|
|
2115
|
+
withCredentials?: boolean;
|
|
2116
|
+
}
|
|
2117
|
+
/**
|
|
2118
|
+
* Per-group ergonomic facade.
|
|
2119
|
+
*
|
|
2120
|
+
* Calling `setToken/setApiKey/setLocale/setBaseUrl` proxies to the
|
|
2121
|
+
* global `auth` store — the change applies to **every** group's API
|
|
2122
|
+
* instance because they share the same HTTP client and interceptor.
|
|
2123
|
+
*
|
|
2124
|
+
* Use the global `auth` object directly when you don't need a group
|
|
2125
|
+
* facade: `import { auth } from '@your/api'; auth.setToken(jwt);`
|
|
2126
|
+
*/
|
|
2127
|
+
declare class API {
|
|
2128
|
+
readonly logger: APILogger;
|
|
2129
|
+
readonly cfgTotpBackupCodes: typeof CfgTotpBackupCodes;
|
|
2130
|
+
readonly cfgTotp: typeof CfgTotp;
|
|
2131
|
+
readonly cfgTotpSetup: typeof CfgTotpSetup;
|
|
2132
|
+
readonly cfgTotpVerify: typeof CfgTotpVerify;
|
|
2133
|
+
constructor(_baseUrl?: string, opts?: APIOptions);
|
|
2134
|
+
getBaseUrl(): string;
|
|
2135
|
+
setBaseUrl(url: string): void;
|
|
2136
|
+
getToken(): string | null;
|
|
2137
|
+
setToken(token: string | null): void;
|
|
2138
|
+
getRefreshToken(): string | null;
|
|
2139
|
+
setRefreshToken(token: string | null): void;
|
|
2140
|
+
clearToken(): void;
|
|
2141
|
+
isAuthenticated(): boolean;
|
|
2142
|
+
getLocale(): string | null;
|
|
2143
|
+
setLocale(locale: string | null): void;
|
|
2144
|
+
getApiKey(): string | null;
|
|
2145
|
+
setApiKey(key: string | null): void;
|
|
2146
|
+
/** Fired only on terminal 401 (after refresh+retry path is exhausted). */
|
|
2147
|
+
onUnauthorized(cb: ((response: Response) => void) | null): void;
|
|
2148
|
+
/** Provide a refresh strategy. See `auth.setRefreshHandler` for the contract. */
|
|
2149
|
+
setRefreshHandler(fn: ((refreshToken: string) => Promise<{
|
|
2150
|
+
access: string;
|
|
2151
|
+
refresh?: string;
|
|
2152
|
+
} | null>) | null): void;
|
|
2153
|
+
}
|
|
2154
|
+
|
|
2155
|
+
declare const CfgAccountsApi: API$2;
|
|
2156
|
+
declare const CfgCentrifugoApi: API$1;
|
|
2157
|
+
declare const CfgTotpApi: API;
|
|
2158
|
+
|
|
2288
2159
|
type types_gen$2_AccountDeleteResponse = AccountDeleteResponse;
|
|
2160
|
+
type types_gen$2_ApiKey = ApiKey;
|
|
2161
|
+
type types_gen$2_ApiKeyRegenerate = ApiKeyRegenerate;
|
|
2162
|
+
type types_gen$2_ApiKeyRequest = ApiKeyRequest;
|
|
2163
|
+
type types_gen$2_ApiKeyTestRequest = ApiKeyTestRequest;
|
|
2164
|
+
type types_gen$2_ApiKeyTestResult = ApiKeyTestResult;
|
|
2289
2165
|
type types_gen$2_BackupCodesRegenerateRequest = BackupCodesRegenerateRequest;
|
|
2290
2166
|
type types_gen$2_BackupCodesRegenerateResponse = BackupCodesRegenerateResponse;
|
|
2291
2167
|
type types_gen$2_BackupCodesStatus = BackupCodesStatus;
|
|
2292
2168
|
type types_gen$2_CentrifugoToken = CentrifugoToken;
|
|
2169
|
+
type types_gen$2_CfgAccountsApiKeyRegenerateCreateData = CfgAccountsApiKeyRegenerateCreateData;
|
|
2170
|
+
type types_gen$2_CfgAccountsApiKeyRegenerateCreateErrors = CfgAccountsApiKeyRegenerateCreateErrors;
|
|
2171
|
+
type types_gen$2_CfgAccountsApiKeyRegenerateCreateResponse = CfgAccountsApiKeyRegenerateCreateResponse;
|
|
2172
|
+
type types_gen$2_CfgAccountsApiKeyRegenerateCreateResponses = CfgAccountsApiKeyRegenerateCreateResponses;
|
|
2173
|
+
type types_gen$2_CfgAccountsApiKeyRetrieveData = CfgAccountsApiKeyRetrieveData;
|
|
2174
|
+
type types_gen$2_CfgAccountsApiKeyRetrieveErrors = CfgAccountsApiKeyRetrieveErrors;
|
|
2175
|
+
type types_gen$2_CfgAccountsApiKeyRetrieveResponse = CfgAccountsApiKeyRetrieveResponse;
|
|
2176
|
+
type types_gen$2_CfgAccountsApiKeyRetrieveResponses = CfgAccountsApiKeyRetrieveResponses;
|
|
2177
|
+
type types_gen$2_CfgAccountsApiKeyTestCreateData = CfgAccountsApiKeyTestCreateData;
|
|
2178
|
+
type types_gen$2_CfgAccountsApiKeyTestCreateResponse = CfgAccountsApiKeyTestCreateResponse;
|
|
2179
|
+
type types_gen$2_CfgAccountsApiKeyTestCreateResponses = CfgAccountsApiKeyTestCreateResponses;
|
|
2293
2180
|
type types_gen$2_CfgAccountsOauthConnectionsListData = CfgAccountsOauthConnectionsListData;
|
|
2294
2181
|
type types_gen$2_CfgAccountsOauthConnectionsListResponse = CfgAccountsOauthConnectionsListResponse;
|
|
2295
2182
|
type types_gen$2_CfgAccountsOauthConnectionsListResponses = CfgAccountsOauthConnectionsListResponses;
|
|
2183
|
+
type types_gen$2_CfgAccountsOauthConnectionsResponse200AutoRef = CfgAccountsOauthConnectionsResponse200AutoRef;
|
|
2296
2184
|
type types_gen$2_CfgAccountsOauthDisconnectCreateData = CfgAccountsOauthDisconnectCreateData;
|
|
2297
2185
|
type types_gen$2_CfgAccountsOauthDisconnectCreateError = CfgAccountsOauthDisconnectCreateError;
|
|
2298
2186
|
type types_gen$2_CfgAccountsOauthDisconnectCreateErrors = CfgAccountsOauthDisconnectCreateErrors;
|
|
2299
2187
|
type types_gen$2_CfgAccountsOauthDisconnectCreateResponse = CfgAccountsOauthDisconnectCreateResponse;
|
|
2300
2188
|
type types_gen$2_CfgAccountsOauthDisconnectCreateResponses = CfgAccountsOauthDisconnectCreateResponses;
|
|
2189
|
+
type types_gen$2_CfgAccountsOauthDisconnectResponse200AutoRef = CfgAccountsOauthDisconnectResponse200AutoRef;
|
|
2301
2190
|
type types_gen$2_CfgAccountsOauthGithubAuthorizeCreateData = CfgAccountsOauthGithubAuthorizeCreateData;
|
|
2302
2191
|
type types_gen$2_CfgAccountsOauthGithubAuthorizeCreateError = CfgAccountsOauthGithubAuthorizeCreateError;
|
|
2303
2192
|
type types_gen$2_CfgAccountsOauthGithubAuthorizeCreateErrors = CfgAccountsOauthGithubAuthorizeCreateErrors;
|
|
@@ -2371,7 +2260,9 @@ type types_gen$2_CfgTotpDevicesRetrieveResponse = CfgTotpDevicesRetrieveResponse
|
|
|
2371
2260
|
type types_gen$2_CfgTotpDevicesRetrieveResponses = CfgTotpDevicesRetrieveResponses;
|
|
2372
2261
|
type types_gen$2_CfgTotpDisableCreateData = CfgTotpDisableCreateData;
|
|
2373
2262
|
type types_gen$2_CfgTotpDisableCreateErrors = CfgTotpDisableCreateErrors;
|
|
2263
|
+
type types_gen$2_CfgTotpDisableCreateResponse = CfgTotpDisableCreateResponse;
|
|
2374
2264
|
type types_gen$2_CfgTotpDisableCreateResponses = CfgTotpDisableCreateResponses;
|
|
2265
|
+
type types_gen$2_CfgTotpDisableResponse200AutoRef = CfgTotpDisableResponse200AutoRef;
|
|
2375
2266
|
type types_gen$2_CfgTotpSetupConfirmCreateData = CfgTotpSetupConfirmCreateData;
|
|
2376
2267
|
type types_gen$2_CfgTotpSetupConfirmCreateErrors = CfgTotpSetupConfirmCreateErrors;
|
|
2377
2268
|
type types_gen$2_CfgTotpSetupConfirmCreateResponse = CfgTotpSetupConfirmCreateResponse;
|
|
@@ -2389,14 +2280,15 @@ type types_gen$2_CfgTotpVerifyCreateErrors = CfgTotpVerifyCreateErrors;
|
|
|
2389
2280
|
type types_gen$2_CfgTotpVerifyCreateResponse = CfgTotpVerifyCreateResponse;
|
|
2390
2281
|
type types_gen$2_CfgTotpVerifyCreateResponses = CfgTotpVerifyCreateResponses;
|
|
2391
2282
|
type types_gen$2_CfgUserUpdateRequest = CfgUserUpdateRequest;
|
|
2283
|
+
type types_gen$2_ClientOptions = ClientOptions;
|
|
2392
2284
|
type types_gen$2_ConfirmSetupRequest = ConfirmSetupRequest;
|
|
2393
2285
|
type types_gen$2_ConfirmSetupResponse = ConfirmSetupResponse;
|
|
2394
2286
|
type types_gen$2_ConnectionTokenResponse = ConnectionTokenResponse;
|
|
2395
2287
|
type types_gen$2_DeviceList = DeviceList;
|
|
2396
2288
|
type types_gen$2_DeviceListResponse = DeviceListResponse;
|
|
2397
2289
|
type types_gen$2_DeviceListResponseWritable = DeviceListResponseWritable;
|
|
2398
|
-
type types_gen$
|
|
2399
|
-
declare const types_gen$
|
|
2290
|
+
type types_gen$2_DeviceStatusEnum = DeviceStatusEnum;
|
|
2291
|
+
declare const types_gen$2_DeviceStatusEnum: typeof DeviceStatusEnum;
|
|
2400
2292
|
type types_gen$2_DisableRequest = DisableRequest;
|
|
2401
2293
|
type types_gen$2_OAuthAuthorizeRequestRequest = OAuthAuthorizeRequestRequest;
|
|
2402
2294
|
type types_gen$2_OAuthAuthorizeResponse = OAuthAuthorizeResponse;
|
|
@@ -2404,6 +2296,8 @@ type types_gen$2_OAuthCallbackRequestRequest = OAuthCallbackRequestRequest;
|
|
|
2404
2296
|
type types_gen$2_OAuthConnection = OAuthConnection;
|
|
2405
2297
|
type types_gen$2_OAuthDisconnectRequestRequest = OAuthDisconnectRequestRequest;
|
|
2406
2298
|
type types_gen$2_OAuthError = OAuthError;
|
|
2299
|
+
type types_gen$2_OAuthProviderEnum = OAuthProviderEnum;
|
|
2300
|
+
declare const types_gen$2_OAuthProviderEnum: typeof OAuthProviderEnum;
|
|
2407
2301
|
type types_gen$2_OAuthProvidersResponse = OAuthProvidersResponse;
|
|
2408
2302
|
type types_gen$2_OAuthTokenResponse = OAuthTokenResponse;
|
|
2409
2303
|
type types_gen$2_OtpErrorResponse = OtpErrorResponse;
|
|
@@ -2413,8 +2307,6 @@ type types_gen$2_OtpVerifyRequest = OtpVerifyRequest;
|
|
|
2413
2307
|
type types_gen$2_OtpVerifyResponse = OtpVerifyResponse;
|
|
2414
2308
|
type types_gen$2_OtpVerifyResponseWritable = OtpVerifyResponseWritable;
|
|
2415
2309
|
type types_gen$2_PatchedCfgUserUpdateRequest = PatchedCfgUserUpdateRequest;
|
|
2416
|
-
type types_gen$2_ProviderEnum = ProviderEnum;
|
|
2417
|
-
declare const types_gen$2_ProviderEnum: typeof ProviderEnum;
|
|
2418
2310
|
type types_gen$2_SetupRequest = SetupRequest;
|
|
2419
2311
|
type types_gen$2_SetupResponse = SetupResponse;
|
|
2420
2312
|
type types_gen$2_TokenRefresh = TokenRefresh;
|
|
@@ -2429,22 +2321,40 @@ type types_gen$2_VerifyRequest = VerifyRequest;
|
|
|
2429
2321
|
type types_gen$2_VerifyResponse = VerifyResponse;
|
|
2430
2322
|
type types_gen$2_VerifyResponseWritable = VerifyResponseWritable;
|
|
2431
2323
|
declare namespace types_gen$2 {
|
|
2432
|
-
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 };
|
|
2324
|
+
export { type types_gen$2_AccountDeleteResponse as AccountDeleteResponse, type types_gen$2_ApiKey as ApiKey, type types_gen$2_ApiKeyRegenerate as ApiKeyRegenerate, type types_gen$2_ApiKeyRequest as ApiKeyRequest, type types_gen$2_ApiKeyTestRequest as ApiKeyTestRequest, type types_gen$2_ApiKeyTestResult as ApiKeyTestResult, 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_CfgAccountsApiKeyRegenerateCreateData as CfgAccountsApiKeyRegenerateCreateData, type types_gen$2_CfgAccountsApiKeyRegenerateCreateErrors as CfgAccountsApiKeyRegenerateCreateErrors, type types_gen$2_CfgAccountsApiKeyRegenerateCreateResponse as CfgAccountsApiKeyRegenerateCreateResponse, type types_gen$2_CfgAccountsApiKeyRegenerateCreateResponses as CfgAccountsApiKeyRegenerateCreateResponses, type types_gen$2_CfgAccountsApiKeyRetrieveData as CfgAccountsApiKeyRetrieveData, type types_gen$2_CfgAccountsApiKeyRetrieveErrors as CfgAccountsApiKeyRetrieveErrors, type types_gen$2_CfgAccountsApiKeyRetrieveResponse as CfgAccountsApiKeyRetrieveResponse, type types_gen$2_CfgAccountsApiKeyRetrieveResponses as CfgAccountsApiKeyRetrieveResponses, type types_gen$2_CfgAccountsApiKeyTestCreateData as CfgAccountsApiKeyTestCreateData, type types_gen$2_CfgAccountsApiKeyTestCreateResponse as CfgAccountsApiKeyTestCreateResponse, type types_gen$2_CfgAccountsApiKeyTestCreateResponses as CfgAccountsApiKeyTestCreateResponses, 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_CfgAccountsOauthConnectionsResponse200AutoRef as CfgAccountsOauthConnectionsResponse200AutoRef, 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_CfgAccountsOauthDisconnectResponse200AutoRef as CfgAccountsOauthDisconnectResponse200AutoRef, 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_CfgTotpDisableCreateResponse as CfgTotpDisableCreateResponse, type types_gen$2_CfgTotpDisableCreateResponses as CfgTotpDisableCreateResponses, type types_gen$2_CfgTotpDisableResponse200AutoRef as CfgTotpDisableResponse200AutoRef, 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 types_gen$2_ClientOptions 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_DeviceStatusEnum as DeviceStatusEnum, 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, types_gen$2_OAuthProviderEnum as OAuthProviderEnum, 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, 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 };
|
|
2433
2325
|
}
|
|
2434
2326
|
|
|
2435
2327
|
type types_gen$1_AccountDeleteResponse = AccountDeleteResponse;
|
|
2328
|
+
type types_gen$1_ApiKey = ApiKey;
|
|
2329
|
+
type types_gen$1_ApiKeyRegenerate = ApiKeyRegenerate;
|
|
2330
|
+
type types_gen$1_ApiKeyRequest = ApiKeyRequest;
|
|
2331
|
+
type types_gen$1_ApiKeyTestRequest = ApiKeyTestRequest;
|
|
2332
|
+
type types_gen$1_ApiKeyTestResult = ApiKeyTestResult;
|
|
2436
2333
|
type types_gen$1_BackupCodesRegenerateRequest = BackupCodesRegenerateRequest;
|
|
2437
2334
|
type types_gen$1_BackupCodesRegenerateResponse = BackupCodesRegenerateResponse;
|
|
2438
2335
|
type types_gen$1_BackupCodesStatus = BackupCodesStatus;
|
|
2439
2336
|
type types_gen$1_CentrifugoToken = CentrifugoToken;
|
|
2337
|
+
type types_gen$1_CfgAccountsApiKeyRegenerateCreateData = CfgAccountsApiKeyRegenerateCreateData;
|
|
2338
|
+
type types_gen$1_CfgAccountsApiKeyRegenerateCreateErrors = CfgAccountsApiKeyRegenerateCreateErrors;
|
|
2339
|
+
type types_gen$1_CfgAccountsApiKeyRegenerateCreateResponse = CfgAccountsApiKeyRegenerateCreateResponse;
|
|
2340
|
+
type types_gen$1_CfgAccountsApiKeyRegenerateCreateResponses = CfgAccountsApiKeyRegenerateCreateResponses;
|
|
2341
|
+
type types_gen$1_CfgAccountsApiKeyRetrieveData = CfgAccountsApiKeyRetrieveData;
|
|
2342
|
+
type types_gen$1_CfgAccountsApiKeyRetrieveErrors = CfgAccountsApiKeyRetrieveErrors;
|
|
2343
|
+
type types_gen$1_CfgAccountsApiKeyRetrieveResponse = CfgAccountsApiKeyRetrieveResponse;
|
|
2344
|
+
type types_gen$1_CfgAccountsApiKeyRetrieveResponses = CfgAccountsApiKeyRetrieveResponses;
|
|
2345
|
+
type types_gen$1_CfgAccountsApiKeyTestCreateData = CfgAccountsApiKeyTestCreateData;
|
|
2346
|
+
type types_gen$1_CfgAccountsApiKeyTestCreateResponse = CfgAccountsApiKeyTestCreateResponse;
|
|
2347
|
+
type types_gen$1_CfgAccountsApiKeyTestCreateResponses = CfgAccountsApiKeyTestCreateResponses;
|
|
2440
2348
|
type types_gen$1_CfgAccountsOauthConnectionsListData = CfgAccountsOauthConnectionsListData;
|
|
2441
2349
|
type types_gen$1_CfgAccountsOauthConnectionsListResponse = CfgAccountsOauthConnectionsListResponse;
|
|
2442
2350
|
type types_gen$1_CfgAccountsOauthConnectionsListResponses = CfgAccountsOauthConnectionsListResponses;
|
|
2351
|
+
type types_gen$1_CfgAccountsOauthConnectionsResponse200AutoRef = CfgAccountsOauthConnectionsResponse200AutoRef;
|
|
2443
2352
|
type types_gen$1_CfgAccountsOauthDisconnectCreateData = CfgAccountsOauthDisconnectCreateData;
|
|
2444
2353
|
type types_gen$1_CfgAccountsOauthDisconnectCreateError = CfgAccountsOauthDisconnectCreateError;
|
|
2445
2354
|
type types_gen$1_CfgAccountsOauthDisconnectCreateErrors = CfgAccountsOauthDisconnectCreateErrors;
|
|
2446
2355
|
type types_gen$1_CfgAccountsOauthDisconnectCreateResponse = CfgAccountsOauthDisconnectCreateResponse;
|
|
2447
2356
|
type types_gen$1_CfgAccountsOauthDisconnectCreateResponses = CfgAccountsOauthDisconnectCreateResponses;
|
|
2357
|
+
type types_gen$1_CfgAccountsOauthDisconnectResponse200AutoRef = CfgAccountsOauthDisconnectResponse200AutoRef;
|
|
2448
2358
|
type types_gen$1_CfgAccountsOauthGithubAuthorizeCreateData = CfgAccountsOauthGithubAuthorizeCreateData;
|
|
2449
2359
|
type types_gen$1_CfgAccountsOauthGithubAuthorizeCreateError = CfgAccountsOauthGithubAuthorizeCreateError;
|
|
2450
2360
|
type types_gen$1_CfgAccountsOauthGithubAuthorizeCreateErrors = CfgAccountsOauthGithubAuthorizeCreateErrors;
|
|
@@ -2518,7 +2428,9 @@ type types_gen$1_CfgTotpDevicesRetrieveResponse = CfgTotpDevicesRetrieveResponse
|
|
|
2518
2428
|
type types_gen$1_CfgTotpDevicesRetrieveResponses = CfgTotpDevicesRetrieveResponses;
|
|
2519
2429
|
type types_gen$1_CfgTotpDisableCreateData = CfgTotpDisableCreateData;
|
|
2520
2430
|
type types_gen$1_CfgTotpDisableCreateErrors = CfgTotpDisableCreateErrors;
|
|
2431
|
+
type types_gen$1_CfgTotpDisableCreateResponse = CfgTotpDisableCreateResponse;
|
|
2521
2432
|
type types_gen$1_CfgTotpDisableCreateResponses = CfgTotpDisableCreateResponses;
|
|
2433
|
+
type types_gen$1_CfgTotpDisableResponse200AutoRef = CfgTotpDisableResponse200AutoRef;
|
|
2522
2434
|
type types_gen$1_CfgTotpSetupConfirmCreateData = CfgTotpSetupConfirmCreateData;
|
|
2523
2435
|
type types_gen$1_CfgTotpSetupConfirmCreateErrors = CfgTotpSetupConfirmCreateErrors;
|
|
2524
2436
|
type types_gen$1_CfgTotpSetupConfirmCreateResponse = CfgTotpSetupConfirmCreateResponse;
|
|
@@ -2536,14 +2448,15 @@ type types_gen$1_CfgTotpVerifyCreateErrors = CfgTotpVerifyCreateErrors;
|
|
|
2536
2448
|
type types_gen$1_CfgTotpVerifyCreateResponse = CfgTotpVerifyCreateResponse;
|
|
2537
2449
|
type types_gen$1_CfgTotpVerifyCreateResponses = CfgTotpVerifyCreateResponses;
|
|
2538
2450
|
type types_gen$1_CfgUserUpdateRequest = CfgUserUpdateRequest;
|
|
2451
|
+
type types_gen$1_ClientOptions = ClientOptions;
|
|
2539
2452
|
type types_gen$1_ConfirmSetupRequest = ConfirmSetupRequest;
|
|
2540
2453
|
type types_gen$1_ConfirmSetupResponse = ConfirmSetupResponse;
|
|
2541
2454
|
type types_gen$1_ConnectionTokenResponse = ConnectionTokenResponse;
|
|
2542
2455
|
type types_gen$1_DeviceList = DeviceList;
|
|
2543
2456
|
type types_gen$1_DeviceListResponse = DeviceListResponse;
|
|
2544
2457
|
type types_gen$1_DeviceListResponseWritable = DeviceListResponseWritable;
|
|
2545
|
-
type types_gen$
|
|
2546
|
-
declare const types_gen$
|
|
2458
|
+
type types_gen$1_DeviceStatusEnum = DeviceStatusEnum;
|
|
2459
|
+
declare const types_gen$1_DeviceStatusEnum: typeof DeviceStatusEnum;
|
|
2547
2460
|
type types_gen$1_DisableRequest = DisableRequest;
|
|
2548
2461
|
type types_gen$1_OAuthAuthorizeRequestRequest = OAuthAuthorizeRequestRequest;
|
|
2549
2462
|
type types_gen$1_OAuthAuthorizeResponse = OAuthAuthorizeResponse;
|
|
@@ -2551,6 +2464,8 @@ type types_gen$1_OAuthCallbackRequestRequest = OAuthCallbackRequestRequest;
|
|
|
2551
2464
|
type types_gen$1_OAuthConnection = OAuthConnection;
|
|
2552
2465
|
type types_gen$1_OAuthDisconnectRequestRequest = OAuthDisconnectRequestRequest;
|
|
2553
2466
|
type types_gen$1_OAuthError = OAuthError;
|
|
2467
|
+
type types_gen$1_OAuthProviderEnum = OAuthProviderEnum;
|
|
2468
|
+
declare const types_gen$1_OAuthProviderEnum: typeof OAuthProviderEnum;
|
|
2554
2469
|
type types_gen$1_OAuthProvidersResponse = OAuthProvidersResponse;
|
|
2555
2470
|
type types_gen$1_OAuthTokenResponse = OAuthTokenResponse;
|
|
2556
2471
|
type types_gen$1_OtpErrorResponse = OtpErrorResponse;
|
|
@@ -2560,8 +2475,6 @@ type types_gen$1_OtpVerifyRequest = OtpVerifyRequest;
|
|
|
2560
2475
|
type types_gen$1_OtpVerifyResponse = OtpVerifyResponse;
|
|
2561
2476
|
type types_gen$1_OtpVerifyResponseWritable = OtpVerifyResponseWritable;
|
|
2562
2477
|
type types_gen$1_PatchedCfgUserUpdateRequest = PatchedCfgUserUpdateRequest;
|
|
2563
|
-
type types_gen$1_ProviderEnum = ProviderEnum;
|
|
2564
|
-
declare const types_gen$1_ProviderEnum: typeof ProviderEnum;
|
|
2565
2478
|
type types_gen$1_SetupRequest = SetupRequest;
|
|
2566
2479
|
type types_gen$1_SetupResponse = SetupResponse;
|
|
2567
2480
|
type types_gen$1_TokenRefresh = TokenRefresh;
|
|
@@ -2576,22 +2489,40 @@ type types_gen$1_VerifyRequest = VerifyRequest;
|
|
|
2576
2489
|
type types_gen$1_VerifyResponse = VerifyResponse;
|
|
2577
2490
|
type types_gen$1_VerifyResponseWritable = VerifyResponseWritable;
|
|
2578
2491
|
declare namespace types_gen$1 {
|
|
2579
|
-
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 };
|
|
2492
|
+
export { type types_gen$1_AccountDeleteResponse as AccountDeleteResponse, type types_gen$1_ApiKey as ApiKey, type types_gen$1_ApiKeyRegenerate as ApiKeyRegenerate, type types_gen$1_ApiKeyRequest as ApiKeyRequest, type types_gen$1_ApiKeyTestRequest as ApiKeyTestRequest, type types_gen$1_ApiKeyTestResult as ApiKeyTestResult, 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_CfgAccountsApiKeyRegenerateCreateData as CfgAccountsApiKeyRegenerateCreateData, type types_gen$1_CfgAccountsApiKeyRegenerateCreateErrors as CfgAccountsApiKeyRegenerateCreateErrors, type types_gen$1_CfgAccountsApiKeyRegenerateCreateResponse as CfgAccountsApiKeyRegenerateCreateResponse, type types_gen$1_CfgAccountsApiKeyRegenerateCreateResponses as CfgAccountsApiKeyRegenerateCreateResponses, type types_gen$1_CfgAccountsApiKeyRetrieveData as CfgAccountsApiKeyRetrieveData, type types_gen$1_CfgAccountsApiKeyRetrieveErrors as CfgAccountsApiKeyRetrieveErrors, type types_gen$1_CfgAccountsApiKeyRetrieveResponse as CfgAccountsApiKeyRetrieveResponse, type types_gen$1_CfgAccountsApiKeyRetrieveResponses as CfgAccountsApiKeyRetrieveResponses, type types_gen$1_CfgAccountsApiKeyTestCreateData as CfgAccountsApiKeyTestCreateData, type types_gen$1_CfgAccountsApiKeyTestCreateResponse as CfgAccountsApiKeyTestCreateResponse, type types_gen$1_CfgAccountsApiKeyTestCreateResponses as CfgAccountsApiKeyTestCreateResponses, 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_CfgAccountsOauthConnectionsResponse200AutoRef as CfgAccountsOauthConnectionsResponse200AutoRef, 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_CfgAccountsOauthDisconnectResponse200AutoRef as CfgAccountsOauthDisconnectResponse200AutoRef, 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_CfgTotpDisableCreateResponse as CfgTotpDisableCreateResponse, type types_gen$1_CfgTotpDisableCreateResponses as CfgTotpDisableCreateResponses, type types_gen$1_CfgTotpDisableResponse200AutoRef as CfgTotpDisableResponse200AutoRef, 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 types_gen$1_ClientOptions 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_DeviceStatusEnum as DeviceStatusEnum, 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, types_gen$1_OAuthProviderEnum as OAuthProviderEnum, 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, 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 };
|
|
2580
2493
|
}
|
|
2581
2494
|
|
|
2582
2495
|
type types_gen_AccountDeleteResponse = AccountDeleteResponse;
|
|
2496
|
+
type types_gen_ApiKey = ApiKey;
|
|
2497
|
+
type types_gen_ApiKeyRegenerate = ApiKeyRegenerate;
|
|
2498
|
+
type types_gen_ApiKeyRequest = ApiKeyRequest;
|
|
2499
|
+
type types_gen_ApiKeyTestRequest = ApiKeyTestRequest;
|
|
2500
|
+
type types_gen_ApiKeyTestResult = ApiKeyTestResult;
|
|
2583
2501
|
type types_gen_BackupCodesRegenerateRequest = BackupCodesRegenerateRequest;
|
|
2584
2502
|
type types_gen_BackupCodesRegenerateResponse = BackupCodesRegenerateResponse;
|
|
2585
2503
|
type types_gen_BackupCodesStatus = BackupCodesStatus;
|
|
2586
2504
|
type types_gen_CentrifugoToken = CentrifugoToken;
|
|
2505
|
+
type types_gen_CfgAccountsApiKeyRegenerateCreateData = CfgAccountsApiKeyRegenerateCreateData;
|
|
2506
|
+
type types_gen_CfgAccountsApiKeyRegenerateCreateErrors = CfgAccountsApiKeyRegenerateCreateErrors;
|
|
2507
|
+
type types_gen_CfgAccountsApiKeyRegenerateCreateResponse = CfgAccountsApiKeyRegenerateCreateResponse;
|
|
2508
|
+
type types_gen_CfgAccountsApiKeyRegenerateCreateResponses = CfgAccountsApiKeyRegenerateCreateResponses;
|
|
2509
|
+
type types_gen_CfgAccountsApiKeyRetrieveData = CfgAccountsApiKeyRetrieveData;
|
|
2510
|
+
type types_gen_CfgAccountsApiKeyRetrieveErrors = CfgAccountsApiKeyRetrieveErrors;
|
|
2511
|
+
type types_gen_CfgAccountsApiKeyRetrieveResponse = CfgAccountsApiKeyRetrieveResponse;
|
|
2512
|
+
type types_gen_CfgAccountsApiKeyRetrieveResponses = CfgAccountsApiKeyRetrieveResponses;
|
|
2513
|
+
type types_gen_CfgAccountsApiKeyTestCreateData = CfgAccountsApiKeyTestCreateData;
|
|
2514
|
+
type types_gen_CfgAccountsApiKeyTestCreateResponse = CfgAccountsApiKeyTestCreateResponse;
|
|
2515
|
+
type types_gen_CfgAccountsApiKeyTestCreateResponses = CfgAccountsApiKeyTestCreateResponses;
|
|
2587
2516
|
type types_gen_CfgAccountsOauthConnectionsListData = CfgAccountsOauthConnectionsListData;
|
|
2588
2517
|
type types_gen_CfgAccountsOauthConnectionsListResponse = CfgAccountsOauthConnectionsListResponse;
|
|
2589
2518
|
type types_gen_CfgAccountsOauthConnectionsListResponses = CfgAccountsOauthConnectionsListResponses;
|
|
2519
|
+
type types_gen_CfgAccountsOauthConnectionsResponse200AutoRef = CfgAccountsOauthConnectionsResponse200AutoRef;
|
|
2590
2520
|
type types_gen_CfgAccountsOauthDisconnectCreateData = CfgAccountsOauthDisconnectCreateData;
|
|
2591
2521
|
type types_gen_CfgAccountsOauthDisconnectCreateError = CfgAccountsOauthDisconnectCreateError;
|
|
2592
2522
|
type types_gen_CfgAccountsOauthDisconnectCreateErrors = CfgAccountsOauthDisconnectCreateErrors;
|
|
2593
2523
|
type types_gen_CfgAccountsOauthDisconnectCreateResponse = CfgAccountsOauthDisconnectCreateResponse;
|
|
2594
2524
|
type types_gen_CfgAccountsOauthDisconnectCreateResponses = CfgAccountsOauthDisconnectCreateResponses;
|
|
2525
|
+
type types_gen_CfgAccountsOauthDisconnectResponse200AutoRef = CfgAccountsOauthDisconnectResponse200AutoRef;
|
|
2595
2526
|
type types_gen_CfgAccountsOauthGithubAuthorizeCreateData = CfgAccountsOauthGithubAuthorizeCreateData;
|
|
2596
2527
|
type types_gen_CfgAccountsOauthGithubAuthorizeCreateError = CfgAccountsOauthGithubAuthorizeCreateError;
|
|
2597
2528
|
type types_gen_CfgAccountsOauthGithubAuthorizeCreateErrors = CfgAccountsOauthGithubAuthorizeCreateErrors;
|
|
@@ -2665,7 +2596,9 @@ type types_gen_CfgTotpDevicesRetrieveResponse = CfgTotpDevicesRetrieveResponse;
|
|
|
2665
2596
|
type types_gen_CfgTotpDevicesRetrieveResponses = CfgTotpDevicesRetrieveResponses;
|
|
2666
2597
|
type types_gen_CfgTotpDisableCreateData = CfgTotpDisableCreateData;
|
|
2667
2598
|
type types_gen_CfgTotpDisableCreateErrors = CfgTotpDisableCreateErrors;
|
|
2599
|
+
type types_gen_CfgTotpDisableCreateResponse = CfgTotpDisableCreateResponse;
|
|
2668
2600
|
type types_gen_CfgTotpDisableCreateResponses = CfgTotpDisableCreateResponses;
|
|
2601
|
+
type types_gen_CfgTotpDisableResponse200AutoRef = CfgTotpDisableResponse200AutoRef;
|
|
2669
2602
|
type types_gen_CfgTotpSetupConfirmCreateData = CfgTotpSetupConfirmCreateData;
|
|
2670
2603
|
type types_gen_CfgTotpSetupConfirmCreateErrors = CfgTotpSetupConfirmCreateErrors;
|
|
2671
2604
|
type types_gen_CfgTotpSetupConfirmCreateResponse = CfgTotpSetupConfirmCreateResponse;
|
|
@@ -2683,14 +2616,15 @@ type types_gen_CfgTotpVerifyCreateErrors = CfgTotpVerifyCreateErrors;
|
|
|
2683
2616
|
type types_gen_CfgTotpVerifyCreateResponse = CfgTotpVerifyCreateResponse;
|
|
2684
2617
|
type types_gen_CfgTotpVerifyCreateResponses = CfgTotpVerifyCreateResponses;
|
|
2685
2618
|
type types_gen_CfgUserUpdateRequest = CfgUserUpdateRequest;
|
|
2619
|
+
type types_gen_ClientOptions = ClientOptions;
|
|
2686
2620
|
type types_gen_ConfirmSetupRequest = ConfirmSetupRequest;
|
|
2687
2621
|
type types_gen_ConfirmSetupResponse = ConfirmSetupResponse;
|
|
2688
2622
|
type types_gen_ConnectionTokenResponse = ConnectionTokenResponse;
|
|
2689
2623
|
type types_gen_DeviceList = DeviceList;
|
|
2690
2624
|
type types_gen_DeviceListResponse = DeviceListResponse;
|
|
2691
2625
|
type types_gen_DeviceListResponseWritable = DeviceListResponseWritable;
|
|
2692
|
-
type
|
|
2693
|
-
declare const
|
|
2626
|
+
type types_gen_DeviceStatusEnum = DeviceStatusEnum;
|
|
2627
|
+
declare const types_gen_DeviceStatusEnum: typeof DeviceStatusEnum;
|
|
2694
2628
|
type types_gen_DisableRequest = DisableRequest;
|
|
2695
2629
|
type types_gen_OAuthAuthorizeRequestRequest = OAuthAuthorizeRequestRequest;
|
|
2696
2630
|
type types_gen_OAuthAuthorizeResponse = OAuthAuthorizeResponse;
|
|
@@ -2698,6 +2632,8 @@ type types_gen_OAuthCallbackRequestRequest = OAuthCallbackRequestRequest;
|
|
|
2698
2632
|
type types_gen_OAuthConnection = OAuthConnection;
|
|
2699
2633
|
type types_gen_OAuthDisconnectRequestRequest = OAuthDisconnectRequestRequest;
|
|
2700
2634
|
type types_gen_OAuthError = OAuthError;
|
|
2635
|
+
type types_gen_OAuthProviderEnum = OAuthProviderEnum;
|
|
2636
|
+
declare const types_gen_OAuthProviderEnum: typeof OAuthProviderEnum;
|
|
2701
2637
|
type types_gen_OAuthProvidersResponse = OAuthProvidersResponse;
|
|
2702
2638
|
type types_gen_OAuthTokenResponse = OAuthTokenResponse;
|
|
2703
2639
|
type types_gen_OtpErrorResponse = OtpErrorResponse;
|
|
@@ -2707,8 +2643,6 @@ type types_gen_OtpVerifyRequest = OtpVerifyRequest;
|
|
|
2707
2643
|
type types_gen_OtpVerifyResponse = OtpVerifyResponse;
|
|
2708
2644
|
type types_gen_OtpVerifyResponseWritable = OtpVerifyResponseWritable;
|
|
2709
2645
|
type types_gen_PatchedCfgUserUpdateRequest = PatchedCfgUserUpdateRequest;
|
|
2710
|
-
type types_gen_ProviderEnum = ProviderEnum;
|
|
2711
|
-
declare const types_gen_ProviderEnum: typeof ProviderEnum;
|
|
2712
2646
|
type types_gen_SetupRequest = SetupRequest;
|
|
2713
2647
|
type types_gen_SetupResponse = SetupResponse;
|
|
2714
2648
|
type types_gen_TokenRefresh = TokenRefresh;
|
|
@@ -2723,7 +2657,7 @@ type types_gen_VerifyRequest = VerifyRequest;
|
|
|
2723
2657
|
type types_gen_VerifyResponse = VerifyResponse;
|
|
2724
2658
|
type types_gen_VerifyResponseWritable = VerifyResponseWritable;
|
|
2725
2659
|
declare namespace types_gen {
|
|
2726
|
-
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 };
|
|
2660
|
+
export { type types_gen_AccountDeleteResponse as AccountDeleteResponse, type types_gen_ApiKey as ApiKey, type types_gen_ApiKeyRegenerate as ApiKeyRegenerate, type types_gen_ApiKeyRequest as ApiKeyRequest, type types_gen_ApiKeyTestRequest as ApiKeyTestRequest, type types_gen_ApiKeyTestResult as ApiKeyTestResult, 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_CfgAccountsApiKeyRegenerateCreateData as CfgAccountsApiKeyRegenerateCreateData, type types_gen_CfgAccountsApiKeyRegenerateCreateErrors as CfgAccountsApiKeyRegenerateCreateErrors, type types_gen_CfgAccountsApiKeyRegenerateCreateResponse as CfgAccountsApiKeyRegenerateCreateResponse, type types_gen_CfgAccountsApiKeyRegenerateCreateResponses as CfgAccountsApiKeyRegenerateCreateResponses, type types_gen_CfgAccountsApiKeyRetrieveData as CfgAccountsApiKeyRetrieveData, type types_gen_CfgAccountsApiKeyRetrieveErrors as CfgAccountsApiKeyRetrieveErrors, type types_gen_CfgAccountsApiKeyRetrieveResponse as CfgAccountsApiKeyRetrieveResponse, type types_gen_CfgAccountsApiKeyRetrieveResponses as CfgAccountsApiKeyRetrieveResponses, type types_gen_CfgAccountsApiKeyTestCreateData as CfgAccountsApiKeyTestCreateData, type types_gen_CfgAccountsApiKeyTestCreateResponse as CfgAccountsApiKeyTestCreateResponse, type types_gen_CfgAccountsApiKeyTestCreateResponses as CfgAccountsApiKeyTestCreateResponses, type types_gen_CfgAccountsOauthConnectionsListData as CfgAccountsOauthConnectionsListData, type types_gen_CfgAccountsOauthConnectionsListResponse as CfgAccountsOauthConnectionsListResponse, type types_gen_CfgAccountsOauthConnectionsListResponses as CfgAccountsOauthConnectionsListResponses, type types_gen_CfgAccountsOauthConnectionsResponse200AutoRef as CfgAccountsOauthConnectionsResponse200AutoRef, 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_CfgAccountsOauthDisconnectResponse200AutoRef as CfgAccountsOauthDisconnectResponse200AutoRef, 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_CfgTotpDisableCreateResponse as CfgTotpDisableCreateResponse, type types_gen_CfgTotpDisableCreateResponses as CfgTotpDisableCreateResponses, type types_gen_CfgTotpDisableResponse200AutoRef as CfgTotpDisableResponse200AutoRef, 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 types_gen_ClientOptions 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_DeviceStatusEnum as DeviceStatusEnum, 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, types_gen_OAuthProviderEnum as OAuthProviderEnum, 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, 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 };
|
|
2727
2661
|
}
|
|
2728
2662
|
|
|
2729
|
-
export { APIError, APILogger,
|
|
2663
|
+
export { APIError, APILogger, types_gen$2 as AccountsTypes, type Auth$1 as Auth, types_gen as CentrifugoTypes, CfgAccounts, API$2 as CfgAccountsAPI, CfgAccountsApi, CfgAccountsApiKey, CfgAccountsAuth, CfgAccountsOauth, CfgAccountsProfile, CfgCentrifugo, API$1 as CfgCentrifugoAPI, CfgCentrifugoApi, CfgTotp, API as CfgTotpAPI, CfgTotpApi, CfgTotpBackupCodes, CfgTotpSetup, CfgTotpVerify, CookieStorageAdapter, type ErrorLog, LocalStorageAdapter, type LoggerConfig, MemoryStorageAdapter, NetworkError, type RequestLog, type ResponseLog, type StorageAdapter, types_gen$1 as TotpTypes, type User, type ValidationErrorDetail, type ValidationErrorEvent, CfgAccountsApi as api, auth, defaultLogger, dispatchValidationError, formatZodError, onValidationError };
|