@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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@djangocfg/api",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.331",
|
|
4
4
|
"description": "Auto-generated TypeScript API client with React hooks, SWR integration, and Zod validation for Django REST Framework backends",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"django",
|
|
@@ -79,7 +79,7 @@
|
|
|
79
79
|
"devDependencies": {
|
|
80
80
|
"@types/node": "^24.7.2",
|
|
81
81
|
"@types/react": "^19.1.0",
|
|
82
|
-
"@djangocfg/typescript-config": "^2.1.
|
|
82
|
+
"@djangocfg/typescript-config": "^2.1.331",
|
|
83
83
|
"next": "^16.2.2",
|
|
84
84
|
"react": "^19.1.0",
|
|
85
85
|
"tsup": "^8.5.0",
|
|
@@ -1,32 +1,18 @@
|
|
|
1
1
|
// AUTO-GENERATED by django_generator / ts_extras.wrapper
|
|
2
2
|
// Self-contained API wrapper for this group. DO NOT EDIT — re-run `make gen`.
|
|
3
3
|
|
|
4
|
-
import { client } from '
|
|
5
|
-
import type { StorageAdapter } from '../
|
|
6
|
-
import { LocalStorageAdapter } from '../
|
|
7
|
-
import { APILogger, type LoggerConfig } from '../
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
import { CentrifugoAuth } from './sdk.gen';
|
|
12
|
-
import type { ZodTypeAny } from 'zod';
|
|
13
|
-
import {
|
|
14
|
-
ConnectionTokenResponseSchema,
|
|
15
|
-
} from './schemas';
|
|
16
|
-
import { dispatchValidationError } from '../_shared/validation-events';
|
|
4
|
+
import { client } from '../client.gen';
|
|
5
|
+
import type { StorageAdapter } from '../helpers/storage';
|
|
6
|
+
import { LocalStorageAdapter } from '../helpers/storage';
|
|
7
|
+
import { APILogger, type LoggerConfig } from '../helpers/logger';
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
17
11
|
|
|
18
12
|
const ACCESS_KEY = 'cfg.access_token';
|
|
19
13
|
const REFRESH_KEY = 'cfg.refresh_token';
|
|
20
14
|
|
|
21
|
-
|
|
22
|
-
method: string;
|
|
23
|
-
re: RegExp;
|
|
24
|
-
schema: ZodTypeAny;
|
|
25
|
-
path: string;
|
|
26
|
-
}
|
|
27
|
-
const VALIDATION_ROUTES: ReadonlyArray<ValidationRoute> = [
|
|
28
|
-
{ method: 'GET', re: new RegExp('^/cfg/centrifugo/auth/token/?$'), schema: ConnectionTokenResponseSchema, path: '/cfg/centrifugo/auth/token/' }
|
|
29
|
-
];
|
|
15
|
+
|
|
30
16
|
|
|
31
17
|
/** Auto-detect locale from cookie NEXT_LOCALE or navigator.language. */
|
|
32
18
|
function detectLocale(): string | null {
|
|
@@ -72,9 +58,7 @@ export class API {
|
|
|
72
58
|
private apiKey: string | null;
|
|
73
59
|
readonly logger: APILogger;
|
|
74
60
|
|
|
75
|
-
|
|
76
|
-
readonly centrifugo = Centrifugo;
|
|
77
|
-
readonly centrifugoAuth = CentrifugoAuth;
|
|
61
|
+
|
|
78
62
|
|
|
79
63
|
constructor(baseUrl: string, opts: APIOptions = {}) {
|
|
80
64
|
this.baseUrl = baseUrl.replace(/\/$/, '');
|
|
@@ -98,35 +82,7 @@ export class API {
|
|
|
98
82
|
return request;
|
|
99
83
|
});
|
|
100
84
|
|
|
101
|
-
|
|
102
|
-
if (!response.ok) return response;
|
|
103
|
-
const ct = response.headers.get('content-type') || '';
|
|
104
|
-
if (!ct.includes('application/json')) return response;
|
|
105
|
-
const url = new URL(request.url);
|
|
106
|
-
const method = request.method.toUpperCase();
|
|
107
|
-
const route = VALIDATION_ROUTES.find(
|
|
108
|
-
(r) => r.method === method && r.re.test(url.pathname),
|
|
109
|
-
);
|
|
110
|
-
if (!route) return response;
|
|
111
|
-
let payload: unknown;
|
|
112
|
-
try {
|
|
113
|
-
payload = await response.clone().json();
|
|
114
|
-
} catch {
|
|
115
|
-
return response;
|
|
116
|
-
}
|
|
117
|
-
const result = route.schema.safeParse(payload);
|
|
118
|
-
if (!result.success) {
|
|
119
|
-
dispatchValidationError({
|
|
120
|
-
operation: `${method} ${route.path}`,
|
|
121
|
-
path: route.path,
|
|
122
|
-
method,
|
|
123
|
-
error: result.error,
|
|
124
|
-
response: payload,
|
|
125
|
-
timestamp: new Date(),
|
|
126
|
-
});
|
|
127
|
-
}
|
|
128
|
-
return response;
|
|
129
|
-
});
|
|
85
|
+
|
|
130
86
|
}
|
|
131
87
|
|
|
132
88
|
// ── Base URL ────────────────────────────────────────────────────────────
|
|
@@ -160,5 +116,5 @@ export class API {
|
|
|
160
116
|
setApiKey(key: string | null): void { this.apiKey = key; }
|
|
161
117
|
}
|
|
162
118
|
|
|
163
|
-
export {
|
|
119
|
+
export { };
|
|
164
120
|
export { client };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
// AUTO-GENERATED by
|
|
1
|
+
// AUTO-GENERATED by cmdop_server / devtools.generator.ts_extras.events
|
|
2
2
|
// Hooks Hey API client interceptors → typed CustomEvents on `window`.
|
|
3
|
-
// DO NOT EDIT — re-run `make gen`.
|
|
3
|
+
// DO NOT EDIT — re-run `make gen-clients`.
|
|
4
4
|
//
|
|
5
5
|
// Usage:
|
|
6
6
|
// import "./generated/events" // side-effect: registers interceptors
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
// console.log(e.detail.status, e.detail.method, e.detail.url);
|
|
10
10
|
// });
|
|
11
11
|
|
|
12
|
-
import { client } from "
|
|
12
|
+
import { client } from "../client.gen";
|
|
13
13
|
|
|
14
14
|
// ─────────────────────────────────────────────────────────────────────────────
|
|
15
15
|
// Event names + detail types
|
|
@@ -1,20 +1,19 @@
|
|
|
1
|
-
// AUTO-GENERATED by
|
|
1
|
+
// AUTO-GENERATED by openapi_processor / ts.hooks
|
|
2
2
|
// List OAuth connections
|
|
3
3
|
// DO NOT EDIT — re-run `make gen`.
|
|
4
4
|
|
|
5
5
|
import useSWR from "swr";
|
|
6
6
|
import type { SWRConfiguration } from "swr";
|
|
7
|
-
import { Cfg } from "
|
|
8
|
-
import type { CfgAccountsOauthConnectionsListData, CfgAccountsOauthConnectionsListResponses } from "
|
|
7
|
+
import { Cfg } from "../../sdk.gen";
|
|
8
|
+
import type { CfgAccountsOauthConnectionsListData, CfgAccountsOauthConnectionsListResponses } from "../../types.gen";
|
|
9
9
|
|
|
10
|
-
type Args = Omit<CfgAccountsOauthConnectionsListData, "url"> | undefined;
|
|
11
10
|
type Result = CfgAccountsOauthConnectionsListResponses[keyof CfgAccountsOauthConnectionsListResponses];
|
|
12
11
|
|
|
13
12
|
export function useCfgAccountsOauthConnectionsList(
|
|
14
|
-
args
|
|
13
|
+
args?: Omit<CfgAccountsOauthConnectionsListData, "url" | "body">,
|
|
15
14
|
config?: SWRConfiguration<Result>,
|
|
16
15
|
) {
|
|
17
|
-
const key =
|
|
16
|
+
const key = ["cfg_accounts_oauth_connections_list", args ?? {}] as const;
|
|
18
17
|
return useSWR<Result>(
|
|
19
18
|
key,
|
|
20
19
|
async () => {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
// AUTO-GENERATED by
|
|
1
|
+
// AUTO-GENERATED by openapi_processor / ts.hooks
|
|
2
2
|
// Disconnect OAuth provider
|
|
3
3
|
// DO NOT EDIT — re-run `make gen`.
|
|
4
4
|
|
|
5
5
|
import useSWRMutation from "swr/mutation";
|
|
6
6
|
import type { SWRMutationConfiguration } from "swr/mutation";
|
|
7
|
-
import { Cfg } from "
|
|
8
|
-
import type { CfgAccountsOauthDisconnectCreateData, CfgAccountsOauthDisconnectCreateResponses } from "
|
|
7
|
+
import { Cfg } from "../../sdk.gen";
|
|
8
|
+
import type { CfgAccountsOauthDisconnectCreateData, CfgAccountsOauthDisconnectCreateResponses } from "../../types.gen";
|
|
9
9
|
|
|
10
10
|
type Args = Omit<CfgAccountsOauthDisconnectCreateData, "url">;
|
|
11
11
|
type Result = CfgAccountsOauthDisconnectCreateResponses[keyof CfgAccountsOauthDisconnectCreateResponses];
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
// AUTO-GENERATED by
|
|
1
|
+
// AUTO-GENERATED by openapi_processor / ts.hooks
|
|
2
2
|
// Start GitHub OAuth
|
|
3
3
|
// DO NOT EDIT — re-run `make gen`.
|
|
4
4
|
|
|
5
5
|
import useSWRMutation from "swr/mutation";
|
|
6
6
|
import type { SWRMutationConfiguration } from "swr/mutation";
|
|
7
|
-
import { Cfg } from "
|
|
8
|
-
import type { CfgAccountsOauthGithubAuthorizeCreateData, CfgAccountsOauthGithubAuthorizeCreateResponses } from "
|
|
7
|
+
import { Cfg } from "../../sdk.gen";
|
|
8
|
+
import type { CfgAccountsOauthGithubAuthorizeCreateData, CfgAccountsOauthGithubAuthorizeCreateResponses } from "../../types.gen";
|
|
9
9
|
|
|
10
10
|
type Args = Omit<CfgAccountsOauthGithubAuthorizeCreateData, "url">;
|
|
11
11
|
type Result = CfgAccountsOauthGithubAuthorizeCreateResponses[keyof CfgAccountsOauthGithubAuthorizeCreateResponses];
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
// AUTO-GENERATED by
|
|
1
|
+
// AUTO-GENERATED by openapi_processor / ts.hooks
|
|
2
2
|
// Complete GitHub OAuth
|
|
3
3
|
// DO NOT EDIT — re-run `make gen`.
|
|
4
4
|
|
|
5
5
|
import useSWRMutation from "swr/mutation";
|
|
6
6
|
import type { SWRMutationConfiguration } from "swr/mutation";
|
|
7
|
-
import { Cfg } from "
|
|
8
|
-
import type { CfgAccountsOauthGithubCallbackCreateData, CfgAccountsOauthGithubCallbackCreateResponses } from "
|
|
7
|
+
import { Cfg } from "../../sdk.gen";
|
|
8
|
+
import type { CfgAccountsOauthGithubCallbackCreateData, CfgAccountsOauthGithubCallbackCreateResponses } from "../../types.gen";
|
|
9
9
|
|
|
10
10
|
type Args = Omit<CfgAccountsOauthGithubCallbackCreateData, "url">;
|
|
11
11
|
type Result = CfgAccountsOauthGithubCallbackCreateResponses[keyof CfgAccountsOauthGithubCallbackCreateResponses];
|
|
@@ -1,20 +1,19 @@
|
|
|
1
|
-
// AUTO-GENERATED by
|
|
1
|
+
// AUTO-GENERATED by openapi_processor / ts.hooks
|
|
2
2
|
// List OAuth providers
|
|
3
3
|
// DO NOT EDIT — re-run `make gen`.
|
|
4
4
|
|
|
5
5
|
import useSWR from "swr";
|
|
6
6
|
import type { SWRConfiguration } from "swr";
|
|
7
|
-
import { Cfg } from "
|
|
8
|
-
import type { CfgAccountsOauthProvidersRetrieveData, CfgAccountsOauthProvidersRetrieveResponses } from "
|
|
7
|
+
import { Cfg } from "../../sdk.gen";
|
|
8
|
+
import type { CfgAccountsOauthProvidersRetrieveData, CfgAccountsOauthProvidersRetrieveResponses } from "../../types.gen";
|
|
9
9
|
|
|
10
|
-
type Args = Omit<CfgAccountsOauthProvidersRetrieveData, "url"> | undefined;
|
|
11
10
|
type Result = CfgAccountsOauthProvidersRetrieveResponses[keyof CfgAccountsOauthProvidersRetrieveResponses];
|
|
12
11
|
|
|
13
12
|
export function useCfgAccountsOauthProvidersRetrieve(
|
|
14
|
-
args
|
|
13
|
+
args?: Omit<CfgAccountsOauthProvidersRetrieveData, "url" | "body">,
|
|
15
14
|
config?: SWRConfiguration<Result>,
|
|
16
15
|
) {
|
|
17
|
-
const key =
|
|
16
|
+
const key = ["cfg_accounts_oauth_providers_retrieve", args ?? {}] as const;
|
|
18
17
|
return useSWR<Result>(
|
|
19
18
|
key,
|
|
20
19
|
async () => {
|
package/src/_api/generated/{cfg_accounts → _cfg_accounts}/hooks/useCfgAccountsOtpRequestCreate.ts
RENAMED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
// AUTO-GENERATED by
|
|
1
|
+
// AUTO-GENERATED by openapi_processor / ts.hooks
|
|
2
2
|
// POST /cfg/accounts/otp/request/
|
|
3
3
|
// DO NOT EDIT — re-run `make gen`.
|
|
4
4
|
|
|
5
5
|
import useSWRMutation from "swr/mutation";
|
|
6
6
|
import type { SWRMutationConfiguration } from "swr/mutation";
|
|
7
|
-
import { Cfg } from "
|
|
8
|
-
import type { CfgAccountsOtpRequestCreateData, CfgAccountsOtpRequestCreateResponses } from "
|
|
7
|
+
import { Cfg } from "../../sdk.gen";
|
|
8
|
+
import type { CfgAccountsOtpRequestCreateData, CfgAccountsOtpRequestCreateResponses } from "../../types.gen";
|
|
9
9
|
|
|
10
10
|
type Args = Omit<CfgAccountsOtpRequestCreateData, "url">;
|
|
11
11
|
type Result = CfgAccountsOtpRequestCreateResponses[keyof CfgAccountsOtpRequestCreateResponses];
|
package/src/_api/generated/{cfg_accounts → _cfg_accounts}/hooks/useCfgAccountsOtpVerifyCreate.ts
RENAMED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
// AUTO-GENERATED by
|
|
1
|
+
// AUTO-GENERATED by openapi_processor / ts.hooks
|
|
2
2
|
// POST /cfg/accounts/otp/verify/
|
|
3
3
|
// DO NOT EDIT — re-run `make gen`.
|
|
4
4
|
|
|
5
5
|
import useSWRMutation from "swr/mutation";
|
|
6
6
|
import type { SWRMutationConfiguration } from "swr/mutation";
|
|
7
|
-
import { Cfg } from "
|
|
8
|
-
import type { CfgAccountsOtpVerifyCreateData, CfgAccountsOtpVerifyCreateResponses } from "
|
|
7
|
+
import { Cfg } from "../../sdk.gen";
|
|
8
|
+
import type { CfgAccountsOtpVerifyCreateData, CfgAccountsOtpVerifyCreateResponses } from "../../types.gen";
|
|
9
9
|
|
|
10
10
|
type Args = Omit<CfgAccountsOtpVerifyCreateData, "url">;
|
|
11
11
|
type Result = CfgAccountsOtpVerifyCreateResponses[keyof CfgAccountsOtpVerifyCreateResponses];
|
package/src/_api/generated/{cfg_accounts → _cfg_accounts}/hooks/useCfgAccountsProfileAvatarCreate.ts
RENAMED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
// AUTO-GENERATED by
|
|
1
|
+
// AUTO-GENERATED by openapi_processor / ts.hooks
|
|
2
2
|
// Upload user avatar
|
|
3
3
|
// DO NOT EDIT — re-run `make gen`.
|
|
4
4
|
|
|
5
5
|
import useSWRMutation from "swr/mutation";
|
|
6
6
|
import type { SWRMutationConfiguration } from "swr/mutation";
|
|
7
|
-
import { Cfg } from "
|
|
8
|
-
import type { CfgAccountsProfileAvatarCreateData, CfgAccountsProfileAvatarCreateResponses } from "
|
|
7
|
+
import { Cfg } from "../../sdk.gen";
|
|
8
|
+
import type { CfgAccountsProfileAvatarCreateData, CfgAccountsProfileAvatarCreateResponses } from "../../types.gen";
|
|
9
9
|
|
|
10
10
|
type Args = Omit<CfgAccountsProfileAvatarCreateData, "url">;
|
|
11
11
|
type Result = CfgAccountsProfileAvatarCreateResponses[keyof CfgAccountsProfileAvatarCreateResponses];
|
package/src/_api/generated/{cfg_accounts → _cfg_accounts}/hooks/useCfgAccountsProfileDeleteCreate.ts
RENAMED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
// AUTO-GENERATED by
|
|
1
|
+
// AUTO-GENERATED by openapi_processor / ts.hooks
|
|
2
2
|
// Delete user account
|
|
3
3
|
// DO NOT EDIT — re-run `make gen`.
|
|
4
4
|
|
|
5
5
|
import useSWRMutation from "swr/mutation";
|
|
6
6
|
import type { SWRMutationConfiguration } from "swr/mutation";
|
|
7
|
-
import { Cfg } from "
|
|
8
|
-
import type { CfgAccountsProfileDeleteCreateData, CfgAccountsProfileDeleteCreateResponses } from "
|
|
7
|
+
import { Cfg } from "../../sdk.gen";
|
|
8
|
+
import type { CfgAccountsProfileDeleteCreateData, CfgAccountsProfileDeleteCreateResponses } from "../../types.gen";
|
|
9
9
|
|
|
10
10
|
type Args = Omit<CfgAccountsProfileDeleteCreateData, "url">;
|
|
11
11
|
type Result = CfgAccountsProfileDeleteCreateResponses[keyof CfgAccountsProfileDeleteCreateResponses];
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
// AUTO-GENERATED by
|
|
1
|
+
// AUTO-GENERATED by openapi_processor / ts.hooks
|
|
2
2
|
// Partial update user profile
|
|
3
3
|
// DO NOT EDIT — re-run `make gen`.
|
|
4
4
|
|
|
5
5
|
import useSWRMutation from "swr/mutation";
|
|
6
6
|
import type { SWRMutationConfiguration } from "swr/mutation";
|
|
7
|
-
import { Cfg } from "
|
|
8
|
-
import type { CfgAccountsProfilePartialPartialUpdateData, CfgAccountsProfilePartialPartialUpdateResponses } from "
|
|
7
|
+
import { Cfg } from "../../sdk.gen";
|
|
8
|
+
import type { CfgAccountsProfilePartialPartialUpdateData, CfgAccountsProfilePartialPartialUpdateResponses } from "../../types.gen";
|
|
9
9
|
|
|
10
10
|
type Args = Omit<CfgAccountsProfilePartialPartialUpdateData, "url">;
|
|
11
11
|
type Result = CfgAccountsProfilePartialPartialUpdateResponses[keyof CfgAccountsProfilePartialPartialUpdateResponses];
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
// AUTO-GENERATED by
|
|
1
|
+
// AUTO-GENERATED by openapi_processor / ts.hooks
|
|
2
2
|
// Partial update user profile
|
|
3
3
|
// DO NOT EDIT — re-run `make gen`.
|
|
4
4
|
|
|
5
5
|
import useSWRMutation from "swr/mutation";
|
|
6
6
|
import type { SWRMutationConfiguration } from "swr/mutation";
|
|
7
|
-
import { Cfg } from "
|
|
8
|
-
import type { CfgAccountsProfilePartialUpdateData, CfgAccountsProfilePartialUpdateResponses } from "
|
|
7
|
+
import { Cfg } from "../../sdk.gen";
|
|
8
|
+
import type { CfgAccountsProfilePartialUpdateData, CfgAccountsProfilePartialUpdateResponses } from "../../types.gen";
|
|
9
9
|
|
|
10
10
|
type Args = Omit<CfgAccountsProfilePartialUpdateData, "url">;
|
|
11
11
|
type Result = CfgAccountsProfilePartialUpdateResponses[keyof CfgAccountsProfilePartialUpdateResponses];
|
package/src/_api/generated/{cfg_accounts → _cfg_accounts}/hooks/useCfgAccountsProfileRetrieve.ts
RENAMED
|
@@ -1,20 +1,19 @@
|
|
|
1
|
-
// AUTO-GENERATED by
|
|
1
|
+
// AUTO-GENERATED by openapi_processor / ts.hooks
|
|
2
2
|
// Get current user profile
|
|
3
3
|
// DO NOT EDIT — re-run `make gen`.
|
|
4
4
|
|
|
5
5
|
import useSWR from "swr";
|
|
6
6
|
import type { SWRConfiguration } from "swr";
|
|
7
|
-
import { Cfg } from "
|
|
8
|
-
import type { CfgAccountsProfileRetrieveData, CfgAccountsProfileRetrieveResponses } from "
|
|
7
|
+
import { Cfg } from "../../sdk.gen";
|
|
8
|
+
import type { CfgAccountsProfileRetrieveData, CfgAccountsProfileRetrieveResponses } from "../../types.gen";
|
|
9
9
|
|
|
10
|
-
type Args = Omit<CfgAccountsProfileRetrieveData, "url"> | undefined;
|
|
11
10
|
type Result = CfgAccountsProfileRetrieveResponses[keyof CfgAccountsProfileRetrieveResponses];
|
|
12
11
|
|
|
13
12
|
export function useCfgAccountsProfileRetrieve(
|
|
14
|
-
args
|
|
13
|
+
args?: Omit<CfgAccountsProfileRetrieveData, "url" | "body">,
|
|
15
14
|
config?: SWRConfiguration<Result>,
|
|
16
15
|
) {
|
|
17
|
-
const key =
|
|
16
|
+
const key = ["cfg_accounts_profile_retrieve", args ?? {}] as const;
|
|
18
17
|
return useSWR<Result>(
|
|
19
18
|
key,
|
|
20
19
|
async () => {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
// AUTO-GENERATED by
|
|
1
|
+
// AUTO-GENERATED by openapi_processor / ts.hooks
|
|
2
2
|
// Update user profile
|
|
3
3
|
// DO NOT EDIT — re-run `make gen`.
|
|
4
4
|
|
|
5
5
|
import useSWRMutation from "swr/mutation";
|
|
6
6
|
import type { SWRMutationConfiguration } from "swr/mutation";
|
|
7
|
-
import { Cfg } from "
|
|
8
|
-
import type { CfgAccountsProfileUpdatePartialUpdateData, CfgAccountsProfileUpdatePartialUpdateResponses } from "
|
|
7
|
+
import { Cfg } from "../../sdk.gen";
|
|
8
|
+
import type { CfgAccountsProfileUpdatePartialUpdateData, CfgAccountsProfileUpdatePartialUpdateResponses } from "../../types.gen";
|
|
9
9
|
|
|
10
10
|
type Args = Omit<CfgAccountsProfileUpdatePartialUpdateData, "url">;
|
|
11
11
|
type Result = CfgAccountsProfileUpdatePartialUpdateResponses[keyof CfgAccountsProfileUpdatePartialUpdateResponses];
|
package/src/_api/generated/{cfg_accounts → _cfg_accounts}/hooks/useCfgAccountsProfileUpdateUpdate.ts
RENAMED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
// AUTO-GENERATED by
|
|
1
|
+
// AUTO-GENERATED by openapi_processor / ts.hooks
|
|
2
2
|
// Update user profile
|
|
3
3
|
// DO NOT EDIT — re-run `make gen`.
|
|
4
4
|
|
|
5
5
|
import useSWRMutation from "swr/mutation";
|
|
6
6
|
import type { SWRMutationConfiguration } from "swr/mutation";
|
|
7
|
-
import { Cfg } from "
|
|
8
|
-
import type { CfgAccountsProfileUpdateUpdateData, CfgAccountsProfileUpdateUpdateResponses } from "
|
|
7
|
+
import { Cfg } from "../../sdk.gen";
|
|
8
|
+
import type { CfgAccountsProfileUpdateUpdateData, CfgAccountsProfileUpdateUpdateResponses } from "../../types.gen";
|
|
9
9
|
|
|
10
10
|
type Args = Omit<CfgAccountsProfileUpdateUpdateData, "url">;
|
|
11
11
|
type Result = CfgAccountsProfileUpdateUpdateResponses[keyof CfgAccountsProfileUpdateUpdateResponses];
|
package/src/_api/generated/{cfg_accounts → _cfg_accounts}/hooks/useCfgAccountsTokenRefreshCreate.ts
RENAMED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
// AUTO-GENERATED by
|
|
1
|
+
// AUTO-GENERATED by openapi_processor / ts.hooks
|
|
2
2
|
// POST /cfg/accounts/token/refresh/
|
|
3
3
|
// DO NOT EDIT — re-run `make gen`.
|
|
4
4
|
|
|
5
5
|
import useSWRMutation from "swr/mutation";
|
|
6
6
|
import type { SWRMutationConfiguration } from "swr/mutation";
|
|
7
|
-
import { Cfg } from "
|
|
8
|
-
import type { CfgAccountsTokenRefreshCreateData, CfgAccountsTokenRefreshCreateResponses } from "
|
|
7
|
+
import { Cfg } from "../../sdk.gen";
|
|
8
|
+
import type { CfgAccountsTokenRefreshCreateData, CfgAccountsTokenRefreshCreateResponses } from "../../types.gen";
|
|
9
9
|
|
|
10
10
|
type Args = Omit<CfgAccountsTokenRefreshCreateData, "url">;
|
|
11
11
|
type Result = CfgAccountsTokenRefreshCreateResponses[keyof CfgAccountsTokenRefreshCreateResponses];
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// Group barrel. DO NOT EDIT — re-run `make gen`.
|
|
3
3
|
|
|
4
4
|
// Wrapper class + per-group SDK re-exports
|
|
5
|
-
export { API, type APIOptions,
|
|
5
|
+
export { API, type APIOptions, } from './api';
|
|
6
6
|
|
|
7
7
|
// Shared utilities (storage / errors / logger / validation events)
|
|
8
8
|
export {
|
|
@@ -23,7 +23,7 @@ export {
|
|
|
23
23
|
formatZodError,
|
|
24
24
|
type ValidationErrorDetail,
|
|
25
25
|
type ValidationErrorEvent,
|
|
26
|
-
} from '../
|
|
26
|
+
} from '../helpers';
|
|
27
27
|
|
|
28
28
|
// Generated artifacts (Hey API)
|
|
29
|
-
export type * from '
|
|
29
|
+
export type * from '../types.gen';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
// AUTO-GENERATED by
|
|
1
|
+
// AUTO-GENERATED by cmdop_server / devtools.generator.ts_extras
|
|
2
2
|
// Source: OpenAPI 3.1 components.schemas
|
|
3
|
-
// DO NOT EDIT — re-run `make gen`.
|
|
3
|
+
// DO NOT EDIT — re-run `make gen-clients`.
|
|
4
4
|
|
|
5
5
|
import { z } from "zod";
|
|
6
6
|
|
|
7
7
|
export const AccountDeleteResponseSchema = z.object({
|
|
8
|
-
success: z.boolean(),
|
|
9
8
|
message: z.string(),
|
|
9
|
+
success: z.boolean(),
|
|
10
10
|
});
|
|
11
11
|
|
|
12
12
|
export type AccountDeleteResponse = z.infer<typeof AccountDeleteResponseSchema>;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
// AUTO-GENERATED by
|
|
1
|
+
// AUTO-GENERATED by cmdop_server / devtools.generator.ts_extras
|
|
2
2
|
// Source: OpenAPI 3.1 components.schemas
|
|
3
|
-
// DO NOT EDIT — re-run `make gen`.
|
|
3
|
+
// DO NOT EDIT — re-run `make gen-clients`.
|
|
4
4
|
|
|
5
5
|
import { z } from "zod";
|
|
6
6
|
|
|
7
7
|
export const CentrifugoTokenSchema = z.object({
|
|
8
|
-
token: z.string(),
|
|
9
8
|
centrifugo_url: z.string(),
|
|
10
|
-
expires_at: z.string().datetime({ offset: true }),
|
|
11
9
|
channels: z.array(z.string()),
|
|
10
|
+
expires_at: z.string().datetime({ offset: true }),
|
|
11
|
+
token: z.string(),
|
|
12
12
|
});
|
|
13
13
|
|
|
14
14
|
export type CentrifugoToken = z.infer<typeof CentrifugoTokenSchema>;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
// AUTO-GENERATED by
|
|
1
|
+
// AUTO-GENERATED by cmdop_server / devtools.generator.ts_extras
|
|
2
2
|
// Source: OpenAPI 3.1 components.schemas
|
|
3
|
-
// DO NOT EDIT — re-run `make gen`.
|
|
3
|
+
// DO NOT EDIT — re-run `make gen-clients`.
|
|
4
4
|
|
|
5
5
|
import { z } from "zod";
|
|
6
6
|
|
|
7
7
|
export const CfgUserUpdateRequestSchema = z.object({
|
|
8
|
+
company: z.string().max(100).optional(),
|
|
8
9
|
first_name: z.string().max(50).optional(),
|
|
10
|
+
language: z.string().max(10).optional(),
|
|
9
11
|
last_name: z.string().max(50).optional(),
|
|
10
|
-
company: z.string().max(100).optional(),
|
|
11
12
|
phone: z.string().max(20).optional(),
|
|
12
13
|
position: z.string().max(100).optional(),
|
|
13
|
-
language: z.string().max(10).optional(),
|
|
14
14
|
});
|
|
15
15
|
|
|
16
16
|
export type CfgUserUpdateRequest = z.infer<typeof CfgUserUpdateRequestSchema>;
|
package/src/_api/generated/{cfg_accounts → _cfg_accounts}/schemas/OAuthAuthorizeRequestRequest.ts
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
// AUTO-GENERATED by
|
|
1
|
+
// AUTO-GENERATED by cmdop_server / devtools.generator.ts_extras
|
|
2
2
|
// Source: OpenAPI 3.1 components.schemas
|
|
3
|
-
// DO NOT EDIT — re-run `make gen`.
|
|
3
|
+
// DO NOT EDIT — re-run `make gen-clients`.
|
|
4
4
|
|
|
5
5
|
import { z } from "zod";
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
// AUTO-GENERATED by
|
|
1
|
+
// AUTO-GENERATED by cmdop_server / devtools.generator.ts_extras
|
|
2
2
|
// Source: OpenAPI 3.1 components.schemas
|
|
3
|
-
// DO NOT EDIT — re-run `make gen`.
|
|
3
|
+
// DO NOT EDIT — re-run `make gen-clients`.
|
|
4
4
|
|
|
5
5
|
import { z } from "zod";
|
|
6
6
|
|
package/src/_api/generated/{cfg_accounts → _cfg_accounts}/schemas/OAuthCallbackRequestRequest.ts
RENAMED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
// AUTO-GENERATED by
|
|
1
|
+
// AUTO-GENERATED by cmdop_server / devtools.generator.ts_extras
|
|
2
2
|
// Source: OpenAPI 3.1 components.schemas
|
|
3
|
-
// DO NOT EDIT — re-run `make gen`.
|
|
3
|
+
// DO NOT EDIT — re-run `make gen-clients`.
|
|
4
4
|
|
|
5
5
|
import { z } from "zod";
|
|
6
6
|
|
|
7
7
|
export const OAuthCallbackRequestRequestSchema = z.object({
|
|
8
8
|
code: z.string().min(10).max(500),
|
|
9
|
-
state: z.string().min(20).max(100),
|
|
10
9
|
redirect_uri: z.string().optional(),
|
|
10
|
+
state: z.string().min(20).max(100),
|
|
11
11
|
});
|
|
12
12
|
|
|
13
13
|
export type OAuthCallbackRequestRequest = z.infer<typeof OAuthCallbackRequestRequestSchema>;
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
// AUTO-GENERATED by
|
|
1
|
+
// AUTO-GENERATED by cmdop_server / devtools.generator.ts_extras
|
|
2
2
|
// Source: OpenAPI 3.1 components.schemas
|
|
3
|
-
// DO NOT EDIT — re-run `make gen`.
|
|
3
|
+
// DO NOT EDIT — re-run `make gen-clients`.
|
|
4
4
|
|
|
5
5
|
import { z } from "zod";
|
|
6
6
|
import { ProviderEnumSchema } from "./ProviderEnum";
|
|
7
7
|
|
|
8
8
|
export const OAuthConnectionSchema = z.object({
|
|
9
|
+
connected_at: z.string().datetime({ offset: true }),
|
|
9
10
|
id: z.number().int(),
|
|
11
|
+
last_login_at: z.string().datetime({ offset: true }),
|
|
10
12
|
provider: ProviderEnumSchema,
|
|
13
|
+
provider_avatar_url: z.string(),
|
|
11
14
|
provider_display: z.string(),
|
|
12
|
-
provider_username: z.string(),
|
|
13
15
|
provider_email: z.email(),
|
|
14
|
-
|
|
15
|
-
connected_at: z.string().datetime({ offset: true }),
|
|
16
|
-
last_login_at: z.string().datetime({ offset: true }),
|
|
16
|
+
provider_username: z.string(),
|
|
17
17
|
});
|
|
18
18
|
|
|
19
19
|
export type OAuthConnection = z.infer<typeof OAuthConnectionSchema>;
|
package/src/_api/generated/{cfg_accounts → _cfg_accounts}/schemas/OAuthDisconnectRequestRequest.ts
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
// AUTO-GENERATED by
|
|
1
|
+
// AUTO-GENERATED by cmdop_server / devtools.generator.ts_extras
|
|
2
2
|
// Source: OpenAPI 3.1 components.schemas
|
|
3
|
-
// DO NOT EDIT — re-run `make gen`.
|
|
3
|
+
// DO NOT EDIT — re-run `make gen-clients`.
|
|
4
4
|
|
|
5
5
|
import { z } from "zod";
|
|
6
6
|
import { ProviderEnumSchema } from "./ProviderEnum";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
// AUTO-GENERATED by
|
|
1
|
+
// AUTO-GENERATED by cmdop_server / devtools.generator.ts_extras
|
|
2
2
|
// Source: OpenAPI 3.1 components.schemas
|
|
3
|
-
// DO NOT EDIT — re-run `make gen`.
|
|
3
|
+
// DO NOT EDIT — re-run `make gen-clients`.
|
|
4
4
|
|
|
5
5
|
import { z } from "zod";
|
|
6
6
|
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
// AUTO-GENERATED by
|
|
1
|
+
// AUTO-GENERATED by cmdop_server / devtools.generator.ts_extras
|
|
2
2
|
// Source: OpenAPI 3.1 components.schemas
|
|
3
|
-
// DO NOT EDIT — re-run `make gen`.
|
|
3
|
+
// DO NOT EDIT — re-run `make gen-clients`.
|
|
4
4
|
|
|
5
5
|
import { z } from "zod";
|
|
6
6
|
|
|
7
7
|
export const OAuthProvidersResponseSchema = z.object({
|
|
8
|
-
providers: z.array(z.object({})),
|
|
8
|
+
providers: z.array(z.object({}).passthrough()),
|
|
9
9
|
});
|
|
10
10
|
|
|
11
11
|
export type OAuthProvidersResponse = z.infer<typeof OAuthProvidersResponseSchema>;
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
// AUTO-GENERATED by
|
|
1
|
+
// AUTO-GENERATED by cmdop_server / devtools.generator.ts_extras
|
|
2
2
|
// Source: OpenAPI 3.1 components.schemas
|
|
3
|
-
// DO NOT EDIT — re-run `make gen`.
|
|
3
|
+
// DO NOT EDIT — re-run `make gen-clients`.
|
|
4
4
|
|
|
5
5
|
import { z } from "zod";
|
|
6
6
|
|
|
7
7
|
export const OAuthTokenResponseSchema = z.object({
|
|
8
|
-
requires_2fa: z.boolean().optional(),
|
|
9
|
-
session_id: z.string().regex(/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i).nullable().optional(),
|
|
10
8
|
access: z.string().nullable().optional(),
|
|
11
|
-
refresh: z.string().nullable().optional(),
|
|
12
|
-
user: z.object({}).nullable().optional(),
|
|
13
|
-
is_new_user: z.boolean(),
|
|
14
9
|
is_new_connection: z.boolean(),
|
|
10
|
+
is_new_user: z.boolean(),
|
|
11
|
+
refresh: z.string().nullable().optional(),
|
|
12
|
+
requires_2fa: z.boolean().default(false).optional(),
|
|
13
|
+
session_id: z.string().regex(/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i).nullable().optional(),
|
|
15
14
|
should_prompt_2fa: z.boolean().optional(),
|
|
15
|
+
user: z.object({}).passthrough().nullable().optional(),
|
|
16
16
|
});
|
|
17
17
|
|
|
18
18
|
export type OAuthTokenResponse = z.infer<typeof OAuthTokenResponseSchema>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
// AUTO-GENERATED by
|
|
1
|
+
// AUTO-GENERATED by cmdop_server / devtools.generator.ts_extras
|
|
2
2
|
// Source: OpenAPI 3.1 components.schemas
|
|
3
|
-
// DO NOT EDIT — re-run `make gen`.
|
|
3
|
+
// DO NOT EDIT — re-run `make gen-clients`.
|
|
4
4
|
|
|
5
5
|
import { z } from "zod";
|
|
6
6
|
|