@purpleschool/gptbot-tools 0.2.80-stage-2 → 0.2.80
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 +38 -131
- package/build/image-generation/commands/execute-image-generation.command.js +1 -2
- package/build/image-generation/commands/forward-image-generation-job.command.d.ts +2 -15
- package/build/image-generation/commands/forward-image-generation-job.command.js +0 -1
- package/build/image-generation/commands/retry-image-generation-job.command.d.ts +2 -14
- package/build/image-generation/commands/save-image-generation-job.command.d.ts +2 -14
- package/build/image-generation/commands/set-reaction-to-image-generation-job.command.d.ts +2 -14
- package/build/image-generation/commands/update-image-generation-job-favorite.command.d.ts +2 -14
- package/build/image-generation/commands/update-image-generation-job-title.command.d.ts +2 -14
- package/build/image-generation/commands/update-published-status-image-generation-jobs.command.d.ts +2 -14
- package/build/image-generation/enums/index.d.ts +0 -1
- package/build/image-generation/enums/index.js +0 -1
- package/build/image-generation/models/image-generation-job.schema.d.ts +3 -9
- package/build/image-generation/models/image-generation-job.schema.js +3 -9
- package/build/image-generation/models/index.d.ts +0 -1
- package/build/image-generation/models/index.js +0 -1
- package/build/image-generation/queries/find-image-generation-job-by-id.query.d.ts +38 -130
- 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 +40 -133
- package/build/image-generation/queries/find-image-generation-jobs.query.js +2 -3
- package/build/photo-sessions/commands/admin/create-photo-session-style.command.d.ts +0 -4
- package/build/photo-sessions/commands/admin/create-photo-session-style.command.js +0 -1
- package/build/photo-sessions/commands/admin/update-photo-session-style.command.d.ts +0 -3
- 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-style.schema.d.ts +0 -30
- package/build/photo-sessions/models/photo-session-style.schema.js +1 -10
- package/build/photo-sessions/queries/find-photo-session-style-by-id.query.d.ts +0 -2
- package/build/photo-sessions/queries/find-photo-session-styles.query.d.ts +0 -2
- 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
- package/build/image-generation/enums/image-generation-group-status.enum.d.ts +0 -6
- package/build/image-generation/enums/image-generation-group-status.enum.js +0 -10
- package/build/image-generation/models/image-generation-group.schema.d.ts +0 -95
- package/build/image-generation/models/image-generation-group.schema.js +0 -33
|
@@ -10,13 +10,15 @@ export declare namespace FindImageGenerationJobByIdQuery {
|
|
|
10
10
|
isSuccess: z.ZodBoolean;
|
|
11
11
|
data: z.ZodOptional<z.ZodType<{
|
|
12
12
|
uuid: string;
|
|
13
|
-
title: string;
|
|
14
13
|
prompt: string;
|
|
15
|
-
|
|
14
|
+
title: string;
|
|
15
|
+
status: import("../..").JOB_STATUS;
|
|
16
16
|
error: string | null;
|
|
17
|
-
modelId: string;
|
|
18
|
-
presetId: string | null;
|
|
19
17
|
price: number;
|
|
18
|
+
previewUrl: string | null;
|
|
19
|
+
reaction: import("../..").USER_REACTION | null;
|
|
20
|
+
dislikeReason: string | null;
|
|
21
|
+
externalId: string | null;
|
|
20
22
|
params: {
|
|
21
23
|
aspectRatio: string;
|
|
22
24
|
attachedFiles: {
|
|
@@ -34,79 +36,33 @@ export declare namespace FindImageGenerationJobByIdQuery {
|
|
|
34
36
|
resolution?: import("..").IMAGE_GENERATION_RESOLUTION | undefined;
|
|
35
37
|
batching?: number | undefined;
|
|
36
38
|
};
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
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;
|
|
46
49
|
isDeleted: boolean;
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
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
|
-
}[];
|
|
50
|
+
isFavorite: boolean;
|
|
51
|
+
internalError: string | null;
|
|
52
|
+
tokenReservationId?: string | null | undefined;
|
|
98
53
|
createdAt: Date;
|
|
99
|
-
completedAt: Date | null;
|
|
100
54
|
updatedAt: Date;
|
|
101
55
|
}, unknown, z.core.$ZodTypeInternals<{
|
|
102
56
|
uuid: string;
|
|
103
|
-
title: string;
|
|
104
57
|
prompt: string;
|
|
105
|
-
|
|
58
|
+
title: string;
|
|
59
|
+
status: import("../..").JOB_STATUS;
|
|
106
60
|
error: string | null;
|
|
107
|
-
modelId: string;
|
|
108
|
-
presetId: string | null;
|
|
109
61
|
price: number;
|
|
62
|
+
previewUrl: string | null;
|
|
63
|
+
reaction: import("../..").USER_REACTION | null;
|
|
64
|
+
dislikeReason: string | null;
|
|
65
|
+
externalId: string | null;
|
|
110
66
|
params: {
|
|
111
67
|
aspectRatio: string;
|
|
112
68
|
attachedFiles: {
|
|
@@ -124,69 +80,21 @@ export declare namespace FindImageGenerationJobByIdQuery {
|
|
|
124
80
|
resolution?: import("..").IMAGE_GENERATION_RESOLUTION | undefined;
|
|
125
81
|
batching?: number | undefined;
|
|
126
82
|
};
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
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;
|
|
136
93
|
isDeleted: boolean;
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
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
|
-
}[];
|
|
94
|
+
isFavorite: boolean;
|
|
95
|
+
internalError: string | null;
|
|
96
|
+
tokenReservationId?: string | null | undefined;
|
|
188
97
|
createdAt: Date;
|
|
189
|
-
completedAt: Date | null;
|
|
190
98
|
updatedAt: Date;
|
|
191
99
|
}, unknown>>>;
|
|
192
100
|
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.
|
|
14
|
+
FindImageGenerationJobByIdQuery.ResponseSchema = (0, command_response_schema_1.ICommandResponseSchema)(models_1.ImageGenerationJobSchema);
|
|
15
15
|
})(FindImageGenerationJobByIdQuery || (exports.FindImageGenerationJobByIdQuery = FindImageGenerationJobByIdQuery = {}));
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { JOB_SCOPE } from '../../common';
|
|
3
|
-
import { IMAGE_GENERATION_GROUP_STATUS } from '../enums';
|
|
4
3
|
import { STATISTICS_CALL_ORIGIN } from '@purpleschool/rugpt-lib-common';
|
|
5
|
-
import { JOB_SORT } from '../../tools';
|
|
4
|
+
import { JOB_SORT, JOB_STATUS } from '../../tools';
|
|
6
5
|
export declare namespace FindImageGenerationJobsQuery {
|
|
7
6
|
const RequestSchema: z.ZodObject<{
|
|
8
7
|
userId: z.ZodOptional<z.ZodUUID>;
|
|
@@ -11,7 +10,7 @@ export declare namespace FindImageGenerationJobsQuery {
|
|
|
11
10
|
title: z.ZodOptional<z.ZodString>;
|
|
12
11
|
isFavorite: z.ZodOptional<z.ZodCoercedBoolean<unknown>>;
|
|
13
12
|
createdAtSortOrder: z.ZodDefault<z.ZodOptional<z.ZodEnum<typeof JOB_SORT>>>;
|
|
14
|
-
status: z.ZodOptional<z.ZodEnum<typeof
|
|
13
|
+
status: z.ZodOptional<z.ZodEnum<typeof JOB_STATUS>>;
|
|
15
14
|
limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
16
15
|
offset: z.ZodOptional<z.ZodDefault<z.ZodCoercedNumber<unknown>>>;
|
|
17
16
|
callOrigin: z.ZodOptional<z.ZodEnum<typeof STATISTICS_CALL_ORIGIN>>;
|
|
@@ -22,13 +21,15 @@ export declare namespace FindImageGenerationJobsQuery {
|
|
|
22
21
|
data: z.ZodOptional<z.ZodType<{
|
|
23
22
|
data: {
|
|
24
23
|
uuid: string;
|
|
25
|
-
title: string;
|
|
26
24
|
prompt: string;
|
|
27
|
-
|
|
25
|
+
title: string;
|
|
26
|
+
status: JOB_STATUS;
|
|
28
27
|
error: string | null;
|
|
29
|
-
modelId: string;
|
|
30
|
-
presetId: string | null;
|
|
31
28
|
price: number;
|
|
29
|
+
previewUrl: string | null;
|
|
30
|
+
reaction: import("../..").USER_REACTION | null;
|
|
31
|
+
dislikeReason: string | null;
|
|
32
|
+
externalId: string | null;
|
|
32
33
|
params: {
|
|
33
34
|
aspectRatio: string;
|
|
34
35
|
attachedFiles: {
|
|
@@ -46,69 +47,21 @@ export declare namespace FindImageGenerationJobsQuery {
|
|
|
46
47
|
resolution?: import("..").IMAGE_GENERATION_RESOLUTION | undefined;
|
|
47
48
|
batching?: number | undefined;
|
|
48
49
|
};
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
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;
|
|
58
60
|
isDeleted: boolean;
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
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
|
-
}[];
|
|
61
|
+
isFavorite: boolean;
|
|
62
|
+
internalError: string | null;
|
|
63
|
+
tokenReservationId?: string | null | undefined;
|
|
110
64
|
createdAt: Date;
|
|
111
|
-
completedAt: Date | null;
|
|
112
65
|
updatedAt: Date;
|
|
113
66
|
}[];
|
|
114
67
|
page: number;
|
|
@@ -117,13 +70,15 @@ export declare namespace FindImageGenerationJobsQuery {
|
|
|
117
70
|
}, unknown, z.core.$ZodTypeInternals<{
|
|
118
71
|
data: {
|
|
119
72
|
uuid: string;
|
|
120
|
-
title: string;
|
|
121
73
|
prompt: string;
|
|
122
|
-
|
|
74
|
+
title: string;
|
|
75
|
+
status: JOB_STATUS;
|
|
123
76
|
error: string | null;
|
|
124
|
-
modelId: string;
|
|
125
|
-
presetId: string | null;
|
|
126
77
|
price: number;
|
|
78
|
+
previewUrl: string | null;
|
|
79
|
+
reaction: import("../..").USER_REACTION | null;
|
|
80
|
+
dislikeReason: string | null;
|
|
81
|
+
externalId: string | null;
|
|
127
82
|
params: {
|
|
128
83
|
aspectRatio: string;
|
|
129
84
|
attachedFiles: {
|
|
@@ -141,69 +96,21 @@ export declare namespace FindImageGenerationJobsQuery {
|
|
|
141
96
|
resolution?: import("..").IMAGE_GENERATION_RESOLUTION | undefined;
|
|
142
97
|
batching?: number | undefined;
|
|
143
98
|
};
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
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;
|
|
153
109
|
isDeleted: boolean;
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
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
|
-
}[];
|
|
110
|
+
isFavorite: boolean;
|
|
111
|
+
internalError: string | null;
|
|
112
|
+
tokenReservationId?: string | null | undefined;
|
|
205
113
|
createdAt: Date;
|
|
206
|
-
completedAt: Date | null;
|
|
207
114
|
updatedAt: Date;
|
|
208
115
|
}[];
|
|
209
116
|
page: number;
|
|
@@ -5,7 +5,6 @@ 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");
|
|
9
8
|
const rugpt_lib_common_1 = require("@purpleschool/rugpt-lib-common");
|
|
10
9
|
const tools_1 = require("../../tools");
|
|
11
10
|
var FindImageGenerationJobsQuery;
|
|
@@ -18,7 +17,7 @@ var FindImageGenerationJobsQuery;
|
|
|
18
17
|
title: zod_1.z.string().optional(),
|
|
19
18
|
isFavorite: zod_1.z.coerce.boolean().optional(),
|
|
20
19
|
createdAtSortOrder: zod_1.z.enum(tools_1.JOB_SORT).optional().default(tools_1.JOB_SORT.DESC),
|
|
21
|
-
status: zod_1.z.enum(
|
|
20
|
+
status: zod_1.z.enum(tools_1.JOB_STATUS).optional(),
|
|
22
21
|
limit: zod_1.z.coerce.number().min(1).optional(),
|
|
23
22
|
offset: zod_1.z.coerce.number().min(0).default(0).optional(),
|
|
24
23
|
callOrigin: zod_1.z.enum(rugpt_lib_common_1.STATISTICS_CALL_ORIGIN).optional(),
|
|
@@ -30,7 +29,7 @@ var FindImageGenerationJobsQuery;
|
|
|
30
29
|
path: ['userId', 'unregisteredUserId'],
|
|
31
30
|
});
|
|
32
31
|
FindImageGenerationJobsQuery.ResponseSchema = (0, command_response_schema_1.ICommandResponseSchema)(zod_1.z.object({
|
|
33
|
-
data: zod_1.z.array(models_1.
|
|
32
|
+
data: zod_1.z.array(models_1.ImageGenerationJobSchema),
|
|
34
33
|
page: zod_1.z.number(),
|
|
35
34
|
totalPages: zod_1.z.number(),
|
|
36
35
|
total: zod_1.z.number(),
|
|
@@ -2,7 +2,6 @@ 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;
|
|
6
5
|
order: z.ZodNumber;
|
|
7
6
|
}, z.core.$strip>;
|
|
8
7
|
export declare namespace CreatePhotoSessionStyleCommand {
|
|
@@ -14,7 +13,6 @@ export declare namespace CreatePhotoSessionStyleCommand {
|
|
|
14
13
|
references: z.ZodArray<z.ZodObject<{
|
|
15
14
|
photoUrl: z.ZodString;
|
|
16
15
|
thumbnailUrl: z.ZodString;
|
|
17
|
-
systemPrompt: z.ZodString;
|
|
18
16
|
order: z.ZodNumber;
|
|
19
17
|
}, z.core.$strip>>;
|
|
20
18
|
}, z.core.$strip>;
|
|
@@ -31,7 +29,6 @@ export declare namespace CreatePhotoSessionStyleCommand {
|
|
|
31
29
|
styleId: string;
|
|
32
30
|
photoUrl: string;
|
|
33
31
|
thumbnailUrl: string;
|
|
34
|
-
systemPrompt: string;
|
|
35
32
|
order: number;
|
|
36
33
|
createdAt: Date;
|
|
37
34
|
updatedAt: Date;
|
|
@@ -48,7 +45,6 @@ export declare namespace CreatePhotoSessionStyleCommand {
|
|
|
48
45
|
styleId: string;
|
|
49
46
|
photoUrl: string;
|
|
50
47
|
thumbnailUrl: string;
|
|
51
|
-
systemPrompt: string;
|
|
52
48
|
order: number;
|
|
53
49
|
createdAt: Date;
|
|
54
50
|
updatedAt: Date;
|
|
@@ -8,7 +8,6 @@ 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),
|
|
12
11
|
order: zod_1.z.number().int().min(0).max(5),
|
|
13
12
|
});
|
|
14
13
|
var CreatePhotoSessionStyleCommand;
|
|
@@ -9,7 +9,6 @@ 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;
|
|
13
12
|
order: z.ZodNumber;
|
|
14
13
|
}, z.core.$strip>>>;
|
|
15
14
|
}, z.core.$strip>;
|
|
@@ -26,7 +25,6 @@ export declare namespace UpdatePhotoSessionStyleCommand {
|
|
|
26
25
|
styleId: string;
|
|
27
26
|
photoUrl: string;
|
|
28
27
|
thumbnailUrl: string;
|
|
29
|
-
systemPrompt: string;
|
|
30
28
|
order: number;
|
|
31
29
|
createdAt: Date;
|
|
32
30
|
updatedAt: Date;
|
|
@@ -43,7 +41,6 @@ export declare namespace UpdatePhotoSessionStyleCommand {
|
|
|
43
41
|
styleId: string;
|
|
44
42
|
photoUrl: string;
|
|
45
43
|
thumbnailUrl: string;
|
|
46
|
-
systemPrompt: string;
|
|
47
44
|
order: number;
|
|
48
45
|
createdAt: Date;
|
|
49
46
|
updatedAt: Date;
|
|
@@ -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_GPT_IMAGE_2_EDITOR = "KIE_GPT_IMAGE_2_EDITOR"
|
|
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_GPT_IMAGE_2_EDITOR"] = "KIE_GPT_IMAGE_2_EDITOR";
|
|
9
9
|
})(PHOTO_SESSION_STRATEGY || (exports.PHOTO_SESSION_STRATEGY = PHOTO_SESSION_STRATEGY = {}));
|
|
@@ -52,8 +52,6 @@ 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>;
|
|
57
55
|
references: z.ZodArray<z.ZodObject<{
|
|
58
56
|
uuid: z.ZodUUID;
|
|
59
57
|
styleId: z.ZodUUID;
|
|
@@ -63,6 +61,8 @@ export declare const PhotoSessionConfigSchema: z.ZodObject<{
|
|
|
63
61
|
createdAt: z.ZodCoercedDate<unknown>;
|
|
64
62
|
updatedAt: z.ZodCoercedDate<unknown>;
|
|
65
63
|
}, 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.PhotoSessionStyleSchema),
|
|
15
15
|
looks: zod_1.z.array(exports.PhotoSessionLookCategorySchema),
|
|
16
16
|
});
|
|
@@ -4,7 +4,6 @@ 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;
|
|
8
7
|
order: z.ZodNumber;
|
|
9
8
|
createdAt: z.ZodCoercedDate<unknown>;
|
|
10
9
|
updatedAt: z.ZodCoercedDate<unknown>;
|
|
@@ -20,7 +19,6 @@ export declare const PhotoSessionStyleSchema: z.ZodObject<{
|
|
|
20
19
|
styleId: z.ZodUUID;
|
|
21
20
|
photoUrl: z.ZodString;
|
|
22
21
|
thumbnailUrl: z.ZodString;
|
|
23
|
-
systemPrompt: z.ZodString;
|
|
24
22
|
order: z.ZodNumber;
|
|
25
23
|
createdAt: z.ZodCoercedDate<unknown>;
|
|
26
24
|
updatedAt: z.ZodCoercedDate<unknown>;
|
|
@@ -29,31 +27,3 @@ export declare const PhotoSessionStyleSchema: z.ZodObject<{
|
|
|
29
27
|
updatedAt: z.ZodCoercedDate<unknown>;
|
|
30
28
|
}, z.core.$strip>;
|
|
31
29
|
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,13 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
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(),
|
|
11
10
|
order: zod_1.z.number().int().min(0).max(5),
|
|
12
11
|
createdAt: zod_1.z.coerce.date(),
|
|
13
12
|
updatedAt: zod_1.z.coerce.date(),
|
|
@@ -21,11 +20,3 @@ exports.PhotoSessionStyleSchema = zod_1.z.object({
|
|
|
21
20
|
createdAt: zod_1.z.coerce.date(),
|
|
22
21
|
updatedAt: zod_1.z.coerce.date(),
|
|
23
22
|
});
|
|
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,7 +17,6 @@ export declare namespace FindPhotoSessionStyleByIdQuery {
|
|
|
17
17
|
styleId: string;
|
|
18
18
|
photoUrl: string;
|
|
19
19
|
thumbnailUrl: string;
|
|
20
|
-
systemPrompt: string;
|
|
21
20
|
order: number;
|
|
22
21
|
createdAt: Date;
|
|
23
22
|
updatedAt: Date;
|
|
@@ -34,7 +33,6 @@ export declare namespace FindPhotoSessionStyleByIdQuery {
|
|
|
34
33
|
styleId: string;
|
|
35
34
|
photoUrl: string;
|
|
36
35
|
thumbnailUrl: string;
|
|
37
|
-
systemPrompt: string;
|
|
38
36
|
order: number;
|
|
39
37
|
createdAt: Date;
|
|
40
38
|
updatedAt: Date;
|