@vertesia/client 1.6.0-dev.20260918.115658Z → 1.6.0-dev.20260923.085325Z

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (43) hide show
  1. package/lib/AppsApi.d.ts +5 -0
  2. package/lib/AppsApi.d.ts.map +1 -1
  3. package/lib/AppsApi.js +9 -0
  4. package/lib/AppsApi.js.map +1 -1
  5. package/lib/InteractionBase.d.ts +138 -62
  6. package/lib/InteractionBase.d.ts.map +1 -1
  7. package/lib/InteractionOutput.d.ts +4 -0
  8. package/lib/InteractionOutput.d.ts.map +1 -1
  9. package/lib/InteractionOutput.js +13 -0
  10. package/lib/InteractionOutput.js.map +1 -1
  11. package/lib/InternalAccountsApi.d.ts +7 -0
  12. package/lib/InternalAccountsApi.d.ts.map +1 -0
  13. package/lib/InternalAccountsApi.js +10 -0
  14. package/lib/InternalAccountsApi.js.map +1 -0
  15. package/lib/OAuthServerApi.d.ts +2 -1
  16. package/lib/OAuthServerApi.d.ts.map +1 -1
  17. package/lib/OAuthServerApi.js +3 -0
  18. package/lib/OAuthServerApi.js.map +1 -1
  19. package/lib/client.d.ts +2 -0
  20. package/lib/client.d.ts.map +1 -1
  21. package/lib/client.js +3 -0
  22. package/lib/client.js.map +1 -1
  23. package/lib/index.d.ts +1 -0
  24. package/lib/index.d.ts.map +1 -1
  25. package/lib/index.js +1 -0
  26. package/lib/index.js.map +1 -1
  27. package/lib/store/AgentsApi.d.ts.map +1 -1
  28. package/lib/store/AgentsApi.js +15 -0
  29. package/lib/store/AgentsApi.js.map +1 -1
  30. package/lib/vertesia-client.js +4 -4
  31. package/lib/vertesia-client.js.map +1 -1
  32. package/package.json +7 -7
  33. package/src/AppsApi.ts +11 -0
  34. package/src/InteractionOutput.test.ts +14 -0
  35. package/src/InteractionOutput.ts +15 -0
  36. package/src/InternalAccountsApi.ts +12 -0
  37. package/src/OAuthServerApi.ts +6 -0
  38. package/src/app-session.test.ts +23 -0
  39. package/src/client.ts +5 -0
  40. package/src/index.ts +1 -0
  41. package/src/store/AgentsApi.stream.test.ts +33 -1
  42. package/src/store/AgentsApi.ts +17 -0
  43. package/src/store/FilesApi.test.ts +13 -0
@@ -72,7 +72,7 @@ export declare class InteractionBase<P = unknown> {
72
72
  } | undefined;
73
73
  model?: string | undefined;
74
74
  model_options?: {
75
- _option_id: "text-fallback";
75
+ _option_id?: "text-fallback" | undefined;
76
76
  max_tokens?: number | undefined;
77
77
  tool_choice?: "any" | "auto" | "none" | "required" | undefined;
78
78
  temperature?: number | undefined;
@@ -83,7 +83,7 @@ export declare class InteractionBase<P = unknown> {
83
83
  stop_sequence?: string[] | undefined;
84
84
  include_thoughts?: boolean | undefined;
85
85
  } | {
86
- _option_id: "azure-foundry-chat";
86
+ _option_id?: "azure-foundry-chat" | undefined;
87
87
  max_tokens?: number | undefined;
88
88
  temperature?: number | undefined;
89
89
  top_p?: number | undefined;
@@ -94,10 +94,10 @@ export declare class InteractionBase<P = unknown> {
94
94
  image_detail?: "auto" | "high" | "low" | undefined;
95
95
  include_thoughts?: boolean | undefined;
96
96
  } | {
97
- _option_id: "vertexai-imagen";
97
+ _option_id?: "vertexai-imagen" | undefined;
98
98
  number_of_images?: number | undefined;
99
99
  seed?: number | undefined;
100
- person_generation?: "allow_adults" | "allow_all" | "dont_allow" | undefined;
100
+ person_generation?: "allow_adult" | "allow_adults" | "allow_all" | "dont_allow" | undefined;
101
101
  safety_setting?: "block_low_and_above" | "block_medium_and_above" | "block_none" | "block_only_high" | undefined;
102
102
  image_file_type?: "image/jpeg" | "image/png" | undefined;
103
103
  jpeg_compression_quality?: number | undefined;
@@ -114,7 +114,7 @@ export declare class InteractionBase<P = unknown> {
114
114
  controlImageComputation?: boolean | undefined;
115
115
  subjectType?: "SUBJECT_TYPE_ANIMAL" | "SUBJECT_TYPE_DEFAULT" | "SUBJECT_TYPE_PERSON" | "SUBJECT_TYPE_PRODUCT" | undefined;
116
116
  } | {
117
- _option_id: "vertexai-claude";
117
+ _option_id?: "vertexai-claude" | undefined;
118
118
  max_tokens?: number | undefined;
119
119
  temperature?: number | undefined;
120
120
  top_p?: number | undefined;
@@ -126,7 +126,7 @@ export declare class InteractionBase<P = unknown> {
126
126
  cache_enabled?: boolean | undefined;
127
127
  cache_ttl?: "1h" | "5m" | undefined;
128
128
  } | {
129
- _option_id: "vertexai-gemini";
129
+ _option_id?: "vertexai-gemini" | undefined;
130
130
  max_tokens?: number | undefined;
131
131
  temperature?: number | undefined;
132
132
  top_p?: number | undefined;
@@ -141,6 +141,12 @@ export declare class InteractionBase<P = unknown> {
141
141
  thinking_level?: import("@llumiverse/common").ThinkingLevel | undefined;
142
142
  service_tier?: string | undefined;
143
143
  flex?: boolean | undefined;
144
+ speech_voice?: string | undefined;
145
+ speech_language?: string | undefined;
146
+ transcription_language_codes?: string[] | undefined;
147
+ transcription_diarization?: boolean | undefined;
148
+ transcription_word_timestamps?: boolean | undefined;
149
+ transcription_vocabulary?: string[] | undefined;
144
150
  image_aspect_ratio?: "16:9" | "1:1" | "21:9" | "2:3" | "3:2" | "3:4" | "4:3" | "9:16" | undefined;
145
151
  image_size?: "1K" | "2K" | "4K" | undefined;
146
152
  person_generation?: "ALLOW_ADULT" | "ALLOW_ALL" | "ALLOW_NONE" | undefined;
@@ -148,19 +154,19 @@ export declare class InteractionBase<P = unknown> {
148
154
  output_mime_type?: "image/jpeg" | "image/png" | undefined;
149
155
  output_compression_quality?: number | undefined;
150
156
  } | {
151
- _option_id: "vertexai-gemini-omni-video";
157
+ _option_id?: "vertexai-gemini-omni-video" | undefined;
152
158
  task?: "edit" | "extend" | "image_to_video" | "reference_to_video" | "text_to_video" | undefined;
153
159
  aspect_ratio?: "16:9" | "9:16" | undefined;
154
160
  duration_seconds?: number | undefined;
155
161
  resolution?: "1080p" | "360p" | "4k" | "720p" | undefined;
156
162
  } | {
157
- _option_id: "vertexai-grok";
163
+ _option_id?: "vertexai-grok" | undefined;
158
164
  max_tokens?: number | undefined;
159
165
  temperature?: number | undefined;
160
166
  top_p?: number | undefined;
161
167
  stop_sequence?: string[] | undefined;
162
168
  } | {
163
- _option_id: "bedrock-nova-canvas";
169
+ _option_id?: "bedrock-nova-canvas" | undefined;
164
170
  taskType: "BACKGROUND_REMOVAL" | "COLOR_GUIDED_GENERATION" | "IMAGE_VARIATION" | "INPAINTING" | "OUTPAINTING" | "TEXT_IMAGE" | "TEXT_IMAGE_WITH_IMAGE_CONDITIONING";
165
171
  width?: number | undefined;
166
172
  height?: number | undefined;
@@ -174,7 +180,7 @@ export declare class InteractionBase<P = unknown> {
174
180
  similarityStrength?: number | undefined;
175
181
  outPaintingMode?: "DEFAULT" | "PRECISE" | undefined;
176
182
  } | {
177
- _option_id: "bedrock-converse";
183
+ _option_id?: "bedrock-converse" | undefined;
178
184
  max_tokens?: number | undefined;
179
185
  temperature?: number | undefined;
180
186
  top_p?: number | undefined;
@@ -182,39 +188,46 @@ export declare class InteractionBase<P = unknown> {
182
188
  include_thoughts?: boolean | undefined;
183
189
  service_tier?: string | undefined;
184
190
  } | {
185
- _option_id: "bedrock-nova";
191
+ _option_id?: "bedrock-nova" | undefined;
186
192
  max_tokens?: number | undefined;
187
193
  temperature?: number | undefined;
188
194
  top_p?: number | undefined;
195
+ top_k?: number | undefined;
189
196
  stop_sequence?: string[] | undefined;
190
197
  include_thoughts?: boolean | undefined;
191
198
  service_tier?: string | undefined;
192
199
  } | {
193
- _option_id: "bedrock-mistral";
200
+ _option_id?: "bedrock-mistral" | undefined;
194
201
  max_tokens?: number | undefined;
195
202
  temperature?: number | undefined;
196
203
  top_p?: number | undefined;
204
+ top_k?: number | undefined;
197
205
  stop_sequence?: string[] | undefined;
198
206
  include_thoughts?: boolean | undefined;
199
207
  service_tier?: string | undefined;
200
208
  } | {
201
- _option_id: "bedrock-ai21";
209
+ _option_id?: "bedrock-ai21" | undefined;
202
210
  max_tokens?: number | undefined;
203
211
  temperature?: number | undefined;
204
212
  top_p?: number | undefined;
213
+ presence_penalty?: number | undefined;
214
+ frequency_penalty?: number | undefined;
205
215
  stop_sequence?: string[] | undefined;
206
216
  include_thoughts?: boolean | undefined;
207
217
  service_tier?: string | undefined;
208
218
  } | {
209
- _option_id: "bedrock-cohere-command";
219
+ _option_id?: "bedrock-cohere-command" | undefined;
210
220
  max_tokens?: number | undefined;
211
221
  temperature?: number | undefined;
212
222
  top_p?: number | undefined;
223
+ top_k?: number | undefined;
224
+ presence_penalty?: number | undefined;
225
+ frequency_penalty?: number | undefined;
213
226
  stop_sequence?: string[] | undefined;
214
227
  include_thoughts?: boolean | undefined;
215
228
  service_tier?: string | undefined;
216
229
  } | {
217
- _option_id: "bedrock-claude";
230
+ _option_id?: "bedrock-claude" | undefined;
218
231
  max_tokens?: number | undefined;
219
232
  temperature?: number | undefined;
220
233
  top_p?: number | undefined;
@@ -227,7 +240,7 @@ export declare class InteractionBase<P = unknown> {
227
240
  cache_ttl?: "1h" | "5m" | undefined;
228
241
  service_tier?: string | undefined;
229
242
  } | {
230
- _option_id: "bedrock-palmyra";
243
+ _option_id?: "bedrock-palmyra" | undefined;
231
244
  max_tokens?: number | undefined;
232
245
  temperature?: number | undefined;
233
246
  top_p?: number | undefined;
@@ -238,7 +251,7 @@ export declare class InteractionBase<P = unknown> {
238
251
  presence_penalty?: number | undefined;
239
252
  service_tier?: string | undefined;
240
253
  } | {
241
- _option_id: "bedrock-gpt-oss";
254
+ _option_id?: "bedrock-gpt-oss" | undefined;
242
255
  max_tokens?: number | undefined;
243
256
  temperature?: number | undefined;
244
257
  top_p?: number | undefined;
@@ -248,22 +261,22 @@ export declare class InteractionBase<P = unknown> {
248
261
  presence_penalty?: number | undefined;
249
262
  service_tier?: string | undefined;
250
263
  } | {
251
- _option_id: "bedrock-twelvelabs-pegasus";
264
+ _option_id?: "bedrock-twelvelabs-pegasus" | undefined;
252
265
  temperature?: number | undefined;
253
266
  max_tokens?: number | undefined;
254
267
  service_tier?: string | undefined;
255
268
  } | {
256
- _option_id: "bedrock-mantle-responses";
269
+ _option_id?: "bedrock-mantle-responses" | undefined;
257
270
  max_tokens?: number | undefined;
258
271
  temperature?: number | undefined;
259
272
  top_p?: number | undefined;
260
- effort?: "high" | "low" | "medium" | "none" | "xhigh" | undefined;
261
- reasoning_effort?: "high" | "low" | "medium" | "none" | "xhigh" | undefined;
273
+ effort?: "high" | "low" | "max" | "medium" | "none" | "xhigh" | undefined;
274
+ reasoning_effort?: "high" | "low" | "max" | "medium" | "none" | "xhigh" | undefined;
262
275
  verbosity?: "high" | "low" | "medium" | undefined;
263
276
  image_detail?: "auto" | "high" | "low" | undefined;
264
277
  include_thoughts?: boolean | undefined;
265
278
  } | {
266
- _option_id: "bedrock-mantle-chat-completions";
279
+ _option_id?: "bedrock-mantle-chat-completions" | undefined;
267
280
  max_tokens?: number | undefined;
268
281
  temperature?: number | undefined;
269
282
  top_p?: number | undefined;
@@ -272,7 +285,7 @@ export declare class InteractionBase<P = unknown> {
272
285
  reasoning_effort?: "high" | "low" | "medium" | undefined;
273
286
  include_thoughts?: boolean | undefined;
274
287
  } | {
275
- _option_id: "bedrock-mantle-claude";
288
+ _option_id?: "bedrock-mantle-claude" | undefined;
276
289
  max_tokens?: number | undefined;
277
290
  temperature?: number | undefined;
278
291
  top_p?: number | undefined;
@@ -284,7 +297,7 @@ export declare class InteractionBase<P = unknown> {
284
297
  cache_enabled?: boolean | undefined;
285
298
  cache_ttl?: "1h" | "5m" | undefined;
286
299
  } | {
287
- _option_id: "openai-thinking";
300
+ _option_id?: "openai-thinking" | undefined;
288
301
  max_tokens?: number | undefined;
289
302
  tool_choice?: "any" | "auto" | "none" | "required" | undefined;
290
303
  stop_sequence?: string[] | undefined;
@@ -295,7 +308,7 @@ export declare class InteractionBase<P = unknown> {
295
308
  service_tier?: string | undefined;
296
309
  extra_body?: Record<string, unknown> | undefined;
297
310
  } | {
298
- _option_id: "openai-text";
311
+ _option_id?: "openai-text" | undefined;
299
312
  max_tokens?: number | undefined;
300
313
  tool_choice?: "any" | "auto" | "none" | "required" | undefined;
301
314
  effort?: "high" | "low" | "max" | "medium" | "minimal" | "none" | "xhigh" | undefined;
@@ -322,7 +335,7 @@ export declare class InteractionBase<P = unknown> {
322
335
  image_detail?: "auto" | "high" | "low" | undefined;
323
336
  include_thoughts?: boolean | undefined;
324
337
  service_tier?: string | undefined;
325
- _option_id: "openrouter-text";
338
+ _option_id?: "openrouter-text" | undefined;
326
339
  provider_sort?: "exacto" | "latency" | "price" | "throughput" | undefined;
327
340
  provider_order?: string[] | undefined;
328
341
  provider_only?: string[] | undefined;
@@ -333,27 +346,40 @@ export declare class InteractionBase<P = unknown> {
333
346
  provider_zdr?: boolean | undefined;
334
347
  provider_quantizations?: ("bf16" | "fp16" | "fp32" | "fp4" | "fp6" | "fp8" | "int4" | "int8" | "mxfp4" | "mxfp8" | "nvfp4" | "unknown")[] | undefined;
335
348
  } | {
336
- _option_id: "openai-dalle";
349
+ _option_id?: "openai-dalle" | undefined;
337
350
  size?: "1024x1024" | "1024x1792" | "1792x1024" | "256x256" | "512x512" | undefined;
338
351
  image_quality?: "hd" | "standard" | undefined;
339
352
  style?: "natural" | "vivid" | undefined;
340
353
  response_format?: "b64_json" | "url" | undefined;
341
354
  n?: number | undefined;
342
355
  } | {
343
- _option_id: "openai-gpt-image";
356
+ _option_id?: "openai-gpt-image" | undefined;
344
357
  size?: "1024x1024" | "1024x1536" | "1536x1024" | "auto" | undefined;
345
358
  image_quality?: "auto" | "high" | "low" | "medium" | undefined;
346
359
  background?: "auto" | "opaque" | "transparent" | undefined;
347
360
  output_format?: "jpeg" | "png" | "webp" | undefined;
348
361
  } | {
349
- _option_id: "xai-grok-image";
362
+ _option_id?: "openai-transcription" | undefined;
363
+ language?: string | undefined;
364
+ } | {
365
+ _option_id?: "openai-speech" | undefined;
366
+ voice?: string | undefined;
367
+ response_format?: "aac" | "flac" | "mp3" | "opus" | "pcm" | "wav" | undefined;
368
+ speed?: number | undefined;
369
+ instructions?: string | undefined;
370
+ } | {
371
+ _option_id?: "openai-audio" | undefined;
372
+ voice?: string | undefined;
373
+ response_format?: "flac" | "mp3" | "opus" | "pcm16" | "wav" | undefined;
374
+ } | {
375
+ _option_id?: "xai-grok-image" | undefined;
350
376
  aspect_ratio?: "16:9" | "19.5:9" | "1:1" | "1:2" | "20:9" | "2:1" | "2:3" | "3:2" | "3:4" | "4:3" | "9:16" | "9:19.5" | "9:20" | "auto" | undefined;
351
377
  resolution?: "1k" | "2k" | undefined;
352
378
  quality?: "low" | "medium" | undefined;
353
379
  response_format?: "b64_json" | "url" | undefined;
354
380
  n?: number | undefined;
355
381
  } | {
356
- _option_id: "groq-deepseek-thinking";
382
+ _option_id?: "groq-deepseek-thinking" | undefined;
357
383
  max_tokens?: number | undefined;
358
384
  temperature?: number | undefined;
359
385
  top_p?: number | undefined;
@@ -362,7 +388,7 @@ export declare class InteractionBase<P = unknown> {
362
388
  stop_sequence?: string[] | undefined;
363
389
  reasoning_format: "hidden" | "parsed" | "raw";
364
390
  } | {
365
- _option_id: "mistral-text";
391
+ _option_id?: "mistral-text" | undefined;
366
392
  max_tokens?: number | undefined;
367
393
  temperature?: number | undefined;
368
394
  top_p?: number | undefined;
@@ -376,6 +402,18 @@ export declare class InteractionBase<P = unknown> {
376
402
  tool_choice?: "any" | "auto" | "none" | "required" | undefined;
377
403
  prompt_mode?: "reasoning" | undefined;
378
404
  include_thoughts?: boolean | undefined;
405
+ } | {
406
+ _option_id?: "anthropic-claude" | undefined;
407
+ max_tokens?: number | undefined;
408
+ temperature?: number | undefined;
409
+ top_p?: number | undefined;
410
+ top_k?: number | undefined;
411
+ stop_sequence?: string[] | undefined;
412
+ effort?: "high" | "low" | "max" | "medium" | "xhigh" | undefined;
413
+ thinking_budget_tokens?: number | undefined;
414
+ include_thoughts?: boolean | undefined;
415
+ cache_enabled?: boolean | undefined;
416
+ cache_ttl?: "1h" | "5m" | undefined;
379
417
  } | undefined;
380
418
  store_media_results?: boolean | undefined;
381
419
  restriction?: import("@vertesia/common").RunDataStorageLevel | undefined;
@@ -511,7 +549,7 @@ export declare class InteractionBase<P = unknown> {
511
549
  } | undefined;
512
550
  model?: string | undefined;
513
551
  model_options?: {
514
- _option_id: "text-fallback";
552
+ _option_id?: "text-fallback" | undefined;
515
553
  max_tokens?: number | undefined;
516
554
  tool_choice?: "any" | "auto" | "none" | "required" | undefined;
517
555
  temperature?: number | undefined;
@@ -522,7 +560,7 @@ export declare class InteractionBase<P = unknown> {
522
560
  stop_sequence?: string[] | undefined;
523
561
  include_thoughts?: boolean | undefined;
524
562
  } | {
525
- _option_id: "azure-foundry-chat";
563
+ _option_id?: "azure-foundry-chat" | undefined;
526
564
  max_tokens?: number | undefined;
527
565
  temperature?: number | undefined;
528
566
  top_p?: number | undefined;
@@ -533,10 +571,10 @@ export declare class InteractionBase<P = unknown> {
533
571
  image_detail?: "auto" | "high" | "low" | undefined;
534
572
  include_thoughts?: boolean | undefined;
535
573
  } | {
536
- _option_id: "vertexai-imagen";
574
+ _option_id?: "vertexai-imagen" | undefined;
537
575
  number_of_images?: number | undefined;
538
576
  seed?: number | undefined;
539
- person_generation?: "allow_adults" | "allow_all" | "dont_allow" | undefined;
577
+ person_generation?: "allow_adult" | "allow_adults" | "allow_all" | "dont_allow" | undefined;
540
578
  safety_setting?: "block_low_and_above" | "block_medium_and_above" | "block_none" | "block_only_high" | undefined;
541
579
  image_file_type?: "image/jpeg" | "image/png" | undefined;
542
580
  jpeg_compression_quality?: number | undefined;
@@ -553,7 +591,7 @@ export declare class InteractionBase<P = unknown> {
553
591
  controlImageComputation?: boolean | undefined;
554
592
  subjectType?: "SUBJECT_TYPE_ANIMAL" | "SUBJECT_TYPE_DEFAULT" | "SUBJECT_TYPE_PERSON" | "SUBJECT_TYPE_PRODUCT" | undefined;
555
593
  } | {
556
- _option_id: "vertexai-claude";
594
+ _option_id?: "vertexai-claude" | undefined;
557
595
  max_tokens?: number | undefined;
558
596
  temperature?: number | undefined;
559
597
  top_p?: number | undefined;
@@ -565,7 +603,7 @@ export declare class InteractionBase<P = unknown> {
565
603
  cache_enabled?: boolean | undefined;
566
604
  cache_ttl?: "1h" | "5m" | undefined;
567
605
  } | {
568
- _option_id: "vertexai-gemini";
606
+ _option_id?: "vertexai-gemini" | undefined;
569
607
  max_tokens?: number | undefined;
570
608
  temperature?: number | undefined;
571
609
  top_p?: number | undefined;
@@ -580,6 +618,12 @@ export declare class InteractionBase<P = unknown> {
580
618
  thinking_level?: import("@llumiverse/common").ThinkingLevel | undefined;
581
619
  service_tier?: string | undefined;
582
620
  flex?: boolean | undefined;
621
+ speech_voice?: string | undefined;
622
+ speech_language?: string | undefined;
623
+ transcription_language_codes?: string[] | undefined;
624
+ transcription_diarization?: boolean | undefined;
625
+ transcription_word_timestamps?: boolean | undefined;
626
+ transcription_vocabulary?: string[] | undefined;
583
627
  image_aspect_ratio?: "16:9" | "1:1" | "21:9" | "2:3" | "3:2" | "3:4" | "4:3" | "9:16" | undefined;
584
628
  image_size?: "1K" | "2K" | "4K" | undefined;
585
629
  person_generation?: "ALLOW_ADULT" | "ALLOW_ALL" | "ALLOW_NONE" | undefined;
@@ -587,19 +631,19 @@ export declare class InteractionBase<P = unknown> {
587
631
  output_mime_type?: "image/jpeg" | "image/png" | undefined;
588
632
  output_compression_quality?: number | undefined;
589
633
  } | {
590
- _option_id: "vertexai-gemini-omni-video";
634
+ _option_id?: "vertexai-gemini-omni-video" | undefined;
591
635
  task?: "edit" | "extend" | "image_to_video" | "reference_to_video" | "text_to_video" | undefined;
592
636
  aspect_ratio?: "16:9" | "9:16" | undefined;
593
637
  duration_seconds?: number | undefined;
594
638
  resolution?: "1080p" | "360p" | "4k" | "720p" | undefined;
595
639
  } | {
596
- _option_id: "vertexai-grok";
640
+ _option_id?: "vertexai-grok" | undefined;
597
641
  max_tokens?: number | undefined;
598
642
  temperature?: number | undefined;
599
643
  top_p?: number | undefined;
600
644
  stop_sequence?: string[] | undefined;
601
645
  } | {
602
- _option_id: "bedrock-nova-canvas";
646
+ _option_id?: "bedrock-nova-canvas" | undefined;
603
647
  taskType: "BACKGROUND_REMOVAL" | "COLOR_GUIDED_GENERATION" | "IMAGE_VARIATION" | "INPAINTING" | "OUTPAINTING" | "TEXT_IMAGE" | "TEXT_IMAGE_WITH_IMAGE_CONDITIONING";
604
648
  width?: number | undefined;
605
649
  height?: number | undefined;
@@ -613,7 +657,7 @@ export declare class InteractionBase<P = unknown> {
613
657
  similarityStrength?: number | undefined;
614
658
  outPaintingMode?: "DEFAULT" | "PRECISE" | undefined;
615
659
  } | {
616
- _option_id: "bedrock-converse";
660
+ _option_id?: "bedrock-converse" | undefined;
617
661
  max_tokens?: number | undefined;
618
662
  temperature?: number | undefined;
619
663
  top_p?: number | undefined;
@@ -621,39 +665,46 @@ export declare class InteractionBase<P = unknown> {
621
665
  include_thoughts?: boolean | undefined;
622
666
  service_tier?: string | undefined;
623
667
  } | {
624
- _option_id: "bedrock-nova";
668
+ _option_id?: "bedrock-nova" | undefined;
625
669
  max_tokens?: number | undefined;
626
670
  temperature?: number | undefined;
627
671
  top_p?: number | undefined;
672
+ top_k?: number | undefined;
628
673
  stop_sequence?: string[] | undefined;
629
674
  include_thoughts?: boolean | undefined;
630
675
  service_tier?: string | undefined;
631
676
  } | {
632
- _option_id: "bedrock-mistral";
677
+ _option_id?: "bedrock-mistral" | undefined;
633
678
  max_tokens?: number | undefined;
634
679
  temperature?: number | undefined;
635
680
  top_p?: number | undefined;
681
+ top_k?: number | undefined;
636
682
  stop_sequence?: string[] | undefined;
637
683
  include_thoughts?: boolean | undefined;
638
684
  service_tier?: string | undefined;
639
685
  } | {
640
- _option_id: "bedrock-ai21";
686
+ _option_id?: "bedrock-ai21" | undefined;
641
687
  max_tokens?: number | undefined;
642
688
  temperature?: number | undefined;
643
689
  top_p?: number | undefined;
690
+ presence_penalty?: number | undefined;
691
+ frequency_penalty?: number | undefined;
644
692
  stop_sequence?: string[] | undefined;
645
693
  include_thoughts?: boolean | undefined;
646
694
  service_tier?: string | undefined;
647
695
  } | {
648
- _option_id: "bedrock-cohere-command";
696
+ _option_id?: "bedrock-cohere-command" | undefined;
649
697
  max_tokens?: number | undefined;
650
698
  temperature?: number | undefined;
651
699
  top_p?: number | undefined;
700
+ top_k?: number | undefined;
701
+ presence_penalty?: number | undefined;
702
+ frequency_penalty?: number | undefined;
652
703
  stop_sequence?: string[] | undefined;
653
704
  include_thoughts?: boolean | undefined;
654
705
  service_tier?: string | undefined;
655
706
  } | {
656
- _option_id: "bedrock-claude";
707
+ _option_id?: "bedrock-claude" | undefined;
657
708
  max_tokens?: number | undefined;
658
709
  temperature?: number | undefined;
659
710
  top_p?: number | undefined;
@@ -666,7 +717,7 @@ export declare class InteractionBase<P = unknown> {
666
717
  cache_ttl?: "1h" | "5m" | undefined;
667
718
  service_tier?: string | undefined;
668
719
  } | {
669
- _option_id: "bedrock-palmyra";
720
+ _option_id?: "bedrock-palmyra" | undefined;
670
721
  max_tokens?: number | undefined;
671
722
  temperature?: number | undefined;
672
723
  top_p?: number | undefined;
@@ -677,7 +728,7 @@ export declare class InteractionBase<P = unknown> {
677
728
  presence_penalty?: number | undefined;
678
729
  service_tier?: string | undefined;
679
730
  } | {
680
- _option_id: "bedrock-gpt-oss";
731
+ _option_id?: "bedrock-gpt-oss" | undefined;
681
732
  max_tokens?: number | undefined;
682
733
  temperature?: number | undefined;
683
734
  top_p?: number | undefined;
@@ -687,22 +738,22 @@ export declare class InteractionBase<P = unknown> {
687
738
  presence_penalty?: number | undefined;
688
739
  service_tier?: string | undefined;
689
740
  } | {
690
- _option_id: "bedrock-twelvelabs-pegasus";
741
+ _option_id?: "bedrock-twelvelabs-pegasus" | undefined;
691
742
  temperature?: number | undefined;
692
743
  max_tokens?: number | undefined;
693
744
  service_tier?: string | undefined;
694
745
  } | {
695
- _option_id: "bedrock-mantle-responses";
746
+ _option_id?: "bedrock-mantle-responses" | undefined;
696
747
  max_tokens?: number | undefined;
697
748
  temperature?: number | undefined;
698
749
  top_p?: number | undefined;
699
- effort?: "high" | "low" | "medium" | "none" | "xhigh" | undefined;
700
- reasoning_effort?: "high" | "low" | "medium" | "none" | "xhigh" | undefined;
750
+ effort?: "high" | "low" | "max" | "medium" | "none" | "xhigh" | undefined;
751
+ reasoning_effort?: "high" | "low" | "max" | "medium" | "none" | "xhigh" | undefined;
701
752
  verbosity?: "high" | "low" | "medium" | undefined;
702
753
  image_detail?: "auto" | "high" | "low" | undefined;
703
754
  include_thoughts?: boolean | undefined;
704
755
  } | {
705
- _option_id: "bedrock-mantle-chat-completions";
756
+ _option_id?: "bedrock-mantle-chat-completions" | undefined;
706
757
  max_tokens?: number | undefined;
707
758
  temperature?: number | undefined;
708
759
  top_p?: number | undefined;
@@ -711,7 +762,7 @@ export declare class InteractionBase<P = unknown> {
711
762
  reasoning_effort?: "high" | "low" | "medium" | undefined;
712
763
  include_thoughts?: boolean | undefined;
713
764
  } | {
714
- _option_id: "bedrock-mantle-claude";
765
+ _option_id?: "bedrock-mantle-claude" | undefined;
715
766
  max_tokens?: number | undefined;
716
767
  temperature?: number | undefined;
717
768
  top_p?: number | undefined;
@@ -723,7 +774,7 @@ export declare class InteractionBase<P = unknown> {
723
774
  cache_enabled?: boolean | undefined;
724
775
  cache_ttl?: "1h" | "5m" | undefined;
725
776
  } | {
726
- _option_id: "openai-thinking";
777
+ _option_id?: "openai-thinking" | undefined;
727
778
  max_tokens?: number | undefined;
728
779
  tool_choice?: "any" | "auto" | "none" | "required" | undefined;
729
780
  stop_sequence?: string[] | undefined;
@@ -734,7 +785,7 @@ export declare class InteractionBase<P = unknown> {
734
785
  service_tier?: string | undefined;
735
786
  extra_body?: Record<string, unknown> | undefined;
736
787
  } | {
737
- _option_id: "openai-text";
788
+ _option_id?: "openai-text" | undefined;
738
789
  max_tokens?: number | undefined;
739
790
  tool_choice?: "any" | "auto" | "none" | "required" | undefined;
740
791
  effort?: "high" | "low" | "max" | "medium" | "minimal" | "none" | "xhigh" | undefined;
@@ -761,7 +812,7 @@ export declare class InteractionBase<P = unknown> {
761
812
  image_detail?: "auto" | "high" | "low" | undefined;
762
813
  include_thoughts?: boolean | undefined;
763
814
  service_tier?: string | undefined;
764
- _option_id: "openrouter-text";
815
+ _option_id?: "openrouter-text" | undefined;
765
816
  provider_sort?: "exacto" | "latency" | "price" | "throughput" | undefined;
766
817
  provider_order?: string[] | undefined;
767
818
  provider_only?: string[] | undefined;
@@ -772,27 +823,40 @@ export declare class InteractionBase<P = unknown> {
772
823
  provider_zdr?: boolean | undefined;
773
824
  provider_quantizations?: ("bf16" | "fp16" | "fp32" | "fp4" | "fp6" | "fp8" | "int4" | "int8" | "mxfp4" | "mxfp8" | "nvfp4" | "unknown")[] | undefined;
774
825
  } | {
775
- _option_id: "openai-dalle";
826
+ _option_id?: "openai-dalle" | undefined;
776
827
  size?: "1024x1024" | "1024x1792" | "1792x1024" | "256x256" | "512x512" | undefined;
777
828
  image_quality?: "hd" | "standard" | undefined;
778
829
  style?: "natural" | "vivid" | undefined;
779
830
  response_format?: "b64_json" | "url" | undefined;
780
831
  n?: number | undefined;
781
832
  } | {
782
- _option_id: "openai-gpt-image";
833
+ _option_id?: "openai-gpt-image" | undefined;
783
834
  size?: "1024x1024" | "1024x1536" | "1536x1024" | "auto" | undefined;
784
835
  image_quality?: "auto" | "high" | "low" | "medium" | undefined;
785
836
  background?: "auto" | "opaque" | "transparent" | undefined;
786
837
  output_format?: "jpeg" | "png" | "webp" | undefined;
787
838
  } | {
788
- _option_id: "xai-grok-image";
839
+ _option_id?: "openai-transcription" | undefined;
840
+ language?: string | undefined;
841
+ } | {
842
+ _option_id?: "openai-speech" | undefined;
843
+ voice?: string | undefined;
844
+ response_format?: "aac" | "flac" | "mp3" | "opus" | "pcm" | "wav" | undefined;
845
+ speed?: number | undefined;
846
+ instructions?: string | undefined;
847
+ } | {
848
+ _option_id?: "openai-audio" | undefined;
849
+ voice?: string | undefined;
850
+ response_format?: "flac" | "mp3" | "opus" | "pcm16" | "wav" | undefined;
851
+ } | {
852
+ _option_id?: "xai-grok-image" | undefined;
789
853
  aspect_ratio?: "16:9" | "19.5:9" | "1:1" | "1:2" | "20:9" | "2:1" | "2:3" | "3:2" | "3:4" | "4:3" | "9:16" | "9:19.5" | "9:20" | "auto" | undefined;
790
854
  resolution?: "1k" | "2k" | undefined;
791
855
  quality?: "low" | "medium" | undefined;
792
856
  response_format?: "b64_json" | "url" | undefined;
793
857
  n?: number | undefined;
794
858
  } | {
795
- _option_id: "groq-deepseek-thinking";
859
+ _option_id?: "groq-deepseek-thinking" | undefined;
796
860
  max_tokens?: number | undefined;
797
861
  temperature?: number | undefined;
798
862
  top_p?: number | undefined;
@@ -801,7 +865,7 @@ export declare class InteractionBase<P = unknown> {
801
865
  stop_sequence?: string[] | undefined;
802
866
  reasoning_format: "hidden" | "parsed" | "raw";
803
867
  } | {
804
- _option_id: "mistral-text";
868
+ _option_id?: "mistral-text" | undefined;
805
869
  max_tokens?: number | undefined;
806
870
  temperature?: number | undefined;
807
871
  top_p?: number | undefined;
@@ -815,6 +879,18 @@ export declare class InteractionBase<P = unknown> {
815
879
  tool_choice?: "any" | "auto" | "none" | "required" | undefined;
816
880
  prompt_mode?: "reasoning" | undefined;
817
881
  include_thoughts?: boolean | undefined;
882
+ } | {
883
+ _option_id?: "anthropic-claude" | undefined;
884
+ max_tokens?: number | undefined;
885
+ temperature?: number | undefined;
886
+ top_p?: number | undefined;
887
+ top_k?: number | undefined;
888
+ stop_sequence?: string[] | undefined;
889
+ effort?: "high" | "low" | "max" | "medium" | "xhigh" | undefined;
890
+ thinking_budget_tokens?: number | undefined;
891
+ include_thoughts?: boolean | undefined;
892
+ cache_enabled?: boolean | undefined;
893
+ cache_ttl?: "1h" | "5m" | undefined;
818
894
  } | undefined;
819
895
  store_media_results?: boolean | undefined;
820
896
  restriction?: import("@vertesia/common").RunDataStorageLevel | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"InteractionBase.d.ts","sourceRoot":"","sources":["../src/InteractionBase.ts"],"names":[],"mappings":"AAAA,OAA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAEP;IAED,MAAM,CAAC,OAAO,EAAE,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAEvC;IAGD,MAAM,CAAC,KAAK,EAAE,CAAC,QAEd;IAED;;;;;;;;;;OAUG;IACG,OAAO,CACT,OAAO,GAAE,2BAAgC,EACzC,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,GAClC,OAAO,CAAC,0BAA0B,CAAC,CAAC,CAAC,CAAC,CAExC;CACJ"}
@@ -112,6 +112,10 @@ export declare class InteractionOutput<T = unknown> {
112
112
  * Get an array of all image values (base64 data URLs or URLs).
113
113
  */
114
114
  images(): string[];
115
+ hasAudio(): boolean;
116
+ /** Get complete audio metadata and its durable file reference. */
117
+ audios(): import("@llumiverse/common").AudioResult[];
118
+ audio(): import("@llumiverse/common").AudioResult;
115
119
  /** Get the first video result URI. */
116
120
  video(): string;
117
121
  /** Get all video result URIs. */
@@ -1 +1 @@
1
- {"version":3,"file":"InteractionOutput.d.ts","sourceRoot":"","sources":["../src/InteractionOutput.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AACvE,OAAO,KAAK,EAAE,YAAY,EAAE,0BAA0B,EAAE,MAAM,kBAAkB,CAAC;AAEjF;;;GAGG;AACH,eAAO,MAAM,qBAAqB,eAA8B,CAAC;AAEjE,wBAAgB,iCAAiC,CAAC,OAAO,GAAG,OAAO,EAAE,OAAO,GAAG,OAAO,EAClF,CAAC,EAAE,0BAA0B,CAAC,OAAO,CAAC,GACvC,kCAAkC,CAAC,OAAO,EAAE,OAAO,CAAC,CAGtD;AAED,wBAAgB,mBAAmB,CAAC,OAAO,GAAG,OAAO,EAAE,OAAO,GAAG,OAAO,EACpE,CAAC,EAAE,YAAY,CAAC,OAAO,CAAC,GACzB,oBAAoB,CAAC,OAAO,EAAE,OAAO,CAAC,CAGxC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,qBAAa,iBAAiB,CAAC,CAAC,GAAG,OAAO;aAKV,OAAO,EAAE,gBAAgB,EAAE;IAJvD;;;OAGG;IACH,YAA4B,OAAO,EAAE,gBAAgB,EAAE,EAAI;IAE3D;;;;;;;;;;;;;;;;;;;;;OAqBG;IACH,MAAM,CAAC,IAAI,CAAC,CAAC,GAAG,OAAO,EACnB,OAAO,EAAE,gBAAgB,EAAE,GAAG,sBAAsB,CAAC,CAAC,CAAC,GAAG,UAAU,GAAG,MAAM,GAAG,IAAI,GAAG,SAAS,GACjG,sBAAsB,CAAC,CAAC,CAAC,CAe3B;IAED,MAAM,CAAC,wBAAwB,CAAC,GAAG,EAAE,OAAO,GAAG,OAAO,CAErD;IAED,IAAI,OAAO,YAEV;IAED,SAAS,YAER;IAED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,CAAC,CAAC;AAU5F,MAAM,WAAW,kCAAkC,CAAC,OAAO,GAAG,OAAO,EAAE,OAAO,GAAG,OAAO,CACpF,SAAQ,0BAA0B,CAAC,OAAO,CAAC;IAC3C,MAAM,EAAE,sBAAsB,CAAC,OAAO,CAAC,CAAC;CAC3C;AAED,MAAM,WAAW,oBAAoB,CAAC,OAAO,GAAG,OAAO,EAAE,OAAO,GAAG,OAAO,CAAE,SAAQ,YAAY,CAAC,OAAO,CAAC;IACrG,MAAM,EAAE,sBAAsB,CAAC,OAAO,CAAC,CAAC;CAC3C;AAED;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAgB,uBAAuB,CAAC,CAAC,GAAG,OAAO,EAAE,OAAO,EAAE,gBAAgB,EAAE,GAAG,sBAAsB,CAAC,CAAC,CAAC,CAwB3G"}
@@ -191,6 +191,19 @@ export class InteractionOutput {
191
191
  images() {
192
192
  return this.results.filter((r) => r.type === 'image').map((r) => r.value);
193
193
  }
194
+ hasAudio() {
195
+ return this.results.some((r) => r.type === 'audio');
196
+ }
197
+ /** Get complete audio metadata and its durable file reference. */
198
+ audios() {
199
+ return this.results.filter((r) => r.type === 'audio');
200
+ }
201
+ audio() {
202
+ const result = this.audios()[0];
203
+ if (!result)
204
+ throw new Error('No audio result found');
205
+ return result;
206
+ }
194
207
  /** Get the first video result URI. */
195
208
  video() {
196
209
  const videoResult = this.results.find((r) => r.type === 'video');