@alicloud/quanmiaolightapp20240801 1.0.0 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/src/client.ts CHANGED
@@ -214,6 +214,206 @@ export class RunMarketingInformationWritingResponse extends $tea.Model {
214
214
  }
215
215
  }
216
216
 
217
+ export class RunScriptContinueRequest extends $tea.Model {
218
+ /**
219
+ * @example
220
+ * 一队全副武装的执法人员和消防员闯入了一间明显已被遗弃多日、门窗紧闭并用胶带封死的公寓,面对着屋内令人作呕的恶臭和门厅里的混乱场面,他们似乎在寻找某种隐藏的真相或危险源,而一封日期为16号的信件成为了揭开谜团的关键线索,随着便衣探员深入探索,一系列封闭的房间暗示着这里曾发生过不为人知的秘密事件。
221
+ */
222
+ scriptSummary?: string;
223
+ /**
224
+ * @example
225
+ * 悬疑,都市,惊悚
226
+ */
227
+ scriptTypeKeyword?: string;
228
+ /**
229
+ * @remarks
230
+ * This parameter is required.
231
+ *
232
+ * @example
233
+ * 门厅一片狼藉。朝向天井的窗户开着。公寓门突然被撞开了。\n一名便衣探员、两名穿制服的警察和几位消防员———也身着工作服———进来,四下张望。他们都戴着手套以及盖住口鼻的面罩。在他们身后,门房和他妻子也挤进门厅。他们都捂着鼻子。门房的另一只手里拿着一叠信件和促销广告单。他们身后,跟着一位女邻居。\n便衣探员(对门房和邻居):请在外面等候。\n他向一名警察示意,警察正忙着把好奇的旁观者请出门外。\n警察(对门房,指着那一叠信件):最近的一封是哪天的?\n门房(查对信件):最近的一封似乎是16号的......等一下......\n便衣探员想打开左侧的门,却是徒劳。门用胶带封上了。\n便衣探员(对消防员):你来试一下好吗?\n消防员摆弄门的时候,便衣探员进了卧室隔壁的餐厅。他迅速打开窗,转身,想经过对开门进左侧的房间。这两扇门也锁着,门缝被贴上了胶带。他右转进入起居室,也打开了窗户
234
+ */
235
+ userProvidedContent?: string;
236
+ static names(): { [key: string]: string } {
237
+ return {
238
+ scriptSummary: 'scriptSummary',
239
+ scriptTypeKeyword: 'scriptTypeKeyword',
240
+ userProvidedContent: 'userProvidedContent',
241
+ };
242
+ }
243
+
244
+ static types(): { [key: string]: any } {
245
+ return {
246
+ scriptSummary: 'string',
247
+ scriptTypeKeyword: 'string',
248
+ userProvidedContent: 'string',
249
+ };
250
+ }
251
+
252
+ constructor(map?: { [key: string]: any }) {
253
+ super(map);
254
+ }
255
+ }
256
+
257
+ export class RunScriptContinueResponseBody extends $tea.Model {
258
+ end?: boolean;
259
+ header?: RunScriptContinueResponseBodyHeader;
260
+ payload?: RunScriptContinueResponseBodyPayload;
261
+ static names(): { [key: string]: string } {
262
+ return {
263
+ end: 'end',
264
+ header: 'header',
265
+ payload: 'payload',
266
+ };
267
+ }
268
+
269
+ static types(): { [key: string]: any } {
270
+ return {
271
+ end: 'boolean',
272
+ header: RunScriptContinueResponseBodyHeader,
273
+ payload: RunScriptContinueResponseBodyPayload,
274
+ };
275
+ }
276
+
277
+ constructor(map?: { [key: string]: any }) {
278
+ super(map);
279
+ }
280
+ }
281
+
282
+ export class RunScriptContinueResponse extends $tea.Model {
283
+ headers?: { [key: string]: string };
284
+ statusCode?: number;
285
+ body?: RunScriptContinueResponseBody;
286
+ static names(): { [key: string]: string } {
287
+ return {
288
+ headers: 'headers',
289
+ statusCode: 'statusCode',
290
+ body: 'body',
291
+ };
292
+ }
293
+
294
+ static types(): { [key: string]: any } {
295
+ return {
296
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
297
+ statusCode: 'number',
298
+ body: RunScriptContinueResponseBody,
299
+ };
300
+ }
301
+
302
+ constructor(map?: { [key: string]: any }) {
303
+ super(map);
304
+ }
305
+ }
306
+
307
+ export class RunScriptPlanningRequest extends $tea.Model {
308
+ /**
309
+ * @example
310
+ * 故事尽可能狗血
311
+ */
312
+ additionalNote?: string;
313
+ dialogueInScene?: boolean;
314
+ plotConflict?: boolean;
315
+ /**
316
+ * @example
317
+ * 都市战神
318
+ */
319
+ scriptName?: string;
320
+ /**
321
+ * @example
322
+ * 3
323
+ */
324
+ scriptShotCount?: number;
325
+ /**
326
+ * @remarks
327
+ * This parameter is required.
328
+ *
329
+ * @example
330
+ * 在一个宁静的小镇上,每个家庭都在同一天收到一个神秘的、没有标记的包裹。
331
+ */
332
+ scriptSummary?: string;
333
+ /**
334
+ * @example
335
+ * 现代,都市,爱情,玄幻
336
+ */
337
+ scriptTypeKeyword?: string;
338
+ static names(): { [key: string]: string } {
339
+ return {
340
+ additionalNote: 'additionalNote',
341
+ dialogueInScene: 'dialogueInScene',
342
+ plotConflict: 'plotConflict',
343
+ scriptName: 'scriptName',
344
+ scriptShotCount: 'scriptShotCount',
345
+ scriptSummary: 'scriptSummary',
346
+ scriptTypeKeyword: 'scriptTypeKeyword',
347
+ };
348
+ }
349
+
350
+ static types(): { [key: string]: any } {
351
+ return {
352
+ additionalNote: 'string',
353
+ dialogueInScene: 'boolean',
354
+ plotConflict: 'boolean',
355
+ scriptName: 'string',
356
+ scriptShotCount: 'number',
357
+ scriptSummary: 'string',
358
+ scriptTypeKeyword: 'string',
359
+ };
360
+ }
361
+
362
+ constructor(map?: { [key: string]: any }) {
363
+ super(map);
364
+ }
365
+ }
366
+
367
+ export class RunScriptPlanningResponseBody extends $tea.Model {
368
+ end?: boolean;
369
+ header?: RunScriptPlanningResponseBodyHeader;
370
+ payload?: RunScriptPlanningResponseBodyPayload;
371
+ static names(): { [key: string]: string } {
372
+ return {
373
+ end: 'end',
374
+ header: 'header',
375
+ payload: 'payload',
376
+ };
377
+ }
378
+
379
+ static types(): { [key: string]: any } {
380
+ return {
381
+ end: 'boolean',
382
+ header: RunScriptPlanningResponseBodyHeader,
383
+ payload: RunScriptPlanningResponseBodyPayload,
384
+ };
385
+ }
386
+
387
+ constructor(map?: { [key: string]: any }) {
388
+ super(map);
389
+ }
390
+ }
391
+
392
+ export class RunScriptPlanningResponse extends $tea.Model {
393
+ headers?: { [key: string]: string };
394
+ statusCode?: number;
395
+ body?: RunScriptPlanningResponseBody;
396
+ static names(): { [key: string]: string } {
397
+ return {
398
+ headers: 'headers',
399
+ statusCode: 'statusCode',
400
+ body: 'body',
401
+ };
402
+ }
403
+
404
+ static types(): { [key: string]: any } {
405
+ return {
406
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
407
+ statusCode: 'number',
408
+ body: RunScriptPlanningResponseBody,
409
+ };
410
+ }
411
+
412
+ constructor(map?: { [key: string]: any }) {
413
+ super(map);
414
+ }
415
+ }
416
+
217
417
  export class RunStyleWritingRequest extends $tea.Model {
218
418
  /**
219
419
  * @remarks
@@ -804,6 +1004,314 @@ export class RunMarketingInformationWritingResponseBodyPayload extends $tea.Mode
804
1004
  }
805
1005
  }
806
1006
 
1007
+ export class RunScriptContinueResponseBodyHeader extends $tea.Model {
1008
+ /**
1009
+ * @example
1010
+ * 403
1011
+ */
1012
+ errorCode?: string;
1013
+ /**
1014
+ * @example
1015
+ * Pop sign mismatch, please check.
1016
+ */
1017
+ errorMessage?: string;
1018
+ /**
1019
+ * @example
1020
+ * result-generated
1021
+ */
1022
+ event?: string;
1023
+ /**
1024
+ * @example
1025
+ * 模型生成事件
1026
+ */
1027
+ eventInfo?: string;
1028
+ /**
1029
+ * @example
1030
+ * 0EB27AE3-CA53-5FAE-83C6-EE66CA4DF5DF
1031
+ */
1032
+ requestId?: string;
1033
+ /**
1034
+ * @example
1035
+ * 3cd10828-0e42-471c-8f1a-931cde20b035
1036
+ */
1037
+ sessionId?: string;
1038
+ /**
1039
+ * @example
1040
+ * d3be9981-ca2d-4e17-bf31-1c0a628e9f99
1041
+ */
1042
+ taskId?: string;
1043
+ /**
1044
+ * @example
1045
+ * 2150451a17191950923411783e2927
1046
+ */
1047
+ traceId?: string;
1048
+ static names(): { [key: string]: string } {
1049
+ return {
1050
+ errorCode: 'errorCode',
1051
+ errorMessage: 'errorMessage',
1052
+ event: 'event',
1053
+ eventInfo: 'eventInfo',
1054
+ requestId: 'requestId',
1055
+ sessionId: 'sessionId',
1056
+ taskId: 'taskId',
1057
+ traceId: 'traceId',
1058
+ };
1059
+ }
1060
+
1061
+ static types(): { [key: string]: any } {
1062
+ return {
1063
+ errorCode: 'string',
1064
+ errorMessage: 'string',
1065
+ event: 'string',
1066
+ eventInfo: 'string',
1067
+ requestId: 'string',
1068
+ sessionId: 'string',
1069
+ taskId: 'string',
1070
+ traceId: 'string',
1071
+ };
1072
+ }
1073
+
1074
+ constructor(map?: { [key: string]: any }) {
1075
+ super(map);
1076
+ }
1077
+ }
1078
+
1079
+ export class RunScriptContinueResponseBodyPayloadOutput extends $tea.Model {
1080
+ /**
1081
+ * @example
1082
+ * 这是测试输出
1083
+ */
1084
+ text?: string;
1085
+ static names(): { [key: string]: string } {
1086
+ return {
1087
+ text: 'text',
1088
+ };
1089
+ }
1090
+
1091
+ static types(): { [key: string]: any } {
1092
+ return {
1093
+ text: 'string',
1094
+ };
1095
+ }
1096
+
1097
+ constructor(map?: { [key: string]: any }) {
1098
+ super(map);
1099
+ }
1100
+ }
1101
+
1102
+ export class RunScriptContinueResponseBodyPayloadUsage extends $tea.Model {
1103
+ /**
1104
+ * @example
1105
+ * 100
1106
+ */
1107
+ inputTokens?: number;
1108
+ /**
1109
+ * @example
1110
+ * 100
1111
+ */
1112
+ outputTokens?: number;
1113
+ /**
1114
+ * @example
1115
+ * 200
1116
+ */
1117
+ totalTokens?: number;
1118
+ static names(): { [key: string]: string } {
1119
+ return {
1120
+ inputTokens: 'inputTokens',
1121
+ outputTokens: 'outputTokens',
1122
+ totalTokens: 'totalTokens',
1123
+ };
1124
+ }
1125
+
1126
+ static types(): { [key: string]: any } {
1127
+ return {
1128
+ inputTokens: 'number',
1129
+ outputTokens: 'number',
1130
+ totalTokens: 'number',
1131
+ };
1132
+ }
1133
+
1134
+ constructor(map?: { [key: string]: any }) {
1135
+ super(map);
1136
+ }
1137
+ }
1138
+
1139
+ export class RunScriptContinueResponseBodyPayload extends $tea.Model {
1140
+ output?: RunScriptContinueResponseBodyPayloadOutput;
1141
+ usage?: RunScriptContinueResponseBodyPayloadUsage;
1142
+ static names(): { [key: string]: string } {
1143
+ return {
1144
+ output: 'output',
1145
+ usage: 'usage',
1146
+ };
1147
+ }
1148
+
1149
+ static types(): { [key: string]: any } {
1150
+ return {
1151
+ output: RunScriptContinueResponseBodyPayloadOutput,
1152
+ usage: RunScriptContinueResponseBodyPayloadUsage,
1153
+ };
1154
+ }
1155
+
1156
+ constructor(map?: { [key: string]: any }) {
1157
+ super(map);
1158
+ }
1159
+ }
1160
+
1161
+ export class RunScriptPlanningResponseBodyHeader extends $tea.Model {
1162
+ /**
1163
+ * @example
1164
+ * 403
1165
+ */
1166
+ errorCode?: string;
1167
+ /**
1168
+ * @example
1169
+ * Pop sign mismatch, please check.
1170
+ */
1171
+ errorMessage?: string;
1172
+ /**
1173
+ * @example
1174
+ * result-generated
1175
+ */
1176
+ event?: string;
1177
+ /**
1178
+ * @example
1179
+ * 模型生成事件
1180
+ */
1181
+ eventInfo?: string;
1182
+ /**
1183
+ * @example
1184
+ * 0EB27AE3-CA53-5FAE-83C6-EE66CA4DF5DF
1185
+ */
1186
+ requestId?: string;
1187
+ /**
1188
+ * @example
1189
+ * 3cd10828-0e42-471c-8f1a-931cde20b035
1190
+ */
1191
+ sessionId?: string;
1192
+ /**
1193
+ * @example
1194
+ * d3be9981-ca2d-4e17-bf31-1c0a628e9f99
1195
+ */
1196
+ taskId?: string;
1197
+ /**
1198
+ * @example
1199
+ * 2150451a17191950923411783e2927
1200
+ */
1201
+ traceId?: string;
1202
+ static names(): { [key: string]: string } {
1203
+ return {
1204
+ errorCode: 'errorCode',
1205
+ errorMessage: 'errorMessage',
1206
+ event: 'event',
1207
+ eventInfo: 'eventInfo',
1208
+ requestId: 'requestId',
1209
+ sessionId: 'sessionId',
1210
+ taskId: 'taskId',
1211
+ traceId: 'traceId',
1212
+ };
1213
+ }
1214
+
1215
+ static types(): { [key: string]: any } {
1216
+ return {
1217
+ errorCode: 'string',
1218
+ errorMessage: 'string',
1219
+ event: 'string',
1220
+ eventInfo: 'string',
1221
+ requestId: 'string',
1222
+ sessionId: 'string',
1223
+ taskId: 'string',
1224
+ traceId: 'string',
1225
+ };
1226
+ }
1227
+
1228
+ constructor(map?: { [key: string]: any }) {
1229
+ super(map);
1230
+ }
1231
+ }
1232
+
1233
+ export class RunScriptPlanningResponseBodyPayloadOutput extends $tea.Model {
1234
+ /**
1235
+ * @example
1236
+ * 这是测试输出
1237
+ */
1238
+ text?: string;
1239
+ static names(): { [key: string]: string } {
1240
+ return {
1241
+ text: 'text',
1242
+ };
1243
+ }
1244
+
1245
+ static types(): { [key: string]: any } {
1246
+ return {
1247
+ text: 'string',
1248
+ };
1249
+ }
1250
+
1251
+ constructor(map?: { [key: string]: any }) {
1252
+ super(map);
1253
+ }
1254
+ }
1255
+
1256
+ export class RunScriptPlanningResponseBodyPayloadUsage extends $tea.Model {
1257
+ /**
1258
+ * @example
1259
+ * 100
1260
+ */
1261
+ inputTokens?: number;
1262
+ /**
1263
+ * @example
1264
+ * 100
1265
+ */
1266
+ outputTokens?: number;
1267
+ /**
1268
+ * @example
1269
+ * 200
1270
+ */
1271
+ totalTokens?: number;
1272
+ static names(): { [key: string]: string } {
1273
+ return {
1274
+ inputTokens: 'inputTokens',
1275
+ outputTokens: 'outputTokens',
1276
+ totalTokens: 'totalTokens',
1277
+ };
1278
+ }
1279
+
1280
+ static types(): { [key: string]: any } {
1281
+ return {
1282
+ inputTokens: 'number',
1283
+ outputTokens: 'number',
1284
+ totalTokens: 'number',
1285
+ };
1286
+ }
1287
+
1288
+ constructor(map?: { [key: string]: any }) {
1289
+ super(map);
1290
+ }
1291
+ }
1292
+
1293
+ export class RunScriptPlanningResponseBodyPayload extends $tea.Model {
1294
+ output?: RunScriptPlanningResponseBodyPayloadOutput;
1295
+ usage?: RunScriptPlanningResponseBodyPayloadUsage;
1296
+ static names(): { [key: string]: string } {
1297
+ return {
1298
+ output: 'output',
1299
+ usage: 'usage',
1300
+ };
1301
+ }
1302
+
1303
+ static types(): { [key: string]: any } {
1304
+ return {
1305
+ output: RunScriptPlanningResponseBodyPayloadOutput,
1306
+ usage: RunScriptPlanningResponseBodyPayloadUsage,
1307
+ };
1308
+ }
1309
+
1310
+ constructor(map?: { [key: string]: any }) {
1311
+ super(map);
1312
+ }
1313
+ }
1314
+
807
1315
  export class RunStyleWritingResponseBodyHeader extends $tea.Model {
808
1316
  /**
809
1317
  * @example
@@ -1655,6 +2163,128 @@ export default class Client extends OpenApi {
1655
2163
  return await this.runMarketingInformationWritingWithOptions(workspaceId, request, headers, runtime);
1656
2164
  }
1657
2165
 
2166
+ /**
2167
+ * 剧本续写
2168
+ *
2169
+ * @param request - RunScriptContinueRequest
2170
+ * @param headers - map
2171
+ * @param runtime - runtime options for this request RuntimeOptions
2172
+ * @returns RunScriptContinueResponse
2173
+ */
2174
+ async runScriptContinueWithOptions(workspaceId: string, request: RunScriptContinueRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<RunScriptContinueResponse> {
2175
+ Util.validateModel(request);
2176
+ let body : {[key: string ]: any} = { };
2177
+ if (!Util.isUnset(request.scriptSummary)) {
2178
+ body["scriptSummary"] = request.scriptSummary;
2179
+ }
2180
+
2181
+ if (!Util.isUnset(request.scriptTypeKeyword)) {
2182
+ body["scriptTypeKeyword"] = request.scriptTypeKeyword;
2183
+ }
2184
+
2185
+ if (!Util.isUnset(request.userProvidedContent)) {
2186
+ body["userProvidedContent"] = request.userProvidedContent;
2187
+ }
2188
+
2189
+ let req = new $OpenApi.OpenApiRequest({
2190
+ headers: headers,
2191
+ body: OpenApiUtil.parseToMap(body),
2192
+ });
2193
+ let params = new $OpenApi.Params({
2194
+ action: "RunScriptContinue",
2195
+ version: "2024-08-01",
2196
+ protocol: "HTTPS",
2197
+ pathname: `/${OpenApiUtil.getEncodeParam(workspaceId)}/quanmiao/lightapp/runScriptContinue`,
2198
+ method: "POST",
2199
+ authType: "AK",
2200
+ style: "ROA",
2201
+ reqBodyType: "formData",
2202
+ bodyType: "json",
2203
+ });
2204
+ return $tea.cast<RunScriptContinueResponse>(await this.callApi(params, req, runtime), new RunScriptContinueResponse({}));
2205
+ }
2206
+
2207
+ /**
2208
+ * 剧本续写
2209
+ *
2210
+ * @param request - RunScriptContinueRequest
2211
+ * @returns RunScriptContinueResponse
2212
+ */
2213
+ async runScriptContinue(workspaceId: string, request: RunScriptContinueRequest): Promise<RunScriptContinueResponse> {
2214
+ let runtime = new $Util.RuntimeOptions({ });
2215
+ let headers : {[key: string ]: string} = { };
2216
+ return await this.runScriptContinueWithOptions(workspaceId, request, headers, runtime);
2217
+ }
2218
+
2219
+ /**
2220
+ * 剧本策划
2221
+ *
2222
+ * @param request - RunScriptPlanningRequest
2223
+ * @param headers - map
2224
+ * @param runtime - runtime options for this request RuntimeOptions
2225
+ * @returns RunScriptPlanningResponse
2226
+ */
2227
+ async runScriptPlanningWithOptions(workspaceId: string, request: RunScriptPlanningRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<RunScriptPlanningResponse> {
2228
+ Util.validateModel(request);
2229
+ let body : {[key: string ]: any} = { };
2230
+ if (!Util.isUnset(request.additionalNote)) {
2231
+ body["additionalNote"] = request.additionalNote;
2232
+ }
2233
+
2234
+ if (!Util.isUnset(request.dialogueInScene)) {
2235
+ body["dialogueInScene"] = request.dialogueInScene;
2236
+ }
2237
+
2238
+ if (!Util.isUnset(request.plotConflict)) {
2239
+ body["plotConflict"] = request.plotConflict;
2240
+ }
2241
+
2242
+ if (!Util.isUnset(request.scriptName)) {
2243
+ body["scriptName"] = request.scriptName;
2244
+ }
2245
+
2246
+ if (!Util.isUnset(request.scriptShotCount)) {
2247
+ body["scriptShotCount"] = request.scriptShotCount;
2248
+ }
2249
+
2250
+ if (!Util.isUnset(request.scriptSummary)) {
2251
+ body["scriptSummary"] = request.scriptSummary;
2252
+ }
2253
+
2254
+ if (!Util.isUnset(request.scriptTypeKeyword)) {
2255
+ body["scriptTypeKeyword"] = request.scriptTypeKeyword;
2256
+ }
2257
+
2258
+ let req = new $OpenApi.OpenApiRequest({
2259
+ headers: headers,
2260
+ body: OpenApiUtil.parseToMap(body),
2261
+ });
2262
+ let params = new $OpenApi.Params({
2263
+ action: "RunScriptPlanning",
2264
+ version: "2024-08-01",
2265
+ protocol: "HTTPS",
2266
+ pathname: `/${OpenApiUtil.getEncodeParam(workspaceId)}/quanmiao/lightapp/runScriptPlanning`,
2267
+ method: "POST",
2268
+ authType: "AK",
2269
+ style: "ROA",
2270
+ reqBodyType: "formData",
2271
+ bodyType: "json",
2272
+ });
2273
+ return $tea.cast<RunScriptPlanningResponse>(await this.callApi(params, req, runtime), new RunScriptPlanningResponse({}));
2274
+ }
2275
+
2276
+ /**
2277
+ * 剧本策划
2278
+ *
2279
+ * @param request - RunScriptPlanningRequest
2280
+ * @returns RunScriptPlanningResponse
2281
+ */
2282
+ async runScriptPlanning(workspaceId: string, request: RunScriptPlanningRequest): Promise<RunScriptPlanningResponse> {
2283
+ let runtime = new $Util.RuntimeOptions({ });
2284
+ let headers : {[key: string ]: string} = { };
2285
+ return await this.runScriptPlanningWithOptions(workspaceId, request, headers, runtime);
2286
+ }
2287
+
1658
2288
  /**
1659
2289
  * 文体学习和写作推理服务
1660
2290
  *