@djangocfg/api 2.1.99 → 2.1.100
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 +441 -383
- package/dist/auth.cjs.map +1 -1
- package/dist/auth.d.cts +36 -1
- package/dist/auth.d.ts +36 -1
- package/dist/auth.mjs +441 -383
- 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/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/clients.mjs
CHANGED
|
@@ -108,6 +108,19 @@ var UserProfile = class {
|
|
|
108
108
|
const response = await this.client.request("POST", "/cfg/accounts/profile/avatar/", { formData });
|
|
109
109
|
return response;
|
|
110
110
|
}
|
|
111
|
+
/**
|
|
112
|
+
* Delete user account
|
|
113
|
+
*
|
|
114
|
+
* Permanently delete the current user's account. This operation: -
|
|
115
|
+
* Deactivates the account (user cannot log in) - Anonymizes personal data
|
|
116
|
+
* (GDPR compliance) - Frees up the email address for re-registration -
|
|
117
|
+
* Preserves audit trail The account can be restored by an administrator if
|
|
118
|
+
* needed.
|
|
119
|
+
*/
|
|
120
|
+
async accountsProfileDeleteCreate() {
|
|
121
|
+
const response = await this.client.request("POST", "/cfg/accounts/profile/delete/");
|
|
122
|
+
return response;
|
|
123
|
+
}
|
|
111
124
|
/**
|
|
112
125
|
* Partial update user profile
|
|
113
126
|
*
|
|
@@ -824,183 +837,190 @@ var OTPVerifyRequestChannel = /* @__PURE__ */ ((OTPVerifyRequestChannel2) => {
|
|
|
824
837
|
return OTPVerifyRequestChannel2;
|
|
825
838
|
})(OTPVerifyRequestChannel || {});
|
|
826
839
|
|
|
827
|
-
// src/generated/cfg_accounts/_utils/schemas/
|
|
840
|
+
// src/generated/cfg_accounts/_utils/schemas/AccountDeleteResponse.schema.ts
|
|
828
841
|
import { z } from "zod";
|
|
829
|
-
var
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
expires_at: z.iso.datetime(),
|
|
833
|
-
channels: z.array(z.string())
|
|
842
|
+
var AccountDeleteResponseSchema = z.object({
|
|
843
|
+
success: z.boolean(),
|
|
844
|
+
message: z.string()
|
|
834
845
|
});
|
|
835
846
|
|
|
836
|
-
// src/generated/cfg_accounts/_utils/schemas/
|
|
847
|
+
// src/generated/cfg_accounts/_utils/schemas/CentrifugoToken.schema.ts
|
|
837
848
|
import { z as z2 } from "zod";
|
|
838
|
-
var
|
|
839
|
-
|
|
849
|
+
var CentrifugoTokenSchema = z2.object({
|
|
850
|
+
token: z2.string(),
|
|
851
|
+
centrifugo_url: z2.union([z2.url(), z2.literal("")]),
|
|
852
|
+
expires_at: z2.iso.datetime(),
|
|
853
|
+
channels: z2.array(z2.string())
|
|
840
854
|
});
|
|
841
855
|
|
|
842
|
-
// src/generated/cfg_accounts/_utils/schemas/
|
|
856
|
+
// src/generated/cfg_accounts/_utils/schemas/CfgAccountsProfileAvatarCreateRequest.schema.ts
|
|
843
857
|
import { z as z3 } from "zod";
|
|
844
|
-
var
|
|
845
|
-
|
|
846
|
-
source_url: z3.union([z3.url(), z3.literal("")]).optional()
|
|
858
|
+
var CfgAccountsProfileAvatarCreateRequestSchema = z3.object({
|
|
859
|
+
avatar: z3.union([z3.instanceof(File), z3.instanceof(Blob)])
|
|
847
860
|
});
|
|
848
861
|
|
|
849
|
-
// src/generated/cfg_accounts/_utils/schemas/
|
|
862
|
+
// src/generated/cfg_accounts/_utils/schemas/OAuthAuthorizeRequestRequest.schema.ts
|
|
850
863
|
import { z as z4 } from "zod";
|
|
851
|
-
var
|
|
852
|
-
|
|
853
|
-
|
|
864
|
+
var OAuthAuthorizeRequestRequestSchema = z4.object({
|
|
865
|
+
redirect_uri: z4.union([z4.url(), z4.literal("")]).optional(),
|
|
866
|
+
source_url: z4.union([z4.url(), z4.literal("")]).optional()
|
|
854
867
|
});
|
|
855
868
|
|
|
856
|
-
// src/generated/cfg_accounts/_utils/schemas/
|
|
869
|
+
// src/generated/cfg_accounts/_utils/schemas/OAuthAuthorizeResponse.schema.ts
|
|
857
870
|
import { z as z5 } from "zod";
|
|
858
|
-
var
|
|
859
|
-
|
|
860
|
-
state: z5.string()
|
|
861
|
-
redirect_uri: z5.union([z5.url(), z5.literal("")]).optional()
|
|
871
|
+
var OAuthAuthorizeResponseSchema = z5.object({
|
|
872
|
+
authorization_url: z5.union([z5.url(), z5.literal("")]),
|
|
873
|
+
state: z5.string()
|
|
862
874
|
});
|
|
863
875
|
|
|
864
|
-
// src/generated/cfg_accounts/_utils/schemas/
|
|
876
|
+
// src/generated/cfg_accounts/_utils/schemas/OAuthCallbackRequestRequest.schema.ts
|
|
865
877
|
import { z as z6 } from "zod";
|
|
866
|
-
var
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
provider_username: z6.string(),
|
|
871
|
-
provider_email: z6.email(),
|
|
872
|
-
provider_avatar_url: z6.union([z6.url(), z6.literal("")]),
|
|
873
|
-
connected_at: z6.iso.datetime(),
|
|
874
|
-
last_login_at: z6.iso.datetime()
|
|
878
|
+
var OAuthCallbackRequestRequestSchema = z6.object({
|
|
879
|
+
code: z6.string().min(10).max(500),
|
|
880
|
+
state: z6.string().min(20).max(100),
|
|
881
|
+
redirect_uri: z6.union([z6.url(), z6.literal("")]).optional()
|
|
875
882
|
});
|
|
876
883
|
|
|
877
|
-
// src/generated/cfg_accounts/_utils/schemas/
|
|
884
|
+
// src/generated/cfg_accounts/_utils/schemas/OAuthConnection.schema.ts
|
|
878
885
|
import { z as z7 } from "zod";
|
|
879
|
-
var
|
|
880
|
-
|
|
886
|
+
var OAuthConnectionSchema = z7.object({
|
|
887
|
+
id: z7.int(),
|
|
888
|
+
provider: z7.nativeEnum(OAuthConnectionProvider),
|
|
889
|
+
provider_display: z7.string(),
|
|
890
|
+
provider_username: z7.string(),
|
|
891
|
+
provider_email: z7.email(),
|
|
892
|
+
provider_avatar_url: z7.union([z7.url(), z7.literal("")]),
|
|
893
|
+
connected_at: z7.iso.datetime(),
|
|
894
|
+
last_login_at: z7.iso.datetime()
|
|
881
895
|
});
|
|
882
896
|
|
|
883
|
-
// src/generated/cfg_accounts/_utils/schemas/
|
|
897
|
+
// src/generated/cfg_accounts/_utils/schemas/OAuthDisconnectRequestRequest.schema.ts
|
|
884
898
|
import { z as z8 } from "zod";
|
|
885
|
-
var
|
|
886
|
-
|
|
887
|
-
error_description: z8.string().optional()
|
|
899
|
+
var OAuthDisconnectRequestRequestSchema = z8.object({
|
|
900
|
+
provider: z8.nativeEnum(OAuthDisconnectRequestRequestProvider)
|
|
888
901
|
});
|
|
889
902
|
|
|
890
|
-
// src/generated/cfg_accounts/_utils/schemas/
|
|
903
|
+
// src/generated/cfg_accounts/_utils/schemas/OAuthError.schema.ts
|
|
891
904
|
import { z as z9 } from "zod";
|
|
892
|
-
var
|
|
893
|
-
|
|
905
|
+
var OAuthErrorSchema = z9.object({
|
|
906
|
+
error: z9.string(),
|
|
907
|
+
error_description: z9.string().optional()
|
|
894
908
|
});
|
|
895
909
|
|
|
896
|
-
// src/generated/cfg_accounts/_utils/schemas/
|
|
910
|
+
// src/generated/cfg_accounts/_utils/schemas/OAuthProvidersResponse.schema.ts
|
|
897
911
|
import { z as z10 } from "zod";
|
|
898
|
-
var
|
|
899
|
-
|
|
900
|
-
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(),
|
|
901
|
-
access: z10.string().nullable().optional(),
|
|
902
|
-
refresh: z10.string().nullable().optional(),
|
|
903
|
-
user: z10.record(z10.string(), z10.any()).nullable().optional(),
|
|
904
|
-
is_new_user: z10.boolean(),
|
|
905
|
-
is_new_connection: z10.boolean(),
|
|
906
|
-
should_prompt_2fa: z10.boolean().optional()
|
|
912
|
+
var OAuthProvidersResponseSchema = z10.object({
|
|
913
|
+
providers: z10.array(z10.record(z10.string(), z10.any()))
|
|
907
914
|
});
|
|
908
915
|
|
|
909
|
-
// src/generated/cfg_accounts/_utils/schemas/
|
|
916
|
+
// src/generated/cfg_accounts/_utils/schemas/OAuthTokenResponse.schema.ts
|
|
910
917
|
import { z as z11 } from "zod";
|
|
911
|
-
var
|
|
912
|
-
|
|
918
|
+
var OAuthTokenResponseSchema = z11.object({
|
|
919
|
+
requires_2fa: z11.boolean().optional(),
|
|
920
|
+
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(),
|
|
921
|
+
access: z11.string().nullable().optional(),
|
|
922
|
+
refresh: z11.string().nullable().optional(),
|
|
923
|
+
user: z11.record(z11.string(), z11.any()).nullable().optional(),
|
|
924
|
+
is_new_user: z11.boolean(),
|
|
925
|
+
is_new_connection: z11.boolean(),
|
|
926
|
+
should_prompt_2fa: z11.boolean().optional()
|
|
913
927
|
});
|
|
914
928
|
|
|
915
|
-
// src/generated/cfg_accounts/_utils/schemas/
|
|
929
|
+
// src/generated/cfg_accounts/_utils/schemas/OTPErrorResponse.schema.ts
|
|
916
930
|
import { z as z12 } from "zod";
|
|
917
|
-
var
|
|
918
|
-
|
|
919
|
-
channel: z12.nativeEnum(OTPRequestRequestChannel).optional(),
|
|
920
|
-
source_url: z12.union([z12.url(), z12.literal("")]).optional()
|
|
931
|
+
var OTPErrorResponseSchema = z12.object({
|
|
932
|
+
error: z12.string()
|
|
921
933
|
});
|
|
922
934
|
|
|
923
|
-
// src/generated/cfg_accounts/_utils/schemas/
|
|
935
|
+
// src/generated/cfg_accounts/_utils/schemas/OTPRequestRequest.schema.ts
|
|
924
936
|
import { z as z13 } from "zod";
|
|
925
|
-
var
|
|
926
|
-
|
|
937
|
+
var OTPRequestRequestSchema = z13.object({
|
|
938
|
+
identifier: z13.string().min(1),
|
|
939
|
+
channel: z13.nativeEnum(OTPRequestRequestChannel).optional(),
|
|
940
|
+
source_url: z13.union([z13.url(), z13.literal("")]).optional()
|
|
927
941
|
});
|
|
928
942
|
|
|
929
|
-
// src/generated/cfg_accounts/_utils/schemas/
|
|
943
|
+
// src/generated/cfg_accounts/_utils/schemas/OTPRequestResponse.schema.ts
|
|
930
944
|
import { z as z14 } from "zod";
|
|
931
|
-
var
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
945
|
+
var OTPRequestResponseSchema = z14.object({
|
|
946
|
+
message: z14.string()
|
|
947
|
+
});
|
|
948
|
+
|
|
949
|
+
// src/generated/cfg_accounts/_utils/schemas/OTPVerifyRequest.schema.ts
|
|
950
|
+
import { z as z15 } from "zod";
|
|
951
|
+
var OTPVerifyRequestSchema = z15.object({
|
|
952
|
+
identifier: z15.string().min(1),
|
|
953
|
+
otp: z15.string().min(6).max(6),
|
|
954
|
+
channel: z15.nativeEnum(OTPVerifyRequestChannel).optional(),
|
|
955
|
+
source_url: z15.union([z15.url(), z15.literal("")]).optional()
|
|
936
956
|
});
|
|
937
957
|
|
|
938
958
|
// src/generated/cfg_accounts/_utils/schemas/OTPVerifyResponse.schema.ts
|
|
939
|
-
import { z as
|
|
959
|
+
import { z as z17 } from "zod";
|
|
940
960
|
|
|
941
961
|
// src/generated/cfg_accounts/_utils/schemas/User.schema.ts
|
|
942
|
-
import { z as
|
|
943
|
-
var UserSchema =
|
|
944
|
-
id:
|
|
945
|
-
email:
|
|
946
|
-
first_name:
|
|
947
|
-
last_name:
|
|
948
|
-
full_name:
|
|
949
|
-
initials:
|
|
950
|
-
display_username:
|
|
951
|
-
company:
|
|
952
|
-
phone:
|
|
953
|
-
position:
|
|
954
|
-
avatar:
|
|
955
|
-
is_staff:
|
|
956
|
-
is_superuser:
|
|
957
|
-
date_joined:
|
|
958
|
-
last_login:
|
|
959
|
-
unanswered_messages_count:
|
|
962
|
+
import { z as z16 } from "zod";
|
|
963
|
+
var UserSchema = z16.object({
|
|
964
|
+
id: z16.int(),
|
|
965
|
+
email: z16.email(),
|
|
966
|
+
first_name: z16.string().max(50).optional(),
|
|
967
|
+
last_name: z16.string().max(50).optional(),
|
|
968
|
+
full_name: z16.string(),
|
|
969
|
+
initials: z16.string(),
|
|
970
|
+
display_username: z16.string(),
|
|
971
|
+
company: z16.string().max(100).optional(),
|
|
972
|
+
phone: z16.string().max(20).optional(),
|
|
973
|
+
position: z16.string().max(100).optional(),
|
|
974
|
+
avatar: z16.union([z16.url(), z16.literal("")]).nullable(),
|
|
975
|
+
is_staff: z16.boolean(),
|
|
976
|
+
is_superuser: z16.boolean(),
|
|
977
|
+
date_joined: z16.iso.datetime(),
|
|
978
|
+
last_login: z16.iso.datetime().nullable(),
|
|
979
|
+
unanswered_messages_count: z16.int(),
|
|
960
980
|
centrifugo: CentrifugoTokenSchema.nullable()
|
|
961
981
|
});
|
|
962
982
|
|
|
963
983
|
// src/generated/cfg_accounts/_utils/schemas/OTPVerifyResponse.schema.ts
|
|
964
|
-
var OTPVerifyResponseSchema =
|
|
965
|
-
requires_2fa:
|
|
966
|
-
session_id:
|
|
967
|
-
refresh:
|
|
968
|
-
access:
|
|
984
|
+
var OTPVerifyResponseSchema = z17.object({
|
|
985
|
+
requires_2fa: z17.boolean().optional(),
|
|
986
|
+
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(),
|
|
987
|
+
refresh: z17.string().nullable().optional(),
|
|
988
|
+
access: z17.string().nullable().optional(),
|
|
969
989
|
user: UserSchema.nullable().optional(),
|
|
970
|
-
should_prompt_2fa:
|
|
990
|
+
should_prompt_2fa: z17.boolean().optional()
|
|
971
991
|
});
|
|
972
992
|
|
|
973
993
|
// src/generated/cfg_accounts/_utils/schemas/PatchedUserProfileUpdateRequest.schema.ts
|
|
974
|
-
import { z as
|
|
975
|
-
var PatchedUserProfileUpdateRequestSchema =
|
|
976
|
-
first_name:
|
|
977
|
-
last_name:
|
|
978
|
-
company:
|
|
979
|
-
phone:
|
|
980
|
-
position:
|
|
994
|
+
import { z as z18 } from "zod";
|
|
995
|
+
var PatchedUserProfileUpdateRequestSchema = z18.object({
|
|
996
|
+
first_name: z18.string().max(50).optional(),
|
|
997
|
+
last_name: z18.string().max(50).optional(),
|
|
998
|
+
company: z18.string().max(100).optional(),
|
|
999
|
+
phone: z18.string().max(20).optional(),
|
|
1000
|
+
position: z18.string().max(100).optional()
|
|
981
1001
|
});
|
|
982
1002
|
|
|
983
1003
|
// src/generated/cfg_accounts/_utils/schemas/TokenRefresh.schema.ts
|
|
984
|
-
import { z as
|
|
985
|
-
var TokenRefreshSchema =
|
|
986
|
-
access:
|
|
987
|
-
refresh:
|
|
1004
|
+
import { z as z19 } from "zod";
|
|
1005
|
+
var TokenRefreshSchema = z19.object({
|
|
1006
|
+
access: z19.string(),
|
|
1007
|
+
refresh: z19.string()
|
|
988
1008
|
});
|
|
989
1009
|
|
|
990
1010
|
// src/generated/cfg_accounts/_utils/schemas/TokenRefreshRequest.schema.ts
|
|
991
|
-
import { z as
|
|
992
|
-
var TokenRefreshRequestSchema =
|
|
993
|
-
refresh:
|
|
1011
|
+
import { z as z20 } from "zod";
|
|
1012
|
+
var TokenRefreshRequestSchema = z20.object({
|
|
1013
|
+
refresh: z20.string().min(1)
|
|
994
1014
|
});
|
|
995
1015
|
|
|
996
1016
|
// src/generated/cfg_accounts/_utils/schemas/UserProfileUpdateRequest.schema.ts
|
|
997
|
-
import { z as
|
|
998
|
-
var UserProfileUpdateRequestSchema =
|
|
999
|
-
first_name:
|
|
1000
|
-
last_name:
|
|
1001
|
-
company:
|
|
1002
|
-
phone:
|
|
1003
|
-
position:
|
|
1017
|
+
import { z as z21 } from "zod";
|
|
1018
|
+
var UserProfileUpdateRequestSchema = z21.object({
|
|
1019
|
+
first_name: z21.string().max(50).optional(),
|
|
1020
|
+
last_name: z21.string().max(50).optional(),
|
|
1021
|
+
company: z21.string().max(100).optional(),
|
|
1022
|
+
phone: z21.string().max(20).optional(),
|
|
1023
|
+
position: z21.string().max(100).optional()
|
|
1004
1024
|
});
|
|
1005
1025
|
|
|
1006
1026
|
// src/generated/cfg_accounts/_utils/fetchers/accounts.ts
|
|
@@ -1397,6 +1417,49 @@ Method: POST`);
|
|
|
1397
1417
|
}
|
|
1398
1418
|
}
|
|
1399
1419
|
__name(createAccountsProfileAvatarCreate, "createAccountsProfileAvatarCreate");
|
|
1420
|
+
async function createAccountsProfileDeleteCreate(client) {
|
|
1421
|
+
const api = client || getAPIInstance();
|
|
1422
|
+
const response = await api.user_profile.accountsProfileDeleteCreate();
|
|
1423
|
+
try {
|
|
1424
|
+
return AccountDeleteResponseSchema.parse(response);
|
|
1425
|
+
} catch (error) {
|
|
1426
|
+
consola4.error("\u274C Zod Validation Failed");
|
|
1427
|
+
consola4.box(`createAccountsProfileDeleteCreate
|
|
1428
|
+
Path: /cfg/accounts/profile/delete/
|
|
1429
|
+
Method: POST`);
|
|
1430
|
+
if (error instanceof Error && "issues" in error && Array.isArray(error.issues)) {
|
|
1431
|
+
consola4.error("Validation Issues:");
|
|
1432
|
+
error.issues.forEach((issue, index) => {
|
|
1433
|
+
consola4.error(` ${index + 1}. ${issue.path.join(".") || "root"}`);
|
|
1434
|
+
consola4.error(` \u251C\u2500 Message: ${issue.message}`);
|
|
1435
|
+
if (issue.expected) consola4.error(` \u251C\u2500 Expected: ${issue.expected}`);
|
|
1436
|
+
if (issue.received) consola4.error(` \u2514\u2500 Received: ${issue.received}`);
|
|
1437
|
+
});
|
|
1438
|
+
}
|
|
1439
|
+
consola4.error("Response data:", response);
|
|
1440
|
+
if (typeof window !== "undefined" && error instanceof Error && "issues" in error) {
|
|
1441
|
+
try {
|
|
1442
|
+
const event = new CustomEvent("zod-validation-error", {
|
|
1443
|
+
detail: {
|
|
1444
|
+
operation: "createAccountsProfileDeleteCreate",
|
|
1445
|
+
path: "/cfg/accounts/profile/delete/",
|
|
1446
|
+
method: "POST",
|
|
1447
|
+
error,
|
|
1448
|
+
response,
|
|
1449
|
+
timestamp: /* @__PURE__ */ new Date()
|
|
1450
|
+
},
|
|
1451
|
+
bubbles: true,
|
|
1452
|
+
cancelable: false
|
|
1453
|
+
});
|
|
1454
|
+
window.dispatchEvent(event);
|
|
1455
|
+
} catch (eventError) {
|
|
1456
|
+
consola4.warn("Failed to dispatch validation error event:", eventError);
|
|
1457
|
+
}
|
|
1458
|
+
}
|
|
1459
|
+
throw error;
|
|
1460
|
+
}
|
|
1461
|
+
}
|
|
1462
|
+
__name(createAccountsProfileDeleteCreate, "createAccountsProfileDeleteCreate");
|
|
1400
1463
|
async function partialUpdateAccountsProfilePartialUpdate(data, client) {
|
|
1401
1464
|
const api = client || getAPIInstance();
|
|
1402
1465
|
const response = await api.user_profile.accountsProfilePartialUpdate(data);
|
|
@@ -2572,320 +2635,320 @@ __export(schemas_exports2, {
|
|
|
2572
2635
|
});
|
|
2573
2636
|
|
|
2574
2637
|
// src/generated/cfg_centrifugo/_utils/schemas/CentrifugoChannelInfo.schema.ts
|
|
2575
|
-
import { z as
|
|
2576
|
-
var CentrifugoChannelInfoSchema =
|
|
2577
|
-
num_clients:
|
|
2638
|
+
import { z as z22 } from "zod";
|
|
2639
|
+
var CentrifugoChannelInfoSchema = z22.object({
|
|
2640
|
+
num_clients: z22.int()
|
|
2578
2641
|
});
|
|
2579
2642
|
|
|
2580
2643
|
// src/generated/cfg_centrifugo/_utils/schemas/CentrifugoChannelsRequestRequest.schema.ts
|
|
2581
|
-
import { z as
|
|
2582
|
-
var CentrifugoChannelsRequestRequestSchema =
|
|
2583
|
-
pattern:
|
|
2644
|
+
import { z as z23 } from "zod";
|
|
2645
|
+
var CentrifugoChannelsRequestRequestSchema = z23.object({
|
|
2646
|
+
pattern: z23.string().nullable().optional()
|
|
2584
2647
|
});
|
|
2585
2648
|
|
|
2586
2649
|
// src/generated/cfg_centrifugo/_utils/schemas/CentrifugoChannelsResponse.schema.ts
|
|
2587
|
-
import { z as
|
|
2650
|
+
import { z as z26 } from "zod";
|
|
2588
2651
|
|
|
2589
2652
|
// src/generated/cfg_centrifugo/_utils/schemas/CentrifugoChannelsResult.schema.ts
|
|
2590
|
-
import { z as
|
|
2591
|
-
var CentrifugoChannelsResultSchema =
|
|
2592
|
-
channels:
|
|
2653
|
+
import { z as z24 } from "zod";
|
|
2654
|
+
var CentrifugoChannelsResultSchema = z24.object({
|
|
2655
|
+
channels: z24.record(z24.string(), CentrifugoChannelInfoSchema)
|
|
2593
2656
|
});
|
|
2594
2657
|
|
|
2595
2658
|
// src/generated/cfg_centrifugo/_utils/schemas/CentrifugoError.schema.ts
|
|
2596
|
-
import { z as
|
|
2597
|
-
var CentrifugoErrorSchema =
|
|
2598
|
-
code:
|
|
2599
|
-
message:
|
|
2659
|
+
import { z as z25 } from "zod";
|
|
2660
|
+
var CentrifugoErrorSchema = z25.object({
|
|
2661
|
+
code: z25.int().optional(),
|
|
2662
|
+
message: z25.string().optional()
|
|
2600
2663
|
});
|
|
2601
2664
|
|
|
2602
2665
|
// src/generated/cfg_centrifugo/_utils/schemas/CentrifugoChannelsResponse.schema.ts
|
|
2603
|
-
var CentrifugoChannelsResponseSchema =
|
|
2666
|
+
var CentrifugoChannelsResponseSchema = z26.object({
|
|
2604
2667
|
error: CentrifugoErrorSchema.optional(),
|
|
2605
2668
|
result: CentrifugoChannelsResultSchema.optional()
|
|
2606
2669
|
});
|
|
2607
2670
|
|
|
2608
2671
|
// src/generated/cfg_centrifugo/_utils/schemas/CentrifugoClientInfo.schema.ts
|
|
2609
|
-
import { z as
|
|
2610
|
-
var CentrifugoClientInfoSchema =
|
|
2611
|
-
user:
|
|
2612
|
-
client:
|
|
2613
|
-
conn_info:
|
|
2614
|
-
chan_info:
|
|
2672
|
+
import { z as z27 } from "zod";
|
|
2673
|
+
var CentrifugoClientInfoSchema = z27.object({
|
|
2674
|
+
user: z27.string(),
|
|
2675
|
+
client: z27.string(),
|
|
2676
|
+
conn_info: z27.record(z27.string(), z27.any()).nullable().optional(),
|
|
2677
|
+
chan_info: z27.record(z27.string(), z27.any()).nullable().optional()
|
|
2615
2678
|
});
|
|
2616
2679
|
|
|
2617
2680
|
// src/generated/cfg_centrifugo/_utils/schemas/CentrifugoHealthCheck.schema.ts
|
|
2618
|
-
import { z as
|
|
2619
|
-
var CentrifugoHealthCheckSchema =
|
|
2620
|
-
status:
|
|
2621
|
-
wrapper_url:
|
|
2622
|
-
has_api_key:
|
|
2623
|
-
timestamp:
|
|
2681
|
+
import { z as z28 } from "zod";
|
|
2682
|
+
var CentrifugoHealthCheckSchema = z28.object({
|
|
2683
|
+
status: z28.string(),
|
|
2684
|
+
wrapper_url: z28.string(),
|
|
2685
|
+
has_api_key: z28.boolean(),
|
|
2686
|
+
timestamp: z28.string()
|
|
2624
2687
|
});
|
|
2625
2688
|
|
|
2626
2689
|
// src/generated/cfg_centrifugo/_utils/schemas/CentrifugoHistoryRequestRequest.schema.ts
|
|
2627
|
-
import { z as
|
|
2690
|
+
import { z as z30 } from "zod";
|
|
2628
2691
|
|
|
2629
2692
|
// src/generated/cfg_centrifugo/_utils/schemas/CentrifugoStreamPosition.schema.ts
|
|
2630
|
-
import { z as
|
|
2631
|
-
var CentrifugoStreamPositionSchema =
|
|
2632
|
-
offset:
|
|
2633
|
-
epoch:
|
|
2693
|
+
import { z as z29 } from "zod";
|
|
2694
|
+
var CentrifugoStreamPositionSchema = z29.object({
|
|
2695
|
+
offset: z29.int(),
|
|
2696
|
+
epoch: z29.string()
|
|
2634
2697
|
});
|
|
2635
2698
|
|
|
2636
2699
|
// src/generated/cfg_centrifugo/_utils/schemas/CentrifugoHistoryRequestRequest.schema.ts
|
|
2637
|
-
var CentrifugoHistoryRequestRequestSchema =
|
|
2638
|
-
channel:
|
|
2639
|
-
limit:
|
|
2700
|
+
var CentrifugoHistoryRequestRequestSchema = z30.object({
|
|
2701
|
+
channel: z30.string(),
|
|
2702
|
+
limit: z30.int().nullable().optional(),
|
|
2640
2703
|
since: CentrifugoStreamPositionSchema.optional(),
|
|
2641
|
-
reverse:
|
|
2704
|
+
reverse: z30.boolean().nullable().optional()
|
|
2642
2705
|
});
|
|
2643
2706
|
|
|
2644
2707
|
// src/generated/cfg_centrifugo/_utils/schemas/CentrifugoHistoryResponse.schema.ts
|
|
2645
|
-
import { z as
|
|
2708
|
+
import { z as z33 } from "zod";
|
|
2646
2709
|
|
|
2647
2710
|
// src/generated/cfg_centrifugo/_utils/schemas/CentrifugoHistoryResult.schema.ts
|
|
2648
|
-
import { z as
|
|
2711
|
+
import { z as z32 } from "zod";
|
|
2649
2712
|
|
|
2650
2713
|
// src/generated/cfg_centrifugo/_utils/schemas/CentrifugoPublication.schema.ts
|
|
2651
|
-
import { z as
|
|
2652
|
-
var CentrifugoPublicationSchema =
|
|
2653
|
-
data:
|
|
2714
|
+
import { z as z31 } from "zod";
|
|
2715
|
+
var CentrifugoPublicationSchema = z31.object({
|
|
2716
|
+
data: z31.record(z31.string(), z31.any()),
|
|
2654
2717
|
info: CentrifugoClientInfoSchema.optional(),
|
|
2655
|
-
offset:
|
|
2656
|
-
tags:
|
|
2718
|
+
offset: z31.int(),
|
|
2719
|
+
tags: z31.record(z31.string(), z31.any()).nullable().optional()
|
|
2657
2720
|
});
|
|
2658
2721
|
|
|
2659
2722
|
// src/generated/cfg_centrifugo/_utils/schemas/CentrifugoHistoryResult.schema.ts
|
|
2660
|
-
var CentrifugoHistoryResultSchema =
|
|
2661
|
-
publications:
|
|
2662
|
-
epoch:
|
|
2663
|
-
offset:
|
|
2723
|
+
var CentrifugoHistoryResultSchema = z32.object({
|
|
2724
|
+
publications: z32.array(CentrifugoPublicationSchema),
|
|
2725
|
+
epoch: z32.string(),
|
|
2726
|
+
offset: z32.int()
|
|
2664
2727
|
});
|
|
2665
2728
|
|
|
2666
2729
|
// src/generated/cfg_centrifugo/_utils/schemas/CentrifugoHistoryResponse.schema.ts
|
|
2667
|
-
var CentrifugoHistoryResponseSchema =
|
|
2730
|
+
var CentrifugoHistoryResponseSchema = z33.object({
|
|
2668
2731
|
error: CentrifugoErrorSchema.optional(),
|
|
2669
2732
|
result: CentrifugoHistoryResultSchema.optional()
|
|
2670
2733
|
});
|
|
2671
2734
|
|
|
2672
2735
|
// src/generated/cfg_centrifugo/_utils/schemas/CentrifugoInfoResponse.schema.ts
|
|
2673
|
-
import { z as
|
|
2736
|
+
import { z as z38 } from "zod";
|
|
2674
2737
|
|
|
2675
2738
|
// src/generated/cfg_centrifugo/_utils/schemas/CentrifugoInfoResult.schema.ts
|
|
2676
|
-
import { z as
|
|
2739
|
+
import { z as z37 } from "zod";
|
|
2677
2740
|
|
|
2678
2741
|
// src/generated/cfg_centrifugo/_utils/schemas/CentrifugoNodeInfo.schema.ts
|
|
2679
|
-
import { z as
|
|
2742
|
+
import { z as z36 } from "zod";
|
|
2680
2743
|
|
|
2681
2744
|
// src/generated/cfg_centrifugo/_utils/schemas/CentrifugoMetrics.schema.ts
|
|
2682
|
-
import { z as
|
|
2683
|
-
var CentrifugoMetricsSchema =
|
|
2684
|
-
interval:
|
|
2685
|
-
items:
|
|
2745
|
+
import { z as z34 } from "zod";
|
|
2746
|
+
var CentrifugoMetricsSchema = z34.object({
|
|
2747
|
+
interval: z34.number(),
|
|
2748
|
+
items: z34.record(z34.string(), z34.number())
|
|
2686
2749
|
});
|
|
2687
2750
|
|
|
2688
2751
|
// src/generated/cfg_centrifugo/_utils/schemas/CentrifugoProcess.schema.ts
|
|
2689
|
-
import { z as
|
|
2690
|
-
var CentrifugoProcessSchema =
|
|
2691
|
-
cpu:
|
|
2692
|
-
rss:
|
|
2752
|
+
import { z as z35 } from "zod";
|
|
2753
|
+
var CentrifugoProcessSchema = z35.object({
|
|
2754
|
+
cpu: z35.number(),
|
|
2755
|
+
rss: z35.int()
|
|
2693
2756
|
});
|
|
2694
2757
|
|
|
2695
2758
|
// src/generated/cfg_centrifugo/_utils/schemas/CentrifugoNodeInfo.schema.ts
|
|
2696
|
-
var CentrifugoNodeInfoSchema =
|
|
2697
|
-
uid:
|
|
2698
|
-
name:
|
|
2699
|
-
version:
|
|
2700
|
-
num_clients:
|
|
2701
|
-
num_users:
|
|
2702
|
-
num_channels:
|
|
2703
|
-
uptime:
|
|
2704
|
-
num_subs:
|
|
2759
|
+
var CentrifugoNodeInfoSchema = z36.object({
|
|
2760
|
+
uid: z36.string(),
|
|
2761
|
+
name: z36.string(),
|
|
2762
|
+
version: z36.string(),
|
|
2763
|
+
num_clients: z36.int(),
|
|
2764
|
+
num_users: z36.int(),
|
|
2765
|
+
num_channels: z36.int(),
|
|
2766
|
+
uptime: z36.int(),
|
|
2767
|
+
num_subs: z36.int(),
|
|
2705
2768
|
metrics: CentrifugoMetricsSchema.optional(),
|
|
2706
2769
|
process: CentrifugoProcessSchema.optional()
|
|
2707
2770
|
});
|
|
2708
2771
|
|
|
2709
2772
|
// src/generated/cfg_centrifugo/_utils/schemas/CentrifugoInfoResult.schema.ts
|
|
2710
|
-
var CentrifugoInfoResultSchema =
|
|
2711
|
-
nodes:
|
|
2773
|
+
var CentrifugoInfoResultSchema = z37.object({
|
|
2774
|
+
nodes: z37.array(CentrifugoNodeInfoSchema)
|
|
2712
2775
|
});
|
|
2713
2776
|
|
|
2714
2777
|
// src/generated/cfg_centrifugo/_utils/schemas/CentrifugoInfoResponse.schema.ts
|
|
2715
|
-
var CentrifugoInfoResponseSchema =
|
|
2778
|
+
var CentrifugoInfoResponseSchema = z38.object({
|
|
2716
2779
|
error: CentrifugoErrorSchema.optional(),
|
|
2717
2780
|
result: CentrifugoInfoResultSchema.optional()
|
|
2718
2781
|
});
|
|
2719
2782
|
|
|
2720
2783
|
// src/generated/cfg_centrifugo/_utils/schemas/CentrifugoOverviewStats.schema.ts
|
|
2721
|
-
import { z as
|
|
2722
|
-
var CentrifugoOverviewStatsSchema =
|
|
2723
|
-
total:
|
|
2724
|
-
successful:
|
|
2725
|
-
failed:
|
|
2726
|
-
timeout:
|
|
2727
|
-
success_rate:
|
|
2728
|
-
avg_duration_ms:
|
|
2729
|
-
avg_acks_received:
|
|
2730
|
-
period_hours:
|
|
2784
|
+
import { z as z39 } from "zod";
|
|
2785
|
+
var CentrifugoOverviewStatsSchema = z39.object({
|
|
2786
|
+
total: z39.int(),
|
|
2787
|
+
successful: z39.int(),
|
|
2788
|
+
failed: z39.int(),
|
|
2789
|
+
timeout: z39.int(),
|
|
2790
|
+
success_rate: z39.number(),
|
|
2791
|
+
avg_duration_ms: z39.number(),
|
|
2792
|
+
avg_acks_received: z39.number(),
|
|
2793
|
+
period_hours: z39.int()
|
|
2731
2794
|
});
|
|
2732
2795
|
|
|
2733
2796
|
// src/generated/cfg_centrifugo/_utils/schemas/CentrifugoPresenceRequestRequest.schema.ts
|
|
2734
|
-
import { z as
|
|
2735
|
-
var CentrifugoPresenceRequestRequestSchema =
|
|
2736
|
-
channel:
|
|
2797
|
+
import { z as z40 } from "zod";
|
|
2798
|
+
var CentrifugoPresenceRequestRequestSchema = z40.object({
|
|
2799
|
+
channel: z40.string()
|
|
2737
2800
|
});
|
|
2738
2801
|
|
|
2739
2802
|
// src/generated/cfg_centrifugo/_utils/schemas/CentrifugoPresenceResponse.schema.ts
|
|
2740
|
-
import { z as
|
|
2803
|
+
import { z as z42 } from "zod";
|
|
2741
2804
|
|
|
2742
2805
|
// src/generated/cfg_centrifugo/_utils/schemas/CentrifugoPresenceResult.schema.ts
|
|
2743
|
-
import { z as
|
|
2744
|
-
var CentrifugoPresenceResultSchema =
|
|
2745
|
-
presence:
|
|
2806
|
+
import { z as z41 } from "zod";
|
|
2807
|
+
var CentrifugoPresenceResultSchema = z41.object({
|
|
2808
|
+
presence: z41.record(z41.string(), CentrifugoClientInfoSchema)
|
|
2746
2809
|
});
|
|
2747
2810
|
|
|
2748
2811
|
// src/generated/cfg_centrifugo/_utils/schemas/CentrifugoPresenceResponse.schema.ts
|
|
2749
|
-
var CentrifugoPresenceResponseSchema =
|
|
2812
|
+
var CentrifugoPresenceResponseSchema = z42.object({
|
|
2750
2813
|
error: CentrifugoErrorSchema.optional(),
|
|
2751
2814
|
result: CentrifugoPresenceResultSchema.optional()
|
|
2752
2815
|
});
|
|
2753
2816
|
|
|
2754
2817
|
// src/generated/cfg_centrifugo/_utils/schemas/CentrifugoPresenceStatsRequestRequest.schema.ts
|
|
2755
|
-
import { z as
|
|
2756
|
-
var CentrifugoPresenceStatsRequestRequestSchema =
|
|
2757
|
-
channel:
|
|
2818
|
+
import { z as z43 } from "zod";
|
|
2819
|
+
var CentrifugoPresenceStatsRequestRequestSchema = z43.object({
|
|
2820
|
+
channel: z43.string()
|
|
2758
2821
|
});
|
|
2759
2822
|
|
|
2760
2823
|
// src/generated/cfg_centrifugo/_utils/schemas/CentrifugoPresenceStatsResponse.schema.ts
|
|
2761
|
-
import { z as
|
|
2824
|
+
import { z as z45 } from "zod";
|
|
2762
2825
|
|
|
2763
2826
|
// src/generated/cfg_centrifugo/_utils/schemas/CentrifugoPresenceStatsResult.schema.ts
|
|
2764
|
-
import { z as
|
|
2765
|
-
var CentrifugoPresenceStatsResultSchema =
|
|
2766
|
-
num_clients:
|
|
2767
|
-
num_users:
|
|
2827
|
+
import { z as z44 } from "zod";
|
|
2828
|
+
var CentrifugoPresenceStatsResultSchema = z44.object({
|
|
2829
|
+
num_clients: z44.int(),
|
|
2830
|
+
num_users: z44.int()
|
|
2768
2831
|
});
|
|
2769
2832
|
|
|
2770
2833
|
// src/generated/cfg_centrifugo/_utils/schemas/CentrifugoPresenceStatsResponse.schema.ts
|
|
2771
|
-
var CentrifugoPresenceStatsResponseSchema =
|
|
2834
|
+
var CentrifugoPresenceStatsResponseSchema = z45.object({
|
|
2772
2835
|
error: CentrifugoErrorSchema.optional(),
|
|
2773
2836
|
result: CentrifugoPresenceStatsResultSchema.optional()
|
|
2774
2837
|
});
|
|
2775
2838
|
|
|
2776
2839
|
// src/generated/cfg_centrifugo/_utils/schemas/ChannelList.schema.ts
|
|
2777
|
-
import { z as
|
|
2840
|
+
import { z as z47 } from "zod";
|
|
2778
2841
|
|
|
2779
2842
|
// src/generated/cfg_centrifugo/_utils/schemas/ChannelStats.schema.ts
|
|
2780
|
-
import { z as
|
|
2781
|
-
var ChannelStatsSchema =
|
|
2782
|
-
channel:
|
|
2783
|
-
total:
|
|
2784
|
-
successful:
|
|
2785
|
-
failed:
|
|
2786
|
-
avg_duration_ms:
|
|
2787
|
-
avg_acks:
|
|
2788
|
-
last_activity_at:
|
|
2843
|
+
import { z as z46 } from "zod";
|
|
2844
|
+
var ChannelStatsSchema = z46.object({
|
|
2845
|
+
channel: z46.string(),
|
|
2846
|
+
total: z46.int(),
|
|
2847
|
+
successful: z46.int(),
|
|
2848
|
+
failed: z46.int(),
|
|
2849
|
+
avg_duration_ms: z46.number(),
|
|
2850
|
+
avg_acks: z46.number(),
|
|
2851
|
+
last_activity_at: z46.string().nullable()
|
|
2789
2852
|
});
|
|
2790
2853
|
|
|
2791
2854
|
// src/generated/cfg_centrifugo/_utils/schemas/ChannelList.schema.ts
|
|
2792
|
-
var ChannelListSchema =
|
|
2793
|
-
channels:
|
|
2794
|
-
total_channels:
|
|
2855
|
+
var ChannelListSchema = z47.object({
|
|
2856
|
+
channels: z47.array(ChannelStatsSchema),
|
|
2857
|
+
total_channels: z47.int()
|
|
2795
2858
|
});
|
|
2796
2859
|
|
|
2797
2860
|
// src/generated/cfg_centrifugo/_utils/schemas/ConnectionTokenResponse.schema.ts
|
|
2798
|
-
import { z as
|
|
2799
|
-
var ConnectionTokenResponseSchema =
|
|
2800
|
-
token:
|
|
2801
|
-
centrifugo_url:
|
|
2802
|
-
expires_at:
|
|
2803
|
-
channels:
|
|
2861
|
+
import { z as z48 } from "zod";
|
|
2862
|
+
var ConnectionTokenResponseSchema = z48.object({
|
|
2863
|
+
token: z48.string(),
|
|
2864
|
+
centrifugo_url: z48.string(),
|
|
2865
|
+
expires_at: z48.string(),
|
|
2866
|
+
channels: z48.array(z48.string())
|
|
2804
2867
|
});
|
|
2805
2868
|
|
|
2806
2869
|
// src/generated/cfg_centrifugo/_utils/schemas/ManualAckRequestRequest.schema.ts
|
|
2807
|
-
import { z as
|
|
2808
|
-
var ManualAckRequestRequestSchema =
|
|
2809
|
-
message_id:
|
|
2810
|
-
client_id:
|
|
2870
|
+
import { z as z49 } from "zod";
|
|
2871
|
+
var ManualAckRequestRequestSchema = z49.object({
|
|
2872
|
+
message_id: z49.string(),
|
|
2873
|
+
client_id: z49.string()
|
|
2811
2874
|
});
|
|
2812
2875
|
|
|
2813
2876
|
// src/generated/cfg_centrifugo/_utils/schemas/ManualAckResponse.schema.ts
|
|
2814
|
-
import { z as
|
|
2815
|
-
var ManualAckResponseSchema =
|
|
2816
|
-
success:
|
|
2817
|
-
message_id:
|
|
2818
|
-
error:
|
|
2877
|
+
import { z as z50 } from "zod";
|
|
2878
|
+
var ManualAckResponseSchema = z50.object({
|
|
2879
|
+
success: z50.boolean(),
|
|
2880
|
+
message_id: z50.string(),
|
|
2881
|
+
error: z50.string().nullable().optional()
|
|
2819
2882
|
});
|
|
2820
2883
|
|
|
2821
2884
|
// src/generated/cfg_centrifugo/_utils/schemas/PaginatedPublishList.schema.ts
|
|
2822
|
-
import { z as
|
|
2885
|
+
import { z as z52 } from "zod";
|
|
2823
2886
|
|
|
2824
2887
|
// src/generated/cfg_centrifugo/_utils/schemas/Publish.schema.ts
|
|
2825
|
-
import { z as
|
|
2826
|
-
var PublishSchema =
|
|
2827
|
-
message_id:
|
|
2828
|
-
channel:
|
|
2829
|
-
status:
|
|
2830
|
-
wait_for_ack:
|
|
2831
|
-
acks_received:
|
|
2832
|
-
acks_expected:
|
|
2833
|
-
duration_ms:
|
|
2834
|
-
created_at:
|
|
2835
|
-
completed_at:
|
|
2836
|
-
error_code:
|
|
2837
|
-
error_message:
|
|
2888
|
+
import { z as z51 } from "zod";
|
|
2889
|
+
var PublishSchema = z51.object({
|
|
2890
|
+
message_id: z51.string(),
|
|
2891
|
+
channel: z51.string(),
|
|
2892
|
+
status: z51.string(),
|
|
2893
|
+
wait_for_ack: z51.boolean(),
|
|
2894
|
+
acks_received: z51.int(),
|
|
2895
|
+
acks_expected: z51.int().nullable(),
|
|
2896
|
+
duration_ms: z51.number().nullable(),
|
|
2897
|
+
created_at: z51.iso.datetime(),
|
|
2898
|
+
completed_at: z51.iso.datetime().nullable(),
|
|
2899
|
+
error_code: z51.string().nullable(),
|
|
2900
|
+
error_message: z51.string().nullable()
|
|
2838
2901
|
});
|
|
2839
2902
|
|
|
2840
2903
|
// src/generated/cfg_centrifugo/_utils/schemas/PaginatedPublishList.schema.ts
|
|
2841
|
-
var PaginatedPublishListSchema =
|
|
2842
|
-
count:
|
|
2843
|
-
page:
|
|
2844
|
-
pages:
|
|
2845
|
-
page_size:
|
|
2846
|
-
has_next:
|
|
2847
|
-
has_previous:
|
|
2848
|
-
next_page:
|
|
2849
|
-
previous_page:
|
|
2850
|
-
results:
|
|
2904
|
+
var PaginatedPublishListSchema = z52.object({
|
|
2905
|
+
count: z52.int(),
|
|
2906
|
+
page: z52.int(),
|
|
2907
|
+
pages: z52.int(),
|
|
2908
|
+
page_size: z52.int(),
|
|
2909
|
+
has_next: z52.boolean(),
|
|
2910
|
+
has_previous: z52.boolean(),
|
|
2911
|
+
next_page: z52.int().nullable().optional(),
|
|
2912
|
+
previous_page: z52.int().nullable().optional(),
|
|
2913
|
+
results: z52.array(PublishSchema)
|
|
2851
2914
|
});
|
|
2852
2915
|
|
|
2853
2916
|
// src/generated/cfg_centrifugo/_utils/schemas/PublishTestRequestRequest.schema.ts
|
|
2854
|
-
import { z as
|
|
2855
|
-
var PublishTestRequestRequestSchema =
|
|
2856
|
-
channel:
|
|
2857
|
-
data:
|
|
2858
|
-
wait_for_ack:
|
|
2859
|
-
ack_timeout:
|
|
2917
|
+
import { z as z53 } from "zod";
|
|
2918
|
+
var PublishTestRequestRequestSchema = z53.object({
|
|
2919
|
+
channel: z53.string(),
|
|
2920
|
+
data: z53.record(z53.string(), z53.any()),
|
|
2921
|
+
wait_for_ack: z53.boolean().optional(),
|
|
2922
|
+
ack_timeout: z53.int().min(1).max(60).optional()
|
|
2860
2923
|
});
|
|
2861
2924
|
|
|
2862
2925
|
// src/generated/cfg_centrifugo/_utils/schemas/PublishTestResponse.schema.ts
|
|
2863
|
-
import { z as
|
|
2864
|
-
var PublishTestResponseSchema =
|
|
2865
|
-
success:
|
|
2866
|
-
message_id:
|
|
2867
|
-
channel:
|
|
2868
|
-
acks_received:
|
|
2869
|
-
delivered:
|
|
2870
|
-
error:
|
|
2926
|
+
import { z as z54 } from "zod";
|
|
2927
|
+
var PublishTestResponseSchema = z54.object({
|
|
2928
|
+
success: z54.boolean(),
|
|
2929
|
+
message_id: z54.string(),
|
|
2930
|
+
channel: z54.string(),
|
|
2931
|
+
acks_received: z54.int().optional(),
|
|
2932
|
+
delivered: z54.boolean().optional(),
|
|
2933
|
+
error: z54.string().nullable().optional()
|
|
2871
2934
|
});
|
|
2872
2935
|
|
|
2873
2936
|
// src/generated/cfg_centrifugo/_utils/schemas/TimelineItem.schema.ts
|
|
2874
|
-
import { z as
|
|
2875
|
-
var TimelineItemSchema =
|
|
2876
|
-
timestamp:
|
|
2877
|
-
count:
|
|
2878
|
-
successful:
|
|
2879
|
-
failed:
|
|
2880
|
-
timeout:
|
|
2937
|
+
import { z as z55 } from "zod";
|
|
2938
|
+
var TimelineItemSchema = z55.object({
|
|
2939
|
+
timestamp: z55.string(),
|
|
2940
|
+
count: z55.int(),
|
|
2941
|
+
successful: z55.int(),
|
|
2942
|
+
failed: z55.int(),
|
|
2943
|
+
timeout: z55.int()
|
|
2881
2944
|
});
|
|
2882
2945
|
|
|
2883
2946
|
// src/generated/cfg_centrifugo/_utils/schemas/TimelineResponse.schema.ts
|
|
2884
|
-
import { z as
|
|
2885
|
-
var TimelineResponseSchema =
|
|
2886
|
-
timeline:
|
|
2887
|
-
period_hours:
|
|
2888
|
-
interval:
|
|
2947
|
+
import { z as z56 } from "zod";
|
|
2948
|
+
var TimelineResponseSchema = z56.object({
|
|
2949
|
+
timeline: z56.array(TimelineItemSchema),
|
|
2950
|
+
period_hours: z56.int(),
|
|
2951
|
+
interval: z56.string()
|
|
2889
2952
|
});
|
|
2890
2953
|
|
|
2891
2954
|
// src/generated/cfg_centrifugo/_utils/fetchers/index.ts
|
|
@@ -4460,112 +4523,112 @@ __export(schemas_exports3, {
|
|
|
4460
4523
|
});
|
|
4461
4524
|
|
|
4462
4525
|
// src/generated/cfg_totp/_utils/schemas/BackupCodesRegenerateRequest.schema.ts
|
|
4463
|
-
import { z as
|
|
4464
|
-
var BackupCodesRegenerateRequestSchema =
|
|
4465
|
-
code:
|
|
4526
|
+
import { z as z57 } from "zod";
|
|
4527
|
+
var BackupCodesRegenerateRequestSchema = z57.object({
|
|
4528
|
+
code: z57.string().min(6).max(6)
|
|
4466
4529
|
});
|
|
4467
4530
|
|
|
4468
4531
|
// src/generated/cfg_totp/_utils/schemas/BackupCodesRegenerateResponse.schema.ts
|
|
4469
|
-
import { z as
|
|
4470
|
-
var BackupCodesRegenerateResponseSchema =
|
|
4471
|
-
backup_codes:
|
|
4472
|
-
warning:
|
|
4532
|
+
import { z as z58 } from "zod";
|
|
4533
|
+
var BackupCodesRegenerateResponseSchema = z58.object({
|
|
4534
|
+
backup_codes: z58.array(z58.string()),
|
|
4535
|
+
warning: z58.string()
|
|
4473
4536
|
});
|
|
4474
4537
|
|
|
4475
4538
|
// src/generated/cfg_totp/_utils/schemas/BackupCodesStatus.schema.ts
|
|
4476
|
-
import { z as
|
|
4477
|
-
var BackupCodesStatusSchema =
|
|
4478
|
-
remaining_count:
|
|
4479
|
-
total_generated:
|
|
4480
|
-
warning:
|
|
4539
|
+
import { z as z59 } from "zod";
|
|
4540
|
+
var BackupCodesStatusSchema = z59.object({
|
|
4541
|
+
remaining_count: z59.int(),
|
|
4542
|
+
total_generated: z59.int(),
|
|
4543
|
+
warning: z59.string().nullable().optional()
|
|
4481
4544
|
});
|
|
4482
4545
|
|
|
4483
4546
|
// src/generated/cfg_totp/_utils/schemas/ConfirmSetupRequest.schema.ts
|
|
4484
|
-
import { z as
|
|
4485
|
-
var ConfirmSetupRequestSchema =
|
|
4486
|
-
device_id:
|
|
4487
|
-
code:
|
|
4547
|
+
import { z as z60 } from "zod";
|
|
4548
|
+
var ConfirmSetupRequestSchema = z60.object({
|
|
4549
|
+
device_id: z60.string().regex(/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i),
|
|
4550
|
+
code: z60.string().min(6).max(6)
|
|
4488
4551
|
});
|
|
4489
4552
|
|
|
4490
4553
|
// src/generated/cfg_totp/_utils/schemas/ConfirmSetupResponse.schema.ts
|
|
4491
|
-
import { z as
|
|
4492
|
-
var ConfirmSetupResponseSchema =
|
|
4493
|
-
message:
|
|
4494
|
-
backup_codes:
|
|
4495
|
-
backup_codes_warning:
|
|
4554
|
+
import { z as z61 } from "zod";
|
|
4555
|
+
var ConfirmSetupResponseSchema = z61.object({
|
|
4556
|
+
message: z61.string(),
|
|
4557
|
+
backup_codes: z61.array(z61.string()),
|
|
4558
|
+
backup_codes_warning: z61.string()
|
|
4496
4559
|
});
|
|
4497
4560
|
|
|
4498
4561
|
// src/generated/cfg_totp/_utils/schemas/DeviceList.schema.ts
|
|
4499
|
-
import { z as
|
|
4500
|
-
var DeviceListSchema =
|
|
4501
|
-
id:
|
|
4502
|
-
name:
|
|
4503
|
-
is_primary:
|
|
4504
|
-
status:
|
|
4505
|
-
created_at:
|
|
4506
|
-
confirmed_at:
|
|
4507
|
-
last_used_at:
|
|
4562
|
+
import { z as z62 } from "zod";
|
|
4563
|
+
var DeviceListSchema = z62.object({
|
|
4564
|
+
id: z62.string().regex(/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i),
|
|
4565
|
+
name: z62.string(),
|
|
4566
|
+
is_primary: z62.boolean(),
|
|
4567
|
+
status: z62.nativeEnum(DeviceListStatus),
|
|
4568
|
+
created_at: z62.iso.datetime(),
|
|
4569
|
+
confirmed_at: z62.iso.datetime().nullable(),
|
|
4570
|
+
last_used_at: z62.iso.datetime().nullable()
|
|
4508
4571
|
});
|
|
4509
4572
|
|
|
4510
4573
|
// src/generated/cfg_totp/_utils/schemas/DisableRequest.schema.ts
|
|
4511
|
-
import { z as
|
|
4512
|
-
var DisableRequestSchema =
|
|
4513
|
-
code:
|
|
4574
|
+
import { z as z63 } from "zod";
|
|
4575
|
+
var DisableRequestSchema = z63.object({
|
|
4576
|
+
code: z63.string().min(6).max(6)
|
|
4514
4577
|
});
|
|
4515
4578
|
|
|
4516
4579
|
// src/generated/cfg_totp/_utils/schemas/PaginatedDeviceListList.schema.ts
|
|
4517
|
-
import { z as
|
|
4518
|
-
var PaginatedDeviceListListSchema =
|
|
4519
|
-
count:
|
|
4520
|
-
page:
|
|
4521
|
-
pages:
|
|
4522
|
-
page_size:
|
|
4523
|
-
has_next:
|
|
4524
|
-
has_previous:
|
|
4525
|
-
next_page:
|
|
4526
|
-
previous_page:
|
|
4527
|
-
results:
|
|
4580
|
+
import { z as z64 } from "zod";
|
|
4581
|
+
var PaginatedDeviceListListSchema = z64.object({
|
|
4582
|
+
count: z64.int(),
|
|
4583
|
+
page: z64.int(),
|
|
4584
|
+
pages: z64.int(),
|
|
4585
|
+
page_size: z64.int(),
|
|
4586
|
+
has_next: z64.boolean(),
|
|
4587
|
+
has_previous: z64.boolean(),
|
|
4588
|
+
next_page: z64.int().nullable().optional(),
|
|
4589
|
+
previous_page: z64.int().nullable().optional(),
|
|
4590
|
+
results: z64.array(DeviceListSchema)
|
|
4528
4591
|
});
|
|
4529
4592
|
|
|
4530
4593
|
// src/generated/cfg_totp/_utils/schemas/SetupRequest.schema.ts
|
|
4531
|
-
import { z as
|
|
4532
|
-
var SetupRequestSchema =
|
|
4533
|
-
device_name:
|
|
4594
|
+
import { z as z65 } from "zod";
|
|
4595
|
+
var SetupRequestSchema = z65.object({
|
|
4596
|
+
device_name: z65.string().min(1).max(100).optional()
|
|
4534
4597
|
});
|
|
4535
4598
|
|
|
4536
4599
|
// src/generated/cfg_totp/_utils/schemas/SetupResponse.schema.ts
|
|
4537
|
-
import { z as
|
|
4538
|
-
var SetupResponseSchema =
|
|
4539
|
-
device_id:
|
|
4540
|
-
secret:
|
|
4541
|
-
provisioning_uri:
|
|
4542
|
-
qr_code_base64:
|
|
4543
|
-
expires_in:
|
|
4600
|
+
import { z as z66 } from "zod";
|
|
4601
|
+
var SetupResponseSchema = z66.object({
|
|
4602
|
+
device_id: z66.string().regex(/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i),
|
|
4603
|
+
secret: z66.string(),
|
|
4604
|
+
provisioning_uri: z66.string(),
|
|
4605
|
+
qr_code_base64: z66.string(),
|
|
4606
|
+
expires_in: z66.int()
|
|
4544
4607
|
});
|
|
4545
4608
|
|
|
4546
4609
|
// src/generated/cfg_totp/_utils/schemas/VerifyBackupRequest.schema.ts
|
|
4547
|
-
import { z as
|
|
4548
|
-
var VerifyBackupRequestSchema =
|
|
4549
|
-
session_id:
|
|
4550
|
-
backup_code:
|
|
4610
|
+
import { z as z67 } from "zod";
|
|
4611
|
+
var VerifyBackupRequestSchema = z67.object({
|
|
4612
|
+
session_id: z67.string().regex(/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i),
|
|
4613
|
+
backup_code: z67.string().min(8).max(8)
|
|
4551
4614
|
});
|
|
4552
4615
|
|
|
4553
4616
|
// src/generated/cfg_totp/_utils/schemas/VerifyRequest.schema.ts
|
|
4554
|
-
import { z as
|
|
4555
|
-
var VerifyRequestSchema =
|
|
4556
|
-
session_id:
|
|
4557
|
-
code:
|
|
4617
|
+
import { z as z68 } from "zod";
|
|
4618
|
+
var VerifyRequestSchema = z68.object({
|
|
4619
|
+
session_id: z68.string().regex(/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i),
|
|
4620
|
+
code: z68.string().min(6).max(6)
|
|
4558
4621
|
});
|
|
4559
4622
|
|
|
4560
4623
|
// src/generated/cfg_totp/_utils/schemas/VerifyResponse.schema.ts
|
|
4561
|
-
import { z as
|
|
4562
|
-
var VerifyResponseSchema =
|
|
4563
|
-
message:
|
|
4564
|
-
access_token:
|
|
4565
|
-
refresh_token:
|
|
4566
|
-
user:
|
|
4567
|
-
remaining_backup_codes:
|
|
4568
|
-
warning:
|
|
4624
|
+
import { z as z69 } from "zod";
|
|
4625
|
+
var VerifyResponseSchema = z69.object({
|
|
4626
|
+
message: z69.string(),
|
|
4627
|
+
access_token: z69.string(),
|
|
4628
|
+
refresh_token: z69.string(),
|
|
4629
|
+
user: z69.record(z69.string(), z69.any()),
|
|
4630
|
+
remaining_backup_codes: z69.int().optional(),
|
|
4631
|
+
warning: z69.string().optional()
|
|
4569
4632
|
});
|
|
4570
4633
|
|
|
4571
4634
|
// src/generated/cfg_totp/_utils/fetchers/index.ts
|
|
@@ -5733,40 +5796,40 @@ __export(schemas_exports4, {
|
|
|
5733
5796
|
});
|
|
5734
5797
|
|
|
5735
5798
|
// src/generated/cfg_webpush/_utils/schemas/SendPushRequestRequest.schema.ts
|
|
5736
|
-
import { z as
|
|
5737
|
-
var SendPushRequestRequestSchema =
|
|
5738
|
-
title:
|
|
5739
|
-
body:
|
|
5740
|
-
icon:
|
|
5741
|
-
url:
|
|
5799
|
+
import { z as z70 } from "zod";
|
|
5800
|
+
var SendPushRequestRequestSchema = z70.object({
|
|
5801
|
+
title: z70.string().min(1).max(255),
|
|
5802
|
+
body: z70.string().min(1),
|
|
5803
|
+
icon: z70.union([z70.url(), z70.literal("")]).nullable().optional(),
|
|
5804
|
+
url: z70.union([z70.url(), z70.literal("")]).nullable().optional()
|
|
5742
5805
|
});
|
|
5743
5806
|
|
|
5744
5807
|
// src/generated/cfg_webpush/_utils/schemas/SendPushResponse.schema.ts
|
|
5745
|
-
import { z as
|
|
5746
|
-
var SendPushResponseSchema =
|
|
5747
|
-
success:
|
|
5748
|
-
sent_to:
|
|
5808
|
+
import { z as z71 } from "zod";
|
|
5809
|
+
var SendPushResponseSchema = z71.object({
|
|
5810
|
+
success: z71.boolean(),
|
|
5811
|
+
sent_to: z71.int()
|
|
5749
5812
|
});
|
|
5750
5813
|
|
|
5751
5814
|
// src/generated/cfg_webpush/_utils/schemas/SubscribeRequestRequest.schema.ts
|
|
5752
|
-
import { z as
|
|
5753
|
-
var SubscribeRequestRequestSchema =
|
|
5754
|
-
endpoint:
|
|
5755
|
-
keys:
|
|
5815
|
+
import { z as z72 } from "zod";
|
|
5816
|
+
var SubscribeRequestRequestSchema = z72.object({
|
|
5817
|
+
endpoint: z72.union([z72.url(), z72.literal("")]),
|
|
5818
|
+
keys: z72.record(z72.string(), z72.string().min(1))
|
|
5756
5819
|
});
|
|
5757
5820
|
|
|
5758
5821
|
// src/generated/cfg_webpush/_utils/schemas/SubscribeResponse.schema.ts
|
|
5759
|
-
import { z as
|
|
5760
|
-
var SubscribeResponseSchema =
|
|
5761
|
-
success:
|
|
5762
|
-
subscription_id:
|
|
5763
|
-
created:
|
|
5822
|
+
import { z as z73 } from "zod";
|
|
5823
|
+
var SubscribeResponseSchema = z73.object({
|
|
5824
|
+
success: z73.boolean(),
|
|
5825
|
+
subscription_id: z73.int(),
|
|
5826
|
+
created: z73.boolean()
|
|
5764
5827
|
});
|
|
5765
5828
|
|
|
5766
5829
|
// src/generated/cfg_webpush/_utils/schemas/VapidPublicKeyResponse.schema.ts
|
|
5767
|
-
import { z as
|
|
5768
|
-
var VapidPublicKeyResponseSchema =
|
|
5769
|
-
publicKey:
|
|
5830
|
+
import { z as z74 } from "zod";
|
|
5831
|
+
var VapidPublicKeyResponseSchema = z74.object({
|
|
5832
|
+
publicKey: z74.string()
|
|
5770
5833
|
});
|
|
5771
5834
|
|
|
5772
5835
|
// src/generated/cfg_webpush/_utils/fetchers/index.ts
|
|
@@ -6135,6 +6198,15 @@ function useCreateAccountsProfileAvatarCreate() {
|
|
|
6135
6198
|
};
|
|
6136
6199
|
}
|
|
6137
6200
|
__name(useCreateAccountsProfileAvatarCreate, "useCreateAccountsProfileAvatarCreate");
|
|
6201
|
+
function useCreateAccountsProfileDeleteCreate() {
|
|
6202
|
+
const { mutate } = useSWRConfig3();
|
|
6203
|
+
return async (client) => {
|
|
6204
|
+
const result = await createAccountsProfileDeleteCreate(client);
|
|
6205
|
+
mutate("cfg-accounts-profile-delete");
|
|
6206
|
+
return result;
|
|
6207
|
+
};
|
|
6208
|
+
}
|
|
6209
|
+
__name(useCreateAccountsProfileDeleteCreate, "useCreateAccountsProfileDeleteCreate");
|
|
6138
6210
|
function usePartialUpdateAccountsProfilePartialUpdate() {
|
|
6139
6211
|
const { mutate } = useSWRConfig3();
|
|
6140
6212
|
return async (data, client) => {
|
|
@@ -6503,6 +6575,7 @@ var apiTotp = new API3(apiUrl, { storage });
|
|
|
6503
6575
|
var apiWebPush = new API4(apiUrl, { storage });
|
|
6504
6576
|
var apiCentrifugo = new API2(apiUrl, { storage });
|
|
6505
6577
|
export {
|
|
6578
|
+
AccountDeleteResponseSchema,
|
|
6506
6579
|
API as AccountsAPI,
|
|
6507
6580
|
API2 as CentrifugoAPI,
|
|
6508
6581
|
fetchers_exports2 as CentrifugoFetchers,
|
|
@@ -6547,6 +6620,7 @@ export {
|
|
|
6547
6620
|
createAccountsOtpRequestCreate,
|
|
6548
6621
|
createAccountsOtpVerifyCreate,
|
|
6549
6622
|
createAccountsProfileAvatarCreate,
|
|
6623
|
+
createAccountsProfileDeleteCreate,
|
|
6550
6624
|
createAccountsTokenRefreshCreate,
|
|
6551
6625
|
getAccountsOauthConnectionsList,
|
|
6552
6626
|
getAccountsOauthProvidersRetrieve,
|
|
@@ -6564,6 +6638,7 @@ export {
|
|
|
6564
6638
|
useCreateAccountsOtpRequestCreate,
|
|
6565
6639
|
useCreateAccountsOtpVerifyCreate,
|
|
6566
6640
|
useCreateAccountsProfileAvatarCreate,
|
|
6641
|
+
useCreateAccountsProfileDeleteCreate,
|
|
6567
6642
|
useCreateAccountsTokenRefreshCreate,
|
|
6568
6643
|
usePartialUpdateAccountsProfilePartialPartialUpdate,
|
|
6569
6644
|
usePartialUpdateAccountsProfilePartialUpdate,
|