@alicloud/websitebuild20250429 2.21.0 → 2.22.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 +60 -0
- package/dist/client.js +192 -0
- package/dist/client.js.map +1 -1
- package/dist/models/CreateAistaffChatRequest.d.ts +67 -0
- package/dist/models/CreateAistaffChatRequest.js +102 -0
- package/dist/models/CreateAistaffChatRequest.js.map +1 -0
- package/dist/models/CreateAistaffChatResponse.d.ts +19 -0
- package/dist/models/CreateAistaffChatResponse.js +69 -0
- package/dist/models/CreateAistaffChatResponse.js.map +1 -0
- package/dist/models/CreateAistaffChatResponseBody.d.ts +63 -0
- package/dist/models/CreateAistaffChatResponseBody.js +81 -0
- package/dist/models/CreateAistaffChatResponseBody.js.map +1 -0
- package/dist/models/CreateAistaffConversationRequest.d.ts +14 -0
- package/dist/models/CreateAistaffConversationRequest.js +58 -0
- package/dist/models/CreateAistaffConversationRequest.js.map +1 -0
- package/dist/models/CreateAistaffConversationResponse.d.ts +19 -0
- package/dist/models/CreateAistaffConversationResponse.js +69 -0
- package/dist/models/CreateAistaffConversationResponse.js.map +1 -0
- package/dist/models/CreateAistaffConversationResponseBody.d.ts +101 -0
- package/dist/models/CreateAistaffConversationResponseBody.js +113 -0
- package/dist/models/CreateAistaffConversationResponseBody.js.map +1 -0
- package/dist/models/ListAistaffChatEventsRequest.d.ts +33 -0
- package/dist/models/ListAistaffChatEventsRequest.js +64 -0
- package/dist/models/ListAistaffChatEventsRequest.js.map +1 -0
- package/dist/models/ListAistaffChatEventsResponse.d.ts +19 -0
- package/dist/models/ListAistaffChatEventsResponse.js +69 -0
- package/dist/models/ListAistaffChatEventsResponse.js.map +1 -0
- package/dist/models/ListAistaffChatEventsResponseBody.d.ts +110 -0
- package/dist/models/ListAistaffChatEventsResponseBody.js +135 -0
- package/dist/models/ListAistaffChatEventsResponseBody.js.map +1 -0
- package/dist/models/ListAistaffChatMessagesRequest.d.ts +33 -0
- package/dist/models/ListAistaffChatMessagesRequest.js +64 -0
- package/dist/models/ListAistaffChatMessagesRequest.js.map +1 -0
- package/dist/models/ListAistaffChatMessagesResponse.d.ts +19 -0
- package/dist/models/ListAistaffChatMessagesResponse.js +69 -0
- package/dist/models/ListAistaffChatMessagesResponse.js.map +1 -0
- package/dist/models/ListAistaffChatMessagesResponseBody.d.ts +152 -0
- package/dist/models/ListAistaffChatMessagesResponseBody.js +154 -0
- package/dist/models/ListAistaffChatMessagesResponseBody.js.map +1 -0
- package/dist/models/model.d.ts +18 -0
- package/dist/models/model.js +44 -8
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +217 -0
- package/src/models/CreateAistaffChatRequest.ts +111 -0
- package/src/models/CreateAistaffChatResponse.ts +40 -0
- package/src/models/CreateAistaffChatResponseBody.ts +99 -0
- package/src/models/CreateAistaffConversationRequest.ts +27 -0
- package/src/models/CreateAistaffConversationResponse.ts +40 -0
- package/src/models/CreateAistaffConversationResponseBody.ts +160 -0
- package/src/models/ListAistaffChatEventsRequest.ts +52 -0
- package/src/models/ListAistaffChatEventsResponse.ts +40 -0
- package/src/models/ListAistaffChatEventsResponseBody.ts +182 -0
- package/src/models/ListAistaffChatMessagesRequest.ts +52 -0
- package/src/models/ListAistaffChatMessagesResponse.ts +40 -0
- package/src/models/ListAistaffChatMessagesResponseBody.ts +241 -0
- package/src/models/model.ts +18 -0
package/dist/client.d.ts
CHANGED
|
@@ -83,6 +83,36 @@ export default class Client extends OpenApi {
|
|
|
83
83
|
* @returns CheckUserResourceMeasureResponse
|
|
84
84
|
*/
|
|
85
85
|
checkUserResourceMeasure(request: $_model.CheckUserResourceMeasureRequest): Promise<$_model.CheckUserResourceMeasureResponse>;
|
|
86
|
+
/**
|
|
87
|
+
* 异步发起AI员工对话
|
|
88
|
+
*
|
|
89
|
+
* @param request - CreateAIStaffChatRequest
|
|
90
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
91
|
+
* @returns CreateAIStaffChatResponse
|
|
92
|
+
*/
|
|
93
|
+
createAIStaffChatWithOptions(request: $_model.CreateAIStaffChatRequest, runtime: $dara.RuntimeOptions): Promise<$_model.CreateAIStaffChatResponse>;
|
|
94
|
+
/**
|
|
95
|
+
* 异步发起AI员工对话
|
|
96
|
+
*
|
|
97
|
+
* @param request - CreateAIStaffChatRequest
|
|
98
|
+
* @returns CreateAIStaffChatResponse
|
|
99
|
+
*/
|
|
100
|
+
createAIStaffChat(request: $_model.CreateAIStaffChatRequest): Promise<$_model.CreateAIStaffChatResponse>;
|
|
101
|
+
/**
|
|
102
|
+
* 创建AI员工会话
|
|
103
|
+
*
|
|
104
|
+
* @param request - CreateAIStaffConversationRequest
|
|
105
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
106
|
+
* @returns CreateAIStaffConversationResponse
|
|
107
|
+
*/
|
|
108
|
+
createAIStaffConversationWithOptions(request: $_model.CreateAIStaffConversationRequest, runtime: $dara.RuntimeOptions): Promise<$_model.CreateAIStaffConversationResponse>;
|
|
109
|
+
/**
|
|
110
|
+
* 创建AI员工会话
|
|
111
|
+
*
|
|
112
|
+
* @param request - CreateAIStaffConversationRequest
|
|
113
|
+
* @returns CreateAIStaffConversationResponse
|
|
114
|
+
*/
|
|
115
|
+
createAIStaffConversation(request: $_model.CreateAIStaffConversationRequest): Promise<$_model.CreateAIStaffConversationResponse>;
|
|
86
116
|
/**
|
|
87
117
|
* 创建应用助手智能体
|
|
88
118
|
*
|
|
@@ -500,6 +530,36 @@ export default class Client extends OpenApi {
|
|
|
500
530
|
* @returns IntrospectAppInstanceTicketForPreviewResponse
|
|
501
531
|
*/
|
|
502
532
|
introspectAppInstanceTicketForPreview(request: $_model.IntrospectAppInstanceTicketForPreviewRequest): Promise<$_model.IntrospectAppInstanceTicketForPreviewResponse>;
|
|
533
|
+
/**
|
|
534
|
+
* 获取AI员工对话增量SSE事件
|
|
535
|
+
*
|
|
536
|
+
* @param request - ListAIStaffChatEventsRequest
|
|
537
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
538
|
+
* @returns ListAIStaffChatEventsResponse
|
|
539
|
+
*/
|
|
540
|
+
listAIStaffChatEventsWithOptions(request: $_model.ListAIStaffChatEventsRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ListAIStaffChatEventsResponse>;
|
|
541
|
+
/**
|
|
542
|
+
* 获取AI员工对话增量SSE事件
|
|
543
|
+
*
|
|
544
|
+
* @param request - ListAIStaffChatEventsRequest
|
|
545
|
+
* @returns ListAIStaffChatEventsResponse
|
|
546
|
+
*/
|
|
547
|
+
listAIStaffChatEvents(request: $_model.ListAIStaffChatEventsRequest): Promise<$_model.ListAIStaffChatEventsResponse>;
|
|
548
|
+
/**
|
|
549
|
+
* 分页查询AI员工对话消息列表
|
|
550
|
+
*
|
|
551
|
+
* @param request - ListAIStaffChatMessagesRequest
|
|
552
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
553
|
+
* @returns ListAIStaffChatMessagesResponse
|
|
554
|
+
*/
|
|
555
|
+
listAIStaffChatMessagesWithOptions(request: $_model.ListAIStaffChatMessagesRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ListAIStaffChatMessagesResponse>;
|
|
556
|
+
/**
|
|
557
|
+
* 分页查询AI员工对话消息列表
|
|
558
|
+
*
|
|
559
|
+
* @param request - ListAIStaffChatMessagesRequest
|
|
560
|
+
* @returns ListAIStaffChatMessagesResponse
|
|
561
|
+
*/
|
|
562
|
+
listAIStaffChatMessages(request: $_model.ListAIStaffChatMessagesRequest): Promise<$_model.ListAIStaffChatMessagesResponse>;
|
|
503
563
|
/**
|
|
504
564
|
* 查询应用助手智能体列表
|
|
505
565
|
*
|
package/dist/client.js
CHANGED
|
@@ -331,6 +331,98 @@ class Client extends openapi_core_1.default {
|
|
|
331
331
|
let runtime = new $dara.RuntimeOptions({});
|
|
332
332
|
return await this.checkUserResourceMeasureWithOptions(request, runtime);
|
|
333
333
|
}
|
|
334
|
+
/**
|
|
335
|
+
* 异步发起AI员工对话
|
|
336
|
+
*
|
|
337
|
+
* @param request - CreateAIStaffChatRequest
|
|
338
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
339
|
+
* @returns CreateAIStaffChatResponse
|
|
340
|
+
*/
|
|
341
|
+
async createAIStaffChatWithOptions(request, runtime) {
|
|
342
|
+
request.validate();
|
|
343
|
+
let body = {};
|
|
344
|
+
if (!$dara.isNull(request.bizId)) {
|
|
345
|
+
body["BizId"] = request.bizId;
|
|
346
|
+
}
|
|
347
|
+
if (!$dara.isNull(request.chatId)) {
|
|
348
|
+
body["ChatId"] = request.chatId;
|
|
349
|
+
}
|
|
350
|
+
if (!$dara.isNull(request.conversationId)) {
|
|
351
|
+
body["ConversationId"] = request.conversationId;
|
|
352
|
+
}
|
|
353
|
+
if (!$dara.isNull(request.messages)) {
|
|
354
|
+
body["Messages"] = request.messages;
|
|
355
|
+
}
|
|
356
|
+
let bodyFlat = {};
|
|
357
|
+
if (!$dara.isNull(request.metaData)) {
|
|
358
|
+
bodyFlat["MetaData"] = request.metaData;
|
|
359
|
+
}
|
|
360
|
+
body = Object.assign(Object.assign({}, body), openapi_core_2.OpenApiUtil.query(bodyFlat));
|
|
361
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
362
|
+
body: openapi_core_2.OpenApiUtil.parseToMap(body),
|
|
363
|
+
});
|
|
364
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
365
|
+
action: "CreateAIStaffChat",
|
|
366
|
+
version: "2025-04-29",
|
|
367
|
+
protocol: "HTTPS",
|
|
368
|
+
pathname: "/",
|
|
369
|
+
method: "POST",
|
|
370
|
+
authType: "AK",
|
|
371
|
+
style: "RPC",
|
|
372
|
+
reqBodyType: "formData",
|
|
373
|
+
bodyType: "json",
|
|
374
|
+
});
|
|
375
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.CreateAIStaffChatResponse({}));
|
|
376
|
+
}
|
|
377
|
+
/**
|
|
378
|
+
* 异步发起AI员工对话
|
|
379
|
+
*
|
|
380
|
+
* @param request - CreateAIStaffChatRequest
|
|
381
|
+
* @returns CreateAIStaffChatResponse
|
|
382
|
+
*/
|
|
383
|
+
async createAIStaffChat(request) {
|
|
384
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
385
|
+
return await this.createAIStaffChatWithOptions(request, runtime);
|
|
386
|
+
}
|
|
387
|
+
/**
|
|
388
|
+
* 创建AI员工会话
|
|
389
|
+
*
|
|
390
|
+
* @param request - CreateAIStaffConversationRequest
|
|
391
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
392
|
+
* @returns CreateAIStaffConversationResponse
|
|
393
|
+
*/
|
|
394
|
+
async createAIStaffConversationWithOptions(request, runtime) {
|
|
395
|
+
request.validate();
|
|
396
|
+
let body = {};
|
|
397
|
+
if (!$dara.isNull(request.text)) {
|
|
398
|
+
body["Text"] = request.text;
|
|
399
|
+
}
|
|
400
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
401
|
+
body: openapi_core_2.OpenApiUtil.parseToMap(body),
|
|
402
|
+
});
|
|
403
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
404
|
+
action: "CreateAIStaffConversation",
|
|
405
|
+
version: "2025-04-29",
|
|
406
|
+
protocol: "HTTPS",
|
|
407
|
+
pathname: "/",
|
|
408
|
+
method: "POST",
|
|
409
|
+
authType: "AK",
|
|
410
|
+
style: "RPC",
|
|
411
|
+
reqBodyType: "formData",
|
|
412
|
+
bodyType: "json",
|
|
413
|
+
});
|
|
414
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.CreateAIStaffConversationResponse({}));
|
|
415
|
+
}
|
|
416
|
+
/**
|
|
417
|
+
* 创建AI员工会话
|
|
418
|
+
*
|
|
419
|
+
* @param request - CreateAIStaffConversationRequest
|
|
420
|
+
* @returns CreateAIStaffConversationResponse
|
|
421
|
+
*/
|
|
422
|
+
async createAIStaffConversation(request) {
|
|
423
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
424
|
+
return await this.createAIStaffConversationWithOptions(request, runtime);
|
|
425
|
+
}
|
|
334
426
|
/**
|
|
335
427
|
* 创建应用助手智能体
|
|
336
428
|
*
|
|
@@ -1580,6 +1672,106 @@ class Client extends openapi_core_1.default {
|
|
|
1580
1672
|
let runtime = new $dara.RuntimeOptions({});
|
|
1581
1673
|
return await this.introspectAppInstanceTicketForPreviewWithOptions(request, runtime);
|
|
1582
1674
|
}
|
|
1675
|
+
/**
|
|
1676
|
+
* 获取AI员工对话增量SSE事件
|
|
1677
|
+
*
|
|
1678
|
+
* @param request - ListAIStaffChatEventsRequest
|
|
1679
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
1680
|
+
* @returns ListAIStaffChatEventsResponse
|
|
1681
|
+
*/
|
|
1682
|
+
async listAIStaffChatEventsWithOptions(request, runtime) {
|
|
1683
|
+
request.validate();
|
|
1684
|
+
let query = {};
|
|
1685
|
+
if (!$dara.isNull(request.bizId)) {
|
|
1686
|
+
query["BizId"] = request.bizId;
|
|
1687
|
+
}
|
|
1688
|
+
let body = {};
|
|
1689
|
+
if (!$dara.isNull(request.chatId)) {
|
|
1690
|
+
body["ChatId"] = request.chatId;
|
|
1691
|
+
}
|
|
1692
|
+
if (!$dara.isNull(request.conversationId)) {
|
|
1693
|
+
body["ConversationId"] = request.conversationId;
|
|
1694
|
+
}
|
|
1695
|
+
if (!$dara.isNull(request.lastEventId)) {
|
|
1696
|
+
body["LastEventId"] = request.lastEventId;
|
|
1697
|
+
}
|
|
1698
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
1699
|
+
query: openapi_core_2.OpenApiUtil.query(query),
|
|
1700
|
+
body: openapi_core_2.OpenApiUtil.parseToMap(body),
|
|
1701
|
+
});
|
|
1702
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
1703
|
+
action: "ListAIStaffChatEvents",
|
|
1704
|
+
version: "2025-04-29",
|
|
1705
|
+
protocol: "HTTPS",
|
|
1706
|
+
pathname: "/",
|
|
1707
|
+
method: "POST",
|
|
1708
|
+
authType: "AK",
|
|
1709
|
+
style: "RPC",
|
|
1710
|
+
reqBodyType: "formData",
|
|
1711
|
+
bodyType: "json",
|
|
1712
|
+
});
|
|
1713
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListAIStaffChatEventsResponse({}));
|
|
1714
|
+
}
|
|
1715
|
+
/**
|
|
1716
|
+
* 获取AI员工对话增量SSE事件
|
|
1717
|
+
*
|
|
1718
|
+
* @param request - ListAIStaffChatEventsRequest
|
|
1719
|
+
* @returns ListAIStaffChatEventsResponse
|
|
1720
|
+
*/
|
|
1721
|
+
async listAIStaffChatEvents(request) {
|
|
1722
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
1723
|
+
return await this.listAIStaffChatEventsWithOptions(request, runtime);
|
|
1724
|
+
}
|
|
1725
|
+
/**
|
|
1726
|
+
* 分页查询AI员工对话消息列表
|
|
1727
|
+
*
|
|
1728
|
+
* @param request - ListAIStaffChatMessagesRequest
|
|
1729
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
1730
|
+
* @returns ListAIStaffChatMessagesResponse
|
|
1731
|
+
*/
|
|
1732
|
+
async listAIStaffChatMessagesWithOptions(request, runtime) {
|
|
1733
|
+
request.validate();
|
|
1734
|
+
let query = {};
|
|
1735
|
+
if (!$dara.isNull(request.bizId)) {
|
|
1736
|
+
query["BizId"] = request.bizId;
|
|
1737
|
+
}
|
|
1738
|
+
let body = {};
|
|
1739
|
+
if (!$dara.isNull(request.conversationId)) {
|
|
1740
|
+
body["ConversationId"] = request.conversationId;
|
|
1741
|
+
}
|
|
1742
|
+
if (!$dara.isNull(request.pageSize)) {
|
|
1743
|
+
body["PageSize"] = request.pageSize;
|
|
1744
|
+
}
|
|
1745
|
+
if (!$dara.isNull(request.startCreateTime)) {
|
|
1746
|
+
body["StartCreateTime"] = request.startCreateTime;
|
|
1747
|
+
}
|
|
1748
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
1749
|
+
query: openapi_core_2.OpenApiUtil.query(query),
|
|
1750
|
+
body: openapi_core_2.OpenApiUtil.parseToMap(body),
|
|
1751
|
+
});
|
|
1752
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
1753
|
+
action: "ListAIStaffChatMessages",
|
|
1754
|
+
version: "2025-04-29",
|
|
1755
|
+
protocol: "HTTPS",
|
|
1756
|
+
pathname: "/",
|
|
1757
|
+
method: "POST",
|
|
1758
|
+
authType: "AK",
|
|
1759
|
+
style: "RPC",
|
|
1760
|
+
reqBodyType: "formData",
|
|
1761
|
+
bodyType: "json",
|
|
1762
|
+
});
|
|
1763
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListAIStaffChatMessagesResponse({}));
|
|
1764
|
+
}
|
|
1765
|
+
/**
|
|
1766
|
+
* 分页查询AI员工对话消息列表
|
|
1767
|
+
*
|
|
1768
|
+
* @param request - ListAIStaffChatMessagesRequest
|
|
1769
|
+
* @returns ListAIStaffChatMessagesResponse
|
|
1770
|
+
*/
|
|
1771
|
+
async listAIStaffChatMessages(request) {
|
|
1772
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
1773
|
+
return await this.listAIStaffChatMessagesWithOptions(request, runtime);
|
|
1774
|
+
}
|
|
1583
1775
|
/**
|
|
1584
1776
|
* 查询应用助手智能体列表
|
|
1585
1777
|
*
|