@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/hooks.d.cts CHANGED
@@ -590,8 +590,8 @@ type CfgAccountsProfileAvatarCreateRequest = z.infer<typeof CfgAccountsProfileAv
590
590
  * Request to start OAuth flow.
591
591
  */
592
592
  declare const OAuthAuthorizeRequestRequestSchema: z.ZodObject<{
593
- redirect_uri: z.ZodOptional<z.ZodUnion<readonly [z.ZodURL, z.ZodLiteral<"">]>>;
594
- source_url: z.ZodOptional<z.ZodUnion<readonly [z.ZodURL, z.ZodLiteral<"">]>>;
593
+ redirect_uri: z.ZodOptional<z.ZodString>;
594
+ source_url: z.ZodOptional<z.ZodString>;
595
595
  }, z.core.$strip>;
596
596
  /**
597
597
  * Infer TypeScript type from Zod schema
@@ -609,7 +609,7 @@ type OAuthAuthorizeRequestRequest = z.infer<typeof OAuthAuthorizeRequestRequestS
609
609
  * Response with OAuth authorization URL.
610
610
  */
611
611
  declare const OAuthAuthorizeResponseSchema: z.ZodObject<{
612
- authorization_url: z.ZodUnion<readonly [z.ZodURL, z.ZodLiteral<"">]>;
612
+ authorization_url: z.ZodString;
613
613
  state: z.ZodString;
614
614
  }, z.core.$strip>;
615
615
  /**
@@ -630,7 +630,7 @@ type OAuthAuthorizeResponse = z.infer<typeof OAuthAuthorizeResponseSchema>;
630
630
  declare const OAuthCallbackRequestRequestSchema: z.ZodObject<{
631
631
  code: z.ZodString;
632
632
  state: z.ZodString;
633
- redirect_uri: z.ZodOptional<z.ZodUnion<readonly [z.ZodURL, z.ZodLiteral<"">]>>;
633
+ redirect_uri: z.ZodOptional<z.ZodString>;
634
634
  }, z.core.$strip>;
635
635
  /**
636
636
  * Infer TypeScript type from Zod schema
@@ -713,7 +713,7 @@ type OAuthTokenResponse = z.infer<typeof OAuthTokenResponseSchema>;
713
713
  declare const OTPRequestRequestSchema: z.ZodObject<{
714
714
  identifier: z.ZodString;
715
715
  channel: z.ZodOptional<z.ZodEnum<typeof OTPRequestRequestChannel>>;
716
- source_url: z.ZodOptional<z.ZodUnion<readonly [z.ZodURL, z.ZodLiteral<"">]>>;
716
+ source_url: z.ZodOptional<z.ZodString>;
717
717
  }, z.core.$strip>;
718
718
  /**
719
719
  * Infer TypeScript type from Zod schema
@@ -752,7 +752,7 @@ declare const OTPVerifyRequestSchema: z.ZodObject<{
752
752
  identifier: z.ZodString;
753
753
  otp: z.ZodString;
754
754
  channel: z.ZodOptional<z.ZodEnum<typeof OTPRequestRequestChannel>>;
755
- source_url: z.ZodOptional<z.ZodUnion<readonly [z.ZodURL, z.ZodLiteral<"">]>>;
755
+ source_url: z.ZodOptional<z.ZodString>;
756
756
  }, z.core.$strip>;
757
757
  /**
758
758
  * Infer TypeScript type from Zod schema
@@ -795,7 +795,7 @@ declare const OTPVerifyResponseSchema: z.ZodObject<{
795
795
  refresh: z.ZodOptional<z.ZodNullable<z.ZodString>>;
796
796
  access: z.ZodOptional<z.ZodNullable<z.ZodString>>;
797
797
  user: z.ZodOptional<z.ZodNullable<z.ZodObject<{
798
- id: z.ZodInt;
798
+ id: z.ZodNumber;
799
799
  email: z.ZodEmail;
800
800
  first_name: z.ZodOptional<z.ZodString>;
801
801
  last_name: z.ZodOptional<z.ZodString>;
@@ -806,15 +806,15 @@ declare const OTPVerifyResponseSchema: z.ZodObject<{
806
806
  phone: z.ZodOptional<z.ZodString>;
807
807
  position: z.ZodOptional<z.ZodString>;
808
808
  language: z.ZodOptional<z.ZodString>;
809
- avatar: z.ZodNullable<z.ZodUnion<readonly [z.ZodURL, z.ZodLiteral<"">]>>;
809
+ avatar: z.ZodNullable<z.ZodString>;
810
810
  is_staff: z.ZodBoolean;
811
811
  is_superuser: z.ZodBoolean;
812
812
  date_joined: z.ZodString;
813
813
  last_login: z.ZodNullable<z.ZodString>;
814
- unanswered_messages_count: z.ZodInt;
814
+ unanswered_messages_count: z.ZodNumber;
815
815
  centrifugo: z.ZodNullable<z.ZodObject<{
816
816
  token: z.ZodString;
817
- centrifugo_url: z.ZodUnion<readonly [z.ZodURL, z.ZodLiteral<"">]>;
817
+ centrifugo_url: z.ZodString;
818
818
  expires_at: z.ZodString;
819
819
  channels: z.ZodArray<z.ZodString>;
820
820
  }, z.core.$strip>>;
@@ -889,7 +889,7 @@ type TokenRefreshRequest = z.infer<typeof TokenRefreshRequestSchema>;
889
889
  * Serializer for user details.
890
890
  */
891
891
  declare const UserSchema: z.ZodObject<{
892
- id: z.ZodInt;
892
+ id: z.ZodNumber;
893
893
  email: z.ZodEmail;
894
894
  first_name: z.ZodOptional<z.ZodString>;
895
895
  last_name: z.ZodOptional<z.ZodString>;
@@ -900,15 +900,15 @@ declare const UserSchema: z.ZodObject<{
900
900
  phone: z.ZodOptional<z.ZodString>;
901
901
  position: z.ZodOptional<z.ZodString>;
902
902
  language: z.ZodOptional<z.ZodString>;
903
- avatar: z.ZodNullable<z.ZodUnion<readonly [z.ZodURL, z.ZodLiteral<"">]>>;
903
+ avatar: z.ZodNullable<z.ZodString>;
904
904
  is_staff: z.ZodBoolean;
905
905
  is_superuser: z.ZodBoolean;
906
906
  date_joined: z.ZodString;
907
907
  last_login: z.ZodNullable<z.ZodString>;
908
- unanswered_messages_count: z.ZodInt;
908
+ unanswered_messages_count: z.ZodNumber;
909
909
  centrifugo: z.ZodNullable<z.ZodObject<{
910
910
  token: z.ZodString;
911
- centrifugo_url: z.ZodUnion<readonly [z.ZodURL, z.ZodLiteral<"">]>;
911
+ centrifugo_url: z.ZodString;
912
912
  expires_at: z.ZodString;
913
913
  channels: z.ZodArray<z.ZodString>;
914
914
  }, z.core.$strip>>;
package/dist/hooks.d.ts CHANGED
@@ -590,8 +590,8 @@ type CfgAccountsProfileAvatarCreateRequest = z.infer<typeof CfgAccountsProfileAv
590
590
  * Request to start OAuth flow.
591
591
  */
592
592
  declare const OAuthAuthorizeRequestRequestSchema: z.ZodObject<{
593
- redirect_uri: z.ZodOptional<z.ZodUnion<readonly [z.ZodURL, z.ZodLiteral<"">]>>;
594
- source_url: z.ZodOptional<z.ZodUnion<readonly [z.ZodURL, z.ZodLiteral<"">]>>;
593
+ redirect_uri: z.ZodOptional<z.ZodString>;
594
+ source_url: z.ZodOptional<z.ZodString>;
595
595
  }, z.core.$strip>;
596
596
  /**
597
597
  * Infer TypeScript type from Zod schema
@@ -609,7 +609,7 @@ type OAuthAuthorizeRequestRequest = z.infer<typeof OAuthAuthorizeRequestRequestS
609
609
  * Response with OAuth authorization URL.
610
610
  */
611
611
  declare const OAuthAuthorizeResponseSchema: z.ZodObject<{
612
- authorization_url: z.ZodUnion<readonly [z.ZodURL, z.ZodLiteral<"">]>;
612
+ authorization_url: z.ZodString;
613
613
  state: z.ZodString;
614
614
  }, z.core.$strip>;
615
615
  /**
@@ -630,7 +630,7 @@ type OAuthAuthorizeResponse = z.infer<typeof OAuthAuthorizeResponseSchema>;
630
630
  declare const OAuthCallbackRequestRequestSchema: z.ZodObject<{
631
631
  code: z.ZodString;
632
632
  state: z.ZodString;
633
- redirect_uri: z.ZodOptional<z.ZodUnion<readonly [z.ZodURL, z.ZodLiteral<"">]>>;
633
+ redirect_uri: z.ZodOptional<z.ZodString>;
634
634
  }, z.core.$strip>;
635
635
  /**
636
636
  * Infer TypeScript type from Zod schema
@@ -713,7 +713,7 @@ type OAuthTokenResponse = z.infer<typeof OAuthTokenResponseSchema>;
713
713
  declare const OTPRequestRequestSchema: z.ZodObject<{
714
714
  identifier: z.ZodString;
715
715
  channel: z.ZodOptional<z.ZodEnum<typeof OTPRequestRequestChannel>>;
716
- source_url: z.ZodOptional<z.ZodUnion<readonly [z.ZodURL, z.ZodLiteral<"">]>>;
716
+ source_url: z.ZodOptional<z.ZodString>;
717
717
  }, z.core.$strip>;
718
718
  /**
719
719
  * Infer TypeScript type from Zod schema
@@ -752,7 +752,7 @@ declare const OTPVerifyRequestSchema: z.ZodObject<{
752
752
  identifier: z.ZodString;
753
753
  otp: z.ZodString;
754
754
  channel: z.ZodOptional<z.ZodEnum<typeof OTPRequestRequestChannel>>;
755
- source_url: z.ZodOptional<z.ZodUnion<readonly [z.ZodURL, z.ZodLiteral<"">]>>;
755
+ source_url: z.ZodOptional<z.ZodString>;
756
756
  }, z.core.$strip>;
757
757
  /**
758
758
  * Infer TypeScript type from Zod schema
@@ -795,7 +795,7 @@ declare const OTPVerifyResponseSchema: z.ZodObject<{
795
795
  refresh: z.ZodOptional<z.ZodNullable<z.ZodString>>;
796
796
  access: z.ZodOptional<z.ZodNullable<z.ZodString>>;
797
797
  user: z.ZodOptional<z.ZodNullable<z.ZodObject<{
798
- id: z.ZodInt;
798
+ id: z.ZodNumber;
799
799
  email: z.ZodEmail;
800
800
  first_name: z.ZodOptional<z.ZodString>;
801
801
  last_name: z.ZodOptional<z.ZodString>;
@@ -806,15 +806,15 @@ declare const OTPVerifyResponseSchema: z.ZodObject<{
806
806
  phone: z.ZodOptional<z.ZodString>;
807
807
  position: z.ZodOptional<z.ZodString>;
808
808
  language: z.ZodOptional<z.ZodString>;
809
- avatar: z.ZodNullable<z.ZodUnion<readonly [z.ZodURL, z.ZodLiteral<"">]>>;
809
+ avatar: z.ZodNullable<z.ZodString>;
810
810
  is_staff: z.ZodBoolean;
811
811
  is_superuser: z.ZodBoolean;
812
812
  date_joined: z.ZodString;
813
813
  last_login: z.ZodNullable<z.ZodString>;
814
- unanswered_messages_count: z.ZodInt;
814
+ unanswered_messages_count: z.ZodNumber;
815
815
  centrifugo: z.ZodNullable<z.ZodObject<{
816
816
  token: z.ZodString;
817
- centrifugo_url: z.ZodUnion<readonly [z.ZodURL, z.ZodLiteral<"">]>;
817
+ centrifugo_url: z.ZodString;
818
818
  expires_at: z.ZodString;
819
819
  channels: z.ZodArray<z.ZodString>;
820
820
  }, z.core.$strip>>;
@@ -889,7 +889,7 @@ type TokenRefreshRequest = z.infer<typeof TokenRefreshRequestSchema>;
889
889
  * Serializer for user details.
890
890
  */
891
891
  declare const UserSchema: z.ZodObject<{
892
- id: z.ZodInt;
892
+ id: z.ZodNumber;
893
893
  email: z.ZodEmail;
894
894
  first_name: z.ZodOptional<z.ZodString>;
895
895
  last_name: z.ZodOptional<z.ZodString>;
@@ -900,15 +900,15 @@ declare const UserSchema: z.ZodObject<{
900
900
  phone: z.ZodOptional<z.ZodString>;
901
901
  position: z.ZodOptional<z.ZodString>;
902
902
  language: z.ZodOptional<z.ZodString>;
903
- avatar: z.ZodNullable<z.ZodUnion<readonly [z.ZodURL, z.ZodLiteral<"">]>>;
903
+ avatar: z.ZodNullable<z.ZodString>;
904
904
  is_staff: z.ZodBoolean;
905
905
  is_superuser: z.ZodBoolean;
906
906
  date_joined: z.ZodString;
907
907
  last_login: z.ZodNullable<z.ZodString>;
908
- unanswered_messages_count: z.ZodInt;
908
+ unanswered_messages_count: z.ZodNumber;
909
909
  centrifugo: z.ZodNullable<z.ZodObject<{
910
910
  token: z.ZodString;
911
- centrifugo_url: z.ZodUnion<readonly [z.ZodURL, z.ZodLiteral<"">]>;
911
+ centrifugo_url: z.ZodString;
912
912
  expires_at: z.ZodString;
913
913
  channels: z.ZodArray<z.ZodString>;
914
914
  }, z.core.$strip>>;
package/dist/hooks.mjs CHANGED
@@ -843,7 +843,7 @@ var AccountDeleteResponseSchema = z2.object({
843
843
  import { z as z3 } from "zod";
844
844
  var CentrifugoTokenSchema = z3.object({
845
845
  token: z3.string(),
846
- centrifugo_url: z3.union([z3.url(), z3.literal("")]),
846
+ centrifugo_url: z3.string().refine((v) => v === "" || v.startsWith("/") || v.startsWith("http://") || v.startsWith("https://"), { message: "Must be a URL or relative path" }),
847
847
  expires_at: z3.string().datetime({ offset: true }),
848
848
  channels: z3.array(z3.string())
849
849
  });
@@ -857,14 +857,14 @@ var CfgAccountsProfileAvatarCreateRequestSchema = z4.object({
857
857
  // src/generated/cfg_accounts/_utils/schemas/OAuthAuthorizeRequestRequest.schema.ts
858
858
  import { z as z5 } from "zod";
859
859
  var OAuthAuthorizeRequestRequestSchema = z5.object({
860
- redirect_uri: z5.union([z5.url(), z5.literal("")]).optional(),
861
- source_url: z5.union([z5.url(), z5.literal("")]).optional()
860
+ redirect_uri: z5.string().refine((v) => v === "" || v.startsWith("/") || v.startsWith("http://") || v.startsWith("https://"), { message: "Must be a URL or relative path" }).optional(),
861
+ source_url: z5.string().refine((v) => v === "" || v.startsWith("/") || v.startsWith("http://") || v.startsWith("https://"), { message: "Must be a URL or relative path" }).optional()
862
862
  });
863
863
 
864
864
  // src/generated/cfg_accounts/_utils/schemas/OAuthAuthorizeResponse.schema.ts
865
865
  import { z as z6 } from "zod";
866
866
  var OAuthAuthorizeResponseSchema = z6.object({
867
- authorization_url: z6.union([z6.url(), z6.literal("")]),
867
+ authorization_url: z6.string().refine((v) => v === "" || v.startsWith("/") || v.startsWith("http://") || v.startsWith("https://"), { message: "Must be a URL or relative path" }),
868
868
  state: z6.string()
869
869
  });
870
870
 
@@ -873,18 +873,18 @@ import { z as z7 } from "zod";
873
873
  var OAuthCallbackRequestRequestSchema = z7.object({
874
874
  code: z7.string().min(10).max(500),
875
875
  state: z7.string().min(20).max(100),
876
- redirect_uri: z7.union([z7.url(), z7.literal("")]).optional()
876
+ redirect_uri: z7.string().refine((v) => v === "" || v.startsWith("/") || v.startsWith("http://") || v.startsWith("https://"), { message: "Must be a URL or relative path" }).optional()
877
877
  });
878
878
 
879
879
  // src/generated/cfg_accounts/_utils/schemas/OAuthConnection.schema.ts
880
880
  import { z as z8 } from "zod";
881
881
  var OAuthConnectionSchema = z8.object({
882
- id: z8.int(),
882
+ id: z8.number().int(),
883
883
  provider: z8.nativeEnum(OAuthConnectionProvider),
884
884
  provider_display: z8.string(),
885
885
  provider_username: z8.string(),
886
886
  provider_email: z8.email(),
887
- provider_avatar_url: z8.union([z8.url(), z8.literal("")]),
887
+ provider_avatar_url: z8.string().refine((v) => v === "" || v.startsWith("/") || v.startsWith("http://") || v.startsWith("https://"), { message: "Must be a URL or relative path" }),
888
888
  connected_at: z8.string().datetime({ offset: true }),
889
889
  last_login_at: z8.string().datetime({ offset: true })
890
890
  });
@@ -932,7 +932,7 @@ import { z as z14 } from "zod";
932
932
  var OTPRequestRequestSchema = z14.object({
933
933
  identifier: z14.string().min(1),
934
934
  channel: z14.nativeEnum(OTPRequestRequestChannel).optional(),
935
- source_url: z14.union([z14.url(), z14.literal("")]).optional()
935
+ source_url: z14.string().refine((v) => v === "" || v.startsWith("/") || v.startsWith("http://") || v.startsWith("https://"), { message: "Must be a URL or relative path" }).optional()
936
936
  });
937
937
 
938
938
  // src/generated/cfg_accounts/_utils/schemas/OTPRequestResponse.schema.ts
@@ -947,7 +947,7 @@ var OTPVerifyRequestSchema = z16.object({
947
947
  identifier: z16.string().min(1),
948
948
  otp: z16.string().min(6).max(6),
949
949
  channel: z16.nativeEnum(OTPRequestRequestChannel).optional(),
950
- source_url: z16.union([z16.url(), z16.literal("")]).optional()
950
+ source_url: z16.string().refine((v) => v === "" || v.startsWith("/") || v.startsWith("http://") || v.startsWith("https://"), { message: "Must be a URL or relative path" }).optional()
951
951
  });
952
952
 
953
953
  // src/generated/cfg_accounts/_utils/schemas/OTPVerifyResponse.schema.ts
@@ -956,7 +956,7 @@ import { z as z18 } from "zod";
956
956
  // src/generated/cfg_accounts/_utils/schemas/User.schema.ts
957
957
  import { z as z17 } from "zod";
958
958
  var UserSchema = z17.object({
959
- id: z17.int(),
959
+ id: z17.number().int(),
960
960
  email: z17.email(),
961
961
  first_name: z17.string().max(50).optional(),
962
962
  last_name: z17.string().max(50).optional(),
@@ -967,12 +967,12 @@ var UserSchema = z17.object({
967
967
  phone: z17.string().max(20).optional(),
968
968
  position: z17.string().max(100).optional(),
969
969
  language: z17.string().max(10).optional(),
970
- avatar: z17.union([z17.url(), z17.literal("")]).nullable(),
970
+ avatar: z17.string().refine((v) => v === "" || v.startsWith("/") || v.startsWith("http://") || v.startsWith("https://"), { message: "Must be a URL or relative path" }).nullable(),
971
971
  is_staff: z17.boolean(),
972
972
  is_superuser: z17.boolean(),
973
973
  date_joined: z17.string().datetime({ offset: true }),
974
974
  last_login: z17.string().datetime({ offset: true }).nullable(),
975
- unanswered_messages_count: z17.int(),
975
+ unanswered_messages_count: z17.number().int(),
976
976
  centrifugo: CentrifugoTokenSchema.nullable()
977
977
  });
978
978