@breign/client 1.0.118 → 1.0.119

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/openapi.json CHANGED
@@ -1439,6 +1439,105 @@
1439
1439
  "tags" : [ "agent" ]
1440
1440
  }
1441
1441
  },
1442
+ "/agents/{agentId}/speech-to-text" : {
1443
+ "post" : {
1444
+ "description" : "Transcribes audio using the agent's speech-to-text configuration.",
1445
+ "operationId" : "convertAgentSpeechToText",
1446
+ "parameters" : [ {
1447
+ "description" : "ID of the agent",
1448
+ "in" : "path",
1449
+ "name" : "agentId",
1450
+ "required" : true,
1451
+ "schema" : {
1452
+ "format" : "uuid",
1453
+ "type" : "string"
1454
+ }
1455
+ }, {
1456
+ "description" : "Language code for transcription (optional)",
1457
+ "in" : "query",
1458
+ "name" : "language",
1459
+ "schema" : {
1460
+ "type" : "string"
1461
+ }
1462
+ }, {
1463
+ "description" : "If true, returns a mock transcription without processing the file",
1464
+ "in" : "query",
1465
+ "name" : "dry",
1466
+ "schema" : {
1467
+ "type" : "boolean"
1468
+ }
1469
+ }, {
1470
+ "description" : "Speech-to-text model override (e.g. whisper-1, voxtral-mini-latest)",
1471
+ "in" : "query",
1472
+ "name" : "model",
1473
+ "required" : false,
1474
+ "schema" : {
1475
+ "type" : "string"
1476
+ }
1477
+ } ],
1478
+ "requestBody" : {
1479
+ "content" : {
1480
+ "audio/wav" : {
1481
+ "schema" : {
1482
+ "format" : "binary",
1483
+ "type" : "string"
1484
+ }
1485
+ },
1486
+ "audio/wave" : {
1487
+ "schema" : {
1488
+ "format" : "binary",
1489
+ "type" : "string"
1490
+ }
1491
+ },
1492
+ "audio/mpeg" : {
1493
+ "schema" : {
1494
+ "format" : "binary",
1495
+ "type" : "string"
1496
+ }
1497
+ },
1498
+ "audio/mp4" : {
1499
+ "schema" : {
1500
+ "format" : "binary",
1501
+ "type" : "string"
1502
+ }
1503
+ },
1504
+ "audio/webm" : {
1505
+ "schema" : {
1506
+ "format" : "binary",
1507
+ "type" : "string"
1508
+ }
1509
+ }
1510
+ },
1511
+ "required" : true
1512
+ },
1513
+ "responses" : {
1514
+ "201" : {
1515
+ "content" : {
1516
+ "application/json" : {
1517
+ "schema" : {
1518
+ "$ref" : "#/components/schemas/STTResponse"
1519
+ }
1520
+ }
1521
+ },
1522
+ "description" : "Speech transcribed successfully"
1523
+ },
1524
+ "400" : {
1525
+ "description" : "Invalid request or unsupported content type"
1526
+ },
1527
+ "401" : {
1528
+ "description" : "Unauthorized"
1529
+ },
1530
+ "404" : {
1531
+ "description" : "Agent not found"
1532
+ },
1533
+ "500" : {
1534
+ "description" : "Server error during transcription"
1535
+ }
1536
+ },
1537
+ "summary" : "Convert speech to text for an agent",
1538
+ "tags" : [ "agent" ]
1539
+ }
1540
+ },
1442
1541
  "/agents/{agentId}/tools/{toolId}" : {
1443
1542
  "delete" : {
1444
1543
  "description" : "Removes a tool from the specified agent",
@@ -3322,6 +3421,104 @@
3322
3421
  "tags" : [ "app" ]
3323
3422
  }
3324
3423
  },
3424
+ "/apps/{appId}/speech-to-text" : {
3425
+ "post" : {
3426
+ "description" : "Transcribes audio using the app's speech-to-text configuration, falling back to the agent configuration when the app has none.",
3427
+ "operationId" : "convertAppSpeechToText",
3428
+ "parameters" : [ {
3429
+ "description" : "ID of the app",
3430
+ "in" : "path",
3431
+ "name" : "appId",
3432
+ "required" : true,
3433
+ "schema" : {
3434
+ "type" : "string"
3435
+ }
3436
+ }, {
3437
+ "description" : "Language code for transcription (optional)",
3438
+ "in" : "query",
3439
+ "name" : "language",
3440
+ "schema" : {
3441
+ "type" : "string"
3442
+ }
3443
+ }, {
3444
+ "description" : "If true, returns a mock transcription without processing the file",
3445
+ "in" : "query",
3446
+ "name" : "dry",
3447
+ "schema" : {
3448
+ "type" : "boolean"
3449
+ }
3450
+ }, {
3451
+ "description" : "Speech-to-text model override (e.g. whisper-1, voxtral-mini-latest)",
3452
+ "in" : "query",
3453
+ "name" : "model",
3454
+ "required" : false,
3455
+ "schema" : {
3456
+ "type" : "string"
3457
+ }
3458
+ } ],
3459
+ "requestBody" : {
3460
+ "content" : {
3461
+ "audio/wav" : {
3462
+ "schema" : {
3463
+ "format" : "binary",
3464
+ "type" : "string"
3465
+ }
3466
+ },
3467
+ "audio/wave" : {
3468
+ "schema" : {
3469
+ "format" : "binary",
3470
+ "type" : "string"
3471
+ }
3472
+ },
3473
+ "audio/mpeg" : {
3474
+ "schema" : {
3475
+ "format" : "binary",
3476
+ "type" : "string"
3477
+ }
3478
+ },
3479
+ "audio/mp4" : {
3480
+ "schema" : {
3481
+ "format" : "binary",
3482
+ "type" : "string"
3483
+ }
3484
+ },
3485
+ "audio/webm" : {
3486
+ "schema" : {
3487
+ "format" : "binary",
3488
+ "type" : "string"
3489
+ }
3490
+ }
3491
+ },
3492
+ "required" : true
3493
+ },
3494
+ "responses" : {
3495
+ "201" : {
3496
+ "content" : {
3497
+ "application/json" : {
3498
+ "schema" : {
3499
+ "$ref" : "#/components/schemas/STTResponse"
3500
+ }
3501
+ }
3502
+ },
3503
+ "description" : "Speech transcribed successfully"
3504
+ },
3505
+ "400" : {
3506
+ "description" : "Invalid request or unsupported content type"
3507
+ },
3508
+ "401" : {
3509
+ "description" : "Unauthorized"
3510
+ },
3511
+ "404" : {
3512
+ "description" : "App not found"
3513
+ },
3514
+ "500" : {
3515
+ "description" : "Server error during transcription"
3516
+ }
3517
+ },
3518
+ "summary" : "Convert speech to text for an app",
3519
+ "tags" : [ "app" ]
3520
+ }
3521
+ },
3325
3522
  "/apps/{appId}/instances" : {
3326
3523
  "get" : {
3327
3524
  "description" : "List persisted instances for an app (excludes ephemeral instances)",
@@ -5079,6 +5276,45 @@
5079
5276
  "tags" : [ "engine" ]
5080
5277
  }
5081
5278
  },
5279
+ "/organizations/{organizationId}/engines/providers/with-speech-to-text" : {
5280
+ "get" : {
5281
+ "description" : "Returns providers that have at least one model with the speech-to-text capability enabled.",
5282
+ "parameters" : [ {
5283
+ "in" : "path",
5284
+ "name" : "organizationId",
5285
+ "required" : true,
5286
+ "schema" : {
5287
+ "type" : "string"
5288
+ }
5289
+ } ],
5290
+ "responses" : {
5291
+ "200" : {
5292
+ "content" : {
5293
+ "application/json" : {
5294
+ "schema" : {
5295
+ "items" : {
5296
+ "$ref" : "#/components/schemas/SpeechToTextProvider"
5297
+ },
5298
+ "type" : "array"
5299
+ }
5300
+ }
5301
+ },
5302
+ "description" : "Providers with speech-to-text models"
5303
+ },
5304
+ "401" : {
5305
+ "description" : "Unauthorized"
5306
+ },
5307
+ "403" : {
5308
+ "description" : "Forbidden"
5309
+ }
5310
+ },
5311
+ "security" : [ {
5312
+ "ApiKeyAuth" : [ ]
5313
+ } ],
5314
+ "summary" : "List organization engine providers with speech-to-text models",
5315
+ "tags" : [ "Engines" ]
5316
+ }
5317
+ },
5082
5318
  "/engines/providers/{providerId}" : {
5083
5319
  "delete" : {
5084
5320
  "description" : "Delete a provider for an organization",
@@ -9314,7 +9550,8 @@
9314
9550
  },
9315
9551
  "/tools/speech-to-text" : {
9316
9552
  "post" : {
9317
- "description" : "Transcribes audio files to text using OpenAI's Whisper model",
9553
+ "deprecated" : true,
9554
+ "description" : "Transcribes audio files to text using the configured speech-to-text model (OpenAI Whisper or Mistral Voxtral).\n\n**Deprecated** — use `POST /apps/{appId}/speech-to-text` or `POST /agents/{agentId}/speech-to-text` instead.\nThis route remains available temporarily for backward compatibility.\n",
9318
9555
  "operationId" : "convertSpeechToText",
9319
9556
  "parameters" : [ {
9320
9557
  "description" : "Language code for transcription (optional)",
@@ -9330,6 +9567,22 @@
9330
9567
  "schema" : {
9331
9568
  "type" : "boolean"
9332
9569
  }
9570
+ }, {
9571
+ "description" : "Speech-to-text model override (e.g. whisper-1, voxtral-mini-latest)",
9572
+ "in" : "query",
9573
+ "name" : "model",
9574
+ "required" : false,
9575
+ "schema" : {
9576
+ "type" : "string"
9577
+ }
9578
+ }, {
9579
+ "description" : "Application ID used to resolve the organization AI engine API keys",
9580
+ "in" : "query",
9581
+ "name" : "appId",
9582
+ "required" : true,
9583
+ "schema" : {
9584
+ "type" : "string"
9585
+ }
9333
9586
  } ],
9334
9587
  "requestBody" : {
9335
9588
  "content" : {
@@ -9383,6 +9636,9 @@
9383
9636
  "401" : {
9384
9637
  "description" : "Unauthorized"
9385
9638
  },
9639
+ "404" : {
9640
+ "description" : "App not found"
9641
+ },
9386
9642
  "500" : {
9387
9643
  "description" : "Server error during transcription"
9388
9644
  }
@@ -11540,6 +11796,22 @@
11540
11796
  "type" : "string"
11541
11797
  }
11542
11798
  },
11799
+ "language" : {
11800
+ "description" : "Language code for transcription (optional)",
11801
+ "in" : "query",
11802
+ "name" : "language",
11803
+ "schema" : {
11804
+ "type" : "string"
11805
+ }
11806
+ },
11807
+ "dry" : {
11808
+ "description" : "If true, returns a mock transcription without processing the file",
11809
+ "in" : "query",
11810
+ "name" : "dry",
11811
+ "schema" : {
11812
+ "type" : "boolean"
11813
+ }
11814
+ },
11543
11815
  "page" : {
11544
11816
  "description" : "Page number",
11545
11817
  "in" : "query",
@@ -11924,22 +12196,6 @@
11924
12196
  "type" : "string"
11925
12197
  }
11926
12198
  },
11927
- "dry" : {
11928
- "description" : "If true, returns a mock transcription without processing the file",
11929
- "in" : "query",
11930
- "name" : "dry",
11931
- "schema" : {
11932
- "type" : "boolean"
11933
- }
11934
- },
11935
- "language" : {
11936
- "description" : "Language code for transcription (optional)",
11937
- "in" : "query",
11938
- "name" : "language",
11939
- "schema" : {
11940
- "type" : "string"
11941
- }
11942
- },
11943
12199
  "skillIdPath" : {
11944
12200
  "description" : "Skill identifier",
11945
12201
  "in" : "path",
@@ -12326,6 +12582,9 @@
12326
12582
  } ],
12327
12583
  "nullable" : true
12328
12584
  },
12585
+ "speechToText" : {
12586
+ "$ref" : "#/components/schemas/SpeechToTextConfig"
12587
+ },
12329
12588
  "creator" : {
12330
12589
  "$ref" : "#/components/schemas/Agent_creator"
12331
12590
  },
@@ -12668,6 +12927,9 @@
12668
12927
  "$ref" : "#/components/schemas/ContextualKnowledgeConversation"
12669
12928
  } ],
12670
12929
  "nullable" : true
12930
+ },
12931
+ "speechToText" : {
12932
+ "$ref" : "#/components/schemas/SpeechToTextConfig"
12671
12933
  }
12672
12934
  },
12673
12935
  "type" : "object"
@@ -13515,6 +13777,15 @@
13515
13777
  "required" : [ "formData", "postURL" ],
13516
13778
  "type" : "object"
13517
13779
  },
13780
+ "STTResponse" : {
13781
+ "properties" : {
13782
+ "transcription" : {
13783
+ "type" : "string"
13784
+ }
13785
+ },
13786
+ "required" : [ "transcription" ],
13787
+ "type" : "object"
13788
+ },
13518
13789
  "Chat" : {
13519
13790
  "properties" : {
13520
13791
  "id" : {
@@ -14203,6 +14474,9 @@
14203
14474
  "voiceModelId" : {
14204
14475
  "type" : "string"
14205
14476
  },
14477
+ "speechToText" : {
14478
+ "$ref" : "#/components/schemas/SpeechToTextConfig"
14479
+ },
14206
14480
  "lipsync" : {
14207
14481
  "$ref" : "#/components/schemas/Lipsync"
14208
14482
  },
@@ -14224,6 +14498,19 @@
14224
14498
  "required" : [ "agentId", "name", "streamingEnabled" ],
14225
14499
  "type" : "object"
14226
14500
  },
14501
+ "SpeechToTextConfig" : {
14502
+ "additionalProperties" : false,
14503
+ "properties" : {
14504
+ "providerId" : {
14505
+ "type" : "string"
14506
+ },
14507
+ "modelId" : {
14508
+ "type" : "string"
14509
+ }
14510
+ },
14511
+ "required" : [ "modelId", "providerId" ],
14512
+ "type" : "object"
14513
+ },
14227
14514
  "Lipsync" : {
14228
14515
  "additionalProperties" : true,
14229
14516
  "properties" : {
@@ -14296,6 +14583,9 @@
14296
14583
  "voiceModelId" : {
14297
14584
  "type" : "string"
14298
14585
  },
14586
+ "speechToText" : {
14587
+ "$ref" : "#/components/schemas/SpeechToTextConfig"
14588
+ },
14299
14589
  "voice" : {
14300
14590
  "additionalProperties" : {
14301
14591
  "type" : "string"
@@ -14520,6 +14810,9 @@
14520
14810
  "voiceModelId" : {
14521
14811
  "type" : "string"
14522
14812
  },
14813
+ "speechToText" : {
14814
+ "$ref" : "#/components/schemas/SpeechToTextConfig"
14815
+ },
14523
14816
  "disableFillers" : {
14524
14817
  "type" : "boolean"
14525
14818
  },
@@ -15445,6 +15738,9 @@
15445
15738
  "hasEmbedding" : {
15446
15739
  "type" : "boolean"
15447
15740
  },
15741
+ "hasSpeechToText" : {
15742
+ "type" : "boolean"
15743
+ },
15448
15744
  "maxTokens" : {
15449
15745
  "minimum" : 1,
15450
15746
  "type" : "integer"
@@ -15457,6 +15753,27 @@
15457
15753
  "required" : [ "modelId", "name" ],
15458
15754
  "type" : "object"
15459
15755
  },
15756
+ "SpeechToTextProvider" : {
15757
+ "properties" : {
15758
+ "id" : {
15759
+ "type" : "string"
15760
+ },
15761
+ "name" : {
15762
+ "type" : "string"
15763
+ },
15764
+ "providerType" : {
15765
+ "type" : "string"
15766
+ },
15767
+ "models" : {
15768
+ "items" : {
15769
+ "$ref" : "#/components/schemas/SpeechToTextProvider_models_inner"
15770
+ },
15771
+ "type" : "array"
15772
+ }
15773
+ },
15774
+ "required" : [ "id", "models", "name", "providerType" ],
15775
+ "type" : "object"
15776
+ },
15460
15777
  "ProviderSimple" : {
15461
15778
  "properties" : {
15462
15779
  "id" : {
@@ -16528,15 +16845,6 @@
16528
16845
  "required" : [ "id", "src" ],
16529
16846
  "type" : "object"
16530
16847
  },
16531
- "STTResponse" : {
16532
- "properties" : {
16533
- "transcription" : {
16534
- "type" : "string"
16535
- }
16536
- },
16537
- "required" : [ "transcription" ],
16538
- "type" : "object"
16539
- },
16540
16848
  "ToolSecure" : {
16541
16849
  "additionalProperties" : true,
16542
16850
  "properties" : {
@@ -18684,6 +18992,21 @@
18684
18992
  "required" : [ "engine", "id", "name" ],
18685
18993
  "type" : "object"
18686
18994
  },
18995
+ "SpeechToTextProvider_models_inner" : {
18996
+ "properties" : {
18997
+ "id" : {
18998
+ "type" : "string"
18999
+ },
19000
+ "modelId" : {
19001
+ "type" : "string"
19002
+ },
19003
+ "name" : {
19004
+ "type" : "string"
19005
+ }
19006
+ },
19007
+ "required" : [ "modelId", "name" ],
19008
+ "type" : "object"
19009
+ },
18687
19010
  "MetricForAgent_identifier" : {
18688
19011
  "properties" : {
18689
19012
  "agentId" : {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@breign/client",
3
- "version": "1.0.118",
3
+ "version": "1.0.119",
4
4
  "main": "dist/index.js",
5
5
  "exports": {
6
6
  ".": "./dist/index.js",