@rapidaai/react 1.1.46 → 1.1.48
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-CKIZ6YUP.mjs → chunk-K6VHOUSP.mjs} +431 -518
- package/dist/chunk-K6VHOUSP.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 +430 -517
- 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-CsIo3daE.d.mts} +127 -184
- package/dist/{device-selector-CoAQBhd-.d.ts → device-selector-CsIo3daE.d.ts} +127 -184
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +461 -545
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +32 -29
- package/dist/index.mjs.map +1 -1
- package/package.json +5 -1
- package/dist/chunk-CKIZ6YUP.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
|
-
|
|
1385
|
-
declare class AssistantConverstationApiRequestAction extends jspb.Message {
|
|
1386
|
-
serializeBinary(): Uint8Array;
|
|
1387
|
-
toObject(includeInstance?: boolean): AssistantConverstationApiRequestAction.AsObject;
|
|
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
1391
|
|
|
1396
|
-
|
|
1397
|
-
|
|
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.
|
|
@@ -14168,10 +14107,16 @@ interface ConversationAssistantMessage extends AssistantConversationAssistantMes
|
|
|
14168
14107
|
declare class ConversationAssistantMessage {
|
|
14169
14108
|
constructor(config?: AssistantConversationAssistantMessage);
|
|
14170
14109
|
}
|
|
14110
|
+
/**
|
|
14111
|
+
* user friendly interface for message
|
|
14112
|
+
*/
|
|
14171
14113
|
interface ConversationMessage extends AssistantConversationMessage.AsObject {
|
|
14172
14114
|
userMessage?: string;
|
|
14173
14115
|
systemMessage?: string;
|
|
14174
14116
|
}
|
|
14117
|
+
/**
|
|
14118
|
+
*
|
|
14119
|
+
*/
|
|
14175
14120
|
declare class ConversationMessage {
|
|
14176
14121
|
constructor(config?: AssistantConversationMessage);
|
|
14177
14122
|
}
|
|
@@ -14184,7 +14129,7 @@ interface AgentCallback {
|
|
|
14184
14129
|
onAssistantMessage?: (args: ConversationAssistantMessage | undefined) => void;
|
|
14185
14130
|
onUserMessage?: (args: ConversationUserMessage | undefined) => void;
|
|
14186
14131
|
onMessage?: (arg: ConversationMessage | undefined) => void;
|
|
14187
|
-
onAction?: (arg?:
|
|
14132
|
+
onAction?: (arg?: AssistantConversationAction.AsObject) => void;
|
|
14188
14133
|
}
|
|
14189
14134
|
|
|
14190
14135
|
declare enum Feedback {
|
|
@@ -14534,11 +14479,6 @@ declare class VoiceAgent extends Agent {
|
|
|
14534
14479
|
private volume;
|
|
14535
14480
|
private inputFrequencyData?;
|
|
14536
14481
|
private outputFrequencyData?;
|
|
14537
|
-
/**
|
|
14538
|
-
* input media device id
|
|
14539
|
-
*/
|
|
14540
|
-
inputChannel: Channel;
|
|
14541
|
-
outputChannel: Channel;
|
|
14542
14482
|
/**
|
|
14543
14483
|
* @param options
|
|
14544
14484
|
*/
|
|
@@ -14614,33 +14554,36 @@ declare class VoiceAgent extends Agent {
|
|
|
14614
14554
|
*/
|
|
14615
14555
|
setInputMediaDevice: (deviceId: string) => Promise<void>;
|
|
14616
14556
|
get inputMediaDevice(): string | undefined;
|
|
14617
|
-
/**
|
|
14618
|
-
*
|
|
14619
|
-
* @param input
|
|
14620
|
-
* @returns
|
|
14621
|
-
*/
|
|
14622
14557
|
setInputChannel: (input: Channel) => Promise<void>;
|
|
14623
14558
|
/**
|
|
14624
14559
|
*
|
|
14625
14560
|
* @param interruptionData
|
|
14626
14561
|
*/
|
|
14627
14562
|
private onHandleInterruption;
|
|
14563
|
+
/**
|
|
14564
|
+
* on handle user content
|
|
14565
|
+
* @param userContent
|
|
14566
|
+
*/
|
|
14628
14567
|
private onHandleUser;
|
|
14568
|
+
/**
|
|
14569
|
+
* on handle assistant content
|
|
14570
|
+
* @param systemContent
|
|
14571
|
+
*/
|
|
14629
14572
|
private onHandleAssistant;
|
|
14630
14573
|
/**
|
|
14631
|
-
*
|
|
14574
|
+
* streaming response from the server
|
|
14632
14575
|
* @param response
|
|
14633
14576
|
* @returns
|
|
14634
14577
|
*/
|
|
14635
14578
|
onRecieve: (response: AssistantMessagingResponse) => Promise<void>;
|
|
14636
14579
|
onCallback: (response: AssistantMessagingResponse) => Promise<void>;
|
|
14637
14580
|
/**
|
|
14638
|
-
*
|
|
14581
|
+
* to get byte frequency data from input
|
|
14639
14582
|
* @returns
|
|
14640
14583
|
*/
|
|
14641
14584
|
getInputByteFrequencyData: () => Uint8Array | undefined;
|
|
14642
14585
|
/**
|
|
14643
|
-
*
|
|
14586
|
+
* output byte frequency data
|
|
14644
14587
|
* @returns
|
|
14645
14588
|
*/
|
|
14646
14589
|
getOutputByteFrequencyData: () => Uint8Array | undefined;
|