@djangocfg/api 2.1.99 → 2.1.101

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (41) hide show
  1. package/dist/auth-server.cjs +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 +471 -386
  6. package/dist/auth.cjs.map +1 -1
  7. package/dist/auth.d.cts +42 -1
  8. package/dist/auth.d.ts +42 -1
  9. package/dist/auth.mjs +471 -386
  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 +3 -3
  30. package/src/auth/context/AuthContext.tsx +31 -0
  31. package/src/auth/context/types.ts +4 -0
  32. package/src/auth/hooks/index.ts +7 -0
  33. package/src/auth/hooks/useDeleteAccount.ts +90 -0
  34. package/src/generated/cfg_accounts/CLAUDE.md +4 -3
  35. package/src/generated/cfg_accounts/_utils/fetchers/accounts__user_profile.ts +58 -0
  36. package/src/generated/cfg_accounts/_utils/hooks/accounts__user_profile.ts +19 -0
  37. package/src/generated/cfg_accounts/_utils/schemas/AccountDeleteResponse.schema.ts +20 -0
  38. package/src/generated/cfg_accounts/_utils/schemas/index.ts +1 -0
  39. package/src/generated/cfg_accounts/accounts__user_profile/client.ts +14 -0
  40. package/src/generated/cfg_accounts/accounts__user_profile/models.ts +12 -0
  41. package/src/generated/cfg_accounts/schema.json +69 -0
@@ -124,6 +124,19 @@ var UserProfile = class {
124
124
  const response = await this.client.request("POST", "/cfg/accounts/profile/avatar/", { formData });
125
125
  return response;
126
126
  }
127
+ /**
128
+ * Delete user account
129
+ *
130
+ * Permanently delete the current user's account. This operation: -
131
+ * Deactivates the account (user cannot log in) - Anonymizes personal data
132
+ * (GDPR compliance) - Frees up the email address for re-registration -
133
+ * Preserves audit trail The account can be restored by an administrator if
134
+ * needed.
135
+ */
136
+ async accountsProfileDeleteCreate() {
137
+ const response = await this.client.request("POST", "/cfg/accounts/profile/delete/");
138
+ return response;
139
+ }
127
140
  /**
128
141
  * Partial update user profile
129
142
  *
@@ -833,183 +846,190 @@ var OTPVerifyRequestChannel = /* @__PURE__ */ ((OTPVerifyRequestChannel2) => {
833
846
  return OTPVerifyRequestChannel2;
834
847
  })(OTPVerifyRequestChannel || {});
835
848
 
836
- // src/generated/cfg_accounts/_utils/schemas/CentrifugoToken.schema.ts
849
+ // src/generated/cfg_accounts/_utils/schemas/AccountDeleteResponse.schema.ts
837
850
  import { z } from "zod";
838
- var CentrifugoTokenSchema = z.object({
839
- token: z.string(),
840
- centrifugo_url: z.union([z.url(), z.literal("")]),
841
- expires_at: z.iso.datetime(),
842
- channels: z.array(z.string())
851
+ var AccountDeleteResponseSchema = z.object({
852
+ success: z.boolean(),
853
+ message: z.string()
843
854
  });
844
855
 
845
- // src/generated/cfg_accounts/_utils/schemas/CfgAccountsProfileAvatarCreateRequest.schema.ts
856
+ // src/generated/cfg_accounts/_utils/schemas/CentrifugoToken.schema.ts
846
857
  import { z as z2 } from "zod";
847
- var CfgAccountsProfileAvatarCreateRequestSchema = z2.object({
848
- avatar: z2.union([z2.instanceof(File), z2.instanceof(Blob)])
858
+ var CentrifugoTokenSchema = z2.object({
859
+ token: z2.string(),
860
+ centrifugo_url: z2.union([z2.url(), z2.literal("")]),
861
+ expires_at: z2.iso.datetime(),
862
+ channels: z2.array(z2.string())
849
863
  });
850
864
 
851
- // src/generated/cfg_accounts/_utils/schemas/OAuthAuthorizeRequestRequest.schema.ts
865
+ // src/generated/cfg_accounts/_utils/schemas/CfgAccountsProfileAvatarCreateRequest.schema.ts
852
866
  import { z as z3 } from "zod";
853
- var OAuthAuthorizeRequestRequestSchema = z3.object({
854
- redirect_uri: z3.union([z3.url(), z3.literal("")]).optional(),
855
- source_url: z3.union([z3.url(), z3.literal("")]).optional()
867
+ var CfgAccountsProfileAvatarCreateRequestSchema = z3.object({
868
+ avatar: z3.union([z3.instanceof(File), z3.instanceof(Blob)])
856
869
  });
857
870
 
858
- // src/generated/cfg_accounts/_utils/schemas/OAuthAuthorizeResponse.schema.ts
871
+ // src/generated/cfg_accounts/_utils/schemas/OAuthAuthorizeRequestRequest.schema.ts
859
872
  import { z as z4 } from "zod";
860
- var OAuthAuthorizeResponseSchema = z4.object({
861
- authorization_url: z4.union([z4.url(), z4.literal("")]),
862
- state: z4.string()
873
+ var OAuthAuthorizeRequestRequestSchema = z4.object({
874
+ redirect_uri: z4.union([z4.url(), z4.literal("")]).optional(),
875
+ source_url: z4.union([z4.url(), z4.literal("")]).optional()
863
876
  });
864
877
 
865
- // src/generated/cfg_accounts/_utils/schemas/OAuthCallbackRequestRequest.schema.ts
878
+ // src/generated/cfg_accounts/_utils/schemas/OAuthAuthorizeResponse.schema.ts
866
879
  import { z as z5 } from "zod";
867
- var OAuthCallbackRequestRequestSchema = z5.object({
868
- code: z5.string().min(10).max(500),
869
- state: z5.string().min(20).max(100),
870
- redirect_uri: z5.union([z5.url(), z5.literal("")]).optional()
880
+ var OAuthAuthorizeResponseSchema = z5.object({
881
+ authorization_url: z5.union([z5.url(), z5.literal("")]),
882
+ state: z5.string()
871
883
  });
872
884
 
873
- // src/generated/cfg_accounts/_utils/schemas/OAuthConnection.schema.ts
885
+ // src/generated/cfg_accounts/_utils/schemas/OAuthCallbackRequestRequest.schema.ts
874
886
  import { z as z6 } from "zod";
875
- var OAuthConnectionSchema = z6.object({
876
- id: z6.int(),
877
- provider: z6.nativeEnum(OAuthConnectionProvider),
878
- provider_display: z6.string(),
879
- provider_username: z6.string(),
880
- provider_email: z6.email(),
881
- provider_avatar_url: z6.union([z6.url(), z6.literal("")]),
882
- connected_at: z6.iso.datetime(),
883
- last_login_at: z6.iso.datetime()
887
+ var OAuthCallbackRequestRequestSchema = z6.object({
888
+ code: z6.string().min(10).max(500),
889
+ state: z6.string().min(20).max(100),
890
+ redirect_uri: z6.union([z6.url(), z6.literal("")]).optional()
884
891
  });
885
892
 
886
- // src/generated/cfg_accounts/_utils/schemas/OAuthDisconnectRequestRequest.schema.ts
893
+ // src/generated/cfg_accounts/_utils/schemas/OAuthConnection.schema.ts
887
894
  import { z as z7 } from "zod";
888
- var OAuthDisconnectRequestRequestSchema = z7.object({
889
- provider: z7.nativeEnum(OAuthDisconnectRequestRequestProvider)
895
+ var OAuthConnectionSchema = z7.object({
896
+ id: z7.int(),
897
+ provider: z7.nativeEnum(OAuthConnectionProvider),
898
+ provider_display: z7.string(),
899
+ provider_username: z7.string(),
900
+ provider_email: z7.email(),
901
+ provider_avatar_url: z7.union([z7.url(), z7.literal("")]),
902
+ connected_at: z7.iso.datetime(),
903
+ last_login_at: z7.iso.datetime()
890
904
  });
891
905
 
892
- // src/generated/cfg_accounts/_utils/schemas/OAuthError.schema.ts
906
+ // src/generated/cfg_accounts/_utils/schemas/OAuthDisconnectRequestRequest.schema.ts
893
907
  import { z as z8 } from "zod";
894
- var OAuthErrorSchema = z8.object({
895
- error: z8.string(),
896
- error_description: z8.string().optional()
908
+ var OAuthDisconnectRequestRequestSchema = z8.object({
909
+ provider: z8.nativeEnum(OAuthDisconnectRequestRequestProvider)
897
910
  });
898
911
 
899
- // src/generated/cfg_accounts/_utils/schemas/OAuthProvidersResponse.schema.ts
912
+ // src/generated/cfg_accounts/_utils/schemas/OAuthError.schema.ts
900
913
  import { z as z9 } from "zod";
901
- var OAuthProvidersResponseSchema = z9.object({
902
- providers: z9.array(z9.record(z9.string(), z9.any()))
914
+ var OAuthErrorSchema = z9.object({
915
+ error: z9.string(),
916
+ error_description: z9.string().optional()
903
917
  });
904
918
 
905
- // src/generated/cfg_accounts/_utils/schemas/OAuthTokenResponse.schema.ts
919
+ // src/generated/cfg_accounts/_utils/schemas/OAuthProvidersResponse.schema.ts
906
920
  import { z as z10 } from "zod";
907
- var OAuthTokenResponseSchema = z10.object({
908
- requires_2fa: z10.boolean().optional(),
909
- 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(),
910
- access: z10.string().nullable().optional(),
911
- refresh: z10.string().nullable().optional(),
912
- user: z10.record(z10.string(), z10.any()).nullable().optional(),
913
- is_new_user: z10.boolean(),
914
- is_new_connection: z10.boolean(),
915
- should_prompt_2fa: z10.boolean().optional()
921
+ var OAuthProvidersResponseSchema = z10.object({
922
+ providers: z10.array(z10.record(z10.string(), z10.any()))
916
923
  });
917
924
 
918
- // src/generated/cfg_accounts/_utils/schemas/OTPErrorResponse.schema.ts
925
+ // src/generated/cfg_accounts/_utils/schemas/OAuthTokenResponse.schema.ts
919
926
  import { z as z11 } from "zod";
920
- var OTPErrorResponseSchema = z11.object({
921
- error: z11.string()
927
+ var OAuthTokenResponseSchema = z11.object({
928
+ requires_2fa: z11.boolean().optional(),
929
+ 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(),
930
+ access: z11.string().nullable().optional(),
931
+ refresh: z11.string().nullable().optional(),
932
+ user: z11.record(z11.string(), z11.any()).nullable().optional(),
933
+ is_new_user: z11.boolean(),
934
+ is_new_connection: z11.boolean(),
935
+ should_prompt_2fa: z11.boolean().optional()
922
936
  });
923
937
 
924
- // src/generated/cfg_accounts/_utils/schemas/OTPRequestRequest.schema.ts
938
+ // src/generated/cfg_accounts/_utils/schemas/OTPErrorResponse.schema.ts
925
939
  import { z as z12 } from "zod";
926
- var OTPRequestRequestSchema = z12.object({
927
- identifier: z12.string().min(1),
928
- channel: z12.nativeEnum(OTPRequestRequestChannel).optional(),
929
- source_url: z12.union([z12.url(), z12.literal("")]).optional()
940
+ var OTPErrorResponseSchema = z12.object({
941
+ error: z12.string()
930
942
  });
931
943
 
932
- // src/generated/cfg_accounts/_utils/schemas/OTPRequestResponse.schema.ts
944
+ // src/generated/cfg_accounts/_utils/schemas/OTPRequestRequest.schema.ts
933
945
  import { z as z13 } from "zod";
934
- var OTPRequestResponseSchema = z13.object({
935
- message: z13.string()
946
+ var OTPRequestRequestSchema = z13.object({
947
+ identifier: z13.string().min(1),
948
+ channel: z13.nativeEnum(OTPRequestRequestChannel).optional(),
949
+ source_url: z13.union([z13.url(), z13.literal("")]).optional()
936
950
  });
937
951
 
938
- // src/generated/cfg_accounts/_utils/schemas/OTPVerifyRequest.schema.ts
952
+ // src/generated/cfg_accounts/_utils/schemas/OTPRequestResponse.schema.ts
939
953
  import { z as z14 } from "zod";
940
- var OTPVerifyRequestSchema = z14.object({
941
- identifier: z14.string().min(1),
942
- otp: z14.string().min(6).max(6),
943
- channel: z14.nativeEnum(OTPVerifyRequestChannel).optional(),
944
- source_url: z14.union([z14.url(), z14.literal("")]).optional()
954
+ var OTPRequestResponseSchema = z14.object({
955
+ message: z14.string()
956
+ });
957
+
958
+ // src/generated/cfg_accounts/_utils/schemas/OTPVerifyRequest.schema.ts
959
+ import { z as z15 } from "zod";
960
+ var OTPVerifyRequestSchema = z15.object({
961
+ identifier: z15.string().min(1),
962
+ otp: z15.string().min(6).max(6),
963
+ channel: z15.nativeEnum(OTPVerifyRequestChannel).optional(),
964
+ source_url: z15.union([z15.url(), z15.literal("")]).optional()
945
965
  });
946
966
 
947
967
  // src/generated/cfg_accounts/_utils/schemas/OTPVerifyResponse.schema.ts
948
- import { z as z16 } from "zod";
968
+ import { z as z17 } from "zod";
949
969
 
950
970
  // src/generated/cfg_accounts/_utils/schemas/User.schema.ts
951
- import { z as z15 } from "zod";
952
- var UserSchema = z15.object({
953
- id: z15.int(),
954
- email: z15.email(),
955
- first_name: z15.string().max(50).optional(),
956
- last_name: z15.string().max(50).optional(),
957
- full_name: z15.string(),
958
- initials: z15.string(),
959
- display_username: z15.string(),
960
- company: z15.string().max(100).optional(),
961
- phone: z15.string().max(20).optional(),
962
- position: z15.string().max(100).optional(),
963
- avatar: z15.union([z15.url(), z15.literal("")]).nullable(),
964
- is_staff: z15.boolean(),
965
- is_superuser: z15.boolean(),
966
- date_joined: z15.iso.datetime(),
967
- last_login: z15.iso.datetime().nullable(),
968
- unanswered_messages_count: z15.int(),
971
+ import { z as z16 } from "zod";
972
+ var UserSchema = z16.object({
973
+ id: z16.int(),
974
+ email: z16.email(),
975
+ first_name: z16.string().max(50).optional(),
976
+ last_name: z16.string().max(50).optional(),
977
+ full_name: z16.string(),
978
+ initials: z16.string(),
979
+ display_username: z16.string(),
980
+ company: z16.string().max(100).optional(),
981
+ phone: z16.string().max(20).optional(),
982
+ position: z16.string().max(100).optional(),
983
+ avatar: z16.union([z16.url(), z16.literal("")]).nullable(),
984
+ is_staff: z16.boolean(),
985
+ is_superuser: z16.boolean(),
986
+ date_joined: z16.iso.datetime(),
987
+ last_login: z16.iso.datetime().nullable(),
988
+ unanswered_messages_count: z16.int(),
969
989
  centrifugo: CentrifugoTokenSchema.nullable()
970
990
  });
971
991
 
972
992
  // src/generated/cfg_accounts/_utils/schemas/OTPVerifyResponse.schema.ts
973
- var OTPVerifyResponseSchema = z16.object({
974
- requires_2fa: z16.boolean().optional(),
975
- 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(),
976
- refresh: z16.string().nullable().optional(),
977
- access: z16.string().nullable().optional(),
993
+ var OTPVerifyResponseSchema = z17.object({
994
+ requires_2fa: z17.boolean().optional(),
995
+ 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(),
996
+ refresh: z17.string().nullable().optional(),
997
+ access: z17.string().nullable().optional(),
978
998
  user: UserSchema.nullable().optional(),
979
- should_prompt_2fa: z16.boolean().optional()
999
+ should_prompt_2fa: z17.boolean().optional()
980
1000
  });
981
1001
 
982
1002
  // src/generated/cfg_accounts/_utils/schemas/PatchedUserProfileUpdateRequest.schema.ts
983
- import { z as z17 } from "zod";
984
- var PatchedUserProfileUpdateRequestSchema = z17.object({
985
- first_name: z17.string().max(50).optional(),
986
- last_name: z17.string().max(50).optional(),
987
- company: z17.string().max(100).optional(),
988
- phone: z17.string().max(20).optional(),
989
- position: z17.string().max(100).optional()
1003
+ import { z as z18 } from "zod";
1004
+ var PatchedUserProfileUpdateRequestSchema = z18.object({
1005
+ first_name: z18.string().max(50).optional(),
1006
+ last_name: z18.string().max(50).optional(),
1007
+ company: z18.string().max(100).optional(),
1008
+ phone: z18.string().max(20).optional(),
1009
+ position: z18.string().max(100).optional()
990
1010
  });
991
1011
 
992
1012
  // src/generated/cfg_accounts/_utils/schemas/TokenRefresh.schema.ts
993
- import { z as z18 } from "zod";
994
- var TokenRefreshSchema = z18.object({
995
- access: z18.string(),
996
- refresh: z18.string()
1013
+ import { z as z19 } from "zod";
1014
+ var TokenRefreshSchema = z19.object({
1015
+ access: z19.string(),
1016
+ refresh: z19.string()
997
1017
  });
998
1018
 
999
1019
  // src/generated/cfg_accounts/_utils/schemas/TokenRefreshRequest.schema.ts
1000
- import { z as z19 } from "zod";
1001
- var TokenRefreshRequestSchema = z19.object({
1002
- refresh: z19.string().min(1)
1020
+ import { z as z20 } from "zod";
1021
+ var TokenRefreshRequestSchema = z20.object({
1022
+ refresh: z20.string().min(1)
1003
1023
  });
1004
1024
 
1005
1025
  // src/generated/cfg_accounts/_utils/schemas/UserProfileUpdateRequest.schema.ts
1006
- import { z as z20 } from "zod";
1007
- var UserProfileUpdateRequestSchema = z20.object({
1008
- first_name: z20.string().max(50).optional(),
1009
- last_name: z20.string().max(50).optional(),
1010
- company: z20.string().max(100).optional(),
1011
- phone: z20.string().max(20).optional(),
1012
- position: z20.string().max(100).optional()
1026
+ import { z as z21 } from "zod";
1027
+ var UserProfileUpdateRequestSchema = z21.object({
1028
+ first_name: z21.string().max(50).optional(),
1029
+ last_name: z21.string().max(50).optional(),
1030
+ company: z21.string().max(100).optional(),
1031
+ phone: z21.string().max(20).optional(),
1032
+ position: z21.string().max(100).optional()
1013
1033
  });
1014
1034
 
1015
1035
  // src/generated/cfg_accounts/_utils/fetchers/accounts.ts
@@ -1311,320 +1331,320 @@ var defaultLogger2 = new APILogger2();
1311
1331
  import pRetry2, { AbortError as AbortError2 } from "p-retry";
1312
1332
 
1313
1333
  // src/generated/cfg_centrifugo/_utils/schemas/CentrifugoChannelInfo.schema.ts
1314
- import { z as z21 } from "zod";
1315
- var CentrifugoChannelInfoSchema = z21.object({
1316
- num_clients: z21.int()
1334
+ import { z as z22 } from "zod";
1335
+ var CentrifugoChannelInfoSchema = z22.object({
1336
+ num_clients: z22.int()
1317
1337
  });
1318
1338
 
1319
1339
  // src/generated/cfg_centrifugo/_utils/schemas/CentrifugoChannelsRequestRequest.schema.ts
1320
- import { z as z22 } from "zod";
1321
- var CentrifugoChannelsRequestRequestSchema = z22.object({
1322
- pattern: z22.string().nullable().optional()
1340
+ import { z as z23 } from "zod";
1341
+ var CentrifugoChannelsRequestRequestSchema = z23.object({
1342
+ pattern: z23.string().nullable().optional()
1323
1343
  });
1324
1344
 
1325
1345
  // src/generated/cfg_centrifugo/_utils/schemas/CentrifugoChannelsResponse.schema.ts
1326
- import { z as z25 } from "zod";
1346
+ import { z as z26 } from "zod";
1327
1347
 
1328
1348
  // src/generated/cfg_centrifugo/_utils/schemas/CentrifugoChannelsResult.schema.ts
1329
- import { z as z23 } from "zod";
1330
- var CentrifugoChannelsResultSchema = z23.object({
1331
- channels: z23.record(z23.string(), CentrifugoChannelInfoSchema)
1349
+ import { z as z24 } from "zod";
1350
+ var CentrifugoChannelsResultSchema = z24.object({
1351
+ channels: z24.record(z24.string(), CentrifugoChannelInfoSchema)
1332
1352
  });
1333
1353
 
1334
1354
  // src/generated/cfg_centrifugo/_utils/schemas/CentrifugoError.schema.ts
1335
- import { z as z24 } from "zod";
1336
- var CentrifugoErrorSchema = z24.object({
1337
- code: z24.int().optional(),
1338
- message: z24.string().optional()
1355
+ import { z as z25 } from "zod";
1356
+ var CentrifugoErrorSchema = z25.object({
1357
+ code: z25.int().optional(),
1358
+ message: z25.string().optional()
1339
1359
  });
1340
1360
 
1341
1361
  // src/generated/cfg_centrifugo/_utils/schemas/CentrifugoChannelsResponse.schema.ts
1342
- var CentrifugoChannelsResponseSchema = z25.object({
1362
+ var CentrifugoChannelsResponseSchema = z26.object({
1343
1363
  error: CentrifugoErrorSchema.optional(),
1344
1364
  result: CentrifugoChannelsResultSchema.optional()
1345
1365
  });
1346
1366
 
1347
1367
  // src/generated/cfg_centrifugo/_utils/schemas/CentrifugoClientInfo.schema.ts
1348
- import { z as z26 } from "zod";
1349
- var CentrifugoClientInfoSchema = z26.object({
1350
- user: z26.string(),
1351
- client: z26.string(),
1352
- conn_info: z26.record(z26.string(), z26.any()).nullable().optional(),
1353
- chan_info: z26.record(z26.string(), z26.any()).nullable().optional()
1368
+ import { z as z27 } from "zod";
1369
+ var CentrifugoClientInfoSchema = z27.object({
1370
+ user: z27.string(),
1371
+ client: z27.string(),
1372
+ conn_info: z27.record(z27.string(), z27.any()).nullable().optional(),
1373
+ chan_info: z27.record(z27.string(), z27.any()).nullable().optional()
1354
1374
  });
1355
1375
 
1356
1376
  // src/generated/cfg_centrifugo/_utils/schemas/CentrifugoHealthCheck.schema.ts
1357
- import { z as z27 } from "zod";
1358
- var CentrifugoHealthCheckSchema = z27.object({
1359
- status: z27.string(),
1360
- wrapper_url: z27.string(),
1361
- has_api_key: z27.boolean(),
1362
- timestamp: z27.string()
1377
+ import { z as z28 } from "zod";
1378
+ var CentrifugoHealthCheckSchema = z28.object({
1379
+ status: z28.string(),
1380
+ wrapper_url: z28.string(),
1381
+ has_api_key: z28.boolean(),
1382
+ timestamp: z28.string()
1363
1383
  });
1364
1384
 
1365
1385
  // src/generated/cfg_centrifugo/_utils/schemas/CentrifugoHistoryRequestRequest.schema.ts
1366
- import { z as z29 } from "zod";
1386
+ import { z as z30 } from "zod";
1367
1387
 
1368
1388
  // src/generated/cfg_centrifugo/_utils/schemas/CentrifugoStreamPosition.schema.ts
1369
- import { z as z28 } from "zod";
1370
- var CentrifugoStreamPositionSchema = z28.object({
1371
- offset: z28.int(),
1372
- epoch: z28.string()
1389
+ import { z as z29 } from "zod";
1390
+ var CentrifugoStreamPositionSchema = z29.object({
1391
+ offset: z29.int(),
1392
+ epoch: z29.string()
1373
1393
  });
1374
1394
 
1375
1395
  // src/generated/cfg_centrifugo/_utils/schemas/CentrifugoHistoryRequestRequest.schema.ts
1376
- var CentrifugoHistoryRequestRequestSchema = z29.object({
1377
- channel: z29.string(),
1378
- limit: z29.int().nullable().optional(),
1396
+ var CentrifugoHistoryRequestRequestSchema = z30.object({
1397
+ channel: z30.string(),
1398
+ limit: z30.int().nullable().optional(),
1379
1399
  since: CentrifugoStreamPositionSchema.optional(),
1380
- reverse: z29.boolean().nullable().optional()
1400
+ reverse: z30.boolean().nullable().optional()
1381
1401
  });
1382
1402
 
1383
1403
  // src/generated/cfg_centrifugo/_utils/schemas/CentrifugoHistoryResponse.schema.ts
1384
- import { z as z32 } from "zod";
1404
+ import { z as z33 } from "zod";
1385
1405
 
1386
1406
  // src/generated/cfg_centrifugo/_utils/schemas/CentrifugoHistoryResult.schema.ts
1387
- import { z as z31 } from "zod";
1407
+ import { z as z32 } from "zod";
1388
1408
 
1389
1409
  // src/generated/cfg_centrifugo/_utils/schemas/CentrifugoPublication.schema.ts
1390
- import { z as z30 } from "zod";
1391
- var CentrifugoPublicationSchema = z30.object({
1392
- data: z30.record(z30.string(), z30.any()),
1410
+ import { z as z31 } from "zod";
1411
+ var CentrifugoPublicationSchema = z31.object({
1412
+ data: z31.record(z31.string(), z31.any()),
1393
1413
  info: CentrifugoClientInfoSchema.optional(),
1394
- offset: z30.int(),
1395
- tags: z30.record(z30.string(), z30.any()).nullable().optional()
1414
+ offset: z31.int(),
1415
+ tags: z31.record(z31.string(), z31.any()).nullable().optional()
1396
1416
  });
1397
1417
 
1398
1418
  // src/generated/cfg_centrifugo/_utils/schemas/CentrifugoHistoryResult.schema.ts
1399
- var CentrifugoHistoryResultSchema = z31.object({
1400
- publications: z31.array(CentrifugoPublicationSchema),
1401
- epoch: z31.string(),
1402
- offset: z31.int()
1419
+ var CentrifugoHistoryResultSchema = z32.object({
1420
+ publications: z32.array(CentrifugoPublicationSchema),
1421
+ epoch: z32.string(),
1422
+ offset: z32.int()
1403
1423
  });
1404
1424
 
1405
1425
  // src/generated/cfg_centrifugo/_utils/schemas/CentrifugoHistoryResponse.schema.ts
1406
- var CentrifugoHistoryResponseSchema = z32.object({
1426
+ var CentrifugoHistoryResponseSchema = z33.object({
1407
1427
  error: CentrifugoErrorSchema.optional(),
1408
1428
  result: CentrifugoHistoryResultSchema.optional()
1409
1429
  });
1410
1430
 
1411
1431
  // src/generated/cfg_centrifugo/_utils/schemas/CentrifugoInfoResponse.schema.ts
1412
- import { z as z37 } from "zod";
1432
+ import { z as z38 } from "zod";
1413
1433
 
1414
1434
  // src/generated/cfg_centrifugo/_utils/schemas/CentrifugoInfoResult.schema.ts
1415
- import { z as z36 } from "zod";
1435
+ import { z as z37 } from "zod";
1416
1436
 
1417
1437
  // src/generated/cfg_centrifugo/_utils/schemas/CentrifugoNodeInfo.schema.ts
1418
- import { z as z35 } from "zod";
1438
+ import { z as z36 } from "zod";
1419
1439
 
1420
1440
  // src/generated/cfg_centrifugo/_utils/schemas/CentrifugoMetrics.schema.ts
1421
- import { z as z33 } from "zod";
1422
- var CentrifugoMetricsSchema = z33.object({
1423
- interval: z33.number(),
1424
- items: z33.record(z33.string(), z33.number())
1441
+ import { z as z34 } from "zod";
1442
+ var CentrifugoMetricsSchema = z34.object({
1443
+ interval: z34.number(),
1444
+ items: z34.record(z34.string(), z34.number())
1425
1445
  });
1426
1446
 
1427
1447
  // src/generated/cfg_centrifugo/_utils/schemas/CentrifugoProcess.schema.ts
1428
- import { z as z34 } from "zod";
1429
- var CentrifugoProcessSchema = z34.object({
1430
- cpu: z34.number(),
1431
- rss: z34.int()
1448
+ import { z as z35 } from "zod";
1449
+ var CentrifugoProcessSchema = z35.object({
1450
+ cpu: z35.number(),
1451
+ rss: z35.int()
1432
1452
  });
1433
1453
 
1434
1454
  // src/generated/cfg_centrifugo/_utils/schemas/CentrifugoNodeInfo.schema.ts
1435
- var CentrifugoNodeInfoSchema = z35.object({
1436
- uid: z35.string(),
1437
- name: z35.string(),
1438
- version: z35.string(),
1439
- num_clients: z35.int(),
1440
- num_users: z35.int(),
1441
- num_channels: z35.int(),
1442
- uptime: z35.int(),
1443
- num_subs: z35.int(),
1455
+ var CentrifugoNodeInfoSchema = z36.object({
1456
+ uid: z36.string(),
1457
+ name: z36.string(),
1458
+ version: z36.string(),
1459
+ num_clients: z36.int(),
1460
+ num_users: z36.int(),
1461
+ num_channels: z36.int(),
1462
+ uptime: z36.int(),
1463
+ num_subs: z36.int(),
1444
1464
  metrics: CentrifugoMetricsSchema.optional(),
1445
1465
  process: CentrifugoProcessSchema.optional()
1446
1466
  });
1447
1467
 
1448
1468
  // src/generated/cfg_centrifugo/_utils/schemas/CentrifugoInfoResult.schema.ts
1449
- var CentrifugoInfoResultSchema = z36.object({
1450
- nodes: z36.array(CentrifugoNodeInfoSchema)
1469
+ var CentrifugoInfoResultSchema = z37.object({
1470
+ nodes: z37.array(CentrifugoNodeInfoSchema)
1451
1471
  });
1452
1472
 
1453
1473
  // src/generated/cfg_centrifugo/_utils/schemas/CentrifugoInfoResponse.schema.ts
1454
- var CentrifugoInfoResponseSchema = z37.object({
1474
+ var CentrifugoInfoResponseSchema = z38.object({
1455
1475
  error: CentrifugoErrorSchema.optional(),
1456
1476
  result: CentrifugoInfoResultSchema.optional()
1457
1477
  });
1458
1478
 
1459
1479
  // src/generated/cfg_centrifugo/_utils/schemas/CentrifugoOverviewStats.schema.ts
1460
- import { z as z38 } from "zod";
1461
- var CentrifugoOverviewStatsSchema = z38.object({
1462
- total: z38.int(),
1463
- successful: z38.int(),
1464
- failed: z38.int(),
1465
- timeout: z38.int(),
1466
- success_rate: z38.number(),
1467
- avg_duration_ms: z38.number(),
1468
- avg_acks_received: z38.number(),
1469
- period_hours: z38.int()
1480
+ import { z as z39 } from "zod";
1481
+ var CentrifugoOverviewStatsSchema = z39.object({
1482
+ total: z39.int(),
1483
+ successful: z39.int(),
1484
+ failed: z39.int(),
1485
+ timeout: z39.int(),
1486
+ success_rate: z39.number(),
1487
+ avg_duration_ms: z39.number(),
1488
+ avg_acks_received: z39.number(),
1489
+ period_hours: z39.int()
1470
1490
  });
1471
1491
 
1472
1492
  // src/generated/cfg_centrifugo/_utils/schemas/CentrifugoPresenceRequestRequest.schema.ts
1473
- import { z as z39 } from "zod";
1474
- var CentrifugoPresenceRequestRequestSchema = z39.object({
1475
- channel: z39.string()
1493
+ import { z as z40 } from "zod";
1494
+ var CentrifugoPresenceRequestRequestSchema = z40.object({
1495
+ channel: z40.string()
1476
1496
  });
1477
1497
 
1478
1498
  // src/generated/cfg_centrifugo/_utils/schemas/CentrifugoPresenceResponse.schema.ts
1479
- import { z as z41 } from "zod";
1499
+ import { z as z42 } from "zod";
1480
1500
 
1481
1501
  // src/generated/cfg_centrifugo/_utils/schemas/CentrifugoPresenceResult.schema.ts
1482
- import { z as z40 } from "zod";
1483
- var CentrifugoPresenceResultSchema = z40.object({
1484
- presence: z40.record(z40.string(), CentrifugoClientInfoSchema)
1502
+ import { z as z41 } from "zod";
1503
+ var CentrifugoPresenceResultSchema = z41.object({
1504
+ presence: z41.record(z41.string(), CentrifugoClientInfoSchema)
1485
1505
  });
1486
1506
 
1487
1507
  // src/generated/cfg_centrifugo/_utils/schemas/CentrifugoPresenceResponse.schema.ts
1488
- var CentrifugoPresenceResponseSchema = z41.object({
1508
+ var CentrifugoPresenceResponseSchema = z42.object({
1489
1509
  error: CentrifugoErrorSchema.optional(),
1490
1510
  result: CentrifugoPresenceResultSchema.optional()
1491
1511
  });
1492
1512
 
1493
1513
  // src/generated/cfg_centrifugo/_utils/schemas/CentrifugoPresenceStatsRequestRequest.schema.ts
1494
- import { z as z42 } from "zod";
1495
- var CentrifugoPresenceStatsRequestRequestSchema = z42.object({
1496
- channel: z42.string()
1514
+ import { z as z43 } from "zod";
1515
+ var CentrifugoPresenceStatsRequestRequestSchema = z43.object({
1516
+ channel: z43.string()
1497
1517
  });
1498
1518
 
1499
1519
  // src/generated/cfg_centrifugo/_utils/schemas/CentrifugoPresenceStatsResponse.schema.ts
1500
- import { z as z44 } from "zod";
1520
+ import { z as z45 } from "zod";
1501
1521
 
1502
1522
  // src/generated/cfg_centrifugo/_utils/schemas/CentrifugoPresenceStatsResult.schema.ts
1503
- import { z as z43 } from "zod";
1504
- var CentrifugoPresenceStatsResultSchema = z43.object({
1505
- num_clients: z43.int(),
1506
- num_users: z43.int()
1523
+ import { z as z44 } from "zod";
1524
+ var CentrifugoPresenceStatsResultSchema = z44.object({
1525
+ num_clients: z44.int(),
1526
+ num_users: z44.int()
1507
1527
  });
1508
1528
 
1509
1529
  // src/generated/cfg_centrifugo/_utils/schemas/CentrifugoPresenceStatsResponse.schema.ts
1510
- var CentrifugoPresenceStatsResponseSchema = z44.object({
1530
+ var CentrifugoPresenceStatsResponseSchema = z45.object({
1511
1531
  error: CentrifugoErrorSchema.optional(),
1512
1532
  result: CentrifugoPresenceStatsResultSchema.optional()
1513
1533
  });
1514
1534
 
1515
1535
  // src/generated/cfg_centrifugo/_utils/schemas/ChannelList.schema.ts
1516
- import { z as z46 } from "zod";
1536
+ import { z as z47 } from "zod";
1517
1537
 
1518
1538
  // src/generated/cfg_centrifugo/_utils/schemas/ChannelStats.schema.ts
1519
- import { z as z45 } from "zod";
1520
- var ChannelStatsSchema = z45.object({
1521
- channel: z45.string(),
1522
- total: z45.int(),
1523
- successful: z45.int(),
1524
- failed: z45.int(),
1525
- avg_duration_ms: z45.number(),
1526
- avg_acks: z45.number(),
1527
- last_activity_at: z45.string().nullable()
1539
+ import { z as z46 } from "zod";
1540
+ var ChannelStatsSchema = z46.object({
1541
+ channel: z46.string(),
1542
+ total: z46.int(),
1543
+ successful: z46.int(),
1544
+ failed: z46.int(),
1545
+ avg_duration_ms: z46.number(),
1546
+ avg_acks: z46.number(),
1547
+ last_activity_at: z46.string().nullable()
1528
1548
  });
1529
1549
 
1530
1550
  // src/generated/cfg_centrifugo/_utils/schemas/ChannelList.schema.ts
1531
- var ChannelListSchema = z46.object({
1532
- channels: z46.array(ChannelStatsSchema),
1533
- total_channels: z46.int()
1551
+ var ChannelListSchema = z47.object({
1552
+ channels: z47.array(ChannelStatsSchema),
1553
+ total_channels: z47.int()
1534
1554
  });
1535
1555
 
1536
1556
  // src/generated/cfg_centrifugo/_utils/schemas/ConnectionTokenResponse.schema.ts
1537
- import { z as z47 } from "zod";
1538
- var ConnectionTokenResponseSchema = z47.object({
1539
- token: z47.string(),
1540
- centrifugo_url: z47.string(),
1541
- expires_at: z47.string(),
1542
- channels: z47.array(z47.string())
1557
+ import { z as z48 } from "zod";
1558
+ var ConnectionTokenResponseSchema = z48.object({
1559
+ token: z48.string(),
1560
+ centrifugo_url: z48.string(),
1561
+ expires_at: z48.string(),
1562
+ channels: z48.array(z48.string())
1543
1563
  });
1544
1564
 
1545
1565
  // src/generated/cfg_centrifugo/_utils/schemas/ManualAckRequestRequest.schema.ts
1546
- import { z as z48 } from "zod";
1547
- var ManualAckRequestRequestSchema = z48.object({
1548
- message_id: z48.string(),
1549
- client_id: z48.string()
1566
+ import { z as z49 } from "zod";
1567
+ var ManualAckRequestRequestSchema = z49.object({
1568
+ message_id: z49.string(),
1569
+ client_id: z49.string()
1550
1570
  });
1551
1571
 
1552
1572
  // src/generated/cfg_centrifugo/_utils/schemas/ManualAckResponse.schema.ts
1553
- import { z as z49 } from "zod";
1554
- var ManualAckResponseSchema = z49.object({
1555
- success: z49.boolean(),
1556
- message_id: z49.string(),
1557
- error: z49.string().nullable().optional()
1573
+ import { z as z50 } from "zod";
1574
+ var ManualAckResponseSchema = z50.object({
1575
+ success: z50.boolean(),
1576
+ message_id: z50.string(),
1577
+ error: z50.string().nullable().optional()
1558
1578
  });
1559
1579
 
1560
1580
  // src/generated/cfg_centrifugo/_utils/schemas/PaginatedPublishList.schema.ts
1561
- import { z as z51 } from "zod";
1581
+ import { z as z52 } from "zod";
1562
1582
 
1563
1583
  // src/generated/cfg_centrifugo/_utils/schemas/Publish.schema.ts
1564
- import { z as z50 } from "zod";
1565
- var PublishSchema = z50.object({
1566
- message_id: z50.string(),
1567
- channel: z50.string(),
1568
- status: z50.string(),
1569
- wait_for_ack: z50.boolean(),
1570
- acks_received: z50.int(),
1571
- acks_expected: z50.int().nullable(),
1572
- duration_ms: z50.number().nullable(),
1573
- created_at: z50.iso.datetime(),
1574
- completed_at: z50.iso.datetime().nullable(),
1575
- error_code: z50.string().nullable(),
1576
- error_message: z50.string().nullable()
1584
+ import { z as z51 } from "zod";
1585
+ var PublishSchema = z51.object({
1586
+ message_id: z51.string(),
1587
+ channel: z51.string(),
1588
+ status: z51.string(),
1589
+ wait_for_ack: z51.boolean(),
1590
+ acks_received: z51.int(),
1591
+ acks_expected: z51.int().nullable(),
1592
+ duration_ms: z51.number().nullable(),
1593
+ created_at: z51.iso.datetime(),
1594
+ completed_at: z51.iso.datetime().nullable(),
1595
+ error_code: z51.string().nullable(),
1596
+ error_message: z51.string().nullable()
1577
1597
  });
1578
1598
 
1579
1599
  // src/generated/cfg_centrifugo/_utils/schemas/PaginatedPublishList.schema.ts
1580
- var PaginatedPublishListSchema = z51.object({
1581
- count: z51.int(),
1582
- page: z51.int(),
1583
- pages: z51.int(),
1584
- page_size: z51.int(),
1585
- has_next: z51.boolean(),
1586
- has_previous: z51.boolean(),
1587
- next_page: z51.int().nullable().optional(),
1588
- previous_page: z51.int().nullable().optional(),
1589
- results: z51.array(PublishSchema)
1600
+ var PaginatedPublishListSchema = z52.object({
1601
+ count: z52.int(),
1602
+ page: z52.int(),
1603
+ pages: z52.int(),
1604
+ page_size: z52.int(),
1605
+ has_next: z52.boolean(),
1606
+ has_previous: z52.boolean(),
1607
+ next_page: z52.int().nullable().optional(),
1608
+ previous_page: z52.int().nullable().optional(),
1609
+ results: z52.array(PublishSchema)
1590
1610
  });
1591
1611
 
1592
1612
  // src/generated/cfg_centrifugo/_utils/schemas/PublishTestRequestRequest.schema.ts
1593
- import { z as z52 } from "zod";
1594
- var PublishTestRequestRequestSchema = z52.object({
1595
- channel: z52.string(),
1596
- data: z52.record(z52.string(), z52.any()),
1597
- wait_for_ack: z52.boolean().optional(),
1598
- ack_timeout: z52.int().min(1).max(60).optional()
1613
+ import { z as z53 } from "zod";
1614
+ var PublishTestRequestRequestSchema = z53.object({
1615
+ channel: z53.string(),
1616
+ data: z53.record(z53.string(), z53.any()),
1617
+ wait_for_ack: z53.boolean().optional(),
1618
+ ack_timeout: z53.int().min(1).max(60).optional()
1599
1619
  });
1600
1620
 
1601
1621
  // src/generated/cfg_centrifugo/_utils/schemas/PublishTestResponse.schema.ts
1602
- import { z as z53 } from "zod";
1603
- var PublishTestResponseSchema = z53.object({
1604
- success: z53.boolean(),
1605
- message_id: z53.string(),
1606
- channel: z53.string(),
1607
- acks_received: z53.int().optional(),
1608
- delivered: z53.boolean().optional(),
1609
- error: z53.string().nullable().optional()
1622
+ import { z as z54 } from "zod";
1623
+ var PublishTestResponseSchema = z54.object({
1624
+ success: z54.boolean(),
1625
+ message_id: z54.string(),
1626
+ channel: z54.string(),
1627
+ acks_received: z54.int().optional(),
1628
+ delivered: z54.boolean().optional(),
1629
+ error: z54.string().nullable().optional()
1610
1630
  });
1611
1631
 
1612
1632
  // src/generated/cfg_centrifugo/_utils/schemas/TimelineItem.schema.ts
1613
- import { z as z54 } from "zod";
1614
- var TimelineItemSchema = z54.object({
1615
- timestamp: z54.string(),
1616
- count: z54.int(),
1617
- successful: z54.int(),
1618
- failed: z54.int(),
1619
- timeout: z54.int()
1633
+ import { z as z55 } from "zod";
1634
+ var TimelineItemSchema = z55.object({
1635
+ timestamp: z55.string(),
1636
+ count: z55.int(),
1637
+ successful: z55.int(),
1638
+ failed: z55.int(),
1639
+ timeout: z55.int()
1620
1640
  });
1621
1641
 
1622
1642
  // src/generated/cfg_centrifugo/_utils/schemas/TimelineResponse.schema.ts
1623
- import { z as z55 } from "zod";
1624
- var TimelineResponseSchema = z55.object({
1625
- timeline: z55.array(TimelineItemSchema),
1626
- period_hours: z55.int(),
1627
- interval: z55.string()
1643
+ import { z as z56 } from "zod";
1644
+ var TimelineResponseSchema = z56.object({
1645
+ timeline: z56.array(TimelineItemSchema),
1646
+ period_hours: z56.int(),
1647
+ interval: z56.string()
1628
1648
  });
1629
1649
 
1630
1650
  // src/generated/cfg_centrifugo/_utils/fetchers/centrifugo__centrifugo_admin_api.ts
@@ -1797,40 +1817,40 @@ var defaultLogger3 = new APILogger3();
1797
1817
  import pRetry3, { AbortError as AbortError3 } from "p-retry";
1798
1818
 
1799
1819
  // src/generated/cfg_webpush/_utils/schemas/SendPushRequestRequest.schema.ts
1800
- import { z as z56 } from "zod";
1801
- var SendPushRequestRequestSchema = z56.object({
1802
- title: z56.string().min(1).max(255),
1803
- body: z56.string().min(1),
1804
- icon: z56.union([z56.url(), z56.literal("")]).nullable().optional(),
1805
- url: z56.union([z56.url(), z56.literal("")]).nullable().optional()
1820
+ import { z as z57 } from "zod";
1821
+ var SendPushRequestRequestSchema = z57.object({
1822
+ title: z57.string().min(1).max(255),
1823
+ body: z57.string().min(1),
1824
+ icon: z57.union([z57.url(), z57.literal("")]).nullable().optional(),
1825
+ url: z57.union([z57.url(), z57.literal("")]).nullable().optional()
1806
1826
  });
1807
1827
 
1808
1828
  // src/generated/cfg_webpush/_utils/schemas/SendPushResponse.schema.ts
1809
- import { z as z57 } from "zod";
1810
- var SendPushResponseSchema = z57.object({
1811
- success: z57.boolean(),
1812
- sent_to: z57.int()
1829
+ import { z as z58 } from "zod";
1830
+ var SendPushResponseSchema = z58.object({
1831
+ success: z58.boolean(),
1832
+ sent_to: z58.int()
1813
1833
  });
1814
1834
 
1815
1835
  // src/generated/cfg_webpush/_utils/schemas/SubscribeRequestRequest.schema.ts
1816
- import { z as z58 } from "zod";
1817
- var SubscribeRequestRequestSchema = z58.object({
1818
- endpoint: z58.union([z58.url(), z58.literal("")]),
1819
- keys: z58.record(z58.string(), z58.string().min(1))
1836
+ import { z as z59 } from "zod";
1837
+ var SubscribeRequestRequestSchema = z59.object({
1838
+ endpoint: z59.union([z59.url(), z59.literal("")]),
1839
+ keys: z59.record(z59.string(), z59.string().min(1))
1820
1840
  });
1821
1841
 
1822
1842
  // src/generated/cfg_webpush/_utils/schemas/SubscribeResponse.schema.ts
1823
- import { z as z59 } from "zod";
1824
- var SubscribeResponseSchema = z59.object({
1825
- success: z59.boolean(),
1826
- subscription_id: z59.int(),
1827
- created: z59.boolean()
1843
+ import { z as z60 } from "zod";
1844
+ var SubscribeResponseSchema = z60.object({
1845
+ success: z60.boolean(),
1846
+ subscription_id: z60.int(),
1847
+ created: z60.boolean()
1828
1848
  });
1829
1849
 
1830
1850
  // src/generated/cfg_webpush/_utils/schemas/VapidPublicKeyResponse.schema.ts
1831
- import { z as z60 } from "zod";
1832
- var VapidPublicKeyResponseSchema = z60.object({
1833
- publicKey: z60.string()
1851
+ import { z as z61 } from "zod";
1852
+ var VapidPublicKeyResponseSchema = z61.object({
1853
+ publicKey: z61.string()
1834
1854
  });
1835
1855
 
1836
1856
  // src/generated/cfg_webpush/_utils/fetchers/webpush__web_push.ts