@alicloud/quanmiaolightapp20240801 2.2.0 → 2.3.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
@@ -874,6 +874,7 @@ export class GetVideoAnalysisTaskResponseBodyDataPayloadOutputVideoTitleGenerate
874
874
  }
875
875
 
876
876
  export class GetVideoAnalysisTaskResponseBodyDataPayloadOutput extends $dara.Model {
877
+ resultJsonFileUrl?: string;
877
878
  videoAnalysisResult?: GetVideoAnalysisTaskResponseBodyDataPayloadOutputVideoAnalysisResult;
878
879
  videoCaptionResult?: GetVideoAnalysisTaskResponseBodyDataPayloadOutputVideoCaptionResult;
879
880
  videoGenerateResult?: GetVideoAnalysisTaskResponseBodyDataPayloadOutputVideoGenerateResult;
@@ -881,6 +882,7 @@ export class GetVideoAnalysisTaskResponseBodyDataPayloadOutput extends $dara.Mod
881
882
  videoTitleGenerateResult?: GetVideoAnalysisTaskResponseBodyDataPayloadOutputVideoTitleGenerateResult;
882
883
  static names(): { [key: string]: string } {
883
884
  return {
885
+ resultJsonFileUrl: 'resultJsonFileUrl',
884
886
  videoAnalysisResult: 'videoAnalysisResult',
885
887
  videoCaptionResult: 'videoCaptionResult',
886
888
  videoGenerateResult: 'videoGenerateResult',
@@ -891,6 +893,7 @@ export class GetVideoAnalysisTaskResponseBodyDataPayloadOutput extends $dara.Mod
891
893
 
892
894
  static types(): { [key: string]: any } {
893
895
  return {
896
+ resultJsonFileUrl: 'string',
894
897
  videoAnalysisResult: GetVideoAnalysisTaskResponseBodyDataPayloadOutputVideoAnalysisResult,
895
898
  videoCaptionResult: GetVideoAnalysisTaskResponseBodyDataPayloadOutputVideoCaptionResult,
896
899
  videoGenerateResult: GetVideoAnalysisTaskResponseBodyDataPayloadOutputVideoGenerateResult,
@@ -2362,6 +2365,174 @@ export class RunMarketingInformationWritingResponseBodyPayload extends $dara.Mod
2362
2365
  }
2363
2366
  }
2364
2367
 
2368
+ export class RunScriptChatResponseBodyHeader extends $dara.Model {
2369
+ /**
2370
+ * @example
2371
+ * 403
2372
+ */
2373
+ errorCode?: string;
2374
+ /**
2375
+ * @example
2376
+ * Pop sign mismatch, please check log.
2377
+ */
2378
+ errorMessage?: string;
2379
+ /**
2380
+ * @example
2381
+ * result-generated
2382
+ */
2383
+ event?: string;
2384
+ eventInfo?: string;
2385
+ /**
2386
+ * @example
2387
+ * F8A35034-EDCF-5C50-95A5-1044316F36E3
2388
+ */
2389
+ requestId?: string;
2390
+ /**
2391
+ * @example
2392
+ * 147648697127_914847410985_1730600302167
2393
+ */
2394
+ sessionId?: string;
2395
+ /**
2396
+ * @example
2397
+ * d3be9981-ca2d-4e17-bf31-1c0a628e9f99
2398
+ */
2399
+ taskId?: string;
2400
+ /**
2401
+ * @example
2402
+ * 2150432017236011824686132ecdbc
2403
+ */
2404
+ traceId?: string;
2405
+ static names(): { [key: string]: string } {
2406
+ return {
2407
+ errorCode: 'errorCode',
2408
+ errorMessage: 'errorMessage',
2409
+ event: 'event',
2410
+ eventInfo: 'eventInfo',
2411
+ requestId: 'requestId',
2412
+ sessionId: 'sessionId',
2413
+ taskId: 'taskId',
2414
+ traceId: 'traceId',
2415
+ };
2416
+ }
2417
+
2418
+ static types(): { [key: string]: any } {
2419
+ return {
2420
+ errorCode: 'string',
2421
+ errorMessage: 'string',
2422
+ event: 'string',
2423
+ eventInfo: 'string',
2424
+ requestId: 'string',
2425
+ sessionId: 'string',
2426
+ taskId: 'string',
2427
+ traceId: 'string',
2428
+ };
2429
+ }
2430
+
2431
+ validate() {
2432
+ super.validate();
2433
+ }
2434
+
2435
+ constructor(map?: { [key: string]: any }) {
2436
+ super(map);
2437
+ }
2438
+ }
2439
+
2440
+ export class RunScriptChatResponseBodyPayloadOutput extends $dara.Model {
2441
+ text?: string;
2442
+ static names(): { [key: string]: string } {
2443
+ return {
2444
+ text: 'text',
2445
+ };
2446
+ }
2447
+
2448
+ static types(): { [key: string]: any } {
2449
+ return {
2450
+ text: 'string',
2451
+ };
2452
+ }
2453
+
2454
+ validate() {
2455
+ super.validate();
2456
+ }
2457
+
2458
+ constructor(map?: { [key: string]: any }) {
2459
+ super(map);
2460
+ }
2461
+ }
2462
+
2463
+ export class RunScriptChatResponseBodyPayloadUsage extends $dara.Model {
2464
+ /**
2465
+ * @example
2466
+ * 100
2467
+ */
2468
+ inputTokens?: number;
2469
+ /**
2470
+ * @example
2471
+ * 100
2472
+ */
2473
+ outputTokens?: number;
2474
+ /**
2475
+ * @example
2476
+ * 200
2477
+ */
2478
+ totalTokens?: number;
2479
+ static names(): { [key: string]: string } {
2480
+ return {
2481
+ inputTokens: 'inputTokens',
2482
+ outputTokens: 'outputTokens',
2483
+ totalTokens: 'totalTokens',
2484
+ };
2485
+ }
2486
+
2487
+ static types(): { [key: string]: any } {
2488
+ return {
2489
+ inputTokens: 'number',
2490
+ outputTokens: 'number',
2491
+ totalTokens: 'number',
2492
+ };
2493
+ }
2494
+
2495
+ validate() {
2496
+ super.validate();
2497
+ }
2498
+
2499
+ constructor(map?: { [key: string]: any }) {
2500
+ super(map);
2501
+ }
2502
+ }
2503
+
2504
+ export class RunScriptChatResponseBodyPayload extends $dara.Model {
2505
+ output?: RunScriptChatResponseBodyPayloadOutput;
2506
+ usage?: RunScriptChatResponseBodyPayloadUsage;
2507
+ static names(): { [key: string]: string } {
2508
+ return {
2509
+ output: 'output',
2510
+ usage: 'usage',
2511
+ };
2512
+ }
2513
+
2514
+ static types(): { [key: string]: any } {
2515
+ return {
2516
+ output: RunScriptChatResponseBodyPayloadOutput,
2517
+ usage: RunScriptChatResponseBodyPayloadUsage,
2518
+ };
2519
+ }
2520
+
2521
+ validate() {
2522
+ if(this.output && typeof (this.output as any).validate === 'function') {
2523
+ (this.output as any).validate();
2524
+ }
2525
+ if(this.usage && typeof (this.usage as any).validate === 'function') {
2526
+ (this.usage as any).validate();
2527
+ }
2528
+ super.validate();
2529
+ }
2530
+
2531
+ constructor(map?: { [key: string]: any }) {
2532
+ super(map);
2533
+ }
2534
+ }
2535
+
2365
2536
  export class RunScriptContinueResponseBodyHeader extends $dara.Model {
2366
2537
  /**
2367
2538
  * @example
@@ -2714,6 +2885,196 @@ export class RunScriptPlanningResponseBodyPayload extends $dara.Model {
2714
2885
  }
2715
2886
  }
2716
2887
 
2888
+ export class RunScriptRefineResponseBodyHeader extends $dara.Model {
2889
+ /**
2890
+ * @example
2891
+ * 403
2892
+ */
2893
+ errorCode?: string;
2894
+ /**
2895
+ * @example
2896
+ * Pop sign mismatch, please check log.
2897
+ */
2898
+ errorMessage?: string;
2899
+ /**
2900
+ * @example
2901
+ * result-generated
2902
+ */
2903
+ event?: string;
2904
+ eventInfo?: string;
2905
+ /**
2906
+ * @example
2907
+ * F8A35034-EDCF-5C50-95A5-1044316F36E3
2908
+ */
2909
+ requestId?: string;
2910
+ /**
2911
+ * @example
2912
+ * 17dc8bcd-f34a-46d1-a7a3-0fa3d1ce3824
2913
+ */
2914
+ sessionId?: string;
2915
+ /**
2916
+ * @example
2917
+ * 14356391-6c6c-40d5-b80a-8ecd03b69d72
2918
+ */
2919
+ taskId?: string;
2920
+ /**
2921
+ * @example
2922
+ * 2150432017236011824686132ecdbc
2923
+ */
2924
+ traceId?: string;
2925
+ static names(): { [key: string]: string } {
2926
+ return {
2927
+ errorCode: 'errorCode',
2928
+ errorMessage: 'errorMessage',
2929
+ event: 'event',
2930
+ eventInfo: 'eventInfo',
2931
+ requestId: 'requestId',
2932
+ sessionId: 'sessionId',
2933
+ taskId: 'taskId',
2934
+ traceId: 'traceId',
2935
+ };
2936
+ }
2937
+
2938
+ static types(): { [key: string]: any } {
2939
+ return {
2940
+ errorCode: 'string',
2941
+ errorMessage: 'string',
2942
+ event: 'string',
2943
+ eventInfo: 'string',
2944
+ requestId: 'string',
2945
+ sessionId: 'string',
2946
+ taskId: 'string',
2947
+ traceId: 'string',
2948
+ };
2949
+ }
2950
+
2951
+ validate() {
2952
+ super.validate();
2953
+ }
2954
+
2955
+ constructor(map?: { [key: string]: any }) {
2956
+ super(map);
2957
+ }
2958
+ }
2959
+
2960
+ export class RunScriptRefineResponseBodyPayloadOutput extends $dara.Model {
2961
+ content?: { [key: string]: string }[];
2962
+ outline?: string;
2963
+ role?: string;
2964
+ scene?: string;
2965
+ summary?: string;
2966
+ /**
2967
+ * @example
2968
+ * xx
2969
+ */
2970
+ text?: string;
2971
+ static names(): { [key: string]: string } {
2972
+ return {
2973
+ content: 'content',
2974
+ outline: 'outline',
2975
+ role: 'role',
2976
+ scene: 'scene',
2977
+ summary: 'summary',
2978
+ text: 'text',
2979
+ };
2980
+ }
2981
+
2982
+ static types(): { [key: string]: any } {
2983
+ return {
2984
+ content: { 'type': 'array', 'itemType': { 'type': 'map', 'keyType': 'string', 'valueType': 'string' } },
2985
+ outline: 'string',
2986
+ role: 'string',
2987
+ scene: 'string',
2988
+ summary: 'string',
2989
+ text: 'string',
2990
+ };
2991
+ }
2992
+
2993
+ validate() {
2994
+ if(Array.isArray(this.content)) {
2995
+ $dara.Model.validateArray(this.content);
2996
+ }
2997
+ super.validate();
2998
+ }
2999
+
3000
+ constructor(map?: { [key: string]: any }) {
3001
+ super(map);
3002
+ }
3003
+ }
3004
+
3005
+ export class RunScriptRefineResponseBodyPayloadUsage extends $dara.Model {
3006
+ /**
3007
+ * @example
3008
+ * 100
3009
+ */
3010
+ inputTokens?: number;
3011
+ /**
3012
+ * @example
3013
+ * 100
3014
+ */
3015
+ outputTokens?: number;
3016
+ /**
3017
+ * @example
3018
+ * 200
3019
+ */
3020
+ totalTokens?: number;
3021
+ static names(): { [key: string]: string } {
3022
+ return {
3023
+ inputTokens: 'inputTokens',
3024
+ outputTokens: 'outputTokens',
3025
+ totalTokens: 'totalTokens',
3026
+ };
3027
+ }
3028
+
3029
+ static types(): { [key: string]: any } {
3030
+ return {
3031
+ inputTokens: 'number',
3032
+ outputTokens: 'number',
3033
+ totalTokens: 'number',
3034
+ };
3035
+ }
3036
+
3037
+ validate() {
3038
+ super.validate();
3039
+ }
3040
+
3041
+ constructor(map?: { [key: string]: any }) {
3042
+ super(map);
3043
+ }
3044
+ }
3045
+
3046
+ export class RunScriptRefineResponseBodyPayload extends $dara.Model {
3047
+ output?: RunScriptRefineResponseBodyPayloadOutput;
3048
+ usage?: RunScriptRefineResponseBodyPayloadUsage;
3049
+ static names(): { [key: string]: string } {
3050
+ return {
3051
+ output: 'output',
3052
+ usage: 'usage',
3053
+ };
3054
+ }
3055
+
3056
+ static types(): { [key: string]: any } {
3057
+ return {
3058
+ output: RunScriptRefineResponseBodyPayloadOutput,
3059
+ usage: RunScriptRefineResponseBodyPayloadUsage,
3060
+ };
3061
+ }
3062
+
3063
+ validate() {
3064
+ if(this.output && typeof (this.output as any).validate === 'function') {
3065
+ (this.output as any).validate();
3066
+ }
3067
+ if(this.usage && typeof (this.usage as any).validate === 'function') {
3068
+ (this.usage as any).validate();
3069
+ }
3070
+ super.validate();
3071
+ }
3072
+
3073
+ constructor(map?: { [key: string]: any }) {
3074
+ super(map);
3075
+ }
3076
+ }
3077
+
2717
3078
  export class RunStyleWritingResponseBodyHeader extends $dara.Model {
2718
3079
  /**
2719
3080
  * @example
@@ -3859,6 +4220,11 @@ export class RunVideoAnalysisResponseBodyPayloadOutputVideoTitleGenerateResult e
3859
4220
  }
3860
4221
 
3861
4222
  export class RunVideoAnalysisResponseBodyPayloadOutput extends $dara.Model {
4223
+ /**
4224
+ * @example
4225
+ * http://
4226
+ */
4227
+ resultJsonFileUrl?: string;
3862
4228
  videoAnalysisResult?: RunVideoAnalysisResponseBodyPayloadOutputVideoAnalysisResult;
3863
4229
  videoCaptionResult?: RunVideoAnalysisResponseBodyPayloadOutputVideoCaptionResult;
3864
4230
  videoGenerateResult?: RunVideoAnalysisResponseBodyPayloadOutputVideoGenerateResult;
@@ -3867,6 +4233,7 @@ export class RunVideoAnalysisResponseBodyPayloadOutput extends $dara.Model {
3867
4233
  videoTitleGenerateResult?: RunVideoAnalysisResponseBodyPayloadOutputVideoTitleGenerateResult;
3868
4234
  static names(): { [key: string]: string } {
3869
4235
  return {
4236
+ resultJsonFileUrl: 'resultJsonFileUrl',
3870
4237
  videoAnalysisResult: 'videoAnalysisResult',
3871
4238
  videoCaptionResult: 'videoCaptionResult',
3872
4239
  videoGenerateResult: 'videoGenerateResult',
@@ -3878,6 +4245,7 @@ export class RunVideoAnalysisResponseBodyPayloadOutput extends $dara.Model {
3878
4245
 
3879
4246
  static types(): { [key: string]: any } {
3880
4247
  return {
4248
+ resultJsonFileUrl: 'string',
3881
4249
  videoAnalysisResult: RunVideoAnalysisResponseBodyPayloadOutputVideoAnalysisResult,
3882
4250
  videoCaptionResult: RunVideoAnalysisResponseBodyPayloadOutputVideoCaptionResult,
3883
4251
  videoGenerateResult: RunVideoAnalysisResponseBodyPayloadOutputVideoGenerateResult,
@@ -5262,8 +5630,119 @@ export class RunMarketingInformationExtractRequest extends $dara.Model {
5262
5630
  }
5263
5631
 
5264
5632
  validate() {
5265
- if(Array.isArray(this.sourceMaterials)) {
5266
- $dara.Model.validateArray(this.sourceMaterials);
5633
+ if(Array.isArray(this.sourceMaterials)) {
5634
+ $dara.Model.validateArray(this.sourceMaterials);
5635
+ }
5636
+ super.validate();
5637
+ }
5638
+
5639
+ constructor(map?: { [key: string]: any }) {
5640
+ super(map);
5641
+ }
5642
+ }
5643
+
5644
+ export class RunMarketingInformationExtractShrinkRequest extends $dara.Model {
5645
+ customPrompt?: string;
5646
+ extractType?: string;
5647
+ /**
5648
+ * @example
5649
+ * qwen-max
5650
+ * qwen-plus
5651
+ */
5652
+ modelId?: string;
5653
+ sourceMaterialsShrink?: string;
5654
+ static names(): { [key: string]: string } {
5655
+ return {
5656
+ customPrompt: 'customPrompt',
5657
+ extractType: 'extractType',
5658
+ modelId: 'modelId',
5659
+ sourceMaterialsShrink: 'sourceMaterials',
5660
+ };
5661
+ }
5662
+
5663
+ static types(): { [key: string]: any } {
5664
+ return {
5665
+ customPrompt: 'string',
5666
+ extractType: 'string',
5667
+ modelId: 'string',
5668
+ sourceMaterialsShrink: 'string',
5669
+ };
5670
+ }
5671
+
5672
+ validate() {
5673
+ super.validate();
5674
+ }
5675
+
5676
+ constructor(map?: { [key: string]: any }) {
5677
+ super(map);
5678
+ }
5679
+ }
5680
+
5681
+ export class RunMarketingInformationExtractResponseBody extends $dara.Model {
5682
+ /**
5683
+ * @example
5684
+ * {\\"TimeZone\\": \\"Asia/Shanghai\\", \\"DateTime\\": \\"2024-03-07T17:00:09+08:00\\"}
5685
+ */
5686
+ end?: boolean;
5687
+ header?: RunMarketingInformationExtractResponseBodyHeader;
5688
+ payload?: RunMarketingInformationExtractResponseBodyPayload;
5689
+ static names(): { [key: string]: string } {
5690
+ return {
5691
+ end: 'end',
5692
+ header: 'header',
5693
+ payload: 'payload',
5694
+ };
5695
+ }
5696
+
5697
+ static types(): { [key: string]: any } {
5698
+ return {
5699
+ end: 'boolean',
5700
+ header: RunMarketingInformationExtractResponseBodyHeader,
5701
+ payload: RunMarketingInformationExtractResponseBodyPayload,
5702
+ };
5703
+ }
5704
+
5705
+ validate() {
5706
+ if(this.header && typeof (this.header as any).validate === 'function') {
5707
+ (this.header as any).validate();
5708
+ }
5709
+ if(this.payload && typeof (this.payload as any).validate === 'function') {
5710
+ (this.payload as any).validate();
5711
+ }
5712
+ super.validate();
5713
+ }
5714
+
5715
+ constructor(map?: { [key: string]: any }) {
5716
+ super(map);
5717
+ }
5718
+ }
5719
+
5720
+ export class RunMarketingInformationExtractResponse extends $dara.Model {
5721
+ headers?: { [key: string]: string };
5722
+ statusCode?: number;
5723
+ body?: RunMarketingInformationExtractResponseBody;
5724
+ static names(): { [key: string]: string } {
5725
+ return {
5726
+ headers: 'headers',
5727
+ statusCode: 'statusCode',
5728
+ body: 'body',
5729
+ };
5730
+ }
5731
+
5732
+ static types(): { [key: string]: any } {
5733
+ return {
5734
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
5735
+ statusCode: 'number',
5736
+ body: RunMarketingInformationExtractResponseBody,
5737
+ };
5738
+ }
5739
+
5740
+ validate() {
5741
+ if(this.headers) {
5742
+ $dara.Model.validateMap(this.headers);
5743
+ }
5744
+ if(this.body && typeof (this.body as any).validate === 'function') {
5745
+ (this.body as any).validate();
5267
5746
  }
5268
5747
  super.validate();
5269
5748
  }
@@ -5273,31 +5752,40 @@ export class RunMarketingInformationExtractRequest extends $dara.Model {
5273
5752
  }
5274
5753
  }
5275
5754
 
5276
- export class RunMarketingInformationExtractShrinkRequest extends $dara.Model {
5755
+ export class RunMarketingInformationWritingRequest extends $dara.Model {
5756
+ customLimitation?: string;
5277
5757
  customPrompt?: string;
5278
- extractType?: string;
5758
+ inputExample?: string;
5279
5759
  /**
5280
5760
  * @example
5281
5761
  * qwen-max
5282
5762
  * qwen-plus
5283
5763
  */
5284
5764
  modelId?: string;
5285
- sourceMaterialsShrink?: string;
5765
+ outputExample?: string;
5766
+ sourceMaterial?: string;
5767
+ writingType?: string;
5286
5768
  static names(): { [key: string]: string } {
5287
5769
  return {
5770
+ customLimitation: 'customLimitation',
5288
5771
  customPrompt: 'customPrompt',
5289
- extractType: 'extractType',
5772
+ inputExample: 'inputExample',
5290
5773
  modelId: 'modelId',
5291
- sourceMaterialsShrink: 'sourceMaterials',
5774
+ outputExample: 'outputExample',
5775
+ sourceMaterial: 'sourceMaterial',
5776
+ writingType: 'writingType',
5292
5777
  };
5293
5778
  }
5294
5779
 
5295
5780
  static types(): { [key: string]: any } {
5296
5781
  return {
5782
+ customLimitation: 'string',
5297
5783
  customPrompt: 'string',
5298
- extractType: 'string',
5784
+ inputExample: 'string',
5299
5785
  modelId: 'string',
5300
- sourceMaterialsShrink: 'string',
5786
+ outputExample: 'string',
5787
+ sourceMaterial: 'string',
5788
+ writingType: 'string',
5301
5789
  };
5302
5790
  }
5303
5791
 
@@ -5310,14 +5798,14 @@ export class RunMarketingInformationExtractShrinkRequest extends $dara.Model {
5310
5798
  }
5311
5799
  }
5312
5800
 
5313
- export class RunMarketingInformationExtractResponseBody extends $dara.Model {
5801
+ export class RunMarketingInformationWritingResponseBody extends $dara.Model {
5314
5802
  /**
5315
5803
  * @example
5316
- * {\\"TimeZone\\": \\"Asia/Shanghai\\", \\"DateTime\\": \\"2024-03-07T17:00:09+08:00\\"}
5804
+ * 2024-06-21T10:29:52+08:00
5317
5805
  */
5318
5806
  end?: boolean;
5319
- header?: RunMarketingInformationExtractResponseBodyHeader;
5320
- payload?: RunMarketingInformationExtractResponseBodyPayload;
5807
+ header?: RunMarketingInformationWritingResponseBodyHeader;
5808
+ payload?: RunMarketingInformationWritingResponseBodyPayload;
5321
5809
  static names(): { [key: string]: string } {
5322
5810
  return {
5323
5811
  end: 'end',
@@ -5329,8 +5817,8 @@ export class RunMarketingInformationExtractResponseBody extends $dara.Model {
5329
5817
  static types(): { [key: string]: any } {
5330
5818
  return {
5331
5819
  end: 'boolean',
5332
- header: RunMarketingInformationExtractResponseBodyHeader,
5333
- payload: RunMarketingInformationExtractResponseBodyPayload,
5820
+ header: RunMarketingInformationWritingResponseBodyHeader,
5821
+ payload: RunMarketingInformationWritingResponseBodyPayload,
5334
5822
  };
5335
5823
  }
5336
5824
 
@@ -5349,10 +5837,10 @@ export class RunMarketingInformationExtractResponseBody extends $dara.Model {
5349
5837
  }
5350
5838
  }
5351
5839
 
5352
- export class RunMarketingInformationExtractResponse extends $dara.Model {
5840
+ export class RunMarketingInformationWritingResponse extends $dara.Model {
5353
5841
  headers?: { [key: string]: string };
5354
5842
  statusCode?: number;
5355
- body?: RunMarketingInformationExtractResponseBody;
5843
+ body?: RunMarketingInformationWritingResponseBody;
5356
5844
  static names(): { [key: string]: string } {
5357
5845
  return {
5358
5846
  headers: 'headers',
@@ -5365,7 +5853,7 @@ export class RunMarketingInformationExtractResponse extends $dara.Model {
5365
5853
  return {
5366
5854
  headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
5367
5855
  statusCode: 'number',
5368
- body: RunMarketingInformationExtractResponseBody,
5856
+ body: RunMarketingInformationWritingResponseBody,
5369
5857
  };
5370
5858
  }
5371
5859
 
@@ -5384,40 +5872,28 @@ export class RunMarketingInformationExtractResponse extends $dara.Model {
5384
5872
  }
5385
5873
  }
5386
5874
 
5387
- export class RunMarketingInformationWritingRequest extends $dara.Model {
5388
- customLimitation?: string;
5389
- customPrompt?: string;
5390
- inputExample?: string;
5875
+ export class RunScriptChatRequest extends $dara.Model {
5876
+ /**
5877
+ * @remarks
5878
+ * This parameter is required.
5879
+ */
5880
+ prompt?: string;
5391
5881
  /**
5392
5882
  * @example
5393
- * qwen-max
5394
- * qwen-plus
5883
+ * a3d1c2ac-f086-4a21-9069-f5631542f5a2
5395
5884
  */
5396
- modelId?: string;
5397
- outputExample?: string;
5398
- sourceMaterial?: string;
5399
- writingType?: string;
5885
+ taskId?: string;
5400
5886
  static names(): { [key: string]: string } {
5401
5887
  return {
5402
- customLimitation: 'customLimitation',
5403
- customPrompt: 'customPrompt',
5404
- inputExample: 'inputExample',
5405
- modelId: 'modelId',
5406
- outputExample: 'outputExample',
5407
- sourceMaterial: 'sourceMaterial',
5408
- writingType: 'writingType',
5888
+ prompt: 'prompt',
5889
+ taskId: 'taskId',
5409
5890
  };
5410
5891
  }
5411
5892
 
5412
5893
  static types(): { [key: string]: any } {
5413
5894
  return {
5414
- customLimitation: 'string',
5415
- customPrompt: 'string',
5416
- inputExample: 'string',
5417
- modelId: 'string',
5418
- outputExample: 'string',
5419
- sourceMaterial: 'string',
5420
- writingType: 'string',
5895
+ prompt: 'string',
5896
+ taskId: 'string',
5421
5897
  };
5422
5898
  }
5423
5899
 
@@ -5430,14 +5906,14 @@ export class RunMarketingInformationWritingRequest extends $dara.Model {
5430
5906
  }
5431
5907
  }
5432
5908
 
5433
- export class RunMarketingInformationWritingResponseBody extends $dara.Model {
5909
+ export class RunScriptChatResponseBody extends $dara.Model {
5434
5910
  /**
5435
5911
  * @example
5436
- * 2024-06-21T10:29:52+08:00
5912
+ * true
5437
5913
  */
5438
5914
  end?: boolean;
5439
- header?: RunMarketingInformationWritingResponseBodyHeader;
5440
- payload?: RunMarketingInformationWritingResponseBodyPayload;
5915
+ header?: RunScriptChatResponseBodyHeader;
5916
+ payload?: RunScriptChatResponseBodyPayload;
5441
5917
  static names(): { [key: string]: string } {
5442
5918
  return {
5443
5919
  end: 'end',
@@ -5449,8 +5925,8 @@ export class RunMarketingInformationWritingResponseBody extends $dara.Model {
5449
5925
  static types(): { [key: string]: any } {
5450
5926
  return {
5451
5927
  end: 'boolean',
5452
- header: RunMarketingInformationWritingResponseBodyHeader,
5453
- payload: RunMarketingInformationWritingResponseBodyPayload,
5928
+ header: RunScriptChatResponseBodyHeader,
5929
+ payload: RunScriptChatResponseBodyPayload,
5454
5930
  };
5455
5931
  }
5456
5932
 
@@ -5469,10 +5945,10 @@ export class RunMarketingInformationWritingResponseBody extends $dara.Model {
5469
5945
  }
5470
5946
  }
5471
5947
 
5472
- export class RunMarketingInformationWritingResponse extends $dara.Model {
5948
+ export class RunScriptChatResponse extends $dara.Model {
5473
5949
  headers?: { [key: string]: string };
5474
5950
  statusCode?: number;
5475
- body?: RunMarketingInformationWritingResponseBody;
5951
+ body?: RunScriptChatResponseBody;
5476
5952
  static names(): { [key: string]: string } {
5477
5953
  return {
5478
5954
  headers: 'headers',
@@ -5485,7 +5961,7 @@ export class RunMarketingInformationWritingResponse extends $dara.Model {
5485
5961
  return {
5486
5962
  headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
5487
5963
  statusCode: 'number',
5488
- body: RunMarketingInformationWritingResponseBody,
5964
+ body: RunScriptChatResponseBody,
5489
5965
  };
5490
5966
  }
5491
5967
 
@@ -5752,6 +6228,103 @@ export class RunScriptPlanningResponse extends $dara.Model {
5752
6228
  }
5753
6229
  }
5754
6230
 
6231
+ export class RunScriptRefineRequest extends $dara.Model {
6232
+ /**
6233
+ * @example
6234
+ * a3d1c2ac-f086-4a21-9069-f5631542f5a2
6235
+ */
6236
+ taskId?: string;
6237
+ static names(): { [key: string]: string } {
6238
+ return {
6239
+ taskId: 'taskId',
6240
+ };
6241
+ }
6242
+
6243
+ static types(): { [key: string]: any } {
6244
+ return {
6245
+ taskId: 'string',
6246
+ };
6247
+ }
6248
+
6249
+ validate() {
6250
+ super.validate();
6251
+ }
6252
+
6253
+ constructor(map?: { [key: string]: any }) {
6254
+ super(map);
6255
+ }
6256
+ }
6257
+
6258
+ export class RunScriptRefineResponseBody extends $dara.Model {
6259
+ end?: boolean;
6260
+ header?: RunScriptRefineResponseBodyHeader;
6261
+ payload?: RunScriptRefineResponseBodyPayload;
6262
+ static names(): { [key: string]: string } {
6263
+ return {
6264
+ end: 'end',
6265
+ header: 'header',
6266
+ payload: 'payload',
6267
+ };
6268
+ }
6269
+
6270
+ static types(): { [key: string]: any } {
6271
+ return {
6272
+ end: 'boolean',
6273
+ header: RunScriptRefineResponseBodyHeader,
6274
+ payload: RunScriptRefineResponseBodyPayload,
6275
+ };
6276
+ }
6277
+
6278
+ validate() {
6279
+ if(this.header && typeof (this.header as any).validate === 'function') {
6280
+ (this.header as any).validate();
6281
+ }
6282
+ if(this.payload && typeof (this.payload as any).validate === 'function') {
6283
+ (this.payload as any).validate();
6284
+ }
6285
+ super.validate();
6286
+ }
6287
+
6288
+ constructor(map?: { [key: string]: any }) {
6289
+ super(map);
6290
+ }
6291
+ }
6292
+
6293
+ export class RunScriptRefineResponse extends $dara.Model {
6294
+ headers?: { [key: string]: string };
6295
+ statusCode?: number;
6296
+ body?: RunScriptRefineResponseBody;
6297
+ static names(): { [key: string]: string } {
6298
+ return {
6299
+ headers: 'headers',
6300
+ statusCode: 'statusCode',
6301
+ body: 'body',
6302
+ };
6303
+ }
6304
+
6305
+ static types(): { [key: string]: any } {
6306
+ return {
6307
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
6308
+ statusCode: 'number',
6309
+ body: RunScriptRefineResponseBody,
6310
+ };
6311
+ }
6312
+
6313
+ validate() {
6314
+ if(this.headers) {
6315
+ $dara.Model.validateMap(this.headers);
6316
+ }
6317
+ if(this.body && typeof (this.body as any).validate === 'function') {
6318
+ (this.body as any).validate();
6319
+ }
6320
+ super.validate();
6321
+ }
6322
+
6323
+ constructor(map?: { [key: string]: any }) {
6324
+ super(map);
6325
+ }
6326
+ }
6327
+
5755
6328
  export class RunStyleWritingRequest extends $dara.Model {
5756
6329
  /**
5757
6330
  * @remarks
@@ -7375,6 +7948,55 @@ export default class Client extends OpenApi {
7375
7948
  return await this.runMarketingInformationWritingWithOptions(workspaceId, request, headers, runtime);
7376
7949
  }
7377
7950
 
7951
+ /**
7952
+ * 长剧本创作
7953
+ *
7954
+ * @param request - RunScriptChatRequest
7955
+ * @param headers - map
7956
+ * @param runtime - runtime options for this request RuntimeOptions
7957
+ * @returns RunScriptChatResponse
7958
+ */
7959
+ async runScriptChatWithOptions(workspaceId: string, request: RunScriptChatRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<RunScriptChatResponse> {
7960
+ request.validate();
7961
+ let body : {[key: string ]: any} = { };
7962
+ if (!$dara.isNull(request.prompt)) {
7963
+ body["prompt"] = request.prompt;
7964
+ }
7965
+
7966
+ if (!$dara.isNull(request.taskId)) {
7967
+ body["taskId"] = request.taskId;
7968
+ }
7969
+
7970
+ let req = new $OpenApiUtil.OpenApiRequest({
7971
+ headers: headers,
7972
+ body: OpenApiUtil.parseToMap(body),
7973
+ });
7974
+ let params = new $OpenApiUtil.Params({
7975
+ action: "RunScriptChat",
7976
+ version: "2024-08-01",
7977
+ protocol: "HTTPS",
7978
+ pathname: `/${$dara.URL.percentEncode(workspaceId)}/quanmiao/lightapp/runScriptChat`,
7979
+ method: "POST",
7980
+ authType: "AK",
7981
+ style: "ROA",
7982
+ reqBodyType: "formData",
7983
+ bodyType: "json",
7984
+ });
7985
+ return $dara.cast<RunScriptChatResponse>(await this.callApi(params, req, runtime), new RunScriptChatResponse({}));
7986
+ }
7987
+
7988
+ /**
7989
+ * 长剧本创作
7990
+ *
7991
+ * @param request - RunScriptChatRequest
7992
+ * @returns RunScriptChatResponse
7993
+ */
7994
+ async runScriptChat(workspaceId: string, request: RunScriptChatRequest): Promise<RunScriptChatResponse> {
7995
+ let runtime = new $dara.RuntimeOptions({ });
7996
+ let headers : {[key: string ]: string} = { };
7997
+ return await this.runScriptChatWithOptions(workspaceId, request, headers, runtime);
7998
+ }
7999
+
7378
8000
  /**
7379
8001
  * 剧本续写
7380
8002
  *
@@ -7497,6 +8119,51 @@ export default class Client extends OpenApi {
7497
8119
  return await this.runScriptPlanningWithOptions(workspaceId, request, headers, runtime);
7498
8120
  }
7499
8121
 
8122
+ /**
8123
+ * 剧本对话内容的整理
8124
+ *
8125
+ * @param request - RunScriptRefineRequest
8126
+ * @param headers - map
8127
+ * @param runtime - runtime options for this request RuntimeOptions
8128
+ * @returns RunScriptRefineResponse
8129
+ */
8130
+ async runScriptRefineWithOptions(workspaceId: string, request: RunScriptRefineRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<RunScriptRefineResponse> {
8131
+ request.validate();
8132
+ let body : {[key: string ]: any} = { };
8133
+ if (!$dara.isNull(request.taskId)) {
8134
+ body["taskId"] = request.taskId;
8135
+ }
8136
+
8137
+ let req = new $OpenApiUtil.OpenApiRequest({
8138
+ headers: headers,
8139
+ body: OpenApiUtil.parseToMap(body),
8140
+ });
8141
+ let params = new $OpenApiUtil.Params({
8142
+ action: "RunScriptRefine",
8143
+ version: "2024-08-01",
8144
+ protocol: "HTTPS",
8145
+ pathname: `/${$dara.URL.percentEncode(workspaceId)}/quanmiao/lightapp/runScriptRefine`,
8146
+ method: "POST",
8147
+ authType: "AK",
8148
+ style: "ROA",
8149
+ reqBodyType: "formData",
8150
+ bodyType: "json",
8151
+ });
8152
+ return $dara.cast<RunScriptRefineResponse>(await this.callApi(params, req, runtime), new RunScriptRefineResponse({}));
8153
+ }
8154
+
8155
+ /**
8156
+ * 剧本对话内容的整理
8157
+ *
8158
+ * @param request - RunScriptRefineRequest
8159
+ * @returns RunScriptRefineResponse
8160
+ */
8161
+ async runScriptRefine(workspaceId: string, request: RunScriptRefineRequest): Promise<RunScriptRefineResponse> {
8162
+ let runtime = new $dara.RuntimeOptions({ });
8163
+ let headers : {[key: string ]: string} = { };
8164
+ return await this.runScriptRefineWithOptions(workspaceId, request, headers, runtime);
8165
+ }
8166
+
7500
8167
  /**
7501
8168
  * 文体学习和写作推理服务
7502
8169
  *