@alicloud/aimiaobi20230801 1.36.1 → 1.37.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.
Files changed (93) hide show
  1. package/dist/client.d.ts +93 -2
  2. package/dist/client.js +654 -282
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/AddDatasetDocumentRequest.d.ts +46 -0
  5. package/dist/models/AddDatasetDocumentRequest.js +81 -1
  6. package/dist/models/AddDatasetDocumentRequest.js.map +1 -1
  7. package/dist/models/BindPptArtifactRequest.d.ts +37 -0
  8. package/dist/models/BindPptArtifactRequest.js +62 -0
  9. package/dist/models/BindPptArtifactRequest.js.map +1 -0
  10. package/dist/models/BindPptArtifactResponse.d.ts +19 -0
  11. package/dist/models/BindPptArtifactResponse.js +69 -0
  12. package/dist/models/BindPptArtifactResponse.js.map +1 -0
  13. package/dist/models/BindPptArtifactResponseBody.d.ts +59 -0
  14. package/dist/models/BindPptArtifactResponseBody.js +90 -0
  15. package/dist/models/BindPptArtifactResponseBody.js.map +1 -0
  16. package/dist/models/GetDatasetDocumentRequest.d.ts +1 -0
  17. package/dist/models/GetDatasetDocumentRequest.js +5 -0
  18. package/dist/models/GetDatasetDocumentRequest.js.map +1 -1
  19. package/dist/models/GetDatasetDocumentResponseBody.d.ts +48 -0
  20. package/dist/models/GetDatasetDocumentResponseBody.js +85 -1
  21. package/dist/models/GetDatasetDocumentResponseBody.js.map +1 -1
  22. package/dist/models/GetDatasetDocumentShrinkRequest.d.ts +42 -0
  23. package/dist/models/GetDatasetDocumentShrinkRequest.js +68 -0
  24. package/dist/models/GetDatasetDocumentShrinkRequest.js.map +1 -0
  25. package/dist/models/GetPptConfigRequest.d.ts +18 -0
  26. package/dist/models/GetPptConfigRequest.js +58 -0
  27. package/dist/models/GetPptConfigRequest.js.map +1 -0
  28. package/dist/models/GetPptConfigResponse.d.ts +19 -0
  29. package/dist/models/GetPptConfigResponse.js +69 -0
  30. package/dist/models/GetPptConfigResponse.js.map +1 -0
  31. package/dist/models/GetPptConfigResponseBody.d.ts +70 -0
  32. package/dist/models/GetPptConfigResponseBody.js +92 -0
  33. package/dist/models/GetPptConfigResponseBody.js.map +1 -0
  34. package/dist/models/InitiatePptCreationRequest.d.ts +27 -0
  35. package/dist/models/InitiatePptCreationRequest.js +62 -0
  36. package/dist/models/InitiatePptCreationRequest.js.map +1 -0
  37. package/dist/models/InitiatePptCreationResponse.d.ts +19 -0
  38. package/dist/models/InitiatePptCreationResponse.js +69 -0
  39. package/dist/models/InitiatePptCreationResponse.js.map +1 -0
  40. package/dist/models/InitiatePptCreationResponseBody.d.ts +70 -0
  41. package/dist/models/InitiatePptCreationResponseBody.js +92 -0
  42. package/dist/models/InitiatePptCreationResponseBody.js.map +1 -0
  43. package/dist/models/ListDocumentRetrieveRequest.d.ts +5 -0
  44. package/dist/models/ListDocumentRetrieveRequest.js +2 -0
  45. package/dist/models/ListDocumentRetrieveRequest.js.map +1 -1
  46. package/dist/models/RunAiHelperWritingRequest.d.ts +66 -0
  47. package/dist/models/RunAiHelperWritingRequest.js +73 -0
  48. package/dist/models/RunAiHelperWritingRequest.js.map +1 -0
  49. package/dist/models/RunAiHelperWritingResponse.d.ts +19 -0
  50. package/dist/models/RunAiHelperWritingResponse.js +69 -0
  51. package/dist/models/RunAiHelperWritingResponse.js.map +1 -0
  52. package/dist/models/RunAiHelperWritingResponseBody.d.ts +219 -0
  53. package/dist/models/RunAiHelperWritingResponseBody.js +181 -0
  54. package/dist/models/RunAiHelperWritingResponseBody.js.map +1 -0
  55. package/dist/models/RunAiHelperWritingShrinkRequest.d.ts +64 -0
  56. package/dist/models/RunAiHelperWritingShrinkRequest.js +70 -0
  57. package/dist/models/RunAiHelperWritingShrinkRequest.js.map +1 -0
  58. package/dist/models/RunPptOutlineGenerationRequest.d.ts +26 -0
  59. package/dist/models/RunPptOutlineGenerationRequest.js +60 -0
  60. package/dist/models/RunPptOutlineGenerationRequest.js.map +1 -0
  61. package/dist/models/RunPptOutlineGenerationResponse.d.ts +19 -0
  62. package/dist/models/RunPptOutlineGenerationResponse.js +69 -0
  63. package/dist/models/RunPptOutlineGenerationResponse.js.map +1 -0
  64. package/dist/models/RunPptOutlineGenerationResponseBody.d.ts +113 -0
  65. package/dist/models/RunPptOutlineGenerationResponseBody.js +148 -0
  66. package/dist/models/RunPptOutlineGenerationResponseBody.js.map +1 -0
  67. package/dist/models/model.d.ts +33 -0
  68. package/dist/models/model.js +99 -32
  69. package/dist/models/model.js.map +1 -1
  70. package/package.json +1 -1
  71. package/src/client.ts +420 -26
  72. package/src/models/AddDatasetDocumentRequest.ts +99 -0
  73. package/src/models/BindPptArtifactRequest.ts +54 -0
  74. package/src/models/BindPptArtifactResponse.ts +40 -0
  75. package/src/models/BindPptArtifactResponseBody.ts +95 -0
  76. package/src/models/GetDatasetDocumentRequest.ts +6 -0
  77. package/src/models/GetDatasetDocumentResponseBody.ts +105 -0
  78. package/src/models/GetDatasetDocumentShrinkRequest.ts +65 -0
  79. package/src/models/GetPptConfigRequest.ts +31 -0
  80. package/src/models/GetPptConfigResponse.ts +40 -0
  81. package/src/models/GetPptConfigResponseBody.ts +108 -0
  82. package/src/models/InitiatePptCreationRequest.ts +44 -0
  83. package/src/models/InitiatePptCreationResponse.ts +40 -0
  84. package/src/models/InitiatePptCreationResponseBody.ts +108 -0
  85. package/src/models/ListDocumentRetrieveRequest.ts +7 -0
  86. package/src/models/RunAiHelperWritingRequest.ts +92 -0
  87. package/src/models/RunAiHelperWritingResponse.ts +40 -0
  88. package/src/models/RunAiHelperWritingResponseBody.ts +317 -0
  89. package/src/models/RunAiHelperWritingShrinkRequest.ts +89 -0
  90. package/src/models/RunPptOutlineGenerationRequest.ts +41 -0
  91. package/src/models/RunPptOutlineGenerationResponse.ts +40 -0
  92. package/src/models/RunPptOutlineGenerationResponseBody.ts +189 -0
  93. package/src/models/model.ts +33 -0
@@ -0,0 +1,108 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class InitiatePptCreationResponseBodyData extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * AppKey
9
+ *
10
+ * @example
11
+ * S1X5ecouBztZelaQ
12
+ */
13
+ appKey?: string;
14
+ /**
15
+ * @remarks
16
+ * Code
17
+ *
18
+ * @example
19
+ * 7dhqd2
20
+ */
21
+ code?: string;
22
+ static names(): { [key: string]: string } {
23
+ return {
24
+ appKey: 'AppKey',
25
+ code: 'Code',
26
+ };
27
+ }
28
+
29
+ static types(): { [key: string]: any } {
30
+ return {
31
+ appKey: 'string',
32
+ code: 'string',
33
+ };
34
+ }
35
+
36
+ validate() {
37
+ super.validate();
38
+ }
39
+
40
+ constructor(map?: { [key: string]: any }) {
41
+ super(map);
42
+ }
43
+ }
44
+
45
+ export class InitiatePptCreationResponseBody extends $dara.Model {
46
+ /**
47
+ * @example
48
+ * DataNotExists
49
+ */
50
+ code?: string;
51
+ data?: InitiatePptCreationResponseBodyData;
52
+ /**
53
+ * @example
54
+ * 400
55
+ */
56
+ httpStatusCode?: number;
57
+ /**
58
+ * @example
59
+ * 错误消息
60
+ */
61
+ message?: string;
62
+ /**
63
+ * @remarks
64
+ * Id of the request
65
+ *
66
+ * @example
67
+ * 11AC01F1-88FB-5C4D-B6F5-E8BB136CD5A3
68
+ */
69
+ requestId?: string;
70
+ /**
71
+ * @example
72
+ * true
73
+ */
74
+ success?: boolean;
75
+ static names(): { [key: string]: string } {
76
+ return {
77
+ code: 'Code',
78
+ data: 'Data',
79
+ httpStatusCode: 'HttpStatusCode',
80
+ message: 'Message',
81
+ requestId: 'RequestId',
82
+ success: 'Success',
83
+ };
84
+ }
85
+
86
+ static types(): { [key: string]: any } {
87
+ return {
88
+ code: 'string',
89
+ data: InitiatePptCreationResponseBodyData,
90
+ httpStatusCode: 'number',
91
+ message: 'string',
92
+ requestId: 'string',
93
+ success: 'boolean',
94
+ };
95
+ }
96
+
97
+ validate() {
98
+ if(this.data && typeof (this.data as any).validate === 'function') {
99
+ (this.data as any).validate();
100
+ }
101
+ super.validate();
102
+ }
103
+
104
+ constructor(map?: { [key: string]: any }) {
105
+ super(map);
106
+ }
107
+ }
108
+
@@ -58,6 +58,11 @@ export class ListDocumentRetrieveRequest extends $dara.Model {
58
58
  * 1
59
59
  */
60
60
  subContentType?: string;
61
+ /**
62
+ * @example
63
+ * 国防和交流合作事务
64
+ */
65
+ subjectClassify?: string;
61
66
  /**
62
67
  * @example
63
68
  * 宁民规〔2020〕5号
@@ -84,6 +89,7 @@ export class ListDocumentRetrieveRequest extends $dara.Model {
84
89
  source: 'Source',
85
90
  startDate: 'StartDate',
86
91
  subContentType: 'SubContentType',
92
+ subjectClassify: 'SubjectClassify',
87
93
  wordSize: 'WordSize',
88
94
  workspaceId: 'WorkspaceId',
89
95
  };
@@ -102,6 +108,7 @@ export class ListDocumentRetrieveRequest extends $dara.Model {
102
108
  source: 'string',
103
109
  startDate: 'string',
104
110
  subContentType: 'string',
111
+ subjectClassify: 'string',
105
112
  wordSize: 'string',
106
113
  workspaceId: 'string',
107
114
  };
@@ -0,0 +1,92 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class RunAiHelperWritingRequest extends $dara.Model {
6
+ /**
7
+ * @example
8
+ * false
9
+ */
10
+ distributeWriting?: boolean;
11
+ /**
12
+ * @remarks
13
+ * This parameter is required.
14
+ *
15
+ * @example
16
+ * 请帮我写一篇关于人工智能发展趋势的文章
17
+ */
18
+ prompt?: string;
19
+ /**
20
+ * @example
21
+ * Template
22
+ */
23
+ promptMode?: string;
24
+ /**
25
+ * @remarks
26
+ * This parameter is required.
27
+ *
28
+ * @example
29
+ * llm-xxxxx
30
+ */
31
+ workspaceId?: string;
32
+ /**
33
+ * @example
34
+ * {"wordCount": "1000", "tone": "formal"}
35
+ */
36
+ writingParams?: { [key: string]: string };
37
+ /**
38
+ * @remarks
39
+ * 写作场景:government(政务)、media(传媒)、market(营销)、office(办公)、custom(自定义)
40
+ *
41
+ * This parameter is required.
42
+ *
43
+ * @example
44
+ * media
45
+ */
46
+ writingScene?: string;
47
+ /**
48
+ * @remarks
49
+ * 写作文体唯一标识KEY,可通过ListWritingStyles接口获取对应写作场景下的文体列表
50
+ *
51
+ * This parameter is required.
52
+ *
53
+ * @example
54
+ * news_article
55
+ */
56
+ writingStyle?: string;
57
+ static names(): { [key: string]: string } {
58
+ return {
59
+ distributeWriting: 'DistributeWriting',
60
+ prompt: 'Prompt',
61
+ promptMode: 'PromptMode',
62
+ workspaceId: 'WorkspaceId',
63
+ writingParams: 'WritingParams',
64
+ writingScene: 'WritingScene',
65
+ writingStyle: 'WritingStyle',
66
+ };
67
+ }
68
+
69
+ static types(): { [key: string]: any } {
70
+ return {
71
+ distributeWriting: 'boolean',
72
+ prompt: 'string',
73
+ promptMode: 'string',
74
+ workspaceId: 'string',
75
+ writingParams: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
76
+ writingScene: 'string',
77
+ writingStyle: 'string',
78
+ };
79
+ }
80
+
81
+ validate() {
82
+ if(this.writingParams) {
83
+ $dara.Model.validateMap(this.writingParams);
84
+ }
85
+ super.validate();
86
+ }
87
+
88
+ constructor(map?: { [key: string]: any }) {
89
+ super(map);
90
+ }
91
+ }
92
+
@@ -0,0 +1,40 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+ import { RunAiHelperWritingResponseBody } from "./RunAiHelperWritingResponseBody";
4
+
5
+
6
+ export class RunAiHelperWritingResponse extends $dara.Model {
7
+ headers?: { [key: string]: string };
8
+ statusCode?: number;
9
+ body?: RunAiHelperWritingResponseBody;
10
+ static names(): { [key: string]: string } {
11
+ return {
12
+ headers: 'headers',
13
+ statusCode: 'statusCode',
14
+ body: 'body',
15
+ };
16
+ }
17
+
18
+ static types(): { [key: string]: any } {
19
+ return {
20
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
21
+ statusCode: 'number',
22
+ body: RunAiHelperWritingResponseBody,
23
+ };
24
+ }
25
+
26
+ validate() {
27
+ if(this.headers) {
28
+ $dara.Model.validateMap(this.headers);
29
+ }
30
+ if(this.body && typeof (this.body as any).validate === 'function') {
31
+ (this.body as any).validate();
32
+ }
33
+ super.validate();
34
+ }
35
+
36
+ constructor(map?: { [key: string]: any }) {
37
+ super(map);
38
+ }
39
+ }
40
+
@@ -0,0 +1,317 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class RunAiHelperWritingResponseBodyHeader extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * 请求错误时的错误码
9
+ *
10
+ * @example
11
+ * InvalidParameter
12
+ */
13
+ errorCode?: string;
14
+ /**
15
+ * @remarks
16
+ * 请求错误时的详细错误信息
17
+ *
18
+ * @example
19
+ * 参数错误
20
+ */
21
+ errorMessage?: string;
22
+ /**
23
+ * @remarks
24
+ * SSE事件类型,如:result-generated(生成结果)、task-finished(任务完成)
25
+ *
26
+ * @example
27
+ * result-generated
28
+ */
29
+ event?: string;
30
+ /**
31
+ * @remarks
32
+ * 当前写作会话的唯一标识
33
+ *
34
+ * @example
35
+ * session-xxxxx
36
+ */
37
+ sessionId?: string;
38
+ /**
39
+ * @remarks
40
+ * HTTP状态码
41
+ *
42
+ * @example
43
+ * 200
44
+ */
45
+ statusCode?: number;
46
+ /**
47
+ * @remarks
48
+ * 写作任务的唯一标识
49
+ *
50
+ * @example
51
+ * task-xxxxx
52
+ */
53
+ taskId?: string;
54
+ /**
55
+ * @remarks
56
+ * 用于问题排查的链路追踪标识
57
+ *
58
+ * @example
59
+ * 1813ceee-7fe5-41b4-87e5-982a4d18cca5
60
+ */
61
+ traceId?: string;
62
+ static names(): { [key: string]: string } {
63
+ return {
64
+ errorCode: 'ErrorCode',
65
+ errorMessage: 'ErrorMessage',
66
+ event: 'Event',
67
+ sessionId: 'SessionId',
68
+ statusCode: 'StatusCode',
69
+ taskId: 'TaskId',
70
+ traceId: 'TraceId',
71
+ };
72
+ }
73
+
74
+ static types(): { [key: string]: any } {
75
+ return {
76
+ errorCode: 'string',
77
+ errorMessage: 'string',
78
+ event: 'string',
79
+ sessionId: 'string',
80
+ statusCode: 'number',
81
+ taskId: 'string',
82
+ traceId: 'string',
83
+ };
84
+ }
85
+
86
+ validate() {
87
+ super.validate();
88
+ }
89
+
90
+ constructor(map?: { [key: string]: any }) {
91
+ super(map);
92
+ }
93
+ }
94
+
95
+ export class RunAiHelperWritingResponseBodyPayloadOutput extends $dara.Model {
96
+ /**
97
+ * @remarks
98
+ * AI生成的文章内容,流式返回时为增量文本
99
+ *
100
+ * @example
101
+ * 人工智能正在深刻改变我们的生活...
102
+ */
103
+ text?: string;
104
+ /**
105
+ * @remarks
106
+ * 返回的写作参数键值对
107
+ *
108
+ * @example
109
+ * {"wordCount": "1000"}
110
+ */
111
+ writingParams?: { [key: string]: string };
112
+ static names(): { [key: string]: string } {
113
+ return {
114
+ text: 'Text',
115
+ writingParams: 'WritingParams',
116
+ };
117
+ }
118
+
119
+ static types(): { [key: string]: any } {
120
+ return {
121
+ text: 'string',
122
+ writingParams: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
123
+ };
124
+ }
125
+
126
+ validate() {
127
+ if(this.writingParams) {
128
+ $dara.Model.validateMap(this.writingParams);
129
+ }
130
+ super.validate();
131
+ }
132
+
133
+ constructor(map?: { [key: string]: any }) {
134
+ super(map);
135
+ }
136
+ }
137
+
138
+ export class RunAiHelperWritingResponseBodyPayloadUsage extends $dara.Model {
139
+ /**
140
+ * @remarks
141
+ * 输入内容消耗的Token数量
142
+ *
143
+ * @example
144
+ * 256
145
+ */
146
+ inputTokens?: number;
147
+ /**
148
+ * @remarks
149
+ * 生成内容消耗的Token数量
150
+ *
151
+ * @example
152
+ * 1024
153
+ */
154
+ outputTokens?: number;
155
+ /**
156
+ * @remarks
157
+ * 输入和输出Token的总和
158
+ *
159
+ * @example
160
+ * 1280
161
+ */
162
+ totalTokens?: number;
163
+ static names(): { [key: string]: string } {
164
+ return {
165
+ inputTokens: 'InputTokens',
166
+ outputTokens: 'OutputTokens',
167
+ totalTokens: 'TotalTokens',
168
+ };
169
+ }
170
+
171
+ static types(): { [key: string]: any } {
172
+ return {
173
+ inputTokens: 'number',
174
+ outputTokens: 'number',
175
+ totalTokens: 'number',
176
+ };
177
+ }
178
+
179
+ validate() {
180
+ super.validate();
181
+ }
182
+
183
+ constructor(map?: { [key: string]: any }) {
184
+ super(map);
185
+ }
186
+ }
187
+
188
+ export class RunAiHelperWritingResponseBodyPayload extends $dara.Model {
189
+ /**
190
+ * @remarks
191
+ * AI生成的写作内容
192
+ */
193
+ output?: RunAiHelperWritingResponseBodyPayloadOutput;
194
+ /**
195
+ * @remarks
196
+ * 本次请求的Token消耗统计
197
+ */
198
+ usage?: RunAiHelperWritingResponseBodyPayloadUsage;
199
+ static names(): { [key: string]: string } {
200
+ return {
201
+ output: 'Output',
202
+ usage: 'Usage',
203
+ };
204
+ }
205
+
206
+ static types(): { [key: string]: any } {
207
+ return {
208
+ output: RunAiHelperWritingResponseBodyPayloadOutput,
209
+ usage: RunAiHelperWritingResponseBodyPayloadUsage,
210
+ };
211
+ }
212
+
213
+ validate() {
214
+ if(this.output && typeof (this.output as any).validate === 'function') {
215
+ (this.output as any).validate();
216
+ }
217
+ if(this.usage && typeof (this.usage as any).validate === 'function') {
218
+ (this.usage as any).validate();
219
+ }
220
+ super.validate();
221
+ }
222
+
223
+ constructor(map?: { [key: string]: any }) {
224
+ super(map);
225
+ }
226
+ }
227
+
228
+ export class RunAiHelperWritingResponseBody extends $dara.Model {
229
+ /**
230
+ * @remarks
231
+ * 业务处理结果状态码
232
+ *
233
+ * @example
234
+ * successful
235
+ */
236
+ code?: string;
237
+ /**
238
+ * @remarks
239
+ * 流式响应的头部信息,包含事件类型、状态码等元数据
240
+ */
241
+ header?: RunAiHelperWritingResponseBodyHeader;
242
+ /**
243
+ * @remarks
244
+ * HTTP响应状态码
245
+ *
246
+ * @example
247
+ * 200
248
+ */
249
+ httpStatusCode?: string;
250
+ /**
251
+ * @remarks
252
+ * 业务处理结果描述信息
253
+ *
254
+ * @example
255
+ * success
256
+ */
257
+ message?: string;
258
+ /**
259
+ * @remarks
260
+ * 包含写作输出内容和Token使用量统计
261
+ */
262
+ payload?: RunAiHelperWritingResponseBodyPayload;
263
+ /**
264
+ * @remarks
265
+ * 本次API请求的唯一标识
266
+ *
267
+ * @example
268
+ * 1813ceee-7fe5-41b4-87e5-982a4d18cca5
269
+ */
270
+ requestId?: string;
271
+ /**
272
+ * @remarks
273
+ * 请求是否处理成功
274
+ *
275
+ * @example
276
+ * true
277
+ */
278
+ success?: boolean;
279
+ static names(): { [key: string]: string } {
280
+ return {
281
+ code: 'Code',
282
+ header: 'Header',
283
+ httpStatusCode: 'HttpStatusCode',
284
+ message: 'Message',
285
+ payload: 'Payload',
286
+ requestId: 'RequestId',
287
+ success: 'Success',
288
+ };
289
+ }
290
+
291
+ static types(): { [key: string]: any } {
292
+ return {
293
+ code: 'string',
294
+ header: RunAiHelperWritingResponseBodyHeader,
295
+ httpStatusCode: 'string',
296
+ message: 'string',
297
+ payload: RunAiHelperWritingResponseBodyPayload,
298
+ requestId: 'string',
299
+ success: 'boolean',
300
+ };
301
+ }
302
+
303
+ validate() {
304
+ if(this.header && typeof (this.header as any).validate === 'function') {
305
+ (this.header as any).validate();
306
+ }
307
+ if(this.payload && typeof (this.payload as any).validate === 'function') {
308
+ (this.payload as any).validate();
309
+ }
310
+ super.validate();
311
+ }
312
+
313
+ constructor(map?: { [key: string]: any }) {
314
+ super(map);
315
+ }
316
+ }
317
+
@@ -0,0 +1,89 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class RunAiHelperWritingShrinkRequest extends $dara.Model {
6
+ /**
7
+ * @example
8
+ * false
9
+ */
10
+ distributeWriting?: boolean;
11
+ /**
12
+ * @remarks
13
+ * This parameter is required.
14
+ *
15
+ * @example
16
+ * 请帮我写一篇关于人工智能发展趋势的文章
17
+ */
18
+ prompt?: string;
19
+ /**
20
+ * @example
21
+ * Template
22
+ */
23
+ promptMode?: string;
24
+ /**
25
+ * @remarks
26
+ * This parameter is required.
27
+ *
28
+ * @example
29
+ * llm-xxxxx
30
+ */
31
+ workspaceId?: string;
32
+ /**
33
+ * @example
34
+ * {"wordCount": "1000", "tone": "formal"}
35
+ */
36
+ writingParamsShrink?: string;
37
+ /**
38
+ * @remarks
39
+ * 写作场景:government(政务)、media(传媒)、market(营销)、office(办公)、custom(自定义)
40
+ *
41
+ * This parameter is required.
42
+ *
43
+ * @example
44
+ * media
45
+ */
46
+ writingScene?: string;
47
+ /**
48
+ * @remarks
49
+ * 写作文体唯一标识KEY,可通过ListWritingStyles接口获取对应写作场景下的文体列表
50
+ *
51
+ * This parameter is required.
52
+ *
53
+ * @example
54
+ * news_article
55
+ */
56
+ writingStyle?: string;
57
+ static names(): { [key: string]: string } {
58
+ return {
59
+ distributeWriting: 'DistributeWriting',
60
+ prompt: 'Prompt',
61
+ promptMode: 'PromptMode',
62
+ workspaceId: 'WorkspaceId',
63
+ writingParamsShrink: 'WritingParams',
64
+ writingScene: 'WritingScene',
65
+ writingStyle: 'WritingStyle',
66
+ };
67
+ }
68
+
69
+ static types(): { [key: string]: any } {
70
+ return {
71
+ distributeWriting: 'boolean',
72
+ prompt: 'string',
73
+ promptMode: 'string',
74
+ workspaceId: 'string',
75
+ writingParamsShrink: 'string',
76
+ writingScene: 'string',
77
+ writingStyle: 'string',
78
+ };
79
+ }
80
+
81
+ validate() {
82
+ super.validate();
83
+ }
84
+
85
+ constructor(map?: { [key: string]: any }) {
86
+ super(map);
87
+ }
88
+ }
89
+
@@ -0,0 +1,41 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class RunPptOutlineGenerationRequest extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * This parameter is required.
9
+ */
10
+ prompt?: string;
11
+ /**
12
+ * @remarks
13
+ * This parameter is required.
14
+ *
15
+ * @example
16
+ * llm-8v8a5mfpxffrj1pn
17
+ */
18
+ workspaceId?: string;
19
+ static names(): { [key: string]: string } {
20
+ return {
21
+ prompt: 'Prompt',
22
+ workspaceId: 'WorkspaceId',
23
+ };
24
+ }
25
+
26
+ static types(): { [key: string]: any } {
27
+ return {
28
+ prompt: 'string',
29
+ workspaceId: 'string',
30
+ };
31
+ }
32
+
33
+ validate() {
34
+ super.validate();
35
+ }
36
+
37
+ constructor(map?: { [key: string]: any }) {
38
+ super(map);
39
+ }
40
+ }
41
+