@ai-matrx/api 0.1.32 → 0.1.33

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 (66) hide show
  1. package/CHANGELOG.md +22 -1
  2. package/dist/agents.cjs +13 -13
  3. package/dist/agents.js +1 -1
  4. package/dist/ai.cjs +2 -2
  5. package/dist/ai.js +1 -1
  6. package/dist/apps.cjs +5 -5
  7. package/dist/apps.js +1 -1
  8. package/dist/architecture.cjs +12 -12
  9. package/dist/architecture.js +1 -1
  10. package/dist/audio.cjs +39 -39
  11. package/dist/audio.js +2 -2
  12. package/dist/chat.cjs +11 -11
  13. package/dist/chat.js +1 -1
  14. package/dist/{chunk-27ZEEIXM.cjs → chunk-2XQZ7UUM.cjs} +7 -1
  15. package/dist/{chunk-LYHAZQX5.js → chunk-4DIKNTZ5.js} +1 -1
  16. package/dist/{chunk-TMEGWPWE.cjs → chunk-BO4DXT4E.cjs} +37 -37
  17. package/dist/{chunk-X75SKCDS.js → chunk-DVYCIFMH.js} +7 -1
  18. package/dist/{chunk-VK5BH6FK.cjs → chunk-EC2LWEXH.cjs} +4 -4
  19. package/dist/{chunk-LYRANVIS.cjs → chunk-N72EQZ4X.cjs} +3 -3
  20. package/dist/{chunk-DKJGWA5L.js → chunk-PVQZBXTU.js} +1 -1
  21. package/dist/{chunk-5TRUQNVW.js → chunk-QGHXBN6P.js} +1 -1
  22. package/dist/code.cjs +6 -6
  23. package/dist/code.js +1 -1
  24. package/dist/communications.cjs +4 -4
  25. package/dist/communications.js +1 -1
  26. package/dist/computer.cjs +4 -4
  27. package/dist/computer.js +1 -1
  28. package/dist/content.cjs +4 -4
  29. package/dist/content.js +1 -1
  30. package/dist/crm.cjs +2 -2
  31. package/dist/crm.js +1 -1
  32. package/dist/data.cjs +4 -4
  33. package/dist/data.js +1 -1
  34. package/dist/education.cjs +4 -4
  35. package/dist/education.js +1 -1
  36. package/dist/files.cjs +228 -228
  37. package/dist/files.js +2 -2
  38. package/dist/index.cjs +58 -58
  39. package/dist/index.js +2 -2
  40. package/dist/integrations.cjs +5 -5
  41. package/dist/integrations.js +1 -1
  42. package/dist/intelligence.cjs +7 -7
  43. package/dist/intelligence.js +1 -1
  44. package/dist/knowledge.cjs +42 -42
  45. package/dist/knowledge.js +1 -1
  46. package/dist/legal.cjs +6 -6
  47. package/dist/legal.js +1 -1
  48. package/dist/marketing.cjs +82 -82
  49. package/dist/marketing.js +1 -1
  50. package/dist/masterwork.cjs +32 -32
  51. package/dist/masterwork.js +1 -1
  52. package/dist/media.cjs +11 -11
  53. package/dist/media.js +1 -1
  54. package/dist/platform.cjs +27 -27
  55. package/dist/platform.js +2 -2
  56. package/dist/publish.cjs +7 -7
  57. package/dist/publish.js +1 -1
  58. package/dist/recording.cjs +17 -17
  59. package/dist/recording.js +4 -4
  60. package/dist/stream.cjs +10 -10
  61. package/dist/stream.js +1 -1
  62. package/dist/web.cjs +27 -27
  63. package/dist/web.js +1 -1
  64. package/dist/workflows.cjs +13 -13
  65. package/dist/workflows.js +1 -1
  66. package/package.json +4 -4
package/CHANGELOG.md CHANGED
@@ -5,11 +5,32 @@
5
5
  - **Warm-up retries transient failures.** `createWarmup` re-sends a batch that failed with a network error or 408/425/429/5xx (not 501) after 2s, 8s and 30s while the scope is unchanged — a server rollover is exactly when a warm-up matters. New option `retryDelaysMs` (its length is the budget; `[]` disables). Refusals never retry. Consumer action: none.
6
6
  - **Removed** the deprecated aliases `ENDPOINTS.ai.chat` (use `ENDPOINTS.ai.manual`) and `ENDPOINTS.utilities.pdfExtractText` (use `ENDPOINTS.pdf.extractText`); no importer existed. Added `FEATURE.md`. Consumer action: none.
7
7
 
8
- ## 0.1.32
8
+ ## 0.1.33
9
9
 
10
10
  UNVERIFIED: this release has no Unreleased entry and the source comparison could not be made (the caller supplied no source comparison). Whether source changed is unknown; consumer action is unknown.
11
11
  Check the package's gitHead on npm against this version's gitHead: `git diff <previous gitHead> <this gitHead> -- apps/shared/api/src`.
12
12
 
13
+ ## 0.1.32
14
+
15
+ SOURCE CHANGED WITH NO RELEASE NOTE. This release shipped source changes that nobody described in an Unreleased entry,
16
+ so they may include breaking API changes. Consumer action is UNKNOWN: read the diff before upgrading.
17
+ Diff: `git diff e14cf17c46 a73b825ba7 -- apps/shared/api/src`
18
+
19
+ Changed shipped source files (33):
20
+ - `apps/shared/api/src/core/provider-failures.ts`
21
+ - `apps/shared/api/src/core/provider-usage.ts`
22
+ - `apps/shared/api/src/deployments.generated.ts`
23
+ - `apps/shared/api/src/generated/account.ts`
24
+ - `apps/shared/api/src/generated/agents.ts`
25
+ - `apps/shared/api/src/generated/ai.ts`
26
+ - `apps/shared/api/src/generated/apps.ts`
27
+ - `apps/shared/api/src/generated/architecture.ts`
28
+ - `apps/shared/api/src/generated/audio.ts`
29
+ - `apps/shared/api/src/generated/chat.ts`
30
+ - `apps/shared/api/src/generated/code.ts`
31
+ - `apps/shared/api/src/generated/commerce.ts`
32
+ - ...and 21 more
33
+
13
34
  ## 0.1.31
14
35
 
15
36
  SOURCE CHANGED WITH NO RELEASE NOTE. This release shipped source changes that nobody described in an Unreleased entry,
package/dist/agents.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunk27ZEEIXM_cjs = require('./chunk-27ZEEIXM.cjs');
3
+ var chunk2XQZ7UUM_cjs = require('./chunk-2XQZ7UUM.cjs');
4
4
  require('./chunk-2SXAAKGV.cjs');
5
5
 
6
6
  // src/generated/agents.ts
@@ -50,15 +50,15 @@ function resolvePromptBlocks(api, args, options) {
50
50
  }
51
51
  var $agentsStartAgent = { m: "POST", p: "/ai/agent/{agent_id}", d: "aidream", a: "guest", o: "required", s: "ndjson_or_json", n: "agents.agents_start_agent" };
52
52
  function agentsStartAgent(api, args, options) {
53
- return chunk27ZEEIXM_cjs.openJsonOrStream(api, $agentsStartAgent, args, options);
53
+ return chunk2XQZ7UUM_cjs.openJsonOrStream(api, $agentsStartAgent, args, options);
54
54
  }
55
55
  var $agentsStartAgentPost = { m: "POST", p: "/ai/agents/{agent_id}", d: "aidream", a: "guest", o: "required", s: "ndjson_or_json", n: "agents.agents_start_agent_post" };
56
56
  function agentsStartAgentPost(api, args, options) {
57
- return chunk27ZEEIXM_cjs.openJsonOrStream(api, $agentsStartAgentPost, args, options);
57
+ return chunk2XQZ7UUM_cjs.openJsonOrStream(api, $agentsStartAgentPost, args, options);
58
58
  }
59
59
  var $startMandatedAgent = { m: "POST", p: "/ai/mandates/{mandate_key}", d: "aidream", a: "guest", o: "required", s: "ndjson_or_json", n: "agents.start_mandated_agent" };
60
60
  function startMandatedAgent(api, args, options) {
61
- return chunk27ZEEIXM_cjs.openJsonOrStream(api, $startMandatedAgent, args, options);
61
+ return chunk2XQZ7UUM_cjs.openJsonOrStream(api, $startMandatedAgent, args, options);
62
62
  }
63
63
  var $invalidateAgentCache = { m: "POST", p: "/ai/agents/{agent_id}/invalidate-cache", d: "aidream", a: "guest", o: "required", n: "agents.invalidate_agent_cache" };
64
64
  function invalidateAgentCache(api, args, options) {
@@ -66,7 +66,7 @@ function invalidateAgentCache(api, args, options) {
66
66
  }
67
67
  var $mockStream = { m: "POST", p: "/ai/mock-stream/{scenario}", d: "aidream", a: "guest", o: "required", s: "ndjson", n: "agents.mock_stream" };
68
68
  function mockStream(api, args, options) {
69
- return chunk27ZEEIXM_cjs.openStream(api, $mockStream, args, options);
69
+ return chunk2XQZ7UUM_cjs.openStream(api, $mockStream, args, options);
70
70
  }
71
71
  var $listScenarios = { m: "GET", p: "/ai/mock-stream/scenarios", d: "aidream", a: "guest", o: "optional", n: "agents.list_scenarios" };
72
72
  function listScenarios(api, args, options) {
@@ -82,11 +82,11 @@ function getUserPromptsAndBuiltins(api, args, options) {
82
82
  }
83
83
  var $startPrompt = { m: "POST", p: "/ai/prompts/{prompt_id}", d: "aidream", a: "guest", o: "required", s: "ndjson", n: "agents.start_prompt" };
84
84
  function startPrompt(api, args, options) {
85
- return chunk27ZEEIXM_cjs.openStream(api, $startPrompt, args, options);
85
+ return chunk2XQZ7UUM_cjs.openStream(api, $startPrompt, args, options);
86
86
  }
87
87
  var $startAgentBlocks = { m: "POST", p: "/ai/agents-blocks/{agent_id}", d: "aidream", a: "guest", o: "required", s: "ndjson", n: "agents.start_agent_blocks" };
88
88
  function startAgentBlocks(api, args, options) {
89
- return chunk27ZEEIXM_cjs.openStream(api, $startAgentBlocks, args, options);
89
+ return chunk2XQZ7UUM_cjs.openStream(api, $startAgentBlocks, args, options);
90
90
  }
91
91
  var $previewContext = { m: "POST", p: "/ai/context/preview", d: "aidream", a: "guest", o: "required", n: "agents.preview_context" };
92
92
  function previewContext(api, args, options) {
@@ -174,7 +174,7 @@ function screenRun(api, args, options) {
174
174
  }
175
175
  var $createToolCall = { m: "POST", p: "/tools/calls", d: "aidream", a: "guest", o: "required", s: "ndjson", n: "agents.create_tool_call" };
176
176
  function createToolCall(api, args, options) {
177
- return chunk27ZEEIXM_cjs.openStream(api, $createToolCall, args, options);
177
+ return chunk2XQZ7UUM_cjs.openStream(api, $createToolCall, args, options);
178
178
  }
179
179
  var $getToolCall = { m: "GET", p: "/tools/calls/{call_id}", d: "aidream", a: "guest", o: "required", n: "agents.get_tool_call" };
180
180
  function getToolCall(api, args, options) {
@@ -246,7 +246,7 @@ function judgeFirstRuns(api, args, options) {
246
246
  }
247
247
  var $agentFromChat = { m: "POST", p: "/agent-studio/from-chat", d: "aidream", a: "guest", o: "required", s: "ndjson", n: "agents.agent_from_chat" };
248
248
  function agentFromChat(api, args, options) {
249
- return chunk27ZEEIXM_cjs.openStream(api, $agentFromChat, args, options);
249
+ return chunk2XQZ7UUM_cjs.openStream(api, $agentFromChat, args, options);
250
250
  }
251
251
  var $importPreview = { m: "POST", p: "/agent-studio/import/preview", d: "aidream", a: "guest", o: "required", n: "agents.import_preview" };
252
252
  function importPreview(api, args, options) {
@@ -258,7 +258,7 @@ function importDraft(api, args, options) {
258
258
  }
259
259
  var $adminAgentFromChat = { m: "POST", p: "/admin/agent-studio/from-chat", d: "aidream", a: "admin", o: "exempt", s: "ndjson", n: "agents.admin_agent_from_chat" };
260
260
  function adminAgentFromChat(api, args, options) {
261
- return chunk27ZEEIXM_cjs.openStream(api, $adminAgentFromChat, args, options);
261
+ return chunk2XQZ7UUM_cjs.openStream(api, $adminAgentFromChat, args, options);
262
262
  }
263
263
  var $adminToolsListTools = { m: "GET", p: "/admin/tools", d: "aidream", a: "admin", o: "exempt", n: "agents.admin_tools_list_tools" };
264
264
  function adminToolsListTools(api, args, options) {
@@ -294,7 +294,7 @@ function getOrCreateTestSession(api, args, options) {
294
294
  }
295
295
  var $executeToolTest = { m: "POST", p: "/tools/test/execute", d: "aidream", a: "guest", o: "required", s: "ndjson", n: "agents.execute_tool_test" };
296
296
  function executeToolTest(api, args, options) {
297
- return chunk27ZEEIXM_cjs.openStream(api, $executeToolTest, args, options);
297
+ return chunk2XQZ7UUM_cjs.openStream(api, $executeToolTest, args, options);
298
298
  }
299
299
  var $getDbSurfaceManifest = { m: "GET", p: "/surfaces/{client_name}/{surface_name}/manifest", d: "aidream", a: "guest", o: "exempt", n: "agents.get_db_surface_manifest" };
300
300
  function getDbSurfaceManifest(api, args, options) {
@@ -326,7 +326,7 @@ function previewVariableBinding(api, args, options) {
326
326
  }
327
327
  var $runMatrixBattle = { m: "POST", p: "/agent-battles/{set_id}/run", d: "aidream", a: "guest", o: "required", s: "ndjson", n: "agents.run_matrix_battle" };
328
328
  function runMatrixBattle(api, args, options) {
329
- return chunk27ZEEIXM_cjs.openStream(api, $runMatrixBattle, args, options);
329
+ return chunk2XQZ7UUM_cjs.openStream(api, $runMatrixBattle, args, options);
330
330
  }
331
331
  var $cancelMatrixBattle = { m: "POST", p: "/agent-battles/{set_id}/cancel", d: "aidream", a: "guest", o: "required", n: "agents.cancel_matrix_battle" };
332
332
  function cancelMatrixBattle(api, args, options) {
@@ -366,7 +366,7 @@ function recheck(api, args, options) {
366
366
  }
367
367
  var $stream = { m: "GET", p: "/agent-tests/runs/{run_id}/stream", d: "aidream", a: "guest", o: "required", s: "ndjson", n: "agents.stream" };
368
368
  function stream(api, args, options) {
369
- return chunk27ZEEIXM_cjs.openStream(api, $stream, args, options);
369
+ return chunk2XQZ7UUM_cjs.openStream(api, $stream, args, options);
370
370
  }
371
371
  var $parseCheck = { m: "POST", p: "/agent-tests/checks/parse", d: "aidream", a: "guest", o: "required", n: "agents.parse_check" };
372
372
  function parseCheck(api, args, options) {
package/dist/agents.js CHANGED
@@ -1,4 +1,4 @@
1
- import { openJsonOrStream, openStream } from './chunk-X75SKCDS.js';
1
+ import { openJsonOrStream, openStream } from './chunk-DVYCIFMH.js';
2
2
  import './chunk-KIEAFMKB.js';
3
3
 
4
4
  // src/generated/agents.ts
package/dist/ai.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunk27ZEEIXM_cjs = require('./chunk-27ZEEIXM.cjs');
3
+ var chunk2XQZ7UUM_cjs = require('./chunk-2XQZ7UUM.cjs');
4
4
  require('./chunk-2SXAAKGV.cjs');
5
5
 
6
6
  // src/generated/ai.ts
@@ -94,7 +94,7 @@ function listModels(api, args, options) {
94
94
  }
95
95
  var $chatCompletions = { m: "POST", p: "/v1/chat/completions", d: "matrx-local", a: "loopback_token", o: "exempt", s: "sse_or_json", n: "ai.chat_completions" };
96
96
  function chatCompletions(api, args, options) {
97
- return chunk27ZEEIXM_cjs.openJsonOrStream(api, $chatCompletions, args, options);
97
+ return chunk2XQZ7UUM_cjs.openJsonOrStream(api, $chatCompletions, args, options);
98
98
  }
99
99
  var $audioSpeech = { m: "POST", p: "/v1/audio/speech", d: "matrx-local", a: "loopback_token", o: "exempt", n: "ai.audio_speech" };
100
100
  function audioSpeech(api, args, options) {
package/dist/ai.js CHANGED
@@ -1,4 +1,4 @@
1
- import { openJsonOrStream } from './chunk-X75SKCDS.js';
1
+ import { openJsonOrStream } from './chunk-DVYCIFMH.js';
2
2
  import './chunk-KIEAFMKB.js';
3
3
 
4
4
  // src/generated/ai.ts
package/dist/apps.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunk27ZEEIXM_cjs = require('./chunk-27ZEEIXM.cjs');
3
+ var chunk2XQZ7UUM_cjs = require('./chunk-2XQZ7UUM.cjs');
4
4
  require('./chunk-2SXAAKGV.cjs');
5
5
 
6
6
  // src/generated/apps.ts
@@ -214,7 +214,7 @@ function getInstallStatus(api, args, options) {
214
214
  }
215
215
  var $streamInstallProgress = { m: "GET", p: "/capabilities/install/stream", d: "matrx-local", a: "loopback_token", o: "exempt", s: "sse", n: "apps.stream_install_progress" };
216
216
  function streamInstallProgress(api, args, options) {
217
- return chunk27ZEEIXM_cjs.openStream(api, $streamInstallProgress, args, options);
217
+ return chunk2XQZ7UUM_cjs.openStream(api, $streamInstallProgress, args, options);
218
218
  }
219
219
  var $tunnelStatus = { m: "GET", p: "/tunnel/status", d: "matrx-local", a: "public", o: "exempt", n: "apps.tunnel_status" };
220
220
  function tunnelStatus(api, args, options) {
@@ -234,15 +234,15 @@ function getSetupStatus(api, args, options) {
234
234
  }
235
235
  var $runInstall = { m: "POST", p: "/setup/install", d: "matrx-local", a: "loopback_open", o: "exempt", s: "sse", n: "apps.run_install" };
236
236
  function runInstall(api, args, options) {
237
- return chunk27ZEEIXM_cjs.openStream(api, $runInstall, args, options);
237
+ return chunk2XQZ7UUM_cjs.openStream(api, $runInstall, args, options);
238
238
  }
239
239
  var $installTranscription = { m: "POST", p: "/setup/install-transcription", d: "matrx-local", a: "loopback_open", o: "exempt", s: "sse", n: "apps.install_transcription" };
240
240
  function installTranscription(api, args, options) {
241
- return chunk27ZEEIXM_cjs.openStream(api, $installTranscription, args, options);
241
+ return chunk2XQZ7UUM_cjs.openStream(api, $installTranscription, args, options);
242
242
  }
243
243
  var $streamLogs = { m: "GET", p: "/setup/logs", d: "matrx-local", a: "loopback_open", o: "exempt", s: "sse", n: "apps.stream_logs" };
244
244
  function streamLogs(api, args, options) {
245
- return chunk27ZEEIXM_cjs.openStream(api, $streamLogs, args, options);
245
+ return chunk2XQZ7UUM_cjs.openStream(api, $streamLogs, args, options);
246
246
  }
247
247
  var $debugState = { m: "GET", p: "/setup/debug", d: "matrx-local", a: "loopback_open", o: "exempt", n: "apps.debug_state" };
248
248
  function debugState(api, args, options) {
package/dist/apps.js CHANGED
@@ -1,4 +1,4 @@
1
- import { openStream } from './chunk-X75SKCDS.js';
1
+ import { openStream } from './chunk-DVYCIFMH.js';
2
2
  import './chunk-KIEAFMKB.js';
3
3
 
4
4
  // src/generated/apps.ts
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunk27ZEEIXM_cjs = require('./chunk-27ZEEIXM.cjs');
3
+ var chunk2XQZ7UUM_cjs = require('./chunk-2XQZ7UUM.cjs');
4
4
  require('./chunk-2SXAAKGV.cjs');
5
5
 
6
6
  // src/generated/architecture.ts
@@ -38,35 +38,35 @@ function servingCheck(api, args, options) {
38
38
  }
39
39
  var $searchAsKinds = { m: "POST", p: "/search-kinds/search", d: "aidream", a: "guest", o: "required", s: "ndjson", n: "architecture.search_as_kinds" };
40
40
  function searchAsKinds(api, args, options) {
41
- return chunk27ZEEIXM_cjs.openStream(api, $searchAsKinds, args, options);
41
+ return chunk2XQZ7UUM_cjs.openStream(api, $searchAsKinds, args, options);
42
42
  }
43
43
  var $placeReviews = { m: "POST", p: "/search-kinds/place-reviews", d: "aidream", a: "guest", o: "required", s: "ndjson", n: "architecture.place_reviews" };
44
44
  function placeReviews(api, args, options) {
45
- return chunk27ZEEIXM_cjs.openStream(api, $placeReviews, args, options);
45
+ return chunk2XQZ7UUM_cjs.openStream(api, $placeReviews, args, options);
46
46
  }
47
47
  var $searchByImage = { m: "POST", p: "/search-kinds/image", d: "aidream", a: "guest", o: "required", s: "ndjson", n: "architecture.search_by_image" };
48
48
  function searchByImage(api, args, options) {
49
- return chunk27ZEEIXM_cjs.openStream(api, $searchByImage, args, options);
49
+ return chunk2XQZ7UUM_cjs.openStream(api, $searchByImage, args, options);
50
50
  }
51
51
  var $rankLandscapeAsKinds = { m: "POST", p: "/rank-kinds/landscape", d: "aidream", a: "guest", o: "required", s: "ndjson", n: "architecture.rank_landscape_as_kinds" };
52
52
  function rankLandscapeAsKinds(api, args, options) {
53
- return chunk27ZEEIXM_cjs.openStream(api, $rankLandscapeAsKinds, args, options);
53
+ return chunk2XQZ7UUM_cjs.openStream(api, $rankLandscapeAsKinds, args, options);
54
54
  }
55
55
  var $ragSearchAsKinds = { m: "POST", p: "/rag-kinds/search", d: "aidream", a: "guest", o: "required", s: "ndjson", n: "architecture.rag_search_as_kinds" };
56
56
  function ragSearchAsKinds(api, args, options) {
57
- return chunk27ZEEIXM_cjs.openStream(api, $ragSearchAsKinds, args, options);
57
+ return chunk2XQZ7UUM_cjs.openStream(api, $ragSearchAsKinds, args, options);
58
58
  }
59
59
  var $tableReadAsKinds = { m: "POST", p: "/table-kinds/read", d: "aidream", a: "guest", o: "required", s: "ndjson", n: "architecture.table_read_as_kinds" };
60
60
  function tableReadAsKinds(api, args, options) {
61
- return chunk27ZEEIXM_cjs.openStream(api, $tableReadAsKinds, args, options);
61
+ return chunk2XQZ7UUM_cjs.openStream(api, $tableReadAsKinds, args, options);
62
62
  }
63
63
  var $scrapeAsKind = { m: "POST", p: "/scraper-kinds/scrape", d: "aidream", a: "guest", o: "required", s: "ndjson", n: "architecture.scrape_as_kind" };
64
64
  function scrapeAsKind(api, args, options) {
65
- return chunk27ZEEIXM_cjs.openStream(api, $scrapeAsKind, args, options);
65
+ return chunk2XQZ7UUM_cjs.openStream(api, $scrapeAsKind, args, options);
66
66
  }
67
67
  var $scrapeManyAsKind = { m: "POST", p: "/scraper-kinds/scrape-many", d: "aidream", a: "guest", o: "required", s: "ndjson", n: "architecture.scrape_many_as_kind" };
68
68
  function scrapeManyAsKind(api, args, options) {
69
- return chunk27ZEEIXM_cjs.openStream(api, $scrapeManyAsKind, args, options);
69
+ return chunk2XQZ7UUM_cjs.openStream(api, $scrapeManyAsKind, args, options);
70
70
  }
71
71
  var $saveOutput = { m: "POST", p: "/kind-outputs/save", d: "aidream", a: "guest", o: "required", n: "architecture.save_output" };
72
72
  function saveOutput(api, args, options) {
@@ -90,7 +90,7 @@ function operationStatus(api, args, options) {
90
90
  }
91
91
  var $rejoinOperationStream = { m: "POST", p: "/runtime/operations/{request_id}/rejoin", d: "aidream", a: "guest", o: "required", s: "ndjson", n: "architecture.rejoin_operation_stream" };
92
92
  function rejoinOperationStream(api, args, options) {
93
- return chunk27ZEEIXM_cjs.openStream(api, $rejoinOperationStream, args, options);
93
+ return chunk2XQZ7UUM_cjs.openStream(api, $rejoinOperationStream, args, options);
94
94
  }
95
95
  var $operationsByLink = { m: "GET", p: "/runtime/operations/by-link/{link_kind}/{link_id}", d: "aidream", a: "guest", o: "optional", n: "architecture.operations_by_link" };
96
96
  function operationsByLink(api, args, options) {
@@ -102,7 +102,7 @@ function operationEvents(api, args, options) {
102
102
  }
103
103
  var $operationEventsStream = { m: "GET", p: "/runtime/executions/{execution_id}/events/stream", d: "aidream", a: "guest", o: "optional", s: "sse", n: "architecture.operation_events_stream" };
104
104
  function operationEventsStream(api, args, options) {
105
- return chunk27ZEEIXM_cjs.openStream(api, $operationEventsStream, args, options);
105
+ return chunk2XQZ7UUM_cjs.openStream(api, $operationEventsStream, args, options);
106
106
  }
107
107
  var $listComputeTargets = { m: "GET", p: "/compute-targets/", d: "aidream", a: "user", o: "required", n: "architecture.list_compute_targets" };
108
108
  function listComputeTargets(api, args, options) {
@@ -798,7 +798,7 @@ function orchestratorProxyFsDelete(api, args, options) {
798
798
  }
799
799
  var $proxyExecStream = { m: "POST", p: "/sandboxes/{sandbox_id}/exec/stream", d: "sandbox-orchestrator", a: "scoped", o: "exempt", s: "sse", n: "architecture.proxy_exec_stream" };
800
800
  function proxyExecStream(api, args, options) {
801
- return chunk27ZEEIXM_cjs.openStream(api, $proxyExecStream, args, options);
801
+ return chunk2XQZ7UUM_cjs.openStream(api, $proxyExecStream, args, options);
802
802
  }
803
803
  var $orchestratorProxyGit = { m: "GET", p: "/sandboxes/{sandbox_id}/git/{path}", d: "sandbox-orchestrator", a: "scoped", o: "exempt", n: "architecture.orchestrator_proxy_git" };
804
804
  function orchestratorProxyGit(api, args, options) {
@@ -1,4 +1,4 @@
1
- import { openStream } from './chunk-X75SKCDS.js';
1
+ import { openStream } from './chunk-DVYCIFMH.js';
2
2
  import './chunk-KIEAFMKB.js';
3
3
 
4
4
  // src/generated/architecture.ts
package/dist/audio.cjs CHANGED
@@ -1,156 +1,156 @@
1
1
  'use strict';
2
2
 
3
- var chunkVK5BH6FK_cjs = require('./chunk-VK5BH6FK.cjs');
4
- require('./chunk-27ZEEIXM.cjs');
3
+ var chunkEC2LWEXH_cjs = require('./chunk-EC2LWEXH.cjs');
4
+ require('./chunk-2XQZ7UUM.cjs');
5
5
  require('./chunk-2SXAAKGV.cjs');
6
6
 
7
7
 
8
8
 
9
9
  Object.defineProperty(exports, "blendPreview", {
10
10
  enumerable: true,
11
- get: function () { return chunkVK5BH6FK_cjs.blendPreview; }
11
+ get: function () { return chunkEC2LWEXH_cjs.blendPreview; }
12
12
  });
13
13
  Object.defineProperty(exports, "blendSave", {
14
14
  enumerable: true,
15
- get: function () { return chunkVK5BH6FK_cjs.blendSave; }
15
+ get: function () { return chunkEC2LWEXH_cjs.blendSave; }
16
16
  });
17
17
  Object.defineProperty(exports, "call", {
18
18
  enumerable: true,
19
- get: function () { return chunkVK5BH6FK_cjs.call; }
19
+ get: function () { return chunkEC2LWEXH_cjs.call; }
20
20
  });
21
21
  Object.defineProperty(exports, "completeRecordingJournal", {
22
22
  enumerable: true,
23
- get: function () { return chunkVK5BH6FK_cjs.completeRecordingJournal; }
23
+ get: function () { return chunkEC2LWEXH_cjs.completeRecordingJournal; }
24
24
  });
25
25
  Object.defineProperty(exports, "configureWakeWord", {
26
26
  enumerable: true,
27
- get: function () { return chunkVK5BH6FK_cjs.configureWakeWord; }
27
+ get: function () { return chunkEC2LWEXH_cjs.configureWakeWord; }
28
28
  });
29
29
  Object.defineProperty(exports, "createRecordingJournalChunk", {
30
30
  enumerable: true,
31
- get: function () { return chunkVK5BH6FK_cjs.createRecordingJournalChunk; }
31
+ get: function () { return chunkEC2LWEXH_cjs.createRecordingJournalChunk; }
32
32
  });
33
33
  Object.defineProperty(exports, "deleteCustomVoice", {
34
34
  enumerable: true,
35
- get: function () { return chunkVK5BH6FK_cjs.deleteCustomVoice; }
35
+ get: function () { return chunkEC2LWEXH_cjs.deleteCustomVoice; }
36
36
  });
37
37
  Object.defineProperty(exports, "deleteRecordingJournal", {
38
38
  enumerable: true,
39
- get: function () { return chunkVK5BH6FK_cjs.deleteRecordingJournal; }
39
+ get: function () { return chunkEC2LWEXH_cjs.deleteRecordingJournal; }
40
40
  });
41
41
  Object.defineProperty(exports, "dismissWakeWord", {
42
42
  enumerable: true,
43
- get: function () { return chunkVK5BH6FK_cjs.dismissWakeWord; }
43
+ get: function () { return chunkEC2LWEXH_cjs.dismissWakeWord; }
44
44
  });
45
45
  Object.defineProperty(exports, "downloadModel", {
46
46
  enumerable: true,
47
- get: function () { return chunkVK5BH6FK_cjs.downloadModel; }
47
+ get: function () { return chunkEC2LWEXH_cjs.downloadModel; }
48
48
  });
49
49
  Object.defineProperty(exports, "downloadModelWithProgress", {
50
50
  enumerable: true,
51
- get: function () { return chunkVK5BH6FK_cjs.downloadModelWithProgress; }
51
+ get: function () { return chunkEC2LWEXH_cjs.downloadModelWithProgress; }
52
52
  });
53
53
  Object.defineProperty(exports, "downloadOwwModel", {
54
54
  enumerable: true,
55
- get: function () { return chunkVK5BH6FK_cjs.downloadOwwModel; }
55
+ get: function () { return chunkEC2LWEXH_cjs.downloadOwwModel; }
56
56
  });
57
57
  Object.defineProperty(exports, "eventStream", {
58
58
  enumerable: true,
59
- get: function () { return chunkVK5BH6FK_cjs.eventStream; }
59
+ get: function () { return chunkEC2LWEXH_cjs.eventStream; }
60
60
  });
61
61
  Object.defineProperty(exports, "getRecordingJournal", {
62
62
  enumerable: true,
63
- get: function () { return chunkVK5BH6FK_cjs.getRecordingJournal; }
63
+ get: function () { return chunkEC2LWEXH_cjs.getRecordingJournal; }
64
64
  });
65
65
  Object.defineProperty(exports, "getRecordingJournals", {
66
66
  enumerable: true,
67
- get: function () { return chunkVK5BH6FK_cjs.getRecordingJournals; }
67
+ get: function () { return chunkEC2LWEXH_cjs.getRecordingJournals; }
68
68
  });
69
69
  Object.defineProperty(exports, "getStatus", {
70
70
  enumerable: true,
71
- get: function () { return chunkVK5BH6FK_cjs.getStatus; }
71
+ get: function () { return chunkEC2LWEXH_cjs.getStatus; }
72
72
  });
73
73
  Object.defineProperty(exports, "importVoiceFile", {
74
74
  enumerable: true,
75
- get: function () { return chunkVK5BH6FK_cjs.importVoiceFile; }
75
+ get: function () { return chunkEC2LWEXH_cjs.importVoiceFile; }
76
76
  });
77
77
  Object.defineProperty(exports, "listCustomVoices", {
78
78
  enumerable: true,
79
- get: function () { return chunkVK5BH6FK_cjs.listCustomVoices; }
79
+ get: function () { return chunkEC2LWEXH_cjs.listCustomVoices; }
80
80
  });
81
81
  Object.defineProperty(exports, "listModels", {
82
82
  enumerable: true,
83
- get: function () { return chunkVK5BH6FK_cjs.listModels; }
83
+ get: function () { return chunkEC2LWEXH_cjs.listModels; }
84
84
  });
85
85
  Object.defineProperty(exports, "listVoices", {
86
86
  enumerable: true,
87
- get: function () { return chunkVK5BH6FK_cjs.listVoices; }
87
+ get: function () { return chunkEC2LWEXH_cjs.listVoices; }
88
88
  });
89
89
  Object.defineProperty(exports, "muteWakeWord", {
90
90
  enumerable: true,
91
- get: function () { return chunkVK5BH6FK_cjs.muteWakeWord; }
91
+ get: function () { return chunkEC2LWEXH_cjs.muteWakeWord; }
92
92
  });
93
93
  Object.defineProperty(exports, "previewVoice", {
94
94
  enumerable: true,
95
- get: function () { return chunkVK5BH6FK_cjs.previewVoice; }
95
+ get: function () { return chunkEC2LWEXH_cjs.previewVoice; }
96
96
  });
97
97
  Object.defineProperty(exports, "renameCustomVoice", {
98
98
  enumerable: true,
99
- get: function () { return chunkVK5BH6FK_cjs.renameCustomVoice; }
99
+ get: function () { return chunkEC2LWEXH_cjs.renameCustomVoice; }
100
100
  });
101
101
  Object.defineProperty(exports, "startWakeWord", {
102
102
  enumerable: true,
103
- get: function () { return chunkVK5BH6FK_cjs.startWakeWord; }
103
+ get: function () { return chunkEC2LWEXH_cjs.startWakeWord; }
104
104
  });
105
105
  Object.defineProperty(exports, "stopWakeWord", {
106
106
  enumerable: true,
107
- get: function () { return chunkVK5BH6FK_cjs.stopWakeWord; }
107
+ get: function () { return chunkEC2LWEXH_cjs.stopWakeWord; }
108
108
  });
109
109
  Object.defineProperty(exports, "synthesize", {
110
110
  enumerable: true,
111
- get: function () { return chunkVK5BH6FK_cjs.synthesize; }
111
+ get: function () { return chunkEC2LWEXH_cjs.synthesize; }
112
112
  });
113
113
  Object.defineProperty(exports, "synthesizeStream", {
114
114
  enumerable: true,
115
- get: function () { return chunkVK5BH6FK_cjs.synthesizeStream; }
115
+ get: function () { return chunkEC2LWEXH_cjs.synthesizeStream; }
116
116
  });
117
117
  Object.defineProperty(exports, "textToSpeech", {
118
118
  enumerable: true,
119
- get: function () { return chunkVK5BH6FK_cjs.textToSpeech; }
119
+ get: function () { return chunkEC2LWEXH_cjs.textToSpeech; }
120
120
  });
121
121
  Object.defineProperty(exports, "transcribeFile", {
122
122
  enumerable: true,
123
- get: function () { return chunkVK5BH6FK_cjs.transcribeFile; }
123
+ get: function () { return chunkEC2LWEXH_cjs.transcribeFile; }
124
124
  });
125
125
  Object.defineProperty(exports, "transcribeUpload", {
126
126
  enumerable: true,
127
- get: function () { return chunkVK5BH6FK_cjs.transcribeUpload; }
127
+ get: function () { return chunkEC2LWEXH_cjs.transcribeUpload; }
128
128
  });
129
129
  Object.defineProperty(exports, "transcribeUrl", {
130
130
  enumerable: true,
131
- get: function () { return chunkVK5BH6FK_cjs.transcribeUrl; }
131
+ get: function () { return chunkEC2LWEXH_cjs.transcribeUrl; }
132
132
  });
133
133
  Object.defineProperty(exports, "triggerWakeWord", {
134
134
  enumerable: true,
135
- get: function () { return chunkVK5BH6FK_cjs.triggerWakeWord; }
135
+ get: function () { return chunkEC2LWEXH_cjs.triggerWakeWord; }
136
136
  });
137
137
  Object.defineProperty(exports, "ttsStatus", {
138
138
  enumerable: true,
139
- get: function () { return chunkVK5BH6FK_cjs.ttsStatus; }
139
+ get: function () { return chunkEC2LWEXH_cjs.ttsStatus; }
140
140
  });
141
141
  Object.defineProperty(exports, "unload", {
142
142
  enumerable: true,
143
- get: function () { return chunkVK5BH6FK_cjs.unload; }
143
+ get: function () { return chunkEC2LWEXH_cjs.unload; }
144
144
  });
145
145
  Object.defineProperty(exports, "unmuteWakeWord", {
146
146
  enumerable: true,
147
- get: function () { return chunkVK5BH6FK_cjs.unmuteWakeWord; }
147
+ get: function () { return chunkEC2LWEXH_cjs.unmuteWakeWord; }
148
148
  });
149
149
  Object.defineProperty(exports, "voicePreviewRoute", {
150
150
  enumerable: true,
151
- get: function () { return chunkVK5BH6FK_cjs.voicePreviewRoute; }
151
+ get: function () { return chunkEC2LWEXH_cjs.voicePreviewRoute; }
152
152
  });
153
153
  Object.defineProperty(exports, "youtubeTranscript", {
154
154
  enumerable: true,
155
- get: function () { return chunkVK5BH6FK_cjs.youtubeTranscript; }
155
+ get: function () { return chunkEC2LWEXH_cjs.youtubeTranscript; }
156
156
  });
package/dist/audio.js CHANGED
@@ -1,3 +1,3 @@
1
- export { blendPreview, blendSave, call, completeRecordingJournal, configureWakeWord, createRecordingJournalChunk, deleteCustomVoice, deleteRecordingJournal, dismissWakeWord, downloadModel, downloadModelWithProgress, downloadOwwModel, eventStream, getRecordingJournal, getRecordingJournals, getStatus, importVoiceFile, listCustomVoices, listModels, listVoices, muteWakeWord, previewVoice, renameCustomVoice, startWakeWord, stopWakeWord, synthesize, synthesizeStream, textToSpeech, transcribeFile, transcribeUpload, transcribeUrl, triggerWakeWord, ttsStatus, unload, unmuteWakeWord, voicePreviewRoute, youtubeTranscript } from './chunk-5TRUQNVW.js';
2
- import './chunk-X75SKCDS.js';
1
+ export { blendPreview, blendSave, call, completeRecordingJournal, configureWakeWord, createRecordingJournalChunk, deleteCustomVoice, deleteRecordingJournal, dismissWakeWord, downloadModel, downloadModelWithProgress, downloadOwwModel, eventStream, getRecordingJournal, getRecordingJournals, getStatus, importVoiceFile, listCustomVoices, listModels, listVoices, muteWakeWord, previewVoice, renameCustomVoice, startWakeWord, stopWakeWord, synthesize, synthesizeStream, textToSpeech, transcribeFile, transcribeUpload, transcribeUrl, triggerWakeWord, ttsStatus, unload, unmuteWakeWord, voicePreviewRoute, youtubeTranscript } from './chunk-QGHXBN6P.js';
2
+ import './chunk-DVYCIFMH.js';
3
3
  import './chunk-KIEAFMKB.js';
package/dist/chat.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunk27ZEEIXM_cjs = require('./chunk-27ZEEIXM.cjs');
3
+ var chunk2XQZ7UUM_cjs = require('./chunk-2XQZ7UUM.cjs');
4
4
  require('./chunk-2SXAAKGV.cjs');
5
5
 
6
6
  // src/generated/chat.ts
@@ -14,27 +14,27 @@ function conversationsWarmConversationPost(api, args, options) {
14
14
  }
15
15
  var $chat = { m: "POST", p: "/ai/manual", d: "aidream", a: "guest", o: "required", s: "ndjson_or_json", n: "chat.chat" };
16
16
  function chat(api, args, options) {
17
- return chunk27ZEEIXM_cjs.openJsonOrStream(api, $chat, args, options);
17
+ return chunk2XQZ7UUM_cjs.openJsonOrStream(api, $chat, args, options);
18
18
  }
19
19
  var $chatPost = { m: "POST", p: "/ai/chat", d: "aidream", a: "guest", o: "required", s: "ndjson_or_json", n: "chat.chat_post" };
20
20
  function chatPost(api, args, options) {
21
- return chunk27ZEEIXM_cjs.openJsonOrStream(api, $chatPost, args, options);
21
+ return chunk2XQZ7UUM_cjs.openJsonOrStream(api, $chatPost, args, options);
22
22
  }
23
23
  var $conversationsContinueConversation = { m: "POST", p: "/ai/conversation/{conversation_id}", d: "aidream", a: "guest", o: "required", s: "ndjson", n: "chat.conversations_continue_conversation" };
24
24
  function conversationsContinueConversation(api, args, options) {
25
- return chunk27ZEEIXM_cjs.openStream(api, $conversationsContinueConversation, args, options);
25
+ return chunk2XQZ7UUM_cjs.openStream(api, $conversationsContinueConversation, args, options);
26
26
  }
27
27
  var $conversationsContinueConversationPost = { m: "POST", p: "/ai/conversations/{conversation_id}", d: "aidream", a: "guest", o: "required", s: "ndjson", n: "chat.conversations_continue_conversation_post" };
28
28
  function conversationsContinueConversationPost(api, args, options) {
29
- return chunk27ZEEIXM_cjs.openStream(api, $conversationsContinueConversationPost, args, options);
29
+ return chunk2XQZ7UUM_cjs.openStream(api, $conversationsContinueConversationPost, args, options);
30
30
  }
31
31
  var $conversationsForkAndRun = { m: "POST", p: "/ai/conversation/{conversation_id}/fork-and-run", d: "aidream", a: "guest", o: "required", s: "ndjson", n: "chat.conversations_fork_and_run" };
32
32
  function conversationsForkAndRun(api, args, options) {
33
- return chunk27ZEEIXM_cjs.openStream(api, $conversationsForkAndRun, args, options);
33
+ return chunk2XQZ7UUM_cjs.openStream(api, $conversationsForkAndRun, args, options);
34
34
  }
35
35
  var $conversationsForkAndRunPost = { m: "POST", p: "/ai/conversations/{conversation_id}/fork-and-run", d: "aidream", a: "guest", o: "required", s: "ndjson", n: "chat.conversations_fork_and_run_post" };
36
36
  function conversationsForkAndRunPost(api, args, options) {
37
- return chunk27ZEEIXM_cjs.openStream(api, $conversationsForkAndRunPost, args, options);
37
+ return chunk2XQZ7UUM_cjs.openStream(api, $conversationsForkAndRunPost, args, options);
38
38
  }
39
39
  var $conversationsSubmitToolResults = { m: "POST", p: "/ai/conversation/{conversation_id}/tool_results", d: "aidream", a: "guest", o: "required", n: "chat.conversations_submit_tool_results" };
40
40
  function conversationsSubmitToolResults(api, args, options) {
@@ -90,11 +90,11 @@ function conversationsCancelInboxItemDelete(api, args, options) {
90
90
  }
91
91
  var $conversationsResumeConversation = { m: "POST", p: "/ai/conversation/{conversation_id}/resume", d: "aidream", a: "guest", o: "required", s: "ndjson", n: "chat.conversations_resume_conversation" };
92
92
  function conversationsResumeConversation(api, args, options) {
93
- return chunk27ZEEIXM_cjs.openStream(api, $conversationsResumeConversation, args, options);
93
+ return chunk2XQZ7UUM_cjs.openStream(api, $conversationsResumeConversation, args, options);
94
94
  }
95
95
  var $conversationsResumeConversationPost = { m: "POST", p: "/ai/conversations/{conversation_id}/resume", d: "aidream", a: "guest", o: "required", s: "ndjson", n: "chat.conversations_resume_conversation_post" };
96
96
  function conversationsResumeConversationPost(api, args, options) {
97
- return chunk27ZEEIXM_cjs.openStream(api, $conversationsResumeConversationPost, args, options);
97
+ return chunk2XQZ7UUM_cjs.openStream(api, $conversationsResumeConversationPost, args, options);
98
98
  }
99
99
  var $conversationsGetConversationSandbox = { m: "GET", p: "/ai/conversation/{conversation_id}/sandbox", d: "aidream", a: "guest", o: "optional", n: "chat.conversations_get_conversation_sandbox" };
100
100
  function conversationsGetConversationSandbox(api, args, options) {
@@ -146,11 +146,11 @@ function warmHealthRoute(api, args, options) {
146
146
  }
147
147
  var $directChat = { m: "POST", p: "/ai/chat/direct-chat", d: "aidream", a: "guest", o: "required", s: "ndjson", n: "chat.direct_chat" };
148
148
  function directChat(api, args, options) {
149
- return chunk27ZEEIXM_cjs.openStream(api, $directChat, args, options);
149
+ return chunk2XQZ7UUM_cjs.openStream(api, $directChat, args, options);
150
150
  }
151
151
  var $promptExecution = { m: "POST", p: "/ai/chat/prompt-execution", d: "aidream", a: "guest", o: "required", s: "ndjson", n: "chat.prompt_execution" };
152
152
  function promptExecution(api, args, options) {
153
- return chunk27ZEEIXM_cjs.openStream(api, $promptExecution, args, options);
153
+ return chunk2XQZ7UUM_cjs.openStream(api, $promptExecution, args, options);
154
154
  }
155
155
  var $readSessionOffer = { m: "GET", p: "/ai/sessions/offers/{offer_id}", d: "aidream", a: "guest", o: "required", n: "chat.read_session_offer" };
156
156
  function readSessionOffer(api, args, options) {
package/dist/chat.js CHANGED
@@ -1,4 +1,4 @@
1
- import { openJsonOrStream, openStream } from './chunk-X75SKCDS.js';
1
+ import { openJsonOrStream, openStream } from './chunk-DVYCIFMH.js';
2
2
  import './chunk-KIEAFMKB.js';
3
3
 
4
4
  // src/generated/chat.ts
@@ -92,6 +92,12 @@ async function parseHttpError(response) {
92
92
  }
93
93
  return parseHttpErrorBody(body, status);
94
94
  }
95
+ function honestUserMessage(userMessage, message) {
96
+ if (!isGenericUserMessage(userMessage)) return userMessage;
97
+ const m = typeof message === "string" ? message.trim() : "";
98
+ if (!m || /^[[{(<]/.test(m) || isGenericUserMessage(m) || !/\s/.test(m)) return userMessage;
99
+ return m;
100
+ }
95
101
  function parseHttpErrorBody(body, status) {
96
102
  if (!body) {
97
103
  return new BackendApiError({
@@ -105,7 +111,7 @@ function parseHttpErrorBody(body, status) {
105
111
  return new BackendApiError({
106
112
  code: body.error,
107
113
  detail: body.message || `HTTP ${status}`,
108
- userMessage: body.user_message,
114
+ userMessage: honestUserMessage(body.user_message, body.message),
109
115
  details: body.details ?? null,
110
116
  requestId: typeof body.request_id === "string" ? body.request_id : void 0,
111
117
  status
@@ -1,4 +1,4 @@
1
- import { openStream } from './chunk-X75SKCDS.js';
1
+ import { openStream } from './chunk-DVYCIFMH.js';
2
2
 
3
3
  // src/generated/platform.ts
4
4
  var $initiateOauth = { m: "GET", p: "/auth/aimatrx", d: "aidream", a: "public", o: "exempt", n: "platform.initiate_oauth" };