@djangocfg/api 2.1.572 → 2.1.574
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-32BGUXEK.mjs +13 -0
- package/dist/AccountDeleteResponse-32BGUXEK.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/OAuthAuthorizeResponse-TQMQXACC.mjs +13 -0
- package/dist/OAuthAuthorizeResponse-TQMQXACC.mjs.map +1 -0
- package/dist/OAuthProvidersResponse-5DUH2AT7.mjs +9 -0
- package/dist/OAuthProvidersResponse-5DUH2AT7.mjs.map +1 -0
- package/dist/OAuthProvidersResponse-VM3YO5FZ.mjs +12 -0
- package/dist/OAuthProvidersResponse-VM3YO5FZ.mjs.map +1 -0
- package/dist/OAuthTokenResponse-4SJDK73L.mjs +9 -0
- package/dist/OAuthTokenResponse-4SJDK73L.mjs.map +1 -0
- package/dist/OAuthTokenResponse-ELAZFNHE.mjs +20 -0
- package/dist/OAuthTokenResponse-ELAZFNHE.mjs.map +1 -0
- package/dist/OTPRequestResponse-KKEOYXXS.mjs +9 -0
- package/dist/OTPRequestResponse-KKEOYXXS.mjs.map +1 -0
- package/dist/OTPRequestResponse-ZU5KRNSW.mjs +30 -0
- package/dist/OTPRequestResponse-ZU5KRNSW.mjs.map +1 -0
- package/dist/OTPVerifyResponse-LJVUP5JS.mjs +21 -0
- package/dist/OTPVerifyResponse-LJVUP5JS.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/PasswordLoginResponse-A7QRJTAQ.mjs +21 -0
- package/dist/PasswordLoginResponse-A7QRJTAQ.mjs.map +1 -0
- package/dist/TokenRefresh-JAUMGIFS.mjs +13 -0
- package/dist/TokenRefresh-JAUMGIFS.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 +163 -347
- package/dist/auth.cjs.map +1 -1
- package/dist/auth.d.cts +1 -12
- package/dist/auth.d.ts +1 -12
- package/dist/auth.mjs +39 -349
- package/dist/auth.mjs.map +1 -1
- package/dist/cfg_accounts_oauth_connections_response_200_AutoRef-ILSH4EVV.mjs +31 -0
- package/dist/cfg_accounts_oauth_connections_response_200_AutoRef-ILSH4EVV.mjs.map +1 -0
- 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-4ZCO4CSB.mjs +12 -0
- package/dist/cfg_accounts_oauth_disconnect_response_200_AutoRef-4ZCO4CSB.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/src/auth/context/AccountsContext.tsx +0 -2
- package/src/auth/context/index.ts +1 -1
package/dist/hooks.mjs
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
import {
|
|
3
|
+
__name
|
|
4
|
+
} from "./chunk-53YKWR6F.mjs";
|
|
4
5
|
|
|
5
6
|
// src/hooks/useApiKey.ts
|
|
6
7
|
import { useCallback, useState } from "react";
|
|
@@ -1656,13 +1657,6 @@ var CfgAccountsOtp = class {
|
|
|
1656
1657
|
}
|
|
1657
1658
|
};
|
|
1658
1659
|
|
|
1659
|
-
// src/_api/generated/_cfg_accounts/schemas/APIKeyRegenerate.ts
|
|
1660
|
-
import { z } from "zod";
|
|
1661
|
-
var APIKeyRegenerateSchema = z.object({
|
|
1662
|
-
key: z.string(),
|
|
1663
|
-
reissued_at: z.string().datetime({ offset: true })
|
|
1664
|
-
});
|
|
1665
|
-
|
|
1666
1660
|
// src/_api/generated/_cfg_accounts/hooks/useCfgAccountsApiKeyRegenerateCreate.ts
|
|
1667
1661
|
function useCfgAccountsApiKeyRegenerateCreate(config) {
|
|
1668
1662
|
return useSWRMutation(
|
|
@@ -1670,8 +1664,9 @@ function useCfgAccountsApiKeyRegenerateCreate(config) {
|
|
|
1670
1664
|
async (_key, { arg }) => {
|
|
1671
1665
|
const res = await CfgAccountsApiKey.cfgAccountsApiKeyRegenerateCreate({ ...arg, throwOnError: true });
|
|
1672
1666
|
const data = res.data;
|
|
1673
|
-
|
|
1674
|
-
|
|
1667
|
+
void import("./APIKeyRegenerate-AV5FCM32.mjs").then(({ APIKeyRegenerateSchema }) => {
|
|
1668
|
+
const parsed = APIKeyRegenerateSchema.safeParse(data);
|
|
1669
|
+
if (parsed.success) return;
|
|
1675
1670
|
console.warn(
|
|
1676
1671
|
"[zod] response did not match schema",
|
|
1677
1672
|
{
|
|
@@ -1701,9 +1696,9 @@ function useCfgAccountsApiKeyRegenerateCreate(config) {
|
|
|
1701
1696
|
} catch {
|
|
1702
1697
|
}
|
|
1703
1698
|
}
|
|
1704
|
-
|
|
1705
|
-
}
|
|
1706
|
-
return
|
|
1699
|
+
}).catch(() => {
|
|
1700
|
+
});
|
|
1701
|
+
return data;
|
|
1707
1702
|
},
|
|
1708
1703
|
config
|
|
1709
1704
|
);
|
|
@@ -1712,16 +1707,6 @@ __name(useCfgAccountsApiKeyRegenerateCreate, "useCfgAccountsApiKeyRegenerateCrea
|
|
|
1712
1707
|
|
|
1713
1708
|
// src/_api/generated/_cfg_accounts/hooks/useCfgAccountsApiKeyRetrieve.ts
|
|
1714
1709
|
import useSWR from "swr";
|
|
1715
|
-
|
|
1716
|
-
// src/_api/generated/_cfg_accounts/schemas/APIKey.ts
|
|
1717
|
-
import { z as z2 } from "zod";
|
|
1718
|
-
var APIKeySchema = z2.object({
|
|
1719
|
-
key: z2.string(),
|
|
1720
|
-
reissued_at: z2.string().datetime({ offset: true }).nullable(),
|
|
1721
|
-
created_at: z2.string().datetime({ offset: true })
|
|
1722
|
-
});
|
|
1723
|
-
|
|
1724
|
-
// src/_api/generated/_cfg_accounts/hooks/useCfgAccountsApiKeyRetrieve.ts
|
|
1725
1710
|
function useCfgAccountsApiKeyRetrieve(args, config) {
|
|
1726
1711
|
const { enabled = true, ...swrConfig } = config ?? {};
|
|
1727
1712
|
const key = enabled ? ["cfg_accounts_api_key_retrieve", args ?? {}] : null;
|
|
@@ -1730,8 +1715,9 @@ function useCfgAccountsApiKeyRetrieve(args, config) {
|
|
|
1730
1715
|
async () => {
|
|
1731
1716
|
const res = await CfgAccountsApiKey.cfgAccountsApiKeyRetrieve({ ...args ?? {}, throwOnError: true });
|
|
1732
1717
|
const data = res.data;
|
|
1733
|
-
|
|
1734
|
-
|
|
1718
|
+
void import("./APIKey-EYCSY3JW.mjs").then(({ APIKeySchema }) => {
|
|
1719
|
+
const parsed = APIKeySchema.safeParse(data);
|
|
1720
|
+
if (parsed.success) return;
|
|
1735
1721
|
console.warn(
|
|
1736
1722
|
"[zod] response did not match schema",
|
|
1737
1723
|
{
|
|
@@ -1761,9 +1747,9 @@ function useCfgAccountsApiKeyRetrieve(args, config) {
|
|
|
1761
1747
|
} catch {
|
|
1762
1748
|
}
|
|
1763
1749
|
}
|
|
1764
|
-
|
|
1765
|
-
}
|
|
1766
|
-
return
|
|
1750
|
+
}).catch(() => {
|
|
1751
|
+
});
|
|
1752
|
+
return data;
|
|
1767
1753
|
},
|
|
1768
1754
|
swrConfig
|
|
1769
1755
|
);
|
|
@@ -1772,24 +1758,15 @@ __name(useCfgAccountsApiKeyRetrieve, "useCfgAccountsApiKeyRetrieve");
|
|
|
1772
1758
|
|
|
1773
1759
|
// src/_api/generated/_cfg_accounts/hooks/useCfgAccountsApiKeyRevealCreate.ts
|
|
1774
1760
|
import useSWRMutation2 from "swr/mutation";
|
|
1775
|
-
|
|
1776
|
-
// src/_api/generated/_cfg_accounts/schemas/APIKeyReveal.ts
|
|
1777
|
-
import { z as z3 } from "zod";
|
|
1778
|
-
var APIKeyRevealSchema = z3.object({
|
|
1779
|
-
key: z3.string(),
|
|
1780
|
-
created_at: z3.string().datetime({ offset: true }),
|
|
1781
|
-
reissued_at: z3.string().datetime({ offset: true }).nullable()
|
|
1782
|
-
});
|
|
1783
|
-
|
|
1784
|
-
// src/_api/generated/_cfg_accounts/hooks/useCfgAccountsApiKeyRevealCreate.ts
|
|
1785
1761
|
function useCfgAccountsApiKeyRevealCreate(config) {
|
|
1786
1762
|
return useSWRMutation2(
|
|
1787
1763
|
["cfg_accounts_api_key_reveal_create"],
|
|
1788
1764
|
async (_key, { arg }) => {
|
|
1789
1765
|
const res = await CfgAccountsApiKey.cfgAccountsApiKeyRevealCreate({ ...arg, throwOnError: true });
|
|
1790
1766
|
const data = res.data;
|
|
1791
|
-
|
|
1792
|
-
|
|
1767
|
+
void import("./APIKeyReveal-ZY7ZD4WX.mjs").then(({ APIKeyRevealSchema }) => {
|
|
1768
|
+
const parsed = APIKeyRevealSchema.safeParse(data);
|
|
1769
|
+
if (parsed.success) return;
|
|
1793
1770
|
console.warn(
|
|
1794
1771
|
"[zod] response did not match schema",
|
|
1795
1772
|
{
|
|
@@ -1819,9 +1796,9 @@ function useCfgAccountsApiKeyRevealCreate(config) {
|
|
|
1819
1796
|
} catch {
|
|
1820
1797
|
}
|
|
1821
1798
|
}
|
|
1822
|
-
|
|
1823
|
-
}
|
|
1824
|
-
return
|
|
1799
|
+
}).catch(() => {
|
|
1800
|
+
});
|
|
1801
|
+
return data;
|
|
1825
1802
|
},
|
|
1826
1803
|
config
|
|
1827
1804
|
);
|
|
@@ -1830,23 +1807,15 @@ __name(useCfgAccountsApiKeyRevealCreate, "useCfgAccountsApiKeyRevealCreate");
|
|
|
1830
1807
|
|
|
1831
1808
|
// src/_api/generated/_cfg_accounts/hooks/useCfgAccountsApiKeyTestCreate.ts
|
|
1832
1809
|
import useSWRMutation3 from "swr/mutation";
|
|
1833
|
-
|
|
1834
|
-
// src/_api/generated/_cfg_accounts/schemas/APIKeyTestResult.ts
|
|
1835
|
-
import { z as z4 } from "zod";
|
|
1836
|
-
var APIKeyTestResultSchema = z4.object({
|
|
1837
|
-
valid: z4.boolean(),
|
|
1838
|
-
user_id: z4.string().nullable()
|
|
1839
|
-
});
|
|
1840
|
-
|
|
1841
|
-
// src/_api/generated/_cfg_accounts/hooks/useCfgAccountsApiKeyTestCreate.ts
|
|
1842
1810
|
function useCfgAccountsApiKeyTestCreate(config) {
|
|
1843
1811
|
return useSWRMutation3(
|
|
1844
1812
|
["cfg_accounts_api_key_test_create"],
|
|
1845
1813
|
async (_key, { arg }) => {
|
|
1846
1814
|
const res = await CfgAccountsApiKey.cfgAccountsApiKeyTestCreate({ ...arg, throwOnError: true });
|
|
1847
1815
|
const data = res.data;
|
|
1848
|
-
|
|
1849
|
-
|
|
1816
|
+
void import("./APIKeyTestResult-NPKQLHSQ.mjs").then(({ APIKeyTestResultSchema }) => {
|
|
1817
|
+
const parsed = APIKeyTestResultSchema.safeParse(data);
|
|
1818
|
+
if (parsed.success) return;
|
|
1850
1819
|
console.warn(
|
|
1851
1820
|
"[zod] response did not match schema",
|
|
1852
1821
|
{
|
|
@@ -1876,9 +1845,9 @@ function useCfgAccountsApiKeyTestCreate(config) {
|
|
|
1876
1845
|
} catch {
|
|
1877
1846
|
}
|
|
1878
1847
|
}
|
|
1879
|
-
|
|
1880
|
-
}
|
|
1881
|
-
return
|
|
1848
|
+
}).catch(() => {
|
|
1849
|
+
});
|
|
1850
|
+
return data;
|
|
1882
1851
|
},
|
|
1883
1852
|
config
|
|
1884
1853
|
);
|
|
@@ -1941,21 +1910,6 @@ __name(useApiKey, "useApiKey");
|
|
|
1941
1910
|
|
|
1942
1911
|
// src/_api/generated/_cfg_accounts/hooks/useCfgAccountsOtpConsentPolicyRetrieve.ts
|
|
1943
1912
|
import useSWR2 from "swr";
|
|
1944
|
-
|
|
1945
|
-
// src/_api/generated/_cfg_accounts/schemas/ConsentPolicy.ts
|
|
1946
|
-
import { z as z6 } from "zod";
|
|
1947
|
-
|
|
1948
|
-
// src/_api/generated/_cfg_accounts/schemas/MarketingConsentDefaultEnum.ts
|
|
1949
|
-
import { z as z5 } from "zod";
|
|
1950
|
-
var MarketingConsentDefaultEnumSchema = z5.enum(["checked", "unchecked"]);
|
|
1951
|
-
|
|
1952
|
-
// src/_api/generated/_cfg_accounts/schemas/ConsentPolicy.ts
|
|
1953
|
-
var ConsentPolicySchema = z6.object({
|
|
1954
|
-
country: z6.string(),
|
|
1955
|
-
marketing_consent_default: MarketingConsentDefaultEnumSchema
|
|
1956
|
-
});
|
|
1957
|
-
|
|
1958
|
-
// src/_api/generated/_cfg_accounts/hooks/useCfgAccountsOtpConsentPolicyRetrieve.ts
|
|
1959
1913
|
function useCfgAccountsOtpConsentPolicyRetrieve(args, config) {
|
|
1960
1914
|
const { enabled = true, ...swrConfig } = config ?? {};
|
|
1961
1915
|
const key = enabled ? ["cfg_accounts_otp_consent_policy_retrieve", args ?? {}] : null;
|
|
@@ -1964,8 +1918,9 @@ function useCfgAccountsOtpConsentPolicyRetrieve(args, config) {
|
|
|
1964
1918
|
async () => {
|
|
1965
1919
|
const res = await CfgAccountsOtp.cfgAccountsOtpConsentPolicyRetrieve({ ...args ?? {}, throwOnError: true });
|
|
1966
1920
|
const data = res.data;
|
|
1967
|
-
|
|
1968
|
-
|
|
1921
|
+
void import("./ConsentPolicy-A5WZFHO7.mjs").then(({ ConsentPolicySchema }) => {
|
|
1922
|
+
const parsed = ConsentPolicySchema.safeParse(data);
|
|
1923
|
+
if (parsed.success) return;
|
|
1969
1924
|
console.warn(
|
|
1970
1925
|
"[zod] response did not match schema",
|
|
1971
1926
|
{
|
|
@@ -1995,9 +1950,9 @@ function useCfgAccountsOtpConsentPolicyRetrieve(args, config) {
|
|
|
1995
1950
|
} catch {
|
|
1996
1951
|
}
|
|
1997
1952
|
}
|
|
1998
|
-
|
|
1999
|
-
}
|
|
2000
|
-
return
|
|
1953
|
+
}).catch(() => {
|
|
1954
|
+
});
|
|
1955
|
+
return data;
|
|
2001
1956
|
},
|
|
2002
1957
|
swrConfig
|
|
2003
1958
|
);
|