@ai-matrx/api 0.0.0-stage → 0.1.1

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 +31 -0
  2. package/LICENSE +21 -0
  3. package/README.md +22 -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-5WJLKYH6.cjs +48 -0
  34. package/dist/chunk-FNIYADWI.cjs +59 -0
  35. package/dist/chunk-HER22VVH.cjs +1047 -0
  36. package/dist/chunk-KIEAFMKB.js +264 -0
  37. package/dist/chunk-TSHL7Z53.js +1012 -0
  38. package/dist/chunk-VTZKJMSY.js +43 -0
  39. package/dist/chunk-YTEOFGFC.js +57 -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 +2016 -0
  87. package/dist/index.d.cts +2069 -0
  88. package/dist/index.d.ts +2069 -0
  89. package/dist/index.js +1746 -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 +419 -4
@@ -0,0 +1,2270 @@
1
+ import { A as Api, C as CallOptions, a as ApiStream, N as NdjsonEvent, S as SseEvent } 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
+ /** One run of a batch — a full GenerateRequest plus its matrix identity. */
11
+ type BatchJobSpec = {
12
+ prompt: string;
13
+ model_id: string;
14
+ negative_prompt?: string;
15
+ steps?: number | null;
16
+ guidance?: number | null;
17
+ width?: number | null;
18
+ height?: number | null;
19
+ seed?: number | null;
20
+ init_image_b64?: string | null;
21
+ strength?: number | null;
22
+ revision?: ImageRevisionRequest | null;
23
+ loras?: LoraSpec[];
24
+ text_encoder_id?: string | null;
25
+ extra_params?: {
26
+ [key: string]: unknown;
27
+ };
28
+ variables?: {
29
+ [key: string]: string;
30
+ };
31
+ combo_label?: string | null;
32
+ };
33
+ /** BatchSummaryResponse */
34
+ type BatchSummaryResponse = {
35
+ batch_id: string;
36
+ label?: string | null;
37
+ total: number;
38
+ queued: number;
39
+ running: number;
40
+ completed: number;
41
+ failed: number;
42
+ cancelled: number;
43
+ done: number;
44
+ finished: boolean;
45
+ created_at: number;
46
+ };
47
+ /** BgRemoveParams */
48
+ type BgRemoveParams = {
49
+ model?: "u2net" | "u2netp" | "u2net_human_seg" | "u2net_cloth_seg" | "silueta" | "isnet-general-use" | "isnet-anime" | "birefnet-general" | "birefnet-portrait";
50
+ alpha_matting?: boolean;
51
+ alpha_matting_foreground_threshold?: number;
52
+ alpha_matting_background_threshold?: number;
53
+ alpha_matting_erode_size?: number;
54
+ background_color?: string | null;
55
+ post_process_mask?: boolean;
56
+ };
57
+ /** CancelGenerationResponse */
58
+ type CancelGenerationResponse = {
59
+ cancelled: boolean;
60
+ was?: string | null;
61
+ job_id?: string | null;
62
+ reason?: string | null;
63
+ mid_flight?: boolean;
64
+ };
65
+ /** One timed line, exactly as the person's own browser read it. */
66
+ type CaptionSegment = {
67
+ start: number;
68
+ end: number;
69
+ text: string;
70
+ };
71
+ /** The caption track a `youtube_captions` hand-off comes back with. */
72
+ type CaptionTrackBody = {
73
+ language?: string;
74
+ is_auto_generated?: boolean;
75
+ available_languages?: string[];
76
+ segments?: CaptionSegment[];
77
+ };
78
+ /** The browser-capture queue row returned after every ladder action. */
79
+ type CaptureHandoff = {
80
+ id: string;
81
+ organization_id: string;
82
+ library_id?: string | null;
83
+ url: string;
84
+ title: string;
85
+ handoff_kind: string;
86
+ rung: string;
87
+ status: string;
88
+ reason?: string | null;
89
+ reason_note?: string | null;
90
+ what_to_do?: string;
91
+ estimated_seconds?: number | null;
92
+ rung_trail?: {
93
+ [key: string]: JsonValue;
94
+ }[];
95
+ created_at?: string | null;
96
+ updated_at?: string | null;
97
+ batch_id?: string | null;
98
+ claimed_by?: string | null;
99
+ claimed_at?: string | null;
100
+ claim_expires_at?: string | null;
101
+ attempt_count?: number;
102
+ captured_item_id?: string | null;
103
+ captured_processed_document_id?: string | null;
104
+ captured_chars?: number | null;
105
+ captured_at?: string | null;
106
+ captured_by_rung?: string | null;
107
+ final_url?: string | null;
108
+ failure_note?: string | null;
109
+ };
110
+ /** Queue action receipt; preserves optional landing ids and notices. */
111
+ type CaptureLadderResponse = {
112
+ handoff?: CaptureHandoff | null;
113
+ created?: CaptureHandoff[];
114
+ items?: CaptureHandoff[];
115
+ refused?: CaptureRefusal[];
116
+ counts?: {
117
+ [key: string]: number;
118
+ };
119
+ batch_id?: string | null;
120
+ processed_document_id?: string | null;
121
+ source_id?: string | null;
122
+ transcript_id?: string | null;
123
+ library_item_id?: string | null;
124
+ library_id?: string | null;
125
+ notices?: string[];
126
+ };
127
+ /** CaptureRefusal */
128
+ type CaptureRefusal = {
129
+ url: string;
130
+ why: string;
131
+ code?: string | null;
132
+ };
133
+ /** ChangePasswordRequest */
134
+ type ChangePasswordRequest = {
135
+ current_password: string;
136
+ new_password: string;
137
+ };
138
+ /** ClaimBody */
139
+ type ClaimBody = {
140
+ client?: string;
141
+ ttl_seconds?: number | null;
142
+ };
143
+ /** CommitRequest */
144
+ type CommitRequest = {
145
+ job_id: string;
146
+ keep?: string[];
147
+ folder_path?: string;
148
+ published_to_web?: boolean | null;
149
+ shown_to?: ("only_me" | "my_team" | "everyone" | "everyone_on_ai_matrx") | null;
150
+ visibility?: ("personal" | "internal" | "link" | "public" | "shared" | "private") | null;
151
+ metadata?: {
152
+ [key: string]: unknown;
153
+ } | null;
154
+ filename_overrides?: {
155
+ [key: string]: string;
156
+ } | null;
157
+ include_source?: boolean;
158
+ source_filename?: string | null;
159
+ base_filename?: string | null;
160
+ };
161
+ /** CreateLibraryBody */
162
+ type CreateLibraryBody = {
163
+ input: string;
164
+ adapter?: ("youtube" | "podcast_rss" | "blog_feed" | "slide_deck" | "drive_folder" | "onedrive_drive" | "outlook_mail" | "outlook_calendar" | "teams_chat" | "google_picked_files") | null;
165
+ name?: string | null;
166
+ description?: string | null;
167
+ published_to_web?: boolean | null;
168
+ shown_to?: ("only_me" | "my_team" | "everyone" | "everyone_on_ai_matrx") | null;
169
+ visibility?: ("personal" | "internal" | "link" | "public" | "shared" | "private") | null;
170
+ organization_id?: string | null;
171
+ settings?: {
172
+ [key: string]: JsonValue;
173
+ } | null;
174
+ };
175
+ /** A custom-model registry entry — returned by /inspect and posted back */
176
+ type CustomModelEntry = {
177
+ model_id: string;
178
+ name: string;
179
+ source: "hf" | "civitai";
180
+ source_ref: string;
181
+ family: string;
182
+ pipeline_type?: string;
183
+ format: "diffusers" | "single_file";
184
+ weight_name?: string | null;
185
+ files?: {
186
+ [key: string]: unknown;
187
+ }[] | null;
188
+ size_gb?: number;
189
+ requires_hf_token?: boolean;
190
+ download_url?: string | null;
191
+ civitai_model_id?: number | null;
192
+ civitai_version_id?: number | null;
193
+ vram_gb?: number;
194
+ ram_gb?: number;
195
+ added_at?: string | null;
196
+ };
197
+ /** CustomModelInspectRequest */
198
+ type CustomModelInspectRequest = {
199
+ ref: string;
200
+ };
201
+ /** CustomModelInspectResponse */
202
+ type CustomModelInspectResponse = {
203
+ entry: CustomModelEntry;
204
+ warnings: string[];
205
+ registerable: boolean;
206
+ refusal_reason?: string | null;
207
+ };
208
+ /** CustomModelRegisterResponse */
209
+ type CustomModelRegisterResponse = {
210
+ registered: boolean;
211
+ model_id: string;
212
+ already_registered?: boolean;
213
+ queued?: boolean;
214
+ download_id?: string | null;
215
+ already_downloaded?: boolean;
216
+ };
217
+ /** DetectDocumentRequest */
218
+ type DetectDocumentRequest = {
219
+ /** Organization context for the request; omitted to use the authenticated context. */
220
+ organization_id?: string | null;
221
+ /** Optional associated project selected by the caller. */
222
+ project_id?: string | null;
223
+ /** Optional associated task selected by the caller. */
224
+ task_id?: string | null;
225
+ /** Stable application slug that initiated the request. */
226
+ source_app?: string | null;
227
+ /** Stable feature slug within the source application. */
228
+ source_feature?: string | null;
229
+ /** How the client initiated this request: 'user' for a direct human action, 'auto' for client-code automation. Omit for API callers. */
230
+ initiation?: ("user" | "auto") | null;
231
+ /** cld_files id of the image to analyze. */
232
+ source_id: string;
233
+ /** Detection sensitivity: standard is conservative; relaxed retries with higher recall. */
234
+ mode?: "standard" | "relaxed";
235
+ };
236
+ /** DiscardRequest */
237
+ type DiscardRequest = {
238
+ job_id: string;
239
+ };
240
+ /** DiscardResponse */
241
+ type DiscardResponse = {
242
+ job_id: string;
243
+ deleted: number;
244
+ };
245
+ /** DismissBody */
246
+ type DismissBody = {
247
+ note?: string | null;
248
+ };
249
+ /** DownloadModelRequest */
250
+ type DownloadModelRequest = {
251
+ model_id: string;
252
+ };
253
+ /** DownloadModelResponse */
254
+ type DownloadModelResponse = {
255
+ queued: boolean;
256
+ download_id?: string | null;
257
+ already_downloaded?: boolean;
258
+ };
259
+ /** DownloadTextEncoderRequest */
260
+ type DownloadTextEncoderRequest = {
261
+ model_id: string;
262
+ text_encoder_id: string;
263
+ };
264
+ /** DownloadTextEncoderResponse */
265
+ type DownloadTextEncoderResponse = {
266
+ queued: boolean;
267
+ download_id?: string | null;
268
+ already_installed?: boolean;
269
+ text_encoder_id: string;
270
+ };
271
+ /** EnqueueBatchRequest */
272
+ type EnqueueBatchRequest = {
273
+ label?: string | null;
274
+ jobs: BatchJobSpec[];
275
+ };
276
+ /** EnqueueBatchResponse */
277
+ type EnqueueBatchResponse = {
278
+ batch_id: string;
279
+ job_ids: string[];
280
+ count: number;
281
+ };
282
+ /** EnqueueBody */
283
+ type EnqueueBody = {
284
+ urls: string[];
285
+ reason?: string | null;
286
+ batch_id?: string | null;
287
+ library_id?: string | null;
288
+ titles?: {
289
+ [key: string]: string;
290
+ } | null;
291
+ handoff_kind?: "web_page" | "youtube_captions";
292
+ };
293
+ /** EnqueueImageJobRequest */
294
+ type EnqueueImageJobRequest = {
295
+ prompt: string;
296
+ model_id: string;
297
+ negative_prompt?: string;
298
+ steps?: number | null;
299
+ guidance?: number | null;
300
+ width?: number | null;
301
+ height?: number | null;
302
+ seed?: number | null;
303
+ init_image_b64?: string | null;
304
+ strength?: number | null;
305
+ revision?: ImageRevisionRequest | null;
306
+ loras?: LoraSpec[];
307
+ text_encoder_id?: string | null;
308
+ extra_params?: {
309
+ [key: string]: unknown;
310
+ };
311
+ priority?: "normal" | "next";
312
+ };
313
+ /** EstimateBody */
314
+ type EstimateBody = {
315
+ action: string;
316
+ selection?: Selection;
317
+ allow_paid?: boolean | null;
318
+ prefer_lane?: "free_captions" | "paid_agent";
319
+ params?: {
320
+ [key: string]: JsonValue;
321
+ } | null;
322
+ };
323
+ /** ExportBody */
324
+ type ExportBody = {
325
+ format?: "markdown" | "csv" | "json";
326
+ selection?: Selection;
327
+ include_transcripts?: boolean;
328
+ };
329
+ /** Wire shape of POST /images/generate (matches the FE client's */
330
+ type GenerateImageRequest = {
331
+ /** Organization context for the request; omitted to use the authenticated context. */
332
+ organization_id?: string | null;
333
+ /** Optional associated project selected by the caller. */
334
+ project_id?: string | null;
335
+ /** Optional associated task selected by the caller. */
336
+ task_id?: string | null;
337
+ /** Stable application slug that initiated the request. */
338
+ source_app?: string | null;
339
+ /** Stable feature slug within the source application. */
340
+ source_feature?: string | null;
341
+ /** How the client initiated this request: 'user' for a direct human action, 'auto' for client-code automation. Omit for API callers. */
342
+ initiation?: ("user" | "auto") | null;
343
+ /** Natural-language description of the image to generate. */
344
+ prompt: string;
345
+ /** Aspect-ratio intent; mapped per provider. Empty uses the Holder's aspect ratio. */
346
+ size?: ("square" | "portrait" | "landscape" | "wide" | "tall") | null;
347
+ /** Optional style hint (e.g. 'editorial illustration'); folded into the prompt. */
348
+ style?: string | null;
349
+ /** Number of images to generate. */
350
+ count?: number;
351
+ /** Catalog model name; empty runs the image.generate mandate Holder's model. */
352
+ model?: string | null;
353
+ /** The exact class (ai.offering) of ``model`` the person chose. A model offered in several classes is several products; without it the catalog runs the preferred class. Ignored when ``model`` is empty. */
354
+ offering_id?: string | null;
355
+ };
356
+ /** GenerateRequest */
357
+ type GenerateRequest = {
358
+ prompt: string;
359
+ model_id: string;
360
+ negative_prompt?: string;
361
+ steps?: number | null;
362
+ guidance?: number | null;
363
+ width?: number | null;
364
+ height?: number | null;
365
+ seed?: number | null;
366
+ init_image_b64?: string | null;
367
+ strength?: number | null;
368
+ revision?: ImageRevisionRequest | null;
369
+ loras?: LoraSpec[];
370
+ text_encoder_id?: string | null;
371
+ extra_params?: {
372
+ [key: string]: unknown;
373
+ };
374
+ };
375
+ /** GenerateResponse */
376
+ type GenerateResponse = {
377
+ success: boolean;
378
+ image_b64?: string | null;
379
+ width?: number;
380
+ height?: number;
381
+ model_id?: string;
382
+ elapsed_seconds?: number;
383
+ error?: string | null;
384
+ item_id?: string | null;
385
+ file_path?: string | null;
386
+ seed?: number | null;
387
+ cancelled?: boolean;
388
+ };
389
+ /** GenerateVideoRequest */
390
+ type GenerateVideoRequest = {
391
+ prompt: string;
392
+ negative_prompt?: string;
393
+ model_id?: string | null;
394
+ width?: number | null;
395
+ height?: number | null;
396
+ num_frames?: number | null;
397
+ fps?: number | null;
398
+ steps?: number | null;
399
+ guidance?: number | null;
400
+ seed?: number | null;
401
+ image_base64?: string | null;
402
+ extra_params?: {
403
+ [key: string]: unknown;
404
+ };
405
+ };
406
+ /** GenerateVideoResponse */
407
+ type GenerateVideoResponse = {
408
+ job_id: string;
409
+ };
410
+ /** ImageBgRemoveRequest */
411
+ type ImageBgRemoveRequest = {
412
+ /** Organization context for the request; omitted to use the authenticated context. */
413
+ organization_id?: string | null;
414
+ /** Optional associated project selected by the caller. */
415
+ project_id?: string | null;
416
+ /** Optional associated task selected by the caller. */
417
+ task_id?: string | null;
418
+ /** Stable application slug that initiated the request. */
419
+ source_app?: string | null;
420
+ /** Stable feature slug within the source application. */
421
+ source_feature?: string | null;
422
+ /** How the client initiated this request: 'user' for a direct human action, 'auto' for client-code automation. Omit for API callers. */
423
+ initiation?: ("user" | "auto") | null;
424
+ source_id: string;
425
+ mask_id?: string | null;
426
+ params?: BgRemoveParams | null;
427
+ output?: ImageEditOutput;
428
+ };
429
+ /** ImageEditOutput */
430
+ type ImageEditOutput = {
431
+ published_to_web?: boolean | null;
432
+ shown_to?: ("only_me" | "my_team" | "everyone" | "everyone_on_ai_matrx") | null;
433
+ /** Transitional access level for the newly written edited image. */
434
+ visibility?: ("personal" | "internal" | "link" | "public" | "shared" | "private") | null;
435
+ /** Logical destination folder; defaults beside the source image. */
436
+ folder?: string | null;
437
+ /** Encoded image format for the result master. */
438
+ format?: "png" | "jpeg" | "webp" | "avif";
439
+ /** Encoder quality from 1 to 100 for lossy output formats. */
440
+ quality?: number;
441
+ /** Optional asset preset used to render additional variants. */
442
+ preset?: string | null;
443
+ /** Optional output filename; the selected format controls its extension. */
444
+ filename?: string | null;
445
+ };
446
+ /** Op-discriminated image edit. ``op`` selects which registered op runs; */
447
+ type ImageEditRequest = {
448
+ /** Organization context for the request; omitted to use the authenticated context. */
449
+ organization_id?: string | null;
450
+ /** Optional associated project selected by the caller. */
451
+ project_id?: string | null;
452
+ /** Optional associated task selected by the caller. */
453
+ task_id?: string | null;
454
+ /** Stable application slug that initiated the request. */
455
+ source_app?: string | null;
456
+ /** Stable feature slug within the source application. */
457
+ source_feature?: string | null;
458
+ /** How the client initiated this request: 'user' for a direct human action, 'auto' for client-code automation. Omit for API callers. */
459
+ initiation?: ("user" | "auto") | null;
460
+ /** cld_files id of the source image to edit. */
461
+ source_id: string;
462
+ /** Optional cld_files id of the mask image required by masked operations. */
463
+ mask_id?: string | null;
464
+ /** Registered image-operation name advertised by GET /images/ops. */
465
+ op: string;
466
+ /** Operation-specific parameters validated against the selected op's schema. */
467
+ params?: {
468
+ [key: string]: JsonValue;
469
+ };
470
+ /** Encoding, access, folder, and variant options for the new image. */
471
+ output?: ImageEditOutput;
472
+ };
473
+ /** ImageGenModelInfo */
474
+ type ImageGenModelInfo = {
475
+ model_id: string;
476
+ name: string;
477
+ provider: string;
478
+ pipeline_type: string;
479
+ vram_gb: number;
480
+ ram_gb: number;
481
+ description: string;
482
+ quality_rating: number;
483
+ speed_rating: number;
484
+ recommended_steps: number;
485
+ recommended_guidance: number;
486
+ supports_negative_prompt: boolean;
487
+ model_card_url: string;
488
+ default_width: number;
489
+ default_height: number;
490
+ requires_hf_token: boolean;
491
+ supports_img2img: boolean;
492
+ img2img_strength: boolean;
493
+ lora_family: string;
494
+ tags: string[];
495
+ download_size_gb: number;
496
+ is_downloaded: boolean;
497
+ hardware_ok: boolean;
498
+ hardware_reason?: string | null;
499
+ custom?: boolean;
500
+ source?: string;
501
+ format?: string;
502
+ text_encoders?: {
503
+ [key: string]: unknown;
504
+ }[];
505
+ };
506
+ /** ImageGenStatusResponse */
507
+ type ImageGenStatusResponse = {
508
+ available: boolean;
509
+ unavailable_reason: string | null;
510
+ loaded_model_id: string | null;
511
+ loaded_text_encoder_id?: string | null;
512
+ is_loading: boolean;
513
+ load_progress: number;
514
+ load_error?: string | null;
515
+ is_generating?: boolean;
516
+ cancel_requested?: boolean;
517
+ packages_version?: string | null;
518
+ packages_outdated?: boolean;
519
+ device?: string;
520
+ };
521
+ /** ImageInpaintRequest */
522
+ type ImageInpaintRequest = {
523
+ /** Organization context for the request; omitted to use the authenticated context. */
524
+ organization_id?: string | null;
525
+ /** Optional associated project selected by the caller. */
526
+ project_id?: string | null;
527
+ /** Optional associated task selected by the caller. */
528
+ task_id?: string | null;
529
+ /** Stable application slug that initiated the request. */
530
+ source_app?: string | null;
531
+ /** Stable feature slug within the source application. */
532
+ source_feature?: string | null;
533
+ /** How the client initiated this request: 'user' for a direct human action, 'auto' for client-code automation. Omit for API callers. */
534
+ initiation?: ("user" | "auto") | null;
535
+ source_id: string;
536
+ mask_id: string;
537
+ params?: InpaintParams | null;
538
+ output?: ImageEditOutput;
539
+ };
540
+ /** ImageJobEnqueuedResponse */
541
+ type ImageJobEnqueuedResponse = {
542
+ job_id: string;
543
+ };
544
+ /** ImageJobResponse */
545
+ type ImageJobResponse = {
546
+ job_id: string;
547
+ status: string;
548
+ prompt: string;
549
+ model_id: string;
550
+ negative_prompt?: string;
551
+ steps?: number | null;
552
+ guidance?: number | null;
553
+ width?: number | null;
554
+ height?: number | null;
555
+ seed?: number | null;
556
+ has_init_image?: boolean;
557
+ init_image_sha256?: string | null;
558
+ strength?: number | null;
559
+ revision_parent_item_id?: string | null;
560
+ revision_root_item_id?: string | null;
561
+ loras?: {
562
+ [key: string]: unknown;
563
+ }[];
564
+ text_encoder_id?: string | null;
565
+ extra_params?: {
566
+ [key: string]: unknown;
567
+ };
568
+ params?: {
569
+ [key: string]: unknown;
570
+ };
571
+ progress?: number;
572
+ current_step?: number;
573
+ total_steps?: number;
574
+ elapsed_seconds?: number;
575
+ error?: string | null;
576
+ item_id?: string | null;
577
+ file_path?: string | null;
578
+ cancel_requested?: boolean;
579
+ priority?: string;
580
+ created_at?: number;
581
+ finished_at?: number | null;
582
+ finished_sequence?: number;
583
+ batch_id?: string | null;
584
+ batch_index?: number;
585
+ batch_size?: number;
586
+ batch_label?: string | null;
587
+ variables?: {
588
+ [key: string]: string;
589
+ };
590
+ combo_label?: string | null;
591
+ attempts?: number;
592
+ max_attempts?: number;
593
+ retrying?: boolean;
594
+ retry_in_seconds?: number;
595
+ last_error?: string | null;
596
+ };
597
+ /** One entry in the ops catalog returned by GET /images/ops. */
598
+ type ImageOpDescriptor = {
599
+ name: string;
600
+ family: string;
601
+ description: string;
602
+ requires_mask: boolean;
603
+ supports_mask: boolean;
604
+ preserves_alpha: boolean;
605
+ params_schema: {
606
+ [key: string]: JsonValue;
607
+ };
608
+ };
609
+ /** ImageOpsCatalog */
610
+ type ImageOpsCatalog = {
611
+ ops: ImageOpDescriptor[];
612
+ aspect_ratios: {
613
+ [key: string]: [number, number];
614
+ };
615
+ backends: {
616
+ [key: string]: boolean;
617
+ };
618
+ };
619
+ /** Durable lineage for an explicit user-applied image revision. */
620
+ type ImageRevisionRequest = {
621
+ parent_item_id: string;
622
+ root_item_id?: string | null;
623
+ };
624
+ /** ImageStudioCapabilities */
625
+ type ImageStudioCapabilities = {
626
+ avif_output: boolean;
627
+ heic_input: boolean;
628
+ mozjpeg_optimization: boolean;
629
+ smart_crop: boolean;
630
+ max_source_bytes: number;
631
+ preview_url_ttl_seconds: number;
632
+ supported_input_extensions: string[];
633
+ fit_modes: string[];
634
+ position_anchors: string[];
635
+ };
636
+ /** ImageStudioPresetsResponse */
637
+ type ImageStudioPresetsResponse = {
638
+ categories: JsonValue[];
639
+ bundles: JsonValue[];
640
+ capabilities: ImageStudioCapabilities;
641
+ };
642
+ /** InpaintParams */
643
+ type InpaintParams = {
644
+ method?: "telea" | "ns";
645
+ radius?: number;
646
+ };
647
+ /** InstallStatusResponse */
648
+ type InstallStatusResponse = {
649
+ status: string;
650
+ stage?: string;
651
+ percent?: number;
652
+ message?: string;
653
+ error?: string | null;
654
+ already_installed?: boolean;
655
+ install_dir?: string;
656
+ log_lines?: string[];
657
+ };
658
+ /** ItemIdsRequest */
659
+ type ItemIdsRequest = {
660
+ item_ids: string[];
661
+ };
662
+ /** LoadModelResponse */
663
+ type LoadModelResponse = {
664
+ success: boolean;
665
+ model_id?: string | null;
666
+ device?: string | null;
667
+ already_loaded?: boolean;
668
+ error?: string | null;
669
+ };
670
+ /** LoraCatalogInfo */
671
+ type LoraCatalogInfo = {
672
+ repo_id: string;
673
+ name: string;
674
+ description: string;
675
+ weight_name: string;
676
+ base_family: string;
677
+ license: string;
678
+ source?: string;
679
+ unverified?: boolean;
680
+ installed?: boolean;
681
+ };
682
+ /** LoraDownloadRequest */
683
+ type LoraDownloadRequest = {
684
+ repo_id?: string | null;
685
+ weight_name?: string | null;
686
+ civitai?: string | null;
687
+ };
688
+ /** LoraDownloadResponse */
689
+ type LoraDownloadResponse = {
690
+ queued: boolean;
691
+ download_id?: string | null;
692
+ lora_id?: string | null;
693
+ weight_name?: string | null;
694
+ base_family?: string | null;
695
+ already_installed?: boolean;
696
+ source?: string;
697
+ };
698
+ /** LoraInstalledInfo */
699
+ type LoraInstalledInfo = {
700
+ id: string;
701
+ repo_id: string;
702
+ name?: string | null;
703
+ weight_name: string;
704
+ base_family?: string;
705
+ size_bytes?: number;
706
+ added_at?: string | null;
707
+ installed?: boolean;
708
+ source?: string;
709
+ };
710
+ /** LoraSpec */
711
+ type LoraSpec = {
712
+ id: string;
713
+ scale?: number;
714
+ };
715
+ /** LorasResponse */
716
+ type LorasResponse = {
717
+ installed: LoraInstalledInfo[];
718
+ catalog: LoraCatalogInfo[];
719
+ };
720
+ /** MediaLibraryItem */
721
+ type MediaLibraryItem = {
722
+ id: string;
723
+ media_type: "image" | "video";
724
+ model_id: string;
725
+ prompt: string;
726
+ negative_prompt?: string;
727
+ params: {
728
+ [key: string]: unknown;
729
+ };
730
+ seed?: number | null;
731
+ width?: number;
732
+ height?: number;
733
+ num_frames?: number | null;
734
+ fps?: number | null;
735
+ elapsed_seconds?: number;
736
+ created_at: string;
737
+ file_name: string;
738
+ file_size_bytes: number;
739
+ file_path: string;
740
+ init_image_file?: string | null;
741
+ };
742
+ /** MediaLibraryListResponse */
743
+ type MediaLibraryListResponse = {
744
+ items: MediaLibraryItem[];
745
+ total: number;
746
+ };
747
+ /** Authoritative image/video managed-runtime lifecycle. */
748
+ type MediaRuntimeStatusResponse = {
749
+ state: "absent" | "installing" | "updating" | "repairing" | "validating" | "activating" | "restart_required" | "ready" | "failed" | "rolled_back";
750
+ operation?: ("install" | "update" | "repair") | null;
751
+ attempt_id?: string | null;
752
+ runtime_revision?: string | null;
753
+ required_revision: string;
754
+ updated_at: number;
755
+ stage?: string;
756
+ percent?: number;
757
+ message?: string;
758
+ failure_code?: string | null;
759
+ failure_detail?: string | null;
760
+ repairable?: boolean;
761
+ image_available?: boolean;
762
+ video_packages_available?: boolean;
763
+ active_slot?: string | null;
764
+ last_known_good_slot?: string | null;
765
+ candidate_slot?: string | null;
766
+ package_checks?: {
767
+ [key: string]: unknown;
768
+ }[];
769
+ log_lines?: string[];
770
+ };
771
+ /** ModelParamsResponse */
772
+ type ModelParamsResponse = {
773
+ common: {
774
+ [key: string]: unknown;
775
+ };
776
+ advanced: {
777
+ [key: string]: unknown;
778
+ };
779
+ supports_negative_prompt: boolean;
780
+ };
781
+ /** NeedsDriveBody */
782
+ type NeedsDriveBody = {
783
+ reason: string;
784
+ note: string;
785
+ };
786
+ /** PasswordRequest */
787
+ type PasswordRequest = {
788
+ password: string;
789
+ };
790
+ /** QueueStateResponse */
791
+ type QueueStateResponse = {
792
+ paused: boolean;
793
+ queued: number;
794
+ running: number;
795
+ };
796
+ /** ReorderQueueRequest */
797
+ type ReorderQueueRequest = {
798
+ job_ids: string[];
799
+ };
800
+ /** ResolveBody */
801
+ type ResolveBody = {
802
+ input: string;
803
+ adapter?: ("youtube" | "podcast_rss" | "blog_feed" | "slide_deck" | "drive_folder" | "onedrive_drive" | "outlook_mail" | "outlook_calendar" | "teams_chat" | "google_picked_files") | null;
804
+ };
805
+ /** ResultBody */
806
+ type ResultBody = {
807
+ ok: boolean;
808
+ captured_by_rung: "own_browser" | "human_drive";
809
+ chars?: number | null;
810
+ title?: string | null;
811
+ text?: string | null;
812
+ html?: string | null;
813
+ final_url?: string | null;
814
+ note?: string | null;
815
+ caption_track?: CaptionTrackBody | null;
816
+ };
817
+ /** Either explicit ids or a filter. Both empty means the whole Library. */
818
+ type Selection = {
819
+ source_ids?: string[] | null;
820
+ filter?: SelectionFilter | null;
821
+ };
822
+ /** A selection expressed as a filter, so "all 1,000" never travels as 1,000 ids. */
823
+ type SelectionFilter = {
824
+ media_kind?: (("long" | "short" | "live" | "deciding" | "unknown")[]) | null;
825
+ transcript_status?: (("none" | "queued" | "running" | "ready" | "failed" | "skipped")[]) | null;
826
+ has_captions?: boolean | null;
827
+ published_after?: string | null;
828
+ published_before?: string | null;
829
+ min_duration_seconds?: number | null;
830
+ max_duration_seconds?: number | null;
831
+ q?: string | null;
832
+ action_key?: string | null;
833
+ action_status?: (("ready" | "running" | "skipped" | "failed")[]) | null;
834
+ };
835
+ /** SettingsBody */
836
+ type SettingsBody = {
837
+ scope?: "org" | "library";
838
+ library_id?: string | null;
839
+ values: {
840
+ [key: string]: JsonValue;
841
+ };
842
+ };
843
+ /** StartJobBody */
844
+ type StartJobBody = {
845
+ estimate_token?: string | null;
846
+ action?: string | null;
847
+ selection?: Selection;
848
+ params?: {
849
+ [key: string]: JsonValue;
850
+ } | null;
851
+ allow_paid?: boolean | null;
852
+ prefer_lane?: "free_captions" | "paid_agent";
853
+ name?: string | null;
854
+ parallelism?: number | null;
855
+ };
856
+ /** SyncBody */
857
+ type SyncBody = {
858
+ mode?: "full" | "incremental";
859
+ classify?: boolean;
860
+ };
861
+ /** VaultOpResponse */
862
+ type VaultOpResponse = {
863
+ results: VaultOpResult[];
864
+ };
865
+ /** VaultOpResult */
866
+ type VaultOpResult = {
867
+ item_id: string;
868
+ ok: boolean;
869
+ error?: string | null;
870
+ };
871
+ /** VaultStatusResponse */
872
+ type VaultStatusResponse = {
873
+ exists: boolean;
874
+ unlocked: boolean;
875
+ item_count?: number | null;
876
+ auto_lock_seconds: number;
877
+ };
878
+ /** VideoGenModelInfo */
879
+ type VideoGenModelInfo = {
880
+ model_id: string;
881
+ name: string;
882
+ provider: string;
883
+ pipeline_type: string;
884
+ vram_gb: number;
885
+ ram_gb: number;
886
+ description: string;
887
+ quality_rating: number;
888
+ speed_rating: number;
889
+ recommended_steps: number;
890
+ recommended_guidance: number;
891
+ default_width: number;
892
+ default_height: number;
893
+ default_num_frames: number;
894
+ default_fps: number;
895
+ max_num_frames: number;
896
+ supports_image_to_video: boolean;
897
+ supports_negative_prompt: boolean;
898
+ model_card_url: string;
899
+ license_name: string;
900
+ requires_hf_token: boolean;
901
+ tags: string[];
902
+ download_size_gb: number;
903
+ is_downloaded: boolean;
904
+ hardware_ok: boolean;
905
+ hardware_reason?: string | null;
906
+ };
907
+ /** VideoGenStatusResponse */
908
+ type VideoGenStatusResponse = {
909
+ available: boolean;
910
+ unavailable_reason: string | null;
911
+ packages_installed: boolean;
912
+ hardware_supported: boolean;
913
+ hardware_reason: string | null;
914
+ loaded_model_id: string | null;
915
+ is_loading: boolean;
916
+ load_progress: number;
917
+ load_error?: string | null;
918
+ device: string;
919
+ active_job_id: string | null;
920
+ cancel_requested?: boolean;
921
+ };
922
+ /** VideoJobResponse */
923
+ type VideoJobResponse = {
924
+ job_id: string;
925
+ status: string;
926
+ progress: number;
927
+ current_step: number;
928
+ total_steps: number;
929
+ elapsed_seconds: number;
930
+ error: string | null;
931
+ prompt: string;
932
+ model_id: string;
933
+ width?: number;
934
+ height?: number;
935
+ num_frames?: number;
936
+ fps?: number;
937
+ seed?: number | null;
938
+ cancel_requested?: boolean;
939
+ created_at?: number;
940
+ item_id?: string | null;
941
+ };
942
+ /** Response payload for ``POST /media/upload``. */
943
+ type VisionMediaUploadResponse = {
944
+ /** cld_files UUID for the master image */
945
+ file_id: string;
946
+ file_path: string;
947
+ mime_type: string;
948
+ size_bytes: number;
949
+ /** Signed URL for the master file (1 week TTL) */
950
+ master_url?: string | null;
951
+ width?: number | null;
952
+ height?: number | null;
953
+ /** Map of vision_class -> signed variant URL for any classes that were eagerly rendered */
954
+ variants?: {
955
+ [key: string]: string;
956
+ };
957
+ /** Map of vision_class -> error message for variants that failed to render */
958
+ variant_errors?: {
959
+ [key: string]: string;
960
+ };
961
+ };
962
+ /** WorkflowGenerateRequest */
963
+ type WorkflowGenerateRequest = {
964
+ preset_id: string;
965
+ /** Fills the {subject} placeholder in the prompt template. */
966
+ subject: string;
967
+ model_id?: string | null;
968
+ seed?: number | null;
969
+ };
970
+ /** WorkflowPresetInfo */
971
+ type WorkflowPresetInfo = {
972
+ preset_id: string;
973
+ name: string;
974
+ description: string;
975
+ prompt_template: string;
976
+ negative_prompt: string;
977
+ suggested_model_id: string;
978
+ steps: number;
979
+ guidance: number;
980
+ width: number;
981
+ height: number;
982
+ tags: string[];
983
+ };
984
+ /** LoadModelRequest */
985
+ type app__api__image_gen_routes__LoadModelRequest = {
986
+ model_id: string;
987
+ text_encoder_id?: string | null;
988
+ };
989
+ /** LoadModelRequest */
990
+ type app__api__video_gen_routes__LoadModelRequest = {
991
+ model_id: string;
992
+ };
993
+ type UploadVisionMasterArgs = {
994
+ body: FormData;
995
+ };
996
+ type UploadVisionMasterResult = VisionMediaUploadResponse;
997
+ /** Upload an image as a vision master + optional eager variants */
998
+ /** `POST /media/upload` · aidream · auth guest · org required */
999
+ declare function uploadVisionMaster(api: Api, args: UploadVisionMasterArgs, options?: CallOptions): Promise<UploadVisionMasterResult>;
1000
+ type GetOrRenderVariantArgs = {
1001
+ path: {
1002
+ file_id: string;
1003
+ vision_class: string;
1004
+ };
1005
+ };
1006
+ type GetOrRenderVariantResult = unknown;
1007
+ /** Lazy-render and redirect to a vision-class variant of a master */
1008
+ /** `GET /media/{file_id}/v/{vision_class}` · aidream · auth guest · org optional */
1009
+ declare function getOrRenderVariant(api: Api, args: GetOrRenderVariantArgs, options?: CallOptions): Promise<GetOrRenderVariantResult>;
1010
+ type ResolveSourceArgs = {
1011
+ body: ResolveBody;
1012
+ };
1013
+ type ResolveSourceResult = {
1014
+ [key: string]: JsonValue;
1015
+ };
1016
+ /** Resolve Source */
1017
+ /** `POST /media/resolve` · aidream · auth guest · org required */
1018
+ declare function resolveSource(api: Api, args: ResolveSourceArgs, options?: CallOptions): Promise<ResolveSourceResult>;
1019
+ type ListLibrariesArgs = {
1020
+ query?: {
1021
+ visibility?: string | null;
1022
+ adapter?: string | null;
1023
+ q?: string | null;
1024
+ limit?: number;
1025
+ offset?: number;
1026
+ };
1027
+ };
1028
+ type ListLibrariesResult = {
1029
+ [key: string]: JsonValue;
1030
+ };
1031
+ /** List Libraries */
1032
+ /** `GET /media/libraries` · aidream · auth guest · org optional */
1033
+ declare function listLibraries(api: Api, args?: ListLibrariesArgs, options?: CallOptions): Promise<ListLibrariesResult>;
1034
+ type CreateLibraryArgs = {
1035
+ body: CreateLibraryBody;
1036
+ };
1037
+ type CreateLibraryResult = {
1038
+ [key: string]: JsonValue;
1039
+ };
1040
+ /** Create Library */
1041
+ /** `POST /media/libraries` · aidream · auth guest · org required */
1042
+ declare function createLibrary(api: Api, args: CreateLibraryArgs, options?: CallOptions): Promise<CreateLibraryResult>;
1043
+ type GetLibraryArgs = {
1044
+ path: {
1045
+ library_id: string;
1046
+ };
1047
+ };
1048
+ type GetLibraryResult = {
1049
+ [key: string]: JsonValue;
1050
+ };
1051
+ /** Get Library */
1052
+ /** `GET /media/libraries/{library_id}` · aidream · auth guest · org optional */
1053
+ declare function getLibrary(api: Api, args: GetLibraryArgs, options?: CallOptions): Promise<GetLibraryResult>;
1054
+ type SyncLibraryArgs = {
1055
+ path: {
1056
+ library_id: string;
1057
+ };
1058
+ body: SyncBody;
1059
+ };
1060
+ type SyncLibraryResult = unknown;
1061
+ /** Sync Library */
1062
+ /** `POST /media/libraries/{library_id}/sync` · aidream · auth guest · org required · ndjson */
1063
+ declare function syncLibrary(api: Api, args: SyncLibraryArgs, options?: CallOptions): Promise<ApiStream<NdjsonEvent>>;
1064
+ type ListLibraryVideosArgs = {
1065
+ path: {
1066
+ library_id: string;
1067
+ };
1068
+ query?: {
1069
+ limit?: number;
1070
+ offset?: number;
1071
+ media_kind?: string | null;
1072
+ has_captions?: boolean | null;
1073
+ transcript_status?: string | null;
1074
+ published_after?: string | null;
1075
+ published_before?: string | null;
1076
+ min_duration_seconds?: number | null;
1077
+ max_duration_seconds?: number | null;
1078
+ q?: string | null;
1079
+ action_key?: string | null;
1080
+ action_status?: string | null;
1081
+ order?: ("published_at" | "view_count" | "duration_seconds" | "title") | null;
1082
+ direction?: "asc" | "desc";
1083
+ };
1084
+ };
1085
+ type ListLibraryVideosResult = {
1086
+ [key: string]: JsonValue;
1087
+ };
1088
+ /** List Library Videos */
1089
+ /** `GET /media/libraries/{library_id}/videos` · aidream · auth guest · org optional */
1090
+ declare function listLibraryVideos(api: Api, args: ListLibraryVideosArgs, options?: CallOptions): Promise<ListLibraryVideosResult>;
1091
+ type LibraryMetricsArgs = {
1092
+ path: {
1093
+ library_id: string;
1094
+ };
1095
+ query?: {
1096
+ fresh?: boolean;
1097
+ media_kind?: string | null;
1098
+ has_captions?: boolean | null;
1099
+ transcript_status?: string | null;
1100
+ published_after?: string | null;
1101
+ published_before?: string | null;
1102
+ min_duration_seconds?: number | null;
1103
+ max_duration_seconds?: number | null;
1104
+ q?: string | null;
1105
+ action_key?: string | null;
1106
+ action_status?: string | null;
1107
+ };
1108
+ };
1109
+ type LibraryMetricsResult = {
1110
+ [key: string]: JsonValue;
1111
+ };
1112
+ /** Library Metrics */
1113
+ /** `GET /media/libraries/{library_id}/metrics` · aidream · auth guest · org optional */
1114
+ declare function libraryMetrics(api: Api, args: LibraryMetricsArgs, options?: CallOptions): Promise<LibraryMetricsResult>;
1115
+ type ListActionsArgs = {
1116
+ [key: string]: never;
1117
+ };
1118
+ type ListActionsResult = {
1119
+ [key: string]: JsonValue;
1120
+ };
1121
+ /** List Actions */
1122
+ /** `GET /media/actions` · aidream · auth guest · org optional */
1123
+ declare function listActions(api: Api, args?: ListActionsArgs, options?: CallOptions): Promise<ListActionsResult>;
1124
+ type GetSettingsArgs = {
1125
+ query?: {
1126
+ library_id?: string | null;
1127
+ };
1128
+ };
1129
+ type GetSettingsResult = {
1130
+ [key: string]: JsonValue;
1131
+ };
1132
+ /** Get Settings */
1133
+ /** `GET /media/settings` · aidream · auth guest · org required */
1134
+ declare function getSettings(api: Api, args?: GetSettingsArgs, options?: CallOptions): Promise<GetSettingsResult>;
1135
+ type PutSettingsArgs = {
1136
+ body: SettingsBody;
1137
+ };
1138
+ type PutSettingsResult = {
1139
+ [key: string]: JsonValue;
1140
+ };
1141
+ /** Put Settings */
1142
+ /** `PUT /media/settings` · aidream · auth guest · org required */
1143
+ declare function putSettings(api: Api, args: PutSettingsArgs, options?: CallOptions): Promise<PutSettingsResult>;
1144
+ type EstimateSelectionArgs = {
1145
+ path: {
1146
+ library_id: string;
1147
+ };
1148
+ body: EstimateBody;
1149
+ };
1150
+ type EstimateSelectionResult = {
1151
+ [key: string]: JsonValue;
1152
+ };
1153
+ /** Estimate Selection */
1154
+ /** `POST /media/libraries/{library_id}/estimate` · aidream · auth guest · org required */
1155
+ declare function estimateSelection(api: Api, args: EstimateSelectionArgs, options?: CallOptions): Promise<EstimateSelectionResult>;
1156
+ type ListLibraryJobsArgs = {
1157
+ path: {
1158
+ library_id: string;
1159
+ };
1160
+ query?: {
1161
+ status?: string | null;
1162
+ limit?: number;
1163
+ offset?: number;
1164
+ };
1165
+ };
1166
+ type ListLibraryJobsResult = {
1167
+ [key: string]: JsonValue;
1168
+ };
1169
+ /** List Library Jobs */
1170
+ /** `GET /media/libraries/{library_id}/jobs` · aidream · auth guest · org optional */
1171
+ declare function listLibraryJobs(api: Api, args: ListLibraryJobsArgs, options?: CallOptions): Promise<ListLibraryJobsResult>;
1172
+ type CreateJobArgs = {
1173
+ path: {
1174
+ library_id: string;
1175
+ };
1176
+ body: StartJobBody;
1177
+ };
1178
+ type CreateJobResult = {
1179
+ [key: string]: JsonValue;
1180
+ };
1181
+ /** Create Job */
1182
+ /** `POST /media/libraries/{library_id}/jobs` · aidream · auth guest · org required */
1183
+ declare function createJob(api: Api, args: CreateJobArgs, options?: CallOptions): Promise<CreateJobResult>;
1184
+ type GetJobArgs = {
1185
+ path: {
1186
+ job_id: string;
1187
+ };
1188
+ query?: {
1189
+ status?: string | null;
1190
+ limit?: number;
1191
+ offset?: number;
1192
+ };
1193
+ };
1194
+ type GetJobResult = {
1195
+ [key: string]: JsonValue;
1196
+ };
1197
+ /** Get Job */
1198
+ /** `GET /media/jobs/{job_id}` · aidream · auth guest · org optional */
1199
+ declare function getJob(api: Api, args: GetJobArgs, options?: CallOptions): Promise<GetJobResult>;
1200
+ type ResumeJobArgs = {
1201
+ path: {
1202
+ job_id: string;
1203
+ };
1204
+ };
1205
+ type ResumeJobResult = {
1206
+ [key: string]: JsonValue;
1207
+ };
1208
+ /** Resume Job */
1209
+ /** `POST /media/jobs/{job_id}/resume` · aidream · auth guest · org required */
1210
+ declare function resumeJob(api: Api, args: ResumeJobArgs, options?: CallOptions): Promise<ResumeJobResult>;
1211
+ type RetryFailedItemsArgs = {
1212
+ path: {
1213
+ job_id: string;
1214
+ };
1215
+ };
1216
+ type RetryFailedItemsResult = {
1217
+ [key: string]: JsonValue;
1218
+ };
1219
+ /** Retry Failed Items */
1220
+ /** `POST /media/jobs/{job_id}/retry-failed` · aidream · auth guest · org required */
1221
+ declare function retryFailedItems(api: Api, args: RetryFailedItemsArgs, options?: CallOptions): Promise<RetryFailedItemsResult>;
1222
+ type CancelJobArgs = {
1223
+ path: {
1224
+ job_id: string;
1225
+ };
1226
+ };
1227
+ type CancelJobResult = {
1228
+ [key: string]: JsonValue;
1229
+ };
1230
+ /** Cancel Job */
1231
+ /** `POST /media/jobs/{job_id}/cancel` · aidream · auth guest · org required */
1232
+ declare function cancelJob(api: Api, args: CancelJobArgs, options?: CallOptions): Promise<CancelJobResult>;
1233
+ type ExportLibraryArgs = {
1234
+ path: {
1235
+ library_id: string;
1236
+ };
1237
+ body: ExportBody;
1238
+ };
1239
+ type ExportLibraryResult = unknown;
1240
+ /** Export Library */
1241
+ /** `POST /media/libraries/{library_id}/export` · aidream · auth guest · org required */
1242
+ declare function exportLibrary(api: Api, args: ExportLibraryArgs, options?: CallOptions): Promise<ExportLibraryResult>;
1243
+ type ListHandoffsArgs = {
1244
+ query?: {
1245
+ organization_id?: string | null;
1246
+ status?: string | null;
1247
+ rung?: string | null;
1248
+ batch_id?: string | null;
1249
+ limit?: number;
1250
+ };
1251
+ };
1252
+ type ListHandoffsResult = CaptureLadderResponse;
1253
+ /** List Handoffs */
1254
+ /** `GET /capture/handoffs` · aidream · auth guest · org optional */
1255
+ declare function listHandoffs(api: Api, args?: ListHandoffsArgs, options?: CallOptions): Promise<ListHandoffsResult>;
1256
+ type EnqueueHandoffsArgs = {
1257
+ body: EnqueueBody;
1258
+ };
1259
+ type EnqueueHandoffsResult = CaptureLadderResponse;
1260
+ /** Enqueue Handoffs */
1261
+ /** `POST /capture/handoffs` · aidream · auth guest · org required */
1262
+ declare function enqueueHandoffs(api: Api, args: EnqueueHandoffsArgs, options?: CallOptions): Promise<EnqueueHandoffsResult>;
1263
+ type ClaimHandoffArgs = {
1264
+ path: {
1265
+ handoff_id: string;
1266
+ };
1267
+ body: ClaimBody;
1268
+ };
1269
+ type ClaimHandoffResult = CaptureHandoff;
1270
+ /** Claim Handoff */
1271
+ /** `POST /capture/handoffs/{handoff_id}/claim` · aidream · auth guest · org required */
1272
+ declare function claimHandoff(api: Api, args: ClaimHandoffArgs, options?: CallOptions): Promise<ClaimHandoffResult>;
1273
+ type RecordResultArgs = {
1274
+ path: {
1275
+ handoff_id: string;
1276
+ };
1277
+ body: ResultBody;
1278
+ };
1279
+ type RecordResultResult = CaptureLadderResponse;
1280
+ /** Record Result */
1281
+ /** `POST /capture/handoffs/{handoff_id}/result` · aidream · auth guest · org required */
1282
+ declare function recordResult(api: Api, args: RecordResultArgs, options?: CallOptions): Promise<RecordResultResult>;
1283
+ type NeedsDriveArgs = {
1284
+ path: {
1285
+ handoff_id: string;
1286
+ };
1287
+ body: NeedsDriveBody;
1288
+ };
1289
+ type NeedsDriveResult = CaptureHandoff;
1290
+ /** Needs Drive */
1291
+ /** `POST /capture/handoffs/{handoff_id}/needs-drive` · aidream · auth guest · org required */
1292
+ declare function needsDrive(api: Api, args: NeedsDriveArgs, options?: CallOptions): Promise<NeedsDriveResult>;
1293
+ type DismissHandoffArgs = {
1294
+ path: {
1295
+ handoff_id: string;
1296
+ };
1297
+ body: DismissBody;
1298
+ };
1299
+ type DismissHandoffResult = CaptureHandoff;
1300
+ /** Dismiss Handoff */
1301
+ /** `POST /capture/handoffs/{handoff_id}/dismiss` · aidream · auth guest · org required */
1302
+ declare function dismissHandoff(api: Api, args: DismissHandoffArgs, options?: CallOptions): Promise<DismissHandoffResult>;
1303
+ type GetPresetsArgs = {
1304
+ [key: string]: never;
1305
+ };
1306
+ type GetPresetsResult = ImageStudioPresetsResponse;
1307
+ /** Get Presets */
1308
+ /** `GET /images/studio/presets` · aidream · auth guest · org optional */
1309
+ declare function getPresets(api: Api, args?: GetPresetsArgs, options?: CallOptions): Promise<GetPresetsResult>;
1310
+ type ProcessImageArgs = {
1311
+ body: FormData;
1312
+ };
1313
+ type ProcessImageResult = unknown;
1314
+ /** Process Image */
1315
+ /** `POST /images/studio/process` · aidream · auth guest · org required · ndjson */
1316
+ declare function processImage(api: Api, args: ProcessImageArgs, options?: CallOptions): Promise<ApiStream<NdjsonEvent>>;
1317
+ type CommitJobArgs = {
1318
+ body: CommitRequest;
1319
+ };
1320
+ type CommitJobResult = unknown;
1321
+ /** Commit Job */
1322
+ /** `POST /images/studio/commit` · aidream · auth guest · org required · ndjson */
1323
+ declare function commitJob(api: Api, args: CommitJobArgs, options?: CallOptions): Promise<ApiStream<NdjsonEvent>>;
1324
+ type DiscardJobArgs = {
1325
+ body: DiscardRequest;
1326
+ };
1327
+ type DiscardJobResult = DiscardResponse;
1328
+ /** Discard Job */
1329
+ /** `POST /images/studio/discard` · aidream · auth guest · org required */
1330
+ declare function discardJob(api: Api, args: DiscardJobArgs, options?: CallOptions): Promise<DiscardJobResult>;
1331
+ type ListImageOpsArgs = {
1332
+ [key: string]: never;
1333
+ };
1334
+ type ListImageOpsResult = ImageOpsCatalog;
1335
+ /** List Image Ops */
1336
+ /** `GET /images/ops` · aidream · auth guest · org optional */
1337
+ declare function listImageOps(api: Api, args?: ListImageOpsArgs, options?: CallOptions): Promise<ListImageOpsResult>;
1338
+ type DetectDocumentArgs = {
1339
+ body: DetectDocumentRequest;
1340
+ };
1341
+ type DetectDocumentResult = unknown;
1342
+ /** Detect Document */
1343
+ /** `POST /images/detect-document` · aidream · auth guest · org required · ndjson */
1344
+ declare function detectDocument(api: Api, args: DetectDocumentArgs, options?: CallOptions): Promise<ApiStream<NdjsonEvent>>;
1345
+ type EditImageArgs = {
1346
+ body: ImageEditRequest;
1347
+ };
1348
+ type EditImageResult = unknown;
1349
+ /** Edit Image */
1350
+ /** `POST /images/edit` · aidream · auth guest · org required · ndjson */
1351
+ declare function editImage(api: Api, args: EditImageArgs, options?: CallOptions): Promise<ApiStream<NdjsonEvent>>;
1352
+ type BgRemoveArgs = {
1353
+ body: ImageBgRemoveRequest;
1354
+ };
1355
+ type BgRemoveResult = unknown;
1356
+ /** Bg Remove */
1357
+ /** `POST /images/bg-remove` · aidream · auth guest · org required · ndjson */
1358
+ declare function bgRemove(api: Api, args: BgRemoveArgs, options?: CallOptions): Promise<ApiStream<NdjsonEvent>>;
1359
+ type InpaintArgs = {
1360
+ body: ImageInpaintRequest;
1361
+ };
1362
+ type InpaintResult = unknown;
1363
+ /** Inpaint */
1364
+ /** `POST /images/inpaint` · aidream · auth guest · org required · ndjson */
1365
+ declare function inpaint(api: Api, args: InpaintArgs, options?: CallOptions): Promise<ApiStream<NdjsonEvent>>;
1366
+ type GenerateImageArgs = {
1367
+ body: GenerateImageRequest;
1368
+ };
1369
+ type GenerateImageResult = unknown;
1370
+ /** Generate Image */
1371
+ /** `POST /images/generate` · aidream · auth guest · org required · ndjson */
1372
+ declare function generateImage(api: Api, args: GenerateImageArgs, options?: CallOptions): Promise<ApiStream<NdjsonEvent>>;
1373
+ type CaptureScreenshotArgs = {
1374
+ [key: string]: never;
1375
+ };
1376
+ type CaptureScreenshotResult = unknown;
1377
+ /** Capture Screenshot */
1378
+ /** `POST /screenshot` · matrx-local · auth loopback_token · org exempt */
1379
+ declare function captureScreenshot(api: Api, args?: CaptureScreenshotArgs, options?: CallOptions): Promise<CaptureScreenshotResult>;
1380
+ type ImageGenStatusArgs = {
1381
+ [key: string]: never;
1382
+ };
1383
+ type ImageGenStatusResult = ImageGenStatusResponse;
1384
+ /** Image Gen Status */
1385
+ /** `GET /image-gen/status` · matrx-local · auth loopback_token · org exempt */
1386
+ declare function imageGenStatus(api: Api, args?: ImageGenStatusArgs, options?: CallOptions): Promise<ImageGenStatusResult>;
1387
+ type ListImageGenModelsArgs = {
1388
+ [key: string]: never;
1389
+ };
1390
+ type ListImageGenModelsResult = ImageGenModelInfo[];
1391
+ /** List Image Gen Models */
1392
+ /** `GET /image-gen/models` · matrx-local · auth loopback_token · org exempt */
1393
+ declare function listImageGenModels(api: Api, args?: ListImageGenModelsArgs, options?: CallOptions): Promise<ListImageGenModelsResult>;
1394
+ type DownloadModelArgs = {
1395
+ body: DownloadModelRequest;
1396
+ };
1397
+ type DownloadModelResult = DownloadModelResponse;
1398
+ /** Download Model */
1399
+ /** `POST /image-gen/download` · matrx-local · auth loopback_token · org exempt */
1400
+ declare function downloadModel(api: Api, args: DownloadModelArgs, options?: CallOptions): Promise<DownloadModelResult>;
1401
+ type DownloadTextEncoderArgs = {
1402
+ body: DownloadTextEncoderRequest;
1403
+ };
1404
+ type DownloadTextEncoderResult = DownloadTextEncoderResponse;
1405
+ /** Download Text Encoder */
1406
+ /** `POST /image-gen/text-encoders/download` · matrx-local · auth loopback_token · org exempt */
1407
+ declare function downloadTextEncoder(api: Api, args: DownloadTextEncoderArgs, options?: CallOptions): Promise<DownloadTextEncoderResult>;
1408
+ type ListWorkflowPresetsArgs = {
1409
+ [key: string]: never;
1410
+ };
1411
+ type ListWorkflowPresetsResult = WorkflowPresetInfo[];
1412
+ /** List Workflow Presets */
1413
+ /** `GET /image-gen/presets` · matrx-local · auth loopback_token · org exempt */
1414
+ declare function listWorkflowPresets(api: Api, args?: ListWorkflowPresetsArgs, options?: CallOptions): Promise<ListWorkflowPresetsResult>;
1415
+ type LoadModelArgs = {
1416
+ body: app__api__image_gen_routes__LoadModelRequest;
1417
+ };
1418
+ type LoadModelResult = LoadModelResponse;
1419
+ /** Load Model */
1420
+ /** `POST /image-gen/load` · matrx-local · auth loopback_token · org exempt */
1421
+ declare function loadModel(api: Api, args: LoadModelArgs, options?: CallOptions): Promise<LoadModelResult>;
1422
+ type UnloadModelArgs = {
1423
+ [key: string]: never;
1424
+ };
1425
+ type UnloadModelResult = {
1426
+ [key: string]: unknown;
1427
+ };
1428
+ /** Unload Model */
1429
+ /** `POST /image-gen/unload` · matrx-local · auth loopback_token · org exempt */
1430
+ declare function unloadModel(api: Api, args?: UnloadModelArgs, options?: CallOptions): Promise<UnloadModelResult>;
1431
+ type GenerateImageOnMatrxLocalArgs = {
1432
+ body: GenerateRequest;
1433
+ };
1434
+ type GenerateImageOnMatrxLocalResult = GenerateResponse;
1435
+ /** Generate Image */
1436
+ /** `POST /image-gen/generate` · matrx-local · auth loopback_token · org exempt */
1437
+ declare function generateImageOnMatrxLocal(api: Api, args: GenerateImageOnMatrxLocalArgs, options?: CallOptions): Promise<GenerateImageOnMatrxLocalResult>;
1438
+ type CancelGenerationArgs = {
1439
+ [key: string]: never;
1440
+ };
1441
+ type CancelGenerationResult = CancelGenerationResponse;
1442
+ /** Cancel Generation */
1443
+ /** `POST /image-gen/cancel` · matrx-local · auth loopback_token · org exempt */
1444
+ declare function cancelGeneration(api: Api, args?: CancelGenerationArgs, options?: CallOptions): Promise<CancelGenerationResult>;
1445
+ type ListImageJobsArgs = {
1446
+ query?: {
1447
+ limit?: number;
1448
+ };
1449
+ };
1450
+ type ListImageJobsResult = ImageJobResponse[];
1451
+ /** List Image Jobs */
1452
+ /** `GET /image-gen/jobs` · matrx-local · auth loopback_token · org exempt */
1453
+ declare function listImageJobs(api: Api, args?: ListImageJobsArgs, options?: CallOptions): Promise<ListImageJobsResult>;
1454
+ type EnqueueImageJobArgs = {
1455
+ body: EnqueueImageJobRequest;
1456
+ };
1457
+ type EnqueueImageJobResult = ImageJobEnqueuedResponse;
1458
+ /** Enqueue Image Job */
1459
+ /** `POST /image-gen/jobs` · matrx-local · auth loopback_token · org exempt */
1460
+ declare function enqueueImageJob(api: Api, args: EnqueueImageJobArgs, options?: CallOptions): Promise<EnqueueImageJobResult>;
1461
+ type GetImageJobArgs = {
1462
+ path: {
1463
+ job_id: string;
1464
+ };
1465
+ };
1466
+ type GetImageJobResult = ImageJobResponse;
1467
+ /** Get Image Job */
1468
+ /** `GET /image-gen/jobs/{job_id}` · matrx-local · auth loopback_token · org exempt */
1469
+ declare function getImageJob(api: Api, args: GetImageJobArgs, options?: CallOptions): Promise<GetImageJobResult>;
1470
+ type CancelImageJobArgs = {
1471
+ path: {
1472
+ job_id: string;
1473
+ };
1474
+ };
1475
+ type CancelImageJobResult = {
1476
+ [key: string]: unknown;
1477
+ };
1478
+ /** Cancel Image Job */
1479
+ /** `DELETE /image-gen/jobs/{job_id}` · matrx-local · auth loopback_token · org exempt */
1480
+ declare function cancelImageJob(api: Api, args: CancelImageJobArgs, options?: CallOptions): Promise<CancelImageJobResult>;
1481
+ type EnqueueImageBatchArgs = {
1482
+ body: EnqueueBatchRequest;
1483
+ };
1484
+ type EnqueueImageBatchResult = EnqueueBatchResponse;
1485
+ /** Enqueue Image Batch */
1486
+ /** `POST /image-gen/jobs/batch` · matrx-local · auth loopback_token · org exempt */
1487
+ declare function enqueueImageBatch(api: Api, args: EnqueueImageBatchArgs, options?: CallOptions): Promise<EnqueueImageBatchResult>;
1488
+ type ListImageBatchesArgs = {
1489
+ [key: string]: never;
1490
+ };
1491
+ type ListImageBatchesResult = BatchSummaryResponse[];
1492
+ /** List Image Batches */
1493
+ /** `GET /image-gen/batches` · matrx-local · auth loopback_token · org exempt */
1494
+ declare function listImageBatches(api: Api, args?: ListImageBatchesArgs, options?: CallOptions): Promise<ListImageBatchesResult>;
1495
+ type CancelImageBatchArgs = {
1496
+ path: {
1497
+ batch_id: string;
1498
+ };
1499
+ };
1500
+ type CancelImageBatchResult = {
1501
+ [key: string]: unknown;
1502
+ };
1503
+ /** Cancel Image Batch */
1504
+ /** `DELETE /image-gen/batches/{batch_id}` · matrx-local · auth loopback_token · org exempt */
1505
+ declare function cancelImageBatch(api: Api, args: CancelImageBatchArgs, options?: CallOptions): Promise<CancelImageBatchResult>;
1506
+ type GetQueueStateArgs = {
1507
+ [key: string]: never;
1508
+ };
1509
+ type GetQueueStateResult = QueueStateResponse;
1510
+ /** Get Queue State */
1511
+ /** `GET /image-gen/queue` · matrx-local · auth loopback_token · org exempt */
1512
+ declare function getQueueState(api: Api, args?: GetQueueStateArgs, options?: CallOptions): Promise<GetQueueStateResult>;
1513
+ type PauseQueueArgs = {
1514
+ [key: string]: never;
1515
+ };
1516
+ type PauseQueueResult = QueueStateResponse;
1517
+ /** Pause Queue */
1518
+ /** `POST /image-gen/queue/pause` · matrx-local · auth loopback_token · org exempt */
1519
+ declare function pauseQueue(api: Api, args?: PauseQueueArgs, options?: CallOptions): Promise<PauseQueueResult>;
1520
+ type ResumeQueueArgs = {
1521
+ [key: string]: never;
1522
+ };
1523
+ type ResumeQueueResult = QueueStateResponse;
1524
+ /** Resume Queue */
1525
+ /** `POST /image-gen/queue/resume` · matrx-local · auth loopback_token · org exempt */
1526
+ declare function resumeQueue(api: Api, args?: ResumeQueueArgs, options?: CallOptions): Promise<ResumeQueueResult>;
1527
+ type ReorderQueueArgs = {
1528
+ body: ReorderQueueRequest;
1529
+ };
1530
+ type ReorderQueueResult = ImageJobResponse[];
1531
+ /** Reorder Queue */
1532
+ /** `POST /image-gen/queue/reorder` · matrx-local · auth loopback_token · org exempt */
1533
+ declare function reorderQueue(api: Api, args: ReorderQueueArgs, options?: CallOptions): Promise<ReorderQueueResult>;
1534
+ type RetryImageJobArgs = {
1535
+ path: {
1536
+ job_id: string;
1537
+ };
1538
+ };
1539
+ type RetryImageJobResult = ImageJobResponse;
1540
+ /** Retry Image Job */
1541
+ /** `POST /image-gen/jobs/{job_id}/retry` · matrx-local · auth loopback_token · org exempt */
1542
+ declare function retryImageJob(api: Api, args: RetryImageJobArgs, options?: CallOptions): Promise<RetryImageJobResult>;
1543
+ type ClearFinishedJobsArgs = {
1544
+ [key: string]: never;
1545
+ };
1546
+ type ClearFinishedJobsResult = {
1547
+ [key: string]: unknown;
1548
+ };
1549
+ /** Clear Finished Jobs */
1550
+ /** `POST /image-gen/jobs/clear-finished` · matrx-local · auth loopback_token · org exempt */
1551
+ declare function clearFinishedJobs(api: Api, args?: ClearFinishedJobsArgs, options?: CallOptions): Promise<ClearFinishedJobsResult>;
1552
+ type ListImageLorasArgs = {
1553
+ [key: string]: never;
1554
+ };
1555
+ type ListImageLorasResult = LorasResponse;
1556
+ /** List Image Loras */
1557
+ /** `GET /image-gen/loras` · matrx-local · auth loopback_token · org exempt */
1558
+ declare function listImageLoras(api: Api, args?: ListImageLorasArgs, options?: CallOptions): Promise<ListImageLorasResult>;
1559
+ type DownloadLoraArgs = {
1560
+ body: LoraDownloadRequest;
1561
+ };
1562
+ type DownloadLoraResult = LoraDownloadResponse;
1563
+ /** Download Lora */
1564
+ /** `POST /image-gen/loras/download` · matrx-local · auth loopback_token · org exempt */
1565
+ declare function downloadLora(api: Api, args: DownloadLoraArgs, options?: CallOptions): Promise<DownloadLoraResult>;
1566
+ type DeleteImageLoraArgs = {
1567
+ path: {
1568
+ lora_id: string;
1569
+ };
1570
+ };
1571
+ type DeleteImageLoraResult = {
1572
+ [key: string]: unknown;
1573
+ };
1574
+ /** Delete Image Lora */
1575
+ /** `DELETE /image-gen/loras/{lora_id}` · matrx-local · auth loopback_token · org exempt */
1576
+ declare function deleteImageLora(api: Api, args: DeleteImageLoraArgs, options?: CallOptions): Promise<DeleteImageLoraResult>;
1577
+ type InspectCustomModelArgs = {
1578
+ body: CustomModelInspectRequest;
1579
+ };
1580
+ type InspectCustomModelResult = CustomModelInspectResponse;
1581
+ /** Inspect Custom Model */
1582
+ /** `POST /image-gen/custom-models/inspect` · matrx-local · auth loopback_token · org exempt */
1583
+ declare function inspectCustomModel(api: Api, args: InspectCustomModelArgs, options?: CallOptions): Promise<InspectCustomModelResult>;
1584
+ type RegisterCustomModelRouteArgs = {
1585
+ body: CustomModelEntry;
1586
+ };
1587
+ type RegisterCustomModelRouteResult = CustomModelRegisterResponse;
1588
+ /** Register Custom Model Route */
1589
+ /** `POST /image-gen/custom-models` · matrx-local · auth loopback_token · org exempt */
1590
+ declare function registerCustomModelRoute(api: Api, args: RegisterCustomModelRouteArgs, options?: CallOptions): Promise<RegisterCustomModelRouteResult>;
1591
+ type DeleteCustomModelArgs = {
1592
+ path: {
1593
+ model_id: string;
1594
+ };
1595
+ };
1596
+ type DeleteCustomModelResult = {
1597
+ [key: string]: unknown;
1598
+ };
1599
+ /** Delete Custom Model */
1600
+ /** `DELETE /image-gen/custom-models/{model_id}` · matrx-local · auth loopback_token · org exempt */
1601
+ declare function deleteCustomModel(api: Api, args: DeleteCustomModelArgs, options?: CallOptions): Promise<DeleteCustomModelResult>;
1602
+ type GetImageModelParamsArgs = {
1603
+ path: {
1604
+ model_id: string;
1605
+ };
1606
+ };
1607
+ type GetImageModelParamsResult = ModelParamsResponse;
1608
+ /** Get Image Model Params */
1609
+ /** `GET /image-gen/params/{model_id}` · matrx-local · auth loopback_token · org exempt */
1610
+ declare function getImageModelParams(api: Api, args: GetImageModelParamsArgs, options?: CallOptions): Promise<GetImageModelParamsResult>;
1611
+ type GenerateFromWorkflowArgs = {
1612
+ body: WorkflowGenerateRequest;
1613
+ };
1614
+ type GenerateFromWorkflowResult = GenerateResponse;
1615
+ /** Generate From Workflow */
1616
+ /** `POST /image-gen/generate-workflow` · matrx-local · auth loopback_token · org exempt */
1617
+ declare function generateFromWorkflow(api: Api, args: GenerateFromWorkflowArgs, options?: CallOptions): Promise<GenerateFromWorkflowResult>;
1618
+ type MediaRuntimeStatusArgs = {
1619
+ [key: string]: never;
1620
+ };
1621
+ type MediaRuntimeStatusResult = MediaRuntimeStatusResponse;
1622
+ /** Media Runtime Status */
1623
+ /** `GET /image-gen/runtime/status` · matrx-local · auth loopback_token · org exempt */
1624
+ declare function mediaRuntimeStatus(api: Api, args?: MediaRuntimeStatusArgs, options?: CallOptions): Promise<MediaRuntimeStatusResult>;
1625
+ type EnsureMediaRuntimeArgs = {
1626
+ [key: string]: never;
1627
+ };
1628
+ type EnsureMediaRuntimeResult = MediaRuntimeStatusResponse;
1629
+ /** Ensure Media Runtime */
1630
+ /** `POST /image-gen/runtime/ensure` · matrx-local · auth loopback_token · org exempt */
1631
+ declare function ensureMediaRuntime(api: Api, args?: EnsureMediaRuntimeArgs, options?: CallOptions): Promise<EnsureMediaRuntimeResult>;
1632
+ type RepairMediaRuntimeArgs = {
1633
+ [key: string]: never;
1634
+ };
1635
+ type RepairMediaRuntimeResult = MediaRuntimeStatusResponse;
1636
+ /** Repair Media Runtime */
1637
+ /** `POST /image-gen/runtime/repair` · matrx-local · auth loopback_token · org exempt */
1638
+ declare function repairMediaRuntime(api: Api, args?: RepairMediaRuntimeArgs, options?: CallOptions): Promise<RepairMediaRuntimeResult>;
1639
+ type StreamMediaRuntimeArgs = {
1640
+ [key: string]: never;
1641
+ };
1642
+ type StreamMediaRuntimeResult = unknown;
1643
+ /** Stream Media Runtime */
1644
+ /** `GET /image-gen/runtime/stream` · matrx-local · auth loopback_token · org exempt · sse */
1645
+ declare function streamMediaRuntime(api: Api, args?: StreamMediaRuntimeArgs, options?: CallOptions): Promise<ApiStream<SseEvent>>;
1646
+ type InstallImageGenArgs = {
1647
+ [key: string]: never;
1648
+ };
1649
+ type InstallImageGenResult = InstallStatusResponse;
1650
+ /** Install Image Gen */
1651
+ /** `POST /image-gen/install` · matrx-local · auth loopback_token · org exempt */
1652
+ declare function installImageGen(api: Api, args?: InstallImageGenArgs, options?: CallOptions): Promise<InstallImageGenResult>;
1653
+ type GetInstallStatusArgs = {
1654
+ [key: string]: never;
1655
+ };
1656
+ type GetInstallStatusResult = InstallStatusResponse;
1657
+ /** Get Install Status */
1658
+ /** `GET /image-gen/install/status` · matrx-local · auth loopback_token · org exempt */
1659
+ declare function getInstallStatus(api: Api, args?: GetInstallStatusArgs, options?: CallOptions): Promise<GetInstallStatusResult>;
1660
+ type StreamInstallProgressArgs = {
1661
+ [key: string]: never;
1662
+ };
1663
+ type StreamInstallProgressResult = unknown;
1664
+ /** Stream Install Progress */
1665
+ /** `GET /image-gen/install/stream` · matrx-local · auth loopback_token · org exempt · sse */
1666
+ declare function streamInstallProgress(api: Api, args?: StreamInstallProgressArgs, options?: CallOptions): Promise<ApiStream<SseEvent>>;
1667
+ type VideoGenStatusArgs = {
1668
+ [key: string]: never;
1669
+ };
1670
+ type VideoGenStatusResult = VideoGenStatusResponse;
1671
+ /** Video Gen Status */
1672
+ /** `GET /video-gen/status` · matrx-local · auth loopback_token · org exempt */
1673
+ declare function videoGenStatus(api: Api, args?: VideoGenStatusArgs, options?: CallOptions): Promise<VideoGenStatusResult>;
1674
+ type ListVideoGenModelsArgs = {
1675
+ [key: string]: never;
1676
+ };
1677
+ type ListVideoGenModelsResult = VideoGenModelInfo[];
1678
+ /** List Video Gen Models */
1679
+ /** `GET /video-gen/models` · matrx-local · auth loopback_token · org exempt */
1680
+ declare function listVideoGenModels(api: Api, args?: ListVideoGenModelsArgs, options?: CallOptions): Promise<ListVideoGenModelsResult>;
1681
+ type DownloadVideoModelArgs = {
1682
+ body: DownloadModelRequest;
1683
+ };
1684
+ type DownloadVideoModelResult = DownloadModelResponse;
1685
+ /** Download Video Model */
1686
+ /** `POST /video-gen/download` · matrx-local · auth loopback_token · org exempt */
1687
+ declare function downloadVideoModel(api: Api, args: DownloadVideoModelArgs, options?: CallOptions): Promise<DownloadVideoModelResult>;
1688
+ type LoadVideoModelArgs = {
1689
+ body: app__api__video_gen_routes__LoadModelRequest;
1690
+ };
1691
+ type LoadVideoModelResult = LoadModelResponse;
1692
+ /** Load Video Model */
1693
+ /** `POST /video-gen/load` · matrx-local · auth loopback_token · org exempt */
1694
+ declare function loadVideoModel(api: Api, args: LoadVideoModelArgs, options?: CallOptions): Promise<LoadVideoModelResult>;
1695
+ type UnloadVideoModelArgs = {
1696
+ [key: string]: never;
1697
+ };
1698
+ type UnloadVideoModelResult = unknown;
1699
+ /** Unload Video Model */
1700
+ /** `POST /video-gen/unload` · matrx-local · auth loopback_token · org exempt */
1701
+ declare function unloadVideoModel(api: Api, args?: UnloadVideoModelArgs, options?: CallOptions): Promise<UnloadVideoModelResult>;
1702
+ type GenerateVideoArgs = {
1703
+ body: GenerateVideoRequest;
1704
+ };
1705
+ type GenerateVideoResult = GenerateVideoResponse;
1706
+ /** Generate Video */
1707
+ /** `POST /video-gen/generate` · matrx-local · auth loopback_token · org exempt */
1708
+ declare function generateVideo(api: Api, args: GenerateVideoArgs, options?: CallOptions): Promise<GenerateVideoResult>;
1709
+ type GetVideoModelParamsArgs = {
1710
+ path: {
1711
+ model_id: string;
1712
+ };
1713
+ };
1714
+ type GetVideoModelParamsResult = ModelParamsResponse;
1715
+ /** Get Video Model Params */
1716
+ /** `GET /video-gen/params/{model_id}` · matrx-local · auth loopback_token · org exempt */
1717
+ declare function getVideoModelParams(api: Api, args: GetVideoModelParamsArgs, options?: CallOptions): Promise<GetVideoModelParamsResult>;
1718
+ type ListVideoJobsArgs = {
1719
+ query?: {
1720
+ limit?: number;
1721
+ };
1722
+ };
1723
+ type ListVideoJobsResult = VideoJobResponse[];
1724
+ /** List Video Jobs */
1725
+ /** `GET /video-gen/jobs` · matrx-local · auth loopback_token · org exempt */
1726
+ declare function listVideoJobs(api: Api, args?: ListVideoJobsArgs, options?: CallOptions): Promise<ListVideoJobsResult>;
1727
+ type GetVideoJobArgs = {
1728
+ path: {
1729
+ job_id: string;
1730
+ };
1731
+ };
1732
+ type GetVideoJobResult = VideoJobResponse;
1733
+ /** Get Video Job */
1734
+ /** `GET /video-gen/jobs/{job_id}` · matrx-local · auth loopback_token · org exempt */
1735
+ declare function getVideoJob(api: Api, args: GetVideoJobArgs, options?: CallOptions): Promise<GetVideoJobResult>;
1736
+ type CancelVideoJobArgs = {
1737
+ path: {
1738
+ job_id: string;
1739
+ };
1740
+ };
1741
+ type CancelVideoJobResult = {
1742
+ [key: string]: unknown;
1743
+ };
1744
+ /** Cancel Video Job */
1745
+ /** `DELETE /video-gen/jobs/{job_id}` · matrx-local · auth loopback_token · org exempt */
1746
+ declare function cancelVideoJob(api: Api, args: CancelVideoJobArgs, options?: CallOptions): Promise<CancelVideoJobResult>;
1747
+ type GetVideoJobResultArgs = {
1748
+ path: {
1749
+ job_id: string;
1750
+ };
1751
+ };
1752
+ type GetVideoJobResultResult = unknown;
1753
+ /** Get Video Job Result */
1754
+ /** `GET /video-gen/jobs/{job_id}/result` · matrx-local · auth loopback_token · org exempt */
1755
+ declare function getVideoJobResult(api: Api, args: GetVideoJobResultArgs, options?: CallOptions): Promise<GetVideoJobResultResult>;
1756
+ type ListMediaItemsArgs = {
1757
+ query?: {
1758
+ media_type?: ("image" | "video") | null;
1759
+ limit?: number;
1760
+ offset?: number;
1761
+ };
1762
+ };
1763
+ type ListMediaItemsResult = MediaLibraryListResponse;
1764
+ /** List Media Items */
1765
+ /** `GET /media-library/items` · matrx-local · auth loopback_token · org exempt */
1766
+ declare function listMediaItems(api: Api, args?: ListMediaItemsArgs, options?: CallOptions): Promise<ListMediaItemsResult>;
1767
+ type ListRevisionBranchArgs = {
1768
+ path: {
1769
+ root_item_id: string;
1770
+ };
1771
+ };
1772
+ type ListRevisionBranchResult = MediaLibraryListResponse;
1773
+ /** List Revision Branch */
1774
+ /** `GET /media-library/revision-branch/{root_item_id}` · matrx-local · auth loopback_token · org exempt */
1775
+ declare function listRevisionBranch(api: Api, args: ListRevisionBranchArgs, options?: CallOptions): Promise<ListRevisionBranchResult>;
1776
+ type GetMediaThumbArgs = {
1777
+ path: {
1778
+ item_id: string;
1779
+ };
1780
+ };
1781
+ type GetMediaThumbResult = unknown;
1782
+ /** Get Media Thumb */
1783
+ /** `GET /media-library/thumb/{item_id}` · matrx-local · auth loopback_token · org exempt */
1784
+ declare function getMediaThumb(api: Api, args: GetMediaThumbArgs, options?: CallOptions): Promise<GetMediaThumbResult>;
1785
+ type GetMediaFileArgs = {
1786
+ path: {
1787
+ item_id: string;
1788
+ };
1789
+ };
1790
+ type GetMediaFileResult = unknown;
1791
+ /** Get Media File */
1792
+ /** `GET /media-library/file/{item_id}` · matrx-local · auth loopback_token · org exempt */
1793
+ declare function getMediaFile(api: Api, args: GetMediaFileArgs, options?: CallOptions): Promise<GetMediaFileResult>;
1794
+ type GetMediaInitImageArgs = {
1795
+ path: {
1796
+ item_id: string;
1797
+ };
1798
+ };
1799
+ type GetMediaInitImageResult = unknown;
1800
+ /** Get Media Init Image */
1801
+ /** `GET /media-library/items/{item_id}/init-image` · matrx-local · auth loopback_token · org exempt */
1802
+ declare function getMediaInitImage(api: Api, args: GetMediaInitImageArgs, options?: CallOptions): Promise<GetMediaInitImageResult>;
1803
+ type DeleteMediaItemArgs = {
1804
+ path: {
1805
+ item_id: string;
1806
+ };
1807
+ };
1808
+ type DeleteMediaItemResult = {
1809
+ [key: string]: unknown;
1810
+ };
1811
+ /** Delete Media Item */
1812
+ /** `DELETE /media-library/items/{item_id}` · matrx-local · auth loopback_token · org exempt */
1813
+ declare function deleteMediaItem(api: Api, args: DeleteMediaItemArgs, options?: CallOptions): Promise<DeleteMediaItemResult>;
1814
+ type VaultStatusArgs = {
1815
+ [key: string]: never;
1816
+ };
1817
+ type VaultStatusResult = VaultStatusResponse;
1818
+ /** Vault Status */
1819
+ /** `GET /media-vault/status` · matrx-local · auth loopback_token · org exempt */
1820
+ declare function vaultStatus(api: Api, args?: VaultStatusArgs, options?: CallOptions): Promise<VaultStatusResult>;
1821
+ type VaultCreateArgs = {
1822
+ body: PasswordRequest;
1823
+ };
1824
+ type VaultCreateResult = {
1825
+ [key: string]: unknown;
1826
+ };
1827
+ /** Vault Create */
1828
+ /** `POST /media-vault/create` · matrx-local · auth loopback_token · org exempt */
1829
+ declare function vaultCreate(api: Api, args: VaultCreateArgs, options?: CallOptions): Promise<VaultCreateResult>;
1830
+ type VaultUnlockArgs = {
1831
+ body: PasswordRequest;
1832
+ };
1833
+ type VaultUnlockResult = {
1834
+ [key: string]: unknown;
1835
+ };
1836
+ /** Vault Unlock */
1837
+ /** `POST /media-vault/unlock` · matrx-local · auth loopback_token · org exempt */
1838
+ declare function vaultUnlock(api: Api, args: VaultUnlockArgs, options?: CallOptions): Promise<VaultUnlockResult>;
1839
+ type VaultLockArgs = {
1840
+ [key: string]: never;
1841
+ };
1842
+ type VaultLockResult = {
1843
+ [key: string]: unknown;
1844
+ };
1845
+ /** Vault Lock */
1846
+ /** `POST /media-vault/lock` · matrx-local · auth loopback_token · org exempt */
1847
+ declare function vaultLock(api: Api, args?: VaultLockArgs, options?: CallOptions): Promise<VaultLockResult>;
1848
+ type VaultItemsArgs = {
1849
+ [key: string]: never;
1850
+ };
1851
+ type VaultItemsResult = {
1852
+ [key: string]: unknown;
1853
+ };
1854
+ /** Vault Items */
1855
+ /** `GET /media-vault/items` · matrx-local · auth loopback_token · org exempt */
1856
+ declare function vaultItems(api: Api, args?: VaultItemsArgs, options?: CallOptions): Promise<VaultItemsResult>;
1857
+ type VaultFileArgs = {
1858
+ path: {
1859
+ item_id: string;
1860
+ };
1861
+ };
1862
+ type VaultFileResult = unknown;
1863
+ /** Vault File */
1864
+ /** `GET /media-vault/file/{item_id}` · matrx-local · auth loopback_token · org exempt */
1865
+ declare function vaultFile(api: Api, args: VaultFileArgs, options?: CallOptions): Promise<VaultFileResult>;
1866
+ type VaultMoveArgs = {
1867
+ body: ItemIdsRequest;
1868
+ };
1869
+ type VaultMoveResult = VaultOpResponse;
1870
+ /** Vault Move */
1871
+ /** `POST /media-vault/move` · matrx-local · auth loopback_token · org exempt */
1872
+ declare function vaultMove(api: Api, args: VaultMoveArgs, options?: CallOptions): Promise<VaultMoveResult>;
1873
+ type VaultRestoreArgs = {
1874
+ body: ItemIdsRequest;
1875
+ };
1876
+ type VaultRestoreResult = VaultOpResponse;
1877
+ /** Vault Restore */
1878
+ /** `POST /media-vault/restore` · matrx-local · auth loopback_token · org exempt */
1879
+ declare function vaultRestore(api: Api, args: VaultRestoreArgs, options?: CallOptions): Promise<VaultRestoreResult>;
1880
+ type VaultDeleteArgs = {
1881
+ path: {
1882
+ item_id: string;
1883
+ };
1884
+ };
1885
+ type VaultDeleteResult = {
1886
+ [key: string]: unknown;
1887
+ };
1888
+ /** Vault Delete */
1889
+ /** `DELETE /media-vault/items/{item_id}` · matrx-local · auth loopback_token · org exempt */
1890
+ declare function vaultDelete(api: Api, args: VaultDeleteArgs, options?: CallOptions): Promise<VaultDeleteResult>;
1891
+ type VaultChangePasswordArgs = {
1892
+ body: ChangePasswordRequest;
1893
+ };
1894
+ type VaultChangePasswordResult = {
1895
+ [key: string]: unknown;
1896
+ };
1897
+ /** Vault Change Password */
1898
+ /** `POST /media-vault/change-password` · matrx-local · auth loopback_token · org exempt */
1899
+ declare function vaultChangePassword(api: Api, args: VaultChangePasswordArgs, options?: CallOptions): Promise<VaultChangePasswordResult>;
1900
+ /** Every JSON operation of this domain by `METHOD path` — for path-keyed calls. */
1901
+ interface Operations {
1902
+ "POST /media/upload": {
1903
+ args: UploadVisionMasterArgs;
1904
+ result: UploadVisionMasterResult;
1905
+ };
1906
+ "GET /media/{file_id}/v/{vision_class}": {
1907
+ args: GetOrRenderVariantArgs;
1908
+ result: GetOrRenderVariantResult;
1909
+ };
1910
+ "POST /media/resolve": {
1911
+ args: ResolveSourceArgs;
1912
+ result: ResolveSourceResult;
1913
+ };
1914
+ "GET /media/libraries": {
1915
+ args: ListLibrariesArgs;
1916
+ result: ListLibrariesResult;
1917
+ };
1918
+ "POST /media/libraries": {
1919
+ args: CreateLibraryArgs;
1920
+ result: CreateLibraryResult;
1921
+ };
1922
+ "GET /media/libraries/{library_id}": {
1923
+ args: GetLibraryArgs;
1924
+ result: GetLibraryResult;
1925
+ };
1926
+ "GET /media/libraries/{library_id}/videos": {
1927
+ args: ListLibraryVideosArgs;
1928
+ result: ListLibraryVideosResult;
1929
+ };
1930
+ "GET /media/libraries/{library_id}/metrics": {
1931
+ args: LibraryMetricsArgs;
1932
+ result: LibraryMetricsResult;
1933
+ };
1934
+ "GET /media/actions": {
1935
+ args: ListActionsArgs;
1936
+ result: ListActionsResult;
1937
+ };
1938
+ "GET /media/settings": {
1939
+ args: GetSettingsArgs;
1940
+ result: GetSettingsResult;
1941
+ };
1942
+ "PUT /media/settings": {
1943
+ args: PutSettingsArgs;
1944
+ result: PutSettingsResult;
1945
+ };
1946
+ "POST /media/libraries/{library_id}/estimate": {
1947
+ args: EstimateSelectionArgs;
1948
+ result: EstimateSelectionResult;
1949
+ };
1950
+ "GET /media/libraries/{library_id}/jobs": {
1951
+ args: ListLibraryJobsArgs;
1952
+ result: ListLibraryJobsResult;
1953
+ };
1954
+ "POST /media/libraries/{library_id}/jobs": {
1955
+ args: CreateJobArgs;
1956
+ result: CreateJobResult;
1957
+ };
1958
+ "GET /media/jobs/{job_id}": {
1959
+ args: GetJobArgs;
1960
+ result: GetJobResult;
1961
+ };
1962
+ "POST /media/jobs/{job_id}/resume": {
1963
+ args: ResumeJobArgs;
1964
+ result: ResumeJobResult;
1965
+ };
1966
+ "POST /media/jobs/{job_id}/retry-failed": {
1967
+ args: RetryFailedItemsArgs;
1968
+ result: RetryFailedItemsResult;
1969
+ };
1970
+ "POST /media/jobs/{job_id}/cancel": {
1971
+ args: CancelJobArgs;
1972
+ result: CancelJobResult;
1973
+ };
1974
+ "POST /media/libraries/{library_id}/export": {
1975
+ args: ExportLibraryArgs;
1976
+ result: ExportLibraryResult;
1977
+ };
1978
+ "GET /capture/handoffs": {
1979
+ args: ListHandoffsArgs;
1980
+ result: ListHandoffsResult;
1981
+ };
1982
+ "POST /capture/handoffs": {
1983
+ args: EnqueueHandoffsArgs;
1984
+ result: EnqueueHandoffsResult;
1985
+ };
1986
+ "POST /capture/handoffs/{handoff_id}/claim": {
1987
+ args: ClaimHandoffArgs;
1988
+ result: ClaimHandoffResult;
1989
+ };
1990
+ "POST /capture/handoffs/{handoff_id}/result": {
1991
+ args: RecordResultArgs;
1992
+ result: RecordResultResult;
1993
+ };
1994
+ "POST /capture/handoffs/{handoff_id}/needs-drive": {
1995
+ args: NeedsDriveArgs;
1996
+ result: NeedsDriveResult;
1997
+ };
1998
+ "POST /capture/handoffs/{handoff_id}/dismiss": {
1999
+ args: DismissHandoffArgs;
2000
+ result: DismissHandoffResult;
2001
+ };
2002
+ "GET /images/studio/presets": {
2003
+ args: GetPresetsArgs;
2004
+ result: GetPresetsResult;
2005
+ };
2006
+ "POST /images/studio/discard": {
2007
+ args: DiscardJobArgs;
2008
+ result: DiscardJobResult;
2009
+ };
2010
+ "GET /images/ops": {
2011
+ args: ListImageOpsArgs;
2012
+ result: ListImageOpsResult;
2013
+ };
2014
+ "POST /screenshot": {
2015
+ args: CaptureScreenshotArgs;
2016
+ result: CaptureScreenshotResult;
2017
+ };
2018
+ "GET /image-gen/status": {
2019
+ args: ImageGenStatusArgs;
2020
+ result: ImageGenStatusResult;
2021
+ };
2022
+ "GET /image-gen/models": {
2023
+ args: ListImageGenModelsArgs;
2024
+ result: ListImageGenModelsResult;
2025
+ };
2026
+ "POST /image-gen/download": {
2027
+ args: DownloadModelArgs;
2028
+ result: DownloadModelResult;
2029
+ };
2030
+ "POST /image-gen/text-encoders/download": {
2031
+ args: DownloadTextEncoderArgs;
2032
+ result: DownloadTextEncoderResult;
2033
+ };
2034
+ "GET /image-gen/presets": {
2035
+ args: ListWorkflowPresetsArgs;
2036
+ result: ListWorkflowPresetsResult;
2037
+ };
2038
+ "POST /image-gen/load": {
2039
+ args: LoadModelArgs;
2040
+ result: LoadModelResult;
2041
+ };
2042
+ "POST /image-gen/unload": {
2043
+ args: UnloadModelArgs;
2044
+ result: UnloadModelResult;
2045
+ };
2046
+ "POST /image-gen/generate": {
2047
+ args: GenerateImageOnMatrxLocalArgs;
2048
+ result: GenerateImageOnMatrxLocalResult;
2049
+ };
2050
+ "POST /image-gen/cancel": {
2051
+ args: CancelGenerationArgs;
2052
+ result: CancelGenerationResult;
2053
+ };
2054
+ "GET /image-gen/jobs": {
2055
+ args: ListImageJobsArgs;
2056
+ result: ListImageJobsResult;
2057
+ };
2058
+ "POST /image-gen/jobs": {
2059
+ args: EnqueueImageJobArgs;
2060
+ result: EnqueueImageJobResult;
2061
+ };
2062
+ "GET /image-gen/jobs/{job_id}": {
2063
+ args: GetImageJobArgs;
2064
+ result: GetImageJobResult;
2065
+ };
2066
+ "DELETE /image-gen/jobs/{job_id}": {
2067
+ args: CancelImageJobArgs;
2068
+ result: CancelImageJobResult;
2069
+ };
2070
+ "POST /image-gen/jobs/batch": {
2071
+ args: EnqueueImageBatchArgs;
2072
+ result: EnqueueImageBatchResult;
2073
+ };
2074
+ "GET /image-gen/batches": {
2075
+ args: ListImageBatchesArgs;
2076
+ result: ListImageBatchesResult;
2077
+ };
2078
+ "DELETE /image-gen/batches/{batch_id}": {
2079
+ args: CancelImageBatchArgs;
2080
+ result: CancelImageBatchResult;
2081
+ };
2082
+ "GET /image-gen/queue": {
2083
+ args: GetQueueStateArgs;
2084
+ result: GetQueueStateResult;
2085
+ };
2086
+ "POST /image-gen/queue/pause": {
2087
+ args: PauseQueueArgs;
2088
+ result: PauseQueueResult;
2089
+ };
2090
+ "POST /image-gen/queue/resume": {
2091
+ args: ResumeQueueArgs;
2092
+ result: ResumeQueueResult;
2093
+ };
2094
+ "POST /image-gen/queue/reorder": {
2095
+ args: ReorderQueueArgs;
2096
+ result: ReorderQueueResult;
2097
+ };
2098
+ "POST /image-gen/jobs/{job_id}/retry": {
2099
+ args: RetryImageJobArgs;
2100
+ result: RetryImageJobResult;
2101
+ };
2102
+ "POST /image-gen/jobs/clear-finished": {
2103
+ args: ClearFinishedJobsArgs;
2104
+ result: ClearFinishedJobsResult;
2105
+ };
2106
+ "GET /image-gen/loras": {
2107
+ args: ListImageLorasArgs;
2108
+ result: ListImageLorasResult;
2109
+ };
2110
+ "POST /image-gen/loras/download": {
2111
+ args: DownloadLoraArgs;
2112
+ result: DownloadLoraResult;
2113
+ };
2114
+ "DELETE /image-gen/loras/{lora_id}": {
2115
+ args: DeleteImageLoraArgs;
2116
+ result: DeleteImageLoraResult;
2117
+ };
2118
+ "POST /image-gen/custom-models/inspect": {
2119
+ args: InspectCustomModelArgs;
2120
+ result: InspectCustomModelResult;
2121
+ };
2122
+ "POST /image-gen/custom-models": {
2123
+ args: RegisterCustomModelRouteArgs;
2124
+ result: RegisterCustomModelRouteResult;
2125
+ };
2126
+ "DELETE /image-gen/custom-models/{model_id}": {
2127
+ args: DeleteCustomModelArgs;
2128
+ result: DeleteCustomModelResult;
2129
+ };
2130
+ "GET /image-gen/params/{model_id}": {
2131
+ args: GetImageModelParamsArgs;
2132
+ result: GetImageModelParamsResult;
2133
+ };
2134
+ "POST /image-gen/generate-workflow": {
2135
+ args: GenerateFromWorkflowArgs;
2136
+ result: GenerateFromWorkflowResult;
2137
+ };
2138
+ "GET /image-gen/runtime/status": {
2139
+ args: MediaRuntimeStatusArgs;
2140
+ result: MediaRuntimeStatusResult;
2141
+ };
2142
+ "POST /image-gen/runtime/ensure": {
2143
+ args: EnsureMediaRuntimeArgs;
2144
+ result: EnsureMediaRuntimeResult;
2145
+ };
2146
+ "POST /image-gen/runtime/repair": {
2147
+ args: RepairMediaRuntimeArgs;
2148
+ result: RepairMediaRuntimeResult;
2149
+ };
2150
+ "POST /image-gen/install": {
2151
+ args: InstallImageGenArgs;
2152
+ result: InstallImageGenResult;
2153
+ };
2154
+ "GET /image-gen/install/status": {
2155
+ args: GetInstallStatusArgs;
2156
+ result: GetInstallStatusResult;
2157
+ };
2158
+ "GET /video-gen/status": {
2159
+ args: VideoGenStatusArgs;
2160
+ result: VideoGenStatusResult;
2161
+ };
2162
+ "GET /video-gen/models": {
2163
+ args: ListVideoGenModelsArgs;
2164
+ result: ListVideoGenModelsResult;
2165
+ };
2166
+ "POST /video-gen/download": {
2167
+ args: DownloadVideoModelArgs;
2168
+ result: DownloadVideoModelResult;
2169
+ };
2170
+ "POST /video-gen/load": {
2171
+ args: LoadVideoModelArgs;
2172
+ result: LoadVideoModelResult;
2173
+ };
2174
+ "POST /video-gen/unload": {
2175
+ args: UnloadVideoModelArgs;
2176
+ result: UnloadVideoModelResult;
2177
+ };
2178
+ "POST /video-gen/generate": {
2179
+ args: GenerateVideoArgs;
2180
+ result: GenerateVideoResult;
2181
+ };
2182
+ "GET /video-gen/params/{model_id}": {
2183
+ args: GetVideoModelParamsArgs;
2184
+ result: GetVideoModelParamsResult;
2185
+ };
2186
+ "GET /video-gen/jobs": {
2187
+ args: ListVideoJobsArgs;
2188
+ result: ListVideoJobsResult;
2189
+ };
2190
+ "GET /video-gen/jobs/{job_id}": {
2191
+ args: GetVideoJobArgs;
2192
+ result: GetVideoJobResult;
2193
+ };
2194
+ "DELETE /video-gen/jobs/{job_id}": {
2195
+ args: CancelVideoJobArgs;
2196
+ result: CancelVideoJobResult;
2197
+ };
2198
+ "GET /video-gen/jobs/{job_id}/result": {
2199
+ args: GetVideoJobResultArgs;
2200
+ result: GetVideoJobResultResult;
2201
+ };
2202
+ "GET /media-library/items": {
2203
+ args: ListMediaItemsArgs;
2204
+ result: ListMediaItemsResult;
2205
+ };
2206
+ "GET /media-library/revision-branch/{root_item_id}": {
2207
+ args: ListRevisionBranchArgs;
2208
+ result: ListRevisionBranchResult;
2209
+ };
2210
+ "GET /media-library/thumb/{item_id}": {
2211
+ args: GetMediaThumbArgs;
2212
+ result: GetMediaThumbResult;
2213
+ };
2214
+ "GET /media-library/file/{item_id}": {
2215
+ args: GetMediaFileArgs;
2216
+ result: GetMediaFileResult;
2217
+ };
2218
+ "GET /media-library/items/{item_id}/init-image": {
2219
+ args: GetMediaInitImageArgs;
2220
+ result: GetMediaInitImageResult;
2221
+ };
2222
+ "DELETE /media-library/items/{item_id}": {
2223
+ args: DeleteMediaItemArgs;
2224
+ result: DeleteMediaItemResult;
2225
+ };
2226
+ "GET /media-vault/status": {
2227
+ args: VaultStatusArgs;
2228
+ result: VaultStatusResult;
2229
+ };
2230
+ "POST /media-vault/create": {
2231
+ args: VaultCreateArgs;
2232
+ result: VaultCreateResult;
2233
+ };
2234
+ "POST /media-vault/unlock": {
2235
+ args: VaultUnlockArgs;
2236
+ result: VaultUnlockResult;
2237
+ };
2238
+ "POST /media-vault/lock": {
2239
+ args: VaultLockArgs;
2240
+ result: VaultLockResult;
2241
+ };
2242
+ "GET /media-vault/items": {
2243
+ args: VaultItemsArgs;
2244
+ result: VaultItemsResult;
2245
+ };
2246
+ "GET /media-vault/file/{item_id}": {
2247
+ args: VaultFileArgs;
2248
+ result: VaultFileResult;
2249
+ };
2250
+ "POST /media-vault/move": {
2251
+ args: VaultMoveArgs;
2252
+ result: VaultMoveResult;
2253
+ };
2254
+ "POST /media-vault/restore": {
2255
+ args: VaultRestoreArgs;
2256
+ result: VaultRestoreResult;
2257
+ };
2258
+ "DELETE /media-vault/items/{item_id}": {
2259
+ args: VaultDeleteArgs;
2260
+ result: VaultDeleteResult;
2261
+ };
2262
+ "POST /media-vault/change-password": {
2263
+ args: VaultChangePasswordArgs;
2264
+ result: VaultChangePasswordResult;
2265
+ };
2266
+ }
2267
+ /** Path-keyed call, scoped to this domain only (never a global path map). */
2268
+ declare function call<K extends keyof Operations>(api: Api, key: K, args?: Operations[K]["args"], options?: CallOptions): Promise<Operations[K]["result"]>;
2269
+
2270
+ export { type BatchJobSpec, type BatchSummaryResponse, type BgRemoveArgs, type BgRemoveParams, type BgRemoveResult, type CancelGenerationArgs, type CancelGenerationResponse, type CancelGenerationResult, type CancelImageBatchArgs, type CancelImageBatchResult, type CancelImageJobArgs, type CancelImageJobResult, type CancelJobArgs, type CancelJobResult, type CancelVideoJobArgs, type CancelVideoJobResult, type CaptionSegment, type CaptionTrackBody, type CaptureHandoff, type CaptureLadderResponse, type CaptureRefusal, type CaptureScreenshotArgs, type CaptureScreenshotResult, type ChangePasswordRequest, type ClaimBody, type ClaimHandoffArgs, type ClaimHandoffResult, type ClearFinishedJobsArgs, type ClearFinishedJobsResult, type CommitJobArgs, type CommitJobResult, type CommitRequest, type CreateJobArgs, type CreateJobResult, type CreateLibraryArgs, type CreateLibraryBody, type CreateLibraryResult, type CustomModelEntry, type CustomModelInspectRequest, type CustomModelInspectResponse, type CustomModelRegisterResponse, type DeleteCustomModelArgs, type DeleteCustomModelResult, type DeleteImageLoraArgs, type DeleteImageLoraResult, type DeleteMediaItemArgs, type DeleteMediaItemResult, type DetectDocumentArgs, type DetectDocumentRequest, type DetectDocumentResult, type DiscardJobArgs, type DiscardJobResult, type DiscardRequest, type DiscardResponse, type DismissBody, type DismissHandoffArgs, type DismissHandoffResult, type DownloadLoraArgs, type DownloadLoraResult, type DownloadModelArgs, type DownloadModelRequest, type DownloadModelResponse, type DownloadModelResult, type DownloadTextEncoderArgs, type DownloadTextEncoderRequest, type DownloadTextEncoderResponse, type DownloadTextEncoderResult, type DownloadVideoModelArgs, type DownloadVideoModelResult, type EditImageArgs, type EditImageResult, type EnqueueBatchRequest, type EnqueueBatchResponse, type EnqueueBody, type EnqueueHandoffsArgs, type EnqueueHandoffsResult, type EnqueueImageBatchArgs, type EnqueueImageBatchResult, type EnqueueImageJobArgs, type EnqueueImageJobRequest, type EnqueueImageJobResult, type EnsureMediaRuntimeArgs, type EnsureMediaRuntimeResult, type EstimateBody, type EstimateSelectionArgs, type EstimateSelectionResult, type ExportBody, type ExportLibraryArgs, type ExportLibraryResult, type GenerateFromWorkflowArgs, type GenerateFromWorkflowResult, type GenerateImageArgs, type GenerateImageOnMatrxLocalArgs, type GenerateImageOnMatrxLocalResult, type GenerateImageRequest, type GenerateImageResult, type GenerateRequest, type GenerateResponse, type GenerateVideoArgs, type GenerateVideoRequest, type GenerateVideoResponse, type GenerateVideoResult, type GetImageJobArgs, type GetImageJobResult, type GetImageModelParamsArgs, type GetImageModelParamsResult, type GetInstallStatusArgs, type GetInstallStatusResult, type GetJobArgs, type GetJobResult, type GetLibraryArgs, type GetLibraryResult, type GetMediaFileArgs, type GetMediaFileResult, type GetMediaInitImageArgs, type GetMediaInitImageResult, type GetMediaThumbArgs, type GetMediaThumbResult, type GetOrRenderVariantArgs, type GetOrRenderVariantResult, type GetPresetsArgs, type GetPresetsResult, type GetQueueStateArgs, type GetQueueStateResult, type GetSettingsArgs, type GetSettingsResult, type GetVideoJobArgs, type GetVideoJobResult, type GetVideoJobResultArgs, type GetVideoJobResultResult, type GetVideoModelParamsArgs, type GetVideoModelParamsResult, type ImageBgRemoveRequest, type ImageEditOutput, type ImageEditRequest, type ImageGenModelInfo, type ImageGenStatusArgs, type ImageGenStatusResponse, type ImageGenStatusResult, type ImageInpaintRequest, type ImageJobEnqueuedResponse, type ImageJobResponse, type ImageOpDescriptor, type ImageOpsCatalog, type ImageRevisionRequest, type ImageStudioCapabilities, type ImageStudioPresetsResponse, type InpaintArgs, type InpaintParams, type InpaintResult, type InspectCustomModelArgs, type InspectCustomModelResult, type InstallImageGenArgs, type InstallImageGenResult, type InstallStatusResponse, type ItemIdsRequest, type LibraryMetricsArgs, type LibraryMetricsResult, type ListActionsArgs, type ListActionsResult, type ListHandoffsArgs, type ListHandoffsResult, type ListImageBatchesArgs, type ListImageBatchesResult, type ListImageGenModelsArgs, type ListImageGenModelsResult, type ListImageJobsArgs, type ListImageJobsResult, type ListImageLorasArgs, type ListImageLorasResult, type ListImageOpsArgs, type ListImageOpsResult, type ListLibrariesArgs, type ListLibrariesResult, type ListLibraryJobsArgs, type ListLibraryJobsResult, type ListLibraryVideosArgs, type ListLibraryVideosResult, type ListMediaItemsArgs, type ListMediaItemsResult, type ListRevisionBranchArgs, type ListRevisionBranchResult, type ListVideoGenModelsArgs, type ListVideoGenModelsResult, type ListVideoJobsArgs, type ListVideoJobsResult, type ListWorkflowPresetsArgs, type ListWorkflowPresetsResult, type LoadModelArgs, type LoadModelResponse, type LoadModelResult, type LoadVideoModelArgs, type LoadVideoModelResult, type LoraCatalogInfo, type LoraDownloadRequest, type LoraDownloadResponse, type LoraInstalledInfo, type LoraSpec, type LorasResponse, type MediaLibraryItem, type MediaLibraryListResponse, type MediaRuntimeStatusArgs, type MediaRuntimeStatusResponse, type MediaRuntimeStatusResult, type ModelParamsResponse, type NeedsDriveArgs, type NeedsDriveBody, type NeedsDriveResult, type Operations, type PasswordRequest, type PauseQueueArgs, type PauseQueueResult, type ProcessImageArgs, type ProcessImageResult, type PutSettingsArgs, type PutSettingsResult, type QueueStateResponse, type RecordResultArgs, type RecordResultResult, type RegisterCustomModelRouteArgs, type RegisterCustomModelRouteResult, type ReorderQueueArgs, type ReorderQueueRequest, type ReorderQueueResult, type RepairMediaRuntimeArgs, type RepairMediaRuntimeResult, type ResolveBody, type ResolveSourceArgs, type ResolveSourceResult, type ResultBody, type ResumeJobArgs, type ResumeJobResult, type ResumeQueueArgs, type ResumeQueueResult, type RetryFailedItemsArgs, type RetryFailedItemsResult, type RetryImageJobArgs, type RetryImageJobResult, type Selection, type SelectionFilter, type SettingsBody, type StartJobBody, type StreamInstallProgressArgs, type StreamInstallProgressResult, type StreamMediaRuntimeArgs, type StreamMediaRuntimeResult, type SyncBody, type SyncLibraryArgs, type SyncLibraryResult, type UnloadModelArgs, type UnloadModelResult, type UnloadVideoModelArgs, type UnloadVideoModelResult, type UploadVisionMasterArgs, type UploadVisionMasterResult, type VaultChangePasswordArgs, type VaultChangePasswordResult, type VaultCreateArgs, type VaultCreateResult, type VaultDeleteArgs, type VaultDeleteResult, type VaultFileArgs, type VaultFileResult, type VaultItemsArgs, type VaultItemsResult, type VaultLockArgs, type VaultLockResult, type VaultMoveArgs, type VaultMoveResult, type VaultOpResponse, type VaultOpResult, type VaultRestoreArgs, type VaultRestoreResult, type VaultStatusArgs, type VaultStatusResponse, type VaultStatusResult, type VaultUnlockArgs, type VaultUnlockResult, type VideoGenModelInfo, type VideoGenStatusArgs, type VideoGenStatusResponse, type VideoGenStatusResult, type VideoJobResponse, type VisionMediaUploadResponse, type WorkflowGenerateRequest, type WorkflowPresetInfo, type app__api__image_gen_routes__LoadModelRequest, type app__api__video_gen_routes__LoadModelRequest, bgRemove, call, cancelGeneration, cancelImageBatch, cancelImageJob, cancelJob, cancelVideoJob, captureScreenshot, claimHandoff, clearFinishedJobs, commitJob, createJob, createLibrary, deleteCustomModel, deleteImageLora, deleteMediaItem, detectDocument, discardJob, dismissHandoff, downloadLora, downloadModel, downloadTextEncoder, downloadVideoModel, editImage, enqueueHandoffs, enqueueImageBatch, enqueueImageJob, ensureMediaRuntime, estimateSelection, exportLibrary, generateFromWorkflow, generateImage, generateImageOnMatrxLocal, generateVideo, getImageJob, getImageModelParams, getInstallStatus, getJob, getLibrary, getMediaFile, getMediaInitImage, getMediaThumb, getOrRenderVariant, getPresets, getQueueState, getSettings, getVideoJob, getVideoJobResult, getVideoModelParams, imageGenStatus, inpaint, inspectCustomModel, installImageGen, libraryMetrics, listActions, listHandoffs, listImageBatches, listImageGenModels, listImageJobs, listImageLoras, listImageOps, listLibraries, listLibraryJobs, listLibraryVideos, listMediaItems, listRevisionBranch, listVideoGenModels, listVideoJobs, listWorkflowPresets, loadModel, loadVideoModel, mediaRuntimeStatus, needsDrive, pauseQueue, processImage, putSettings, recordResult, registerCustomModelRoute, reorderQueue, repairMediaRuntime, resolveSource, resumeJob, resumeQueue, retryFailedItems, retryImageJob, streamInstallProgress, streamMediaRuntime, syncLibrary, unloadModel, unloadVideoModel, uploadVisionMaster, vaultChangePassword, vaultCreate, vaultDelete, vaultFile, vaultItems, vaultLock, vaultMove, vaultRestore, vaultStatus, vaultUnlock, videoGenStatus };