@rapidaai/nodejs 1.0.13 → 1.0.15
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 +13 -82
- package/dist/index.d.ts +13 -82
- package/dist/index.js +79 -415
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +78 -415
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
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() {
|
|
@@ -56961,21 +56614,21 @@ __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: () =>
|
|
56617
|
+
Argument: () => import_common_pb12.Argument,
|
|
56965
56618
|
Assistant: () => import_assistant_api_pb.Assistant,
|
|
56966
56619
|
AssistantAnalysis: () => import_assistant_analysis_pb.AssistantAnalysis,
|
|
56967
56620
|
AssistantApiDeployment: () => import_assistant_deployment_pb.AssistantApiDeployment,
|
|
56968
|
-
AssistantConversation: () =>
|
|
56621
|
+
AssistantConversation: () => import_common_pb12.AssistantConversation,
|
|
56969
56622
|
AssistantConversationAssistantMessage: () => import_talk_api_pb3.AssistantConversationAssistantMessage,
|
|
56970
56623
|
AssistantConversationConfiguration: () => import_talk_api_pb3.AssistantConversationConfiguration,
|
|
56971
|
-
AssistantConversationContext: () =>
|
|
56624
|
+
AssistantConversationContext: () => import_common_pb12.AssistantConversationContext,
|
|
56972
56625
|
AssistantConversationInterruption: () => import_talk_api_pb3.AssistantConversationInterruption,
|
|
56973
|
-
AssistantConversationMessage: () =>
|
|
56626
|
+
AssistantConversationMessage: () => import_common_pb12.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
56630
|
AssistantKnowledge: () => import_assistant_knowledge_pb.AssistantKnowledge,
|
|
56978
|
-
AssistantMessageStage: () =>
|
|
56631
|
+
AssistantMessageStage: () => import_common_pb12.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,
|
|
@@ -56994,14 +56647,14 @@ __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_pb12.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_pb12.Content,
|
|
57005
56658
|
CreateAnalysis: () => CreateAnalysis,
|
|
57006
56659
|
CreateAssistant: () => CreateAssistant,
|
|
57007
56660
|
CreateAssistantAnalysisRequest: () => import_assistant_analysis_pb.CreateAssistantAnalysisRequest,
|
|
@@ -57070,7 +56723,7 @@ __export(index_exports, {
|
|
|
57070
56723
|
CreateToolCredentialRequest: () => import_vault_api_pb2.CreateToolCredentialRequest,
|
|
57071
56724
|
CreateWebhook: () => CreateWebhook,
|
|
57072
56725
|
Credential: () => import_integration_api_pb.Credential,
|
|
57073
|
-
Criteria: () =>
|
|
56726
|
+
Criteria: () => import_common_pb12.Criteria,
|
|
57074
56727
|
DeleteAssistant: () => DeleteAssistant,
|
|
57075
56728
|
DeleteAssistantAnalysis: () => DeleteAssistantAnalysis,
|
|
57076
56729
|
DeleteAssistantAnalysisRequest: () => import_assistant_analysis_pb.DeleteAssistantAnalysisRequest,
|
|
@@ -57098,15 +56751,15 @@ __export(index_exports, {
|
|
|
57098
56751
|
EndpointProviderModel: () => import_endpoint_api_pb.EndpointProviderModel,
|
|
57099
56752
|
EndpointProviderModelAttribute: () => import_endpoint_api_pb.EndpointProviderModelAttribute,
|
|
57100
56753
|
EndpointRetryConfiguration: () => import_endpoint_api_pb.EndpointRetryConfiguration,
|
|
57101
|
-
Error: () =>
|
|
56754
|
+
Error: () => import_common_pb12.Error,
|
|
57102
56755
|
FeaturePermission: () => import_web_api_pb4.FeaturePermission,
|
|
57103
|
-
FieldSelector: () =>
|
|
56756
|
+
FieldSelector: () => import_common_pb12.FieldSelector,
|
|
57104
56757
|
FloatToAny: () => FloatToAny,
|
|
57105
56758
|
ForgotPassword: () => ForgotPassword,
|
|
57106
56759
|
ForgotPasswordRequest: () => import_web_api_pb4.ForgotPasswordRequest,
|
|
57107
56760
|
ForgotPasswordResponse: () => import_web_api_pb4.ForgotPasswordResponse,
|
|
57108
56761
|
ForkEndpointRequest: () => import_endpoint_api_pb.ForkEndpointRequest,
|
|
57109
|
-
FunctionCall: () =>
|
|
56762
|
+
FunctionCall: () => import_common_pb12.FunctionCall,
|
|
57110
56763
|
FunctionDefinition: () => import_integration_api_pb.FunctionDefinition,
|
|
57111
56764
|
FunctionParameter: () => import_integration_api_pb.FunctionParameter,
|
|
57112
56765
|
FunctionParameterProperty: () => import_integration_api_pb.FunctionParameterProperty,
|
|
@@ -57121,8 +56774,8 @@ __export(index_exports, {
|
|
|
57121
56774
|
GetAllAssistantAnalysisResponse: () => import_assistant_analysis_pb.GetAllAssistantAnalysisResponse,
|
|
57122
56775
|
GetAllAssistantConversation: () => GetAllAssistantConversation,
|
|
57123
56776
|
GetAllAssistantConversationMessage: () => GetAllAssistantConversationMessage,
|
|
57124
|
-
GetAllAssistantConversationRequest: () =>
|
|
57125
|
-
GetAllAssistantConversationResponse: () =>
|
|
56777
|
+
GetAllAssistantConversationRequest: () => import_common_pb12.GetAllAssistantConversationRequest,
|
|
56778
|
+
GetAllAssistantConversationResponse: () => import_common_pb12.GetAllAssistantConversationResponse,
|
|
57126
56779
|
GetAllAssistantKnowledge: () => GetAllAssistantKnowledge,
|
|
57127
56780
|
GetAllAssistantKnowledgeRequest: () => import_assistant_knowledge_pb.GetAllAssistantKnowledgeRequest,
|
|
57128
56781
|
GetAllAssistantKnowledgeResponse: () => import_assistant_knowledge_pb.GetAllAssistantKnowledgeResponse,
|
|
@@ -57136,8 +56789,6 @@ __export(index_exports, {
|
|
|
57136
56789
|
GetAllAssistantTool: () => GetAllAssistantTool,
|
|
57137
56790
|
GetAllAssistantToolRequest: () => import_assistant_tool_pb.GetAllAssistantToolRequest,
|
|
57138
56791
|
GetAllAssistantToolResponse: () => import_assistant_tool_pb.GetAllAssistantToolResponse,
|
|
57139
|
-
GetAllAssistantUserConversationRequest: () => import_assistant_api_pb.GetAllAssistantUserConversationRequest,
|
|
57140
|
-
GetAllAssistantUserConversationResponse: () => import_assistant_api_pb.GetAllAssistantUserConversationResponse,
|
|
57141
56792
|
GetAllAssistantWebhook: () => GetAllAssistantWebhook,
|
|
57142
56793
|
GetAllAssistantWebhookLogRequest: () => import_assistant_webhook_pb.GetAllAssistantWebhookLogRequest,
|
|
57143
56794
|
GetAllAssistantWebhookLogResponse: () => import_assistant_webhook_pb.GetAllAssistantWebhookLogResponse,
|
|
@@ -57145,8 +56796,8 @@ __export(index_exports, {
|
|
|
57145
56796
|
GetAllAssistantWebhookResponse: () => import_assistant_webhook_pb.GetAllAssistantWebhookResponse,
|
|
57146
56797
|
GetAllAuditLogRequest: () => import_audit_logging_api_pb2.GetAllAuditLogRequest,
|
|
57147
56798
|
GetAllAuditLogResponse: () => import_audit_logging_api_pb2.GetAllAuditLogResponse,
|
|
57148
|
-
GetAllConversationMessageRequest: () =>
|
|
57149
|
-
GetAllConversationMessageResponse: () =>
|
|
56799
|
+
GetAllConversationMessageRequest: () => import_common_pb12.GetAllConversationMessageRequest,
|
|
56800
|
+
GetAllConversationMessageResponse: () => import_common_pb12.GetAllConversationMessageResponse,
|
|
57150
56801
|
GetAllDeployment: () => GetAllDeployment,
|
|
57151
56802
|
GetAllDeploymentRequest: () => import_marketplace_api_pb2.GetAllDeploymentRequest,
|
|
57152
56803
|
GetAllDeploymentResponse: () => import_marketplace_api_pb2.GetAllDeploymentResponse,
|
|
@@ -57280,7 +56931,7 @@ __export(index_exports, {
|
|
|
57280
56931
|
InvokeRequest: () => import_invoker_api_pb.InvokeRequest,
|
|
57281
56932
|
InvokeResponse: () => import_invoker_api_pb.InvokeResponse,
|
|
57282
56933
|
JSONToAny: () => JSONToAny,
|
|
57283
|
-
Knowledge: () =>
|
|
56934
|
+
Knowledge: () => import_common_pb12.Knowledge,
|
|
57284
56935
|
KnowledgeConnect: () => KnowledgeConnect,
|
|
57285
56936
|
KnowledgeConnectRequest: () => import_connect_api_pb2.KnowledgeConnectRequest,
|
|
57286
56937
|
KnowledgeConnectResponse: () => import_connect_api_pb2.KnowledgeConnectResponse,
|
|
@@ -57288,22 +56939,22 @@ __export(index_exports, {
|
|
|
57288
56939
|
KnowledgeDocumentSegment: () => import_knowledge_api_pb3.KnowledgeDocumentSegment,
|
|
57289
56940
|
Linkedin: () => Linkedin,
|
|
57290
56941
|
MapToObject: () => MapToObject,
|
|
57291
|
-
Metadata: () =>
|
|
57292
|
-
Metric: () =>
|
|
56942
|
+
Metadata: () => import_common_pb12.Metadata,
|
|
56943
|
+
Metric: () => import_common_pb12.Metric,
|
|
57293
56944
|
Moderation: () => import_integration_api_pb.Moderation,
|
|
57294
|
-
Ordering: () =>
|
|
57295
|
-
Organization: () =>
|
|
56945
|
+
Ordering: () => import_common_pb12.Ordering,
|
|
56946
|
+
Organization: () => import_common_pb12.Organization,
|
|
57296
56947
|
OrganizationError: () => import_web_api_pb4.OrganizationError,
|
|
57297
56948
|
OrganizationRole: () => import_web_api_pb4.OrganizationRole,
|
|
57298
|
-
Paginate: () =>
|
|
57299
|
-
Paginated: () =>
|
|
56949
|
+
Paginate: () => import_common_pb12.Paginate,
|
|
56950
|
+
Paginated: () => import_common_pb12.Paginated,
|
|
57300
56951
|
ProbeRequest: () => import_invoker_api_pb.ProbeRequest,
|
|
57301
56952
|
ProbeResponse: () => import_invoker_api_pb.ProbeResponse,
|
|
57302
56953
|
Project: () => import_web_api_pb4.Project,
|
|
57303
56954
|
ProjectCredential: () => import_web_api_pb4.ProjectCredential,
|
|
57304
56955
|
ProjectRole: () => import_web_api_pb4.ProjectRole,
|
|
57305
|
-
ProtoMessage: () =>
|
|
57306
|
-
Provider: () =>
|
|
56956
|
+
ProtoMessage: () => import_common_pb12.Message,
|
|
56957
|
+
Provider: () => import_common_pb12.Provider,
|
|
57307
56958
|
RapidaSource: () => RapidaSource,
|
|
57308
56959
|
RegisterUser: () => RegisterUser,
|
|
57309
56960
|
RegisterUserRequest: () => import_web_api_pb4.RegisterUserRequest,
|
|
@@ -57318,11 +56969,12 @@ __export(index_exports, {
|
|
|
57318
56969
|
SearchableDeployment: () => import_marketplace_api_pb2.SearchableDeployment,
|
|
57319
56970
|
SocialAuthenticationRequest: () => import_web_api_pb4.SocialAuthenticationRequest,
|
|
57320
56971
|
StringToAny: () => StringToAny,
|
|
57321
|
-
Tag: () =>
|
|
57322
|
-
TextChatCompletePrompt: () =>
|
|
57323
|
-
TextPrompt: () =>
|
|
56972
|
+
Tag: () => import_common_pb12.Tag,
|
|
56973
|
+
TextChatCompletePrompt: () => import_common_pb12.TextChatCompletePrompt,
|
|
56974
|
+
TextPrompt: () => import_common_pb12.TextPrompt,
|
|
56975
|
+
ToContentText: () => ToContentText,
|
|
57324
56976
|
Token: () => import_web_api_pb4.Token,
|
|
57325
|
-
ToolCall: () =>
|
|
56977
|
+
ToolCall: () => import_common_pb12.ToolCall,
|
|
57326
56978
|
ToolDefinition: () => import_integration_api_pb.ToolDefinition,
|
|
57327
56979
|
ToolProvider: () => import_provider_api_pb2.ToolProvider,
|
|
57328
56980
|
UpdateAnalysis: () => UpdateAnalysis,
|
|
@@ -57357,8 +57009,8 @@ __export(index_exports, {
|
|
|
57357
57009
|
UpdateUserRequest: () => import_web_api_pb4.UpdateUserRequest,
|
|
57358
57010
|
UpdateUserResponse: () => import_web_api_pb4.UpdateUserResponse,
|
|
57359
57011
|
UpdateWebhook: () => UpdateWebhook,
|
|
57360
|
-
User: () =>
|
|
57361
|
-
Variable: () =>
|
|
57012
|
+
User: () => import_common_pb12.User,
|
|
57013
|
+
Variable: () => import_common_pb12.Variable,
|
|
57362
57014
|
VaultCredential: () => import_vault_api_pb2.VaultCredential,
|
|
57363
57015
|
VerifyCredentialRequest: () => import_integration_api_pb.VerifyCredentialRequest,
|
|
57364
57016
|
VerifyCredentialResponse: () => import_integration_api_pb.VerifyCredentialResponse,
|
|
@@ -57656,6 +57308,19 @@ function GetProtoSource(source) {
|
|
|
57656
57308
|
return import_common_pb.Source.SDK;
|
|
57657
57309
|
}
|
|
57658
57310
|
|
|
57311
|
+
// src/utils/rapida_content.ts
|
|
57312
|
+
var import_common_pb2 = __toESM(require_common_pb());
|
|
57313
|
+
var ToContentText = (cnt) => {
|
|
57314
|
+
if (!cnt) return "";
|
|
57315
|
+
return cnt.filter((x) => x.getContenttype() === "text").map((x) => {
|
|
57316
|
+
try {
|
|
57317
|
+
return new TextDecoder().decode(x.getContent());
|
|
57318
|
+
} catch (error) {
|
|
57319
|
+
return "";
|
|
57320
|
+
}
|
|
57321
|
+
}).join(" ");
|
|
57322
|
+
};
|
|
57323
|
+
|
|
57659
57324
|
// src/configs/index.ts
|
|
57660
57325
|
var ASSISTANT_API = "workflow-01.rapida.ai";
|
|
57661
57326
|
var ENDPOINT_API = "endpoint-01.rapida.ai";
|
|
@@ -57993,14 +57658,14 @@ function IndexKnowledgeDocument(client, knowledgeId, knowledgeDocumentIds, index
|
|
|
57993
57658
|
}
|
|
57994
57659
|
|
|
57995
57660
|
// src/clients/marketplace.ts
|
|
57996
|
-
var
|
|
57661
|
+
var import_common_pb3 = __toESM(require_common_pb());
|
|
57997
57662
|
var import_marketplace_api_pb = __toESM(require_marketplace_api_pb());
|
|
57998
57663
|
function GetAllDeployment(client, page, pageSize, criteria) {
|
|
57999
57664
|
return new Promise((resolve, reject) => {
|
|
58000
57665
|
const req = new import_marketplace_api_pb.GetAllDeploymentRequest();
|
|
58001
|
-
const paginate = new
|
|
57666
|
+
const paginate = new import_common_pb3.Paginate();
|
|
58002
57667
|
criteria.forEach(({ key, value, logic }) => {
|
|
58003
|
-
const ctr = new
|
|
57668
|
+
const ctr = new import_common_pb3.Criteria();
|
|
58004
57669
|
ctr.setKey(key);
|
|
58005
57670
|
ctr.setValue(value);
|
|
58006
57671
|
ctr.setLogic(logic);
|
|
@@ -58036,7 +57701,7 @@ function Invoke(config, req, auth) {
|
|
|
58036
57701
|
|
|
58037
57702
|
// src/clients/auth.ts
|
|
58038
57703
|
var import_web_api_pb = __toESM(require_web_api_pb());
|
|
58039
|
-
var
|
|
57704
|
+
var import_common_pb4 = __toESM(require_common_pb());
|
|
58040
57705
|
function AuthenticateUser(config, email, password) {
|
|
58041
57706
|
return new Promise((resolve, reject) => {
|
|
58042
57707
|
const requestObject = new import_web_api_pb.AuthenticateRequest();
|
|
@@ -58148,9 +57813,9 @@ function UpdateUser(config, authHeader, name) {
|
|
|
58148
57813
|
function GetAllUser(config, page, pageSize, criteria, authHeader) {
|
|
58149
57814
|
return new Promise((resolve, reject) => {
|
|
58150
57815
|
const req = new import_web_api_pb.GetAllUserRequest();
|
|
58151
|
-
const paginate = new
|
|
57816
|
+
const paginate = new import_common_pb4.Paginate();
|
|
58152
57817
|
criteria.forEach(({ key, value }) => {
|
|
58153
|
-
const ctr = new
|
|
57818
|
+
const ctr = new import_common_pb4.Criteria();
|
|
58154
57819
|
ctr.setKey(key);
|
|
58155
57820
|
ctr.setValue(value);
|
|
58156
57821
|
req.addCriterias(ctr);
|
|
@@ -58213,7 +57878,7 @@ function Github(config, state, code) {
|
|
|
58213
57878
|
|
|
58214
57879
|
// src/clients/provider.ts
|
|
58215
57880
|
var import_provider_api_pb = __toESM(require_provider_api_pb());
|
|
58216
|
-
var
|
|
57881
|
+
var import_common_pb5 = __toESM(require_common_pb());
|
|
58217
57882
|
function GetAllProvider(connectionConfig) {
|
|
58218
57883
|
return new Promise((resolve, reject) => {
|
|
58219
57884
|
const request = new import_provider_api_pb.GetAllModelProviderRequest();
|
|
@@ -58230,9 +57895,9 @@ function GetAllProvider(connectionConfig) {
|
|
|
58230
57895
|
function GetAllToolProvider(connectionConfig, page, pageSize, criteria) {
|
|
58231
57896
|
return new Promise((resolve, reject) => {
|
|
58232
57897
|
const req = new import_provider_api_pb.GetAllToolProviderRequest();
|
|
58233
|
-
const paginate = new
|
|
57898
|
+
const paginate = new import_common_pb5.Paginate();
|
|
58234
57899
|
criteria.forEach((x) => {
|
|
58235
|
-
let ctr = new
|
|
57900
|
+
let ctr = new import_common_pb5.Criteria();
|
|
58236
57901
|
ctr.setKey(x.key);
|
|
58237
57902
|
ctr.setValue(x.value);
|
|
58238
57903
|
req.addCriterias(ctr);
|
|
@@ -58932,15 +58597,15 @@ function GetAssistantWhatsappDeployment(clientCfg, req, auth) {
|
|
|
58932
58597
|
}
|
|
58933
58598
|
|
|
58934
58599
|
// src/clients/activity.ts
|
|
58935
|
-
var
|
|
58600
|
+
var import_common_pb6 = __toESM(require_common_pb());
|
|
58936
58601
|
var import_audit_logging_api_pb = __toESM(require_audit_logging_api_pb());
|
|
58937
58602
|
function GetActivities(connectionConfig, projectId, page, pageSize, criteria) {
|
|
58938
58603
|
return new Promise((resolve, reject) => {
|
|
58939
58604
|
const req = new import_audit_logging_api_pb.GetAllAuditLogRequest();
|
|
58940
58605
|
req.setProjectid(projectId);
|
|
58941
|
-
const paginate = new
|
|
58606
|
+
const paginate = new import_common_pb6.Paginate();
|
|
58942
58607
|
criteria.forEach(({ key, value, logic }) => {
|
|
58943
|
-
const ctr = new
|
|
58608
|
+
const ctr = new import_common_pb6.Criteria();
|
|
58944
58609
|
ctr.setKey(key);
|
|
58945
58610
|
ctr.setValue(value);
|
|
58946
58611
|
ctr.setLogic(logic);
|
|
@@ -59051,7 +58716,7 @@ function GetEndpointLog(config, req, auth) {
|
|
|
59051
58716
|
|
|
59052
58717
|
// src/clients/vault.ts
|
|
59053
58718
|
var import_vault_api_pb = __toESM(require_vault_api_pb());
|
|
59054
|
-
var
|
|
58719
|
+
var import_common_pb7 = __toESM(require_common_pb());
|
|
59055
58720
|
var import_struct_pb3 = require("google-protobuf/google/protobuf/struct_pb");
|
|
59056
58721
|
function CreateProviderKey(connectionConfig, providerId, providerName, credential, name, authHeader) {
|
|
59057
58722
|
return new Promise((resolve, reject) => {
|
|
@@ -59087,9 +58752,9 @@ function DeleteProviderKey(connectionConfig, providerKeyId, authHeader) {
|
|
|
59087
58752
|
function AllOrganizationCredential(connectionConfig, page, pageSize, criteria, authHeader) {
|
|
59088
58753
|
return new Promise((resolve, reject) => {
|
|
59089
58754
|
const req = new import_vault_api_pb.GetAllOrganizationCredentialRequest();
|
|
59090
|
-
const paginate = new
|
|
58755
|
+
const paginate = new import_common_pb7.Paginate();
|
|
59091
58756
|
criteria.forEach((x) => {
|
|
59092
|
-
let ctr = new
|
|
58757
|
+
let ctr = new import_common_pb7.Criteria();
|
|
59093
58758
|
ctr.setKey(x.key);
|
|
59094
58759
|
ctr.setValue(x.value);
|
|
59095
58760
|
req.addCriterias(ctr);
|
|
@@ -59126,8 +58791,8 @@ function CreateToolCredential(connectionConfig, toolId, toolName, credential, na
|
|
|
59126
58791
|
}
|
|
59127
58792
|
|
|
59128
58793
|
// src/clients/talk.ts
|
|
59129
|
-
var import_common_pb7 = __toESM(require_common_pb());
|
|
59130
58794
|
var import_common_pb8 = __toESM(require_common_pb());
|
|
58795
|
+
var import_common_pb9 = __toESM(require_common_pb());
|
|
59131
58796
|
var import_talk_api_pb = __toESM(require_talk_api_pb());
|
|
59132
58797
|
var import_talk_api_pb2 = __toESM(require_talk_api_pb());
|
|
59133
58798
|
function AssistantTalk(conversationStreamClient, authHeader) {
|
|
@@ -59140,7 +58805,7 @@ function CreateMessageMetric(connectionConfig, assistantId, assistantConversatio
|
|
|
59140
58805
|
req.setAssistantconversationid(assistantConversationId);
|
|
59141
58806
|
req.setMessageid(messageId);
|
|
59142
58807
|
for (var mtr of metrics) {
|
|
59143
|
-
const _m = new
|
|
58808
|
+
const _m = new import_common_pb8.Metric();
|
|
59144
58809
|
_m.setName(mtr.name);
|
|
59145
58810
|
_m.setValue(mtr.value);
|
|
59146
58811
|
_m.setDescription(mtr.description);
|
|
@@ -59162,7 +58827,7 @@ function CreateConversationMetric(connectionConfig, assistantId, assistantConver
|
|
|
59162
58827
|
req.setAssistantid(assistantId);
|
|
59163
58828
|
req.setAssistantconversationid(assistantConversationId);
|
|
59164
58829
|
for (var mtr of metrics) {
|
|
59165
|
-
const _m = new
|
|
58830
|
+
const _m = new import_common_pb8.Metric();
|
|
59166
58831
|
_m.setName(mtr.name);
|
|
59167
58832
|
_m.setValue(mtr.value);
|
|
59168
58833
|
_m.setDescription(mtr.description);
|
|
@@ -59180,7 +58845,7 @@ function CreateConversationMetric(connectionConfig, assistantId, assistantConver
|
|
|
59180
58845
|
}
|
|
59181
58846
|
|
|
59182
58847
|
// src/clients/knowledge.ts
|
|
59183
|
-
var
|
|
58848
|
+
var import_common_pb10 = __toESM(require_common_pb());
|
|
59184
58849
|
var import_knowledge_api_pb = __toESM(require_knowledge_api_pb());
|
|
59185
58850
|
var import_knowledge_api_pb2 = __toESM(require_knowledge_api_pb());
|
|
59186
58851
|
function CreateKnowledge(config, provider, name, description, tags) {
|
|
@@ -59219,9 +58884,9 @@ function GetKnowledgeBase(config, knowledgeBaseId) {
|
|
|
59219
58884
|
function GetAllKnowledgeBases(config, page, pageSize, criteria) {
|
|
59220
58885
|
return new Promise((resolve, reject) => {
|
|
59221
58886
|
const req = new import_knowledge_api_pb.GetAllKnowledgeRequest();
|
|
59222
|
-
const paginate = new
|
|
58887
|
+
const paginate = new import_common_pb10.Paginate();
|
|
59223
58888
|
criteria.forEach(({ key, value, logic }) => {
|
|
59224
|
-
const ctr = new
|
|
58889
|
+
const ctr = new import_common_pb10.Criteria();
|
|
59225
58890
|
ctr.setKey(key);
|
|
59226
58891
|
ctr.setValue(value);
|
|
59227
58892
|
ctr.setLogic(logic);
|
|
@@ -59273,9 +58938,9 @@ function GetAllKnowledgeDocument(config, knowledgeId, page, pageSize, criteria)
|
|
|
59273
58938
|
return new Promise((resolve, reject) => {
|
|
59274
58939
|
const req = new import_knowledge_api_pb.GetAllKnowledgeDocumentRequest();
|
|
59275
58940
|
req.setKnowledgeid(knowledgeId);
|
|
59276
|
-
const paginate = new
|
|
58941
|
+
const paginate = new import_common_pb10.Paginate();
|
|
59277
58942
|
criteria.forEach(({ key, value }) => {
|
|
59278
|
-
const ctr = new
|
|
58943
|
+
const ctr = new import_common_pb10.Criteria();
|
|
59279
58944
|
ctr.setKey(key);
|
|
59280
58945
|
ctr.setValue(value);
|
|
59281
58946
|
req.addCriterias(ctr);
|
|
@@ -59297,9 +58962,9 @@ function GetAllKnowledgeDocumentSegment(config, knowledgeId, page, pageSize, cri
|
|
|
59297
58962
|
return new Promise((resolve, reject) => {
|
|
59298
58963
|
const req = new import_knowledge_api_pb.GetAllKnowledgeDocumentSegmentRequest();
|
|
59299
58964
|
req.setKnowledgeid(knowledgeId);
|
|
59300
|
-
const paginate = new
|
|
58965
|
+
const paginate = new import_common_pb10.Paginate();
|
|
59301
58966
|
criteria.forEach(({ key, value }) => {
|
|
59302
|
-
const ctr = new
|
|
58967
|
+
const ctr = new import_common_pb10.Criteria();
|
|
59303
58968
|
ctr.setKey(key);
|
|
59304
58969
|
ctr.setValue(value);
|
|
59305
58970
|
req.addCriterias(ctr);
|
|
@@ -59392,7 +59057,7 @@ function UpdateKnowledgeDocumentSegment(config, documentId, index, organizations
|
|
|
59392
59057
|
|
|
59393
59058
|
// src/clients/project.ts
|
|
59394
59059
|
var import_web_api_pb3 = __toESM(require_web_api_pb());
|
|
59395
|
-
var
|
|
59060
|
+
var import_common_pb11 = __toESM(require_common_pb());
|
|
59396
59061
|
function AddUsersToProject(connectionConfig, email, role, projectIds, authHeader) {
|
|
59397
59062
|
return new Promise((resolve, reject) => {
|
|
59398
59063
|
const requestObject = new import_web_api_pb3.AddUsersToProjectRequest();
|
|
@@ -59444,9 +59109,9 @@ function UpdateProject(connectionConfig, projectId, authHeader, projectName, pro
|
|
|
59444
59109
|
function GetAllProject(connectionConfig, page, pageSize, criteria, authHeader) {
|
|
59445
59110
|
return new Promise((resolve, reject) => {
|
|
59446
59111
|
const req = new import_web_api_pb3.GetAllProjectRequest();
|
|
59447
|
-
const paginate = new
|
|
59112
|
+
const paginate = new import_common_pb11.Paginate();
|
|
59448
59113
|
criteria.forEach(({ key, value }) => {
|
|
59449
|
-
const ctr = new
|
|
59114
|
+
const ctr = new import_common_pb11.Criteria();
|
|
59450
59115
|
ctr.setKey(key);
|
|
59451
59116
|
ctr.setValue(value);
|
|
59452
59117
|
req.addCriterias(ctr);
|
|
@@ -59533,7 +59198,7 @@ var import_assistant_analysis_pb = __toESM(require_assistant_analysis_pb());
|
|
|
59533
59198
|
var import_sendgrid_api_pb = __toESM(require_sendgrid_api_pb());
|
|
59534
59199
|
var import_invoker_api_pb = __toESM(require_invoker_api_pb());
|
|
59535
59200
|
var import_web_api_pb4 = __toESM(require_web_api_pb());
|
|
59536
|
-
var
|
|
59201
|
+
var import_common_pb12 = __toESM(require_common_pb());
|
|
59537
59202
|
var import_assistant_webhook_pb = __toESM(require_assistant_webhook_pb());
|
|
59538
59203
|
var import_connect_api_pb2 = __toESM(require_connect_api_pb());
|
|
59539
59204
|
var import_endpoint_api_pb = __toESM(require_endpoint_api_pb());
|
|
@@ -59764,8 +59429,6 @@ var import_talk_api_pb4 = __toESM(require_talk_api_pb());
|
|
|
59764
59429
|
GetAllAssistantTool,
|
|
59765
59430
|
GetAllAssistantToolRequest,
|
|
59766
59431
|
GetAllAssistantToolResponse,
|
|
59767
|
-
GetAllAssistantUserConversationRequest,
|
|
59768
|
-
GetAllAssistantUserConversationResponse,
|
|
59769
59432
|
GetAllAssistantWebhook,
|
|
59770
59433
|
GetAllAssistantWebhookLogRequest,
|
|
59771
59434
|
GetAllAssistantWebhookLogResponse,
|
|
@@ -59949,6 +59612,7 @@ var import_talk_api_pb4 = __toESM(require_talk_api_pb());
|
|
|
59949
59612
|
Tag,
|
|
59950
59613
|
TextChatCompletePrompt,
|
|
59951
59614
|
TextPrompt,
|
|
59615
|
+
ToContentText,
|
|
59952
59616
|
Token,
|
|
59953
59617
|
ToolCall,
|
|
59954
59618
|
ToolDefinition,
|