@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.
@@ -1,4 +1,4 @@
1
- export { ei as DeviceSelectorComponent } from '../device-selector-CsIo3daE.mjs';
1
+ export { ei as DeviceSelectorComponent } from '../device-selector-D2B4ipII.mjs';
2
2
  import 'react';
3
3
  import 'google-protobuf';
4
4
  import 'google-protobuf/google/protobuf/any_pb';
@@ -1,4 +1,4 @@
1
- export { ei as DeviceSelectorComponent } from '../device-selector-CsIo3daE.js';
1
+ export { ei as DeviceSelectorComponent } from '../device-selector-D2B4ipII.js';
2
2
  import 'react';
3
3
  import 'google-protobuf';
4
4
  import 'google-protobuf/google/protobuf/any_pb';
@@ -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
- request: (f = msg.getRequest()) && proto.Message.toObject(includeInstance, f),
3679
- response: (f = msg.getResponse()) && proto.Message.toObject(includeInstance, f),
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 5:
3739
- var value = new proto.Message();
3740
- reader.readMessage(value, proto.Message.deserializeBinaryFromReader);
3741
- msg.setRequest(value);
3738
+ case 4:
3739
+ var value = (
3740
+ /** @type {string} */
3741
+ reader.readString()
3742
+ );
3743
+ msg.setRole(value);
3742
3744
  break;
3743
- case 7:
3744
- var value = new proto.Message();
3745
- reader.readMessage(value, proto.Message.deserializeBinaryFromReader);
3746
- msg.setResponse(value);
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.getRequest();
3846
- if (f != null) {
3847
- writer.writeMessage(
3848
- 5,
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.getResponse();
3854
- if (f != null) {
3855
- writer.writeMessage(
3856
- 7,
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.getRequest = function() {
3965
+ proto.AssistantConversationMessage.prototype.getRole = function() {
3964
3966
  return (
3965
- /** @type{?proto.Message} */
3966
- jspb.Message.getWrapperField(this, proto.Message, 5)
3967
+ /** @type {string} */
3968
+ jspb.Message.getFieldWithDefault(this, 4, "")
3967
3969
  );
3968
3970
  };
3969
- proto.AssistantConversationMessage.prototype.setRequest = function(value) {
3970
- return jspb.Message.setWrapperField(this, 5, value);
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.getResponse = function() {
3974
+ proto.AssistantConversationMessage.prototype.getBody = function() {
3979
3975
  return (
3980
- /** @type{?proto.Message} */
3981
- jspb.Message.getWrapperField(this, proto.Message, 7)
3976
+ /** @type {string} */
3977
+ jspb.Message.getFieldWithDefault(this, 5, "")
3982
3978
  );
3983
3979
  };
3984
- proto.AssistantConversationMessage.prototype.setResponse = function(value) {
3985
- return jspb.Message.setWrapperField(this, 7, value);
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, 13, 14, 15]];
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,
@@ -27483,7 +27563,7 @@ var DeviceManager = class _DeviceManager {
27483
27563
 
27484
27564
  // src/agents/voice-agent.ts
27485
27565
  var import_talk_api_pb2 = __toESM(require_talk_api_pb());
27486
- var import_common_pb9 = __toESM(require_common_pb());
27566
+ var import_common_pb8 = __toESM(require_common_pb());
27487
27567
 
27488
27568
  // src/agents/index.ts
27489
27569
  var import_talk_api_pb = __toESM(require_talk_api_pb());
@@ -28432,30 +28512,15 @@ function arrayBufferToUint8(arrayBuffer) {
28432
28512
  }
28433
28513
 
28434
28514
  // src/types/agent-callback.ts
28435
- var import_common_pb8 = __toESM(require_common_pb());
28436
-
28437
- // src/utils/rapida_content.ts
28438
28515
  var import_common_pb7 = __toESM(require_common_pb());
28439
- var toContentText = (cnt) => {
28440
- if (!cnt) return "";
28441
- return cnt.filter((x) => x.getContenttype() === "text").map((x) => {
28442
- try {
28443
- return new TextDecoder().decode(x.getContent());
28444
- } catch (error) {
28445
- return "";
28446
- }
28447
- }).join(" ");
28448
- };
28449
-
28450
- // src/types/agent-callback.ts
28451
28516
  var ConversationUserMessage = class {
28452
28517
  constructor(config) {
28453
28518
  if (config) {
28454
28519
  Object.assign(this, config.toObject());
28455
28520
  switch (config.getMessageCase()) {
28456
- case import_common_pb8.AssistantConversationUserMessage.MessageCase.MESSAGE_NOT_SET:
28457
- case import_common_pb8.AssistantConversationUserMessage.MessageCase.AUDIO:
28458
- case import_common_pb8.AssistantConversationUserMessage.MessageCase.TEXT:
28521
+ case import_common_pb7.AssistantConversationUserMessage.MessageCase.MESSAGE_NOT_SET:
28522
+ case import_common_pb7.AssistantConversationUserMessage.MessageCase.AUDIO:
28523
+ case import_common_pb7.AssistantConversationUserMessage.MessageCase.TEXT:
28459
28524
  this.messageText = config.getText()?.getContent();
28460
28525
  }
28461
28526
  }
@@ -28466,25 +28531,14 @@ var ConversationAssistantMessage = class {
28466
28531
  if (config) {
28467
28532
  Object.assign(this, config.toObject());
28468
28533
  switch (config.getMessageCase()) {
28469
- case import_common_pb8.AssistantConversationUserMessage.MessageCase.MESSAGE_NOT_SET:
28470
- case import_common_pb8.AssistantConversationUserMessage.MessageCase.AUDIO:
28471
- case import_common_pb8.AssistantConversationUserMessage.MessageCase.TEXT:
28534
+ case import_common_pb7.AssistantConversationUserMessage.MessageCase.MESSAGE_NOT_SET:
28535
+ case import_common_pb7.AssistantConversationUserMessage.MessageCase.AUDIO:
28536
+ case import_common_pb7.AssistantConversationUserMessage.MessageCase.TEXT:
28472
28537
  this.messageText = config.getText()?.getContent();
28473
28538
  }
28474
28539
  }
28475
28540
  }
28476
28541
  };
28477
- var ConversationMessage = class {
28478
- constructor(config) {
28479
- if (config) {
28480
- Object.assign(this, config.toObject());
28481
- this.userMessage = toContentText(config.getRequest()?.getContentsList());
28482
- this.systemMessage = toContentText(
28483
- config.getResponse()?.getContentsList()
28484
- );
28485
- }
28486
- }
28487
- };
28488
28542
 
28489
28543
  // src/agents/voice-agent.ts
28490
28544
  var VoiceAgent = class extends Agent {
@@ -28736,13 +28790,13 @@ var VoiceAgent = class extends Agent {
28736
28790
  onHandleInterruption = (interruptionData) => {
28737
28791
  if (interruptionData) {
28738
28792
  switch (interruptionData.getType()) {
28739
- case import_common_pb9.AssistantConversationInterruption.InterruptionType.INTERRUPTION_TYPE_UNSPECIFIED:
28793
+ case import_common_pb8.AssistantConversationInterruption.InterruptionType.INTERRUPTION_TYPE_UNSPECIFIED:
28740
28794
  console.log("Unspecified interruption type");
28741
28795
  break;
28742
- case import_common_pb9.AssistantConversationInterruption.InterruptionType.INTERRUPTION_TYPE_VAD:
28796
+ case import_common_pb8.AssistantConversationInterruption.InterruptionType.INTERRUPTION_TYPE_VAD:
28743
28797
  this.fadeOutAudio();
28744
28798
  break;
28745
- case import_common_pb9.AssistantConversationInterruption.InterruptionType.INTERRUPTION_TYPE_WORD:
28799
+ case import_common_pb8.AssistantConversationInterruption.InterruptionType.INTERRUPTION_TYPE_WORD:
28746
28800
  if (this.agentMessages.length > 0) {
28747
28801
  const lastIndex = this.agentMessages.length - 1;
28748
28802
  this.agentMessages[lastIndex] = {
@@ -28769,9 +28823,9 @@ var VoiceAgent = class extends Agent {
28769
28823
  onHandleUser = (userContent) => {
28770
28824
  if (userContent) {
28771
28825
  switch (userContent.getMessageCase()) {
28772
- case import_common_pb9.AssistantConversationUserMessage.MessageCase.MESSAGE_NOT_SET:
28773
- case import_common_pb9.AssistantConversationUserMessage.MessageCase.AUDIO:
28774
- case import_common_pb9.AssistantConversationUserMessage.MessageCase.TEXT:
28826
+ case import_common_pb8.AssistantConversationUserMessage.MessageCase.MESSAGE_NOT_SET:
28827
+ case import_common_pb8.AssistantConversationUserMessage.MessageCase.AUDIO:
28828
+ case import_common_pb8.AssistantConversationUserMessage.MessageCase.TEXT:
28775
28829
  const agentTranscript = userContent.getText()?.getContent();
28776
28830
  if (agentTranscript) {
28777
28831
  if (this.agentMessages.length > 0) {
@@ -28803,14 +28857,14 @@ var VoiceAgent = class extends Agent {
28803
28857
  onHandleAssistant = (systemContent) => {
28804
28858
  if (systemContent) {
28805
28859
  switch (systemContent.getMessageCase()) {
28806
- case import_common_pb9.AssistantConversationAssistantMessage.MessageCase.MESSAGE_NOT_SET:
28807
- case import_common_pb9.AssistantConversationAssistantMessage.MessageCase.AUDIO:
28860
+ case import_common_pb8.AssistantConversationAssistantMessage.MessageCase.MESSAGE_NOT_SET:
28861
+ case import_common_pb8.AssistantConversationAssistantMessage.MessageCase.AUDIO:
28808
28862
  const content = systemContent.getAudio();
28809
28863
  if (content) {
28810
28864
  const audioData = content.getContent_asU8();
28811
28865
  this.addAudioChunk(new Uint8Array(audioData).buffer);
28812
28866
  }
28813
- case import_common_pb9.AssistantConversationAssistantMessage.MessageCase.TEXT:
28867
+ case import_common_pb8.AssistantConversationAssistantMessage.MessageCase.TEXT:
28814
28868
  const systemTranscript = systemContent.getText()?.getContent();
28815
28869
  if (systemTranscript) {
28816
28870
  if (systemContent.getCompleted()) {
@@ -28894,8 +28948,6 @@ var VoiceAgent = class extends Agent {
28894
28948
  const conversation = response.getConfiguration();
28895
28949
  if (!conversation?.getAssistantconversationid()) return;
28896
28950
  break;
28897
- case import_talk_api_pb2.AssistantMessagingResponse.DataCase.MESSAGE:
28898
- break;
28899
28951
  default:
28900
28952
  break;
28901
28953
  }
@@ -28910,7 +28962,7 @@ var VoiceAgent = class extends Agent {
28910
28962
  case import_talk_api_pb2.AssistantMessagingResponse.DataCase.DATA_NOT_SET:
28911
28963
  break;
28912
28964
  case import_talk_api_pb2.AssistantMessagingResponse.DataCase.ACTION:
28913
- if (response.getAction()?.getAction() === import_common_pb9.AssistantConversationAction.ActionType.END_CONVERSATION) {
28965
+ if (response.getAction()?.getAction() === import_common_pb8.AssistantConversationAction.ActionType.END_CONVERSATION) {
28914
28966
  await this.disconnect();
28915
28967
  }
28916
28968
  if (agentCallback && agentCallback?.onAction) {
@@ -28945,13 +28997,6 @@ var VoiceAgent = class extends Agent {
28945
28997
  const cnvId = response.getConfiguration()?.getAssistantconversationid();
28946
28998
  if (cnvId) this.changeConversation(cnvId);
28947
28999
  break;
28948
- case import_talk_api_pb2.AssistantMessagingResponse.DataCase.MESSAGE:
28949
- if (agentCallback && agentCallback?.onMessage) {
28950
- agentCallback.onMessage(
28951
- new ConversationMessage(response.getMessage())
28952
- );
28953
- }
28954
- break;
28955
29000
  default:
28956
29001
  break;
28957
29002
  }