@purpleschool/gptbot 0.15.94-stage-2 → 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.
Files changed (67) hide show
  1. package/build/api/controllers/http/html-page-builder.d.ts +8 -0
  2. package/build/api/controllers/http/html-page-builder.js +11 -0
  3. package/build/api/routes.d.ts +15 -0
  4. package/build/api/routes.js +15 -0
  5. package/build/commands/ai-studio/canvas-node/find-canvas-node-definitions-with-configs.query.d.ts +98 -0
  6. package/build/commands/tools/html-page-builder/answer-html-page-builder-questions.command.d.ts +126 -0
  7. package/build/commands/tools/html-page-builder/answer-html-page-builder-questions.command.js +24 -0
  8. package/build/commands/tools/html-page-builder/execute-html-page-builder.command.d.ts +71 -3
  9. package/build/commands/tools/html-page-builder/execute-html-page-builder.command.js +17 -0
  10. package/build/commands/tools/html-page-builder/find-html-page-builder-font-by-uuid.command.d.ts +31 -0
  11. package/build/commands/tools/html-page-builder/find-html-page-builder-font-by-uuid.command.js +14 -0
  12. package/build/commands/tools/html-page-builder/find-html-page-builder-fonts.command.d.ts +38 -0
  13. package/build/commands/tools/html-page-builder/find-html-page-builder-fonts.command.js +30 -0
  14. package/build/commands/tools/html-page-builder/find-html-page-builder-presets.command.d.ts +70 -0
  15. package/build/commands/tools/html-page-builder/find-html-page-builder-presets.command.js +18 -0
  16. package/build/commands/tools/html-page-builder/find-html-page-builder-session-by-uuid.command.d.ts +63 -3
  17. package/build/commands/tools/html-page-builder/find-html-page-builder-sessions.command.d.ts +66 -6
  18. package/build/commands/tools/html-page-builder/find-html-page-builder-sessions.command.js +1 -1
  19. package/build/commands/tools/html-page-builder/find-html-page-builder-style-by-uuid.command.d.ts +23 -0
  20. package/build/commands/tools/html-page-builder/find-html-page-builder-style-by-uuid.command.js +14 -0
  21. package/build/commands/tools/html-page-builder/find-html-page-builder-styles.command.d.ts +30 -0
  22. package/build/commands/tools/html-page-builder/find-html-page-builder-styles.command.js +30 -0
  23. package/build/commands/tools/html-page-builder/get-html-page-builder-price.command.d.ts +10 -0
  24. package/build/commands/tools/html-page-builder/get-html-page-builder-price.command.js +17 -1
  25. package/build/commands/tools/html-page-builder/get-html-page-builder-tool-config.command.d.ts +98 -0
  26. package/build/commands/tools/html-page-builder/get-shared-html-page-builder-site.command.d.ts +14 -0
  27. package/build/commands/tools/html-page-builder/get-shared-html-page-builder-site.command.js +18 -0
  28. package/build/commands/tools/html-page-builder/index.d.ts +8 -0
  29. package/build/commands/tools/html-page-builder/index.js +8 -0
  30. package/build/commands/tools/html-page-builder/update-html-page-builder-session-favorite.command.d.ts +63 -3
  31. package/build/commands/tools/html-page-builder/update-html-page-builder-session-reaction.command.d.ts +124 -0
  32. package/build/commands/tools/html-page-builder/update-html-page-builder-session-reaction.command.js +32 -0
  33. package/build/commands/tools/html-page-builder/update-html-page-builder-session-title.command.d.ts +63 -3
  34. package/build/constants/tool-html-page-builder/enums/html-page-builder-catalog-sort.enum.d.ts +4 -0
  35. package/build/constants/tool-html-page-builder/enums/html-page-builder-catalog-sort.enum.js +8 -0
  36. package/build/constants/tool-html-page-builder/enums/html-page-builder-font-tag.enum.d.ts +5 -0
  37. package/build/constants/tool-html-page-builder/enums/html-page-builder-font-tag.enum.js +9 -0
  38. package/build/constants/tool-html-page-builder/enums/html-page-builder-question-type.enum.d.ts +12 -0
  39. package/build/constants/tool-html-page-builder/enums/html-page-builder-question-type.enum.js +16 -0
  40. package/build/constants/tool-html-page-builder/enums/html-page-builder-session-status.enum.d.ts +18 -0
  41. package/build/constants/tool-html-page-builder/enums/html-page-builder-session-status.enum.js +22 -0
  42. package/build/constants/tool-html-page-builder/enums/html-page-builder-style-tag.enum.d.ts +8 -0
  43. package/build/constants/tool-html-page-builder/enums/html-page-builder-style-tag.enum.js +12 -0
  44. package/build/constants/tool-html-page-builder/enums/index.d.ts +5 -1
  45. package/build/constants/tool-html-page-builder/enums/index.js +5 -1
  46. package/build/models/canvas-node-definition.schema.d.ts +294 -0
  47. package/build/models/tools/html-page-builder/html-page-builder-clarification.schema.d.ts +39 -0
  48. package/build/models/tools/html-page-builder/html-page-builder-clarification.schema.js +31 -0
  49. package/build/models/tools/html-page-builder/html-page-builder-config.schema.d.ts +109 -0
  50. package/build/models/tools/html-page-builder/html-page-builder-config.schema.js +18 -1
  51. package/build/models/tools/html-page-builder/html-page-builder-font.schema.d.ts +24 -0
  52. package/build/models/tools/html-page-builder/html-page-builder-font.schema.js +18 -0
  53. package/build/models/tools/html-page-builder/html-page-builder-job.schema.d.ts +76 -3
  54. package/build/models/tools/html-page-builder/html-page-builder-job.schema.js +42 -3
  55. package/build/models/tools/html-page-builder/html-page-builder-page.schema.d.ts +30 -0
  56. package/build/models/tools/html-page-builder/html-page-builder-page.schema.js +18 -0
  57. package/build/models/tools/html-page-builder/html-page-builder-preset.schema.d.ts +58 -0
  58. package/build/models/tools/html-page-builder/html-page-builder-preset.schema.js +22 -0
  59. package/build/models/tools/html-page-builder/html-page-builder-session.schema.d.ts +65 -5
  60. package/build/models/tools/html-page-builder/html-page-builder-session.schema.js +12 -1
  61. package/build/models/tools/html-page-builder/html-page-builder-style.schema.d.ts +16 -0
  62. package/build/models/tools/html-page-builder/html-page-builder-style.schema.js +18 -0
  63. package/build/models/tools/html-page-builder/index.d.ts +5 -0
  64. package/build/models/tools/html-page-builder/index.js +5 -0
  65. package/package.json +1 -1
  66. package/build/constants/tool-html-page-builder/enums/html-page-builder-session-stage.enum.d.ts +0 -4
  67. 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
  };
@@ -1248,10 +1248,17 @@ export declare const REST_API: {
1248
1248
  readonly CONFIG: "/api/private/tools/html-page-builder/config";
1249
1249
  readonly PRICE: "/api/private/tools/html-page-builder/price";
1250
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;
1251
1257
  readonly GET_SESSIONS: "/api/private/tools/html-page-builder/sessions";
1252
1258
  readonly GET_SESSION: (uuid: string) => string;
1253
1259
  readonly UPDATE: (uuid: string) => string;
1254
1260
  readonly UPDATE_SESSION_FAVORITE: (uuid: string) => string;
1261
+ readonly UPDATE_SESSION_REACTION: (uuid: string) => string;
1255
1262
  readonly DELETE: (uuid: string) => string;
1256
1263
  readonly DELETE_ALL: "/api/private/tools/html-page-builder/sessions";
1257
1264
  };
@@ -1259,10 +1266,18 @@ export declare const REST_API: {
1259
1266
  readonly CONFIG: "/api/public/tools/html-page-builder/config";
1260
1267
  readonly PRICE: "/api/public/tools/html-page-builder/price";
1261
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;
1262
1276
  readonly GET_SESSIONS: "/api/public/tools/html-page-builder/sessions";
1263
1277
  readonly GET_SESSION: (uuid: string) => string;
1264
1278
  readonly UPDATE: (uuid: string) => string;
1265
1279
  readonly UPDATE_SESSION_FAVORITE: (uuid: string) => string;
1280
+ readonly UPDATE_SESSION_REACTION: (uuid: string) => string;
1266
1281
  readonly DELETE: (uuid: string) => string;
1267
1282
  readonly DELETE_ALL: "/api/public/tools/html-page-builder/sessions";
1268
1283
  };
@@ -1286,10 +1286,17 @@ exports.REST_API = {
1286
1286
  CONFIG: `${exports.ROOT}/${CONTROLLERS.HTML_PAGE_BUILDER_CONTROLLER_PRIVATE}/${CONTROLLERS.HTML_PAGE_BUILDER_ROUTES.CONFIG}`,
1287
1287
  PRICE: `${exports.ROOT}/${CONTROLLERS.HTML_PAGE_BUILDER_CONTROLLER_PRIVATE}/${CONTROLLERS.HTML_PAGE_BUILDER_ROUTES.PRICE}`,
1288
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)}`,
1289
1295
  GET_SESSIONS: `${exports.ROOT}/${CONTROLLERS.HTML_PAGE_BUILDER_CONTROLLER_PRIVATE}/${CONTROLLERS.HTML_PAGE_BUILDER_ROUTES.GET_SESSIONS}`,
1290
1296
  GET_SESSION: (uuid) => `${exports.ROOT}/${CONTROLLERS.HTML_PAGE_BUILDER_CONTROLLER_PRIVATE}/${CONTROLLERS.HTML_PAGE_BUILDER_ROUTES.GET_SESSION(uuid)}`,
1291
1297
  UPDATE: (uuid) => `${exports.ROOT}/${CONTROLLERS.HTML_PAGE_BUILDER_CONTROLLER_PRIVATE}/${CONTROLLERS.HTML_PAGE_BUILDER_ROUTES.UPDATE(uuid)}`,
1292
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)}`,
1293
1300
  DELETE: (uuid) => `${exports.ROOT}/${CONTROLLERS.HTML_PAGE_BUILDER_CONTROLLER_PRIVATE}/${CONTROLLERS.HTML_PAGE_BUILDER_ROUTES.DELETE(uuid)}`,
1294
1301
  DELETE_ALL: `${exports.ROOT}/${CONTROLLERS.HTML_PAGE_BUILDER_CONTROLLER_PRIVATE}/${CONTROLLERS.HTML_PAGE_BUILDER_ROUTES.DELETE_ALL}`,
1295
1302
  },
@@ -1297,10 +1304,18 @@ exports.REST_API = {
1297
1304
  CONFIG: `${exports.ROOT}/${CONTROLLERS.HTML_PAGE_BUILDER_CONTROLLER_PUBLIC}/${CONTROLLERS.HTML_PAGE_BUILDER_ROUTES.CONFIG}`,
1298
1305
  PRICE: `${exports.ROOT}/${CONTROLLERS.HTML_PAGE_BUILDER_CONTROLLER_PUBLIC}/${CONTROLLERS.HTML_PAGE_BUILDER_ROUTES.PRICE}`,
1299
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)}`,
1300
1314
  GET_SESSIONS: `${exports.ROOT}/${CONTROLLERS.HTML_PAGE_BUILDER_CONTROLLER_PUBLIC}/${CONTROLLERS.HTML_PAGE_BUILDER_ROUTES.GET_SESSIONS}`,
1301
1315
  GET_SESSION: (uuid) => `${exports.ROOT}/${CONTROLLERS.HTML_PAGE_BUILDER_CONTROLLER_PUBLIC}/${CONTROLLERS.HTML_PAGE_BUILDER_ROUTES.GET_SESSION(uuid)}`,
1302
1316
  UPDATE: (uuid) => `${exports.ROOT}/${CONTROLLERS.HTML_PAGE_BUILDER_CONTROLLER_PUBLIC}/${CONTROLLERS.HTML_PAGE_BUILDER_ROUTES.UPDATE(uuid)}`,
1303
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)}`,
1304
1319
  DELETE: (uuid) => `${exports.ROOT}/${CONTROLLERS.HTML_PAGE_BUILDER_CONTROLLER_PUBLIC}/${CONTROLLERS.HTML_PAGE_BUILDER_ROUTES.DELETE(uuid)}`,
1305
1320
  DELETE_ALL: `${exports.ROOT}/${CONTROLLERS.HTML_PAGE_BUILDER_CONTROLLER_PUBLIC}/${CONTROLLERS.HTML_PAGE_BUILDER_ROUTES.DELETE_ALL}`,
1306
1321
  },
@@ -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,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("../../..").TOOL_JOB_STATUS>;
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
- reaction: z.ZodNullable<z.ZodEnum<typeof import("../../..").USER_REACTION>>;
30
- dislikeReason: z.ZodNullable<z.ZodString>;
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;
@@ -3,15 +3,32 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ExecuteHtmlPageBuilderCommand = void 0;
4
4
  const zod_1 = require("zod");
5
5
  const models_1 = require("../../../models");
6
+ /**
7
+ * The single paid entry point of the tool: one call pays for the clarifying questions and for the
8
+ * site they lead to. The answers that follow are free.
9
+ */
6
10
  var ExecuteHtmlPageBuilderCommand;
7
11
  (function (ExecuteHtmlPageBuilderCommand) {
8
12
  ExecuteHtmlPageBuilderCommand.RequestSchema = zod_1.z.object({
13
+ // A repeated execute builds another site in the same session: its own questions, its own
14
+ // payment, its own job. The previous variants stay in the history.
9
15
  sessionId: zod_1.z.uuid().optional(),
10
16
  prompt: zod_1.z.string(),
11
17
  modelId: zod_1.z.uuid(),
12
18
  params: zod_1.z.object({
13
19
  attachedFiles: zod_1.z.array(zod_1.z.uuid()),
14
20
  }),
21
+ // Required: the volume is what the run is priced by, so a request that does not name it
22
+ // would be paid for as something else
23
+ pagesCount: zod_1.z.number().int().positive(),
24
+ /**
25
+ * Design of the site. Required: every run builds a site from scratch, and a generation
26
+ * without a style is not a cheaper site, it is a different one.
27
+ */
28
+ styleId: zod_1.z.uuid(),
29
+ fontId: zod_1.z.uuid(),
30
+ /** The one optional part of the design: a palette the model is free to choose itself */
31
+ accentColor: zod_1.z.string().max(64).optional(),
15
32
  });
16
33
  ExecuteHtmlPageBuilderCommand.ResponseSchema = zod_1.z.object({
17
34
  data: models_1.HtmlPageBuilderSessionSchema,
@@ -0,0 +1,31 @@
1
+ import { z } from 'zod';
2
+ export declare namespace FindHtmlPageBuilderFontByUUIDCommand {
3
+ const RequestParamsSchema: z.ZodObject<{
4
+ uuid: z.ZodUUID;
5
+ }, z.core.$strip>;
6
+ type RequestParams = z.infer<typeof RequestParamsSchema>;
7
+ const ResponseSchema: z.ZodObject<{
8
+ data: z.ZodObject<{
9
+ uuid: z.ZodUUID;
10
+ code: z.ZodString;
11
+ title: z.ZodString;
12
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13
+ icons: z.ZodObject<{
14
+ light: z.ZodObject<{
15
+ svg: z.ZodString;
16
+ png: z.ZodString;
17
+ }, z.core.$strip>;
18
+ dark: z.ZodObject<{
19
+ svg: z.ZodString;
20
+ png: z.ZodString;
21
+ }, z.core.$strip>;
22
+ }, z.core.$strip>;
23
+ tags: z.ZodArray<z.ZodEnum<typeof import("../../..").HTML_PAGE_BUILDER_FONT_TAG>>;
24
+ popularity: z.ZodNumber;
25
+ order: z.ZodNumber;
26
+ createdAt: z.ZodCoercedDate<unknown>;
27
+ updatedAt: z.ZodCoercedDate<unknown>;
28
+ }, z.core.$strip>;
29
+ }, z.core.$strip>;
30
+ type Response = z.infer<typeof ResponseSchema>;
31
+ }
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.FindHtmlPageBuilderFontByUUIDCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ const models_1 = require("../../../models");
6
+ var FindHtmlPageBuilderFontByUUIDCommand;
7
+ (function (FindHtmlPageBuilderFontByUUIDCommand) {
8
+ FindHtmlPageBuilderFontByUUIDCommand.RequestParamsSchema = zod_1.z.object({
9
+ uuid: zod_1.z.uuid(),
10
+ });
11
+ FindHtmlPageBuilderFontByUUIDCommand.ResponseSchema = zod_1.z.object({
12
+ data: models_1.HtmlPageBuilderFontSchema,
13
+ });
14
+ })(FindHtmlPageBuilderFontByUUIDCommand || (exports.FindHtmlPageBuilderFontByUUIDCommand = FindHtmlPageBuilderFontByUUIDCommand = {}));
@@ -0,0 +1,38 @@
1
+ import { z } from 'zod';
2
+ import { HTML_PAGE_BUILDER_CATALOG_SORT, HTML_PAGE_BUILDER_FONT_TAG } from '../../../constants';
3
+ export declare namespace FindHtmlPageBuilderFontsCommand {
4
+ const RequestQuerySchema: z.ZodObject<{
5
+ tags: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodEnum<typeof HTML_PAGE_BUILDER_FONT_TAG>, z.ZodArray<z.ZodEnum<typeof HTML_PAGE_BUILDER_FONT_TAG>>]>, z.ZodTransform<HTML_PAGE_BUILDER_FONT_TAG[], HTML_PAGE_BUILDER_FONT_TAG | HTML_PAGE_BUILDER_FONT_TAG[]>>>;
6
+ sort: z.ZodDefault<z.ZodOptional<z.ZodEnum<typeof HTML_PAGE_BUILDER_CATALOG_SORT>>>;
7
+ limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
8
+ offset: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
9
+ }, z.core.$strip>;
10
+ type RequestQuery = z.infer<typeof RequestQuerySchema>;
11
+ const ResponseSchema: z.ZodObject<{
12
+ data: z.ZodArray<z.ZodObject<{
13
+ uuid: z.ZodUUID;
14
+ code: z.ZodString;
15
+ title: z.ZodString;
16
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17
+ icons: z.ZodObject<{
18
+ light: z.ZodObject<{
19
+ svg: z.ZodString;
20
+ png: z.ZodString;
21
+ }, z.core.$strip>;
22
+ dark: z.ZodObject<{
23
+ svg: z.ZodString;
24
+ png: z.ZodString;
25
+ }, z.core.$strip>;
26
+ }, z.core.$strip>;
27
+ tags: z.ZodArray<z.ZodEnum<typeof HTML_PAGE_BUILDER_FONT_TAG>>;
28
+ popularity: z.ZodNumber;
29
+ order: z.ZodNumber;
30
+ createdAt: z.ZodCoercedDate<unknown>;
31
+ updatedAt: z.ZodCoercedDate<unknown>;
32
+ }, z.core.$strip>>;
33
+ page: z.ZodNumber;
34
+ totalPages: z.ZodNumber;
35
+ total: z.ZodNumber;
36
+ }, z.core.$strip>;
37
+ type Response = z.infer<typeof ResponseSchema>;
38
+ }
@@ -0,0 +1,30 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.FindHtmlPageBuilderFontsCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ const constants_1 = require("../../../constants");
6
+ const models_1 = require("../../../models");
7
+ var FindHtmlPageBuilderFontsCommand;
8
+ (function (FindHtmlPageBuilderFontsCommand) {
9
+ FindHtmlPageBuilderFontsCommand.RequestQuerySchema = zod_1.z.object({
10
+ tags: zod_1.z
11
+ .union([
12
+ zod_1.z.enum(constants_1.HTML_PAGE_BUILDER_FONT_TAG),
13
+ zod_1.z.array(zod_1.z.enum(constants_1.HTML_PAGE_BUILDER_FONT_TAG)),
14
+ ])
15
+ .transform((value) => (Array.isArray(value) ? value : [value]))
16
+ .optional(),
17
+ sort: zod_1.z
18
+ .enum(constants_1.HTML_PAGE_BUILDER_CATALOG_SORT)
19
+ .optional()
20
+ .default(constants_1.HTML_PAGE_BUILDER_CATALOG_SORT.POPULARITY),
21
+ limit: zod_1.z.coerce.number().min(1).max(50).optional(),
22
+ offset: zod_1.z.coerce.number().min(0).optional(),
23
+ });
24
+ FindHtmlPageBuilderFontsCommand.ResponseSchema = zod_1.z.object({
25
+ data: zod_1.z.array(models_1.HtmlPageBuilderFontSchema),
26
+ page: zod_1.z.number(),
27
+ totalPages: zod_1.z.number(),
28
+ total: zod_1.z.number(),
29
+ });
30
+ })(FindHtmlPageBuilderFontsCommand || (exports.FindHtmlPageBuilderFontsCommand = FindHtmlPageBuilderFontsCommand = {}));