substarte 120240617.1.9

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,4712 @@
1
+ /**
2
+ * Errors thrown by the Substrate SDK will be instances of `SubstrateError`.
3
+ */
4
+ declare class SubstrateError extends Error {
5
+ }
6
+ declare class NodeError$1 extends SubstrateError {
7
+ type: string;
8
+ request_id?: string;
9
+ message: string;
10
+ constructor(type: string, message: string, request_id?: string);
11
+ }
12
+
13
+ interface components {
14
+ schemas: {
15
+ /** ErrorOut */
16
+ ErrorOut: {
17
+ /**
18
+ * @description The type of error returned.
19
+ * @enum {string}
20
+ */
21
+ type: "api_error" | "invalid_request_error" | "dependency_error";
22
+ /** @description A message providing more details about the error. */
23
+ message: string;
24
+ /**
25
+ * @description The HTTP status code for the error.
26
+ * @default 500
27
+ */
28
+ status_code?: number;
29
+ };
30
+ /** ExperimentalIn */
31
+ ExperimentalIn: {
32
+ /** @description Identifier. */
33
+ name: string;
34
+ /** @description Arguments. */
35
+ args: {
36
+ [key: string]: unknown;
37
+ };
38
+ /**
39
+ * @description Timeout in seconds.
40
+ * @default 60
41
+ */
42
+ timeout?: number;
43
+ };
44
+ /** ExperimentalOut */
45
+ ExperimentalOut: {
46
+ /** @description Response. */
47
+ output: {
48
+ [key: string]: unknown;
49
+ };
50
+ };
51
+ /** BoxIn */
52
+ BoxIn: {
53
+ /** @description Values to box. */
54
+ value: unknown;
55
+ };
56
+ /** BoxOut */
57
+ BoxOut: {
58
+ /** @description The evaluated result. */
59
+ value: unknown;
60
+ };
61
+ /** IfIn */
62
+ IfIn: {
63
+ /** @description Condition. */
64
+ condition: boolean;
65
+ /** @description Result when condition is true. */
66
+ value_if_true: unknown;
67
+ /** @description Result when condition is false. */
68
+ value_if_false?: unknown;
69
+ };
70
+ /** IfOut */
71
+ IfOut: {
72
+ /** @description Result. Null if `value_if_false` is not provided and `condition` is false. */
73
+ result: unknown;
74
+ };
75
+ /** RunPythonIn */
76
+ RunPythonIn: {
77
+ /** @description Pickled function. */
78
+ pkl_function?: string;
79
+ /** @description Keyword arguments to your function. */
80
+ kwargs: {
81
+ [key: string]: unknown;
82
+ };
83
+ /** @description Python version. */
84
+ python_version?: string;
85
+ /** @description Python packages to install. You must import them in your code. */
86
+ pip_install?: string[];
87
+ };
88
+ /** RunPythonOut */
89
+ RunPythonOut: {
90
+ /** @description Return value of your function. */
91
+ output?: unknown;
92
+ /** @description Pickled return value. */
93
+ pkl_output?: string;
94
+ /** @description Everything printed to stdout while running your code. */
95
+ stdout: string;
96
+ /** @description Contents of stderr if your code did not run successfully. */
97
+ stderr: string;
98
+ };
99
+ /** ComputeTextIn */
100
+ ComputeTextIn: {
101
+ /** @description Input prompt. */
102
+ prompt: string;
103
+ /** @description Image prompts. */
104
+ image_uris?: string[];
105
+ /**
106
+ * Format: float
107
+ * @description Sampling temperature to use. Higher values make the output more random, lower values make the output more deterministic.
108
+ * @default 0.4
109
+ */
110
+ temperature?: number;
111
+ /** @description Maximum number of tokens to generate. */
112
+ max_tokens?: number;
113
+ /**
114
+ * @description Selected model. `Firellava13B` is automatically selected when `image_uris` is provided.
115
+ * @default Llama3Instruct8B
116
+ * @enum {string}
117
+ */
118
+ model?: "Mistral7BInstruct" | "Mixtral8x7BInstruct" | "Llama3Instruct8B" | "Llama3Instruct70B" | "Llama3Instruct405B" | "Firellava13B" | "gpt-4o" | "gpt-4o-mini" | "claude-3-5-sonnet-20240620";
119
+ };
120
+ /** ComputeTextOut */
121
+ ComputeTextOut: {
122
+ /** @description Text response. */
123
+ text: string;
124
+ };
125
+ /** ComputeJSONIn */
126
+ ComputeJSONIn: {
127
+ /** @description Input prompt. */
128
+ prompt: string;
129
+ /** @description JSON schema to guide `json_object` response. */
130
+ json_schema: {
131
+ [key: string]: unknown;
132
+ };
133
+ /**
134
+ * Format: float
135
+ * @description Sampling temperature to use. Higher values make the output more random, lower values make the output more deterministic.
136
+ * @default 0.4
137
+ */
138
+ temperature?: number;
139
+ /** @description Maximum number of tokens to generate. */
140
+ max_tokens?: number;
141
+ /**
142
+ * @description Selected model.
143
+ * @default Llama3Instruct8B
144
+ * @enum {string}
145
+ */
146
+ model?: "Mistral7BInstruct" | "Mixtral8x7BInstruct" | "Llama3Instruct8B";
147
+ };
148
+ /** ComputeJSONOut */
149
+ ComputeJSONOut: {
150
+ /** @description JSON response. */
151
+ json_object?: {
152
+ [key: string]: unknown;
153
+ };
154
+ /** @description If the model output could not be parsed to JSON, this is the raw text output. */
155
+ text?: string;
156
+ };
157
+ /** MultiComputeTextIn */
158
+ MultiComputeTextIn: {
159
+ /** @description Input prompt. */
160
+ prompt: string;
161
+ /**
162
+ * @description Number of choices to generate.
163
+ * @default 1
164
+ */
165
+ num_choices: number;
166
+ /**
167
+ * Format: float
168
+ * @description Sampling temperature to use. Higher values make the output more random, lower values make the output more deterministic.
169
+ * @default 0.4
170
+ */
171
+ temperature?: number;
172
+ /** @description Maximum number of tokens to generate. */
173
+ max_tokens?: number;
174
+ /**
175
+ * @description Selected model.
176
+ * @default Llama3Instruct8B
177
+ * @enum {string}
178
+ */
179
+ model?: "Mistral7BInstruct" | "Mixtral8x7BInstruct" | "Llama3Instruct8B" | "Llama3Instruct70B";
180
+ };
181
+ /** MultiComputeTextOut */
182
+ MultiComputeTextOut: {
183
+ /** @description Response choices. */
184
+ choices: {
185
+ /** @description Text response. */
186
+ text: string;
187
+ }[];
188
+ };
189
+ /** BatchComputeTextIn */
190
+ BatchComputeTextIn: {
191
+ /** @description Batch input prompts. */
192
+ prompts: string[];
193
+ /**
194
+ * Format: float
195
+ * @description Sampling temperature to use. Higher values make the output more random, lower values make the output more deterministic.
196
+ * @default 0.4
197
+ */
198
+ temperature?: number;
199
+ /** @description Maximum number of tokens to generate. */
200
+ max_tokens?: number;
201
+ /**
202
+ * @description Selected model.
203
+ * @default Llama3Instruct8B
204
+ * @enum {string}
205
+ */
206
+ model?: "Mistral7BInstruct" | "Llama3Instruct8B";
207
+ };
208
+ /** BatchComputeTextOut */
209
+ BatchComputeTextOut: {
210
+ /** @description Batch outputs. */
211
+ outputs: {
212
+ /** @description Text response. */
213
+ text: string;
214
+ }[];
215
+ };
216
+ /** MultiComputeJSONIn */
217
+ MultiComputeJSONIn: {
218
+ /** @description Input prompt. */
219
+ prompt: string;
220
+ /** @description JSON schema to guide `json_object` response. */
221
+ json_schema: {
222
+ [key: string]: unknown;
223
+ };
224
+ /**
225
+ * @description Number of choices to generate.
226
+ * @default 2
227
+ */
228
+ num_choices: number;
229
+ /**
230
+ * Format: float
231
+ * @description Sampling temperature to use. Higher values make the output more random, lower values make the output more deterministic.
232
+ * @default 0.4
233
+ */
234
+ temperature?: number;
235
+ /** @description Maximum number of tokens to generate. */
236
+ max_tokens?: number;
237
+ /**
238
+ * @description Selected model.
239
+ * @default Llama3Instruct8B
240
+ * @enum {string}
241
+ */
242
+ model?: "Mistral7BInstruct" | "Mixtral8x7BInstruct" | "Llama3Instruct8B";
243
+ };
244
+ /** MultiComputeJSONOut */
245
+ MultiComputeJSONOut: {
246
+ /** @description Response choices. */
247
+ choices: {
248
+ /** @description JSON response. */
249
+ json_object?: {
250
+ [key: string]: unknown;
251
+ };
252
+ /** @description If the model output could not be parsed to JSON, this is the raw text output. */
253
+ text?: string;
254
+ }[];
255
+ };
256
+ /** BatchComputeJSONIn */
257
+ BatchComputeJSONIn: {
258
+ /** @description Batch input prompts. */
259
+ prompts: string[];
260
+ /** @description JSON schema to guide `json_object` response. */
261
+ json_schema: {
262
+ [key: string]: unknown;
263
+ };
264
+ /**
265
+ * Format: float
266
+ * @description Sampling temperature to use. Higher values make the output more random, lower values make the output more deterministic.
267
+ * @default 0.4
268
+ */
269
+ temperature?: number;
270
+ /** @description Maximum number of tokens to generate. */
271
+ max_tokens?: number;
272
+ /**
273
+ * @description Selected model.
274
+ * @default Llama3Instruct8B
275
+ * @enum {string}
276
+ */
277
+ model?: "Mistral7BInstruct" | "Llama3Instruct8B";
278
+ };
279
+ /** BatchComputeJSONOut */
280
+ BatchComputeJSONOut: {
281
+ /** @description Batch outputs. */
282
+ outputs: {
283
+ /** @description JSON response. */
284
+ json_object?: {
285
+ [key: string]: unknown;
286
+ };
287
+ /** @description If the model output could not be parsed to JSON, this is the raw text output. */
288
+ text?: string;
289
+ }[];
290
+ };
291
+ /** Mistral7BInstructIn */
292
+ Mistral7BInstructIn: {
293
+ /** @description Input prompt. */
294
+ prompt: string;
295
+ /** @description System prompt. */
296
+ system_prompt?: string;
297
+ /**
298
+ * @description Number of choices to generate.
299
+ * @default 1
300
+ */
301
+ num_choices?: number;
302
+ /** @description JSON schema to guide response. */
303
+ json_schema?: {
304
+ [key: string]: unknown;
305
+ };
306
+ /**
307
+ * Format: float
308
+ * @description Higher values make the output more random, lower values make the output more deterministic.
309
+ */
310
+ temperature?: number;
311
+ /**
312
+ * Format: float
313
+ * @description Higher values decrease the likelihood of repeating previous tokens.
314
+ * @default 0
315
+ */
316
+ frequency_penalty?: number;
317
+ /**
318
+ * Format: float
319
+ * @description Higher values decrease the likelihood of repeated sequences.
320
+ * @default 1
321
+ */
322
+ repetition_penalty?: number;
323
+ /**
324
+ * Format: float
325
+ * @description Higher values increase the likelihood of new topics appearing.
326
+ * @default 1.1
327
+ */
328
+ presence_penalty?: number;
329
+ /**
330
+ * Format: float
331
+ * @description Probability below which less likely tokens are filtered out.
332
+ * @default 0.95
333
+ */
334
+ top_p?: number;
335
+ /** @description Maximum number of tokens to generate. */
336
+ max_tokens?: number;
337
+ };
338
+ /** Mistral7BInstructChoice */
339
+ Mistral7BInstructChoice: {
340
+ /** @description Text response, if `json_schema` was not provided. */
341
+ text?: string;
342
+ /** @description JSON response, if `json_schema` was provided. */
343
+ json_object?: {
344
+ [key: string]: unknown;
345
+ };
346
+ };
347
+ /** Mistral7BInstructOut */
348
+ Mistral7BInstructOut: {
349
+ /** @description Response choices. */
350
+ choices: {
351
+ /** @description Text response, if `json_schema` was not provided. */
352
+ text?: string;
353
+ /** @description JSON response, if `json_schema` was provided. */
354
+ json_object?: {
355
+ [key: string]: unknown;
356
+ };
357
+ }[];
358
+ };
359
+ /** Mixtral8x7BInstructIn */
360
+ Mixtral8x7BInstructIn: {
361
+ /** @description Input prompt. */
362
+ prompt: string;
363
+ /** @description System prompt. */
364
+ system_prompt?: string;
365
+ /**
366
+ * @description Number of choices to generate.
367
+ * @default 1
368
+ */
369
+ num_choices?: number;
370
+ /** @description JSON schema to guide response. */
371
+ json_schema?: {
372
+ [key: string]: unknown;
373
+ };
374
+ /**
375
+ * Format: float
376
+ * @description Higher values make the output more random, lower values make the output more deterministic.
377
+ */
378
+ temperature?: number;
379
+ /**
380
+ * Format: float
381
+ * @description Higher values decrease the likelihood of repeating previous tokens.
382
+ * @default 0
383
+ */
384
+ frequency_penalty?: number;
385
+ /**
386
+ * Format: float
387
+ * @description Higher values decrease the likelihood of repeated sequences.
388
+ * @default 1
389
+ */
390
+ repetition_penalty?: number;
391
+ /**
392
+ * Format: float
393
+ * @description Higher values increase the likelihood of new topics appearing.
394
+ * @default 1.1
395
+ */
396
+ presence_penalty?: number;
397
+ /**
398
+ * Format: float
399
+ * @description Probability below which less likely tokens are filtered out.
400
+ * @default 0.95
401
+ */
402
+ top_p?: number;
403
+ /** @description Maximum number of tokens to generate. */
404
+ max_tokens?: number;
405
+ };
406
+ /** Mixtral8x7BChoice */
407
+ Mixtral8x7BChoice: {
408
+ /** @description Text response, if `json_schema` was not provided. */
409
+ text?: string;
410
+ /** @description JSON response, if `json_schema` was provided. */
411
+ json_object?: {
412
+ [key: string]: unknown;
413
+ };
414
+ };
415
+ /** Mixtral8x7BInstructOut */
416
+ Mixtral8x7BInstructOut: {
417
+ /** @description Response choices. */
418
+ choices: {
419
+ /** @description Text response, if `json_schema` was not provided. */
420
+ text?: string;
421
+ /** @description JSON response, if `json_schema` was provided. */
422
+ json_object?: {
423
+ [key: string]: unknown;
424
+ };
425
+ }[];
426
+ };
427
+ /** Llama3Instruct8BIn */
428
+ Llama3Instruct8BIn: {
429
+ /** @description Input prompt. */
430
+ prompt: string;
431
+ /** @description System prompt. */
432
+ system_prompt?: string;
433
+ /**
434
+ * @description Number of choices to generate.
435
+ * @default 1
436
+ */
437
+ num_choices?: number;
438
+ /**
439
+ * Format: float
440
+ * @description Higher values make the output more random, lower values make the output more deterministic.
441
+ */
442
+ temperature?: number;
443
+ /**
444
+ * Format: float
445
+ * @description Higher values decrease the likelihood of repeating previous tokens.
446
+ * @default 0
447
+ */
448
+ frequency_penalty?: number;
449
+ /**
450
+ * Format: float
451
+ * @description Higher values decrease the likelihood of repeated sequences.
452
+ * @default 1
453
+ */
454
+ repetition_penalty?: number;
455
+ /**
456
+ * Format: float
457
+ * @description Higher values increase the likelihood of new topics appearing.
458
+ * @default 1.1
459
+ */
460
+ presence_penalty?: number;
461
+ /**
462
+ * Format: float
463
+ * @description Probability below which less likely tokens are filtered out.
464
+ * @default 0.95
465
+ */
466
+ top_p?: number;
467
+ /** @description Maximum number of tokens to generate. */
468
+ max_tokens?: number;
469
+ /** @description JSON schema to guide response. */
470
+ json_schema?: {
471
+ [key: string]: unknown;
472
+ };
473
+ };
474
+ /** Llama3Instruct8BChoice */
475
+ Llama3Instruct8BChoice: {
476
+ /** @description Text response. */
477
+ text?: string;
478
+ /** @description JSON response, if `json_schema` was provided. */
479
+ json_object?: {
480
+ [key: string]: unknown;
481
+ };
482
+ };
483
+ /** Llama3Instruct8BOut */
484
+ Llama3Instruct8BOut: {
485
+ /** @description Response choices. */
486
+ choices: {
487
+ /** @description Text response. */
488
+ text?: string;
489
+ /** @description JSON response, if `json_schema` was provided. */
490
+ json_object?: {
491
+ [key: string]: unknown;
492
+ };
493
+ }[];
494
+ };
495
+ /** Llama3Instruct70BIn */
496
+ Llama3Instruct70BIn: {
497
+ /** @description Input prompt. */
498
+ prompt: string;
499
+ /** @description System prompt. */
500
+ system_prompt?: string;
501
+ /**
502
+ * @description Number of choices to generate.
503
+ * @default 1
504
+ */
505
+ num_choices?: number;
506
+ /**
507
+ * Format: float
508
+ * @description Higher values make the output more random, lower values make the output more deterministic.
509
+ */
510
+ temperature?: number;
511
+ /**
512
+ * Format: float
513
+ * @description Higher values decrease the likelihood of repeating previous tokens.
514
+ * @default 0
515
+ */
516
+ frequency_penalty?: number;
517
+ /**
518
+ * Format: float
519
+ * @description Higher values decrease the likelihood of repeated sequences.
520
+ * @default 1
521
+ */
522
+ repetition_penalty?: number;
523
+ /**
524
+ * Format: float
525
+ * @description Higher values increase the likelihood of new topics appearing.
526
+ * @default 1.1
527
+ */
528
+ presence_penalty?: number;
529
+ /**
530
+ * Format: float
531
+ * @description Probability below which less likely tokens are filtered out.
532
+ * @default 0.95
533
+ */
534
+ top_p?: number;
535
+ /** @description Maximum number of tokens to generate. */
536
+ max_tokens?: number;
537
+ };
538
+ /** Llama3Instruct70BChoice */
539
+ Llama3Instruct70BChoice: {
540
+ /** @description Text response. */
541
+ text?: string;
542
+ };
543
+ /** Llama3Instruct70BOut */
544
+ Llama3Instruct70BOut: {
545
+ /** @description Response choices. */
546
+ choices: {
547
+ /** @description Text response. */
548
+ text?: string;
549
+ }[];
550
+ };
551
+ /** Firellava13BIn */
552
+ Firellava13BIn: {
553
+ /** @description Text prompt. */
554
+ prompt: string;
555
+ /** @description Image prompts. */
556
+ image_uris: string[];
557
+ /** @description Maximum number of tokens to generate. */
558
+ max_tokens?: number;
559
+ };
560
+ /** Firellava13BOut */
561
+ Firellava13BOut: {
562
+ /** @description Text response. */
563
+ text: string;
564
+ };
565
+ /** GenerateImageIn */
566
+ GenerateImageIn: {
567
+ /** @description Text prompt. */
568
+ prompt: string;
569
+ /** @description Use "hosted" to return an image URL hosted on Substrate. You can also provide a URL to a registered [file store](https://docs.substrate.run/reference/external-files). If unset, the image data will be returned as a base64-encoded string. */
570
+ store?: string;
571
+ };
572
+ /** GenerateImageOut */
573
+ GenerateImageOut: {
574
+ /** @description Base 64-encoded JPEG image bytes, or a hosted image url if `store` is provided. */
575
+ image_uri: string;
576
+ };
577
+ /** MultiGenerateImageIn */
578
+ MultiGenerateImageIn: {
579
+ /** @description Text prompt. */
580
+ prompt: string;
581
+ /**
582
+ * @description Number of images to generate.
583
+ * @default 2
584
+ */
585
+ num_images: number;
586
+ /** @description Use "hosted" to return an image URL hosted on Substrate. You can also provide a URL to a registered [file store](https://docs.substrate.run/reference/external-files). If unset, the image data will be returned as a base64-encoded string. */
587
+ store?: string;
588
+ };
589
+ /** MultiGenerateImageOut */
590
+ MultiGenerateImageOut: {
591
+ /** @description Generated images. */
592
+ outputs: {
593
+ /** @description Base 64-encoded JPEG image bytes, or a hosted image url if `store` is provided. */
594
+ image_uri: string;
595
+ }[];
596
+ };
597
+ /** StableDiffusionXLIn */
598
+ StableDiffusionXLIn: {
599
+ /** @description Text prompt. */
600
+ prompt: string;
601
+ /** @description Negative input prompt. */
602
+ negative_prompt?: string;
603
+ /**
604
+ * @description Number of diffusion steps.
605
+ * @default 30
606
+ */
607
+ steps?: number;
608
+ /**
609
+ * @description Number of images to generate.
610
+ * @default 1
611
+ */
612
+ num_images: number;
613
+ /** @description Use "hosted" to return an image URL hosted on Substrate. You can also provide a URL to a registered [file store](https://docs.substrate.run/reference/external-files). If unset, the image data will be returned as a base64-encoded string. */
614
+ store?: string;
615
+ /**
616
+ * @description Height of output image, in pixels.
617
+ * @default 1024
618
+ */
619
+ height?: number;
620
+ /**
621
+ * @description Width of output image, in pixels.
622
+ * @default 1024
623
+ */
624
+ width?: number;
625
+ /** @description Seeds for deterministic generation. Default is a random seed. */
626
+ seeds?: number[];
627
+ /**
628
+ * Format: float
629
+ * @description Higher values adhere to the text prompt more strongly, typically at the expense of image quality.
630
+ * @default 7
631
+ */
632
+ guidance_scale?: number;
633
+ };
634
+ /** StableDiffusionImage */
635
+ StableDiffusionImage: {
636
+ /** @description Base 64-encoded JPEG image bytes, or a hosted image url if `store` is provided. */
637
+ image_uri: string;
638
+ /** @description The random noise seed used for generation. */
639
+ seed: number;
640
+ };
641
+ /** StableDiffusionXLOut */
642
+ StableDiffusionXLOut: {
643
+ /** @description Generated images. */
644
+ outputs: {
645
+ /** @description Base 64-encoded JPEG image bytes, or a hosted image url if `store` is provided. */
646
+ image_uri: string;
647
+ /** @description The random noise seed used for generation. */
648
+ seed: number;
649
+ }[];
650
+ };
651
+ /** StableDiffusionXLLightningIn */
652
+ StableDiffusionXLLightningIn: {
653
+ /** @description Text prompt. */
654
+ prompt: string;
655
+ /** @description Negative input prompt. */
656
+ negative_prompt?: string;
657
+ /**
658
+ * @description Number of images to generate.
659
+ * @default 1
660
+ */
661
+ num_images?: number;
662
+ /** @description Use "hosted" to return an image URL hosted on Substrate. You can also provide a URL to a registered [file store](https://docs.substrate.run/reference/external-files). If unset, the image data will be returned as a base64-encoded string. */
663
+ store?: string;
664
+ /**
665
+ * @description Height of output image, in pixels.
666
+ * @default 1024
667
+ */
668
+ height?: number;
669
+ /**
670
+ * @description Width of output image, in pixels.
671
+ * @default 1024
672
+ */
673
+ width?: number;
674
+ /** @description Seeds for deterministic generation. Default is a random seed. */
675
+ seeds?: number[];
676
+ };
677
+ /** StableDiffusionXLLightningOut */
678
+ StableDiffusionXLLightningOut: {
679
+ /** @description Generated images. */
680
+ outputs: {
681
+ /** @description Base 64-encoded JPEG image bytes, or a hosted image url if `store` is provided. */
682
+ image_uri: string;
683
+ /** @description The random noise seed used for generation. */
684
+ seed: number;
685
+ }[];
686
+ };
687
+ /** StableDiffusionXLIPAdapterIn */
688
+ StableDiffusionXLIPAdapterIn: {
689
+ /** @description Text prompt. */
690
+ prompt: string;
691
+ /** @description Image prompt. */
692
+ image_prompt_uri: string;
693
+ /**
694
+ * @description Number of images to generate.
695
+ * @default 1
696
+ */
697
+ num_images: number;
698
+ /**
699
+ * Format: float
700
+ * @description Controls the influence of the image prompt on the generated output.
701
+ * @default 0.5
702
+ */
703
+ ip_adapter_scale?: number;
704
+ /** @description Negative input prompt. */
705
+ negative_prompt?: string;
706
+ /** @description Use "hosted" to return an image URL hosted on Substrate. You can also provide a URL to a registered [file store](https://docs.substrate.run/reference/external-files). If unset, the image data will be returned as a base64-encoded string. */
707
+ store?: string;
708
+ /**
709
+ * @description Width of output image, in pixels.
710
+ * @default 1024
711
+ */
712
+ width?: number;
713
+ /**
714
+ * @description Height of output image, in pixels.
715
+ * @default 1024
716
+ */
717
+ height?: number;
718
+ /** @description Random noise seeds. Default is random seeds for each generation. */
719
+ seeds?: number[];
720
+ };
721
+ /** StableDiffusionXLIPAdapterOut */
722
+ StableDiffusionXLIPAdapterOut: {
723
+ /** @description Generated images. */
724
+ outputs: {
725
+ /** @description Base 64-encoded JPEG image bytes, or a hosted image url if `store` is provided. */
726
+ image_uri: string;
727
+ /** @description The random noise seed used for generation. */
728
+ seed: number;
729
+ }[];
730
+ };
731
+ /** StableDiffusionXLControlNetIn */
732
+ StableDiffusionXLControlNetIn: {
733
+ /** @description Input image. */
734
+ image_uri: string;
735
+ /**
736
+ * @description Strategy to control generation using the input image.
737
+ * @enum {string}
738
+ */
739
+ control_method: "edge" | "depth" | "illusion" | "tile";
740
+ /** @description Text prompt. */
741
+ prompt: string;
742
+ /**
743
+ * @description Number of images to generate.
744
+ * @default 1
745
+ */
746
+ num_images: number;
747
+ /**
748
+ * @description Resolution of the output image, in pixels.
749
+ * @default 1024
750
+ */
751
+ output_resolution?: number;
752
+ /** @description Negative input prompt. */
753
+ negative_prompt?: string;
754
+ /** @description Use "hosted" to return an image URL hosted on Substrate. You can also provide a URL to a registered [file store](https://docs.substrate.run/reference/external-files). If unset, the image data will be returned as a base64-encoded string. */
755
+ store?: string;
756
+ /**
757
+ * Format: float
758
+ * @description Controls the influence of the input image on the generated output.
759
+ * @default 0.5
760
+ */
761
+ conditioning_scale?: number;
762
+ /**
763
+ * Format: float
764
+ * @description Controls how much to transform the input image.
765
+ * @default 0.5
766
+ */
767
+ strength?: number;
768
+ /** @description Random noise seeds. Default is random seeds for each generation. */
769
+ seeds?: number[];
770
+ };
771
+ /** StableDiffusionXLControlNetOut */
772
+ StableDiffusionXLControlNetOut: {
773
+ /** @description Generated images. */
774
+ outputs: {
775
+ /** @description Base 64-encoded JPEG image bytes, or a hosted image url if `store` is provided. */
776
+ image_uri: string;
777
+ /** @description The random noise seed used for generation. */
778
+ seed: number;
779
+ }[];
780
+ };
781
+ /** StableVideoDiffusionIn */
782
+ StableVideoDiffusionIn: {
783
+ /** @description Original image. */
784
+ image_uri: string;
785
+ /** @description Use "hosted" to return a video URL hosted on Substrate. You can also provide a URL to a registered [file store](https://docs.substrate.run/reference/external-files). If unset, the video data will be returned as a base64-encoded string. */
786
+ store?: string;
787
+ /**
788
+ * @description Output video format.
789
+ * @default gif
790
+ * @enum {string}
791
+ */
792
+ output_format?: "gif" | "webp" | "mp4" | "frames";
793
+ /** @description Seed for deterministic generation. Default is a random seed. */
794
+ seed?: number;
795
+ /**
796
+ * @description Frames per second of the generated video. Ignored if output format is `frames`.
797
+ * @default 7
798
+ */
799
+ fps?: number;
800
+ /**
801
+ * @description The motion bucket id to use for the generated video. This can be used to control the motion of the generated video. Increasing the motion bucket id increases the motion of the generated video.
802
+ * @default 180
803
+ */
804
+ motion_bucket_id?: number;
805
+ /**
806
+ * Format: float
807
+ * @description The amount of noise added to the conditioning image. The higher the values the less the video resembles the conditioning image. Increasing this value also increases the motion of the generated video.
808
+ * @default 0.1
809
+ */
810
+ noise?: number;
811
+ };
812
+ /** StableVideoDiffusionOut */
813
+ StableVideoDiffusionOut: {
814
+ /** @description Generated video. */
815
+ video_uri?: string;
816
+ /** @description Generated frames. */
817
+ frame_uris?: string[];
818
+ };
819
+ /** InterpolateFramesIn */
820
+ InterpolateFramesIn: {
821
+ /** @description Frames. */
822
+ frame_uris: string[];
823
+ /** @description Use "hosted" to return a video URL hosted on Substrate. You can also provide a URL to a registered [file store](https://docs.substrate.run/reference/external-files). If unset, the video data will be returned as a base64-encoded string. */
824
+ store?: string;
825
+ /**
826
+ * @description Output video format.
827
+ * @default gif
828
+ * @enum {string}
829
+ */
830
+ output_format?: "gif" | "webp" | "mp4" | "frames";
831
+ /**
832
+ * @description Frames per second of the generated video. Ignored if output format is `frames`.
833
+ * @default 7
834
+ */
835
+ fps?: number;
836
+ /**
837
+ * @description Number of interpolation steps. Each step adds an interpolated frame between adjacent frames. For example, 2 steps over 2 frames produces 5 frames.
838
+ * @default 2
839
+ */
840
+ num_steps?: number;
841
+ };
842
+ /** InterpolateFramesOut */
843
+ InterpolateFramesOut: {
844
+ /** @description Generated video. */
845
+ video_uri?: string;
846
+ /** @description Output frames. */
847
+ frame_uris?: string[];
848
+ };
849
+ /** InpaintImageIn */
850
+ InpaintImageIn: {
851
+ /** @description Original image. */
852
+ image_uri: string;
853
+ /** @description Text prompt. */
854
+ prompt: string;
855
+ /** @description Mask image that controls which pixels are inpainted. If unset, the entire image is edited (image-to-image). */
856
+ mask_image_uri?: string;
857
+ /** @description Use "hosted" to return an image URL hosted on Substrate. You can also provide a URL to a registered [file store](https://docs.substrate.run/reference/external-files). If unset, the image data will be returned as a base64-encoded string. */
858
+ store?: string;
859
+ };
860
+ /** InpaintImageOut */
861
+ InpaintImageOut: {
862
+ /** @description Base 64-encoded JPEG image bytes, or a hosted image url if `store` is provided. */
863
+ image_uri: string;
864
+ };
865
+ /** MultiInpaintImageIn */
866
+ MultiInpaintImageIn: {
867
+ /** @description Original image. */
868
+ image_uri: string;
869
+ /** @description Text prompt. */
870
+ prompt: string;
871
+ /** @description Mask image that controls which pixels are edited (inpainting). If unset, the entire image is edited (image-to-image). */
872
+ mask_image_uri?: string;
873
+ /**
874
+ * @description Number of images to generate.
875
+ * @default 2
876
+ */
877
+ num_images: number;
878
+ /** @description Use "hosted" to return an image URL hosted on Substrate. You can also provide a URL to a registered [file store](https://docs.substrate.run/reference/external-files). If unset, the image data will be returned as a base64-encoded string. */
879
+ store?: string;
880
+ };
881
+ /** MultiInpaintImageOut */
882
+ MultiInpaintImageOut: {
883
+ /** @description Generated images. */
884
+ outputs: {
885
+ /** @description Base 64-encoded JPEG image bytes, or a hosted image url if `store` is provided. */
886
+ image_uri: string;
887
+ }[];
888
+ };
889
+ /** StableDiffusionXLInpaintIn */
890
+ StableDiffusionXLInpaintIn: {
891
+ /** @description Original image. */
892
+ image_uri: string;
893
+ /** @description Text prompt. */
894
+ prompt: string;
895
+ /** @description Mask image that controls which pixels are edited (inpainting). If unset, the entire image is edited (image-to-image). */
896
+ mask_image_uri?: string;
897
+ /**
898
+ * @description Number of images to generate.
899
+ * @default 1
900
+ */
901
+ num_images: number;
902
+ /**
903
+ * @description Resolution of the output image, in pixels.
904
+ * @default 1024
905
+ */
906
+ output_resolution?: number;
907
+ /** @description Negative input prompt. */
908
+ negative_prompt?: string;
909
+ /** @description Use "hosted" to return an image URL hosted on Substrate. You can also provide a URL to a registered [file store](https://docs.substrate.run/reference/external-files). If unset, the image data will be returned as a base64-encoded string. */
910
+ store?: string;
911
+ /**
912
+ * Format: float
913
+ * @description Controls the strength of the generation process.
914
+ * @default 0.8
915
+ */
916
+ strength?: number;
917
+ /** @description Random noise seeds. Default is random seeds for each generation. */
918
+ seeds?: number[];
919
+ };
920
+ /** StableDiffusionXLInpaintOut */
921
+ StableDiffusionXLInpaintOut: {
922
+ /** @description Generated images. */
923
+ outputs: {
924
+ /** @description Base 64-encoded JPEG image bytes, or a hosted image url if `store` is provided. */
925
+ image_uri: string;
926
+ /** @description The random noise seed used for generation. */
927
+ seed: number;
928
+ }[];
929
+ };
930
+ /** BoundingBox */
931
+ BoundingBox: {
932
+ /**
933
+ * Format: float
934
+ * @description Top left corner x.
935
+ */
936
+ x1: number;
937
+ /**
938
+ * Format: float
939
+ * @description Top left corner y.
940
+ */
941
+ y1: number;
942
+ /**
943
+ * Format: float
944
+ * @description Bottom right corner x.
945
+ */
946
+ x2: number;
947
+ /**
948
+ * Format: float
949
+ * @description Bottom right corner y.
950
+ */
951
+ y2: number;
952
+ };
953
+ /** Point */
954
+ Point: {
955
+ /** @description X position. */
956
+ x: number;
957
+ /** @description Y position. */
958
+ y: number;
959
+ };
960
+ /** EraseImageIn */
961
+ EraseImageIn: {
962
+ /** @description Input image. */
963
+ image_uri: string;
964
+ /** @description Mask image that controls which pixels are inpainted. */
965
+ mask_image_uri: string;
966
+ /** @description Use "hosted" to return an image URL hosted on Substrate. You can also provide a URL to a registered [file store](https://docs.substrate.run/reference/external-files). If unset, the image data will be returned as a base64-encoded string. */
967
+ store?: string;
968
+ };
969
+ /** EraseImageOut */
970
+ EraseImageOut: {
971
+ /** @description Base 64-encoded JPEG image bytes, or a hosted image url if `store` is provided. */
972
+ image_uri: string;
973
+ };
974
+ /** BigLaMaIn */
975
+ BigLaMaIn: {
976
+ /** @description Input image. */
977
+ image_uri: string;
978
+ /** @description Mask image that controls which pixels are inpainted. */
979
+ mask_image_uri: string;
980
+ /** @description Use "hosted" to return an image URL hosted on Substrate. You can also provide a URL to a registered [file store](https://docs.substrate.run/reference/external-files). If unset, the image data will be returned as a base64-encoded string. */
981
+ store?: string;
982
+ };
983
+ /** BigLaMaOut */
984
+ BigLaMaOut: {
985
+ /** @description Base 64-encoded JPEG image bytes, or a hosted image url if `store` is provided. */
986
+ image_uri: string;
987
+ };
988
+ /** RemoveBackgroundIn */
989
+ RemoveBackgroundIn: {
990
+ /** @description Input image. */
991
+ image_uri: string;
992
+ /**
993
+ * @description Return a mask image instead of the original content.
994
+ * @default false
995
+ */
996
+ return_mask?: boolean;
997
+ /**
998
+ * @description Invert the mask image. Only takes effect if `return_mask` is true.
999
+ * @default false
1000
+ */
1001
+ invert_mask?: boolean;
1002
+ /** @description Hex value background color. Transparent if unset. */
1003
+ background_color?: string;
1004
+ /** @description Use "hosted" to return an image URL hosted on Substrate. You can also provide a URL to a registered [file store](https://docs.substrate.run/reference/external-files). If unset, the image data will be returned as a base64-encoded string. */
1005
+ store?: string;
1006
+ };
1007
+ /** RemoveBackgroundOut */
1008
+ RemoveBackgroundOut: {
1009
+ /** @description Base 64-encoded JPEG image bytes, or a hosted image url if `store` is provided. */
1010
+ image_uri: string;
1011
+ };
1012
+ /** DISISNetIn */
1013
+ DISISNetIn: {
1014
+ /** @description Input image. */
1015
+ image_uri: string;
1016
+ /** @description Use "hosted" to return an image URL hosted on Substrate. You can also provide a URL to a registered [file store](https://docs.substrate.run/reference/external-files). If unset, the image data will be returned as a base64-encoded string. */
1017
+ store?: string;
1018
+ };
1019
+ /** DISISNetOut */
1020
+ DISISNetOut: {
1021
+ /** @description Base 64-encoded JPEG image bytes, or a hosted image url if `store` is provided. */
1022
+ image_uri: string;
1023
+ };
1024
+ /** UpscaleImageIn */
1025
+ UpscaleImageIn: {
1026
+ /** @description Prompt to guide model on the content of image to upscale. */
1027
+ prompt?: string;
1028
+ /** @description Input image. */
1029
+ image_uri: string;
1030
+ /**
1031
+ * @description Resolution of the output image, in pixels.
1032
+ * @default 1024
1033
+ */
1034
+ output_resolution?: number;
1035
+ /** @description Use "hosted" to return an image URL hosted on Substrate. You can also provide a URL to a registered [file store](https://docs.substrate.run/reference/external-files). If unset, the image data will be returned as a base64-encoded string. */
1036
+ store?: string;
1037
+ };
1038
+ /** UpscaleImageOut */
1039
+ UpscaleImageOut: {
1040
+ /** @description Base 64-encoded JPEG image bytes, or a hosted image url if `store` is provided. */
1041
+ image_uri: string;
1042
+ };
1043
+ /** SegmentUnderPointIn */
1044
+ SegmentUnderPointIn: {
1045
+ /** @description Input image. */
1046
+ image_uri: string;
1047
+ /** Point */
1048
+ point: {
1049
+ /** @description X position. */
1050
+ x: number;
1051
+ /** @description Y position. */
1052
+ y: number;
1053
+ };
1054
+ /** @description Use "hosted" to return an image URL hosted on Substrate. You can also provide a URL to a registered [file store](https://docs.substrate.run/reference/external-files). If unset, the image data will be returned as a base64-encoded string. */
1055
+ store?: string;
1056
+ };
1057
+ /** SegmentUnderPointOut */
1058
+ SegmentUnderPointOut: {
1059
+ /** @description Detected segments in 'mask image' format. Base 64-encoded JPEG image bytes, or a hosted image url if `store` is provided. */
1060
+ mask_image_uri: string;
1061
+ };
1062
+ /** SegmentAnythingIn */
1063
+ SegmentAnythingIn: {
1064
+ /** @description Input image. */
1065
+ image_uri: string;
1066
+ /** @description Point prompts, to detect a segment under the point. One of `point_prompts` or `box_prompts` must be set. */
1067
+ point_prompts?: {
1068
+ /** @description X position. */
1069
+ x: number;
1070
+ /** @description Y position. */
1071
+ y: number;
1072
+ }[];
1073
+ /** @description Box prompts, to detect a segment within the bounding box. One of `point_prompts` or `box_prompts` must be set. */
1074
+ box_prompts?: {
1075
+ /**
1076
+ * Format: float
1077
+ * @description Top left corner x.
1078
+ */
1079
+ x1: number;
1080
+ /**
1081
+ * Format: float
1082
+ * @description Top left corner y.
1083
+ */
1084
+ y1: number;
1085
+ /**
1086
+ * Format: float
1087
+ * @description Bottom right corner x.
1088
+ */
1089
+ x2: number;
1090
+ /**
1091
+ * Format: float
1092
+ * @description Bottom right corner y.
1093
+ */
1094
+ y2: number;
1095
+ }[];
1096
+ /** @description Use "hosted" to return an image URL hosted on Substrate. You can also provide a URL to a registered [file store](https://docs.substrate.run/reference/external-files). If unset, the image data will be returned as a base64-encoded string. */
1097
+ store?: string;
1098
+ };
1099
+ /** SegmentAnythingOut */
1100
+ SegmentAnythingOut: {
1101
+ /** @description Detected segments in 'mask image' format. Base 64-encoded JPEG image bytes, or a hosted image url if `store` is provided. */
1102
+ mask_image_uri: string;
1103
+ };
1104
+ /** TranscribeSpeechIn */
1105
+ TranscribeSpeechIn: {
1106
+ /** @description Input audio. */
1107
+ audio_uri: string;
1108
+ /** @description Prompt to guide model on the content and context of input audio. */
1109
+ prompt?: string;
1110
+ /**
1111
+ * @description Language of input audio in [ISO-639-1](https://en.wikipedia.org/wiki/List_of_ISO_639_language_codes) format.
1112
+ * @default en
1113
+ */
1114
+ language?: string;
1115
+ /**
1116
+ * @description Segment the text into sentences with approximate timestamps.
1117
+ * @default false
1118
+ */
1119
+ segment?: boolean;
1120
+ /**
1121
+ * @description Align transcription to produce more accurate sentence-level timestamps and word-level timestamps. An array of word segments will be included in each sentence segment.
1122
+ * @default false
1123
+ */
1124
+ align?: boolean;
1125
+ /**
1126
+ * @description Identify speakers for each segment. Speaker IDs will be included in each segment.
1127
+ * @default false
1128
+ */
1129
+ diarize?: boolean;
1130
+ /**
1131
+ * @description Suggest automatic chapter markers.
1132
+ * @default false
1133
+ */
1134
+ suggest_chapters?: boolean;
1135
+ };
1136
+ /** TranscribedWord */
1137
+ TranscribedWord: {
1138
+ /** @description Text of word. */
1139
+ word: string;
1140
+ /**
1141
+ * Format: float
1142
+ * @description Start time of word, in seconds.
1143
+ */
1144
+ start?: number;
1145
+ /**
1146
+ * Format: float
1147
+ * @description End time of word, in seconds.
1148
+ */
1149
+ end?: number;
1150
+ /** @description ID of speaker, if `diarize` is enabled. */
1151
+ speaker?: string;
1152
+ };
1153
+ /** TranscribedSegment */
1154
+ TranscribedSegment: {
1155
+ /** @description Text of segment. */
1156
+ text: string;
1157
+ /**
1158
+ * Format: float
1159
+ * @description Start time of segment, in seconds.
1160
+ */
1161
+ start: number;
1162
+ /**
1163
+ * Format: float
1164
+ * @description End time of segment, in seconds.
1165
+ */
1166
+ end: number;
1167
+ /** @description ID of speaker, if `diarize` is enabled. */
1168
+ speaker?: string;
1169
+ /** @description Aligned words, if `align` is enabled. */
1170
+ words?: {
1171
+ /** @description Text of word. */
1172
+ word: string;
1173
+ /**
1174
+ * Format: float
1175
+ * @description Start time of word, in seconds.
1176
+ */
1177
+ start?: number;
1178
+ /**
1179
+ * Format: float
1180
+ * @description End time of word, in seconds.
1181
+ */
1182
+ end?: number;
1183
+ /** @description ID of speaker, if `diarize` is enabled. */
1184
+ speaker?: string;
1185
+ }[];
1186
+ };
1187
+ /** ChapterMarker */
1188
+ ChapterMarker: {
1189
+ /** @description Chapter title. */
1190
+ title: string;
1191
+ /**
1192
+ * Format: float
1193
+ * @description Start time of chapter, in seconds.
1194
+ */
1195
+ start: number;
1196
+ };
1197
+ /** TranscribeSpeechOut */
1198
+ TranscribeSpeechOut: {
1199
+ /** @description Transcribed text. */
1200
+ text: string;
1201
+ /** @description Transcribed segments, if `segment` is enabled. */
1202
+ segments?: {
1203
+ /** @description Text of segment. */
1204
+ text: string;
1205
+ /**
1206
+ * Format: float
1207
+ * @description Start time of segment, in seconds.
1208
+ */
1209
+ start: number;
1210
+ /**
1211
+ * Format: float
1212
+ * @description End time of segment, in seconds.
1213
+ */
1214
+ end: number;
1215
+ /** @description ID of speaker, if `diarize` is enabled. */
1216
+ speaker?: string;
1217
+ /** @description Aligned words, if `align` is enabled. */
1218
+ words?: {
1219
+ /** @description Text of word. */
1220
+ word: string;
1221
+ /**
1222
+ * Format: float
1223
+ * @description Start time of word, in seconds.
1224
+ */
1225
+ start?: number;
1226
+ /**
1227
+ * Format: float
1228
+ * @description End time of word, in seconds.
1229
+ */
1230
+ end?: number;
1231
+ /** @description ID of speaker, if `diarize` is enabled. */
1232
+ speaker?: string;
1233
+ }[];
1234
+ }[];
1235
+ /** @description Chapter markers, if `suggest_chapters` is enabled. */
1236
+ chapters?: {
1237
+ /** @description Chapter title. */
1238
+ title: string;
1239
+ /**
1240
+ * Format: float
1241
+ * @description Start time of chapter, in seconds.
1242
+ */
1243
+ start: number;
1244
+ }[];
1245
+ };
1246
+ /** GenerateSpeechIn */
1247
+ GenerateSpeechIn: {
1248
+ /** @description Input text. */
1249
+ text: string;
1250
+ /** @description Use "hosted" to return an audio URL hosted on Substrate. You can also provide a URL to a registered [file store](https://docs.substrate.run/reference/external-files). If unset, the audio data will be returned as a base64-encoded string. */
1251
+ store?: string;
1252
+ };
1253
+ /** GenerateSpeechOut */
1254
+ GenerateSpeechOut: {
1255
+ /** @description Base 64-encoded WAV audio bytes, or a hosted audio url if `store` is provided. */
1256
+ audio_uri: string;
1257
+ };
1258
+ /** XTTSV2In */
1259
+ XTTSV2In: {
1260
+ /** @description Input text. */
1261
+ text: string;
1262
+ /** @description Reference audio used to synthesize the speaker. If unset, a default speaker voice will be used. */
1263
+ audio_uri?: string;
1264
+ /**
1265
+ * @description Language of input text. Supported languages: `en, de, fr, es, it, pt, pl, zh, ar, cs, ru, nl, tr, hu, ko`.
1266
+ * @default en
1267
+ */
1268
+ language?: string;
1269
+ /** @description Use "hosted" to return an audio URL hosted on Substrate. You can also provide a URL to a registered [file store](https://docs.substrate.run/reference/external-files). If unset, the audio data will be returned as a base64-encoded string. */
1270
+ store?: string;
1271
+ };
1272
+ /** XTTSV2Out */
1273
+ XTTSV2Out: {
1274
+ /** @description Base 64-encoded WAV audio bytes, or a hosted audio url if `store` is provided. */
1275
+ audio_uri: string;
1276
+ };
1277
+ /** Embedding */
1278
+ Embedding: {
1279
+ /** @description Embedding vector. */
1280
+ vector: number[];
1281
+ /** @description Vector store document ID. */
1282
+ doc_id?: string;
1283
+ /** @description Vector store document metadata. */
1284
+ metadata?: {
1285
+ [key: string]: unknown;
1286
+ };
1287
+ };
1288
+ /** EmbedTextIn */
1289
+ EmbedTextIn: {
1290
+ /** @description Text to embed. */
1291
+ text: string;
1292
+ /** @description Vector store name. */
1293
+ collection_name?: string;
1294
+ /** @description Metadata that can be used to query the vector store. Ignored if `collection_name` is unset. */
1295
+ metadata?: {
1296
+ [key: string]: unknown;
1297
+ };
1298
+ /** @description Choose keys from `metadata` to embed with text. */
1299
+ embedded_metadata_keys?: string[];
1300
+ /** @description Vector store document ID. Ignored if `store` is unset. */
1301
+ doc_id?: string;
1302
+ /**
1303
+ * @description Selected embedding model.
1304
+ * @default jina-v2
1305
+ * @enum {string}
1306
+ */
1307
+ model?: "jina-v2" | "clip";
1308
+ };
1309
+ /** EmbedTextOut */
1310
+ EmbedTextOut: {
1311
+ /** Embedding */
1312
+ embedding: {
1313
+ /** @description Embedding vector. */
1314
+ vector: number[];
1315
+ /** @description Vector store document ID. */
1316
+ doc_id?: string;
1317
+ /** @description Vector store document metadata. */
1318
+ metadata?: {
1319
+ [key: string]: unknown;
1320
+ };
1321
+ };
1322
+ };
1323
+ /** EmbedTextItem */
1324
+ EmbedTextItem: {
1325
+ /** @description Text to embed. */
1326
+ text: string;
1327
+ /** @description Metadata that can be used to query the vector store. Ignored if `collection_name` is unset. */
1328
+ metadata?: {
1329
+ [key: string]: unknown;
1330
+ };
1331
+ /** @description Vector store document ID. Ignored if `collection_name` is unset. */
1332
+ doc_id?: string;
1333
+ };
1334
+ /** MultiEmbedTextIn */
1335
+ MultiEmbedTextIn: {
1336
+ /** @description Items to embed. */
1337
+ items: {
1338
+ /** @description Text to embed. */
1339
+ text: string;
1340
+ /** @description Metadata that can be used to query the vector store. Ignored if `collection_name` is unset. */
1341
+ metadata?: {
1342
+ [key: string]: unknown;
1343
+ };
1344
+ /** @description Vector store document ID. Ignored if `collection_name` is unset. */
1345
+ doc_id?: string;
1346
+ }[];
1347
+ /** @description Vector store name. */
1348
+ collection_name?: string;
1349
+ /** @description Choose keys from `metadata` to embed with text. */
1350
+ embedded_metadata_keys?: string[];
1351
+ /**
1352
+ * @description Selected embedding model.
1353
+ * @default jina-v2
1354
+ * @enum {string}
1355
+ */
1356
+ model?: "jina-v2" | "clip";
1357
+ };
1358
+ /** MultiEmbedTextOut */
1359
+ MultiEmbedTextOut: {
1360
+ /** @description Generated embeddings. */
1361
+ embeddings: {
1362
+ /** @description Embedding vector. */
1363
+ vector: number[];
1364
+ /** @description Vector store document ID. */
1365
+ doc_id?: string;
1366
+ /** @description Vector store document metadata. */
1367
+ metadata?: {
1368
+ [key: string]: unknown;
1369
+ };
1370
+ }[];
1371
+ };
1372
+ /** JinaV2In */
1373
+ JinaV2In: {
1374
+ /** @description Items to embed. */
1375
+ items: {
1376
+ /** @description Text to embed. */
1377
+ text: string;
1378
+ /** @description Metadata that can be used to query the vector store. Ignored if `collection_name` is unset. */
1379
+ metadata?: {
1380
+ [key: string]: unknown;
1381
+ };
1382
+ /** @description Vector store document ID. Ignored if `collection_name` is unset. */
1383
+ doc_id?: string;
1384
+ }[];
1385
+ /** @description Vector store name. */
1386
+ collection_name?: string;
1387
+ /** @description Choose keys from `metadata` to embed with text. */
1388
+ embedded_metadata_keys?: string[];
1389
+ };
1390
+ /** JinaV2Out */
1391
+ JinaV2Out: {
1392
+ /** @description Generated embeddings. */
1393
+ embeddings: {
1394
+ /** @description Embedding vector. */
1395
+ vector: number[];
1396
+ /** @description Vector store document ID. */
1397
+ doc_id?: string;
1398
+ /** @description Vector store document metadata. */
1399
+ metadata?: {
1400
+ [key: string]: unknown;
1401
+ };
1402
+ }[];
1403
+ };
1404
+ /** EmbedImageIn */
1405
+ EmbedImageIn: {
1406
+ /** @description Image to embed. */
1407
+ image_uri: string;
1408
+ /** @description Vector store name. */
1409
+ collection_name?: string;
1410
+ /** @description Vector store document ID. Ignored if `collection_name` is unset. */
1411
+ doc_id?: string;
1412
+ /**
1413
+ * @description Selected embedding model.
1414
+ * @default clip
1415
+ * @enum {string}
1416
+ */
1417
+ model?: "clip";
1418
+ };
1419
+ /** EmbedImageOut */
1420
+ EmbedImageOut: {
1421
+ /** Embedding */
1422
+ embedding: {
1423
+ /** @description Embedding vector. */
1424
+ vector: number[];
1425
+ /** @description Vector store document ID. */
1426
+ doc_id?: string;
1427
+ /** @description Vector store document metadata. */
1428
+ metadata?: {
1429
+ [key: string]: unknown;
1430
+ };
1431
+ };
1432
+ };
1433
+ /** EmbedImageItem */
1434
+ EmbedImageItem: {
1435
+ /** @description Image to embed. */
1436
+ image_uri: string;
1437
+ /** @description Vector store document ID. Ignored if `collection_name` is unset. */
1438
+ doc_id?: string;
1439
+ };
1440
+ /** EmbedTextOrImageItem */
1441
+ EmbedTextOrImageItem: {
1442
+ /** @description Image to embed. */
1443
+ image_uri?: string;
1444
+ /** @description Text to embed. */
1445
+ text?: string;
1446
+ /** @description Metadata that can be used to query the vector store. Ignored if `collection_name` is unset. */
1447
+ metadata?: {
1448
+ [key: string]: unknown;
1449
+ };
1450
+ /** @description Vector store document ID. Ignored if `collection_name` is unset. */
1451
+ doc_id?: string;
1452
+ };
1453
+ /** MultiEmbedImageIn */
1454
+ MultiEmbedImageIn: {
1455
+ /** @description Items to embed. */
1456
+ items: {
1457
+ /** @description Image to embed. */
1458
+ image_uri: string;
1459
+ /** @description Vector store document ID. Ignored if `collection_name` is unset. */
1460
+ doc_id?: string;
1461
+ }[];
1462
+ /** @description Vector store name. */
1463
+ collection_name?: string;
1464
+ /**
1465
+ * @description Selected embedding model.
1466
+ * @default clip
1467
+ * @enum {string}
1468
+ */
1469
+ model?: "clip";
1470
+ };
1471
+ /** MultiEmbedImageOut */
1472
+ MultiEmbedImageOut: {
1473
+ /** @description Generated embeddings. */
1474
+ embeddings: {
1475
+ /** @description Embedding vector. */
1476
+ vector: number[];
1477
+ /** @description Vector store document ID. */
1478
+ doc_id?: string;
1479
+ /** @description Vector store document metadata. */
1480
+ metadata?: {
1481
+ [key: string]: unknown;
1482
+ };
1483
+ }[];
1484
+ };
1485
+ /** CLIPIn */
1486
+ CLIPIn: {
1487
+ /** @description Items to embed. */
1488
+ items: {
1489
+ /** @description Image to embed. */
1490
+ image_uri?: string;
1491
+ /** @description Text to embed. */
1492
+ text?: string;
1493
+ /** @description Metadata that can be used to query the vector store. Ignored if `collection_name` is unset. */
1494
+ metadata?: {
1495
+ [key: string]: unknown;
1496
+ };
1497
+ /** @description Vector store document ID. Ignored if `collection_name` is unset. */
1498
+ doc_id?: string;
1499
+ }[];
1500
+ /** @description Vector store name. */
1501
+ collection_name?: string;
1502
+ /** @description Choose keys from `metadata` to embed with text. Only applies to text items. */
1503
+ embedded_metadata_keys?: string[];
1504
+ };
1505
+ /** CLIPOut */
1506
+ CLIPOut: {
1507
+ /** @description Generated embeddings. */
1508
+ embeddings: {
1509
+ /** @description Embedding vector. */
1510
+ vector: number[];
1511
+ /** @description Vector store document ID. */
1512
+ doc_id?: string;
1513
+ /** @description Vector store document metadata. */
1514
+ metadata?: {
1515
+ [key: string]: unknown;
1516
+ };
1517
+ }[];
1518
+ };
1519
+ /** FindOrCreateVectorStoreIn */
1520
+ FindOrCreateVectorStoreIn: {
1521
+ /** @description Vector store name. */
1522
+ collection_name: string;
1523
+ /**
1524
+ * @description Selected embedding model.
1525
+ * @enum {string}
1526
+ */
1527
+ model: "jina-v2" | "clip";
1528
+ };
1529
+ /** FindOrCreateVectorStoreOut */
1530
+ FindOrCreateVectorStoreOut: {
1531
+ /** @description Vector store name. */
1532
+ collection_name: string;
1533
+ /**
1534
+ * @description Selected embedding model.
1535
+ * @enum {string}
1536
+ */
1537
+ model: "jina-v2" | "clip";
1538
+ /** @description Number of leaves in the vector store. */
1539
+ num_leaves?: number;
1540
+ };
1541
+ /** ListVectorStoresIn */
1542
+ ListVectorStoresIn: Record<string, never>;
1543
+ /** ListVectorStoresOut */
1544
+ ListVectorStoresOut: {
1545
+ /** @description List of vector stores. */
1546
+ items?: {
1547
+ /** @description Vector store name. */
1548
+ collection_name: string;
1549
+ /**
1550
+ * @description Selected embedding model.
1551
+ * @enum {string}
1552
+ */
1553
+ model: "jina-v2" | "clip";
1554
+ /** @description Number of leaves in the vector store. */
1555
+ num_leaves?: number;
1556
+ }[];
1557
+ };
1558
+ /** DeleteVectorStoreIn */
1559
+ DeleteVectorStoreIn: {
1560
+ /** @description Vector store name. */
1561
+ collection_name: string;
1562
+ /**
1563
+ * @description Selected embedding model.
1564
+ * @enum {string}
1565
+ */
1566
+ model: "jina-v2" | "clip";
1567
+ };
1568
+ /** DeleteVectorStoreOut */
1569
+ DeleteVectorStoreOut: {
1570
+ /** @description Vector store name. */
1571
+ collection_name: string;
1572
+ /**
1573
+ * @description Selected embedding model.
1574
+ * @enum {string}
1575
+ */
1576
+ model: "jina-v2" | "clip";
1577
+ };
1578
+ /**
1579
+ * Vector
1580
+ * @description Canonical representation of document with embedding vector.
1581
+ */
1582
+ Vector: {
1583
+ /** @description Document ID. */
1584
+ id: string;
1585
+ /** @description Embedding vector. */
1586
+ vector: number[];
1587
+ /** @description Document metadata. */
1588
+ metadata: {
1589
+ [key: string]: unknown;
1590
+ };
1591
+ };
1592
+ /** FetchVectorsIn */
1593
+ FetchVectorsIn: {
1594
+ /** @description Vector store name. */
1595
+ collection_name: string;
1596
+ /**
1597
+ * @description Selected embedding model.
1598
+ * @enum {string}
1599
+ */
1600
+ model: "jina-v2" | "clip";
1601
+ /** @description Document IDs to retrieve. */
1602
+ ids: string[];
1603
+ };
1604
+ /** FetchVectorsOut */
1605
+ FetchVectorsOut: {
1606
+ /** @description Retrieved vectors. */
1607
+ vectors: {
1608
+ /** @description Document ID. */
1609
+ id: string;
1610
+ /** @description Embedding vector. */
1611
+ vector: number[];
1612
+ /** @description Document metadata. */
1613
+ metadata: {
1614
+ [key: string]: unknown;
1615
+ };
1616
+ }[];
1617
+ };
1618
+ /** UpdateVectorsOut */
1619
+ UpdateVectorsOut: {
1620
+ /** @description Number of vectors modified. */
1621
+ count: number;
1622
+ };
1623
+ /** DeleteVectorsOut */
1624
+ DeleteVectorsOut: {
1625
+ /** @description Number of vectors modified. */
1626
+ count: number;
1627
+ };
1628
+ /** UpdateVectorParams */
1629
+ UpdateVectorParams: {
1630
+ /** @description Document ID. */
1631
+ id: string;
1632
+ /** @description Embedding vector. */
1633
+ vector?: number[];
1634
+ /** @description Document metadata. */
1635
+ metadata?: {
1636
+ [key: string]: unknown;
1637
+ };
1638
+ };
1639
+ /** UpdateVectorsIn */
1640
+ UpdateVectorsIn: {
1641
+ /** @description Vector store name. */
1642
+ collection_name: string;
1643
+ /**
1644
+ * @description Selected embedding model.
1645
+ * @enum {string}
1646
+ */
1647
+ model: "jina-v2" | "clip";
1648
+ /** @description Vectors to upsert. */
1649
+ vectors: {
1650
+ /** @description Document ID. */
1651
+ id: string;
1652
+ /** @description Embedding vector. */
1653
+ vector?: number[];
1654
+ /** @description Document metadata. */
1655
+ metadata?: {
1656
+ [key: string]: unknown;
1657
+ };
1658
+ }[];
1659
+ };
1660
+ /** DeleteVectorsIn */
1661
+ DeleteVectorsIn: {
1662
+ /** @description Vector store name. */
1663
+ collection_name: string;
1664
+ /**
1665
+ * @description Selected embedding model.
1666
+ * @enum {string}
1667
+ */
1668
+ model: "jina-v2" | "clip";
1669
+ /** @description Document IDs to delete. */
1670
+ ids: string[];
1671
+ };
1672
+ /** QueryVectorStoreIn */
1673
+ QueryVectorStoreIn: {
1674
+ /** @description Vector store to query against. */
1675
+ collection_name: string;
1676
+ /**
1677
+ * @description Selected embedding model.
1678
+ * @enum {string}
1679
+ */
1680
+ model: "jina-v2" | "clip";
1681
+ /** @description Texts to embed and use for the query. */
1682
+ query_strings?: string[];
1683
+ /** @description Image URIs to embed and use for the query. */
1684
+ query_image_uris?: string[];
1685
+ /** @description Vectors to use for the query. */
1686
+ query_vectors?: number[][];
1687
+ /** @description Document IDs to use for the query. */
1688
+ query_ids?: string[];
1689
+ /**
1690
+ * @description Number of results to return.
1691
+ * @default 10
1692
+ */
1693
+ top_k?: number;
1694
+ /**
1695
+ * @description The size of the dynamic candidate list for searching the index graph.
1696
+ * @default 40
1697
+ */
1698
+ ef_search?: number;
1699
+ /**
1700
+ * @description The number of leaves in the index tree to search.
1701
+ * @default 40
1702
+ */
1703
+ num_leaves_to_search?: number;
1704
+ /**
1705
+ * @description Include the values of the vectors in the response.
1706
+ * @default false
1707
+ */
1708
+ include_values?: boolean;
1709
+ /**
1710
+ * @description Include the metadata of the vectors in the response.
1711
+ * @default false
1712
+ */
1713
+ include_metadata?: boolean;
1714
+ /** @description Filter metadata by key-value pairs. */
1715
+ filters?: {
1716
+ [key: string]: unknown;
1717
+ };
1718
+ };
1719
+ /** VectorStoreQueryResult */
1720
+ VectorStoreQueryResult: {
1721
+ /** @description Document ID. */
1722
+ id: string;
1723
+ /**
1724
+ * Format: float
1725
+ * @description Similarity score.
1726
+ */
1727
+ distance: number;
1728
+ /** @description Embedding vector. */
1729
+ vector?: number[];
1730
+ /** @description Document metadata. */
1731
+ metadata?: {
1732
+ [key: string]: unknown;
1733
+ };
1734
+ };
1735
+ /** QueryVectorStoreOut */
1736
+ QueryVectorStoreOut: {
1737
+ /** @description Query results. */
1738
+ results: {
1739
+ /** @description Document ID. */
1740
+ id: string;
1741
+ /**
1742
+ * Format: float
1743
+ * @description Similarity score.
1744
+ */
1745
+ distance: number;
1746
+ /** @description Embedding vector. */
1747
+ vector?: number[];
1748
+ /** @description Document metadata. */
1749
+ metadata?: {
1750
+ [key: string]: unknown;
1751
+ };
1752
+ }[][];
1753
+ /** @description Vector store name. */
1754
+ collection_name?: string;
1755
+ /**
1756
+ * @description Selected embedding model.
1757
+ * @enum {string}
1758
+ */
1759
+ model?: "jina-v2" | "clip";
1760
+ };
1761
+ /** SplitDocumentIn */
1762
+ SplitDocumentIn: {
1763
+ /** @description URI of the document. */
1764
+ uri: string;
1765
+ /** @description Document ID. */
1766
+ doc_id?: string;
1767
+ /** @description Document metadata. */
1768
+ metadata?: {
1769
+ [key: string]: unknown;
1770
+ };
1771
+ /** @description Maximum number of units per chunk. Defaults to 1024 tokens for text or 40 lines for code. */
1772
+ chunk_size?: number;
1773
+ /** @description Number of units to overlap between chunks. Defaults to 200 tokens for text or 15 lines for code. */
1774
+ chunk_overlap?: number;
1775
+ };
1776
+ /** SplitDocumentOut */
1777
+ SplitDocumentOut: {
1778
+ /** @description Document chunks */
1779
+ items: {
1780
+ /** @description Text to embed. */
1781
+ text: string;
1782
+ /** @description Metadata that can be used to query the vector store. Ignored if `collection_name` is unset. */
1783
+ metadata?: {
1784
+ [key: string]: unknown;
1785
+ };
1786
+ /** @description Vector store document ID. Ignored if `collection_name` is unset. */
1787
+ doc_id?: string;
1788
+ }[];
1789
+ };
1790
+ };
1791
+ responses: never;
1792
+ parameters: never;
1793
+ requestBodies: never;
1794
+ headers: never;
1795
+ pathItems: never;
1796
+ }
1797
+
1798
+ type JQCompatible = Record<string, unknown> | any[] | string | number;
1799
+ type JQDirectiveTarget = Future<any> | JQCompatible;
1800
+ type FutureTypeMap = {
1801
+ string: FutureString;
1802
+ object: FutureAnyObject;
1803
+ number: FutureNumber;
1804
+ boolean: FutureBoolean;
1805
+ };
1806
+ declare abstract class Directive {
1807
+ abstract items: any[];
1808
+ abstract next(...args: any[]): Directive;
1809
+ abstract toJSON(): any;
1810
+ abstract result(): Promise<any>;
1811
+ referencedFutures(): Future<any>[];
1812
+ }
1813
+ declare abstract class Future<T> {
1814
+ protected _directive: Directive;
1815
+ protected _id: string;
1816
+ constructor(directive: Directive, id?: string);
1817
+ protected referencedFutures(): Future<any>[];
1818
+ protected toPlaceholder(): {
1819
+ __$$SB_GRAPH_OP_ID$$__: string;
1820
+ };
1821
+ protected _result(): Promise<T>;
1822
+ static jq<T extends keyof FutureTypeMap>(future: JQDirectiveTarget, query: string, futureType?: keyof FutureTypeMap): FutureTypeMap[T];
1823
+ toJSON(): {
1824
+ id: string;
1825
+ directive: any;
1826
+ };
1827
+ }
1828
+ declare class FutureBoolean extends Future<boolean> {
1829
+ }
1830
+ declare class FutureString extends Future<string> {
1831
+ static concat(...items: (string | FutureString)[]): FutureString;
1832
+ static interpolate(strings: TemplateStringsArray, ...exprs: ({
1833
+ toString(): string;
1834
+ } | FutureString)[]): FutureString;
1835
+ concat(...items: (string | FutureString)[]): FutureString;
1836
+ protected _result(): Promise<string>;
1837
+ }
1838
+ declare class FutureNumber extends Future<number> {
1839
+ }
1840
+ declare abstract class FutureArray extends Future<any[] | FutureArray> {
1841
+ abstract at(index: number): Future<any>;
1842
+ protected _result(): Promise<any[] | FutureArray>;
1843
+ }
1844
+ declare abstract class FutureObject extends Future<Object> {
1845
+ get(path: string): Future<any>;
1846
+ protected _result(): Promise<Object>;
1847
+ }
1848
+ declare class FutureAnyObject extends Future<Object> {
1849
+ get(path: string | FutureString): FutureAnyObject;
1850
+ at(index: number | FutureNumber): FutureAnyObject;
1851
+ protected _result(): Promise<Object>;
1852
+ }
1853
+
1854
+ /**
1855
+ * Response to a run request.
1856
+ */
1857
+ declare class SubstrateResponse {
1858
+ apiRequest: Request;
1859
+ apiResponse: Response;
1860
+ json: any;
1861
+ constructor(request: Request, response: Response, json?: any);
1862
+ get requestId(): string | null;
1863
+ /**
1864
+ * Returns an error from the `Node` if there was one.
1865
+ */
1866
+ getError<T extends AnyNode>(node: T): NodeError$1 | undefined;
1867
+ /**
1868
+ * Returns the result for given `Node`.
1869
+ *
1870
+ * @throws {NodeError} when there was an error running the node.
1871
+ */
1872
+ get<T extends AnyNode>(node: T): NodeOutput<T>;
1873
+ }
1874
+
1875
+ type Options = {
1876
+ /** The id of the node. Default: random id */
1877
+ id?: Node["id"];
1878
+ /** When true the server will omit this node's output. Default: false */
1879
+ hide?: boolean;
1880
+ /** Number of seconds to cache an output for this node's unique inputs. Default: null */
1881
+ cache_age?: number;
1882
+ /** Applies if cache_age > 0. Optionally specify a subset of keys to use when computing a cache key.
1883
+ * Default: all node arguments
1884
+ */
1885
+ cache_keys?: string[];
1886
+ /** Max number of times to retry this node if it fails. Default: null means no retries */
1887
+ max_retries?: number;
1888
+ /** Specify nodes that this node depends on. */
1889
+ depends?: Node[];
1890
+ };
1891
+ declare abstract class Node {
1892
+ /** The id of the node. Default: random id */
1893
+ id: string;
1894
+ /** The type of the node. */
1895
+ node: string;
1896
+ /** Node inputs */
1897
+ args: Object;
1898
+ /** When true the server will omit this node's output. Default: false */
1899
+ hide: boolean;
1900
+ /** Number of seconds to cache an output for this node's unique inputs. Default: null */
1901
+ cache_age?: number;
1902
+ /** Applies if cache_age > 0. Optionally specify a subset of keys to use when computing a cache key.
1903
+ * Default: all node arguments
1904
+ */
1905
+ cache_keys?: string[];
1906
+ /** Max number of times to retry this node if it fails. Default: null means no retries */
1907
+ max_retries?: number;
1908
+ /** Specify nodes that this node depends on. */
1909
+ depends: Node[];
1910
+ /** TODO this field stores the last response, but it's just temporary until the internals are refactored */
1911
+ protected _response: SubstrateResponse | undefined;
1912
+ constructor(args?: Object, opts?: Options);
1913
+ /**
1914
+ * Reference the future output of this node.
1915
+ */
1916
+ get future(): any;
1917
+ protected set response(res: SubstrateResponse);
1918
+ protected output(): any;
1919
+ /**
1920
+ * Return the resolved result for this node.
1921
+ */
1922
+ protected result(): Promise<any>;
1923
+ toJSON(): {
1924
+ _max_retries?: number | undefined;
1925
+ _cache_keys?: string[] | undefined;
1926
+ _cache_age?: number | undefined;
1927
+ id: string;
1928
+ node: string;
1929
+ args: any;
1930
+ _should_output_globally: boolean;
1931
+ };
1932
+ /**
1933
+ * @private
1934
+ * For this node, return all the Futures and other Nodes it has a reference to.
1935
+ */
1936
+ protected references(): {
1937
+ nodes: Set<Node>;
1938
+ futures: Set<Future<any>>;
1939
+ };
1940
+ }
1941
+
1942
+ /**
1943
+ * 𐃏 Substrate
1944
+ * @generated file
1945
+ * 20240617.20240806
1946
+ */
1947
+
1948
+ type FutureExpandScalar<T> = T extends string ? string | FutureString : T extends number ? number | FutureNumber : T extends boolean ? boolean | FutureBoolean : T;
1949
+ type FutureExpandObject<T> = T extends object ? {
1950
+ [P in keyof T]: FutureExpandAny<T[P]>;
1951
+ } | FutureObject : T;
1952
+ type FutureExpandArray<T> = T extends (infer U)[] ? FutureExpandAny<U>[] | FutureArray : FutureExpandAny<T>;
1953
+ type FutureExpandAny<T> = T extends (infer U)[][] ? FutureExpandArray<U>[][] | FutureArray[] : T extends (infer U)[] ? FutureExpandArray<U>[] | FutureArray : T extends object ? FutureExpandObject<T> : FutureExpandScalar<T>;
1954
+ /** Response choices. */
1955
+ declare class MultiComputeTextOutChoices extends FutureArray {
1956
+ /** Returns `ComputeTextOut` at given index. */
1957
+ at(index: number): ComputeTextOut;
1958
+ /** Returns the result for `MultiComputeTextOutChoices` once it's node has been run. */
1959
+ protected _result(): Promise<ComputeTextOut[]>;
1960
+ }
1961
+ /** Batch outputs. */
1962
+ declare class BatchComputeTextOutOutputs extends FutureArray {
1963
+ /** Returns `ComputeTextOut` at given index. */
1964
+ at(index: number): ComputeTextOut;
1965
+ /** Returns the result for `BatchComputeTextOutOutputs` once it's node has been run. */
1966
+ protected _result(): Promise<ComputeTextOut[]>;
1967
+ }
1968
+ /** Response choices. */
1969
+ declare class MultiComputeJSONOutChoices extends FutureArray {
1970
+ /** Returns `ComputeJSONOut` at given index. */
1971
+ at(index: number): ComputeJSONOut;
1972
+ /** Returns the result for `MultiComputeJSONOutChoices` once it's node has been run. */
1973
+ protected _result(): Promise<ComputeJSONOut[]>;
1974
+ }
1975
+ /** Batch outputs. */
1976
+ declare class BatchComputeJSONOutOutputs extends FutureArray {
1977
+ /** Returns `ComputeJSONOut` at given index. */
1978
+ at(index: number): ComputeJSONOut;
1979
+ /** Returns the result for `BatchComputeJSONOutOutputs` once it's node has been run. */
1980
+ protected _result(): Promise<ComputeJSONOut[]>;
1981
+ }
1982
+ /** Response choices. */
1983
+ declare class Mistral7BInstructOutChoices extends FutureArray {
1984
+ /** Returns `Mistral7BInstructChoice` at given index. */
1985
+ at(index: number): Mistral7BInstructChoice;
1986
+ /** Returns the result for `Mistral7BInstructOutChoices` once it's node has been run. */
1987
+ protected _result(): Promise<Mistral7BInstructChoice[]>;
1988
+ }
1989
+ /** Response choices. */
1990
+ declare class Mixtral8x7BInstructOutChoices extends FutureArray {
1991
+ /** Returns `Mixtral8x7BChoice` at given index. */
1992
+ at(index: number): Mixtral8x7BChoice;
1993
+ /** Returns the result for `Mixtral8x7BInstructOutChoices` once it's node has been run. */
1994
+ protected _result(): Promise<Mixtral8x7BChoice[]>;
1995
+ }
1996
+ /** Response choices. */
1997
+ declare class Llama3Instruct8BOutChoices extends FutureArray {
1998
+ /** Returns `Llama3Instruct8BChoice` at given index. */
1999
+ at(index: number): Llama3Instruct8BChoice;
2000
+ /** Returns the result for `Llama3Instruct8BOutChoices` once it's node has been run. */
2001
+ protected _result(): Promise<Llama3Instruct8BChoice[]>;
2002
+ }
2003
+ /** Response choices. */
2004
+ declare class Llama3Instruct70BOutChoices extends FutureArray {
2005
+ /** Returns `Llama3Instruct70BChoice` at given index. */
2006
+ at(index: number): Llama3Instruct70BChoice;
2007
+ /** Returns the result for `Llama3Instruct70BOutChoices` once it's node has been run. */
2008
+ protected _result(): Promise<Llama3Instruct70BChoice[]>;
2009
+ }
2010
+ /** Generated images. */
2011
+ declare class MultiGenerateImageOutOutputs extends FutureArray {
2012
+ /** Returns `GenerateImageOut` at given index. */
2013
+ at(index: number): GenerateImageOut;
2014
+ /** Returns the result for `MultiGenerateImageOutOutputs` once it's node has been run. */
2015
+ protected _result(): Promise<GenerateImageOut[]>;
2016
+ }
2017
+ /** Generated images. */
2018
+ declare class StableDiffusionXLLightningOutOutputs extends FutureArray {
2019
+ /** Returns `StableDiffusionImage` at given index. */
2020
+ at(index: number): StableDiffusionImage;
2021
+ /** Returns the result for `StableDiffusionXLLightningOutOutputs` once it's node has been run. */
2022
+ protected _result(): Promise<StableDiffusionImage[]>;
2023
+ }
2024
+ /** Generated images. */
2025
+ declare class StableDiffusionXLControlNetOutOutputs extends FutureArray {
2026
+ /** Returns `StableDiffusionImage` at given index. */
2027
+ at(index: number): StableDiffusionImage;
2028
+ /** Returns the result for `StableDiffusionXLControlNetOutOutputs` once it's node has been run. */
2029
+ protected _result(): Promise<StableDiffusionImage[]>;
2030
+ }
2031
+ /** Generated frames. */
2032
+ declare class StableVideoDiffusionOutFrameUris extends FutureArray {
2033
+ /** Returns `FutureString` at given index. */
2034
+ at(index: number): FutureString;
2035
+ /** Returns the result for `StableVideoDiffusionOutFrameUris` once it's node has been run. */
2036
+ protected _result(): Promise<FutureString[]>;
2037
+ }
2038
+ /** Output frames. */
2039
+ declare class InterpolateFramesOutFrameUris extends FutureArray {
2040
+ /** Returns `FutureString` at given index. */
2041
+ at(index: number): FutureString;
2042
+ /** Returns the result for `InterpolateFramesOutFrameUris` once it's node has been run. */
2043
+ protected _result(): Promise<FutureString[]>;
2044
+ }
2045
+ /** Generated images. */
2046
+ declare class MultiInpaintImageOutOutputs extends FutureArray {
2047
+ /** Returns `InpaintImageOut` at given index. */
2048
+ at(index: number): InpaintImageOut;
2049
+ /** Returns the result for `MultiInpaintImageOutOutputs` once it's node has been run. */
2050
+ protected _result(): Promise<InpaintImageOut[]>;
2051
+ }
2052
+ /** Generated images. */
2053
+ declare class StableDiffusionXLInpaintOutOutputs extends FutureArray {
2054
+ /** Returns `StableDiffusionImage` at given index. */
2055
+ at(index: number): StableDiffusionImage;
2056
+ /** Returns the result for `StableDiffusionXLInpaintOutOutputs` once it's node has been run. */
2057
+ protected _result(): Promise<StableDiffusionImage[]>;
2058
+ }
2059
+ /** Aligned words, if `align` is enabled. */
2060
+ declare class TranscribedSegmentWords extends FutureArray {
2061
+ /** Returns `TranscribedWord` at given index. */
2062
+ at(index: number): TranscribedWord;
2063
+ /** Returns the result for `TranscribedSegmentWords` once it's node has been run. */
2064
+ protected _result(): Promise<TranscribedWord[]>;
2065
+ }
2066
+ /** Transcribed segments, if `segment` is enabled. */
2067
+ declare class TranscribeSpeechOutSegments extends FutureArray {
2068
+ /** Returns `TranscribedSegment` at given index. */
2069
+ at(index: number): TranscribedSegment;
2070
+ /** Returns the result for `TranscribeSpeechOutSegments` once it's node has been run. */
2071
+ protected _result(): Promise<TranscribedSegment[]>;
2072
+ }
2073
+ /** Chapter markers, if `suggest_chapters` is enabled. */
2074
+ declare class TranscribeSpeechOutChapters extends FutureArray {
2075
+ /** Returns `ChapterMarker` at given index. */
2076
+ at(index: number): ChapterMarker;
2077
+ /** Returns the result for `TranscribeSpeechOutChapters` once it's node has been run. */
2078
+ protected _result(): Promise<ChapterMarker[]>;
2079
+ }
2080
+ /** Embedding vector. */
2081
+ declare class EmbeddingVector extends FutureArray {
2082
+ /** Returns `FutureNumber` at given index. */
2083
+ at(index: number): FutureNumber;
2084
+ /** Returns the result for `EmbeddingVector` once it's node has been run. */
2085
+ protected _result(): Promise<FutureNumber[]>;
2086
+ }
2087
+ /** Generated embeddings. */
2088
+ declare class MultiEmbedTextOutEmbeddings extends FutureArray {
2089
+ /** Returns `Embedding` at given index. */
2090
+ at(index: number): Embedding;
2091
+ /** Returns the result for `MultiEmbedTextOutEmbeddings` once it's node has been run. */
2092
+ protected _result(): Promise<Embedding[]>;
2093
+ }
2094
+ /** Generated embeddings. */
2095
+ declare class JinaV2OutEmbeddings extends FutureArray {
2096
+ /** Returns `Embedding` at given index. */
2097
+ at(index: number): Embedding;
2098
+ /** Returns the result for `JinaV2OutEmbeddings` once it's node has been run. */
2099
+ protected _result(): Promise<Embedding[]>;
2100
+ }
2101
+ /** Generated embeddings. */
2102
+ declare class MultiEmbedImageOutEmbeddings extends FutureArray {
2103
+ /** Returns `Embedding` at given index. */
2104
+ at(index: number): Embedding;
2105
+ /** Returns the result for `MultiEmbedImageOutEmbeddings` once it's node has been run. */
2106
+ protected _result(): Promise<Embedding[]>;
2107
+ }
2108
+ /** Generated embeddings. */
2109
+ declare class CLIPOutEmbeddings extends FutureArray {
2110
+ /** Returns `Embedding` at given index. */
2111
+ at(index: number): Embedding;
2112
+ /** Returns the result for `CLIPOutEmbeddings` once it's node has been run. */
2113
+ protected _result(): Promise<Embedding[]>;
2114
+ }
2115
+ /** List of vector stores. */
2116
+ declare class ListVectorStoresOutItems extends FutureArray {
2117
+ /** Returns `FindOrCreateVectorStoreOut` at given index. */
2118
+ at(index: number): FindOrCreateVectorStoreOut;
2119
+ /** Returns the result for `ListVectorStoresOutItems` once it's node has been run. */
2120
+ protected _result(): Promise<FindOrCreateVectorStoreOut[]>;
2121
+ }
2122
+ /** Embedding vector. */
2123
+ declare class VectorVector extends FutureArray {
2124
+ /** Returns `FutureNumber` at given index. */
2125
+ at(index: number): FutureNumber;
2126
+ /** Returns the result for `VectorVector` once it's node has been run. */
2127
+ protected _result(): Promise<FutureNumber[]>;
2128
+ }
2129
+ /** Retrieved vectors. */
2130
+ declare class FetchVectorsOutVectors extends FutureArray {
2131
+ /** Returns `Vector` at given index. */
2132
+ at(index: number): Vector;
2133
+ /** Returns the result for `FetchVectorsOutVectors` once it's node has been run. */
2134
+ protected _result(): Promise<Vector[]>;
2135
+ }
2136
+ /** Embedding vector. */
2137
+ declare class VectorStoreQueryResultVector extends FutureArray {
2138
+ /** Returns `FutureNumber` at given index. */
2139
+ at(index: number): FutureNumber;
2140
+ /** Returns the result for `VectorStoreQueryResultVector` once it's node has been run. */
2141
+ protected _result(): Promise<FutureNumber[]>;
2142
+ }
2143
+ /** Query results. */
2144
+ declare class QueryVectorStoreOutResults extends FutureArray {
2145
+ /** Returns `QueryVectorStoreOutResultsItem` at given index. */
2146
+ at(index: number): QueryVectorStoreOutResultsItem;
2147
+ /** Returns the result for `QueryVectorStoreOutResults` once it's node has been run. */
2148
+ protected _result(): Promise<QueryVectorStoreOutResultsItem>;
2149
+ }
2150
+ /** QueryVectorStoreOutResultsItem */
2151
+ declare class QueryVectorStoreOutResultsItem extends FutureArray {
2152
+ /** Returns `VectorStoreQueryResult` at given index. */
2153
+ at(index: number): VectorStoreQueryResult;
2154
+ /** Returns the result for `QueryVectorStoreOutResultsItem` once it's node has been run. */
2155
+ protected _result(): Promise<VectorStoreQueryResult[]>;
2156
+ }
2157
+ /** Document chunks */
2158
+ declare class SplitDocumentOutItems extends FutureArray {
2159
+ /** Returns `EmbedTextItem` at given index. */
2160
+ at(index: number): EmbedTextItem;
2161
+ /** Returns the result for `SplitDocumentOutItems` once it's node has been run. */
2162
+ protected _result(): Promise<EmbedTextItem[]>;
2163
+ }
2164
+ /** ExperimentalOut */
2165
+ declare class ExperimentalOut extends FutureObject {
2166
+ /** Response. */
2167
+ get output(): FutureAnyObject;
2168
+ /** returns the result for `ExperimentalOut` once it's node has been run. */
2169
+ protected _result(): Promise<ExperimentalOut>;
2170
+ }
2171
+ /** BoxOut */
2172
+ declare class BoxOut extends FutureObject {
2173
+ /** The evaluated result. */
2174
+ get value(): FutureAnyObject;
2175
+ /** returns the result for `BoxOut` once it's node has been run. */
2176
+ protected _result(): Promise<BoxOut>;
2177
+ }
2178
+ /** IfOut */
2179
+ declare class IfOut extends FutureObject {
2180
+ /** Result. Null if `value_if_false` is not provided and `condition` is false. */
2181
+ get result(): FutureAnyObject;
2182
+ /** returns the result for `IfOut` once it's node has been run. */
2183
+ protected _result(): Promise<IfOut>;
2184
+ }
2185
+ /** ComputeTextOut */
2186
+ declare class ComputeTextOut extends FutureObject {
2187
+ /** Text response. */
2188
+ get text(): FutureString;
2189
+ /** returns the result for `ComputeTextOut` once it's node has been run. */
2190
+ protected _result(): Promise<ComputeTextOut>;
2191
+ }
2192
+ /** ComputeJSONOut */
2193
+ declare class ComputeJSONOut extends FutureObject {
2194
+ /** JSON response. */
2195
+ get json_object(): FutureAnyObject;
2196
+ /** If the model output could not be parsed to JSON, this is the raw text output. */
2197
+ get text(): FutureString;
2198
+ /** returns the result for `ComputeJSONOut` once it's node has been run. */
2199
+ protected _result(): Promise<ComputeJSONOut>;
2200
+ }
2201
+ /** MultiComputeTextOut */
2202
+ declare class MultiComputeTextOut extends FutureObject {
2203
+ /** Response choices. */
2204
+ get choices(): MultiComputeTextOutChoices;
2205
+ /** returns the result for `MultiComputeTextOut` once it's node has been run. */
2206
+ protected _result(): Promise<MultiComputeTextOut>;
2207
+ }
2208
+ /** BatchComputeTextOut */
2209
+ declare class BatchComputeTextOut extends FutureObject {
2210
+ /** Batch outputs. */
2211
+ get outputs(): BatchComputeTextOutOutputs;
2212
+ /** returns the result for `BatchComputeTextOut` once it's node has been run. */
2213
+ protected _result(): Promise<BatchComputeTextOut>;
2214
+ }
2215
+ /** MultiComputeJSONOut */
2216
+ declare class MultiComputeJSONOut extends FutureObject {
2217
+ /** Response choices. */
2218
+ get choices(): MultiComputeJSONOutChoices;
2219
+ /** returns the result for `MultiComputeJSONOut` once it's node has been run. */
2220
+ protected _result(): Promise<MultiComputeJSONOut>;
2221
+ }
2222
+ /** BatchComputeJSONOut */
2223
+ declare class BatchComputeJSONOut extends FutureObject {
2224
+ /** Batch outputs. */
2225
+ get outputs(): BatchComputeJSONOutOutputs;
2226
+ /** returns the result for `BatchComputeJSONOut` once it's node has been run. */
2227
+ protected _result(): Promise<BatchComputeJSONOut>;
2228
+ }
2229
+ /** Mistral7BInstructChoice */
2230
+ declare class Mistral7BInstructChoice extends FutureObject {
2231
+ /** Text response, if `json_schema` was not provided. */
2232
+ get text(): FutureString;
2233
+ /** JSON response, if `json_schema` was provided. */
2234
+ get json_object(): FutureAnyObject;
2235
+ /** returns the result for `Mistral7BInstructChoice` once it's node has been run. */
2236
+ protected _result(): Promise<Mistral7BInstructChoice>;
2237
+ }
2238
+ /** Mistral7BInstructOut */
2239
+ declare class Mistral7BInstructOut extends FutureObject {
2240
+ /** Response choices. */
2241
+ get choices(): Mistral7BInstructOutChoices;
2242
+ /** returns the result for `Mistral7BInstructOut` once it's node has been run. */
2243
+ protected _result(): Promise<Mistral7BInstructOut>;
2244
+ }
2245
+ /** Mixtral8x7BChoice */
2246
+ declare class Mixtral8x7BChoice extends FutureObject {
2247
+ /** Text response, if `json_schema` was not provided. */
2248
+ get text(): FutureString;
2249
+ /** JSON response, if `json_schema` was provided. */
2250
+ get json_object(): FutureAnyObject;
2251
+ /** returns the result for `Mixtral8x7BChoice` once it's node has been run. */
2252
+ protected _result(): Promise<Mixtral8x7BChoice>;
2253
+ }
2254
+ /** Mixtral8x7BInstructOut */
2255
+ declare class Mixtral8x7BInstructOut extends FutureObject {
2256
+ /** Response choices. */
2257
+ get choices(): Mixtral8x7BInstructOutChoices;
2258
+ /** returns the result for `Mixtral8x7BInstructOut` once it's node has been run. */
2259
+ protected _result(): Promise<Mixtral8x7BInstructOut>;
2260
+ }
2261
+ /** Llama3Instruct8BChoice */
2262
+ declare class Llama3Instruct8BChoice extends FutureObject {
2263
+ /** Text response. */
2264
+ get text(): FutureString;
2265
+ /** JSON response, if `json_schema` was provided. */
2266
+ get json_object(): FutureAnyObject;
2267
+ /** returns the result for `Llama3Instruct8BChoice` once it's node has been run. */
2268
+ protected _result(): Promise<Llama3Instruct8BChoice>;
2269
+ }
2270
+ /** Llama3Instruct8BOut */
2271
+ declare class Llama3Instruct8BOut extends FutureObject {
2272
+ /** Response choices. */
2273
+ get choices(): Llama3Instruct8BOutChoices;
2274
+ /** returns the result for `Llama3Instruct8BOut` once it's node has been run. */
2275
+ protected _result(): Promise<Llama3Instruct8BOut>;
2276
+ }
2277
+ /** Llama3Instruct70BChoice */
2278
+ declare class Llama3Instruct70BChoice extends FutureObject {
2279
+ /** Text response. */
2280
+ get text(): FutureString;
2281
+ /** returns the result for `Llama3Instruct70BChoice` once it's node has been run. */
2282
+ protected _result(): Promise<Llama3Instruct70BChoice>;
2283
+ }
2284
+ /** Llama3Instruct70BOut */
2285
+ declare class Llama3Instruct70BOut extends FutureObject {
2286
+ /** Response choices. */
2287
+ get choices(): Llama3Instruct70BOutChoices;
2288
+ /** returns the result for `Llama3Instruct70BOut` once it's node has been run. */
2289
+ protected _result(): Promise<Llama3Instruct70BOut>;
2290
+ }
2291
+ /** Firellava13BOut */
2292
+ declare class Firellava13BOut extends FutureObject {
2293
+ /** Text response. */
2294
+ get text(): FutureString;
2295
+ /** returns the result for `Firellava13BOut` once it's node has been run. */
2296
+ protected _result(): Promise<Firellava13BOut>;
2297
+ }
2298
+ /** GenerateImageOut */
2299
+ declare class GenerateImageOut extends FutureObject {
2300
+ /** Base 64-encoded JPEG image bytes, or a hosted image url if `store` is provided. */
2301
+ get image_uri(): FutureString;
2302
+ /** returns the result for `GenerateImageOut` once it's node has been run. */
2303
+ protected _result(): Promise<GenerateImageOut>;
2304
+ }
2305
+ /** MultiGenerateImageOut */
2306
+ declare class MultiGenerateImageOut extends FutureObject {
2307
+ /** Generated images. */
2308
+ get outputs(): MultiGenerateImageOutOutputs;
2309
+ /** returns the result for `MultiGenerateImageOut` once it's node has been run. */
2310
+ protected _result(): Promise<MultiGenerateImageOut>;
2311
+ }
2312
+ /** StableDiffusionImage */
2313
+ declare class StableDiffusionImage extends FutureObject {
2314
+ /** Base 64-encoded JPEG image bytes, or a hosted image url if `store` is provided. */
2315
+ get image_uri(): FutureString;
2316
+ /** The random noise seed used for generation. */
2317
+ get seed(): FutureNumber;
2318
+ /** returns the result for `StableDiffusionImage` once it's node has been run. */
2319
+ protected _result(): Promise<StableDiffusionImage>;
2320
+ }
2321
+ /** StableDiffusionXLLightningOut */
2322
+ declare class StableDiffusionXLLightningOut extends FutureObject {
2323
+ /** Generated images. */
2324
+ get outputs(): StableDiffusionXLLightningOutOutputs;
2325
+ /** returns the result for `StableDiffusionXLLightningOut` once it's node has been run. */
2326
+ protected _result(): Promise<StableDiffusionXLLightningOut>;
2327
+ }
2328
+ /** StableDiffusionXLControlNetOut */
2329
+ declare class StableDiffusionXLControlNetOut extends FutureObject {
2330
+ /** Generated images. */
2331
+ get outputs(): StableDiffusionXLControlNetOutOutputs;
2332
+ /** returns the result for `StableDiffusionXLControlNetOut` once it's node has been run. */
2333
+ protected _result(): Promise<StableDiffusionXLControlNetOut>;
2334
+ }
2335
+ /** StableVideoDiffusionOut */
2336
+ declare class StableVideoDiffusionOut extends FutureObject {
2337
+ /** Generated video. */
2338
+ get video_uri(): FutureString;
2339
+ /** Generated frames. */
2340
+ get frame_uris(): StableVideoDiffusionOutFrameUris;
2341
+ /** returns the result for `StableVideoDiffusionOut` once it's node has been run. */
2342
+ protected _result(): Promise<StableVideoDiffusionOut>;
2343
+ }
2344
+ /** InterpolateFramesOut */
2345
+ declare class InterpolateFramesOut extends FutureObject {
2346
+ /** Generated video. */
2347
+ get video_uri(): FutureString;
2348
+ /** Output frames. */
2349
+ get frame_uris(): InterpolateFramesOutFrameUris;
2350
+ /** returns the result for `InterpolateFramesOut` once it's node has been run. */
2351
+ protected _result(): Promise<InterpolateFramesOut>;
2352
+ }
2353
+ /** InpaintImageOut */
2354
+ declare class InpaintImageOut extends FutureObject {
2355
+ /** Base 64-encoded JPEG image bytes, or a hosted image url if `store` is provided. */
2356
+ get image_uri(): FutureString;
2357
+ /** returns the result for `InpaintImageOut` once it's node has been run. */
2358
+ protected _result(): Promise<InpaintImageOut>;
2359
+ }
2360
+ /** MultiInpaintImageOut */
2361
+ declare class MultiInpaintImageOut extends FutureObject {
2362
+ /** Generated images. */
2363
+ get outputs(): MultiInpaintImageOutOutputs;
2364
+ /** returns the result for `MultiInpaintImageOut` once it's node has been run. */
2365
+ protected _result(): Promise<MultiInpaintImageOut>;
2366
+ }
2367
+ /** StableDiffusionXLInpaintOut */
2368
+ declare class StableDiffusionXLInpaintOut extends FutureObject {
2369
+ /** Generated images. */
2370
+ get outputs(): StableDiffusionXLInpaintOutOutputs;
2371
+ /** returns the result for `StableDiffusionXLInpaintOut` once it's node has been run. */
2372
+ protected _result(): Promise<StableDiffusionXLInpaintOut>;
2373
+ }
2374
+ /** EraseImageOut */
2375
+ declare class EraseImageOut extends FutureObject {
2376
+ /** Base 64-encoded JPEG image bytes, or a hosted image url if `store` is provided. */
2377
+ get image_uri(): FutureString;
2378
+ /** returns the result for `EraseImageOut` once it's node has been run. */
2379
+ protected _result(): Promise<EraseImageOut>;
2380
+ }
2381
+ /** RemoveBackgroundOut */
2382
+ declare class RemoveBackgroundOut extends FutureObject {
2383
+ /** Base 64-encoded JPEG image bytes, or a hosted image url if `store` is provided. */
2384
+ get image_uri(): FutureString;
2385
+ /** returns the result for `RemoveBackgroundOut` once it's node has been run. */
2386
+ protected _result(): Promise<RemoveBackgroundOut>;
2387
+ }
2388
+ /** UpscaleImageOut */
2389
+ declare class UpscaleImageOut extends FutureObject {
2390
+ /** Base 64-encoded JPEG image bytes, or a hosted image url if `store` is provided. */
2391
+ get image_uri(): FutureString;
2392
+ /** returns the result for `UpscaleImageOut` once it's node has been run. */
2393
+ protected _result(): Promise<UpscaleImageOut>;
2394
+ }
2395
+ /** SegmentUnderPointOut */
2396
+ declare class SegmentUnderPointOut extends FutureObject {
2397
+ /** Detected segments in 'mask image' format. Base 64-encoded JPEG image bytes, or a hosted image url if `store` is provided. */
2398
+ get mask_image_uri(): FutureString;
2399
+ /** returns the result for `SegmentUnderPointOut` once it's node has been run. */
2400
+ protected _result(): Promise<SegmentUnderPointOut>;
2401
+ }
2402
+ /** SegmentAnythingOut */
2403
+ declare class SegmentAnythingOut extends FutureObject {
2404
+ /** Detected segments in 'mask image' format. Base 64-encoded JPEG image bytes, or a hosted image url if `store` is provided. */
2405
+ get mask_image_uri(): FutureString;
2406
+ /** returns the result for `SegmentAnythingOut` once it's node has been run. */
2407
+ protected _result(): Promise<SegmentAnythingOut>;
2408
+ }
2409
+ /** TranscribedWord */
2410
+ declare class TranscribedWord extends FutureObject {
2411
+ /** Text of word. */
2412
+ get word(): FutureString;
2413
+ /** (Optional) Start time of word, in seconds. */
2414
+ get start(): FutureNumber;
2415
+ /** (Optional) End time of word, in seconds. */
2416
+ get end(): FutureNumber;
2417
+ /** (Optional) ID of speaker, if `diarize` is enabled. */
2418
+ get speaker(): FutureString;
2419
+ /** returns the result for `TranscribedWord` once it's node has been run. */
2420
+ protected _result(): Promise<TranscribedWord>;
2421
+ }
2422
+ /** TranscribedSegment */
2423
+ declare class TranscribedSegment extends FutureObject {
2424
+ /** Text of segment. */
2425
+ get text(): FutureString;
2426
+ /** Start time of segment, in seconds. */
2427
+ get start(): FutureNumber;
2428
+ /** End time of segment, in seconds. */
2429
+ get end(): FutureNumber;
2430
+ /** (Optional) ID of speaker, if `diarize` is enabled. */
2431
+ get speaker(): FutureString;
2432
+ /** (Optional) Aligned words, if `align` is enabled. */
2433
+ get words(): TranscribedSegmentWords;
2434
+ /** returns the result for `TranscribedSegment` once it's node has been run. */
2435
+ protected _result(): Promise<TranscribedSegment>;
2436
+ }
2437
+ /** ChapterMarker */
2438
+ declare class ChapterMarker extends FutureObject {
2439
+ /** Chapter title. */
2440
+ get title(): FutureString;
2441
+ /** Start time of chapter, in seconds. */
2442
+ get start(): FutureNumber;
2443
+ /** returns the result for `ChapterMarker` once it's node has been run. */
2444
+ protected _result(): Promise<ChapterMarker>;
2445
+ }
2446
+ /** TranscribeSpeechOut */
2447
+ declare class TranscribeSpeechOut extends FutureObject {
2448
+ /** Transcribed text. */
2449
+ get text(): FutureString;
2450
+ /** (Optional) Transcribed segments, if `segment` is enabled. */
2451
+ get segments(): TranscribeSpeechOutSegments;
2452
+ /** (Optional) Chapter markers, if `suggest_chapters` is enabled. */
2453
+ get chapters(): TranscribeSpeechOutChapters;
2454
+ /** returns the result for `TranscribeSpeechOut` once it's node has been run. */
2455
+ protected _result(): Promise<TranscribeSpeechOut>;
2456
+ }
2457
+ /** GenerateSpeechOut */
2458
+ declare class GenerateSpeechOut extends FutureObject {
2459
+ /** Base 64-encoded WAV audio bytes, or a hosted audio url if `store` is provided. */
2460
+ get audio_uri(): FutureString;
2461
+ /** returns the result for `GenerateSpeechOut` once it's node has been run. */
2462
+ protected _result(): Promise<GenerateSpeechOut>;
2463
+ }
2464
+ /** Embedding */
2465
+ declare class Embedding extends FutureObject {
2466
+ /** Embedding vector. */
2467
+ get vector(): EmbeddingVector;
2468
+ /** (Optional) Vector store document ID. */
2469
+ get doc_id(): FutureString;
2470
+ /** (Optional) Vector store document metadata. */
2471
+ get metadata(): FutureAnyObject;
2472
+ /** returns the result for `Embedding` once it's node has been run. */
2473
+ protected _result(): Promise<Embedding>;
2474
+ }
2475
+ /** EmbedTextOut */
2476
+ declare class EmbedTextOut extends FutureObject {
2477
+ /** Generated embedding. */
2478
+ get embedding(): Embedding;
2479
+ /** returns the result for `EmbedTextOut` once it's node has been run. */
2480
+ protected _result(): Promise<EmbedTextOut>;
2481
+ }
2482
+ /** EmbedTextItem */
2483
+ declare class EmbedTextItem extends FutureObject {
2484
+ /** Text to embed. */
2485
+ get text(): FutureString;
2486
+ /** (Optional) Metadata that can be used to query the vector store. Ignored if `collection_name` is unset. */
2487
+ get metadata(): FutureAnyObject;
2488
+ /** (Optional) Vector store document ID. Ignored if `collection_name` is unset. */
2489
+ get doc_id(): FutureString;
2490
+ /** returns the result for `EmbedTextItem` once it's node has been run. */
2491
+ protected _result(): Promise<EmbedTextItem>;
2492
+ }
2493
+ /** MultiEmbedTextOut */
2494
+ declare class MultiEmbedTextOut extends FutureObject {
2495
+ /** Generated embeddings. */
2496
+ get embeddings(): MultiEmbedTextOutEmbeddings;
2497
+ /** returns the result for `MultiEmbedTextOut` once it's node has been run. */
2498
+ protected _result(): Promise<MultiEmbedTextOut>;
2499
+ }
2500
+ /** JinaV2Out */
2501
+ declare class JinaV2Out extends FutureObject {
2502
+ /** Generated embeddings. */
2503
+ get embeddings(): JinaV2OutEmbeddings;
2504
+ /** returns the result for `JinaV2Out` once it's node has been run. */
2505
+ protected _result(): Promise<JinaV2Out>;
2506
+ }
2507
+ /** EmbedImageOut */
2508
+ declare class EmbedImageOut extends FutureObject {
2509
+ /** Generated embedding. */
2510
+ get embedding(): Embedding;
2511
+ /** returns the result for `EmbedImageOut` once it's node has been run. */
2512
+ protected _result(): Promise<EmbedImageOut>;
2513
+ }
2514
+ /** MultiEmbedImageOut */
2515
+ declare class MultiEmbedImageOut extends FutureObject {
2516
+ /** Generated embeddings. */
2517
+ get embeddings(): MultiEmbedImageOutEmbeddings;
2518
+ /** returns the result for `MultiEmbedImageOut` once it's node has been run. */
2519
+ protected _result(): Promise<MultiEmbedImageOut>;
2520
+ }
2521
+ /** CLIPOut */
2522
+ declare class CLIPOut extends FutureObject {
2523
+ /** Generated embeddings. */
2524
+ get embeddings(): CLIPOutEmbeddings;
2525
+ /** returns the result for `CLIPOut` once it's node has been run. */
2526
+ protected _result(): Promise<CLIPOut>;
2527
+ }
2528
+ /** FindOrCreateVectorStoreOut */
2529
+ declare class FindOrCreateVectorStoreOut extends FutureObject {
2530
+ /** Vector store name. */
2531
+ get collection_name(): FutureString;
2532
+ /** Selected embedding model. */
2533
+ get model(): FutureString;
2534
+ /** (Optional) Number of leaves in the vector store. */
2535
+ get num_leaves(): FutureNumber;
2536
+ /** returns the result for `FindOrCreateVectorStoreOut` once it's node has been run. */
2537
+ protected _result(): Promise<FindOrCreateVectorStoreOut>;
2538
+ }
2539
+ /** ListVectorStoresOut */
2540
+ declare class ListVectorStoresOut extends FutureObject {
2541
+ /** List of vector stores. */
2542
+ get items(): ListVectorStoresOutItems;
2543
+ /** returns the result for `ListVectorStoresOut` once it's node has been run. */
2544
+ protected _result(): Promise<ListVectorStoresOut>;
2545
+ }
2546
+ /** DeleteVectorStoreOut */
2547
+ declare class DeleteVectorStoreOut extends FutureObject {
2548
+ /** Vector store name. */
2549
+ get collection_name(): FutureString;
2550
+ /** Selected embedding model. */
2551
+ get model(): FutureString;
2552
+ /** returns the result for `DeleteVectorStoreOut` once it's node has been run. */
2553
+ protected _result(): Promise<DeleteVectorStoreOut>;
2554
+ }
2555
+ /** Canonical representation of document with embedding vector. */
2556
+ declare class Vector extends FutureObject {
2557
+ /** Document ID. */
2558
+ get id(): FutureString;
2559
+ /** Embedding vector. */
2560
+ get vector(): VectorVector;
2561
+ /** Document metadata. */
2562
+ get metadata(): FutureAnyObject;
2563
+ /** returns the result for `Vector` once it's node has been run. */
2564
+ protected _result(): Promise<Vector>;
2565
+ }
2566
+ /** FetchVectorsOut */
2567
+ declare class FetchVectorsOut extends FutureObject {
2568
+ /** Retrieved vectors. */
2569
+ get vectors(): FetchVectorsOutVectors;
2570
+ /** returns the result for `FetchVectorsOut` once it's node has been run. */
2571
+ protected _result(): Promise<FetchVectorsOut>;
2572
+ }
2573
+ /** UpdateVectorsOut */
2574
+ declare class UpdateVectorsOut extends FutureObject {
2575
+ /** Number of vectors modified. */
2576
+ get count(): FutureNumber;
2577
+ /** returns the result for `UpdateVectorsOut` once it's node has been run. */
2578
+ protected _result(): Promise<UpdateVectorsOut>;
2579
+ }
2580
+ /** DeleteVectorsOut */
2581
+ declare class DeleteVectorsOut extends FutureObject {
2582
+ /** Number of vectors modified. */
2583
+ get count(): FutureNumber;
2584
+ /** returns the result for `DeleteVectorsOut` once it's node has been run. */
2585
+ protected _result(): Promise<DeleteVectorsOut>;
2586
+ }
2587
+ /** VectorStoreQueryResult */
2588
+ declare class VectorStoreQueryResult extends FutureObject {
2589
+ /** Document ID. */
2590
+ get id(): FutureString;
2591
+ /** Similarity score. */
2592
+ get distance(): FutureNumber;
2593
+ /** (Optional) Embedding vector. */
2594
+ get vector(): VectorStoreQueryResultVector;
2595
+ /** (Optional) Document metadata. */
2596
+ get metadata(): FutureAnyObject;
2597
+ /** returns the result for `VectorStoreQueryResult` once it's node has been run. */
2598
+ protected _result(): Promise<VectorStoreQueryResult>;
2599
+ }
2600
+ /** QueryVectorStoreOut */
2601
+ declare class QueryVectorStoreOut extends FutureObject {
2602
+ /** Query results. */
2603
+ get results(): QueryVectorStoreOutResults;
2604
+ /** (Optional) Vector store name. */
2605
+ get collection_name(): FutureString;
2606
+ /** (Optional) Selected embedding model. */
2607
+ get model(): FutureString;
2608
+ /** returns the result for `QueryVectorStoreOut` once it's node has been run. */
2609
+ protected _result(): Promise<QueryVectorStoreOut>;
2610
+ }
2611
+ /** SplitDocumentOut */
2612
+ declare class SplitDocumentOut extends FutureObject {
2613
+ /** Document chunks */
2614
+ get items(): SplitDocumentOutItems;
2615
+ /** returns the result for `SplitDocumentOut` once it's node has been run. */
2616
+ protected _result(): Promise<SplitDocumentOut>;
2617
+ }
2618
+ declare namespace Experimental {
2619
+ /**
2620
+ * Experimental Input
2621
+ * https://www.substrate.run/nodes#Experimental
2622
+ */
2623
+ type Input = FutureExpandAny<components["schemas"]["ExperimentalIn"]>;
2624
+ /**
2625
+ * Experimental Output
2626
+ * https://www.substrate.run/nodes#Experimental
2627
+ */
2628
+ type Output = components["schemas"]["ExperimentalOut"];
2629
+ }
2630
+ /**
2631
+ * Experimental node.
2632
+ *
2633
+ * https://www.substrate.run/nodes#Experimental
2634
+ */
2635
+ declare class Experimental extends Node {
2636
+ /**
2637
+ * Input arguments: `name`, `args`, `timeout` (optional)
2638
+ *
2639
+ * Output fields: `output`
2640
+ *
2641
+ * https://www.substrate.run/nodes#Experimental
2642
+ */
2643
+ constructor(args: FutureExpandAny<components["schemas"]["ExperimentalIn"]>, options?: Options);
2644
+ /**
2645
+ * Retrieve this node's output from a response.
2646
+ *
2647
+ * Output fields: `output`
2648
+ *
2649
+ * https://www.substrate.run/nodes#Experimental
2650
+ */
2651
+ protected result(): Promise<components["schemas"]["ExperimentalOut"] | undefined>;
2652
+ /**
2653
+ * Future reference to this node's output.
2654
+ *
2655
+ * Output fields: `output`
2656
+ *
2657
+ * https://www.substrate.run/nodes#Experimental
2658
+ */
2659
+ get future(): ExperimentalOut;
2660
+ protected output(): components["schemas"]["ExperimentalOut"];
2661
+ }
2662
+ declare namespace Box {
2663
+ /**
2664
+ * Box Input
2665
+ * https://www.substrate.run/nodes#Box
2666
+ */
2667
+ type Input = FutureExpandAny<components["schemas"]["BoxIn"]>;
2668
+ /**
2669
+ * Box Output
2670
+ * https://www.substrate.run/nodes#Box
2671
+ */
2672
+ type Output = components["schemas"]["BoxOut"];
2673
+ }
2674
+ /**
2675
+ * Combine multiple values into a single output.
2676
+ *
2677
+ * https://www.substrate.run/nodes#Box
2678
+ */
2679
+ declare class Box extends Node {
2680
+ /**
2681
+ * Input arguments: `value`
2682
+ *
2683
+ * Output fields: `value`
2684
+ *
2685
+ * https://www.substrate.run/nodes#Box
2686
+ */
2687
+ constructor(args: FutureExpandAny<components["schemas"]["BoxIn"]>, options?: Options);
2688
+ /**
2689
+ * Retrieve this node's output from a response.
2690
+ *
2691
+ * Output fields: `value`
2692
+ *
2693
+ * https://www.substrate.run/nodes#Box
2694
+ */
2695
+ protected result(): Promise<components["schemas"]["BoxOut"] | undefined>;
2696
+ /**
2697
+ * Future reference to this node's output.
2698
+ *
2699
+ * Output fields: `value`
2700
+ *
2701
+ * https://www.substrate.run/nodes#Box
2702
+ */
2703
+ get future(): BoxOut;
2704
+ protected output(): components["schemas"]["BoxOut"];
2705
+ }
2706
+ declare namespace If {
2707
+ /**
2708
+ * If Input
2709
+ * https://www.substrate.run/nodes#If
2710
+ */
2711
+ type Input = FutureExpandAny<components["schemas"]["IfIn"]>;
2712
+ /**
2713
+ * If Output
2714
+ * https://www.substrate.run/nodes#If
2715
+ */
2716
+ type Output = components["schemas"]["IfOut"];
2717
+ }
2718
+ /**
2719
+ * Return one of two options based on a condition.
2720
+ *
2721
+ * https://www.substrate.run/nodes#If
2722
+ */
2723
+ declare class If extends Node {
2724
+ /**
2725
+ * Input arguments: `condition`, `value_if_true`, `value_if_false` (optional)
2726
+ *
2727
+ * Output fields: `result`
2728
+ *
2729
+ * https://www.substrate.run/nodes#If
2730
+ */
2731
+ constructor(args: FutureExpandAny<components["schemas"]["IfIn"]>, options?: Options);
2732
+ /**
2733
+ * Retrieve this node's output from a response.
2734
+ *
2735
+ * Output fields: `result`
2736
+ *
2737
+ * https://www.substrate.run/nodes#If
2738
+ */
2739
+ protected result(): Promise<components["schemas"]["IfOut"] | undefined>;
2740
+ /**
2741
+ * Future reference to this node's output.
2742
+ *
2743
+ * Output fields: `result`
2744
+ *
2745
+ * https://www.substrate.run/nodes#If
2746
+ */
2747
+ get future(): IfOut;
2748
+ protected output(): components["schemas"]["IfOut"];
2749
+ }
2750
+ declare namespace ComputeText {
2751
+ /**
2752
+ * ComputeText Input
2753
+ * https://www.substrate.run/nodes#ComputeText
2754
+ */
2755
+ type Input = FutureExpandAny<components["schemas"]["ComputeTextIn"]>;
2756
+ /**
2757
+ * ComputeText Output
2758
+ * https://www.substrate.run/nodes#ComputeText
2759
+ */
2760
+ type Output = components["schemas"]["ComputeTextOut"];
2761
+ }
2762
+ /**
2763
+ * Compute text using a language model.
2764
+ *
2765
+ * https://www.substrate.run/nodes#ComputeText
2766
+ */
2767
+ declare class ComputeText extends Node {
2768
+ /**
2769
+ * Input arguments: `prompt`, `image_uris` (optional), `temperature` (optional), `max_tokens` (optional), `model` (optional)
2770
+ *
2771
+ * Output fields: `text`
2772
+ *
2773
+ * https://www.substrate.run/nodes#ComputeText
2774
+ */
2775
+ constructor(args: FutureExpandAny<components["schemas"]["ComputeTextIn"]>, options?: Options);
2776
+ /**
2777
+ * Retrieve this node's output from a response.
2778
+ *
2779
+ * Output fields: `text`
2780
+ *
2781
+ * https://www.substrate.run/nodes#ComputeText
2782
+ */
2783
+ protected result(): Promise<components["schemas"]["ComputeTextOut"] | undefined>;
2784
+ /**
2785
+ * Future reference to this node's output.
2786
+ *
2787
+ * Output fields: `text`
2788
+ *
2789
+ * https://www.substrate.run/nodes#ComputeText
2790
+ */
2791
+ get future(): ComputeTextOut;
2792
+ protected output(): components["schemas"]["ComputeTextOut"];
2793
+ }
2794
+ declare namespace MultiComputeText {
2795
+ /**
2796
+ * MultiComputeText Input
2797
+ * https://www.substrate.run/nodes#MultiComputeText
2798
+ */
2799
+ type Input = FutureExpandAny<components["schemas"]["MultiComputeTextIn"]>;
2800
+ /**
2801
+ * MultiComputeText Output
2802
+ * https://www.substrate.run/nodes#MultiComputeText
2803
+ */
2804
+ type Output = components["schemas"]["MultiComputeTextOut"];
2805
+ }
2806
+ /**
2807
+ * Generate multiple text choices using a language model.
2808
+ *
2809
+ * https://www.substrate.run/nodes#MultiComputeText
2810
+ */
2811
+ declare class MultiComputeText extends Node {
2812
+ /**
2813
+ * Input arguments: `prompt`, `num_choices`, `temperature` (optional), `max_tokens` (optional), `model` (optional)
2814
+ *
2815
+ * Output fields: `choices`
2816
+ *
2817
+ * https://www.substrate.run/nodes#MultiComputeText
2818
+ */
2819
+ constructor(args: FutureExpandAny<components["schemas"]["MultiComputeTextIn"]>, options?: Options);
2820
+ /**
2821
+ * Retrieve this node's output from a response.
2822
+ *
2823
+ * Output fields: `choices`
2824
+ *
2825
+ * https://www.substrate.run/nodes#MultiComputeText
2826
+ */
2827
+ protected result(): Promise<components["schemas"]["MultiComputeTextOut"] | undefined>;
2828
+ /**
2829
+ * Future reference to this node's output.
2830
+ *
2831
+ * Output fields: `choices`
2832
+ *
2833
+ * https://www.substrate.run/nodes#MultiComputeText
2834
+ */
2835
+ get future(): MultiComputeTextOut;
2836
+ protected output(): components["schemas"]["MultiComputeTextOut"];
2837
+ }
2838
+ declare namespace BatchComputeText {
2839
+ /**
2840
+ * BatchComputeText Input
2841
+ * https://www.substrate.run/nodes#BatchComputeText
2842
+ */
2843
+ type Input = FutureExpandAny<components["schemas"]["BatchComputeTextIn"]>;
2844
+ /**
2845
+ * BatchComputeText Output
2846
+ * https://www.substrate.run/nodes#BatchComputeText
2847
+ */
2848
+ type Output = components["schemas"]["BatchComputeTextOut"];
2849
+ }
2850
+ /**
2851
+ * Compute text for multiple prompts in batch using a language model.
2852
+ *
2853
+ * https://www.substrate.run/nodes#BatchComputeText
2854
+ */
2855
+ declare class BatchComputeText extends Node {
2856
+ /**
2857
+ * Input arguments: `prompts`, `temperature` (optional), `max_tokens` (optional), `model` (optional)
2858
+ *
2859
+ * Output fields: `outputs`
2860
+ *
2861
+ * https://www.substrate.run/nodes#BatchComputeText
2862
+ */
2863
+ constructor(args: FutureExpandAny<components["schemas"]["BatchComputeTextIn"]>, options?: Options);
2864
+ /**
2865
+ * Retrieve this node's output from a response.
2866
+ *
2867
+ * Output fields: `outputs`
2868
+ *
2869
+ * https://www.substrate.run/nodes#BatchComputeText
2870
+ */
2871
+ protected result(): Promise<components["schemas"]["BatchComputeTextOut"] | undefined>;
2872
+ /**
2873
+ * Future reference to this node's output.
2874
+ *
2875
+ * Output fields: `outputs`
2876
+ *
2877
+ * https://www.substrate.run/nodes#BatchComputeText
2878
+ */
2879
+ get future(): BatchComputeTextOut;
2880
+ protected output(): components["schemas"]["BatchComputeTextOut"];
2881
+ }
2882
+ declare namespace BatchComputeJSON {
2883
+ /**
2884
+ * BatchComputeJSON Input
2885
+ * https://www.substrate.run/nodes#BatchComputeJSON
2886
+ */
2887
+ type Input = FutureExpandAny<components["schemas"]["BatchComputeJSONIn"]>;
2888
+ /**
2889
+ * BatchComputeJSON Output
2890
+ * https://www.substrate.run/nodes#BatchComputeJSON
2891
+ */
2892
+ type Output = components["schemas"]["BatchComputeJSONOut"];
2893
+ }
2894
+ /**
2895
+ * Compute JSON for multiple prompts in batch using a language model.
2896
+ *
2897
+ * https://www.substrate.run/nodes#BatchComputeJSON
2898
+ */
2899
+ declare class BatchComputeJSON extends Node {
2900
+ /**
2901
+ * Input arguments: `prompts`, `json_schema`, `temperature` (optional), `max_tokens` (optional), `model` (optional)
2902
+ *
2903
+ * Output fields: `outputs`
2904
+ *
2905
+ * https://www.substrate.run/nodes#BatchComputeJSON
2906
+ */
2907
+ constructor(args: FutureExpandAny<components["schemas"]["BatchComputeJSONIn"]>, options?: Options);
2908
+ /**
2909
+ * Retrieve this node's output from a response.
2910
+ *
2911
+ * Output fields: `outputs`
2912
+ *
2913
+ * https://www.substrate.run/nodes#BatchComputeJSON
2914
+ */
2915
+ protected result(): Promise<components["schemas"]["BatchComputeJSONOut"] | undefined>;
2916
+ /**
2917
+ * Future reference to this node's output.
2918
+ *
2919
+ * Output fields: `outputs`
2920
+ *
2921
+ * https://www.substrate.run/nodes#BatchComputeJSON
2922
+ */
2923
+ get future(): BatchComputeJSONOut;
2924
+ protected output(): components["schemas"]["BatchComputeJSONOut"];
2925
+ }
2926
+ declare namespace ComputeJSON {
2927
+ /**
2928
+ * ComputeJSON Input
2929
+ * https://www.substrate.run/nodes#ComputeJSON
2930
+ */
2931
+ type Input = FutureExpandAny<components["schemas"]["ComputeJSONIn"]>;
2932
+ /**
2933
+ * ComputeJSON Output
2934
+ * https://www.substrate.run/nodes#ComputeJSON
2935
+ */
2936
+ type Output = components["schemas"]["ComputeJSONOut"];
2937
+ }
2938
+ /**
2939
+ * Compute JSON using a language model.
2940
+ *
2941
+ * https://www.substrate.run/nodes#ComputeJSON
2942
+ */
2943
+ declare class ComputeJSON extends Node {
2944
+ /**
2945
+ * Input arguments: `prompt`, `json_schema`, `temperature` (optional), `max_tokens` (optional), `model` (optional)
2946
+ *
2947
+ * Output fields: `json_object` (optional), `text` (optional)
2948
+ *
2949
+ * https://www.substrate.run/nodes#ComputeJSON
2950
+ */
2951
+ constructor(args: FutureExpandAny<components["schemas"]["ComputeJSONIn"]>, options?: Options);
2952
+ /**
2953
+ * Retrieve this node's output from a response.
2954
+ *
2955
+ * Output fields: `json_object` (optional), `text` (optional)
2956
+ *
2957
+ * https://www.substrate.run/nodes#ComputeJSON
2958
+ */
2959
+ protected result(): Promise<components["schemas"]["ComputeJSONOut"] | undefined>;
2960
+ /**
2961
+ * Future reference to this node's output.
2962
+ *
2963
+ * Output fields: `json_object` (optional), `text` (optional)
2964
+ *
2965
+ * https://www.substrate.run/nodes#ComputeJSON
2966
+ */
2967
+ get future(): ComputeJSONOut;
2968
+ protected output(): components["schemas"]["ComputeJSONOut"];
2969
+ }
2970
+ declare namespace MultiComputeJSON {
2971
+ /**
2972
+ * MultiComputeJSON Input
2973
+ * https://www.substrate.run/nodes#MultiComputeJSON
2974
+ */
2975
+ type Input = FutureExpandAny<components["schemas"]["MultiComputeJSONIn"]>;
2976
+ /**
2977
+ * MultiComputeJSON Output
2978
+ * https://www.substrate.run/nodes#MultiComputeJSON
2979
+ */
2980
+ type Output = components["schemas"]["MultiComputeJSONOut"];
2981
+ }
2982
+ /**
2983
+ * Compute multiple JSON choices using a language model.
2984
+ *
2985
+ * https://www.substrate.run/nodes#MultiComputeJSON
2986
+ */
2987
+ declare class MultiComputeJSON extends Node {
2988
+ /**
2989
+ * Input arguments: `prompt`, `json_schema`, `num_choices`, `temperature` (optional), `max_tokens` (optional), `model` (optional)
2990
+ *
2991
+ * Output fields: `choices`
2992
+ *
2993
+ * https://www.substrate.run/nodes#MultiComputeJSON
2994
+ */
2995
+ constructor(args: FutureExpandAny<components["schemas"]["MultiComputeJSONIn"]>, options?: Options);
2996
+ /**
2997
+ * Retrieve this node's output from a response.
2998
+ *
2999
+ * Output fields: `choices`
3000
+ *
3001
+ * https://www.substrate.run/nodes#MultiComputeJSON
3002
+ */
3003
+ protected result(): Promise<components["schemas"]["MultiComputeJSONOut"] | undefined>;
3004
+ /**
3005
+ * Future reference to this node's output.
3006
+ *
3007
+ * Output fields: `choices`
3008
+ *
3009
+ * https://www.substrate.run/nodes#MultiComputeJSON
3010
+ */
3011
+ get future(): MultiComputeJSONOut;
3012
+ protected output(): components["schemas"]["MultiComputeJSONOut"];
3013
+ }
3014
+ declare namespace Mistral7BInstruct {
3015
+ /**
3016
+ * Mistral7BInstruct Input
3017
+ * https://www.substrate.run/nodes#Mistral7BInstruct
3018
+ */
3019
+ type Input = FutureExpandAny<components["schemas"]["Mistral7BInstructIn"]>;
3020
+ /**
3021
+ * Mistral7BInstruct Output
3022
+ * https://www.substrate.run/nodes#Mistral7BInstruct
3023
+ */
3024
+ type Output = components["schemas"]["Mistral7BInstructOut"];
3025
+ }
3026
+ /**
3027
+ * Compute text using [Mistral 7B Instruct](https://mistral.ai/news/announcing-mistral-7b).
3028
+ *
3029
+ * https://www.substrate.run/nodes#Mistral7BInstruct
3030
+ */
3031
+ declare class Mistral7BInstruct extends Node {
3032
+ /**
3033
+ * Input arguments: `prompt`, `system_prompt` (optional), `num_choices` (optional), `json_schema` (optional), `temperature` (optional), `frequency_penalty` (optional), `repetition_penalty` (optional), `presence_penalty` (optional), `top_p` (optional), `max_tokens` (optional)
3034
+ *
3035
+ * Output fields: `choices`
3036
+ *
3037
+ * https://www.substrate.run/nodes#Mistral7BInstruct
3038
+ */
3039
+ constructor(args: FutureExpandAny<components["schemas"]["Mistral7BInstructIn"]>, options?: Options);
3040
+ /**
3041
+ * Retrieve this node's output from a response.
3042
+ *
3043
+ * Output fields: `choices`
3044
+ *
3045
+ * https://www.substrate.run/nodes#Mistral7BInstruct
3046
+ */
3047
+ protected result(): Promise<components["schemas"]["Mistral7BInstructOut"] | undefined>;
3048
+ /**
3049
+ * Future reference to this node's output.
3050
+ *
3051
+ * Output fields: `choices`
3052
+ *
3053
+ * https://www.substrate.run/nodes#Mistral7BInstruct
3054
+ */
3055
+ get future(): Mistral7BInstructOut;
3056
+ protected output(): components["schemas"]["Mistral7BInstructOut"];
3057
+ }
3058
+ declare namespace Mixtral8x7BInstruct {
3059
+ /**
3060
+ * Mixtral8x7BInstruct Input
3061
+ * https://www.substrate.run/nodes#Mixtral8x7BInstruct
3062
+ */
3063
+ type Input = FutureExpandAny<components["schemas"]["Mixtral8x7BInstructIn"]>;
3064
+ /**
3065
+ * Mixtral8x7BInstruct Output
3066
+ * https://www.substrate.run/nodes#Mixtral8x7BInstruct
3067
+ */
3068
+ type Output = components["schemas"]["Mixtral8x7BInstructOut"];
3069
+ }
3070
+ /**
3071
+ * Compute text using instruct-tuned [Mixtral 8x7B](https://mistral.ai/news/mixtral-of-experts/).
3072
+ *
3073
+ * https://www.substrate.run/nodes#Mixtral8x7BInstruct
3074
+ */
3075
+ declare class Mixtral8x7BInstruct extends Node {
3076
+ /**
3077
+ * Input arguments: `prompt`, `system_prompt` (optional), `num_choices` (optional), `json_schema` (optional), `temperature` (optional), `frequency_penalty` (optional), `repetition_penalty` (optional), `presence_penalty` (optional), `top_p` (optional), `max_tokens` (optional)
3078
+ *
3079
+ * Output fields: `choices`
3080
+ *
3081
+ * https://www.substrate.run/nodes#Mixtral8x7BInstruct
3082
+ */
3083
+ constructor(args: FutureExpandAny<components["schemas"]["Mixtral8x7BInstructIn"]>, options?: Options);
3084
+ /**
3085
+ * Retrieve this node's output from a response.
3086
+ *
3087
+ * Output fields: `choices`
3088
+ *
3089
+ * https://www.substrate.run/nodes#Mixtral8x7BInstruct
3090
+ */
3091
+ protected result(): Promise<components["schemas"]["Mixtral8x7BInstructOut"] | undefined>;
3092
+ /**
3093
+ * Future reference to this node's output.
3094
+ *
3095
+ * Output fields: `choices`
3096
+ *
3097
+ * https://www.substrate.run/nodes#Mixtral8x7BInstruct
3098
+ */
3099
+ get future(): Mixtral8x7BInstructOut;
3100
+ protected output(): components["schemas"]["Mixtral8x7BInstructOut"];
3101
+ }
3102
+ declare namespace Llama3Instruct8B {
3103
+ /**
3104
+ * Llama3Instruct8B Input
3105
+ * https://www.substrate.run/nodes#Llama3Instruct8B
3106
+ */
3107
+ type Input = FutureExpandAny<components["schemas"]["Llama3Instruct8BIn"]>;
3108
+ /**
3109
+ * Llama3Instruct8B Output
3110
+ * https://www.substrate.run/nodes#Llama3Instruct8B
3111
+ */
3112
+ type Output = components["schemas"]["Llama3Instruct8BOut"];
3113
+ }
3114
+ /**
3115
+ * Compute text using instruct-tuned [Llama 3 8B](https://llama.meta.com/llama3/).
3116
+ *
3117
+ * https://www.substrate.run/nodes#Llama3Instruct8B
3118
+ */
3119
+ declare class Llama3Instruct8B extends Node {
3120
+ /**
3121
+ * Input arguments: `prompt`, `system_prompt` (optional), `num_choices` (optional), `temperature` (optional), `frequency_penalty` (optional), `repetition_penalty` (optional), `presence_penalty` (optional), `top_p` (optional), `max_tokens` (optional), `json_schema` (optional)
3122
+ *
3123
+ * Output fields: `choices`
3124
+ *
3125
+ * https://www.substrate.run/nodes#Llama3Instruct8B
3126
+ */
3127
+ constructor(args: FutureExpandAny<components["schemas"]["Llama3Instruct8BIn"]>, options?: Options);
3128
+ /**
3129
+ * Retrieve this node's output from a response.
3130
+ *
3131
+ * Output fields: `choices`
3132
+ *
3133
+ * https://www.substrate.run/nodes#Llama3Instruct8B
3134
+ */
3135
+ protected result(): Promise<components["schemas"]["Llama3Instruct8BOut"] | undefined>;
3136
+ /**
3137
+ * Future reference to this node's output.
3138
+ *
3139
+ * Output fields: `choices`
3140
+ *
3141
+ * https://www.substrate.run/nodes#Llama3Instruct8B
3142
+ */
3143
+ get future(): Llama3Instruct8BOut;
3144
+ protected output(): components["schemas"]["Llama3Instruct8BOut"];
3145
+ }
3146
+ declare namespace Llama3Instruct70B {
3147
+ /**
3148
+ * Llama3Instruct70B Input
3149
+ * https://www.substrate.run/nodes#Llama3Instruct70B
3150
+ */
3151
+ type Input = FutureExpandAny<components["schemas"]["Llama3Instruct70BIn"]>;
3152
+ /**
3153
+ * Llama3Instruct70B Output
3154
+ * https://www.substrate.run/nodes#Llama3Instruct70B
3155
+ */
3156
+ type Output = components["schemas"]["Llama3Instruct70BOut"];
3157
+ }
3158
+ /**
3159
+ * Compute text using instruct-tuned [Llama 3 70B](https://llama.meta.com/llama3/).
3160
+ *
3161
+ * https://www.substrate.run/nodes#Llama3Instruct70B
3162
+ */
3163
+ declare class Llama3Instruct70B extends Node {
3164
+ /**
3165
+ * Input arguments: `prompt`, `system_prompt` (optional), `num_choices` (optional), `temperature` (optional), `frequency_penalty` (optional), `repetition_penalty` (optional), `presence_penalty` (optional), `top_p` (optional), `max_tokens` (optional)
3166
+ *
3167
+ * Output fields: `choices`
3168
+ *
3169
+ * https://www.substrate.run/nodes#Llama3Instruct70B
3170
+ */
3171
+ constructor(args: FutureExpandAny<components["schemas"]["Llama3Instruct70BIn"]>, options?: Options);
3172
+ /**
3173
+ * Retrieve this node's output from a response.
3174
+ *
3175
+ * Output fields: `choices`
3176
+ *
3177
+ * https://www.substrate.run/nodes#Llama3Instruct70B
3178
+ */
3179
+ protected result(): Promise<components["schemas"]["Llama3Instruct70BOut"] | undefined>;
3180
+ /**
3181
+ * Future reference to this node's output.
3182
+ *
3183
+ * Output fields: `choices`
3184
+ *
3185
+ * https://www.substrate.run/nodes#Llama3Instruct70B
3186
+ */
3187
+ get future(): Llama3Instruct70BOut;
3188
+ protected output(): components["schemas"]["Llama3Instruct70BOut"];
3189
+ }
3190
+ declare namespace Firellava13B {
3191
+ /**
3192
+ * Firellava13B Input
3193
+ * https://www.substrate.run/nodes#Firellava13B
3194
+ */
3195
+ type Input = FutureExpandAny<components["schemas"]["Firellava13BIn"]>;
3196
+ /**
3197
+ * Firellava13B Output
3198
+ * https://www.substrate.run/nodes#Firellava13B
3199
+ */
3200
+ type Output = components["schemas"]["Firellava13BOut"];
3201
+ }
3202
+ /**
3203
+ * Compute text with image input using [FireLLaVA 13B](https://fireworks.ai/blog/firellava-the-first-commercially-permissive-oss-llava-model).
3204
+ *
3205
+ * https://www.substrate.run/nodes#Firellava13B
3206
+ */
3207
+ declare class Firellava13B extends Node {
3208
+ /**
3209
+ * Input arguments: `prompt`, `image_uris`, `max_tokens` (optional)
3210
+ *
3211
+ * Output fields: `text`
3212
+ *
3213
+ * https://www.substrate.run/nodes#Firellava13B
3214
+ */
3215
+ constructor(args: FutureExpandAny<components["schemas"]["Firellava13BIn"]>, options?: Options);
3216
+ /**
3217
+ * Retrieve this node's output from a response.
3218
+ *
3219
+ * Output fields: `text`
3220
+ *
3221
+ * https://www.substrate.run/nodes#Firellava13B
3222
+ */
3223
+ protected result(): Promise<components["schemas"]["Firellava13BOut"] | undefined>;
3224
+ /**
3225
+ * Future reference to this node's output.
3226
+ *
3227
+ * Output fields: `text`
3228
+ *
3229
+ * https://www.substrate.run/nodes#Firellava13B
3230
+ */
3231
+ get future(): Firellava13BOut;
3232
+ protected output(): components["schemas"]["Firellava13BOut"];
3233
+ }
3234
+ declare namespace GenerateImage {
3235
+ /**
3236
+ * GenerateImage Input
3237
+ * https://www.substrate.run/nodes#GenerateImage
3238
+ */
3239
+ type Input = FutureExpandAny<components["schemas"]["GenerateImageIn"]>;
3240
+ /**
3241
+ * GenerateImage Output
3242
+ * https://www.substrate.run/nodes#GenerateImage
3243
+ */
3244
+ type Output = components["schemas"]["GenerateImageOut"];
3245
+ }
3246
+ /**
3247
+ * Generate an image.
3248
+ *
3249
+ * https://www.substrate.run/nodes#GenerateImage
3250
+ */
3251
+ declare class GenerateImage extends Node {
3252
+ /**
3253
+ * Input arguments: `prompt`, `store` (optional)
3254
+ *
3255
+ * Output fields: `image_uri`
3256
+ *
3257
+ * https://www.substrate.run/nodes#GenerateImage
3258
+ */
3259
+ constructor(args: FutureExpandAny<components["schemas"]["GenerateImageIn"]>, options?: Options);
3260
+ /**
3261
+ * Retrieve this node's output from a response.
3262
+ *
3263
+ * Output fields: `image_uri`
3264
+ *
3265
+ * https://www.substrate.run/nodes#GenerateImage
3266
+ */
3267
+ protected result(): Promise<components["schemas"]["GenerateImageOut"] | undefined>;
3268
+ /**
3269
+ * Future reference to this node's output.
3270
+ *
3271
+ * Output fields: `image_uri`
3272
+ *
3273
+ * https://www.substrate.run/nodes#GenerateImage
3274
+ */
3275
+ get future(): GenerateImageOut;
3276
+ protected output(): components["schemas"]["GenerateImageOut"];
3277
+ }
3278
+ declare namespace MultiGenerateImage {
3279
+ /**
3280
+ * MultiGenerateImage Input
3281
+ * https://www.substrate.run/nodes#MultiGenerateImage
3282
+ */
3283
+ type Input = FutureExpandAny<components["schemas"]["MultiGenerateImageIn"]>;
3284
+ /**
3285
+ * MultiGenerateImage Output
3286
+ * https://www.substrate.run/nodes#MultiGenerateImage
3287
+ */
3288
+ type Output = components["schemas"]["MultiGenerateImageOut"];
3289
+ }
3290
+ /**
3291
+ * Generate multiple images.
3292
+ *
3293
+ * https://www.substrate.run/nodes#MultiGenerateImage
3294
+ */
3295
+ declare class MultiGenerateImage extends Node {
3296
+ /**
3297
+ * Input arguments: `prompt`, `num_images`, `store` (optional)
3298
+ *
3299
+ * Output fields: `outputs`
3300
+ *
3301
+ * https://www.substrate.run/nodes#MultiGenerateImage
3302
+ */
3303
+ constructor(args: FutureExpandAny<components["schemas"]["MultiGenerateImageIn"]>, options?: Options);
3304
+ /**
3305
+ * Retrieve this node's output from a response.
3306
+ *
3307
+ * Output fields: `outputs`
3308
+ *
3309
+ * https://www.substrate.run/nodes#MultiGenerateImage
3310
+ */
3311
+ protected result(): Promise<components["schemas"]["MultiGenerateImageOut"] | undefined>;
3312
+ /**
3313
+ * Future reference to this node's output.
3314
+ *
3315
+ * Output fields: `outputs`
3316
+ *
3317
+ * https://www.substrate.run/nodes#MultiGenerateImage
3318
+ */
3319
+ get future(): MultiGenerateImageOut;
3320
+ protected output(): components["schemas"]["MultiGenerateImageOut"];
3321
+ }
3322
+ declare namespace InpaintImage {
3323
+ /**
3324
+ * InpaintImage Input
3325
+ * https://www.substrate.run/nodes#InpaintImage
3326
+ */
3327
+ type Input = FutureExpandAny<components["schemas"]["InpaintImageIn"]>;
3328
+ /**
3329
+ * InpaintImage Output
3330
+ * https://www.substrate.run/nodes#InpaintImage
3331
+ */
3332
+ type Output = components["schemas"]["InpaintImageOut"];
3333
+ }
3334
+ /**
3335
+ * Edit an image using image generation inside part of the image or the full image.
3336
+ *
3337
+ * https://www.substrate.run/nodes#InpaintImage
3338
+ */
3339
+ declare class InpaintImage extends Node {
3340
+ /**
3341
+ * Input arguments: `image_uri`, `prompt`, `mask_image_uri` (optional), `store` (optional)
3342
+ *
3343
+ * Output fields: `image_uri`
3344
+ *
3345
+ * https://www.substrate.run/nodes#InpaintImage
3346
+ */
3347
+ constructor(args: FutureExpandAny<components["schemas"]["InpaintImageIn"]>, options?: Options);
3348
+ /**
3349
+ * Retrieve this node's output from a response.
3350
+ *
3351
+ * Output fields: `image_uri`
3352
+ *
3353
+ * https://www.substrate.run/nodes#InpaintImage
3354
+ */
3355
+ protected result(): Promise<components["schemas"]["InpaintImageOut"] | undefined>;
3356
+ /**
3357
+ * Future reference to this node's output.
3358
+ *
3359
+ * Output fields: `image_uri`
3360
+ *
3361
+ * https://www.substrate.run/nodes#InpaintImage
3362
+ */
3363
+ get future(): InpaintImageOut;
3364
+ protected output(): components["schemas"]["InpaintImageOut"];
3365
+ }
3366
+ declare namespace MultiInpaintImage {
3367
+ /**
3368
+ * MultiInpaintImage Input
3369
+ * https://www.substrate.run/nodes#MultiInpaintImage
3370
+ */
3371
+ type Input = FutureExpandAny<components["schemas"]["MultiInpaintImageIn"]>;
3372
+ /**
3373
+ * MultiInpaintImage Output
3374
+ * https://www.substrate.run/nodes#MultiInpaintImage
3375
+ */
3376
+ type Output = components["schemas"]["MultiInpaintImageOut"];
3377
+ }
3378
+ /**
3379
+ * Edit multiple images using image generation.
3380
+ *
3381
+ * https://www.substrate.run/nodes#MultiInpaintImage
3382
+ */
3383
+ declare class MultiInpaintImage extends Node {
3384
+ /**
3385
+ * Input arguments: `image_uri`, `prompt`, `mask_image_uri` (optional), `num_images`, `store` (optional)
3386
+ *
3387
+ * Output fields: `outputs`
3388
+ *
3389
+ * https://www.substrate.run/nodes#MultiInpaintImage
3390
+ */
3391
+ constructor(args: FutureExpandAny<components["schemas"]["MultiInpaintImageIn"]>, options?: Options);
3392
+ /**
3393
+ * Retrieve this node's output from a response.
3394
+ *
3395
+ * Output fields: `outputs`
3396
+ *
3397
+ * https://www.substrate.run/nodes#MultiInpaintImage
3398
+ */
3399
+ protected result(): Promise<components["schemas"]["MultiInpaintImageOut"] | undefined>;
3400
+ /**
3401
+ * Future reference to this node's output.
3402
+ *
3403
+ * Output fields: `outputs`
3404
+ *
3405
+ * https://www.substrate.run/nodes#MultiInpaintImage
3406
+ */
3407
+ get future(): MultiInpaintImageOut;
3408
+ protected output(): components["schemas"]["MultiInpaintImageOut"];
3409
+ }
3410
+ declare namespace StableDiffusionXLLightning {
3411
+ /**
3412
+ * StableDiffusionXLLightning Input
3413
+ * https://www.substrate.run/nodes#StableDiffusionXLLightning
3414
+ */
3415
+ type Input = FutureExpandAny<components["schemas"]["StableDiffusionXLLightningIn"]>;
3416
+ /**
3417
+ * StableDiffusionXLLightning Output
3418
+ * https://www.substrate.run/nodes#StableDiffusionXLLightning
3419
+ */
3420
+ type Output = components["schemas"]["StableDiffusionXLLightningOut"];
3421
+ }
3422
+ /**
3423
+ * Generate an image using [Stable Diffusion XL Lightning](https://arxiv.org/abs/2402.13929).
3424
+ *
3425
+ * https://www.substrate.run/nodes#StableDiffusionXLLightning
3426
+ */
3427
+ declare class StableDiffusionXLLightning extends Node {
3428
+ /**
3429
+ * Input arguments: `prompt`, `negative_prompt` (optional), `num_images` (optional), `store` (optional), `height` (optional), `width` (optional), `seeds` (optional)
3430
+ *
3431
+ * Output fields: `outputs`
3432
+ *
3433
+ * https://www.substrate.run/nodes#StableDiffusionXLLightning
3434
+ */
3435
+ constructor(args: FutureExpandAny<components["schemas"]["StableDiffusionXLLightningIn"]>, options?: Options);
3436
+ /**
3437
+ * Retrieve this node's output from a response.
3438
+ *
3439
+ * Output fields: `outputs`
3440
+ *
3441
+ * https://www.substrate.run/nodes#StableDiffusionXLLightning
3442
+ */
3443
+ protected result(): Promise<components["schemas"]["StableDiffusionXLLightningOut"] | undefined>;
3444
+ /**
3445
+ * Future reference to this node's output.
3446
+ *
3447
+ * Output fields: `outputs`
3448
+ *
3449
+ * https://www.substrate.run/nodes#StableDiffusionXLLightning
3450
+ */
3451
+ get future(): StableDiffusionXLLightningOut;
3452
+ protected output(): components["schemas"]["StableDiffusionXLLightningOut"];
3453
+ }
3454
+ declare namespace StableDiffusionXLInpaint {
3455
+ /**
3456
+ * StableDiffusionXLInpaint Input
3457
+ * https://www.substrate.run/nodes#StableDiffusionXLInpaint
3458
+ */
3459
+ type Input = FutureExpandAny<components["schemas"]["StableDiffusionXLInpaintIn"]>;
3460
+ /**
3461
+ * StableDiffusionXLInpaint Output
3462
+ * https://www.substrate.run/nodes#StableDiffusionXLInpaint
3463
+ */
3464
+ type Output = components["schemas"]["StableDiffusionXLInpaintOut"];
3465
+ }
3466
+ /**
3467
+ * Edit an image using [Stable Diffusion XL](https://arxiv.org/abs/2307.01952). Supports inpainting (edit part of the image with a mask) and image-to-image (edit the full image).
3468
+ *
3469
+ * https://www.substrate.run/nodes#StableDiffusionXLInpaint
3470
+ */
3471
+ declare class StableDiffusionXLInpaint extends Node {
3472
+ /**
3473
+ * Input arguments: `image_uri`, `prompt`, `mask_image_uri` (optional), `num_images`, `output_resolution` (optional), `negative_prompt` (optional), `store` (optional), `strength` (optional), `seeds` (optional)
3474
+ *
3475
+ * Output fields: `outputs`
3476
+ *
3477
+ * https://www.substrate.run/nodes#StableDiffusionXLInpaint
3478
+ */
3479
+ constructor(args: FutureExpandAny<components["schemas"]["StableDiffusionXLInpaintIn"]>, options?: Options);
3480
+ /**
3481
+ * Retrieve this node's output from a response.
3482
+ *
3483
+ * Output fields: `outputs`
3484
+ *
3485
+ * https://www.substrate.run/nodes#StableDiffusionXLInpaint
3486
+ */
3487
+ protected result(): Promise<components["schemas"]["StableDiffusionXLInpaintOut"] | undefined>;
3488
+ /**
3489
+ * Future reference to this node's output.
3490
+ *
3491
+ * Output fields: `outputs`
3492
+ *
3493
+ * https://www.substrate.run/nodes#StableDiffusionXLInpaint
3494
+ */
3495
+ get future(): StableDiffusionXLInpaintOut;
3496
+ protected output(): components["schemas"]["StableDiffusionXLInpaintOut"];
3497
+ }
3498
+ declare namespace StableDiffusionXLControlNet {
3499
+ /**
3500
+ * StableDiffusionXLControlNet Input
3501
+ * https://www.substrate.run/nodes#StableDiffusionXLControlNet
3502
+ */
3503
+ type Input = FutureExpandAny<components["schemas"]["StableDiffusionXLControlNetIn"]>;
3504
+ /**
3505
+ * StableDiffusionXLControlNet Output
3506
+ * https://www.substrate.run/nodes#StableDiffusionXLControlNet
3507
+ */
3508
+ type Output = components["schemas"]["StableDiffusionXLControlNetOut"];
3509
+ }
3510
+ /**
3511
+ * Generate an image with generation structured by an input image, using Stable Diffusion XL with [ControlNet](https://arxiv.org/abs/2302.05543).
3512
+ *
3513
+ * https://www.substrate.run/nodes#StableDiffusionXLControlNet
3514
+ */
3515
+ declare class StableDiffusionXLControlNet extends Node {
3516
+ /**
3517
+ * Input arguments: `image_uri`, `control_method`, `prompt`, `num_images`, `output_resolution` (optional), `negative_prompt` (optional), `store` (optional), `conditioning_scale` (optional), `strength` (optional), `seeds` (optional)
3518
+ *
3519
+ * Output fields: `outputs`
3520
+ *
3521
+ * https://www.substrate.run/nodes#StableDiffusionXLControlNet
3522
+ */
3523
+ constructor(args: FutureExpandAny<components["schemas"]["StableDiffusionXLControlNetIn"]>, options?: Options);
3524
+ /**
3525
+ * Retrieve this node's output from a response.
3526
+ *
3527
+ * Output fields: `outputs`
3528
+ *
3529
+ * https://www.substrate.run/nodes#StableDiffusionXLControlNet
3530
+ */
3531
+ protected result(): Promise<components["schemas"]["StableDiffusionXLControlNetOut"] | undefined>;
3532
+ /**
3533
+ * Future reference to this node's output.
3534
+ *
3535
+ * Output fields: `outputs`
3536
+ *
3537
+ * https://www.substrate.run/nodes#StableDiffusionXLControlNet
3538
+ */
3539
+ get future(): StableDiffusionXLControlNetOut;
3540
+ protected output(): components["schemas"]["StableDiffusionXLControlNetOut"];
3541
+ }
3542
+ declare namespace StableVideoDiffusion {
3543
+ /**
3544
+ * StableVideoDiffusion Input
3545
+ * https://www.substrate.run/nodes#StableVideoDiffusion
3546
+ */
3547
+ type Input = FutureExpandAny<components["schemas"]["StableVideoDiffusionIn"]>;
3548
+ /**
3549
+ * StableVideoDiffusion Output
3550
+ * https://www.substrate.run/nodes#StableVideoDiffusion
3551
+ */
3552
+ type Output = components["schemas"]["StableVideoDiffusionOut"];
3553
+ }
3554
+ /**
3555
+ * Generates a video using a still image as conditioning frame.
3556
+ *
3557
+ * https://www.substrate.run/nodes#StableVideoDiffusion
3558
+ */
3559
+ declare class StableVideoDiffusion extends Node {
3560
+ /**
3561
+ * Input arguments: `image_uri`, `store` (optional), `output_format` (optional), `seed` (optional), `fps` (optional), `motion_bucket_id` (optional), `noise` (optional)
3562
+ *
3563
+ * Output fields: `video_uri` (optional), `frame_uris` (optional)
3564
+ *
3565
+ * https://www.substrate.run/nodes#StableVideoDiffusion
3566
+ */
3567
+ constructor(args: FutureExpandAny<components["schemas"]["StableVideoDiffusionIn"]>, options?: Options);
3568
+ /**
3569
+ * Retrieve this node's output from a response.
3570
+ *
3571
+ * Output fields: `video_uri` (optional), `frame_uris` (optional)
3572
+ *
3573
+ * https://www.substrate.run/nodes#StableVideoDiffusion
3574
+ */
3575
+ protected result(): Promise<components["schemas"]["StableVideoDiffusionOut"] | undefined>;
3576
+ /**
3577
+ * Future reference to this node's output.
3578
+ *
3579
+ * Output fields: `video_uri` (optional), `frame_uris` (optional)
3580
+ *
3581
+ * https://www.substrate.run/nodes#StableVideoDiffusion
3582
+ */
3583
+ get future(): StableVideoDiffusionOut;
3584
+ protected output(): components["schemas"]["StableVideoDiffusionOut"];
3585
+ }
3586
+ declare namespace InterpolateFrames {
3587
+ /**
3588
+ * InterpolateFrames Input
3589
+ * https://www.substrate.run/nodes#InterpolateFrames
3590
+ */
3591
+ type Input = FutureExpandAny<components["schemas"]["InterpolateFramesIn"]>;
3592
+ /**
3593
+ * InterpolateFrames Output
3594
+ * https://www.substrate.run/nodes#InterpolateFrames
3595
+ */
3596
+ type Output = components["schemas"]["InterpolateFramesOut"];
3597
+ }
3598
+ /**
3599
+ * Generates a interpolation frames between each adjacent frames.
3600
+ *
3601
+ * https://www.substrate.run/nodes#InterpolateFrames
3602
+ */
3603
+ declare class InterpolateFrames extends Node {
3604
+ /**
3605
+ * Input arguments: `frame_uris`, `store` (optional), `output_format` (optional), `fps` (optional), `num_steps` (optional)
3606
+ *
3607
+ * Output fields: `video_uri` (optional), `frame_uris` (optional)
3608
+ *
3609
+ * https://www.substrate.run/nodes#InterpolateFrames
3610
+ */
3611
+ constructor(args: FutureExpandAny<components["schemas"]["InterpolateFramesIn"]>, options?: Options);
3612
+ /**
3613
+ * Retrieve this node's output from a response.
3614
+ *
3615
+ * Output fields: `video_uri` (optional), `frame_uris` (optional)
3616
+ *
3617
+ * https://www.substrate.run/nodes#InterpolateFrames
3618
+ */
3619
+ protected result(): Promise<components["schemas"]["InterpolateFramesOut"] | undefined>;
3620
+ /**
3621
+ * Future reference to this node's output.
3622
+ *
3623
+ * Output fields: `video_uri` (optional), `frame_uris` (optional)
3624
+ *
3625
+ * https://www.substrate.run/nodes#InterpolateFrames
3626
+ */
3627
+ get future(): InterpolateFramesOut;
3628
+ protected output(): components["schemas"]["InterpolateFramesOut"];
3629
+ }
3630
+ declare namespace TranscribeSpeech {
3631
+ /**
3632
+ * TranscribeSpeech Input
3633
+ * https://www.substrate.run/nodes#TranscribeSpeech
3634
+ */
3635
+ type Input = FutureExpandAny<components["schemas"]["TranscribeSpeechIn"]>;
3636
+ /**
3637
+ * TranscribeSpeech Output
3638
+ * https://www.substrate.run/nodes#TranscribeSpeech
3639
+ */
3640
+ type Output = components["schemas"]["TranscribeSpeechOut"];
3641
+ }
3642
+ /**
3643
+ * Transcribe speech in an audio or video file.
3644
+ *
3645
+ * https://www.substrate.run/nodes#TranscribeSpeech
3646
+ */
3647
+ declare class TranscribeSpeech extends Node {
3648
+ /**
3649
+ * Input arguments: `audio_uri`, `prompt` (optional), `language` (optional), `segment` (optional), `align` (optional), `diarize` (optional), `suggest_chapters` (optional)
3650
+ *
3651
+ * Output fields: `text`, `segments` (optional), `chapters` (optional)
3652
+ *
3653
+ * https://www.substrate.run/nodes#TranscribeSpeech
3654
+ */
3655
+ constructor(args: FutureExpandAny<components["schemas"]["TranscribeSpeechIn"]>, options?: Options);
3656
+ /**
3657
+ * Retrieve this node's output from a response.
3658
+ *
3659
+ * Output fields: `text`, `segments` (optional), `chapters` (optional)
3660
+ *
3661
+ * https://www.substrate.run/nodes#TranscribeSpeech
3662
+ */
3663
+ protected result(): Promise<components["schemas"]["TranscribeSpeechOut"] | undefined>;
3664
+ /**
3665
+ * Future reference to this node's output.
3666
+ *
3667
+ * Output fields: `text`, `segments` (optional), `chapters` (optional)
3668
+ *
3669
+ * https://www.substrate.run/nodes#TranscribeSpeech
3670
+ */
3671
+ get future(): TranscribeSpeechOut;
3672
+ protected output(): components["schemas"]["TranscribeSpeechOut"];
3673
+ }
3674
+ declare namespace GenerateSpeech {
3675
+ /**
3676
+ * GenerateSpeech Input
3677
+ * https://www.substrate.run/nodes#GenerateSpeech
3678
+ */
3679
+ type Input = FutureExpandAny<components["schemas"]["GenerateSpeechIn"]>;
3680
+ /**
3681
+ * GenerateSpeech Output
3682
+ * https://www.substrate.run/nodes#GenerateSpeech
3683
+ */
3684
+ type Output = components["schemas"]["GenerateSpeechOut"];
3685
+ }
3686
+ /**
3687
+ * Generate speech from text.
3688
+ *
3689
+ * https://www.substrate.run/nodes#GenerateSpeech
3690
+ */
3691
+ declare class GenerateSpeech extends Node {
3692
+ /**
3693
+ * Input arguments: `text`, `store` (optional)
3694
+ *
3695
+ * Output fields: `audio_uri`
3696
+ *
3697
+ * https://www.substrate.run/nodes#GenerateSpeech
3698
+ */
3699
+ constructor(args: FutureExpandAny<components["schemas"]["GenerateSpeechIn"]>, options?: Options);
3700
+ /**
3701
+ * Retrieve this node's output from a response.
3702
+ *
3703
+ * Output fields: `audio_uri`
3704
+ *
3705
+ * https://www.substrate.run/nodes#GenerateSpeech
3706
+ */
3707
+ protected result(): Promise<components["schemas"]["GenerateSpeechOut"] | undefined>;
3708
+ /**
3709
+ * Future reference to this node's output.
3710
+ *
3711
+ * Output fields: `audio_uri`
3712
+ *
3713
+ * https://www.substrate.run/nodes#GenerateSpeech
3714
+ */
3715
+ get future(): GenerateSpeechOut;
3716
+ protected output(): components["schemas"]["GenerateSpeechOut"];
3717
+ }
3718
+ declare namespace RemoveBackground {
3719
+ /**
3720
+ * RemoveBackground Input
3721
+ * https://www.substrate.run/nodes#RemoveBackground
3722
+ */
3723
+ type Input = FutureExpandAny<components["schemas"]["RemoveBackgroundIn"]>;
3724
+ /**
3725
+ * RemoveBackground Output
3726
+ * https://www.substrate.run/nodes#RemoveBackground
3727
+ */
3728
+ type Output = components["schemas"]["RemoveBackgroundOut"];
3729
+ }
3730
+ /**
3731
+ * Remove the background from an image and return the foreground segment as a cut-out or a mask.
3732
+ *
3733
+ * https://www.substrate.run/nodes#RemoveBackground
3734
+ */
3735
+ declare class RemoveBackground extends Node {
3736
+ /**
3737
+ * Input arguments: `image_uri`, `return_mask` (optional), `invert_mask` (optional), `background_color` (optional), `store` (optional)
3738
+ *
3739
+ * Output fields: `image_uri`
3740
+ *
3741
+ * https://www.substrate.run/nodes#RemoveBackground
3742
+ */
3743
+ constructor(args: FutureExpandAny<components["schemas"]["RemoveBackgroundIn"]>, options?: Options);
3744
+ /**
3745
+ * Retrieve this node's output from a response.
3746
+ *
3747
+ * Output fields: `image_uri`
3748
+ *
3749
+ * https://www.substrate.run/nodes#RemoveBackground
3750
+ */
3751
+ protected result(): Promise<components["schemas"]["RemoveBackgroundOut"] | undefined>;
3752
+ /**
3753
+ * Future reference to this node's output.
3754
+ *
3755
+ * Output fields: `image_uri`
3756
+ *
3757
+ * https://www.substrate.run/nodes#RemoveBackground
3758
+ */
3759
+ get future(): RemoveBackgroundOut;
3760
+ protected output(): components["schemas"]["RemoveBackgroundOut"];
3761
+ }
3762
+ declare namespace EraseImage {
3763
+ /**
3764
+ * EraseImage Input
3765
+ * https://www.substrate.run/nodes#EraseImage
3766
+ */
3767
+ type Input = FutureExpandAny<components["schemas"]["EraseImageIn"]>;
3768
+ /**
3769
+ * EraseImage Output
3770
+ * https://www.substrate.run/nodes#EraseImage
3771
+ */
3772
+ type Output = components["schemas"]["EraseImageOut"];
3773
+ }
3774
+ /**
3775
+ * Erase the masked part of an image, e.g. to remove an object by inpainting.
3776
+ *
3777
+ * https://www.substrate.run/nodes#EraseImage
3778
+ */
3779
+ declare class EraseImage extends Node {
3780
+ /**
3781
+ * Input arguments: `image_uri`, `mask_image_uri`, `store` (optional)
3782
+ *
3783
+ * Output fields: `image_uri`
3784
+ *
3785
+ * https://www.substrate.run/nodes#EraseImage
3786
+ */
3787
+ constructor(args: FutureExpandAny<components["schemas"]["EraseImageIn"]>, options?: Options);
3788
+ /**
3789
+ * Retrieve this node's output from a response.
3790
+ *
3791
+ * Output fields: `image_uri`
3792
+ *
3793
+ * https://www.substrate.run/nodes#EraseImage
3794
+ */
3795
+ protected result(): Promise<components["schemas"]["EraseImageOut"] | undefined>;
3796
+ /**
3797
+ * Future reference to this node's output.
3798
+ *
3799
+ * Output fields: `image_uri`
3800
+ *
3801
+ * https://www.substrate.run/nodes#EraseImage
3802
+ */
3803
+ get future(): EraseImageOut;
3804
+ protected output(): components["schemas"]["EraseImageOut"];
3805
+ }
3806
+ declare namespace UpscaleImage {
3807
+ /**
3808
+ * UpscaleImage Input
3809
+ * https://www.substrate.run/nodes#UpscaleImage
3810
+ */
3811
+ type Input = FutureExpandAny<components["schemas"]["UpscaleImageIn"]>;
3812
+ /**
3813
+ * UpscaleImage Output
3814
+ * https://www.substrate.run/nodes#UpscaleImage
3815
+ */
3816
+ type Output = components["schemas"]["UpscaleImageOut"];
3817
+ }
3818
+ /**
3819
+ * Upscale an image using image generation.
3820
+ *
3821
+ * https://www.substrate.run/nodes#UpscaleImage
3822
+ */
3823
+ declare class UpscaleImage extends Node {
3824
+ /**
3825
+ * Input arguments: `prompt` (optional), `image_uri`, `output_resolution` (optional), `store` (optional)
3826
+ *
3827
+ * Output fields: `image_uri`
3828
+ *
3829
+ * https://www.substrate.run/nodes#UpscaleImage
3830
+ */
3831
+ constructor(args: FutureExpandAny<components["schemas"]["UpscaleImageIn"]>, options?: Options);
3832
+ /**
3833
+ * Retrieve this node's output from a response.
3834
+ *
3835
+ * Output fields: `image_uri`
3836
+ *
3837
+ * https://www.substrate.run/nodes#UpscaleImage
3838
+ */
3839
+ protected result(): Promise<components["schemas"]["UpscaleImageOut"] | undefined>;
3840
+ /**
3841
+ * Future reference to this node's output.
3842
+ *
3843
+ * Output fields: `image_uri`
3844
+ *
3845
+ * https://www.substrate.run/nodes#UpscaleImage
3846
+ */
3847
+ get future(): UpscaleImageOut;
3848
+ protected output(): components["schemas"]["UpscaleImageOut"];
3849
+ }
3850
+ declare namespace SegmentUnderPoint {
3851
+ /**
3852
+ * SegmentUnderPoint Input
3853
+ * https://www.substrate.run/nodes#SegmentUnderPoint
3854
+ */
3855
+ type Input = FutureExpandAny<components["schemas"]["SegmentUnderPointIn"]>;
3856
+ /**
3857
+ * SegmentUnderPoint Output
3858
+ * https://www.substrate.run/nodes#SegmentUnderPoint
3859
+ */
3860
+ type Output = components["schemas"]["SegmentUnderPointOut"];
3861
+ }
3862
+ /**
3863
+ * Segment an image under a point and return the segment.
3864
+ *
3865
+ * https://www.substrate.run/nodes#SegmentUnderPoint
3866
+ */
3867
+ declare class SegmentUnderPoint extends Node {
3868
+ /**
3869
+ * Input arguments: `image_uri`, `point`, `store` (optional)
3870
+ *
3871
+ * Output fields: `mask_image_uri`
3872
+ *
3873
+ * https://www.substrate.run/nodes#SegmentUnderPoint
3874
+ */
3875
+ constructor(args: FutureExpandAny<components["schemas"]["SegmentUnderPointIn"]>, options?: Options);
3876
+ /**
3877
+ * Retrieve this node's output from a response.
3878
+ *
3879
+ * Output fields: `mask_image_uri`
3880
+ *
3881
+ * https://www.substrate.run/nodes#SegmentUnderPoint
3882
+ */
3883
+ protected result(): Promise<components["schemas"]["SegmentUnderPointOut"] | undefined>;
3884
+ /**
3885
+ * Future reference to this node's output.
3886
+ *
3887
+ * Output fields: `mask_image_uri`
3888
+ *
3889
+ * https://www.substrate.run/nodes#SegmentUnderPoint
3890
+ */
3891
+ get future(): SegmentUnderPointOut;
3892
+ protected output(): components["schemas"]["SegmentUnderPointOut"];
3893
+ }
3894
+ declare namespace SegmentAnything {
3895
+ /**
3896
+ * SegmentAnything Input
3897
+ * https://www.substrate.run/nodes#SegmentAnything
3898
+ */
3899
+ type Input = FutureExpandAny<components["schemas"]["SegmentAnythingIn"]>;
3900
+ /**
3901
+ * SegmentAnything Output
3902
+ * https://www.substrate.run/nodes#SegmentAnything
3903
+ */
3904
+ type Output = components["schemas"]["SegmentAnythingOut"];
3905
+ }
3906
+ /**
3907
+ * Segment an image using [SegmentAnything](https://github.com/facebookresearch/segment-anything).
3908
+ *
3909
+ * https://www.substrate.run/nodes#SegmentAnything
3910
+ */
3911
+ declare class SegmentAnything extends Node {
3912
+ /**
3913
+ * Input arguments: `image_uri`, `point_prompts` (optional), `box_prompts` (optional), `store` (optional)
3914
+ *
3915
+ * Output fields: `mask_image_uri`
3916
+ *
3917
+ * https://www.substrate.run/nodes#SegmentAnything
3918
+ */
3919
+ constructor(args: FutureExpandAny<components["schemas"]["SegmentAnythingIn"]>, options?: Options);
3920
+ /**
3921
+ * Retrieve this node's output from a response.
3922
+ *
3923
+ * Output fields: `mask_image_uri`
3924
+ *
3925
+ * https://www.substrate.run/nodes#SegmentAnything
3926
+ */
3927
+ protected result(): Promise<components["schemas"]["SegmentAnythingOut"] | undefined>;
3928
+ /**
3929
+ * Future reference to this node's output.
3930
+ *
3931
+ * Output fields: `mask_image_uri`
3932
+ *
3933
+ * https://www.substrate.run/nodes#SegmentAnything
3934
+ */
3935
+ get future(): SegmentAnythingOut;
3936
+ protected output(): components["schemas"]["SegmentAnythingOut"];
3937
+ }
3938
+ declare namespace SplitDocument {
3939
+ /**
3940
+ * SplitDocument Input
3941
+ * https://www.substrate.run/nodes#SplitDocument
3942
+ */
3943
+ type Input = FutureExpandAny<components["schemas"]["SplitDocumentIn"]>;
3944
+ /**
3945
+ * SplitDocument Output
3946
+ * https://www.substrate.run/nodes#SplitDocument
3947
+ */
3948
+ type Output = components["schemas"]["SplitDocumentOut"];
3949
+ }
3950
+ /**
3951
+ * Split document into text segments.
3952
+ *
3953
+ * https://www.substrate.run/nodes#SplitDocument
3954
+ */
3955
+ declare class SplitDocument extends Node {
3956
+ /**
3957
+ * Input arguments: `uri`, `doc_id` (optional), `metadata` (optional), `chunk_size` (optional), `chunk_overlap` (optional)
3958
+ *
3959
+ * Output fields: `items`
3960
+ *
3961
+ * https://www.substrate.run/nodes#SplitDocument
3962
+ */
3963
+ constructor(args: FutureExpandAny<components["schemas"]["SplitDocumentIn"]>, options?: Options);
3964
+ /**
3965
+ * Retrieve this node's output from a response.
3966
+ *
3967
+ * Output fields: `items`
3968
+ *
3969
+ * https://www.substrate.run/nodes#SplitDocument
3970
+ */
3971
+ protected result(): Promise<components["schemas"]["SplitDocumentOut"] | undefined>;
3972
+ /**
3973
+ * Future reference to this node's output.
3974
+ *
3975
+ * Output fields: `items`
3976
+ *
3977
+ * https://www.substrate.run/nodes#SplitDocument
3978
+ */
3979
+ get future(): SplitDocumentOut;
3980
+ protected output(): components["schemas"]["SplitDocumentOut"];
3981
+ }
3982
+ declare namespace EmbedText {
3983
+ /**
3984
+ * EmbedText Input
3985
+ * https://www.substrate.run/nodes#EmbedText
3986
+ */
3987
+ type Input = FutureExpandAny<components["schemas"]["EmbedTextIn"]>;
3988
+ /**
3989
+ * EmbedText Output
3990
+ * https://www.substrate.run/nodes#EmbedText
3991
+ */
3992
+ type Output = components["schemas"]["EmbedTextOut"];
3993
+ }
3994
+ /**
3995
+ * Generate embedding for a text document.
3996
+ *
3997
+ * https://www.substrate.run/nodes#EmbedText
3998
+ */
3999
+ declare class EmbedText extends Node {
4000
+ /**
4001
+ * Input arguments: `text`, `collection_name` (optional), `metadata` (optional), `embedded_metadata_keys` (optional), `doc_id` (optional), `model` (optional)
4002
+ *
4003
+ * Output fields: `embedding`
4004
+ *
4005
+ * https://www.substrate.run/nodes#EmbedText
4006
+ */
4007
+ constructor(args: FutureExpandAny<components["schemas"]["EmbedTextIn"]>, options?: Options);
4008
+ /**
4009
+ * Retrieve this node's output from a response.
4010
+ *
4011
+ * Output fields: `embedding`
4012
+ *
4013
+ * https://www.substrate.run/nodes#EmbedText
4014
+ */
4015
+ protected result(): Promise<components["schemas"]["EmbedTextOut"] | undefined>;
4016
+ /**
4017
+ * Future reference to this node's output.
4018
+ *
4019
+ * Output fields: `embedding`
4020
+ *
4021
+ * https://www.substrate.run/nodes#EmbedText
4022
+ */
4023
+ get future(): EmbedTextOut;
4024
+ protected output(): components["schemas"]["EmbedTextOut"];
4025
+ }
4026
+ declare namespace MultiEmbedText {
4027
+ /**
4028
+ * MultiEmbedText Input
4029
+ * https://www.substrate.run/nodes#MultiEmbedText
4030
+ */
4031
+ type Input = FutureExpandAny<components["schemas"]["MultiEmbedTextIn"]>;
4032
+ /**
4033
+ * MultiEmbedText Output
4034
+ * https://www.substrate.run/nodes#MultiEmbedText
4035
+ */
4036
+ type Output = components["schemas"]["MultiEmbedTextOut"];
4037
+ }
4038
+ /**
4039
+ * Generate embeddings for multiple text documents.
4040
+ *
4041
+ * https://www.substrate.run/nodes#MultiEmbedText
4042
+ */
4043
+ declare class MultiEmbedText extends Node {
4044
+ /**
4045
+ * Input arguments: `items`, `collection_name` (optional), `embedded_metadata_keys` (optional), `model` (optional)
4046
+ *
4047
+ * Output fields: `embeddings`
4048
+ *
4049
+ * https://www.substrate.run/nodes#MultiEmbedText
4050
+ */
4051
+ constructor(args: FutureExpandAny<components["schemas"]["MultiEmbedTextIn"]>, options?: Options);
4052
+ /**
4053
+ * Retrieve this node's output from a response.
4054
+ *
4055
+ * Output fields: `embeddings`
4056
+ *
4057
+ * https://www.substrate.run/nodes#MultiEmbedText
4058
+ */
4059
+ protected result(): Promise<components["schemas"]["MultiEmbedTextOut"] | undefined>;
4060
+ /**
4061
+ * Future reference to this node's output.
4062
+ *
4063
+ * Output fields: `embeddings`
4064
+ *
4065
+ * https://www.substrate.run/nodes#MultiEmbedText
4066
+ */
4067
+ get future(): MultiEmbedTextOut;
4068
+ protected output(): components["schemas"]["MultiEmbedTextOut"];
4069
+ }
4070
+ declare namespace EmbedImage {
4071
+ /**
4072
+ * EmbedImage Input
4073
+ * https://www.substrate.run/nodes#EmbedImage
4074
+ */
4075
+ type Input = FutureExpandAny<components["schemas"]["EmbedImageIn"]>;
4076
+ /**
4077
+ * EmbedImage Output
4078
+ * https://www.substrate.run/nodes#EmbedImage
4079
+ */
4080
+ type Output = components["schemas"]["EmbedImageOut"];
4081
+ }
4082
+ /**
4083
+ * Generate embedding for an image.
4084
+ *
4085
+ * https://www.substrate.run/nodes#EmbedImage
4086
+ */
4087
+ declare class EmbedImage extends Node {
4088
+ /**
4089
+ * Input arguments: `image_uri`, `collection_name` (optional), `doc_id` (optional), `model` (optional)
4090
+ *
4091
+ * Output fields: `embedding`
4092
+ *
4093
+ * https://www.substrate.run/nodes#EmbedImage
4094
+ */
4095
+ constructor(args: FutureExpandAny<components["schemas"]["EmbedImageIn"]>, options?: Options);
4096
+ /**
4097
+ * Retrieve this node's output from a response.
4098
+ *
4099
+ * Output fields: `embedding`
4100
+ *
4101
+ * https://www.substrate.run/nodes#EmbedImage
4102
+ */
4103
+ protected result(): Promise<components["schemas"]["EmbedImageOut"] | undefined>;
4104
+ /**
4105
+ * Future reference to this node's output.
4106
+ *
4107
+ * Output fields: `embedding`
4108
+ *
4109
+ * https://www.substrate.run/nodes#EmbedImage
4110
+ */
4111
+ get future(): EmbedImageOut;
4112
+ protected output(): components["schemas"]["EmbedImageOut"];
4113
+ }
4114
+ declare namespace MultiEmbedImage {
4115
+ /**
4116
+ * MultiEmbedImage Input
4117
+ * https://www.substrate.run/nodes#MultiEmbedImage
4118
+ */
4119
+ type Input = FutureExpandAny<components["schemas"]["MultiEmbedImageIn"]>;
4120
+ /**
4121
+ * MultiEmbedImage Output
4122
+ * https://www.substrate.run/nodes#MultiEmbedImage
4123
+ */
4124
+ type Output = components["schemas"]["MultiEmbedImageOut"];
4125
+ }
4126
+ /**
4127
+ * Generate embeddings for multiple images.
4128
+ *
4129
+ * https://www.substrate.run/nodes#MultiEmbedImage
4130
+ */
4131
+ declare class MultiEmbedImage extends Node {
4132
+ /**
4133
+ * Input arguments: `items`, `collection_name` (optional), `model` (optional)
4134
+ *
4135
+ * Output fields: `embeddings`
4136
+ *
4137
+ * https://www.substrate.run/nodes#MultiEmbedImage
4138
+ */
4139
+ constructor(args: FutureExpandAny<components["schemas"]["MultiEmbedImageIn"]>, options?: Options);
4140
+ /**
4141
+ * Retrieve this node's output from a response.
4142
+ *
4143
+ * Output fields: `embeddings`
4144
+ *
4145
+ * https://www.substrate.run/nodes#MultiEmbedImage
4146
+ */
4147
+ protected result(): Promise<components["schemas"]["MultiEmbedImageOut"] | undefined>;
4148
+ /**
4149
+ * Future reference to this node's output.
4150
+ *
4151
+ * Output fields: `embeddings`
4152
+ *
4153
+ * https://www.substrate.run/nodes#MultiEmbedImage
4154
+ */
4155
+ get future(): MultiEmbedImageOut;
4156
+ protected output(): components["schemas"]["MultiEmbedImageOut"];
4157
+ }
4158
+ declare namespace JinaV2 {
4159
+ /**
4160
+ * JinaV2 Input
4161
+ * https://www.substrate.run/nodes#JinaV2
4162
+ */
4163
+ type Input = FutureExpandAny<components["schemas"]["JinaV2In"]>;
4164
+ /**
4165
+ * JinaV2 Output
4166
+ * https://www.substrate.run/nodes#JinaV2
4167
+ */
4168
+ type Output = components["schemas"]["JinaV2Out"];
4169
+ }
4170
+ /**
4171
+ * Generate embeddings for multiple text documents using [Jina Embeddings 2](https://arxiv.org/abs/2310.19923).
4172
+ *
4173
+ * https://www.substrate.run/nodes#JinaV2
4174
+ */
4175
+ declare class JinaV2 extends Node {
4176
+ /**
4177
+ * Input arguments: `items`, `collection_name` (optional), `embedded_metadata_keys` (optional)
4178
+ *
4179
+ * Output fields: `embeddings`
4180
+ *
4181
+ * https://www.substrate.run/nodes#JinaV2
4182
+ */
4183
+ constructor(args: FutureExpandAny<components["schemas"]["JinaV2In"]>, options?: Options);
4184
+ /**
4185
+ * Retrieve this node's output from a response.
4186
+ *
4187
+ * Output fields: `embeddings`
4188
+ *
4189
+ * https://www.substrate.run/nodes#JinaV2
4190
+ */
4191
+ protected result(): Promise<components["schemas"]["JinaV2Out"] | undefined>;
4192
+ /**
4193
+ * Future reference to this node's output.
4194
+ *
4195
+ * Output fields: `embeddings`
4196
+ *
4197
+ * https://www.substrate.run/nodes#JinaV2
4198
+ */
4199
+ get future(): JinaV2Out;
4200
+ protected output(): components["schemas"]["JinaV2Out"];
4201
+ }
4202
+ declare namespace CLIP {
4203
+ /**
4204
+ * CLIP Input
4205
+ * https://www.substrate.run/nodes#CLIP
4206
+ */
4207
+ type Input = FutureExpandAny<components["schemas"]["CLIPIn"]>;
4208
+ /**
4209
+ * CLIP Output
4210
+ * https://www.substrate.run/nodes#CLIP
4211
+ */
4212
+ type Output = components["schemas"]["CLIPOut"];
4213
+ }
4214
+ /**
4215
+ * Generate embeddings for text or images using [CLIP](https://openai.com/research/clip).
4216
+ *
4217
+ * https://www.substrate.run/nodes#CLIP
4218
+ */
4219
+ declare class CLIP extends Node {
4220
+ /**
4221
+ * Input arguments: `items`, `collection_name` (optional), `embedded_metadata_keys` (optional)
4222
+ *
4223
+ * Output fields: `embeddings`
4224
+ *
4225
+ * https://www.substrate.run/nodes#CLIP
4226
+ */
4227
+ constructor(args: FutureExpandAny<components["schemas"]["CLIPIn"]>, options?: Options);
4228
+ /**
4229
+ * Retrieve this node's output from a response.
4230
+ *
4231
+ * Output fields: `embeddings`
4232
+ *
4233
+ * https://www.substrate.run/nodes#CLIP
4234
+ */
4235
+ protected result(): Promise<components["schemas"]["CLIPOut"] | undefined>;
4236
+ /**
4237
+ * Future reference to this node's output.
4238
+ *
4239
+ * Output fields: `embeddings`
4240
+ *
4241
+ * https://www.substrate.run/nodes#CLIP
4242
+ */
4243
+ get future(): CLIPOut;
4244
+ protected output(): components["schemas"]["CLIPOut"];
4245
+ }
4246
+ declare namespace FindOrCreateVectorStore {
4247
+ /**
4248
+ * FindOrCreateVectorStore Input
4249
+ * https://www.substrate.run/nodes#FindOrCreateVectorStore
4250
+ */
4251
+ type Input = FutureExpandAny<components["schemas"]["FindOrCreateVectorStoreIn"]>;
4252
+ /**
4253
+ * FindOrCreateVectorStore Output
4254
+ * https://www.substrate.run/nodes#FindOrCreateVectorStore
4255
+ */
4256
+ type Output = components["schemas"]["FindOrCreateVectorStoreOut"];
4257
+ }
4258
+ /**
4259
+ * Find a vector store matching the given collection name, or create a new vector store.
4260
+ *
4261
+ * https://www.substrate.run/nodes#FindOrCreateVectorStore
4262
+ */
4263
+ declare class FindOrCreateVectorStore extends Node {
4264
+ /**
4265
+ * Input arguments: `collection_name`, `model`
4266
+ *
4267
+ * Output fields: `collection_name`, `model`, `num_leaves` (optional)
4268
+ *
4269
+ * https://www.substrate.run/nodes#FindOrCreateVectorStore
4270
+ */
4271
+ constructor(args: FutureExpandAny<components["schemas"]["FindOrCreateVectorStoreIn"]>, options?: Options);
4272
+ /**
4273
+ * Retrieve this node's output from a response.
4274
+ *
4275
+ * Output fields: `collection_name`, `model`, `num_leaves` (optional)
4276
+ *
4277
+ * https://www.substrate.run/nodes#FindOrCreateVectorStore
4278
+ */
4279
+ protected result(): Promise<components["schemas"]["FindOrCreateVectorStoreOut"] | undefined>;
4280
+ /**
4281
+ * Future reference to this node's output.
4282
+ *
4283
+ * Output fields: `collection_name`, `model`, `num_leaves` (optional)
4284
+ *
4285
+ * https://www.substrate.run/nodes#FindOrCreateVectorStore
4286
+ */
4287
+ get future(): FindOrCreateVectorStoreOut;
4288
+ protected output(): components["schemas"]["FindOrCreateVectorStoreOut"];
4289
+ }
4290
+ declare namespace ListVectorStores {
4291
+ /**
4292
+ * ListVectorStores Input
4293
+ * https://www.substrate.run/nodes#ListVectorStores
4294
+ */
4295
+ type Input = FutureExpandAny<components["schemas"]["ListVectorStoresIn"]>;
4296
+ /**
4297
+ * ListVectorStores Output
4298
+ * https://www.substrate.run/nodes#ListVectorStores
4299
+ */
4300
+ type Output = components["schemas"]["ListVectorStoresOut"];
4301
+ }
4302
+ /**
4303
+ * List all vector stores.
4304
+ *
4305
+ * https://www.substrate.run/nodes#ListVectorStores
4306
+ */
4307
+ declare class ListVectorStores extends Node {
4308
+ /**
4309
+ * Input arguments:
4310
+ *
4311
+ * Output fields: `items` (optional)
4312
+ *
4313
+ * https://www.substrate.run/nodes#ListVectorStores
4314
+ */
4315
+ constructor(args: FutureExpandAny<components["schemas"]["ListVectorStoresIn"]>, options?: Options);
4316
+ /**
4317
+ * Retrieve this node's output from a response.
4318
+ *
4319
+ * Output fields: `items` (optional)
4320
+ *
4321
+ * https://www.substrate.run/nodes#ListVectorStores
4322
+ */
4323
+ protected result(): Promise<components["schemas"]["ListVectorStoresOut"] | undefined>;
4324
+ /**
4325
+ * Future reference to this node's output.
4326
+ *
4327
+ * Output fields: `items` (optional)
4328
+ *
4329
+ * https://www.substrate.run/nodes#ListVectorStores
4330
+ */
4331
+ get future(): ListVectorStoresOut;
4332
+ protected output(): components["schemas"]["ListVectorStoresOut"];
4333
+ }
4334
+ declare namespace DeleteVectorStore {
4335
+ /**
4336
+ * DeleteVectorStore Input
4337
+ * https://www.substrate.run/nodes#DeleteVectorStore
4338
+ */
4339
+ type Input = FutureExpandAny<components["schemas"]["DeleteVectorStoreIn"]>;
4340
+ /**
4341
+ * DeleteVectorStore Output
4342
+ * https://www.substrate.run/nodes#DeleteVectorStore
4343
+ */
4344
+ type Output = components["schemas"]["DeleteVectorStoreOut"];
4345
+ }
4346
+ /**
4347
+ * Delete a vector store.
4348
+ *
4349
+ * https://www.substrate.run/nodes#DeleteVectorStore
4350
+ */
4351
+ declare class DeleteVectorStore extends Node {
4352
+ /**
4353
+ * Input arguments: `collection_name`, `model`
4354
+ *
4355
+ * Output fields: `collection_name`, `model`
4356
+ *
4357
+ * https://www.substrate.run/nodes#DeleteVectorStore
4358
+ */
4359
+ constructor(args: FutureExpandAny<components["schemas"]["DeleteVectorStoreIn"]>, options?: Options);
4360
+ /**
4361
+ * Retrieve this node's output from a response.
4362
+ *
4363
+ * Output fields: `collection_name`, `model`
4364
+ *
4365
+ * https://www.substrate.run/nodes#DeleteVectorStore
4366
+ */
4367
+ protected result(): Promise<components["schemas"]["DeleteVectorStoreOut"] | undefined>;
4368
+ /**
4369
+ * Future reference to this node's output.
4370
+ *
4371
+ * Output fields: `collection_name`, `model`
4372
+ *
4373
+ * https://www.substrate.run/nodes#DeleteVectorStore
4374
+ */
4375
+ get future(): DeleteVectorStoreOut;
4376
+ protected output(): components["schemas"]["DeleteVectorStoreOut"];
4377
+ }
4378
+ declare namespace QueryVectorStore {
4379
+ /**
4380
+ * QueryVectorStore Input
4381
+ * https://www.substrate.run/nodes#QueryVectorStore
4382
+ */
4383
+ type Input = FutureExpandAny<components["schemas"]["QueryVectorStoreIn"]>;
4384
+ /**
4385
+ * QueryVectorStore Output
4386
+ * https://www.substrate.run/nodes#QueryVectorStore
4387
+ */
4388
+ type Output = components["schemas"]["QueryVectorStoreOut"];
4389
+ }
4390
+ /**
4391
+ * Query a vector store for similar vectors.
4392
+ *
4393
+ * https://www.substrate.run/nodes#QueryVectorStore
4394
+ */
4395
+ declare class QueryVectorStore extends Node {
4396
+ /**
4397
+ * Input arguments: `collection_name`, `model`, `query_strings` (optional), `query_image_uris` (optional), `query_vectors` (optional), `query_ids` (optional), `top_k` (optional), `ef_search` (optional), `num_leaves_to_search` (optional), `include_values` (optional), `include_metadata` (optional), `filters` (optional)
4398
+ *
4399
+ * Output fields: `results`, `collection_name` (optional), `model` (optional)
4400
+ *
4401
+ * https://www.substrate.run/nodes#QueryVectorStore
4402
+ */
4403
+ constructor(args: FutureExpandAny<components["schemas"]["QueryVectorStoreIn"]>, options?: Options);
4404
+ /**
4405
+ * Retrieve this node's output from a response.
4406
+ *
4407
+ * Output fields: `results`, `collection_name` (optional), `model` (optional)
4408
+ *
4409
+ * https://www.substrate.run/nodes#QueryVectorStore
4410
+ */
4411
+ protected result(): Promise<components["schemas"]["QueryVectorStoreOut"] | undefined>;
4412
+ /**
4413
+ * Future reference to this node's output.
4414
+ *
4415
+ * Output fields: `results`, `collection_name` (optional), `model` (optional)
4416
+ *
4417
+ * https://www.substrate.run/nodes#QueryVectorStore
4418
+ */
4419
+ get future(): QueryVectorStoreOut;
4420
+ protected output(): components["schemas"]["QueryVectorStoreOut"];
4421
+ }
4422
+ declare namespace FetchVectors {
4423
+ /**
4424
+ * FetchVectors Input
4425
+ * https://www.substrate.run/nodes#FetchVectors
4426
+ */
4427
+ type Input = FutureExpandAny<components["schemas"]["FetchVectorsIn"]>;
4428
+ /**
4429
+ * FetchVectors Output
4430
+ * https://www.substrate.run/nodes#FetchVectors
4431
+ */
4432
+ type Output = components["schemas"]["FetchVectorsOut"];
4433
+ }
4434
+ /**
4435
+ * Fetch vectors from a vector store.
4436
+ *
4437
+ * https://www.substrate.run/nodes#FetchVectors
4438
+ */
4439
+ declare class FetchVectors extends Node {
4440
+ /**
4441
+ * Input arguments: `collection_name`, `model`, `ids`
4442
+ *
4443
+ * Output fields: `vectors`
4444
+ *
4445
+ * https://www.substrate.run/nodes#FetchVectors
4446
+ */
4447
+ constructor(args: FutureExpandAny<components["schemas"]["FetchVectorsIn"]>, options?: Options);
4448
+ /**
4449
+ * Retrieve this node's output from a response.
4450
+ *
4451
+ * Output fields: `vectors`
4452
+ *
4453
+ * https://www.substrate.run/nodes#FetchVectors
4454
+ */
4455
+ protected result(): Promise<components["schemas"]["FetchVectorsOut"] | undefined>;
4456
+ /**
4457
+ * Future reference to this node's output.
4458
+ *
4459
+ * Output fields: `vectors`
4460
+ *
4461
+ * https://www.substrate.run/nodes#FetchVectors
4462
+ */
4463
+ get future(): FetchVectorsOut;
4464
+ protected output(): components["schemas"]["FetchVectorsOut"];
4465
+ }
4466
+ declare namespace UpdateVectors {
4467
+ /**
4468
+ * UpdateVectors Input
4469
+ * https://www.substrate.run/nodes#UpdateVectors
4470
+ */
4471
+ type Input = FutureExpandAny<components["schemas"]["UpdateVectorsIn"]>;
4472
+ /**
4473
+ * UpdateVectors Output
4474
+ * https://www.substrate.run/nodes#UpdateVectors
4475
+ */
4476
+ type Output = components["schemas"]["UpdateVectorsOut"];
4477
+ }
4478
+ /**
4479
+ * Update vectors in a vector store.
4480
+ *
4481
+ * https://www.substrate.run/nodes#UpdateVectors
4482
+ */
4483
+ declare class UpdateVectors extends Node {
4484
+ /**
4485
+ * Input arguments: `collection_name`, `model`, `vectors`
4486
+ *
4487
+ * Output fields: `count`
4488
+ *
4489
+ * https://www.substrate.run/nodes#UpdateVectors
4490
+ */
4491
+ constructor(args: FutureExpandAny<components["schemas"]["UpdateVectorsIn"]>, options?: Options);
4492
+ /**
4493
+ * Retrieve this node's output from a response.
4494
+ *
4495
+ * Output fields: `count`
4496
+ *
4497
+ * https://www.substrate.run/nodes#UpdateVectors
4498
+ */
4499
+ protected result(): Promise<components["schemas"]["UpdateVectorsOut"] | undefined>;
4500
+ /**
4501
+ * Future reference to this node's output.
4502
+ *
4503
+ * Output fields: `count`
4504
+ *
4505
+ * https://www.substrate.run/nodes#UpdateVectors
4506
+ */
4507
+ get future(): UpdateVectorsOut;
4508
+ protected output(): components["schemas"]["UpdateVectorsOut"];
4509
+ }
4510
+ declare namespace DeleteVectors {
4511
+ /**
4512
+ * DeleteVectors Input
4513
+ * https://www.substrate.run/nodes#DeleteVectors
4514
+ */
4515
+ type Input = FutureExpandAny<components["schemas"]["DeleteVectorsIn"]>;
4516
+ /**
4517
+ * DeleteVectors Output
4518
+ * https://www.substrate.run/nodes#DeleteVectors
4519
+ */
4520
+ type Output = components["schemas"]["DeleteVectorsOut"];
4521
+ }
4522
+ /**
4523
+ * Delete vectors in a vector store.
4524
+ *
4525
+ * https://www.substrate.run/nodes#DeleteVectors
4526
+ */
4527
+ declare class DeleteVectors extends Node {
4528
+ /**
4529
+ * Input arguments: `collection_name`, `model`, `ids`
4530
+ *
4531
+ * Output fields: `count`
4532
+ *
4533
+ * https://www.substrate.run/nodes#DeleteVectors
4534
+ */
4535
+ constructor(args: FutureExpandAny<components["schemas"]["DeleteVectorsIn"]>, options?: Options);
4536
+ /**
4537
+ * Retrieve this node's output from a response.
4538
+ *
4539
+ * Output fields: `count`
4540
+ *
4541
+ * https://www.substrate.run/nodes#DeleteVectors
4542
+ */
4543
+ protected result(): Promise<components["schemas"]["DeleteVectorsOut"] | undefined>;
4544
+ /**
4545
+ * Future reference to this node's output.
4546
+ *
4547
+ * Output fields: `count`
4548
+ *
4549
+ * https://www.substrate.run/nodes#DeleteVectors
4550
+ */
4551
+ get future(): DeleteVectorsOut;
4552
+ protected output(): components["schemas"]["DeleteVectorsOut"];
4553
+ }
4554
+ type AnyNode = Experimental | Box | If | ComputeText | MultiComputeText | BatchComputeText | BatchComputeJSON | ComputeJSON | MultiComputeJSON | Mistral7BInstruct | Mixtral8x7BInstruct | Llama3Instruct8B | Llama3Instruct70B | Firellava13B | GenerateImage | MultiGenerateImage | InpaintImage | MultiInpaintImage | StableDiffusionXLLightning | StableDiffusionXLInpaint | StableDiffusionXLControlNet | StableVideoDiffusion | InterpolateFrames | TranscribeSpeech | GenerateSpeech | RemoveBackground | EraseImage | UpscaleImage | SegmentUnderPoint | SegmentAnything | SplitDocument | EmbedText | MultiEmbedText | EmbedImage | MultiEmbedImage | JinaV2 | CLIP | FindOrCreateVectorStore | ListVectorStores | DeleteVectorStore | QueryVectorStore | FetchVectors | UpdateVectors | DeleteVectors;
4555
+ type NodeOutput<T> = T extends Experimental ? components["schemas"]["ExperimentalOut"] : T extends Box ? components["schemas"]["BoxOut"] : T extends If ? components["schemas"]["IfOut"] : T extends ComputeText ? components["schemas"]["ComputeTextOut"] : T extends MultiComputeText ? components["schemas"]["MultiComputeTextOut"] : T extends BatchComputeText ? components["schemas"]["BatchComputeTextOut"] : T extends BatchComputeJSON ? components["schemas"]["BatchComputeJSONOut"] : T extends ComputeJSON ? components["schemas"]["ComputeJSONOut"] : T extends MultiComputeJSON ? components["schemas"]["MultiComputeJSONOut"] : T extends Mistral7BInstruct ? components["schemas"]["Mistral7BInstructOut"] : T extends Mixtral8x7BInstruct ? components["schemas"]["Mixtral8x7BInstructOut"] : T extends Llama3Instruct8B ? components["schemas"]["Llama3Instruct8BOut"] : T extends Llama3Instruct70B ? components["schemas"]["Llama3Instruct70BOut"] : T extends Firellava13B ? components["schemas"]["Firellava13BOut"] : T extends GenerateImage ? components["schemas"]["GenerateImageOut"] : T extends MultiGenerateImage ? components["schemas"]["MultiGenerateImageOut"] : T extends InpaintImage ? components["schemas"]["InpaintImageOut"] : T extends MultiInpaintImage ? components["schemas"]["MultiInpaintImageOut"] : T extends StableDiffusionXLLightning ? components["schemas"]["StableDiffusionXLLightningOut"] : T extends StableDiffusionXLInpaint ? components["schemas"]["StableDiffusionXLInpaintOut"] : T extends StableDiffusionXLControlNet ? components["schemas"]["StableDiffusionXLControlNetOut"] : T extends StableVideoDiffusion ? components["schemas"]["StableVideoDiffusionOut"] : T extends InterpolateFrames ? components["schemas"]["InterpolateFramesOut"] : T extends TranscribeSpeech ? components["schemas"]["TranscribeSpeechOut"] : T extends GenerateSpeech ? components["schemas"]["GenerateSpeechOut"] : T extends RemoveBackground ? components["schemas"]["RemoveBackgroundOut"] : T extends EraseImage ? components["schemas"]["EraseImageOut"] : T extends UpscaleImage ? components["schemas"]["UpscaleImageOut"] : T extends SegmentUnderPoint ? components["schemas"]["SegmentUnderPointOut"] : T extends SegmentAnything ? components["schemas"]["SegmentAnythingOut"] : T extends SplitDocument ? components["schemas"]["SplitDocumentOut"] : T extends EmbedText ? components["schemas"]["EmbedTextOut"] : T extends MultiEmbedText ? components["schemas"]["MultiEmbedTextOut"] : T extends EmbedImage ? components["schemas"]["EmbedImageOut"] : T extends MultiEmbedImage ? components["schemas"]["MultiEmbedImageOut"] : T extends JinaV2 ? components["schemas"]["JinaV2Out"] : T extends CLIP ? components["schemas"]["CLIPOut"] : T extends FindOrCreateVectorStore ? components["schemas"]["FindOrCreateVectorStoreOut"] : T extends ListVectorStores ? components["schemas"]["ListVectorStoresOut"] : T extends DeleteVectorStore ? components["schemas"]["DeleteVectorStoreOut"] : T extends QueryVectorStore ? components["schemas"]["QueryVectorStoreOut"] : T extends FetchVectors ? components["schemas"]["FetchVectorsOut"] : T extends UpdateVectors ? components["schemas"]["UpdateVectorsOut"] : T extends DeleteVectors ? components["schemas"]["DeleteVectorsOut"] : never;
4556
+
4557
+ /** Represents an array item within a `Node` output chunk, specifies the field is an array containing this `item` at the `index`. **/
4558
+ type ChunkArrayItem<T = Object> = {
4559
+ object: "array.item";
4560
+ index: number;
4561
+ item: T;
4562
+ };
4563
+ /** Helper types for producing the "Chunk" types used in the `NodeDelta` messages */
4564
+ type ChunkizeObject<T> = T extends object ? {
4565
+ [P in keyof T]: ChunkizeAny<T[P]>;
4566
+ } : T;
4567
+ type ChunkizeArray<T> = T extends (infer U)[] ? ChunkArrayItem<ChunkizeAny<U>> : ChunkArrayItem<T>;
4568
+ type ChunkizeAny<T> = T extends (infer U)[] ? ChunkizeArray<U> : T extends object ? ChunkizeObject<T> : T;
4569
+ /** Stream message that contains the completed `Node` output */
4570
+ type NodeResult<T = Object> = {
4571
+ object: "node.result";
4572
+ nodeId: string;
4573
+ data: T;
4574
+ };
4575
+ /** Stream message that contains a chunk of the `Node` output */
4576
+ type NodeDelta<T = Object> = {
4577
+ object: "node.delta";
4578
+ nodeId: string;
4579
+ data: ChunkizeAny<T>;
4580
+ };
4581
+ /** Stream message when an error happened during a `Node` run. */
4582
+ type NodeError = {
4583
+ object: "node.error";
4584
+ nodeId: string;
4585
+ data: {
4586
+ type: string;
4587
+ message: string;
4588
+ };
4589
+ };
4590
+ type NodeMessage<T = Object> = NodeResult<T> | NodeDelta<T> | NodeError;
4591
+
4592
+ /**
4593
+ * `StreamingResponse` is an async iterator that is used to interact with a stream of Server-Sent Events
4594
+ */
4595
+ declare class StreamingResponse {
4596
+ apiResponse: Response;
4597
+ iterator: any;
4598
+ constructor(response: Response, iterator: any);
4599
+ [Symbol.asyncIterator](): any;
4600
+ tee(n?: number): StreamingResponse[];
4601
+ static fromReponse(response: Response): Promise<StreamingResponse>;
4602
+ }
4603
+ /**
4604
+ * `SubstrateStreamingResponse`
4605
+ */
4606
+ declare class SubstrateStreamingResponse extends StreamingResponse {
4607
+ apiRequest: Request;
4608
+ constructor(request: Request, response: Response, iterator: any);
4609
+ get<T extends AnyNode>(node: T): AsyncGenerator<NodeMessage<NodeOutput<T>>>;
4610
+ tee(n?: number): SubstrateStreamingResponse[];
4611
+ static fromRequestReponse(request: Request, response: Response): Promise<SubstrateStreamingResponse>;
4612
+ }
4613
+
4614
+ declare const sb: {
4615
+ concat: typeof FutureString.concat;
4616
+ jq: typeof Future.jq;
4617
+ interpolate: typeof FutureString.interpolate;
4618
+ streaming: {
4619
+ fromSSEResponse: typeof StreamingResponse.fromReponse;
4620
+ };
4621
+ };
4622
+
4623
+ type Configuration = {
4624
+ /**
4625
+ * [docs/authentication](https://docs.substrate.run/#authentication)
4626
+ */
4627
+ apiKey: string | undefined;
4628
+ /**
4629
+ * [docs/versioning](https://docs.substrate.run/versioning)
4630
+ */
4631
+ apiVersion?: string | undefined;
4632
+ baseUrl?: string;
4633
+ /**
4634
+ * Request timeout in milliseconds. Default: 5m
4635
+ */
4636
+ timeout?: number;
4637
+ /**
4638
+ * Secrets for third party services.
4639
+ */
4640
+ secrets?: Secrets;
4641
+ /**
4642
+ * Add additional headers to each request. These may override headers set by the Substrate client.
4643
+ */
4644
+ additionalHeaders?: Record<string, string>;
4645
+ };
4646
+ type Secrets = {
4647
+ openai?: string;
4648
+ anthropic?: string;
4649
+ };
4650
+ /**
4651
+ * [docs/introduction](https://docs.substrate.run)
4652
+ */
4653
+ declare class Substrate {
4654
+ apiKey: Configuration["apiKey"];
4655
+ baseUrl: NonNullable<Configuration["baseUrl"]>;
4656
+ apiVersion: NonNullable<Configuration["apiVersion"]>;
4657
+ timeout: NonNullable<Configuration["timeout"]>;
4658
+ additionalHeaders: NonNullable<Configuration["additionalHeaders"]>;
4659
+ /**
4660
+ * Initialize the Substrate SDK.
4661
+ */
4662
+ constructor({ apiKey, baseUrl, apiVersion, timeout, secrets, additionalHeaders, }: Configuration);
4663
+ /**
4664
+ * Run the given nodes.
4665
+ *
4666
+ * @throws {SubstrateError} when the server response is an error.
4667
+ * @throws {RequestTimeoutError} when the client has timed out (Configured by `Substrate.timeout`).
4668
+ * @throws {Error} when the client encounters an error making the request.
4669
+ */
4670
+ run(...nodes: Node[]): Promise<SubstrateResponse>;
4671
+ /**
4672
+ * Stream the given nodes.
4673
+ */
4674
+ stream(...nodes: Node[]): Promise<SubstrateStreamingResponse>;
4675
+ /**
4676
+ * Run the given nodes, serialized using `Substrate.serialize`.
4677
+ *
4678
+ * @throws {SubstrateError} when the server response is an error.
4679
+ * @throws {RequestTimeoutError} when the client has timed out (Configured by `Substrate.timeout`).
4680
+ * @throws {Error} when the client encounters an error making the request.
4681
+ */
4682
+ runSerialized(nodes: Node[], endpoint?: string): Promise<SubstrateResponse>;
4683
+ /**
4684
+ * Stream the given nodes, serialized using `Substrate.serialize`.
4685
+ */
4686
+ streamSerialized(serialized: any, endpoint?: string): Promise<SubstrateStreamingResponse>;
4687
+ /**
4688
+ * Return a set of all nodes and their dependent nodes.
4689
+ */
4690
+ static findAllNodes(fromNodes: Node[]): Set<Node>;
4691
+ /**
4692
+ * Return a set of all futures and their dependent futures.
4693
+ */
4694
+ static findAllFutures(fromNodes: Node[]): Set<Future<any>>;
4695
+ /**
4696
+ * Transform an array of nodes into JSON for the Substrate API
4697
+ */
4698
+ static serialize(...nodes: Node[]): any;
4699
+ /**
4700
+ * Returns a url to visualize the given nodes.
4701
+ */
4702
+ static visualize(...nodes: Node[]): string;
4703
+ protected requestOptions(body: any, signal: AbortSignal): {
4704
+ method: string;
4705
+ headers: Headers;
4706
+ body: string;
4707
+ signal: AbortSignal;
4708
+ };
4709
+ protected headers(): Headers;
4710
+ }
4711
+
4712
+ export { BatchComputeJSON, BatchComputeText, Box, CLIP, ComputeJSON, ComputeText, DeleteVectorStore, DeleteVectors, EmbedImage, EmbedText, EraseImage, Experimental, FetchVectors, FindOrCreateVectorStore, Firellava13B, GenerateImage, GenerateSpeech, If, InpaintImage, InterpolateFrames, JinaV2, ListVectorStores, Llama3Instruct70B, Llama3Instruct8B, Mistral7BInstruct, Mixtral8x7BInstruct, MultiComputeJSON, MultiComputeText, MultiEmbedImage, MultiEmbedText, MultiGenerateImage, MultiInpaintImage, QueryVectorStore, RemoveBackground, SegmentAnything, SegmentUnderPoint, SplitDocument, StableDiffusionXLControlNet, StableDiffusionXLInpaint, StableDiffusionXLLightning, StableVideoDiffusion, Substrate, SubstrateError, TranscribeSpeech, UpdateVectors, UpscaleImage, sb };