@purpleschool/gptbot-tools 0.4.4 → 0.4.5
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/html-page-builder-answer-questions.command.d.ts +6 -0
- package/build/html-page-builder/commands/html-page-builder-canvas-job-linked.command.d.ts +15 -0
- package/build/html-page-builder/commands/html-page-builder-canvas-job-linked.command.js +10 -0
- package/build/html-page-builder/commands/html-page-builder-execute.command.d.ts +9 -0
- package/build/html-page-builder/commands/html-page-builder-refine.command.d.ts +6 -0
- package/build/html-page-builder/commands/html-page-builder-retry-build.command.d.ts +6 -0
- package/build/html-page-builder/commands/html-page-builder-retry-refine.command.d.ts +6 -0
- package/build/html-page-builder/commands/index.d.ts +1 -0
- package/build/html-page-builder/commands/index.js +1 -0
- package/build/html-page-builder/commands/update-html-page-builder-session-favorite.command.d.ts +6 -0
- package/build/html-page-builder/commands/update-html-page-builder-session-reaction.command.d.ts +6 -0
- package/build/html-page-builder/commands/update-html-page-builder-session-title.command.d.ts +6 -0
- package/build/html-page-builder/models/html-page-builder-job.schema.d.ts +6 -0
- package/build/html-page-builder/models/html-page-builder-job.schema.js +5 -0
- package/build/html-page-builder/models/html-page-builder-session.schema.d.ts +3 -0
- package/build/html-page-builder/queries/find-html-page-builder-session-by-id.query.d.ts +6 -0
- package/build/html-page-builder/queries/find-html-page-builder-sessions.query.d.ts +6 -0
- package/build/html-page-builder/routes/html-page-builder.amqp.routes.d.ts +1 -0
- package/build/html-page-builder/routes/html-page-builder.amqp.routes.js +1 -0
- package/package.json +1 -1
|
@@ -113,6 +113,9 @@ export declare namespace HtmlPageBuilderAnswerQuestionsCommand {
|
|
|
113
113
|
answer: string;
|
|
114
114
|
}[];
|
|
115
115
|
mock?: boolean | undefined;
|
|
116
|
+
clarificationFallback?: boolean | undefined;
|
|
117
|
+
clarificationPaid?: boolean | undefined;
|
|
118
|
+
canvasLinked?: boolean | undefined;
|
|
116
119
|
};
|
|
117
120
|
isDeleted: boolean;
|
|
118
121
|
createdAt: Date;
|
|
@@ -225,6 +228,9 @@ export declare namespace HtmlPageBuilderAnswerQuestionsCommand {
|
|
|
225
228
|
answer: string;
|
|
226
229
|
}[];
|
|
227
230
|
mock?: boolean | undefined;
|
|
231
|
+
clarificationFallback?: boolean | undefined;
|
|
232
|
+
clarificationPaid?: boolean | undefined;
|
|
233
|
+
canvasLinked?: boolean | undefined;
|
|
228
234
|
};
|
|
229
235
|
isDeleted: boolean;
|
|
230
236
|
createdAt: Date;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare namespace HtmlPageBuilderCanvasJobLinkedCommand {
|
|
3
|
+
const RequestSchema: z.ZodObject<{
|
|
4
|
+
jobId: z.ZodUUID;
|
|
5
|
+
userId: z.ZodUUID;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
type Request = z.infer<typeof RequestSchema>;
|
|
8
|
+
const ResponseSchema: z.ZodObject<{
|
|
9
|
+
isSuccess: z.ZodBoolean;
|
|
10
|
+
data: z.ZodOptional<z.ZodType<boolean, unknown, z.core.$ZodTypeInternals<boolean, unknown>>>;
|
|
11
|
+
code: z.ZodOptional<z.ZodString>;
|
|
12
|
+
message: z.ZodOptional<z.ZodString>;
|
|
13
|
+
}, z.core.$strip>;
|
|
14
|
+
type Response = z.infer<typeof ResponseSchema>;
|
|
15
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.HtmlPageBuilderCanvasJobLinkedCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const command_response_schema_1 = require("../../common/models/command-response.schema");
|
|
6
|
+
var HtmlPageBuilderCanvasJobLinkedCommand;
|
|
7
|
+
(function (HtmlPageBuilderCanvasJobLinkedCommand) {
|
|
8
|
+
HtmlPageBuilderCanvasJobLinkedCommand.RequestSchema = zod_1.z.object({ jobId: zod_1.z.uuid(), userId: zod_1.z.uuid() });
|
|
9
|
+
HtmlPageBuilderCanvasJobLinkedCommand.ResponseSchema = (0, command_response_schema_1.ICommandResponseSchema)(zod_1.z.boolean());
|
|
10
|
+
})(HtmlPageBuilderCanvasJobLinkedCommand || (exports.HtmlPageBuilderCanvasJobLinkedCommand = HtmlPageBuilderCanvasJobLinkedCommand = {}));
|
|
@@ -30,6 +30,9 @@ export declare namespace HtmlPageBuilderExecuteCommand {
|
|
|
30
30
|
answer: z.ZodString;
|
|
31
31
|
}, z.core.$strip>>>;
|
|
32
32
|
mock: z.ZodOptional<z.ZodBoolean>;
|
|
33
|
+
clarificationFallback: z.ZodOptional<z.ZodBoolean>;
|
|
34
|
+
clarificationPaid: z.ZodOptional<z.ZodBoolean>;
|
|
35
|
+
canvasLinked: z.ZodOptional<z.ZodBoolean>;
|
|
33
36
|
}, z.core.$strip>;
|
|
34
37
|
pagesCount: z.ZodNumber;
|
|
35
38
|
styleId: z.ZodUUID;
|
|
@@ -139,6 +142,9 @@ export declare namespace HtmlPageBuilderExecuteCommand {
|
|
|
139
142
|
answer: string;
|
|
140
143
|
}[];
|
|
141
144
|
mock?: boolean | undefined;
|
|
145
|
+
clarificationFallback?: boolean | undefined;
|
|
146
|
+
clarificationPaid?: boolean | undefined;
|
|
147
|
+
canvasLinked?: boolean | undefined;
|
|
142
148
|
};
|
|
143
149
|
isDeleted: boolean;
|
|
144
150
|
createdAt: Date;
|
|
@@ -251,6 +257,9 @@ export declare namespace HtmlPageBuilderExecuteCommand {
|
|
|
251
257
|
answer: string;
|
|
252
258
|
}[];
|
|
253
259
|
mock?: boolean | undefined;
|
|
260
|
+
clarificationFallback?: boolean | undefined;
|
|
261
|
+
clarificationPaid?: boolean | undefined;
|
|
262
|
+
canvasLinked?: boolean | undefined;
|
|
254
263
|
};
|
|
255
264
|
isDeleted: boolean;
|
|
256
265
|
createdAt: Date;
|
|
@@ -109,6 +109,9 @@ export declare namespace HtmlPageBuilderRefineCommand {
|
|
|
109
109
|
answer: string;
|
|
110
110
|
}[];
|
|
111
111
|
mock?: boolean | undefined;
|
|
112
|
+
clarificationFallback?: boolean | undefined;
|
|
113
|
+
clarificationPaid?: boolean | undefined;
|
|
114
|
+
canvasLinked?: boolean | undefined;
|
|
112
115
|
};
|
|
113
116
|
isDeleted: boolean;
|
|
114
117
|
createdAt: Date;
|
|
@@ -221,6 +224,9 @@ export declare namespace HtmlPageBuilderRefineCommand {
|
|
|
221
224
|
answer: string;
|
|
222
225
|
}[];
|
|
223
226
|
mock?: boolean | undefined;
|
|
227
|
+
clarificationFallback?: boolean | undefined;
|
|
228
|
+
clarificationPaid?: boolean | undefined;
|
|
229
|
+
canvasLinked?: boolean | undefined;
|
|
224
230
|
};
|
|
225
231
|
isDeleted: boolean;
|
|
226
232
|
createdAt: Date;
|
|
@@ -110,6 +110,9 @@ export declare namespace HtmlPageBuilderRetryBuildCommand {
|
|
|
110
110
|
answer: string;
|
|
111
111
|
}[];
|
|
112
112
|
mock?: boolean | undefined;
|
|
113
|
+
clarificationFallback?: boolean | undefined;
|
|
114
|
+
clarificationPaid?: boolean | undefined;
|
|
115
|
+
canvasLinked?: boolean | undefined;
|
|
113
116
|
};
|
|
114
117
|
isDeleted: boolean;
|
|
115
118
|
createdAt: Date;
|
|
@@ -222,6 +225,9 @@ export declare namespace HtmlPageBuilderRetryBuildCommand {
|
|
|
222
225
|
answer: string;
|
|
223
226
|
}[];
|
|
224
227
|
mock?: boolean | undefined;
|
|
228
|
+
clarificationFallback?: boolean | undefined;
|
|
229
|
+
clarificationPaid?: boolean | undefined;
|
|
230
|
+
canvasLinked?: boolean | undefined;
|
|
225
231
|
};
|
|
226
232
|
isDeleted: boolean;
|
|
227
233
|
createdAt: Date;
|
|
@@ -108,6 +108,9 @@ export declare namespace HtmlPageBuilderRetryRefineCommand {
|
|
|
108
108
|
answer: string;
|
|
109
109
|
}[];
|
|
110
110
|
mock?: boolean | undefined;
|
|
111
|
+
clarificationFallback?: boolean | undefined;
|
|
112
|
+
clarificationPaid?: boolean | undefined;
|
|
113
|
+
canvasLinked?: boolean | undefined;
|
|
111
114
|
};
|
|
112
115
|
isDeleted: boolean;
|
|
113
116
|
createdAt: Date;
|
|
@@ -220,6 +223,9 @@ export declare namespace HtmlPageBuilderRetryRefineCommand {
|
|
|
220
223
|
answer: string;
|
|
221
224
|
}[];
|
|
222
225
|
mock?: boolean | undefined;
|
|
226
|
+
clarificationFallback?: boolean | undefined;
|
|
227
|
+
clarificationPaid?: boolean | undefined;
|
|
228
|
+
canvasLinked?: boolean | undefined;
|
|
223
229
|
};
|
|
224
230
|
isDeleted: boolean;
|
|
225
231
|
createdAt: Date;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export * from './html-page-builder-answer-questions.command';
|
|
2
|
+
export * from './html-page-builder-canvas-job-linked.command';
|
|
2
3
|
export * from './get-html-page-builder-price-calculation-data.command';
|
|
3
4
|
export * from './html-page-builder-execute.command';
|
|
4
5
|
export * from './html-page-builder-retry-build.command';
|
|
@@ -15,6 +15,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./html-page-builder-answer-questions.command"), exports);
|
|
18
|
+
__exportStar(require("./html-page-builder-canvas-job-linked.command"), exports);
|
|
18
19
|
__exportStar(require("./get-html-page-builder-price-calculation-data.command"), exports);
|
|
19
20
|
__exportStar(require("./html-page-builder-execute.command"), exports);
|
|
20
21
|
__exportStar(require("./html-page-builder-retry-build.command"), exports);
|
package/build/html-page-builder/commands/update-html-page-builder-session-favorite.command.d.ts
CHANGED
|
@@ -106,6 +106,9 @@ export declare namespace UpdateHtmlPageBuilderSessionFavoriteCommand {
|
|
|
106
106
|
answer: string;
|
|
107
107
|
}[];
|
|
108
108
|
mock?: boolean | undefined;
|
|
109
|
+
clarificationFallback?: boolean | undefined;
|
|
110
|
+
clarificationPaid?: boolean | undefined;
|
|
111
|
+
canvasLinked?: boolean | undefined;
|
|
109
112
|
};
|
|
110
113
|
isDeleted: boolean;
|
|
111
114
|
createdAt: Date;
|
|
@@ -218,6 +221,9 @@ export declare namespace UpdateHtmlPageBuilderSessionFavoriteCommand {
|
|
|
218
221
|
answer: string;
|
|
219
222
|
}[];
|
|
220
223
|
mock?: boolean | undefined;
|
|
224
|
+
clarificationFallback?: boolean | undefined;
|
|
225
|
+
clarificationPaid?: boolean | undefined;
|
|
226
|
+
canvasLinked?: boolean | undefined;
|
|
221
227
|
};
|
|
222
228
|
isDeleted: boolean;
|
|
223
229
|
createdAt: Date;
|
package/build/html-page-builder/commands/update-html-page-builder-session-reaction.command.d.ts
CHANGED
|
@@ -111,6 +111,9 @@ export declare namespace UpdateHtmlPageBuilderSessionReactionCommand {
|
|
|
111
111
|
answer: string;
|
|
112
112
|
}[];
|
|
113
113
|
mock?: boolean | undefined;
|
|
114
|
+
clarificationFallback?: boolean | undefined;
|
|
115
|
+
clarificationPaid?: boolean | undefined;
|
|
116
|
+
canvasLinked?: boolean | undefined;
|
|
114
117
|
};
|
|
115
118
|
isDeleted: boolean;
|
|
116
119
|
createdAt: Date;
|
|
@@ -223,6 +226,9 @@ export declare namespace UpdateHtmlPageBuilderSessionReactionCommand {
|
|
|
223
226
|
answer: string;
|
|
224
227
|
}[];
|
|
225
228
|
mock?: boolean | undefined;
|
|
229
|
+
clarificationFallback?: boolean | undefined;
|
|
230
|
+
clarificationPaid?: boolean | undefined;
|
|
231
|
+
canvasLinked?: boolean | undefined;
|
|
226
232
|
};
|
|
227
233
|
isDeleted: boolean;
|
|
228
234
|
createdAt: Date;
|
package/build/html-page-builder/commands/update-html-page-builder-session-title.command.d.ts
CHANGED
|
@@ -106,6 +106,9 @@ export declare namespace UpdateHtmlPageBuilderSessionTitleCommand {
|
|
|
106
106
|
answer: string;
|
|
107
107
|
}[];
|
|
108
108
|
mock?: boolean | undefined;
|
|
109
|
+
clarificationFallback?: boolean | undefined;
|
|
110
|
+
clarificationPaid?: boolean | undefined;
|
|
111
|
+
canvasLinked?: boolean | undefined;
|
|
109
112
|
};
|
|
110
113
|
isDeleted: boolean;
|
|
111
114
|
createdAt: Date;
|
|
@@ -218,6 +221,9 @@ export declare namespace UpdateHtmlPageBuilderSessionTitleCommand {
|
|
|
218
221
|
answer: string;
|
|
219
222
|
}[];
|
|
220
223
|
mock?: boolean | undefined;
|
|
224
|
+
clarificationFallback?: boolean | undefined;
|
|
225
|
+
clarificationPaid?: boolean | undefined;
|
|
226
|
+
canvasLinked?: boolean | undefined;
|
|
221
227
|
};
|
|
222
228
|
isDeleted: boolean;
|
|
223
229
|
createdAt: Date;
|
|
@@ -18,6 +18,9 @@ export declare const HtmlPageBuilderJobParamsSchema: z.ZodObject<{
|
|
|
18
18
|
answer: z.ZodString;
|
|
19
19
|
}, z.core.$strip>>>;
|
|
20
20
|
mock: z.ZodOptional<z.ZodBoolean>;
|
|
21
|
+
clarificationFallback: z.ZodOptional<z.ZodBoolean>;
|
|
22
|
+
clarificationPaid: z.ZodOptional<z.ZodBoolean>;
|
|
23
|
+
canvasLinked: z.ZodOptional<z.ZodBoolean>;
|
|
21
24
|
}, z.core.$strip>;
|
|
22
25
|
export type HtmlPageBuilderJobParams = z.infer<typeof HtmlPageBuilderJobParamsSchema>;
|
|
23
26
|
/**
|
|
@@ -102,6 +105,9 @@ export declare const HtmlPageBuilderJobSchema: z.ZodObject<{
|
|
|
102
105
|
answer: z.ZodString;
|
|
103
106
|
}, z.core.$strip>>>;
|
|
104
107
|
mock: z.ZodOptional<z.ZodBoolean>;
|
|
108
|
+
clarificationFallback: z.ZodOptional<z.ZodBoolean>;
|
|
109
|
+
clarificationPaid: z.ZodOptional<z.ZodBoolean>;
|
|
110
|
+
canvasLinked: z.ZodOptional<z.ZodBoolean>;
|
|
105
111
|
}, z.core.$strip>;
|
|
106
112
|
isDeleted: z.ZodBoolean;
|
|
107
113
|
createdAt: z.ZodDate;
|
|
@@ -16,6 +16,11 @@ exports.HtmlPageBuilderJobParamsSchema = zod_1.z.object({
|
|
|
16
16
|
* `execute`, and `shouldUseMock` still refuses it outside dev.
|
|
17
17
|
*/
|
|
18
18
|
mock: zod_1.z.boolean().optional(),
|
|
19
|
+
/** Persisted server decision; an empty questions list alone never authorizes BUILD. */
|
|
20
|
+
clarificationFallback: zod_1.z.boolean().optional(),
|
|
21
|
+
/** Durable guards for settling and linking an automatic canvas fallback. */
|
|
22
|
+
clarificationPaid: zod_1.z.boolean().optional(),
|
|
23
|
+
canvasLinked: zod_1.z.boolean().optional(),
|
|
19
24
|
});
|
|
20
25
|
/**
|
|
21
26
|
* Addresses of the published files of this generation, for reading the source as files rather
|
|
@@ -98,6 +98,9 @@ export declare const HtmlPageBuilderSessionSchema: z.ZodObject<{
|
|
|
98
98
|
answer: z.ZodString;
|
|
99
99
|
}, z.core.$strip>>>;
|
|
100
100
|
mock: z.ZodOptional<z.ZodBoolean>;
|
|
101
|
+
clarificationFallback: z.ZodOptional<z.ZodBoolean>;
|
|
102
|
+
clarificationPaid: z.ZodOptional<z.ZodBoolean>;
|
|
103
|
+
canvasLinked: z.ZodOptional<z.ZodBoolean>;
|
|
101
104
|
}, z.core.$strip>;
|
|
102
105
|
isDeleted: z.ZodBoolean;
|
|
103
106
|
createdAt: z.ZodDate;
|
|
@@ -105,6 +105,9 @@ export declare namespace FindHtmlPageBuilderSessionByIdQuery {
|
|
|
105
105
|
answer: string;
|
|
106
106
|
}[];
|
|
107
107
|
mock?: boolean | undefined;
|
|
108
|
+
clarificationFallback?: boolean | undefined;
|
|
109
|
+
clarificationPaid?: boolean | undefined;
|
|
110
|
+
canvasLinked?: boolean | undefined;
|
|
108
111
|
};
|
|
109
112
|
isDeleted: boolean;
|
|
110
113
|
createdAt: Date;
|
|
@@ -217,6 +220,9 @@ export declare namespace FindHtmlPageBuilderSessionByIdQuery {
|
|
|
217
220
|
answer: string;
|
|
218
221
|
}[];
|
|
219
222
|
mock?: boolean | undefined;
|
|
223
|
+
clarificationFallback?: boolean | undefined;
|
|
224
|
+
clarificationPaid?: boolean | undefined;
|
|
225
|
+
canvasLinked?: boolean | undefined;
|
|
220
226
|
};
|
|
221
227
|
isDeleted: boolean;
|
|
222
228
|
createdAt: Date;
|
|
@@ -115,6 +115,9 @@ export declare namespace FindHtmlPageBuilderSessionsQuery {
|
|
|
115
115
|
answer: string;
|
|
116
116
|
}[];
|
|
117
117
|
mock?: boolean | undefined;
|
|
118
|
+
clarificationFallback?: boolean | undefined;
|
|
119
|
+
clarificationPaid?: boolean | undefined;
|
|
120
|
+
canvasLinked?: boolean | undefined;
|
|
118
121
|
};
|
|
119
122
|
isDeleted: boolean;
|
|
120
123
|
createdAt: Date;
|
|
@@ -232,6 +235,9 @@ export declare namespace FindHtmlPageBuilderSessionsQuery {
|
|
|
232
235
|
answer: string;
|
|
233
236
|
}[];
|
|
234
237
|
mock?: boolean | undefined;
|
|
238
|
+
clarificationFallback?: boolean | undefined;
|
|
239
|
+
clarificationPaid?: boolean | undefined;
|
|
240
|
+
canvasLinked?: boolean | undefined;
|
|
235
241
|
};
|
|
236
242
|
isDeleted: boolean;
|
|
237
243
|
createdAt: Date;
|
|
@@ -10,6 +10,7 @@ export declare const HTML_PAGE_BUILDER_AMQP_ROUTES: {
|
|
|
10
10
|
readonly GET_SOURCES: 'tools.html-page-builder.jobs.sources.rpc';
|
|
11
11
|
readonly GET_PRICE_CALCULATION_DATA: 'tools.html-page-builder.get-price-calculation-data.rpc';
|
|
12
12
|
readonly ANSWER_QUESTIONS: 'tools.html-page-builder.jobs.answer.rpc';
|
|
13
|
+
readonly CANVAS_JOB_LINKED: 'tools.html-page-builder.jobs.canvas-linked.rpc';
|
|
13
14
|
readonly LIST_SESSIONS: 'tools.html-page-builder.sessions.list.rpc';
|
|
14
15
|
readonly GET_SESSION: 'tools.html-page-builder.sessions.get.rpc';
|
|
15
16
|
readonly UPDATE_SESSION_TITLE: 'tools.html-page-builder.sessions.update-title.rpc';
|
|
@@ -15,6 +15,7 @@ exports.HTML_PAGE_BUILDER_AMQP_ROUTES = {
|
|
|
15
15
|
GET_PRICE_CALCULATION_DATA: 'tools.html-page-builder.get-price-calculation-data.rpc',
|
|
16
16
|
// Free: the run it continues was already paid for by EXECUTE
|
|
17
17
|
ANSWER_QUESTIONS: 'tools.html-page-builder.jobs.answer.rpc',
|
|
18
|
+
CANVAS_JOB_LINKED: 'tools.html-page-builder.jobs.canvas-linked.rpc',
|
|
18
19
|
LIST_SESSIONS: 'tools.html-page-builder.sessions.list.rpc',
|
|
19
20
|
GET_SESSION: 'tools.html-page-builder.sessions.get.rpc',
|
|
20
21
|
UPDATE_SESSION_TITLE: 'tools.html-page-builder.sessions.update-title.rpc',
|