@ai-matrx/api 0.0.0-stage → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (146) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/LICENSE +21 -0
  3. package/README.md +18 -2
  4. package/dist/account.cjs +670 -0
  5. package/dist/account.d.cts +3246 -0
  6. package/dist/account.d.ts +3246 -0
  7. package/dist/account.js +558 -0
  8. package/dist/agents.cjs +598 -0
  9. package/dist/agents.d.cts +3417 -0
  10. package/dist/agents.d.ts +3417 -0
  11. package/dist/agents.js +497 -0
  12. package/dist/ai.cjs +109 -0
  13. package/dist/ai.d.cts +493 -0
  14. package/dist/ai.d.ts +493 -0
  15. package/dist/ai.js +91 -0
  16. package/dist/apps.cjs +394 -0
  17. package/dist/apps.d.cts +1094 -0
  18. package/dist/apps.d.ts +1094 -0
  19. package/dist/apps.js +328 -0
  20. package/dist/architecture.cjs +1223 -0
  21. package/dist/architecture.d.cts +4701 -0
  22. package/dist/architecture.d.ts +4701 -0
  23. package/dist/architecture.js +1016 -0
  24. package/dist/audio.cjs +226 -0
  25. package/dist/audio.d.cts +723 -0
  26. package/dist/audio.d.ts +723 -0
  27. package/dist/audio.js +188 -0
  28. package/dist/chat.cjs +538 -0
  29. package/dist/chat.d.cts +2251 -0
  30. package/dist/chat.d.ts +2251 -0
  31. package/dist/chat.js +447 -0
  32. package/dist/chunk-2SXAAKGV.cjs +279 -0
  33. package/dist/chunk-AY5N6EA4.js +43 -0
  34. package/dist/chunk-BMQI7UET.cjs +48 -0
  35. package/dist/chunk-FNIYADWI.cjs +59 -0
  36. package/dist/chunk-KIEAFMKB.js +264 -0
  37. package/dist/chunk-UONBYRE4.js +1012 -0
  38. package/dist/chunk-YTEOFGFC.js +57 -0
  39. package/dist/chunk-YUDQWDCM.cjs +1047 -0
  40. package/dist/code.cjs +561 -0
  41. package/dist/code.d.cts +1976 -0
  42. package/dist/code.d.ts +1976 -0
  43. package/dist/code.js +467 -0
  44. package/dist/commerce.cjs +22 -0
  45. package/dist/commerce.d.cts +45 -0
  46. package/dist/commerce.d.ts +45 -0
  47. package/dist/commerce.js +18 -0
  48. package/dist/communications.cjs +215 -0
  49. package/dist/communications.d.cts +948 -0
  50. package/dist/communications.d.ts +948 -0
  51. package/dist/communications.js +179 -0
  52. package/dist/computer.cjs +330 -0
  53. package/dist/computer.d.cts +733 -0
  54. package/dist/computer.d.ts +733 -0
  55. package/dist/computer.js +275 -0
  56. package/dist/content.cjs +425 -0
  57. package/dist/content.d.cts +1796 -0
  58. package/dist/content.d.ts +1796 -0
  59. package/dist/content.js +354 -0
  60. package/dist/credentials.cjs +22 -0
  61. package/dist/credentials.d.cts +82 -0
  62. package/dist/credentials.d.ts +82 -0
  63. package/dist/credentials.js +1 -0
  64. package/dist/crm.cjs +271 -0
  65. package/dist/crm.d.cts +1731 -0
  66. package/dist/crm.d.ts +1731 -0
  67. package/dist/crm.js +226 -0
  68. package/dist/data.cjs +382 -0
  69. package/dist/data.d.cts +1860 -0
  70. package/dist/data.d.ts +1860 -0
  71. package/dist/data.js +318 -0
  72. package/dist/education.cjs +28 -0
  73. package/dist/education.d.cts +73 -0
  74. package/dist/education.d.ts +73 -0
  75. package/dist/education.js +23 -0
  76. package/dist/files.cjs +1330 -0
  77. package/dist/files.d.cts +4956 -0
  78. package/dist/files.d.ts +4956 -0
  79. package/dist/files.js +1104 -0
  80. package/dist/human-resources.cjs +178 -0
  81. package/dist/human-resources.d.cts +1208 -0
  82. package/dist/human-resources.d.ts +1208 -0
  83. package/dist/human-resources.js +148 -0
  84. package/dist/index-C2E-Cp19.d.ts +385 -0
  85. package/dist/index-wC2vtb70.d.cts +385 -0
  86. package/dist/index.cjs +1934 -0
  87. package/dist/index.d.cts +2006 -0
  88. package/dist/index.d.ts +2006 -0
  89. package/dist/index.js +1668 -0
  90. package/dist/integrations.cjs +5116 -0
  91. package/dist/integrations.d.cts +19213 -0
  92. package/dist/integrations.d.ts +19213 -0
  93. package/dist/integrations.js +4263 -0
  94. package/dist/intelligence.cjs +1305 -0
  95. package/dist/intelligence.d.cts +4658 -0
  96. package/dist/intelligence.d.ts +4658 -0
  97. package/dist/intelligence.js +1196 -0
  98. package/dist/knowledge.cjs +1113 -0
  99. package/dist/knowledge.d.cts +5427 -0
  100. package/dist/knowledge.d.ts +5427 -0
  101. package/dist/knowledge.js +921 -0
  102. package/dist/legal.cjs +225 -0
  103. package/dist/legal.d.cts +1038 -0
  104. package/dist/legal.d.ts +1038 -0
  105. package/dist/legal.js +187 -0
  106. package/dist/marketing.cjs +1155 -0
  107. package/dist/marketing.d.cts +7741 -0
  108. package/dist/marketing.d.ts +7741 -0
  109. package/dist/marketing.js +951 -0
  110. package/dist/masterwork.cjs +283 -0
  111. package/dist/masterwork.d.cts +1938 -0
  112. package/dist/masterwork.d.ts +1938 -0
  113. package/dist/masterwork.js +231 -0
  114. package/dist/media.cjs +610 -0
  115. package/dist/media.d.cts +2270 -0
  116. package/dist/media.d.ts +2270 -0
  117. package/dist/media.js +507 -0
  118. package/dist/net.cjs +67 -0
  119. package/dist/net.d.cts +204 -0
  120. package/dist/net.d.ts +204 -0
  121. package/dist/net.js +2 -0
  122. package/dist/platform.cjs +150 -0
  123. package/dist/platform.d.cts +572 -0
  124. package/dist/platform.d.ts +572 -0
  125. package/dist/platform.js +125 -0
  126. package/dist/publish.cjs +248 -0
  127. package/dist/publish.d.cts +1431 -0
  128. package/dist/publish.d.ts +1431 -0
  129. package/dist/publish.js +206 -0
  130. package/dist/schemas.cjs +2 -0
  131. package/dist/schemas.d.cts +1353 -0
  132. package/dist/schemas.d.ts +1353 -0
  133. package/dist/schemas.js +1 -0
  134. package/dist/stream.cjs +44 -0
  135. package/dist/stream.d.cts +2 -0
  136. package/dist/stream.d.ts +2 -0
  137. package/dist/stream.js +3 -0
  138. package/dist/web.cjs +1045 -0
  139. package/dist/web.d.cts +4186 -0
  140. package/dist/web.d.ts +4186 -0
  141. package/dist/web.js +867 -0
  142. package/dist/workflows.cjs +825 -0
  143. package/dist/workflows.d.cts +4699 -0
  144. package/dist/workflows.d.ts +4699 -0
  145. package/dist/workflows.js +686 -0
  146. package/package.json +418 -4
@@ -0,0 +1,723 @@
1
+ import { A as Api, C as CallOptions, a as ApiStream, S as SseEvent, N as NdjsonEvent } from './index-C2E-Cp19.js';
2
+ import { JsonValue } from './schemas.js';
3
+ import './credentials.js';
4
+
5
+ /**
6
+ * GENERATED by @ai-matrx/api scripts/generate.mjs from aidream/api-contract — never edit by hand.
7
+ * CONTRACT_SHA256 50a790edb39e682b46e0fa9e674faf5ce2a0ba7de2cd01930a497fca4c47844a
8
+ */
9
+
10
+ /** ActionResponse */
11
+ type ActionResponse = {
12
+ success: boolean;
13
+ voice_id?: string;
14
+ error?: string | null;
15
+ error_code?: string | null;
16
+ };
17
+ /** BlendComponent */
18
+ type BlendComponent = {
19
+ voice_id: string;
20
+ weight?: number;
21
+ };
22
+ /** BlendPreviewRequest */
23
+ type BlendPreviewRequest = {
24
+ components: BlendComponent[];
25
+ speed?: number;
26
+ lang?: string;
27
+ };
28
+ /** DownloadRequest */
29
+ type DownloadRequest = {
30
+ model_name: string;
31
+ };
32
+ /** DownloadResponse */
33
+ type DownloadResponse = {
34
+ success: boolean;
35
+ already_downloaded?: boolean;
36
+ error?: string | null;
37
+ error_code?: string | null;
38
+ };
39
+ /** JournalChunk */
40
+ type JournalChunk = {
41
+ recording_id: string;
42
+ chunk_index: number;
43
+ file_id: string;
44
+ mime_type: string;
45
+ size_bytes: number;
46
+ updated_at: string;
47
+ replaced_file_id?: string | null;
48
+ };
49
+ /** JournalChunkRequest */
50
+ type JournalChunkRequest = {
51
+ recording_id: string;
52
+ chunk_index: number;
53
+ file_id: string;
54
+ mime_type: string;
55
+ size_bytes: number;
56
+ origin?: {
57
+ [key: string]: JsonValue;
58
+ } | null;
59
+ };
60
+ /** JournalDiscardResult */
61
+ type JournalDiscardResult = {
62
+ recording_id: string;
63
+ file_ids: string[];
64
+ };
65
+ /** JournalRecording */
66
+ type JournalRecording = {
67
+ recording_id: string;
68
+ updated_at: string;
69
+ chunk_count: number;
70
+ };
71
+ /** ModelInfoResponse */
72
+ type ModelInfoResponse = {
73
+ name: string;
74
+ filename: string;
75
+ downloaded: boolean;
76
+ size_mb: number;
77
+ description: string;
78
+ is_built_in: boolean;
79
+ is_custom: boolean;
80
+ };
81
+ /** ModelsResponse */
82
+ type ModelsResponse = {
83
+ models: ModelInfoResponse[];
84
+ };
85
+ /** PreviewVoiceRequest */
86
+ type PreviewVoiceRequest = {
87
+ voice_id: string;
88
+ };
89
+ /** RecordingCompletion */
90
+ type RecordingCompletion = {
91
+ recording_id: string;
92
+ transcript_id: string;
93
+ audio_file_id: string;
94
+ };
95
+ /** RecordingCompletionRequest */
96
+ type RecordingCompletionRequest = {
97
+ transcript: string;
98
+ audio_file_id: string;
99
+ duration_ms: number;
100
+ origin?: {
101
+ [key: string]: JsonValue;
102
+ } | null;
103
+ };
104
+ /** RenameVoiceRequest */
105
+ type RenameVoiceRequest = {
106
+ name: string;
107
+ };
108
+ /** SaveBlendRequest */
109
+ type SaveBlendRequest = {
110
+ /** Filesystem-safe ID (letters, digits, _ -) */
111
+ voice_id: string;
112
+ name: string;
113
+ components: BlendComponent[];
114
+ gender?: string;
115
+ lang_code?: string;
116
+ };
117
+ /** SpeechRequest */
118
+ type SpeechRequest = {
119
+ /** Organization context for the request; omitted to use the authenticated context. */
120
+ organization_id?: string | null;
121
+ /** Optional associated project selected by the caller. */
122
+ project_id?: string | null;
123
+ /** Optional associated task selected by the caller. */
124
+ task_id?: string | null;
125
+ /** Stable application slug that initiated the request. */
126
+ source_app?: string | null;
127
+ /** Stable feature slug within the source application. */
128
+ source_feature?: string | null;
129
+ /** How the client initiated this request: 'user' for a direct human action, 'auto' for client-code automation. Omit for API callers. */
130
+ initiation?: ("user" | "auto") | null;
131
+ text: string;
132
+ model?: string | null;
133
+ offering_id?: string | null;
134
+ voice?: string | null;
135
+ format?: string | null;
136
+ quality?: ("fast" | "high_quality") | null;
137
+ };
138
+ /** SpeechResponse */
139
+ type SpeechResponse = {
140
+ file_id: string;
141
+ url: string;
142
+ mime_type: string;
143
+ model: string;
144
+ };
145
+ /** StartRequest */
146
+ type StartRequest = {
147
+ model_name?: string | null;
148
+ threshold?: number | null;
149
+ device_name?: string | null;
150
+ };
151
+ /** SynthesizeRequest */
152
+ type SynthesizeRequest = {
153
+ text: string;
154
+ voice_id?: string;
155
+ speed?: number;
156
+ /** Override espeak language code (e.g. 'en-us') */
157
+ lang?: string | null;
158
+ /** Optional override of the short/long streaming cutoff (chars). When omitted, the server's tts_streaming_threshold setting is used. */
159
+ streaming_threshold?: number | null;
160
+ };
161
+ /** One chapter the SOURCE container declared, on the transcript's clock. */
162
+ type TranscriptionChapter = {
163
+ index: number;
164
+ title?: string | null;
165
+ start: number;
166
+ end?: number | null;
167
+ };
168
+ /** TranscriptionFileRequest */
169
+ type TranscriptionFileRequest = {
170
+ /** Organization context for the request; omitted to use the authenticated context. */
171
+ organization_id?: string | null;
172
+ /** Optional associated project selected by the caller. */
173
+ project_id?: string | null;
174
+ /** Optional associated task selected by the caller. */
175
+ task_id?: string | null;
176
+ /** Stable application slug that initiated the request. */
177
+ source_app?: string | null;
178
+ /** Stable feature slug within the source application. */
179
+ source_feature?: string | null;
180
+ /** How the client initiated this request: 'user' for a direct human action, 'auto' for client-code automation. Omit for API callers. */
181
+ initiation?: ("user" | "auto") | null;
182
+ file_id: string;
183
+ language?: string | null;
184
+ model?: string;
185
+ };
186
+ /** TranscriptionMeta */
187
+ type TranscriptionMeta = {
188
+ attempts: number;
189
+ hallucinations_filtered: number;
190
+ model: string;
191
+ };
192
+ /** TranscriptionSegment */
193
+ type TranscriptionSegment = {
194
+ id?: number | null;
195
+ seek?: number | null;
196
+ start?: number | null;
197
+ end?: number | null;
198
+ text: string;
199
+ tokens?: number[];
200
+ temperature?: number | null;
201
+ avg_logprob?: number | null;
202
+ compression_ratio?: number | null;
203
+ no_speech_prob?: number | null;
204
+ };
205
+ /** TranscriptionUrlRequest */
206
+ type TranscriptionUrlRequest = {
207
+ /** Organization context for the request; omitted to use the authenticated context. */
208
+ organization_id?: string | null;
209
+ /** Optional associated project selected by the caller. */
210
+ project_id?: string | null;
211
+ /** Optional associated task selected by the caller. */
212
+ task_id?: string | null;
213
+ /** Stable application slug that initiated the request. */
214
+ source_app?: string | null;
215
+ /** Stable feature slug within the source application. */
216
+ source_feature?: string | null;
217
+ /** How the client initiated this request: 'user' for a direct human action, 'auto' for client-code automation. Omit for API callers. */
218
+ initiation?: ("user" | "auto") | null;
219
+ url: string;
220
+ language?: string | null;
221
+ model?: string;
222
+ };
223
+ /** TtsStatusResponse */
224
+ type TtsStatusResponse = {
225
+ model_downloaded: boolean;
226
+ model_loaded: boolean;
227
+ is_downloading: boolean;
228
+ download_progress: number;
229
+ model_dir: string;
230
+ voice_count: number;
231
+ needs_download?: boolean;
232
+ auto_download?: boolean;
233
+ };
234
+ /** TtsVoiceInfo */
235
+ type TtsVoiceInfo = {
236
+ voice_id: string;
237
+ name: string;
238
+ gender: string;
239
+ language: string;
240
+ lang_code: string;
241
+ quality_grade: string;
242
+ traits?: string[];
243
+ is_custom?: boolean;
244
+ is_default?: boolean;
245
+ blend_recipe?: {
246
+ [key: string]: unknown;
247
+ }[];
248
+ };
249
+ /** VoicePreviewRequest */
250
+ type VoicePreviewRequest = {
251
+ /** Organization context for the request; omitted to use the authenticated context. */
252
+ organization_id?: string | null;
253
+ /** Optional associated project selected by the caller. */
254
+ project_id?: string | null;
255
+ /** Optional associated task selected by the caller. */
256
+ task_id?: string | null;
257
+ /** Stable application slug that initiated the request. */
258
+ source_app?: string | null;
259
+ /** Stable feature slug within the source application. */
260
+ source_feature?: string | null;
261
+ /** How the client initiated this request: 'user' for a direct human action, 'auto' for client-code automation. Omit for API callers. */
262
+ initiation?: ("user" | "auto") | null;
263
+ /** Catalog model the voice belongs to. */
264
+ model: string;
265
+ /** The model's voice id. */
266
+ voice: string;
267
+ /** The class (ai.offering) of ``model`` the voice is heard in — voices are per vendor, so each class has its own. Empty = the preferred class. */
268
+ offering_id?: string | null;
269
+ };
270
+ /** VoicePreviewResponse */
271
+ type VoicePreviewResponse = {
272
+ url: string;
273
+ model: string;
274
+ voice: string;
275
+ source: "vendor_sample" | "synthesized";
276
+ mime_type?: string;
277
+ };
278
+ /** WakeWordStatus */
279
+ type WakeWordStatus = {
280
+ running: boolean;
281
+ mode: string;
282
+ model_name: string;
283
+ threshold: number;
284
+ };
285
+ /** YouTubeTranscriptRequest */
286
+ type YouTubeTranscriptRequest = {
287
+ /** A full YouTube URL or a bare 11-char video id. */
288
+ youtube_url: string;
289
+ /** Optional override for the agent's timestamp behaviour. Omit to keep the agent default (timestamps included). */
290
+ timestamp_instruction?: string | null;
291
+ };
292
+ /** TranscriptionResponse */
293
+ type aidream__services__audio__speech__TranscriptionResponse = {
294
+ success?: true;
295
+ text: string;
296
+ language?: string | null;
297
+ duration?: number | null;
298
+ segments?: TranscriptionSegment[];
299
+ chapters?: TranscriptionChapter[];
300
+ meta: TranscriptionMeta;
301
+ };
302
+ /** ConfigureRequest */
303
+ type app__api__wake_word_routes__ConfigureRequest = {
304
+ model_name?: string | null;
305
+ threshold?: number | null;
306
+ };
307
+ type CreateRecordingJournalChunkArgs = {
308
+ body: JournalChunkRequest;
309
+ };
310
+ type CreateRecordingJournalChunkResult = JournalChunk;
311
+ /** Create Recording Journal Chunk */
312
+ /** `POST /audio/recording-journal/chunks` · aidream · auth guest · org required */
313
+ declare function createRecordingJournalChunk(api: Api, args: CreateRecordingJournalChunkArgs, options?: CallOptions): Promise<CreateRecordingJournalChunkResult>;
314
+ type GetRecordingJournalsArgs = {
315
+ query?: {
316
+ organization_id?: string | null;
317
+ };
318
+ };
319
+ type GetRecordingJournalsResult = JournalRecording[];
320
+ /** Get Recording Journals */
321
+ /** `GET /audio/recording-journal` · aidream · auth guest · org optional */
322
+ declare function getRecordingJournals(api: Api, args?: GetRecordingJournalsArgs, options?: CallOptions): Promise<GetRecordingJournalsResult>;
323
+ type GetRecordingJournalArgs = {
324
+ path: {
325
+ recording_id: string;
326
+ };
327
+ };
328
+ type GetRecordingJournalResult = JournalChunk[];
329
+ /** Get Recording Journal */
330
+ /** `GET /audio/recording-journal/{recording_id}` · aidream · auth guest · org optional */
331
+ declare function getRecordingJournal(api: Api, args: GetRecordingJournalArgs, options?: CallOptions): Promise<GetRecordingJournalResult>;
332
+ type DeleteRecordingJournalArgs = {
333
+ path: {
334
+ recording_id: string;
335
+ };
336
+ };
337
+ type DeleteRecordingJournalResult = JournalDiscardResult;
338
+ /** Delete Recording Journal */
339
+ /** `DELETE /audio/recording-journal/{recording_id}` · aidream · auth guest · org required */
340
+ declare function deleteRecordingJournal(api: Api, args: DeleteRecordingJournalArgs, options?: CallOptions): Promise<DeleteRecordingJournalResult>;
341
+ type CompleteRecordingJournalArgs = {
342
+ path: {
343
+ recording_id: string;
344
+ };
345
+ body: RecordingCompletionRequest;
346
+ };
347
+ type CompleteRecordingJournalResult = RecordingCompletion;
348
+ /** Complete Recording Journal */
349
+ /** `POST /audio/recording-journal/{recording_id}/complete` · aidream · auth guest · org required */
350
+ declare function completeRecordingJournal(api: Api, args: CompleteRecordingJournalArgs, options?: CallOptions): Promise<CompleteRecordingJournalResult>;
351
+ type TranscribeUploadArgs = {
352
+ body: FormData;
353
+ };
354
+ type TranscribeUploadResult = aidream__services__audio__speech__TranscriptionResponse;
355
+ /** Transcribe Upload */
356
+ /** `POST /audio/transcribe` · aidream · auth guest · org required */
357
+ declare function transcribeUpload(api: Api, args: TranscribeUploadArgs, options?: CallOptions): Promise<TranscribeUploadResult>;
358
+ type TranscribeUrlArgs = {
359
+ body: TranscriptionUrlRequest;
360
+ };
361
+ type TranscribeUrlResult = aidream__services__audio__speech__TranscriptionResponse;
362
+ /** Transcribe Url */
363
+ /** `POST /audio/transcribe-url` · aidream · auth guest · org required */
364
+ declare function transcribeUrl(api: Api, args: TranscribeUrlArgs, options?: CallOptions): Promise<TranscribeUrlResult>;
365
+ type TranscribeFileArgs = {
366
+ body: TranscriptionFileRequest;
367
+ };
368
+ type TranscribeFileResult = aidream__services__audio__speech__TranscriptionResponse;
369
+ /** Transcribe File */
370
+ /** `POST /audio/transcribe-file` · aidream · auth guest · org required */
371
+ declare function transcribeFile(api: Api, args: TranscribeFileArgs, options?: CallOptions): Promise<TranscribeFileResult>;
372
+ type VoicePreviewRouteArgs = {
373
+ body: VoicePreviewRequest;
374
+ };
375
+ type VoicePreviewRouteResult = VoicePreviewResponse;
376
+ /** Voice Preview Route */
377
+ /** `POST /audio/voice-preview` · aidream · auth guest · org required */
378
+ declare function voicePreviewRoute(api: Api, args: VoicePreviewRouteArgs, options?: CallOptions): Promise<VoicePreviewRouteResult>;
379
+ type TextToSpeechArgs = {
380
+ body: SpeechRequest;
381
+ };
382
+ type TextToSpeechResult = SpeechResponse;
383
+ /** Text To Speech */
384
+ /** `POST /audio/text-to-speech` · aidream · auth guest · org required */
385
+ declare function textToSpeech(api: Api, args: TextToSpeechArgs, options?: CallOptions): Promise<TextToSpeechResult>;
386
+ type YoutubeTranscriptArgs = {
387
+ body: YouTubeTranscriptRequest;
388
+ };
389
+ type YoutubeTranscriptResult = unknown;
390
+ /** Youtube Transcript */
391
+ /** `POST /media/youtube/transcript` · aidream · auth guest · org required · ndjson */
392
+ declare function youtubeTranscript(api: Api, args: YoutubeTranscriptArgs, options?: CallOptions): Promise<ApiStream<NdjsonEvent>>;
393
+ type GetStatusArgs = {
394
+ [key: string]: never;
395
+ };
396
+ type GetStatusResult = WakeWordStatus;
397
+ /** Get Status */
398
+ /** `GET /wake-word/status` · matrx-local · auth loopback_token · org exempt */
399
+ declare function getStatus(api: Api, args?: GetStatusArgs, options?: CallOptions): Promise<GetStatusResult>;
400
+ type StartWakeWordArgs = {
401
+ body: StartRequest;
402
+ };
403
+ type StartWakeWordResult = {
404
+ [key: string]: string;
405
+ };
406
+ /** Start Wake Word */
407
+ /** `POST /wake-word/start` · matrx-local · auth loopback_token · org exempt */
408
+ declare function startWakeWord(api: Api, args: StartWakeWordArgs, options?: CallOptions): Promise<StartWakeWordResult>;
409
+ type StopWakeWordArgs = {
410
+ [key: string]: never;
411
+ };
412
+ type StopWakeWordResult = {
413
+ [key: string]: string;
414
+ };
415
+ /** Stop Wake Word */
416
+ /** `POST /wake-word/stop` · matrx-local · auth loopback_token · org exempt */
417
+ declare function stopWakeWord(api: Api, args?: StopWakeWordArgs, options?: CallOptions): Promise<StopWakeWordResult>;
418
+ type MuteWakeWordArgs = {
419
+ [key: string]: never;
420
+ };
421
+ type MuteWakeWordResult = {
422
+ [key: string]: string;
423
+ };
424
+ /** Mute Wake Word */
425
+ /** `POST /wake-word/mute` · matrx-local · auth loopback_token · org exempt */
426
+ declare function muteWakeWord(api: Api, args?: MuteWakeWordArgs, options?: CallOptions): Promise<MuteWakeWordResult>;
427
+ type UnmuteWakeWordArgs = {
428
+ [key: string]: never;
429
+ };
430
+ type UnmuteWakeWordResult = {
431
+ [key: string]: string;
432
+ };
433
+ /** Unmute Wake Word */
434
+ /** `POST /wake-word/unmute` · matrx-local · auth loopback_token · org exempt */
435
+ declare function unmuteWakeWord(api: Api, args?: UnmuteWakeWordArgs, options?: CallOptions): Promise<UnmuteWakeWordResult>;
436
+ type DismissWakeWordArgs = {
437
+ [key: string]: never;
438
+ };
439
+ type DismissWakeWordResult = {
440
+ [key: string]: string;
441
+ };
442
+ /** Dismiss Wake Word */
443
+ /** `POST /wake-word/dismiss` · matrx-local · auth loopback_token · org exempt */
444
+ declare function dismissWakeWord(api: Api, args?: DismissWakeWordArgs, options?: CallOptions): Promise<DismissWakeWordResult>;
445
+ type TriggerWakeWordArgs = {
446
+ [key: string]: never;
447
+ };
448
+ type TriggerWakeWordResult = {
449
+ [key: string]: string;
450
+ };
451
+ /** Trigger Wake Word */
452
+ /** `POST /wake-word/trigger` · matrx-local · auth loopback_token · org exempt */
453
+ declare function triggerWakeWord(api: Api, args?: TriggerWakeWordArgs, options?: CallOptions): Promise<TriggerWakeWordResult>;
454
+ type ConfigureWakeWordArgs = {
455
+ body: app__api__wake_word_routes__ConfigureRequest;
456
+ };
457
+ type ConfigureWakeWordResult = {
458
+ [key: string]: string;
459
+ };
460
+ /** Configure Wake Word */
461
+ /** `POST /wake-word/configure` · matrx-local · auth loopback_token · org exempt */
462
+ declare function configureWakeWord(api: Api, args: ConfigureWakeWordArgs, options?: CallOptions): Promise<ConfigureWakeWordResult>;
463
+ type EventStreamArgs = {
464
+ [key: string]: never;
465
+ };
466
+ type EventStreamResult = unknown;
467
+ /** Event Stream */
468
+ /** `GET /wake-word/stream` · matrx-local · auth loopback_token · org exempt · sse */
469
+ declare function eventStream(api: Api, args?: EventStreamArgs, options?: CallOptions): Promise<ApiStream<SseEvent>>;
470
+ type ListModelsArgs = {
471
+ [key: string]: never;
472
+ };
473
+ type ListModelsResult = ModelsResponse;
474
+ /** List Models */
475
+ /** `GET /wake-word/models` · matrx-local · auth loopback_token · org exempt */
476
+ declare function listModels(api: Api, args?: ListModelsArgs, options?: CallOptions): Promise<ListModelsResult>;
477
+ type DownloadOwwModelArgs = {
478
+ body: DownloadRequest;
479
+ };
480
+ type DownloadOwwModelResult = ModelInfoResponse;
481
+ /** Download Oww Model */
482
+ /** `POST /wake-word/models/download` · matrx-local · auth loopback_token · org exempt */
483
+ declare function downloadOwwModel(api: Api, args: DownloadOwwModelArgs, options?: CallOptions): Promise<DownloadOwwModelResult>;
484
+ type DownloadModelWithProgressArgs = {
485
+ body: DownloadRequest;
486
+ };
487
+ type DownloadModelWithProgressResult = unknown;
488
+ /** Download Model With Progress */
489
+ /** `POST /wake-word/models/download-stream` · matrx-local · auth loopback_token · org exempt · sse */
490
+ declare function downloadModelWithProgress(api: Api, args: DownloadModelWithProgressArgs, options?: CallOptions): Promise<ApiStream<SseEvent>>;
491
+ type TtsStatusArgs = {
492
+ [key: string]: never;
493
+ };
494
+ type TtsStatusResult = TtsStatusResponse;
495
+ /** Tts Status */
496
+ /** `GET /tts/status` · matrx-local · auth loopback_token · org exempt */
497
+ declare function ttsStatus(api: Api, args?: TtsStatusArgs, options?: CallOptions): Promise<TtsStatusResult>;
498
+ type ListVoicesArgs = {
499
+ [key: string]: never;
500
+ };
501
+ type ListVoicesResult = TtsVoiceInfo[];
502
+ /** List Voices */
503
+ /** `GET /tts/voices` · matrx-local · auth loopback_token · org exempt */
504
+ declare function listVoices(api: Api, args?: ListVoicesArgs, options?: CallOptions): Promise<ListVoicesResult>;
505
+ type DownloadModelArgs = {
506
+ [key: string]: never;
507
+ };
508
+ type DownloadModelResult = DownloadResponse;
509
+ /** Download Model */
510
+ /** `POST /tts/download-model` · matrx-local · auth loopback_token · org exempt */
511
+ declare function downloadModel(api: Api, args?: DownloadModelArgs, options?: CallOptions): Promise<DownloadModelResult>;
512
+ type SynthesizeArgs = {
513
+ body: SynthesizeRequest;
514
+ };
515
+ type SynthesizeResult = unknown;
516
+ /** Synthesize */
517
+ /** `POST /tts/synthesize` · matrx-local · auth loopback_token · org exempt */
518
+ declare function synthesize(api: Api, args: SynthesizeArgs, options?: CallOptions): Promise<SynthesizeResult>;
519
+ type SynthesizeStreamArgs = {
520
+ body: SynthesizeRequest;
521
+ };
522
+ type SynthesizeStreamResult = unknown;
523
+ /** Synthesize Stream */
524
+ /** `POST /tts/synthesize-stream` · matrx-local · auth loopback_token · org exempt · bytes */
525
+ declare function synthesizeStream(api: Api, args: SynthesizeStreamArgs, options?: CallOptions): Promise<Response>;
526
+ type PreviewVoiceArgs = {
527
+ body: PreviewVoiceRequest;
528
+ };
529
+ type PreviewVoiceResult = unknown;
530
+ /** Preview Voice */
531
+ /** `POST /tts/preview-voice` · matrx-local · auth loopback_token · org exempt */
532
+ declare function previewVoice(api: Api, args: PreviewVoiceArgs, options?: CallOptions): Promise<PreviewVoiceResult>;
533
+ type UnloadArgs = {
534
+ [key: string]: never;
535
+ };
536
+ type UnloadResult = {
537
+ [key: string]: unknown;
538
+ };
539
+ /** Unload */
540
+ /** `DELETE /tts/unload` · matrx-local · auth loopback_token · org exempt */
541
+ declare function unload(api: Api, args?: UnloadArgs, options?: CallOptions): Promise<UnloadResult>;
542
+ type BlendPreviewArgs = {
543
+ body: BlendPreviewRequest;
544
+ };
545
+ type BlendPreviewResult = unknown;
546
+ /** Blend Preview */
547
+ /** `POST /tts/blend/preview` · matrx-local · auth loopback_token · org exempt */
548
+ declare function blendPreview(api: Api, args: BlendPreviewArgs, options?: CallOptions): Promise<BlendPreviewResult>;
549
+ type BlendSaveArgs = {
550
+ body: SaveBlendRequest;
551
+ };
552
+ type BlendSaveResult = ActionResponse;
553
+ /** Blend Save */
554
+ /** `POST /tts/blend/save` · matrx-local · auth loopback_token · org exempt */
555
+ declare function blendSave(api: Api, args: BlendSaveArgs, options?: CallOptions): Promise<BlendSaveResult>;
556
+ type ListCustomVoicesArgs = {
557
+ [key: string]: never;
558
+ };
559
+ type ListCustomVoicesResult = TtsVoiceInfo[];
560
+ /** List Custom Voices */
561
+ /** `GET /tts/custom-voices` · matrx-local · auth loopback_token · org exempt */
562
+ declare function listCustomVoices(api: Api, args?: ListCustomVoicesArgs, options?: CallOptions): Promise<ListCustomVoicesResult>;
563
+ type RenameCustomVoiceArgs = {
564
+ path: {
565
+ voice_id: string;
566
+ };
567
+ body: RenameVoiceRequest;
568
+ };
569
+ type RenameCustomVoiceResult = ActionResponse;
570
+ /** Rename Custom Voice */
571
+ /** `PATCH /tts/custom-voices/{voice_id}` · matrx-local · auth loopback_token · org exempt */
572
+ declare function renameCustomVoice(api: Api, args: RenameCustomVoiceArgs, options?: CallOptions): Promise<RenameCustomVoiceResult>;
573
+ type DeleteCustomVoiceArgs = {
574
+ path: {
575
+ voice_id: string;
576
+ };
577
+ };
578
+ type DeleteCustomVoiceResult = ActionResponse;
579
+ /** Delete Custom Voice */
580
+ /** `DELETE /tts/custom-voices/{voice_id}` · matrx-local · auth loopback_token · org exempt */
581
+ declare function deleteCustomVoice(api: Api, args: DeleteCustomVoiceArgs, options?: CallOptions): Promise<DeleteCustomVoiceResult>;
582
+ type ImportVoiceFileArgs = {
583
+ body: FormData;
584
+ };
585
+ type ImportVoiceFileResult = ActionResponse;
586
+ /** Import Voice File */
587
+ /** `POST /tts/custom-voices/import` · matrx-local · auth loopback_token · org exempt */
588
+ declare function importVoiceFile(api: Api, args: ImportVoiceFileArgs, options?: CallOptions): Promise<ImportVoiceFileResult>;
589
+ /** Every JSON operation of this domain by `METHOD path` — for path-keyed calls. */
590
+ interface Operations {
591
+ "POST /audio/recording-journal/chunks": {
592
+ args: CreateRecordingJournalChunkArgs;
593
+ result: CreateRecordingJournalChunkResult;
594
+ };
595
+ "GET /audio/recording-journal": {
596
+ args: GetRecordingJournalsArgs;
597
+ result: GetRecordingJournalsResult;
598
+ };
599
+ "GET /audio/recording-journal/{recording_id}": {
600
+ args: GetRecordingJournalArgs;
601
+ result: GetRecordingJournalResult;
602
+ };
603
+ "DELETE /audio/recording-journal/{recording_id}": {
604
+ args: DeleteRecordingJournalArgs;
605
+ result: DeleteRecordingJournalResult;
606
+ };
607
+ "POST /audio/recording-journal/{recording_id}/complete": {
608
+ args: CompleteRecordingJournalArgs;
609
+ result: CompleteRecordingJournalResult;
610
+ };
611
+ "POST /audio/transcribe": {
612
+ args: TranscribeUploadArgs;
613
+ result: TranscribeUploadResult;
614
+ };
615
+ "POST /audio/transcribe-url": {
616
+ args: TranscribeUrlArgs;
617
+ result: TranscribeUrlResult;
618
+ };
619
+ "POST /audio/transcribe-file": {
620
+ args: TranscribeFileArgs;
621
+ result: TranscribeFileResult;
622
+ };
623
+ "POST /audio/voice-preview": {
624
+ args: VoicePreviewRouteArgs;
625
+ result: VoicePreviewRouteResult;
626
+ };
627
+ "POST /audio/text-to-speech": {
628
+ args: TextToSpeechArgs;
629
+ result: TextToSpeechResult;
630
+ };
631
+ "GET /wake-word/status": {
632
+ args: GetStatusArgs;
633
+ result: GetStatusResult;
634
+ };
635
+ "POST /wake-word/start": {
636
+ args: StartWakeWordArgs;
637
+ result: StartWakeWordResult;
638
+ };
639
+ "POST /wake-word/stop": {
640
+ args: StopWakeWordArgs;
641
+ result: StopWakeWordResult;
642
+ };
643
+ "POST /wake-word/mute": {
644
+ args: MuteWakeWordArgs;
645
+ result: MuteWakeWordResult;
646
+ };
647
+ "POST /wake-word/unmute": {
648
+ args: UnmuteWakeWordArgs;
649
+ result: UnmuteWakeWordResult;
650
+ };
651
+ "POST /wake-word/dismiss": {
652
+ args: DismissWakeWordArgs;
653
+ result: DismissWakeWordResult;
654
+ };
655
+ "POST /wake-word/trigger": {
656
+ args: TriggerWakeWordArgs;
657
+ result: TriggerWakeWordResult;
658
+ };
659
+ "POST /wake-word/configure": {
660
+ args: ConfigureWakeWordArgs;
661
+ result: ConfigureWakeWordResult;
662
+ };
663
+ "GET /wake-word/models": {
664
+ args: ListModelsArgs;
665
+ result: ListModelsResult;
666
+ };
667
+ "POST /wake-word/models/download": {
668
+ args: DownloadOwwModelArgs;
669
+ result: DownloadOwwModelResult;
670
+ };
671
+ "GET /tts/status": {
672
+ args: TtsStatusArgs;
673
+ result: TtsStatusResult;
674
+ };
675
+ "GET /tts/voices": {
676
+ args: ListVoicesArgs;
677
+ result: ListVoicesResult;
678
+ };
679
+ "POST /tts/download-model": {
680
+ args: DownloadModelArgs;
681
+ result: DownloadModelResult;
682
+ };
683
+ "POST /tts/synthesize": {
684
+ args: SynthesizeArgs;
685
+ result: SynthesizeResult;
686
+ };
687
+ "POST /tts/preview-voice": {
688
+ args: PreviewVoiceArgs;
689
+ result: PreviewVoiceResult;
690
+ };
691
+ "DELETE /tts/unload": {
692
+ args: UnloadArgs;
693
+ result: UnloadResult;
694
+ };
695
+ "POST /tts/blend/preview": {
696
+ args: BlendPreviewArgs;
697
+ result: BlendPreviewResult;
698
+ };
699
+ "POST /tts/blend/save": {
700
+ args: BlendSaveArgs;
701
+ result: BlendSaveResult;
702
+ };
703
+ "GET /tts/custom-voices": {
704
+ args: ListCustomVoicesArgs;
705
+ result: ListCustomVoicesResult;
706
+ };
707
+ "PATCH /tts/custom-voices/{voice_id}": {
708
+ args: RenameCustomVoiceArgs;
709
+ result: RenameCustomVoiceResult;
710
+ };
711
+ "DELETE /tts/custom-voices/{voice_id}": {
712
+ args: DeleteCustomVoiceArgs;
713
+ result: DeleteCustomVoiceResult;
714
+ };
715
+ "POST /tts/custom-voices/import": {
716
+ args: ImportVoiceFileArgs;
717
+ result: ImportVoiceFileResult;
718
+ };
719
+ }
720
+ /** Path-keyed call, scoped to this domain only (never a global path map). */
721
+ declare function call<K extends keyof Operations>(api: Api, key: K, args?: Operations[K]["args"], options?: CallOptions): Promise<Operations[K]["result"]>;
722
+
723
+ export { type ActionResponse, type BlendComponent, type BlendPreviewArgs, type BlendPreviewRequest, type BlendPreviewResult, type BlendSaveArgs, type BlendSaveResult, type CompleteRecordingJournalArgs, type CompleteRecordingJournalResult, type ConfigureWakeWordArgs, type ConfigureWakeWordResult, type CreateRecordingJournalChunkArgs, type CreateRecordingJournalChunkResult, type DeleteCustomVoiceArgs, type DeleteCustomVoiceResult, type DeleteRecordingJournalArgs, type DeleteRecordingJournalResult, type DismissWakeWordArgs, type DismissWakeWordResult, type DownloadModelArgs, type DownloadModelResult, type DownloadModelWithProgressArgs, type DownloadModelWithProgressResult, type DownloadOwwModelArgs, type DownloadOwwModelResult, type DownloadRequest, type DownloadResponse, type EventStreamArgs, type EventStreamResult, type GetRecordingJournalArgs, type GetRecordingJournalResult, type GetRecordingJournalsArgs, type GetRecordingJournalsResult, type GetStatusArgs, type GetStatusResult, type ImportVoiceFileArgs, type ImportVoiceFileResult, type JournalChunk, type JournalChunkRequest, type JournalDiscardResult, type JournalRecording, type ListCustomVoicesArgs, type ListCustomVoicesResult, type ListModelsArgs, type ListModelsResult, type ListVoicesArgs, type ListVoicesResult, type ModelInfoResponse, type ModelsResponse, type MuteWakeWordArgs, type MuteWakeWordResult, type Operations, type PreviewVoiceArgs, type PreviewVoiceRequest, type PreviewVoiceResult, type RecordingCompletion, type RecordingCompletionRequest, type RenameCustomVoiceArgs, type RenameCustomVoiceResult, type RenameVoiceRequest, type SaveBlendRequest, type SpeechRequest, type SpeechResponse, type StartRequest, type StartWakeWordArgs, type StartWakeWordResult, type StopWakeWordArgs, type StopWakeWordResult, type SynthesizeArgs, type SynthesizeRequest, type SynthesizeResult, type SynthesizeStreamArgs, type SynthesizeStreamResult, type TextToSpeechArgs, type TextToSpeechResult, type TranscribeFileArgs, type TranscribeFileResult, type TranscribeUploadArgs, type TranscribeUploadResult, type TranscribeUrlArgs, type TranscribeUrlResult, type TranscriptionChapter, type TranscriptionFileRequest, type TranscriptionMeta, type TranscriptionSegment, type TranscriptionUrlRequest, type TriggerWakeWordArgs, type TriggerWakeWordResult, type TtsStatusArgs, type TtsStatusResponse, type TtsStatusResult, type TtsVoiceInfo, type UnloadArgs, type UnloadResult, type UnmuteWakeWordArgs, type UnmuteWakeWordResult, type VoicePreviewRequest, type VoicePreviewResponse, type VoicePreviewRouteArgs, type VoicePreviewRouteResult, type WakeWordStatus, type YouTubeTranscriptRequest, type YoutubeTranscriptArgs, type YoutubeTranscriptResult, type aidream__services__audio__speech__TranscriptionResponse, type app__api__wake_word_routes__ConfigureRequest, 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 };