@djangocfg/api 2.1.97 → 2.1.100

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 (39) hide show
  1. package/dist/auth-server.cjs +333 -313
  2. package/dist/auth-server.cjs.map +1 -1
  3. package/dist/auth-server.mjs +333 -313
  4. package/dist/auth-server.mjs.map +1 -1
  5. package/dist/auth.cjs +441 -383
  6. package/dist/auth.cjs.map +1 -1
  7. package/dist/auth.d.cts +36 -1
  8. package/dist/auth.d.ts +36 -1
  9. package/dist/auth.mjs +441 -383
  10. package/dist/auth.mjs.map +1 -1
  11. package/dist/clients.cjs +458 -383
  12. package/dist/clients.cjs.map +1 -1
  13. package/dist/clients.d.cts +55 -1
  14. package/dist/clients.d.ts +55 -1
  15. package/dist/clients.mjs +458 -383
  16. package/dist/clients.mjs.map +1 -1
  17. package/dist/hooks.cjs +184 -111
  18. package/dist/hooks.cjs.map +1 -1
  19. package/dist/hooks.d.cts +48 -1
  20. package/dist/hooks.d.ts +48 -1
  21. package/dist/hooks.mjs +184 -111
  22. package/dist/hooks.mjs.map +1 -1
  23. package/dist/index.cjs +382 -313
  24. package/dist/index.cjs.map +1 -1
  25. package/dist/index.d.cts +58 -5
  26. package/dist/index.d.ts +58 -5
  27. package/dist/index.mjs +382 -313
  28. package/dist/index.mjs.map +1 -1
  29. package/package.json +6 -6
  30. package/src/auth/hooks/index.ts +7 -0
  31. package/src/auth/hooks/useDeleteAccount.ts +90 -0
  32. package/src/generated/cfg_accounts/CLAUDE.md +4 -3
  33. package/src/generated/cfg_accounts/_utils/fetchers/accounts__user_profile.ts +58 -0
  34. package/src/generated/cfg_accounts/_utils/hooks/accounts__user_profile.ts +19 -0
  35. package/src/generated/cfg_accounts/_utils/schemas/AccountDeleteResponse.schema.ts +20 -0
  36. package/src/generated/cfg_accounts/_utils/schemas/index.ts +1 -0
  37. package/src/generated/cfg_accounts/accounts__user_profile/client.ts +14 -0
  38. package/src/generated/cfg_accounts/accounts__user_profile/models.ts +12 -0
  39. package/src/generated/cfg_accounts/schema.json +69 -0
package/dist/index.mjs CHANGED
@@ -12,6 +12,7 @@ __export(cfg_accounts_exports, {
12
12
  APIClient: () => APIClient,
13
13
  APIError: () => APIError,
14
14
  APILogger: () => APILogger,
15
+ AccountDeleteResponseSchema: () => AccountDeleteResponseSchema,
15
16
  AccountsTypes: () => models_exports4,
16
17
  AuthTypes: () => models_exports,
17
18
  CentrifugoTokenSchema: () => CentrifugoTokenSchema,
@@ -55,6 +56,7 @@ __export(cfg_accounts_exports, {
55
56
  createAccountsOtpRequestCreate: () => createAccountsOtpRequestCreate,
56
57
  createAccountsOtpVerifyCreate: () => createAccountsOtpVerifyCreate,
57
58
  createAccountsProfileAvatarCreate: () => createAccountsProfileAvatarCreate,
59
+ createAccountsProfileDeleteCreate: () => createAccountsProfileDeleteCreate,
58
60
  createAccountsTokenRefreshCreate: () => createAccountsTokenRefreshCreate,
59
61
  default: () => cfg_accounts_default,
60
62
  dispatchValidationError: () => dispatchValidationError,
@@ -184,6 +186,19 @@ var UserProfile = class {
184
186
  const response = await this.client.request("POST", "/cfg/accounts/profile/avatar/", { formData });
185
187
  return response;
186
188
  }
189
+ /**
190
+ * Delete user account
191
+ *
192
+ * Permanently delete the current user's account. This operation: -
193
+ * Deactivates the account (user cannot log in) - Anonymizes personal data
194
+ * (GDPR compliance) - Frees up the email address for re-registration -
195
+ * Preserves audit trail The account can be restored by an administrator if
196
+ * needed.
197
+ */
198
+ async accountsProfileDeleteCreate() {
199
+ const response = await this.client.request("POST", "/cfg/accounts/profile/delete/");
200
+ return response;
201
+ }
187
202
  /**
188
203
  * Partial update user profile
189
204
  *
@@ -982,6 +997,7 @@ var OTPVerifyRequestChannel = /* @__PURE__ */ ((OTPVerifyRequestChannel2) => {
982
997
  // src/generated/cfg_accounts/_utils/schemas/index.ts
983
998
  var schemas_exports = {};
984
999
  __export(schemas_exports, {
1000
+ AccountDeleteResponseSchema: () => AccountDeleteResponseSchema,
985
1001
  CentrifugoTokenSchema: () => CentrifugoTokenSchema,
986
1002
  CfgAccountsProfileAvatarCreateRequestSchema: () => CfgAccountsProfileAvatarCreateRequestSchema,
987
1003
  OAuthAuthorizeRequestRequestSchema: () => OAuthAuthorizeRequestRequestSchema,
@@ -1004,183 +1020,190 @@ __export(schemas_exports, {
1004
1020
  UserSchema: () => UserSchema
1005
1021
  });
1006
1022
 
1007
- // src/generated/cfg_accounts/_utils/schemas/CentrifugoToken.schema.ts
1023
+ // src/generated/cfg_accounts/_utils/schemas/AccountDeleteResponse.schema.ts
1008
1024
  import { z } from "zod";
1009
- var CentrifugoTokenSchema = z.object({
1010
- token: z.string(),
1011
- centrifugo_url: z.union([z.url(), z.literal("")]),
1012
- expires_at: z.iso.datetime(),
1013
- channels: z.array(z.string())
1025
+ var AccountDeleteResponseSchema = z.object({
1026
+ success: z.boolean(),
1027
+ message: z.string()
1014
1028
  });
1015
1029
 
1016
- // src/generated/cfg_accounts/_utils/schemas/CfgAccountsProfileAvatarCreateRequest.schema.ts
1030
+ // src/generated/cfg_accounts/_utils/schemas/CentrifugoToken.schema.ts
1017
1031
  import { z as z2 } from "zod";
1018
- var CfgAccountsProfileAvatarCreateRequestSchema = z2.object({
1019
- avatar: z2.union([z2.instanceof(File), z2.instanceof(Blob)])
1032
+ var CentrifugoTokenSchema = z2.object({
1033
+ token: z2.string(),
1034
+ centrifugo_url: z2.union([z2.url(), z2.literal("")]),
1035
+ expires_at: z2.iso.datetime(),
1036
+ channels: z2.array(z2.string())
1020
1037
  });
1021
1038
 
1022
- // src/generated/cfg_accounts/_utils/schemas/OAuthAuthorizeRequestRequest.schema.ts
1039
+ // src/generated/cfg_accounts/_utils/schemas/CfgAccountsProfileAvatarCreateRequest.schema.ts
1023
1040
  import { z as z3 } from "zod";
1024
- var OAuthAuthorizeRequestRequestSchema = z3.object({
1025
- redirect_uri: z3.union([z3.url(), z3.literal("")]).optional(),
1026
- source_url: z3.union([z3.url(), z3.literal("")]).optional()
1041
+ var CfgAccountsProfileAvatarCreateRequestSchema = z3.object({
1042
+ avatar: z3.union([z3.instanceof(File), z3.instanceof(Blob)])
1027
1043
  });
1028
1044
 
1029
- // src/generated/cfg_accounts/_utils/schemas/OAuthAuthorizeResponse.schema.ts
1045
+ // src/generated/cfg_accounts/_utils/schemas/OAuthAuthorizeRequestRequest.schema.ts
1030
1046
  import { z as z4 } from "zod";
1031
- var OAuthAuthorizeResponseSchema = z4.object({
1032
- authorization_url: z4.union([z4.url(), z4.literal("")]),
1033
- state: z4.string()
1047
+ var OAuthAuthorizeRequestRequestSchema = z4.object({
1048
+ redirect_uri: z4.union([z4.url(), z4.literal("")]).optional(),
1049
+ source_url: z4.union([z4.url(), z4.literal("")]).optional()
1034
1050
  });
1035
1051
 
1036
- // src/generated/cfg_accounts/_utils/schemas/OAuthCallbackRequestRequest.schema.ts
1052
+ // src/generated/cfg_accounts/_utils/schemas/OAuthAuthorizeResponse.schema.ts
1037
1053
  import { z as z5 } from "zod";
1038
- var OAuthCallbackRequestRequestSchema = z5.object({
1039
- code: z5.string().min(10).max(500),
1040
- state: z5.string().min(20).max(100),
1041
- redirect_uri: z5.union([z5.url(), z5.literal("")]).optional()
1054
+ var OAuthAuthorizeResponseSchema = z5.object({
1055
+ authorization_url: z5.union([z5.url(), z5.literal("")]),
1056
+ state: z5.string()
1042
1057
  });
1043
1058
 
1044
- // src/generated/cfg_accounts/_utils/schemas/OAuthConnection.schema.ts
1059
+ // src/generated/cfg_accounts/_utils/schemas/OAuthCallbackRequestRequest.schema.ts
1045
1060
  import { z as z6 } from "zod";
1046
- var OAuthConnectionSchema = z6.object({
1047
- id: z6.int(),
1048
- provider: z6.nativeEnum(OAuthConnectionProvider),
1049
- provider_display: z6.string(),
1050
- provider_username: z6.string(),
1051
- provider_email: z6.email(),
1052
- provider_avatar_url: z6.union([z6.url(), z6.literal("")]),
1053
- connected_at: z6.iso.datetime(),
1054
- last_login_at: z6.iso.datetime()
1061
+ var OAuthCallbackRequestRequestSchema = z6.object({
1062
+ code: z6.string().min(10).max(500),
1063
+ state: z6.string().min(20).max(100),
1064
+ redirect_uri: z6.union([z6.url(), z6.literal("")]).optional()
1055
1065
  });
1056
1066
 
1057
- // src/generated/cfg_accounts/_utils/schemas/OAuthDisconnectRequestRequest.schema.ts
1067
+ // src/generated/cfg_accounts/_utils/schemas/OAuthConnection.schema.ts
1058
1068
  import { z as z7 } from "zod";
1059
- var OAuthDisconnectRequestRequestSchema = z7.object({
1060
- provider: z7.nativeEnum(OAuthDisconnectRequestRequestProvider)
1069
+ var OAuthConnectionSchema = z7.object({
1070
+ id: z7.int(),
1071
+ provider: z7.nativeEnum(OAuthConnectionProvider),
1072
+ provider_display: z7.string(),
1073
+ provider_username: z7.string(),
1074
+ provider_email: z7.email(),
1075
+ provider_avatar_url: z7.union([z7.url(), z7.literal("")]),
1076
+ connected_at: z7.iso.datetime(),
1077
+ last_login_at: z7.iso.datetime()
1061
1078
  });
1062
1079
 
1063
- // src/generated/cfg_accounts/_utils/schemas/OAuthError.schema.ts
1080
+ // src/generated/cfg_accounts/_utils/schemas/OAuthDisconnectRequestRequest.schema.ts
1064
1081
  import { z as z8 } from "zod";
1065
- var OAuthErrorSchema = z8.object({
1066
- error: z8.string(),
1067
- error_description: z8.string().optional()
1082
+ var OAuthDisconnectRequestRequestSchema = z8.object({
1083
+ provider: z8.nativeEnum(OAuthDisconnectRequestRequestProvider)
1068
1084
  });
1069
1085
 
1070
- // src/generated/cfg_accounts/_utils/schemas/OAuthProvidersResponse.schema.ts
1086
+ // src/generated/cfg_accounts/_utils/schemas/OAuthError.schema.ts
1071
1087
  import { z as z9 } from "zod";
1072
- var OAuthProvidersResponseSchema = z9.object({
1073
- providers: z9.array(z9.record(z9.string(), z9.any()))
1088
+ var OAuthErrorSchema = z9.object({
1089
+ error: z9.string(),
1090
+ error_description: z9.string().optional()
1074
1091
  });
1075
1092
 
1076
- // src/generated/cfg_accounts/_utils/schemas/OAuthTokenResponse.schema.ts
1093
+ // src/generated/cfg_accounts/_utils/schemas/OAuthProvidersResponse.schema.ts
1077
1094
  import { z as z10 } from "zod";
1078
- var OAuthTokenResponseSchema = z10.object({
1079
- requires_2fa: z10.boolean().optional(),
1080
- 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(),
1081
- access: z10.string().nullable().optional(),
1082
- refresh: z10.string().nullable().optional(),
1083
- user: z10.record(z10.string(), z10.any()).nullable().optional(),
1084
- is_new_user: z10.boolean(),
1085
- is_new_connection: z10.boolean(),
1086
- should_prompt_2fa: z10.boolean().optional()
1095
+ var OAuthProvidersResponseSchema = z10.object({
1096
+ providers: z10.array(z10.record(z10.string(), z10.any()))
1087
1097
  });
1088
1098
 
1089
- // src/generated/cfg_accounts/_utils/schemas/OTPErrorResponse.schema.ts
1099
+ // src/generated/cfg_accounts/_utils/schemas/OAuthTokenResponse.schema.ts
1090
1100
  import { z as z11 } from "zod";
1091
- var OTPErrorResponseSchema = z11.object({
1092
- error: z11.string()
1101
+ var OAuthTokenResponseSchema = z11.object({
1102
+ requires_2fa: z11.boolean().optional(),
1103
+ session_id: z11.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(),
1104
+ access: z11.string().nullable().optional(),
1105
+ refresh: z11.string().nullable().optional(),
1106
+ user: z11.record(z11.string(), z11.any()).nullable().optional(),
1107
+ is_new_user: z11.boolean(),
1108
+ is_new_connection: z11.boolean(),
1109
+ should_prompt_2fa: z11.boolean().optional()
1093
1110
  });
1094
1111
 
1095
- // src/generated/cfg_accounts/_utils/schemas/OTPRequestRequest.schema.ts
1112
+ // src/generated/cfg_accounts/_utils/schemas/OTPErrorResponse.schema.ts
1096
1113
  import { z as z12 } from "zod";
1097
- var OTPRequestRequestSchema = z12.object({
1098
- identifier: z12.string().min(1),
1099
- channel: z12.nativeEnum(OTPRequestRequestChannel).optional(),
1100
- source_url: z12.union([z12.url(), z12.literal("")]).optional()
1114
+ var OTPErrorResponseSchema = z12.object({
1115
+ error: z12.string()
1101
1116
  });
1102
1117
 
1103
- // src/generated/cfg_accounts/_utils/schemas/OTPRequestResponse.schema.ts
1118
+ // src/generated/cfg_accounts/_utils/schemas/OTPRequestRequest.schema.ts
1104
1119
  import { z as z13 } from "zod";
1105
- var OTPRequestResponseSchema = z13.object({
1106
- message: z13.string()
1120
+ var OTPRequestRequestSchema = z13.object({
1121
+ identifier: z13.string().min(1),
1122
+ channel: z13.nativeEnum(OTPRequestRequestChannel).optional(),
1123
+ source_url: z13.union([z13.url(), z13.literal("")]).optional()
1107
1124
  });
1108
1125
 
1109
- // src/generated/cfg_accounts/_utils/schemas/OTPVerifyRequest.schema.ts
1126
+ // src/generated/cfg_accounts/_utils/schemas/OTPRequestResponse.schema.ts
1110
1127
  import { z as z14 } from "zod";
1111
- var OTPVerifyRequestSchema = z14.object({
1112
- identifier: z14.string().min(1),
1113
- otp: z14.string().min(6).max(6),
1114
- channel: z14.nativeEnum(OTPVerifyRequestChannel).optional(),
1115
- source_url: z14.union([z14.url(), z14.literal("")]).optional()
1128
+ var OTPRequestResponseSchema = z14.object({
1129
+ message: z14.string()
1130
+ });
1131
+
1132
+ // src/generated/cfg_accounts/_utils/schemas/OTPVerifyRequest.schema.ts
1133
+ import { z as z15 } from "zod";
1134
+ var OTPVerifyRequestSchema = z15.object({
1135
+ identifier: z15.string().min(1),
1136
+ otp: z15.string().min(6).max(6),
1137
+ channel: z15.nativeEnum(OTPVerifyRequestChannel).optional(),
1138
+ source_url: z15.union([z15.url(), z15.literal("")]).optional()
1116
1139
  });
1117
1140
 
1118
1141
  // src/generated/cfg_accounts/_utils/schemas/OTPVerifyResponse.schema.ts
1119
- import { z as z16 } from "zod";
1142
+ import { z as z17 } from "zod";
1120
1143
 
1121
1144
  // src/generated/cfg_accounts/_utils/schemas/User.schema.ts
1122
- import { z as z15 } from "zod";
1123
- var UserSchema = z15.object({
1124
- id: z15.int(),
1125
- email: z15.email(),
1126
- first_name: z15.string().max(50).optional(),
1127
- last_name: z15.string().max(50).optional(),
1128
- full_name: z15.string(),
1129
- initials: z15.string(),
1130
- display_username: z15.string(),
1131
- company: z15.string().max(100).optional(),
1132
- phone: z15.string().max(20).optional(),
1133
- position: z15.string().max(100).optional(),
1134
- avatar: z15.union([z15.url(), z15.literal("")]).nullable(),
1135
- is_staff: z15.boolean(),
1136
- is_superuser: z15.boolean(),
1137
- date_joined: z15.iso.datetime(),
1138
- last_login: z15.iso.datetime().nullable(),
1139
- unanswered_messages_count: z15.int(),
1145
+ import { z as z16 } from "zod";
1146
+ var UserSchema = z16.object({
1147
+ id: z16.int(),
1148
+ email: z16.email(),
1149
+ first_name: z16.string().max(50).optional(),
1150
+ last_name: z16.string().max(50).optional(),
1151
+ full_name: z16.string(),
1152
+ initials: z16.string(),
1153
+ display_username: z16.string(),
1154
+ company: z16.string().max(100).optional(),
1155
+ phone: z16.string().max(20).optional(),
1156
+ position: z16.string().max(100).optional(),
1157
+ avatar: z16.union([z16.url(), z16.literal("")]).nullable(),
1158
+ is_staff: z16.boolean(),
1159
+ is_superuser: z16.boolean(),
1160
+ date_joined: z16.iso.datetime(),
1161
+ last_login: z16.iso.datetime().nullable(),
1162
+ unanswered_messages_count: z16.int(),
1140
1163
  centrifugo: CentrifugoTokenSchema.nullable()
1141
1164
  });
1142
1165
 
1143
1166
  // src/generated/cfg_accounts/_utils/schemas/OTPVerifyResponse.schema.ts
1144
- var OTPVerifyResponseSchema = z16.object({
1145
- requires_2fa: z16.boolean().optional(),
1146
- session_id: z16.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(),
1147
- refresh: z16.string().nullable().optional(),
1148
- access: z16.string().nullable().optional(),
1167
+ var OTPVerifyResponseSchema = z17.object({
1168
+ requires_2fa: z17.boolean().optional(),
1169
+ session_id: z17.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(),
1170
+ refresh: z17.string().nullable().optional(),
1171
+ access: z17.string().nullable().optional(),
1149
1172
  user: UserSchema.nullable().optional(),
1150
- should_prompt_2fa: z16.boolean().optional()
1173
+ should_prompt_2fa: z17.boolean().optional()
1151
1174
  });
1152
1175
 
1153
1176
  // src/generated/cfg_accounts/_utils/schemas/PatchedUserProfileUpdateRequest.schema.ts
1154
- import { z as z17 } from "zod";
1155
- var PatchedUserProfileUpdateRequestSchema = z17.object({
1156
- first_name: z17.string().max(50).optional(),
1157
- last_name: z17.string().max(50).optional(),
1158
- company: z17.string().max(100).optional(),
1159
- phone: z17.string().max(20).optional(),
1160
- position: z17.string().max(100).optional()
1177
+ import { z as z18 } from "zod";
1178
+ var PatchedUserProfileUpdateRequestSchema = z18.object({
1179
+ first_name: z18.string().max(50).optional(),
1180
+ last_name: z18.string().max(50).optional(),
1181
+ company: z18.string().max(100).optional(),
1182
+ phone: z18.string().max(20).optional(),
1183
+ position: z18.string().max(100).optional()
1161
1184
  });
1162
1185
 
1163
1186
  // src/generated/cfg_accounts/_utils/schemas/TokenRefresh.schema.ts
1164
- import { z as z18 } from "zod";
1165
- var TokenRefreshSchema = z18.object({
1166
- access: z18.string(),
1167
- refresh: z18.string()
1187
+ import { z as z19 } from "zod";
1188
+ var TokenRefreshSchema = z19.object({
1189
+ access: z19.string(),
1190
+ refresh: z19.string()
1168
1191
  });
1169
1192
 
1170
1193
  // src/generated/cfg_accounts/_utils/schemas/TokenRefreshRequest.schema.ts
1171
- import { z as z19 } from "zod";
1172
- var TokenRefreshRequestSchema = z19.object({
1173
- refresh: z19.string().min(1)
1194
+ import { z as z20 } from "zod";
1195
+ var TokenRefreshRequestSchema = z20.object({
1196
+ refresh: z20.string().min(1)
1174
1197
  });
1175
1198
 
1176
1199
  // src/generated/cfg_accounts/_utils/schemas/UserProfileUpdateRequest.schema.ts
1177
- import { z as z20 } from "zod";
1178
- var UserProfileUpdateRequestSchema = z20.object({
1179
- first_name: z20.string().max(50).optional(),
1180
- last_name: z20.string().max(50).optional(),
1181
- company: z20.string().max(100).optional(),
1182
- phone: z20.string().max(20).optional(),
1183
- position: z20.string().max(100).optional()
1200
+ import { z as z21 } from "zod";
1201
+ var UserProfileUpdateRequestSchema = z21.object({
1202
+ first_name: z21.string().max(50).optional(),
1203
+ last_name: z21.string().max(50).optional(),
1204
+ company: z21.string().max(100).optional(),
1205
+ phone: z21.string().max(20).optional(),
1206
+ position: z21.string().max(100).optional()
1184
1207
  });
1185
1208
 
1186
1209
  // src/generated/cfg_accounts/validation-events.ts
@@ -1241,6 +1264,7 @@ __export(fetchers_exports, {
1241
1264
  createAccountsOtpRequestCreate: () => createAccountsOtpRequestCreate,
1242
1265
  createAccountsOtpVerifyCreate: () => createAccountsOtpVerifyCreate,
1243
1266
  createAccountsProfileAvatarCreate: () => createAccountsProfileAvatarCreate,
1267
+ createAccountsProfileDeleteCreate: () => createAccountsProfileDeleteCreate,
1244
1268
  createAccountsTokenRefreshCreate: () => createAccountsTokenRefreshCreate,
1245
1269
  getAccountsOauthConnectionsList: () => getAccountsOauthConnectionsList,
1246
1270
  getAccountsOauthProvidersRetrieve: () => getAccountsOauthProvidersRetrieve,
@@ -1681,6 +1705,49 @@ Method: POST`);
1681
1705
  }
1682
1706
  }
1683
1707
  __name(createAccountsProfileAvatarCreate, "createAccountsProfileAvatarCreate");
1708
+ async function createAccountsProfileDeleteCreate(client) {
1709
+ const api2 = client || getAPIInstance();
1710
+ const response = await api2.user_profile.accountsProfileDeleteCreate();
1711
+ try {
1712
+ return AccountDeleteResponseSchema.parse(response);
1713
+ } catch (error) {
1714
+ consola4.error("\u274C Zod Validation Failed");
1715
+ consola4.box(`createAccountsProfileDeleteCreate
1716
+ Path: /cfg/accounts/profile/delete/
1717
+ Method: POST`);
1718
+ if (error instanceof Error && "issues" in error && Array.isArray(error.issues)) {
1719
+ consola4.error("Validation Issues:");
1720
+ error.issues.forEach((issue, index) => {
1721
+ consola4.error(` ${index + 1}. ${issue.path.join(".") || "root"}`);
1722
+ consola4.error(` \u251C\u2500 Message: ${issue.message}`);
1723
+ if (issue.expected) consola4.error(` \u251C\u2500 Expected: ${issue.expected}`);
1724
+ if (issue.received) consola4.error(` \u2514\u2500 Received: ${issue.received}`);
1725
+ });
1726
+ }
1727
+ consola4.error("Response data:", response);
1728
+ if (typeof window !== "undefined" && error instanceof Error && "issues" in error) {
1729
+ try {
1730
+ const event = new CustomEvent("zod-validation-error", {
1731
+ detail: {
1732
+ operation: "createAccountsProfileDeleteCreate",
1733
+ path: "/cfg/accounts/profile/delete/",
1734
+ method: "POST",
1735
+ error,
1736
+ response,
1737
+ timestamp: /* @__PURE__ */ new Date()
1738
+ },
1739
+ bubbles: true,
1740
+ cancelable: false
1741
+ });
1742
+ window.dispatchEvent(event);
1743
+ } catch (eventError) {
1744
+ consola4.warn("Failed to dispatch validation error event:", eventError);
1745
+ }
1746
+ }
1747
+ throw error;
1748
+ }
1749
+ }
1750
+ __name(createAccountsProfileDeleteCreate, "createAccountsProfileDeleteCreate");
1684
1751
  async function partialUpdateAccountsProfilePartialUpdate(data, client) {
1685
1752
  const api2 = client || getAPIInstance();
1686
1753
  const response = await api2.user_profile.accountsProfilePartialUpdate(data);
@@ -2817,320 +2884,320 @@ var LocalStorageAdapter2 = class {
2817
2884
  };
2818
2885
 
2819
2886
  // src/generated/cfg_centrifugo/_utils/schemas/CentrifugoChannelInfo.schema.ts
2820
- import { z as z21 } from "zod";
2821
- var CentrifugoChannelInfoSchema = z21.object({
2822
- num_clients: z21.int()
2887
+ import { z as z22 } from "zod";
2888
+ var CentrifugoChannelInfoSchema = z22.object({
2889
+ num_clients: z22.int()
2823
2890
  });
2824
2891
 
2825
2892
  // src/generated/cfg_centrifugo/_utils/schemas/CentrifugoChannelsRequestRequest.schema.ts
2826
- import { z as z22 } from "zod";
2827
- var CentrifugoChannelsRequestRequestSchema = z22.object({
2828
- pattern: z22.string().nullable().optional()
2893
+ import { z as z23 } from "zod";
2894
+ var CentrifugoChannelsRequestRequestSchema = z23.object({
2895
+ pattern: z23.string().nullable().optional()
2829
2896
  });
2830
2897
 
2831
2898
  // src/generated/cfg_centrifugo/_utils/schemas/CentrifugoChannelsResponse.schema.ts
2832
- import { z as z25 } from "zod";
2899
+ import { z as z26 } from "zod";
2833
2900
 
2834
2901
  // src/generated/cfg_centrifugo/_utils/schemas/CentrifugoChannelsResult.schema.ts
2835
- import { z as z23 } from "zod";
2836
- var CentrifugoChannelsResultSchema = z23.object({
2837
- channels: z23.record(z23.string(), CentrifugoChannelInfoSchema)
2902
+ import { z as z24 } from "zod";
2903
+ var CentrifugoChannelsResultSchema = z24.object({
2904
+ channels: z24.record(z24.string(), CentrifugoChannelInfoSchema)
2838
2905
  });
2839
2906
 
2840
2907
  // src/generated/cfg_centrifugo/_utils/schemas/CentrifugoError.schema.ts
2841
- import { z as z24 } from "zod";
2842
- var CentrifugoErrorSchema = z24.object({
2843
- code: z24.int().optional(),
2844
- message: z24.string().optional()
2908
+ import { z as z25 } from "zod";
2909
+ var CentrifugoErrorSchema = z25.object({
2910
+ code: z25.int().optional(),
2911
+ message: z25.string().optional()
2845
2912
  });
2846
2913
 
2847
2914
  // src/generated/cfg_centrifugo/_utils/schemas/CentrifugoChannelsResponse.schema.ts
2848
- var CentrifugoChannelsResponseSchema = z25.object({
2915
+ var CentrifugoChannelsResponseSchema = z26.object({
2849
2916
  error: CentrifugoErrorSchema.optional(),
2850
2917
  result: CentrifugoChannelsResultSchema.optional()
2851
2918
  });
2852
2919
 
2853
2920
  // src/generated/cfg_centrifugo/_utils/schemas/CentrifugoClientInfo.schema.ts
2854
- import { z as z26 } from "zod";
2855
- var CentrifugoClientInfoSchema = z26.object({
2856
- user: z26.string(),
2857
- client: z26.string(),
2858
- conn_info: z26.record(z26.string(), z26.any()).nullable().optional(),
2859
- chan_info: z26.record(z26.string(), z26.any()).nullable().optional()
2921
+ import { z as z27 } from "zod";
2922
+ var CentrifugoClientInfoSchema = z27.object({
2923
+ user: z27.string(),
2924
+ client: z27.string(),
2925
+ conn_info: z27.record(z27.string(), z27.any()).nullable().optional(),
2926
+ chan_info: z27.record(z27.string(), z27.any()).nullable().optional()
2860
2927
  });
2861
2928
 
2862
2929
  // src/generated/cfg_centrifugo/_utils/schemas/CentrifugoHealthCheck.schema.ts
2863
- import { z as z27 } from "zod";
2864
- var CentrifugoHealthCheckSchema = z27.object({
2865
- status: z27.string(),
2866
- wrapper_url: z27.string(),
2867
- has_api_key: z27.boolean(),
2868
- timestamp: z27.string()
2930
+ import { z as z28 } from "zod";
2931
+ var CentrifugoHealthCheckSchema = z28.object({
2932
+ status: z28.string(),
2933
+ wrapper_url: z28.string(),
2934
+ has_api_key: z28.boolean(),
2935
+ timestamp: z28.string()
2869
2936
  });
2870
2937
 
2871
2938
  // src/generated/cfg_centrifugo/_utils/schemas/CentrifugoHistoryRequestRequest.schema.ts
2872
- import { z as z29 } from "zod";
2939
+ import { z as z30 } from "zod";
2873
2940
 
2874
2941
  // src/generated/cfg_centrifugo/_utils/schemas/CentrifugoStreamPosition.schema.ts
2875
- import { z as z28 } from "zod";
2876
- var CentrifugoStreamPositionSchema = z28.object({
2877
- offset: z28.int(),
2878
- epoch: z28.string()
2942
+ import { z as z29 } from "zod";
2943
+ var CentrifugoStreamPositionSchema = z29.object({
2944
+ offset: z29.int(),
2945
+ epoch: z29.string()
2879
2946
  });
2880
2947
 
2881
2948
  // src/generated/cfg_centrifugo/_utils/schemas/CentrifugoHistoryRequestRequest.schema.ts
2882
- var CentrifugoHistoryRequestRequestSchema = z29.object({
2883
- channel: z29.string(),
2884
- limit: z29.int().nullable().optional(),
2949
+ var CentrifugoHistoryRequestRequestSchema = z30.object({
2950
+ channel: z30.string(),
2951
+ limit: z30.int().nullable().optional(),
2885
2952
  since: CentrifugoStreamPositionSchema.optional(),
2886
- reverse: z29.boolean().nullable().optional()
2953
+ reverse: z30.boolean().nullable().optional()
2887
2954
  });
2888
2955
 
2889
2956
  // src/generated/cfg_centrifugo/_utils/schemas/CentrifugoHistoryResponse.schema.ts
2890
- import { z as z32 } from "zod";
2957
+ import { z as z33 } from "zod";
2891
2958
 
2892
2959
  // src/generated/cfg_centrifugo/_utils/schemas/CentrifugoHistoryResult.schema.ts
2893
- import { z as z31 } from "zod";
2960
+ import { z as z32 } from "zod";
2894
2961
 
2895
2962
  // src/generated/cfg_centrifugo/_utils/schemas/CentrifugoPublication.schema.ts
2896
- import { z as z30 } from "zod";
2897
- var CentrifugoPublicationSchema = z30.object({
2898
- data: z30.record(z30.string(), z30.any()),
2963
+ import { z as z31 } from "zod";
2964
+ var CentrifugoPublicationSchema = z31.object({
2965
+ data: z31.record(z31.string(), z31.any()),
2899
2966
  info: CentrifugoClientInfoSchema.optional(),
2900
- offset: z30.int(),
2901
- tags: z30.record(z30.string(), z30.any()).nullable().optional()
2967
+ offset: z31.int(),
2968
+ tags: z31.record(z31.string(), z31.any()).nullable().optional()
2902
2969
  });
2903
2970
 
2904
2971
  // src/generated/cfg_centrifugo/_utils/schemas/CentrifugoHistoryResult.schema.ts
2905
- var CentrifugoHistoryResultSchema = z31.object({
2906
- publications: z31.array(CentrifugoPublicationSchema),
2907
- epoch: z31.string(),
2908
- offset: z31.int()
2972
+ var CentrifugoHistoryResultSchema = z32.object({
2973
+ publications: z32.array(CentrifugoPublicationSchema),
2974
+ epoch: z32.string(),
2975
+ offset: z32.int()
2909
2976
  });
2910
2977
 
2911
2978
  // src/generated/cfg_centrifugo/_utils/schemas/CentrifugoHistoryResponse.schema.ts
2912
- var CentrifugoHistoryResponseSchema = z32.object({
2979
+ var CentrifugoHistoryResponseSchema = z33.object({
2913
2980
  error: CentrifugoErrorSchema.optional(),
2914
2981
  result: CentrifugoHistoryResultSchema.optional()
2915
2982
  });
2916
2983
 
2917
2984
  // src/generated/cfg_centrifugo/_utils/schemas/CentrifugoInfoResponse.schema.ts
2918
- import { z as z37 } from "zod";
2985
+ import { z as z38 } from "zod";
2919
2986
 
2920
2987
  // src/generated/cfg_centrifugo/_utils/schemas/CentrifugoInfoResult.schema.ts
2921
- import { z as z36 } from "zod";
2988
+ import { z as z37 } from "zod";
2922
2989
 
2923
2990
  // src/generated/cfg_centrifugo/_utils/schemas/CentrifugoNodeInfo.schema.ts
2924
- import { z as z35 } from "zod";
2991
+ import { z as z36 } from "zod";
2925
2992
 
2926
2993
  // src/generated/cfg_centrifugo/_utils/schemas/CentrifugoMetrics.schema.ts
2927
- import { z as z33 } from "zod";
2928
- var CentrifugoMetricsSchema = z33.object({
2929
- interval: z33.number(),
2930
- items: z33.record(z33.string(), z33.number())
2994
+ import { z as z34 } from "zod";
2995
+ var CentrifugoMetricsSchema = z34.object({
2996
+ interval: z34.number(),
2997
+ items: z34.record(z34.string(), z34.number())
2931
2998
  });
2932
2999
 
2933
3000
  // src/generated/cfg_centrifugo/_utils/schemas/CentrifugoProcess.schema.ts
2934
- import { z as z34 } from "zod";
2935
- var CentrifugoProcessSchema = z34.object({
2936
- cpu: z34.number(),
2937
- rss: z34.int()
3001
+ import { z as z35 } from "zod";
3002
+ var CentrifugoProcessSchema = z35.object({
3003
+ cpu: z35.number(),
3004
+ rss: z35.int()
2938
3005
  });
2939
3006
 
2940
3007
  // src/generated/cfg_centrifugo/_utils/schemas/CentrifugoNodeInfo.schema.ts
2941
- var CentrifugoNodeInfoSchema = z35.object({
2942
- uid: z35.string(),
2943
- name: z35.string(),
2944
- version: z35.string(),
2945
- num_clients: z35.int(),
2946
- num_users: z35.int(),
2947
- num_channels: z35.int(),
2948
- uptime: z35.int(),
2949
- num_subs: z35.int(),
3008
+ var CentrifugoNodeInfoSchema = z36.object({
3009
+ uid: z36.string(),
3010
+ name: z36.string(),
3011
+ version: z36.string(),
3012
+ num_clients: z36.int(),
3013
+ num_users: z36.int(),
3014
+ num_channels: z36.int(),
3015
+ uptime: z36.int(),
3016
+ num_subs: z36.int(),
2950
3017
  metrics: CentrifugoMetricsSchema.optional(),
2951
3018
  process: CentrifugoProcessSchema.optional()
2952
3019
  });
2953
3020
 
2954
3021
  // src/generated/cfg_centrifugo/_utils/schemas/CentrifugoInfoResult.schema.ts
2955
- var CentrifugoInfoResultSchema = z36.object({
2956
- nodes: z36.array(CentrifugoNodeInfoSchema)
3022
+ var CentrifugoInfoResultSchema = z37.object({
3023
+ nodes: z37.array(CentrifugoNodeInfoSchema)
2957
3024
  });
2958
3025
 
2959
3026
  // src/generated/cfg_centrifugo/_utils/schemas/CentrifugoInfoResponse.schema.ts
2960
- var CentrifugoInfoResponseSchema = z37.object({
3027
+ var CentrifugoInfoResponseSchema = z38.object({
2961
3028
  error: CentrifugoErrorSchema.optional(),
2962
3029
  result: CentrifugoInfoResultSchema.optional()
2963
3030
  });
2964
3031
 
2965
3032
  // src/generated/cfg_centrifugo/_utils/schemas/CentrifugoOverviewStats.schema.ts
2966
- import { z as z38 } from "zod";
2967
- var CentrifugoOverviewStatsSchema = z38.object({
2968
- total: z38.int(),
2969
- successful: z38.int(),
2970
- failed: z38.int(),
2971
- timeout: z38.int(),
2972
- success_rate: z38.number(),
2973
- avg_duration_ms: z38.number(),
2974
- avg_acks_received: z38.number(),
2975
- period_hours: z38.int()
3033
+ import { z as z39 } from "zod";
3034
+ var CentrifugoOverviewStatsSchema = z39.object({
3035
+ total: z39.int(),
3036
+ successful: z39.int(),
3037
+ failed: z39.int(),
3038
+ timeout: z39.int(),
3039
+ success_rate: z39.number(),
3040
+ avg_duration_ms: z39.number(),
3041
+ avg_acks_received: z39.number(),
3042
+ period_hours: z39.int()
2976
3043
  });
2977
3044
 
2978
3045
  // src/generated/cfg_centrifugo/_utils/schemas/CentrifugoPresenceRequestRequest.schema.ts
2979
- import { z as z39 } from "zod";
2980
- var CentrifugoPresenceRequestRequestSchema = z39.object({
2981
- channel: z39.string()
3046
+ import { z as z40 } from "zod";
3047
+ var CentrifugoPresenceRequestRequestSchema = z40.object({
3048
+ channel: z40.string()
2982
3049
  });
2983
3050
 
2984
3051
  // src/generated/cfg_centrifugo/_utils/schemas/CentrifugoPresenceResponse.schema.ts
2985
- import { z as z41 } from "zod";
3052
+ import { z as z42 } from "zod";
2986
3053
 
2987
3054
  // src/generated/cfg_centrifugo/_utils/schemas/CentrifugoPresenceResult.schema.ts
2988
- import { z as z40 } from "zod";
2989
- var CentrifugoPresenceResultSchema = z40.object({
2990
- presence: z40.record(z40.string(), CentrifugoClientInfoSchema)
3055
+ import { z as z41 } from "zod";
3056
+ var CentrifugoPresenceResultSchema = z41.object({
3057
+ presence: z41.record(z41.string(), CentrifugoClientInfoSchema)
2991
3058
  });
2992
3059
 
2993
3060
  // src/generated/cfg_centrifugo/_utils/schemas/CentrifugoPresenceResponse.schema.ts
2994
- var CentrifugoPresenceResponseSchema = z41.object({
3061
+ var CentrifugoPresenceResponseSchema = z42.object({
2995
3062
  error: CentrifugoErrorSchema.optional(),
2996
3063
  result: CentrifugoPresenceResultSchema.optional()
2997
3064
  });
2998
3065
 
2999
3066
  // src/generated/cfg_centrifugo/_utils/schemas/CentrifugoPresenceStatsRequestRequest.schema.ts
3000
- import { z as z42 } from "zod";
3001
- var CentrifugoPresenceStatsRequestRequestSchema = z42.object({
3002
- channel: z42.string()
3067
+ import { z as z43 } from "zod";
3068
+ var CentrifugoPresenceStatsRequestRequestSchema = z43.object({
3069
+ channel: z43.string()
3003
3070
  });
3004
3071
 
3005
3072
  // src/generated/cfg_centrifugo/_utils/schemas/CentrifugoPresenceStatsResponse.schema.ts
3006
- import { z as z44 } from "zod";
3073
+ import { z as z45 } from "zod";
3007
3074
 
3008
3075
  // src/generated/cfg_centrifugo/_utils/schemas/CentrifugoPresenceStatsResult.schema.ts
3009
- import { z as z43 } from "zod";
3010
- var CentrifugoPresenceStatsResultSchema = z43.object({
3011
- num_clients: z43.int(),
3012
- num_users: z43.int()
3076
+ import { z as z44 } from "zod";
3077
+ var CentrifugoPresenceStatsResultSchema = z44.object({
3078
+ num_clients: z44.int(),
3079
+ num_users: z44.int()
3013
3080
  });
3014
3081
 
3015
3082
  // src/generated/cfg_centrifugo/_utils/schemas/CentrifugoPresenceStatsResponse.schema.ts
3016
- var CentrifugoPresenceStatsResponseSchema = z44.object({
3083
+ var CentrifugoPresenceStatsResponseSchema = z45.object({
3017
3084
  error: CentrifugoErrorSchema.optional(),
3018
3085
  result: CentrifugoPresenceStatsResultSchema.optional()
3019
3086
  });
3020
3087
 
3021
3088
  // src/generated/cfg_centrifugo/_utils/schemas/ChannelList.schema.ts
3022
- import { z as z46 } from "zod";
3089
+ import { z as z47 } from "zod";
3023
3090
 
3024
3091
  // src/generated/cfg_centrifugo/_utils/schemas/ChannelStats.schema.ts
3025
- import { z as z45 } from "zod";
3026
- var ChannelStatsSchema = z45.object({
3027
- channel: z45.string(),
3028
- total: z45.int(),
3029
- successful: z45.int(),
3030
- failed: z45.int(),
3031
- avg_duration_ms: z45.number(),
3032
- avg_acks: z45.number(),
3033
- last_activity_at: z45.string().nullable()
3092
+ import { z as z46 } from "zod";
3093
+ var ChannelStatsSchema = z46.object({
3094
+ channel: z46.string(),
3095
+ total: z46.int(),
3096
+ successful: z46.int(),
3097
+ failed: z46.int(),
3098
+ avg_duration_ms: z46.number(),
3099
+ avg_acks: z46.number(),
3100
+ last_activity_at: z46.string().nullable()
3034
3101
  });
3035
3102
 
3036
3103
  // src/generated/cfg_centrifugo/_utils/schemas/ChannelList.schema.ts
3037
- var ChannelListSchema = z46.object({
3038
- channels: z46.array(ChannelStatsSchema),
3039
- total_channels: z46.int()
3104
+ var ChannelListSchema = z47.object({
3105
+ channels: z47.array(ChannelStatsSchema),
3106
+ total_channels: z47.int()
3040
3107
  });
3041
3108
 
3042
3109
  // src/generated/cfg_centrifugo/_utils/schemas/ConnectionTokenResponse.schema.ts
3043
- import { z as z47 } from "zod";
3044
- var ConnectionTokenResponseSchema = z47.object({
3045
- token: z47.string(),
3046
- centrifugo_url: z47.string(),
3047
- expires_at: z47.string(),
3048
- channels: z47.array(z47.string())
3110
+ import { z as z48 } from "zod";
3111
+ var ConnectionTokenResponseSchema = z48.object({
3112
+ token: z48.string(),
3113
+ centrifugo_url: z48.string(),
3114
+ expires_at: z48.string(),
3115
+ channels: z48.array(z48.string())
3049
3116
  });
3050
3117
 
3051
3118
  // src/generated/cfg_centrifugo/_utils/schemas/ManualAckRequestRequest.schema.ts
3052
- import { z as z48 } from "zod";
3053
- var ManualAckRequestRequestSchema = z48.object({
3054
- message_id: z48.string(),
3055
- client_id: z48.string()
3119
+ import { z as z49 } from "zod";
3120
+ var ManualAckRequestRequestSchema = z49.object({
3121
+ message_id: z49.string(),
3122
+ client_id: z49.string()
3056
3123
  });
3057
3124
 
3058
3125
  // src/generated/cfg_centrifugo/_utils/schemas/ManualAckResponse.schema.ts
3059
- import { z as z49 } from "zod";
3060
- var ManualAckResponseSchema = z49.object({
3061
- success: z49.boolean(),
3062
- message_id: z49.string(),
3063
- error: z49.string().nullable().optional()
3126
+ import { z as z50 } from "zod";
3127
+ var ManualAckResponseSchema = z50.object({
3128
+ success: z50.boolean(),
3129
+ message_id: z50.string(),
3130
+ error: z50.string().nullable().optional()
3064
3131
  });
3065
3132
 
3066
3133
  // src/generated/cfg_centrifugo/_utils/schemas/PaginatedPublishList.schema.ts
3067
- import { z as z51 } from "zod";
3134
+ import { z as z52 } from "zod";
3068
3135
 
3069
3136
  // src/generated/cfg_centrifugo/_utils/schemas/Publish.schema.ts
3070
- import { z as z50 } from "zod";
3071
- var PublishSchema = z50.object({
3072
- message_id: z50.string(),
3073
- channel: z50.string(),
3074
- status: z50.string(),
3075
- wait_for_ack: z50.boolean(),
3076
- acks_received: z50.int(),
3077
- acks_expected: z50.int().nullable(),
3078
- duration_ms: z50.number().nullable(),
3079
- created_at: z50.iso.datetime(),
3080
- completed_at: z50.iso.datetime().nullable(),
3081
- error_code: z50.string().nullable(),
3082
- error_message: z50.string().nullable()
3137
+ import { z as z51 } from "zod";
3138
+ var PublishSchema = z51.object({
3139
+ message_id: z51.string(),
3140
+ channel: z51.string(),
3141
+ status: z51.string(),
3142
+ wait_for_ack: z51.boolean(),
3143
+ acks_received: z51.int(),
3144
+ acks_expected: z51.int().nullable(),
3145
+ duration_ms: z51.number().nullable(),
3146
+ created_at: z51.iso.datetime(),
3147
+ completed_at: z51.iso.datetime().nullable(),
3148
+ error_code: z51.string().nullable(),
3149
+ error_message: z51.string().nullable()
3083
3150
  });
3084
3151
 
3085
3152
  // src/generated/cfg_centrifugo/_utils/schemas/PaginatedPublishList.schema.ts
3086
- var PaginatedPublishListSchema = z51.object({
3087
- count: z51.int(),
3088
- page: z51.int(),
3089
- pages: z51.int(),
3090
- page_size: z51.int(),
3091
- has_next: z51.boolean(),
3092
- has_previous: z51.boolean(),
3093
- next_page: z51.int().nullable().optional(),
3094
- previous_page: z51.int().nullable().optional(),
3095
- results: z51.array(PublishSchema)
3153
+ var PaginatedPublishListSchema = z52.object({
3154
+ count: z52.int(),
3155
+ page: z52.int(),
3156
+ pages: z52.int(),
3157
+ page_size: z52.int(),
3158
+ has_next: z52.boolean(),
3159
+ has_previous: z52.boolean(),
3160
+ next_page: z52.int().nullable().optional(),
3161
+ previous_page: z52.int().nullable().optional(),
3162
+ results: z52.array(PublishSchema)
3096
3163
  });
3097
3164
 
3098
3165
  // src/generated/cfg_centrifugo/_utils/schemas/PublishTestRequestRequest.schema.ts
3099
- import { z as z52 } from "zod";
3100
- var PublishTestRequestRequestSchema = z52.object({
3101
- channel: z52.string(),
3102
- data: z52.record(z52.string(), z52.any()),
3103
- wait_for_ack: z52.boolean().optional(),
3104
- ack_timeout: z52.int().min(1).max(60).optional()
3166
+ import { z as z53 } from "zod";
3167
+ var PublishTestRequestRequestSchema = z53.object({
3168
+ channel: z53.string(),
3169
+ data: z53.record(z53.string(), z53.any()),
3170
+ wait_for_ack: z53.boolean().optional(),
3171
+ ack_timeout: z53.int().min(1).max(60).optional()
3105
3172
  });
3106
3173
 
3107
3174
  // src/generated/cfg_centrifugo/_utils/schemas/PublishTestResponse.schema.ts
3108
- import { z as z53 } from "zod";
3109
- var PublishTestResponseSchema = z53.object({
3110
- success: z53.boolean(),
3111
- message_id: z53.string(),
3112
- channel: z53.string(),
3113
- acks_received: z53.int().optional(),
3114
- delivered: z53.boolean().optional(),
3115
- error: z53.string().nullable().optional()
3175
+ import { z as z54 } from "zod";
3176
+ var PublishTestResponseSchema = z54.object({
3177
+ success: z54.boolean(),
3178
+ message_id: z54.string(),
3179
+ channel: z54.string(),
3180
+ acks_received: z54.int().optional(),
3181
+ delivered: z54.boolean().optional(),
3182
+ error: z54.string().nullable().optional()
3116
3183
  });
3117
3184
 
3118
3185
  // src/generated/cfg_centrifugo/_utils/schemas/TimelineItem.schema.ts
3119
- import { z as z54 } from "zod";
3120
- var TimelineItemSchema = z54.object({
3121
- timestamp: z54.string(),
3122
- count: z54.int(),
3123
- successful: z54.int(),
3124
- failed: z54.int(),
3125
- timeout: z54.int()
3186
+ import { z as z55 } from "zod";
3187
+ var TimelineItemSchema = z55.object({
3188
+ timestamp: z55.string(),
3189
+ count: z55.int(),
3190
+ successful: z55.int(),
3191
+ failed: z55.int(),
3192
+ timeout: z55.int()
3126
3193
  });
3127
3194
 
3128
3195
  // src/generated/cfg_centrifugo/_utils/schemas/TimelineResponse.schema.ts
3129
- import { z as z55 } from "zod";
3130
- var TimelineResponseSchema = z55.object({
3131
- timeline: z55.array(TimelineItemSchema),
3132
- period_hours: z55.int(),
3133
- interval: z55.string()
3196
+ import { z as z56 } from "zod";
3197
+ var TimelineResponseSchema = z56.object({
3198
+ timeline: z56.array(TimelineItemSchema),
3199
+ period_hours: z56.int(),
3200
+ interval: z56.string()
3134
3201
  });
3135
3202
 
3136
3203
  // src/generated/cfg_centrifugo/_utils/fetchers/centrifugo__centrifugo_admin_api.ts
@@ -4126,40 +4193,40 @@ __export(schemas_exports3, {
4126
4193
  });
4127
4194
 
4128
4195
  // src/generated/cfg_webpush/_utils/schemas/SendPushRequestRequest.schema.ts
4129
- import { z as z56 } from "zod";
4130
- var SendPushRequestRequestSchema = z56.object({
4131
- title: z56.string().min(1).max(255),
4132
- body: z56.string().min(1),
4133
- icon: z56.union([z56.url(), z56.literal("")]).nullable().optional(),
4134
- url: z56.union([z56.url(), z56.literal("")]).nullable().optional()
4196
+ import { z as z57 } from "zod";
4197
+ var SendPushRequestRequestSchema = z57.object({
4198
+ title: z57.string().min(1).max(255),
4199
+ body: z57.string().min(1),
4200
+ icon: z57.union([z57.url(), z57.literal("")]).nullable().optional(),
4201
+ url: z57.union([z57.url(), z57.literal("")]).nullable().optional()
4135
4202
  });
4136
4203
 
4137
4204
  // src/generated/cfg_webpush/_utils/schemas/SendPushResponse.schema.ts
4138
- import { z as z57 } from "zod";
4139
- var SendPushResponseSchema = z57.object({
4140
- success: z57.boolean(),
4141
- sent_to: z57.int()
4205
+ import { z as z58 } from "zod";
4206
+ var SendPushResponseSchema = z58.object({
4207
+ success: z58.boolean(),
4208
+ sent_to: z58.int()
4142
4209
  });
4143
4210
 
4144
4211
  // src/generated/cfg_webpush/_utils/schemas/SubscribeRequestRequest.schema.ts
4145
- import { z as z58 } from "zod";
4146
- var SubscribeRequestRequestSchema = z58.object({
4147
- endpoint: z58.union([z58.url(), z58.literal("")]),
4148
- keys: z58.record(z58.string(), z58.string().min(1))
4212
+ import { z as z59 } from "zod";
4213
+ var SubscribeRequestRequestSchema = z59.object({
4214
+ endpoint: z59.union([z59.url(), z59.literal("")]),
4215
+ keys: z59.record(z59.string(), z59.string().min(1))
4149
4216
  });
4150
4217
 
4151
4218
  // src/generated/cfg_webpush/_utils/schemas/SubscribeResponse.schema.ts
4152
- import { z as z59 } from "zod";
4153
- var SubscribeResponseSchema = z59.object({
4154
- success: z59.boolean(),
4155
- subscription_id: z59.int(),
4156
- created: z59.boolean()
4219
+ import { z as z60 } from "zod";
4220
+ var SubscribeResponseSchema = z60.object({
4221
+ success: z60.boolean(),
4222
+ subscription_id: z60.int(),
4223
+ created: z60.boolean()
4157
4224
  });
4158
4225
 
4159
4226
  // src/generated/cfg_webpush/_utils/schemas/VapidPublicKeyResponse.schema.ts
4160
- import { z as z60 } from "zod";
4161
- var VapidPublicKeyResponseSchema = z60.object({
4162
- publicKey: z60.string()
4227
+ import { z as z61 } from "zod";
4228
+ var VapidPublicKeyResponseSchema = z61.object({
4229
+ publicKey: z61.string()
4163
4230
  });
4164
4231
 
4165
4232
  // src/generated/cfg_webpush/validation-events.ts
@@ -4560,6 +4627,7 @@ export {
4560
4627
  APIClient,
4561
4628
  APIError,
4562
4629
  APILogger,
4630
+ AccountDeleteResponseSchema,
4563
4631
  models_exports4 as AccountsTypes,
4564
4632
  models_exports as AuthTypes,
4565
4633
  BaseClient,
@@ -4608,6 +4676,7 @@ export {
4608
4676
  createAccountsOtpRequestCreate,
4609
4677
  createAccountsOtpVerifyCreate,
4610
4678
  createAccountsProfileAvatarCreate,
4679
+ createAccountsProfileDeleteCreate,
4611
4680
  createAccountsTokenRefreshCreate,
4612
4681
  dispatchValidationError,
4613
4682
  formatZodError,