@purpleschool/gptbot-tools 0.4.3-stage-2 → 0.4.4
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/html-page-builder/commands/get-html-page-builder-refine-price-calculation-data.command.d.ts +44 -0
- package/build/html-page-builder/commands/get-html-page-builder-refine-price-calculation-data.command.js +23 -0
- package/build/html-page-builder/commands/html-page-builder-answer-questions.command.d.ts +4 -0
- package/build/html-page-builder/commands/html-page-builder-download-zip.command.d.ts +20 -0
- package/build/html-page-builder/commands/html-page-builder-download-zip.command.js +14 -0
- package/build/html-page-builder/commands/html-page-builder-execute.command.d.ts +8 -0
- package/build/html-page-builder/commands/html-page-builder-execute.command.js +2 -0
- package/build/html-page-builder/commands/html-page-builder-publish.command.d.ts +20 -0
- package/build/html-page-builder/commands/html-page-builder-publish.command.js +14 -0
- package/build/html-page-builder/commands/html-page-builder-refine.command.d.ts +244 -0
- package/build/html-page-builder/commands/html-page-builder-refine.command.js +19 -0
- package/build/html-page-builder/commands/html-page-builder-retry-build.command.d.ts +245 -0
- package/build/html-page-builder/commands/html-page-builder-retry-build.command.js +20 -0
- package/build/html-page-builder/commands/html-page-builder-retry-refine.command.d.ts +243 -0
- package/build/html-page-builder/commands/html-page-builder-retry-refine.command.js +19 -0
- package/build/html-page-builder/commands/html-page-builder-sources.command.d.ts +22 -0
- package/build/html-page-builder/commands/html-page-builder-sources.command.js +14 -0
- package/build/html-page-builder/commands/index.d.ts +7 -0
- package/build/html-page-builder/commands/index.js +7 -0
- package/build/html-page-builder/commands/update-html-page-builder-session-favorite.command.d.ts +4 -0
- package/build/html-page-builder/commands/update-html-page-builder-session-reaction.command.d.ts +4 -0
- package/build/html-page-builder/commands/update-html-page-builder-session-title.command.d.ts +4 -0
- package/build/html-page-builder/models/html-page-builder-config.schema.d.ts +2 -0
- package/build/html-page-builder/models/html-page-builder-job.schema.d.ts +2 -0
- package/build/html-page-builder/models/html-page-builder-job.schema.js +4 -0
- package/build/html-page-builder/models/html-page-builder-preset.schema.d.ts +1 -0
- package/build/html-page-builder/models/html-page-builder-session.schema.d.ts +2 -0
- package/build/html-page-builder/models/html-page-builder-style.schema.d.ts +1 -0
- package/build/html-page-builder/models/html-page-builder-style.schema.js +1 -0
- package/build/html-page-builder/queries/find-html-page-builder-presets.query.d.ts +2 -0
- package/build/html-page-builder/queries/find-html-page-builder-session-by-id.query.d.ts +4 -0
- package/build/html-page-builder/queries/find-html-page-builder-sessions.query.d.ts +4 -0
- package/build/html-page-builder/queries/find-html-page-builder-style-by-id.query.d.ts +2 -0
- package/build/html-page-builder/queries/find-html-page-builder-styles.query.d.ts +2 -0
- package/build/html-page-builder/queries/get-html-page-builder-config.query.d.ts +4 -0
- package/build/html-page-builder/routes/html-page-builder.amqp.routes.d.ts +7 -0
- package/build/html-page-builder/routes/html-page-builder.amqp.routes.js +7 -0
- package/build/tools/enums/job-status.enum.d.ts +2 -1
- package/build/tools/enums/job-status.enum.js +1 -0
- package/build/tools/models/global-tools-config.schema.d.ts +2 -0
- package/build/tools/models/tools-with-configs.schema.d.ts +4 -0
- package/build/tools/queries/get-global-tools-config.query.d.ts +4 -0
- package/build/tools/queries/get-tools-with-configs.query.d.ts +4 -0
- package/build/tools/routes/tools.aqmp.routes.d.ts +1 -0
- package/build/tools/routes/tools.aqmp.routes.js +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare namespace GetHtmlPageBuilderRefinePriceCalculationDataCommand {
|
|
3
|
+
const RequestSchema: z.ZodObject<{
|
|
4
|
+
baseJobId: z.ZodUUID;
|
|
5
|
+
prompt: z.ZodString;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
type Request = z.infer<typeof RequestSchema>;
|
|
8
|
+
const ResponseDataSchema: z.ZodObject<{
|
|
9
|
+
modelPricing: z.ZodObject<{
|
|
10
|
+
inputPrice: z.ZodNumber;
|
|
11
|
+
outputPrice: z.ZodNumber;
|
|
12
|
+
}, z.core.$strip>;
|
|
13
|
+
effectivePromptLength: z.ZodNumber;
|
|
14
|
+
metadata: z.ZodObject<{
|
|
15
|
+
baseJobId: z.ZodUUID;
|
|
16
|
+
}, z.core.$strip>;
|
|
17
|
+
}, z.core.$strip>;
|
|
18
|
+
type ResponseData = z.infer<typeof ResponseDataSchema>;
|
|
19
|
+
const ResponseSchema: z.ZodObject<{
|
|
20
|
+
isSuccess: z.ZodBoolean;
|
|
21
|
+
data: z.ZodOptional<z.ZodType<{
|
|
22
|
+
modelPricing: {
|
|
23
|
+
inputPrice: number;
|
|
24
|
+
outputPrice: number;
|
|
25
|
+
};
|
|
26
|
+
effectivePromptLength: number;
|
|
27
|
+
metadata: {
|
|
28
|
+
baseJobId: string;
|
|
29
|
+
};
|
|
30
|
+
}, unknown, z.core.$ZodTypeInternals<{
|
|
31
|
+
modelPricing: {
|
|
32
|
+
inputPrice: number;
|
|
33
|
+
outputPrice: number;
|
|
34
|
+
};
|
|
35
|
+
effectivePromptLength: number;
|
|
36
|
+
metadata: {
|
|
37
|
+
baseJobId: string;
|
|
38
|
+
};
|
|
39
|
+
}, unknown>>>;
|
|
40
|
+
code: z.ZodOptional<z.ZodString>;
|
|
41
|
+
message: z.ZodOptional<z.ZodString>;
|
|
42
|
+
}, z.core.$strip>;
|
|
43
|
+
type Response = z.infer<typeof ResponseSchema>;
|
|
44
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetHtmlPageBuilderRefinePriceCalculationDataCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const command_response_schema_1 = require("../../common/models/command-response.schema");
|
|
6
|
+
var GetHtmlPageBuilderRefinePriceCalculationDataCommand;
|
|
7
|
+
(function (GetHtmlPageBuilderRefinePriceCalculationDataCommand) {
|
|
8
|
+
GetHtmlPageBuilderRefinePriceCalculationDataCommand.RequestSchema = zod_1.z.object({
|
|
9
|
+
baseJobId: zod_1.z.uuid(),
|
|
10
|
+
prompt: zod_1.z.string().min(1),
|
|
11
|
+
});
|
|
12
|
+
GetHtmlPageBuilderRefinePriceCalculationDataCommand.ResponseDataSchema = zod_1.z.object({
|
|
13
|
+
modelPricing: zod_1.z.object({
|
|
14
|
+
inputPrice: zod_1.z.number(),
|
|
15
|
+
outputPrice: zod_1.z.number(),
|
|
16
|
+
}),
|
|
17
|
+
effectivePromptLength: zod_1.z.number(),
|
|
18
|
+
metadata: zod_1.z.object({
|
|
19
|
+
baseJobId: zod_1.z.uuid(),
|
|
20
|
+
}),
|
|
21
|
+
});
|
|
22
|
+
GetHtmlPageBuilderRefinePriceCalculationDataCommand.ResponseSchema = (0, command_response_schema_1.ICommandResponseSchema)(GetHtmlPageBuilderRefinePriceCalculationDataCommand.ResponseDataSchema);
|
|
23
|
+
})(GetHtmlPageBuilderRefinePriceCalculationDataCommand || (exports.GetHtmlPageBuilderRefinePriceCalculationDataCommand = GetHtmlPageBuilderRefinePriceCalculationDataCommand = {}));
|
|
@@ -48,6 +48,7 @@ export declare namespace HtmlPageBuilderAnswerQuestionsCommand {
|
|
|
48
48
|
jobs?: {
|
|
49
49
|
uuid: string;
|
|
50
50
|
sessionId: string;
|
|
51
|
+
baseJobId: string | null;
|
|
51
52
|
modelId: string;
|
|
52
53
|
userPrompt: string;
|
|
53
54
|
title: string;
|
|
@@ -69,6 +70,7 @@ export declare namespace HtmlPageBuilderAnswerQuestionsCommand {
|
|
|
69
70
|
}[];
|
|
70
71
|
} | undefined;
|
|
71
72
|
status: import("../..").JOB_STATUS;
|
|
73
|
+
generationStarted: boolean;
|
|
72
74
|
error: string | null;
|
|
73
75
|
internalError?: string | null | undefined;
|
|
74
76
|
price: number;
|
|
@@ -158,6 +160,7 @@ export declare namespace HtmlPageBuilderAnswerQuestionsCommand {
|
|
|
158
160
|
jobs?: {
|
|
159
161
|
uuid: string;
|
|
160
162
|
sessionId: string;
|
|
163
|
+
baseJobId: string | null;
|
|
161
164
|
modelId: string;
|
|
162
165
|
userPrompt: string;
|
|
163
166
|
title: string;
|
|
@@ -179,6 +182,7 @@ export declare namespace HtmlPageBuilderAnswerQuestionsCommand {
|
|
|
179
182
|
}[];
|
|
180
183
|
} | undefined;
|
|
181
184
|
status: import("../..").JOB_STATUS;
|
|
185
|
+
generationStarted: boolean;
|
|
182
186
|
error: string | null;
|
|
183
187
|
internalError?: string | null | undefined;
|
|
184
188
|
price: number;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare namespace HtmlPageBuilderDownloadZipCommand {
|
|
3
|
+
const RequestSchema: z.ZodObject<{
|
|
4
|
+
userId: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
|
|
5
|
+
unregisteredUserId: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
|
|
6
|
+
jobId: z.ZodUUID;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
type Request = z.infer<typeof RequestSchema>;
|
|
9
|
+
const ResponseSchema: z.ZodObject<{
|
|
10
|
+
isSuccess: z.ZodBoolean;
|
|
11
|
+
data: z.ZodOptional<z.ZodType<{
|
|
12
|
+
url: string;
|
|
13
|
+
}, unknown, z.core.$ZodTypeInternals<{
|
|
14
|
+
url: string;
|
|
15
|
+
}, unknown>>>;
|
|
16
|
+
code: z.ZodOptional<z.ZodString>;
|
|
17
|
+
message: z.ZodOptional<z.ZodString>;
|
|
18
|
+
}, z.core.$strip>;
|
|
19
|
+
type Response = z.infer<typeof ResponseSchema>;
|
|
20
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.HtmlPageBuilderDownloadZipCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const command_response_schema_1 = require("../../common/models/command-response.schema");
|
|
6
|
+
var HtmlPageBuilderDownloadZipCommand;
|
|
7
|
+
(function (HtmlPageBuilderDownloadZipCommand) {
|
|
8
|
+
HtmlPageBuilderDownloadZipCommand.RequestSchema = zod_1.z.object({
|
|
9
|
+
userId: zod_1.z.uuid().nullable().optional(),
|
|
10
|
+
unregisteredUserId: zod_1.z.uuid().nullable().optional(),
|
|
11
|
+
jobId: zod_1.z.uuid(),
|
|
12
|
+
});
|
|
13
|
+
HtmlPageBuilderDownloadZipCommand.ResponseSchema = (0, command_response_schema_1.ICommandResponseSchema)(zod_1.z.object({ url: zod_1.z.string().url() }));
|
|
14
|
+
})(HtmlPageBuilderDownloadZipCommand || (exports.HtmlPageBuilderDownloadZipCommand = HtmlPageBuilderDownloadZipCommand = {}));
|
|
@@ -6,6 +6,10 @@ export declare namespace HtmlPageBuilderExecuteCommand {
|
|
|
6
6
|
unregisteredUserId: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
|
|
7
7
|
scope: z.ZodDefault<z.ZodOptional<z.ZodEnum<typeof JOB_SCOPE>>>;
|
|
8
8
|
sessionId: z.ZodOptional<z.ZodUUID>;
|
|
9
|
+
supersession: z.ZodOptional<z.ZodObject<{
|
|
10
|
+
operationId: z.ZodUUID;
|
|
11
|
+
jobId: z.ZodUUID;
|
|
12
|
+
}, z.core.$strip>>;
|
|
9
13
|
userPrompt: z.ZodString;
|
|
10
14
|
modelId: z.ZodUUID;
|
|
11
15
|
params: z.ZodObject<{
|
|
@@ -70,6 +74,7 @@ export declare namespace HtmlPageBuilderExecuteCommand {
|
|
|
70
74
|
jobs?: {
|
|
71
75
|
uuid: string;
|
|
72
76
|
sessionId: string;
|
|
77
|
+
baseJobId: string | null;
|
|
73
78
|
modelId: string;
|
|
74
79
|
userPrompt: string;
|
|
75
80
|
title: string;
|
|
@@ -91,6 +96,7 @@ export declare namespace HtmlPageBuilderExecuteCommand {
|
|
|
91
96
|
}[];
|
|
92
97
|
} | undefined;
|
|
93
98
|
status: import("../..").JOB_STATUS;
|
|
99
|
+
generationStarted: boolean;
|
|
94
100
|
error: string | null;
|
|
95
101
|
internalError?: string | null | undefined;
|
|
96
102
|
price: number;
|
|
@@ -180,6 +186,7 @@ export declare namespace HtmlPageBuilderExecuteCommand {
|
|
|
180
186
|
jobs?: {
|
|
181
187
|
uuid: string;
|
|
182
188
|
sessionId: string;
|
|
189
|
+
baseJobId: string | null;
|
|
183
190
|
modelId: string;
|
|
184
191
|
userPrompt: string;
|
|
185
192
|
title: string;
|
|
@@ -201,6 +208,7 @@ export declare namespace HtmlPageBuilderExecuteCommand {
|
|
|
201
208
|
}[];
|
|
202
209
|
} | undefined;
|
|
203
210
|
status: import("../..").JOB_STATUS;
|
|
211
|
+
generationStarted: boolean;
|
|
204
212
|
error: string | null;
|
|
205
213
|
internalError?: string | null | undefined;
|
|
206
214
|
price: number;
|
|
@@ -14,6 +14,8 @@ var HtmlPageBuilderExecuteCommand;
|
|
|
14
14
|
// A repeated execute builds another site in the same session: its own questions, its own
|
|
15
15
|
// payment, its own job. The previous variants stay in the history.
|
|
16
16
|
sessionId: zod_1.z.uuid().optional(),
|
|
17
|
+
/** Required for replacing the current paid, unanswered TOOL run. */
|
|
18
|
+
supersession: zod_1.z.object({ operationId: zod_1.z.uuid(), jobId: zod_1.z.uuid() }).optional(),
|
|
17
19
|
userPrompt: zod_1.z.string(),
|
|
18
20
|
modelId: zod_1.z.uuid(),
|
|
19
21
|
params: models_1.HtmlPageBuilderJobParamsSchema,
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare namespace HtmlPageBuilderPublishCommand {
|
|
3
|
+
const RequestSchema: z.ZodObject<{
|
|
4
|
+
jobId: z.ZodUUID;
|
|
5
|
+
userId: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
|
|
6
|
+
unregisteredUserId: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
type Request = z.infer<typeof RequestSchema>;
|
|
9
|
+
const ResponseSchema: z.ZodObject<{
|
|
10
|
+
isSuccess: z.ZodBoolean;
|
|
11
|
+
data: z.ZodOptional<z.ZodType<{
|
|
12
|
+
url: string;
|
|
13
|
+
}, unknown, z.core.$ZodTypeInternals<{
|
|
14
|
+
url: string;
|
|
15
|
+
}, unknown>>>;
|
|
16
|
+
code: z.ZodOptional<z.ZodString>;
|
|
17
|
+
message: z.ZodOptional<z.ZodString>;
|
|
18
|
+
}, z.core.$strip>;
|
|
19
|
+
type Response = z.infer<typeof ResponseSchema>;
|
|
20
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.HtmlPageBuilderPublishCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const command_response_schema_1 = require("../../common/models/command-response.schema");
|
|
6
|
+
var HtmlPageBuilderPublishCommand;
|
|
7
|
+
(function (HtmlPageBuilderPublishCommand) {
|
|
8
|
+
HtmlPageBuilderPublishCommand.RequestSchema = zod_1.z.object({
|
|
9
|
+
jobId: zod_1.z.uuid(),
|
|
10
|
+
userId: zod_1.z.uuid().nullable().optional(),
|
|
11
|
+
unregisteredUserId: zod_1.z.uuid().nullable().optional(),
|
|
12
|
+
});
|
|
13
|
+
HtmlPageBuilderPublishCommand.ResponseSchema = (0, command_response_schema_1.ICommandResponseSchema)(zod_1.z.object({ url: zod_1.z.url() }));
|
|
14
|
+
})(HtmlPageBuilderPublishCommand || (exports.HtmlPageBuilderPublishCommand = HtmlPageBuilderPublishCommand = {}));
|
|
@@ -0,0 +1,244 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare namespace HtmlPageBuilderRefineCommand {
|
|
3
|
+
const RequestSchema: z.ZodObject<{
|
|
4
|
+
userId: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
|
|
5
|
+
unregisteredUserId: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
|
|
6
|
+
baseJobId: z.ZodUUID;
|
|
7
|
+
prompt: z.ZodString;
|
|
8
|
+
tokenReservationId: z.ZodOptional<z.ZodUUID>;
|
|
9
|
+
precalculatedPrice: z.ZodOptional<z.ZodNumber>;
|
|
10
|
+
mock: z.ZodOptional<z.ZodBoolean>;
|
|
11
|
+
}, z.core.$strip>;
|
|
12
|
+
type Request = z.infer<typeof RequestSchema>;
|
|
13
|
+
const ResponseSchema: z.ZodObject<{
|
|
14
|
+
isSuccess: z.ZodBoolean;
|
|
15
|
+
data: z.ZodOptional<z.ZodType<{
|
|
16
|
+
uuid: string;
|
|
17
|
+
title: string;
|
|
18
|
+
status: import("..").HTML_PAGE_BUILDER_SESSION_STATUS;
|
|
19
|
+
currentHtml?: string | null | undefined;
|
|
20
|
+
currentJobId?: string | null | undefined;
|
|
21
|
+
currentJob?: {
|
|
22
|
+
uuid: string;
|
|
23
|
+
status: import("../..").JOB_STATUS;
|
|
24
|
+
previewUrl?: string | undefined;
|
|
25
|
+
files?: {
|
|
26
|
+
stylesheet: string;
|
|
27
|
+
script: string;
|
|
28
|
+
pages: {
|
|
29
|
+
slug: string;
|
|
30
|
+
url: string;
|
|
31
|
+
}[];
|
|
32
|
+
} | undefined;
|
|
33
|
+
error: string | null;
|
|
34
|
+
createdAt: Date;
|
|
35
|
+
completedAt?: Date | null | undefined;
|
|
36
|
+
} | null | undefined;
|
|
37
|
+
lastUsedModelId?: string | null | undefined;
|
|
38
|
+
reaction: import("../..").USER_REACTION | null;
|
|
39
|
+
dislikeReason: string | null;
|
|
40
|
+
userId?: string | null | undefined;
|
|
41
|
+
unregisteredUserId?: string | null | undefined;
|
|
42
|
+
isDeleted: boolean;
|
|
43
|
+
isFavorite: boolean;
|
|
44
|
+
jobs?: {
|
|
45
|
+
uuid: string;
|
|
46
|
+
sessionId: string;
|
|
47
|
+
baseJobId: string | null;
|
|
48
|
+
modelId: string;
|
|
49
|
+
userPrompt: string;
|
|
50
|
+
title: string;
|
|
51
|
+
generatedHtml?: string | null | undefined;
|
|
52
|
+
generatedPages?: {
|
|
53
|
+
slug: string;
|
|
54
|
+
title: string;
|
|
55
|
+
html: string;
|
|
56
|
+
order: number;
|
|
57
|
+
isHome: boolean;
|
|
58
|
+
}[] | null | undefined;
|
|
59
|
+
previewUrl?: string | undefined;
|
|
60
|
+
files?: {
|
|
61
|
+
stylesheet: string;
|
|
62
|
+
script: string;
|
|
63
|
+
pages: {
|
|
64
|
+
slug: string;
|
|
65
|
+
url: string;
|
|
66
|
+
}[];
|
|
67
|
+
} | undefined;
|
|
68
|
+
status: import("../..").JOB_STATUS;
|
|
69
|
+
generationStarted: boolean;
|
|
70
|
+
error: string | null;
|
|
71
|
+
internalError?: string | null | undefined;
|
|
72
|
+
price: number;
|
|
73
|
+
inputTokens?: number | null | undefined;
|
|
74
|
+
outputTokens?: number | null | undefined;
|
|
75
|
+
totalTokens?: number | null | undefined;
|
|
76
|
+
tokenReservationId?: string | null | undefined;
|
|
77
|
+
questions: {
|
|
78
|
+
id: string;
|
|
79
|
+
question: string;
|
|
80
|
+
type: import("..").HTML_PAGE_BUILDER_QUESTION_TYPE;
|
|
81
|
+
options: string[];
|
|
82
|
+
recommendedAnswer: string;
|
|
83
|
+
allowCustomAnswer: boolean;
|
|
84
|
+
}[];
|
|
85
|
+
answers: {
|
|
86
|
+
questionId: string;
|
|
87
|
+
answers: string[];
|
|
88
|
+
}[];
|
|
89
|
+
styleId?: string | null | undefined;
|
|
90
|
+
fontId?: string | null | undefined;
|
|
91
|
+
accentColor: string;
|
|
92
|
+
userId?: string | null | undefined;
|
|
93
|
+
unregisteredUserId?: string | null | undefined;
|
|
94
|
+
params: {
|
|
95
|
+
attachedFiles: {
|
|
96
|
+
uuid: string;
|
|
97
|
+
url: string;
|
|
98
|
+
name: string;
|
|
99
|
+
mimeType: string;
|
|
100
|
+
type: string;
|
|
101
|
+
size: number;
|
|
102
|
+
duration?: number | null | undefined;
|
|
103
|
+
content?: string | null | undefined;
|
|
104
|
+
contentLength?: number | null | undefined;
|
|
105
|
+
}[];
|
|
106
|
+
pagesCount?: number | undefined;
|
|
107
|
+
clarifications: {
|
|
108
|
+
question: string;
|
|
109
|
+
answer: string;
|
|
110
|
+
}[];
|
|
111
|
+
mock?: boolean | undefined;
|
|
112
|
+
};
|
|
113
|
+
isDeleted: boolean;
|
|
114
|
+
createdAt: Date;
|
|
115
|
+
completedAt?: Date | null | undefined;
|
|
116
|
+
updatedAt: Date;
|
|
117
|
+
}[] | undefined;
|
|
118
|
+
pages?: {
|
|
119
|
+
slug: string;
|
|
120
|
+
title: string;
|
|
121
|
+
html: string;
|
|
122
|
+
order: number;
|
|
123
|
+
isHome: boolean;
|
|
124
|
+
}[] | undefined;
|
|
125
|
+
createdAt: Date;
|
|
126
|
+
updatedAt: Date;
|
|
127
|
+
}, unknown, z.core.$ZodTypeInternals<{
|
|
128
|
+
uuid: string;
|
|
129
|
+
title: string;
|
|
130
|
+
status: import("..").HTML_PAGE_BUILDER_SESSION_STATUS;
|
|
131
|
+
currentHtml?: string | null | undefined;
|
|
132
|
+
currentJobId?: string | null | undefined;
|
|
133
|
+
currentJob?: {
|
|
134
|
+
uuid: string;
|
|
135
|
+
status: import("../..").JOB_STATUS;
|
|
136
|
+
previewUrl?: string | undefined;
|
|
137
|
+
files?: {
|
|
138
|
+
stylesheet: string;
|
|
139
|
+
script: string;
|
|
140
|
+
pages: {
|
|
141
|
+
slug: string;
|
|
142
|
+
url: string;
|
|
143
|
+
}[];
|
|
144
|
+
} | undefined;
|
|
145
|
+
error: string | null;
|
|
146
|
+
createdAt: Date;
|
|
147
|
+
completedAt?: Date | null | undefined;
|
|
148
|
+
} | null | undefined;
|
|
149
|
+
lastUsedModelId?: string | null | undefined;
|
|
150
|
+
reaction: import("../..").USER_REACTION | null;
|
|
151
|
+
dislikeReason: string | null;
|
|
152
|
+
userId?: string | null | undefined;
|
|
153
|
+
unregisteredUserId?: string | null | undefined;
|
|
154
|
+
isDeleted: boolean;
|
|
155
|
+
isFavorite: boolean;
|
|
156
|
+
jobs?: {
|
|
157
|
+
uuid: string;
|
|
158
|
+
sessionId: string;
|
|
159
|
+
baseJobId: string | null;
|
|
160
|
+
modelId: string;
|
|
161
|
+
userPrompt: string;
|
|
162
|
+
title: string;
|
|
163
|
+
generatedHtml?: string | null | undefined;
|
|
164
|
+
generatedPages?: {
|
|
165
|
+
slug: string;
|
|
166
|
+
title: string;
|
|
167
|
+
html: string;
|
|
168
|
+
order: number;
|
|
169
|
+
isHome: boolean;
|
|
170
|
+
}[] | null | undefined;
|
|
171
|
+
previewUrl?: string | undefined;
|
|
172
|
+
files?: {
|
|
173
|
+
stylesheet: string;
|
|
174
|
+
script: string;
|
|
175
|
+
pages: {
|
|
176
|
+
slug: string;
|
|
177
|
+
url: string;
|
|
178
|
+
}[];
|
|
179
|
+
} | undefined;
|
|
180
|
+
status: import("../..").JOB_STATUS;
|
|
181
|
+
generationStarted: boolean;
|
|
182
|
+
error: string | null;
|
|
183
|
+
internalError?: string | null | undefined;
|
|
184
|
+
price: number;
|
|
185
|
+
inputTokens?: number | null | undefined;
|
|
186
|
+
outputTokens?: number | null | undefined;
|
|
187
|
+
totalTokens?: number | null | undefined;
|
|
188
|
+
tokenReservationId?: string | null | undefined;
|
|
189
|
+
questions: {
|
|
190
|
+
id: string;
|
|
191
|
+
question: string;
|
|
192
|
+
type: import("..").HTML_PAGE_BUILDER_QUESTION_TYPE;
|
|
193
|
+
options: string[];
|
|
194
|
+
recommendedAnswer: string;
|
|
195
|
+
allowCustomAnswer: boolean;
|
|
196
|
+
}[];
|
|
197
|
+
answers: {
|
|
198
|
+
questionId: string;
|
|
199
|
+
answers: string[];
|
|
200
|
+
}[];
|
|
201
|
+
styleId?: string | null | undefined;
|
|
202
|
+
fontId?: string | null | undefined;
|
|
203
|
+
accentColor: string;
|
|
204
|
+
userId?: string | null | undefined;
|
|
205
|
+
unregisteredUserId?: string | null | undefined;
|
|
206
|
+
params: {
|
|
207
|
+
attachedFiles: {
|
|
208
|
+
uuid: string;
|
|
209
|
+
url: string;
|
|
210
|
+
name: string;
|
|
211
|
+
mimeType: string;
|
|
212
|
+
type: string;
|
|
213
|
+
size: number;
|
|
214
|
+
duration?: number | null | undefined;
|
|
215
|
+
content?: string | null | undefined;
|
|
216
|
+
contentLength?: number | null | undefined;
|
|
217
|
+
}[];
|
|
218
|
+
pagesCount?: number | undefined;
|
|
219
|
+
clarifications: {
|
|
220
|
+
question: string;
|
|
221
|
+
answer: string;
|
|
222
|
+
}[];
|
|
223
|
+
mock?: boolean | undefined;
|
|
224
|
+
};
|
|
225
|
+
isDeleted: boolean;
|
|
226
|
+
createdAt: Date;
|
|
227
|
+
completedAt?: Date | null | undefined;
|
|
228
|
+
updatedAt: Date;
|
|
229
|
+
}[] | undefined;
|
|
230
|
+
pages?: {
|
|
231
|
+
slug: string;
|
|
232
|
+
title: string;
|
|
233
|
+
html: string;
|
|
234
|
+
order: number;
|
|
235
|
+
isHome: boolean;
|
|
236
|
+
}[] | undefined;
|
|
237
|
+
createdAt: Date;
|
|
238
|
+
updatedAt: Date;
|
|
239
|
+
}, unknown>>>;
|
|
240
|
+
code: z.ZodOptional<z.ZodString>;
|
|
241
|
+
message: z.ZodOptional<z.ZodString>;
|
|
242
|
+
}, z.core.$strip>;
|
|
243
|
+
type Response = z.infer<typeof ResponseSchema>;
|
|
244
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.HtmlPageBuilderRefineCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const command_response_schema_1 = require("../../common/models/command-response.schema");
|
|
6
|
+
const models_1 = require("../models");
|
|
7
|
+
var HtmlPageBuilderRefineCommand;
|
|
8
|
+
(function (HtmlPageBuilderRefineCommand) {
|
|
9
|
+
HtmlPageBuilderRefineCommand.RequestSchema = zod_1.z.object({
|
|
10
|
+
userId: zod_1.z.uuid().nullable().optional(),
|
|
11
|
+
unregisteredUserId: zod_1.z.uuid().nullable().optional(),
|
|
12
|
+
baseJobId: zod_1.z.uuid(),
|
|
13
|
+
prompt: zod_1.z.string().min(1),
|
|
14
|
+
tokenReservationId: zod_1.z.uuid().optional(),
|
|
15
|
+
precalculatedPrice: zod_1.z.number().optional(),
|
|
16
|
+
mock: zod_1.z.boolean().optional(),
|
|
17
|
+
});
|
|
18
|
+
HtmlPageBuilderRefineCommand.ResponseSchema = (0, command_response_schema_1.ICommandResponseSchema)(models_1.HtmlPageBuilderSessionSchema);
|
|
19
|
+
})(HtmlPageBuilderRefineCommand || (exports.HtmlPageBuilderRefineCommand = HtmlPageBuilderRefineCommand = {}));
|