@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.
- package/build/image-generation/commands/execute-image-generation.command.d.ts +131 -36
- package/build/image-generation/commands/execute-image-generation.command.js +2 -1
- package/build/image-generation/commands/forward-image-generation-job.command.d.ts +15 -2
- package/build/image-generation/commands/forward-image-generation-job.command.js +1 -0
- package/build/image-generation/commands/retry-image-generation-job.command.d.ts +14 -2
- package/build/image-generation/commands/save-image-generation-job.command.d.ts +14 -2
- package/build/image-generation/commands/set-reaction-to-image-generation-job.command.d.ts +14 -2
- package/build/image-generation/commands/update-image-generation-job-favorite.command.d.ts +130 -36
- package/build/image-generation/commands/update-image-generation-job-favorite.command.js +2 -2
- package/build/image-generation/commands/update-image-generation-job-title.command.d.ts +14 -2
- package/build/image-generation/commands/update-published-status-image-generation-jobs.command.d.ts +14 -2
- package/build/image-generation/enums/image-generation-group-status.enum.d.ts +6 -0
- package/build/image-generation/enums/image-generation-group-status.enum.js +10 -0
- package/build/image-generation/enums/index.d.ts +1 -0
- package/build/image-generation/enums/index.js +1 -0
- package/build/image-generation/models/image-generation-group.schema.d.ts +96 -0
- package/build/image-generation/models/image-generation-group.schema.js +34 -0
- package/build/image-generation/models/image-generation-job.schema.d.ts +9 -3
- package/build/image-generation/models/image-generation-job.schema.js +9 -3
- package/build/image-generation/models/index.d.ts +1 -0
- package/build/image-generation/models/index.js +1 -0
- package/build/image-generation/queries/find-image-generation-job-by-id.query.d.ts +130 -36
- package/build/image-generation/queries/find-image-generation-job-by-id.query.js +1 -1
- package/build/image-generation/queries/find-image-generation-jobs.query.d.ts +133 -38
- package/build/image-generation/queries/find-image-generation-jobs.query.js +3 -2
- package/build/photo-sessions/commands/admin/create-photo-session-style.command.d.ts +4 -0
- package/build/photo-sessions/commands/admin/create-photo-session-style.command.js +1 -0
- package/build/photo-sessions/commands/admin/update-photo-session-style.command.d.ts +3 -0
- package/build/photo-sessions/commands/photo-sessions.command.d.ts +4 -0
- package/build/photo-sessions/commands/retry-photo-sessions-job.command.d.ts +4 -0
- package/build/photo-sessions/commands/set-reaction-to-photo-sessions-job.command.d.ts +4 -0
- package/build/photo-sessions/commands/update-photo-sessions-job-favorite.command.d.ts +4 -0
- package/build/photo-sessions/commands/update-photo-sessions-job-title.command.d.ts +4 -0
- package/build/photo-sessions/commands/update-published-status-photo-sessions-jobs.command.d.ts +4 -0
- package/build/photo-sessions/enums/photo-session-strategy.enum.d.ts +1 -1
- package/build/photo-sessions/enums/photo-session-strategy.enum.js +1 -1
- package/build/photo-sessions/models/photo-session-config.schema.d.ts +2 -2
- package/build/photo-sessions/models/photo-session-config.schema.js +1 -1
- package/build/photo-sessions/models/photo-session-group.schema.d.ts +2 -0
- package/build/photo-sessions/models/photo-session-job.schema.d.ts +4 -0
- package/build/photo-sessions/models/photo-session-job.schema.js +2 -0
- package/build/photo-sessions/models/photo-session-style.schema.d.ts +30 -0
- package/build/photo-sessions/models/photo-session-style.schema.js +10 -1
- package/build/photo-sessions/queries/find-photo-session-style-by-id.query.d.ts +2 -0
- package/build/photo-sessions/queries/find-photo-session-styles.query.d.ts +2 -0
- package/build/photo-sessions/queries/find-photo-sessions-job-by-id.query.d.ts +4 -0
- package/build/photo-sessions/queries/find-photo-sessions-jobs.query.d.ts +4 -0
- package/build/photo-sessions/queries/get-photo-sessions-config.query.d.ts +4 -4
- package/build/tools/models/global-tools-config.schema.d.ts +2 -2
- package/build/tools/queries/get-global-tools-config.query.d.ts +4 -4
- package/package.json +1 -1
|
@@ -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;
|
|
@@ -106,6 +106,8 @@ export declare namespace PhotoSessionsCommand {
|
|
|
106
106
|
styleReferenceImageUrl?: string | undefined;
|
|
107
107
|
styleId?: string | null | undefined;
|
|
108
108
|
referenceId?: string | null | undefined;
|
|
109
|
+
referenceOrder?: number | undefined;
|
|
110
|
+
generatedReferenceImageUrl?: string | undefined;
|
|
109
111
|
photosCount?: number | undefined;
|
|
110
112
|
clothingPhotos?: {
|
|
111
113
|
uuid: string;
|
|
@@ -206,6 +208,8 @@ export declare namespace PhotoSessionsCommand {
|
|
|
206
208
|
styleReferenceImageUrl?: string | undefined;
|
|
207
209
|
styleId?: string | null | undefined;
|
|
208
210
|
referenceId?: string | null | undefined;
|
|
211
|
+
referenceOrder?: number | undefined;
|
|
212
|
+
generatedReferenceImageUrl?: string | undefined;
|
|
209
213
|
photosCount?: number | undefined;
|
|
210
214
|
clothingPhotos?: {
|
|
211
215
|
uuid: string;
|
|
@@ -36,6 +36,8 @@ export declare namespace RetryPhotoSessionsJobCommand {
|
|
|
36
36
|
styleReferenceImageUrl?: string | undefined;
|
|
37
37
|
styleId?: string | null | undefined;
|
|
38
38
|
referenceId?: string | null | undefined;
|
|
39
|
+
referenceOrder?: number | undefined;
|
|
40
|
+
generatedReferenceImageUrl?: string | undefined;
|
|
39
41
|
photosCount?: number | undefined;
|
|
40
42
|
clothingPhotos?: {
|
|
41
43
|
uuid: string;
|
|
@@ -117,6 +119,8 @@ export declare namespace RetryPhotoSessionsJobCommand {
|
|
|
117
119
|
styleReferenceImageUrl?: string | undefined;
|
|
118
120
|
styleId?: string | null | undefined;
|
|
119
121
|
referenceId?: string | null | undefined;
|
|
122
|
+
referenceOrder?: number | undefined;
|
|
123
|
+
generatedReferenceImageUrl?: string | undefined;
|
|
120
124
|
photosCount?: number | undefined;
|
|
121
125
|
clothingPhotos?: {
|
|
122
126
|
uuid: string;
|
|
@@ -38,6 +38,8 @@ export declare namespace SetReactionToPhotoSessionsJobCommand {
|
|
|
38
38
|
styleReferenceImageUrl?: string | undefined;
|
|
39
39
|
styleId?: string | null | undefined;
|
|
40
40
|
referenceId?: string | null | undefined;
|
|
41
|
+
referenceOrder?: number | undefined;
|
|
42
|
+
generatedReferenceImageUrl?: string | undefined;
|
|
41
43
|
photosCount?: number | undefined;
|
|
42
44
|
clothingPhotos?: {
|
|
43
45
|
uuid: string;
|
|
@@ -119,6 +121,8 @@ export declare namespace SetReactionToPhotoSessionsJobCommand {
|
|
|
119
121
|
styleReferenceImageUrl?: string | undefined;
|
|
120
122
|
styleId?: string | null | undefined;
|
|
121
123
|
referenceId?: string | null | undefined;
|
|
124
|
+
referenceOrder?: number | undefined;
|
|
125
|
+
generatedReferenceImageUrl?: string | undefined;
|
|
122
126
|
photosCount?: number | undefined;
|
|
123
127
|
clothingPhotos?: {
|
|
124
128
|
uuid: string;
|
|
@@ -36,6 +36,8 @@ export declare namespace UpdatePhotoSessionsJobFavoriteCommand {
|
|
|
36
36
|
styleReferenceImageUrl?: string | undefined;
|
|
37
37
|
styleId?: string | null | undefined;
|
|
38
38
|
referenceId?: string | null | undefined;
|
|
39
|
+
referenceOrder?: number | undefined;
|
|
40
|
+
generatedReferenceImageUrl?: string | undefined;
|
|
39
41
|
photosCount?: number | undefined;
|
|
40
42
|
clothingPhotos?: {
|
|
41
43
|
uuid: string;
|
|
@@ -117,6 +119,8 @@ export declare namespace UpdatePhotoSessionsJobFavoriteCommand {
|
|
|
117
119
|
styleReferenceImageUrl?: string | undefined;
|
|
118
120
|
styleId?: string | null | undefined;
|
|
119
121
|
referenceId?: string | null | undefined;
|
|
122
|
+
referenceOrder?: number | undefined;
|
|
123
|
+
generatedReferenceImageUrl?: string | undefined;
|
|
120
124
|
photosCount?: number | undefined;
|
|
121
125
|
clothingPhotos?: {
|
|
122
126
|
uuid: string;
|
|
@@ -51,6 +51,8 @@ export declare namespace UpdatePhotoSessionsJobTitleCommand {
|
|
|
51
51
|
styleReferenceImageUrl?: string | undefined;
|
|
52
52
|
styleId?: string | null | undefined;
|
|
53
53
|
referenceId?: string | null | undefined;
|
|
54
|
+
referenceOrder?: number | undefined;
|
|
55
|
+
generatedReferenceImageUrl?: string | undefined;
|
|
54
56
|
photosCount?: number | undefined;
|
|
55
57
|
clothingPhotos?: {
|
|
56
58
|
uuid: string;
|
|
@@ -151,6 +153,8 @@ export declare namespace UpdatePhotoSessionsJobTitleCommand {
|
|
|
151
153
|
styleReferenceImageUrl?: string | undefined;
|
|
152
154
|
styleId?: string | null | undefined;
|
|
153
155
|
referenceId?: string | null | undefined;
|
|
156
|
+
referenceOrder?: number | undefined;
|
|
157
|
+
generatedReferenceImageUrl?: string | undefined;
|
|
154
158
|
photosCount?: number | undefined;
|
|
155
159
|
clothingPhotos?: {
|
|
156
160
|
uuid: string;
|
package/build/photo-sessions/commands/update-published-status-photo-sessions-jobs.command.d.ts
CHANGED
|
@@ -41,6 +41,8 @@ export declare namespace UpdatePublishedStatusPhotoSessionsJobsCommand {
|
|
|
41
41
|
styleReferenceImageUrl?: string | undefined;
|
|
42
42
|
styleId?: string | null | undefined;
|
|
43
43
|
referenceId?: string | null | undefined;
|
|
44
|
+
referenceOrder?: number | undefined;
|
|
45
|
+
generatedReferenceImageUrl?: string | undefined;
|
|
44
46
|
photosCount?: number | undefined;
|
|
45
47
|
clothingPhotos?: {
|
|
46
48
|
uuid: string;
|
|
@@ -122,6 +124,8 @@ export declare namespace UpdatePublishedStatusPhotoSessionsJobsCommand {
|
|
|
122
124
|
styleReferenceImageUrl?: string | undefined;
|
|
123
125
|
styleId?: string | null | undefined;
|
|
124
126
|
referenceId?: string | null | undefined;
|
|
127
|
+
referenceOrder?: number | undefined;
|
|
128
|
+
generatedReferenceImageUrl?: string | undefined;
|
|
125
129
|
photosCount?: number | undefined;
|
|
126
130
|
clothingPhotos?: {
|
|
127
131
|
uuid: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare enum PHOTO_SESSION_STRATEGY {
|
|
2
2
|
NANO_BANANA_IMAGE_GENERATION = "NANO_BANANA_IMAGE_GENERATION",
|
|
3
3
|
OPENAI_IMAGE_2_GENERATION = "OPENAI_IMAGE_2_GENERATION",
|
|
4
|
-
|
|
4
|
+
KIE_SEEDREAM_IMAGE_GENERATION = "KIE_SEEDREAM_IMAGE_GENERATION"
|
|
5
5
|
}
|
|
@@ -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["
|
|
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.
|
|
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;
|