@purpleschool/gptbot-tools 0.2.81 → 0.2.83-stage-2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/image-generation/commands/execute-image-generation.command.d.ts +2 -0
- package/build/image-generation/commands/update-image-generation-job-favorite.command.d.ts +118 -36
- package/build/image-generation/commands/update-image-generation-job-favorite.command.js +2 -2
- package/build/image-generation/models/image-generation-group.schema.d.ts +1 -0
- package/build/image-generation/models/image-generation-group.schema.js +1 -0
- package/build/image-generation/queries/find-image-generation-job-by-id.query.d.ts +2 -0
- package/build/image-generation/queries/find-image-generation-jobs.query.d.ts +2 -0
- 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
|
@@ -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(),
|