@djangocfg/api 2.1.331 → 2.1.332
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/auth-server.cjs +250 -189
- package/dist/auth-server.cjs.map +1 -1
- package/dist/auth-server.mjs +250 -189
- package/dist/auth-server.mjs.map +1 -1
- package/dist/auth.cjs +249 -188
- package/dist/auth.cjs.map +1 -1
- package/dist/auth.mjs +249 -188
- package/dist/auth.mjs.map +1 -1
- package/dist/clients.cjs +248 -187
- package/dist/clients.cjs.map +1 -1
- package/dist/clients.d.cts +24 -49
- package/dist/clients.d.ts +24 -49
- package/dist/clients.mjs +248 -187
- package/dist/clients.mjs.map +1 -1
- package/dist/index.cjs +332 -234
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +689 -653
- package/dist/index.d.ts +689 -653
- package/dist/index.mjs +332 -234
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
- package/src/_api/generated/_cfg_accounts/api.ts +29 -82
- package/src/_api/generated/_cfg_accounts/index.ts +4 -4
- package/src/_api/generated/_cfg_centrifugo/api.ts +29 -82
- package/src/_api/generated/_cfg_centrifugo/index.ts +4 -4
- package/src/_api/generated/_cfg_totp/api.ts +29 -82
- package/src/_api/generated/_cfg_totp/index.ts +4 -4
- package/src/_api/generated/client.gen.ts +3 -0
- package/src/_api/generated/helpers/auth.ts +223 -0
- package/src/_api/generated/helpers/index.ts +1 -0
- package/src/_api/generated/index.ts +17 -13
package/dist/index.d.cts
CHANGED
|
@@ -1,519 +1,423 @@
|
|
|
1
1
|
import { ConsolaInstance } from 'consola';
|
|
2
2
|
import { ZodError } from 'zod';
|
|
3
3
|
|
|
4
|
-
type
|
|
5
|
-
|
|
4
|
+
type StorageMode = 'localStorage' | 'cookie';
|
|
5
|
+
/**
|
|
6
|
+
* Global auth/config store. All getters read live state every call —
|
|
7
|
+
* the interceptor below uses these to attach headers per-request.
|
|
8
|
+
*
|
|
9
|
+
* Default storage backend is `localStorage`. Switch to cookies (e.g.
|
|
10
|
+
* for Next.js SSR cookie access) via `auth.setStorageMode('cookie')`
|
|
11
|
+
* early in the app bootstrap.
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* import { auth } from '@your/api';
|
|
15
|
+
*
|
|
16
|
+
* // After login
|
|
17
|
+
* auth.setToken(jwt);
|
|
18
|
+
* auth.setRefreshToken(refresh);
|
|
19
|
+
*
|
|
20
|
+
* // After logout
|
|
21
|
+
* auth.clearTokens();
|
|
22
|
+
*
|
|
23
|
+
* // Switch to cookie storage (call once during app init)
|
|
24
|
+
* auth.setStorageMode('cookie');
|
|
25
|
+
*/
|
|
26
|
+
declare const auth: {
|
|
27
|
+
getStorageMode(): StorageMode;
|
|
6
28
|
/**
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
* @default 'header'
|
|
29
|
+
* Switch the storage backend. Existing values in the *previous*
|
|
30
|
+
* backend are NOT migrated — set fresh values after switching.
|
|
10
31
|
*/
|
|
11
|
-
|
|
32
|
+
setStorageMode(mode: StorageMode): void;
|
|
33
|
+
getToken(): string | null;
|
|
34
|
+
setToken(token: string | null): void;
|
|
35
|
+
getRefreshToken(): string | null;
|
|
36
|
+
setRefreshToken(token: string | null): void;
|
|
37
|
+
clearTokens(): void;
|
|
38
|
+
isAuthenticated(): boolean;
|
|
39
|
+
/** In-memory API key. Falls back to storage, then NEXT_PUBLIC_API_KEY. */
|
|
40
|
+
getApiKey(): string | null;
|
|
41
|
+
/** In-memory only (cleared on reload). */
|
|
42
|
+
setApiKey(key: string | null): void;
|
|
43
|
+
/** Persist to active storage backend (localStorage or cookie). */
|
|
44
|
+
setApiKeyPersist(key: string | null): void;
|
|
45
|
+
clearApiKey(): void;
|
|
46
|
+
/** Override locale → falls back to NEXT_LOCALE cookie / navigator.language. */
|
|
47
|
+
getLocale(): string | null;
|
|
48
|
+
setLocale(locale: string | null): void;
|
|
49
|
+
getBaseUrl(): string;
|
|
50
|
+
setBaseUrl(url: string | null): void;
|
|
51
|
+
getWithCredentials(): boolean;
|
|
52
|
+
setWithCredentials(value: boolean): void;
|
|
12
53
|
/**
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
54
|
+
* Register a callback fired on every 401 response. Use this to wire
|
|
55
|
+
* a token-refresh flow or a forced logout. Setting `null` removes
|
|
56
|
+
* the handler.
|
|
16
57
|
*/
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
58
|
+
onUnauthorized(cb: ((response: Response) => void) | null): void;
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
interface RequestLog {
|
|
62
|
+
method: string;
|
|
63
|
+
url: string;
|
|
64
|
+
headers?: Record<string, string>;
|
|
65
|
+
body?: any;
|
|
66
|
+
timestamp: number;
|
|
67
|
+
}
|
|
68
|
+
interface ResponseLog {
|
|
69
|
+
status: number;
|
|
70
|
+
statusText: string;
|
|
71
|
+
data?: any;
|
|
72
|
+
duration: number;
|
|
73
|
+
timestamp: number;
|
|
74
|
+
}
|
|
75
|
+
interface ErrorLog {
|
|
76
|
+
message: string;
|
|
77
|
+
statusCode?: number;
|
|
78
|
+
fieldErrors?: Record<string, string[]>;
|
|
79
|
+
duration: number;
|
|
80
|
+
timestamp: number;
|
|
81
|
+
}
|
|
82
|
+
interface LoggerConfig {
|
|
83
|
+
enabled: boolean;
|
|
84
|
+
logRequests: boolean;
|
|
85
|
+
logResponses: boolean;
|
|
86
|
+
logErrors: boolean;
|
|
87
|
+
logBodies: boolean;
|
|
88
|
+
logHeaders: boolean;
|
|
89
|
+
consola?: ConsolaInstance;
|
|
90
|
+
}
|
|
91
|
+
declare class APILogger {
|
|
92
|
+
private config;
|
|
93
|
+
private consola;
|
|
94
|
+
constructor(config?: Partial<LoggerConfig>);
|
|
95
|
+
enable(): void;
|
|
96
|
+
disable(): void;
|
|
97
|
+
setConfig(config: Partial<LoggerConfig>): void;
|
|
98
|
+
private filterHeaders;
|
|
99
|
+
logRequest(request: RequestLog): void;
|
|
100
|
+
logResponse(request: RequestLog, response: ResponseLog): void;
|
|
101
|
+
logError(request: RequestLog, error: ErrorLog): void;
|
|
102
|
+
info(message: string, ...args: any[]): void;
|
|
103
|
+
warn(message: string, ...args: any[]): void;
|
|
104
|
+
error(message: string, ...args: any[]): void;
|
|
105
|
+
debug(message: string, ...args: any[]): void;
|
|
106
|
+
success(message: string, ...args: any[]): void;
|
|
107
|
+
withTag(tag: string): ConsolaInstance;
|
|
20
108
|
}
|
|
109
|
+
declare const defaultLogger: APILogger;
|
|
21
110
|
|
|
22
|
-
interface
|
|
23
|
-
/**
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
111
|
+
interface APIOptions$2 {
|
|
112
|
+
/** Logger config (defaults to dev-only). */
|
|
113
|
+
logger?: Partial<LoggerConfig>;
|
|
114
|
+
/** Locale for `Accept-Language`. If omitted, auto-detected from cookie/navigator. */
|
|
115
|
+
locale?: string;
|
|
116
|
+
/** API key sent as `X-API-Key`. Falls back to NEXT_PUBLIC_API_KEY. */
|
|
117
|
+
apiKey?: string;
|
|
118
|
+
/** Send Django session/CSRF cookies cross-origin. Defaults to true. */
|
|
119
|
+
withCredentials?: boolean;
|
|
120
|
+
}
|
|
121
|
+
/**
|
|
122
|
+
* Per-group ergonomic facade.
|
|
123
|
+
*
|
|
124
|
+
* Calling `setToken/setApiKey/setLocale/setBaseUrl` proxies to the
|
|
125
|
+
* global `auth` store — the change applies to **every** group's API
|
|
126
|
+
* instance because they share the same HTTP client and interceptor.
|
|
127
|
+
*
|
|
128
|
+
* Use the global `auth` object directly when you don't need a group
|
|
129
|
+
* facade: `import { auth } from '@your/api'; auth.setToken(jwt);`
|
|
130
|
+
*/
|
|
131
|
+
declare class API$2 {
|
|
132
|
+
readonly logger: APILogger;
|
|
133
|
+
constructor(_baseUrl?: string, opts?: APIOptions$2);
|
|
134
|
+
getBaseUrl(): string;
|
|
135
|
+
setBaseUrl(url: string): void;
|
|
136
|
+
getToken(): string | null;
|
|
137
|
+
setToken(token: string | null): void;
|
|
138
|
+
getRefreshToken(): string | null;
|
|
139
|
+
setRefreshToken(token: string | null): void;
|
|
140
|
+
clearToken(): void;
|
|
141
|
+
isAuthenticated(): boolean;
|
|
142
|
+
getLocale(): string | null;
|
|
143
|
+
setLocale(locale: string | null): void;
|
|
144
|
+
getApiKey(): string | null;
|
|
145
|
+
setApiKey(key: string | null): void;
|
|
28
146
|
}
|
|
29
|
-
type ArrayStyle = 'form' | 'spaceDelimited' | 'pipeDelimited';
|
|
30
|
-
type ObjectStyle = 'form' | 'deepObject';
|
|
31
147
|
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
148
|
+
interface StorageAdapter {
|
|
149
|
+
getItem(key: string): string | null;
|
|
150
|
+
setItem(key: string, value: string): void;
|
|
151
|
+
removeItem(key: string): void;
|
|
152
|
+
clear?(): void;
|
|
153
|
+
}
|
|
154
|
+
/** Browser localStorage. Falls back to no-op on SSR / private mode. */
|
|
155
|
+
declare class LocalStorageAdapter implements StorageAdapter {
|
|
156
|
+
getItem(key: string): string | null;
|
|
157
|
+
setItem(key: string, value: string): void;
|
|
158
|
+
removeItem(key: string): void;
|
|
159
|
+
clear(): void;
|
|
160
|
+
}
|
|
161
|
+
/** In-memory store. Use for SSR, Electron main process, or tests. */
|
|
162
|
+
declare class MemoryStorageAdapter implements StorageAdapter {
|
|
163
|
+
private store;
|
|
164
|
+
getItem(key: string): string | null;
|
|
165
|
+
setItem(key: string, value: string): void;
|
|
166
|
+
removeItem(key: string): void;
|
|
167
|
+
clear(): void;
|
|
168
|
+
}
|
|
169
|
+
/** Cookie-backed storage (browser only). */
|
|
170
|
+
declare class CookieStorageAdapter implements StorageAdapter {
|
|
171
|
+
private opts;
|
|
172
|
+
constructor(opts?: {
|
|
173
|
+
domain?: string;
|
|
174
|
+
path?: string;
|
|
175
|
+
secure?: boolean;
|
|
176
|
+
sameSite?: "Strict" | "Lax" | "None";
|
|
177
|
+
maxAgeSeconds?: number;
|
|
178
|
+
});
|
|
179
|
+
getItem(key: string): string | null;
|
|
180
|
+
setItem(key: string, value: string): void;
|
|
181
|
+
removeItem(key: string): void;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
/**
|
|
185
|
+
* HTTP API Error with DRF field-specific validation errors.
|
|
186
|
+
*/
|
|
187
|
+
declare class APIError extends Error {
|
|
188
|
+
statusCode: number;
|
|
189
|
+
statusText: string;
|
|
190
|
+
response: any;
|
|
191
|
+
url: string;
|
|
192
|
+
constructor(statusCode: number, statusText: string, response: any, url: string, message?: string);
|
|
193
|
+
get details(): Record<string, any> | null;
|
|
194
|
+
get fieldErrors(): Record<string, string[]> | null;
|
|
195
|
+
get errorMessage(): string;
|
|
196
|
+
get isValidationError(): boolean;
|
|
197
|
+
get isAuthError(): boolean;
|
|
198
|
+
get isPermissionError(): boolean;
|
|
199
|
+
get isNotFoundError(): boolean;
|
|
200
|
+
get isServerError(): boolean;
|
|
201
|
+
}
|
|
202
|
+
/** Network Error (connection failed, timeout, etc.) */
|
|
203
|
+
declare class NetworkError extends Error {
|
|
204
|
+
url: string;
|
|
205
|
+
originalError?: Error;
|
|
206
|
+
constructor(message: string, url: string, originalError?: Error);
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
interface ValidationErrorDetail {
|
|
210
|
+
operation: string;
|
|
211
|
+
path: string;
|
|
212
|
+
method: string;
|
|
213
|
+
error: ZodError;
|
|
214
|
+
response: any;
|
|
215
|
+
timestamp: Date;
|
|
216
|
+
}
|
|
217
|
+
type ValidationErrorEvent = CustomEvent<ValidationErrorDetail>;
|
|
218
|
+
declare function dispatchValidationError(detail: ValidationErrorDetail): void;
|
|
219
|
+
declare function onValidationError(callback: (detail: ValidationErrorDetail) => void): () => void;
|
|
220
|
+
declare function formatZodError(error: ZodError): string;
|
|
221
|
+
|
|
222
|
+
type ClientOptions$1 = {
|
|
223
|
+
baseUrl: 'http://localhost:8000' | (string & {});
|
|
38
224
|
};
|
|
39
|
-
|
|
225
|
+
/**
|
|
226
|
+
* Response serializer for account deletion.
|
|
227
|
+
*/
|
|
228
|
+
type AccountDeleteResponse = {
|
|
40
229
|
/**
|
|
41
|
-
*
|
|
42
|
-
* override the global array/object settings for specific parameter names.
|
|
230
|
+
* Human-readable message about the deletion
|
|
43
231
|
*/
|
|
44
|
-
|
|
45
|
-
};
|
|
46
|
-
|
|
47
|
-
type HttpMethod = 'connect' | 'delete' | 'get' | 'head' | 'options' | 'patch' | 'post' | 'put' | 'trace';
|
|
48
|
-
type Client$1<RequestFn = never, Config = unknown, MethodFn = never, BuildUrlFn = never, SseFn = never> = {
|
|
232
|
+
message: string;
|
|
49
233
|
/**
|
|
50
|
-
*
|
|
234
|
+
* Whether the account was successfully deleted
|
|
51
235
|
*/
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
} & ([SseFn] extends [never] ? {
|
|
59
|
-
sse?: never;
|
|
60
|
-
} : {
|
|
61
|
-
sse: {
|
|
62
|
-
[K in HttpMethod]: SseFn;
|
|
63
|
-
};
|
|
64
|
-
});
|
|
65
|
-
interface Config$1 {
|
|
236
|
+
success: boolean;
|
|
237
|
+
};
|
|
238
|
+
/**
|
|
239
|
+
* Serializer for regenerating backup codes.
|
|
240
|
+
*/
|
|
241
|
+
type BackupCodesRegenerateRequest = {
|
|
66
242
|
/**
|
|
67
|
-
*
|
|
68
|
-
* added to the request payload as defined by its `security` array.
|
|
243
|
+
* TOTP code for verification
|
|
69
244
|
*/
|
|
70
|
-
|
|
245
|
+
code: string;
|
|
246
|
+
};
|
|
247
|
+
/**
|
|
248
|
+
* Response serializer for backup codes regeneration.
|
|
249
|
+
*/
|
|
250
|
+
type BackupCodesRegenerateResponse = {
|
|
71
251
|
/**
|
|
72
|
-
*
|
|
73
|
-
* {@link JSON.stringify()} will be used.
|
|
252
|
+
* List of new backup codes (save these!)
|
|
74
253
|
*/
|
|
75
|
-
|
|
254
|
+
backup_codes: Array<string>;
|
|
76
255
|
/**
|
|
77
|
-
*
|
|
78
|
-
* `Headers` object with.
|
|
79
|
-
*
|
|
80
|
-
* {@link https://developer.mozilla.org/docs/Web/API/Headers/Headers#init See more}
|
|
256
|
+
* Warning about previous codes being invalidated
|
|
81
257
|
*/
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
258
|
+
warning: string;
|
|
259
|
+
};
|
|
260
|
+
/**
|
|
261
|
+
* Serializer for backup codes status.
|
|
262
|
+
*/
|
|
263
|
+
type BackupCodesStatus = {
|
|
264
|
+
/**
|
|
265
|
+
* Number of unused backup codes
|
|
87
266
|
*/
|
|
88
|
-
|
|
267
|
+
remaining_count: number;
|
|
89
268
|
/**
|
|
90
|
-
*
|
|
91
|
-
* will be exploded in form style, objects will be exploded in deepObject
|
|
92
|
-
* style, and reserved characters are percent-encoded.
|
|
93
|
-
*
|
|
94
|
-
* This method will have no effect if the native `paramsSerializer()` Axios
|
|
95
|
-
* API function is used.
|
|
96
|
-
*
|
|
97
|
-
* {@link https://swagger.io/docs/specification/serialization/#query View examples}
|
|
269
|
+
* Total number of codes generated
|
|
98
270
|
*/
|
|
99
|
-
|
|
271
|
+
total_generated: number;
|
|
100
272
|
/**
|
|
101
|
-
*
|
|
102
|
-
* the request conforms to the desired shape, so it can be safely sent to
|
|
103
|
-
* the server.
|
|
273
|
+
* Warning if running low on codes
|
|
104
274
|
*/
|
|
105
|
-
|
|
275
|
+
warning?: string | null;
|
|
276
|
+
};
|
|
277
|
+
/**
|
|
278
|
+
* Nested serializer for Centrifugo WebSocket connection token.
|
|
279
|
+
*/
|
|
280
|
+
type CentrifugoToken = {
|
|
106
281
|
/**
|
|
107
|
-
*
|
|
108
|
-
* for post-processing data, e.g., converting ISO strings into Date objects.
|
|
282
|
+
* Centrifugo WebSocket URL
|
|
109
283
|
*/
|
|
110
|
-
|
|
284
|
+
centrifugo_url: string;
|
|
111
285
|
/**
|
|
112
|
-
*
|
|
113
|
-
* the response conforms to the desired shape, so it can be safely passed to
|
|
114
|
-
* the transformers and returned to the user.
|
|
286
|
+
* List of allowed channels for this user
|
|
115
287
|
*/
|
|
116
|
-
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
type ServerSentEventsOptions<TData = unknown> = Omit<RequestInit, 'method'> & Pick<Config$1, 'method' | 'responseTransformer' | 'responseValidator'> & {
|
|
288
|
+
channels: Array<string>;
|
|
120
289
|
/**
|
|
121
|
-
*
|
|
122
|
-
* fetch instance.
|
|
123
|
-
*
|
|
124
|
-
* @default globalThis.fetch
|
|
290
|
+
* Token expiration time (ISO 8601)
|
|
125
291
|
*/
|
|
126
|
-
|
|
292
|
+
expires_at: string;
|
|
127
293
|
/**
|
|
128
|
-
*
|
|
294
|
+
* JWT token for Centrifugo WebSocket connection
|
|
129
295
|
*/
|
|
130
|
-
|
|
296
|
+
token: string;
|
|
297
|
+
};
|
|
298
|
+
/**
|
|
299
|
+
* Serializer for updating user profile.
|
|
300
|
+
*/
|
|
301
|
+
type CfgUserUpdateRequest = {
|
|
302
|
+
company?: string;
|
|
303
|
+
first_name?: string;
|
|
304
|
+
language?: string;
|
|
305
|
+
last_name?: string;
|
|
306
|
+
phone?: string;
|
|
307
|
+
position?: string;
|
|
308
|
+
};
|
|
309
|
+
/**
|
|
310
|
+
* Serializer for confirming 2FA setup with first code.
|
|
311
|
+
*/
|
|
312
|
+
type ConfirmSetupRequest = {
|
|
131
313
|
/**
|
|
132
|
-
*
|
|
133
|
-
*
|
|
134
|
-
* This option applies only if the endpoint returns a stream of events.
|
|
135
|
-
*
|
|
136
|
-
* @param error The error that occurred.
|
|
314
|
+
* 6-digit TOTP code from authenticator app
|
|
137
315
|
*/
|
|
138
|
-
|
|
316
|
+
code: string;
|
|
139
317
|
/**
|
|
140
|
-
*
|
|
141
|
-
*
|
|
142
|
-
* This option applies only if the endpoint returns a stream of events.
|
|
143
|
-
*
|
|
144
|
-
* @param event Event streamed from the server.
|
|
145
|
-
* @returns Nothing (void).
|
|
318
|
+
* Device ID from setup response
|
|
146
319
|
*/
|
|
147
|
-
|
|
148
|
-
|
|
320
|
+
device_id: string;
|
|
321
|
+
};
|
|
322
|
+
/**
|
|
323
|
+
* Response serializer for setup confirmation.
|
|
324
|
+
*/
|
|
325
|
+
type ConfirmSetupResponse = {
|
|
149
326
|
/**
|
|
150
|
-
*
|
|
151
|
-
*
|
|
152
|
-
* This option applies only if the endpoint returns a stream of events.
|
|
153
|
-
*
|
|
154
|
-
* @default 3000
|
|
327
|
+
* List of backup recovery codes (save these!)
|
|
155
328
|
*/
|
|
156
|
-
|
|
329
|
+
backup_codes: Array<string>;
|
|
157
330
|
/**
|
|
158
|
-
*
|
|
331
|
+
* Warning message about backup codes
|
|
159
332
|
*/
|
|
160
|
-
|
|
333
|
+
backup_codes_warning: string;
|
|
334
|
+
message: string;
|
|
335
|
+
};
|
|
336
|
+
/**
|
|
337
|
+
* ConnectionTokenResponse
|
|
338
|
+
*
|
|
339
|
+
* Response model for Centrifugo connection token.
|
|
340
|
+
*/
|
|
341
|
+
type ConnectionTokenResponse = {
|
|
161
342
|
/**
|
|
162
|
-
*
|
|
163
|
-
*
|
|
164
|
-
* Applies only when exponential backoff is used.
|
|
165
|
-
*
|
|
166
|
-
* This option applies only if the endpoint returns a stream of events.
|
|
343
|
+
* Centrifugo Url
|
|
167
344
|
*
|
|
168
|
-
*
|
|
345
|
+
* Centrifugo WebSocket URL
|
|
169
346
|
*/
|
|
170
|
-
|
|
347
|
+
centrifugo_url: string;
|
|
171
348
|
/**
|
|
172
|
-
*
|
|
349
|
+
* Channels
|
|
173
350
|
*
|
|
174
|
-
*
|
|
351
|
+
* List of allowed channels
|
|
175
352
|
*/
|
|
176
|
-
|
|
177
|
-
url: string;
|
|
178
|
-
};
|
|
179
|
-
interface StreamEvent<TData = unknown> {
|
|
180
|
-
data: TData;
|
|
181
|
-
event?: string;
|
|
182
|
-
id?: string;
|
|
183
|
-
retry?: number;
|
|
184
|
-
}
|
|
185
|
-
type ServerSentEventsResult<TData = unknown, TReturn = void, TNext = unknown> = {
|
|
186
|
-
stream: AsyncGenerator<TData extends Record<string, unknown> ? TData[keyof TData] : TData, TReturn, TNext>;
|
|
187
|
-
};
|
|
188
|
-
|
|
189
|
-
type ErrInterceptor<Err, Res, Req, Options> = (error: Err,
|
|
190
|
-
/** response may be undefined due to a network error where no response object is produced */
|
|
191
|
-
response: Res | undefined,
|
|
192
|
-
/** request may be undefined, because error may be from building the request object itself */
|
|
193
|
-
request: Req | undefined, options: Options) => Err | Promise<Err>;
|
|
194
|
-
type ReqInterceptor<Req, Options> = (request: Req, options: Options) => Req | Promise<Req>;
|
|
195
|
-
type ResInterceptor<Res, Req, Options> = (response: Res, request: Req, options: Options) => Res | Promise<Res>;
|
|
196
|
-
declare class Interceptors<Interceptor> {
|
|
197
|
-
fns: Array<Interceptor | null>;
|
|
198
|
-
clear(): void;
|
|
199
|
-
eject(id: number | Interceptor): void;
|
|
200
|
-
exists(id: number | Interceptor): boolean;
|
|
201
|
-
getInterceptorIndex(id: number | Interceptor): number;
|
|
202
|
-
update(id: number | Interceptor, fn: Interceptor): number | Interceptor | false;
|
|
203
|
-
use(fn: Interceptor): number;
|
|
204
|
-
}
|
|
205
|
-
interface Middleware<Req, Res, Err, Options> {
|
|
206
|
-
error: Interceptors<ErrInterceptor<Err, Res, Req, Options>>;
|
|
207
|
-
request: Interceptors<ReqInterceptor<Req, Options>>;
|
|
208
|
-
response: Interceptors<ResInterceptor<Res, Req, Options>>;
|
|
209
|
-
}
|
|
210
|
-
|
|
211
|
-
type ResponseStyle = 'data' | 'fields';
|
|
212
|
-
interface Config<T extends ClientOptions$1 = ClientOptions$1> extends Omit<RequestInit, 'body' | 'headers' | 'method'>, Config$1 {
|
|
353
|
+
channels: Array<string>;
|
|
213
354
|
/**
|
|
214
|
-
*
|
|
355
|
+
* Expires At
|
|
356
|
+
*
|
|
357
|
+
* Token expiration time (ISO 8601)
|
|
215
358
|
*/
|
|
216
|
-
|
|
359
|
+
expires_at: string;
|
|
217
360
|
/**
|
|
218
|
-
*
|
|
219
|
-
* fetch instance.
|
|
361
|
+
* Token
|
|
220
362
|
*
|
|
221
|
-
*
|
|
363
|
+
* JWT token for Centrifugo connection
|
|
222
364
|
*/
|
|
223
|
-
|
|
365
|
+
token: string;
|
|
366
|
+
};
|
|
367
|
+
/**
|
|
368
|
+
* Serializer for listing TOTP devices.
|
|
369
|
+
*/
|
|
370
|
+
type DeviceList = {
|
|
224
371
|
/**
|
|
225
|
-
*
|
|
226
|
-
* options won't have any effect.
|
|
227
|
-
*
|
|
228
|
-
* Install {@link https://www.npmjs.com/package/@hey-api/client-next `@hey-api/client-next`} instead.
|
|
372
|
+
* When device setup was confirmed
|
|
229
373
|
*/
|
|
230
|
-
|
|
374
|
+
readonly confirmed_at: string | null;
|
|
375
|
+
readonly created_at: string;
|
|
376
|
+
readonly id: string;
|
|
231
377
|
/**
|
|
232
|
-
*
|
|
233
|
-
* will infer the appropriate method from the `Content-Type` response header.
|
|
234
|
-
* You can override this behavior with any of the {@link Body} methods.
|
|
235
|
-
* Select `stream` if you don't want to parse response data at all.
|
|
236
|
-
*
|
|
237
|
-
* @default 'auto'
|
|
378
|
+
* Primary device used for verification
|
|
238
379
|
*/
|
|
239
|
-
|
|
380
|
+
readonly is_primary: boolean;
|
|
240
381
|
/**
|
|
241
|
-
*
|
|
242
|
-
*
|
|
243
|
-
* @default 'fields'
|
|
382
|
+
* Last successful verification
|
|
244
383
|
*/
|
|
245
|
-
|
|
384
|
+
readonly last_used_at: string | null;
|
|
246
385
|
/**
|
|
247
|
-
*
|
|
248
|
-
*
|
|
249
|
-
* @default false
|
|
386
|
+
* Device name for identification
|
|
250
387
|
*/
|
|
251
|
-
|
|
388
|
+
readonly name: string;
|
|
389
|
+
readonly status: DeviceListStatusEnum;
|
|
390
|
+
};
|
|
391
|
+
/**
|
|
392
|
+
* Response serializer for device list endpoint.
|
|
393
|
+
*/
|
|
394
|
+
type DeviceListResponse = {
|
|
395
|
+
devices: Array<DeviceList>;
|
|
396
|
+
has_2fa_enabled: boolean;
|
|
397
|
+
};
|
|
398
|
+
/**
|
|
399
|
+
* * `pending` - Pending Confirmation
|
|
400
|
+
* * `active` - Active
|
|
401
|
+
* * `disabled` - Disabled
|
|
402
|
+
*/
|
|
403
|
+
declare enum DeviceListStatusEnum {
|
|
404
|
+
PENDING = "pending",
|
|
405
|
+
ACTIVE = "active",
|
|
406
|
+
DISABLED = "disabled"
|
|
252
407
|
}
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
408
|
+
/**
|
|
409
|
+
* Serializer for completely disabling 2FA.
|
|
410
|
+
*/
|
|
411
|
+
type DisableRequest = {
|
|
257
412
|
/**
|
|
258
|
-
*
|
|
259
|
-
*
|
|
260
|
-
* {@link https://developer.mozilla.org/docs/Web/API/fetch#body}
|
|
413
|
+
* TOTP code for verification
|
|
261
414
|
*/
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
security?: ReadonlyArray<Auth$1>;
|
|
269
|
-
url: Url;
|
|
270
|
-
}
|
|
271
|
-
interface ResolvedRequestOptions<TResponseStyle extends ResponseStyle = 'fields', ThrowOnError extends boolean = boolean, Url extends string = string> extends RequestOptions<unknown, TResponseStyle, ThrowOnError, Url> {
|
|
272
|
-
headers: Headers;
|
|
273
|
-
serializedBody?: string;
|
|
274
|
-
}
|
|
275
|
-
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 : {
|
|
276
|
-
data: TData extends Record<string, unknown> ? TData[keyof TData] : TData;
|
|
277
|
-
request: Request;
|
|
278
|
-
response: Response;
|
|
279
|
-
}> : Promise<TResponseStyle extends 'data' ? (TData extends Record<string, unknown> ? TData[keyof TData] : TData) | undefined : ({
|
|
280
|
-
data: TData extends Record<string, unknown> ? TData[keyof TData] : TData;
|
|
281
|
-
error: undefined;
|
|
282
|
-
} | {
|
|
283
|
-
data: undefined;
|
|
284
|
-
error: TError extends Record<string, unknown> ? TError[keyof TError] : TError;
|
|
285
|
-
}) & {
|
|
286
|
-
/** request may be undefined, because error may be from building the request object itself */
|
|
287
|
-
request?: Request;
|
|
288
|
-
/** response may be undefined, because error may be from building the request object itself or from a network error */
|
|
289
|
-
response?: Response;
|
|
290
|
-
}>;
|
|
291
|
-
interface ClientOptions$1 {
|
|
292
|
-
baseUrl?: string;
|
|
293
|
-
responseStyle?: ResponseStyle;
|
|
294
|
-
throwOnError?: boolean;
|
|
295
|
-
}
|
|
296
|
-
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>;
|
|
297
|
-
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>>;
|
|
298
|
-
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>;
|
|
299
|
-
type BuildUrlFn = <TData extends {
|
|
300
|
-
body?: unknown;
|
|
301
|
-
path?: Record<string, unknown>;
|
|
302
|
-
query?: Record<string, unknown>;
|
|
303
|
-
url: string;
|
|
304
|
-
}>(options: TData & Options$1<TData>) => string;
|
|
305
|
-
type Client = Client$1<RequestFn, Config, MethodFn, BuildUrlFn, SseFn> & {
|
|
306
|
-
interceptors: Middleware<Request, Response, unknown, ResolvedRequestOptions>;
|
|
307
|
-
};
|
|
308
|
-
interface TDataShape {
|
|
309
|
-
body?: unknown;
|
|
310
|
-
headers?: unknown;
|
|
311
|
-
path?: unknown;
|
|
312
|
-
query?: unknown;
|
|
313
|
-
url: string;
|
|
314
|
-
}
|
|
315
|
-
type OmitKeys<T, K> = Pick<T, Exclude<keyof T, K>>;
|
|
316
|
-
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'>);
|
|
317
|
-
|
|
318
|
-
type ClientOptions = {
|
|
319
|
-
baseUrl: 'http://localhost:8000' | (string & {});
|
|
320
|
-
};
|
|
321
|
-
/**
|
|
322
|
-
* Response serializer for account deletion.
|
|
323
|
-
*/
|
|
324
|
-
type AccountDeleteResponse = {
|
|
325
|
-
/**
|
|
326
|
-
* Human-readable message about the deletion
|
|
327
|
-
*/
|
|
328
|
-
message: string;
|
|
329
|
-
/**
|
|
330
|
-
* Whether the account was successfully deleted
|
|
331
|
-
*/
|
|
332
|
-
success: boolean;
|
|
333
|
-
};
|
|
334
|
-
/**
|
|
335
|
-
* Serializer for regenerating backup codes.
|
|
336
|
-
*/
|
|
337
|
-
type BackupCodesRegenerateRequest = {
|
|
338
|
-
/**
|
|
339
|
-
* TOTP code for verification
|
|
340
|
-
*/
|
|
341
|
-
code: string;
|
|
342
|
-
};
|
|
343
|
-
/**
|
|
344
|
-
* Response serializer for backup codes regeneration.
|
|
345
|
-
*/
|
|
346
|
-
type BackupCodesRegenerateResponse = {
|
|
347
|
-
/**
|
|
348
|
-
* List of new backup codes (save these!)
|
|
349
|
-
*/
|
|
350
|
-
backup_codes: Array<string>;
|
|
351
|
-
/**
|
|
352
|
-
* Warning about previous codes being invalidated
|
|
353
|
-
*/
|
|
354
|
-
warning: string;
|
|
355
|
-
};
|
|
356
|
-
/**
|
|
357
|
-
* Serializer for backup codes status.
|
|
358
|
-
*/
|
|
359
|
-
type BackupCodesStatus = {
|
|
360
|
-
/**
|
|
361
|
-
* Number of unused backup codes
|
|
362
|
-
*/
|
|
363
|
-
remaining_count: number;
|
|
364
|
-
/**
|
|
365
|
-
* Total number of codes generated
|
|
366
|
-
*/
|
|
367
|
-
total_generated: number;
|
|
368
|
-
/**
|
|
369
|
-
* Warning if running low on codes
|
|
370
|
-
*/
|
|
371
|
-
warning?: string | null;
|
|
372
|
-
};
|
|
373
|
-
/**
|
|
374
|
-
* Nested serializer for Centrifugo WebSocket connection token.
|
|
375
|
-
*/
|
|
376
|
-
type CentrifugoToken = {
|
|
377
|
-
/**
|
|
378
|
-
* Centrifugo WebSocket URL
|
|
379
|
-
*/
|
|
380
|
-
centrifugo_url: string;
|
|
381
|
-
/**
|
|
382
|
-
* List of allowed channels for this user
|
|
383
|
-
*/
|
|
384
|
-
channels: Array<string>;
|
|
385
|
-
/**
|
|
386
|
-
* Token expiration time (ISO 8601)
|
|
387
|
-
*/
|
|
388
|
-
expires_at: string;
|
|
389
|
-
/**
|
|
390
|
-
* JWT token for Centrifugo WebSocket connection
|
|
391
|
-
*/
|
|
392
|
-
token: string;
|
|
393
|
-
};
|
|
394
|
-
/**
|
|
395
|
-
* Serializer for updating user profile.
|
|
396
|
-
*/
|
|
397
|
-
type CfgUserUpdateRequest = {
|
|
398
|
-
company?: string;
|
|
399
|
-
first_name?: string;
|
|
400
|
-
language?: string;
|
|
401
|
-
last_name?: string;
|
|
402
|
-
phone?: string;
|
|
403
|
-
position?: string;
|
|
404
|
-
};
|
|
405
|
-
/**
|
|
406
|
-
* Serializer for confirming 2FA setup with first code.
|
|
407
|
-
*/
|
|
408
|
-
type ConfirmSetupRequest = {
|
|
409
|
-
/**
|
|
410
|
-
* 6-digit TOTP code from authenticator app
|
|
411
|
-
*/
|
|
412
|
-
code: string;
|
|
413
|
-
/**
|
|
414
|
-
* Device ID from setup response
|
|
415
|
-
*/
|
|
416
|
-
device_id: string;
|
|
417
|
-
};
|
|
418
|
-
/**
|
|
419
|
-
* Response serializer for setup confirmation.
|
|
420
|
-
*/
|
|
421
|
-
type ConfirmSetupResponse = {
|
|
422
|
-
/**
|
|
423
|
-
* List of backup recovery codes (save these!)
|
|
424
|
-
*/
|
|
425
|
-
backup_codes: Array<string>;
|
|
426
|
-
/**
|
|
427
|
-
* Warning message about backup codes
|
|
428
|
-
*/
|
|
429
|
-
backup_codes_warning: string;
|
|
430
|
-
message: string;
|
|
431
|
-
};
|
|
432
|
-
/**
|
|
433
|
-
* ConnectionTokenResponse
|
|
434
|
-
*
|
|
435
|
-
* Response model for Centrifugo connection token.
|
|
436
|
-
*/
|
|
437
|
-
type ConnectionTokenResponse = {
|
|
438
|
-
/**
|
|
439
|
-
* Centrifugo Url
|
|
440
|
-
*
|
|
441
|
-
* Centrifugo WebSocket URL
|
|
442
|
-
*/
|
|
443
|
-
centrifugo_url: string;
|
|
444
|
-
/**
|
|
445
|
-
* Channels
|
|
446
|
-
*
|
|
447
|
-
* List of allowed channels
|
|
448
|
-
*/
|
|
449
|
-
channels: Array<string>;
|
|
450
|
-
/**
|
|
451
|
-
* Expires At
|
|
452
|
-
*
|
|
453
|
-
* Token expiration time (ISO 8601)
|
|
454
|
-
*/
|
|
455
|
-
expires_at: string;
|
|
456
|
-
/**
|
|
457
|
-
* Token
|
|
458
|
-
*
|
|
459
|
-
* JWT token for Centrifugo connection
|
|
460
|
-
*/
|
|
461
|
-
token: string;
|
|
462
|
-
};
|
|
463
|
-
/**
|
|
464
|
-
* Serializer for listing TOTP devices.
|
|
465
|
-
*/
|
|
466
|
-
type DeviceList = {
|
|
467
|
-
/**
|
|
468
|
-
* When device setup was confirmed
|
|
469
|
-
*/
|
|
470
|
-
readonly confirmed_at: string | null;
|
|
471
|
-
readonly created_at: string;
|
|
472
|
-
readonly id: string;
|
|
473
|
-
/**
|
|
474
|
-
* Primary device used for verification
|
|
475
|
-
*/
|
|
476
|
-
readonly is_primary: boolean;
|
|
477
|
-
/**
|
|
478
|
-
* Last successful verification
|
|
479
|
-
*/
|
|
480
|
-
readonly last_used_at: string | null;
|
|
481
|
-
/**
|
|
482
|
-
* Device name for identification
|
|
483
|
-
*/
|
|
484
|
-
readonly name: string;
|
|
485
|
-
readonly status: DeviceListStatusEnum;
|
|
486
|
-
};
|
|
487
|
-
/**
|
|
488
|
-
* Response serializer for device list endpoint.
|
|
489
|
-
*/
|
|
490
|
-
type DeviceListResponse = {
|
|
491
|
-
devices: Array<DeviceList>;
|
|
492
|
-
has_2fa_enabled: boolean;
|
|
493
|
-
};
|
|
494
|
-
/**
|
|
495
|
-
* * `pending` - Pending Confirmation
|
|
496
|
-
* * `active` - Active
|
|
497
|
-
* * `disabled` - Disabled
|
|
498
|
-
*/
|
|
499
|
-
declare enum DeviceListStatusEnum {
|
|
500
|
-
PENDING = "pending",
|
|
501
|
-
ACTIVE = "active",
|
|
502
|
-
DISABLED = "disabled"
|
|
503
|
-
}
|
|
504
|
-
/**
|
|
505
|
-
* Serializer for completely disabling 2FA.
|
|
506
|
-
*/
|
|
507
|
-
type DisableRequest = {
|
|
508
|
-
/**
|
|
509
|
-
* TOTP code for verification
|
|
510
|
-
*/
|
|
511
|
-
code: string;
|
|
512
|
-
};
|
|
513
|
-
/**
|
|
514
|
-
* Request to start OAuth flow.
|
|
515
|
-
*/
|
|
516
|
-
type OAuthAuthorizeRequestRequest = {
|
|
415
|
+
code: string;
|
|
416
|
+
};
|
|
417
|
+
/**
|
|
418
|
+
* Request to start OAuth flow.
|
|
419
|
+
*/
|
|
420
|
+
type OAuthAuthorizeRequestRequest = {
|
|
517
421
|
/**
|
|
518
422
|
* URL to redirect after OAuth authorization. If not provided, uses config's site_url + callback_path
|
|
519
423
|
*/
|
|
@@ -1467,176 +1371,7 @@ type CfgTotpVerifyBackupCreateResponses = {
|
|
|
1467
1371
|
};
|
|
1468
1372
|
type CfgTotpVerifyBackupCreateResponse = CfgTotpVerifyBackupCreateResponses[keyof CfgTotpVerifyBackupCreateResponses];
|
|
1469
1373
|
|
|
1470
|
-
interface StorageAdapter {
|
|
1471
|
-
getItem(key: string): string | null;
|
|
1472
|
-
setItem(key: string, value: string): void;
|
|
1473
|
-
removeItem(key: string): void;
|
|
1474
|
-
clear?(): void;
|
|
1475
|
-
}
|
|
1476
|
-
/** Browser localStorage. Falls back to no-op on SSR / private mode. */
|
|
1477
|
-
declare class LocalStorageAdapter implements StorageAdapter {
|
|
1478
|
-
getItem(key: string): string | null;
|
|
1479
|
-
setItem(key: string, value: string): void;
|
|
1480
|
-
removeItem(key: string): void;
|
|
1481
|
-
clear(): void;
|
|
1482
|
-
}
|
|
1483
|
-
/** In-memory store. Use for SSR, Electron main process, or tests. */
|
|
1484
|
-
declare class MemoryStorageAdapter implements StorageAdapter {
|
|
1485
|
-
private store;
|
|
1486
|
-
getItem(key: string): string | null;
|
|
1487
|
-
setItem(key: string, value: string): void;
|
|
1488
|
-
removeItem(key: string): void;
|
|
1489
|
-
clear(): void;
|
|
1490
|
-
}
|
|
1491
|
-
/** Cookie-backed storage (browser only). */
|
|
1492
|
-
declare class CookieStorageAdapter implements StorageAdapter {
|
|
1493
|
-
private opts;
|
|
1494
|
-
constructor(opts?: {
|
|
1495
|
-
domain?: string;
|
|
1496
|
-
path?: string;
|
|
1497
|
-
secure?: boolean;
|
|
1498
|
-
sameSite?: "Strict" | "Lax" | "None";
|
|
1499
|
-
maxAgeSeconds?: number;
|
|
1500
|
-
});
|
|
1501
|
-
getItem(key: string): string | null;
|
|
1502
|
-
setItem(key: string, value: string): void;
|
|
1503
|
-
removeItem(key: string): void;
|
|
1504
|
-
}
|
|
1505
|
-
|
|
1506
|
-
interface RequestLog {
|
|
1507
|
-
method: string;
|
|
1508
|
-
url: string;
|
|
1509
|
-
headers?: Record<string, string>;
|
|
1510
|
-
body?: any;
|
|
1511
|
-
timestamp: number;
|
|
1512
|
-
}
|
|
1513
|
-
interface ResponseLog {
|
|
1514
|
-
status: number;
|
|
1515
|
-
statusText: string;
|
|
1516
|
-
data?: any;
|
|
1517
|
-
duration: number;
|
|
1518
|
-
timestamp: number;
|
|
1519
|
-
}
|
|
1520
|
-
interface ErrorLog {
|
|
1521
|
-
message: string;
|
|
1522
|
-
statusCode?: number;
|
|
1523
|
-
fieldErrors?: Record<string, string[]>;
|
|
1524
|
-
duration: number;
|
|
1525
|
-
timestamp: number;
|
|
1526
|
-
}
|
|
1527
|
-
interface LoggerConfig {
|
|
1528
|
-
enabled: boolean;
|
|
1529
|
-
logRequests: boolean;
|
|
1530
|
-
logResponses: boolean;
|
|
1531
|
-
logErrors: boolean;
|
|
1532
|
-
logBodies: boolean;
|
|
1533
|
-
logHeaders: boolean;
|
|
1534
|
-
consola?: ConsolaInstance;
|
|
1535
|
-
}
|
|
1536
|
-
declare class APILogger {
|
|
1537
|
-
private config;
|
|
1538
|
-
private consola;
|
|
1539
|
-
constructor(config?: Partial<LoggerConfig>);
|
|
1540
|
-
enable(): void;
|
|
1541
|
-
disable(): void;
|
|
1542
|
-
setConfig(config: Partial<LoggerConfig>): void;
|
|
1543
|
-
private filterHeaders;
|
|
1544
|
-
logRequest(request: RequestLog): void;
|
|
1545
|
-
logResponse(request: RequestLog, response: ResponseLog): void;
|
|
1546
|
-
logError(request: RequestLog, error: ErrorLog): void;
|
|
1547
|
-
info(message: string, ...args: any[]): void;
|
|
1548
|
-
warn(message: string, ...args: any[]): void;
|
|
1549
|
-
error(message: string, ...args: any[]): void;
|
|
1550
|
-
debug(message: string, ...args: any[]): void;
|
|
1551
|
-
success(message: string, ...args: any[]): void;
|
|
1552
|
-
withTag(tag: string): ConsolaInstance;
|
|
1553
|
-
}
|
|
1554
|
-
declare const defaultLogger: APILogger;
|
|
1555
|
-
|
|
1556
|
-
interface APIOptions$2 {
|
|
1557
|
-
/** Override storage backend (LocalStorage by default; Memory for SSR/tests). */
|
|
1558
|
-
storage?: StorageAdapter;
|
|
1559
|
-
/** Logger config (defaults to dev-only). */
|
|
1560
|
-
logger?: Partial<LoggerConfig>;
|
|
1561
|
-
/** Locale for `Accept-Language`. If omitted, auto-detected from cookie/navigator. */
|
|
1562
|
-
locale?: string;
|
|
1563
|
-
/** API key sent as `X-API-Key`. Falls back to NEXT_PUBLIC_API_KEY. */
|
|
1564
|
-
apiKey?: string;
|
|
1565
|
-
/** Send Django session/CSRF cookies cross-origin. Defaults to true. */
|
|
1566
|
-
withCredentials?: boolean;
|
|
1567
|
-
}
|
|
1568
|
-
/**
|
|
1569
|
-
* Self-contained API wrapper for this group.
|
|
1570
|
-
*
|
|
1571
|
-
* Each group has its own client + interceptor + token store. The interceptor
|
|
1572
|
-
* automatically attaches:
|
|
1573
|
-
* - `Authorization: Bearer <jwt>` from storage
|
|
1574
|
-
* - `Accept-Language` from `opts.locale` or `NEXT_LOCALE` cookie
|
|
1575
|
-
* - `X-API-Key` from `opts.apiKey` or `NEXT_PUBLIC_API_KEY`
|
|
1576
|
-
* - `credentials: 'include'` for Django session/CSRF cookies (toggle via opts)
|
|
1577
|
-
*/
|
|
1578
|
-
declare class API$2 {
|
|
1579
|
-
private baseUrl;
|
|
1580
|
-
private storage;
|
|
1581
|
-
private locale;
|
|
1582
|
-
private apiKey;
|
|
1583
|
-
readonly logger: APILogger;
|
|
1584
|
-
constructor(baseUrl: string, opts?: APIOptions$2);
|
|
1585
|
-
getBaseUrl(): string;
|
|
1586
|
-
setBaseUrl(url: string): void;
|
|
1587
|
-
getToken(): string | null;
|
|
1588
|
-
setToken(token: string | null): void;
|
|
1589
|
-
getRefreshToken(): string | null;
|
|
1590
|
-
setRefreshToken(token: string | null): void;
|
|
1591
|
-
clearToken(): void;
|
|
1592
|
-
isAuthenticated(): boolean;
|
|
1593
|
-
getLocale(): string | null;
|
|
1594
|
-
setLocale(locale: string | null): void;
|
|
1595
|
-
getApiKey(): string | null;
|
|
1596
|
-
setApiKey(key: string | null): void;
|
|
1597
|
-
}
|
|
1598
|
-
|
|
1599
|
-
/**
|
|
1600
|
-
* HTTP API Error with DRF field-specific validation errors.
|
|
1601
|
-
*/
|
|
1602
|
-
declare class APIError extends Error {
|
|
1603
|
-
statusCode: number;
|
|
1604
|
-
statusText: string;
|
|
1605
|
-
response: any;
|
|
1606
|
-
url: string;
|
|
1607
|
-
constructor(statusCode: number, statusText: string, response: any, url: string, message?: string);
|
|
1608
|
-
get details(): Record<string, any> | null;
|
|
1609
|
-
get fieldErrors(): Record<string, string[]> | null;
|
|
1610
|
-
get errorMessage(): string;
|
|
1611
|
-
get isValidationError(): boolean;
|
|
1612
|
-
get isAuthError(): boolean;
|
|
1613
|
-
get isPermissionError(): boolean;
|
|
1614
|
-
get isNotFoundError(): boolean;
|
|
1615
|
-
get isServerError(): boolean;
|
|
1616
|
-
}
|
|
1617
|
-
/** Network Error (connection failed, timeout, etc.) */
|
|
1618
|
-
declare class NetworkError extends Error {
|
|
1619
|
-
url: string;
|
|
1620
|
-
originalError?: Error;
|
|
1621
|
-
constructor(message: string, url: string, originalError?: Error);
|
|
1622
|
-
}
|
|
1623
|
-
|
|
1624
|
-
interface ValidationErrorDetail {
|
|
1625
|
-
operation: string;
|
|
1626
|
-
path: string;
|
|
1627
|
-
method: string;
|
|
1628
|
-
error: ZodError;
|
|
1629
|
-
response: any;
|
|
1630
|
-
timestamp: Date;
|
|
1631
|
-
}
|
|
1632
|
-
type ValidationErrorEvent = CustomEvent<ValidationErrorDetail>;
|
|
1633
|
-
declare function dispatchValidationError(detail: ValidationErrorDetail): void;
|
|
1634
|
-
declare function onValidationError(callback: (detail: ValidationErrorDetail) => void): () => void;
|
|
1635
|
-
declare function formatZodError(error: ZodError): string;
|
|
1636
|
-
|
|
1637
1374
|
interface APIOptions$1 {
|
|
1638
|
-
/** Override storage backend (LocalStorage by default; Memory for SSR/tests). */
|
|
1639
|
-
storage?: StorageAdapter;
|
|
1640
1375
|
/** Logger config (defaults to dev-only). */
|
|
1641
1376
|
logger?: Partial<LoggerConfig>;
|
|
1642
1377
|
/** Locale for `Accept-Language`. If omitted, auto-detected from cookie/navigator. */
|
|
@@ -1647,22 +1382,18 @@ interface APIOptions$1 {
|
|
|
1647
1382
|
withCredentials?: boolean;
|
|
1648
1383
|
}
|
|
1649
1384
|
/**
|
|
1650
|
-
*
|
|
1385
|
+
* Per-group ergonomic facade.
|
|
1651
1386
|
*
|
|
1652
|
-
*
|
|
1653
|
-
*
|
|
1654
|
-
*
|
|
1655
|
-
*
|
|
1656
|
-
*
|
|
1657
|
-
*
|
|
1387
|
+
* Calling `setToken/setApiKey/setLocale/setBaseUrl` proxies to the
|
|
1388
|
+
* global `auth` store — the change applies to **every** group's API
|
|
1389
|
+
* instance because they share the same HTTP client and interceptor.
|
|
1390
|
+
*
|
|
1391
|
+
* Use the global `auth` object directly when you don't need a group
|
|
1392
|
+
* facade: `import { auth } from '@your/api'; auth.setToken(jwt);`
|
|
1658
1393
|
*/
|
|
1659
1394
|
declare class API$1 {
|
|
1660
|
-
private baseUrl;
|
|
1661
|
-
private storage;
|
|
1662
|
-
private locale;
|
|
1663
|
-
private apiKey;
|
|
1664
1395
|
readonly logger: APILogger;
|
|
1665
|
-
constructor(
|
|
1396
|
+
constructor(_baseUrl?: string, opts?: APIOptions$1);
|
|
1666
1397
|
getBaseUrl(): string;
|
|
1667
1398
|
setBaseUrl(url: string): void;
|
|
1668
1399
|
getToken(): string | null;
|
|
@@ -1678,8 +1409,6 @@ declare class API$1 {
|
|
|
1678
1409
|
}
|
|
1679
1410
|
|
|
1680
1411
|
interface APIOptions {
|
|
1681
|
-
/** Override storage backend (LocalStorage by default; Memory for SSR/tests). */
|
|
1682
|
-
storage?: StorageAdapter;
|
|
1683
1412
|
/** Logger config (defaults to dev-only). */
|
|
1684
1413
|
logger?: Partial<LoggerConfig>;
|
|
1685
1414
|
/** Locale for `Accept-Language`. If omitted, auto-detected from cookie/navigator. */
|
|
@@ -1690,22 +1419,18 @@ interface APIOptions {
|
|
|
1690
1419
|
withCredentials?: boolean;
|
|
1691
1420
|
}
|
|
1692
1421
|
/**
|
|
1693
|
-
*
|
|
1422
|
+
* Per-group ergonomic facade.
|
|
1423
|
+
*
|
|
1424
|
+
* Calling `setToken/setApiKey/setLocale/setBaseUrl` proxies to the
|
|
1425
|
+
* global `auth` store — the change applies to **every** group's API
|
|
1426
|
+
* instance because they share the same HTTP client and interceptor.
|
|
1694
1427
|
*
|
|
1695
|
-
*
|
|
1696
|
-
*
|
|
1697
|
-
* - `Authorization: Bearer <jwt>` from storage
|
|
1698
|
-
* - `Accept-Language` from `opts.locale` or `NEXT_LOCALE` cookie
|
|
1699
|
-
* - `X-API-Key` from `opts.apiKey` or `NEXT_PUBLIC_API_KEY`
|
|
1700
|
-
* - `credentials: 'include'` for Django session/CSRF cookies (toggle via opts)
|
|
1428
|
+
* Use the global `auth` object directly when you don't need a group
|
|
1429
|
+
* facade: `import { auth } from '@your/api'; auth.setToken(jwt);`
|
|
1701
1430
|
*/
|
|
1702
1431
|
declare class API {
|
|
1703
|
-
private baseUrl;
|
|
1704
|
-
private storage;
|
|
1705
|
-
private locale;
|
|
1706
|
-
private apiKey;
|
|
1707
1432
|
readonly logger: APILogger;
|
|
1708
|
-
constructor(
|
|
1433
|
+
constructor(_baseUrl?: string, opts?: APIOptions);
|
|
1709
1434
|
getBaseUrl(): string;
|
|
1710
1435
|
setBaseUrl(url: string): void;
|
|
1711
1436
|
getToken(): string | null;
|
|
@@ -1724,6 +1449,320 @@ declare const CfgAccountsApi: API$2;
|
|
|
1724
1449
|
declare const CfgCentrifugoApi: API$1;
|
|
1725
1450
|
declare const CfgTotpApi: API;
|
|
1726
1451
|
|
|
1452
|
+
type AuthToken = string | undefined;
|
|
1453
|
+
interface Auth$1 {
|
|
1454
|
+
/**
|
|
1455
|
+
* Which part of the request do we use to send the auth?
|
|
1456
|
+
*
|
|
1457
|
+
* @default 'header'
|
|
1458
|
+
*/
|
|
1459
|
+
in?: 'header' | 'query' | 'cookie';
|
|
1460
|
+
/**
|
|
1461
|
+
* Header or query parameter name.
|
|
1462
|
+
*
|
|
1463
|
+
* @default 'Authorization'
|
|
1464
|
+
*/
|
|
1465
|
+
name?: string;
|
|
1466
|
+
scheme?: 'basic' | 'bearer';
|
|
1467
|
+
type: 'apiKey' | 'http';
|
|
1468
|
+
}
|
|
1469
|
+
|
|
1470
|
+
interface SerializerOptions<T> {
|
|
1471
|
+
/**
|
|
1472
|
+
* @default true
|
|
1473
|
+
*/
|
|
1474
|
+
explode: boolean;
|
|
1475
|
+
style: T;
|
|
1476
|
+
}
|
|
1477
|
+
type ArrayStyle = 'form' | 'spaceDelimited' | 'pipeDelimited';
|
|
1478
|
+
type ObjectStyle = 'form' | 'deepObject';
|
|
1479
|
+
|
|
1480
|
+
type QuerySerializer = (query: Record<string, unknown>) => string;
|
|
1481
|
+
type BodySerializer = (body: unknown) => unknown;
|
|
1482
|
+
type QuerySerializerOptionsObject = {
|
|
1483
|
+
allowReserved?: boolean;
|
|
1484
|
+
array?: Partial<SerializerOptions<ArrayStyle>>;
|
|
1485
|
+
object?: Partial<SerializerOptions<ObjectStyle>>;
|
|
1486
|
+
};
|
|
1487
|
+
type QuerySerializerOptions = QuerySerializerOptionsObject & {
|
|
1488
|
+
/**
|
|
1489
|
+
* Per-parameter serialization overrides. When provided, these settings
|
|
1490
|
+
* override the global array/object settings for specific parameter names.
|
|
1491
|
+
*/
|
|
1492
|
+
parameters?: Record<string, QuerySerializerOptionsObject>;
|
|
1493
|
+
};
|
|
1494
|
+
|
|
1495
|
+
type HttpMethod = 'connect' | 'delete' | 'get' | 'head' | 'options' | 'patch' | 'post' | 'put' | 'trace';
|
|
1496
|
+
type Client$1<RequestFn = never, Config = unknown, MethodFn = never, BuildUrlFn = never, SseFn = never> = {
|
|
1497
|
+
/**
|
|
1498
|
+
* Returns the final request URL.
|
|
1499
|
+
*/
|
|
1500
|
+
buildUrl: BuildUrlFn;
|
|
1501
|
+
getConfig: () => Config;
|
|
1502
|
+
request: RequestFn;
|
|
1503
|
+
setConfig: (config: Config) => Config;
|
|
1504
|
+
} & {
|
|
1505
|
+
[K in HttpMethod]: MethodFn;
|
|
1506
|
+
} & ([SseFn] extends [never] ? {
|
|
1507
|
+
sse?: never;
|
|
1508
|
+
} : {
|
|
1509
|
+
sse: {
|
|
1510
|
+
[K in HttpMethod]: SseFn;
|
|
1511
|
+
};
|
|
1512
|
+
});
|
|
1513
|
+
interface Config$1 {
|
|
1514
|
+
/**
|
|
1515
|
+
* Auth token or a function returning auth token. The resolved value will be
|
|
1516
|
+
* added to the request payload as defined by its `security` array.
|
|
1517
|
+
*/
|
|
1518
|
+
auth?: ((auth: Auth$1) => Promise<AuthToken> | AuthToken) | AuthToken;
|
|
1519
|
+
/**
|
|
1520
|
+
* A function for serializing request body parameter. By default,
|
|
1521
|
+
* {@link JSON.stringify()} will be used.
|
|
1522
|
+
*/
|
|
1523
|
+
bodySerializer?: BodySerializer | null;
|
|
1524
|
+
/**
|
|
1525
|
+
* An object containing any HTTP headers that you want to pre-populate your
|
|
1526
|
+
* `Headers` object with.
|
|
1527
|
+
*
|
|
1528
|
+
* {@link https://developer.mozilla.org/docs/Web/API/Headers/Headers#init See more}
|
|
1529
|
+
*/
|
|
1530
|
+
headers?: RequestInit['headers'] | Record<string, string | number | boolean | (string | number | boolean)[] | null | undefined | unknown>;
|
|
1531
|
+
/**
|
|
1532
|
+
* The request method.
|
|
1533
|
+
*
|
|
1534
|
+
* {@link https://developer.mozilla.org/docs/Web/API/fetch#method See more}
|
|
1535
|
+
*/
|
|
1536
|
+
method?: Uppercase<HttpMethod>;
|
|
1537
|
+
/**
|
|
1538
|
+
* A function for serializing request query parameters. By default, arrays
|
|
1539
|
+
* will be exploded in form style, objects will be exploded in deepObject
|
|
1540
|
+
* style, and reserved characters are percent-encoded.
|
|
1541
|
+
*
|
|
1542
|
+
* This method will have no effect if the native `paramsSerializer()` Axios
|
|
1543
|
+
* API function is used.
|
|
1544
|
+
*
|
|
1545
|
+
* {@link https://swagger.io/docs/specification/serialization/#query View examples}
|
|
1546
|
+
*/
|
|
1547
|
+
querySerializer?: QuerySerializer | QuerySerializerOptions;
|
|
1548
|
+
/**
|
|
1549
|
+
* A function validating request data. This is useful if you want to ensure
|
|
1550
|
+
* the request conforms to the desired shape, so it can be safely sent to
|
|
1551
|
+
* the server.
|
|
1552
|
+
*/
|
|
1553
|
+
requestValidator?: (data: unknown) => Promise<unknown>;
|
|
1554
|
+
/**
|
|
1555
|
+
* A function transforming response data before it's returned. This is useful
|
|
1556
|
+
* for post-processing data, e.g., converting ISO strings into Date objects.
|
|
1557
|
+
*/
|
|
1558
|
+
responseTransformer?: (data: unknown) => Promise<unknown>;
|
|
1559
|
+
/**
|
|
1560
|
+
* A function validating response data. This is useful if you want to ensure
|
|
1561
|
+
* the response conforms to the desired shape, so it can be safely passed to
|
|
1562
|
+
* the transformers and returned to the user.
|
|
1563
|
+
*/
|
|
1564
|
+
responseValidator?: (data: unknown) => Promise<unknown>;
|
|
1565
|
+
}
|
|
1566
|
+
|
|
1567
|
+
type ServerSentEventsOptions<TData = unknown> = Omit<RequestInit, 'method'> & Pick<Config$1, 'method' | 'responseTransformer' | 'responseValidator'> & {
|
|
1568
|
+
/**
|
|
1569
|
+
* Fetch API implementation. You can use this option to provide a custom
|
|
1570
|
+
* fetch instance.
|
|
1571
|
+
*
|
|
1572
|
+
* @default globalThis.fetch
|
|
1573
|
+
*/
|
|
1574
|
+
fetch?: typeof fetch;
|
|
1575
|
+
/**
|
|
1576
|
+
* Implementing clients can call request interceptors inside this hook.
|
|
1577
|
+
*/
|
|
1578
|
+
onRequest?: (url: string, init: RequestInit) => Promise<Request>;
|
|
1579
|
+
/**
|
|
1580
|
+
* Callback invoked when a network or parsing error occurs during streaming.
|
|
1581
|
+
*
|
|
1582
|
+
* This option applies only if the endpoint returns a stream of events.
|
|
1583
|
+
*
|
|
1584
|
+
* @param error The error that occurred.
|
|
1585
|
+
*/
|
|
1586
|
+
onSseError?: (error: unknown) => void;
|
|
1587
|
+
/**
|
|
1588
|
+
* Callback invoked when an event is streamed from the server.
|
|
1589
|
+
*
|
|
1590
|
+
* This option applies only if the endpoint returns a stream of events.
|
|
1591
|
+
*
|
|
1592
|
+
* @param event Event streamed from the server.
|
|
1593
|
+
* @returns Nothing (void).
|
|
1594
|
+
*/
|
|
1595
|
+
onSseEvent?: (event: StreamEvent<TData>) => void;
|
|
1596
|
+
serializedBody?: RequestInit['body'];
|
|
1597
|
+
/**
|
|
1598
|
+
* Default retry delay in milliseconds.
|
|
1599
|
+
*
|
|
1600
|
+
* This option applies only if the endpoint returns a stream of events.
|
|
1601
|
+
*
|
|
1602
|
+
* @default 3000
|
|
1603
|
+
*/
|
|
1604
|
+
sseDefaultRetryDelay?: number;
|
|
1605
|
+
/**
|
|
1606
|
+
* Maximum number of retry attempts before giving up.
|
|
1607
|
+
*/
|
|
1608
|
+
sseMaxRetryAttempts?: number;
|
|
1609
|
+
/**
|
|
1610
|
+
* Maximum retry delay in milliseconds.
|
|
1611
|
+
*
|
|
1612
|
+
* Applies only when exponential backoff is used.
|
|
1613
|
+
*
|
|
1614
|
+
* This option applies only if the endpoint returns a stream of events.
|
|
1615
|
+
*
|
|
1616
|
+
* @default 30000
|
|
1617
|
+
*/
|
|
1618
|
+
sseMaxRetryDelay?: number;
|
|
1619
|
+
/**
|
|
1620
|
+
* Optional sleep function for retry backoff.
|
|
1621
|
+
*
|
|
1622
|
+
* Defaults to using `setTimeout`.
|
|
1623
|
+
*/
|
|
1624
|
+
sseSleepFn?: (ms: number) => Promise<void>;
|
|
1625
|
+
url: string;
|
|
1626
|
+
};
|
|
1627
|
+
interface StreamEvent<TData = unknown> {
|
|
1628
|
+
data: TData;
|
|
1629
|
+
event?: string;
|
|
1630
|
+
id?: string;
|
|
1631
|
+
retry?: number;
|
|
1632
|
+
}
|
|
1633
|
+
type ServerSentEventsResult<TData = unknown, TReturn = void, TNext = unknown> = {
|
|
1634
|
+
stream: AsyncGenerator<TData extends Record<string, unknown> ? TData[keyof TData] : TData, TReturn, TNext>;
|
|
1635
|
+
};
|
|
1636
|
+
|
|
1637
|
+
type ErrInterceptor<Err, Res, Req, Options> = (error: Err,
|
|
1638
|
+
/** response may be undefined due to a network error where no response object is produced */
|
|
1639
|
+
response: Res | undefined,
|
|
1640
|
+
/** request may be undefined, because error may be from building the request object itself */
|
|
1641
|
+
request: Req | undefined, options: Options) => Err | Promise<Err>;
|
|
1642
|
+
type ReqInterceptor<Req, Options> = (request: Req, options: Options) => Req | Promise<Req>;
|
|
1643
|
+
type ResInterceptor<Res, Req, Options> = (response: Res, request: Req, options: Options) => Res | Promise<Res>;
|
|
1644
|
+
declare class Interceptors<Interceptor> {
|
|
1645
|
+
fns: Array<Interceptor | null>;
|
|
1646
|
+
clear(): void;
|
|
1647
|
+
eject(id: number | Interceptor): void;
|
|
1648
|
+
exists(id: number | Interceptor): boolean;
|
|
1649
|
+
getInterceptorIndex(id: number | Interceptor): number;
|
|
1650
|
+
update(id: number | Interceptor, fn: Interceptor): number | Interceptor | false;
|
|
1651
|
+
use(fn: Interceptor): number;
|
|
1652
|
+
}
|
|
1653
|
+
interface Middleware<Req, Res, Err, Options> {
|
|
1654
|
+
error: Interceptors<ErrInterceptor<Err, Res, Req, Options>>;
|
|
1655
|
+
request: Interceptors<ReqInterceptor<Req, Options>>;
|
|
1656
|
+
response: Interceptors<ResInterceptor<Res, Req, Options>>;
|
|
1657
|
+
}
|
|
1658
|
+
|
|
1659
|
+
type ResponseStyle = 'data' | 'fields';
|
|
1660
|
+
interface Config<T extends ClientOptions = ClientOptions> extends Omit<RequestInit, 'body' | 'headers' | 'method'>, Config$1 {
|
|
1661
|
+
/**
|
|
1662
|
+
* Base URL for all requests made by this client.
|
|
1663
|
+
*/
|
|
1664
|
+
baseUrl?: T['baseUrl'];
|
|
1665
|
+
/**
|
|
1666
|
+
* Fetch API implementation. You can use this option to provide a custom
|
|
1667
|
+
* fetch instance.
|
|
1668
|
+
*
|
|
1669
|
+
* @default globalThis.fetch
|
|
1670
|
+
*/
|
|
1671
|
+
fetch?: typeof fetch;
|
|
1672
|
+
/**
|
|
1673
|
+
* Please don't use the Fetch client for Next.js applications. The `next`
|
|
1674
|
+
* options won't have any effect.
|
|
1675
|
+
*
|
|
1676
|
+
* Install {@link https://www.npmjs.com/package/@hey-api/client-next `@hey-api/client-next`} instead.
|
|
1677
|
+
*/
|
|
1678
|
+
next?: never;
|
|
1679
|
+
/**
|
|
1680
|
+
* Return the response data parsed in a specified format. By default, `auto`
|
|
1681
|
+
* will infer the appropriate method from the `Content-Type` response header.
|
|
1682
|
+
* You can override this behavior with any of the {@link Body} methods.
|
|
1683
|
+
* Select `stream` if you don't want to parse response data at all.
|
|
1684
|
+
*
|
|
1685
|
+
* @default 'auto'
|
|
1686
|
+
*/
|
|
1687
|
+
parseAs?: 'arrayBuffer' | 'auto' | 'blob' | 'formData' | 'json' | 'stream' | 'text';
|
|
1688
|
+
/**
|
|
1689
|
+
* Should we return only data or multiple fields (data, error, response, etc.)?
|
|
1690
|
+
*
|
|
1691
|
+
* @default 'fields'
|
|
1692
|
+
*/
|
|
1693
|
+
responseStyle?: ResponseStyle;
|
|
1694
|
+
/**
|
|
1695
|
+
* Throw an error instead of returning it in the response?
|
|
1696
|
+
*
|
|
1697
|
+
* @default false
|
|
1698
|
+
*/
|
|
1699
|
+
throwOnError?: T['throwOnError'];
|
|
1700
|
+
}
|
|
1701
|
+
interface RequestOptions<TData = unknown, TResponseStyle extends ResponseStyle = 'fields', ThrowOnError extends boolean = boolean, Url extends string = string> extends Config<{
|
|
1702
|
+
responseStyle: TResponseStyle;
|
|
1703
|
+
throwOnError: ThrowOnError;
|
|
1704
|
+
}>, Pick<ServerSentEventsOptions<TData>, 'onRequest' | 'onSseError' | 'onSseEvent' | 'sseDefaultRetryDelay' | 'sseMaxRetryAttempts' | 'sseMaxRetryDelay'> {
|
|
1705
|
+
/**
|
|
1706
|
+
* Any body that you want to add to your request.
|
|
1707
|
+
*
|
|
1708
|
+
* {@link https://developer.mozilla.org/docs/Web/API/fetch#body}
|
|
1709
|
+
*/
|
|
1710
|
+
body?: unknown;
|
|
1711
|
+
path?: Record<string, unknown>;
|
|
1712
|
+
query?: Record<string, unknown>;
|
|
1713
|
+
/**
|
|
1714
|
+
* Security mechanism(s) to use for the request.
|
|
1715
|
+
*/
|
|
1716
|
+
security?: ReadonlyArray<Auth$1>;
|
|
1717
|
+
url: Url;
|
|
1718
|
+
}
|
|
1719
|
+
interface ResolvedRequestOptions<TResponseStyle extends ResponseStyle = 'fields', ThrowOnError extends boolean = boolean, Url extends string = string> extends RequestOptions<unknown, TResponseStyle, ThrowOnError, Url> {
|
|
1720
|
+
headers: Headers;
|
|
1721
|
+
serializedBody?: string;
|
|
1722
|
+
}
|
|
1723
|
+
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 : {
|
|
1724
|
+
data: TData extends Record<string, unknown> ? TData[keyof TData] : TData;
|
|
1725
|
+
request: Request;
|
|
1726
|
+
response: Response;
|
|
1727
|
+
}> : Promise<TResponseStyle extends 'data' ? (TData extends Record<string, unknown> ? TData[keyof TData] : TData) | undefined : ({
|
|
1728
|
+
data: TData extends Record<string, unknown> ? TData[keyof TData] : TData;
|
|
1729
|
+
error: undefined;
|
|
1730
|
+
} | {
|
|
1731
|
+
data: undefined;
|
|
1732
|
+
error: TError extends Record<string, unknown> ? TError[keyof TError] : TError;
|
|
1733
|
+
}) & {
|
|
1734
|
+
/** request may be undefined, because error may be from building the request object itself */
|
|
1735
|
+
request?: Request;
|
|
1736
|
+
/** response may be undefined, because error may be from building the request object itself or from a network error */
|
|
1737
|
+
response?: Response;
|
|
1738
|
+
}>;
|
|
1739
|
+
interface ClientOptions {
|
|
1740
|
+
baseUrl?: string;
|
|
1741
|
+
responseStyle?: ResponseStyle;
|
|
1742
|
+
throwOnError?: boolean;
|
|
1743
|
+
}
|
|
1744
|
+
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>;
|
|
1745
|
+
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>>;
|
|
1746
|
+
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>;
|
|
1747
|
+
type BuildUrlFn = <TData extends {
|
|
1748
|
+
body?: unknown;
|
|
1749
|
+
path?: Record<string, unknown>;
|
|
1750
|
+
query?: Record<string, unknown>;
|
|
1751
|
+
url: string;
|
|
1752
|
+
}>(options: TData & Options$1<TData>) => string;
|
|
1753
|
+
type Client = Client$1<RequestFn, Config, MethodFn, BuildUrlFn, SseFn> & {
|
|
1754
|
+
interceptors: Middleware<Request, Response, unknown, ResolvedRequestOptions>;
|
|
1755
|
+
};
|
|
1756
|
+
interface TDataShape {
|
|
1757
|
+
body?: unknown;
|
|
1758
|
+
headers?: unknown;
|
|
1759
|
+
path?: unknown;
|
|
1760
|
+
query?: unknown;
|
|
1761
|
+
url: string;
|
|
1762
|
+
}
|
|
1763
|
+
type OmitKeys<T, K> = Pick<T, Exclude<keyof T, K>>;
|
|
1764
|
+
type Options$1<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean, TResponse = unknown, TResponseStyle extends ResponseStyle = 'fields'> = OmitKeys<RequestOptions<TResponse, TResponseStyle, ThrowOnError>, 'body' | 'path' | 'query' | 'url'> & ([TData] extends [never] ? unknown : Omit<TData, 'url'>);
|
|
1765
|
+
|
|
1727
1766
|
type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean, TResponse = unknown> = Options$1<TData, ThrowOnError, TResponse> & {
|
|
1728
1767
|
/**
|
|
1729
1768
|
* You can provide a client instance returned by `createClient()` instead of
|
|
@@ -2319,7 +2358,6 @@ type types_gen$2_CfgTotpVerifyCreateErrors = CfgTotpVerifyCreateErrors;
|
|
|
2319
2358
|
type types_gen$2_CfgTotpVerifyCreateResponse = CfgTotpVerifyCreateResponse;
|
|
2320
2359
|
type types_gen$2_CfgTotpVerifyCreateResponses = CfgTotpVerifyCreateResponses;
|
|
2321
2360
|
type types_gen$2_CfgUserUpdateRequest = CfgUserUpdateRequest;
|
|
2322
|
-
type types_gen$2_ClientOptions = ClientOptions;
|
|
2323
2361
|
type types_gen$2_ConfirmSetupRequest = ConfirmSetupRequest;
|
|
2324
2362
|
type types_gen$2_ConfirmSetupResponse = ConfirmSetupResponse;
|
|
2325
2363
|
type types_gen$2_ConnectionTokenResponse = ConnectionTokenResponse;
|
|
@@ -2360,7 +2398,7 @@ type types_gen$2_VerifyRequest = VerifyRequest;
|
|
|
2360
2398
|
type types_gen$2_VerifyResponse = VerifyResponse;
|
|
2361
2399
|
type types_gen$2_VerifyResponseWritable = VerifyResponseWritable;
|
|
2362
2400
|
declare namespace types_gen$2 {
|
|
2363
|
-
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 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_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 };
|
|
2401
|
+
export { type types_gen$2_AccountDeleteResponse as AccountDeleteResponse, type types_gen$2_BackupCodesRegenerateRequest as BackupCodesRegenerateRequest, type types_gen$2_BackupCodesRegenerateResponse as BackupCodesRegenerateResponse, type types_gen$2_BackupCodesStatus as BackupCodesStatus, type types_gen$2_CentrifugoToken as CentrifugoToken, type types_gen$2_CfgAccountsOauthConnectionsListData as CfgAccountsOauthConnectionsListData, type types_gen$2_CfgAccountsOauthConnectionsListResponse as CfgAccountsOauthConnectionsListResponse, type types_gen$2_CfgAccountsOauthConnectionsListResponses as CfgAccountsOauthConnectionsListResponses, type types_gen$2_CfgAccountsOauthDisconnectCreateData as CfgAccountsOauthDisconnectCreateData, type types_gen$2_CfgAccountsOauthDisconnectCreateError as CfgAccountsOauthDisconnectCreateError, type types_gen$2_CfgAccountsOauthDisconnectCreateErrors as CfgAccountsOauthDisconnectCreateErrors, type types_gen$2_CfgAccountsOauthDisconnectCreateResponse as CfgAccountsOauthDisconnectCreateResponse, type types_gen$2_CfgAccountsOauthDisconnectCreateResponses as CfgAccountsOauthDisconnectCreateResponses, type types_gen$2_CfgAccountsOauthGithubAuthorizeCreateData as CfgAccountsOauthGithubAuthorizeCreateData, type types_gen$2_CfgAccountsOauthGithubAuthorizeCreateError as CfgAccountsOauthGithubAuthorizeCreateError, type types_gen$2_CfgAccountsOauthGithubAuthorizeCreateErrors as CfgAccountsOauthGithubAuthorizeCreateErrors, type types_gen$2_CfgAccountsOauthGithubAuthorizeCreateResponse as CfgAccountsOauthGithubAuthorizeCreateResponse, type types_gen$2_CfgAccountsOauthGithubAuthorizeCreateResponses as CfgAccountsOauthGithubAuthorizeCreateResponses, type types_gen$2_CfgAccountsOauthGithubCallbackCreateData as CfgAccountsOauthGithubCallbackCreateData, type types_gen$2_CfgAccountsOauthGithubCallbackCreateError as CfgAccountsOauthGithubCallbackCreateError, type types_gen$2_CfgAccountsOauthGithubCallbackCreateErrors as CfgAccountsOauthGithubCallbackCreateErrors, type types_gen$2_CfgAccountsOauthGithubCallbackCreateResponse as CfgAccountsOauthGithubCallbackCreateResponse, type types_gen$2_CfgAccountsOauthGithubCallbackCreateResponses as CfgAccountsOauthGithubCallbackCreateResponses, type types_gen$2_CfgAccountsOauthProvidersRetrieveData as CfgAccountsOauthProvidersRetrieveData, type types_gen$2_CfgAccountsOauthProvidersRetrieveResponse as CfgAccountsOauthProvidersRetrieveResponse, type types_gen$2_CfgAccountsOauthProvidersRetrieveResponses as CfgAccountsOauthProvidersRetrieveResponses, type types_gen$2_CfgAccountsOtpRequestCreateData as CfgAccountsOtpRequestCreateData, type types_gen$2_CfgAccountsOtpRequestCreateError as CfgAccountsOtpRequestCreateError, type types_gen$2_CfgAccountsOtpRequestCreateErrors as CfgAccountsOtpRequestCreateErrors, type types_gen$2_CfgAccountsOtpRequestCreateResponse as CfgAccountsOtpRequestCreateResponse, type types_gen$2_CfgAccountsOtpRequestCreateResponses as CfgAccountsOtpRequestCreateResponses, type types_gen$2_CfgAccountsOtpVerifyCreateData as CfgAccountsOtpVerifyCreateData, type types_gen$2_CfgAccountsOtpVerifyCreateError as CfgAccountsOtpVerifyCreateError, type types_gen$2_CfgAccountsOtpVerifyCreateErrors as CfgAccountsOtpVerifyCreateErrors, type types_gen$2_CfgAccountsOtpVerifyCreateResponse as CfgAccountsOtpVerifyCreateResponse, type types_gen$2_CfgAccountsOtpVerifyCreateResponses as CfgAccountsOtpVerifyCreateResponses, type types_gen$2_CfgAccountsProfileAvatarCreateData as CfgAccountsProfileAvatarCreateData, type types_gen$2_CfgAccountsProfileAvatarCreateErrors as CfgAccountsProfileAvatarCreateErrors, type types_gen$2_CfgAccountsProfileAvatarCreateResponse as CfgAccountsProfileAvatarCreateResponse, type types_gen$2_CfgAccountsProfileAvatarCreateResponses as CfgAccountsProfileAvatarCreateResponses, type types_gen$2_CfgAccountsProfileDeleteCreateData as CfgAccountsProfileDeleteCreateData, type types_gen$2_CfgAccountsProfileDeleteCreateErrors as CfgAccountsProfileDeleteCreateErrors, type types_gen$2_CfgAccountsProfileDeleteCreateResponse as CfgAccountsProfileDeleteCreateResponse, type types_gen$2_CfgAccountsProfileDeleteCreateResponses as CfgAccountsProfileDeleteCreateResponses, type types_gen$2_CfgAccountsProfilePartialPartialUpdateData as CfgAccountsProfilePartialPartialUpdateData, type types_gen$2_CfgAccountsProfilePartialPartialUpdateErrors as CfgAccountsProfilePartialPartialUpdateErrors, type types_gen$2_CfgAccountsProfilePartialPartialUpdateResponse as CfgAccountsProfilePartialPartialUpdateResponse, type types_gen$2_CfgAccountsProfilePartialPartialUpdateResponses as CfgAccountsProfilePartialPartialUpdateResponses, type types_gen$2_CfgAccountsProfilePartialUpdateData as CfgAccountsProfilePartialUpdateData, type types_gen$2_CfgAccountsProfilePartialUpdateErrors as CfgAccountsProfilePartialUpdateErrors, type types_gen$2_CfgAccountsProfilePartialUpdateResponse as CfgAccountsProfilePartialUpdateResponse, type types_gen$2_CfgAccountsProfilePartialUpdateResponses as CfgAccountsProfilePartialUpdateResponses, type types_gen$2_CfgAccountsProfileRetrieveData as CfgAccountsProfileRetrieveData, type types_gen$2_CfgAccountsProfileRetrieveErrors as CfgAccountsProfileRetrieveErrors, type types_gen$2_CfgAccountsProfileRetrieveResponse as CfgAccountsProfileRetrieveResponse, type types_gen$2_CfgAccountsProfileRetrieveResponses as CfgAccountsProfileRetrieveResponses, type types_gen$2_CfgAccountsProfileUpdatePartialUpdateData as CfgAccountsProfileUpdatePartialUpdateData, type types_gen$2_CfgAccountsProfileUpdatePartialUpdateErrors as CfgAccountsProfileUpdatePartialUpdateErrors, type types_gen$2_CfgAccountsProfileUpdatePartialUpdateResponse as CfgAccountsProfileUpdatePartialUpdateResponse, type types_gen$2_CfgAccountsProfileUpdatePartialUpdateResponses as CfgAccountsProfileUpdatePartialUpdateResponses, type types_gen$2_CfgAccountsProfileUpdateUpdateData as CfgAccountsProfileUpdateUpdateData, type types_gen$2_CfgAccountsProfileUpdateUpdateErrors as CfgAccountsProfileUpdateUpdateErrors, type types_gen$2_CfgAccountsProfileUpdateUpdateResponse as CfgAccountsProfileUpdateUpdateResponse, type types_gen$2_CfgAccountsProfileUpdateUpdateResponses as CfgAccountsProfileUpdateUpdateResponses, type types_gen$2_CfgAccountsTokenRefreshCreateData as CfgAccountsTokenRefreshCreateData, type types_gen$2_CfgAccountsTokenRefreshCreateResponse as CfgAccountsTokenRefreshCreateResponse, type types_gen$2_CfgAccountsTokenRefreshCreateResponses as CfgAccountsTokenRefreshCreateResponses, type types_gen$2_CfgCentrifugoAuthTokenRetrieveData as CfgCentrifugoAuthTokenRetrieveData, type types_gen$2_CfgCentrifugoAuthTokenRetrieveErrors as CfgCentrifugoAuthTokenRetrieveErrors, type types_gen$2_CfgCentrifugoAuthTokenRetrieveResponse as CfgCentrifugoAuthTokenRetrieveResponse, type types_gen$2_CfgCentrifugoAuthTokenRetrieveResponses as CfgCentrifugoAuthTokenRetrieveResponses, type types_gen$2_CfgTotpBackupCodesRegenerateCreateData as CfgTotpBackupCodesRegenerateCreateData, type types_gen$2_CfgTotpBackupCodesRegenerateCreateErrors as CfgTotpBackupCodesRegenerateCreateErrors, type types_gen$2_CfgTotpBackupCodesRegenerateCreateResponse as CfgTotpBackupCodesRegenerateCreateResponse, type types_gen$2_CfgTotpBackupCodesRegenerateCreateResponses as CfgTotpBackupCodesRegenerateCreateResponses, type types_gen$2_CfgTotpBackupCodesRetrieveData as CfgTotpBackupCodesRetrieveData, type types_gen$2_CfgTotpBackupCodesRetrieveResponse as CfgTotpBackupCodesRetrieveResponse, type types_gen$2_CfgTotpBackupCodesRetrieveResponses as CfgTotpBackupCodesRetrieveResponses, type types_gen$2_CfgTotpDevicesDestroyData as CfgTotpDevicesDestroyData, type types_gen$2_CfgTotpDevicesDestroyResponse as CfgTotpDevicesDestroyResponse, type types_gen$2_CfgTotpDevicesDestroyResponses as CfgTotpDevicesDestroyResponses, type types_gen$2_CfgTotpDevicesRetrieveData as CfgTotpDevicesRetrieveData, type types_gen$2_CfgTotpDevicesRetrieveResponse as CfgTotpDevicesRetrieveResponse, type types_gen$2_CfgTotpDevicesRetrieveResponses as CfgTotpDevicesRetrieveResponses, type types_gen$2_CfgTotpDisableCreateData as CfgTotpDisableCreateData, type types_gen$2_CfgTotpDisableCreateErrors as CfgTotpDisableCreateErrors, type types_gen$2_CfgTotpDisableCreateResponses as CfgTotpDisableCreateResponses, type types_gen$2_CfgTotpSetupConfirmCreateData as CfgTotpSetupConfirmCreateData, type types_gen$2_CfgTotpSetupConfirmCreateErrors as CfgTotpSetupConfirmCreateErrors, type types_gen$2_CfgTotpSetupConfirmCreateResponse as CfgTotpSetupConfirmCreateResponse, type types_gen$2_CfgTotpSetupConfirmCreateResponses as CfgTotpSetupConfirmCreateResponses, type types_gen$2_CfgTotpSetupCreateData as CfgTotpSetupCreateData, type types_gen$2_CfgTotpSetupCreateErrors as CfgTotpSetupCreateErrors, type types_gen$2_CfgTotpSetupCreateResponse as CfgTotpSetupCreateResponse, type types_gen$2_CfgTotpSetupCreateResponses as CfgTotpSetupCreateResponses, type types_gen$2_CfgTotpVerifyBackupCreateData as CfgTotpVerifyBackupCreateData, type types_gen$2_CfgTotpVerifyBackupCreateErrors as CfgTotpVerifyBackupCreateErrors, type types_gen$2_CfgTotpVerifyBackupCreateResponse as CfgTotpVerifyBackupCreateResponse, type types_gen$2_CfgTotpVerifyBackupCreateResponses as CfgTotpVerifyBackupCreateResponses, type types_gen$2_CfgTotpVerifyCreateData as CfgTotpVerifyCreateData, type types_gen$2_CfgTotpVerifyCreateErrors as CfgTotpVerifyCreateErrors, type types_gen$2_CfgTotpVerifyCreateResponse as CfgTotpVerifyCreateResponse, type types_gen$2_CfgTotpVerifyCreateResponses as CfgTotpVerifyCreateResponses, type types_gen$2_CfgUserUpdateRequest as CfgUserUpdateRequest, type ClientOptions$1 as ClientOptions, type types_gen$2_ConfirmSetupRequest as ConfirmSetupRequest, type types_gen$2_ConfirmSetupResponse as ConfirmSetupResponse, type types_gen$2_ConnectionTokenResponse as ConnectionTokenResponse, type types_gen$2_DeviceList as DeviceList, type types_gen$2_DeviceListResponse as DeviceListResponse, type types_gen$2_DeviceListResponseWritable as DeviceListResponseWritable, types_gen$2_DeviceListStatusEnum as DeviceListStatusEnum, type types_gen$2_DisableRequest as DisableRequest, type types_gen$2_OAuthAuthorizeRequestRequest as OAuthAuthorizeRequestRequest, type types_gen$2_OAuthAuthorizeResponse as OAuthAuthorizeResponse, type types_gen$2_OAuthCallbackRequestRequest as OAuthCallbackRequestRequest, type types_gen$2_OAuthConnection as OAuthConnection, type types_gen$2_OAuthDisconnectRequestRequest as OAuthDisconnectRequestRequest, type types_gen$2_OAuthError as OAuthError, type types_gen$2_OAuthProvidersResponse as OAuthProvidersResponse, type types_gen$2_OAuthTokenResponse as OAuthTokenResponse, type types_gen$2_OtpErrorResponse as OtpErrorResponse, type types_gen$2_OtpRequestRequest as OtpRequestRequest, type types_gen$2_OtpRequestResponse as OtpRequestResponse, type types_gen$2_OtpVerifyRequest as OtpVerifyRequest, type types_gen$2_OtpVerifyResponse as OtpVerifyResponse, type types_gen$2_OtpVerifyResponseWritable as OtpVerifyResponseWritable, type types_gen$2_PatchedCfgUserUpdateRequest as PatchedCfgUserUpdateRequest, types_gen$2_ProviderEnum as ProviderEnum, type types_gen$2_SetupRequest as SetupRequest, type types_gen$2_SetupResponse as SetupResponse, type types_gen$2_TokenRefresh as TokenRefresh, type types_gen$2_TokenRefreshRequest as TokenRefreshRequest, type types_gen$2_TokenRefreshWritable as TokenRefreshWritable, type types_gen$2_TotpVerifyUser as TotpVerifyUser, type types_gen$2_TotpVerifyUserWritable as TotpVerifyUserWritable, type types_gen$2_User as User, type types_gen$2_UserWritable as UserWritable, type types_gen$2_VerifyBackupRequest as VerifyBackupRequest, type types_gen$2_VerifyRequest as VerifyRequest, type types_gen$2_VerifyResponse as VerifyResponse, type types_gen$2_VerifyResponseWritable as VerifyResponseWritable };
|
|
2364
2402
|
}
|
|
2365
2403
|
|
|
2366
2404
|
type types_gen$1_AccountDeleteResponse = AccountDeleteResponse;
|
|
@@ -2467,7 +2505,6 @@ type types_gen$1_CfgTotpVerifyCreateErrors = CfgTotpVerifyCreateErrors;
|
|
|
2467
2505
|
type types_gen$1_CfgTotpVerifyCreateResponse = CfgTotpVerifyCreateResponse;
|
|
2468
2506
|
type types_gen$1_CfgTotpVerifyCreateResponses = CfgTotpVerifyCreateResponses;
|
|
2469
2507
|
type types_gen$1_CfgUserUpdateRequest = CfgUserUpdateRequest;
|
|
2470
|
-
type types_gen$1_ClientOptions = ClientOptions;
|
|
2471
2508
|
type types_gen$1_ConfirmSetupRequest = ConfirmSetupRequest;
|
|
2472
2509
|
type types_gen$1_ConfirmSetupResponse = ConfirmSetupResponse;
|
|
2473
2510
|
type types_gen$1_ConnectionTokenResponse = ConnectionTokenResponse;
|
|
@@ -2508,7 +2545,7 @@ type types_gen$1_VerifyRequest = VerifyRequest;
|
|
|
2508
2545
|
type types_gen$1_VerifyResponse = VerifyResponse;
|
|
2509
2546
|
type types_gen$1_VerifyResponseWritable = VerifyResponseWritable;
|
|
2510
2547
|
declare namespace types_gen$1 {
|
|
2511
|
-
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 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_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 };
|
|
2548
|
+
export { type types_gen$1_AccountDeleteResponse as AccountDeleteResponse, type types_gen$1_BackupCodesRegenerateRequest as BackupCodesRegenerateRequest, type types_gen$1_BackupCodesRegenerateResponse as BackupCodesRegenerateResponse, type types_gen$1_BackupCodesStatus as BackupCodesStatus, type types_gen$1_CentrifugoToken as CentrifugoToken, type types_gen$1_CfgAccountsOauthConnectionsListData as CfgAccountsOauthConnectionsListData, type types_gen$1_CfgAccountsOauthConnectionsListResponse as CfgAccountsOauthConnectionsListResponse, type types_gen$1_CfgAccountsOauthConnectionsListResponses as CfgAccountsOauthConnectionsListResponses, type types_gen$1_CfgAccountsOauthDisconnectCreateData as CfgAccountsOauthDisconnectCreateData, type types_gen$1_CfgAccountsOauthDisconnectCreateError as CfgAccountsOauthDisconnectCreateError, type types_gen$1_CfgAccountsOauthDisconnectCreateErrors as CfgAccountsOauthDisconnectCreateErrors, type types_gen$1_CfgAccountsOauthDisconnectCreateResponse as CfgAccountsOauthDisconnectCreateResponse, type types_gen$1_CfgAccountsOauthDisconnectCreateResponses as CfgAccountsOauthDisconnectCreateResponses, type types_gen$1_CfgAccountsOauthGithubAuthorizeCreateData as CfgAccountsOauthGithubAuthorizeCreateData, type types_gen$1_CfgAccountsOauthGithubAuthorizeCreateError as CfgAccountsOauthGithubAuthorizeCreateError, type types_gen$1_CfgAccountsOauthGithubAuthorizeCreateErrors as CfgAccountsOauthGithubAuthorizeCreateErrors, type types_gen$1_CfgAccountsOauthGithubAuthorizeCreateResponse as CfgAccountsOauthGithubAuthorizeCreateResponse, type types_gen$1_CfgAccountsOauthGithubAuthorizeCreateResponses as CfgAccountsOauthGithubAuthorizeCreateResponses, type types_gen$1_CfgAccountsOauthGithubCallbackCreateData as CfgAccountsOauthGithubCallbackCreateData, type types_gen$1_CfgAccountsOauthGithubCallbackCreateError as CfgAccountsOauthGithubCallbackCreateError, type types_gen$1_CfgAccountsOauthGithubCallbackCreateErrors as CfgAccountsOauthGithubCallbackCreateErrors, type types_gen$1_CfgAccountsOauthGithubCallbackCreateResponse as CfgAccountsOauthGithubCallbackCreateResponse, type types_gen$1_CfgAccountsOauthGithubCallbackCreateResponses as CfgAccountsOauthGithubCallbackCreateResponses, type types_gen$1_CfgAccountsOauthProvidersRetrieveData as CfgAccountsOauthProvidersRetrieveData, type types_gen$1_CfgAccountsOauthProvidersRetrieveResponse as CfgAccountsOauthProvidersRetrieveResponse, type types_gen$1_CfgAccountsOauthProvidersRetrieveResponses as CfgAccountsOauthProvidersRetrieveResponses, type types_gen$1_CfgAccountsOtpRequestCreateData as CfgAccountsOtpRequestCreateData, type types_gen$1_CfgAccountsOtpRequestCreateError as CfgAccountsOtpRequestCreateError, type types_gen$1_CfgAccountsOtpRequestCreateErrors as CfgAccountsOtpRequestCreateErrors, type types_gen$1_CfgAccountsOtpRequestCreateResponse as CfgAccountsOtpRequestCreateResponse, type types_gen$1_CfgAccountsOtpRequestCreateResponses as CfgAccountsOtpRequestCreateResponses, type types_gen$1_CfgAccountsOtpVerifyCreateData as CfgAccountsOtpVerifyCreateData, type types_gen$1_CfgAccountsOtpVerifyCreateError as CfgAccountsOtpVerifyCreateError, type types_gen$1_CfgAccountsOtpVerifyCreateErrors as CfgAccountsOtpVerifyCreateErrors, type types_gen$1_CfgAccountsOtpVerifyCreateResponse as CfgAccountsOtpVerifyCreateResponse, type types_gen$1_CfgAccountsOtpVerifyCreateResponses as CfgAccountsOtpVerifyCreateResponses, type types_gen$1_CfgAccountsProfileAvatarCreateData as CfgAccountsProfileAvatarCreateData, type types_gen$1_CfgAccountsProfileAvatarCreateErrors as CfgAccountsProfileAvatarCreateErrors, type types_gen$1_CfgAccountsProfileAvatarCreateResponse as CfgAccountsProfileAvatarCreateResponse, type types_gen$1_CfgAccountsProfileAvatarCreateResponses as CfgAccountsProfileAvatarCreateResponses, type types_gen$1_CfgAccountsProfileDeleteCreateData as CfgAccountsProfileDeleteCreateData, type types_gen$1_CfgAccountsProfileDeleteCreateErrors as CfgAccountsProfileDeleteCreateErrors, type types_gen$1_CfgAccountsProfileDeleteCreateResponse as CfgAccountsProfileDeleteCreateResponse, type types_gen$1_CfgAccountsProfileDeleteCreateResponses as CfgAccountsProfileDeleteCreateResponses, type types_gen$1_CfgAccountsProfilePartialPartialUpdateData as CfgAccountsProfilePartialPartialUpdateData, type types_gen$1_CfgAccountsProfilePartialPartialUpdateErrors as CfgAccountsProfilePartialPartialUpdateErrors, type types_gen$1_CfgAccountsProfilePartialPartialUpdateResponse as CfgAccountsProfilePartialPartialUpdateResponse, type types_gen$1_CfgAccountsProfilePartialPartialUpdateResponses as CfgAccountsProfilePartialPartialUpdateResponses, type types_gen$1_CfgAccountsProfilePartialUpdateData as CfgAccountsProfilePartialUpdateData, type types_gen$1_CfgAccountsProfilePartialUpdateErrors as CfgAccountsProfilePartialUpdateErrors, type types_gen$1_CfgAccountsProfilePartialUpdateResponse as CfgAccountsProfilePartialUpdateResponse, type types_gen$1_CfgAccountsProfilePartialUpdateResponses as CfgAccountsProfilePartialUpdateResponses, type types_gen$1_CfgAccountsProfileRetrieveData as CfgAccountsProfileRetrieveData, type types_gen$1_CfgAccountsProfileRetrieveErrors as CfgAccountsProfileRetrieveErrors, type types_gen$1_CfgAccountsProfileRetrieveResponse as CfgAccountsProfileRetrieveResponse, type types_gen$1_CfgAccountsProfileRetrieveResponses as CfgAccountsProfileRetrieveResponses, type types_gen$1_CfgAccountsProfileUpdatePartialUpdateData as CfgAccountsProfileUpdatePartialUpdateData, type types_gen$1_CfgAccountsProfileUpdatePartialUpdateErrors as CfgAccountsProfileUpdatePartialUpdateErrors, type types_gen$1_CfgAccountsProfileUpdatePartialUpdateResponse as CfgAccountsProfileUpdatePartialUpdateResponse, type types_gen$1_CfgAccountsProfileUpdatePartialUpdateResponses as CfgAccountsProfileUpdatePartialUpdateResponses, type types_gen$1_CfgAccountsProfileUpdateUpdateData as CfgAccountsProfileUpdateUpdateData, type types_gen$1_CfgAccountsProfileUpdateUpdateErrors as CfgAccountsProfileUpdateUpdateErrors, type types_gen$1_CfgAccountsProfileUpdateUpdateResponse as CfgAccountsProfileUpdateUpdateResponse, type types_gen$1_CfgAccountsProfileUpdateUpdateResponses as CfgAccountsProfileUpdateUpdateResponses, type types_gen$1_CfgAccountsTokenRefreshCreateData as CfgAccountsTokenRefreshCreateData, type types_gen$1_CfgAccountsTokenRefreshCreateResponse as CfgAccountsTokenRefreshCreateResponse, type types_gen$1_CfgAccountsTokenRefreshCreateResponses as CfgAccountsTokenRefreshCreateResponses, type types_gen$1_CfgCentrifugoAuthTokenRetrieveData as CfgCentrifugoAuthTokenRetrieveData, type types_gen$1_CfgCentrifugoAuthTokenRetrieveErrors as CfgCentrifugoAuthTokenRetrieveErrors, type types_gen$1_CfgCentrifugoAuthTokenRetrieveResponse as CfgCentrifugoAuthTokenRetrieveResponse, type types_gen$1_CfgCentrifugoAuthTokenRetrieveResponses as CfgCentrifugoAuthTokenRetrieveResponses, type types_gen$1_CfgTotpBackupCodesRegenerateCreateData as CfgTotpBackupCodesRegenerateCreateData, type types_gen$1_CfgTotpBackupCodesRegenerateCreateErrors as CfgTotpBackupCodesRegenerateCreateErrors, type types_gen$1_CfgTotpBackupCodesRegenerateCreateResponse as CfgTotpBackupCodesRegenerateCreateResponse, type types_gen$1_CfgTotpBackupCodesRegenerateCreateResponses as CfgTotpBackupCodesRegenerateCreateResponses, type types_gen$1_CfgTotpBackupCodesRetrieveData as CfgTotpBackupCodesRetrieveData, type types_gen$1_CfgTotpBackupCodesRetrieveResponse as CfgTotpBackupCodesRetrieveResponse, type types_gen$1_CfgTotpBackupCodesRetrieveResponses as CfgTotpBackupCodesRetrieveResponses, type types_gen$1_CfgTotpDevicesDestroyData as CfgTotpDevicesDestroyData, type types_gen$1_CfgTotpDevicesDestroyResponse as CfgTotpDevicesDestroyResponse, type types_gen$1_CfgTotpDevicesDestroyResponses as CfgTotpDevicesDestroyResponses, type types_gen$1_CfgTotpDevicesRetrieveData as CfgTotpDevicesRetrieveData, type types_gen$1_CfgTotpDevicesRetrieveResponse as CfgTotpDevicesRetrieveResponse, type types_gen$1_CfgTotpDevicesRetrieveResponses as CfgTotpDevicesRetrieveResponses, type types_gen$1_CfgTotpDisableCreateData as CfgTotpDisableCreateData, type types_gen$1_CfgTotpDisableCreateErrors as CfgTotpDisableCreateErrors, type types_gen$1_CfgTotpDisableCreateResponses as CfgTotpDisableCreateResponses, type types_gen$1_CfgTotpSetupConfirmCreateData as CfgTotpSetupConfirmCreateData, type types_gen$1_CfgTotpSetupConfirmCreateErrors as CfgTotpSetupConfirmCreateErrors, type types_gen$1_CfgTotpSetupConfirmCreateResponse as CfgTotpSetupConfirmCreateResponse, type types_gen$1_CfgTotpSetupConfirmCreateResponses as CfgTotpSetupConfirmCreateResponses, type types_gen$1_CfgTotpSetupCreateData as CfgTotpSetupCreateData, type types_gen$1_CfgTotpSetupCreateErrors as CfgTotpSetupCreateErrors, type types_gen$1_CfgTotpSetupCreateResponse as CfgTotpSetupCreateResponse, type types_gen$1_CfgTotpSetupCreateResponses as CfgTotpSetupCreateResponses, type types_gen$1_CfgTotpVerifyBackupCreateData as CfgTotpVerifyBackupCreateData, type types_gen$1_CfgTotpVerifyBackupCreateErrors as CfgTotpVerifyBackupCreateErrors, type types_gen$1_CfgTotpVerifyBackupCreateResponse as CfgTotpVerifyBackupCreateResponse, type types_gen$1_CfgTotpVerifyBackupCreateResponses as CfgTotpVerifyBackupCreateResponses, type types_gen$1_CfgTotpVerifyCreateData as CfgTotpVerifyCreateData, type types_gen$1_CfgTotpVerifyCreateErrors as CfgTotpVerifyCreateErrors, type types_gen$1_CfgTotpVerifyCreateResponse as CfgTotpVerifyCreateResponse, type types_gen$1_CfgTotpVerifyCreateResponses as CfgTotpVerifyCreateResponses, type types_gen$1_CfgUserUpdateRequest as CfgUserUpdateRequest, type ClientOptions$1 as ClientOptions, type types_gen$1_ConfirmSetupRequest as ConfirmSetupRequest, type types_gen$1_ConfirmSetupResponse as ConfirmSetupResponse, type types_gen$1_ConnectionTokenResponse as ConnectionTokenResponse, type types_gen$1_DeviceList as DeviceList, type types_gen$1_DeviceListResponse as DeviceListResponse, type types_gen$1_DeviceListResponseWritable as DeviceListResponseWritable, types_gen$1_DeviceListStatusEnum as DeviceListStatusEnum, type types_gen$1_DisableRequest as DisableRequest, type types_gen$1_OAuthAuthorizeRequestRequest as OAuthAuthorizeRequestRequest, type types_gen$1_OAuthAuthorizeResponse as OAuthAuthorizeResponse, type types_gen$1_OAuthCallbackRequestRequest as OAuthCallbackRequestRequest, type types_gen$1_OAuthConnection as OAuthConnection, type types_gen$1_OAuthDisconnectRequestRequest as OAuthDisconnectRequestRequest, type types_gen$1_OAuthError as OAuthError, type types_gen$1_OAuthProvidersResponse as OAuthProvidersResponse, type types_gen$1_OAuthTokenResponse as OAuthTokenResponse, type types_gen$1_OtpErrorResponse as OtpErrorResponse, type types_gen$1_OtpRequestRequest as OtpRequestRequest, type types_gen$1_OtpRequestResponse as OtpRequestResponse, type types_gen$1_OtpVerifyRequest as OtpVerifyRequest, type types_gen$1_OtpVerifyResponse as OtpVerifyResponse, type types_gen$1_OtpVerifyResponseWritable as OtpVerifyResponseWritable, type types_gen$1_PatchedCfgUserUpdateRequest as PatchedCfgUserUpdateRequest, types_gen$1_ProviderEnum as ProviderEnum, type types_gen$1_SetupRequest as SetupRequest, type types_gen$1_SetupResponse as SetupResponse, type types_gen$1_TokenRefresh as TokenRefresh, type types_gen$1_TokenRefreshRequest as TokenRefreshRequest, type types_gen$1_TokenRefreshWritable as TokenRefreshWritable, type types_gen$1_TotpVerifyUser as TotpVerifyUser, type types_gen$1_TotpVerifyUserWritable as TotpVerifyUserWritable, type types_gen$1_User as User, type types_gen$1_UserWritable as UserWritable, type types_gen$1_VerifyBackupRequest as VerifyBackupRequest, type types_gen$1_VerifyRequest as VerifyRequest, type types_gen$1_VerifyResponse as VerifyResponse, type types_gen$1_VerifyResponseWritable as VerifyResponseWritable };
|
|
2512
2549
|
}
|
|
2513
2550
|
|
|
2514
2551
|
type types_gen_AccountDeleteResponse = AccountDeleteResponse;
|
|
@@ -2615,7 +2652,6 @@ type types_gen_CfgTotpVerifyCreateErrors = CfgTotpVerifyCreateErrors;
|
|
|
2615
2652
|
type types_gen_CfgTotpVerifyCreateResponse = CfgTotpVerifyCreateResponse;
|
|
2616
2653
|
type types_gen_CfgTotpVerifyCreateResponses = CfgTotpVerifyCreateResponses;
|
|
2617
2654
|
type types_gen_CfgUserUpdateRequest = CfgUserUpdateRequest;
|
|
2618
|
-
type types_gen_ClientOptions = ClientOptions;
|
|
2619
2655
|
type types_gen_ConfirmSetupRequest = ConfirmSetupRequest;
|
|
2620
2656
|
type types_gen_ConfirmSetupResponse = ConfirmSetupResponse;
|
|
2621
2657
|
type types_gen_ConnectionTokenResponse = ConnectionTokenResponse;
|
|
@@ -2656,7 +2692,7 @@ type types_gen_VerifyRequest = VerifyRequest;
|
|
|
2656
2692
|
type types_gen_VerifyResponse = VerifyResponse;
|
|
2657
2693
|
type types_gen_VerifyResponseWritable = VerifyResponseWritable;
|
|
2658
2694
|
declare namespace types_gen {
|
|
2659
|
-
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 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_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 };
|
|
2695
|
+
export { type types_gen_AccountDeleteResponse as AccountDeleteResponse, type types_gen_BackupCodesRegenerateRequest as BackupCodesRegenerateRequest, type types_gen_BackupCodesRegenerateResponse as BackupCodesRegenerateResponse, type types_gen_BackupCodesStatus as BackupCodesStatus, type types_gen_CentrifugoToken as CentrifugoToken, type types_gen_CfgAccountsOauthConnectionsListData as CfgAccountsOauthConnectionsListData, type types_gen_CfgAccountsOauthConnectionsListResponse as CfgAccountsOauthConnectionsListResponse, type types_gen_CfgAccountsOauthConnectionsListResponses as CfgAccountsOauthConnectionsListResponses, type types_gen_CfgAccountsOauthDisconnectCreateData as CfgAccountsOauthDisconnectCreateData, type types_gen_CfgAccountsOauthDisconnectCreateError as CfgAccountsOauthDisconnectCreateError, type types_gen_CfgAccountsOauthDisconnectCreateErrors as CfgAccountsOauthDisconnectCreateErrors, type types_gen_CfgAccountsOauthDisconnectCreateResponse as CfgAccountsOauthDisconnectCreateResponse, type types_gen_CfgAccountsOauthDisconnectCreateResponses as CfgAccountsOauthDisconnectCreateResponses, type types_gen_CfgAccountsOauthGithubAuthorizeCreateData as CfgAccountsOauthGithubAuthorizeCreateData, type types_gen_CfgAccountsOauthGithubAuthorizeCreateError as CfgAccountsOauthGithubAuthorizeCreateError, type types_gen_CfgAccountsOauthGithubAuthorizeCreateErrors as CfgAccountsOauthGithubAuthorizeCreateErrors, type types_gen_CfgAccountsOauthGithubAuthorizeCreateResponse as CfgAccountsOauthGithubAuthorizeCreateResponse, type types_gen_CfgAccountsOauthGithubAuthorizeCreateResponses as CfgAccountsOauthGithubAuthorizeCreateResponses, type types_gen_CfgAccountsOauthGithubCallbackCreateData as CfgAccountsOauthGithubCallbackCreateData, type types_gen_CfgAccountsOauthGithubCallbackCreateError as CfgAccountsOauthGithubCallbackCreateError, type types_gen_CfgAccountsOauthGithubCallbackCreateErrors as CfgAccountsOauthGithubCallbackCreateErrors, type types_gen_CfgAccountsOauthGithubCallbackCreateResponse as CfgAccountsOauthGithubCallbackCreateResponse, type types_gen_CfgAccountsOauthGithubCallbackCreateResponses as CfgAccountsOauthGithubCallbackCreateResponses, type types_gen_CfgAccountsOauthProvidersRetrieveData as CfgAccountsOauthProvidersRetrieveData, type types_gen_CfgAccountsOauthProvidersRetrieveResponse as CfgAccountsOauthProvidersRetrieveResponse, type types_gen_CfgAccountsOauthProvidersRetrieveResponses as CfgAccountsOauthProvidersRetrieveResponses, type types_gen_CfgAccountsOtpRequestCreateData as CfgAccountsOtpRequestCreateData, type types_gen_CfgAccountsOtpRequestCreateError as CfgAccountsOtpRequestCreateError, type types_gen_CfgAccountsOtpRequestCreateErrors as CfgAccountsOtpRequestCreateErrors, type types_gen_CfgAccountsOtpRequestCreateResponse as CfgAccountsOtpRequestCreateResponse, type types_gen_CfgAccountsOtpRequestCreateResponses as CfgAccountsOtpRequestCreateResponses, type types_gen_CfgAccountsOtpVerifyCreateData as CfgAccountsOtpVerifyCreateData, type types_gen_CfgAccountsOtpVerifyCreateError as CfgAccountsOtpVerifyCreateError, type types_gen_CfgAccountsOtpVerifyCreateErrors as CfgAccountsOtpVerifyCreateErrors, type types_gen_CfgAccountsOtpVerifyCreateResponse as CfgAccountsOtpVerifyCreateResponse, type types_gen_CfgAccountsOtpVerifyCreateResponses as CfgAccountsOtpVerifyCreateResponses, type types_gen_CfgAccountsProfileAvatarCreateData as CfgAccountsProfileAvatarCreateData, type types_gen_CfgAccountsProfileAvatarCreateErrors as CfgAccountsProfileAvatarCreateErrors, type types_gen_CfgAccountsProfileAvatarCreateResponse as CfgAccountsProfileAvatarCreateResponse, type types_gen_CfgAccountsProfileAvatarCreateResponses as CfgAccountsProfileAvatarCreateResponses, type types_gen_CfgAccountsProfileDeleteCreateData as CfgAccountsProfileDeleteCreateData, type types_gen_CfgAccountsProfileDeleteCreateErrors as CfgAccountsProfileDeleteCreateErrors, type types_gen_CfgAccountsProfileDeleteCreateResponse as CfgAccountsProfileDeleteCreateResponse, type types_gen_CfgAccountsProfileDeleteCreateResponses as CfgAccountsProfileDeleteCreateResponses, type types_gen_CfgAccountsProfilePartialPartialUpdateData as CfgAccountsProfilePartialPartialUpdateData, type types_gen_CfgAccountsProfilePartialPartialUpdateErrors as CfgAccountsProfilePartialPartialUpdateErrors, type types_gen_CfgAccountsProfilePartialPartialUpdateResponse as CfgAccountsProfilePartialPartialUpdateResponse, type types_gen_CfgAccountsProfilePartialPartialUpdateResponses as CfgAccountsProfilePartialPartialUpdateResponses, type types_gen_CfgAccountsProfilePartialUpdateData as CfgAccountsProfilePartialUpdateData, type types_gen_CfgAccountsProfilePartialUpdateErrors as CfgAccountsProfilePartialUpdateErrors, type types_gen_CfgAccountsProfilePartialUpdateResponse as CfgAccountsProfilePartialUpdateResponse, type types_gen_CfgAccountsProfilePartialUpdateResponses as CfgAccountsProfilePartialUpdateResponses, type types_gen_CfgAccountsProfileRetrieveData as CfgAccountsProfileRetrieveData, type types_gen_CfgAccountsProfileRetrieveErrors as CfgAccountsProfileRetrieveErrors, type types_gen_CfgAccountsProfileRetrieveResponse as CfgAccountsProfileRetrieveResponse, type types_gen_CfgAccountsProfileRetrieveResponses as CfgAccountsProfileRetrieveResponses, type types_gen_CfgAccountsProfileUpdatePartialUpdateData as CfgAccountsProfileUpdatePartialUpdateData, type types_gen_CfgAccountsProfileUpdatePartialUpdateErrors as CfgAccountsProfileUpdatePartialUpdateErrors, type types_gen_CfgAccountsProfileUpdatePartialUpdateResponse as CfgAccountsProfileUpdatePartialUpdateResponse, type types_gen_CfgAccountsProfileUpdatePartialUpdateResponses as CfgAccountsProfileUpdatePartialUpdateResponses, type types_gen_CfgAccountsProfileUpdateUpdateData as CfgAccountsProfileUpdateUpdateData, type types_gen_CfgAccountsProfileUpdateUpdateErrors as CfgAccountsProfileUpdateUpdateErrors, type types_gen_CfgAccountsProfileUpdateUpdateResponse as CfgAccountsProfileUpdateUpdateResponse, type types_gen_CfgAccountsProfileUpdateUpdateResponses as CfgAccountsProfileUpdateUpdateResponses, type types_gen_CfgAccountsTokenRefreshCreateData as CfgAccountsTokenRefreshCreateData, type types_gen_CfgAccountsTokenRefreshCreateResponse as CfgAccountsTokenRefreshCreateResponse, type types_gen_CfgAccountsTokenRefreshCreateResponses as CfgAccountsTokenRefreshCreateResponses, type types_gen_CfgCentrifugoAuthTokenRetrieveData as CfgCentrifugoAuthTokenRetrieveData, type types_gen_CfgCentrifugoAuthTokenRetrieveErrors as CfgCentrifugoAuthTokenRetrieveErrors, type types_gen_CfgCentrifugoAuthTokenRetrieveResponse as CfgCentrifugoAuthTokenRetrieveResponse, type types_gen_CfgCentrifugoAuthTokenRetrieveResponses as CfgCentrifugoAuthTokenRetrieveResponses, type types_gen_CfgTotpBackupCodesRegenerateCreateData as CfgTotpBackupCodesRegenerateCreateData, type types_gen_CfgTotpBackupCodesRegenerateCreateErrors as CfgTotpBackupCodesRegenerateCreateErrors, type types_gen_CfgTotpBackupCodesRegenerateCreateResponse as CfgTotpBackupCodesRegenerateCreateResponse, type types_gen_CfgTotpBackupCodesRegenerateCreateResponses as CfgTotpBackupCodesRegenerateCreateResponses, type types_gen_CfgTotpBackupCodesRetrieveData as CfgTotpBackupCodesRetrieveData, type types_gen_CfgTotpBackupCodesRetrieveResponse as CfgTotpBackupCodesRetrieveResponse, type types_gen_CfgTotpBackupCodesRetrieveResponses as CfgTotpBackupCodesRetrieveResponses, type types_gen_CfgTotpDevicesDestroyData as CfgTotpDevicesDestroyData, type types_gen_CfgTotpDevicesDestroyResponse as CfgTotpDevicesDestroyResponse, type types_gen_CfgTotpDevicesDestroyResponses as CfgTotpDevicesDestroyResponses, type types_gen_CfgTotpDevicesRetrieveData as CfgTotpDevicesRetrieveData, type types_gen_CfgTotpDevicesRetrieveResponse as CfgTotpDevicesRetrieveResponse, type types_gen_CfgTotpDevicesRetrieveResponses as CfgTotpDevicesRetrieveResponses, type types_gen_CfgTotpDisableCreateData as CfgTotpDisableCreateData, type types_gen_CfgTotpDisableCreateErrors as CfgTotpDisableCreateErrors, type types_gen_CfgTotpDisableCreateResponses as CfgTotpDisableCreateResponses, type types_gen_CfgTotpSetupConfirmCreateData as CfgTotpSetupConfirmCreateData, type types_gen_CfgTotpSetupConfirmCreateErrors as CfgTotpSetupConfirmCreateErrors, type types_gen_CfgTotpSetupConfirmCreateResponse as CfgTotpSetupConfirmCreateResponse, type types_gen_CfgTotpSetupConfirmCreateResponses as CfgTotpSetupConfirmCreateResponses, type types_gen_CfgTotpSetupCreateData as CfgTotpSetupCreateData, type types_gen_CfgTotpSetupCreateErrors as CfgTotpSetupCreateErrors, type types_gen_CfgTotpSetupCreateResponse as CfgTotpSetupCreateResponse, type types_gen_CfgTotpSetupCreateResponses as CfgTotpSetupCreateResponses, type types_gen_CfgTotpVerifyBackupCreateData as CfgTotpVerifyBackupCreateData, type types_gen_CfgTotpVerifyBackupCreateErrors as CfgTotpVerifyBackupCreateErrors, type types_gen_CfgTotpVerifyBackupCreateResponse as CfgTotpVerifyBackupCreateResponse, type types_gen_CfgTotpVerifyBackupCreateResponses as CfgTotpVerifyBackupCreateResponses, type types_gen_CfgTotpVerifyCreateData as CfgTotpVerifyCreateData, type types_gen_CfgTotpVerifyCreateErrors as CfgTotpVerifyCreateErrors, type types_gen_CfgTotpVerifyCreateResponse as CfgTotpVerifyCreateResponse, type types_gen_CfgTotpVerifyCreateResponses as CfgTotpVerifyCreateResponses, type types_gen_CfgUserUpdateRequest as CfgUserUpdateRequest, type ClientOptions$1 as ClientOptions, type types_gen_ConfirmSetupRequest as ConfirmSetupRequest, type types_gen_ConfirmSetupResponse as ConfirmSetupResponse, type types_gen_ConnectionTokenResponse as ConnectionTokenResponse, type types_gen_DeviceList as DeviceList, type types_gen_DeviceListResponse as DeviceListResponse, type types_gen_DeviceListResponseWritable as DeviceListResponseWritable, types_gen_DeviceListStatusEnum as DeviceListStatusEnum, type types_gen_DisableRequest as DisableRequest, type types_gen_OAuthAuthorizeRequestRequest as OAuthAuthorizeRequestRequest, type types_gen_OAuthAuthorizeResponse as OAuthAuthorizeResponse, type types_gen_OAuthCallbackRequestRequest as OAuthCallbackRequestRequest, type types_gen_OAuthConnection as OAuthConnection, type types_gen_OAuthDisconnectRequestRequest as OAuthDisconnectRequestRequest, type types_gen_OAuthError as OAuthError, type types_gen_OAuthProvidersResponse as OAuthProvidersResponse, type types_gen_OAuthTokenResponse as OAuthTokenResponse, type types_gen_OtpErrorResponse as OtpErrorResponse, type types_gen_OtpRequestRequest as OtpRequestRequest, type types_gen_OtpRequestResponse as OtpRequestResponse, type types_gen_OtpVerifyRequest as OtpVerifyRequest, type types_gen_OtpVerifyResponse as OtpVerifyResponse, type types_gen_OtpVerifyResponseWritable as OtpVerifyResponseWritable, type types_gen_PatchedCfgUserUpdateRequest as PatchedCfgUserUpdateRequest, types_gen_ProviderEnum as ProviderEnum, type types_gen_SetupRequest as SetupRequest, type types_gen_SetupResponse as SetupResponse, type types_gen_TokenRefresh as TokenRefresh, type types_gen_TokenRefreshRequest as TokenRefreshRequest, type types_gen_TokenRefreshWritable as TokenRefreshWritable, type types_gen_TotpVerifyUser as TotpVerifyUser, type types_gen_TotpVerifyUserWritable as TotpVerifyUserWritable, type types_gen_User as User, type types_gen_UserWritable as UserWritable, type types_gen_VerifyBackupRequest as VerifyBackupRequest, type types_gen_VerifyRequest as VerifyRequest, type types_gen_VerifyResponse as VerifyResponse, type types_gen_VerifyResponseWritable as VerifyResponseWritable };
|
|
2660
2696
|
}
|
|
2661
2697
|
|
|
2662
|
-
export { APIError, APILogger, Accounts, types_gen$2 as AccountsTypes, Auth, BackupCodes, Centrifugo, CentrifugoAuth, types_gen as CentrifugoTypes, Cfg, API$2 as CfgAccountsAPI, CfgAccountsApi, API$1 as CfgCentrifugoAPI, CfgCentrifugoApi, API as CfgTotpAPI, CfgTotpApi, CookieStorageAdapter, type ErrorLog, LocalStorageAdapter, type LoggerConfig, MemoryStorageAdapter, NetworkError, OAuth, type RequestLog, type ResponseLog, type StorageAdapter, Totp, TotpManagement, TotpSetup, types_gen$1 as TotpTypes, TotpVerification, type User, UserProfile, type ValidationErrorDetail, type ValidationErrorEvent, CfgAccountsApi as api, defaultLogger, dispatchValidationError, formatZodError, onValidationError };
|
|
2698
|
+
export { APIError, APILogger, Accounts, types_gen$2 as AccountsTypes, Auth, BackupCodes, Centrifugo, CentrifugoAuth, types_gen as CentrifugoTypes, Cfg, API$2 as CfgAccountsAPI, CfgAccountsApi, API$1 as CfgCentrifugoAPI, CfgCentrifugoApi, API as CfgTotpAPI, CfgTotpApi, CookieStorageAdapter, type ErrorLog, LocalStorageAdapter, type LoggerConfig, MemoryStorageAdapter, NetworkError, OAuth, type RequestLog, type ResponseLog, type StorageAdapter, Totp, TotpManagement, TotpSetup, types_gen$1 as TotpTypes, TotpVerification, type User, UserProfile, type ValidationErrorDetail, type ValidationErrorEvent, CfgAccountsApi as api, auth, defaultLogger, dispatchValidationError, formatZodError, onValidationError };
|