@rapidaai/react 1.1.47 → 1.1.49
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-5UBYT2TF.mjs → chunk-JA65S2AA.mjs} +549 -531
- package/dist/chunk-JA65S2AA.mjs.map +1 -0
- package/dist/components/device-selector.d.mts +1 -1
- package/dist/components/device-selector.d.ts +1 -1
- package/dist/components/device-selector.js +548 -530
- package/dist/components/device-selector.js.map +1 -1
- package/dist/components/device-selector.mjs +1 -1
- package/dist/{device-selector-CoAQBhd-.d.mts → device-selector-o07ACCD6.d.mts} +147 -184
- package/dist/{device-selector-CoAQBhd-.d.ts → device-selector-o07ACCD6.d.ts} +147 -184
- package/dist/index.d.mts +3 -81
- package/dist/index.d.ts +3 -81
- package/dist/index.js +774 -585
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +227 -56
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/dist/chunk-5UBYT2TF.mjs.map +0 -1
|
@@ -1301,6 +1301,16 @@ declare class AssistantConversationConfiguration extends jspb.Message {
|
|
|
1301
1301
|
clearArgsMap(): void;
|
|
1302
1302
|
getOptionsMap(): jspb.Map<string, google_protobuf_any_pb.Any>;
|
|
1303
1303
|
clearOptionsMap(): void;
|
|
1304
|
+
hasInputconfig(): boolean;
|
|
1305
|
+
clearInputconfig(): void;
|
|
1306
|
+
getInputconfig(): StreamConfig | undefined;
|
|
1307
|
+
setInputconfig(value?: StreamConfig): void;
|
|
1308
|
+
|
|
1309
|
+
hasOutputconfig(): boolean;
|
|
1310
|
+
clearOutputconfig(): void;
|
|
1311
|
+
getOutputconfig(): StreamConfig | undefined;
|
|
1312
|
+
setOutputconfig(value?: StreamConfig): void;
|
|
1313
|
+
|
|
1304
1314
|
serializeBinary(): Uint8Array;
|
|
1305
1315
|
toObject(includeInstance?: boolean): AssistantConversationConfiguration.AsObject;
|
|
1306
1316
|
static toObject(includeInstance: boolean, msg: AssistantConversationConfiguration): AssistantConversationConfiguration.AsObject;
|
|
@@ -1319,147 +1329,130 @@ declare namespace AssistantConversationConfiguration {
|
|
|
1319
1329
|
metadataMap: Array<[string, google_protobuf_any_pb.Any.AsObject]>,
|
|
1320
1330
|
argsMap: Array<[string, google_protobuf_any_pb.Any.AsObject]>,
|
|
1321
1331
|
optionsMap: Array<[string, google_protobuf_any_pb.Any.AsObject]>,
|
|
1332
|
+
inputconfig?: StreamConfig.AsObject,
|
|
1333
|
+
outputconfig?: StreamConfig.AsObject,
|
|
1322
1334
|
}
|
|
1323
1335
|
}
|
|
1324
1336
|
|
|
1325
|
-
declare class
|
|
1326
|
-
|
|
1327
|
-
|
|
1337
|
+
declare class StreamConfig extends jspb.Message {
|
|
1338
|
+
hasAudio(): boolean;
|
|
1339
|
+
clearAudio(): void;
|
|
1340
|
+
getAudio(): AudioConfig | undefined;
|
|
1341
|
+
setAudio(value?: AudioConfig): void;
|
|
1342
|
+
|
|
1343
|
+
hasText(): boolean;
|
|
1344
|
+
clearText(): void;
|
|
1345
|
+
getText(): TextConfig | undefined;
|
|
1346
|
+
setText(value?: TextConfig): void;
|
|
1328
1347
|
|
|
1329
1348
|
serializeBinary(): Uint8Array;
|
|
1330
|
-
toObject(includeInstance?: boolean):
|
|
1331
|
-
static toObject(includeInstance: boolean, msg:
|
|
1349
|
+
toObject(includeInstance?: boolean): StreamConfig.AsObject;
|
|
1350
|
+
static toObject(includeInstance: boolean, msg: StreamConfig): StreamConfig.AsObject;
|
|
1332
1351
|
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
1333
1352
|
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
1334
|
-
static serializeBinaryToWriter(message:
|
|
1335
|
-
static deserializeBinary(bytes: Uint8Array):
|
|
1336
|
-
static deserializeBinaryFromReader(message:
|
|
1353
|
+
static serializeBinaryToWriter(message: StreamConfig, writer: jspb.BinaryWriter): void;
|
|
1354
|
+
static deserializeBinary(bytes: Uint8Array): StreamConfig;
|
|
1355
|
+
static deserializeBinaryFromReader(message: StreamConfig, reader: jspb.BinaryReader): StreamConfig;
|
|
1337
1356
|
}
|
|
1338
1357
|
|
|
1339
|
-
declare namespace
|
|
1358
|
+
declare namespace StreamConfig {
|
|
1340
1359
|
export type AsObject = {
|
|
1341
|
-
|
|
1360
|
+
audio?: AudioConfig.AsObject,
|
|
1361
|
+
text?: TextConfig.AsObject,
|
|
1342
1362
|
}
|
|
1343
1363
|
}
|
|
1344
1364
|
|
|
1345
|
-
declare class
|
|
1346
|
-
|
|
1347
|
-
|
|
1365
|
+
declare class AudioConfig extends jspb.Message {
|
|
1366
|
+
getSamplerate(): number;
|
|
1367
|
+
setSamplerate(value: number): void;
|
|
1348
1368
|
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
static toObject(includeInstance: boolean, msg: AssistantConverstationHoldAction): AssistantConverstationHoldAction.AsObject;
|
|
1352
|
-
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
1353
|
-
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
1354
|
-
static serializeBinaryToWriter(message: AssistantConverstationHoldAction, writer: jspb.BinaryWriter): void;
|
|
1355
|
-
static deserializeBinary(bytes: Uint8Array): AssistantConverstationHoldAction;
|
|
1356
|
-
static deserializeBinaryFromReader(message: AssistantConverstationHoldAction, reader: jspb.BinaryReader): AssistantConverstationHoldAction;
|
|
1357
|
-
}
|
|
1358
|
-
|
|
1359
|
-
declare namespace AssistantConverstationHoldAction {
|
|
1360
|
-
export type AsObject = {
|
|
1361
|
-
holdtime: number,
|
|
1362
|
-
}
|
|
1363
|
-
}
|
|
1369
|
+
getAudioformat(): AudioConfig.AudioFormatMap[keyof AudioConfig.AudioFormatMap];
|
|
1370
|
+
setAudioformat(value: AudioConfig.AudioFormatMap[keyof AudioConfig.AudioFormatMap]): void;
|
|
1364
1371
|
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
setQuery(value: string): void;
|
|
1372
|
+
getChannels(): number;
|
|
1373
|
+
setChannels(value: number): void;
|
|
1368
1374
|
|
|
1369
1375
|
serializeBinary(): Uint8Array;
|
|
1370
|
-
toObject(includeInstance?: boolean):
|
|
1371
|
-
static toObject(includeInstance: boolean, msg:
|
|
1376
|
+
toObject(includeInstance?: boolean): AudioConfig.AsObject;
|
|
1377
|
+
static toObject(includeInstance: boolean, msg: AudioConfig): AudioConfig.AsObject;
|
|
1372
1378
|
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
1373
1379
|
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
1374
|
-
static serializeBinaryToWriter(message:
|
|
1375
|
-
static deserializeBinary(bytes: Uint8Array):
|
|
1376
|
-
static deserializeBinaryFromReader(message:
|
|
1380
|
+
static serializeBinaryToWriter(message: AudioConfig, writer: jspb.BinaryWriter): void;
|
|
1381
|
+
static deserializeBinary(bytes: Uint8Array): AudioConfig;
|
|
1382
|
+
static deserializeBinaryFromReader(message: AudioConfig, reader: jspb.BinaryReader): AudioConfig;
|
|
1377
1383
|
}
|
|
1378
1384
|
|
|
1379
|
-
declare namespace
|
|
1385
|
+
declare namespace AudioConfig {
|
|
1380
1386
|
export type AsObject = {
|
|
1381
|
-
|
|
1387
|
+
samplerate: number,
|
|
1388
|
+
audioformat: AudioConfig.AudioFormatMap[keyof AudioConfig.AudioFormatMap],
|
|
1389
|
+
channels: number,
|
|
1382
1390
|
}
|
|
1383
|
-
}
|
|
1384
1391
|
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
static toObject(includeInstance: boolean, msg: AssistantConverstationApiRequestAction): AssistantConverstationApiRequestAction.AsObject;
|
|
1389
|
-
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
1390
|
-
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
1391
|
-
static serializeBinaryToWriter(message: AssistantConverstationApiRequestAction, writer: jspb.BinaryWriter): void;
|
|
1392
|
-
static deserializeBinary(bytes: Uint8Array): AssistantConverstationApiRequestAction;
|
|
1393
|
-
static deserializeBinaryFromReader(message: AssistantConverstationApiRequestAction, reader: jspb.BinaryReader): AssistantConverstationApiRequestAction;
|
|
1394
|
-
}
|
|
1395
|
-
|
|
1396
|
-
declare namespace AssistantConverstationApiRequestAction {
|
|
1397
|
-
export type AsObject = {
|
|
1392
|
+
export interface AudioFormatMap {
|
|
1393
|
+
LINEAR16: 0;
|
|
1394
|
+
MULAW8: 1;
|
|
1398
1395
|
}
|
|
1399
|
-
}
|
|
1400
1396
|
|
|
1401
|
-
|
|
1402
|
-
serializeBinary(): Uint8Array;
|
|
1403
|
-
toObject(includeInstance?: boolean): AssistantConverstationEndpointAction.AsObject;
|
|
1404
|
-
static toObject(includeInstance: boolean, msg: AssistantConverstationEndpointAction): AssistantConverstationEndpointAction.AsObject;
|
|
1405
|
-
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
1406
|
-
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
1407
|
-
static serializeBinaryToWriter(message: AssistantConverstationEndpointAction, writer: jspb.BinaryWriter): void;
|
|
1408
|
-
static deserializeBinary(bytes: Uint8Array): AssistantConverstationEndpointAction;
|
|
1409
|
-
static deserializeBinaryFromReader(message: AssistantConverstationEndpointAction, reader: jspb.BinaryReader): AssistantConverstationEndpointAction;
|
|
1397
|
+
export const AudioFormat: AudioFormatMap;
|
|
1410
1398
|
}
|
|
1411
1399
|
|
|
1412
|
-
declare
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
}
|
|
1400
|
+
declare class TextConfig extends jspb.Message {
|
|
1401
|
+
getCharset(): string;
|
|
1402
|
+
setCharset(value: string): void;
|
|
1416
1403
|
|
|
1417
|
-
declare class AssistantConversationDeviationAction extends jspb.Message {
|
|
1418
1404
|
serializeBinary(): Uint8Array;
|
|
1419
|
-
toObject(includeInstance?: boolean):
|
|
1420
|
-
static toObject(includeInstance: boolean, msg:
|
|
1405
|
+
toObject(includeInstance?: boolean): TextConfig.AsObject;
|
|
1406
|
+
static toObject(includeInstance: boolean, msg: TextConfig): TextConfig.AsObject;
|
|
1421
1407
|
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
1422
1408
|
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
1423
|
-
static serializeBinaryToWriter(message:
|
|
1424
|
-
static deserializeBinary(bytes: Uint8Array):
|
|
1425
|
-
static deserializeBinaryFromReader(message:
|
|
1409
|
+
static serializeBinaryToWriter(message: TextConfig, writer: jspb.BinaryWriter): void;
|
|
1410
|
+
static deserializeBinary(bytes: Uint8Array): TextConfig;
|
|
1411
|
+
static deserializeBinaryFromReader(message: TextConfig, reader: jspb.BinaryReader): TextConfig;
|
|
1426
1412
|
}
|
|
1427
1413
|
|
|
1428
|
-
declare namespace
|
|
1414
|
+
declare namespace TextConfig {
|
|
1429
1415
|
export type AsObject = {
|
|
1416
|
+
charset: string,
|
|
1430
1417
|
}
|
|
1431
1418
|
}
|
|
1432
1419
|
|
|
1433
|
-
declare class
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
static toObject(includeInstance: boolean, msg: AssistantConversationAssistantTransferAction): AssistantConversationAssistantTransferAction.AsObject;
|
|
1437
|
-
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
1438
|
-
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
1439
|
-
static serializeBinaryToWriter(message: AssistantConversationAssistantTransferAction, writer: jspb.BinaryWriter): void;
|
|
1440
|
-
static deserializeBinary(bytes: Uint8Array): AssistantConversationAssistantTransferAction;
|
|
1441
|
-
static deserializeBinaryFromReader(message: AssistantConversationAssistantTransferAction, reader: jspb.BinaryReader): AssistantConversationAssistantTransferAction;
|
|
1442
|
-
}
|
|
1420
|
+
declare class AssistantConversationAction extends jspb.Message {
|
|
1421
|
+
getName(): string;
|
|
1422
|
+
setName(value: string): void;
|
|
1443
1423
|
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
}
|
|
1447
|
-
}
|
|
1424
|
+
getAction(): AssistantConversationAction.ActionTypeMap[keyof AssistantConversationAction.ActionTypeMap];
|
|
1425
|
+
setAction(value: AssistantConversationAction.ActionTypeMap[keyof AssistantConversationAction.ActionTypeMap]): void;
|
|
1448
1426
|
|
|
1449
|
-
|
|
1427
|
+
getArgsMap(): jspb.Map<string, google_protobuf_any_pb.Any>;
|
|
1428
|
+
clearArgsMap(): void;
|
|
1450
1429
|
serializeBinary(): Uint8Array;
|
|
1451
|
-
toObject(includeInstance?: boolean):
|
|
1452
|
-
static toObject(includeInstance: boolean, msg:
|
|
1430
|
+
toObject(includeInstance?: boolean): AssistantConversationAction.AsObject;
|
|
1431
|
+
static toObject(includeInstance: boolean, msg: AssistantConversationAction): AssistantConversationAction.AsObject;
|
|
1453
1432
|
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
1454
1433
|
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
1455
|
-
static serializeBinaryToWriter(message:
|
|
1456
|
-
static deserializeBinary(bytes: Uint8Array):
|
|
1457
|
-
static deserializeBinaryFromReader(message:
|
|
1434
|
+
static serializeBinaryToWriter(message: AssistantConversationAction, writer: jspb.BinaryWriter): void;
|
|
1435
|
+
static deserializeBinary(bytes: Uint8Array): AssistantConversationAction;
|
|
1436
|
+
static deserializeBinaryFromReader(message: AssistantConversationAction, reader: jspb.BinaryReader): AssistantConversationAction;
|
|
1458
1437
|
}
|
|
1459
1438
|
|
|
1460
|
-
declare namespace
|
|
1439
|
+
declare namespace AssistantConversationAction {
|
|
1461
1440
|
export type AsObject = {
|
|
1441
|
+
name: string,
|
|
1442
|
+
action: AssistantConversationAction.ActionTypeMap[keyof AssistantConversationAction.ActionTypeMap],
|
|
1443
|
+
argsMap: Array<[string, google_protobuf_any_pb.Any.AsObject]>,
|
|
1444
|
+
}
|
|
1445
|
+
|
|
1446
|
+
export interface ActionTypeMap {
|
|
1447
|
+
ACTION_UNSPECIFIED: 0;
|
|
1448
|
+
KNOWLEDGE_RETRIEVAL: 1;
|
|
1449
|
+
API_REQUEST: 2;
|
|
1450
|
+
ENDPOINT_CALL: 3;
|
|
1451
|
+
PUT_ON_HOLD: 4;
|
|
1452
|
+
END_CONVERSATION: 5;
|
|
1462
1453
|
}
|
|
1454
|
+
|
|
1455
|
+
export const ActionType: ActionTypeMap;
|
|
1463
1456
|
}
|
|
1464
1457
|
|
|
1465
1458
|
declare class AssistantConversationInterruption extends jspb.Message {
|
|
@@ -1695,11 +1688,6 @@ declare class AssistantMessagingResponse extends jspb.Message {
|
|
|
1695
1688
|
getSuccess(): boolean;
|
|
1696
1689
|
setSuccess(value: boolean): void;
|
|
1697
1690
|
|
|
1698
|
-
hasError(): boolean;
|
|
1699
|
-
clearError(): void;
|
|
1700
|
-
getError(): Error | undefined;
|
|
1701
|
-
setError(value?: Error): void;
|
|
1702
|
-
|
|
1703
1691
|
hasConfiguration(): boolean;
|
|
1704
1692
|
clearConfiguration(): void;
|
|
1705
1693
|
getConfiguration(): AssistantConversationConfiguration | undefined;
|
|
@@ -1725,45 +1713,15 @@ declare class AssistantMessagingResponse extends jspb.Message {
|
|
|
1725
1713
|
getMessage(): AssistantConversationMessage | undefined;
|
|
1726
1714
|
setMessage(value?: AssistantConversationMessage): void;
|
|
1727
1715
|
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
hasKnowledgeretrievalaction(): boolean;
|
|
1739
|
-
clearKnowledgeretrievalaction(): void;
|
|
1740
|
-
getKnowledgeretrievalaction(): AssistantConverstationKnowledgeRetrievalAction | undefined;
|
|
1741
|
-
setKnowledgeretrievalaction(value?: AssistantConverstationKnowledgeRetrievalAction): void;
|
|
1742
|
-
|
|
1743
|
-
hasApirequestaction(): boolean;
|
|
1744
|
-
clearApirequestaction(): void;
|
|
1745
|
-
getApirequestaction(): AssistantConverstationApiRequestAction | undefined;
|
|
1746
|
-
setApirequestaction(value?: AssistantConverstationApiRequestAction): void;
|
|
1747
|
-
|
|
1748
|
-
hasEndpointaction(): boolean;
|
|
1749
|
-
clearEndpointaction(): void;
|
|
1750
|
-
getEndpointaction(): AssistantConverstationEndpointAction | undefined;
|
|
1751
|
-
setEndpointaction(value?: AssistantConverstationEndpointAction): void;
|
|
1752
|
-
|
|
1753
|
-
hasDeviationaction(): boolean;
|
|
1754
|
-
clearDeviationaction(): void;
|
|
1755
|
-
getDeviationaction(): AssistantConversationDeviationAction | undefined;
|
|
1756
|
-
setDeviationaction(value?: AssistantConversationDeviationAction): void;
|
|
1757
|
-
|
|
1758
|
-
hasAssistanttransferaction(): boolean;
|
|
1759
|
-
clearAssistanttransferaction(): void;
|
|
1760
|
-
getAssistanttransferaction(): AssistantConversationAssistantTransferAction | undefined;
|
|
1761
|
-
setAssistanttransferaction(value?: AssistantConversationAssistantTransferAction): void;
|
|
1762
|
-
|
|
1763
|
-
hasPhonecalltransferaction(): boolean;
|
|
1764
|
-
clearPhonecalltransferaction(): void;
|
|
1765
|
-
getPhonecalltransferaction(): AssistantConversationPhoneCallTransferAction | undefined;
|
|
1766
|
-
setPhonecalltransferaction(value?: AssistantConversationPhoneCallTransferAction): void;
|
|
1716
|
+
hasAction(): boolean;
|
|
1717
|
+
clearAction(): void;
|
|
1718
|
+
getAction(): AssistantConversationAction | undefined;
|
|
1719
|
+
setAction(value?: AssistantConversationAction): void;
|
|
1720
|
+
|
|
1721
|
+
hasError(): boolean;
|
|
1722
|
+
clearError(): void;
|
|
1723
|
+
getError(): Error | undefined;
|
|
1724
|
+
setError(value?: Error): void;
|
|
1767
1725
|
|
|
1768
1726
|
getDataCase(): AssistantMessagingResponse.DataCase;
|
|
1769
1727
|
serializeBinary(): Uint8Array;
|
|
@@ -1780,20 +1738,13 @@ declare namespace AssistantMessagingResponse {
|
|
|
1780
1738
|
export type AsObject = {
|
|
1781
1739
|
code: number,
|
|
1782
1740
|
success: boolean,
|
|
1783
|
-
error?: Error.AsObject,
|
|
1784
1741
|
configuration?: AssistantConversationConfiguration.AsObject,
|
|
1785
1742
|
interruption?: AssistantConversationInterruption.AsObject,
|
|
1786
1743
|
user?: AssistantConversationUserMessage.AsObject,
|
|
1787
1744
|
assistant?: AssistantConversationAssistantMessage.AsObject,
|
|
1788
1745
|
message?: AssistantConversationMessage.AsObject,
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
knowledgeretrievalaction?: AssistantConverstationKnowledgeRetrievalAction.AsObject,
|
|
1792
|
-
apirequestaction?: AssistantConverstationApiRequestAction.AsObject,
|
|
1793
|
-
endpointaction?: AssistantConverstationEndpointAction.AsObject,
|
|
1794
|
-
deviationaction?: AssistantConversationDeviationAction.AsObject,
|
|
1795
|
-
assistanttransferaction?: AssistantConversationAssistantTransferAction.AsObject,
|
|
1796
|
-
phonecalltransferaction?: AssistantConversationPhoneCallTransferAction.AsObject,
|
|
1746
|
+
action?: AssistantConversationAction.AsObject,
|
|
1747
|
+
error?: Error.AsObject,
|
|
1797
1748
|
}
|
|
1798
1749
|
|
|
1799
1750
|
export enum DataCase {
|
|
@@ -1803,14 +1754,8 @@ declare namespace AssistantMessagingResponse {
|
|
|
1803
1754
|
USER = 11,
|
|
1804
1755
|
ASSISTANT = 12,
|
|
1805
1756
|
MESSAGE = 13,
|
|
1806
|
-
|
|
1807
|
-
|
|
1808
|
-
KNOWLEDGERETRIEVALACTION = 16,
|
|
1809
|
-
APIREQUESTACTION = 17,
|
|
1810
|
-
ENDPOINTACTION = 18,
|
|
1811
|
-
DEVIATIONACTION = 19,
|
|
1812
|
-
ASSISTANTTRANSFERACTION = 20,
|
|
1813
|
-
PHONECALLTRANSFERACTION = 21,
|
|
1757
|
+
ACTION = 14,
|
|
1758
|
+
ERROR = 15,
|
|
1814
1759
|
}
|
|
1815
1760
|
}
|
|
1816
1761
|
|
|
@@ -2122,6 +2067,11 @@ declare class InputOptions {
|
|
|
2122
2067
|
*/
|
|
2123
2068
|
channel: Channel;
|
|
2124
2069
|
get defaultChannel(): Channel;
|
|
2070
|
+
/**
|
|
2071
|
+
* stream config
|
|
2072
|
+
* define audio codacs and sample rate. these will be directly translated to stt
|
|
2073
|
+
*/
|
|
2074
|
+
get defaultInputStreamOption(): StreamConfig;
|
|
2125
2075
|
/**
|
|
2126
2076
|
*
|
|
2127
2077
|
* @param channels
|
|
@@ -2129,11 +2079,6 @@ declare class InputOptions {
|
|
|
2129
2079
|
* @param deviceId
|
|
2130
2080
|
*/
|
|
2131
2081
|
constructor(channels: Channel[], channel?: Channel, deviceId?: string);
|
|
2132
|
-
/**
|
|
2133
|
-
*
|
|
2134
|
-
* @param device
|
|
2135
|
-
*/
|
|
2136
|
-
changeDevice(device: string): void;
|
|
2137
2082
|
}
|
|
2138
2083
|
/**
|
|
2139
2084
|
*
|
|
@@ -2151,8 +2096,7 @@ declare class OutputOptions {
|
|
|
2151
2096
|
/**
|
|
2152
2097
|
* channel for providing output
|
|
2153
2098
|
*/
|
|
2154
|
-
|
|
2155
|
-
get defaultChannel(): Channel;
|
|
2099
|
+
channel: Channel;
|
|
2156
2100
|
/**
|
|
2157
2101
|
*
|
|
2158
2102
|
* @param channels
|
|
@@ -2161,15 +2105,10 @@ declare class OutputOptions {
|
|
|
2161
2105
|
*/
|
|
2162
2106
|
constructor(channels: Channel[], channel?: Channel, deviceId?: string);
|
|
2163
2107
|
/**
|
|
2164
|
-
*
|
|
2165
|
-
*
|
|
2166
|
-
*/
|
|
2167
|
-
changeChannel(channel: Channel): void;
|
|
2168
|
-
/**
|
|
2169
|
-
*
|
|
2170
|
-
* @param device
|
|
2108
|
+
* stream config
|
|
2109
|
+
* define audio codacs and sample rate. these will be directly translated to tts
|
|
2171
2110
|
*/
|
|
2172
|
-
|
|
2111
|
+
get defaultOutputStreamOption(): StreamConfig;
|
|
2173
2112
|
}
|
|
2174
2113
|
/**
|
|
2175
2114
|
* Represents the configuration settings for an agent.
|
|
@@ -2627,6 +2566,9 @@ declare class AssistantWebpluginDeployment extends jspb.Message {
|
|
|
2627
2566
|
getIdealtimeoutmessage(): string;
|
|
2628
2567
|
setIdealtimeoutmessage(value: string): void;
|
|
2629
2568
|
|
|
2569
|
+
getIdealtimeoutbackoff(): string;
|
|
2570
|
+
setIdealtimeoutbackoff(value: string): void;
|
|
2571
|
+
|
|
2630
2572
|
serializeBinary(): Uint8Array;
|
|
2631
2573
|
toObject(includeInstance?: boolean): AssistantWebpluginDeployment.AsObject;
|
|
2632
2574
|
static toObject(includeInstance: boolean, msg: AssistantWebpluginDeployment): AssistantWebpluginDeployment.AsObject;
|
|
@@ -2657,6 +2599,7 @@ declare namespace AssistantWebpluginDeployment {
|
|
|
2657
2599
|
maxsessionduration: string,
|
|
2658
2600
|
idealtimeout: string,
|
|
2659
2601
|
idealtimeoutmessage: string,
|
|
2602
|
+
idealtimeoutbackoff: string,
|
|
2660
2603
|
}
|
|
2661
2604
|
}
|
|
2662
2605
|
|
|
@@ -2717,6 +2660,9 @@ declare class AssistantPhoneDeployment extends jspb.Message {
|
|
|
2717
2660
|
getIdealtimeoutmessage(): string;
|
|
2718
2661
|
setIdealtimeoutmessage(value: string): void;
|
|
2719
2662
|
|
|
2663
|
+
getIdealtimeoutbackoff(): string;
|
|
2664
|
+
setIdealtimeoutbackoff(value: string): void;
|
|
2665
|
+
|
|
2720
2666
|
serializeBinary(): Uint8Array;
|
|
2721
2667
|
toObject(includeInstance?: boolean): AssistantPhoneDeployment.AsObject;
|
|
2722
2668
|
static toObject(includeInstance: boolean, msg: AssistantPhoneDeployment): AssistantPhoneDeployment.AsObject;
|
|
@@ -2743,6 +2689,7 @@ declare namespace AssistantPhoneDeployment {
|
|
|
2743
2689
|
maxsessionduration: string,
|
|
2744
2690
|
idealtimeout: string,
|
|
2745
2691
|
idealtimeoutmessage: string,
|
|
2692
|
+
idealtimeoutbackoff: string,
|
|
2746
2693
|
}
|
|
2747
2694
|
}
|
|
2748
2695
|
|
|
@@ -2806,6 +2753,9 @@ declare class AssistantWhatsappDeployment extends jspb.Message {
|
|
|
2806
2753
|
getIdealtimeoutmessage(): string;
|
|
2807
2754
|
setIdealtimeoutmessage(value: string): void;
|
|
2808
2755
|
|
|
2756
|
+
getIdealtimeoutbackoff(): string;
|
|
2757
|
+
setIdealtimeoutbackoff(value: string): void;
|
|
2758
|
+
|
|
2809
2759
|
serializeBinary(): Uint8Array;
|
|
2810
2760
|
toObject(includeInstance?: boolean): AssistantWhatsappDeployment.AsObject;
|
|
2811
2761
|
static toObject(includeInstance: boolean, msg: AssistantWhatsappDeployment): AssistantWhatsappDeployment.AsObject;
|
|
@@ -2833,6 +2783,7 @@ declare namespace AssistantWhatsappDeployment {
|
|
|
2833
2783
|
maxsessionduration: string,
|
|
2834
2784
|
idealtimeout: string,
|
|
2835
2785
|
idealtimeoutmessage: string,
|
|
2786
|
+
idealtimeoutbackoff: string,
|
|
2836
2787
|
}
|
|
2837
2788
|
}
|
|
2838
2789
|
|
|
@@ -2888,6 +2839,9 @@ declare class AssistantDebuggerDeployment extends jspb.Message {
|
|
|
2888
2839
|
getIdealtimeoutmessage(): string;
|
|
2889
2840
|
setIdealtimeoutmessage(value: string): void;
|
|
2890
2841
|
|
|
2842
|
+
getIdealtimeoutbackoff(): string;
|
|
2843
|
+
setIdealtimeoutbackoff(value: string): void;
|
|
2844
|
+
|
|
2891
2845
|
serializeBinary(): Uint8Array;
|
|
2892
2846
|
toObject(includeInstance?: boolean): AssistantDebuggerDeployment.AsObject;
|
|
2893
2847
|
static toObject(includeInstance: boolean, msg: AssistantDebuggerDeployment): AssistantDebuggerDeployment.AsObject;
|
|
@@ -2913,6 +2867,7 @@ declare namespace AssistantDebuggerDeployment {
|
|
|
2913
2867
|
maxsessionduration: string,
|
|
2914
2868
|
idealtimeout: string,
|
|
2915
2869
|
idealtimeoutmessage: string,
|
|
2870
|
+
idealtimeoutbackoff: string,
|
|
2916
2871
|
}
|
|
2917
2872
|
}
|
|
2918
2873
|
|
|
@@ -2965,6 +2920,9 @@ declare class AssistantApiDeployment extends jspb.Message {
|
|
|
2965
2920
|
getIdealtimeoutmessage(): string;
|
|
2966
2921
|
setIdealtimeoutmessage(value: string): void;
|
|
2967
2922
|
|
|
2923
|
+
getIdealtimeoutbackoff(): string;
|
|
2924
|
+
setIdealtimeoutbackoff(value: string): void;
|
|
2925
|
+
|
|
2968
2926
|
serializeBinary(): Uint8Array;
|
|
2969
2927
|
toObject(includeInstance?: boolean): AssistantApiDeployment.AsObject;
|
|
2970
2928
|
static toObject(includeInstance: boolean, msg: AssistantApiDeployment): AssistantApiDeployment.AsObject;
|
|
@@ -2989,6 +2947,7 @@ declare namespace AssistantApiDeployment {
|
|
|
2989
2947
|
maxsessionduration: string,
|
|
2990
2948
|
idealtimeout: string,
|
|
2991
2949
|
idealtimeoutmessage: string,
|
|
2950
|
+
idealtimeoutbackoff: string,
|
|
2992
2951
|
}
|
|
2993
2952
|
}
|
|
2994
2953
|
|
|
@@ -14168,10 +14127,16 @@ interface ConversationAssistantMessage extends AssistantConversationAssistantMes
|
|
|
14168
14127
|
declare class ConversationAssistantMessage {
|
|
14169
14128
|
constructor(config?: AssistantConversationAssistantMessage);
|
|
14170
14129
|
}
|
|
14130
|
+
/**
|
|
14131
|
+
* user friendly interface for message
|
|
14132
|
+
*/
|
|
14171
14133
|
interface ConversationMessage extends AssistantConversationMessage.AsObject {
|
|
14172
14134
|
userMessage?: string;
|
|
14173
14135
|
systemMessage?: string;
|
|
14174
14136
|
}
|
|
14137
|
+
/**
|
|
14138
|
+
*
|
|
14139
|
+
*/
|
|
14175
14140
|
declare class ConversationMessage {
|
|
14176
14141
|
constructor(config?: AssistantConversationMessage);
|
|
14177
14142
|
}
|
|
@@ -14184,7 +14149,7 @@ interface AgentCallback {
|
|
|
14184
14149
|
onAssistantMessage?: (args: ConversationAssistantMessage | undefined) => void;
|
|
14185
14150
|
onUserMessage?: (args: ConversationUserMessage | undefined) => void;
|
|
14186
14151
|
onMessage?: (arg: ConversationMessage | undefined) => void;
|
|
14187
|
-
onAction?: (arg?:
|
|
14152
|
+
onAction?: (arg?: AssistantConversationAction.AsObject) => void;
|
|
14188
14153
|
}
|
|
14189
14154
|
|
|
14190
14155
|
declare enum Feedback {
|
|
@@ -14534,11 +14499,6 @@ declare class VoiceAgent extends Agent {
|
|
|
14534
14499
|
private volume;
|
|
14535
14500
|
private inputFrequencyData?;
|
|
14536
14501
|
private outputFrequencyData?;
|
|
14537
|
-
/**
|
|
14538
|
-
* input media device id
|
|
14539
|
-
*/
|
|
14540
|
-
inputChannel: Channel;
|
|
14541
|
-
outputChannel: Channel;
|
|
14542
14502
|
/**
|
|
14543
14503
|
* @param options
|
|
14544
14504
|
*/
|
|
@@ -14614,33 +14574,36 @@ declare class VoiceAgent extends Agent {
|
|
|
14614
14574
|
*/
|
|
14615
14575
|
setInputMediaDevice: (deviceId: string) => Promise<void>;
|
|
14616
14576
|
get inputMediaDevice(): string | undefined;
|
|
14617
|
-
/**
|
|
14618
|
-
*
|
|
14619
|
-
* @param input
|
|
14620
|
-
* @returns
|
|
14621
|
-
*/
|
|
14622
14577
|
setInputChannel: (input: Channel) => Promise<void>;
|
|
14623
14578
|
/**
|
|
14624
14579
|
*
|
|
14625
14580
|
* @param interruptionData
|
|
14626
14581
|
*/
|
|
14627
14582
|
private onHandleInterruption;
|
|
14583
|
+
/**
|
|
14584
|
+
* on handle user content
|
|
14585
|
+
* @param userContent
|
|
14586
|
+
*/
|
|
14628
14587
|
private onHandleUser;
|
|
14588
|
+
/**
|
|
14589
|
+
* on handle assistant content
|
|
14590
|
+
* @param systemContent
|
|
14591
|
+
*/
|
|
14629
14592
|
private onHandleAssistant;
|
|
14630
14593
|
/**
|
|
14631
|
-
*
|
|
14594
|
+
* streaming response from the server
|
|
14632
14595
|
* @param response
|
|
14633
14596
|
* @returns
|
|
14634
14597
|
*/
|
|
14635
14598
|
onRecieve: (response: AssistantMessagingResponse) => Promise<void>;
|
|
14636
14599
|
onCallback: (response: AssistantMessagingResponse) => Promise<void>;
|
|
14637
14600
|
/**
|
|
14638
|
-
*
|
|
14601
|
+
* to get byte frequency data from input
|
|
14639
14602
|
* @returns
|
|
14640
14603
|
*/
|
|
14641
14604
|
getInputByteFrequencyData: () => Uint8Array | undefined;
|
|
14642
14605
|
/**
|
|
14643
|
-
*
|
|
14606
|
+
* output byte frequency data
|
|
14644
14607
|
* @returns
|
|
14645
14608
|
*/
|
|
14646
14609
|
getOutputByteFrequencyData: () => Uint8Array | undefined;
|