@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/auth.d.cts CHANGED
@@ -26,7 +26,7 @@ declare enum OTPRequestRequestChannel {
26
26
  declare const OTPRequestRequestSchema: z.ZodObject<{
27
27
  identifier: z.ZodString;
28
28
  channel: z.ZodOptional<z.ZodEnum<typeof OTPRequestRequestChannel>>;
29
- source_url: z.ZodOptional<z.ZodUnion<readonly [z.ZodURL, z.ZodLiteral<"">]>>;
29
+ source_url: z.ZodOptional<z.ZodString>;
30
30
  }, z.core.$strip>;
31
31
  /**
32
32
  * Infer TypeScript type from Zod schema
@@ -65,7 +65,7 @@ declare const OTPVerifyRequestSchema: z.ZodObject<{
65
65
  identifier: z.ZodString;
66
66
  otp: z.ZodString;
67
67
  channel: z.ZodOptional<z.ZodEnum<typeof OTPRequestRequestChannel>>;
68
- source_url: z.ZodOptional<z.ZodUnion<readonly [z.ZodURL, z.ZodLiteral<"">]>>;
68
+ source_url: z.ZodOptional<z.ZodString>;
69
69
  }, z.core.$strip>;
70
70
  /**
71
71
  * Infer TypeScript type from Zod schema
@@ -108,7 +108,7 @@ declare const OTPVerifyResponseSchema: z.ZodObject<{
108
108
  refresh: z.ZodOptional<z.ZodNullable<z.ZodString>>;
109
109
  access: z.ZodOptional<z.ZodNullable<z.ZodString>>;
110
110
  user: z.ZodOptional<z.ZodNullable<z.ZodObject<{
111
- id: z.ZodInt;
111
+ id: z.ZodNumber;
112
112
  email: z.ZodEmail;
113
113
  first_name: z.ZodOptional<z.ZodString>;
114
114
  last_name: z.ZodOptional<z.ZodString>;
@@ -119,15 +119,15 @@ declare const OTPVerifyResponseSchema: z.ZodObject<{
119
119
  phone: z.ZodOptional<z.ZodString>;
120
120
  position: z.ZodOptional<z.ZodString>;
121
121
  language: z.ZodOptional<z.ZodString>;
122
- avatar: z.ZodNullable<z.ZodUnion<readonly [z.ZodURL, z.ZodLiteral<"">]>>;
122
+ avatar: z.ZodNullable<z.ZodString>;
123
123
  is_staff: z.ZodBoolean;
124
124
  is_superuser: z.ZodBoolean;
125
125
  date_joined: z.ZodString;
126
126
  last_login: z.ZodNullable<z.ZodString>;
127
- unanswered_messages_count: z.ZodInt;
127
+ unanswered_messages_count: z.ZodNumber;
128
128
  centrifugo: z.ZodNullable<z.ZodObject<{
129
129
  token: z.ZodString;
130
- centrifugo_url: z.ZodUnion<readonly [z.ZodURL, z.ZodLiteral<"">]>;
130
+ centrifugo_url: z.ZodString;
131
131
  expires_at: z.ZodString;
132
132
  channels: z.ZodArray<z.ZodString>;
133
133
  }, z.core.$strip>>;
@@ -188,7 +188,7 @@ type TokenRefresh = z.infer<typeof TokenRefreshSchema>;
188
188
  * Serializer for user details.
189
189
  */
190
190
  declare const UserSchema: z.ZodObject<{
191
- id: z.ZodInt;
191
+ id: z.ZodNumber;
192
192
  email: z.ZodEmail;
193
193
  first_name: z.ZodOptional<z.ZodString>;
194
194
  last_name: z.ZodOptional<z.ZodString>;
@@ -199,15 +199,15 @@ declare const UserSchema: z.ZodObject<{
199
199
  phone: z.ZodOptional<z.ZodString>;
200
200
  position: z.ZodOptional<z.ZodString>;
201
201
  language: z.ZodOptional<z.ZodString>;
202
- avatar: z.ZodNullable<z.ZodUnion<readonly [z.ZodURL, z.ZodLiteral<"">]>>;
202
+ avatar: z.ZodNullable<z.ZodString>;
203
203
  is_staff: z.ZodBoolean;
204
204
  is_superuser: z.ZodBoolean;
205
205
  date_joined: z.ZodString;
206
206
  last_login: z.ZodNullable<z.ZodString>;
207
- unanswered_messages_count: z.ZodInt;
207
+ unanswered_messages_count: z.ZodNumber;
208
208
  centrifugo: z.ZodNullable<z.ZodObject<{
209
209
  token: z.ZodString;
210
- centrifugo_url: z.ZodUnion<readonly [z.ZodURL, z.ZodLiteral<"">]>;
210
+ centrifugo_url: z.ZodString;
211
211
  expires_at: z.ZodString;
212
212
  channels: z.ZodArray<z.ZodString>;
213
213
  }, z.core.$strip>>;
package/dist/auth.d.ts CHANGED
@@ -26,7 +26,7 @@ declare enum OTPRequestRequestChannel {
26
26
  declare const OTPRequestRequestSchema: z.ZodObject<{
27
27
  identifier: z.ZodString;
28
28
  channel: z.ZodOptional<z.ZodEnum<typeof OTPRequestRequestChannel>>;
29
- source_url: z.ZodOptional<z.ZodUnion<readonly [z.ZodURL, z.ZodLiteral<"">]>>;
29
+ source_url: z.ZodOptional<z.ZodString>;
30
30
  }, z.core.$strip>;
31
31
  /**
32
32
  * Infer TypeScript type from Zod schema
@@ -65,7 +65,7 @@ declare const OTPVerifyRequestSchema: z.ZodObject<{
65
65
  identifier: z.ZodString;
66
66
  otp: z.ZodString;
67
67
  channel: z.ZodOptional<z.ZodEnum<typeof OTPRequestRequestChannel>>;
68
- source_url: z.ZodOptional<z.ZodUnion<readonly [z.ZodURL, z.ZodLiteral<"">]>>;
68
+ source_url: z.ZodOptional<z.ZodString>;
69
69
  }, z.core.$strip>;
70
70
  /**
71
71
  * Infer TypeScript type from Zod schema
@@ -108,7 +108,7 @@ declare const OTPVerifyResponseSchema: z.ZodObject<{
108
108
  refresh: z.ZodOptional<z.ZodNullable<z.ZodString>>;
109
109
  access: z.ZodOptional<z.ZodNullable<z.ZodString>>;
110
110
  user: z.ZodOptional<z.ZodNullable<z.ZodObject<{
111
- id: z.ZodInt;
111
+ id: z.ZodNumber;
112
112
  email: z.ZodEmail;
113
113
  first_name: z.ZodOptional<z.ZodString>;
114
114
  last_name: z.ZodOptional<z.ZodString>;
@@ -119,15 +119,15 @@ declare const OTPVerifyResponseSchema: z.ZodObject<{
119
119
  phone: z.ZodOptional<z.ZodString>;
120
120
  position: z.ZodOptional<z.ZodString>;
121
121
  language: z.ZodOptional<z.ZodString>;
122
- avatar: z.ZodNullable<z.ZodUnion<readonly [z.ZodURL, z.ZodLiteral<"">]>>;
122
+ avatar: z.ZodNullable<z.ZodString>;
123
123
  is_staff: z.ZodBoolean;
124
124
  is_superuser: z.ZodBoolean;
125
125
  date_joined: z.ZodString;
126
126
  last_login: z.ZodNullable<z.ZodString>;
127
- unanswered_messages_count: z.ZodInt;
127
+ unanswered_messages_count: z.ZodNumber;
128
128
  centrifugo: z.ZodNullable<z.ZodObject<{
129
129
  token: z.ZodString;
130
- centrifugo_url: z.ZodUnion<readonly [z.ZodURL, z.ZodLiteral<"">]>;
130
+ centrifugo_url: z.ZodString;
131
131
  expires_at: z.ZodString;
132
132
  channels: z.ZodArray<z.ZodString>;
133
133
  }, z.core.$strip>>;
@@ -188,7 +188,7 @@ type TokenRefresh = z.infer<typeof TokenRefreshSchema>;
188
188
  * Serializer for user details.
189
189
  */
190
190
  declare const UserSchema: z.ZodObject<{
191
- id: z.ZodInt;
191
+ id: z.ZodNumber;
192
192
  email: z.ZodEmail;
193
193
  first_name: z.ZodOptional<z.ZodString>;
194
194
  last_name: z.ZodOptional<z.ZodString>;
@@ -199,15 +199,15 @@ declare const UserSchema: z.ZodObject<{
199
199
  phone: z.ZodOptional<z.ZodString>;
200
200
  position: z.ZodOptional<z.ZodString>;
201
201
  language: z.ZodOptional<z.ZodString>;
202
- avatar: z.ZodNullable<z.ZodUnion<readonly [z.ZodURL, z.ZodLiteral<"">]>>;
202
+ avatar: z.ZodNullable<z.ZodString>;
203
203
  is_staff: z.ZodBoolean;
204
204
  is_superuser: z.ZodBoolean;
205
205
  date_joined: z.ZodString;
206
206
  last_login: z.ZodNullable<z.ZodString>;
207
- unanswered_messages_count: z.ZodInt;
207
+ unanswered_messages_count: z.ZodNumber;
208
208
  centrifugo: z.ZodNullable<z.ZodObject<{
209
209
  token: z.ZodString;
210
- centrifugo_url: z.ZodUnion<readonly [z.ZodURL, z.ZodLiteral<"">]>;
210
+ centrifugo_url: z.ZodString;
211
211
  expires_at: z.ZodString;
212
212
  channels: z.ZodArray<z.ZodString>;
213
213
  }, z.core.$strip>>;
package/dist/auth.mjs CHANGED
@@ -1092,7 +1092,7 @@ var AccountDeleteResponseSchema = z.object({
1092
1092
  import { z as z2 } from "zod";
1093
1093
  var CentrifugoTokenSchema = z2.object({
1094
1094
  token: z2.string(),
1095
- centrifugo_url: z2.union([z2.url(), z2.literal("")]),
1095
+ centrifugo_url: z2.string().refine((v) => v === "" || v.startsWith("/") || v.startsWith("http://") || v.startsWith("https://"), { message: "Must be a URL or relative path" }),
1096
1096
  expires_at: z2.string().datetime({ offset: true }),
1097
1097
  channels: z2.array(z2.string())
1098
1098
  });
@@ -1106,14 +1106,14 @@ var CfgAccountsProfileAvatarCreateRequestSchema = z3.object({
1106
1106
  // src/generated/cfg_accounts/_utils/schemas/OAuthAuthorizeRequestRequest.schema.ts
1107
1107
  import { z as z4 } from "zod";
1108
1108
  var OAuthAuthorizeRequestRequestSchema = z4.object({
1109
- redirect_uri: z4.union([z4.url(), z4.literal("")]).optional(),
1110
- source_url: z4.union([z4.url(), z4.literal("")]).optional()
1109
+ redirect_uri: z4.string().refine((v) => v === "" || v.startsWith("/") || v.startsWith("http://") || v.startsWith("https://"), { message: "Must be a URL or relative path" }).optional(),
1110
+ source_url: z4.string().refine((v) => v === "" || v.startsWith("/") || v.startsWith("http://") || v.startsWith("https://"), { message: "Must be a URL or relative path" }).optional()
1111
1111
  });
1112
1112
 
1113
1113
  // src/generated/cfg_accounts/_utils/schemas/OAuthAuthorizeResponse.schema.ts
1114
1114
  import { z as z5 } from "zod";
1115
1115
  var OAuthAuthorizeResponseSchema = z5.object({
1116
- authorization_url: z5.union([z5.url(), z5.literal("")]),
1116
+ authorization_url: z5.string().refine((v) => v === "" || v.startsWith("/") || v.startsWith("http://") || v.startsWith("https://"), { message: "Must be a URL or relative path" }),
1117
1117
  state: z5.string()
1118
1118
  });
1119
1119
 
@@ -1122,18 +1122,18 @@ import { z as z6 } from "zod";
1122
1122
  var OAuthCallbackRequestRequestSchema = z6.object({
1123
1123
  code: z6.string().min(10).max(500),
1124
1124
  state: z6.string().min(20).max(100),
1125
- redirect_uri: z6.union([z6.url(), z6.literal("")]).optional()
1125
+ redirect_uri: z6.string().refine((v) => v === "" || v.startsWith("/") || v.startsWith("http://") || v.startsWith("https://"), { message: "Must be a URL or relative path" }).optional()
1126
1126
  });
1127
1127
 
1128
1128
  // src/generated/cfg_accounts/_utils/schemas/OAuthConnection.schema.ts
1129
1129
  import { z as z7 } from "zod";
1130
1130
  var OAuthConnectionSchema = z7.object({
1131
- id: z7.int(),
1131
+ id: z7.number().int(),
1132
1132
  provider: z7.nativeEnum(OAuthConnectionProvider),
1133
1133
  provider_display: z7.string(),
1134
1134
  provider_username: z7.string(),
1135
1135
  provider_email: z7.email(),
1136
- provider_avatar_url: z7.union([z7.url(), z7.literal("")]),
1136
+ provider_avatar_url: z7.string().refine((v) => v === "" || v.startsWith("/") || v.startsWith("http://") || v.startsWith("https://"), { message: "Must be a URL or relative path" }),
1137
1137
  connected_at: z7.string().datetime({ offset: true }),
1138
1138
  last_login_at: z7.string().datetime({ offset: true })
1139
1139
  });
@@ -1181,7 +1181,7 @@ import { z as z13 } from "zod";
1181
1181
  var OTPRequestRequestSchema = z13.object({
1182
1182
  identifier: z13.string().min(1),
1183
1183
  channel: z13.nativeEnum(OTPRequestRequestChannel).optional(),
1184
- source_url: z13.union([z13.url(), z13.literal("")]).optional()
1184
+ source_url: z13.string().refine((v) => v === "" || v.startsWith("/") || v.startsWith("http://") || v.startsWith("https://"), { message: "Must be a URL or relative path" }).optional()
1185
1185
  });
1186
1186
 
1187
1187
  // src/generated/cfg_accounts/_utils/schemas/OTPRequestResponse.schema.ts
@@ -1196,7 +1196,7 @@ var OTPVerifyRequestSchema = z15.object({
1196
1196
  identifier: z15.string().min(1),
1197
1197
  otp: z15.string().min(6).max(6),
1198
1198
  channel: z15.nativeEnum(OTPRequestRequestChannel).optional(),
1199
- source_url: z15.union([z15.url(), z15.literal("")]).optional()
1199
+ source_url: z15.string().refine((v) => v === "" || v.startsWith("/") || v.startsWith("http://") || v.startsWith("https://"), { message: "Must be a URL or relative path" }).optional()
1200
1200
  });
1201
1201
 
1202
1202
  // src/generated/cfg_accounts/_utils/schemas/OTPVerifyResponse.schema.ts
@@ -1205,7 +1205,7 @@ import { z as z17 } from "zod";
1205
1205
  // src/generated/cfg_accounts/_utils/schemas/User.schema.ts
1206
1206
  import { z as z16 } from "zod";
1207
1207
  var UserSchema = z16.object({
1208
- id: z16.int(),
1208
+ id: z16.number().int(),
1209
1209
  email: z16.email(),
1210
1210
  first_name: z16.string().max(50).optional(),
1211
1211
  last_name: z16.string().max(50).optional(),
@@ -1216,12 +1216,12 @@ var UserSchema = z16.object({
1216
1216
  phone: z16.string().max(20).optional(),
1217
1217
  position: z16.string().max(100).optional(),
1218
1218
  language: z16.string().max(10).optional(),
1219
- avatar: z16.union([z16.url(), z16.literal("")]).nullable(),
1219
+ avatar: z16.string().refine((v) => v === "" || v.startsWith("/") || v.startsWith("http://") || v.startsWith("https://"), { message: "Must be a URL or relative path" }).nullable(),
1220
1220
  is_staff: z16.boolean(),
1221
1221
  is_superuser: z16.boolean(),
1222
1222
  date_joined: z16.string().datetime({ offset: true }),
1223
1223
  last_login: z16.string().datetime({ offset: true }).nullable(),
1224
- unanswered_messages_count: z16.int(),
1224
+ unanswered_messages_count: z16.number().int(),
1225
1225
  centrifugo: CentrifugoTokenSchema.nullable()
1226
1226
  });
1227
1227
 
@@ -2605,7 +2605,7 @@ var LocalStorageAdapter2 = class {
2605
2605
  // src/generated/cfg_centrifugo/_utils/schemas/CentrifugoChannelInfo.schema.ts
2606
2606
  import { z as z22 } from "zod";
2607
2607
  var CentrifugoChannelInfoSchema = z22.object({
2608
- num_clients: z22.int()
2608
+ num_clients: z22.number().int()
2609
2609
  });
2610
2610
 
2611
2611
  // src/generated/cfg_centrifugo/_utils/schemas/CentrifugoChannelsRequestRequest.schema.ts
@@ -2626,7 +2626,7 @@ var CentrifugoChannelsResultSchema = z24.object({
2626
2626
  // src/generated/cfg_centrifugo/_utils/schemas/CentrifugoError.schema.ts
2627
2627
  import { z as z25 } from "zod";
2628
2628
  var CentrifugoErrorSchema = z25.object({
2629
- code: z25.int().optional(),
2629
+ code: z25.number().int().optional(),
2630
2630
  message: z25.string().optional()
2631
2631
  });
2632
2632
 
@@ -2660,14 +2660,14 @@ import { z as z30 } from "zod";
2660
2660
  // src/generated/cfg_centrifugo/_utils/schemas/CentrifugoStreamPosition.schema.ts
2661
2661
  import { z as z29 } from "zod";
2662
2662
  var CentrifugoStreamPositionSchema = z29.object({
2663
- offset: z29.int(),
2663
+ offset: z29.number().int(),
2664
2664
  epoch: z29.string()
2665
2665
  });
2666
2666
 
2667
2667
  // src/generated/cfg_centrifugo/_utils/schemas/CentrifugoHistoryRequestRequest.schema.ts
2668
2668
  var CentrifugoHistoryRequestRequestSchema = z30.object({
2669
2669
  channel: z30.string(),
2670
- limit: z30.int().nullable().optional(),
2670
+ limit: z30.number().int().nullable().optional(),
2671
2671
  since: CentrifugoStreamPositionSchema.nullable().optional(),
2672
2672
  reverse: z30.boolean().nullable().optional()
2673
2673
  });
@@ -2683,7 +2683,7 @@ import { z as z31 } from "zod";
2683
2683
  var CentrifugoPublicationSchema = z31.object({
2684
2684
  data: z31.record(z31.string(), z31.any()),
2685
2685
  info: CentrifugoClientInfoSchema.nullable().optional(),
2686
- offset: z31.int(),
2686
+ offset: z31.number().int(),
2687
2687
  tags: z31.record(z31.string(), z31.any()).nullable().optional()
2688
2688
  });
2689
2689
 
@@ -2691,7 +2691,7 @@ var CentrifugoPublicationSchema = z31.object({
2691
2691
  var CentrifugoHistoryResultSchema = z32.object({
2692
2692
  publications: z32.array(CentrifugoPublicationSchema),
2693
2693
  epoch: z32.string(),
2694
- offset: z32.int()
2694
+ offset: z32.number().int()
2695
2695
  });
2696
2696
 
2697
2697
  // src/generated/cfg_centrifugo/_utils/schemas/CentrifugoHistoryResponse.schema.ts
@@ -2720,7 +2720,7 @@ var CentrifugoMetricsSchema = z34.object({
2720
2720
  import { z as z35 } from "zod";
2721
2721
  var CentrifugoProcessSchema = z35.object({
2722
2722
  cpu: z35.number(),
2723
- rss: z35.int()
2723
+ rss: z35.number().int()
2724
2724
  });
2725
2725
 
2726
2726
  // src/generated/cfg_centrifugo/_utils/schemas/CentrifugoNodeInfo.schema.ts
@@ -2728,11 +2728,11 @@ var CentrifugoNodeInfoSchema = z36.object({
2728
2728
  uid: z36.string(),
2729
2729
  name: z36.string(),
2730
2730
  version: z36.string(),
2731
- num_clients: z36.int(),
2732
- num_users: z36.int(),
2733
- num_channels: z36.int(),
2734
- uptime: z36.int(),
2735
- num_subs: z36.int(),
2731
+ num_clients: z36.number().int(),
2732
+ num_users: z36.number().int(),
2733
+ num_channels: z36.number().int(),
2734
+ uptime: z36.number().int(),
2735
+ num_subs: z36.number().int(),
2736
2736
  metrics: CentrifugoMetricsSchema.nullable().optional(),
2737
2737
  process: CentrifugoProcessSchema.nullable().optional()
2738
2738
  });
@@ -2751,14 +2751,14 @@ var CentrifugoInfoResponseSchema = z38.object({
2751
2751
  // src/generated/cfg_centrifugo/_utils/schemas/CentrifugoOverviewStats.schema.ts
2752
2752
  import { z as z39 } from "zod";
2753
2753
  var CentrifugoOverviewStatsSchema = z39.object({
2754
- total: z39.int(),
2755
- successful: z39.int(),
2756
- failed: z39.int(),
2757
- timeout: z39.int(),
2754
+ total: z39.number().int(),
2755
+ successful: z39.number().int(),
2756
+ failed: z39.number().int(),
2757
+ timeout: z39.number().int(),
2758
2758
  success_rate: z39.number(),
2759
2759
  avg_duration_ms: z39.number(),
2760
2760
  avg_acks_received: z39.number(),
2761
- period_hours: z39.int()
2761
+ period_hours: z39.number().int()
2762
2762
  });
2763
2763
 
2764
2764
  // src/generated/cfg_centrifugo/_utils/schemas/CentrifugoPresenceRequestRequest.schema.ts
@@ -2794,8 +2794,8 @@ import { z as z45 } from "zod";
2794
2794
  // src/generated/cfg_centrifugo/_utils/schemas/CentrifugoPresenceStatsResult.schema.ts
2795
2795
  import { z as z44 } from "zod";
2796
2796
  var CentrifugoPresenceStatsResultSchema = z44.object({
2797
- num_clients: z44.int(),
2798
- num_users: z44.int()
2797
+ num_clients: z44.number().int(),
2798
+ num_users: z44.number().int()
2799
2799
  });
2800
2800
 
2801
2801
  // src/generated/cfg_centrifugo/_utils/schemas/CentrifugoPresenceStatsResponse.schema.ts
@@ -2811,9 +2811,9 @@ import { z as z47 } from "zod";
2811
2811
  import { z as z46 } from "zod";
2812
2812
  var ChannelStatsSchema = z46.object({
2813
2813
  channel: z46.string(),
2814
- total: z46.int(),
2815
- successful: z46.int(),
2816
- failed: z46.int(),
2814
+ total: z46.number().int(),
2815
+ successful: z46.number().int(),
2816
+ failed: z46.number().int(),
2817
2817
  avg_duration_ms: z46.number(),
2818
2818
  avg_acks: z46.number(),
2819
2819
  last_activity_at: z46.string().nullable()
@@ -2822,7 +2822,7 @@ var ChannelStatsSchema = z46.object({
2822
2822
  // src/generated/cfg_centrifugo/_utils/schemas/ChannelList.schema.ts
2823
2823
  var ChannelListSchema = z47.object({
2824
2824
  channels: z47.array(ChannelStatsSchema),
2825
- total_channels: z47.int()
2825
+ total_channels: z47.number().int()
2826
2826
  });
2827
2827
 
2828
2828
  // src/generated/cfg_centrifugo/_utils/schemas/ConnectionTokenResponse.schema.ts
@@ -2859,8 +2859,8 @@ var PublishSchema = z51.object({
2859
2859
  channel: z51.string(),
2860
2860
  status: z51.string(),
2861
2861
  wait_for_ack: z51.boolean(),
2862
- acks_received: z51.int(),
2863
- acks_expected: z51.int().nullable(),
2862
+ acks_received: z51.number().int(),
2863
+ acks_expected: z51.number().int().nullable(),
2864
2864
  duration_ms: z51.number().nullable(),
2865
2865
  created_at: z51.string().datetime({ offset: true }),
2866
2866
  completed_at: z51.string().datetime({ offset: true }).nullable(),
@@ -2870,14 +2870,14 @@ var PublishSchema = z51.object({
2870
2870
 
2871
2871
  // src/generated/cfg_centrifugo/_utils/schemas/PaginatedPublishList.schema.ts
2872
2872
  var PaginatedPublishListSchema = z52.object({
2873
- count: z52.int(),
2874
- page: z52.int(),
2875
- pages: z52.int(),
2876
- page_size: z52.int(),
2873
+ count: z52.number().int(),
2874
+ page: z52.number().int(),
2875
+ pages: z52.number().int(),
2876
+ page_size: z52.number().int(),
2877
2877
  has_next: z52.boolean(),
2878
2878
  has_previous: z52.boolean(),
2879
- next_page: z52.int().nullable().optional(),
2880
- previous_page: z52.int().nullable().optional(),
2879
+ next_page: z52.number().int().nullable().optional(),
2880
+ previous_page: z52.number().int().nullable().optional(),
2881
2881
  results: z52.array(PublishSchema)
2882
2882
  });
2883
2883
 
@@ -2887,7 +2887,7 @@ var PublishTestRequestRequestSchema = z53.object({
2887
2887
  channel: z53.string(),
2888
2888
  data: z53.record(z53.string(), z53.any()),
2889
2889
  wait_for_ack: z53.boolean().optional(),
2890
- ack_timeout: z53.int().min(1).max(60).optional()
2890
+ ack_timeout: z53.number().int().min(1).max(60).optional()
2891
2891
  });
2892
2892
 
2893
2893
  // src/generated/cfg_centrifugo/_utils/schemas/PublishTestResponse.schema.ts
@@ -2896,7 +2896,7 @@ var PublishTestResponseSchema = z54.object({
2896
2896
  success: z54.boolean(),
2897
2897
  message_id: z54.string(),
2898
2898
  channel: z54.string(),
2899
- acks_received: z54.int().optional(),
2899
+ acks_received: z54.number().int().optional(),
2900
2900
  delivered: z54.boolean().optional(),
2901
2901
  error: z54.string().nullable().optional()
2902
2902
  });
@@ -2905,17 +2905,17 @@ var PublishTestResponseSchema = z54.object({
2905
2905
  import { z as z55 } from "zod";
2906
2906
  var TimelineItemSchema = z55.object({
2907
2907
  timestamp: z55.string(),
2908
- count: z55.int(),
2909
- successful: z55.int(),
2910
- failed: z55.int(),
2911
- timeout: z55.int()
2908
+ count: z55.number().int(),
2909
+ successful: z55.number().int(),
2910
+ failed: z55.number().int(),
2911
+ timeout: z55.number().int()
2912
2912
  });
2913
2913
 
2914
2914
  // src/generated/cfg_centrifugo/_utils/schemas/TimelineResponse.schema.ts
2915
2915
  import { z as z56 } from "zod";
2916
2916
  var TimelineResponseSchema = z56.object({
2917
2917
  timeline: z56.array(TimelineItemSchema),
2918
- period_hours: z56.int(),
2918
+ period_hours: z56.number().int(),
2919
2919
  interval: z56.string()
2920
2920
  });
2921
2921
 
@@ -3864,8 +3864,8 @@ var BackupCodesRegenerateResponseSchema = z58.object({
3864
3864
  // src/generated/cfg_totp/_utils/schemas/BackupCodesStatus.schema.ts
3865
3865
  import { z as z59 } from "zod";
3866
3866
  var BackupCodesStatusSchema = z59.object({
3867
- remaining_count: z59.int(),
3868
- total_generated: z59.int(),
3867
+ remaining_count: z59.number().int(),
3868
+ total_generated: z59.number().int(),
3869
3869
  warning: z59.string().nullable().optional()
3870
3870
  });
3871
3871
 
@@ -3912,14 +3912,14 @@ var DisableRequestSchema = z64.object({
3912
3912
  // src/generated/cfg_totp/_utils/schemas/PaginatedDeviceListResponseList.schema.ts
3913
3913
  import { z as z65 } from "zod";
3914
3914
  var PaginatedDeviceListResponseListSchema = z65.object({
3915
- count: z65.int(),
3916
- page: z65.int(),
3917
- pages: z65.int(),
3918
- page_size: z65.int(),
3915
+ count: z65.number().int(),
3916
+ page: z65.number().int(),
3917
+ pages: z65.number().int(),
3918
+ page_size: z65.number().int(),
3919
3919
  has_next: z65.boolean(),
3920
3920
  has_previous: z65.boolean(),
3921
- next_page: z65.int().nullable().optional(),
3922
- previous_page: z65.int().nullable().optional(),
3921
+ next_page: z65.number().int().nullable().optional(),
3922
+ previous_page: z65.number().int().nullable().optional(),
3923
3923
  results: z65.array(DeviceListResponseSchema)
3924
3924
  });
3925
3925
 
@@ -3936,13 +3936,13 @@ var SetupResponseSchema = z67.object({
3936
3936
  secret: z67.string(),
3937
3937
  provisioning_uri: z67.string(),
3938
3938
  qr_code_base64: z67.string(),
3939
- expires_in: z67.int()
3939
+ expires_in: z67.number().int()
3940
3940
  });
3941
3941
 
3942
3942
  // src/generated/cfg_totp/_utils/schemas/TotpVerifyUser.schema.ts
3943
3943
  import { z as z68 } from "zod";
3944
3944
  var TotpVerifyUserSchema = z68.object({
3945
- id: z68.int(),
3945
+ id: z68.number().int(),
3946
3946
  email: z68.email(),
3947
3947
  first_name: z68.string().max(50).optional(),
3948
3948
  last_name: z68.string().max(50).optional(),
@@ -3953,12 +3953,12 @@ var TotpVerifyUserSchema = z68.object({
3953
3953
  phone: z68.string().max(20).optional(),
3954
3954
  position: z68.string().max(100).optional(),
3955
3955
  language: z68.string().max(10).optional(),
3956
- avatar: z68.union([z68.url(), z68.literal("")]).nullable(),
3956
+ avatar: z68.string().refine((v) => v === "" || v.startsWith("/") || v.startsWith("http://") || v.startsWith("https://"), { message: "Must be a URL or relative path" }).nullable(),
3957
3957
  is_staff: z68.boolean(),
3958
3958
  is_superuser: z68.boolean(),
3959
3959
  date_joined: z68.string().datetime({ offset: true }),
3960
3960
  last_login: z68.string().datetime({ offset: true }).nullable(),
3961
- unanswered_messages_count: z68.int()
3961
+ unanswered_messages_count: z68.number().int()
3962
3962
  });
3963
3963
 
3964
3964
  // src/generated/cfg_totp/_utils/schemas/VerifyBackupRequest.schema.ts
@@ -3982,7 +3982,7 @@ var VerifyResponseSchema = z71.object({
3982
3982
  access_token: z71.string(),
3983
3983
  refresh_token: z71.string(),
3984
3984
  user: TotpVerifyUserSchema,
3985
- remaining_backup_codes: z71.int().optional(),
3985
+ remaining_backup_codes: z71.number().int().optional(),
3986
3986
  warning: z71.string().optional()
3987
3987
  });
3988
3988