@purpleschool/gptbot 0.15.93 → 0.16.0-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/consent.d.ts +4 -0
- package/build/api/controllers/http/consent.js +7 -0
- package/build/api/controllers/http/html-page-builder.d.ts +8 -0
- package/build/api/controllers/http/html-page-builder.js +11 -0
- package/build/api/controllers/http/index.d.ts +1 -0
- package/build/api/controllers/http/index.js +1 -0
- package/build/api/routes.d.ts +18 -0
- package/build/api/routes.js +18 -0
- package/build/commands/ai-studio/canvas-node/find-canvas-node-definitions-with-configs.query.d.ts +98 -0
- package/build/commands/cookie-consent/acknowledge-cookie-consent.command.d.ts +10 -0
- package/build/commands/cookie-consent/acknowledge-cookie-consent.command.js +27 -0
- package/build/commands/cookie-consent/index.d.ts +1 -0
- package/build/commands/cookie-consent/index.js +17 -0
- package/build/commands/index.d.ts +1 -0
- package/build/commands/index.js +1 -0
- package/build/commands/tools/html-page-builder/answer-html-page-builder-questions.command.d.ts +126 -0
- package/build/commands/tools/html-page-builder/answer-html-page-builder-questions.command.js +24 -0
- package/build/commands/tools/html-page-builder/execute-html-page-builder.command.d.ts +71 -3
- package/build/commands/tools/html-page-builder/execute-html-page-builder.command.js +17 -0
- package/build/commands/tools/html-page-builder/find-html-page-builder-font-by-uuid.command.d.ts +31 -0
- package/build/commands/tools/html-page-builder/find-html-page-builder-font-by-uuid.command.js +14 -0
- package/build/commands/tools/html-page-builder/find-html-page-builder-fonts.command.d.ts +38 -0
- package/build/commands/tools/html-page-builder/find-html-page-builder-fonts.command.js +30 -0
- package/build/commands/tools/html-page-builder/find-html-page-builder-presets.command.d.ts +70 -0
- package/build/commands/tools/html-page-builder/find-html-page-builder-presets.command.js +18 -0
- package/build/commands/tools/html-page-builder/find-html-page-builder-session-by-uuid.command.d.ts +63 -3
- package/build/commands/tools/html-page-builder/find-html-page-builder-sessions.command.d.ts +66 -6
- package/build/commands/tools/html-page-builder/find-html-page-builder-sessions.command.js +1 -1
- package/build/commands/tools/html-page-builder/find-html-page-builder-style-by-uuid.command.d.ts +23 -0
- package/build/commands/tools/html-page-builder/find-html-page-builder-style-by-uuid.command.js +14 -0
- package/build/commands/tools/html-page-builder/find-html-page-builder-styles.command.d.ts +30 -0
- package/build/commands/tools/html-page-builder/find-html-page-builder-styles.command.js +30 -0
- package/build/commands/tools/html-page-builder/get-html-page-builder-price.command.d.ts +10 -0
- package/build/commands/tools/html-page-builder/get-html-page-builder-price.command.js +17 -1
- package/build/commands/tools/html-page-builder/get-html-page-builder-tool-config.command.d.ts +98 -0
- package/build/commands/tools/html-page-builder/get-shared-html-page-builder-site.command.d.ts +14 -0
- package/build/commands/tools/html-page-builder/get-shared-html-page-builder-site.command.js +18 -0
- package/build/commands/tools/html-page-builder/index.d.ts +8 -0
- package/build/commands/tools/html-page-builder/index.js +8 -0
- package/build/commands/tools/html-page-builder/update-html-page-builder-session-favorite.command.d.ts +63 -3
- package/build/commands/tools/html-page-builder/update-html-page-builder-session-reaction.command.d.ts +124 -0
- package/build/commands/tools/html-page-builder/update-html-page-builder-session-reaction.command.js +32 -0
- package/build/commands/tools/html-page-builder/update-html-page-builder-session-title.command.d.ts +63 -3
- package/build/constants/tool-html-page-builder/enums/html-page-builder-catalog-sort.enum.d.ts +4 -0
- package/build/constants/tool-html-page-builder/enums/html-page-builder-catalog-sort.enum.js +8 -0
- package/build/constants/tool-html-page-builder/enums/html-page-builder-font-tag.enum.d.ts +5 -0
- package/build/constants/tool-html-page-builder/enums/html-page-builder-font-tag.enum.js +9 -0
- package/build/constants/tool-html-page-builder/enums/html-page-builder-question-type.enum.d.ts +12 -0
- package/build/constants/tool-html-page-builder/enums/html-page-builder-question-type.enum.js +16 -0
- package/build/constants/tool-html-page-builder/enums/html-page-builder-session-status.enum.d.ts +18 -0
- package/build/constants/tool-html-page-builder/enums/html-page-builder-session-status.enum.js +22 -0
- package/build/constants/tool-html-page-builder/enums/html-page-builder-style-tag.enum.d.ts +8 -0
- package/build/constants/tool-html-page-builder/enums/html-page-builder-style-tag.enum.js +12 -0
- package/build/constants/tool-html-page-builder/enums/index.d.ts +5 -1
- package/build/constants/tool-html-page-builder/enums/index.js +5 -1
- package/build/models/canvas-node-definition.schema.d.ts +294 -0
- package/build/models/tools/html-page-builder/html-page-builder-clarification.schema.d.ts +39 -0
- package/build/models/tools/html-page-builder/html-page-builder-clarification.schema.js +31 -0
- package/build/models/tools/html-page-builder/html-page-builder-config.schema.d.ts +109 -0
- package/build/models/tools/html-page-builder/html-page-builder-config.schema.js +18 -1
- package/build/models/tools/html-page-builder/html-page-builder-font.schema.d.ts +24 -0
- package/build/models/tools/html-page-builder/html-page-builder-font.schema.js +18 -0
- package/build/models/tools/html-page-builder/html-page-builder-job.schema.d.ts +76 -3
- package/build/models/tools/html-page-builder/html-page-builder-job.schema.js +42 -3
- package/build/models/tools/html-page-builder/html-page-builder-page.schema.d.ts +30 -0
- package/build/models/tools/html-page-builder/html-page-builder-page.schema.js +18 -0
- package/build/models/tools/html-page-builder/html-page-builder-preset.schema.d.ts +58 -0
- package/build/models/tools/html-page-builder/html-page-builder-preset.schema.js +22 -0
- package/build/models/tools/html-page-builder/html-page-builder-session.schema.d.ts +65 -5
- package/build/models/tools/html-page-builder/html-page-builder-session.schema.js +12 -1
- package/build/models/tools/html-page-builder/html-page-builder-style.schema.d.ts +16 -0
- package/build/models/tools/html-page-builder/html-page-builder-style.schema.js +18 -0
- package/build/models/tools/html-page-builder/index.d.ts +5 -0
- package/build/models/tools/html-page-builder/index.js +5 -0
- package/package.json +1 -1
- package/build/constants/tool-html-page-builder/enums/html-page-builder-session-stage.enum.d.ts +0 -4
- package/build/constants/tool-html-page-builder/enums/html-page-builder-session-stage.enum.js +0 -8
|
@@ -4,10 +4,18 @@ export declare const HTML_PAGE_BUILDER_ROUTES: {
|
|
|
4
4
|
readonly CONFIG: 'config';
|
|
5
5
|
readonly PRICE: 'price';
|
|
6
6
|
readonly EXECUTE: 'execute';
|
|
7
|
+
readonly GET_STYLES: 'styles';
|
|
8
|
+
readonly GET_STYLE: (uuid: string) => string;
|
|
9
|
+
readonly GET_FONTS: 'fonts';
|
|
10
|
+
readonly GET_FONT: (uuid: string) => string;
|
|
11
|
+
readonly GET_PRESETS: 'presets';
|
|
12
|
+
readonly ANSWER_QUESTIONS: (jobId: string) => string;
|
|
13
|
+
readonly GET_SHARED_SITE: (jobId: string) => string;
|
|
7
14
|
readonly GET_SESSIONS: 'sessions';
|
|
8
15
|
readonly GET_SESSION: (uuid: string) => string;
|
|
9
16
|
readonly UPDATE: (uuid: string) => string;
|
|
10
17
|
readonly UPDATE_SESSION_FAVORITE: (uuid: string) => string;
|
|
18
|
+
readonly UPDATE_SESSION_REACTION: (uuid: string) => string;
|
|
11
19
|
readonly DELETE: (uuid: string) => string;
|
|
12
20
|
readonly DELETE_ALL: 'sessions';
|
|
13
21
|
};
|
|
@@ -7,10 +7,21 @@ exports.HTML_PAGE_BUILDER_ROUTES = {
|
|
|
7
7
|
CONFIG: 'config',
|
|
8
8
|
PRICE: 'price',
|
|
9
9
|
EXECUTE: 'execute',
|
|
10
|
+
GET_STYLES: 'styles',
|
|
11
|
+
GET_STYLE: (uuid) => `styles/${uuid}`,
|
|
12
|
+
GET_FONTS: 'fonts',
|
|
13
|
+
GET_FONT: (uuid) => `fonts/${uuid}`,
|
|
14
|
+
GET_PRESETS: 'presets',
|
|
15
|
+
// Free: the run it continues was already paid for by EXECUTE
|
|
16
|
+
ANSWER_QUESTIONS: (jobId) => `jobs/${jobId}/answers`,
|
|
17
|
+
// Anonymous: what the shared-link page asks for
|
|
18
|
+
GET_SHARED_SITE: (jobId) => `shared/${jobId}`,
|
|
10
19
|
GET_SESSIONS: 'sessions',
|
|
11
20
|
GET_SESSION: (uuid) => `sessions/${uuid}`,
|
|
12
21
|
UPDATE: (uuid) => `sessions/${uuid}`,
|
|
13
22
|
UPDATE_SESSION_FAVORITE: (uuid) => `sessions/${uuid}/favorite`,
|
|
23
|
+
// Rates the site, not one generation
|
|
24
|
+
UPDATE_SESSION_REACTION: (uuid) => `sessions/${uuid}/reaction`,
|
|
14
25
|
DELETE: (uuid) => `sessions/${uuid}`,
|
|
15
26
|
DELETE_ALL: 'sessions',
|
|
16
27
|
};
|
|
@@ -70,6 +70,7 @@ export * from './b2b';
|
|
|
70
70
|
export * from './b2b-usage-log';
|
|
71
71
|
export * from './b2b-compatible';
|
|
72
72
|
export * from './community';
|
|
73
|
+
export * from './consent';
|
|
73
74
|
export * from './user-profile';
|
|
74
75
|
export * from './image-generation';
|
|
75
76
|
export * from './marketplace-card';
|
|
@@ -86,6 +86,7 @@ __exportStar(require("./b2b"), exports);
|
|
|
86
86
|
__exportStar(require("./b2b-usage-log"), exports);
|
|
87
87
|
__exportStar(require("./b2b-compatible"), exports);
|
|
88
88
|
__exportStar(require("./community"), exports);
|
|
89
|
+
__exportStar(require("./consent"), exports);
|
|
89
90
|
__exportStar(require("./user-profile"), exports);
|
|
90
91
|
__exportStar(require("./image-generation"), exports);
|
|
91
92
|
__exportStar(require("./marketplace-card"), exports);
|
package/build/api/routes.d.ts
CHANGED
|
@@ -940,6 +940,9 @@ export declare const REST_API: {
|
|
|
940
940
|
readonly FORM_SUBMISSION_PRIVATE: {
|
|
941
941
|
readonly CREATE: "/api/private/form-submission/";
|
|
942
942
|
};
|
|
943
|
+
readonly CONSENT: {
|
|
944
|
+
readonly ACKNOWLEDGE: "/api/consent";
|
|
945
|
+
};
|
|
943
946
|
readonly USER_TO_TASK_PUBLIC: {
|
|
944
947
|
readonly REWARDS: "/api/user-to-task/public/rewards";
|
|
945
948
|
};
|
|
@@ -1245,10 +1248,17 @@ export declare const REST_API: {
|
|
|
1245
1248
|
readonly CONFIG: "/api/private/tools/html-page-builder/config";
|
|
1246
1249
|
readonly PRICE: "/api/private/tools/html-page-builder/price";
|
|
1247
1250
|
readonly EXECUTE: "/api/private/tools/html-page-builder/execute";
|
|
1251
|
+
readonly GET_STYLES: "/api/private/tools/html-page-builder/styles";
|
|
1252
|
+
readonly GET_STYLE: (uuid: string) => string;
|
|
1253
|
+
readonly GET_FONTS: "/api/private/tools/html-page-builder/fonts";
|
|
1254
|
+
readonly GET_FONT: (uuid: string) => string;
|
|
1255
|
+
readonly GET_PRESETS: "/api/private/tools/html-page-builder/presets";
|
|
1256
|
+
readonly ANSWER_QUESTIONS: (jobId: string) => string;
|
|
1248
1257
|
readonly GET_SESSIONS: "/api/private/tools/html-page-builder/sessions";
|
|
1249
1258
|
readonly GET_SESSION: (uuid: string) => string;
|
|
1250
1259
|
readonly UPDATE: (uuid: string) => string;
|
|
1251
1260
|
readonly UPDATE_SESSION_FAVORITE: (uuid: string) => string;
|
|
1261
|
+
readonly UPDATE_SESSION_REACTION: (uuid: string) => string;
|
|
1252
1262
|
readonly DELETE: (uuid: string) => string;
|
|
1253
1263
|
readonly DELETE_ALL: "/api/private/tools/html-page-builder/sessions";
|
|
1254
1264
|
};
|
|
@@ -1256,10 +1266,18 @@ export declare const REST_API: {
|
|
|
1256
1266
|
readonly CONFIG: "/api/public/tools/html-page-builder/config";
|
|
1257
1267
|
readonly PRICE: "/api/public/tools/html-page-builder/price";
|
|
1258
1268
|
readonly EXECUTE: "/api/public/tools/html-page-builder/execute";
|
|
1269
|
+
readonly GET_STYLES: "/api/public/tools/html-page-builder/styles";
|
|
1270
|
+
readonly GET_STYLE: (uuid: string) => string;
|
|
1271
|
+
readonly GET_FONTS: "/api/public/tools/html-page-builder/fonts";
|
|
1272
|
+
readonly GET_FONT: (uuid: string) => string;
|
|
1273
|
+
readonly GET_PRESETS: "/api/public/tools/html-page-builder/presets";
|
|
1274
|
+
readonly GET_SHARED_SITE: (jobId: string) => string;
|
|
1275
|
+
readonly ANSWER_QUESTIONS: (jobId: string) => string;
|
|
1259
1276
|
readonly GET_SESSIONS: "/api/public/tools/html-page-builder/sessions";
|
|
1260
1277
|
readonly GET_SESSION: (uuid: string) => string;
|
|
1261
1278
|
readonly UPDATE: (uuid: string) => string;
|
|
1262
1279
|
readonly UPDATE_SESSION_FAVORITE: (uuid: string) => string;
|
|
1280
|
+
readonly UPDATE_SESSION_REACTION: (uuid: string) => string;
|
|
1263
1281
|
readonly DELETE: (uuid: string) => string;
|
|
1264
1282
|
readonly DELETE_ALL: "/api/public/tools/html-page-builder/sessions";
|
|
1265
1283
|
};
|
package/build/api/routes.js
CHANGED
|
@@ -978,6 +978,9 @@ exports.REST_API = {
|
|
|
978
978
|
FORM_SUBMISSION_PRIVATE: {
|
|
979
979
|
CREATE: `${exports.ROOT}/${CONTROLLERS.FORM_SUBMISSION_PRIVATE_CONTROLLER}/${CONTROLLERS.FORM_SUBMISSION_ROUTES.CREATE}`,
|
|
980
980
|
},
|
|
981
|
+
CONSENT: {
|
|
982
|
+
ACKNOWLEDGE: `${exports.ROOT}/${CONTROLLERS.CONSENT_CONTROLLER}`,
|
|
983
|
+
},
|
|
981
984
|
USER_TO_TASK_PUBLIC: {
|
|
982
985
|
REWARDS: `${exports.ROOT}/${CONTROLLERS.USER_TO_TASK_PUBLIC_CONTROLLER}/${CONTROLLERS.USER_TO_TASK_PUBLIC_ROUTES.REWARDS}`,
|
|
983
986
|
},
|
|
@@ -1283,10 +1286,17 @@ exports.REST_API = {
|
|
|
1283
1286
|
CONFIG: `${exports.ROOT}/${CONTROLLERS.HTML_PAGE_BUILDER_CONTROLLER_PRIVATE}/${CONTROLLERS.HTML_PAGE_BUILDER_ROUTES.CONFIG}`,
|
|
1284
1287
|
PRICE: `${exports.ROOT}/${CONTROLLERS.HTML_PAGE_BUILDER_CONTROLLER_PRIVATE}/${CONTROLLERS.HTML_PAGE_BUILDER_ROUTES.PRICE}`,
|
|
1285
1288
|
EXECUTE: `${exports.ROOT}/${CONTROLLERS.HTML_PAGE_BUILDER_CONTROLLER_PRIVATE}/${CONTROLLERS.HTML_PAGE_BUILDER_ROUTES.EXECUTE}`,
|
|
1289
|
+
GET_STYLES: `${exports.ROOT}/${CONTROLLERS.HTML_PAGE_BUILDER_CONTROLLER_PRIVATE}/${CONTROLLERS.HTML_PAGE_BUILDER_ROUTES.GET_STYLES}`,
|
|
1290
|
+
GET_STYLE: (uuid) => `${exports.ROOT}/${CONTROLLERS.HTML_PAGE_BUILDER_CONTROLLER_PRIVATE}/${CONTROLLERS.HTML_PAGE_BUILDER_ROUTES.GET_STYLE(uuid)}`,
|
|
1291
|
+
GET_FONTS: `${exports.ROOT}/${CONTROLLERS.HTML_PAGE_BUILDER_CONTROLLER_PRIVATE}/${CONTROLLERS.HTML_PAGE_BUILDER_ROUTES.GET_FONTS}`,
|
|
1292
|
+
GET_FONT: (uuid) => `${exports.ROOT}/${CONTROLLERS.HTML_PAGE_BUILDER_CONTROLLER_PRIVATE}/${CONTROLLERS.HTML_PAGE_BUILDER_ROUTES.GET_FONT(uuid)}`,
|
|
1293
|
+
GET_PRESETS: `${exports.ROOT}/${CONTROLLERS.HTML_PAGE_BUILDER_CONTROLLER_PRIVATE}/${CONTROLLERS.HTML_PAGE_BUILDER_ROUTES.GET_PRESETS}`,
|
|
1294
|
+
ANSWER_QUESTIONS: (jobId) => `${exports.ROOT}/${CONTROLLERS.HTML_PAGE_BUILDER_CONTROLLER_PRIVATE}/${CONTROLLERS.HTML_PAGE_BUILDER_ROUTES.ANSWER_QUESTIONS(jobId)}`,
|
|
1286
1295
|
GET_SESSIONS: `${exports.ROOT}/${CONTROLLERS.HTML_PAGE_BUILDER_CONTROLLER_PRIVATE}/${CONTROLLERS.HTML_PAGE_BUILDER_ROUTES.GET_SESSIONS}`,
|
|
1287
1296
|
GET_SESSION: (uuid) => `${exports.ROOT}/${CONTROLLERS.HTML_PAGE_BUILDER_CONTROLLER_PRIVATE}/${CONTROLLERS.HTML_PAGE_BUILDER_ROUTES.GET_SESSION(uuid)}`,
|
|
1288
1297
|
UPDATE: (uuid) => `${exports.ROOT}/${CONTROLLERS.HTML_PAGE_BUILDER_CONTROLLER_PRIVATE}/${CONTROLLERS.HTML_PAGE_BUILDER_ROUTES.UPDATE(uuid)}`,
|
|
1289
1298
|
UPDATE_SESSION_FAVORITE: (uuid) => `${exports.ROOT}/${CONTROLLERS.HTML_PAGE_BUILDER_CONTROLLER_PRIVATE}/${CONTROLLERS.HTML_PAGE_BUILDER_ROUTES.UPDATE_SESSION_FAVORITE(uuid)}`,
|
|
1299
|
+
UPDATE_SESSION_REACTION: (uuid) => `${exports.ROOT}/${CONTROLLERS.HTML_PAGE_BUILDER_CONTROLLER_PRIVATE}/${CONTROLLERS.HTML_PAGE_BUILDER_ROUTES.UPDATE_SESSION_REACTION(uuid)}`,
|
|
1290
1300
|
DELETE: (uuid) => `${exports.ROOT}/${CONTROLLERS.HTML_PAGE_BUILDER_CONTROLLER_PRIVATE}/${CONTROLLERS.HTML_PAGE_BUILDER_ROUTES.DELETE(uuid)}`,
|
|
1291
1301
|
DELETE_ALL: `${exports.ROOT}/${CONTROLLERS.HTML_PAGE_BUILDER_CONTROLLER_PRIVATE}/${CONTROLLERS.HTML_PAGE_BUILDER_ROUTES.DELETE_ALL}`,
|
|
1292
1302
|
},
|
|
@@ -1294,10 +1304,18 @@ exports.REST_API = {
|
|
|
1294
1304
|
CONFIG: `${exports.ROOT}/${CONTROLLERS.HTML_PAGE_BUILDER_CONTROLLER_PUBLIC}/${CONTROLLERS.HTML_PAGE_BUILDER_ROUTES.CONFIG}`,
|
|
1295
1305
|
PRICE: `${exports.ROOT}/${CONTROLLERS.HTML_PAGE_BUILDER_CONTROLLER_PUBLIC}/${CONTROLLERS.HTML_PAGE_BUILDER_ROUTES.PRICE}`,
|
|
1296
1306
|
EXECUTE: `${exports.ROOT}/${CONTROLLERS.HTML_PAGE_BUILDER_CONTROLLER_PUBLIC}/${CONTROLLERS.HTML_PAGE_BUILDER_ROUTES.EXECUTE}`,
|
|
1307
|
+
GET_STYLES: `${exports.ROOT}/${CONTROLLERS.HTML_PAGE_BUILDER_CONTROLLER_PUBLIC}/${CONTROLLERS.HTML_PAGE_BUILDER_ROUTES.GET_STYLES}`,
|
|
1308
|
+
GET_STYLE: (uuid) => `${exports.ROOT}/${CONTROLLERS.HTML_PAGE_BUILDER_CONTROLLER_PUBLIC}/${CONTROLLERS.HTML_PAGE_BUILDER_ROUTES.GET_STYLE(uuid)}`,
|
|
1309
|
+
GET_FONTS: `${exports.ROOT}/${CONTROLLERS.HTML_PAGE_BUILDER_CONTROLLER_PUBLIC}/${CONTROLLERS.HTML_PAGE_BUILDER_ROUTES.GET_FONTS}`,
|
|
1310
|
+
GET_FONT: (uuid) => `${exports.ROOT}/${CONTROLLERS.HTML_PAGE_BUILDER_CONTROLLER_PUBLIC}/${CONTROLLERS.HTML_PAGE_BUILDER_ROUTES.GET_FONT(uuid)}`,
|
|
1311
|
+
GET_PRESETS: `${exports.ROOT}/${CONTROLLERS.HTML_PAGE_BUILDER_CONTROLLER_PUBLIC}/${CONTROLLERS.HTML_PAGE_BUILDER_ROUTES.GET_PRESETS}`,
|
|
1312
|
+
GET_SHARED_SITE: (jobId) => `${exports.ROOT}/${CONTROLLERS.HTML_PAGE_BUILDER_CONTROLLER_PUBLIC}/${CONTROLLERS.HTML_PAGE_BUILDER_ROUTES.GET_SHARED_SITE(jobId)}`,
|
|
1313
|
+
ANSWER_QUESTIONS: (jobId) => `${exports.ROOT}/${CONTROLLERS.HTML_PAGE_BUILDER_CONTROLLER_PUBLIC}/${CONTROLLERS.HTML_PAGE_BUILDER_ROUTES.ANSWER_QUESTIONS(jobId)}`,
|
|
1297
1314
|
GET_SESSIONS: `${exports.ROOT}/${CONTROLLERS.HTML_PAGE_BUILDER_CONTROLLER_PUBLIC}/${CONTROLLERS.HTML_PAGE_BUILDER_ROUTES.GET_SESSIONS}`,
|
|
1298
1315
|
GET_SESSION: (uuid) => `${exports.ROOT}/${CONTROLLERS.HTML_PAGE_BUILDER_CONTROLLER_PUBLIC}/${CONTROLLERS.HTML_PAGE_BUILDER_ROUTES.GET_SESSION(uuid)}`,
|
|
1299
1316
|
UPDATE: (uuid) => `${exports.ROOT}/${CONTROLLERS.HTML_PAGE_BUILDER_CONTROLLER_PUBLIC}/${CONTROLLERS.HTML_PAGE_BUILDER_ROUTES.UPDATE(uuid)}`,
|
|
1300
1317
|
UPDATE_SESSION_FAVORITE: (uuid) => `${exports.ROOT}/${CONTROLLERS.HTML_PAGE_BUILDER_CONTROLLER_PUBLIC}/${CONTROLLERS.HTML_PAGE_BUILDER_ROUTES.UPDATE_SESSION_FAVORITE(uuid)}`,
|
|
1318
|
+
UPDATE_SESSION_REACTION: (uuid) => `${exports.ROOT}/${CONTROLLERS.HTML_PAGE_BUILDER_CONTROLLER_PUBLIC}/${CONTROLLERS.HTML_PAGE_BUILDER_ROUTES.UPDATE_SESSION_REACTION(uuid)}`,
|
|
1301
1319
|
DELETE: (uuid) => `${exports.ROOT}/${CONTROLLERS.HTML_PAGE_BUILDER_CONTROLLER_PUBLIC}/${CONTROLLERS.HTML_PAGE_BUILDER_ROUTES.DELETE(uuid)}`,
|
|
1302
1320
|
DELETE_ALL: `${exports.ROOT}/${CONTROLLERS.HTML_PAGE_BUILDER_CONTROLLER_PUBLIC}/${CONTROLLERS.HTML_PAGE_BUILDER_ROUTES.DELETE_ALL}`,
|
|
1303
1321
|
},
|
package/build/commands/ai-studio/canvas-node/find-canvas-node-definitions-with-configs.query.d.ts
CHANGED
|
@@ -689,6 +689,104 @@ export declare namespace FindCanvasNodeDefinitionsWithConfigsQuery {
|
|
|
689
689
|
canUse: z.ZodBoolean;
|
|
690
690
|
}, z.core.$strip>>;
|
|
691
691
|
maxAttachmentsCount: z.ZodNumber;
|
|
692
|
+
styleTags: z.ZodArray<z.ZodObject<{
|
|
693
|
+
tag: z.ZodEnum<typeof import("../../..").HTML_PAGE_BUILDER_STYLE_TAG>;
|
|
694
|
+
label: z.ZodString;
|
|
695
|
+
}, z.core.$strip>>;
|
|
696
|
+
fontTags: z.ZodArray<z.ZodObject<{
|
|
697
|
+
tag: z.ZodEnum<typeof import("../../..").HTML_PAGE_BUILDER_FONT_TAG>;
|
|
698
|
+
label: z.ZodString;
|
|
699
|
+
}, z.core.$strip>>;
|
|
700
|
+
styles: z.ZodArray<z.ZodObject<{
|
|
701
|
+
uuid: z.ZodUUID;
|
|
702
|
+
code: z.ZodString;
|
|
703
|
+
title: z.ZodString;
|
|
704
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
705
|
+
previewUrl: z.ZodString;
|
|
706
|
+
thumbnailUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
707
|
+
tags: z.ZodArray<z.ZodEnum<typeof import("../../..").HTML_PAGE_BUILDER_STYLE_TAG>>;
|
|
708
|
+
popularity: z.ZodNumber;
|
|
709
|
+
order: z.ZodNumber;
|
|
710
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
711
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
712
|
+
}, z.core.$strip>>;
|
|
713
|
+
fonts: z.ZodArray<z.ZodObject<{
|
|
714
|
+
uuid: z.ZodUUID;
|
|
715
|
+
code: z.ZodString;
|
|
716
|
+
title: z.ZodString;
|
|
717
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
718
|
+
icons: z.ZodObject<{
|
|
719
|
+
light: z.ZodObject<{
|
|
720
|
+
svg: z.ZodString;
|
|
721
|
+
png: z.ZodString;
|
|
722
|
+
}, z.core.$strip>;
|
|
723
|
+
dark: z.ZodObject<{
|
|
724
|
+
svg: z.ZodString;
|
|
725
|
+
png: z.ZodString;
|
|
726
|
+
}, z.core.$strip>;
|
|
727
|
+
}, z.core.$strip>;
|
|
728
|
+
tags: z.ZodArray<z.ZodEnum<typeof import("../../..").HTML_PAGE_BUILDER_FONT_TAG>>;
|
|
729
|
+
popularity: z.ZodNumber;
|
|
730
|
+
order: z.ZodNumber;
|
|
731
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
732
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
733
|
+
}, z.core.$strip>>;
|
|
734
|
+
presets: z.ZodArray<z.ZodObject<{
|
|
735
|
+
uuid: z.ZodUUID;
|
|
736
|
+
code: z.ZodString;
|
|
737
|
+
title: z.ZodString;
|
|
738
|
+
prompt: z.ZodString;
|
|
739
|
+
icons: z.ZodObject<{
|
|
740
|
+
light: z.ZodObject<{
|
|
741
|
+
svg: z.ZodString;
|
|
742
|
+
png: z.ZodString;
|
|
743
|
+
}, z.core.$strip>;
|
|
744
|
+
dark: z.ZodObject<{
|
|
745
|
+
svg: z.ZodString;
|
|
746
|
+
png: z.ZodString;
|
|
747
|
+
}, z.core.$strip>;
|
|
748
|
+
}, z.core.$strip>;
|
|
749
|
+
styleId: z.ZodUUID;
|
|
750
|
+
fontId: z.ZodUUID;
|
|
751
|
+
style: z.ZodOptional<z.ZodObject<{
|
|
752
|
+
uuid: z.ZodUUID;
|
|
753
|
+
code: z.ZodString;
|
|
754
|
+
title: z.ZodString;
|
|
755
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
756
|
+
previewUrl: z.ZodString;
|
|
757
|
+
thumbnailUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
758
|
+
tags: z.ZodArray<z.ZodEnum<typeof import("../../..").HTML_PAGE_BUILDER_STYLE_TAG>>;
|
|
759
|
+
popularity: z.ZodNumber;
|
|
760
|
+
order: z.ZodNumber;
|
|
761
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
762
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
763
|
+
}, z.core.$strip>>;
|
|
764
|
+
font: z.ZodOptional<z.ZodObject<{
|
|
765
|
+
uuid: z.ZodUUID;
|
|
766
|
+
code: z.ZodString;
|
|
767
|
+
title: z.ZodString;
|
|
768
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
769
|
+
icons: z.ZodObject<{
|
|
770
|
+
light: z.ZodObject<{
|
|
771
|
+
svg: z.ZodString;
|
|
772
|
+
png: z.ZodString;
|
|
773
|
+
}, z.core.$strip>;
|
|
774
|
+
dark: z.ZodObject<{
|
|
775
|
+
svg: z.ZodString;
|
|
776
|
+
png: z.ZodString;
|
|
777
|
+
}, z.core.$strip>;
|
|
778
|
+
}, z.core.$strip>;
|
|
779
|
+
tags: z.ZodArray<z.ZodEnum<typeof import("../../..").HTML_PAGE_BUILDER_FONT_TAG>>;
|
|
780
|
+
popularity: z.ZodNumber;
|
|
781
|
+
order: z.ZodNumber;
|
|
782
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
783
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
784
|
+
}, z.core.$strip>>;
|
|
785
|
+
pagesCount: z.ZodNumber;
|
|
786
|
+
order: z.ZodNumber;
|
|
787
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
788
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
789
|
+
}, z.core.$strip>>;
|
|
692
790
|
}, z.core.$strip>;
|
|
693
791
|
}, z.core.$strip>, z.ZodObject<{
|
|
694
792
|
nodeType: z.ZodLiteral<import("../../..").CANVAS_NODE_TYPE>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare namespace AcknowledgeCookieConsentCommand {
|
|
3
|
+
const RequestSchema: z.ZodObject<{
|
|
4
|
+
id: z.ZodUUID;
|
|
5
|
+
policyVersion: z.ZodNumber;
|
|
6
|
+
action: z.ZodLiteral<"acknowledged">;
|
|
7
|
+
url: z.ZodString;
|
|
8
|
+
}, z.core.$strict>;
|
|
9
|
+
type Request = z.infer<typeof RequestSchema>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AcknowledgeCookieConsentCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const ConsentUrlSchema = zod_1.z
|
|
6
|
+
.string()
|
|
7
|
+
.max(2048)
|
|
8
|
+
.url()
|
|
9
|
+
.refine((value) => {
|
|
10
|
+
try {
|
|
11
|
+
return ['http:', 'https:'].includes(new URL(value).protocol);
|
|
12
|
+
}
|
|
13
|
+
catch (_a) {
|
|
14
|
+
return false;
|
|
15
|
+
}
|
|
16
|
+
}, { message: 'URL protocol must be http or https' });
|
|
17
|
+
var AcknowledgeCookieConsentCommand;
|
|
18
|
+
(function (AcknowledgeCookieConsentCommand) {
|
|
19
|
+
AcknowledgeCookieConsentCommand.RequestSchema = zod_1.z
|
|
20
|
+
.object({
|
|
21
|
+
id: zod_1.z.uuid(),
|
|
22
|
+
policyVersion: zod_1.z.number().int().positive(),
|
|
23
|
+
action: zod_1.z.literal('acknowledged'),
|
|
24
|
+
url: ConsentUrlSchema,
|
|
25
|
+
})
|
|
26
|
+
.strict();
|
|
27
|
+
})(AcknowledgeCookieConsentCommand || (exports.AcknowledgeCookieConsentCommand = AcknowledgeCookieConsentCommand = {}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './acknowledge-cookie-consent.command';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./acknowledge-cookie-consent.command"), exports);
|
|
@@ -55,6 +55,7 @@ export * from './b2b';
|
|
|
55
55
|
export * from './b2b-usage-log';
|
|
56
56
|
export * from './b2b-compatible';
|
|
57
57
|
export * from './community';
|
|
58
|
+
export * from './cookie-consent';
|
|
58
59
|
export * from './user-profile';
|
|
59
60
|
export * from './team-account';
|
|
60
61
|
export * from './team-to-subscription';
|
package/build/commands/index.js
CHANGED
|
@@ -71,6 +71,7 @@ __exportStar(require("./b2b"), exports);
|
|
|
71
71
|
__exportStar(require("./b2b-usage-log"), exports);
|
|
72
72
|
__exportStar(require("./b2b-compatible"), exports);
|
|
73
73
|
__exportStar(require("./community"), exports);
|
|
74
|
+
__exportStar(require("./cookie-consent"), exports);
|
|
74
75
|
__exportStar(require("./user-profile"), exports);
|
|
75
76
|
__exportStar(require("./team-account"), exports);
|
|
76
77
|
__exportStar(require("./team-to-subscription"), exports);
|
package/build/commands/tools/html-page-builder/answer-html-page-builder-questions.command.d.ts
ADDED
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/**
|
|
3
|
+
* Free on purpose: the run this continues was already paid for by `execute`, so this step carries
|
|
4
|
+
* no reservation and no price.
|
|
5
|
+
*/
|
|
6
|
+
export declare namespace AnswerHtmlPageBuilderQuestionsCommand {
|
|
7
|
+
const RequestSchema: z.ZodObject<{
|
|
8
|
+
answers: z.ZodArray<z.ZodObject<{
|
|
9
|
+
questionId: z.ZodString;
|
|
10
|
+
answers: z.ZodArray<z.ZodString>;
|
|
11
|
+
}, z.core.$strip>>;
|
|
12
|
+
}, z.core.$strip>;
|
|
13
|
+
type Request = z.infer<typeof RequestSchema>;
|
|
14
|
+
const RequestParamsSchema: z.ZodObject<{
|
|
15
|
+
jobId: z.ZodUUID;
|
|
16
|
+
}, z.core.$strip>;
|
|
17
|
+
type RequestParams = z.infer<typeof RequestParamsSchema>;
|
|
18
|
+
const ResponseSchema: z.ZodObject<{
|
|
19
|
+
data: z.ZodObject<{
|
|
20
|
+
uuid: z.ZodUUID;
|
|
21
|
+
title: z.ZodString;
|
|
22
|
+
status: z.ZodEnum<typeof import("../../..").HTML_PAGE_BUILDER_SESSION_STATUS>;
|
|
23
|
+
currentHtml: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
24
|
+
currentJobId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
25
|
+
currentJob: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
26
|
+
uuid: z.ZodUUID;
|
|
27
|
+
status: z.ZodEnum<typeof import("../../..").TOOL_JOB_STATUS>;
|
|
28
|
+
previewUrl: z.ZodOptional<z.ZodString>;
|
|
29
|
+
files: z.ZodOptional<z.ZodObject<{
|
|
30
|
+
stylesheet: z.ZodString;
|
|
31
|
+
script: z.ZodString;
|
|
32
|
+
pages: z.ZodArray<z.ZodObject<{
|
|
33
|
+
slug: z.ZodString;
|
|
34
|
+
url: z.ZodString;
|
|
35
|
+
}, z.core.$strip>>;
|
|
36
|
+
}, z.core.$strip>>;
|
|
37
|
+
error: z.ZodNullable<z.ZodString>;
|
|
38
|
+
createdAt: z.ZodDate;
|
|
39
|
+
completedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
40
|
+
}, z.core.$strip>>>;
|
|
41
|
+
lastUsedModelId: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
|
|
42
|
+
reaction: z.ZodNullable<z.ZodEnum<typeof import("../../..").USER_REACTION>>;
|
|
43
|
+
dislikeReason: z.ZodNullable<z.ZodString>;
|
|
44
|
+
jobs: z.ZodArray<z.ZodObject<{
|
|
45
|
+
uuid: z.ZodUUID;
|
|
46
|
+
sessionId: z.ZodUUID;
|
|
47
|
+
modelId: z.ZodUUID;
|
|
48
|
+
userPrompt: z.ZodString;
|
|
49
|
+
title: z.ZodString;
|
|
50
|
+
generatedHtml: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
51
|
+
generatedPages: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
52
|
+
slug: z.ZodString;
|
|
53
|
+
title: z.ZodString;
|
|
54
|
+
html: z.ZodString;
|
|
55
|
+
order: z.ZodNumber;
|
|
56
|
+
isHome: z.ZodBoolean;
|
|
57
|
+
}, z.core.$strip>>>>;
|
|
58
|
+
previewUrl: z.ZodOptional<z.ZodString>;
|
|
59
|
+
files: z.ZodOptional<z.ZodObject<{
|
|
60
|
+
stylesheet: z.ZodString;
|
|
61
|
+
script: z.ZodString;
|
|
62
|
+
pages: z.ZodArray<z.ZodObject<{
|
|
63
|
+
slug: z.ZodString;
|
|
64
|
+
url: z.ZodString;
|
|
65
|
+
}, z.core.$strip>>;
|
|
66
|
+
}, z.core.$strip>>;
|
|
67
|
+
status: z.ZodEnum<typeof import("../../..").TOOL_JOB_STATUS>;
|
|
68
|
+
error: z.ZodNullable<z.ZodString>;
|
|
69
|
+
price: z.ZodNumber;
|
|
70
|
+
questions: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
71
|
+
id: z.ZodString;
|
|
72
|
+
question: z.ZodString;
|
|
73
|
+
type: z.ZodEnum<typeof import("../../..").HTML_PAGE_BUILDER_QUESTION_TYPE>;
|
|
74
|
+
options: z.ZodArray<z.ZodString>;
|
|
75
|
+
recommendedAnswer: z.ZodString;
|
|
76
|
+
allowCustomAnswer: z.ZodBoolean;
|
|
77
|
+
}, z.core.$strip>>>;
|
|
78
|
+
answers: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
79
|
+
questionId: z.ZodString;
|
|
80
|
+
answers: z.ZodArray<z.ZodString>;
|
|
81
|
+
}, z.core.$strip>>>;
|
|
82
|
+
styleId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
83
|
+
fontId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
84
|
+
accentColor: z.ZodDefault<z.ZodString>;
|
|
85
|
+
userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
86
|
+
unregisteredUserId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
87
|
+
params: z.ZodObject<{
|
|
88
|
+
attachedFiles: z.ZodArray<z.ZodObject<{
|
|
89
|
+
uuid: z.ZodString;
|
|
90
|
+
url: z.ZodString;
|
|
91
|
+
name: z.ZodString;
|
|
92
|
+
mimeType: z.ZodString;
|
|
93
|
+
type: z.ZodString;
|
|
94
|
+
size: z.ZodNumber;
|
|
95
|
+
duration: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
96
|
+
content: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
97
|
+
contentLength: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
98
|
+
}, z.core.$strip>>;
|
|
99
|
+
pagesCount: z.ZodOptional<z.ZodNumber>;
|
|
100
|
+
clarifications: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
101
|
+
question: z.ZodString;
|
|
102
|
+
answer: z.ZodString;
|
|
103
|
+
}, z.core.$strip>>>;
|
|
104
|
+
}, z.core.$strip>;
|
|
105
|
+
isDeleted: z.ZodBoolean;
|
|
106
|
+
createdAt: z.ZodDate;
|
|
107
|
+
completedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
108
|
+
updatedAt: z.ZodDate;
|
|
109
|
+
}, z.core.$strip>>;
|
|
110
|
+
pages: z.ZodArray<z.ZodObject<{
|
|
111
|
+
slug: z.ZodString;
|
|
112
|
+
title: z.ZodString;
|
|
113
|
+
html: z.ZodString;
|
|
114
|
+
order: z.ZodNumber;
|
|
115
|
+
isHome: z.ZodBoolean;
|
|
116
|
+
}, z.core.$strip>>;
|
|
117
|
+
userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
118
|
+
unregisteredUserId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
119
|
+
isFavorite: z.ZodBoolean;
|
|
120
|
+
isDeleted: z.ZodBoolean;
|
|
121
|
+
createdAt: z.ZodDate;
|
|
122
|
+
updatedAt: z.ZodDate;
|
|
123
|
+
}, z.core.$strip>;
|
|
124
|
+
}, z.core.$strip>;
|
|
125
|
+
type Response = z.infer<typeof ResponseSchema>;
|
|
126
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AnswerHtmlPageBuilderQuestionsCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const models_1 = require("../../../models");
|
|
6
|
+
/**
|
|
7
|
+
* Free on purpose: the run this continues was already paid for by `execute`, so this step carries
|
|
8
|
+
* no reservation and no price.
|
|
9
|
+
*/
|
|
10
|
+
var AnswerHtmlPageBuilderQuestionsCommand;
|
|
11
|
+
(function (AnswerHtmlPageBuilderQuestionsCommand) {
|
|
12
|
+
AnswerHtmlPageBuilderQuestionsCommand.RequestSchema = zod_1.z.object({
|
|
13
|
+
// An empty array is valid: the user may skip the questions, and the brief then falls back
|
|
14
|
+
// to the model's own recommendations
|
|
15
|
+
answers: models_1.HtmlPageBuilderClarificationAnswersSchema,
|
|
16
|
+
});
|
|
17
|
+
AnswerHtmlPageBuilderQuestionsCommand.RequestParamsSchema = zod_1.z.object({
|
|
18
|
+
jobId: zod_1.z.uuid(),
|
|
19
|
+
});
|
|
20
|
+
// Answers the session, like execute does: the client is polling it anyway
|
|
21
|
+
AnswerHtmlPageBuilderQuestionsCommand.ResponseSchema = zod_1.z.object({
|
|
22
|
+
data: models_1.HtmlPageBuilderSessionSchema,
|
|
23
|
+
});
|
|
24
|
+
})(AnswerHtmlPageBuilderQuestionsCommand || (exports.AnswerHtmlPageBuilderQuestionsCommand = AnswerHtmlPageBuilderQuestionsCommand = {}));
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
/**
|
|
3
|
+
* The single paid entry point of the tool: one call pays for the clarifying questions and for the
|
|
4
|
+
* site they lead to. The answers that follow are free.
|
|
5
|
+
*/
|
|
2
6
|
export declare namespace ExecuteHtmlPageBuilderCommand {
|
|
3
7
|
const RequestSchema: z.ZodObject<{
|
|
4
8
|
sessionId: z.ZodOptional<z.ZodUUID>;
|
|
@@ -7,15 +11,38 @@ export declare namespace ExecuteHtmlPageBuilderCommand {
|
|
|
7
11
|
params: z.ZodObject<{
|
|
8
12
|
attachedFiles: z.ZodArray<z.ZodUUID>;
|
|
9
13
|
}, z.core.$strip>;
|
|
14
|
+
pagesCount: z.ZodNumber;
|
|
15
|
+
styleId: z.ZodUUID;
|
|
16
|
+
fontId: z.ZodUUID;
|
|
17
|
+
accentColor: z.ZodOptional<z.ZodString>;
|
|
10
18
|
}, z.core.$strip>;
|
|
11
19
|
type Request = z.infer<typeof RequestSchema>;
|
|
12
20
|
const ResponseSchema: z.ZodObject<{
|
|
13
21
|
data: z.ZodObject<{
|
|
14
22
|
uuid: z.ZodUUID;
|
|
15
23
|
title: z.ZodString;
|
|
16
|
-
status: z.ZodEnum<typeof import("../../..").
|
|
24
|
+
status: z.ZodEnum<typeof import("../../..").HTML_PAGE_BUILDER_SESSION_STATUS>;
|
|
17
25
|
currentHtml: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
26
|
+
currentJobId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
27
|
+
currentJob: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
28
|
+
uuid: z.ZodUUID;
|
|
29
|
+
status: z.ZodEnum<typeof import("../../..").TOOL_JOB_STATUS>;
|
|
30
|
+
previewUrl: z.ZodOptional<z.ZodString>;
|
|
31
|
+
files: z.ZodOptional<z.ZodObject<{
|
|
32
|
+
stylesheet: z.ZodString;
|
|
33
|
+
script: z.ZodString;
|
|
34
|
+
pages: z.ZodArray<z.ZodObject<{
|
|
35
|
+
slug: z.ZodString;
|
|
36
|
+
url: z.ZodString;
|
|
37
|
+
}, z.core.$strip>>;
|
|
38
|
+
}, z.core.$strip>>;
|
|
39
|
+
error: z.ZodNullable<z.ZodString>;
|
|
40
|
+
createdAt: z.ZodDate;
|
|
41
|
+
completedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
42
|
+
}, z.core.$strip>>>;
|
|
18
43
|
lastUsedModelId: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
|
|
44
|
+
reaction: z.ZodNullable<z.ZodEnum<typeof import("../../..").USER_REACTION>>;
|
|
45
|
+
dislikeReason: z.ZodNullable<z.ZodString>;
|
|
19
46
|
jobs: z.ZodArray<z.ZodObject<{
|
|
20
47
|
uuid: z.ZodUUID;
|
|
21
48
|
sessionId: z.ZodUUID;
|
|
@@ -23,11 +50,40 @@ export declare namespace ExecuteHtmlPageBuilderCommand {
|
|
|
23
50
|
userPrompt: z.ZodString;
|
|
24
51
|
title: z.ZodString;
|
|
25
52
|
generatedHtml: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
53
|
+
generatedPages: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
54
|
+
slug: z.ZodString;
|
|
55
|
+
title: z.ZodString;
|
|
56
|
+
html: z.ZodString;
|
|
57
|
+
order: z.ZodNumber;
|
|
58
|
+
isHome: z.ZodBoolean;
|
|
59
|
+
}, z.core.$strip>>>>;
|
|
60
|
+
previewUrl: z.ZodOptional<z.ZodString>;
|
|
61
|
+
files: z.ZodOptional<z.ZodObject<{
|
|
62
|
+
stylesheet: z.ZodString;
|
|
63
|
+
script: z.ZodString;
|
|
64
|
+
pages: z.ZodArray<z.ZodObject<{
|
|
65
|
+
slug: z.ZodString;
|
|
66
|
+
url: z.ZodString;
|
|
67
|
+
}, z.core.$strip>>;
|
|
68
|
+
}, z.core.$strip>>;
|
|
26
69
|
status: z.ZodEnum<typeof import("../../..").TOOL_JOB_STATUS>;
|
|
27
70
|
error: z.ZodNullable<z.ZodString>;
|
|
28
71
|
price: z.ZodNumber;
|
|
29
|
-
|
|
30
|
-
|
|
72
|
+
questions: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
73
|
+
id: z.ZodString;
|
|
74
|
+
question: z.ZodString;
|
|
75
|
+
type: z.ZodEnum<typeof import("../../..").HTML_PAGE_BUILDER_QUESTION_TYPE>;
|
|
76
|
+
options: z.ZodArray<z.ZodString>;
|
|
77
|
+
recommendedAnswer: z.ZodString;
|
|
78
|
+
allowCustomAnswer: z.ZodBoolean;
|
|
79
|
+
}, z.core.$strip>>>;
|
|
80
|
+
answers: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
81
|
+
questionId: z.ZodString;
|
|
82
|
+
answers: z.ZodArray<z.ZodString>;
|
|
83
|
+
}, z.core.$strip>>>;
|
|
84
|
+
styleId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
85
|
+
fontId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
86
|
+
accentColor: z.ZodDefault<z.ZodString>;
|
|
31
87
|
userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
32
88
|
unregisteredUserId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
33
89
|
params: z.ZodObject<{
|
|
@@ -42,12 +98,24 @@ export declare namespace ExecuteHtmlPageBuilderCommand {
|
|
|
42
98
|
content: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
43
99
|
contentLength: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
44
100
|
}, z.core.$strip>>;
|
|
101
|
+
pagesCount: z.ZodOptional<z.ZodNumber>;
|
|
102
|
+
clarifications: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
103
|
+
question: z.ZodString;
|
|
104
|
+
answer: z.ZodString;
|
|
105
|
+
}, z.core.$strip>>>;
|
|
45
106
|
}, z.core.$strip>;
|
|
46
107
|
isDeleted: z.ZodBoolean;
|
|
47
108
|
createdAt: z.ZodDate;
|
|
48
109
|
completedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
49
110
|
updatedAt: z.ZodDate;
|
|
50
111
|
}, z.core.$strip>>;
|
|
112
|
+
pages: z.ZodArray<z.ZodObject<{
|
|
113
|
+
slug: z.ZodString;
|
|
114
|
+
title: z.ZodString;
|
|
115
|
+
html: z.ZodString;
|
|
116
|
+
order: z.ZodNumber;
|
|
117
|
+
isHome: z.ZodBoolean;
|
|
118
|
+
}, z.core.$strip>>;
|
|
51
119
|
userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
52
120
|
unregisteredUserId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
53
121
|
isFavorite: z.ZodBoolean;
|