@alicloud/aliding20230426 2.41.2 → 2.42.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 +16 -0
- package/dist/client.js +113 -0
- package/dist/client.js.map +1 -1
- package/dist/models/CreateMessageRequest.d.ts +5 -6
- package/dist/models/CreateMessageRequest.js +5 -1
- package/dist/models/CreateMessageRequest.js.map +1 -1
- package/dist/models/CreateRunRequest.d.ts +5 -6
- package/dist/models/CreateRunRequest.js +5 -1
- package/dist/models/CreateRunRequest.js.map +1 -1
- package/dist/models/CreateRunResponseBody.d.ts +20 -0
- package/dist/models/CreateRunResponseBody.js +32 -1
- package/dist/models/CreateRunResponseBody.js.map +1 -1
- package/dist/models/CreateThreadRequest.d.ts +6 -3
- package/dist/models/CreateThreadRequest.js +4 -0
- package/dist/models/CreateThreadRequest.js.map +1 -1
- package/dist/models/GetAssistantCapabilityHeaders.d.ts +1 -0
- package/dist/models/GetAssistantCapabilityHeaders.js +2 -0
- package/dist/models/GetAssistantCapabilityHeaders.js.map +1 -1
- package/dist/models/GetAssistantCapabilityResponseBody.d.ts +16 -0
- package/dist/models/GetAssistantCapabilityResponseBody.js +29 -1
- package/dist/models/GetAssistantCapabilityResponseBody.js.map +1 -1
- package/dist/models/GetScenegroupHeaders.d.ts +37 -0
- package/dist/models/GetScenegroupHeaders.js +85 -0
- package/dist/models/GetScenegroupHeaders.js.map +1 -0
- package/dist/models/GetScenegroupRequest.d.ts +39 -0
- package/dist/models/GetScenegroupRequest.js +82 -0
- package/dist/models/GetScenegroupRequest.js.map +1 -0
- package/dist/models/GetScenegroupResponse.d.ts +19 -0
- package/dist/models/GetScenegroupResponse.js +69 -0
- package/dist/models/GetScenegroupResponse.js.map +1 -0
- package/dist/models/GetScenegroupResponseBody.d.ts +54 -0
- package/dist/models/GetScenegroupResponseBody.js +113 -0
- package/dist/models/GetScenegroupResponseBody.js.map +1 -0
- package/dist/models/GetScenegroupShrinkHeaders.d.ts +17 -0
- package/dist/models/GetScenegroupShrinkHeaders.js +63 -0
- package/dist/models/GetScenegroupShrinkHeaders.js.map +1 -0
- package/dist/models/GetScenegroupShrinkRequest.d.ts +22 -0
- package/dist/models/GetScenegroupShrinkRequest.js +60 -0
- package/dist/models/GetScenegroupShrinkRequest.js.map +1 -0
- package/dist/models/InvokeAssistantHeaders.d.ts +1 -0
- package/dist/models/InvokeAssistantHeaders.js +2 -0
- package/dist/models/InvokeAssistantHeaders.js.map +1 -1
- package/dist/models/InvokeAssistantRequest.d.ts +6 -6
- package/dist/models/InvokeAssistantRequest.js +7 -1
- package/dist/models/InvokeAssistantRequest.js.map +1 -1
- package/dist/models/InvokeAssistantResponseBody.d.ts +223 -0
- package/dist/models/InvokeAssistantResponseBody.js +268 -1
- package/dist/models/InvokeAssistantResponseBody.js.map +1 -1
- package/dist/models/model.d.ts +21 -0
- package/dist/models/model.js +110 -67
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +138 -0
- package/src/models/CreateMessageRequest.ts +10 -7
- package/src/models/CreateRunRequest.ts +10 -7
- package/src/models/CreateRunResponseBody.ts +42 -0
- package/src/models/CreateThreadRequest.ts +10 -3
- package/src/models/GetAssistantCapabilityHeaders.ts +3 -0
- package/src/models/GetAssistantCapabilityResponseBody.ts +35 -0
- package/src/models/GetScenegroupHeaders.ts +66 -0
- package/src/models/GetScenegroupRequest.ts +67 -0
- package/src/models/GetScenegroupResponse.ts +40 -0
- package/src/models/GetScenegroupResponseBody.ts +113 -0
- package/src/models/GetScenegroupShrinkHeaders.ts +33 -0
- package/src/models/GetScenegroupShrinkRequest.ts +37 -0
- package/src/models/InvokeAssistantHeaders.ts +3 -0
- package/src/models/InvokeAssistantRequest.ts +13 -7
- package/src/models/InvokeAssistantResponseBody.ts +400 -0
- package/src/models/model.ts +21 -0
package/src/client.ts
CHANGED
|
@@ -3214,10 +3214,18 @@ export default class Client extends OpenApi {
|
|
|
3214
3214
|
body["originalAssistantId"] = request.originalAssistantId;
|
|
3215
3215
|
}
|
|
3216
3216
|
|
|
3217
|
+
if (!$dara.isNull(request.sourceIdOfAssistantId)) {
|
|
3218
|
+
body["sourceIdOfAssistantId"] = request.sourceIdOfAssistantId;
|
|
3219
|
+
}
|
|
3220
|
+
|
|
3217
3221
|
if (!$dara.isNull(request.sourceIdOfOriginalAssistantId)) {
|
|
3218
3222
|
body["sourceIdOfOriginalAssistantId"] = request.sourceIdOfOriginalAssistantId;
|
|
3219
3223
|
}
|
|
3220
3224
|
|
|
3225
|
+
if (!$dara.isNull(request.sourceTypeOfAssistantId)) {
|
|
3226
|
+
body["sourceTypeOfAssistantId"] = request.sourceTypeOfAssistantId;
|
|
3227
|
+
}
|
|
3228
|
+
|
|
3221
3229
|
if (!$dara.isNull(request.sourceTypeOfOriginalAssistantId)) {
|
|
3222
3230
|
body["sourceTypeOfOriginalAssistantId"] = request.sourceTypeOfOriginalAssistantId;
|
|
3223
3231
|
}
|
|
@@ -3768,10 +3776,18 @@ export default class Client extends OpenApi {
|
|
|
3768
3776
|
body["originalAssistantId"] = request.originalAssistantId;
|
|
3769
3777
|
}
|
|
3770
3778
|
|
|
3779
|
+
if (!$dara.isNull(request.sourceIdOfAssistantId)) {
|
|
3780
|
+
body["sourceIdOfAssistantId"] = request.sourceIdOfAssistantId;
|
|
3781
|
+
}
|
|
3782
|
+
|
|
3771
3783
|
if (!$dara.isNull(request.sourceIdOfOriginalAssistantId)) {
|
|
3772
3784
|
body["sourceIdOfOriginalAssistantId"] = request.sourceIdOfOriginalAssistantId;
|
|
3773
3785
|
}
|
|
3774
3786
|
|
|
3787
|
+
if (!$dara.isNull(request.sourceTypeOfAssistantId)) {
|
|
3788
|
+
body["sourceTypeOfAssistantId"] = request.sourceTypeOfAssistantId;
|
|
3789
|
+
}
|
|
3790
|
+
|
|
3775
3791
|
if (!$dara.isNull(request.sourceTypeOfOriginalAssistantId)) {
|
|
3776
3792
|
body["sourceTypeOfOriginalAssistantId"] = request.sourceTypeOfOriginalAssistantId;
|
|
3777
3793
|
}
|
|
@@ -3852,10 +3868,18 @@ export default class Client extends OpenApi {
|
|
|
3852
3868
|
body["originalAssistantId"] = request.originalAssistantId;
|
|
3853
3869
|
}
|
|
3854
3870
|
|
|
3871
|
+
if (!$dara.isNull(request.sourceIdOfAssistantId)) {
|
|
3872
|
+
body["sourceIdOfAssistantId"] = request.sourceIdOfAssistantId;
|
|
3873
|
+
}
|
|
3874
|
+
|
|
3855
3875
|
if (!$dara.isNull(request.sourceIdOfOriginalAssistantId)) {
|
|
3856
3876
|
body["sourceIdOfOriginalAssistantId"] = request.sourceIdOfOriginalAssistantId;
|
|
3857
3877
|
}
|
|
3858
3878
|
|
|
3879
|
+
if (!$dara.isNull(request.sourceTypeOfAssistantId)) {
|
|
3880
|
+
body["sourceTypeOfAssistantId"] = request.sourceTypeOfAssistantId;
|
|
3881
|
+
}
|
|
3882
|
+
|
|
3859
3883
|
if (!$dara.isNull(request.sourceTypeOfOriginalAssistantId)) {
|
|
3860
3884
|
body["sourceTypeOfOriginalAssistantId"] = request.sourceTypeOfOriginalAssistantId;
|
|
3861
3885
|
}
|
|
@@ -4492,10 +4516,18 @@ export default class Client extends OpenApi {
|
|
|
4492
4516
|
body["originalAssistantId"] = request.originalAssistantId;
|
|
4493
4517
|
}
|
|
4494
4518
|
|
|
4519
|
+
if (!$dara.isNull(request.sourceIdOfAssistantId)) {
|
|
4520
|
+
body["sourceIdOfAssistantId"] = request.sourceIdOfAssistantId;
|
|
4521
|
+
}
|
|
4522
|
+
|
|
4495
4523
|
if (!$dara.isNull(request.sourceIdOfOriginalAssistantId)) {
|
|
4496
4524
|
body["sourceIdOfOriginalAssistantId"] = request.sourceIdOfOriginalAssistantId;
|
|
4497
4525
|
}
|
|
4498
4526
|
|
|
4527
|
+
if (!$dara.isNull(request.sourceTypeOfAssistantId)) {
|
|
4528
|
+
body["sourceTypeOfAssistantId"] = request.sourceTypeOfAssistantId;
|
|
4529
|
+
}
|
|
4530
|
+
|
|
4499
4531
|
if (!$dara.isNull(request.sourceTypeOfOriginalAssistantId)) {
|
|
4500
4532
|
body["sourceTypeOfOriginalAssistantId"] = request.sourceTypeOfOriginalAssistantId;
|
|
4501
4533
|
}
|
|
@@ -7521,6 +7553,10 @@ export default class Client extends OpenApi {
|
|
|
7521
7553
|
realHeaders["accountId"] = String(headers.accountId);
|
|
7522
7554
|
}
|
|
7523
7555
|
|
|
7556
|
+
if (!$dara.isNull(headers.aiLogContextJson)) {
|
|
7557
|
+
realHeaders["aiLogContextJson"] = String(headers.aiLogContextJson);
|
|
7558
|
+
}
|
|
7559
|
+
|
|
7524
7560
|
let req = new $OpenApiUtil.OpenApiRequest({
|
|
7525
7561
|
headers: realHeaders,
|
|
7526
7562
|
body: OpenApiUtil.parseToMap(body),
|
|
@@ -11647,6 +11683,76 @@ export default class Client extends OpenApi {
|
|
|
11647
11683
|
return await this.getRunningTasksWithOptions(request, headers, runtime);
|
|
11648
11684
|
}
|
|
11649
11685
|
|
|
11686
|
+
/**
|
|
11687
|
+
* 查询群信息
|
|
11688
|
+
*
|
|
11689
|
+
* @param tmpReq - GetScenegroupRequest
|
|
11690
|
+
* @param tmpHeader - GetScenegroupHeaders
|
|
11691
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
11692
|
+
* @returns GetScenegroupResponse
|
|
11693
|
+
*/
|
|
11694
|
+
async getScenegroupWithOptions(tmpReq: $_model.GetScenegroupRequest, tmpHeader: $_model.GetScenegroupHeaders, runtime: $dara.RuntimeOptions): Promise<$_model.GetScenegroupResponse> {
|
|
11695
|
+
tmpReq.validate();
|
|
11696
|
+
let request = new $_model.GetScenegroupShrinkRequest({ });
|
|
11697
|
+
OpenApiUtil.convert(tmpReq, request);
|
|
11698
|
+
let headers = new $_model.GetScenegroupShrinkHeaders({ });
|
|
11699
|
+
OpenApiUtil.convert(tmpHeader, headers);
|
|
11700
|
+
if (!$dara.isNull(tmpHeader.accountContext)) {
|
|
11701
|
+
headers.accountContextShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json");
|
|
11702
|
+
}
|
|
11703
|
+
|
|
11704
|
+
if (!$dara.isNull(tmpReq.tenantContext)) {
|
|
11705
|
+
request.tenantContextShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.tenantContext, "TenantContext", "json");
|
|
11706
|
+
}
|
|
11707
|
+
|
|
11708
|
+
let body : {[key: string ]: any} = { };
|
|
11709
|
+
if (!$dara.isNull(request.openConversationId)) {
|
|
11710
|
+
body["OpenConversationId"] = request.openConversationId;
|
|
11711
|
+
}
|
|
11712
|
+
|
|
11713
|
+
if (!$dara.isNull(request.tenantContextShrink)) {
|
|
11714
|
+
body["TenantContext"] = request.tenantContextShrink;
|
|
11715
|
+
}
|
|
11716
|
+
|
|
11717
|
+
let realHeaders : {[key: string ]: string} = { };
|
|
11718
|
+
if (!$dara.isNull(headers.commonHeaders)) {
|
|
11719
|
+
realHeaders = headers.commonHeaders;
|
|
11720
|
+
}
|
|
11721
|
+
|
|
11722
|
+
if (!$dara.isNull(headers.accountContextShrink)) {
|
|
11723
|
+
realHeaders["AccountContext"] = typeof headers.accountContextShrink === "string" ? headers.accountContextShrink : JSON.stringify(headers.accountContextShrink);
|
|
11724
|
+
}
|
|
11725
|
+
|
|
11726
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
11727
|
+
headers: realHeaders,
|
|
11728
|
+
body: OpenApiUtil.parseToMap(body),
|
|
11729
|
+
});
|
|
11730
|
+
let params = new $OpenApiUtil.Params({
|
|
11731
|
+
action: "GetScenegroup",
|
|
11732
|
+
version: "2023-04-26",
|
|
11733
|
+
protocol: "HTTPS",
|
|
11734
|
+
pathname: `/dingtalk/v1/im/getScenegroup`,
|
|
11735
|
+
method: "POST",
|
|
11736
|
+
authType: "AK",
|
|
11737
|
+
style: "ROA",
|
|
11738
|
+
reqBodyType: "formData",
|
|
11739
|
+
bodyType: "json",
|
|
11740
|
+
});
|
|
11741
|
+
return $dara.cast<$_model.GetScenegroupResponse>(await this.callApi(params, req, runtime), new $_model.GetScenegroupResponse({}));
|
|
11742
|
+
}
|
|
11743
|
+
|
|
11744
|
+
/**
|
|
11745
|
+
* 查询群信息
|
|
11746
|
+
*
|
|
11747
|
+
* @param request - GetScenegroupRequest
|
|
11748
|
+
* @returns GetScenegroupResponse
|
|
11749
|
+
*/
|
|
11750
|
+
async getScenegroup(request: $_model.GetScenegroupRequest): Promise<$_model.GetScenegroupResponse> {
|
|
11751
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
11752
|
+
let headers = new $_model.GetScenegroupHeaders({ });
|
|
11753
|
+
return await this.getScenegroupWithOptions(request, headers, runtime);
|
|
11754
|
+
}
|
|
11755
|
+
|
|
11650
11756
|
/**
|
|
11651
11757
|
* 获取用户忙闲信息
|
|
11652
11758
|
*
|
|
@@ -13618,6 +13724,10 @@ export default class Client extends OpenApi {
|
|
|
13618
13724
|
async *invokeAssistantWithSSE(request: $_model.InvokeAssistantRequest, headers: $_model.InvokeAssistantHeaders, runtime: $dara.RuntimeOptions): AsyncGenerator<$_model.InvokeAssistantResponse, any, unknown> {
|
|
13619
13725
|
request.validate();
|
|
13620
13726
|
let body : {[key: string ]: any} = { };
|
|
13727
|
+
if (!$dara.isNull(request.allowStructViewContent)) {
|
|
13728
|
+
body["allowStructViewContent"] = request.allowStructViewContent;
|
|
13729
|
+
}
|
|
13730
|
+
|
|
13621
13731
|
if (!$dara.isNull(request.assistantId)) {
|
|
13622
13732
|
body["assistantId"] = request.assistantId;
|
|
13623
13733
|
}
|
|
@@ -13642,10 +13752,18 @@ export default class Client extends OpenApi {
|
|
|
13642
13752
|
body["sessionId"] = request.sessionId;
|
|
13643
13753
|
}
|
|
13644
13754
|
|
|
13755
|
+
if (!$dara.isNull(request.sourceIdOfAssistantId)) {
|
|
13756
|
+
body["sourceIdOfAssistantId"] = request.sourceIdOfAssistantId;
|
|
13757
|
+
}
|
|
13758
|
+
|
|
13645
13759
|
if (!$dara.isNull(request.sourceIdOfOriginalAssistantId)) {
|
|
13646
13760
|
body["sourceIdOfOriginalAssistantId"] = request.sourceIdOfOriginalAssistantId;
|
|
13647
13761
|
}
|
|
13648
13762
|
|
|
13763
|
+
if (!$dara.isNull(request.sourceTypeOfAssistantId)) {
|
|
13764
|
+
body["sourceTypeOfAssistantId"] = request.sourceTypeOfAssistantId;
|
|
13765
|
+
}
|
|
13766
|
+
|
|
13649
13767
|
if (!$dara.isNull(request.sourceTypeOfOriginalAssistantId)) {
|
|
13650
13768
|
body["sourceTypeOfOriginalAssistantId"] = request.sourceTypeOfOriginalAssistantId;
|
|
13651
13769
|
}
|
|
@@ -13663,6 +13781,10 @@ export default class Client extends OpenApi {
|
|
|
13663
13781
|
realHeaders["accountId"] = String(headers.accountId);
|
|
13664
13782
|
}
|
|
13665
13783
|
|
|
13784
|
+
if (!$dara.isNull(headers.aiLogContextJson)) {
|
|
13785
|
+
realHeaders["aiLogContextJson"] = String(headers.aiLogContextJson);
|
|
13786
|
+
}
|
|
13787
|
+
|
|
13666
13788
|
if (!$dara.isNull(headers.alidingSsoTicket)) {
|
|
13667
13789
|
realHeaders["alidingSsoTicket"] = String(headers.alidingSsoTicket);
|
|
13668
13790
|
}
|
|
@@ -13710,6 +13832,10 @@ export default class Client extends OpenApi {
|
|
|
13710
13832
|
async invokeAssistantWithOptions(request: $_model.InvokeAssistantRequest, headers: $_model.InvokeAssistantHeaders, runtime: $dara.RuntimeOptions): Promise<$_model.InvokeAssistantResponse> {
|
|
13711
13833
|
request.validate();
|
|
13712
13834
|
let body : {[key: string ]: any} = { };
|
|
13835
|
+
if (!$dara.isNull(request.allowStructViewContent)) {
|
|
13836
|
+
body["allowStructViewContent"] = request.allowStructViewContent;
|
|
13837
|
+
}
|
|
13838
|
+
|
|
13713
13839
|
if (!$dara.isNull(request.assistantId)) {
|
|
13714
13840
|
body["assistantId"] = request.assistantId;
|
|
13715
13841
|
}
|
|
@@ -13734,10 +13860,18 @@ export default class Client extends OpenApi {
|
|
|
13734
13860
|
body["sessionId"] = request.sessionId;
|
|
13735
13861
|
}
|
|
13736
13862
|
|
|
13863
|
+
if (!$dara.isNull(request.sourceIdOfAssistantId)) {
|
|
13864
|
+
body["sourceIdOfAssistantId"] = request.sourceIdOfAssistantId;
|
|
13865
|
+
}
|
|
13866
|
+
|
|
13737
13867
|
if (!$dara.isNull(request.sourceIdOfOriginalAssistantId)) {
|
|
13738
13868
|
body["sourceIdOfOriginalAssistantId"] = request.sourceIdOfOriginalAssistantId;
|
|
13739
13869
|
}
|
|
13740
13870
|
|
|
13871
|
+
if (!$dara.isNull(request.sourceTypeOfAssistantId)) {
|
|
13872
|
+
body["sourceTypeOfAssistantId"] = request.sourceTypeOfAssistantId;
|
|
13873
|
+
}
|
|
13874
|
+
|
|
13741
13875
|
if (!$dara.isNull(request.sourceTypeOfOriginalAssistantId)) {
|
|
13742
13876
|
body["sourceTypeOfOriginalAssistantId"] = request.sourceTypeOfOriginalAssistantId;
|
|
13743
13877
|
}
|
|
@@ -13755,6 +13889,10 @@ export default class Client extends OpenApi {
|
|
|
13755
13889
|
realHeaders["accountId"] = String(headers.accountId);
|
|
13756
13890
|
}
|
|
13757
13891
|
|
|
13892
|
+
if (!$dara.isNull(headers.aiLogContextJson)) {
|
|
13893
|
+
realHeaders["aiLogContextJson"] = String(headers.aiLogContextJson);
|
|
13894
|
+
}
|
|
13895
|
+
|
|
13758
13896
|
if (!$dara.isNull(headers.alidingSsoTicket)) {
|
|
13759
13897
|
realHeaders["alidingSsoTicket"] = String(headers.alidingSsoTicket);
|
|
13760
13898
|
}
|
|
@@ -876,9 +876,6 @@ export class CreateMessageRequestMessages extends $dara.Model {
|
|
|
876
876
|
|
|
877
877
|
export class CreateMessageRequest extends $dara.Model {
|
|
878
878
|
/**
|
|
879
|
-
* @remarks
|
|
880
|
-
* This parameter is required.
|
|
881
|
-
*
|
|
882
879
|
* @example
|
|
883
880
|
* assistantId1
|
|
884
881
|
*/
|
|
@@ -898,12 +895,14 @@ export class CreateMessageRequest extends $dara.Model {
|
|
|
898
895
|
* @example
|
|
899
896
|
* agentKey1
|
|
900
897
|
*/
|
|
901
|
-
|
|
898
|
+
sourceIdOfAssistantId?: string;
|
|
902
899
|
/**
|
|
903
900
|
* @example
|
|
904
|
-
*
|
|
901
|
+
* agentKey1
|
|
905
902
|
*/
|
|
906
|
-
|
|
903
|
+
sourceIdOfOriginalAssistantId?: string;
|
|
904
|
+
sourceTypeOfAssistantId?: number;
|
|
905
|
+
sourceTypeOfOriginalAssistantId?: number;
|
|
907
906
|
/**
|
|
908
907
|
* @remarks
|
|
909
908
|
* This parameter is required.
|
|
@@ -918,7 +917,9 @@ export class CreateMessageRequest extends $dara.Model {
|
|
|
918
917
|
extLoginUser: 'extLoginUser',
|
|
919
918
|
messages: 'messages',
|
|
920
919
|
originalAssistantId: 'originalAssistantId',
|
|
920
|
+
sourceIdOfAssistantId: 'sourceIdOfAssistantId',
|
|
921
921
|
sourceIdOfOriginalAssistantId: 'sourceIdOfOriginalAssistantId',
|
|
922
|
+
sourceTypeOfAssistantId: 'sourceTypeOfAssistantId',
|
|
922
923
|
sourceTypeOfOriginalAssistantId: 'sourceTypeOfOriginalAssistantId',
|
|
923
924
|
threadId: 'threadId',
|
|
924
925
|
};
|
|
@@ -930,8 +931,10 @@ export class CreateMessageRequest extends $dara.Model {
|
|
|
930
931
|
extLoginUser: CreateMessageRequestExtLoginUser,
|
|
931
932
|
messages: { 'type': 'array', 'itemType': CreateMessageRequestMessages },
|
|
932
933
|
originalAssistantId: 'string',
|
|
934
|
+
sourceIdOfAssistantId: 'string',
|
|
933
935
|
sourceIdOfOriginalAssistantId: 'string',
|
|
934
|
-
|
|
936
|
+
sourceTypeOfAssistantId: 'number',
|
|
937
|
+
sourceTypeOfOriginalAssistantId: 'number',
|
|
935
938
|
threadId: 'string',
|
|
936
939
|
};
|
|
937
940
|
}
|
|
@@ -46,9 +46,6 @@ export class CreateRunRequestExtLoginUser extends $dara.Model {
|
|
|
46
46
|
export class CreateRunRequest extends $dara.Model {
|
|
47
47
|
allowStructViewContent?: boolean;
|
|
48
48
|
/**
|
|
49
|
-
* @remarks
|
|
50
|
-
* This parameter is required.
|
|
51
|
-
*
|
|
52
49
|
* @example
|
|
53
50
|
* assistantId1
|
|
54
51
|
*/
|
|
@@ -63,12 +60,14 @@ export class CreateRunRequest extends $dara.Model {
|
|
|
63
60
|
* @example
|
|
64
61
|
* agentKey1
|
|
65
62
|
*/
|
|
66
|
-
|
|
63
|
+
sourceIdOfAssistantId?: string;
|
|
67
64
|
/**
|
|
68
65
|
* @example
|
|
69
|
-
*
|
|
66
|
+
* agentKey1
|
|
70
67
|
*/
|
|
71
|
-
|
|
68
|
+
sourceIdOfOriginalAssistantId?: string;
|
|
69
|
+
sourceTypeOfAssistantId?: number;
|
|
70
|
+
sourceTypeOfOriginalAssistantId?: number;
|
|
72
71
|
/**
|
|
73
72
|
* @example
|
|
74
73
|
* false
|
|
@@ -88,7 +87,9 @@ export class CreateRunRequest extends $dara.Model {
|
|
|
88
87
|
assistantId: 'assistantId',
|
|
89
88
|
extLoginUser: 'extLoginUser',
|
|
90
89
|
originalAssistantId: 'originalAssistantId',
|
|
90
|
+
sourceIdOfAssistantId: 'sourceIdOfAssistantId',
|
|
91
91
|
sourceIdOfOriginalAssistantId: 'sourceIdOfOriginalAssistantId',
|
|
92
|
+
sourceTypeOfAssistantId: 'sourceTypeOfAssistantId',
|
|
92
93
|
sourceTypeOfOriginalAssistantId: 'sourceTypeOfOriginalAssistantId',
|
|
93
94
|
stream: 'stream',
|
|
94
95
|
threadId: 'threadId',
|
|
@@ -101,8 +102,10 @@ export class CreateRunRequest extends $dara.Model {
|
|
|
101
102
|
assistantId: 'string',
|
|
102
103
|
extLoginUser: CreateRunRequestExtLoginUser,
|
|
103
104
|
originalAssistantId: 'string',
|
|
105
|
+
sourceIdOfAssistantId: 'string',
|
|
104
106
|
sourceIdOfOriginalAssistantId: 'string',
|
|
105
|
-
|
|
107
|
+
sourceTypeOfAssistantId: 'number',
|
|
108
|
+
sourceTypeOfOriginalAssistantId: 'number',
|
|
106
109
|
stream: 'boolean',
|
|
107
110
|
threadId: 'string',
|
|
108
111
|
};
|
|
@@ -796,6 +796,38 @@ export class CreateRunResponseBodyMessagesContentStructPartsDataPart extends $da
|
|
|
796
796
|
}
|
|
797
797
|
}
|
|
798
798
|
|
|
799
|
+
export class CreateRunResponseBodyMessagesContentStructPartsInfoPart extends $dara.Model {
|
|
800
|
+
cateIdList?: string[];
|
|
801
|
+
needFeedback?: boolean;
|
|
802
|
+
origin?: string;
|
|
803
|
+
static names(): { [key: string]: string } {
|
|
804
|
+
return {
|
|
805
|
+
cateIdList: 'cateIdList',
|
|
806
|
+
needFeedback: 'needFeedback',
|
|
807
|
+
origin: 'origin',
|
|
808
|
+
};
|
|
809
|
+
}
|
|
810
|
+
|
|
811
|
+
static types(): { [key: string]: any } {
|
|
812
|
+
return {
|
|
813
|
+
cateIdList: { 'type': 'array', 'itemType': 'string' },
|
|
814
|
+
needFeedback: 'boolean',
|
|
815
|
+
origin: 'string',
|
|
816
|
+
};
|
|
817
|
+
}
|
|
818
|
+
|
|
819
|
+
validate() {
|
|
820
|
+
if(Array.isArray(this.cateIdList)) {
|
|
821
|
+
$dara.Model.validateArray(this.cateIdList);
|
|
822
|
+
}
|
|
823
|
+
super.validate();
|
|
824
|
+
}
|
|
825
|
+
|
|
826
|
+
constructor(map?: { [key: string]: any }) {
|
|
827
|
+
super(map);
|
|
828
|
+
}
|
|
829
|
+
}
|
|
830
|
+
|
|
799
831
|
export class CreateRunResponseBodyMessagesContentStructPartsReasonPart extends $dara.Model {
|
|
800
832
|
/**
|
|
801
833
|
* @example
|
|
@@ -1004,6 +1036,11 @@ export class CreateRunResponseBodyMessagesContentStructParts extends $dara.Model
|
|
|
1004
1036
|
*/
|
|
1005
1037
|
dataPart?: CreateRunResponseBodyMessagesContentStructPartsDataPart;
|
|
1006
1038
|
finish?: boolean;
|
|
1039
|
+
/**
|
|
1040
|
+
* @example
|
|
1041
|
+
* {}
|
|
1042
|
+
*/
|
|
1043
|
+
infoPart?: CreateRunResponseBodyMessagesContentStructPartsInfoPart;
|
|
1007
1044
|
/**
|
|
1008
1045
|
* @example
|
|
1009
1046
|
* 这是正文内容部分
|
|
@@ -1047,6 +1084,7 @@ export class CreateRunResponseBodyMessagesContentStructParts extends $dara.Model
|
|
|
1047
1084
|
append: 'append',
|
|
1048
1085
|
dataPart: 'dataPart',
|
|
1049
1086
|
finish: 'finish',
|
|
1087
|
+
infoPart: 'infoPart',
|
|
1050
1088
|
partDesc: 'partDesc',
|
|
1051
1089
|
partId: 'partId',
|
|
1052
1090
|
reasonPart: 'reasonPart',
|
|
@@ -1062,6 +1100,7 @@ export class CreateRunResponseBodyMessagesContentStructParts extends $dara.Model
|
|
|
1062
1100
|
append: 'boolean',
|
|
1063
1101
|
dataPart: CreateRunResponseBodyMessagesContentStructPartsDataPart,
|
|
1064
1102
|
finish: 'boolean',
|
|
1103
|
+
infoPart: CreateRunResponseBodyMessagesContentStructPartsInfoPart,
|
|
1065
1104
|
partDesc: 'string',
|
|
1066
1105
|
partId: 'string',
|
|
1067
1106
|
reasonPart: CreateRunResponseBodyMessagesContentStructPartsReasonPart,
|
|
@@ -1076,6 +1115,9 @@ export class CreateRunResponseBodyMessagesContentStructParts extends $dara.Model
|
|
|
1076
1115
|
if(this.dataPart && typeof (this.dataPart as any).validate === 'function') {
|
|
1077
1116
|
(this.dataPart as any).validate();
|
|
1078
1117
|
}
|
|
1118
|
+
if(this.infoPart && typeof (this.infoPart as any).validate === 'function') {
|
|
1119
|
+
(this.infoPart as any).validate();
|
|
1120
|
+
}
|
|
1079
1121
|
if(this.reasonPart && typeof (this.reasonPart as any).validate === 'function') {
|
|
1080
1122
|
(this.reasonPart as any).validate();
|
|
1081
1123
|
}
|
|
@@ -45,9 +45,6 @@ export class CreateThreadRequestExtLoginUser extends $dara.Model {
|
|
|
45
45
|
|
|
46
46
|
export class CreateThreadRequest extends $dara.Model {
|
|
47
47
|
/**
|
|
48
|
-
* @remarks
|
|
49
|
-
* This parameter is required.
|
|
50
|
-
*
|
|
51
48
|
* @example
|
|
52
49
|
* assistantId1
|
|
53
50
|
*/
|
|
@@ -59,11 +56,17 @@ export class CreateThreadRequest extends $dara.Model {
|
|
|
59
56
|
* assistantId
|
|
60
57
|
*/
|
|
61
58
|
originalAssistantId?: string;
|
|
59
|
+
/**
|
|
60
|
+
* @example
|
|
61
|
+
* agentKey1
|
|
62
|
+
*/
|
|
63
|
+
sourceIdOfAssistantId?: string;
|
|
62
64
|
/**
|
|
63
65
|
* @example
|
|
64
66
|
* agentKey1
|
|
65
67
|
*/
|
|
66
68
|
sourceIdOfOriginalAssistantId?: string;
|
|
69
|
+
sourceTypeOfAssistantId?: number;
|
|
67
70
|
sourceTypeOfOriginalAssistantId?: number;
|
|
68
71
|
static names(): { [key: string]: string } {
|
|
69
72
|
return {
|
|
@@ -71,7 +74,9 @@ export class CreateThreadRequest extends $dara.Model {
|
|
|
71
74
|
clientEnum: 'clientEnum',
|
|
72
75
|
extLoginUser: 'extLoginUser',
|
|
73
76
|
originalAssistantId: 'originalAssistantId',
|
|
77
|
+
sourceIdOfAssistantId: 'sourceIdOfAssistantId',
|
|
74
78
|
sourceIdOfOriginalAssistantId: 'sourceIdOfOriginalAssistantId',
|
|
79
|
+
sourceTypeOfAssistantId: 'sourceTypeOfAssistantId',
|
|
75
80
|
sourceTypeOfOriginalAssistantId: 'sourceTypeOfOriginalAssistantId',
|
|
76
81
|
};
|
|
77
82
|
}
|
|
@@ -82,7 +87,9 @@ export class CreateThreadRequest extends $dara.Model {
|
|
|
82
87
|
clientEnum: 'string',
|
|
83
88
|
extLoginUser: CreateThreadRequestExtLoginUser,
|
|
84
89
|
originalAssistantId: 'string',
|
|
90
|
+
sourceIdOfAssistantId: 'string',
|
|
85
91
|
sourceIdOfOriginalAssistantId: 'string',
|
|
92
|
+
sourceTypeOfAssistantId: 'number',
|
|
86
93
|
sourceTypeOfOriginalAssistantId: 'number',
|
|
87
94
|
};
|
|
88
95
|
}
|
|
@@ -9,10 +9,12 @@ export class GetAssistantCapabilityHeaders extends $dara.Model {
|
|
|
9
9
|
* 123456
|
|
10
10
|
*/
|
|
11
11
|
accountId?: string;
|
|
12
|
+
aiLogContextJson?: string;
|
|
12
13
|
static names(): { [key: string]: string } {
|
|
13
14
|
return {
|
|
14
15
|
commonHeaders: 'commonHeaders',
|
|
15
16
|
accountId: 'accountId',
|
|
17
|
+
aiLogContextJson: 'aiLogContextJson',
|
|
16
18
|
};
|
|
17
19
|
}
|
|
18
20
|
|
|
@@ -20,6 +22,7 @@ export class GetAssistantCapabilityHeaders extends $dara.Model {
|
|
|
20
22
|
return {
|
|
21
23
|
commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
22
24
|
accountId: 'string',
|
|
25
|
+
aiLogContextJson: 'string',
|
|
23
26
|
};
|
|
24
27
|
}
|
|
25
28
|
|
|
@@ -80,6 +80,35 @@ export class GetAssistantCapabilityResponseBodyCapabilityAssessment extends $dar
|
|
|
80
80
|
}
|
|
81
81
|
}
|
|
82
82
|
|
|
83
|
+
export class GetAssistantCapabilityResponseBodyThread extends $dara.Model {
|
|
84
|
+
createAt?: number;
|
|
85
|
+
id?: string;
|
|
86
|
+
status?: string;
|
|
87
|
+
static names(): { [key: string]: string } {
|
|
88
|
+
return {
|
|
89
|
+
createAt: 'createAt',
|
|
90
|
+
id: 'id',
|
|
91
|
+
status: 'status',
|
|
92
|
+
};
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
static types(): { [key: string]: any } {
|
|
96
|
+
return {
|
|
97
|
+
createAt: 'number',
|
|
98
|
+
id: 'string',
|
|
99
|
+
status: 'string',
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
validate() {
|
|
104
|
+
super.validate();
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
constructor(map?: { [key: string]: any }) {
|
|
108
|
+
super(map);
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
|
|
83
112
|
export class GetAssistantCapabilityResponseBody extends $dara.Model {
|
|
84
113
|
/**
|
|
85
114
|
* @example
|
|
@@ -101,12 +130,14 @@ export class GetAssistantCapabilityResponseBody extends $dara.Model {
|
|
|
101
130
|
* requestId
|
|
102
131
|
*/
|
|
103
132
|
requestId?: string;
|
|
133
|
+
thread?: GetAssistantCapabilityResponseBodyThread;
|
|
104
134
|
static names(): { [key: string]: string } {
|
|
105
135
|
return {
|
|
106
136
|
assistantDescription: 'assistantDescription',
|
|
107
137
|
canHandle: 'canHandle',
|
|
108
138
|
capabilityAssessment: 'capabilityAssessment',
|
|
109
139
|
requestId: 'requestId',
|
|
140
|
+
thread: 'thread',
|
|
110
141
|
};
|
|
111
142
|
}
|
|
112
143
|
|
|
@@ -116,6 +147,7 @@ export class GetAssistantCapabilityResponseBody extends $dara.Model {
|
|
|
116
147
|
canHandle: 'boolean',
|
|
117
148
|
capabilityAssessment: GetAssistantCapabilityResponseBodyCapabilityAssessment,
|
|
118
149
|
requestId: 'string',
|
|
150
|
+
thread: GetAssistantCapabilityResponseBodyThread,
|
|
119
151
|
};
|
|
120
152
|
}
|
|
121
153
|
|
|
@@ -123,6 +155,9 @@ export class GetAssistantCapabilityResponseBody extends $dara.Model {
|
|
|
123
155
|
if(this.capabilityAssessment && typeof (this.capabilityAssessment as any).validate === 'function') {
|
|
124
156
|
(this.capabilityAssessment as any).validate();
|
|
125
157
|
}
|
|
158
|
+
if(this.thread && typeof (this.thread as any).validate === 'function') {
|
|
159
|
+
(this.thread as any).validate();
|
|
160
|
+
}
|
|
126
161
|
super.validate();
|
|
127
162
|
}
|
|
128
163
|
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class GetScenegroupHeadersAccountContext extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* This parameter is required.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* 012345
|
|
12
|
+
*/
|
|
13
|
+
accountId?: string;
|
|
14
|
+
static names(): { [key: string]: string } {
|
|
15
|
+
return {
|
|
16
|
+
accountId: 'accountId',
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
static types(): { [key: string]: any } {
|
|
21
|
+
return {
|
|
22
|
+
accountId: 'string',
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
validate() {
|
|
27
|
+
super.validate();
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
constructor(map?: { [key: string]: any }) {
|
|
31
|
+
super(map);
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export class GetScenegroupHeaders extends $dara.Model {
|
|
36
|
+
commonHeaders?: { [key: string]: string };
|
|
37
|
+
accountContext?: GetScenegroupHeadersAccountContext;
|
|
38
|
+
static names(): { [key: string]: string } {
|
|
39
|
+
return {
|
|
40
|
+
commonHeaders: 'commonHeaders',
|
|
41
|
+
accountContext: 'AccountContext',
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
static types(): { [key: string]: any } {
|
|
46
|
+
return {
|
|
47
|
+
commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
48
|
+
accountContext: GetScenegroupHeadersAccountContext,
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
validate() {
|
|
53
|
+
if(this.commonHeaders) {
|
|
54
|
+
$dara.Model.validateMap(this.commonHeaders);
|
|
55
|
+
}
|
|
56
|
+
if(this.accountContext && typeof (this.accountContext as any).validate === 'function') {
|
|
57
|
+
(this.accountContext as any).validate();
|
|
58
|
+
}
|
|
59
|
+
super.validate();
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
constructor(map?: { [key: string]: any }) {
|
|
63
|
+
super(map);
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class GetScenegroupRequestTenantContext extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @example
|
|
8
|
+
* xxxxxx
|
|
9
|
+
*/
|
|
10
|
+
tenantId?: string;
|
|
11
|
+
static names(): { [key: string]: string } {
|
|
12
|
+
return {
|
|
13
|
+
tenantId: 'tenantId',
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
static types(): { [key: string]: any } {
|
|
18
|
+
return {
|
|
19
|
+
tenantId: 'string',
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
validate() {
|
|
24
|
+
super.validate();
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
constructor(map?: { [key: string]: any }) {
|
|
28
|
+
super(map);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export class GetScenegroupRequest extends $dara.Model {
|
|
33
|
+
/**
|
|
34
|
+
* @remarks
|
|
35
|
+
* This parameter is required.
|
|
36
|
+
*
|
|
37
|
+
* @example
|
|
38
|
+
* cidt*****Xa4K10w==
|
|
39
|
+
*/
|
|
40
|
+
openConversationId?: string;
|
|
41
|
+
tenantContext?: GetScenegroupRequestTenantContext;
|
|
42
|
+
static names(): { [key: string]: string } {
|
|
43
|
+
return {
|
|
44
|
+
openConversationId: 'OpenConversationId',
|
|
45
|
+
tenantContext: 'TenantContext',
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
static types(): { [key: string]: any } {
|
|
50
|
+
return {
|
|
51
|
+
openConversationId: 'string',
|
|
52
|
+
tenantContext: GetScenegroupRequestTenantContext,
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
validate() {
|
|
57
|
+
if(this.tenantContext && typeof (this.tenantContext as any).validate === 'function') {
|
|
58
|
+
(this.tenantContext as any).validate();
|
|
59
|
+
}
|
|
60
|
+
super.validate();
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
constructor(map?: { [key: string]: any }) {
|
|
64
|
+
super(map);
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
|