@djangocfg/api 2.1.441 → 2.1.442
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/auth-server.cjs +53 -119
- package/dist/auth-server.cjs.map +1 -1
- package/dist/auth-server.mjs +53 -119
- package/dist/auth-server.mjs.map +1 -1
- package/dist/auth.cjs +222 -277
- package/dist/auth.cjs.map +1 -1
- package/dist/auth.mjs +222 -277
- package/dist/auth.mjs.map +1 -1
- package/dist/clients.cjs +53 -119
- package/dist/clients.cjs.map +1 -1
- package/dist/clients.d.cts +50 -1
- package/dist/clients.d.ts +50 -1
- package/dist/clients.mjs +53 -119
- package/dist/clients.mjs.map +1 -1
- package/dist/hooks.cjs +102 -20
- package/dist/hooks.cjs.map +1 -1
- package/dist/hooks.d.cts +13 -0
- package/dist/hooks.d.ts +13 -0
- package/dist/hooks.mjs +102 -20
- package/dist/hooks.mjs.map +1 -1
- package/dist/index.cjs +53 -119
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +70 -5
- package/dist/index.d.ts +70 -5
- package/dist/index.mjs +53 -119
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
- package/src/_api/generated/_cfg_accounts/hooks/index.ts +1 -0
- package/src/_api/generated/_cfg_accounts/hooks/useCfgAccountsApiKeyRevealCreate.ts +64 -0
- package/src/_api/generated/_cfg_accounts/openapi.json +92 -15
- package/src/_api/generated/_cfg_accounts/schemas/APIKeyReveal.ts +13 -0
- package/src/_api/generated/_cfg_accounts/schemas/index.ts +1 -0
- package/src/_api/generated/_cfg_centrifugo/openapi.json +0 -5
- package/src/_api/generated/_cfg_totp/openapi.json +0 -5
- package/src/_api/generated/client/index.ts +1 -0
- package/src/_api/generated/core/params.gen.ts +18 -11
- package/src/_api/generated/core/types.gen.ts +6 -0
- package/src/_api/generated/openapi.json +92 -15
- package/src/_api/generated/sdk.gen.ts +57 -122
- package/src/_api/generated/types.gen.ts +38 -0
- package/src/hooks/useApiKey.ts +30 -2
package/dist/auth.mjs
CHANGED
|
@@ -1724,11 +1724,7 @@ var CfgAccountsApiKey = class {
|
|
|
1724
1724
|
static cfgAccountsApiKeyRetrieve(options) {
|
|
1725
1725
|
return (options?.client ?? client).get({
|
|
1726
1726
|
security: [
|
|
1727
|
-
{
|
|
1728
|
-
key: "jwtAuth",
|
|
1729
|
-
scheme: "bearer",
|
|
1730
|
-
type: "http"
|
|
1731
|
-
},
|
|
1727
|
+
{ scheme: "bearer", type: "http" },
|
|
1732
1728
|
{
|
|
1733
1729
|
in: "cookie",
|
|
1734
1730
|
name: "sessionid",
|
|
@@ -1748,11 +1744,31 @@ var CfgAccountsApiKey = class {
|
|
|
1748
1744
|
static cfgAccountsApiKeyRegenerateCreate(options) {
|
|
1749
1745
|
return (options.client ?? client).post({
|
|
1750
1746
|
security: [
|
|
1747
|
+
{ scheme: "bearer", type: "http" },
|
|
1751
1748
|
{
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
type: "
|
|
1749
|
+
in: "cookie",
|
|
1750
|
+
name: "sessionid",
|
|
1751
|
+
type: "apiKey"
|
|
1755
1752
|
},
|
|
1753
|
+
{ name: "X-API-Key", type: "apiKey" }
|
|
1754
|
+
],
|
|
1755
|
+
url: "/cfg/accounts/api-key/regenerate/",
|
|
1756
|
+
...options,
|
|
1757
|
+
headers: {
|
|
1758
|
+
"Content-Type": "application/json",
|
|
1759
|
+
...options.headers
|
|
1760
|
+
}
|
|
1761
|
+
});
|
|
1762
|
+
}
|
|
1763
|
+
/**
|
|
1764
|
+
* Reveal API key
|
|
1765
|
+
*
|
|
1766
|
+
* Return the current full API key WITHOUT rotating it. The same durable value every one of the user's agents uses — for the signed-in user to copy and paste into agent onboarding. Default GET stays masked; this is the explicit reveal action.
|
|
1767
|
+
*/
|
|
1768
|
+
static cfgAccountsApiKeyRevealCreate(options) {
|
|
1769
|
+
return (options.client ?? client).post({
|
|
1770
|
+
security: [
|
|
1771
|
+
{ scheme: "bearer", type: "http" },
|
|
1756
1772
|
{
|
|
1757
1773
|
in: "cookie",
|
|
1758
1774
|
name: "sessionid",
|
|
@@ -1760,7 +1776,7 @@ var CfgAccountsApiKey = class {
|
|
|
1760
1776
|
},
|
|
1761
1777
|
{ name: "X-API-Key", type: "apiKey" }
|
|
1762
1778
|
],
|
|
1763
|
-
url: "/cfg/accounts/api-key/
|
|
1779
|
+
url: "/cfg/accounts/api-key/reveal/",
|
|
1764
1780
|
...options,
|
|
1765
1781
|
headers: {
|
|
1766
1782
|
"Content-Type": "application/json",
|
|
@@ -1776,11 +1792,7 @@ var CfgAccountsApiKey = class {
|
|
|
1776
1792
|
static cfgAccountsApiKeyTestCreate(options) {
|
|
1777
1793
|
return (options.client ?? client).post({
|
|
1778
1794
|
security: [
|
|
1779
|
-
{
|
|
1780
|
-
key: "jwtAuth",
|
|
1781
|
-
scheme: "bearer",
|
|
1782
|
-
type: "http"
|
|
1783
|
-
},
|
|
1795
|
+
{ scheme: "bearer", type: "http" },
|
|
1784
1796
|
{
|
|
1785
1797
|
in: "cookie",
|
|
1786
1798
|
name: "sessionid",
|
|
@@ -1808,11 +1820,7 @@ var CfgAccountsOauth = class {
|
|
|
1808
1820
|
*/
|
|
1809
1821
|
static cfgAccountsOauthConnectionsList(options) {
|
|
1810
1822
|
return (options?.client ?? client).get({
|
|
1811
|
-
security: [{ name: "X-API-Key", type: "apiKey" }, {
|
|
1812
|
-
key: "jwtAuthWithLastLogin",
|
|
1813
|
-
scheme: "bearer",
|
|
1814
|
-
type: "http"
|
|
1815
|
-
}],
|
|
1823
|
+
security: [{ name: "X-API-Key", type: "apiKey" }, { scheme: "bearer", type: "http" }],
|
|
1816
1824
|
url: "/cfg/accounts/oauth/connections/",
|
|
1817
1825
|
...options
|
|
1818
1826
|
});
|
|
@@ -1824,11 +1832,7 @@ var CfgAccountsOauth = class {
|
|
|
1824
1832
|
*/
|
|
1825
1833
|
static cfgAccountsOauthDisconnectCreate(options) {
|
|
1826
1834
|
return (options.client ?? client).post({
|
|
1827
|
-
security: [{ name: "X-API-Key", type: "apiKey" }, {
|
|
1828
|
-
key: "jwtAuthWithLastLogin",
|
|
1829
|
-
scheme: "bearer",
|
|
1830
|
-
type: "http"
|
|
1831
|
-
}],
|
|
1835
|
+
security: [{ name: "X-API-Key", type: "apiKey" }, { scheme: "bearer", type: "http" }],
|
|
1832
1836
|
url: "/cfg/accounts/oauth/disconnect/",
|
|
1833
1837
|
...options,
|
|
1834
1838
|
headers: {
|
|
@@ -1885,11 +1889,7 @@ var CfgAccounts = class {
|
|
|
1885
1889
|
*/
|
|
1886
1890
|
static cfgAccountsOtpRequestCreate(options) {
|
|
1887
1891
|
return (options.client ?? client).post({
|
|
1888
|
-
security: [{ name: "X-API-Key", type: "apiKey" }, {
|
|
1889
|
-
key: "jwtAuthWithLastLogin",
|
|
1890
|
-
scheme: "bearer",
|
|
1891
|
-
type: "http"
|
|
1892
|
-
}],
|
|
1892
|
+
security: [{ name: "X-API-Key", type: "apiKey" }, { scheme: "bearer", type: "http" }],
|
|
1893
1893
|
url: "/cfg/accounts/otp/request/",
|
|
1894
1894
|
...options,
|
|
1895
1895
|
headers: {
|
|
@@ -1910,11 +1910,7 @@ var CfgAccounts = class {
|
|
|
1910
1910
|
*/
|
|
1911
1911
|
static cfgAccountsOtpVerifyCreate(options) {
|
|
1912
1912
|
return (options.client ?? client).post({
|
|
1913
|
-
security: [{ name: "X-API-Key", type: "apiKey" }, {
|
|
1914
|
-
key: "jwtAuthWithLastLogin",
|
|
1915
|
-
scheme: "bearer",
|
|
1916
|
-
type: "http"
|
|
1917
|
-
}],
|
|
1913
|
+
security: [{ name: "X-API-Key", type: "apiKey" }, { scheme: "bearer", type: "http" }],
|
|
1918
1914
|
url: "/cfg/accounts/otp/verify/",
|
|
1919
1915
|
...options,
|
|
1920
1916
|
headers: {
|
|
@@ -1935,11 +1931,7 @@ var CfgAccountsProfile = class {
|
|
|
1935
1931
|
*/
|
|
1936
1932
|
static cfgAccountsProfileRetrieve(options) {
|
|
1937
1933
|
return (options?.client ?? client).get({
|
|
1938
|
-
security: [{
|
|
1939
|
-
key: "jwtAuth",
|
|
1940
|
-
scheme: "bearer",
|
|
1941
|
-
type: "http"
|
|
1942
|
-
}, {
|
|
1934
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
1943
1935
|
in: "cookie",
|
|
1944
1936
|
name: "sessionid",
|
|
1945
1937
|
type: "apiKey"
|
|
@@ -1956,11 +1948,7 @@ var CfgAccountsProfile = class {
|
|
|
1956
1948
|
static cfgAccountsProfileAvatarCreate(options) {
|
|
1957
1949
|
return (options?.client ?? client).post({
|
|
1958
1950
|
...formDataBodySerializer,
|
|
1959
|
-
security: [{ name: "X-API-Key", type: "apiKey" }, {
|
|
1960
|
-
key: "jwtAuthWithLastLogin",
|
|
1961
|
-
scheme: "bearer",
|
|
1962
|
-
type: "http"
|
|
1963
|
-
}],
|
|
1951
|
+
security: [{ name: "X-API-Key", type: "apiKey" }, { scheme: "bearer", type: "http" }],
|
|
1964
1952
|
url: "/cfg/accounts/profile/avatar/",
|
|
1965
1953
|
...options,
|
|
1966
1954
|
headers: {
|
|
@@ -1986,11 +1974,7 @@ var CfgAccountsProfile = class {
|
|
|
1986
1974
|
*/
|
|
1987
1975
|
static cfgAccountsProfileDeleteCreate(options) {
|
|
1988
1976
|
return (options?.client ?? client).post({
|
|
1989
|
-
security: [{
|
|
1990
|
-
key: "jwtAuth",
|
|
1991
|
-
scheme: "bearer",
|
|
1992
|
-
type: "http"
|
|
1993
|
-
}, {
|
|
1977
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
1994
1978
|
in: "cookie",
|
|
1995
1979
|
name: "sessionid",
|
|
1996
1980
|
type: "apiKey"
|
|
@@ -2006,11 +1990,7 @@ var CfgAccountsProfile = class {
|
|
|
2006
1990
|
*/
|
|
2007
1991
|
static cfgAccountsProfilePartialPartialUpdate(options) {
|
|
2008
1992
|
return (options?.client ?? client).patch({
|
|
2009
|
-
security: [{
|
|
2010
|
-
key: "jwtAuth",
|
|
2011
|
-
scheme: "bearer",
|
|
2012
|
-
type: "http"
|
|
2013
|
-
}, {
|
|
1993
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
2014
1994
|
in: "cookie",
|
|
2015
1995
|
name: "sessionid",
|
|
2016
1996
|
type: "apiKey"
|
|
@@ -2030,11 +2010,7 @@ var CfgAccountsProfile = class {
|
|
|
2030
2010
|
*/
|
|
2031
2011
|
static cfgAccountsProfilePartialUpdate(options) {
|
|
2032
2012
|
return (options?.client ?? client).put({
|
|
2033
|
-
security: [{
|
|
2034
|
-
key: "jwtAuth",
|
|
2035
|
-
scheme: "bearer",
|
|
2036
|
-
type: "http"
|
|
2037
|
-
}, {
|
|
2013
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
2038
2014
|
in: "cookie",
|
|
2039
2015
|
name: "sessionid",
|
|
2040
2016
|
type: "apiKey"
|
|
@@ -2054,11 +2030,7 @@ var CfgAccountsProfile = class {
|
|
|
2054
2030
|
*/
|
|
2055
2031
|
static cfgAccountsProfileUpdatePartialUpdate(options) {
|
|
2056
2032
|
return (options?.client ?? client).patch({
|
|
2057
|
-
security: [{
|
|
2058
|
-
key: "jwtAuth",
|
|
2059
|
-
scheme: "bearer",
|
|
2060
|
-
type: "http"
|
|
2061
|
-
}, {
|
|
2033
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
2062
2034
|
in: "cookie",
|
|
2063
2035
|
name: "sessionid",
|
|
2064
2036
|
type: "apiKey"
|
|
@@ -2078,11 +2050,7 @@ var CfgAccountsProfile = class {
|
|
|
2078
2050
|
*/
|
|
2079
2051
|
static cfgAccountsProfileUpdateUpdate(options) {
|
|
2080
2052
|
return (options?.client ?? client).put({
|
|
2081
|
-
security: [{
|
|
2082
|
-
key: "jwtAuth",
|
|
2083
|
-
scheme: "bearer",
|
|
2084
|
-
type: "http"
|
|
2085
|
-
}, {
|
|
2053
|
+
security: [{ scheme: "bearer", type: "http" }, {
|
|
2086
2054
|
in: "cookie",
|
|
2087
2055
|
name: "sessionid",
|
|
2088
2056
|
type: "apiKey"
|
|
@@ -2102,6 +2070,12 @@ var CfgAccountsAuth = class {
|
|
|
2102
2070
|
}
|
|
2103
2071
|
/**
|
|
2104
2072
|
* Refresh JWT token.
|
|
2073
|
+
*
|
|
2074
|
+
* DPoP-aware: when the incoming refresh token is key-bound (`cnf.jkt`), the
|
|
2075
|
+
* rotated access/refresh in the response are re-stamped with the same `cnf`
|
|
2076
|
+
* (stock SimpleJWT drops it from the derived access), and a matching DPoP
|
|
2077
|
+
* proof is required on the refresh request — so a stolen refresh token can't
|
|
2078
|
+
* be used to mint fresh tokens.
|
|
2105
2079
|
*/
|
|
2106
2080
|
static cfgAccountsTokenRefreshCreate(options) {
|
|
2107
2081
|
return (options.client ?? client).post({
|
|
@@ -2125,11 +2099,7 @@ var CfgCentrifugo = class {
|
|
|
2125
2099
|
*/
|
|
2126
2100
|
static cfgCentrifugoAuthTokenRetrieve(options) {
|
|
2127
2101
|
return (options?.client ?? client).get({
|
|
2128
|
-
security: [{ name: "X-API-Key", type: "apiKey" }, {
|
|
2129
|
-
key: "jwtAuthWithLastLogin",
|
|
2130
|
-
scheme: "bearer",
|
|
2131
|
-
type: "http"
|
|
2132
|
-
}],
|
|
2102
|
+
security: [{ name: "X-API-Key", type: "apiKey" }, { scheme: "bearer", type: "http" }],
|
|
2133
2103
|
url: "/cfg/centrifugo/auth/token/",
|
|
2134
2104
|
...options
|
|
2135
2105
|
});
|
|
@@ -2144,11 +2114,7 @@ var CfgTotpBackupCodes = class {
|
|
|
2144
2114
|
*/
|
|
2145
2115
|
static cfgTotpBackupCodesRetrieve(options) {
|
|
2146
2116
|
return (options?.client ?? client).get({
|
|
2147
|
-
security: [{ name: "X-API-Key", type: "apiKey" }, {
|
|
2148
|
-
key: "jwtAuthWithLastLogin",
|
|
2149
|
-
scheme: "bearer",
|
|
2150
|
-
type: "http"
|
|
2151
|
-
}],
|
|
2117
|
+
security: [{ name: "X-API-Key", type: "apiKey" }, { scheme: "bearer", type: "http" }],
|
|
2152
2118
|
url: "/cfg/totp/backup-codes/",
|
|
2153
2119
|
...options
|
|
2154
2120
|
});
|
|
@@ -2161,11 +2127,7 @@ var CfgTotpBackupCodes = class {
|
|
|
2161
2127
|
*/
|
|
2162
2128
|
static cfgTotpBackupCodesRegenerateCreate(options) {
|
|
2163
2129
|
return (options.client ?? client).post({
|
|
2164
|
-
security: [{ name: "X-API-Key", type: "apiKey" }, {
|
|
2165
|
-
key: "jwtAuthWithLastLogin",
|
|
2166
|
-
scheme: "bearer",
|
|
2167
|
-
type: "http"
|
|
2168
|
-
}],
|
|
2130
|
+
security: [{ name: "X-API-Key", type: "apiKey" }, { scheme: "bearer", type: "http" }],
|
|
2169
2131
|
url: "/cfg/totp/backup-codes/regenerate/",
|
|
2170
2132
|
...options,
|
|
2171
2133
|
headers: {
|
|
@@ -2184,11 +2146,7 @@ var CfgTotp = class {
|
|
|
2184
2146
|
*/
|
|
2185
2147
|
static cfgTotpDevicesRetrieve(options) {
|
|
2186
2148
|
return (options?.client ?? client).get({
|
|
2187
|
-
security: [{ name: "X-API-Key", type: "apiKey" }, {
|
|
2188
|
-
key: "jwtAuthWithLastLogin",
|
|
2189
|
-
scheme: "bearer",
|
|
2190
|
-
type: "http"
|
|
2191
|
-
}],
|
|
2149
|
+
security: [{ name: "X-API-Key", type: "apiKey" }, { scheme: "bearer", type: "http" }],
|
|
2192
2150
|
url: "/cfg/totp/devices/",
|
|
2193
2151
|
...options
|
|
2194
2152
|
});
|
|
@@ -2200,11 +2158,7 @@ var CfgTotp = class {
|
|
|
2200
2158
|
*/
|
|
2201
2159
|
static cfgTotpDevicesDestroy(options) {
|
|
2202
2160
|
return (options.client ?? client).delete({
|
|
2203
|
-
security: [{ name: "X-API-Key", type: "apiKey" }, {
|
|
2204
|
-
key: "jwtAuthWithLastLogin",
|
|
2205
|
-
scheme: "bearer",
|
|
2206
|
-
type: "http"
|
|
2207
|
-
}],
|
|
2161
|
+
security: [{ name: "X-API-Key", type: "apiKey" }, { scheme: "bearer", type: "http" }],
|
|
2208
2162
|
url: "/cfg/totp/devices/{id}/",
|
|
2209
2163
|
...options
|
|
2210
2164
|
});
|
|
@@ -2216,11 +2170,7 @@ var CfgTotp = class {
|
|
|
2216
2170
|
*/
|
|
2217
2171
|
static cfgTotpDisableCreate(options) {
|
|
2218
2172
|
return (options.client ?? client).post({
|
|
2219
|
-
security: [{ name: "X-API-Key", type: "apiKey" }, {
|
|
2220
|
-
key: "jwtAuthWithLastLogin",
|
|
2221
|
-
scheme: "bearer",
|
|
2222
|
-
type: "http"
|
|
2223
|
-
}],
|
|
2173
|
+
security: [{ name: "X-API-Key", type: "apiKey" }, { scheme: "bearer", type: "http" }],
|
|
2224
2174
|
url: "/cfg/totp/disable/",
|
|
2225
2175
|
...options,
|
|
2226
2176
|
headers: {
|
|
@@ -2241,11 +2191,7 @@ var CfgTotpSetup = class {
|
|
|
2241
2191
|
*/
|
|
2242
2192
|
static cfgTotpSetupCreate(options) {
|
|
2243
2193
|
return (options?.client ?? client).post({
|
|
2244
|
-
security: [{ name: "X-API-Key", type: "apiKey" }, {
|
|
2245
|
-
key: "jwtAuthWithLastLogin",
|
|
2246
|
-
scheme: "bearer",
|
|
2247
|
-
type: "http"
|
|
2248
|
-
}],
|
|
2194
|
+
security: [{ name: "X-API-Key", type: "apiKey" }, { scheme: "bearer", type: "http" }],
|
|
2249
2195
|
url: "/cfg/totp/setup/",
|
|
2250
2196
|
...options,
|
|
2251
2197
|
headers: {
|
|
@@ -2261,11 +2207,7 @@ var CfgTotpSetup = class {
|
|
|
2261
2207
|
*/
|
|
2262
2208
|
static cfgTotpSetupConfirmCreate(options) {
|
|
2263
2209
|
return (options.client ?? client).post({
|
|
2264
|
-
security: [{ name: "X-API-Key", type: "apiKey" }, {
|
|
2265
|
-
key: "jwtAuthWithLastLogin",
|
|
2266
|
-
scheme: "bearer",
|
|
2267
|
-
type: "http"
|
|
2268
|
-
}],
|
|
2210
|
+
security: [{ name: "X-API-Key", type: "apiKey" }, { scheme: "bearer", type: "http" }],
|
|
2269
2211
|
url: "/cfg/totp/setup/confirm/",
|
|
2270
2212
|
...options,
|
|
2271
2213
|
headers: {
|
|
@@ -2286,11 +2228,7 @@ var CfgTotpVerify = class {
|
|
|
2286
2228
|
*/
|
|
2287
2229
|
static cfgTotpVerifyCreate(options) {
|
|
2288
2230
|
return (options.client ?? client).post({
|
|
2289
|
-
security: [{ name: "X-API-Key", type: "apiKey" }, {
|
|
2290
|
-
key: "jwtAuthWithLastLogin",
|
|
2291
|
-
scheme: "bearer",
|
|
2292
|
-
type: "http"
|
|
2293
|
-
}],
|
|
2231
|
+
security: [{ name: "X-API-Key", type: "apiKey" }, { scheme: "bearer", type: "http" }],
|
|
2294
2232
|
url: "/cfg/totp/verify/",
|
|
2295
2233
|
...options,
|
|
2296
2234
|
headers: {
|
|
@@ -2306,11 +2244,7 @@ var CfgTotpVerify = class {
|
|
|
2306
2244
|
*/
|
|
2307
2245
|
static cfgTotpVerifyBackupCreate(options) {
|
|
2308
2246
|
return (options.client ?? client).post({
|
|
2309
|
-
security: [{ name: "X-API-Key", type: "apiKey" }, {
|
|
2310
|
-
key: "jwtAuthWithLastLogin",
|
|
2311
|
-
scheme: "bearer",
|
|
2312
|
-
type: "http"
|
|
2313
|
-
}],
|
|
2247
|
+
security: [{ name: "X-API-Key", type: "apiKey" }, { scheme: "bearer", type: "http" }],
|
|
2314
2248
|
url: "/cfg/totp/verify/backup/",
|
|
2315
2249
|
...options,
|
|
2316
2250
|
headers: {
|
|
@@ -3958,100 +3892,111 @@ var APIKeySchema = z2.object({
|
|
|
3958
3892
|
created_at: z2.string().datetime({ offset: true })
|
|
3959
3893
|
});
|
|
3960
3894
|
|
|
3961
|
-
// src/_api/generated/_cfg_accounts/hooks/
|
|
3895
|
+
// src/_api/generated/_cfg_accounts/hooks/useCfgAccountsApiKeyRevealCreate.ts
|
|
3962
3896
|
import useSWRMutation2 from "swr/mutation";
|
|
3963
3897
|
|
|
3964
|
-
// src/_api/generated/_cfg_accounts/schemas/
|
|
3898
|
+
// src/_api/generated/_cfg_accounts/schemas/APIKeyReveal.ts
|
|
3965
3899
|
import { z as z3 } from "zod";
|
|
3966
|
-
var
|
|
3967
|
-
|
|
3968
|
-
|
|
3900
|
+
var APIKeyRevealSchema = z3.object({
|
|
3901
|
+
key: z3.string(),
|
|
3902
|
+
created_at: z3.string().datetime({ offset: true }),
|
|
3903
|
+
reissued_at: z3.string().datetime({ offset: true }).nullable()
|
|
3904
|
+
});
|
|
3905
|
+
|
|
3906
|
+
// src/_api/generated/_cfg_accounts/hooks/useCfgAccountsApiKeyTestCreate.ts
|
|
3907
|
+
import useSWRMutation3 from "swr/mutation";
|
|
3908
|
+
|
|
3909
|
+
// src/_api/generated/_cfg_accounts/schemas/APIKeyTestResult.ts
|
|
3910
|
+
import { z as z4 } from "zod";
|
|
3911
|
+
var APIKeyTestResultSchema = z4.object({
|
|
3912
|
+
valid: z4.boolean(),
|
|
3913
|
+
user_id: z4.string().nullable()
|
|
3969
3914
|
});
|
|
3970
3915
|
|
|
3971
3916
|
// src/_api/generated/_cfg_accounts/hooks/useCfgAccountsOauthConnectionsList.ts
|
|
3972
3917
|
import useSWR2 from "swr";
|
|
3973
3918
|
|
|
3974
3919
|
// src/_api/generated/_cfg_accounts/schemas/cfg_accounts_oauth_connections_response_200_AutoRef.ts
|
|
3975
|
-
import { z as
|
|
3920
|
+
import { z as z7 } from "zod";
|
|
3976
3921
|
|
|
3977
3922
|
// src/_api/generated/_cfg_accounts/schemas/OAuthConnection.ts
|
|
3978
|
-
import { z as
|
|
3923
|
+
import { z as z6 } from "zod";
|
|
3979
3924
|
|
|
3980
3925
|
// src/_api/generated/_cfg_accounts/schemas/OAuthProviderEnum.ts
|
|
3981
|
-
import { z as
|
|
3982
|
-
var OAuthProviderEnumSchema =
|
|
3926
|
+
import { z as z5 } from "zod";
|
|
3927
|
+
var OAuthProviderEnumSchema = z5.enum(["github"]);
|
|
3983
3928
|
|
|
3984
3929
|
// src/_api/generated/_cfg_accounts/schemas/OAuthConnection.ts
|
|
3985
|
-
var OAuthConnectionSchema =
|
|
3986
|
-
id:
|
|
3930
|
+
var OAuthConnectionSchema = z6.object({
|
|
3931
|
+
id: z6.number().int(),
|
|
3987
3932
|
provider: OAuthProviderEnumSchema,
|
|
3988
|
-
provider_display:
|
|
3989
|
-
provider_username:
|
|
3990
|
-
provider_email:
|
|
3991
|
-
provider_avatar_url:
|
|
3992
|
-
connected_at:
|
|
3993
|
-
last_login_at:
|
|
3933
|
+
provider_display: z6.string(),
|
|
3934
|
+
provider_username: z6.string(),
|
|
3935
|
+
provider_email: z6.email(),
|
|
3936
|
+
provider_avatar_url: z6.string(),
|
|
3937
|
+
connected_at: z6.string().datetime({ offset: true }),
|
|
3938
|
+
last_login_at: z6.string().datetime({ offset: true })
|
|
3994
3939
|
});
|
|
3995
3940
|
|
|
3996
3941
|
// src/_api/generated/_cfg_accounts/schemas/cfg_accounts_oauth_connections_response_200_AutoRef.ts
|
|
3997
|
-
var cfg_accounts_oauth_connections_response_200_AutoRefSchema =
|
|
3942
|
+
var cfg_accounts_oauth_connections_response_200_AutoRefSchema = z7.array(OAuthConnectionSchema);
|
|
3998
3943
|
|
|
3999
3944
|
// src/_api/generated/_cfg_accounts/hooks/useCfgAccountsOauthDisconnectCreate.ts
|
|
4000
|
-
import
|
|
3945
|
+
import useSWRMutation4 from "swr/mutation";
|
|
4001
3946
|
|
|
4002
3947
|
// src/_api/generated/_cfg_accounts/schemas/cfg_accounts_oauth_disconnect_response_200_AutoRef.ts
|
|
4003
|
-
import { z as
|
|
4004
|
-
var cfg_accounts_oauth_disconnect_response_200_AutoRefSchema =
|
|
4005
|
-
message:
|
|
3948
|
+
import { z as z8 } from "zod";
|
|
3949
|
+
var cfg_accounts_oauth_disconnect_response_200_AutoRefSchema = z8.object({
|
|
3950
|
+
message: z8.string().optional()
|
|
4006
3951
|
});
|
|
4007
3952
|
|
|
4008
3953
|
// src/_api/generated/_cfg_accounts/hooks/useCfgAccountsOauthGithubAuthorizeCreate.ts
|
|
4009
|
-
import
|
|
3954
|
+
import useSWRMutation5 from "swr/mutation";
|
|
4010
3955
|
|
|
4011
3956
|
// src/_api/generated/_cfg_accounts/schemas/OAuthAuthorizeResponse.ts
|
|
4012
|
-
import { z as
|
|
4013
|
-
var OAuthAuthorizeResponseSchema =
|
|
4014
|
-
authorization_url:
|
|
4015
|
-
state:
|
|
3957
|
+
import { z as z9 } from "zod";
|
|
3958
|
+
var OAuthAuthorizeResponseSchema = z9.object({
|
|
3959
|
+
authorization_url: z9.string(),
|
|
3960
|
+
state: z9.string()
|
|
4016
3961
|
});
|
|
4017
3962
|
|
|
4018
3963
|
// src/_api/generated/_cfg_accounts/hooks/useCfgAccountsOauthGithubCallbackCreate.ts
|
|
4019
|
-
import
|
|
3964
|
+
import useSWRMutation6 from "swr/mutation";
|
|
4020
3965
|
|
|
4021
3966
|
// src/_api/generated/_cfg_accounts/schemas/OAuthTokenResponse.ts
|
|
4022
|
-
import { z as
|
|
4023
|
-
var OAuthTokenResponseSchema =
|
|
4024
|
-
requires_2fa:
|
|
4025
|
-
session_id:
|
|
4026
|
-
access:
|
|
4027
|
-
refresh:
|
|
4028
|
-
user:
|
|
4029
|
-
is_new_user:
|
|
4030
|
-
is_new_connection:
|
|
4031
|
-
should_prompt_2fa:
|
|
3967
|
+
import { z as z10 } from "zod";
|
|
3968
|
+
var OAuthTokenResponseSchema = z10.object({
|
|
3969
|
+
requires_2fa: z10.boolean().default(false).optional(),
|
|
3970
|
+
session_id: z10.string().regex(/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i).nullable().optional(),
|
|
3971
|
+
access: z10.string().nullable().optional(),
|
|
3972
|
+
refresh: z10.string().nullable().optional(),
|
|
3973
|
+
user: z10.object({}).passthrough().nullable().optional(),
|
|
3974
|
+
is_new_user: z10.boolean(),
|
|
3975
|
+
is_new_connection: z10.boolean(),
|
|
3976
|
+
should_prompt_2fa: z10.boolean().optional()
|
|
4032
3977
|
});
|
|
4033
3978
|
|
|
4034
3979
|
// src/_api/generated/_cfg_accounts/hooks/useCfgAccountsOauthProvidersRetrieve.ts
|
|
4035
3980
|
import useSWR3 from "swr";
|
|
4036
3981
|
|
|
4037
3982
|
// src/_api/generated/_cfg_accounts/schemas/OAuthProvidersResponse.ts
|
|
4038
|
-
import { z as
|
|
4039
|
-
var OAuthProvidersResponseSchema =
|
|
4040
|
-
providers:
|
|
3983
|
+
import { z as z11 } from "zod";
|
|
3984
|
+
var OAuthProvidersResponseSchema = z11.object({
|
|
3985
|
+
providers: z11.array(z11.object({}).passthrough())
|
|
4041
3986
|
});
|
|
4042
3987
|
|
|
4043
3988
|
// src/_api/generated/_cfg_accounts/hooks/useCfgAccountsOtpRequestCreate.ts
|
|
4044
|
-
import
|
|
3989
|
+
import useSWRMutation7 from "swr/mutation";
|
|
4045
3990
|
|
|
4046
3991
|
// src/_api/generated/_cfg_accounts/schemas/OTPRequestResponse.ts
|
|
4047
|
-
import { z as
|
|
4048
|
-
var OTPRequestResponseSchema =
|
|
4049
|
-
message:
|
|
3992
|
+
import { z as z12 } from "zod";
|
|
3993
|
+
var OTPRequestResponseSchema = z12.object({
|
|
3994
|
+
message: z12.string()
|
|
4050
3995
|
});
|
|
4051
3996
|
|
|
4052
3997
|
// src/_api/generated/_cfg_accounts/hooks/useCfgAccountsOtpRequestCreate.ts
|
|
4053
3998
|
function useCfgAccountsOtpRequestCreate(config) {
|
|
4054
|
-
return
|
|
3999
|
+
return useSWRMutation7(
|
|
4055
4000
|
["cfg_accounts_otp_request_create"],
|
|
4056
4001
|
async (_key, { arg }) => {
|
|
4057
4002
|
const res = await CfgAccounts.cfgAccountsOtpRequestCreate({ ...arg, throwOnError: true });
|
|
@@ -4097,60 +4042,60 @@ function useCfgAccountsOtpRequestCreate(config) {
|
|
|
4097
4042
|
__name(useCfgAccountsOtpRequestCreate, "useCfgAccountsOtpRequestCreate");
|
|
4098
4043
|
|
|
4099
4044
|
// src/_api/generated/_cfg_accounts/hooks/useCfgAccountsOtpVerifyCreate.ts
|
|
4100
|
-
import
|
|
4045
|
+
import useSWRMutation8 from "swr/mutation";
|
|
4101
4046
|
|
|
4102
4047
|
// src/_api/generated/_cfg_accounts/schemas/OTPVerifyResponse.ts
|
|
4103
|
-
import { z as
|
|
4048
|
+
import { z as z15 } from "zod";
|
|
4104
4049
|
|
|
4105
4050
|
// src/_api/generated/_cfg_accounts/schemas/User.ts
|
|
4106
|
-
import { z as
|
|
4051
|
+
import { z as z14 } from "zod";
|
|
4107
4052
|
|
|
4108
4053
|
// src/_api/generated/_cfg_accounts/schemas/CentrifugoToken.ts
|
|
4109
|
-
import { z as
|
|
4110
|
-
var CentrifugoTokenSchema =
|
|
4111
|
-
token:
|
|
4112
|
-
centrifugo_url:
|
|
4113
|
-
expires_at:
|
|
4114
|
-
channels:
|
|
4054
|
+
import { z as z13 } from "zod";
|
|
4055
|
+
var CentrifugoTokenSchema = z13.object({
|
|
4056
|
+
token: z13.string(),
|
|
4057
|
+
centrifugo_url: z13.string(),
|
|
4058
|
+
expires_at: z13.string().datetime({ offset: true }),
|
|
4059
|
+
channels: z13.array(z13.string())
|
|
4115
4060
|
});
|
|
4116
4061
|
|
|
4117
4062
|
// src/_api/generated/_cfg_accounts/schemas/User.ts
|
|
4118
|
-
var UserSchema =
|
|
4119
|
-
id:
|
|
4120
|
-
email:
|
|
4121
|
-
first_name:
|
|
4122
|
-
last_name:
|
|
4123
|
-
full_name:
|
|
4124
|
-
initials:
|
|
4125
|
-
display_username:
|
|
4126
|
-
company:
|
|
4127
|
-
phone:
|
|
4128
|
-
position:
|
|
4129
|
-
language:
|
|
4130
|
-
timezone:
|
|
4131
|
-
avatar:
|
|
4132
|
-
is_staff:
|
|
4133
|
-
is_superuser:
|
|
4134
|
-
date_joined:
|
|
4135
|
-
last_login:
|
|
4136
|
-
unanswered_messages_count:
|
|
4063
|
+
var UserSchema = z14.object({
|
|
4064
|
+
id: z14.number().int(),
|
|
4065
|
+
email: z14.email(),
|
|
4066
|
+
first_name: z14.string().max(50).nullable().optional(),
|
|
4067
|
+
last_name: z14.string().max(50).nullable().optional(),
|
|
4068
|
+
full_name: z14.string(),
|
|
4069
|
+
initials: z14.string(),
|
|
4070
|
+
display_username: z14.string(),
|
|
4071
|
+
company: z14.string().max(100).nullable().optional(),
|
|
4072
|
+
phone: z14.string().max(20).nullable().optional(),
|
|
4073
|
+
position: z14.string().max(100).nullable().optional(),
|
|
4074
|
+
language: z14.string().max(10).nullable().optional(),
|
|
4075
|
+
timezone: z14.string().max(64).nullable().optional(),
|
|
4076
|
+
avatar: z14.string().nullable(),
|
|
4077
|
+
is_staff: z14.boolean(),
|
|
4078
|
+
is_superuser: z14.boolean(),
|
|
4079
|
+
date_joined: z14.string().datetime({ offset: true }),
|
|
4080
|
+
last_login: z14.string().datetime({ offset: true }).nullable(),
|
|
4081
|
+
unanswered_messages_count: z14.number().int().default(0),
|
|
4137
4082
|
centrifugo: CentrifugoTokenSchema.nullable(),
|
|
4138
|
-
api_key:
|
|
4083
|
+
api_key: z14.string().nullable()
|
|
4139
4084
|
});
|
|
4140
4085
|
|
|
4141
4086
|
// src/_api/generated/_cfg_accounts/schemas/OTPVerifyResponse.ts
|
|
4142
|
-
var OTPVerifyResponseSchema =
|
|
4143
|
-
requires_2fa:
|
|
4144
|
-
session_id:
|
|
4145
|
-
refresh:
|
|
4146
|
-
access:
|
|
4087
|
+
var OTPVerifyResponseSchema = z15.object({
|
|
4088
|
+
requires_2fa: z15.boolean().default(false).optional(),
|
|
4089
|
+
session_id: z15.string().regex(/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i).nullable().optional(),
|
|
4090
|
+
refresh: z15.string().nullable().optional(),
|
|
4091
|
+
access: z15.string().nullable().optional(),
|
|
4147
4092
|
user: UserSchema.nullable().optional(),
|
|
4148
|
-
should_prompt_2fa:
|
|
4093
|
+
should_prompt_2fa: z15.boolean().optional()
|
|
4149
4094
|
});
|
|
4150
4095
|
|
|
4151
4096
|
// src/_api/generated/_cfg_accounts/hooks/useCfgAccountsOtpVerifyCreate.ts
|
|
4152
4097
|
function useCfgAccountsOtpVerifyCreate(config) {
|
|
4153
|
-
return
|
|
4098
|
+
return useSWRMutation8(
|
|
4154
4099
|
["cfg_accounts_otp_verify_create"],
|
|
4155
4100
|
async (_key, { arg }) => {
|
|
4156
4101
|
const res = await CfgAccounts.cfgAccountsOtpVerifyCreate({ ...arg, throwOnError: true });
|
|
@@ -4196,9 +4141,9 @@ function useCfgAccountsOtpVerifyCreate(config) {
|
|
|
4196
4141
|
__name(useCfgAccountsOtpVerifyCreate, "useCfgAccountsOtpVerifyCreate");
|
|
4197
4142
|
|
|
4198
4143
|
// src/_api/generated/_cfg_accounts/hooks/useCfgAccountsProfileAvatarCreate.ts
|
|
4199
|
-
import
|
|
4144
|
+
import useSWRMutation9 from "swr/mutation";
|
|
4200
4145
|
function useCfgAccountsProfileAvatarCreate(config) {
|
|
4201
|
-
return
|
|
4146
|
+
return useSWRMutation9(
|
|
4202
4147
|
["cfg_accounts_profile_avatar_create"],
|
|
4203
4148
|
async (_key, { arg }) => {
|
|
4204
4149
|
const res = await CfgAccountsProfile.cfgAccountsProfileAvatarCreate({ ...arg, throwOnError: true });
|
|
@@ -4244,22 +4189,22 @@ function useCfgAccountsProfileAvatarCreate(config) {
|
|
|
4244
4189
|
__name(useCfgAccountsProfileAvatarCreate, "useCfgAccountsProfileAvatarCreate");
|
|
4245
4190
|
|
|
4246
4191
|
// src/_api/generated/_cfg_accounts/hooks/useCfgAccountsProfileDeleteCreate.ts
|
|
4247
|
-
import
|
|
4192
|
+
import useSWRMutation10 from "swr/mutation";
|
|
4248
4193
|
|
|
4249
4194
|
// src/_api/generated/_cfg_accounts/schemas/AccountDeleteResponse.ts
|
|
4250
|
-
import { z as
|
|
4251
|
-
var AccountDeleteResponseSchema =
|
|
4252
|
-
success:
|
|
4253
|
-
message:
|
|
4195
|
+
import { z as z16 } from "zod";
|
|
4196
|
+
var AccountDeleteResponseSchema = z16.object({
|
|
4197
|
+
success: z16.boolean(),
|
|
4198
|
+
message: z16.string()
|
|
4254
4199
|
});
|
|
4255
4200
|
|
|
4256
4201
|
// src/_api/generated/_cfg_accounts/hooks/useCfgAccountsProfilePartialPartialUpdate.ts
|
|
4257
|
-
import
|
|
4202
|
+
import useSWRMutation11 from "swr/mutation";
|
|
4258
4203
|
|
|
4259
4204
|
// src/_api/generated/_cfg_accounts/hooks/useCfgAccountsProfilePartialUpdate.ts
|
|
4260
|
-
import
|
|
4205
|
+
import useSWRMutation12 from "swr/mutation";
|
|
4261
4206
|
function useCfgAccountsProfilePartialUpdate(config) {
|
|
4262
|
-
return
|
|
4207
|
+
return useSWRMutation12(
|
|
4263
4208
|
["cfg_accounts_profile_partial_update"],
|
|
4264
4209
|
async (_key, { arg }) => {
|
|
4265
4210
|
const res = await CfgAccountsProfile.cfgAccountsProfilePartialUpdate({ ...arg, throwOnError: true });
|
|
@@ -4308,12 +4253,12 @@ __name(useCfgAccountsProfilePartialUpdate, "useCfgAccountsProfilePartialUpdate")
|
|
|
4308
4253
|
import useSWR4 from "swr";
|
|
4309
4254
|
|
|
4310
4255
|
// src/_api/generated/_cfg_accounts/hooks/useCfgAccountsProfileUpdatePartialUpdate.ts
|
|
4311
|
-
import
|
|
4256
|
+
import useSWRMutation13 from "swr/mutation";
|
|
4312
4257
|
|
|
4313
4258
|
// src/_api/generated/_cfg_accounts/hooks/useCfgAccountsProfileUpdateUpdate.ts
|
|
4314
|
-
import
|
|
4259
|
+
import useSWRMutation14 from "swr/mutation";
|
|
4315
4260
|
function useCfgAccountsProfileUpdateUpdate(config) {
|
|
4316
|
-
return
|
|
4261
|
+
return useSWRMutation14(
|
|
4317
4262
|
["cfg_accounts_profile_update_update"],
|
|
4318
4263
|
async (_key, { arg }) => {
|
|
4319
4264
|
const res = await CfgAccountsProfile.cfgAccountsProfileUpdateUpdate({ ...arg, throwOnError: true });
|
|
@@ -4359,18 +4304,18 @@ function useCfgAccountsProfileUpdateUpdate(config) {
|
|
|
4359
4304
|
__name(useCfgAccountsProfileUpdateUpdate, "useCfgAccountsProfileUpdateUpdate");
|
|
4360
4305
|
|
|
4361
4306
|
// src/_api/generated/_cfg_accounts/hooks/useCfgAccountsTokenRefreshCreate.ts
|
|
4362
|
-
import
|
|
4307
|
+
import useSWRMutation15 from "swr/mutation";
|
|
4363
4308
|
|
|
4364
4309
|
// src/_api/generated/_cfg_accounts/schemas/TokenRefresh.ts
|
|
4365
|
-
import { z as
|
|
4366
|
-
var TokenRefreshSchema =
|
|
4367
|
-
access:
|
|
4368
|
-
refresh:
|
|
4310
|
+
import { z as z17 } from "zod";
|
|
4311
|
+
var TokenRefreshSchema = z17.object({
|
|
4312
|
+
access: z17.string(),
|
|
4313
|
+
refresh: z17.string()
|
|
4369
4314
|
});
|
|
4370
4315
|
|
|
4371
4316
|
// src/_api/generated/_cfg_accounts/hooks/useCfgAccountsTokenRefreshCreate.ts
|
|
4372
4317
|
function useCfgAccountsTokenRefreshCreate(config) {
|
|
4373
|
-
return
|
|
4318
|
+
return useSWRMutation15(
|
|
4374
4319
|
["cfg_accounts_token_refresh_create"],
|
|
4375
4320
|
async (_key, { arg }) => {
|
|
4376
4321
|
const res = await CfgAccountsAuth.cfgAccountsTokenRefreshCreate({ ...arg, throwOnError: true });
|
|
@@ -4416,98 +4361,98 @@ function useCfgAccountsTokenRefreshCreate(config) {
|
|
|
4416
4361
|
__name(useCfgAccountsTokenRefreshCreate, "useCfgAccountsTokenRefreshCreate");
|
|
4417
4362
|
|
|
4418
4363
|
// src/_api/generated/_cfg_accounts/schemas/APIKeyRequest.ts
|
|
4419
|
-
import { z as
|
|
4420
|
-
var APIKeyRequestSchema =
|
|
4421
|
-
key:
|
|
4422
|
-
reissued_at:
|
|
4423
|
-
created_at:
|
|
4364
|
+
import { z as z18 } from "zod";
|
|
4365
|
+
var APIKeyRequestSchema = z18.object({
|
|
4366
|
+
key: z18.string().min(1),
|
|
4367
|
+
reissued_at: z18.string().datetime({ offset: true }).nullable(),
|
|
4368
|
+
created_at: z18.string().datetime({ offset: true })
|
|
4424
4369
|
});
|
|
4425
4370
|
|
|
4426
4371
|
// src/_api/generated/_cfg_accounts/schemas/APIKeyTestRequest.ts
|
|
4427
|
-
import { z as
|
|
4428
|
-
var APIKeyTestRequestSchema =
|
|
4429
|
-
key:
|
|
4372
|
+
import { z as z19 } from "zod";
|
|
4373
|
+
var APIKeyTestRequestSchema = z19.object({
|
|
4374
|
+
key: z19.string().min(1)
|
|
4430
4375
|
});
|
|
4431
4376
|
|
|
4432
4377
|
// src/_api/generated/_cfg_accounts/schemas/CfgUserUpdateRequest.ts
|
|
4433
|
-
import { z as
|
|
4434
|
-
var CfgUserUpdateRequestSchema =
|
|
4435
|
-
first_name:
|
|
4436
|
-
last_name:
|
|
4437
|
-
company:
|
|
4438
|
-
phone:
|
|
4439
|
-
position:
|
|
4440
|
-
language:
|
|
4441
|
-
timezone:
|
|
4378
|
+
import { z as z20 } from "zod";
|
|
4379
|
+
var CfgUserUpdateRequestSchema = z20.object({
|
|
4380
|
+
first_name: z20.string().max(50).optional(),
|
|
4381
|
+
last_name: z20.string().max(50).optional(),
|
|
4382
|
+
company: z20.string().max(100).optional(),
|
|
4383
|
+
phone: z20.string().max(20).optional(),
|
|
4384
|
+
position: z20.string().max(100).optional(),
|
|
4385
|
+
language: z20.string().max(10).optional(),
|
|
4386
|
+
timezone: z20.string().max(64).optional()
|
|
4442
4387
|
});
|
|
4443
4388
|
|
|
4444
4389
|
// src/_api/generated/_cfg_accounts/schemas/OAuthAuthorizeRequestRequest.ts
|
|
4445
|
-
import { z as
|
|
4446
|
-
var OAuthAuthorizeRequestRequestSchema =
|
|
4447
|
-
redirect_uri:
|
|
4448
|
-
source_url:
|
|
4390
|
+
import { z as z21 } from "zod";
|
|
4391
|
+
var OAuthAuthorizeRequestRequestSchema = z21.object({
|
|
4392
|
+
redirect_uri: z21.string().optional(),
|
|
4393
|
+
source_url: z21.string().optional()
|
|
4449
4394
|
});
|
|
4450
4395
|
|
|
4451
4396
|
// src/_api/generated/_cfg_accounts/schemas/OAuthCallbackRequestRequest.ts
|
|
4452
|
-
import { z as
|
|
4453
|
-
var OAuthCallbackRequestRequestSchema =
|
|
4454
|
-
code:
|
|
4455
|
-
state:
|
|
4456
|
-
redirect_uri:
|
|
4397
|
+
import { z as z22 } from "zod";
|
|
4398
|
+
var OAuthCallbackRequestRequestSchema = z22.object({
|
|
4399
|
+
code: z22.string().min(10).max(500),
|
|
4400
|
+
state: z22.string().min(20).max(100),
|
|
4401
|
+
redirect_uri: z22.string().optional()
|
|
4457
4402
|
});
|
|
4458
4403
|
|
|
4459
4404
|
// src/_api/generated/_cfg_accounts/schemas/OAuthDisconnectRequestRequest.ts
|
|
4460
|
-
import { z as
|
|
4461
|
-
var OAuthDisconnectRequestRequestSchema =
|
|
4405
|
+
import { z as z23 } from "zod";
|
|
4406
|
+
var OAuthDisconnectRequestRequestSchema = z23.object({
|
|
4462
4407
|
provider: OAuthProviderEnumSchema
|
|
4463
4408
|
});
|
|
4464
4409
|
|
|
4465
4410
|
// src/_api/generated/_cfg_accounts/schemas/OAuthError.ts
|
|
4466
|
-
import { z as z23 } from "zod";
|
|
4467
|
-
var OAuthErrorSchema = z23.object({
|
|
4468
|
-
error: z23.string(),
|
|
4469
|
-
error_description: z23.string().optional()
|
|
4470
|
-
});
|
|
4471
|
-
|
|
4472
|
-
// src/_api/generated/_cfg_accounts/schemas/OTPErrorResponse.ts
|
|
4473
4411
|
import { z as z24 } from "zod";
|
|
4474
|
-
var
|
|
4412
|
+
var OAuthErrorSchema = z24.object({
|
|
4475
4413
|
error: z24.string(),
|
|
4476
|
-
|
|
4477
|
-
retry_after: z24.number().int().nullable().optional()
|
|
4414
|
+
error_description: z24.string().optional()
|
|
4478
4415
|
});
|
|
4479
4416
|
|
|
4480
|
-
// src/_api/generated/_cfg_accounts/schemas/
|
|
4417
|
+
// src/_api/generated/_cfg_accounts/schemas/OTPErrorResponse.ts
|
|
4481
4418
|
import { z as z25 } from "zod";
|
|
4482
|
-
var
|
|
4483
|
-
|
|
4484
|
-
|
|
4419
|
+
var OTPErrorResponseSchema = z25.object({
|
|
4420
|
+
error: z25.string(),
|
|
4421
|
+
error_code: z25.string().nullable().optional(),
|
|
4422
|
+
retry_after: z25.number().int().nullable().optional()
|
|
4485
4423
|
});
|
|
4486
4424
|
|
|
4487
|
-
// src/_api/generated/_cfg_accounts/schemas/
|
|
4425
|
+
// src/_api/generated/_cfg_accounts/schemas/OTPRequestRequest.ts
|
|
4488
4426
|
import { z as z26 } from "zod";
|
|
4489
|
-
var
|
|
4427
|
+
var OTPRequestRequestSchema = z26.object({
|
|
4490
4428
|
identifier: z26.string().min(1),
|
|
4491
|
-
otp: z26.string().min(4).max(4),
|
|
4492
4429
|
source_url: z26.string().optional()
|
|
4493
4430
|
});
|
|
4494
4431
|
|
|
4495
|
-
// src/_api/generated/_cfg_accounts/schemas/
|
|
4432
|
+
// src/_api/generated/_cfg_accounts/schemas/OTPVerifyRequest.ts
|
|
4496
4433
|
import { z as z27 } from "zod";
|
|
4497
|
-
var
|
|
4498
|
-
|
|
4499
|
-
|
|
4500
|
-
|
|
4501
|
-
phone: z27.string().max(20).optional(),
|
|
4502
|
-
position: z27.string().max(100).optional(),
|
|
4503
|
-
language: z27.string().max(10).optional(),
|
|
4504
|
-
timezone: z27.string().max(64).optional()
|
|
4434
|
+
var OTPVerifyRequestSchema = z27.object({
|
|
4435
|
+
identifier: z27.string().min(1),
|
|
4436
|
+
otp: z27.string().min(4).max(4),
|
|
4437
|
+
source_url: z27.string().optional()
|
|
4505
4438
|
});
|
|
4506
4439
|
|
|
4507
|
-
// src/_api/generated/_cfg_accounts/schemas/
|
|
4440
|
+
// src/_api/generated/_cfg_accounts/schemas/PatchedCfgUserUpdateRequest.ts
|
|
4508
4441
|
import { z as z28 } from "zod";
|
|
4509
|
-
var
|
|
4510
|
-
|
|
4442
|
+
var PatchedCfgUserUpdateRequestSchema = z28.object({
|
|
4443
|
+
first_name: z28.string().max(50).optional(),
|
|
4444
|
+
last_name: z28.string().max(50).optional(),
|
|
4445
|
+
company: z28.string().max(100).optional(),
|
|
4446
|
+
phone: z28.string().max(20).optional(),
|
|
4447
|
+
position: z28.string().max(100).optional(),
|
|
4448
|
+
language: z28.string().max(10).optional(),
|
|
4449
|
+
timezone: z28.string().max(64).optional()
|
|
4450
|
+
});
|
|
4451
|
+
|
|
4452
|
+
// src/_api/generated/_cfg_accounts/schemas/TokenRefreshRequest.ts
|
|
4453
|
+
import { z as z29 } from "zod";
|
|
4454
|
+
var TokenRefreshRequestSchema = z29.object({
|
|
4455
|
+
refresh: z29.string().min(1)
|
|
4511
4456
|
});
|
|
4512
4457
|
|
|
4513
4458
|
// src/auth/context/AccountsContext.tsx
|