@djangocfg/api 2.1.97 → 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 +6 -6
- 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/index.mjs
CHANGED
|
@@ -12,6 +12,7 @@ __export(cfg_accounts_exports, {
|
|
|
12
12
|
APIClient: () => APIClient,
|
|
13
13
|
APIError: () => APIError,
|
|
14
14
|
APILogger: () => APILogger,
|
|
15
|
+
AccountDeleteResponseSchema: () => AccountDeleteResponseSchema,
|
|
15
16
|
AccountsTypes: () => models_exports4,
|
|
16
17
|
AuthTypes: () => models_exports,
|
|
17
18
|
CentrifugoTokenSchema: () => CentrifugoTokenSchema,
|
|
@@ -55,6 +56,7 @@ __export(cfg_accounts_exports, {
|
|
|
55
56
|
createAccountsOtpRequestCreate: () => createAccountsOtpRequestCreate,
|
|
56
57
|
createAccountsOtpVerifyCreate: () => createAccountsOtpVerifyCreate,
|
|
57
58
|
createAccountsProfileAvatarCreate: () => createAccountsProfileAvatarCreate,
|
|
59
|
+
createAccountsProfileDeleteCreate: () => createAccountsProfileDeleteCreate,
|
|
58
60
|
createAccountsTokenRefreshCreate: () => createAccountsTokenRefreshCreate,
|
|
59
61
|
default: () => cfg_accounts_default,
|
|
60
62
|
dispatchValidationError: () => dispatchValidationError,
|
|
@@ -184,6 +186,19 @@ var UserProfile = class {
|
|
|
184
186
|
const response = await this.client.request("POST", "/cfg/accounts/profile/avatar/", { formData });
|
|
185
187
|
return response;
|
|
186
188
|
}
|
|
189
|
+
/**
|
|
190
|
+
* Delete user account
|
|
191
|
+
*
|
|
192
|
+
* Permanently delete the current user's account. This operation: -
|
|
193
|
+
* Deactivates the account (user cannot log in) - Anonymizes personal data
|
|
194
|
+
* (GDPR compliance) - Frees up the email address for re-registration -
|
|
195
|
+
* Preserves audit trail The account can be restored by an administrator if
|
|
196
|
+
* needed.
|
|
197
|
+
*/
|
|
198
|
+
async accountsProfileDeleteCreate() {
|
|
199
|
+
const response = await this.client.request("POST", "/cfg/accounts/profile/delete/");
|
|
200
|
+
return response;
|
|
201
|
+
}
|
|
187
202
|
/**
|
|
188
203
|
* Partial update user profile
|
|
189
204
|
*
|
|
@@ -982,6 +997,7 @@ var OTPVerifyRequestChannel = /* @__PURE__ */ ((OTPVerifyRequestChannel2) => {
|
|
|
982
997
|
// src/generated/cfg_accounts/_utils/schemas/index.ts
|
|
983
998
|
var schemas_exports = {};
|
|
984
999
|
__export(schemas_exports, {
|
|
1000
|
+
AccountDeleteResponseSchema: () => AccountDeleteResponseSchema,
|
|
985
1001
|
CentrifugoTokenSchema: () => CentrifugoTokenSchema,
|
|
986
1002
|
CfgAccountsProfileAvatarCreateRequestSchema: () => CfgAccountsProfileAvatarCreateRequestSchema,
|
|
987
1003
|
OAuthAuthorizeRequestRequestSchema: () => OAuthAuthorizeRequestRequestSchema,
|
|
@@ -1004,183 +1020,190 @@ __export(schemas_exports, {
|
|
|
1004
1020
|
UserSchema: () => UserSchema
|
|
1005
1021
|
});
|
|
1006
1022
|
|
|
1007
|
-
// src/generated/cfg_accounts/_utils/schemas/
|
|
1023
|
+
// src/generated/cfg_accounts/_utils/schemas/AccountDeleteResponse.schema.ts
|
|
1008
1024
|
import { z } from "zod";
|
|
1009
|
-
var
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
expires_at: z.iso.datetime(),
|
|
1013
|
-
channels: z.array(z.string())
|
|
1025
|
+
var AccountDeleteResponseSchema = z.object({
|
|
1026
|
+
success: z.boolean(),
|
|
1027
|
+
message: z.string()
|
|
1014
1028
|
});
|
|
1015
1029
|
|
|
1016
|
-
// src/generated/cfg_accounts/_utils/schemas/
|
|
1030
|
+
// src/generated/cfg_accounts/_utils/schemas/CentrifugoToken.schema.ts
|
|
1017
1031
|
import { z as z2 } from "zod";
|
|
1018
|
-
var
|
|
1019
|
-
|
|
1032
|
+
var CentrifugoTokenSchema = z2.object({
|
|
1033
|
+
token: z2.string(),
|
|
1034
|
+
centrifugo_url: z2.union([z2.url(), z2.literal("")]),
|
|
1035
|
+
expires_at: z2.iso.datetime(),
|
|
1036
|
+
channels: z2.array(z2.string())
|
|
1020
1037
|
});
|
|
1021
1038
|
|
|
1022
|
-
// src/generated/cfg_accounts/_utils/schemas/
|
|
1039
|
+
// src/generated/cfg_accounts/_utils/schemas/CfgAccountsProfileAvatarCreateRequest.schema.ts
|
|
1023
1040
|
import { z as z3 } from "zod";
|
|
1024
|
-
var
|
|
1025
|
-
|
|
1026
|
-
source_url: z3.union([z3.url(), z3.literal("")]).optional()
|
|
1041
|
+
var CfgAccountsProfileAvatarCreateRequestSchema = z3.object({
|
|
1042
|
+
avatar: z3.union([z3.instanceof(File), z3.instanceof(Blob)])
|
|
1027
1043
|
});
|
|
1028
1044
|
|
|
1029
|
-
// src/generated/cfg_accounts/_utils/schemas/
|
|
1045
|
+
// src/generated/cfg_accounts/_utils/schemas/OAuthAuthorizeRequestRequest.schema.ts
|
|
1030
1046
|
import { z as z4 } from "zod";
|
|
1031
|
-
var
|
|
1032
|
-
|
|
1033
|
-
|
|
1047
|
+
var OAuthAuthorizeRequestRequestSchema = z4.object({
|
|
1048
|
+
redirect_uri: z4.union([z4.url(), z4.literal("")]).optional(),
|
|
1049
|
+
source_url: z4.union([z4.url(), z4.literal("")]).optional()
|
|
1034
1050
|
});
|
|
1035
1051
|
|
|
1036
|
-
// src/generated/cfg_accounts/_utils/schemas/
|
|
1052
|
+
// src/generated/cfg_accounts/_utils/schemas/OAuthAuthorizeResponse.schema.ts
|
|
1037
1053
|
import { z as z5 } from "zod";
|
|
1038
|
-
var
|
|
1039
|
-
|
|
1040
|
-
state: z5.string()
|
|
1041
|
-
redirect_uri: z5.union([z5.url(), z5.literal("")]).optional()
|
|
1054
|
+
var OAuthAuthorizeResponseSchema = z5.object({
|
|
1055
|
+
authorization_url: z5.union([z5.url(), z5.literal("")]),
|
|
1056
|
+
state: z5.string()
|
|
1042
1057
|
});
|
|
1043
1058
|
|
|
1044
|
-
// src/generated/cfg_accounts/_utils/schemas/
|
|
1059
|
+
// src/generated/cfg_accounts/_utils/schemas/OAuthCallbackRequestRequest.schema.ts
|
|
1045
1060
|
import { z as z6 } from "zod";
|
|
1046
|
-
var
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
provider_username: z6.string(),
|
|
1051
|
-
provider_email: z6.email(),
|
|
1052
|
-
provider_avatar_url: z6.union([z6.url(), z6.literal("")]),
|
|
1053
|
-
connected_at: z6.iso.datetime(),
|
|
1054
|
-
last_login_at: z6.iso.datetime()
|
|
1061
|
+
var OAuthCallbackRequestRequestSchema = z6.object({
|
|
1062
|
+
code: z6.string().min(10).max(500),
|
|
1063
|
+
state: z6.string().min(20).max(100),
|
|
1064
|
+
redirect_uri: z6.union([z6.url(), z6.literal("")]).optional()
|
|
1055
1065
|
});
|
|
1056
1066
|
|
|
1057
|
-
// src/generated/cfg_accounts/_utils/schemas/
|
|
1067
|
+
// src/generated/cfg_accounts/_utils/schemas/OAuthConnection.schema.ts
|
|
1058
1068
|
import { z as z7 } from "zod";
|
|
1059
|
-
var
|
|
1060
|
-
|
|
1069
|
+
var OAuthConnectionSchema = z7.object({
|
|
1070
|
+
id: z7.int(),
|
|
1071
|
+
provider: z7.nativeEnum(OAuthConnectionProvider),
|
|
1072
|
+
provider_display: z7.string(),
|
|
1073
|
+
provider_username: z7.string(),
|
|
1074
|
+
provider_email: z7.email(),
|
|
1075
|
+
provider_avatar_url: z7.union([z7.url(), z7.literal("")]),
|
|
1076
|
+
connected_at: z7.iso.datetime(),
|
|
1077
|
+
last_login_at: z7.iso.datetime()
|
|
1061
1078
|
});
|
|
1062
1079
|
|
|
1063
|
-
// src/generated/cfg_accounts/_utils/schemas/
|
|
1080
|
+
// src/generated/cfg_accounts/_utils/schemas/OAuthDisconnectRequestRequest.schema.ts
|
|
1064
1081
|
import { z as z8 } from "zod";
|
|
1065
|
-
var
|
|
1066
|
-
|
|
1067
|
-
error_description: z8.string().optional()
|
|
1082
|
+
var OAuthDisconnectRequestRequestSchema = z8.object({
|
|
1083
|
+
provider: z8.nativeEnum(OAuthDisconnectRequestRequestProvider)
|
|
1068
1084
|
});
|
|
1069
1085
|
|
|
1070
|
-
// src/generated/cfg_accounts/_utils/schemas/
|
|
1086
|
+
// src/generated/cfg_accounts/_utils/schemas/OAuthError.schema.ts
|
|
1071
1087
|
import { z as z9 } from "zod";
|
|
1072
|
-
var
|
|
1073
|
-
|
|
1088
|
+
var OAuthErrorSchema = z9.object({
|
|
1089
|
+
error: z9.string(),
|
|
1090
|
+
error_description: z9.string().optional()
|
|
1074
1091
|
});
|
|
1075
1092
|
|
|
1076
|
-
// src/generated/cfg_accounts/_utils/schemas/
|
|
1093
|
+
// src/generated/cfg_accounts/_utils/schemas/OAuthProvidersResponse.schema.ts
|
|
1077
1094
|
import { z as z10 } from "zod";
|
|
1078
|
-
var
|
|
1079
|
-
|
|
1080
|
-
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(),
|
|
1081
|
-
access: z10.string().nullable().optional(),
|
|
1082
|
-
refresh: z10.string().nullable().optional(),
|
|
1083
|
-
user: z10.record(z10.string(), z10.any()).nullable().optional(),
|
|
1084
|
-
is_new_user: z10.boolean(),
|
|
1085
|
-
is_new_connection: z10.boolean(),
|
|
1086
|
-
should_prompt_2fa: z10.boolean().optional()
|
|
1095
|
+
var OAuthProvidersResponseSchema = z10.object({
|
|
1096
|
+
providers: z10.array(z10.record(z10.string(), z10.any()))
|
|
1087
1097
|
});
|
|
1088
1098
|
|
|
1089
|
-
// src/generated/cfg_accounts/_utils/schemas/
|
|
1099
|
+
// src/generated/cfg_accounts/_utils/schemas/OAuthTokenResponse.schema.ts
|
|
1090
1100
|
import { z as z11 } from "zod";
|
|
1091
|
-
var
|
|
1092
|
-
|
|
1101
|
+
var OAuthTokenResponseSchema = z11.object({
|
|
1102
|
+
requires_2fa: z11.boolean().optional(),
|
|
1103
|
+
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(),
|
|
1104
|
+
access: z11.string().nullable().optional(),
|
|
1105
|
+
refresh: z11.string().nullable().optional(),
|
|
1106
|
+
user: z11.record(z11.string(), z11.any()).nullable().optional(),
|
|
1107
|
+
is_new_user: z11.boolean(),
|
|
1108
|
+
is_new_connection: z11.boolean(),
|
|
1109
|
+
should_prompt_2fa: z11.boolean().optional()
|
|
1093
1110
|
});
|
|
1094
1111
|
|
|
1095
|
-
// src/generated/cfg_accounts/_utils/schemas/
|
|
1112
|
+
// src/generated/cfg_accounts/_utils/schemas/OTPErrorResponse.schema.ts
|
|
1096
1113
|
import { z as z12 } from "zod";
|
|
1097
|
-
var
|
|
1098
|
-
|
|
1099
|
-
channel: z12.nativeEnum(OTPRequestRequestChannel).optional(),
|
|
1100
|
-
source_url: z12.union([z12.url(), z12.literal("")]).optional()
|
|
1114
|
+
var OTPErrorResponseSchema = z12.object({
|
|
1115
|
+
error: z12.string()
|
|
1101
1116
|
});
|
|
1102
1117
|
|
|
1103
|
-
// src/generated/cfg_accounts/_utils/schemas/
|
|
1118
|
+
// src/generated/cfg_accounts/_utils/schemas/OTPRequestRequest.schema.ts
|
|
1104
1119
|
import { z as z13 } from "zod";
|
|
1105
|
-
var
|
|
1106
|
-
|
|
1120
|
+
var OTPRequestRequestSchema = z13.object({
|
|
1121
|
+
identifier: z13.string().min(1),
|
|
1122
|
+
channel: z13.nativeEnum(OTPRequestRequestChannel).optional(),
|
|
1123
|
+
source_url: z13.union([z13.url(), z13.literal("")]).optional()
|
|
1107
1124
|
});
|
|
1108
1125
|
|
|
1109
|
-
// src/generated/cfg_accounts/_utils/schemas/
|
|
1126
|
+
// src/generated/cfg_accounts/_utils/schemas/OTPRequestResponse.schema.ts
|
|
1110
1127
|
import { z as z14 } from "zod";
|
|
1111
|
-
var
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1128
|
+
var OTPRequestResponseSchema = z14.object({
|
|
1129
|
+
message: z14.string()
|
|
1130
|
+
});
|
|
1131
|
+
|
|
1132
|
+
// src/generated/cfg_accounts/_utils/schemas/OTPVerifyRequest.schema.ts
|
|
1133
|
+
import { z as z15 } from "zod";
|
|
1134
|
+
var OTPVerifyRequestSchema = z15.object({
|
|
1135
|
+
identifier: z15.string().min(1),
|
|
1136
|
+
otp: z15.string().min(6).max(6),
|
|
1137
|
+
channel: z15.nativeEnum(OTPVerifyRequestChannel).optional(),
|
|
1138
|
+
source_url: z15.union([z15.url(), z15.literal("")]).optional()
|
|
1116
1139
|
});
|
|
1117
1140
|
|
|
1118
1141
|
// src/generated/cfg_accounts/_utils/schemas/OTPVerifyResponse.schema.ts
|
|
1119
|
-
import { z as
|
|
1142
|
+
import { z as z17 } from "zod";
|
|
1120
1143
|
|
|
1121
1144
|
// src/generated/cfg_accounts/_utils/schemas/User.schema.ts
|
|
1122
|
-
import { z as
|
|
1123
|
-
var UserSchema =
|
|
1124
|
-
id:
|
|
1125
|
-
email:
|
|
1126
|
-
first_name:
|
|
1127
|
-
last_name:
|
|
1128
|
-
full_name:
|
|
1129
|
-
initials:
|
|
1130
|
-
display_username:
|
|
1131
|
-
company:
|
|
1132
|
-
phone:
|
|
1133
|
-
position:
|
|
1134
|
-
avatar:
|
|
1135
|
-
is_staff:
|
|
1136
|
-
is_superuser:
|
|
1137
|
-
date_joined:
|
|
1138
|
-
last_login:
|
|
1139
|
-
unanswered_messages_count:
|
|
1145
|
+
import { z as z16 } from "zod";
|
|
1146
|
+
var UserSchema = z16.object({
|
|
1147
|
+
id: z16.int(),
|
|
1148
|
+
email: z16.email(),
|
|
1149
|
+
first_name: z16.string().max(50).optional(),
|
|
1150
|
+
last_name: z16.string().max(50).optional(),
|
|
1151
|
+
full_name: z16.string(),
|
|
1152
|
+
initials: z16.string(),
|
|
1153
|
+
display_username: z16.string(),
|
|
1154
|
+
company: z16.string().max(100).optional(),
|
|
1155
|
+
phone: z16.string().max(20).optional(),
|
|
1156
|
+
position: z16.string().max(100).optional(),
|
|
1157
|
+
avatar: z16.union([z16.url(), z16.literal("")]).nullable(),
|
|
1158
|
+
is_staff: z16.boolean(),
|
|
1159
|
+
is_superuser: z16.boolean(),
|
|
1160
|
+
date_joined: z16.iso.datetime(),
|
|
1161
|
+
last_login: z16.iso.datetime().nullable(),
|
|
1162
|
+
unanswered_messages_count: z16.int(),
|
|
1140
1163
|
centrifugo: CentrifugoTokenSchema.nullable()
|
|
1141
1164
|
});
|
|
1142
1165
|
|
|
1143
1166
|
// src/generated/cfg_accounts/_utils/schemas/OTPVerifyResponse.schema.ts
|
|
1144
|
-
var OTPVerifyResponseSchema =
|
|
1145
|
-
requires_2fa:
|
|
1146
|
-
session_id:
|
|
1147
|
-
refresh:
|
|
1148
|
-
access:
|
|
1167
|
+
var OTPVerifyResponseSchema = z17.object({
|
|
1168
|
+
requires_2fa: z17.boolean().optional(),
|
|
1169
|
+
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(),
|
|
1170
|
+
refresh: z17.string().nullable().optional(),
|
|
1171
|
+
access: z17.string().nullable().optional(),
|
|
1149
1172
|
user: UserSchema.nullable().optional(),
|
|
1150
|
-
should_prompt_2fa:
|
|
1173
|
+
should_prompt_2fa: z17.boolean().optional()
|
|
1151
1174
|
});
|
|
1152
1175
|
|
|
1153
1176
|
// src/generated/cfg_accounts/_utils/schemas/PatchedUserProfileUpdateRequest.schema.ts
|
|
1154
|
-
import { z as
|
|
1155
|
-
var PatchedUserProfileUpdateRequestSchema =
|
|
1156
|
-
first_name:
|
|
1157
|
-
last_name:
|
|
1158
|
-
company:
|
|
1159
|
-
phone:
|
|
1160
|
-
position:
|
|
1177
|
+
import { z as z18 } from "zod";
|
|
1178
|
+
var PatchedUserProfileUpdateRequestSchema = z18.object({
|
|
1179
|
+
first_name: z18.string().max(50).optional(),
|
|
1180
|
+
last_name: z18.string().max(50).optional(),
|
|
1181
|
+
company: z18.string().max(100).optional(),
|
|
1182
|
+
phone: z18.string().max(20).optional(),
|
|
1183
|
+
position: z18.string().max(100).optional()
|
|
1161
1184
|
});
|
|
1162
1185
|
|
|
1163
1186
|
// src/generated/cfg_accounts/_utils/schemas/TokenRefresh.schema.ts
|
|
1164
|
-
import { z as
|
|
1165
|
-
var TokenRefreshSchema =
|
|
1166
|
-
access:
|
|
1167
|
-
refresh:
|
|
1187
|
+
import { z as z19 } from "zod";
|
|
1188
|
+
var TokenRefreshSchema = z19.object({
|
|
1189
|
+
access: z19.string(),
|
|
1190
|
+
refresh: z19.string()
|
|
1168
1191
|
});
|
|
1169
1192
|
|
|
1170
1193
|
// src/generated/cfg_accounts/_utils/schemas/TokenRefreshRequest.schema.ts
|
|
1171
|
-
import { z as
|
|
1172
|
-
var TokenRefreshRequestSchema =
|
|
1173
|
-
refresh:
|
|
1194
|
+
import { z as z20 } from "zod";
|
|
1195
|
+
var TokenRefreshRequestSchema = z20.object({
|
|
1196
|
+
refresh: z20.string().min(1)
|
|
1174
1197
|
});
|
|
1175
1198
|
|
|
1176
1199
|
// src/generated/cfg_accounts/_utils/schemas/UserProfileUpdateRequest.schema.ts
|
|
1177
|
-
import { z as
|
|
1178
|
-
var UserProfileUpdateRequestSchema =
|
|
1179
|
-
first_name:
|
|
1180
|
-
last_name:
|
|
1181
|
-
company:
|
|
1182
|
-
phone:
|
|
1183
|
-
position:
|
|
1200
|
+
import { z as z21 } from "zod";
|
|
1201
|
+
var UserProfileUpdateRequestSchema = z21.object({
|
|
1202
|
+
first_name: z21.string().max(50).optional(),
|
|
1203
|
+
last_name: z21.string().max(50).optional(),
|
|
1204
|
+
company: z21.string().max(100).optional(),
|
|
1205
|
+
phone: z21.string().max(20).optional(),
|
|
1206
|
+
position: z21.string().max(100).optional()
|
|
1184
1207
|
});
|
|
1185
1208
|
|
|
1186
1209
|
// src/generated/cfg_accounts/validation-events.ts
|
|
@@ -1241,6 +1264,7 @@ __export(fetchers_exports, {
|
|
|
1241
1264
|
createAccountsOtpRequestCreate: () => createAccountsOtpRequestCreate,
|
|
1242
1265
|
createAccountsOtpVerifyCreate: () => createAccountsOtpVerifyCreate,
|
|
1243
1266
|
createAccountsProfileAvatarCreate: () => createAccountsProfileAvatarCreate,
|
|
1267
|
+
createAccountsProfileDeleteCreate: () => createAccountsProfileDeleteCreate,
|
|
1244
1268
|
createAccountsTokenRefreshCreate: () => createAccountsTokenRefreshCreate,
|
|
1245
1269
|
getAccountsOauthConnectionsList: () => getAccountsOauthConnectionsList,
|
|
1246
1270
|
getAccountsOauthProvidersRetrieve: () => getAccountsOauthProvidersRetrieve,
|
|
@@ -1681,6 +1705,49 @@ Method: POST`);
|
|
|
1681
1705
|
}
|
|
1682
1706
|
}
|
|
1683
1707
|
__name(createAccountsProfileAvatarCreate, "createAccountsProfileAvatarCreate");
|
|
1708
|
+
async function createAccountsProfileDeleteCreate(client) {
|
|
1709
|
+
const api2 = client || getAPIInstance();
|
|
1710
|
+
const response = await api2.user_profile.accountsProfileDeleteCreate();
|
|
1711
|
+
try {
|
|
1712
|
+
return AccountDeleteResponseSchema.parse(response);
|
|
1713
|
+
} catch (error) {
|
|
1714
|
+
consola4.error("\u274C Zod Validation Failed");
|
|
1715
|
+
consola4.box(`createAccountsProfileDeleteCreate
|
|
1716
|
+
Path: /cfg/accounts/profile/delete/
|
|
1717
|
+
Method: POST`);
|
|
1718
|
+
if (error instanceof Error && "issues" in error && Array.isArray(error.issues)) {
|
|
1719
|
+
consola4.error("Validation Issues:");
|
|
1720
|
+
error.issues.forEach((issue, index) => {
|
|
1721
|
+
consola4.error(` ${index + 1}. ${issue.path.join(".") || "root"}`);
|
|
1722
|
+
consola4.error(` \u251C\u2500 Message: ${issue.message}`);
|
|
1723
|
+
if (issue.expected) consola4.error(` \u251C\u2500 Expected: ${issue.expected}`);
|
|
1724
|
+
if (issue.received) consola4.error(` \u2514\u2500 Received: ${issue.received}`);
|
|
1725
|
+
});
|
|
1726
|
+
}
|
|
1727
|
+
consola4.error("Response data:", response);
|
|
1728
|
+
if (typeof window !== "undefined" && error instanceof Error && "issues" in error) {
|
|
1729
|
+
try {
|
|
1730
|
+
const event = new CustomEvent("zod-validation-error", {
|
|
1731
|
+
detail: {
|
|
1732
|
+
operation: "createAccountsProfileDeleteCreate",
|
|
1733
|
+
path: "/cfg/accounts/profile/delete/",
|
|
1734
|
+
method: "POST",
|
|
1735
|
+
error,
|
|
1736
|
+
response,
|
|
1737
|
+
timestamp: /* @__PURE__ */ new Date()
|
|
1738
|
+
},
|
|
1739
|
+
bubbles: true,
|
|
1740
|
+
cancelable: false
|
|
1741
|
+
});
|
|
1742
|
+
window.dispatchEvent(event);
|
|
1743
|
+
} catch (eventError) {
|
|
1744
|
+
consola4.warn("Failed to dispatch validation error event:", eventError);
|
|
1745
|
+
}
|
|
1746
|
+
}
|
|
1747
|
+
throw error;
|
|
1748
|
+
}
|
|
1749
|
+
}
|
|
1750
|
+
__name(createAccountsProfileDeleteCreate, "createAccountsProfileDeleteCreate");
|
|
1684
1751
|
async function partialUpdateAccountsProfilePartialUpdate(data, client) {
|
|
1685
1752
|
const api2 = client || getAPIInstance();
|
|
1686
1753
|
const response = await api2.user_profile.accountsProfilePartialUpdate(data);
|
|
@@ -2817,320 +2884,320 @@ var LocalStorageAdapter2 = class {
|
|
|
2817
2884
|
};
|
|
2818
2885
|
|
|
2819
2886
|
// src/generated/cfg_centrifugo/_utils/schemas/CentrifugoChannelInfo.schema.ts
|
|
2820
|
-
import { z as
|
|
2821
|
-
var CentrifugoChannelInfoSchema =
|
|
2822
|
-
num_clients:
|
|
2887
|
+
import { z as z22 } from "zod";
|
|
2888
|
+
var CentrifugoChannelInfoSchema = z22.object({
|
|
2889
|
+
num_clients: z22.int()
|
|
2823
2890
|
});
|
|
2824
2891
|
|
|
2825
2892
|
// src/generated/cfg_centrifugo/_utils/schemas/CentrifugoChannelsRequestRequest.schema.ts
|
|
2826
|
-
import { z as
|
|
2827
|
-
var CentrifugoChannelsRequestRequestSchema =
|
|
2828
|
-
pattern:
|
|
2893
|
+
import { z as z23 } from "zod";
|
|
2894
|
+
var CentrifugoChannelsRequestRequestSchema = z23.object({
|
|
2895
|
+
pattern: z23.string().nullable().optional()
|
|
2829
2896
|
});
|
|
2830
2897
|
|
|
2831
2898
|
// src/generated/cfg_centrifugo/_utils/schemas/CentrifugoChannelsResponse.schema.ts
|
|
2832
|
-
import { z as
|
|
2899
|
+
import { z as z26 } from "zod";
|
|
2833
2900
|
|
|
2834
2901
|
// src/generated/cfg_centrifugo/_utils/schemas/CentrifugoChannelsResult.schema.ts
|
|
2835
|
-
import { z as
|
|
2836
|
-
var CentrifugoChannelsResultSchema =
|
|
2837
|
-
channels:
|
|
2902
|
+
import { z as z24 } from "zod";
|
|
2903
|
+
var CentrifugoChannelsResultSchema = z24.object({
|
|
2904
|
+
channels: z24.record(z24.string(), CentrifugoChannelInfoSchema)
|
|
2838
2905
|
});
|
|
2839
2906
|
|
|
2840
2907
|
// src/generated/cfg_centrifugo/_utils/schemas/CentrifugoError.schema.ts
|
|
2841
|
-
import { z as
|
|
2842
|
-
var CentrifugoErrorSchema =
|
|
2843
|
-
code:
|
|
2844
|
-
message:
|
|
2908
|
+
import { z as z25 } from "zod";
|
|
2909
|
+
var CentrifugoErrorSchema = z25.object({
|
|
2910
|
+
code: z25.int().optional(),
|
|
2911
|
+
message: z25.string().optional()
|
|
2845
2912
|
});
|
|
2846
2913
|
|
|
2847
2914
|
// src/generated/cfg_centrifugo/_utils/schemas/CentrifugoChannelsResponse.schema.ts
|
|
2848
|
-
var CentrifugoChannelsResponseSchema =
|
|
2915
|
+
var CentrifugoChannelsResponseSchema = z26.object({
|
|
2849
2916
|
error: CentrifugoErrorSchema.optional(),
|
|
2850
2917
|
result: CentrifugoChannelsResultSchema.optional()
|
|
2851
2918
|
});
|
|
2852
2919
|
|
|
2853
2920
|
// src/generated/cfg_centrifugo/_utils/schemas/CentrifugoClientInfo.schema.ts
|
|
2854
|
-
import { z as
|
|
2855
|
-
var CentrifugoClientInfoSchema =
|
|
2856
|
-
user:
|
|
2857
|
-
client:
|
|
2858
|
-
conn_info:
|
|
2859
|
-
chan_info:
|
|
2921
|
+
import { z as z27 } from "zod";
|
|
2922
|
+
var CentrifugoClientInfoSchema = z27.object({
|
|
2923
|
+
user: z27.string(),
|
|
2924
|
+
client: z27.string(),
|
|
2925
|
+
conn_info: z27.record(z27.string(), z27.any()).nullable().optional(),
|
|
2926
|
+
chan_info: z27.record(z27.string(), z27.any()).nullable().optional()
|
|
2860
2927
|
});
|
|
2861
2928
|
|
|
2862
2929
|
// src/generated/cfg_centrifugo/_utils/schemas/CentrifugoHealthCheck.schema.ts
|
|
2863
|
-
import { z as
|
|
2864
|
-
var CentrifugoHealthCheckSchema =
|
|
2865
|
-
status:
|
|
2866
|
-
wrapper_url:
|
|
2867
|
-
has_api_key:
|
|
2868
|
-
timestamp:
|
|
2930
|
+
import { z as z28 } from "zod";
|
|
2931
|
+
var CentrifugoHealthCheckSchema = z28.object({
|
|
2932
|
+
status: z28.string(),
|
|
2933
|
+
wrapper_url: z28.string(),
|
|
2934
|
+
has_api_key: z28.boolean(),
|
|
2935
|
+
timestamp: z28.string()
|
|
2869
2936
|
});
|
|
2870
2937
|
|
|
2871
2938
|
// src/generated/cfg_centrifugo/_utils/schemas/CentrifugoHistoryRequestRequest.schema.ts
|
|
2872
|
-
import { z as
|
|
2939
|
+
import { z as z30 } from "zod";
|
|
2873
2940
|
|
|
2874
2941
|
// src/generated/cfg_centrifugo/_utils/schemas/CentrifugoStreamPosition.schema.ts
|
|
2875
|
-
import { z as
|
|
2876
|
-
var CentrifugoStreamPositionSchema =
|
|
2877
|
-
offset:
|
|
2878
|
-
epoch:
|
|
2942
|
+
import { z as z29 } from "zod";
|
|
2943
|
+
var CentrifugoStreamPositionSchema = z29.object({
|
|
2944
|
+
offset: z29.int(),
|
|
2945
|
+
epoch: z29.string()
|
|
2879
2946
|
});
|
|
2880
2947
|
|
|
2881
2948
|
// src/generated/cfg_centrifugo/_utils/schemas/CentrifugoHistoryRequestRequest.schema.ts
|
|
2882
|
-
var CentrifugoHistoryRequestRequestSchema =
|
|
2883
|
-
channel:
|
|
2884
|
-
limit:
|
|
2949
|
+
var CentrifugoHistoryRequestRequestSchema = z30.object({
|
|
2950
|
+
channel: z30.string(),
|
|
2951
|
+
limit: z30.int().nullable().optional(),
|
|
2885
2952
|
since: CentrifugoStreamPositionSchema.optional(),
|
|
2886
|
-
reverse:
|
|
2953
|
+
reverse: z30.boolean().nullable().optional()
|
|
2887
2954
|
});
|
|
2888
2955
|
|
|
2889
2956
|
// src/generated/cfg_centrifugo/_utils/schemas/CentrifugoHistoryResponse.schema.ts
|
|
2890
|
-
import { z as
|
|
2957
|
+
import { z as z33 } from "zod";
|
|
2891
2958
|
|
|
2892
2959
|
// src/generated/cfg_centrifugo/_utils/schemas/CentrifugoHistoryResult.schema.ts
|
|
2893
|
-
import { z as
|
|
2960
|
+
import { z as z32 } from "zod";
|
|
2894
2961
|
|
|
2895
2962
|
// src/generated/cfg_centrifugo/_utils/schemas/CentrifugoPublication.schema.ts
|
|
2896
|
-
import { z as
|
|
2897
|
-
var CentrifugoPublicationSchema =
|
|
2898
|
-
data:
|
|
2963
|
+
import { z as z31 } from "zod";
|
|
2964
|
+
var CentrifugoPublicationSchema = z31.object({
|
|
2965
|
+
data: z31.record(z31.string(), z31.any()),
|
|
2899
2966
|
info: CentrifugoClientInfoSchema.optional(),
|
|
2900
|
-
offset:
|
|
2901
|
-
tags:
|
|
2967
|
+
offset: z31.int(),
|
|
2968
|
+
tags: z31.record(z31.string(), z31.any()).nullable().optional()
|
|
2902
2969
|
});
|
|
2903
2970
|
|
|
2904
2971
|
// src/generated/cfg_centrifugo/_utils/schemas/CentrifugoHistoryResult.schema.ts
|
|
2905
|
-
var CentrifugoHistoryResultSchema =
|
|
2906
|
-
publications:
|
|
2907
|
-
epoch:
|
|
2908
|
-
offset:
|
|
2972
|
+
var CentrifugoHistoryResultSchema = z32.object({
|
|
2973
|
+
publications: z32.array(CentrifugoPublicationSchema),
|
|
2974
|
+
epoch: z32.string(),
|
|
2975
|
+
offset: z32.int()
|
|
2909
2976
|
});
|
|
2910
2977
|
|
|
2911
2978
|
// src/generated/cfg_centrifugo/_utils/schemas/CentrifugoHistoryResponse.schema.ts
|
|
2912
|
-
var CentrifugoHistoryResponseSchema =
|
|
2979
|
+
var CentrifugoHistoryResponseSchema = z33.object({
|
|
2913
2980
|
error: CentrifugoErrorSchema.optional(),
|
|
2914
2981
|
result: CentrifugoHistoryResultSchema.optional()
|
|
2915
2982
|
});
|
|
2916
2983
|
|
|
2917
2984
|
// src/generated/cfg_centrifugo/_utils/schemas/CentrifugoInfoResponse.schema.ts
|
|
2918
|
-
import { z as
|
|
2985
|
+
import { z as z38 } from "zod";
|
|
2919
2986
|
|
|
2920
2987
|
// src/generated/cfg_centrifugo/_utils/schemas/CentrifugoInfoResult.schema.ts
|
|
2921
|
-
import { z as
|
|
2988
|
+
import { z as z37 } from "zod";
|
|
2922
2989
|
|
|
2923
2990
|
// src/generated/cfg_centrifugo/_utils/schemas/CentrifugoNodeInfo.schema.ts
|
|
2924
|
-
import { z as
|
|
2991
|
+
import { z as z36 } from "zod";
|
|
2925
2992
|
|
|
2926
2993
|
// src/generated/cfg_centrifugo/_utils/schemas/CentrifugoMetrics.schema.ts
|
|
2927
|
-
import { z as
|
|
2928
|
-
var CentrifugoMetricsSchema =
|
|
2929
|
-
interval:
|
|
2930
|
-
items:
|
|
2994
|
+
import { z as z34 } from "zod";
|
|
2995
|
+
var CentrifugoMetricsSchema = z34.object({
|
|
2996
|
+
interval: z34.number(),
|
|
2997
|
+
items: z34.record(z34.string(), z34.number())
|
|
2931
2998
|
});
|
|
2932
2999
|
|
|
2933
3000
|
// src/generated/cfg_centrifugo/_utils/schemas/CentrifugoProcess.schema.ts
|
|
2934
|
-
import { z as
|
|
2935
|
-
var CentrifugoProcessSchema =
|
|
2936
|
-
cpu:
|
|
2937
|
-
rss:
|
|
3001
|
+
import { z as z35 } from "zod";
|
|
3002
|
+
var CentrifugoProcessSchema = z35.object({
|
|
3003
|
+
cpu: z35.number(),
|
|
3004
|
+
rss: z35.int()
|
|
2938
3005
|
});
|
|
2939
3006
|
|
|
2940
3007
|
// src/generated/cfg_centrifugo/_utils/schemas/CentrifugoNodeInfo.schema.ts
|
|
2941
|
-
var CentrifugoNodeInfoSchema =
|
|
2942
|
-
uid:
|
|
2943
|
-
name:
|
|
2944
|
-
version:
|
|
2945
|
-
num_clients:
|
|
2946
|
-
num_users:
|
|
2947
|
-
num_channels:
|
|
2948
|
-
uptime:
|
|
2949
|
-
num_subs:
|
|
3008
|
+
var CentrifugoNodeInfoSchema = z36.object({
|
|
3009
|
+
uid: z36.string(),
|
|
3010
|
+
name: z36.string(),
|
|
3011
|
+
version: z36.string(),
|
|
3012
|
+
num_clients: z36.int(),
|
|
3013
|
+
num_users: z36.int(),
|
|
3014
|
+
num_channels: z36.int(),
|
|
3015
|
+
uptime: z36.int(),
|
|
3016
|
+
num_subs: z36.int(),
|
|
2950
3017
|
metrics: CentrifugoMetricsSchema.optional(),
|
|
2951
3018
|
process: CentrifugoProcessSchema.optional()
|
|
2952
3019
|
});
|
|
2953
3020
|
|
|
2954
3021
|
// src/generated/cfg_centrifugo/_utils/schemas/CentrifugoInfoResult.schema.ts
|
|
2955
|
-
var CentrifugoInfoResultSchema =
|
|
2956
|
-
nodes:
|
|
3022
|
+
var CentrifugoInfoResultSchema = z37.object({
|
|
3023
|
+
nodes: z37.array(CentrifugoNodeInfoSchema)
|
|
2957
3024
|
});
|
|
2958
3025
|
|
|
2959
3026
|
// src/generated/cfg_centrifugo/_utils/schemas/CentrifugoInfoResponse.schema.ts
|
|
2960
|
-
var CentrifugoInfoResponseSchema =
|
|
3027
|
+
var CentrifugoInfoResponseSchema = z38.object({
|
|
2961
3028
|
error: CentrifugoErrorSchema.optional(),
|
|
2962
3029
|
result: CentrifugoInfoResultSchema.optional()
|
|
2963
3030
|
});
|
|
2964
3031
|
|
|
2965
3032
|
// src/generated/cfg_centrifugo/_utils/schemas/CentrifugoOverviewStats.schema.ts
|
|
2966
|
-
import { z as
|
|
2967
|
-
var CentrifugoOverviewStatsSchema =
|
|
2968
|
-
total:
|
|
2969
|
-
successful:
|
|
2970
|
-
failed:
|
|
2971
|
-
timeout:
|
|
2972
|
-
success_rate:
|
|
2973
|
-
avg_duration_ms:
|
|
2974
|
-
avg_acks_received:
|
|
2975
|
-
period_hours:
|
|
3033
|
+
import { z as z39 } from "zod";
|
|
3034
|
+
var CentrifugoOverviewStatsSchema = z39.object({
|
|
3035
|
+
total: z39.int(),
|
|
3036
|
+
successful: z39.int(),
|
|
3037
|
+
failed: z39.int(),
|
|
3038
|
+
timeout: z39.int(),
|
|
3039
|
+
success_rate: z39.number(),
|
|
3040
|
+
avg_duration_ms: z39.number(),
|
|
3041
|
+
avg_acks_received: z39.number(),
|
|
3042
|
+
period_hours: z39.int()
|
|
2976
3043
|
});
|
|
2977
3044
|
|
|
2978
3045
|
// src/generated/cfg_centrifugo/_utils/schemas/CentrifugoPresenceRequestRequest.schema.ts
|
|
2979
|
-
import { z as
|
|
2980
|
-
var CentrifugoPresenceRequestRequestSchema =
|
|
2981
|
-
channel:
|
|
3046
|
+
import { z as z40 } from "zod";
|
|
3047
|
+
var CentrifugoPresenceRequestRequestSchema = z40.object({
|
|
3048
|
+
channel: z40.string()
|
|
2982
3049
|
});
|
|
2983
3050
|
|
|
2984
3051
|
// src/generated/cfg_centrifugo/_utils/schemas/CentrifugoPresenceResponse.schema.ts
|
|
2985
|
-
import { z as
|
|
3052
|
+
import { z as z42 } from "zod";
|
|
2986
3053
|
|
|
2987
3054
|
// src/generated/cfg_centrifugo/_utils/schemas/CentrifugoPresenceResult.schema.ts
|
|
2988
|
-
import { z as
|
|
2989
|
-
var CentrifugoPresenceResultSchema =
|
|
2990
|
-
presence:
|
|
3055
|
+
import { z as z41 } from "zod";
|
|
3056
|
+
var CentrifugoPresenceResultSchema = z41.object({
|
|
3057
|
+
presence: z41.record(z41.string(), CentrifugoClientInfoSchema)
|
|
2991
3058
|
});
|
|
2992
3059
|
|
|
2993
3060
|
// src/generated/cfg_centrifugo/_utils/schemas/CentrifugoPresenceResponse.schema.ts
|
|
2994
|
-
var CentrifugoPresenceResponseSchema =
|
|
3061
|
+
var CentrifugoPresenceResponseSchema = z42.object({
|
|
2995
3062
|
error: CentrifugoErrorSchema.optional(),
|
|
2996
3063
|
result: CentrifugoPresenceResultSchema.optional()
|
|
2997
3064
|
});
|
|
2998
3065
|
|
|
2999
3066
|
// src/generated/cfg_centrifugo/_utils/schemas/CentrifugoPresenceStatsRequestRequest.schema.ts
|
|
3000
|
-
import { z as
|
|
3001
|
-
var CentrifugoPresenceStatsRequestRequestSchema =
|
|
3002
|
-
channel:
|
|
3067
|
+
import { z as z43 } from "zod";
|
|
3068
|
+
var CentrifugoPresenceStatsRequestRequestSchema = z43.object({
|
|
3069
|
+
channel: z43.string()
|
|
3003
3070
|
});
|
|
3004
3071
|
|
|
3005
3072
|
// src/generated/cfg_centrifugo/_utils/schemas/CentrifugoPresenceStatsResponse.schema.ts
|
|
3006
|
-
import { z as
|
|
3073
|
+
import { z as z45 } from "zod";
|
|
3007
3074
|
|
|
3008
3075
|
// src/generated/cfg_centrifugo/_utils/schemas/CentrifugoPresenceStatsResult.schema.ts
|
|
3009
|
-
import { z as
|
|
3010
|
-
var CentrifugoPresenceStatsResultSchema =
|
|
3011
|
-
num_clients:
|
|
3012
|
-
num_users:
|
|
3076
|
+
import { z as z44 } from "zod";
|
|
3077
|
+
var CentrifugoPresenceStatsResultSchema = z44.object({
|
|
3078
|
+
num_clients: z44.int(),
|
|
3079
|
+
num_users: z44.int()
|
|
3013
3080
|
});
|
|
3014
3081
|
|
|
3015
3082
|
// src/generated/cfg_centrifugo/_utils/schemas/CentrifugoPresenceStatsResponse.schema.ts
|
|
3016
|
-
var CentrifugoPresenceStatsResponseSchema =
|
|
3083
|
+
var CentrifugoPresenceStatsResponseSchema = z45.object({
|
|
3017
3084
|
error: CentrifugoErrorSchema.optional(),
|
|
3018
3085
|
result: CentrifugoPresenceStatsResultSchema.optional()
|
|
3019
3086
|
});
|
|
3020
3087
|
|
|
3021
3088
|
// src/generated/cfg_centrifugo/_utils/schemas/ChannelList.schema.ts
|
|
3022
|
-
import { z as
|
|
3089
|
+
import { z as z47 } from "zod";
|
|
3023
3090
|
|
|
3024
3091
|
// src/generated/cfg_centrifugo/_utils/schemas/ChannelStats.schema.ts
|
|
3025
|
-
import { z as
|
|
3026
|
-
var ChannelStatsSchema =
|
|
3027
|
-
channel:
|
|
3028
|
-
total:
|
|
3029
|
-
successful:
|
|
3030
|
-
failed:
|
|
3031
|
-
avg_duration_ms:
|
|
3032
|
-
avg_acks:
|
|
3033
|
-
last_activity_at:
|
|
3092
|
+
import { z as z46 } from "zod";
|
|
3093
|
+
var ChannelStatsSchema = z46.object({
|
|
3094
|
+
channel: z46.string(),
|
|
3095
|
+
total: z46.int(),
|
|
3096
|
+
successful: z46.int(),
|
|
3097
|
+
failed: z46.int(),
|
|
3098
|
+
avg_duration_ms: z46.number(),
|
|
3099
|
+
avg_acks: z46.number(),
|
|
3100
|
+
last_activity_at: z46.string().nullable()
|
|
3034
3101
|
});
|
|
3035
3102
|
|
|
3036
3103
|
// src/generated/cfg_centrifugo/_utils/schemas/ChannelList.schema.ts
|
|
3037
|
-
var ChannelListSchema =
|
|
3038
|
-
channels:
|
|
3039
|
-
total_channels:
|
|
3104
|
+
var ChannelListSchema = z47.object({
|
|
3105
|
+
channels: z47.array(ChannelStatsSchema),
|
|
3106
|
+
total_channels: z47.int()
|
|
3040
3107
|
});
|
|
3041
3108
|
|
|
3042
3109
|
// src/generated/cfg_centrifugo/_utils/schemas/ConnectionTokenResponse.schema.ts
|
|
3043
|
-
import { z as
|
|
3044
|
-
var ConnectionTokenResponseSchema =
|
|
3045
|
-
token:
|
|
3046
|
-
centrifugo_url:
|
|
3047
|
-
expires_at:
|
|
3048
|
-
channels:
|
|
3110
|
+
import { z as z48 } from "zod";
|
|
3111
|
+
var ConnectionTokenResponseSchema = z48.object({
|
|
3112
|
+
token: z48.string(),
|
|
3113
|
+
centrifugo_url: z48.string(),
|
|
3114
|
+
expires_at: z48.string(),
|
|
3115
|
+
channels: z48.array(z48.string())
|
|
3049
3116
|
});
|
|
3050
3117
|
|
|
3051
3118
|
// src/generated/cfg_centrifugo/_utils/schemas/ManualAckRequestRequest.schema.ts
|
|
3052
|
-
import { z as
|
|
3053
|
-
var ManualAckRequestRequestSchema =
|
|
3054
|
-
message_id:
|
|
3055
|
-
client_id:
|
|
3119
|
+
import { z as z49 } from "zod";
|
|
3120
|
+
var ManualAckRequestRequestSchema = z49.object({
|
|
3121
|
+
message_id: z49.string(),
|
|
3122
|
+
client_id: z49.string()
|
|
3056
3123
|
});
|
|
3057
3124
|
|
|
3058
3125
|
// src/generated/cfg_centrifugo/_utils/schemas/ManualAckResponse.schema.ts
|
|
3059
|
-
import { z as
|
|
3060
|
-
var ManualAckResponseSchema =
|
|
3061
|
-
success:
|
|
3062
|
-
message_id:
|
|
3063
|
-
error:
|
|
3126
|
+
import { z as z50 } from "zod";
|
|
3127
|
+
var ManualAckResponseSchema = z50.object({
|
|
3128
|
+
success: z50.boolean(),
|
|
3129
|
+
message_id: z50.string(),
|
|
3130
|
+
error: z50.string().nullable().optional()
|
|
3064
3131
|
});
|
|
3065
3132
|
|
|
3066
3133
|
// src/generated/cfg_centrifugo/_utils/schemas/PaginatedPublishList.schema.ts
|
|
3067
|
-
import { z as
|
|
3134
|
+
import { z as z52 } from "zod";
|
|
3068
3135
|
|
|
3069
3136
|
// src/generated/cfg_centrifugo/_utils/schemas/Publish.schema.ts
|
|
3070
|
-
import { z as
|
|
3071
|
-
var PublishSchema =
|
|
3072
|
-
message_id:
|
|
3073
|
-
channel:
|
|
3074
|
-
status:
|
|
3075
|
-
wait_for_ack:
|
|
3076
|
-
acks_received:
|
|
3077
|
-
acks_expected:
|
|
3078
|
-
duration_ms:
|
|
3079
|
-
created_at:
|
|
3080
|
-
completed_at:
|
|
3081
|
-
error_code:
|
|
3082
|
-
error_message:
|
|
3137
|
+
import { z as z51 } from "zod";
|
|
3138
|
+
var PublishSchema = z51.object({
|
|
3139
|
+
message_id: z51.string(),
|
|
3140
|
+
channel: z51.string(),
|
|
3141
|
+
status: z51.string(),
|
|
3142
|
+
wait_for_ack: z51.boolean(),
|
|
3143
|
+
acks_received: z51.int(),
|
|
3144
|
+
acks_expected: z51.int().nullable(),
|
|
3145
|
+
duration_ms: z51.number().nullable(),
|
|
3146
|
+
created_at: z51.iso.datetime(),
|
|
3147
|
+
completed_at: z51.iso.datetime().nullable(),
|
|
3148
|
+
error_code: z51.string().nullable(),
|
|
3149
|
+
error_message: z51.string().nullable()
|
|
3083
3150
|
});
|
|
3084
3151
|
|
|
3085
3152
|
// src/generated/cfg_centrifugo/_utils/schemas/PaginatedPublishList.schema.ts
|
|
3086
|
-
var PaginatedPublishListSchema =
|
|
3087
|
-
count:
|
|
3088
|
-
page:
|
|
3089
|
-
pages:
|
|
3090
|
-
page_size:
|
|
3091
|
-
has_next:
|
|
3092
|
-
has_previous:
|
|
3093
|
-
next_page:
|
|
3094
|
-
previous_page:
|
|
3095
|
-
results:
|
|
3153
|
+
var PaginatedPublishListSchema = z52.object({
|
|
3154
|
+
count: z52.int(),
|
|
3155
|
+
page: z52.int(),
|
|
3156
|
+
pages: z52.int(),
|
|
3157
|
+
page_size: z52.int(),
|
|
3158
|
+
has_next: z52.boolean(),
|
|
3159
|
+
has_previous: z52.boolean(),
|
|
3160
|
+
next_page: z52.int().nullable().optional(),
|
|
3161
|
+
previous_page: z52.int().nullable().optional(),
|
|
3162
|
+
results: z52.array(PublishSchema)
|
|
3096
3163
|
});
|
|
3097
3164
|
|
|
3098
3165
|
// src/generated/cfg_centrifugo/_utils/schemas/PublishTestRequestRequest.schema.ts
|
|
3099
|
-
import { z as
|
|
3100
|
-
var PublishTestRequestRequestSchema =
|
|
3101
|
-
channel:
|
|
3102
|
-
data:
|
|
3103
|
-
wait_for_ack:
|
|
3104
|
-
ack_timeout:
|
|
3166
|
+
import { z as z53 } from "zod";
|
|
3167
|
+
var PublishTestRequestRequestSchema = z53.object({
|
|
3168
|
+
channel: z53.string(),
|
|
3169
|
+
data: z53.record(z53.string(), z53.any()),
|
|
3170
|
+
wait_for_ack: z53.boolean().optional(),
|
|
3171
|
+
ack_timeout: z53.int().min(1).max(60).optional()
|
|
3105
3172
|
});
|
|
3106
3173
|
|
|
3107
3174
|
// src/generated/cfg_centrifugo/_utils/schemas/PublishTestResponse.schema.ts
|
|
3108
|
-
import { z as
|
|
3109
|
-
var PublishTestResponseSchema =
|
|
3110
|
-
success:
|
|
3111
|
-
message_id:
|
|
3112
|
-
channel:
|
|
3113
|
-
acks_received:
|
|
3114
|
-
delivered:
|
|
3115
|
-
error:
|
|
3175
|
+
import { z as z54 } from "zod";
|
|
3176
|
+
var PublishTestResponseSchema = z54.object({
|
|
3177
|
+
success: z54.boolean(),
|
|
3178
|
+
message_id: z54.string(),
|
|
3179
|
+
channel: z54.string(),
|
|
3180
|
+
acks_received: z54.int().optional(),
|
|
3181
|
+
delivered: z54.boolean().optional(),
|
|
3182
|
+
error: z54.string().nullable().optional()
|
|
3116
3183
|
});
|
|
3117
3184
|
|
|
3118
3185
|
// src/generated/cfg_centrifugo/_utils/schemas/TimelineItem.schema.ts
|
|
3119
|
-
import { z as
|
|
3120
|
-
var TimelineItemSchema =
|
|
3121
|
-
timestamp:
|
|
3122
|
-
count:
|
|
3123
|
-
successful:
|
|
3124
|
-
failed:
|
|
3125
|
-
timeout:
|
|
3186
|
+
import { z as z55 } from "zod";
|
|
3187
|
+
var TimelineItemSchema = z55.object({
|
|
3188
|
+
timestamp: z55.string(),
|
|
3189
|
+
count: z55.int(),
|
|
3190
|
+
successful: z55.int(),
|
|
3191
|
+
failed: z55.int(),
|
|
3192
|
+
timeout: z55.int()
|
|
3126
3193
|
});
|
|
3127
3194
|
|
|
3128
3195
|
// src/generated/cfg_centrifugo/_utils/schemas/TimelineResponse.schema.ts
|
|
3129
|
-
import { z as
|
|
3130
|
-
var TimelineResponseSchema =
|
|
3131
|
-
timeline:
|
|
3132
|
-
period_hours:
|
|
3133
|
-
interval:
|
|
3196
|
+
import { z as z56 } from "zod";
|
|
3197
|
+
var TimelineResponseSchema = z56.object({
|
|
3198
|
+
timeline: z56.array(TimelineItemSchema),
|
|
3199
|
+
period_hours: z56.int(),
|
|
3200
|
+
interval: z56.string()
|
|
3134
3201
|
});
|
|
3135
3202
|
|
|
3136
3203
|
// src/generated/cfg_centrifugo/_utils/fetchers/centrifugo__centrifugo_admin_api.ts
|
|
@@ -4126,40 +4193,40 @@ __export(schemas_exports3, {
|
|
|
4126
4193
|
});
|
|
4127
4194
|
|
|
4128
4195
|
// src/generated/cfg_webpush/_utils/schemas/SendPushRequestRequest.schema.ts
|
|
4129
|
-
import { z as
|
|
4130
|
-
var SendPushRequestRequestSchema =
|
|
4131
|
-
title:
|
|
4132
|
-
body:
|
|
4133
|
-
icon:
|
|
4134
|
-
url:
|
|
4196
|
+
import { z as z57 } from "zod";
|
|
4197
|
+
var SendPushRequestRequestSchema = z57.object({
|
|
4198
|
+
title: z57.string().min(1).max(255),
|
|
4199
|
+
body: z57.string().min(1),
|
|
4200
|
+
icon: z57.union([z57.url(), z57.literal("")]).nullable().optional(),
|
|
4201
|
+
url: z57.union([z57.url(), z57.literal("")]).nullable().optional()
|
|
4135
4202
|
});
|
|
4136
4203
|
|
|
4137
4204
|
// src/generated/cfg_webpush/_utils/schemas/SendPushResponse.schema.ts
|
|
4138
|
-
import { z as
|
|
4139
|
-
var SendPushResponseSchema =
|
|
4140
|
-
success:
|
|
4141
|
-
sent_to:
|
|
4205
|
+
import { z as z58 } from "zod";
|
|
4206
|
+
var SendPushResponseSchema = z58.object({
|
|
4207
|
+
success: z58.boolean(),
|
|
4208
|
+
sent_to: z58.int()
|
|
4142
4209
|
});
|
|
4143
4210
|
|
|
4144
4211
|
// src/generated/cfg_webpush/_utils/schemas/SubscribeRequestRequest.schema.ts
|
|
4145
|
-
import { z as
|
|
4146
|
-
var SubscribeRequestRequestSchema =
|
|
4147
|
-
endpoint:
|
|
4148
|
-
keys:
|
|
4212
|
+
import { z as z59 } from "zod";
|
|
4213
|
+
var SubscribeRequestRequestSchema = z59.object({
|
|
4214
|
+
endpoint: z59.union([z59.url(), z59.literal("")]),
|
|
4215
|
+
keys: z59.record(z59.string(), z59.string().min(1))
|
|
4149
4216
|
});
|
|
4150
4217
|
|
|
4151
4218
|
// src/generated/cfg_webpush/_utils/schemas/SubscribeResponse.schema.ts
|
|
4152
|
-
import { z as
|
|
4153
|
-
var SubscribeResponseSchema =
|
|
4154
|
-
success:
|
|
4155
|
-
subscription_id:
|
|
4156
|
-
created:
|
|
4219
|
+
import { z as z60 } from "zod";
|
|
4220
|
+
var SubscribeResponseSchema = z60.object({
|
|
4221
|
+
success: z60.boolean(),
|
|
4222
|
+
subscription_id: z60.int(),
|
|
4223
|
+
created: z60.boolean()
|
|
4157
4224
|
});
|
|
4158
4225
|
|
|
4159
4226
|
// src/generated/cfg_webpush/_utils/schemas/VapidPublicKeyResponse.schema.ts
|
|
4160
|
-
import { z as
|
|
4161
|
-
var VapidPublicKeyResponseSchema =
|
|
4162
|
-
publicKey:
|
|
4227
|
+
import { z as z61 } from "zod";
|
|
4228
|
+
var VapidPublicKeyResponseSchema = z61.object({
|
|
4229
|
+
publicKey: z61.string()
|
|
4163
4230
|
});
|
|
4164
4231
|
|
|
4165
4232
|
// src/generated/cfg_webpush/validation-events.ts
|
|
@@ -4560,6 +4627,7 @@ export {
|
|
|
4560
4627
|
APIClient,
|
|
4561
4628
|
APIError,
|
|
4562
4629
|
APILogger,
|
|
4630
|
+
AccountDeleteResponseSchema,
|
|
4563
4631
|
models_exports4 as AccountsTypes,
|
|
4564
4632
|
models_exports as AuthTypes,
|
|
4565
4633
|
BaseClient,
|
|
@@ -4608,6 +4676,7 @@ export {
|
|
|
4608
4676
|
createAccountsOtpRequestCreate,
|
|
4609
4677
|
createAccountsOtpVerifyCreate,
|
|
4610
4678
|
createAccountsProfileAvatarCreate,
|
|
4679
|
+
createAccountsProfileDeleteCreate,
|
|
4611
4680
|
createAccountsTokenRefreshCreate,
|
|
4612
4681
|
dispatchValidationError,
|
|
4613
4682
|
formatZodError,
|