@purpleschool/gptbot-tools 0.2.78 → 0.2.80-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 (39) hide show
  1. package/build/image-generation/commands/execute-image-generation.command.d.ts +131 -38
  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 +14 -2
  9. package/build/image-generation/commands/update-image-generation-job-title.command.d.ts +14 -2
  10. package/build/image-generation/commands/update-published-status-image-generation-jobs.command.d.ts +14 -2
  11. package/build/image-generation/enums/image-generation-group-status.enum.d.ts +6 -0
  12. package/build/image-generation/enums/image-generation-group-status.enum.js +10 -0
  13. package/build/image-generation/enums/index.d.ts +1 -0
  14. package/build/image-generation/enums/index.js +1 -0
  15. package/build/image-generation/models/image-generation-group.schema.d.ts +95 -0
  16. package/build/image-generation/models/image-generation-group.schema.js +33 -0
  17. package/build/image-generation/models/image-generation-job.schema.d.ts +9 -3
  18. package/build/image-generation/models/image-generation-job.schema.js +9 -3
  19. package/build/image-generation/models/index.d.ts +1 -0
  20. package/build/image-generation/models/index.js +1 -0
  21. package/build/image-generation/queries/find-image-generation-job-by-id.query.d.ts +130 -38
  22. package/build/image-generation/queries/find-image-generation-job-by-id.query.js +1 -1
  23. package/build/image-generation/queries/find-image-generation-jobs.query.d.ts +133 -40
  24. package/build/image-generation/queries/find-image-generation-jobs.query.js +3 -2
  25. package/build/photo-sessions/commands/admin/create-photo-session-style.command.d.ts +4 -0
  26. package/build/photo-sessions/commands/admin/create-photo-session-style.command.js +1 -0
  27. package/build/photo-sessions/commands/admin/update-photo-session-style.command.d.ts +3 -0
  28. package/build/photo-sessions/enums/photo-session-strategy.enum.d.ts +2 -1
  29. package/build/photo-sessions/enums/photo-session-strategy.enum.js +1 -0
  30. package/build/photo-sessions/models/photo-session-config.schema.d.ts +2 -2
  31. package/build/photo-sessions/models/photo-session-config.schema.js +1 -1
  32. package/build/photo-sessions/models/photo-session-style.schema.d.ts +30 -0
  33. package/build/photo-sessions/models/photo-session-style.schema.js +10 -1
  34. package/build/photo-sessions/queries/find-photo-session-style-by-id.query.d.ts +2 -0
  35. package/build/photo-sessions/queries/find-photo-session-styles.query.d.ts +2 -0
  36. package/build/photo-sessions/queries/get-photo-sessions-config.query.d.ts +4 -4
  37. package/build/tools/models/global-tools-config.schema.d.ts +2 -2
  38. package/build/tools/queries/get-global-tools-config.query.d.ts +4 -4
  39. package/package.json +1 -1
@@ -1,4 +1,5 @@
1
1
  export * from './image-generation-job.schema';
2
+ export * from './image-generation-group.schema';
2
3
  export * from './image-generation-model.schema';
3
4
  export * from './image-generation-preset.schema';
4
5
  export * from './image-generation-config.schema';
@@ -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("./image-generation-job.schema"), exports);
18
+ __exportStar(require("./image-generation-group.schema"), exports);
18
19
  __exportStar(require("./image-generation-model.schema"), exports);
19
20
  __exportStar(require("./image-generation-preset.schema"), exports);
20
21
  __exportStar(require("./image-generation-config.schema"), exports);
@@ -10,15 +10,13 @@ export declare namespace FindImageGenerationJobByIdQuery {
10
10
  isSuccess: z.ZodBoolean;
11
11
  data: z.ZodOptional<z.ZodType<{
12
12
  uuid: string;
13
- prompt: string;
14
13
  title: string;
15
- status: import("../..").JOB_STATUS;
14
+ prompt: string;
15
+ status: import("..").IMAGE_GENERATION_GROUP_STATUS;
16
16
  error: string | null;
17
+ modelId: string;
18
+ presetId: string | null;
17
19
  price: number;
18
- previewUrl: string | null;
19
- reaction: import("../..").USER_REACTION | null;
20
- dislikeReason: string | null;
21
- externalId: string | null;
22
20
  params: {
23
21
  aspectRatio: string;
24
22
  attachedFiles: {
@@ -36,33 +34,79 @@ export declare namespace FindImageGenerationJobByIdQuery {
36
34
  resolution?: import("..").IMAGE_GENERATION_RESOLUTION | undefined;
37
35
  batching?: number | undefined;
38
36
  };
39
- output: string[];
40
- presetId?: string | null | undefined;
41
- modelId: string;
42
- attempts: any[];
43
- userId?: string | null | undefined;
44
- unregisteredUserId?: string | null | undefined;
45
- isPublished: boolean;
46
- origin: string;
47
- callOrigin: import("@purpleschool/rugpt-lib-common").STATISTICS_CALL_ORIGIN;
48
- postId: string | null;
37
+ attempts: {
38
+ order: number;
39
+ status: string;
40
+ error: string | null;
41
+ timestamp: Date;
42
+ }[];
43
+ scope: import("../..").JOB_SCOPE;
44
+ userId: string | null;
45
+ unregisteredUserId: string | null;
49
46
  isDeleted: boolean;
50
- isFavorite: boolean;
51
- internalError: string | null;
52
- tokenReservationId?: string | null | undefined;
47
+ subJobs: {
48
+ uuid: string;
49
+ prompt: string;
50
+ title: string;
51
+ status: import("../..").JOB_STATUS;
52
+ error: string | null;
53
+ price: number;
54
+ previewUrl: string | null;
55
+ reaction: import("../..").USER_REACTION | null;
56
+ dislikeReason: string | null;
57
+ externalId: string | null;
58
+ params: {
59
+ aspectRatio: string;
60
+ attachedFiles: {
61
+ uuid: string;
62
+ url: string;
63
+ name: string;
64
+ mimeType: string;
65
+ type: string;
66
+ size: number;
67
+ duration?: number | null | undefined;
68
+ content?: string | null | undefined;
69
+ contentLength?: number | null | undefined;
70
+ }[];
71
+ enhancePrompt: boolean;
72
+ resolution?: import("..").IMAGE_GENERATION_RESOLUTION | undefined;
73
+ batching?: number | undefined;
74
+ };
75
+ output: string[];
76
+ presetId?: string | null | undefined;
77
+ modelId: string;
78
+ groupId: string | null;
79
+ attempts: {
80
+ order: number;
81
+ status: string;
82
+ error: string | null;
83
+ timestamp: Date;
84
+ }[];
85
+ userId?: string | null | undefined;
86
+ unregisteredUserId?: string | null | undefined;
87
+ isPublished: boolean;
88
+ origin: string;
89
+ callOrigin: import("@purpleschool/rugpt-lib-common").STATISTICS_CALL_ORIGIN;
90
+ postId: string | null;
91
+ isDeleted: boolean;
92
+ isFavorite: boolean;
93
+ internalError: string | null;
94
+ tokenReservationId?: string | null | undefined;
95
+ createdAt: Date;
96
+ updatedAt: Date;
97
+ }[];
53
98
  createdAt: Date;
99
+ completedAt: Date | null;
54
100
  updatedAt: Date;
55
101
  }, unknown, z.core.$ZodTypeInternals<{
56
102
  uuid: string;
57
- prompt: string;
58
103
  title: string;
59
- status: import("../..").JOB_STATUS;
104
+ prompt: string;
105
+ status: import("..").IMAGE_GENERATION_GROUP_STATUS;
60
106
  error: string | null;
107
+ modelId: string;
108
+ presetId: string | null;
61
109
  price: number;
62
- previewUrl: string | null;
63
- reaction: import("../..").USER_REACTION | null;
64
- dislikeReason: string | null;
65
- externalId: string | null;
66
110
  params: {
67
111
  aspectRatio: string;
68
112
  attachedFiles: {
@@ -80,21 +124,69 @@ export declare namespace FindImageGenerationJobByIdQuery {
80
124
  resolution?: import("..").IMAGE_GENERATION_RESOLUTION | undefined;
81
125
  batching?: number | undefined;
82
126
  };
83
- output: string[];
84
- presetId?: string | null | undefined;
85
- modelId: string;
86
- attempts: any[];
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;
127
+ attempts: {
128
+ order: number;
129
+ status: string;
130
+ error: string | null;
131
+ timestamp: Date;
132
+ }[];
133
+ scope: import("../..").JOB_SCOPE;
134
+ userId: string | null;
135
+ unregisteredUserId: string | null;
93
136
  isDeleted: boolean;
94
- isFavorite: boolean;
95
- internalError: string | null;
96
- tokenReservationId?: string | null | undefined;
137
+ subJobs: {
138
+ uuid: string;
139
+ prompt: string;
140
+ title: string;
141
+ status: import("../..").JOB_STATUS;
142
+ error: string | null;
143
+ price: number;
144
+ previewUrl: string | null;
145
+ reaction: import("../..").USER_REACTION | null;
146
+ dislikeReason: string | null;
147
+ externalId: string | null;
148
+ params: {
149
+ aspectRatio: string;
150
+ attachedFiles: {
151
+ uuid: string;
152
+ url: string;
153
+ name: string;
154
+ mimeType: string;
155
+ type: string;
156
+ size: number;
157
+ duration?: number | null | undefined;
158
+ content?: string | null | undefined;
159
+ contentLength?: number | null | undefined;
160
+ }[];
161
+ enhancePrompt: boolean;
162
+ resolution?: import("..").IMAGE_GENERATION_RESOLUTION | undefined;
163
+ batching?: number | undefined;
164
+ };
165
+ output: string[];
166
+ presetId?: string | null | undefined;
167
+ modelId: string;
168
+ groupId: string | null;
169
+ attempts: {
170
+ order: number;
171
+ status: string;
172
+ error: string | null;
173
+ timestamp: Date;
174
+ }[];
175
+ userId?: string | null | undefined;
176
+ unregisteredUserId?: string | null | undefined;
177
+ isPublished: boolean;
178
+ origin: string;
179
+ callOrigin: import("@purpleschool/rugpt-lib-common").STATISTICS_CALL_ORIGIN;
180
+ postId: string | null;
181
+ isDeleted: boolean;
182
+ isFavorite: boolean;
183
+ internalError: string | null;
184
+ tokenReservationId?: string | null | undefined;
185
+ createdAt: Date;
186
+ updatedAt: Date;
187
+ }[];
97
188
  createdAt: Date;
189
+ completedAt: Date | null;
98
190
  updatedAt: Date;
99
191
  }, unknown>>>;
100
192
  code: z.ZodOptional<z.ZodString>;
@@ -11,5 +11,5 @@ var FindImageGenerationJobByIdQuery;
11
11
  userId: zod_1.z.uuid().nullable().optional(),
12
12
  unregisteredUserId: zod_1.z.uuid().nullable().optional(),
13
13
  });
14
- FindImageGenerationJobByIdQuery.ResponseSchema = (0, command_response_schema_1.ICommandResponseSchema)(models_1.ImageGenerationJobSchema);
14
+ FindImageGenerationJobByIdQuery.ResponseSchema = (0, command_response_schema_1.ICommandResponseSchema)(models_1.ImageGenerationGroupSchema);
15
15
  })(FindImageGenerationJobByIdQuery || (exports.FindImageGenerationJobByIdQuery = FindImageGenerationJobByIdQuery = {}));
@@ -1,7 +1,8 @@
1
1
  import { z } from 'zod';
2
2
  import { JOB_SCOPE } from '../../common';
3
+ import { IMAGE_GENERATION_GROUP_STATUS } from '../enums';
3
4
  import { STATISTICS_CALL_ORIGIN } from '@purpleschool/rugpt-lib-common';
4
- import { JOB_SORT, JOB_STATUS } from '../../tools';
5
+ import { JOB_SORT } from '../../tools';
5
6
  export declare namespace FindImageGenerationJobsQuery {
6
7
  const RequestSchema: z.ZodObject<{
7
8
  userId: z.ZodOptional<z.ZodUUID>;
@@ -10,7 +11,7 @@ export declare namespace FindImageGenerationJobsQuery {
10
11
  title: z.ZodOptional<z.ZodString>;
11
12
  isFavorite: z.ZodOptional<z.ZodCoercedBoolean<unknown>>;
12
13
  createdAtSortOrder: z.ZodDefault<z.ZodOptional<z.ZodEnum<typeof JOB_SORT>>>;
13
- status: z.ZodOptional<z.ZodEnum<typeof JOB_STATUS>>;
14
+ status: z.ZodOptional<z.ZodEnum<typeof IMAGE_GENERATION_GROUP_STATUS>>;
14
15
  limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
15
16
  offset: z.ZodOptional<z.ZodDefault<z.ZodCoercedNumber<unknown>>>;
16
17
  callOrigin: z.ZodOptional<z.ZodEnum<typeof STATISTICS_CALL_ORIGIN>>;
@@ -21,15 +22,13 @@ export declare namespace FindImageGenerationJobsQuery {
21
22
  data: z.ZodOptional<z.ZodType<{
22
23
  data: {
23
24
  uuid: string;
24
- prompt: string;
25
25
  title: string;
26
- status: JOB_STATUS;
26
+ prompt: string;
27
+ status: IMAGE_GENERATION_GROUP_STATUS;
27
28
  error: string | null;
29
+ modelId: string;
30
+ presetId: string | null;
28
31
  price: number;
29
- previewUrl: string | null;
30
- reaction: import("../..").USER_REACTION | null;
31
- dislikeReason: string | null;
32
- externalId: string | null;
33
32
  params: {
34
33
  aspectRatio: string;
35
34
  attachedFiles: {
@@ -47,21 +46,69 @@ export declare namespace FindImageGenerationJobsQuery {
47
46
  resolution?: import("..").IMAGE_GENERATION_RESOLUTION | undefined;
48
47
  batching?: number | undefined;
49
48
  };
50
- output: string[];
51
- presetId?: string | null | undefined;
52
- modelId: string;
53
- attempts: any[];
54
- userId?: string | null | undefined;
55
- unregisteredUserId?: string | null | undefined;
56
- isPublished: boolean;
57
- origin: string;
58
- callOrigin: STATISTICS_CALL_ORIGIN;
59
- postId: string | null;
49
+ attempts: {
50
+ order: number;
51
+ status: string;
52
+ error: string | null;
53
+ timestamp: Date;
54
+ }[];
55
+ scope: JOB_SCOPE;
56
+ userId: string | null;
57
+ unregisteredUserId: string | null;
60
58
  isDeleted: boolean;
61
- isFavorite: boolean;
62
- internalError: string | null;
63
- tokenReservationId?: string | null | undefined;
59
+ subJobs: {
60
+ uuid: string;
61
+ prompt: string;
62
+ title: string;
63
+ status: import("../..").JOB_STATUS;
64
+ error: string | null;
65
+ price: number;
66
+ previewUrl: string | null;
67
+ reaction: import("../..").USER_REACTION | null;
68
+ dislikeReason: string | null;
69
+ externalId: string | null;
70
+ params: {
71
+ aspectRatio: string;
72
+ attachedFiles: {
73
+ uuid: string;
74
+ url: string;
75
+ name: string;
76
+ mimeType: string;
77
+ type: string;
78
+ size: number;
79
+ duration?: number | null | undefined;
80
+ content?: string | null | undefined;
81
+ contentLength?: number | null | undefined;
82
+ }[];
83
+ enhancePrompt: boolean;
84
+ resolution?: import("..").IMAGE_GENERATION_RESOLUTION | undefined;
85
+ batching?: number | undefined;
86
+ };
87
+ output: string[];
88
+ presetId?: string | null | undefined;
89
+ modelId: string;
90
+ groupId: string | null;
91
+ attempts: {
92
+ order: number;
93
+ status: string;
94
+ error: string | null;
95
+ timestamp: Date;
96
+ }[];
97
+ userId?: string | null | undefined;
98
+ unregisteredUserId?: string | null | undefined;
99
+ isPublished: boolean;
100
+ origin: string;
101
+ callOrigin: STATISTICS_CALL_ORIGIN;
102
+ postId: string | null;
103
+ isDeleted: boolean;
104
+ isFavorite: boolean;
105
+ internalError: string | null;
106
+ tokenReservationId?: string | null | undefined;
107
+ createdAt: Date;
108
+ updatedAt: Date;
109
+ }[];
64
110
  createdAt: Date;
111
+ completedAt: Date | null;
65
112
  updatedAt: Date;
66
113
  }[];
67
114
  page: number;
@@ -70,15 +117,13 @@ export declare namespace FindImageGenerationJobsQuery {
70
117
  }, unknown, z.core.$ZodTypeInternals<{
71
118
  data: {
72
119
  uuid: string;
73
- prompt: string;
74
120
  title: string;
75
- status: JOB_STATUS;
121
+ prompt: string;
122
+ status: IMAGE_GENERATION_GROUP_STATUS;
76
123
  error: string | null;
124
+ modelId: string;
125
+ presetId: string | null;
77
126
  price: number;
78
- previewUrl: string | null;
79
- reaction: import("../..").USER_REACTION | null;
80
- dislikeReason: string | null;
81
- externalId: string | null;
82
127
  params: {
83
128
  aspectRatio: string;
84
129
  attachedFiles: {
@@ -96,21 +141,69 @@ export declare namespace FindImageGenerationJobsQuery {
96
141
  resolution?: import("..").IMAGE_GENERATION_RESOLUTION | undefined;
97
142
  batching?: number | undefined;
98
143
  };
99
- output: string[];
100
- presetId?: string | null | undefined;
101
- modelId: string;
102
- attempts: any[];
103
- userId?: string | null | undefined;
104
- unregisteredUserId?: string | null | undefined;
105
- isPublished: boolean;
106
- origin: string;
107
- callOrigin: STATISTICS_CALL_ORIGIN;
108
- postId: string | null;
144
+ attempts: {
145
+ order: number;
146
+ status: string;
147
+ error: string | null;
148
+ timestamp: Date;
149
+ }[];
150
+ scope: JOB_SCOPE;
151
+ userId: string | null;
152
+ unregisteredUserId: string | null;
109
153
  isDeleted: boolean;
110
- isFavorite: boolean;
111
- internalError: string | null;
112
- tokenReservationId?: string | null | undefined;
154
+ subJobs: {
155
+ uuid: string;
156
+ prompt: string;
157
+ title: string;
158
+ status: import("../..").JOB_STATUS;
159
+ error: string | null;
160
+ price: number;
161
+ previewUrl: string | null;
162
+ reaction: import("../..").USER_REACTION | null;
163
+ dislikeReason: string | null;
164
+ externalId: string | null;
165
+ params: {
166
+ aspectRatio: string;
167
+ attachedFiles: {
168
+ uuid: string;
169
+ url: string;
170
+ name: string;
171
+ mimeType: string;
172
+ type: string;
173
+ size: number;
174
+ duration?: number | null | undefined;
175
+ content?: string | null | undefined;
176
+ contentLength?: number | null | undefined;
177
+ }[];
178
+ enhancePrompt: boolean;
179
+ resolution?: import("..").IMAGE_GENERATION_RESOLUTION | undefined;
180
+ batching?: number | undefined;
181
+ };
182
+ output: string[];
183
+ presetId?: string | null | undefined;
184
+ modelId: string;
185
+ groupId: string | null;
186
+ attempts: {
187
+ order: number;
188
+ status: string;
189
+ error: string | null;
190
+ timestamp: Date;
191
+ }[];
192
+ userId?: string | null | undefined;
193
+ unregisteredUserId?: string | null | undefined;
194
+ isPublished: boolean;
195
+ origin: string;
196
+ callOrigin: STATISTICS_CALL_ORIGIN;
197
+ postId: string | null;
198
+ isDeleted: boolean;
199
+ isFavorite: boolean;
200
+ internalError: string | null;
201
+ tokenReservationId?: string | null | undefined;
202
+ createdAt: Date;
203
+ updatedAt: Date;
204
+ }[];
113
205
  createdAt: Date;
206
+ completedAt: Date | null;
114
207
  updatedAt: Date;
115
208
  }[];
116
209
  page: number;
@@ -5,6 +5,7 @@ const zod_1 = require("zod");
5
5
  const common_1 = require("../../common");
6
6
  const command_response_schema_1 = require("../../common/models/command-response.schema");
7
7
  const models_1 = require("../models");
8
+ const enums_1 = require("../enums");
8
9
  const rugpt_lib_common_1 = require("@purpleschool/rugpt-lib-common");
9
10
  const tools_1 = require("../../tools");
10
11
  var FindImageGenerationJobsQuery;
@@ -17,7 +18,7 @@ var FindImageGenerationJobsQuery;
17
18
  title: zod_1.z.string().optional(),
18
19
  isFavorite: zod_1.z.coerce.boolean().optional(),
19
20
  createdAtSortOrder: zod_1.z.enum(tools_1.JOB_SORT).optional().default(tools_1.JOB_SORT.DESC),
20
- status: zod_1.z.enum(tools_1.JOB_STATUS).optional(),
21
+ status: zod_1.z.enum(enums_1.IMAGE_GENERATION_GROUP_STATUS).optional(),
21
22
  limit: zod_1.z.coerce.number().min(1).optional(),
22
23
  offset: zod_1.z.coerce.number().min(0).default(0).optional(),
23
24
  callOrigin: zod_1.z.enum(rugpt_lib_common_1.STATISTICS_CALL_ORIGIN).optional(),
@@ -29,7 +30,7 @@ var FindImageGenerationJobsQuery;
29
30
  path: ['userId', 'unregisteredUserId'],
30
31
  });
31
32
  FindImageGenerationJobsQuery.ResponseSchema = (0, command_response_schema_1.ICommandResponseSchema)(zod_1.z.object({
32
- data: zod_1.z.array(models_1.ImageGenerationJobSchema),
33
+ data: zod_1.z.array(models_1.ImageGenerationGroupSchema),
33
34
  page: zod_1.z.number(),
34
35
  totalPages: zod_1.z.number(),
35
36
  total: zod_1.z.number(),
@@ -2,6 +2,7 @@ import { z } from 'zod';
2
2
  export declare const CreatePhotoSessionStyleReferenceSchema: z.ZodObject<{
3
3
  photoUrl: z.ZodString;
4
4
  thumbnailUrl: z.ZodString;
5
+ systemPrompt: z.ZodString;
5
6
  order: z.ZodNumber;
6
7
  }, z.core.$strip>;
7
8
  export declare namespace CreatePhotoSessionStyleCommand {
@@ -13,6 +14,7 @@ export declare namespace CreatePhotoSessionStyleCommand {
13
14
  references: z.ZodArray<z.ZodObject<{
14
15
  photoUrl: z.ZodString;
15
16
  thumbnailUrl: z.ZodString;
17
+ systemPrompt: z.ZodString;
16
18
  order: z.ZodNumber;
17
19
  }, z.core.$strip>>;
18
20
  }, z.core.$strip>;
@@ -29,6 +31,7 @@ export declare namespace CreatePhotoSessionStyleCommand {
29
31
  styleId: string;
30
32
  photoUrl: string;
31
33
  thumbnailUrl: string;
34
+ systemPrompt: string;
32
35
  order: number;
33
36
  createdAt: Date;
34
37
  updatedAt: Date;
@@ -45,6 +48,7 @@ export declare namespace CreatePhotoSessionStyleCommand {
45
48
  styleId: string;
46
49
  photoUrl: string;
47
50
  thumbnailUrl: string;
51
+ systemPrompt: string;
48
52
  order: number;
49
53
  createdAt: Date;
50
54
  updatedAt: Date;
@@ -8,6 +8,7 @@ const models_1 = require("../../models");
8
8
  exports.CreatePhotoSessionStyleReferenceSchema = zod_1.z.object({
9
9
  photoUrl: zod_1.z.string(),
10
10
  thumbnailUrl: zod_1.z.string(),
11
+ systemPrompt: zod_1.z.string().trim().min(1).max(10000),
11
12
  order: zod_1.z.number().int().min(0).max(5),
12
13
  });
13
14
  var CreatePhotoSessionStyleCommand;
@@ -9,6 +9,7 @@ export declare namespace UpdatePhotoSessionStyleCommand {
9
9
  references: z.ZodOptional<z.ZodArray<z.ZodObject<{
10
10
  photoUrl: z.ZodString;
11
11
  thumbnailUrl: z.ZodString;
12
+ systemPrompt: z.ZodString;
12
13
  order: z.ZodNumber;
13
14
  }, z.core.$strip>>>;
14
15
  }, z.core.$strip>;
@@ -25,6 +26,7 @@ export declare namespace UpdatePhotoSessionStyleCommand {
25
26
  styleId: string;
26
27
  photoUrl: string;
27
28
  thumbnailUrl: string;
29
+ systemPrompt: string;
28
30
  order: number;
29
31
  createdAt: Date;
30
32
  updatedAt: Date;
@@ -41,6 +43,7 @@ export declare namespace UpdatePhotoSessionStyleCommand {
41
43
  styleId: string;
42
44
  photoUrl: string;
43
45
  thumbnailUrl: string;
46
+ systemPrompt: string;
44
47
  order: number;
45
48
  createdAt: Date;
46
49
  updatedAt: Date;
@@ -1,4 +1,5 @@
1
1
  export declare enum PHOTO_SESSION_STRATEGY {
2
2
  NANO_BANANA_IMAGE_GENERATION = "NANO_BANANA_IMAGE_GENERATION",
3
- OPENAI_IMAGE_2_GENERATION = "OPENAI_IMAGE_2_GENERATION"
3
+ OPENAI_IMAGE_2_GENERATION = "OPENAI_IMAGE_2_GENERATION",
4
+ KIE_SEEDREAM_IMAGE_GENERATION = "KIE_SEEDREAM_IMAGE_GENERATION"
4
5
  }
@@ -5,4 +5,5 @@ var PHOTO_SESSION_STRATEGY;
5
5
  (function (PHOTO_SESSION_STRATEGY) {
6
6
  PHOTO_SESSION_STRATEGY["NANO_BANANA_IMAGE_GENERATION"] = "NANO_BANANA_IMAGE_GENERATION";
7
7
  PHOTO_SESSION_STRATEGY["OPENAI_IMAGE_2_GENERATION"] = "OPENAI_IMAGE_2_GENERATION";
8
+ PHOTO_SESSION_STRATEGY["KIE_SEEDREAM_IMAGE_GENERATION"] = "KIE_SEEDREAM_IMAGE_GENERATION";
8
9
  })(PHOTO_SESSION_STRATEGY || (exports.PHOTO_SESSION_STRATEGY = PHOTO_SESSION_STRATEGY = {}));
@@ -52,6 +52,8 @@ export declare const PhotoSessionConfigSchema: z.ZodObject<{
52
52
  code: z.ZodString;
53
53
  title: z.ZodString;
54
54
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
55
+ createdAt: z.ZodCoercedDate<unknown>;
56
+ updatedAt: z.ZodCoercedDate<unknown>;
55
57
  references: z.ZodArray<z.ZodObject<{
56
58
  uuid: z.ZodUUID;
57
59
  styleId: z.ZodUUID;
@@ -61,8 +63,6 @@ export declare const PhotoSessionConfigSchema: z.ZodObject<{
61
63
  createdAt: z.ZodCoercedDate<unknown>;
62
64
  updatedAt: z.ZodCoercedDate<unknown>;
63
65
  }, z.core.$strip>>;
64
- createdAt: z.ZodCoercedDate<unknown>;
65
- updatedAt: z.ZodCoercedDate<unknown>;
66
66
  }, z.core.$strip>>;
67
67
  looks: z.ZodArray<z.ZodObject<{
68
68
  type: z.ZodEnum<typeof PHOTO_SESSION_LOOK_TYPE>;
@@ -11,6 +11,6 @@ exports.PhotoSessionLookCategorySchema = zod_1.z.object({
11
11
  });
12
12
  exports.PhotoSessionConfigSchema = zod_1.z.object({
13
13
  models: zod_1.z.array(photo_session_model_schema_1.PhotoSessionModelSchema),
14
- styles: zod_1.z.array(photo_session_style_schema_1.PhotoSessionStyleSchema),
14
+ styles: zod_1.z.array(photo_session_style_schema_1.PhotoSessionPublicStyleSchema),
15
15
  looks: zod_1.z.array(exports.PhotoSessionLookCategorySchema),
16
16
  });
@@ -4,6 +4,7 @@ export declare const PhotoSessionStyleReferenceSchema: z.ZodObject<{
4
4
  styleId: z.ZodUUID;
5
5
  photoUrl: z.ZodString;
6
6
  thumbnailUrl: z.ZodString;
7
+ systemPrompt: z.ZodString;
7
8
  order: z.ZodNumber;
8
9
  createdAt: z.ZodCoercedDate<unknown>;
9
10
  updatedAt: z.ZodCoercedDate<unknown>;
@@ -19,6 +20,7 @@ export declare const PhotoSessionStyleSchema: z.ZodObject<{
19
20
  styleId: z.ZodUUID;
20
21
  photoUrl: z.ZodString;
21
22
  thumbnailUrl: z.ZodString;
23
+ systemPrompt: z.ZodString;
22
24
  order: z.ZodNumber;
23
25
  createdAt: z.ZodCoercedDate<unknown>;
24
26
  updatedAt: z.ZodCoercedDate<unknown>;
@@ -27,3 +29,31 @@ export declare const PhotoSessionStyleSchema: z.ZodObject<{
27
29
  updatedAt: z.ZodCoercedDate<unknown>;
28
30
  }, z.core.$strip>;
29
31
  export type PhotoSessionStyle = z.infer<typeof PhotoSessionStyleSchema>;
32
+ export declare const PhotoSessionPublicStyleReferenceSchema: z.ZodObject<{
33
+ uuid: z.ZodUUID;
34
+ styleId: z.ZodUUID;
35
+ photoUrl: z.ZodString;
36
+ thumbnailUrl: z.ZodString;
37
+ order: z.ZodNumber;
38
+ createdAt: z.ZodCoercedDate<unknown>;
39
+ updatedAt: z.ZodCoercedDate<unknown>;
40
+ }, z.core.$strip>;
41
+ export type PhotoSessionPublicStyleReference = z.infer<typeof PhotoSessionPublicStyleReferenceSchema>;
42
+ export declare const PhotoSessionPublicStyleSchema: z.ZodObject<{
43
+ uuid: z.ZodUUID;
44
+ code: z.ZodString;
45
+ title: z.ZodString;
46
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
47
+ createdAt: z.ZodCoercedDate<unknown>;
48
+ updatedAt: z.ZodCoercedDate<unknown>;
49
+ references: z.ZodArray<z.ZodObject<{
50
+ uuid: z.ZodUUID;
51
+ styleId: z.ZodUUID;
52
+ photoUrl: z.ZodString;
53
+ thumbnailUrl: z.ZodString;
54
+ order: z.ZodNumber;
55
+ createdAt: z.ZodCoercedDate<unknown>;
56
+ updatedAt: z.ZodCoercedDate<unknown>;
57
+ }, z.core.$strip>>;
58
+ }, z.core.$strip>;
59
+ export type PhotoSessionPublicStyle = z.infer<typeof PhotoSessionPublicStyleSchema>;
@@ -1,12 +1,13 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PhotoSessionStyleSchema = exports.PhotoSessionStyleReferenceSchema = void 0;
3
+ exports.PhotoSessionPublicStyleSchema = exports.PhotoSessionPublicStyleReferenceSchema = exports.PhotoSessionStyleSchema = exports.PhotoSessionStyleReferenceSchema = void 0;
4
4
  const zod_1 = require("zod");
5
5
  exports.PhotoSessionStyleReferenceSchema = zod_1.z.object({
6
6
  uuid: zod_1.z.uuid(),
7
7
  styleId: zod_1.z.uuid(),
8
8
  photoUrl: zod_1.z.string(),
9
9
  thumbnailUrl: zod_1.z.string(),
10
+ systemPrompt: zod_1.z.string(),
10
11
  order: zod_1.z.number().int().min(0).max(5),
11
12
  createdAt: zod_1.z.coerce.date(),
12
13
  updatedAt: zod_1.z.coerce.date(),
@@ -20,3 +21,11 @@ exports.PhotoSessionStyleSchema = zod_1.z.object({
20
21
  createdAt: zod_1.z.coerce.date(),
21
22
  updatedAt: zod_1.z.coerce.date(),
22
23
  });
24
+ exports.PhotoSessionPublicStyleReferenceSchema = exports.PhotoSessionStyleReferenceSchema.omit({
25
+ systemPrompt: true,
26
+ });
27
+ exports.PhotoSessionPublicStyleSchema = exports.PhotoSessionStyleSchema.omit({
28
+ references: true,
29
+ }).extend({
30
+ references: zod_1.z.array(exports.PhotoSessionPublicStyleReferenceSchema),
31
+ });