@purpleschool/gptbot-tools 0.2.82 → 0.2.83
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/tool-workspace/models/tool-workspace-contents.schema.d.ts +1 -0
- package/build/tool-workspace/models/tool-workspace-item.schema.d.ts +1 -0
- package/build/tool-workspace/models/tool-workspace-job.schema.d.ts +1 -0
- package/build/tool-workspace/queries/find-tool-workspace-by-uuid.query.d.ts +2 -0
- package/build/video/commands/retry-video-job.command.d.ts +2 -0
- package/build/video/commands/set-reaction-to-video-job.command.d.ts +2 -0
- package/build/video/commands/update-published-status-video-jobs.command.d.ts +2 -0
- package/build/video/commands/update-video-job-favorite.command.d.ts +118 -32
- package/build/video/commands/update-video-job-favorite.command.js +2 -2
- package/build/video/commands/update-video-job-title.command.d.ts +2 -0
- package/build/video/commands/video.command.d.ts +119 -32
- package/build/video/commands/video.command.js +3 -2
- package/build/video/enums/index.d.ts +1 -0
- package/build/video/enums/index.js +1 -0
- package/build/video/enums/video-group-status.enum.d.ts +6 -0
- package/build/video/enums/video-group-status.enum.js +10 -0
- package/build/video/models/index.d.ts +1 -0
- package/build/video/models/index.js +1 -0
- package/build/video/models/video-group.schema.d.ts +93 -0
- package/build/video/models/video-group.schema.js +32 -0
- package/build/video/models/video-job.schema.d.ts +1 -0
- package/build/video/models/video-job.schema.js +1 -0
- package/build/video/queries/find-video-job-by-id.query.d.ts +118 -32
- package/build/video/queries/find-video-job-by-id.query.js +2 -2
- package/build/video/queries/find-video-jobs.query.d.ts +120 -34
- package/build/video/queries/find-video-jobs.query.js +4 -4
- package/package.json +1 -1
|
@@ -137,6 +137,7 @@ export declare const ToolWorkspaceContentsSchema: z.ZodObject<{
|
|
|
137
137
|
status: z.ZodEnum<typeof import("../..").JOB_STATUS>;
|
|
138
138
|
error: z.ZodNullable<z.ZodString>;
|
|
139
139
|
modelId: z.ZodString;
|
|
140
|
+
groupId: z.ZodNullable<z.ZodString>;
|
|
140
141
|
price: z.ZodNumber;
|
|
141
142
|
params: z.ZodObject<{
|
|
142
143
|
imageUrls: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
@@ -127,6 +127,7 @@ export declare const ToolWorkspaceItemSchema: z.ZodObject<{
|
|
|
127
127
|
status: z.ZodEnum<typeof import("../..").JOB_STATUS>;
|
|
128
128
|
error: z.ZodNullable<z.ZodString>;
|
|
129
129
|
modelId: z.ZodString;
|
|
130
|
+
groupId: z.ZodNullable<z.ZodString>;
|
|
130
131
|
price: z.ZodNumber;
|
|
131
132
|
params: z.ZodObject<{
|
|
132
133
|
imageUrls: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
@@ -120,6 +120,7 @@ export declare const ToolWorkspaceJobSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
120
120
|
status: z.ZodEnum<typeof import("../..").JOB_STATUS>;
|
|
121
121
|
error: z.ZodNullable<z.ZodString>;
|
|
122
122
|
modelId: z.ZodString;
|
|
123
|
+
groupId: z.ZodNullable<z.ZodString>;
|
|
123
124
|
price: z.ZodNumber;
|
|
124
125
|
params: z.ZodObject<{
|
|
125
126
|
imageUrls: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
@@ -146,6 +146,7 @@ export declare namespace FindToolWorkspaceByUuidQuery {
|
|
|
146
146
|
status: import("../..").JOB_STATUS;
|
|
147
147
|
error: string | null;
|
|
148
148
|
modelId: string;
|
|
149
|
+
groupId: string | null;
|
|
149
150
|
price: number;
|
|
150
151
|
params: {
|
|
151
152
|
imageUrls?: string[] | undefined;
|
|
@@ -321,6 +322,7 @@ export declare namespace FindToolWorkspaceByUuidQuery {
|
|
|
321
322
|
status: import("../..").JOB_STATUS;
|
|
322
323
|
error: string | null;
|
|
323
324
|
modelId: string;
|
|
325
|
+
groupId: string | null;
|
|
324
326
|
price: number;
|
|
325
327
|
params: {
|
|
326
328
|
imageUrls?: string[] | undefined;
|
|
@@ -57,6 +57,7 @@ export declare namespace RetryVideoJobCommand {
|
|
|
57
57
|
status: import("../..").JOB_STATUS;
|
|
58
58
|
error: string | null;
|
|
59
59
|
modelId: string;
|
|
60
|
+
groupId: string | null;
|
|
60
61
|
price: number;
|
|
61
62
|
params: {
|
|
62
63
|
imageUrls?: string[] | undefined;
|
|
@@ -102,6 +103,7 @@ export declare namespace RetryVideoJobCommand {
|
|
|
102
103
|
status: import("../..").JOB_STATUS;
|
|
103
104
|
error: string | null;
|
|
104
105
|
modelId: string;
|
|
106
|
+
groupId: string | null;
|
|
105
107
|
price: number;
|
|
106
108
|
params: {
|
|
107
109
|
imageUrls?: string[] | undefined;
|
|
@@ -24,6 +24,7 @@ export declare namespace SetReactionToVideoJobCommand {
|
|
|
24
24
|
status: import("../..").JOB_STATUS;
|
|
25
25
|
error: string | null;
|
|
26
26
|
modelId: string;
|
|
27
|
+
groupId: string | null;
|
|
27
28
|
price: number;
|
|
28
29
|
params: {
|
|
29
30
|
imageUrls?: string[] | undefined;
|
|
@@ -69,6 +70,7 @@ export declare namespace SetReactionToVideoJobCommand {
|
|
|
69
70
|
status: import("../..").JOB_STATUS;
|
|
70
71
|
error: string | null;
|
|
71
72
|
modelId: string;
|
|
73
|
+
groupId: string | null;
|
|
72
74
|
price: number;
|
|
73
75
|
params: {
|
|
74
76
|
imageUrls?: string[] | undefined;
|
|
@@ -27,6 +27,7 @@ export declare namespace UpdatePublishedStatusVideoJobsCommand {
|
|
|
27
27
|
status: import("../..").JOB_STATUS;
|
|
28
28
|
error: string | null;
|
|
29
29
|
modelId: string;
|
|
30
|
+
groupId: string | null;
|
|
30
31
|
price: number;
|
|
31
32
|
params: {
|
|
32
33
|
imageUrls?: string[] | undefined;
|
|
@@ -72,6 +73,7 @@ export declare namespace UpdatePublishedStatusVideoJobsCommand {
|
|
|
72
73
|
status: import("../..").JOB_STATUS;
|
|
73
74
|
error: string | null;
|
|
74
75
|
modelId: string;
|
|
76
|
+
groupId: string | null;
|
|
75
77
|
price: number;
|
|
76
78
|
params: {
|
|
77
79
|
imageUrls?: string[] | undefined;
|
|
@@ -11,15 +11,9 @@ export declare namespace UpdateVideoJobFavoriteCommand {
|
|
|
11
11
|
isSuccess: z.ZodBoolean;
|
|
12
12
|
data: z.ZodOptional<z.ZodType<{
|
|
13
13
|
uuid: string;
|
|
14
|
-
prompt: string;
|
|
15
|
-
reaction: import("../..").USER_REACTION | null;
|
|
16
|
-
isPublished: boolean;
|
|
17
|
-
publishModerationStatus: import("..").VIDEO_PUBLISH_MODERATION_STATUS;
|
|
18
|
-
postId: string | null;
|
|
19
|
-
dislikeReason: string | null;
|
|
20
|
-
externalId: string | null;
|
|
21
14
|
title: string;
|
|
22
|
-
|
|
15
|
+
prompt: string;
|
|
16
|
+
status: import("..").VIDEO_GROUP_STATUS;
|
|
23
17
|
error: string | null;
|
|
24
18
|
modelId: string;
|
|
25
19
|
price: number;
|
|
@@ -42,29 +36,72 @@ export declare namespace UpdateVideoJobFavoriteCommand {
|
|
|
42
36
|
multiShots?: boolean | undefined;
|
|
43
37
|
batching?: number | undefined;
|
|
44
38
|
};
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
39
|
+
attempts: {
|
|
40
|
+
order: number;
|
|
41
|
+
status: string;
|
|
42
|
+
error: string | null;
|
|
43
|
+
timestamp: Date;
|
|
44
|
+
}[];
|
|
45
|
+
scope: import("../..").JOB_SCOPE;
|
|
46
|
+
userId: string | null;
|
|
47
|
+
unregisteredUserId: string | null;
|
|
52
48
|
isDeleted: boolean;
|
|
53
49
|
isFavorite: boolean;
|
|
50
|
+
subJobs: {
|
|
51
|
+
uuid: string;
|
|
52
|
+
prompt: string;
|
|
53
|
+
reaction: import("../..").USER_REACTION | null;
|
|
54
|
+
isPublished: boolean;
|
|
55
|
+
publishModerationStatus: import("..").VIDEO_PUBLISH_MODERATION_STATUS;
|
|
56
|
+
postId: string | null;
|
|
57
|
+
dislikeReason: string | null;
|
|
58
|
+
externalId: string | null;
|
|
59
|
+
title: string;
|
|
60
|
+
status: import("../..").JOB_STATUS;
|
|
61
|
+
error: string | null;
|
|
62
|
+
modelId: string;
|
|
63
|
+
groupId: string | null;
|
|
64
|
+
price: number;
|
|
65
|
+
params: {
|
|
66
|
+
imageUrls?: string[] | undefined;
|
|
67
|
+
imageIds?: string[] | undefined;
|
|
68
|
+
referenceImages?: string[] | undefined;
|
|
69
|
+
referenceImageIds?: string[] | undefined;
|
|
70
|
+
firstFrameUrl?: string | undefined;
|
|
71
|
+
lastFrameUrl?: string | undefined;
|
|
72
|
+
audioUrls?: string[] | undefined;
|
|
73
|
+
audioIds?: string[] | undefined;
|
|
74
|
+
firstFrameId?: string | undefined;
|
|
75
|
+
lastFrameId?: string | undefined;
|
|
76
|
+
duration: number;
|
|
77
|
+
aspectRatio?: string | undefined;
|
|
78
|
+
quality?: string | undefined;
|
|
79
|
+
resolution?: string | undefined;
|
|
80
|
+
sound?: boolean | undefined;
|
|
81
|
+
multiShots?: boolean | undefined;
|
|
82
|
+
batching?: number | undefined;
|
|
83
|
+
};
|
|
84
|
+
videoUrl: string | null;
|
|
85
|
+
previewUrl: string | null;
|
|
86
|
+
attempts: any[];
|
|
87
|
+
userId?: string | null | undefined;
|
|
88
|
+
unregisteredUserId?: string | null | undefined;
|
|
89
|
+
tokenReservationId?: string | null | undefined;
|
|
90
|
+
workspaceId?: string | null | undefined;
|
|
91
|
+
isDeleted: boolean;
|
|
92
|
+
isFavorite: boolean;
|
|
93
|
+
createdAt: Date;
|
|
94
|
+
completedAt?: Date | null | undefined;
|
|
95
|
+
updatedAt: Date;
|
|
96
|
+
}[];
|
|
54
97
|
createdAt: Date;
|
|
55
|
-
completedAt
|
|
98
|
+
completedAt: Date | null;
|
|
56
99
|
updatedAt: Date;
|
|
57
100
|
}, unknown, z.core.$ZodTypeInternals<{
|
|
58
101
|
uuid: string;
|
|
59
|
-
prompt: string;
|
|
60
|
-
reaction: import("../..").USER_REACTION | null;
|
|
61
|
-
isPublished: boolean;
|
|
62
|
-
publishModerationStatus: import("..").VIDEO_PUBLISH_MODERATION_STATUS;
|
|
63
|
-
postId: string | null;
|
|
64
|
-
dislikeReason: string | null;
|
|
65
|
-
externalId: string | null;
|
|
66
102
|
title: string;
|
|
67
|
-
|
|
103
|
+
prompt: string;
|
|
104
|
+
status: import("..").VIDEO_GROUP_STATUS;
|
|
68
105
|
error: string | null;
|
|
69
106
|
modelId: string;
|
|
70
107
|
price: number;
|
|
@@ -87,17 +124,66 @@ export declare namespace UpdateVideoJobFavoriteCommand {
|
|
|
87
124
|
multiShots?: boolean | undefined;
|
|
88
125
|
batching?: number | undefined;
|
|
89
126
|
};
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
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;
|
|
97
136
|
isDeleted: boolean;
|
|
98
137
|
isFavorite: boolean;
|
|
138
|
+
subJobs: {
|
|
139
|
+
uuid: string;
|
|
140
|
+
prompt: string;
|
|
141
|
+
reaction: import("../..").USER_REACTION | null;
|
|
142
|
+
isPublished: boolean;
|
|
143
|
+
publishModerationStatus: import("..").VIDEO_PUBLISH_MODERATION_STATUS;
|
|
144
|
+
postId: string | null;
|
|
145
|
+
dislikeReason: string | null;
|
|
146
|
+
externalId: string | null;
|
|
147
|
+
title: string;
|
|
148
|
+
status: import("../..").JOB_STATUS;
|
|
149
|
+
error: string | null;
|
|
150
|
+
modelId: string;
|
|
151
|
+
groupId: string | null;
|
|
152
|
+
price: number;
|
|
153
|
+
params: {
|
|
154
|
+
imageUrls?: string[] | undefined;
|
|
155
|
+
imageIds?: string[] | undefined;
|
|
156
|
+
referenceImages?: string[] | undefined;
|
|
157
|
+
referenceImageIds?: string[] | undefined;
|
|
158
|
+
firstFrameUrl?: string | undefined;
|
|
159
|
+
lastFrameUrl?: string | undefined;
|
|
160
|
+
audioUrls?: string[] | undefined;
|
|
161
|
+
audioIds?: string[] | undefined;
|
|
162
|
+
firstFrameId?: string | undefined;
|
|
163
|
+
lastFrameId?: string | undefined;
|
|
164
|
+
duration: number;
|
|
165
|
+
aspectRatio?: string | undefined;
|
|
166
|
+
quality?: string | undefined;
|
|
167
|
+
resolution?: string | undefined;
|
|
168
|
+
sound?: boolean | undefined;
|
|
169
|
+
multiShots?: boolean | undefined;
|
|
170
|
+
batching?: number | undefined;
|
|
171
|
+
};
|
|
172
|
+
videoUrl: string | null;
|
|
173
|
+
previewUrl: string | null;
|
|
174
|
+
attempts: any[];
|
|
175
|
+
userId?: string | null | undefined;
|
|
176
|
+
unregisteredUserId?: string | null | undefined;
|
|
177
|
+
tokenReservationId?: string | null | undefined;
|
|
178
|
+
workspaceId?: string | null | undefined;
|
|
179
|
+
isDeleted: boolean;
|
|
180
|
+
isFavorite: boolean;
|
|
181
|
+
createdAt: Date;
|
|
182
|
+
completedAt?: Date | null | undefined;
|
|
183
|
+
updatedAt: Date;
|
|
184
|
+
}[];
|
|
99
185
|
createdAt: Date;
|
|
100
|
-
completedAt
|
|
186
|
+
completedAt: Date | null;
|
|
101
187
|
updatedAt: Date;
|
|
102
188
|
}, unknown>>>;
|
|
103
189
|
code: z.ZodOptional<z.ZodString>;
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.UpdateVideoJobFavoriteCommand = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const command_response_schema_1 = require("../../common/models/command-response.schema");
|
|
6
|
-
const
|
|
6
|
+
const video_group_schema_1 = require("../models/video-group.schema");
|
|
7
7
|
var UpdateVideoJobFavoriteCommand;
|
|
8
8
|
(function (UpdateVideoJobFavoriteCommand) {
|
|
9
9
|
UpdateVideoJobFavoriteCommand.RequestSchema = zod_1.z.object({
|
|
@@ -12,5 +12,5 @@ var UpdateVideoJobFavoriteCommand;
|
|
|
12
12
|
unregisteredUserId: zod_1.z.uuid().nullable().optional(),
|
|
13
13
|
isFavorite: zod_1.z.boolean(),
|
|
14
14
|
});
|
|
15
|
-
UpdateVideoJobFavoriteCommand.ResponseSchema = (0, command_response_schema_1.ICommandResponseSchema)(
|
|
15
|
+
UpdateVideoJobFavoriteCommand.ResponseSchema = (0, command_response_schema_1.ICommandResponseSchema)(video_group_schema_1.VideoGroupSchema);
|
|
16
16
|
})(UpdateVideoJobFavoriteCommand || (exports.UpdateVideoJobFavoriteCommand = UpdateVideoJobFavoriteCommand = {}));
|
|
@@ -22,6 +22,7 @@ export declare namespace UpdateVideoJobTitleCommand {
|
|
|
22
22
|
status: import("../..").JOB_STATUS;
|
|
23
23
|
error: string | null;
|
|
24
24
|
modelId: string;
|
|
25
|
+
groupId: string | null;
|
|
25
26
|
price: number;
|
|
26
27
|
params: {
|
|
27
28
|
imageUrls?: string[] | undefined;
|
|
@@ -67,6 +68,7 @@ export declare namespace UpdateVideoJobTitleCommand {
|
|
|
67
68
|
status: import("../..").JOB_STATUS;
|
|
68
69
|
error: string | null;
|
|
69
70
|
modelId: string;
|
|
71
|
+
groupId: string | null;
|
|
70
72
|
price: number;
|
|
71
73
|
params: {
|
|
72
74
|
imageUrls?: string[] | undefined;
|
|
@@ -15,6 +15,7 @@ export declare namespace VideoCommand {
|
|
|
15
15
|
workspaceOrder: z.ZodOptional<z.ZodNumber>;
|
|
16
16
|
prompt: z.ZodString;
|
|
17
17
|
modelId: z.ZodString;
|
|
18
|
+
groupId: z.ZodOptional<z.ZodUUID>;
|
|
18
19
|
params: z.ZodObject<{
|
|
19
20
|
attachedFiles: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
20
21
|
uuid: z.ZodString;
|
|
@@ -54,15 +55,9 @@ export declare namespace VideoCommand {
|
|
|
54
55
|
isSuccess: z.ZodBoolean;
|
|
55
56
|
data: z.ZodOptional<z.ZodType<{
|
|
56
57
|
uuid: string;
|
|
57
|
-
prompt: string;
|
|
58
|
-
reaction: import("../..").USER_REACTION | null;
|
|
59
|
-
isPublished: boolean;
|
|
60
|
-
publishModerationStatus: import("..").VIDEO_PUBLISH_MODERATION_STATUS;
|
|
61
|
-
postId: string | null;
|
|
62
|
-
dislikeReason: string | null;
|
|
63
|
-
externalId: string | null;
|
|
64
58
|
title: string;
|
|
65
|
-
|
|
59
|
+
prompt: string;
|
|
60
|
+
status: import("..").VIDEO_GROUP_STATUS;
|
|
66
61
|
error: string | null;
|
|
67
62
|
modelId: string;
|
|
68
63
|
price: number;
|
|
@@ -85,29 +80,72 @@ export declare namespace VideoCommand {
|
|
|
85
80
|
multiShots?: boolean | undefined;
|
|
86
81
|
batching?: number | undefined;
|
|
87
82
|
};
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
83
|
+
attempts: {
|
|
84
|
+
order: number;
|
|
85
|
+
status: string;
|
|
86
|
+
error: string | null;
|
|
87
|
+
timestamp: Date;
|
|
88
|
+
}[];
|
|
89
|
+
scope: JOB_SCOPE;
|
|
90
|
+
userId: string | null;
|
|
91
|
+
unregisteredUserId: string | null;
|
|
95
92
|
isDeleted: boolean;
|
|
96
93
|
isFavorite: boolean;
|
|
94
|
+
subJobs: {
|
|
95
|
+
uuid: string;
|
|
96
|
+
prompt: string;
|
|
97
|
+
reaction: import("../..").USER_REACTION | null;
|
|
98
|
+
isPublished: boolean;
|
|
99
|
+
publishModerationStatus: import("..").VIDEO_PUBLISH_MODERATION_STATUS;
|
|
100
|
+
postId: string | null;
|
|
101
|
+
dislikeReason: string | null;
|
|
102
|
+
externalId: string | null;
|
|
103
|
+
title: string;
|
|
104
|
+
status: import("../..").JOB_STATUS;
|
|
105
|
+
error: string | null;
|
|
106
|
+
modelId: string;
|
|
107
|
+
groupId: string | null;
|
|
108
|
+
price: number;
|
|
109
|
+
params: {
|
|
110
|
+
imageUrls?: string[] | undefined;
|
|
111
|
+
imageIds?: string[] | undefined;
|
|
112
|
+
referenceImages?: string[] | undefined;
|
|
113
|
+
referenceImageIds?: string[] | undefined;
|
|
114
|
+
firstFrameUrl?: string | undefined;
|
|
115
|
+
lastFrameUrl?: string | undefined;
|
|
116
|
+
audioUrls?: string[] | undefined;
|
|
117
|
+
audioIds?: string[] | undefined;
|
|
118
|
+
firstFrameId?: string | undefined;
|
|
119
|
+
lastFrameId?: string | undefined;
|
|
120
|
+
duration: number;
|
|
121
|
+
aspectRatio?: string | undefined;
|
|
122
|
+
quality?: string | undefined;
|
|
123
|
+
resolution?: string | undefined;
|
|
124
|
+
sound?: boolean | undefined;
|
|
125
|
+
multiShots?: boolean | undefined;
|
|
126
|
+
batching?: number | undefined;
|
|
127
|
+
};
|
|
128
|
+
videoUrl: string | null;
|
|
129
|
+
previewUrl: string | null;
|
|
130
|
+
attempts: any[];
|
|
131
|
+
userId?: string | null | undefined;
|
|
132
|
+
unregisteredUserId?: string | null | undefined;
|
|
133
|
+
tokenReservationId?: string | null | undefined;
|
|
134
|
+
workspaceId?: string | null | undefined;
|
|
135
|
+
isDeleted: boolean;
|
|
136
|
+
isFavorite: boolean;
|
|
137
|
+
createdAt: Date;
|
|
138
|
+
completedAt?: Date | null | undefined;
|
|
139
|
+
updatedAt: Date;
|
|
140
|
+
}[];
|
|
97
141
|
createdAt: Date;
|
|
98
|
-
completedAt
|
|
142
|
+
completedAt: Date | null;
|
|
99
143
|
updatedAt: Date;
|
|
100
144
|
}, unknown, z.core.$ZodTypeInternals<{
|
|
101
145
|
uuid: string;
|
|
102
|
-
prompt: string;
|
|
103
|
-
reaction: import("../..").USER_REACTION | null;
|
|
104
|
-
isPublished: boolean;
|
|
105
|
-
publishModerationStatus: import("..").VIDEO_PUBLISH_MODERATION_STATUS;
|
|
106
|
-
postId: string | null;
|
|
107
|
-
dislikeReason: string | null;
|
|
108
|
-
externalId: string | null;
|
|
109
146
|
title: string;
|
|
110
|
-
|
|
147
|
+
prompt: string;
|
|
148
|
+
status: import("..").VIDEO_GROUP_STATUS;
|
|
111
149
|
error: string | null;
|
|
112
150
|
modelId: string;
|
|
113
151
|
price: number;
|
|
@@ -130,17 +168,66 @@ export declare namespace VideoCommand {
|
|
|
130
168
|
multiShots?: boolean | undefined;
|
|
131
169
|
batching?: number | undefined;
|
|
132
170
|
};
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
171
|
+
attempts: {
|
|
172
|
+
order: number;
|
|
173
|
+
status: string;
|
|
174
|
+
error: string | null;
|
|
175
|
+
timestamp: Date;
|
|
176
|
+
}[];
|
|
177
|
+
scope: JOB_SCOPE;
|
|
178
|
+
userId: string | null;
|
|
179
|
+
unregisteredUserId: string | null;
|
|
140
180
|
isDeleted: boolean;
|
|
141
181
|
isFavorite: boolean;
|
|
182
|
+
subJobs: {
|
|
183
|
+
uuid: string;
|
|
184
|
+
prompt: string;
|
|
185
|
+
reaction: import("../..").USER_REACTION | null;
|
|
186
|
+
isPublished: boolean;
|
|
187
|
+
publishModerationStatus: import("..").VIDEO_PUBLISH_MODERATION_STATUS;
|
|
188
|
+
postId: string | null;
|
|
189
|
+
dislikeReason: string | null;
|
|
190
|
+
externalId: string | null;
|
|
191
|
+
title: string;
|
|
192
|
+
status: import("../..").JOB_STATUS;
|
|
193
|
+
error: string | null;
|
|
194
|
+
modelId: string;
|
|
195
|
+
groupId: string | null;
|
|
196
|
+
price: number;
|
|
197
|
+
params: {
|
|
198
|
+
imageUrls?: string[] | undefined;
|
|
199
|
+
imageIds?: string[] | undefined;
|
|
200
|
+
referenceImages?: string[] | undefined;
|
|
201
|
+
referenceImageIds?: string[] | undefined;
|
|
202
|
+
firstFrameUrl?: string | undefined;
|
|
203
|
+
lastFrameUrl?: string | undefined;
|
|
204
|
+
audioUrls?: string[] | undefined;
|
|
205
|
+
audioIds?: string[] | undefined;
|
|
206
|
+
firstFrameId?: string | undefined;
|
|
207
|
+
lastFrameId?: string | undefined;
|
|
208
|
+
duration: number;
|
|
209
|
+
aspectRatio?: string | undefined;
|
|
210
|
+
quality?: string | undefined;
|
|
211
|
+
resolution?: string | undefined;
|
|
212
|
+
sound?: boolean | undefined;
|
|
213
|
+
multiShots?: boolean | undefined;
|
|
214
|
+
batching?: number | undefined;
|
|
215
|
+
};
|
|
216
|
+
videoUrl: string | null;
|
|
217
|
+
previewUrl: string | null;
|
|
218
|
+
attempts: any[];
|
|
219
|
+
userId?: string | null | undefined;
|
|
220
|
+
unregisteredUserId?: string | null | undefined;
|
|
221
|
+
tokenReservationId?: string | null | undefined;
|
|
222
|
+
workspaceId?: string | null | undefined;
|
|
223
|
+
isDeleted: boolean;
|
|
224
|
+
isFavorite: boolean;
|
|
225
|
+
createdAt: Date;
|
|
226
|
+
completedAt?: Date | null | undefined;
|
|
227
|
+
updatedAt: Date;
|
|
228
|
+
}[];
|
|
142
229
|
createdAt: Date;
|
|
143
|
-
completedAt
|
|
230
|
+
completedAt: Date | null;
|
|
144
231
|
updatedAt: Date;
|
|
145
232
|
}, unknown>>>;
|
|
146
233
|
code: z.ZodOptional<z.ZodString>;
|
|
@@ -7,7 +7,7 @@ const command_response_schema_1 = require("../../common/models/command-response.
|
|
|
7
7
|
const locale_schema_1 = require("../../common/models/locale.schema");
|
|
8
8
|
const tool_workspace_item_slot_enum_1 = require("../../tool-workspace/enums/tool-workspace-item-slot.enum");
|
|
9
9
|
const tool_content_type_enum_1 = require("../../tools/enums/tool-content-type.enum");
|
|
10
|
-
const
|
|
10
|
+
const video_group_schema_1 = require("../models/video-group.schema");
|
|
11
11
|
const models_1 = require("../models");
|
|
12
12
|
var VideoCommand;
|
|
13
13
|
(function (VideoCommand) {
|
|
@@ -23,10 +23,11 @@ var VideoCommand;
|
|
|
23
23
|
workspaceOrder: zod_1.z.number().int().min(0).optional(),
|
|
24
24
|
prompt: zod_1.z.string(),
|
|
25
25
|
modelId: zod_1.z.string(),
|
|
26
|
+
groupId: zod_1.z.uuid().optional(),
|
|
26
27
|
params: models_1.VideoGenerationRequestParamsSchema,
|
|
27
28
|
tokenReservationId: zod_1.z.uuid(),
|
|
28
29
|
precalculatedPrice: zod_1.z.number(),
|
|
29
30
|
mock: zod_1.z.boolean().optional(),
|
|
30
31
|
});
|
|
31
|
-
VideoCommand.ResponseSchema = (0, command_response_schema_1.ICommandResponseSchema)(
|
|
32
|
+
VideoCommand.ResponseSchema = (0, command_response_schema_1.ICommandResponseSchema)(video_group_schema_1.VideoGroupSchema);
|
|
32
33
|
})(VideoCommand || (exports.VideoCommand = VideoCommand = {}));
|
|
@@ -25,3 +25,4 @@ __exportStar(require("./video-resolution.enum"), exports);
|
|
|
25
25
|
__exportStar(require("./video-pricing-rule-type.enum"), exports);
|
|
26
26
|
__exportStar(require("./video-generation-model-limitation.enum"), exports);
|
|
27
27
|
__exportStar(require("./video-publish-moderation-status.enum"), exports);
|
|
28
|
+
__exportStar(require("./video-group-status.enum"), exports);
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.VIDEO_GROUP_STATUS = void 0;
|
|
4
|
+
var VIDEO_GROUP_STATUS;
|
|
5
|
+
(function (VIDEO_GROUP_STATUS) {
|
|
6
|
+
VIDEO_GROUP_STATUS["PENDING"] = "pending";
|
|
7
|
+
VIDEO_GROUP_STATUS["COMPLETED"] = "completed";
|
|
8
|
+
VIDEO_GROUP_STATUS["AWAITING_RETRY"] = "awaiting_retry";
|
|
9
|
+
VIDEO_GROUP_STATUS["FAILED"] = "failed";
|
|
10
|
+
})(VIDEO_GROUP_STATUS || (exports.VIDEO_GROUP_STATUS = VIDEO_GROUP_STATUS = {}));
|
|
@@ -17,3 +17,4 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
__exportStar(require("./video-config.schema"), exports);
|
|
18
18
|
__exportStar(require("./video-job.schema"), exports);
|
|
19
19
|
__exportStar(require("./video-model.schema"), exports);
|
|
20
|
+
__exportStar(require("./video-group.schema"), exports);
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { JOB_SCOPE } from '../../common';
|
|
3
|
+
import { VIDEO_GROUP_STATUS } from '../enums';
|
|
4
|
+
export declare const VideoGroupSchema: z.ZodObject<{
|
|
5
|
+
uuid: z.ZodString;
|
|
6
|
+
title: z.ZodString;
|
|
7
|
+
prompt: z.ZodString;
|
|
8
|
+
status: z.ZodEnum<typeof VIDEO_GROUP_STATUS>;
|
|
9
|
+
error: z.ZodNullable<z.ZodString>;
|
|
10
|
+
modelId: z.ZodString;
|
|
11
|
+
price: z.ZodNumber;
|
|
12
|
+
params: z.ZodObject<{
|
|
13
|
+
imageUrls: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
14
|
+
imageIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
15
|
+
referenceImages: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
16
|
+
referenceImageIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
17
|
+
firstFrameUrl: z.ZodOptional<z.ZodString>;
|
|
18
|
+
lastFrameUrl: z.ZodOptional<z.ZodString>;
|
|
19
|
+
audioUrls: z.ZodOptional<z.ZodArray<z.ZodURL>>;
|
|
20
|
+
audioIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
21
|
+
firstFrameId: z.ZodOptional<z.ZodString>;
|
|
22
|
+
lastFrameId: z.ZodOptional<z.ZodString>;
|
|
23
|
+
duration: z.ZodNumber;
|
|
24
|
+
aspectRatio: z.ZodOptional<z.ZodString>;
|
|
25
|
+
quality: z.ZodOptional<z.ZodString>;
|
|
26
|
+
resolution: z.ZodOptional<z.ZodString>;
|
|
27
|
+
sound: z.ZodOptional<z.ZodBoolean>;
|
|
28
|
+
multiShots: z.ZodOptional<z.ZodBoolean>;
|
|
29
|
+
batching: z.ZodOptional<z.ZodNumber>;
|
|
30
|
+
}, z.core.$strip>;
|
|
31
|
+
attempts: z.ZodArray<z.ZodObject<{
|
|
32
|
+
order: z.ZodNumber;
|
|
33
|
+
status: z.ZodString;
|
|
34
|
+
error: z.ZodNullable<z.ZodString>;
|
|
35
|
+
timestamp: z.ZodCoercedDate<unknown>;
|
|
36
|
+
}, z.core.$strip>>;
|
|
37
|
+
scope: z.ZodEnum<typeof JOB_SCOPE>;
|
|
38
|
+
userId: z.ZodNullable<z.ZodString>;
|
|
39
|
+
unregisteredUserId: z.ZodNullable<z.ZodString>;
|
|
40
|
+
isDeleted: z.ZodBoolean;
|
|
41
|
+
isFavorite: z.ZodBoolean;
|
|
42
|
+
subJobs: z.ZodArray<z.ZodObject<{
|
|
43
|
+
uuid: z.ZodString;
|
|
44
|
+
prompt: z.ZodString;
|
|
45
|
+
reaction: z.ZodNullable<z.ZodEnum<typeof import("../..").USER_REACTION>>;
|
|
46
|
+
isPublished: z.ZodBoolean;
|
|
47
|
+
publishModerationStatus: z.ZodEnum<typeof import("..").VIDEO_PUBLISH_MODERATION_STATUS>;
|
|
48
|
+
postId: z.ZodNullable<z.ZodString>;
|
|
49
|
+
dislikeReason: z.ZodNullable<z.ZodString>;
|
|
50
|
+
externalId: z.ZodNullable<z.ZodString>;
|
|
51
|
+
title: z.ZodString;
|
|
52
|
+
status: z.ZodEnum<typeof import("../..").JOB_STATUS>;
|
|
53
|
+
error: z.ZodNullable<z.ZodString>;
|
|
54
|
+
modelId: z.ZodString;
|
|
55
|
+
groupId: z.ZodNullable<z.ZodString>;
|
|
56
|
+
price: z.ZodNumber;
|
|
57
|
+
params: z.ZodObject<{
|
|
58
|
+
imageUrls: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
59
|
+
imageIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
60
|
+
referenceImages: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
61
|
+
referenceImageIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
62
|
+
firstFrameUrl: z.ZodOptional<z.ZodString>;
|
|
63
|
+
lastFrameUrl: z.ZodOptional<z.ZodString>;
|
|
64
|
+
audioUrls: z.ZodOptional<z.ZodArray<z.ZodURL>>;
|
|
65
|
+
audioIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
66
|
+
firstFrameId: z.ZodOptional<z.ZodString>;
|
|
67
|
+
lastFrameId: z.ZodOptional<z.ZodString>;
|
|
68
|
+
duration: z.ZodNumber;
|
|
69
|
+
aspectRatio: z.ZodOptional<z.ZodString>;
|
|
70
|
+
quality: z.ZodOptional<z.ZodString>;
|
|
71
|
+
resolution: z.ZodOptional<z.ZodString>;
|
|
72
|
+
sound: z.ZodOptional<z.ZodBoolean>;
|
|
73
|
+
multiShots: z.ZodOptional<z.ZodBoolean>;
|
|
74
|
+
batching: z.ZodOptional<z.ZodNumber>;
|
|
75
|
+
}, z.core.$strip>;
|
|
76
|
+
videoUrl: z.ZodNullable<z.ZodString>;
|
|
77
|
+
previewUrl: z.ZodNullable<z.ZodString>;
|
|
78
|
+
attempts: z.ZodArray<z.ZodAny>;
|
|
79
|
+
userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
80
|
+
unregisteredUserId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
81
|
+
tokenReservationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
82
|
+
workspaceId: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
|
|
83
|
+
isDeleted: z.ZodBoolean;
|
|
84
|
+
isFavorite: z.ZodBoolean;
|
|
85
|
+
createdAt: z.ZodDate;
|
|
86
|
+
completedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
87
|
+
updatedAt: z.ZodDate;
|
|
88
|
+
}, z.core.$strip>>;
|
|
89
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
90
|
+
completedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
91
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
92
|
+
}, z.core.$strip>;
|
|
93
|
+
export type VideoGroup = z.infer<typeof VideoGroupSchema>;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.VideoGroupSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const common_1 = require("../../common");
|
|
6
|
+
const enums_1 = require("../enums");
|
|
7
|
+
const video_job_schema_1 = require("./video-job.schema");
|
|
8
|
+
exports.VideoGroupSchema = zod_1.z.object({
|
|
9
|
+
uuid: zod_1.z.string(),
|
|
10
|
+
title: zod_1.z.string(),
|
|
11
|
+
prompt: zod_1.z.string(),
|
|
12
|
+
status: zod_1.z.enum(enums_1.VIDEO_GROUP_STATUS),
|
|
13
|
+
error: zod_1.z.string().nullable(),
|
|
14
|
+
modelId: zod_1.z.string(),
|
|
15
|
+
price: zod_1.z.number(),
|
|
16
|
+
params: video_job_schema_1.VideoJobParamsSchema,
|
|
17
|
+
attempts: zod_1.z.array(zod_1.z.object({
|
|
18
|
+
order: zod_1.z.number(),
|
|
19
|
+
status: zod_1.z.string(),
|
|
20
|
+
error: zod_1.z.string().nullable(),
|
|
21
|
+
timestamp: zod_1.z.coerce.date(),
|
|
22
|
+
})),
|
|
23
|
+
scope: zod_1.z.enum(common_1.JOB_SCOPE),
|
|
24
|
+
userId: zod_1.z.string().nullable(),
|
|
25
|
+
unregisteredUserId: zod_1.z.string().nullable(),
|
|
26
|
+
isDeleted: zod_1.z.boolean(),
|
|
27
|
+
isFavorite: zod_1.z.boolean(),
|
|
28
|
+
subJobs: zod_1.z.array(video_job_schema_1.VideoJobSchema),
|
|
29
|
+
createdAt: zod_1.z.coerce.date(),
|
|
30
|
+
completedAt: zod_1.z.coerce.date().nullable(),
|
|
31
|
+
updatedAt: zod_1.z.coerce.date(),
|
|
32
|
+
});
|
|
@@ -35,6 +35,7 @@ export declare const VideoJobSchema: z.ZodObject<{
|
|
|
35
35
|
status: z.ZodEnum<typeof JOB_STATUS>;
|
|
36
36
|
error: z.ZodNullable<z.ZodString>;
|
|
37
37
|
modelId: z.ZodString;
|
|
38
|
+
groupId: z.ZodNullable<z.ZodString>;
|
|
38
39
|
price: z.ZodNumber;
|
|
39
40
|
params: z.ZodObject<{
|
|
40
41
|
imageUrls: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
@@ -37,6 +37,7 @@ exports.VideoJobSchema = zod_1.z.object({
|
|
|
37
37
|
status: zod_1.z.enum(job_status_enum_1.JOB_STATUS),
|
|
38
38
|
error: zod_1.z.string().nullable(),
|
|
39
39
|
modelId: zod_1.z.string(),
|
|
40
|
+
groupId: zod_1.z.string().nullable(),
|
|
40
41
|
price: zod_1.z.number(),
|
|
41
42
|
params: exports.VideoJobParamsSchema,
|
|
42
43
|
videoUrl: zod_1.z.string().nullable(),
|
|
@@ -10,15 +10,9 @@ export declare namespace FindVideoJobByIdQuery {
|
|
|
10
10
|
isSuccess: z.ZodBoolean;
|
|
11
11
|
data: z.ZodOptional<z.ZodType<{
|
|
12
12
|
uuid: string;
|
|
13
|
-
prompt: string;
|
|
14
|
-
reaction: import("../..").USER_REACTION | null;
|
|
15
|
-
isPublished: boolean;
|
|
16
|
-
publishModerationStatus: import("..").VIDEO_PUBLISH_MODERATION_STATUS;
|
|
17
|
-
postId: string | null;
|
|
18
|
-
dislikeReason: string | null;
|
|
19
|
-
externalId: string | null;
|
|
20
13
|
title: string;
|
|
21
|
-
|
|
14
|
+
prompt: string;
|
|
15
|
+
status: import("..").VIDEO_GROUP_STATUS;
|
|
22
16
|
error: string | null;
|
|
23
17
|
modelId: string;
|
|
24
18
|
price: number;
|
|
@@ -41,29 +35,72 @@ export declare namespace FindVideoJobByIdQuery {
|
|
|
41
35
|
multiShots?: boolean | undefined;
|
|
42
36
|
batching?: number | undefined;
|
|
43
37
|
};
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
38
|
+
attempts: {
|
|
39
|
+
order: number;
|
|
40
|
+
status: string;
|
|
41
|
+
error: string | null;
|
|
42
|
+
timestamp: Date;
|
|
43
|
+
}[];
|
|
44
|
+
scope: import("../..").JOB_SCOPE;
|
|
45
|
+
userId: string | null;
|
|
46
|
+
unregisteredUserId: string | null;
|
|
51
47
|
isDeleted: boolean;
|
|
52
48
|
isFavorite: boolean;
|
|
49
|
+
subJobs: {
|
|
50
|
+
uuid: string;
|
|
51
|
+
prompt: string;
|
|
52
|
+
reaction: import("../..").USER_REACTION | null;
|
|
53
|
+
isPublished: boolean;
|
|
54
|
+
publishModerationStatus: import("..").VIDEO_PUBLISH_MODERATION_STATUS;
|
|
55
|
+
postId: string | null;
|
|
56
|
+
dislikeReason: string | null;
|
|
57
|
+
externalId: string | null;
|
|
58
|
+
title: string;
|
|
59
|
+
status: import("../..").JOB_STATUS;
|
|
60
|
+
error: string | null;
|
|
61
|
+
modelId: string;
|
|
62
|
+
groupId: string | null;
|
|
63
|
+
price: number;
|
|
64
|
+
params: {
|
|
65
|
+
imageUrls?: string[] | undefined;
|
|
66
|
+
imageIds?: string[] | undefined;
|
|
67
|
+
referenceImages?: string[] | undefined;
|
|
68
|
+
referenceImageIds?: string[] | undefined;
|
|
69
|
+
firstFrameUrl?: string | undefined;
|
|
70
|
+
lastFrameUrl?: string | undefined;
|
|
71
|
+
audioUrls?: string[] | undefined;
|
|
72
|
+
audioIds?: string[] | undefined;
|
|
73
|
+
firstFrameId?: string | undefined;
|
|
74
|
+
lastFrameId?: string | undefined;
|
|
75
|
+
duration: number;
|
|
76
|
+
aspectRatio?: string | undefined;
|
|
77
|
+
quality?: string | undefined;
|
|
78
|
+
resolution?: string | undefined;
|
|
79
|
+
sound?: boolean | undefined;
|
|
80
|
+
multiShots?: boolean | undefined;
|
|
81
|
+
batching?: number | undefined;
|
|
82
|
+
};
|
|
83
|
+
videoUrl: string | null;
|
|
84
|
+
previewUrl: string | null;
|
|
85
|
+
attempts: any[];
|
|
86
|
+
userId?: string | null | undefined;
|
|
87
|
+
unregisteredUserId?: string | null | undefined;
|
|
88
|
+
tokenReservationId?: string | null | undefined;
|
|
89
|
+
workspaceId?: string | null | undefined;
|
|
90
|
+
isDeleted: boolean;
|
|
91
|
+
isFavorite: boolean;
|
|
92
|
+
createdAt: Date;
|
|
93
|
+
completedAt?: Date | null | undefined;
|
|
94
|
+
updatedAt: Date;
|
|
95
|
+
}[];
|
|
53
96
|
createdAt: Date;
|
|
54
|
-
completedAt
|
|
97
|
+
completedAt: Date | null;
|
|
55
98
|
updatedAt: Date;
|
|
56
99
|
}, unknown, z.core.$ZodTypeInternals<{
|
|
57
100
|
uuid: string;
|
|
58
|
-
prompt: string;
|
|
59
|
-
reaction: import("../..").USER_REACTION | null;
|
|
60
|
-
isPublished: boolean;
|
|
61
|
-
publishModerationStatus: import("..").VIDEO_PUBLISH_MODERATION_STATUS;
|
|
62
|
-
postId: string | null;
|
|
63
|
-
dislikeReason: string | null;
|
|
64
|
-
externalId: string | null;
|
|
65
101
|
title: string;
|
|
66
|
-
|
|
102
|
+
prompt: string;
|
|
103
|
+
status: import("..").VIDEO_GROUP_STATUS;
|
|
67
104
|
error: string | null;
|
|
68
105
|
modelId: string;
|
|
69
106
|
price: number;
|
|
@@ -86,17 +123,66 @@ export declare namespace FindVideoJobByIdQuery {
|
|
|
86
123
|
multiShots?: boolean | undefined;
|
|
87
124
|
batching?: number | undefined;
|
|
88
125
|
};
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
126
|
+
attempts: {
|
|
127
|
+
order: number;
|
|
128
|
+
status: string;
|
|
129
|
+
error: string | null;
|
|
130
|
+
timestamp: Date;
|
|
131
|
+
}[];
|
|
132
|
+
scope: import("../..").JOB_SCOPE;
|
|
133
|
+
userId: string | null;
|
|
134
|
+
unregisteredUserId: string | null;
|
|
96
135
|
isDeleted: boolean;
|
|
97
136
|
isFavorite: boolean;
|
|
137
|
+
subJobs: {
|
|
138
|
+
uuid: string;
|
|
139
|
+
prompt: string;
|
|
140
|
+
reaction: import("../..").USER_REACTION | null;
|
|
141
|
+
isPublished: boolean;
|
|
142
|
+
publishModerationStatus: import("..").VIDEO_PUBLISH_MODERATION_STATUS;
|
|
143
|
+
postId: string | null;
|
|
144
|
+
dislikeReason: string | null;
|
|
145
|
+
externalId: string | null;
|
|
146
|
+
title: string;
|
|
147
|
+
status: import("../..").JOB_STATUS;
|
|
148
|
+
error: string | null;
|
|
149
|
+
modelId: string;
|
|
150
|
+
groupId: string | null;
|
|
151
|
+
price: number;
|
|
152
|
+
params: {
|
|
153
|
+
imageUrls?: string[] | undefined;
|
|
154
|
+
imageIds?: string[] | undefined;
|
|
155
|
+
referenceImages?: string[] | undefined;
|
|
156
|
+
referenceImageIds?: string[] | undefined;
|
|
157
|
+
firstFrameUrl?: string | undefined;
|
|
158
|
+
lastFrameUrl?: string | undefined;
|
|
159
|
+
audioUrls?: string[] | undefined;
|
|
160
|
+
audioIds?: string[] | undefined;
|
|
161
|
+
firstFrameId?: string | undefined;
|
|
162
|
+
lastFrameId?: string | undefined;
|
|
163
|
+
duration: number;
|
|
164
|
+
aspectRatio?: string | undefined;
|
|
165
|
+
quality?: string | undefined;
|
|
166
|
+
resolution?: string | undefined;
|
|
167
|
+
sound?: boolean | undefined;
|
|
168
|
+
multiShots?: boolean | undefined;
|
|
169
|
+
batching?: number | undefined;
|
|
170
|
+
};
|
|
171
|
+
videoUrl: string | null;
|
|
172
|
+
previewUrl: string | null;
|
|
173
|
+
attempts: any[];
|
|
174
|
+
userId?: string | null | undefined;
|
|
175
|
+
unregisteredUserId?: string | null | undefined;
|
|
176
|
+
tokenReservationId?: string | null | undefined;
|
|
177
|
+
workspaceId?: string | null | undefined;
|
|
178
|
+
isDeleted: boolean;
|
|
179
|
+
isFavorite: boolean;
|
|
180
|
+
createdAt: Date;
|
|
181
|
+
completedAt?: Date | null | undefined;
|
|
182
|
+
updatedAt: Date;
|
|
183
|
+
}[];
|
|
98
184
|
createdAt: Date;
|
|
99
|
-
completedAt
|
|
185
|
+
completedAt: Date | null;
|
|
100
186
|
updatedAt: Date;
|
|
101
187
|
}, unknown>>>;
|
|
102
188
|
code: z.ZodOptional<z.ZodString>;
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.FindVideoJobByIdQuery = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const command_response_schema_1 = require("../../common/models/command-response.schema");
|
|
6
|
-
const
|
|
6
|
+
const video_group_schema_1 = require("../models/video-group.schema");
|
|
7
7
|
var FindVideoJobByIdQuery;
|
|
8
8
|
(function (FindVideoJobByIdQuery) {
|
|
9
9
|
FindVideoJobByIdQuery.RequestSchema = zod_1.z.object({
|
|
@@ -11,5 +11,5 @@ var FindVideoJobByIdQuery;
|
|
|
11
11
|
userId: zod_1.z.uuid().nullable().optional(),
|
|
12
12
|
unregisteredUserId: zod_1.z.uuid().nullable().optional(),
|
|
13
13
|
});
|
|
14
|
-
FindVideoJobByIdQuery.ResponseSchema = (0, command_response_schema_1.ICommandResponseSchema)(
|
|
14
|
+
FindVideoJobByIdQuery.ResponseSchema = (0, command_response_schema_1.ICommandResponseSchema)(video_group_schema_1.VideoGroupSchema);
|
|
15
15
|
})(FindVideoJobByIdQuery || (exports.FindVideoJobByIdQuery = FindVideoJobByIdQuery = {}));
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { JOB_SCOPE } from '../../common';
|
|
3
3
|
import { JOB_SORT } from '../../tools/enums/job-sort.enum';
|
|
4
|
-
import {
|
|
4
|
+
import { VIDEO_GROUP_STATUS } from '../enums';
|
|
5
5
|
export declare namespace FindVideoJobsQuery {
|
|
6
6
|
const RequestSchema: z.ZodObject<{
|
|
7
7
|
userId: z.ZodOptional<z.ZodUUID>;
|
|
@@ -11,7 +11,7 @@ export declare namespace FindVideoJobsQuery {
|
|
|
11
11
|
title: z.ZodOptional<z.ZodString>;
|
|
12
12
|
isFavorite: z.ZodOptional<z.ZodCoercedBoolean<unknown>>;
|
|
13
13
|
createdAtSortOrder: z.ZodDefault<z.ZodOptional<z.ZodEnum<typeof JOB_SORT>>>;
|
|
14
|
-
status: z.ZodOptional<z.ZodEnum<typeof
|
|
14
|
+
status: z.ZodOptional<z.ZodEnum<typeof VIDEO_GROUP_STATUS>>;
|
|
15
15
|
limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
16
16
|
offset: z.ZodOptional<z.ZodDefault<z.ZodCoercedNumber<unknown>>>;
|
|
17
17
|
}, z.core.$strip>;
|
|
@@ -21,15 +21,9 @@ export declare namespace FindVideoJobsQuery {
|
|
|
21
21
|
data: z.ZodOptional<z.ZodType<{
|
|
22
22
|
data: {
|
|
23
23
|
uuid: string;
|
|
24
|
-
prompt: string;
|
|
25
|
-
reaction: import("../..").USER_REACTION | null;
|
|
26
|
-
isPublished: boolean;
|
|
27
|
-
publishModerationStatus: import("..").VIDEO_PUBLISH_MODERATION_STATUS;
|
|
28
|
-
postId: string | null;
|
|
29
|
-
dislikeReason: string | null;
|
|
30
|
-
externalId: string | null;
|
|
31
24
|
title: string;
|
|
32
|
-
|
|
25
|
+
prompt: string;
|
|
26
|
+
status: VIDEO_GROUP_STATUS;
|
|
33
27
|
error: string | null;
|
|
34
28
|
modelId: string;
|
|
35
29
|
price: number;
|
|
@@ -52,17 +46,66 @@ export declare namespace FindVideoJobsQuery {
|
|
|
52
46
|
multiShots?: boolean | undefined;
|
|
53
47
|
batching?: number | undefined;
|
|
54
48
|
};
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
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;
|
|
62
58
|
isDeleted: boolean;
|
|
63
59
|
isFavorite: boolean;
|
|
60
|
+
subJobs: {
|
|
61
|
+
uuid: string;
|
|
62
|
+
prompt: string;
|
|
63
|
+
reaction: import("../..").USER_REACTION | null;
|
|
64
|
+
isPublished: boolean;
|
|
65
|
+
publishModerationStatus: import("..").VIDEO_PUBLISH_MODERATION_STATUS;
|
|
66
|
+
postId: string | null;
|
|
67
|
+
dislikeReason: string | null;
|
|
68
|
+
externalId: string | null;
|
|
69
|
+
title: string;
|
|
70
|
+
status: import("../..").JOB_STATUS;
|
|
71
|
+
error: string | null;
|
|
72
|
+
modelId: string;
|
|
73
|
+
groupId: string | null;
|
|
74
|
+
price: number;
|
|
75
|
+
params: {
|
|
76
|
+
imageUrls?: string[] | undefined;
|
|
77
|
+
imageIds?: string[] | undefined;
|
|
78
|
+
referenceImages?: string[] | undefined;
|
|
79
|
+
referenceImageIds?: string[] | undefined;
|
|
80
|
+
firstFrameUrl?: string | undefined;
|
|
81
|
+
lastFrameUrl?: string | undefined;
|
|
82
|
+
audioUrls?: string[] | undefined;
|
|
83
|
+
audioIds?: string[] | undefined;
|
|
84
|
+
firstFrameId?: string | undefined;
|
|
85
|
+
lastFrameId?: string | undefined;
|
|
86
|
+
duration: number;
|
|
87
|
+
aspectRatio?: string | undefined;
|
|
88
|
+
quality?: string | undefined;
|
|
89
|
+
resolution?: string | undefined;
|
|
90
|
+
sound?: boolean | undefined;
|
|
91
|
+
multiShots?: boolean | undefined;
|
|
92
|
+
batching?: number | undefined;
|
|
93
|
+
};
|
|
94
|
+
videoUrl: string | null;
|
|
95
|
+
previewUrl: string | null;
|
|
96
|
+
attempts: any[];
|
|
97
|
+
userId?: string | null | undefined;
|
|
98
|
+
unregisteredUserId?: string | null | undefined;
|
|
99
|
+
tokenReservationId?: string | null | undefined;
|
|
100
|
+
workspaceId?: string | null | undefined;
|
|
101
|
+
isDeleted: boolean;
|
|
102
|
+
isFavorite: boolean;
|
|
103
|
+
createdAt: Date;
|
|
104
|
+
completedAt?: Date | null | undefined;
|
|
105
|
+
updatedAt: Date;
|
|
106
|
+
}[];
|
|
64
107
|
createdAt: Date;
|
|
65
|
-
completedAt
|
|
108
|
+
completedAt: Date | null;
|
|
66
109
|
updatedAt: Date;
|
|
67
110
|
}[];
|
|
68
111
|
page: number;
|
|
@@ -71,15 +114,9 @@ export declare namespace FindVideoJobsQuery {
|
|
|
71
114
|
}, unknown, z.core.$ZodTypeInternals<{
|
|
72
115
|
data: {
|
|
73
116
|
uuid: string;
|
|
74
|
-
prompt: string;
|
|
75
|
-
reaction: import("../..").USER_REACTION | null;
|
|
76
|
-
isPublished: boolean;
|
|
77
|
-
publishModerationStatus: import("..").VIDEO_PUBLISH_MODERATION_STATUS;
|
|
78
|
-
postId: string | null;
|
|
79
|
-
dislikeReason: string | null;
|
|
80
|
-
externalId: string | null;
|
|
81
117
|
title: string;
|
|
82
|
-
|
|
118
|
+
prompt: string;
|
|
119
|
+
status: VIDEO_GROUP_STATUS;
|
|
83
120
|
error: string | null;
|
|
84
121
|
modelId: string;
|
|
85
122
|
price: number;
|
|
@@ -102,17 +139,66 @@ export declare namespace FindVideoJobsQuery {
|
|
|
102
139
|
multiShots?: boolean | undefined;
|
|
103
140
|
batching?: number | undefined;
|
|
104
141
|
};
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
142
|
+
attempts: {
|
|
143
|
+
order: number;
|
|
144
|
+
status: string;
|
|
145
|
+
error: string | null;
|
|
146
|
+
timestamp: Date;
|
|
147
|
+
}[];
|
|
148
|
+
scope: JOB_SCOPE;
|
|
149
|
+
userId: string | null;
|
|
150
|
+
unregisteredUserId: string | null;
|
|
112
151
|
isDeleted: boolean;
|
|
113
152
|
isFavorite: boolean;
|
|
153
|
+
subJobs: {
|
|
154
|
+
uuid: string;
|
|
155
|
+
prompt: string;
|
|
156
|
+
reaction: import("../..").USER_REACTION | null;
|
|
157
|
+
isPublished: boolean;
|
|
158
|
+
publishModerationStatus: import("..").VIDEO_PUBLISH_MODERATION_STATUS;
|
|
159
|
+
postId: string | null;
|
|
160
|
+
dislikeReason: string | null;
|
|
161
|
+
externalId: string | null;
|
|
162
|
+
title: string;
|
|
163
|
+
status: import("../..").JOB_STATUS;
|
|
164
|
+
error: string | null;
|
|
165
|
+
modelId: string;
|
|
166
|
+
groupId: string | null;
|
|
167
|
+
price: number;
|
|
168
|
+
params: {
|
|
169
|
+
imageUrls?: string[] | undefined;
|
|
170
|
+
imageIds?: string[] | undefined;
|
|
171
|
+
referenceImages?: string[] | undefined;
|
|
172
|
+
referenceImageIds?: string[] | undefined;
|
|
173
|
+
firstFrameUrl?: string | undefined;
|
|
174
|
+
lastFrameUrl?: string | undefined;
|
|
175
|
+
audioUrls?: string[] | undefined;
|
|
176
|
+
audioIds?: string[] | undefined;
|
|
177
|
+
firstFrameId?: string | undefined;
|
|
178
|
+
lastFrameId?: string | undefined;
|
|
179
|
+
duration: number;
|
|
180
|
+
aspectRatio?: string | undefined;
|
|
181
|
+
quality?: string | undefined;
|
|
182
|
+
resolution?: string | undefined;
|
|
183
|
+
sound?: boolean | undefined;
|
|
184
|
+
multiShots?: boolean | undefined;
|
|
185
|
+
batching?: number | undefined;
|
|
186
|
+
};
|
|
187
|
+
videoUrl: string | null;
|
|
188
|
+
previewUrl: string | null;
|
|
189
|
+
attempts: any[];
|
|
190
|
+
userId?: string | null | undefined;
|
|
191
|
+
unregisteredUserId?: string | null | undefined;
|
|
192
|
+
tokenReservationId?: string | null | undefined;
|
|
193
|
+
workspaceId?: string | null | undefined;
|
|
194
|
+
isDeleted: boolean;
|
|
195
|
+
isFavorite: boolean;
|
|
196
|
+
createdAt: Date;
|
|
197
|
+
completedAt?: Date | null | undefined;
|
|
198
|
+
updatedAt: Date;
|
|
199
|
+
}[];
|
|
114
200
|
createdAt: Date;
|
|
115
|
-
completedAt
|
|
201
|
+
completedAt: Date | null;
|
|
116
202
|
updatedAt: Date;
|
|
117
203
|
}[];
|
|
118
204
|
page: number;
|
|
@@ -4,9 +4,9 @@ exports.FindVideoJobsQuery = void 0;
|
|
|
4
4
|
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
|
-
const
|
|
7
|
+
const video_group_schema_1 = require("../models/video-group.schema");
|
|
8
8
|
const job_sort_enum_1 = require("../../tools/enums/job-sort.enum");
|
|
9
|
-
const
|
|
9
|
+
const enums_1 = require("../enums");
|
|
10
10
|
var FindVideoJobsQuery;
|
|
11
11
|
(function (FindVideoJobsQuery) {
|
|
12
12
|
FindVideoJobsQuery.RequestSchema = zod_1.z
|
|
@@ -18,7 +18,7 @@ var FindVideoJobsQuery;
|
|
|
18
18
|
title: zod_1.z.string().optional(),
|
|
19
19
|
isFavorite: zod_1.z.coerce.boolean().optional(),
|
|
20
20
|
createdAtSortOrder: zod_1.z.enum(job_sort_enum_1.JOB_SORT).optional().default(job_sort_enum_1.JOB_SORT.DESC),
|
|
21
|
-
status: zod_1.z.enum(
|
|
21
|
+
status: zod_1.z.enum(enums_1.VIDEO_GROUP_STATUS).optional(),
|
|
22
22
|
limit: zod_1.z.coerce.number().min(1).optional(),
|
|
23
23
|
offset: zod_1.z.coerce.number().min(0).default(0).optional(),
|
|
24
24
|
})
|
|
@@ -29,7 +29,7 @@ var FindVideoJobsQuery;
|
|
|
29
29
|
path: ['userId', 'unregisteredUserId'],
|
|
30
30
|
});
|
|
31
31
|
FindVideoJobsQuery.ResponseSchema = (0, command_response_schema_1.ICommandResponseSchema)(zod_1.z.object({
|
|
32
|
-
data: zod_1.z.array(
|
|
32
|
+
data: zod_1.z.array(video_group_schema_1.VideoGroupSchema),
|
|
33
33
|
page: zod_1.z.number(),
|
|
34
34
|
totalPages: zod_1.z.number(),
|
|
35
35
|
total: zod_1.z.number(),
|