@antchain/antdigital-creative 1.0.3
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/dist/client.d.ts +380 -0
- package/dist/client.js +508 -0
- package/dist/client.js.map +1 -0
- package/package.json +32 -0
- package/src/client.ts +764 -0
package/dist/client.d.ts
ADDED
|
@@ -0,0 +1,380 @@
|
|
|
1
|
+
import * as $Util from '@alicloud/tea-util';
|
|
2
|
+
import * as $tea from '@alicloud/tea-typescript';
|
|
3
|
+
/**
|
|
4
|
+
* @remarks
|
|
5
|
+
* Model for initing client
|
|
6
|
+
*/
|
|
7
|
+
export declare class Config extends $tea.Model {
|
|
8
|
+
/**
|
|
9
|
+
* @remarks
|
|
10
|
+
* accesskey id
|
|
11
|
+
*/
|
|
12
|
+
accessKeyId?: string;
|
|
13
|
+
/**
|
|
14
|
+
* @remarks
|
|
15
|
+
* accesskey secret
|
|
16
|
+
*/
|
|
17
|
+
accessKeySecret?: string;
|
|
18
|
+
/**
|
|
19
|
+
* @remarks
|
|
20
|
+
* security token
|
|
21
|
+
*/
|
|
22
|
+
securityToken?: string;
|
|
23
|
+
/**
|
|
24
|
+
* @remarks
|
|
25
|
+
* http protocol
|
|
26
|
+
*
|
|
27
|
+
* @example
|
|
28
|
+
* http
|
|
29
|
+
*/
|
|
30
|
+
protocol?: string;
|
|
31
|
+
/**
|
|
32
|
+
* @remarks
|
|
33
|
+
* read timeout
|
|
34
|
+
*
|
|
35
|
+
* @example
|
|
36
|
+
* 10
|
|
37
|
+
*/
|
|
38
|
+
readTimeout?: number;
|
|
39
|
+
/**
|
|
40
|
+
* @remarks
|
|
41
|
+
* connect timeout
|
|
42
|
+
*
|
|
43
|
+
* @example
|
|
44
|
+
* 10
|
|
45
|
+
*/
|
|
46
|
+
connectTimeout?: number;
|
|
47
|
+
/**
|
|
48
|
+
* @remarks
|
|
49
|
+
* http proxy
|
|
50
|
+
*
|
|
51
|
+
* @example
|
|
52
|
+
* http://localhost
|
|
53
|
+
*/
|
|
54
|
+
httpProxy?: string;
|
|
55
|
+
/**
|
|
56
|
+
* @remarks
|
|
57
|
+
* https proxy
|
|
58
|
+
*
|
|
59
|
+
* @example
|
|
60
|
+
* https://localhost
|
|
61
|
+
*/
|
|
62
|
+
httpsProxy?: string;
|
|
63
|
+
/**
|
|
64
|
+
* @remarks
|
|
65
|
+
* endpoint
|
|
66
|
+
*
|
|
67
|
+
* @example
|
|
68
|
+
* cs.aliyuncs.com
|
|
69
|
+
*/
|
|
70
|
+
endpoint?: string;
|
|
71
|
+
/**
|
|
72
|
+
* @remarks
|
|
73
|
+
* proxy white list
|
|
74
|
+
*
|
|
75
|
+
* @example
|
|
76
|
+
* http://localhost
|
|
77
|
+
*/
|
|
78
|
+
noProxy?: string;
|
|
79
|
+
/**
|
|
80
|
+
* @remarks
|
|
81
|
+
* max idle conns
|
|
82
|
+
*
|
|
83
|
+
* @example
|
|
84
|
+
* 3
|
|
85
|
+
*/
|
|
86
|
+
maxIdleConns?: number;
|
|
87
|
+
/**
|
|
88
|
+
* @remarks
|
|
89
|
+
* user agent
|
|
90
|
+
*
|
|
91
|
+
* @example
|
|
92
|
+
* Alibabacloud/1
|
|
93
|
+
*/
|
|
94
|
+
userAgent?: string;
|
|
95
|
+
/**
|
|
96
|
+
* @remarks
|
|
97
|
+
* socks5 proxy
|
|
98
|
+
*/
|
|
99
|
+
socks5Proxy?: string;
|
|
100
|
+
/**
|
|
101
|
+
* @remarks
|
|
102
|
+
* socks5 network
|
|
103
|
+
*
|
|
104
|
+
* @example
|
|
105
|
+
* TCP
|
|
106
|
+
*/
|
|
107
|
+
socks5NetWork?: string;
|
|
108
|
+
/**
|
|
109
|
+
* @remarks
|
|
110
|
+
* 长链接最大空闲时长
|
|
111
|
+
*/
|
|
112
|
+
maxIdleTimeMillis?: number;
|
|
113
|
+
/**
|
|
114
|
+
* @remarks
|
|
115
|
+
* 长链接最大连接时长
|
|
116
|
+
*/
|
|
117
|
+
keepAliveDurationMillis?: number;
|
|
118
|
+
/**
|
|
119
|
+
* @remarks
|
|
120
|
+
* 最大连接数(长链接最大总数)
|
|
121
|
+
*/
|
|
122
|
+
maxRequests?: number;
|
|
123
|
+
/**
|
|
124
|
+
* @remarks
|
|
125
|
+
* 每个目标主机的最大连接数(分主机域名的长链接最大总数
|
|
126
|
+
*/
|
|
127
|
+
maxRequestsPerHost?: number;
|
|
128
|
+
static names(): {
|
|
129
|
+
[key: string]: string;
|
|
130
|
+
};
|
|
131
|
+
static types(): {
|
|
132
|
+
[key: string]: any;
|
|
133
|
+
};
|
|
134
|
+
constructor(map?: {
|
|
135
|
+
[key: string]: any;
|
|
136
|
+
});
|
|
137
|
+
}
|
|
138
|
+
export declare class PushVideogenerationRequest extends $tea.Model {
|
|
139
|
+
authToken?: string;
|
|
140
|
+
productInstanceId?: string;
|
|
141
|
+
model: string;
|
|
142
|
+
prompt: string;
|
|
143
|
+
imageUrl?: string[];
|
|
144
|
+
videoUrl?: string[];
|
|
145
|
+
audioUrl?: string[];
|
|
146
|
+
ratio?: string;
|
|
147
|
+
duration?: number;
|
|
148
|
+
requestId?: string;
|
|
149
|
+
ext?: string;
|
|
150
|
+
static names(): {
|
|
151
|
+
[key: string]: string;
|
|
152
|
+
};
|
|
153
|
+
static types(): {
|
|
154
|
+
[key: string]: any;
|
|
155
|
+
};
|
|
156
|
+
constructor(map?: {
|
|
157
|
+
[key: string]: any;
|
|
158
|
+
});
|
|
159
|
+
}
|
|
160
|
+
export declare class PushVideogenerationResponse extends $tea.Model {
|
|
161
|
+
reqMsgId?: string;
|
|
162
|
+
resultCode?: string;
|
|
163
|
+
resultMsg?: string;
|
|
164
|
+
taskId?: string;
|
|
165
|
+
status?: string;
|
|
166
|
+
model?: string;
|
|
167
|
+
ext?: string;
|
|
168
|
+
static names(): {
|
|
169
|
+
[key: string]: string;
|
|
170
|
+
};
|
|
171
|
+
static types(): {
|
|
172
|
+
[key: string]: any;
|
|
173
|
+
};
|
|
174
|
+
constructor(map?: {
|
|
175
|
+
[key: string]: any;
|
|
176
|
+
});
|
|
177
|
+
}
|
|
178
|
+
export declare class QueryVideogenerationRequest extends $tea.Model {
|
|
179
|
+
authToken?: string;
|
|
180
|
+
productInstanceId?: string;
|
|
181
|
+
taskId: string;
|
|
182
|
+
static names(): {
|
|
183
|
+
[key: string]: string;
|
|
184
|
+
};
|
|
185
|
+
static types(): {
|
|
186
|
+
[key: string]: any;
|
|
187
|
+
};
|
|
188
|
+
constructor(map?: {
|
|
189
|
+
[key: string]: any;
|
|
190
|
+
});
|
|
191
|
+
}
|
|
192
|
+
export declare class QueryVideogenerationResponse extends $tea.Model {
|
|
193
|
+
reqMsgId?: string;
|
|
194
|
+
resultCode?: string;
|
|
195
|
+
resultMsg?: string;
|
|
196
|
+
taskId?: string;
|
|
197
|
+
status?: string;
|
|
198
|
+
videoUrl?: string;
|
|
199
|
+
errorCode?: string;
|
|
200
|
+
errorMessage?: string;
|
|
201
|
+
static names(): {
|
|
202
|
+
[key: string]: string;
|
|
203
|
+
};
|
|
204
|
+
static types(): {
|
|
205
|
+
[key: string]: any;
|
|
206
|
+
};
|
|
207
|
+
constructor(map?: {
|
|
208
|
+
[key: string]: any;
|
|
209
|
+
});
|
|
210
|
+
}
|
|
211
|
+
export declare class UploadAssetRequest extends $tea.Model {
|
|
212
|
+
authToken?: string;
|
|
213
|
+
productInstanceId?: string;
|
|
214
|
+
assetType: string;
|
|
215
|
+
fileUrl: string;
|
|
216
|
+
assetName: string;
|
|
217
|
+
static names(): {
|
|
218
|
+
[key: string]: string;
|
|
219
|
+
};
|
|
220
|
+
static types(): {
|
|
221
|
+
[key: string]: any;
|
|
222
|
+
};
|
|
223
|
+
constructor(map?: {
|
|
224
|
+
[key: string]: any;
|
|
225
|
+
});
|
|
226
|
+
}
|
|
227
|
+
export declare class UploadAssetResponse extends $tea.Model {
|
|
228
|
+
reqMsgId?: string;
|
|
229
|
+
resultCode?: string;
|
|
230
|
+
resultMsg?: string;
|
|
231
|
+
assetId?: string;
|
|
232
|
+
status?: string;
|
|
233
|
+
assetType?: string;
|
|
234
|
+
static names(): {
|
|
235
|
+
[key: string]: string;
|
|
236
|
+
};
|
|
237
|
+
static types(): {
|
|
238
|
+
[key: string]: any;
|
|
239
|
+
};
|
|
240
|
+
constructor(map?: {
|
|
241
|
+
[key: string]: any;
|
|
242
|
+
});
|
|
243
|
+
}
|
|
244
|
+
export declare class QueryAssetRequest extends $tea.Model {
|
|
245
|
+
authToken?: string;
|
|
246
|
+
productInstanceId?: string;
|
|
247
|
+
assetId: string;
|
|
248
|
+
static names(): {
|
|
249
|
+
[key: string]: string;
|
|
250
|
+
};
|
|
251
|
+
static types(): {
|
|
252
|
+
[key: string]: any;
|
|
253
|
+
};
|
|
254
|
+
constructor(map?: {
|
|
255
|
+
[key: string]: any;
|
|
256
|
+
});
|
|
257
|
+
}
|
|
258
|
+
export declare class QueryAssetResponse extends $tea.Model {
|
|
259
|
+
reqMsgId?: string;
|
|
260
|
+
resultCode?: string;
|
|
261
|
+
resultMsg?: string;
|
|
262
|
+
assetId?: string;
|
|
263
|
+
status?: string;
|
|
264
|
+
assetType?: string;
|
|
265
|
+
assetUrl?: string;
|
|
266
|
+
errorMessage?: string;
|
|
267
|
+
errorCode?: string;
|
|
268
|
+
static names(): {
|
|
269
|
+
[key: string]: string;
|
|
270
|
+
};
|
|
271
|
+
static types(): {
|
|
272
|
+
[key: string]: any;
|
|
273
|
+
};
|
|
274
|
+
constructor(map?: {
|
|
275
|
+
[key: string]: any;
|
|
276
|
+
});
|
|
277
|
+
}
|
|
278
|
+
export default class Client {
|
|
279
|
+
_endpoint: string;
|
|
280
|
+
_regionId: string;
|
|
281
|
+
_accessKeyId: string;
|
|
282
|
+
_accessKeySecret: string;
|
|
283
|
+
_protocol: string;
|
|
284
|
+
_userAgent: string;
|
|
285
|
+
_readTimeout: number;
|
|
286
|
+
_connectTimeout: number;
|
|
287
|
+
_httpProxy: string;
|
|
288
|
+
_httpsProxy: string;
|
|
289
|
+
_socks5Proxy: string;
|
|
290
|
+
_socks5NetWork: string;
|
|
291
|
+
_noProxy: string;
|
|
292
|
+
_maxIdleConns: number;
|
|
293
|
+
_securityToken: string;
|
|
294
|
+
_maxIdleTimeMillis: number;
|
|
295
|
+
_keepAliveDurationMillis: number;
|
|
296
|
+
_maxRequests: number;
|
|
297
|
+
_maxRequestsPerHost: number;
|
|
298
|
+
/**
|
|
299
|
+
* @remarks
|
|
300
|
+
* Init client with Config
|
|
301
|
+
*
|
|
302
|
+
* @param config - config contains the necessary information to create a client
|
|
303
|
+
*/
|
|
304
|
+
constructor(config: Config);
|
|
305
|
+
/**
|
|
306
|
+
* @remarks
|
|
307
|
+
* Encapsulate the request and invoke the network
|
|
308
|
+
*
|
|
309
|
+
* @param action - api name
|
|
310
|
+
* @param protocol - http or https
|
|
311
|
+
* @param method - e.g. GET
|
|
312
|
+
* @param pathname - pathname of every api
|
|
313
|
+
* @param request - which contains request params
|
|
314
|
+
* @param runtime - which controls some details of call api, such as retry times
|
|
315
|
+
* @returns the response
|
|
316
|
+
*/
|
|
317
|
+
doRequest(version: string, action: string, protocol: string, method: string, pathname: string, request: {
|
|
318
|
+
[key: string]: any;
|
|
319
|
+
}, headers: {
|
|
320
|
+
[key: string]: string;
|
|
321
|
+
}, runtime: $Util.RuntimeOptions): Promise<{
|
|
322
|
+
[key: string]: any;
|
|
323
|
+
}>;
|
|
324
|
+
/**
|
|
325
|
+
* @remarks
|
|
326
|
+
* Description: 内容创作平台-视频生成-推送
|
|
327
|
+
* Summary: 内容创作平台-视频生成-推送
|
|
328
|
+
*/
|
|
329
|
+
pushVideogeneration(request: PushVideogenerationRequest): Promise<PushVideogenerationResponse>;
|
|
330
|
+
/**
|
|
331
|
+
* @remarks
|
|
332
|
+
* Description: 内容创作平台-视频生成-推送
|
|
333
|
+
* Summary: 内容创作平台-视频生成-推送
|
|
334
|
+
*/
|
|
335
|
+
pushVideogenerationEx(request: PushVideogenerationRequest, headers: {
|
|
336
|
+
[key: string]: string;
|
|
337
|
+
}, runtime: $Util.RuntimeOptions): Promise<PushVideogenerationResponse>;
|
|
338
|
+
/**
|
|
339
|
+
* @remarks
|
|
340
|
+
* Description: 视频创作接口查询
|
|
341
|
+
* Summary: 视频创作接口查询
|
|
342
|
+
*/
|
|
343
|
+
queryVideogeneration(request: QueryVideogenerationRequest): Promise<QueryVideogenerationResponse>;
|
|
344
|
+
/**
|
|
345
|
+
* @remarks
|
|
346
|
+
* Description: 视频创作接口查询
|
|
347
|
+
* Summary: 视频创作接口查询
|
|
348
|
+
*/
|
|
349
|
+
queryVideogenerationEx(request: QueryVideogenerationRequest, headers: {
|
|
350
|
+
[key: string]: string;
|
|
351
|
+
}, runtime: $Util.RuntimeOptions): Promise<QueryVideogenerationResponse>;
|
|
352
|
+
/**
|
|
353
|
+
* @remarks
|
|
354
|
+
* Description: 资产上传接口
|
|
355
|
+
* Summary: 资产上传接口
|
|
356
|
+
*/
|
|
357
|
+
uploadAsset(request: UploadAssetRequest): Promise<UploadAssetResponse>;
|
|
358
|
+
/**
|
|
359
|
+
* @remarks
|
|
360
|
+
* Description: 资产上传接口
|
|
361
|
+
* Summary: 资产上传接口
|
|
362
|
+
*/
|
|
363
|
+
uploadAssetEx(request: UploadAssetRequest, headers: {
|
|
364
|
+
[key: string]: string;
|
|
365
|
+
}, runtime: $Util.RuntimeOptions): Promise<UploadAssetResponse>;
|
|
366
|
+
/**
|
|
367
|
+
* @remarks
|
|
368
|
+
* Description: 资产查询接口
|
|
369
|
+
* Summary: 资产查询接口
|
|
370
|
+
*/
|
|
371
|
+
queryAsset(request: QueryAssetRequest): Promise<QueryAssetResponse>;
|
|
372
|
+
/**
|
|
373
|
+
* @remarks
|
|
374
|
+
* Description: 资产查询接口
|
|
375
|
+
* Summary: 资产查询接口
|
|
376
|
+
*/
|
|
377
|
+
queryAssetEx(request: QueryAssetRequest, headers: {
|
|
378
|
+
[key: string]: string;
|
|
379
|
+
}, runtime: $Util.RuntimeOptions): Promise<QueryAssetResponse>;
|
|
380
|
+
}
|