@alicloud/aimiaobi20230801 1.0.1 → 1.2.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/dist/client.js CHANGED
@@ -19,6 +19,180 @@ const openapi_client_1 = __importStar(require("@alicloud/openapi-client")), $Ope
19
19
  const openapi_util_1 = __importDefault(require("@alicloud/openapi-util"));
20
20
  const endpoint_util_1 = __importDefault(require("@alicloud/endpoint-util"));
21
21
  const $tea = __importStar(require("@alicloud/tea-typescript"));
22
+ class CancelAsyncTaskRequest extends $tea.Model {
23
+ constructor(map) {
24
+ super(map);
25
+ }
26
+ static names() {
27
+ return {
28
+ agentKey: 'AgentKey',
29
+ taskId: 'TaskId',
30
+ };
31
+ }
32
+ static types() {
33
+ return {
34
+ agentKey: 'string',
35
+ taskId: 'string',
36
+ };
37
+ }
38
+ }
39
+ exports.CancelAsyncTaskRequest = CancelAsyncTaskRequest;
40
+ class CancelAsyncTaskResponseBody extends $tea.Model {
41
+ constructor(map) {
42
+ super(map);
43
+ }
44
+ static names() {
45
+ return {
46
+ code: 'Code',
47
+ data: 'Data',
48
+ httpStatusCode: 'HttpStatusCode',
49
+ message: 'Message',
50
+ requestId: 'RequestId',
51
+ success: 'Success',
52
+ };
53
+ }
54
+ static types() {
55
+ return {
56
+ code: 'string',
57
+ data: 'boolean',
58
+ httpStatusCode: 'number',
59
+ message: 'string',
60
+ requestId: 'string',
61
+ success: 'boolean',
62
+ };
63
+ }
64
+ }
65
+ exports.CancelAsyncTaskResponseBody = CancelAsyncTaskResponseBody;
66
+ class CancelAsyncTaskResponse extends $tea.Model {
67
+ constructor(map) {
68
+ super(map);
69
+ }
70
+ static names() {
71
+ return {
72
+ headers: 'headers',
73
+ statusCode: 'statusCode',
74
+ body: 'body',
75
+ };
76
+ }
77
+ static types() {
78
+ return {
79
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
80
+ statusCode: 'number',
81
+ body: CancelAsyncTaskResponseBody,
82
+ };
83
+ }
84
+ }
85
+ exports.CancelAsyncTaskResponse = CancelAsyncTaskResponse;
86
+ class CreateGeneratedContentRequest extends $tea.Model {
87
+ constructor(map) {
88
+ super(map);
89
+ }
90
+ static names() {
91
+ return {
92
+ agentKey: 'AgentKey',
93
+ content: 'Content',
94
+ contentDomain: 'ContentDomain',
95
+ contentText: 'ContentText',
96
+ keywords: 'Keywords',
97
+ prompt: 'Prompt',
98
+ taskId: 'TaskId',
99
+ title: 'Title',
100
+ uuid: 'Uuid',
101
+ };
102
+ }
103
+ static types() {
104
+ return {
105
+ agentKey: 'string',
106
+ content: 'string',
107
+ contentDomain: 'string',
108
+ contentText: 'string',
109
+ keywords: { 'type': 'array', 'itemType': 'string' },
110
+ prompt: 'string',
111
+ taskId: 'string',
112
+ title: 'string',
113
+ uuid: 'string',
114
+ };
115
+ }
116
+ }
117
+ exports.CreateGeneratedContentRequest = CreateGeneratedContentRequest;
118
+ class CreateGeneratedContentShrinkRequest extends $tea.Model {
119
+ constructor(map) {
120
+ super(map);
121
+ }
122
+ static names() {
123
+ return {
124
+ agentKey: 'AgentKey',
125
+ content: 'Content',
126
+ contentDomain: 'ContentDomain',
127
+ contentText: 'ContentText',
128
+ keywordsShrink: 'Keywords',
129
+ prompt: 'Prompt',
130
+ taskId: 'TaskId',
131
+ title: 'Title',
132
+ uuid: 'Uuid',
133
+ };
134
+ }
135
+ static types() {
136
+ return {
137
+ agentKey: 'string',
138
+ content: 'string',
139
+ contentDomain: 'string',
140
+ contentText: 'string',
141
+ keywordsShrink: 'string',
142
+ prompt: 'string',
143
+ taskId: 'string',
144
+ title: 'string',
145
+ uuid: 'string',
146
+ };
147
+ }
148
+ }
149
+ exports.CreateGeneratedContentShrinkRequest = CreateGeneratedContentShrinkRequest;
150
+ class CreateGeneratedContentResponseBody extends $tea.Model {
151
+ constructor(map) {
152
+ super(map);
153
+ }
154
+ static names() {
155
+ return {
156
+ code: 'Code',
157
+ data: 'Data',
158
+ httpStatusCode: 'HttpStatusCode',
159
+ message: 'Message',
160
+ requestId: 'RequestId',
161
+ success: 'Success',
162
+ };
163
+ }
164
+ static types() {
165
+ return {
166
+ code: 'string',
167
+ data: 'number',
168
+ httpStatusCode: 'number',
169
+ message: 'string',
170
+ requestId: 'string',
171
+ success: 'boolean',
172
+ };
173
+ }
174
+ }
175
+ exports.CreateGeneratedContentResponseBody = CreateGeneratedContentResponseBody;
176
+ class CreateGeneratedContentResponse extends $tea.Model {
177
+ constructor(map) {
178
+ super(map);
179
+ }
180
+ static names() {
181
+ return {
182
+ headers: 'headers',
183
+ statusCode: 'statusCode',
184
+ body: 'body',
185
+ };
186
+ }
187
+ static types() {
188
+ return {
189
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
190
+ statusCode: 'number',
191
+ body: CreateGeneratedContentResponseBody,
192
+ };
193
+ }
194
+ }
195
+ exports.CreateGeneratedContentResponse = CreateGeneratedContentResponse;
22
196
  class CreateTokenRequest extends $tea.Model {
23
197
  constructor(map) {
24
198
  super(map);
@@ -81,65 +255,4139 @@ class CreateTokenResponse extends $tea.Model {
81
255
  }
82
256
  }
83
257
  exports.CreateTokenResponse = CreateTokenResponse;
84
- class CreateTokenResponseBodyData extends $tea.Model {
258
+ class DeleteGeneratedContentRequest extends $tea.Model {
85
259
  constructor(map) {
86
260
  super(map);
87
261
  }
88
262
  static names() {
89
263
  return {
90
- expiredTime: 'ExpiredTime',
91
- token: 'Token',
264
+ agentKey: 'AgentKey',
265
+ id: 'Id',
92
266
  };
93
267
  }
94
268
  static types() {
95
269
  return {
96
- expiredTime: 'number',
97
- token: 'string',
270
+ agentKey: 'string',
271
+ id: 'number',
98
272
  };
99
273
  }
100
274
  }
101
- exports.CreateTokenResponseBodyData = CreateTokenResponseBodyData;
102
- class Client extends openapi_client_1.default {
103
- constructor(config) {
104
- super(config);
105
- this._endpointRule = "";
106
- this.checkConfig(config);
107
- this._endpoint = this.getEndpoint("aimiaobi", this._regionId, this._endpointRule, this._network, this._suffix, this._endpointMap, this._endpoint);
275
+ exports.DeleteGeneratedContentRequest = DeleteGeneratedContentRequest;
276
+ class DeleteGeneratedContentResponseBody extends $tea.Model {
277
+ constructor(map) {
278
+ super(map);
108
279
  }
109
- getEndpoint(productId, regionId, endpointRule, network, suffix, endpointMap, endpoint) {
110
- if (!tea_util_1.default.empty(endpoint)) {
111
- return endpoint;
112
- }
113
- if (!tea_util_1.default.isUnset(endpointMap) && !tea_util_1.default.empty(endpointMap[regionId])) {
114
- return endpointMap[regionId];
115
- }
116
- return endpoint_util_1.default.getEndpointRules(productId, regionId, endpointRule, network, suffix);
280
+ static names() {
281
+ return {
282
+ code: 'Code',
283
+ data: 'Data',
284
+ httpStatusCode: 'HttpStatusCode',
285
+ message: 'Message',
286
+ requestId: 'RequestId',
287
+ success: 'Success',
288
+ };
117
289
  }
118
- async createTokenWithOptions(request, runtime) {
119
- tea_util_1.default.validateModel(request);
120
- let query = {};
121
- if (!tea_util_1.default.isUnset(request.agentKey)) {
122
- query["AgentKey"] = request.agentKey;
123
- }
124
- let req = new $OpenApi.OpenApiRequest({
125
- query: openapi_util_1.default.query(query),
126
- });
127
- let params = new $OpenApi.Params({
128
- action: "CreateToken",
129
- version: "2023-08-01",
130
- protocol: "HTTPS",
131
- pathname: "/",
132
- method: "POST",
133
- authType: "AK",
134
- style: "RPC",
135
- reqBodyType: "formData",
136
- bodyType: "json",
137
- });
138
- return $tea.cast(await this.callApi(params, req, runtime), new CreateTokenResponse({}));
290
+ static types() {
291
+ return {
292
+ code: 'string',
293
+ data: 'boolean',
294
+ httpStatusCode: 'number',
295
+ message: 'string',
296
+ requestId: 'string',
297
+ success: 'boolean',
298
+ };
139
299
  }
140
- async createToken(request) {
141
- let runtime = new $Util.RuntimeOptions({});
142
- return await this.createTokenWithOptions(request, runtime);
300
+ }
301
+ exports.DeleteGeneratedContentResponseBody = DeleteGeneratedContentResponseBody;
302
+ class DeleteGeneratedContentResponse extends $tea.Model {
303
+ constructor(map) {
304
+ super(map);
305
+ }
306
+ static names() {
307
+ return {
308
+ headers: 'headers',
309
+ statusCode: 'statusCode',
310
+ body: 'body',
311
+ };
312
+ }
313
+ static types() {
314
+ return {
315
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
316
+ statusCode: 'number',
317
+ body: DeleteGeneratedContentResponseBody,
318
+ };
319
+ }
320
+ }
321
+ exports.DeleteGeneratedContentResponse = DeleteGeneratedContentResponse;
322
+ class DeleteMaterialByIdRequest extends $tea.Model {
323
+ constructor(map) {
324
+ super(map);
325
+ }
326
+ static names() {
327
+ return {
328
+ agentKey: 'AgentKey',
329
+ id: 'Id',
330
+ };
331
+ }
332
+ static types() {
333
+ return {
334
+ agentKey: 'string',
335
+ id: 'number',
336
+ };
337
+ }
338
+ }
339
+ exports.DeleteMaterialByIdRequest = DeleteMaterialByIdRequest;
340
+ class DeleteMaterialByIdResponseBody extends $tea.Model {
341
+ constructor(map) {
342
+ super(map);
343
+ }
344
+ static names() {
345
+ return {
346
+ code: 'Code',
347
+ data: 'Data',
348
+ httpStatusCode: 'HttpStatusCode',
349
+ message: 'Message',
350
+ requestId: 'RequestId',
351
+ success: 'Success',
352
+ };
353
+ }
354
+ static types() {
355
+ return {
356
+ code: 'string',
357
+ data: 'boolean',
358
+ httpStatusCode: 'number',
359
+ message: 'string',
360
+ requestId: 'string',
361
+ success: 'boolean',
362
+ };
363
+ }
364
+ }
365
+ exports.DeleteMaterialByIdResponseBody = DeleteMaterialByIdResponseBody;
366
+ class DeleteMaterialByIdResponse extends $tea.Model {
367
+ constructor(map) {
368
+ super(map);
369
+ }
370
+ static names() {
371
+ return {
372
+ headers: 'headers',
373
+ statusCode: 'statusCode',
374
+ body: 'body',
375
+ };
376
+ }
377
+ static types() {
378
+ return {
379
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
380
+ statusCode: 'number',
381
+ body: DeleteMaterialByIdResponseBody,
382
+ };
383
+ }
384
+ }
385
+ exports.DeleteMaterialByIdResponse = DeleteMaterialByIdResponse;
386
+ class ExportGeneratedContentRequest extends $tea.Model {
387
+ constructor(map) {
388
+ super(map);
389
+ }
390
+ static names() {
391
+ return {
392
+ agentKey: 'AgentKey',
393
+ id: 'Id',
394
+ };
395
+ }
396
+ static types() {
397
+ return {
398
+ agentKey: 'string',
399
+ id: 'number',
400
+ };
401
+ }
402
+ }
403
+ exports.ExportGeneratedContentRequest = ExportGeneratedContentRequest;
404
+ class ExportGeneratedContentResponseBody extends $tea.Model {
405
+ constructor(map) {
406
+ super(map);
407
+ }
408
+ static names() {
409
+ return {
410
+ code: 'Code',
411
+ data: 'Data',
412
+ httpStatusCode: 'HttpStatusCode',
413
+ message: 'Message',
414
+ requestId: 'RequestId',
415
+ success: 'Success',
416
+ };
417
+ }
418
+ static types() {
419
+ return {
420
+ code: 'string',
421
+ data: 'string',
422
+ httpStatusCode: 'number',
423
+ message: 'string',
424
+ requestId: 'string',
425
+ success: 'boolean',
426
+ };
427
+ }
428
+ }
429
+ exports.ExportGeneratedContentResponseBody = ExportGeneratedContentResponseBody;
430
+ class ExportGeneratedContentResponse extends $tea.Model {
431
+ constructor(map) {
432
+ super(map);
433
+ }
434
+ static names() {
435
+ return {
436
+ headers: 'headers',
437
+ statusCode: 'statusCode',
438
+ body: 'body',
439
+ };
440
+ }
441
+ static types() {
442
+ return {
443
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
444
+ statusCode: 'number',
445
+ body: ExportGeneratedContentResponseBody,
446
+ };
447
+ }
448
+ }
449
+ exports.ExportGeneratedContentResponse = ExportGeneratedContentResponse;
450
+ class FeedbackDialogueRequest extends $tea.Model {
451
+ constructor(map) {
452
+ super(map);
453
+ }
454
+ static names() {
455
+ return {
456
+ agentKey: 'AgentKey',
457
+ customerResponse: 'CustomerResponse',
458
+ goodText: 'GoodText',
459
+ modifiedResponse: 'ModifiedResponse',
460
+ rating: 'Rating',
461
+ ratingTags: 'RatingTags',
462
+ sessionId: 'SessionId',
463
+ taskId: 'TaskId',
464
+ };
465
+ }
466
+ static types() {
467
+ return {
468
+ agentKey: 'string',
469
+ customerResponse: 'string',
470
+ goodText: 'string',
471
+ modifiedResponse: 'string',
472
+ rating: 'string',
473
+ ratingTags: { 'type': 'array', 'itemType': 'string' },
474
+ sessionId: 'string',
475
+ taskId: 'string',
476
+ };
477
+ }
478
+ }
479
+ exports.FeedbackDialogueRequest = FeedbackDialogueRequest;
480
+ class FeedbackDialogueShrinkRequest extends $tea.Model {
481
+ constructor(map) {
482
+ super(map);
483
+ }
484
+ static names() {
485
+ return {
486
+ agentKey: 'AgentKey',
487
+ customerResponse: 'CustomerResponse',
488
+ goodText: 'GoodText',
489
+ modifiedResponse: 'ModifiedResponse',
490
+ rating: 'Rating',
491
+ ratingTagsShrink: 'RatingTags',
492
+ sessionId: 'SessionId',
493
+ taskId: 'TaskId',
494
+ };
495
+ }
496
+ static types() {
497
+ return {
498
+ agentKey: 'string',
499
+ customerResponse: 'string',
500
+ goodText: 'string',
501
+ modifiedResponse: 'string',
502
+ rating: 'string',
503
+ ratingTagsShrink: 'string',
504
+ sessionId: 'string',
505
+ taskId: 'string',
506
+ };
507
+ }
508
+ }
509
+ exports.FeedbackDialogueShrinkRequest = FeedbackDialogueShrinkRequest;
510
+ class FeedbackDialogueResponseBody extends $tea.Model {
511
+ constructor(map) {
512
+ super(map);
513
+ }
514
+ static names() {
515
+ return {
516
+ code: 'Code',
517
+ httpStatusCode: 'HttpStatusCode',
518
+ message: 'Message',
519
+ requestId: 'RequestId',
520
+ success: 'Success',
521
+ };
522
+ }
523
+ static types() {
524
+ return {
525
+ code: 'string',
526
+ httpStatusCode: 'number',
527
+ message: 'string',
528
+ requestId: 'string',
529
+ success: 'boolean',
530
+ };
531
+ }
532
+ }
533
+ exports.FeedbackDialogueResponseBody = FeedbackDialogueResponseBody;
534
+ class FeedbackDialogueResponse extends $tea.Model {
535
+ constructor(map) {
536
+ super(map);
537
+ }
538
+ static names() {
539
+ return {
540
+ headers: 'headers',
541
+ statusCode: 'statusCode',
542
+ body: 'body',
543
+ };
544
+ }
545
+ static types() {
546
+ return {
547
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
548
+ statusCode: 'number',
549
+ body: FeedbackDialogueResponseBody,
550
+ };
551
+ }
552
+ }
553
+ exports.FeedbackDialogueResponse = FeedbackDialogueResponse;
554
+ class FetchImageTaskRequest extends $tea.Model {
555
+ constructor(map) {
556
+ super(map);
557
+ }
558
+ static names() {
559
+ return {
560
+ agentKey: 'AgentKey',
561
+ articleTaskId: 'ArticleTaskId',
562
+ taskIdList: 'TaskIdList',
563
+ };
564
+ }
565
+ static types() {
566
+ return {
567
+ agentKey: 'string',
568
+ articleTaskId: 'string',
569
+ taskIdList: { 'type': 'array', 'itemType': 'string' },
570
+ };
571
+ }
572
+ }
573
+ exports.FetchImageTaskRequest = FetchImageTaskRequest;
574
+ class FetchImageTaskShrinkRequest extends $tea.Model {
575
+ constructor(map) {
576
+ super(map);
577
+ }
578
+ static names() {
579
+ return {
580
+ agentKey: 'AgentKey',
581
+ articleTaskId: 'ArticleTaskId',
582
+ taskIdListShrink: 'TaskIdList',
583
+ };
584
+ }
585
+ static types() {
586
+ return {
587
+ agentKey: 'string',
588
+ articleTaskId: 'string',
589
+ taskIdListShrink: 'string',
590
+ };
591
+ }
592
+ }
593
+ exports.FetchImageTaskShrinkRequest = FetchImageTaskShrinkRequest;
594
+ class FetchImageTaskResponseBody extends $tea.Model {
595
+ constructor(map) {
596
+ super(map);
597
+ }
598
+ static names() {
599
+ return {
600
+ code: 'Code',
601
+ data: 'Data',
602
+ httpStatusCode: 'HttpStatusCode',
603
+ message: 'Message',
604
+ requestId: 'RequestId',
605
+ success: 'Success',
606
+ };
607
+ }
608
+ static types() {
609
+ return {
610
+ code: 'string',
611
+ data: FetchImageTaskResponseBodyData,
612
+ httpStatusCode: 'number',
613
+ message: 'string',
614
+ requestId: 'string',
615
+ success: 'boolean',
616
+ };
617
+ }
618
+ }
619
+ exports.FetchImageTaskResponseBody = FetchImageTaskResponseBody;
620
+ class FetchImageTaskResponse extends $tea.Model {
621
+ constructor(map) {
622
+ super(map);
623
+ }
624
+ static names() {
625
+ return {
626
+ headers: 'headers',
627
+ statusCode: 'statusCode',
628
+ body: 'body',
629
+ };
630
+ }
631
+ static types() {
632
+ return {
633
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
634
+ statusCode: 'number',
635
+ body: FetchImageTaskResponseBody,
636
+ };
637
+ }
638
+ }
639
+ exports.FetchImageTaskResponse = FetchImageTaskResponse;
640
+ class GenerateImageTaskRequest extends $tea.Model {
641
+ constructor(map) {
642
+ super(map);
643
+ }
644
+ static names() {
645
+ return {
646
+ agentKey: 'AgentKey',
647
+ articleTaskId: 'ArticleTaskId',
648
+ paragraphList: 'ParagraphList',
649
+ size: 'Size',
650
+ style: 'Style',
651
+ };
652
+ }
653
+ static types() {
654
+ return {
655
+ agentKey: 'string',
656
+ articleTaskId: 'string',
657
+ paragraphList: { 'type': 'array', 'itemType': GenerateImageTaskRequestParagraphList },
658
+ size: 'string',
659
+ style: 'string',
660
+ };
661
+ }
662
+ }
663
+ exports.GenerateImageTaskRequest = GenerateImageTaskRequest;
664
+ class GenerateImageTaskShrinkRequest extends $tea.Model {
665
+ constructor(map) {
666
+ super(map);
667
+ }
668
+ static names() {
669
+ return {
670
+ agentKey: 'AgentKey',
671
+ articleTaskId: 'ArticleTaskId',
672
+ paragraphListShrink: 'ParagraphList',
673
+ size: 'Size',
674
+ style: 'Style',
675
+ };
676
+ }
677
+ static types() {
678
+ return {
679
+ agentKey: 'string',
680
+ articleTaskId: 'string',
681
+ paragraphListShrink: 'string',
682
+ size: 'string',
683
+ style: 'string',
684
+ };
685
+ }
686
+ }
687
+ exports.GenerateImageTaskShrinkRequest = GenerateImageTaskShrinkRequest;
688
+ class GenerateImageTaskResponseBody extends $tea.Model {
689
+ constructor(map) {
690
+ super(map);
691
+ }
692
+ static names() {
693
+ return {
694
+ code: 'Code',
695
+ data: 'Data',
696
+ httpStatusCode: 'HttpStatusCode',
697
+ message: 'Message',
698
+ requestId: 'RequestId',
699
+ success: 'Success',
700
+ };
701
+ }
702
+ static types() {
703
+ return {
704
+ code: 'string',
705
+ data: GenerateImageTaskResponseBodyData,
706
+ httpStatusCode: 'number',
707
+ message: 'string',
708
+ requestId: 'string',
709
+ success: 'boolean',
710
+ };
711
+ }
712
+ }
713
+ exports.GenerateImageTaskResponseBody = GenerateImageTaskResponseBody;
714
+ class GenerateImageTaskResponse extends $tea.Model {
715
+ constructor(map) {
716
+ super(map);
717
+ }
718
+ static names() {
719
+ return {
720
+ headers: 'headers',
721
+ statusCode: 'statusCode',
722
+ body: 'body',
723
+ };
724
+ }
725
+ static types() {
726
+ return {
727
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
728
+ statusCode: 'number',
729
+ body: GenerateImageTaskResponseBody,
730
+ };
731
+ }
732
+ }
733
+ exports.GenerateImageTaskResponse = GenerateImageTaskResponse;
734
+ class GenerateViewPointRequest extends $tea.Model {
735
+ constructor(map) {
736
+ super(map);
737
+ }
738
+ static names() {
739
+ return {
740
+ agentKey: 'AgentKey',
741
+ referenceData: 'ReferenceData',
742
+ };
743
+ }
744
+ static types() {
745
+ return {
746
+ agentKey: 'string',
747
+ referenceData: GenerateViewPointRequestReferenceData,
748
+ };
749
+ }
750
+ }
751
+ exports.GenerateViewPointRequest = GenerateViewPointRequest;
752
+ class GenerateViewPointShrinkRequest extends $tea.Model {
753
+ constructor(map) {
754
+ super(map);
755
+ }
756
+ static names() {
757
+ return {
758
+ agentKey: 'AgentKey',
759
+ referenceDataShrink: 'ReferenceData',
760
+ };
761
+ }
762
+ static types() {
763
+ return {
764
+ agentKey: 'string',
765
+ referenceDataShrink: 'string',
766
+ };
767
+ }
768
+ }
769
+ exports.GenerateViewPointShrinkRequest = GenerateViewPointShrinkRequest;
770
+ class GenerateViewPointResponseBody extends $tea.Model {
771
+ constructor(map) {
772
+ super(map);
773
+ }
774
+ static names() {
775
+ return {
776
+ code: 'Code',
777
+ data: 'Data',
778
+ httpStatusCode: 'HttpStatusCode',
779
+ message: 'Message',
780
+ requestId: 'RequestId',
781
+ success: 'Success',
782
+ };
783
+ }
784
+ static types() {
785
+ return {
786
+ code: 'string',
787
+ data: { 'type': 'array', 'itemType': GenerateViewPointResponseBodyData },
788
+ httpStatusCode: 'number',
789
+ message: 'string',
790
+ requestId: 'string',
791
+ success: 'boolean',
792
+ };
793
+ }
794
+ }
795
+ exports.GenerateViewPointResponseBody = GenerateViewPointResponseBody;
796
+ class GenerateViewPointResponse extends $tea.Model {
797
+ constructor(map) {
798
+ super(map);
799
+ }
800
+ static names() {
801
+ return {
802
+ headers: 'headers',
803
+ statusCode: 'statusCode',
804
+ body: 'body',
805
+ };
806
+ }
807
+ static types() {
808
+ return {
809
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
810
+ statusCode: 'number',
811
+ body: GenerateViewPointResponseBody,
812
+ };
813
+ }
814
+ }
815
+ exports.GenerateViewPointResponse = GenerateViewPointResponse;
816
+ class GetDataSourceOrderConfigRequest extends $tea.Model {
817
+ constructor(map) {
818
+ super(map);
819
+ }
820
+ static names() {
821
+ return {
822
+ agentKey: 'AgentKey',
823
+ productCode: 'ProductCode',
824
+ };
825
+ }
826
+ static types() {
827
+ return {
828
+ agentKey: 'string',
829
+ productCode: 'string',
830
+ };
831
+ }
832
+ }
833
+ exports.GetDataSourceOrderConfigRequest = GetDataSourceOrderConfigRequest;
834
+ class GetDataSourceOrderConfigResponseBody extends $tea.Model {
835
+ constructor(map) {
836
+ super(map);
837
+ }
838
+ static names() {
839
+ return {
840
+ code: 'Code',
841
+ data: 'Data',
842
+ httpStatusCode: 'HttpStatusCode',
843
+ message: 'Message',
844
+ requestId: 'RequestId',
845
+ success: 'Success',
846
+ };
847
+ }
848
+ static types() {
849
+ return {
850
+ code: 'string',
851
+ data: GetDataSourceOrderConfigResponseBodyData,
852
+ httpStatusCode: 'number',
853
+ message: 'string',
854
+ requestId: 'string',
855
+ success: 'boolean',
856
+ };
857
+ }
858
+ }
859
+ exports.GetDataSourceOrderConfigResponseBody = GetDataSourceOrderConfigResponseBody;
860
+ class GetDataSourceOrderConfigResponse extends $tea.Model {
861
+ constructor(map) {
862
+ super(map);
863
+ }
864
+ static names() {
865
+ return {
866
+ headers: 'headers',
867
+ statusCode: 'statusCode',
868
+ body: 'body',
869
+ };
870
+ }
871
+ static types() {
872
+ return {
873
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
874
+ statusCode: 'number',
875
+ body: GetDataSourceOrderConfigResponseBody,
876
+ };
877
+ }
878
+ }
879
+ exports.GetDataSourceOrderConfigResponse = GetDataSourceOrderConfigResponse;
880
+ class GetGeneratedContentRequest extends $tea.Model {
881
+ constructor(map) {
882
+ super(map);
883
+ }
884
+ static names() {
885
+ return {
886
+ agentKey: 'AgentKey',
887
+ id: 'Id',
888
+ };
889
+ }
890
+ static types() {
891
+ return {
892
+ agentKey: 'string',
893
+ id: 'number',
894
+ };
895
+ }
896
+ }
897
+ exports.GetGeneratedContentRequest = GetGeneratedContentRequest;
898
+ class GetGeneratedContentResponseBody extends $tea.Model {
899
+ constructor(map) {
900
+ super(map);
901
+ }
902
+ static names() {
903
+ return {
904
+ code: 'Code',
905
+ data: 'Data',
906
+ httpStatusCode: 'HttpStatusCode',
907
+ message: 'Message',
908
+ requestId: 'RequestId',
909
+ success: 'Success',
910
+ };
911
+ }
912
+ static types() {
913
+ return {
914
+ code: 'string',
915
+ data: GetGeneratedContentResponseBodyData,
916
+ httpStatusCode: 'number',
917
+ message: 'string',
918
+ requestId: 'string',
919
+ success: 'boolean',
920
+ };
921
+ }
922
+ }
923
+ exports.GetGeneratedContentResponseBody = GetGeneratedContentResponseBody;
924
+ class GetGeneratedContentResponse extends $tea.Model {
925
+ constructor(map) {
926
+ super(map);
927
+ }
928
+ static names() {
929
+ return {
930
+ headers: 'headers',
931
+ statusCode: 'statusCode',
932
+ body: 'body',
933
+ };
934
+ }
935
+ static types() {
936
+ return {
937
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
938
+ statusCode: 'number',
939
+ body: GetGeneratedContentResponseBody,
940
+ };
941
+ }
942
+ }
943
+ exports.GetGeneratedContentResponse = GetGeneratedContentResponse;
944
+ class GetMaterialByIdRequest extends $tea.Model {
945
+ constructor(map) {
946
+ super(map);
947
+ }
948
+ static names() {
949
+ return {
950
+ agentKey: 'AgentKey',
951
+ id: 'Id',
952
+ };
953
+ }
954
+ static types() {
955
+ return {
956
+ agentKey: 'string',
957
+ id: 'number',
958
+ };
959
+ }
960
+ }
961
+ exports.GetMaterialByIdRequest = GetMaterialByIdRequest;
962
+ class GetMaterialByIdResponseBody extends $tea.Model {
963
+ constructor(map) {
964
+ super(map);
965
+ }
966
+ static names() {
967
+ return {
968
+ code: 'Code',
969
+ data: 'Data',
970
+ httpStatusCode: 'HttpStatusCode',
971
+ message: 'Message',
972
+ requestId: 'RequestId',
973
+ success: 'Success',
974
+ };
975
+ }
976
+ static types() {
977
+ return {
978
+ code: 'string',
979
+ data: GetMaterialByIdResponseBodyData,
980
+ httpStatusCode: 'number',
981
+ message: 'string',
982
+ requestId: 'string',
983
+ success: 'boolean',
984
+ };
985
+ }
986
+ }
987
+ exports.GetMaterialByIdResponseBody = GetMaterialByIdResponseBody;
988
+ class GetMaterialByIdResponse extends $tea.Model {
989
+ constructor(map) {
990
+ super(map);
991
+ }
992
+ static names() {
993
+ return {
994
+ headers: 'headers',
995
+ statusCode: 'statusCode',
996
+ body: 'body',
997
+ };
998
+ }
999
+ static types() {
1000
+ return {
1001
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1002
+ statusCode: 'number',
1003
+ body: GetMaterialByIdResponseBody,
1004
+ };
1005
+ }
1006
+ }
1007
+ exports.GetMaterialByIdResponse = GetMaterialByIdResponse;
1008
+ class GetPropertiesRequest extends $tea.Model {
1009
+ constructor(map) {
1010
+ super(map);
1011
+ }
1012
+ static names() {
1013
+ return {
1014
+ agentKey: 'AgentKey',
1015
+ };
1016
+ }
1017
+ static types() {
1018
+ return {
1019
+ agentKey: 'string',
1020
+ };
1021
+ }
1022
+ }
1023
+ exports.GetPropertiesRequest = GetPropertiesRequest;
1024
+ class GetPropertiesResponseBody extends $tea.Model {
1025
+ constructor(map) {
1026
+ super(map);
1027
+ }
1028
+ static names() {
1029
+ return {
1030
+ code: 'Code',
1031
+ data: 'Data',
1032
+ httpStatusCode: 'HttpStatusCode',
1033
+ message: 'Message',
1034
+ requestId: 'RequestId',
1035
+ success: 'Success',
1036
+ };
1037
+ }
1038
+ static types() {
1039
+ return {
1040
+ code: 'string',
1041
+ data: GetPropertiesResponseBodyData,
1042
+ httpStatusCode: 'number',
1043
+ message: 'string',
1044
+ requestId: 'string',
1045
+ success: 'boolean',
1046
+ };
1047
+ }
1048
+ }
1049
+ exports.GetPropertiesResponseBody = GetPropertiesResponseBody;
1050
+ class GetPropertiesResponse extends $tea.Model {
1051
+ constructor(map) {
1052
+ super(map);
1053
+ }
1054
+ static names() {
1055
+ return {
1056
+ headers: 'headers',
1057
+ statusCode: 'statusCode',
1058
+ body: 'body',
1059
+ };
1060
+ }
1061
+ static types() {
1062
+ return {
1063
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1064
+ statusCode: 'number',
1065
+ body: GetPropertiesResponseBody,
1066
+ };
1067
+ }
1068
+ }
1069
+ exports.GetPropertiesResponse = GetPropertiesResponse;
1070
+ class ListAsyncTasksRequest extends $tea.Model {
1071
+ constructor(map) {
1072
+ super(map);
1073
+ }
1074
+ static names() {
1075
+ return {
1076
+ agentKey: 'AgentKey',
1077
+ createTimeEnd: 'CreateTimeEnd',
1078
+ createTimeStart: 'CreateTimeStart',
1079
+ current: 'Current',
1080
+ size: 'Size',
1081
+ taskCode: 'TaskCode',
1082
+ taskName: 'TaskName',
1083
+ taskStatus: 'TaskStatus',
1084
+ taskStatusList: 'TaskStatusList',
1085
+ taskType: 'TaskType',
1086
+ taskTypeList: 'TaskTypeList',
1087
+ };
1088
+ }
1089
+ static types() {
1090
+ return {
1091
+ agentKey: 'string',
1092
+ createTimeEnd: 'string',
1093
+ createTimeStart: 'string',
1094
+ current: 'number',
1095
+ size: 'number',
1096
+ taskCode: 'string',
1097
+ taskName: 'string',
1098
+ taskStatus: 'number',
1099
+ taskStatusList: { 'type': 'array', 'itemType': 'number' },
1100
+ taskType: 'string',
1101
+ taskTypeList: { 'type': 'array', 'itemType': 'string' },
1102
+ };
1103
+ }
1104
+ }
1105
+ exports.ListAsyncTasksRequest = ListAsyncTasksRequest;
1106
+ class ListAsyncTasksShrinkRequest extends $tea.Model {
1107
+ constructor(map) {
1108
+ super(map);
1109
+ }
1110
+ static names() {
1111
+ return {
1112
+ agentKey: 'AgentKey',
1113
+ createTimeEnd: 'CreateTimeEnd',
1114
+ createTimeStart: 'CreateTimeStart',
1115
+ current: 'Current',
1116
+ size: 'Size',
1117
+ taskCode: 'TaskCode',
1118
+ taskName: 'TaskName',
1119
+ taskStatus: 'TaskStatus',
1120
+ taskStatusListShrink: 'TaskStatusList',
1121
+ taskType: 'TaskType',
1122
+ taskTypeListShrink: 'TaskTypeList',
1123
+ };
1124
+ }
1125
+ static types() {
1126
+ return {
1127
+ agentKey: 'string',
1128
+ createTimeEnd: 'string',
1129
+ createTimeStart: 'string',
1130
+ current: 'number',
1131
+ size: 'number',
1132
+ taskCode: 'string',
1133
+ taskName: 'string',
1134
+ taskStatus: 'number',
1135
+ taskStatusListShrink: 'string',
1136
+ taskType: 'string',
1137
+ taskTypeListShrink: 'string',
1138
+ };
1139
+ }
1140
+ }
1141
+ exports.ListAsyncTasksShrinkRequest = ListAsyncTasksShrinkRequest;
1142
+ class ListAsyncTasksResponseBody extends $tea.Model {
1143
+ constructor(map) {
1144
+ super(map);
1145
+ }
1146
+ static names() {
1147
+ return {
1148
+ code: 'Code',
1149
+ current: 'Current',
1150
+ data: 'Data',
1151
+ httpStatusCode: 'HttpStatusCode',
1152
+ message: 'Message',
1153
+ requestId: 'RequestId',
1154
+ size: 'Size',
1155
+ success: 'Success',
1156
+ total: 'Total',
1157
+ };
1158
+ }
1159
+ static types() {
1160
+ return {
1161
+ code: 'string',
1162
+ current: 'number',
1163
+ data: { 'type': 'array', 'itemType': ListAsyncTasksResponseBodyData },
1164
+ httpStatusCode: 'number',
1165
+ message: 'string',
1166
+ requestId: 'string',
1167
+ size: 'number',
1168
+ success: 'boolean',
1169
+ total: 'number',
1170
+ };
1171
+ }
1172
+ }
1173
+ exports.ListAsyncTasksResponseBody = ListAsyncTasksResponseBody;
1174
+ class ListAsyncTasksResponse extends $tea.Model {
1175
+ constructor(map) {
1176
+ super(map);
1177
+ }
1178
+ static names() {
1179
+ return {
1180
+ headers: 'headers',
1181
+ statusCode: 'statusCode',
1182
+ body: 'body',
1183
+ };
1184
+ }
1185
+ static types() {
1186
+ return {
1187
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1188
+ statusCode: 'number',
1189
+ body: ListAsyncTasksResponseBody,
1190
+ };
1191
+ }
1192
+ }
1193
+ exports.ListAsyncTasksResponse = ListAsyncTasksResponse;
1194
+ class ListBuildConfigsRequest extends $tea.Model {
1195
+ constructor(map) {
1196
+ super(map);
1197
+ }
1198
+ static names() {
1199
+ return {
1200
+ agentKey: 'AgentKey',
1201
+ type: 'Type',
1202
+ };
1203
+ }
1204
+ static types() {
1205
+ return {
1206
+ agentKey: 'string',
1207
+ type: 'string',
1208
+ };
1209
+ }
1210
+ }
1211
+ exports.ListBuildConfigsRequest = ListBuildConfigsRequest;
1212
+ class ListBuildConfigsResponseBody extends $tea.Model {
1213
+ constructor(map) {
1214
+ super(map);
1215
+ }
1216
+ static names() {
1217
+ return {
1218
+ code: 'Code',
1219
+ data: 'Data',
1220
+ httpStatusCode: 'HttpStatusCode',
1221
+ message: 'Message',
1222
+ requestId: 'RequestId',
1223
+ success: 'Success',
1224
+ };
1225
+ }
1226
+ static types() {
1227
+ return {
1228
+ code: 'string',
1229
+ data: { 'type': 'array', 'itemType': ListBuildConfigsResponseBodyData },
1230
+ httpStatusCode: 'number',
1231
+ message: 'string',
1232
+ requestId: 'string',
1233
+ success: 'boolean',
1234
+ };
1235
+ }
1236
+ }
1237
+ exports.ListBuildConfigsResponseBody = ListBuildConfigsResponseBody;
1238
+ class ListBuildConfigsResponse extends $tea.Model {
1239
+ constructor(map) {
1240
+ super(map);
1241
+ }
1242
+ static names() {
1243
+ return {
1244
+ headers: 'headers',
1245
+ statusCode: 'statusCode',
1246
+ body: 'body',
1247
+ };
1248
+ }
1249
+ static types() {
1250
+ return {
1251
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1252
+ statusCode: 'number',
1253
+ body: ListBuildConfigsResponseBody,
1254
+ };
1255
+ }
1256
+ }
1257
+ exports.ListBuildConfigsResponse = ListBuildConfigsResponse;
1258
+ class ListDialoguesRequest extends $tea.Model {
1259
+ constructor(map) {
1260
+ super(map);
1261
+ }
1262
+ static names() {
1263
+ return {
1264
+ agentKey: 'AgentKey',
1265
+ current: 'Current',
1266
+ dialogueType: 'DialogueType',
1267
+ endTime: 'EndTime',
1268
+ size: 'Size',
1269
+ startTime: 'StartTime',
1270
+ taskId: 'TaskId',
1271
+ };
1272
+ }
1273
+ static types() {
1274
+ return {
1275
+ agentKey: 'string',
1276
+ current: 'number',
1277
+ dialogueType: 'number',
1278
+ endTime: 'string',
1279
+ size: 'number',
1280
+ startTime: 'string',
1281
+ taskId: 'string',
1282
+ };
1283
+ }
1284
+ }
1285
+ exports.ListDialoguesRequest = ListDialoguesRequest;
1286
+ class ListDialoguesResponseBody extends $tea.Model {
1287
+ constructor(map) {
1288
+ super(map);
1289
+ }
1290
+ static names() {
1291
+ return {
1292
+ code: 'Code',
1293
+ current: 'Current',
1294
+ data: 'Data',
1295
+ httpStatusCode: 'HttpStatusCode',
1296
+ message: 'Message',
1297
+ requestId: 'RequestId',
1298
+ size: 'Size',
1299
+ success: 'Success',
1300
+ total: 'Total',
1301
+ };
1302
+ }
1303
+ static types() {
1304
+ return {
1305
+ code: 'string',
1306
+ current: 'number',
1307
+ data: { 'type': 'array', 'itemType': ListDialoguesResponseBodyData },
1308
+ httpStatusCode: 'number',
1309
+ message: 'string',
1310
+ requestId: 'string',
1311
+ size: 'number',
1312
+ success: 'boolean',
1313
+ total: 'number',
1314
+ };
1315
+ }
1316
+ }
1317
+ exports.ListDialoguesResponseBody = ListDialoguesResponseBody;
1318
+ class ListDialoguesResponse extends $tea.Model {
1319
+ constructor(map) {
1320
+ super(map);
1321
+ }
1322
+ static names() {
1323
+ return {
1324
+ headers: 'headers',
1325
+ statusCode: 'statusCode',
1326
+ body: 'body',
1327
+ };
1328
+ }
1329
+ static types() {
1330
+ return {
1331
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1332
+ statusCode: 'number',
1333
+ body: ListDialoguesResponseBody,
1334
+ };
1335
+ }
1336
+ }
1337
+ exports.ListDialoguesResponse = ListDialoguesResponse;
1338
+ class ListGeneratedContentsRequest extends $tea.Model {
1339
+ constructor(map) {
1340
+ super(map);
1341
+ }
1342
+ static names() {
1343
+ return {
1344
+ agentKey: 'AgentKey',
1345
+ contentDomain: 'ContentDomain',
1346
+ current: 'Current',
1347
+ endTime: 'EndTime',
1348
+ size: 'Size',
1349
+ startTime: 'StartTime',
1350
+ title: 'Title',
1351
+ };
1352
+ }
1353
+ static types() {
1354
+ return {
1355
+ agentKey: 'string',
1356
+ contentDomain: 'string',
1357
+ current: 'number',
1358
+ endTime: 'string',
1359
+ size: 'number',
1360
+ startTime: 'string',
1361
+ title: 'string',
1362
+ };
1363
+ }
1364
+ }
1365
+ exports.ListGeneratedContentsRequest = ListGeneratedContentsRequest;
1366
+ class ListGeneratedContentsResponseBody extends $tea.Model {
1367
+ constructor(map) {
1368
+ super(map);
1369
+ }
1370
+ static names() {
1371
+ return {
1372
+ code: 'Code',
1373
+ current: 'Current',
1374
+ data: 'Data',
1375
+ httpStatusCode: 'HttpStatusCode',
1376
+ message: 'Message',
1377
+ requestId: 'RequestId',
1378
+ size: 'Size',
1379
+ success: 'Success',
1380
+ total: 'Total',
1381
+ };
1382
+ }
1383
+ static types() {
1384
+ return {
1385
+ code: 'string',
1386
+ current: 'number',
1387
+ data: { 'type': 'array', 'itemType': ListGeneratedContentsResponseBodyData },
1388
+ httpStatusCode: 'number',
1389
+ message: 'string',
1390
+ requestId: 'string',
1391
+ size: 'number',
1392
+ success: 'boolean',
1393
+ total: 'number',
1394
+ };
1395
+ }
1396
+ }
1397
+ exports.ListGeneratedContentsResponseBody = ListGeneratedContentsResponseBody;
1398
+ class ListGeneratedContentsResponse extends $tea.Model {
1399
+ constructor(map) {
1400
+ super(map);
1401
+ }
1402
+ static names() {
1403
+ return {
1404
+ headers: 'headers',
1405
+ statusCode: 'statusCode',
1406
+ body: 'body',
1407
+ };
1408
+ }
1409
+ static types() {
1410
+ return {
1411
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1412
+ statusCode: 'number',
1413
+ body: ListGeneratedContentsResponseBody,
1414
+ };
1415
+ }
1416
+ }
1417
+ exports.ListGeneratedContentsResponse = ListGeneratedContentsResponse;
1418
+ class ListHotNewsWithTypeRequest extends $tea.Model {
1419
+ constructor(map) {
1420
+ super(map);
1421
+ }
1422
+ static names() {
1423
+ return {
1424
+ agentKey: 'AgentKey',
1425
+ current: 'Current',
1426
+ newsType: 'NewsType',
1427
+ newsTypes: 'NewsTypes',
1428
+ size: 'Size',
1429
+ };
1430
+ }
1431
+ static types() {
1432
+ return {
1433
+ agentKey: 'string',
1434
+ current: 'number',
1435
+ newsType: 'string',
1436
+ newsTypes: { 'type': 'array', 'itemType': 'string' },
1437
+ size: 'number',
1438
+ };
1439
+ }
1440
+ }
1441
+ exports.ListHotNewsWithTypeRequest = ListHotNewsWithTypeRequest;
1442
+ class ListHotNewsWithTypeShrinkRequest extends $tea.Model {
1443
+ constructor(map) {
1444
+ super(map);
1445
+ }
1446
+ static names() {
1447
+ return {
1448
+ agentKey: 'AgentKey',
1449
+ current: 'Current',
1450
+ newsType: 'NewsType',
1451
+ newsTypesShrink: 'NewsTypes',
1452
+ size: 'Size',
1453
+ };
1454
+ }
1455
+ static types() {
1456
+ return {
1457
+ agentKey: 'string',
1458
+ current: 'number',
1459
+ newsType: 'string',
1460
+ newsTypesShrink: 'string',
1461
+ size: 'number',
1462
+ };
1463
+ }
1464
+ }
1465
+ exports.ListHotNewsWithTypeShrinkRequest = ListHotNewsWithTypeShrinkRequest;
1466
+ class ListHotNewsWithTypeResponseBody extends $tea.Model {
1467
+ constructor(map) {
1468
+ super(map);
1469
+ }
1470
+ static names() {
1471
+ return {
1472
+ code: 'Code',
1473
+ data: 'Data',
1474
+ httpStatusCode: 'HttpStatusCode',
1475
+ message: 'Message',
1476
+ requestId: 'RequestId',
1477
+ success: 'Success',
1478
+ };
1479
+ }
1480
+ static types() {
1481
+ return {
1482
+ code: 'string',
1483
+ data: { 'type': 'array', 'itemType': ListHotNewsWithTypeResponseBodyData },
1484
+ httpStatusCode: 'number',
1485
+ message: 'string',
1486
+ requestId: 'string',
1487
+ success: 'boolean',
1488
+ };
1489
+ }
1490
+ }
1491
+ exports.ListHotNewsWithTypeResponseBody = ListHotNewsWithTypeResponseBody;
1492
+ class ListHotNewsWithTypeResponse extends $tea.Model {
1493
+ constructor(map) {
1494
+ super(map);
1495
+ }
1496
+ static names() {
1497
+ return {
1498
+ headers: 'headers',
1499
+ statusCode: 'statusCode',
1500
+ body: 'body',
1501
+ };
1502
+ }
1503
+ static types() {
1504
+ return {
1505
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1506
+ statusCode: 'number',
1507
+ body: ListHotNewsWithTypeResponseBody,
1508
+ };
1509
+ }
1510
+ }
1511
+ exports.ListHotNewsWithTypeResponse = ListHotNewsWithTypeResponse;
1512
+ class ListMaterialDocumentsRequest extends $tea.Model {
1513
+ constructor(map) {
1514
+ super(map);
1515
+ }
1516
+ static names() {
1517
+ return {
1518
+ agentKey: 'AgentKey',
1519
+ content: 'Content',
1520
+ createTimeEnd: 'CreateTimeEnd',
1521
+ createTimeStart: 'CreateTimeStart',
1522
+ current: 'Current',
1523
+ docType: 'DocType',
1524
+ docTypeList: 'DocTypeList',
1525
+ generatePublicUrl: 'GeneratePublicUrl',
1526
+ id: 'Id',
1527
+ keywords: 'Keywords',
1528
+ query: 'Query',
1529
+ shareAttr: 'ShareAttr',
1530
+ size: 'Size',
1531
+ title: 'Title',
1532
+ updateTimeEnd: 'UpdateTimeEnd',
1533
+ updateTimeStart: 'UpdateTimeStart',
1534
+ };
1535
+ }
1536
+ static types() {
1537
+ return {
1538
+ agentKey: 'string',
1539
+ content: 'string',
1540
+ createTimeEnd: 'string',
1541
+ createTimeStart: 'string',
1542
+ current: 'number',
1543
+ docType: 'string',
1544
+ docTypeList: { 'type': 'array', 'itemType': 'string' },
1545
+ generatePublicUrl: 'boolean',
1546
+ id: 'number',
1547
+ keywords: { 'type': 'array', 'itemType': 'string' },
1548
+ query: 'string',
1549
+ shareAttr: 'number',
1550
+ size: 'number',
1551
+ title: 'string',
1552
+ updateTimeEnd: 'string',
1553
+ updateTimeStart: 'string',
1554
+ };
1555
+ }
1556
+ }
1557
+ exports.ListMaterialDocumentsRequest = ListMaterialDocumentsRequest;
1558
+ class ListMaterialDocumentsShrinkRequest extends $tea.Model {
1559
+ constructor(map) {
1560
+ super(map);
1561
+ }
1562
+ static names() {
1563
+ return {
1564
+ agentKey: 'AgentKey',
1565
+ content: 'Content',
1566
+ createTimeEnd: 'CreateTimeEnd',
1567
+ createTimeStart: 'CreateTimeStart',
1568
+ current: 'Current',
1569
+ docType: 'DocType',
1570
+ docTypeListShrink: 'DocTypeList',
1571
+ generatePublicUrl: 'GeneratePublicUrl',
1572
+ id: 'Id',
1573
+ keywordsShrink: 'Keywords',
1574
+ query: 'Query',
1575
+ shareAttr: 'ShareAttr',
1576
+ size: 'Size',
1577
+ title: 'Title',
1578
+ updateTimeEnd: 'UpdateTimeEnd',
1579
+ updateTimeStart: 'UpdateTimeStart',
1580
+ };
1581
+ }
1582
+ static types() {
1583
+ return {
1584
+ agentKey: 'string',
1585
+ content: 'string',
1586
+ createTimeEnd: 'string',
1587
+ createTimeStart: 'string',
1588
+ current: 'number',
1589
+ docType: 'string',
1590
+ docTypeListShrink: 'string',
1591
+ generatePublicUrl: 'boolean',
1592
+ id: 'number',
1593
+ keywordsShrink: 'string',
1594
+ query: 'string',
1595
+ shareAttr: 'number',
1596
+ size: 'number',
1597
+ title: 'string',
1598
+ updateTimeEnd: 'string',
1599
+ updateTimeStart: 'string',
1600
+ };
1601
+ }
1602
+ }
1603
+ exports.ListMaterialDocumentsShrinkRequest = ListMaterialDocumentsShrinkRequest;
1604
+ class ListMaterialDocumentsResponseBody extends $tea.Model {
1605
+ constructor(map) {
1606
+ super(map);
1607
+ }
1608
+ static names() {
1609
+ return {
1610
+ code: 'Code',
1611
+ current: 'Current',
1612
+ data: 'Data',
1613
+ httpStatusCode: 'HttpStatusCode',
1614
+ message: 'Message',
1615
+ requestId: 'RequestId',
1616
+ size: 'Size',
1617
+ success: 'Success',
1618
+ total: 'Total',
1619
+ };
1620
+ }
1621
+ static types() {
1622
+ return {
1623
+ code: 'string',
1624
+ current: 'number',
1625
+ data: { 'type': 'array', 'itemType': ListMaterialDocumentsResponseBodyData },
1626
+ httpStatusCode: 'number',
1627
+ message: 'string',
1628
+ requestId: 'string',
1629
+ size: 'number',
1630
+ success: 'boolean',
1631
+ total: 'number',
1632
+ };
1633
+ }
1634
+ }
1635
+ exports.ListMaterialDocumentsResponseBody = ListMaterialDocumentsResponseBody;
1636
+ class ListMaterialDocumentsResponse extends $tea.Model {
1637
+ constructor(map) {
1638
+ super(map);
1639
+ }
1640
+ static names() {
1641
+ return {
1642
+ headers: 'headers',
1643
+ statusCode: 'statusCode',
1644
+ body: 'body',
1645
+ };
1646
+ }
1647
+ static types() {
1648
+ return {
1649
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1650
+ statusCode: 'number',
1651
+ body: ListMaterialDocumentsResponseBody,
1652
+ };
1653
+ }
1654
+ }
1655
+ exports.ListMaterialDocumentsResponse = ListMaterialDocumentsResponse;
1656
+ class ListVersionsRequest extends $tea.Model {
1657
+ constructor(map) {
1658
+ super(map);
1659
+ }
1660
+ static names() {
1661
+ return {
1662
+ agentKey: 'AgentKey',
1663
+ };
1664
+ }
1665
+ static types() {
1666
+ return {
1667
+ agentKey: 'string',
1668
+ };
1669
+ }
1670
+ }
1671
+ exports.ListVersionsRequest = ListVersionsRequest;
1672
+ class ListVersionsResponseBody extends $tea.Model {
1673
+ constructor(map) {
1674
+ super(map);
1675
+ }
1676
+ static names() {
1677
+ return {
1678
+ code: 'Code',
1679
+ data: 'Data',
1680
+ httpStatusCode: 'HttpStatusCode',
1681
+ message: 'Message',
1682
+ requestId: 'RequestId',
1683
+ success: 'Success',
1684
+ };
1685
+ }
1686
+ static types() {
1687
+ return {
1688
+ code: 'string',
1689
+ data: { 'type': 'array', 'itemType': ListVersionsResponseBodyData },
1690
+ httpStatusCode: 'number',
1691
+ message: 'string',
1692
+ requestId: 'string',
1693
+ success: 'boolean',
1694
+ };
1695
+ }
1696
+ }
1697
+ exports.ListVersionsResponseBody = ListVersionsResponseBody;
1698
+ class ListVersionsResponse extends $tea.Model {
1699
+ constructor(map) {
1700
+ super(map);
1701
+ }
1702
+ static names() {
1703
+ return {
1704
+ headers: 'headers',
1705
+ statusCode: 'statusCode',
1706
+ body: 'body',
1707
+ };
1708
+ }
1709
+ static types() {
1710
+ return {
1711
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1712
+ statusCode: 'number',
1713
+ body: ListVersionsResponseBody,
1714
+ };
1715
+ }
1716
+ }
1717
+ exports.ListVersionsResponse = ListVersionsResponse;
1718
+ class QueryAsyncTaskRequest extends $tea.Model {
1719
+ constructor(map) {
1720
+ super(map);
1721
+ }
1722
+ static names() {
1723
+ return {
1724
+ agentKey: 'AgentKey',
1725
+ taskId: 'TaskId',
1726
+ };
1727
+ }
1728
+ static types() {
1729
+ return {
1730
+ agentKey: 'string',
1731
+ taskId: 'string',
1732
+ };
1733
+ }
1734
+ }
1735
+ exports.QueryAsyncTaskRequest = QueryAsyncTaskRequest;
1736
+ class QueryAsyncTaskResponseBody extends $tea.Model {
1737
+ constructor(map) {
1738
+ super(map);
1739
+ }
1740
+ static names() {
1741
+ return {
1742
+ code: 'Code',
1743
+ data: 'Data',
1744
+ httpStatusCode: 'HttpStatusCode',
1745
+ message: 'Message',
1746
+ requestId: 'RequestId',
1747
+ success: 'Success',
1748
+ };
1749
+ }
1750
+ static types() {
1751
+ return {
1752
+ code: 'string',
1753
+ data: QueryAsyncTaskResponseBodyData,
1754
+ httpStatusCode: 'number',
1755
+ message: 'string',
1756
+ requestId: 'string',
1757
+ success: 'boolean',
1758
+ };
1759
+ }
1760
+ }
1761
+ exports.QueryAsyncTaskResponseBody = QueryAsyncTaskResponseBody;
1762
+ class QueryAsyncTaskResponse extends $tea.Model {
1763
+ constructor(map) {
1764
+ super(map);
1765
+ }
1766
+ static names() {
1767
+ return {
1768
+ headers: 'headers',
1769
+ statusCode: 'statusCode',
1770
+ body: 'body',
1771
+ };
1772
+ }
1773
+ static types() {
1774
+ return {
1775
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1776
+ statusCode: 'number',
1777
+ body: QueryAsyncTaskResponseBody,
1778
+ };
1779
+ }
1780
+ }
1781
+ exports.QueryAsyncTaskResponse = QueryAsyncTaskResponse;
1782
+ class SaveDataSourceOrderConfigRequest extends $tea.Model {
1783
+ constructor(map) {
1784
+ super(map);
1785
+ }
1786
+ static names() {
1787
+ return {
1788
+ agentKey: 'AgentKey',
1789
+ productCode: 'ProductCode',
1790
+ userConfigDataSourceList: 'UserConfigDataSourceList',
1791
+ };
1792
+ }
1793
+ static types() {
1794
+ return {
1795
+ agentKey: 'string',
1796
+ productCode: 'string',
1797
+ userConfigDataSourceList: { 'type': 'array', 'itemType': SaveDataSourceOrderConfigRequestUserConfigDataSourceList },
1798
+ };
1799
+ }
1800
+ }
1801
+ exports.SaveDataSourceOrderConfigRequest = SaveDataSourceOrderConfigRequest;
1802
+ class SaveDataSourceOrderConfigShrinkRequest extends $tea.Model {
1803
+ constructor(map) {
1804
+ super(map);
1805
+ }
1806
+ static names() {
1807
+ return {
1808
+ agentKey: 'AgentKey',
1809
+ productCode: 'ProductCode',
1810
+ userConfigDataSourceListShrink: 'UserConfigDataSourceList',
1811
+ };
1812
+ }
1813
+ static types() {
1814
+ return {
1815
+ agentKey: 'string',
1816
+ productCode: 'string',
1817
+ userConfigDataSourceListShrink: 'string',
1818
+ };
1819
+ }
1820
+ }
1821
+ exports.SaveDataSourceOrderConfigShrinkRequest = SaveDataSourceOrderConfigShrinkRequest;
1822
+ class SaveDataSourceOrderConfigResponseBody extends $tea.Model {
1823
+ constructor(map) {
1824
+ super(map);
1825
+ }
1826
+ static names() {
1827
+ return {
1828
+ code: 'Code',
1829
+ data: 'Data',
1830
+ httpStatusCode: 'HttpStatusCode',
1831
+ message: 'Message',
1832
+ requestId: 'RequestId',
1833
+ success: 'Success',
1834
+ };
1835
+ }
1836
+ static types() {
1837
+ return {
1838
+ code: 'string',
1839
+ data: 'boolean',
1840
+ httpStatusCode: 'number',
1841
+ message: 'string',
1842
+ requestId: 'string',
1843
+ success: 'boolean',
1844
+ };
1845
+ }
1846
+ }
1847
+ exports.SaveDataSourceOrderConfigResponseBody = SaveDataSourceOrderConfigResponseBody;
1848
+ class SaveDataSourceOrderConfigResponse extends $tea.Model {
1849
+ constructor(map) {
1850
+ super(map);
1851
+ }
1852
+ static names() {
1853
+ return {
1854
+ headers: 'headers',
1855
+ statusCode: 'statusCode',
1856
+ body: 'body',
1857
+ };
1858
+ }
1859
+ static types() {
1860
+ return {
1861
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1862
+ statusCode: 'number',
1863
+ body: SaveDataSourceOrderConfigResponseBody,
1864
+ };
1865
+ }
1866
+ }
1867
+ exports.SaveDataSourceOrderConfigResponse = SaveDataSourceOrderConfigResponse;
1868
+ class SaveMaterialDocumentRequest extends $tea.Model {
1869
+ constructor(map) {
1870
+ super(map);
1871
+ }
1872
+ static names() {
1873
+ return {
1874
+ agentKey: 'AgentKey',
1875
+ author: 'Author',
1876
+ bothSavePrivateAndShare: 'BothSavePrivateAndShare',
1877
+ docKeywords: 'DocKeywords',
1878
+ docType: 'DocType',
1879
+ externalUrl: 'ExternalUrl',
1880
+ htmlContent: 'HtmlContent',
1881
+ pubTime: 'PubTime',
1882
+ shareAttr: 'ShareAttr',
1883
+ srcFrom: 'SrcFrom',
1884
+ summary: 'Summary',
1885
+ textContent: 'TextContent',
1886
+ title: 'Title',
1887
+ url: 'Url',
1888
+ };
1889
+ }
1890
+ static types() {
1891
+ return {
1892
+ agentKey: 'string',
1893
+ author: 'string',
1894
+ bothSavePrivateAndShare: 'boolean',
1895
+ docKeywords: { 'type': 'array', 'itemType': 'string' },
1896
+ docType: 'string',
1897
+ externalUrl: 'string',
1898
+ htmlContent: 'string',
1899
+ pubTime: 'string',
1900
+ shareAttr: 'number',
1901
+ srcFrom: 'string',
1902
+ summary: 'string',
1903
+ textContent: 'string',
1904
+ title: 'string',
1905
+ url: 'string',
1906
+ };
1907
+ }
1908
+ }
1909
+ exports.SaveMaterialDocumentRequest = SaveMaterialDocumentRequest;
1910
+ class SaveMaterialDocumentShrinkRequest extends $tea.Model {
1911
+ constructor(map) {
1912
+ super(map);
1913
+ }
1914
+ static names() {
1915
+ return {
1916
+ agentKey: 'AgentKey',
1917
+ author: 'Author',
1918
+ bothSavePrivateAndShare: 'BothSavePrivateAndShare',
1919
+ docKeywordsShrink: 'DocKeywords',
1920
+ docType: 'DocType',
1921
+ externalUrl: 'ExternalUrl',
1922
+ htmlContent: 'HtmlContent',
1923
+ pubTime: 'PubTime',
1924
+ shareAttr: 'ShareAttr',
1925
+ srcFrom: 'SrcFrom',
1926
+ summary: 'Summary',
1927
+ textContent: 'TextContent',
1928
+ title: 'Title',
1929
+ url: 'Url',
1930
+ };
1931
+ }
1932
+ static types() {
1933
+ return {
1934
+ agentKey: 'string',
1935
+ author: 'string',
1936
+ bothSavePrivateAndShare: 'boolean',
1937
+ docKeywordsShrink: 'string',
1938
+ docType: 'string',
1939
+ externalUrl: 'string',
1940
+ htmlContent: 'string',
1941
+ pubTime: 'string',
1942
+ shareAttr: 'number',
1943
+ srcFrom: 'string',
1944
+ summary: 'string',
1945
+ textContent: 'string',
1946
+ title: 'string',
1947
+ url: 'string',
1948
+ };
1949
+ }
1950
+ }
1951
+ exports.SaveMaterialDocumentShrinkRequest = SaveMaterialDocumentShrinkRequest;
1952
+ class SaveMaterialDocumentResponseBody extends $tea.Model {
1953
+ constructor(map) {
1954
+ super(map);
1955
+ }
1956
+ static names() {
1957
+ return {
1958
+ code: 'Code',
1959
+ data: 'Data',
1960
+ httpStatusCode: 'HttpStatusCode',
1961
+ message: 'Message',
1962
+ requestId: 'RequestId',
1963
+ success: 'Success',
1964
+ };
1965
+ }
1966
+ static types() {
1967
+ return {
1968
+ code: 'string',
1969
+ data: 'number',
1970
+ httpStatusCode: 'number',
1971
+ message: 'string',
1972
+ requestId: 'string',
1973
+ success: 'boolean',
1974
+ };
1975
+ }
1976
+ }
1977
+ exports.SaveMaterialDocumentResponseBody = SaveMaterialDocumentResponseBody;
1978
+ class SaveMaterialDocumentResponse extends $tea.Model {
1979
+ constructor(map) {
1980
+ super(map);
1981
+ }
1982
+ static names() {
1983
+ return {
1984
+ headers: 'headers',
1985
+ statusCode: 'statusCode',
1986
+ body: 'body',
1987
+ };
1988
+ }
1989
+ static types() {
1990
+ return {
1991
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1992
+ statusCode: 'number',
1993
+ body: SaveMaterialDocumentResponseBody,
1994
+ };
1995
+ }
1996
+ }
1997
+ exports.SaveMaterialDocumentResponse = SaveMaterialDocumentResponse;
1998
+ class SubmitAsyncTaskRequest extends $tea.Model {
1999
+ constructor(map) {
2000
+ super(map);
2001
+ }
2002
+ static names() {
2003
+ return {
2004
+ agentKey: 'AgentKey',
2005
+ taskCode: 'TaskCode',
2006
+ taskExecuteTime: 'TaskExecuteTime',
2007
+ taskName: 'TaskName',
2008
+ taskParam: 'TaskParam',
2009
+ };
2010
+ }
2011
+ static types() {
2012
+ return {
2013
+ agentKey: 'string',
2014
+ taskCode: 'string',
2015
+ taskExecuteTime: 'string',
2016
+ taskName: 'string',
2017
+ taskParam: 'string',
2018
+ };
2019
+ }
2020
+ }
2021
+ exports.SubmitAsyncTaskRequest = SubmitAsyncTaskRequest;
2022
+ class SubmitAsyncTaskResponseBody extends $tea.Model {
2023
+ constructor(map) {
2024
+ super(map);
2025
+ }
2026
+ static names() {
2027
+ return {
2028
+ code: 'Code',
2029
+ data: 'Data',
2030
+ httpStatusCode: 'HttpStatusCode',
2031
+ message: 'Message',
2032
+ requestId: 'RequestId',
2033
+ success: 'Success',
2034
+ };
2035
+ }
2036
+ static types() {
2037
+ return {
2038
+ code: 'string',
2039
+ data: SubmitAsyncTaskResponseBodyData,
2040
+ httpStatusCode: 'number',
2041
+ message: 'string',
2042
+ requestId: 'string',
2043
+ success: 'boolean',
2044
+ };
2045
+ }
2046
+ }
2047
+ exports.SubmitAsyncTaskResponseBody = SubmitAsyncTaskResponseBody;
2048
+ class SubmitAsyncTaskResponse extends $tea.Model {
2049
+ constructor(map) {
2050
+ super(map);
2051
+ }
2052
+ static names() {
2053
+ return {
2054
+ headers: 'headers',
2055
+ statusCode: 'statusCode',
2056
+ body: 'body',
2057
+ };
2058
+ }
2059
+ static types() {
2060
+ return {
2061
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
2062
+ statusCode: 'number',
2063
+ body: SubmitAsyncTaskResponseBody,
2064
+ };
2065
+ }
2066
+ }
2067
+ exports.SubmitAsyncTaskResponse = SubmitAsyncTaskResponse;
2068
+ class UpdateGeneratedContentRequest extends $tea.Model {
2069
+ constructor(map) {
2070
+ super(map);
2071
+ }
2072
+ static names() {
2073
+ return {
2074
+ agentKey: 'AgentKey',
2075
+ content: 'Content',
2076
+ contentText: 'ContentText',
2077
+ id: 'Id',
2078
+ keywords: 'Keywords',
2079
+ prompt: 'Prompt',
2080
+ title: 'Title',
2081
+ };
2082
+ }
2083
+ static types() {
2084
+ return {
2085
+ agentKey: 'string',
2086
+ content: 'string',
2087
+ contentText: 'string',
2088
+ id: 'number',
2089
+ keywords: { 'type': 'array', 'itemType': 'string' },
2090
+ prompt: 'string',
2091
+ title: 'string',
2092
+ };
2093
+ }
2094
+ }
2095
+ exports.UpdateGeneratedContentRequest = UpdateGeneratedContentRequest;
2096
+ class UpdateGeneratedContentShrinkRequest extends $tea.Model {
2097
+ constructor(map) {
2098
+ super(map);
2099
+ }
2100
+ static names() {
2101
+ return {
2102
+ agentKey: 'AgentKey',
2103
+ content: 'Content',
2104
+ contentText: 'ContentText',
2105
+ id: 'Id',
2106
+ keywordsShrink: 'Keywords',
2107
+ prompt: 'Prompt',
2108
+ title: 'Title',
2109
+ };
2110
+ }
2111
+ static types() {
2112
+ return {
2113
+ agentKey: 'string',
2114
+ content: 'string',
2115
+ contentText: 'string',
2116
+ id: 'number',
2117
+ keywordsShrink: 'string',
2118
+ prompt: 'string',
2119
+ title: 'string',
2120
+ };
2121
+ }
2122
+ }
2123
+ exports.UpdateGeneratedContentShrinkRequest = UpdateGeneratedContentShrinkRequest;
2124
+ class UpdateGeneratedContentResponseBody extends $tea.Model {
2125
+ constructor(map) {
2126
+ super(map);
2127
+ }
2128
+ static names() {
2129
+ return {
2130
+ code: 'Code',
2131
+ data: 'Data',
2132
+ httpStatusCode: 'HttpStatusCode',
2133
+ message: 'Message',
2134
+ requestId: 'RequestId',
2135
+ success: 'Success',
2136
+ };
2137
+ }
2138
+ static types() {
2139
+ return {
2140
+ code: 'string',
2141
+ data: 'boolean',
2142
+ httpStatusCode: 'number',
2143
+ message: 'string',
2144
+ requestId: 'string',
2145
+ success: 'boolean',
2146
+ };
2147
+ }
2148
+ }
2149
+ exports.UpdateGeneratedContentResponseBody = UpdateGeneratedContentResponseBody;
2150
+ class UpdateGeneratedContentResponse extends $tea.Model {
2151
+ constructor(map) {
2152
+ super(map);
2153
+ }
2154
+ static names() {
2155
+ return {
2156
+ headers: 'headers',
2157
+ statusCode: 'statusCode',
2158
+ body: 'body',
2159
+ };
2160
+ }
2161
+ static types() {
2162
+ return {
2163
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
2164
+ statusCode: 'number',
2165
+ body: UpdateGeneratedContentResponseBody,
2166
+ };
2167
+ }
2168
+ }
2169
+ exports.UpdateGeneratedContentResponse = UpdateGeneratedContentResponse;
2170
+ class UpdateMaterialDocumentRequest extends $tea.Model {
2171
+ constructor(map) {
2172
+ super(map);
2173
+ }
2174
+ static names() {
2175
+ return {
2176
+ agentKey: 'AgentKey',
2177
+ author: 'Author',
2178
+ docKeywords: 'DocKeywords',
2179
+ docType: 'DocType',
2180
+ externalUrl: 'ExternalUrl',
2181
+ htmlContent: 'HtmlContent',
2182
+ id: 'Id',
2183
+ pubTime: 'PubTime',
2184
+ shareAttr: 'ShareAttr',
2185
+ srcFrom: 'SrcFrom',
2186
+ summary: 'Summary',
2187
+ textContent: 'TextContent',
2188
+ title: 'Title',
2189
+ url: 'Url',
2190
+ };
2191
+ }
2192
+ static types() {
2193
+ return {
2194
+ agentKey: 'string',
2195
+ author: 'string',
2196
+ docKeywords: { 'type': 'array', 'itemType': 'string' },
2197
+ docType: 'string',
2198
+ externalUrl: 'string',
2199
+ htmlContent: 'string',
2200
+ id: 'number',
2201
+ pubTime: 'string',
2202
+ shareAttr: 'number',
2203
+ srcFrom: 'string',
2204
+ summary: 'string',
2205
+ textContent: 'string',
2206
+ title: 'string',
2207
+ url: 'string',
2208
+ };
2209
+ }
2210
+ }
2211
+ exports.UpdateMaterialDocumentRequest = UpdateMaterialDocumentRequest;
2212
+ class UpdateMaterialDocumentShrinkRequest extends $tea.Model {
2213
+ constructor(map) {
2214
+ super(map);
2215
+ }
2216
+ static names() {
2217
+ return {
2218
+ agentKey: 'AgentKey',
2219
+ author: 'Author',
2220
+ docKeywordsShrink: 'DocKeywords',
2221
+ docType: 'DocType',
2222
+ externalUrl: 'ExternalUrl',
2223
+ htmlContent: 'HtmlContent',
2224
+ id: 'Id',
2225
+ pubTime: 'PubTime',
2226
+ shareAttr: 'ShareAttr',
2227
+ srcFrom: 'SrcFrom',
2228
+ summary: 'Summary',
2229
+ textContent: 'TextContent',
2230
+ title: 'Title',
2231
+ url: 'Url',
2232
+ };
2233
+ }
2234
+ static types() {
2235
+ return {
2236
+ agentKey: 'string',
2237
+ author: 'string',
2238
+ docKeywordsShrink: 'string',
2239
+ docType: 'string',
2240
+ externalUrl: 'string',
2241
+ htmlContent: 'string',
2242
+ id: 'number',
2243
+ pubTime: 'string',
2244
+ shareAttr: 'number',
2245
+ srcFrom: 'string',
2246
+ summary: 'string',
2247
+ textContent: 'string',
2248
+ title: 'string',
2249
+ url: 'string',
2250
+ };
2251
+ }
2252
+ }
2253
+ exports.UpdateMaterialDocumentShrinkRequest = UpdateMaterialDocumentShrinkRequest;
2254
+ class UpdateMaterialDocumentResponseBody extends $tea.Model {
2255
+ constructor(map) {
2256
+ super(map);
2257
+ }
2258
+ static names() {
2259
+ return {
2260
+ code: 'Code',
2261
+ data: 'Data',
2262
+ httpStatusCode: 'HttpStatusCode',
2263
+ message: 'Message',
2264
+ requestId: 'RequestId',
2265
+ success: 'Success',
2266
+ };
2267
+ }
2268
+ static types() {
2269
+ return {
2270
+ code: 'string',
2271
+ data: 'number',
2272
+ httpStatusCode: 'number',
2273
+ message: 'string',
2274
+ requestId: 'string',
2275
+ success: 'boolean',
2276
+ };
2277
+ }
2278
+ }
2279
+ exports.UpdateMaterialDocumentResponseBody = UpdateMaterialDocumentResponseBody;
2280
+ class UpdateMaterialDocumentResponse extends $tea.Model {
2281
+ constructor(map) {
2282
+ super(map);
2283
+ }
2284
+ static names() {
2285
+ return {
2286
+ headers: 'headers',
2287
+ statusCode: 'statusCode',
2288
+ body: 'body',
2289
+ };
2290
+ }
2291
+ static types() {
2292
+ return {
2293
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
2294
+ statusCode: 'number',
2295
+ body: UpdateMaterialDocumentResponseBody,
2296
+ };
2297
+ }
2298
+ }
2299
+ exports.UpdateMaterialDocumentResponse = UpdateMaterialDocumentResponse;
2300
+ class CreateTokenResponseBodyData extends $tea.Model {
2301
+ constructor(map) {
2302
+ super(map);
2303
+ }
2304
+ static names() {
2305
+ return {
2306
+ expiredTime: 'ExpiredTime',
2307
+ token: 'Token',
2308
+ };
2309
+ }
2310
+ static types() {
2311
+ return {
2312
+ expiredTime: 'number',
2313
+ token: 'string',
2314
+ };
2315
+ }
2316
+ }
2317
+ exports.CreateTokenResponseBodyData = CreateTokenResponseBodyData;
2318
+ class FetchImageTaskResponseBodyDataTaskInfoListImageList extends $tea.Model {
2319
+ constructor(map) {
2320
+ super(map);
2321
+ }
2322
+ static names() {
2323
+ return {
2324
+ code: 'Code',
2325
+ message: 'Message',
2326
+ url: 'Url',
2327
+ };
2328
+ }
2329
+ static types() {
2330
+ return {
2331
+ code: 'string',
2332
+ message: 'string',
2333
+ url: 'string',
2334
+ };
2335
+ }
2336
+ }
2337
+ exports.FetchImageTaskResponseBodyDataTaskInfoListImageList = FetchImageTaskResponseBodyDataTaskInfoListImageList;
2338
+ class FetchImageTaskResponseBodyDataTaskInfoList extends $tea.Model {
2339
+ constructor(map) {
2340
+ super(map);
2341
+ }
2342
+ static names() {
2343
+ return {
2344
+ id: 'Id',
2345
+ imageList: 'ImageList',
2346
+ taskId: 'TaskId',
2347
+ taskStatus: 'TaskStatus',
2348
+ };
2349
+ }
2350
+ static types() {
2351
+ return {
2352
+ id: 'number',
2353
+ imageList: { 'type': 'array', 'itemType': FetchImageTaskResponseBodyDataTaskInfoListImageList },
2354
+ taskId: 'string',
2355
+ taskStatus: 'string',
2356
+ };
2357
+ }
2358
+ }
2359
+ exports.FetchImageTaskResponseBodyDataTaskInfoList = FetchImageTaskResponseBodyDataTaskInfoList;
2360
+ class FetchImageTaskResponseBodyData extends $tea.Model {
2361
+ constructor(map) {
2362
+ super(map);
2363
+ }
2364
+ static names() {
2365
+ return {
2366
+ taskInfoList: 'TaskInfoList',
2367
+ };
2368
+ }
2369
+ static types() {
2370
+ return {
2371
+ taskInfoList: { 'type': 'array', 'itemType': FetchImageTaskResponseBodyDataTaskInfoList },
2372
+ };
2373
+ }
2374
+ }
2375
+ exports.FetchImageTaskResponseBodyData = FetchImageTaskResponseBodyData;
2376
+ class GenerateImageTaskRequestParagraphList extends $tea.Model {
2377
+ constructor(map) {
2378
+ super(map);
2379
+ }
2380
+ static names() {
2381
+ return {
2382
+ content: 'Content',
2383
+ id: 'Id',
2384
+ taskId: 'TaskId',
2385
+ taskStatus: 'TaskStatus',
2386
+ };
2387
+ }
2388
+ static types() {
2389
+ return {
2390
+ content: 'string',
2391
+ id: 'number',
2392
+ taskId: 'string',
2393
+ taskStatus: 'string',
2394
+ };
2395
+ }
2396
+ }
2397
+ exports.GenerateImageTaskRequestParagraphList = GenerateImageTaskRequestParagraphList;
2398
+ class GenerateImageTaskResponseBodyDataTaskList extends $tea.Model {
2399
+ constructor(map) {
2400
+ super(map);
2401
+ }
2402
+ static names() {
2403
+ return {
2404
+ content: 'Content',
2405
+ id: 'Id',
2406
+ taskId: 'TaskId',
2407
+ taskStatus: 'TaskStatus',
2408
+ };
2409
+ }
2410
+ static types() {
2411
+ return {
2412
+ content: 'string',
2413
+ id: 'number',
2414
+ taskId: 'string',
2415
+ taskStatus: 'string',
2416
+ };
2417
+ }
2418
+ }
2419
+ exports.GenerateImageTaskResponseBodyDataTaskList = GenerateImageTaskResponseBodyDataTaskList;
2420
+ class GenerateImageTaskResponseBodyData extends $tea.Model {
2421
+ constructor(map) {
2422
+ super(map);
2423
+ }
2424
+ static names() {
2425
+ return {
2426
+ taskList: 'TaskList',
2427
+ };
2428
+ }
2429
+ static types() {
2430
+ return {
2431
+ taskList: { 'type': 'array', 'itemType': GenerateImageTaskResponseBodyDataTaskList },
2432
+ };
2433
+ }
2434
+ }
2435
+ exports.GenerateImageTaskResponseBodyData = GenerateImageTaskResponseBodyData;
2436
+ class GenerateViewPointRequestReferenceData extends $tea.Model {
2437
+ constructor(map) {
2438
+ super(map);
2439
+ }
2440
+ static names() {
2441
+ return {
2442
+ miniDoc: 'MiniDoc',
2443
+ };
2444
+ }
2445
+ static types() {
2446
+ return {
2447
+ miniDoc: { 'type': 'array', 'itemType': 'string' },
2448
+ };
2449
+ }
2450
+ }
2451
+ exports.GenerateViewPointRequestReferenceData = GenerateViewPointRequestReferenceData;
2452
+ class GenerateViewPointResponseBodyData extends $tea.Model {
2453
+ constructor(map) {
2454
+ super(map);
2455
+ }
2456
+ static names() {
2457
+ return {
2458
+ point: 'Point',
2459
+ };
2460
+ }
2461
+ static types() {
2462
+ return {
2463
+ point: 'string',
2464
+ };
2465
+ }
2466
+ }
2467
+ exports.GenerateViewPointResponseBodyData = GenerateViewPointResponseBodyData;
2468
+ class GetDataSourceOrderConfigResponseBodyDataUserConfigDataSourceList extends $tea.Model {
2469
+ constructor(map) {
2470
+ super(map);
2471
+ }
2472
+ static names() {
2473
+ return {
2474
+ code: 'Code',
2475
+ name: 'Name',
2476
+ number: 'Number',
2477
+ type: 'Type',
2478
+ };
2479
+ }
2480
+ static types() {
2481
+ return {
2482
+ code: 'string',
2483
+ name: 'string',
2484
+ number: 'number',
2485
+ type: 'string',
2486
+ };
2487
+ }
2488
+ }
2489
+ exports.GetDataSourceOrderConfigResponseBodyDataUserConfigDataSourceList = GetDataSourceOrderConfigResponseBodyDataUserConfigDataSourceList;
2490
+ class GetDataSourceOrderConfigResponseBodyData extends $tea.Model {
2491
+ constructor(map) {
2492
+ super(map);
2493
+ }
2494
+ static names() {
2495
+ return {
2496
+ userConfigDataSourceList: 'UserConfigDataSourceList',
2497
+ };
2498
+ }
2499
+ static types() {
2500
+ return {
2501
+ userConfigDataSourceList: { 'type': 'array', 'itemType': GetDataSourceOrderConfigResponseBodyDataUserConfigDataSourceList },
2502
+ };
2503
+ }
2504
+ }
2505
+ exports.GetDataSourceOrderConfigResponseBodyData = GetDataSourceOrderConfigResponseBodyData;
2506
+ class GetGeneratedContentResponseBodyData extends $tea.Model {
2507
+ constructor(map) {
2508
+ super(map);
2509
+ }
2510
+ static names() {
2511
+ return {
2512
+ content: 'Content',
2513
+ contentDomain: 'ContentDomain',
2514
+ contentText: 'ContentText',
2515
+ createTime: 'CreateTime',
2516
+ createUser: 'CreateUser',
2517
+ deviceId: 'DeviceId',
2518
+ id: 'Id',
2519
+ keywordList: 'KeywordList',
2520
+ keywords: 'Keywords',
2521
+ prompt: 'Prompt',
2522
+ taskId: 'TaskId',
2523
+ title: 'Title',
2524
+ updateTime: 'UpdateTime',
2525
+ updateUser: 'UpdateUser',
2526
+ uuid: 'Uuid',
2527
+ };
2528
+ }
2529
+ static types() {
2530
+ return {
2531
+ content: 'string',
2532
+ contentDomain: 'string',
2533
+ contentText: 'string',
2534
+ createTime: 'string',
2535
+ createUser: 'string',
2536
+ deviceId: 'string',
2537
+ id: 'number',
2538
+ keywordList: { 'type': 'array', 'itemType': 'string' },
2539
+ keywords: 'string',
2540
+ prompt: 'string',
2541
+ taskId: 'string',
2542
+ title: 'string',
2543
+ updateTime: 'string',
2544
+ updateUser: 'string',
2545
+ uuid: 'string',
2546
+ };
2547
+ }
2548
+ }
2549
+ exports.GetGeneratedContentResponseBodyData = GetGeneratedContentResponseBodyData;
2550
+ class GetMaterialByIdResponseBodyData extends $tea.Model {
2551
+ constructor(map) {
2552
+ super(map);
2553
+ }
2554
+ static names() {
2555
+ return {
2556
+ author: 'Author',
2557
+ createTime: 'CreateTime',
2558
+ createUser: 'CreateUser',
2559
+ docKeywords: 'DocKeywords',
2560
+ docType: 'DocType',
2561
+ externalUrl: 'ExternalUrl',
2562
+ htmlContent: 'HtmlContent',
2563
+ id: 'Id',
2564
+ pubTime: 'PubTime',
2565
+ publicUrl: 'PublicUrl',
2566
+ shareAttr: 'ShareAttr',
2567
+ srcFrom: 'SrcFrom',
2568
+ summary: 'Summary',
2569
+ textContent: 'TextContent',
2570
+ thumbnailInBase64: 'ThumbnailInBase64',
2571
+ title: 'Title',
2572
+ updateTime: 'UpdateTime',
2573
+ updateUser: 'UpdateUser',
2574
+ url: 'Url',
2575
+ };
2576
+ }
2577
+ static types() {
2578
+ return {
2579
+ author: 'string',
2580
+ createTime: 'string',
2581
+ createUser: 'string',
2582
+ docKeywords: { 'type': 'array', 'itemType': 'string' },
2583
+ docType: 'string',
2584
+ externalUrl: 'string',
2585
+ htmlContent: 'string',
2586
+ id: 'number',
2587
+ pubTime: 'string',
2588
+ publicUrl: 'string',
2589
+ shareAttr: 'number',
2590
+ srcFrom: 'string',
2591
+ summary: 'string',
2592
+ textContent: 'string',
2593
+ thumbnailInBase64: 'string',
2594
+ title: 'string',
2595
+ updateTime: 'string',
2596
+ updateUser: 'string',
2597
+ url: 'string',
2598
+ };
2599
+ }
2600
+ }
2601
+ exports.GetMaterialByIdResponseBodyData = GetMaterialByIdResponseBodyData;
2602
+ class GetPropertiesResponseBodyDataConsoleConfig extends $tea.Model {
2603
+ constructor(map) {
2604
+ super(map);
2605
+ }
2606
+ static names() {
2607
+ return {
2608
+ tipContent: 'TipContent',
2609
+ title: 'Title',
2610
+ };
2611
+ }
2612
+ static types() {
2613
+ return {
2614
+ tipContent: 'string',
2615
+ title: 'string',
2616
+ };
2617
+ }
2618
+ }
2619
+ exports.GetPropertiesResponseBodyDataConsoleConfig = GetPropertiesResponseBodyDataConsoleConfig;
2620
+ class GetPropertiesResponseBodyDataIntelligentSearchConfigSearchSamplesArticles extends $tea.Model {
2621
+ constructor(map) {
2622
+ super(map);
2623
+ }
2624
+ static names() {
2625
+ return {
2626
+ select: 'Select',
2627
+ stared: 'Stared',
2628
+ title: 'Title',
2629
+ url: 'Url',
2630
+ };
2631
+ }
2632
+ static types() {
2633
+ return {
2634
+ select: 'boolean',
2635
+ stared: 'boolean',
2636
+ title: 'string',
2637
+ url: 'string',
2638
+ };
2639
+ }
2640
+ }
2641
+ exports.GetPropertiesResponseBodyDataIntelligentSearchConfigSearchSamplesArticles = GetPropertiesResponseBodyDataIntelligentSearchConfigSearchSamplesArticles;
2642
+ class GetPropertiesResponseBodyDataIntelligentSearchConfigSearchSamples extends $tea.Model {
2643
+ constructor(map) {
2644
+ super(map);
2645
+ }
2646
+ static names() {
2647
+ return {
2648
+ articles: 'Articles',
2649
+ prompt: 'Prompt',
2650
+ text: 'Text',
2651
+ };
2652
+ }
2653
+ static types() {
2654
+ return {
2655
+ articles: { 'type': 'array', 'itemType': GetPropertiesResponseBodyDataIntelligentSearchConfigSearchSamplesArticles },
2656
+ prompt: 'string',
2657
+ text: 'string',
2658
+ };
2659
+ }
2660
+ }
2661
+ exports.GetPropertiesResponseBodyDataIntelligentSearchConfigSearchSamples = GetPropertiesResponseBodyDataIntelligentSearchConfigSearchSamples;
2662
+ class GetPropertiesResponseBodyDataIntelligentSearchConfigSearchSources extends $tea.Model {
2663
+ constructor(map) {
2664
+ super(map);
2665
+ }
2666
+ static names() {
2667
+ return {
2668
+ code: 'Code',
2669
+ datasetName: 'DatasetName',
2670
+ name: 'Name',
2671
+ };
2672
+ }
2673
+ static types() {
2674
+ return {
2675
+ code: 'string',
2676
+ datasetName: 'string',
2677
+ name: 'string',
2678
+ };
2679
+ }
2680
+ }
2681
+ exports.GetPropertiesResponseBodyDataIntelligentSearchConfigSearchSources = GetPropertiesResponseBodyDataIntelligentSearchConfigSearchSources;
2682
+ class GetPropertiesResponseBodyDataIntelligentSearchConfig extends $tea.Model {
2683
+ constructor(map) {
2684
+ super(map);
2685
+ }
2686
+ static names() {
2687
+ return {
2688
+ productDescription: 'ProductDescription',
2689
+ searchSamples: 'SearchSamples',
2690
+ searchSources: 'SearchSources',
2691
+ };
2692
+ }
2693
+ static types() {
2694
+ return {
2695
+ productDescription: 'string',
2696
+ searchSamples: { 'type': 'array', 'itemType': GetPropertiesResponseBodyDataIntelligentSearchConfigSearchSamples },
2697
+ searchSources: { 'type': 'array', 'itemType': GetPropertiesResponseBodyDataIntelligentSearchConfigSearchSources },
2698
+ };
2699
+ }
2700
+ }
2701
+ exports.GetPropertiesResponseBodyDataIntelligentSearchConfig = GetPropertiesResponseBodyDataIntelligentSearchConfig;
2702
+ class GetPropertiesResponseBodyDataSearchSources extends $tea.Model {
2703
+ constructor(map) {
2704
+ super(map);
2705
+ }
2706
+ static names() {
2707
+ return {
2708
+ label: 'Label',
2709
+ value: 'Value',
2710
+ };
2711
+ }
2712
+ static types() {
2713
+ return {
2714
+ label: 'string',
2715
+ value: 'string',
2716
+ };
2717
+ }
2718
+ }
2719
+ exports.GetPropertiesResponseBodyDataSearchSources = GetPropertiesResponseBodyDataSearchSources;
2720
+ class GetPropertiesResponseBodyDataUserInfo extends $tea.Model {
2721
+ constructor(map) {
2722
+ super(map);
2723
+ }
2724
+ static names() {
2725
+ return {
2726
+ agentId: 'AgentId',
2727
+ tenantId: 'TenantId',
2728
+ userId: 'UserId',
2729
+ username: 'Username',
2730
+ };
2731
+ }
2732
+ static types() {
2733
+ return {
2734
+ agentId: 'string',
2735
+ tenantId: 'string',
2736
+ userId: 'string',
2737
+ username: 'string',
2738
+ };
2739
+ }
2740
+ }
2741
+ exports.GetPropertiesResponseBodyDataUserInfo = GetPropertiesResponseBodyDataUserInfo;
2742
+ class GetPropertiesResponseBodyDataWanxiangImageSizeConfig extends $tea.Model {
2743
+ constructor(map) {
2744
+ super(map);
2745
+ }
2746
+ static names() {
2747
+ return {
2748
+ name: 'Name',
2749
+ value: 'Value',
2750
+ };
2751
+ }
2752
+ static types() {
2753
+ return {
2754
+ name: 'string',
2755
+ value: 'string',
2756
+ };
2757
+ }
2758
+ }
2759
+ exports.GetPropertiesResponseBodyDataWanxiangImageSizeConfig = GetPropertiesResponseBodyDataWanxiangImageSizeConfig;
2760
+ class GetPropertiesResponseBodyDataWanxiangImageStyleConfig extends $tea.Model {
2761
+ constructor(map) {
2762
+ super(map);
2763
+ }
2764
+ static names() {
2765
+ return {
2766
+ name: 'Name',
2767
+ pic: 'Pic',
2768
+ value: 'Value',
2769
+ };
2770
+ }
2771
+ static types() {
2772
+ return {
2773
+ name: 'string',
2774
+ pic: 'string',
2775
+ value: 'string',
2776
+ };
2777
+ }
2778
+ }
2779
+ exports.GetPropertiesResponseBodyDataWanxiangImageStyleConfig = GetPropertiesResponseBodyDataWanxiangImageStyleConfig;
2780
+ class GetPropertiesResponseBodyData extends $tea.Model {
2781
+ constructor(map) {
2782
+ super(map);
2783
+ }
2784
+ static names() {
2785
+ return {
2786
+ chatConfig: 'ChatConfig',
2787
+ consoleConfig: 'ConsoleConfig',
2788
+ generalConfigMap: 'GeneralConfigMap',
2789
+ intelligentSearchConfig: 'IntelligentSearchConfig',
2790
+ searchSources: 'SearchSources',
2791
+ slrAuthorized: 'SlrAuthorized',
2792
+ userInfo: 'UserInfo',
2793
+ wanxiangImageSizeConfig: 'WanxiangImageSizeConfig',
2794
+ wanxiangImageStyleConfig: 'WanxiangImageStyleConfig',
2795
+ };
2796
+ }
2797
+ static types() {
2798
+ return {
2799
+ chatConfig: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
2800
+ consoleConfig: GetPropertiesResponseBodyDataConsoleConfig,
2801
+ generalConfigMap: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
2802
+ intelligentSearchConfig: GetPropertiesResponseBodyDataIntelligentSearchConfig,
2803
+ searchSources: { 'type': 'array', 'itemType': GetPropertiesResponseBodyDataSearchSources },
2804
+ slrAuthorized: 'boolean',
2805
+ userInfo: GetPropertiesResponseBodyDataUserInfo,
2806
+ wanxiangImageSizeConfig: { 'type': 'array', 'itemType': GetPropertiesResponseBodyDataWanxiangImageSizeConfig },
2807
+ wanxiangImageStyleConfig: { 'type': 'array', 'itemType': GetPropertiesResponseBodyDataWanxiangImageStyleConfig },
2808
+ };
2809
+ }
2810
+ }
2811
+ exports.GetPropertiesResponseBodyData = GetPropertiesResponseBodyData;
2812
+ class ListAsyncTasksResponseBodyData extends $tea.Model {
2813
+ constructor(map) {
2814
+ super(map);
2815
+ }
2816
+ static names() {
2817
+ return {
2818
+ createTime: 'CreateTime',
2819
+ createUser: 'CreateUser',
2820
+ id: 'Id',
2821
+ taskCode: 'TaskCode',
2822
+ taskDefinition: 'TaskDefinition',
2823
+ taskEndTime: 'TaskEndTime',
2824
+ taskErrorMessage: 'TaskErrorMessage',
2825
+ taskExecuteTime: 'TaskExecuteTime',
2826
+ taskId: 'TaskId',
2827
+ taskInnerErrorMessage: 'TaskInnerErrorMessage',
2828
+ taskIntermediateResult: 'TaskIntermediateResult',
2829
+ taskName: 'TaskName',
2830
+ taskParam: 'TaskParam',
2831
+ taskProgressMessage: 'TaskProgressMessage',
2832
+ taskResult: 'TaskResult',
2833
+ taskRetryCount: 'TaskRetryCount',
2834
+ taskStartTime: 'TaskStartTime',
2835
+ taskStatus: 'TaskStatus',
2836
+ taskType: 'TaskType',
2837
+ updateTime: 'UpdateTime',
2838
+ updateUser: 'UpdateUser',
2839
+ };
2840
+ }
2841
+ static types() {
2842
+ return {
2843
+ createTime: 'string',
2844
+ createUser: 'string',
2845
+ id: 'number',
2846
+ taskCode: 'string',
2847
+ taskDefinition: 'string',
2848
+ taskEndTime: 'string',
2849
+ taskErrorMessage: 'string',
2850
+ taskExecuteTime: 'string',
2851
+ taskId: 'string',
2852
+ taskInnerErrorMessage: 'string',
2853
+ taskIntermediateResult: 'string',
2854
+ taskName: 'string',
2855
+ taskParam: 'string',
2856
+ taskProgressMessage: 'string',
2857
+ taskResult: 'string',
2858
+ taskRetryCount: 'string',
2859
+ taskStartTime: 'string',
2860
+ taskStatus: 'number',
2861
+ taskType: 'string',
2862
+ updateTime: 'string',
2863
+ updateUser: 'string',
2864
+ };
2865
+ }
2866
+ }
2867
+ exports.ListAsyncTasksResponseBodyData = ListAsyncTasksResponseBodyData;
2868
+ class ListBuildConfigsResponseBodyDataKeywords extends $tea.Model {
2869
+ constructor(map) {
2870
+ super(map);
2871
+ }
2872
+ static names() {
2873
+ return {
2874
+ description: 'Description',
2875
+ key: 'Key',
2876
+ };
2877
+ }
2878
+ static types() {
2879
+ return {
2880
+ description: 'string',
2881
+ key: 'string',
2882
+ };
2883
+ }
2884
+ }
2885
+ exports.ListBuildConfigsResponseBodyDataKeywords = ListBuildConfigsResponseBodyDataKeywords;
2886
+ class ListBuildConfigsResponseBodyData extends $tea.Model {
2887
+ constructor(map) {
2888
+ super(map);
2889
+ }
2890
+ static names() {
2891
+ return {
2892
+ buildIn: 'BuildIn',
2893
+ createTime: 'CreateTime',
2894
+ createUser: 'CreateUser',
2895
+ id: 'Id',
2896
+ keywords: 'Keywords',
2897
+ tag: 'Tag',
2898
+ tagDescription: 'TagDescription',
2899
+ type: 'Type',
2900
+ updateTime: 'UpdateTime',
2901
+ updateUser: 'UpdateUser',
2902
+ };
2903
+ }
2904
+ static types() {
2905
+ return {
2906
+ buildIn: 'boolean',
2907
+ createTime: 'string',
2908
+ createUser: 'string',
2909
+ id: 'number',
2910
+ keywords: { 'type': 'array', 'itemType': ListBuildConfigsResponseBodyDataKeywords },
2911
+ tag: 'string',
2912
+ tagDescription: 'string',
2913
+ type: 'string',
2914
+ updateTime: 'string',
2915
+ updateUser: 'string',
2916
+ };
2917
+ }
2918
+ }
2919
+ exports.ListBuildConfigsResponseBodyData = ListBuildConfigsResponseBodyData;
2920
+ class ListDialoguesResponseBodyData extends $tea.Model {
2921
+ constructor(map) {
2922
+ super(map);
2923
+ }
2924
+ static names() {
2925
+ return {
2926
+ bot: 'Bot',
2927
+ createTime: 'CreateTime',
2928
+ createUser: 'CreateUser',
2929
+ dialogueType: 'DialogueType',
2930
+ taskId: 'TaskId',
2931
+ user: 'User',
2932
+ };
2933
+ }
2934
+ static types() {
2935
+ return {
2936
+ bot: 'string',
2937
+ createTime: 'string',
2938
+ createUser: 'string',
2939
+ dialogueType: 'number',
2940
+ taskId: 'string',
2941
+ user: 'string',
2942
+ };
2943
+ }
2944
+ }
2945
+ exports.ListDialoguesResponseBodyData = ListDialoguesResponseBodyData;
2946
+ class ListGeneratedContentsResponseBodyData extends $tea.Model {
2947
+ constructor(map) {
2948
+ super(map);
2949
+ }
2950
+ static names() {
2951
+ return {
2952
+ content: 'Content',
2953
+ contentDomain: 'ContentDomain',
2954
+ contentText: 'ContentText',
2955
+ createTime: 'CreateTime',
2956
+ createUser: 'CreateUser',
2957
+ deviceId: 'DeviceId',
2958
+ id: 'Id',
2959
+ keywordList: 'KeywordList',
2960
+ keywords: 'Keywords',
2961
+ prompt: 'Prompt',
2962
+ taskId: 'TaskId',
2963
+ title: 'Title',
2964
+ updateTime: 'UpdateTime',
2965
+ updateUser: 'UpdateUser',
2966
+ uuid: 'Uuid',
2967
+ };
2968
+ }
2969
+ static types() {
2970
+ return {
2971
+ content: 'string',
2972
+ contentDomain: 'string',
2973
+ contentText: 'string',
2974
+ createTime: 'string',
2975
+ createUser: 'string',
2976
+ deviceId: 'string',
2977
+ id: 'number',
2978
+ keywordList: { 'type': 'array', 'itemType': 'string' },
2979
+ keywords: 'string',
2980
+ prompt: 'string',
2981
+ taskId: 'string',
2982
+ title: 'string',
2983
+ updateTime: 'string',
2984
+ updateUser: 'string',
2985
+ uuid: 'string',
2986
+ };
2987
+ }
2988
+ }
2989
+ exports.ListGeneratedContentsResponseBodyData = ListGeneratedContentsResponseBodyData;
2990
+ class ListHotNewsWithTypeResponseBodyDataNews extends $tea.Model {
2991
+ constructor(map) {
2992
+ super(map);
2993
+ }
2994
+ static names() {
2995
+ return {
2996
+ author: 'Author',
2997
+ content: 'Content',
2998
+ docUuid: 'DocUuid',
2999
+ imageUrls: 'ImageUrls',
3000
+ pubTime: 'PubTime',
3001
+ searchSource: 'SearchSource',
3002
+ searchSourceName: 'SearchSourceName',
3003
+ source: 'Source',
3004
+ summary: 'Summary',
3005
+ tag: 'Tag',
3006
+ title: 'Title',
3007
+ updateTime: 'UpdateTime',
3008
+ url: 'Url',
3009
+ };
3010
+ }
3011
+ static types() {
3012
+ return {
3013
+ author: 'string',
3014
+ content: 'string',
3015
+ docUuid: 'string',
3016
+ imageUrls: { 'type': 'array', 'itemType': 'string' },
3017
+ pubTime: 'string',
3018
+ searchSource: 'string',
3019
+ searchSourceName: 'string',
3020
+ source: 'string',
3021
+ summary: 'string',
3022
+ tag: 'string',
3023
+ title: 'string',
3024
+ updateTime: 'string',
3025
+ url: 'string',
3026
+ };
3027
+ }
3028
+ }
3029
+ exports.ListHotNewsWithTypeResponseBodyDataNews = ListHotNewsWithTypeResponseBodyDataNews;
3030
+ class ListHotNewsWithTypeResponseBodyData extends $tea.Model {
3031
+ constructor(map) {
3032
+ super(map);
3033
+ }
3034
+ static names() {
3035
+ return {
3036
+ news: 'News',
3037
+ newsType: 'NewsType',
3038
+ newsTypeName: 'NewsTypeName',
3039
+ totalPages: 'TotalPages',
3040
+ };
3041
+ }
3042
+ static types() {
3043
+ return {
3044
+ news: { 'type': 'array', 'itemType': ListHotNewsWithTypeResponseBodyDataNews },
3045
+ newsType: 'string',
3046
+ newsTypeName: 'string',
3047
+ totalPages: 'number',
3048
+ };
3049
+ }
3050
+ }
3051
+ exports.ListHotNewsWithTypeResponseBodyData = ListHotNewsWithTypeResponseBodyData;
3052
+ class ListMaterialDocumentsResponseBodyData extends $tea.Model {
3053
+ constructor(map) {
3054
+ super(map);
3055
+ }
3056
+ static names() {
3057
+ return {
3058
+ author: 'Author',
3059
+ createTime: 'CreateTime',
3060
+ createUser: 'CreateUser',
3061
+ createUserName: 'CreateUserName',
3062
+ docKeywords: 'DocKeywords',
3063
+ docType: 'DocType',
3064
+ externalUrl: 'ExternalUrl',
3065
+ htmlContent: 'HtmlContent',
3066
+ id: 'Id',
3067
+ pubTime: 'PubTime',
3068
+ publicUrl: 'PublicUrl',
3069
+ shareAttr: 'ShareAttr',
3070
+ srcFrom: 'SrcFrom',
3071
+ summary: 'Summary',
3072
+ textContent: 'TextContent',
3073
+ thumbnailInBase64: 'ThumbnailInBase64',
3074
+ title: 'Title',
3075
+ updateTime: 'UpdateTime',
3076
+ updateUser: 'UpdateUser',
3077
+ updateUserName: 'UpdateUserName',
3078
+ url: 'Url',
3079
+ };
3080
+ }
3081
+ static types() {
3082
+ return {
3083
+ author: 'string',
3084
+ createTime: 'string',
3085
+ createUser: 'string',
3086
+ createUserName: 'string',
3087
+ docKeywords: { 'type': 'array', 'itemType': 'string' },
3088
+ docType: 'string',
3089
+ externalUrl: 'string',
3090
+ htmlContent: 'string',
3091
+ id: 'number',
3092
+ pubTime: 'string',
3093
+ publicUrl: 'string',
3094
+ shareAttr: 'number',
3095
+ srcFrom: 'string',
3096
+ summary: 'string',
3097
+ textContent: 'string',
3098
+ thumbnailInBase64: 'string',
3099
+ title: 'string',
3100
+ updateTime: 'string',
3101
+ updateUser: 'string',
3102
+ updateUserName: 'string',
3103
+ url: 'string',
3104
+ };
3105
+ }
3106
+ }
3107
+ exports.ListMaterialDocumentsResponseBodyData = ListMaterialDocumentsResponseBodyData;
3108
+ class ListVersionsResponseBodyData extends $tea.Model {
3109
+ constructor(map) {
3110
+ super(map);
3111
+ }
3112
+ static names() {
3113
+ return {
3114
+ concurrentCount: 'ConcurrentCount',
3115
+ endTime: 'EndTime',
3116
+ instanceCount: 'InstanceCount',
3117
+ instanceId: 'InstanceId',
3118
+ orderId: 'OrderId',
3119
+ productType: 'ProductType',
3120
+ quota: 'Quota',
3121
+ startTime: 'StartTime',
3122
+ useQuota: 'UseQuota',
3123
+ versionDetail: 'VersionDetail',
3124
+ versionName: 'VersionName',
3125
+ versionStatus: 'VersionStatus',
3126
+ };
3127
+ }
3128
+ static types() {
3129
+ return {
3130
+ concurrentCount: 'number',
3131
+ endTime: 'string',
3132
+ instanceCount: 'number',
3133
+ instanceId: 'string',
3134
+ orderId: 'number',
3135
+ productType: 'string',
3136
+ quota: 'number',
3137
+ startTime: 'string',
3138
+ useQuota: 'number',
3139
+ versionDetail: 'string',
3140
+ versionName: 'string',
3141
+ versionStatus: 'number',
3142
+ };
3143
+ }
3144
+ }
3145
+ exports.ListVersionsResponseBodyData = ListVersionsResponseBodyData;
3146
+ class QueryAsyncTaskResponseBodyData extends $tea.Model {
3147
+ constructor(map) {
3148
+ super(map);
3149
+ }
3150
+ static names() {
3151
+ return {
3152
+ createTime: 'CreateTime',
3153
+ createUser: 'CreateUser',
3154
+ taskCode: 'TaskCode',
3155
+ taskErrorMessage: 'TaskErrorMessage',
3156
+ taskId: 'TaskId',
3157
+ taskIntermediateResult: 'TaskIntermediateResult',
3158
+ taskName: 'TaskName',
3159
+ taskParam: 'TaskParam',
3160
+ taskProgressMessage: 'TaskProgressMessage',
3161
+ taskResult: 'TaskResult',
3162
+ taskRetryCount: 'TaskRetryCount',
3163
+ taskStatus: 'TaskStatus',
3164
+ updateTime: 'UpdateTime',
3165
+ updateUser: 'UpdateUser',
3166
+ };
3167
+ }
3168
+ static types() {
3169
+ return {
3170
+ createTime: 'string',
3171
+ createUser: 'string',
3172
+ taskCode: 'string',
3173
+ taskErrorMessage: 'string',
3174
+ taskId: 'string',
3175
+ taskIntermediateResult: 'string',
3176
+ taskName: 'string',
3177
+ taskParam: 'string',
3178
+ taskProgressMessage: 'string',
3179
+ taskResult: 'string',
3180
+ taskRetryCount: 'string',
3181
+ taskStatus: 'number',
3182
+ updateTime: 'string',
3183
+ updateUser: 'string',
3184
+ };
3185
+ }
3186
+ }
3187
+ exports.QueryAsyncTaskResponseBodyData = QueryAsyncTaskResponseBodyData;
3188
+ class SaveDataSourceOrderConfigRequestUserConfigDataSourceList extends $tea.Model {
3189
+ constructor(map) {
3190
+ super(map);
3191
+ }
3192
+ static names() {
3193
+ return {
3194
+ code: 'Code',
3195
+ name: 'Name',
3196
+ number: 'Number',
3197
+ type: 'Type',
3198
+ };
3199
+ }
3200
+ static types() {
3201
+ return {
3202
+ code: 'string',
3203
+ name: 'string',
3204
+ number: 'number',
3205
+ type: 'string',
3206
+ };
3207
+ }
3208
+ }
3209
+ exports.SaveDataSourceOrderConfigRequestUserConfigDataSourceList = SaveDataSourceOrderConfigRequestUserConfigDataSourceList;
3210
+ class SubmitAsyncTaskResponseBodyData extends $tea.Model {
3211
+ constructor(map) {
3212
+ super(map);
3213
+ }
3214
+ static names() {
3215
+ return {
3216
+ taskId: 'TaskId',
3217
+ taskIntermediateResult: 'TaskIntermediateResult',
3218
+ taskName: 'TaskName',
3219
+ };
3220
+ }
3221
+ static types() {
3222
+ return {
3223
+ taskId: 'string',
3224
+ taskIntermediateResult: 'any',
3225
+ taskName: 'string',
3226
+ };
3227
+ }
3228
+ }
3229
+ exports.SubmitAsyncTaskResponseBodyData = SubmitAsyncTaskResponseBodyData;
3230
+ class Client extends openapi_client_1.default {
3231
+ constructor(config) {
3232
+ super(config);
3233
+ this._endpointRule = "";
3234
+ this.checkConfig(config);
3235
+ this._endpoint = this.getEndpoint("aimiaobi", this._regionId, this._endpointRule, this._network, this._suffix, this._endpointMap, this._endpoint);
3236
+ }
3237
+ getEndpoint(productId, regionId, endpointRule, network, suffix, endpointMap, endpoint) {
3238
+ if (!tea_util_1.default.empty(endpoint)) {
3239
+ return endpoint;
3240
+ }
3241
+ if (!tea_util_1.default.isUnset(endpointMap) && !tea_util_1.default.empty(endpointMap[regionId])) {
3242
+ return endpointMap[regionId];
3243
+ }
3244
+ return endpoint_util_1.default.getEndpointRules(productId, regionId, endpointRule, network, suffix);
3245
+ }
3246
+ async cancelAsyncTaskWithOptions(request, runtime) {
3247
+ tea_util_1.default.validateModel(request);
3248
+ let query = {};
3249
+ if (!tea_util_1.default.isUnset(request.agentKey)) {
3250
+ query["AgentKey"] = request.agentKey;
3251
+ }
3252
+ let body = {};
3253
+ if (!tea_util_1.default.isUnset(request.taskId)) {
3254
+ body["TaskId"] = request.taskId;
3255
+ }
3256
+ let req = new $OpenApi.OpenApiRequest({
3257
+ query: openapi_util_1.default.query(query),
3258
+ body: openapi_util_1.default.parseToMap(body),
3259
+ });
3260
+ let params = new $OpenApi.Params({
3261
+ action: "CancelAsyncTask",
3262
+ version: "2023-08-01",
3263
+ protocol: "HTTPS",
3264
+ pathname: "/",
3265
+ method: "POST",
3266
+ authType: "AK",
3267
+ style: "RPC",
3268
+ reqBodyType: "formData",
3269
+ bodyType: "json",
3270
+ });
3271
+ return $tea.cast(await this.callApi(params, req, runtime), new CancelAsyncTaskResponse({}));
3272
+ }
3273
+ async cancelAsyncTask(request) {
3274
+ let runtime = new $Util.RuntimeOptions({});
3275
+ return await this.cancelAsyncTaskWithOptions(request, runtime);
3276
+ }
3277
+ async createGeneratedContentWithOptions(tmpReq, runtime) {
3278
+ tea_util_1.default.validateModel(tmpReq);
3279
+ let request = new CreateGeneratedContentShrinkRequest({});
3280
+ openapi_util_1.default.convert(tmpReq, request);
3281
+ if (!tea_util_1.default.isUnset(tmpReq.keywords)) {
3282
+ request.keywordsShrink = openapi_util_1.default.arrayToStringWithSpecifiedStyle(tmpReq.keywords, "Keywords", "json");
3283
+ }
3284
+ let query = {};
3285
+ if (!tea_util_1.default.isUnset(request.agentKey)) {
3286
+ query["AgentKey"] = request.agentKey;
3287
+ }
3288
+ let body = {};
3289
+ if (!tea_util_1.default.isUnset(request.content)) {
3290
+ body["Content"] = request.content;
3291
+ }
3292
+ if (!tea_util_1.default.isUnset(request.contentDomain)) {
3293
+ body["ContentDomain"] = request.contentDomain;
3294
+ }
3295
+ if (!tea_util_1.default.isUnset(request.contentText)) {
3296
+ body["ContentText"] = request.contentText;
3297
+ }
3298
+ if (!tea_util_1.default.isUnset(request.keywordsShrink)) {
3299
+ body["Keywords"] = request.keywordsShrink;
3300
+ }
3301
+ if (!tea_util_1.default.isUnset(request.prompt)) {
3302
+ body["Prompt"] = request.prompt;
3303
+ }
3304
+ if (!tea_util_1.default.isUnset(request.taskId)) {
3305
+ body["TaskId"] = request.taskId;
3306
+ }
3307
+ if (!tea_util_1.default.isUnset(request.title)) {
3308
+ body["Title"] = request.title;
3309
+ }
3310
+ if (!tea_util_1.default.isUnset(request.uuid)) {
3311
+ body["Uuid"] = request.uuid;
3312
+ }
3313
+ let req = new $OpenApi.OpenApiRequest({
3314
+ query: openapi_util_1.default.query(query),
3315
+ body: openapi_util_1.default.parseToMap(body),
3316
+ });
3317
+ let params = new $OpenApi.Params({
3318
+ action: "CreateGeneratedContent",
3319
+ version: "2023-08-01",
3320
+ protocol: "HTTPS",
3321
+ pathname: "/",
3322
+ method: "POST",
3323
+ authType: "AK",
3324
+ style: "RPC",
3325
+ reqBodyType: "formData",
3326
+ bodyType: "json",
3327
+ });
3328
+ return $tea.cast(await this.callApi(params, req, runtime), new CreateGeneratedContentResponse({}));
3329
+ }
3330
+ async createGeneratedContent(request) {
3331
+ let runtime = new $Util.RuntimeOptions({});
3332
+ return await this.createGeneratedContentWithOptions(request, runtime);
3333
+ }
3334
+ async createTokenWithOptions(request, runtime) {
3335
+ tea_util_1.default.validateModel(request);
3336
+ let query = {};
3337
+ if (!tea_util_1.default.isUnset(request.agentKey)) {
3338
+ query["AgentKey"] = request.agentKey;
3339
+ }
3340
+ let req = new $OpenApi.OpenApiRequest({
3341
+ query: openapi_util_1.default.query(query),
3342
+ });
3343
+ let params = new $OpenApi.Params({
3344
+ action: "CreateToken",
3345
+ version: "2023-08-01",
3346
+ protocol: "HTTPS",
3347
+ pathname: "/",
3348
+ method: "POST",
3349
+ authType: "AK",
3350
+ style: "RPC",
3351
+ reqBodyType: "formData",
3352
+ bodyType: "json",
3353
+ });
3354
+ return $tea.cast(await this.callApi(params, req, runtime), new CreateTokenResponse({}));
3355
+ }
3356
+ async createToken(request) {
3357
+ let runtime = new $Util.RuntimeOptions({});
3358
+ return await this.createTokenWithOptions(request, runtime);
3359
+ }
3360
+ async deleteGeneratedContentWithOptions(request, runtime) {
3361
+ tea_util_1.default.validateModel(request);
3362
+ let query = {};
3363
+ if (!tea_util_1.default.isUnset(request.agentKey)) {
3364
+ query["AgentKey"] = request.agentKey;
3365
+ }
3366
+ let body = {};
3367
+ if (!tea_util_1.default.isUnset(request.id)) {
3368
+ body["Id"] = request.id;
3369
+ }
3370
+ let req = new $OpenApi.OpenApiRequest({
3371
+ query: openapi_util_1.default.query(query),
3372
+ body: openapi_util_1.default.parseToMap(body),
3373
+ });
3374
+ let params = new $OpenApi.Params({
3375
+ action: "DeleteGeneratedContent",
3376
+ version: "2023-08-01",
3377
+ protocol: "HTTPS",
3378
+ pathname: "/",
3379
+ method: "POST",
3380
+ authType: "AK",
3381
+ style: "RPC",
3382
+ reqBodyType: "formData",
3383
+ bodyType: "json",
3384
+ });
3385
+ return $tea.cast(await this.callApi(params, req, runtime), new DeleteGeneratedContentResponse({}));
3386
+ }
3387
+ async deleteGeneratedContent(request) {
3388
+ let runtime = new $Util.RuntimeOptions({});
3389
+ return await this.deleteGeneratedContentWithOptions(request, runtime);
3390
+ }
3391
+ async deleteMaterialByIdWithOptions(request, runtime) {
3392
+ tea_util_1.default.validateModel(request);
3393
+ let query = {};
3394
+ if (!tea_util_1.default.isUnset(request.agentKey)) {
3395
+ query["AgentKey"] = request.agentKey;
3396
+ }
3397
+ let body = {};
3398
+ if (!tea_util_1.default.isUnset(request.id)) {
3399
+ body["Id"] = request.id;
3400
+ }
3401
+ let req = new $OpenApi.OpenApiRequest({
3402
+ query: openapi_util_1.default.query(query),
3403
+ body: openapi_util_1.default.parseToMap(body),
3404
+ });
3405
+ let params = new $OpenApi.Params({
3406
+ action: "DeleteMaterialById",
3407
+ version: "2023-08-01",
3408
+ protocol: "HTTPS",
3409
+ pathname: "/",
3410
+ method: "POST",
3411
+ authType: "AK",
3412
+ style: "RPC",
3413
+ reqBodyType: "formData",
3414
+ bodyType: "json",
3415
+ });
3416
+ return $tea.cast(await this.callApi(params, req, runtime), new DeleteMaterialByIdResponse({}));
3417
+ }
3418
+ async deleteMaterialById(request) {
3419
+ let runtime = new $Util.RuntimeOptions({});
3420
+ return await this.deleteMaterialByIdWithOptions(request, runtime);
3421
+ }
3422
+ async exportGeneratedContentWithOptions(request, runtime) {
3423
+ tea_util_1.default.validateModel(request);
3424
+ let query = {};
3425
+ if (!tea_util_1.default.isUnset(request.agentKey)) {
3426
+ query["AgentKey"] = request.agentKey;
3427
+ }
3428
+ let body = {};
3429
+ if (!tea_util_1.default.isUnset(request.id)) {
3430
+ body["Id"] = request.id;
3431
+ }
3432
+ let req = new $OpenApi.OpenApiRequest({
3433
+ query: openapi_util_1.default.query(query),
3434
+ body: openapi_util_1.default.parseToMap(body),
3435
+ });
3436
+ let params = new $OpenApi.Params({
3437
+ action: "ExportGeneratedContent",
3438
+ version: "2023-08-01",
3439
+ protocol: "HTTPS",
3440
+ pathname: "/",
3441
+ method: "POST",
3442
+ authType: "AK",
3443
+ style: "RPC",
3444
+ reqBodyType: "formData",
3445
+ bodyType: "json",
3446
+ });
3447
+ return $tea.cast(await this.callApi(params, req, runtime), new ExportGeneratedContentResponse({}));
3448
+ }
3449
+ async exportGeneratedContent(request) {
3450
+ let runtime = new $Util.RuntimeOptions({});
3451
+ return await this.exportGeneratedContentWithOptions(request, runtime);
3452
+ }
3453
+ async feedbackDialogueWithOptions(tmpReq, runtime) {
3454
+ tea_util_1.default.validateModel(tmpReq);
3455
+ let request = new FeedbackDialogueShrinkRequest({});
3456
+ openapi_util_1.default.convert(tmpReq, request);
3457
+ if (!tea_util_1.default.isUnset(tmpReq.ratingTags)) {
3458
+ request.ratingTagsShrink = openapi_util_1.default.arrayToStringWithSpecifiedStyle(tmpReq.ratingTags, "RatingTags", "json");
3459
+ }
3460
+ let query = {};
3461
+ if (!tea_util_1.default.isUnset(request.agentKey)) {
3462
+ query["AgentKey"] = request.agentKey;
3463
+ }
3464
+ let body = {};
3465
+ if (!tea_util_1.default.isUnset(request.customerResponse)) {
3466
+ body["CustomerResponse"] = request.customerResponse;
3467
+ }
3468
+ if (!tea_util_1.default.isUnset(request.goodText)) {
3469
+ body["GoodText"] = request.goodText;
3470
+ }
3471
+ if (!tea_util_1.default.isUnset(request.modifiedResponse)) {
3472
+ body["ModifiedResponse"] = request.modifiedResponse;
3473
+ }
3474
+ if (!tea_util_1.default.isUnset(request.rating)) {
3475
+ body["Rating"] = request.rating;
3476
+ }
3477
+ if (!tea_util_1.default.isUnset(request.ratingTagsShrink)) {
3478
+ body["RatingTags"] = request.ratingTagsShrink;
3479
+ }
3480
+ if (!tea_util_1.default.isUnset(request.sessionId)) {
3481
+ body["SessionId"] = request.sessionId;
3482
+ }
3483
+ if (!tea_util_1.default.isUnset(request.taskId)) {
3484
+ body["TaskId"] = request.taskId;
3485
+ }
3486
+ let req = new $OpenApi.OpenApiRequest({
3487
+ query: openapi_util_1.default.query(query),
3488
+ body: openapi_util_1.default.parseToMap(body),
3489
+ });
3490
+ let params = new $OpenApi.Params({
3491
+ action: "FeedbackDialogue",
3492
+ version: "2023-08-01",
3493
+ protocol: "HTTPS",
3494
+ pathname: "/",
3495
+ method: "POST",
3496
+ authType: "AK",
3497
+ style: "RPC",
3498
+ reqBodyType: "formData",
3499
+ bodyType: "json",
3500
+ });
3501
+ return $tea.cast(await this.callApi(params, req, runtime), new FeedbackDialogueResponse({}));
3502
+ }
3503
+ async feedbackDialogue(request) {
3504
+ let runtime = new $Util.RuntimeOptions({});
3505
+ return await this.feedbackDialogueWithOptions(request, runtime);
3506
+ }
3507
+ async fetchImageTaskWithOptions(tmpReq, runtime) {
3508
+ tea_util_1.default.validateModel(tmpReq);
3509
+ let request = new FetchImageTaskShrinkRequest({});
3510
+ openapi_util_1.default.convert(tmpReq, request);
3511
+ if (!tea_util_1.default.isUnset(tmpReq.taskIdList)) {
3512
+ request.taskIdListShrink = openapi_util_1.default.arrayToStringWithSpecifiedStyle(tmpReq.taskIdList, "TaskIdList", "json");
3513
+ }
3514
+ let query = {};
3515
+ if (!tea_util_1.default.isUnset(request.agentKey)) {
3516
+ query["AgentKey"] = request.agentKey;
3517
+ }
3518
+ let body = {};
3519
+ if (!tea_util_1.default.isUnset(request.articleTaskId)) {
3520
+ body["ArticleTaskId"] = request.articleTaskId;
3521
+ }
3522
+ if (!tea_util_1.default.isUnset(request.taskIdListShrink)) {
3523
+ body["TaskIdList"] = request.taskIdListShrink;
3524
+ }
3525
+ let req = new $OpenApi.OpenApiRequest({
3526
+ query: openapi_util_1.default.query(query),
3527
+ body: openapi_util_1.default.parseToMap(body),
3528
+ });
3529
+ let params = new $OpenApi.Params({
3530
+ action: "FetchImageTask",
3531
+ version: "2023-08-01",
3532
+ protocol: "HTTPS",
3533
+ pathname: "/",
3534
+ method: "POST",
3535
+ authType: "AK",
3536
+ style: "RPC",
3537
+ reqBodyType: "formData",
3538
+ bodyType: "json",
3539
+ });
3540
+ return $tea.cast(await this.callApi(params, req, runtime), new FetchImageTaskResponse({}));
3541
+ }
3542
+ async fetchImageTask(request) {
3543
+ let runtime = new $Util.RuntimeOptions({});
3544
+ return await this.fetchImageTaskWithOptions(request, runtime);
3545
+ }
3546
+ async generateImageTaskWithOptions(tmpReq, runtime) {
3547
+ tea_util_1.default.validateModel(tmpReq);
3548
+ let request = new GenerateImageTaskShrinkRequest({});
3549
+ openapi_util_1.default.convert(tmpReq, request);
3550
+ if (!tea_util_1.default.isUnset(tmpReq.paragraphList)) {
3551
+ request.paragraphListShrink = openapi_util_1.default.arrayToStringWithSpecifiedStyle(tmpReq.paragraphList, "ParagraphList", "json");
3552
+ }
3553
+ let query = {};
3554
+ if (!tea_util_1.default.isUnset(request.agentKey)) {
3555
+ query["AgentKey"] = request.agentKey;
3556
+ }
3557
+ let body = {};
3558
+ if (!tea_util_1.default.isUnset(request.articleTaskId)) {
3559
+ body["ArticleTaskId"] = request.articleTaskId;
3560
+ }
3561
+ if (!tea_util_1.default.isUnset(request.paragraphListShrink)) {
3562
+ body["ParagraphList"] = request.paragraphListShrink;
3563
+ }
3564
+ if (!tea_util_1.default.isUnset(request.size)) {
3565
+ body["Size"] = request.size;
3566
+ }
3567
+ if (!tea_util_1.default.isUnset(request.style)) {
3568
+ body["Style"] = request.style;
3569
+ }
3570
+ let req = new $OpenApi.OpenApiRequest({
3571
+ query: openapi_util_1.default.query(query),
3572
+ body: openapi_util_1.default.parseToMap(body),
3573
+ });
3574
+ let params = new $OpenApi.Params({
3575
+ action: "GenerateImageTask",
3576
+ version: "2023-08-01",
3577
+ protocol: "HTTPS",
3578
+ pathname: "/",
3579
+ method: "POST",
3580
+ authType: "AK",
3581
+ style: "RPC",
3582
+ reqBodyType: "formData",
3583
+ bodyType: "json",
3584
+ });
3585
+ return $tea.cast(await this.callApi(params, req, runtime), new GenerateImageTaskResponse({}));
3586
+ }
3587
+ async generateImageTask(request) {
3588
+ let runtime = new $Util.RuntimeOptions({});
3589
+ return await this.generateImageTaskWithOptions(request, runtime);
3590
+ }
3591
+ async generateViewPointWithOptions(tmpReq, runtime) {
3592
+ tea_util_1.default.validateModel(tmpReq);
3593
+ let request = new GenerateViewPointShrinkRequest({});
3594
+ openapi_util_1.default.convert(tmpReq, request);
3595
+ if (!tea_util_1.default.isUnset(tmpReq.referenceData)) {
3596
+ request.referenceDataShrink = openapi_util_1.default.arrayToStringWithSpecifiedStyle(tmpReq.referenceData, "ReferenceData", "json");
3597
+ }
3598
+ let query = {};
3599
+ if (!tea_util_1.default.isUnset(request.agentKey)) {
3600
+ query["AgentKey"] = request.agentKey;
3601
+ }
3602
+ let body = {};
3603
+ if (!tea_util_1.default.isUnset(request.referenceDataShrink)) {
3604
+ body["ReferenceData"] = request.referenceDataShrink;
3605
+ }
3606
+ let req = new $OpenApi.OpenApiRequest({
3607
+ query: openapi_util_1.default.query(query),
3608
+ body: openapi_util_1.default.parseToMap(body),
3609
+ });
3610
+ let params = new $OpenApi.Params({
3611
+ action: "GenerateViewPoint",
3612
+ version: "2023-08-01",
3613
+ protocol: "HTTPS",
3614
+ pathname: "/",
3615
+ method: "POST",
3616
+ authType: "AK",
3617
+ style: "RPC",
3618
+ reqBodyType: "formData",
3619
+ bodyType: "json",
3620
+ });
3621
+ return $tea.cast(await this.callApi(params, req, runtime), new GenerateViewPointResponse({}));
3622
+ }
3623
+ async generateViewPoint(request) {
3624
+ let runtime = new $Util.RuntimeOptions({});
3625
+ return await this.generateViewPointWithOptions(request, runtime);
3626
+ }
3627
+ async getDataSourceOrderConfigWithOptions(request, runtime) {
3628
+ tea_util_1.default.validateModel(request);
3629
+ let query = {};
3630
+ if (!tea_util_1.default.isUnset(request.agentKey)) {
3631
+ query["AgentKey"] = request.agentKey;
3632
+ }
3633
+ let body = {};
3634
+ if (!tea_util_1.default.isUnset(request.productCode)) {
3635
+ body["ProductCode"] = request.productCode;
3636
+ }
3637
+ let req = new $OpenApi.OpenApiRequest({
3638
+ query: openapi_util_1.default.query(query),
3639
+ body: openapi_util_1.default.parseToMap(body),
3640
+ });
3641
+ let params = new $OpenApi.Params({
3642
+ action: "GetDataSourceOrderConfig",
3643
+ version: "2023-08-01",
3644
+ protocol: "HTTPS",
3645
+ pathname: "/",
3646
+ method: "POST",
3647
+ authType: "AK",
3648
+ style: "RPC",
3649
+ reqBodyType: "formData",
3650
+ bodyType: "json",
3651
+ });
3652
+ return $tea.cast(await this.callApi(params, req, runtime), new GetDataSourceOrderConfigResponse({}));
3653
+ }
3654
+ async getDataSourceOrderConfig(request) {
3655
+ let runtime = new $Util.RuntimeOptions({});
3656
+ return await this.getDataSourceOrderConfigWithOptions(request, runtime);
3657
+ }
3658
+ async getGeneratedContentWithOptions(request, runtime) {
3659
+ tea_util_1.default.validateModel(request);
3660
+ let query = {};
3661
+ if (!tea_util_1.default.isUnset(request.agentKey)) {
3662
+ query["AgentKey"] = request.agentKey;
3663
+ }
3664
+ let body = {};
3665
+ if (!tea_util_1.default.isUnset(request.id)) {
3666
+ body["Id"] = request.id;
3667
+ }
3668
+ let req = new $OpenApi.OpenApiRequest({
3669
+ query: openapi_util_1.default.query(query),
3670
+ body: openapi_util_1.default.parseToMap(body),
3671
+ });
3672
+ let params = new $OpenApi.Params({
3673
+ action: "GetGeneratedContent",
3674
+ version: "2023-08-01",
3675
+ protocol: "HTTPS",
3676
+ pathname: "/",
3677
+ method: "POST",
3678
+ authType: "AK",
3679
+ style: "RPC",
3680
+ reqBodyType: "formData",
3681
+ bodyType: "json",
3682
+ });
3683
+ return $tea.cast(await this.callApi(params, req, runtime), new GetGeneratedContentResponse({}));
3684
+ }
3685
+ async getGeneratedContent(request) {
3686
+ let runtime = new $Util.RuntimeOptions({});
3687
+ return await this.getGeneratedContentWithOptions(request, runtime);
3688
+ }
3689
+ async getMaterialByIdWithOptions(request, runtime) {
3690
+ tea_util_1.default.validateModel(request);
3691
+ let query = {};
3692
+ if (!tea_util_1.default.isUnset(request.agentKey)) {
3693
+ query["AgentKey"] = request.agentKey;
3694
+ }
3695
+ let body = {};
3696
+ if (!tea_util_1.default.isUnset(request.id)) {
3697
+ body["Id"] = request.id;
3698
+ }
3699
+ let req = new $OpenApi.OpenApiRequest({
3700
+ query: openapi_util_1.default.query(query),
3701
+ body: openapi_util_1.default.parseToMap(body),
3702
+ });
3703
+ let params = new $OpenApi.Params({
3704
+ action: "GetMaterialById",
3705
+ version: "2023-08-01",
3706
+ protocol: "HTTPS",
3707
+ pathname: "/",
3708
+ method: "POST",
3709
+ authType: "AK",
3710
+ style: "RPC",
3711
+ reqBodyType: "formData",
3712
+ bodyType: "json",
3713
+ });
3714
+ return $tea.cast(await this.callApi(params, req, runtime), new GetMaterialByIdResponse({}));
3715
+ }
3716
+ async getMaterialById(request) {
3717
+ let runtime = new $Util.RuntimeOptions({});
3718
+ return await this.getMaterialByIdWithOptions(request, runtime);
3719
+ }
3720
+ async getPropertiesWithOptions(request, runtime) {
3721
+ tea_util_1.default.validateModel(request);
3722
+ let query = {};
3723
+ if (!tea_util_1.default.isUnset(request.agentKey)) {
3724
+ query["AgentKey"] = request.agentKey;
3725
+ }
3726
+ let req = new $OpenApi.OpenApiRequest({
3727
+ query: openapi_util_1.default.query(query),
3728
+ });
3729
+ let params = new $OpenApi.Params({
3730
+ action: "GetProperties",
3731
+ version: "2023-08-01",
3732
+ protocol: "HTTPS",
3733
+ pathname: "/",
3734
+ method: "POST",
3735
+ authType: "AK",
3736
+ style: "RPC",
3737
+ reqBodyType: "formData",
3738
+ bodyType: "json",
3739
+ });
3740
+ return $tea.cast(await this.callApi(params, req, runtime), new GetPropertiesResponse({}));
3741
+ }
3742
+ async getProperties(request) {
3743
+ let runtime = new $Util.RuntimeOptions({});
3744
+ return await this.getPropertiesWithOptions(request, runtime);
3745
+ }
3746
+ async listAsyncTasksWithOptions(tmpReq, runtime) {
3747
+ tea_util_1.default.validateModel(tmpReq);
3748
+ let request = new ListAsyncTasksShrinkRequest({});
3749
+ openapi_util_1.default.convert(tmpReq, request);
3750
+ if (!tea_util_1.default.isUnset(tmpReq.taskStatusList)) {
3751
+ request.taskStatusListShrink = openapi_util_1.default.arrayToStringWithSpecifiedStyle(tmpReq.taskStatusList, "TaskStatusList", "json");
3752
+ }
3753
+ if (!tea_util_1.default.isUnset(tmpReq.taskTypeList)) {
3754
+ request.taskTypeListShrink = openapi_util_1.default.arrayToStringWithSpecifiedStyle(tmpReq.taskTypeList, "TaskTypeList", "json");
3755
+ }
3756
+ let query = {};
3757
+ if (!tea_util_1.default.isUnset(request.agentKey)) {
3758
+ query["AgentKey"] = request.agentKey;
3759
+ }
3760
+ let body = {};
3761
+ if (!tea_util_1.default.isUnset(request.createTimeEnd)) {
3762
+ body["CreateTimeEnd"] = request.createTimeEnd;
3763
+ }
3764
+ if (!tea_util_1.default.isUnset(request.createTimeStart)) {
3765
+ body["CreateTimeStart"] = request.createTimeStart;
3766
+ }
3767
+ if (!tea_util_1.default.isUnset(request.current)) {
3768
+ body["Current"] = request.current;
3769
+ }
3770
+ if (!tea_util_1.default.isUnset(request.size)) {
3771
+ body["Size"] = request.size;
3772
+ }
3773
+ if (!tea_util_1.default.isUnset(request.taskCode)) {
3774
+ body["TaskCode"] = request.taskCode;
3775
+ }
3776
+ if (!tea_util_1.default.isUnset(request.taskName)) {
3777
+ body["TaskName"] = request.taskName;
3778
+ }
3779
+ if (!tea_util_1.default.isUnset(request.taskStatus)) {
3780
+ body["TaskStatus"] = request.taskStatus;
3781
+ }
3782
+ if (!tea_util_1.default.isUnset(request.taskStatusListShrink)) {
3783
+ body["TaskStatusList"] = request.taskStatusListShrink;
3784
+ }
3785
+ if (!tea_util_1.default.isUnset(request.taskType)) {
3786
+ body["TaskType"] = request.taskType;
3787
+ }
3788
+ if (!tea_util_1.default.isUnset(request.taskTypeListShrink)) {
3789
+ body["TaskTypeList"] = request.taskTypeListShrink;
3790
+ }
3791
+ let req = new $OpenApi.OpenApiRequest({
3792
+ query: openapi_util_1.default.query(query),
3793
+ body: openapi_util_1.default.parseToMap(body),
3794
+ });
3795
+ let params = new $OpenApi.Params({
3796
+ action: "ListAsyncTasks",
3797
+ version: "2023-08-01",
3798
+ protocol: "HTTPS",
3799
+ pathname: "/",
3800
+ method: "POST",
3801
+ authType: "AK",
3802
+ style: "RPC",
3803
+ reqBodyType: "formData",
3804
+ bodyType: "json",
3805
+ });
3806
+ return $tea.cast(await this.callApi(params, req, runtime), new ListAsyncTasksResponse({}));
3807
+ }
3808
+ async listAsyncTasks(request) {
3809
+ let runtime = new $Util.RuntimeOptions({});
3810
+ return await this.listAsyncTasksWithOptions(request, runtime);
3811
+ }
3812
+ async listBuildConfigsWithOptions(request, runtime) {
3813
+ tea_util_1.default.validateModel(request);
3814
+ let query = {};
3815
+ if (!tea_util_1.default.isUnset(request.agentKey)) {
3816
+ query["AgentKey"] = request.agentKey;
3817
+ }
3818
+ let body = {};
3819
+ if (!tea_util_1.default.isUnset(request.type)) {
3820
+ body["Type"] = request.type;
3821
+ }
3822
+ let req = new $OpenApi.OpenApiRequest({
3823
+ query: openapi_util_1.default.query(query),
3824
+ body: openapi_util_1.default.parseToMap(body),
3825
+ });
3826
+ let params = new $OpenApi.Params({
3827
+ action: "ListBuildConfigs",
3828
+ version: "2023-08-01",
3829
+ protocol: "HTTPS",
3830
+ pathname: "/",
3831
+ method: "POST",
3832
+ authType: "AK",
3833
+ style: "RPC",
3834
+ reqBodyType: "formData",
3835
+ bodyType: "json",
3836
+ });
3837
+ return $tea.cast(await this.callApi(params, req, runtime), new ListBuildConfigsResponse({}));
3838
+ }
3839
+ async listBuildConfigs(request) {
3840
+ let runtime = new $Util.RuntimeOptions({});
3841
+ return await this.listBuildConfigsWithOptions(request, runtime);
3842
+ }
3843
+ async listDialoguesWithOptions(request, runtime) {
3844
+ tea_util_1.default.validateModel(request);
3845
+ let query = {};
3846
+ if (!tea_util_1.default.isUnset(request.agentKey)) {
3847
+ query["AgentKey"] = request.agentKey;
3848
+ }
3849
+ let body = {};
3850
+ if (!tea_util_1.default.isUnset(request.current)) {
3851
+ body["Current"] = request.current;
3852
+ }
3853
+ if (!tea_util_1.default.isUnset(request.dialogueType)) {
3854
+ body["DialogueType"] = request.dialogueType;
3855
+ }
3856
+ if (!tea_util_1.default.isUnset(request.endTime)) {
3857
+ body["EndTime"] = request.endTime;
3858
+ }
3859
+ if (!tea_util_1.default.isUnset(request.size)) {
3860
+ body["Size"] = request.size;
3861
+ }
3862
+ if (!tea_util_1.default.isUnset(request.startTime)) {
3863
+ body["StartTime"] = request.startTime;
3864
+ }
3865
+ if (!tea_util_1.default.isUnset(request.taskId)) {
3866
+ body["TaskId"] = request.taskId;
3867
+ }
3868
+ let req = new $OpenApi.OpenApiRequest({
3869
+ query: openapi_util_1.default.query(query),
3870
+ body: openapi_util_1.default.parseToMap(body),
3871
+ });
3872
+ let params = new $OpenApi.Params({
3873
+ action: "ListDialogues",
3874
+ version: "2023-08-01",
3875
+ protocol: "HTTPS",
3876
+ pathname: "/",
3877
+ method: "POST",
3878
+ authType: "AK",
3879
+ style: "RPC",
3880
+ reqBodyType: "formData",
3881
+ bodyType: "json",
3882
+ });
3883
+ return $tea.cast(await this.callApi(params, req, runtime), new ListDialoguesResponse({}));
3884
+ }
3885
+ async listDialogues(request) {
3886
+ let runtime = new $Util.RuntimeOptions({});
3887
+ return await this.listDialoguesWithOptions(request, runtime);
3888
+ }
3889
+ async listGeneratedContentsWithOptions(request, runtime) {
3890
+ tea_util_1.default.validateModel(request);
3891
+ let query = {};
3892
+ if (!tea_util_1.default.isUnset(request.agentKey)) {
3893
+ query["AgentKey"] = request.agentKey;
3894
+ }
3895
+ let body = {};
3896
+ if (!tea_util_1.default.isUnset(request.contentDomain)) {
3897
+ body["ContentDomain"] = request.contentDomain;
3898
+ }
3899
+ if (!tea_util_1.default.isUnset(request.current)) {
3900
+ body["Current"] = request.current;
3901
+ }
3902
+ if (!tea_util_1.default.isUnset(request.endTime)) {
3903
+ body["EndTime"] = request.endTime;
3904
+ }
3905
+ if (!tea_util_1.default.isUnset(request.size)) {
3906
+ body["Size"] = request.size;
3907
+ }
3908
+ if (!tea_util_1.default.isUnset(request.startTime)) {
3909
+ body["StartTime"] = request.startTime;
3910
+ }
3911
+ if (!tea_util_1.default.isUnset(request.title)) {
3912
+ body["Title"] = request.title;
3913
+ }
3914
+ let req = new $OpenApi.OpenApiRequest({
3915
+ query: openapi_util_1.default.query(query),
3916
+ body: openapi_util_1.default.parseToMap(body),
3917
+ });
3918
+ let params = new $OpenApi.Params({
3919
+ action: "ListGeneratedContents",
3920
+ version: "2023-08-01",
3921
+ protocol: "HTTPS",
3922
+ pathname: "/",
3923
+ method: "POST",
3924
+ authType: "AK",
3925
+ style: "RPC",
3926
+ reqBodyType: "formData",
3927
+ bodyType: "json",
3928
+ });
3929
+ return $tea.cast(await this.callApi(params, req, runtime), new ListGeneratedContentsResponse({}));
3930
+ }
3931
+ async listGeneratedContents(request) {
3932
+ let runtime = new $Util.RuntimeOptions({});
3933
+ return await this.listGeneratedContentsWithOptions(request, runtime);
3934
+ }
3935
+ async listHotNewsWithTypeWithOptions(tmpReq, runtime) {
3936
+ tea_util_1.default.validateModel(tmpReq);
3937
+ let request = new ListHotNewsWithTypeShrinkRequest({});
3938
+ openapi_util_1.default.convert(tmpReq, request);
3939
+ if (!tea_util_1.default.isUnset(tmpReq.newsTypes)) {
3940
+ request.newsTypesShrink = openapi_util_1.default.arrayToStringWithSpecifiedStyle(tmpReq.newsTypes, "NewsTypes", "json");
3941
+ }
3942
+ let query = {};
3943
+ if (!tea_util_1.default.isUnset(request.agentKey)) {
3944
+ query["AgentKey"] = request.agentKey;
3945
+ }
3946
+ let body = {};
3947
+ if (!tea_util_1.default.isUnset(request.current)) {
3948
+ body["Current"] = request.current;
3949
+ }
3950
+ if (!tea_util_1.default.isUnset(request.newsType)) {
3951
+ body["NewsType"] = request.newsType;
3952
+ }
3953
+ if (!tea_util_1.default.isUnset(request.newsTypesShrink)) {
3954
+ body["NewsTypes"] = request.newsTypesShrink;
3955
+ }
3956
+ if (!tea_util_1.default.isUnset(request.size)) {
3957
+ body["Size"] = request.size;
3958
+ }
3959
+ let req = new $OpenApi.OpenApiRequest({
3960
+ query: openapi_util_1.default.query(query),
3961
+ body: openapi_util_1.default.parseToMap(body),
3962
+ });
3963
+ let params = new $OpenApi.Params({
3964
+ action: "ListHotNewsWithType",
3965
+ version: "2023-08-01",
3966
+ protocol: "HTTPS",
3967
+ pathname: "/",
3968
+ method: "POST",
3969
+ authType: "AK",
3970
+ style: "RPC",
3971
+ reqBodyType: "formData",
3972
+ bodyType: "json",
3973
+ });
3974
+ return $tea.cast(await this.callApi(params, req, runtime), new ListHotNewsWithTypeResponse({}));
3975
+ }
3976
+ async listHotNewsWithType(request) {
3977
+ let runtime = new $Util.RuntimeOptions({});
3978
+ return await this.listHotNewsWithTypeWithOptions(request, runtime);
3979
+ }
3980
+ async listMaterialDocumentsWithOptions(tmpReq, runtime) {
3981
+ tea_util_1.default.validateModel(tmpReq);
3982
+ let request = new ListMaterialDocumentsShrinkRequest({});
3983
+ openapi_util_1.default.convert(tmpReq, request);
3984
+ if (!tea_util_1.default.isUnset(tmpReq.docTypeList)) {
3985
+ request.docTypeListShrink = openapi_util_1.default.arrayToStringWithSpecifiedStyle(tmpReq.docTypeList, "DocTypeList", "json");
3986
+ }
3987
+ if (!tea_util_1.default.isUnset(tmpReq.keywords)) {
3988
+ request.keywordsShrink = openapi_util_1.default.arrayToStringWithSpecifiedStyle(tmpReq.keywords, "Keywords", "json");
3989
+ }
3990
+ let query = {};
3991
+ if (!tea_util_1.default.isUnset(request.agentKey)) {
3992
+ query["AgentKey"] = request.agentKey;
3993
+ }
3994
+ let body = {};
3995
+ if (!tea_util_1.default.isUnset(request.content)) {
3996
+ body["Content"] = request.content;
3997
+ }
3998
+ if (!tea_util_1.default.isUnset(request.createTimeEnd)) {
3999
+ body["CreateTimeEnd"] = request.createTimeEnd;
4000
+ }
4001
+ if (!tea_util_1.default.isUnset(request.createTimeStart)) {
4002
+ body["CreateTimeStart"] = request.createTimeStart;
4003
+ }
4004
+ if (!tea_util_1.default.isUnset(request.current)) {
4005
+ body["Current"] = request.current;
4006
+ }
4007
+ if (!tea_util_1.default.isUnset(request.docType)) {
4008
+ body["DocType"] = request.docType;
4009
+ }
4010
+ if (!tea_util_1.default.isUnset(request.docTypeListShrink)) {
4011
+ body["DocTypeList"] = request.docTypeListShrink;
4012
+ }
4013
+ if (!tea_util_1.default.isUnset(request.generatePublicUrl)) {
4014
+ body["GeneratePublicUrl"] = request.generatePublicUrl;
4015
+ }
4016
+ if (!tea_util_1.default.isUnset(request.id)) {
4017
+ body["Id"] = request.id;
4018
+ }
4019
+ if (!tea_util_1.default.isUnset(request.keywordsShrink)) {
4020
+ body["Keywords"] = request.keywordsShrink;
4021
+ }
4022
+ if (!tea_util_1.default.isUnset(request.query)) {
4023
+ body["Query"] = request.query;
4024
+ }
4025
+ if (!tea_util_1.default.isUnset(request.shareAttr)) {
4026
+ body["ShareAttr"] = request.shareAttr;
4027
+ }
4028
+ if (!tea_util_1.default.isUnset(request.size)) {
4029
+ body["Size"] = request.size;
4030
+ }
4031
+ if (!tea_util_1.default.isUnset(request.title)) {
4032
+ body["Title"] = request.title;
4033
+ }
4034
+ if (!tea_util_1.default.isUnset(request.updateTimeEnd)) {
4035
+ body["UpdateTimeEnd"] = request.updateTimeEnd;
4036
+ }
4037
+ if (!tea_util_1.default.isUnset(request.updateTimeStart)) {
4038
+ body["UpdateTimeStart"] = request.updateTimeStart;
4039
+ }
4040
+ let req = new $OpenApi.OpenApiRequest({
4041
+ query: openapi_util_1.default.query(query),
4042
+ body: openapi_util_1.default.parseToMap(body),
4043
+ });
4044
+ let params = new $OpenApi.Params({
4045
+ action: "ListMaterialDocuments",
4046
+ version: "2023-08-01",
4047
+ protocol: "HTTPS",
4048
+ pathname: "/",
4049
+ method: "POST",
4050
+ authType: "AK",
4051
+ style: "RPC",
4052
+ reqBodyType: "formData",
4053
+ bodyType: "json",
4054
+ });
4055
+ return $tea.cast(await this.callApi(params, req, runtime), new ListMaterialDocumentsResponse({}));
4056
+ }
4057
+ async listMaterialDocuments(request) {
4058
+ let runtime = new $Util.RuntimeOptions({});
4059
+ return await this.listMaterialDocumentsWithOptions(request, runtime);
4060
+ }
4061
+ async listVersionsWithOptions(request, runtime) {
4062
+ tea_util_1.default.validateModel(request);
4063
+ let query = {};
4064
+ if (!tea_util_1.default.isUnset(request.agentKey)) {
4065
+ query["AgentKey"] = request.agentKey;
4066
+ }
4067
+ let req = new $OpenApi.OpenApiRequest({
4068
+ query: openapi_util_1.default.query(query),
4069
+ });
4070
+ let params = new $OpenApi.Params({
4071
+ action: "ListVersions",
4072
+ version: "2023-08-01",
4073
+ protocol: "HTTPS",
4074
+ pathname: "/",
4075
+ method: "POST",
4076
+ authType: "AK",
4077
+ style: "RPC",
4078
+ reqBodyType: "formData",
4079
+ bodyType: "json",
4080
+ });
4081
+ return $tea.cast(await this.callApi(params, req, runtime), new ListVersionsResponse({}));
4082
+ }
4083
+ async listVersions(request) {
4084
+ let runtime = new $Util.RuntimeOptions({});
4085
+ return await this.listVersionsWithOptions(request, runtime);
4086
+ }
4087
+ async queryAsyncTaskWithOptions(request, runtime) {
4088
+ tea_util_1.default.validateModel(request);
4089
+ let query = {};
4090
+ if (!tea_util_1.default.isUnset(request.agentKey)) {
4091
+ query["AgentKey"] = request.agentKey;
4092
+ }
4093
+ let body = {};
4094
+ if (!tea_util_1.default.isUnset(request.taskId)) {
4095
+ body["TaskId"] = request.taskId;
4096
+ }
4097
+ let req = new $OpenApi.OpenApiRequest({
4098
+ query: openapi_util_1.default.query(query),
4099
+ body: openapi_util_1.default.parseToMap(body),
4100
+ });
4101
+ let params = new $OpenApi.Params({
4102
+ action: "QueryAsyncTask",
4103
+ version: "2023-08-01",
4104
+ protocol: "HTTPS",
4105
+ pathname: "/",
4106
+ method: "POST",
4107
+ authType: "AK",
4108
+ style: "RPC",
4109
+ reqBodyType: "formData",
4110
+ bodyType: "json",
4111
+ });
4112
+ return $tea.cast(await this.callApi(params, req, runtime), new QueryAsyncTaskResponse({}));
4113
+ }
4114
+ async queryAsyncTask(request) {
4115
+ let runtime = new $Util.RuntimeOptions({});
4116
+ return await this.queryAsyncTaskWithOptions(request, runtime);
4117
+ }
4118
+ async saveDataSourceOrderConfigWithOptions(tmpReq, runtime) {
4119
+ tea_util_1.default.validateModel(tmpReq);
4120
+ let request = new SaveDataSourceOrderConfigShrinkRequest({});
4121
+ openapi_util_1.default.convert(tmpReq, request);
4122
+ if (!tea_util_1.default.isUnset(tmpReq.userConfigDataSourceList)) {
4123
+ request.userConfigDataSourceListShrink = openapi_util_1.default.arrayToStringWithSpecifiedStyle(tmpReq.userConfigDataSourceList, "UserConfigDataSourceList", "json");
4124
+ }
4125
+ let query = {};
4126
+ if (!tea_util_1.default.isUnset(request.agentKey)) {
4127
+ query["AgentKey"] = request.agentKey;
4128
+ }
4129
+ let body = {};
4130
+ if (!tea_util_1.default.isUnset(request.productCode)) {
4131
+ body["ProductCode"] = request.productCode;
4132
+ }
4133
+ if (!tea_util_1.default.isUnset(request.userConfigDataSourceListShrink)) {
4134
+ body["UserConfigDataSourceList"] = request.userConfigDataSourceListShrink;
4135
+ }
4136
+ let req = new $OpenApi.OpenApiRequest({
4137
+ query: openapi_util_1.default.query(query),
4138
+ body: openapi_util_1.default.parseToMap(body),
4139
+ });
4140
+ let params = new $OpenApi.Params({
4141
+ action: "SaveDataSourceOrderConfig",
4142
+ version: "2023-08-01",
4143
+ protocol: "HTTPS",
4144
+ pathname: "/",
4145
+ method: "POST",
4146
+ authType: "AK",
4147
+ style: "RPC",
4148
+ reqBodyType: "formData",
4149
+ bodyType: "json",
4150
+ });
4151
+ return $tea.cast(await this.callApi(params, req, runtime), new SaveDataSourceOrderConfigResponse({}));
4152
+ }
4153
+ async saveDataSourceOrderConfig(request) {
4154
+ let runtime = new $Util.RuntimeOptions({});
4155
+ return await this.saveDataSourceOrderConfigWithOptions(request, runtime);
4156
+ }
4157
+ async saveMaterialDocumentWithOptions(tmpReq, runtime) {
4158
+ tea_util_1.default.validateModel(tmpReq);
4159
+ let request = new SaveMaterialDocumentShrinkRequest({});
4160
+ openapi_util_1.default.convert(tmpReq, request);
4161
+ if (!tea_util_1.default.isUnset(tmpReq.docKeywords)) {
4162
+ request.docKeywordsShrink = openapi_util_1.default.arrayToStringWithSpecifiedStyle(tmpReq.docKeywords, "DocKeywords", "json");
4163
+ }
4164
+ let query = {};
4165
+ if (!tea_util_1.default.isUnset(request.agentKey)) {
4166
+ query["AgentKey"] = request.agentKey;
4167
+ }
4168
+ let body = {};
4169
+ if (!tea_util_1.default.isUnset(request.author)) {
4170
+ body["Author"] = request.author;
4171
+ }
4172
+ if (!tea_util_1.default.isUnset(request.bothSavePrivateAndShare)) {
4173
+ body["BothSavePrivateAndShare"] = request.bothSavePrivateAndShare;
4174
+ }
4175
+ if (!tea_util_1.default.isUnset(request.docKeywordsShrink)) {
4176
+ body["DocKeywords"] = request.docKeywordsShrink;
4177
+ }
4178
+ if (!tea_util_1.default.isUnset(request.docType)) {
4179
+ body["DocType"] = request.docType;
4180
+ }
4181
+ if (!tea_util_1.default.isUnset(request.externalUrl)) {
4182
+ body["ExternalUrl"] = request.externalUrl;
4183
+ }
4184
+ if (!tea_util_1.default.isUnset(request.htmlContent)) {
4185
+ body["HtmlContent"] = request.htmlContent;
4186
+ }
4187
+ if (!tea_util_1.default.isUnset(request.pubTime)) {
4188
+ body["PubTime"] = request.pubTime;
4189
+ }
4190
+ if (!tea_util_1.default.isUnset(request.shareAttr)) {
4191
+ body["ShareAttr"] = request.shareAttr;
4192
+ }
4193
+ if (!tea_util_1.default.isUnset(request.srcFrom)) {
4194
+ body["SrcFrom"] = request.srcFrom;
4195
+ }
4196
+ if (!tea_util_1.default.isUnset(request.summary)) {
4197
+ body["Summary"] = request.summary;
4198
+ }
4199
+ if (!tea_util_1.default.isUnset(request.textContent)) {
4200
+ body["TextContent"] = request.textContent;
4201
+ }
4202
+ if (!tea_util_1.default.isUnset(request.title)) {
4203
+ body["Title"] = request.title;
4204
+ }
4205
+ if (!tea_util_1.default.isUnset(request.url)) {
4206
+ body["Url"] = request.url;
4207
+ }
4208
+ let req = new $OpenApi.OpenApiRequest({
4209
+ query: openapi_util_1.default.query(query),
4210
+ body: openapi_util_1.default.parseToMap(body),
4211
+ });
4212
+ let params = new $OpenApi.Params({
4213
+ action: "SaveMaterialDocument",
4214
+ version: "2023-08-01",
4215
+ protocol: "HTTPS",
4216
+ pathname: "/",
4217
+ method: "POST",
4218
+ authType: "AK",
4219
+ style: "RPC",
4220
+ reqBodyType: "formData",
4221
+ bodyType: "json",
4222
+ });
4223
+ return $tea.cast(await this.callApi(params, req, runtime), new SaveMaterialDocumentResponse({}));
4224
+ }
4225
+ async saveMaterialDocument(request) {
4226
+ let runtime = new $Util.RuntimeOptions({});
4227
+ return await this.saveMaterialDocumentWithOptions(request, runtime);
4228
+ }
4229
+ async submitAsyncTaskWithOptions(request, runtime) {
4230
+ tea_util_1.default.validateModel(request);
4231
+ let query = {};
4232
+ if (!tea_util_1.default.isUnset(request.agentKey)) {
4233
+ query["AgentKey"] = request.agentKey;
4234
+ }
4235
+ let body = {};
4236
+ if (!tea_util_1.default.isUnset(request.taskCode)) {
4237
+ body["TaskCode"] = request.taskCode;
4238
+ }
4239
+ if (!tea_util_1.default.isUnset(request.taskExecuteTime)) {
4240
+ body["TaskExecuteTime"] = request.taskExecuteTime;
4241
+ }
4242
+ if (!tea_util_1.default.isUnset(request.taskName)) {
4243
+ body["TaskName"] = request.taskName;
4244
+ }
4245
+ if (!tea_util_1.default.isUnset(request.taskParam)) {
4246
+ body["TaskParam"] = request.taskParam;
4247
+ }
4248
+ let req = new $OpenApi.OpenApiRequest({
4249
+ query: openapi_util_1.default.query(query),
4250
+ body: openapi_util_1.default.parseToMap(body),
4251
+ });
4252
+ let params = new $OpenApi.Params({
4253
+ action: "SubmitAsyncTask",
4254
+ version: "2023-08-01",
4255
+ protocol: "HTTPS",
4256
+ pathname: "/",
4257
+ method: "POST",
4258
+ authType: "AK",
4259
+ style: "RPC",
4260
+ reqBodyType: "formData",
4261
+ bodyType: "json",
4262
+ });
4263
+ return $tea.cast(await this.callApi(params, req, runtime), new SubmitAsyncTaskResponse({}));
4264
+ }
4265
+ async submitAsyncTask(request) {
4266
+ let runtime = new $Util.RuntimeOptions({});
4267
+ return await this.submitAsyncTaskWithOptions(request, runtime);
4268
+ }
4269
+ async updateGeneratedContentWithOptions(tmpReq, runtime) {
4270
+ tea_util_1.default.validateModel(tmpReq);
4271
+ let request = new UpdateGeneratedContentShrinkRequest({});
4272
+ openapi_util_1.default.convert(tmpReq, request);
4273
+ if (!tea_util_1.default.isUnset(tmpReq.keywords)) {
4274
+ request.keywordsShrink = openapi_util_1.default.arrayToStringWithSpecifiedStyle(tmpReq.keywords, "Keywords", "json");
4275
+ }
4276
+ let query = {};
4277
+ if (!tea_util_1.default.isUnset(request.agentKey)) {
4278
+ query["AgentKey"] = request.agentKey;
4279
+ }
4280
+ let body = {};
4281
+ if (!tea_util_1.default.isUnset(request.content)) {
4282
+ body["Content"] = request.content;
4283
+ }
4284
+ if (!tea_util_1.default.isUnset(request.contentText)) {
4285
+ body["ContentText"] = request.contentText;
4286
+ }
4287
+ if (!tea_util_1.default.isUnset(request.id)) {
4288
+ body["Id"] = request.id;
4289
+ }
4290
+ if (!tea_util_1.default.isUnset(request.keywordsShrink)) {
4291
+ body["Keywords"] = request.keywordsShrink;
4292
+ }
4293
+ if (!tea_util_1.default.isUnset(request.prompt)) {
4294
+ body["Prompt"] = request.prompt;
4295
+ }
4296
+ if (!tea_util_1.default.isUnset(request.title)) {
4297
+ body["Title"] = request.title;
4298
+ }
4299
+ let req = new $OpenApi.OpenApiRequest({
4300
+ query: openapi_util_1.default.query(query),
4301
+ body: openapi_util_1.default.parseToMap(body),
4302
+ });
4303
+ let params = new $OpenApi.Params({
4304
+ action: "UpdateGeneratedContent",
4305
+ version: "2023-08-01",
4306
+ protocol: "HTTPS",
4307
+ pathname: "/",
4308
+ method: "POST",
4309
+ authType: "AK",
4310
+ style: "RPC",
4311
+ reqBodyType: "formData",
4312
+ bodyType: "json",
4313
+ });
4314
+ return $tea.cast(await this.callApi(params, req, runtime), new UpdateGeneratedContentResponse({}));
4315
+ }
4316
+ async updateGeneratedContent(request) {
4317
+ let runtime = new $Util.RuntimeOptions({});
4318
+ return await this.updateGeneratedContentWithOptions(request, runtime);
4319
+ }
4320
+ async updateMaterialDocumentWithOptions(tmpReq, runtime) {
4321
+ tea_util_1.default.validateModel(tmpReq);
4322
+ let request = new UpdateMaterialDocumentShrinkRequest({});
4323
+ openapi_util_1.default.convert(tmpReq, request);
4324
+ if (!tea_util_1.default.isUnset(tmpReq.docKeywords)) {
4325
+ request.docKeywordsShrink = openapi_util_1.default.arrayToStringWithSpecifiedStyle(tmpReq.docKeywords, "DocKeywords", "json");
4326
+ }
4327
+ let query = {};
4328
+ if (!tea_util_1.default.isUnset(request.agentKey)) {
4329
+ query["AgentKey"] = request.agentKey;
4330
+ }
4331
+ let body = {};
4332
+ if (!tea_util_1.default.isUnset(request.author)) {
4333
+ body["Author"] = request.author;
4334
+ }
4335
+ if (!tea_util_1.default.isUnset(request.docKeywordsShrink)) {
4336
+ body["DocKeywords"] = request.docKeywordsShrink;
4337
+ }
4338
+ if (!tea_util_1.default.isUnset(request.docType)) {
4339
+ body["DocType"] = request.docType;
4340
+ }
4341
+ if (!tea_util_1.default.isUnset(request.externalUrl)) {
4342
+ body["ExternalUrl"] = request.externalUrl;
4343
+ }
4344
+ if (!tea_util_1.default.isUnset(request.htmlContent)) {
4345
+ body["HtmlContent"] = request.htmlContent;
4346
+ }
4347
+ if (!tea_util_1.default.isUnset(request.id)) {
4348
+ body["Id"] = request.id;
4349
+ }
4350
+ if (!tea_util_1.default.isUnset(request.pubTime)) {
4351
+ body["PubTime"] = request.pubTime;
4352
+ }
4353
+ if (!tea_util_1.default.isUnset(request.shareAttr)) {
4354
+ body["ShareAttr"] = request.shareAttr;
4355
+ }
4356
+ if (!tea_util_1.default.isUnset(request.srcFrom)) {
4357
+ body["SrcFrom"] = request.srcFrom;
4358
+ }
4359
+ if (!tea_util_1.default.isUnset(request.summary)) {
4360
+ body["Summary"] = request.summary;
4361
+ }
4362
+ if (!tea_util_1.default.isUnset(request.textContent)) {
4363
+ body["TextContent"] = request.textContent;
4364
+ }
4365
+ if (!tea_util_1.default.isUnset(request.title)) {
4366
+ body["Title"] = request.title;
4367
+ }
4368
+ if (!tea_util_1.default.isUnset(request.url)) {
4369
+ body["Url"] = request.url;
4370
+ }
4371
+ let req = new $OpenApi.OpenApiRequest({
4372
+ query: openapi_util_1.default.query(query),
4373
+ body: openapi_util_1.default.parseToMap(body),
4374
+ });
4375
+ let params = new $OpenApi.Params({
4376
+ action: "UpdateMaterialDocument",
4377
+ version: "2023-08-01",
4378
+ protocol: "HTTPS",
4379
+ pathname: "/",
4380
+ method: "POST",
4381
+ authType: "AK",
4382
+ style: "RPC",
4383
+ reqBodyType: "formData",
4384
+ bodyType: "json",
4385
+ });
4386
+ return $tea.cast(await this.callApi(params, req, runtime), new UpdateMaterialDocumentResponse({}));
4387
+ }
4388
+ async updateMaterialDocument(request) {
4389
+ let runtime = new $Util.RuntimeOptions({});
4390
+ return await this.updateMaterialDocumentWithOptions(request, runtime);
143
4391
  }
144
4392
  }
145
4393
  exports.default = Client;