@rapidaai/react 1.1.53 → 1.1.55

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,11 +1,16 @@
1
1
  import * as jspb from 'google-protobuf';
2
- import * as google_protobuf_any_pb from 'google-protobuf/google/protobuf/any_pb';
3
2
  import * as google_protobuf_timestamp_pb from 'google-protobuf/google/protobuf/timestamp_pb';
4
3
  import * as google_protobuf_struct_pb from 'google-protobuf/google/protobuf/struct_pb';
4
+ import * as google_protobuf_any_pb from 'google-protobuf/google/protobuf/any_pb';
5
5
  import { grpc } from '@improbable-eng/grpc-web';
6
6
  import TypedEmitter from 'typed-emitter';
7
7
  import { FC, HTMLAttributes } from 'react';
8
8
 
9
+ declare enum Channel {
10
+ Text = "text",
11
+ Audio = "audio"
12
+ }
13
+
9
14
  // package:
10
15
  // file: common.proto
11
16
 
@@ -83,7 +88,7 @@ declare namespace Criteria {
83
88
  }
84
89
  }
85
90
 
86
- declare class Error extends jspb.Message {
91
+ declare class Error$1 extends jspb.Message {
87
92
  getErrorcode(): string;
88
93
  setErrorcode(value: string): void;
89
94
 
@@ -94,16 +99,16 @@ declare class Error extends jspb.Message {
94
99
  setHumanmessage(value: string): void;
95
100
 
96
101
  serializeBinary(): Uint8Array;
97
- toObject(includeInstance?: boolean): Error.AsObject;
98
- static toObject(includeInstance: boolean, msg: Error): Error.AsObject;
102
+ toObject(includeInstance?: boolean): Error$1.AsObject;
103
+ static toObject(includeInstance: boolean, msg: Error$1): Error$1.AsObject;
99
104
  static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
100
105
  static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
101
- static serializeBinaryToWriter(message: Error, writer: jspb.BinaryWriter): void;
102
- static deserializeBinary(bytes: Uint8Array): Error;
103
- static deserializeBinaryFromReader(message: Error, reader: jspb.BinaryReader): Error;
106
+ static serializeBinaryToWriter(message: Error$1, writer: jspb.BinaryWriter): void;
107
+ static deserializeBinary(bytes: Uint8Array): Error$1;
108
+ static deserializeBinaryFromReader(message: Error$1, reader: jspb.BinaryReader): Error$1;
104
109
  }
105
110
 
106
- declare namespace Error {
111
+ declare namespace Error$1 {
107
112
  export type AsObject = {
108
113
  errorcode: string,
109
114
  errormessage: string,
@@ -236,8 +241,8 @@ declare class BaseResponse extends jspb.Message {
236
241
  clearDataMap(): void;
237
242
  hasError(): boolean;
238
243
  clearError(): void;
239
- getError(): Error | undefined;
240
- setError(value?: Error): void;
244
+ getError(): Error$1 | undefined;
245
+ setError(value?: Error$1): void;
241
246
 
242
247
  serializeBinary(): Uint8Array;
243
248
  toObject(includeInstance?: boolean): BaseResponse.AsObject;
@@ -254,7 +259,7 @@ declare namespace BaseResponse {
254
259
  code: number,
255
260
  success: boolean,
256
261
  dataMap: Array<[string, string]>,
257
- error?: Error.AsObject,
262
+ error?: Error$1.AsObject,
258
263
  }
259
264
  }
260
265
 
@@ -1007,6 +1012,9 @@ declare namespace AssistantConversationContext {
1007
1012
  }
1008
1013
 
1009
1014
  declare class AssistantConversationRecording extends jspb.Message {
1015
+ getId(): string;
1016
+ setId(value: string): void;
1017
+
1010
1018
  getRecordingurl(): string;
1011
1019
  setRecordingurl(value: string): void;
1012
1020
 
@@ -1022,6 +1030,7 @@ declare class AssistantConversationRecording extends jspb.Message {
1022
1030
 
1023
1031
  declare namespace AssistantConversationRecording {
1024
1032
  export type AsObject = {
1033
+ id: string,
1025
1034
  recordingurl: string,
1026
1035
  }
1027
1036
  }
@@ -1260,8 +1269,8 @@ declare class GetAllAssistantConversationResponse extends jspb.Message {
1260
1269
 
1261
1270
  hasError(): boolean;
1262
1271
  clearError(): void;
1263
- getError(): Error | undefined;
1264
- setError(value?: Error): void;
1272
+ getError(): Error$1 | undefined;
1273
+ setError(value?: Error$1): void;
1265
1274
 
1266
1275
  hasPaginated(): boolean;
1267
1276
  clearPaginated(): void;
@@ -1283,7 +1292,7 @@ declare namespace GetAllAssistantConversationResponse {
1283
1292
  code: number,
1284
1293
  success: boolean,
1285
1294
  dataList: Array<AssistantConversation.AsObject>,
1286
- error?: Error.AsObject,
1295
+ error?: Error$1.AsObject,
1287
1296
  paginated?: Paginated.AsObject,
1288
1297
  }
1289
1298
  }
@@ -1348,8 +1357,8 @@ declare class GetAllConversationMessageResponse extends jspb.Message {
1348
1357
 
1349
1358
  hasError(): boolean;
1350
1359
  clearError(): void;
1351
- getError(): Error | undefined;
1352
- setError(value?: Error): void;
1360
+ getError(): Error$1 | undefined;
1361
+ setError(value?: Error$1): void;
1353
1362
 
1354
1363
  hasPaginated(): boolean;
1355
1364
  clearPaginated(): void;
@@ -1371,7 +1380,7 @@ declare namespace GetAllConversationMessageResponse {
1371
1380
  code: number,
1372
1381
  success: boolean,
1373
1382
  dataList: Array<AssistantConversationMessage.AsObject>,
1374
- error?: Error.AsObject,
1383
+ error?: Error$1.AsObject,
1375
1384
  paginated?: Paginated.AsObject,
1376
1385
  }
1377
1386
  }
@@ -1467,6 +1476,58 @@ declare namespace ConversationToolResult {
1467
1476
  }
1468
1477
  }
1469
1478
 
1479
+ declare class ConversationMetric extends jspb.Message {
1480
+ getAssistantconversationid(): string;
1481
+ setAssistantconversationid(value: string): void;
1482
+
1483
+ clearMetricsList(): void;
1484
+ getMetricsList(): Array<Metric>;
1485
+ setMetricsList(value: Array<Metric>): void;
1486
+ addMetrics(value?: Metric, index?: number): Metric;
1487
+
1488
+ serializeBinary(): Uint8Array;
1489
+ toObject(includeInstance?: boolean): ConversationMetric.AsObject;
1490
+ static toObject(includeInstance: boolean, msg: ConversationMetric): ConversationMetric.AsObject;
1491
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
1492
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
1493
+ static serializeBinaryToWriter(message: ConversationMetric, writer: jspb.BinaryWriter): void;
1494
+ static deserializeBinary(bytes: Uint8Array): ConversationMetric;
1495
+ static deserializeBinaryFromReader(message: ConversationMetric, reader: jspb.BinaryReader): ConversationMetric;
1496
+ }
1497
+
1498
+ declare namespace ConversationMetric {
1499
+ export type AsObject = {
1500
+ assistantconversationid: string,
1501
+ metricsList: Array<Metric.AsObject>,
1502
+ }
1503
+ }
1504
+
1505
+ declare class ConversationMetadata extends jspb.Message {
1506
+ getAssistantconversationid(): string;
1507
+ setAssistantconversationid(value: string): void;
1508
+
1509
+ clearMetadataList(): void;
1510
+ getMetadataList(): Array<Metadata>;
1511
+ setMetadataList(value: Array<Metadata>): void;
1512
+ addMetadata(value?: Metadata, index?: number): Metadata;
1513
+
1514
+ serializeBinary(): Uint8Array;
1515
+ toObject(includeInstance?: boolean): ConversationMetadata.AsObject;
1516
+ static toObject(includeInstance: boolean, msg: ConversationMetadata): ConversationMetadata.AsObject;
1517
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
1518
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
1519
+ static serializeBinaryToWriter(message: ConversationMetadata, writer: jspb.BinaryWriter): void;
1520
+ static deserializeBinary(bytes: Uint8Array): ConversationMetadata;
1521
+ static deserializeBinaryFromReader(message: ConversationMetadata, reader: jspb.BinaryReader): ConversationMetadata;
1522
+ }
1523
+
1524
+ declare namespace ConversationMetadata {
1525
+ export type AsObject = {
1526
+ assistantconversationid: string,
1527
+ metadataList: Array<Metadata.AsObject>,
1528
+ }
1529
+ }
1530
+
1470
1531
  declare class ConversationDirective extends jspb.Message {
1471
1532
  getId(): string;
1472
1533
  setId(value: string): void;
@@ -1503,92 +1564,35 @@ declare namespace ConversationDirective {
1503
1564
  DIRECTIVE_TYPE_UNSPECIFIED: 0;
1504
1565
  END_CONVERSATION: 1;
1505
1566
  TRANSFER_CONVERSATION: 2;
1506
- PAUSE_CONVERSATION: 3;
1507
- MUTE_CALLER: 10;
1508
- UNMUTE_CALLER: 11;
1509
1567
  }
1510
1568
 
1511
1569
  export const DirectiveType: DirectiveTypeMap;
1512
1570
  }
1513
1571
 
1514
- declare class ConversationConfiguration extends jspb.Message {
1572
+ declare class ConversationError extends jspb.Message {
1515
1573
  getAssistantconversationid(): string;
1516
1574
  setAssistantconversationid(value: string): void;
1517
1575
 
1518
- hasAssistant(): boolean;
1519
- clearAssistant(): void;
1520
- getAssistant(): AssistantDefinition | undefined;
1521
- setAssistant(value?: AssistantDefinition): void;
1522
-
1523
- hasTime(): boolean;
1524
- clearTime(): void;
1525
- getTime(): google_protobuf_timestamp_pb.Timestamp | undefined;
1526
- setTime(value?: google_protobuf_timestamp_pb.Timestamp): void;
1527
-
1528
- getMetadataMap(): jspb.Map<string, google_protobuf_any_pb.Any>;
1529
- clearMetadataMap(): void;
1530
- getArgsMap(): jspb.Map<string, google_protobuf_any_pb.Any>;
1531
- clearArgsMap(): void;
1532
- getOptionsMap(): jspb.Map<string, google_protobuf_any_pb.Any>;
1533
- clearOptionsMap(): void;
1534
- hasInputconfig(): boolean;
1535
- clearInputconfig(): void;
1536
- getInputconfig(): StreamConfig | undefined;
1537
- setInputconfig(value?: StreamConfig): void;
1538
-
1539
- hasOutputconfig(): boolean;
1540
- clearOutputconfig(): void;
1541
- getOutputconfig(): StreamConfig | undefined;
1542
- setOutputconfig(value?: StreamConfig): void;
1576
+ getMessage(): string;
1577
+ setMessage(value: string): void;
1543
1578
 
1579
+ getDetailsMap(): jspb.Map<string, google_protobuf_any_pb.Any>;
1580
+ clearDetailsMap(): void;
1544
1581
  serializeBinary(): Uint8Array;
1545
- toObject(includeInstance?: boolean): ConversationConfiguration.AsObject;
1546
- static toObject(includeInstance: boolean, msg: ConversationConfiguration): ConversationConfiguration.AsObject;
1582
+ toObject(includeInstance?: boolean): ConversationError.AsObject;
1583
+ static toObject(includeInstance: boolean, msg: ConversationError): ConversationError.AsObject;
1547
1584
  static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
1548
1585
  static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
1549
- static serializeBinaryToWriter(message: ConversationConfiguration, writer: jspb.BinaryWriter): void;
1550
- static deserializeBinary(bytes: Uint8Array): ConversationConfiguration;
1551
- static deserializeBinaryFromReader(message: ConversationConfiguration, reader: jspb.BinaryReader): ConversationConfiguration;
1586
+ static serializeBinaryToWriter(message: ConversationError, writer: jspb.BinaryWriter): void;
1587
+ static deserializeBinary(bytes: Uint8Array): ConversationError;
1588
+ static deserializeBinaryFromReader(message: ConversationError, reader: jspb.BinaryReader): ConversationError;
1552
1589
  }
1553
1590
 
1554
- declare namespace ConversationConfiguration {
1591
+ declare namespace ConversationError {
1555
1592
  export type AsObject = {
1556
1593
  assistantconversationid: string,
1557
- assistant?: AssistantDefinition.AsObject,
1558
- time?: google_protobuf_timestamp_pb.Timestamp.AsObject,
1559
- metadataMap: Array<[string, google_protobuf_any_pb.Any.AsObject]>,
1560
- argsMap: Array<[string, google_protobuf_any_pb.Any.AsObject]>,
1561
- optionsMap: Array<[string, google_protobuf_any_pb.Any.AsObject]>,
1562
- inputconfig?: StreamConfig.AsObject,
1563
- outputconfig?: StreamConfig.AsObject,
1564
- }
1565
- }
1566
-
1567
- declare class StreamConfig extends jspb.Message {
1568
- hasAudio(): boolean;
1569
- clearAudio(): void;
1570
- getAudio(): AudioConfig | undefined;
1571
- setAudio(value?: AudioConfig): void;
1572
-
1573
- hasText(): boolean;
1574
- clearText(): void;
1575
- getText(): TextConfig | undefined;
1576
- setText(value?: TextConfig): void;
1577
-
1578
- serializeBinary(): Uint8Array;
1579
- toObject(includeInstance?: boolean): StreamConfig.AsObject;
1580
- static toObject(includeInstance: boolean, msg: StreamConfig): StreamConfig.AsObject;
1581
- static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
1582
- static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
1583
- static serializeBinaryToWriter(message: StreamConfig, writer: jspb.BinaryWriter): void;
1584
- static deserializeBinary(bytes: Uint8Array): StreamConfig;
1585
- static deserializeBinaryFromReader(message: StreamConfig, reader: jspb.BinaryReader): StreamConfig;
1586
- }
1587
-
1588
- declare namespace StreamConfig {
1589
- export type AsObject = {
1590
- audio?: AudioConfig.AsObject,
1591
- text?: TextConfig.AsObject,
1594
+ message: string,
1595
+ detailsMap: Array<[string, google_protobuf_any_pb.Any.AsObject]>,
1592
1596
  }
1593
1597
  }
1594
1598
 
@@ -1647,6 +1651,158 @@ declare namespace TextConfig {
1647
1651
  }
1648
1652
  }
1649
1653
 
1654
+ declare class StreamConfig extends jspb.Message {
1655
+ hasAudio(): boolean;
1656
+ clearAudio(): void;
1657
+ getAudio(): AudioConfig | undefined;
1658
+ setAudio(value?: AudioConfig): void;
1659
+
1660
+ hasText(): boolean;
1661
+ clearText(): void;
1662
+ getText(): TextConfig | undefined;
1663
+ setText(value?: TextConfig): void;
1664
+
1665
+ serializeBinary(): Uint8Array;
1666
+ toObject(includeInstance?: boolean): StreamConfig.AsObject;
1667
+ static toObject(includeInstance: boolean, msg: StreamConfig): StreamConfig.AsObject;
1668
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
1669
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
1670
+ static serializeBinaryToWriter(message: StreamConfig, writer: jspb.BinaryWriter): void;
1671
+ static deserializeBinary(bytes: Uint8Array): StreamConfig;
1672
+ static deserializeBinaryFromReader(message: StreamConfig, reader: jspb.BinaryReader): StreamConfig;
1673
+ }
1674
+
1675
+ declare namespace StreamConfig {
1676
+ export type AsObject = {
1677
+ audio?: AudioConfig.AsObject,
1678
+ text?: TextConfig.AsObject,
1679
+ }
1680
+ }
1681
+
1682
+ declare class WebIdentity extends jspb.Message {
1683
+ getUserid(): string;
1684
+ setUserid(value: string): void;
1685
+
1686
+ serializeBinary(): Uint8Array;
1687
+ toObject(includeInstance?: boolean): WebIdentity.AsObject;
1688
+ static toObject(includeInstance: boolean, msg: WebIdentity): WebIdentity.AsObject;
1689
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
1690
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
1691
+ static serializeBinaryToWriter(message: WebIdentity, writer: jspb.BinaryWriter): void;
1692
+ static deserializeBinary(bytes: Uint8Array): WebIdentity;
1693
+ static deserializeBinaryFromReader(message: WebIdentity, reader: jspb.BinaryReader): WebIdentity;
1694
+ }
1695
+
1696
+ declare namespace WebIdentity {
1697
+ export type AsObject = {
1698
+ userid: string,
1699
+ }
1700
+ }
1701
+
1702
+ declare class PhoneIdentity extends jspb.Message {
1703
+ getPhonenumber(): string;
1704
+ setPhonenumber(value: string): void;
1705
+
1706
+ serializeBinary(): Uint8Array;
1707
+ toObject(includeInstance?: boolean): PhoneIdentity.AsObject;
1708
+ static toObject(includeInstance: boolean, msg: PhoneIdentity): PhoneIdentity.AsObject;
1709
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
1710
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
1711
+ static serializeBinaryToWriter(message: PhoneIdentity, writer: jspb.BinaryWriter): void;
1712
+ static deserializeBinary(bytes: Uint8Array): PhoneIdentity;
1713
+ static deserializeBinaryFromReader(message: PhoneIdentity, reader: jspb.BinaryReader): PhoneIdentity;
1714
+ }
1715
+
1716
+ declare namespace PhoneIdentity {
1717
+ export type AsObject = {
1718
+ phonenumber: string,
1719
+ }
1720
+ }
1721
+
1722
+ declare class ConversationInitialization extends jspb.Message {
1723
+ getAssistantconversationid(): string;
1724
+ setAssistantconversationid(value: string): void;
1725
+
1726
+ hasAssistant(): boolean;
1727
+ clearAssistant(): void;
1728
+ getAssistant(): AssistantDefinition | undefined;
1729
+ setAssistant(value?: AssistantDefinition): void;
1730
+
1731
+ hasTime(): boolean;
1732
+ clearTime(): void;
1733
+ getTime(): google_protobuf_timestamp_pb.Timestamp | undefined;
1734
+ setTime(value?: google_protobuf_timestamp_pb.Timestamp): void;
1735
+
1736
+ getMetadataMap(): jspb.Map<string, google_protobuf_any_pb.Any>;
1737
+ clearMetadataMap(): void;
1738
+ getArgsMap(): jspb.Map<string, google_protobuf_any_pb.Any>;
1739
+ clearArgsMap(): void;
1740
+ getOptionsMap(): jspb.Map<string, google_protobuf_any_pb.Any>;
1741
+ clearOptionsMap(): void;
1742
+ getStreammode(): StreamModeMap[keyof StreamModeMap];
1743
+ setStreammode(value: StreamModeMap[keyof StreamModeMap]): void;
1744
+
1745
+ hasPhone(): boolean;
1746
+ clearPhone(): void;
1747
+ getPhone(): PhoneIdentity | undefined;
1748
+ setPhone(value?: PhoneIdentity): void;
1749
+
1750
+ hasWeb(): boolean;
1751
+ clearWeb(): void;
1752
+ getWeb(): WebIdentity | undefined;
1753
+ setWeb(value?: WebIdentity): void;
1754
+
1755
+ getUseridentityCase(): ConversationInitialization.UseridentityCase;
1756
+ serializeBinary(): Uint8Array;
1757
+ toObject(includeInstance?: boolean): ConversationInitialization.AsObject;
1758
+ static toObject(includeInstance: boolean, msg: ConversationInitialization): ConversationInitialization.AsObject;
1759
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
1760
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
1761
+ static serializeBinaryToWriter(message: ConversationInitialization, writer: jspb.BinaryWriter): void;
1762
+ static deserializeBinary(bytes: Uint8Array): ConversationInitialization;
1763
+ static deserializeBinaryFromReader(message: ConversationInitialization, reader: jspb.BinaryReader): ConversationInitialization;
1764
+ }
1765
+
1766
+ declare namespace ConversationInitialization {
1767
+ export type AsObject = {
1768
+ assistantconversationid: string,
1769
+ assistant?: AssistantDefinition.AsObject,
1770
+ time?: google_protobuf_timestamp_pb.Timestamp.AsObject,
1771
+ metadataMap: Array<[string, google_protobuf_any_pb.Any.AsObject]>,
1772
+ argsMap: Array<[string, google_protobuf_any_pb.Any.AsObject]>,
1773
+ optionsMap: Array<[string, google_protobuf_any_pb.Any.AsObject]>,
1774
+ streammode: StreamModeMap[keyof StreamModeMap],
1775
+ phone?: PhoneIdentity.AsObject,
1776
+ web?: WebIdentity.AsObject,
1777
+ }
1778
+
1779
+ export enum UseridentityCase {
1780
+ USERIDENTITY_NOT_SET = 0,
1781
+ PHONE = 10,
1782
+ WEB = 11,
1783
+ }
1784
+ }
1785
+
1786
+ declare class ConversationConfiguration extends jspb.Message {
1787
+ getStreammode(): StreamModeMap[keyof StreamModeMap];
1788
+ setStreammode(value: StreamModeMap[keyof StreamModeMap]): void;
1789
+
1790
+ serializeBinary(): Uint8Array;
1791
+ toObject(includeInstance?: boolean): ConversationConfiguration.AsObject;
1792
+ static toObject(includeInstance: boolean, msg: ConversationConfiguration): ConversationConfiguration.AsObject;
1793
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
1794
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
1795
+ static serializeBinaryToWriter(message: ConversationConfiguration, writer: jspb.BinaryWriter): void;
1796
+ static deserializeBinary(bytes: Uint8Array): ConversationConfiguration;
1797
+ static deserializeBinaryFromReader(message: ConversationConfiguration, reader: jspb.BinaryReader): ConversationConfiguration;
1798
+ }
1799
+
1800
+ declare namespace ConversationConfiguration {
1801
+ export type AsObject = {
1802
+ streammode: StreamModeMap[keyof StreamModeMap],
1803
+ }
1804
+ }
1805
+
1650
1806
  declare class ConversationInterruption extends jspb.Message {
1651
1807
  getId(): string;
1652
1808
  setId(value: string): void;
@@ -1685,6 +1841,40 @@ declare namespace ConversationInterruption {
1685
1841
  export const InterruptionType: InterruptionTypeMap;
1686
1842
  }
1687
1843
 
1844
+ declare class ConversationDisconnection extends jspb.Message {
1845
+ getType(): ConversationDisconnection.DisconnectionTypeMap[keyof ConversationDisconnection.DisconnectionTypeMap];
1846
+ setType(value: ConversationDisconnection.DisconnectionTypeMap[keyof ConversationDisconnection.DisconnectionTypeMap]): void;
1847
+
1848
+ hasTime(): boolean;
1849
+ clearTime(): void;
1850
+ getTime(): google_protobuf_timestamp_pb.Timestamp | undefined;
1851
+ setTime(value?: google_protobuf_timestamp_pb.Timestamp): void;
1852
+
1853
+ serializeBinary(): Uint8Array;
1854
+ toObject(includeInstance?: boolean): ConversationDisconnection.AsObject;
1855
+ static toObject(includeInstance: boolean, msg: ConversationDisconnection): ConversationDisconnection.AsObject;
1856
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
1857
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
1858
+ static serializeBinaryToWriter(message: ConversationDisconnection, writer: jspb.BinaryWriter): void;
1859
+ static deserializeBinary(bytes: Uint8Array): ConversationDisconnection;
1860
+ static deserializeBinaryFromReader(message: ConversationDisconnection, reader: jspb.BinaryReader): ConversationDisconnection;
1861
+ }
1862
+
1863
+ declare namespace ConversationDisconnection {
1864
+ export type AsObject = {
1865
+ type: ConversationDisconnection.DisconnectionTypeMap[keyof ConversationDisconnection.DisconnectionTypeMap],
1866
+ time?: google_protobuf_timestamp_pb.Timestamp.AsObject,
1867
+ }
1868
+
1869
+ export interface DisconnectionTypeMap {
1870
+ DISCONNECTION_TYPE_UNSPECIFIED: 0;
1871
+ DISCONNECTION_TYPE_TOOL: 1;
1872
+ DISCONNECTION_TYPE_USER: 2;
1873
+ }
1874
+
1875
+ export const DisconnectionType: DisconnectionTypeMap;
1876
+ }
1877
+
1688
1878
  declare class ConversationAssistantMessage$1 extends jspb.Message {
1689
1879
  hasAudio(): boolean;
1690
1880
  clearAudio(): void;
@@ -1787,7 +1977,12 @@ declare namespace ConversationUserMessage$1 {
1787
1977
  }
1788
1978
  }
1789
1979
 
1790
- declare class AssistantTalkInput extends jspb.Message {
1980
+ declare class AssistantTalkRequest extends jspb.Message {
1981
+ hasInitialization(): boolean;
1982
+ clearInitialization(): void;
1983
+ getInitialization(): ConversationInitialization | undefined;
1984
+ setInitialization(value?: ConversationInitialization): void;
1985
+
1791
1986
  hasConfiguration(): boolean;
1792
1987
  clearConfiguration(): void;
1793
1988
  getConfiguration(): ConversationConfiguration | undefined;
@@ -1798,37 +1993,65 @@ declare class AssistantTalkInput extends jspb.Message {
1798
1993
  getMessage(): ConversationUserMessage$1 | undefined;
1799
1994
  setMessage(value?: ConversationUserMessage$1): void;
1800
1995
 
1801
- getRequestCase(): AssistantTalkInput.RequestCase;
1996
+ hasMetadata(): boolean;
1997
+ clearMetadata(): void;
1998
+ getMetadata(): ConversationMetadata | undefined;
1999
+ setMetadata(value?: ConversationMetadata): void;
2000
+
2001
+ hasMetric(): boolean;
2002
+ clearMetric(): void;
2003
+ getMetric(): ConversationMetric | undefined;
2004
+ setMetric(value?: ConversationMetric): void;
2005
+
2006
+ hasDisconnection(): boolean;
2007
+ clearDisconnection(): void;
2008
+ getDisconnection(): ConversationDisconnection | undefined;
2009
+ setDisconnection(value?: ConversationDisconnection): void;
2010
+
2011
+ getRequestCase(): AssistantTalkRequest.RequestCase;
1802
2012
  serializeBinary(): Uint8Array;
1803
- toObject(includeInstance?: boolean): AssistantTalkInput.AsObject;
1804
- static toObject(includeInstance: boolean, msg: AssistantTalkInput): AssistantTalkInput.AsObject;
2013
+ toObject(includeInstance?: boolean): AssistantTalkRequest.AsObject;
2014
+ static toObject(includeInstance: boolean, msg: AssistantTalkRequest): AssistantTalkRequest.AsObject;
1805
2015
  static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
1806
2016
  static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
1807
- static serializeBinaryToWriter(message: AssistantTalkInput, writer: jspb.BinaryWriter): void;
1808
- static deserializeBinary(bytes: Uint8Array): AssistantTalkInput;
1809
- static deserializeBinaryFromReader(message: AssistantTalkInput, reader: jspb.BinaryReader): AssistantTalkInput;
2017
+ static serializeBinaryToWriter(message: AssistantTalkRequest, writer: jspb.BinaryWriter): void;
2018
+ static deserializeBinary(bytes: Uint8Array): AssistantTalkRequest;
2019
+ static deserializeBinaryFromReader(message: AssistantTalkRequest, reader: jspb.BinaryReader): AssistantTalkRequest;
1810
2020
  }
1811
2021
 
1812
- declare namespace AssistantTalkInput {
2022
+ declare namespace AssistantTalkRequest {
1813
2023
  export type AsObject = {
2024
+ initialization?: ConversationInitialization.AsObject,
1814
2025
  configuration?: ConversationConfiguration.AsObject,
1815
2026
  message?: ConversationUserMessage$1.AsObject,
2027
+ metadata?: ConversationMetadata.AsObject,
2028
+ metric?: ConversationMetric.AsObject,
2029
+ disconnection?: ConversationDisconnection.AsObject,
1816
2030
  }
1817
2031
 
1818
2032
  export enum RequestCase {
1819
2033
  REQUEST_NOT_SET = 0,
2034
+ INITIALIZATION = 1,
1820
2035
  CONFIGURATION = 2,
1821
2036
  MESSAGE = 3,
2037
+ METADATA = 4,
2038
+ METRIC = 5,
2039
+ DISCONNECTION = 6,
1822
2040
  }
1823
2041
  }
1824
2042
 
1825
- declare class AssistantTalkOutput extends jspb.Message {
2043
+ declare class AssistantTalkResponse extends jspb.Message {
1826
2044
  getCode(): number;
1827
2045
  setCode(value: number): void;
1828
2046
 
1829
2047
  getSuccess(): boolean;
1830
2048
  setSuccess(value: boolean): void;
1831
2049
 
2050
+ hasInitialization(): boolean;
2051
+ clearInitialization(): void;
2052
+ getInitialization(): ConversationInitialization | undefined;
2053
+ setInitialization(value?: ConversationInitialization): void;
2054
+
1832
2055
  hasConfiguration(): boolean;
1833
2056
  clearConfiguration(): void;
1834
2057
  getConfiguration(): ConversationConfiguration | undefined;
@@ -1849,10 +2072,10 @@ declare class AssistantTalkOutput extends jspb.Message {
1849
2072
  getAssistant(): ConversationAssistantMessage$1 | undefined;
1850
2073
  setAssistant(value?: ConversationAssistantMessage$1): void;
1851
2074
 
1852
- hasTool(): boolean;
1853
- clearTool(): void;
1854
- getTool(): ConversationToolCall | undefined;
1855
- setTool(value?: ConversationToolCall): void;
2075
+ hasToolcall(): boolean;
2076
+ clearToolcall(): void;
2077
+ getToolcall(): ConversationToolCall | undefined;
2078
+ setToolcall(value?: ConversationToolCall): void;
1856
2079
 
1857
2080
  hasToolresult(): boolean;
1858
2081
  clearToolresult(): void;
@@ -1864,45 +2087,68 @@ declare class AssistantTalkOutput extends jspb.Message {
1864
2087
  getDirective(): ConversationDirective | undefined;
1865
2088
  setDirective(value?: ConversationDirective): void;
1866
2089
 
2090
+ hasMetadata(): boolean;
2091
+ clearMetadata(): void;
2092
+ getMetadata(): ConversationMetadata | undefined;
2093
+ setMetadata(value?: ConversationMetadata): void;
2094
+
2095
+ hasMetric(): boolean;
2096
+ clearMetric(): void;
2097
+ getMetric(): ConversationMetric | undefined;
2098
+ setMetric(value?: ConversationMetric): void;
2099
+
2100
+ hasDisconnection(): boolean;
2101
+ clearDisconnection(): void;
2102
+ getDisconnection(): ConversationDisconnection | undefined;
2103
+ setDisconnection(value?: ConversationDisconnection): void;
2104
+
1867
2105
  hasError(): boolean;
1868
2106
  clearError(): void;
1869
- getError(): Error | undefined;
1870
- setError(value?: Error): void;
2107
+ getError(): ConversationError | undefined;
2108
+ setError(value?: ConversationError): void;
1871
2109
 
1872
- getDataCase(): AssistantTalkOutput.DataCase;
2110
+ getDataCase(): AssistantTalkResponse.DataCase;
1873
2111
  serializeBinary(): Uint8Array;
1874
- toObject(includeInstance?: boolean): AssistantTalkOutput.AsObject;
1875
- static toObject(includeInstance: boolean, msg: AssistantTalkOutput): AssistantTalkOutput.AsObject;
2112
+ toObject(includeInstance?: boolean): AssistantTalkResponse.AsObject;
2113
+ static toObject(includeInstance: boolean, msg: AssistantTalkResponse): AssistantTalkResponse.AsObject;
1876
2114
  static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
1877
2115
  static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
1878
- static serializeBinaryToWriter(message: AssistantTalkOutput, writer: jspb.BinaryWriter): void;
1879
- static deserializeBinary(bytes: Uint8Array): AssistantTalkOutput;
1880
- static deserializeBinaryFromReader(message: AssistantTalkOutput, reader: jspb.BinaryReader): AssistantTalkOutput;
2116
+ static serializeBinaryToWriter(message: AssistantTalkResponse, writer: jspb.BinaryWriter): void;
2117
+ static deserializeBinary(bytes: Uint8Array): AssistantTalkResponse;
2118
+ static deserializeBinaryFromReader(message: AssistantTalkResponse, reader: jspb.BinaryReader): AssistantTalkResponse;
1881
2119
  }
1882
2120
 
1883
- declare namespace AssistantTalkOutput {
2121
+ declare namespace AssistantTalkResponse {
1884
2122
  export type AsObject = {
1885
2123
  code: number,
1886
2124
  success: boolean,
2125
+ initialization?: ConversationInitialization.AsObject,
1887
2126
  configuration?: ConversationConfiguration.AsObject,
1888
2127
  interruption?: ConversationInterruption.AsObject,
1889
2128
  user?: ConversationUserMessage$1.AsObject,
1890
2129
  assistant?: ConversationAssistantMessage$1.AsObject,
1891
- tool?: ConversationToolCall.AsObject,
2130
+ toolcall?: ConversationToolCall.AsObject,
1892
2131
  toolresult?: ConversationToolResult.AsObject,
1893
2132
  directive?: ConversationDirective.AsObject,
1894
- error?: Error.AsObject,
2133
+ metadata?: ConversationMetadata.AsObject,
2134
+ metric?: ConversationMetric.AsObject,
2135
+ disconnection?: ConversationDisconnection.AsObject,
2136
+ error?: ConversationError.AsObject,
1895
2137
  }
1896
2138
 
1897
2139
  export enum DataCase {
1898
2140
  DATA_NOT_SET = 0,
2141
+ INITIALIZATION = 8,
1899
2142
  CONFIGURATION = 9,
1900
2143
  INTERRUPTION = 10,
1901
2144
  USER = 11,
1902
2145
  ASSISTANT = 12,
1903
- TOOL = 13,
2146
+ TOOLCALL = 13,
1904
2147
  TOOLRESULT = 14,
1905
2148
  DIRECTIVE = 16,
2149
+ METADATA = 17,
2150
+ METRIC = 18,
2151
+ DISCONNECTION = 19,
1906
2152
  ERROR = 15,
1907
2153
  }
1908
2154
  }
@@ -1955,8 +2201,8 @@ declare class CreateMessageMetricResponse extends jspb.Message {
1955
2201
 
1956
2202
  hasError(): boolean;
1957
2203
  clearError(): void;
1958
- getError(): Error | undefined;
1959
- setError(value?: Error): void;
2204
+ getError(): Error$1 | undefined;
2205
+ setError(value?: Error$1): void;
1960
2206
 
1961
2207
  serializeBinary(): Uint8Array;
1962
2208
  toObject(includeInstance?: boolean): CreateMessageMetricResponse.AsObject;
@@ -1973,7 +2219,7 @@ declare namespace CreateMessageMetricResponse {
1973
2219
  code: number,
1974
2220
  success: boolean,
1975
2221
  dataList: Array<Metric.AsObject>,
1976
- error?: Error.AsObject,
2222
+ error?: Error$1.AsObject,
1977
2223
  }
1978
2224
  }
1979
2225
 
@@ -2021,8 +2267,8 @@ declare class CreateConversationMetricResponse extends jspb.Message {
2021
2267
 
2022
2268
  hasError(): boolean;
2023
2269
  clearError(): void;
2024
- getError(): Error | undefined;
2025
- setError(value?: Error): void;
2270
+ getError(): Error$1 | undefined;
2271
+ setError(value?: Error$1): void;
2026
2272
 
2027
2273
  serializeBinary(): Uint8Array;
2028
2274
  toObject(includeInstance?: boolean): CreateConversationMetricResponse.AsObject;
@@ -2039,7 +2285,7 @@ declare namespace CreateConversationMetricResponse {
2039
2285
  code: number,
2040
2286
  success: boolean,
2041
2287
  dataList: Array<Metric.AsObject>,
2042
- error?: Error.AsObject,
2288
+ error?: Error$1.AsObject,
2043
2289
  }
2044
2290
  }
2045
2291
 
@@ -2096,8 +2342,8 @@ declare class CreatePhoneCallResponse extends jspb.Message {
2096
2342
 
2097
2343
  hasError(): boolean;
2098
2344
  clearError(): void;
2099
- getError(): Error | undefined;
2100
- setError(value?: Error): void;
2345
+ getError(): Error$1 | undefined;
2346
+ setError(value?: Error$1): void;
2101
2347
 
2102
2348
  serializeBinary(): Uint8Array;
2103
2349
  toObject(includeInstance?: boolean): CreatePhoneCallResponse.AsObject;
@@ -2114,7 +2360,7 @@ declare namespace CreatePhoneCallResponse {
2114
2360
  code: number,
2115
2361
  success: boolean,
2116
2362
  data?: AssistantConversation.AsObject,
2117
- error?: Error.AsObject,
2363
+ error?: Error$1.AsObject,
2118
2364
  }
2119
2365
  }
2120
2366
 
@@ -2154,8 +2400,8 @@ declare class CreateBulkPhoneCallResponse extends jspb.Message {
2154
2400
 
2155
2401
  hasError(): boolean;
2156
2402
  clearError(): void;
2157
- getError(): Error | undefined;
2158
- setError(value?: Error): void;
2403
+ getError(): Error$1 | undefined;
2404
+ setError(value?: Error$1): void;
2159
2405
 
2160
2406
  serializeBinary(): Uint8Array;
2161
2407
  toObject(includeInstance?: boolean): CreateBulkPhoneCallResponse.AsObject;
@@ -2172,91 +2418,60 @@ declare namespace CreateBulkPhoneCallResponse {
2172
2418
  code: number,
2173
2419
  success: boolean,
2174
2420
  dataList: Array<AssistantConversation.AsObject>,
2175
- error?: Error.AsObject,
2421
+ error?: Error$1.AsObject,
2176
2422
  }
2177
2423
  }
2178
2424
 
2179
- declare enum Channel {
2180
- Text = "text",
2181
- Audio = "audio"
2425
+ interface StreamModeMap {
2426
+ STREAM_MODE_UNSPECIFIED: 0;
2427
+ STREAM_MODE_TEXT: 1;
2428
+ STREAM_MODE_AUDIO: 2;
2429
+ STREAM_MODE_BOTH: 3;
2182
2430
  }
2183
2431
 
2184
2432
  /**
2185
- *
2186
- */
2187
- interface PlayerOptions {
2188
- format: "pcm" | "ulaw";
2189
- sampleRate: number;
2190
- device?: string;
2191
- }
2192
- /**
2193
- *
2194
- */
2195
- interface RecorderOptions {
2196
- format: "pcm" | "ulaw";
2197
- sampleRate: number;
2198
- device?: string;
2199
- }
2200
- /**
2201
- *
2433
+ * Input options for the agent (microphone/recording settings)
2202
2434
  */
2203
2435
  declare class InputOptions {
2204
- /**
2205
- * enable channels
2206
- */
2436
+ /** Enabled channels for input */
2207
2437
  channels: Channel[];
2208
- /**
2209
- * sample rate for player
2210
- */
2211
- recorderOptions: RecorderOptions;
2212
- get recorderOption(): RecorderOptions;
2213
- /**
2214
- * channel for providing output
2215
- */
2438
+ /** Default input channel */
2216
2439
  channel: Channel;
2217
- get defaultChannel(): Channel;
2440
+ /** Input device ID (microphone) */
2441
+ device?: string;
2442
+ /** ICE servers for WebRTC (STUN/TURN) */
2443
+ iceServers?: RTCIceServer[];
2218
2444
  /**
2219
- * stream config
2220
- * define audio codacs and sample rate. these will be directly translated to stt
2445
+ * Returns a default stream configuration based on the currently selected
2446
+ * channel. This mirrors the protobuf `StreamConfig` type used by the
2447
+ * backend so consumers can easily build conversation initialization
2448
+ * payloads.
2221
2449
  */
2222
2450
  get defaultInputStreamOption(): StreamConfig;
2223
- /**
2224
- *
2225
- * @param channels
2226
- * @param channel
2227
- * @param deviceId
2228
- */
2229
- constructor(channels: Channel[], channel?: Channel, deviceId?: string);
2451
+ constructor(channels: Channel[], channel?: Channel, deviceId?: string, iceServers?: RTCIceServer[]);
2230
2452
  }
2231
2453
  /**
2232
- *
2454
+ * Output options for the agent (speaker/playback settings)
2233
2455
  */
2234
2456
  declare class OutputOptions {
2235
- /**
2236
- * enable channels
2237
- */
2457
+ /** Enabled channels for output */
2238
2458
  channels: Channel[];
2239
- /**
2240
- * sample rate for player
2241
- */
2242
- protected playerOptions: PlayerOptions;
2243
- get playerOption(): PlayerOptions;
2244
- /**
2245
- * channel for providing output
2246
- */
2459
+ /** Default output channel */
2247
2460
  channel: Channel;
2461
+ /** Output device ID (speaker) */
2462
+ device?: string;
2248
2463
  /**
2249
- *
2250
- * @param channels
2251
- * @param channel
2252
- * @param deviceId
2253
- */
2254
- constructor(channels: Channel[], channel?: Channel, deviceId?: string);
2255
- /**
2256
- * stream config
2257
- * define audio codacs and sample rate. these will be directly translated to tts
2464
+ * Default stream configuration for output. Returns a protobuf-style
2465
+ * `StreamConfig` instance matching the current channel.
2258
2466
  */
2259
2467
  get defaultOutputStreamOption(): StreamConfig;
2468
+ constructor(channels: Channel[], channel?: Channel, deviceId?: string);
2469
+ }
2470
+ declare class UserIdentifier {
2471
+ /** User identifier type */
2472
+ id: string;
2473
+ name?: string;
2474
+ constructor(id: string, name?: string);
2260
2475
  }
2261
2476
  /**
2262
2477
  * Represents the configuration settings for an agent.
@@ -2291,6 +2506,10 @@ declare class AgentConfig {
2291
2506
  *
2292
2507
  */
2293
2508
  outputOptions: OutputOptions;
2509
+ /**
2510
+ * user identifier for conversation
2511
+ */
2512
+ userIdentifier?: UserIdentifier;
2294
2513
  /**
2295
2514
  * Initializes a new instance of `AgentConfig`.
2296
2515
  *
@@ -2298,7 +2517,7 @@ declare class AgentConfig {
2298
2517
  * @param version - (Optional) Version number of the agent.
2299
2518
  * @param argument - (Optional) Configuration arguments for the agent.
2300
2519
  */
2301
- constructor(id: string, inputOptions?: InputOptions, outputOptions?: OutputOptions, version?: string, argument?: Map<string, google_protobuf_any_pb.Any>, options?: Map<string, google_protobuf_any_pb.Any>, metadata?: Map<string, google_protobuf_any_pb.Any>);
2520
+ constructor(id: string, inputOptions?: InputOptions, outputOptions?: OutputOptions, version?: string, argument?: Map<string, google_protobuf_any_pb.Any>, options?: Map<string, google_protobuf_any_pb.Any>, metadata?: Map<string, google_protobuf_any_pb.Any>, userIdentifier?: UserIdentifier);
2302
2521
  /**
2303
2522
  * Retrieves the assistant definition for this agent.
2304
2523
  *
@@ -2332,6 +2551,13 @@ declare class AgentConfig {
2332
2551
  * @returns
2333
2552
  */
2334
2553
  addArgument(k: string, value: string): this;
2554
+ /**
2555
+ * Set the user identifier for the conversation.
2556
+ * @param id - Unique user identifier
2557
+ * @param name - Optional display name
2558
+ * @returns this for chaining
2559
+ */
2560
+ setUserIdentifier(id: string, name?: string): this;
2335
2561
  }
2336
2562
 
2337
2563
  // package: talk_api
@@ -2344,8 +2570,8 @@ type TalkServiceAssistantTalk = {
2344
2570
  readonly service: typeof TalkService;
2345
2571
  readonly requestStream: true;
2346
2572
  readonly responseStream: true;
2347
- readonly requestType: typeof AssistantTalkInput;
2348
- readonly responseType: typeof AssistantTalkOutput;
2573
+ readonly requestType: typeof AssistantTalkRequest;
2574
+ readonly responseType: typeof AssistantTalkResponse;
2349
2575
  };
2350
2576
 
2351
2577
  type TalkServiceGetAllAssistantConversation = {
@@ -2414,25 +2640,25 @@ declare class TalkService {
2414
2640
  }
2415
2641
 
2416
2642
  type ServiceError$b = { message: string, code: number; metadata: grpc.Metadata }
2417
- type Status = { details: string, code: number; metadata: grpc.Metadata }
2643
+ type Status$1 = { details: string, code: number; metadata: grpc.Metadata }
2418
2644
 
2419
2645
  interface UnaryResponse$b {
2420
2646
  cancel(): void;
2421
2647
  }
2422
- interface BidirectionalStream<ReqT, ResT> {
2423
- write(message: ReqT): BidirectionalStream<ReqT, ResT>;
2648
+ interface BidirectionalStream$1<ReqT, ResT> {
2649
+ write(message: ReqT): BidirectionalStream$1<ReqT, ResT>;
2424
2650
  end(): void;
2425
2651
  cancel(): void;
2426
- on(type: 'data', handler: (message: ResT) => void): BidirectionalStream<ReqT, ResT>;
2427
- on(type: 'end', handler: (status?: Status) => void): BidirectionalStream<ReqT, ResT>;
2428
- on(type: 'status', handler: (status: Status) => void): BidirectionalStream<ReqT, ResT>;
2652
+ on(type: 'data', handler: (message: ResT) => void): BidirectionalStream$1<ReqT, ResT>;
2653
+ on(type: 'end', handler: (status?: Status$1) => void): BidirectionalStream$1<ReqT, ResT>;
2654
+ on(type: 'status', handler: (status: Status$1) => void): BidirectionalStream$1<ReqT, ResT>;
2429
2655
  }
2430
2656
 
2431
2657
  declare class TalkServiceClient {
2432
2658
  readonly serviceHost: string;
2433
2659
 
2434
2660
  constructor(serviceHost: string, options?: grpc.RpcOptions);
2435
- assistantTalk(metadata?: grpc.Metadata): BidirectionalStream<AssistantTalkInput, AssistantTalkOutput>;
2661
+ assistantTalk(metadata?: grpc.Metadata): BidirectionalStream$1<AssistantTalkRequest, AssistantTalkResponse>;
2436
2662
  getAllAssistantConversation(
2437
2663
  requestMessage: GetAllAssistantConversationRequest,
2438
2664
  metadata: grpc.Metadata,
@@ -2515,12 +2741,13 @@ declare const HEADER_REMOTE_URL = "x-remote-url";
2515
2741
  declare const HEADER_LATITUDE = "x-latitude";
2516
2742
  declare const HEADER_LONGITUDE = "x-longitude";
2517
2743
 
2518
- type RapidaSource = "web-plugin" | "debugger" | "sdk" | "phone-call" | "whatsapp";
2744
+ type RapidaSource = "web-plugin" | "debugger" | "sdk" | "phone-call" | "whatsapp" | "webrtc";
2519
2745
  declare const WEB_PLUGIN_SOURCE: RapidaSource;
2520
2746
  declare const DEBUGGER_SOURCE: RapidaSource;
2521
2747
  declare const SDK_SOURCE: RapidaSource;
2522
2748
  declare const PHONE_CALL_SOURCE: RapidaSource;
2523
2749
  declare const WHATSAPP_SOURCE: RapidaSource;
2750
+ declare const WEBRTC_SOURCE: RapidaSource;
2524
2751
  declare function getRapidaSourceValue(source: RapidaSource): string;
2525
2752
  declare function fromStr(label: string): RapidaSource;
2526
2753
 
@@ -2599,6 +2826,7 @@ declare const WithClientContext: (metadata?: grpc.Metadata) => grpc.Metadata;
2599
2826
 
2600
2827
  declare enum ConnectionState {
2601
2828
  Disconnected = "disconnected",
2829
+ Connecting = "connecting",
2602
2830
  Connected = "connected"
2603
2831
  }
2604
2832
 
@@ -3169,8 +3397,8 @@ declare class GetAssistantApiDeploymentResponse extends jspb.Message {
3169
3397
 
3170
3398
  hasError(): boolean;
3171
3399
  clearError(): void;
3172
- getError(): Error | undefined;
3173
- setError(value?: Error): void;
3400
+ getError(): Error$1 | undefined;
3401
+ setError(value?: Error$1): void;
3174
3402
 
3175
3403
  serializeBinary(): Uint8Array;
3176
3404
  toObject(includeInstance?: boolean): GetAssistantApiDeploymentResponse.AsObject;
@@ -3187,7 +3415,7 @@ declare namespace GetAssistantApiDeploymentResponse {
3187
3415
  code: number,
3188
3416
  success: boolean,
3189
3417
  data?: AssistantApiDeployment.AsObject,
3190
- error?: Error.AsObject,
3418
+ error?: Error$1.AsObject,
3191
3419
  }
3192
3420
  }
3193
3421
 
@@ -3205,8 +3433,8 @@ declare class GetAssistantPhoneDeploymentResponse extends jspb.Message {
3205
3433
 
3206
3434
  hasError(): boolean;
3207
3435
  clearError(): void;
3208
- getError(): Error | undefined;
3209
- setError(value?: Error): void;
3436
+ getError(): Error$1 | undefined;
3437
+ setError(value?: Error$1): void;
3210
3438
 
3211
3439
  serializeBinary(): Uint8Array;
3212
3440
  toObject(includeInstance?: boolean): GetAssistantPhoneDeploymentResponse.AsObject;
@@ -3223,7 +3451,7 @@ declare namespace GetAssistantPhoneDeploymentResponse {
3223
3451
  code: number,
3224
3452
  success: boolean,
3225
3453
  data?: AssistantPhoneDeployment.AsObject,
3226
- error?: Error.AsObject,
3454
+ error?: Error$1.AsObject,
3227
3455
  }
3228
3456
  }
3229
3457
 
@@ -3241,8 +3469,8 @@ declare class GetAssistantWhatsappDeploymentResponse extends jspb.Message {
3241
3469
 
3242
3470
  hasError(): boolean;
3243
3471
  clearError(): void;
3244
- getError(): Error | undefined;
3245
- setError(value?: Error): void;
3472
+ getError(): Error$1 | undefined;
3473
+ setError(value?: Error$1): void;
3246
3474
 
3247
3475
  serializeBinary(): Uint8Array;
3248
3476
  toObject(includeInstance?: boolean): GetAssistantWhatsappDeploymentResponse.AsObject;
@@ -3259,7 +3487,7 @@ declare namespace GetAssistantWhatsappDeploymentResponse {
3259
3487
  code: number,
3260
3488
  success: boolean,
3261
3489
  data?: AssistantWhatsappDeployment.AsObject,
3262
- error?: Error.AsObject,
3490
+ error?: Error$1.AsObject,
3263
3491
  }
3264
3492
  }
3265
3493
 
@@ -3277,8 +3505,8 @@ declare class GetAssistantDebuggerDeploymentResponse extends jspb.Message {
3277
3505
 
3278
3506
  hasError(): boolean;
3279
3507
  clearError(): void;
3280
- getError(): Error | undefined;
3281
- setError(value?: Error): void;
3508
+ getError(): Error$1 | undefined;
3509
+ setError(value?: Error$1): void;
3282
3510
 
3283
3511
  serializeBinary(): Uint8Array;
3284
3512
  toObject(includeInstance?: boolean): GetAssistantDebuggerDeploymentResponse.AsObject;
@@ -3295,7 +3523,7 @@ declare namespace GetAssistantDebuggerDeploymentResponse {
3295
3523
  code: number,
3296
3524
  success: boolean,
3297
3525
  data?: AssistantDebuggerDeployment.AsObject,
3298
- error?: Error.AsObject,
3526
+ error?: Error$1.AsObject,
3299
3527
  }
3300
3528
  }
3301
3529
 
@@ -3313,8 +3541,8 @@ declare class GetAssistantWebpluginDeploymentResponse extends jspb.Message {
3313
3541
 
3314
3542
  hasError(): boolean;
3315
3543
  clearError(): void;
3316
- getError(): Error | undefined;
3317
- setError(value?: Error): void;
3544
+ getError(): Error$1 | undefined;
3545
+ setError(value?: Error$1): void;
3318
3546
 
3319
3547
  serializeBinary(): Uint8Array;
3320
3548
  toObject(includeInstance?: boolean): GetAssistantWebpluginDeploymentResponse.AsObject;
@@ -3331,7 +3559,7 @@ declare namespace GetAssistantWebpluginDeploymentResponse {
3331
3559
  code: number,
3332
3560
  success: boolean,
3333
3561
  data?: AssistantWebpluginDeployment.AsObject,
3334
- error?: Error.AsObject,
3562
+ error?: Error$1.AsObject,
3335
3563
  }
3336
3564
  }
3337
3565
 
@@ -3578,8 +3806,8 @@ declare class GetAssistantToolResponse extends jspb.Message {
3578
3806
 
3579
3807
  hasError(): boolean;
3580
3808
  clearError(): void;
3581
- getError(): Error | undefined;
3582
- setError(value?: Error): void;
3809
+ getError(): Error$1 | undefined;
3810
+ setError(value?: Error$1): void;
3583
3811
 
3584
3812
  serializeBinary(): Uint8Array;
3585
3813
  toObject(includeInstance?: boolean): GetAssistantToolResponse.AsObject;
@@ -3596,7 +3824,7 @@ declare namespace GetAssistantToolResponse {
3596
3824
  code: number,
3597
3825
  success: boolean,
3598
3826
  data?: AssistantTool.AsObject,
3599
- error?: Error.AsObject,
3827
+ error?: Error$1.AsObject,
3600
3828
  }
3601
3829
  }
3602
3830
 
@@ -3646,8 +3874,8 @@ declare class GetAllAssistantToolResponse extends jspb.Message {
3646
3874
 
3647
3875
  hasError(): boolean;
3648
3876
  clearError(): void;
3649
- getError(): Error | undefined;
3650
- setError(value?: Error): void;
3877
+ getError(): Error$1 | undefined;
3878
+ setError(value?: Error$1): void;
3651
3879
 
3652
3880
  hasPaginated(): boolean;
3653
3881
  clearPaginated(): void;
@@ -3669,7 +3897,7 @@ declare namespace GetAllAssistantToolResponse {
3669
3897
  code: number,
3670
3898
  success: boolean,
3671
3899
  dataList: Array<AssistantTool.AsObject>,
3672
- error?: Error.AsObject,
3900
+ error?: Error$1.AsObject,
3673
3901
  paginated?: Paginated.AsObject,
3674
3902
  }
3675
3903
  }
@@ -3750,8 +3978,8 @@ declare class GetAssistantToolLogResponse extends jspb.Message {
3750
3978
 
3751
3979
  hasError(): boolean;
3752
3980
  clearError(): void;
3753
- getError(): Error | undefined;
3754
- setError(value?: Error): void;
3981
+ getError(): Error$1 | undefined;
3982
+ setError(value?: Error$1): void;
3755
3983
 
3756
3984
  serializeBinary(): Uint8Array;
3757
3985
  toObject(includeInstance?: boolean): GetAssistantToolLogResponse.AsObject;
@@ -3768,7 +3996,7 @@ declare namespace GetAssistantToolLogResponse {
3768
3996
  code: number,
3769
3997
  success: boolean,
3770
3998
  data?: AssistantToolLog.AsObject,
3771
- error?: Error.AsObject,
3999
+ error?: Error$1.AsObject,
3772
4000
  }
3773
4001
  }
3774
4002
 
@@ -3786,8 +4014,8 @@ declare class GetAllAssistantToolLogResponse extends jspb.Message {
3786
4014
 
3787
4015
  hasError(): boolean;
3788
4016
  clearError(): void;
3789
- getError(): Error | undefined;
3790
- setError(value?: Error): void;
4017
+ getError(): Error$1 | undefined;
4018
+ setError(value?: Error$1): void;
3791
4019
 
3792
4020
  hasPaginated(): boolean;
3793
4021
  clearPaginated(): void;
@@ -3809,7 +4037,7 @@ declare namespace GetAllAssistantToolLogResponse {
3809
4037
  code: number,
3810
4038
  success: boolean,
3811
4039
  dataList: Array<AssistantToolLog.AsObject>,
3812
- error?: Error.AsObject,
4040
+ error?: Error$1.AsObject,
3813
4041
  paginated?: Paginated.AsObject,
3814
4042
  }
3815
4043
  }
@@ -4154,8 +4382,8 @@ declare class GetAssistantAnalysisResponse extends jspb.Message {
4154
4382
 
4155
4383
  hasError(): boolean;
4156
4384
  clearError(): void;
4157
- getError(): Error | undefined;
4158
- setError(value?: Error): void;
4385
+ getError(): Error$1 | undefined;
4386
+ setError(value?: Error$1): void;
4159
4387
 
4160
4388
  serializeBinary(): Uint8Array;
4161
4389
  toObject(includeInstance?: boolean): GetAssistantAnalysisResponse.AsObject;
@@ -4172,7 +4400,7 @@ declare namespace GetAssistantAnalysisResponse {
4172
4400
  code: number,
4173
4401
  success: boolean,
4174
4402
  data?: AssistantAnalysis.AsObject,
4175
- error?: Error.AsObject,
4403
+ error?: Error$1.AsObject,
4176
4404
  }
4177
4405
  }
4178
4406
 
@@ -4222,8 +4450,8 @@ declare class GetAllAssistantAnalysisResponse extends jspb.Message {
4222
4450
 
4223
4451
  hasError(): boolean;
4224
4452
  clearError(): void;
4225
- getError(): Error | undefined;
4226
- setError(value?: Error): void;
4453
+ getError(): Error$1 | undefined;
4454
+ setError(value?: Error$1): void;
4227
4455
 
4228
4456
  hasPaginated(): boolean;
4229
4457
  clearPaginated(): void;
@@ -4245,7 +4473,7 @@ declare namespace GetAllAssistantAnalysisResponse {
4245
4473
  code: number,
4246
4474
  success: boolean,
4247
4475
  dataList: Array<AssistantAnalysis.AsObject>,
4248
- error?: Error.AsObject,
4476
+ error?: Error$1.AsObject,
4249
4477
  paginated?: Paginated.AsObject,
4250
4478
  }
4251
4479
  }
@@ -4643,8 +4871,8 @@ declare class GetAssistantWebhookResponse extends jspb.Message {
4643
4871
 
4644
4872
  hasError(): boolean;
4645
4873
  clearError(): void;
4646
- getError(): Error | undefined;
4647
- setError(value?: Error): void;
4874
+ getError(): Error$1 | undefined;
4875
+ setError(value?: Error$1): void;
4648
4876
 
4649
4877
  serializeBinary(): Uint8Array;
4650
4878
  toObject(includeInstance?: boolean): GetAssistantWebhookResponse.AsObject;
@@ -4661,7 +4889,7 @@ declare namespace GetAssistantWebhookResponse {
4661
4889
  code: number,
4662
4890
  success: boolean,
4663
4891
  data?: AssistantWebhook.AsObject,
4664
- error?: Error.AsObject,
4892
+ error?: Error$1.AsObject,
4665
4893
  }
4666
4894
  }
4667
4895
 
@@ -4715,8 +4943,8 @@ declare class GetAllAssistantWebhookResponse extends jspb.Message {
4715
4943
 
4716
4944
  hasError(): boolean;
4717
4945
  clearError(): void;
4718
- getError(): Error | undefined;
4719
- setError(value?: Error): void;
4946
+ getError(): Error$1 | undefined;
4947
+ setError(value?: Error$1): void;
4720
4948
 
4721
4949
  hasPaginated(): boolean;
4722
4950
  clearPaginated(): void;
@@ -4738,7 +4966,7 @@ declare namespace GetAllAssistantWebhookResponse {
4738
4966
  code: number,
4739
4967
  success: boolean,
4740
4968
  dataList: Array<AssistantWebhook.AsObject>,
4741
- error?: Error.AsObject,
4969
+ error?: Error$1.AsObject,
4742
4970
  paginated?: Paginated.AsObject,
4743
4971
  }
4744
4972
  }
@@ -4819,8 +5047,8 @@ declare class GetAssistantWebhookLogResponse extends jspb.Message {
4819
5047
 
4820
5048
  hasError(): boolean;
4821
5049
  clearError(): void;
4822
- getError(): Error | undefined;
4823
- setError(value?: Error): void;
5050
+ getError(): Error$1 | undefined;
5051
+ setError(value?: Error$1): void;
4824
5052
 
4825
5053
  serializeBinary(): Uint8Array;
4826
5054
  toObject(includeInstance?: boolean): GetAssistantWebhookLogResponse.AsObject;
@@ -4837,7 +5065,7 @@ declare namespace GetAssistantWebhookLogResponse {
4837
5065
  code: number,
4838
5066
  success: boolean,
4839
5067
  data?: AssistantWebhookLog.AsObject,
4840
- error?: Error.AsObject,
5068
+ error?: Error$1.AsObject,
4841
5069
  }
4842
5070
  }
4843
5071
 
@@ -4855,8 +5083,8 @@ declare class GetAllAssistantWebhookLogResponse extends jspb.Message {
4855
5083
 
4856
5084
  hasError(): boolean;
4857
5085
  clearError(): void;
4858
- getError(): Error | undefined;
4859
- setError(value?: Error): void;
5086
+ getError(): Error$1 | undefined;
5087
+ setError(value?: Error$1): void;
4860
5088
 
4861
5089
  hasPaginated(): boolean;
4862
5090
  clearPaginated(): void;
@@ -4878,7 +5106,7 @@ declare namespace GetAllAssistantWebhookLogResponse {
4878
5106
  code: number,
4879
5107
  success: boolean,
4880
5108
  dataList: Array<AssistantWebhookLog.AsObject>,
4881
- error?: Error.AsObject,
5109
+ error?: Error$1.AsObject,
4882
5110
  paginated?: Paginated.AsObject,
4883
5111
  }
4884
5112
  }
@@ -5138,8 +5366,8 @@ declare class GetAssistantKnowledgeResponse extends jspb.Message {
5138
5366
 
5139
5367
  hasError(): boolean;
5140
5368
  clearError(): void;
5141
- getError(): Error | undefined;
5142
- setError(value?: Error): void;
5369
+ getError(): Error$1 | undefined;
5370
+ setError(value?: Error$1): void;
5143
5371
 
5144
5372
  serializeBinary(): Uint8Array;
5145
5373
  toObject(includeInstance?: boolean): GetAssistantKnowledgeResponse.AsObject;
@@ -5156,7 +5384,7 @@ declare namespace GetAssistantKnowledgeResponse {
5156
5384
  code: number,
5157
5385
  success: boolean,
5158
5386
  data?: AssistantKnowledge.AsObject,
5159
- error?: Error.AsObject,
5387
+ error?: Error$1.AsObject,
5160
5388
  }
5161
5389
  }
5162
5390
 
@@ -5206,8 +5434,8 @@ declare class GetAllAssistantKnowledgeResponse extends jspb.Message {
5206
5434
 
5207
5435
  hasError(): boolean;
5208
5436
  clearError(): void;
5209
- getError(): Error | undefined;
5210
- setError(value?: Error): void;
5437
+ getError(): Error$1 | undefined;
5438
+ setError(value?: Error$1): void;
5211
5439
 
5212
5440
  hasPaginated(): boolean;
5213
5441
  clearPaginated(): void;
@@ -5229,7 +5457,7 @@ declare namespace GetAllAssistantKnowledgeResponse {
5229
5457
  code: number,
5230
5458
  success: boolean,
5231
5459
  dataList: Array<AssistantKnowledge.AsObject>,
5232
- error?: Error.AsObject,
5460
+ error?: Error$1.AsObject,
5233
5461
  paginated?: Paginated.AsObject,
5234
5462
  }
5235
5463
  }
@@ -5687,8 +5915,8 @@ declare class GetAssistantProviderResponse extends jspb.Message {
5687
5915
 
5688
5916
  hasError(): boolean;
5689
5917
  clearError(): void;
5690
- getError(): Error | undefined;
5691
- setError(value?: Error): void;
5918
+ getError(): Error$1 | undefined;
5919
+ setError(value?: Error$1): void;
5692
5920
 
5693
5921
  getDataCase(): GetAssistantProviderResponse.DataCase;
5694
5922
  serializeBinary(): Uint8Array;
@@ -5708,7 +5936,7 @@ declare namespace GetAssistantProviderResponse {
5708
5936
  assistantprovidermodel?: AssistantProviderModel.AsObject,
5709
5937
  assistantprovideragentkit?: AssistantProviderAgentkit.AsObject,
5710
5938
  assistantproviderwebsocket?: AssistantProviderWebsocket.AsObject,
5711
- error?: Error.AsObject,
5939
+ error?: Error$1.AsObject,
5712
5940
  }
5713
5941
 
5714
5942
  export enum DataCase {
@@ -5733,8 +5961,8 @@ declare class GetAllAssistantProviderResponse extends jspb.Message {
5733
5961
 
5734
5962
  hasError(): boolean;
5735
5963
  clearError(): void;
5736
- getError(): Error | undefined;
5737
- setError(value?: Error): void;
5964
+ getError(): Error$1 | undefined;
5965
+ setError(value?: Error$1): void;
5738
5966
 
5739
5967
  hasPaginated(): boolean;
5740
5968
  clearPaginated(): void;
@@ -5756,7 +5984,7 @@ declare namespace GetAllAssistantProviderResponse {
5756
5984
  code: number,
5757
5985
  success: boolean,
5758
5986
  dataList: Array<GetAllAssistantProviderResponse.AssistantProvider.AsObject>,
5759
- error?: Error.AsObject,
5987
+ error?: Error$1.AsObject,
5760
5988
  paginated?: Paginated.AsObject,
5761
5989
  }
5762
5990
 
@@ -6118,8 +6346,8 @@ declare class GetAssistantResponse extends jspb.Message {
6118
6346
 
6119
6347
  hasError(): boolean;
6120
6348
  clearError(): void;
6121
- getError(): Error | undefined;
6122
- setError(value?: Error): void;
6349
+ getError(): Error$1 | undefined;
6350
+ setError(value?: Error$1): void;
6123
6351
 
6124
6352
  serializeBinary(): Uint8Array;
6125
6353
  toObject(includeInstance?: boolean): GetAssistantResponse.AsObject;
@@ -6136,7 +6364,7 @@ declare namespace GetAssistantResponse {
6136
6364
  code: number,
6137
6365
  success: boolean,
6138
6366
  data?: Assistant.AsObject,
6139
- error?: Error.AsObject,
6367
+ error?: Error$1.AsObject,
6140
6368
  }
6141
6369
  }
6142
6370
 
@@ -6216,8 +6444,8 @@ declare class GetAllAssistantTelemetryResponse extends jspb.Message {
6216
6444
 
6217
6445
  hasError(): boolean;
6218
6446
  clearError(): void;
6219
- getError(): Error | undefined;
6220
- setError(value?: Error): void;
6447
+ getError(): Error$1 | undefined;
6448
+ setError(value?: Error$1): void;
6221
6449
 
6222
6450
  hasPaginated(): boolean;
6223
6451
  clearPaginated(): void;
@@ -6239,7 +6467,7 @@ declare namespace GetAllAssistantTelemetryResponse {
6239
6467
  code: number,
6240
6468
  success: boolean,
6241
6469
  dataList: Array<Telemetry.AsObject>,
6242
- error?: Error.AsObject,
6470
+ error?: Error$1.AsObject,
6243
6471
  paginated?: Paginated.AsObject,
6244
6472
  }
6245
6473
  }
@@ -6258,8 +6486,8 @@ declare class GetAllAssistantResponse extends jspb.Message {
6258
6486
 
6259
6487
  hasError(): boolean;
6260
6488
  clearError(): void;
6261
- getError(): Error | undefined;
6262
- setError(value?: Error): void;
6489
+ getError(): Error$1 | undefined;
6490
+ setError(value?: Error$1): void;
6263
6491
 
6264
6492
  hasPaginated(): boolean;
6265
6493
  clearPaginated(): void;
@@ -6281,7 +6509,7 @@ declare namespace GetAllAssistantResponse {
6281
6509
  code: number,
6282
6510
  success: boolean,
6283
6511
  dataList: Array<Assistant.AsObject>,
6284
- error?: Error.AsObject,
6512
+ error?: Error$1.AsObject,
6285
6513
  paginated?: Paginated.AsObject,
6286
6514
  }
6287
6515
  }
@@ -6344,8 +6572,8 @@ declare class GetAllAssistantMessageResponse extends jspb.Message {
6344
6572
 
6345
6573
  hasError(): boolean;
6346
6574
  clearError(): void;
6347
- getError(): Error | undefined;
6348
- setError(value?: Error): void;
6575
+ getError(): Error$1 | undefined;
6576
+ setError(value?: Error$1): void;
6349
6577
 
6350
6578
  hasPaginated(): boolean;
6351
6579
  clearPaginated(): void;
@@ -6367,7 +6595,7 @@ declare namespace GetAllAssistantMessageResponse {
6367
6595
  code: number,
6368
6596
  success: boolean,
6369
6597
  dataList: Array<AssistantConversationMessage.AsObject>,
6370
- error?: Error.AsObject,
6598
+ error?: Error$1.AsObject,
6371
6599
  paginated?: Paginated.AsObject,
6372
6600
  }
6373
6601
  }
@@ -6426,8 +6654,8 @@ declare class GetAllMessageResponse extends jspb.Message {
6426
6654
 
6427
6655
  hasError(): boolean;
6428
6656
  clearError(): void;
6429
- getError(): Error | undefined;
6430
- setError(value?: Error): void;
6657
+ getError(): Error$1 | undefined;
6658
+ setError(value?: Error$1): void;
6431
6659
 
6432
6660
  hasPaginated(): boolean;
6433
6661
  clearPaginated(): void;
@@ -6449,7 +6677,7 @@ declare namespace GetAllMessageResponse {
6449
6677
  code: number,
6450
6678
  success: boolean,
6451
6679
  dataList: Array<AssistantConversationMessage.AsObject>,
6452
- error?: Error.AsObject,
6680
+ error?: Error$1.AsObject,
6453
6681
  paginated?: Paginated.AsObject,
6454
6682
  }
6455
6683
  }
@@ -6526,8 +6754,8 @@ declare class GetAssistantConversationResponse extends jspb.Message {
6526
6754
 
6527
6755
  hasError(): boolean;
6528
6756
  clearError(): void;
6529
- getError(): Error | undefined;
6530
- setError(value?: Error): void;
6757
+ getError(): Error$1 | undefined;
6758
+ setError(value?: Error$1): void;
6531
6759
 
6532
6760
  serializeBinary(): Uint8Array;
6533
6761
  toObject(includeInstance?: boolean): GetAssistantConversationResponse.AsObject;
@@ -6544,7 +6772,7 @@ declare namespace GetAssistantConversationResponse {
6544
6772
  code: number,
6545
6773
  success: boolean,
6546
6774
  data?: AssistantConversation.AsObject,
6547
- error?: Error.AsObject,
6775
+ error?: Error$1.AsObject,
6548
6776
  }
6549
6777
  }
6550
6778
 
@@ -7583,8 +7811,8 @@ declare class AuthenticateResponse extends jspb.Message {
7583
7811
 
7584
7812
  hasError(): boolean;
7585
7813
  clearError(): void;
7586
- getError(): Error | undefined;
7587
- setError(value?: Error): void;
7814
+ getError(): Error$1 | undefined;
7815
+ setError(value?: Error$1): void;
7588
7816
 
7589
7817
  serializeBinary(): Uint8Array;
7590
7818
  toObject(includeInstance?: boolean): AuthenticateResponse.AsObject;
@@ -7601,7 +7829,7 @@ declare namespace AuthenticateResponse {
7601
7829
  code: number,
7602
7830
  success: boolean,
7603
7831
  data?: Authentication.AsObject,
7604
- error?: Error.AsObject,
7832
+ error?: Error$1.AsObject,
7605
7833
  }
7606
7834
  }
7607
7835
 
@@ -7634,8 +7862,8 @@ declare class ForgotPasswordResponse extends jspb.Message {
7634
7862
 
7635
7863
  hasError(): boolean;
7636
7864
  clearError(): void;
7637
- getError(): Error | undefined;
7638
- setError(value?: Error): void;
7865
+ getError(): Error$1 | undefined;
7866
+ setError(value?: Error$1): void;
7639
7867
 
7640
7868
  serializeBinary(): Uint8Array;
7641
7869
  toObject(includeInstance?: boolean): ForgotPasswordResponse.AsObject;
@@ -7651,7 +7879,7 @@ declare namespace ForgotPasswordResponse {
7651
7879
  export type AsObject = {
7652
7880
  code: number,
7653
7881
  success: boolean,
7654
- error?: Error.AsObject,
7882
+ error?: Error$1.AsObject,
7655
7883
  }
7656
7884
  }
7657
7885
 
@@ -7688,8 +7916,8 @@ declare class ChangePasswordResponse extends jspb.Message {
7688
7916
 
7689
7917
  hasError(): boolean;
7690
7918
  clearError(): void;
7691
- getError(): Error | undefined;
7692
- setError(value?: Error): void;
7919
+ getError(): Error$1 | undefined;
7920
+ setError(value?: Error$1): void;
7693
7921
 
7694
7922
  serializeBinary(): Uint8Array;
7695
7923
  toObject(includeInstance?: boolean): ChangePasswordResponse.AsObject;
@@ -7705,7 +7933,7 @@ declare namespace ChangePasswordResponse {
7705
7933
  export type AsObject = {
7706
7934
  code: number,
7707
7935
  success: boolean,
7708
- error?: Error.AsObject,
7936
+ error?: Error$1.AsObject,
7709
7937
  }
7710
7938
  }
7711
7939
 
@@ -7742,8 +7970,8 @@ declare class CreatePasswordResponse extends jspb.Message {
7742
7970
 
7743
7971
  hasError(): boolean;
7744
7972
  clearError(): void;
7745
- getError(): Error | undefined;
7746
- setError(value?: Error): void;
7973
+ getError(): Error$1 | undefined;
7974
+ setError(value?: Error$1): void;
7747
7975
 
7748
7976
  serializeBinary(): Uint8Array;
7749
7977
  toObject(includeInstance?: boolean): CreatePasswordResponse.AsObject;
@@ -7759,7 +7987,7 @@ declare namespace CreatePasswordResponse {
7759
7987
  export type AsObject = {
7760
7988
  code: number,
7761
7989
  success: boolean,
7762
- error?: Error.AsObject,
7990
+ error?: Error$1.AsObject,
7763
7991
  }
7764
7992
  }
7765
7993
 
@@ -7867,8 +8095,8 @@ declare class ScopedAuthenticationResponse extends jspb.Message {
7867
8095
 
7868
8096
  hasError(): boolean;
7869
8097
  clearError(): void;
7870
- getError(): Error | undefined;
7871
- setError(value?: Error): void;
8098
+ getError(): Error$1 | undefined;
8099
+ setError(value?: Error$1): void;
7872
8100
 
7873
8101
  serializeBinary(): Uint8Array;
7874
8102
  toObject(includeInstance?: boolean): ScopedAuthenticationResponse.AsObject;
@@ -7885,7 +8113,7 @@ declare namespace ScopedAuthenticationResponse {
7885
8113
  code: number,
7886
8114
  success: boolean,
7887
8115
  data?: ScopedAuthentication.AsObject,
7888
- error?: Error.AsObject,
8116
+ error?: Error$1.AsObject,
7889
8117
  }
7890
8118
  }
7891
8119
 
@@ -8059,8 +8287,8 @@ declare class GetAllUserResponse extends jspb.Message {
8059
8287
 
8060
8288
  hasError(): boolean;
8061
8289
  clearError(): void;
8062
- getError(): Error | undefined;
8063
- setError(value?: Error): void;
8290
+ getError(): Error$1 | undefined;
8291
+ setError(value?: Error$1): void;
8064
8292
 
8065
8293
  hasPaginated(): boolean;
8066
8294
  clearPaginated(): void;
@@ -8082,7 +8310,7 @@ declare namespace GetAllUserResponse {
8082
8310
  code: number,
8083
8311
  success: boolean,
8084
8312
  dataList: Array<User.AsObject>,
8085
- error?: Error.AsObject,
8313
+ error?: Error$1.AsObject,
8086
8314
  paginated?: Paginated.AsObject,
8087
8315
  }
8088
8316
  }
@@ -8194,8 +8422,8 @@ declare class GetOrganizationResponse extends jspb.Message {
8194
8422
 
8195
8423
  hasError(): boolean;
8196
8424
  clearError(): void;
8197
- getError(): Error | undefined;
8198
- setError(value?: Error): void;
8425
+ getError(): Error$1 | undefined;
8426
+ setError(value?: Error$1): void;
8199
8427
 
8200
8428
  serializeBinary(): Uint8Array;
8201
8429
  toObject(includeInstance?: boolean): GetOrganizationResponse.AsObject;
@@ -8213,7 +8441,7 @@ declare namespace GetOrganizationResponse {
8213
8441
  success: boolean,
8214
8442
  data?: Organization.AsObject,
8215
8443
  role?: OrganizationRole.AsObject,
8216
- error?: Error.AsObject,
8444
+ error?: Error$1.AsObject,
8217
8445
  }
8218
8446
  }
8219
8447
 
@@ -8236,8 +8464,8 @@ declare class CreateOrganizationResponse extends jspb.Message {
8236
8464
 
8237
8465
  hasError(): boolean;
8238
8466
  clearError(): void;
8239
- getError(): Error | undefined;
8240
- setError(value?: Error): void;
8467
+ getError(): Error$1 | undefined;
8468
+ setError(value?: Error$1): void;
8241
8469
 
8242
8470
  serializeBinary(): Uint8Array;
8243
8471
  toObject(includeInstance?: boolean): CreateOrganizationResponse.AsObject;
@@ -8255,7 +8483,7 @@ declare namespace CreateOrganizationResponse {
8255
8483
  success: boolean,
8256
8484
  data?: Organization.AsObject,
8257
8485
  role?: OrganizationRole.AsObject,
8258
- error?: Error.AsObject,
8486
+ error?: Error$1.AsObject,
8259
8487
  }
8260
8488
  }
8261
8489
 
@@ -8268,8 +8496,8 @@ declare class UpdateOrganizationResponse extends jspb.Message {
8268
8496
 
8269
8497
  hasError(): boolean;
8270
8498
  clearError(): void;
8271
- getError(): Error | undefined;
8272
- setError(value?: Error): void;
8499
+ getError(): Error$1 | undefined;
8500
+ setError(value?: Error$1): void;
8273
8501
 
8274
8502
  serializeBinary(): Uint8Array;
8275
8503
  toObject(includeInstance?: boolean): UpdateOrganizationResponse.AsObject;
@@ -8285,7 +8513,7 @@ declare namespace UpdateOrganizationResponse {
8285
8513
  export type AsObject = {
8286
8514
  code: number,
8287
8515
  success: boolean,
8288
- error?: Error.AsObject,
8516
+ error?: Error$1.AsObject,
8289
8517
  }
8290
8518
  }
8291
8519
 
@@ -8416,8 +8644,8 @@ declare class CreateProjectResponse extends jspb.Message {
8416
8644
 
8417
8645
  hasError(): boolean;
8418
8646
  clearError(): void;
8419
- getError(): Error | undefined;
8420
- setError(value?: Error): void;
8647
+ getError(): Error$1 | undefined;
8648
+ setError(value?: Error$1): void;
8421
8649
 
8422
8650
  serializeBinary(): Uint8Array;
8423
8651
  toObject(includeInstance?: boolean): CreateProjectResponse.AsObject;
@@ -8434,7 +8662,7 @@ declare namespace CreateProjectResponse {
8434
8662
  code: number,
8435
8663
  success: boolean,
8436
8664
  data?: Project.AsObject,
8437
- error?: Error.AsObject,
8665
+ error?: Error$1.AsObject,
8438
8666
  }
8439
8667
  }
8440
8668
 
@@ -8484,8 +8712,8 @@ declare class UpdateProjectResponse extends jspb.Message {
8484
8712
 
8485
8713
  hasError(): boolean;
8486
8714
  clearError(): void;
8487
- getError(): Error | undefined;
8488
- setError(value?: Error): void;
8715
+ getError(): Error$1 | undefined;
8716
+ setError(value?: Error$1): void;
8489
8717
 
8490
8718
  serializeBinary(): Uint8Array;
8491
8719
  toObject(includeInstance?: boolean): UpdateProjectResponse.AsObject;
@@ -8502,7 +8730,7 @@ declare namespace UpdateProjectResponse {
8502
8730
  code: number,
8503
8731
  success: boolean,
8504
8732
  data?: Project.AsObject,
8505
- error?: Error.AsObject,
8733
+ error?: Error$1.AsObject,
8506
8734
  }
8507
8735
  }
8508
8736
 
@@ -8540,8 +8768,8 @@ declare class GetProjectResponse extends jspb.Message {
8540
8768
 
8541
8769
  hasError(): boolean;
8542
8770
  clearError(): void;
8543
- getError(): Error | undefined;
8544
- setError(value?: Error): void;
8771
+ getError(): Error$1 | undefined;
8772
+ setError(value?: Error$1): void;
8545
8773
 
8546
8774
  serializeBinary(): Uint8Array;
8547
8775
  toObject(includeInstance?: boolean): GetProjectResponse.AsObject;
@@ -8558,7 +8786,7 @@ declare namespace GetProjectResponse {
8558
8786
  code: number,
8559
8787
  success: boolean,
8560
8788
  data?: Project.AsObject,
8561
- error?: Error.AsObject,
8789
+ error?: Error$1.AsObject,
8562
8790
  }
8563
8791
  }
8564
8792
 
@@ -8604,8 +8832,8 @@ declare class GetAllProjectResponse extends jspb.Message {
8604
8832
 
8605
8833
  hasError(): boolean;
8606
8834
  clearError(): void;
8607
- getError(): Error | undefined;
8608
- setError(value?: Error): void;
8835
+ getError(): Error$1 | undefined;
8836
+ setError(value?: Error$1): void;
8609
8837
 
8610
8838
  hasPaginated(): boolean;
8611
8839
  clearPaginated(): void;
@@ -8627,7 +8855,7 @@ declare namespace GetAllProjectResponse {
8627
8855
  code: number,
8628
8856
  success: boolean,
8629
8857
  dataList: Array<Project.AsObject>,
8630
- error?: Error.AsObject,
8858
+ error?: Error$1.AsObject,
8631
8859
  paginated?: Paginated.AsObject,
8632
8860
  }
8633
8861
  }
@@ -8694,8 +8922,8 @@ declare class ArchiveProjectResponse extends jspb.Message {
8694
8922
 
8695
8923
  hasError(): boolean;
8696
8924
  clearError(): void;
8697
- getError(): Error | undefined;
8698
- setError(value?: Error): void;
8925
+ getError(): Error$1 | undefined;
8926
+ setError(value?: Error$1): void;
8699
8927
 
8700
8928
  serializeBinary(): Uint8Array;
8701
8929
  toObject(includeInstance?: boolean): ArchiveProjectResponse.AsObject;
@@ -8712,7 +8940,7 @@ declare namespace ArchiveProjectResponse {
8712
8940
  code: number,
8713
8941
  success: boolean,
8714
8942
  id: string,
8715
- error?: Error.AsObject,
8943
+ error?: Error$1.AsObject,
8716
8944
  }
8717
8945
  }
8718
8946
 
@@ -8730,8 +8958,8 @@ declare class AddUsersToProjectResponse extends jspb.Message {
8730
8958
 
8731
8959
  hasError(): boolean;
8732
8960
  clearError(): void;
8733
- getError(): Error | undefined;
8734
- setError(value?: Error): void;
8961
+ getError(): Error$1 | undefined;
8962
+ setError(value?: Error$1): void;
8735
8963
 
8736
8964
  serializeBinary(): Uint8Array;
8737
8965
  toObject(includeInstance?: boolean): AddUsersToProjectResponse.AsObject;
@@ -8748,7 +8976,7 @@ declare namespace AddUsersToProjectResponse {
8748
8976
  code: number,
8749
8977
  success: boolean,
8750
8978
  dataList: Array<Project.AsObject>,
8751
- error?: Error.AsObject,
8979
+ error?: Error$1.AsObject,
8752
8980
  }
8753
8981
  }
8754
8982
 
@@ -8888,8 +9116,8 @@ declare class CreateProjectCredentialResponse extends jspb.Message {
8888
9116
 
8889
9117
  hasError(): boolean;
8890
9118
  clearError(): void;
8891
- getError(): Error | undefined;
8892
- setError(value?: Error): void;
9119
+ getError(): Error$1 | undefined;
9120
+ setError(value?: Error$1): void;
8893
9121
 
8894
9122
  serializeBinary(): Uint8Array;
8895
9123
  toObject(includeInstance?: boolean): CreateProjectCredentialResponse.AsObject;
@@ -8906,7 +9134,7 @@ declare namespace CreateProjectCredentialResponse {
8906
9134
  code: number,
8907
9135
  success: boolean,
8908
9136
  data?: ProjectCredential.AsObject,
8909
- error?: Error.AsObject,
9137
+ error?: Error$1.AsObject,
8910
9138
  }
8911
9139
  }
8912
9140
 
@@ -8924,8 +9152,8 @@ declare class GetAllProjectCredentialResponse extends jspb.Message {
8924
9152
 
8925
9153
  hasError(): boolean;
8926
9154
  clearError(): void;
8927
- getError(): Error | undefined;
8928
- setError(value?: Error): void;
9155
+ getError(): Error$1 | undefined;
9156
+ setError(value?: Error$1): void;
8929
9157
 
8930
9158
  hasPaginated(): boolean;
8931
9159
  clearPaginated(): void;
@@ -8947,7 +9175,7 @@ declare namespace GetAllProjectCredentialResponse {
8947
9175
  code: number,
8948
9176
  success: boolean,
8949
9177
  dataList: Array<ProjectCredential.AsObject>,
8950
- error?: Error.AsObject,
9178
+ error?: Error$1.AsObject,
8951
9179
  paginated?: Paginated.AsObject,
8952
9180
  }
8953
9181
  }
@@ -9550,8 +9778,8 @@ declare class CreateKnowledgeResponse extends jspb.Message {
9550
9778
 
9551
9779
  hasError(): boolean;
9552
9780
  clearError(): void;
9553
- getError(): Error | undefined;
9554
- setError(value?: Error): void;
9781
+ getError(): Error$1 | undefined;
9782
+ setError(value?: Error$1): void;
9555
9783
 
9556
9784
  serializeBinary(): Uint8Array;
9557
9785
  toObject(includeInstance?: boolean): CreateKnowledgeResponse.AsObject;
@@ -9568,7 +9796,7 @@ declare namespace CreateKnowledgeResponse {
9568
9796
  code: number,
9569
9797
  success: boolean,
9570
9798
  data?: Knowledge.AsObject,
9571
- error?: Error.AsObject,
9799
+ error?: Error$1.AsObject,
9572
9800
  }
9573
9801
  }
9574
9802
 
@@ -9614,8 +9842,8 @@ declare class GetAllKnowledgeResponse extends jspb.Message {
9614
9842
 
9615
9843
  hasError(): boolean;
9616
9844
  clearError(): void;
9617
- getError(): Error | undefined;
9618
- setError(value?: Error): void;
9845
+ getError(): Error$1 | undefined;
9846
+ setError(value?: Error$1): void;
9619
9847
 
9620
9848
  hasPaginated(): boolean;
9621
9849
  clearPaginated(): void;
@@ -9637,7 +9865,7 @@ declare namespace GetAllKnowledgeResponse {
9637
9865
  code: number,
9638
9866
  success: boolean,
9639
9867
  dataList: Array<Knowledge.AsObject>,
9640
- error?: Error.AsObject,
9868
+ error?: Error$1.AsObject,
9641
9869
  paginated?: Paginated.AsObject,
9642
9870
  }
9643
9871
  }
@@ -9676,8 +9904,8 @@ declare class GetKnowledgeResponse extends jspb.Message {
9676
9904
 
9677
9905
  hasError(): boolean;
9678
9906
  clearError(): void;
9679
- getError(): Error | undefined;
9680
- setError(value?: Error): void;
9907
+ getError(): Error$1 | undefined;
9908
+ setError(value?: Error$1): void;
9681
9909
 
9682
9910
  serializeBinary(): Uint8Array;
9683
9911
  toObject(includeInstance?: boolean): GetKnowledgeResponse.AsObject;
@@ -9694,7 +9922,7 @@ declare namespace GetKnowledgeResponse {
9694
9922
  code: number,
9695
9923
  success: boolean,
9696
9924
  data?: Knowledge.AsObject,
9697
- error?: Error.AsObject,
9925
+ error?: Error$1.AsObject,
9698
9926
  }
9699
9927
  }
9700
9928
 
@@ -9880,8 +10108,8 @@ declare class GetAllKnowledgeDocumentResponse extends jspb.Message {
9880
10108
 
9881
10109
  hasError(): boolean;
9882
10110
  clearError(): void;
9883
- getError(): Error | undefined;
9884
- setError(value?: Error): void;
10111
+ getError(): Error$1 | undefined;
10112
+ setError(value?: Error$1): void;
9885
10113
 
9886
10114
  hasPaginated(): boolean;
9887
10115
  clearPaginated(): void;
@@ -9903,7 +10131,7 @@ declare namespace GetAllKnowledgeDocumentResponse {
9903
10131
  code: number,
9904
10132
  success: boolean,
9905
10133
  dataList: Array<KnowledgeDocument.AsObject>,
9906
- error?: Error.AsObject,
10134
+ error?: Error$1.AsObject,
9907
10135
  paginated?: Paginated.AsObject,
9908
10136
  }
9909
10137
  }
@@ -10038,8 +10266,8 @@ declare class CreateKnowledgeDocumentResponse extends jspb.Message {
10038
10266
 
10039
10267
  hasError(): boolean;
10040
10268
  clearError(): void;
10041
- getError(): Error | undefined;
10042
- setError(value?: Error): void;
10269
+ getError(): Error$1 | undefined;
10270
+ setError(value?: Error$1): void;
10043
10271
 
10044
10272
  hasPaginated(): boolean;
10045
10273
  clearPaginated(): void;
@@ -10061,7 +10289,7 @@ declare namespace CreateKnowledgeDocumentResponse {
10061
10289
  code: number,
10062
10290
  success: boolean,
10063
10291
  dataList: Array<KnowledgeDocument.AsObject>,
10064
- error?: Error.AsObject,
10292
+ error?: Error$1.AsObject,
10065
10293
  paginated?: Paginated.AsObject,
10066
10294
  }
10067
10295
  }
@@ -10270,8 +10498,8 @@ declare class GetAllKnowledgeDocumentSegmentResponse extends jspb.Message {
10270
10498
 
10271
10499
  hasError(): boolean;
10272
10500
  clearError(): void;
10273
- getError(): Error | undefined;
10274
- setError(value?: Error): void;
10501
+ getError(): Error$1 | undefined;
10502
+ setError(value?: Error$1): void;
10275
10503
 
10276
10504
  hasPaginated(): boolean;
10277
10505
  clearPaginated(): void;
@@ -10293,7 +10521,7 @@ declare namespace GetAllKnowledgeDocumentSegmentResponse {
10293
10521
  code: number,
10294
10522
  success: boolean,
10295
10523
  dataList: Array<KnowledgeDocumentSegment.AsObject>,
10296
- error?: Error.AsObject,
10524
+ error?: Error$1.AsObject,
10297
10525
  paginated?: Paginated.AsObject,
10298
10526
  }
10299
10527
  }
@@ -10512,8 +10740,8 @@ declare class GetKnowledgeLogResponse extends jspb.Message {
10512
10740
 
10513
10741
  hasError(): boolean;
10514
10742
  clearError(): void;
10515
- getError(): Error | undefined;
10516
- setError(value?: Error): void;
10743
+ getError(): Error$1 | undefined;
10744
+ setError(value?: Error$1): void;
10517
10745
 
10518
10746
  serializeBinary(): Uint8Array;
10519
10747
  toObject(includeInstance?: boolean): GetKnowledgeLogResponse.AsObject;
@@ -10530,7 +10758,7 @@ declare namespace GetKnowledgeLogResponse {
10530
10758
  code: number,
10531
10759
  success: boolean,
10532
10760
  data?: KnowledgeLog.AsObject,
10533
- error?: Error.AsObject,
10761
+ error?: Error$1.AsObject,
10534
10762
  }
10535
10763
  }
10536
10764
 
@@ -10548,8 +10776,8 @@ declare class GetAllKnowledgeLogResponse extends jspb.Message {
10548
10776
 
10549
10777
  hasError(): boolean;
10550
10778
  clearError(): void;
10551
- getError(): Error | undefined;
10552
- setError(value?: Error): void;
10779
+ getError(): Error$1 | undefined;
10780
+ setError(value?: Error$1): void;
10553
10781
 
10554
10782
  hasPaginated(): boolean;
10555
10783
  clearPaginated(): void;
@@ -10571,7 +10799,7 @@ declare namespace GetAllKnowledgeLogResponse {
10571
10799
  code: number,
10572
10800
  success: boolean,
10573
10801
  dataList: Array<KnowledgeLog.AsObject>,
10574
- error?: Error.AsObject,
10802
+ error?: Error$1.AsObject,
10575
10803
  paginated?: Paginated.AsObject,
10576
10804
  }
10577
10805
  }
@@ -11174,8 +11402,8 @@ declare class GetAllOrganizationCredentialResponse extends jspb.Message {
11174
11402
 
11175
11403
  hasError(): boolean;
11176
11404
  clearError(): void;
11177
- getError(): Error | undefined;
11178
- setError(value?: Error): void;
11405
+ getError(): Error$1 | undefined;
11406
+ setError(value?: Error$1): void;
11179
11407
 
11180
11408
  hasPaginated(): boolean;
11181
11409
  clearPaginated(): void;
@@ -11197,7 +11425,7 @@ declare namespace GetAllOrganizationCredentialResponse {
11197
11425
  code: number,
11198
11426
  success: boolean,
11199
11427
  dataList: Array<VaultCredential.AsObject>,
11200
- error?: Error.AsObject,
11428
+ error?: Error$1.AsObject,
11201
11429
  paginated?: Paginated.AsObject,
11202
11430
  }
11203
11431
  }
@@ -11216,8 +11444,8 @@ declare class GetCredentialResponse extends jspb.Message {
11216
11444
 
11217
11445
  hasError(): boolean;
11218
11446
  clearError(): void;
11219
- getError(): Error | undefined;
11220
- setError(value?: Error): void;
11447
+ getError(): Error$1 | undefined;
11448
+ setError(value?: Error$1): void;
11221
11449
 
11222
11450
  serializeBinary(): Uint8Array;
11223
11451
  toObject(includeInstance?: boolean): GetCredentialResponse.AsObject;
@@ -11234,7 +11462,7 @@ declare namespace GetCredentialResponse {
11234
11462
  code: number,
11235
11463
  success: boolean,
11236
11464
  data?: VaultCredential.AsObject,
11237
- error?: Error.AsObject,
11465
+ error?: Error$1.AsObject,
11238
11466
  }
11239
11467
  }
11240
11468
 
@@ -11515,8 +11743,8 @@ declare class CreateEndpointResponse extends jspb.Message {
11515
11743
 
11516
11744
  hasError(): boolean;
11517
11745
  clearError(): void;
11518
- getError(): Error | undefined;
11519
- setError(value?: Error): void;
11746
+ getError(): Error$1 | undefined;
11747
+ setError(value?: Error$1): void;
11520
11748
 
11521
11749
  serializeBinary(): Uint8Array;
11522
11750
  toObject(includeInstance?: boolean): CreateEndpointResponse.AsObject;
@@ -11533,7 +11761,7 @@ declare namespace CreateEndpointResponse {
11533
11761
  code: number,
11534
11762
  success: boolean,
11535
11763
  data?: Endpoint.AsObject,
11536
- error?: Error.AsObject,
11764
+ error?: Error$1.AsObject,
11537
11765
  }
11538
11766
  }
11539
11767
 
@@ -11839,8 +12067,8 @@ declare class CreateEndpointProviderModelResponse extends jspb.Message {
11839
12067
 
11840
12068
  hasError(): boolean;
11841
12069
  clearError(): void;
11842
- getError(): Error | undefined;
11843
- setError(value?: Error): void;
12070
+ getError(): Error$1 | undefined;
12071
+ setError(value?: Error$1): void;
11844
12072
 
11845
12073
  serializeBinary(): Uint8Array;
11846
12074
  toObject(includeInstance?: boolean): CreateEndpointProviderModelResponse.AsObject;
@@ -11857,7 +12085,7 @@ declare namespace CreateEndpointProviderModelResponse {
11857
12085
  code: number,
11858
12086
  success: boolean,
11859
12087
  data?: EndpointProviderModel.AsObject,
11860
- error?: Error.AsObject,
12088
+ error?: Error$1.AsObject,
11861
12089
  }
11862
12090
  }
11863
12091
 
@@ -11901,8 +12129,8 @@ declare class GetEndpointResponse extends jspb.Message {
11901
12129
 
11902
12130
  hasError(): boolean;
11903
12131
  clearError(): void;
11904
- getError(): Error | undefined;
11905
- setError(value?: Error): void;
12132
+ getError(): Error$1 | undefined;
12133
+ setError(value?: Error$1): void;
11906
12134
 
11907
12135
  serializeBinary(): Uint8Array;
11908
12136
  toObject(includeInstance?: boolean): GetEndpointResponse.AsObject;
@@ -11919,7 +12147,7 @@ declare namespace GetEndpointResponse {
11919
12147
  code: number,
11920
12148
  success: boolean,
11921
12149
  data?: Endpoint.AsObject,
11922
- error?: Error.AsObject,
12150
+ error?: Error$1.AsObject,
11923
12151
  }
11924
12152
  }
11925
12153
 
@@ -11965,8 +12193,8 @@ declare class GetAllEndpointResponse extends jspb.Message {
11965
12193
 
11966
12194
  hasError(): boolean;
11967
12195
  clearError(): void;
11968
- getError(): Error | undefined;
11969
- setError(value?: Error): void;
12196
+ getError(): Error$1 | undefined;
12197
+ setError(value?: Error$1): void;
11970
12198
 
11971
12199
  hasPaginated(): boolean;
11972
12200
  clearPaginated(): void;
@@ -11988,7 +12216,7 @@ declare namespace GetAllEndpointResponse {
11988
12216
  code: number,
11989
12217
  success: boolean,
11990
12218
  dataList: Array<Endpoint.AsObject>,
11991
- error?: Error.AsObject,
12219
+ error?: Error$1.AsObject,
11992
12220
  paginated?: Paginated.AsObject,
11993
12221
  }
11994
12222
  }
@@ -12039,8 +12267,8 @@ declare class GetAllEndpointProviderModelResponse extends jspb.Message {
12039
12267
 
12040
12268
  hasError(): boolean;
12041
12269
  clearError(): void;
12042
- getError(): Error | undefined;
12043
- setError(value?: Error): void;
12270
+ getError(): Error$1 | undefined;
12271
+ setError(value?: Error$1): void;
12044
12272
 
12045
12273
  hasPaginated(): boolean;
12046
12274
  clearPaginated(): void;
@@ -12062,7 +12290,7 @@ declare namespace GetAllEndpointProviderModelResponse {
12062
12290
  code: number,
12063
12291
  success: boolean,
12064
12292
  dataList: Array<EndpointProviderModel.AsObject>,
12065
- error?: Error.AsObject,
12293
+ error?: Error$1.AsObject,
12066
12294
  paginated?: Paginated.AsObject,
12067
12295
  }
12068
12296
  }
@@ -12105,8 +12333,8 @@ declare class UpdateEndpointVersionResponse extends jspb.Message {
12105
12333
 
12106
12334
  hasError(): boolean;
12107
12335
  clearError(): void;
12108
- getError(): Error | undefined;
12109
- setError(value?: Error): void;
12336
+ getError(): Error$1 | undefined;
12337
+ setError(value?: Error$1): void;
12110
12338
 
12111
12339
  serializeBinary(): Uint8Array;
12112
12340
  toObject(includeInstance?: boolean): UpdateEndpointVersionResponse.AsObject;
@@ -12123,7 +12351,7 @@ declare namespace UpdateEndpointVersionResponse {
12123
12351
  code: number,
12124
12352
  success: boolean,
12125
12353
  data?: Endpoint.AsObject,
12126
- error?: Error.AsObject,
12354
+ error?: Error$1.AsObject,
12127
12355
  }
12128
12356
  }
12129
12357
 
@@ -12249,8 +12477,8 @@ declare class CreateEndpointRetryConfigurationResponse extends jspb.Message {
12249
12477
 
12250
12478
  hasError(): boolean;
12251
12479
  clearError(): void;
12252
- getError(): Error | undefined;
12253
- setError(value?: Error): void;
12480
+ getError(): Error$1 | undefined;
12481
+ setError(value?: Error$1): void;
12254
12482
 
12255
12483
  serializeBinary(): Uint8Array;
12256
12484
  toObject(includeInstance?: boolean): CreateEndpointRetryConfigurationResponse.AsObject;
@@ -12267,7 +12495,7 @@ declare namespace CreateEndpointRetryConfigurationResponse {
12267
12495
  code: number,
12268
12496
  success: boolean,
12269
12497
  data?: EndpointRetryConfiguration.AsObject,
12270
- error?: Error.AsObject,
12498
+ error?: Error$1.AsObject,
12271
12499
  }
12272
12500
  }
12273
12501
 
@@ -12311,8 +12539,8 @@ declare class CreateEndpointCacheConfigurationResponse extends jspb.Message {
12311
12539
 
12312
12540
  hasError(): boolean;
12313
12541
  clearError(): void;
12314
- getError(): Error | undefined;
12315
- setError(value?: Error): void;
12542
+ getError(): Error$1 | undefined;
12543
+ setError(value?: Error$1): void;
12316
12544
 
12317
12545
  serializeBinary(): Uint8Array;
12318
12546
  toObject(includeInstance?: boolean): CreateEndpointCacheConfigurationResponse.AsObject;
@@ -12329,7 +12557,7 @@ declare namespace CreateEndpointCacheConfigurationResponse {
12329
12557
  code: number,
12330
12558
  success: boolean,
12331
12559
  data?: EndpointCacheConfiguration.AsObject,
12332
- error?: Error.AsObject,
12560
+ error?: Error$1.AsObject,
12333
12561
  }
12334
12562
  }
12335
12563
 
@@ -12541,8 +12769,8 @@ declare class GetAllEndpointLogResponse extends jspb.Message {
12541
12769
 
12542
12770
  hasError(): boolean;
12543
12771
  clearError(): void;
12544
- getError(): Error | undefined;
12545
- setError(value?: Error): void;
12772
+ getError(): Error$1 | undefined;
12773
+ setError(value?: Error$1): void;
12546
12774
 
12547
12775
  hasPaginated(): boolean;
12548
12776
  clearPaginated(): void;
@@ -12564,7 +12792,7 @@ declare namespace GetAllEndpointLogResponse {
12564
12792
  code: number,
12565
12793
  success: boolean,
12566
12794
  dataList: Array<EndpointLog.AsObject>,
12567
- error?: Error.AsObject,
12795
+ error?: Error$1.AsObject,
12568
12796
  paginated?: Paginated.AsObject,
12569
12797
  }
12570
12798
  }
@@ -12607,8 +12835,8 @@ declare class GetEndpointLogResponse extends jspb.Message {
12607
12835
 
12608
12836
  hasError(): boolean;
12609
12837
  clearError(): void;
12610
- getError(): Error | undefined;
12611
- setError(value?: Error): void;
12838
+ getError(): Error$1 | undefined;
12839
+ setError(value?: Error$1): void;
12612
12840
 
12613
12841
  serializeBinary(): Uint8Array;
12614
12842
  toObject(includeInstance?: boolean): GetEndpointLogResponse.AsObject;
@@ -12625,7 +12853,7 @@ declare namespace GetEndpointLogResponse {
12625
12853
  code: number,
12626
12854
  success: boolean,
12627
12855
  data?: EndpointLog.AsObject,
12628
- error?: Error.AsObject,
12856
+ error?: Error$1.AsObject,
12629
12857
  }
12630
12858
  }
12631
12859
 
@@ -13040,8 +13268,8 @@ declare class GetAllAuditLogResponse extends jspb.Message {
13040
13268
 
13041
13269
  hasError(): boolean;
13042
13270
  clearError(): void;
13043
- getError(): Error | undefined;
13044
- setError(value?: Error): void;
13271
+ getError(): Error$1 | undefined;
13272
+ setError(value?: Error$1): void;
13045
13273
 
13046
13274
  hasPaginated(): boolean;
13047
13275
  clearPaginated(): void;
@@ -13063,7 +13291,7 @@ declare namespace GetAllAuditLogResponse {
13063
13291
  code: number,
13064
13292
  success: boolean,
13065
13293
  dataList: Array<AuditLog.AsObject>,
13066
- error?: Error.AsObject,
13294
+ error?: Error$1.AsObject,
13067
13295
  paginated?: Paginated.AsObject,
13068
13296
  }
13069
13297
  }
@@ -13110,8 +13338,8 @@ declare class GetAuditLogResponse extends jspb.Message {
13110
13338
 
13111
13339
  hasError(): boolean;
13112
13340
  clearError(): void;
13113
- getError(): Error | undefined;
13114
- setError(value?: Error): void;
13341
+ getError(): Error$1 | undefined;
13342
+ setError(value?: Error$1): void;
13115
13343
 
13116
13344
  serializeBinary(): Uint8Array;
13117
13345
  toObject(includeInstance?: boolean): GetAuditLogResponse.AsObject;
@@ -13128,7 +13356,7 @@ declare namespace GetAuditLogResponse {
13128
13356
  code: number,
13129
13357
  success: boolean,
13130
13358
  data?: AuditLog.AsObject,
13131
- error?: Error.AsObject,
13359
+ error?: Error$1.AsObject,
13132
13360
  }
13133
13361
  }
13134
13362
 
@@ -13169,8 +13397,8 @@ declare class CreateMetadataResponse extends jspb.Message {
13169
13397
 
13170
13398
  hasError(): boolean;
13171
13399
  clearError(): void;
13172
- getError(): Error | undefined;
13173
- setError(value?: Error): void;
13400
+ getError(): Error$1 | undefined;
13401
+ setError(value?: Error$1): void;
13174
13402
 
13175
13403
  serializeBinary(): Uint8Array;
13176
13404
  toObject(includeInstance?: boolean): CreateMetadataResponse.AsObject;
@@ -13187,7 +13415,7 @@ declare namespace CreateMetadataResponse {
13187
13415
  code: number,
13188
13416
  success: boolean,
13189
13417
  data?: AuditLog.AsObject,
13190
- error?: Error.AsObject,
13418
+ error?: Error$1.AsObject,
13191
13419
  }
13192
13420
  }
13193
13421
 
@@ -13532,8 +13760,8 @@ declare class GeneralConnectResponse extends jspb.Message {
13532
13760
 
13533
13761
  hasError(): boolean;
13534
13762
  clearError(): void;
13535
- getError(): Error | undefined;
13536
- setError(value?: Error): void;
13763
+ getError(): Error$1 | undefined;
13764
+ setError(value?: Error$1): void;
13537
13765
 
13538
13766
  serializeBinary(): Uint8Array;
13539
13767
  toObject(includeInstance?: boolean): GeneralConnectResponse.AsObject;
@@ -13551,7 +13779,7 @@ declare namespace GeneralConnectResponse {
13551
13779
  success: boolean,
13552
13780
  provider: string,
13553
13781
  redirectto: string,
13554
- error?: Error.AsObject,
13782
+ error?: Error$1.AsObject,
13555
13783
  }
13556
13784
  }
13557
13785
 
@@ -13606,8 +13834,8 @@ declare class GetConnectorFilesResponse extends jspb.Message {
13606
13834
 
13607
13835
  hasError(): boolean;
13608
13836
  clearError(): void;
13609
- getError(): Error | undefined;
13610
- setError(value?: Error): void;
13837
+ getError(): Error$1 | undefined;
13838
+ setError(value?: Error$1): void;
13611
13839
 
13612
13840
  getArgsMap(): jspb.Map<string, string>;
13613
13841
  clearArgsMap(): void;
@@ -13627,7 +13855,7 @@ declare namespace GetConnectorFilesResponse {
13627
13855
  success: boolean,
13628
13856
  dataList: Array<google_protobuf_struct_pb.Struct.AsObject>,
13629
13857
  paginated?: Paginated.AsObject,
13630
- error?: Error.AsObject,
13858
+ error?: Error$1.AsObject,
13631
13859
  argsMap: Array<[string, string]>,
13632
13860
  }
13633
13861
  }
@@ -13765,8 +13993,8 @@ declare class InvokeResponse extends jspb.Message {
13765
13993
 
13766
13994
  hasError(): boolean;
13767
13995
  clearError(): void;
13768
- getError(): Error | undefined;
13769
- setError(value?: Error): void;
13996
+ getError(): Error$1 | undefined;
13997
+ setError(value?: Error$1): void;
13770
13998
 
13771
13999
  getRequestid(): number;
13772
14000
  setRequestid(value: number): void;
@@ -13799,7 +14027,7 @@ declare namespace InvokeResponse {
13799
14027
  code: number,
13800
14028
  success: boolean,
13801
14029
  dataList: Array<string>,
13802
- error?: Error.AsObject,
14030
+ error?: Error$1.AsObject,
13803
14031
  requestid: number,
13804
14032
  timetaken: number,
13805
14033
  metricsList: Array<Metric.AsObject>,
@@ -13842,8 +14070,8 @@ declare class UpdateResponse extends jspb.Message {
13842
14070
 
13843
14071
  hasError(): boolean;
13844
14072
  clearError(): void;
13845
- getError(): Error | undefined;
13846
- setError(value?: Error): void;
14073
+ getError(): Error$1 | undefined;
14074
+ setError(value?: Error$1): void;
13847
14075
 
13848
14076
  serializeBinary(): Uint8Array;
13849
14077
  toObject(includeInstance?: boolean): UpdateResponse.AsObject;
@@ -13859,7 +14087,7 @@ declare namespace UpdateResponse {
13859
14087
  export type AsObject = {
13860
14088
  code: number,
13861
14089
  success: boolean,
13862
- error?: Error.AsObject,
14090
+ error?: Error$1.AsObject,
13863
14091
  }
13864
14092
  }
13865
14093
 
@@ -13897,8 +14125,8 @@ declare class ProbeResponse extends jspb.Message {
13897
14125
 
13898
14126
  hasError(): boolean;
13899
14127
  clearError(): void;
13900
- getError(): Error | undefined;
13901
- setError(value?: Error): void;
14128
+ getError(): Error$1 | undefined;
14129
+ setError(value?: Error$1): void;
13902
14130
 
13903
14131
  serializeBinary(): Uint8Array;
13904
14132
  toObject(includeInstance?: boolean): ProbeResponse.AsObject;
@@ -13915,7 +14143,7 @@ declare namespace ProbeResponse {
13915
14143
  code: number,
13916
14144
  success: boolean,
13917
14145
  data?: google_protobuf_struct_pb.Struct.AsObject,
13918
- error?: Error.AsObject,
14146
+ error?: Error$1.AsObject,
13919
14147
  }
13920
14148
  }
13921
14149
 
@@ -14106,8 +14334,8 @@ declare class NotificationSettingResponse extends jspb.Message {
14106
14334
 
14107
14335
  hasError(): boolean;
14108
14336
  clearError(): void;
14109
- getError(): Error | undefined;
14110
- setError(value?: Error): void;
14337
+ getError(): Error$1 | undefined;
14338
+ setError(value?: Error$1): void;
14111
14339
 
14112
14340
  serializeBinary(): Uint8Array;
14113
14341
  toObject(includeInstance?: boolean): NotificationSettingResponse.AsObject;
@@ -14124,7 +14352,7 @@ declare namespace NotificationSettingResponse {
14124
14352
  code: number,
14125
14353
  success: boolean,
14126
14354
  dataList: Array<NotificationSetting.AsObject>,
14127
- error?: Error.AsObject,
14355
+ error?: Error$1.AsObject,
14128
14356
  }
14129
14357
  }
14130
14358
 
@@ -14163,6 +14391,459 @@ declare class NotificationServiceClient {
14163
14391
  ): UnaryResponse;
14164
14392
  }
14165
14393
 
14394
+ // package: talk_api
14395
+ // file: webrtc.proto
14396
+
14397
+
14398
+
14399
+ declare class ICEServer extends jspb.Message {
14400
+ clearUrlsList(): void;
14401
+ getUrlsList(): Array<string>;
14402
+ setUrlsList(value: Array<string>): void;
14403
+ addUrls(value: string, index?: number): string;
14404
+
14405
+ getUsername(): string;
14406
+ setUsername(value: string): void;
14407
+
14408
+ getCredential(): string;
14409
+ setCredential(value: string): void;
14410
+
14411
+ serializeBinary(): Uint8Array;
14412
+ toObject(includeInstance?: boolean): ICEServer.AsObject;
14413
+ static toObject(includeInstance: boolean, msg: ICEServer): ICEServer.AsObject;
14414
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
14415
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
14416
+ static serializeBinaryToWriter(message: ICEServer, writer: jspb.BinaryWriter): void;
14417
+ static deserializeBinary(bytes: Uint8Array): ICEServer;
14418
+ static deserializeBinaryFromReader(message: ICEServer, reader: jspb.BinaryReader): ICEServer;
14419
+ }
14420
+
14421
+ declare namespace ICEServer {
14422
+ export type AsObject = {
14423
+ urlsList: Array<string>,
14424
+ username: string,
14425
+ credential: string,
14426
+ }
14427
+ }
14428
+
14429
+ declare class ICECandidate extends jspb.Message {
14430
+ getCandidate(): string;
14431
+ setCandidate(value: string): void;
14432
+
14433
+ getSdpmid(): string;
14434
+ setSdpmid(value: string): void;
14435
+
14436
+ getSdpmlineindex(): number;
14437
+ setSdpmlineindex(value: number): void;
14438
+
14439
+ getUsernamefragment(): string;
14440
+ setUsernamefragment(value: string): void;
14441
+
14442
+ serializeBinary(): Uint8Array;
14443
+ toObject(includeInstance?: boolean): ICECandidate.AsObject;
14444
+ static toObject(includeInstance: boolean, msg: ICECandidate): ICECandidate.AsObject;
14445
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
14446
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
14447
+ static serializeBinaryToWriter(message: ICECandidate, writer: jspb.BinaryWriter): void;
14448
+ static deserializeBinary(bytes: Uint8Array): ICECandidate;
14449
+ static deserializeBinaryFromReader(message: ICECandidate, reader: jspb.BinaryReader): ICECandidate;
14450
+ }
14451
+
14452
+ declare namespace ICECandidate {
14453
+ export type AsObject = {
14454
+ candidate: string,
14455
+ sdpmid: string,
14456
+ sdpmlineindex: number,
14457
+ usernamefragment: string,
14458
+ }
14459
+ }
14460
+
14461
+ declare class WebRTCSDP extends jspb.Message {
14462
+ getType(): WebRTCSDP.SDPTypeMap[keyof WebRTCSDP.SDPTypeMap];
14463
+ setType(value: WebRTCSDP.SDPTypeMap[keyof WebRTCSDP.SDPTypeMap]): void;
14464
+
14465
+ getSdp(): string;
14466
+ setSdp(value: string): void;
14467
+
14468
+ serializeBinary(): Uint8Array;
14469
+ toObject(includeInstance?: boolean): WebRTCSDP.AsObject;
14470
+ static toObject(includeInstance: boolean, msg: WebRTCSDP): WebRTCSDP.AsObject;
14471
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
14472
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
14473
+ static serializeBinaryToWriter(message: WebRTCSDP, writer: jspb.BinaryWriter): void;
14474
+ static deserializeBinary(bytes: Uint8Array): WebRTCSDP;
14475
+ static deserializeBinaryFromReader(message: WebRTCSDP, reader: jspb.BinaryReader): WebRTCSDP;
14476
+ }
14477
+
14478
+ declare namespace WebRTCSDP {
14479
+ export type AsObject = {
14480
+ type: WebRTCSDP.SDPTypeMap[keyof WebRTCSDP.SDPTypeMap],
14481
+ sdp: string,
14482
+ }
14483
+
14484
+ export interface SDPTypeMap {
14485
+ SDP_TYPE_UNSPECIFIED: 0;
14486
+ OFFER: 1;
14487
+ ANSWER: 2;
14488
+ }
14489
+
14490
+ export const SDPType: SDPTypeMap;
14491
+ }
14492
+
14493
+ declare class ClientSignaling extends jspb.Message {
14494
+ getSessionid(): string;
14495
+ setSessionid(value: string): void;
14496
+
14497
+ hasSdp(): boolean;
14498
+ clearSdp(): void;
14499
+ getSdp(): WebRTCSDP | undefined;
14500
+ setSdp(value?: WebRTCSDP): void;
14501
+
14502
+ hasIcecandidate(): boolean;
14503
+ clearIcecandidate(): void;
14504
+ getIcecandidate(): ICECandidate | undefined;
14505
+ setIcecandidate(value?: ICECandidate): void;
14506
+
14507
+ hasDisconnect(): boolean;
14508
+ clearDisconnect(): void;
14509
+ getDisconnect(): boolean;
14510
+ setDisconnect(value: boolean): void;
14511
+
14512
+ getMessageCase(): ClientSignaling.MessageCase;
14513
+ serializeBinary(): Uint8Array;
14514
+ toObject(includeInstance?: boolean): ClientSignaling.AsObject;
14515
+ static toObject(includeInstance: boolean, msg: ClientSignaling): ClientSignaling.AsObject;
14516
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
14517
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
14518
+ static serializeBinaryToWriter(message: ClientSignaling, writer: jspb.BinaryWriter): void;
14519
+ static deserializeBinary(bytes: Uint8Array): ClientSignaling;
14520
+ static deserializeBinaryFromReader(message: ClientSignaling, reader: jspb.BinaryReader): ClientSignaling;
14521
+ }
14522
+
14523
+ declare namespace ClientSignaling {
14524
+ export type AsObject = {
14525
+ sessionid: string,
14526
+ sdp?: WebRTCSDP.AsObject,
14527
+ icecandidate?: ICECandidate.AsObject,
14528
+ disconnect: boolean,
14529
+ }
14530
+
14531
+ export enum MessageCase {
14532
+ MESSAGE_NOT_SET = 0,
14533
+ SDP = 2,
14534
+ ICECANDIDATE = 3,
14535
+ DISCONNECT = 4,
14536
+ }
14537
+ }
14538
+
14539
+ declare class ServerSignaling extends jspb.Message {
14540
+ getSessionid(): string;
14541
+ setSessionid(value: string): void;
14542
+
14543
+ hasConfig(): boolean;
14544
+ clearConfig(): void;
14545
+ getConfig(): WebRTCConfig | undefined;
14546
+ setConfig(value?: WebRTCConfig): void;
14547
+
14548
+ hasSdp(): boolean;
14549
+ clearSdp(): void;
14550
+ getSdp(): WebRTCSDP | undefined;
14551
+ setSdp(value?: WebRTCSDP): void;
14552
+
14553
+ hasIcecandidate(): boolean;
14554
+ clearIcecandidate(): void;
14555
+ getIcecandidate(): ICECandidate | undefined;
14556
+ setIcecandidate(value?: ICECandidate): void;
14557
+
14558
+ hasReady(): boolean;
14559
+ clearReady(): void;
14560
+ getReady(): boolean;
14561
+ setReady(value: boolean): void;
14562
+
14563
+ hasClear(): boolean;
14564
+ clearClear(): void;
14565
+ getClear(): boolean;
14566
+ setClear(value: boolean): void;
14567
+
14568
+ hasError(): boolean;
14569
+ clearError(): void;
14570
+ getError(): string;
14571
+ setError(value: string): void;
14572
+
14573
+ getMessageCase(): ServerSignaling.MessageCase;
14574
+ serializeBinary(): Uint8Array;
14575
+ toObject(includeInstance?: boolean): ServerSignaling.AsObject;
14576
+ static toObject(includeInstance: boolean, msg: ServerSignaling): ServerSignaling.AsObject;
14577
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
14578
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
14579
+ static serializeBinaryToWriter(message: ServerSignaling, writer: jspb.BinaryWriter): void;
14580
+ static deserializeBinary(bytes: Uint8Array): ServerSignaling;
14581
+ static deserializeBinaryFromReader(message: ServerSignaling, reader: jspb.BinaryReader): ServerSignaling;
14582
+ }
14583
+
14584
+ declare namespace ServerSignaling {
14585
+ export type AsObject = {
14586
+ sessionid: string,
14587
+ config?: WebRTCConfig.AsObject,
14588
+ sdp?: WebRTCSDP.AsObject,
14589
+ icecandidate?: ICECandidate.AsObject,
14590
+ ready: boolean,
14591
+ clear: boolean,
14592
+ error: string,
14593
+ }
14594
+
14595
+ export enum MessageCase {
14596
+ MESSAGE_NOT_SET = 0,
14597
+ CONFIG = 2,
14598
+ SDP = 3,
14599
+ ICECANDIDATE = 4,
14600
+ READY = 5,
14601
+ CLEAR = 6,
14602
+ ERROR = 7,
14603
+ }
14604
+ }
14605
+
14606
+ declare class WebRTCConfig extends jspb.Message {
14607
+ clearIceserversList(): void;
14608
+ getIceserversList(): Array<ICEServer>;
14609
+ setIceserversList(value: Array<ICEServer>): void;
14610
+ addIceservers(value?: ICEServer, index?: number): ICEServer;
14611
+
14612
+ getAudiocodec(): string;
14613
+ setAudiocodec(value: string): void;
14614
+
14615
+ getSamplerate(): number;
14616
+ setSamplerate(value: number): void;
14617
+
14618
+ serializeBinary(): Uint8Array;
14619
+ toObject(includeInstance?: boolean): WebRTCConfig.AsObject;
14620
+ static toObject(includeInstance: boolean, msg: WebRTCConfig): WebRTCConfig.AsObject;
14621
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
14622
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
14623
+ static serializeBinaryToWriter(message: WebRTCConfig, writer: jspb.BinaryWriter): void;
14624
+ static deserializeBinary(bytes: Uint8Array): WebRTCConfig;
14625
+ static deserializeBinaryFromReader(message: WebRTCConfig, reader: jspb.BinaryReader): WebRTCConfig;
14626
+ }
14627
+
14628
+ declare namespace WebRTCConfig {
14629
+ export type AsObject = {
14630
+ iceserversList: Array<ICEServer.AsObject>,
14631
+ audiocodec: string,
14632
+ samplerate: number,
14633
+ }
14634
+ }
14635
+
14636
+ declare class WebTalkRequest extends jspb.Message {
14637
+ hasInitialization(): boolean;
14638
+ clearInitialization(): void;
14639
+ getInitialization(): ConversationInitialization | undefined;
14640
+ setInitialization(value?: ConversationInitialization): void;
14641
+
14642
+ hasConfiguration(): boolean;
14643
+ clearConfiguration(): void;
14644
+ getConfiguration(): ConversationConfiguration | undefined;
14645
+ setConfiguration(value?: ConversationConfiguration): void;
14646
+
14647
+ hasMessage(): boolean;
14648
+ clearMessage(): void;
14649
+ getMessage(): ConversationUserMessage$1 | undefined;
14650
+ setMessage(value?: ConversationUserMessage$1): void;
14651
+
14652
+ hasSignaling(): boolean;
14653
+ clearSignaling(): void;
14654
+ getSignaling(): ClientSignaling | undefined;
14655
+ setSignaling(value?: ClientSignaling): void;
14656
+
14657
+ hasMetadata(): boolean;
14658
+ clearMetadata(): void;
14659
+ getMetadata(): ConversationMetadata | undefined;
14660
+ setMetadata(value?: ConversationMetadata): void;
14661
+
14662
+ hasMetric(): boolean;
14663
+ clearMetric(): void;
14664
+ getMetric(): ConversationMetric | undefined;
14665
+ setMetric(value?: ConversationMetric): void;
14666
+
14667
+ hasDisconnection(): boolean;
14668
+ clearDisconnection(): void;
14669
+ getDisconnection(): ConversationDisconnection | undefined;
14670
+ setDisconnection(value?: ConversationDisconnection): void;
14671
+
14672
+ getRequestCase(): WebTalkRequest.RequestCase;
14673
+ serializeBinary(): Uint8Array;
14674
+ toObject(includeInstance?: boolean): WebTalkRequest.AsObject;
14675
+ static toObject(includeInstance: boolean, msg: WebTalkRequest): WebTalkRequest.AsObject;
14676
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
14677
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
14678
+ static serializeBinaryToWriter(message: WebTalkRequest, writer: jspb.BinaryWriter): void;
14679
+ static deserializeBinary(bytes: Uint8Array): WebTalkRequest;
14680
+ static deserializeBinaryFromReader(message: WebTalkRequest, reader: jspb.BinaryReader): WebTalkRequest;
14681
+ }
14682
+
14683
+ declare namespace WebTalkRequest {
14684
+ export type AsObject = {
14685
+ initialization?: ConversationInitialization.AsObject,
14686
+ configuration?: ConversationConfiguration.AsObject,
14687
+ message?: ConversationUserMessage$1.AsObject,
14688
+ signaling?: ClientSignaling.AsObject,
14689
+ metadata?: ConversationMetadata.AsObject,
14690
+ metric?: ConversationMetric.AsObject,
14691
+ disconnection?: ConversationDisconnection.AsObject,
14692
+ }
14693
+
14694
+ export enum RequestCase {
14695
+ REQUEST_NOT_SET = 0,
14696
+ INITIALIZATION = 1,
14697
+ CONFIGURATION = 2,
14698
+ MESSAGE = 3,
14699
+ SIGNALING = 4,
14700
+ METADATA = 5,
14701
+ METRIC = 6,
14702
+ DISCONNECTION = 7,
14703
+ }
14704
+ }
14705
+
14706
+ declare class WebTalkResponse extends jspb.Message {
14707
+ getCode(): number;
14708
+ setCode(value: number): void;
14709
+
14710
+ getSuccess(): boolean;
14711
+ setSuccess(value: boolean): void;
14712
+
14713
+ hasInitialization(): boolean;
14714
+ clearInitialization(): void;
14715
+ getInitialization(): ConversationInitialization | undefined;
14716
+ setInitialization(value?: ConversationInitialization): void;
14717
+
14718
+ hasConfiguration(): boolean;
14719
+ clearConfiguration(): void;
14720
+ getConfiguration(): ConversationConfiguration | undefined;
14721
+ setConfiguration(value?: ConversationConfiguration): void;
14722
+
14723
+ hasInterruption(): boolean;
14724
+ clearInterruption(): void;
14725
+ getInterruption(): ConversationInterruption | undefined;
14726
+ setInterruption(value?: ConversationInterruption): void;
14727
+
14728
+ hasUser(): boolean;
14729
+ clearUser(): void;
14730
+ getUser(): ConversationUserMessage$1 | undefined;
14731
+ setUser(value?: ConversationUserMessage$1): void;
14732
+
14733
+ hasAssistant(): boolean;
14734
+ clearAssistant(): void;
14735
+ getAssistant(): ConversationAssistantMessage$1 | undefined;
14736
+ setAssistant(value?: ConversationAssistantMessage$1): void;
14737
+
14738
+ hasTool(): boolean;
14739
+ clearTool(): void;
14740
+ getTool(): ConversationToolCall | undefined;
14741
+ setTool(value?: ConversationToolCall): void;
14742
+
14743
+ hasToolresult(): boolean;
14744
+ clearToolresult(): void;
14745
+ getToolresult(): ConversationToolResult | undefined;
14746
+ setToolresult(value?: ConversationToolResult): void;
14747
+
14748
+ hasDirective(): boolean;
14749
+ clearDirective(): void;
14750
+ getDirective(): ConversationDirective | undefined;
14751
+ setDirective(value?: ConversationDirective): void;
14752
+
14753
+ hasError(): boolean;
14754
+ clearError(): void;
14755
+ getError(): ConversationError | undefined;
14756
+ setError(value?: ConversationError): void;
14757
+
14758
+ hasSignaling(): boolean;
14759
+ clearSignaling(): void;
14760
+ getSignaling(): ServerSignaling | undefined;
14761
+ setSignaling(value?: ServerSignaling): void;
14762
+
14763
+ hasMetadata(): boolean;
14764
+ clearMetadata(): void;
14765
+ getMetadata(): ConversationMetadata | undefined;
14766
+ setMetadata(value?: ConversationMetadata): void;
14767
+
14768
+ hasMetric(): boolean;
14769
+ clearMetric(): void;
14770
+ getMetric(): ConversationMetric | undefined;
14771
+ setMetric(value?: ConversationMetric): void;
14772
+
14773
+ hasDisconnection(): boolean;
14774
+ clearDisconnection(): void;
14775
+ getDisconnection(): ConversationDisconnection | undefined;
14776
+ setDisconnection(value?: ConversationDisconnection): void;
14777
+
14778
+ getDataCase(): WebTalkResponse.DataCase;
14779
+ serializeBinary(): Uint8Array;
14780
+ toObject(includeInstance?: boolean): WebTalkResponse.AsObject;
14781
+ static toObject(includeInstance: boolean, msg: WebTalkResponse): WebTalkResponse.AsObject;
14782
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
14783
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
14784
+ static serializeBinaryToWriter(message: WebTalkResponse, writer: jspb.BinaryWriter): void;
14785
+ static deserializeBinary(bytes: Uint8Array): WebTalkResponse;
14786
+ static deserializeBinaryFromReader(message: WebTalkResponse, reader: jspb.BinaryReader): WebTalkResponse;
14787
+ }
14788
+
14789
+ declare namespace WebTalkResponse {
14790
+ export type AsObject = {
14791
+ code: number,
14792
+ success: boolean,
14793
+ initialization?: ConversationInitialization.AsObject,
14794
+ configuration?: ConversationConfiguration.AsObject,
14795
+ interruption?: ConversationInterruption.AsObject,
14796
+ user?: ConversationUserMessage$1.AsObject,
14797
+ assistant?: ConversationAssistantMessage$1.AsObject,
14798
+ tool?: ConversationToolCall.AsObject,
14799
+ toolresult?: ConversationToolResult.AsObject,
14800
+ directive?: ConversationDirective.AsObject,
14801
+ error?: ConversationError.AsObject,
14802
+ signaling?: ServerSignaling.AsObject,
14803
+ metadata?: ConversationMetadata.AsObject,
14804
+ metric?: ConversationMetric.AsObject,
14805
+ disconnection?: ConversationDisconnection.AsObject,
14806
+ }
14807
+
14808
+ export enum DataCase {
14809
+ DATA_NOT_SET = 0,
14810
+ INITIALIZATION = 8,
14811
+ CONFIGURATION = 9,
14812
+ INTERRUPTION = 10,
14813
+ USER = 11,
14814
+ ASSISTANT = 12,
14815
+ TOOL = 13,
14816
+ TOOLRESULT = 14,
14817
+ DIRECTIVE = 16,
14818
+ ERROR = 15,
14819
+ SIGNALING = 17,
14820
+ METADATA = 19,
14821
+ METRIC = 20,
14822
+ DISCONNECTION = 21,
14823
+ }
14824
+ }
14825
+
14826
+ // package: talk_api
14827
+ // file: webrtc.proto
14828
+
14829
+
14830
+ type Status = { details: string, code: number; metadata: grpc.Metadata }
14831
+ interface BidirectionalStream<ReqT, ResT> {
14832
+ write(message: ReqT): BidirectionalStream<ReqT, ResT>;
14833
+ end(): void;
14834
+ cancel(): void;
14835
+ on(type: 'data', handler: (message: ResT) => void): BidirectionalStream<ReqT, ResT>;
14836
+ on(type: 'end', handler: (status?: Status) => void): BidirectionalStream<ReqT, ResT>;
14837
+ on(type: 'status', handler: (status: Status) => void): BidirectionalStream<ReqT, ResT>;
14838
+ }
14839
+
14840
+ declare class WebRTCClient {
14841
+ readonly serviceHost: string;
14842
+
14843
+ constructor(serviceHost: string, options?: grpc.RpcOptions);
14844
+ webTalk(metadata?: grpc.Metadata): BidirectionalStream<WebTalkRequest, WebTalkResponse>;
14845
+ }
14846
+
14166
14847
  /**
14167
14848
  *
14168
14849
  */
@@ -14256,6 +14937,7 @@ declare class ConnectionConfig {
14256
14937
  get connectClient(): ConnectServiceClient;
14257
14938
  get authenticationClient(): AuthenticationServiceClient;
14258
14939
  get streamClient(): TalkServiceClient;
14940
+ get webrtcClient(): WebRTCClient;
14259
14941
  withLocal(): this;
14260
14942
  withAuth(auth: ClientAuthInfo | UserAuthInfo): this;
14261
14943
  get auth(): ClientAuthInfo | UserAuthInfo | undefined;
@@ -14316,14 +14998,28 @@ declare class ConversationAssistantMessage {
14316
14998
  constructor(config?: ConversationAssistantMessage$1);
14317
14999
  }
14318
15000
  /**
14319
- * Callbacks for agent
15001
+ * Callbacks for agent events
14320
15002
  */
14321
15003
  interface AgentCallback {
15004
+ onInitialization?: (args: ConversationInitialization.AsObject | undefined) => void;
15005
+ /** Called when configuration is received (conversation ID, etc.) */
14322
15006
  onConfiguration?: (args: ConversationConfiguration.AsObject | undefined) => void;
15007
+ /** Called on interruption */
14323
15008
  onInterrupt?: (args: ConversationInterruption.AsObject | undefined) => void;
15009
+ /** Called when assistant message is received */
14324
15010
  onAssistantMessage?: (args: ConversationAssistantMessage | undefined) => void;
15011
+ /** Called when user message is received */
14325
15012
  onUserMessage?: (args: ConversationUserMessage | undefined) => void;
14326
- onAction?: (arg?: ConversationDirective.AsObject) => void;
15013
+ /** Called when directive/action is received */
15014
+ onDirective?: (arg?: ConversationDirective.AsObject) => void;
15015
+ /** Called when connection state changes */
15016
+ onConnectionStateChange?: (state: RTCPeerConnectionState) => void;
15017
+ /** Called when fully connected */
15018
+ onConnected?: () => void;
15019
+ /** Called when disconnected */
15020
+ onDisconnected?: () => void;
15021
+ /** Called on error */
15022
+ onError?: (error: Error) => void;
14327
15023
  }
14328
15024
 
14329
15025
  declare enum Feedback {
@@ -14356,7 +15052,8 @@ type AgentEventCallback = {
14356
15052
  onOutputMediaDeviceChangeEvent: (deviceId: string) => void;
14357
15053
  onInputChannelChangeEvent: (cnl: Channel) => void;
14358
15054
  onOutputChannelChangeEvent: (cnl: Channel) => void;
14359
- onConversationEvent: (eventType?: AssistantTalkOutput.DataCase, event?: ConversationConfiguration | ConversationUserMessage$1 | ConversationAssistantMessage$1 | ConversationInterruption) => void;
15055
+ onMuteStateEvent: (isMuted: boolean) => void;
15056
+ onConversationEvent: (eventType?: WebTalkResponse.DataCase, event?: ConversationConfiguration | ConversationUserMessage$1 | ConversationAssistantMessage$1 | ConversationInterruption) => void;
14360
15057
  onFeedbackEvent: (type: "conversation" | "message", feedback: Feedback) => void;
14361
15058
  onErrorEvent: (type: "server" | "client", error: string) => void;
14362
15059
  };
@@ -14413,71 +15110,21 @@ interface Message {
14413
15110
 
14414
15111
  declare const Agent_base: new () => TypedEmitter<AgentEventCallback>;
14415
15112
  /**
14416
- * Rapida Agent SDK
14417
- *
14418
- * The Agent class provides a high-level interface for interacting with Rapida AI assistants.
14419
- * It manages bidirectional communication, handles connection states, and provides utilities
14420
- * for metrics, feedback, and dynamic agent switching.
14421
- *
14422
- * Key Features:
14423
- * - Bidirectional streaming communication with assistants
14424
- * - Real-time connection state management
14425
- * - Message and conversation metrics
14426
- * - Dynamic agent switching during conversations
14427
- * - Event-driven architecture with typed events
14428
- *
14429
- * @example
14430
- * ```typescript
14431
- * const agent = new MyAgent(connectionConfig, agentConfig);
14432
- *
14433
- * // Listen for events
14434
- * agent.on(AgentEvent.Initialized, (assistant) => {
14435
- * console.log('Agent initialized:', assistant.getName());
14436
- * });
14437
- *
14438
- * agent.on(AgentEvent.ConnectionChanged, (state) => {
14439
- * console.log('Connection state:', state);
14440
- * });
14441
- *
14442
- * // Connect and start conversation
14443
- * await agent.connect();
14444
- *
14445
- * // Switch to a different agent during conversation
14446
- * await agent.switchAgent({
14447
- * agentId: 'new-agent-id',
14448
- * version: 'v2.0',
14449
- * options: new Map([['temperature', createAnyValue('0.7')]])
14450
- * });
14451
- * ```
15113
+ * Base Agent class for interacting with Rapida AI assistants.
15114
+ * Manages bidirectional communication, connection states, metrics, and events.
14452
15115
  */
14453
15116
  declare class Agent extends Agent_base {
14454
15117
  protected connectionState: ConnectionState;
14455
15118
  private _conversationId?;
14456
- protected talkingConnection?: any;
14457
15119
  protected agentConfig: AgentConfig;
14458
15120
  protected agentCallbacks: AgentCallback[];
14459
15121
  private readonly _connectionConfig;
14460
15122
  agentMessages: Message[];
14461
15123
  /**
14462
15124
  * Creates a new Agent instance
14463
- *
14464
- * @param connection - Connection configuration for the assistant
14465
- * @param agentConfig - Initial agent configuration
14466
- *
14467
- * @example
14468
- * ```typescript
14469
- * const connectionConfig = new AssistantConnectionConfig({
14470
- * endpoint: 'https://api.rapida.ai',
14471
- * auth: { apiKey: 'your-api-key' }
14472
- * });
14473
- *
14474
- * const agentConfig = new AgentConfig({
14475
- * id: 'assistant-id',
14476
- * definition: assistantDefinition
14477
- * });
14478
- *
14479
- * const agent = new MyAgent(connectionConfig, agentConfig);
14480
- * ```
15125
+ * @param connection - Connection configuration
15126
+ * @param agentConfig - Agent configuration
15127
+ * @param agentCallback - Optional callback handler
14481
15128
  */
14482
15129
  protected constructor(connection: ConnectionConfig, agentConfig: AgentConfig, agentCallback?: AgentCallback);
14483
15130
  /**
@@ -14501,59 +15148,17 @@ declare class Agent extends Agent_base {
14501
15148
  */
14502
15149
  get agentConfiguration(): AgentConfig;
14503
15150
  /**
14504
- * Switches to a different agent during an active conversation
14505
- *
14506
- * This method allows dynamic agent switching without losing conversation context.
14507
- * The new agent will receive the conversation history and continue from where
14508
- * the previous agent left off.
15151
+ * Switches to a different agent during an active conversation.
15152
+ * Subclasses override this to send the configuration through their transport.
14509
15153
  *
14510
15154
  * @param config - Configuration for the new agent
14511
- * @throws {Error} If agent is not connected or switch fails
14512
- *
14513
- * @example
14514
- * ```typescript
14515
- * // Switch to a specialized agent for technical queries
14516
- * await agent.switchAgent({
14517
- * agentId: 'technical-support-agent',
14518
- * version: 'v1.2',
14519
- * options: new Map([
14520
- * ['specialization', createAnyValue('technical')],
14521
- * ['expertise_level', createAnyValue('advanced')]
14522
- * ])
14523
- * });
14524
- *
14525
- * // Switch to a different language agent
14526
- * await agent.switchAgent({
14527
- * agentId: 'multilingual-agent',
14528
- * metadata: new Map([
14529
- * ['language', createAnyValue('spanish')],
14530
- * ['region', createAnyValue('es-ES')]
14531
- * ])
14532
- * });
14533
- * ```
15155
+ * @throws {Error} If agent is not connected
14534
15156
  */
14535
- switchAgent(config: AgentConfig): Promise<void>;
15157
+ switchAgent(_config: AgentConfig): Promise<void>;
14536
15158
  /**
14537
15159
  * Creates metrics for a specific message
14538
- *
14539
- * @param messageId - ID of the message to create metrics for
15160
+ * @param messageId - ID of the message
14540
15161
  * @param metrics - Array of metric objects
14541
- *
14542
- * @example
14543
- * ```typescript
14544
- * agent.createMessageMetric('msg-123', [
14545
- * {
14546
- * name: 'user_satisfaction',
14547
- * description: 'User satisfaction rating',
14548
- * value: '4.5'
14549
- * },
14550
- * {
14551
- * name: 'response_time',
14552
- * description: 'Time taken to respond',
14553
- * value: '1.2'
14554
- * }
14555
- * ]);
14556
- * ```
14557
15162
  */
14558
15163
  createMessageMetric(messageId: string, metrics: Array<{
14559
15164
  name: string;
@@ -14562,24 +15167,7 @@ declare class Agent extends Agent_base {
14562
15167
  }>): void;
14563
15168
  /**
14564
15169
  * Creates metrics for the entire conversation
14565
- *
14566
15170
  * @param metrics - Array of metric objects
14567
- *
14568
- * @example
14569
- * ```typescript
14570
- * agent.createConversationMetric([
14571
- * {
14572
- * name: 'conversation_length',
14573
- * description: 'Total messages in conversation',
14574
- * value: '15'
14575
- * },
14576
- * {
14577
- * name: 'resolution_status',
14578
- * description: 'Whether the issue was resolved',
14579
- * value: 'resolved'
14580
- * }
14581
- * ]);
14582
- * ```
14583
15171
  */
14584
15172
  createConversationMetric(metrics: Array<{
14585
15173
  name: string;
@@ -14594,43 +15182,10 @@ declare class Agent extends Agent_base {
14594
15182
  * @returns Whether the event had listeners
14595
15183
  */
14596
15184
  emit<E extends keyof AgentEventCallback>(event: E, ...args: Parameters<AgentEventCallback[E]>): boolean;
14597
- /**
14598
- * Creates an assistant messaging request with the given role and contents
14599
- *
14600
- * @param role - Message role (user, assistant, system)
14601
- * @param contents - Message contents
14602
- * @returns Configured messaging request
14603
- */
14604
- protected createAssistantTextMessage(content: string): AssistantTalkInput;
14605
- /**
14606
- *
14607
- * @param content
14608
- * @returns
14609
- */
14610
- protected createAssistantAudioMessage(content: Uint8Array | string): AssistantTalkInput;
14611
- /**
14612
- * Override this method to handle incoming messages from the assistant
14613
- *
14614
- * @param response - Response from the assistant
14615
- *
14616
- * @example
14617
- * ```typescript
14618
- * protected onReceive(response: AssistantMessagingResponse) {
14619
- * if (response.hasMessage()) {
14620
- * console.log('Received message:', response.getMessage()?.getContentsList());
14621
- * }
14622
- * }
14623
- * ```
14624
- */
14625
- protected onRecieve: (_: AssistantTalkOutput) => Promise<void>;
14626
15185
  /**
14627
15186
  * Initializes the agent by fetching assistant data
14628
15187
  */
14629
15188
  getAssistant(): Promise<GetAssistantResponse>;
14630
- /**
14631
- * Creates an assistant configuration request
14632
- */
14633
- private _createAssistantConfigureRequest;
14634
15189
  /**
14635
15190
  * Updates connection state and emits events
14636
15191
  */
@@ -14640,21 +15195,11 @@ declare class Agent extends Agent_base {
14640
15195
  */
14641
15196
  protected changeConversation: (assistantConversationId: string) => void;
14642
15197
  /**
14643
- * Establishes connection to the assistant
14644
- */
14645
- protected connectAgent(): Promise<void>;
14646
- /**
14647
- * Disconnects from the assistant
15198
+ * Disconnects from the assistant.
15199
+ * Subclasses should override `disconnect()` to tear down their transport
15200
+ * and then call this to update state.
14648
15201
  */
14649
15202
  protected disconnectAgent(): Promise<void>;
14650
- /**
14651
- * Handles connection end events
14652
- */
14653
- private _onEnd;
14654
- /**
14655
- * Handles connection status changes
14656
- */
14657
- private _onStatusChange;
14658
15203
  /**
14659
15204
  * Fetches assistant data for a specific agent ID and version
14660
15205
  */
@@ -14666,11 +15211,101 @@ declare class Agent extends Agent_base {
14666
15211
  registerCallback: (agentCallback: AgentCallback) => void;
14667
15212
  }
14668
15213
 
15214
+ /**
15215
+ * WebRTC gRPC Transport Configuration
15216
+ */
15217
+ interface WebRTCGrpcTransportConfig {
15218
+ /** Connection configuration with gRPC client */
15219
+ connectionConfig: ConnectionConfig;
15220
+ /** Agent configuration */
15221
+ agentConfig: AgentConfig;
15222
+ /** Existing conversation ID to continue */
15223
+ conversationId?: string;
15224
+ }
15225
+ /**
15226
+ * WebRTC Transport with gRPC Signaling — Orchestrator
15227
+ *
15228
+ * Composes four single-responsibility managers:
15229
+ * - GrpcSignalingManager → gRPC stream lifecycle & proto message building
15230
+ * - WebRTCPeerManager → RTCPeerConnection, SDP/ICE, codec prefs
15231
+ * - AudioMediaManager → local/remote media, devices, mute/volume
15232
+ * - MessageProtocolHandler → incoming response dispatch
15233
+ *
15234
+ * This class wires the managers together and exposes the public API.
15235
+ */
15236
+ declare class WebRTCGrpcTransport {
15237
+ private config;
15238
+ private callbacks;
15239
+ private signaling;
15240
+ private peer;
15241
+ private audio;
15242
+ private protocol;
15243
+ constructor(config: WebRTCGrpcTransportConfig, callbacks?: AgentCallback);
15244
+ /**
15245
+ * Factory — create and connect a transport.
15246
+ * @param textOnly When true, connects gRPC + signaling only (no microphone).
15247
+ */
15248
+ static create(config: WebRTCGrpcTransportConfig, callbacks?: AgentCallback, textOnly?: boolean): Promise<WebRTCGrpcTransport>;
15249
+ /**
15250
+ * Connect the transport.
15251
+ *
15252
+ * @param textOnly When true, skip microphone — gRPC + signaling only.
15253
+ *
15254
+ * Flow:
15255
+ * 1. (Audio only) Get local media stream (microphone)
15256
+ * 2. Connect gRPC bidirectional stream
15257
+ * 3. Send ConversationInitialization
15258
+ * 4. Server responds with Signaling (SDP offer, ICE)
15259
+ * 5. Client creates peer connection and sends SDP answer
15260
+ * 6. Audio flows over WebRTC / text flows over gRPC
15261
+ */
15262
+ connect(textOnly?: boolean): Promise<void>;
15263
+ /**
15264
+ * Disconnect audio only (close WebRTC peer) but keep gRPC session alive.
15265
+ * This is a transport-layer operation — the session is unaffected.
15266
+ */
15267
+ disconnectAudioOnly(): Promise<void>;
15268
+ /**
15269
+ * Reconnect audio — setup local media (microphone).
15270
+ * The caller is responsible for sending ConversationConfiguration to the server.
15271
+ *
15272
+ * This is a transport-layer operation: it only adds the audio transport
15273
+ * to an existing session. It does NOT create a new session.
15274
+ */
15275
+ reconnectAudio(): Promise<void>;
15276
+ close(): Promise<void>;
15277
+ sendConversationInitialization(): void;
15278
+ sendConversationConfiguration(): void;
15279
+ sendText(text: string): void;
15280
+ interruptAudio(): void;
15281
+ resumeAudio(): Promise<void>;
15282
+ setMuted(muted: boolean): void;
15283
+ getMuted(): boolean;
15284
+ setVolume(volume: number): void;
15285
+ getVolume(): number;
15286
+ setInputDevice(deviceId: string): Promise<void>;
15287
+ setOutputDevice(deviceId: string): Promise<void>;
15288
+ get inputAnalyserNode(): AnalyserNode | null;
15289
+ get outputAnalyserNode(): AnalyserNode | null;
15290
+ get mediaStream(): MediaStream | null;
15291
+ get remoteMediaStream(): MediaStream | null;
15292
+ get context(): AudioContext | null;
15293
+ get connected(): boolean;
15294
+ get isGrpcConnected(): boolean;
15295
+ get isAudioConnected(): boolean;
15296
+ }
15297
+ /**
15298
+ * Check if the browser supports WebRTC with gRPC signaling
15299
+ */
15300
+ declare function supportsWebRTCGrpcTransport(): boolean;
15301
+
14669
15302
  declare class VoiceAgent extends Agent {
14670
- private input;
14671
- private output;
14672
- private preliminaryInputStream;
15303
+ private webrtcTransport;
14673
15304
  private volume;
15305
+ private connectionConfig;
15306
+ private _isMuted;
15307
+ private _connectPromise;
15308
+ private _disconnectRequested;
14674
15309
  private inputFrequencyData?;
14675
15310
  private outputFrequencyData?;
14676
15311
  /**
@@ -14678,57 +15313,88 @@ declare class VoiceAgent extends Agent {
14678
15313
  */
14679
15314
  constructor(connection: ConnectionConfig, agentConfig: AgentConfig, agentCallback?: AgentCallback);
14680
15315
  /**
14681
- * disconnecting the agent and voice if it is connected
15316
+ * Build the AgentCallback wiring used by WebRTCGrpcTransport.
15317
+ * Both audio-mode and text-only-mode go through the same transport,
15318
+ * so we share a single callback object.
15319
+ */
15320
+ private buildTransportCallbacks;
15321
+ /**
15322
+ * disconnecting the agent and voice if it is connected.
15323
+ * Safe to call while a connection attempt is still in progress —
15324
+ * signals the in-flight connect to abort and tears everything down.
14682
15325
  */
14683
15326
  disconnect: () => Promise<void>;
14684
15327
  /**
14685
15328
  * disconnect the audio for the agent
14686
15329
  */
14687
15330
  disconnectAudio: () => Promise<void>;
14688
- private connectDevice;
14689
- private waitForUserMediaPermission;
14690
15331
  /**
14691
- *
15332
+ * Fallback to text mode when the audio transport disconnects.
15333
+ * The session (gRPC) may still be alive — only the transport changes.
14692
15334
  */
14693
- private connectAudio;
15335
+ private switchToTextModeOnDisconnect;
14694
15336
  /**
15337
+ * Create the session (gRPC stream + optional audio).
14695
15338
  *
14696
- * Sending a message to server contains audio buffer
14697
- * Very optimize version that will handle the request and response wihtout modifying
14698
- * this makes the actual data sent to the server to process
14699
- * @param event
15339
+ * The current channel config determines whether audio is included.
15340
+ * This is called once per session after that, use setInputChannel()
15341
+ * to add/remove the audio transport without recreating the session.
14700
15342
  */
14701
- private onInputWorkletMessage;
15343
+ private connectDevice;
14702
15344
  /**
14703
- *
14704
- * @param param0
15345
+ * Handle assistant text from WebRTC - supports streaming with completed flag
15346
+ * Similar to original onHandleAssistant for gRPC
14705
15347
  */
14706
- private onOutputWorkletMessage;
15348
+ private _handleAssistantText;
14707
15349
  /**
14708
- *
15350
+ * Handle user transcription from WebRTC - supports streaming with completed flag
15351
+ * Similar to original onHandleUser for gRPC
15352
+ */
15353
+ private _handleUserTranscription;
15354
+ /**
15355
+ * Platform-specific audio preparation (mobile delays / iOS device selection).
15356
+ * Called automatically by connectDevice() when the channel is Audio.
15357
+ */
15358
+ private prepareAudioForPlatform;
15359
+ /**
15360
+ * Interrupt audio playback
14709
15361
  */
14710
15362
  private interruptAudio;
14711
15363
  /**
14712
- *
15364
+ * Fade out audio (WebRTC handles audio directly via peer connection)
14713
15365
  * @param duration
14714
- * @returns
14715
15366
  */
14716
15367
  private fadeOutAudio;
14717
15368
  /**
14718
- *
14719
- * @param chunk
15369
+ * Ensure the transport is connected. If not, connect and wait.
15370
+ * Safe to call from anywhere — deduplicates concurrent calls.
14720
15371
  */
14721
- private addAudioChunk;
15372
+ private ensureConnected;
14722
15373
  /**
15374
+ * Create a session (gRPC stream) with the assistant.
14723
15375
  *
14724
- * @returns
15376
+ * The current channel config determines whether audio is included.
15377
+ * Once connected, use setInputChannel() to switch transports
15378
+ * without creating a new session.
14725
15379
  */
14726
15380
  connect: () => Promise<void>;
14727
15381
  /**
15382
+ * Resume audio playback - call this from a user interaction (click/tap)
15383
+ * Required by some browsers due to autoplay policies
15384
+ */
15385
+ resumeAudio: () => Promise<void>;
15386
+ /**
15387
+ * Send text message to the assistant.
15388
+ * Works in both Audio and Text modes — always goes through the transport.
14728
15389
  *
14729
15390
  * @param text
14730
15391
  */
14731
15392
  onSendText: (text: string) => Promise<void>;
15393
+ /**
15394
+ * Switch to a different agent configuration during an active conversation.
15395
+ * Sends a ConversationConfiguration through the transport.
15396
+ */
15397
+ switchAgent(config: AgentConfig): Promise<void>;
14732
15398
  /**
14733
15399
  * Getting all the list of deviceid
14734
15400
  * @param kind
@@ -14748,29 +15414,33 @@ declare class VoiceAgent extends Agent {
14748
15414
  */
14749
15415
  setInputMediaDevice: (deviceId: string) => Promise<void>;
14750
15416
  get inputMediaDevice(): string | undefined;
14751
- setInputChannel: (input: Channel) => Promise<void>;
14752
15417
  /**
14753
- *
14754
- * @param interruptionData
15418
+ * Get current mute state
14755
15419
  */
14756
- private onHandleInterruption;
15420
+ get isMuted(): boolean;
14757
15421
  /**
14758
- * on handle user content
14759
- * @param userContent
15422
+ * Mute the microphone
14760
15423
  */
14761
- private onHandleUser;
15424
+ mute: () => void;
14762
15425
  /**
14763
- * on handle assistant content
14764
- * @param systemContent
15426
+ * Unmute the microphone
14765
15427
  */
14766
- private onHandleAssistant;
15428
+ unmute: () => void;
14767
15429
  /**
14768
- * streaming response from the server
14769
- * @param response
14770
- * @returns
15430
+ * Toggle mute state
15431
+ * @returns The new mute state after toggling
14771
15432
  */
14772
- onRecieve: (response: AssistantTalkOutput) => Promise<void>;
14773
- onCallback: (response: AssistantTalkOutput) => Promise<void>;
15433
+ toggleMute: () => boolean;
15434
+ /**
15435
+ * Switch input/output channel (Text ↔ Audio).
15436
+ *
15437
+ * This is a transport-layer change, NOT a state-layer change:
15438
+ * - Does NOT create a new session
15439
+ * - Does NOT reset conversation state
15440
+ * - Only changes input transport (keyboard ↔ microphone)
15441
+ * and output transport (screen ↔ speaker)
15442
+ */
15443
+ setInputChannel: (input: Channel) => Promise<void>;
14774
15444
  /**
14775
15445
  * to get byte frequency data from input
14776
15446
  * @returns
@@ -14781,6 +15451,12 @@ declare class VoiceAgent extends Agent {
14781
15451
  * @returns
14782
15452
  */
14783
15453
  getOutputByteFrequencyData: () => Uint8Array | undefined;
15454
+ /**
15455
+ * Check if WebRTC transport is connected
15456
+ */
15457
+ get isWebRTCConnected(): boolean;
15458
+ /** Get the WebRTC transport instance */
15459
+ get transport(): WebRTCGrpcTransport | null;
14784
15460
  }
14785
15461
 
14786
15462
  interface DeviceSelectorComponentProps extends HTMLAttributes<HTMLDivElement> {
@@ -14792,4 +15468,4 @@ interface DeviceSelectorComponentProps extends HTMLAttributes<HTMLDivElement> {
14792
15468
  */
14793
15469
  declare const DeviceSelectorComponent: FC<DeviceSelectorComponentProps>;
14794
15470
 
14795
- export { Metadata as $, AssistantDebuggerDeployment as A, GetAllMessageResponse as B, ConnectionConfig as C, GetAllConversationMessageResponse as D, CreateAssistantDeploymentRequest as E, Feedback as F, GetUserResponse as G, GetAssistantDebuggerDeploymentResponse as H, IndexKnowledgeDocumentResponse as I, GetAssistantDeploymentRequest as J, GetAssistantApiDeploymentResponse as K, GetAssistantWebpluginDeploymentResponse as L, type Message as M, GetAssistantPhoneDeploymentResponse as N, GetAssistantWhatsappDeploymentResponse as O, GetAllAssistantWebhookResponse as P, GetAssistantWebhookResponse as Q, type RapidaSource as R, GetAssistantConversationRequest as S, GetAssistantConversationResponse as T, type UserAuthInfo as U, VoiceAgent as V, GetAllAssistantAnalysisResponse as W, GetAssistantAnalysisResponse as X, GetAllAssistantWebhookLogResponse as Y, GetAssistantWebhookLogResponse as Z, GetAllAssistantToolResponse as _, AssistantWebpluginDeployment as a, CreateBulkPhoneCallResponse as a$, GetAssistantToolResponse as a0, GetAllAssistantKnowledgeResponse as a1, GetAssistantKnowledgeResponse as a2, GetAssistantToolLogRequest as a3, GetAssistantToolLogResponse as a4, GetAllAssistantToolLogRequest as a5, GetAllAssistantToolLogResponse as a6, CreateAssistantProviderRequest as a7, GetAssistantProviderResponse as a8, GetAllAssistantProviderResponse as a9, CreateKnowledgeRequest as aA, CreateKnowledgeResponse as aB, GetKnowledgeResponse as aC, GetAllKnowledgeResponse as aD, DocumentContent as aE, CreateKnowledgeDocumentResponse as aF, GetAllKnowledgeDocumentResponse as aG, GetAllKnowledgeDocumentSegmentResponse as aH, BaseResponse as aI, GetKnowledgeLogRequest as aJ, GetKnowledgeLogResponse as aK, GetAllKnowledgeLogRequest as aL, GetAllKnowledgeLogResponse as aM, AddUsersToProjectResponse as aN, CreateProjectResponse as aO, UpdateProjectResponse as aP, GetAllProjectResponse as aQ, GetProjectResponse as aR, ArchiveProjectResponse as aS, GetAllProjectCredentialResponse as aT, CreateProjectCredentialResponse as aU, Error as aV, Metric as aW, Message$1 as aX, CreatePhoneCallRequest as aY, CreatePhoneCallResponse as aZ, CreateBulkPhoneCallRequest as a_, GetAllAuditLogResponse as aa, GetAuditLogResponse as ab, GetAllEndpointResponse as ac, UpdateEndpointVersionResponse as ad, GetAllEndpointProviderModelResponse as ae, GetEndpointResponse as af, EndpointProviderModelAttribute as ag, CreateEndpointProviderModelResponse as ah, EndpointAttribute as ai, CreateEndpointResponse as aj, EndpointRetryConfiguration as ak, EndpointCacheConfiguration as al, CreateEndpointRetryConfigurationResponse as am, CreateEndpointCacheConfigurationResponse as an, GetAllEndpointLogResponse as ao, GetEndpointLogResponse as ap, CreateProviderCredentialRequest as aq, GetCredentialResponse as ar, GetAllOrganizationCredentialResponse as as, AssistantTalkInput as at, AssistantTalkOutput as au, CreateMessageMetricRequest as av, CreateMessageMetricResponse as aw, CreateConversationMetricRequest as ax, CreateConversationMetricResponse as ay, GetAllAssistantConversationResponse as az, AssistantApiDeployment as b, KnowledgeService as b$, GetAllAssistantTelemetryRequest as b0, GetAllAssistantTelemetryResponse as b1, GetNotificationSettingRequest as b2, NotificationSettingResponse as b3, UpdateNotificationSettingRequest as b4, ConnectionState as b5, Channel as b6, InputOptions as b7, OutputOptions as b8, AgentConfig as b9, HEADER_LATITUDE as bA, HEADER_LONGITUDE as bB, WithPlatform as bC, WithAuthContext as bD, getClientInfo as bE, WithClientContext as bF, EndpointService as bG, EndpointServiceClient as bH, AssistantDeploymentService as bI, AssistantDeploymentServiceClient as bJ, ConnectService as bK, ConnectServiceClient as bL, VaultService as bM, VaultServiceClient as bN, Deployment as bO, DeploymentClient as bP, AssistantKnowledge as bQ, CreateAssistantKnowledgeRequest as bR, UpdateAssistantKnowledgeRequest as bS, GetAssistantKnowledgeRequest as bT, DeleteAssistantKnowledgeRequest as bU, GetAllAssistantKnowledgeRequest as bV, AuditLog as bW, GetAllAuditLogRequest as bX, GetAuditLogRequest as bY, CreateMetadataRequest as bZ, CreateMetadataResponse as b_, type AgentCallback as ba, MessageRole as bb, MessageStatus as bc, HEADER_ENVIRONMENT_KEY as bd, HEADER_SOURCE_KEY as be, HEADER_REGION_KEY as bf, HEADER_API_KEY as bg, HEADER_AUTH_ID as bh, HEADER_PROJECT_ID as bi, HEADER_USER_AGENT as bj, HEADER_LANGUAGE as bk, HEADER_PLATFORM as bl, HEADER_SCREEN_WIDTH as bm, HEADER_SCREEN_HEIGHT as bn, HEADER_WINDOW_WIDTH as bo, HEADER_WINDOW_HEIGHT as bp, HEADER_TIMEZONE as bq, HEADER_COLOR_DEPTH as br, HEADER_DEVICE_MEMORY as bs, HEADER_HARDWARE_CONCURRENCY as bt, HEADER_CONNECTION_TYPE as bu, HEADER_CONNECTION_EFFECTIVE_TYPE as bv, HEADER_COOKIES_ENABLED as bw, HEADER_DO_NOT_TRACK as bx, HEADER_REFERRER as by, HEADER_REMOTE_URL as bz, Assistant as c, AssistantConversation as c$, KnowledgeServiceClient as c0, VaultCredential as c1, GetAllOrganizationCredentialRequest as c2, GetCredentialRequest as c3, AssistantAnalysis as c4, CreateAssistantAnalysisRequest as c5, UpdateAssistantAnalysisRequest as c6, GetAssistantAnalysisRequest as c7, DeleteAssistantAnalysisRequest as c8, GetAllAssistantAnalysisRequest as c9, UpdateBillingInformationRequest as cA, Project as cB, CreateProjectRequest as cC, UpdateProjectRequest as cD, GetProjectRequest as cE, GetAllProjectRequest as cF, AddUsersToProjectRequest as cG, ArchiveProjectRequest as cH, ProjectCredential as cI, CreateProjectCredentialRequest as cJ, GetAllProjectCredentialRequest as cK, FieldSelector as cL, Paginate as cM, Paginated as cN, Ordering as cO, User as cP, Argument as cQ, Variable as cR, Tag as cS, Organization as cT, ToolCall as cU, FunctionCall as cV, Knowledge as cW, TextPrompt as cX, TextChatCompletePrompt as cY, AssistantConversationMessage as cZ, AssistantConversationContext as c_, EndpointDefinition as ca, UpdateRequest as cb, UpdateResponse as cc, ProbeRequest as cd, ProbeResponse as ce, AuthenticateRequest as cf, RegisterUserRequest as cg, Token as ch, OrganizationRole as ci, ProjectRole as cj, FeaturePermission as ck, Authentication as cl, ScopedAuthentication as cm, ForgotPasswordRequest as cn, CreatePasswordRequest as co, VerifyTokenRequest as cp, AuthorizeRequest as cq, ScopeAuthorizeRequest as cr, ScopedAuthenticationResponse as cs, GetUserRequest as ct, UpdateUserRequest as cu, SocialAuthenticationRequest as cv, GetAllUserRequest as cw, CreateOrganizationRequest as cx, UpdateOrganizationRequest as cy, GetOrganizationRequest as cz, type ClientAuthInfo as d, UpdateKnowledgeDocumentSegmentRequest as d$, GetAllAssistantConversationRequest as d0, GetAllConversationMessageRequest as d1, AssistantConversationRecording as d2, AssistantDefinition as d3, Telemetry as d4, AssistantConversationTelephonyEvent as d5, AssistantService as d6, AssistantServiceClient as d7, TalkService as d8, TalkServiceClient as d9, CreateEndpointTagRequest as dA, ForkEndpointRequest as dB, UpdateEndpointDetailRequest as dC, EndpointLog as dD, GetAllEndpointLogRequest as dE, GetEndpointLogRequest as dF, AssistantTool as dG, AssistantToolLog as dH, CreateAssistantToolRequest as dI, UpdateAssistantToolRequest as dJ, GetAssistantToolRequest as dK, DeleteAssistantToolRequest as dL, GetAllAssistantToolRequest as dM, DeploymentAudioProvider as dN, AssistantPhoneDeployment as dO, AssistantWhatsappDeployment as dP, AuditLoggingService as dQ, AuditLoggingServiceClient as dR, GetAllKnowledgeRequest as dS, GetKnowledgeRequest as dT, CreateKnowledgeTagRequest as dU, KnowledgeDocument as dV, GetAllKnowledgeDocumentRequest as dW, CreateKnowledgeDocumentRequest as dX, KnowledgeDocumentSegment as dY, GetAllKnowledgeDocumentSegmentRequest as dZ, UpdateKnowledgeDetailRequest as d_, AssistantWebhook as da, AssistantWebhookLog as db, CreateAssistantWebhookRequest as dc, UpdateAssistantWebhookRequest as dd, GetAssistantWebhookRequest as de, DeleteAssistantWebhookRequest as df, GetAllAssistantWebhookRequest as dg, GetAllAssistantWebhookLogRequest as dh, GetAssistantWebhookLogRequest as di, GeneralConnectRequest as dj, GetConnectorFilesRequest as dk, DocumentService as dl, DocumentServiceClient as dm, IndexKnowledgeDocumentRequest as dn, CreateEndpointRequest as dp, EndpointProviderModel as dq, AggregatedEndpointAnalytics as dr, Endpoint as ds, CreateEndpointProviderModelRequest as dt, GetEndpointRequest as du, GetAllEndpointRequest as dv, GetAllEndpointProviderModelRequest as dw, UpdateEndpointVersionRequest as dx, CreateEndpointRetryConfigurationRequest as dy, CreateEndpointCacheConfigurationRequest as dz, InvokeRequest as e, DeleteKnowledgeDocumentSegmentRequest as e0, KnowledgeLog as e1, CreateAssistantTagRequest as e2, DeleteAssistantRequest as e3, GetAllAssistantRequest as e4, GetAllAssistantMessageRequest as e5, GetAllMessageRequest as e6, UpdateAssistantDetailRequest as e7, AuthenticationService as e8, OrganizationService as e9, ProjectService as ea, AuthenticationServiceClient as eb, OrganizationServiceClient as ec, ProjectServiceClient as ed, DeviceSelectorComponent as ee, NotificationSetting as ef, AssistantProviderModel as eg, AssistantProviderAgentkit as eh, AssistantProviderWebsocket as ei, GetAllAssistantProviderRequest as ej, ConversationConfiguration as ek, ConversationInterruption as el, ConversationAssistantMessage$1 as em, ConversationUserMessage$1 as en, ConversationToolCall as eo, ConversationToolResult as ep, ConversationDirective as eq, WEB_PLUGIN_SOURCE as er, DEBUGGER_SOURCE as es, SDK_SOURCE as et, PHONE_CALL_SOURCE as eu, WHATSAPP_SOURCE as ev, getRapidaSourceValue as ew, fromStr as ex, InvokeResponse as f, AuthenticateResponse as g, VerifyTokenResponse as h, ForgotPasswordResponse as i, CreatePasswordResponse as j, ChangePasswordRequest as k, ChangePasswordResponse as l, UpdateUserResponse as m, GetAllUserResponse as n, GeneralConnectResponse as o, Criteria as p, GetConnectorFilesResponse as q, CreateOrganizationResponse as r, UpdateOrganizationResponse as s, GetOrganizationResponse as t, GetAllAssistantResponse as u, UpdateAssistantVersionRequest as v, GetAssistantResponse as w, GetAssistantRequest as x, CreateAssistantRequest as y, GetAllAssistantMessageResponse as z };
15471
+ export { Metadata as $, AssistantDebuggerDeployment as A, GetAllMessageResponse as B, ConnectionConfig as C, GetAllConversationMessageResponse as D, CreateAssistantDeploymentRequest as E, Feedback as F, GetUserResponse as G, GetAssistantDebuggerDeploymentResponse as H, IndexKnowledgeDocumentResponse as I, GetAssistantDeploymentRequest as J, GetAssistantApiDeploymentResponse as K, GetAssistantWebpluginDeploymentResponse as L, type Message as M, GetAssistantPhoneDeploymentResponse as N, GetAssistantWhatsappDeploymentResponse as O, GetAllAssistantWebhookResponse as P, GetAssistantWebhookResponse as Q, type RapidaSource as R, GetAssistantConversationRequest as S, GetAssistantConversationResponse as T, type UserAuthInfo as U, VoiceAgent as V, GetAllAssistantAnalysisResponse as W, GetAssistantAnalysisResponse as X, GetAllAssistantWebhookLogResponse as Y, GetAssistantWebhookLogResponse as Z, GetAllAssistantToolResponse as _, AssistantWebpluginDeployment as a, CreatePhoneCallResponse as a$, GetAssistantToolResponse as a0, GetAllAssistantKnowledgeResponse as a1, GetAssistantKnowledgeResponse as a2, GetAssistantToolLogRequest as a3, GetAssistantToolLogResponse as a4, GetAllAssistantToolLogRequest as a5, GetAllAssistantToolLogResponse as a6, CreateAssistantProviderRequest as a7, GetAssistantProviderResponse as a8, GetAllAssistantProviderResponse as a9, WebTalkRequest as aA, WebTalkResponse as aB, CreateKnowledgeRequest as aC, CreateKnowledgeResponse as aD, GetKnowledgeResponse as aE, GetAllKnowledgeResponse as aF, DocumentContent as aG, CreateKnowledgeDocumentResponse as aH, GetAllKnowledgeDocumentResponse as aI, GetAllKnowledgeDocumentSegmentResponse as aJ, BaseResponse as aK, GetKnowledgeLogRequest as aL, GetKnowledgeLogResponse as aM, GetAllKnowledgeLogRequest as aN, GetAllKnowledgeLogResponse as aO, AddUsersToProjectResponse as aP, CreateProjectResponse as aQ, UpdateProjectResponse as aR, GetAllProjectResponse as aS, GetProjectResponse as aT, ArchiveProjectResponse as aU, GetAllProjectCredentialResponse as aV, CreateProjectCredentialResponse as aW, Error$1 as aX, Metric as aY, Message$1 as aZ, CreatePhoneCallRequest as a_, GetAllAuditLogResponse as aa, GetAuditLogResponse as ab, GetAllEndpointResponse as ac, UpdateEndpointVersionResponse as ad, GetAllEndpointProviderModelResponse as ae, GetEndpointResponse as af, EndpointProviderModelAttribute as ag, CreateEndpointProviderModelResponse as ah, EndpointAttribute as ai, CreateEndpointResponse as aj, EndpointRetryConfiguration as ak, EndpointCacheConfiguration as al, CreateEndpointRetryConfigurationResponse as am, CreateEndpointCacheConfigurationResponse as an, GetAllEndpointLogResponse as ao, GetEndpointLogResponse as ap, CreateProviderCredentialRequest as aq, GetCredentialResponse as ar, GetAllOrganizationCredentialResponse as as, AssistantTalkRequest as at, AssistantTalkResponse as au, CreateMessageMetricRequest as av, CreateMessageMetricResponse as aw, CreateConversationMetricRequest as ax, CreateConversationMetricResponse as ay, GetAllAssistantConversationResponse as az, AssistantApiDeployment as b, GetAllAssistantKnowledgeRequest as b$, CreateBulkPhoneCallRequest as b0, CreateBulkPhoneCallResponse as b1, GetAllAssistantTelemetryRequest as b2, GetAllAssistantTelemetryResponse as b3, GetNotificationSettingRequest as b4, NotificationSettingResponse as b5, UpdateNotificationSettingRequest as b6, WebRTCGrpcTransport as b7, supportsWebRTCGrpcTransport as b8, type WebRTCGrpcTransportConfig as b9, HEADER_CONNECTION_TYPE as bA, HEADER_CONNECTION_EFFECTIVE_TYPE as bB, HEADER_COOKIES_ENABLED as bC, HEADER_DO_NOT_TRACK as bD, HEADER_REFERRER as bE, HEADER_REMOTE_URL as bF, HEADER_LATITUDE as bG, HEADER_LONGITUDE as bH, WithPlatform as bI, WithAuthContext as bJ, getClientInfo as bK, WithClientContext as bL, EndpointService as bM, EndpointServiceClient as bN, AssistantDeploymentService as bO, AssistantDeploymentServiceClient as bP, ConnectService as bQ, ConnectServiceClient as bR, VaultService as bS, VaultServiceClient as bT, Deployment as bU, DeploymentClient as bV, AssistantKnowledge as bW, CreateAssistantKnowledgeRequest as bX, UpdateAssistantKnowledgeRequest as bY, GetAssistantKnowledgeRequest as bZ, DeleteAssistantKnowledgeRequest as b_, ConnectionState as ba, Channel as bb, InputOptions as bc, OutputOptions as bd, AgentConfig as be, UserIdentifier as bf, type AgentCallback as bg, MessageRole as bh, MessageStatus as bi, HEADER_ENVIRONMENT_KEY as bj, HEADER_SOURCE_KEY as bk, HEADER_REGION_KEY as bl, HEADER_API_KEY as bm, HEADER_AUTH_ID as bn, HEADER_PROJECT_ID as bo, HEADER_USER_AGENT as bp, HEADER_LANGUAGE as bq, HEADER_PLATFORM as br, HEADER_SCREEN_WIDTH as bs, HEADER_SCREEN_HEIGHT as bt, HEADER_WINDOW_WIDTH as bu, HEADER_WINDOW_HEIGHT as bv, HEADER_TIMEZONE as bw, HEADER_COLOR_DEPTH as bx, HEADER_DEVICE_MEMORY as by, HEADER_HARDWARE_CONCURRENCY as bz, Assistant as c, FunctionCall as c$, AuditLog as c0, GetAllAuditLogRequest as c1, GetAuditLogRequest as c2, CreateMetadataRequest as c3, CreateMetadataResponse as c4, KnowledgeService as c5, KnowledgeServiceClient as c6, VaultCredential as c7, GetAllOrganizationCredentialRequest as c8, GetCredentialRequest as c9, UpdateUserRequest as cA, SocialAuthenticationRequest as cB, GetAllUserRequest as cC, CreateOrganizationRequest as cD, UpdateOrganizationRequest as cE, GetOrganizationRequest as cF, UpdateBillingInformationRequest as cG, Project as cH, CreateProjectRequest as cI, UpdateProjectRequest as cJ, GetProjectRequest as cK, GetAllProjectRequest as cL, AddUsersToProjectRequest as cM, ArchiveProjectRequest as cN, ProjectCredential as cO, CreateProjectCredentialRequest as cP, GetAllProjectCredentialRequest as cQ, FieldSelector as cR, Paginate as cS, Paginated as cT, Ordering as cU, User as cV, Argument as cW, Variable as cX, Tag as cY, Organization as cZ, ToolCall as c_, AssistantAnalysis as ca, CreateAssistantAnalysisRequest as cb, UpdateAssistantAnalysisRequest as cc, GetAssistantAnalysisRequest as cd, DeleteAssistantAnalysisRequest as ce, GetAllAssistantAnalysisRequest as cf, EndpointDefinition as cg, UpdateRequest as ch, UpdateResponse as ci, ProbeRequest as cj, ProbeResponse as ck, AuthenticateRequest as cl, RegisterUserRequest as cm, Token as cn, OrganizationRole as co, ProjectRole as cp, FeaturePermission as cq, Authentication as cr, ScopedAuthentication as cs, ForgotPasswordRequest as ct, CreatePasswordRequest as cu, VerifyTokenRequest as cv, AuthorizeRequest as cw, ScopeAuthorizeRequest as cx, ScopedAuthenticationResponse as cy, GetUserRequest as cz, type ClientAuthInfo as d, KnowledgeDocument as d$, Knowledge as d0, TextPrompt as d1, TextChatCompletePrompt as d2, AssistantConversationMessage as d3, AssistantConversationContext as d4, AssistantConversation as d5, GetAllAssistantConversationRequest as d6, GetAllConversationMessageRequest as d7, AssistantConversationRecording as d8, AssistantDefinition as d9, GetEndpointRequest as dA, GetAllEndpointRequest as dB, GetAllEndpointProviderModelRequest as dC, UpdateEndpointVersionRequest as dD, CreateEndpointRetryConfigurationRequest as dE, CreateEndpointCacheConfigurationRequest as dF, CreateEndpointTagRequest as dG, ForkEndpointRequest as dH, UpdateEndpointDetailRequest as dI, EndpointLog as dJ, GetAllEndpointLogRequest as dK, GetEndpointLogRequest as dL, AssistantTool as dM, AssistantToolLog as dN, CreateAssistantToolRequest as dO, UpdateAssistantToolRequest as dP, GetAssistantToolRequest as dQ, DeleteAssistantToolRequest as dR, GetAllAssistantToolRequest as dS, DeploymentAudioProvider as dT, AssistantPhoneDeployment as dU, AssistantWhatsappDeployment as dV, AuditLoggingService as dW, AuditLoggingServiceClient as dX, GetAllKnowledgeRequest as dY, GetKnowledgeRequest as dZ, CreateKnowledgeTagRequest as d_, Telemetry as da, AssistantConversationTelephonyEvent as db, AssistantService as dc, AssistantServiceClient as dd, TalkService as de, TalkServiceClient as df, AssistantWebhook as dg, AssistantWebhookLog as dh, CreateAssistantWebhookRequest as di, UpdateAssistantWebhookRequest as dj, GetAssistantWebhookRequest as dk, DeleteAssistantWebhookRequest as dl, GetAllAssistantWebhookRequest as dm, GetAllAssistantWebhookLogRequest as dn, GetAssistantWebhookLogRequest as dp, GeneralConnectRequest as dq, GetConnectorFilesRequest as dr, DocumentService as ds, DocumentServiceClient as dt, IndexKnowledgeDocumentRequest as du, CreateEndpointRequest as dv, EndpointProviderModel as dw, AggregatedEndpointAnalytics as dx, Endpoint as dy, CreateEndpointProviderModelRequest as dz, InvokeRequest as e, GetAllKnowledgeDocumentRequest as e0, CreateKnowledgeDocumentRequest as e1, KnowledgeDocumentSegment as e2, GetAllKnowledgeDocumentSegmentRequest as e3, UpdateKnowledgeDetailRequest as e4, UpdateKnowledgeDocumentSegmentRequest as e5, DeleteKnowledgeDocumentSegmentRequest as e6, KnowledgeLog as e7, CreateAssistantTagRequest as e8, DeleteAssistantRequest as e9, PHONE_CALL_SOURCE as eA, WHATSAPP_SOURCE as eB, WEBRTC_SOURCE as eC, getRapidaSourceValue as eD, fromStr as eE, GetAllAssistantRequest as ea, GetAllAssistantMessageRequest as eb, GetAllMessageRequest as ec, UpdateAssistantDetailRequest as ed, AuthenticationService as ee, OrganizationService as ef, ProjectService as eg, AuthenticationServiceClient as eh, OrganizationServiceClient as ei, ProjectServiceClient as ej, DeviceSelectorComponent as ek, NotificationSetting as el, AssistantProviderModel as em, AssistantProviderAgentkit as en, AssistantProviderWebsocket as eo, GetAllAssistantProviderRequest as ep, ConversationConfiguration as eq, ConversationInterruption as er, ConversationAssistantMessage$1 as es, ConversationUserMessage$1 as et, ConversationToolCall as eu, ConversationToolResult as ev, ConversationDirective as ew, WEB_PLUGIN_SOURCE as ex, DEBUGGER_SOURCE as ey, SDK_SOURCE as ez, InvokeResponse as f, AuthenticateResponse as g, VerifyTokenResponse as h, ForgotPasswordResponse as i, CreatePasswordResponse as j, ChangePasswordRequest as k, ChangePasswordResponse as l, UpdateUserResponse as m, GetAllUserResponse as n, GeneralConnectResponse as o, Criteria as p, GetConnectorFilesResponse as q, CreateOrganizationResponse as r, UpdateOrganizationResponse as s, GetOrganizationResponse as t, GetAllAssistantResponse as u, UpdateAssistantVersionRequest as v, GetAssistantResponse as w, GetAssistantRequest as x, CreateAssistantRequest as y, GetAllAssistantMessageResponse as z };