@lumeweb/portal-sdk 0.1.2 → 0.1.3
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/esm/account/generated/billing.d.ts +38 -1
- package/dist/esm/account/generated/billing.js +568 -1
- package/dist/esm/account/generated/billing.js.map +1 -1
- package/dist/esm/account/generated/default.d.ts +49 -1
- package/dist/esm/account/generated/default.js +579 -1
- package/dist/esm/account/generated/default.js.map +1 -1
- package/dist/esm/account/generated/index.d.ts +2 -2
- package/dist/esm/account/generated/index.js +2 -2
- package/dist/esm/account/generated/quota.d.ts +6 -1
- package/dist/esm/account/generated/quota.js +95 -1
- package/dist/esm/account/generated/quota.js.map +1 -1
- package/dist/esm/account/mocks.d.ts +4 -0
- package/dist/esm/account/mocks.js +5 -0
- package/dist/esm/account.d.ts +3 -1
- package/dist/esm/account.js +12 -0
- package/dist/esm/account.js.map +1 -1
- package/dist/esm/index.d.ts +4 -4
- package/dist/esm/index.js +5 -4
- package/dist/esm/openapi.d.ts +2 -2
- package/dist/esm/openapi.js +3 -2
- package/package.json +8 -1
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import { faker } from "/home/runner/work/web/web/node_modules/.pnpm/@faker-js+faker@9.9.0/node_modules/@faker-js/faker/dist/index.js";
|
|
2
|
+
import { HttpResponse, delay, http } from "/home/runner/work/web/web/node_modules/.pnpm/msw@2.14.6_@types+node@25.9.1_typescript@6.0.3/node_modules/msw/lib/core/index.mjs";
|
|
3
|
+
|
|
1
4
|
//#region src/account/generated/quota.ts
|
|
2
5
|
const getGetApiAccountQuotaUrl = () => {
|
|
3
6
|
return `/api/account/quota`;
|
|
@@ -22,7 +25,98 @@ const getApiAccountQuota = async (options) => {
|
|
|
22
25
|
headers: res.headers
|
|
23
26
|
};
|
|
24
27
|
};
|
|
28
|
+
const getGetApiAccountQuotaResponseMock = (overrideResponse = {}) => ({
|
|
29
|
+
download: {
|
|
30
|
+
limit: faker.helpers.arrayElement([faker.number.int(), void 0]),
|
|
31
|
+
percentage: faker.number.int(),
|
|
32
|
+
remaining: faker.helpers.arrayElement([faker.number.int(), void 0]),
|
|
33
|
+
reserved: faker.helpers.arrayElement([faker.number.int(), void 0]),
|
|
34
|
+
threshold: faker.helpers.arrayElement([faker.number.int(), void 0]),
|
|
35
|
+
used: faker.number.int(),
|
|
36
|
+
window: faker.helpers.arrayElement([{
|
|
37
|
+
duration: faker.helpers.arrayElement([faker.number.int(), void 0]),
|
|
38
|
+
end_date: faker.helpers.arrayElement([faker.string.alpha({ length: {
|
|
39
|
+
min: 10,
|
|
40
|
+
max: 20
|
|
41
|
+
} }), void 0]),
|
|
42
|
+
start_date: faker.helpers.arrayElement([faker.string.alpha({ length: {
|
|
43
|
+
min: 10,
|
|
44
|
+
max: 20
|
|
45
|
+
} }), void 0]),
|
|
46
|
+
timezone: faker.helpers.arrayElement([faker.string.alpha({ length: {
|
|
47
|
+
min: 10,
|
|
48
|
+
max: 20
|
|
49
|
+
} }), void 0]),
|
|
50
|
+
type: faker.string.alpha({ length: {
|
|
51
|
+
min: 10,
|
|
52
|
+
max: 20
|
|
53
|
+
} })
|
|
54
|
+
}, void 0])
|
|
55
|
+
},
|
|
56
|
+
storage: {
|
|
57
|
+
limit: faker.helpers.arrayElement([faker.number.int(), void 0]),
|
|
58
|
+
percentage: faker.number.int(),
|
|
59
|
+
remaining: faker.helpers.arrayElement([faker.number.int(), void 0]),
|
|
60
|
+
reserved: faker.helpers.arrayElement([faker.number.int(), void 0]),
|
|
61
|
+
threshold: faker.helpers.arrayElement([faker.number.int(), void 0]),
|
|
62
|
+
used: faker.number.int(),
|
|
63
|
+
window: faker.helpers.arrayElement([{
|
|
64
|
+
duration: faker.helpers.arrayElement([faker.number.int(), void 0]),
|
|
65
|
+
end_date: faker.helpers.arrayElement([faker.string.alpha({ length: {
|
|
66
|
+
min: 10,
|
|
67
|
+
max: 20
|
|
68
|
+
} }), void 0]),
|
|
69
|
+
start_date: faker.helpers.arrayElement([faker.string.alpha({ length: {
|
|
70
|
+
min: 10,
|
|
71
|
+
max: 20
|
|
72
|
+
} }), void 0]),
|
|
73
|
+
timezone: faker.helpers.arrayElement([faker.string.alpha({ length: {
|
|
74
|
+
min: 10,
|
|
75
|
+
max: 20
|
|
76
|
+
} }), void 0]),
|
|
77
|
+
type: faker.string.alpha({ length: {
|
|
78
|
+
min: 10,
|
|
79
|
+
max: 20
|
|
80
|
+
} })
|
|
81
|
+
}, void 0])
|
|
82
|
+
},
|
|
83
|
+
upload: {
|
|
84
|
+
limit: faker.helpers.arrayElement([faker.number.int(), void 0]),
|
|
85
|
+
percentage: faker.number.int(),
|
|
86
|
+
remaining: faker.helpers.arrayElement([faker.number.int(), void 0]),
|
|
87
|
+
reserved: faker.helpers.arrayElement([faker.number.int(), void 0]),
|
|
88
|
+
threshold: faker.helpers.arrayElement([faker.number.int(), void 0]),
|
|
89
|
+
used: faker.number.int(),
|
|
90
|
+
window: faker.helpers.arrayElement([{
|
|
91
|
+
duration: faker.helpers.arrayElement([faker.number.int(), void 0]),
|
|
92
|
+
end_date: faker.helpers.arrayElement([faker.string.alpha({ length: {
|
|
93
|
+
min: 10,
|
|
94
|
+
max: 20
|
|
95
|
+
} }), void 0]),
|
|
96
|
+
start_date: faker.helpers.arrayElement([faker.string.alpha({ length: {
|
|
97
|
+
min: 10,
|
|
98
|
+
max: 20
|
|
99
|
+
} }), void 0]),
|
|
100
|
+
timezone: faker.helpers.arrayElement([faker.string.alpha({ length: {
|
|
101
|
+
min: 10,
|
|
102
|
+
max: 20
|
|
103
|
+
} }), void 0]),
|
|
104
|
+
type: faker.string.alpha({ length: {
|
|
105
|
+
min: 10,
|
|
106
|
+
max: 20
|
|
107
|
+
} })
|
|
108
|
+
}, void 0])
|
|
109
|
+
},
|
|
110
|
+
...overrideResponse
|
|
111
|
+
});
|
|
112
|
+
const getGetApiAccountQuotaMockHandler = (overrideResponse, options) => {
|
|
113
|
+
return http.get("*/api/account/quota", async (info) => {
|
|
114
|
+
await delay(0);
|
|
115
|
+
return HttpResponse.json(overrideResponse !== void 0 ? typeof overrideResponse === "function" ? await overrideResponse(info) : overrideResponse : getGetApiAccountQuotaResponseMock(), { status: 200 });
|
|
116
|
+
}, options);
|
|
117
|
+
};
|
|
118
|
+
const getQuotaMock = () => [getGetApiAccountQuotaMockHandler()];
|
|
25
119
|
|
|
26
120
|
//#endregion
|
|
27
|
-
export { getApiAccountQuota, getGetApiAccountQuotaUrl };
|
|
121
|
+
export { getApiAccountQuota, getGetApiAccountQuotaMockHandler, getGetApiAccountQuotaResponseMock, getGetApiAccountQuotaUrl, getQuotaMock };
|
|
28
122
|
//# sourceMappingURL=quota.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"quota.js","names":[],"sources":["../../../../src/account/generated/quota.ts"],"sourcesContent":["/**\n * Generated by orval v8.10.0 🍺\n * Do not edit manually.\n * Account API\n * API endpoints for managing user accounts, authentication, and API keys.\n * OpenAPI spec version: v0.2.7-0.20260418132608-572560c6efd0\n */\nimport type {\n ErrorResponse,\n QuotaStatusResponse\n} from './accountAPI.schemas';\n\n\n\nexport type getApiAccountQuotaResponse200 = {\n data: QuotaStatusResponse\n status: 200\n}\n\nexport type getApiAccountQuotaResponse400 = {\n data: ErrorResponse\n status: 400\n}\n\nexport type getApiAccountQuotaResponse404 = {\n data: ErrorResponse\n status: 404\n}\n\nexport type getApiAccountQuotaResponse500 = {\n data: ErrorResponse\n status: 500\n}\n\nexport type getApiAccountQuotaResponseSuccess = (getApiAccountQuotaResponse200) & {\n headers: Headers;\n};\nexport type getApiAccountQuotaResponseError = (getApiAccountQuotaResponse400 | getApiAccountQuotaResponse404 | getApiAccountQuotaResponse500) & {\n headers: Headers;\n};\n\nexport type getApiAccountQuotaResponse = (getApiAccountQuotaResponseSuccess | getApiAccountQuotaResponseError)\n\nexport const getGetApiAccountQuotaUrl = () => {\n\n\n\n\n return `/api/account/quota`\n}\n\n/**\n * Retrieve the current quota status including upload and download usage, limits, and remaining allowance for the authenticated user.\n * @summary Get current quota status\n */\nexport const getApiAccountQuota = async ( options?: RequestInit): Promise<getApiAccountQuotaResponse> => {\n\n const res = await fetch(getGetApiAccountQuotaUrl(),\n {\n ...options,\n method: 'GET'\n\n\n }\n)\n\n\n const body = [204, 205, 304].includes(res.status) ? null : await res.text();\n\n const data: getApiAccountQuotaResponse['data'] = body ? JSON.parse(body) : {}\n return { data, status: res.status, headers: res.headers } as getApiAccountQuotaResponse\n}\n\n\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"quota.js","names":[],"sources":["../../../../src/account/generated/quota.ts"],"sourcesContent":["/**\n * Generated by orval v8.10.0 🍺\n * Do not edit manually.\n * Account API\n * API endpoints for managing user accounts, authentication, and API keys.\n * OpenAPI spec version: v0.2.7-0.20260418132608-572560c6efd0\n */\nimport type {\n ErrorResponse,\n QuotaStatusResponse\n} from './accountAPI.schemas';\n\nimport {\n faker\n} from '@faker-js/faker';\n\nimport {\n HttpResponse,\n delay,\n http\n} from 'msw';\nimport type {\n RequestHandlerOptions\n} from 'msw';\n\n\n\nexport type getApiAccountQuotaResponse200 = {\n data: QuotaStatusResponse\n status: 200\n}\n\nexport type getApiAccountQuotaResponse400 = {\n data: ErrorResponse\n status: 400\n}\n\nexport type getApiAccountQuotaResponse404 = {\n data: ErrorResponse\n status: 404\n}\n\nexport type getApiAccountQuotaResponse500 = {\n data: ErrorResponse\n status: 500\n}\n\nexport type getApiAccountQuotaResponseSuccess = (getApiAccountQuotaResponse200) & {\n headers: Headers;\n};\nexport type getApiAccountQuotaResponseError = (getApiAccountQuotaResponse400 | getApiAccountQuotaResponse404 | getApiAccountQuotaResponse500) & {\n headers: Headers;\n};\n\nexport type getApiAccountQuotaResponse = (getApiAccountQuotaResponseSuccess | getApiAccountQuotaResponseError)\n\nexport const getGetApiAccountQuotaUrl = () => {\n\n\n\n\n return `/api/account/quota`\n}\n\n/**\n * Retrieve the current quota status including upload and download usage, limits, and remaining allowance for the authenticated user.\n * @summary Get current quota status\n */\nexport const getApiAccountQuota = async ( options?: RequestInit): Promise<getApiAccountQuotaResponse> => {\n\n const res = await fetch(getGetApiAccountQuotaUrl(),\n {\n ...options,\n method: 'GET'\n\n\n }\n)\n\n\n const body = [204, 205, 304].includes(res.status) ? null : await res.text();\n\n const data: getApiAccountQuotaResponse['data'] = body ? JSON.parse(body) : {}\n return { data, status: res.status, headers: res.headers } as getApiAccountQuotaResponse\n}\n\n\n\n\nexport const getGetApiAccountQuotaResponseMock = (overrideResponse: Partial<Extract<QuotaStatusResponse, object>> = {}): QuotaStatusResponse => ({download: {limit: faker.helpers.arrayElement([faker.number.int(), undefined]), percentage: faker.number.int(), remaining: faker.helpers.arrayElement([faker.number.int(), undefined]), reserved: faker.helpers.arrayElement([faker.number.int(), undefined]), threshold: faker.helpers.arrayElement([faker.number.int(), undefined]), used: faker.number.int(), window: faker.helpers.arrayElement([{duration: faker.helpers.arrayElement([faker.number.int(), undefined]), end_date: faker.helpers.arrayElement([faker.string.alpha({length: {min: 10, max: 20}}), undefined]), start_date: faker.helpers.arrayElement([faker.string.alpha({length: {min: 10, max: 20}}), undefined]), timezone: faker.helpers.arrayElement([faker.string.alpha({length: {min: 10, max: 20}}), undefined]), type: faker.string.alpha({length: {min: 10, max: 20}})}, undefined])}, storage: {limit: faker.helpers.arrayElement([faker.number.int(), undefined]), percentage: faker.number.int(), remaining: faker.helpers.arrayElement([faker.number.int(), undefined]), reserved: faker.helpers.arrayElement([faker.number.int(), undefined]), threshold: faker.helpers.arrayElement([faker.number.int(), undefined]), used: faker.number.int(), window: faker.helpers.arrayElement([{duration: faker.helpers.arrayElement([faker.number.int(), undefined]), end_date: faker.helpers.arrayElement([faker.string.alpha({length: {min: 10, max: 20}}), undefined]), start_date: faker.helpers.arrayElement([faker.string.alpha({length: {min: 10, max: 20}}), undefined]), timezone: faker.helpers.arrayElement([faker.string.alpha({length: {min: 10, max: 20}}), undefined]), type: faker.string.alpha({length: {min: 10, max: 20}})}, undefined])}, upload: {limit: faker.helpers.arrayElement([faker.number.int(), undefined]), percentage: faker.number.int(), remaining: faker.helpers.arrayElement([faker.number.int(), undefined]), reserved: faker.helpers.arrayElement([faker.number.int(), undefined]), threshold: faker.helpers.arrayElement([faker.number.int(), undefined]), used: faker.number.int(), window: faker.helpers.arrayElement([{duration: faker.helpers.arrayElement([faker.number.int(), undefined]), end_date: faker.helpers.arrayElement([faker.string.alpha({length: {min: 10, max: 20}}), undefined]), start_date: faker.helpers.arrayElement([faker.string.alpha({length: {min: 10, max: 20}}), undefined]), timezone: faker.helpers.arrayElement([faker.string.alpha({length: {min: 10, max: 20}}), undefined]), type: faker.string.alpha({length: {min: 10, max: 20}})}, undefined])}, ...overrideResponse})\n\n\nexport const getGetApiAccountQuotaMockHandler = (overrideResponse?: QuotaStatusResponse | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<QuotaStatusResponse> | QuotaStatusResponse), options?: RequestHandlerOptions) => {\n return http.get('*/api/account/quota', async (info: Parameters<Parameters<typeof http.get>[1]>[0]) => {await delay(0);\n\n\n return HttpResponse.json(overrideResponse !== undefined\n ? (typeof overrideResponse === \"function\" ? await overrideResponse(info) : overrideResponse)\n : getGetApiAccountQuotaResponseMock(),\n { status: 200\n })\n }, options)\n}\nexport const getQuotaMock = () => [\n getGetApiAccountQuotaMockHandler()\n]\n"],"mappings":";;;;AAwDA,MAAa,iCAAiC;AAK5C,QAAO;;;;;;AAOT,MAAa,qBAAqB,OAAQ,YAA+D;CAEvG,MAAM,MAAM,MAAM,MAAM,0BAA0B,EAClD;EACE,GAAG;EACH,QAAQ;EAGT,CACF;CAGC,MAAM,OAAO;EAAC;EAAK;EAAK;EAAI,CAAC,SAAS,IAAI,OAAO,GAAG,OAAO,MAAM,IAAI,MAAM;AAG3E,QAAO;EAAE,MADwC,OAAO,KAAK,MAAM,KAAK,GAAG,EAAE;EAC9D,QAAQ,IAAI;EAAQ,SAAS,IAAI;EAAS;;AAM3D,MAAa,qCAA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AAE,UAAU,MAAM,QAAQ,aAAa,CAAC,MAAM,OAAO,MAAM,EAAC,QAAQ;IAAC,KAAK;IAAI,KAAK;IAAG,EAAC,CAAC,EAAE,OAAU,CAAC;GAAE,YAAY,MAAM,QAAQ,aAAa,CAAC,MAAM,OAAO,MAAM,EAAC,QAAQ;IAAC,KAAK;IAAI,KAAK;IAAG,EAAC,CAAC,EAAE,OAAU,CAAC;GAAE,UAAU,MAAM,QAAQ,aAAa,CAAC,MAAM,OAAO,MAAM,EAAC,QAAQ;IAAC,KAAK;IAAI,KAAK;IAAG,EAAC,CAAC,EAAE,OAAU,CAAC;GAAE,MAAM,MAAM,OAAO,MAAM,EAAC,QAAQ;IAAC,KAAK;IAAI,KAAK;IAAG,EAAC,CAAC;GAAC,EAAE,OAAU,CAAC;EAAC;CAAE,GAAG;CAAiB;AAG/mF,MAAa,oCAAoC,kBAAwJ,YAAoC;AAC3O,QAAO,KAAK,IAAI,uBAAuB,OAAO,SAAwD;AAAC,QAAM,MAAM,EAAE;AAGnH,SAAO,aAAa,KAAK,qBAAqB,SAC3C,OAAO,qBAAqB,aAAa,MAAM,iBAAiB,KAAK,GAAG,mBACzE,mCAAmC,EACnC,EAAE,QAAQ,KACT,CAAC;IACH,QAAQ;;AAEb,MAAa,qBAAqB,CAChC,kCAAkC,CACnC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { deleteApiAccount, deleteApiAccountKeysKeyID, deleteApiAccountKeysKeyIDResponse, deleteApiAccountKeysKeyIDResponse200, deleteApiAccountKeysKeyIDResponse400, deleteApiAccountKeysKeyIDResponse404, deleteApiAccountKeysKeyIDResponse500, deleteApiAccountKeysKeyIDResponseError, deleteApiAccountKeysKeyIDResponseSuccess, deleteApiAccountResponse, deleteApiAccountResponse200, deleteApiAccountResponse400, deleteApiAccountResponse404, deleteApiAccountResponse500, deleteApiAccountResponseError, deleteApiAccountResponseSuccess, getApiAccount, getApiAccountAvatar, getApiAccountAvatarResponse, getApiAccountAvatarResponse200, getApiAccountAvatarResponse400, getApiAccountAvatarResponse404, getApiAccountAvatarResponse500, getApiAccountAvatarResponseError, getApiAccountAvatarResponseSuccess, getApiAccountKeys, getApiAccountKeysResponse, getApiAccountKeysResponse200, getApiAccountKeysResponse400, getApiAccountKeysResponse404, getApiAccountKeysResponse500, getApiAccountKeysResponseError, getApiAccountKeysResponseSuccess, getApiAccountPermissions, getApiAccountPermissionsResponse, getApiAccountPermissionsResponse200, getApiAccountPermissionsResponse400, getApiAccountPermissionsResponse404, getApiAccountPermissionsResponse500, getApiAccountPermissionsResponseError, getApiAccountPermissionsResponseSuccess, getApiAccountQuotaHistory, getApiAccountQuotaHistoryResponse, getApiAccountQuotaHistoryResponse200, getApiAccountQuotaHistoryResponse400, getApiAccountQuotaHistoryResponse404, getApiAccountQuotaHistoryResponse500, getApiAccountQuotaHistoryResponseError, getApiAccountQuotaHistoryResponseSuccess, getApiAccountResponse, getApiAccountResponse200, getApiAccountResponse400, getApiAccountResponse401, getApiAccountResponse403, getApiAccountResponse404, getApiAccountResponse500, getApiAccountResponseError, getApiAccountResponseSuccess, getApiOperations, getApiOperationsFilters, getApiOperationsFiltersResponse, getApiOperationsFiltersResponse200, getApiOperationsFiltersResponse400, getApiOperationsFiltersResponse404, getApiOperationsFiltersResponse500, getApiOperationsFiltersResponseError, getApiOperationsFiltersResponseSuccess, getApiOperationsId, getApiOperationsIdResponse, getApiOperationsIdResponse200, getApiOperationsIdResponse400, getApiOperationsIdResponse404, getApiOperationsIdResponse500, getApiOperationsIdResponseError, getApiOperationsIdResponseSuccess, getApiOperationsResponse, getApiOperationsResponse200, getApiOperationsResponse400, getApiOperationsResponse404, getApiOperationsResponse500, getApiOperationsResponseError, getApiOperationsResponseSuccess, getApiUploadLimit, getApiUploadLimitResponse, getApiUploadLimitResponse200, getApiUploadLimitResponse400, getApiUploadLimitResponse404, getApiUploadLimitResponse500, getApiUploadLimitResponseError, getApiUploadLimitResponseSuccess, getDefaultMock, getDeleteApiAccountKeysKeyIDMockHandler, getDeleteApiAccountKeysKeyIDUrl, getDeleteApiAccountMockHandler, getDeleteApiAccountUrl, getGetApiAccountAvatarMockHandler, getGetApiAccountAvatarUrl, getGetApiAccountKeysMockHandler, getGetApiAccountKeysResponseMock, getGetApiAccountKeysUrl, getGetApiAccountMockHandler, getGetApiAccountPermissionsMockHandler, getGetApiAccountPermissionsResponseMock, getGetApiAccountPermissionsUrl, getGetApiAccountQuotaHistoryMockHandler, getGetApiAccountQuotaHistoryResponseMock, getGetApiAccountQuotaHistoryUrl, getGetApiAccountResponseMock, getGetApiAccountUrl, getGetApiOperationsFiltersMockHandler, getGetApiOperationsFiltersResponseMock, getGetApiOperationsFiltersUrl, getGetApiOperationsIdMockHandler, getGetApiOperationsIdResponseMock, getGetApiOperationsIdUrl, getGetApiOperationsMockHandler, getGetApiOperationsResponseMock, getGetApiOperationsUrl, getGetApiUploadLimitMockHandler, getGetApiUploadLimitResponseMock, getGetApiUploadLimitUrl, getPatchApiAccountMockHandler, getPatchApiAccountUrl, getPostApiAccountAvatarMockHandler, getPostApiAccountAvatarResponseMock, getPostApiAccountAvatarUrl, getPostApiAccountKeysMockHandler, getPostApiAccountKeysResponseMock, getPostApiAccountKeysUrl, getPostApiAccountPasswordResetConfirmMockHandler, getPostApiAccountPasswordResetConfirmUrl, getPostApiAccountPasswordResetRequestMockHandler, getPostApiAccountPasswordResetRequestUrl, getPostApiAccountUpdateEmailMockHandler, getPostApiAccountUpdateEmailUrl, getPostApiAccountUpdatePasswordMockHandler, getPostApiAccountUpdatePasswordUrl, getPostApiAccountVerifyEmailMockHandler, getPostApiAccountVerifyEmailResendMockHandler, getPostApiAccountVerifyEmailResendUrl, getPostApiAccountVerifyEmailUrl, getPostApiAuthKeyMockHandler, getPostApiAuthKeyResponseMock, getPostApiAuthKeyUrl, getPostApiAuthLoginMockHandler, getPostApiAuthLoginResponseMock, getPostApiAuthLoginUrl, getPostApiAuthLogoutMockHandler, getPostApiAuthLogoutUrl, getPostApiAuthOtpDisableMockHandler, getPostApiAuthOtpDisableResponseMock, getPostApiAuthOtpDisableUrl, getPostApiAuthOtpGenerateMockHandler, getPostApiAuthOtpGenerateResponseMock, getPostApiAuthOtpGenerateUrl, getPostApiAuthOtpValidateMockHandler, getPostApiAuthOtpValidateUrl, getPostApiAuthOtpVerifyMockHandler, getPostApiAuthOtpVerifyResponseMock, getPostApiAuthOtpVerifyUrl, getPostApiAuthPingMockHandler, getPostApiAuthPingResponseMock, getPostApiAuthPingUrl, getPostApiAuthRegisterMockHandler, getPostApiAuthRegisterUrl, patchApiAccount, patchApiAccountResponse, patchApiAccountResponse200, patchApiAccountResponse400, patchApiAccountResponse401, patchApiAccountResponse403, patchApiAccountResponse404, patchApiAccountResponse500, patchApiAccountResponseError, patchApiAccountResponseSuccess, postApiAccountAvatar, postApiAccountAvatarResponse, postApiAccountAvatarResponse200, postApiAccountAvatarResponse204, postApiAccountAvatarResponse400, postApiAccountAvatarResponse404, postApiAccountAvatarResponse500, postApiAccountAvatarResponseError, postApiAccountAvatarResponseSuccess, postApiAccountKeys, postApiAccountKeysResponse, postApiAccountKeysResponse200, postApiAccountKeysResponse400, postApiAccountKeysResponse404, postApiAccountKeysResponse500, postApiAccountKeysResponseError, postApiAccountKeysResponseSuccess, postApiAccountPasswordResetConfirm, postApiAccountPasswordResetConfirmResponse, postApiAccountPasswordResetConfirmResponse200, postApiAccountPasswordResetConfirmResponse400, postApiAccountPasswordResetConfirmResponse404, postApiAccountPasswordResetConfirmResponse500, postApiAccountPasswordResetConfirmResponseError, postApiAccountPasswordResetConfirmResponseSuccess, postApiAccountPasswordResetRequest, postApiAccountPasswordResetRequestResponse, postApiAccountPasswordResetRequestResponse200, postApiAccountPasswordResetRequestResponse400, postApiAccountPasswordResetRequestResponse401, postApiAccountPasswordResetRequestResponse403, postApiAccountPasswordResetRequestResponse404, postApiAccountPasswordResetRequestResponse500, postApiAccountPasswordResetRequestResponseError, postApiAccountPasswordResetRequestResponseSuccess, postApiAccountUpdateEmail, postApiAccountUpdateEmailResponse, postApiAccountUpdateEmailResponse200, postApiAccountUpdateEmailResponse400, postApiAccountUpdateEmailResponse404, postApiAccountUpdateEmailResponse500, postApiAccountUpdateEmailResponseError, postApiAccountUpdateEmailResponseSuccess, postApiAccountUpdatePassword, postApiAccountUpdatePasswordResponse, postApiAccountUpdatePasswordResponse200, postApiAccountUpdatePasswordResponse400, postApiAccountUpdatePasswordResponse404, postApiAccountUpdatePasswordResponse500, postApiAccountUpdatePasswordResponseError, postApiAccountUpdatePasswordResponseSuccess, postApiAccountVerifyEmail, postApiAccountVerifyEmailResend, postApiAccountVerifyEmailResendResponse, postApiAccountVerifyEmailResendResponse200, postApiAccountVerifyEmailResendResponse400, postApiAccountVerifyEmailResendResponse404, postApiAccountVerifyEmailResendResponse500, postApiAccountVerifyEmailResendResponseError, postApiAccountVerifyEmailResendResponseSuccess, postApiAccountVerifyEmailResponse, postApiAccountVerifyEmailResponse200, postApiAccountVerifyEmailResponse400, postApiAccountVerifyEmailResponse404, postApiAccountVerifyEmailResponse500, postApiAccountVerifyEmailResponseError, postApiAccountVerifyEmailResponseSuccess, postApiAuthKey, postApiAuthKeyResponse, postApiAuthKeyResponse200, postApiAuthKeyResponse400, postApiAuthKeyResponse401, postApiAuthKeyResponse403, postApiAuthKeyResponse404, postApiAuthKeyResponse500, postApiAuthKeyResponseError, postApiAuthKeyResponseSuccess, postApiAuthLogin, postApiAuthLoginResponse, postApiAuthLoginResponse200, postApiAuthLoginResponse302, postApiAuthLoginResponse400, postApiAuthLoginResponse401, postApiAuthLoginResponse403, postApiAuthLoginResponse404, postApiAuthLoginResponse500, postApiAuthLoginResponseError, postApiAuthLoginResponseSuccess, postApiAuthLogout, postApiAuthLogoutResponse, postApiAuthLogoutResponse200, postApiAuthLogoutResponse400, postApiAuthLogoutResponse401, postApiAuthLogoutResponse403, postApiAuthLogoutResponse404, postApiAuthLogoutResponse500, postApiAuthLogoutResponseError, postApiAuthLogoutResponseSuccess, postApiAuthOtpDisable, postApiAuthOtpDisableResponse, postApiAuthOtpDisableResponse200, postApiAuthOtpDisableResponse204, postApiAuthOtpDisableResponse400, postApiAuthOtpDisableResponse404, postApiAuthOtpDisableResponse500, postApiAuthOtpDisableResponseError, postApiAuthOtpDisableResponseSuccess, postApiAuthOtpGenerate, postApiAuthOtpGenerateResponse, postApiAuthOtpGenerateResponse200, postApiAuthOtpGenerateResponse400, postApiAuthOtpGenerateResponse401, postApiAuthOtpGenerateResponse403, postApiAuthOtpGenerateResponse404, postApiAuthOtpGenerateResponse500, postApiAuthOtpGenerateResponseError, postApiAuthOtpGenerateResponseSuccess, postApiAuthOtpValidate, postApiAuthOtpValidateResponse, postApiAuthOtpValidateResponse302, postApiAuthOtpValidateResponse400, postApiAuthOtpValidateResponse401, postApiAuthOtpValidateResponse403, postApiAuthOtpValidateResponse404, postApiAuthOtpValidateResponse500, postApiAuthOtpValidateResponseError, postApiAuthOtpVerify, postApiAuthOtpVerifyResponse, postApiAuthOtpVerifyResponse200, postApiAuthOtpVerifyResponse204, postApiAuthOtpVerifyResponse400, postApiAuthOtpVerifyResponse404, postApiAuthOtpVerifyResponse500, postApiAuthOtpVerifyResponseError, postApiAuthOtpVerifyResponseSuccess, postApiAuthPing, postApiAuthPingResponse, postApiAuthPingResponse200, postApiAuthPingResponse400, postApiAuthPingResponse401, postApiAuthPingResponse403, postApiAuthPingResponse404, postApiAuthPingResponse500, postApiAuthPingResponseError, postApiAuthPingResponseSuccess, postApiAuthRegister, postApiAuthRegisterResponse, postApiAuthRegisterResponse200, postApiAuthRegisterResponse400, postApiAuthRegisterResponse401, postApiAuthRegisterResponse403, postApiAuthRegisterResponse404, postApiAuthRegisterResponse409, postApiAuthRegisterResponse500, postApiAuthRegisterResponseError, postApiAuthRegisterResponseSuccess } from "./generated/default.js";
|
|
2
|
+
import { getApiAccountBillingBalance, getApiAccountBillingBalanceResponse, getApiAccountBillingBalanceResponse200, getApiAccountBillingBalanceResponse400, getApiAccountBillingBalanceResponse401, getApiAccountBillingBalanceResponse403, getApiAccountBillingBalanceResponse404, getApiAccountBillingBalanceResponse500, getApiAccountBillingBalanceResponseError, getApiAccountBillingBalanceResponseSuccess, getApiAccountBillingCheckoutSessionSessionIdStatus, getApiAccountBillingCheckoutSessionSessionIdStatusResponse, getApiAccountBillingCheckoutSessionSessionIdStatusResponse200, getApiAccountBillingCheckoutSessionSessionIdStatusResponse400, getApiAccountBillingCheckoutSessionSessionIdStatusResponse401, getApiAccountBillingCheckoutSessionSessionIdStatusResponse403, getApiAccountBillingCheckoutSessionSessionIdStatusResponse404, getApiAccountBillingCheckoutSessionSessionIdStatusResponse500, getApiAccountBillingCheckoutSessionSessionIdStatusResponse501, getApiAccountBillingCheckoutSessionSessionIdStatusResponseError, getApiAccountBillingCheckoutSessionSessionIdStatusResponseSuccess, getApiAccountBillingCheckoutUiPlanId, getApiAccountBillingCheckoutUiPlanIdResponse, getApiAccountBillingCheckoutUiPlanIdResponse200, getApiAccountBillingCheckoutUiPlanIdResponse400, getApiAccountBillingCheckoutUiPlanIdResponse401, getApiAccountBillingCheckoutUiPlanIdResponse403, getApiAccountBillingCheckoutUiPlanIdResponse404, getApiAccountBillingCheckoutUiPlanIdResponse409, getApiAccountBillingCheckoutUiPlanIdResponse500, getApiAccountBillingCheckoutUiPlanIdResponseError, getApiAccountBillingCheckoutUiPlanIdResponseSuccess, getApiAccountBillingCredits, getApiAccountBillingCreditsResponse, getApiAccountBillingCreditsResponse200, getApiAccountBillingCreditsResponse400, getApiAccountBillingCreditsResponse401, getApiAccountBillingCreditsResponse403, getApiAccountBillingCreditsResponse404, getApiAccountBillingCreditsResponse500, getApiAccountBillingCreditsResponseError, getApiAccountBillingCreditsResponseSuccess, getApiAccountBillingManagementCapabilities, getApiAccountBillingManagementCapabilitiesResponse, getApiAccountBillingManagementCapabilitiesResponse200, getApiAccountBillingManagementCapabilitiesResponse400, getApiAccountBillingManagementCapabilitiesResponse401, getApiAccountBillingManagementCapabilitiesResponse403, getApiAccountBillingManagementCapabilitiesResponse404, getApiAccountBillingManagementCapabilitiesResponse500, getApiAccountBillingManagementCapabilitiesResponseError, getApiAccountBillingManagementCapabilitiesResponseSuccess, getApiAccountBillingSubscription, getApiAccountBillingSubscriptionEvents, getApiAccountBillingSubscriptionEventsResponse, getApiAccountBillingSubscriptionEventsResponse200, getApiAccountBillingSubscriptionEventsResponse400, getApiAccountBillingSubscriptionEventsResponse401, getApiAccountBillingSubscriptionEventsResponse403, getApiAccountBillingSubscriptionEventsResponse404, getApiAccountBillingSubscriptionEventsResponse500, getApiAccountBillingSubscriptionEventsResponseError, getApiAccountBillingSubscriptionEventsResponseSuccess, getApiAccountBillingSubscriptionResponse, getApiAccountBillingSubscriptionResponse200, getApiAccountBillingSubscriptionResponse400, getApiAccountBillingSubscriptionResponse401, getApiAccountBillingSubscriptionResponse403, getApiAccountBillingSubscriptionResponse404, getApiAccountBillingSubscriptionResponse500, getApiAccountBillingSubscriptionResponseError, getApiAccountBillingSubscriptionResponseSuccess, getApiBillingGateways, getApiBillingGatewaysIdLogo, getApiBillingGatewaysIdLogoResponse, getApiBillingGatewaysIdLogoResponse200, getApiBillingGatewaysIdLogoResponse400, getApiBillingGatewaysIdLogoResponse401, getApiBillingGatewaysIdLogoResponse403, getApiBillingGatewaysIdLogoResponse404, getApiBillingGatewaysIdLogoResponse500, getApiBillingGatewaysIdLogoResponseError, getApiBillingGatewaysIdLogoResponseSuccess, getApiBillingGatewaysResponse, getApiBillingGatewaysResponse200, getApiBillingGatewaysResponse400, getApiBillingGatewaysResponse401, getApiBillingGatewaysResponse403, getApiBillingGatewaysResponse404, getApiBillingGatewaysResponse500, getApiBillingGatewaysResponseError, getApiBillingGatewaysResponseSuccess, getApiBillingPlans, getApiBillingPlansResponse, getApiBillingPlansResponse200, getApiBillingPlansResponse400, getApiBillingPlansResponse401, getApiBillingPlansResponse403, getApiBillingPlansResponse404, getApiBillingPlansResponse500, getApiBillingPlansResponseError, getApiBillingPlansResponseSuccess, getBillingMock, getGetApiAccountBillingBalanceMockHandler, getGetApiAccountBillingBalanceResponseMock, getGetApiAccountBillingBalanceUrl, getGetApiAccountBillingCheckoutSessionSessionIdStatusMockHandler, getGetApiAccountBillingCheckoutSessionSessionIdStatusResponseMock, getGetApiAccountBillingCheckoutSessionSessionIdStatusUrl, getGetApiAccountBillingCheckoutUiPlanIdMockHandler, getGetApiAccountBillingCheckoutUiPlanIdResponseMock, getGetApiAccountBillingCheckoutUiPlanIdUrl, getGetApiAccountBillingCreditsMockHandler, getGetApiAccountBillingCreditsResponseMock, getGetApiAccountBillingCreditsUrl, getGetApiAccountBillingManagementCapabilitiesMockHandler, getGetApiAccountBillingManagementCapabilitiesResponseMock, getGetApiAccountBillingManagementCapabilitiesUrl, getGetApiAccountBillingSubscriptionEventsMockHandler, getGetApiAccountBillingSubscriptionEventsUrl, getGetApiAccountBillingSubscriptionMockHandler, getGetApiAccountBillingSubscriptionResponseMock, getGetApiAccountBillingSubscriptionUrl, getGetApiBillingGatewaysIdLogoMockHandler, getGetApiBillingGatewaysIdLogoUrl, getGetApiBillingGatewaysMockHandler, getGetApiBillingGatewaysResponseMock, getGetApiBillingGatewaysUrl, getGetApiBillingPlansMockHandler, getGetApiBillingPlansResponseMock, getGetApiBillingPlansUrl, getPostApiAccountBillingCancelAbortMockHandler, getPostApiAccountBillingCancelAbortResponseMock, getPostApiAccountBillingCancelAbortUrl, getPostApiAccountBillingCancelMockHandler, getPostApiAccountBillingCancelResponseMock, getPostApiAccountBillingCancelUrl, getPostApiAccountBillingChangePlanMockHandler, getPostApiAccountBillingChangePlanResponseMock, getPostApiAccountBillingChangePlanUrl, getPostApiAccountBillingCustomerPortalMockHandler, getPostApiAccountBillingCustomerPortalResponseMock, getPostApiAccountBillingCustomerPortalUrl, getPostApiAccountBillingManagementMockHandler, getPostApiAccountBillingManagementResponseMock, getPostApiAccountBillingManagementUrl, getPostApiAccountBillingPauseMockHandler, getPostApiAccountBillingPauseResponseMock, getPostApiAccountBillingPauseUrl, getPostApiAccountBillingResumeMockHandler, getPostApiAccountBillingResumeResponseMock, getPostApiAccountBillingResumeUrl, getPostApiAccountBillingWebhooksGatewayTypeMockHandler, getPostApiAccountBillingWebhooksGatewayTypeResponseMock, getPostApiAccountBillingWebhooksGatewayTypeUrl, postApiAccountBillingCancel, postApiAccountBillingCancelAbort, postApiAccountBillingCancelAbortResponse, postApiAccountBillingCancelAbortResponse200, postApiAccountBillingCancelAbortResponse400, postApiAccountBillingCancelAbortResponse401, postApiAccountBillingCancelAbortResponse403, postApiAccountBillingCancelAbortResponse404, postApiAccountBillingCancelAbortResponse500, postApiAccountBillingCancelAbortResponseError, postApiAccountBillingCancelAbortResponseSuccess, postApiAccountBillingCancelResponse, postApiAccountBillingCancelResponse200, postApiAccountBillingCancelResponse400, postApiAccountBillingCancelResponse401, postApiAccountBillingCancelResponse403, postApiAccountBillingCancelResponse404, postApiAccountBillingCancelResponse500, postApiAccountBillingCancelResponseError, postApiAccountBillingCancelResponseSuccess, postApiAccountBillingChangePlan, postApiAccountBillingChangePlanResponse, postApiAccountBillingChangePlanResponse200, postApiAccountBillingChangePlanResponse400, postApiAccountBillingChangePlanResponse401, postApiAccountBillingChangePlanResponse403, postApiAccountBillingChangePlanResponse404, postApiAccountBillingChangePlanResponse500, postApiAccountBillingChangePlanResponseError, postApiAccountBillingChangePlanResponseSuccess, postApiAccountBillingCustomerPortal, postApiAccountBillingCustomerPortalResponse, postApiAccountBillingCustomerPortalResponse200, postApiAccountBillingCustomerPortalResponse400, postApiAccountBillingCustomerPortalResponse401, postApiAccountBillingCustomerPortalResponse403, postApiAccountBillingCustomerPortalResponse404, postApiAccountBillingCustomerPortalResponse500, postApiAccountBillingCustomerPortalResponseError, postApiAccountBillingCustomerPortalResponseSuccess, postApiAccountBillingManagement, postApiAccountBillingManagementResponse, postApiAccountBillingManagementResponse200, postApiAccountBillingManagementResponse400, postApiAccountBillingManagementResponse401, postApiAccountBillingManagementResponse403, postApiAccountBillingManagementResponse404, postApiAccountBillingManagementResponse500, postApiAccountBillingManagementResponseError, postApiAccountBillingManagementResponseSuccess, postApiAccountBillingPause, postApiAccountBillingPauseResponse, postApiAccountBillingPauseResponse200, postApiAccountBillingPauseResponse400, postApiAccountBillingPauseResponse401, postApiAccountBillingPauseResponse403, postApiAccountBillingPauseResponse404, postApiAccountBillingPauseResponse500, postApiAccountBillingPauseResponseError, postApiAccountBillingPauseResponseSuccess, postApiAccountBillingResume, postApiAccountBillingResumeResponse, postApiAccountBillingResumeResponse200, postApiAccountBillingResumeResponse400, postApiAccountBillingResumeResponse401, postApiAccountBillingResumeResponse403, postApiAccountBillingResumeResponse404, postApiAccountBillingResumeResponse500, postApiAccountBillingResumeResponseError, postApiAccountBillingResumeResponseSuccess, postApiAccountBillingWebhooksGatewayType, postApiAccountBillingWebhooksGatewayTypeResponse, postApiAccountBillingWebhooksGatewayTypeResponse200, postApiAccountBillingWebhooksGatewayTypeResponse204, postApiAccountBillingWebhooksGatewayTypeResponse400, postApiAccountBillingWebhooksGatewayTypeResponse401, postApiAccountBillingWebhooksGatewayTypeResponse403, postApiAccountBillingWebhooksGatewayTypeResponse404, postApiAccountBillingWebhooksGatewayTypeResponse413, postApiAccountBillingWebhooksGatewayTypeResponse500, postApiAccountBillingWebhooksGatewayTypeResponseError, postApiAccountBillingWebhooksGatewayTypeResponseSuccess } from "./generated/billing.js";
|
|
3
|
+
import { getApiAccountQuota, getApiAccountQuotaResponse, getApiAccountQuotaResponse200, getApiAccountQuotaResponse400, getApiAccountQuotaResponse404, getApiAccountQuotaResponse500, getApiAccountQuotaResponseError, getApiAccountQuotaResponseSuccess, getGetApiAccountQuotaMockHandler, getGetApiAccountQuotaResponseMock, getGetApiAccountQuotaUrl, getQuotaMock } from "./generated/quota.js";
|
|
4
|
+
export { deleteApiAccount, deleteApiAccountKeysKeyID, deleteApiAccountKeysKeyIDResponse, deleteApiAccountKeysKeyIDResponse200, deleteApiAccountKeysKeyIDResponse400, deleteApiAccountKeysKeyIDResponse404, deleteApiAccountKeysKeyIDResponse500, deleteApiAccountKeysKeyIDResponseError, deleteApiAccountKeysKeyIDResponseSuccess, deleteApiAccountResponse, deleteApiAccountResponse200, deleteApiAccountResponse400, deleteApiAccountResponse404, deleteApiAccountResponse500, deleteApiAccountResponseError, deleteApiAccountResponseSuccess, getApiAccount, getApiAccountAvatar, getApiAccountAvatarResponse, getApiAccountAvatarResponse200, getApiAccountAvatarResponse400, getApiAccountAvatarResponse404, getApiAccountAvatarResponse500, getApiAccountAvatarResponseError, getApiAccountAvatarResponseSuccess, getApiAccountBillingBalance, getApiAccountBillingBalanceResponse, getApiAccountBillingBalanceResponse200, getApiAccountBillingBalanceResponse400, getApiAccountBillingBalanceResponse401, getApiAccountBillingBalanceResponse403, getApiAccountBillingBalanceResponse404, getApiAccountBillingBalanceResponse500, getApiAccountBillingBalanceResponseError, getApiAccountBillingBalanceResponseSuccess, getApiAccountBillingCheckoutSessionSessionIdStatus, getApiAccountBillingCheckoutSessionSessionIdStatusResponse, getApiAccountBillingCheckoutSessionSessionIdStatusResponse200, getApiAccountBillingCheckoutSessionSessionIdStatusResponse400, getApiAccountBillingCheckoutSessionSessionIdStatusResponse401, getApiAccountBillingCheckoutSessionSessionIdStatusResponse403, getApiAccountBillingCheckoutSessionSessionIdStatusResponse404, getApiAccountBillingCheckoutSessionSessionIdStatusResponse500, getApiAccountBillingCheckoutSessionSessionIdStatusResponse501, getApiAccountBillingCheckoutSessionSessionIdStatusResponseError, getApiAccountBillingCheckoutSessionSessionIdStatusResponseSuccess, getApiAccountBillingCheckoutUiPlanId, getApiAccountBillingCheckoutUiPlanIdResponse, getApiAccountBillingCheckoutUiPlanIdResponse200, getApiAccountBillingCheckoutUiPlanIdResponse400, getApiAccountBillingCheckoutUiPlanIdResponse401, getApiAccountBillingCheckoutUiPlanIdResponse403, getApiAccountBillingCheckoutUiPlanIdResponse404, getApiAccountBillingCheckoutUiPlanIdResponse409, getApiAccountBillingCheckoutUiPlanIdResponse500, getApiAccountBillingCheckoutUiPlanIdResponseError, getApiAccountBillingCheckoutUiPlanIdResponseSuccess, getApiAccountBillingCredits, getApiAccountBillingCreditsResponse, getApiAccountBillingCreditsResponse200, getApiAccountBillingCreditsResponse400, getApiAccountBillingCreditsResponse401, getApiAccountBillingCreditsResponse403, getApiAccountBillingCreditsResponse404, getApiAccountBillingCreditsResponse500, getApiAccountBillingCreditsResponseError, getApiAccountBillingCreditsResponseSuccess, getApiAccountBillingManagementCapabilities, getApiAccountBillingManagementCapabilitiesResponse, getApiAccountBillingManagementCapabilitiesResponse200, getApiAccountBillingManagementCapabilitiesResponse400, getApiAccountBillingManagementCapabilitiesResponse401, getApiAccountBillingManagementCapabilitiesResponse403, getApiAccountBillingManagementCapabilitiesResponse404, getApiAccountBillingManagementCapabilitiesResponse500, getApiAccountBillingManagementCapabilitiesResponseError, getApiAccountBillingManagementCapabilitiesResponseSuccess, getApiAccountBillingSubscription, getApiAccountBillingSubscriptionEvents, getApiAccountBillingSubscriptionEventsResponse, getApiAccountBillingSubscriptionEventsResponse200, getApiAccountBillingSubscriptionEventsResponse400, getApiAccountBillingSubscriptionEventsResponse401, getApiAccountBillingSubscriptionEventsResponse403, getApiAccountBillingSubscriptionEventsResponse404, getApiAccountBillingSubscriptionEventsResponse500, getApiAccountBillingSubscriptionEventsResponseError, getApiAccountBillingSubscriptionEventsResponseSuccess, getApiAccountBillingSubscriptionResponse, getApiAccountBillingSubscriptionResponse200, getApiAccountBillingSubscriptionResponse400, getApiAccountBillingSubscriptionResponse401, getApiAccountBillingSubscriptionResponse403, getApiAccountBillingSubscriptionResponse404, getApiAccountBillingSubscriptionResponse500, getApiAccountBillingSubscriptionResponseError, getApiAccountBillingSubscriptionResponseSuccess, getApiAccountKeys, getApiAccountKeysResponse, getApiAccountKeysResponse200, getApiAccountKeysResponse400, getApiAccountKeysResponse404, getApiAccountKeysResponse500, getApiAccountKeysResponseError, getApiAccountKeysResponseSuccess, getApiAccountPermissions, getApiAccountPermissionsResponse, getApiAccountPermissionsResponse200, getApiAccountPermissionsResponse400, getApiAccountPermissionsResponse404, getApiAccountPermissionsResponse500, getApiAccountPermissionsResponseError, getApiAccountPermissionsResponseSuccess, getApiAccountQuota, getApiAccountQuotaHistory, getApiAccountQuotaHistoryResponse, getApiAccountQuotaHistoryResponse200, getApiAccountQuotaHistoryResponse400, getApiAccountQuotaHistoryResponse404, getApiAccountQuotaHistoryResponse500, getApiAccountQuotaHistoryResponseError, getApiAccountQuotaHistoryResponseSuccess, getApiAccountQuotaResponse, getApiAccountQuotaResponse200, getApiAccountQuotaResponse400, getApiAccountQuotaResponse404, getApiAccountQuotaResponse500, getApiAccountQuotaResponseError, getApiAccountQuotaResponseSuccess, getApiAccountResponse, getApiAccountResponse200, getApiAccountResponse400, getApiAccountResponse401, getApiAccountResponse403, getApiAccountResponse404, getApiAccountResponse500, getApiAccountResponseError, getApiAccountResponseSuccess, getApiBillingGateways, getApiBillingGatewaysIdLogo, getApiBillingGatewaysIdLogoResponse, getApiBillingGatewaysIdLogoResponse200, getApiBillingGatewaysIdLogoResponse400, getApiBillingGatewaysIdLogoResponse401, getApiBillingGatewaysIdLogoResponse403, getApiBillingGatewaysIdLogoResponse404, getApiBillingGatewaysIdLogoResponse500, getApiBillingGatewaysIdLogoResponseError, getApiBillingGatewaysIdLogoResponseSuccess, getApiBillingGatewaysResponse, getApiBillingGatewaysResponse200, getApiBillingGatewaysResponse400, getApiBillingGatewaysResponse401, getApiBillingGatewaysResponse403, getApiBillingGatewaysResponse404, getApiBillingGatewaysResponse500, getApiBillingGatewaysResponseError, getApiBillingGatewaysResponseSuccess, getApiBillingPlans, getApiBillingPlansResponse, getApiBillingPlansResponse200, getApiBillingPlansResponse400, getApiBillingPlansResponse401, getApiBillingPlansResponse403, getApiBillingPlansResponse404, getApiBillingPlansResponse500, getApiBillingPlansResponseError, getApiBillingPlansResponseSuccess, getApiOperations, getApiOperationsFilters, getApiOperationsFiltersResponse, getApiOperationsFiltersResponse200, getApiOperationsFiltersResponse400, getApiOperationsFiltersResponse404, getApiOperationsFiltersResponse500, getApiOperationsFiltersResponseError, getApiOperationsFiltersResponseSuccess, getApiOperationsId, getApiOperationsIdResponse, getApiOperationsIdResponse200, getApiOperationsIdResponse400, getApiOperationsIdResponse404, getApiOperationsIdResponse500, getApiOperationsIdResponseError, getApiOperationsIdResponseSuccess, getApiOperationsResponse, getApiOperationsResponse200, getApiOperationsResponse400, getApiOperationsResponse404, getApiOperationsResponse500, getApiOperationsResponseError, getApiOperationsResponseSuccess, getApiUploadLimit, getApiUploadLimitResponse, getApiUploadLimitResponse200, getApiUploadLimitResponse400, getApiUploadLimitResponse404, getApiUploadLimitResponse500, getApiUploadLimitResponseError, getApiUploadLimitResponseSuccess, getBillingMock, getDefaultMock, getDeleteApiAccountKeysKeyIDMockHandler, getDeleteApiAccountKeysKeyIDUrl, getDeleteApiAccountMockHandler, getDeleteApiAccountUrl, getGetApiAccountAvatarMockHandler, getGetApiAccountAvatarUrl, getGetApiAccountBillingBalanceMockHandler, getGetApiAccountBillingBalanceResponseMock, getGetApiAccountBillingBalanceUrl, getGetApiAccountBillingCheckoutSessionSessionIdStatusMockHandler, getGetApiAccountBillingCheckoutSessionSessionIdStatusResponseMock, getGetApiAccountBillingCheckoutSessionSessionIdStatusUrl, getGetApiAccountBillingCheckoutUiPlanIdMockHandler, getGetApiAccountBillingCheckoutUiPlanIdResponseMock, getGetApiAccountBillingCheckoutUiPlanIdUrl, getGetApiAccountBillingCreditsMockHandler, getGetApiAccountBillingCreditsResponseMock, getGetApiAccountBillingCreditsUrl, getGetApiAccountBillingManagementCapabilitiesMockHandler, getGetApiAccountBillingManagementCapabilitiesResponseMock, getGetApiAccountBillingManagementCapabilitiesUrl, getGetApiAccountBillingSubscriptionEventsMockHandler, getGetApiAccountBillingSubscriptionEventsUrl, getGetApiAccountBillingSubscriptionMockHandler, getGetApiAccountBillingSubscriptionResponseMock, getGetApiAccountBillingSubscriptionUrl, getGetApiAccountKeysMockHandler, getGetApiAccountKeysResponseMock, getGetApiAccountKeysUrl, getGetApiAccountMockHandler, getGetApiAccountPermissionsMockHandler, getGetApiAccountPermissionsResponseMock, getGetApiAccountPermissionsUrl, getGetApiAccountQuotaHistoryMockHandler, getGetApiAccountQuotaHistoryResponseMock, getGetApiAccountQuotaHistoryUrl, getGetApiAccountQuotaMockHandler, getGetApiAccountQuotaResponseMock, getGetApiAccountQuotaUrl, getGetApiAccountResponseMock, getGetApiAccountUrl, getGetApiBillingGatewaysIdLogoMockHandler, getGetApiBillingGatewaysIdLogoUrl, getGetApiBillingGatewaysMockHandler, getGetApiBillingGatewaysResponseMock, getGetApiBillingGatewaysUrl, getGetApiBillingPlansMockHandler, getGetApiBillingPlansResponseMock, getGetApiBillingPlansUrl, getGetApiOperationsFiltersMockHandler, getGetApiOperationsFiltersResponseMock, getGetApiOperationsFiltersUrl, getGetApiOperationsIdMockHandler, getGetApiOperationsIdResponseMock, getGetApiOperationsIdUrl, getGetApiOperationsMockHandler, getGetApiOperationsResponseMock, getGetApiOperationsUrl, getGetApiUploadLimitMockHandler, getGetApiUploadLimitResponseMock, getGetApiUploadLimitUrl, getPatchApiAccountMockHandler, getPatchApiAccountUrl, getPostApiAccountAvatarMockHandler, getPostApiAccountAvatarResponseMock, getPostApiAccountAvatarUrl, getPostApiAccountBillingCancelAbortMockHandler, getPostApiAccountBillingCancelAbortResponseMock, getPostApiAccountBillingCancelAbortUrl, getPostApiAccountBillingCancelMockHandler, getPostApiAccountBillingCancelResponseMock, getPostApiAccountBillingCancelUrl, getPostApiAccountBillingChangePlanMockHandler, getPostApiAccountBillingChangePlanResponseMock, getPostApiAccountBillingChangePlanUrl, getPostApiAccountBillingCustomerPortalMockHandler, getPostApiAccountBillingCustomerPortalResponseMock, getPostApiAccountBillingCustomerPortalUrl, getPostApiAccountBillingManagementMockHandler, getPostApiAccountBillingManagementResponseMock, getPostApiAccountBillingManagementUrl, getPostApiAccountBillingPauseMockHandler, getPostApiAccountBillingPauseResponseMock, getPostApiAccountBillingPauseUrl, getPostApiAccountBillingResumeMockHandler, getPostApiAccountBillingResumeResponseMock, getPostApiAccountBillingResumeUrl, getPostApiAccountBillingWebhooksGatewayTypeMockHandler, getPostApiAccountBillingWebhooksGatewayTypeResponseMock, getPostApiAccountBillingWebhooksGatewayTypeUrl, getPostApiAccountKeysMockHandler, getPostApiAccountKeysResponseMock, getPostApiAccountKeysUrl, getPostApiAccountPasswordResetConfirmMockHandler, getPostApiAccountPasswordResetConfirmUrl, getPostApiAccountPasswordResetRequestMockHandler, getPostApiAccountPasswordResetRequestUrl, getPostApiAccountUpdateEmailMockHandler, getPostApiAccountUpdateEmailUrl, getPostApiAccountUpdatePasswordMockHandler, getPostApiAccountUpdatePasswordUrl, getPostApiAccountVerifyEmailMockHandler, getPostApiAccountVerifyEmailResendMockHandler, getPostApiAccountVerifyEmailResendUrl, getPostApiAccountVerifyEmailUrl, getPostApiAuthKeyMockHandler, getPostApiAuthKeyResponseMock, getPostApiAuthKeyUrl, getPostApiAuthLoginMockHandler, getPostApiAuthLoginResponseMock, getPostApiAuthLoginUrl, getPostApiAuthLogoutMockHandler, getPostApiAuthLogoutUrl, getPostApiAuthOtpDisableMockHandler, getPostApiAuthOtpDisableResponseMock, getPostApiAuthOtpDisableUrl, getPostApiAuthOtpGenerateMockHandler, getPostApiAuthOtpGenerateResponseMock, getPostApiAuthOtpGenerateUrl, getPostApiAuthOtpValidateMockHandler, getPostApiAuthOtpValidateUrl, getPostApiAuthOtpVerifyMockHandler, getPostApiAuthOtpVerifyResponseMock, getPostApiAuthOtpVerifyUrl, getPostApiAuthPingMockHandler, getPostApiAuthPingResponseMock, getPostApiAuthPingUrl, getPostApiAuthRegisterMockHandler, getPostApiAuthRegisterUrl, getQuotaMock, patchApiAccount, patchApiAccountResponse, patchApiAccountResponse200, patchApiAccountResponse400, patchApiAccountResponse401, patchApiAccountResponse403, patchApiAccountResponse404, patchApiAccountResponse500, patchApiAccountResponseError, patchApiAccountResponseSuccess, postApiAccountAvatar, postApiAccountAvatarResponse, postApiAccountAvatarResponse200, postApiAccountAvatarResponse204, postApiAccountAvatarResponse400, postApiAccountAvatarResponse404, postApiAccountAvatarResponse500, postApiAccountAvatarResponseError, postApiAccountAvatarResponseSuccess, postApiAccountBillingCancel, postApiAccountBillingCancelAbort, postApiAccountBillingCancelAbortResponse, postApiAccountBillingCancelAbortResponse200, postApiAccountBillingCancelAbortResponse400, postApiAccountBillingCancelAbortResponse401, postApiAccountBillingCancelAbortResponse403, postApiAccountBillingCancelAbortResponse404, postApiAccountBillingCancelAbortResponse500, postApiAccountBillingCancelAbortResponseError, postApiAccountBillingCancelAbortResponseSuccess, postApiAccountBillingCancelResponse, postApiAccountBillingCancelResponse200, postApiAccountBillingCancelResponse400, postApiAccountBillingCancelResponse401, postApiAccountBillingCancelResponse403, postApiAccountBillingCancelResponse404, postApiAccountBillingCancelResponse500, postApiAccountBillingCancelResponseError, postApiAccountBillingCancelResponseSuccess, postApiAccountBillingChangePlan, postApiAccountBillingChangePlanResponse, postApiAccountBillingChangePlanResponse200, postApiAccountBillingChangePlanResponse400, postApiAccountBillingChangePlanResponse401, postApiAccountBillingChangePlanResponse403, postApiAccountBillingChangePlanResponse404, postApiAccountBillingChangePlanResponse500, postApiAccountBillingChangePlanResponseError, postApiAccountBillingChangePlanResponseSuccess, postApiAccountBillingCustomerPortal, postApiAccountBillingCustomerPortalResponse, postApiAccountBillingCustomerPortalResponse200, postApiAccountBillingCustomerPortalResponse400, postApiAccountBillingCustomerPortalResponse401, postApiAccountBillingCustomerPortalResponse403, postApiAccountBillingCustomerPortalResponse404, postApiAccountBillingCustomerPortalResponse500, postApiAccountBillingCustomerPortalResponseError, postApiAccountBillingCustomerPortalResponseSuccess, postApiAccountBillingManagement, postApiAccountBillingManagementResponse, postApiAccountBillingManagementResponse200, postApiAccountBillingManagementResponse400, postApiAccountBillingManagementResponse401, postApiAccountBillingManagementResponse403, postApiAccountBillingManagementResponse404, postApiAccountBillingManagementResponse500, postApiAccountBillingManagementResponseError, postApiAccountBillingManagementResponseSuccess, postApiAccountBillingPause, postApiAccountBillingPauseResponse, postApiAccountBillingPauseResponse200, postApiAccountBillingPauseResponse400, postApiAccountBillingPauseResponse401, postApiAccountBillingPauseResponse403, postApiAccountBillingPauseResponse404, postApiAccountBillingPauseResponse500, postApiAccountBillingPauseResponseError, postApiAccountBillingPauseResponseSuccess, postApiAccountBillingResume, postApiAccountBillingResumeResponse, postApiAccountBillingResumeResponse200, postApiAccountBillingResumeResponse400, postApiAccountBillingResumeResponse401, postApiAccountBillingResumeResponse403, postApiAccountBillingResumeResponse404, postApiAccountBillingResumeResponse500, postApiAccountBillingResumeResponseError, postApiAccountBillingResumeResponseSuccess, postApiAccountBillingWebhooksGatewayType, postApiAccountBillingWebhooksGatewayTypeResponse, postApiAccountBillingWebhooksGatewayTypeResponse200, postApiAccountBillingWebhooksGatewayTypeResponse204, postApiAccountBillingWebhooksGatewayTypeResponse400, postApiAccountBillingWebhooksGatewayTypeResponse401, postApiAccountBillingWebhooksGatewayTypeResponse403, postApiAccountBillingWebhooksGatewayTypeResponse404, postApiAccountBillingWebhooksGatewayTypeResponse413, postApiAccountBillingWebhooksGatewayTypeResponse500, postApiAccountBillingWebhooksGatewayTypeResponseError, postApiAccountBillingWebhooksGatewayTypeResponseSuccess, postApiAccountKeys, postApiAccountKeysResponse, postApiAccountKeysResponse200, postApiAccountKeysResponse400, postApiAccountKeysResponse404, postApiAccountKeysResponse500, postApiAccountKeysResponseError, postApiAccountKeysResponseSuccess, postApiAccountPasswordResetConfirm, postApiAccountPasswordResetConfirmResponse, postApiAccountPasswordResetConfirmResponse200, postApiAccountPasswordResetConfirmResponse400, postApiAccountPasswordResetConfirmResponse404, postApiAccountPasswordResetConfirmResponse500, postApiAccountPasswordResetConfirmResponseError, postApiAccountPasswordResetConfirmResponseSuccess, postApiAccountPasswordResetRequest, postApiAccountPasswordResetRequestResponse, postApiAccountPasswordResetRequestResponse200, postApiAccountPasswordResetRequestResponse400, postApiAccountPasswordResetRequestResponse401, postApiAccountPasswordResetRequestResponse403, postApiAccountPasswordResetRequestResponse404, postApiAccountPasswordResetRequestResponse500, postApiAccountPasswordResetRequestResponseError, postApiAccountPasswordResetRequestResponseSuccess, postApiAccountUpdateEmail, postApiAccountUpdateEmailResponse, postApiAccountUpdateEmailResponse200, postApiAccountUpdateEmailResponse400, postApiAccountUpdateEmailResponse404, postApiAccountUpdateEmailResponse500, postApiAccountUpdateEmailResponseError, postApiAccountUpdateEmailResponseSuccess, postApiAccountUpdatePassword, postApiAccountUpdatePasswordResponse, postApiAccountUpdatePasswordResponse200, postApiAccountUpdatePasswordResponse400, postApiAccountUpdatePasswordResponse404, postApiAccountUpdatePasswordResponse500, postApiAccountUpdatePasswordResponseError, postApiAccountUpdatePasswordResponseSuccess, postApiAccountVerifyEmail, postApiAccountVerifyEmailResend, postApiAccountVerifyEmailResendResponse, postApiAccountVerifyEmailResendResponse200, postApiAccountVerifyEmailResendResponse400, postApiAccountVerifyEmailResendResponse404, postApiAccountVerifyEmailResendResponse500, postApiAccountVerifyEmailResendResponseError, postApiAccountVerifyEmailResendResponseSuccess, postApiAccountVerifyEmailResponse, postApiAccountVerifyEmailResponse200, postApiAccountVerifyEmailResponse400, postApiAccountVerifyEmailResponse404, postApiAccountVerifyEmailResponse500, postApiAccountVerifyEmailResponseError, postApiAccountVerifyEmailResponseSuccess, postApiAuthKey, postApiAuthKeyResponse, postApiAuthKeyResponse200, postApiAuthKeyResponse400, postApiAuthKeyResponse401, postApiAuthKeyResponse403, postApiAuthKeyResponse404, postApiAuthKeyResponse500, postApiAuthKeyResponseError, postApiAuthKeyResponseSuccess, postApiAuthLogin, postApiAuthLoginResponse, postApiAuthLoginResponse200, postApiAuthLoginResponse302, postApiAuthLoginResponse400, postApiAuthLoginResponse401, postApiAuthLoginResponse403, postApiAuthLoginResponse404, postApiAuthLoginResponse500, postApiAuthLoginResponseError, postApiAuthLoginResponseSuccess, postApiAuthLogout, postApiAuthLogoutResponse, postApiAuthLogoutResponse200, postApiAuthLogoutResponse400, postApiAuthLogoutResponse401, postApiAuthLogoutResponse403, postApiAuthLogoutResponse404, postApiAuthLogoutResponse500, postApiAuthLogoutResponseError, postApiAuthLogoutResponseSuccess, postApiAuthOtpDisable, postApiAuthOtpDisableResponse, postApiAuthOtpDisableResponse200, postApiAuthOtpDisableResponse204, postApiAuthOtpDisableResponse400, postApiAuthOtpDisableResponse404, postApiAuthOtpDisableResponse500, postApiAuthOtpDisableResponseError, postApiAuthOtpDisableResponseSuccess, postApiAuthOtpGenerate, postApiAuthOtpGenerateResponse, postApiAuthOtpGenerateResponse200, postApiAuthOtpGenerateResponse400, postApiAuthOtpGenerateResponse401, postApiAuthOtpGenerateResponse403, postApiAuthOtpGenerateResponse404, postApiAuthOtpGenerateResponse500, postApiAuthOtpGenerateResponseError, postApiAuthOtpGenerateResponseSuccess, postApiAuthOtpValidate, postApiAuthOtpValidateResponse, postApiAuthOtpValidateResponse302, postApiAuthOtpValidateResponse400, postApiAuthOtpValidateResponse401, postApiAuthOtpValidateResponse403, postApiAuthOtpValidateResponse404, postApiAuthOtpValidateResponse500, postApiAuthOtpValidateResponseError, postApiAuthOtpVerify, postApiAuthOtpVerifyResponse, postApiAuthOtpVerifyResponse200, postApiAuthOtpVerifyResponse204, postApiAuthOtpVerifyResponse400, postApiAuthOtpVerifyResponse404, postApiAuthOtpVerifyResponse500, postApiAuthOtpVerifyResponseError, postApiAuthOtpVerifyResponseSuccess, postApiAuthPing, postApiAuthPingResponse, postApiAuthPingResponse200, postApiAuthPingResponse400, postApiAuthPingResponse401, postApiAuthPingResponse403, postApiAuthPingResponse404, postApiAuthPingResponse500, postApiAuthPingResponseError, postApiAuthPingResponseSuccess, postApiAuthRegister, postApiAuthRegisterResponse, postApiAuthRegisterResponse200, postApiAuthRegisterResponse400, postApiAuthRegisterResponse401, postApiAuthRegisterResponse403, postApiAuthRegisterResponse404, postApiAuthRegisterResponse409, postApiAuthRegisterResponse500, postApiAuthRegisterResponseError, postApiAuthRegisterResponseSuccess };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { deleteApiAccount, deleteApiAccountKeysKeyID, getApiAccount, getApiAccountAvatar, getApiAccountKeys, getApiAccountPermissions, getApiAccountQuotaHistory, getApiOperations, getApiOperationsFilters, getApiOperationsId, getApiUploadLimit, getDefaultMock, getDeleteApiAccountKeysKeyIDMockHandler, getDeleteApiAccountKeysKeyIDUrl, getDeleteApiAccountMockHandler, getDeleteApiAccountUrl, getGetApiAccountAvatarMockHandler, getGetApiAccountAvatarUrl, getGetApiAccountKeysMockHandler, getGetApiAccountKeysResponseMock, getGetApiAccountKeysUrl, getGetApiAccountMockHandler, getGetApiAccountPermissionsMockHandler, getGetApiAccountPermissionsResponseMock, getGetApiAccountPermissionsUrl, getGetApiAccountQuotaHistoryMockHandler, getGetApiAccountQuotaHistoryResponseMock, getGetApiAccountQuotaHistoryUrl, getGetApiAccountResponseMock, getGetApiAccountUrl, getGetApiOperationsFiltersMockHandler, getGetApiOperationsFiltersResponseMock, getGetApiOperationsFiltersUrl, getGetApiOperationsIdMockHandler, getGetApiOperationsIdResponseMock, getGetApiOperationsIdUrl, getGetApiOperationsMockHandler, getGetApiOperationsResponseMock, getGetApiOperationsUrl, getGetApiUploadLimitMockHandler, getGetApiUploadLimitResponseMock, getGetApiUploadLimitUrl, getPatchApiAccountMockHandler, getPatchApiAccountUrl, getPostApiAccountAvatarMockHandler, getPostApiAccountAvatarResponseMock, getPostApiAccountAvatarUrl, getPostApiAccountKeysMockHandler, getPostApiAccountKeysResponseMock, getPostApiAccountKeysUrl, getPostApiAccountPasswordResetConfirmMockHandler, getPostApiAccountPasswordResetConfirmUrl, getPostApiAccountPasswordResetRequestMockHandler, getPostApiAccountPasswordResetRequestUrl, getPostApiAccountUpdateEmailMockHandler, getPostApiAccountUpdateEmailUrl, getPostApiAccountUpdatePasswordMockHandler, getPostApiAccountUpdatePasswordUrl, getPostApiAccountVerifyEmailMockHandler, getPostApiAccountVerifyEmailResendMockHandler, getPostApiAccountVerifyEmailResendUrl, getPostApiAccountVerifyEmailUrl, getPostApiAuthKeyMockHandler, getPostApiAuthKeyResponseMock, getPostApiAuthKeyUrl, getPostApiAuthLoginMockHandler, getPostApiAuthLoginResponseMock, getPostApiAuthLoginUrl, getPostApiAuthLogoutMockHandler, getPostApiAuthLogoutUrl, getPostApiAuthOtpDisableMockHandler, getPostApiAuthOtpDisableResponseMock, getPostApiAuthOtpDisableUrl, getPostApiAuthOtpGenerateMockHandler, getPostApiAuthOtpGenerateResponseMock, getPostApiAuthOtpGenerateUrl, getPostApiAuthOtpValidateMockHandler, getPostApiAuthOtpValidateUrl, getPostApiAuthOtpVerifyMockHandler, getPostApiAuthOtpVerifyResponseMock, getPostApiAuthOtpVerifyUrl, getPostApiAuthPingMockHandler, getPostApiAuthPingResponseMock, getPostApiAuthPingUrl, getPostApiAuthRegisterMockHandler, getPostApiAuthRegisterUrl, patchApiAccount, postApiAccountAvatar, postApiAccountKeys, postApiAccountPasswordResetConfirm, postApiAccountPasswordResetRequest, postApiAccountUpdateEmail, postApiAccountUpdatePassword, postApiAccountVerifyEmail, postApiAccountVerifyEmailResend, postApiAuthKey, postApiAuthLogin, postApiAuthLogout, postApiAuthOtpDisable, postApiAuthOtpGenerate, postApiAuthOtpValidate, postApiAuthOtpVerify, postApiAuthPing, postApiAuthRegister } from "./generated/default.js";
|
|
2
|
+
import { getApiAccountBillingBalance, getApiAccountBillingCheckoutSessionSessionIdStatus, getApiAccountBillingCheckoutUiPlanId, getApiAccountBillingCredits, getApiAccountBillingManagementCapabilities, getApiAccountBillingSubscription, getApiAccountBillingSubscriptionEvents, getApiBillingGateways, getApiBillingGatewaysIdLogo, getApiBillingPlans, getBillingMock, getGetApiAccountBillingBalanceMockHandler, getGetApiAccountBillingBalanceResponseMock, getGetApiAccountBillingBalanceUrl, getGetApiAccountBillingCheckoutSessionSessionIdStatusMockHandler, getGetApiAccountBillingCheckoutSessionSessionIdStatusResponseMock, getGetApiAccountBillingCheckoutSessionSessionIdStatusUrl, getGetApiAccountBillingCheckoutUiPlanIdMockHandler, getGetApiAccountBillingCheckoutUiPlanIdResponseMock, getGetApiAccountBillingCheckoutUiPlanIdUrl, getGetApiAccountBillingCreditsMockHandler, getGetApiAccountBillingCreditsResponseMock, getGetApiAccountBillingCreditsUrl, getGetApiAccountBillingManagementCapabilitiesMockHandler, getGetApiAccountBillingManagementCapabilitiesResponseMock, getGetApiAccountBillingManagementCapabilitiesUrl, getGetApiAccountBillingSubscriptionEventsMockHandler, getGetApiAccountBillingSubscriptionEventsUrl, getGetApiAccountBillingSubscriptionMockHandler, getGetApiAccountBillingSubscriptionResponseMock, getGetApiAccountBillingSubscriptionUrl, getGetApiBillingGatewaysIdLogoMockHandler, getGetApiBillingGatewaysIdLogoUrl, getGetApiBillingGatewaysMockHandler, getGetApiBillingGatewaysResponseMock, getGetApiBillingGatewaysUrl, getGetApiBillingPlansMockHandler, getGetApiBillingPlansResponseMock, getGetApiBillingPlansUrl, getPostApiAccountBillingCancelAbortMockHandler, getPostApiAccountBillingCancelAbortResponseMock, getPostApiAccountBillingCancelAbortUrl, getPostApiAccountBillingCancelMockHandler, getPostApiAccountBillingCancelResponseMock, getPostApiAccountBillingCancelUrl, getPostApiAccountBillingChangePlanMockHandler, getPostApiAccountBillingChangePlanResponseMock, getPostApiAccountBillingChangePlanUrl, getPostApiAccountBillingCustomerPortalMockHandler, getPostApiAccountBillingCustomerPortalResponseMock, getPostApiAccountBillingCustomerPortalUrl, getPostApiAccountBillingManagementMockHandler, getPostApiAccountBillingManagementResponseMock, getPostApiAccountBillingManagementUrl, getPostApiAccountBillingPauseMockHandler, getPostApiAccountBillingPauseResponseMock, getPostApiAccountBillingPauseUrl, getPostApiAccountBillingResumeMockHandler, getPostApiAccountBillingResumeResponseMock, getPostApiAccountBillingResumeUrl, getPostApiAccountBillingWebhooksGatewayTypeMockHandler, getPostApiAccountBillingWebhooksGatewayTypeResponseMock, getPostApiAccountBillingWebhooksGatewayTypeUrl, postApiAccountBillingCancel, postApiAccountBillingCancelAbort, postApiAccountBillingChangePlan, postApiAccountBillingCustomerPortal, postApiAccountBillingManagement, postApiAccountBillingPause, postApiAccountBillingResume, postApiAccountBillingWebhooksGatewayType } from "./generated/billing.js";
|
|
3
|
+
import { getApiAccountQuota, getGetApiAccountQuotaMockHandler, getGetApiAccountQuotaResponseMock, getGetApiAccountQuotaUrl, getQuotaMock } from "./generated/quota.js";
|
|
4
|
+
|
|
5
|
+
export { deleteApiAccount, deleteApiAccountKeysKeyID, getApiAccount, getApiAccountAvatar, getApiAccountBillingBalance, getApiAccountBillingCheckoutSessionSessionIdStatus, getApiAccountBillingCheckoutUiPlanId, getApiAccountBillingCredits, getApiAccountBillingManagementCapabilities, getApiAccountBillingSubscription, getApiAccountBillingSubscriptionEvents, getApiAccountKeys, getApiAccountPermissions, getApiAccountQuota, getApiAccountQuotaHistory, getApiBillingGateways, getApiBillingGatewaysIdLogo, getApiBillingPlans, getApiOperations, getApiOperationsFilters, getApiOperationsId, getApiUploadLimit, getBillingMock, getDefaultMock, getDeleteApiAccountKeysKeyIDMockHandler, getDeleteApiAccountKeysKeyIDUrl, getDeleteApiAccountMockHandler, getDeleteApiAccountUrl, getGetApiAccountAvatarMockHandler, getGetApiAccountAvatarUrl, getGetApiAccountBillingBalanceMockHandler, getGetApiAccountBillingBalanceResponseMock, getGetApiAccountBillingBalanceUrl, getGetApiAccountBillingCheckoutSessionSessionIdStatusMockHandler, getGetApiAccountBillingCheckoutSessionSessionIdStatusResponseMock, getGetApiAccountBillingCheckoutSessionSessionIdStatusUrl, getGetApiAccountBillingCheckoutUiPlanIdMockHandler, getGetApiAccountBillingCheckoutUiPlanIdResponseMock, getGetApiAccountBillingCheckoutUiPlanIdUrl, getGetApiAccountBillingCreditsMockHandler, getGetApiAccountBillingCreditsResponseMock, getGetApiAccountBillingCreditsUrl, getGetApiAccountBillingManagementCapabilitiesMockHandler, getGetApiAccountBillingManagementCapabilitiesResponseMock, getGetApiAccountBillingManagementCapabilitiesUrl, getGetApiAccountBillingSubscriptionEventsMockHandler, getGetApiAccountBillingSubscriptionEventsUrl, getGetApiAccountBillingSubscriptionMockHandler, getGetApiAccountBillingSubscriptionResponseMock, getGetApiAccountBillingSubscriptionUrl, getGetApiAccountKeysMockHandler, getGetApiAccountKeysResponseMock, getGetApiAccountKeysUrl, getGetApiAccountMockHandler, getGetApiAccountPermissionsMockHandler, getGetApiAccountPermissionsResponseMock, getGetApiAccountPermissionsUrl, getGetApiAccountQuotaHistoryMockHandler, getGetApiAccountQuotaHistoryResponseMock, getGetApiAccountQuotaHistoryUrl, getGetApiAccountQuotaMockHandler, getGetApiAccountQuotaResponseMock, getGetApiAccountQuotaUrl, getGetApiAccountResponseMock, getGetApiAccountUrl, getGetApiBillingGatewaysIdLogoMockHandler, getGetApiBillingGatewaysIdLogoUrl, getGetApiBillingGatewaysMockHandler, getGetApiBillingGatewaysResponseMock, getGetApiBillingGatewaysUrl, getGetApiBillingPlansMockHandler, getGetApiBillingPlansResponseMock, getGetApiBillingPlansUrl, getGetApiOperationsFiltersMockHandler, getGetApiOperationsFiltersResponseMock, getGetApiOperationsFiltersUrl, getGetApiOperationsIdMockHandler, getGetApiOperationsIdResponseMock, getGetApiOperationsIdUrl, getGetApiOperationsMockHandler, getGetApiOperationsResponseMock, getGetApiOperationsUrl, getGetApiUploadLimitMockHandler, getGetApiUploadLimitResponseMock, getGetApiUploadLimitUrl, getPatchApiAccountMockHandler, getPatchApiAccountUrl, getPostApiAccountAvatarMockHandler, getPostApiAccountAvatarResponseMock, getPostApiAccountAvatarUrl, getPostApiAccountBillingCancelAbortMockHandler, getPostApiAccountBillingCancelAbortResponseMock, getPostApiAccountBillingCancelAbortUrl, getPostApiAccountBillingCancelMockHandler, getPostApiAccountBillingCancelResponseMock, getPostApiAccountBillingCancelUrl, getPostApiAccountBillingChangePlanMockHandler, getPostApiAccountBillingChangePlanResponseMock, getPostApiAccountBillingChangePlanUrl, getPostApiAccountBillingCustomerPortalMockHandler, getPostApiAccountBillingCustomerPortalResponseMock, getPostApiAccountBillingCustomerPortalUrl, getPostApiAccountBillingManagementMockHandler, getPostApiAccountBillingManagementResponseMock, getPostApiAccountBillingManagementUrl, getPostApiAccountBillingPauseMockHandler, getPostApiAccountBillingPauseResponseMock, getPostApiAccountBillingPauseUrl, getPostApiAccountBillingResumeMockHandler, getPostApiAccountBillingResumeResponseMock, getPostApiAccountBillingResumeUrl, getPostApiAccountBillingWebhooksGatewayTypeMockHandler, getPostApiAccountBillingWebhooksGatewayTypeResponseMock, getPostApiAccountBillingWebhooksGatewayTypeUrl, getPostApiAccountKeysMockHandler, getPostApiAccountKeysResponseMock, getPostApiAccountKeysUrl, getPostApiAccountPasswordResetConfirmMockHandler, getPostApiAccountPasswordResetConfirmUrl, getPostApiAccountPasswordResetRequestMockHandler, getPostApiAccountPasswordResetRequestUrl, getPostApiAccountUpdateEmailMockHandler, getPostApiAccountUpdateEmailUrl, getPostApiAccountUpdatePasswordMockHandler, getPostApiAccountUpdatePasswordUrl, getPostApiAccountVerifyEmailMockHandler, getPostApiAccountVerifyEmailResendMockHandler, getPostApiAccountVerifyEmailResendUrl, getPostApiAccountVerifyEmailUrl, getPostApiAuthKeyMockHandler, getPostApiAuthKeyResponseMock, getPostApiAuthKeyUrl, getPostApiAuthLoginMockHandler, getPostApiAuthLoginResponseMock, getPostApiAuthLoginUrl, getPostApiAuthLogoutMockHandler, getPostApiAuthLogoutUrl, getPostApiAuthOtpDisableMockHandler, getPostApiAuthOtpDisableResponseMock, getPostApiAuthOtpDisableUrl, getPostApiAuthOtpGenerateMockHandler, getPostApiAuthOtpGenerateResponseMock, getPostApiAuthOtpGenerateUrl, getPostApiAuthOtpValidateMockHandler, getPostApiAuthOtpValidateUrl, getPostApiAuthOtpVerifyMockHandler, getPostApiAuthOtpVerifyResponseMock, getPostApiAuthOtpVerifyUrl, getPostApiAuthPingMockHandler, getPostApiAuthPingResponseMock, getPostApiAuthPingUrl, getPostApiAuthRegisterMockHandler, getPostApiAuthRegisterUrl, getQuotaMock, patchApiAccount, postApiAccountAvatar, postApiAccountBillingCancel, postApiAccountBillingCancelAbort, postApiAccountBillingChangePlan, postApiAccountBillingCustomerPortal, postApiAccountBillingManagement, postApiAccountBillingPause, postApiAccountBillingResume, postApiAccountBillingWebhooksGatewayType, postApiAccountKeys, postApiAccountPasswordResetConfirm, postApiAccountPasswordResetRequest, postApiAccountUpdateEmail, postApiAccountUpdatePassword, postApiAccountVerifyEmail, postApiAccountVerifyEmailResend, postApiAuthKey, postApiAuthLogin, postApiAuthLogout, postApiAuthOtpDisable, postApiAuthOtpGenerate, postApiAuthOtpValidate, postApiAuthOtpVerify, postApiAuthPing, postApiAuthRegister };
|
package/dist/esm/account.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { OperationPollingOptions, Result } from "./types.js";
|
|
2
|
-
import { AccountInfoResponse, LoginRequest, LoginResponse, OTPDisableRequest, OTPGenerateResponse, OTPValidateRequest, OTPVerifyRequest, OperationDetailResponse, OperationFiltersResponseResponse, OperationListItemResponse, PasswordResetRequest, PasswordResetVerifyRequest, PongResponse, RegisterRequest, ResendVerifyEmailRequest, UploadLimitResponse, VerifyEmailRequest } from "./account/generated/accountAPI.schemas.js";
|
|
2
|
+
import { AccountInfoResponse, GetApiAccountQuotaHistoryParams, LoginRequest, LoginResponse, OTPDisableRequest, OTPGenerateResponse, OTPValidateRequest, OTPVerifyRequest, OperationDetailResponse, OperationFiltersResponseResponse, OperationListItemResponse, PasswordResetRequest, PasswordResetVerifyRequest, PongResponse, QuotaHistoryResponse, QuotaStatusResponse, RegisterRequest, ResendVerifyEmailRequest, UploadLimitResponse, VerifyEmailRequest } from "./account/generated/accountAPI.schemas.js";
|
|
3
3
|
import { OperationsListParams } from "./query-utils.js";
|
|
4
4
|
|
|
5
5
|
//#region src/account.d.ts
|
|
@@ -57,6 +57,8 @@ declare class AccountApi {
|
|
|
57
57
|
* @returns Result containing account info
|
|
58
58
|
*/
|
|
59
59
|
info(): Promise<Result<AccountInfoResponse>>;
|
|
60
|
+
quota(): Promise<Result<QuotaStatusResponse>>;
|
|
61
|
+
quotaHistory(params?: GetApiAccountQuotaHistoryParams): Promise<Result<QuotaHistoryResponse>>;
|
|
60
62
|
/**
|
|
61
63
|
* Login to the account service
|
|
62
64
|
* @param loginRequest Login credentials
|
package/dist/esm/account.js
CHANGED
|
@@ -82,6 +82,18 @@ var AccountApi = class {
|
|
|
82
82
|
async info() {
|
|
83
83
|
return this.fetchJson("/api/account", { method: "GET" });
|
|
84
84
|
}
|
|
85
|
+
async quota() {
|
|
86
|
+
return this.fetchJson("/api/account/quota", { method: "GET" });
|
|
87
|
+
}
|
|
88
|
+
async quotaHistory(params) {
|
|
89
|
+
const url = new URL("/api/account/quota/history", this.apiUrl);
|
|
90
|
+
if (params) {
|
|
91
|
+
if (params.start_date) url.searchParams.set("start_date", params.start_date);
|
|
92
|
+
if (params.end_date) url.searchParams.set("end_date", params.end_date);
|
|
93
|
+
if (params.type) url.searchParams.set("type", params.type);
|
|
94
|
+
}
|
|
95
|
+
return this.fetchJson(url.toString(), { method: "GET" });
|
|
96
|
+
}
|
|
85
97
|
/**
|
|
86
98
|
* Login to the account service
|
|
87
99
|
* @param loginRequest Login credentials
|
package/dist/esm/account.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"account.js","names":[],"sources":["../../src/account.ts"],"sourcesContent":["import type { RequestInit } from \"@/types\";\nimport {\n AccountError,\n handleFetchError,\n handleUnknownError,\n OperationPollingOptions,\n Result,\n} from \"@/types\";\n\nimport {\n AccountInfoResponse,\n GetApiOperationsParams,\n LoginRequest,\n LoginResponse,\n OperationDetailResponse,\n OperationFiltersResponseResponse,\n OperationListItemResponse,\n OTPDisableRequest,\n OTPGenerateResponse,\n OTPValidateRequest,\n OTPVerifyRequest,\n PasswordResetRequest,\n PasswordResetVerifyRequest,\n PongResponse,\n RegisterRequest,\n ResendVerifyEmailRequest,\n UploadLimitResponse,\n VerifyEmailRequest,\n} from \"@/account/generated\";\nimport type {\n OperationsListParams,\n} from \"@/query-utils\";\nimport { buildOperationsQueryParams } from \"@/query-utils\";\nimport { delay, parseResponse, poll } from \"@/http-utils\";\n\n/**\n * Operation status constants\n */\nconst OPERATION_STATUS = {\n COMPLETED: \"completed\",\n FAILED: \"failed\",\n ERROR: \"error\",\n PENDING: \"pending\",\n RUNNING: \"running\",\n} as const;\n\n/**\n * Default settled states for operations\n */\nconst DEFAULT_SETTLED_STATES = [\n OPERATION_STATUS.COMPLETED,\n OPERATION_STATUS.FAILED,\n OPERATION_STATUS.ERROR,\n] as const;\n\ntype SettledState = typeof DEFAULT_SETTLED_STATES[number];\n\nexport { DEFAULT_SETTLED_STATES, OPERATION_STATUS, type SettledState };\n\nexport class AccountApi {\n private _jwtToken?: string;\n private readonly apiUrl: string;\n\n /**\n * Gets the current JWT token\n * @returns {string|undefined} The current JWT token or undefined if not set\n */\n private get jwtToken(): string | undefined {\n return this._jwtToken;\n }\n\n /**\n * Creates a new AccountApi instance\n * @param {string} apiUrl - The base API URL\n */\n constructor(apiUrl: string) {\n const apiUrlParsed = new URL(apiUrl);\n apiUrlParsed.hostname = `account.${apiUrlParsed.hostname}`;\n this.apiUrl = apiUrlParsed.toString();\n }\n\n /**\n * Clears the current JWT token\n */\n public clearToken(): void {\n this._jwtToken = undefined;\n }\n\n /**\n * Confirm a password reset\n * @param passwordResetVerifyRequest Password reset verification details\n * @returns Result indicating success or failure\n */\n public async confirmPasswordReset(\n passwordResetVerifyRequest: PasswordResetVerifyRequest,\n ): Promise<Result<void>> {\n return this.fetchJson<void>(\"/api/account/password-reset/confirm\", {\n body: JSON.stringify(passwordResetVerifyRequest),\n method: \"POST\",\n });\n }\n\n /**\n * Disable OTP for two-factor authentication\n * @param otpDisableRequest OTP disable request details\n * @returns Result indicating success or failure\n */\n public async disableOtp(\n otpDisableRequest: OTPDisableRequest,\n ): Promise<Result<void>> {\n return this.fetchJson<void>(\"/api/auth/otp/disable\", {\n body: JSON.stringify(otpDisableRequest),\n method: \"POST\",\n });\n }\n\n /**\n * Generate OTP for two-factor authentication\n * @returns Result containing OTP response\n */\n public async generateOtp(): Promise<Result<OTPGenerateResponse>> {\n return this.fetchJson<OTPGenerateResponse>(\"/api/auth/otp/generate\", {\n method: \"GET\",\n });\n }\n\n /**\n * Get account information\n * @returns Result containing account info\n */\n public async info(): Promise<Result<AccountInfoResponse>> {\n return this.fetchJson<AccountInfoResponse>(\"/api/account\", {\n method: \"GET\",\n });\n }\n\n /**\n * Login to the account service\n * @param loginRequest Login credentials\n * @returns Result containing login response or error\n */\n public async login(\n loginRequest: LoginRequest,\n ): Promise<Result<LoginResponse>> {\n const result = await this.fetchJson<LoginResponse>(\"/api/auth/login\", {\n body: JSON.stringify(loginRequest),\n method: \"POST\",\n });\n\n if (result.success && result.data?.token) {\n this.setToken(result.data.token);\n }\n\n return result;\n }\n\n /**\n * Logout from the account service\n * @returns Result indicating success or failure\n */\n public async logout(): Promise<Result<void>> {\n const result = await this.fetchJson<void>(\"/api/auth/logout\", {\n method: \"POST\",\n });\n\n if (result.success) {\n this.clearToken();\n }\n\n return result;\n }\n\n /**\n * Check authentication status\n * @returns Result containing ping response\n */\n public async ping(): Promise<Result<PongResponse>> {\n const result = await this.fetchJson<PongResponse>(\"/api/auth/ping\", {\n method: \"POST\",\n });\n\n if (result.success && result.data?.token) {\n this.setToken(result.data.token);\n }\n\n return result;\n }\n\n /**\n * Register a new account\n * @param registerRequest Registration details\n * @returns Result indicating success or failure\n */\n public async register(\n registerRequest: RegisterRequest,\n ): Promise<Result<void>> {\n return this.fetchJson<void>(\"/api/auth/register\", {\n body: JSON.stringify(registerRequest),\n method: \"POST\",\n });\n }\n\n /**\n * Request account deletion\n * @returns Result indicating success or failure\n */\n public async requestAccountDeletion(): Promise<Result<void>> {\n return this.fetchJson<void>(\"/api/account/delete\", {\n method: \"DELETE\",\n });\n }\n\n /**\n * Request email verification to be resent\n * @param resendRequest Email details for verification\n * @returns Result indicating success or failure\n */\n public async requestEmailVerification(\n resendRequest: ResendVerifyEmailRequest,\n ): Promise<Result<void>> {\n return this.fetchJson<void>(\"/api/account/verify-email/resend\", {\n body: JSON.stringify(resendRequest),\n method: \"POST\",\n });\n }\n\n /**\n * Request a password reset\n * @param passwordResetRequest Password reset request details\n * @returns Result indicating success or failure\n */\n public async requestPasswordReset(\n passwordResetRequest: PasswordResetRequest,\n ): Promise<Result<void>> {\n return this.fetchJson<void>(\"/api/account/password-reset/request\", {\n body: JSON.stringify(passwordResetRequest),\n method: \"POST\",\n });\n }\n\n /**\n * Sets the JWT token for authentication\n * @param {string} token - The JWT token to set\n */\n public setToken(token: string): void {\n this._jwtToken = token;\n }\n\n /**\n * Update account email address\n * @param email New email address\n * @param password Current password for verification\n * @returns Result indicating success or failure\n */\n public async updateEmail(\n email: string,\n password: string,\n ): Promise<Result<void>> {\n return this.fetchJson<void>(\"/api/account/update-email\", {\n body: JSON.stringify({ email, password }),\n method: \"POST\",\n });\n }\n\n /**\n * Update account password\n * @param currentPassword Current password for verification\n * @param newPassword New password to set\n * @returns Result indicating success or failure\n */\n public async updatePassword(\n currentPassword: string,\n newPassword: string,\n ): Promise<Result<void>> {\n return this.fetchJson<void>(\"/api/account/update-password\", {\n body: JSON.stringify({\n current_password: currentPassword,\n new_password: newPassword,\n }),\n method: \"POST\",\n });\n }\n\n /**\n * Get upload limit information\n * @returns Result containing upload limit info\n */\n public async uploadLimit(): Promise<Result<UploadLimitResponse>> {\n return this.fetchJson<UploadLimitResponse>(\"/api/upload-limit\", {\n method: \"GET\",\n });\n }\n\n /**\n * Validate OTP for two-factor authentication login\n * @param otpValidateRequest OTP validation details\n * @returns Result containing login response\n */\n public async validateOtp(\n otpValidateRequest: OTPValidateRequest,\n ): Promise<Result<LoginResponse>> {\n const result = await this.fetchJson<LoginResponse>(\n \"/api/auth/otp/validate\",\n {\n body: JSON.stringify(otpValidateRequest),\n method: \"POST\",\n },\n );\n\n if (result.success && result.data?.token) {\n this.setToken(result.data.token);\n }\n\n return result;\n }\n\n /**\n * Verify email address\n * @param verifyEmailRequest Email verification details\n * @param login Optional flag to enable auto-login after verification\n * @returns Result indicating success or failure\n */\n public async verifyEmail(\n verifyEmailRequest: VerifyEmailRequest,\n login?: boolean,\n ): Promise<Result<void>> {\n const url = new URL(\"/api/account/verify-email\", this.apiUrl);\n if (login === true) {\n url.searchParams.set(\"login\", \"true\");\n }\n return this.fetchJson<void>(url.toString(), {\n body: JSON.stringify(verifyEmailRequest),\n method: \"POST\",\n });\n }\n\n /**\n * Verify OTP for enabling two-factor authentication\n * @param otpVerifyRequest OTP verification details\n * @returns Result indicating success or failure\n */\n public async verifyOtp(\n otpVerifyRequest: OTPVerifyRequest,\n ): Promise<Result<void>> {\n return this.fetchJson<void>(\"/api/auth/otp/verify\", {\n body: JSON.stringify(otpVerifyRequest),\n method: \"POST\",\n });\n }\n\n /**\n * List operations with filtering, searching, and pagination\n * \n * @param params Query parameters using query-builder helpers\n * @returns Result containing list of operations\n * \n * @example\n * ```ts\n * const result = await accountApi.listOperations({\n * filters: [\n * { field: \"status\", operator: \"eq\", value: \"completed\" },\n * { field: \"operation\", operator: \"in\", value: [\"upload\", \"download\"] }\n * ],\n * sorters: [{ field: \"id\", order: \"desc\" }],\n * pagination: { start: 0, end: 20, page: 1, pageSize: 20 },\n * search: \"myfile\"\n * });\n * ```\n */\n public async listOperations(\n params?: OperationsListParams,\n ): Promise<Result<OperationListItemResponse>> {\n const url = new URL(\"/api/operations\", this.apiUrl);\n \n if (params) {\n const searchParams = buildOperationsQueryParams(params);\n searchParams.forEach((value, key) => {\n url.searchParams.append(key, value);\n });\n }\n \n return this.fetchJson<OperationListItemResponse>(url.toString(), {\n method: \"GET\",\n });\n }\n\n /**\n * Get detailed information for a specific operation\n * @param id The operation ID\n * @returns Result containing operation details\n */\n public async getOperation(\n id: number,\n ): Promise<Result<OperationDetailResponse>> {\n return this.fetchJson<OperationDetailResponse>(`/api/operations/${id}`, {\n method: \"GET\",\n });\n }\n\n /**\n * Get available filter values for operations\n * @returns Result containing filter options\n */\n public async getOperationFilters(): Promise<Result<OperationFiltersResponseResponse>> {\n return this.fetchJson<OperationFiltersResponseResponse>(\"/api/operations/filters\", {\n method: \"GET\",\n });\n }\n\n /**\n * Wait for an operation to complete or reach a settled state\n * @param id The operation ID to wait for\n * @param options Polling options (interval, timeout, settledStates)\n * @returns Result containing the final operation details\n */\n public async waitForOperation(\n id: number,\n options: OperationPollingOptions = {},\n ): Promise<Result<OperationDetailResponse>> {\n const {\n interval = 2000,\n timeout = 300000,\n settledStates = DEFAULT_SETTLED_STATES,\n } = options;\n\n const settledStatesSet = new Set(settledStates);\n\n return poll(\n () => this.getOperation(id),\n (operation) => {\n return !!(operation.status && settledStatesSet.has(operation.status.toLowerCase()));\n },\n { interval, timeout },\n );\n }\n\n /**\n * Builds fetch options with authorization headers\n * @param {RequestInit} [init] - Optional initial request options\n * @returns {RequestInit} The constructed request options\n * @private\n */\n private buildOptions(init: RequestInit = {}): RequestInit {\n const headers: Record<string, string> = {\n \"Content-Type\": \"application/json\",\n ...init.headers!,\n };\n\n if (this.jwtToken) {\n headers.Authorization = `Bearer ${this.jwtToken}`;\n }\n\n return {\n ...init,\n credentials: \"include\",\n headers,\n };\n }\n\n /**\n * Makes a JSON request to the API\n * @template T\n * @param {string} input - The API endpoint path or absolute URL\n * @param {RequestInit} [init] - Optional request initialization\n * @returns {Promise<Result<T>>} Promise resolving to the result\n * @private\n */\n private async fetchJson<T>(\n input: string,\n init: RequestInit = {},\n ): Promise<Result<T>> {\n try {\n const response = await fetch(\n new URL(input, this.apiUrl).toString(),\n this.buildOptions(init),\n );\n\n if (!response.ok) {\n return {\n error: await handleFetchError(response),\n success: false,\n };\n }\n\n const data = await parseResponse<T>(response);\n return {\n data,\n success: true,\n };\n } catch (e) {\n let error: AccountError;\n if (e instanceof Response) {\n error = await handleFetchError(e);\n } else {\n error = await handleUnknownError(e);\n }\n return {\n error,\n success: false,\n };\n }\n }\n}\n"],"mappings":";;;;;;;;AAsCA,MAAM,mBAAmB;CACvB,WAAW;CACX,QAAQ;CACR,OAAO;CACP,SAAS;CACT,SAAS;CACV;;;;AAKD,MAAM,yBAAyB;CAC7B,iBAAiB;CACjB,iBAAiB;CACjB,iBAAiB;CAClB;AAMD,IAAa,aAAb,MAAwB;CACtB,AAAQ;CACR,AAAiB;;;;;CAMjB,IAAY,WAA+B;AACzC,SAAO,KAAK;;;;;;CAOd,YAAY,QAAgB;EAC1B,MAAM,eAAe,IAAI,IAAI,OAAO;AACpC,eAAa,WAAW,WAAW,aAAa;AAChD,OAAK,SAAS,aAAa,UAAU;;;;;CAMvC,AAAO,aAAmB;AACxB,OAAK,YAAY;;;;;;;CAQnB,MAAa,qBACX,4BACuB;AACvB,SAAO,KAAK,UAAgB,uCAAuC;GACjE,MAAM,KAAK,UAAU,2BAA2B;GAChD,QAAQ;GACT,CAAC;;;;;;;CAQJ,MAAa,WACX,mBACuB;AACvB,SAAO,KAAK,UAAgB,yBAAyB;GACnD,MAAM,KAAK,UAAU,kBAAkB;GACvC,QAAQ;GACT,CAAC;;;;;;CAOJ,MAAa,cAAoD;AAC/D,SAAO,KAAK,UAA+B,0BAA0B,EACnE,QAAQ,OACT,CAAC;;;;;;CAOJ,MAAa,OAA6C;AACxD,SAAO,KAAK,UAA+B,gBAAgB,EACzD,QAAQ,OACT,CAAC;;;;;;;CAQJ,MAAa,MACX,cACgC;EAChC,MAAM,SAAS,MAAM,KAAK,UAAyB,mBAAmB;GACpE,MAAM,KAAK,UAAU,aAAa;GAClC,QAAQ;GACT,CAAC;AAEF,MAAI,OAAO,WAAW,OAAO,MAAM,MACjC,MAAK,SAAS,OAAO,KAAK,MAAM;AAGlC,SAAO;;;;;;CAOT,MAAa,SAAgC;EAC3C,MAAM,SAAS,MAAM,KAAK,UAAgB,oBAAoB,EAC5D,QAAQ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,CACtB;;;;;;;;CASH,AAAQ,aAAa,OAAoB,EAAE,EAAe;EACxD,MAAM,UAAkC;GACtC,gBAAgB;GAChB,GAAG,KAAK;GACT;AAED,MAAI,KAAK,SACP,SAAQ,gBAAgB,UAAU,KAAK;AAGzC,SAAO;GACL,GAAG;GACH,aAAa;GACb;GACD;;;;;;;;;;CAWH,MAAc,UACZ,OACA,OAAoB,EAAE,EACF;AACpB,MAAI;GACF,MAAM,WAAW,MAAM,MACrB,IAAI,IAAI,OAAO,KAAK,OAAO,CAAC,UAAU,EACtC,KAAK,aAAa,KAAK,CACxB;AAED,OAAI,CAAC,SAAS,GACZ,QAAO;IACL,OAAO,MAAM,iBAAiB,SAAS;IACvC,SAAS;IACV;AAIH,UAAO;IACL,YAFiB,cAAiB,SAAS;IAG3C,SAAS;IACV;WACM,GAAG;GACV,IAAI;AACJ,OAAI,aAAa,SACf,SAAQ,MAAM,iBAAiB,EAAE;OAEjC,SAAQ,MAAM,mBAAmB,EAAE;AAErC,UAAO;IACL;IACA,SAAS;IACV"}
|
|
1
|
+
{"version":3,"file":"account.js","names":[],"sources":["../../src/account.ts"],"sourcesContent":["import type { RequestInit } from \"@/types\";\nimport {\n AccountError,\n handleFetchError,\n handleUnknownError,\n OperationPollingOptions,\n Result,\n} from \"@/types\";\n\nimport {\n AccountInfoResponse,\n GetApiAccountQuotaHistoryParams,\n LoginRequest,\n LoginResponse,\n OperationDetailResponse,\n OperationFiltersResponseResponse,\n OperationListItemResponse,\n OTPDisableRequest,\n OTPGenerateResponse,\n OTPValidateRequest,\n OTPVerifyRequest,\n PasswordResetRequest,\n PasswordResetVerifyRequest,\n PongResponse,\n QuotaHistoryResponse,\n QuotaStatusResponse,\n RegisterRequest,\n ResendVerifyEmailRequest,\n UploadLimitResponse,\n VerifyEmailRequest,\n} from \"@/account/generated\";\nimport type {\n OperationsListParams,\n} from \"@/query-utils\";\nimport { buildOperationsQueryParams } from \"@/query-utils\";\nimport { delay, parseResponse, poll } from \"@/http-utils\";\n\n/**\n * Operation status constants\n */\nconst OPERATION_STATUS = {\n COMPLETED: \"completed\",\n FAILED: \"failed\",\n ERROR: \"error\",\n PENDING: \"pending\",\n RUNNING: \"running\",\n} as const;\n\n/**\n * Default settled states for operations\n */\nconst DEFAULT_SETTLED_STATES = [\n OPERATION_STATUS.COMPLETED,\n OPERATION_STATUS.FAILED,\n OPERATION_STATUS.ERROR,\n] as const;\n\ntype SettledState = typeof DEFAULT_SETTLED_STATES[number];\n\nexport { DEFAULT_SETTLED_STATES, OPERATION_STATUS, type SettledState };\n\nexport class AccountApi {\n private _jwtToken?: string;\n private readonly apiUrl: string;\n\n /**\n * Gets the current JWT token\n * @returns {string|undefined} The current JWT token or undefined if not set\n */\n private get jwtToken(): string | undefined {\n return this._jwtToken;\n }\n\n /**\n * Creates a new AccountApi instance\n * @param {string} apiUrl - The base API URL\n */\n constructor(apiUrl: string) {\n const apiUrlParsed = new URL(apiUrl);\n apiUrlParsed.hostname = `account.${apiUrlParsed.hostname}`;\n this.apiUrl = apiUrlParsed.toString();\n }\n\n /**\n * Clears the current JWT token\n */\n public clearToken(): void {\n this._jwtToken = undefined;\n }\n\n /**\n * Confirm a password reset\n * @param passwordResetVerifyRequest Password reset verification details\n * @returns Result indicating success or failure\n */\n public async confirmPasswordReset(\n passwordResetVerifyRequest: PasswordResetVerifyRequest,\n ): Promise<Result<void>> {\n return this.fetchJson<void>(\"/api/account/password-reset/confirm\", {\n body: JSON.stringify(passwordResetVerifyRequest),\n method: \"POST\",\n });\n }\n\n /**\n * Disable OTP for two-factor authentication\n * @param otpDisableRequest OTP disable request details\n * @returns Result indicating success or failure\n */\n public async disableOtp(\n otpDisableRequest: OTPDisableRequest,\n ): Promise<Result<void>> {\n return this.fetchJson<void>(\"/api/auth/otp/disable\", {\n body: JSON.stringify(otpDisableRequest),\n method: \"POST\",\n });\n }\n\n /**\n * Generate OTP for two-factor authentication\n * @returns Result containing OTP response\n */\n public async generateOtp(): Promise<Result<OTPGenerateResponse>> {\n return this.fetchJson<OTPGenerateResponse>(\"/api/auth/otp/generate\", {\n method: \"GET\",\n });\n }\n\n /**\n * Get account information\n * @returns Result containing account info\n */\n public async info(): Promise<Result<AccountInfoResponse>> {\n return this.fetchJson<AccountInfoResponse>(\"/api/account\", {\n method: \"GET\",\n });\n }\n\n public async quota(): Promise<Result<QuotaStatusResponse>> {\n return this.fetchJson<QuotaStatusResponse>(\"/api/account/quota\", {\n method: \"GET\",\n });\n }\n\n public async quotaHistory(\n params?: GetApiAccountQuotaHistoryParams,\n ): Promise<Result<QuotaHistoryResponse>> {\n const url = new URL(\"/api/account/quota/history\", this.apiUrl);\n\n if (params) {\n if (params.start_date) {\n url.searchParams.set(\"start_date\", params.start_date);\n }\n if (params.end_date) {\n url.searchParams.set(\"end_date\", params.end_date);\n }\n if (params.type) {\n url.searchParams.set(\"type\", params.type);\n }\n }\n\n return this.fetchJson<QuotaHistoryResponse>(url.toString(), {\n method: \"GET\",\n });\n }\n\n /**\n * Login to the account service\n * @param loginRequest Login credentials\n * @returns Result containing login response or error\n */\n public async login(\n loginRequest: LoginRequest,\n ): Promise<Result<LoginResponse>> {\n const result = await this.fetchJson<LoginResponse>(\"/api/auth/login\", {\n body: JSON.stringify(loginRequest),\n method: \"POST\",\n });\n\n if (result.success && result.data?.token) {\n this.setToken(result.data.token);\n }\n\n return result;\n }\n\n /**\n * Logout from the account service\n * @returns Result indicating success or failure\n */\n public async logout(): Promise<Result<void>> {\n const result = await this.fetchJson<void>(\"/api/auth/logout\", {\n method: \"POST\",\n });\n\n if (result.success) {\n this.clearToken();\n }\n\n return result;\n }\n\n /**\n * Check authentication status\n * @returns Result containing ping response\n */\n public async ping(): Promise<Result<PongResponse>> {\n const result = await this.fetchJson<PongResponse>(\"/api/auth/ping\", {\n method: \"POST\",\n });\n\n if (result.success && result.data?.token) {\n this.setToken(result.data.token);\n }\n\n return result;\n }\n\n /**\n * Register a new account\n * @param registerRequest Registration details\n * @returns Result indicating success or failure\n */\n public async register(\n registerRequest: RegisterRequest,\n ): Promise<Result<void>> {\n return this.fetchJson<void>(\"/api/auth/register\", {\n body: JSON.stringify(registerRequest),\n method: \"POST\",\n });\n }\n\n /**\n * Request account deletion\n * @returns Result indicating success or failure\n */\n public async requestAccountDeletion(): Promise<Result<void>> {\n return this.fetchJson<void>(\"/api/account/delete\", {\n method: \"DELETE\",\n });\n }\n\n /**\n * Request email verification to be resent\n * @param resendRequest Email details for verification\n * @returns Result indicating success or failure\n */\n public async requestEmailVerification(\n resendRequest: ResendVerifyEmailRequest,\n ): Promise<Result<void>> {\n return this.fetchJson<void>(\"/api/account/verify-email/resend\", {\n body: JSON.stringify(resendRequest),\n method: \"POST\",\n });\n }\n\n /**\n * Request a password reset\n * @param passwordResetRequest Password reset request details\n * @returns Result indicating success or failure\n */\n public async requestPasswordReset(\n passwordResetRequest: PasswordResetRequest,\n ): Promise<Result<void>> {\n return this.fetchJson<void>(\"/api/account/password-reset/request\", {\n body: JSON.stringify(passwordResetRequest),\n method: \"POST\",\n });\n }\n\n /**\n * Sets the JWT token for authentication\n * @param {string} token - The JWT token to set\n */\n public setToken(token: string): void {\n this._jwtToken = token;\n }\n\n /**\n * Update account email address\n * @param email New email address\n * @param password Current password for verification\n * @returns Result indicating success or failure\n */\n public async updateEmail(\n email: string,\n password: string,\n ): Promise<Result<void>> {\n return this.fetchJson<void>(\"/api/account/update-email\", {\n body: JSON.stringify({ email, password }),\n method: \"POST\",\n });\n }\n\n /**\n * Update account password\n * @param currentPassword Current password for verification\n * @param newPassword New password to set\n * @returns Result indicating success or failure\n */\n public async updatePassword(\n currentPassword: string,\n newPassword: string,\n ): Promise<Result<void>> {\n return this.fetchJson<void>(\"/api/account/update-password\", {\n body: JSON.stringify({\n current_password: currentPassword,\n new_password: newPassword,\n }),\n method: \"POST\",\n });\n }\n\n /**\n * Get upload limit information\n * @returns Result containing upload limit info\n */\n public async uploadLimit(): Promise<Result<UploadLimitResponse>> {\n return this.fetchJson<UploadLimitResponse>(\"/api/upload-limit\", {\n method: \"GET\",\n });\n }\n\n /**\n * Validate OTP for two-factor authentication login\n * @param otpValidateRequest OTP validation details\n * @returns Result containing login response\n */\n public async validateOtp(\n otpValidateRequest: OTPValidateRequest,\n ): Promise<Result<LoginResponse>> {\n const result = await this.fetchJson<LoginResponse>(\n \"/api/auth/otp/validate\",\n {\n body: JSON.stringify(otpValidateRequest),\n method: \"POST\",\n },\n );\n\n if (result.success && result.data?.token) {\n this.setToken(result.data.token);\n }\n\n return result;\n }\n\n /**\n * Verify email address\n * @param verifyEmailRequest Email verification details\n * @param login Optional flag to enable auto-login after verification\n * @returns Result indicating success or failure\n */\n public async verifyEmail(\n verifyEmailRequest: VerifyEmailRequest,\n login?: boolean,\n ): Promise<Result<void>> {\n const url = new URL(\"/api/account/verify-email\", this.apiUrl);\n if (login === true) {\n url.searchParams.set(\"login\", \"true\");\n }\n return this.fetchJson<void>(url.toString(), {\n body: JSON.stringify(verifyEmailRequest),\n method: \"POST\",\n });\n }\n\n /**\n * Verify OTP for enabling two-factor authentication\n * @param otpVerifyRequest OTP verification details\n * @returns Result indicating success or failure\n */\n public async verifyOtp(\n otpVerifyRequest: OTPVerifyRequest,\n ): Promise<Result<void>> {\n return this.fetchJson<void>(\"/api/auth/otp/verify\", {\n body: JSON.stringify(otpVerifyRequest),\n method: \"POST\",\n });\n }\n\n /**\n * List operations with filtering, searching, and pagination\n * \n * @param params Query parameters using query-builder helpers\n * @returns Result containing list of operations\n * \n * @example\n * ```ts\n * const result = await accountApi.listOperations({\n * filters: [\n * { field: \"status\", operator: \"eq\", value: \"completed\" },\n * { field: \"operation\", operator: \"in\", value: [\"upload\", \"download\"] }\n * ],\n * sorters: [{ field: \"id\", order: \"desc\" }],\n * pagination: { start: 0, end: 20, page: 1, pageSize: 20 },\n * search: \"myfile\"\n * });\n * ```\n */\n public async listOperations(\n params?: OperationsListParams,\n ): Promise<Result<OperationListItemResponse>> {\n const url = new URL(\"/api/operations\", this.apiUrl);\n \n if (params) {\n const searchParams = buildOperationsQueryParams(params);\n searchParams.forEach((value, key) => {\n url.searchParams.append(key, value);\n });\n }\n \n return this.fetchJson<OperationListItemResponse>(url.toString(), {\n method: \"GET\",\n });\n }\n\n /**\n * Get detailed information for a specific operation\n * @param id The operation ID\n * @returns Result containing operation details\n */\n public async getOperation(\n id: number,\n ): Promise<Result<OperationDetailResponse>> {\n return this.fetchJson<OperationDetailResponse>(`/api/operations/${id}`, {\n method: \"GET\",\n });\n }\n\n /**\n * Get available filter values for operations\n * @returns Result containing filter options\n */\n public async getOperationFilters(): Promise<Result<OperationFiltersResponseResponse>> {\n return this.fetchJson<OperationFiltersResponseResponse>(\"/api/operations/filters\", {\n method: \"GET\",\n });\n }\n\n /**\n * Wait for an operation to complete or reach a settled state\n * @param id The operation ID to wait for\n * @param options Polling options (interval, timeout, settledStates)\n * @returns Result containing the final operation details\n */\n public async waitForOperation(\n id: number,\n options: OperationPollingOptions = {},\n ): Promise<Result<OperationDetailResponse>> {\n const {\n interval = 2000,\n timeout = 300000,\n settledStates = DEFAULT_SETTLED_STATES,\n } = options;\n\n const settledStatesSet = new Set(settledStates);\n\n return poll(\n () => this.getOperation(id),\n (operation) => {\n return !!(operation.status && settledStatesSet.has(operation.status.toLowerCase()));\n },\n { interval, timeout },\n );\n }\n\n /**\n * Builds fetch options with authorization headers\n * @param {RequestInit} [init] - Optional initial request options\n * @returns {RequestInit} The constructed request options\n * @private\n */\n private buildOptions(init: RequestInit = {}): RequestInit {\n const headers: Record<string, string> = {\n \"Content-Type\": \"application/json\",\n ...init.headers!,\n };\n\n if (this.jwtToken) {\n headers.Authorization = `Bearer ${this.jwtToken}`;\n }\n\n return {\n ...init,\n credentials: \"include\",\n headers,\n };\n }\n\n /**\n * Makes a JSON request to the API\n * @template T\n * @param {string} input - The API endpoint path or absolute URL\n * @param {RequestInit} [init] - Optional request initialization\n * @returns {Promise<Result<T>>} Promise resolving to the result\n * @private\n */\n private async fetchJson<T>(\n input: string,\n init: RequestInit = {},\n ): Promise<Result<T>> {\n try {\n const response = await fetch(\n new URL(input, this.apiUrl).toString(),\n this.buildOptions(init),\n );\n\n if (!response.ok) {\n return {\n error: await handleFetchError(response),\n success: false,\n };\n }\n\n const data = await parseResponse<T>(response);\n return {\n data,\n success: true,\n };\n } catch (e) {\n let error: AccountError;\n if (e instanceof Response) {\n error = await handleFetchError(e);\n } else {\n error = await handleUnknownError(e);\n }\n return {\n error,\n success: false,\n };\n }\n }\n}\n"],"mappings":";;;;;;;;AAwCA,MAAM,mBAAmB;CACvB,WAAW;CACX,QAAQ;CACR,OAAO;CACP,SAAS;CACT,SAAS;CACV;;;;AAKD,MAAM,yBAAyB;CAC7B,iBAAiB;CACjB,iBAAiB;CACjB,iBAAiB;CAClB;AAMD,IAAa,aAAb,MAAwB;CACtB,AAAQ;CACR,AAAiB;;;;;CAMjB,IAAY,WAA+B;AACzC,SAAO,KAAK;;;;;;CAOd,YAAY,QAAgB;EAC1B,MAAM,eAAe,IAAI,IAAI,OAAO;AACpC,eAAa,WAAW,WAAW,aAAa;AAChD,OAAK,SAAS,aAAa,UAAU;;;;;CAMvC,AAAO,aAAmB;AACxB,OAAK,YAAY;;;;;;;CAQnB,MAAa,qBACX,4BACuB;AACvB,SAAO,KAAK,UAAgB,uCAAuC;GACjE,MAAM,KAAK,UAAU,2BAA2B;GAChD,QAAQ;GACT,CAAC;;;;;;;CAQJ,MAAa,WACX,mBACuB;AACvB,SAAO,KAAK,UAAgB,yBAAyB;GACnD,MAAM,KAAK,UAAU,kBAAkB;GACvC,QAAQ;GACT,CAAC;;;;;;CAOJ,MAAa,cAAoD;AAC/D,SAAO,KAAK,UAA+B,0BAA0B,EACnE,QAAQ,OACT,CAAC;;;;;;CAOJ,MAAa,OAA6C;AACxD,SAAO,KAAK,UAA+B,gBAAgB,EACzD,QAAQ,OACT,CAAC;;CAGJ,MAAa,QAA8C;AACzD,SAAO,KAAK,UAA+B,sBAAsB,EAC/D,QAAQ,OACT,CAAC;;CAG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