@purpleschool/gptbot 0.15.94-stage-2 → 0.17.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/html-page-builder.d.ts +8 -0
- package/build/api/controllers/http/html-page-builder.js +11 -0
- package/build/api/controllers/http/interior-design.d.ts +1 -1
- package/build/api/controllers/http/interior-design.js +1 -1
- package/build/api/routes.d.ts +15 -0
- package/build/api/routes.js +15 -0
- package/build/commands/ai-studio/canvas-node/find-canvas-node-definitions-with-configs.query.d.ts +98 -0
- package/build/commands/photo-studio/execute-photo-studio-action.command.d.ts +4 -4
- package/build/commands/photo-studio/retry-photo-studio-job.command.d.ts +2 -2
- 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/commands/tools/image-editor/find-image-editor-job-by-uuid.command.d.ts +2 -2
- package/build/commands/tools/image-editor/find-image-editor-jobs.command.d.ts +2 -2
- package/build/commands/tools/image-editor/image-editor.command.d.ts +2 -2
- package/build/commands/tools/image-editor/retry-image-editor-job.command.d.ts +2 -2
- package/build/commands/tools/image-editor/set-reaction-to-image-editor-job.command.d.ts +2 -2
- package/build/commands/tools/image-editor/update-image-editor-job-favorite.command.d.ts +2 -2
- package/build/commands/tools/image-editor/update-image-editor-job-title.command.d.ts +2 -2
- package/build/commands/tools/image-recognition/find-image-recognition-job-by-uuid.command.d.ts +2 -2
- package/build/commands/tools/image-recognition/find-image-recognition-jobs.command.d.ts +2 -2
- package/build/commands/tools/image-recognition/image-recognition.command.d.ts +2 -2
- package/build/commands/tools/image-recognition/retry-image-recognition-job.command.d.ts +2 -2
- package/build/commands/tools/image-recognition/set-reaction-to-image-recognition-job.command.d.ts +2 -2
- package/build/commands/tools/image-recognition/update-image-recognition-job-favorite.command.d.ts +2 -2
- package/build/commands/tools/image-recognition/update-image-recognition-job-title.command.d.ts +2 -2
- package/build/commands/tools/interior-design/delete-interior-design-generation-group-by-uuid.command.d.ts +9 -0
- package/build/commands/tools/interior-design/delete-interior-design-generation-group-by-uuid.command.js +11 -0
- package/build/commands/tools/interior-design/delete-interior-design-job-by-uuid.command.d.ts +97 -1
- package/build/commands/tools/interior-design/delete-interior-design-job-by-uuid.command.js +7 -1
- package/build/commands/tools/interior-design/find-interior-design-generation-group-by-uuid.command.d.ts +102 -0
- package/build/commands/tools/interior-design/find-interior-design-generation-group-by-uuid.command.js +14 -0
- package/build/commands/tools/interior-design/find-interior-design-generation-groups.command.d.ts +111 -0
- package/build/commands/tools/interior-design/find-interior-design-generation-groups.command.js +24 -0
- package/build/commands/tools/interior-design/find-interior-design-job-by-uuid.command.d.ts +16 -2
- package/build/commands/tools/interior-design/find-interior-design-jobs.command.d.ts +16 -2
- package/build/commands/tools/interior-design/get-interior-design-tool-config.command.d.ts +37 -7
- package/build/commands/tools/interior-design/index.d.ts +5 -0
- package/build/commands/tools/interior-design/index.js +5 -0
- package/build/commands/tools/interior-design/interior-design.command.d.ts +101 -5
- package/build/commands/tools/interior-design/interior-design.command.js +8 -3
- package/build/commands/tools/interior-design/retry-interior-design-generation-group-child.command.d.ts +102 -0
- package/build/commands/tools/interior-design/retry-interior-design-generation-group-child.command.js +14 -0
- package/build/commands/tools/interior-design/retry-interior-design-job.command.d.ts +16 -2
- package/build/commands/tools/interior-design/set-reaction-to-interior-design-job.command.d.ts +16 -2
- package/build/commands/tools/interior-design/set-reaction-to-interior-design-job.command.js +3 -12
- package/build/commands/tools/interior-design/update-interior-design-generation-group-favorite.command.d.ts +106 -0
- package/build/commands/tools/interior-design/update-interior-design-generation-group-favorite.command.js +17 -0
- package/build/commands/tools/interior-design/update-interior-design-job-favorite.command.d.ts +16 -2
- package/build/commands/tools/interior-design/update-interior-design-job-title.command.d.ts +72 -14
- package/build/commands/tools/interior-design/update-interior-design-job-title.command.js +1 -1
- package/build/commands/tools/marketplace-card/execute-marketplace-card.command.d.ts +2 -2
- package/build/commands/tools/marketplace-card/find-marketplace-card-job-by-uuid.command.d.ts +2 -2
- package/build/commands/tools/marketplace-card/find-marketplace-card-jobs.command.d.ts +2 -2
- package/build/commands/tools/marketplace-card/retry-marketplace-card-job.command.d.ts +2 -2
- package/build/commands/tools/marketplace-card/set-reaction-to-marketplace-card.command.d.ts +2 -2
- package/build/commands/tools/marketplace-card/update-marketplace-card-job-favorite.command.d.ts +2 -2
- package/build/commands/tools/marketplace-card/update-marketplace-card-job-title.command.d.ts +2 -2
- package/build/commands/tools/music/add-track-to-music-playlist.command.d.ts +16 -16
- package/build/commands/tools/music/create-music-playlist.command.d.ts +16 -16
- package/build/commands/tools/music/edit-music.command.d.ts +16 -16
- package/build/commands/tools/music/find-music-job-by-uuid.command.d.ts +16 -16
- package/build/commands/tools/music/find-music-jobs.command.d.ts +16 -16
- package/build/commands/tools/music/find-music-playlists.command.d.ts +16 -16
- package/build/commands/tools/music/generate-music.command.d.ts +16 -16
- package/build/commands/tools/music/remove-track-from-music-playlist.command.d.ts +16 -16
- package/build/commands/tools/music/retry-music-job.command.d.ts +16 -16
- package/build/commands/tools/music/set-reaction-to-music-job.command.d.ts +16 -16
- package/build/commands/tools/music/update-music-job-favorite.command.d.ts +16 -16
- package/build/commands/tools/music/update-music-job-title.command.d.ts +16 -16
- package/build/commands/tools/music/update-music-playlist.command.d.ts +16 -16
- package/build/commands/tools/paraphrase/find-paraphrase-job-by-uuid.command.d.ts +2 -2
- package/build/commands/tools/paraphrase/find-paraphrase-jobs.command.d.ts +2 -2
- package/build/commands/tools/paraphrase/paraphrase.command.d.ts +2 -2
- package/build/commands/tools/paraphrase/retry-paraphrase-job.command.d.ts +2 -2
- package/build/commands/tools/paraphrase/set-reaction-to-paraphrase-job.command.d.ts +2 -2
- package/build/commands/tools/paraphrase/update-paraphrase-job-favorite.command.d.ts +2 -2
- package/build/commands/tools/paraphrase/update-paraphrase-job-title.command.d.ts +2 -2
- package/build/commands/tools/sound-generation/find-sound-generation-job-by-uuid.command.d.ts +2 -2
- package/build/commands/tools/sound-generation/find-sound-generation-jobs.command.d.ts +2 -2
- package/build/commands/tools/sound-generation/retry-sound-generation-job.command.d.ts +2 -2
- package/build/commands/tools/sound-generation/set-reaction-to-sound-generation-job.command.d.ts +2 -2
- package/build/commands/tools/sound-generation/sound-generation.command.d.ts +2 -2
- package/build/commands/tools/sound-generation/update-sound-generation-job-favorite.command.d.ts +2 -2
- package/build/commands/tools/sound-generation/update-sound-generation-job-title.command.d.ts +2 -2
- package/build/commands/tools/spell-corrector/find-spell-corrector-job-by-uuid.command.d.ts +2 -2
- package/build/commands/tools/spell-corrector/find-spell-corrector-jobs.command.d.ts +2 -2
- package/build/commands/tools/spell-corrector/retry-spell-corrector-job.command.d.ts +2 -2
- package/build/commands/tools/spell-corrector/set-reaction-to-spell-corrector-job.command.d.ts +2 -2
- package/build/commands/tools/spell-corrector/spell-corrector.command.d.ts +2 -2
- package/build/commands/tools/spell-corrector/update-spell-corrector-job-favorite.command.d.ts +2 -2
- package/build/commands/tools/spell-corrector/update-spell-corrector-job-title.command.d.ts +2 -2
- package/build/commands/tools/stt/find-stt-job-by-uuid.command.d.ts +2 -2
- package/build/commands/tools/stt/find-stt-jobs.command.d.ts +2 -2
- package/build/commands/tools/stt/retry-stt-job.command.d.ts +2 -2
- package/build/commands/tools/stt/set-reaction-to-stt-job.command.d.ts +2 -2
- package/build/commands/tools/stt/stt.command.d.ts +2 -2
- package/build/commands/tools/stt/update-stt-job-favorite.command.d.ts +2 -2
- package/build/commands/tools/stt/update-stt-job-title.command.d.ts +2 -2
- package/build/commands/tools/tool-workspace/find-tool-workspace-by-uuid.command.d.ts +2 -2
- package/build/commands/tools/tts/find-tts-job-by-uuid.command.d.ts +2 -2
- package/build/commands/tools/tts/find-tts-jobs.command.d.ts +2 -2
- package/build/commands/tools/tts/retry-tts-job.command.d.ts +2 -2
- package/build/commands/tools/tts/set-reaction-to-tts-job.command.d.ts +2 -2
- package/build/commands/tools/tts/tts.command.d.ts +2 -2
- package/build/commands/tools/tts/update-tts-job-favorite.command.d.ts +2 -2
- package/build/commands/tools/tts/update-tts-job-title.command.d.ts +2 -2
- package/build/commands/tools/video-editor/edit-video.command.d.ts +2 -2
- package/build/commands/tools/video-editor/find-video-editor-job-by-id.command.d.ts +2 -2
- package/build/commands/tools/video-editor/find-video-editor-jobs.command.d.ts +2 -2
- package/build/commands/tools/video-editor/retry-video-editor-job.command.d.ts +2 -2
- package/build/commands/tools/video-editor/set-reaction-to-video-editor-job.command.d.ts +2 -2
- package/build/commands/tools/video-editor/update-video-editor-job-favorite.command.d.ts +2 -2
- package/build/commands/tools/video-editor/update-video-editor-job-title.command.d.ts +2 -2
- 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/constants/tool-interior-design/enums/index.d.ts +1 -0
- package/build/constants/tool-interior-design/enums/index.js +1 -0
- package/build/constants/tool-interior-design/enums/interior-design-generation-group-status.enum.d.ts +6 -0
- package/build/constants/tool-interior-design/enums/interior-design-generation-group-status.enum.js +10 -0
- package/build/models/canvas-node-definition.schema.d.ts +294 -0
- package/build/models/tool-job.schema.d.ts +2 -2
- package/build/models/tool-job.schema.js +2 -2
- 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/build/models/tools/image-editor/image-editor-job.schema.d.ts +2 -2
- package/build/models/tools/image-recognition/image-recognition-job.schema.d.ts +2 -2
- package/build/models/tools/interior-design/index.d.ts +1 -0
- package/build/models/tools/interior-design/index.js +1 -0
- package/build/models/tools/interior-design/interior-design-config.schema.d.ts +136 -7
- package/build/models/tools/interior-design/interior-design-config.schema.js +28 -2
- package/build/models/tools/interior-design/interior-design-generation-group.schema.d.ts +95 -0
- package/build/models/tools/interior-design/interior-design-generation-group.schema.js +24 -0
- package/build/models/tools/interior-design/interior-design-job.schema.d.ts +29 -2
- package/build/models/tools/interior-design/interior-design-job.schema.js +7 -0
- package/build/models/tools/interior-design/interior-design-model.schema.d.ts +9 -0
- package/build/models/tools/interior-design/interior-design-model.schema.js +6 -0
- package/build/models/tools/marketplace-card/marketplace-card-job.schema.d.ts +2 -2
- package/build/models/tools/music/music-job.schema.d.ts +16 -16
- package/build/models/tools/music/music-playlist.schema.d.ts +16 -16
- package/build/models/tools/paraphrase/paraphrase-job.schema.d.ts +2 -2
- package/build/models/tools/sound-generation/sound-generation-job.schema.d.ts +2 -2
- package/build/models/tools/spell-corrector/spell-corrector-job.schema.d.ts +2 -2
- package/build/models/tools/stt/stt-job.schema.d.ts +2 -2
- package/build/models/tools/tool-workspace/tool-workspace-contents.schema.d.ts +2 -2
- package/build/models/tools/tool-workspace/tool-workspace-item.schema.d.ts +2 -2
- package/build/models/tools/tool-workspace/tool-workspace-job.schema.d.ts +2 -2
- package/build/models/tools/tts/tts-job.schema.d.ts +2 -2
- package/build/models/tools/video-editor/video-editor-job.schema.d.ts +2 -2
- 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
|
};
|
|
@@ -7,8 +7,8 @@ export declare const INTERIOR_DESIGN_ROUTES: {
|
|
|
7
7
|
readonly GET_JOB: (uuid: string) => string;
|
|
8
8
|
readonly UPDATE: (uuid: string) => string;
|
|
9
9
|
readonly UPDATE_FAVORITE: (uuid: string) => string;
|
|
10
|
+
readonly RETRY: (uuid: string) => string;
|
|
10
11
|
readonly SET_REACTION: (uuid: string) => string;
|
|
11
12
|
readonly DELETE: (uuid: string) => string;
|
|
12
13
|
readonly DELETE_ALL: 'jobs';
|
|
13
|
-
readonly RETRY: (uuid: string) => string;
|
|
14
14
|
};
|
|
@@ -10,8 +10,8 @@ exports.INTERIOR_DESIGN_ROUTES = {
|
|
|
10
10
|
GET_JOB: (uuid) => `jobs/${uuid}`,
|
|
11
11
|
UPDATE: (uuid) => `jobs/${uuid}`,
|
|
12
12
|
UPDATE_FAVORITE: (uuid) => `jobs/${uuid}/favorite`,
|
|
13
|
+
RETRY: (uuid) => `jobs/${uuid}/retry`,
|
|
13
14
|
SET_REACTION: (uuid) => `jobs/${uuid}/reaction`,
|
|
14
15
|
DELETE: (uuid) => `jobs/${uuid}`,
|
|
15
16
|
DELETE_ALL: 'jobs',
|
|
16
|
-
RETRY: (uuid) => `jobs/${uuid}/retry`,
|
|
17
17
|
};
|
package/build/api/routes.d.ts
CHANGED
|
@@ -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
|
};
|
package/build/api/routes.js
CHANGED
|
@@ -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
|
},
|
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>;
|
|
@@ -264,8 +264,8 @@ export declare namespace ExecutePhotoStudioActionCommand {
|
|
|
264
264
|
status: z.ZodEnum<typeof import("../..").TOOL_JOB_STATUS>;
|
|
265
265
|
error: z.ZodNullable<z.ZodString>;
|
|
266
266
|
isFavorite: z.ZodBoolean;
|
|
267
|
-
createdAt: z.
|
|
268
|
-
updatedAt: z.
|
|
267
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
268
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
269
269
|
actionType: z.ZodEnum<typeof PHOTO_STUDIO_ACTION_ALIAS>;
|
|
270
270
|
baseCheckpointSequence: z.ZodNullable<z.ZodNumber>;
|
|
271
271
|
targetCheckpointSequence: z.ZodNullable<z.ZodNumber>;
|
|
@@ -291,8 +291,8 @@ export declare namespace ExecutePhotoStudioActionCommand {
|
|
|
291
291
|
status: z.ZodEnum<typeof import("../..").TOOL_JOB_STATUS>;
|
|
292
292
|
error: z.ZodNullable<z.ZodString>;
|
|
293
293
|
isFavorite: z.ZodBoolean;
|
|
294
|
-
createdAt: z.
|
|
295
|
-
updatedAt: z.
|
|
294
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
295
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
296
296
|
actionType: z.ZodEnum<typeof PHOTO_STUDIO_ACTION_ALIAS>;
|
|
297
297
|
baseCheckpointSequence: z.ZodNullable<z.ZodNumber>;
|
|
298
298
|
targetCheckpointSequence: z.ZodNullable<z.ZodNumber>;
|
|
@@ -11,8 +11,8 @@ export declare namespace RetryPhotoStudioJobCommand {
|
|
|
11
11
|
status: z.ZodEnum<typeof import("../..").TOOL_JOB_STATUS>;
|
|
12
12
|
error: z.ZodNullable<z.ZodString>;
|
|
13
13
|
isFavorite: z.ZodBoolean;
|
|
14
|
-
createdAt: z.
|
|
15
|
-
updatedAt: z.
|
|
14
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
15
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
16
16
|
actionType: z.ZodEnum<typeof import("../..").PHOTO_STUDIO_ACTION_ALIAS>;
|
|
17
17
|
baseCheckpointSequence: z.ZodNullable<z.ZodNumber>;
|
|
18
18
|
targetCheckpointSequence: z.ZodNullable<z.ZodNumber>;
|
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;
|
|
@@ -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,
|
package/build/commands/tools/html-page-builder/find-html-page-builder-font-by-uuid.command.d.ts
ADDED
|
@@ -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 = {}));
|