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