@alicloud/quanmiaolightapp20240801 2.4.1 → 2.5.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/src/client.ts CHANGED
@@ -239,6 +239,228 @@ export class GenerateOutputFormatResponseBodyData extends $dara.Model {
239
239
  }
240
240
  }
241
241
 
242
+ export class GetTagMiningAnalysisTaskResponseBodyDataResultsHeader extends $dara.Model {
243
+ /**
244
+ * @example
245
+ * DataNotExists
246
+ */
247
+ errorCode?: string;
248
+ errorMessage?: string;
249
+ /**
250
+ * @example
251
+ * task-finished
252
+ */
253
+ event?: string;
254
+ /**
255
+ * @example
256
+ * 085BE2D2-BB7E-59A6-B688-F2CB32124E7F
257
+ */
258
+ requestId?: string;
259
+ static names(): { [key: string]: string } {
260
+ return {
261
+ errorCode: 'errorCode',
262
+ errorMessage: 'errorMessage',
263
+ event: 'event',
264
+ requestId: 'requestId',
265
+ };
266
+ }
267
+
268
+ static types(): { [key: string]: any } {
269
+ return {
270
+ errorCode: 'string',
271
+ errorMessage: 'string',
272
+ event: 'string',
273
+ requestId: 'string',
274
+ };
275
+ }
276
+
277
+ validate() {
278
+ super.validate();
279
+ }
280
+
281
+ constructor(map?: { [key: string]: any }) {
282
+ super(map);
283
+ }
284
+ }
285
+
286
+ export class GetTagMiningAnalysisTaskResponseBodyDataResultsPayloadOutput extends $dara.Model {
287
+ /**
288
+ * @example
289
+ * xxxx
290
+ */
291
+ text?: string;
292
+ static names(): { [key: string]: string } {
293
+ return {
294
+ text: 'text',
295
+ };
296
+ }
297
+
298
+ static types(): { [key: string]: any } {
299
+ return {
300
+ text: 'string',
301
+ };
302
+ }
303
+
304
+ validate() {
305
+ super.validate();
306
+ }
307
+
308
+ constructor(map?: { [key: string]: any }) {
309
+ super(map);
310
+ }
311
+ }
312
+
313
+ export class GetTagMiningAnalysisTaskResponseBodyDataResultsPayloadUsage extends $dara.Model {
314
+ /**
315
+ * @example
316
+ * 100
317
+ */
318
+ inputToken?: number;
319
+ /**
320
+ * @example
321
+ * 200
322
+ */
323
+ outputToken?: number;
324
+ /**
325
+ * @example
326
+ * 300
327
+ */
328
+ totalToken?: number;
329
+ static names(): { [key: string]: string } {
330
+ return {
331
+ inputToken: 'inputToken',
332
+ outputToken: 'outputToken',
333
+ totalToken: 'totalToken',
334
+ };
335
+ }
336
+
337
+ static types(): { [key: string]: any } {
338
+ return {
339
+ inputToken: 'number',
340
+ outputToken: 'number',
341
+ totalToken: 'number',
342
+ };
343
+ }
344
+
345
+ validate() {
346
+ super.validate();
347
+ }
348
+
349
+ constructor(map?: { [key: string]: any }) {
350
+ super(map);
351
+ }
352
+ }
353
+
354
+ export class GetTagMiningAnalysisTaskResponseBodyDataResultsPayload extends $dara.Model {
355
+ output?: GetTagMiningAnalysisTaskResponseBodyDataResultsPayloadOutput;
356
+ usage?: GetTagMiningAnalysisTaskResponseBodyDataResultsPayloadUsage;
357
+ static names(): { [key: string]: string } {
358
+ return {
359
+ output: 'output',
360
+ usage: 'usage',
361
+ };
362
+ }
363
+
364
+ static types(): { [key: string]: any } {
365
+ return {
366
+ output: GetTagMiningAnalysisTaskResponseBodyDataResultsPayloadOutput,
367
+ usage: GetTagMiningAnalysisTaskResponseBodyDataResultsPayloadUsage,
368
+ };
369
+ }
370
+
371
+ validate() {
372
+ if(this.output && typeof (this.output as any).validate === 'function') {
373
+ (this.output as any).validate();
374
+ }
375
+ if(this.usage && typeof (this.usage as any).validate === 'function') {
376
+ (this.usage as any).validate();
377
+ }
378
+ super.validate();
379
+ }
380
+
381
+ constructor(map?: { [key: string]: any }) {
382
+ super(map);
383
+ }
384
+ }
385
+
386
+ export class GetTagMiningAnalysisTaskResponseBodyDataResults extends $dara.Model {
387
+ /**
388
+ * @example
389
+ * 1
390
+ */
391
+ customId?: string;
392
+ header?: GetTagMiningAnalysisTaskResponseBodyDataResultsHeader;
393
+ payload?: GetTagMiningAnalysisTaskResponseBodyDataResultsPayload;
394
+ static names(): { [key: string]: string } {
395
+ return {
396
+ customId: 'customId',
397
+ header: 'header',
398
+ payload: 'payload',
399
+ };
400
+ }
401
+
402
+ static types(): { [key: string]: any } {
403
+ return {
404
+ customId: 'string',
405
+ header: GetTagMiningAnalysisTaskResponseBodyDataResultsHeader,
406
+ payload: GetTagMiningAnalysisTaskResponseBodyDataResultsPayload,
407
+ };
408
+ }
409
+
410
+ validate() {
411
+ if(this.header && typeof (this.header as any).validate === 'function') {
412
+ (this.header as any).validate();
413
+ }
414
+ if(this.payload && typeof (this.payload as any).validate === 'function') {
415
+ (this.payload as any).validate();
416
+ }
417
+ super.validate();
418
+ }
419
+
420
+ constructor(map?: { [key: string]: any }) {
421
+ super(map);
422
+ }
423
+ }
424
+
425
+ export class GetTagMiningAnalysisTaskResponseBodyData extends $dara.Model {
426
+ errorCode?: string;
427
+ errorMessage?: string;
428
+ results?: GetTagMiningAnalysisTaskResponseBodyDataResults[];
429
+ /**
430
+ * @example
431
+ * RUNNIN
432
+ */
433
+ status?: string;
434
+ static names(): { [key: string]: string } {
435
+ return {
436
+ errorCode: 'errorCode',
437
+ errorMessage: 'errorMessage',
438
+ results: 'results',
439
+ status: 'status',
440
+ };
441
+ }
442
+
443
+ static types(): { [key: string]: any } {
444
+ return {
445
+ errorCode: 'string',
446
+ errorMessage: 'string',
447
+ results: { 'type': 'array', 'itemType': GetTagMiningAnalysisTaskResponseBodyDataResults },
448
+ status: 'string',
449
+ };
450
+ }
451
+
452
+ validate() {
453
+ if(Array.isArray(this.results)) {
454
+ $dara.Model.validateArray(this.results);
455
+ }
456
+ super.validate();
457
+ }
458
+
459
+ constructor(map?: { [key: string]: any }) {
460
+ super(map);
461
+ }
462
+ }
463
+
242
464
  export class GetVideoAnalysisConfigResponseBodyData extends $dara.Model {
243
465
  /**
244
466
  * @example
@@ -4539,6 +4761,67 @@ export class RunVideoAnalysisResponseBodyPayload extends $dara.Model {
4539
4761
  }
4540
4762
  }
4541
4763
 
4764
+ export class SubmitTagMiningAnalysisTaskRequestTags extends $dara.Model {
4765
+ /**
4766
+ * @example
4767
+ * xxxx
4768
+ */
4769
+ tagDefinePrompt?: string;
4770
+ /**
4771
+ * @example
4772
+ * xxxx
4773
+ */
4774
+ tagName?: string;
4775
+ static names(): { [key: string]: string } {
4776
+ return {
4777
+ tagDefinePrompt: 'tagDefinePrompt',
4778
+ tagName: 'tagName',
4779
+ };
4780
+ }
4781
+
4782
+ static types(): { [key: string]: any } {
4783
+ return {
4784
+ tagDefinePrompt: 'string',
4785
+ tagName: 'string',
4786
+ };
4787
+ }
4788
+
4789
+ validate() {
4790
+ super.validate();
4791
+ }
4792
+
4793
+ constructor(map?: { [key: string]: any }) {
4794
+ super(map);
4795
+ }
4796
+ }
4797
+
4798
+ export class SubmitTagMiningAnalysisTaskResponseBodyData extends $dara.Model {
4799
+ /**
4800
+ * @example
4801
+ * 3feb69ed02d9b1a17d0f1a942675d300
4802
+ */
4803
+ taskId?: string;
4804
+ static names(): { [key: string]: string } {
4805
+ return {
4806
+ taskId: 'taskId',
4807
+ };
4808
+ }
4809
+
4810
+ static types(): { [key: string]: any } {
4811
+ return {
4812
+ taskId: 'string',
4813
+ };
4814
+ }
4815
+
4816
+ validate() {
4817
+ super.validate();
4818
+ }
4819
+
4820
+ constructor(map?: { [key: string]: any }) {
4821
+ super(map);
4822
+ }
4823
+ }
4824
+
4542
4825
  export class SubmitVideoAnalysisTaskRequestFrameSampleMethod extends $dara.Model {
4543
4826
  /**
4544
4827
  * @example
@@ -4974,20 +5257,146 @@ export class GenerateOutputFormatResponse extends $dara.Model {
4974
5257
  }
4975
5258
  }
4976
5259
 
4977
- export class GetVideoAnalysisConfigResponseBody extends $dara.Model {
4978
- /**
4979
- * @example
4980
- * xx
4981
- */
4982
- code?: string;
4983
- data?: GetVideoAnalysisConfigResponseBodyData;
5260
+ export class GetTagMiningAnalysisTaskRequest extends $dara.Model {
4984
5261
  /**
4985
5262
  * @example
4986
- * 200
5263
+ * a3d1c2ac-f086-4a21-9069-f5631542f5a2
4987
5264
  */
4988
- httpStatusCode?: number;
4989
- /**
4990
- * @example
5265
+ taskId?: string;
5266
+ static names(): { [key: string]: string } {
5267
+ return {
5268
+ taskId: 'taskId',
5269
+ };
5270
+ }
5271
+
5272
+ static types(): { [key: string]: any } {
5273
+ return {
5274
+ taskId: 'string',
5275
+ };
5276
+ }
5277
+
5278
+ validate() {
5279
+ super.validate();
5280
+ }
5281
+
5282
+ constructor(map?: { [key: string]: any }) {
5283
+ super(map);
5284
+ }
5285
+ }
5286
+
5287
+ export class GetTagMiningAnalysisTaskResponseBody extends $dara.Model {
5288
+ /**
5289
+ * @example
5290
+ * successful
5291
+ */
5292
+ code?: string;
5293
+ data?: GetTagMiningAnalysisTaskResponseBodyData;
5294
+ /**
5295
+ * @example
5296
+ * 200
5297
+ */
5298
+ httpStatusCode?: string;
5299
+ /**
5300
+ * @example
5301
+ * DataNotExists
5302
+ */
5303
+ message?: string;
5304
+ /**
5305
+ * @remarks
5306
+ * requestId
5307
+ *
5308
+ * @example
5309
+ * 085BE2D2-BB7E-59A6-B688-F2CB32124E7F
5310
+ */
5311
+ requestId?: string;
5312
+ /**
5313
+ * @example
5314
+ * true
5315
+ */
5316
+ success?: boolean;
5317
+ static names(): { [key: string]: string } {
5318
+ return {
5319
+ code: 'code',
5320
+ data: 'data',
5321
+ httpStatusCode: 'httpStatusCode',
5322
+ message: 'message',
5323
+ requestId: 'requestId',
5324
+ success: 'success',
5325
+ };
5326
+ }
5327
+
5328
+ static types(): { [key: string]: any } {
5329
+ return {
5330
+ code: 'string',
5331
+ data: GetTagMiningAnalysisTaskResponseBodyData,
5332
+ httpStatusCode: 'string',
5333
+ message: 'string',
5334
+ requestId: 'string',
5335
+ success: 'boolean',
5336
+ };
5337
+ }
5338
+
5339
+ validate() {
5340
+ if(this.data && typeof (this.data as any).validate === 'function') {
5341
+ (this.data as any).validate();
5342
+ }
5343
+ super.validate();
5344
+ }
5345
+
5346
+ constructor(map?: { [key: string]: any }) {
5347
+ super(map);
5348
+ }
5349
+ }
5350
+
5351
+ export class GetTagMiningAnalysisTaskResponse extends $dara.Model {
5352
+ headers?: { [key: string]: string };
5353
+ statusCode?: number;
5354
+ body?: GetTagMiningAnalysisTaskResponseBody;
5355
+ static names(): { [key: string]: string } {
5356
+ return {
5357
+ headers: 'headers',
5358
+ statusCode: 'statusCode',
5359
+ body: 'body',
5360
+ };
5361
+ }
5362
+
5363
+ static types(): { [key: string]: any } {
5364
+ return {
5365
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
5366
+ statusCode: 'number',
5367
+ body: GetTagMiningAnalysisTaskResponseBody,
5368
+ };
5369
+ }
5370
+
5371
+ validate() {
5372
+ if(this.headers) {
5373
+ $dara.Model.validateMap(this.headers);
5374
+ }
5375
+ if(this.body && typeof (this.body as any).validate === 'function') {
5376
+ (this.body as any).validate();
5377
+ }
5378
+ super.validate();
5379
+ }
5380
+
5381
+ constructor(map?: { [key: string]: any }) {
5382
+ super(map);
5383
+ }
5384
+ }
5385
+
5386
+ export class GetVideoAnalysisConfigResponseBody extends $dara.Model {
5387
+ /**
5388
+ * @example
5389
+ * xx
5390
+ */
5391
+ code?: string;
5392
+ data?: GetVideoAnalysisConfigResponseBodyData;
5393
+ /**
5394
+ * @example
5395
+ * 200
5396
+ */
5397
+ httpStatusCode?: number;
5398
+ /**
5399
+ * @example
4991
5400
  * ok
4992
5401
  */
4993
5402
  message?: string;
@@ -7376,6 +7785,247 @@ export class RunVideoAnalysisResponse extends $dara.Model {
7376
7785
  }
7377
7786
  }
7378
7787
 
7788
+ export class SubmitTagMiningAnalysisTaskRequest extends $dara.Model {
7789
+ /**
7790
+ * @example
7791
+ * clueMining
7792
+ */
7793
+ businessType?: string;
7794
+ contents?: string[];
7795
+ /**
7796
+ * @example
7797
+ * 额外信息
7798
+ */
7799
+ extraInfo?: string;
7800
+ /**
7801
+ * @example
7802
+ * qwen-max
7803
+ */
7804
+ modelId?: string;
7805
+ /**
7806
+ * @example
7807
+ * 请返回如下JSON格式,{"key1":"","key2":""}
7808
+ */
7809
+ outputFormat?: string;
7810
+ tags?: SubmitTagMiningAnalysisTaskRequestTags[];
7811
+ /**
7812
+ * @example
7813
+ * 给你一条待分析文本数据,请你按照标签体系来对数据进行打标。
7814
+ */
7815
+ taskDescription?: string;
7816
+ /**
7817
+ * @example
7818
+ * http://www.example.com/xxxx.txt
7819
+ */
7820
+ url?: string;
7821
+ static names(): { [key: string]: string } {
7822
+ return {
7823
+ businessType: 'businessType',
7824
+ contents: 'contents',
7825
+ extraInfo: 'extraInfo',
7826
+ modelId: 'modelId',
7827
+ outputFormat: 'outputFormat',
7828
+ tags: 'tags',
7829
+ taskDescription: 'taskDescription',
7830
+ url: 'url',
7831
+ };
7832
+ }
7833
+
7834
+ static types(): { [key: string]: any } {
7835
+ return {
7836
+ businessType: 'string',
7837
+ contents: { 'type': 'array', 'itemType': 'string' },
7838
+ extraInfo: 'string',
7839
+ modelId: 'string',
7840
+ outputFormat: 'string',
7841
+ tags: { 'type': 'array', 'itemType': SubmitTagMiningAnalysisTaskRequestTags },
7842
+ taskDescription: 'string',
7843
+ url: 'string',
7844
+ };
7845
+ }
7846
+
7847
+ validate() {
7848
+ if(Array.isArray(this.contents)) {
7849
+ $dara.Model.validateArray(this.contents);
7850
+ }
7851
+ if(Array.isArray(this.tags)) {
7852
+ $dara.Model.validateArray(this.tags);
7853
+ }
7854
+ super.validate();
7855
+ }
7856
+
7857
+ constructor(map?: { [key: string]: any }) {
7858
+ super(map);
7859
+ }
7860
+ }
7861
+
7862
+ export class SubmitTagMiningAnalysisTaskShrinkRequest extends $dara.Model {
7863
+ /**
7864
+ * @example
7865
+ * clueMining
7866
+ */
7867
+ businessType?: string;
7868
+ contentsShrink?: string;
7869
+ /**
7870
+ * @example
7871
+ * 额外信息
7872
+ */
7873
+ extraInfo?: string;
7874
+ /**
7875
+ * @example
7876
+ * qwen-max
7877
+ */
7878
+ modelId?: string;
7879
+ /**
7880
+ * @example
7881
+ * 请返回如下JSON格式,{"key1":"","key2":""}
7882
+ */
7883
+ outputFormat?: string;
7884
+ tagsShrink?: string;
7885
+ /**
7886
+ * @example
7887
+ * 给你一条待分析文本数据,请你按照标签体系来对数据进行打标。
7888
+ */
7889
+ taskDescription?: string;
7890
+ /**
7891
+ * @example
7892
+ * http://www.example.com/xxxx.txt
7893
+ */
7894
+ url?: string;
7895
+ static names(): { [key: string]: string } {
7896
+ return {
7897
+ businessType: 'businessType',
7898
+ contentsShrink: 'contents',
7899
+ extraInfo: 'extraInfo',
7900
+ modelId: 'modelId',
7901
+ outputFormat: 'outputFormat',
7902
+ tagsShrink: 'tags',
7903
+ taskDescription: 'taskDescription',
7904
+ url: 'url',
7905
+ };
7906
+ }
7907
+
7908
+ static types(): { [key: string]: any } {
7909
+ return {
7910
+ businessType: 'string',
7911
+ contentsShrink: 'string',
7912
+ extraInfo: 'string',
7913
+ modelId: 'string',
7914
+ outputFormat: 'string',
7915
+ tagsShrink: 'string',
7916
+ taskDescription: 'string',
7917
+ url: 'string',
7918
+ };
7919
+ }
7920
+
7921
+ validate() {
7922
+ super.validate();
7923
+ }
7924
+
7925
+ constructor(map?: { [key: string]: any }) {
7926
+ super(map);
7927
+ }
7928
+ }
7929
+
7930
+ export class SubmitTagMiningAnalysisTaskResponseBody extends $dara.Model {
7931
+ /**
7932
+ * @example
7933
+ * successful
7934
+ */
7935
+ code?: string;
7936
+ data?: SubmitTagMiningAnalysisTaskResponseBodyData;
7937
+ /**
7938
+ * @example
7939
+ * 200
7940
+ */
7941
+ httpStatusCode?: number;
7942
+ /**
7943
+ * @example
7944
+ * ok
7945
+ */
7946
+ message?: string;
7947
+ /**
7948
+ * @remarks
7949
+ * Id of the request
7950
+ *
7951
+ * @example
7952
+ * 117F5ABE-CF02-5502-9A3F-E56BC9081A64
7953
+ */
7954
+ requestId?: string;
7955
+ /**
7956
+ * @example
7957
+ * true
7958
+ */
7959
+ success?: boolean;
7960
+ static names(): { [key: string]: string } {
7961
+ return {
7962
+ code: 'code',
7963
+ data: 'data',
7964
+ httpStatusCode: 'httpStatusCode',
7965
+ message: 'message',
7966
+ requestId: 'requestId',
7967
+ success: 'success',
7968
+ };
7969
+ }
7970
+
7971
+ static types(): { [key: string]: any } {
7972
+ return {
7973
+ code: 'string',
7974
+ data: SubmitTagMiningAnalysisTaskResponseBodyData,
7975
+ httpStatusCode: 'number',
7976
+ message: 'string',
7977
+ requestId: 'string',
7978
+ success: 'boolean',
7979
+ };
7980
+ }
7981
+
7982
+ validate() {
7983
+ if(this.data && typeof (this.data as any).validate === 'function') {
7984
+ (this.data as any).validate();
7985
+ }
7986
+ super.validate();
7987
+ }
7988
+
7989
+ constructor(map?: { [key: string]: any }) {
7990
+ super(map);
7991
+ }
7992
+ }
7993
+
7994
+ export class SubmitTagMiningAnalysisTaskResponse extends $dara.Model {
7995
+ headers?: { [key: string]: string };
7996
+ statusCode?: number;
7997
+ body?: SubmitTagMiningAnalysisTaskResponseBody;
7998
+ static names(): { [key: string]: string } {
7999
+ return {
8000
+ headers: 'headers',
8001
+ statusCode: 'statusCode',
8002
+ body: 'body',
8003
+ };
8004
+ }
8005
+
8006
+ static types(): { [key: string]: any } {
8007
+ return {
8008
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
8009
+ statusCode: 'number',
8010
+ body: SubmitTagMiningAnalysisTaskResponseBody,
8011
+ };
8012
+ }
8013
+
8014
+ validate() {
8015
+ if(this.headers) {
8016
+ $dara.Model.validateMap(this.headers);
8017
+ }
8018
+ if(this.body && typeof (this.body as any).validate === 'function') {
8019
+ (this.body as any).validate();
8020
+ }
8021
+ super.validate();
8022
+ }
8023
+
8024
+ constructor(map?: { [key: string]: any }) {
8025
+ super(map);
8026
+ }
8027
+ }
8028
+
7379
8029
  export class SubmitVideoAnalysisTaskRequest extends $dara.Model {
7380
8030
  frameSampleMethod?: SubmitVideoAnalysisTaskRequestFrameSampleMethod;
7381
8031
  generateOptions?: string[];
@@ -7915,6 +8565,56 @@ export default class Client extends OpenApi {
7915
8565
  return await this.generateOutputFormatWithOptions(workspaceId, request, headers, runtime);
7916
8566
  }
7917
8567
 
8568
+ /**
8569
+ * 获取挖掘分析任务结果
8570
+ *
8571
+ * @param request - GetTagMiningAnalysisTaskRequest
8572
+ * @param headers - map
8573
+ * @param runtime - runtime options for this request RuntimeOptions
8574
+ * @returns GetTagMiningAnalysisTaskResponse
8575
+ */
8576
+ async getTagMiningAnalysisTaskWithOptions(workspaceId: string, request: GetTagMiningAnalysisTaskRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<GetTagMiningAnalysisTaskResponse> {
8577
+ request.validate();
8578
+ let query : {[key: string ]: any} = { };
8579
+ if (!$dara.isNull(request.taskId)) {
8580
+ query["taskId"] = request.taskId;
8581
+ }
8582
+
8583
+ let req = new $OpenApiUtil.OpenApiRequest({
8584
+ headers: headers,
8585
+ query: OpenApiUtil.query(query),
8586
+ });
8587
+ let params = new $OpenApiUtil.Params({
8588
+ action: "GetTagMiningAnalysisTask",
8589
+ version: "2024-08-01",
8590
+ protocol: "HTTPS",
8591
+ pathname: `/${$dara.URL.percentEncode(workspaceId)}/quanmiao/lightapp/getTagMiningAnalysisTask`,
8592
+ method: "GET",
8593
+ authType: "AK",
8594
+ style: "ROA",
8595
+ reqBodyType: "json",
8596
+ bodyType: "json",
8597
+ });
8598
+ if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
8599
+ return $dara.cast<GetTagMiningAnalysisTaskResponse>(await this.callApi(params, req, runtime), new GetTagMiningAnalysisTaskResponse({}));
8600
+ } else {
8601
+ return $dara.cast<GetTagMiningAnalysisTaskResponse>(await this.execute(params, req, runtime), new GetTagMiningAnalysisTaskResponse({}));
8602
+ }
8603
+
8604
+ }
8605
+
8606
+ /**
8607
+ * 获取挖掘分析任务结果
8608
+ *
8609
+ * @param request - GetTagMiningAnalysisTaskRequest
8610
+ * @returns GetTagMiningAnalysisTaskResponse
8611
+ */
8612
+ async getTagMiningAnalysisTask(workspaceId: string, request: GetTagMiningAnalysisTaskRequest): Promise<GetTagMiningAnalysisTaskResponse> {
8613
+ let runtime = new $dara.RuntimeOptions({ });
8614
+ let headers : {[key: string ]: string} = { };
8615
+ return await this.getTagMiningAnalysisTaskWithOptions(workspaceId, request, headers, runtime);
8616
+ }
8617
+
7918
8618
  /**
7919
8619
  * 视频理解-获取配置
7920
8620
  *
@@ -8985,6 +9685,94 @@ export default class Client extends OpenApi {
8985
9685
  return await this.runVideoAnalysisWithOptions(workspaceId, request, headers, runtime);
8986
9686
  }
8987
9687
 
9688
+ /**
9689
+ * 轻应用-标签挖掘
9690
+ *
9691
+ * @param tmpReq - SubmitTagMiningAnalysisTaskRequest
9692
+ * @param headers - map
9693
+ * @param runtime - runtime options for this request RuntimeOptions
9694
+ * @returns SubmitTagMiningAnalysisTaskResponse
9695
+ */
9696
+ async submitTagMiningAnalysisTaskWithOptions(workspaceId: string, tmpReq: SubmitTagMiningAnalysisTaskRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<SubmitTagMiningAnalysisTaskResponse> {
9697
+ tmpReq.validate();
9698
+ let request = new SubmitTagMiningAnalysisTaskShrinkRequest({ });
9699
+ OpenApiUtil.convert(tmpReq, request);
9700
+ if (!$dara.isNull(tmpReq.contents)) {
9701
+ request.contentsShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.contents, "contents", "json");
9702
+ }
9703
+
9704
+ if (!$dara.isNull(tmpReq.tags)) {
9705
+ request.tagsShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.tags, "tags", "json");
9706
+ }
9707
+
9708
+ let body : {[key: string ]: any} = { };
9709
+ if (!$dara.isNull(request.businessType)) {
9710
+ body["businessType"] = request.businessType;
9711
+ }
9712
+
9713
+ if (!$dara.isNull(request.contentsShrink)) {
9714
+ body["contents"] = request.contentsShrink;
9715
+ }
9716
+
9717
+ if (!$dara.isNull(request.extraInfo)) {
9718
+ body["extraInfo"] = request.extraInfo;
9719
+ }
9720
+
9721
+ if (!$dara.isNull(request.modelId)) {
9722
+ body["modelId"] = request.modelId;
9723
+ }
9724
+
9725
+ if (!$dara.isNull(request.outputFormat)) {
9726
+ body["outputFormat"] = request.outputFormat;
9727
+ }
9728
+
9729
+ if (!$dara.isNull(request.tagsShrink)) {
9730
+ body["tags"] = request.tagsShrink;
9731
+ }
9732
+
9733
+ if (!$dara.isNull(request.taskDescription)) {
9734
+ body["taskDescription"] = request.taskDescription;
9735
+ }
9736
+
9737
+ if (!$dara.isNull(request.url)) {
9738
+ body["url"] = request.url;
9739
+ }
9740
+
9741
+ let req = new $OpenApiUtil.OpenApiRequest({
9742
+ headers: headers,
9743
+ body: OpenApiUtil.parseToMap(body),
9744
+ });
9745
+ let params = new $OpenApiUtil.Params({
9746
+ action: "SubmitTagMiningAnalysisTask",
9747
+ version: "2024-08-01",
9748
+ protocol: "HTTPS",
9749
+ pathname: `/${$dara.URL.percentEncode(workspaceId)}/quanmiao/lightapp/submitTagMiningAnalysisTask`,
9750
+ method: "POST",
9751
+ authType: "AK",
9752
+ style: "ROA",
9753
+ reqBodyType: "formData",
9754
+ bodyType: "json",
9755
+ });
9756
+ if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
9757
+ return $dara.cast<SubmitTagMiningAnalysisTaskResponse>(await this.callApi(params, req, runtime), new SubmitTagMiningAnalysisTaskResponse({}));
9758
+ } else {
9759
+ return $dara.cast<SubmitTagMiningAnalysisTaskResponse>(await this.execute(params, req, runtime), new SubmitTagMiningAnalysisTaskResponse({}));
9760
+ }
9761
+
9762
+ }
9763
+
9764
+ /**
9765
+ * 轻应用-标签挖掘
9766
+ *
9767
+ * @param request - SubmitTagMiningAnalysisTaskRequest
9768
+ * @returns SubmitTagMiningAnalysisTaskResponse
9769
+ */
9770
+ async submitTagMiningAnalysisTask(workspaceId: string, request: SubmitTagMiningAnalysisTaskRequest): Promise<SubmitTagMiningAnalysisTaskResponse> {
9771
+ let runtime = new $dara.RuntimeOptions({ });
9772
+ let headers : {[key: string ]: string} = { };
9773
+ return await this.submitTagMiningAnalysisTaskWithOptions(workspaceId, request, headers, runtime);
9774
+ }
9775
+
8988
9776
  /**
8989
9777
  * 轻应用-提交视频理解任务
8990
9778
  *