@alicloud/aimiaobi20230801 1.36.2 → 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.
- package/dist/client.d.ts +91 -0
- package/dist/client.js +567 -204
- package/dist/client.js.map +1 -1
- package/dist/models/BindPptArtifactRequest.d.ts +37 -0
- package/dist/models/BindPptArtifactRequest.js +62 -0
- package/dist/models/BindPptArtifactRequest.js.map +1 -0
- package/dist/models/BindPptArtifactResponse.d.ts +19 -0
- package/dist/models/BindPptArtifactResponse.js +69 -0
- package/dist/models/BindPptArtifactResponse.js.map +1 -0
- package/dist/models/BindPptArtifactResponseBody.d.ts +59 -0
- package/dist/models/BindPptArtifactResponseBody.js +90 -0
- package/dist/models/BindPptArtifactResponseBody.js.map +1 -0
- package/dist/models/GetPptConfigRequest.d.ts +18 -0
- package/dist/models/GetPptConfigRequest.js +58 -0
- package/dist/models/GetPptConfigRequest.js.map +1 -0
- package/dist/models/GetPptConfigResponse.d.ts +19 -0
- package/dist/models/GetPptConfigResponse.js +69 -0
- package/dist/models/GetPptConfigResponse.js.map +1 -0
- package/dist/models/GetPptConfigResponseBody.d.ts +70 -0
- package/dist/models/GetPptConfigResponseBody.js +92 -0
- package/dist/models/GetPptConfigResponseBody.js.map +1 -0
- package/dist/models/InitiatePptCreationRequest.d.ts +27 -0
- package/dist/models/InitiatePptCreationRequest.js +62 -0
- package/dist/models/InitiatePptCreationRequest.js.map +1 -0
- package/dist/models/InitiatePptCreationResponse.d.ts +19 -0
- package/dist/models/InitiatePptCreationResponse.js +69 -0
- package/dist/models/InitiatePptCreationResponse.js.map +1 -0
- package/dist/models/InitiatePptCreationResponseBody.d.ts +70 -0
- package/dist/models/InitiatePptCreationResponseBody.js +92 -0
- package/dist/models/InitiatePptCreationResponseBody.js.map +1 -0
- package/dist/models/RunAiHelperWritingRequest.d.ts +66 -0
- package/dist/models/RunAiHelperWritingRequest.js +73 -0
- package/dist/models/RunAiHelperWritingRequest.js.map +1 -0
- package/dist/models/RunAiHelperWritingResponse.d.ts +19 -0
- package/dist/models/RunAiHelperWritingResponse.js +69 -0
- package/dist/models/RunAiHelperWritingResponse.js.map +1 -0
- package/dist/models/RunAiHelperWritingResponseBody.d.ts +219 -0
- package/dist/models/RunAiHelperWritingResponseBody.js +181 -0
- package/dist/models/RunAiHelperWritingResponseBody.js.map +1 -0
- package/dist/models/RunAiHelperWritingShrinkRequest.d.ts +64 -0
- package/dist/models/RunAiHelperWritingShrinkRequest.js +70 -0
- package/dist/models/RunAiHelperWritingShrinkRequest.js.map +1 -0
- package/dist/models/RunPptOutlineGenerationRequest.d.ts +26 -0
- package/dist/models/RunPptOutlineGenerationRequest.js +60 -0
- package/dist/models/RunPptOutlineGenerationRequest.js.map +1 -0
- package/dist/models/RunPptOutlineGenerationResponse.d.ts +19 -0
- package/dist/models/RunPptOutlineGenerationResponse.js +69 -0
- package/dist/models/RunPptOutlineGenerationResponse.js.map +1 -0
- package/dist/models/RunPptOutlineGenerationResponseBody.d.ts +113 -0
- package/dist/models/RunPptOutlineGenerationResponseBody.js +148 -0
- package/dist/models/RunPptOutlineGenerationResponseBody.js.map +1 -0
- package/dist/models/model.d.ts +26 -0
- package/dist/models/model.js +78 -26
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +382 -0
- package/src/models/BindPptArtifactRequest.ts +54 -0
- package/src/models/BindPptArtifactResponse.ts +40 -0
- package/src/models/BindPptArtifactResponseBody.ts +95 -0
- package/src/models/GetPptConfigRequest.ts +31 -0
- package/src/models/GetPptConfigResponse.ts +40 -0
- package/src/models/GetPptConfigResponseBody.ts +108 -0
- package/src/models/InitiatePptCreationRequest.ts +44 -0
- package/src/models/InitiatePptCreationResponse.ts +40 -0
- package/src/models/InitiatePptCreationResponseBody.ts +108 -0
- package/src/models/RunAiHelperWritingRequest.ts +92 -0
- package/src/models/RunAiHelperWritingResponse.ts +40 -0
- package/src/models/RunAiHelperWritingResponseBody.ts +317 -0
- package/src/models/RunAiHelperWritingShrinkRequest.ts +89 -0
- package/src/models/RunPptOutlineGenerationRequest.ts +41 -0
- package/src/models/RunPptOutlineGenerationResponse.ts +40 -0
- package/src/models/RunPptOutlineGenerationResponseBody.ts +189 -0
- package/src/models/model.ts +26 -0
|
@@ -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
|
+
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
import { RunPptOutlineGenerationResponseBody } from "./RunPptOutlineGenerationResponseBody";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class RunPptOutlineGenerationResponse extends $dara.Model {
|
|
7
|
+
headers?: { [key: string]: string };
|
|
8
|
+
statusCode?: number;
|
|
9
|
+
body?: RunPptOutlineGenerationResponseBody;
|
|
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: RunPptOutlineGenerationResponseBody,
|
|
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,189 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class RunPptOutlineGenerationResponseBodyHeader extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @example
|
|
8
|
+
* Success
|
|
9
|
+
*/
|
|
10
|
+
errorCode?: string;
|
|
11
|
+
/**
|
|
12
|
+
* @example
|
|
13
|
+
* xxx
|
|
14
|
+
*/
|
|
15
|
+
errorMessage?: string;
|
|
16
|
+
/**
|
|
17
|
+
* @example
|
|
18
|
+
* task-started
|
|
19
|
+
*/
|
|
20
|
+
event?: string;
|
|
21
|
+
/**
|
|
22
|
+
* @example
|
|
23
|
+
* 1a3d7c9f-3a6d-4e49-b176-2d8721a27397
|
|
24
|
+
*/
|
|
25
|
+
sessionId?: string;
|
|
26
|
+
/**
|
|
27
|
+
* @example
|
|
28
|
+
* 200
|
|
29
|
+
*/
|
|
30
|
+
statusCode?: number;
|
|
31
|
+
/**
|
|
32
|
+
* @example
|
|
33
|
+
* 8996314ce5514867943c71935e6a45af
|
|
34
|
+
*/
|
|
35
|
+
taskId?: string;
|
|
36
|
+
/**
|
|
37
|
+
* @example
|
|
38
|
+
* 0bc1ec3a17435601877224179ecc8a
|
|
39
|
+
*/
|
|
40
|
+
traceId?: string;
|
|
41
|
+
static names(): { [key: string]: string } {
|
|
42
|
+
return {
|
|
43
|
+
errorCode: 'ErrorCode',
|
|
44
|
+
errorMessage: 'ErrorMessage',
|
|
45
|
+
event: 'Event',
|
|
46
|
+
sessionId: 'SessionId',
|
|
47
|
+
statusCode: 'StatusCode',
|
|
48
|
+
taskId: 'TaskId',
|
|
49
|
+
traceId: 'TraceId',
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
static types(): { [key: string]: any } {
|
|
54
|
+
return {
|
|
55
|
+
errorCode: 'string',
|
|
56
|
+
errorMessage: 'string',
|
|
57
|
+
event: 'string',
|
|
58
|
+
sessionId: 'string',
|
|
59
|
+
statusCode: 'number',
|
|
60
|
+
taskId: 'string',
|
|
61
|
+
traceId: 'string',
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
validate() {
|
|
66
|
+
super.validate();
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
constructor(map?: { [key: string]: any }) {
|
|
70
|
+
super(map);
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export class RunPptOutlineGenerationResponseBodyPayloadOutput extends $dara.Model {
|
|
75
|
+
text?: string;
|
|
76
|
+
static names(): { [key: string]: string } {
|
|
77
|
+
return {
|
|
78
|
+
text: 'Text',
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
static types(): { [key: string]: any } {
|
|
83
|
+
return {
|
|
84
|
+
text: 'string',
|
|
85
|
+
};
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
validate() {
|
|
89
|
+
super.validate();
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
constructor(map?: { [key: string]: any }) {
|
|
93
|
+
super(map);
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
export class RunPptOutlineGenerationResponseBodyPayload extends $dara.Model {
|
|
98
|
+
output?: RunPptOutlineGenerationResponseBodyPayloadOutput;
|
|
99
|
+
static names(): { [key: string]: string } {
|
|
100
|
+
return {
|
|
101
|
+
output: 'Output',
|
|
102
|
+
};
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
static types(): { [key: string]: any } {
|
|
106
|
+
return {
|
|
107
|
+
output: RunPptOutlineGenerationResponseBodyPayloadOutput,
|
|
108
|
+
};
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
validate() {
|
|
112
|
+
if(this.output && typeof (this.output as any).validate === 'function') {
|
|
113
|
+
(this.output as any).validate();
|
|
114
|
+
}
|
|
115
|
+
super.validate();
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
constructor(map?: { [key: string]: any }) {
|
|
119
|
+
super(map);
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
export class RunPptOutlineGenerationResponseBody extends $dara.Model {
|
|
124
|
+
/**
|
|
125
|
+
* @example
|
|
126
|
+
* success
|
|
127
|
+
*/
|
|
128
|
+
code?: string;
|
|
129
|
+
header?: RunPptOutlineGenerationResponseBodyHeader;
|
|
130
|
+
/**
|
|
131
|
+
* @example
|
|
132
|
+
* 200
|
|
133
|
+
*/
|
|
134
|
+
httpStatusCode?: string;
|
|
135
|
+
/**
|
|
136
|
+
* @example
|
|
137
|
+
* successful
|
|
138
|
+
*/
|
|
139
|
+
message?: string;
|
|
140
|
+
payload?: RunPptOutlineGenerationResponseBodyPayload;
|
|
141
|
+
/**
|
|
142
|
+
* @example
|
|
143
|
+
* F2F366D6-E9FE-1006-BB70-2C650896AAB5
|
|
144
|
+
*/
|
|
145
|
+
requestId?: string;
|
|
146
|
+
/**
|
|
147
|
+
* @example
|
|
148
|
+
* true
|
|
149
|
+
*/
|
|
150
|
+
success?: boolean;
|
|
151
|
+
static names(): { [key: string]: string } {
|
|
152
|
+
return {
|
|
153
|
+
code: 'Code',
|
|
154
|
+
header: 'Header',
|
|
155
|
+
httpStatusCode: 'HttpStatusCode',
|
|
156
|
+
message: 'Message',
|
|
157
|
+
payload: 'Payload',
|
|
158
|
+
requestId: 'RequestId',
|
|
159
|
+
success: 'Success',
|
|
160
|
+
};
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
static types(): { [key: string]: any } {
|
|
164
|
+
return {
|
|
165
|
+
code: 'string',
|
|
166
|
+
header: RunPptOutlineGenerationResponseBodyHeader,
|
|
167
|
+
httpStatusCode: 'string',
|
|
168
|
+
message: 'string',
|
|
169
|
+
payload: RunPptOutlineGenerationResponseBodyPayload,
|
|
170
|
+
requestId: 'string',
|
|
171
|
+
success: 'boolean',
|
|
172
|
+
};
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
validate() {
|
|
176
|
+
if(this.header && typeof (this.header as any).validate === 'function') {
|
|
177
|
+
(this.header as any).validate();
|
|
178
|
+
}
|
|
179
|
+
if(this.payload && typeof (this.payload as any).validate === 'function') {
|
|
180
|
+
(this.payload as any).validate();
|
|
181
|
+
}
|
|
182
|
+
super.validate();
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
constructor(map?: { [key: string]: any }) {
|
|
186
|
+
super(map);
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
|