@alicloud/quanmiaolightapp20240801 2.3.1 → 2.4.1

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
@@ -2365,6 +2365,202 @@ export class RunMarketingInformationWritingResponseBodyPayload extends $dara.Mod
2365
2365
  }
2366
2366
  }
2367
2367
 
2368
+ export class RunNetworkContentAuditRequestTags extends $dara.Model {
2369
+ /**
2370
+ * @example
2371
+ * xxxx
2372
+ */
2373
+ tagDefinePrompt?: string;
2374
+ /**
2375
+ * @example
2376
+ * xxxx
2377
+ */
2378
+ tagName?: string;
2379
+ static names(): { [key: string]: string } {
2380
+ return {
2381
+ tagDefinePrompt: 'tagDefinePrompt',
2382
+ tagName: 'tagName',
2383
+ };
2384
+ }
2385
+
2386
+ static types(): { [key: string]: any } {
2387
+ return {
2388
+ tagDefinePrompt: 'string',
2389
+ tagName: 'string',
2390
+ };
2391
+ }
2392
+
2393
+ validate() {
2394
+ super.validate();
2395
+ }
2396
+
2397
+ constructor(map?: { [key: string]: any }) {
2398
+ super(map);
2399
+ }
2400
+ }
2401
+
2402
+ export class RunNetworkContentAuditResponseBodyHeader extends $dara.Model {
2403
+ /**
2404
+ * @example
2405
+ * AccessForbidden
2406
+ */
2407
+ errorCode?: string;
2408
+ /**
2409
+ * @example
2410
+ * 错误信息
2411
+ */
2412
+ errorMessage?: string;
2413
+ /**
2414
+ * @example
2415
+ * task-finished
2416
+ */
2417
+ event?: string;
2418
+ /**
2419
+ * @example
2420
+ * xxxx
2421
+ */
2422
+ sessionId?: string;
2423
+ /**
2424
+ * @example
2425
+ * xxxx
2426
+ */
2427
+ taskId?: string;
2428
+ /**
2429
+ * @example
2430
+ * xxxxx
2431
+ */
2432
+ traceId?: string;
2433
+ static names(): { [key: string]: string } {
2434
+ return {
2435
+ errorCode: 'errorCode',
2436
+ errorMessage: 'errorMessage',
2437
+ event: 'event',
2438
+ sessionId: 'sessionId',
2439
+ taskId: 'taskId',
2440
+ traceId: 'traceId',
2441
+ };
2442
+ }
2443
+
2444
+ static types(): { [key: string]: any } {
2445
+ return {
2446
+ errorCode: 'string',
2447
+ errorMessage: 'string',
2448
+ event: 'string',
2449
+ sessionId: 'string',
2450
+ taskId: 'string',
2451
+ traceId: 'string',
2452
+ };
2453
+ }
2454
+
2455
+ validate() {
2456
+ super.validate();
2457
+ }
2458
+
2459
+ constructor(map?: { [key: string]: any }) {
2460
+ super(map);
2461
+ }
2462
+ }
2463
+
2464
+ export class RunNetworkContentAuditResponseBodyPayloadOutput extends $dara.Model {
2465
+ /**
2466
+ * @example
2467
+ * xxxx
2468
+ */
2469
+ text?: string;
2470
+ static names(): { [key: string]: string } {
2471
+ return {
2472
+ text: 'text',
2473
+ };
2474
+ }
2475
+
2476
+ static types(): { [key: string]: any } {
2477
+ return {
2478
+ text: 'string',
2479
+ };
2480
+ }
2481
+
2482
+ validate() {
2483
+ super.validate();
2484
+ }
2485
+
2486
+ constructor(map?: { [key: string]: any }) {
2487
+ super(map);
2488
+ }
2489
+ }
2490
+
2491
+ export class RunNetworkContentAuditResponseBodyPayloadUsage extends $dara.Model {
2492
+ /**
2493
+ * @example
2494
+ * 100
2495
+ */
2496
+ inputTokens?: number;
2497
+ /**
2498
+ * @example
2499
+ * 100
2500
+ */
2501
+ outputTokens?: number;
2502
+ /**
2503
+ * @example
2504
+ * 200
2505
+ */
2506
+ totalTokens?: number;
2507
+ static names(): { [key: string]: string } {
2508
+ return {
2509
+ inputTokens: 'inputTokens',
2510
+ outputTokens: 'outputTokens',
2511
+ totalTokens: 'totalTokens',
2512
+ };
2513
+ }
2514
+
2515
+ static types(): { [key: string]: any } {
2516
+ return {
2517
+ inputTokens: 'number',
2518
+ outputTokens: 'number',
2519
+ totalTokens: 'number',
2520
+ };
2521
+ }
2522
+
2523
+ validate() {
2524
+ super.validate();
2525
+ }
2526
+
2527
+ constructor(map?: { [key: string]: any }) {
2528
+ super(map);
2529
+ }
2530
+ }
2531
+
2532
+ export class RunNetworkContentAuditResponseBodyPayload extends $dara.Model {
2533
+ output?: RunNetworkContentAuditResponseBodyPayloadOutput;
2534
+ usage?: RunNetworkContentAuditResponseBodyPayloadUsage;
2535
+ static names(): { [key: string]: string } {
2536
+ return {
2537
+ output: 'output',
2538
+ usage: 'usage',
2539
+ };
2540
+ }
2541
+
2542
+ static types(): { [key: string]: any } {
2543
+ return {
2544
+ output: RunNetworkContentAuditResponseBodyPayloadOutput,
2545
+ usage: RunNetworkContentAuditResponseBodyPayloadUsage,
2546
+ };
2547
+ }
2548
+
2549
+ validate() {
2550
+ if(this.output && typeof (this.output as any).validate === 'function') {
2551
+ (this.output as any).validate();
2552
+ }
2553
+ if(this.usage && typeof (this.usage as any).validate === 'function') {
2554
+ (this.usage as any).validate();
2555
+ }
2556
+ super.validate();
2557
+ }
2558
+
2559
+ constructor(map?: { [key: string]: any }) {
2560
+ super(map);
2561
+ }
2562
+ }
2563
+
2368
2564
  export class RunScriptChatResponseBodyHeader extends $dara.Model {
2369
2565
  /**
2370
2566
  * @example
@@ -5872,32 +6068,69 @@ export class RunMarketingInformationWritingResponse extends $dara.Model {
5872
6068
  }
5873
6069
  }
5874
6070
 
5875
- export class RunScriptChatRequest extends $dara.Model {
6071
+ export class RunNetworkContentAuditRequest extends $dara.Model {
6072
+ /**
6073
+ * @example
6074
+ * clueMining
6075
+ */
6076
+ businessType?: string;
5876
6077
  /**
5877
6078
  * @remarks
5878
6079
  * This parameter is required.
6080
+ *
6081
+ * @example
6082
+ * 待分析文本
5879
6083
  */
5880
- prompt?: string;
6084
+ content?: string;
5881
6085
  /**
5882
6086
  * @example
5883
- * a3d1c2ac-f086-4a21-9069-f5631542f5a2
6087
+ * 额外信息
5884
6088
  */
5885
- taskId?: string;
6089
+ extraInfo?: string;
6090
+ /**
6091
+ * @example
6092
+ * qwen-max
6093
+ */
6094
+ modelId?: string;
6095
+ /**
6096
+ * @example
6097
+ * 请返回如下JSON格式,{"key1":"","key2":""}
6098
+ */
6099
+ outputFormat?: string;
6100
+ tags?: RunNetworkContentAuditRequestTags[];
6101
+ /**
6102
+ * @example
6103
+ * 给你一条待分析文本数据,请你按照标签体系来对数据进行打标。
6104
+ */
6105
+ taskDescription?: string;
5886
6106
  static names(): { [key: string]: string } {
5887
6107
  return {
5888
- prompt: 'prompt',
5889
- taskId: 'taskId',
6108
+ businessType: 'businessType',
6109
+ content: 'content',
6110
+ extraInfo: 'extraInfo',
6111
+ modelId: 'modelId',
6112
+ outputFormat: 'outputFormat',
6113
+ tags: 'tags',
6114
+ taskDescription: 'taskDescription',
5890
6115
  };
5891
6116
  }
5892
6117
 
5893
6118
  static types(): { [key: string]: any } {
5894
6119
  return {
5895
- prompt: 'string',
5896
- taskId: 'string',
6120
+ businessType: 'string',
6121
+ content: 'string',
6122
+ extraInfo: 'string',
6123
+ modelId: 'string',
6124
+ outputFormat: 'string',
6125
+ tags: { 'type': 'array', 'itemType': RunNetworkContentAuditRequestTags },
6126
+ taskDescription: 'string',
5897
6127
  };
5898
6128
  }
5899
6129
 
5900
6130
  validate() {
6131
+ if(Array.isArray(this.tags)) {
6132
+ $dara.Model.validateArray(this.tags);
6133
+ }
5901
6134
  super.validate();
5902
6135
  }
5903
6136
 
@@ -5906,27 +6139,206 @@ export class RunScriptChatRequest extends $dara.Model {
5906
6139
  }
5907
6140
  }
5908
6141
 
5909
- export class RunScriptChatResponseBody extends $dara.Model {
6142
+ export class RunNetworkContentAuditShrinkRequest extends $dara.Model {
5910
6143
  /**
5911
6144
  * @example
5912
- * true
6145
+ * clueMining
5913
6146
  */
5914
- end?: boolean;
5915
- header?: RunScriptChatResponseBodyHeader;
5916
- payload?: RunScriptChatResponseBodyPayload;
5917
- static names(): { [key: string]: string } {
5918
- return {
5919
- end: 'end',
5920
- header: 'header',
5921
- payload: 'payload',
5922
- };
5923
- }
5924
-
5925
- static types(): { [key: string]: any } {
5926
- return {
5927
- end: 'boolean',
5928
- header: RunScriptChatResponseBodyHeader,
5929
- payload: RunScriptChatResponseBodyPayload,
6147
+ businessType?: string;
6148
+ /**
6149
+ * @remarks
6150
+ * This parameter is required.
6151
+ *
6152
+ * @example
6153
+ * 待分析文本
6154
+ */
6155
+ content?: string;
6156
+ /**
6157
+ * @example
6158
+ * 额外信息
6159
+ */
6160
+ extraInfo?: string;
6161
+ /**
6162
+ * @example
6163
+ * qwen-max
6164
+ */
6165
+ modelId?: string;
6166
+ /**
6167
+ * @example
6168
+ * 请返回如下JSON格式,{"key1":"","key2":""}
6169
+ */
6170
+ outputFormat?: string;
6171
+ tagsShrink?: string;
6172
+ /**
6173
+ * @example
6174
+ * 给你一条待分析文本数据,请你按照标签体系来对数据进行打标。
6175
+ */
6176
+ taskDescription?: string;
6177
+ static names(): { [key: string]: string } {
6178
+ return {
6179
+ businessType: 'businessType',
6180
+ content: 'content',
6181
+ extraInfo: 'extraInfo',
6182
+ modelId: 'modelId',
6183
+ outputFormat: 'outputFormat',
6184
+ tagsShrink: 'tags',
6185
+ taskDescription: 'taskDescription',
6186
+ };
6187
+ }
6188
+
6189
+ static types(): { [key: string]: any } {
6190
+ return {
6191
+ businessType: 'string',
6192
+ content: 'string',
6193
+ extraInfo: 'string',
6194
+ modelId: 'string',
6195
+ outputFormat: 'string',
6196
+ tagsShrink: 'string',
6197
+ taskDescription: 'string',
6198
+ };
6199
+ }
6200
+
6201
+ validate() {
6202
+ super.validate();
6203
+ }
6204
+
6205
+ constructor(map?: { [key: string]: any }) {
6206
+ super(map);
6207
+ }
6208
+ }
6209
+
6210
+ export class RunNetworkContentAuditResponseBody extends $dara.Model {
6211
+ header?: RunNetworkContentAuditResponseBodyHeader;
6212
+ payload?: RunNetworkContentAuditResponseBodyPayload;
6213
+ /**
6214
+ * @remarks
6215
+ * Id of the request
6216
+ *
6217
+ * @example
6218
+ * 5D0E915E-655D-59A8-894F-93873F73AAE5
6219
+ */
6220
+ requestId?: string;
6221
+ static names(): { [key: string]: string } {
6222
+ return {
6223
+ header: 'header',
6224
+ payload: 'payload',
6225
+ requestId: 'requestId',
6226
+ };
6227
+ }
6228
+
6229
+ static types(): { [key: string]: any } {
6230
+ return {
6231
+ header: RunNetworkContentAuditResponseBodyHeader,
6232
+ payload: RunNetworkContentAuditResponseBodyPayload,
6233
+ requestId: 'string',
6234
+ };
6235
+ }
6236
+
6237
+ validate() {
6238
+ if(this.header && typeof (this.header as any).validate === 'function') {
6239
+ (this.header as any).validate();
6240
+ }
6241
+ if(this.payload && typeof (this.payload as any).validate === 'function') {
6242
+ (this.payload as any).validate();
6243
+ }
6244
+ super.validate();
6245
+ }
6246
+
6247
+ constructor(map?: { [key: string]: any }) {
6248
+ super(map);
6249
+ }
6250
+ }
6251
+
6252
+ export class RunNetworkContentAuditResponse extends $dara.Model {
6253
+ headers?: { [key: string]: string };
6254
+ statusCode?: number;
6255
+ body?: RunNetworkContentAuditResponseBody;
6256
+ static names(): { [key: string]: string } {
6257
+ return {
6258
+ headers: 'headers',
6259
+ statusCode: 'statusCode',
6260
+ body: 'body',
6261
+ };
6262
+ }
6263
+
6264
+ static types(): { [key: string]: any } {
6265
+ return {
6266
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
6267
+ statusCode: 'number',
6268
+ body: RunNetworkContentAuditResponseBody,
6269
+ };
6270
+ }
6271
+
6272
+ validate() {
6273
+ if(this.headers) {
6274
+ $dara.Model.validateMap(this.headers);
6275
+ }
6276
+ if(this.body && typeof (this.body as any).validate === 'function') {
6277
+ (this.body as any).validate();
6278
+ }
6279
+ super.validate();
6280
+ }
6281
+
6282
+ constructor(map?: { [key: string]: any }) {
6283
+ super(map);
6284
+ }
6285
+ }
6286
+
6287
+ export class RunScriptChatRequest extends $dara.Model {
6288
+ /**
6289
+ * @remarks
6290
+ * This parameter is required.
6291
+ */
6292
+ prompt?: string;
6293
+ /**
6294
+ * @example
6295
+ * a3d1c2ac-f086-4a21-9069-f5631542f5a2
6296
+ */
6297
+ taskId?: string;
6298
+ static names(): { [key: string]: string } {
6299
+ return {
6300
+ prompt: 'prompt',
6301
+ taskId: 'taskId',
6302
+ };
6303
+ }
6304
+
6305
+ static types(): { [key: string]: any } {
6306
+ return {
6307
+ prompt: 'string',
6308
+ taskId: 'string',
6309
+ };
6310
+ }
6311
+
6312
+ validate() {
6313
+ super.validate();
6314
+ }
6315
+
6316
+ constructor(map?: { [key: string]: any }) {
6317
+ super(map);
6318
+ }
6319
+ }
6320
+
6321
+ export class RunScriptChatResponseBody extends $dara.Model {
6322
+ /**
6323
+ * @example
6324
+ * true
6325
+ */
6326
+ end?: boolean;
6327
+ header?: RunScriptChatResponseBodyHeader;
6328
+ payload?: RunScriptChatResponseBodyPayload;
6329
+ static names(): { [key: string]: string } {
6330
+ return {
6331
+ end: 'end',
6332
+ header: 'header',
6333
+ payload: 'payload',
6334
+ };
6335
+ }
6336
+
6337
+ static types(): { [key: string]: any } {
6338
+ return {
6339
+ end: 'boolean',
6340
+ header: RunScriptChatResponseBodyHeader,
6341
+ payload: RunScriptChatResponseBodyPayload,
5930
6342
  };
5931
6343
  }
5932
6344
 
@@ -6326,27 +6738,19 @@ export class RunScriptRefineResponse extends $dara.Model {
6326
6738
  }
6327
6739
 
6328
6740
  export class RunStyleWritingRequest extends $dara.Model {
6329
- /**
6330
- * @remarks
6331
- * This parameter is required.
6332
- */
6333
6741
  learningSamples?: string[];
6334
- /**
6335
- * @remarks
6336
- * This parameter is required.
6337
- */
6742
+ processStage?: string;
6338
6743
  referenceMaterials?: string[];
6339
6744
  styleFeature?: string;
6340
- /**
6341
- * @remarks
6342
- * This parameter is required.
6343
- */
6745
+ useSearch?: boolean;
6344
6746
  writingTheme?: string;
6345
6747
  static names(): { [key: string]: string } {
6346
6748
  return {
6347
6749
  learningSamples: 'learningSamples',
6750
+ processStage: 'processStage',
6348
6751
  referenceMaterials: 'referenceMaterials',
6349
6752
  styleFeature: 'styleFeature',
6753
+ useSearch: 'useSearch',
6350
6754
  writingTheme: 'writingTheme',
6351
6755
  };
6352
6756
  }
@@ -6354,8 +6758,10 @@ export class RunStyleWritingRequest extends $dara.Model {
6354
6758
  static types(): { [key: string]: any } {
6355
6759
  return {
6356
6760
  learningSamples: { 'type': 'array', 'itemType': 'string' },
6761
+ processStage: 'string',
6357
6762
  referenceMaterials: { 'type': 'array', 'itemType': 'string' },
6358
6763
  styleFeature: 'string',
6764
+ useSearch: 'boolean',
6359
6765
  writingTheme: 'string',
6360
6766
  };
6361
6767
  }
@@ -6376,27 +6782,19 @@ export class RunStyleWritingRequest extends $dara.Model {
6376
6782
  }
6377
6783
 
6378
6784
  export class RunStyleWritingShrinkRequest extends $dara.Model {
6379
- /**
6380
- * @remarks
6381
- * This parameter is required.
6382
- */
6383
6785
  learningSamplesShrink?: string;
6384
- /**
6385
- * @remarks
6386
- * This parameter is required.
6387
- */
6786
+ processStage?: string;
6388
6787
  referenceMaterialsShrink?: string;
6389
6788
  styleFeature?: string;
6390
- /**
6391
- * @remarks
6392
- * This parameter is required.
6393
- */
6789
+ useSearch?: boolean;
6394
6790
  writingTheme?: string;
6395
6791
  static names(): { [key: string]: string } {
6396
6792
  return {
6397
6793
  learningSamplesShrink: 'learningSamples',
6794
+ processStage: 'processStage',
6398
6795
  referenceMaterialsShrink: 'referenceMaterials',
6399
6796
  styleFeature: 'styleFeature',
6797
+ useSearch: 'useSearch',
6400
6798
  writingTheme: 'writingTheme',
6401
6799
  };
6402
6800
  }
@@ -6404,8 +6802,10 @@ export class RunStyleWritingShrinkRequest extends $dara.Model {
6404
6802
  static types(): { [key: string]: any } {
6405
6803
  return {
6406
6804
  learningSamplesShrink: 'string',
6805
+ processStage: 'string',
6407
6806
  referenceMaterialsShrink: 'string',
6408
6807
  styleFeature: 'string',
6808
+ useSearch: 'boolean',
6409
6809
  writingTheme: 'string',
6410
6810
  };
6411
6811
  }
@@ -7423,7 +7823,12 @@ export default class Client extends OpenApi {
7423
7823
  reqBodyType: "formData",
7424
7824
  bodyType: "json",
7425
7825
  });
7426
- return $dara.cast<GenerateBroadcastNewsResponse>(await this.callApi(params, req, runtime), new GenerateBroadcastNewsResponse({}));
7826
+ if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
7827
+ return $dara.cast<GenerateBroadcastNewsResponse>(await this.callApi(params, req, runtime), new GenerateBroadcastNewsResponse({}));
7828
+ } else {
7829
+ return $dara.cast<GenerateBroadcastNewsResponse>(await this.execute(params, req, runtime), new GenerateBroadcastNewsResponse({}));
7830
+ }
7831
+
7427
7832
  }
7428
7833
 
7429
7834
  /**
@@ -7490,7 +7895,12 @@ export default class Client extends OpenApi {
7490
7895
  reqBodyType: "formData",
7491
7896
  bodyType: "json",
7492
7897
  });
7493
- return $dara.cast<GenerateOutputFormatResponse>(await this.callApi(params, req, runtime), new GenerateOutputFormatResponse({}));
7898
+ if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
7899
+ return $dara.cast<GenerateOutputFormatResponse>(await this.callApi(params, req, runtime), new GenerateOutputFormatResponse({}));
7900
+ } else {
7901
+ return $dara.cast<GenerateOutputFormatResponse>(await this.execute(params, req, runtime), new GenerateOutputFormatResponse({}));
7902
+ }
7903
+
7494
7904
  }
7495
7905
 
7496
7906
  /**
@@ -7527,7 +7937,12 @@ export default class Client extends OpenApi {
7527
7937
  reqBodyType: "json",
7528
7938
  bodyType: "json",
7529
7939
  });
7530
- return $dara.cast<GetVideoAnalysisConfigResponse>(await this.callApi(params, req, runtime), new GetVideoAnalysisConfigResponse({}));
7940
+ if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
7941
+ return $dara.cast<GetVideoAnalysisConfigResponse>(await this.callApi(params, req, runtime), new GetVideoAnalysisConfigResponse({}));
7942
+ } else {
7943
+ return $dara.cast<GetVideoAnalysisConfigResponse>(await this.execute(params, req, runtime), new GetVideoAnalysisConfigResponse({}));
7944
+ }
7945
+
7531
7946
  }
7532
7947
 
7533
7948
  /**
@@ -7570,7 +7985,12 @@ export default class Client extends OpenApi {
7570
7985
  reqBodyType: "json",
7571
7986
  bodyType: "json",
7572
7987
  });
7573
- return $dara.cast<GetVideoAnalysisTaskResponse>(await this.callApi(params, req, runtime), new GetVideoAnalysisTaskResponse({}));
7988
+ if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
7989
+ return $dara.cast<GetVideoAnalysisTaskResponse>(await this.callApi(params, req, runtime), new GetVideoAnalysisTaskResponse({}));
7990
+ } else {
7991
+ return $dara.cast<GetVideoAnalysisTaskResponse>(await this.execute(params, req, runtime), new GetVideoAnalysisTaskResponse({}));
7992
+ }
7993
+
7574
7994
  }
7575
7995
 
7576
7996
  /**
@@ -7631,7 +8051,12 @@ export default class Client extends OpenApi {
7631
8051
  reqBodyType: "formData",
7632
8052
  bodyType: "json",
7633
8053
  });
7634
- return $dara.cast<ListHotTopicSummariesResponse>(await this.callApi(params, req, runtime), new ListHotTopicSummariesResponse({}));
8054
+ if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
8055
+ return $dara.cast<ListHotTopicSummariesResponse>(await this.callApi(params, req, runtime), new ListHotTopicSummariesResponse({}));
8056
+ } else {
8057
+ return $dara.cast<ListHotTopicSummariesResponse>(await this.execute(params, req, runtime), new ListHotTopicSummariesResponse({}));
8058
+ }
8059
+
7635
8060
  }
7636
8061
 
7637
8062
  /**
@@ -7738,7 +8163,12 @@ export default class Client extends OpenApi {
7738
8163
  reqBodyType: "formData",
7739
8164
  bodyType: "json",
7740
8165
  });
7741
- return $dara.cast<RunHotTopicChatResponse>(await this.callApi(params, req, runtime), new RunHotTopicChatResponse({}));
8166
+ if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
8167
+ return $dara.cast<RunHotTopicChatResponse>(await this.callApi(params, req, runtime), new RunHotTopicChatResponse({}));
8168
+ } else {
8169
+ return $dara.cast<RunHotTopicChatResponse>(await this.execute(params, req, runtime), new RunHotTopicChatResponse({}));
8170
+ }
8171
+
7742
8172
  }
7743
8173
 
7744
8174
  /**
@@ -7801,7 +8231,12 @@ export default class Client extends OpenApi {
7801
8231
  reqBodyType: "formData",
7802
8232
  bodyType: "json",
7803
8233
  });
7804
- return $dara.cast<RunHotTopicSummaryResponse>(await this.callApi(params, req, runtime), new RunHotTopicSummaryResponse({}));
8234
+ if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
8235
+ return $dara.cast<RunHotTopicSummaryResponse>(await this.callApi(params, req, runtime), new RunHotTopicSummaryResponse({}));
8236
+ } else {
8237
+ return $dara.cast<RunHotTopicSummaryResponse>(await this.execute(params, req, runtime), new RunHotTopicSummaryResponse({}));
8238
+ }
8239
+
7805
8240
  }
7806
8241
 
7807
8242
  /**
@@ -7864,7 +8299,12 @@ export default class Client extends OpenApi {
7864
8299
  reqBodyType: "formData",
7865
8300
  bodyType: "json",
7866
8301
  });
7867
- return $dara.cast<RunMarketingInformationExtractResponse>(await this.callApi(params, req, runtime), new RunMarketingInformationExtractResponse({}));
8302
+ if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
8303
+ return $dara.cast<RunMarketingInformationExtractResponse>(await this.callApi(params, req, runtime), new RunMarketingInformationExtractResponse({}));
8304
+ } else {
8305
+ return $dara.cast<RunMarketingInformationExtractResponse>(await this.execute(params, req, runtime), new RunMarketingInformationExtractResponse({}));
8306
+ }
8307
+
7868
8308
  }
7869
8309
 
7870
8310
  /**
@@ -7933,7 +8373,12 @@ export default class Client extends OpenApi {
7933
8373
  reqBodyType: "formData",
7934
8374
  bodyType: "json",
7935
8375
  });
7936
- return $dara.cast<RunMarketingInformationWritingResponse>(await this.callApi(params, req, runtime), new RunMarketingInformationWritingResponse({}));
8376
+ if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
8377
+ return $dara.cast<RunMarketingInformationWritingResponse>(await this.callApi(params, req, runtime), new RunMarketingInformationWritingResponse({}));
8378
+ } else {
8379
+ return $dara.cast<RunMarketingInformationWritingResponse>(await this.execute(params, req, runtime), new RunMarketingInformationWritingResponse({}));
8380
+ }
8381
+
7937
8382
  }
7938
8383
 
7939
8384
  /**
@@ -7948,6 +8393,86 @@ export default class Client extends OpenApi {
7948
8393
  return await this.runMarketingInformationWritingWithOptions(workspaceId, request, headers, runtime);
7949
8394
  }
7950
8395
 
8396
+ /**
8397
+ * 轻应用-网络内容审核
8398
+ *
8399
+ * @param tmpReq - RunNetworkContentAuditRequest
8400
+ * @param headers - map
8401
+ * @param runtime - runtime options for this request RuntimeOptions
8402
+ * @returns RunNetworkContentAuditResponse
8403
+ */
8404
+ async runNetworkContentAuditWithOptions(workspaceId: string, tmpReq: RunNetworkContentAuditRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<RunNetworkContentAuditResponse> {
8405
+ tmpReq.validate();
8406
+ let request = new RunNetworkContentAuditShrinkRequest({ });
8407
+ OpenApiUtil.convert(tmpReq, request);
8408
+ if (!$dara.isNull(tmpReq.tags)) {
8409
+ request.tagsShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.tags, "tags", "json");
8410
+ }
8411
+
8412
+ let body : {[key: string ]: any} = { };
8413
+ if (!$dara.isNull(request.businessType)) {
8414
+ body["businessType"] = request.businessType;
8415
+ }
8416
+
8417
+ if (!$dara.isNull(request.content)) {
8418
+ body["content"] = request.content;
8419
+ }
8420
+
8421
+ if (!$dara.isNull(request.extraInfo)) {
8422
+ body["extraInfo"] = request.extraInfo;
8423
+ }
8424
+
8425
+ if (!$dara.isNull(request.modelId)) {
8426
+ body["modelId"] = request.modelId;
8427
+ }
8428
+
8429
+ if (!$dara.isNull(request.outputFormat)) {
8430
+ body["outputFormat"] = request.outputFormat;
8431
+ }
8432
+
8433
+ if (!$dara.isNull(request.tagsShrink)) {
8434
+ body["tags"] = request.tagsShrink;
8435
+ }
8436
+
8437
+ if (!$dara.isNull(request.taskDescription)) {
8438
+ body["taskDescription"] = request.taskDescription;
8439
+ }
8440
+
8441
+ let req = new $OpenApiUtil.OpenApiRequest({
8442
+ headers: headers,
8443
+ body: OpenApiUtil.parseToMap(body),
8444
+ });
8445
+ let params = new $OpenApiUtil.Params({
8446
+ action: "RunNetworkContentAudit",
8447
+ version: "2024-08-01",
8448
+ protocol: "HTTPS",
8449
+ pathname: `/${$dara.URL.percentEncode(workspaceId)}/quanmiao/lightapp/runNetworkContentAudit`,
8450
+ method: "POST",
8451
+ authType: "AK",
8452
+ style: "ROA",
8453
+ reqBodyType: "formData",
8454
+ bodyType: "json",
8455
+ });
8456
+ if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
8457
+ return $dara.cast<RunNetworkContentAuditResponse>(await this.callApi(params, req, runtime), new RunNetworkContentAuditResponse({}));
8458
+ } else {
8459
+ return $dara.cast<RunNetworkContentAuditResponse>(await this.execute(params, req, runtime), new RunNetworkContentAuditResponse({}));
8460
+ }
8461
+
8462
+ }
8463
+
8464
+ /**
8465
+ * 轻应用-网络内容审核
8466
+ *
8467
+ * @param request - RunNetworkContentAuditRequest
8468
+ * @returns RunNetworkContentAuditResponse
8469
+ */
8470
+ async runNetworkContentAudit(workspaceId: string, request: RunNetworkContentAuditRequest): Promise<RunNetworkContentAuditResponse> {
8471
+ let runtime = new $dara.RuntimeOptions({ });
8472
+ let headers : {[key: string ]: string} = { };
8473
+ return await this.runNetworkContentAuditWithOptions(workspaceId, request, headers, runtime);
8474
+ }
8475
+
7951
8476
  /**
7952
8477
  * 长剧本创作
7953
8478
  *
@@ -7982,7 +8507,12 @@ export default class Client extends OpenApi {
7982
8507
  reqBodyType: "formData",
7983
8508
  bodyType: "json",
7984
8509
  });
7985
- return $dara.cast<RunScriptChatResponse>(await this.callApi(params, req, runtime), new RunScriptChatResponse({}));
8510
+ if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
8511
+ return $dara.cast<RunScriptChatResponse>(await this.callApi(params, req, runtime), new RunScriptChatResponse({}));
8512
+ } else {
8513
+ return $dara.cast<RunScriptChatResponse>(await this.execute(params, req, runtime), new RunScriptChatResponse({}));
8514
+ }
8515
+
7986
8516
  }
7987
8517
 
7988
8518
  /**
@@ -8035,7 +8565,12 @@ export default class Client extends OpenApi {
8035
8565
  reqBodyType: "formData",
8036
8566
  bodyType: "json",
8037
8567
  });
8038
- return $dara.cast<RunScriptContinueResponse>(await this.callApi(params, req, runtime), new RunScriptContinueResponse({}));
8568
+ if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
8569
+ return $dara.cast<RunScriptContinueResponse>(await this.callApi(params, req, runtime), new RunScriptContinueResponse({}));
8570
+ } else {
8571
+ return $dara.cast<RunScriptContinueResponse>(await this.execute(params, req, runtime), new RunScriptContinueResponse({}));
8572
+ }
8573
+
8039
8574
  }
8040
8575
 
8041
8576
  /**
@@ -8104,7 +8639,12 @@ export default class Client extends OpenApi {
8104
8639
  reqBodyType: "formData",
8105
8640
  bodyType: "json",
8106
8641
  });
8107
- return $dara.cast<RunScriptPlanningResponse>(await this.callApi(params, req, runtime), new RunScriptPlanningResponse({}));
8642
+ if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
8643
+ return $dara.cast<RunScriptPlanningResponse>(await this.callApi(params, req, runtime), new RunScriptPlanningResponse({}));
8644
+ } else {
8645
+ return $dara.cast<RunScriptPlanningResponse>(await this.execute(params, req, runtime), new RunScriptPlanningResponse({}));
8646
+ }
8647
+
8108
8648
  }
8109
8649
 
8110
8650
  /**
@@ -8149,7 +8689,12 @@ export default class Client extends OpenApi {
8149
8689
  reqBodyType: "formData",
8150
8690
  bodyType: "json",
8151
8691
  });
8152
- return $dara.cast<RunScriptRefineResponse>(await this.callApi(params, req, runtime), new RunScriptRefineResponse({}));
8692
+ if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
8693
+ return $dara.cast<RunScriptRefineResponse>(await this.callApi(params, req, runtime), new RunScriptRefineResponse({}));
8694
+ } else {
8695
+ return $dara.cast<RunScriptRefineResponse>(await this.execute(params, req, runtime), new RunScriptRefineResponse({}));
8696
+ }
8697
+
8153
8698
  }
8154
8699
 
8155
8700
  /**
@@ -8189,6 +8734,10 @@ export default class Client extends OpenApi {
8189
8734
  body["learningSamples"] = request.learningSamplesShrink;
8190
8735
  }
8191
8736
 
8737
+ if (!$dara.isNull(request.processStage)) {
8738
+ body["processStage"] = request.processStage;
8739
+ }
8740
+
8192
8741
  if (!$dara.isNull(request.referenceMaterialsShrink)) {
8193
8742
  body["referenceMaterials"] = request.referenceMaterialsShrink;
8194
8743
  }
@@ -8197,6 +8746,10 @@ export default class Client extends OpenApi {
8197
8746
  body["styleFeature"] = request.styleFeature;
8198
8747
  }
8199
8748
 
8749
+ if (!$dara.isNull(request.useSearch)) {
8750
+ body["useSearch"] = request.useSearch;
8751
+ }
8752
+
8200
8753
  if (!$dara.isNull(request.writingTheme)) {
8201
8754
  body["writingTheme"] = request.writingTheme;
8202
8755
  }
@@ -8216,7 +8769,12 @@ export default class Client extends OpenApi {
8216
8769
  reqBodyType: "formData",
8217
8770
  bodyType: "json",
8218
8771
  });
8219
- return $dara.cast<RunStyleWritingResponse>(await this.callApi(params, req, runtime), new RunStyleWritingResponse({}));
8772
+ if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
8773
+ return $dara.cast<RunStyleWritingResponse>(await this.callApi(params, req, runtime), new RunStyleWritingResponse({}));
8774
+ } else {
8775
+ return $dara.cast<RunStyleWritingResponse>(await this.execute(params, req, runtime), new RunStyleWritingResponse({}));
8776
+ }
8777
+
8220
8778
  }
8221
8779
 
8222
8780
  /**
@@ -8291,7 +8849,12 @@ export default class Client extends OpenApi {
8291
8849
  reqBodyType: "formData",
8292
8850
  bodyType: "json",
8293
8851
  });
8294
- return $dara.cast<RunTagMiningAnalysisResponse>(await this.callApi(params, req, runtime), new RunTagMiningAnalysisResponse({}));
8852
+ if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
8853
+ return $dara.cast<RunTagMiningAnalysisResponse>(await this.callApi(params, req, runtime), new RunTagMiningAnalysisResponse({}));
8854
+ } else {
8855
+ return $dara.cast<RunTagMiningAnalysisResponse>(await this.execute(params, req, runtime), new RunTagMiningAnalysisResponse({}));
8856
+ }
8857
+
8295
8858
  }
8296
8859
 
8297
8860
  /**
@@ -8402,7 +8965,12 @@ export default class Client extends OpenApi {
8402
8965
  reqBodyType: "formData",
8403
8966
  bodyType: "json",
8404
8967
  });
8405
- return $dara.cast<RunVideoAnalysisResponse>(await this.callApi(params, req, runtime), new RunVideoAnalysisResponse({}));
8968
+ if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
8969
+ return $dara.cast<RunVideoAnalysisResponse>(await this.callApi(params, req, runtime), new RunVideoAnalysisResponse({}));
8970
+ } else {
8971
+ return $dara.cast<RunVideoAnalysisResponse>(await this.execute(params, req, runtime), new RunVideoAnalysisResponse({}));
8972
+ }
8973
+
8406
8974
  }
8407
8975
 
8408
8976
  /**
@@ -8505,7 +9073,12 @@ export default class Client extends OpenApi {
8505
9073
  reqBodyType: "formData",
8506
9074
  bodyType: "json",
8507
9075
  });
8508
- return $dara.cast<SubmitVideoAnalysisTaskResponse>(await this.callApi(params, req, runtime), new SubmitVideoAnalysisTaskResponse({}));
9076
+ if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
9077
+ return $dara.cast<SubmitVideoAnalysisTaskResponse>(await this.callApi(params, req, runtime), new SubmitVideoAnalysisTaskResponse({}));
9078
+ } else {
9079
+ return $dara.cast<SubmitVideoAnalysisTaskResponse>(await this.execute(params, req, runtime), new SubmitVideoAnalysisTaskResponse({}));
9080
+ }
9081
+
8509
9082
  }
8510
9083
 
8511
9084
  /**
@@ -8550,7 +9123,12 @@ export default class Client extends OpenApi {
8550
9123
  reqBodyType: "formData",
8551
9124
  bodyType: "json",
8552
9125
  });
8553
- return $dara.cast<UpdateVideoAnalysisConfigResponse>(await this.callApi(params, req, runtime), new UpdateVideoAnalysisConfigResponse({}));
9126
+ if ($dara.isNull(this._signatureVersion) || this._signatureVersion != "v4") {
9127
+ return $dara.cast<UpdateVideoAnalysisConfigResponse>(await this.callApi(params, req, runtime), new UpdateVideoAnalysisConfigResponse({}));
9128
+ } else {
9129
+ return $dara.cast<UpdateVideoAnalysisConfigResponse>(await this.execute(params, req, runtime), new UpdateVideoAnalysisConfigResponse({}));
9130
+ }
9131
+
8554
9132
  }
8555
9133
 
8556
9134
  /**