@purpleschool/gptbot-tools 0.2.80 → 0.2.81

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 (50) 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/commands/photo-sessions.command.d.ts +4 -0
  29. package/build/photo-sessions/commands/retry-photo-sessions-job.command.d.ts +4 -0
  30. package/build/photo-sessions/commands/set-reaction-to-photo-sessions-job.command.d.ts +4 -0
  31. package/build/photo-sessions/commands/update-photo-sessions-job-favorite.command.d.ts +4 -0
  32. package/build/photo-sessions/commands/update-photo-sessions-job-title.command.d.ts +4 -0
  33. package/build/photo-sessions/commands/update-published-status-photo-sessions-jobs.command.d.ts +4 -0
  34. package/build/photo-sessions/enums/photo-session-strategy.enum.d.ts +1 -1
  35. package/build/photo-sessions/enums/photo-session-strategy.enum.js +1 -1
  36. package/build/photo-sessions/models/photo-session-config.schema.d.ts +2 -2
  37. package/build/photo-sessions/models/photo-session-config.schema.js +1 -1
  38. package/build/photo-sessions/models/photo-session-group.schema.d.ts +2 -0
  39. package/build/photo-sessions/models/photo-session-job.schema.d.ts +4 -0
  40. package/build/photo-sessions/models/photo-session-job.schema.js +2 -0
  41. package/build/photo-sessions/models/photo-session-style.schema.d.ts +30 -0
  42. package/build/photo-sessions/models/photo-session-style.schema.js +10 -1
  43. package/build/photo-sessions/queries/find-photo-session-style-by-id.query.d.ts +2 -0
  44. package/build/photo-sessions/queries/find-photo-session-styles.query.d.ts +2 -0
  45. package/build/photo-sessions/queries/find-photo-sessions-job-by-id.query.d.ts +4 -0
  46. package/build/photo-sessions/queries/find-photo-sessions-jobs.query.d.ts +4 -0
  47. package/build/photo-sessions/queries/get-photo-sessions-config.query.d.ts +4 -4
  48. package/build/tools/models/global-tools-config.schema.d.ts +2 -2
  49. package/build/tools/queries/get-global-tools-config.query.d.ts +4 -4
  50. package/package.json +1 -1
@@ -5,5 +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_GPT_IMAGE_2_EDITOR"] = "KIE_GPT_IMAGE_2_EDITOR";
8
+ PHOTO_SESSION_STRATEGY["KIE_SEEDREAM_IMAGE_GENERATION"] = "KIE_SEEDREAM_IMAGE_GENERATION";
9
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
  });
@@ -47,6 +47,8 @@ export declare const PhotoSessionGroupSchema: z.ZodObject<{
47
47
  styleReferenceImageUrl: z.ZodOptional<z.ZodString>;
48
48
  styleId: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
49
49
  referenceId: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
50
+ referenceOrder: z.ZodOptional<z.ZodNumber>;
51
+ generatedReferenceImageUrl: z.ZodOptional<z.ZodString>;
50
52
  photosCount: z.ZodOptional<z.ZodNumber>;
51
53
  clothingPhotos: z.ZodOptional<z.ZodArray<z.ZodObject<{
52
54
  uuid: z.ZodString;
@@ -16,6 +16,8 @@ export declare const PhotoSessionJobParamsSchema: z.ZodObject<{
16
16
  styleReferenceImageUrl: z.ZodOptional<z.ZodString>;
17
17
  styleId: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
18
18
  referenceId: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
19
+ referenceOrder: z.ZodOptional<z.ZodNumber>;
20
+ generatedReferenceImageUrl: z.ZodOptional<z.ZodString>;
19
21
  photosCount: z.ZodOptional<z.ZodNumber>;
20
22
  clothingPhotos: z.ZodOptional<z.ZodArray<z.ZodObject<{
21
23
  uuid: z.ZodString;
@@ -97,6 +99,8 @@ export declare const PhotoSessionJobSchema: z.ZodObject<{
97
99
  styleReferenceImageUrl: z.ZodOptional<z.ZodString>;
98
100
  styleId: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
99
101
  referenceId: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
102
+ referenceOrder: z.ZodOptional<z.ZodNumber>;
103
+ generatedReferenceImageUrl: z.ZodOptional<z.ZodString>;
100
104
  photosCount: z.ZodOptional<z.ZodNumber>;
101
105
  clothingPhotos: z.ZodOptional<z.ZodArray<z.ZodObject<{
102
106
  uuid: z.ZodString;
@@ -14,6 +14,8 @@ exports.PhotoSessionJobParamsSchema = zod_1.z.object({
14
14
  styleReferenceImageUrl: zod_1.z.string().optional(),
15
15
  styleId: zod_1.z.uuid().nullable().optional(),
16
16
  referenceId: zod_1.z.uuid().nullable().optional(),
17
+ referenceOrder: zod_1.z.number().int().min(0).max(5).optional(),
18
+ generatedReferenceImageUrl: zod_1.z.string().optional(),
17
19
  photosCount: zod_1.z.number().int().min(1).max(6).optional(),
18
20
  clothingPhotos: zod_1.z.array(common_1.AttachedFileSchema).max(2).optional(),
19
21
  hairstylePhotos: zod_1.z.array(common_1.AttachedFileSchema).max(2).optional(),
@@ -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
+ });
@@ -17,6 +17,7 @@ export declare namespace FindPhotoSessionStyleByIdQuery {
17
17
  styleId: string;
18
18
  photoUrl: string;
19
19
  thumbnailUrl: string;
20
+ systemPrompt: string;
20
21
  order: number;
21
22
  createdAt: Date;
22
23
  updatedAt: Date;
@@ -33,6 +34,7 @@ export declare namespace FindPhotoSessionStyleByIdQuery {
33
34
  styleId: string;
34
35
  photoUrl: string;
35
36
  thumbnailUrl: string;
37
+ systemPrompt: string;
36
38
  order: number;
37
39
  createdAt: Date;
38
40
  updatedAt: Date;
@@ -19,6 +19,7 @@ export declare namespace FindPhotoSessionStylesQuery {
19
19
  styleId: string;
20
20
  photoUrl: string;
21
21
  thumbnailUrl: string;
22
+ systemPrompt: string;
22
23
  order: number;
23
24
  createdAt: Date;
24
25
  updatedAt: Date;
@@ -40,6 +41,7 @@ export declare namespace FindPhotoSessionStylesQuery {
40
41
  styleId: string;
41
42
  photoUrl: string;
42
43
  thumbnailUrl: string;
44
+ systemPrompt: string;
43
45
  order: number;
44
46
  createdAt: Date;
45
47
  updatedAt: Date;
@@ -50,6 +50,8 @@ export declare namespace FindPhotoSessionsJobByIdQuery {
50
50
  styleReferenceImageUrl?: string | undefined;
51
51
  styleId?: string | null | undefined;
52
52
  referenceId?: string | null | undefined;
53
+ referenceOrder?: number | undefined;
54
+ generatedReferenceImageUrl?: string | undefined;
53
55
  photosCount?: number | undefined;
54
56
  clothingPhotos?: {
55
57
  uuid: string;
@@ -150,6 +152,8 @@ export declare namespace FindPhotoSessionsJobByIdQuery {
150
152
  styleReferenceImageUrl?: string | undefined;
151
153
  styleId?: string | null | undefined;
152
154
  referenceId?: string | null | undefined;
155
+ referenceOrder?: number | undefined;
156
+ generatedReferenceImageUrl?: string | undefined;
153
157
  photosCount?: number | undefined;
154
158
  clothingPhotos?: {
155
159
  uuid: string;
@@ -60,6 +60,8 @@ export declare namespace FindPhotoSessionsJobsQuery {
60
60
  styleReferenceImageUrl?: string | undefined;
61
61
  styleId?: string | null | undefined;
62
62
  referenceId?: string | null | undefined;
63
+ referenceOrder?: number | undefined;
64
+ generatedReferenceImageUrl?: string | undefined;
63
65
  photosCount?: number | undefined;
64
66
  clothingPhotos?: {
65
67
  uuid: string;
@@ -165,6 +167,8 @@ export declare namespace FindPhotoSessionsJobsQuery {
165
167
  styleReferenceImageUrl?: string | undefined;
166
168
  styleId?: string | null | undefined;
167
169
  referenceId?: string | null | undefined;
170
+ referenceOrder?: number | undefined;
171
+ generatedReferenceImageUrl?: string | undefined;
168
172
  photosCount?: number | undefined;
169
173
  clothingPhotos?: {
170
174
  uuid: string;
@@ -54,6 +54,8 @@ export declare namespace GetPhotoSessionsConfigQuery {
54
54
  code: string;
55
55
  title: string;
56
56
  description?: string | null | undefined;
57
+ createdAt: Date;
58
+ updatedAt: Date;
57
59
  references: {
58
60
  uuid: string;
59
61
  styleId: string;
@@ -63,8 +65,6 @@ export declare namespace GetPhotoSessionsConfigQuery {
63
65
  createdAt: Date;
64
66
  updatedAt: Date;
65
67
  }[];
66
- createdAt: Date;
67
- updatedAt: Date;
68
68
  }[];
69
69
  looks: {
70
70
  type: import("..").PHOTO_SESSION_LOOK_TYPE;
@@ -118,6 +118,8 @@ export declare namespace GetPhotoSessionsConfigQuery {
118
118
  code: string;
119
119
  title: string;
120
120
  description?: string | null | undefined;
121
+ createdAt: Date;
122
+ updatedAt: Date;
121
123
  references: {
122
124
  uuid: string;
123
125
  styleId: string;
@@ -127,8 +129,6 @@ export declare namespace GetPhotoSessionsConfigQuery {
127
129
  createdAt: Date;
128
130
  updatedAt: Date;
129
131
  }[];
130
- createdAt: Date;
131
- updatedAt: Date;
132
132
  }[];
133
133
  looks: {
134
134
  type: import("..").PHOTO_SESSION_LOOK_TYPE;
@@ -971,6 +971,8 @@ export declare const GlobalToolsConfigSchema: z.ZodObject<{
971
971
  code: z.ZodString;
972
972
  title: z.ZodString;
973
973
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
974
+ createdAt: z.ZodCoercedDate<unknown>;
975
+ updatedAt: z.ZodCoercedDate<unknown>;
974
976
  references: z.ZodArray<z.ZodObject<{
975
977
  uuid: z.ZodUUID;
976
978
  styleId: z.ZodUUID;
@@ -980,8 +982,6 @@ export declare const GlobalToolsConfigSchema: z.ZodObject<{
980
982
  createdAt: z.ZodCoercedDate<unknown>;
981
983
  updatedAt: z.ZodCoercedDate<unknown>;
982
984
  }, z.core.$strip>>;
983
- createdAt: z.ZodCoercedDate<unknown>;
984
- updatedAt: z.ZodCoercedDate<unknown>;
985
985
  }, z.core.$strip>>;
986
986
  looks: z.ZodArray<z.ZodObject<{
987
987
  type: z.ZodEnum<typeof import("../..").PHOTO_SESSION_LOOK_TYPE>;
@@ -978,6 +978,8 @@ export declare namespace GetGlobalToolsConfigQuery {
978
978
  code: string;
979
979
  title: string;
980
980
  description?: string | null | undefined;
981
+ createdAt: Date;
982
+ updatedAt: Date;
981
983
  references: {
982
984
  uuid: string;
983
985
  styleId: string;
@@ -987,8 +989,6 @@ export declare namespace GetGlobalToolsConfigQuery {
987
989
  createdAt: Date;
988
990
  updatedAt: Date;
989
991
  }[];
990
- createdAt: Date;
991
- updatedAt: Date;
992
992
  }[];
993
993
  looks: {
994
994
  type: import("../..").PHOTO_SESSION_LOOK_TYPE;
@@ -2050,6 +2050,8 @@ export declare namespace GetGlobalToolsConfigQuery {
2050
2050
  code: string;
2051
2051
  title: string;
2052
2052
  description?: string | null | undefined;
2053
+ createdAt: Date;
2054
+ updatedAt: Date;
2053
2055
  references: {
2054
2056
  uuid: string;
2055
2057
  styleId: string;
@@ -2059,8 +2061,6 @@ export declare namespace GetGlobalToolsConfigQuery {
2059
2061
  createdAt: Date;
2060
2062
  updatedAt: Date;
2061
2063
  }[];
2062
- createdAt: Date;
2063
- updatedAt: Date;
2064
2064
  }[];
2065
2065
  looks: {
2066
2066
  type: import("../..").PHOTO_SESSION_LOOK_TYPE;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@purpleschool/gptbot-tools",
3
- "version": "0.2.80",
3
+ "version": "0.2.81",
4
4
  "main": "build/index.js",
5
5
  "types": "build/index.d.ts",
6
6
  "files": [