@alicloud/aliding20230426 2.41.2 → 2.41.3

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 (44) hide show
  1. package/dist/client.js +51 -0
  2. package/dist/client.js.map +1 -1
  3. package/dist/models/CreateMessageRequest.d.ts +5 -6
  4. package/dist/models/CreateMessageRequest.js +5 -1
  5. package/dist/models/CreateMessageRequest.js.map +1 -1
  6. package/dist/models/CreateRunRequest.d.ts +5 -6
  7. package/dist/models/CreateRunRequest.js +5 -1
  8. package/dist/models/CreateRunRequest.js.map +1 -1
  9. package/dist/models/CreateRunResponseBody.d.ts +20 -0
  10. package/dist/models/CreateRunResponseBody.js +32 -1
  11. package/dist/models/CreateRunResponseBody.js.map +1 -1
  12. package/dist/models/CreateThreadRequest.d.ts +6 -3
  13. package/dist/models/CreateThreadRequest.js +4 -0
  14. package/dist/models/CreateThreadRequest.js.map +1 -1
  15. package/dist/models/GetAssistantCapabilityHeaders.d.ts +1 -0
  16. package/dist/models/GetAssistantCapabilityHeaders.js +2 -0
  17. package/dist/models/GetAssistantCapabilityHeaders.js.map +1 -1
  18. package/dist/models/GetAssistantCapabilityResponseBody.d.ts +16 -0
  19. package/dist/models/GetAssistantCapabilityResponseBody.js +29 -1
  20. package/dist/models/GetAssistantCapabilityResponseBody.js.map +1 -1
  21. package/dist/models/InvokeAssistantHeaders.d.ts +1 -0
  22. package/dist/models/InvokeAssistantHeaders.js +2 -0
  23. package/dist/models/InvokeAssistantHeaders.js.map +1 -1
  24. package/dist/models/InvokeAssistantRequest.d.ts +6 -6
  25. package/dist/models/InvokeAssistantRequest.js +7 -1
  26. package/dist/models/InvokeAssistantRequest.js.map +1 -1
  27. package/dist/models/InvokeAssistantResponseBody.d.ts +223 -0
  28. package/dist/models/InvokeAssistantResponseBody.js +268 -1
  29. package/dist/models/InvokeAssistantResponseBody.js.map +1 -1
  30. package/dist/models/model.d.ts +12 -0
  31. package/dist/models/model.js +91 -67
  32. package/dist/models/model.js.map +1 -1
  33. package/package.json +1 -1
  34. package/src/client.ts +68 -0
  35. package/src/models/CreateMessageRequest.ts +10 -7
  36. package/src/models/CreateRunRequest.ts +10 -7
  37. package/src/models/CreateRunResponseBody.ts +42 -0
  38. package/src/models/CreateThreadRequest.ts +10 -3
  39. package/src/models/GetAssistantCapabilityHeaders.ts +3 -0
  40. package/src/models/GetAssistantCapabilityResponseBody.ts +35 -0
  41. package/src/models/InvokeAssistantHeaders.ts +3 -0
  42. package/src/models/InvokeAssistantRequest.ts +13 -7
  43. package/src/models/InvokeAssistantResponseBody.ts +400 -0
  44. package/src/models/model.ts +12 -0
@@ -773,6 +773,397 @@ export class InvokeAssistantResponseBodyMessagesContent extends $dara.Model {
773
773
  }
774
774
  }
775
775
 
776
+ export class InvokeAssistantResponseBodyMessagesContentStructPartsDataPart extends $dara.Model {
777
+ data?: any;
778
+ static names(): { [key: string]: string } {
779
+ return {
780
+ data: 'data',
781
+ };
782
+ }
783
+
784
+ static types(): { [key: string]: any } {
785
+ return {
786
+ data: 'any',
787
+ };
788
+ }
789
+
790
+ validate() {
791
+ super.validate();
792
+ }
793
+
794
+ constructor(map?: { [key: string]: any }) {
795
+ super(map);
796
+ }
797
+ }
798
+
799
+ export class InvokeAssistantResponseBodyMessagesContentStructPartsInfoPart 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
+
831
+ export class InvokeAssistantResponseBodyMessagesContentStructPartsReasonPart extends $dara.Model {
832
+ /**
833
+ * @example
834
+ * 123123
835
+ */
836
+ reason?: string;
837
+ static names(): { [key: string]: string } {
838
+ return {
839
+ reason: 'reason',
840
+ };
841
+ }
842
+
843
+ static types(): { [key: string]: any } {
844
+ return {
845
+ reason: 'string',
846
+ };
847
+ }
848
+
849
+ validate() {
850
+ super.validate();
851
+ }
852
+
853
+ constructor(map?: { [key: string]: any }) {
854
+ super(map);
855
+ }
856
+ }
857
+
858
+ export class InvokeAssistantResponseBodyMessagesContentStructPartsRecommendPartRecommends extends $dara.Model {
859
+ mobileUrl?: string;
860
+ text?: string;
861
+ url?: string;
862
+ static names(): { [key: string]: string } {
863
+ return {
864
+ mobileUrl: 'mobileUrl',
865
+ text: 'text',
866
+ url: 'url',
867
+ };
868
+ }
869
+
870
+ static types(): { [key: string]: any } {
871
+ return {
872
+ mobileUrl: 'string',
873
+ text: 'string',
874
+ url: 'string',
875
+ };
876
+ }
877
+
878
+ validate() {
879
+ super.validate();
880
+ }
881
+
882
+ constructor(map?: { [key: string]: any }) {
883
+ super(map);
884
+ }
885
+ }
886
+
887
+ export class InvokeAssistantResponseBodyMessagesContentStructPartsRecommendPart extends $dara.Model {
888
+ recommends?: InvokeAssistantResponseBodyMessagesContentStructPartsRecommendPartRecommends[];
889
+ static names(): { [key: string]: string } {
890
+ return {
891
+ recommends: 'recommends',
892
+ };
893
+ }
894
+
895
+ static types(): { [key: string]: any } {
896
+ return {
897
+ recommends: { 'type': 'array', 'itemType': InvokeAssistantResponseBodyMessagesContentStructPartsRecommendPartRecommends },
898
+ };
899
+ }
900
+
901
+ validate() {
902
+ if(Array.isArray(this.recommends)) {
903
+ $dara.Model.validateArray(this.recommends);
904
+ }
905
+ super.validate();
906
+ }
907
+
908
+ constructor(map?: { [key: string]: any }) {
909
+ super(map);
910
+ }
911
+ }
912
+
913
+ export class InvokeAssistantResponseBodyMessagesContentStructPartsReferencePartReferences extends $dara.Model {
914
+ /**
915
+ * @example
916
+ * 0
917
+ */
918
+ index?: string;
919
+ /**
920
+ * @example
921
+ * mcp是....
922
+ */
923
+ name?: string;
924
+ /**
925
+ * @example
926
+ * ata
927
+ */
928
+ sourceCode?: string;
929
+ sourceIcon?: string;
930
+ /**
931
+ * @example
932
+ * 摘要
933
+ */
934
+ summary?: string;
935
+ /**
936
+ * @example
937
+ * 《mcp原理介绍》
938
+ */
939
+ title?: string;
940
+ /**
941
+ * @example
942
+ * https://taobao.com
943
+ */
944
+ url?: string;
945
+ static names(): { [key: string]: string } {
946
+ return {
947
+ index: 'index',
948
+ name: 'name',
949
+ sourceCode: 'sourceCode',
950
+ sourceIcon: 'sourceIcon',
951
+ summary: 'summary',
952
+ title: 'title',
953
+ url: 'url',
954
+ };
955
+ }
956
+
957
+ static types(): { [key: string]: any } {
958
+ return {
959
+ index: 'string',
960
+ name: 'string',
961
+ sourceCode: 'string',
962
+ sourceIcon: 'string',
963
+ summary: 'string',
964
+ title: 'string',
965
+ url: 'string',
966
+ };
967
+ }
968
+
969
+ validate() {
970
+ super.validate();
971
+ }
972
+
973
+ constructor(map?: { [key: string]: any }) {
974
+ super(map);
975
+ }
976
+ }
977
+
978
+ export class InvokeAssistantResponseBodyMessagesContentStructPartsReferencePart extends $dara.Model {
979
+ references?: InvokeAssistantResponseBodyMessagesContentStructPartsReferencePartReferences[];
980
+ static names(): { [key: string]: string } {
981
+ return {
982
+ references: 'references',
983
+ };
984
+ }
985
+
986
+ static types(): { [key: string]: any } {
987
+ return {
988
+ references: { 'type': 'array', 'itemType': InvokeAssistantResponseBodyMessagesContentStructPartsReferencePartReferences },
989
+ };
990
+ }
991
+
992
+ validate() {
993
+ if(Array.isArray(this.references)) {
994
+ $dara.Model.validateArray(this.references);
995
+ }
996
+ super.validate();
997
+ }
998
+
999
+ constructor(map?: { [key: string]: any }) {
1000
+ super(map);
1001
+ }
1002
+ }
1003
+
1004
+ export class InvokeAssistantResponseBodyMessagesContentStructPartsTextPart extends $dara.Model {
1005
+ /**
1006
+ * @example
1007
+ * 123123
1008
+ */
1009
+ text?: string;
1010
+ static names(): { [key: string]: string } {
1011
+ return {
1012
+ text: 'text',
1013
+ };
1014
+ }
1015
+
1016
+ static types(): { [key: string]: any } {
1017
+ return {
1018
+ text: 'string',
1019
+ };
1020
+ }
1021
+
1022
+ validate() {
1023
+ super.validate();
1024
+ }
1025
+
1026
+ constructor(map?: { [key: string]: any }) {
1027
+ super(map);
1028
+ }
1029
+ }
1030
+
1031
+ export class InvokeAssistantResponseBodyMessagesContentStructParts extends $dara.Model {
1032
+ append?: boolean;
1033
+ /**
1034
+ * @example
1035
+ * {}
1036
+ */
1037
+ dataPart?: InvokeAssistantResponseBodyMessagesContentStructPartsDataPart;
1038
+ finish?: boolean;
1039
+ /**
1040
+ * @example
1041
+ * {}
1042
+ */
1043
+ infoPart?: InvokeAssistantResponseBodyMessagesContentStructPartsInfoPart;
1044
+ /**
1045
+ * @example
1046
+ * 这是正文内容部分
1047
+ */
1048
+ partDesc?: string;
1049
+ /**
1050
+ * @example
1051
+ * artifactId123
1052
+ */
1053
+ partId?: string;
1054
+ /**
1055
+ * @example
1056
+ * {}
1057
+ */
1058
+ reasonPart?: InvokeAssistantResponseBodyMessagesContentStructPartsReasonPart;
1059
+ /**
1060
+ * @example
1061
+ * {}
1062
+ */
1063
+ recommendPart?: InvokeAssistantResponseBodyMessagesContentStructPartsRecommendPart;
1064
+ /**
1065
+ * @example
1066
+ * {}
1067
+ */
1068
+ referencePart?: InvokeAssistantResponseBodyMessagesContentStructPartsReferencePart;
1069
+ /**
1070
+ * @example
1071
+ * {}
1072
+ */
1073
+ textPart?: InvokeAssistantResponseBodyMessagesContentStructPartsTextPart;
1074
+ /**
1075
+ * @remarks
1076
+ * This parameter is required.
1077
+ *
1078
+ * @example
1079
+ * textPart
1080
+ */
1081
+ type?: string;
1082
+ static names(): { [key: string]: string } {
1083
+ return {
1084
+ append: 'append',
1085
+ dataPart: 'dataPart',
1086
+ finish: 'finish',
1087
+ infoPart: 'infoPart',
1088
+ partDesc: 'partDesc',
1089
+ partId: 'partId',
1090
+ reasonPart: 'reasonPart',
1091
+ recommendPart: 'recommendPart',
1092
+ referencePart: 'referencePart',
1093
+ textPart: 'textPart',
1094
+ type: 'type',
1095
+ };
1096
+ }
1097
+
1098
+ static types(): { [key: string]: any } {
1099
+ return {
1100
+ append: 'boolean',
1101
+ dataPart: InvokeAssistantResponseBodyMessagesContentStructPartsDataPart,
1102
+ finish: 'boolean',
1103
+ infoPart: InvokeAssistantResponseBodyMessagesContentStructPartsInfoPart,
1104
+ partDesc: 'string',
1105
+ partId: 'string',
1106
+ reasonPart: InvokeAssistantResponseBodyMessagesContentStructPartsReasonPart,
1107
+ recommendPart: InvokeAssistantResponseBodyMessagesContentStructPartsRecommendPart,
1108
+ referencePart: InvokeAssistantResponseBodyMessagesContentStructPartsReferencePart,
1109
+ textPart: InvokeAssistantResponseBodyMessagesContentStructPartsTextPart,
1110
+ type: 'string',
1111
+ };
1112
+ }
1113
+
1114
+ validate() {
1115
+ if(this.dataPart && typeof (this.dataPart as any).validate === 'function') {
1116
+ (this.dataPart as any).validate();
1117
+ }
1118
+ if(this.infoPart && typeof (this.infoPart as any).validate === 'function') {
1119
+ (this.infoPart as any).validate();
1120
+ }
1121
+ if(this.reasonPart && typeof (this.reasonPart as any).validate === 'function') {
1122
+ (this.reasonPart as any).validate();
1123
+ }
1124
+ if(this.recommendPart && typeof (this.recommendPart as any).validate === 'function') {
1125
+ (this.recommendPart as any).validate();
1126
+ }
1127
+ if(this.referencePart && typeof (this.referencePart as any).validate === 'function') {
1128
+ (this.referencePart as any).validate();
1129
+ }
1130
+ if(this.textPart && typeof (this.textPart as any).validate === 'function') {
1131
+ (this.textPart as any).validate();
1132
+ }
1133
+ super.validate();
1134
+ }
1135
+
1136
+ constructor(map?: { [key: string]: any }) {
1137
+ super(map);
1138
+ }
1139
+ }
1140
+
1141
+ export class InvokeAssistantResponseBodyMessagesContentStruct extends $dara.Model {
1142
+ parts?: InvokeAssistantResponseBodyMessagesContentStructParts[];
1143
+ static names(): { [key: string]: string } {
1144
+ return {
1145
+ parts: 'parts',
1146
+ };
1147
+ }
1148
+
1149
+ static types(): { [key: string]: any } {
1150
+ return {
1151
+ parts: { 'type': 'array', 'itemType': InvokeAssistantResponseBodyMessagesContentStructParts },
1152
+ };
1153
+ }
1154
+
1155
+ validate() {
1156
+ if(Array.isArray(this.parts)) {
1157
+ $dara.Model.validateArray(this.parts);
1158
+ }
1159
+ super.validate();
1160
+ }
1161
+
1162
+ constructor(map?: { [key: string]: any }) {
1163
+ super(map);
1164
+ }
1165
+ }
1166
+
776
1167
  export class InvokeAssistantResponseBodyMessages extends $dara.Model {
777
1168
  content?: InvokeAssistantResponseBodyMessagesContent;
778
1169
  /**
@@ -780,11 +1171,13 @@ export class InvokeAssistantResponseBodyMessages extends $dara.Model {
780
1171
  * 这是一张小猫钓鱼图
781
1172
  */
782
1173
  contentDesc?: string;
1174
+ contentStruct?: InvokeAssistantResponseBodyMessagesContentStruct;
783
1175
  /**
784
1176
  * @example
785
1177
  * 1642448000000
786
1178
  */
787
1179
  createAt?: number;
1180
+ id?: string;
788
1181
  /**
789
1182
  * @example
790
1183
  * user
@@ -794,7 +1187,9 @@ export class InvokeAssistantResponseBodyMessages extends $dara.Model {
794
1187
  return {
795
1188
  content: 'content',
796
1189
  contentDesc: 'contentDesc',
1190
+ contentStruct: 'contentStruct',
797
1191
  createAt: 'createAt',
1192
+ id: 'id',
798
1193
  role: 'role',
799
1194
  };
800
1195
  }
@@ -803,7 +1198,9 @@ export class InvokeAssistantResponseBodyMessages extends $dara.Model {
803
1198
  return {
804
1199
  content: InvokeAssistantResponseBodyMessagesContent,
805
1200
  contentDesc: 'string',
1201
+ contentStruct: InvokeAssistantResponseBodyMessagesContentStruct,
806
1202
  createAt: 'number',
1203
+ id: 'string',
807
1204
  role: 'string',
808
1205
  };
809
1206
  }
@@ -812,6 +1209,9 @@ export class InvokeAssistantResponseBodyMessages extends $dara.Model {
812
1209
  if(this.content && typeof (this.content as any).validate === 'function') {
813
1210
  (this.content as any).validate();
814
1211
  }
1212
+ if(this.contentStruct && typeof (this.contentStruct as any).validate === 'function') {
1213
+ (this.contentStruct as any).validate();
1214
+ }
815
1215
  super.validate();
816
1216
  }
817
1217
 
@@ -207,6 +207,7 @@ export { CreateRunResponseBodyMessagesContentStructView } from './CreateRunRespo
207
207
  export { CreateRunResponseBodyMessagesContentText } from './CreateRunResponseBody';
208
208
  export { CreateRunResponseBodyMessagesContent } from './CreateRunResponseBody';
209
209
  export { CreateRunResponseBodyMessagesContentStructPartsDataPart } from './CreateRunResponseBody';
210
+ export { CreateRunResponseBodyMessagesContentStructPartsInfoPart } from './CreateRunResponseBody';
210
211
  export { CreateRunResponseBodyMessagesContentStructPartsReasonPart } from './CreateRunResponseBody';
211
212
  export { CreateRunResponseBodyMessagesContentStructPartsRecommendPartRecommends } from './CreateRunResponseBody';
212
213
  export { CreateRunResponseBodyMessagesContentStructPartsRecommendPart } from './CreateRunResponseBody';
@@ -344,6 +345,7 @@ export { GetAssistantCapabilityRequestMessagesContent } from './GetAssistantCapa
344
345
  export { GetAssistantCapabilityRequestMessages } from './GetAssistantCapabilityRequest';
345
346
  export { GetAssistantCapabilityResponseBodyCapabilityAssessmentCapabilityList } from './GetAssistantCapabilityResponseBody';
346
347
  export { GetAssistantCapabilityResponseBodyCapabilityAssessment } from './GetAssistantCapabilityResponseBody';
348
+ export { GetAssistantCapabilityResponseBodyThread } from './GetAssistantCapabilityResponseBody';
347
349
  export { GetCardTemplateHeadersAccountContext } from './GetCardTemplateHeaders';
348
350
  export { GetCardTemplateRequestTenantContext } from './GetCardTemplateRequest';
349
351
  export { GetCardTemplateResponseBodyCommonVariableList } from './GetCardTemplateResponseBody';
@@ -652,6 +654,16 @@ export { InvokeAssistantResponseBodyMessagesContentStructViewParts } from './Inv
652
654
  export { InvokeAssistantResponseBodyMessagesContentStructView } from './InvokeAssistantResponseBody';
653
655
  export { InvokeAssistantResponseBodyMessagesContentText } from './InvokeAssistantResponseBody';
654
656
  export { InvokeAssistantResponseBodyMessagesContent } from './InvokeAssistantResponseBody';
657
+ export { InvokeAssistantResponseBodyMessagesContentStructPartsDataPart } from './InvokeAssistantResponseBody';
658
+ export { InvokeAssistantResponseBodyMessagesContentStructPartsInfoPart } from './InvokeAssistantResponseBody';
659
+ export { InvokeAssistantResponseBodyMessagesContentStructPartsReasonPart } from './InvokeAssistantResponseBody';
660
+ export { InvokeAssistantResponseBodyMessagesContentStructPartsRecommendPartRecommends } from './InvokeAssistantResponseBody';
661
+ export { InvokeAssistantResponseBodyMessagesContentStructPartsRecommendPart } from './InvokeAssistantResponseBody';
662
+ export { InvokeAssistantResponseBodyMessagesContentStructPartsReferencePartReferences } from './InvokeAssistantResponseBody';
663
+ export { InvokeAssistantResponseBodyMessagesContentStructPartsReferencePart } from './InvokeAssistantResponseBody';
664
+ export { InvokeAssistantResponseBodyMessagesContentStructPartsTextPart } from './InvokeAssistantResponseBody';
665
+ export { InvokeAssistantResponseBodyMessagesContentStructParts } from './InvokeAssistantResponseBody';
666
+ export { InvokeAssistantResponseBodyMessagesContentStruct } from './InvokeAssistantResponseBody';
655
667
  export { InvokeAssistantResponseBodyMessages } from './InvokeAssistantResponseBody';
656
668
  export { InvokeSkillHeadersAccountContext } from './InvokeSkillHeaders';
657
669
  export { ListApplicationHeadersAccountContext } from './ListApplicationHeaders';