@alicloud/yike20260319 1.0.0
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/LICENSE +13 -0
- package/README.md +25 -0
- package/dist/client.d.ts +101 -0
- package/dist/client.js +353 -0
- package/dist/client.js.map +1 -0
- package/dist/models/BatchGetYikeAiappJobRequest.d.ts +18 -0
- package/dist/models/BatchGetYikeAiappJobRequest.js +58 -0
- package/dist/models/BatchGetYikeAiappJobRequest.js.map +1 -0
- package/dist/models/BatchGetYikeAiappJobResponse.d.ts +19 -0
- package/dist/models/BatchGetYikeAiappJobResponse.js +69 -0
- package/dist/models/BatchGetYikeAiappJobResponse.js.map +1 -0
- package/dist/models/BatchGetYikeAiappJobResponseBody.d.ts +155 -0
- package/dist/models/BatchGetYikeAiappJobResponseBody.js +198 -0
- package/dist/models/BatchGetYikeAiappJobResponseBody.js.map +1 -0
- package/dist/models/CreateYikeAssetUploadRequest.d.ts +26 -0
- package/dist/models/CreateYikeAssetUploadRequest.js +60 -0
- package/dist/models/CreateYikeAssetUploadRequest.js.map +1 -0
- package/dist/models/CreateYikeAssetUploadResponse.d.ts +19 -0
- package/dist/models/CreateYikeAssetUploadResponse.js +69 -0
- package/dist/models/CreateYikeAssetUploadResponse.js.map +1 -0
- package/dist/models/CreateYikeAssetUploadResponseBody.d.ts +33 -0
- package/dist/models/CreateYikeAssetUploadResponseBody.js +64 -0
- package/dist/models/CreateYikeAssetUploadResponseBody.js.map +1 -0
- package/dist/models/GetYikeAiappJobRequest.d.ts +18 -0
- package/dist/models/GetYikeAiappJobRequest.js +58 -0
- package/dist/models/GetYikeAiappJobRequest.js.map +1 -0
- package/dist/models/GetYikeAiappJobResponse.d.ts +19 -0
- package/dist/models/GetYikeAiappJobResponse.js +69 -0
- package/dist/models/GetYikeAiappJobResponse.js.map +1 -0
- package/dist/models/GetYikeAiappJobResponseBody.d.ts +140 -0
- package/dist/models/GetYikeAiappJobResponseBody.js +174 -0
- package/dist/models/GetYikeAiappJobResponseBody.js.map +1 -0
- package/dist/models/GetYikeStoryboardJobRequest.d.ts +18 -0
- package/dist/models/GetYikeStoryboardJobRequest.js +58 -0
- package/dist/models/GetYikeStoryboardJobRequest.js.map +1 -0
- package/dist/models/GetYikeStoryboardJobResponse.d.ts +19 -0
- package/dist/models/GetYikeStoryboardJobResponse.js +69 -0
- package/dist/models/GetYikeStoryboardJobResponse.js.map +1 -0
- package/dist/models/GetYikeStoryboardJobResponseBody.d.ts +141 -0
- package/dist/models/GetYikeStoryboardJobResponseBody.js +140 -0
- package/dist/models/GetYikeStoryboardJobResponseBody.js.map +1 -0
- package/dist/models/SubmitYikeAiappJobRequest.d.ts +36 -0
- package/dist/models/SubmitYikeAiappJobRequest.js +64 -0
- package/dist/models/SubmitYikeAiappJobRequest.js.map +1 -0
- package/dist/models/SubmitYikeAiappJobResponse.d.ts +19 -0
- package/dist/models/SubmitYikeAiappJobResponse.js +69 -0
- package/dist/models/SubmitYikeAiappJobResponse.js.map +1 -0
- package/dist/models/SubmitYikeAiappJobResponseBody.d.ts +23 -0
- package/dist/models/SubmitYikeAiappJobResponseBody.js +60 -0
- package/dist/models/SubmitYikeAiappJobResponseBody.js.map +1 -0
- package/dist/models/SubmitYikeStoryboardJobRequest.d.ts +87 -0
- package/dist/models/SubmitYikeStoryboardJobRequest.js +84 -0
- package/dist/models/SubmitYikeStoryboardJobRequest.js.map +1 -0
- package/dist/models/SubmitYikeStoryboardJobResponse.d.ts +19 -0
- package/dist/models/SubmitYikeStoryboardJobResponse.js +69 -0
- package/dist/models/SubmitYikeStoryboardJobResponse.js.map +1 -0
- package/dist/models/SubmitYikeStoryboardJobResponseBody.d.ts +23 -0
- package/dist/models/SubmitYikeStoryboardJobResponseBody.js +60 -0
- package/dist/models/SubmitYikeStoryboardJobResponseBody.js.map +1 -0
- package/dist/models/model.d.ts +29 -0
- package/dist/models/model.js +62 -0
- package/dist/models/model.js.map +1 -0
- package/package.json +29 -0
- package/src/client.ts +354 -0
- package/src/models/BatchGetYikeAiappJobRequest.ts +31 -0
- package/src/models/BatchGetYikeAiappJobResponse.ts +40 -0
- package/src/models/BatchGetYikeAiappJobResponseBody.ts +261 -0
- package/src/models/CreateYikeAssetUploadRequest.ts +41 -0
- package/src/models/CreateYikeAssetUploadResponse.ts +40 -0
- package/src/models/CreateYikeAssetUploadResponseBody.ts +52 -0
- package/src/models/GetYikeAiappJobRequest.ts +31 -0
- package/src/models/GetYikeAiappJobResponse.ts +40 -0
- package/src/models/GetYikeAiappJobResponseBody.ts +233 -0
- package/src/models/GetYikeStoryboardJobRequest.ts +31 -0
- package/src/models/GetYikeStoryboardJobResponse.ts +40 -0
- package/src/models/GetYikeStoryboardJobResponseBody.ts +218 -0
- package/src/models/SubmitYikeAiappJobRequest.ts +55 -0
- package/src/models/SubmitYikeAiappJobResponse.ts +40 -0
- package/src/models/SubmitYikeAiappJobResponseBody.ts +38 -0
- package/src/models/SubmitYikeStoryboardJobRequest.ts +126 -0
- package/src/models/SubmitYikeStoryboardJobResponse.ts +40 -0
- package/src/models/SubmitYikeStoryboardJobResponseBody.ts +38 -0
- package/src/models/model.ts +29 -0
package/src/client.ts
ADDED
|
@@ -0,0 +1,354 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
import OpenApi from '@alicloud/openapi-core';
|
|
4
|
+
import { OpenApiUtil, $OpenApiUtil }from '@alicloud/openapi-core';
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
import * as $_model from './models/model';
|
|
8
|
+
export * from './models/model';
|
|
9
|
+
|
|
10
|
+
export default class Client extends OpenApi {
|
|
11
|
+
|
|
12
|
+
constructor(config: $OpenApiUtil.Config) {
|
|
13
|
+
super(config);
|
|
14
|
+
this._endpointRule = "";
|
|
15
|
+
this.checkConfig(config);
|
|
16
|
+
this._endpoint = this.getEndpoint("yike", this._regionId, this._endpointRule, this._network, this._suffix, this._endpointMap, this._endpoint);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
getEndpoint(productId: string, regionId: string, endpointRule: string, network: string, suffix: string, endpointMap: {[key: string ]: string}, endpoint: string): string {
|
|
21
|
+
if (!$dara.isNull(endpoint)) {
|
|
22
|
+
return endpoint;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
if (!$dara.isNull(endpointMap) && !$dara.isNull(endpointMap[regionId])) {
|
|
26
|
+
return endpointMap[regionId];
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
return OpenApiUtil.getEndpointRules(productId, regionId, endpointRule, network, suffix);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* 批量获取一刻AI应用生成任务
|
|
34
|
+
*
|
|
35
|
+
* @param request - BatchGetYikeAIAppJobRequest
|
|
36
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
37
|
+
* @returns BatchGetYikeAIAppJobResponse
|
|
38
|
+
*/
|
|
39
|
+
async batchGetYikeAIAppJobWithOptions(request: $_model.BatchGetYikeAIAppJobRequest, runtime: $dara.RuntimeOptions): Promise<$_model.BatchGetYikeAIAppJobResponse> {
|
|
40
|
+
request.validate();
|
|
41
|
+
let query = { };
|
|
42
|
+
if (!$dara.isNull(request.jobIds)) {
|
|
43
|
+
query["JobIds"] = request.jobIds;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
47
|
+
query: OpenApiUtil.query(query),
|
|
48
|
+
});
|
|
49
|
+
let params = new $OpenApiUtil.Params({
|
|
50
|
+
action: "BatchGetYikeAIAppJob",
|
|
51
|
+
version: "2026-03-19",
|
|
52
|
+
protocol: "HTTPS",
|
|
53
|
+
pathname: "/",
|
|
54
|
+
method: "POST",
|
|
55
|
+
authType: "AK",
|
|
56
|
+
style: "RPC",
|
|
57
|
+
reqBodyType: "formData",
|
|
58
|
+
bodyType: "json",
|
|
59
|
+
});
|
|
60
|
+
return $dara.cast<$_model.BatchGetYikeAIAppJobResponse>(await this.callApi(params, req, runtime), new $_model.BatchGetYikeAIAppJobResponse({}));
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* 批量获取一刻AI应用生成任务
|
|
65
|
+
*
|
|
66
|
+
* @param request - BatchGetYikeAIAppJobRequest
|
|
67
|
+
* @returns BatchGetYikeAIAppJobResponse
|
|
68
|
+
*/
|
|
69
|
+
async batchGetYikeAIAppJob(request: $_model.BatchGetYikeAIAppJobRequest): Promise<$_model.BatchGetYikeAIAppJobResponse> {
|
|
70
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
71
|
+
return await this.batchGetYikeAIAppJobWithOptions(request, runtime);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* 获取一刻媒资上传凭证
|
|
76
|
+
*
|
|
77
|
+
* @param request - CreateYikeAssetUploadRequest
|
|
78
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
79
|
+
* @returns CreateYikeAssetUploadResponse
|
|
80
|
+
*/
|
|
81
|
+
async createYikeAssetUploadWithOptions(request: $_model.CreateYikeAssetUploadRequest, runtime: $dara.RuntimeOptions): Promise<$_model.CreateYikeAssetUploadResponse> {
|
|
82
|
+
request.validate();
|
|
83
|
+
let query = { };
|
|
84
|
+
if (!$dara.isNull(request.fileExt)) {
|
|
85
|
+
query["FileExt"] = request.fileExt;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
if (!$dara.isNull(request.fileType)) {
|
|
89
|
+
query["FileType"] = request.fileType;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
93
|
+
query: OpenApiUtil.query(query),
|
|
94
|
+
});
|
|
95
|
+
let params = new $OpenApiUtil.Params({
|
|
96
|
+
action: "CreateYikeAssetUpload",
|
|
97
|
+
version: "2026-03-19",
|
|
98
|
+
protocol: "HTTPS",
|
|
99
|
+
pathname: "/",
|
|
100
|
+
method: "POST",
|
|
101
|
+
authType: "AK",
|
|
102
|
+
style: "RPC",
|
|
103
|
+
reqBodyType: "formData",
|
|
104
|
+
bodyType: "json",
|
|
105
|
+
});
|
|
106
|
+
return $dara.cast<$_model.CreateYikeAssetUploadResponse>(await this.callApi(params, req, runtime), new $_model.CreateYikeAssetUploadResponse({}));
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
/**
|
|
110
|
+
* 获取一刻媒资上传凭证
|
|
111
|
+
*
|
|
112
|
+
* @param request - CreateYikeAssetUploadRequest
|
|
113
|
+
* @returns CreateYikeAssetUploadResponse
|
|
114
|
+
*/
|
|
115
|
+
async createYikeAssetUpload(request: $_model.CreateYikeAssetUploadRequest): Promise<$_model.CreateYikeAssetUploadResponse> {
|
|
116
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
117
|
+
return await this.createYikeAssetUploadWithOptions(request, runtime);
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
/**
|
|
121
|
+
* 获取一刻AI应用任务
|
|
122
|
+
*
|
|
123
|
+
* @param request - GetYikeAIAppJobRequest
|
|
124
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
125
|
+
* @returns GetYikeAIAppJobResponse
|
|
126
|
+
*/
|
|
127
|
+
async getYikeAIAppJobWithOptions(request: $_model.GetYikeAIAppJobRequest, runtime: $dara.RuntimeOptions): Promise<$_model.GetYikeAIAppJobResponse> {
|
|
128
|
+
request.validate();
|
|
129
|
+
let query = { };
|
|
130
|
+
if (!$dara.isNull(request.jobId)) {
|
|
131
|
+
query["JobId"] = request.jobId;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
135
|
+
query: OpenApiUtil.query(query),
|
|
136
|
+
});
|
|
137
|
+
let params = new $OpenApiUtil.Params({
|
|
138
|
+
action: "GetYikeAIAppJob",
|
|
139
|
+
version: "2026-03-19",
|
|
140
|
+
protocol: "HTTPS",
|
|
141
|
+
pathname: "/",
|
|
142
|
+
method: "POST",
|
|
143
|
+
authType: "AK",
|
|
144
|
+
style: "RPC",
|
|
145
|
+
reqBodyType: "formData",
|
|
146
|
+
bodyType: "json",
|
|
147
|
+
});
|
|
148
|
+
return $dara.cast<$_model.GetYikeAIAppJobResponse>(await this.callApi(params, req, runtime), new $_model.GetYikeAIAppJobResponse({}));
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
/**
|
|
152
|
+
* 获取一刻AI应用任务
|
|
153
|
+
*
|
|
154
|
+
* @param request - GetYikeAIAppJobRequest
|
|
155
|
+
* @returns GetYikeAIAppJobResponse
|
|
156
|
+
*/
|
|
157
|
+
async getYikeAIAppJob(request: $_model.GetYikeAIAppJobRequest): Promise<$_model.GetYikeAIAppJobResponse> {
|
|
158
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
159
|
+
return await this.getYikeAIAppJobWithOptions(request, runtime);
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
/**
|
|
163
|
+
* 获取一刻故事板任务
|
|
164
|
+
*
|
|
165
|
+
* @param request - GetYikeStoryboardJobRequest
|
|
166
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
167
|
+
* @returns GetYikeStoryboardJobResponse
|
|
168
|
+
*/
|
|
169
|
+
async getYikeStoryboardJobWithOptions(request: $_model.GetYikeStoryboardJobRequest, runtime: $dara.RuntimeOptions): Promise<$_model.GetYikeStoryboardJobResponse> {
|
|
170
|
+
request.validate();
|
|
171
|
+
let query = { };
|
|
172
|
+
if (!$dara.isNull(request.jobId)) {
|
|
173
|
+
query["JobId"] = request.jobId;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
177
|
+
query: OpenApiUtil.query(query),
|
|
178
|
+
});
|
|
179
|
+
let params = new $OpenApiUtil.Params({
|
|
180
|
+
action: "GetYikeStoryboardJob",
|
|
181
|
+
version: "2026-03-19",
|
|
182
|
+
protocol: "HTTPS",
|
|
183
|
+
pathname: "/",
|
|
184
|
+
method: "POST",
|
|
185
|
+
authType: "AK",
|
|
186
|
+
style: "RPC",
|
|
187
|
+
reqBodyType: "formData",
|
|
188
|
+
bodyType: "json",
|
|
189
|
+
});
|
|
190
|
+
return $dara.cast<$_model.GetYikeStoryboardJobResponse>(await this.callApi(params, req, runtime), new $_model.GetYikeStoryboardJobResponse({}));
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
/**
|
|
194
|
+
* 获取一刻故事板任务
|
|
195
|
+
*
|
|
196
|
+
* @param request - GetYikeStoryboardJobRequest
|
|
197
|
+
* @returns GetYikeStoryboardJobResponse
|
|
198
|
+
*/
|
|
199
|
+
async getYikeStoryboardJob(request: $_model.GetYikeStoryboardJobRequest): Promise<$_model.GetYikeStoryboardJobResponse> {
|
|
200
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
201
|
+
return await this.getYikeStoryboardJobWithOptions(request, runtime);
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
/**
|
|
205
|
+
* 提交一刻AI应用任务
|
|
206
|
+
*
|
|
207
|
+
* @param request - SubmitYikeAIAppJobRequest
|
|
208
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
209
|
+
* @returns SubmitYikeAIAppJobResponse
|
|
210
|
+
*/
|
|
211
|
+
async submitYikeAIAppJobWithOptions(request: $_model.SubmitYikeAIAppJobRequest, runtime: $dara.RuntimeOptions): Promise<$_model.SubmitYikeAIAppJobResponse> {
|
|
212
|
+
request.validate();
|
|
213
|
+
let body : {[key: string ]: any} = { };
|
|
214
|
+
if (!$dara.isNull(request.appId)) {
|
|
215
|
+
body["AppId"] = request.appId;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
if (!$dara.isNull(request.appParams)) {
|
|
219
|
+
body["AppParams"] = request.appParams;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
if (!$dara.isNull(request.folderId)) {
|
|
223
|
+
body["FolderId"] = request.folderId;
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
if (!$dara.isNull(request.productionId)) {
|
|
227
|
+
body["ProductionId"] = request.productionId;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
231
|
+
body: OpenApiUtil.parseToMap(body),
|
|
232
|
+
});
|
|
233
|
+
let params = new $OpenApiUtil.Params({
|
|
234
|
+
action: "SubmitYikeAIAppJob",
|
|
235
|
+
version: "2026-03-19",
|
|
236
|
+
protocol: "HTTPS",
|
|
237
|
+
pathname: "/",
|
|
238
|
+
method: "POST",
|
|
239
|
+
authType: "AK",
|
|
240
|
+
style: "RPC",
|
|
241
|
+
reqBodyType: "formData",
|
|
242
|
+
bodyType: "json",
|
|
243
|
+
});
|
|
244
|
+
return $dara.cast<$_model.SubmitYikeAIAppJobResponse>(await this.callApi(params, req, runtime), new $_model.SubmitYikeAIAppJobResponse({}));
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
/**
|
|
248
|
+
* 提交一刻AI应用任务
|
|
249
|
+
*
|
|
250
|
+
* @param request - SubmitYikeAIAppJobRequest
|
|
251
|
+
* @returns SubmitYikeAIAppJobResponse
|
|
252
|
+
*/
|
|
253
|
+
async submitYikeAIAppJob(request: $_model.SubmitYikeAIAppJobRequest): Promise<$_model.SubmitYikeAIAppJobResponse> {
|
|
254
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
255
|
+
return await this.submitYikeAIAppJobWithOptions(request, runtime);
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
/**
|
|
259
|
+
* 提交一刻故事板任务
|
|
260
|
+
*
|
|
261
|
+
* @param request - SubmitYikeStoryboardJobRequest
|
|
262
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
263
|
+
* @returns SubmitYikeStoryboardJobResponse
|
|
264
|
+
*/
|
|
265
|
+
async submitYikeStoryboardJobWithOptions(request: $_model.SubmitYikeStoryboardJobRequest, runtime: $dara.RuntimeOptions): Promise<$_model.SubmitYikeStoryboardJobResponse> {
|
|
266
|
+
request.validate();
|
|
267
|
+
let query = { };
|
|
268
|
+
if (!$dara.isNull(request.aspectRatio)) {
|
|
269
|
+
query["AspectRatio"] = request.aspectRatio;
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
if (!$dara.isNull(request.execMode)) {
|
|
273
|
+
query["ExecMode"] = request.execMode;
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
if (!$dara.isNull(request.modelParams)) {
|
|
277
|
+
query["ModelParams"] = request.modelParams;
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
if (!$dara.isNull(request.narrationVoiceId)) {
|
|
281
|
+
query["NarrationVoiceId"] = request.narrationVoiceId;
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
if (!$dara.isNull(request.resolution)) {
|
|
285
|
+
query["Resolution"] = request.resolution;
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
if (!$dara.isNull(request.shotPromptMode)) {
|
|
289
|
+
query["ShotPromptMode"] = request.shotPromptMode;
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
if (!$dara.isNull(request.skipFailureShot)) {
|
|
293
|
+
query["SkipFailureShot"] = request.skipFailureShot;
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
if (!$dara.isNull(request.title)) {
|
|
297
|
+
query["Title"] = request.title;
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
if (!$dara.isNull(request.userData)) {
|
|
301
|
+
query["UserData"] = request.userData;
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
if (!$dara.isNull(request.videoModel)) {
|
|
305
|
+
query["VideoModel"] = request.videoModel;
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
let body : {[key: string ]: any} = { };
|
|
309
|
+
if (!$dara.isNull(request.fileURL)) {
|
|
310
|
+
body["FileURL"] = request.fileURL;
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
if (!$dara.isNull(request.shotSplitMode)) {
|
|
314
|
+
body["ShotSplitMode"] = request.shotSplitMode;
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
if (!$dara.isNull(request.sourceType)) {
|
|
318
|
+
body["SourceType"] = request.sourceType;
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
if (!$dara.isNull(request.styleId)) {
|
|
322
|
+
body["StyleId"] = request.styleId;
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
326
|
+
query: OpenApiUtil.query(query),
|
|
327
|
+
body: OpenApiUtil.parseToMap(body),
|
|
328
|
+
});
|
|
329
|
+
let params = new $OpenApiUtil.Params({
|
|
330
|
+
action: "SubmitYikeStoryboardJob",
|
|
331
|
+
version: "2026-03-19",
|
|
332
|
+
protocol: "HTTPS",
|
|
333
|
+
pathname: "/",
|
|
334
|
+
method: "POST",
|
|
335
|
+
authType: "AK",
|
|
336
|
+
style: "RPC",
|
|
337
|
+
reqBodyType: "formData",
|
|
338
|
+
bodyType: "json",
|
|
339
|
+
});
|
|
340
|
+
return $dara.cast<$_model.SubmitYikeStoryboardJobResponse>(await this.callApi(params, req, runtime), new $_model.SubmitYikeStoryboardJobResponse({}));
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
/**
|
|
344
|
+
* 提交一刻故事板任务
|
|
345
|
+
*
|
|
346
|
+
* @param request - SubmitYikeStoryboardJobRequest
|
|
347
|
+
* @returns SubmitYikeStoryboardJobResponse
|
|
348
|
+
*/
|
|
349
|
+
async submitYikeStoryboardJob(request: $_model.SubmitYikeStoryboardJobRequest): Promise<$_model.SubmitYikeStoryboardJobResponse> {
|
|
350
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
351
|
+
return await this.submitYikeStoryboardJobWithOptions(request, runtime);
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class BatchGetYikeAIAppJobRequest extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @example
|
|
8
|
+
* cec2c13da767c090,ca3d3c9737f04586
|
|
9
|
+
*/
|
|
10
|
+
jobIds?: string;
|
|
11
|
+
static names(): { [key: string]: string } {
|
|
12
|
+
return {
|
|
13
|
+
jobIds: 'JobIds',
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
static types(): { [key: string]: any } {
|
|
18
|
+
return {
|
|
19
|
+
jobIds: 'string',
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
validate() {
|
|
24
|
+
super.validate();
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
constructor(map?: { [key: string]: any }) {
|
|
28
|
+
super(map);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
import { BatchGetYikeAIAppJobResponseBody } from "./BatchGetYikeAiappJobResponseBody";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class BatchGetYikeAIAppJobResponse extends $dara.Model {
|
|
7
|
+
headers?: { [key: string]: string };
|
|
8
|
+
statusCode?: number;
|
|
9
|
+
body?: BatchGetYikeAIAppJobResponseBody;
|
|
10
|
+
static names(): { [key: string]: string } {
|
|
11
|
+
return {
|
|
12
|
+
headers: 'headers',
|
|
13
|
+
statusCode: 'statusCode',
|
|
14
|
+
body: 'body',
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
static types(): { [key: string]: any } {
|
|
19
|
+
return {
|
|
20
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
21
|
+
statusCode: 'number',
|
|
22
|
+
body: BatchGetYikeAIAppJobResponseBody,
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
validate() {
|
|
27
|
+
if(this.headers) {
|
|
28
|
+
$dara.Model.validateMap(this.headers);
|
|
29
|
+
}
|
|
30
|
+
if(this.body && typeof (this.body as any).validate === 'function') {
|
|
31
|
+
(this.body as any).validate();
|
|
32
|
+
}
|
|
33
|
+
super.validate();
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
constructor(map?: { [key: string]: any }) {
|
|
37
|
+
super(map);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
@@ -0,0 +1,261 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
*/
|
|
7
|
+
export class BatchGetYikeAIAppJobResponseBodyJobListResultAudioResult extends $dara.Model {
|
|
8
|
+
/**
|
|
9
|
+
* @example
|
|
10
|
+
* bb1dfa20a0c971f08c94e7f6d6496202
|
|
11
|
+
*/
|
|
12
|
+
mediaId?: string;
|
|
13
|
+
/**
|
|
14
|
+
* @example
|
|
15
|
+
* https://dtlive-bj.oss-cn-beijing.aliyuncs.com/cover/01e1271d-ff4f-4689-9c20-e1df81486859_open_live_cover.mp3
|
|
16
|
+
*/
|
|
17
|
+
outputUrl?: string;
|
|
18
|
+
static names(): { [key: string]: string } {
|
|
19
|
+
return {
|
|
20
|
+
mediaId: 'MediaId',
|
|
21
|
+
outputUrl: 'OutputUrl',
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
static types(): { [key: string]: any } {
|
|
26
|
+
return {
|
|
27
|
+
mediaId: 'string',
|
|
28
|
+
outputUrl: 'string',
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
validate() {
|
|
33
|
+
super.validate();
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
constructor(map?: { [key: string]: any }) {
|
|
37
|
+
super(map);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export class BatchGetYikeAIAppJobResponseBodyJobListResultImageResult extends $dara.Model {
|
|
42
|
+
/**
|
|
43
|
+
* @example
|
|
44
|
+
* 318d6350a57d71f08c9ae7f7d4496302
|
|
45
|
+
*/
|
|
46
|
+
mediaId?: string;
|
|
47
|
+
/**
|
|
48
|
+
* @example
|
|
49
|
+
* https://dtlive-bj.oss-cn-beijing.aliyuncs.com/cover/01e1271d-ff4f-4689-9c20-e1df81486859_open_live_cover.jpg
|
|
50
|
+
*/
|
|
51
|
+
outputUrl?: string;
|
|
52
|
+
static names(): { [key: string]: string } {
|
|
53
|
+
return {
|
|
54
|
+
mediaId: 'MediaId',
|
|
55
|
+
outputUrl: 'OutputUrl',
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
static types(): { [key: string]: any } {
|
|
60
|
+
return {
|
|
61
|
+
mediaId: 'string',
|
|
62
|
+
outputUrl: 'string',
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
validate() {
|
|
67
|
+
super.validate();
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
constructor(map?: { [key: string]: any }) {
|
|
71
|
+
super(map);
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export class BatchGetYikeAIAppJobResponseBodyJobListResultVideoResult extends $dara.Model {
|
|
76
|
+
/**
|
|
77
|
+
* @example
|
|
78
|
+
* ec2de25068fd71f0a48cf7e6c4596302
|
|
79
|
+
*/
|
|
80
|
+
mediaId?: string;
|
|
81
|
+
/**
|
|
82
|
+
* @example
|
|
83
|
+
* https://dtlive-bj.oss-cn-beijing.aliyuncs.com/cover/01e1271d-ff4f-4689-9c20-e1df81486859_open_live_cover.mp4
|
|
84
|
+
*/
|
|
85
|
+
outputUrl?: string;
|
|
86
|
+
static names(): { [key: string]: string } {
|
|
87
|
+
return {
|
|
88
|
+
mediaId: 'MediaId',
|
|
89
|
+
outputUrl: 'OutputUrl',
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
static types(): { [key: string]: any } {
|
|
94
|
+
return {
|
|
95
|
+
mediaId: 'string',
|
|
96
|
+
outputUrl: 'string',
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
validate() {
|
|
101
|
+
super.validate();
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
constructor(map?: { [key: string]: any }) {
|
|
105
|
+
super(map);
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
export class BatchGetYikeAIAppJobResponseBodyJobListResult extends $dara.Model {
|
|
110
|
+
audioResult?: BatchGetYikeAIAppJobResponseBodyJobListResultAudioResult[];
|
|
111
|
+
imageResult?: BatchGetYikeAIAppJobResponseBodyJobListResultImageResult[];
|
|
112
|
+
videoResult?: BatchGetYikeAIAppJobResponseBodyJobListResultVideoResult[];
|
|
113
|
+
static names(): { [key: string]: string } {
|
|
114
|
+
return {
|
|
115
|
+
audioResult: 'AudioResult',
|
|
116
|
+
imageResult: 'ImageResult',
|
|
117
|
+
videoResult: 'VideoResult',
|
|
118
|
+
};
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
static types(): { [key: string]: any } {
|
|
122
|
+
return {
|
|
123
|
+
audioResult: { 'type': 'array', 'itemType': BatchGetYikeAIAppJobResponseBodyJobListResultAudioResult },
|
|
124
|
+
imageResult: { 'type': 'array', 'itemType': BatchGetYikeAIAppJobResponseBodyJobListResultImageResult },
|
|
125
|
+
videoResult: { 'type': 'array', 'itemType': BatchGetYikeAIAppJobResponseBodyJobListResultVideoResult },
|
|
126
|
+
};
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
validate() {
|
|
130
|
+
if(Array.isArray(this.audioResult)) {
|
|
131
|
+
$dara.Model.validateArray(this.audioResult);
|
|
132
|
+
}
|
|
133
|
+
if(Array.isArray(this.imageResult)) {
|
|
134
|
+
$dara.Model.validateArray(this.imageResult);
|
|
135
|
+
}
|
|
136
|
+
if(Array.isArray(this.videoResult)) {
|
|
137
|
+
$dara.Model.validateArray(this.videoResult);
|
|
138
|
+
}
|
|
139
|
+
super.validate();
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
constructor(map?: { [key: string]: any }) {
|
|
143
|
+
super(map);
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
export class BatchGetYikeAIAppJobResponseBodyJobList extends $dara.Model {
|
|
148
|
+
/**
|
|
149
|
+
* @example
|
|
150
|
+
* 9e09955d662a
|
|
151
|
+
*/
|
|
152
|
+
appId?: string;
|
|
153
|
+
/**
|
|
154
|
+
* @example
|
|
155
|
+
* {\\"LoadImage.1.TargetImage\\":\\"MediaId1\\"}
|
|
156
|
+
*/
|
|
157
|
+
appInputConfig?: string;
|
|
158
|
+
/**
|
|
159
|
+
* @example
|
|
160
|
+
* 2026-02-06T18:53:34.001+08:00
|
|
161
|
+
*/
|
|
162
|
+
executionFinishTime?: string;
|
|
163
|
+
/**
|
|
164
|
+
* @example
|
|
165
|
+
* 2026-02-06T18:53:18.809+08:00
|
|
166
|
+
*/
|
|
167
|
+
executionStartTime?: string;
|
|
168
|
+
/**
|
|
169
|
+
* @example
|
|
170
|
+
* pd_0617169475
|
|
171
|
+
*/
|
|
172
|
+
folderId?: string;
|
|
173
|
+
/**
|
|
174
|
+
* @example
|
|
175
|
+
* ****a046-263c-3560-978a-fb287782****
|
|
176
|
+
*/
|
|
177
|
+
jobId?: string;
|
|
178
|
+
/**
|
|
179
|
+
* @example
|
|
180
|
+
* pd_0617169475
|
|
181
|
+
*/
|
|
182
|
+
productionId?: string;
|
|
183
|
+
result?: BatchGetYikeAIAppJobResponseBodyJobListResult;
|
|
184
|
+
/**
|
|
185
|
+
* @example
|
|
186
|
+
* Created
|
|
187
|
+
*/
|
|
188
|
+
status?: string;
|
|
189
|
+
static names(): { [key: string]: string } {
|
|
190
|
+
return {
|
|
191
|
+
appId: 'AppId',
|
|
192
|
+
appInputConfig: 'AppInputConfig',
|
|
193
|
+
executionFinishTime: 'ExecutionFinishTime',
|
|
194
|
+
executionStartTime: 'ExecutionStartTime',
|
|
195
|
+
folderId: 'FolderId',
|
|
196
|
+
jobId: 'JobId',
|
|
197
|
+
productionId: 'ProductionId',
|
|
198
|
+
result: 'Result',
|
|
199
|
+
status: 'Status',
|
|
200
|
+
};
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
static types(): { [key: string]: any } {
|
|
204
|
+
return {
|
|
205
|
+
appId: 'string',
|
|
206
|
+
appInputConfig: 'string',
|
|
207
|
+
executionFinishTime: 'string',
|
|
208
|
+
executionStartTime: 'string',
|
|
209
|
+
folderId: 'string',
|
|
210
|
+
jobId: 'string',
|
|
211
|
+
productionId: 'string',
|
|
212
|
+
result: BatchGetYikeAIAppJobResponseBodyJobListResult,
|
|
213
|
+
status: 'string',
|
|
214
|
+
};
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
validate() {
|
|
218
|
+
if(this.result && typeof (this.result as any).validate === 'function') {
|
|
219
|
+
(this.result as any).validate();
|
|
220
|
+
}
|
|
221
|
+
super.validate();
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
constructor(map?: { [key: string]: any }) {
|
|
225
|
+
super(map);
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
export class BatchGetYikeAIAppJobResponseBody extends $dara.Model {
|
|
230
|
+
jobList?: BatchGetYikeAIAppJobResponseBodyJobList[];
|
|
231
|
+
/**
|
|
232
|
+
* @example
|
|
233
|
+
* ******11-DB8D-4A9A-875B-275798******
|
|
234
|
+
*/
|
|
235
|
+
requestId?: string;
|
|
236
|
+
static names(): { [key: string]: string } {
|
|
237
|
+
return {
|
|
238
|
+
jobList: 'JobList',
|
|
239
|
+
requestId: 'RequestId',
|
|
240
|
+
};
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
static types(): { [key: string]: any } {
|
|
244
|
+
return {
|
|
245
|
+
jobList: { 'type': 'array', 'itemType': BatchGetYikeAIAppJobResponseBodyJobList },
|
|
246
|
+
requestId: 'string',
|
|
247
|
+
};
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
validate() {
|
|
251
|
+
if(Array.isArray(this.jobList)) {
|
|
252
|
+
$dara.Model.validateArray(this.jobList);
|
|
253
|
+
}
|
|
254
|
+
super.validate();
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
constructor(map?: { [key: string]: any }) {
|
|
258
|
+
super(map);
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
|