@ai-grator/api 0.2.66 → 0.3.66
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/errors/errors.d.ts +74 -0
- package/build/errors/errors.d.ts.map +1 -1
- package/build/errors/errors.js +74 -0
- package/build/generation-job/endpoints/commands/create-generation-job.command.d.ts +2 -2
- package/build/generation-job/endpoints/commands/update-generation-job.command.d.ts +2 -2
- package/build/generation-job/endpoints/queries/get-generation-job-by-uuid.query.d.ts +2 -2
- package/build/generation-job/endpoints/queries/get-generation-job-history.query.d.ts +3 -3
- package/build/generation-job/endpoints/queries/get-generation-jobs.query.d.ts +2 -2
- package/build/generation-job/models/generation-job-response.schema.d.ts +1 -1
- package/build/generation-job/models/generation-job-response.schema.js +1 -1
- package/build/index.d.ts +1 -0
- package/build/index.d.ts.map +1 -1
- package/build/index.js +1 -0
- package/build/referral/endpoints/referral.d.ts +3 -0
- package/build/referral/endpoints/referral.d.ts.map +1 -1
- package/build/referral/endpoints/referral.js +3 -0
- package/build/referral/models/index.d.ts +1 -0
- package/build/referral/models/index.d.ts.map +1 -1
- package/build/referral/models/index.js +1 -0
- package/build/referral/models/referral-advertising-stats.schema.d.ts +101 -0
- package/build/referral/models/referral-advertising-stats.schema.d.ts.map +1 -0
- package/build/referral/models/referral-advertising-stats.schema.js +62 -0
- package/build/tsconfig.tsbuildinfo +1 -1
- package/build/video-generation-chain/endpoints/commands/cancel-video-generation-chain.command.d.ts +112 -0
- package/build/video-generation-chain/endpoints/commands/cancel-video-generation-chain.command.d.ts.map +1 -0
- package/build/video-generation-chain/endpoints/commands/cancel-video-generation-chain.command.js +26 -0
- package/build/video-generation-chain/endpoints/commands/create-video-generation-chain.command.d.ts +120 -0
- package/build/video-generation-chain/endpoints/commands/create-video-generation-chain.command.d.ts.map +1 -0
- package/build/video-generation-chain/endpoints/commands/create-video-generation-chain.command.js +52 -0
- package/build/video-generation-chain/endpoints/commands/index.d.ts +6 -0
- package/build/video-generation-chain/endpoints/commands/index.d.ts.map +1 -0
- package/build/video-generation-chain/endpoints/commands/index.js +21 -0
- package/build/video-generation-chain/endpoints/commands/regenerate-video-generation-chain-scene.command.d.ts +114 -0
- package/build/video-generation-chain/endpoints/commands/regenerate-video-generation-chain-scene.command.d.ts.map +1 -0
- package/build/video-generation-chain/endpoints/commands/regenerate-video-generation-chain-scene.command.js +25 -0
- package/build/video-generation-chain/endpoints/commands/resume-video-generation-chain.command.d.ts +113 -0
- package/build/video-generation-chain/endpoints/commands/resume-video-generation-chain.command.d.ts.map +1 -0
- package/build/video-generation-chain/endpoints/commands/resume-video-generation-chain.command.js +27 -0
- package/build/video-generation-chain/endpoints/commands/update-video-generation-chain-scene.command.d.ts +127 -0
- package/build/video-generation-chain/endpoints/commands/update-video-generation-chain-scene.command.d.ts.map +1 -0
- package/build/video-generation-chain/endpoints/commands/update-video-generation-chain-scene.command.js +43 -0
- package/build/video-generation-chain/endpoints/index.d.ts +4 -0
- package/build/video-generation-chain/endpoints/index.d.ts.map +1 -0
- package/build/video-generation-chain/endpoints/index.js +19 -0
- package/build/video-generation-chain/endpoints/queries/get-video-generation-chain-by-uuid.query.d.ts +111 -0
- package/build/video-generation-chain/endpoints/queries/get-video-generation-chain-by-uuid.query.d.ts.map +1 -0
- package/build/video-generation-chain/endpoints/queries/get-video-generation-chain-by-uuid.query.js +25 -0
- package/build/video-generation-chain/endpoints/queries/get-video-generation-chain-config.query.d.ts +107 -0
- package/build/video-generation-chain/endpoints/queries/get-video-generation-chain-config.query.d.ts.map +1 -0
- package/build/video-generation-chain/endpoints/queries/get-video-generation-chain-config.query.js +22 -0
- package/build/video-generation-chain/endpoints/queries/get-video-generation-chains.query.d.ts +54 -0
- package/build/video-generation-chain/endpoints/queries/get-video-generation-chains.query.d.ts.map +1 -0
- package/build/video-generation-chain/endpoints/queries/get-video-generation-chains.query.js +26 -0
- package/build/video-generation-chain/endpoints/queries/index.d.ts +4 -0
- package/build/video-generation-chain/endpoints/queries/index.d.ts.map +1 -0
- package/build/video-generation-chain/endpoints/queries/index.js +19 -0
- package/build/video-generation-chain/endpoints/video-generation-chain.d.ts +12 -0
- package/build/video-generation-chain/endpoints/video-generation-chain.d.ts.map +1 -0
- package/build/video-generation-chain/endpoints/video-generation-chain.js +14 -0
- package/build/video-generation-chain/enums/index.d.ts +5 -0
- package/build/video-generation-chain/enums/index.d.ts.map +1 -0
- package/build/video-generation-chain/enums/index.js +20 -0
- package/build/video-generation-chain/enums/video-generation-chain-frame-slot.enum.d.ts +6 -0
- package/build/video-generation-chain/enums/video-generation-chain-frame-slot.enum.d.ts.map +1 -0
- package/build/video-generation-chain/enums/video-generation-chain-frame-slot.enum.js +13 -0
- package/build/video-generation-chain/enums/video-generation-chain-limits.d.ts +3 -0
- package/build/video-generation-chain/enums/video-generation-chain-limits.d.ts.map +1 -0
- package/build/video-generation-chain/enums/video-generation-chain-limits.js +5 -0
- package/build/video-generation-chain/enums/video-generation-chain-scene-status.enum.d.ts +7 -0
- package/build/video-generation-chain/enums/video-generation-chain-scene-status.enum.d.ts.map +1 -0
- package/build/video-generation-chain/enums/video-generation-chain-scene-status.enum.js +10 -0
- package/build/video-generation-chain/enums/video-generation-chain-status.enum.d.ts +9 -0
- package/build/video-generation-chain/enums/video-generation-chain-status.enum.d.ts.map +1 -0
- package/build/video-generation-chain/enums/video-generation-chain-status.enum.js +12 -0
- package/build/video-generation-chain/index.d.ts +4 -0
- package/build/video-generation-chain/index.d.ts.map +1 -0
- package/build/video-generation-chain/index.js +19 -0
- package/build/video-generation-chain/models/index.d.ts +4 -0
- package/build/video-generation-chain/models/index.d.ts.map +1 -0
- package/build/video-generation-chain/models/index.js +19 -0
- package/build/video-generation-chain/models/video-generation-chain-response.schema.d.ts +73 -0
- package/build/video-generation-chain/models/video-generation-chain-response.schema.d.ts.map +1 -0
- package/build/video-generation-chain/models/video-generation-chain-response.schema.js +24 -0
- package/build/video-generation-chain/models/video-generation-chain-scene-input.schema.d.ts +9 -0
- package/build/video-generation-chain/models/video-generation-chain-scene-input.schema.d.ts.map +1 -0
- package/build/video-generation-chain/models/video-generation-chain-scene-input.schema.js +15 -0
- package/build/video-generation-chain/models/video-generation-chain-scene-response.schema.d.ts +44 -0
- package/build/video-generation-chain/models/video-generation-chain-scene-response.schema.d.ts.map +1 -0
- package/build/video-generation-chain/models/video-generation-chain-scene-response.schema.js +24 -0
- package/errors/errors.ts +74 -0
- package/generation-job/models/generation-job-response.schema.ts +1 -1
- package/index.ts +1 -0
- package/package.json +1 -1
- package/referral/endpoints/referral.ts +3 -0
- package/referral/models/index.ts +1 -0
- package/referral/models/referral-advertising-stats.schema.ts +79 -0
- package/video-generation-chain/endpoints/commands/cancel-video-generation-chain.command.ts +26 -0
- package/video-generation-chain/endpoints/commands/create-video-generation-chain.command.ts +59 -0
- package/video-generation-chain/endpoints/commands/index.ts +5 -0
- package/video-generation-chain/endpoints/commands/regenerate-video-generation-chain-scene.command.ts +25 -0
- package/video-generation-chain/endpoints/commands/resume-video-generation-chain.command.ts +27 -0
- package/video-generation-chain/endpoints/commands/update-video-generation-chain-scene.command.ts +49 -0
- package/video-generation-chain/endpoints/index.ts +3 -0
- package/video-generation-chain/endpoints/queries/get-video-generation-chain-by-uuid.query.ts +25 -0
- package/video-generation-chain/endpoints/queries/get-video-generation-chain-config.query.ts +23 -0
- package/video-generation-chain/endpoints/queries/get-video-generation-chains.query.ts +26 -0
- package/video-generation-chain/endpoints/queries/index.ts +3 -0
- package/video-generation-chain/endpoints/video-generation-chain.ts +12 -0
- package/video-generation-chain/enums/index.ts +4 -0
- package/video-generation-chain/enums/video-generation-chain-frame-slot.enum.ts +10 -0
- package/video-generation-chain/enums/video-generation-chain-limits.ts +2 -0
- package/video-generation-chain/enums/video-generation-chain-scene-status.enum.ts +6 -0
- package/video-generation-chain/enums/video-generation-chain-status.enum.ts +8 -0
- package/video-generation-chain/index.ts +3 -0
- package/video-generation-chain/models/index.ts +3 -0
- package/video-generation-chain/models/video-generation-chain-response.schema.ts +28 -0
- package/video-generation-chain/models/video-generation-chain-scene-input.schema.ts +17 -0
- package/video-generation-chain/models/video-generation-chain-scene-response.schema.ts +26 -0
package/build/video-generation-chain/endpoints/commands/cancel-video-generation-chain.command.d.ts
ADDED
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { HTTP_METHODS } from '../../../_common';
|
|
3
|
+
export declare const CancelVideoGenerationChainCommandParams: z.ZodObject<{
|
|
4
|
+
uuid: z.ZodUUID;
|
|
5
|
+
}, z.core.$strip>;
|
|
6
|
+
export declare const CancelVideoGenerationChainCommandResponse: z.ZodObject<{
|
|
7
|
+
uuid: z.ZodUUID;
|
|
8
|
+
modelId: z.ZodUUID;
|
|
9
|
+
status: z.ZodEnum<typeof import("../..").VIDEO_GENERATION_CHAIN_STATUS>;
|
|
10
|
+
errorCode: z.ZodNullable<z.ZodString>;
|
|
11
|
+
errorMessage: z.ZodNullable<z.ZodString>;
|
|
12
|
+
finishedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
13
|
+
createdAt: z.ZodISODateTime;
|
|
14
|
+
updatedAt: z.ZodISODateTime;
|
|
15
|
+
scenes: z.ZodArray<z.ZodObject<{
|
|
16
|
+
index: z.ZodNumber;
|
|
17
|
+
status: z.ZodEnum<typeof import("../..").VIDEO_GENERATION_CHAIN_SCENE_STATUS>;
|
|
18
|
+
params: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
19
|
+
attachments: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{
|
|
20
|
+
uuid: z.ZodString;
|
|
21
|
+
url: z.ZodString;
|
|
22
|
+
thumbnailUrl: z.ZodNullable<z.ZodString>;
|
|
23
|
+
fileType: z.ZodString;
|
|
24
|
+
mimeType: z.ZodString;
|
|
25
|
+
fileName: z.ZodString;
|
|
26
|
+
size: z.ZodNumber;
|
|
27
|
+
source: z.ZodEnum<{
|
|
28
|
+
context: "context";
|
|
29
|
+
user: "user";
|
|
30
|
+
}>;
|
|
31
|
+
}, z.core.$strip>>>;
|
|
32
|
+
generationJobId: z.ZodNullable<z.ZodUUID>;
|
|
33
|
+
output: z.ZodNullable<z.ZodObject<{
|
|
34
|
+
uuid: z.ZodUUID;
|
|
35
|
+
url: z.ZodURL;
|
|
36
|
+
title: z.ZodOptional<z.ZodString>;
|
|
37
|
+
tags: z.ZodOptional<z.ZodString>;
|
|
38
|
+
duration: z.ZodOptional<z.ZodNumber>;
|
|
39
|
+
imageUrl: z.ZodOptional<z.ZodString>;
|
|
40
|
+
}, z.core.$strip>>;
|
|
41
|
+
lastFrame: z.ZodNullable<z.ZodObject<{
|
|
42
|
+
uuid: z.ZodUUID;
|
|
43
|
+
url: z.ZodURL;
|
|
44
|
+
}, z.core.$strip>>;
|
|
45
|
+
errorCode: z.ZodNullable<z.ZodString>;
|
|
46
|
+
errorMessage: z.ZodNullable<z.ZodString>;
|
|
47
|
+
startedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
48
|
+
finishedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
49
|
+
}, z.core.$strip>>;
|
|
50
|
+
}, z.core.$strip>;
|
|
51
|
+
export declare const CancelVideoGenerationChainCommand: {
|
|
52
|
+
method: HTTP_METHODS.POST;
|
|
53
|
+
path: string;
|
|
54
|
+
summary: string;
|
|
55
|
+
request: {
|
|
56
|
+
params: z.ZodObject<{
|
|
57
|
+
uuid: z.ZodUUID;
|
|
58
|
+
}, z.core.$strip>;
|
|
59
|
+
};
|
|
60
|
+
responses: {
|
|
61
|
+
200: z.ZodObject<{
|
|
62
|
+
uuid: z.ZodUUID;
|
|
63
|
+
modelId: z.ZodUUID;
|
|
64
|
+
status: z.ZodEnum<typeof import("../..").VIDEO_GENERATION_CHAIN_STATUS>;
|
|
65
|
+
errorCode: z.ZodNullable<z.ZodString>;
|
|
66
|
+
errorMessage: z.ZodNullable<z.ZodString>;
|
|
67
|
+
finishedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
68
|
+
createdAt: z.ZodISODateTime;
|
|
69
|
+
updatedAt: z.ZodISODateTime;
|
|
70
|
+
scenes: z.ZodArray<z.ZodObject<{
|
|
71
|
+
index: z.ZodNumber;
|
|
72
|
+
status: z.ZodEnum<typeof import("../..").VIDEO_GENERATION_CHAIN_SCENE_STATUS>;
|
|
73
|
+
params: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
74
|
+
attachments: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{
|
|
75
|
+
uuid: z.ZodString;
|
|
76
|
+
url: z.ZodString;
|
|
77
|
+
thumbnailUrl: z.ZodNullable<z.ZodString>;
|
|
78
|
+
fileType: z.ZodString;
|
|
79
|
+
mimeType: z.ZodString;
|
|
80
|
+
fileName: z.ZodString;
|
|
81
|
+
size: z.ZodNumber;
|
|
82
|
+
source: z.ZodEnum<{
|
|
83
|
+
context: "context";
|
|
84
|
+
user: "user";
|
|
85
|
+
}>;
|
|
86
|
+
}, z.core.$strip>>>;
|
|
87
|
+
generationJobId: z.ZodNullable<z.ZodUUID>;
|
|
88
|
+
output: z.ZodNullable<z.ZodObject<{
|
|
89
|
+
uuid: z.ZodUUID;
|
|
90
|
+
url: z.ZodURL;
|
|
91
|
+
title: z.ZodOptional<z.ZodString>;
|
|
92
|
+
tags: z.ZodOptional<z.ZodString>;
|
|
93
|
+
duration: z.ZodOptional<z.ZodNumber>;
|
|
94
|
+
imageUrl: z.ZodOptional<z.ZodString>;
|
|
95
|
+
}, z.core.$strip>>;
|
|
96
|
+
lastFrame: z.ZodNullable<z.ZodObject<{
|
|
97
|
+
uuid: z.ZodUUID;
|
|
98
|
+
url: z.ZodURL;
|
|
99
|
+
}, z.core.$strip>>;
|
|
100
|
+
errorCode: z.ZodNullable<z.ZodString>;
|
|
101
|
+
errorMessage: z.ZodNullable<z.ZodString>;
|
|
102
|
+
startedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
103
|
+
finishedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
104
|
+
}, z.core.$strip>>;
|
|
105
|
+
}, z.core.$strip>;
|
|
106
|
+
401: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
107
|
+
404: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
108
|
+
409: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
109
|
+
500: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
110
|
+
};
|
|
111
|
+
};
|
|
112
|
+
//# sourceMappingURL=cancel-video-generation-chain.command.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cancel-video-generation-chain.command.d.ts","sourceRoot":"","sources":["../../../../video-generation-chain/endpoints/commands/cancel-video-generation-chain.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAkB,YAAY,EAA2B,MAAM,kBAAkB,CAAC;AAIzF,eAAO,MAAM,uCAAuC;;iBAElD,CAAC;AAEH,eAAO,MAAM,yCAAyC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAAqC,CAAC;AAE5F,eAAO,MAAM,iCAAiC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAc5C,CAAC"}
|
package/build/video-generation-chain/endpoints/commands/cancel-video-generation-chain.command.js
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CancelVideoGenerationChainCommand = exports.CancelVideoGenerationChainCommandResponse = exports.CancelVideoGenerationChainCommandParams = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const _common_1 = require("../../../_common");
|
|
6
|
+
const models_1 = require("../../models");
|
|
7
|
+
const video_generation_chain_1 = require("../video-generation-chain");
|
|
8
|
+
exports.CancelVideoGenerationChainCommandParams = zod_1.z.object({
|
|
9
|
+
uuid: zod_1.z.uuid(),
|
|
10
|
+
});
|
|
11
|
+
exports.CancelVideoGenerationChainCommandResponse = models_1.VideoGenerationChainResponseSchema;
|
|
12
|
+
exports.CancelVideoGenerationChainCommand = (0, _common_1.defineContract)({
|
|
13
|
+
method: _common_1.HTTP_METHODS.POST,
|
|
14
|
+
path: video_generation_chain_1.VIDEO_GENERATION_CHAIN_ROUTES.CANCEL(':uuid'),
|
|
15
|
+
summary: 'Cancel a generation chain; already generated scenes are kept',
|
|
16
|
+
request: {
|
|
17
|
+
params: exports.CancelVideoGenerationChainCommandParams,
|
|
18
|
+
},
|
|
19
|
+
responses: {
|
|
20
|
+
200: exports.CancelVideoGenerationChainCommandResponse,
|
|
21
|
+
401: _common_1.HttpErrorResponseSchema,
|
|
22
|
+
404: _common_1.HttpErrorResponseSchema,
|
|
23
|
+
409: _common_1.HttpErrorResponseSchema,
|
|
24
|
+
500: _common_1.HttpErrorResponseSchema,
|
|
25
|
+
},
|
|
26
|
+
});
|
package/build/video-generation-chain/endpoints/commands/create-video-generation-chain.command.d.ts
ADDED
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { HTTP_METHODS } from '../../../_common';
|
|
3
|
+
export declare const CreateVideoGenerationChainCommandBody: z.ZodObject<{
|
|
4
|
+
modelId: z.ZodUUID;
|
|
5
|
+
scenes: z.ZodArray<z.ZodObject<{
|
|
6
|
+
params: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
7
|
+
attachments: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodUUID>>>;
|
|
8
|
+
}, z.core.$strip>>;
|
|
9
|
+
}, z.core.$strip>;
|
|
10
|
+
export declare const CreateVideoGenerationChainCommandResponse: z.ZodObject<{
|
|
11
|
+
uuid: z.ZodUUID;
|
|
12
|
+
modelId: z.ZodUUID;
|
|
13
|
+
status: z.ZodEnum<typeof import("../../enums").VIDEO_GENERATION_CHAIN_STATUS>;
|
|
14
|
+
errorCode: z.ZodNullable<z.ZodString>;
|
|
15
|
+
errorMessage: z.ZodNullable<z.ZodString>;
|
|
16
|
+
finishedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
17
|
+
createdAt: z.ZodISODateTime;
|
|
18
|
+
updatedAt: z.ZodISODateTime;
|
|
19
|
+
scenes: z.ZodArray<z.ZodObject<{
|
|
20
|
+
index: z.ZodNumber;
|
|
21
|
+
status: z.ZodEnum<typeof import("../../enums").VIDEO_GENERATION_CHAIN_SCENE_STATUS>;
|
|
22
|
+
params: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
23
|
+
attachments: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{
|
|
24
|
+
uuid: z.ZodString;
|
|
25
|
+
url: z.ZodString;
|
|
26
|
+
thumbnailUrl: z.ZodNullable<z.ZodString>;
|
|
27
|
+
fileType: z.ZodString;
|
|
28
|
+
mimeType: z.ZodString;
|
|
29
|
+
fileName: z.ZodString;
|
|
30
|
+
size: z.ZodNumber;
|
|
31
|
+
source: z.ZodEnum<{
|
|
32
|
+
context: "context";
|
|
33
|
+
user: "user";
|
|
34
|
+
}>;
|
|
35
|
+
}, z.core.$strip>>>;
|
|
36
|
+
generationJobId: z.ZodNullable<z.ZodUUID>;
|
|
37
|
+
output: z.ZodNullable<z.ZodObject<{
|
|
38
|
+
uuid: z.ZodUUID;
|
|
39
|
+
url: z.ZodURL;
|
|
40
|
+
title: z.ZodOptional<z.ZodString>;
|
|
41
|
+
tags: z.ZodOptional<z.ZodString>;
|
|
42
|
+
duration: z.ZodOptional<z.ZodNumber>;
|
|
43
|
+
imageUrl: z.ZodOptional<z.ZodString>;
|
|
44
|
+
}, z.core.$strip>>;
|
|
45
|
+
lastFrame: z.ZodNullable<z.ZodObject<{
|
|
46
|
+
uuid: z.ZodUUID;
|
|
47
|
+
url: z.ZodURL;
|
|
48
|
+
}, z.core.$strip>>;
|
|
49
|
+
errorCode: z.ZodNullable<z.ZodString>;
|
|
50
|
+
errorMessage: z.ZodNullable<z.ZodString>;
|
|
51
|
+
startedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
52
|
+
finishedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
53
|
+
}, z.core.$strip>>;
|
|
54
|
+
}, z.core.$strip>;
|
|
55
|
+
export declare const CreateVideoGenerationChainCommand: {
|
|
56
|
+
method: HTTP_METHODS.POST;
|
|
57
|
+
path: "";
|
|
58
|
+
summary: string;
|
|
59
|
+
request: {
|
|
60
|
+
body: z.ZodObject<{
|
|
61
|
+
modelId: z.ZodUUID;
|
|
62
|
+
scenes: z.ZodArray<z.ZodObject<{
|
|
63
|
+
params: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
64
|
+
attachments: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodUUID>>>;
|
|
65
|
+
}, z.core.$strip>>;
|
|
66
|
+
}, z.core.$strip>;
|
|
67
|
+
};
|
|
68
|
+
responses: {
|
|
69
|
+
201: z.ZodObject<{
|
|
70
|
+
uuid: z.ZodUUID;
|
|
71
|
+
modelId: z.ZodUUID;
|
|
72
|
+
status: z.ZodEnum<typeof import("../../enums").VIDEO_GENERATION_CHAIN_STATUS>;
|
|
73
|
+
errorCode: z.ZodNullable<z.ZodString>;
|
|
74
|
+
errorMessage: z.ZodNullable<z.ZodString>;
|
|
75
|
+
finishedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
76
|
+
createdAt: z.ZodISODateTime;
|
|
77
|
+
updatedAt: z.ZodISODateTime;
|
|
78
|
+
scenes: z.ZodArray<z.ZodObject<{
|
|
79
|
+
index: z.ZodNumber;
|
|
80
|
+
status: z.ZodEnum<typeof import("../../enums").VIDEO_GENERATION_CHAIN_SCENE_STATUS>;
|
|
81
|
+
params: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
82
|
+
attachments: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{
|
|
83
|
+
uuid: z.ZodString;
|
|
84
|
+
url: z.ZodString;
|
|
85
|
+
thumbnailUrl: z.ZodNullable<z.ZodString>;
|
|
86
|
+
fileType: z.ZodString;
|
|
87
|
+
mimeType: z.ZodString;
|
|
88
|
+
fileName: z.ZodString;
|
|
89
|
+
size: z.ZodNumber;
|
|
90
|
+
source: z.ZodEnum<{
|
|
91
|
+
context: "context";
|
|
92
|
+
user: "user";
|
|
93
|
+
}>;
|
|
94
|
+
}, z.core.$strip>>>;
|
|
95
|
+
generationJobId: z.ZodNullable<z.ZodUUID>;
|
|
96
|
+
output: z.ZodNullable<z.ZodObject<{
|
|
97
|
+
uuid: z.ZodUUID;
|
|
98
|
+
url: z.ZodURL;
|
|
99
|
+
title: z.ZodOptional<z.ZodString>;
|
|
100
|
+
tags: z.ZodOptional<z.ZodString>;
|
|
101
|
+
duration: z.ZodOptional<z.ZodNumber>;
|
|
102
|
+
imageUrl: z.ZodOptional<z.ZodString>;
|
|
103
|
+
}, z.core.$strip>>;
|
|
104
|
+
lastFrame: z.ZodNullable<z.ZodObject<{
|
|
105
|
+
uuid: z.ZodUUID;
|
|
106
|
+
url: z.ZodURL;
|
|
107
|
+
}, z.core.$strip>>;
|
|
108
|
+
errorCode: z.ZodNullable<z.ZodString>;
|
|
109
|
+
errorMessage: z.ZodNullable<z.ZodString>;
|
|
110
|
+
startedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
111
|
+
finishedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
112
|
+
}, z.core.$strip>>;
|
|
113
|
+
}, z.core.$strip>;
|
|
114
|
+
400: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
115
|
+
401: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
116
|
+
404: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
117
|
+
500: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
118
|
+
};
|
|
119
|
+
};
|
|
120
|
+
//# sourceMappingURL=create-video-generation-chain.command.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-video-generation-chain.command.d.ts","sourceRoot":"","sources":["../../../../video-generation-chain/endpoints/commands/create-video-generation-chain.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAkB,YAAY,EAA2B,MAAM,kBAAkB,CAAC;AASzF,eAAO,MAAM,qCAAqC;;;;;;iBA8B5C,CAAC;AAEP,eAAO,MAAM,yCAAyC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAAqC,CAAC;AAE5F,eAAO,MAAM,iCAAiC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAc5C,CAAC"}
|
package/build/video-generation-chain/endpoints/commands/create-video-generation-chain.command.js
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CreateVideoGenerationChainCommand = exports.CreateVideoGenerationChainCommandResponse = exports.CreateVideoGenerationChainCommandBody = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const _common_1 = require("../../../_common");
|
|
6
|
+
const enums_1 = require("../../enums");
|
|
7
|
+
const models_1 = require("../../models");
|
|
8
|
+
const video_generation_chain_1 = require("../video-generation-chain");
|
|
9
|
+
exports.CreateVideoGenerationChainCommandBody = zod_1.z
|
|
10
|
+
.object({
|
|
11
|
+
modelId: zod_1.z.uuid(),
|
|
12
|
+
scenes: zod_1.z
|
|
13
|
+
.array(models_1.VideoGenerationChainSceneInputSchema)
|
|
14
|
+
.min(enums_1.VIDEO_GENERATION_CHAIN_MIN_SCENES)
|
|
15
|
+
.max(enums_1.VIDEO_GENERATION_CHAIN_MAX_SCENES),
|
|
16
|
+
})
|
|
17
|
+
.superRefine(({ scenes }, ctx) => {
|
|
18
|
+
const lastIndex = scenes.length - 1;
|
|
19
|
+
scenes.forEach((scene, index) => {
|
|
20
|
+
const slots = Object.keys(scene.attachments ?? {});
|
|
21
|
+
if (index !== 0 && slots.includes(enums_1.VIDEO_GENERATION_CHAIN_FRAME_SLOT.FIRST_FRAME)) {
|
|
22
|
+
ctx.addIssue({
|
|
23
|
+
code: 'custom',
|
|
24
|
+
path: ['scenes', index, 'attachments', enums_1.VIDEO_GENERATION_CHAIN_FRAME_SLOT.FIRST_FRAME],
|
|
25
|
+
message: 'First frame is allowed only for the first scene',
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
if (index !== lastIndex && slots.includes(enums_1.VIDEO_GENERATION_CHAIN_FRAME_SLOT.LAST_FRAME)) {
|
|
29
|
+
ctx.addIssue({
|
|
30
|
+
code: 'custom',
|
|
31
|
+
path: ['scenes', index, 'attachments', enums_1.VIDEO_GENERATION_CHAIN_FRAME_SLOT.LAST_FRAME],
|
|
32
|
+
message: 'Last frame is allowed only for the last scene',
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
});
|
|
37
|
+
exports.CreateVideoGenerationChainCommandResponse = models_1.VideoGenerationChainResponseSchema;
|
|
38
|
+
exports.CreateVideoGenerationChainCommand = (0, _common_1.defineContract)({
|
|
39
|
+
method: _common_1.HTTP_METHODS.POST,
|
|
40
|
+
path: video_generation_chain_1.VIDEO_GENERATION_CHAIN_ROUTES.CREATE,
|
|
41
|
+
summary: 'Create and start a chain of linked video generations',
|
|
42
|
+
request: {
|
|
43
|
+
body: exports.CreateVideoGenerationChainCommandBody,
|
|
44
|
+
},
|
|
45
|
+
responses: {
|
|
46
|
+
201: exports.CreateVideoGenerationChainCommandResponse,
|
|
47
|
+
400: _common_1.HttpErrorResponseSchema,
|
|
48
|
+
401: _common_1.HttpErrorResponseSchema,
|
|
49
|
+
404: _common_1.HttpErrorResponseSchema,
|
|
50
|
+
500: _common_1.HttpErrorResponseSchema,
|
|
51
|
+
},
|
|
52
|
+
});
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export * from './create-video-generation-chain.command';
|
|
2
|
+
export * from './update-video-generation-chain-scene.command';
|
|
3
|
+
export * from './resume-video-generation-chain.command';
|
|
4
|
+
export * from './cancel-video-generation-chain.command';
|
|
5
|
+
export * from './regenerate-video-generation-chain-scene.command';
|
|
6
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../video-generation-chain/endpoints/commands/index.ts"],"names":[],"mappings":"AAAA,cAAc,yCAAyC,CAAC;AACxD,cAAc,+CAA+C,CAAC;AAC9D,cAAc,yCAAyC,CAAC;AACxD,cAAc,yCAAyC,CAAC;AACxD,cAAc,mDAAmD,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./create-video-generation-chain.command"), exports);
|
|
18
|
+
__exportStar(require("./update-video-generation-chain-scene.command"), exports);
|
|
19
|
+
__exportStar(require("./resume-video-generation-chain.command"), exports);
|
|
20
|
+
__exportStar(require("./cancel-video-generation-chain.command"), exports);
|
|
21
|
+
__exportStar(require("./regenerate-video-generation-chain-scene.command"), exports);
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
import { HTTP_METHODS } from '../../../_common';
|
|
2
|
+
export declare const RegenerateVideoGenerationChainSceneCommandParams: import("zod").ZodObject<{
|
|
3
|
+
uuid: import("zod").ZodUUID;
|
|
4
|
+
index: import("zod").ZodCoercedNumber<unknown>;
|
|
5
|
+
}, import("zod/v4/core").$strip>;
|
|
6
|
+
export declare const RegenerateVideoGenerationChainSceneCommandResponse: import("zod").ZodObject<{
|
|
7
|
+
uuid: import("zod").ZodUUID;
|
|
8
|
+
modelId: import("zod").ZodUUID;
|
|
9
|
+
status: import("zod").ZodEnum<typeof import("../..").VIDEO_GENERATION_CHAIN_STATUS>;
|
|
10
|
+
errorCode: import("zod").ZodNullable<import("zod").ZodString>;
|
|
11
|
+
errorMessage: import("zod").ZodNullable<import("zod").ZodString>;
|
|
12
|
+
finishedAt: import("zod").ZodNullable<import("zod").ZodISODateTime>;
|
|
13
|
+
createdAt: import("zod").ZodISODateTime;
|
|
14
|
+
updatedAt: import("zod").ZodISODateTime;
|
|
15
|
+
scenes: import("zod").ZodArray<import("zod").ZodObject<{
|
|
16
|
+
index: import("zod").ZodNumber;
|
|
17
|
+
status: import("zod").ZodEnum<typeof import("../..").VIDEO_GENERATION_CHAIN_SCENE_STATUS>;
|
|
18
|
+
params: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>;
|
|
19
|
+
attachments: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodArray<import("zod").ZodObject<{
|
|
20
|
+
uuid: import("zod").ZodString;
|
|
21
|
+
url: import("zod").ZodString;
|
|
22
|
+
thumbnailUrl: import("zod").ZodNullable<import("zod").ZodString>;
|
|
23
|
+
fileType: import("zod").ZodString;
|
|
24
|
+
mimeType: import("zod").ZodString;
|
|
25
|
+
fileName: import("zod").ZodString;
|
|
26
|
+
size: import("zod").ZodNumber;
|
|
27
|
+
source: import("zod").ZodEnum<{
|
|
28
|
+
context: "context";
|
|
29
|
+
user: "user";
|
|
30
|
+
}>;
|
|
31
|
+
}, import("zod/v4/core").$strip>>>;
|
|
32
|
+
generationJobId: import("zod").ZodNullable<import("zod").ZodUUID>;
|
|
33
|
+
output: import("zod").ZodNullable<import("zod").ZodObject<{
|
|
34
|
+
uuid: import("zod").ZodUUID;
|
|
35
|
+
url: import("zod").ZodURL;
|
|
36
|
+
title: import("zod").ZodOptional<import("zod").ZodString>;
|
|
37
|
+
tags: import("zod").ZodOptional<import("zod").ZodString>;
|
|
38
|
+
duration: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
39
|
+
imageUrl: import("zod").ZodOptional<import("zod").ZodString>;
|
|
40
|
+
}, import("zod/v4/core").$strip>>;
|
|
41
|
+
lastFrame: import("zod").ZodNullable<import("zod").ZodObject<{
|
|
42
|
+
uuid: import("zod").ZodUUID;
|
|
43
|
+
url: import("zod").ZodURL;
|
|
44
|
+
}, import("zod/v4/core").$strip>>;
|
|
45
|
+
errorCode: import("zod").ZodNullable<import("zod").ZodString>;
|
|
46
|
+
errorMessage: import("zod").ZodNullable<import("zod").ZodString>;
|
|
47
|
+
startedAt: import("zod").ZodNullable<import("zod").ZodISODateTime>;
|
|
48
|
+
finishedAt: import("zod").ZodNullable<import("zod").ZodISODateTime>;
|
|
49
|
+
}, import("zod/v4/core").$strip>>;
|
|
50
|
+
}, import("zod/v4/core").$strip>;
|
|
51
|
+
export declare const RegenerateVideoGenerationChainSceneCommand: {
|
|
52
|
+
method: HTTP_METHODS.POST;
|
|
53
|
+
path: string;
|
|
54
|
+
summary: string;
|
|
55
|
+
request: {
|
|
56
|
+
params: import("zod").ZodObject<{
|
|
57
|
+
uuid: import("zod").ZodUUID;
|
|
58
|
+
index: import("zod").ZodCoercedNumber<unknown>;
|
|
59
|
+
}, import("zod/v4/core").$strip>;
|
|
60
|
+
};
|
|
61
|
+
responses: {
|
|
62
|
+
200: import("zod").ZodObject<{
|
|
63
|
+
uuid: import("zod").ZodUUID;
|
|
64
|
+
modelId: import("zod").ZodUUID;
|
|
65
|
+
status: import("zod").ZodEnum<typeof import("../..").VIDEO_GENERATION_CHAIN_STATUS>;
|
|
66
|
+
errorCode: import("zod").ZodNullable<import("zod").ZodString>;
|
|
67
|
+
errorMessage: import("zod").ZodNullable<import("zod").ZodString>;
|
|
68
|
+
finishedAt: import("zod").ZodNullable<import("zod").ZodISODateTime>;
|
|
69
|
+
createdAt: import("zod").ZodISODateTime;
|
|
70
|
+
updatedAt: import("zod").ZodISODateTime;
|
|
71
|
+
scenes: import("zod").ZodArray<import("zod").ZodObject<{
|
|
72
|
+
index: import("zod").ZodNumber;
|
|
73
|
+
status: import("zod").ZodEnum<typeof import("../..").VIDEO_GENERATION_CHAIN_SCENE_STATUS>;
|
|
74
|
+
params: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>;
|
|
75
|
+
attachments: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodArray<import("zod").ZodObject<{
|
|
76
|
+
uuid: import("zod").ZodString;
|
|
77
|
+
url: import("zod").ZodString;
|
|
78
|
+
thumbnailUrl: import("zod").ZodNullable<import("zod").ZodString>;
|
|
79
|
+
fileType: import("zod").ZodString;
|
|
80
|
+
mimeType: import("zod").ZodString;
|
|
81
|
+
fileName: import("zod").ZodString;
|
|
82
|
+
size: import("zod").ZodNumber;
|
|
83
|
+
source: import("zod").ZodEnum<{
|
|
84
|
+
context: "context";
|
|
85
|
+
user: "user";
|
|
86
|
+
}>;
|
|
87
|
+
}, import("zod/v4/core").$strip>>>;
|
|
88
|
+
generationJobId: import("zod").ZodNullable<import("zod").ZodUUID>;
|
|
89
|
+
output: import("zod").ZodNullable<import("zod").ZodObject<{
|
|
90
|
+
uuid: import("zod").ZodUUID;
|
|
91
|
+
url: import("zod").ZodURL;
|
|
92
|
+
title: import("zod").ZodOptional<import("zod").ZodString>;
|
|
93
|
+
tags: import("zod").ZodOptional<import("zod").ZodString>;
|
|
94
|
+
duration: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
95
|
+
imageUrl: import("zod").ZodOptional<import("zod").ZodString>;
|
|
96
|
+
}, import("zod/v4/core").$strip>>;
|
|
97
|
+
lastFrame: import("zod").ZodNullable<import("zod").ZodObject<{
|
|
98
|
+
uuid: import("zod").ZodUUID;
|
|
99
|
+
url: import("zod").ZodURL;
|
|
100
|
+
}, import("zod/v4/core").$strip>>;
|
|
101
|
+
errorCode: import("zod").ZodNullable<import("zod").ZodString>;
|
|
102
|
+
errorMessage: import("zod").ZodNullable<import("zod").ZodString>;
|
|
103
|
+
startedAt: import("zod").ZodNullable<import("zod").ZodISODateTime>;
|
|
104
|
+
finishedAt: import("zod").ZodNullable<import("zod").ZodISODateTime>;
|
|
105
|
+
}, import("zod/v4/core").$strip>>;
|
|
106
|
+
}, import("zod/v4/core").$strip>;
|
|
107
|
+
400: import("zod").ZodType<import("../../../_common").HttpErrorResponse, unknown, import("zod/v4/core").$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
108
|
+
401: import("zod").ZodType<import("../../../_common").HttpErrorResponse, unknown, import("zod/v4/core").$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
109
|
+
404: import("zod").ZodType<import("../../../_common").HttpErrorResponse, unknown, import("zod/v4/core").$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
110
|
+
409: import("zod").ZodType<import("../../../_common").HttpErrorResponse, unknown, import("zod/v4/core").$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
111
|
+
500: import("zod").ZodType<import("../../../_common").HttpErrorResponse, unknown, import("zod/v4/core").$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
112
|
+
};
|
|
113
|
+
};
|
|
114
|
+
//# sourceMappingURL=regenerate-video-generation-chain-scene.command.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"regenerate-video-generation-chain-scene.command.d.ts","sourceRoot":"","sources":["../../../../video-generation-chain/endpoints/commands/regenerate-video-generation-chain-scene.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkB,YAAY,EAA2B,MAAM,kBAAkB,CAAC;AAKzF,eAAO,MAAM,gDAAgD;;;gCAAkC,CAAC;AAEhG,eAAO,MAAM,kDAAkD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gCAAqC,CAAC;AAErG,eAAO,MAAM,0CAA0C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAerD,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RegenerateVideoGenerationChainSceneCommand = exports.RegenerateVideoGenerationChainSceneCommandResponse = exports.RegenerateVideoGenerationChainSceneCommandParams = void 0;
|
|
4
|
+
const _common_1 = require("../../../_common");
|
|
5
|
+
const models_1 = require("../../models");
|
|
6
|
+
const video_generation_chain_1 = require("../video-generation-chain");
|
|
7
|
+
const update_video_generation_chain_scene_command_1 = require("./update-video-generation-chain-scene.command");
|
|
8
|
+
exports.RegenerateVideoGenerationChainSceneCommandParams = update_video_generation_chain_scene_command_1.VideoGenerationChainSceneParams;
|
|
9
|
+
exports.RegenerateVideoGenerationChainSceneCommandResponse = models_1.VideoGenerationChainResponseSchema;
|
|
10
|
+
exports.RegenerateVideoGenerationChainSceneCommand = (0, _common_1.defineContract)({
|
|
11
|
+
method: _common_1.HTTP_METHODS.POST,
|
|
12
|
+
path: video_generation_chain_1.VIDEO_GENERATION_CHAIN_ROUTES.REGENERATE_SCENE(':uuid', ':index'),
|
|
13
|
+
summary: 'Regenerate a generated scene that no generated scene depends on',
|
|
14
|
+
request: {
|
|
15
|
+
params: exports.RegenerateVideoGenerationChainSceneCommandParams,
|
|
16
|
+
},
|
|
17
|
+
responses: {
|
|
18
|
+
200: exports.RegenerateVideoGenerationChainSceneCommandResponse,
|
|
19
|
+
400: _common_1.HttpErrorResponseSchema,
|
|
20
|
+
401: _common_1.HttpErrorResponseSchema,
|
|
21
|
+
404: _common_1.HttpErrorResponseSchema,
|
|
22
|
+
409: _common_1.HttpErrorResponseSchema,
|
|
23
|
+
500: _common_1.HttpErrorResponseSchema,
|
|
24
|
+
},
|
|
25
|
+
});
|
package/build/video-generation-chain/endpoints/commands/resume-video-generation-chain.command.d.ts
ADDED
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { HTTP_METHODS } from '../../../_common';
|
|
3
|
+
export declare const ResumeVideoGenerationChainCommandParams: z.ZodObject<{
|
|
4
|
+
uuid: z.ZodUUID;
|
|
5
|
+
}, z.core.$strip>;
|
|
6
|
+
export declare const ResumeVideoGenerationChainCommandResponse: z.ZodObject<{
|
|
7
|
+
uuid: z.ZodUUID;
|
|
8
|
+
modelId: z.ZodUUID;
|
|
9
|
+
status: z.ZodEnum<typeof import("../..").VIDEO_GENERATION_CHAIN_STATUS>;
|
|
10
|
+
errorCode: z.ZodNullable<z.ZodString>;
|
|
11
|
+
errorMessage: z.ZodNullable<z.ZodString>;
|
|
12
|
+
finishedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
13
|
+
createdAt: z.ZodISODateTime;
|
|
14
|
+
updatedAt: z.ZodISODateTime;
|
|
15
|
+
scenes: z.ZodArray<z.ZodObject<{
|
|
16
|
+
index: z.ZodNumber;
|
|
17
|
+
status: z.ZodEnum<typeof import("../..").VIDEO_GENERATION_CHAIN_SCENE_STATUS>;
|
|
18
|
+
params: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
19
|
+
attachments: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{
|
|
20
|
+
uuid: z.ZodString;
|
|
21
|
+
url: z.ZodString;
|
|
22
|
+
thumbnailUrl: z.ZodNullable<z.ZodString>;
|
|
23
|
+
fileType: z.ZodString;
|
|
24
|
+
mimeType: z.ZodString;
|
|
25
|
+
fileName: z.ZodString;
|
|
26
|
+
size: z.ZodNumber;
|
|
27
|
+
source: z.ZodEnum<{
|
|
28
|
+
context: "context";
|
|
29
|
+
user: "user";
|
|
30
|
+
}>;
|
|
31
|
+
}, z.core.$strip>>>;
|
|
32
|
+
generationJobId: z.ZodNullable<z.ZodUUID>;
|
|
33
|
+
output: z.ZodNullable<z.ZodObject<{
|
|
34
|
+
uuid: z.ZodUUID;
|
|
35
|
+
url: z.ZodURL;
|
|
36
|
+
title: z.ZodOptional<z.ZodString>;
|
|
37
|
+
tags: z.ZodOptional<z.ZodString>;
|
|
38
|
+
duration: z.ZodOptional<z.ZodNumber>;
|
|
39
|
+
imageUrl: z.ZodOptional<z.ZodString>;
|
|
40
|
+
}, z.core.$strip>>;
|
|
41
|
+
lastFrame: z.ZodNullable<z.ZodObject<{
|
|
42
|
+
uuid: z.ZodUUID;
|
|
43
|
+
url: z.ZodURL;
|
|
44
|
+
}, z.core.$strip>>;
|
|
45
|
+
errorCode: z.ZodNullable<z.ZodString>;
|
|
46
|
+
errorMessage: z.ZodNullable<z.ZodString>;
|
|
47
|
+
startedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
48
|
+
finishedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
49
|
+
}, z.core.$strip>>;
|
|
50
|
+
}, z.core.$strip>;
|
|
51
|
+
export declare const ResumeVideoGenerationChainCommand: {
|
|
52
|
+
method: HTTP_METHODS.POST;
|
|
53
|
+
path: string;
|
|
54
|
+
summary: string;
|
|
55
|
+
request: {
|
|
56
|
+
params: z.ZodObject<{
|
|
57
|
+
uuid: z.ZodUUID;
|
|
58
|
+
}, z.core.$strip>;
|
|
59
|
+
};
|
|
60
|
+
responses: {
|
|
61
|
+
200: z.ZodObject<{
|
|
62
|
+
uuid: z.ZodUUID;
|
|
63
|
+
modelId: z.ZodUUID;
|
|
64
|
+
status: z.ZodEnum<typeof import("../..").VIDEO_GENERATION_CHAIN_STATUS>;
|
|
65
|
+
errorCode: z.ZodNullable<z.ZodString>;
|
|
66
|
+
errorMessage: z.ZodNullable<z.ZodString>;
|
|
67
|
+
finishedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
68
|
+
createdAt: z.ZodISODateTime;
|
|
69
|
+
updatedAt: z.ZodISODateTime;
|
|
70
|
+
scenes: z.ZodArray<z.ZodObject<{
|
|
71
|
+
index: z.ZodNumber;
|
|
72
|
+
status: z.ZodEnum<typeof import("../..").VIDEO_GENERATION_CHAIN_SCENE_STATUS>;
|
|
73
|
+
params: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
74
|
+
attachments: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{
|
|
75
|
+
uuid: z.ZodString;
|
|
76
|
+
url: z.ZodString;
|
|
77
|
+
thumbnailUrl: z.ZodNullable<z.ZodString>;
|
|
78
|
+
fileType: z.ZodString;
|
|
79
|
+
mimeType: z.ZodString;
|
|
80
|
+
fileName: z.ZodString;
|
|
81
|
+
size: z.ZodNumber;
|
|
82
|
+
source: z.ZodEnum<{
|
|
83
|
+
context: "context";
|
|
84
|
+
user: "user";
|
|
85
|
+
}>;
|
|
86
|
+
}, z.core.$strip>>>;
|
|
87
|
+
generationJobId: z.ZodNullable<z.ZodUUID>;
|
|
88
|
+
output: z.ZodNullable<z.ZodObject<{
|
|
89
|
+
uuid: z.ZodUUID;
|
|
90
|
+
url: z.ZodURL;
|
|
91
|
+
title: z.ZodOptional<z.ZodString>;
|
|
92
|
+
tags: z.ZodOptional<z.ZodString>;
|
|
93
|
+
duration: z.ZodOptional<z.ZodNumber>;
|
|
94
|
+
imageUrl: z.ZodOptional<z.ZodString>;
|
|
95
|
+
}, z.core.$strip>>;
|
|
96
|
+
lastFrame: z.ZodNullable<z.ZodObject<{
|
|
97
|
+
uuid: z.ZodUUID;
|
|
98
|
+
url: z.ZodURL;
|
|
99
|
+
}, z.core.$strip>>;
|
|
100
|
+
errorCode: z.ZodNullable<z.ZodString>;
|
|
101
|
+
errorMessage: z.ZodNullable<z.ZodString>;
|
|
102
|
+
startedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
103
|
+
finishedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
104
|
+
}, z.core.$strip>>;
|
|
105
|
+
}, z.core.$strip>;
|
|
106
|
+
400: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
107
|
+
401: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
108
|
+
404: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
109
|
+
409: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
110
|
+
500: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
111
|
+
};
|
|
112
|
+
};
|
|
113
|
+
//# sourceMappingURL=resume-video-generation-chain.command.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resume-video-generation-chain.command.d.ts","sourceRoot":"","sources":["../../../../video-generation-chain/endpoints/commands/resume-video-generation-chain.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAkB,YAAY,EAA2B,MAAM,kBAAkB,CAAC;AAIzF,eAAO,MAAM,uCAAuC;;iBAElD,CAAC;AAEH,eAAO,MAAM,yCAAyC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAAqC,CAAC;AAE5F,eAAO,MAAM,iCAAiC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAe5C,CAAC"}
|
package/build/video-generation-chain/endpoints/commands/resume-video-generation-chain.command.js
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ResumeVideoGenerationChainCommand = exports.ResumeVideoGenerationChainCommandResponse = exports.ResumeVideoGenerationChainCommandParams = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const _common_1 = require("../../../_common");
|
|
6
|
+
const models_1 = require("../../models");
|
|
7
|
+
const video_generation_chain_1 = require("../video-generation-chain");
|
|
8
|
+
exports.ResumeVideoGenerationChainCommandParams = zod_1.z.object({
|
|
9
|
+
uuid: zod_1.z.uuid(),
|
|
10
|
+
});
|
|
11
|
+
exports.ResumeVideoGenerationChainCommandResponse = models_1.VideoGenerationChainResponseSchema;
|
|
12
|
+
exports.ResumeVideoGenerationChainCommand = (0, _common_1.defineContract)({
|
|
13
|
+
method: _common_1.HTTP_METHODS.POST,
|
|
14
|
+
path: video_generation_chain_1.VIDEO_GENERATION_CHAIN_ROUTES.RESUME(':uuid'),
|
|
15
|
+
summary: 'Resume a paused generation chain from the first ungenerated scene',
|
|
16
|
+
request: {
|
|
17
|
+
params: exports.ResumeVideoGenerationChainCommandParams,
|
|
18
|
+
},
|
|
19
|
+
responses: {
|
|
20
|
+
200: exports.ResumeVideoGenerationChainCommandResponse,
|
|
21
|
+
400: _common_1.HttpErrorResponseSchema,
|
|
22
|
+
401: _common_1.HttpErrorResponseSchema,
|
|
23
|
+
404: _common_1.HttpErrorResponseSchema,
|
|
24
|
+
409: _common_1.HttpErrorResponseSchema,
|
|
25
|
+
500: _common_1.HttpErrorResponseSchema,
|
|
26
|
+
},
|
|
27
|
+
});
|