@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/clients.mjs CHANGED
@@ -108,6 +108,19 @@ var UserProfile = class {
108
108
  const response = await this.client.request("POST", "/cfg/accounts/profile/avatar/", { formData });
109
109
  return response;
110
110
  }
111
+ /**
112
+ * Delete user account
113
+ *
114
+ * Permanently delete the current user's account. This operation: -
115
+ * Deactivates the account (user cannot log in) - Anonymizes personal data
116
+ * (GDPR compliance) - Frees up the email address for re-registration -
117
+ * Preserves audit trail The account can be restored by an administrator if
118
+ * needed.
119
+ */
120
+ async accountsProfileDeleteCreate() {
121
+ const response = await this.client.request("POST", "/cfg/accounts/profile/delete/");
122
+ return response;
123
+ }
111
124
  /**
112
125
  * Partial update user profile
113
126
  *
@@ -824,183 +837,190 @@ var OTPVerifyRequestChannel = /* @__PURE__ */ ((OTPVerifyRequestChannel2) => {
824
837
  return OTPVerifyRequestChannel2;
825
838
  })(OTPVerifyRequestChannel || {});
826
839
 
827
- // src/generated/cfg_accounts/_utils/schemas/CentrifugoToken.schema.ts
840
+ // src/generated/cfg_accounts/_utils/schemas/AccountDeleteResponse.schema.ts
828
841
  import { z } from "zod";
829
- var CentrifugoTokenSchema = z.object({
830
- token: z.string(),
831
- centrifugo_url: z.union([z.url(), z.literal("")]),
832
- expires_at: z.iso.datetime(),
833
- channels: z.array(z.string())
842
+ var AccountDeleteResponseSchema = z.object({
843
+ success: z.boolean(),
844
+ message: z.string()
834
845
  });
835
846
 
836
- // src/generated/cfg_accounts/_utils/schemas/CfgAccountsProfileAvatarCreateRequest.schema.ts
847
+ // src/generated/cfg_accounts/_utils/schemas/CentrifugoToken.schema.ts
837
848
  import { z as z2 } from "zod";
838
- var CfgAccountsProfileAvatarCreateRequestSchema = z2.object({
839
- avatar: z2.union([z2.instanceof(File), z2.instanceof(Blob)])
849
+ var CentrifugoTokenSchema = z2.object({
850
+ token: z2.string(),
851
+ centrifugo_url: z2.union([z2.url(), z2.literal("")]),
852
+ expires_at: z2.iso.datetime(),
853
+ channels: z2.array(z2.string())
840
854
  });
841
855
 
842
- // src/generated/cfg_accounts/_utils/schemas/OAuthAuthorizeRequestRequest.schema.ts
856
+ // src/generated/cfg_accounts/_utils/schemas/CfgAccountsProfileAvatarCreateRequest.schema.ts
843
857
  import { z as z3 } from "zod";
844
- var OAuthAuthorizeRequestRequestSchema = z3.object({
845
- redirect_uri: z3.union([z3.url(), z3.literal("")]).optional(),
846
- source_url: z3.union([z3.url(), z3.literal("")]).optional()
858
+ var CfgAccountsProfileAvatarCreateRequestSchema = z3.object({
859
+ avatar: z3.union([z3.instanceof(File), z3.instanceof(Blob)])
847
860
  });
848
861
 
849
- // src/generated/cfg_accounts/_utils/schemas/OAuthAuthorizeResponse.schema.ts
862
+ // src/generated/cfg_accounts/_utils/schemas/OAuthAuthorizeRequestRequest.schema.ts
850
863
  import { z as z4 } from "zod";
851
- var OAuthAuthorizeResponseSchema = z4.object({
852
- authorization_url: z4.union([z4.url(), z4.literal("")]),
853
- state: z4.string()
864
+ var OAuthAuthorizeRequestRequestSchema = z4.object({
865
+ redirect_uri: z4.union([z4.url(), z4.literal("")]).optional(),
866
+ source_url: z4.union([z4.url(), z4.literal("")]).optional()
854
867
  });
855
868
 
856
- // src/generated/cfg_accounts/_utils/schemas/OAuthCallbackRequestRequest.schema.ts
869
+ // src/generated/cfg_accounts/_utils/schemas/OAuthAuthorizeResponse.schema.ts
857
870
  import { z as z5 } from "zod";
858
- var OAuthCallbackRequestRequestSchema = z5.object({
859
- code: z5.string().min(10).max(500),
860
- state: z5.string().min(20).max(100),
861
- redirect_uri: z5.union([z5.url(), z5.literal("")]).optional()
871
+ var OAuthAuthorizeResponseSchema = z5.object({
872
+ authorization_url: z5.union([z5.url(), z5.literal("")]),
873
+ state: z5.string()
862
874
  });
863
875
 
864
- // src/generated/cfg_accounts/_utils/schemas/OAuthConnection.schema.ts
876
+ // src/generated/cfg_accounts/_utils/schemas/OAuthCallbackRequestRequest.schema.ts
865
877
  import { z as z6 } from "zod";
866
- var OAuthConnectionSchema = z6.object({
867
- id: z6.int(),
868
- provider: z6.nativeEnum(OAuthConnectionProvider),
869
- provider_display: z6.string(),
870
- provider_username: z6.string(),
871
- provider_email: z6.email(),
872
- provider_avatar_url: z6.union([z6.url(), z6.literal("")]),
873
- connected_at: z6.iso.datetime(),
874
- last_login_at: z6.iso.datetime()
878
+ var OAuthCallbackRequestRequestSchema = z6.object({
879
+ code: z6.string().min(10).max(500),
880
+ state: z6.string().min(20).max(100),
881
+ redirect_uri: z6.union([z6.url(), z6.literal("")]).optional()
875
882
  });
876
883
 
877
- // src/generated/cfg_accounts/_utils/schemas/OAuthDisconnectRequestRequest.schema.ts
884
+ // src/generated/cfg_accounts/_utils/schemas/OAuthConnection.schema.ts
878
885
  import { z as z7 } from "zod";
879
- var OAuthDisconnectRequestRequestSchema = z7.object({
880
- provider: z7.nativeEnum(OAuthDisconnectRequestRequestProvider)
886
+ var OAuthConnectionSchema = z7.object({
887
+ id: z7.int(),
888
+ provider: z7.nativeEnum(OAuthConnectionProvider),
889
+ provider_display: z7.string(),
890
+ provider_username: z7.string(),
891
+ provider_email: z7.email(),
892
+ provider_avatar_url: z7.union([z7.url(), z7.literal("")]),
893
+ connected_at: z7.iso.datetime(),
894
+ last_login_at: z7.iso.datetime()
881
895
  });
882
896
 
883
- // src/generated/cfg_accounts/_utils/schemas/OAuthError.schema.ts
897
+ // src/generated/cfg_accounts/_utils/schemas/OAuthDisconnectRequestRequest.schema.ts
884
898
  import { z as z8 } from "zod";
885
- var OAuthErrorSchema = z8.object({
886
- error: z8.string(),
887
- error_description: z8.string().optional()
899
+ var OAuthDisconnectRequestRequestSchema = z8.object({
900
+ provider: z8.nativeEnum(OAuthDisconnectRequestRequestProvider)
888
901
  });
889
902
 
890
- // src/generated/cfg_accounts/_utils/schemas/OAuthProvidersResponse.schema.ts
903
+ // src/generated/cfg_accounts/_utils/schemas/OAuthError.schema.ts
891
904
  import { z as z9 } from "zod";
892
- var OAuthProvidersResponseSchema = z9.object({
893
- providers: z9.array(z9.record(z9.string(), z9.any()))
905
+ var OAuthErrorSchema = z9.object({
906
+ error: z9.string(),
907
+ error_description: z9.string().optional()
894
908
  });
895
909
 
896
- // src/generated/cfg_accounts/_utils/schemas/OAuthTokenResponse.schema.ts
910
+ // src/generated/cfg_accounts/_utils/schemas/OAuthProvidersResponse.schema.ts
897
911
  import { z as z10 } from "zod";
898
- var OAuthTokenResponseSchema = z10.object({
899
- requires_2fa: z10.boolean().optional(),
900
- 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(),
901
- access: z10.string().nullable().optional(),
902
- refresh: z10.string().nullable().optional(),
903
- user: z10.record(z10.string(), z10.any()).nullable().optional(),
904
- is_new_user: z10.boolean(),
905
- is_new_connection: z10.boolean(),
906
- should_prompt_2fa: z10.boolean().optional()
912
+ var OAuthProvidersResponseSchema = z10.object({
913
+ providers: z10.array(z10.record(z10.string(), z10.any()))
907
914
  });
908
915
 
909
- // src/generated/cfg_accounts/_utils/schemas/OTPErrorResponse.schema.ts
916
+ // src/generated/cfg_accounts/_utils/schemas/OAuthTokenResponse.schema.ts
910
917
  import { z as z11 } from "zod";
911
- var OTPErrorResponseSchema = z11.object({
912
- error: z11.string()
918
+ var OAuthTokenResponseSchema = z11.object({
919
+ requires_2fa: z11.boolean().optional(),
920
+ 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(),
921
+ access: z11.string().nullable().optional(),
922
+ refresh: z11.string().nullable().optional(),
923
+ user: z11.record(z11.string(), z11.any()).nullable().optional(),
924
+ is_new_user: z11.boolean(),
925
+ is_new_connection: z11.boolean(),
926
+ should_prompt_2fa: z11.boolean().optional()
913
927
  });
914
928
 
915
- // src/generated/cfg_accounts/_utils/schemas/OTPRequestRequest.schema.ts
929
+ // src/generated/cfg_accounts/_utils/schemas/OTPErrorResponse.schema.ts
916
930
  import { z as z12 } from "zod";
917
- var OTPRequestRequestSchema = z12.object({
918
- identifier: z12.string().min(1),
919
- channel: z12.nativeEnum(OTPRequestRequestChannel).optional(),
920
- source_url: z12.union([z12.url(), z12.literal("")]).optional()
931
+ var OTPErrorResponseSchema = z12.object({
932
+ error: z12.string()
921
933
  });
922
934
 
923
- // src/generated/cfg_accounts/_utils/schemas/OTPRequestResponse.schema.ts
935
+ // src/generated/cfg_accounts/_utils/schemas/OTPRequestRequest.schema.ts
924
936
  import { z as z13 } from "zod";
925
- var OTPRequestResponseSchema = z13.object({
926
- message: z13.string()
937
+ var OTPRequestRequestSchema = z13.object({
938
+ identifier: z13.string().min(1),
939
+ channel: z13.nativeEnum(OTPRequestRequestChannel).optional(),
940
+ source_url: z13.union([z13.url(), z13.literal("")]).optional()
927
941
  });
928
942
 
929
- // src/generated/cfg_accounts/_utils/schemas/OTPVerifyRequest.schema.ts
943
+ // src/generated/cfg_accounts/_utils/schemas/OTPRequestResponse.schema.ts
930
944
  import { z as z14 } from "zod";
931
- var OTPVerifyRequestSchema = z14.object({
932
- identifier: z14.string().min(1),
933
- otp: z14.string().min(6).max(6),
934
- channel: z14.nativeEnum(OTPVerifyRequestChannel).optional(),
935
- source_url: z14.union([z14.url(), z14.literal("")]).optional()
945
+ var OTPRequestResponseSchema = z14.object({
946
+ message: z14.string()
947
+ });
948
+
949
+ // src/generated/cfg_accounts/_utils/schemas/OTPVerifyRequest.schema.ts
950
+ import { z as z15 } from "zod";
951
+ var OTPVerifyRequestSchema = z15.object({
952
+ identifier: z15.string().min(1),
953
+ otp: z15.string().min(6).max(6),
954
+ channel: z15.nativeEnum(OTPVerifyRequestChannel).optional(),
955
+ source_url: z15.union([z15.url(), z15.literal("")]).optional()
936
956
  });
937
957
 
938
958
  // src/generated/cfg_accounts/_utils/schemas/OTPVerifyResponse.schema.ts
939
- import { z as z16 } from "zod";
959
+ import { z as z17 } from "zod";
940
960
 
941
961
  // src/generated/cfg_accounts/_utils/schemas/User.schema.ts
942
- import { z as z15 } from "zod";
943
- var UserSchema = z15.object({
944
- id: z15.int(),
945
- email: z15.email(),
946
- first_name: z15.string().max(50).optional(),
947
- last_name: z15.string().max(50).optional(),
948
- full_name: z15.string(),
949
- initials: z15.string(),
950
- display_username: z15.string(),
951
- company: z15.string().max(100).optional(),
952
- phone: z15.string().max(20).optional(),
953
- position: z15.string().max(100).optional(),
954
- avatar: z15.union([z15.url(), z15.literal("")]).nullable(),
955
- is_staff: z15.boolean(),
956
- is_superuser: z15.boolean(),
957
- date_joined: z15.iso.datetime(),
958
- last_login: z15.iso.datetime().nullable(),
959
- unanswered_messages_count: z15.int(),
962
+ import { z as z16 } from "zod";
963
+ var UserSchema = z16.object({
964
+ id: z16.int(),
965
+ email: z16.email(),
966
+ first_name: z16.string().max(50).optional(),
967
+ last_name: z16.string().max(50).optional(),
968
+ full_name: z16.string(),
969
+ initials: z16.string(),
970
+ display_username: z16.string(),
971
+ company: z16.string().max(100).optional(),
972
+ phone: z16.string().max(20).optional(),
973
+ position: z16.string().max(100).optional(),
974
+ avatar: z16.union([z16.url(), z16.literal("")]).nullable(),
975
+ is_staff: z16.boolean(),
976
+ is_superuser: z16.boolean(),
977
+ date_joined: z16.iso.datetime(),
978
+ last_login: z16.iso.datetime().nullable(),
979
+ unanswered_messages_count: z16.int(),
960
980
  centrifugo: CentrifugoTokenSchema.nullable()
961
981
  });
962
982
 
963
983
  // src/generated/cfg_accounts/_utils/schemas/OTPVerifyResponse.schema.ts
964
- var OTPVerifyResponseSchema = z16.object({
965
- requires_2fa: z16.boolean().optional(),
966
- 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(),
967
- refresh: z16.string().nullable().optional(),
968
- access: z16.string().nullable().optional(),
984
+ var OTPVerifyResponseSchema = z17.object({
985
+ requires_2fa: z17.boolean().optional(),
986
+ 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(),
987
+ refresh: z17.string().nullable().optional(),
988
+ access: z17.string().nullable().optional(),
969
989
  user: UserSchema.nullable().optional(),
970
- should_prompt_2fa: z16.boolean().optional()
990
+ should_prompt_2fa: z17.boolean().optional()
971
991
  });
972
992
 
973
993
  // src/generated/cfg_accounts/_utils/schemas/PatchedUserProfileUpdateRequest.schema.ts
974
- import { z as z17 } from "zod";
975
- var PatchedUserProfileUpdateRequestSchema = z17.object({
976
- first_name: z17.string().max(50).optional(),
977
- last_name: z17.string().max(50).optional(),
978
- company: z17.string().max(100).optional(),
979
- phone: z17.string().max(20).optional(),
980
- position: z17.string().max(100).optional()
994
+ import { z as z18 } from "zod";
995
+ var PatchedUserProfileUpdateRequestSchema = z18.object({
996
+ first_name: z18.string().max(50).optional(),
997
+ last_name: z18.string().max(50).optional(),
998
+ company: z18.string().max(100).optional(),
999
+ phone: z18.string().max(20).optional(),
1000
+ position: z18.string().max(100).optional()
981
1001
  });
982
1002
 
983
1003
  // src/generated/cfg_accounts/_utils/schemas/TokenRefresh.schema.ts
984
- import { z as z18 } from "zod";
985
- var TokenRefreshSchema = z18.object({
986
- access: z18.string(),
987
- refresh: z18.string()
1004
+ import { z as z19 } from "zod";
1005
+ var TokenRefreshSchema = z19.object({
1006
+ access: z19.string(),
1007
+ refresh: z19.string()
988
1008
  });
989
1009
 
990
1010
  // src/generated/cfg_accounts/_utils/schemas/TokenRefreshRequest.schema.ts
991
- import { z as z19 } from "zod";
992
- var TokenRefreshRequestSchema = z19.object({
993
- refresh: z19.string().min(1)
1011
+ import { z as z20 } from "zod";
1012
+ var TokenRefreshRequestSchema = z20.object({
1013
+ refresh: z20.string().min(1)
994
1014
  });
995
1015
 
996
1016
  // src/generated/cfg_accounts/_utils/schemas/UserProfileUpdateRequest.schema.ts
997
- import { z as z20 } from "zod";
998
- var UserProfileUpdateRequestSchema = z20.object({
999
- first_name: z20.string().max(50).optional(),
1000
- last_name: z20.string().max(50).optional(),
1001
- company: z20.string().max(100).optional(),
1002
- phone: z20.string().max(20).optional(),
1003
- position: z20.string().max(100).optional()
1017
+ import { z as z21 } from "zod";
1018
+ var UserProfileUpdateRequestSchema = z21.object({
1019
+ first_name: z21.string().max(50).optional(),
1020
+ last_name: z21.string().max(50).optional(),
1021
+ company: z21.string().max(100).optional(),
1022
+ phone: z21.string().max(20).optional(),
1023
+ position: z21.string().max(100).optional()
1004
1024
  });
1005
1025
 
1006
1026
  // src/generated/cfg_accounts/_utils/fetchers/accounts.ts
@@ -1397,6 +1417,49 @@ Method: POST`);
1397
1417
  }
1398
1418
  }
1399
1419
  __name(createAccountsProfileAvatarCreate, "createAccountsProfileAvatarCreate");
1420
+ async function createAccountsProfileDeleteCreate(client) {
1421
+ const api = client || getAPIInstance();
1422
+ const response = await api.user_profile.accountsProfileDeleteCreate();
1423
+ try {
1424
+ return AccountDeleteResponseSchema.parse(response);
1425
+ } catch (error) {
1426
+ consola4.error("\u274C Zod Validation Failed");
1427
+ consola4.box(`createAccountsProfileDeleteCreate
1428
+ Path: /cfg/accounts/profile/delete/
1429
+ Method: POST`);
1430
+ if (error instanceof Error && "issues" in error && Array.isArray(error.issues)) {
1431
+ consola4.error("Validation Issues:");
1432
+ error.issues.forEach((issue, index) => {
1433
+ consola4.error(` ${index + 1}. ${issue.path.join(".") || "root"}`);
1434
+ consola4.error(` \u251C\u2500 Message: ${issue.message}`);
1435
+ if (issue.expected) consola4.error(` \u251C\u2500 Expected: ${issue.expected}`);
1436
+ if (issue.received) consola4.error(` \u2514\u2500 Received: ${issue.received}`);
1437
+ });
1438
+ }
1439
+ consola4.error("Response data:", response);
1440
+ if (typeof window !== "undefined" && error instanceof Error && "issues" in error) {
1441
+ try {
1442
+ const event = new CustomEvent("zod-validation-error", {
1443
+ detail: {
1444
+ operation: "createAccountsProfileDeleteCreate",
1445
+ path: "/cfg/accounts/profile/delete/",
1446
+ method: "POST",
1447
+ error,
1448
+ response,
1449
+ timestamp: /* @__PURE__ */ new Date()
1450
+ },
1451
+ bubbles: true,
1452
+ cancelable: false
1453
+ });
1454
+ window.dispatchEvent(event);
1455
+ } catch (eventError) {
1456
+ consola4.warn("Failed to dispatch validation error event:", eventError);
1457
+ }
1458
+ }
1459
+ throw error;
1460
+ }
1461
+ }
1462
+ __name(createAccountsProfileDeleteCreate, "createAccountsProfileDeleteCreate");
1400
1463
  async function partialUpdateAccountsProfilePartialUpdate(data, client) {
1401
1464
  const api = client || getAPIInstance();
1402
1465
  const response = await api.user_profile.accountsProfilePartialUpdate(data);
@@ -2572,320 +2635,320 @@ __export(schemas_exports2, {
2572
2635
  });
2573
2636
 
2574
2637
  // src/generated/cfg_centrifugo/_utils/schemas/CentrifugoChannelInfo.schema.ts
2575
- import { z as z21 } from "zod";
2576
- var CentrifugoChannelInfoSchema = z21.object({
2577
- num_clients: z21.int()
2638
+ import { z as z22 } from "zod";
2639
+ var CentrifugoChannelInfoSchema = z22.object({
2640
+ num_clients: z22.int()
2578
2641
  });
2579
2642
 
2580
2643
  // src/generated/cfg_centrifugo/_utils/schemas/CentrifugoChannelsRequestRequest.schema.ts
2581
- import { z as z22 } from "zod";
2582
- var CentrifugoChannelsRequestRequestSchema = z22.object({
2583
- pattern: z22.string().nullable().optional()
2644
+ import { z as z23 } from "zod";
2645
+ var CentrifugoChannelsRequestRequestSchema = z23.object({
2646
+ pattern: z23.string().nullable().optional()
2584
2647
  });
2585
2648
 
2586
2649
  // src/generated/cfg_centrifugo/_utils/schemas/CentrifugoChannelsResponse.schema.ts
2587
- import { z as z25 } from "zod";
2650
+ import { z as z26 } from "zod";
2588
2651
 
2589
2652
  // src/generated/cfg_centrifugo/_utils/schemas/CentrifugoChannelsResult.schema.ts
2590
- import { z as z23 } from "zod";
2591
- var CentrifugoChannelsResultSchema = z23.object({
2592
- channels: z23.record(z23.string(), CentrifugoChannelInfoSchema)
2653
+ import { z as z24 } from "zod";
2654
+ var CentrifugoChannelsResultSchema = z24.object({
2655
+ channels: z24.record(z24.string(), CentrifugoChannelInfoSchema)
2593
2656
  });
2594
2657
 
2595
2658
  // src/generated/cfg_centrifugo/_utils/schemas/CentrifugoError.schema.ts
2596
- import { z as z24 } from "zod";
2597
- var CentrifugoErrorSchema = z24.object({
2598
- code: z24.int().optional(),
2599
- message: z24.string().optional()
2659
+ import { z as z25 } from "zod";
2660
+ var CentrifugoErrorSchema = z25.object({
2661
+ code: z25.int().optional(),
2662
+ message: z25.string().optional()
2600
2663
  });
2601
2664
 
2602
2665
  // src/generated/cfg_centrifugo/_utils/schemas/CentrifugoChannelsResponse.schema.ts
2603
- var CentrifugoChannelsResponseSchema = z25.object({
2666
+ var CentrifugoChannelsResponseSchema = z26.object({
2604
2667
  error: CentrifugoErrorSchema.optional(),
2605
2668
  result: CentrifugoChannelsResultSchema.optional()
2606
2669
  });
2607
2670
 
2608
2671
  // src/generated/cfg_centrifugo/_utils/schemas/CentrifugoClientInfo.schema.ts
2609
- import { z as z26 } from "zod";
2610
- var CentrifugoClientInfoSchema = z26.object({
2611
- user: z26.string(),
2612
- client: z26.string(),
2613
- conn_info: z26.record(z26.string(), z26.any()).nullable().optional(),
2614
- chan_info: z26.record(z26.string(), z26.any()).nullable().optional()
2672
+ import { z as z27 } from "zod";
2673
+ var CentrifugoClientInfoSchema = z27.object({
2674
+ user: z27.string(),
2675
+ client: z27.string(),
2676
+ conn_info: z27.record(z27.string(), z27.any()).nullable().optional(),
2677
+ chan_info: z27.record(z27.string(), z27.any()).nullable().optional()
2615
2678
  });
2616
2679
 
2617
2680
  // src/generated/cfg_centrifugo/_utils/schemas/CentrifugoHealthCheck.schema.ts
2618
- import { z as z27 } from "zod";
2619
- var CentrifugoHealthCheckSchema = z27.object({
2620
- status: z27.string(),
2621
- wrapper_url: z27.string(),
2622
- has_api_key: z27.boolean(),
2623
- timestamp: z27.string()
2681
+ import { z as z28 } from "zod";
2682
+ var CentrifugoHealthCheckSchema = z28.object({
2683
+ status: z28.string(),
2684
+ wrapper_url: z28.string(),
2685
+ has_api_key: z28.boolean(),
2686
+ timestamp: z28.string()
2624
2687
  });
2625
2688
 
2626
2689
  // src/generated/cfg_centrifugo/_utils/schemas/CentrifugoHistoryRequestRequest.schema.ts
2627
- import { z as z29 } from "zod";
2690
+ import { z as z30 } from "zod";
2628
2691
 
2629
2692
  // src/generated/cfg_centrifugo/_utils/schemas/CentrifugoStreamPosition.schema.ts
2630
- import { z as z28 } from "zod";
2631
- var CentrifugoStreamPositionSchema = z28.object({
2632
- offset: z28.int(),
2633
- epoch: z28.string()
2693
+ import { z as z29 } from "zod";
2694
+ var CentrifugoStreamPositionSchema = z29.object({
2695
+ offset: z29.int(),
2696
+ epoch: z29.string()
2634
2697
  });
2635
2698
 
2636
2699
  // src/generated/cfg_centrifugo/_utils/schemas/CentrifugoHistoryRequestRequest.schema.ts
2637
- var CentrifugoHistoryRequestRequestSchema = z29.object({
2638
- channel: z29.string(),
2639
- limit: z29.int().nullable().optional(),
2700
+ var CentrifugoHistoryRequestRequestSchema = z30.object({
2701
+ channel: z30.string(),
2702
+ limit: z30.int().nullable().optional(),
2640
2703
  since: CentrifugoStreamPositionSchema.optional(),
2641
- reverse: z29.boolean().nullable().optional()
2704
+ reverse: z30.boolean().nullable().optional()
2642
2705
  });
2643
2706
 
2644
2707
  // src/generated/cfg_centrifugo/_utils/schemas/CentrifugoHistoryResponse.schema.ts
2645
- import { z as z32 } from "zod";
2708
+ import { z as z33 } from "zod";
2646
2709
 
2647
2710
  // src/generated/cfg_centrifugo/_utils/schemas/CentrifugoHistoryResult.schema.ts
2648
- import { z as z31 } from "zod";
2711
+ import { z as z32 } from "zod";
2649
2712
 
2650
2713
  // src/generated/cfg_centrifugo/_utils/schemas/CentrifugoPublication.schema.ts
2651
- import { z as z30 } from "zod";
2652
- var CentrifugoPublicationSchema = z30.object({
2653
- data: z30.record(z30.string(), z30.any()),
2714
+ import { z as z31 } from "zod";
2715
+ var CentrifugoPublicationSchema = z31.object({
2716
+ data: z31.record(z31.string(), z31.any()),
2654
2717
  info: CentrifugoClientInfoSchema.optional(),
2655
- offset: z30.int(),
2656
- tags: z30.record(z30.string(), z30.any()).nullable().optional()
2718
+ offset: z31.int(),
2719
+ tags: z31.record(z31.string(), z31.any()).nullable().optional()
2657
2720
  });
2658
2721
 
2659
2722
  // src/generated/cfg_centrifugo/_utils/schemas/CentrifugoHistoryResult.schema.ts
2660
- var CentrifugoHistoryResultSchema = z31.object({
2661
- publications: z31.array(CentrifugoPublicationSchema),
2662
- epoch: z31.string(),
2663
- offset: z31.int()
2723
+ var CentrifugoHistoryResultSchema = z32.object({
2724
+ publications: z32.array(CentrifugoPublicationSchema),
2725
+ epoch: z32.string(),
2726
+ offset: z32.int()
2664
2727
  });
2665
2728
 
2666
2729
  // src/generated/cfg_centrifugo/_utils/schemas/CentrifugoHistoryResponse.schema.ts
2667
- var CentrifugoHistoryResponseSchema = z32.object({
2730
+ var CentrifugoHistoryResponseSchema = z33.object({
2668
2731
  error: CentrifugoErrorSchema.optional(),
2669
2732
  result: CentrifugoHistoryResultSchema.optional()
2670
2733
  });
2671
2734
 
2672
2735
  // src/generated/cfg_centrifugo/_utils/schemas/CentrifugoInfoResponse.schema.ts
2673
- import { z as z37 } from "zod";
2736
+ import { z as z38 } from "zod";
2674
2737
 
2675
2738
  // src/generated/cfg_centrifugo/_utils/schemas/CentrifugoInfoResult.schema.ts
2676
- import { z as z36 } from "zod";
2739
+ import { z as z37 } from "zod";
2677
2740
 
2678
2741
  // src/generated/cfg_centrifugo/_utils/schemas/CentrifugoNodeInfo.schema.ts
2679
- import { z as z35 } from "zod";
2742
+ import { z as z36 } from "zod";
2680
2743
 
2681
2744
  // src/generated/cfg_centrifugo/_utils/schemas/CentrifugoMetrics.schema.ts
2682
- import { z as z33 } from "zod";
2683
- var CentrifugoMetricsSchema = z33.object({
2684
- interval: z33.number(),
2685
- items: z33.record(z33.string(), z33.number())
2745
+ import { z as z34 } from "zod";
2746
+ var CentrifugoMetricsSchema = z34.object({
2747
+ interval: z34.number(),
2748
+ items: z34.record(z34.string(), z34.number())
2686
2749
  });
2687
2750
 
2688
2751
  // src/generated/cfg_centrifugo/_utils/schemas/CentrifugoProcess.schema.ts
2689
- import { z as z34 } from "zod";
2690
- var CentrifugoProcessSchema = z34.object({
2691
- cpu: z34.number(),
2692
- rss: z34.int()
2752
+ import { z as z35 } from "zod";
2753
+ var CentrifugoProcessSchema = z35.object({
2754
+ cpu: z35.number(),
2755
+ rss: z35.int()
2693
2756
  });
2694
2757
 
2695
2758
  // src/generated/cfg_centrifugo/_utils/schemas/CentrifugoNodeInfo.schema.ts
2696
- var CentrifugoNodeInfoSchema = z35.object({
2697
- uid: z35.string(),
2698
- name: z35.string(),
2699
- version: z35.string(),
2700
- num_clients: z35.int(),
2701
- num_users: z35.int(),
2702
- num_channels: z35.int(),
2703
- uptime: z35.int(),
2704
- num_subs: z35.int(),
2759
+ var CentrifugoNodeInfoSchema = z36.object({
2760
+ uid: z36.string(),
2761
+ name: z36.string(),
2762
+ version: z36.string(),
2763
+ num_clients: z36.int(),
2764
+ num_users: z36.int(),
2765
+ num_channels: z36.int(),
2766
+ uptime: z36.int(),
2767
+ num_subs: z36.int(),
2705
2768
  metrics: CentrifugoMetricsSchema.optional(),
2706
2769
  process: CentrifugoProcessSchema.optional()
2707
2770
  });
2708
2771
 
2709
2772
  // src/generated/cfg_centrifugo/_utils/schemas/CentrifugoInfoResult.schema.ts
2710
- var CentrifugoInfoResultSchema = z36.object({
2711
- nodes: z36.array(CentrifugoNodeInfoSchema)
2773
+ var CentrifugoInfoResultSchema = z37.object({
2774
+ nodes: z37.array(CentrifugoNodeInfoSchema)
2712
2775
  });
2713
2776
 
2714
2777
  // src/generated/cfg_centrifugo/_utils/schemas/CentrifugoInfoResponse.schema.ts
2715
- var CentrifugoInfoResponseSchema = z37.object({
2778
+ var CentrifugoInfoResponseSchema = z38.object({
2716
2779
  error: CentrifugoErrorSchema.optional(),
2717
2780
  result: CentrifugoInfoResultSchema.optional()
2718
2781
  });
2719
2782
 
2720
2783
  // src/generated/cfg_centrifugo/_utils/schemas/CentrifugoOverviewStats.schema.ts
2721
- import { z as z38 } from "zod";
2722
- var CentrifugoOverviewStatsSchema = z38.object({
2723
- total: z38.int(),
2724
- successful: z38.int(),
2725
- failed: z38.int(),
2726
- timeout: z38.int(),
2727
- success_rate: z38.number(),
2728
- avg_duration_ms: z38.number(),
2729
- avg_acks_received: z38.number(),
2730
- period_hours: z38.int()
2784
+ import { z as z39 } from "zod";
2785
+ var CentrifugoOverviewStatsSchema = z39.object({
2786
+ total: z39.int(),
2787
+ successful: z39.int(),
2788
+ failed: z39.int(),
2789
+ timeout: z39.int(),
2790
+ success_rate: z39.number(),
2791
+ avg_duration_ms: z39.number(),
2792
+ avg_acks_received: z39.number(),
2793
+ period_hours: z39.int()
2731
2794
  });
2732
2795
 
2733
2796
  // src/generated/cfg_centrifugo/_utils/schemas/CentrifugoPresenceRequestRequest.schema.ts
2734
- import { z as z39 } from "zod";
2735
- var CentrifugoPresenceRequestRequestSchema = z39.object({
2736
- channel: z39.string()
2797
+ import { z as z40 } from "zod";
2798
+ var CentrifugoPresenceRequestRequestSchema = z40.object({
2799
+ channel: z40.string()
2737
2800
  });
2738
2801
 
2739
2802
  // src/generated/cfg_centrifugo/_utils/schemas/CentrifugoPresenceResponse.schema.ts
2740
- import { z as z41 } from "zod";
2803
+ import { z as z42 } from "zod";
2741
2804
 
2742
2805
  // src/generated/cfg_centrifugo/_utils/schemas/CentrifugoPresenceResult.schema.ts
2743
- import { z as z40 } from "zod";
2744
- var CentrifugoPresenceResultSchema = z40.object({
2745
- presence: z40.record(z40.string(), CentrifugoClientInfoSchema)
2806
+ import { z as z41 } from "zod";
2807
+ var CentrifugoPresenceResultSchema = z41.object({
2808
+ presence: z41.record(z41.string(), CentrifugoClientInfoSchema)
2746
2809
  });
2747
2810
 
2748
2811
  // src/generated/cfg_centrifugo/_utils/schemas/CentrifugoPresenceResponse.schema.ts
2749
- var CentrifugoPresenceResponseSchema = z41.object({
2812
+ var CentrifugoPresenceResponseSchema = z42.object({
2750
2813
  error: CentrifugoErrorSchema.optional(),
2751
2814
  result: CentrifugoPresenceResultSchema.optional()
2752
2815
  });
2753
2816
 
2754
2817
  // src/generated/cfg_centrifugo/_utils/schemas/CentrifugoPresenceStatsRequestRequest.schema.ts
2755
- import { z as z42 } from "zod";
2756
- var CentrifugoPresenceStatsRequestRequestSchema = z42.object({
2757
- channel: z42.string()
2818
+ import { z as z43 } from "zod";
2819
+ var CentrifugoPresenceStatsRequestRequestSchema = z43.object({
2820
+ channel: z43.string()
2758
2821
  });
2759
2822
 
2760
2823
  // src/generated/cfg_centrifugo/_utils/schemas/CentrifugoPresenceStatsResponse.schema.ts
2761
- import { z as z44 } from "zod";
2824
+ import { z as z45 } from "zod";
2762
2825
 
2763
2826
  // src/generated/cfg_centrifugo/_utils/schemas/CentrifugoPresenceStatsResult.schema.ts
2764
- import { z as z43 } from "zod";
2765
- var CentrifugoPresenceStatsResultSchema = z43.object({
2766
- num_clients: z43.int(),
2767
- num_users: z43.int()
2827
+ import { z as z44 } from "zod";
2828
+ var CentrifugoPresenceStatsResultSchema = z44.object({
2829
+ num_clients: z44.int(),
2830
+ num_users: z44.int()
2768
2831
  });
2769
2832
 
2770
2833
  // src/generated/cfg_centrifugo/_utils/schemas/CentrifugoPresenceStatsResponse.schema.ts
2771
- var CentrifugoPresenceStatsResponseSchema = z44.object({
2834
+ var CentrifugoPresenceStatsResponseSchema = z45.object({
2772
2835
  error: CentrifugoErrorSchema.optional(),
2773
2836
  result: CentrifugoPresenceStatsResultSchema.optional()
2774
2837
  });
2775
2838
 
2776
2839
  // src/generated/cfg_centrifugo/_utils/schemas/ChannelList.schema.ts
2777
- import { z as z46 } from "zod";
2840
+ import { z as z47 } from "zod";
2778
2841
 
2779
2842
  // src/generated/cfg_centrifugo/_utils/schemas/ChannelStats.schema.ts
2780
- import { z as z45 } from "zod";
2781
- var ChannelStatsSchema = z45.object({
2782
- channel: z45.string(),
2783
- total: z45.int(),
2784
- successful: z45.int(),
2785
- failed: z45.int(),
2786
- avg_duration_ms: z45.number(),
2787
- avg_acks: z45.number(),
2788
- last_activity_at: z45.string().nullable()
2843
+ import { z as z46 } from "zod";
2844
+ var ChannelStatsSchema = z46.object({
2845
+ channel: z46.string(),
2846
+ total: z46.int(),
2847
+ successful: z46.int(),
2848
+ failed: z46.int(),
2849
+ avg_duration_ms: z46.number(),
2850
+ avg_acks: z46.number(),
2851
+ last_activity_at: z46.string().nullable()
2789
2852
  });
2790
2853
 
2791
2854
  // src/generated/cfg_centrifugo/_utils/schemas/ChannelList.schema.ts
2792
- var ChannelListSchema = z46.object({
2793
- channels: z46.array(ChannelStatsSchema),
2794
- total_channels: z46.int()
2855
+ var ChannelListSchema = z47.object({
2856
+ channels: z47.array(ChannelStatsSchema),
2857
+ total_channels: z47.int()
2795
2858
  });
2796
2859
 
2797
2860
  // src/generated/cfg_centrifugo/_utils/schemas/ConnectionTokenResponse.schema.ts
2798
- import { z as z47 } from "zod";
2799
- var ConnectionTokenResponseSchema = z47.object({
2800
- token: z47.string(),
2801
- centrifugo_url: z47.string(),
2802
- expires_at: z47.string(),
2803
- channels: z47.array(z47.string())
2861
+ import { z as z48 } from "zod";
2862
+ var ConnectionTokenResponseSchema = z48.object({
2863
+ token: z48.string(),
2864
+ centrifugo_url: z48.string(),
2865
+ expires_at: z48.string(),
2866
+ channels: z48.array(z48.string())
2804
2867
  });
2805
2868
 
2806
2869
  // src/generated/cfg_centrifugo/_utils/schemas/ManualAckRequestRequest.schema.ts
2807
- import { z as z48 } from "zod";
2808
- var ManualAckRequestRequestSchema = z48.object({
2809
- message_id: z48.string(),
2810
- client_id: z48.string()
2870
+ import { z as z49 } from "zod";
2871
+ var ManualAckRequestRequestSchema = z49.object({
2872
+ message_id: z49.string(),
2873
+ client_id: z49.string()
2811
2874
  });
2812
2875
 
2813
2876
  // src/generated/cfg_centrifugo/_utils/schemas/ManualAckResponse.schema.ts
2814
- import { z as z49 } from "zod";
2815
- var ManualAckResponseSchema = z49.object({
2816
- success: z49.boolean(),
2817
- message_id: z49.string(),
2818
- error: z49.string().nullable().optional()
2877
+ import { z as z50 } from "zod";
2878
+ var ManualAckResponseSchema = z50.object({
2879
+ success: z50.boolean(),
2880
+ message_id: z50.string(),
2881
+ error: z50.string().nullable().optional()
2819
2882
  });
2820
2883
 
2821
2884
  // src/generated/cfg_centrifugo/_utils/schemas/PaginatedPublishList.schema.ts
2822
- import { z as z51 } from "zod";
2885
+ import { z as z52 } from "zod";
2823
2886
 
2824
2887
  // src/generated/cfg_centrifugo/_utils/schemas/Publish.schema.ts
2825
- import { z as z50 } from "zod";
2826
- var PublishSchema = z50.object({
2827
- message_id: z50.string(),
2828
- channel: z50.string(),
2829
- status: z50.string(),
2830
- wait_for_ack: z50.boolean(),
2831
- acks_received: z50.int(),
2832
- acks_expected: z50.int().nullable(),
2833
- duration_ms: z50.number().nullable(),
2834
- created_at: z50.iso.datetime(),
2835
- completed_at: z50.iso.datetime().nullable(),
2836
- error_code: z50.string().nullable(),
2837
- error_message: z50.string().nullable()
2888
+ import { z as z51 } from "zod";
2889
+ var PublishSchema = z51.object({
2890
+ message_id: z51.string(),
2891
+ channel: z51.string(),
2892
+ status: z51.string(),
2893
+ wait_for_ack: z51.boolean(),
2894
+ acks_received: z51.int(),
2895
+ acks_expected: z51.int().nullable(),
2896
+ duration_ms: z51.number().nullable(),
2897
+ created_at: z51.iso.datetime(),
2898
+ completed_at: z51.iso.datetime().nullable(),
2899
+ error_code: z51.string().nullable(),
2900
+ error_message: z51.string().nullable()
2838
2901
  });
2839
2902
 
2840
2903
  // src/generated/cfg_centrifugo/_utils/schemas/PaginatedPublishList.schema.ts
2841
- var PaginatedPublishListSchema = z51.object({
2842
- count: z51.int(),
2843
- page: z51.int(),
2844
- pages: z51.int(),
2845
- page_size: z51.int(),
2846
- has_next: z51.boolean(),
2847
- has_previous: z51.boolean(),
2848
- next_page: z51.int().nullable().optional(),
2849
- previous_page: z51.int().nullable().optional(),
2850
- results: z51.array(PublishSchema)
2904
+ var PaginatedPublishListSchema = z52.object({
2905
+ count: z52.int(),
2906
+ page: z52.int(),
2907
+ pages: z52.int(),
2908
+ page_size: z52.int(),
2909
+ has_next: z52.boolean(),
2910
+ has_previous: z52.boolean(),
2911
+ next_page: z52.int().nullable().optional(),
2912
+ previous_page: z52.int().nullable().optional(),
2913
+ results: z52.array(PublishSchema)
2851
2914
  });
2852
2915
 
2853
2916
  // src/generated/cfg_centrifugo/_utils/schemas/PublishTestRequestRequest.schema.ts
2854
- import { z as z52 } from "zod";
2855
- var PublishTestRequestRequestSchema = z52.object({
2856
- channel: z52.string(),
2857
- data: z52.record(z52.string(), z52.any()),
2858
- wait_for_ack: z52.boolean().optional(),
2859
- ack_timeout: z52.int().min(1).max(60).optional()
2917
+ import { z as z53 } from "zod";
2918
+ var PublishTestRequestRequestSchema = z53.object({
2919
+ channel: z53.string(),
2920
+ data: z53.record(z53.string(), z53.any()),
2921
+ wait_for_ack: z53.boolean().optional(),
2922
+ ack_timeout: z53.int().min(1).max(60).optional()
2860
2923
  });
2861
2924
 
2862
2925
  // src/generated/cfg_centrifugo/_utils/schemas/PublishTestResponse.schema.ts
2863
- import { z as z53 } from "zod";
2864
- var PublishTestResponseSchema = z53.object({
2865
- success: z53.boolean(),
2866
- message_id: z53.string(),
2867
- channel: z53.string(),
2868
- acks_received: z53.int().optional(),
2869
- delivered: z53.boolean().optional(),
2870
- error: z53.string().nullable().optional()
2926
+ import { z as z54 } from "zod";
2927
+ var PublishTestResponseSchema = z54.object({
2928
+ success: z54.boolean(),
2929
+ message_id: z54.string(),
2930
+ channel: z54.string(),
2931
+ acks_received: z54.int().optional(),
2932
+ delivered: z54.boolean().optional(),
2933
+ error: z54.string().nullable().optional()
2871
2934
  });
2872
2935
 
2873
2936
  // src/generated/cfg_centrifugo/_utils/schemas/TimelineItem.schema.ts
2874
- import { z as z54 } from "zod";
2875
- var TimelineItemSchema = z54.object({
2876
- timestamp: z54.string(),
2877
- count: z54.int(),
2878
- successful: z54.int(),
2879
- failed: z54.int(),
2880
- timeout: z54.int()
2937
+ import { z as z55 } from "zod";
2938
+ var TimelineItemSchema = z55.object({
2939
+ timestamp: z55.string(),
2940
+ count: z55.int(),
2941
+ successful: z55.int(),
2942
+ failed: z55.int(),
2943
+ timeout: z55.int()
2881
2944
  });
2882
2945
 
2883
2946
  // src/generated/cfg_centrifugo/_utils/schemas/TimelineResponse.schema.ts
2884
- import { z as z55 } from "zod";
2885
- var TimelineResponseSchema = z55.object({
2886
- timeline: z55.array(TimelineItemSchema),
2887
- period_hours: z55.int(),
2888
- interval: z55.string()
2947
+ import { z as z56 } from "zod";
2948
+ var TimelineResponseSchema = z56.object({
2949
+ timeline: z56.array(TimelineItemSchema),
2950
+ period_hours: z56.int(),
2951
+ interval: z56.string()
2889
2952
  });
2890
2953
 
2891
2954
  // src/generated/cfg_centrifugo/_utils/fetchers/index.ts
@@ -4460,112 +4523,112 @@ __export(schemas_exports3, {
4460
4523
  });
4461
4524
 
4462
4525
  // src/generated/cfg_totp/_utils/schemas/BackupCodesRegenerateRequest.schema.ts
4463
- import { z as z56 } from "zod";
4464
- var BackupCodesRegenerateRequestSchema = z56.object({
4465
- code: z56.string().min(6).max(6)
4526
+ import { z as z57 } from "zod";
4527
+ var BackupCodesRegenerateRequestSchema = z57.object({
4528
+ code: z57.string().min(6).max(6)
4466
4529
  });
4467
4530
 
4468
4531
  // src/generated/cfg_totp/_utils/schemas/BackupCodesRegenerateResponse.schema.ts
4469
- import { z as z57 } from "zod";
4470
- var BackupCodesRegenerateResponseSchema = z57.object({
4471
- backup_codes: z57.array(z57.string()),
4472
- warning: z57.string()
4532
+ import { z as z58 } from "zod";
4533
+ var BackupCodesRegenerateResponseSchema = z58.object({
4534
+ backup_codes: z58.array(z58.string()),
4535
+ warning: z58.string()
4473
4536
  });
4474
4537
 
4475
4538
  // src/generated/cfg_totp/_utils/schemas/BackupCodesStatus.schema.ts
4476
- import { z as z58 } from "zod";
4477
- var BackupCodesStatusSchema = z58.object({
4478
- remaining_count: z58.int(),
4479
- total_generated: z58.int(),
4480
- warning: z58.string().nullable().optional()
4539
+ import { z as z59 } from "zod";
4540
+ var BackupCodesStatusSchema = z59.object({
4541
+ remaining_count: z59.int(),
4542
+ total_generated: z59.int(),
4543
+ warning: z59.string().nullable().optional()
4481
4544
  });
4482
4545
 
4483
4546
  // src/generated/cfg_totp/_utils/schemas/ConfirmSetupRequest.schema.ts
4484
- import { z as z59 } from "zod";
4485
- var ConfirmSetupRequestSchema = z59.object({
4486
- device_id: z59.string().regex(/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i),
4487
- code: z59.string().min(6).max(6)
4547
+ import { z as z60 } from "zod";
4548
+ var ConfirmSetupRequestSchema = z60.object({
4549
+ device_id: z60.string().regex(/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i),
4550
+ code: z60.string().min(6).max(6)
4488
4551
  });
4489
4552
 
4490
4553
  // src/generated/cfg_totp/_utils/schemas/ConfirmSetupResponse.schema.ts
4491
- import { z as z60 } from "zod";
4492
- var ConfirmSetupResponseSchema = z60.object({
4493
- message: z60.string(),
4494
- backup_codes: z60.array(z60.string()),
4495
- backup_codes_warning: z60.string()
4554
+ import { z as z61 } from "zod";
4555
+ var ConfirmSetupResponseSchema = z61.object({
4556
+ message: z61.string(),
4557
+ backup_codes: z61.array(z61.string()),
4558
+ backup_codes_warning: z61.string()
4496
4559
  });
4497
4560
 
4498
4561
  // src/generated/cfg_totp/_utils/schemas/DeviceList.schema.ts
4499
- import { z as z61 } from "zod";
4500
- var DeviceListSchema = z61.object({
4501
- id: z61.string().regex(/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i),
4502
- name: z61.string(),
4503
- is_primary: z61.boolean(),
4504
- status: z61.nativeEnum(DeviceListStatus),
4505
- created_at: z61.iso.datetime(),
4506
- confirmed_at: z61.iso.datetime().nullable(),
4507
- last_used_at: z61.iso.datetime().nullable()
4562
+ import { z as z62 } from "zod";
4563
+ var DeviceListSchema = z62.object({
4564
+ id: z62.string().regex(/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i),
4565
+ name: z62.string(),
4566
+ is_primary: z62.boolean(),
4567
+ status: z62.nativeEnum(DeviceListStatus),
4568
+ created_at: z62.iso.datetime(),
4569
+ confirmed_at: z62.iso.datetime().nullable(),
4570
+ last_used_at: z62.iso.datetime().nullable()
4508
4571
  });
4509
4572
 
4510
4573
  // src/generated/cfg_totp/_utils/schemas/DisableRequest.schema.ts
4511
- import { z as z62 } from "zod";
4512
- var DisableRequestSchema = z62.object({
4513
- code: z62.string().min(6).max(6)
4574
+ import { z as z63 } from "zod";
4575
+ var DisableRequestSchema = z63.object({
4576
+ code: z63.string().min(6).max(6)
4514
4577
  });
4515
4578
 
4516
4579
  // src/generated/cfg_totp/_utils/schemas/PaginatedDeviceListList.schema.ts
4517
- import { z as z63 } from "zod";
4518
- var PaginatedDeviceListListSchema = z63.object({
4519
- count: z63.int(),
4520
- page: z63.int(),
4521
- pages: z63.int(),
4522
- page_size: z63.int(),
4523
- has_next: z63.boolean(),
4524
- has_previous: z63.boolean(),
4525
- next_page: z63.int().nullable().optional(),
4526
- previous_page: z63.int().nullable().optional(),
4527
- results: z63.array(DeviceListSchema)
4580
+ import { z as z64 } from "zod";
4581
+ var PaginatedDeviceListListSchema = z64.object({
4582
+ count: z64.int(),
4583
+ page: z64.int(),
4584
+ pages: z64.int(),
4585
+ page_size: z64.int(),
4586
+ has_next: z64.boolean(),
4587
+ has_previous: z64.boolean(),
4588
+ next_page: z64.int().nullable().optional(),
4589
+ previous_page: z64.int().nullable().optional(),
4590
+ results: z64.array(DeviceListSchema)
4528
4591
  });
4529
4592
 
4530
4593
  // src/generated/cfg_totp/_utils/schemas/SetupRequest.schema.ts
4531
- import { z as z64 } from "zod";
4532
- var SetupRequestSchema = z64.object({
4533
- device_name: z64.string().min(1).max(100).optional()
4594
+ import { z as z65 } from "zod";
4595
+ var SetupRequestSchema = z65.object({
4596
+ device_name: z65.string().min(1).max(100).optional()
4534
4597
  });
4535
4598
 
4536
4599
  // src/generated/cfg_totp/_utils/schemas/SetupResponse.schema.ts
4537
- import { z as z65 } from "zod";
4538
- var SetupResponseSchema = z65.object({
4539
- device_id: z65.string().regex(/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i),
4540
- secret: z65.string(),
4541
- provisioning_uri: z65.string(),
4542
- qr_code_base64: z65.string(),
4543
- expires_in: z65.int()
4600
+ import { z as z66 } from "zod";
4601
+ var SetupResponseSchema = z66.object({
4602
+ device_id: z66.string().regex(/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i),
4603
+ secret: z66.string(),
4604
+ provisioning_uri: z66.string(),
4605
+ qr_code_base64: z66.string(),
4606
+ expires_in: z66.int()
4544
4607
  });
4545
4608
 
4546
4609
  // src/generated/cfg_totp/_utils/schemas/VerifyBackupRequest.schema.ts
4547
- import { z as z66 } from "zod";
4548
- var VerifyBackupRequestSchema = z66.object({
4549
- session_id: z66.string().regex(/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i),
4550
- backup_code: z66.string().min(8).max(8)
4610
+ import { z as z67 } from "zod";
4611
+ var VerifyBackupRequestSchema = z67.object({
4612
+ session_id: z67.string().regex(/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i),
4613
+ backup_code: z67.string().min(8).max(8)
4551
4614
  });
4552
4615
 
4553
4616
  // src/generated/cfg_totp/_utils/schemas/VerifyRequest.schema.ts
4554
- import { z as z67 } from "zod";
4555
- var VerifyRequestSchema = z67.object({
4556
- session_id: z67.string().regex(/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i),
4557
- code: z67.string().min(6).max(6)
4617
+ import { z as z68 } from "zod";
4618
+ var VerifyRequestSchema = z68.object({
4619
+ session_id: z68.string().regex(/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i),
4620
+ code: z68.string().min(6).max(6)
4558
4621
  });
4559
4622
 
4560
4623
  // src/generated/cfg_totp/_utils/schemas/VerifyResponse.schema.ts
4561
- import { z as z68 } from "zod";
4562
- var VerifyResponseSchema = z68.object({
4563
- message: z68.string(),
4564
- access_token: z68.string(),
4565
- refresh_token: z68.string(),
4566
- user: z68.record(z68.string(), z68.any()),
4567
- remaining_backup_codes: z68.int().optional(),
4568
- warning: z68.string().optional()
4624
+ import { z as z69 } from "zod";
4625
+ var VerifyResponseSchema = z69.object({
4626
+ message: z69.string(),
4627
+ access_token: z69.string(),
4628
+ refresh_token: z69.string(),
4629
+ user: z69.record(z69.string(), z69.any()),
4630
+ remaining_backup_codes: z69.int().optional(),
4631
+ warning: z69.string().optional()
4569
4632
  });
4570
4633
 
4571
4634
  // src/generated/cfg_totp/_utils/fetchers/index.ts
@@ -5733,40 +5796,40 @@ __export(schemas_exports4, {
5733
5796
  });
5734
5797
 
5735
5798
  // src/generated/cfg_webpush/_utils/schemas/SendPushRequestRequest.schema.ts
5736
- import { z as z69 } from "zod";
5737
- var SendPushRequestRequestSchema = z69.object({
5738
- title: z69.string().min(1).max(255),
5739
- body: z69.string().min(1),
5740
- icon: z69.union([z69.url(), z69.literal("")]).nullable().optional(),
5741
- url: z69.union([z69.url(), z69.literal("")]).nullable().optional()
5799
+ import { z as z70 } from "zod";
5800
+ var SendPushRequestRequestSchema = z70.object({
5801
+ title: z70.string().min(1).max(255),
5802
+ body: z70.string().min(1),
5803
+ icon: z70.union([z70.url(), z70.literal("")]).nullable().optional(),
5804
+ url: z70.union([z70.url(), z70.literal("")]).nullable().optional()
5742
5805
  });
5743
5806
 
5744
5807
  // src/generated/cfg_webpush/_utils/schemas/SendPushResponse.schema.ts
5745
- import { z as z70 } from "zod";
5746
- var SendPushResponseSchema = z70.object({
5747
- success: z70.boolean(),
5748
- sent_to: z70.int()
5808
+ import { z as z71 } from "zod";
5809
+ var SendPushResponseSchema = z71.object({
5810
+ success: z71.boolean(),
5811
+ sent_to: z71.int()
5749
5812
  });
5750
5813
 
5751
5814
  // src/generated/cfg_webpush/_utils/schemas/SubscribeRequestRequest.schema.ts
5752
- import { z as z71 } from "zod";
5753
- var SubscribeRequestRequestSchema = z71.object({
5754
- endpoint: z71.union([z71.url(), z71.literal("")]),
5755
- keys: z71.record(z71.string(), z71.string().min(1))
5815
+ import { z as z72 } from "zod";
5816
+ var SubscribeRequestRequestSchema = z72.object({
5817
+ endpoint: z72.union([z72.url(), z72.literal("")]),
5818
+ keys: z72.record(z72.string(), z72.string().min(1))
5756
5819
  });
5757
5820
 
5758
5821
  // src/generated/cfg_webpush/_utils/schemas/SubscribeResponse.schema.ts
5759
- import { z as z72 } from "zod";
5760
- var SubscribeResponseSchema = z72.object({
5761
- success: z72.boolean(),
5762
- subscription_id: z72.int(),
5763
- created: z72.boolean()
5822
+ import { z as z73 } from "zod";
5823
+ var SubscribeResponseSchema = z73.object({
5824
+ success: z73.boolean(),
5825
+ subscription_id: z73.int(),
5826
+ created: z73.boolean()
5764
5827
  });
5765
5828
 
5766
5829
  // src/generated/cfg_webpush/_utils/schemas/VapidPublicKeyResponse.schema.ts
5767
- import { z as z73 } from "zod";
5768
- var VapidPublicKeyResponseSchema = z73.object({
5769
- publicKey: z73.string()
5830
+ import { z as z74 } from "zod";
5831
+ var VapidPublicKeyResponseSchema = z74.object({
5832
+ publicKey: z74.string()
5770
5833
  });
5771
5834
 
5772
5835
  // src/generated/cfg_webpush/_utils/fetchers/index.ts
@@ -6135,6 +6198,15 @@ function useCreateAccountsProfileAvatarCreate() {
6135
6198
  };
6136
6199
  }
6137
6200
  __name(useCreateAccountsProfileAvatarCreate, "useCreateAccountsProfileAvatarCreate");
6201
+ function useCreateAccountsProfileDeleteCreate() {
6202
+ const { mutate } = useSWRConfig3();
6203
+ return async (client) => {
6204
+ const result = await createAccountsProfileDeleteCreate(client);
6205
+ mutate("cfg-accounts-profile-delete");
6206
+ return result;
6207
+ };
6208
+ }
6209
+ __name(useCreateAccountsProfileDeleteCreate, "useCreateAccountsProfileDeleteCreate");
6138
6210
  function usePartialUpdateAccountsProfilePartialUpdate() {
6139
6211
  const { mutate } = useSWRConfig3();
6140
6212
  return async (data, client) => {
@@ -6503,6 +6575,7 @@ var apiTotp = new API3(apiUrl, { storage });
6503
6575
  var apiWebPush = new API4(apiUrl, { storage });
6504
6576
  var apiCentrifugo = new API2(apiUrl, { storage });
6505
6577
  export {
6578
+ AccountDeleteResponseSchema,
6506
6579
  API as AccountsAPI,
6507
6580
  API2 as CentrifugoAPI,
6508
6581
  fetchers_exports2 as CentrifugoFetchers,
@@ -6547,6 +6620,7 @@ export {
6547
6620
  createAccountsOtpRequestCreate,
6548
6621
  createAccountsOtpVerifyCreate,
6549
6622
  createAccountsProfileAvatarCreate,
6623
+ createAccountsProfileDeleteCreate,
6550
6624
  createAccountsTokenRefreshCreate,
6551
6625
  getAccountsOauthConnectionsList,
6552
6626
  getAccountsOauthProvidersRetrieve,
@@ -6564,6 +6638,7 @@ export {
6564
6638
  useCreateAccountsOtpRequestCreate,
6565
6639
  useCreateAccountsOtpVerifyCreate,
6566
6640
  useCreateAccountsProfileAvatarCreate,
6641
+ useCreateAccountsProfileDeleteCreate,
6567
6642
  useCreateAccountsTokenRefreshCreate,
6568
6643
  usePartialUpdateAccountsProfilePartialPartialUpdate,
6569
6644
  usePartialUpdateAccountsProfilePartialUpdate,