@huaweicloud/huaweicloud-sdk-image 3.1.36 → 3.1.37

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@huaweicloud/huaweicloud-sdk-image",
3
- "version": "3.1.36",
3
+ "version": "3.1.37",
4
4
  "description": "Huaweicloud SDK for image",
5
5
  "main": "huaweicloud-sdk-image.js",
6
6
  "typings": "huaweicloud-sdk-image.d.ts",
@@ -14,6 +14,6 @@
14
14
  "author": "HuaweiCloud_SDK",
15
15
  "license": "Apache-2.0",
16
16
  "dependencies": {
17
- "@huaweicloud/huaweicloud-sdk-core": "^3.1.36"
17
+ "@huaweicloud/huaweicloud-sdk-core": "^3.1.37"
18
18
  }
19
19
  }
@@ -4,6 +4,8 @@ import { CreateImageHighresolutionMattingTaskRequest } from './model/CreateImage
4
4
  import { CreateImageHighresolutionMattingTaskResponse } from './model/CreateImageHighresolutionMattingTaskResponse';
5
5
  import { CreateVideoObjectMaskingTaskRequest } from './model/CreateVideoObjectMaskingTaskRequest';
6
6
  import { CreateVideoObjectMaskingTaskResponse } from './model/CreateVideoObjectMaskingTaskResponse';
7
+ import { CreateVideoTaggingMediaTaskRequest } from './model/CreateVideoTaggingMediaTaskRequest';
8
+ import { CreateVideoTaggingMediaTaskResponse } from './model/CreateVideoTaggingMediaTaskResponse';
7
9
  import { RunCelebrityRecognitionRequest } from './model/RunCelebrityRecognitionRequest';
8
10
  import { RunCelebrityRecognitionResponse } from './model/RunCelebrityRecognitionResponse';
9
11
  import { RunImageDescriptionRequest } from './model/RunImageDescriptionRequest';
@@ -24,6 +26,8 @@ import { ShowImageHighresolutionMattingTaskRequest } from './model/ShowImageHigh
24
26
  import { ShowImageHighresolutionMattingTaskResponse } from './model/ShowImageHighresolutionMattingTaskResponse';
25
27
  import { ShowVideoObjectMaskingTaskRequest } from './model/ShowVideoObjectMaskingTaskRequest';
26
28
  import { ShowVideoObjectMaskingTaskResponse } from './model/ShowVideoObjectMaskingTaskResponse';
29
+ import { ShowVideoTaggingMediaTaskRequest } from './model/ShowVideoTaggingMediaTaskRequest';
30
+ import { ShowVideoTaggingMediaTaskResponse } from './model/ShowVideoTaggingMediaTaskResponse';
27
31
  export declare class ImageClient {
28
32
  static newBuilder(): ClientBuilder<ImageClient>;
29
33
  private hcClient;
@@ -51,6 +55,17 @@ export declare class ImageClient {
51
55
  * @throws {RequiredError}
52
56
  */
53
57
  createVideoObjectMaskingTask(createVideoObjectMaskingTaskRequest?: CreateVideoObjectMaskingTaskRequest): Promise<CreateVideoObjectMaskingTaskResponse>;
58
+ /**
59
+ * 创建视频标签任务,输入一段视频,通过AI模型分析视频中的信息,输出视频所包含的媒资标签、名人标签、logo标签、语音标签、OCR标签等信息。
60
+ *
61
+ * Please refer to HUAWEI cloud API Explorer for details.
62
+ *
63
+ * @summary 创建视频标签任务
64
+ * @param {CreateVideoTaggingMediaTaskRequestBody} createVideoTaggingMediaTaskRequestBody 创建任务请求体
65
+ * @param {*} [options] Override http request option.
66
+ * @throws {RequiredError}
67
+ */
68
+ createVideoTaggingMediaTask(createVideoTaggingMediaTaskRequest?: CreateVideoTaggingMediaTaskRequest): Promise<CreateVideoTaggingMediaTaskResponse>;
54
69
  /**
55
70
  * 分析并识别图片中包含的政治人物、明星及网红人物,返回人物信息及人脸坐标。
56
71
  *
@@ -161,6 +176,17 @@ export declare class ImageClient {
161
176
  * @throws {RequiredError}
162
177
  */
163
178
  showVideoObjectMaskingTask(showVideoObjectMaskingTaskRequest?: ShowVideoObjectMaskingTaskRequest): Promise<ShowVideoObjectMaskingTaskResponse>;
179
+ /**
180
+ * 查询视频标签任务详情,返回参数配置以及任务状态信息。
181
+ *
182
+ * Please refer to HUAWEI cloud API Explorer for details.
183
+ *
184
+ * @summary 查询视频标签任务
185
+ * @param {string} taskId 任务id
186
+ * @param {*} [options] Override http request option.
187
+ * @throws {RequiredError}
188
+ */
189
+ showVideoTaggingMediaTask(showVideoTaggingMediaTaskRequest?: ShowVideoTaggingMediaTaskRequest): Promise<ShowVideoTaggingMediaTaskResponse>;
164
190
  }
165
191
  export declare const ParamCreater: () => {
166
192
  /**
@@ -191,6 +217,20 @@ export declare const ParamCreater: () => {
191
217
  headers: {};
192
218
  data: {};
193
219
  };
220
+ /**
221
+ * 创建视频标签任务,输入一段视频,通过AI模型分析视频中的信息,输出视频所包含的媒资标签、名人标签、logo标签、语音标签、OCR标签等信息。
222
+ *
223
+ * Please refer to HUAWEI cloud API Explorer for details.
224
+ */
225
+ createVideoTaggingMediaTask(createVideoTaggingMediaTaskRequest?: CreateVideoTaggingMediaTaskRequest): {
226
+ method: string;
227
+ url: string;
228
+ contentType: string;
229
+ queryParams: {};
230
+ pathParams: {};
231
+ headers: {};
232
+ data: {};
233
+ };
194
234
  /**
195
235
  * 分析并识别图片中包含的政治人物、明星及网红人物,返回人物信息及人脸坐标。
196
236
  *
@@ -329,6 +369,19 @@ export declare const ParamCreater: () => {
329
369
  pathParams: {};
330
370
  headers: {};
331
371
  };
372
+ /**
373
+ * 查询视频标签任务详情,返回参数配置以及任务状态信息。
374
+ *
375
+ * Please refer to HUAWEI cloud API Explorer for details.
376
+ */
377
+ showVideoTaggingMediaTask(showVideoTaggingMediaTaskRequest?: ShowVideoTaggingMediaTaskRequest): {
378
+ method: string;
379
+ url: string;
380
+ contentType: string;
381
+ queryParams: {};
382
+ pathParams: {};
383
+ headers: {};
384
+ };
332
385
  };
333
386
  /**
334
387
  *
package/v2/ImageClient.js CHANGED
@@ -19,6 +19,7 @@ exports.RequiredError = exports.ParamCreater = exports.ImageClient = void 0;
19
19
  var ClientBuilder_1 = require("@huaweicloud/huaweicloud-sdk-core/ClientBuilder");
20
20
  var CreateImageHighresolutionMattingTaskRequest_1 = require("./model/CreateImageHighresolutionMattingTaskRequest");
21
21
  var CreateVideoObjectMaskingTaskRequest_1 = require("./model/CreateVideoObjectMaskingTaskRequest");
22
+ var CreateVideoTaggingMediaTaskRequest_1 = require("./model/CreateVideoTaggingMediaTaskRequest");
22
23
  var RunCelebrityRecognitionRequest_1 = require("./model/RunCelebrityRecognitionRequest");
23
24
  var RunImageDescriptionRequest_1 = require("./model/RunImageDescriptionRequest");
24
25
  var RunImageMainObjectDetectionRequest_1 = require("./model/RunImageMainObjectDetectionRequest");
@@ -29,6 +30,7 @@ var RunImageTaggingRequest_1 = require("./model/RunImageTaggingRequest");
29
30
  var RunRecaptureDetectRequest_1 = require("./model/RunRecaptureDetectRequest");
30
31
  var ShowImageHighresolutionMattingTaskRequest_1 = require("./model/ShowImageHighresolutionMattingTaskRequest");
31
32
  var ShowVideoObjectMaskingTaskRequest_1 = require("./model/ShowVideoObjectMaskingTaskRequest");
33
+ var ShowVideoTaggingMediaTaskRequest_1 = require("./model/ShowVideoTaggingMediaTaskRequest");
32
34
  var ImageClient = /** @class */ (function () {
33
35
  function ImageClient(client) {
34
36
  this.hcClient = client;
@@ -71,6 +73,22 @@ var ImageClient = /** @class */ (function () {
71
73
  options['responseHeaders'] = [''];
72
74
  return this.hcClient.sendRequest(options);
73
75
  };
76
+ /**
77
+ * 创建视频标签任务,输入一段视频,通过AI模型分析视频中的信息,输出视频所包含的媒资标签、名人标签、logo标签、语音标签、OCR标签等信息。
78
+ *
79
+ * Please refer to HUAWEI cloud API Explorer for details.
80
+ *
81
+ * @summary 创建视频标签任务
82
+ * @param {CreateVideoTaggingMediaTaskRequestBody} createVideoTaggingMediaTaskRequestBody 创建任务请求体
83
+ * @param {*} [options] Override http request option.
84
+ * @throws {RequiredError}
85
+ */
86
+ ImageClient.prototype.createVideoTaggingMediaTask = function (createVideoTaggingMediaTaskRequest) {
87
+ var options = (0, exports.ParamCreater)().createVideoTaggingMediaTask(createVideoTaggingMediaTaskRequest);
88
+ // @ts-ignore
89
+ options['responseHeaders'] = ['X-request-id'];
90
+ return this.hcClient.sendRequest(options);
91
+ };
74
92
  /**
75
93
  * 分析并识别图片中包含的政治人物、明星及网红人物,返回人物信息及人脸坐标。
76
94
  *
@@ -231,6 +249,22 @@ var ImageClient = /** @class */ (function () {
231
249
  options['responseHeaders'] = ['X-request-id'];
232
250
  return this.hcClient.sendRequest(options);
233
251
  };
252
+ /**
253
+ * 查询视频标签任务详情,返回参数配置以及任务状态信息。
254
+ *
255
+ * Please refer to HUAWEI cloud API Explorer for details.
256
+ *
257
+ * @summary 查询视频标签任务
258
+ * @param {string} taskId 任务id
259
+ * @param {*} [options] Override http request option.
260
+ * @throws {RequiredError}
261
+ */
262
+ ImageClient.prototype.showVideoTaggingMediaTask = function (showVideoTaggingMediaTaskRequest) {
263
+ var options = (0, exports.ParamCreater)().showVideoTaggingMediaTask(showVideoTaggingMediaTaskRequest);
264
+ // @ts-ignore
265
+ options['responseHeaders'] = ['X-request-id'];
266
+ return this.hcClient.sendRequest(options);
267
+ };
234
268
  return ImageClient;
235
269
  }());
236
270
  exports.ImageClient = ImageClient;
@@ -302,6 +336,39 @@ var ParamCreater = function () {
302
336
  options.headers = localVarHeaderParameter;
303
337
  return options;
304
338
  },
339
+ /**
340
+ * 创建视频标签任务,输入一段视频,通过AI模型分析视频中的信息,输出视频所包含的媒资标签、名人标签、logo标签、语音标签、OCR标签等信息。
341
+ *
342
+ * Please refer to HUAWEI cloud API Explorer for details.
343
+ */
344
+ createVideoTaggingMediaTask: function (createVideoTaggingMediaTaskRequest) {
345
+ var options = {
346
+ method: "POST",
347
+ url: "/v2/{project_id}/image/video-tagging-media/tasks",
348
+ contentType: "application/json;charset=UTF-8",
349
+ queryParams: {},
350
+ pathParams: {},
351
+ headers: {},
352
+ data: {}
353
+ };
354
+ var localVarHeaderParameter = {};
355
+ var body;
356
+ if (createVideoTaggingMediaTaskRequest !== null && createVideoTaggingMediaTaskRequest !== undefined) {
357
+ if (createVideoTaggingMediaTaskRequest instanceof CreateVideoTaggingMediaTaskRequest_1.CreateVideoTaggingMediaTaskRequest) {
358
+ body = createVideoTaggingMediaTaskRequest.body;
359
+ }
360
+ else {
361
+ body = createVideoTaggingMediaTaskRequest['body'];
362
+ }
363
+ }
364
+ if (body === null || body === undefined) {
365
+ throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
366
+ }
367
+ localVarHeaderParameter['Content-Type'] = 'application/json;charset=UTF-8';
368
+ options.data = body !== undefined ? body : {};
369
+ options.headers = localVarHeaderParameter;
370
+ return options;
371
+ },
305
372
  /**
306
373
  * 分析并识别图片中包含的政治人物、明星及网红人物,返回人物信息及人脸坐标。
307
374
  *
@@ -628,6 +695,37 @@ var ParamCreater = function () {
628
695
  options.headers = localVarHeaderParameter;
629
696
  return options;
630
697
  },
698
+ /**
699
+ * 查询视频标签任务详情,返回参数配置以及任务状态信息。
700
+ *
701
+ * Please refer to HUAWEI cloud API Explorer for details.
702
+ */
703
+ showVideoTaggingMediaTask: function (showVideoTaggingMediaTaskRequest) {
704
+ var options = {
705
+ method: "GET",
706
+ url: "/v2/{project_id}/image/video-tagging-media/tasks/{task_id}",
707
+ contentType: "application/json",
708
+ queryParams: {},
709
+ pathParams: {},
710
+ headers: {}
711
+ };
712
+ var localVarHeaderParameter = {};
713
+ var taskId;
714
+ if (showVideoTaggingMediaTaskRequest !== null && showVideoTaggingMediaTaskRequest !== undefined) {
715
+ if (showVideoTaggingMediaTaskRequest instanceof ShowVideoTaggingMediaTaskRequest_1.ShowVideoTaggingMediaTaskRequest) {
716
+ taskId = showVideoTaggingMediaTaskRequest.taskId;
717
+ }
718
+ else {
719
+ taskId = showVideoTaggingMediaTaskRequest['task_id'];
720
+ }
721
+ }
722
+ if (taskId === null || taskId === undefined) {
723
+ throw new RequiredError('taskId', 'Required parameter taskId was null or undefined when calling showVideoTaggingMediaTask.');
724
+ }
725
+ options.pathParams = { 'task_id': taskId, };
726
+ options.headers = localVarHeaderParameter;
727
+ return options;
728
+ },
631
729
  };
632
730
  };
633
731
  exports.ParamCreater = ParamCreater;
@@ -0,0 +1,6 @@
1
+ import { CreateVideoTaggingMediaTaskRequestBody } from './CreateVideoTaggingMediaTaskRequestBody';
2
+ export declare class CreateVideoTaggingMediaTaskRequest {
3
+ body?: CreateVideoTaggingMediaTaskRequestBody;
4
+ constructor();
5
+ withBody(body: CreateVideoTaggingMediaTaskRequestBody): CreateVideoTaggingMediaTaskRequest;
6
+ }
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CreateVideoTaggingMediaTaskRequest = void 0;
4
+ var CreateVideoTaggingMediaTaskRequest = /** @class */ (function () {
5
+ function CreateVideoTaggingMediaTaskRequest() {
6
+ }
7
+ CreateVideoTaggingMediaTaskRequest.prototype.withBody = function (body) {
8
+ this['body'] = body;
9
+ return this;
10
+ };
11
+ return CreateVideoTaggingMediaTaskRequest;
12
+ }());
13
+ exports.CreateVideoTaggingMediaTaskRequest = CreateVideoTaggingMediaTaskRequest;
@@ -0,0 +1,15 @@
1
+ import { TaskCallback } from './TaskCallback';
2
+ import { TaskOutput } from './TaskOutput';
3
+ import { VideoTaggingMediaTaskInput } from './VideoTaggingMediaTaskInput';
4
+ import { VideoTaggingTaskConfig } from './VideoTaggingTaskConfig';
5
+ export declare class CreateVideoTaggingMediaTaskRequestBody {
6
+ input: VideoTaggingMediaTaskInput;
7
+ output: TaskOutput;
8
+ callback?: TaskCallback;
9
+ config?: VideoTaggingTaskConfig;
10
+ constructor(input?: any, output?: any);
11
+ withInput(input: VideoTaggingMediaTaskInput): CreateVideoTaggingMediaTaskRequestBody;
12
+ withOutput(output: TaskOutput): CreateVideoTaggingMediaTaskRequestBody;
13
+ withCallback(callback: TaskCallback): CreateVideoTaggingMediaTaskRequestBody;
14
+ withConfig(config: VideoTaggingTaskConfig): CreateVideoTaggingMediaTaskRequestBody;
15
+ }
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CreateVideoTaggingMediaTaskRequestBody = void 0;
4
+ var CreateVideoTaggingMediaTaskRequestBody = /** @class */ (function () {
5
+ function CreateVideoTaggingMediaTaskRequestBody(input, output) {
6
+ this['input'] = input;
7
+ this['output'] = output;
8
+ }
9
+ CreateVideoTaggingMediaTaskRequestBody.prototype.withInput = function (input) {
10
+ this['input'] = input;
11
+ return this;
12
+ };
13
+ CreateVideoTaggingMediaTaskRequestBody.prototype.withOutput = function (output) {
14
+ this['output'] = output;
15
+ return this;
16
+ };
17
+ CreateVideoTaggingMediaTaskRequestBody.prototype.withCallback = function (callback) {
18
+ this['callback'] = callback;
19
+ return this;
20
+ };
21
+ CreateVideoTaggingMediaTaskRequestBody.prototype.withConfig = function (config) {
22
+ this['config'] = config;
23
+ return this;
24
+ };
25
+ return CreateVideoTaggingMediaTaskRequestBody;
26
+ }());
27
+ exports.CreateVideoTaggingMediaTaskRequestBody = CreateVideoTaggingMediaTaskRequestBody;
@@ -0,0 +1,12 @@
1
+ import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse";
2
+ export declare class CreateVideoTaggingMediaTaskResponse extends SdkResponse {
3
+ private 'task_id'?;
4
+ private 'X-request-id'?;
5
+ constructor();
6
+ withTaskId(taskId: string): CreateVideoTaggingMediaTaskResponse;
7
+ set taskId(taskId: string | undefined);
8
+ get taskId(): string | undefined;
9
+ withXRequestId(xRequestId: string): CreateVideoTaggingMediaTaskResponse;
10
+ set xRequestId(xRequestId: string | undefined);
11
+ get xRequestId(): string | undefined;
12
+ }
@@ -0,0 +1,55 @@
1
+ "use strict";
2
+ var __extends = (this && this.__extends) || (function () {
3
+ var extendStatics = function (d, b) {
4
+ extendStatics = Object.setPrototypeOf ||
5
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
+ return extendStatics(d, b);
8
+ };
9
+ return function (d, b) {
10
+ if (typeof b !== "function" && b !== null)
11
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
+ extendStatics(d, b);
13
+ function __() { this.constructor = d; }
14
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
+ };
16
+ })();
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ exports.CreateVideoTaggingMediaTaskResponse = void 0;
19
+ var SdkResponse_1 = require("@huaweicloud/huaweicloud-sdk-core/SdkResponse");
20
+ var CreateVideoTaggingMediaTaskResponse = /** @class */ (function (_super) {
21
+ __extends(CreateVideoTaggingMediaTaskResponse, _super);
22
+ function CreateVideoTaggingMediaTaskResponse() {
23
+ return _super.call(this) || this;
24
+ }
25
+ CreateVideoTaggingMediaTaskResponse.prototype.withTaskId = function (taskId) {
26
+ this['task_id'] = taskId;
27
+ return this;
28
+ };
29
+ Object.defineProperty(CreateVideoTaggingMediaTaskResponse.prototype, "taskId", {
30
+ get: function () {
31
+ return this['task_id'];
32
+ },
33
+ set: function (taskId) {
34
+ this['task_id'] = taskId;
35
+ },
36
+ enumerable: false,
37
+ configurable: true
38
+ });
39
+ CreateVideoTaggingMediaTaskResponse.prototype.withXRequestId = function (xRequestId) {
40
+ this['X-request-id'] = xRequestId;
41
+ return this;
42
+ };
43
+ Object.defineProperty(CreateVideoTaggingMediaTaskResponse.prototype, "xRequestId", {
44
+ get: function () {
45
+ return this['X-request-id'];
46
+ },
47
+ set: function (xRequestId) {
48
+ this['X-request-id'] = xRequestId;
49
+ },
50
+ enumerable: false,
51
+ configurable: true
52
+ });
53
+ return CreateVideoTaggingMediaTaskResponse;
54
+ }(SdkResponse_1.SdkResponse));
55
+ exports.CreateVideoTaggingMediaTaskResponse = CreateVideoTaggingMediaTaskResponse;
@@ -0,0 +1,7 @@
1
+ export declare class ShowVideoTaggingMediaTaskRequest {
2
+ private 'task_id';
3
+ constructor(taskId?: any);
4
+ withTaskId(taskId: string): ShowVideoTaggingMediaTaskRequest;
5
+ set taskId(taskId: string | undefined);
6
+ get taskId(): string | undefined;
7
+ }
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ShowVideoTaggingMediaTaskRequest = void 0;
4
+ var ShowVideoTaggingMediaTaskRequest = /** @class */ (function () {
5
+ function ShowVideoTaggingMediaTaskRequest(taskId) {
6
+ this['task_id'] = taskId;
7
+ }
8
+ ShowVideoTaggingMediaTaskRequest.prototype.withTaskId = function (taskId) {
9
+ this['task_id'] = taskId;
10
+ return this;
11
+ };
12
+ Object.defineProperty(ShowVideoTaggingMediaTaskRequest.prototype, "taskId", {
13
+ get: function () {
14
+ return this['task_id'];
15
+ },
16
+ set: function (taskId) {
17
+ this['task_id'] = taskId;
18
+ },
19
+ enumerable: false,
20
+ configurable: true
21
+ });
22
+ return ShowVideoTaggingMediaTaskRequest;
23
+ }());
24
+ exports.ShowVideoTaggingMediaTaskRequest = ShowVideoTaggingMediaTaskRequest;
@@ -0,0 +1,34 @@
1
+ import { TaskCallback } from './TaskCallback';
2
+ import { TaskOutput } from './TaskOutput';
3
+ import { VideoTaggingMediaTaskInput } from './VideoTaggingMediaTaskInput';
4
+ import { VideoTaggingTaskConfig } from './VideoTaggingTaskConfig';
5
+ import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse";
6
+ export declare class ShowVideoTaggingMediaTaskResponse extends SdkResponse {
7
+ private 'task_id'?;
8
+ private 'create_time'?;
9
+ private 'update_time'?;
10
+ state?: string;
11
+ input?: VideoTaggingMediaTaskInput;
12
+ output?: TaskOutput;
13
+ config?: VideoTaggingTaskConfig;
14
+ callback?: TaskCallback;
15
+ private 'X-request-id'?;
16
+ constructor();
17
+ withTaskId(taskId: string): ShowVideoTaggingMediaTaskResponse;
18
+ set taskId(taskId: string | undefined);
19
+ get taskId(): string | undefined;
20
+ withCreateTime(createTime: string): ShowVideoTaggingMediaTaskResponse;
21
+ set createTime(createTime: string | undefined);
22
+ get createTime(): string | undefined;
23
+ withUpdateTime(updateTime: string): ShowVideoTaggingMediaTaskResponse;
24
+ set updateTime(updateTime: string | undefined);
25
+ get updateTime(): string | undefined;
26
+ withState(state: string): ShowVideoTaggingMediaTaskResponse;
27
+ withInput(input: VideoTaggingMediaTaskInput): ShowVideoTaggingMediaTaskResponse;
28
+ withOutput(output: TaskOutput): ShowVideoTaggingMediaTaskResponse;
29
+ withConfig(config: VideoTaggingTaskConfig): ShowVideoTaggingMediaTaskResponse;
30
+ withCallback(callback: TaskCallback): ShowVideoTaggingMediaTaskResponse;
31
+ withXRequestId(xRequestId: string): ShowVideoTaggingMediaTaskResponse;
32
+ set xRequestId(xRequestId: string | undefined);
33
+ get xRequestId(): string | undefined;
34
+ }
@@ -0,0 +1,103 @@
1
+ "use strict";
2
+ var __extends = (this && this.__extends) || (function () {
3
+ var extendStatics = function (d, b) {
4
+ extendStatics = Object.setPrototypeOf ||
5
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
+ return extendStatics(d, b);
8
+ };
9
+ return function (d, b) {
10
+ if (typeof b !== "function" && b !== null)
11
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
+ extendStatics(d, b);
13
+ function __() { this.constructor = d; }
14
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
+ };
16
+ })();
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ exports.ShowVideoTaggingMediaTaskResponse = void 0;
19
+ var SdkResponse_1 = require("@huaweicloud/huaweicloud-sdk-core/SdkResponse");
20
+ var ShowVideoTaggingMediaTaskResponse = /** @class */ (function (_super) {
21
+ __extends(ShowVideoTaggingMediaTaskResponse, _super);
22
+ function ShowVideoTaggingMediaTaskResponse() {
23
+ return _super.call(this) || this;
24
+ }
25
+ ShowVideoTaggingMediaTaskResponse.prototype.withTaskId = function (taskId) {
26
+ this['task_id'] = taskId;
27
+ return this;
28
+ };
29
+ Object.defineProperty(ShowVideoTaggingMediaTaskResponse.prototype, "taskId", {
30
+ get: function () {
31
+ return this['task_id'];
32
+ },
33
+ set: function (taskId) {
34
+ this['task_id'] = taskId;
35
+ },
36
+ enumerable: false,
37
+ configurable: true
38
+ });
39
+ ShowVideoTaggingMediaTaskResponse.prototype.withCreateTime = function (createTime) {
40
+ this['create_time'] = createTime;
41
+ return this;
42
+ };
43
+ Object.defineProperty(ShowVideoTaggingMediaTaskResponse.prototype, "createTime", {
44
+ get: function () {
45
+ return this['create_time'];
46
+ },
47
+ set: function (createTime) {
48
+ this['create_time'] = createTime;
49
+ },
50
+ enumerable: false,
51
+ configurable: true
52
+ });
53
+ ShowVideoTaggingMediaTaskResponse.prototype.withUpdateTime = function (updateTime) {
54
+ this['update_time'] = updateTime;
55
+ return this;
56
+ };
57
+ Object.defineProperty(ShowVideoTaggingMediaTaskResponse.prototype, "updateTime", {
58
+ get: function () {
59
+ return this['update_time'];
60
+ },
61
+ set: function (updateTime) {
62
+ this['update_time'] = updateTime;
63
+ },
64
+ enumerable: false,
65
+ configurable: true
66
+ });
67
+ ShowVideoTaggingMediaTaskResponse.prototype.withState = function (state) {
68
+ this['state'] = state;
69
+ return this;
70
+ };
71
+ ShowVideoTaggingMediaTaskResponse.prototype.withInput = function (input) {
72
+ this['input'] = input;
73
+ return this;
74
+ };
75
+ ShowVideoTaggingMediaTaskResponse.prototype.withOutput = function (output) {
76
+ this['output'] = output;
77
+ return this;
78
+ };
79
+ ShowVideoTaggingMediaTaskResponse.prototype.withConfig = function (config) {
80
+ this['config'] = config;
81
+ return this;
82
+ };
83
+ ShowVideoTaggingMediaTaskResponse.prototype.withCallback = function (callback) {
84
+ this['callback'] = callback;
85
+ return this;
86
+ };
87
+ ShowVideoTaggingMediaTaskResponse.prototype.withXRequestId = function (xRequestId) {
88
+ this['X-request-id'] = xRequestId;
89
+ return this;
90
+ };
91
+ Object.defineProperty(ShowVideoTaggingMediaTaskResponse.prototype, "xRequestId", {
92
+ get: function () {
93
+ return this['X-request-id'];
94
+ },
95
+ set: function (xRequestId) {
96
+ this['X-request-id'] = xRequestId;
97
+ },
98
+ enumerable: false,
99
+ configurable: true
100
+ });
101
+ return ShowVideoTaggingMediaTaskResponse;
102
+ }(SdkResponse_1.SdkResponse));
103
+ exports.ShowVideoTaggingMediaTaskResponse = ShowVideoTaggingMediaTaskResponse;
@@ -0,0 +1,8 @@
1
+ import { VideoTaggingMediaTaskInputData } from './VideoTaggingMediaTaskInputData';
2
+ export declare class VideoTaggingMediaTaskInput {
3
+ type: string;
4
+ data: Array<VideoTaggingMediaTaskInputData>;
5
+ constructor(type?: any, data?: any);
6
+ withType(type: string): VideoTaggingMediaTaskInput;
7
+ withData(data: Array<VideoTaggingMediaTaskInputData>): VideoTaggingMediaTaskInput;
8
+ }
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.VideoTaggingMediaTaskInput = void 0;
4
+ var VideoTaggingMediaTaskInput = /** @class */ (function () {
5
+ function VideoTaggingMediaTaskInput(type, data) {
6
+ this['type'] = type;
7
+ this['data'] = data;
8
+ }
9
+ VideoTaggingMediaTaskInput.prototype.withType = function (type) {
10
+ this['type'] = type;
11
+ return this;
12
+ };
13
+ VideoTaggingMediaTaskInput.prototype.withData = function (data) {
14
+ this['data'] = data;
15
+ return this;
16
+ };
17
+ return VideoTaggingMediaTaskInput;
18
+ }());
19
+ exports.VideoTaggingMediaTaskInput = VideoTaggingMediaTaskInput;
@@ -0,0 +1,11 @@
1
+ export declare class VideoTaggingMediaTaskInputData {
2
+ bucket?: string;
3
+ path?: string;
4
+ url?: string;
5
+ key?: string;
6
+ constructor();
7
+ withBucket(bucket: string): VideoTaggingMediaTaskInputData;
8
+ withPath(path: string): VideoTaggingMediaTaskInputData;
9
+ withUrl(url: string): VideoTaggingMediaTaskInputData;
10
+ withKey(key: string): VideoTaggingMediaTaskInputData;
11
+ }
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.VideoTaggingMediaTaskInputData = void 0;
4
+ var VideoTaggingMediaTaskInputData = /** @class */ (function () {
5
+ function VideoTaggingMediaTaskInputData() {
6
+ }
7
+ VideoTaggingMediaTaskInputData.prototype.withBucket = function (bucket) {
8
+ this['bucket'] = bucket;
9
+ return this;
10
+ };
11
+ VideoTaggingMediaTaskInputData.prototype.withPath = function (path) {
12
+ this['path'] = path;
13
+ return this;
14
+ };
15
+ VideoTaggingMediaTaskInputData.prototype.withUrl = function (url) {
16
+ this['url'] = url;
17
+ return this;
18
+ };
19
+ VideoTaggingMediaTaskInputData.prototype.withKey = function (key) {
20
+ this['key'] = key;
21
+ return this;
22
+ };
23
+ return VideoTaggingMediaTaskInputData;
24
+ }());
25
+ exports.VideoTaggingMediaTaskInputData = VideoTaggingMediaTaskInputData;
@@ -0,0 +1,6 @@
1
+ import { VideoTaggingTaskConfigCommon } from './VideoTaggingTaskConfigCommon';
2
+ export declare class VideoTaggingTaskConfig {
3
+ common?: VideoTaggingTaskConfigCommon;
4
+ constructor();
5
+ withCommon(common: VideoTaggingTaskConfigCommon): VideoTaggingTaskConfig;
6
+ }
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.VideoTaggingTaskConfig = void 0;
4
+ var VideoTaggingTaskConfig = /** @class */ (function () {
5
+ function VideoTaggingTaskConfig() {
6
+ }
7
+ VideoTaggingTaskConfig.prototype.withCommon = function (common) {
8
+ this['common'] = common;
9
+ return this;
10
+ };
11
+ return VideoTaggingTaskConfig;
12
+ }());
13
+ exports.VideoTaggingTaskConfig = VideoTaggingTaskConfig;
@@ -0,0 +1,6 @@
1
+ import { VideoTagginginference } from './VideoTagginginference';
2
+ export declare class VideoTaggingTaskConfigCommon {
3
+ inference: VideoTagginginference;
4
+ constructor(inference?: any);
5
+ withInference(inference: VideoTagginginference): VideoTaggingTaskConfigCommon;
6
+ }
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.VideoTaggingTaskConfigCommon = void 0;
4
+ var VideoTaggingTaskConfigCommon = /** @class */ (function () {
5
+ function VideoTaggingTaskConfigCommon(inference) {
6
+ this['inference'] = inference;
7
+ }
8
+ VideoTaggingTaskConfigCommon.prototype.withInference = function (inference) {
9
+ this['inference'] = inference;
10
+ return this;
11
+ };
12
+ return VideoTaggingTaskConfigCommon;
13
+ }());
14
+ exports.VideoTaggingTaskConfigCommon = VideoTaggingTaskConfigCommon;
@@ -0,0 +1,41 @@
1
+ export declare class VideoTagginginference {
2
+ private 'video_title'?;
3
+ language?: VideoTagginginferenceLanguageEnum;
4
+ private 'use_celebrity'?;
5
+ private 'use_landmark'?;
6
+ private 'use_logo'?;
7
+ private 'use_ocr'?;
8
+ private 'use_sis'?;
9
+ private 'use_tagging'?;
10
+ constructor();
11
+ withVideoTitle(videoTitle: string): VideoTagginginference;
12
+ set videoTitle(videoTitle: string | undefined);
13
+ get videoTitle(): string | undefined;
14
+ withLanguage(language: VideoTagginginferenceLanguageEnum): VideoTagginginference;
15
+ withUseCelebrity(useCelebrity: string): VideoTagginginference;
16
+ set useCelebrity(useCelebrity: string | undefined);
17
+ get useCelebrity(): string | undefined;
18
+ withUseLandmark(useLandmark: string): VideoTagginginference;
19
+ set useLandmark(useLandmark: string | undefined);
20
+ get useLandmark(): string | undefined;
21
+ withUseLogo(useLogo: string): VideoTagginginference;
22
+ set useLogo(useLogo: string | undefined);
23
+ get useLogo(): string | undefined;
24
+ withUseOcr(useOcr: string): VideoTagginginference;
25
+ set useOcr(useOcr: string | undefined);
26
+ get useOcr(): string | undefined;
27
+ withUseSis(useSis: string): VideoTagginginference;
28
+ set useSis(useSis: string | undefined);
29
+ get useSis(): string | undefined;
30
+ withUseTagging(useTagging: string): VideoTagginginference;
31
+ set useTagging(useTagging: string | undefined);
32
+ get useTagging(): string | undefined;
33
+ }
34
+ /**
35
+ * @export
36
+ * @enum {string}
37
+ */
38
+ export declare enum VideoTagginginferenceLanguageEnum {
39
+ ZH = "zh",
40
+ EN = "en"
41
+ }
@@ -0,0 +1,120 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.VideoTagginginferenceLanguageEnum = exports.VideoTagginginference = void 0;
4
+ var VideoTagginginference = /** @class */ (function () {
5
+ function VideoTagginginference() {
6
+ }
7
+ VideoTagginginference.prototype.withVideoTitle = function (videoTitle) {
8
+ this['video_title'] = videoTitle;
9
+ return this;
10
+ };
11
+ Object.defineProperty(VideoTagginginference.prototype, "videoTitle", {
12
+ get: function () {
13
+ return this['video_title'];
14
+ },
15
+ set: function (videoTitle) {
16
+ this['video_title'] = videoTitle;
17
+ },
18
+ enumerable: false,
19
+ configurable: true
20
+ });
21
+ VideoTagginginference.prototype.withLanguage = function (language) {
22
+ this['language'] = language;
23
+ return this;
24
+ };
25
+ VideoTagginginference.prototype.withUseCelebrity = function (useCelebrity) {
26
+ this['use_celebrity'] = useCelebrity;
27
+ return this;
28
+ };
29
+ Object.defineProperty(VideoTagginginference.prototype, "useCelebrity", {
30
+ get: function () {
31
+ return this['use_celebrity'];
32
+ },
33
+ set: function (useCelebrity) {
34
+ this['use_celebrity'] = useCelebrity;
35
+ },
36
+ enumerable: false,
37
+ configurable: true
38
+ });
39
+ VideoTagginginference.prototype.withUseLandmark = function (useLandmark) {
40
+ this['use_landmark'] = useLandmark;
41
+ return this;
42
+ };
43
+ Object.defineProperty(VideoTagginginference.prototype, "useLandmark", {
44
+ get: function () {
45
+ return this['use_landmark'];
46
+ },
47
+ set: function (useLandmark) {
48
+ this['use_landmark'] = useLandmark;
49
+ },
50
+ enumerable: false,
51
+ configurable: true
52
+ });
53
+ VideoTagginginference.prototype.withUseLogo = function (useLogo) {
54
+ this['use_logo'] = useLogo;
55
+ return this;
56
+ };
57
+ Object.defineProperty(VideoTagginginference.prototype, "useLogo", {
58
+ get: function () {
59
+ return this['use_logo'];
60
+ },
61
+ set: function (useLogo) {
62
+ this['use_logo'] = useLogo;
63
+ },
64
+ enumerable: false,
65
+ configurable: true
66
+ });
67
+ VideoTagginginference.prototype.withUseOcr = function (useOcr) {
68
+ this['use_ocr'] = useOcr;
69
+ return this;
70
+ };
71
+ Object.defineProperty(VideoTagginginference.prototype, "useOcr", {
72
+ get: function () {
73
+ return this['use_ocr'];
74
+ },
75
+ set: function (useOcr) {
76
+ this['use_ocr'] = useOcr;
77
+ },
78
+ enumerable: false,
79
+ configurable: true
80
+ });
81
+ VideoTagginginference.prototype.withUseSis = function (useSis) {
82
+ this['use_sis'] = useSis;
83
+ return this;
84
+ };
85
+ Object.defineProperty(VideoTagginginference.prototype, "useSis", {
86
+ get: function () {
87
+ return this['use_sis'];
88
+ },
89
+ set: function (useSis) {
90
+ this['use_sis'] = useSis;
91
+ },
92
+ enumerable: false,
93
+ configurable: true
94
+ });
95
+ VideoTagginginference.prototype.withUseTagging = function (useTagging) {
96
+ this['use_tagging'] = useTagging;
97
+ return this;
98
+ };
99
+ Object.defineProperty(VideoTagginginference.prototype, "useTagging", {
100
+ get: function () {
101
+ return this['use_tagging'];
102
+ },
103
+ set: function (useTagging) {
104
+ this['use_tagging'] = useTagging;
105
+ },
106
+ enumerable: false,
107
+ configurable: true
108
+ });
109
+ return VideoTagginginference;
110
+ }());
111
+ exports.VideoTagginginference = VideoTagginginference;
112
+ /**
113
+ * @export
114
+ * @enum {string}
115
+ */
116
+ var VideoTagginginferenceLanguageEnum;
117
+ (function (VideoTagginginferenceLanguageEnum) {
118
+ VideoTagginginferenceLanguageEnum["ZH"] = "zh";
119
+ VideoTagginginferenceLanguageEnum["EN"] = "en";
120
+ })(VideoTagginginferenceLanguageEnum = exports.VideoTagginginferenceLanguageEnum || (exports.VideoTagginginferenceLanguageEnum = {}));
@@ -7,6 +7,9 @@ export * from './model/CreateImageHighresolutionMattingTaskResponse';
7
7
  export * from './model/CreateVideoObjectMaskingTaskRequest';
8
8
  export * from './model/CreateVideoObjectMaskingTaskRequestBody';
9
9
  export * from './model/CreateVideoObjectMaskingTaskResponse';
10
+ export * from './model/CreateVideoTaggingMediaTaskRequest';
11
+ export * from './model/CreateVideoTaggingMediaTaskRequestBody';
12
+ export * from './model/CreateVideoTaggingMediaTaskResponse';
10
13
  export * from './model/ImageDescriptionReq';
11
14
  export * from './model/ImageDescriptionResponseResult';
12
15
  export * from './model/ImageHighresolutionMattingConfig';
@@ -60,6 +63,8 @@ export * from './model/ShowImageHighresolutionMattingTaskRequest';
60
63
  export * from './model/ShowImageHighresolutionMattingTaskResponse';
61
64
  export * from './model/ShowVideoObjectMaskingTaskRequest';
62
65
  export * from './model/ShowVideoObjectMaskingTaskResponse';
66
+ export * from './model/ShowVideoTaggingMediaTaskRequest';
67
+ export * from './model/ShowVideoTaggingMediaTaskResponse';
63
68
  export * from './model/TaskCallback';
64
69
  export * from './model/TaskInput';
65
70
  export * from './model/TaskInputData';
@@ -68,4 +73,9 @@ export * from './model/TaskOutputObs';
68
73
  export * from './model/VideoObjectMaskingInference';
69
74
  export * from './model/VideoObjectMaskingTaskConfig';
70
75
  export * from './model/VideoObjectMaskingTaskConfigCommon';
76
+ export * from './model/VideoTaggingMediaTaskInput';
77
+ export * from './model/VideoTaggingMediaTaskInputData';
78
+ export * from './model/VideoTaggingTaskConfig';
79
+ export * from './model/VideoTaggingTaskConfigCommon';
80
+ export * from './model/VideoTagginginference';
71
81
  export * from './ImageRegion';
package/v2/public-api.js CHANGED
@@ -23,6 +23,9 @@ __exportStar(require("./model/CreateImageHighresolutionMattingTaskResponse"), ex
23
23
  __exportStar(require("./model/CreateVideoObjectMaskingTaskRequest"), exports);
24
24
  __exportStar(require("./model/CreateVideoObjectMaskingTaskRequestBody"), exports);
25
25
  __exportStar(require("./model/CreateVideoObjectMaskingTaskResponse"), exports);
26
+ __exportStar(require("./model/CreateVideoTaggingMediaTaskRequest"), exports);
27
+ __exportStar(require("./model/CreateVideoTaggingMediaTaskRequestBody"), exports);
28
+ __exportStar(require("./model/CreateVideoTaggingMediaTaskResponse"), exports);
26
29
  __exportStar(require("./model/ImageDescriptionReq"), exports);
27
30
  __exportStar(require("./model/ImageDescriptionResponseResult"), exports);
28
31
  __exportStar(require("./model/ImageHighresolutionMattingConfig"), exports);
@@ -76,6 +79,8 @@ __exportStar(require("./model/ShowImageHighresolutionMattingTaskRequest"), expor
76
79
  __exportStar(require("./model/ShowImageHighresolutionMattingTaskResponse"), exports);
77
80
  __exportStar(require("./model/ShowVideoObjectMaskingTaskRequest"), exports);
78
81
  __exportStar(require("./model/ShowVideoObjectMaskingTaskResponse"), exports);
82
+ __exportStar(require("./model/ShowVideoTaggingMediaTaskRequest"), exports);
83
+ __exportStar(require("./model/ShowVideoTaggingMediaTaskResponse"), exports);
79
84
  __exportStar(require("./model/TaskCallback"), exports);
80
85
  __exportStar(require("./model/TaskInput"), exports);
81
86
  __exportStar(require("./model/TaskInputData"), exports);
@@ -84,4 +89,9 @@ __exportStar(require("./model/TaskOutputObs"), exports);
84
89
  __exportStar(require("./model/VideoObjectMaskingInference"), exports);
85
90
  __exportStar(require("./model/VideoObjectMaskingTaskConfig"), exports);
86
91
  __exportStar(require("./model/VideoObjectMaskingTaskConfigCommon"), exports);
92
+ __exportStar(require("./model/VideoTaggingMediaTaskInput"), exports);
93
+ __exportStar(require("./model/VideoTaggingMediaTaskInputData"), exports);
94
+ __exportStar(require("./model/VideoTaggingTaskConfig"), exports);
95
+ __exportStar(require("./model/VideoTaggingTaskConfigCommon"), exports);
96
+ __exportStar(require("./model/VideoTagginginference"), exports);
87
97
  __exportStar(require("./ImageRegion"), exports);