@djangocfg/api 2.1.440 → 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.
Files changed (41) hide show
  1. package/dist/auth-server.cjs +53 -119
  2. package/dist/auth-server.cjs.map +1 -1
  3. package/dist/auth-server.mjs +53 -119
  4. package/dist/auth-server.mjs.map +1 -1
  5. package/dist/auth.cjs +222 -277
  6. package/dist/auth.cjs.map +1 -1
  7. package/dist/auth.mjs +222 -277
  8. package/dist/auth.mjs.map +1 -1
  9. package/dist/clients.cjs +53 -119
  10. package/dist/clients.cjs.map +1 -1
  11. package/dist/clients.d.cts +50 -1
  12. package/dist/clients.d.ts +50 -1
  13. package/dist/clients.mjs +53 -119
  14. package/dist/clients.mjs.map +1 -1
  15. package/dist/hooks.cjs +102 -20
  16. package/dist/hooks.cjs.map +1 -1
  17. package/dist/hooks.d.cts +13 -0
  18. package/dist/hooks.d.ts +13 -0
  19. package/dist/hooks.mjs +102 -20
  20. package/dist/hooks.mjs.map +1 -1
  21. package/dist/index.cjs +53 -119
  22. package/dist/index.cjs.map +1 -1
  23. package/dist/index.d.cts +70 -5
  24. package/dist/index.d.ts +70 -5
  25. package/dist/index.mjs +53 -119
  26. package/dist/index.mjs.map +1 -1
  27. package/package.json +2 -2
  28. package/src/_api/generated/_cfg_accounts/hooks/index.ts +1 -0
  29. package/src/_api/generated/_cfg_accounts/hooks/useCfgAccountsApiKeyRevealCreate.ts +64 -0
  30. package/src/_api/generated/_cfg_accounts/openapi.json +92 -15
  31. package/src/_api/generated/_cfg_accounts/schemas/APIKeyReveal.ts +13 -0
  32. package/src/_api/generated/_cfg_accounts/schemas/index.ts +1 -0
  33. package/src/_api/generated/_cfg_centrifugo/openapi.json +0 -5
  34. package/src/_api/generated/_cfg_totp/openapi.json +0 -5
  35. package/src/_api/generated/client/index.ts +1 -0
  36. package/src/_api/generated/core/params.gen.ts +18 -11
  37. package/src/_api/generated/core/types.gen.ts +6 -0
  38. package/src/_api/generated/openapi.json +92 -15
  39. package/src/_api/generated/sdk.gen.ts +57 -122
  40. package/src/_api/generated/types.gen.ts +38 -0
  41. package/src/hooks/useApiKey.ts +30 -2
package/dist/auth.cjs CHANGED
@@ -1786,11 +1786,7 @@ var CfgAccountsApiKey = class {
1786
1786
  static cfgAccountsApiKeyRetrieve(options) {
1787
1787
  return (options?.client ?? client).get({
1788
1788
  security: [
1789
- {
1790
- key: "jwtAuth",
1791
- scheme: "bearer",
1792
- type: "http"
1793
- },
1789
+ { scheme: "bearer", type: "http" },
1794
1790
  {
1795
1791
  in: "cookie",
1796
1792
  name: "sessionid",
@@ -1810,11 +1806,31 @@ var CfgAccountsApiKey = class {
1810
1806
  static cfgAccountsApiKeyRegenerateCreate(options) {
1811
1807
  return (options.client ?? client).post({
1812
1808
  security: [
1809
+ { scheme: "bearer", type: "http" },
1813
1810
  {
1814
- key: "jwtAuth",
1815
- scheme: "bearer",
1816
- type: "http"
1811
+ in: "cookie",
1812
+ name: "sessionid",
1813
+ type: "apiKey"
1817
1814
  },
1815
+ { name: "X-API-Key", type: "apiKey" }
1816
+ ],
1817
+ url: "/cfg/accounts/api-key/regenerate/",
1818
+ ...options,
1819
+ headers: {
1820
+ "Content-Type": "application/json",
1821
+ ...options.headers
1822
+ }
1823
+ });
1824
+ }
1825
+ /**
1826
+ * Reveal API key
1827
+ *
1828
+ * 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.
1829
+ */
1830
+ static cfgAccountsApiKeyRevealCreate(options) {
1831
+ return (options.client ?? client).post({
1832
+ security: [
1833
+ { scheme: "bearer", type: "http" },
1818
1834
  {
1819
1835
  in: "cookie",
1820
1836
  name: "sessionid",
@@ -1822,7 +1838,7 @@ var CfgAccountsApiKey = class {
1822
1838
  },
1823
1839
  { name: "X-API-Key", type: "apiKey" }
1824
1840
  ],
1825
- url: "/cfg/accounts/api-key/regenerate/",
1841
+ url: "/cfg/accounts/api-key/reveal/",
1826
1842
  ...options,
1827
1843
  headers: {
1828
1844
  "Content-Type": "application/json",
@@ -1838,11 +1854,7 @@ var CfgAccountsApiKey = class {
1838
1854
  static cfgAccountsApiKeyTestCreate(options) {
1839
1855
  return (options.client ?? client).post({
1840
1856
  security: [
1841
- {
1842
- key: "jwtAuth",
1843
- scheme: "bearer",
1844
- type: "http"
1845
- },
1857
+ { scheme: "bearer", type: "http" },
1846
1858
  {
1847
1859
  in: "cookie",
1848
1860
  name: "sessionid",
@@ -1870,11 +1882,7 @@ var CfgAccountsOauth = class {
1870
1882
  */
1871
1883
  static cfgAccountsOauthConnectionsList(options) {
1872
1884
  return (options?.client ?? client).get({
1873
- security: [{ name: "X-API-Key", type: "apiKey" }, {
1874
- key: "jwtAuthWithLastLogin",
1875
- scheme: "bearer",
1876
- type: "http"
1877
- }],
1885
+ security: [{ name: "X-API-Key", type: "apiKey" }, { scheme: "bearer", type: "http" }],
1878
1886
  url: "/cfg/accounts/oauth/connections/",
1879
1887
  ...options
1880
1888
  });
@@ -1886,11 +1894,7 @@ var CfgAccountsOauth = class {
1886
1894
  */
1887
1895
  static cfgAccountsOauthDisconnectCreate(options) {
1888
1896
  return (options.client ?? client).post({
1889
- security: [{ name: "X-API-Key", type: "apiKey" }, {
1890
- key: "jwtAuthWithLastLogin",
1891
- scheme: "bearer",
1892
- type: "http"
1893
- }],
1897
+ security: [{ name: "X-API-Key", type: "apiKey" }, { scheme: "bearer", type: "http" }],
1894
1898
  url: "/cfg/accounts/oauth/disconnect/",
1895
1899
  ...options,
1896
1900
  headers: {
@@ -1947,11 +1951,7 @@ var CfgAccounts = class {
1947
1951
  */
1948
1952
  static cfgAccountsOtpRequestCreate(options) {
1949
1953
  return (options.client ?? client).post({
1950
- security: [{ name: "X-API-Key", type: "apiKey" }, {
1951
- key: "jwtAuthWithLastLogin",
1952
- scheme: "bearer",
1953
- type: "http"
1954
- }],
1954
+ security: [{ name: "X-API-Key", type: "apiKey" }, { scheme: "bearer", type: "http" }],
1955
1955
  url: "/cfg/accounts/otp/request/",
1956
1956
  ...options,
1957
1957
  headers: {
@@ -1972,11 +1972,7 @@ var CfgAccounts = class {
1972
1972
  */
1973
1973
  static cfgAccountsOtpVerifyCreate(options) {
1974
1974
  return (options.client ?? client).post({
1975
- security: [{ name: "X-API-Key", type: "apiKey" }, {
1976
- key: "jwtAuthWithLastLogin",
1977
- scheme: "bearer",
1978
- type: "http"
1979
- }],
1975
+ security: [{ name: "X-API-Key", type: "apiKey" }, { scheme: "bearer", type: "http" }],
1980
1976
  url: "/cfg/accounts/otp/verify/",
1981
1977
  ...options,
1982
1978
  headers: {
@@ -1997,11 +1993,7 @@ var CfgAccountsProfile = class {
1997
1993
  */
1998
1994
  static cfgAccountsProfileRetrieve(options) {
1999
1995
  return (options?.client ?? client).get({
2000
- security: [{
2001
- key: "jwtAuth",
2002
- scheme: "bearer",
2003
- type: "http"
2004
- }, {
1996
+ security: [{ scheme: "bearer", type: "http" }, {
2005
1997
  in: "cookie",
2006
1998
  name: "sessionid",
2007
1999
  type: "apiKey"
@@ -2018,11 +2010,7 @@ var CfgAccountsProfile = class {
2018
2010
  static cfgAccountsProfileAvatarCreate(options) {
2019
2011
  return (options?.client ?? client).post({
2020
2012
  ...formDataBodySerializer,
2021
- security: [{ name: "X-API-Key", type: "apiKey" }, {
2022
- key: "jwtAuthWithLastLogin",
2023
- scheme: "bearer",
2024
- type: "http"
2025
- }],
2013
+ security: [{ name: "X-API-Key", type: "apiKey" }, { scheme: "bearer", type: "http" }],
2026
2014
  url: "/cfg/accounts/profile/avatar/",
2027
2015
  ...options,
2028
2016
  headers: {
@@ -2048,11 +2036,7 @@ var CfgAccountsProfile = class {
2048
2036
  */
2049
2037
  static cfgAccountsProfileDeleteCreate(options) {
2050
2038
  return (options?.client ?? client).post({
2051
- security: [{
2052
- key: "jwtAuth",
2053
- scheme: "bearer",
2054
- type: "http"
2055
- }, {
2039
+ security: [{ scheme: "bearer", type: "http" }, {
2056
2040
  in: "cookie",
2057
2041
  name: "sessionid",
2058
2042
  type: "apiKey"
@@ -2068,11 +2052,7 @@ var CfgAccountsProfile = class {
2068
2052
  */
2069
2053
  static cfgAccountsProfilePartialPartialUpdate(options) {
2070
2054
  return (options?.client ?? client).patch({
2071
- security: [{
2072
- key: "jwtAuth",
2073
- scheme: "bearer",
2074
- type: "http"
2075
- }, {
2055
+ security: [{ scheme: "bearer", type: "http" }, {
2076
2056
  in: "cookie",
2077
2057
  name: "sessionid",
2078
2058
  type: "apiKey"
@@ -2092,11 +2072,7 @@ var CfgAccountsProfile = class {
2092
2072
  */
2093
2073
  static cfgAccountsProfilePartialUpdate(options) {
2094
2074
  return (options?.client ?? client).put({
2095
- security: [{
2096
- key: "jwtAuth",
2097
- scheme: "bearer",
2098
- type: "http"
2099
- }, {
2075
+ security: [{ scheme: "bearer", type: "http" }, {
2100
2076
  in: "cookie",
2101
2077
  name: "sessionid",
2102
2078
  type: "apiKey"
@@ -2116,11 +2092,7 @@ var CfgAccountsProfile = class {
2116
2092
  */
2117
2093
  static cfgAccountsProfileUpdatePartialUpdate(options) {
2118
2094
  return (options?.client ?? client).patch({
2119
- security: [{
2120
- key: "jwtAuth",
2121
- scheme: "bearer",
2122
- type: "http"
2123
- }, {
2095
+ security: [{ scheme: "bearer", type: "http" }, {
2124
2096
  in: "cookie",
2125
2097
  name: "sessionid",
2126
2098
  type: "apiKey"
@@ -2140,11 +2112,7 @@ var CfgAccountsProfile = class {
2140
2112
  */
2141
2113
  static cfgAccountsProfileUpdateUpdate(options) {
2142
2114
  return (options?.client ?? client).put({
2143
- security: [{
2144
- key: "jwtAuth",
2145
- scheme: "bearer",
2146
- type: "http"
2147
- }, {
2115
+ security: [{ scheme: "bearer", type: "http" }, {
2148
2116
  in: "cookie",
2149
2117
  name: "sessionid",
2150
2118
  type: "apiKey"
@@ -2164,6 +2132,12 @@ var CfgAccountsAuth = class {
2164
2132
  }
2165
2133
  /**
2166
2134
  * Refresh JWT token.
2135
+ *
2136
+ * DPoP-aware: when the incoming refresh token is key-bound (`cnf.jkt`), the
2137
+ * rotated access/refresh in the response are re-stamped with the same `cnf`
2138
+ * (stock SimpleJWT drops it from the derived access), and a matching DPoP
2139
+ * proof is required on the refresh request — so a stolen refresh token can't
2140
+ * be used to mint fresh tokens.
2167
2141
  */
2168
2142
  static cfgAccountsTokenRefreshCreate(options) {
2169
2143
  return (options.client ?? client).post({
@@ -2187,11 +2161,7 @@ var CfgCentrifugo = class {
2187
2161
  */
2188
2162
  static cfgCentrifugoAuthTokenRetrieve(options) {
2189
2163
  return (options?.client ?? client).get({
2190
- security: [{ name: "X-API-Key", type: "apiKey" }, {
2191
- key: "jwtAuthWithLastLogin",
2192
- scheme: "bearer",
2193
- type: "http"
2194
- }],
2164
+ security: [{ name: "X-API-Key", type: "apiKey" }, { scheme: "bearer", type: "http" }],
2195
2165
  url: "/cfg/centrifugo/auth/token/",
2196
2166
  ...options
2197
2167
  });
@@ -2206,11 +2176,7 @@ var CfgTotpBackupCodes = class {
2206
2176
  */
2207
2177
  static cfgTotpBackupCodesRetrieve(options) {
2208
2178
  return (options?.client ?? client).get({
2209
- security: [{ name: "X-API-Key", type: "apiKey" }, {
2210
- key: "jwtAuthWithLastLogin",
2211
- scheme: "bearer",
2212
- type: "http"
2213
- }],
2179
+ security: [{ name: "X-API-Key", type: "apiKey" }, { scheme: "bearer", type: "http" }],
2214
2180
  url: "/cfg/totp/backup-codes/",
2215
2181
  ...options
2216
2182
  });
@@ -2223,11 +2189,7 @@ var CfgTotpBackupCodes = class {
2223
2189
  */
2224
2190
  static cfgTotpBackupCodesRegenerateCreate(options) {
2225
2191
  return (options.client ?? client).post({
2226
- security: [{ name: "X-API-Key", type: "apiKey" }, {
2227
- key: "jwtAuthWithLastLogin",
2228
- scheme: "bearer",
2229
- type: "http"
2230
- }],
2192
+ security: [{ name: "X-API-Key", type: "apiKey" }, { scheme: "bearer", type: "http" }],
2231
2193
  url: "/cfg/totp/backup-codes/regenerate/",
2232
2194
  ...options,
2233
2195
  headers: {
@@ -2246,11 +2208,7 @@ var CfgTotp = class {
2246
2208
  */
2247
2209
  static cfgTotpDevicesRetrieve(options) {
2248
2210
  return (options?.client ?? client).get({
2249
- security: [{ name: "X-API-Key", type: "apiKey" }, {
2250
- key: "jwtAuthWithLastLogin",
2251
- scheme: "bearer",
2252
- type: "http"
2253
- }],
2211
+ security: [{ name: "X-API-Key", type: "apiKey" }, { scheme: "bearer", type: "http" }],
2254
2212
  url: "/cfg/totp/devices/",
2255
2213
  ...options
2256
2214
  });
@@ -2262,11 +2220,7 @@ var CfgTotp = class {
2262
2220
  */
2263
2221
  static cfgTotpDevicesDestroy(options) {
2264
2222
  return (options.client ?? client).delete({
2265
- security: [{ name: "X-API-Key", type: "apiKey" }, {
2266
- key: "jwtAuthWithLastLogin",
2267
- scheme: "bearer",
2268
- type: "http"
2269
- }],
2223
+ security: [{ name: "X-API-Key", type: "apiKey" }, { scheme: "bearer", type: "http" }],
2270
2224
  url: "/cfg/totp/devices/{id}/",
2271
2225
  ...options
2272
2226
  });
@@ -2278,11 +2232,7 @@ var CfgTotp = class {
2278
2232
  */
2279
2233
  static cfgTotpDisableCreate(options) {
2280
2234
  return (options.client ?? client).post({
2281
- security: [{ name: "X-API-Key", type: "apiKey" }, {
2282
- key: "jwtAuthWithLastLogin",
2283
- scheme: "bearer",
2284
- type: "http"
2285
- }],
2235
+ security: [{ name: "X-API-Key", type: "apiKey" }, { scheme: "bearer", type: "http" }],
2286
2236
  url: "/cfg/totp/disable/",
2287
2237
  ...options,
2288
2238
  headers: {
@@ -2303,11 +2253,7 @@ var CfgTotpSetup = class {
2303
2253
  */
2304
2254
  static cfgTotpSetupCreate(options) {
2305
2255
  return (options?.client ?? client).post({
2306
- security: [{ name: "X-API-Key", type: "apiKey" }, {
2307
- key: "jwtAuthWithLastLogin",
2308
- scheme: "bearer",
2309
- type: "http"
2310
- }],
2256
+ security: [{ name: "X-API-Key", type: "apiKey" }, { scheme: "bearer", type: "http" }],
2311
2257
  url: "/cfg/totp/setup/",
2312
2258
  ...options,
2313
2259
  headers: {
@@ -2323,11 +2269,7 @@ var CfgTotpSetup = class {
2323
2269
  */
2324
2270
  static cfgTotpSetupConfirmCreate(options) {
2325
2271
  return (options.client ?? client).post({
2326
- security: [{ name: "X-API-Key", type: "apiKey" }, {
2327
- key: "jwtAuthWithLastLogin",
2328
- scheme: "bearer",
2329
- type: "http"
2330
- }],
2272
+ security: [{ name: "X-API-Key", type: "apiKey" }, { scheme: "bearer", type: "http" }],
2331
2273
  url: "/cfg/totp/setup/confirm/",
2332
2274
  ...options,
2333
2275
  headers: {
@@ -2348,11 +2290,7 @@ var CfgTotpVerify = class {
2348
2290
  */
2349
2291
  static cfgTotpVerifyCreate(options) {
2350
2292
  return (options.client ?? client).post({
2351
- security: [{ name: "X-API-Key", type: "apiKey" }, {
2352
- key: "jwtAuthWithLastLogin",
2353
- scheme: "bearer",
2354
- type: "http"
2355
- }],
2293
+ security: [{ name: "X-API-Key", type: "apiKey" }, { scheme: "bearer", type: "http" }],
2356
2294
  url: "/cfg/totp/verify/",
2357
2295
  ...options,
2358
2296
  headers: {
@@ -2368,11 +2306,7 @@ var CfgTotpVerify = class {
2368
2306
  */
2369
2307
  static cfgTotpVerifyBackupCreate(options) {
2370
2308
  return (options.client ?? client).post({
2371
- security: [{ name: "X-API-Key", type: "apiKey" }, {
2372
- key: "jwtAuthWithLastLogin",
2373
- scheme: "bearer",
2374
- type: "http"
2375
- }],
2309
+ security: [{ name: "X-API-Key", type: "apiKey" }, { scheme: "bearer", type: "http" }],
2376
2310
  url: "/cfg/totp/verify/backup/",
2377
2311
  ...options,
2378
2312
  headers: {
@@ -4012,100 +3946,111 @@ var APIKeySchema = import_zod2.z.object({
4012
3946
  created_at: import_zod2.z.string().datetime({ offset: true })
4013
3947
  });
4014
3948
 
4015
- // src/_api/generated/_cfg_accounts/hooks/useCfgAccountsApiKeyTestCreate.ts
3949
+ // src/_api/generated/_cfg_accounts/hooks/useCfgAccountsApiKeyRevealCreate.ts
4016
3950
  var import_mutation2 = __toESM(require("swr/mutation"), 1);
4017
3951
 
4018
- // src/_api/generated/_cfg_accounts/schemas/APIKeyTestResult.ts
3952
+ // src/_api/generated/_cfg_accounts/schemas/APIKeyReveal.ts
4019
3953
  var import_zod3 = require("zod");
4020
- var APIKeyTestResultSchema = import_zod3.z.object({
4021
- valid: import_zod3.z.boolean(),
4022
- user_id: import_zod3.z.string().nullable()
3954
+ var APIKeyRevealSchema = import_zod3.z.object({
3955
+ key: import_zod3.z.string(),
3956
+ created_at: import_zod3.z.string().datetime({ offset: true }),
3957
+ reissued_at: import_zod3.z.string().datetime({ offset: true }).nullable()
3958
+ });
3959
+
3960
+ // src/_api/generated/_cfg_accounts/hooks/useCfgAccountsApiKeyTestCreate.ts
3961
+ var import_mutation3 = __toESM(require("swr/mutation"), 1);
3962
+
3963
+ // src/_api/generated/_cfg_accounts/schemas/APIKeyTestResult.ts
3964
+ var import_zod4 = require("zod");
3965
+ var APIKeyTestResultSchema = import_zod4.z.object({
3966
+ valid: import_zod4.z.boolean(),
3967
+ user_id: import_zod4.z.string().nullable()
4023
3968
  });
4024
3969
 
4025
3970
  // src/_api/generated/_cfg_accounts/hooks/useCfgAccountsOauthConnectionsList.ts
4026
3971
  var import_swr2 = __toESM(require("swr"), 1);
4027
3972
 
4028
3973
  // src/_api/generated/_cfg_accounts/schemas/cfg_accounts_oauth_connections_response_200_AutoRef.ts
4029
- var import_zod6 = require("zod");
3974
+ var import_zod7 = require("zod");
4030
3975
 
4031
3976
  // src/_api/generated/_cfg_accounts/schemas/OAuthConnection.ts
4032
- var import_zod5 = require("zod");
3977
+ var import_zod6 = require("zod");
4033
3978
 
4034
3979
  // src/_api/generated/_cfg_accounts/schemas/OAuthProviderEnum.ts
4035
- var import_zod4 = require("zod");
4036
- var OAuthProviderEnumSchema = import_zod4.z.enum(["github"]);
3980
+ var import_zod5 = require("zod");
3981
+ var OAuthProviderEnumSchema = import_zod5.z.enum(["github"]);
4037
3982
 
4038
3983
  // src/_api/generated/_cfg_accounts/schemas/OAuthConnection.ts
4039
- var OAuthConnectionSchema = import_zod5.z.object({
4040
- id: import_zod5.z.number().int(),
3984
+ var OAuthConnectionSchema = import_zod6.z.object({
3985
+ id: import_zod6.z.number().int(),
4041
3986
  provider: OAuthProviderEnumSchema,
4042
- provider_display: import_zod5.z.string(),
4043
- provider_username: import_zod5.z.string(),
4044
- provider_email: import_zod5.z.email(),
4045
- provider_avatar_url: import_zod5.z.string(),
4046
- connected_at: import_zod5.z.string().datetime({ offset: true }),
4047
- last_login_at: import_zod5.z.string().datetime({ offset: true })
3987
+ provider_display: import_zod6.z.string(),
3988
+ provider_username: import_zod6.z.string(),
3989
+ provider_email: import_zod6.z.email(),
3990
+ provider_avatar_url: import_zod6.z.string(),
3991
+ connected_at: import_zod6.z.string().datetime({ offset: true }),
3992
+ last_login_at: import_zod6.z.string().datetime({ offset: true })
4048
3993
  });
4049
3994
 
4050
3995
  // src/_api/generated/_cfg_accounts/schemas/cfg_accounts_oauth_connections_response_200_AutoRef.ts
4051
- var cfg_accounts_oauth_connections_response_200_AutoRefSchema = import_zod6.z.array(OAuthConnectionSchema);
3996
+ var cfg_accounts_oauth_connections_response_200_AutoRefSchema = import_zod7.z.array(OAuthConnectionSchema);
4052
3997
 
4053
3998
  // src/_api/generated/_cfg_accounts/hooks/useCfgAccountsOauthDisconnectCreate.ts
4054
- var import_mutation3 = __toESM(require("swr/mutation"), 1);
3999
+ var import_mutation4 = __toESM(require("swr/mutation"), 1);
4055
4000
 
4056
4001
  // src/_api/generated/_cfg_accounts/schemas/cfg_accounts_oauth_disconnect_response_200_AutoRef.ts
4057
- var import_zod7 = require("zod");
4058
- var cfg_accounts_oauth_disconnect_response_200_AutoRefSchema = import_zod7.z.object({
4059
- message: import_zod7.z.string().optional()
4002
+ var import_zod8 = require("zod");
4003
+ var cfg_accounts_oauth_disconnect_response_200_AutoRefSchema = import_zod8.z.object({
4004
+ message: import_zod8.z.string().optional()
4060
4005
  });
4061
4006
 
4062
4007
  // src/_api/generated/_cfg_accounts/hooks/useCfgAccountsOauthGithubAuthorizeCreate.ts
4063
- var import_mutation4 = __toESM(require("swr/mutation"), 1);
4008
+ var import_mutation5 = __toESM(require("swr/mutation"), 1);
4064
4009
 
4065
4010
  // src/_api/generated/_cfg_accounts/schemas/OAuthAuthorizeResponse.ts
4066
- var import_zod8 = require("zod");
4067
- var OAuthAuthorizeResponseSchema = import_zod8.z.object({
4068
- authorization_url: import_zod8.z.string(),
4069
- state: import_zod8.z.string()
4011
+ var import_zod9 = require("zod");
4012
+ var OAuthAuthorizeResponseSchema = import_zod9.z.object({
4013
+ authorization_url: import_zod9.z.string(),
4014
+ state: import_zod9.z.string()
4070
4015
  });
4071
4016
 
4072
4017
  // src/_api/generated/_cfg_accounts/hooks/useCfgAccountsOauthGithubCallbackCreate.ts
4073
- var import_mutation5 = __toESM(require("swr/mutation"), 1);
4018
+ var import_mutation6 = __toESM(require("swr/mutation"), 1);
4074
4019
 
4075
4020
  // src/_api/generated/_cfg_accounts/schemas/OAuthTokenResponse.ts
4076
- var import_zod9 = require("zod");
4077
- var OAuthTokenResponseSchema = import_zod9.z.object({
4078
- requires_2fa: import_zod9.z.boolean().default(false).optional(),
4079
- session_id: import_zod9.z.string().regex(/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i).nullable().optional(),
4080
- access: import_zod9.z.string().nullable().optional(),
4081
- refresh: import_zod9.z.string().nullable().optional(),
4082
- user: import_zod9.z.object({}).passthrough().nullable().optional(),
4083
- is_new_user: import_zod9.z.boolean(),
4084
- is_new_connection: import_zod9.z.boolean(),
4085
- should_prompt_2fa: import_zod9.z.boolean().optional()
4021
+ var import_zod10 = require("zod");
4022
+ var OAuthTokenResponseSchema = import_zod10.z.object({
4023
+ requires_2fa: import_zod10.z.boolean().default(false).optional(),
4024
+ session_id: import_zod10.z.string().regex(/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i).nullable().optional(),
4025
+ access: import_zod10.z.string().nullable().optional(),
4026
+ refresh: import_zod10.z.string().nullable().optional(),
4027
+ user: import_zod10.z.object({}).passthrough().nullable().optional(),
4028
+ is_new_user: import_zod10.z.boolean(),
4029
+ is_new_connection: import_zod10.z.boolean(),
4030
+ should_prompt_2fa: import_zod10.z.boolean().optional()
4086
4031
  });
4087
4032
 
4088
4033
  // src/_api/generated/_cfg_accounts/hooks/useCfgAccountsOauthProvidersRetrieve.ts
4089
4034
  var import_swr3 = __toESM(require("swr"), 1);
4090
4035
 
4091
4036
  // src/_api/generated/_cfg_accounts/schemas/OAuthProvidersResponse.ts
4092
- var import_zod10 = require("zod");
4093
- var OAuthProvidersResponseSchema = import_zod10.z.object({
4094
- providers: import_zod10.z.array(import_zod10.z.object({}).passthrough())
4037
+ var import_zod11 = require("zod");
4038
+ var OAuthProvidersResponseSchema = import_zod11.z.object({
4039
+ providers: import_zod11.z.array(import_zod11.z.object({}).passthrough())
4095
4040
  });
4096
4041
 
4097
4042
  // src/_api/generated/_cfg_accounts/hooks/useCfgAccountsOtpRequestCreate.ts
4098
- var import_mutation6 = __toESM(require("swr/mutation"), 1);
4043
+ var import_mutation7 = __toESM(require("swr/mutation"), 1);
4099
4044
 
4100
4045
  // src/_api/generated/_cfg_accounts/schemas/OTPRequestResponse.ts
4101
- var import_zod11 = require("zod");
4102
- var OTPRequestResponseSchema = import_zod11.z.object({
4103
- message: import_zod11.z.string()
4046
+ var import_zod12 = require("zod");
4047
+ var OTPRequestResponseSchema = import_zod12.z.object({
4048
+ message: import_zod12.z.string()
4104
4049
  });
4105
4050
 
4106
4051
  // src/_api/generated/_cfg_accounts/hooks/useCfgAccountsOtpRequestCreate.ts
4107
4052
  function useCfgAccountsOtpRequestCreate(config) {
4108
- return (0, import_mutation6.default)(
4053
+ return (0, import_mutation7.default)(
4109
4054
  ["cfg_accounts_otp_request_create"],
4110
4055
  async (_key, { arg }) => {
4111
4056
  const res = await CfgAccounts.cfgAccountsOtpRequestCreate({ ...arg, throwOnError: true });
@@ -4151,60 +4096,60 @@ function useCfgAccountsOtpRequestCreate(config) {
4151
4096
  __name(useCfgAccountsOtpRequestCreate, "useCfgAccountsOtpRequestCreate");
4152
4097
 
4153
4098
  // src/_api/generated/_cfg_accounts/hooks/useCfgAccountsOtpVerifyCreate.ts
4154
- var import_mutation7 = __toESM(require("swr/mutation"), 1);
4099
+ var import_mutation8 = __toESM(require("swr/mutation"), 1);
4155
4100
 
4156
4101
  // src/_api/generated/_cfg_accounts/schemas/OTPVerifyResponse.ts
4157
- var import_zod14 = require("zod");
4102
+ var import_zod15 = require("zod");
4158
4103
 
4159
4104
  // src/_api/generated/_cfg_accounts/schemas/User.ts
4160
- var import_zod13 = require("zod");
4105
+ var import_zod14 = require("zod");
4161
4106
 
4162
4107
  // src/_api/generated/_cfg_accounts/schemas/CentrifugoToken.ts
4163
- var import_zod12 = require("zod");
4164
- var CentrifugoTokenSchema = import_zod12.z.object({
4165
- token: import_zod12.z.string(),
4166
- centrifugo_url: import_zod12.z.string(),
4167
- expires_at: import_zod12.z.string().datetime({ offset: true }),
4168
- channels: import_zod12.z.array(import_zod12.z.string())
4108
+ var import_zod13 = require("zod");
4109
+ var CentrifugoTokenSchema = import_zod13.z.object({
4110
+ token: import_zod13.z.string(),
4111
+ centrifugo_url: import_zod13.z.string(),
4112
+ expires_at: import_zod13.z.string().datetime({ offset: true }),
4113
+ channels: import_zod13.z.array(import_zod13.z.string())
4169
4114
  });
4170
4115
 
4171
4116
  // src/_api/generated/_cfg_accounts/schemas/User.ts
4172
- var UserSchema = import_zod13.z.object({
4173
- id: import_zod13.z.number().int(),
4174
- email: import_zod13.z.email(),
4175
- first_name: import_zod13.z.string().max(50).nullable().optional(),
4176
- last_name: import_zod13.z.string().max(50).nullable().optional(),
4177
- full_name: import_zod13.z.string(),
4178
- initials: import_zod13.z.string(),
4179
- display_username: import_zod13.z.string(),
4180
- company: import_zod13.z.string().max(100).nullable().optional(),
4181
- phone: import_zod13.z.string().max(20).nullable().optional(),
4182
- position: import_zod13.z.string().max(100).nullable().optional(),
4183
- language: import_zod13.z.string().max(10).nullable().optional(),
4184
- timezone: import_zod13.z.string().max(64).nullable().optional(),
4185
- avatar: import_zod13.z.string().nullable(),
4186
- is_staff: import_zod13.z.boolean(),
4187
- is_superuser: import_zod13.z.boolean(),
4188
- date_joined: import_zod13.z.string().datetime({ offset: true }),
4189
- last_login: import_zod13.z.string().datetime({ offset: true }).nullable(),
4190
- unanswered_messages_count: import_zod13.z.number().int().default(0),
4117
+ var UserSchema = import_zod14.z.object({
4118
+ id: import_zod14.z.number().int(),
4119
+ email: import_zod14.z.email(),
4120
+ first_name: import_zod14.z.string().max(50).nullable().optional(),
4121
+ last_name: import_zod14.z.string().max(50).nullable().optional(),
4122
+ full_name: import_zod14.z.string(),
4123
+ initials: import_zod14.z.string(),
4124
+ display_username: import_zod14.z.string(),
4125
+ company: import_zod14.z.string().max(100).nullable().optional(),
4126
+ phone: import_zod14.z.string().max(20).nullable().optional(),
4127
+ position: import_zod14.z.string().max(100).nullable().optional(),
4128
+ language: import_zod14.z.string().max(10).nullable().optional(),
4129
+ timezone: import_zod14.z.string().max(64).nullable().optional(),
4130
+ avatar: import_zod14.z.string().nullable(),
4131
+ is_staff: import_zod14.z.boolean(),
4132
+ is_superuser: import_zod14.z.boolean(),
4133
+ date_joined: import_zod14.z.string().datetime({ offset: true }),
4134
+ last_login: import_zod14.z.string().datetime({ offset: true }).nullable(),
4135
+ unanswered_messages_count: import_zod14.z.number().int().default(0),
4191
4136
  centrifugo: CentrifugoTokenSchema.nullable(),
4192
- api_key: import_zod13.z.string().nullable()
4137
+ api_key: import_zod14.z.string().nullable()
4193
4138
  });
4194
4139
 
4195
4140
  // src/_api/generated/_cfg_accounts/schemas/OTPVerifyResponse.ts
4196
- var OTPVerifyResponseSchema = import_zod14.z.object({
4197
- requires_2fa: import_zod14.z.boolean().default(false).optional(),
4198
- session_id: import_zod14.z.string().regex(/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i).nullable().optional(),
4199
- refresh: import_zod14.z.string().nullable().optional(),
4200
- access: import_zod14.z.string().nullable().optional(),
4141
+ var OTPVerifyResponseSchema = import_zod15.z.object({
4142
+ requires_2fa: import_zod15.z.boolean().default(false).optional(),
4143
+ session_id: import_zod15.z.string().regex(/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i).nullable().optional(),
4144
+ refresh: import_zod15.z.string().nullable().optional(),
4145
+ access: import_zod15.z.string().nullable().optional(),
4201
4146
  user: UserSchema.nullable().optional(),
4202
- should_prompt_2fa: import_zod14.z.boolean().optional()
4147
+ should_prompt_2fa: import_zod15.z.boolean().optional()
4203
4148
  });
4204
4149
 
4205
4150
  // src/_api/generated/_cfg_accounts/hooks/useCfgAccountsOtpVerifyCreate.ts
4206
4151
  function useCfgAccountsOtpVerifyCreate(config) {
4207
- return (0, import_mutation7.default)(
4152
+ return (0, import_mutation8.default)(
4208
4153
  ["cfg_accounts_otp_verify_create"],
4209
4154
  async (_key, { arg }) => {
4210
4155
  const res = await CfgAccounts.cfgAccountsOtpVerifyCreate({ ...arg, throwOnError: true });
@@ -4250,9 +4195,9 @@ function useCfgAccountsOtpVerifyCreate(config) {
4250
4195
  __name(useCfgAccountsOtpVerifyCreate, "useCfgAccountsOtpVerifyCreate");
4251
4196
 
4252
4197
  // src/_api/generated/_cfg_accounts/hooks/useCfgAccountsProfileAvatarCreate.ts
4253
- var import_mutation8 = __toESM(require("swr/mutation"), 1);
4198
+ var import_mutation9 = __toESM(require("swr/mutation"), 1);
4254
4199
  function useCfgAccountsProfileAvatarCreate(config) {
4255
- return (0, import_mutation8.default)(
4200
+ return (0, import_mutation9.default)(
4256
4201
  ["cfg_accounts_profile_avatar_create"],
4257
4202
  async (_key, { arg }) => {
4258
4203
  const res = await CfgAccountsProfile.cfgAccountsProfileAvatarCreate({ ...arg, throwOnError: true });
@@ -4298,22 +4243,22 @@ function useCfgAccountsProfileAvatarCreate(config) {
4298
4243
  __name(useCfgAccountsProfileAvatarCreate, "useCfgAccountsProfileAvatarCreate");
4299
4244
 
4300
4245
  // src/_api/generated/_cfg_accounts/hooks/useCfgAccountsProfileDeleteCreate.ts
4301
- var import_mutation9 = __toESM(require("swr/mutation"), 1);
4246
+ var import_mutation10 = __toESM(require("swr/mutation"), 1);
4302
4247
 
4303
4248
  // src/_api/generated/_cfg_accounts/schemas/AccountDeleteResponse.ts
4304
- var import_zod15 = require("zod");
4305
- var AccountDeleteResponseSchema = import_zod15.z.object({
4306
- success: import_zod15.z.boolean(),
4307
- message: import_zod15.z.string()
4249
+ var import_zod16 = require("zod");
4250
+ var AccountDeleteResponseSchema = import_zod16.z.object({
4251
+ success: import_zod16.z.boolean(),
4252
+ message: import_zod16.z.string()
4308
4253
  });
4309
4254
 
4310
4255
  // src/_api/generated/_cfg_accounts/hooks/useCfgAccountsProfilePartialPartialUpdate.ts
4311
- var import_mutation10 = __toESM(require("swr/mutation"), 1);
4256
+ var import_mutation11 = __toESM(require("swr/mutation"), 1);
4312
4257
 
4313
4258
  // src/_api/generated/_cfg_accounts/hooks/useCfgAccountsProfilePartialUpdate.ts
4314
- var import_mutation11 = __toESM(require("swr/mutation"), 1);
4259
+ var import_mutation12 = __toESM(require("swr/mutation"), 1);
4315
4260
  function useCfgAccountsProfilePartialUpdate(config) {
4316
- return (0, import_mutation11.default)(
4261
+ return (0, import_mutation12.default)(
4317
4262
  ["cfg_accounts_profile_partial_update"],
4318
4263
  async (_key, { arg }) => {
4319
4264
  const res = await CfgAccountsProfile.cfgAccountsProfilePartialUpdate({ ...arg, throwOnError: true });
@@ -4362,12 +4307,12 @@ __name(useCfgAccountsProfilePartialUpdate, "useCfgAccountsProfilePartialUpdate")
4362
4307
  var import_swr4 = __toESM(require("swr"), 1);
4363
4308
 
4364
4309
  // src/_api/generated/_cfg_accounts/hooks/useCfgAccountsProfileUpdatePartialUpdate.ts
4365
- var import_mutation12 = __toESM(require("swr/mutation"), 1);
4310
+ var import_mutation13 = __toESM(require("swr/mutation"), 1);
4366
4311
 
4367
4312
  // src/_api/generated/_cfg_accounts/hooks/useCfgAccountsProfileUpdateUpdate.ts
4368
- var import_mutation13 = __toESM(require("swr/mutation"), 1);
4313
+ var import_mutation14 = __toESM(require("swr/mutation"), 1);
4369
4314
  function useCfgAccountsProfileUpdateUpdate(config) {
4370
- return (0, import_mutation13.default)(
4315
+ return (0, import_mutation14.default)(
4371
4316
  ["cfg_accounts_profile_update_update"],
4372
4317
  async (_key, { arg }) => {
4373
4318
  const res = await CfgAccountsProfile.cfgAccountsProfileUpdateUpdate({ ...arg, throwOnError: true });
@@ -4413,18 +4358,18 @@ function useCfgAccountsProfileUpdateUpdate(config) {
4413
4358
  __name(useCfgAccountsProfileUpdateUpdate, "useCfgAccountsProfileUpdateUpdate");
4414
4359
 
4415
4360
  // src/_api/generated/_cfg_accounts/hooks/useCfgAccountsTokenRefreshCreate.ts
4416
- var import_mutation14 = __toESM(require("swr/mutation"), 1);
4361
+ var import_mutation15 = __toESM(require("swr/mutation"), 1);
4417
4362
 
4418
4363
  // src/_api/generated/_cfg_accounts/schemas/TokenRefresh.ts
4419
- var import_zod16 = require("zod");
4420
- var TokenRefreshSchema = import_zod16.z.object({
4421
- access: import_zod16.z.string(),
4422
- refresh: import_zod16.z.string()
4364
+ var import_zod17 = require("zod");
4365
+ var TokenRefreshSchema = import_zod17.z.object({
4366
+ access: import_zod17.z.string(),
4367
+ refresh: import_zod17.z.string()
4423
4368
  });
4424
4369
 
4425
4370
  // src/_api/generated/_cfg_accounts/hooks/useCfgAccountsTokenRefreshCreate.ts
4426
4371
  function useCfgAccountsTokenRefreshCreate(config) {
4427
- return (0, import_mutation14.default)(
4372
+ return (0, import_mutation15.default)(
4428
4373
  ["cfg_accounts_token_refresh_create"],
4429
4374
  async (_key, { arg }) => {
4430
4375
  const res = await CfgAccountsAuth.cfgAccountsTokenRefreshCreate({ ...arg, throwOnError: true });
@@ -4470,98 +4415,98 @@ function useCfgAccountsTokenRefreshCreate(config) {
4470
4415
  __name(useCfgAccountsTokenRefreshCreate, "useCfgAccountsTokenRefreshCreate");
4471
4416
 
4472
4417
  // src/_api/generated/_cfg_accounts/schemas/APIKeyRequest.ts
4473
- var import_zod17 = require("zod");
4474
- var APIKeyRequestSchema = import_zod17.z.object({
4475
- key: import_zod17.z.string().min(1),
4476
- reissued_at: import_zod17.z.string().datetime({ offset: true }).nullable(),
4477
- created_at: import_zod17.z.string().datetime({ offset: true })
4418
+ var import_zod18 = require("zod");
4419
+ var APIKeyRequestSchema = import_zod18.z.object({
4420
+ key: import_zod18.z.string().min(1),
4421
+ reissued_at: import_zod18.z.string().datetime({ offset: true }).nullable(),
4422
+ created_at: import_zod18.z.string().datetime({ offset: true })
4478
4423
  });
4479
4424
 
4480
4425
  // src/_api/generated/_cfg_accounts/schemas/APIKeyTestRequest.ts
4481
- var import_zod18 = require("zod");
4482
- var APIKeyTestRequestSchema = import_zod18.z.object({
4483
- key: import_zod18.z.string().min(1)
4426
+ var import_zod19 = require("zod");
4427
+ var APIKeyTestRequestSchema = import_zod19.z.object({
4428
+ key: import_zod19.z.string().min(1)
4484
4429
  });
4485
4430
 
4486
4431
  // src/_api/generated/_cfg_accounts/schemas/CfgUserUpdateRequest.ts
4487
- var import_zod19 = require("zod");
4488
- var CfgUserUpdateRequestSchema = import_zod19.z.object({
4489
- first_name: import_zod19.z.string().max(50).optional(),
4490
- last_name: import_zod19.z.string().max(50).optional(),
4491
- company: import_zod19.z.string().max(100).optional(),
4492
- phone: import_zod19.z.string().max(20).optional(),
4493
- position: import_zod19.z.string().max(100).optional(),
4494
- language: import_zod19.z.string().max(10).optional(),
4495
- timezone: import_zod19.z.string().max(64).optional()
4432
+ var import_zod20 = require("zod");
4433
+ var CfgUserUpdateRequestSchema = import_zod20.z.object({
4434
+ first_name: import_zod20.z.string().max(50).optional(),
4435
+ last_name: import_zod20.z.string().max(50).optional(),
4436
+ company: import_zod20.z.string().max(100).optional(),
4437
+ phone: import_zod20.z.string().max(20).optional(),
4438
+ position: import_zod20.z.string().max(100).optional(),
4439
+ language: import_zod20.z.string().max(10).optional(),
4440
+ timezone: import_zod20.z.string().max(64).optional()
4496
4441
  });
4497
4442
 
4498
4443
  // src/_api/generated/_cfg_accounts/schemas/OAuthAuthorizeRequestRequest.ts
4499
- var import_zod20 = require("zod");
4500
- var OAuthAuthorizeRequestRequestSchema = import_zod20.z.object({
4501
- redirect_uri: import_zod20.z.string().optional(),
4502
- source_url: import_zod20.z.string().optional()
4444
+ var import_zod21 = require("zod");
4445
+ var OAuthAuthorizeRequestRequestSchema = import_zod21.z.object({
4446
+ redirect_uri: import_zod21.z.string().optional(),
4447
+ source_url: import_zod21.z.string().optional()
4503
4448
  });
4504
4449
 
4505
4450
  // src/_api/generated/_cfg_accounts/schemas/OAuthCallbackRequestRequest.ts
4506
- var import_zod21 = require("zod");
4507
- var OAuthCallbackRequestRequestSchema = import_zod21.z.object({
4508
- code: import_zod21.z.string().min(10).max(500),
4509
- state: import_zod21.z.string().min(20).max(100),
4510
- redirect_uri: import_zod21.z.string().optional()
4451
+ var import_zod22 = require("zod");
4452
+ var OAuthCallbackRequestRequestSchema = import_zod22.z.object({
4453
+ code: import_zod22.z.string().min(10).max(500),
4454
+ state: import_zod22.z.string().min(20).max(100),
4455
+ redirect_uri: import_zod22.z.string().optional()
4511
4456
  });
4512
4457
 
4513
4458
  // src/_api/generated/_cfg_accounts/schemas/OAuthDisconnectRequestRequest.ts
4514
- var import_zod22 = require("zod");
4515
- var OAuthDisconnectRequestRequestSchema = import_zod22.z.object({
4459
+ var import_zod23 = require("zod");
4460
+ var OAuthDisconnectRequestRequestSchema = import_zod23.z.object({
4516
4461
  provider: OAuthProviderEnumSchema
4517
4462
  });
4518
4463
 
4519
4464
  // src/_api/generated/_cfg_accounts/schemas/OAuthError.ts
4520
- var import_zod23 = require("zod");
4521
- var OAuthErrorSchema = import_zod23.z.object({
4522
- error: import_zod23.z.string(),
4523
- error_description: import_zod23.z.string().optional()
4524
- });
4525
-
4526
- // src/_api/generated/_cfg_accounts/schemas/OTPErrorResponse.ts
4527
4465
  var import_zod24 = require("zod");
4528
- var OTPErrorResponseSchema = import_zod24.z.object({
4466
+ var OAuthErrorSchema = import_zod24.z.object({
4529
4467
  error: import_zod24.z.string(),
4530
- error_code: import_zod24.z.string().nullable().optional(),
4531
- retry_after: import_zod24.z.number().int().nullable().optional()
4468
+ error_description: import_zod24.z.string().optional()
4532
4469
  });
4533
4470
 
4534
- // src/_api/generated/_cfg_accounts/schemas/OTPRequestRequest.ts
4471
+ // src/_api/generated/_cfg_accounts/schemas/OTPErrorResponse.ts
4535
4472
  var import_zod25 = require("zod");
4536
- var OTPRequestRequestSchema = import_zod25.z.object({
4537
- identifier: import_zod25.z.string().min(1),
4538
- source_url: import_zod25.z.string().optional()
4473
+ var OTPErrorResponseSchema = import_zod25.z.object({
4474
+ error: import_zod25.z.string(),
4475
+ error_code: import_zod25.z.string().nullable().optional(),
4476
+ retry_after: import_zod25.z.number().int().nullable().optional()
4539
4477
  });
4540
4478
 
4541
- // src/_api/generated/_cfg_accounts/schemas/OTPVerifyRequest.ts
4479
+ // src/_api/generated/_cfg_accounts/schemas/OTPRequestRequest.ts
4542
4480
  var import_zod26 = require("zod");
4543
- var OTPVerifyRequestSchema = import_zod26.z.object({
4481
+ var OTPRequestRequestSchema = import_zod26.z.object({
4544
4482
  identifier: import_zod26.z.string().min(1),
4545
- otp: import_zod26.z.string().min(4).max(4),
4546
4483
  source_url: import_zod26.z.string().optional()
4547
4484
  });
4548
4485
 
4549
- // src/_api/generated/_cfg_accounts/schemas/PatchedCfgUserUpdateRequest.ts
4486
+ // src/_api/generated/_cfg_accounts/schemas/OTPVerifyRequest.ts
4550
4487
  var import_zod27 = require("zod");
4551
- var PatchedCfgUserUpdateRequestSchema = import_zod27.z.object({
4552
- first_name: import_zod27.z.string().max(50).optional(),
4553
- last_name: import_zod27.z.string().max(50).optional(),
4554
- company: import_zod27.z.string().max(100).optional(),
4555
- phone: import_zod27.z.string().max(20).optional(),
4556
- position: import_zod27.z.string().max(100).optional(),
4557
- language: import_zod27.z.string().max(10).optional(),
4558
- timezone: import_zod27.z.string().max(64).optional()
4488
+ var OTPVerifyRequestSchema = import_zod27.z.object({
4489
+ identifier: import_zod27.z.string().min(1),
4490
+ otp: import_zod27.z.string().min(4).max(4),
4491
+ source_url: import_zod27.z.string().optional()
4559
4492
  });
4560
4493
 
4561
- // src/_api/generated/_cfg_accounts/schemas/TokenRefreshRequest.ts
4494
+ // src/_api/generated/_cfg_accounts/schemas/PatchedCfgUserUpdateRequest.ts
4562
4495
  var import_zod28 = require("zod");
4563
- var TokenRefreshRequestSchema = import_zod28.z.object({
4564
- refresh: import_zod28.z.string().min(1)
4496
+ var PatchedCfgUserUpdateRequestSchema = import_zod28.z.object({
4497
+ first_name: import_zod28.z.string().max(50).optional(),
4498
+ last_name: import_zod28.z.string().max(50).optional(),
4499
+ company: import_zod28.z.string().max(100).optional(),
4500
+ phone: import_zod28.z.string().max(20).optional(),
4501
+ position: import_zod28.z.string().max(100).optional(),
4502
+ language: import_zod28.z.string().max(10).optional(),
4503
+ timezone: import_zod28.z.string().max(64).optional()
4504
+ });
4505
+
4506
+ // src/_api/generated/_cfg_accounts/schemas/TokenRefreshRequest.ts
4507
+ var import_zod29 = require("zod");
4508
+ var TokenRefreshRequestSchema = import_zod29.z.object({
4509
+ refresh: import_zod29.z.string().min(1)
4565
4510
  });
4566
4511
 
4567
4512
  // src/auth/context/AccountsContext.tsx