@breign/client 1.0.117 → 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.
Files changed (34) hide show
  1. package/dist/apis/AgentApi.d.ts +18 -1
  2. package/dist/apis/AgentApi.js +43 -0
  3. package/dist/apis/AppApi.d.ts +18 -1
  4. package/dist/apis/AppApi.js +43 -0
  5. package/dist/apis/ConversationsApi.d.ts +15 -1
  6. package/dist/apis/ConversationsApi.js +22 -3
  7. package/dist/apis/EnginesApi.d.ts +31 -0
  8. package/dist/apis/EnginesApi.js +86 -0
  9. package/dist/apis/ToolsApi.d.ts +7 -3
  10. package/dist/apis/ToolsApi.js +15 -4
  11. package/dist/apis/index.d.ts +1 -0
  12. package/dist/apis/index.js +1 -0
  13. package/dist/models/AgentPatchUio.d.ts +7 -0
  14. package/dist/models/AgentPatchUio.js +3 -0
  15. package/dist/models/AgentUio.d.ts +7 -0
  16. package/dist/models/AgentUio.js +3 -0
  17. package/dist/models/AppCreateRequestUio.d.ts +7 -0
  18. package/dist/models/AppCreateRequestUio.js +3 -0
  19. package/dist/models/AppUio.d.ts +7 -0
  20. package/dist/models/AppUio.js +3 -0
  21. package/dist/models/AppUpdateRequestUio.d.ts +7 -0
  22. package/dist/models/AppUpdateRequestUio.js +3 -0
  23. package/dist/models/ModelDefinitionUio.d.ts +6 -0
  24. package/dist/models/ModelDefinitionUio.js +2 -0
  25. package/dist/models/SpeechToTextConfigUio.d.ts +38 -0
  26. package/dist/models/SpeechToTextConfigUio.js +54 -0
  27. package/dist/models/SpeechToTextProviderModelsInnerUio.d.ts +44 -0
  28. package/dist/models/SpeechToTextProviderModelsInnerUio.js +56 -0
  29. package/dist/models/SpeechToTextProviderUio.d.ts +51 -0
  30. package/dist/models/SpeechToTextProviderUio.js +63 -0
  31. package/dist/models/index.d.ts +3 -0
  32. package/dist/models/index.js +3 -0
  33. package/dist/openapi.json +403 -27
  34. package/package.json +1 -1
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)",
@@ -4594,6 +4791,33 @@
4594
4791
  "enum" : [ "EXTERNAL", "INTERNAL" ],
4595
4792
  "type" : "string"
4596
4793
  }
4794
+ }, {
4795
+ "description" : "Page number (1-based). Must be used together with limit.",
4796
+ "in" : "query",
4797
+ "name" : "page",
4798
+ "required" : false,
4799
+ "schema" : {
4800
+ "minimum" : 1,
4801
+ "type" : "integer"
4802
+ }
4803
+ }, {
4804
+ "description" : "Number of conversations per page. Must be used together with page.",
4805
+ "in" : "query",
4806
+ "name" : "limit",
4807
+ "required" : false,
4808
+ "schema" : {
4809
+ "minimum" : 1,
4810
+ "type" : "integer"
4811
+ }
4812
+ }, {
4813
+ "description" : "Filter conversations by time period bucket",
4814
+ "in" : "query",
4815
+ "name" : "period",
4816
+ "required" : false,
4817
+ "schema" : {
4818
+ "enum" : [ "today", "last6days", "week", "month", "older" ],
4819
+ "type" : "string"
4820
+ }
4597
4821
  }, {
4598
4822
  "description" : "Filter conversations that have at least one message with this reaction",
4599
4823
  "in" : "query",
@@ -4615,7 +4839,33 @@
4615
4839
  }
4616
4840
  }
4617
4841
  },
4618
- "description" : "Successfully retrieved the list of conversations."
4842
+ "description" : "Successfully retrieved the list of conversations.",
4843
+ "headers" : {
4844
+ "X-Total-Count" : {
4845
+ "description" : "Total number of conversations matching the filters",
4846
+ "schema" : {
4847
+ "type" : "integer"
4848
+ }
4849
+ },
4850
+ "X-Page" : {
4851
+ "description" : "Current page number",
4852
+ "schema" : {
4853
+ "type" : "integer"
4854
+ }
4855
+ },
4856
+ "X-Limit" : {
4857
+ "description" : "Number of items per page",
4858
+ "schema" : {
4859
+ "type" : "integer"
4860
+ }
4861
+ },
4862
+ "X-Total-Pages" : {
4863
+ "description" : "Total number of pages",
4864
+ "schema" : {
4865
+ "type" : "integer"
4866
+ }
4867
+ }
4868
+ }
4619
4869
  },
4620
4870
  "401" : {
4621
4871
  "description" : "Unauthorized"
@@ -5026,6 +5276,45 @@
5026
5276
  "tags" : [ "engine" ]
5027
5277
  }
5028
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
+ },
5029
5318
  "/engines/providers/{providerId}" : {
5030
5319
  "delete" : {
5031
5320
  "description" : "Delete a provider for an organization",
@@ -9261,7 +9550,8 @@
9261
9550
  },
9262
9551
  "/tools/speech-to-text" : {
9263
9552
  "post" : {
9264
- "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",
9265
9555
  "operationId" : "convertSpeechToText",
9266
9556
  "parameters" : [ {
9267
9557
  "description" : "Language code for transcription (optional)",
@@ -9277,6 +9567,22 @@
9277
9567
  "schema" : {
9278
9568
  "type" : "boolean"
9279
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
+ }
9280
9586
  } ],
9281
9587
  "requestBody" : {
9282
9588
  "content" : {
@@ -9330,6 +9636,9 @@
9330
9636
  "401" : {
9331
9637
  "description" : "Unauthorized"
9332
9638
  },
9639
+ "404" : {
9640
+ "description" : "App not found"
9641
+ },
9333
9642
  "500" : {
9334
9643
  "description" : "Server error during transcription"
9335
9644
  }
@@ -11487,6 +11796,22 @@
11487
11796
  "type" : "string"
11488
11797
  }
11489
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
+ },
11490
11815
  "page" : {
11491
11816
  "description" : "Page number",
11492
11817
  "in" : "query",
@@ -11871,22 +12196,6 @@
11871
12196
  "type" : "string"
11872
12197
  }
11873
12198
  },
11874
- "dry" : {
11875
- "description" : "If true, returns a mock transcription without processing the file",
11876
- "in" : "query",
11877
- "name" : "dry",
11878
- "schema" : {
11879
- "type" : "boolean"
11880
- }
11881
- },
11882
- "language" : {
11883
- "description" : "Language code for transcription (optional)",
11884
- "in" : "query",
11885
- "name" : "language",
11886
- "schema" : {
11887
- "type" : "string"
11888
- }
11889
- },
11890
12199
  "skillIdPath" : {
11891
12200
  "description" : "Skill identifier",
11892
12201
  "in" : "path",
@@ -12273,6 +12582,9 @@
12273
12582
  } ],
12274
12583
  "nullable" : true
12275
12584
  },
12585
+ "speechToText" : {
12586
+ "$ref" : "#/components/schemas/SpeechToTextConfig"
12587
+ },
12276
12588
  "creator" : {
12277
12589
  "$ref" : "#/components/schemas/Agent_creator"
12278
12590
  },
@@ -12615,6 +12927,9 @@
12615
12927
  "$ref" : "#/components/schemas/ContextualKnowledgeConversation"
12616
12928
  } ],
12617
12929
  "nullable" : true
12930
+ },
12931
+ "speechToText" : {
12932
+ "$ref" : "#/components/schemas/SpeechToTextConfig"
12618
12933
  }
12619
12934
  },
12620
12935
  "type" : "object"
@@ -13462,6 +13777,15 @@
13462
13777
  "required" : [ "formData", "postURL" ],
13463
13778
  "type" : "object"
13464
13779
  },
13780
+ "STTResponse" : {
13781
+ "properties" : {
13782
+ "transcription" : {
13783
+ "type" : "string"
13784
+ }
13785
+ },
13786
+ "required" : [ "transcription" ],
13787
+ "type" : "object"
13788
+ },
13465
13789
  "Chat" : {
13466
13790
  "properties" : {
13467
13791
  "id" : {
@@ -14150,6 +14474,9 @@
14150
14474
  "voiceModelId" : {
14151
14475
  "type" : "string"
14152
14476
  },
14477
+ "speechToText" : {
14478
+ "$ref" : "#/components/schemas/SpeechToTextConfig"
14479
+ },
14153
14480
  "lipsync" : {
14154
14481
  "$ref" : "#/components/schemas/Lipsync"
14155
14482
  },
@@ -14171,6 +14498,19 @@
14171
14498
  "required" : [ "agentId", "name", "streamingEnabled" ],
14172
14499
  "type" : "object"
14173
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
+ },
14174
14514
  "Lipsync" : {
14175
14515
  "additionalProperties" : true,
14176
14516
  "properties" : {
@@ -14243,6 +14583,9 @@
14243
14583
  "voiceModelId" : {
14244
14584
  "type" : "string"
14245
14585
  },
14586
+ "speechToText" : {
14587
+ "$ref" : "#/components/schemas/SpeechToTextConfig"
14588
+ },
14246
14589
  "voice" : {
14247
14590
  "additionalProperties" : {
14248
14591
  "type" : "string"
@@ -14467,6 +14810,9 @@
14467
14810
  "voiceModelId" : {
14468
14811
  "type" : "string"
14469
14812
  },
14813
+ "speechToText" : {
14814
+ "$ref" : "#/components/schemas/SpeechToTextConfig"
14815
+ },
14470
14816
  "disableFillers" : {
14471
14817
  "type" : "boolean"
14472
14818
  },
@@ -15392,6 +15738,9 @@
15392
15738
  "hasEmbedding" : {
15393
15739
  "type" : "boolean"
15394
15740
  },
15741
+ "hasSpeechToText" : {
15742
+ "type" : "boolean"
15743
+ },
15395
15744
  "maxTokens" : {
15396
15745
  "minimum" : 1,
15397
15746
  "type" : "integer"
@@ -15404,6 +15753,27 @@
15404
15753
  "required" : [ "modelId", "name" ],
15405
15754
  "type" : "object"
15406
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
+ },
15407
15777
  "ProviderSimple" : {
15408
15778
  "properties" : {
15409
15779
  "id" : {
@@ -16475,15 +16845,6 @@
16475
16845
  "required" : [ "id", "src" ],
16476
16846
  "type" : "object"
16477
16847
  },
16478
- "STTResponse" : {
16479
- "properties" : {
16480
- "transcription" : {
16481
- "type" : "string"
16482
- }
16483
- },
16484
- "required" : [ "transcription" ],
16485
- "type" : "object"
16486
- },
16487
16848
  "ToolSecure" : {
16488
16849
  "additionalProperties" : true,
16489
16850
  "properties" : {
@@ -18631,6 +18992,21 @@
18631
18992
  "required" : [ "engine", "id", "name" ],
18632
18993
  "type" : "object"
18633
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
+ },
18634
19010
  "MetricForAgent_identifier" : {
18635
19011
  "properties" : {
18636
19012
  "agentId" : {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@breign/client",
3
- "version": "1.0.117",
3
+ "version": "1.0.119",
4
4
  "main": "dist/index.js",
5
5
  "exports": {
6
6
  ".": "./dist/index.js",