@purpleschool/gptbot 0.20.16-stage-2 → 0.20.18-stage-2
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/build/api/controllers/http/auth.d.ts +2 -0
- package/build/api/controllers/http/auth.js +2 -0
- package/build/api/controllers/http/html-page-builder.d.ts +1 -0
- package/build/api/controllers/http/html-page-builder.js +1 -0
- package/build/api/controllers/http/user.d.ts +2 -0
- package/build/api/controllers/http/user.js +2 -0
- package/build/api/routes.d.ts +6 -0
- package/build/api/routes.js +6 -0
- package/build/commands/auth/index.d.ts +1 -0
- package/build/commands/auth/index.js +1 -0
- package/build/commands/auth/link-oauth.command.d.ts +29 -0
- package/build/commands/auth/link-oauth.command.js +22 -0
- package/build/commands/subscription/get-subscriptions-summary.command.d.ts +3 -0
- package/build/commands/tools/html-page-builder/answer-html-page-builder-questions.command.d.ts +74 -0
- package/build/commands/tools/html-page-builder/execute-html-page-builder.command.d.ts +75 -0
- package/build/commands/tools/html-page-builder/execute-html-page-builder.command.js +2 -0
- package/build/commands/tools/html-page-builder/find-html-page-builder-session-by-uuid.command.d.ts +74 -0
- package/build/commands/tools/html-page-builder/find-html-page-builder-sessions.command.d.ts +74 -0
- package/build/commands/tools/html-page-builder/get-html-page-builder-price.command.d.ts +1 -0
- package/build/commands/tools/html-page-builder/get-html-page-builder-price.command.js +2 -0
- package/build/commands/tools/html-page-builder/html-page-builder-image-action.command.d.ts +212 -0
- package/build/commands/tools/html-page-builder/html-page-builder-image-action.command.js +12 -0
- package/build/commands/tools/html-page-builder/index.d.ts +1 -0
- package/build/commands/tools/html-page-builder/index.js +1 -0
- package/build/commands/tools/html-page-builder/refine-html-page-builder.command.d.ts +74 -0
- package/build/commands/tools/html-page-builder/retry-html-page-builder-build.command.d.ts +74 -0
- package/build/commands/tools/html-page-builder/retry-html-page-builder-refine.command.d.ts +74 -0
- package/build/commands/tools/html-page-builder/update-html-page-builder-session-favorite.command.d.ts +74 -0
- package/build/commands/tools/html-page-builder/update-html-page-builder-session-reaction.command.d.ts +74 -0
- package/build/commands/tools/html-page-builder/update-html-page-builder-session-title.command.d.ts +74 -0
- package/build/commands/user/attach-email.command.d.ts +29 -0
- package/build/commands/user/attach-email.command.js +34 -0
- package/build/commands/user/get-me.command.d.ts +2 -0
- package/build/commands/user/get-me.command.js +2 -0
- package/build/commands/user/get-user-subscriptions.command.d.ts +1 -0
- package/build/commands/user/index.d.ts +1 -0
- package/build/commands/user/index.js +1 -0
- package/build/commands/user-to-subscription/get-user-to-subscription-by-uuid.command.d.ts +1 -0
- package/build/commands/user-to-subscription/get-user-to-subscriptions.command.d.ts +1 -0
- package/build/commands/user-to-subscription/update-user-to-subscription.command.d.ts +1 -0
- package/build/models/tools/html-page-builder/html-page-builder-image.schema.d.ts +40 -0
- package/build/models/tools/html-page-builder/html-page-builder-image.schema.js +20 -0
- package/build/models/tools/html-page-builder/html-page-builder-job.schema.d.ts +82 -0
- package/build/models/tools/html-page-builder/html-page-builder-job.schema.js +6 -0
- package/build/models/tools/html-page-builder/html-page-builder-page.schema.d.ts +66 -0
- package/build/models/tools/html-page-builder/html-page-builder-page.schema.js +2 -0
- package/build/models/tools/html-page-builder/html-page-builder-session.schema.d.ts +74 -0
- package/build/models/tools/html-page-builder/index.d.ts +1 -0
- package/build/models/tools/html-page-builder/index.js +1 -0
- package/build/models/user-loyalty-status.schema.js +1 -0
- package/build/models/user-to-subscription.schema.d.ts +3 -0
- package/build/models/user-to-subscription.schema.js +2 -0
- package/build/models/user.schema.d.ts +1 -0
- package/package.json +2 -2
|
@@ -5,6 +5,8 @@ export declare const AUTH_ROUTES: {
|
|
|
5
5
|
readonly LOGIN: 'login';
|
|
6
6
|
readonly VK_LOGIN: 'vk/login';
|
|
7
7
|
readonly YANDEX_LOGIN: 'yandex/login';
|
|
8
|
+
readonly VK_LINK: 'vk/link';
|
|
9
|
+
readonly YANDEX_LINK: 'yandex/link';
|
|
8
10
|
readonly CREATE_USER: 'create-user';
|
|
9
11
|
readonly RESTORE_PASSWORD: 'restore-password';
|
|
10
12
|
readonly RESET_PASSWORD: 'reset-password';
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export declare const HTML_PAGE_BUILDER_CONTROLLER_PRIVATE: 'private/tools/html-page-builder';
|
|
2
2
|
export declare const HTML_PAGE_BUILDER_CONTROLLER_PUBLIC: 'public/tools/html-page-builder';
|
|
3
3
|
export declare const HTML_PAGE_BUILDER_ROUTES: {
|
|
4
|
+
readonly IMAGE_ACTION: 'images';
|
|
4
5
|
readonly CONFIG: 'config';
|
|
5
6
|
readonly PRICE: 'price';
|
|
6
7
|
readonly EXECUTE: 'execute';
|
|
@@ -4,6 +4,7 @@ exports.HTML_PAGE_BUILDER_ROUTES = exports.HTML_PAGE_BUILDER_CONTROLLER_PUBLIC =
|
|
|
4
4
|
exports.HTML_PAGE_BUILDER_CONTROLLER_PRIVATE = 'private/tools/html-page-builder';
|
|
5
5
|
exports.HTML_PAGE_BUILDER_CONTROLLER_PUBLIC = 'public/tools/html-page-builder';
|
|
6
6
|
exports.HTML_PAGE_BUILDER_ROUTES = {
|
|
7
|
+
IMAGE_ACTION: 'images',
|
|
7
8
|
CONFIG: 'config',
|
|
8
9
|
PRICE: 'price',
|
|
9
10
|
EXECUTE: 'execute',
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
export declare const USER_CONTROLLER: 'users';
|
|
2
2
|
export declare const USER_ROUTES: {
|
|
3
3
|
readonly GET: 'me';
|
|
4
|
+
readonly ATTACH_EMAIL: 'me/attach-email';
|
|
5
|
+
readonly CONFIRM_ATTACH_EMAIL: 'attach-email/confirm';
|
|
4
6
|
readonly GET_CLIENT_COUNTRY_CODE: 'country-code';
|
|
5
7
|
readonly PATCH_LOCALE: 'me/locale';
|
|
6
8
|
readonly PATCH_DIGITAL_PROCESSING_CONSENT: 'me/digital-processing-consent';
|
|
@@ -4,6 +4,8 @@ exports.USER_ROUTES = exports.USER_CONTROLLER = void 0;
|
|
|
4
4
|
exports.USER_CONTROLLER = 'users';
|
|
5
5
|
exports.USER_ROUTES = {
|
|
6
6
|
GET: 'me',
|
|
7
|
+
ATTACH_EMAIL: 'me/attach-email',
|
|
8
|
+
CONFIRM_ATTACH_EMAIL: 'attach-email/confirm',
|
|
7
9
|
GET_CLIENT_COUNTRY_CODE: 'country-code',
|
|
8
10
|
PATCH_LOCALE: 'me/locale',
|
|
9
11
|
PATCH_DIGITAL_PROCESSING_CONSENT: 'me/digital-processing-consent',
|
package/build/api/routes.d.ts
CHANGED
|
@@ -37,6 +37,8 @@ export declare const REST_API: {
|
|
|
37
37
|
readonly ADMIN_LOGIN: "/api/auth/admin/login";
|
|
38
38
|
readonly VK_LOGIN: "/api/auth/vk/login";
|
|
39
39
|
readonly YANDEX_LOGIN: "/api/auth/yandex/login";
|
|
40
|
+
readonly VK_LINK: "/api/auth/vk/link";
|
|
41
|
+
readonly YANDEX_LINK: "/api/auth/yandex/link";
|
|
40
42
|
readonly CREATE_USER: "/api/auth/create-user";
|
|
41
43
|
readonly RESTORE_PASSWORD: "/api/auth/restore-password";
|
|
42
44
|
readonly RESET_PASSWORD: "/api/auth/reset-password";
|
|
@@ -46,6 +48,8 @@ export declare const REST_API: {
|
|
|
46
48
|
};
|
|
47
49
|
readonly USERS: {
|
|
48
50
|
readonly GET: "/api/users/me";
|
|
51
|
+
readonly ATTACH_EMAIL: "/api/users/me/attach-email";
|
|
52
|
+
readonly CONFIRM_ATTACH_EMAIL: "/api/users/attach-email/confirm";
|
|
49
53
|
readonly GET_CLIENT_COUNTRY_CODE: "/api/users/country-code";
|
|
50
54
|
readonly PATCH_LOCALE: "/api/users/me/locale";
|
|
51
55
|
readonly POST: "/api/users/up-balance";
|
|
@@ -1326,6 +1330,7 @@ export declare const REST_API: {
|
|
|
1326
1330
|
readonly DELETE_ALL: "/api/public/tools/workspaces/";
|
|
1327
1331
|
};
|
|
1328
1332
|
readonly HTML_PAGE_BUILDER_PRIVATE: {
|
|
1333
|
+
readonly IMAGE_ACTION: "/api/private/tools/html-page-builder/images";
|
|
1329
1334
|
readonly CONFIG: "/api/private/tools/html-page-builder/config";
|
|
1330
1335
|
readonly PRICE: "/api/private/tools/html-page-builder/price";
|
|
1331
1336
|
readonly EXECUTE: "/api/private/tools/html-page-builder/execute";
|
|
@@ -1350,6 +1355,7 @@ export declare const REST_API: {
|
|
|
1350
1355
|
readonly DELETE_ALL: "/api/private/tools/html-page-builder/sessions";
|
|
1351
1356
|
};
|
|
1352
1357
|
readonly HTML_PAGE_BUILDER_PUBLIC: {
|
|
1358
|
+
readonly IMAGE_ACTION: "/api/public/tools/html-page-builder/images";
|
|
1353
1359
|
readonly CONFIG: "/api/public/tools/html-page-builder/config";
|
|
1354
1360
|
readonly PRICE: "/api/public/tools/html-page-builder/price";
|
|
1355
1361
|
readonly EXECUTE: "/api/public/tools/html-page-builder/execute";
|
package/build/api/routes.js
CHANGED
|
@@ -76,6 +76,8 @@ exports.REST_API = {
|
|
|
76
76
|
ADMIN_LOGIN: `${exports.ROOT}/${CONTROLLERS.AUTH_CONTROLLER}/${CONTROLLERS.AUTH_ROUTES.ADMIN_LOGIN}`,
|
|
77
77
|
VK_LOGIN: `${exports.ROOT}/${CONTROLLERS.AUTH_CONTROLLER}/${CONTROLLERS.AUTH_ROUTES.VK_LOGIN}`,
|
|
78
78
|
YANDEX_LOGIN: `${exports.ROOT}/${CONTROLLERS.AUTH_CONTROLLER}/${CONTROLLERS.AUTH_ROUTES.YANDEX_LOGIN}`,
|
|
79
|
+
VK_LINK: `${exports.ROOT}/${CONTROLLERS.AUTH_CONTROLLER}/${CONTROLLERS.AUTH_ROUTES.VK_LINK}`,
|
|
80
|
+
YANDEX_LINK: `${exports.ROOT}/${CONTROLLERS.AUTH_CONTROLLER}/${CONTROLLERS.AUTH_ROUTES.YANDEX_LINK}`,
|
|
79
81
|
CREATE_USER: `${exports.ROOT}/${CONTROLLERS.AUTH_CONTROLLER}/${CONTROLLERS.AUTH_ROUTES.CREATE_USER}`,
|
|
80
82
|
RESTORE_PASSWORD: `${exports.ROOT}/${CONTROLLERS.AUTH_CONTROLLER}/${CONTROLLERS.AUTH_ROUTES.RESTORE_PASSWORD}`,
|
|
81
83
|
RESET_PASSWORD: `${exports.ROOT}/${CONTROLLERS.AUTH_CONTROLLER}/${CONTROLLERS.AUTH_ROUTES.RESET_PASSWORD}`,
|
|
@@ -85,6 +87,8 @@ exports.REST_API = {
|
|
|
85
87
|
},
|
|
86
88
|
USERS: {
|
|
87
89
|
GET: `${exports.ROOT}/${CONTROLLERS.USER_CONTROLLER}/${CONTROLLERS.USER_ROUTES.GET}`,
|
|
90
|
+
ATTACH_EMAIL: `${exports.ROOT}/${CONTROLLERS.USER_CONTROLLER}/${CONTROLLERS.USER_ROUTES.ATTACH_EMAIL}`,
|
|
91
|
+
CONFIRM_ATTACH_EMAIL: `${exports.ROOT}/${CONTROLLERS.USER_CONTROLLER}/${CONTROLLERS.USER_ROUTES.CONFIRM_ATTACH_EMAIL}`,
|
|
88
92
|
GET_CLIENT_COUNTRY_CODE: `${exports.ROOT}/${CONTROLLERS.USER_CONTROLLER}/${CONTROLLERS.USER_ROUTES.GET_CLIENT_COUNTRY_CODE}`,
|
|
89
93
|
PATCH_LOCALE: `${exports.ROOT}/${CONTROLLERS.USER_CONTROLLER}/${CONTROLLERS.USER_ROUTES.PATCH_LOCALE}`,
|
|
90
94
|
POST: `${exports.ROOT}/${CONTROLLERS.USER_CONTROLLER}/${CONTROLLERS.USER_ROUTES.POST}`,
|
|
@@ -1365,6 +1369,7 @@ exports.REST_API = {
|
|
|
1365
1369
|
DELETE_ALL: `${exports.ROOT}/${CONTROLLERS.TOOL_WORKSPACE_CONTROLLER_PUBLIC}/${CONTROLLERS.TOOL_WORKSPACE_ROUTES.DELETE_ALL}`,
|
|
1366
1370
|
},
|
|
1367
1371
|
HTML_PAGE_BUILDER_PRIVATE: {
|
|
1372
|
+
IMAGE_ACTION: `${exports.ROOT}/${CONTROLLERS.HTML_PAGE_BUILDER_CONTROLLER_PRIVATE}/${CONTROLLERS.HTML_PAGE_BUILDER_ROUTES.IMAGE_ACTION}`,
|
|
1368
1373
|
CONFIG: `${exports.ROOT}/${CONTROLLERS.HTML_PAGE_BUILDER_CONTROLLER_PRIVATE}/${CONTROLLERS.HTML_PAGE_BUILDER_ROUTES.CONFIG}`,
|
|
1369
1374
|
PRICE: `${exports.ROOT}/${CONTROLLERS.HTML_PAGE_BUILDER_CONTROLLER_PRIVATE}/${CONTROLLERS.HTML_PAGE_BUILDER_ROUTES.PRICE}`,
|
|
1370
1375
|
EXECUTE: `${exports.ROOT}/${CONTROLLERS.HTML_PAGE_BUILDER_CONTROLLER_PRIVATE}/${CONTROLLERS.HTML_PAGE_BUILDER_ROUTES.EXECUTE}`,
|
|
@@ -1389,6 +1394,7 @@ exports.REST_API = {
|
|
|
1389
1394
|
DELETE_ALL: `${exports.ROOT}/${CONTROLLERS.HTML_PAGE_BUILDER_CONTROLLER_PRIVATE}/${CONTROLLERS.HTML_PAGE_BUILDER_ROUTES.DELETE_ALL}`,
|
|
1390
1395
|
},
|
|
1391
1396
|
HTML_PAGE_BUILDER_PUBLIC: {
|
|
1397
|
+
IMAGE_ACTION: `${exports.ROOT}/${CONTROLLERS.HTML_PAGE_BUILDER_CONTROLLER_PUBLIC}/${CONTROLLERS.HTML_PAGE_BUILDER_ROUTES.IMAGE_ACTION}`,
|
|
1392
1398
|
CONFIG: `${exports.ROOT}/${CONTROLLERS.HTML_PAGE_BUILDER_CONTROLLER_PUBLIC}/${CONTROLLERS.HTML_PAGE_BUILDER_ROUTES.CONFIG}`,
|
|
1393
1399
|
PRICE: `${exports.ROOT}/${CONTROLLERS.HTML_PAGE_BUILDER_CONTROLLER_PUBLIC}/${CONTROLLERS.HTML_PAGE_BUILDER_ROUTES.PRICE}`,
|
|
1394
1400
|
EXECUTE: `${exports.ROOT}/${CONTROLLERS.HTML_PAGE_BUILDER_CONTROLLER_PUBLIC}/${CONTROLLERS.HTML_PAGE_BUILDER_ROUTES.EXECUTE}`,
|
|
@@ -15,6 +15,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./create-user.command"), exports);
|
|
18
|
+
__exportStar(require("./link-oauth.command"), exports);
|
|
18
19
|
__exportStar(require("./login.command"), exports);
|
|
19
20
|
__exportStar(require("./register-user.command"), exports);
|
|
20
21
|
__exportStar(require("./reset-password.command"), exports);
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare namespace LinkVKCommand {
|
|
3
|
+
const RequestSchema: z.ZodObject<{
|
|
4
|
+
code: z.ZodString;
|
|
5
|
+
code_verifier: z.ZodString;
|
|
6
|
+
device_id: z.ZodString;
|
|
7
|
+
state: z.ZodString;
|
|
8
|
+
}, z.core.$strip>;
|
|
9
|
+
type Request = z.infer<typeof RequestSchema>;
|
|
10
|
+
const ResponseSchema: z.ZodObject<{
|
|
11
|
+
data: z.ZodObject<{
|
|
12
|
+
linked: z.ZodLiteral<true>;
|
|
13
|
+
}, z.core.$strip>;
|
|
14
|
+
}, z.core.$strip>;
|
|
15
|
+
type Response = z.infer<typeof ResponseSchema>;
|
|
16
|
+
}
|
|
17
|
+
export declare namespace LinkYandexCommand {
|
|
18
|
+
const RequestSchema: z.ZodObject<{
|
|
19
|
+
code: z.ZodString;
|
|
20
|
+
code_verifier: z.ZodString;
|
|
21
|
+
}, z.core.$strip>;
|
|
22
|
+
type Request = z.infer<typeof RequestSchema>;
|
|
23
|
+
const ResponseSchema: z.ZodObject<{
|
|
24
|
+
data: z.ZodObject<{
|
|
25
|
+
linked: z.ZodLiteral<true>;
|
|
26
|
+
}, z.core.$strip>;
|
|
27
|
+
}, z.core.$strip>;
|
|
28
|
+
type Response = z.infer<typeof ResponseSchema>;
|
|
29
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.LinkYandexCommand = exports.LinkVKCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
var LinkVKCommand;
|
|
6
|
+
(function (LinkVKCommand) {
|
|
7
|
+
LinkVKCommand.RequestSchema = zod_1.z.object({
|
|
8
|
+
code: zod_1.z.string().min(1),
|
|
9
|
+
code_verifier: zod_1.z.string().min(1),
|
|
10
|
+
device_id: zod_1.z.string().min(1),
|
|
11
|
+
state: zod_1.z.string().min(1),
|
|
12
|
+
});
|
|
13
|
+
LinkVKCommand.ResponseSchema = zod_1.z.object({ data: zod_1.z.object({ linked: zod_1.z.literal(true) }) });
|
|
14
|
+
})(LinkVKCommand || (exports.LinkVKCommand = LinkVKCommand = {}));
|
|
15
|
+
var LinkYandexCommand;
|
|
16
|
+
(function (LinkYandexCommand) {
|
|
17
|
+
LinkYandexCommand.RequestSchema = LinkVKCommand.RequestSchema.pick({
|
|
18
|
+
code: true,
|
|
19
|
+
code_verifier: true,
|
|
20
|
+
});
|
|
21
|
+
LinkYandexCommand.ResponseSchema = LinkVKCommand.ResponseSchema;
|
|
22
|
+
})(LinkYandexCommand || (exports.LinkYandexCommand = LinkYandexCommand = {}));
|
|
@@ -401,6 +401,7 @@ export declare const SubscriptionSummarySchema: z.ZodDiscriminatedUnion<[z.ZodOb
|
|
|
401
401
|
status: z.ZodString;
|
|
402
402
|
startDate: z.ZodNullable<z.ZodDate>;
|
|
403
403
|
endDate: z.ZodNullable<z.ZodDate>;
|
|
404
|
+
billingAnchorDay: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
404
405
|
marks: z.ZodArray<z.ZodString>;
|
|
405
406
|
intervalEndDate: z.ZodNullable<z.ZodDate>;
|
|
406
407
|
carriedOverTokenBalance: z.ZodNumber;
|
|
@@ -1225,6 +1226,7 @@ export declare namespace GetSubscriptionsSummaryCommand {
|
|
|
1225
1226
|
status: z.ZodString;
|
|
1226
1227
|
startDate: z.ZodNullable<z.ZodDate>;
|
|
1227
1228
|
endDate: z.ZodNullable<z.ZodDate>;
|
|
1229
|
+
billingAnchorDay: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1228
1230
|
marks: z.ZodArray<z.ZodString>;
|
|
1229
1231
|
intervalEndDate: z.ZodNullable<z.ZodDate>;
|
|
1230
1232
|
carriedOverTokenBalance: z.ZodNumber;
|
|
@@ -2012,6 +2014,7 @@ export declare namespace GetSubscriptionsSummaryCommand {
|
|
|
2012
2014
|
status: z.ZodString;
|
|
2013
2015
|
startDate: z.ZodNullable<z.ZodDate>;
|
|
2014
2016
|
endDate: z.ZodNullable<z.ZodDate>;
|
|
2017
|
+
billingAnchorDay: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2015
2018
|
marks: z.ZodArray<z.ZodString>;
|
|
2016
2019
|
intervalEndDate: z.ZodNullable<z.ZodDate>;
|
|
2017
2020
|
carriedOverTokenBalance: z.ZodNumber;
|
package/build/commands/tools/html-page-builder/answer-html-page-builder-questions.command.d.ts
CHANGED
|
@@ -54,6 +54,28 @@ export declare namespace AnswerHtmlPageBuilderQuestionsCommand {
|
|
|
54
54
|
html: z.ZodString;
|
|
55
55
|
order: z.ZodNumber;
|
|
56
56
|
isHome: z.ZodBoolean;
|
|
57
|
+
imageSlots: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
58
|
+
id: z.ZodString;
|
|
59
|
+
url: z.ZodNullable<z.ZodURL>;
|
|
60
|
+
status: z.ZodEnum<{
|
|
61
|
+
completed: "completed";
|
|
62
|
+
empty: "empty";
|
|
63
|
+
failed: "failed";
|
|
64
|
+
pending: "pending";
|
|
65
|
+
}>;
|
|
66
|
+
operationState: z.ZodOptional<z.ZodEnum<{
|
|
67
|
+
completed: "completed";
|
|
68
|
+
failed: "failed";
|
|
69
|
+
queued: "queued";
|
|
70
|
+
running: "running";
|
|
71
|
+
}>>;
|
|
72
|
+
billingStatus: z.ZodOptional<z.ZodEnum<{
|
|
73
|
+
charged: "charged";
|
|
74
|
+
not_charged: "not_charged";
|
|
75
|
+
pending: "pending";
|
|
76
|
+
}>>;
|
|
77
|
+
prompt: z.ZodOptional<z.ZodString>;
|
|
78
|
+
}, z.core.$strip>>>;
|
|
57
79
|
}, z.core.$strip>>>>;
|
|
58
80
|
previewUrl: z.ZodOptional<z.ZodString>;
|
|
59
81
|
files: z.ZodOptional<z.ZodObject<{
|
|
@@ -87,6 +109,36 @@ export declare namespace AnswerHtmlPageBuilderQuestionsCommand {
|
|
|
87
109
|
userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
88
110
|
unregisteredUserId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
89
111
|
params: z.ZodObject<{
|
|
112
|
+
withImages: z.ZodOptional<z.ZodBoolean>;
|
|
113
|
+
imageOriginId: z.ZodOptional<z.ZodUUID>;
|
|
114
|
+
imagePhase: z.ZodOptional<z.ZodObject<{
|
|
115
|
+
originId: z.ZodUUID;
|
|
116
|
+
settled: z.ZodBoolean;
|
|
117
|
+
operations: z.ZodArray<z.ZodObject<{
|
|
118
|
+
pageSlug: z.ZodString;
|
|
119
|
+
slotId: z.ZodString;
|
|
120
|
+
state: z.ZodEnum<{
|
|
121
|
+
completed: "completed";
|
|
122
|
+
failed: "failed";
|
|
123
|
+
queued: "queued";
|
|
124
|
+
running: "running";
|
|
125
|
+
}>;
|
|
126
|
+
}, z.core.$strip>>;
|
|
127
|
+
}, z.core.$strip>>;
|
|
128
|
+
imageAction: z.ZodOptional<z.ZodObject<{
|
|
129
|
+
pageSlug: z.ZodString;
|
|
130
|
+
slotId: z.ZodString;
|
|
131
|
+
mode: z.ZodEnum<{
|
|
132
|
+
generate: "generate";
|
|
133
|
+
regenerate: "regenerate";
|
|
134
|
+
replace: "replace";
|
|
135
|
+
}>;
|
|
136
|
+
billingStatus: z.ZodOptional<z.ZodEnum<{
|
|
137
|
+
charged: "charged";
|
|
138
|
+
not_charged: "not_charged";
|
|
139
|
+
pending: "pending";
|
|
140
|
+
}>>;
|
|
141
|
+
}, z.core.$strip>>;
|
|
90
142
|
attachedFiles: z.ZodArray<z.ZodObject<{
|
|
91
143
|
uuid: z.ZodString;
|
|
92
144
|
url: z.ZodString;
|
|
@@ -116,6 +168,28 @@ export declare namespace AnswerHtmlPageBuilderQuestionsCommand {
|
|
|
116
168
|
html: z.ZodString;
|
|
117
169
|
order: z.ZodNumber;
|
|
118
170
|
isHome: z.ZodBoolean;
|
|
171
|
+
imageSlots: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
172
|
+
id: z.ZodString;
|
|
173
|
+
url: z.ZodNullable<z.ZodURL>;
|
|
174
|
+
status: z.ZodEnum<{
|
|
175
|
+
completed: "completed";
|
|
176
|
+
empty: "empty";
|
|
177
|
+
failed: "failed";
|
|
178
|
+
pending: "pending";
|
|
179
|
+
}>;
|
|
180
|
+
operationState: z.ZodOptional<z.ZodEnum<{
|
|
181
|
+
completed: "completed";
|
|
182
|
+
failed: "failed";
|
|
183
|
+
queued: "queued";
|
|
184
|
+
running: "running";
|
|
185
|
+
}>>;
|
|
186
|
+
billingStatus: z.ZodOptional<z.ZodEnum<{
|
|
187
|
+
charged: "charged";
|
|
188
|
+
not_charged: "not_charged";
|
|
189
|
+
pending: "pending";
|
|
190
|
+
}>>;
|
|
191
|
+
prompt: z.ZodOptional<z.ZodString>;
|
|
192
|
+
}, z.core.$strip>>>;
|
|
119
193
|
}, z.core.$strip>>;
|
|
120
194
|
userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
121
195
|
unregisteredUserId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -16,6 +16,7 @@ export declare namespace ExecuteHtmlPageBuilderCommand {
|
|
|
16
16
|
attachedFiles: z.ZodArray<z.ZodUUID>;
|
|
17
17
|
}, z.core.$strip>;
|
|
18
18
|
pagesCount: z.ZodNumber;
|
|
19
|
+
withImages: z.ZodOptional<z.ZodBoolean>;
|
|
19
20
|
styleId: z.ZodUUID;
|
|
20
21
|
fontId: z.ZodUUID;
|
|
21
22
|
accentColor: z.ZodOptional<z.ZodString>;
|
|
@@ -60,6 +61,28 @@ export declare namespace ExecuteHtmlPageBuilderCommand {
|
|
|
60
61
|
html: z.ZodString;
|
|
61
62
|
order: z.ZodNumber;
|
|
62
63
|
isHome: z.ZodBoolean;
|
|
64
|
+
imageSlots: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
65
|
+
id: z.ZodString;
|
|
66
|
+
url: z.ZodNullable<z.ZodURL>;
|
|
67
|
+
status: z.ZodEnum<{
|
|
68
|
+
completed: "completed";
|
|
69
|
+
empty: "empty";
|
|
70
|
+
failed: "failed";
|
|
71
|
+
pending: "pending";
|
|
72
|
+
}>;
|
|
73
|
+
operationState: z.ZodOptional<z.ZodEnum<{
|
|
74
|
+
completed: "completed";
|
|
75
|
+
failed: "failed";
|
|
76
|
+
queued: "queued";
|
|
77
|
+
running: "running";
|
|
78
|
+
}>>;
|
|
79
|
+
billingStatus: z.ZodOptional<z.ZodEnum<{
|
|
80
|
+
charged: "charged";
|
|
81
|
+
not_charged: "not_charged";
|
|
82
|
+
pending: "pending";
|
|
83
|
+
}>>;
|
|
84
|
+
prompt: z.ZodOptional<z.ZodString>;
|
|
85
|
+
}, z.core.$strip>>>;
|
|
63
86
|
}, z.core.$strip>>>>;
|
|
64
87
|
previewUrl: z.ZodOptional<z.ZodString>;
|
|
65
88
|
files: z.ZodOptional<z.ZodObject<{
|
|
@@ -93,6 +116,36 @@ export declare namespace ExecuteHtmlPageBuilderCommand {
|
|
|
93
116
|
userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
94
117
|
unregisteredUserId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
95
118
|
params: z.ZodObject<{
|
|
119
|
+
withImages: z.ZodOptional<z.ZodBoolean>;
|
|
120
|
+
imageOriginId: z.ZodOptional<z.ZodUUID>;
|
|
121
|
+
imagePhase: z.ZodOptional<z.ZodObject<{
|
|
122
|
+
originId: z.ZodUUID;
|
|
123
|
+
settled: z.ZodBoolean;
|
|
124
|
+
operations: z.ZodArray<z.ZodObject<{
|
|
125
|
+
pageSlug: z.ZodString;
|
|
126
|
+
slotId: z.ZodString;
|
|
127
|
+
state: z.ZodEnum<{
|
|
128
|
+
completed: "completed";
|
|
129
|
+
failed: "failed";
|
|
130
|
+
queued: "queued";
|
|
131
|
+
running: "running";
|
|
132
|
+
}>;
|
|
133
|
+
}, z.core.$strip>>;
|
|
134
|
+
}, z.core.$strip>>;
|
|
135
|
+
imageAction: z.ZodOptional<z.ZodObject<{
|
|
136
|
+
pageSlug: z.ZodString;
|
|
137
|
+
slotId: z.ZodString;
|
|
138
|
+
mode: z.ZodEnum<{
|
|
139
|
+
generate: "generate";
|
|
140
|
+
regenerate: "regenerate";
|
|
141
|
+
replace: "replace";
|
|
142
|
+
}>;
|
|
143
|
+
billingStatus: z.ZodOptional<z.ZodEnum<{
|
|
144
|
+
charged: "charged";
|
|
145
|
+
not_charged: "not_charged";
|
|
146
|
+
pending: "pending";
|
|
147
|
+
}>>;
|
|
148
|
+
}, z.core.$strip>>;
|
|
96
149
|
attachedFiles: z.ZodArray<z.ZodObject<{
|
|
97
150
|
uuid: z.ZodString;
|
|
98
151
|
url: z.ZodString;
|
|
@@ -122,6 +175,28 @@ export declare namespace ExecuteHtmlPageBuilderCommand {
|
|
|
122
175
|
html: z.ZodString;
|
|
123
176
|
order: z.ZodNumber;
|
|
124
177
|
isHome: z.ZodBoolean;
|
|
178
|
+
imageSlots: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
179
|
+
id: z.ZodString;
|
|
180
|
+
url: z.ZodNullable<z.ZodURL>;
|
|
181
|
+
status: z.ZodEnum<{
|
|
182
|
+
completed: "completed";
|
|
183
|
+
empty: "empty";
|
|
184
|
+
failed: "failed";
|
|
185
|
+
pending: "pending";
|
|
186
|
+
}>;
|
|
187
|
+
operationState: z.ZodOptional<z.ZodEnum<{
|
|
188
|
+
completed: "completed";
|
|
189
|
+
failed: "failed";
|
|
190
|
+
queued: "queued";
|
|
191
|
+
running: "running";
|
|
192
|
+
}>>;
|
|
193
|
+
billingStatus: z.ZodOptional<z.ZodEnum<{
|
|
194
|
+
charged: "charged";
|
|
195
|
+
not_charged: "not_charged";
|
|
196
|
+
pending: "pending";
|
|
197
|
+
}>>;
|
|
198
|
+
prompt: z.ZodOptional<z.ZodString>;
|
|
199
|
+
}, z.core.$strip>>>;
|
|
125
200
|
}, z.core.$strip>>;
|
|
126
201
|
userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
127
202
|
unregisteredUserId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -23,6 +23,8 @@ var ExecuteHtmlPageBuilderCommand;
|
|
|
23
23
|
// Required: the volume is what the run is priced by, so a request that does not name it
|
|
24
24
|
// would be paid for as something else
|
|
25
25
|
pagesCount: zod_1.z.number().int().positive(),
|
|
26
|
+
/** Initial BUILD images only; absent means false. */
|
|
27
|
+
withImages: zod_1.z.boolean().optional(),
|
|
26
28
|
/**
|
|
27
29
|
* Design of the site. Required: every run builds a site from scratch, and a generation
|
|
28
30
|
* without a style is not a cheaper site, it is a different one.
|
package/build/commands/tools/html-page-builder/find-html-page-builder-session-by-uuid.command.d.ts
CHANGED
|
@@ -43,6 +43,28 @@ export declare namespace FindHtmlPageBuilderSessionByUUIDCommand {
|
|
|
43
43
|
html: z.ZodString;
|
|
44
44
|
order: z.ZodNumber;
|
|
45
45
|
isHome: z.ZodBoolean;
|
|
46
|
+
imageSlots: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
47
|
+
id: z.ZodString;
|
|
48
|
+
url: z.ZodNullable<z.ZodURL>;
|
|
49
|
+
status: z.ZodEnum<{
|
|
50
|
+
completed: "completed";
|
|
51
|
+
empty: "empty";
|
|
52
|
+
failed: "failed";
|
|
53
|
+
pending: "pending";
|
|
54
|
+
}>;
|
|
55
|
+
operationState: z.ZodOptional<z.ZodEnum<{
|
|
56
|
+
completed: "completed";
|
|
57
|
+
failed: "failed";
|
|
58
|
+
queued: "queued";
|
|
59
|
+
running: "running";
|
|
60
|
+
}>>;
|
|
61
|
+
billingStatus: z.ZodOptional<z.ZodEnum<{
|
|
62
|
+
charged: "charged";
|
|
63
|
+
not_charged: "not_charged";
|
|
64
|
+
pending: "pending";
|
|
65
|
+
}>>;
|
|
66
|
+
prompt: z.ZodOptional<z.ZodString>;
|
|
67
|
+
}, z.core.$strip>>>;
|
|
46
68
|
}, z.core.$strip>>>>;
|
|
47
69
|
previewUrl: z.ZodOptional<z.ZodString>;
|
|
48
70
|
files: z.ZodOptional<z.ZodObject<{
|
|
@@ -76,6 +98,36 @@ export declare namespace FindHtmlPageBuilderSessionByUUIDCommand {
|
|
|
76
98
|
userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
77
99
|
unregisteredUserId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
78
100
|
params: z.ZodObject<{
|
|
101
|
+
withImages: z.ZodOptional<z.ZodBoolean>;
|
|
102
|
+
imageOriginId: z.ZodOptional<z.ZodUUID>;
|
|
103
|
+
imagePhase: z.ZodOptional<z.ZodObject<{
|
|
104
|
+
originId: z.ZodUUID;
|
|
105
|
+
settled: z.ZodBoolean;
|
|
106
|
+
operations: z.ZodArray<z.ZodObject<{
|
|
107
|
+
pageSlug: z.ZodString;
|
|
108
|
+
slotId: z.ZodString;
|
|
109
|
+
state: z.ZodEnum<{
|
|
110
|
+
completed: "completed";
|
|
111
|
+
failed: "failed";
|
|
112
|
+
queued: "queued";
|
|
113
|
+
running: "running";
|
|
114
|
+
}>;
|
|
115
|
+
}, z.core.$strip>>;
|
|
116
|
+
}, z.core.$strip>>;
|
|
117
|
+
imageAction: z.ZodOptional<z.ZodObject<{
|
|
118
|
+
pageSlug: z.ZodString;
|
|
119
|
+
slotId: z.ZodString;
|
|
120
|
+
mode: z.ZodEnum<{
|
|
121
|
+
generate: "generate";
|
|
122
|
+
regenerate: "regenerate";
|
|
123
|
+
replace: "replace";
|
|
124
|
+
}>;
|
|
125
|
+
billingStatus: z.ZodOptional<z.ZodEnum<{
|
|
126
|
+
charged: "charged";
|
|
127
|
+
not_charged: "not_charged";
|
|
128
|
+
pending: "pending";
|
|
129
|
+
}>>;
|
|
130
|
+
}, z.core.$strip>>;
|
|
79
131
|
attachedFiles: z.ZodArray<z.ZodObject<{
|
|
80
132
|
uuid: z.ZodString;
|
|
81
133
|
url: z.ZodString;
|
|
@@ -105,6 +157,28 @@ export declare namespace FindHtmlPageBuilderSessionByUUIDCommand {
|
|
|
105
157
|
html: z.ZodString;
|
|
106
158
|
order: z.ZodNumber;
|
|
107
159
|
isHome: z.ZodBoolean;
|
|
160
|
+
imageSlots: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
161
|
+
id: z.ZodString;
|
|
162
|
+
url: z.ZodNullable<z.ZodURL>;
|
|
163
|
+
status: z.ZodEnum<{
|
|
164
|
+
completed: "completed";
|
|
165
|
+
empty: "empty";
|
|
166
|
+
failed: "failed";
|
|
167
|
+
pending: "pending";
|
|
168
|
+
}>;
|
|
169
|
+
operationState: z.ZodOptional<z.ZodEnum<{
|
|
170
|
+
completed: "completed";
|
|
171
|
+
failed: "failed";
|
|
172
|
+
queued: "queued";
|
|
173
|
+
running: "running";
|
|
174
|
+
}>>;
|
|
175
|
+
billingStatus: z.ZodOptional<z.ZodEnum<{
|
|
176
|
+
charged: "charged";
|
|
177
|
+
not_charged: "not_charged";
|
|
178
|
+
pending: "pending";
|
|
179
|
+
}>>;
|
|
180
|
+
prompt: z.ZodOptional<z.ZodString>;
|
|
181
|
+
}, z.core.$strip>>>;
|
|
108
182
|
}, z.core.$strip>>;
|
|
109
183
|
userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
110
184
|
unregisteredUserId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -49,6 +49,28 @@ export declare namespace FindHtmlPageBuilderSessionsCommand {
|
|
|
49
49
|
html: z.ZodString;
|
|
50
50
|
order: z.ZodNumber;
|
|
51
51
|
isHome: z.ZodBoolean;
|
|
52
|
+
imageSlots: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
53
|
+
id: z.ZodString;
|
|
54
|
+
url: z.ZodNullable<z.ZodURL>;
|
|
55
|
+
status: z.ZodEnum<{
|
|
56
|
+
completed: "completed";
|
|
57
|
+
empty: "empty";
|
|
58
|
+
failed: "failed";
|
|
59
|
+
pending: "pending";
|
|
60
|
+
}>;
|
|
61
|
+
operationState: z.ZodOptional<z.ZodEnum<{
|
|
62
|
+
completed: "completed";
|
|
63
|
+
failed: "failed";
|
|
64
|
+
queued: "queued";
|
|
65
|
+
running: "running";
|
|
66
|
+
}>>;
|
|
67
|
+
billingStatus: z.ZodOptional<z.ZodEnum<{
|
|
68
|
+
charged: "charged";
|
|
69
|
+
not_charged: "not_charged";
|
|
70
|
+
pending: "pending";
|
|
71
|
+
}>>;
|
|
72
|
+
prompt: z.ZodOptional<z.ZodString>;
|
|
73
|
+
}, z.core.$strip>>>;
|
|
52
74
|
}, z.core.$strip>>>>;
|
|
53
75
|
previewUrl: z.ZodOptional<z.ZodString>;
|
|
54
76
|
files: z.ZodOptional<z.ZodObject<{
|
|
@@ -82,6 +104,36 @@ export declare namespace FindHtmlPageBuilderSessionsCommand {
|
|
|
82
104
|
userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
83
105
|
unregisteredUserId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
84
106
|
params: z.ZodObject<{
|
|
107
|
+
withImages: z.ZodOptional<z.ZodBoolean>;
|
|
108
|
+
imageOriginId: z.ZodOptional<z.ZodUUID>;
|
|
109
|
+
imagePhase: z.ZodOptional<z.ZodObject<{
|
|
110
|
+
originId: z.ZodUUID;
|
|
111
|
+
settled: z.ZodBoolean;
|
|
112
|
+
operations: z.ZodArray<z.ZodObject<{
|
|
113
|
+
pageSlug: z.ZodString;
|
|
114
|
+
slotId: z.ZodString;
|
|
115
|
+
state: z.ZodEnum<{
|
|
116
|
+
completed: "completed";
|
|
117
|
+
failed: "failed";
|
|
118
|
+
queued: "queued";
|
|
119
|
+
running: "running";
|
|
120
|
+
}>;
|
|
121
|
+
}, z.core.$strip>>;
|
|
122
|
+
}, z.core.$strip>>;
|
|
123
|
+
imageAction: z.ZodOptional<z.ZodObject<{
|
|
124
|
+
pageSlug: z.ZodString;
|
|
125
|
+
slotId: z.ZodString;
|
|
126
|
+
mode: z.ZodEnum<{
|
|
127
|
+
generate: "generate";
|
|
128
|
+
regenerate: "regenerate";
|
|
129
|
+
replace: "replace";
|
|
130
|
+
}>;
|
|
131
|
+
billingStatus: z.ZodOptional<z.ZodEnum<{
|
|
132
|
+
charged: "charged";
|
|
133
|
+
not_charged: "not_charged";
|
|
134
|
+
pending: "pending";
|
|
135
|
+
}>>;
|
|
136
|
+
}, z.core.$strip>>;
|
|
85
137
|
attachedFiles: z.ZodArray<z.ZodObject<{
|
|
86
138
|
uuid: z.ZodString;
|
|
87
139
|
url: z.ZodString;
|
|
@@ -111,6 +163,28 @@ export declare namespace FindHtmlPageBuilderSessionsCommand {
|
|
|
111
163
|
html: z.ZodString;
|
|
112
164
|
order: z.ZodNumber;
|
|
113
165
|
isHome: z.ZodBoolean;
|
|
166
|
+
imageSlots: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
167
|
+
id: z.ZodString;
|
|
168
|
+
url: z.ZodNullable<z.ZodURL>;
|
|
169
|
+
status: z.ZodEnum<{
|
|
170
|
+
completed: "completed";
|
|
171
|
+
empty: "empty";
|
|
172
|
+
failed: "failed";
|
|
173
|
+
pending: "pending";
|
|
174
|
+
}>;
|
|
175
|
+
operationState: z.ZodOptional<z.ZodEnum<{
|
|
176
|
+
completed: "completed";
|
|
177
|
+
failed: "failed";
|
|
178
|
+
queued: "queued";
|
|
179
|
+
running: "running";
|
|
180
|
+
}>>;
|
|
181
|
+
billingStatus: z.ZodOptional<z.ZodEnum<{
|
|
182
|
+
charged: "charged";
|
|
183
|
+
not_charged: "not_charged";
|
|
184
|
+
pending: "pending";
|
|
185
|
+
}>>;
|
|
186
|
+
prompt: z.ZodOptional<z.ZodString>;
|
|
187
|
+
}, z.core.$strip>>>;
|
|
114
188
|
}, z.core.$strip>>;
|
|
115
189
|
userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
116
190
|
unregisteredUserId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -10,6 +10,7 @@ export declare namespace GetHtmlPageBuilderPriceCommand {
|
|
|
10
10
|
modelId: z.ZodUUID;
|
|
11
11
|
inputLength: z.ZodNumber;
|
|
12
12
|
sessionId: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
|
|
13
|
+
withImages: z.ZodOptional<z.ZodBoolean>;
|
|
13
14
|
baseJobId: z.ZodOptional<z.ZodUUID>;
|
|
14
15
|
pagesCount: z.ZodNumber;
|
|
15
16
|
styleId: z.ZodUUID;
|
|
@@ -15,6 +15,8 @@ var GetHtmlPageBuilderPriceCommand;
|
|
|
15
15
|
modelId: zod_1.z.uuid(),
|
|
16
16
|
inputLength: zod_1.z.number().int().nonnegative().max(GetHtmlPageBuilderPriceCommand.MAX_INPUT_LENGTH),
|
|
17
17
|
sessionId: zod_1.z.uuid().nullable().optional(),
|
|
18
|
+
/** Initial BUILD images only; absent means false. */
|
|
19
|
+
withImages: zod_1.z.boolean().optional(),
|
|
18
20
|
// Present only for refinement: price the immutable saved bundle, not a new build.
|
|
19
21
|
baseJobId: zod_1.z.uuid().optional(),
|
|
20
22
|
// Required, exactly as in `execute`: the quote must describe the same site the run builds
|