@djangocfg/api 2.1.212 → 2.1.215
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.
- package/dist/auth-server.cjs +50 -50
- package/dist/auth-server.cjs.map +1 -1
- package/dist/auth-server.mjs +50 -50
- package/dist/auth-server.mjs.map +1 -1
- package/dist/auth.cjs +63 -63
- package/dist/auth.cjs.map +1 -1
- package/dist/auth.d.cts +10 -10
- package/dist/auth.d.ts +10 -10
- package/dist/auth.mjs +63 -63
- package/dist/auth.mjs.map +1 -1
- package/dist/clients.cjs +63 -63
- package/dist/clients.cjs.map +1 -1
- package/dist/clients.d.cts +106 -106
- package/dist/clients.d.ts +106 -106
- package/dist/clients.mjs +63 -63
- package/dist/clients.mjs.map +1 -1
- package/dist/hooks.cjs +12 -12
- package/dist/hooks.cjs.map +1 -1
- package/dist/hooks.d.cts +14 -14
- package/dist/hooks.d.ts +14 -14
- package/dist/hooks.mjs +12 -12
- package/dist/hooks.mjs.map +1 -1
- package/dist/index.cjs +50 -50
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +17 -17
- package/dist/index.d.ts +17 -17
- package/dist/index.mjs +50 -50
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
- package/src/generated/cfg_accounts/_utils/schemas/CentrifugoToken.schema.ts +1 -1
- package/src/generated/cfg_accounts/_utils/schemas/OAuthAuthorizeRequestRequest.schema.ts +2 -2
- package/src/generated/cfg_accounts/_utils/schemas/OAuthAuthorizeResponse.schema.ts +1 -1
- package/src/generated/cfg_accounts/_utils/schemas/OAuthCallbackRequestRequest.schema.ts +1 -1
- package/src/generated/cfg_accounts/_utils/schemas/OAuthConnection.schema.ts +2 -2
- package/src/generated/cfg_accounts/_utils/schemas/OTPRequestRequest.schema.ts +1 -1
- package/src/generated/cfg_accounts/_utils/schemas/OTPVerifyRequest.schema.ts +1 -1
- package/src/generated/cfg_accounts/_utils/schemas/User.schema.ts +3 -3
- package/src/generated/cfg_centrifugo/_utils/schemas/CentrifugoChannelInfo.schema.ts +1 -1
- package/src/generated/cfg_centrifugo/_utils/schemas/CentrifugoError.schema.ts +1 -1
- package/src/generated/cfg_centrifugo/_utils/schemas/CentrifugoHistoryRequestRequest.schema.ts +1 -1
- package/src/generated/cfg_centrifugo/_utils/schemas/CentrifugoHistoryResult.schema.ts +1 -1
- package/src/generated/cfg_centrifugo/_utils/schemas/CentrifugoNodeInfo.schema.ts +5 -5
- package/src/generated/cfg_centrifugo/_utils/schemas/CentrifugoOverviewStats.schema.ts +5 -5
- package/src/generated/cfg_centrifugo/_utils/schemas/CentrifugoPresenceStatsResult.schema.ts +2 -2
- package/src/generated/cfg_centrifugo/_utils/schemas/CentrifugoProcess.schema.ts +1 -1
- package/src/generated/cfg_centrifugo/_utils/schemas/CentrifugoPublication.schema.ts +1 -1
- package/src/generated/cfg_centrifugo/_utils/schemas/CentrifugoStreamPosition.schema.ts +1 -1
- package/src/generated/cfg_centrifugo/_utils/schemas/ChannelList.schema.ts +1 -1
- package/src/generated/cfg_centrifugo/_utils/schemas/ChannelStats.schema.ts +3 -3
- package/src/generated/cfg_centrifugo/_utils/schemas/PaginatedPublishList.schema.ts +6 -6
- package/src/generated/cfg_centrifugo/_utils/schemas/Publish.schema.ts +2 -2
- package/src/generated/cfg_centrifugo/_utils/schemas/PublishTestRequestRequest.schema.ts +1 -1
- package/src/generated/cfg_centrifugo/_utils/schemas/PublishTestResponse.schema.ts +1 -1
- package/src/generated/cfg_centrifugo/_utils/schemas/TimelineItem.schema.ts +4 -4
- package/src/generated/cfg_centrifugo/_utils/schemas/TimelineResponse.schema.ts +1 -1
- package/src/generated/cfg_totp/_utils/schemas/BackupCodesStatus.schema.ts +2 -2
- package/src/generated/cfg_totp/_utils/schemas/PaginatedDeviceListResponseList.schema.ts +6 -6
- package/src/generated/cfg_totp/_utils/schemas/SetupResponse.schema.ts +1 -1
- package/src/generated/cfg_totp/_utils/schemas/TotpVerifyUser.schema.ts +3 -3
- package/src/generated/cfg_totp/_utils/schemas/VerifyResponse.schema.ts +1 -1
package/dist/clients.cjs
CHANGED
|
@@ -930,7 +930,7 @@ var AccountDeleteResponseSchema = import_zod.z.object({
|
|
|
930
930
|
var import_zod2 = require("zod");
|
|
931
931
|
var CentrifugoTokenSchema = import_zod2.z.object({
|
|
932
932
|
token: import_zod2.z.string(),
|
|
933
|
-
centrifugo_url: import_zod2.z.
|
|
933
|
+
centrifugo_url: import_zod2.z.string().refine((v) => v === "" || v.startsWith("/") || v.startsWith("http://") || v.startsWith("https://") || v.startsWith("ws://") || v.startsWith("wss://"), { message: "Must be a URL or relative path" }),
|
|
934
934
|
expires_at: import_zod2.z.string().datetime({ offset: true }),
|
|
935
935
|
channels: import_zod2.z.array(import_zod2.z.string())
|
|
936
936
|
});
|
|
@@ -944,14 +944,14 @@ var CfgAccountsProfileAvatarCreateRequestSchema = import_zod3.z.object({
|
|
|
944
944
|
// src/generated/cfg_accounts/_utils/schemas/OAuthAuthorizeRequestRequest.schema.ts
|
|
945
945
|
var import_zod4 = require("zod");
|
|
946
946
|
var OAuthAuthorizeRequestRequestSchema = import_zod4.z.object({
|
|
947
|
-
redirect_uri: import_zod4.z.
|
|
948
|
-
source_url: import_zod4.z.
|
|
947
|
+
redirect_uri: import_zod4.z.string().refine((v) => v === "" || v.startsWith("/") || v.startsWith("http://") || v.startsWith("https://") || v.startsWith("ws://") || v.startsWith("wss://"), { message: "Must be a URL or relative path" }).optional(),
|
|
948
|
+
source_url: import_zod4.z.string().refine((v) => v === "" || v.startsWith("/") || v.startsWith("http://") || v.startsWith("https://") || v.startsWith("ws://") || v.startsWith("wss://"), { message: "Must be a URL or relative path" }).optional()
|
|
949
949
|
});
|
|
950
950
|
|
|
951
951
|
// src/generated/cfg_accounts/_utils/schemas/OAuthAuthorizeResponse.schema.ts
|
|
952
952
|
var import_zod5 = require("zod");
|
|
953
953
|
var OAuthAuthorizeResponseSchema = import_zod5.z.object({
|
|
954
|
-
authorization_url: import_zod5.z.
|
|
954
|
+
authorization_url: import_zod5.z.string().refine((v) => v === "" || v.startsWith("/") || v.startsWith("http://") || v.startsWith("https://") || v.startsWith("ws://") || v.startsWith("wss://"), { message: "Must be a URL or relative path" }),
|
|
955
955
|
state: import_zod5.z.string()
|
|
956
956
|
});
|
|
957
957
|
|
|
@@ -960,18 +960,18 @@ var import_zod6 = require("zod");
|
|
|
960
960
|
var OAuthCallbackRequestRequestSchema = import_zod6.z.object({
|
|
961
961
|
code: import_zod6.z.string().min(10).max(500),
|
|
962
962
|
state: import_zod6.z.string().min(20).max(100),
|
|
963
|
-
redirect_uri: import_zod6.z.
|
|
963
|
+
redirect_uri: import_zod6.z.string().refine((v) => v === "" || v.startsWith("/") || v.startsWith("http://") || v.startsWith("https://") || v.startsWith("ws://") || v.startsWith("wss://"), { message: "Must be a URL or relative path" }).optional()
|
|
964
964
|
});
|
|
965
965
|
|
|
966
966
|
// src/generated/cfg_accounts/_utils/schemas/OAuthConnection.schema.ts
|
|
967
967
|
var import_zod7 = require("zod");
|
|
968
968
|
var OAuthConnectionSchema = import_zod7.z.object({
|
|
969
|
-
id: import_zod7.z.int(),
|
|
969
|
+
id: import_zod7.z.number().int(),
|
|
970
970
|
provider: import_zod7.z.nativeEnum(OAuthConnectionProvider),
|
|
971
971
|
provider_display: import_zod7.z.string(),
|
|
972
972
|
provider_username: import_zod7.z.string(),
|
|
973
973
|
provider_email: import_zod7.z.email(),
|
|
974
|
-
provider_avatar_url: import_zod7.z.
|
|
974
|
+
provider_avatar_url: import_zod7.z.string().refine((v) => v === "" || v.startsWith("/") || v.startsWith("http://") || v.startsWith("https://") || v.startsWith("ws://") || v.startsWith("wss://"), { message: "Must be a URL or relative path" }),
|
|
975
975
|
connected_at: import_zod7.z.string().datetime({ offset: true }),
|
|
976
976
|
last_login_at: import_zod7.z.string().datetime({ offset: true })
|
|
977
977
|
});
|
|
@@ -1019,7 +1019,7 @@ var import_zod13 = require("zod");
|
|
|
1019
1019
|
var OTPRequestRequestSchema = import_zod13.z.object({
|
|
1020
1020
|
identifier: import_zod13.z.string().min(1),
|
|
1021
1021
|
channel: import_zod13.z.nativeEnum(OTPRequestRequestChannel).optional(),
|
|
1022
|
-
source_url: import_zod13.z.
|
|
1022
|
+
source_url: import_zod13.z.string().refine((v) => v === "" || v.startsWith("/") || v.startsWith("http://") || v.startsWith("https://") || v.startsWith("ws://") || v.startsWith("wss://"), { message: "Must be a URL or relative path" }).optional()
|
|
1023
1023
|
});
|
|
1024
1024
|
|
|
1025
1025
|
// src/generated/cfg_accounts/_utils/schemas/OTPRequestResponse.schema.ts
|
|
@@ -1034,7 +1034,7 @@ var OTPVerifyRequestSchema = import_zod15.z.object({
|
|
|
1034
1034
|
identifier: import_zod15.z.string().min(1),
|
|
1035
1035
|
otp: import_zod15.z.string().min(6).max(6),
|
|
1036
1036
|
channel: import_zod15.z.nativeEnum(OTPRequestRequestChannel).optional(),
|
|
1037
|
-
source_url: import_zod15.z.
|
|
1037
|
+
source_url: import_zod15.z.string().refine((v) => v === "" || v.startsWith("/") || v.startsWith("http://") || v.startsWith("https://") || v.startsWith("ws://") || v.startsWith("wss://"), { message: "Must be a URL or relative path" }).optional()
|
|
1038
1038
|
});
|
|
1039
1039
|
|
|
1040
1040
|
// src/generated/cfg_accounts/_utils/schemas/OTPVerifyResponse.schema.ts
|
|
@@ -1043,7 +1043,7 @@ var import_zod17 = require("zod");
|
|
|
1043
1043
|
// src/generated/cfg_accounts/_utils/schemas/User.schema.ts
|
|
1044
1044
|
var import_zod16 = require("zod");
|
|
1045
1045
|
var UserSchema = import_zod16.z.object({
|
|
1046
|
-
id: import_zod16.z.int(),
|
|
1046
|
+
id: import_zod16.z.number().int(),
|
|
1047
1047
|
email: import_zod16.z.email(),
|
|
1048
1048
|
first_name: import_zod16.z.string().max(50).optional(),
|
|
1049
1049
|
last_name: import_zod16.z.string().max(50).optional(),
|
|
@@ -1054,12 +1054,12 @@ var UserSchema = import_zod16.z.object({
|
|
|
1054
1054
|
phone: import_zod16.z.string().max(20).optional(),
|
|
1055
1055
|
position: import_zod16.z.string().max(100).optional(),
|
|
1056
1056
|
language: import_zod16.z.string().max(10).optional(),
|
|
1057
|
-
avatar: import_zod16.z.
|
|
1057
|
+
avatar: import_zod16.z.string().refine((v) => v === "" || v.startsWith("/") || v.startsWith("http://") || v.startsWith("https://") || v.startsWith("ws://") || v.startsWith("wss://"), { message: "Must be a URL or relative path" }).nullable(),
|
|
1058
1058
|
is_staff: import_zod16.z.boolean(),
|
|
1059
1059
|
is_superuser: import_zod16.z.boolean(),
|
|
1060
1060
|
date_joined: import_zod16.z.string().datetime({ offset: true }),
|
|
1061
1061
|
last_login: import_zod16.z.string().datetime({ offset: true }).nullable(),
|
|
1062
|
-
unanswered_messages_count: import_zod16.z.int(),
|
|
1062
|
+
unanswered_messages_count: import_zod16.z.number().int(),
|
|
1063
1063
|
centrifugo: CentrifugoTokenSchema.nullable()
|
|
1064
1064
|
});
|
|
1065
1065
|
|
|
@@ -2753,7 +2753,7 @@ __export(schemas_exports2, {
|
|
|
2753
2753
|
// src/generated/cfg_centrifugo/_utils/schemas/CentrifugoChannelInfo.schema.ts
|
|
2754
2754
|
var import_zod22 = require("zod");
|
|
2755
2755
|
var CentrifugoChannelInfoSchema = import_zod22.z.object({
|
|
2756
|
-
num_clients: import_zod22.z.int()
|
|
2756
|
+
num_clients: import_zod22.z.number().int()
|
|
2757
2757
|
});
|
|
2758
2758
|
|
|
2759
2759
|
// src/generated/cfg_centrifugo/_utils/schemas/CentrifugoChannelsRequestRequest.schema.ts
|
|
@@ -2774,7 +2774,7 @@ var CentrifugoChannelsResultSchema = import_zod24.z.object({
|
|
|
2774
2774
|
// src/generated/cfg_centrifugo/_utils/schemas/CentrifugoError.schema.ts
|
|
2775
2775
|
var import_zod25 = require("zod");
|
|
2776
2776
|
var CentrifugoErrorSchema = import_zod25.z.object({
|
|
2777
|
-
code: import_zod25.z.int().optional(),
|
|
2777
|
+
code: import_zod25.z.number().int().optional(),
|
|
2778
2778
|
message: import_zod25.z.string().optional()
|
|
2779
2779
|
});
|
|
2780
2780
|
|
|
@@ -2808,14 +2808,14 @@ var import_zod30 = require("zod");
|
|
|
2808
2808
|
// src/generated/cfg_centrifugo/_utils/schemas/CentrifugoStreamPosition.schema.ts
|
|
2809
2809
|
var import_zod29 = require("zod");
|
|
2810
2810
|
var CentrifugoStreamPositionSchema = import_zod29.z.object({
|
|
2811
|
-
offset: import_zod29.z.int(),
|
|
2811
|
+
offset: import_zod29.z.number().int(),
|
|
2812
2812
|
epoch: import_zod29.z.string()
|
|
2813
2813
|
});
|
|
2814
2814
|
|
|
2815
2815
|
// src/generated/cfg_centrifugo/_utils/schemas/CentrifugoHistoryRequestRequest.schema.ts
|
|
2816
2816
|
var CentrifugoHistoryRequestRequestSchema = import_zod30.z.object({
|
|
2817
2817
|
channel: import_zod30.z.string(),
|
|
2818
|
-
limit: import_zod30.z.int().nullable().optional(),
|
|
2818
|
+
limit: import_zod30.z.number().int().nullable().optional(),
|
|
2819
2819
|
since: CentrifugoStreamPositionSchema.nullable().optional(),
|
|
2820
2820
|
reverse: import_zod30.z.boolean().nullable().optional()
|
|
2821
2821
|
});
|
|
@@ -2831,7 +2831,7 @@ var import_zod31 = require("zod");
|
|
|
2831
2831
|
var CentrifugoPublicationSchema = import_zod31.z.object({
|
|
2832
2832
|
data: import_zod31.z.record(import_zod31.z.string(), import_zod31.z.any()),
|
|
2833
2833
|
info: CentrifugoClientInfoSchema.nullable().optional(),
|
|
2834
|
-
offset: import_zod31.z.int(),
|
|
2834
|
+
offset: import_zod31.z.number().int(),
|
|
2835
2835
|
tags: import_zod31.z.record(import_zod31.z.string(), import_zod31.z.any()).nullable().optional()
|
|
2836
2836
|
});
|
|
2837
2837
|
|
|
@@ -2839,7 +2839,7 @@ var CentrifugoPublicationSchema = import_zod31.z.object({
|
|
|
2839
2839
|
var CentrifugoHistoryResultSchema = import_zod32.z.object({
|
|
2840
2840
|
publications: import_zod32.z.array(CentrifugoPublicationSchema),
|
|
2841
2841
|
epoch: import_zod32.z.string(),
|
|
2842
|
-
offset: import_zod32.z.int()
|
|
2842
|
+
offset: import_zod32.z.number().int()
|
|
2843
2843
|
});
|
|
2844
2844
|
|
|
2845
2845
|
// src/generated/cfg_centrifugo/_utils/schemas/CentrifugoHistoryResponse.schema.ts
|
|
@@ -2868,7 +2868,7 @@ var CentrifugoMetricsSchema = import_zod34.z.object({
|
|
|
2868
2868
|
var import_zod35 = require("zod");
|
|
2869
2869
|
var CentrifugoProcessSchema = import_zod35.z.object({
|
|
2870
2870
|
cpu: import_zod35.z.number(),
|
|
2871
|
-
rss: import_zod35.z.int()
|
|
2871
|
+
rss: import_zod35.z.number().int()
|
|
2872
2872
|
});
|
|
2873
2873
|
|
|
2874
2874
|
// src/generated/cfg_centrifugo/_utils/schemas/CentrifugoNodeInfo.schema.ts
|
|
@@ -2876,11 +2876,11 @@ var CentrifugoNodeInfoSchema = import_zod36.z.object({
|
|
|
2876
2876
|
uid: import_zod36.z.string(),
|
|
2877
2877
|
name: import_zod36.z.string(),
|
|
2878
2878
|
version: import_zod36.z.string(),
|
|
2879
|
-
num_clients: import_zod36.z.int(),
|
|
2880
|
-
num_users: import_zod36.z.int(),
|
|
2881
|
-
num_channels: import_zod36.z.int(),
|
|
2882
|
-
uptime: import_zod36.z.int(),
|
|
2883
|
-
num_subs: import_zod36.z.int(),
|
|
2879
|
+
num_clients: import_zod36.z.number().int(),
|
|
2880
|
+
num_users: import_zod36.z.number().int(),
|
|
2881
|
+
num_channels: import_zod36.z.number().int(),
|
|
2882
|
+
uptime: import_zod36.z.number().int(),
|
|
2883
|
+
num_subs: import_zod36.z.number().int(),
|
|
2884
2884
|
metrics: CentrifugoMetricsSchema.nullable().optional(),
|
|
2885
2885
|
process: CentrifugoProcessSchema.nullable().optional()
|
|
2886
2886
|
});
|
|
@@ -2899,14 +2899,14 @@ var CentrifugoInfoResponseSchema = import_zod38.z.object({
|
|
|
2899
2899
|
// src/generated/cfg_centrifugo/_utils/schemas/CentrifugoOverviewStats.schema.ts
|
|
2900
2900
|
var import_zod39 = require("zod");
|
|
2901
2901
|
var CentrifugoOverviewStatsSchema = import_zod39.z.object({
|
|
2902
|
-
total: import_zod39.z.int(),
|
|
2903
|
-
successful: import_zod39.z.int(),
|
|
2904
|
-
failed: import_zod39.z.int(),
|
|
2905
|
-
timeout: import_zod39.z.int(),
|
|
2902
|
+
total: import_zod39.z.number().int(),
|
|
2903
|
+
successful: import_zod39.z.number().int(),
|
|
2904
|
+
failed: import_zod39.z.number().int(),
|
|
2905
|
+
timeout: import_zod39.z.number().int(),
|
|
2906
2906
|
success_rate: import_zod39.z.number(),
|
|
2907
2907
|
avg_duration_ms: import_zod39.z.number(),
|
|
2908
2908
|
avg_acks_received: import_zod39.z.number(),
|
|
2909
|
-
period_hours: import_zod39.z.int()
|
|
2909
|
+
period_hours: import_zod39.z.number().int()
|
|
2910
2910
|
});
|
|
2911
2911
|
|
|
2912
2912
|
// src/generated/cfg_centrifugo/_utils/schemas/CentrifugoPresenceRequestRequest.schema.ts
|
|
@@ -2942,8 +2942,8 @@ var import_zod45 = require("zod");
|
|
|
2942
2942
|
// src/generated/cfg_centrifugo/_utils/schemas/CentrifugoPresenceStatsResult.schema.ts
|
|
2943
2943
|
var import_zod44 = require("zod");
|
|
2944
2944
|
var CentrifugoPresenceStatsResultSchema = import_zod44.z.object({
|
|
2945
|
-
num_clients: import_zod44.z.int(),
|
|
2946
|
-
num_users: import_zod44.z.int()
|
|
2945
|
+
num_clients: import_zod44.z.number().int(),
|
|
2946
|
+
num_users: import_zod44.z.number().int()
|
|
2947
2947
|
});
|
|
2948
2948
|
|
|
2949
2949
|
// src/generated/cfg_centrifugo/_utils/schemas/CentrifugoPresenceStatsResponse.schema.ts
|
|
@@ -2959,9 +2959,9 @@ var import_zod47 = require("zod");
|
|
|
2959
2959
|
var import_zod46 = require("zod");
|
|
2960
2960
|
var ChannelStatsSchema = import_zod46.z.object({
|
|
2961
2961
|
channel: import_zod46.z.string(),
|
|
2962
|
-
total: import_zod46.z.int(),
|
|
2963
|
-
successful: import_zod46.z.int(),
|
|
2964
|
-
failed: import_zod46.z.int(),
|
|
2962
|
+
total: import_zod46.z.number().int(),
|
|
2963
|
+
successful: import_zod46.z.number().int(),
|
|
2964
|
+
failed: import_zod46.z.number().int(),
|
|
2965
2965
|
avg_duration_ms: import_zod46.z.number(),
|
|
2966
2966
|
avg_acks: import_zod46.z.number(),
|
|
2967
2967
|
last_activity_at: import_zod46.z.string().nullable()
|
|
@@ -2970,7 +2970,7 @@ var ChannelStatsSchema = import_zod46.z.object({
|
|
|
2970
2970
|
// src/generated/cfg_centrifugo/_utils/schemas/ChannelList.schema.ts
|
|
2971
2971
|
var ChannelListSchema = import_zod47.z.object({
|
|
2972
2972
|
channels: import_zod47.z.array(ChannelStatsSchema),
|
|
2973
|
-
total_channels: import_zod47.z.int()
|
|
2973
|
+
total_channels: import_zod47.z.number().int()
|
|
2974
2974
|
});
|
|
2975
2975
|
|
|
2976
2976
|
// src/generated/cfg_centrifugo/_utils/schemas/ConnectionTokenResponse.schema.ts
|
|
@@ -3007,8 +3007,8 @@ var PublishSchema = import_zod51.z.object({
|
|
|
3007
3007
|
channel: import_zod51.z.string(),
|
|
3008
3008
|
status: import_zod51.z.string(),
|
|
3009
3009
|
wait_for_ack: import_zod51.z.boolean(),
|
|
3010
|
-
acks_received: import_zod51.z.int(),
|
|
3011
|
-
acks_expected: import_zod51.z.int().nullable(),
|
|
3010
|
+
acks_received: import_zod51.z.number().int(),
|
|
3011
|
+
acks_expected: import_zod51.z.number().int().nullable(),
|
|
3012
3012
|
duration_ms: import_zod51.z.number().nullable(),
|
|
3013
3013
|
created_at: import_zod51.z.string().datetime({ offset: true }),
|
|
3014
3014
|
completed_at: import_zod51.z.string().datetime({ offset: true }).nullable(),
|
|
@@ -3018,14 +3018,14 @@ var PublishSchema = import_zod51.z.object({
|
|
|
3018
3018
|
|
|
3019
3019
|
// src/generated/cfg_centrifugo/_utils/schemas/PaginatedPublishList.schema.ts
|
|
3020
3020
|
var PaginatedPublishListSchema = import_zod52.z.object({
|
|
3021
|
-
count: import_zod52.z.int(),
|
|
3022
|
-
page: import_zod52.z.int(),
|
|
3023
|
-
pages: import_zod52.z.int(),
|
|
3024
|
-
page_size: import_zod52.z.int(),
|
|
3021
|
+
count: import_zod52.z.number().int(),
|
|
3022
|
+
page: import_zod52.z.number().int(),
|
|
3023
|
+
pages: import_zod52.z.number().int(),
|
|
3024
|
+
page_size: import_zod52.z.number().int(),
|
|
3025
3025
|
has_next: import_zod52.z.boolean(),
|
|
3026
3026
|
has_previous: import_zod52.z.boolean(),
|
|
3027
|
-
next_page: import_zod52.z.int().nullable().optional(),
|
|
3028
|
-
previous_page: import_zod52.z.int().nullable().optional(),
|
|
3027
|
+
next_page: import_zod52.z.number().int().nullable().optional(),
|
|
3028
|
+
previous_page: import_zod52.z.number().int().nullable().optional(),
|
|
3029
3029
|
results: import_zod52.z.array(PublishSchema)
|
|
3030
3030
|
});
|
|
3031
3031
|
|
|
@@ -3035,7 +3035,7 @@ var PublishTestRequestRequestSchema = import_zod53.z.object({
|
|
|
3035
3035
|
channel: import_zod53.z.string(),
|
|
3036
3036
|
data: import_zod53.z.record(import_zod53.z.string(), import_zod53.z.any()),
|
|
3037
3037
|
wait_for_ack: import_zod53.z.boolean().optional(),
|
|
3038
|
-
ack_timeout: import_zod53.z.int().min(1).max(60).optional()
|
|
3038
|
+
ack_timeout: import_zod53.z.number().int().min(1).max(60).optional()
|
|
3039
3039
|
});
|
|
3040
3040
|
|
|
3041
3041
|
// src/generated/cfg_centrifugo/_utils/schemas/PublishTestResponse.schema.ts
|
|
@@ -3044,7 +3044,7 @@ var PublishTestResponseSchema = import_zod54.z.object({
|
|
|
3044
3044
|
success: import_zod54.z.boolean(),
|
|
3045
3045
|
message_id: import_zod54.z.string(),
|
|
3046
3046
|
channel: import_zod54.z.string(),
|
|
3047
|
-
acks_received: import_zod54.z.int().optional(),
|
|
3047
|
+
acks_received: import_zod54.z.number().int().optional(),
|
|
3048
3048
|
delivered: import_zod54.z.boolean().optional(),
|
|
3049
3049
|
error: import_zod54.z.string().nullable().optional()
|
|
3050
3050
|
});
|
|
@@ -3053,17 +3053,17 @@ var PublishTestResponseSchema = import_zod54.z.object({
|
|
|
3053
3053
|
var import_zod55 = require("zod");
|
|
3054
3054
|
var TimelineItemSchema = import_zod55.z.object({
|
|
3055
3055
|
timestamp: import_zod55.z.string(),
|
|
3056
|
-
count: import_zod55.z.int(),
|
|
3057
|
-
successful: import_zod55.z.int(),
|
|
3058
|
-
failed: import_zod55.z.int(),
|
|
3059
|
-
timeout: import_zod55.z.int()
|
|
3056
|
+
count: import_zod55.z.number().int(),
|
|
3057
|
+
successful: import_zod55.z.number().int(),
|
|
3058
|
+
failed: import_zod55.z.number().int(),
|
|
3059
|
+
timeout: import_zod55.z.number().int()
|
|
3060
3060
|
});
|
|
3061
3061
|
|
|
3062
3062
|
// src/generated/cfg_centrifugo/_utils/schemas/TimelineResponse.schema.ts
|
|
3063
3063
|
var import_zod56 = require("zod");
|
|
3064
3064
|
var TimelineResponseSchema = import_zod56.z.object({
|
|
3065
3065
|
timeline: import_zod56.z.array(TimelineItemSchema),
|
|
3066
|
-
period_hours: import_zod56.z.int(),
|
|
3066
|
+
period_hours: import_zod56.z.number().int(),
|
|
3067
3067
|
interval: import_zod56.z.string()
|
|
3068
3068
|
});
|
|
3069
3069
|
|
|
@@ -4687,8 +4687,8 @@ var BackupCodesRegenerateResponseSchema = import_zod58.z.object({
|
|
|
4687
4687
|
// src/generated/cfg_totp/_utils/schemas/BackupCodesStatus.schema.ts
|
|
4688
4688
|
var import_zod59 = require("zod");
|
|
4689
4689
|
var BackupCodesStatusSchema = import_zod59.z.object({
|
|
4690
|
-
remaining_count: import_zod59.z.int(),
|
|
4691
|
-
total_generated: import_zod59.z.int(),
|
|
4690
|
+
remaining_count: import_zod59.z.number().int(),
|
|
4691
|
+
total_generated: import_zod59.z.number().int(),
|
|
4692
4692
|
warning: import_zod59.z.string().nullable().optional()
|
|
4693
4693
|
});
|
|
4694
4694
|
|
|
@@ -4735,14 +4735,14 @@ var DisableRequestSchema = import_zod64.z.object({
|
|
|
4735
4735
|
// src/generated/cfg_totp/_utils/schemas/PaginatedDeviceListResponseList.schema.ts
|
|
4736
4736
|
var import_zod65 = require("zod");
|
|
4737
4737
|
var PaginatedDeviceListResponseListSchema = import_zod65.z.object({
|
|
4738
|
-
count: import_zod65.z.int(),
|
|
4739
|
-
page: import_zod65.z.int(),
|
|
4740
|
-
pages: import_zod65.z.int(),
|
|
4741
|
-
page_size: import_zod65.z.int(),
|
|
4738
|
+
count: import_zod65.z.number().int(),
|
|
4739
|
+
page: import_zod65.z.number().int(),
|
|
4740
|
+
pages: import_zod65.z.number().int(),
|
|
4741
|
+
page_size: import_zod65.z.number().int(),
|
|
4742
4742
|
has_next: import_zod65.z.boolean(),
|
|
4743
4743
|
has_previous: import_zod65.z.boolean(),
|
|
4744
|
-
next_page: import_zod65.z.int().nullable().optional(),
|
|
4745
|
-
previous_page: import_zod65.z.int().nullable().optional(),
|
|
4744
|
+
next_page: import_zod65.z.number().int().nullable().optional(),
|
|
4745
|
+
previous_page: import_zod65.z.number().int().nullable().optional(),
|
|
4746
4746
|
results: import_zod65.z.array(DeviceListResponseSchema)
|
|
4747
4747
|
});
|
|
4748
4748
|
|
|
@@ -4759,13 +4759,13 @@ var SetupResponseSchema = import_zod67.z.object({
|
|
|
4759
4759
|
secret: import_zod67.z.string(),
|
|
4760
4760
|
provisioning_uri: import_zod67.z.string(),
|
|
4761
4761
|
qr_code_base64: import_zod67.z.string(),
|
|
4762
|
-
expires_in: import_zod67.z.int()
|
|
4762
|
+
expires_in: import_zod67.z.number().int()
|
|
4763
4763
|
});
|
|
4764
4764
|
|
|
4765
4765
|
// src/generated/cfg_totp/_utils/schemas/TotpVerifyUser.schema.ts
|
|
4766
4766
|
var import_zod68 = require("zod");
|
|
4767
4767
|
var TotpVerifyUserSchema = import_zod68.z.object({
|
|
4768
|
-
id: import_zod68.z.int(),
|
|
4768
|
+
id: import_zod68.z.number().int(),
|
|
4769
4769
|
email: import_zod68.z.email(),
|
|
4770
4770
|
first_name: import_zod68.z.string().max(50).optional(),
|
|
4771
4771
|
last_name: import_zod68.z.string().max(50).optional(),
|
|
@@ -4776,12 +4776,12 @@ var TotpVerifyUserSchema = import_zod68.z.object({
|
|
|
4776
4776
|
phone: import_zod68.z.string().max(20).optional(),
|
|
4777
4777
|
position: import_zod68.z.string().max(100).optional(),
|
|
4778
4778
|
language: import_zod68.z.string().max(10).optional(),
|
|
4779
|
-
avatar: import_zod68.z.
|
|
4779
|
+
avatar: import_zod68.z.string().refine((v) => v === "" || v.startsWith("/") || v.startsWith("http://") || v.startsWith("https://") || v.startsWith("ws://") || v.startsWith("wss://"), { message: "Must be a URL or relative path" }).nullable(),
|
|
4780
4780
|
is_staff: import_zod68.z.boolean(),
|
|
4781
4781
|
is_superuser: import_zod68.z.boolean(),
|
|
4782
4782
|
date_joined: import_zod68.z.string().datetime({ offset: true }),
|
|
4783
4783
|
last_login: import_zod68.z.string().datetime({ offset: true }).nullable(),
|
|
4784
|
-
unanswered_messages_count: import_zod68.z.int()
|
|
4784
|
+
unanswered_messages_count: import_zod68.z.number().int()
|
|
4785
4785
|
});
|
|
4786
4786
|
|
|
4787
4787
|
// src/generated/cfg_totp/_utils/schemas/VerifyBackupRequest.schema.ts
|
|
@@ -4805,7 +4805,7 @@ var VerifyResponseSchema = import_zod71.z.object({
|
|
|
4805
4805
|
access_token: import_zod71.z.string(),
|
|
4806
4806
|
refresh_token: import_zod71.z.string(),
|
|
4807
4807
|
user: TotpVerifyUserSchema,
|
|
4808
|
-
remaining_backup_codes: import_zod71.z.int().optional(),
|
|
4808
|
+
remaining_backup_codes: import_zod71.z.number().int().optional(),
|
|
4809
4809
|
warning: import_zod71.z.string().optional()
|
|
4810
4810
|
});
|
|
4811
4811
|
|