@djangocfg/api 2.1.571 → 2.1.573
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/APIKey-EYCSY3JW.mjs +14 -0
- package/dist/APIKey-EYCSY3JW.mjs.map +1 -0
- package/dist/APIKey-I5QBXTLD.mjs +9 -0
- package/dist/APIKey-I5QBXTLD.mjs.map +1 -0
- package/dist/APIKeyRegenerate-3WIY3UIL.mjs +9 -0
- package/dist/APIKeyRegenerate-3WIY3UIL.mjs.map +1 -0
- package/dist/APIKeyRegenerate-AV5FCM32.mjs +13 -0
- package/dist/APIKeyRegenerate-AV5FCM32.mjs.map +1 -0
- package/dist/APIKeyReveal-JDXZMXKO.mjs +9 -0
- package/dist/APIKeyReveal-JDXZMXKO.mjs.map +1 -0
- package/dist/APIKeyReveal-ZY7ZD4WX.mjs +14 -0
- package/dist/APIKeyReveal-ZY7ZD4WX.mjs.map +1 -0
- package/dist/APIKeyTestResult-MQM2Q7XN.mjs +9 -0
- package/dist/APIKeyTestResult-MQM2Q7XN.mjs.map +1 -0
- package/dist/APIKeyTestResult-NPKQLHSQ.mjs +13 -0
- package/dist/APIKeyTestResult-NPKQLHSQ.mjs.map +1 -0
- package/dist/AccountDeleteResponse-NISN5UOR.mjs +9 -0
- package/dist/AccountDeleteResponse-NISN5UOR.mjs.map +1 -0
- package/dist/ConsentPolicy-67GXCYPA.mjs +9 -0
- package/dist/ConsentPolicy-67GXCYPA.mjs.map +1 -0
- package/dist/ConsentPolicy-A5WZFHO7.mjs +19 -0
- package/dist/ConsentPolicy-A5WZFHO7.mjs.map +1 -0
- package/dist/OAuthAuthorizeResponse-JQ5W7ZOZ.mjs +9 -0
- package/dist/OAuthAuthorizeResponse-JQ5W7ZOZ.mjs.map +1 -0
- package/dist/OAuthProvidersResponse-5DUH2AT7.mjs +9 -0
- package/dist/OAuthProvidersResponse-5DUH2AT7.mjs.map +1 -0
- package/dist/OAuthTokenResponse-4SJDK73L.mjs +9 -0
- package/dist/OAuthTokenResponse-4SJDK73L.mjs.map +1 -0
- package/dist/OTPRequestResponse-KKEOYXXS.mjs +9 -0
- package/dist/OTPRequestResponse-KKEOYXXS.mjs.map +1 -0
- package/dist/OTPVerifyResponse-XBXVMTO3.mjs +10 -0
- package/dist/OTPVerifyResponse-XBXVMTO3.mjs.map +1 -0
- package/dist/PasswordLoginResponse-3IRCBQIN.mjs +10 -0
- package/dist/PasswordLoginResponse-3IRCBQIN.mjs.map +1 -0
- package/dist/TokenRefresh-MKEUOQCX.mjs +9 -0
- package/dist/TokenRefresh-MKEUOQCX.mjs.map +1 -0
- package/dist/User-7OXQV7XG.mjs +9 -0
- package/dist/User-7OXQV7XG.mjs.map +1 -0
- package/dist/auth.cjs +485 -299
- package/dist/auth.cjs.map +1 -1
- package/dist/auth.mjs +132 -302
- package/dist/auth.mjs.map +1 -1
- package/dist/cfg_accounts_oauth_connections_response_200_AutoRef-J3IH5YMW.mjs +9 -0
- package/dist/cfg_accounts_oauth_connections_response_200_AutoRef-J3IH5YMW.mjs.map +1 -0
- package/dist/cfg_accounts_oauth_disconnect_response_200_AutoRef-6JT7B4EX.mjs +9 -0
- package/dist/cfg_accounts_oauth_disconnect_response_200_AutoRef-6JT7B4EX.mjs.map +1 -0
- package/dist/chunk-53YKWR6F.mjs +8 -0
- package/dist/chunk-53YKWR6F.mjs.map +1 -0
- package/dist/chunk-6MHVHTWT.mjs +30 -0
- package/dist/chunk-6MHVHTWT.mjs.map +1 -0
- package/dist/chunk-AQ2RQ4BQ.mjs +21 -0
- package/dist/chunk-AQ2RQ4BQ.mjs.map +1 -0
- package/dist/chunk-AXBITHBG.mjs +13 -0
- package/dist/chunk-AXBITHBG.mjs.map +1 -0
- package/dist/chunk-B22YGMM3.mjs +30 -0
- package/dist/chunk-B22YGMM3.mjs.map +1 -0
- package/dist/chunk-GCRGQTJ4.mjs +13 -0
- package/dist/chunk-GCRGQTJ4.mjs.map +1 -0
- package/dist/chunk-IPXJOS2Y.mjs +32 -0
- package/dist/chunk-IPXJOS2Y.mjs.map +1 -0
- package/dist/chunk-K5HZ55SP.mjs +21 -0
- package/dist/chunk-K5HZ55SP.mjs.map +1 -0
- package/dist/chunk-NTSWD2CP.mjs +20 -0
- package/dist/chunk-NTSWD2CP.mjs.map +1 -0
- package/dist/chunk-NZGOHTNF.mjs +14 -0
- package/dist/chunk-NZGOHTNF.mjs.map +1 -0
- package/dist/chunk-OGDF6IJV.mjs +13 -0
- package/dist/chunk-OGDF6IJV.mjs.map +1 -0
- package/dist/chunk-PDARU7RC.mjs +14 -0
- package/dist/chunk-PDARU7RC.mjs.map +1 -0
- package/dist/chunk-RQDZ2EMB.mjs +13 -0
- package/dist/chunk-RQDZ2EMB.mjs.map +1 -0
- package/dist/chunk-SUTMTPAG.mjs +12 -0
- package/dist/chunk-SUTMTPAG.mjs.map +1 -0
- package/dist/chunk-X5FEPK4J.mjs +13 -0
- package/dist/chunk-X5FEPK4J.mjs.map +1 -0
- package/dist/chunk-XSAHOB2U.mjs +19 -0
- package/dist/chunk-XSAHOB2U.mjs.map +1 -0
- package/dist/chunk-YMOOSBRI.mjs +12 -0
- package/dist/chunk-YMOOSBRI.mjs.map +1 -0
- package/dist/hooks.cjs +131 -76
- package/dist/hooks.cjs.map +1 -1
- package/dist/hooks.mjs +33 -78
- package/dist/hooks.mjs.map +1 -1
- package/package.json +2 -2
- package/src/_api/generated/_cfg_accounts/hooks/useCfgAccountsApiKeyRegenerateCreate.ts +41 -37
- package/src/_api/generated/_cfg_accounts/hooks/useCfgAccountsApiKeyRetrieve.ts +41 -37
- package/src/_api/generated/_cfg_accounts/hooks/useCfgAccountsApiKeyRevealCreate.ts +41 -37
- package/src/_api/generated/_cfg_accounts/hooks/useCfgAccountsApiKeyTestCreate.ts +41 -37
- package/src/_api/generated/_cfg_accounts/hooks/useCfgAccountsOauthConnectionsList.ts +41 -37
- package/src/_api/generated/_cfg_accounts/hooks/useCfgAccountsOauthDisconnectCreate.ts +41 -37
- package/src/_api/generated/_cfg_accounts/hooks/useCfgAccountsOauthGithubAuthorizeCreate.ts +41 -37
- package/src/_api/generated/_cfg_accounts/hooks/useCfgAccountsOauthGithubCallbackCreate.ts +41 -37
- package/src/_api/generated/_cfg_accounts/hooks/useCfgAccountsOauthProvidersRetrieve.ts +41 -37
- package/src/_api/generated/_cfg_accounts/hooks/useCfgAccountsOtpConsentPolicyRetrieve.ts +41 -37
- package/src/_api/generated/_cfg_accounts/hooks/useCfgAccountsOtpRequestCreate.ts +41 -37
- package/src/_api/generated/_cfg_accounts/hooks/useCfgAccountsOtpVerifyCreate.ts +41 -37
- package/src/_api/generated/_cfg_accounts/hooks/useCfgAccountsProfileAvatarCreate.ts +41 -37
- package/src/_api/generated/_cfg_accounts/hooks/useCfgAccountsProfileDeleteCreate.ts +41 -37
- package/src/_api/generated/_cfg_accounts/hooks/useCfgAccountsProfilePartialPartialUpdate.ts +41 -37
- package/src/_api/generated/_cfg_accounts/hooks/useCfgAccountsProfilePartialUpdate.ts +41 -37
- package/src/_api/generated/_cfg_accounts/hooks/useCfgAccountsProfileRetrieve.ts +41 -37
- package/src/_api/generated/_cfg_accounts/hooks/useCfgAccountsProfileUpdatePartialUpdate.ts +41 -37
- package/src/_api/generated/_cfg_accounts/hooks/useCfgAccountsProfileUpdateUpdate.ts +41 -37
- package/src/_api/generated/_cfg_accounts/hooks/useCfgAccountsTokenCreate.ts +41 -37
- package/src/_api/generated/_cfg_accounts/hooks/useCfgAccountsTokenRefreshCreate.ts +41 -37
- package/src/_api/generated/_cfg_totp/hooks/useCfgTotpBackupCodesRegenerateCreate.ts +41 -37
- package/src/_api/generated/_cfg_totp/hooks/useCfgTotpBackupCodesRetrieve.ts +41 -37
- package/src/_api/generated/_cfg_totp/hooks/useCfgTotpDevicesRetrieve.ts +41 -37
- package/src/_api/generated/_cfg_totp/hooks/useCfgTotpDisableCreate.ts +41 -37
- package/src/_api/generated/_cfg_totp/hooks/useCfgTotpSetupConfirmCreate.ts +41 -37
- package/src/_api/generated/_cfg_totp/hooks/useCfgTotpSetupCreate.ts +41 -37
- package/src/_api/generated/_cfg_totp/hooks/useCfgTotpVerifyBackupCreate.ts +41 -37
- package/src/_api/generated/_cfg_totp/hooks/useCfgTotpVerifyCreate.ts +41 -37
package/dist/hooks.cjs
CHANGED
|
@@ -7,6 +7,9 @@ var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
|
7
7
|
var __getProtoOf = Object.getPrototypeOf;
|
|
8
8
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
9
9
|
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
10
|
+
var __esm = (fn, res) => function __init() {
|
|
11
|
+
return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
|
|
12
|
+
};
|
|
10
13
|
var __export = (target, all) => {
|
|
11
14
|
for (var name in all)
|
|
12
15
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
@@ -29,6 +32,104 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
29
32
|
));
|
|
30
33
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
31
34
|
|
|
35
|
+
// src/_api/generated/_cfg_accounts/schemas/APIKeyRegenerate.ts
|
|
36
|
+
var APIKeyRegenerate_exports = {};
|
|
37
|
+
__export(APIKeyRegenerate_exports, {
|
|
38
|
+
APIKeyRegenerateSchema: () => APIKeyRegenerateSchema
|
|
39
|
+
});
|
|
40
|
+
var import_zod, APIKeyRegenerateSchema;
|
|
41
|
+
var init_APIKeyRegenerate = __esm({
|
|
42
|
+
"src/_api/generated/_cfg_accounts/schemas/APIKeyRegenerate.ts"() {
|
|
43
|
+
"use strict";
|
|
44
|
+
import_zod = require("zod");
|
|
45
|
+
APIKeyRegenerateSchema = import_zod.z.object({
|
|
46
|
+
key: import_zod.z.string(),
|
|
47
|
+
reissued_at: import_zod.z.string().datetime({ offset: true })
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
});
|
|
51
|
+
|
|
52
|
+
// src/_api/generated/_cfg_accounts/schemas/APIKey.ts
|
|
53
|
+
var APIKey_exports = {};
|
|
54
|
+
__export(APIKey_exports, {
|
|
55
|
+
APIKeySchema: () => APIKeySchema
|
|
56
|
+
});
|
|
57
|
+
var import_zod2, APIKeySchema;
|
|
58
|
+
var init_APIKey = __esm({
|
|
59
|
+
"src/_api/generated/_cfg_accounts/schemas/APIKey.ts"() {
|
|
60
|
+
"use strict";
|
|
61
|
+
import_zod2 = require("zod");
|
|
62
|
+
APIKeySchema = import_zod2.z.object({
|
|
63
|
+
key: import_zod2.z.string(),
|
|
64
|
+
reissued_at: import_zod2.z.string().datetime({ offset: true }).nullable(),
|
|
65
|
+
created_at: import_zod2.z.string().datetime({ offset: true })
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
});
|
|
69
|
+
|
|
70
|
+
// src/_api/generated/_cfg_accounts/schemas/APIKeyReveal.ts
|
|
71
|
+
var APIKeyReveal_exports = {};
|
|
72
|
+
__export(APIKeyReveal_exports, {
|
|
73
|
+
APIKeyRevealSchema: () => APIKeyRevealSchema
|
|
74
|
+
});
|
|
75
|
+
var import_zod3, APIKeyRevealSchema;
|
|
76
|
+
var init_APIKeyReveal = __esm({
|
|
77
|
+
"src/_api/generated/_cfg_accounts/schemas/APIKeyReveal.ts"() {
|
|
78
|
+
"use strict";
|
|
79
|
+
import_zod3 = require("zod");
|
|
80
|
+
APIKeyRevealSchema = import_zod3.z.object({
|
|
81
|
+
key: import_zod3.z.string(),
|
|
82
|
+
created_at: import_zod3.z.string().datetime({ offset: true }),
|
|
83
|
+
reissued_at: import_zod3.z.string().datetime({ offset: true }).nullable()
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
});
|
|
87
|
+
|
|
88
|
+
// src/_api/generated/_cfg_accounts/schemas/APIKeyTestResult.ts
|
|
89
|
+
var APIKeyTestResult_exports = {};
|
|
90
|
+
__export(APIKeyTestResult_exports, {
|
|
91
|
+
APIKeyTestResultSchema: () => APIKeyTestResultSchema
|
|
92
|
+
});
|
|
93
|
+
var import_zod4, APIKeyTestResultSchema;
|
|
94
|
+
var init_APIKeyTestResult = __esm({
|
|
95
|
+
"src/_api/generated/_cfg_accounts/schemas/APIKeyTestResult.ts"() {
|
|
96
|
+
"use strict";
|
|
97
|
+
import_zod4 = require("zod");
|
|
98
|
+
APIKeyTestResultSchema = import_zod4.z.object({
|
|
99
|
+
valid: import_zod4.z.boolean(),
|
|
100
|
+
user_id: import_zod4.z.string().nullable()
|
|
101
|
+
});
|
|
102
|
+
}
|
|
103
|
+
});
|
|
104
|
+
|
|
105
|
+
// src/_api/generated/_cfg_accounts/schemas/MarketingConsentDefaultEnum.ts
|
|
106
|
+
var import_zod5, MarketingConsentDefaultEnumSchema;
|
|
107
|
+
var init_MarketingConsentDefaultEnum = __esm({
|
|
108
|
+
"src/_api/generated/_cfg_accounts/schemas/MarketingConsentDefaultEnum.ts"() {
|
|
109
|
+
"use strict";
|
|
110
|
+
import_zod5 = require("zod");
|
|
111
|
+
MarketingConsentDefaultEnumSchema = import_zod5.z.enum(["checked", "unchecked"]);
|
|
112
|
+
}
|
|
113
|
+
});
|
|
114
|
+
|
|
115
|
+
// src/_api/generated/_cfg_accounts/schemas/ConsentPolicy.ts
|
|
116
|
+
var ConsentPolicy_exports = {};
|
|
117
|
+
__export(ConsentPolicy_exports, {
|
|
118
|
+
ConsentPolicySchema: () => ConsentPolicySchema
|
|
119
|
+
});
|
|
120
|
+
var import_zod6, ConsentPolicySchema;
|
|
121
|
+
var init_ConsentPolicy = __esm({
|
|
122
|
+
"src/_api/generated/_cfg_accounts/schemas/ConsentPolicy.ts"() {
|
|
123
|
+
"use strict";
|
|
124
|
+
import_zod6 = require("zod");
|
|
125
|
+
init_MarketingConsentDefaultEnum();
|
|
126
|
+
ConsentPolicySchema = import_zod6.z.object({
|
|
127
|
+
country: import_zod6.z.string(),
|
|
128
|
+
marketing_consent_default: MarketingConsentDefaultEnumSchema
|
|
129
|
+
});
|
|
130
|
+
}
|
|
131
|
+
});
|
|
132
|
+
|
|
32
133
|
// src/hooks/index.ts
|
|
33
134
|
var hooks_exports = {};
|
|
34
135
|
__export(hooks_exports, {
|
|
@@ -1691,13 +1792,6 @@ var CfgAccountsOtp = class {
|
|
|
1691
1792
|
}
|
|
1692
1793
|
};
|
|
1693
1794
|
|
|
1694
|
-
// src/_api/generated/_cfg_accounts/schemas/APIKeyRegenerate.ts
|
|
1695
|
-
var import_zod = require("zod");
|
|
1696
|
-
var APIKeyRegenerateSchema = import_zod.z.object({
|
|
1697
|
-
key: import_zod.z.string(),
|
|
1698
|
-
reissued_at: import_zod.z.string().datetime({ offset: true })
|
|
1699
|
-
});
|
|
1700
|
-
|
|
1701
1795
|
// src/_api/generated/_cfg_accounts/hooks/useCfgAccountsApiKeyRegenerateCreate.ts
|
|
1702
1796
|
function useCfgAccountsApiKeyRegenerateCreate(config) {
|
|
1703
1797
|
return (0, import_mutation.default)(
|
|
@@ -1705,8 +1799,9 @@ function useCfgAccountsApiKeyRegenerateCreate(config) {
|
|
|
1705
1799
|
async (_key, { arg }) => {
|
|
1706
1800
|
const res = await CfgAccountsApiKey.cfgAccountsApiKeyRegenerateCreate({ ...arg, throwOnError: true });
|
|
1707
1801
|
const data = res.data;
|
|
1708
|
-
|
|
1709
|
-
|
|
1802
|
+
void Promise.resolve().then(() => (init_APIKeyRegenerate(), APIKeyRegenerate_exports)).then(({ APIKeyRegenerateSchema: APIKeyRegenerateSchema2 }) => {
|
|
1803
|
+
const parsed = APIKeyRegenerateSchema2.safeParse(data);
|
|
1804
|
+
if (parsed.success) return;
|
|
1710
1805
|
console.warn(
|
|
1711
1806
|
"[zod] response did not match schema",
|
|
1712
1807
|
{
|
|
@@ -1736,9 +1831,9 @@ function useCfgAccountsApiKeyRegenerateCreate(config) {
|
|
|
1736
1831
|
} catch {
|
|
1737
1832
|
}
|
|
1738
1833
|
}
|
|
1739
|
-
|
|
1740
|
-
}
|
|
1741
|
-
return
|
|
1834
|
+
}).catch(() => {
|
|
1835
|
+
});
|
|
1836
|
+
return data;
|
|
1742
1837
|
},
|
|
1743
1838
|
config
|
|
1744
1839
|
);
|
|
@@ -1747,16 +1842,6 @@ __name(useCfgAccountsApiKeyRegenerateCreate, "useCfgAccountsApiKeyRegenerateCrea
|
|
|
1747
1842
|
|
|
1748
1843
|
// src/_api/generated/_cfg_accounts/hooks/useCfgAccountsApiKeyRetrieve.ts
|
|
1749
1844
|
var import_swr = __toESM(require("swr"), 1);
|
|
1750
|
-
|
|
1751
|
-
// src/_api/generated/_cfg_accounts/schemas/APIKey.ts
|
|
1752
|
-
var import_zod2 = require("zod");
|
|
1753
|
-
var APIKeySchema = import_zod2.z.object({
|
|
1754
|
-
key: import_zod2.z.string(),
|
|
1755
|
-
reissued_at: import_zod2.z.string().datetime({ offset: true }).nullable(),
|
|
1756
|
-
created_at: import_zod2.z.string().datetime({ offset: true })
|
|
1757
|
-
});
|
|
1758
|
-
|
|
1759
|
-
// src/_api/generated/_cfg_accounts/hooks/useCfgAccountsApiKeyRetrieve.ts
|
|
1760
1845
|
function useCfgAccountsApiKeyRetrieve(args, config) {
|
|
1761
1846
|
const { enabled = true, ...swrConfig } = config ?? {};
|
|
1762
1847
|
const key = enabled ? ["cfg_accounts_api_key_retrieve", args ?? {}] : null;
|
|
@@ -1765,8 +1850,9 @@ function useCfgAccountsApiKeyRetrieve(args, config) {
|
|
|
1765
1850
|
async () => {
|
|
1766
1851
|
const res = await CfgAccountsApiKey.cfgAccountsApiKeyRetrieve({ ...args ?? {}, throwOnError: true });
|
|
1767
1852
|
const data = res.data;
|
|
1768
|
-
|
|
1769
|
-
|
|
1853
|
+
void Promise.resolve().then(() => (init_APIKey(), APIKey_exports)).then(({ APIKeySchema: APIKeySchema2 }) => {
|
|
1854
|
+
const parsed = APIKeySchema2.safeParse(data);
|
|
1855
|
+
if (parsed.success) return;
|
|
1770
1856
|
console.warn(
|
|
1771
1857
|
"[zod] response did not match schema",
|
|
1772
1858
|
{
|
|
@@ -1796,9 +1882,9 @@ function useCfgAccountsApiKeyRetrieve(args, config) {
|
|
|
1796
1882
|
} catch {
|
|
1797
1883
|
}
|
|
1798
1884
|
}
|
|
1799
|
-
|
|
1800
|
-
}
|
|
1801
|
-
return
|
|
1885
|
+
}).catch(() => {
|
|
1886
|
+
});
|
|
1887
|
+
return data;
|
|
1802
1888
|
},
|
|
1803
1889
|
swrConfig
|
|
1804
1890
|
);
|
|
@@ -1807,24 +1893,15 @@ __name(useCfgAccountsApiKeyRetrieve, "useCfgAccountsApiKeyRetrieve");
|
|
|
1807
1893
|
|
|
1808
1894
|
// src/_api/generated/_cfg_accounts/hooks/useCfgAccountsApiKeyRevealCreate.ts
|
|
1809
1895
|
var import_mutation2 = __toESM(require("swr/mutation"), 1);
|
|
1810
|
-
|
|
1811
|
-
// src/_api/generated/_cfg_accounts/schemas/APIKeyReveal.ts
|
|
1812
|
-
var import_zod3 = require("zod");
|
|
1813
|
-
var APIKeyRevealSchema = import_zod3.z.object({
|
|
1814
|
-
key: import_zod3.z.string(),
|
|
1815
|
-
created_at: import_zod3.z.string().datetime({ offset: true }),
|
|
1816
|
-
reissued_at: import_zod3.z.string().datetime({ offset: true }).nullable()
|
|
1817
|
-
});
|
|
1818
|
-
|
|
1819
|
-
// src/_api/generated/_cfg_accounts/hooks/useCfgAccountsApiKeyRevealCreate.ts
|
|
1820
1896
|
function useCfgAccountsApiKeyRevealCreate(config) {
|
|
1821
1897
|
return (0, import_mutation2.default)(
|
|
1822
1898
|
["cfg_accounts_api_key_reveal_create"],
|
|
1823
1899
|
async (_key, { arg }) => {
|
|
1824
1900
|
const res = await CfgAccountsApiKey.cfgAccountsApiKeyRevealCreate({ ...arg, throwOnError: true });
|
|
1825
1901
|
const data = res.data;
|
|
1826
|
-
|
|
1827
|
-
|
|
1902
|
+
void Promise.resolve().then(() => (init_APIKeyReveal(), APIKeyReveal_exports)).then(({ APIKeyRevealSchema: APIKeyRevealSchema2 }) => {
|
|
1903
|
+
const parsed = APIKeyRevealSchema2.safeParse(data);
|
|
1904
|
+
if (parsed.success) return;
|
|
1828
1905
|
console.warn(
|
|
1829
1906
|
"[zod] response did not match schema",
|
|
1830
1907
|
{
|
|
@@ -1854,9 +1931,9 @@ function useCfgAccountsApiKeyRevealCreate(config) {
|
|
|
1854
1931
|
} catch {
|
|
1855
1932
|
}
|
|
1856
1933
|
}
|
|
1857
|
-
|
|
1858
|
-
}
|
|
1859
|
-
return
|
|
1934
|
+
}).catch(() => {
|
|
1935
|
+
});
|
|
1936
|
+
return data;
|
|
1860
1937
|
},
|
|
1861
1938
|
config
|
|
1862
1939
|
);
|
|
@@ -1865,23 +1942,15 @@ __name(useCfgAccountsApiKeyRevealCreate, "useCfgAccountsApiKeyRevealCreate");
|
|
|
1865
1942
|
|
|
1866
1943
|
// src/_api/generated/_cfg_accounts/hooks/useCfgAccountsApiKeyTestCreate.ts
|
|
1867
1944
|
var import_mutation3 = __toESM(require("swr/mutation"), 1);
|
|
1868
|
-
|
|
1869
|
-
// src/_api/generated/_cfg_accounts/schemas/APIKeyTestResult.ts
|
|
1870
|
-
var import_zod4 = require("zod");
|
|
1871
|
-
var APIKeyTestResultSchema = import_zod4.z.object({
|
|
1872
|
-
valid: import_zod4.z.boolean(),
|
|
1873
|
-
user_id: import_zod4.z.string().nullable()
|
|
1874
|
-
});
|
|
1875
|
-
|
|
1876
|
-
// src/_api/generated/_cfg_accounts/hooks/useCfgAccountsApiKeyTestCreate.ts
|
|
1877
1945
|
function useCfgAccountsApiKeyTestCreate(config) {
|
|
1878
1946
|
return (0, import_mutation3.default)(
|
|
1879
1947
|
["cfg_accounts_api_key_test_create"],
|
|
1880
1948
|
async (_key, { arg }) => {
|
|
1881
1949
|
const res = await CfgAccountsApiKey.cfgAccountsApiKeyTestCreate({ ...arg, throwOnError: true });
|
|
1882
1950
|
const data = res.data;
|
|
1883
|
-
|
|
1884
|
-
|
|
1951
|
+
void Promise.resolve().then(() => (init_APIKeyTestResult(), APIKeyTestResult_exports)).then(({ APIKeyTestResultSchema: APIKeyTestResultSchema2 }) => {
|
|
1952
|
+
const parsed = APIKeyTestResultSchema2.safeParse(data);
|
|
1953
|
+
if (parsed.success) return;
|
|
1885
1954
|
console.warn(
|
|
1886
1955
|
"[zod] response did not match schema",
|
|
1887
1956
|
{
|
|
@@ -1911,9 +1980,9 @@ function useCfgAccountsApiKeyTestCreate(config) {
|
|
|
1911
1980
|
} catch {
|
|
1912
1981
|
}
|
|
1913
1982
|
}
|
|
1914
|
-
|
|
1915
|
-
}
|
|
1916
|
-
return
|
|
1983
|
+
}).catch(() => {
|
|
1984
|
+
});
|
|
1985
|
+
return data;
|
|
1917
1986
|
},
|
|
1918
1987
|
config
|
|
1919
1988
|
);
|
|
@@ -1976,21 +2045,6 @@ __name(useApiKey, "useApiKey");
|
|
|
1976
2045
|
|
|
1977
2046
|
// src/_api/generated/_cfg_accounts/hooks/useCfgAccountsOtpConsentPolicyRetrieve.ts
|
|
1978
2047
|
var import_swr2 = __toESM(require("swr"), 1);
|
|
1979
|
-
|
|
1980
|
-
// src/_api/generated/_cfg_accounts/schemas/ConsentPolicy.ts
|
|
1981
|
-
var import_zod6 = require("zod");
|
|
1982
|
-
|
|
1983
|
-
// src/_api/generated/_cfg_accounts/schemas/MarketingConsentDefaultEnum.ts
|
|
1984
|
-
var import_zod5 = require("zod");
|
|
1985
|
-
var MarketingConsentDefaultEnumSchema = import_zod5.z.enum(["checked", "unchecked"]);
|
|
1986
|
-
|
|
1987
|
-
// src/_api/generated/_cfg_accounts/schemas/ConsentPolicy.ts
|
|
1988
|
-
var ConsentPolicySchema = import_zod6.z.object({
|
|
1989
|
-
country: import_zod6.z.string(),
|
|
1990
|
-
marketing_consent_default: MarketingConsentDefaultEnumSchema
|
|
1991
|
-
});
|
|
1992
|
-
|
|
1993
|
-
// src/_api/generated/_cfg_accounts/hooks/useCfgAccountsOtpConsentPolicyRetrieve.ts
|
|
1994
2048
|
function useCfgAccountsOtpConsentPolicyRetrieve(args, config) {
|
|
1995
2049
|
const { enabled = true, ...swrConfig } = config ?? {};
|
|
1996
2050
|
const key = enabled ? ["cfg_accounts_otp_consent_policy_retrieve", args ?? {}] : null;
|
|
@@ -1999,8 +2053,9 @@ function useCfgAccountsOtpConsentPolicyRetrieve(args, config) {
|
|
|
1999
2053
|
async () => {
|
|
2000
2054
|
const res = await CfgAccountsOtp.cfgAccountsOtpConsentPolicyRetrieve({ ...args ?? {}, throwOnError: true });
|
|
2001
2055
|
const data = res.data;
|
|
2002
|
-
|
|
2003
|
-
|
|
2056
|
+
void Promise.resolve().then(() => (init_ConsentPolicy(), ConsentPolicy_exports)).then(({ ConsentPolicySchema: ConsentPolicySchema2 }) => {
|
|
2057
|
+
const parsed = ConsentPolicySchema2.safeParse(data);
|
|
2058
|
+
if (parsed.success) return;
|
|
2004
2059
|
console.warn(
|
|
2005
2060
|
"[zod] response did not match schema",
|
|
2006
2061
|
{
|
|
@@ -2030,9 +2085,9 @@ function useCfgAccountsOtpConsentPolicyRetrieve(args, config) {
|
|
|
2030
2085
|
} catch {
|
|
2031
2086
|
}
|
|
2032
2087
|
}
|
|
2033
|
-
|
|
2034
|
-
}
|
|
2035
|
-
return
|
|
2088
|
+
}).catch(() => {
|
|
2089
|
+
});
|
|
2090
|
+
return data;
|
|
2036
2091
|
},
|
|
2037
2092
|
swrConfig
|
|
2038
2093
|
);
|