@purpleschool/gptbot-tools 0.2.80 → 0.2.82

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 (51) hide show
  1. package/build/image-generation/commands/execute-image-generation.command.d.ts +131 -36
  2. package/build/image-generation/commands/execute-image-generation.command.js +2 -1
  3. package/build/image-generation/commands/forward-image-generation-job.command.d.ts +15 -2
  4. package/build/image-generation/commands/forward-image-generation-job.command.js +1 -0
  5. package/build/image-generation/commands/retry-image-generation-job.command.d.ts +14 -2
  6. package/build/image-generation/commands/save-image-generation-job.command.d.ts +14 -2
  7. package/build/image-generation/commands/set-reaction-to-image-generation-job.command.d.ts +14 -2
  8. package/build/image-generation/commands/update-image-generation-job-favorite.command.d.ts +130 -36
  9. package/build/image-generation/commands/update-image-generation-job-favorite.command.js +2 -2
  10. package/build/image-generation/commands/update-image-generation-job-title.command.d.ts +14 -2
  11. package/build/image-generation/commands/update-published-status-image-generation-jobs.command.d.ts +14 -2
  12. package/build/image-generation/enums/image-generation-group-status.enum.d.ts +6 -0
  13. package/build/image-generation/enums/image-generation-group-status.enum.js +10 -0
  14. package/build/image-generation/enums/index.d.ts +1 -0
  15. package/build/image-generation/enums/index.js +1 -0
  16. package/build/image-generation/models/image-generation-group.schema.d.ts +96 -0
  17. package/build/image-generation/models/image-generation-group.schema.js +34 -0
  18. package/build/image-generation/models/image-generation-job.schema.d.ts +9 -3
  19. package/build/image-generation/models/image-generation-job.schema.js +9 -3
  20. package/build/image-generation/models/index.d.ts +1 -0
  21. package/build/image-generation/models/index.js +1 -0
  22. package/build/image-generation/queries/find-image-generation-job-by-id.query.d.ts +130 -36
  23. package/build/image-generation/queries/find-image-generation-job-by-id.query.js +1 -1
  24. package/build/image-generation/queries/find-image-generation-jobs.query.d.ts +133 -38
  25. package/build/image-generation/queries/find-image-generation-jobs.query.js +3 -2
  26. package/build/photo-sessions/commands/admin/create-photo-session-style.command.d.ts +4 -0
  27. package/build/photo-sessions/commands/admin/create-photo-session-style.command.js +1 -0
  28. package/build/photo-sessions/commands/admin/update-photo-session-style.command.d.ts +3 -0
  29. package/build/photo-sessions/commands/photo-sessions.command.d.ts +4 -0
  30. package/build/photo-sessions/commands/retry-photo-sessions-job.command.d.ts +4 -0
  31. package/build/photo-sessions/commands/set-reaction-to-photo-sessions-job.command.d.ts +4 -0
  32. package/build/photo-sessions/commands/update-photo-sessions-job-favorite.command.d.ts +4 -0
  33. package/build/photo-sessions/commands/update-photo-sessions-job-title.command.d.ts +4 -0
  34. package/build/photo-sessions/commands/update-published-status-photo-sessions-jobs.command.d.ts +4 -0
  35. package/build/photo-sessions/enums/photo-session-strategy.enum.d.ts +1 -1
  36. package/build/photo-sessions/enums/photo-session-strategy.enum.js +1 -1
  37. package/build/photo-sessions/models/photo-session-config.schema.d.ts +2 -2
  38. package/build/photo-sessions/models/photo-session-config.schema.js +1 -1
  39. package/build/photo-sessions/models/photo-session-group.schema.d.ts +2 -0
  40. package/build/photo-sessions/models/photo-session-job.schema.d.ts +4 -0
  41. package/build/photo-sessions/models/photo-session-job.schema.js +2 -0
  42. package/build/photo-sessions/models/photo-session-style.schema.d.ts +30 -0
  43. package/build/photo-sessions/models/photo-session-style.schema.js +10 -1
  44. package/build/photo-sessions/queries/find-photo-session-style-by-id.query.d.ts +2 -0
  45. package/build/photo-sessions/queries/find-photo-session-styles.query.d.ts +2 -0
  46. package/build/photo-sessions/queries/find-photo-sessions-job-by-id.query.d.ts +4 -0
  47. package/build/photo-sessions/queries/find-photo-sessions-jobs.query.d.ts +4 -0
  48. package/build/photo-sessions/queries/get-photo-sessions-config.query.d.ts +4 -4
  49. package/build/tools/models/global-tools-config.schema.d.ts +2 -2
  50. package/build/tools/queries/get-global-tools-config.query.d.ts +4 -4
  51. package/package.json +1 -1
@@ -9,6 +9,7 @@ export declare namespace ExecuteImageGenerationCommand {
9
9
  scope: z.ZodDefault<z.ZodOptional<z.ZodEnum<typeof JOB_SCOPE>>>;
10
10
  prompt: z.ZodString;
11
11
  modelId: z.ZodUUID;
12
+ groupId: z.ZodOptional<z.ZodUUID>;
12
13
  params: z.ZodObject<{
13
14
  aspectRatio: z.ZodString;
14
15
  attachedFiles: z.ZodArray<z.ZodObject<{
@@ -38,15 +39,13 @@ export declare namespace ExecuteImageGenerationCommand {
38
39
  isSuccess: z.ZodBoolean;
39
40
  data: z.ZodOptional<z.ZodType<{
40
41
  uuid: string;
41
- prompt: string;
42
42
  title: string;
43
- status: import("../..").JOB_STATUS;
43
+ prompt: string;
44
+ status: import("..").IMAGE_GENERATION_GROUP_STATUS;
44
45
  error: string | null;
46
+ modelId: string;
47
+ presetId: string | null;
45
48
  price: number;
46
- previewUrl: string | null;
47
- reaction: import("../..").USER_REACTION | null;
48
- dislikeReason: string | null;
49
- externalId: string | null;
50
49
  params: {
51
50
  aspectRatio: string;
52
51
  attachedFiles: {
@@ -64,33 +63,80 @@ export declare namespace ExecuteImageGenerationCommand {
64
63
  resolution?: import("..").IMAGE_GENERATION_RESOLUTION | undefined;
65
64
  batching?: number | undefined;
66
65
  };
67
- output: string[];
68
- presetId?: string | null | undefined;
69
- modelId: string;
70
- attempts: any[];
71
- userId?: string | null | undefined;
72
- unregisteredUserId?: string | null | undefined;
73
- isPublished: boolean;
74
- origin: string;
75
- callOrigin: STATISTICS_CALL_ORIGIN;
76
- postId: string | null;
66
+ attempts: {
67
+ order: number;
68
+ status: string;
69
+ error: string | null;
70
+ timestamp: Date;
71
+ }[];
72
+ scope: JOB_SCOPE;
73
+ userId: string | null;
74
+ unregisteredUserId: string | null;
77
75
  isDeleted: boolean;
78
76
  isFavorite: boolean;
79
- internalError: string | null;
80
- tokenReservationId?: string | null | undefined;
77
+ subJobs: {
78
+ uuid: string;
79
+ prompt: string;
80
+ title: string;
81
+ status: import("../..").JOB_STATUS;
82
+ error: string | null;
83
+ price: number;
84
+ previewUrl: string | null;
85
+ reaction: import("../..").USER_REACTION | null;
86
+ dislikeReason: string | null;
87
+ externalId: string | null;
88
+ params: {
89
+ aspectRatio: string;
90
+ attachedFiles: {
91
+ uuid: string;
92
+ url: string;
93
+ name: string;
94
+ mimeType: string;
95
+ type: string;
96
+ size: number;
97
+ duration?: number | null | undefined;
98
+ content?: string | null | undefined;
99
+ contentLength?: number | null | undefined;
100
+ }[];
101
+ enhancePrompt: boolean;
102
+ resolution?: import("..").IMAGE_GENERATION_RESOLUTION | undefined;
103
+ batching?: number | undefined;
104
+ };
105
+ output: string[];
106
+ presetId?: string | null | undefined;
107
+ modelId: string;
108
+ groupId: string | null;
109
+ attempts: {
110
+ order: number;
111
+ status: string;
112
+ error: string | null;
113
+ timestamp: Date;
114
+ }[];
115
+ userId?: string | null | undefined;
116
+ unregisteredUserId?: string | null | undefined;
117
+ isPublished: boolean;
118
+ origin: string;
119
+ callOrigin: STATISTICS_CALL_ORIGIN;
120
+ postId: string | null;
121
+ isDeleted: boolean;
122
+ isFavorite: boolean;
123
+ internalError: string | null;
124
+ tokenReservationId?: string | null | undefined;
125
+ createdAt: Date;
126
+ updatedAt: Date;
127
+ }[];
81
128
  createdAt: Date;
129
+ completedAt: Date | null;
82
130
  updatedAt: Date;
83
131
  }, unknown, z.core.$ZodTypeInternals<{
84
132
  uuid: string;
85
- prompt: string;
86
133
  title: string;
87
- status: import("../..").JOB_STATUS;
134
+ prompt: string;
135
+ status: import("..").IMAGE_GENERATION_GROUP_STATUS;
88
136
  error: string | null;
137
+ modelId: string;
138
+ presetId: string | null;
89
139
  price: number;
90
- previewUrl: string | null;
91
- reaction: import("../..").USER_REACTION | null;
92
- dislikeReason: string | null;
93
- externalId: string | null;
94
140
  params: {
95
141
  aspectRatio: string;
96
142
  attachedFiles: {
@@ -108,21 +154,70 @@ export declare namespace ExecuteImageGenerationCommand {
108
154
  resolution?: import("..").IMAGE_GENERATION_RESOLUTION | undefined;
109
155
  batching?: number | undefined;
110
156
  };
111
- output: string[];
112
- presetId?: string | null | undefined;
113
- modelId: string;
114
- attempts: any[];
115
- userId?: string | null | undefined;
116
- unregisteredUserId?: string | null | undefined;
117
- isPublished: boolean;
118
- origin: string;
119
- callOrigin: STATISTICS_CALL_ORIGIN;
120
- postId: string | null;
157
+ attempts: {
158
+ order: number;
159
+ status: string;
160
+ error: string | null;
161
+ timestamp: Date;
162
+ }[];
163
+ scope: JOB_SCOPE;
164
+ userId: string | null;
165
+ unregisteredUserId: string | null;
121
166
  isDeleted: boolean;
122
167
  isFavorite: boolean;
123
- internalError: string | null;
124
- tokenReservationId?: string | null | undefined;
168
+ subJobs: {
169
+ uuid: string;
170
+ prompt: string;
171
+ title: string;
172
+ status: import("../..").JOB_STATUS;
173
+ error: string | null;
174
+ price: number;
175
+ previewUrl: string | null;
176
+ reaction: import("../..").USER_REACTION | null;
177
+ dislikeReason: string | null;
178
+ externalId: string | null;
179
+ params: {
180
+ aspectRatio: string;
181
+ attachedFiles: {
182
+ uuid: string;
183
+ url: string;
184
+ name: string;
185
+ mimeType: string;
186
+ type: string;
187
+ size: number;
188
+ duration?: number | null | undefined;
189
+ content?: string | null | undefined;
190
+ contentLength?: number | null | undefined;
191
+ }[];
192
+ enhancePrompt: boolean;
193
+ resolution?: import("..").IMAGE_GENERATION_RESOLUTION | undefined;
194
+ batching?: number | undefined;
195
+ };
196
+ output: string[];
197
+ presetId?: string | null | undefined;
198
+ modelId: string;
199
+ groupId: string | null;
200
+ attempts: {
201
+ order: number;
202
+ status: string;
203
+ error: string | null;
204
+ timestamp: Date;
205
+ }[];
206
+ userId?: string | null | undefined;
207
+ unregisteredUserId?: string | null | undefined;
208
+ isPublished: boolean;
209
+ origin: string;
210
+ callOrigin: STATISTICS_CALL_ORIGIN;
211
+ postId: string | null;
212
+ isDeleted: boolean;
213
+ isFavorite: boolean;
214
+ internalError: string | null;
215
+ tokenReservationId?: string | null | undefined;
216
+ createdAt: Date;
217
+ updatedAt: Date;
218
+ }[];
125
219
  createdAt: Date;
220
+ completedAt: Date | null;
126
221
  updatedAt: Date;
127
222
  }, unknown>>>;
128
223
  code: z.ZodOptional<z.ZodString>;
@@ -16,6 +16,7 @@ var ExecuteImageGenerationCommand;
16
16
  scope: zod_1.z.enum(common_1.JOB_SCOPE).optional().default(common_1.JOB_SCOPE.TOOL),
17
17
  prompt: zod_1.z.string(),
18
18
  modelId: zod_1.z.uuid(),
19
+ groupId: zod_1.z.uuid().optional(),
19
20
  params: models_1.ImageGenerationRequestParamsSchema,
20
21
  presetId: zod_1.z.uuid().nullable().optional(),
21
22
  callOrigin: zod_1.z.enum(rugpt_lib_common_1.STATISTICS_CALL_ORIGIN).default(rugpt_lib_common_1.STATISTICS_CALL_ORIGIN.WEB),
@@ -24,5 +25,5 @@ var ExecuteImageGenerationCommand;
24
25
  precalculatedPrice: zod_1.z.number(),
25
26
  mock: zod_1.z.boolean().optional(),
26
27
  });
27
- ExecuteImageGenerationCommand.ResponseSchema = (0, command_response_schema_1.ICommandResponseSchema)(models_1.ImageGenerationJobSchema);
28
+ ExecuteImageGenerationCommand.ResponseSchema = (0, command_response_schema_1.ICommandResponseSchema)(models_1.ImageGenerationGroupSchema);
28
29
  })(ExecuteImageGenerationCommand || (exports.ExecuteImageGenerationCommand = ExecuteImageGenerationCommand = {}));
@@ -32,6 +32,7 @@ export declare namespace ForwardImageGenerationJobCommand {
32
32
  batching: z.ZodOptional<z.ZodNumber>;
33
33
  }, z.core.$strip>;
34
34
  modelId: z.ZodUUID;
35
+ groupId: z.ZodOptional<z.ZodUUID>;
35
36
  presetId: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
36
37
  userId: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
37
38
  unregisteredUserId: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
@@ -74,7 +75,13 @@ export declare namespace ForwardImageGenerationJobCommand {
74
75
  output: string[];
75
76
  presetId?: string | null | undefined;
76
77
  modelId: string;
77
- attempts: any[];
78
+ groupId: string | null;
79
+ attempts: {
80
+ order: number;
81
+ status: string;
82
+ error: string | null;
83
+ timestamp: Date;
84
+ }[];
78
85
  userId?: string | null | undefined;
79
86
  unregisteredUserId?: string | null | undefined;
80
87
  isPublished: boolean;
@@ -118,7 +125,13 @@ export declare namespace ForwardImageGenerationJobCommand {
118
125
  output: string[];
119
126
  presetId?: string | null | undefined;
120
127
  modelId: string;
121
- attempts: any[];
128
+ groupId: string | null;
129
+ attempts: {
130
+ order: number;
131
+ status: string;
132
+ error: string | null;
133
+ timestamp: Date;
134
+ }[];
122
135
  userId?: string | null | undefined;
123
136
  unregisteredUserId?: string | null | undefined;
124
137
  isPublished: boolean;
@@ -22,6 +22,7 @@ var ForwardImageGenerationJobCommand;
22
22
  output: zod_1.z.array(zod_1.z.string()),
23
23
  params: models_1.ImageGenerationJobParamsSchema,
24
24
  modelId: zod_1.z.uuid(),
25
+ groupId: zod_1.z.uuid().optional(),
25
26
  presetId: zod_1.z.uuid().nullable().optional(),
26
27
  userId: zod_1.z.uuid().nullable().optional(),
27
28
  unregisteredUserId: zod_1.z.uuid().nullable().optional(),
@@ -64,7 +64,13 @@ export declare namespace RetryImageGenerationJobCommand {
64
64
  output: string[];
65
65
  presetId?: string | null | undefined;
66
66
  modelId: string;
67
- attempts: any[];
67
+ groupId: string | null;
68
+ attempts: {
69
+ order: number;
70
+ status: string;
71
+ error: string | null;
72
+ timestamp: Date;
73
+ }[];
68
74
  userId?: string | null | undefined;
69
75
  unregisteredUserId?: string | null | undefined;
70
76
  isPublished: boolean;
@@ -108,7 +114,13 @@ export declare namespace RetryImageGenerationJobCommand {
108
114
  output: string[];
109
115
  presetId?: string | null | undefined;
110
116
  modelId: string;
111
- attempts: any[];
117
+ groupId: string | null;
118
+ attempts: {
119
+ order: number;
120
+ status: string;
121
+ error: string | null;
122
+ timestamp: Date;
123
+ }[];
112
124
  userId?: string | null | undefined;
113
125
  unregisteredUserId?: string | null | undefined;
114
126
  isPublished: boolean;
@@ -41,7 +41,13 @@ export declare namespace SaveImageGenerationJobCommand {
41
41
  output: string[];
42
42
  presetId?: string | null | undefined;
43
43
  modelId: string;
44
- attempts: any[];
44
+ groupId: string | null;
45
+ attempts: {
46
+ order: number;
47
+ status: string;
48
+ error: string | null;
49
+ timestamp: Date;
50
+ }[];
45
51
  userId?: string | null | undefined;
46
52
  unregisteredUserId?: string | null | undefined;
47
53
  isPublished: boolean;
@@ -85,7 +91,13 @@ export declare namespace SaveImageGenerationJobCommand {
85
91
  output: string[];
86
92
  presetId?: string | null | undefined;
87
93
  modelId: string;
88
- attempts: any[];
94
+ groupId: string | null;
95
+ attempts: {
96
+ order: number;
97
+ status: string;
98
+ error: string | null;
99
+ timestamp: Date;
100
+ }[];
89
101
  userId?: string | null | undefined;
90
102
  unregisteredUserId?: string | null | undefined;
91
103
  isPublished: boolean;
@@ -42,7 +42,13 @@ export declare namespace SetReactionToImageGenerationJobCommand {
42
42
  output: string[];
43
43
  presetId?: string | null | undefined;
44
44
  modelId: string;
45
- attempts: any[];
45
+ groupId: string | null;
46
+ attempts: {
47
+ order: number;
48
+ status: string;
49
+ error: string | null;
50
+ timestamp: Date;
51
+ }[];
46
52
  userId?: string | null | undefined;
47
53
  unregisteredUserId?: string | null | undefined;
48
54
  isPublished: boolean;
@@ -86,7 +92,13 @@ export declare namespace SetReactionToImageGenerationJobCommand {
86
92
  output: string[];
87
93
  presetId?: string | null | undefined;
88
94
  modelId: string;
89
- attempts: any[];
95
+ groupId: string | null;
96
+ attempts: {
97
+ order: number;
98
+ status: string;
99
+ error: string | null;
100
+ timestamp: Date;
101
+ }[];
90
102
  userId?: string | null | undefined;
91
103
  unregisteredUserId?: string | null | undefined;
92
104
  isPublished: boolean;
@@ -11,15 +11,13 @@ export declare namespace UpdateImageGenerationJobFavoriteCommand {
11
11
  isSuccess: z.ZodBoolean;
12
12
  data: z.ZodOptional<z.ZodType<{
13
13
  uuid: string;
14
- prompt: string;
15
14
  title: string;
16
- status: import("../..").JOB_STATUS;
15
+ prompt: string;
16
+ status: import("..").IMAGE_GENERATION_GROUP_STATUS;
17
17
  error: string | null;
18
+ modelId: string;
19
+ presetId: string | null;
18
20
  price: number;
19
- previewUrl: string | null;
20
- reaction: import("../..").USER_REACTION | null;
21
- dislikeReason: string | null;
22
- externalId: string | null;
23
21
  params: {
24
22
  aspectRatio: string;
25
23
  attachedFiles: {
@@ -37,33 +35,80 @@ export declare namespace UpdateImageGenerationJobFavoriteCommand {
37
35
  resolution?: import("..").IMAGE_GENERATION_RESOLUTION | undefined;
38
36
  batching?: number | undefined;
39
37
  };
40
- output: string[];
41
- presetId?: string | null | undefined;
42
- modelId: string;
43
- attempts: any[];
44
- userId?: string | null | undefined;
45
- unregisteredUserId?: string | null | undefined;
46
- isPublished: boolean;
47
- origin: string;
48
- callOrigin: import("@purpleschool/rugpt-lib-common").STATISTICS_CALL_ORIGIN;
49
- postId: string | null;
38
+ attempts: {
39
+ order: number;
40
+ status: string;
41
+ error: string | null;
42
+ timestamp: Date;
43
+ }[];
44
+ scope: import("../..").JOB_SCOPE;
45
+ userId: string | null;
46
+ unregisteredUserId: string | null;
50
47
  isDeleted: boolean;
51
48
  isFavorite: boolean;
52
- internalError: string | null;
53
- tokenReservationId?: string | null | undefined;
49
+ subJobs: {
50
+ uuid: string;
51
+ prompt: string;
52
+ title: string;
53
+ status: import("../..").JOB_STATUS;
54
+ error: string | null;
55
+ price: number;
56
+ previewUrl: string | null;
57
+ reaction: import("../..").USER_REACTION | null;
58
+ dislikeReason: string | null;
59
+ externalId: string | null;
60
+ params: {
61
+ aspectRatio: string;
62
+ attachedFiles: {
63
+ uuid: string;
64
+ url: string;
65
+ name: string;
66
+ mimeType: string;
67
+ type: string;
68
+ size: number;
69
+ duration?: number | null | undefined;
70
+ content?: string | null | undefined;
71
+ contentLength?: number | null | undefined;
72
+ }[];
73
+ enhancePrompt: boolean;
74
+ resolution?: import("..").IMAGE_GENERATION_RESOLUTION | undefined;
75
+ batching?: number | undefined;
76
+ };
77
+ output: string[];
78
+ presetId?: string | null | undefined;
79
+ modelId: string;
80
+ groupId: string | null;
81
+ attempts: {
82
+ order: number;
83
+ status: string;
84
+ error: string | null;
85
+ timestamp: Date;
86
+ }[];
87
+ userId?: string | null | undefined;
88
+ unregisteredUserId?: string | null | undefined;
89
+ isPublished: boolean;
90
+ origin: string;
91
+ callOrigin: import("@purpleschool/rugpt-lib-common").STATISTICS_CALL_ORIGIN;
92
+ postId: string | null;
93
+ isDeleted: boolean;
94
+ isFavorite: boolean;
95
+ internalError: string | null;
96
+ tokenReservationId?: string | null | undefined;
97
+ createdAt: Date;
98
+ updatedAt: Date;
99
+ }[];
54
100
  createdAt: Date;
101
+ completedAt: Date | null;
55
102
  updatedAt: Date;
56
103
  }, unknown, z.core.$ZodTypeInternals<{
57
104
  uuid: string;
58
- prompt: string;
59
105
  title: string;
60
- status: import("../..").JOB_STATUS;
106
+ prompt: string;
107
+ status: import("..").IMAGE_GENERATION_GROUP_STATUS;
61
108
  error: string | null;
109
+ modelId: string;
110
+ presetId: string | null;
62
111
  price: number;
63
- previewUrl: string | null;
64
- reaction: import("../..").USER_REACTION | null;
65
- dislikeReason: string | null;
66
- externalId: string | null;
67
112
  params: {
68
113
  aspectRatio: string;
69
114
  attachedFiles: {
@@ -81,21 +126,70 @@ export declare namespace UpdateImageGenerationJobFavoriteCommand {
81
126
  resolution?: import("..").IMAGE_GENERATION_RESOLUTION | undefined;
82
127
  batching?: number | undefined;
83
128
  };
84
- output: string[];
85
- presetId?: string | null | undefined;
86
- modelId: string;
87
- attempts: any[];
88
- userId?: string | null | undefined;
89
- unregisteredUserId?: string | null | undefined;
90
- isPublished: boolean;
91
- origin: string;
92
- callOrigin: import("@purpleschool/rugpt-lib-common").STATISTICS_CALL_ORIGIN;
93
- postId: string | null;
129
+ attempts: {
130
+ order: number;
131
+ status: string;
132
+ error: string | null;
133
+ timestamp: Date;
134
+ }[];
135
+ scope: import("../..").JOB_SCOPE;
136
+ userId: string | null;
137
+ unregisteredUserId: string | null;
94
138
  isDeleted: boolean;
95
139
  isFavorite: boolean;
96
- internalError: string | null;
97
- tokenReservationId?: string | null | undefined;
140
+ subJobs: {
141
+ uuid: string;
142
+ prompt: string;
143
+ title: string;
144
+ status: import("../..").JOB_STATUS;
145
+ error: string | null;
146
+ price: number;
147
+ previewUrl: string | null;
148
+ reaction: import("../..").USER_REACTION | null;
149
+ dislikeReason: string | null;
150
+ externalId: string | null;
151
+ params: {
152
+ aspectRatio: string;
153
+ attachedFiles: {
154
+ uuid: string;
155
+ url: string;
156
+ name: string;
157
+ mimeType: string;
158
+ type: string;
159
+ size: number;
160
+ duration?: number | null | undefined;
161
+ content?: string | null | undefined;
162
+ contentLength?: number | null | undefined;
163
+ }[];
164
+ enhancePrompt: boolean;
165
+ resolution?: import("..").IMAGE_GENERATION_RESOLUTION | undefined;
166
+ batching?: number | undefined;
167
+ };
168
+ output: string[];
169
+ presetId?: string | null | undefined;
170
+ modelId: string;
171
+ groupId: string | null;
172
+ attempts: {
173
+ order: number;
174
+ status: string;
175
+ error: string | null;
176
+ timestamp: Date;
177
+ }[];
178
+ userId?: string | null | undefined;
179
+ unregisteredUserId?: string | null | undefined;
180
+ isPublished: boolean;
181
+ origin: string;
182
+ callOrigin: import("@purpleschool/rugpt-lib-common").STATISTICS_CALL_ORIGIN;
183
+ postId: string | null;
184
+ isDeleted: boolean;
185
+ isFavorite: boolean;
186
+ internalError: string | null;
187
+ tokenReservationId?: string | null | undefined;
188
+ createdAt: Date;
189
+ updatedAt: Date;
190
+ }[];
98
191
  createdAt: Date;
192
+ completedAt: Date | null;
99
193
  updatedAt: Date;
100
194
  }, unknown>>>;
101
195
  code: z.ZodOptional<z.ZodString>;
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.UpdateImageGenerationJobFavoriteCommand = void 0;
4
4
  const zod_1 = require("zod");
5
5
  const command_response_schema_1 = require("../../common/models/command-response.schema");
6
- const image_generation_job_schema_1 = require("../models/image-generation-job.schema");
6
+ const image_generation_group_schema_1 = require("../models/image-generation-group.schema");
7
7
  var UpdateImageGenerationJobFavoriteCommand;
8
8
  (function (UpdateImageGenerationJobFavoriteCommand) {
9
9
  UpdateImageGenerationJobFavoriteCommand.RequestSchema = zod_1.z.object({
@@ -12,5 +12,5 @@ var UpdateImageGenerationJobFavoriteCommand;
12
12
  unregisteredUserId: zod_1.z.uuid().nullable().optional(),
13
13
  isFavorite: zod_1.z.boolean(),
14
14
  });
15
- UpdateImageGenerationJobFavoriteCommand.ResponseSchema = (0, command_response_schema_1.ICommandResponseSchema)(image_generation_job_schema_1.ImageGenerationJobSchema);
15
+ UpdateImageGenerationJobFavoriteCommand.ResponseSchema = (0, command_response_schema_1.ICommandResponseSchema)(image_generation_group_schema_1.ImageGenerationGroupSchema);
16
16
  })(UpdateImageGenerationJobFavoriteCommand || (exports.UpdateImageGenerationJobFavoriteCommand = UpdateImageGenerationJobFavoriteCommand = {}));
@@ -40,7 +40,13 @@ export declare namespace UpdateImageGenerationJobTitleCommand {
40
40
  output: string[];
41
41
  presetId?: string | null | undefined;
42
42
  modelId: string;
43
- attempts: any[];
43
+ groupId: string | null;
44
+ attempts: {
45
+ order: number;
46
+ status: string;
47
+ error: string | null;
48
+ timestamp: Date;
49
+ }[];
44
50
  userId?: string | null | undefined;
45
51
  unregisteredUserId?: string | null | undefined;
46
52
  isPublished: boolean;
@@ -84,7 +90,13 @@ export declare namespace UpdateImageGenerationJobTitleCommand {
84
90
  output: string[];
85
91
  presetId?: string | null | undefined;
86
92
  modelId: string;
87
- attempts: any[];
93
+ groupId: string | null;
94
+ attempts: {
95
+ order: number;
96
+ status: string;
97
+ error: string | null;
98
+ timestamp: Date;
99
+ }[];
88
100
  userId?: string | null | undefined;
89
101
  unregisteredUserId?: string | null | undefined;
90
102
  isPublished: boolean;
@@ -45,7 +45,13 @@ export declare namespace UpdatePublishedStatusImageGenerationJobsCommand {
45
45
  output: string[];
46
46
  presetId?: string | null | undefined;
47
47
  modelId: string;
48
- attempts: any[];
48
+ groupId: string | null;
49
+ attempts: {
50
+ order: number;
51
+ status: string;
52
+ error: string | null;
53
+ timestamp: Date;
54
+ }[];
49
55
  userId?: string | null | undefined;
50
56
  unregisteredUserId?: string | null | undefined;
51
57
  isPublished: boolean;
@@ -89,7 +95,13 @@ export declare namespace UpdatePublishedStatusImageGenerationJobsCommand {
89
95
  output: string[];
90
96
  presetId?: string | null | undefined;
91
97
  modelId: string;
92
- attempts: any[];
98
+ groupId: string | null;
99
+ attempts: {
100
+ order: number;
101
+ status: string;
102
+ error: string | null;
103
+ timestamp: Date;
104
+ }[];
93
105
  userId?: string | null | undefined;
94
106
  unregisteredUserId?: string | null | undefined;
95
107
  isPublished: boolean;
@@ -0,0 +1,6 @@
1
+ export declare enum IMAGE_GENERATION_GROUP_STATUS {
2
+ PENDING = "pending",
3
+ COMPLETED = "completed",
4
+ AWAITING_RETRY = "awaiting_retry",
5
+ FAILED = "failed"
6
+ }
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.IMAGE_GENERATION_GROUP_STATUS = void 0;
4
+ var IMAGE_GENERATION_GROUP_STATUS;
5
+ (function (IMAGE_GENERATION_GROUP_STATUS) {
6
+ IMAGE_GENERATION_GROUP_STATUS["PENDING"] = "pending";
7
+ IMAGE_GENERATION_GROUP_STATUS["COMPLETED"] = "completed";
8
+ IMAGE_GENERATION_GROUP_STATUS["AWAITING_RETRY"] = "awaiting_retry";
9
+ IMAGE_GENERATION_GROUP_STATUS["FAILED"] = "failed";
10
+ })(IMAGE_GENERATION_GROUP_STATUS || (exports.IMAGE_GENERATION_GROUP_STATUS = IMAGE_GENERATION_GROUP_STATUS = {}));
@@ -1,3 +1,4 @@
1
1
  export * from './image-generation-model-strategy.enum';
2
2
  export * from './image-generation-resolution.enum';
3
3
  export * from './image-generation-models.enum';
4
+ export * from './image-generation-group-status.enum';