telnyx 3.3.2 → 3.4.0
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/CHANGELOG.md +23 -0
- package/client.d.mts +6 -6
- package/client.d.mts.map +1 -1
- package/client.d.ts +6 -6
- package/client.d.ts.map +1 -1
- package/client.js.map +1 -1
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/calls/actions.d.mts +183 -6
- package/resources/calls/actions.d.mts.map +1 -1
- package/resources/calls/actions.d.ts +183 -6
- package/resources/calls/actions.d.ts.map +1 -1
- package/resources/calls/actions.js.map +1 -1
- package/resources/calls/actions.mjs.map +1 -1
- package/resources/index.d.mts +3 -3
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +3 -3
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/legacy/reporting/batch-detail-records/batch-detail-records.d.mts +41 -6
- package/resources/legacy/reporting/batch-detail-records/batch-detail-records.d.mts.map +1 -1
- package/resources/legacy/reporting/batch-detail-records/batch-detail-records.d.ts +41 -6
- package/resources/legacy/reporting/batch-detail-records/batch-detail-records.d.ts.map +1 -1
- package/resources/legacy/reporting/batch-detail-records/batch-detail-records.js.map +1 -1
- package/resources/legacy/reporting/batch-detail-records/batch-detail-records.mjs.map +1 -1
- package/resources/legacy/reporting/batch-detail-records/index.d.mts +4 -4
- package/resources/legacy/reporting/batch-detail-records/index.d.mts.map +1 -1
- package/resources/legacy/reporting/batch-detail-records/index.d.ts +4 -4
- package/resources/legacy/reporting/batch-detail-records/index.d.ts.map +1 -1
- package/resources/legacy/reporting/batch-detail-records/index.js.map +1 -1
- package/resources/legacy/reporting/batch-detail-records/index.mjs.map +1 -1
- package/resources/legacy/reporting/batch-detail-records/messaging.d.mts +29 -280
- package/resources/legacy/reporting/batch-detail-records/messaging.d.mts.map +1 -1
- package/resources/legacy/reporting/batch-detail-records/messaging.d.ts +29 -280
- package/resources/legacy/reporting/batch-detail-records/messaging.d.ts.map +1 -1
- package/resources/legacy/reporting/batch-detail-records/messaging.js.map +1 -1
- package/resources/legacy/reporting/batch-detail-records/messaging.mjs.map +1 -1
- package/resources/legacy/reporting/batch-detail-records/speech-to-text.d.mts +20 -73
- package/resources/legacy/reporting/batch-detail-records/speech-to-text.d.mts.map +1 -1
- package/resources/legacy/reporting/batch-detail-records/speech-to-text.d.ts +20 -73
- package/resources/legacy/reporting/batch-detail-records/speech-to-text.d.ts.map +1 -1
- package/resources/legacy/reporting/batch-detail-records/voice.d.mts +75 -473
- package/resources/legacy/reporting/batch-detail-records/voice.d.mts.map +1 -1
- package/resources/legacy/reporting/batch-detail-records/voice.d.ts +75 -473
- package/resources/legacy/reporting/batch-detail-records/voice.d.ts.map +1 -1
- package/resources/legacy/reporting/batch-detail-records/voice.js.map +1 -1
- package/resources/legacy/reporting/batch-detail-records/voice.mjs.map +1 -1
- package/resources/legacy/reporting/index.d.mts +1 -1
- package/resources/legacy/reporting/index.d.mts.map +1 -1
- package/resources/legacy/reporting/index.d.ts +1 -1
- package/resources/legacy/reporting/index.d.ts.map +1 -1
- package/resources/legacy/reporting/index.js.map +1 -1
- package/resources/legacy/reporting/index.mjs.map +1 -1
- package/resources/legacy/reporting/reporting.d.mts +2 -2
- package/resources/legacy/reporting/reporting.d.mts.map +1 -1
- package/resources/legacy/reporting/reporting.d.ts +2 -2
- package/resources/legacy/reporting/reporting.d.ts.map +1 -1
- package/resources/legacy/reporting/reporting.js.map +1 -1
- package/resources/legacy/reporting/reporting.mjs.map +1 -1
- package/resources/legacy/reporting/usage-reports/index.d.mts +2 -2
- package/resources/legacy/reporting/usage-reports/index.d.mts.map +1 -1
- package/resources/legacy/reporting/usage-reports/index.d.ts +2 -2
- package/resources/legacy/reporting/usage-reports/index.d.ts.map +1 -1
- package/resources/legacy/reporting/usage-reports/index.js.map +1 -1
- package/resources/legacy/reporting/usage-reports/index.mjs.map +1 -1
- package/resources/legacy/reporting/usage-reports/messaging.d.mts +31 -124
- package/resources/legacy/reporting/usage-reports/messaging.d.mts.map +1 -1
- package/resources/legacy/reporting/usage-reports/messaging.d.ts +31 -124
- package/resources/legacy/reporting/usage-reports/messaging.d.ts.map +1 -1
- package/resources/legacy/reporting/usage-reports/usage-reports.d.mts +4 -4
- package/resources/legacy/reporting/usage-reports/usage-reports.d.mts.map +1 -1
- package/resources/legacy/reporting/usage-reports/usage-reports.d.ts +4 -4
- package/resources/legacy/reporting/usage-reports/usage-reports.d.ts.map +1 -1
- package/resources/legacy/reporting/usage-reports/usage-reports.js.map +1 -1
- package/resources/legacy/reporting/usage-reports/usage-reports.mjs.map +1 -1
- package/resources/legacy/reporting/usage-reports/voice.d.mts +32 -128
- package/resources/legacy/reporting/usage-reports/voice.d.mts.map +1 -1
- package/resources/legacy/reporting/usage-reports/voice.d.ts +32 -128
- package/resources/legacy/reporting/usage-reports/voice.d.ts.map +1 -1
- package/resources/oauth-clients.d.mts +71 -275
- package/resources/oauth-clients.d.mts.map +1 -1
- package/resources/oauth-clients.d.ts +71 -275
- package/resources/oauth-clients.d.ts.map +1 -1
- package/resources/oauth-grants.d.mts +30 -86
- package/resources/oauth-grants.d.mts.map +1 -1
- package/resources/oauth-grants.d.ts +30 -86
- package/resources/oauth-grants.d.ts.map +1 -1
- package/resources/verify-profiles.d.mts +8 -22
- package/resources/verify-profiles.d.mts.map +1 -1
- package/resources/verify-profiles.d.ts +8 -22
- package/resources/verify-profiles.d.ts.map +1 -1
- package/src/client.ts +6 -0
- package/src/resources/calls/actions.ts +555 -6
- package/src/resources/index.ts +3 -0
- package/src/resources/legacy/reporting/batch-detail-records/batch-detail-records.ts +49 -0
- package/src/resources/legacy/reporting/batch-detail-records/index.ts +4 -1
- package/src/resources/legacy/reporting/batch-detail-records/messaging.ts +30 -357
- package/src/resources/legacy/reporting/batch-detail-records/speech-to-text.ts +21 -94
- package/src/resources/legacy/reporting/batch-detail-records/voice.ts +89 -572
- package/src/resources/legacy/reporting/index.ts +1 -1
- package/src/resources/legacy/reporting/reporting.ts +2 -2
- package/src/resources/legacy/reporting/usage-reports/index.ts +2 -0
- package/src/resources/legacy/reporting/usage-reports/messaging.ts +31 -159
- package/src/resources/legacy/reporting/usage-reports/usage-reports.ts +4 -0
- package/src/resources/legacy/reporting/usage-reports/voice.ts +32 -163
- package/src/resources/oauth-clients.ts +72 -323
- package/src/resources/oauth-grants.ts +31 -98
- package/src/resources/verify-profiles.ts +10 -27
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../../core/resource';
|
|
4
|
+
import * as ActionsAPI from './actions';
|
|
4
5
|
import * as CallsAPI from './calls';
|
|
5
6
|
import * as AssistantsAPI from '../ai/assistants/assistants';
|
|
6
7
|
import { APIPromise } from '../../core/api-promise';
|
|
@@ -1261,11 +1262,17 @@ export interface TranscriptionStartRequest {
|
|
|
1261
1262
|
command_id?: string;
|
|
1262
1263
|
|
|
1263
1264
|
/**
|
|
1264
|
-
* Engine to use for speech recognition. `A` - `Google`, `B` -
|
|
1265
|
+
* Engine to use for speech recognition. Legacy values `A` - `Google`, `B` -
|
|
1266
|
+
* `Telnyx` are supported for backward compatibility.
|
|
1265
1267
|
*/
|
|
1266
|
-
transcription_engine?: 'A' | 'B';
|
|
1268
|
+
transcription_engine?: 'Google' | 'Telnyx' | 'Deepgram' | 'A' | 'B';
|
|
1267
1269
|
|
|
1268
|
-
transcription_engine_config?:
|
|
1270
|
+
transcription_engine_config?:
|
|
1271
|
+
| TranscriptionStartRequest.TranscriptionEngineGoogleConfig
|
|
1272
|
+
| TranscriptionStartRequest.TranscriptionEngineTelnyxConfig
|
|
1273
|
+
| TranscriptionStartRequest.TranscriptionEngineDeepgramConfig
|
|
1274
|
+
| TranscriptionEngineAConfig
|
|
1275
|
+
| TranscriptionEngineBConfig;
|
|
1269
1276
|
|
|
1270
1277
|
/**
|
|
1271
1278
|
* Indicates which leg of the call will be transcribed. Use `inbound` for the leg
|
|
@@ -1275,6 +1282,274 @@ export interface TranscriptionStartRequest {
|
|
|
1275
1282
|
transcription_tracks?: string;
|
|
1276
1283
|
}
|
|
1277
1284
|
|
|
1285
|
+
export namespace TranscriptionStartRequest {
|
|
1286
|
+
export interface TranscriptionEngineGoogleConfig {
|
|
1287
|
+
/**
|
|
1288
|
+
* Enables speaker diarization.
|
|
1289
|
+
*/
|
|
1290
|
+
enable_speaker_diarization?: boolean;
|
|
1291
|
+
|
|
1292
|
+
/**
|
|
1293
|
+
* Hints to improve transcription accuracy.
|
|
1294
|
+
*/
|
|
1295
|
+
hints?: Array<string>;
|
|
1296
|
+
|
|
1297
|
+
/**
|
|
1298
|
+
* Whether to send also interim results. If set to false, only final results will
|
|
1299
|
+
* be sent.
|
|
1300
|
+
*/
|
|
1301
|
+
interim_results?: boolean;
|
|
1302
|
+
|
|
1303
|
+
/**
|
|
1304
|
+
* Language to use for speech recognition
|
|
1305
|
+
*/
|
|
1306
|
+
language?: ActionsAPI.GoogleTranscriptionLanguage;
|
|
1307
|
+
|
|
1308
|
+
/**
|
|
1309
|
+
* Defines maximum number of speakers in the conversation.
|
|
1310
|
+
*/
|
|
1311
|
+
max_speaker_count?: number;
|
|
1312
|
+
|
|
1313
|
+
/**
|
|
1314
|
+
* Defines minimum number of speakers in the conversation.
|
|
1315
|
+
*/
|
|
1316
|
+
min_speaker_count?: number;
|
|
1317
|
+
|
|
1318
|
+
/**
|
|
1319
|
+
* The model to use for transcription.
|
|
1320
|
+
*/
|
|
1321
|
+
model?:
|
|
1322
|
+
| 'latest_long'
|
|
1323
|
+
| 'latest_short'
|
|
1324
|
+
| 'command_and_search'
|
|
1325
|
+
| 'phone_call'
|
|
1326
|
+
| 'video'
|
|
1327
|
+
| 'default'
|
|
1328
|
+
| 'medical_conversation'
|
|
1329
|
+
| 'medical_dictation';
|
|
1330
|
+
|
|
1331
|
+
/**
|
|
1332
|
+
* Enables profanity_filter.
|
|
1333
|
+
*/
|
|
1334
|
+
profanity_filter?: boolean;
|
|
1335
|
+
|
|
1336
|
+
/**
|
|
1337
|
+
* Speech context to improve transcription accuracy.
|
|
1338
|
+
*/
|
|
1339
|
+
speech_context?: Array<TranscriptionEngineGoogleConfig.SpeechContext>;
|
|
1340
|
+
|
|
1341
|
+
/**
|
|
1342
|
+
* Engine identifier for Google transcription service
|
|
1343
|
+
*/
|
|
1344
|
+
transcription_engine?: 'Google';
|
|
1345
|
+
|
|
1346
|
+
/**
|
|
1347
|
+
* Enables enhanced transcription, this works for models `phone_call` and `video`.
|
|
1348
|
+
*/
|
|
1349
|
+
use_enhanced?: boolean;
|
|
1350
|
+
}
|
|
1351
|
+
|
|
1352
|
+
export namespace TranscriptionEngineGoogleConfig {
|
|
1353
|
+
export interface SpeechContext {
|
|
1354
|
+
/**
|
|
1355
|
+
* Boost factor for the speech context.
|
|
1356
|
+
*/
|
|
1357
|
+
boost?: number;
|
|
1358
|
+
|
|
1359
|
+
phrases?: Array<string>;
|
|
1360
|
+
}
|
|
1361
|
+
}
|
|
1362
|
+
|
|
1363
|
+
export interface TranscriptionEngineTelnyxConfig {
|
|
1364
|
+
/**
|
|
1365
|
+
* Language to use for speech recognition
|
|
1366
|
+
*/
|
|
1367
|
+
language?:
|
|
1368
|
+
| 'en'
|
|
1369
|
+
| 'zh'
|
|
1370
|
+
| 'de'
|
|
1371
|
+
| 'es'
|
|
1372
|
+
| 'ru'
|
|
1373
|
+
| 'ko'
|
|
1374
|
+
| 'fr'
|
|
1375
|
+
| 'ja'
|
|
1376
|
+
| 'pt'
|
|
1377
|
+
| 'tr'
|
|
1378
|
+
| 'pl'
|
|
1379
|
+
| 'ca'
|
|
1380
|
+
| 'nl'
|
|
1381
|
+
| 'ar'
|
|
1382
|
+
| 'sv'
|
|
1383
|
+
| 'it'
|
|
1384
|
+
| 'id'
|
|
1385
|
+
| 'hi'
|
|
1386
|
+
| 'fi'
|
|
1387
|
+
| 'vi'
|
|
1388
|
+
| 'he'
|
|
1389
|
+
| 'uk'
|
|
1390
|
+
| 'el'
|
|
1391
|
+
| 'ms'
|
|
1392
|
+
| 'cs'
|
|
1393
|
+
| 'ro'
|
|
1394
|
+
| 'da'
|
|
1395
|
+
| 'hu'
|
|
1396
|
+
| 'ta'
|
|
1397
|
+
| 'no'
|
|
1398
|
+
| 'th'
|
|
1399
|
+
| 'ur'
|
|
1400
|
+
| 'hr'
|
|
1401
|
+
| 'bg'
|
|
1402
|
+
| 'lt'
|
|
1403
|
+
| 'la'
|
|
1404
|
+
| 'mi'
|
|
1405
|
+
| 'ml'
|
|
1406
|
+
| 'cy'
|
|
1407
|
+
| 'sk'
|
|
1408
|
+
| 'te'
|
|
1409
|
+
| 'fa'
|
|
1410
|
+
| 'lv'
|
|
1411
|
+
| 'bn'
|
|
1412
|
+
| 'sr'
|
|
1413
|
+
| 'az'
|
|
1414
|
+
| 'sl'
|
|
1415
|
+
| 'kn'
|
|
1416
|
+
| 'et'
|
|
1417
|
+
| 'mk'
|
|
1418
|
+
| 'br'
|
|
1419
|
+
| 'eu'
|
|
1420
|
+
| 'is'
|
|
1421
|
+
| 'hy'
|
|
1422
|
+
| 'ne'
|
|
1423
|
+
| 'mn'
|
|
1424
|
+
| 'bs'
|
|
1425
|
+
| 'kk'
|
|
1426
|
+
| 'sq'
|
|
1427
|
+
| 'sw'
|
|
1428
|
+
| 'gl'
|
|
1429
|
+
| 'mr'
|
|
1430
|
+
| 'pa'
|
|
1431
|
+
| 'si'
|
|
1432
|
+
| 'km'
|
|
1433
|
+
| 'sn'
|
|
1434
|
+
| 'yo'
|
|
1435
|
+
| 'so'
|
|
1436
|
+
| 'af'
|
|
1437
|
+
| 'oc'
|
|
1438
|
+
| 'ka'
|
|
1439
|
+
| 'be'
|
|
1440
|
+
| 'tg'
|
|
1441
|
+
| 'sd'
|
|
1442
|
+
| 'gu'
|
|
1443
|
+
| 'am'
|
|
1444
|
+
| 'yi'
|
|
1445
|
+
| 'lo'
|
|
1446
|
+
| 'uz'
|
|
1447
|
+
| 'fo'
|
|
1448
|
+
| 'ht'
|
|
1449
|
+
| 'ps'
|
|
1450
|
+
| 'tk'
|
|
1451
|
+
| 'nn'
|
|
1452
|
+
| 'mt'
|
|
1453
|
+
| 'sa'
|
|
1454
|
+
| 'lb'
|
|
1455
|
+
| 'my'
|
|
1456
|
+
| 'bo'
|
|
1457
|
+
| 'tl'
|
|
1458
|
+
| 'mg'
|
|
1459
|
+
| 'as'
|
|
1460
|
+
| 'tt'
|
|
1461
|
+
| 'haw'
|
|
1462
|
+
| 'ln'
|
|
1463
|
+
| 'ha'
|
|
1464
|
+
| 'ba'
|
|
1465
|
+
| 'jw'
|
|
1466
|
+
| 'su'
|
|
1467
|
+
| 'auto_detect';
|
|
1468
|
+
|
|
1469
|
+
/**
|
|
1470
|
+
* Engine identifier for Telnyx transcription service
|
|
1471
|
+
*/
|
|
1472
|
+
transcription_engine?: 'Telnyx';
|
|
1473
|
+
|
|
1474
|
+
/**
|
|
1475
|
+
* The model to use for transcription.
|
|
1476
|
+
*/
|
|
1477
|
+
transcription_model?: 'openai/whisper-tiny' | 'openai/whisper-large-v3-turbo';
|
|
1478
|
+
}
|
|
1479
|
+
|
|
1480
|
+
export interface TranscriptionEngineDeepgramConfig {
|
|
1481
|
+
/**
|
|
1482
|
+
* Engine identifier for Deepgram transcription service
|
|
1483
|
+
*/
|
|
1484
|
+
transcription_engine: 'Deepgram';
|
|
1485
|
+
|
|
1486
|
+
/**
|
|
1487
|
+
* The model to use for transcription.
|
|
1488
|
+
*/
|
|
1489
|
+
transcription_model: 'deepgram/nova-2' | 'deepgram/nova-3';
|
|
1490
|
+
|
|
1491
|
+
/**
|
|
1492
|
+
* Language to use for speech recognition. Available languages depend on the
|
|
1493
|
+
* selected model.
|
|
1494
|
+
*/
|
|
1495
|
+
language?:
|
|
1496
|
+
| 'bg'
|
|
1497
|
+
| 'ca'
|
|
1498
|
+
| 'zh'
|
|
1499
|
+
| 'zh-CN'
|
|
1500
|
+
| 'zh-Hans'
|
|
1501
|
+
| 'zh-TW'
|
|
1502
|
+
| 'zh-Hant'
|
|
1503
|
+
| 'zh-HK'
|
|
1504
|
+
| 'cs'
|
|
1505
|
+
| 'da'
|
|
1506
|
+
| 'da-DK'
|
|
1507
|
+
| 'nl'
|
|
1508
|
+
| 'en'
|
|
1509
|
+
| 'en-US'
|
|
1510
|
+
| 'en-AU'
|
|
1511
|
+
| 'en-GB'
|
|
1512
|
+
| 'en-NZ'
|
|
1513
|
+
| 'en-IN'
|
|
1514
|
+
| 'et'
|
|
1515
|
+
| 'fi'
|
|
1516
|
+
| 'nl-BE'
|
|
1517
|
+
| 'fr'
|
|
1518
|
+
| 'fr-CA'
|
|
1519
|
+
| 'de'
|
|
1520
|
+
| 'de-CH'
|
|
1521
|
+
| 'el'
|
|
1522
|
+
| 'hi'
|
|
1523
|
+
| 'hu'
|
|
1524
|
+
| 'id'
|
|
1525
|
+
| 'it'
|
|
1526
|
+
| 'ja'
|
|
1527
|
+
| 'ko'
|
|
1528
|
+
| 'ko-KR'
|
|
1529
|
+
| 'lv'
|
|
1530
|
+
| 'lt'
|
|
1531
|
+
| 'ms'
|
|
1532
|
+
| 'no'
|
|
1533
|
+
| 'pl'
|
|
1534
|
+
| 'pt'
|
|
1535
|
+
| 'pt-BR'
|
|
1536
|
+
| 'pt-PT'
|
|
1537
|
+
| 'ro'
|
|
1538
|
+
| 'ru'
|
|
1539
|
+
| 'sk'
|
|
1540
|
+
| 'es'
|
|
1541
|
+
| 'es-419'
|
|
1542
|
+
| 'sv'
|
|
1543
|
+
| 'sv-SE'
|
|
1544
|
+
| 'th'
|
|
1545
|
+
| 'th-TH'
|
|
1546
|
+
| 'tr'
|
|
1547
|
+
| 'uk'
|
|
1548
|
+
| 'vi'
|
|
1549
|
+
| 'auto_detect';
|
|
1550
|
+
}
|
|
1551
|
+
}
|
|
1552
|
+
|
|
1278
1553
|
export interface ActionAnswerResponse {
|
|
1279
1554
|
data?: ActionAnswerResponse.Data;
|
|
1280
1555
|
}
|
|
@@ -3081,11 +3356,17 @@ export interface ActionStartTranscriptionParams {
|
|
|
3081
3356
|
command_id?: string;
|
|
3082
3357
|
|
|
3083
3358
|
/**
|
|
3084
|
-
* Engine to use for speech recognition. `A` - `Google`, `B` -
|
|
3359
|
+
* Engine to use for speech recognition. Legacy values `A` - `Google`, `B` -
|
|
3360
|
+
* `Telnyx` are supported for backward compatibility.
|
|
3085
3361
|
*/
|
|
3086
|
-
transcription_engine?: 'A' | 'B';
|
|
3362
|
+
transcription_engine?: 'Google' | 'Telnyx' | 'Deepgram' | 'A' | 'B';
|
|
3087
3363
|
|
|
3088
|
-
transcription_engine_config?:
|
|
3364
|
+
transcription_engine_config?:
|
|
3365
|
+
| ActionStartTranscriptionParams.TranscriptionEngineGoogleConfig
|
|
3366
|
+
| ActionStartTranscriptionParams.TranscriptionEngineTelnyxConfig
|
|
3367
|
+
| ActionStartTranscriptionParams.TranscriptionEngineDeepgramConfig
|
|
3368
|
+
| TranscriptionEngineAConfig
|
|
3369
|
+
| TranscriptionEngineBConfig;
|
|
3089
3370
|
|
|
3090
3371
|
/**
|
|
3091
3372
|
* Indicates which leg of the call will be transcribed. Use `inbound` for the leg
|
|
@@ -3095,6 +3376,274 @@ export interface ActionStartTranscriptionParams {
|
|
|
3095
3376
|
transcription_tracks?: string;
|
|
3096
3377
|
}
|
|
3097
3378
|
|
|
3379
|
+
export namespace ActionStartTranscriptionParams {
|
|
3380
|
+
export interface TranscriptionEngineGoogleConfig {
|
|
3381
|
+
/**
|
|
3382
|
+
* Enables speaker diarization.
|
|
3383
|
+
*/
|
|
3384
|
+
enable_speaker_diarization?: boolean;
|
|
3385
|
+
|
|
3386
|
+
/**
|
|
3387
|
+
* Hints to improve transcription accuracy.
|
|
3388
|
+
*/
|
|
3389
|
+
hints?: Array<string>;
|
|
3390
|
+
|
|
3391
|
+
/**
|
|
3392
|
+
* Whether to send also interim results. If set to false, only final results will
|
|
3393
|
+
* be sent.
|
|
3394
|
+
*/
|
|
3395
|
+
interim_results?: boolean;
|
|
3396
|
+
|
|
3397
|
+
/**
|
|
3398
|
+
* Language to use for speech recognition
|
|
3399
|
+
*/
|
|
3400
|
+
language?: ActionsAPI.GoogleTranscriptionLanguage;
|
|
3401
|
+
|
|
3402
|
+
/**
|
|
3403
|
+
* Defines maximum number of speakers in the conversation.
|
|
3404
|
+
*/
|
|
3405
|
+
max_speaker_count?: number;
|
|
3406
|
+
|
|
3407
|
+
/**
|
|
3408
|
+
* Defines minimum number of speakers in the conversation.
|
|
3409
|
+
*/
|
|
3410
|
+
min_speaker_count?: number;
|
|
3411
|
+
|
|
3412
|
+
/**
|
|
3413
|
+
* The model to use for transcription.
|
|
3414
|
+
*/
|
|
3415
|
+
model?:
|
|
3416
|
+
| 'latest_long'
|
|
3417
|
+
| 'latest_short'
|
|
3418
|
+
| 'command_and_search'
|
|
3419
|
+
| 'phone_call'
|
|
3420
|
+
| 'video'
|
|
3421
|
+
| 'default'
|
|
3422
|
+
| 'medical_conversation'
|
|
3423
|
+
| 'medical_dictation';
|
|
3424
|
+
|
|
3425
|
+
/**
|
|
3426
|
+
* Enables profanity_filter.
|
|
3427
|
+
*/
|
|
3428
|
+
profanity_filter?: boolean;
|
|
3429
|
+
|
|
3430
|
+
/**
|
|
3431
|
+
* Speech context to improve transcription accuracy.
|
|
3432
|
+
*/
|
|
3433
|
+
speech_context?: Array<TranscriptionEngineGoogleConfig.SpeechContext>;
|
|
3434
|
+
|
|
3435
|
+
/**
|
|
3436
|
+
* Engine identifier for Google transcription service
|
|
3437
|
+
*/
|
|
3438
|
+
transcription_engine?: 'Google';
|
|
3439
|
+
|
|
3440
|
+
/**
|
|
3441
|
+
* Enables enhanced transcription, this works for models `phone_call` and `video`.
|
|
3442
|
+
*/
|
|
3443
|
+
use_enhanced?: boolean;
|
|
3444
|
+
}
|
|
3445
|
+
|
|
3446
|
+
export namespace TranscriptionEngineGoogleConfig {
|
|
3447
|
+
export interface SpeechContext {
|
|
3448
|
+
/**
|
|
3449
|
+
* Boost factor for the speech context.
|
|
3450
|
+
*/
|
|
3451
|
+
boost?: number;
|
|
3452
|
+
|
|
3453
|
+
phrases?: Array<string>;
|
|
3454
|
+
}
|
|
3455
|
+
}
|
|
3456
|
+
|
|
3457
|
+
export interface TranscriptionEngineTelnyxConfig {
|
|
3458
|
+
/**
|
|
3459
|
+
* Language to use for speech recognition
|
|
3460
|
+
*/
|
|
3461
|
+
language?:
|
|
3462
|
+
| 'en'
|
|
3463
|
+
| 'zh'
|
|
3464
|
+
| 'de'
|
|
3465
|
+
| 'es'
|
|
3466
|
+
| 'ru'
|
|
3467
|
+
| 'ko'
|
|
3468
|
+
| 'fr'
|
|
3469
|
+
| 'ja'
|
|
3470
|
+
| 'pt'
|
|
3471
|
+
| 'tr'
|
|
3472
|
+
| 'pl'
|
|
3473
|
+
| 'ca'
|
|
3474
|
+
| 'nl'
|
|
3475
|
+
| 'ar'
|
|
3476
|
+
| 'sv'
|
|
3477
|
+
| 'it'
|
|
3478
|
+
| 'id'
|
|
3479
|
+
| 'hi'
|
|
3480
|
+
| 'fi'
|
|
3481
|
+
| 'vi'
|
|
3482
|
+
| 'he'
|
|
3483
|
+
| 'uk'
|
|
3484
|
+
| 'el'
|
|
3485
|
+
| 'ms'
|
|
3486
|
+
| 'cs'
|
|
3487
|
+
| 'ro'
|
|
3488
|
+
| 'da'
|
|
3489
|
+
| 'hu'
|
|
3490
|
+
| 'ta'
|
|
3491
|
+
| 'no'
|
|
3492
|
+
| 'th'
|
|
3493
|
+
| 'ur'
|
|
3494
|
+
| 'hr'
|
|
3495
|
+
| 'bg'
|
|
3496
|
+
| 'lt'
|
|
3497
|
+
| 'la'
|
|
3498
|
+
| 'mi'
|
|
3499
|
+
| 'ml'
|
|
3500
|
+
| 'cy'
|
|
3501
|
+
| 'sk'
|
|
3502
|
+
| 'te'
|
|
3503
|
+
| 'fa'
|
|
3504
|
+
| 'lv'
|
|
3505
|
+
| 'bn'
|
|
3506
|
+
| 'sr'
|
|
3507
|
+
| 'az'
|
|
3508
|
+
| 'sl'
|
|
3509
|
+
| 'kn'
|
|
3510
|
+
| 'et'
|
|
3511
|
+
| 'mk'
|
|
3512
|
+
| 'br'
|
|
3513
|
+
| 'eu'
|
|
3514
|
+
| 'is'
|
|
3515
|
+
| 'hy'
|
|
3516
|
+
| 'ne'
|
|
3517
|
+
| 'mn'
|
|
3518
|
+
| 'bs'
|
|
3519
|
+
| 'kk'
|
|
3520
|
+
| 'sq'
|
|
3521
|
+
| 'sw'
|
|
3522
|
+
| 'gl'
|
|
3523
|
+
| 'mr'
|
|
3524
|
+
| 'pa'
|
|
3525
|
+
| 'si'
|
|
3526
|
+
| 'km'
|
|
3527
|
+
| 'sn'
|
|
3528
|
+
| 'yo'
|
|
3529
|
+
| 'so'
|
|
3530
|
+
| 'af'
|
|
3531
|
+
| 'oc'
|
|
3532
|
+
| 'ka'
|
|
3533
|
+
| 'be'
|
|
3534
|
+
| 'tg'
|
|
3535
|
+
| 'sd'
|
|
3536
|
+
| 'gu'
|
|
3537
|
+
| 'am'
|
|
3538
|
+
| 'yi'
|
|
3539
|
+
| 'lo'
|
|
3540
|
+
| 'uz'
|
|
3541
|
+
| 'fo'
|
|
3542
|
+
| 'ht'
|
|
3543
|
+
| 'ps'
|
|
3544
|
+
| 'tk'
|
|
3545
|
+
| 'nn'
|
|
3546
|
+
| 'mt'
|
|
3547
|
+
| 'sa'
|
|
3548
|
+
| 'lb'
|
|
3549
|
+
| 'my'
|
|
3550
|
+
| 'bo'
|
|
3551
|
+
| 'tl'
|
|
3552
|
+
| 'mg'
|
|
3553
|
+
| 'as'
|
|
3554
|
+
| 'tt'
|
|
3555
|
+
| 'haw'
|
|
3556
|
+
| 'ln'
|
|
3557
|
+
| 'ha'
|
|
3558
|
+
| 'ba'
|
|
3559
|
+
| 'jw'
|
|
3560
|
+
| 'su'
|
|
3561
|
+
| 'auto_detect';
|
|
3562
|
+
|
|
3563
|
+
/**
|
|
3564
|
+
* Engine identifier for Telnyx transcription service
|
|
3565
|
+
*/
|
|
3566
|
+
transcription_engine?: 'Telnyx';
|
|
3567
|
+
|
|
3568
|
+
/**
|
|
3569
|
+
* The model to use for transcription.
|
|
3570
|
+
*/
|
|
3571
|
+
transcription_model?: 'openai/whisper-tiny' | 'openai/whisper-large-v3-turbo';
|
|
3572
|
+
}
|
|
3573
|
+
|
|
3574
|
+
export interface TranscriptionEngineDeepgramConfig {
|
|
3575
|
+
/**
|
|
3576
|
+
* Engine identifier for Deepgram transcription service
|
|
3577
|
+
*/
|
|
3578
|
+
transcription_engine: 'Deepgram';
|
|
3579
|
+
|
|
3580
|
+
/**
|
|
3581
|
+
* The model to use for transcription.
|
|
3582
|
+
*/
|
|
3583
|
+
transcription_model: 'deepgram/nova-2' | 'deepgram/nova-3';
|
|
3584
|
+
|
|
3585
|
+
/**
|
|
3586
|
+
* Language to use for speech recognition. Available languages depend on the
|
|
3587
|
+
* selected model.
|
|
3588
|
+
*/
|
|
3589
|
+
language?:
|
|
3590
|
+
| 'bg'
|
|
3591
|
+
| 'ca'
|
|
3592
|
+
| 'zh'
|
|
3593
|
+
| 'zh-CN'
|
|
3594
|
+
| 'zh-Hans'
|
|
3595
|
+
| 'zh-TW'
|
|
3596
|
+
| 'zh-Hant'
|
|
3597
|
+
| 'zh-HK'
|
|
3598
|
+
| 'cs'
|
|
3599
|
+
| 'da'
|
|
3600
|
+
| 'da-DK'
|
|
3601
|
+
| 'nl'
|
|
3602
|
+
| 'en'
|
|
3603
|
+
| 'en-US'
|
|
3604
|
+
| 'en-AU'
|
|
3605
|
+
| 'en-GB'
|
|
3606
|
+
| 'en-NZ'
|
|
3607
|
+
| 'en-IN'
|
|
3608
|
+
| 'et'
|
|
3609
|
+
| 'fi'
|
|
3610
|
+
| 'nl-BE'
|
|
3611
|
+
| 'fr'
|
|
3612
|
+
| 'fr-CA'
|
|
3613
|
+
| 'de'
|
|
3614
|
+
| 'de-CH'
|
|
3615
|
+
| 'el'
|
|
3616
|
+
| 'hi'
|
|
3617
|
+
| 'hu'
|
|
3618
|
+
| 'id'
|
|
3619
|
+
| 'it'
|
|
3620
|
+
| 'ja'
|
|
3621
|
+
| 'ko'
|
|
3622
|
+
| 'ko-KR'
|
|
3623
|
+
| 'lv'
|
|
3624
|
+
| 'lt'
|
|
3625
|
+
| 'ms'
|
|
3626
|
+
| 'no'
|
|
3627
|
+
| 'pl'
|
|
3628
|
+
| 'pt'
|
|
3629
|
+
| 'pt-BR'
|
|
3630
|
+
| 'pt-PT'
|
|
3631
|
+
| 'ro'
|
|
3632
|
+
| 'ru'
|
|
3633
|
+
| 'sk'
|
|
3634
|
+
| 'es'
|
|
3635
|
+
| 'es-419'
|
|
3636
|
+
| 'sv'
|
|
3637
|
+
| 'sv-SE'
|
|
3638
|
+
| 'th'
|
|
3639
|
+
| 'th-TH'
|
|
3640
|
+
| 'tr'
|
|
3641
|
+
| 'uk'
|
|
3642
|
+
| 'vi'
|
|
3643
|
+
| 'auto_detect';
|
|
3644
|
+
}
|
|
3645
|
+
}
|
|
3646
|
+
|
|
3098
3647
|
export interface ActionStopAIAssistantParams {
|
|
3099
3648
|
/**
|
|
3100
3649
|
* Use this field to add state to every subsequent webhook. It must be a valid
|
package/src/resources/index.ts
CHANGED
|
@@ -719,6 +719,7 @@ export {
|
|
|
719
719
|
} from './oauth';
|
|
720
720
|
export {
|
|
721
721
|
OAuthClients,
|
|
722
|
+
type OAuthClient,
|
|
722
723
|
type OAuthClientCreateResponse,
|
|
723
724
|
type OAuthClientRetrieveResponse,
|
|
724
725
|
type OAuthClientUpdateResponse,
|
|
@@ -729,6 +730,7 @@ export {
|
|
|
729
730
|
} from './oauth-clients';
|
|
730
731
|
export {
|
|
731
732
|
OAuthGrants,
|
|
733
|
+
type OAuthGrant,
|
|
732
734
|
type OAuthGrantRetrieveResponse,
|
|
733
735
|
type OAuthGrantListResponse,
|
|
734
736
|
type OAuthGrantDeleteResponse,
|
|
@@ -1137,6 +1139,7 @@ export {
|
|
|
1137
1139
|
VerifyProfiles,
|
|
1138
1140
|
type VerifyProfile,
|
|
1139
1141
|
type VerifyProfileData,
|
|
1142
|
+
type VerifyProfileMessageTemplateResponse,
|
|
1140
1143
|
type VerifyProfileListResponse,
|
|
1141
1144
|
type VerifyProfileCreateTemplateResponse,
|
|
1142
1145
|
type VerifyProfileRetrieveTemplatesResponse,
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
import { APIResource } from '../../../../core/resource';
|
|
4
4
|
import * as MessagingAPI from './messaging';
|
|
5
5
|
import {
|
|
6
|
+
MdrDetailReportResponse,
|
|
6
7
|
Messaging,
|
|
7
8
|
MessagingCreateParams,
|
|
8
9
|
MessagingCreateResponse,
|
|
@@ -18,9 +19,11 @@ import {
|
|
|
18
19
|
SpeechToTextDeleteResponse,
|
|
19
20
|
SpeechToTextListResponse,
|
|
20
21
|
SpeechToTextRetrieveResponse,
|
|
22
|
+
SttDetailReportResponse,
|
|
21
23
|
} from './speech-to-text';
|
|
22
24
|
import * as VoiceAPI from './voice';
|
|
23
25
|
import {
|
|
26
|
+
CdrDetailedReqResponse,
|
|
24
27
|
Voice,
|
|
25
28
|
VoiceCreateParams,
|
|
26
29
|
VoiceCreateResponse,
|
|
@@ -36,13 +39,57 @@ export class BatchDetailRecords extends APIResource {
|
|
|
36
39
|
voice: VoiceAPI.Voice = new VoiceAPI.Voice(this._client);
|
|
37
40
|
}
|
|
38
41
|
|
|
42
|
+
/**
|
|
43
|
+
* Query filter criteria. Note: The first filter object must specify filter_type as
|
|
44
|
+
* 'and'. You cannot follow an 'or' with another 'and'.
|
|
45
|
+
*/
|
|
46
|
+
export interface Filter {
|
|
47
|
+
/**
|
|
48
|
+
* Billing group UUID to filter by
|
|
49
|
+
*/
|
|
50
|
+
billing_group?: string;
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* Called line identification (destination number)
|
|
54
|
+
*/
|
|
55
|
+
cld?: string;
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* Filter type for CLD matching
|
|
59
|
+
*/
|
|
60
|
+
cld_filter?: 'contains' | 'starts_with' | 'ends_with';
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* Calling line identification (caller ID)
|
|
64
|
+
*/
|
|
65
|
+
cli?: string;
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* Filter type for CLI matching
|
|
69
|
+
*/
|
|
70
|
+
cli_filter?: 'contains' | 'starts_with' | 'ends_with';
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* Logical operator for combining filters
|
|
74
|
+
*/
|
|
75
|
+
filter_type?: 'and' | 'or';
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* Tag name to filter by
|
|
79
|
+
*/
|
|
80
|
+
tags_list?: string;
|
|
81
|
+
}
|
|
82
|
+
|
|
39
83
|
BatchDetailRecords.Messaging = Messaging;
|
|
40
84
|
BatchDetailRecords.SpeechToText = SpeechToText;
|
|
41
85
|
BatchDetailRecords.Voice = Voice;
|
|
42
86
|
|
|
43
87
|
export declare namespace BatchDetailRecords {
|
|
88
|
+
export { type Filter as Filter };
|
|
89
|
+
|
|
44
90
|
export {
|
|
45
91
|
Messaging as Messaging,
|
|
92
|
+
type MdrDetailReportResponse as MdrDetailReportResponse,
|
|
46
93
|
type MessagingCreateResponse as MessagingCreateResponse,
|
|
47
94
|
type MessagingRetrieveResponse as MessagingRetrieveResponse,
|
|
48
95
|
type MessagingListResponse as MessagingListResponse,
|
|
@@ -52,6 +99,7 @@ export declare namespace BatchDetailRecords {
|
|
|
52
99
|
|
|
53
100
|
export {
|
|
54
101
|
SpeechToText as SpeechToText,
|
|
102
|
+
type SttDetailReportResponse as SttDetailReportResponse,
|
|
55
103
|
type SpeechToTextCreateResponse as SpeechToTextCreateResponse,
|
|
56
104
|
type SpeechToTextRetrieveResponse as SpeechToTextRetrieveResponse,
|
|
57
105
|
type SpeechToTextListResponse as SpeechToTextListResponse,
|
|
@@ -61,6 +109,7 @@ export declare namespace BatchDetailRecords {
|
|
|
61
109
|
|
|
62
110
|
export {
|
|
63
111
|
Voice as Voice,
|
|
112
|
+
type CdrDetailedReqResponse as CdrDetailedReqResponse,
|
|
64
113
|
type VoiceCreateResponse as VoiceCreateResponse,
|
|
65
114
|
type VoiceRetrieveResponse as VoiceRetrieveResponse,
|
|
66
115
|
type VoiceListResponse as VoiceListResponse,
|