@rapidaai/nodejs 1.0.12 → 1.0.14
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/index.d.mts +58 -276
- package/dist/index.d.ts +58 -276
- package/dist/index.js +374 -1182
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +374 -1175
- package/dist/index.mjs.map +1 -1
- package/package.json +4 -3
package/dist/index.js
CHANGED
|
@@ -20727,8 +20727,6 @@ var require_assistant_api_pb = __commonJS({
|
|
|
20727
20727
|
goog.exportSymbol("proto.assistant_api.GetAllAssistantProviderModelResponse", null, global);
|
|
20728
20728
|
goog.exportSymbol("proto.assistant_api.GetAllAssistantRequest", null, global);
|
|
20729
20729
|
goog.exportSymbol("proto.assistant_api.GetAllAssistantResponse", null, global);
|
|
20730
|
-
goog.exportSymbol("proto.assistant_api.GetAllAssistantUserConversationRequest", null, global);
|
|
20731
|
-
goog.exportSymbol("proto.assistant_api.GetAllAssistantUserConversationResponse", null, global);
|
|
20732
20730
|
goog.exportSymbol("proto.assistant_api.GetAllMessageRequest", null, global);
|
|
20733
20731
|
goog.exportSymbol("proto.assistant_api.GetAllMessageResponse", null, global);
|
|
20734
20732
|
goog.exportSymbol("proto.assistant_api.GetAssistantConversationRequest", null, global);
|
|
@@ -20871,20 +20869,6 @@ var require_assistant_api_pb = __commonJS({
|
|
|
20871
20869
|
if (goog.DEBUG && !COMPILED) {
|
|
20872
20870
|
proto.assistant_api.UpdateAssistantDetailRequest.displayName = "proto.assistant_api.UpdateAssistantDetailRequest";
|
|
20873
20871
|
}
|
|
20874
|
-
proto.assistant_api.GetAllAssistantUserConversationRequest = function(opt_data) {
|
|
20875
|
-
jspb.Message.initialize(this, opt_data, 0, -1, proto.assistant_api.GetAllAssistantUserConversationRequest.repeatedFields_, null);
|
|
20876
|
-
};
|
|
20877
|
-
goog.inherits(proto.assistant_api.GetAllAssistantUserConversationRequest, jspb.Message);
|
|
20878
|
-
if (goog.DEBUG && !COMPILED) {
|
|
20879
|
-
proto.assistant_api.GetAllAssistantUserConversationRequest.displayName = "proto.assistant_api.GetAllAssistantUserConversationRequest";
|
|
20880
|
-
}
|
|
20881
|
-
proto.assistant_api.GetAllAssistantUserConversationResponse = function(opt_data) {
|
|
20882
|
-
jspb.Message.initialize(this, opt_data, 0, -1, proto.assistant_api.GetAllAssistantUserConversationResponse.repeatedFields_, null);
|
|
20883
|
-
};
|
|
20884
|
-
goog.inherits(proto.assistant_api.GetAllAssistantUserConversationResponse, jspb.Message);
|
|
20885
|
-
if (goog.DEBUG && !COMPILED) {
|
|
20886
|
-
proto.assistant_api.GetAllAssistantUserConversationResponse.displayName = "proto.assistant_api.GetAllAssistantUserConversationResponse";
|
|
20887
|
-
}
|
|
20888
20872
|
proto.assistant_api.GetAssistantConversationRequest = function(opt_data) {
|
|
20889
20873
|
jspb.Message.initialize(this, opt_data, 0, -1, proto.assistant_api.GetAssistantConversationRequest.repeatedFields_, null);
|
|
20890
20874
|
};
|
|
@@ -24645,337 +24629,6 @@ var require_assistant_api_pb = __commonJS({
|
|
|
24645
24629
|
proto.assistant_api.UpdateAssistantDetailRequest.prototype.setDescription = function(value) {
|
|
24646
24630
|
return jspb.Message.setProto3StringField(this, 3, value);
|
|
24647
24631
|
};
|
|
24648
|
-
proto.assistant_api.GetAllAssistantUserConversationRequest.repeatedFields_ = [3];
|
|
24649
|
-
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
24650
|
-
proto.assistant_api.GetAllAssistantUserConversationRequest.prototype.toObject = function(opt_includeInstance) {
|
|
24651
|
-
return proto.assistant_api.GetAllAssistantUserConversationRequest.toObject(opt_includeInstance, this);
|
|
24652
|
-
};
|
|
24653
|
-
proto.assistant_api.GetAllAssistantUserConversationRequest.toObject = function(includeInstance, msg) {
|
|
24654
|
-
var f, obj = {
|
|
24655
|
-
assistantid: jspb.Message.getFieldWithDefault(msg, 1, "0"),
|
|
24656
|
-
paginate: (f = msg.getPaginate()) && common_pb.Paginate.toObject(includeInstance, f),
|
|
24657
|
-
criteriasList: jspb.Message.toObjectList(
|
|
24658
|
-
msg.getCriteriasList(),
|
|
24659
|
-
common_pb.Criteria.toObject,
|
|
24660
|
-
includeInstance
|
|
24661
|
-
),
|
|
24662
|
-
source: jspb.Message.getFieldWithDefault(msg, 7, 0)
|
|
24663
|
-
};
|
|
24664
|
-
if (includeInstance) {
|
|
24665
|
-
obj.$jspbMessageInstance = msg;
|
|
24666
|
-
}
|
|
24667
|
-
return obj;
|
|
24668
|
-
};
|
|
24669
|
-
}
|
|
24670
|
-
proto.assistant_api.GetAllAssistantUserConversationRequest.deserializeBinary = function(bytes) {
|
|
24671
|
-
var reader = new jspb.BinaryReader(bytes);
|
|
24672
|
-
var msg = new proto.assistant_api.GetAllAssistantUserConversationRequest();
|
|
24673
|
-
return proto.assistant_api.GetAllAssistantUserConversationRequest.deserializeBinaryFromReader(msg, reader);
|
|
24674
|
-
};
|
|
24675
|
-
proto.assistant_api.GetAllAssistantUserConversationRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
24676
|
-
while (reader.nextField()) {
|
|
24677
|
-
if (reader.isEndGroup()) {
|
|
24678
|
-
break;
|
|
24679
|
-
}
|
|
24680
|
-
var field = reader.getFieldNumber();
|
|
24681
|
-
switch (field) {
|
|
24682
|
-
case 1:
|
|
24683
|
-
var value = (
|
|
24684
|
-
/** @type {string} */
|
|
24685
|
-
reader.readUint64String()
|
|
24686
|
-
);
|
|
24687
|
-
msg.setAssistantid(value);
|
|
24688
|
-
break;
|
|
24689
|
-
case 2:
|
|
24690
|
-
var value = new common_pb.Paginate();
|
|
24691
|
-
reader.readMessage(value, common_pb.Paginate.deserializeBinaryFromReader);
|
|
24692
|
-
msg.setPaginate(value);
|
|
24693
|
-
break;
|
|
24694
|
-
case 3:
|
|
24695
|
-
var value = new common_pb.Criteria();
|
|
24696
|
-
reader.readMessage(value, common_pb.Criteria.deserializeBinaryFromReader);
|
|
24697
|
-
msg.addCriterias(value);
|
|
24698
|
-
break;
|
|
24699
|
-
case 7:
|
|
24700
|
-
var value = (
|
|
24701
|
-
/** @type {!proto.Source} */
|
|
24702
|
-
reader.readEnum()
|
|
24703
|
-
);
|
|
24704
|
-
msg.setSource(value);
|
|
24705
|
-
break;
|
|
24706
|
-
default:
|
|
24707
|
-
reader.skipField();
|
|
24708
|
-
break;
|
|
24709
|
-
}
|
|
24710
|
-
}
|
|
24711
|
-
return msg;
|
|
24712
|
-
};
|
|
24713
|
-
proto.assistant_api.GetAllAssistantUserConversationRequest.prototype.serializeBinary = function() {
|
|
24714
|
-
var writer = new jspb.BinaryWriter();
|
|
24715
|
-
proto.assistant_api.GetAllAssistantUserConversationRequest.serializeBinaryToWriter(this, writer);
|
|
24716
|
-
return writer.getResultBuffer();
|
|
24717
|
-
};
|
|
24718
|
-
proto.assistant_api.GetAllAssistantUserConversationRequest.serializeBinaryToWriter = function(message, writer) {
|
|
24719
|
-
var f = void 0;
|
|
24720
|
-
f = message.getAssistantid();
|
|
24721
|
-
if (parseInt(f, 10) !== 0) {
|
|
24722
|
-
writer.writeUint64String(
|
|
24723
|
-
1,
|
|
24724
|
-
f
|
|
24725
|
-
);
|
|
24726
|
-
}
|
|
24727
|
-
f = message.getPaginate();
|
|
24728
|
-
if (f != null) {
|
|
24729
|
-
writer.writeMessage(
|
|
24730
|
-
2,
|
|
24731
|
-
f,
|
|
24732
|
-
common_pb.Paginate.serializeBinaryToWriter
|
|
24733
|
-
);
|
|
24734
|
-
}
|
|
24735
|
-
f = message.getCriteriasList();
|
|
24736
|
-
if (f.length > 0) {
|
|
24737
|
-
writer.writeRepeatedMessage(
|
|
24738
|
-
3,
|
|
24739
|
-
f,
|
|
24740
|
-
common_pb.Criteria.serializeBinaryToWriter
|
|
24741
|
-
);
|
|
24742
|
-
}
|
|
24743
|
-
f = message.getSource();
|
|
24744
|
-
if (f !== 0) {
|
|
24745
|
-
writer.writeEnum(
|
|
24746
|
-
7,
|
|
24747
|
-
f
|
|
24748
|
-
);
|
|
24749
|
-
}
|
|
24750
|
-
};
|
|
24751
|
-
proto.assistant_api.GetAllAssistantUserConversationRequest.prototype.getAssistantid = function() {
|
|
24752
|
-
return (
|
|
24753
|
-
/** @type {string} */
|
|
24754
|
-
jspb.Message.getFieldWithDefault(this, 1, "0")
|
|
24755
|
-
);
|
|
24756
|
-
};
|
|
24757
|
-
proto.assistant_api.GetAllAssistantUserConversationRequest.prototype.setAssistantid = function(value) {
|
|
24758
|
-
return jspb.Message.setProto3StringIntField(this, 1, value);
|
|
24759
|
-
};
|
|
24760
|
-
proto.assistant_api.GetAllAssistantUserConversationRequest.prototype.getPaginate = function() {
|
|
24761
|
-
return (
|
|
24762
|
-
/** @type{?proto.Paginate} */
|
|
24763
|
-
jspb.Message.getWrapperField(this, common_pb.Paginate, 2)
|
|
24764
|
-
);
|
|
24765
|
-
};
|
|
24766
|
-
proto.assistant_api.GetAllAssistantUserConversationRequest.prototype.setPaginate = function(value) {
|
|
24767
|
-
return jspb.Message.setWrapperField(this, 2, value);
|
|
24768
|
-
};
|
|
24769
|
-
proto.assistant_api.GetAllAssistantUserConversationRequest.prototype.clearPaginate = function() {
|
|
24770
|
-
return this.setPaginate(void 0);
|
|
24771
|
-
};
|
|
24772
|
-
proto.assistant_api.GetAllAssistantUserConversationRequest.prototype.hasPaginate = function() {
|
|
24773
|
-
return jspb.Message.getField(this, 2) != null;
|
|
24774
|
-
};
|
|
24775
|
-
proto.assistant_api.GetAllAssistantUserConversationRequest.prototype.getCriteriasList = function() {
|
|
24776
|
-
return (
|
|
24777
|
-
/** @type{!Array<!proto.Criteria>} */
|
|
24778
|
-
jspb.Message.getRepeatedWrapperField(this, common_pb.Criteria, 3)
|
|
24779
|
-
);
|
|
24780
|
-
};
|
|
24781
|
-
proto.assistant_api.GetAllAssistantUserConversationRequest.prototype.setCriteriasList = function(value) {
|
|
24782
|
-
return jspb.Message.setRepeatedWrapperField(this, 3, value);
|
|
24783
|
-
};
|
|
24784
|
-
proto.assistant_api.GetAllAssistantUserConversationRequest.prototype.addCriterias = function(opt_value, opt_index) {
|
|
24785
|
-
return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.Criteria, opt_index);
|
|
24786
|
-
};
|
|
24787
|
-
proto.assistant_api.GetAllAssistantUserConversationRequest.prototype.clearCriteriasList = function() {
|
|
24788
|
-
return this.setCriteriasList([]);
|
|
24789
|
-
};
|
|
24790
|
-
proto.assistant_api.GetAllAssistantUserConversationRequest.prototype.getSource = function() {
|
|
24791
|
-
return (
|
|
24792
|
-
/** @type {!proto.Source} */
|
|
24793
|
-
jspb.Message.getFieldWithDefault(this, 7, 0)
|
|
24794
|
-
);
|
|
24795
|
-
};
|
|
24796
|
-
proto.assistant_api.GetAllAssistantUserConversationRequest.prototype.setSource = function(value) {
|
|
24797
|
-
return jspb.Message.setProto3EnumField(this, 7, value);
|
|
24798
|
-
};
|
|
24799
|
-
proto.assistant_api.GetAllAssistantUserConversationResponse.repeatedFields_ = [3];
|
|
24800
|
-
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
24801
|
-
proto.assistant_api.GetAllAssistantUserConversationResponse.prototype.toObject = function(opt_includeInstance) {
|
|
24802
|
-
return proto.assistant_api.GetAllAssistantUserConversationResponse.toObject(opt_includeInstance, this);
|
|
24803
|
-
};
|
|
24804
|
-
proto.assistant_api.GetAllAssistantUserConversationResponse.toObject = function(includeInstance, msg) {
|
|
24805
|
-
var f, obj = {
|
|
24806
|
-
code: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
24807
|
-
success: jspb.Message.getBooleanFieldWithDefault(msg, 2, false),
|
|
24808
|
-
dataList: jspb.Message.toObjectList(
|
|
24809
|
-
msg.getDataList(),
|
|
24810
|
-
common_pb.AssistantConversation.toObject,
|
|
24811
|
-
includeInstance
|
|
24812
|
-
),
|
|
24813
|
-
error: (f = msg.getError()) && common_pb.Error.toObject(includeInstance, f),
|
|
24814
|
-
paginated: (f = msg.getPaginated()) && common_pb.Paginated.toObject(includeInstance, f)
|
|
24815
|
-
};
|
|
24816
|
-
if (includeInstance) {
|
|
24817
|
-
obj.$jspbMessageInstance = msg;
|
|
24818
|
-
}
|
|
24819
|
-
return obj;
|
|
24820
|
-
};
|
|
24821
|
-
}
|
|
24822
|
-
proto.assistant_api.GetAllAssistantUserConversationResponse.deserializeBinary = function(bytes) {
|
|
24823
|
-
var reader = new jspb.BinaryReader(bytes);
|
|
24824
|
-
var msg = new proto.assistant_api.GetAllAssistantUserConversationResponse();
|
|
24825
|
-
return proto.assistant_api.GetAllAssistantUserConversationResponse.deserializeBinaryFromReader(msg, reader);
|
|
24826
|
-
};
|
|
24827
|
-
proto.assistant_api.GetAllAssistantUserConversationResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
24828
|
-
while (reader.nextField()) {
|
|
24829
|
-
if (reader.isEndGroup()) {
|
|
24830
|
-
break;
|
|
24831
|
-
}
|
|
24832
|
-
var field = reader.getFieldNumber();
|
|
24833
|
-
switch (field) {
|
|
24834
|
-
case 1:
|
|
24835
|
-
var value = (
|
|
24836
|
-
/** @type {number} */
|
|
24837
|
-
reader.readInt32()
|
|
24838
|
-
);
|
|
24839
|
-
msg.setCode(value);
|
|
24840
|
-
break;
|
|
24841
|
-
case 2:
|
|
24842
|
-
var value = (
|
|
24843
|
-
/** @type {boolean} */
|
|
24844
|
-
reader.readBool()
|
|
24845
|
-
);
|
|
24846
|
-
msg.setSuccess(value);
|
|
24847
|
-
break;
|
|
24848
|
-
case 3:
|
|
24849
|
-
var value = new common_pb.AssistantConversation();
|
|
24850
|
-
reader.readMessage(value, common_pb.AssistantConversation.deserializeBinaryFromReader);
|
|
24851
|
-
msg.addData(value);
|
|
24852
|
-
break;
|
|
24853
|
-
case 4:
|
|
24854
|
-
var value = new common_pb.Error();
|
|
24855
|
-
reader.readMessage(value, common_pb.Error.deserializeBinaryFromReader);
|
|
24856
|
-
msg.setError(value);
|
|
24857
|
-
break;
|
|
24858
|
-
case 5:
|
|
24859
|
-
var value = new common_pb.Paginated();
|
|
24860
|
-
reader.readMessage(value, common_pb.Paginated.deserializeBinaryFromReader);
|
|
24861
|
-
msg.setPaginated(value);
|
|
24862
|
-
break;
|
|
24863
|
-
default:
|
|
24864
|
-
reader.skipField();
|
|
24865
|
-
break;
|
|
24866
|
-
}
|
|
24867
|
-
}
|
|
24868
|
-
return msg;
|
|
24869
|
-
};
|
|
24870
|
-
proto.assistant_api.GetAllAssistantUserConversationResponse.prototype.serializeBinary = function() {
|
|
24871
|
-
var writer = new jspb.BinaryWriter();
|
|
24872
|
-
proto.assistant_api.GetAllAssistantUserConversationResponse.serializeBinaryToWriter(this, writer);
|
|
24873
|
-
return writer.getResultBuffer();
|
|
24874
|
-
};
|
|
24875
|
-
proto.assistant_api.GetAllAssistantUserConversationResponse.serializeBinaryToWriter = function(message, writer) {
|
|
24876
|
-
var f = void 0;
|
|
24877
|
-
f = message.getCode();
|
|
24878
|
-
if (f !== 0) {
|
|
24879
|
-
writer.writeInt32(
|
|
24880
|
-
1,
|
|
24881
|
-
f
|
|
24882
|
-
);
|
|
24883
|
-
}
|
|
24884
|
-
f = message.getSuccess();
|
|
24885
|
-
if (f) {
|
|
24886
|
-
writer.writeBool(
|
|
24887
|
-
2,
|
|
24888
|
-
f
|
|
24889
|
-
);
|
|
24890
|
-
}
|
|
24891
|
-
f = message.getDataList();
|
|
24892
|
-
if (f.length > 0) {
|
|
24893
|
-
writer.writeRepeatedMessage(
|
|
24894
|
-
3,
|
|
24895
|
-
f,
|
|
24896
|
-
common_pb.AssistantConversation.serializeBinaryToWriter
|
|
24897
|
-
);
|
|
24898
|
-
}
|
|
24899
|
-
f = message.getError();
|
|
24900
|
-
if (f != null) {
|
|
24901
|
-
writer.writeMessage(
|
|
24902
|
-
4,
|
|
24903
|
-
f,
|
|
24904
|
-
common_pb.Error.serializeBinaryToWriter
|
|
24905
|
-
);
|
|
24906
|
-
}
|
|
24907
|
-
f = message.getPaginated();
|
|
24908
|
-
if (f != null) {
|
|
24909
|
-
writer.writeMessage(
|
|
24910
|
-
5,
|
|
24911
|
-
f,
|
|
24912
|
-
common_pb.Paginated.serializeBinaryToWriter
|
|
24913
|
-
);
|
|
24914
|
-
}
|
|
24915
|
-
};
|
|
24916
|
-
proto.assistant_api.GetAllAssistantUserConversationResponse.prototype.getCode = function() {
|
|
24917
|
-
return (
|
|
24918
|
-
/** @type {number} */
|
|
24919
|
-
jspb.Message.getFieldWithDefault(this, 1, 0)
|
|
24920
|
-
);
|
|
24921
|
-
};
|
|
24922
|
-
proto.assistant_api.GetAllAssistantUserConversationResponse.prototype.setCode = function(value) {
|
|
24923
|
-
return jspb.Message.setProto3IntField(this, 1, value);
|
|
24924
|
-
};
|
|
24925
|
-
proto.assistant_api.GetAllAssistantUserConversationResponse.prototype.getSuccess = function() {
|
|
24926
|
-
return (
|
|
24927
|
-
/** @type {boolean} */
|
|
24928
|
-
jspb.Message.getBooleanFieldWithDefault(this, 2, false)
|
|
24929
|
-
);
|
|
24930
|
-
};
|
|
24931
|
-
proto.assistant_api.GetAllAssistantUserConversationResponse.prototype.setSuccess = function(value) {
|
|
24932
|
-
return jspb.Message.setProto3BooleanField(this, 2, value);
|
|
24933
|
-
};
|
|
24934
|
-
proto.assistant_api.GetAllAssistantUserConversationResponse.prototype.getDataList = function() {
|
|
24935
|
-
return (
|
|
24936
|
-
/** @type{!Array<!proto.AssistantConversation>} */
|
|
24937
|
-
jspb.Message.getRepeatedWrapperField(this, common_pb.AssistantConversation, 3)
|
|
24938
|
-
);
|
|
24939
|
-
};
|
|
24940
|
-
proto.assistant_api.GetAllAssistantUserConversationResponse.prototype.setDataList = function(value) {
|
|
24941
|
-
return jspb.Message.setRepeatedWrapperField(this, 3, value);
|
|
24942
|
-
};
|
|
24943
|
-
proto.assistant_api.GetAllAssistantUserConversationResponse.prototype.addData = function(opt_value, opt_index) {
|
|
24944
|
-
return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.AssistantConversation, opt_index);
|
|
24945
|
-
};
|
|
24946
|
-
proto.assistant_api.GetAllAssistantUserConversationResponse.prototype.clearDataList = function() {
|
|
24947
|
-
return this.setDataList([]);
|
|
24948
|
-
};
|
|
24949
|
-
proto.assistant_api.GetAllAssistantUserConversationResponse.prototype.getError = function() {
|
|
24950
|
-
return (
|
|
24951
|
-
/** @type{?proto.Error} */
|
|
24952
|
-
jspb.Message.getWrapperField(this, common_pb.Error, 4)
|
|
24953
|
-
);
|
|
24954
|
-
};
|
|
24955
|
-
proto.assistant_api.GetAllAssistantUserConversationResponse.prototype.setError = function(value) {
|
|
24956
|
-
return jspb.Message.setWrapperField(this, 4, value);
|
|
24957
|
-
};
|
|
24958
|
-
proto.assistant_api.GetAllAssistantUserConversationResponse.prototype.clearError = function() {
|
|
24959
|
-
return this.setError(void 0);
|
|
24960
|
-
};
|
|
24961
|
-
proto.assistant_api.GetAllAssistantUserConversationResponse.prototype.hasError = function() {
|
|
24962
|
-
return jspb.Message.getField(this, 4) != null;
|
|
24963
|
-
};
|
|
24964
|
-
proto.assistant_api.GetAllAssistantUserConversationResponse.prototype.getPaginated = function() {
|
|
24965
|
-
return (
|
|
24966
|
-
/** @type{?proto.Paginated} */
|
|
24967
|
-
jspb.Message.getWrapperField(this, common_pb.Paginated, 5)
|
|
24968
|
-
);
|
|
24969
|
-
};
|
|
24970
|
-
proto.assistant_api.GetAllAssistantUserConversationResponse.prototype.setPaginated = function(value) {
|
|
24971
|
-
return jspb.Message.setWrapperField(this, 5, value);
|
|
24972
|
-
};
|
|
24973
|
-
proto.assistant_api.GetAllAssistantUserConversationResponse.prototype.clearPaginated = function() {
|
|
24974
|
-
return this.setPaginated(void 0);
|
|
24975
|
-
};
|
|
24976
|
-
proto.assistant_api.GetAllAssistantUserConversationResponse.prototype.hasPaginated = function() {
|
|
24977
|
-
return jspb.Message.getField(this, 5) != null;
|
|
24978
|
-
};
|
|
24979
24632
|
proto.assistant_api.GetAssistantConversationRequest.repeatedFields_ = [5];
|
|
24980
24633
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
24981
24634
|
proto.assistant_api.GetAssistantConversationRequest.prototype.toObject = function(opt_includeInstance) {
|
|
@@ -24984,7 +24637,7 @@ var require_assistant_api_pb = __commonJS({
|
|
|
24984
24637
|
proto.assistant_api.GetAssistantConversationRequest.toObject = function(includeInstance, msg) {
|
|
24985
24638
|
var f, obj = {
|
|
24986
24639
|
assistantid: jspb.Message.getFieldWithDefault(msg, 1, "0"),
|
|
24987
|
-
|
|
24640
|
+
id: jspb.Message.getFieldWithDefault(msg, 2, "0"),
|
|
24988
24641
|
selectorsList: jspb.Message.toObjectList(
|
|
24989
24642
|
msg.getSelectorsList(),
|
|
24990
24643
|
common_pb.FieldSelector.toObject,
|
|
@@ -25021,7 +24674,7 @@ var require_assistant_api_pb = __commonJS({
|
|
|
25021
24674
|
/** @type {string} */
|
|
25022
24675
|
reader.readUint64String()
|
|
25023
24676
|
);
|
|
25024
|
-
msg.
|
|
24677
|
+
msg.setId(value);
|
|
25025
24678
|
break;
|
|
25026
24679
|
case 5:
|
|
25027
24680
|
var value = new common_pb.FieldSelector();
|
|
@@ -25049,7 +24702,7 @@ var require_assistant_api_pb = __commonJS({
|
|
|
25049
24702
|
f
|
|
25050
24703
|
);
|
|
25051
24704
|
}
|
|
25052
|
-
f = message.
|
|
24705
|
+
f = message.getId();
|
|
25053
24706
|
if (parseInt(f, 10) !== 0) {
|
|
25054
24707
|
writer.writeUint64String(
|
|
25055
24708
|
2,
|
|
@@ -25074,13 +24727,13 @@ var require_assistant_api_pb = __commonJS({
|
|
|
25074
24727
|
proto.assistant_api.GetAssistantConversationRequest.prototype.setAssistantid = function(value) {
|
|
25075
24728
|
return jspb.Message.setProto3StringIntField(this, 1, value);
|
|
25076
24729
|
};
|
|
25077
|
-
proto.assistant_api.GetAssistantConversationRequest.prototype.
|
|
24730
|
+
proto.assistant_api.GetAssistantConversationRequest.prototype.getId = function() {
|
|
25078
24731
|
return (
|
|
25079
24732
|
/** @type {string} */
|
|
25080
24733
|
jspb.Message.getFieldWithDefault(this, 2, "0")
|
|
25081
24734
|
);
|
|
25082
24735
|
};
|
|
25083
|
-
proto.assistant_api.GetAssistantConversationRequest.prototype.
|
|
24736
|
+
proto.assistant_api.GetAssistantConversationRequest.prototype.setId = function(value) {
|
|
25084
24737
|
return jspb.Message.setProto3StringIntField(this, 2, value);
|
|
25085
24738
|
};
|
|
25086
24739
|
proto.assistant_api.GetAssistantConversationRequest.prototype.getSelectorsList = function() {
|
|
@@ -56951,7 +56604,7 @@ __export(index_exports, {
|
|
|
56951
56604
|
AddUsersToProject: () => AddUsersToProject,
|
|
56952
56605
|
AddUsersToProjectRequest: () => import_web_api_pb4.AddUsersToProjectRequest,
|
|
56953
56606
|
AddUsersToProjectResponse: () => import_web_api_pb4.AddUsersToProjectResponse,
|
|
56954
|
-
AggregatedEndpointAnalytics: () =>
|
|
56607
|
+
AggregatedEndpointAnalytics: () => import_endpoint_api_pb.AggregatedEndpointAnalytics,
|
|
56955
56608
|
AllOrganizationCredential: () => AllOrganizationCredential,
|
|
56956
56609
|
Any: () => import_any_pb2.Any,
|
|
56957
56610
|
AnyToBool: () => AnyToBool,
|
|
@@ -56961,29 +56614,29 @@ __export(index_exports, {
|
|
|
56961
56614
|
AnyToString: () => AnyToString,
|
|
56962
56615
|
ArchiveProjectRequest: () => import_web_api_pb4.ArchiveProjectRequest,
|
|
56963
56616
|
ArchiveProjectResponse: () => import_web_api_pb4.ArchiveProjectResponse,
|
|
56964
|
-
Argument: () =>
|
|
56965
|
-
Assistant: () =>
|
|
56966
|
-
AssistantAnalysis: () =>
|
|
56617
|
+
Argument: () => import_common_pb11.Argument,
|
|
56618
|
+
Assistant: () => import_assistant_api_pb.Assistant,
|
|
56619
|
+
AssistantAnalysis: () => import_assistant_analysis_pb.AssistantAnalysis,
|
|
56967
56620
|
AssistantApiDeployment: () => import_assistant_deployment_pb.AssistantApiDeployment,
|
|
56968
|
-
AssistantConversation: () =>
|
|
56621
|
+
AssistantConversation: () => import_common_pb11.AssistantConversation,
|
|
56969
56622
|
AssistantConversationAssistantMessage: () => import_talk_api_pb3.AssistantConversationAssistantMessage,
|
|
56970
56623
|
AssistantConversationConfiguration: () => import_talk_api_pb3.AssistantConversationConfiguration,
|
|
56971
|
-
AssistantConversationContext: () =>
|
|
56624
|
+
AssistantConversationContext: () => import_common_pb11.AssistantConversationContext,
|
|
56972
56625
|
AssistantConversationInterruption: () => import_talk_api_pb3.AssistantConversationInterruption,
|
|
56973
|
-
AssistantConversationMessage: () =>
|
|
56626
|
+
AssistantConversationMessage: () => import_common_pb11.AssistantConversationMessage,
|
|
56974
56627
|
AssistantConversationUserMessage: () => import_talk_api_pb3.AssistantConversationUserMessage,
|
|
56975
56628
|
AssistantDebuggerDeployment: () => import_assistant_deployment_pb.AssistantDebuggerDeployment,
|
|
56976
56629
|
AssistantDefinition: () => import_talk_api_pb3.AssistantDefinition,
|
|
56977
|
-
AssistantKnowledge: () =>
|
|
56978
|
-
AssistantMessageStage: () =>
|
|
56630
|
+
AssistantKnowledge: () => import_assistant_knowledge_pb.AssistantKnowledge,
|
|
56631
|
+
AssistantMessageStage: () => import_common_pb11.AssistantMessageStage,
|
|
56979
56632
|
AssistantMessagingRequest: () => import_talk_api_pb3.AssistantMessagingRequest,
|
|
56980
56633
|
AssistantMessagingResponse: () => import_talk_api_pb3.AssistantMessagingResponse,
|
|
56981
56634
|
AssistantPhoneDeployment: () => import_assistant_deployment_pb.AssistantPhoneDeployment,
|
|
56982
|
-
AssistantProviderModel: () =>
|
|
56635
|
+
AssistantProviderModel: () => import_assistant_api_pb.AssistantProviderModel,
|
|
56983
56636
|
AssistantTalk: () => AssistantTalk,
|
|
56984
|
-
AssistantTool: () =>
|
|
56985
|
-
AssistantWebhook: () =>
|
|
56986
|
-
AssistantWebhookLog: () =>
|
|
56637
|
+
AssistantTool: () => import_assistant_tool_pb.AssistantTool,
|
|
56638
|
+
AssistantWebhook: () => import_assistant_webhook_pb.AssistantWebhook,
|
|
56639
|
+
AssistantWebhookLog: () => import_assistant_webhook_pb.AssistantWebhookLog,
|
|
56987
56640
|
AssistantWebpluginDeployment: () => import_assistant_deployment_pb.AssistantWebpluginDeployment,
|
|
56988
56641
|
AssistantWhatsappDeployment: () => import_assistant_deployment_pb.AssistantWhatsappDeployment,
|
|
56989
56642
|
AuditLog: () => import_audit_logging_api_pb2.AuditLog,
|
|
@@ -56994,30 +56647,30 @@ __export(index_exports, {
|
|
|
56994
56647
|
AuthenticationError: () => import_web_api_pb4.AuthenticationError,
|
|
56995
56648
|
AuthorizeRequest: () => import_web_api_pb4.AuthorizeRequest,
|
|
56996
56649
|
AuthorizeUser: () => AuthorizeUser,
|
|
56997
|
-
BaseResponse: () =>
|
|
56650
|
+
BaseResponse: () => import_common_pb11.BaseResponse,
|
|
56998
56651
|
BoolToAny: () => BoolToAny,
|
|
56999
56652
|
BytesToAny: () => BytesToAny,
|
|
57000
56653
|
ChatRequest: () => import_integration_api_pb.ChatRequest,
|
|
57001
56654
|
ChatResponse: () => import_integration_api_pb.ChatResponse,
|
|
57002
56655
|
ConnectionConfig: () => ConnectionConfig,
|
|
57003
56656
|
Contact: () => import_sendgrid_api_pb.Contact,
|
|
57004
|
-
Content: () =>
|
|
56657
|
+
Content: () => import_common_pb11.Content,
|
|
57005
56658
|
CreateAnalysis: () => CreateAnalysis,
|
|
57006
56659
|
CreateAssistant: () => CreateAssistant,
|
|
57007
|
-
CreateAssistantAnalysisRequest: () =>
|
|
56660
|
+
CreateAssistantAnalysisRequest: () => import_assistant_analysis_pb.CreateAssistantAnalysisRequest,
|
|
57008
56661
|
CreateAssistantApiDeployment: () => CreateAssistantApiDeployment,
|
|
57009
56662
|
CreateAssistantDebuggerDeployment: () => CreateAssistantDebuggerDeployment,
|
|
57010
56663
|
CreateAssistantKnowledge: () => CreateAssistantKnowledge,
|
|
57011
|
-
CreateAssistantKnowledgeRequest: () =>
|
|
56664
|
+
CreateAssistantKnowledgeRequest: () => import_assistant_knowledge_pb.CreateAssistantKnowledgeRequest,
|
|
57012
56665
|
CreateAssistantPhoneDeployment: () => CreateAssistantPhoneDeployment,
|
|
57013
56666
|
CreateAssistantProviderModel: () => CreateAssistantProviderModel,
|
|
57014
|
-
CreateAssistantProviderModelRequest: () =>
|
|
57015
|
-
CreateAssistantRequest: () =>
|
|
56667
|
+
CreateAssistantProviderModelRequest: () => import_assistant_api_pb.CreateAssistantProviderModelRequest,
|
|
56668
|
+
CreateAssistantRequest: () => import_assistant_api_pb.CreateAssistantRequest,
|
|
57016
56669
|
CreateAssistantTag: () => CreateAssistantTag,
|
|
57017
|
-
CreateAssistantTagRequest: () =>
|
|
56670
|
+
CreateAssistantTagRequest: () => import_assistant_api_pb.CreateAssistantTagRequest,
|
|
57018
56671
|
CreateAssistantTool: () => CreateAssistantTool,
|
|
57019
|
-
CreateAssistantToolRequest: () =>
|
|
57020
|
-
CreateAssistantWebhookRequest: () =>
|
|
56672
|
+
CreateAssistantToolRequest: () => import_assistant_tool_pb.CreateAssistantToolRequest,
|
|
56673
|
+
CreateAssistantWebhookRequest: () => import_assistant_webhook_pb.CreateAssistantWebhookRequest,
|
|
57021
56674
|
CreateAssistantWebpluginDeployment: () => CreateAssistantWebpluginDeployment,
|
|
57022
56675
|
CreateAssistantWhatsappDeployment: () => CreateAssistantWhatsappDeployment,
|
|
57023
56676
|
CreateBulkPhoneCall: () => CreateBulkPhoneCall,
|
|
@@ -57026,20 +56679,16 @@ __export(index_exports, {
|
|
|
57026
56679
|
CreateConversationMetric: () => CreateConversationMetric,
|
|
57027
56680
|
CreateConversationMetricRequest: () => import_talk_api_pb3.CreateConversationMetricRequest,
|
|
57028
56681
|
CreateConversationMetricResponse: () => import_talk_api_pb3.CreateConversationMetricResponse,
|
|
57029
|
-
|
|
57030
|
-
|
|
57031
|
-
|
|
57032
|
-
|
|
57033
|
-
|
|
57034
|
-
|
|
57035
|
-
CreateEndpointProviderModelResponse: () => import_endpoint_api_pb2.CreateEndpointProviderModelResponse,
|
|
57036
|
-
CreateEndpointRequest: () => import_endpoint_api_pb2.CreateEndpointRequest,
|
|
57037
|
-
CreateEndpointResponse: () => import_endpoint_api_pb2.CreateEndpointResponse,
|
|
56682
|
+
CreateEndpointCacheConfigurationRequest: () => import_endpoint_api_pb.CreateEndpointCacheConfigurationRequest,
|
|
56683
|
+
CreateEndpointCacheConfigurationResponse: () => import_endpoint_api_pb.CreateEndpointCacheConfigurationResponse,
|
|
56684
|
+
CreateEndpointProviderModelRequest: () => import_endpoint_api_pb.CreateEndpointProviderModelRequest,
|
|
56685
|
+
CreateEndpointProviderModelResponse: () => import_endpoint_api_pb.CreateEndpointProviderModelResponse,
|
|
56686
|
+
CreateEndpointRequest: () => import_endpoint_api_pb.CreateEndpointRequest,
|
|
56687
|
+
CreateEndpointResponse: () => import_endpoint_api_pb.CreateEndpointResponse,
|
|
57038
56688
|
CreateEndpointRetryConfiguration: () => CreateEndpointRetryConfiguration,
|
|
57039
|
-
CreateEndpointRetryConfigurationRequest: () =>
|
|
57040
|
-
CreateEndpointRetryConfigurationResponse: () =>
|
|
57041
|
-
|
|
57042
|
-
CreateEndpointTagRequest: () => import_endpoint_api_pb2.CreateEndpointTagRequest,
|
|
56689
|
+
CreateEndpointRetryConfigurationRequest: () => import_endpoint_api_pb.CreateEndpointRetryConfigurationRequest,
|
|
56690
|
+
CreateEndpointRetryConfigurationResponse: () => import_endpoint_api_pb.CreateEndpointRetryConfigurationResponse,
|
|
56691
|
+
CreateEndpointTagRequest: () => import_endpoint_api_pb.CreateEndpointTagRequest,
|
|
57043
56692
|
CreateKnowledge: () => CreateKnowledge,
|
|
57044
56693
|
CreateKnowledgeDocument: () => CreateKnowledgeDocument,
|
|
57045
56694
|
CreateKnowledgeDocumentRequest: () => import_knowledge_api_pb3.CreateKnowledgeDocumentRequest,
|
|
@@ -57074,17 +56723,17 @@ __export(index_exports, {
|
|
|
57074
56723
|
CreateToolCredentialRequest: () => import_vault_api_pb2.CreateToolCredentialRequest,
|
|
57075
56724
|
CreateWebhook: () => CreateWebhook,
|
|
57076
56725
|
Credential: () => import_integration_api_pb.Credential,
|
|
57077
|
-
Criteria: () =>
|
|
56726
|
+
Criteria: () => import_common_pb11.Criteria,
|
|
57078
56727
|
DeleteAssistant: () => DeleteAssistant,
|
|
57079
56728
|
DeleteAssistantAnalysis: () => DeleteAssistantAnalysis,
|
|
57080
|
-
DeleteAssistantAnalysisRequest: () =>
|
|
56729
|
+
DeleteAssistantAnalysisRequest: () => import_assistant_analysis_pb.DeleteAssistantAnalysisRequest,
|
|
57081
56730
|
DeleteAssistantKnowledge: () => DeleteAssistantKnowledge,
|
|
57082
|
-
DeleteAssistantKnowledgeRequest: () =>
|
|
57083
|
-
DeleteAssistantRequest: () =>
|
|
56731
|
+
DeleteAssistantKnowledgeRequest: () => import_assistant_knowledge_pb.DeleteAssistantKnowledgeRequest,
|
|
56732
|
+
DeleteAssistantRequest: () => import_assistant_api_pb.DeleteAssistantRequest,
|
|
57084
56733
|
DeleteAssistantTool: () => DeleteAssistantTool,
|
|
57085
|
-
DeleteAssistantToolRequest: () =>
|
|
56734
|
+
DeleteAssistantToolRequest: () => import_assistant_tool_pb.DeleteAssistantToolRequest,
|
|
57086
56735
|
DeleteAssistantWebhook: () => DeleteAssistantWebhook,
|
|
57087
|
-
DeleteAssistantWebhookRequest: () =>
|
|
56736
|
+
DeleteAssistantWebhookRequest: () => import_assistant_webhook_pb.DeleteAssistantWebhookRequest,
|
|
57088
56737
|
DeleteCredentialRequest: () => import_vault_api_pb2.DeleteCredentialRequest,
|
|
57089
56738
|
DeleteKnowledgeDocumentSegment: () => DeleteKnowledgeDocumentSegment,
|
|
57090
56739
|
DeleteKnowledgeDocumentSegmentRequest: () => import_knowledge_api_pb3.DeleteKnowledgeDocumentSegmentRequest,
|
|
@@ -57094,23 +56743,23 @@ __export(index_exports, {
|
|
|
57094
56743
|
Embedding: () => import_integration_api_pb.Embedding,
|
|
57095
56744
|
EmbeddingRequest: () => import_integration_api_pb.EmbeddingRequest,
|
|
57096
56745
|
EmbeddingResponse: () => import_integration_api_pb.EmbeddingResponse,
|
|
57097
|
-
Endpoint: () =>
|
|
57098
|
-
EndpointAttribute: () =>
|
|
57099
|
-
EndpointCacheConfiguration: () =>
|
|
57100
|
-
EndpointDefinition: () =>
|
|
57101
|
-
EndpointLog: () =>
|
|
57102
|
-
EndpointProviderModel: () =>
|
|
57103
|
-
EndpointProviderModelAttribute: () =>
|
|
57104
|
-
EndpointRetryConfiguration: () =>
|
|
57105
|
-
Error: () =>
|
|
56746
|
+
Endpoint: () => import_endpoint_api_pb.Endpoint,
|
|
56747
|
+
EndpointAttribute: () => import_endpoint_api_pb.EndpointAttribute,
|
|
56748
|
+
EndpointCacheConfiguration: () => import_endpoint_api_pb.EndpointCacheConfiguration,
|
|
56749
|
+
EndpointDefinition: () => import_invoker_api_pb.EndpointDefinition,
|
|
56750
|
+
EndpointLog: () => import_endpoint_api_pb.EndpointLog,
|
|
56751
|
+
EndpointProviderModel: () => import_endpoint_api_pb.EndpointProviderModel,
|
|
56752
|
+
EndpointProviderModelAttribute: () => import_endpoint_api_pb.EndpointProviderModelAttribute,
|
|
56753
|
+
EndpointRetryConfiguration: () => import_endpoint_api_pb.EndpointRetryConfiguration,
|
|
56754
|
+
Error: () => import_common_pb11.Error,
|
|
57106
56755
|
FeaturePermission: () => import_web_api_pb4.FeaturePermission,
|
|
57107
|
-
FieldSelector: () =>
|
|
56756
|
+
FieldSelector: () => import_common_pb11.FieldSelector,
|
|
57108
56757
|
FloatToAny: () => FloatToAny,
|
|
57109
56758
|
ForgotPassword: () => ForgotPassword,
|
|
57110
56759
|
ForgotPasswordRequest: () => import_web_api_pb4.ForgotPasswordRequest,
|
|
57111
56760
|
ForgotPasswordResponse: () => import_web_api_pb4.ForgotPasswordResponse,
|
|
57112
|
-
ForkEndpointRequest: () =>
|
|
57113
|
-
FunctionCall: () =>
|
|
56761
|
+
ForkEndpointRequest: () => import_endpoint_api_pb.ForkEndpointRequest,
|
|
56762
|
+
FunctionCall: () => import_common_pb11.FunctionCall,
|
|
57114
56763
|
FunctionDefinition: () => import_integration_api_pb.FunctionDefinition,
|
|
57115
56764
|
FunctionParameter: () => import_integration_api_pb.FunctionParameter,
|
|
57116
56765
|
FunctionParameterProperty: () => import_integration_api_pb.FunctionParameterProperty,
|
|
@@ -57121,49 +56770,45 @@ __export(index_exports, {
|
|
|
57121
56770
|
GetActivity: () => GetActivity,
|
|
57122
56771
|
GetAllAssistant: () => GetAllAssistant,
|
|
57123
56772
|
GetAllAssistantAnalysis: () => GetAllAssistantAnalysis,
|
|
57124
|
-
GetAllAssistantAnalysisRequest: () =>
|
|
57125
|
-
GetAllAssistantAnalysisResponse: () =>
|
|
56773
|
+
GetAllAssistantAnalysisRequest: () => import_assistant_analysis_pb.GetAllAssistantAnalysisRequest,
|
|
56774
|
+
GetAllAssistantAnalysisResponse: () => import_assistant_analysis_pb.GetAllAssistantAnalysisResponse,
|
|
57126
56775
|
GetAllAssistantConversation: () => GetAllAssistantConversation,
|
|
57127
56776
|
GetAllAssistantConversationMessage: () => GetAllAssistantConversationMessage,
|
|
57128
|
-
GetAllAssistantConversationRequest: () =>
|
|
57129
|
-
GetAllAssistantConversationResponse: () =>
|
|
56777
|
+
GetAllAssistantConversationRequest: () => import_common_pb11.GetAllAssistantConversationRequest,
|
|
56778
|
+
GetAllAssistantConversationResponse: () => import_common_pb11.GetAllAssistantConversationResponse,
|
|
57130
56779
|
GetAllAssistantKnowledge: () => GetAllAssistantKnowledge,
|
|
57131
|
-
GetAllAssistantKnowledgeRequest: () =>
|
|
57132
|
-
GetAllAssistantKnowledgeResponse: () =>
|
|
57133
|
-
GetAllAssistantMessageRequest: () =>
|
|
57134
|
-
GetAllAssistantMessageResponse: () =>
|
|
56780
|
+
GetAllAssistantKnowledgeRequest: () => import_assistant_knowledge_pb.GetAllAssistantKnowledgeRequest,
|
|
56781
|
+
GetAllAssistantKnowledgeResponse: () => import_assistant_knowledge_pb.GetAllAssistantKnowledgeResponse,
|
|
56782
|
+
GetAllAssistantMessageRequest: () => import_assistant_api_pb.GetAllAssistantMessageRequest,
|
|
56783
|
+
GetAllAssistantMessageResponse: () => import_assistant_api_pb.GetAllAssistantMessageResponse,
|
|
57135
56784
|
GetAllAssistantProviderModel: () => GetAllAssistantProviderModel,
|
|
57136
|
-
GetAllAssistantProviderModelRequest: () =>
|
|
57137
|
-
GetAllAssistantProviderModelResponse: () =>
|
|
57138
|
-
GetAllAssistantRequest: () =>
|
|
57139
|
-
GetAllAssistantResponse: () =>
|
|
57140
|
-
GetAllAssistantSession: () => GetAllAssistantSession,
|
|
56785
|
+
GetAllAssistantProviderModelRequest: () => import_assistant_api_pb.GetAllAssistantProviderModelRequest,
|
|
56786
|
+
GetAllAssistantProviderModelResponse: () => import_assistant_api_pb.GetAllAssistantProviderModelResponse,
|
|
56787
|
+
GetAllAssistantRequest: () => import_assistant_api_pb.GetAllAssistantRequest,
|
|
56788
|
+
GetAllAssistantResponse: () => import_assistant_api_pb.GetAllAssistantResponse,
|
|
57141
56789
|
GetAllAssistantTool: () => GetAllAssistantTool,
|
|
57142
|
-
GetAllAssistantToolRequest: () =>
|
|
57143
|
-
GetAllAssistantToolResponse: () =>
|
|
57144
|
-
GetAllAssistantUserConversationRequest: () => import_assistant_api_pb2.GetAllAssistantUserConversationRequest,
|
|
57145
|
-
GetAllAssistantUserConversationResponse: () => import_assistant_api_pb2.GetAllAssistantUserConversationResponse,
|
|
56790
|
+
GetAllAssistantToolRequest: () => import_assistant_tool_pb.GetAllAssistantToolRequest,
|
|
56791
|
+
GetAllAssistantToolResponse: () => import_assistant_tool_pb.GetAllAssistantToolResponse,
|
|
57146
56792
|
GetAllAssistantWebhook: () => GetAllAssistantWebhook,
|
|
57147
|
-
GetAllAssistantWebhookLogRequest: () =>
|
|
57148
|
-
GetAllAssistantWebhookLogResponse: () =>
|
|
57149
|
-
GetAllAssistantWebhookRequest: () =>
|
|
57150
|
-
GetAllAssistantWebhookResponse: () =>
|
|
56793
|
+
GetAllAssistantWebhookLogRequest: () => import_assistant_webhook_pb.GetAllAssistantWebhookLogRequest,
|
|
56794
|
+
GetAllAssistantWebhookLogResponse: () => import_assistant_webhook_pb.GetAllAssistantWebhookLogResponse,
|
|
56795
|
+
GetAllAssistantWebhookRequest: () => import_assistant_webhook_pb.GetAllAssistantWebhookRequest,
|
|
56796
|
+
GetAllAssistantWebhookResponse: () => import_assistant_webhook_pb.GetAllAssistantWebhookResponse,
|
|
57151
56797
|
GetAllAuditLogRequest: () => import_audit_logging_api_pb2.GetAllAuditLogRequest,
|
|
57152
56798
|
GetAllAuditLogResponse: () => import_audit_logging_api_pb2.GetAllAuditLogResponse,
|
|
57153
|
-
GetAllConversationMessageRequest: () =>
|
|
57154
|
-
GetAllConversationMessageResponse: () =>
|
|
56799
|
+
GetAllConversationMessageRequest: () => import_common_pb11.GetAllConversationMessageRequest,
|
|
56800
|
+
GetAllConversationMessageResponse: () => import_common_pb11.GetAllConversationMessageResponse,
|
|
57155
56801
|
GetAllDeployment: () => GetAllDeployment,
|
|
57156
56802
|
GetAllDeploymentRequest: () => import_marketplace_api_pb2.GetAllDeploymentRequest,
|
|
57157
56803
|
GetAllDeploymentResponse: () => import_marketplace_api_pb2.GetAllDeploymentResponse,
|
|
57158
56804
|
GetAllEndpoint: () => GetAllEndpoint,
|
|
57159
|
-
|
|
57160
|
-
|
|
57161
|
-
GetAllEndpointLogResponse: () => import_endpoint_api_pb2.GetAllEndpointLogResponse,
|
|
56805
|
+
GetAllEndpointLogRequest: () => import_endpoint_api_pb.GetAllEndpointLogRequest,
|
|
56806
|
+
GetAllEndpointLogResponse: () => import_endpoint_api_pb.GetAllEndpointLogResponse,
|
|
57162
56807
|
GetAllEndpointProviderModel: () => GetAllEndpointProviderModel,
|
|
57163
|
-
GetAllEndpointProviderModelRequest: () =>
|
|
57164
|
-
GetAllEndpointProviderModelResponse: () =>
|
|
57165
|
-
GetAllEndpointRequest: () =>
|
|
57166
|
-
GetAllEndpointResponse: () =>
|
|
56808
|
+
GetAllEndpointProviderModelRequest: () => import_endpoint_api_pb.GetAllEndpointProviderModelRequest,
|
|
56809
|
+
GetAllEndpointProviderModelResponse: () => import_endpoint_api_pb.GetAllEndpointProviderModelResponse,
|
|
56810
|
+
GetAllEndpointRequest: () => import_endpoint_api_pb.GetAllEndpointRequest,
|
|
56811
|
+
GetAllEndpointResponse: () => import_endpoint_api_pb.GetAllEndpointResponse,
|
|
57167
56812
|
GetAllKnowledgeBases: () => GetAllKnowledgeBases,
|
|
57168
56813
|
GetAllKnowledgeDocument: () => GetAllKnowledgeDocument,
|
|
57169
56814
|
GetAllKnowledgeDocumentRequest: () => import_knowledge_api_pb3.GetAllKnowledgeDocumentRequest,
|
|
@@ -57173,8 +56818,8 @@ __export(index_exports, {
|
|
|
57173
56818
|
GetAllKnowledgeDocumentSegmentResponse: () => import_knowledge_api_pb3.GetAllKnowledgeDocumentSegmentResponse,
|
|
57174
56819
|
GetAllKnowledgeRequest: () => import_knowledge_api_pb3.GetAllKnowledgeRequest,
|
|
57175
56820
|
GetAllKnowledgeResponse: () => import_knowledge_api_pb3.GetAllKnowledgeResponse,
|
|
57176
|
-
GetAllMessageRequest: () =>
|
|
57177
|
-
GetAllMessageResponse: () =>
|
|
56821
|
+
GetAllMessageRequest: () => import_assistant_api_pb.GetAllMessageRequest,
|
|
56822
|
+
GetAllMessageResponse: () => import_assistant_api_pb.GetAllMessageResponse,
|
|
57178
56823
|
GetAllModelProviderRequest: () => import_provider_api_pb2.GetAllModelProviderRequest,
|
|
57179
56824
|
GetAllModelProviderResponse: () => import_provider_api_pb2.GetAllModelProviderResponse,
|
|
57180
56825
|
GetAllOrganizationCredentialRequest: () => import_vault_api_pb2.GetAllOrganizationCredentialRequest,
|
|
@@ -57195,30 +56840,30 @@ __export(index_exports, {
|
|
|
57195
56840
|
GetAllWebhookLog: () => GetAllWebhookLog,
|
|
57196
56841
|
GetAssistant: () => GetAssistant,
|
|
57197
56842
|
GetAssistantAnalysis: () => GetAssistantAnalysis,
|
|
57198
|
-
GetAssistantAnalysisRequest: () =>
|
|
57199
|
-
GetAssistantAnalysisResponse: () =>
|
|
56843
|
+
GetAssistantAnalysisRequest: () => import_assistant_analysis_pb.GetAssistantAnalysisRequest,
|
|
56844
|
+
GetAssistantAnalysisResponse: () => import_assistant_analysis_pb.GetAssistantAnalysisResponse,
|
|
57200
56845
|
GetAssistantApiDeployment: () => GetAssistantApiDeployment,
|
|
57201
56846
|
GetAssistantConversation: () => GetAssistantConversation,
|
|
57202
|
-
GetAssistantConversationRequest: () =>
|
|
57203
|
-
GetAssistantConversationResponse: () =>
|
|
56847
|
+
GetAssistantConversationRequest: () => import_assistant_api_pb.GetAssistantConversationRequest,
|
|
56848
|
+
GetAssistantConversationResponse: () => import_assistant_api_pb.GetAssistantConversationResponse,
|
|
57204
56849
|
GetAssistantDebuggerDeployment: () => GetAssistantDebuggerDeployment,
|
|
57205
56850
|
GetAssistantDeploymentRequest: () => import_assistant_deployment_pb.GetAssistantDeploymentRequest,
|
|
57206
56851
|
GetAssistantKnowledge: () => GetAssistantKnowledge,
|
|
57207
|
-
GetAssistantKnowledgeRequest: () =>
|
|
57208
|
-
GetAssistantKnowledgeResponse: () =>
|
|
56852
|
+
GetAssistantKnowledgeRequest: () => import_assistant_knowledge_pb.GetAssistantKnowledgeRequest,
|
|
56853
|
+
GetAssistantKnowledgeResponse: () => import_assistant_knowledge_pb.GetAssistantKnowledgeResponse,
|
|
57209
56854
|
GetAssistantMessages: () => GetAssistantMessages,
|
|
57210
56855
|
GetAssistantPhoneDeployment: () => GetAssistantPhoneDeployment,
|
|
57211
|
-
GetAssistantProviderModelResponse: () =>
|
|
57212
|
-
GetAssistantRequest: () =>
|
|
57213
|
-
GetAssistantResponse: () =>
|
|
56856
|
+
GetAssistantProviderModelResponse: () => import_assistant_api_pb.GetAssistantProviderModelResponse,
|
|
56857
|
+
GetAssistantRequest: () => import_assistant_api_pb.GetAssistantRequest,
|
|
56858
|
+
GetAssistantResponse: () => import_assistant_api_pb.GetAssistantResponse,
|
|
57214
56859
|
GetAssistantTool: () => GetAssistantTool,
|
|
57215
|
-
GetAssistantToolRequest: () =>
|
|
57216
|
-
GetAssistantToolResponse: () =>
|
|
56860
|
+
GetAssistantToolRequest: () => import_assistant_tool_pb.GetAssistantToolRequest,
|
|
56861
|
+
GetAssistantToolResponse: () => import_assistant_tool_pb.GetAssistantToolResponse,
|
|
57217
56862
|
GetAssistantWebhook: () => GetAssistantWebhook,
|
|
57218
|
-
GetAssistantWebhookLogRequest: () =>
|
|
57219
|
-
GetAssistantWebhookLogResponse: () =>
|
|
57220
|
-
GetAssistantWebhookRequest: () =>
|
|
57221
|
-
GetAssistantWebhookResponse: () =>
|
|
56863
|
+
GetAssistantWebhookLogRequest: () => import_assistant_webhook_pb.GetAssistantWebhookLogRequest,
|
|
56864
|
+
GetAssistantWebhookLogResponse: () => import_assistant_webhook_pb.GetAssistantWebhookLogResponse,
|
|
56865
|
+
GetAssistantWebhookRequest: () => import_assistant_webhook_pb.GetAssistantWebhookRequest,
|
|
56866
|
+
GetAssistantWebhookResponse: () => import_assistant_webhook_pb.GetAssistantWebhookResponse,
|
|
57222
56867
|
GetAssistantWebpluginDeployment: () => GetAssistantWebpluginDeployment,
|
|
57223
56868
|
GetAssistantWhatsappDeployment: () => GetAssistantWhatsappDeployment,
|
|
57224
56869
|
GetAuditLogRequest: () => import_audit_logging_api_pb2.GetAuditLogRequest,
|
|
@@ -57229,10 +56874,10 @@ __export(index_exports, {
|
|
|
57229
56874
|
GetCredentialResponse: () => import_vault_api_pb2.GetCredentialResponse,
|
|
57230
56875
|
GetEndpoint: () => GetEndpoint,
|
|
57231
56876
|
GetEndpointLog: () => GetEndpointLog,
|
|
57232
|
-
GetEndpointLogRequest: () =>
|
|
57233
|
-
GetEndpointLogResponse: () =>
|
|
57234
|
-
GetEndpointRequest: () =>
|
|
57235
|
-
GetEndpointResponse: () =>
|
|
56877
|
+
GetEndpointLogRequest: () => import_endpoint_api_pb.GetEndpointLogRequest,
|
|
56878
|
+
GetEndpointLogResponse: () => import_endpoint_api_pb.GetEndpointLogResponse,
|
|
56879
|
+
GetEndpointRequest: () => import_endpoint_api_pb.GetEndpointRequest,
|
|
56880
|
+
GetEndpointResponse: () => import_endpoint_api_pb.GetEndpointResponse,
|
|
57236
56881
|
GetKnowledgeBase: () => GetKnowledgeBase,
|
|
57237
56882
|
GetKnowledgeRequest: () => import_knowledge_api_pb3.GetKnowledgeRequest,
|
|
57238
56883
|
GetKnowledgeResponse: () => import_knowledge_api_pb3.GetKnowledgeResponse,
|
|
@@ -57283,10 +56928,10 @@ __export(index_exports, {
|
|
|
57283
56928
|
InviteMemeberEmailRequest: () => import_sendgrid_api_pb.InviteMemeberEmailRequest,
|
|
57284
56929
|
InviteMemeberEmailResponse: () => import_sendgrid_api_pb.InviteMemeberEmailResponse,
|
|
57285
56930
|
Invoke: () => Invoke,
|
|
57286
|
-
InvokeRequest: () =>
|
|
57287
|
-
InvokeResponse: () =>
|
|
56931
|
+
InvokeRequest: () => import_invoker_api_pb.InvokeRequest,
|
|
56932
|
+
InvokeResponse: () => import_invoker_api_pb.InvokeResponse,
|
|
57288
56933
|
JSONToAny: () => JSONToAny,
|
|
57289
|
-
Knowledge: () =>
|
|
56934
|
+
Knowledge: () => import_common_pb11.Knowledge,
|
|
57290
56935
|
KnowledgeConnect: () => KnowledgeConnect,
|
|
57291
56936
|
KnowledgeConnectRequest: () => import_connect_api_pb2.KnowledgeConnectRequest,
|
|
57292
56937
|
KnowledgeConnectResponse: () => import_connect_api_pb2.KnowledgeConnectResponse,
|
|
@@ -57294,22 +56939,22 @@ __export(index_exports, {
|
|
|
57294
56939
|
KnowledgeDocumentSegment: () => import_knowledge_api_pb3.KnowledgeDocumentSegment,
|
|
57295
56940
|
Linkedin: () => Linkedin,
|
|
57296
56941
|
MapToObject: () => MapToObject,
|
|
57297
|
-
Metadata: () =>
|
|
57298
|
-
Metric: () =>
|
|
56942
|
+
Metadata: () => import_common_pb11.Metadata,
|
|
56943
|
+
Metric: () => import_common_pb11.Metric,
|
|
57299
56944
|
Moderation: () => import_integration_api_pb.Moderation,
|
|
57300
|
-
Ordering: () =>
|
|
57301
|
-
Organization: () =>
|
|
56945
|
+
Ordering: () => import_common_pb11.Ordering,
|
|
56946
|
+
Organization: () => import_common_pb11.Organization,
|
|
57302
56947
|
OrganizationError: () => import_web_api_pb4.OrganizationError,
|
|
57303
56948
|
OrganizationRole: () => import_web_api_pb4.OrganizationRole,
|
|
57304
|
-
Paginate: () =>
|
|
57305
|
-
Paginated: () =>
|
|
57306
|
-
ProbeRequest: () =>
|
|
57307
|
-
ProbeResponse: () =>
|
|
56949
|
+
Paginate: () => import_common_pb11.Paginate,
|
|
56950
|
+
Paginated: () => import_common_pb11.Paginated,
|
|
56951
|
+
ProbeRequest: () => import_invoker_api_pb.ProbeRequest,
|
|
56952
|
+
ProbeResponse: () => import_invoker_api_pb.ProbeResponse,
|
|
57308
56953
|
Project: () => import_web_api_pb4.Project,
|
|
57309
56954
|
ProjectCredential: () => import_web_api_pb4.ProjectCredential,
|
|
57310
56955
|
ProjectRole: () => import_web_api_pb4.ProjectRole,
|
|
57311
|
-
ProtoMessage: () =>
|
|
57312
|
-
Provider: () =>
|
|
56956
|
+
ProtoMessage: () => import_common_pb11.Message,
|
|
56957
|
+
Provider: () => import_common_pb11.Provider,
|
|
57313
56958
|
RapidaSource: () => RapidaSource,
|
|
57314
56959
|
RegisterUser: () => RegisterUser,
|
|
57315
56960
|
RegisterUserRequest: () => import_web_api_pb4.RegisterUserRequest,
|
|
@@ -57324,30 +56969,29 @@ __export(index_exports, {
|
|
|
57324
56969
|
SearchableDeployment: () => import_marketplace_api_pb2.SearchableDeployment,
|
|
57325
56970
|
SocialAuthenticationRequest: () => import_web_api_pb4.SocialAuthenticationRequest,
|
|
57326
56971
|
StringToAny: () => StringToAny,
|
|
57327
|
-
Tag: () =>
|
|
57328
|
-
TextChatCompletePrompt: () =>
|
|
57329
|
-
TextPrompt: () =>
|
|
56972
|
+
Tag: () => import_common_pb11.Tag,
|
|
56973
|
+
TextChatCompletePrompt: () => import_common_pb11.TextChatCompletePrompt,
|
|
56974
|
+
TextPrompt: () => import_common_pb11.TextPrompt,
|
|
57330
56975
|
Token: () => import_web_api_pb4.Token,
|
|
57331
|
-
ToolCall: () =>
|
|
56976
|
+
ToolCall: () => import_common_pb11.ToolCall,
|
|
57332
56977
|
ToolDefinition: () => import_integration_api_pb.ToolDefinition,
|
|
57333
56978
|
ToolProvider: () => import_provider_api_pb2.ToolProvider,
|
|
57334
56979
|
UpdateAnalysis: () => UpdateAnalysis,
|
|
57335
|
-
UpdateAssistantAnalysisRequest: () =>
|
|
56980
|
+
UpdateAssistantAnalysisRequest: () => import_assistant_analysis_pb.UpdateAssistantAnalysisRequest,
|
|
57336
56981
|
UpdateAssistantDetail: () => UpdateAssistantDetail,
|
|
57337
|
-
UpdateAssistantDetailRequest: () =>
|
|
56982
|
+
UpdateAssistantDetailRequest: () => import_assistant_api_pb.UpdateAssistantDetailRequest,
|
|
57338
56983
|
UpdateAssistantKnowledge: () => UpdateAssistantKnowledge,
|
|
57339
|
-
UpdateAssistantKnowledgeRequest: () =>
|
|
56984
|
+
UpdateAssistantKnowledgeRequest: () => import_assistant_knowledge_pb.UpdateAssistantKnowledgeRequest,
|
|
57340
56985
|
UpdateAssistantTool: () => UpdateAssistantTool,
|
|
57341
|
-
UpdateAssistantToolRequest: () =>
|
|
56986
|
+
UpdateAssistantToolRequest: () => import_assistant_tool_pb.UpdateAssistantToolRequest,
|
|
57342
56987
|
UpdateAssistantVersion: () => UpdateAssistantVersion,
|
|
57343
|
-
UpdateAssistantVersionRequest: () =>
|
|
57344
|
-
UpdateAssistantWebhookRequest: () =>
|
|
56988
|
+
UpdateAssistantVersionRequest: () => import_assistant_api_pb.UpdateAssistantVersionRequest,
|
|
56989
|
+
UpdateAssistantWebhookRequest: () => import_assistant_webhook_pb.UpdateAssistantWebhookRequest,
|
|
57345
56990
|
UpdateBillingInformationRequest: () => import_web_api_pb4.UpdateBillingInformationRequest,
|
|
57346
|
-
|
|
57347
|
-
UpdateEndpointDetailRequest: () => import_endpoint_api_pb2.UpdateEndpointDetailRequest,
|
|
56991
|
+
UpdateEndpointDetailRequest: () => import_endpoint_api_pb.UpdateEndpointDetailRequest,
|
|
57348
56992
|
UpdateEndpointVersion: () => UpdateEndpointVersion,
|
|
57349
|
-
UpdateEndpointVersionRequest: () =>
|
|
57350
|
-
UpdateEndpointVersionResponse: () =>
|
|
56993
|
+
UpdateEndpointVersionRequest: () => import_endpoint_api_pb.UpdateEndpointVersionRequest,
|
|
56994
|
+
UpdateEndpointVersionResponse: () => import_endpoint_api_pb.UpdateEndpointVersionResponse,
|
|
57351
56995
|
UpdateKnowledgeDetail: () => UpdateKnowledgeDetail,
|
|
57352
56996
|
UpdateKnowledgeDetailRequest: () => import_knowledge_api_pb3.UpdateKnowledgeDetailRequest,
|
|
57353
56997
|
UpdateKnowledgeDocumentSegment: () => UpdateKnowledgeDocumentSegment,
|
|
@@ -57358,14 +57002,14 @@ __export(index_exports, {
|
|
|
57358
57002
|
UpdateProject: () => UpdateProject,
|
|
57359
57003
|
UpdateProjectRequest: () => import_web_api_pb4.UpdateProjectRequest,
|
|
57360
57004
|
UpdateProjectResponse: () => import_web_api_pb4.UpdateProjectResponse,
|
|
57361
|
-
UpdateRequest: () =>
|
|
57362
|
-
UpdateResponse: () =>
|
|
57005
|
+
UpdateRequest: () => import_invoker_api_pb.UpdateRequest,
|
|
57006
|
+
UpdateResponse: () => import_invoker_api_pb.UpdateResponse,
|
|
57363
57007
|
UpdateUser: () => UpdateUser,
|
|
57364
57008
|
UpdateUserRequest: () => import_web_api_pb4.UpdateUserRequest,
|
|
57365
57009
|
UpdateUserResponse: () => import_web_api_pb4.UpdateUserResponse,
|
|
57366
57010
|
UpdateWebhook: () => UpdateWebhook,
|
|
57367
|
-
User: () =>
|
|
57368
|
-
Variable: () =>
|
|
57011
|
+
User: () => import_common_pb11.User,
|
|
57012
|
+
Variable: () => import_common_pb11.Variable,
|
|
57369
57013
|
VaultCredential: () => import_vault_api_pb2.VaultCredential,
|
|
57370
57014
|
VerifyCredentialRequest: () => import_integration_api_pb.VerifyCredentialRequest,
|
|
57371
57015
|
VerifyCredentialResponse: () => import_integration_api_pb.VerifyCredentialResponse,
|
|
@@ -58028,29 +57672,11 @@ function GetAllDeployment(client, page, pageSize, criteria) {
|
|
|
58028
57672
|
}
|
|
58029
57673
|
|
|
58030
57674
|
// src/clients/invoke.ts
|
|
58031
|
-
|
|
58032
|
-
function Invoke(config, endpointId, parameters, version, metadata) {
|
|
57675
|
+
function Invoke(config, req, auth) {
|
|
58033
57676
|
return new Promise((resolve, reject) => {
|
|
58034
|
-
const req = new import_invoker_api_pb.InvokeRequest();
|
|
58035
|
-
const endpoint = new import_invoker_api_pb.EndpointDefinition();
|
|
58036
|
-
endpoint.setEndpointid(endpointId);
|
|
58037
|
-
if (version) {
|
|
58038
|
-
endpoint.setVersion(version);
|
|
58039
|
-
} else {
|
|
58040
|
-
endpoint.setVersion("latest");
|
|
58041
|
-
}
|
|
58042
|
-
req.setEndpoint(endpoint);
|
|
58043
|
-
parameters.forEach((value, key) => {
|
|
58044
|
-
req.getArgsMap().set(key, value);
|
|
58045
|
-
});
|
|
58046
|
-
if (metadata) {
|
|
58047
|
-
metadata.forEach((value, key) => {
|
|
58048
|
-
req.getMetadataMap().set(key, StringToAny(value));
|
|
58049
|
-
});
|
|
58050
|
-
}
|
|
58051
57677
|
return config.deploymentClient.invoke(
|
|
58052
57678
|
req,
|
|
58053
|
-
WithAuthContext(config.auth),
|
|
57679
|
+
WithAuthContext(auth || config.auth),
|
|
58054
57680
|
(err, response) => {
|
|
58055
57681
|
if (err) reject(err);
|
|
58056
57682
|
else resolve(response);
|
|
@@ -58401,30 +58027,11 @@ function GetOrganization(connectionConfig, authHeader) {
|
|
|
58401
58027
|
}
|
|
58402
58028
|
|
|
58403
58029
|
// src/clients/assistant.ts
|
|
58404
|
-
|
|
58405
|
-
var import_assistant_api_pb = __toESM(require_assistant_api_pb());
|
|
58406
|
-
var import_assistant_analysis_pb = __toESM(require_assistant_analysis_pb());
|
|
58407
|
-
var import_assistant_tool_pb = __toESM(require_assistant_tool_pb());
|
|
58408
|
-
var import_assistant_knowledge_pb = __toESM(require_assistant_knowledge_pb());
|
|
58409
|
-
var import_assistant_webhook_pb = __toESM(require_assistant_webhook_pb());
|
|
58410
|
-
var import_common_pb6 = __toESM(require_common_pb());
|
|
58411
|
-
var import_struct_pb3 = require("google-protobuf/google/protobuf/struct_pb");
|
|
58412
|
-
function GetAllAssistant(connectionConfig, page, pageSize, criteria) {
|
|
58030
|
+
function GetAllAssistant(config, req, auth) {
|
|
58413
58031
|
return new Promise((resolve, reject) => {
|
|
58414
|
-
|
|
58415
|
-
const paginate = new import_common_pb5.Paginate();
|
|
58416
|
-
criteria.forEach(({ key, value }) => {
|
|
58417
|
-
const ctr = new import_common_pb5.Criteria();
|
|
58418
|
-
ctr.setKey(key);
|
|
58419
|
-
ctr.setValue(value);
|
|
58420
|
-
req.addCriterias(ctr);
|
|
58421
|
-
});
|
|
58422
|
-
paginate.setPage(page);
|
|
58423
|
-
paginate.setPagesize(pageSize);
|
|
58424
|
-
req.setPaginate(paginate);
|
|
58425
|
-
connectionConfig.assistantClient.getAllAssistant(
|
|
58032
|
+
config.assistantClient.getAllAssistant(
|
|
58426
58033
|
req,
|
|
58427
|
-
WithAuthContext(
|
|
58034
|
+
WithAuthContext(auth || config.auth),
|
|
58428
58035
|
(err, response) => {
|
|
58429
58036
|
if (err) reject(err);
|
|
58430
58037
|
else resolve(response);
|
|
@@ -58432,14 +58039,11 @@ function GetAllAssistant(connectionConfig, page, pageSize, criteria) {
|
|
|
58432
58039
|
);
|
|
58433
58040
|
});
|
|
58434
58041
|
}
|
|
58435
|
-
function UpdateAssistantVersion(
|
|
58042
|
+
function UpdateAssistantVersion(config, req, auth) {
|
|
58436
58043
|
return new Promise((resolve, reject) => {
|
|
58437
|
-
|
|
58438
|
-
req.setAssistantid(assistantId);
|
|
58439
|
-
req.setAssistantprovidermodelid(assistantProviderModelId);
|
|
58440
|
-
connectionConfig.assistantClient.updateAssistantVersion(
|
|
58044
|
+
config.assistantClient.updateAssistantVersion(
|
|
58441
58045
|
req,
|
|
58442
|
-
WithAuthContext(
|
|
58046
|
+
WithAuthContext(auth || config.auth),
|
|
58443
58047
|
(err, response) => {
|
|
58444
58048
|
if (err) reject(err);
|
|
58445
58049
|
else resolve(response);
|
|
@@ -58447,23 +58051,11 @@ function UpdateAssistantVersion(connectionConfig, assistantId, assistantProvider
|
|
|
58447
58051
|
);
|
|
58448
58052
|
});
|
|
58449
58053
|
}
|
|
58450
|
-
function GetAllAssistantProviderModel(
|
|
58054
|
+
function GetAllAssistantProviderModel(config, req, auth) {
|
|
58451
58055
|
return new Promise((resolve, reject) => {
|
|
58452
|
-
|
|
58453
|
-
req.setAssistantid(assistantId);
|
|
58454
|
-
const paginate = new import_common_pb5.Paginate();
|
|
58455
|
-
criteria.forEach(({ key, value }) => {
|
|
58456
|
-
const ctr = new import_common_pb5.Criteria();
|
|
58457
|
-
ctr.setKey(key);
|
|
58458
|
-
ctr.setValue(value);
|
|
58459
|
-
req.addCriterias(ctr);
|
|
58460
|
-
});
|
|
58461
|
-
paginate.setPage(page);
|
|
58462
|
-
paginate.setPagesize(pageSize);
|
|
58463
|
-
req.setPaginate(paginate);
|
|
58464
|
-
connectionConfig.assistantClient.getAllAssistantProviderModel(
|
|
58056
|
+
config.assistantClient.getAllAssistantProviderModel(
|
|
58465
58057
|
req,
|
|
58466
|
-
WithAuthContext(
|
|
58058
|
+
WithAuthContext(auth || config.auth),
|
|
58467
58059
|
(err, response) => {
|
|
58468
58060
|
if (err) reject(err);
|
|
58469
58061
|
else resolve(response);
|
|
@@ -58471,16 +58063,11 @@ function GetAllAssistantProviderModel(connectionConfig, assistantId, page, pageS
|
|
|
58471
58063
|
);
|
|
58472
58064
|
});
|
|
58473
58065
|
}
|
|
58474
|
-
function GetAssistant(
|
|
58066
|
+
function GetAssistant(config, req, auth) {
|
|
58475
58067
|
return new Promise((resolve, reject) => {
|
|
58476
|
-
|
|
58477
|
-
req.setId(assistantId);
|
|
58478
|
-
if (assistantProviderModelId) {
|
|
58479
|
-
req.setAssistantprovidermodelid(assistantProviderModelId);
|
|
58480
|
-
}
|
|
58481
|
-
connectionConfig.assistantClient.getAssistant(
|
|
58068
|
+
config.assistantClient.getAssistant(
|
|
58482
58069
|
req,
|
|
58483
|
-
WithAuthContext(
|
|
58070
|
+
WithAuthContext(auth || config.auth),
|
|
58484
58071
|
(err, response) => {
|
|
58485
58072
|
if (err) reject(err);
|
|
58486
58073
|
else resolve(response);
|
|
@@ -58488,18 +58075,11 @@ function GetAssistant(connectionConfig, assistantId, assistantProviderModelId) {
|
|
|
58488
58075
|
);
|
|
58489
58076
|
});
|
|
58490
58077
|
}
|
|
58491
|
-
function CreateAssistantProviderModel(
|
|
58078
|
+
function CreateAssistantProviderModel(config, req, auth) {
|
|
58492
58079
|
return new Promise((resolve, reject) => {
|
|
58493
|
-
|
|
58494
|
-
req.setAssistantid(assistantId);
|
|
58495
|
-
req.setDescription(description);
|
|
58496
|
-
req.setAssistantmodeloptionsList(modelProviderOptions);
|
|
58497
|
-
req.setModelproviderid(modelProviderId);
|
|
58498
|
-
req.setTemplate(template);
|
|
58499
|
-
req.setModelprovidername(modelProviderName);
|
|
58500
|
-
connectionConfig.assistantClient.createAssistantProviderModel(
|
|
58080
|
+
config.assistantClient.createAssistantProviderModel(
|
|
58501
58081
|
req,
|
|
58502
|
-
WithAuthContext(
|
|
58082
|
+
WithAuthContext(auth || config.auth),
|
|
58503
58083
|
(err, response) => {
|
|
58504
58084
|
if (err) reject(err);
|
|
58505
58085
|
else resolve(response);
|
|
@@ -58507,20 +58087,11 @@ function CreateAssistantProviderModel(connectionConfig, assistantId, template, m
|
|
|
58507
58087
|
);
|
|
58508
58088
|
});
|
|
58509
58089
|
}
|
|
58510
|
-
function CreateAssistant(
|
|
58090
|
+
function CreateAssistant(config, req, auth) {
|
|
58511
58091
|
return new Promise((resolve, reject) => {
|
|
58512
|
-
|
|
58513
|
-
req.setName(name);
|
|
58514
|
-
req.setDescription(description);
|
|
58515
|
-
req.setTagsList(tagsList);
|
|
58516
|
-
req.setAssistantprovidermodel(assistantProviderModel);
|
|
58517
|
-
if (assistantKnowledgeConfig)
|
|
58518
|
-
req.setAssistantknowledgesList(assistantKnowledgeConfig);
|
|
58519
|
-
if (assistantToolConfig) req.setAssistanttoolsList(assistantToolConfig);
|
|
58520
|
-
req.setTagsList(tags);
|
|
58521
|
-
connectionConfig.assistantClient.createAssistant(
|
|
58092
|
+
config.assistantClient.createAssistant(
|
|
58522
58093
|
req,
|
|
58523
|
-
WithAuthContext(
|
|
58094
|
+
WithAuthContext(auth || config.auth),
|
|
58524
58095
|
(err, response) => {
|
|
58525
58096
|
if (err) reject(err);
|
|
58526
58097
|
else resolve(response);
|
|
@@ -58528,14 +58099,11 @@ function CreateAssistant(connectionConfig, name, description, tagsList, assistan
|
|
|
58528
58099
|
);
|
|
58529
58100
|
});
|
|
58530
58101
|
}
|
|
58531
|
-
function CreateAssistantTag(
|
|
58102
|
+
function CreateAssistantTag(config, req, auth) {
|
|
58532
58103
|
return new Promise((resolve, reject) => {
|
|
58533
|
-
|
|
58534
|
-
req.setTagsList(tags);
|
|
58535
|
-
req.setAssistantid(assistantId);
|
|
58536
|
-
connectionConfig.assistantClient.createAssistantTag(
|
|
58104
|
+
config.assistantClient.createAssistantTag(
|
|
58537
58105
|
req,
|
|
58538
|
-
WithAuthContext(
|
|
58106
|
+
WithAuthContext(auth || config.auth),
|
|
58539
58107
|
(err, response) => {
|
|
58540
58108
|
if (err) reject(err);
|
|
58541
58109
|
else resolve(response);
|
|
@@ -58543,15 +58111,11 @@ function CreateAssistantTag(connectionConfig, assistantId, tags) {
|
|
|
58543
58111
|
);
|
|
58544
58112
|
});
|
|
58545
58113
|
}
|
|
58546
|
-
function UpdateAssistantDetail(
|
|
58114
|
+
function UpdateAssistantDetail(config, req, auth) {
|
|
58547
58115
|
return new Promise((resolve, reject) => {
|
|
58548
|
-
|
|
58549
|
-
req.setName(name);
|
|
58550
|
-
req.setDescription(description);
|
|
58551
|
-
req.setAssistantid(assistantId);
|
|
58552
|
-
connectionConfig.assistantClient.updateAssistantDetail(
|
|
58116
|
+
config.assistantClient.updateAssistantDetail(
|
|
58553
58117
|
req,
|
|
58554
|
-
WithAuthContext(
|
|
58118
|
+
WithAuthContext(auth || config.auth),
|
|
58555
58119
|
(err, response) => {
|
|
58556
58120
|
if (err) reject(err);
|
|
58557
58121
|
else resolve(response);
|
|
@@ -58559,33 +58123,11 @@ function UpdateAssistantDetail(connectionConfig, assistantId, name, description)
|
|
|
58559
58123
|
);
|
|
58560
58124
|
});
|
|
58561
58125
|
}
|
|
58562
|
-
function GetAssistantMessages(
|
|
58126
|
+
function GetAssistantMessages(config, req, auth) {
|
|
58563
58127
|
return new Promise((resolve, reject) => {
|
|
58564
|
-
|
|
58565
|
-
const paginate = new import_common_pb5.Paginate();
|
|
58566
|
-
criteria.forEach(({ key, value, logic }) => {
|
|
58567
|
-
const ctr = new import_common_pb5.Criteria();
|
|
58568
|
-
ctr.setKey(key);
|
|
58569
|
-
ctr.setValue(value);
|
|
58570
|
-
ctr.setLogic(logic);
|
|
58571
|
-
req.addCriterias(ctr);
|
|
58572
|
-
});
|
|
58573
|
-
req.setAssistantid(assistantId);
|
|
58574
|
-
selectors.forEach((v) => {
|
|
58575
|
-
const selectors2 = new import_common_pb5.FieldSelector();
|
|
58576
|
-
selectors2.setField(v);
|
|
58577
|
-
req.addSelectors(selectors2);
|
|
58578
|
-
});
|
|
58579
|
-
paginate.setPage(page);
|
|
58580
|
-
paginate.setPagesize(pageSize);
|
|
58581
|
-
const order = new import_common_pb5.Ordering();
|
|
58582
|
-
order.setColumn("created_date");
|
|
58583
|
-
order.setOrder("desc");
|
|
58584
|
-
req.setOrder(order);
|
|
58585
|
-
req.setPaginate(paginate);
|
|
58586
|
-
connectionConfig.assistantClient.getAllAssistantMessage(
|
|
58128
|
+
config.assistantClient.getAllAssistantMessage(
|
|
58587
58129
|
req,
|
|
58588
|
-
WithAuthContext(
|
|
58130
|
+
WithAuthContext(auth || config.auth),
|
|
58589
58131
|
(err, response) => {
|
|
58590
58132
|
if (err) reject(err);
|
|
58591
58133
|
else resolve(response);
|
|
@@ -58593,32 +58135,11 @@ function GetAssistantMessages(connectionConfig, assistantId, page, pageSize, cri
|
|
|
58593
58135
|
);
|
|
58594
58136
|
});
|
|
58595
58137
|
}
|
|
58596
|
-
function GetMessages(
|
|
58138
|
+
function GetMessages(config, req, auth) {
|
|
58597
58139
|
return new Promise((resolve, reject) => {
|
|
58598
|
-
|
|
58599
|
-
const paginate = new import_common_pb5.Paginate();
|
|
58600
|
-
criteria.forEach(({ key, value, logic }) => {
|
|
58601
|
-
const ctr = new import_common_pb5.Criteria();
|
|
58602
|
-
ctr.setKey(key);
|
|
58603
|
-
ctr.setValue(value);
|
|
58604
|
-
ctr.setLogic(logic);
|
|
58605
|
-
req.addCriterias(ctr);
|
|
58606
|
-
});
|
|
58607
|
-
selectors.forEach((v) => {
|
|
58608
|
-
const selectors2 = new import_common_pb5.FieldSelector();
|
|
58609
|
-
selectors2.setField(v);
|
|
58610
|
-
req.addSelectors(selectors2);
|
|
58611
|
-
});
|
|
58612
|
-
paginate.setPage(page);
|
|
58613
|
-
paginate.setPagesize(pageSize);
|
|
58614
|
-
const order = new import_common_pb5.Ordering();
|
|
58615
|
-
order.setColumn("created_date");
|
|
58616
|
-
order.setOrder("desc");
|
|
58617
|
-
req.setOrder(order);
|
|
58618
|
-
req.setPaginate(paginate);
|
|
58619
|
-
connectionConfig.assistantClient.getAllMessage(
|
|
58140
|
+
config.assistantClient.getAllMessage(
|
|
58620
58141
|
req,
|
|
58621
|
-
WithAuthContext(
|
|
58142
|
+
WithAuthContext(auth || config.auth),
|
|
58622
58143
|
(err, response) => {
|
|
58623
58144
|
if (err) reject(err);
|
|
58624
58145
|
else resolve(response);
|
|
@@ -58626,24 +58147,11 @@ function GetMessages(connectionConfig, page, pageSize, criteria, selectors) {
|
|
|
58626
58147
|
);
|
|
58627
58148
|
});
|
|
58628
58149
|
}
|
|
58629
|
-
function
|
|
58150
|
+
function GetAllAssistantConversation(config, req, auth) {
|
|
58630
58151
|
return new Promise((resolve, reject) => {
|
|
58631
|
-
|
|
58632
|
-
req.setAssistantid(assistantId);
|
|
58633
|
-
const paginate = new import_common_pb5.Paginate();
|
|
58634
|
-
criteria.forEach((x) => {
|
|
58635
|
-
let ctr = new import_common_pb5.Criteria();
|
|
58636
|
-
ctr.setKey(x.key);
|
|
58637
|
-
ctr.setValue(x.value);
|
|
58638
|
-
ctr.setLogic(x.logic);
|
|
58639
|
-
req.addCriterias(ctr);
|
|
58640
|
-
});
|
|
58641
|
-
paginate.setPage(page);
|
|
58642
|
-
paginate.setPagesize(pageSize);
|
|
58643
|
-
req.setPaginate(paginate);
|
|
58644
|
-
connectionConfig.assistantClient.getAllAssistantConversation(
|
|
58152
|
+
config.assistantClient.getAllAssistantConversation(
|
|
58645
58153
|
req,
|
|
58646
|
-
WithAuthContext(
|
|
58154
|
+
WithAuthContext(auth || config.auth),
|
|
58647
58155
|
(err, response) => {
|
|
58648
58156
|
if (err) reject(err);
|
|
58649
58157
|
else resolve(response);
|
|
@@ -58651,24 +58159,11 @@ function GetAllAssistantSession(connectionConfig, assistantId, page, pageSize, c
|
|
|
58651
58159
|
);
|
|
58652
58160
|
});
|
|
58653
58161
|
}
|
|
58654
|
-
function GetAllAssistantConversationMessage(
|
|
58162
|
+
function GetAllAssistantConversationMessage(config, req, auth) {
|
|
58655
58163
|
return new Promise((resolve, reject) => {
|
|
58656
|
-
|
|
58657
|
-
req.setAssistantid(assistantId);
|
|
58658
|
-
req.setAssistantconversationid(assistantConversationId);
|
|
58659
|
-
const paginate = new import_common_pb5.Paginate();
|
|
58660
|
-
criteria.forEach((x) => {
|
|
58661
|
-
let ctr = new import_common_pb5.Criteria();
|
|
58662
|
-
ctr.setKey(x.key);
|
|
58663
|
-
ctr.setValue(x.value);
|
|
58664
|
-
req.addCriterias(ctr);
|
|
58665
|
-
});
|
|
58666
|
-
paginate.setPage(page);
|
|
58667
|
-
paginate.setPagesize(pageSize);
|
|
58668
|
-
req.setPaginate(paginate);
|
|
58669
|
-
connectionConfig.assistantClient.getAllConversationMessage(
|
|
58164
|
+
config.assistantClient.getAllConversationMessage(
|
|
58670
58165
|
req,
|
|
58671
|
-
WithAuthContext(
|
|
58166
|
+
WithAuthContext(auth || config.auth),
|
|
58672
58167
|
(err, response) => {
|
|
58673
58168
|
if (err) reject(err);
|
|
58674
58169
|
else resolve(response);
|
|
@@ -58676,23 +58171,11 @@ function GetAllAssistantConversationMessage(connectionConfig, assistantId, assis
|
|
|
58676
58171
|
);
|
|
58677
58172
|
});
|
|
58678
58173
|
}
|
|
58679
|
-
function GetAllAssistantWebhook(
|
|
58174
|
+
function GetAllAssistantWebhook(config, req, auth) {
|
|
58680
58175
|
return new Promise((resolve, reject) => {
|
|
58681
|
-
|
|
58682
|
-
const paginate = new import_common_pb5.Paginate();
|
|
58683
|
-
criteria.forEach(({ key, value }) => {
|
|
58684
|
-
const ctr = new import_common_pb5.Criteria();
|
|
58685
|
-
ctr.setKey(key);
|
|
58686
|
-
ctr.setValue(value);
|
|
58687
|
-
req.addCriterias(ctr);
|
|
58688
|
-
});
|
|
58689
|
-
paginate.setPage(page);
|
|
58690
|
-
paginate.setPagesize(pageSize);
|
|
58691
|
-
req.setPaginate(paginate);
|
|
58692
|
-
req.setAssistantid(assistantId);
|
|
58693
|
-
return connectionConfig.assistantClient.getAllAssistantWebhook(
|
|
58176
|
+
config.assistantClient.getAllAssistantWebhook(
|
|
58694
58177
|
req,
|
|
58695
|
-
WithAuthContext(
|
|
58178
|
+
WithAuthContext(auth || config.auth),
|
|
58696
58179
|
(err, response) => {
|
|
58697
58180
|
if (err) reject(err);
|
|
58698
58181
|
else resolve(response);
|
|
@@ -58700,383 +58183,279 @@ function GetAllAssistantWebhook(connectionConfig, assistantId, page, pageSize, c
|
|
|
58700
58183
|
);
|
|
58701
58184
|
});
|
|
58702
58185
|
}
|
|
58703
|
-
function CreateWebhook(
|
|
58186
|
+
function CreateWebhook(config, req, auth) {
|
|
58704
58187
|
return new Promise((resolve, reject) => {
|
|
58705
|
-
|
|
58706
|
-
req.setAssistantid(assistantId);
|
|
58707
|
-
req.setHttpurl(endpoint);
|
|
58708
|
-
req.setHttpmethod(method);
|
|
58709
|
-
req.setAssistanteventsList(events);
|
|
58710
|
-
headers.forEach((k) => {
|
|
58711
|
-
req.getHttpheadersMap().set(k.key, k.value);
|
|
58712
|
-
});
|
|
58713
|
-
parameters.forEach((k) => {
|
|
58714
|
-
req.getHttpbodyMap().set(k.key, k.value);
|
|
58715
|
-
});
|
|
58716
|
-
req.setRetrystatuscodesList(retryOnStatus);
|
|
58717
|
-
req.setMaxretrycount(maxRetries);
|
|
58718
|
-
req.setTimeoutsecond(timeout);
|
|
58719
|
-
req.setExecutionpriority(priority);
|
|
58720
|
-
if (description) req.setDescription(description);
|
|
58721
|
-
connectionConfig.assistantClient.createAssistantWebhook(
|
|
58188
|
+
config.assistantClient.createAssistantWebhook(
|
|
58722
58189
|
req,
|
|
58723
|
-
WithAuthContext(
|
|
58190
|
+
WithAuthContext(auth || config.auth),
|
|
58724
58191
|
(err, response) => {
|
|
58725
|
-
if (err)
|
|
58726
|
-
|
|
58727
|
-
} else {
|
|
58728
|
-
resolve(response);
|
|
58729
|
-
}
|
|
58192
|
+
if (err) reject(err);
|
|
58193
|
+
else resolve(response);
|
|
58730
58194
|
}
|
|
58731
58195
|
);
|
|
58732
58196
|
});
|
|
58733
58197
|
}
|
|
58734
|
-
function UpdateWebhook(
|
|
58735
|
-
const req = new import_assistant_webhook_pb.UpdateAssistantWebhookRequest();
|
|
58736
|
-
req.setId(webhookId);
|
|
58737
|
-
req.setAssistantid(assistantId);
|
|
58738
|
-
req.setHttpurl(endpoint);
|
|
58739
|
-
req.setHttpmethod(method);
|
|
58740
|
-
req.setAssistanteventsList(events);
|
|
58741
|
-
headers.forEach((k) => req.getHttpheadersMap().set(k.key, k.value));
|
|
58742
|
-
parameters.forEach((k) => req.getHttpbodyMap().set(k.key, k.value));
|
|
58743
|
-
req.setRetrystatuscodesList(retryOnStatus);
|
|
58744
|
-
req.setMaxretrycount(maxRetries);
|
|
58745
|
-
req.setTimeoutsecond(timeout);
|
|
58746
|
-
req.setExecutionpriority(priority);
|
|
58747
|
-
if (description) req.setDescription(description);
|
|
58198
|
+
function UpdateWebhook(config, req, auth) {
|
|
58748
58199
|
return new Promise((resolve, reject) => {
|
|
58749
|
-
|
|
58200
|
+
config.assistantClient.updateAssistantWebhook(
|
|
58750
58201
|
req,
|
|
58751
|
-
WithAuthContext(
|
|
58752
|
-
(err, response) =>
|
|
58202
|
+
WithAuthContext(auth || config.auth),
|
|
58203
|
+
(err, response) => {
|
|
58204
|
+
if (err) reject(err);
|
|
58205
|
+
else resolve(response);
|
|
58206
|
+
}
|
|
58753
58207
|
);
|
|
58754
58208
|
});
|
|
58755
58209
|
}
|
|
58756
|
-
function GetAssistantWebhook(
|
|
58757
|
-
const req = new import_assistant_webhook_pb.GetAssistantWebhookRequest();
|
|
58758
|
-
req.setAssistantid(assistantId);
|
|
58759
|
-
req.setId(webhookId);
|
|
58210
|
+
function GetAssistantWebhook(config, req, auth) {
|
|
58760
58211
|
return new Promise((resolve, reject) => {
|
|
58761
|
-
|
|
58212
|
+
config.assistantClient.getAssistantWebhook(
|
|
58762
58213
|
req,
|
|
58763
|
-
WithAuthContext(
|
|
58764
|
-
(err, response) =>
|
|
58214
|
+
WithAuthContext(auth || config.auth),
|
|
58215
|
+
(err, response) => {
|
|
58216
|
+
if (err) reject(err);
|
|
58217
|
+
else resolve(response);
|
|
58218
|
+
}
|
|
58765
58219
|
);
|
|
58766
58220
|
});
|
|
58767
58221
|
}
|
|
58768
|
-
function DeleteAssistantWebhook(
|
|
58769
|
-
const req = new import_assistant_webhook_pb.DeleteAssistantWebhookRequest();
|
|
58770
|
-
req.setAssistantid(assistantId);
|
|
58771
|
-
req.setId(webhookId);
|
|
58222
|
+
function DeleteAssistantWebhook(config, req, auth) {
|
|
58772
58223
|
return new Promise((resolve, reject) => {
|
|
58773
|
-
|
|
58224
|
+
config.assistantClient.deleteAssistantWebhook(
|
|
58774
58225
|
req,
|
|
58775
|
-
WithAuthContext(
|
|
58776
|
-
(err, response) =>
|
|
58226
|
+
WithAuthContext(auth || config.auth),
|
|
58227
|
+
(err, response) => {
|
|
58228
|
+
if (err) reject(err);
|
|
58229
|
+
else resolve(response);
|
|
58230
|
+
}
|
|
58777
58231
|
);
|
|
58778
58232
|
});
|
|
58779
58233
|
}
|
|
58780
|
-
function GetAssistantConversation(
|
|
58781
|
-
const req = new import_assistant_api_pb.GetAssistantConversationRequest();
|
|
58782
|
-
req.setAssistantid(assistantId);
|
|
58783
|
-
req.setAssistantconversationid(conversaiontId);
|
|
58234
|
+
function GetAssistantConversation(config, req, auth) {
|
|
58784
58235
|
return new Promise((resolve, reject) => {
|
|
58785
|
-
|
|
58236
|
+
config.assistantClient.getAssistantConversation(
|
|
58786
58237
|
req,
|
|
58787
|
-
WithAuthContext(
|
|
58788
|
-
(err, response) =>
|
|
58238
|
+
WithAuthContext(auth || config.auth),
|
|
58239
|
+
(err, response) => {
|
|
58240
|
+
if (err) reject(err);
|
|
58241
|
+
else resolve(response);
|
|
58242
|
+
}
|
|
58789
58243
|
);
|
|
58790
58244
|
});
|
|
58791
58245
|
}
|
|
58792
|
-
function DeleteAssistant(
|
|
58793
|
-
const req = new import_assistant_api_pb.DeleteAssistantRequest();
|
|
58794
|
-
req.setId(assistantId);
|
|
58246
|
+
function DeleteAssistant(config, req, auth) {
|
|
58795
58247
|
return new Promise((resolve, reject) => {
|
|
58796
|
-
|
|
58248
|
+
config.assistantClient.deleteAssistant(
|
|
58797
58249
|
req,
|
|
58798
|
-
WithAuthContext(
|
|
58799
|
-
(err, response) =>
|
|
58250
|
+
WithAuthContext(auth || config.auth),
|
|
58251
|
+
(err, response) => {
|
|
58252
|
+
if (err) reject(err);
|
|
58253
|
+
else resolve(response);
|
|
58254
|
+
}
|
|
58800
58255
|
);
|
|
58801
58256
|
});
|
|
58802
58257
|
}
|
|
58803
|
-
function GetAllAssistantAnalysis(
|
|
58804
|
-
const req = new import_assistant_analysis_pb.GetAllAssistantAnalysisRequest();
|
|
58805
|
-
req.setAssistantid(assistantId);
|
|
58806
|
-
const paginate = new import_common_pb5.Paginate();
|
|
58807
|
-
criteria.forEach(({ key, value }) => {
|
|
58808
|
-
const ctr = new import_common_pb5.Criteria();
|
|
58809
|
-
ctr.setKey(key);
|
|
58810
|
-
ctr.setValue(value);
|
|
58811
|
-
req.addCriterias(ctr);
|
|
58812
|
-
});
|
|
58813
|
-
paginate.setPage(page);
|
|
58814
|
-
paginate.setPagesize(pageSize);
|
|
58815
|
-
req.setPaginate(paginate);
|
|
58258
|
+
function GetAllAssistantAnalysis(config, req, auth) {
|
|
58816
58259
|
return new Promise((resolve, reject) => {
|
|
58817
|
-
|
|
58260
|
+
config.assistantClient.getAllAssistantAnalysis(
|
|
58818
58261
|
req,
|
|
58819
|
-
WithAuthContext(
|
|
58820
|
-
(err, response) =>
|
|
58262
|
+
WithAuthContext(auth || config.auth),
|
|
58263
|
+
(err, response) => {
|
|
58264
|
+
if (err) reject(err);
|
|
58265
|
+
else resolve(response);
|
|
58266
|
+
}
|
|
58821
58267
|
);
|
|
58822
58268
|
});
|
|
58823
58269
|
}
|
|
58824
|
-
function CreateAnalysis(
|
|
58825
|
-
const req = new import_assistant_analysis_pb.CreateAssistantAnalysisRequest();
|
|
58826
|
-
req.setAssistantid(assistantId);
|
|
58827
|
-
req.setEndpointid(endpointid);
|
|
58828
|
-
req.setEndpointversion(endpointversion);
|
|
58829
|
-
req.setName(name);
|
|
58830
|
-
req.setExecutionpriority(executionpriority);
|
|
58831
|
-
parameters.forEach((k) => req.getEndpointparametersMap().set(k.key, k.value));
|
|
58832
|
-
if (description) req.setDescription(description);
|
|
58270
|
+
function CreateAnalysis(config, req, auth) {
|
|
58833
58271
|
return new Promise((resolve, reject) => {
|
|
58834
|
-
|
|
58272
|
+
config.assistantClient.createAssistantAnalysis(
|
|
58835
58273
|
req,
|
|
58836
|
-
WithAuthContext(
|
|
58837
|
-
(err, response) =>
|
|
58274
|
+
WithAuthContext(auth || config.auth),
|
|
58275
|
+
(err, response) => {
|
|
58276
|
+
if (err) reject(err);
|
|
58277
|
+
else resolve(response);
|
|
58278
|
+
}
|
|
58838
58279
|
);
|
|
58839
58280
|
});
|
|
58840
58281
|
}
|
|
58841
|
-
function UpdateAnalysis(
|
|
58842
|
-
const req = new import_assistant_analysis_pb.UpdateAssistantAnalysisRequest();
|
|
58843
|
-
req.setId(AnalysisId);
|
|
58844
|
-
req.setAssistantid(assistantId);
|
|
58845
|
-
req.setEndpointid(endpointid);
|
|
58846
|
-
req.setEndpointversion(endpointversion);
|
|
58847
|
-
req.setName(name);
|
|
58848
|
-
req.setExecutionpriority(executionpriority);
|
|
58849
|
-
parameters.forEach((k) => req.getEndpointparametersMap().set(k.key, k.value));
|
|
58850
|
-
if (description) req.setDescription(description);
|
|
58282
|
+
function UpdateAnalysis(config, req, auth) {
|
|
58851
58283
|
return new Promise((resolve, reject) => {
|
|
58852
|
-
|
|
58284
|
+
config.assistantClient.updateAssistantAnalysis(
|
|
58853
58285
|
req,
|
|
58854
|
-
WithAuthContext(
|
|
58855
|
-
(err, response) =>
|
|
58286
|
+
WithAuthContext(auth || config.auth),
|
|
58287
|
+
(err, response) => {
|
|
58288
|
+
if (err) reject(err);
|
|
58289
|
+
else resolve(response);
|
|
58290
|
+
}
|
|
58856
58291
|
);
|
|
58857
58292
|
});
|
|
58858
58293
|
}
|
|
58859
|
-
function GetAssistantAnalysis(
|
|
58860
|
-
const req = new import_assistant_analysis_pb.GetAssistantAnalysisRequest();
|
|
58861
|
-
req.setAssistantid(assistantId);
|
|
58862
|
-
req.setId(AnalysisId);
|
|
58294
|
+
function GetAssistantAnalysis(config, req, auth) {
|
|
58863
58295
|
return new Promise((resolve, reject) => {
|
|
58864
|
-
|
|
58296
|
+
config.assistantClient.getAssistantAnalysis(
|
|
58865
58297
|
req,
|
|
58866
|
-
WithAuthContext(
|
|
58867
|
-
(err, response) =>
|
|
58298
|
+
WithAuthContext(auth || config.auth),
|
|
58299
|
+
(err, response) => {
|
|
58300
|
+
if (err) reject(err);
|
|
58301
|
+
else resolve(response);
|
|
58302
|
+
}
|
|
58868
58303
|
);
|
|
58869
58304
|
});
|
|
58870
58305
|
}
|
|
58871
|
-
function DeleteAssistantAnalysis(
|
|
58872
|
-
const req = new import_assistant_analysis_pb.DeleteAssistantAnalysisRequest();
|
|
58873
|
-
req.setAssistantid(assistantId);
|
|
58874
|
-
req.setId(AnalysisId);
|
|
58306
|
+
function DeleteAssistantAnalysis(config, req, auth) {
|
|
58875
58307
|
return new Promise((resolve, reject) => {
|
|
58876
|
-
|
|
58308
|
+
config.assistantClient.deleteAssistantAnalysis(
|
|
58877
58309
|
req,
|
|
58878
|
-
WithAuthContext(
|
|
58879
|
-
(err, response) =>
|
|
58310
|
+
WithAuthContext(auth || config.auth),
|
|
58311
|
+
(err, response) => {
|
|
58312
|
+
if (err) reject(err);
|
|
58313
|
+
else resolve(response);
|
|
58314
|
+
}
|
|
58880
58315
|
);
|
|
58881
58316
|
});
|
|
58882
58317
|
}
|
|
58883
|
-
function GetAllWebhookLog(
|
|
58884
|
-
const req = new import_assistant_webhook_pb.GetAllAssistantWebhookLogRequest();
|
|
58885
|
-
req.setProjectid(projectId);
|
|
58886
|
-
const paginate = new import_common_pb5.Paginate();
|
|
58887
|
-
criteria.forEach(({ key, value, logic }) => {
|
|
58888
|
-
const ctr = new import_common_pb5.Criteria();
|
|
58889
|
-
ctr.setKey(key);
|
|
58890
|
-
ctr.setValue(value);
|
|
58891
|
-
ctr.setLogic(logic);
|
|
58892
|
-
req.addCriterias(ctr);
|
|
58893
|
-
});
|
|
58894
|
-
paginate.setPage(page);
|
|
58895
|
-
paginate.setPagesize(pageSize);
|
|
58896
|
-
req.setPaginate(paginate);
|
|
58318
|
+
function GetAllWebhookLog(config, req, auth) {
|
|
58897
58319
|
return new Promise((resolve, reject) => {
|
|
58898
|
-
|
|
58320
|
+
config.assistantClient.getAllAssistantWebhookLog(
|
|
58899
58321
|
req,
|
|
58900
|
-
WithAuthContext(
|
|
58901
|
-
(err, response) =>
|
|
58322
|
+
WithAuthContext(auth || config.auth),
|
|
58323
|
+
(err, response) => {
|
|
58324
|
+
if (err) reject(err);
|
|
58325
|
+
else resolve(response);
|
|
58326
|
+
}
|
|
58902
58327
|
);
|
|
58903
58328
|
});
|
|
58904
58329
|
}
|
|
58905
|
-
function GetWebhookLog(
|
|
58906
|
-
const req = new import_assistant_webhook_pb.GetAssistantWebhookLogRequest();
|
|
58907
|
-
req.setProjectid(projectId);
|
|
58908
|
-
req.setId(webhookLogId);
|
|
58330
|
+
function GetWebhookLog(config, req, auth) {
|
|
58909
58331
|
return new Promise((resolve, reject) => {
|
|
58910
|
-
|
|
58332
|
+
config.assistantClient.getAssistantWebhookLog(
|
|
58911
58333
|
req,
|
|
58912
|
-
WithAuthContext(
|
|
58913
|
-
(err, response) =>
|
|
58334
|
+
WithAuthContext(auth || config.auth),
|
|
58335
|
+
(err, response) => {
|
|
58336
|
+
if (err) reject(err);
|
|
58337
|
+
else resolve(response);
|
|
58338
|
+
}
|
|
58914
58339
|
);
|
|
58915
58340
|
});
|
|
58916
58341
|
}
|
|
58917
|
-
function GetAllAssistantTool(
|
|
58918
|
-
const req = new import_assistant_tool_pb.GetAllAssistantToolRequest();
|
|
58919
|
-
req.setAssistantid(assistantId);
|
|
58920
|
-
const paginate = new import_common_pb5.Paginate();
|
|
58921
|
-
criteria.forEach(({ key, value }) => {
|
|
58922
|
-
const ctr = new import_common_pb5.Criteria();
|
|
58923
|
-
ctr.setKey(key);
|
|
58924
|
-
ctr.setValue(value);
|
|
58925
|
-
req.addCriterias(ctr);
|
|
58926
|
-
});
|
|
58927
|
-
paginate.setPage(page);
|
|
58928
|
-
paginate.setPagesize(pageSize);
|
|
58929
|
-
req.setPaginate(paginate);
|
|
58342
|
+
function GetAllAssistantTool(config, req, auth) {
|
|
58930
58343
|
return new Promise((resolve, reject) => {
|
|
58931
|
-
|
|
58344
|
+
config.assistantClient.getAllAssistantTool(
|
|
58932
58345
|
req,
|
|
58933
|
-
WithAuthContext(
|
|
58934
|
-
(err, response) =>
|
|
58346
|
+
WithAuthContext(auth || config.auth),
|
|
58347
|
+
(err, response) => {
|
|
58348
|
+
if (err) reject(err);
|
|
58349
|
+
else resolve(response);
|
|
58350
|
+
}
|
|
58935
58351
|
);
|
|
58936
58352
|
});
|
|
58937
58353
|
}
|
|
58938
|
-
function CreateAssistantTool(
|
|
58939
|
-
const req = new import_assistant_tool_pb.CreateAssistantToolRequest();
|
|
58940
|
-
req.setAssistantid(assistantId);
|
|
58941
|
-
req.setName(name);
|
|
58942
|
-
req.setDescription(description);
|
|
58943
|
-
req.setFields(import_struct_pb3.Struct.fromJavaScript(fields));
|
|
58944
|
-
req.setExecutionmethod(executionMethod);
|
|
58945
|
-
executionOptions.forEach((x) => req.addExecutionoptions(x));
|
|
58354
|
+
function CreateAssistantTool(config, req, auth) {
|
|
58946
58355
|
return new Promise((resolve, reject) => {
|
|
58947
|
-
|
|
58356
|
+
config.assistantClient.createAssistantTool(
|
|
58948
58357
|
req,
|
|
58949
|
-
WithAuthContext(
|
|
58950
|
-
(err, response) =>
|
|
58358
|
+
WithAuthContext(auth || config.auth),
|
|
58359
|
+
(err, response) => {
|
|
58360
|
+
if (err) reject(err);
|
|
58361
|
+
else resolve(response);
|
|
58362
|
+
}
|
|
58951
58363
|
);
|
|
58952
58364
|
});
|
|
58953
58365
|
}
|
|
58954
|
-
function UpdateAssistantTool(
|
|
58955
|
-
const req = new import_assistant_tool_pb.UpdateAssistantToolRequest();
|
|
58956
|
-
req.setId(assistantToolId);
|
|
58957
|
-
req.setAssistantid(assistantId);
|
|
58958
|
-
req.setName(name);
|
|
58959
|
-
req.setDescription(description);
|
|
58960
|
-
req.setFields(import_struct_pb3.Struct.fromJavaScript(fields));
|
|
58961
|
-
req.setExecutionmethod(executionMethod);
|
|
58962
|
-
executionOptions.forEach((x) => req.addExecutionoptions(x));
|
|
58366
|
+
function UpdateAssistantTool(config, req, auth) {
|
|
58963
58367
|
return new Promise((resolve, reject) => {
|
|
58964
|
-
|
|
58368
|
+
config.assistantClient.updateAssistantTool(
|
|
58965
58369
|
req,
|
|
58966
|
-
WithAuthContext(
|
|
58967
|
-
(err, response) =>
|
|
58370
|
+
WithAuthContext(auth || config.auth),
|
|
58371
|
+
(err, response) => {
|
|
58372
|
+
if (err) reject(err);
|
|
58373
|
+
else resolve(response);
|
|
58374
|
+
}
|
|
58968
58375
|
);
|
|
58969
58376
|
});
|
|
58970
58377
|
}
|
|
58971
|
-
function GetAssistantTool(
|
|
58972
|
-
const req = new import_assistant_tool_pb.GetAssistantToolRequest();
|
|
58973
|
-
req.setAssistantid(assistantId);
|
|
58974
|
-
req.setId(ToolId);
|
|
58378
|
+
function GetAssistantTool(config, req, auth) {
|
|
58975
58379
|
return new Promise((resolve, reject) => {
|
|
58976
|
-
|
|
58380
|
+
config.assistantClient.getAssistantTool(
|
|
58977
58381
|
req,
|
|
58978
|
-
WithAuthContext(
|
|
58979
|
-
(err, response) =>
|
|
58382
|
+
WithAuthContext(auth || config.auth),
|
|
58383
|
+
(err, response) => {
|
|
58384
|
+
if (err) reject(err);
|
|
58385
|
+
else resolve(response);
|
|
58386
|
+
}
|
|
58980
58387
|
);
|
|
58981
58388
|
});
|
|
58982
58389
|
}
|
|
58983
|
-
function DeleteAssistantTool(
|
|
58984
|
-
const req = new import_assistant_tool_pb.DeleteAssistantToolRequest();
|
|
58985
|
-
req.setAssistantid(assistantId);
|
|
58986
|
-
req.setId(ToolId);
|
|
58390
|
+
function DeleteAssistantTool(config, req, auth) {
|
|
58987
58391
|
return new Promise((resolve, reject) => {
|
|
58988
|
-
|
|
58392
|
+
config.assistantClient.deleteAssistantTool(
|
|
58989
58393
|
req,
|
|
58990
|
-
WithAuthContext(
|
|
58991
|
-
(err, response) =>
|
|
58394
|
+
WithAuthContext(auth || config.auth),
|
|
58395
|
+
(err, response) => {
|
|
58396
|
+
if (err) reject(err);
|
|
58397
|
+
else resolve(response);
|
|
58398
|
+
}
|
|
58992
58399
|
);
|
|
58993
58400
|
});
|
|
58994
58401
|
}
|
|
58995
|
-
function GetAllAssistantKnowledge(
|
|
58996
|
-
const req = new import_assistant_knowledge_pb.GetAllAssistantKnowledgeRequest();
|
|
58997
|
-
req.setAssistantid(assistantId);
|
|
58998
|
-
const paginate = new import_common_pb5.Paginate();
|
|
58999
|
-
criteria.forEach(({ key, value }) => {
|
|
59000
|
-
const ctr = new import_common_pb5.Criteria();
|
|
59001
|
-
ctr.setKey(key);
|
|
59002
|
-
ctr.setValue(value);
|
|
59003
|
-
req.addCriterias(ctr);
|
|
59004
|
-
});
|
|
59005
|
-
paginate.setPage(page);
|
|
59006
|
-
paginate.setPagesize(pageSize);
|
|
59007
|
-
req.setPaginate(paginate);
|
|
58402
|
+
function GetAllAssistantKnowledge(config, req, auth) {
|
|
59008
58403
|
return new Promise((resolve, reject) => {
|
|
59009
|
-
|
|
58404
|
+
config.assistantClient.getAllAssistantKnowledge(
|
|
59010
58405
|
req,
|
|
59011
|
-
WithAuthContext(
|
|
59012
|
-
(err, response) =>
|
|
58406
|
+
WithAuthContext(auth || config.auth),
|
|
58407
|
+
(err, response) => {
|
|
58408
|
+
if (err) reject(err);
|
|
58409
|
+
else resolve(response);
|
|
58410
|
+
}
|
|
59013
58411
|
);
|
|
59014
58412
|
});
|
|
59015
58413
|
}
|
|
59016
|
-
function CreateAssistantKnowledge(
|
|
59017
|
-
const req = new import_assistant_knowledge_pb.CreateAssistantKnowledgeRequest();
|
|
59018
|
-
req.setKnowledgeid(knowledgeId);
|
|
59019
|
-
req.setAssistantid(assistantId);
|
|
59020
|
-
if (config.rerankingEnable) {
|
|
59021
|
-
req.setRerankerenable(config.rerankingEnable);
|
|
59022
|
-
req.setRerankermodelproviderid(config.rerankerModelProviderId);
|
|
59023
|
-
req.setRerankermodelprovidername(config.rerankerModelProvider);
|
|
59024
|
-
req.setAssistantknowledgererankeroptionsList(config.rerankerModelOptions);
|
|
59025
|
-
}
|
|
59026
|
-
req.setTopk(config.topK);
|
|
59027
|
-
req.setScorethreshold(config.scoreThreshold);
|
|
59028
|
-
req.setRetrievalmethod(config.searchMethod);
|
|
58414
|
+
function CreateAssistantKnowledge(config, req, auth) {
|
|
59029
58415
|
return new Promise((resolve, reject) => {
|
|
59030
|
-
|
|
58416
|
+
config.assistantClient.createAssistantKnowledge(
|
|
59031
58417
|
req,
|
|
59032
|
-
WithAuthContext(
|
|
59033
|
-
(err, response) =>
|
|
58418
|
+
WithAuthContext(auth || config.auth),
|
|
58419
|
+
(err, response) => {
|
|
58420
|
+
if (err) reject(err);
|
|
58421
|
+
else resolve(response);
|
|
58422
|
+
}
|
|
59034
58423
|
);
|
|
59035
58424
|
});
|
|
59036
58425
|
}
|
|
59037
|
-
function UpdateAssistantKnowledge(
|
|
59038
|
-
const req = new import_assistant_knowledge_pb.UpdateAssistantKnowledgeRequest();
|
|
59039
|
-
req.setKnowledgeid(knowledgeId);
|
|
59040
|
-
req.setAssistantid(assistantId);
|
|
59041
|
-
req.setId(id);
|
|
59042
|
-
if (config.rerankingEnable) {
|
|
59043
|
-
req.setRerankerenable(config.rerankingEnable);
|
|
59044
|
-
req.setRerankermodelproviderid(config.rerankerModelProviderId);
|
|
59045
|
-
req.setRerankermodelprovidername(config.rerankerModelProvider);
|
|
59046
|
-
req.setAssistantknowledgererankeroptionsList(config.rerankerModelOptions);
|
|
59047
|
-
}
|
|
59048
|
-
req.setTopk(config.topK);
|
|
59049
|
-
req.setScorethreshold(config.scoreThreshold);
|
|
59050
|
-
req.setRetrievalmethod(config.searchMethod);
|
|
58426
|
+
function UpdateAssistantKnowledge(config, req, auth) {
|
|
59051
58427
|
return new Promise((resolve, reject) => {
|
|
59052
|
-
|
|
58428
|
+
config.assistantClient.updateAssistantKnowledge(
|
|
59053
58429
|
req,
|
|
59054
|
-
WithAuthContext(
|
|
59055
|
-
(err, response) =>
|
|
58430
|
+
WithAuthContext(auth || config.auth),
|
|
58431
|
+
(err, response) => {
|
|
58432
|
+
if (err) reject(err);
|
|
58433
|
+
else resolve(response);
|
|
58434
|
+
}
|
|
59056
58435
|
);
|
|
59057
58436
|
});
|
|
59058
58437
|
}
|
|
59059
|
-
function GetAssistantKnowledge(
|
|
59060
|
-
const req = new import_assistant_knowledge_pb.GetAssistantKnowledgeRequest();
|
|
59061
|
-
req.setAssistantid(assistantId);
|
|
59062
|
-
req.setId(ToolId);
|
|
58438
|
+
function GetAssistantKnowledge(config, req, auth) {
|
|
59063
58439
|
return new Promise((resolve, reject) => {
|
|
59064
|
-
|
|
58440
|
+
config.assistantClient.getAssistantKnowledge(
|
|
59065
58441
|
req,
|
|
59066
|
-
WithAuthContext(
|
|
59067
|
-
(err, response) =>
|
|
58442
|
+
WithAuthContext(auth || config.auth),
|
|
58443
|
+
(err, response) => {
|
|
58444
|
+
if (err) reject(err);
|
|
58445
|
+
else resolve(response);
|
|
58446
|
+
}
|
|
59068
58447
|
);
|
|
59069
58448
|
});
|
|
59070
58449
|
}
|
|
59071
|
-
function DeleteAssistantKnowledge(
|
|
59072
|
-
const req = new import_assistant_knowledge_pb.DeleteAssistantKnowledgeRequest();
|
|
59073
|
-
req.setAssistantid(assistantId);
|
|
59074
|
-
req.setId(knowledgeId);
|
|
58450
|
+
function DeleteAssistantKnowledge(config, req, auth) {
|
|
59075
58451
|
return new Promise((resolve, reject) => {
|
|
59076
|
-
|
|
58452
|
+
config.assistantClient.deleteAssistantKnowledge(
|
|
59077
58453
|
req,
|
|
59078
|
-
WithAuthContext(
|
|
59079
|
-
(err, response) =>
|
|
58454
|
+
WithAuthContext(auth || config.auth),
|
|
58455
|
+
(err, response) => {
|
|
58456
|
+
if (err) reject(err);
|
|
58457
|
+
else resolve(response);
|
|
58458
|
+
}
|
|
59080
58459
|
);
|
|
59081
58460
|
});
|
|
59082
58461
|
}
|
|
@@ -59204,15 +58583,15 @@ function GetAssistantWhatsappDeployment(clientCfg, req, auth) {
|
|
|
59204
58583
|
}
|
|
59205
58584
|
|
|
59206
58585
|
// src/clients/activity.ts
|
|
59207
|
-
var
|
|
58586
|
+
var import_common_pb5 = __toESM(require_common_pb());
|
|
59208
58587
|
var import_audit_logging_api_pb = __toESM(require_audit_logging_api_pb());
|
|
59209
58588
|
function GetActivities(connectionConfig, projectId, page, pageSize, criteria) {
|
|
59210
58589
|
return new Promise((resolve, reject) => {
|
|
59211
58590
|
const req = new import_audit_logging_api_pb.GetAllAuditLogRequest();
|
|
59212
58591
|
req.setProjectid(projectId);
|
|
59213
|
-
const paginate = new
|
|
58592
|
+
const paginate = new import_common_pb5.Paginate();
|
|
59214
58593
|
criteria.forEach(({ key, value, logic }) => {
|
|
59215
|
-
const ctr = new
|
|
58594
|
+
const ctr = new import_common_pb5.Criteria();
|
|
59216
58595
|
ctr.setKey(key);
|
|
59217
58596
|
ctr.setValue(value);
|
|
59218
58597
|
ctr.setLogic(logic);
|
|
@@ -59248,25 +58627,11 @@ function GetActivity(connectionConfig, projectId, auditId) {
|
|
|
59248
58627
|
}
|
|
59249
58628
|
|
|
59250
58629
|
// src/clients/endpoint.ts
|
|
59251
|
-
|
|
59252
|
-
var import_endpoint_api_pb = __toESM(require_endpoint_api_pb());
|
|
59253
|
-
function GetAllEndpoint(config, page, pageSize, criteria) {
|
|
58630
|
+
function GetAllEndpoint(config, req, auth) {
|
|
59254
58631
|
return new Promise((resolve, reject) => {
|
|
59255
|
-
const req = new import_endpoint_api_pb.GetAllEndpointRequest();
|
|
59256
|
-
const paginate = new import_common_pb8.Paginate();
|
|
59257
|
-
criteria.forEach(({ key, value, logic }) => {
|
|
59258
|
-
const ctr = new import_common_pb8.Criteria();
|
|
59259
|
-
ctr.setKey(key);
|
|
59260
|
-
ctr.setValue(value);
|
|
59261
|
-
ctr.setLogic(logic);
|
|
59262
|
-
req.addCriterias(ctr);
|
|
59263
|
-
});
|
|
59264
|
-
paginate.setPage(page);
|
|
59265
|
-
paginate.setPagesize(pageSize);
|
|
59266
|
-
req.setPaginate(paginate);
|
|
59267
58632
|
config.endpointClient.getAllEndpoint(
|
|
59268
58633
|
req,
|
|
59269
|
-
WithAuthContext(config.auth),
|
|
58634
|
+
WithAuthContext(auth || config.auth),
|
|
59270
58635
|
(err, response) => {
|
|
59271
58636
|
if (err) reject(err);
|
|
59272
58637
|
else resolve(response);
|
|
@@ -59274,14 +58639,11 @@ function GetAllEndpoint(config, page, pageSize, criteria) {
|
|
|
59274
58639
|
);
|
|
59275
58640
|
});
|
|
59276
58641
|
}
|
|
59277
|
-
function UpdateEndpointVersion(config,
|
|
58642
|
+
function UpdateEndpointVersion(config, req, auth) {
|
|
59278
58643
|
return new Promise((resolve, reject) => {
|
|
59279
|
-
const req = new import_endpoint_api_pb.UpdateEndpointVersionRequest();
|
|
59280
|
-
req.setEndpointid(endpointId);
|
|
59281
|
-
req.setEndpointprovidermodelid(endpointProviderModelId);
|
|
59282
58644
|
config.endpointClient.updateEndpointVersion(
|
|
59283
58645
|
req,
|
|
59284
|
-
WithAuthContext(config.auth),
|
|
58646
|
+
WithAuthContext(auth || config.auth),
|
|
59285
58647
|
(err, response) => {
|
|
59286
58648
|
if (err) reject(err);
|
|
59287
58649
|
else resolve(response);
|
|
@@ -59289,23 +58651,11 @@ function UpdateEndpointVersion(config, endpointId, endpointProviderModelId) {
|
|
|
59289
58651
|
);
|
|
59290
58652
|
});
|
|
59291
58653
|
}
|
|
59292
|
-
function GetAllEndpointProviderModel(config,
|
|
58654
|
+
function GetAllEndpointProviderModel(config, req, auth) {
|
|
59293
58655
|
return new Promise((resolve, reject) => {
|
|
59294
|
-
const req = new import_endpoint_api_pb.GetAllEndpointProviderModelRequest();
|
|
59295
|
-
req.setEndpointid(endpointId);
|
|
59296
|
-
const paginate = new import_common_pb8.Paginate();
|
|
59297
|
-
criteria.forEach(({ key, value }) => {
|
|
59298
|
-
const ctr = new import_common_pb8.Criteria();
|
|
59299
|
-
ctr.setKey(key);
|
|
59300
|
-
ctr.setValue(value);
|
|
59301
|
-
req.addCriterias(ctr);
|
|
59302
|
-
});
|
|
59303
|
-
paginate.setPage(page);
|
|
59304
|
-
paginate.setPagesize(pageSize);
|
|
59305
|
-
req.setPaginate(paginate);
|
|
59306
58656
|
config.endpointClient.getAllEndpointProviderModel(
|
|
59307
58657
|
req,
|
|
59308
|
-
WithAuthContext(config.auth),
|
|
58658
|
+
WithAuthContext(auth || config.auth),
|
|
59309
58659
|
(err, response) => {
|
|
59310
58660
|
if (err) reject(err);
|
|
59311
58661
|
else resolve(response);
|
|
@@ -59313,31 +58663,11 @@ function GetAllEndpointProviderModel(config, endpointId, page, pageSize, criteri
|
|
|
59313
58663
|
);
|
|
59314
58664
|
});
|
|
59315
58665
|
}
|
|
59316
|
-
function GetEndpoint(config,
|
|
58666
|
+
function GetEndpoint(config, req, auth) {
|
|
59317
58667
|
return new Promise((resolve, reject) => {
|
|
59318
|
-
const req = new import_endpoint_api_pb.GetEndpointRequest();
|
|
59319
|
-
req.setId(endpointId);
|
|
59320
|
-
if (endpointProviderModelId) {
|
|
59321
|
-
req.setEndpointprovidermodelid(endpointProviderModelId);
|
|
59322
|
-
}
|
|
59323
58668
|
config.endpointClient.getEndpoint(
|
|
59324
58669
|
req,
|
|
59325
|
-
WithAuthContext(config.auth),
|
|
59326
|
-
(err, response) => {
|
|
59327
|
-
if (err) reject(err);
|
|
59328
|
-
else resolve(response);
|
|
59329
|
-
}
|
|
59330
|
-
);
|
|
59331
|
-
});
|
|
59332
|
-
}
|
|
59333
|
-
function CreateEndpointProviderModel(config, endpointId, endpointProviderModel) {
|
|
59334
|
-
return new Promise((resolve, reject) => {
|
|
59335
|
-
const req = new import_endpoint_api_pb.CreateEndpointProviderModelRequest();
|
|
59336
|
-
req.setEndpointid(endpointId);
|
|
59337
|
-
req.setEndpointprovidermodelattribute(endpointProviderModel);
|
|
59338
|
-
config.endpointClient.createEndpointProviderModel(
|
|
59339
|
-
req,
|
|
59340
|
-
WithAuthContext(config.auth),
|
|
58670
|
+
WithAuthContext(auth || config.auth),
|
|
59341
58671
|
(err, response) => {
|
|
59342
58672
|
if (err) reject(err);
|
|
59343
58673
|
else resolve(response);
|
|
@@ -59345,113 +58675,11 @@ function CreateEndpointProviderModel(config, endpointId, endpointProviderModel)
|
|
|
59345
58675
|
);
|
|
59346
58676
|
});
|
|
59347
58677
|
}
|
|
59348
|
-
function
|
|
58678
|
+
function CreateEndpointRetryConfiguration(config, req, auth) {
|
|
59349
58679
|
return new Promise((resolve, reject) => {
|
|
59350
|
-
const req = new import_endpoint_api_pb.CreateEndpointRequest();
|
|
59351
|
-
req.setEndpointattribute(endpointAttributes);
|
|
59352
|
-
req.setEndpointprovidermodelattribute(endpointProviderModel);
|
|
59353
|
-
if (cacheConfig) req.setCacheconfiguration(cacheConfig);
|
|
59354
|
-
if (retryConfig) req.setRetryconfiguration(retryConfig);
|
|
59355
|
-
req.setTagsList(tags);
|
|
59356
|
-
config.endpointClient.createEndpoint(
|
|
59357
|
-
req,
|
|
59358
|
-
WithAuthContext(config.auth),
|
|
59359
|
-
(err, response) => {
|
|
59360
|
-
if (err) reject(err);
|
|
59361
|
-
else resolve(response);
|
|
59362
|
-
}
|
|
59363
|
-
);
|
|
59364
|
-
});
|
|
59365
|
-
}
|
|
59366
|
-
function CreateEndpointTag(config, endpointId, tags) {
|
|
59367
|
-
return new Promise((resolve, reject) => {
|
|
59368
|
-
const req = new import_endpoint_api_pb.CreateEndpointTagRequest();
|
|
59369
|
-
req.setTagsList(tags);
|
|
59370
|
-
req.setEndpointid(endpointId);
|
|
59371
|
-
config.endpointClient.createEndpointTag(
|
|
59372
|
-
req,
|
|
59373
|
-
WithAuthContext(config.auth),
|
|
59374
|
-
(err, response) => {
|
|
59375
|
-
if (err) reject(err);
|
|
59376
|
-
else resolve(response);
|
|
59377
|
-
}
|
|
59378
|
-
);
|
|
59379
|
-
});
|
|
59380
|
-
}
|
|
59381
|
-
function UpdateEndpointDetail(config, endpointId, name, description) {
|
|
59382
|
-
return new Promise((resolve, reject) => {
|
|
59383
|
-
const req = new import_endpoint_api_pb.UpdateEndpointDetailRequest();
|
|
59384
|
-
req.setName(name);
|
|
59385
|
-
req.setDescription(description);
|
|
59386
|
-
req.setEndpointid(endpointId);
|
|
59387
|
-
config.endpointClient.updateEndpointDetail(
|
|
59388
|
-
req,
|
|
59389
|
-
WithAuthContext(config.auth),
|
|
59390
|
-
(err, response) => {
|
|
59391
|
-
if (err) reject(err);
|
|
59392
|
-
else resolve(response);
|
|
59393
|
-
}
|
|
59394
|
-
);
|
|
59395
|
-
});
|
|
59396
|
-
}
|
|
59397
|
-
function CreateEndpointRetryConfiguration(config, endpointId, retryType, maxAttempts, delaySeconds, exponentialBackoff, retryables) {
|
|
59398
|
-
return new Promise((resolve, reject) => {
|
|
59399
|
-
const request = new import_endpoint_api_pb.CreateEndpointRetryConfigurationRequest();
|
|
59400
|
-
const data = new import_endpoint_api_pb.EndpointRetryConfiguration();
|
|
59401
|
-
data.setRetryablesList(retryables);
|
|
59402
|
-
data.setExponentialbackoff(exponentialBackoff);
|
|
59403
|
-
data.setDelayseconds(delaySeconds);
|
|
59404
|
-
data.setMaxattempts(maxAttempts);
|
|
59405
|
-
data.setRetrytype(retryType);
|
|
59406
|
-
request.setEndpointid(endpointId);
|
|
59407
|
-
request.setData(data);
|
|
59408
58680
|
config.endpointClient.createEndpointRetryConfiguration(
|
|
59409
|
-
request,
|
|
59410
|
-
WithAuthContext(config.auth),
|
|
59411
|
-
(err, response) => {
|
|
59412
|
-
if (err) reject(err);
|
|
59413
|
-
else resolve(response);
|
|
59414
|
-
}
|
|
59415
|
-
);
|
|
59416
|
-
});
|
|
59417
|
-
}
|
|
59418
|
-
function CreateEndpointCacheConfiguration(config, endpointId, cacheType, expiryInterval, matchThreshold) {
|
|
59419
|
-
return new Promise((resolve, reject) => {
|
|
59420
|
-
const request = new import_endpoint_api_pb.CreateEndpointCacheConfigurationRequest();
|
|
59421
|
-
const data = new import_endpoint_api_pb.EndpointCacheConfiguration();
|
|
59422
|
-
data.setMatchthreshold(matchThreshold);
|
|
59423
|
-
data.setExpiryinterval(expiryInterval);
|
|
59424
|
-
data.setCachetype(cacheType);
|
|
59425
|
-
request.setEndpointid(endpointId);
|
|
59426
|
-
request.setData(data);
|
|
59427
|
-
config.endpointClient.createEndpointCacheConfiguration(
|
|
59428
|
-
request,
|
|
59429
|
-
WithAuthContext(config.auth),
|
|
59430
|
-
(err, response) => {
|
|
59431
|
-
if (err) reject(err);
|
|
59432
|
-
else resolve(response);
|
|
59433
|
-
}
|
|
59434
|
-
);
|
|
59435
|
-
});
|
|
59436
|
-
}
|
|
59437
|
-
function GetAllEndpointLog(config, endpointId, page, pageSize, criteria) {
|
|
59438
|
-
return new Promise((resolve, reject) => {
|
|
59439
|
-
const req = new import_endpoint_api_pb.GetAllEndpointLogRequest();
|
|
59440
|
-
req.setEndpointid(endpointId);
|
|
59441
|
-
const paginate = new import_common_pb8.Paginate();
|
|
59442
|
-
criteria.forEach(({ key, value, logic }) => {
|
|
59443
|
-
const ctr = new import_common_pb8.Criteria();
|
|
59444
|
-
ctr.setKey(key);
|
|
59445
|
-
ctr.setValue(value);
|
|
59446
|
-
ctr.setLogic(logic);
|
|
59447
|
-
req.addCriterias(ctr);
|
|
59448
|
-
});
|
|
59449
|
-
paginate.setPage(page);
|
|
59450
|
-
paginate.setPagesize(pageSize);
|
|
59451
|
-
req.setPaginate(paginate);
|
|
59452
|
-
config.endpointClient.getAllEndpointLog(
|
|
59453
58681
|
req,
|
|
59454
|
-
WithAuthContext(config.auth),
|
|
58682
|
+
WithAuthContext(auth || config.auth),
|
|
59455
58683
|
(err, response) => {
|
|
59456
58684
|
if (err) reject(err);
|
|
59457
58685
|
else resolve(response);
|
|
@@ -59459,14 +58687,11 @@ function GetAllEndpointLog(config, endpointId, page, pageSize, criteria) {
|
|
|
59459
58687
|
);
|
|
59460
58688
|
});
|
|
59461
58689
|
}
|
|
59462
|
-
function GetEndpointLog(config,
|
|
58690
|
+
function GetEndpointLog(config, req, auth) {
|
|
59463
58691
|
return new Promise((resolve, reject) => {
|
|
59464
|
-
const req = new import_endpoint_api_pb.GetEndpointLogRequest();
|
|
59465
|
-
req.setEndpointid(endpointId);
|
|
59466
|
-
req.setId(logId);
|
|
59467
58692
|
config.endpointClient.getEndpointLog(
|
|
59468
58693
|
req,
|
|
59469
|
-
WithAuthContext(config.auth),
|
|
58694
|
+
WithAuthContext(auth || config.auth),
|
|
59470
58695
|
(err, response) => {
|
|
59471
58696
|
if (err) reject(err);
|
|
59472
58697
|
else resolve(response);
|
|
@@ -59477,14 +58702,14 @@ function GetEndpointLog(config, endpointId, logId) {
|
|
|
59477
58702
|
|
|
59478
58703
|
// src/clients/vault.ts
|
|
59479
58704
|
var import_vault_api_pb = __toESM(require_vault_api_pb());
|
|
59480
|
-
var
|
|
59481
|
-
var
|
|
58705
|
+
var import_common_pb6 = __toESM(require_common_pb());
|
|
58706
|
+
var import_struct_pb3 = require("google-protobuf/google/protobuf/struct_pb");
|
|
59482
58707
|
function CreateProviderKey(connectionConfig, providerId, providerName, credential, name, authHeader) {
|
|
59483
58708
|
return new Promise((resolve, reject) => {
|
|
59484
58709
|
const requestObject = new import_vault_api_pb.CreateProviderCredentialRequest();
|
|
59485
58710
|
requestObject.setProviderid(providerId);
|
|
59486
58711
|
requestObject.setProvidername(providerName);
|
|
59487
|
-
requestObject.setCredential(
|
|
58712
|
+
requestObject.setCredential(import_struct_pb3.Struct.fromJavaScript(credential));
|
|
59488
58713
|
requestObject.setName(name);
|
|
59489
58714
|
connectionConfig.vaultClient.createProviderCredential(
|
|
59490
58715
|
requestObject,
|
|
@@ -59513,9 +58738,9 @@ function DeleteProviderKey(connectionConfig, providerKeyId, authHeader) {
|
|
|
59513
58738
|
function AllOrganizationCredential(connectionConfig, page, pageSize, criteria, authHeader) {
|
|
59514
58739
|
return new Promise((resolve, reject) => {
|
|
59515
58740
|
const req = new import_vault_api_pb.GetAllOrganizationCredentialRequest();
|
|
59516
|
-
const paginate = new
|
|
58741
|
+
const paginate = new import_common_pb6.Paginate();
|
|
59517
58742
|
criteria.forEach((x) => {
|
|
59518
|
-
let ctr = new
|
|
58743
|
+
let ctr = new import_common_pb6.Criteria();
|
|
59519
58744
|
ctr.setKey(x.key);
|
|
59520
58745
|
ctr.setValue(x.value);
|
|
59521
58746
|
req.addCriterias(ctr);
|
|
@@ -59538,7 +58763,7 @@ function CreateToolCredential(connectionConfig, toolId, toolName, credential, na
|
|
|
59538
58763
|
const requestObject = new import_vault_api_pb.CreateToolCredentialRequest();
|
|
59539
58764
|
requestObject.setToolid(toolId);
|
|
59540
58765
|
requestObject.setToolname(toolName);
|
|
59541
|
-
requestObject.setCredential(
|
|
58766
|
+
requestObject.setCredential(import_struct_pb3.Struct.fromJavaScript(credential));
|
|
59542
58767
|
requestObject.setName(name);
|
|
59543
58768
|
connectionConfig.vaultClient.createToolCredential(
|
|
59544
58769
|
requestObject,
|
|
@@ -59552,8 +58777,8 @@ function CreateToolCredential(connectionConfig, toolId, toolName, credential, na
|
|
|
59552
58777
|
}
|
|
59553
58778
|
|
|
59554
58779
|
// src/clients/talk.ts
|
|
59555
|
-
var
|
|
59556
|
-
var
|
|
58780
|
+
var import_common_pb7 = __toESM(require_common_pb());
|
|
58781
|
+
var import_common_pb8 = __toESM(require_common_pb());
|
|
59557
58782
|
var import_talk_api_pb = __toESM(require_talk_api_pb());
|
|
59558
58783
|
var import_talk_api_pb2 = __toESM(require_talk_api_pb());
|
|
59559
58784
|
function AssistantTalk(conversationStreamClient, authHeader) {
|
|
@@ -59566,7 +58791,7 @@ function CreateMessageMetric(connectionConfig, assistantId, assistantConversatio
|
|
|
59566
58791
|
req.setAssistantconversationid(assistantConversationId);
|
|
59567
58792
|
req.setMessageid(messageId);
|
|
59568
58793
|
for (var mtr of metrics) {
|
|
59569
|
-
const _m = new
|
|
58794
|
+
const _m = new import_common_pb7.Metric();
|
|
59570
58795
|
_m.setName(mtr.name);
|
|
59571
58796
|
_m.setValue(mtr.value);
|
|
59572
58797
|
_m.setDescription(mtr.description);
|
|
@@ -59588,7 +58813,7 @@ function CreateConversationMetric(connectionConfig, assistantId, assistantConver
|
|
|
59588
58813
|
req.setAssistantid(assistantId);
|
|
59589
58814
|
req.setAssistantconversationid(assistantConversationId);
|
|
59590
58815
|
for (var mtr of metrics) {
|
|
59591
|
-
const _m = new
|
|
58816
|
+
const _m = new import_common_pb7.Metric();
|
|
59592
58817
|
_m.setName(mtr.name);
|
|
59593
58818
|
_m.setValue(mtr.value);
|
|
59594
58819
|
_m.setDescription(mtr.description);
|
|
@@ -59604,33 +58829,9 @@ function CreateConversationMetric(connectionConfig, assistantId, assistantConver
|
|
|
59604
58829
|
);
|
|
59605
58830
|
});
|
|
59606
58831
|
}
|
|
59607
|
-
function GetAllAssistantConversation(connectionConfig, assistantId, page, pageSize, criteria) {
|
|
59608
|
-
return new Promise((resolve, reject) => {
|
|
59609
|
-
const req = new import_common_pb10.GetAllAssistantConversationRequest();
|
|
59610
|
-
req.setAssistantid(assistantId);
|
|
59611
|
-
const paginate = new import_common_pb11.Paginate();
|
|
59612
|
-
criteria.forEach((x) => {
|
|
59613
|
-
let ctr = new import_common_pb11.Criteria();
|
|
59614
|
-
ctr.setKey(x.key);
|
|
59615
|
-
ctr.setValue(x.value);
|
|
59616
|
-
req.addCriterias(ctr);
|
|
59617
|
-
});
|
|
59618
|
-
paginate.setPage(page);
|
|
59619
|
-
paginate.setPagesize(pageSize);
|
|
59620
|
-
req.setPaginate(paginate);
|
|
59621
|
-
connectionConfig.conversationClient.getAllAssistantConversation(
|
|
59622
|
-
req,
|
|
59623
|
-
WithAuthContext(connectionConfig.auth),
|
|
59624
|
-
(err, uvcr) => {
|
|
59625
|
-
if (err) reject(err);
|
|
59626
|
-
else resolve(uvcr);
|
|
59627
|
-
}
|
|
59628
|
-
);
|
|
59629
|
-
});
|
|
59630
|
-
}
|
|
59631
58832
|
|
|
59632
58833
|
// src/clients/knowledge.ts
|
|
59633
|
-
var
|
|
58834
|
+
var import_common_pb9 = __toESM(require_common_pb());
|
|
59634
58835
|
var import_knowledge_api_pb = __toESM(require_knowledge_api_pb());
|
|
59635
58836
|
var import_knowledge_api_pb2 = __toESM(require_knowledge_api_pb());
|
|
59636
58837
|
function CreateKnowledge(config, provider, name, description, tags) {
|
|
@@ -59669,9 +58870,9 @@ function GetKnowledgeBase(config, knowledgeBaseId) {
|
|
|
59669
58870
|
function GetAllKnowledgeBases(config, page, pageSize, criteria) {
|
|
59670
58871
|
return new Promise((resolve, reject) => {
|
|
59671
58872
|
const req = new import_knowledge_api_pb.GetAllKnowledgeRequest();
|
|
59672
|
-
const paginate = new
|
|
58873
|
+
const paginate = new import_common_pb9.Paginate();
|
|
59673
58874
|
criteria.forEach(({ key, value, logic }) => {
|
|
59674
|
-
const ctr = new
|
|
58875
|
+
const ctr = new import_common_pb9.Criteria();
|
|
59675
58876
|
ctr.setKey(key);
|
|
59676
58877
|
ctr.setValue(value);
|
|
59677
58878
|
ctr.setLogic(logic);
|
|
@@ -59723,9 +58924,9 @@ function GetAllKnowledgeDocument(config, knowledgeId, page, pageSize, criteria)
|
|
|
59723
58924
|
return new Promise((resolve, reject) => {
|
|
59724
58925
|
const req = new import_knowledge_api_pb.GetAllKnowledgeDocumentRequest();
|
|
59725
58926
|
req.setKnowledgeid(knowledgeId);
|
|
59726
|
-
const paginate = new
|
|
58927
|
+
const paginate = new import_common_pb9.Paginate();
|
|
59727
58928
|
criteria.forEach(({ key, value }) => {
|
|
59728
|
-
const ctr = new
|
|
58929
|
+
const ctr = new import_common_pb9.Criteria();
|
|
59729
58930
|
ctr.setKey(key);
|
|
59730
58931
|
ctr.setValue(value);
|
|
59731
58932
|
req.addCriterias(ctr);
|
|
@@ -59747,9 +58948,9 @@ function GetAllKnowledgeDocumentSegment(config, knowledgeId, page, pageSize, cri
|
|
|
59747
58948
|
return new Promise((resolve, reject) => {
|
|
59748
58949
|
const req = new import_knowledge_api_pb.GetAllKnowledgeDocumentSegmentRequest();
|
|
59749
58950
|
req.setKnowledgeid(knowledgeId);
|
|
59750
|
-
const paginate = new
|
|
58951
|
+
const paginate = new import_common_pb9.Paginate();
|
|
59751
58952
|
criteria.forEach(({ key, value }) => {
|
|
59752
|
-
const ctr = new
|
|
58953
|
+
const ctr = new import_common_pb9.Criteria();
|
|
59753
58954
|
ctr.setKey(key);
|
|
59754
58955
|
ctr.setValue(value);
|
|
59755
58956
|
req.addCriterias(ctr);
|
|
@@ -59842,7 +59043,7 @@ function UpdateKnowledgeDocumentSegment(config, documentId, index, organizations
|
|
|
59842
59043
|
|
|
59843
59044
|
// src/clients/project.ts
|
|
59844
59045
|
var import_web_api_pb3 = __toESM(require_web_api_pb());
|
|
59845
|
-
var
|
|
59046
|
+
var import_common_pb10 = __toESM(require_common_pb());
|
|
59846
59047
|
function AddUsersToProject(connectionConfig, email, role, projectIds, authHeader) {
|
|
59847
59048
|
return new Promise((resolve, reject) => {
|
|
59848
59049
|
const requestObject = new import_web_api_pb3.AddUsersToProjectRequest();
|
|
@@ -59894,9 +59095,9 @@ function UpdateProject(connectionConfig, projectId, authHeader, projectName, pro
|
|
|
59894
59095
|
function GetAllProject(connectionConfig, page, pageSize, criteria, authHeader) {
|
|
59895
59096
|
return new Promise((resolve, reject) => {
|
|
59896
59097
|
const req = new import_web_api_pb3.GetAllProjectRequest();
|
|
59897
|
-
const paginate = new
|
|
59098
|
+
const paginate = new import_common_pb10.Paginate();
|
|
59898
59099
|
criteria.forEach(({ key, value }) => {
|
|
59899
|
-
const ctr = new
|
|
59100
|
+
const ctr = new import_common_pb10.Criteria();
|
|
59900
59101
|
ctr.setKey(key);
|
|
59901
59102
|
ctr.setValue(value);
|
|
59902
59103
|
req.addCriterias(ctr);
|
|
@@ -59973,25 +59174,25 @@ function CreateProjectCredential(connectionConfig, projectId, name, authHeader)
|
|
|
59973
59174
|
}
|
|
59974
59175
|
|
|
59975
59176
|
// src/index.ts
|
|
59976
|
-
var
|
|
59177
|
+
var import_assistant_knowledge_pb = __toESM(require_assistant_knowledge_pb());
|
|
59977
59178
|
var import_marketplace_api_pb2 = __toESM(require_marketplace_api_pb());
|
|
59978
59179
|
var import_audit_logging_api_pb2 = __toESM(require_audit_logging_api_pb());
|
|
59979
59180
|
var import_provider_api_pb2 = __toESM(require_provider_api_pb());
|
|
59980
59181
|
var import_vault_api_pb2 = __toESM(require_vault_api_pb());
|
|
59981
59182
|
var import_talk_api_pb3 = __toESM(require_talk_api_pb());
|
|
59982
|
-
var
|
|
59183
|
+
var import_assistant_analysis_pb = __toESM(require_assistant_analysis_pb());
|
|
59983
59184
|
var import_sendgrid_api_pb = __toESM(require_sendgrid_api_pb());
|
|
59984
|
-
var
|
|
59185
|
+
var import_invoker_api_pb = __toESM(require_invoker_api_pb());
|
|
59985
59186
|
var import_web_api_pb4 = __toESM(require_web_api_pb());
|
|
59986
|
-
var
|
|
59987
|
-
var
|
|
59187
|
+
var import_common_pb11 = __toESM(require_common_pb());
|
|
59188
|
+
var import_assistant_webhook_pb = __toESM(require_assistant_webhook_pb());
|
|
59988
59189
|
var import_connect_api_pb2 = __toESM(require_connect_api_pb());
|
|
59989
|
-
var
|
|
59990
|
-
var
|
|
59190
|
+
var import_endpoint_api_pb = __toESM(require_endpoint_api_pb());
|
|
59191
|
+
var import_assistant_tool_pb = __toESM(require_assistant_tool_pb());
|
|
59991
59192
|
var import_integration_api_pb = __toESM(require_integration_api_pb());
|
|
59992
59193
|
var import_assistant_deployment_pb = __toESM(require_assistant_deployment_pb());
|
|
59993
59194
|
var import_knowledge_api_pb3 = __toESM(require_knowledge_api_pb());
|
|
59994
|
-
var
|
|
59195
|
+
var import_assistant_api_pb = __toESM(require_assistant_api_pb());
|
|
59995
59196
|
|
|
59996
59197
|
// src/clients/call.ts
|
|
59997
59198
|
function CreatePhoneCall(clientCfg, request) {
|
|
@@ -60104,11 +59305,8 @@ var import_talk_api_pb4 = __toESM(require_talk_api_pb());
|
|
|
60104
59305
|
CreateConversationMetric,
|
|
60105
59306
|
CreateConversationMetricRequest,
|
|
60106
59307
|
CreateConversationMetricResponse,
|
|
60107
|
-
CreateEndpoint,
|
|
60108
|
-
CreateEndpointCacheConfiguration,
|
|
60109
59308
|
CreateEndpointCacheConfigurationRequest,
|
|
60110
59309
|
CreateEndpointCacheConfigurationResponse,
|
|
60111
|
-
CreateEndpointProviderModel,
|
|
60112
59310
|
CreateEndpointProviderModelRequest,
|
|
60113
59311
|
CreateEndpointProviderModelResponse,
|
|
60114
59312
|
CreateEndpointRequest,
|
|
@@ -60116,7 +59314,6 @@ var import_talk_api_pb4 = __toESM(require_talk_api_pb());
|
|
|
60116
59314
|
CreateEndpointRetryConfiguration,
|
|
60117
59315
|
CreateEndpointRetryConfigurationRequest,
|
|
60118
59316
|
CreateEndpointRetryConfigurationResponse,
|
|
60119
|
-
CreateEndpointTag,
|
|
60120
59317
|
CreateEndpointTagRequest,
|
|
60121
59318
|
CreateKnowledge,
|
|
60122
59319
|
CreateKnowledgeDocument,
|
|
@@ -60215,12 +59412,9 @@ var import_talk_api_pb4 = __toESM(require_talk_api_pb());
|
|
|
60215
59412
|
GetAllAssistantProviderModelResponse,
|
|
60216
59413
|
GetAllAssistantRequest,
|
|
60217
59414
|
GetAllAssistantResponse,
|
|
60218
|
-
GetAllAssistantSession,
|
|
60219
59415
|
GetAllAssistantTool,
|
|
60220
59416
|
GetAllAssistantToolRequest,
|
|
60221
59417
|
GetAllAssistantToolResponse,
|
|
60222
|
-
GetAllAssistantUserConversationRequest,
|
|
60223
|
-
GetAllAssistantUserConversationResponse,
|
|
60224
59418
|
GetAllAssistantWebhook,
|
|
60225
59419
|
GetAllAssistantWebhookLogRequest,
|
|
60226
59420
|
GetAllAssistantWebhookLogResponse,
|
|
@@ -60234,7 +59428,6 @@ var import_talk_api_pb4 = __toESM(require_talk_api_pb());
|
|
|
60234
59428
|
GetAllDeploymentRequest,
|
|
60235
59429
|
GetAllDeploymentResponse,
|
|
60236
59430
|
GetAllEndpoint,
|
|
60237
|
-
GetAllEndpointLog,
|
|
60238
59431
|
GetAllEndpointLogRequest,
|
|
60239
59432
|
GetAllEndpointLogResponse,
|
|
60240
59433
|
GetAllEndpointProviderModel,
|
|
@@ -60421,7 +59614,6 @@ var import_talk_api_pb4 = __toESM(require_talk_api_pb());
|
|
|
60421
59614
|
UpdateAssistantVersionRequest,
|
|
60422
59615
|
UpdateAssistantWebhookRequest,
|
|
60423
59616
|
UpdateBillingInformationRequest,
|
|
60424
|
-
UpdateEndpointDetail,
|
|
60425
59617
|
UpdateEndpointDetailRequest,
|
|
60426
59618
|
UpdateEndpointVersion,
|
|
60427
59619
|
UpdateEndpointVersionRequest,
|