@purpleschool/gptbot 0.20.15 → 0.20.17-stage-2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (52) hide show
  1. package/build/api/controllers/http/html-page-builder.d.ts +1 -0
  2. package/build/api/controllers/http/html-page-builder.js +1 -0
  3. package/build/api/routes.d.ts +2 -0
  4. package/build/api/routes.js +2 -0
  5. package/build/commands/subscription/get-subscriptions-summary.command.d.ts +3 -0
  6. package/build/commands/tools/html-page-builder/answer-html-page-builder-questions.command.d.ts +74 -0
  7. package/build/commands/tools/html-page-builder/execute-html-page-builder.command.d.ts +75 -0
  8. package/build/commands/tools/html-page-builder/execute-html-page-builder.command.js +2 -0
  9. package/build/commands/tools/html-page-builder/find-html-page-builder-session-by-uuid.command.d.ts +74 -0
  10. package/build/commands/tools/html-page-builder/find-html-page-builder-sessions.command.d.ts +74 -0
  11. package/build/commands/tools/html-page-builder/get-html-page-builder-price.command.d.ts +1 -0
  12. package/build/commands/tools/html-page-builder/get-html-page-builder-price.command.js +2 -0
  13. package/build/commands/tools/html-page-builder/html-page-builder-image-action.command.d.ts +212 -0
  14. package/build/commands/tools/html-page-builder/html-page-builder-image-action.command.js +12 -0
  15. package/build/commands/tools/html-page-builder/index.d.ts +1 -0
  16. package/build/commands/tools/html-page-builder/index.js +1 -0
  17. package/build/commands/tools/html-page-builder/refine-html-page-builder.command.d.ts +74 -0
  18. package/build/commands/tools/html-page-builder/retry-html-page-builder-build.command.d.ts +74 -0
  19. package/build/commands/tools/html-page-builder/retry-html-page-builder-refine.command.d.ts +74 -0
  20. package/build/commands/tools/html-page-builder/update-html-page-builder-session-favorite.command.d.ts +74 -0
  21. package/build/commands/tools/html-page-builder/update-html-page-builder-session-reaction.command.d.ts +74 -0
  22. package/build/commands/tools/html-page-builder/update-html-page-builder-session-title.command.d.ts +74 -0
  23. package/build/commands/tools/presentation/export-presentation-as-pptx.command.d.ts +10 -0
  24. package/build/commands/tools/presentation/find-presentation-by-uuid.command.d.ts +6 -0
  25. package/build/commands/tools/presentation/generate-and-insert-slide.command.d.ts +6 -0
  26. package/build/commands/tools/presentation/update-presentation-slides.command.d.ts +6 -0
  27. package/build/commands/tools/presentation/update-slide.command.d.ts +18 -0
  28. package/build/commands/user/get-user-subscriptions.command.d.ts +1 -0
  29. package/build/commands/user-to-subscription/get-user-to-subscription-by-uuid.command.d.ts +1 -0
  30. package/build/commands/user-to-subscription/get-user-to-subscriptions.command.d.ts +1 -0
  31. package/build/commands/user-to-subscription/update-user-to-subscription.command.d.ts +1 -0
  32. package/build/models/tools/html-page-builder/html-page-builder-image.schema.d.ts +40 -0
  33. package/build/models/tools/html-page-builder/html-page-builder-image.schema.js +20 -0
  34. package/build/models/tools/html-page-builder/html-page-builder-job.schema.d.ts +82 -0
  35. package/build/models/tools/html-page-builder/html-page-builder-job.schema.js +6 -0
  36. package/build/models/tools/html-page-builder/html-page-builder-page.schema.d.ts +66 -0
  37. package/build/models/tools/html-page-builder/html-page-builder-page.schema.js +2 -0
  38. package/build/models/tools/html-page-builder/html-page-builder-session.schema.d.ts +74 -0
  39. package/build/models/tools/html-page-builder/index.d.ts +1 -0
  40. package/build/models/tools/html-page-builder/index.js +1 -0
  41. package/build/models/tools/presentation/pptx-export-payload.schema.d.ts +43 -1
  42. package/build/models/tools/presentation/pptx-export-payload.schema.js +21 -2
  43. package/build/models/tools/presentation/presentation.schema.d.ts +6 -0
  44. package/build/models/tools/presentation/slide-content-edit.schema.d.ts +12 -0
  45. package/build/models/tools/presentation/slide-content-edit.schema.js +3 -0
  46. package/build/models/tools/presentation/slide-content.schema.d.ts +15 -0
  47. package/build/models/tools/presentation/slide-content.schema.js +13 -0
  48. package/build/models/tools/presentation/slide.schema.d.ts +18 -0
  49. package/build/models/user-to-subscription.schema.d.ts +3 -0
  50. package/build/models/user-to-subscription.schema.js +2 -0
  51. package/build/models/user.schema.d.ts +1 -0
  52. package/package.json +2 -2
@@ -0,0 +1,212 @@
1
+ import { z } from 'zod';
2
+ export declare namespace HtmlPageBuilderImageActionCommand {
3
+ const PROMPT_MAX_LENGTH = 2000;
4
+ const RequestSchema: z.ZodObject<{
5
+ sessionId: z.ZodUUID;
6
+ baseJobId: z.ZodUUID;
7
+ operationId: z.ZodUUID;
8
+ action: z.ZodObject<{
9
+ pageSlug: z.ZodString;
10
+ slotId: z.ZodString;
11
+ mode: z.ZodEnum<{
12
+ generate: "generate";
13
+ regenerate: "regenerate";
14
+ replace: "replace";
15
+ }>;
16
+ prompt: z.ZodOptional<z.ZodString>;
17
+ fileId: z.ZodOptional<z.ZodUUID>;
18
+ billingStatus: z.ZodOptional<z.ZodEnum<{
19
+ charged: "charged";
20
+ not_charged: "not_charged";
21
+ pending: "pending";
22
+ }>>;
23
+ }, z.core.$strip>;
24
+ mock: z.ZodOptional<z.ZodBoolean>;
25
+ }, z.core.$strip>;
26
+ type Request = z.infer<typeof RequestSchema>;
27
+ const ResponseSchema: z.ZodObject<{
28
+ data: z.ZodObject<{
29
+ uuid: z.ZodUUID;
30
+ title: z.ZodString;
31
+ status: z.ZodEnum<typeof import("../../..").HTML_PAGE_BUILDER_SESSION_STATUS>;
32
+ currentHtml: z.ZodOptional<z.ZodNullable<z.ZodString>>;
33
+ currentJobId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
34
+ currentJob: z.ZodOptional<z.ZodNullable<z.ZodObject<{
35
+ uuid: z.ZodUUID;
36
+ status: z.ZodEnum<typeof import("../../..").TOOL_JOB_STATUS>;
37
+ previewUrl: z.ZodOptional<z.ZodString>;
38
+ files: z.ZodOptional<z.ZodObject<{
39
+ stylesheet: z.ZodString;
40
+ script: z.ZodString;
41
+ pages: z.ZodArray<z.ZodObject<{
42
+ slug: z.ZodString;
43
+ url: z.ZodString;
44
+ }, z.core.$strip>>;
45
+ }, z.core.$strip>>;
46
+ error: z.ZodNullable<z.ZodString>;
47
+ createdAt: z.ZodDate;
48
+ completedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
49
+ }, z.core.$strip>>>;
50
+ lastUsedModelId: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
51
+ reaction: z.ZodNullable<z.ZodEnum<typeof import("../../..").USER_REACTION>>;
52
+ dislikeReason: z.ZodNullable<z.ZodString>;
53
+ jobs: z.ZodArray<z.ZodObject<{
54
+ uuid: z.ZodUUID;
55
+ sessionId: z.ZodUUID;
56
+ modelId: z.ZodUUID;
57
+ userPrompt: z.ZodString;
58
+ title: z.ZodString;
59
+ generatedHtml: z.ZodOptional<z.ZodNullable<z.ZodString>>;
60
+ generatedPages: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
61
+ slug: z.ZodString;
62
+ title: z.ZodString;
63
+ html: z.ZodString;
64
+ order: z.ZodNumber;
65
+ isHome: z.ZodBoolean;
66
+ imageSlots: z.ZodOptional<z.ZodArray<z.ZodObject<{
67
+ id: z.ZodString;
68
+ url: z.ZodNullable<z.ZodURL>;
69
+ status: z.ZodEnum<{
70
+ completed: "completed";
71
+ empty: "empty";
72
+ failed: "failed";
73
+ pending: "pending";
74
+ }>;
75
+ operationState: z.ZodOptional<z.ZodEnum<{
76
+ completed: "completed";
77
+ failed: "failed";
78
+ queued: "queued";
79
+ running: "running";
80
+ }>>;
81
+ billingStatus: z.ZodOptional<z.ZodEnum<{
82
+ charged: "charged";
83
+ not_charged: "not_charged";
84
+ pending: "pending";
85
+ }>>;
86
+ prompt: z.ZodOptional<z.ZodString>;
87
+ }, z.core.$strip>>>;
88
+ }, z.core.$strip>>>>;
89
+ previewUrl: z.ZodOptional<z.ZodString>;
90
+ files: z.ZodOptional<z.ZodObject<{
91
+ stylesheet: z.ZodString;
92
+ script: z.ZodString;
93
+ pages: z.ZodArray<z.ZodObject<{
94
+ slug: z.ZodString;
95
+ url: z.ZodString;
96
+ }, z.core.$strip>>;
97
+ }, z.core.$strip>>;
98
+ status: z.ZodEnum<typeof import("../../..").TOOL_JOB_STATUS>;
99
+ generationStarted: z.ZodBoolean;
100
+ baseJobId: z.ZodDefault<z.ZodNullable<z.ZodUUID>>;
101
+ error: z.ZodNullable<z.ZodString>;
102
+ price: z.ZodNumber;
103
+ questions: z.ZodDefault<z.ZodArray<z.ZodObject<{
104
+ id: z.ZodString;
105
+ question: z.ZodString;
106
+ type: z.ZodEnum<typeof import("../../..").HTML_PAGE_BUILDER_QUESTION_TYPE>;
107
+ options: z.ZodArray<z.ZodString>;
108
+ recommendedAnswer: z.ZodString;
109
+ allowCustomAnswer: z.ZodBoolean;
110
+ }, z.core.$strip>>>;
111
+ answers: z.ZodDefault<z.ZodArray<z.ZodObject<{
112
+ questionId: z.ZodString;
113
+ answers: z.ZodArray<z.ZodString>;
114
+ }, z.core.$strip>>>;
115
+ styleId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
116
+ fontId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
117
+ accentColor: z.ZodDefault<z.ZodString>;
118
+ userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
119
+ unregisteredUserId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
120
+ params: z.ZodObject<{
121
+ withImages: z.ZodOptional<z.ZodBoolean>;
122
+ imageOriginId: z.ZodOptional<z.ZodUUID>;
123
+ imagePhase: z.ZodOptional<z.ZodObject<{
124
+ originId: z.ZodUUID;
125
+ settled: z.ZodBoolean;
126
+ operations: z.ZodArray<z.ZodObject<{
127
+ pageSlug: z.ZodString;
128
+ slotId: z.ZodString;
129
+ state: z.ZodEnum<{
130
+ completed: "completed";
131
+ failed: "failed";
132
+ queued: "queued";
133
+ running: "running";
134
+ }>;
135
+ }, z.core.$strip>>;
136
+ }, z.core.$strip>>;
137
+ imageAction: z.ZodOptional<z.ZodObject<{
138
+ pageSlug: z.ZodString;
139
+ slotId: z.ZodString;
140
+ mode: z.ZodEnum<{
141
+ generate: "generate";
142
+ regenerate: "regenerate";
143
+ replace: "replace";
144
+ }>;
145
+ billingStatus: z.ZodOptional<z.ZodEnum<{
146
+ charged: "charged";
147
+ not_charged: "not_charged";
148
+ pending: "pending";
149
+ }>>;
150
+ }, z.core.$strip>>;
151
+ attachedFiles: z.ZodArray<z.ZodObject<{
152
+ uuid: z.ZodString;
153
+ url: z.ZodString;
154
+ name: z.ZodString;
155
+ mimeType: z.ZodString;
156
+ type: z.ZodString;
157
+ size: z.ZodNumber;
158
+ duration: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
159
+ content: z.ZodNullable<z.ZodOptional<z.ZodString>>;
160
+ contentLength: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
161
+ }, z.core.$strip>>;
162
+ pagesCount: z.ZodOptional<z.ZodNumber>;
163
+ clarifications: z.ZodDefault<z.ZodArray<z.ZodObject<{
164
+ question: z.ZodString;
165
+ answer: z.ZodString;
166
+ }, z.core.$strip>>>;
167
+ clarificationFallback: z.ZodOptional<z.ZodBoolean>;
168
+ }, z.core.$strip>;
169
+ isDeleted: z.ZodBoolean;
170
+ createdAt: z.ZodDate;
171
+ completedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
172
+ updatedAt: z.ZodDate;
173
+ }, z.core.$strip>>;
174
+ pages: z.ZodArray<z.ZodObject<{
175
+ slug: z.ZodString;
176
+ title: z.ZodString;
177
+ html: z.ZodString;
178
+ order: z.ZodNumber;
179
+ isHome: z.ZodBoolean;
180
+ imageSlots: z.ZodOptional<z.ZodArray<z.ZodObject<{
181
+ id: z.ZodString;
182
+ url: z.ZodNullable<z.ZodURL>;
183
+ status: z.ZodEnum<{
184
+ completed: "completed";
185
+ empty: "empty";
186
+ failed: "failed";
187
+ pending: "pending";
188
+ }>;
189
+ operationState: z.ZodOptional<z.ZodEnum<{
190
+ completed: "completed";
191
+ failed: "failed";
192
+ queued: "queued";
193
+ running: "running";
194
+ }>>;
195
+ billingStatus: z.ZodOptional<z.ZodEnum<{
196
+ charged: "charged";
197
+ not_charged: "not_charged";
198
+ pending: "pending";
199
+ }>>;
200
+ prompt: z.ZodOptional<z.ZodString>;
201
+ }, z.core.$strip>>>;
202
+ }, z.core.$strip>>;
203
+ userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
204
+ unregisteredUserId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
205
+ isFavorite: z.ZodBoolean;
206
+ isDeleted: z.ZodBoolean;
207
+ createdAt: z.ZodDate;
208
+ updatedAt: z.ZodDate;
209
+ }, z.core.$strip>;
210
+ }, z.core.$strip>;
211
+ type Response = z.infer<typeof ResponseSchema>;
212
+ }
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.HtmlPageBuilderImageActionCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ const gptbot_tools_1 = require("@purpleschool/gptbot-tools");
6
+ const models_1 = require("../../../models");
7
+ var HtmlPageBuilderImageActionCommand;
8
+ (function (HtmlPageBuilderImageActionCommand) {
9
+ HtmlPageBuilderImageActionCommand.PROMPT_MAX_LENGTH = gptbot_tools_1.HTML_PAGE_BUILDER_IMAGE_PROMPT_MAX_LENGTH;
10
+ HtmlPageBuilderImageActionCommand.RequestSchema = gptbot_tools_1.HtmlPageBuilderImageActionCommand.BodySchema;
11
+ HtmlPageBuilderImageActionCommand.ResponseSchema = zod_1.z.object({ data: models_1.HtmlPageBuilderSessionSchema });
12
+ })(HtmlPageBuilderImageActionCommand || (exports.HtmlPageBuilderImageActionCommand = HtmlPageBuilderImageActionCommand = {}));
@@ -21,3 +21,4 @@ export * from './retry-html-page-builder-refine.command';
21
21
  export * from './download-html-page-builder-zip.command';
22
22
  export * from './publish-html-page-builder.command';
23
23
  export * from './get-html-page-builder-sources.command';
24
+ export * from './html-page-builder-image-action.command';
@@ -37,3 +37,4 @@ __exportStar(require("./retry-html-page-builder-refine.command"), exports);
37
37
  __exportStar(require("./download-html-page-builder-zip.command"), exports);
38
38
  __exportStar(require("./publish-html-page-builder.command"), exports);
39
39
  __exportStar(require("./get-html-page-builder-sources.command"), exports);
40
+ __exportStar(require("./html-page-builder-image-action.command"), exports);
@@ -48,6 +48,28 @@ export declare namespace RefineHtmlPageBuilderCommand {
48
48
  html: z.ZodString;
49
49
  order: z.ZodNumber;
50
50
  isHome: z.ZodBoolean;
51
+ imageSlots: z.ZodOptional<z.ZodArray<z.ZodObject<{
52
+ id: z.ZodString;
53
+ url: z.ZodNullable<z.ZodURL>;
54
+ status: z.ZodEnum<{
55
+ completed: "completed";
56
+ empty: "empty";
57
+ failed: "failed";
58
+ pending: "pending";
59
+ }>;
60
+ operationState: z.ZodOptional<z.ZodEnum<{
61
+ completed: "completed";
62
+ failed: "failed";
63
+ queued: "queued";
64
+ running: "running";
65
+ }>>;
66
+ billingStatus: z.ZodOptional<z.ZodEnum<{
67
+ charged: "charged";
68
+ not_charged: "not_charged";
69
+ pending: "pending";
70
+ }>>;
71
+ prompt: z.ZodOptional<z.ZodString>;
72
+ }, z.core.$strip>>>;
51
73
  }, z.core.$strip>>>>;
52
74
  previewUrl: z.ZodOptional<z.ZodString>;
53
75
  files: z.ZodOptional<z.ZodObject<{
@@ -81,6 +103,36 @@ export declare namespace RefineHtmlPageBuilderCommand {
81
103
  userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
82
104
  unregisteredUserId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
83
105
  params: z.ZodObject<{
106
+ withImages: z.ZodOptional<z.ZodBoolean>;
107
+ imageOriginId: z.ZodOptional<z.ZodUUID>;
108
+ imagePhase: z.ZodOptional<z.ZodObject<{
109
+ originId: z.ZodUUID;
110
+ settled: z.ZodBoolean;
111
+ operations: z.ZodArray<z.ZodObject<{
112
+ pageSlug: z.ZodString;
113
+ slotId: z.ZodString;
114
+ state: z.ZodEnum<{
115
+ completed: "completed";
116
+ failed: "failed";
117
+ queued: "queued";
118
+ running: "running";
119
+ }>;
120
+ }, z.core.$strip>>;
121
+ }, z.core.$strip>>;
122
+ imageAction: z.ZodOptional<z.ZodObject<{
123
+ pageSlug: z.ZodString;
124
+ slotId: z.ZodString;
125
+ mode: z.ZodEnum<{
126
+ generate: "generate";
127
+ regenerate: "regenerate";
128
+ replace: "replace";
129
+ }>;
130
+ billingStatus: z.ZodOptional<z.ZodEnum<{
131
+ charged: "charged";
132
+ not_charged: "not_charged";
133
+ pending: "pending";
134
+ }>>;
135
+ }, z.core.$strip>>;
84
136
  attachedFiles: z.ZodArray<z.ZodObject<{
85
137
  uuid: z.ZodString;
86
138
  url: z.ZodString;
@@ -110,6 +162,28 @@ export declare namespace RefineHtmlPageBuilderCommand {
110
162
  html: z.ZodString;
111
163
  order: z.ZodNumber;
112
164
  isHome: z.ZodBoolean;
165
+ imageSlots: z.ZodOptional<z.ZodArray<z.ZodObject<{
166
+ id: z.ZodString;
167
+ url: z.ZodNullable<z.ZodURL>;
168
+ status: z.ZodEnum<{
169
+ completed: "completed";
170
+ empty: "empty";
171
+ failed: "failed";
172
+ pending: "pending";
173
+ }>;
174
+ operationState: z.ZodOptional<z.ZodEnum<{
175
+ completed: "completed";
176
+ failed: "failed";
177
+ queued: "queued";
178
+ running: "running";
179
+ }>>;
180
+ billingStatus: z.ZodOptional<z.ZodEnum<{
181
+ charged: "charged";
182
+ not_charged: "not_charged";
183
+ pending: "pending";
184
+ }>>;
185
+ prompt: z.ZodOptional<z.ZodString>;
186
+ }, z.core.$strip>>>;
113
187
  }, z.core.$strip>>;
114
188
  userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
115
189
  unregisteredUserId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -47,6 +47,28 @@ export declare namespace RetryHtmlPageBuilderBuildCommand {
47
47
  html: z.ZodString;
48
48
  order: z.ZodNumber;
49
49
  isHome: z.ZodBoolean;
50
+ imageSlots: z.ZodOptional<z.ZodArray<z.ZodObject<{
51
+ id: z.ZodString;
52
+ url: z.ZodNullable<z.ZodURL>;
53
+ status: z.ZodEnum<{
54
+ completed: "completed";
55
+ empty: "empty";
56
+ failed: "failed";
57
+ pending: "pending";
58
+ }>;
59
+ operationState: z.ZodOptional<z.ZodEnum<{
60
+ completed: "completed";
61
+ failed: "failed";
62
+ queued: "queued";
63
+ running: "running";
64
+ }>>;
65
+ billingStatus: z.ZodOptional<z.ZodEnum<{
66
+ charged: "charged";
67
+ not_charged: "not_charged";
68
+ pending: "pending";
69
+ }>>;
70
+ prompt: z.ZodOptional<z.ZodString>;
71
+ }, z.core.$strip>>>;
50
72
  }, z.core.$strip>>>>;
51
73
  previewUrl: z.ZodOptional<z.ZodString>;
52
74
  files: z.ZodOptional<z.ZodObject<{
@@ -80,6 +102,36 @@ export declare namespace RetryHtmlPageBuilderBuildCommand {
80
102
  userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
81
103
  unregisteredUserId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
82
104
  params: z.ZodObject<{
105
+ withImages: z.ZodOptional<z.ZodBoolean>;
106
+ imageOriginId: z.ZodOptional<z.ZodUUID>;
107
+ imagePhase: z.ZodOptional<z.ZodObject<{
108
+ originId: z.ZodUUID;
109
+ settled: z.ZodBoolean;
110
+ operations: z.ZodArray<z.ZodObject<{
111
+ pageSlug: z.ZodString;
112
+ slotId: z.ZodString;
113
+ state: z.ZodEnum<{
114
+ completed: "completed";
115
+ failed: "failed";
116
+ queued: "queued";
117
+ running: "running";
118
+ }>;
119
+ }, z.core.$strip>>;
120
+ }, z.core.$strip>>;
121
+ imageAction: z.ZodOptional<z.ZodObject<{
122
+ pageSlug: z.ZodString;
123
+ slotId: z.ZodString;
124
+ mode: z.ZodEnum<{
125
+ generate: "generate";
126
+ regenerate: "regenerate";
127
+ replace: "replace";
128
+ }>;
129
+ billingStatus: z.ZodOptional<z.ZodEnum<{
130
+ charged: "charged";
131
+ not_charged: "not_charged";
132
+ pending: "pending";
133
+ }>>;
134
+ }, z.core.$strip>>;
83
135
  attachedFiles: z.ZodArray<z.ZodObject<{
84
136
  uuid: z.ZodString;
85
137
  url: z.ZodString;
@@ -109,6 +161,28 @@ export declare namespace RetryHtmlPageBuilderBuildCommand {
109
161
  html: z.ZodString;
110
162
  order: z.ZodNumber;
111
163
  isHome: z.ZodBoolean;
164
+ imageSlots: z.ZodOptional<z.ZodArray<z.ZodObject<{
165
+ id: z.ZodString;
166
+ url: z.ZodNullable<z.ZodURL>;
167
+ status: z.ZodEnum<{
168
+ completed: "completed";
169
+ empty: "empty";
170
+ failed: "failed";
171
+ pending: "pending";
172
+ }>;
173
+ operationState: z.ZodOptional<z.ZodEnum<{
174
+ completed: "completed";
175
+ failed: "failed";
176
+ queued: "queued";
177
+ running: "running";
178
+ }>>;
179
+ billingStatus: z.ZodOptional<z.ZodEnum<{
180
+ charged: "charged";
181
+ not_charged: "not_charged";
182
+ pending: "pending";
183
+ }>>;
184
+ prompt: z.ZodOptional<z.ZodString>;
185
+ }, z.core.$strip>>>;
112
186
  }, z.core.$strip>>;
113
187
  userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
114
188
  unregisteredUserId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -47,6 +47,28 @@ export declare namespace RetryHtmlPageBuilderRefineCommand {
47
47
  html: z.ZodString;
48
48
  order: z.ZodNumber;
49
49
  isHome: z.ZodBoolean;
50
+ imageSlots: z.ZodOptional<z.ZodArray<z.ZodObject<{
51
+ id: z.ZodString;
52
+ url: z.ZodNullable<z.ZodURL>;
53
+ status: z.ZodEnum<{
54
+ completed: "completed";
55
+ empty: "empty";
56
+ failed: "failed";
57
+ pending: "pending";
58
+ }>;
59
+ operationState: z.ZodOptional<z.ZodEnum<{
60
+ completed: "completed";
61
+ failed: "failed";
62
+ queued: "queued";
63
+ running: "running";
64
+ }>>;
65
+ billingStatus: z.ZodOptional<z.ZodEnum<{
66
+ charged: "charged";
67
+ not_charged: "not_charged";
68
+ pending: "pending";
69
+ }>>;
70
+ prompt: z.ZodOptional<z.ZodString>;
71
+ }, z.core.$strip>>>;
50
72
  }, z.core.$strip>>>>;
51
73
  previewUrl: z.ZodOptional<z.ZodString>;
52
74
  files: z.ZodOptional<z.ZodObject<{
@@ -80,6 +102,36 @@ export declare namespace RetryHtmlPageBuilderRefineCommand {
80
102
  userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
81
103
  unregisteredUserId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
82
104
  params: z.ZodObject<{
105
+ withImages: z.ZodOptional<z.ZodBoolean>;
106
+ imageOriginId: z.ZodOptional<z.ZodUUID>;
107
+ imagePhase: z.ZodOptional<z.ZodObject<{
108
+ originId: z.ZodUUID;
109
+ settled: z.ZodBoolean;
110
+ operations: z.ZodArray<z.ZodObject<{
111
+ pageSlug: z.ZodString;
112
+ slotId: z.ZodString;
113
+ state: z.ZodEnum<{
114
+ completed: "completed";
115
+ failed: "failed";
116
+ queued: "queued";
117
+ running: "running";
118
+ }>;
119
+ }, z.core.$strip>>;
120
+ }, z.core.$strip>>;
121
+ imageAction: z.ZodOptional<z.ZodObject<{
122
+ pageSlug: z.ZodString;
123
+ slotId: z.ZodString;
124
+ mode: z.ZodEnum<{
125
+ generate: "generate";
126
+ regenerate: "regenerate";
127
+ replace: "replace";
128
+ }>;
129
+ billingStatus: z.ZodOptional<z.ZodEnum<{
130
+ charged: "charged";
131
+ not_charged: "not_charged";
132
+ pending: "pending";
133
+ }>>;
134
+ }, z.core.$strip>>;
83
135
  attachedFiles: z.ZodArray<z.ZodObject<{
84
136
  uuid: z.ZodString;
85
137
  url: z.ZodString;
@@ -109,6 +161,28 @@ export declare namespace RetryHtmlPageBuilderRefineCommand {
109
161
  html: z.ZodString;
110
162
  order: z.ZodNumber;
111
163
  isHome: z.ZodBoolean;
164
+ imageSlots: z.ZodOptional<z.ZodArray<z.ZodObject<{
165
+ id: z.ZodString;
166
+ url: z.ZodNullable<z.ZodURL>;
167
+ status: z.ZodEnum<{
168
+ completed: "completed";
169
+ empty: "empty";
170
+ failed: "failed";
171
+ pending: "pending";
172
+ }>;
173
+ operationState: z.ZodOptional<z.ZodEnum<{
174
+ completed: "completed";
175
+ failed: "failed";
176
+ queued: "queued";
177
+ running: "running";
178
+ }>>;
179
+ billingStatus: z.ZodOptional<z.ZodEnum<{
180
+ charged: "charged";
181
+ not_charged: "not_charged";
182
+ pending: "pending";
183
+ }>>;
184
+ prompt: z.ZodOptional<z.ZodString>;
185
+ }, z.core.$strip>>>;
112
186
  }, z.core.$strip>>;
113
187
  userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
114
188
  unregisteredUserId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -47,6 +47,28 @@ export declare namespace UpdateHtmlPageBuilderSessionFavoriteCommand {
47
47
  html: z.ZodString;
48
48
  order: z.ZodNumber;
49
49
  isHome: z.ZodBoolean;
50
+ imageSlots: z.ZodOptional<z.ZodArray<z.ZodObject<{
51
+ id: z.ZodString;
52
+ url: z.ZodNullable<z.ZodURL>;
53
+ status: z.ZodEnum<{
54
+ completed: "completed";
55
+ empty: "empty";
56
+ failed: "failed";
57
+ pending: "pending";
58
+ }>;
59
+ operationState: z.ZodOptional<z.ZodEnum<{
60
+ completed: "completed";
61
+ failed: "failed";
62
+ queued: "queued";
63
+ running: "running";
64
+ }>>;
65
+ billingStatus: z.ZodOptional<z.ZodEnum<{
66
+ charged: "charged";
67
+ not_charged: "not_charged";
68
+ pending: "pending";
69
+ }>>;
70
+ prompt: z.ZodOptional<z.ZodString>;
71
+ }, z.core.$strip>>>;
50
72
  }, z.core.$strip>>>>;
51
73
  previewUrl: z.ZodOptional<z.ZodString>;
52
74
  files: z.ZodOptional<z.ZodObject<{
@@ -80,6 +102,36 @@ export declare namespace UpdateHtmlPageBuilderSessionFavoriteCommand {
80
102
  userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
81
103
  unregisteredUserId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
82
104
  params: z.ZodObject<{
105
+ withImages: z.ZodOptional<z.ZodBoolean>;
106
+ imageOriginId: z.ZodOptional<z.ZodUUID>;
107
+ imagePhase: z.ZodOptional<z.ZodObject<{
108
+ originId: z.ZodUUID;
109
+ settled: z.ZodBoolean;
110
+ operations: z.ZodArray<z.ZodObject<{
111
+ pageSlug: z.ZodString;
112
+ slotId: z.ZodString;
113
+ state: z.ZodEnum<{
114
+ completed: "completed";
115
+ failed: "failed";
116
+ queued: "queued";
117
+ running: "running";
118
+ }>;
119
+ }, z.core.$strip>>;
120
+ }, z.core.$strip>>;
121
+ imageAction: z.ZodOptional<z.ZodObject<{
122
+ pageSlug: z.ZodString;
123
+ slotId: z.ZodString;
124
+ mode: z.ZodEnum<{
125
+ generate: "generate";
126
+ regenerate: "regenerate";
127
+ replace: "replace";
128
+ }>;
129
+ billingStatus: z.ZodOptional<z.ZodEnum<{
130
+ charged: "charged";
131
+ not_charged: "not_charged";
132
+ pending: "pending";
133
+ }>>;
134
+ }, z.core.$strip>>;
83
135
  attachedFiles: z.ZodArray<z.ZodObject<{
84
136
  uuid: z.ZodString;
85
137
  url: z.ZodString;
@@ -109,6 +161,28 @@ export declare namespace UpdateHtmlPageBuilderSessionFavoriteCommand {
109
161
  html: z.ZodString;
110
162
  order: z.ZodNumber;
111
163
  isHome: z.ZodBoolean;
164
+ imageSlots: z.ZodOptional<z.ZodArray<z.ZodObject<{
165
+ id: z.ZodString;
166
+ url: z.ZodNullable<z.ZodURL>;
167
+ status: z.ZodEnum<{
168
+ completed: "completed";
169
+ empty: "empty";
170
+ failed: "failed";
171
+ pending: "pending";
172
+ }>;
173
+ operationState: z.ZodOptional<z.ZodEnum<{
174
+ completed: "completed";
175
+ failed: "failed";
176
+ queued: "queued";
177
+ running: "running";
178
+ }>>;
179
+ billingStatus: z.ZodOptional<z.ZodEnum<{
180
+ charged: "charged";
181
+ not_charged: "not_charged";
182
+ pending: "pending";
183
+ }>>;
184
+ prompt: z.ZodOptional<z.ZodString>;
185
+ }, z.core.$strip>>>;
112
186
  }, z.core.$strip>>;
113
187
  userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
114
188
  unregisteredUserId: z.ZodOptional<z.ZodNullable<z.ZodString>>;