@rapidaai/react 1.1.48 → 1.1.50
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/{chunk-K6VHOUSP.mjs → chunk-2EMDIAFM.mjs} +178 -153
- package/dist/chunk-2EMDIAFM.mjs.map +1 -0
- package/dist/components/device-selector.d.mts +1 -1
- package/dist/components/device-selector.d.ts +1 -1
- package/dist/components/device-selector.js +177 -132
- package/dist/components/device-selector.js.map +1 -1
- package/dist/components/device-selector.mjs +1 -1
- package/dist/{device-selector-CsIo3daE.d.mts → device-selector-D2B4ipII.d.mts} +26 -31
- package/dist/{device-selector-CsIo3daE.d.ts → device-selector-D2B4ipII.d.ts} +26 -31
- package/dist/index.d.mts +3 -81
- package/dist/index.d.ts +3 -81
- package/dist/index.js +402 -176
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +297 -102
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/dist/chunk-K6VHOUSP.mjs.map +0 -1
package/dist/index.js
CHANGED
|
@@ -3675,8 +3675,8 @@ var require_common_pb = __commonJS({
|
|
|
3675
3675
|
id: jspb.Message.getFieldWithDefault(msg, 1, "0"),
|
|
3676
3676
|
messageid: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
3677
3677
|
assistantconversationid: jspb.Message.getFieldWithDefault(msg, 2, "0"),
|
|
3678
|
-
|
|
3679
|
-
|
|
3678
|
+
role: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
3679
|
+
body: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
|
3680
3680
|
source: jspb.Message.getFieldWithDefault(msg, 9, ""),
|
|
3681
3681
|
metricsList: jspb.Message.toObjectList(
|
|
3682
3682
|
msg.getMetricsList(),
|
|
@@ -3735,15 +3735,19 @@ var require_common_pb = __commonJS({
|
|
|
3735
3735
|
);
|
|
3736
3736
|
msg.setAssistantconversationid(value);
|
|
3737
3737
|
break;
|
|
3738
|
-
case
|
|
3739
|
-
var value =
|
|
3740
|
-
|
|
3741
|
-
|
|
3738
|
+
case 4:
|
|
3739
|
+
var value = (
|
|
3740
|
+
/** @type {string} */
|
|
3741
|
+
reader.readString()
|
|
3742
|
+
);
|
|
3743
|
+
msg.setRole(value);
|
|
3742
3744
|
break;
|
|
3743
|
-
case
|
|
3744
|
-
var value =
|
|
3745
|
-
|
|
3746
|
-
|
|
3745
|
+
case 5:
|
|
3746
|
+
var value = (
|
|
3747
|
+
/** @type {string} */
|
|
3748
|
+
reader.readString()
|
|
3749
|
+
);
|
|
3750
|
+
msg.setBody(value);
|
|
3747
3751
|
break;
|
|
3748
3752
|
case 9:
|
|
3749
3753
|
var value = (
|
|
@@ -3842,20 +3846,18 @@ var require_common_pb = __commonJS({
|
|
|
3842
3846
|
f
|
|
3843
3847
|
);
|
|
3844
3848
|
}
|
|
3845
|
-
f = message.
|
|
3846
|
-
if (f
|
|
3847
|
-
writer.
|
|
3848
|
-
|
|
3849
|
-
f
|
|
3850
|
-
proto.Message.serializeBinaryToWriter
|
|
3849
|
+
f = message.getRole();
|
|
3850
|
+
if (f.length > 0) {
|
|
3851
|
+
writer.writeString(
|
|
3852
|
+
4,
|
|
3853
|
+
f
|
|
3851
3854
|
);
|
|
3852
3855
|
}
|
|
3853
|
-
f = message.
|
|
3854
|
-
if (f
|
|
3855
|
-
writer.
|
|
3856
|
-
|
|
3857
|
-
f
|
|
3858
|
-
proto.Message.serializeBinaryToWriter
|
|
3856
|
+
f = message.getBody();
|
|
3857
|
+
if (f.length > 0) {
|
|
3858
|
+
writer.writeString(
|
|
3859
|
+
5,
|
|
3860
|
+
f
|
|
3859
3861
|
);
|
|
3860
3862
|
}
|
|
3861
3863
|
f = message.getSource();
|
|
@@ -3960,35 +3962,23 @@ var require_common_pb = __commonJS({
|
|
|
3960
3962
|
proto.AssistantConversationMessage.prototype.setAssistantconversationid = function(value) {
|
|
3961
3963
|
return jspb.Message.setProto3StringIntField(this, 2, value);
|
|
3962
3964
|
};
|
|
3963
|
-
proto.AssistantConversationMessage.prototype.
|
|
3965
|
+
proto.AssistantConversationMessage.prototype.getRole = function() {
|
|
3964
3966
|
return (
|
|
3965
|
-
/** @type{
|
|
3966
|
-
jspb.Message.
|
|
3967
|
+
/** @type {string} */
|
|
3968
|
+
jspb.Message.getFieldWithDefault(this, 4, "")
|
|
3967
3969
|
);
|
|
3968
3970
|
};
|
|
3969
|
-
proto.AssistantConversationMessage.prototype.
|
|
3970
|
-
return jspb.Message.
|
|
3971
|
-
};
|
|
3972
|
-
proto.AssistantConversationMessage.prototype.clearRequest = function() {
|
|
3973
|
-
return this.setRequest(void 0);
|
|
3974
|
-
};
|
|
3975
|
-
proto.AssistantConversationMessage.prototype.hasRequest = function() {
|
|
3976
|
-
return jspb.Message.getField(this, 5) != null;
|
|
3971
|
+
proto.AssistantConversationMessage.prototype.setRole = function(value) {
|
|
3972
|
+
return jspb.Message.setProto3StringField(this, 4, value);
|
|
3977
3973
|
};
|
|
3978
|
-
proto.AssistantConversationMessage.prototype.
|
|
3974
|
+
proto.AssistantConversationMessage.prototype.getBody = function() {
|
|
3979
3975
|
return (
|
|
3980
|
-
/** @type{
|
|
3981
|
-
jspb.Message.
|
|
3976
|
+
/** @type {string} */
|
|
3977
|
+
jspb.Message.getFieldWithDefault(this, 5, "")
|
|
3982
3978
|
);
|
|
3983
3979
|
};
|
|
3984
|
-
proto.AssistantConversationMessage.prototype.
|
|
3985
|
-
return jspb.Message.
|
|
3986
|
-
};
|
|
3987
|
-
proto.AssistantConversationMessage.prototype.clearResponse = function() {
|
|
3988
|
-
return this.setResponse(void 0);
|
|
3989
|
-
};
|
|
3990
|
-
proto.AssistantConversationMessage.prototype.hasResponse = function() {
|
|
3991
|
-
return jspb.Message.getField(this, 7) != null;
|
|
3980
|
+
proto.AssistantConversationMessage.prototype.setBody = function(value) {
|
|
3981
|
+
return jspb.Message.setProto3StringField(this, 5, value);
|
|
3992
3982
|
};
|
|
3993
3983
|
proto.AssistantConversationMessage.prototype.getSource = function() {
|
|
3994
3984
|
return (
|
|
@@ -7544,14 +7534,13 @@ var require_talk_api_pb = __commonJS({
|
|
|
7544
7534
|
proto.talk_api.AssistantMessagingRequest.prototype.hasMessage = function() {
|
|
7545
7535
|
return jspb.Message.getField(this, 3) != null;
|
|
7546
7536
|
};
|
|
7547
|
-
proto.talk_api.AssistantMessagingResponse.oneofGroups_ = [[9, 10, 11, 12,
|
|
7537
|
+
proto.talk_api.AssistantMessagingResponse.oneofGroups_ = [[9, 10, 11, 12, 14, 15]];
|
|
7548
7538
|
proto.talk_api.AssistantMessagingResponse.DataCase = {
|
|
7549
7539
|
DATA_NOT_SET: 0,
|
|
7550
7540
|
CONFIGURATION: 9,
|
|
7551
7541
|
INTERRUPTION: 10,
|
|
7552
7542
|
USER: 11,
|
|
7553
7543
|
ASSISTANT: 12,
|
|
7554
|
-
MESSAGE: 13,
|
|
7555
7544
|
ACTION: 14,
|
|
7556
7545
|
ERROR: 15
|
|
7557
7546
|
};
|
|
@@ -7573,7 +7562,6 @@ var require_talk_api_pb = __commonJS({
|
|
|
7573
7562
|
interruption: (f = msg.getInterruption()) && common_pb.AssistantConversationInterruption.toObject(includeInstance, f),
|
|
7574
7563
|
user: (f = msg.getUser()) && common_pb.AssistantConversationUserMessage.toObject(includeInstance, f),
|
|
7575
7564
|
assistant: (f = msg.getAssistant()) && common_pb.AssistantConversationAssistantMessage.toObject(includeInstance, f),
|
|
7576
|
-
message: (f = msg.getMessage()) && common_pb.AssistantConversationMessage.toObject(includeInstance, f),
|
|
7577
7565
|
action: (f = msg.getAction()) && common_pb.AssistantConversationAction.toObject(includeInstance, f),
|
|
7578
7566
|
error: (f = msg.getError()) && common_pb.Error.toObject(includeInstance, f)
|
|
7579
7567
|
};
|
|
@@ -7629,11 +7617,6 @@ var require_talk_api_pb = __commonJS({
|
|
|
7629
7617
|
reader.readMessage(value, common_pb.AssistantConversationAssistantMessage.deserializeBinaryFromReader);
|
|
7630
7618
|
msg.setAssistant(value);
|
|
7631
7619
|
break;
|
|
7632
|
-
case 13:
|
|
7633
|
-
var value = new common_pb.AssistantConversationMessage();
|
|
7634
|
-
reader.readMessage(value, common_pb.AssistantConversationMessage.deserializeBinaryFromReader);
|
|
7635
|
-
msg.setMessage(value);
|
|
7636
|
-
break;
|
|
7637
7620
|
case 14:
|
|
7638
7621
|
var value = new common_pb.AssistantConversationAction();
|
|
7639
7622
|
reader.readMessage(value, common_pb.AssistantConversationAction.deserializeBinaryFromReader);
|
|
@@ -7704,14 +7687,6 @@ var require_talk_api_pb = __commonJS({
|
|
|
7704
7687
|
common_pb.AssistantConversationAssistantMessage.serializeBinaryToWriter
|
|
7705
7688
|
);
|
|
7706
7689
|
}
|
|
7707
|
-
f = message.getMessage();
|
|
7708
|
-
if (f != null) {
|
|
7709
|
-
writer.writeMessage(
|
|
7710
|
-
13,
|
|
7711
|
-
f,
|
|
7712
|
-
common_pb.AssistantConversationMessage.serializeBinaryToWriter
|
|
7713
|
-
);
|
|
7714
|
-
}
|
|
7715
7690
|
f = message.getAction();
|
|
7716
7691
|
if (f != null) {
|
|
7717
7692
|
writer.writeMessage(
|
|
@@ -7807,21 +7782,6 @@ var require_talk_api_pb = __commonJS({
|
|
|
7807
7782
|
proto.talk_api.AssistantMessagingResponse.prototype.hasAssistant = function() {
|
|
7808
7783
|
return jspb.Message.getField(this, 12) != null;
|
|
7809
7784
|
};
|
|
7810
|
-
proto.talk_api.AssistantMessagingResponse.prototype.getMessage = function() {
|
|
7811
|
-
return (
|
|
7812
|
-
/** @type{?proto.AssistantConversationMessage} */
|
|
7813
|
-
jspb.Message.getWrapperField(this, common_pb.AssistantConversationMessage, 13)
|
|
7814
|
-
);
|
|
7815
|
-
};
|
|
7816
|
-
proto.talk_api.AssistantMessagingResponse.prototype.setMessage = function(value) {
|
|
7817
|
-
return jspb.Message.setOneofWrapperField(this, 13, proto.talk_api.AssistantMessagingResponse.oneofGroups_[0], value);
|
|
7818
|
-
};
|
|
7819
|
-
proto.talk_api.AssistantMessagingResponse.prototype.clearMessage = function() {
|
|
7820
|
-
return this.setMessage(void 0);
|
|
7821
|
-
};
|
|
7822
|
-
proto.talk_api.AssistantMessagingResponse.prototype.hasMessage = function() {
|
|
7823
|
-
return jspb.Message.getField(this, 13) != null;
|
|
7824
|
-
};
|
|
7825
7785
|
proto.talk_api.AssistantMessagingResponse.prototype.getAction = function() {
|
|
7826
7786
|
return (
|
|
7827
7787
|
/** @type{?proto.AssistantConversationAction} */
|
|
@@ -9304,7 +9264,8 @@ var require_assistant_deployment_pb = __commonJS({
|
|
|
9304
9264
|
status: jspb.Message.getFieldWithDefault(msg, 28, ""),
|
|
9305
9265
|
maxsessionduration: jspb.Message.getFieldWithDefault(msg, 29, "0"),
|
|
9306
9266
|
idealtimeout: jspb.Message.getFieldWithDefault(msg, 30, "0"),
|
|
9307
|
-
idealtimeoutmessage: jspb.Message.getFieldWithDefault(msg, 31, "")
|
|
9267
|
+
idealtimeoutmessage: jspb.Message.getFieldWithDefault(msg, 31, ""),
|
|
9268
|
+
idealtimeoutbackoff: jspb.Message.getFieldWithDefault(msg, 32, "0")
|
|
9308
9269
|
};
|
|
9309
9270
|
if (includeInstance) {
|
|
9310
9271
|
obj.$jspbMessageInstance = msg;
|
|
@@ -9442,6 +9403,13 @@ var require_assistant_deployment_pb = __commonJS({
|
|
|
9442
9403
|
);
|
|
9443
9404
|
msg.setIdealtimeoutmessage(value);
|
|
9444
9405
|
break;
|
|
9406
|
+
case 32:
|
|
9407
|
+
var value = (
|
|
9408
|
+
/** @type {string} */
|
|
9409
|
+
reader.readUint64String()
|
|
9410
|
+
);
|
|
9411
|
+
msg.setIdealtimeoutbackoff(value);
|
|
9412
|
+
break;
|
|
9445
9413
|
default:
|
|
9446
9414
|
reader.skipField();
|
|
9447
9415
|
break;
|
|
@@ -9588,6 +9556,13 @@ var require_assistant_deployment_pb = __commonJS({
|
|
|
9588
9556
|
f
|
|
9589
9557
|
);
|
|
9590
9558
|
}
|
|
9559
|
+
f = message.getIdealtimeoutbackoff();
|
|
9560
|
+
if (parseInt(f, 10) !== 0) {
|
|
9561
|
+
writer.writeUint64String(
|
|
9562
|
+
32,
|
|
9563
|
+
f
|
|
9564
|
+
);
|
|
9565
|
+
}
|
|
9591
9566
|
};
|
|
9592
9567
|
proto.assistant_api.AssistantWebpluginDeployment.prototype.getId = function() {
|
|
9593
9568
|
return (
|
|
@@ -9793,6 +9768,15 @@ var require_assistant_deployment_pb = __commonJS({
|
|
|
9793
9768
|
proto.assistant_api.AssistantWebpluginDeployment.prototype.setIdealtimeoutmessage = function(value) {
|
|
9794
9769
|
return jspb.Message.setProto3StringField(this, 31, value);
|
|
9795
9770
|
};
|
|
9771
|
+
proto.assistant_api.AssistantWebpluginDeployment.prototype.getIdealtimeoutbackoff = function() {
|
|
9772
|
+
return (
|
|
9773
|
+
/** @type {string} */
|
|
9774
|
+
jspb.Message.getFieldWithDefault(this, 32, "0")
|
|
9775
|
+
);
|
|
9776
|
+
};
|
|
9777
|
+
proto.assistant_api.AssistantWebpluginDeployment.prototype.setIdealtimeoutbackoff = function(value) {
|
|
9778
|
+
return jspb.Message.setProto3StringIntField(this, 32, value);
|
|
9779
|
+
};
|
|
9796
9780
|
proto.assistant_api.AssistantPhoneDeployment.repeatedFields_ = [17];
|
|
9797
9781
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
9798
9782
|
proto.assistant_api.AssistantPhoneDeployment.prototype.toObject = function(opt_includeInstance) {
|
|
@@ -9817,7 +9801,8 @@ var require_assistant_deployment_pb = __commonJS({
|
|
|
9817
9801
|
status: jspb.Message.getFieldWithDefault(msg, 28, ""),
|
|
9818
9802
|
maxsessionduration: jspb.Message.getFieldWithDefault(msg, 29, "0"),
|
|
9819
9803
|
idealtimeout: jspb.Message.getFieldWithDefault(msg, 30, "0"),
|
|
9820
|
-
idealtimeoutmessage: jspb.Message.getFieldWithDefault(msg, 31, "")
|
|
9804
|
+
idealtimeoutmessage: jspb.Message.getFieldWithDefault(msg, 31, ""),
|
|
9805
|
+
idealtimeoutbackoff: jspb.Message.getFieldWithDefault(msg, 32, "0")
|
|
9821
9806
|
};
|
|
9822
9807
|
if (includeInstance) {
|
|
9823
9808
|
obj.$jspbMessageInstance = msg;
|
|
@@ -9925,6 +9910,13 @@ var require_assistant_deployment_pb = __commonJS({
|
|
|
9925
9910
|
);
|
|
9926
9911
|
msg.setIdealtimeoutmessage(value);
|
|
9927
9912
|
break;
|
|
9913
|
+
case 32:
|
|
9914
|
+
var value = (
|
|
9915
|
+
/** @type {string} */
|
|
9916
|
+
reader.readUint64String()
|
|
9917
|
+
);
|
|
9918
|
+
msg.setIdealtimeoutbackoff(value);
|
|
9919
|
+
break;
|
|
9928
9920
|
default:
|
|
9929
9921
|
reader.skipField();
|
|
9930
9922
|
break;
|
|
@@ -10044,6 +10036,13 @@ var require_assistant_deployment_pb = __commonJS({
|
|
|
10044
10036
|
f
|
|
10045
10037
|
);
|
|
10046
10038
|
}
|
|
10039
|
+
f = message.getIdealtimeoutbackoff();
|
|
10040
|
+
if (parseInt(f, 10) !== 0) {
|
|
10041
|
+
writer.writeUint64String(
|
|
10042
|
+
32,
|
|
10043
|
+
f
|
|
10044
|
+
);
|
|
10045
|
+
}
|
|
10047
10046
|
};
|
|
10048
10047
|
proto.assistant_api.AssistantPhoneDeployment.prototype.getId = function() {
|
|
10049
10048
|
return (
|
|
@@ -10213,6 +10212,15 @@ var require_assistant_deployment_pb = __commonJS({
|
|
|
10213
10212
|
proto.assistant_api.AssistantPhoneDeployment.prototype.setIdealtimeoutmessage = function(value) {
|
|
10214
10213
|
return jspb.Message.setProto3StringField(this, 31, value);
|
|
10215
10214
|
};
|
|
10215
|
+
proto.assistant_api.AssistantPhoneDeployment.prototype.getIdealtimeoutbackoff = function() {
|
|
10216
|
+
return (
|
|
10217
|
+
/** @type {string} */
|
|
10218
|
+
jspb.Message.getFieldWithDefault(this, 32, "0")
|
|
10219
|
+
);
|
|
10220
|
+
};
|
|
10221
|
+
proto.assistant_api.AssistantPhoneDeployment.prototype.setIdealtimeoutbackoff = function(value) {
|
|
10222
|
+
return jspb.Message.setProto3StringIntField(this, 32, value);
|
|
10223
|
+
};
|
|
10216
10224
|
proto.assistant_api.AssistantWhatsappDeployment.repeatedFields_ = [17];
|
|
10217
10225
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
10218
10226
|
proto.assistant_api.AssistantWhatsappDeployment.prototype.toObject = function(opt_includeInstance) {
|
|
@@ -10238,7 +10246,8 @@ var require_assistant_deployment_pb = __commonJS({
|
|
|
10238
10246
|
status: jspb.Message.getFieldWithDefault(msg, 28, ""),
|
|
10239
10247
|
maxsessionduration: jspb.Message.getFieldWithDefault(msg, 29, "0"),
|
|
10240
10248
|
idealtimeout: jspb.Message.getFieldWithDefault(msg, 30, "0"),
|
|
10241
|
-
idealtimeoutmessage: jspb.Message.getFieldWithDefault(msg, 31, "")
|
|
10249
|
+
idealtimeoutmessage: jspb.Message.getFieldWithDefault(msg, 31, ""),
|
|
10250
|
+
idealtimeoutbackoff: jspb.Message.getFieldWithDefault(msg, 32, "0")
|
|
10242
10251
|
};
|
|
10243
10252
|
if (includeInstance) {
|
|
10244
10253
|
obj.$jspbMessageInstance = msg;
|
|
@@ -10353,6 +10362,13 @@ var require_assistant_deployment_pb = __commonJS({
|
|
|
10353
10362
|
);
|
|
10354
10363
|
msg.setIdealtimeoutmessage(value);
|
|
10355
10364
|
break;
|
|
10365
|
+
case 32:
|
|
10366
|
+
var value = (
|
|
10367
|
+
/** @type {string} */
|
|
10368
|
+
reader.readUint64String()
|
|
10369
|
+
);
|
|
10370
|
+
msg.setIdealtimeoutbackoff(value);
|
|
10371
|
+
break;
|
|
10356
10372
|
default:
|
|
10357
10373
|
reader.skipField();
|
|
10358
10374
|
break;
|
|
@@ -10479,6 +10495,13 @@ var require_assistant_deployment_pb = __commonJS({
|
|
|
10479
10495
|
f
|
|
10480
10496
|
);
|
|
10481
10497
|
}
|
|
10498
|
+
f = message.getIdealtimeoutbackoff();
|
|
10499
|
+
if (parseInt(f, 10) !== 0) {
|
|
10500
|
+
writer.writeUint64String(
|
|
10501
|
+
32,
|
|
10502
|
+
f
|
|
10503
|
+
);
|
|
10504
|
+
}
|
|
10482
10505
|
};
|
|
10483
10506
|
proto.assistant_api.AssistantWhatsappDeployment.prototype.getId = function() {
|
|
10484
10507
|
return (
|
|
@@ -10657,6 +10680,15 @@ var require_assistant_deployment_pb = __commonJS({
|
|
|
10657
10680
|
proto.assistant_api.AssistantWhatsappDeployment.prototype.setIdealtimeoutmessage = function(value) {
|
|
10658
10681
|
return jspb.Message.setProto3StringField(this, 31, value);
|
|
10659
10682
|
};
|
|
10683
|
+
proto.assistant_api.AssistantWhatsappDeployment.prototype.getIdealtimeoutbackoff = function() {
|
|
10684
|
+
return (
|
|
10685
|
+
/** @type {string} */
|
|
10686
|
+
jspb.Message.getFieldWithDefault(this, 32, "0")
|
|
10687
|
+
);
|
|
10688
|
+
};
|
|
10689
|
+
proto.assistant_api.AssistantWhatsappDeployment.prototype.setIdealtimeoutbackoff = function(value) {
|
|
10690
|
+
return jspb.Message.setProto3StringIntField(this, 32, value);
|
|
10691
|
+
};
|
|
10660
10692
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
10661
10693
|
proto.assistant_api.AssistantDebuggerDeployment.prototype.toObject = function(opt_includeInstance) {
|
|
10662
10694
|
return proto.assistant_api.AssistantDebuggerDeployment.toObject(opt_includeInstance, this);
|
|
@@ -10675,7 +10707,8 @@ var require_assistant_deployment_pb = __commonJS({
|
|
|
10675
10707
|
status: jspb.Message.getFieldWithDefault(msg, 28, ""),
|
|
10676
10708
|
maxsessionduration: jspb.Message.getFieldWithDefault(msg, 29, "0"),
|
|
10677
10709
|
idealtimeout: jspb.Message.getFieldWithDefault(msg, 30, "0"),
|
|
10678
|
-
idealtimeoutmessage: jspb.Message.getFieldWithDefault(msg, 31, "")
|
|
10710
|
+
idealtimeoutmessage: jspb.Message.getFieldWithDefault(msg, 31, ""),
|
|
10711
|
+
idealtimeoutbackoff: jspb.Message.getFieldWithDefault(msg, 32, "0")
|
|
10679
10712
|
};
|
|
10680
10713
|
if (includeInstance) {
|
|
10681
10714
|
obj.$jspbMessageInstance = msg;
|
|
@@ -10778,6 +10811,13 @@ var require_assistant_deployment_pb = __commonJS({
|
|
|
10778
10811
|
);
|
|
10779
10812
|
msg.setIdealtimeoutmessage(value);
|
|
10780
10813
|
break;
|
|
10814
|
+
case 32:
|
|
10815
|
+
var value = (
|
|
10816
|
+
/** @type {string} */
|
|
10817
|
+
reader.readUint64String()
|
|
10818
|
+
);
|
|
10819
|
+
msg.setIdealtimeoutbackoff(value);
|
|
10820
|
+
break;
|
|
10781
10821
|
default:
|
|
10782
10822
|
reader.skipField();
|
|
10783
10823
|
break;
|
|
@@ -10889,6 +10929,13 @@ var require_assistant_deployment_pb = __commonJS({
|
|
|
10889
10929
|
f
|
|
10890
10930
|
);
|
|
10891
10931
|
}
|
|
10932
|
+
f = message.getIdealtimeoutbackoff();
|
|
10933
|
+
if (parseInt(f, 10) !== 0) {
|
|
10934
|
+
writer.writeUint64String(
|
|
10935
|
+
32,
|
|
10936
|
+
f
|
|
10937
|
+
);
|
|
10938
|
+
}
|
|
10892
10939
|
};
|
|
10893
10940
|
proto.assistant_api.AssistantDebuggerDeployment.prototype.getId = function() {
|
|
10894
10941
|
return (
|
|
@@ -11043,6 +11090,15 @@ var require_assistant_deployment_pb = __commonJS({
|
|
|
11043
11090
|
proto.assistant_api.AssistantDebuggerDeployment.prototype.setIdealtimeoutmessage = function(value) {
|
|
11044
11091
|
return jspb.Message.setProto3StringField(this, 31, value);
|
|
11045
11092
|
};
|
|
11093
|
+
proto.assistant_api.AssistantDebuggerDeployment.prototype.getIdealtimeoutbackoff = function() {
|
|
11094
|
+
return (
|
|
11095
|
+
/** @type {string} */
|
|
11096
|
+
jspb.Message.getFieldWithDefault(this, 32, "0")
|
|
11097
|
+
);
|
|
11098
|
+
};
|
|
11099
|
+
proto.assistant_api.AssistantDebuggerDeployment.prototype.setIdealtimeoutbackoff = function(value) {
|
|
11100
|
+
return jspb.Message.setProto3StringIntField(this, 32, value);
|
|
11101
|
+
};
|
|
11046
11102
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
11047
11103
|
proto.assistant_api.AssistantApiDeployment.prototype.toObject = function(opt_includeInstance) {
|
|
11048
11104
|
return proto.assistant_api.AssistantApiDeployment.toObject(opt_includeInstance, this);
|
|
@@ -11060,7 +11116,8 @@ var require_assistant_deployment_pb = __commonJS({
|
|
|
11060
11116
|
status: jspb.Message.getFieldWithDefault(msg, 28, ""),
|
|
11061
11117
|
maxsessionduration: jspb.Message.getFieldWithDefault(msg, 29, "0"),
|
|
11062
11118
|
idealtimeout: jspb.Message.getFieldWithDefault(msg, 30, "0"),
|
|
11063
|
-
idealtimeoutmessage: jspb.Message.getFieldWithDefault(msg, 31, "")
|
|
11119
|
+
idealtimeoutmessage: jspb.Message.getFieldWithDefault(msg, 31, ""),
|
|
11120
|
+
idealtimeoutbackoff: jspb.Message.getFieldWithDefault(msg, 32, "0")
|
|
11064
11121
|
};
|
|
11065
11122
|
if (includeInstance) {
|
|
11066
11123
|
obj.$jspbMessageInstance = msg;
|
|
@@ -11156,6 +11213,13 @@ var require_assistant_deployment_pb = __commonJS({
|
|
|
11156
11213
|
);
|
|
11157
11214
|
msg.setIdealtimeoutmessage(value);
|
|
11158
11215
|
break;
|
|
11216
|
+
case 32:
|
|
11217
|
+
var value = (
|
|
11218
|
+
/** @type {string} */
|
|
11219
|
+
reader.readUint64String()
|
|
11220
|
+
);
|
|
11221
|
+
msg.setIdealtimeoutbackoff(value);
|
|
11222
|
+
break;
|
|
11159
11223
|
default:
|
|
11160
11224
|
reader.skipField();
|
|
11161
11225
|
break;
|
|
@@ -11260,6 +11324,13 @@ var require_assistant_deployment_pb = __commonJS({
|
|
|
11260
11324
|
f
|
|
11261
11325
|
);
|
|
11262
11326
|
}
|
|
11327
|
+
f = message.getIdealtimeoutbackoff();
|
|
11328
|
+
if (parseInt(f, 10) !== 0) {
|
|
11329
|
+
writer.writeUint64String(
|
|
11330
|
+
32,
|
|
11331
|
+
f
|
|
11332
|
+
);
|
|
11333
|
+
}
|
|
11263
11334
|
};
|
|
11264
11335
|
proto.assistant_api.AssistantApiDeployment.prototype.getId = function() {
|
|
11265
11336
|
return (
|
|
@@ -11405,6 +11476,15 @@ var require_assistant_deployment_pb = __commonJS({
|
|
|
11405
11476
|
proto.assistant_api.AssistantApiDeployment.prototype.setIdealtimeoutmessage = function(value) {
|
|
11406
11477
|
return jspb.Message.setProto3StringField(this, 31, value);
|
|
11407
11478
|
};
|
|
11479
|
+
proto.assistant_api.AssistantApiDeployment.prototype.getIdealtimeoutbackoff = function() {
|
|
11480
|
+
return (
|
|
11481
|
+
/** @type {string} */
|
|
11482
|
+
jspb.Message.getFieldWithDefault(this, 32, "0")
|
|
11483
|
+
);
|
|
11484
|
+
};
|
|
11485
|
+
proto.assistant_api.AssistantApiDeployment.prototype.setIdealtimeoutbackoff = function(value) {
|
|
11486
|
+
return jspb.Message.setProto3StringIntField(this, 32, value);
|
|
11487
|
+
};
|
|
11408
11488
|
proto.assistant_api.CreateAssistantDeploymentRequest.oneofGroups_ = [[1, 2, 3, 4, 5]];
|
|
11409
11489
|
proto.assistant_api.CreateAssistantDeploymentRequest.DeploymentCase = {
|
|
11410
11490
|
DEPLOYMENT_NOT_SET: 0,
|
|
@@ -58138,54 +58218,226 @@ var require_integration_api_pb_service = __commonJS({
|
|
|
58138
58218
|
};
|
|
58139
58219
|
};
|
|
58140
58220
|
exports2.AzureServiceClient = AzureServiceClient2;
|
|
58141
|
-
var
|
|
58142
|
-
function
|
|
58221
|
+
var GeminiService = function() {
|
|
58222
|
+
function GeminiService2() {
|
|
58223
|
+
}
|
|
58224
|
+
GeminiService2.serviceName = "integration_api.GeminiService";
|
|
58225
|
+
return GeminiService2;
|
|
58226
|
+
}();
|
|
58227
|
+
GeminiService.Embedding = {
|
|
58228
|
+
methodName: "Embedding",
|
|
58229
|
+
service: GeminiService,
|
|
58230
|
+
requestStream: false,
|
|
58231
|
+
responseStream: false,
|
|
58232
|
+
requestType: integration_api_pb.EmbeddingRequest,
|
|
58233
|
+
responseType: integration_api_pb.EmbeddingResponse
|
|
58234
|
+
};
|
|
58235
|
+
GeminiService.Chat = {
|
|
58236
|
+
methodName: "Chat",
|
|
58237
|
+
service: GeminiService,
|
|
58238
|
+
requestStream: false,
|
|
58239
|
+
responseStream: false,
|
|
58240
|
+
requestType: integration_api_pb.ChatRequest,
|
|
58241
|
+
responseType: integration_api_pb.ChatResponse
|
|
58242
|
+
};
|
|
58243
|
+
GeminiService.StreamChat = {
|
|
58244
|
+
methodName: "StreamChat",
|
|
58245
|
+
service: GeminiService,
|
|
58246
|
+
requestStream: false,
|
|
58247
|
+
responseStream: true,
|
|
58248
|
+
requestType: integration_api_pb.ChatRequest,
|
|
58249
|
+
responseType: integration_api_pb.ChatResponse
|
|
58250
|
+
};
|
|
58251
|
+
GeminiService.VerifyCredential = {
|
|
58252
|
+
methodName: "VerifyCredential",
|
|
58253
|
+
service: GeminiService,
|
|
58254
|
+
requestStream: false,
|
|
58255
|
+
responseStream: false,
|
|
58256
|
+
requestType: integration_api_pb.VerifyCredentialRequest,
|
|
58257
|
+
responseType: integration_api_pb.VerifyCredentialResponse
|
|
58258
|
+
};
|
|
58259
|
+
exports2.GeminiService = GeminiService;
|
|
58260
|
+
function GeminiServiceClient(serviceHost, options) {
|
|
58261
|
+
this.serviceHost = serviceHost;
|
|
58262
|
+
this.options = options || {};
|
|
58263
|
+
}
|
|
58264
|
+
GeminiServiceClient.prototype.embedding = function embedding(requestMessage, metadata, callback) {
|
|
58265
|
+
if (arguments.length === 2) {
|
|
58266
|
+
callback = arguments[1];
|
|
58267
|
+
}
|
|
58268
|
+
var client = grpc3.unary(GeminiService.Embedding, {
|
|
58269
|
+
request: requestMessage,
|
|
58270
|
+
host: this.serviceHost,
|
|
58271
|
+
metadata,
|
|
58272
|
+
transport: this.options.transport,
|
|
58273
|
+
debug: this.options.debug,
|
|
58274
|
+
onEnd: function(response) {
|
|
58275
|
+
if (callback) {
|
|
58276
|
+
if (response.status !== grpc3.Code.OK) {
|
|
58277
|
+
var err = new Error(response.statusMessage);
|
|
58278
|
+
err.code = response.status;
|
|
58279
|
+
err.metadata = response.trailers;
|
|
58280
|
+
callback(err, null);
|
|
58281
|
+
} else {
|
|
58282
|
+
callback(null, response.message);
|
|
58283
|
+
}
|
|
58284
|
+
}
|
|
58285
|
+
}
|
|
58286
|
+
});
|
|
58287
|
+
return {
|
|
58288
|
+
cancel: function() {
|
|
58289
|
+
callback = null;
|
|
58290
|
+
client.close();
|
|
58291
|
+
}
|
|
58292
|
+
};
|
|
58293
|
+
};
|
|
58294
|
+
GeminiServiceClient.prototype.chat = function chat(requestMessage, metadata, callback) {
|
|
58295
|
+
if (arguments.length === 2) {
|
|
58296
|
+
callback = arguments[1];
|
|
58297
|
+
}
|
|
58298
|
+
var client = grpc3.unary(GeminiService.Chat, {
|
|
58299
|
+
request: requestMessage,
|
|
58300
|
+
host: this.serviceHost,
|
|
58301
|
+
metadata,
|
|
58302
|
+
transport: this.options.transport,
|
|
58303
|
+
debug: this.options.debug,
|
|
58304
|
+
onEnd: function(response) {
|
|
58305
|
+
if (callback) {
|
|
58306
|
+
if (response.status !== grpc3.Code.OK) {
|
|
58307
|
+
var err = new Error(response.statusMessage);
|
|
58308
|
+
err.code = response.status;
|
|
58309
|
+
err.metadata = response.trailers;
|
|
58310
|
+
callback(err, null);
|
|
58311
|
+
} else {
|
|
58312
|
+
callback(null, response.message);
|
|
58313
|
+
}
|
|
58314
|
+
}
|
|
58315
|
+
}
|
|
58316
|
+
});
|
|
58317
|
+
return {
|
|
58318
|
+
cancel: function() {
|
|
58319
|
+
callback = null;
|
|
58320
|
+
client.close();
|
|
58321
|
+
}
|
|
58322
|
+
};
|
|
58323
|
+
};
|
|
58324
|
+
GeminiServiceClient.prototype.streamChat = function streamChat(requestMessage, metadata) {
|
|
58325
|
+
var listeners = {
|
|
58326
|
+
data: [],
|
|
58327
|
+
end: [],
|
|
58328
|
+
status: []
|
|
58329
|
+
};
|
|
58330
|
+
var client = grpc3.invoke(GeminiService.StreamChat, {
|
|
58331
|
+
request: requestMessage,
|
|
58332
|
+
host: this.serviceHost,
|
|
58333
|
+
metadata,
|
|
58334
|
+
transport: this.options.transport,
|
|
58335
|
+
debug: this.options.debug,
|
|
58336
|
+
onMessage: function(responseMessage) {
|
|
58337
|
+
listeners.data.forEach(function(handler) {
|
|
58338
|
+
handler(responseMessage);
|
|
58339
|
+
});
|
|
58340
|
+
},
|
|
58341
|
+
onEnd: function(status, statusMessage, trailers) {
|
|
58342
|
+
listeners.status.forEach(function(handler) {
|
|
58343
|
+
handler({ code: status, details: statusMessage, metadata: trailers });
|
|
58344
|
+
});
|
|
58345
|
+
listeners.end.forEach(function(handler) {
|
|
58346
|
+
handler({ code: status, details: statusMessage, metadata: trailers });
|
|
58347
|
+
});
|
|
58348
|
+
listeners = null;
|
|
58349
|
+
}
|
|
58350
|
+
});
|
|
58351
|
+
return {
|
|
58352
|
+
on: function(type, handler) {
|
|
58353
|
+
listeners[type].push(handler);
|
|
58354
|
+
return this;
|
|
58355
|
+
},
|
|
58356
|
+
cancel: function() {
|
|
58357
|
+
listeners = null;
|
|
58358
|
+
client.close();
|
|
58359
|
+
}
|
|
58360
|
+
};
|
|
58361
|
+
};
|
|
58362
|
+
GeminiServiceClient.prototype.verifyCredential = function verifyCredential(requestMessage, metadata, callback) {
|
|
58363
|
+
if (arguments.length === 2) {
|
|
58364
|
+
callback = arguments[1];
|
|
58365
|
+
}
|
|
58366
|
+
var client = grpc3.unary(GeminiService.VerifyCredential, {
|
|
58367
|
+
request: requestMessage,
|
|
58368
|
+
host: this.serviceHost,
|
|
58369
|
+
metadata,
|
|
58370
|
+
transport: this.options.transport,
|
|
58371
|
+
debug: this.options.debug,
|
|
58372
|
+
onEnd: function(response) {
|
|
58373
|
+
if (callback) {
|
|
58374
|
+
if (response.status !== grpc3.Code.OK) {
|
|
58375
|
+
var err = new Error(response.statusMessage);
|
|
58376
|
+
err.code = response.status;
|
|
58377
|
+
err.metadata = response.trailers;
|
|
58378
|
+
callback(err, null);
|
|
58379
|
+
} else {
|
|
58380
|
+
callback(null, response.message);
|
|
58381
|
+
}
|
|
58382
|
+
}
|
|
58383
|
+
}
|
|
58384
|
+
});
|
|
58385
|
+
return {
|
|
58386
|
+
cancel: function() {
|
|
58387
|
+
callback = null;
|
|
58388
|
+
client.close();
|
|
58389
|
+
}
|
|
58390
|
+
};
|
|
58391
|
+
};
|
|
58392
|
+
exports2.GeminiServiceClient = GeminiServiceClient;
|
|
58393
|
+
var VertexAiService = function() {
|
|
58394
|
+
function VertexAiService2() {
|
|
58143
58395
|
}
|
|
58144
|
-
|
|
58145
|
-
return
|
|
58396
|
+
VertexAiService2.serviceName = "integration_api.VertexAiService";
|
|
58397
|
+
return VertexAiService2;
|
|
58146
58398
|
}();
|
|
58147
|
-
|
|
58399
|
+
VertexAiService.Embedding = {
|
|
58148
58400
|
methodName: "Embedding",
|
|
58149
|
-
service:
|
|
58401
|
+
service: VertexAiService,
|
|
58150
58402
|
requestStream: false,
|
|
58151
58403
|
responseStream: false,
|
|
58152
58404
|
requestType: integration_api_pb.EmbeddingRequest,
|
|
58153
58405
|
responseType: integration_api_pb.EmbeddingResponse
|
|
58154
58406
|
};
|
|
58155
|
-
|
|
58407
|
+
VertexAiService.Chat = {
|
|
58156
58408
|
methodName: "Chat",
|
|
58157
|
-
service:
|
|
58409
|
+
service: VertexAiService,
|
|
58158
58410
|
requestStream: false,
|
|
58159
58411
|
responseStream: false,
|
|
58160
58412
|
requestType: integration_api_pb.ChatRequest,
|
|
58161
58413
|
responseType: integration_api_pb.ChatResponse
|
|
58162
58414
|
};
|
|
58163
|
-
|
|
58415
|
+
VertexAiService.StreamChat = {
|
|
58164
58416
|
methodName: "StreamChat",
|
|
58165
|
-
service:
|
|
58417
|
+
service: VertexAiService,
|
|
58166
58418
|
requestStream: false,
|
|
58167
58419
|
responseStream: true,
|
|
58168
58420
|
requestType: integration_api_pb.ChatRequest,
|
|
58169
58421
|
responseType: integration_api_pb.ChatResponse
|
|
58170
58422
|
};
|
|
58171
|
-
|
|
58423
|
+
VertexAiService.VerifyCredential = {
|
|
58172
58424
|
methodName: "VerifyCredential",
|
|
58173
|
-
service:
|
|
58425
|
+
service: VertexAiService,
|
|
58174
58426
|
requestStream: false,
|
|
58175
58427
|
responseStream: false,
|
|
58176
58428
|
requestType: integration_api_pb.VerifyCredentialRequest,
|
|
58177
58429
|
responseType: integration_api_pb.VerifyCredentialResponse
|
|
58178
58430
|
};
|
|
58179
|
-
exports2.
|
|
58180
|
-
function
|
|
58431
|
+
exports2.VertexAiService = VertexAiService;
|
|
58432
|
+
function VertexAiServiceClient(serviceHost, options) {
|
|
58181
58433
|
this.serviceHost = serviceHost;
|
|
58182
58434
|
this.options = options || {};
|
|
58183
58435
|
}
|
|
58184
|
-
|
|
58436
|
+
VertexAiServiceClient.prototype.embedding = function embedding(requestMessage, metadata, callback) {
|
|
58185
58437
|
if (arguments.length === 2) {
|
|
58186
58438
|
callback = arguments[1];
|
|
58187
58439
|
}
|
|
58188
|
-
var client = grpc3.unary(
|
|
58440
|
+
var client = grpc3.unary(VertexAiService.Embedding, {
|
|
58189
58441
|
request: requestMessage,
|
|
58190
58442
|
host: this.serviceHost,
|
|
58191
58443
|
metadata,
|
|
@@ -58211,11 +58463,11 @@ var require_integration_api_pb_service = __commonJS({
|
|
|
58211
58463
|
}
|
|
58212
58464
|
};
|
|
58213
58465
|
};
|
|
58214
|
-
|
|
58466
|
+
VertexAiServiceClient.prototype.chat = function chat(requestMessage, metadata, callback) {
|
|
58215
58467
|
if (arguments.length === 2) {
|
|
58216
58468
|
callback = arguments[1];
|
|
58217
58469
|
}
|
|
58218
|
-
var client = grpc3.unary(
|
|
58470
|
+
var client = grpc3.unary(VertexAiService.Chat, {
|
|
58219
58471
|
request: requestMessage,
|
|
58220
58472
|
host: this.serviceHost,
|
|
58221
58473
|
metadata,
|
|
@@ -58241,13 +58493,13 @@ var require_integration_api_pb_service = __commonJS({
|
|
|
58241
58493
|
}
|
|
58242
58494
|
};
|
|
58243
58495
|
};
|
|
58244
|
-
|
|
58496
|
+
VertexAiServiceClient.prototype.streamChat = function streamChat(requestMessage, metadata) {
|
|
58245
58497
|
var listeners = {
|
|
58246
58498
|
data: [],
|
|
58247
58499
|
end: [],
|
|
58248
58500
|
status: []
|
|
58249
58501
|
};
|
|
58250
|
-
var client = grpc3.invoke(
|
|
58502
|
+
var client = grpc3.invoke(VertexAiService.StreamChat, {
|
|
58251
58503
|
request: requestMessage,
|
|
58252
58504
|
host: this.serviceHost,
|
|
58253
58505
|
metadata,
|
|
@@ -58279,11 +58531,11 @@ var require_integration_api_pb_service = __commonJS({
|
|
|
58279
58531
|
}
|
|
58280
58532
|
};
|
|
58281
58533
|
};
|
|
58282
|
-
|
|
58534
|
+
VertexAiServiceClient.prototype.verifyCredential = function verifyCredential(requestMessage, metadata, callback) {
|
|
58283
58535
|
if (arguments.length === 2) {
|
|
58284
58536
|
callback = arguments[1];
|
|
58285
58537
|
}
|
|
58286
|
-
var client = grpc3.unary(
|
|
58538
|
+
var client = grpc3.unary(VertexAiService.VerifyCredential, {
|
|
58287
58539
|
request: requestMessage,
|
|
58288
58540
|
host: this.serviceHost,
|
|
58289
58541
|
metadata,
|
|
@@ -58309,7 +58561,7 @@ var require_integration_api_pb_service = __commonJS({
|
|
|
58309
58561
|
}
|
|
58310
58562
|
};
|
|
58311
58563
|
};
|
|
58312
|
-
exports2.
|
|
58564
|
+
exports2.VertexAiServiceClient = VertexAiServiceClient;
|
|
58313
58565
|
var ReplicateService2 = function() {
|
|
58314
58566
|
function ReplicateService3() {
|
|
58315
58567
|
}
|
|
@@ -59680,8 +59932,6 @@ __export(index_exports, {
|
|
|
59680
59932
|
GetWebhookLog: () => GetWebhookLog,
|
|
59681
59933
|
Github: () => Github,
|
|
59682
59934
|
Google: () => Google,
|
|
59683
|
-
GoogleService: () => import_integration_api_pb_service.GoogleService,
|
|
59684
|
-
GoogleServiceClient: () => import_integration_api_pb_service.GoogleServiceClient,
|
|
59685
59935
|
HEADER_API_KEY: () => HEADER_API_KEY,
|
|
59686
59936
|
HEADER_AUTH_ID: () => HEADER_AUTH_ID,
|
|
59687
59937
|
HEADER_COLOR_DEPTH: () => HEADER_COLOR_DEPTH,
|
|
@@ -60176,7 +60426,7 @@ var AgentEvent = /* @__PURE__ */ ((AgentEvent2) => {
|
|
|
60176
60426
|
})(AgentEvent || {});
|
|
60177
60427
|
|
|
60178
60428
|
// src/agents/voice-agent.ts
|
|
60179
|
-
var
|
|
60429
|
+
var import_common_pb8 = __toESM(require_common_pb());
|
|
60180
60430
|
|
|
60181
60431
|
// src/types/message.ts
|
|
60182
60432
|
var MessageRole = /* @__PURE__ */ ((MessageRole2) => {
|
|
@@ -61863,47 +62113,15 @@ function arrayBufferToUint8(arrayBuffer) {
|
|
|
61863
62113
|
}
|
|
61864
62114
|
|
|
61865
62115
|
// src/types/agent-callback.ts
|
|
61866
|
-
var import_common_pb8 = __toESM(require_common_pb());
|
|
61867
|
-
|
|
61868
|
-
// src/utils/rapida_content.ts
|
|
61869
62116
|
var import_common_pb7 = __toESM(require_common_pb());
|
|
61870
|
-
var TEXT_CONTENT_FORMAT_RAW = "raw";
|
|
61871
|
-
var AUDIO_CONTENT_FORMAT_CHUNK = "chunk";
|
|
61872
|
-
var toTextContent = (str, format) => {
|
|
61873
|
-
const cnt = new import_common_pb7.Content();
|
|
61874
|
-
if (format) cnt.setContentformat(format);
|
|
61875
|
-
else cnt.setContentformat(TEXT_CONTENT_FORMAT_RAW);
|
|
61876
|
-
cnt.setContenttype("text" /* TEXT_CONTENT */);
|
|
61877
|
-
cnt.setContent(new TextEncoder().encode(str));
|
|
61878
|
-
return cnt;
|
|
61879
|
-
};
|
|
61880
|
-
var toStreamAudioContent = (raw) => {
|
|
61881
|
-
const cnt = new import_common_pb7.Content();
|
|
61882
|
-
cnt.setContentformat(AUDIO_CONTENT_FORMAT_CHUNK);
|
|
61883
|
-
cnt.setContenttype("audio" /* AUDIO_CONTENT */);
|
|
61884
|
-
cnt.setContent(raw);
|
|
61885
|
-
return cnt;
|
|
61886
|
-
};
|
|
61887
|
-
var toContentText = (cnt) => {
|
|
61888
|
-
if (!cnt) return "";
|
|
61889
|
-
return cnt.filter((x) => x.getContenttype() === "text").map((x) => {
|
|
61890
|
-
try {
|
|
61891
|
-
return new TextDecoder().decode(x.getContent());
|
|
61892
|
-
} catch (error) {
|
|
61893
|
-
return "";
|
|
61894
|
-
}
|
|
61895
|
-
}).join(" ");
|
|
61896
|
-
};
|
|
61897
|
-
|
|
61898
|
-
// src/types/agent-callback.ts
|
|
61899
62117
|
var ConversationUserMessage = class {
|
|
61900
62118
|
constructor(config) {
|
|
61901
62119
|
if (config) {
|
|
61902
62120
|
Object.assign(this, config.toObject());
|
|
61903
62121
|
switch (config.getMessageCase()) {
|
|
61904
|
-
case
|
|
61905
|
-
case
|
|
61906
|
-
case
|
|
62122
|
+
case import_common_pb7.AssistantConversationUserMessage.MessageCase.MESSAGE_NOT_SET:
|
|
62123
|
+
case import_common_pb7.AssistantConversationUserMessage.MessageCase.AUDIO:
|
|
62124
|
+
case import_common_pb7.AssistantConversationUserMessage.MessageCase.TEXT:
|
|
61907
62125
|
this.messageText = config.getText()?.getContent();
|
|
61908
62126
|
}
|
|
61909
62127
|
}
|
|
@@ -61914,25 +62132,14 @@ var ConversationAssistantMessage = class {
|
|
|
61914
62132
|
if (config) {
|
|
61915
62133
|
Object.assign(this, config.toObject());
|
|
61916
62134
|
switch (config.getMessageCase()) {
|
|
61917
|
-
case
|
|
61918
|
-
case
|
|
61919
|
-
case
|
|
62135
|
+
case import_common_pb7.AssistantConversationUserMessage.MessageCase.MESSAGE_NOT_SET:
|
|
62136
|
+
case import_common_pb7.AssistantConversationUserMessage.MessageCase.AUDIO:
|
|
62137
|
+
case import_common_pb7.AssistantConversationUserMessage.MessageCase.TEXT:
|
|
61920
62138
|
this.messageText = config.getText()?.getContent();
|
|
61921
62139
|
}
|
|
61922
62140
|
}
|
|
61923
62141
|
}
|
|
61924
62142
|
};
|
|
61925
|
-
var ConversationMessage = class {
|
|
61926
|
-
constructor(config) {
|
|
61927
|
-
if (config) {
|
|
61928
|
-
Object.assign(this, config.toObject());
|
|
61929
|
-
this.userMessage = toContentText(config.getRequest()?.getContentsList());
|
|
61930
|
-
this.systemMessage = toContentText(
|
|
61931
|
-
config.getResponse()?.getContentsList()
|
|
61932
|
-
);
|
|
61933
|
-
}
|
|
61934
|
-
}
|
|
61935
|
-
};
|
|
61936
62143
|
|
|
61937
62144
|
// src/agents/voice-agent.ts
|
|
61938
62145
|
var VoiceAgent = class extends Agent {
|
|
@@ -62184,13 +62391,13 @@ var VoiceAgent = class extends Agent {
|
|
|
62184
62391
|
onHandleInterruption = (interruptionData) => {
|
|
62185
62392
|
if (interruptionData) {
|
|
62186
62393
|
switch (interruptionData.getType()) {
|
|
62187
|
-
case
|
|
62394
|
+
case import_common_pb8.AssistantConversationInterruption.InterruptionType.INTERRUPTION_TYPE_UNSPECIFIED:
|
|
62188
62395
|
console.log("Unspecified interruption type");
|
|
62189
62396
|
break;
|
|
62190
|
-
case
|
|
62397
|
+
case import_common_pb8.AssistantConversationInterruption.InterruptionType.INTERRUPTION_TYPE_VAD:
|
|
62191
62398
|
this.fadeOutAudio();
|
|
62192
62399
|
break;
|
|
62193
|
-
case
|
|
62400
|
+
case import_common_pb8.AssistantConversationInterruption.InterruptionType.INTERRUPTION_TYPE_WORD:
|
|
62194
62401
|
if (this.agentMessages.length > 0) {
|
|
62195
62402
|
const lastIndex = this.agentMessages.length - 1;
|
|
62196
62403
|
this.agentMessages[lastIndex] = {
|
|
@@ -62217,9 +62424,9 @@ var VoiceAgent = class extends Agent {
|
|
|
62217
62424
|
onHandleUser = (userContent) => {
|
|
62218
62425
|
if (userContent) {
|
|
62219
62426
|
switch (userContent.getMessageCase()) {
|
|
62220
|
-
case
|
|
62221
|
-
case
|
|
62222
|
-
case
|
|
62427
|
+
case import_common_pb8.AssistantConversationUserMessage.MessageCase.MESSAGE_NOT_SET:
|
|
62428
|
+
case import_common_pb8.AssistantConversationUserMessage.MessageCase.AUDIO:
|
|
62429
|
+
case import_common_pb8.AssistantConversationUserMessage.MessageCase.TEXT:
|
|
62223
62430
|
const agentTranscript = userContent.getText()?.getContent();
|
|
62224
62431
|
if (agentTranscript) {
|
|
62225
62432
|
if (this.agentMessages.length > 0) {
|
|
@@ -62251,14 +62458,14 @@ var VoiceAgent = class extends Agent {
|
|
|
62251
62458
|
onHandleAssistant = (systemContent) => {
|
|
62252
62459
|
if (systemContent) {
|
|
62253
62460
|
switch (systemContent.getMessageCase()) {
|
|
62254
|
-
case
|
|
62255
|
-
case
|
|
62461
|
+
case import_common_pb8.AssistantConversationAssistantMessage.MessageCase.MESSAGE_NOT_SET:
|
|
62462
|
+
case import_common_pb8.AssistantConversationAssistantMessage.MessageCase.AUDIO:
|
|
62256
62463
|
const content = systemContent.getAudio();
|
|
62257
62464
|
if (content) {
|
|
62258
62465
|
const audioData = content.getContent_asU8();
|
|
62259
62466
|
this.addAudioChunk(new Uint8Array(audioData).buffer);
|
|
62260
62467
|
}
|
|
62261
|
-
case
|
|
62468
|
+
case import_common_pb8.AssistantConversationAssistantMessage.MessageCase.TEXT:
|
|
62262
62469
|
const systemTranscript = systemContent.getText()?.getContent();
|
|
62263
62470
|
if (systemTranscript) {
|
|
62264
62471
|
if (systemContent.getCompleted()) {
|
|
@@ -62342,8 +62549,6 @@ var VoiceAgent = class extends Agent {
|
|
|
62342
62549
|
const conversation = response.getConfiguration();
|
|
62343
62550
|
if (!conversation?.getAssistantconversationid()) return;
|
|
62344
62551
|
break;
|
|
62345
|
-
case import_talk_api_pb2.AssistantMessagingResponse.DataCase.MESSAGE:
|
|
62346
|
-
break;
|
|
62347
62552
|
default:
|
|
62348
62553
|
break;
|
|
62349
62554
|
}
|
|
@@ -62358,7 +62563,7 @@ var VoiceAgent = class extends Agent {
|
|
|
62358
62563
|
case import_talk_api_pb2.AssistantMessagingResponse.DataCase.DATA_NOT_SET:
|
|
62359
62564
|
break;
|
|
62360
62565
|
case import_talk_api_pb2.AssistantMessagingResponse.DataCase.ACTION:
|
|
62361
|
-
if (response.getAction()?.getAction() ===
|
|
62566
|
+
if (response.getAction()?.getAction() === import_common_pb8.AssistantConversationAction.ActionType.END_CONVERSATION) {
|
|
62362
62567
|
await this.disconnect();
|
|
62363
62568
|
}
|
|
62364
62569
|
if (agentCallback && agentCallback?.onAction) {
|
|
@@ -62393,13 +62598,6 @@ var VoiceAgent = class extends Agent {
|
|
|
62393
62598
|
const cnvId = response.getConfiguration()?.getAssistantconversationid();
|
|
62394
62599
|
if (cnvId) this.changeConversation(cnvId);
|
|
62395
62600
|
break;
|
|
62396
|
-
case import_talk_api_pb2.AssistantMessagingResponse.DataCase.MESSAGE:
|
|
62397
|
-
if (agentCallback && agentCallback?.onMessage) {
|
|
62398
|
-
agentCallback.onMessage(
|
|
62399
|
-
new ConversationMessage(response.getMessage())
|
|
62400
|
-
);
|
|
62401
|
-
}
|
|
62402
|
-
break;
|
|
62403
62601
|
default:
|
|
62404
62602
|
break;
|
|
62405
62603
|
}
|
|
@@ -62435,6 +62633,36 @@ var VoiceAgent = class extends Agent {
|
|
|
62435
62633
|
};
|
|
62436
62634
|
};
|
|
62437
62635
|
|
|
62636
|
+
// src/utils/rapida_content.ts
|
|
62637
|
+
var import_common_pb9 = __toESM(require_common_pb());
|
|
62638
|
+
var TEXT_CONTENT_FORMAT_RAW = "raw";
|
|
62639
|
+
var AUDIO_CONTENT_FORMAT_CHUNK = "chunk";
|
|
62640
|
+
var toTextContent = (str, format) => {
|
|
62641
|
+
const cnt = new import_common_pb9.Content();
|
|
62642
|
+
if (format) cnt.setContentformat(format);
|
|
62643
|
+
else cnt.setContentformat(TEXT_CONTENT_FORMAT_RAW);
|
|
62644
|
+
cnt.setContenttype("text" /* TEXT_CONTENT */);
|
|
62645
|
+
cnt.setContent(new TextEncoder().encode(str));
|
|
62646
|
+
return cnt;
|
|
62647
|
+
};
|
|
62648
|
+
var toStreamAudioContent = (raw) => {
|
|
62649
|
+
const cnt = new import_common_pb9.Content();
|
|
62650
|
+
cnt.setContentformat(AUDIO_CONTENT_FORMAT_CHUNK);
|
|
62651
|
+
cnt.setContenttype("audio" /* AUDIO_CONTENT */);
|
|
62652
|
+
cnt.setContent(raw);
|
|
62653
|
+
return cnt;
|
|
62654
|
+
};
|
|
62655
|
+
var toContentText = (cnt) => {
|
|
62656
|
+
if (!cnt) return "";
|
|
62657
|
+
return cnt.filter((x) => x.getContenttype() === "text").map((x) => {
|
|
62658
|
+
try {
|
|
62659
|
+
return new TextDecoder().decode(x.getContent());
|
|
62660
|
+
} catch (error) {
|
|
62661
|
+
return "";
|
|
62662
|
+
}
|
|
62663
|
+
}).join(" ");
|
|
62664
|
+
};
|
|
62665
|
+
|
|
62438
62666
|
// src/hooks/use-message-feedback.ts
|
|
62439
62667
|
var React = __toESM(require("react"));
|
|
62440
62668
|
function useMessageFeedback(agent) {
|
|
@@ -64880,8 +65108,6 @@ function GetNotificationSetting(clientCfg, request, auth) {
|
|
|
64880
65108
|
GetWebhookLog,
|
|
64881
65109
|
Github,
|
|
64882
65110
|
Google,
|
|
64883
|
-
GoogleService,
|
|
64884
|
-
GoogleServiceClient,
|
|
64885
65111
|
HEADER_API_KEY,
|
|
64886
65112
|
HEADER_AUTH_ID,
|
|
64887
65113
|
HEADER_COLOR_DEPTH,
|