@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
|
@@ -3650,8 +3650,8 @@ var require_common_pb = __commonJS({
|
|
|
3650
3650
|
id: jspb.Message.getFieldWithDefault(msg, 1, "0"),
|
|
3651
3651
|
messageid: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
3652
3652
|
assistantconversationid: jspb.Message.getFieldWithDefault(msg, 2, "0"),
|
|
3653
|
-
|
|
3654
|
-
|
|
3653
|
+
role: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
3654
|
+
body: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
|
3655
3655
|
source: jspb.Message.getFieldWithDefault(msg, 9, ""),
|
|
3656
3656
|
metricsList: jspb.Message.toObjectList(
|
|
3657
3657
|
msg.getMetricsList(),
|
|
@@ -3710,15 +3710,19 @@ var require_common_pb = __commonJS({
|
|
|
3710
3710
|
);
|
|
3711
3711
|
msg.setAssistantconversationid(value);
|
|
3712
3712
|
break;
|
|
3713
|
-
case
|
|
3714
|
-
var value =
|
|
3715
|
-
|
|
3716
|
-
|
|
3713
|
+
case 4:
|
|
3714
|
+
var value = (
|
|
3715
|
+
/** @type {string} */
|
|
3716
|
+
reader.readString()
|
|
3717
|
+
);
|
|
3718
|
+
msg.setRole(value);
|
|
3717
3719
|
break;
|
|
3718
|
-
case
|
|
3719
|
-
var value =
|
|
3720
|
-
|
|
3721
|
-
|
|
3720
|
+
case 5:
|
|
3721
|
+
var value = (
|
|
3722
|
+
/** @type {string} */
|
|
3723
|
+
reader.readString()
|
|
3724
|
+
);
|
|
3725
|
+
msg.setBody(value);
|
|
3722
3726
|
break;
|
|
3723
3727
|
case 9:
|
|
3724
3728
|
var value = (
|
|
@@ -3817,20 +3821,18 @@ var require_common_pb = __commonJS({
|
|
|
3817
3821
|
f
|
|
3818
3822
|
);
|
|
3819
3823
|
}
|
|
3820
|
-
f = message.
|
|
3821
|
-
if (f
|
|
3822
|
-
writer.
|
|
3823
|
-
|
|
3824
|
-
f
|
|
3825
|
-
proto.Message.serializeBinaryToWriter
|
|
3824
|
+
f = message.getRole();
|
|
3825
|
+
if (f.length > 0) {
|
|
3826
|
+
writer.writeString(
|
|
3827
|
+
4,
|
|
3828
|
+
f
|
|
3826
3829
|
);
|
|
3827
3830
|
}
|
|
3828
|
-
f = message.
|
|
3829
|
-
if (f
|
|
3830
|
-
writer.
|
|
3831
|
-
|
|
3832
|
-
f
|
|
3833
|
-
proto.Message.serializeBinaryToWriter
|
|
3831
|
+
f = message.getBody();
|
|
3832
|
+
if (f.length > 0) {
|
|
3833
|
+
writer.writeString(
|
|
3834
|
+
5,
|
|
3835
|
+
f
|
|
3834
3836
|
);
|
|
3835
3837
|
}
|
|
3836
3838
|
f = message.getSource();
|
|
@@ -3935,35 +3937,23 @@ var require_common_pb = __commonJS({
|
|
|
3935
3937
|
proto.AssistantConversationMessage.prototype.setAssistantconversationid = function(value) {
|
|
3936
3938
|
return jspb.Message.setProto3StringIntField(this, 2, value);
|
|
3937
3939
|
};
|
|
3938
|
-
proto.AssistantConversationMessage.prototype.
|
|
3940
|
+
proto.AssistantConversationMessage.prototype.getRole = function() {
|
|
3939
3941
|
return (
|
|
3940
|
-
/** @type{
|
|
3941
|
-
jspb.Message.
|
|
3942
|
+
/** @type {string} */
|
|
3943
|
+
jspb.Message.getFieldWithDefault(this, 4, "")
|
|
3942
3944
|
);
|
|
3943
3945
|
};
|
|
3944
|
-
proto.AssistantConversationMessage.prototype.
|
|
3945
|
-
return jspb.Message.
|
|
3946
|
-
};
|
|
3947
|
-
proto.AssistantConversationMessage.prototype.clearRequest = function() {
|
|
3948
|
-
return this.setRequest(void 0);
|
|
3949
|
-
};
|
|
3950
|
-
proto.AssistantConversationMessage.prototype.hasRequest = function() {
|
|
3951
|
-
return jspb.Message.getField(this, 5) != null;
|
|
3946
|
+
proto.AssistantConversationMessage.prototype.setRole = function(value) {
|
|
3947
|
+
return jspb.Message.setProto3StringField(this, 4, value);
|
|
3952
3948
|
};
|
|
3953
|
-
proto.AssistantConversationMessage.prototype.
|
|
3949
|
+
proto.AssistantConversationMessage.prototype.getBody = function() {
|
|
3954
3950
|
return (
|
|
3955
|
-
/** @type{
|
|
3956
|
-
jspb.Message.
|
|
3951
|
+
/** @type {string} */
|
|
3952
|
+
jspb.Message.getFieldWithDefault(this, 5, "")
|
|
3957
3953
|
);
|
|
3958
3954
|
};
|
|
3959
|
-
proto.AssistantConversationMessage.prototype.
|
|
3960
|
-
return jspb.Message.
|
|
3961
|
-
};
|
|
3962
|
-
proto.AssistantConversationMessage.prototype.clearResponse = function() {
|
|
3963
|
-
return this.setResponse(void 0);
|
|
3964
|
-
};
|
|
3965
|
-
proto.AssistantConversationMessage.prototype.hasResponse = function() {
|
|
3966
|
-
return jspb.Message.getField(this, 7) != null;
|
|
3955
|
+
proto.AssistantConversationMessage.prototype.setBody = function(value) {
|
|
3956
|
+
return jspb.Message.setProto3StringField(this, 5, value);
|
|
3967
3957
|
};
|
|
3968
3958
|
proto.AssistantConversationMessage.prototype.getSource = function() {
|
|
3969
3959
|
return (
|
|
@@ -7519,14 +7509,13 @@ var require_talk_api_pb = __commonJS({
|
|
|
7519
7509
|
proto.talk_api.AssistantMessagingRequest.prototype.hasMessage = function() {
|
|
7520
7510
|
return jspb.Message.getField(this, 3) != null;
|
|
7521
7511
|
};
|
|
7522
|
-
proto.talk_api.AssistantMessagingResponse.oneofGroups_ = [[9, 10, 11, 12,
|
|
7512
|
+
proto.talk_api.AssistantMessagingResponse.oneofGroups_ = [[9, 10, 11, 12, 14, 15]];
|
|
7523
7513
|
proto.talk_api.AssistantMessagingResponse.DataCase = {
|
|
7524
7514
|
DATA_NOT_SET: 0,
|
|
7525
7515
|
CONFIGURATION: 9,
|
|
7526
7516
|
INTERRUPTION: 10,
|
|
7527
7517
|
USER: 11,
|
|
7528
7518
|
ASSISTANT: 12,
|
|
7529
|
-
MESSAGE: 13,
|
|
7530
7519
|
ACTION: 14,
|
|
7531
7520
|
ERROR: 15
|
|
7532
7521
|
};
|
|
@@ -7548,7 +7537,6 @@ var require_talk_api_pb = __commonJS({
|
|
|
7548
7537
|
interruption: (f = msg.getInterruption()) && common_pb.AssistantConversationInterruption.toObject(includeInstance, f),
|
|
7549
7538
|
user: (f = msg.getUser()) && common_pb.AssistantConversationUserMessage.toObject(includeInstance, f),
|
|
7550
7539
|
assistant: (f = msg.getAssistant()) && common_pb.AssistantConversationAssistantMessage.toObject(includeInstance, f),
|
|
7551
|
-
message: (f = msg.getMessage()) && common_pb.AssistantConversationMessage.toObject(includeInstance, f),
|
|
7552
7540
|
action: (f = msg.getAction()) && common_pb.AssistantConversationAction.toObject(includeInstance, f),
|
|
7553
7541
|
error: (f = msg.getError()) && common_pb.Error.toObject(includeInstance, f)
|
|
7554
7542
|
};
|
|
@@ -7604,11 +7592,6 @@ var require_talk_api_pb = __commonJS({
|
|
|
7604
7592
|
reader.readMessage(value, common_pb.AssistantConversationAssistantMessage.deserializeBinaryFromReader);
|
|
7605
7593
|
msg.setAssistant(value);
|
|
7606
7594
|
break;
|
|
7607
|
-
case 13:
|
|
7608
|
-
var value = new common_pb.AssistantConversationMessage();
|
|
7609
|
-
reader.readMessage(value, common_pb.AssistantConversationMessage.deserializeBinaryFromReader);
|
|
7610
|
-
msg.setMessage(value);
|
|
7611
|
-
break;
|
|
7612
7595
|
case 14:
|
|
7613
7596
|
var value = new common_pb.AssistantConversationAction();
|
|
7614
7597
|
reader.readMessage(value, common_pb.AssistantConversationAction.deserializeBinaryFromReader);
|
|
@@ -7679,14 +7662,6 @@ var require_talk_api_pb = __commonJS({
|
|
|
7679
7662
|
common_pb.AssistantConversationAssistantMessage.serializeBinaryToWriter
|
|
7680
7663
|
);
|
|
7681
7664
|
}
|
|
7682
|
-
f = message.getMessage();
|
|
7683
|
-
if (f != null) {
|
|
7684
|
-
writer.writeMessage(
|
|
7685
|
-
13,
|
|
7686
|
-
f,
|
|
7687
|
-
common_pb.AssistantConversationMessage.serializeBinaryToWriter
|
|
7688
|
-
);
|
|
7689
|
-
}
|
|
7690
7665
|
f = message.getAction();
|
|
7691
7666
|
if (f != null) {
|
|
7692
7667
|
writer.writeMessage(
|
|
@@ -7782,21 +7757,6 @@ var require_talk_api_pb = __commonJS({
|
|
|
7782
7757
|
proto.talk_api.AssistantMessagingResponse.prototype.hasAssistant = function() {
|
|
7783
7758
|
return jspb.Message.getField(this, 12) != null;
|
|
7784
7759
|
};
|
|
7785
|
-
proto.talk_api.AssistantMessagingResponse.prototype.getMessage = function() {
|
|
7786
|
-
return (
|
|
7787
|
-
/** @type{?proto.AssistantConversationMessage} */
|
|
7788
|
-
jspb.Message.getWrapperField(this, common_pb.AssistantConversationMessage, 13)
|
|
7789
|
-
);
|
|
7790
|
-
};
|
|
7791
|
-
proto.talk_api.AssistantMessagingResponse.prototype.setMessage = function(value) {
|
|
7792
|
-
return jspb.Message.setOneofWrapperField(this, 13, proto.talk_api.AssistantMessagingResponse.oneofGroups_[0], value);
|
|
7793
|
-
};
|
|
7794
|
-
proto.talk_api.AssistantMessagingResponse.prototype.clearMessage = function() {
|
|
7795
|
-
return this.setMessage(void 0);
|
|
7796
|
-
};
|
|
7797
|
-
proto.talk_api.AssistantMessagingResponse.prototype.hasMessage = function() {
|
|
7798
|
-
return jspb.Message.getField(this, 13) != null;
|
|
7799
|
-
};
|
|
7800
7760
|
proto.talk_api.AssistantMessagingResponse.prototype.getAction = function() {
|
|
7801
7761
|
return (
|
|
7802
7762
|
/** @type{?proto.AssistantConversationAction} */
|
|
@@ -9279,7 +9239,8 @@ var require_assistant_deployment_pb = __commonJS({
|
|
|
9279
9239
|
status: jspb.Message.getFieldWithDefault(msg, 28, ""),
|
|
9280
9240
|
maxsessionduration: jspb.Message.getFieldWithDefault(msg, 29, "0"),
|
|
9281
9241
|
idealtimeout: jspb.Message.getFieldWithDefault(msg, 30, "0"),
|
|
9282
|
-
idealtimeoutmessage: jspb.Message.getFieldWithDefault(msg, 31, "")
|
|
9242
|
+
idealtimeoutmessage: jspb.Message.getFieldWithDefault(msg, 31, ""),
|
|
9243
|
+
idealtimeoutbackoff: jspb.Message.getFieldWithDefault(msg, 32, "0")
|
|
9283
9244
|
};
|
|
9284
9245
|
if (includeInstance) {
|
|
9285
9246
|
obj.$jspbMessageInstance = msg;
|
|
@@ -9417,6 +9378,13 @@ var require_assistant_deployment_pb = __commonJS({
|
|
|
9417
9378
|
);
|
|
9418
9379
|
msg.setIdealtimeoutmessage(value);
|
|
9419
9380
|
break;
|
|
9381
|
+
case 32:
|
|
9382
|
+
var value = (
|
|
9383
|
+
/** @type {string} */
|
|
9384
|
+
reader.readUint64String()
|
|
9385
|
+
);
|
|
9386
|
+
msg.setIdealtimeoutbackoff(value);
|
|
9387
|
+
break;
|
|
9420
9388
|
default:
|
|
9421
9389
|
reader.skipField();
|
|
9422
9390
|
break;
|
|
@@ -9563,6 +9531,13 @@ var require_assistant_deployment_pb = __commonJS({
|
|
|
9563
9531
|
f
|
|
9564
9532
|
);
|
|
9565
9533
|
}
|
|
9534
|
+
f = message.getIdealtimeoutbackoff();
|
|
9535
|
+
if (parseInt(f, 10) !== 0) {
|
|
9536
|
+
writer.writeUint64String(
|
|
9537
|
+
32,
|
|
9538
|
+
f
|
|
9539
|
+
);
|
|
9540
|
+
}
|
|
9566
9541
|
};
|
|
9567
9542
|
proto.assistant_api.AssistantWebpluginDeployment.prototype.getId = function() {
|
|
9568
9543
|
return (
|
|
@@ -9768,6 +9743,15 @@ var require_assistant_deployment_pb = __commonJS({
|
|
|
9768
9743
|
proto.assistant_api.AssistantWebpluginDeployment.prototype.setIdealtimeoutmessage = function(value) {
|
|
9769
9744
|
return jspb.Message.setProto3StringField(this, 31, value);
|
|
9770
9745
|
};
|
|
9746
|
+
proto.assistant_api.AssistantWebpluginDeployment.prototype.getIdealtimeoutbackoff = function() {
|
|
9747
|
+
return (
|
|
9748
|
+
/** @type {string} */
|
|
9749
|
+
jspb.Message.getFieldWithDefault(this, 32, "0")
|
|
9750
|
+
);
|
|
9751
|
+
};
|
|
9752
|
+
proto.assistant_api.AssistantWebpluginDeployment.prototype.setIdealtimeoutbackoff = function(value) {
|
|
9753
|
+
return jspb.Message.setProto3StringIntField(this, 32, value);
|
|
9754
|
+
};
|
|
9771
9755
|
proto.assistant_api.AssistantPhoneDeployment.repeatedFields_ = [17];
|
|
9772
9756
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
9773
9757
|
proto.assistant_api.AssistantPhoneDeployment.prototype.toObject = function(opt_includeInstance) {
|
|
@@ -9792,7 +9776,8 @@ var require_assistant_deployment_pb = __commonJS({
|
|
|
9792
9776
|
status: jspb.Message.getFieldWithDefault(msg, 28, ""),
|
|
9793
9777
|
maxsessionduration: jspb.Message.getFieldWithDefault(msg, 29, "0"),
|
|
9794
9778
|
idealtimeout: jspb.Message.getFieldWithDefault(msg, 30, "0"),
|
|
9795
|
-
idealtimeoutmessage: jspb.Message.getFieldWithDefault(msg, 31, "")
|
|
9779
|
+
idealtimeoutmessage: jspb.Message.getFieldWithDefault(msg, 31, ""),
|
|
9780
|
+
idealtimeoutbackoff: jspb.Message.getFieldWithDefault(msg, 32, "0")
|
|
9796
9781
|
};
|
|
9797
9782
|
if (includeInstance) {
|
|
9798
9783
|
obj.$jspbMessageInstance = msg;
|
|
@@ -9900,6 +9885,13 @@ var require_assistant_deployment_pb = __commonJS({
|
|
|
9900
9885
|
);
|
|
9901
9886
|
msg.setIdealtimeoutmessage(value);
|
|
9902
9887
|
break;
|
|
9888
|
+
case 32:
|
|
9889
|
+
var value = (
|
|
9890
|
+
/** @type {string} */
|
|
9891
|
+
reader.readUint64String()
|
|
9892
|
+
);
|
|
9893
|
+
msg.setIdealtimeoutbackoff(value);
|
|
9894
|
+
break;
|
|
9903
9895
|
default:
|
|
9904
9896
|
reader.skipField();
|
|
9905
9897
|
break;
|
|
@@ -10019,6 +10011,13 @@ var require_assistant_deployment_pb = __commonJS({
|
|
|
10019
10011
|
f
|
|
10020
10012
|
);
|
|
10021
10013
|
}
|
|
10014
|
+
f = message.getIdealtimeoutbackoff();
|
|
10015
|
+
if (parseInt(f, 10) !== 0) {
|
|
10016
|
+
writer.writeUint64String(
|
|
10017
|
+
32,
|
|
10018
|
+
f
|
|
10019
|
+
);
|
|
10020
|
+
}
|
|
10022
10021
|
};
|
|
10023
10022
|
proto.assistant_api.AssistantPhoneDeployment.prototype.getId = function() {
|
|
10024
10023
|
return (
|
|
@@ -10188,6 +10187,15 @@ var require_assistant_deployment_pb = __commonJS({
|
|
|
10188
10187
|
proto.assistant_api.AssistantPhoneDeployment.prototype.setIdealtimeoutmessage = function(value) {
|
|
10189
10188
|
return jspb.Message.setProto3StringField(this, 31, value);
|
|
10190
10189
|
};
|
|
10190
|
+
proto.assistant_api.AssistantPhoneDeployment.prototype.getIdealtimeoutbackoff = function() {
|
|
10191
|
+
return (
|
|
10192
|
+
/** @type {string} */
|
|
10193
|
+
jspb.Message.getFieldWithDefault(this, 32, "0")
|
|
10194
|
+
);
|
|
10195
|
+
};
|
|
10196
|
+
proto.assistant_api.AssistantPhoneDeployment.prototype.setIdealtimeoutbackoff = function(value) {
|
|
10197
|
+
return jspb.Message.setProto3StringIntField(this, 32, value);
|
|
10198
|
+
};
|
|
10191
10199
|
proto.assistant_api.AssistantWhatsappDeployment.repeatedFields_ = [17];
|
|
10192
10200
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
10193
10201
|
proto.assistant_api.AssistantWhatsappDeployment.prototype.toObject = function(opt_includeInstance) {
|
|
@@ -10213,7 +10221,8 @@ var require_assistant_deployment_pb = __commonJS({
|
|
|
10213
10221
|
status: jspb.Message.getFieldWithDefault(msg, 28, ""),
|
|
10214
10222
|
maxsessionduration: jspb.Message.getFieldWithDefault(msg, 29, "0"),
|
|
10215
10223
|
idealtimeout: jspb.Message.getFieldWithDefault(msg, 30, "0"),
|
|
10216
|
-
idealtimeoutmessage: jspb.Message.getFieldWithDefault(msg, 31, "")
|
|
10224
|
+
idealtimeoutmessage: jspb.Message.getFieldWithDefault(msg, 31, ""),
|
|
10225
|
+
idealtimeoutbackoff: jspb.Message.getFieldWithDefault(msg, 32, "0")
|
|
10217
10226
|
};
|
|
10218
10227
|
if (includeInstance) {
|
|
10219
10228
|
obj.$jspbMessageInstance = msg;
|
|
@@ -10328,6 +10337,13 @@ var require_assistant_deployment_pb = __commonJS({
|
|
|
10328
10337
|
);
|
|
10329
10338
|
msg.setIdealtimeoutmessage(value);
|
|
10330
10339
|
break;
|
|
10340
|
+
case 32:
|
|
10341
|
+
var value = (
|
|
10342
|
+
/** @type {string} */
|
|
10343
|
+
reader.readUint64String()
|
|
10344
|
+
);
|
|
10345
|
+
msg.setIdealtimeoutbackoff(value);
|
|
10346
|
+
break;
|
|
10331
10347
|
default:
|
|
10332
10348
|
reader.skipField();
|
|
10333
10349
|
break;
|
|
@@ -10454,6 +10470,13 @@ var require_assistant_deployment_pb = __commonJS({
|
|
|
10454
10470
|
f
|
|
10455
10471
|
);
|
|
10456
10472
|
}
|
|
10473
|
+
f = message.getIdealtimeoutbackoff();
|
|
10474
|
+
if (parseInt(f, 10) !== 0) {
|
|
10475
|
+
writer.writeUint64String(
|
|
10476
|
+
32,
|
|
10477
|
+
f
|
|
10478
|
+
);
|
|
10479
|
+
}
|
|
10457
10480
|
};
|
|
10458
10481
|
proto.assistant_api.AssistantWhatsappDeployment.prototype.getId = function() {
|
|
10459
10482
|
return (
|
|
@@ -10632,6 +10655,15 @@ var require_assistant_deployment_pb = __commonJS({
|
|
|
10632
10655
|
proto.assistant_api.AssistantWhatsappDeployment.prototype.setIdealtimeoutmessage = function(value) {
|
|
10633
10656
|
return jspb.Message.setProto3StringField(this, 31, value);
|
|
10634
10657
|
};
|
|
10658
|
+
proto.assistant_api.AssistantWhatsappDeployment.prototype.getIdealtimeoutbackoff = function() {
|
|
10659
|
+
return (
|
|
10660
|
+
/** @type {string} */
|
|
10661
|
+
jspb.Message.getFieldWithDefault(this, 32, "0")
|
|
10662
|
+
);
|
|
10663
|
+
};
|
|
10664
|
+
proto.assistant_api.AssistantWhatsappDeployment.prototype.setIdealtimeoutbackoff = function(value) {
|
|
10665
|
+
return jspb.Message.setProto3StringIntField(this, 32, value);
|
|
10666
|
+
};
|
|
10635
10667
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
10636
10668
|
proto.assistant_api.AssistantDebuggerDeployment.prototype.toObject = function(opt_includeInstance) {
|
|
10637
10669
|
return proto.assistant_api.AssistantDebuggerDeployment.toObject(opt_includeInstance, this);
|
|
@@ -10650,7 +10682,8 @@ var require_assistant_deployment_pb = __commonJS({
|
|
|
10650
10682
|
status: jspb.Message.getFieldWithDefault(msg, 28, ""),
|
|
10651
10683
|
maxsessionduration: jspb.Message.getFieldWithDefault(msg, 29, "0"),
|
|
10652
10684
|
idealtimeout: jspb.Message.getFieldWithDefault(msg, 30, "0"),
|
|
10653
|
-
idealtimeoutmessage: jspb.Message.getFieldWithDefault(msg, 31, "")
|
|
10685
|
+
idealtimeoutmessage: jspb.Message.getFieldWithDefault(msg, 31, ""),
|
|
10686
|
+
idealtimeoutbackoff: jspb.Message.getFieldWithDefault(msg, 32, "0")
|
|
10654
10687
|
};
|
|
10655
10688
|
if (includeInstance) {
|
|
10656
10689
|
obj.$jspbMessageInstance = msg;
|
|
@@ -10753,6 +10786,13 @@ var require_assistant_deployment_pb = __commonJS({
|
|
|
10753
10786
|
);
|
|
10754
10787
|
msg.setIdealtimeoutmessage(value);
|
|
10755
10788
|
break;
|
|
10789
|
+
case 32:
|
|
10790
|
+
var value = (
|
|
10791
|
+
/** @type {string} */
|
|
10792
|
+
reader.readUint64String()
|
|
10793
|
+
);
|
|
10794
|
+
msg.setIdealtimeoutbackoff(value);
|
|
10795
|
+
break;
|
|
10756
10796
|
default:
|
|
10757
10797
|
reader.skipField();
|
|
10758
10798
|
break;
|
|
@@ -10864,6 +10904,13 @@ var require_assistant_deployment_pb = __commonJS({
|
|
|
10864
10904
|
f
|
|
10865
10905
|
);
|
|
10866
10906
|
}
|
|
10907
|
+
f = message.getIdealtimeoutbackoff();
|
|
10908
|
+
if (parseInt(f, 10) !== 0) {
|
|
10909
|
+
writer.writeUint64String(
|
|
10910
|
+
32,
|
|
10911
|
+
f
|
|
10912
|
+
);
|
|
10913
|
+
}
|
|
10867
10914
|
};
|
|
10868
10915
|
proto.assistant_api.AssistantDebuggerDeployment.prototype.getId = function() {
|
|
10869
10916
|
return (
|
|
@@ -11018,6 +11065,15 @@ var require_assistant_deployment_pb = __commonJS({
|
|
|
11018
11065
|
proto.assistant_api.AssistantDebuggerDeployment.prototype.setIdealtimeoutmessage = function(value) {
|
|
11019
11066
|
return jspb.Message.setProto3StringField(this, 31, value);
|
|
11020
11067
|
};
|
|
11068
|
+
proto.assistant_api.AssistantDebuggerDeployment.prototype.getIdealtimeoutbackoff = function() {
|
|
11069
|
+
return (
|
|
11070
|
+
/** @type {string} */
|
|
11071
|
+
jspb.Message.getFieldWithDefault(this, 32, "0")
|
|
11072
|
+
);
|
|
11073
|
+
};
|
|
11074
|
+
proto.assistant_api.AssistantDebuggerDeployment.prototype.setIdealtimeoutbackoff = function(value) {
|
|
11075
|
+
return jspb.Message.setProto3StringIntField(this, 32, value);
|
|
11076
|
+
};
|
|
11021
11077
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
11022
11078
|
proto.assistant_api.AssistantApiDeployment.prototype.toObject = function(opt_includeInstance) {
|
|
11023
11079
|
return proto.assistant_api.AssistantApiDeployment.toObject(opt_includeInstance, this);
|
|
@@ -11035,7 +11091,8 @@ var require_assistant_deployment_pb = __commonJS({
|
|
|
11035
11091
|
status: jspb.Message.getFieldWithDefault(msg, 28, ""),
|
|
11036
11092
|
maxsessionduration: jspb.Message.getFieldWithDefault(msg, 29, "0"),
|
|
11037
11093
|
idealtimeout: jspb.Message.getFieldWithDefault(msg, 30, "0"),
|
|
11038
|
-
idealtimeoutmessage: jspb.Message.getFieldWithDefault(msg, 31, "")
|
|
11094
|
+
idealtimeoutmessage: jspb.Message.getFieldWithDefault(msg, 31, ""),
|
|
11095
|
+
idealtimeoutbackoff: jspb.Message.getFieldWithDefault(msg, 32, "0")
|
|
11039
11096
|
};
|
|
11040
11097
|
if (includeInstance) {
|
|
11041
11098
|
obj.$jspbMessageInstance = msg;
|
|
@@ -11131,6 +11188,13 @@ var require_assistant_deployment_pb = __commonJS({
|
|
|
11131
11188
|
);
|
|
11132
11189
|
msg.setIdealtimeoutmessage(value);
|
|
11133
11190
|
break;
|
|
11191
|
+
case 32:
|
|
11192
|
+
var value = (
|
|
11193
|
+
/** @type {string} */
|
|
11194
|
+
reader.readUint64String()
|
|
11195
|
+
);
|
|
11196
|
+
msg.setIdealtimeoutbackoff(value);
|
|
11197
|
+
break;
|
|
11134
11198
|
default:
|
|
11135
11199
|
reader.skipField();
|
|
11136
11200
|
break;
|
|
@@ -11235,6 +11299,13 @@ var require_assistant_deployment_pb = __commonJS({
|
|
|
11235
11299
|
f
|
|
11236
11300
|
);
|
|
11237
11301
|
}
|
|
11302
|
+
f = message.getIdealtimeoutbackoff();
|
|
11303
|
+
if (parseInt(f, 10) !== 0) {
|
|
11304
|
+
writer.writeUint64String(
|
|
11305
|
+
32,
|
|
11306
|
+
f
|
|
11307
|
+
);
|
|
11308
|
+
}
|
|
11238
11309
|
};
|
|
11239
11310
|
proto.assistant_api.AssistantApiDeployment.prototype.getId = function() {
|
|
11240
11311
|
return (
|
|
@@ -11380,6 +11451,15 @@ var require_assistant_deployment_pb = __commonJS({
|
|
|
11380
11451
|
proto.assistant_api.AssistantApiDeployment.prototype.setIdealtimeoutmessage = function(value) {
|
|
11381
11452
|
return jspb.Message.setProto3StringField(this, 31, value);
|
|
11382
11453
|
};
|
|
11454
|
+
proto.assistant_api.AssistantApiDeployment.prototype.getIdealtimeoutbackoff = function() {
|
|
11455
|
+
return (
|
|
11456
|
+
/** @type {string} */
|
|
11457
|
+
jspb.Message.getFieldWithDefault(this, 32, "0")
|
|
11458
|
+
);
|
|
11459
|
+
};
|
|
11460
|
+
proto.assistant_api.AssistantApiDeployment.prototype.setIdealtimeoutbackoff = function(value) {
|
|
11461
|
+
return jspb.Message.setProto3StringIntField(this, 32, value);
|
|
11462
|
+
};
|
|
11383
11463
|
proto.assistant_api.CreateAssistantDeploymentRequest.oneofGroups_ = [[1, 2, 3, 4, 5]];
|
|
11384
11464
|
proto.assistant_api.CreateAssistantDeploymentRequest.DeploymentCase = {
|
|
11385
11465
|
DEPLOYMENT_NOT_SET: 0,
|
|
@@ -27472,7 +27552,7 @@ var AgentEvent = /* @__PURE__ */ ((AgentEvent2) => {
|
|
|
27472
27552
|
})(AgentEvent || {});
|
|
27473
27553
|
|
|
27474
27554
|
// src/agents/voice-agent.ts
|
|
27475
|
-
var
|
|
27555
|
+
var import_common_pb8 = __toESM(require_common_pb());
|
|
27476
27556
|
|
|
27477
27557
|
// src/types/message.ts
|
|
27478
27558
|
var MessageRole = /* @__PURE__ */ ((MessageRole2) => {
|
|
@@ -29159,47 +29239,15 @@ function arrayBufferToUint8(arrayBuffer) {
|
|
|
29159
29239
|
}
|
|
29160
29240
|
|
|
29161
29241
|
// src/types/agent-callback.ts
|
|
29162
|
-
var import_common_pb8 = __toESM(require_common_pb());
|
|
29163
|
-
|
|
29164
|
-
// src/utils/rapida_content.ts
|
|
29165
29242
|
var import_common_pb7 = __toESM(require_common_pb());
|
|
29166
|
-
var TEXT_CONTENT_FORMAT_RAW = "raw";
|
|
29167
|
-
var AUDIO_CONTENT_FORMAT_CHUNK = "chunk";
|
|
29168
|
-
var toTextContent = (str, format) => {
|
|
29169
|
-
const cnt = new import_common_pb7.Content();
|
|
29170
|
-
if (format) cnt.setContentformat(format);
|
|
29171
|
-
else cnt.setContentformat(TEXT_CONTENT_FORMAT_RAW);
|
|
29172
|
-
cnt.setContenttype("text" /* TEXT_CONTENT */);
|
|
29173
|
-
cnt.setContent(new TextEncoder().encode(str));
|
|
29174
|
-
return cnt;
|
|
29175
|
-
};
|
|
29176
|
-
var toStreamAudioContent = (raw) => {
|
|
29177
|
-
const cnt = new import_common_pb7.Content();
|
|
29178
|
-
cnt.setContentformat(AUDIO_CONTENT_FORMAT_CHUNK);
|
|
29179
|
-
cnt.setContenttype("audio" /* AUDIO_CONTENT */);
|
|
29180
|
-
cnt.setContent(raw);
|
|
29181
|
-
return cnt;
|
|
29182
|
-
};
|
|
29183
|
-
var toContentText = (cnt) => {
|
|
29184
|
-
if (!cnt) return "";
|
|
29185
|
-
return cnt.filter((x) => x.getContenttype() === "text").map((x) => {
|
|
29186
|
-
try {
|
|
29187
|
-
return new TextDecoder().decode(x.getContent());
|
|
29188
|
-
} catch (error) {
|
|
29189
|
-
return "";
|
|
29190
|
-
}
|
|
29191
|
-
}).join(" ");
|
|
29192
|
-
};
|
|
29193
|
-
|
|
29194
|
-
// src/types/agent-callback.ts
|
|
29195
29243
|
var ConversationUserMessage = class {
|
|
29196
29244
|
constructor(config) {
|
|
29197
29245
|
if (config) {
|
|
29198
29246
|
Object.assign(this, config.toObject());
|
|
29199
29247
|
switch (config.getMessageCase()) {
|
|
29200
|
-
case
|
|
29201
|
-
case
|
|
29202
|
-
case
|
|
29248
|
+
case import_common_pb7.AssistantConversationUserMessage.MessageCase.MESSAGE_NOT_SET:
|
|
29249
|
+
case import_common_pb7.AssistantConversationUserMessage.MessageCase.AUDIO:
|
|
29250
|
+
case import_common_pb7.AssistantConversationUserMessage.MessageCase.TEXT:
|
|
29203
29251
|
this.messageText = config.getText()?.getContent();
|
|
29204
29252
|
}
|
|
29205
29253
|
}
|
|
@@ -29210,25 +29258,14 @@ var ConversationAssistantMessage = class {
|
|
|
29210
29258
|
if (config) {
|
|
29211
29259
|
Object.assign(this, config.toObject());
|
|
29212
29260
|
switch (config.getMessageCase()) {
|
|
29213
|
-
case
|
|
29214
|
-
case
|
|
29215
|
-
case
|
|
29261
|
+
case import_common_pb7.AssistantConversationUserMessage.MessageCase.MESSAGE_NOT_SET:
|
|
29262
|
+
case import_common_pb7.AssistantConversationUserMessage.MessageCase.AUDIO:
|
|
29263
|
+
case import_common_pb7.AssistantConversationUserMessage.MessageCase.TEXT:
|
|
29216
29264
|
this.messageText = config.getText()?.getContent();
|
|
29217
29265
|
}
|
|
29218
29266
|
}
|
|
29219
29267
|
}
|
|
29220
29268
|
};
|
|
29221
|
-
var ConversationMessage = class {
|
|
29222
|
-
constructor(config) {
|
|
29223
|
-
if (config) {
|
|
29224
|
-
Object.assign(this, config.toObject());
|
|
29225
|
-
this.userMessage = toContentText(config.getRequest()?.getContentsList());
|
|
29226
|
-
this.systemMessage = toContentText(
|
|
29227
|
-
config.getResponse()?.getContentsList()
|
|
29228
|
-
);
|
|
29229
|
-
}
|
|
29230
|
-
}
|
|
29231
|
-
};
|
|
29232
29269
|
|
|
29233
29270
|
// src/agents/voice-agent.ts
|
|
29234
29271
|
var VoiceAgent = class extends Agent {
|
|
@@ -29480,13 +29517,13 @@ var VoiceAgent = class extends Agent {
|
|
|
29480
29517
|
onHandleInterruption = (interruptionData) => {
|
|
29481
29518
|
if (interruptionData) {
|
|
29482
29519
|
switch (interruptionData.getType()) {
|
|
29483
|
-
case
|
|
29520
|
+
case import_common_pb8.AssistantConversationInterruption.InterruptionType.INTERRUPTION_TYPE_UNSPECIFIED:
|
|
29484
29521
|
console.log("Unspecified interruption type");
|
|
29485
29522
|
break;
|
|
29486
|
-
case
|
|
29523
|
+
case import_common_pb8.AssistantConversationInterruption.InterruptionType.INTERRUPTION_TYPE_VAD:
|
|
29487
29524
|
this.fadeOutAudio();
|
|
29488
29525
|
break;
|
|
29489
|
-
case
|
|
29526
|
+
case import_common_pb8.AssistantConversationInterruption.InterruptionType.INTERRUPTION_TYPE_WORD:
|
|
29490
29527
|
if (this.agentMessages.length > 0) {
|
|
29491
29528
|
const lastIndex = this.agentMessages.length - 1;
|
|
29492
29529
|
this.agentMessages[lastIndex] = {
|
|
@@ -29513,9 +29550,9 @@ var VoiceAgent = class extends Agent {
|
|
|
29513
29550
|
onHandleUser = (userContent) => {
|
|
29514
29551
|
if (userContent) {
|
|
29515
29552
|
switch (userContent.getMessageCase()) {
|
|
29516
|
-
case
|
|
29517
|
-
case
|
|
29518
|
-
case
|
|
29553
|
+
case import_common_pb8.AssistantConversationUserMessage.MessageCase.MESSAGE_NOT_SET:
|
|
29554
|
+
case import_common_pb8.AssistantConversationUserMessage.MessageCase.AUDIO:
|
|
29555
|
+
case import_common_pb8.AssistantConversationUserMessage.MessageCase.TEXT:
|
|
29519
29556
|
const agentTranscript = userContent.getText()?.getContent();
|
|
29520
29557
|
if (agentTranscript) {
|
|
29521
29558
|
if (this.agentMessages.length > 0) {
|
|
@@ -29547,14 +29584,14 @@ var VoiceAgent = class extends Agent {
|
|
|
29547
29584
|
onHandleAssistant = (systemContent) => {
|
|
29548
29585
|
if (systemContent) {
|
|
29549
29586
|
switch (systemContent.getMessageCase()) {
|
|
29550
|
-
case
|
|
29551
|
-
case
|
|
29587
|
+
case import_common_pb8.AssistantConversationAssistantMessage.MessageCase.MESSAGE_NOT_SET:
|
|
29588
|
+
case import_common_pb8.AssistantConversationAssistantMessage.MessageCase.AUDIO:
|
|
29552
29589
|
const content = systemContent.getAudio();
|
|
29553
29590
|
if (content) {
|
|
29554
29591
|
const audioData = content.getContent_asU8();
|
|
29555
29592
|
this.addAudioChunk(new Uint8Array(audioData).buffer);
|
|
29556
29593
|
}
|
|
29557
|
-
case
|
|
29594
|
+
case import_common_pb8.AssistantConversationAssistantMessage.MessageCase.TEXT:
|
|
29558
29595
|
const systemTranscript = systemContent.getText()?.getContent();
|
|
29559
29596
|
if (systemTranscript) {
|
|
29560
29597
|
if (systemContent.getCompleted()) {
|
|
@@ -29638,8 +29675,6 @@ var VoiceAgent = class extends Agent {
|
|
|
29638
29675
|
const conversation = response.getConfiguration();
|
|
29639
29676
|
if (!conversation?.getAssistantconversationid()) return;
|
|
29640
29677
|
break;
|
|
29641
|
-
case import_talk_api_pb2.AssistantMessagingResponse.DataCase.MESSAGE:
|
|
29642
|
-
break;
|
|
29643
29678
|
default:
|
|
29644
29679
|
break;
|
|
29645
29680
|
}
|
|
@@ -29654,7 +29689,7 @@ var VoiceAgent = class extends Agent {
|
|
|
29654
29689
|
case import_talk_api_pb2.AssistantMessagingResponse.DataCase.DATA_NOT_SET:
|
|
29655
29690
|
break;
|
|
29656
29691
|
case import_talk_api_pb2.AssistantMessagingResponse.DataCase.ACTION:
|
|
29657
|
-
if (response.getAction()?.getAction() ===
|
|
29692
|
+
if (response.getAction()?.getAction() === import_common_pb8.AssistantConversationAction.ActionType.END_CONVERSATION) {
|
|
29658
29693
|
await this.disconnect();
|
|
29659
29694
|
}
|
|
29660
29695
|
if (agentCallback && agentCallback?.onAction) {
|
|
@@ -29689,13 +29724,6 @@ var VoiceAgent = class extends Agent {
|
|
|
29689
29724
|
const cnvId = response.getConfiguration()?.getAssistantconversationid();
|
|
29690
29725
|
if (cnvId) this.changeConversation(cnvId);
|
|
29691
29726
|
break;
|
|
29692
|
-
case import_talk_api_pb2.AssistantMessagingResponse.DataCase.MESSAGE:
|
|
29693
|
-
if (agentCallback && agentCallback?.onMessage) {
|
|
29694
|
-
agentCallback.onMessage(
|
|
29695
|
-
new ConversationMessage(response.getMessage())
|
|
29696
|
-
);
|
|
29697
|
-
}
|
|
29698
|
-
break;
|
|
29699
29727
|
default:
|
|
29700
29728
|
break;
|
|
29701
29729
|
}
|
|
@@ -30081,9 +30109,6 @@ export {
|
|
|
30081
30109
|
DeleteAssistantKnowledge,
|
|
30082
30110
|
GetAssistantToolLog,
|
|
30083
30111
|
GetAllAssistantToolLog,
|
|
30084
|
-
toTextContent,
|
|
30085
|
-
toStreamAudioContent,
|
|
30086
|
-
toContentText,
|
|
30087
30112
|
VoiceAgent,
|
|
30088
30113
|
useObservableState,
|
|
30089
30114
|
agentEventSelector,
|
|
@@ -30093,4 +30118,4 @@ export {
|
|
|
30093
30118
|
useSelectInputDeviceAgent,
|
|
30094
30119
|
DeviceSelectorComponent
|
|
30095
30120
|
};
|
|
30096
|
-
//# sourceMappingURL=chunk-
|
|
30121
|
+
//# sourceMappingURL=chunk-2EMDIAFM.mjs.map
|