@ai-matrx/api 0.1.32 → 0.1.34

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 (132) hide show
  1. package/CHANGELOG.md +31 -1
  2. package/dist/account.d.cts +2 -2
  3. package/dist/account.d.ts +2 -2
  4. package/dist/agents.cjs +13 -13
  5. package/dist/agents.d.cts +2 -2
  6. package/dist/agents.d.ts +2 -2
  7. package/dist/agents.js +1 -1
  8. package/dist/ai.cjs +2 -2
  9. package/dist/ai.d.cts +2 -2
  10. package/dist/ai.d.ts +2 -2
  11. package/dist/ai.js +1 -1
  12. package/dist/apps.cjs +5 -5
  13. package/dist/apps.d.cts +2 -2
  14. package/dist/apps.d.ts +2 -2
  15. package/dist/apps.js +1 -1
  16. package/dist/architecture.cjs +12 -12
  17. package/dist/architecture.d.cts +2 -2
  18. package/dist/architecture.d.ts +2 -2
  19. package/dist/architecture.js +1 -1
  20. package/dist/audio.cjs +39 -39
  21. package/dist/audio.d.cts +2 -2
  22. package/dist/audio.d.ts +2 -2
  23. package/dist/audio.js +2 -2
  24. package/dist/chat.cjs +11 -11
  25. package/dist/chat.d.cts +2 -2
  26. package/dist/chat.d.ts +2 -2
  27. package/dist/chat.js +1 -1
  28. package/dist/{chunk-5TRUQNVW.js → chunk-67DK7VHF.js} +1 -1
  29. package/dist/{chunk-DKJGWA5L.js → chunk-EGRMZUWP.js} +1 -1
  30. package/dist/{chunk-LYHAZQX5.js → chunk-HNWTDCNB.js} +1 -1
  31. package/dist/{chunk-VK5BH6FK.cjs → chunk-KQHZSWOU.cjs} +4 -4
  32. package/dist/{chunk-LYRANVIS.cjs → chunk-MRLXHFFG.cjs} +3 -3
  33. package/dist/{chunk-27ZEEIXM.cjs → chunk-UVA472AM.cjs} +8 -2
  34. package/dist/{chunk-X75SKCDS.js → chunk-W4USV6BN.js} +8 -2
  35. package/dist/{chunk-TMEGWPWE.cjs → chunk-XCBOVARI.cjs} +37 -37
  36. package/dist/code.cjs +6 -6
  37. package/dist/code.d.cts +2 -2
  38. package/dist/code.d.ts +2 -2
  39. package/dist/code.js +1 -1
  40. package/dist/commerce.d.cts +2 -2
  41. package/dist/commerce.d.ts +2 -2
  42. package/dist/communications.cjs +4 -4
  43. package/dist/communications.d.cts +2 -2
  44. package/dist/communications.d.ts +2 -2
  45. package/dist/communications.js +1 -1
  46. package/dist/computer.cjs +4 -4
  47. package/dist/computer.d.cts +2 -2
  48. package/dist/computer.d.ts +2 -2
  49. package/dist/computer.js +1 -1
  50. package/dist/content.cjs +4 -4
  51. package/dist/content.d.cts +2 -2
  52. package/dist/content.d.ts +2 -2
  53. package/dist/content.js +1 -1
  54. package/dist/crm.cjs +2 -2
  55. package/dist/crm.d.cts +2 -2
  56. package/dist/crm.d.ts +2 -2
  57. package/dist/crm.js +1 -1
  58. package/dist/data.cjs +4 -4
  59. package/dist/data.d.cts +2 -2
  60. package/dist/data.d.ts +2 -2
  61. package/dist/data.js +1 -1
  62. package/dist/education.cjs +4 -4
  63. package/dist/education.d.cts +2 -2
  64. package/dist/education.d.ts +2 -2
  65. package/dist/education.js +1 -1
  66. package/dist/files.cjs +228 -228
  67. package/dist/files.d.cts +2 -2
  68. package/dist/files.d.ts +2 -2
  69. package/dist/files.js +2 -2
  70. package/dist/human-resources.d.cts +2 -2
  71. package/dist/human-resources.d.ts +2 -2
  72. package/dist/{index-A1nOdg4F.d.cts → index-D7z-_LrQ.d.cts} +2 -2
  73. package/dist/{index-A1nOdg4F.d.ts → index-D7z-_LrQ.d.ts} +2 -2
  74. package/dist/index.cjs +58 -58
  75. package/dist/index.d.cts +2 -2
  76. package/dist/index.d.ts +2 -2
  77. package/dist/index.js +2 -2
  78. package/dist/integrations.cjs +5 -53
  79. package/dist/integrations.d.cts +3 -175
  80. package/dist/integrations.d.ts +3 -175
  81. package/dist/integrations.js +2 -42
  82. package/dist/intelligence.cjs +7 -7
  83. package/dist/intelligence.d.cts +2 -2
  84. package/dist/intelligence.d.ts +2 -2
  85. package/dist/intelligence.js +1 -1
  86. package/dist/knowledge.cjs +42 -42
  87. package/dist/knowledge.d.cts +2 -2
  88. package/dist/knowledge.d.ts +2 -2
  89. package/dist/knowledge.js +1 -1
  90. package/dist/legal.cjs +6 -6
  91. package/dist/legal.d.cts +2 -2
  92. package/dist/legal.d.ts +2 -2
  93. package/dist/legal.js +1 -1
  94. package/dist/marketing.cjs +82 -82
  95. package/dist/marketing.d.cts +2 -2
  96. package/dist/marketing.d.ts +2 -2
  97. package/dist/marketing.js +1 -1
  98. package/dist/masterwork.cjs +32 -32
  99. package/dist/masterwork.d.cts +2 -2
  100. package/dist/masterwork.d.ts +2 -2
  101. package/dist/masterwork.js +1 -1
  102. package/dist/media.cjs +11 -11
  103. package/dist/media.d.cts +2 -2
  104. package/dist/media.d.ts +2 -2
  105. package/dist/media.js +1 -1
  106. package/dist/platform.cjs +27 -27
  107. package/dist/platform.d.cts +2 -2
  108. package/dist/platform.d.ts +2 -2
  109. package/dist/platform.js +2 -2
  110. package/dist/publish.cjs +7 -7
  111. package/dist/publish.d.cts +2 -2
  112. package/dist/publish.d.ts +2 -2
  113. package/dist/publish.js +1 -1
  114. package/dist/recording.cjs +17 -17
  115. package/dist/recording.js +4 -4
  116. package/dist/schemas.d.cts +1 -1
  117. package/dist/schemas.d.ts +1 -1
  118. package/dist/stream.cjs +10 -10
  119. package/dist/stream.d.cts +1 -1
  120. package/dist/stream.d.ts +1 -1
  121. package/dist/stream.js +1 -1
  122. package/dist/types.d.cts +3 -172
  123. package/dist/types.d.ts +3 -172
  124. package/dist/web.cjs +27 -27
  125. package/dist/web.d.cts +2 -2
  126. package/dist/web.d.ts +2 -2
  127. package/dist/web.js +1 -1
  128. package/dist/workflows.cjs +13 -13
  129. package/dist/workflows.d.cts +2 -2
  130. package/dist/workflows.d.ts +2 -2
  131. package/dist/workflows.js +1 -1
  132. package/package.json +4 -4
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 chunkKQHZSWOU_cjs = require('./chunk-KQHZSWOU.cjs');
4
+ require('./chunk-UVA472AM.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 chunkKQHZSWOU_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 chunkKQHZSWOU_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 chunkKQHZSWOU_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 chunkKQHZSWOU_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 chunkKQHZSWOU_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 chunkKQHZSWOU_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 chunkKQHZSWOU_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 chunkKQHZSWOU_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 chunkKQHZSWOU_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 chunkKQHZSWOU_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 chunkKQHZSWOU_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 chunkKQHZSWOU_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 chunkKQHZSWOU_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 chunkKQHZSWOU_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 chunkKQHZSWOU_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 chunkKQHZSWOU_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 chunkKQHZSWOU_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 chunkKQHZSWOU_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 chunkKQHZSWOU_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 chunkKQHZSWOU_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 chunkKQHZSWOU_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 chunkKQHZSWOU_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 chunkKQHZSWOU_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 chunkKQHZSWOU_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 chunkKQHZSWOU_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 chunkKQHZSWOU_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 chunkKQHZSWOU_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 chunkKQHZSWOU_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 chunkKQHZSWOU_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 chunkKQHZSWOU_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 chunkKQHZSWOU_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 chunkKQHZSWOU_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 chunkKQHZSWOU_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 chunkKQHZSWOU_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 chunkKQHZSWOU_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 chunkKQHZSWOU_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 chunkKQHZSWOU_cjs.youtubeTranscript; }
156
156
  });
package/dist/audio.d.cts CHANGED
@@ -1,10 +1,10 @@
1
- import { A as Api, C as CallOptions, a as ApiStream, S as SseEvent, N as NdjsonEvent } from './index-A1nOdg4F.cjs';
1
+ import { A as Api, C as CallOptions, a as ApiStream, S as SseEvent, N as NdjsonEvent } from './index-D7z-_LrQ.cjs';
2
2
  import { JsonValue } from './schemas.cjs';
3
3
  import '@ai-matrx/auth/credentials';
4
4
 
5
5
  /**
6
6
  * GENERATED by @ai-matrx/api scripts/generate.mjs from aidream/api-contract — never edit by hand.
7
- * CONTRACT_SHA256 c230b6e38690f213eb5f2eb413a9dbe72f3882595e8652c6e24c7a89139a0640
7
+ * CONTRACT_SHA256 7ec931798464b51fa108bf963264b8bcfcefb023607f5b7c8670f3afa98206ca
8
8
  */
9
9
 
10
10
  /** ActionResponse */
package/dist/audio.d.ts CHANGED
@@ -1,10 +1,10 @@
1
- import { A as Api, C as CallOptions, a as ApiStream, S as SseEvent, N as NdjsonEvent } from './index-A1nOdg4F.js';
1
+ import { A as Api, C as CallOptions, a as ApiStream, S as SseEvent, N as NdjsonEvent } from './index-D7z-_LrQ.js';
2
2
  import { JsonValue } from './schemas.js';
3
3
  import '@ai-matrx/auth/credentials';
4
4
 
5
5
  /**
6
6
  * GENERATED by @ai-matrx/api scripts/generate.mjs from aidream/api-contract — never edit by hand.
7
- * CONTRACT_SHA256 c230b6e38690f213eb5f2eb413a9dbe72f3882595e8652c6e24c7a89139a0640
7
+ * CONTRACT_SHA256 7ec931798464b51fa108bf963264b8bcfcefb023607f5b7c8670f3afa98206ca
8
8
  */
9
9
 
10
10
  /** ActionResponse */
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-67DK7VHF.js';
2
+ import './chunk-W4USV6BN.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 chunkUVA472AM_cjs = require('./chunk-UVA472AM.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 chunkUVA472AM_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 chunkUVA472AM_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 chunkUVA472AM_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 chunkUVA472AM_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 chunkUVA472AM_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 chunkUVA472AM_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 chunkUVA472AM_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 chunkUVA472AM_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 chunkUVA472AM_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 chunkUVA472AM_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.d.cts CHANGED
@@ -1,10 +1,10 @@
1
- import { A as Api, C as CallOptions, J as JsonOrStream, N as NdjsonEvent, a as ApiStream } from './index-A1nOdg4F.cjs';
1
+ import { A as Api, C as CallOptions, J as JsonOrStream, N as NdjsonEvent, a as ApiStream } from './index-D7z-_LrQ.cjs';
2
2
  import { JsonValue, ResponseFormatText, ResponseFormatJsonObject, ResponseFormatJsonSchema, TtsVoiceSpeaker, TtsDialogueTurn, MediaRef, ImageLora, CustomTool, CompactionSettings, DictionaryConfig, ContextAnchor, ChatMessageInput, RegisteredToolSpec, InlineToolSpec, AgentToolSpec, ClientContext, UserOverrides, LLMParams, ResourceContextPolicy, IdeState, SandboxBindingRequest, PageContext, CacheBypass, TextPart, ThinkingPart, ToolCallPart, ToolResultPart, UserImageMediaPart, UserAudioMediaPart, UserVideoMediaPart, UserDocumentMediaPart, UserYouTubeMediaPart, CodeExecPart, CodeResultPart, WebSearchPart, WebpageInputPart, NotesInputPart, TaskInputPart, AgentInputPart, ProjectInputPart, AgentAppInputPart, TranscriptInputPart, TranscriptSessionInputPart, WorkbookInputPart, DocumentInputPart, TableInputPart, ListInputPart, DataInputPart, ContextInputPart, RemarksInputPart, DecisionQuestionsPart, DecisionAnswersPart, SpeechScriptPart, HostTurn, ActionNeeded } from './schemas.cjs';
3
3
  import '@ai-matrx/auth/credentials';
4
4
 
5
5
  /**
6
6
  * GENERATED by @ai-matrx/api scripts/generate.mjs from aidream/api-contract — never edit by hand.
7
- * CONTRACT_SHA256 c230b6e38690f213eb5f2eb413a9dbe72f3882595e8652c6e24c7a89139a0640
7
+ * CONTRACT_SHA256 7ec931798464b51fa108bf963264b8bcfcefb023607f5b7c8670f3afa98206ca
8
8
  */
9
9
 
10
10
  /** What the chooser sends. Only `provider` plus one of `resource_ref` / */
package/dist/chat.d.ts CHANGED
@@ -1,10 +1,10 @@
1
- import { A as Api, C as CallOptions, J as JsonOrStream, N as NdjsonEvent, a as ApiStream } from './index-A1nOdg4F.js';
1
+ import { A as Api, C as CallOptions, J as JsonOrStream, N as NdjsonEvent, a as ApiStream } from './index-D7z-_LrQ.js';
2
2
  import { JsonValue, ResponseFormatText, ResponseFormatJsonObject, ResponseFormatJsonSchema, TtsVoiceSpeaker, TtsDialogueTurn, MediaRef, ImageLora, CustomTool, CompactionSettings, DictionaryConfig, ContextAnchor, ChatMessageInput, RegisteredToolSpec, InlineToolSpec, AgentToolSpec, ClientContext, UserOverrides, LLMParams, ResourceContextPolicy, IdeState, SandboxBindingRequest, PageContext, CacheBypass, TextPart, ThinkingPart, ToolCallPart, ToolResultPart, UserImageMediaPart, UserAudioMediaPart, UserVideoMediaPart, UserDocumentMediaPart, UserYouTubeMediaPart, CodeExecPart, CodeResultPart, WebSearchPart, WebpageInputPart, NotesInputPart, TaskInputPart, AgentInputPart, ProjectInputPart, AgentAppInputPart, TranscriptInputPart, TranscriptSessionInputPart, WorkbookInputPart, DocumentInputPart, TableInputPart, ListInputPart, DataInputPart, ContextInputPart, RemarksInputPart, DecisionQuestionsPart, DecisionAnswersPart, SpeechScriptPart, HostTurn, ActionNeeded } from './schemas.js';
3
3
  import '@ai-matrx/auth/credentials';
4
4
 
5
5
  /**
6
6
  * GENERATED by @ai-matrx/api scripts/generate.mjs from aidream/api-contract — never edit by hand.
7
- * CONTRACT_SHA256 c230b6e38690f213eb5f2eb413a9dbe72f3882595e8652c6e24c7a89139a0640
7
+ * CONTRACT_SHA256 7ec931798464b51fa108bf963264b8bcfcefb023607f5b7c8670f3afa98206ca
8
8
  */
9
9
 
10
10
  /** What the chooser sends. Only `provider` plus one of `resource_ref` / */
package/dist/chat.js CHANGED
@@ -1,4 +1,4 @@
1
- import { openJsonOrStream, openStream } from './chunk-X75SKCDS.js';
1
+ import { openJsonOrStream, openStream } from './chunk-W4USV6BN.js';
2
2
  import './chunk-KIEAFMKB.js';
3
3
 
4
4
  // src/generated/chat.ts
@@ -1,4 +1,4 @@
1
- import { openStream } from './chunk-X75SKCDS.js';
1
+ import { openStream } from './chunk-W4USV6BN.js';
2
2
 
3
3
  // src/generated/audio.ts
4
4
  var $createRecordingJournalChunk = { m: "POST", p: "/audio/recording-journal/chunks", d: "aidream", a: "guest", o: "required", n: "audio.create_recording_journal_chunk" };
@@ -1,4 +1,4 @@
1
- import { openJsonOrStream, openStream } from './chunk-X75SKCDS.js';
1
+ import { openJsonOrStream, openStream } from './chunk-W4USV6BN.js';
2
2
 
3
3
  // src/generated/files.ts
4
4
  var $compressPdf = { m: "POST", p: "/utilities/pdf/compress", d: "aidream", a: "guest", o: "required", s: "bytes_or_json", n: "files.compress_pdf" };
@@ -1,4 +1,4 @@
1
- import { openStream } from './chunk-X75SKCDS.js';
1
+ import { openStream } from './chunk-W4USV6BN.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" };
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunk27ZEEIXM_cjs = require('./chunk-27ZEEIXM.cjs');
3
+ var chunkUVA472AM_cjs = require('./chunk-UVA472AM.cjs');
4
4
 
5
5
  // src/generated/audio.ts
6
6
  var $createRecordingJournalChunk = { m: "POST", p: "/audio/recording-journal/chunks", d: "aidream", a: "guest", o: "required", n: "audio.create_recording_journal_chunk" };
@@ -45,7 +45,7 @@ function textToSpeech(api, args, options) {
45
45
  }
46
46
  var $youtubeTranscript = { m: "POST", p: "/media/youtube/transcript", d: "aidream", a: "guest", o: "required", s: "ndjson", n: "audio.youtube_transcript" };
47
47
  function youtubeTranscript(api, args, options) {
48
- return chunk27ZEEIXM_cjs.openStream(api, $youtubeTranscript, args, options);
48
+ return chunkUVA472AM_cjs.openStream(api, $youtubeTranscript, args, options);
49
49
  }
50
50
  var $getStatus = { m: "GET", p: "/wake-word/status", d: "matrx-local", a: "loopback_token", o: "exempt", n: "audio.get_status" };
51
51
  function getStatus(api, args, options) {
@@ -81,7 +81,7 @@ function configureWakeWord(api, args, options) {
81
81
  }
82
82
  var $eventStream = { m: "GET", p: "/wake-word/stream", d: "matrx-local", a: "loopback_token", o: "exempt", s: "sse", n: "audio.event_stream" };
83
83
  function eventStream(api, args, options) {
84
- return chunk27ZEEIXM_cjs.openStream(api, $eventStream, args, options);
84
+ return chunkUVA472AM_cjs.openStream(api, $eventStream, args, options);
85
85
  }
86
86
  var $listModels = { m: "GET", p: "/wake-word/models", d: "matrx-local", a: "loopback_token", o: "exempt", n: "audio.list_models" };
87
87
  function listModels(api, args, options) {
@@ -93,7 +93,7 @@ function downloadOwwModel(api, args, options) {
93
93
  }
94
94
  var $downloadModelWithProgress = { m: "POST", p: "/wake-word/models/download-stream", d: "matrx-local", a: "loopback_token", o: "exempt", s: "sse", n: "audio.download_model_with_progress" };
95
95
  function downloadModelWithProgress(api, args, options) {
96
- return chunk27ZEEIXM_cjs.openStream(api, $downloadModelWithProgress, args, options);
96
+ return chunkUVA472AM_cjs.openStream(api, $downloadModelWithProgress, args, options);
97
97
  }
98
98
  var $ttsStatus = { m: "GET", p: "/tts/status", d: "matrx-local", a: "loopback_token", o: "exempt", n: "audio.tts_status" };
99
99
  function ttsStatus(api, args, options) {
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunk27ZEEIXM_cjs = require('./chunk-27ZEEIXM.cjs');
3
+ var chunkUVA472AM_cjs = require('./chunk-UVA472AM.cjs');
4
4
 
5
5
  // src/generated/platform.ts
6
6
  var $initiateOauth = { m: "GET", p: "/auth/aimatrx", d: "aidream", a: "public", o: "exempt", n: "platform.initiate_oauth" };
@@ -45,7 +45,7 @@ function getAppConfig(api, args, options) {
45
45
  }
46
46
  var $publishDictionary = { m: "POST", p: "/dictionary/publish", d: "aidream", a: "guest", o: "required", s: "ndjson", n: "platform.publish_dictionary" };
47
47
  function publishDictionary(api, args, options) {
48
- return chunk27ZEEIXM_cjs.openStream(api, $publishDictionary, args, options);
48
+ return chunkUVA472AM_cjs.openStream(api, $publishDictionary, args, options);
49
49
  }
50
50
  var $listPublications = { m: "GET", p: "/dictionary/publications", d: "aidream", a: "guest", o: "exempt", n: "platform.list_publications" };
51
51
  function listPublications(api, args, options) {
@@ -69,7 +69,7 @@ function getCheck(api, args, options) {
69
69
  }
70
70
  var $runCheck = { m: "POST", p: "/proof-runs/checks/{slug}/run", d: "aidream", a: "admin", o: "required", s: "ndjson", n: "platform.run_check" };
71
71
  function runCheck(api, args, options) {
72
- return chunk27ZEEIXM_cjs.openStream(api, $runCheck, args, options);
72
+ return chunkUVA472AM_cjs.openStream(api, $runCheck, args, options);
73
73
  }
74
74
  var $listRecentRuns = { m: "GET", p: "/proof-runs/runs", d: "aidream", a: "admin", o: "optional", n: "platform.list_recent_runs" };
75
75
  function listRecentRuns(api, args, options) {
@@ -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
@@ -737,7 +743,7 @@ async function* readMatrxSseStream(stream, options = {}) {
737
743
  }
738
744
 
739
745
  // src/deployments.generated.ts
740
- var CONTRACT_SHA256 = "c230b6e38690f213eb5f2eb413a9dbe72f3882595e8652c6e24c7a89139a0640";
746
+ var CONTRACT_SHA256 = "7ec931798464b51fa108bf963264b8bcfcefb023607f5b7c8670f3afa98206ca";
741
747
  var DEPLOYMENTS = {
742
748
  "files": {
743
749
  "app": "files-standalone",
@@ -90,6 +90,12 @@ async function parseHttpError(response) {
90
90
  }
91
91
  return parseHttpErrorBody(body, status);
92
92
  }
93
+ function honestUserMessage(userMessage, message) {
94
+ if (!isGenericUserMessage(userMessage)) return userMessage;
95
+ const m = typeof message === "string" ? message.trim() : "";
96
+ if (!m || /^[[{(<]/.test(m) || isGenericUserMessage(m) || !/\s/.test(m)) return userMessage;
97
+ return m;
98
+ }
93
99
  function parseHttpErrorBody(body, status) {
94
100
  if (!body) {
95
101
  return new BackendApiError({
@@ -103,7 +109,7 @@ function parseHttpErrorBody(body, status) {
103
109
  return new BackendApiError({
104
110
  code: body.error,
105
111
  detail: body.message || `HTTP ${status}`,
106
- userMessage: body.user_message,
112
+ userMessage: honestUserMessage(body.user_message, body.message),
107
113
  details: body.details ?? null,
108
114
  requestId: typeof body.request_id === "string" ? body.request_id : void 0,
109
115
  status
@@ -735,7 +741,7 @@ async function* readMatrxSseStream(stream, options = {}) {
735
741
  }
736
742
 
737
743
  // src/deployments.generated.ts
738
- var CONTRACT_SHA256 = "c230b6e38690f213eb5f2eb413a9dbe72f3882595e8652c6e24c7a89139a0640";
744
+ var CONTRACT_SHA256 = "7ec931798464b51fa108bf963264b8bcfcefb023607f5b7c8670f3afa98206ca";
739
745
  var DEPLOYMENTS = {
740
746
  "files": {
741
747
  "app": "files-standalone",