@djangocfg/api 2.1.210 → 2.1.213

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 (60) hide show
  1. package/dist/auth-server.cjs +50 -50
  2. package/dist/auth-server.cjs.map +1 -1
  3. package/dist/auth-server.mjs +50 -50
  4. package/dist/auth-server.mjs.map +1 -1
  5. package/dist/auth.cjs +63 -63
  6. package/dist/auth.cjs.map +1 -1
  7. package/dist/auth.d.cts +10 -10
  8. package/dist/auth.d.ts +10 -10
  9. package/dist/auth.mjs +63 -63
  10. package/dist/auth.mjs.map +1 -1
  11. package/dist/clients.cjs +63 -63
  12. package/dist/clients.cjs.map +1 -1
  13. package/dist/clients.d.cts +106 -106
  14. package/dist/clients.d.ts +106 -106
  15. package/dist/clients.mjs +63 -63
  16. package/dist/clients.mjs.map +1 -1
  17. package/dist/hooks.cjs +12 -12
  18. package/dist/hooks.cjs.map +1 -1
  19. package/dist/hooks.d.cts +14 -14
  20. package/dist/hooks.d.ts +14 -14
  21. package/dist/hooks.mjs +12 -12
  22. package/dist/hooks.mjs.map +1 -1
  23. package/dist/index.cjs +50 -50
  24. package/dist/index.cjs.map +1 -1
  25. package/dist/index.d.cts +17 -17
  26. package/dist/index.d.ts +17 -17
  27. package/dist/index.mjs +50 -50
  28. package/dist/index.mjs.map +1 -1
  29. package/package.json +2 -2
  30. package/src/generated/cfg_accounts/_utils/schemas/CentrifugoToken.schema.ts +1 -1
  31. package/src/generated/cfg_accounts/_utils/schemas/OAuthAuthorizeRequestRequest.schema.ts +2 -2
  32. package/src/generated/cfg_accounts/_utils/schemas/OAuthAuthorizeResponse.schema.ts +1 -1
  33. package/src/generated/cfg_accounts/_utils/schemas/OAuthCallbackRequestRequest.schema.ts +1 -1
  34. package/src/generated/cfg_accounts/_utils/schemas/OAuthConnection.schema.ts +2 -2
  35. package/src/generated/cfg_accounts/_utils/schemas/OTPRequestRequest.schema.ts +1 -1
  36. package/src/generated/cfg_accounts/_utils/schemas/OTPVerifyRequest.schema.ts +1 -1
  37. package/src/generated/cfg_accounts/_utils/schemas/User.schema.ts +3 -3
  38. package/src/generated/cfg_centrifugo/_utils/schemas/CentrifugoChannelInfo.schema.ts +1 -1
  39. package/src/generated/cfg_centrifugo/_utils/schemas/CentrifugoError.schema.ts +1 -1
  40. package/src/generated/cfg_centrifugo/_utils/schemas/CentrifugoHistoryRequestRequest.schema.ts +1 -1
  41. package/src/generated/cfg_centrifugo/_utils/schemas/CentrifugoHistoryResult.schema.ts +1 -1
  42. package/src/generated/cfg_centrifugo/_utils/schemas/CentrifugoNodeInfo.schema.ts +5 -5
  43. package/src/generated/cfg_centrifugo/_utils/schemas/CentrifugoOverviewStats.schema.ts +5 -5
  44. package/src/generated/cfg_centrifugo/_utils/schemas/CentrifugoPresenceStatsResult.schema.ts +2 -2
  45. package/src/generated/cfg_centrifugo/_utils/schemas/CentrifugoProcess.schema.ts +1 -1
  46. package/src/generated/cfg_centrifugo/_utils/schemas/CentrifugoPublication.schema.ts +1 -1
  47. package/src/generated/cfg_centrifugo/_utils/schemas/CentrifugoStreamPosition.schema.ts +1 -1
  48. package/src/generated/cfg_centrifugo/_utils/schemas/ChannelList.schema.ts +1 -1
  49. package/src/generated/cfg_centrifugo/_utils/schemas/ChannelStats.schema.ts +3 -3
  50. package/src/generated/cfg_centrifugo/_utils/schemas/PaginatedPublishList.schema.ts +6 -6
  51. package/src/generated/cfg_centrifugo/_utils/schemas/Publish.schema.ts +2 -2
  52. package/src/generated/cfg_centrifugo/_utils/schemas/PublishTestRequestRequest.schema.ts +1 -1
  53. package/src/generated/cfg_centrifugo/_utils/schemas/PublishTestResponse.schema.ts +1 -1
  54. package/src/generated/cfg_centrifugo/_utils/schemas/TimelineItem.schema.ts +4 -4
  55. package/src/generated/cfg_centrifugo/_utils/schemas/TimelineResponse.schema.ts +1 -1
  56. package/src/generated/cfg_totp/_utils/schemas/BackupCodesStatus.schema.ts +2 -2
  57. package/src/generated/cfg_totp/_utils/schemas/PaginatedDeviceListResponseList.schema.ts +6 -6
  58. package/src/generated/cfg_totp/_utils/schemas/SetupResponse.schema.ts +1 -1
  59. package/src/generated/cfg_totp/_utils/schemas/TotpVerifyUser.schema.ts +3 -3
  60. package/src/generated/cfg_totp/_utils/schemas/VerifyResponse.schema.ts +1 -1
package/dist/index.d.cts CHANGED
@@ -886,7 +886,7 @@ type AccountDeleteResponse = z.infer<typeof AccountDeleteResponseSchema>;
886
886
  */
887
887
  declare const CentrifugoTokenSchema: z.ZodObject<{
888
888
  token: z.ZodString;
889
- centrifugo_url: z.ZodUnion<readonly [z.ZodURL, z.ZodLiteral<"">]>;
889
+ centrifugo_url: z.ZodString;
890
890
  expires_at: z.ZodString;
891
891
  channels: z.ZodArray<z.ZodString>;
892
892
  }, z.core.$strip>;
@@ -920,8 +920,8 @@ type CfgAccountsProfileAvatarCreateRequest = z.infer<typeof CfgAccountsProfileAv
920
920
  * Request to start OAuth flow.
921
921
  */
922
922
  declare const OAuthAuthorizeRequestRequestSchema: z.ZodObject<{
923
- redirect_uri: z.ZodOptional<z.ZodUnion<readonly [z.ZodURL, z.ZodLiteral<"">]>>;
924
- source_url: z.ZodOptional<z.ZodUnion<readonly [z.ZodURL, z.ZodLiteral<"">]>>;
923
+ redirect_uri: z.ZodOptional<z.ZodString>;
924
+ source_url: z.ZodOptional<z.ZodString>;
925
925
  }, z.core.$strip>;
926
926
  /**
927
927
  * Infer TypeScript type from Zod schema
@@ -939,7 +939,7 @@ type OAuthAuthorizeRequestRequest = z.infer<typeof OAuthAuthorizeRequestRequestS
939
939
  * Response with OAuth authorization URL.
940
940
  */
941
941
  declare const OAuthAuthorizeResponseSchema: z.ZodObject<{
942
- authorization_url: z.ZodUnion<readonly [z.ZodURL, z.ZodLiteral<"">]>;
942
+ authorization_url: z.ZodString;
943
943
  state: z.ZodString;
944
944
  }, z.core.$strip>;
945
945
  /**
@@ -960,7 +960,7 @@ type OAuthAuthorizeResponse = z.infer<typeof OAuthAuthorizeResponseSchema>;
960
960
  declare const OAuthCallbackRequestRequestSchema: z.ZodObject<{
961
961
  code: z.ZodString;
962
962
  state: z.ZodString;
963
- redirect_uri: z.ZodOptional<z.ZodUnion<readonly [z.ZodURL, z.ZodLiteral<"">]>>;
963
+ redirect_uri: z.ZodOptional<z.ZodString>;
964
964
  }, z.core.$strip>;
965
965
  /**
966
966
  * Infer TypeScript type from Zod schema
@@ -978,12 +978,12 @@ type OAuthCallbackRequestRequest = z.infer<typeof OAuthCallbackRequestRequestSch
978
978
  * Serializer for OAuth connection info (user-facing).
979
979
  */
980
980
  declare const OAuthConnectionSchema: z.ZodObject<{
981
- id: z.ZodInt;
981
+ id: z.ZodNumber;
982
982
  provider: z.ZodEnum<typeof OAuthConnectionProvider>;
983
983
  provider_display: z.ZodString;
984
984
  provider_username: z.ZodString;
985
985
  provider_email: z.ZodEmail;
986
- provider_avatar_url: z.ZodUnion<readonly [z.ZodURL, z.ZodLiteral<"">]>;
986
+ provider_avatar_url: z.ZodString;
987
987
  connected_at: z.ZodString;
988
988
  last_login_at: z.ZodString;
989
989
  }, z.core.$strip>;
@@ -1123,7 +1123,7 @@ type OTPErrorResponse = z.infer<typeof OTPErrorResponseSchema>;
1123
1123
  declare const OTPRequestRequestSchema: z.ZodObject<{
1124
1124
  identifier: z.ZodString;
1125
1125
  channel: z.ZodOptional<z.ZodEnum<typeof OTPRequestRequestChannel>>;
1126
- source_url: z.ZodOptional<z.ZodUnion<readonly [z.ZodURL, z.ZodLiteral<"">]>>;
1126
+ source_url: z.ZodOptional<z.ZodString>;
1127
1127
  }, z.core.$strip>;
1128
1128
  /**
1129
1129
  * Infer TypeScript type from Zod schema
@@ -1162,7 +1162,7 @@ declare const OTPVerifyRequestSchema: z.ZodObject<{
1162
1162
  identifier: z.ZodString;
1163
1163
  otp: z.ZodString;
1164
1164
  channel: z.ZodOptional<z.ZodEnum<typeof OTPRequestRequestChannel>>;
1165
- source_url: z.ZodOptional<z.ZodUnion<readonly [z.ZodURL, z.ZodLiteral<"">]>>;
1165
+ source_url: z.ZodOptional<z.ZodString>;
1166
1166
  }, z.core.$strip>;
1167
1167
  /**
1168
1168
  * Infer TypeScript type from Zod schema
@@ -1205,7 +1205,7 @@ declare const OTPVerifyResponseSchema: z.ZodObject<{
1205
1205
  refresh: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1206
1206
  access: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1207
1207
  user: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1208
- id: z.ZodInt;
1208
+ id: z.ZodNumber;
1209
1209
  email: z.ZodEmail;
1210
1210
  first_name: z.ZodOptional<z.ZodString>;
1211
1211
  last_name: z.ZodOptional<z.ZodString>;
@@ -1216,15 +1216,15 @@ declare const OTPVerifyResponseSchema: z.ZodObject<{
1216
1216
  phone: z.ZodOptional<z.ZodString>;
1217
1217
  position: z.ZodOptional<z.ZodString>;
1218
1218
  language: z.ZodOptional<z.ZodString>;
1219
- avatar: z.ZodNullable<z.ZodUnion<readonly [z.ZodURL, z.ZodLiteral<"">]>>;
1219
+ avatar: z.ZodNullable<z.ZodString>;
1220
1220
  is_staff: z.ZodBoolean;
1221
1221
  is_superuser: z.ZodBoolean;
1222
1222
  date_joined: z.ZodString;
1223
1223
  last_login: z.ZodNullable<z.ZodString>;
1224
- unanswered_messages_count: z.ZodInt;
1224
+ unanswered_messages_count: z.ZodNumber;
1225
1225
  centrifugo: z.ZodNullable<z.ZodObject<{
1226
1226
  token: z.ZodString;
1227
- centrifugo_url: z.ZodUnion<readonly [z.ZodURL, z.ZodLiteral<"">]>;
1227
+ centrifugo_url: z.ZodString;
1228
1228
  expires_at: z.ZodString;
1229
1229
  channels: z.ZodArray<z.ZodString>;
1230
1230
  }, z.core.$strip>>;
@@ -1299,7 +1299,7 @@ type TokenRefreshRequest = z.infer<typeof TokenRefreshRequestSchema>;
1299
1299
  * Serializer for user details.
1300
1300
  */
1301
1301
  declare const UserSchema: z.ZodObject<{
1302
- id: z.ZodInt;
1302
+ id: z.ZodNumber;
1303
1303
  email: z.ZodEmail;
1304
1304
  first_name: z.ZodOptional<z.ZodString>;
1305
1305
  last_name: z.ZodOptional<z.ZodString>;
@@ -1310,15 +1310,15 @@ declare const UserSchema: z.ZodObject<{
1310
1310
  phone: z.ZodOptional<z.ZodString>;
1311
1311
  position: z.ZodOptional<z.ZodString>;
1312
1312
  language: z.ZodOptional<z.ZodString>;
1313
- avatar: z.ZodNullable<z.ZodUnion<readonly [z.ZodURL, z.ZodLiteral<"">]>>;
1313
+ avatar: z.ZodNullable<z.ZodString>;
1314
1314
  is_staff: z.ZodBoolean;
1315
1315
  is_superuser: z.ZodBoolean;
1316
1316
  date_joined: z.ZodString;
1317
1317
  last_login: z.ZodNullable<z.ZodString>;
1318
- unanswered_messages_count: z.ZodInt;
1318
+ unanswered_messages_count: z.ZodNumber;
1319
1319
  centrifugo: z.ZodNullable<z.ZodObject<{
1320
1320
  token: z.ZodString;
1321
- centrifugo_url: z.ZodUnion<readonly [z.ZodURL, z.ZodLiteral<"">]>;
1321
+ centrifugo_url: z.ZodString;
1322
1322
  expires_at: z.ZodString;
1323
1323
  channels: z.ZodArray<z.ZodString>;
1324
1324
  }, z.core.$strip>>;
package/dist/index.d.ts CHANGED
@@ -886,7 +886,7 @@ type AccountDeleteResponse = z.infer<typeof AccountDeleteResponseSchema>;
886
886
  */
887
887
  declare const CentrifugoTokenSchema: z.ZodObject<{
888
888
  token: z.ZodString;
889
- centrifugo_url: z.ZodUnion<readonly [z.ZodURL, z.ZodLiteral<"">]>;
889
+ centrifugo_url: z.ZodString;
890
890
  expires_at: z.ZodString;
891
891
  channels: z.ZodArray<z.ZodString>;
892
892
  }, z.core.$strip>;
@@ -920,8 +920,8 @@ type CfgAccountsProfileAvatarCreateRequest = z.infer<typeof CfgAccountsProfileAv
920
920
  * Request to start OAuth flow.
921
921
  */
922
922
  declare const OAuthAuthorizeRequestRequestSchema: z.ZodObject<{
923
- redirect_uri: z.ZodOptional<z.ZodUnion<readonly [z.ZodURL, z.ZodLiteral<"">]>>;
924
- source_url: z.ZodOptional<z.ZodUnion<readonly [z.ZodURL, z.ZodLiteral<"">]>>;
923
+ redirect_uri: z.ZodOptional<z.ZodString>;
924
+ source_url: z.ZodOptional<z.ZodString>;
925
925
  }, z.core.$strip>;
926
926
  /**
927
927
  * Infer TypeScript type from Zod schema
@@ -939,7 +939,7 @@ type OAuthAuthorizeRequestRequest = z.infer<typeof OAuthAuthorizeRequestRequestS
939
939
  * Response with OAuth authorization URL.
940
940
  */
941
941
  declare const OAuthAuthorizeResponseSchema: z.ZodObject<{
942
- authorization_url: z.ZodUnion<readonly [z.ZodURL, z.ZodLiteral<"">]>;
942
+ authorization_url: z.ZodString;
943
943
  state: z.ZodString;
944
944
  }, z.core.$strip>;
945
945
  /**
@@ -960,7 +960,7 @@ type OAuthAuthorizeResponse = z.infer<typeof OAuthAuthorizeResponseSchema>;
960
960
  declare const OAuthCallbackRequestRequestSchema: z.ZodObject<{
961
961
  code: z.ZodString;
962
962
  state: z.ZodString;
963
- redirect_uri: z.ZodOptional<z.ZodUnion<readonly [z.ZodURL, z.ZodLiteral<"">]>>;
963
+ redirect_uri: z.ZodOptional<z.ZodString>;
964
964
  }, z.core.$strip>;
965
965
  /**
966
966
  * Infer TypeScript type from Zod schema
@@ -978,12 +978,12 @@ type OAuthCallbackRequestRequest = z.infer<typeof OAuthCallbackRequestRequestSch
978
978
  * Serializer for OAuth connection info (user-facing).
979
979
  */
980
980
  declare const OAuthConnectionSchema: z.ZodObject<{
981
- id: z.ZodInt;
981
+ id: z.ZodNumber;
982
982
  provider: z.ZodEnum<typeof OAuthConnectionProvider>;
983
983
  provider_display: z.ZodString;
984
984
  provider_username: z.ZodString;
985
985
  provider_email: z.ZodEmail;
986
- provider_avatar_url: z.ZodUnion<readonly [z.ZodURL, z.ZodLiteral<"">]>;
986
+ provider_avatar_url: z.ZodString;
987
987
  connected_at: z.ZodString;
988
988
  last_login_at: z.ZodString;
989
989
  }, z.core.$strip>;
@@ -1123,7 +1123,7 @@ type OTPErrorResponse = z.infer<typeof OTPErrorResponseSchema>;
1123
1123
  declare const OTPRequestRequestSchema: z.ZodObject<{
1124
1124
  identifier: z.ZodString;
1125
1125
  channel: z.ZodOptional<z.ZodEnum<typeof OTPRequestRequestChannel>>;
1126
- source_url: z.ZodOptional<z.ZodUnion<readonly [z.ZodURL, z.ZodLiteral<"">]>>;
1126
+ source_url: z.ZodOptional<z.ZodString>;
1127
1127
  }, z.core.$strip>;
1128
1128
  /**
1129
1129
  * Infer TypeScript type from Zod schema
@@ -1162,7 +1162,7 @@ declare const OTPVerifyRequestSchema: z.ZodObject<{
1162
1162
  identifier: z.ZodString;
1163
1163
  otp: z.ZodString;
1164
1164
  channel: z.ZodOptional<z.ZodEnum<typeof OTPRequestRequestChannel>>;
1165
- source_url: z.ZodOptional<z.ZodUnion<readonly [z.ZodURL, z.ZodLiteral<"">]>>;
1165
+ source_url: z.ZodOptional<z.ZodString>;
1166
1166
  }, z.core.$strip>;
1167
1167
  /**
1168
1168
  * Infer TypeScript type from Zod schema
@@ -1205,7 +1205,7 @@ declare const OTPVerifyResponseSchema: z.ZodObject<{
1205
1205
  refresh: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1206
1206
  access: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1207
1207
  user: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1208
- id: z.ZodInt;
1208
+ id: z.ZodNumber;
1209
1209
  email: z.ZodEmail;
1210
1210
  first_name: z.ZodOptional<z.ZodString>;
1211
1211
  last_name: z.ZodOptional<z.ZodString>;
@@ -1216,15 +1216,15 @@ declare const OTPVerifyResponseSchema: z.ZodObject<{
1216
1216
  phone: z.ZodOptional<z.ZodString>;
1217
1217
  position: z.ZodOptional<z.ZodString>;
1218
1218
  language: z.ZodOptional<z.ZodString>;
1219
- avatar: z.ZodNullable<z.ZodUnion<readonly [z.ZodURL, z.ZodLiteral<"">]>>;
1219
+ avatar: z.ZodNullable<z.ZodString>;
1220
1220
  is_staff: z.ZodBoolean;
1221
1221
  is_superuser: z.ZodBoolean;
1222
1222
  date_joined: z.ZodString;
1223
1223
  last_login: z.ZodNullable<z.ZodString>;
1224
- unanswered_messages_count: z.ZodInt;
1224
+ unanswered_messages_count: z.ZodNumber;
1225
1225
  centrifugo: z.ZodNullable<z.ZodObject<{
1226
1226
  token: z.ZodString;
1227
- centrifugo_url: z.ZodUnion<readonly [z.ZodURL, z.ZodLiteral<"">]>;
1227
+ centrifugo_url: z.ZodString;
1228
1228
  expires_at: z.ZodString;
1229
1229
  channels: z.ZodArray<z.ZodString>;
1230
1230
  }, z.core.$strip>>;
@@ -1299,7 +1299,7 @@ type TokenRefreshRequest = z.infer<typeof TokenRefreshRequestSchema>;
1299
1299
  * Serializer for user details.
1300
1300
  */
1301
1301
  declare const UserSchema: z.ZodObject<{
1302
- id: z.ZodInt;
1302
+ id: z.ZodNumber;
1303
1303
  email: z.ZodEmail;
1304
1304
  first_name: z.ZodOptional<z.ZodString>;
1305
1305
  last_name: z.ZodOptional<z.ZodString>;
@@ -1310,15 +1310,15 @@ declare const UserSchema: z.ZodObject<{
1310
1310
  phone: z.ZodOptional<z.ZodString>;
1311
1311
  position: z.ZodOptional<z.ZodString>;
1312
1312
  language: z.ZodOptional<z.ZodString>;
1313
- avatar: z.ZodNullable<z.ZodUnion<readonly [z.ZodURL, z.ZodLiteral<"">]>>;
1313
+ avatar: z.ZodNullable<z.ZodString>;
1314
1314
  is_staff: z.ZodBoolean;
1315
1315
  is_superuser: z.ZodBoolean;
1316
1316
  date_joined: z.ZodString;
1317
1317
  last_login: z.ZodNullable<z.ZodString>;
1318
- unanswered_messages_count: z.ZodInt;
1318
+ unanswered_messages_count: z.ZodNumber;
1319
1319
  centrifugo: z.ZodNullable<z.ZodObject<{
1320
1320
  token: z.ZodString;
1321
- centrifugo_url: z.ZodUnion<readonly [z.ZodURL, z.ZodLiteral<"">]>;
1321
+ centrifugo_url: z.ZodString;
1322
1322
  expires_at: z.ZodString;
1323
1323
  channels: z.ZodArray<z.ZodString>;
1324
1324
  }, z.core.$strip>>;
package/dist/index.mjs CHANGED
@@ -1020,7 +1020,7 @@ var AccountDeleteResponseSchema = z.object({
1020
1020
  import { z as z2 } from "zod";
1021
1021
  var CentrifugoTokenSchema = z2.object({
1022
1022
  token: z2.string(),
1023
- centrifugo_url: z2.union([z2.url(), z2.literal("")]),
1023
+ centrifugo_url: z2.string().refine((v) => v === "" || v.startsWith("/") || v.startsWith("http://") || v.startsWith("https://"), { message: "Must be a URL or relative path" }),
1024
1024
  expires_at: z2.string().datetime({ offset: true }),
1025
1025
  channels: z2.array(z2.string())
1026
1026
  });
@@ -1034,14 +1034,14 @@ var CfgAccountsProfileAvatarCreateRequestSchema = z3.object({
1034
1034
  // src/generated/cfg_accounts/_utils/schemas/OAuthAuthorizeRequestRequest.schema.ts
1035
1035
  import { z as z4 } from "zod";
1036
1036
  var OAuthAuthorizeRequestRequestSchema = z4.object({
1037
- redirect_uri: z4.union([z4.url(), z4.literal("")]).optional(),
1038
- source_url: z4.union([z4.url(), z4.literal("")]).optional()
1037
+ redirect_uri: z4.string().refine((v) => v === "" || v.startsWith("/") || v.startsWith("http://") || v.startsWith("https://"), { message: "Must be a URL or relative path" }).optional(),
1038
+ source_url: z4.string().refine((v) => v === "" || v.startsWith("/") || v.startsWith("http://") || v.startsWith("https://"), { message: "Must be a URL or relative path" }).optional()
1039
1039
  });
1040
1040
 
1041
1041
  // src/generated/cfg_accounts/_utils/schemas/OAuthAuthorizeResponse.schema.ts
1042
1042
  import { z as z5 } from "zod";
1043
1043
  var OAuthAuthorizeResponseSchema = z5.object({
1044
- authorization_url: z5.union([z5.url(), z5.literal("")]),
1044
+ authorization_url: z5.string().refine((v) => v === "" || v.startsWith("/") || v.startsWith("http://") || v.startsWith("https://"), { message: "Must be a URL or relative path" }),
1045
1045
  state: z5.string()
1046
1046
  });
1047
1047
 
@@ -1050,18 +1050,18 @@ import { z as z6 } from "zod";
1050
1050
  var OAuthCallbackRequestRequestSchema = z6.object({
1051
1051
  code: z6.string().min(10).max(500),
1052
1052
  state: z6.string().min(20).max(100),
1053
- redirect_uri: z6.union([z6.url(), z6.literal("")]).optional()
1053
+ redirect_uri: z6.string().refine((v) => v === "" || v.startsWith("/") || v.startsWith("http://") || v.startsWith("https://"), { message: "Must be a URL or relative path" }).optional()
1054
1054
  });
1055
1055
 
1056
1056
  // src/generated/cfg_accounts/_utils/schemas/OAuthConnection.schema.ts
1057
1057
  import { z as z7 } from "zod";
1058
1058
  var OAuthConnectionSchema = z7.object({
1059
- id: z7.int(),
1059
+ id: z7.number().int(),
1060
1060
  provider: z7.nativeEnum(OAuthConnectionProvider),
1061
1061
  provider_display: z7.string(),
1062
1062
  provider_username: z7.string(),
1063
1063
  provider_email: z7.email(),
1064
- provider_avatar_url: z7.union([z7.url(), z7.literal("")]),
1064
+ provider_avatar_url: z7.string().refine((v) => v === "" || v.startsWith("/") || v.startsWith("http://") || v.startsWith("https://"), { message: "Must be a URL or relative path" }),
1065
1065
  connected_at: z7.string().datetime({ offset: true }),
1066
1066
  last_login_at: z7.string().datetime({ offset: true })
1067
1067
  });
@@ -1109,7 +1109,7 @@ import { z as z13 } from "zod";
1109
1109
  var OTPRequestRequestSchema = z13.object({
1110
1110
  identifier: z13.string().min(1),
1111
1111
  channel: z13.nativeEnum(OTPRequestRequestChannel).optional(),
1112
- source_url: z13.union([z13.url(), z13.literal("")]).optional()
1112
+ source_url: z13.string().refine((v) => v === "" || v.startsWith("/") || v.startsWith("http://") || v.startsWith("https://"), { message: "Must be a URL or relative path" }).optional()
1113
1113
  });
1114
1114
 
1115
1115
  // src/generated/cfg_accounts/_utils/schemas/OTPRequestResponse.schema.ts
@@ -1124,7 +1124,7 @@ var OTPVerifyRequestSchema = z15.object({
1124
1124
  identifier: z15.string().min(1),
1125
1125
  otp: z15.string().min(6).max(6),
1126
1126
  channel: z15.nativeEnum(OTPRequestRequestChannel).optional(),
1127
- source_url: z15.union([z15.url(), z15.literal("")]).optional()
1127
+ source_url: z15.string().refine((v) => v === "" || v.startsWith("/") || v.startsWith("http://") || v.startsWith("https://"), { message: "Must be a URL or relative path" }).optional()
1128
1128
  });
1129
1129
 
1130
1130
  // src/generated/cfg_accounts/_utils/schemas/OTPVerifyResponse.schema.ts
@@ -1133,7 +1133,7 @@ import { z as z17 } from "zod";
1133
1133
  // src/generated/cfg_accounts/_utils/schemas/User.schema.ts
1134
1134
  import { z as z16 } from "zod";
1135
1135
  var UserSchema = z16.object({
1136
- id: z16.int(),
1136
+ id: z16.number().int(),
1137
1137
  email: z16.email(),
1138
1138
  first_name: z16.string().max(50).optional(),
1139
1139
  last_name: z16.string().max(50).optional(),
@@ -1144,12 +1144,12 @@ var UserSchema = z16.object({
1144
1144
  phone: z16.string().max(20).optional(),
1145
1145
  position: z16.string().max(100).optional(),
1146
1146
  language: z16.string().max(10).optional(),
1147
- avatar: z16.union([z16.url(), z16.literal("")]).nullable(),
1147
+ avatar: z16.string().refine((v) => v === "" || v.startsWith("/") || v.startsWith("http://") || v.startsWith("https://"), { message: "Must be a URL or relative path" }).nullable(),
1148
1148
  is_staff: z16.boolean(),
1149
1149
  is_superuser: z16.boolean(),
1150
1150
  date_joined: z16.string().datetime({ offset: true }),
1151
1151
  last_login: z16.string().datetime({ offset: true }).nullable(),
1152
- unanswered_messages_count: z16.int(),
1152
+ unanswered_messages_count: z16.number().int(),
1153
1153
  centrifugo: CentrifugoTokenSchema.nullable()
1154
1154
  });
1155
1155
 
@@ -2909,7 +2909,7 @@ var LocalStorageAdapter2 = class {
2909
2909
  // src/generated/cfg_centrifugo/_utils/schemas/CentrifugoChannelInfo.schema.ts
2910
2910
  import { z as z22 } from "zod";
2911
2911
  var CentrifugoChannelInfoSchema = z22.object({
2912
- num_clients: z22.int()
2912
+ num_clients: z22.number().int()
2913
2913
  });
2914
2914
 
2915
2915
  // src/generated/cfg_centrifugo/_utils/schemas/CentrifugoChannelsRequestRequest.schema.ts
@@ -2930,7 +2930,7 @@ var CentrifugoChannelsResultSchema = z24.object({
2930
2930
  // src/generated/cfg_centrifugo/_utils/schemas/CentrifugoError.schema.ts
2931
2931
  import { z as z25 } from "zod";
2932
2932
  var CentrifugoErrorSchema = z25.object({
2933
- code: z25.int().optional(),
2933
+ code: z25.number().int().optional(),
2934
2934
  message: z25.string().optional()
2935
2935
  });
2936
2936
 
@@ -2964,14 +2964,14 @@ import { z as z30 } from "zod";
2964
2964
  // src/generated/cfg_centrifugo/_utils/schemas/CentrifugoStreamPosition.schema.ts
2965
2965
  import { z as z29 } from "zod";
2966
2966
  var CentrifugoStreamPositionSchema = z29.object({
2967
- offset: z29.int(),
2967
+ offset: z29.number().int(),
2968
2968
  epoch: z29.string()
2969
2969
  });
2970
2970
 
2971
2971
  // src/generated/cfg_centrifugo/_utils/schemas/CentrifugoHistoryRequestRequest.schema.ts
2972
2972
  var CentrifugoHistoryRequestRequestSchema = z30.object({
2973
2973
  channel: z30.string(),
2974
- limit: z30.int().nullable().optional(),
2974
+ limit: z30.number().int().nullable().optional(),
2975
2975
  since: CentrifugoStreamPositionSchema.nullable().optional(),
2976
2976
  reverse: z30.boolean().nullable().optional()
2977
2977
  });
@@ -2987,7 +2987,7 @@ import { z as z31 } from "zod";
2987
2987
  var CentrifugoPublicationSchema = z31.object({
2988
2988
  data: z31.record(z31.string(), z31.any()),
2989
2989
  info: CentrifugoClientInfoSchema.nullable().optional(),
2990
- offset: z31.int(),
2990
+ offset: z31.number().int(),
2991
2991
  tags: z31.record(z31.string(), z31.any()).nullable().optional()
2992
2992
  });
2993
2993
 
@@ -2995,7 +2995,7 @@ var CentrifugoPublicationSchema = z31.object({
2995
2995
  var CentrifugoHistoryResultSchema = z32.object({
2996
2996
  publications: z32.array(CentrifugoPublicationSchema),
2997
2997
  epoch: z32.string(),
2998
- offset: z32.int()
2998
+ offset: z32.number().int()
2999
2999
  });
3000
3000
 
3001
3001
  // src/generated/cfg_centrifugo/_utils/schemas/CentrifugoHistoryResponse.schema.ts
@@ -3024,7 +3024,7 @@ var CentrifugoMetricsSchema = z34.object({
3024
3024
  import { z as z35 } from "zod";
3025
3025
  var CentrifugoProcessSchema = z35.object({
3026
3026
  cpu: z35.number(),
3027
- rss: z35.int()
3027
+ rss: z35.number().int()
3028
3028
  });
3029
3029
 
3030
3030
  // src/generated/cfg_centrifugo/_utils/schemas/CentrifugoNodeInfo.schema.ts
@@ -3032,11 +3032,11 @@ var CentrifugoNodeInfoSchema = z36.object({
3032
3032
  uid: z36.string(),
3033
3033
  name: z36.string(),
3034
3034
  version: z36.string(),
3035
- num_clients: z36.int(),
3036
- num_users: z36.int(),
3037
- num_channels: z36.int(),
3038
- uptime: z36.int(),
3039
- num_subs: z36.int(),
3035
+ num_clients: z36.number().int(),
3036
+ num_users: z36.number().int(),
3037
+ num_channels: z36.number().int(),
3038
+ uptime: z36.number().int(),
3039
+ num_subs: z36.number().int(),
3040
3040
  metrics: CentrifugoMetricsSchema.nullable().optional(),
3041
3041
  process: CentrifugoProcessSchema.nullable().optional()
3042
3042
  });
@@ -3055,14 +3055,14 @@ var CentrifugoInfoResponseSchema = z38.object({
3055
3055
  // src/generated/cfg_centrifugo/_utils/schemas/CentrifugoOverviewStats.schema.ts
3056
3056
  import { z as z39 } from "zod";
3057
3057
  var CentrifugoOverviewStatsSchema = z39.object({
3058
- total: z39.int(),
3059
- successful: z39.int(),
3060
- failed: z39.int(),
3061
- timeout: z39.int(),
3058
+ total: z39.number().int(),
3059
+ successful: z39.number().int(),
3060
+ failed: z39.number().int(),
3061
+ timeout: z39.number().int(),
3062
3062
  success_rate: z39.number(),
3063
3063
  avg_duration_ms: z39.number(),
3064
3064
  avg_acks_received: z39.number(),
3065
- period_hours: z39.int()
3065
+ period_hours: z39.number().int()
3066
3066
  });
3067
3067
 
3068
3068
  // src/generated/cfg_centrifugo/_utils/schemas/CentrifugoPresenceRequestRequest.schema.ts
@@ -3098,8 +3098,8 @@ import { z as z45 } from "zod";
3098
3098
  // src/generated/cfg_centrifugo/_utils/schemas/CentrifugoPresenceStatsResult.schema.ts
3099
3099
  import { z as z44 } from "zod";
3100
3100
  var CentrifugoPresenceStatsResultSchema = z44.object({
3101
- num_clients: z44.int(),
3102
- num_users: z44.int()
3101
+ num_clients: z44.number().int(),
3102
+ num_users: z44.number().int()
3103
3103
  });
3104
3104
 
3105
3105
  // src/generated/cfg_centrifugo/_utils/schemas/CentrifugoPresenceStatsResponse.schema.ts
@@ -3115,9 +3115,9 @@ import { z as z47 } from "zod";
3115
3115
  import { z as z46 } from "zod";
3116
3116
  var ChannelStatsSchema = z46.object({
3117
3117
  channel: z46.string(),
3118
- total: z46.int(),
3119
- successful: z46.int(),
3120
- failed: z46.int(),
3118
+ total: z46.number().int(),
3119
+ successful: z46.number().int(),
3120
+ failed: z46.number().int(),
3121
3121
  avg_duration_ms: z46.number(),
3122
3122
  avg_acks: z46.number(),
3123
3123
  last_activity_at: z46.string().nullable()
@@ -3126,7 +3126,7 @@ var ChannelStatsSchema = z46.object({
3126
3126
  // src/generated/cfg_centrifugo/_utils/schemas/ChannelList.schema.ts
3127
3127
  var ChannelListSchema = z47.object({
3128
3128
  channels: z47.array(ChannelStatsSchema),
3129
- total_channels: z47.int()
3129
+ total_channels: z47.number().int()
3130
3130
  });
3131
3131
 
3132
3132
  // src/generated/cfg_centrifugo/_utils/schemas/ConnectionTokenResponse.schema.ts
@@ -3163,8 +3163,8 @@ var PublishSchema = z51.object({
3163
3163
  channel: z51.string(),
3164
3164
  status: z51.string(),
3165
3165
  wait_for_ack: z51.boolean(),
3166
- acks_received: z51.int(),
3167
- acks_expected: z51.int().nullable(),
3166
+ acks_received: z51.number().int(),
3167
+ acks_expected: z51.number().int().nullable(),
3168
3168
  duration_ms: z51.number().nullable(),
3169
3169
  created_at: z51.string().datetime({ offset: true }),
3170
3170
  completed_at: z51.string().datetime({ offset: true }).nullable(),
@@ -3174,14 +3174,14 @@ var PublishSchema = z51.object({
3174
3174
 
3175
3175
  // src/generated/cfg_centrifugo/_utils/schemas/PaginatedPublishList.schema.ts
3176
3176
  var PaginatedPublishListSchema = z52.object({
3177
- count: z52.int(),
3178
- page: z52.int(),
3179
- pages: z52.int(),
3180
- page_size: z52.int(),
3177
+ count: z52.number().int(),
3178
+ page: z52.number().int(),
3179
+ pages: z52.number().int(),
3180
+ page_size: z52.number().int(),
3181
3181
  has_next: z52.boolean(),
3182
3182
  has_previous: z52.boolean(),
3183
- next_page: z52.int().nullable().optional(),
3184
- previous_page: z52.int().nullable().optional(),
3183
+ next_page: z52.number().int().nullable().optional(),
3184
+ previous_page: z52.number().int().nullable().optional(),
3185
3185
  results: z52.array(PublishSchema)
3186
3186
  });
3187
3187
 
@@ -3191,7 +3191,7 @@ var PublishTestRequestRequestSchema = z53.object({
3191
3191
  channel: z53.string(),
3192
3192
  data: z53.record(z53.string(), z53.any()),
3193
3193
  wait_for_ack: z53.boolean().optional(),
3194
- ack_timeout: z53.int().min(1).max(60).optional()
3194
+ ack_timeout: z53.number().int().min(1).max(60).optional()
3195
3195
  });
3196
3196
 
3197
3197
  // src/generated/cfg_centrifugo/_utils/schemas/PublishTestResponse.schema.ts
@@ -3200,7 +3200,7 @@ var PublishTestResponseSchema = z54.object({
3200
3200
  success: z54.boolean(),
3201
3201
  message_id: z54.string(),
3202
3202
  channel: z54.string(),
3203
- acks_received: z54.int().optional(),
3203
+ acks_received: z54.number().int().optional(),
3204
3204
  delivered: z54.boolean().optional(),
3205
3205
  error: z54.string().nullable().optional()
3206
3206
  });
@@ -3209,17 +3209,17 @@ var PublishTestResponseSchema = z54.object({
3209
3209
  import { z as z55 } from "zod";
3210
3210
  var TimelineItemSchema = z55.object({
3211
3211
  timestamp: z55.string(),
3212
- count: z55.int(),
3213
- successful: z55.int(),
3214
- failed: z55.int(),
3215
- timeout: z55.int()
3212
+ count: z55.number().int(),
3213
+ successful: z55.number().int(),
3214
+ failed: z55.number().int(),
3215
+ timeout: z55.number().int()
3216
3216
  });
3217
3217
 
3218
3218
  // src/generated/cfg_centrifugo/_utils/schemas/TimelineResponse.schema.ts
3219
3219
  import { z as z56 } from "zod";
3220
3220
  var TimelineResponseSchema = z56.object({
3221
3221
  timeline: z56.array(TimelineItemSchema),
3222
- period_hours: z56.int(),
3222
+ period_hours: z56.number().int(),
3223
3223
  interval: z56.string()
3224
3224
  });
3225
3225