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