ql-agent-sdk 1.0.2 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +169 -1
- package/dist/index.cjs +160 -26
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +331 -8
- package/dist/index.d.ts +331 -8
- package/dist/index.js +160 -26
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -4,6 +4,11 @@ interface JsonRequestOptions {
|
|
|
4
4
|
signal?: AbortSignal;
|
|
5
5
|
headers?: Record<string, string>;
|
|
6
6
|
}
|
|
7
|
+
interface FormRequestOptions {
|
|
8
|
+
form: FormData;
|
|
9
|
+
signal?: AbortSignal;
|
|
10
|
+
headers?: Record<string, string>;
|
|
11
|
+
}
|
|
7
12
|
/**
|
|
8
13
|
* Internal transport used by the API namespaces. Keeps the API key inside a
|
|
9
14
|
* closure (never exposed) and normalizes responses/errors for the caller.
|
|
@@ -11,6 +16,8 @@ interface JsonRequestOptions {
|
|
|
11
16
|
interface Transport {
|
|
12
17
|
/** Perform a JSON request and return the unwrapped `data` payload. */
|
|
13
18
|
json<T>(method: string, path: string, opts?: JsonRequestOptions): Promise<T>;
|
|
19
|
+
/** Perform a multipart/form-data request and return the unwrapped `data` payload. */
|
|
20
|
+
form<T>(path: string, opts: FormRequestOptions): Promise<T>;
|
|
14
21
|
/**
|
|
15
22
|
* Perform a request expected to stream SSE. Returns the response body stream
|
|
16
23
|
* after verifying a 2xx + text/event-stream; throws QLError otherwise.
|
|
@@ -49,6 +56,8 @@ interface ChatInput {
|
|
|
49
56
|
messages: ChatMessage[];
|
|
50
57
|
/** Optional internal user id; defaults to the key's workspace when omitted. */
|
|
51
58
|
userId?: string;
|
|
59
|
+
/** Optional OpenRouter model id override — wins over the workspace director-panel default. */
|
|
60
|
+
modelId?: string;
|
|
52
61
|
/** Optional OpenRouter response-format hint (e.g. `{ type: "json_object" }`). */
|
|
53
62
|
response_format?: Record<string, unknown>;
|
|
54
63
|
}
|
|
@@ -328,6 +337,8 @@ interface ImageReferenceInput {
|
|
|
328
337
|
/** Input for `images.generate`. */
|
|
329
338
|
interface ImageGenerateInput {
|
|
330
339
|
prompt: string;
|
|
340
|
+
/** Explicit registry model id override (wins over `model`, the workspace default, and `tier`). */
|
|
341
|
+
modelId?: string;
|
|
331
342
|
/** Explicit OpenRouter model id (wins over `tier`). */
|
|
332
343
|
model?: string;
|
|
333
344
|
/** Tier to resolve a model from (used when `model` is omitted). */
|
|
@@ -359,6 +370,263 @@ interface ImageGenerateResult {
|
|
|
359
370
|
tier: string;
|
|
360
371
|
latencyMs: number;
|
|
361
372
|
}
|
|
373
|
+
type VideoTier = "standard" | "professional" | "advanced";
|
|
374
|
+
/** A single pricing entry for a video model. */
|
|
375
|
+
interface VideoPricingEntry {
|
|
376
|
+
/** What is billed, e.g. "output_video" / "voiceover". */
|
|
377
|
+
billable: string;
|
|
378
|
+
/** Billing unit: per rendered second, or flat per request. */
|
|
379
|
+
unit: "second" | "request";
|
|
380
|
+
costUsd: number;
|
|
381
|
+
}
|
|
382
|
+
/** A tiered video-generation model as returned by `videos.listModels`. */
|
|
383
|
+
interface VideoModelInfo {
|
|
384
|
+
id: string;
|
|
385
|
+
name: string;
|
|
386
|
+
tier: VideoTier;
|
|
387
|
+
description: string;
|
|
388
|
+
/** Short best-use-case label for UI copy. */
|
|
389
|
+
bestFor: string;
|
|
390
|
+
/** Execution engine (e.g. "motion-graphics"). */
|
|
391
|
+
engine: string;
|
|
392
|
+
supportsProductImages: boolean;
|
|
393
|
+
maxReferenceImages: number;
|
|
394
|
+
supportsReferenceVideos: boolean;
|
|
395
|
+
maxReferenceVideos: number;
|
|
396
|
+
supportedAspectRatios: string[];
|
|
397
|
+
supportedResolutions: string[];
|
|
398
|
+
/** Inclusive [min, max] duration in seconds. */
|
|
399
|
+
durationRange: [number, number];
|
|
400
|
+
voiceoverSupport: boolean;
|
|
401
|
+
pricing: {
|
|
402
|
+
summary: string;
|
|
403
|
+
entries: VideoPricingEntry[];
|
|
404
|
+
};
|
|
405
|
+
recommended: boolean;
|
|
406
|
+
enabled: boolean;
|
|
407
|
+
/** Runtime engine availability (render toolchain present). */
|
|
408
|
+
available: boolean;
|
|
409
|
+
}
|
|
410
|
+
/** Result of `videos.listModels`. */
|
|
411
|
+
interface VideoModelsResult {
|
|
412
|
+
models: VideoModelInfo[];
|
|
413
|
+
engine: {
|
|
414
|
+
available: boolean;
|
|
415
|
+
detail: string;
|
|
416
|
+
};
|
|
417
|
+
}
|
|
418
|
+
/** Input for `videos.generate`. */
|
|
419
|
+
interface VideoGenerateInput {
|
|
420
|
+
/** The creative brief / script for the video. */
|
|
421
|
+
prompt: string;
|
|
422
|
+
/** Explicit registry model id override (wins over `model`, the workspace default, and `tier`). */
|
|
423
|
+
modelId?: string;
|
|
424
|
+
/** Explicit registry model id (wins over `tier`). */
|
|
425
|
+
model?: string;
|
|
426
|
+
/** Tier to resolve a model from (used when `model` is omitted). */
|
|
427
|
+
tier?: VideoTier | string;
|
|
428
|
+
/** Product/reference images — base64 data URLs or https URLs. Order defines IMG_0..N. */
|
|
429
|
+
images_list?: string[];
|
|
430
|
+
/** Reference (style) videos — https URLs only (upload local files via `files.upload`). */
|
|
431
|
+
video_files?: string[];
|
|
432
|
+
/** e.g. "16:9", "9:16", "1:1". Default "16:9". */
|
|
433
|
+
aspect_ratio?: string;
|
|
434
|
+
/** Duration in seconds (must be within the model's durationRange). */
|
|
435
|
+
duration?: number;
|
|
436
|
+
/** e.g. "720p" | "1080p". Default "720p". */
|
|
437
|
+
resolution?: string;
|
|
438
|
+
/** Bake an ElevenLabs voiceover into the render (requires `narration`). */
|
|
439
|
+
generate_audio?: boolean;
|
|
440
|
+
/** Voiceover text (used when `generate_audio` is true). Max 3000 chars. */
|
|
441
|
+
narration?: string;
|
|
442
|
+
}
|
|
443
|
+
/** Returned when a video job is created (HTTP 202). */
|
|
444
|
+
interface VideoTaskCreated {
|
|
445
|
+
taskId: string;
|
|
446
|
+
status: "queued";
|
|
447
|
+
}
|
|
448
|
+
type VideoTaskStatus = "queued" | "rendering" | "completed" | "failed" | "cancelled" | (string & {});
|
|
449
|
+
/** A video job snapshot, as returned by `videos.getTask`. */
|
|
450
|
+
interface VideoTask {
|
|
451
|
+
taskId: string;
|
|
452
|
+
status: VideoTaskStatus;
|
|
453
|
+
progress?: {
|
|
454
|
+
current: number;
|
|
455
|
+
total: number;
|
|
456
|
+
message?: string;
|
|
457
|
+
};
|
|
458
|
+
/** Served media path (e.g. /generated/video-….mp4) once completed. */
|
|
459
|
+
outputUrl?: string;
|
|
460
|
+
mime?: string;
|
|
461
|
+
ext?: string;
|
|
462
|
+
/** Actual rendered duration in seconds. */
|
|
463
|
+
durationSec?: number;
|
|
464
|
+
error?: string;
|
|
465
|
+
model?: string;
|
|
466
|
+
tier?: string;
|
|
467
|
+
latencyMs?: number;
|
|
468
|
+
createdAt: string | Date;
|
|
469
|
+
completedAt: string | Date | null;
|
|
470
|
+
}
|
|
471
|
+
/** Options for polling / waiting on a video job. */
|
|
472
|
+
interface VideoWaitOptions {
|
|
473
|
+
/** Base delay between polls in ms (default 2000). Grows with backoff up to `maxIntervalMs`. */
|
|
474
|
+
intervalMs?: number;
|
|
475
|
+
/** Upper bound for the backoff delay in ms (default 15000). */
|
|
476
|
+
maxIntervalMs?: number;
|
|
477
|
+
/** Stop waiting after this many ms and throw a timeout error. Omit to wait until terminal or abort. */
|
|
478
|
+
timeoutMs?: number;
|
|
479
|
+
/** Abort polling at any time. */
|
|
480
|
+
signal?: AbortSignal;
|
|
481
|
+
/** Called after each poll with the latest job snapshot. */
|
|
482
|
+
onTick?: (task: VideoTask) => void;
|
|
483
|
+
}
|
|
484
|
+
/** Per-role model defaults as configured in the director panel. */
|
|
485
|
+
interface WorkspaceModelConfig {
|
|
486
|
+
status: "active" | "inactive";
|
|
487
|
+
/** Masked OpenRouter key — the raw key is never returned by the API. */
|
|
488
|
+
keyMasked: string;
|
|
489
|
+
/** Optional chat-completions base URL override (empty = public OpenRouter API). */
|
|
490
|
+
baseUrl: string;
|
|
491
|
+
reasoning: string;
|
|
492
|
+
instruct: string;
|
|
493
|
+
response: string;
|
|
494
|
+
vision: string;
|
|
495
|
+
image: string;
|
|
496
|
+
video: string;
|
|
497
|
+
/** Ordered per-role fallback model ids (max 3 each), tried on provider failure. */
|
|
498
|
+
fallbacks: {
|
|
499
|
+
reasoning: string[];
|
|
500
|
+
instruct: string[];
|
|
501
|
+
response: string[];
|
|
502
|
+
vision: string[];
|
|
503
|
+
image: string[];
|
|
504
|
+
video: string[];
|
|
505
|
+
};
|
|
506
|
+
}
|
|
507
|
+
/** Result of `workspace.getModels`. */
|
|
508
|
+
interface WorkspaceModelsResult {
|
|
509
|
+
openrouter: WorkspaceModelConfig;
|
|
510
|
+
}
|
|
511
|
+
/** Partial model-config update for `workspace.update` / `workspace.updateModels`. */
|
|
512
|
+
interface WorkspaceModelsUpdateInput {
|
|
513
|
+
status?: "active" | "inactive";
|
|
514
|
+
/** Full OpenRouter API key to store/rotate. Omit to leave unchanged. */
|
|
515
|
+
key?: string;
|
|
516
|
+
/** Optional chat-completions base URL override (defaults to the public OpenRouter API). */
|
|
517
|
+
baseUrl?: string;
|
|
518
|
+
reasoning?: string;
|
|
519
|
+
instruct?: string;
|
|
520
|
+
response?: string;
|
|
521
|
+
vision?: string;
|
|
522
|
+
image?: string;
|
|
523
|
+
video?: string;
|
|
524
|
+
/** Ordered per-role fallback model ids (max 3 each). */
|
|
525
|
+
fallbacks?: {
|
|
526
|
+
reasoning?: string[];
|
|
527
|
+
instruct?: string[];
|
|
528
|
+
response?: string[];
|
|
529
|
+
vision?: string[];
|
|
530
|
+
image?: string[];
|
|
531
|
+
video?: string[];
|
|
532
|
+
};
|
|
533
|
+
}
|
|
534
|
+
/** Input for `workspace.update`. */
|
|
535
|
+
interface WorkspaceUpdateInput {
|
|
536
|
+
name?: string;
|
|
537
|
+
config?: {
|
|
538
|
+
openrouter?: WorkspaceModelsUpdateInput;
|
|
539
|
+
};
|
|
540
|
+
}
|
|
541
|
+
/** A single OpenRouter catalog model. */
|
|
542
|
+
interface CatalogModel {
|
|
543
|
+
id: string;
|
|
544
|
+
name: string;
|
|
545
|
+
contextLength: number | null;
|
|
546
|
+
promptPrice: number | null;
|
|
547
|
+
completionPrice: number | null;
|
|
548
|
+
}
|
|
549
|
+
/** Result of `workspace.listCatalogModels`. */
|
|
550
|
+
interface CatalogResult {
|
|
551
|
+
models: CatalogModel[];
|
|
552
|
+
/** True when the upstream fetch failed and a cached snapshot was served. */
|
|
553
|
+
stale?: boolean;
|
|
554
|
+
}
|
|
555
|
+
/** Result of `workspace.verifyOpenRouterKey`. */
|
|
556
|
+
interface VerifyKeyResult {
|
|
557
|
+
valid: boolean;
|
|
558
|
+
error?: string;
|
|
559
|
+
}
|
|
560
|
+
/** A v1 API key with rotation metadata (hashes never leave the server). */
|
|
561
|
+
interface ApiKeyInfo {
|
|
562
|
+
_id: string;
|
|
563
|
+
name: string;
|
|
564
|
+
prefix: string;
|
|
565
|
+
scopes: string[];
|
|
566
|
+
createdAt: string | Date;
|
|
567
|
+
lastUsedAt: string | Date | null;
|
|
568
|
+
revokedAt: string | Date | null;
|
|
569
|
+
/** When the key is auto-deleted (createdAt + lifetime). */
|
|
570
|
+
rotatesAt: string | Date;
|
|
571
|
+
/** Whole days remaining until rotation (0 when expired). */
|
|
572
|
+
daysLeft: number;
|
|
573
|
+
}
|
|
574
|
+
/** Result of `workspace.listKeys`. */
|
|
575
|
+
interface KeysResult {
|
|
576
|
+
/** Key lifetime in days before auto-deletion. */
|
|
577
|
+
lifetimeDays: number;
|
|
578
|
+
keys: ApiKeyInfo[];
|
|
579
|
+
}
|
|
580
|
+
/** Input for `audio.textToSpeech`. */
|
|
581
|
+
interface TtsInput {
|
|
582
|
+
/** Text to synthesize (max 3000 chars). */
|
|
583
|
+
text: string;
|
|
584
|
+
/** ElevenLabs voice id (list via `audio.voices`). Defaults to the platform voice. */
|
|
585
|
+
voiceId?: string;
|
|
586
|
+
/** Voice stability 0..1 (default 0.5). */
|
|
587
|
+
stability?: number;
|
|
588
|
+
/** Similarity boost 0..1 (default 0.75). */
|
|
589
|
+
similarityBoost?: number;
|
|
590
|
+
}
|
|
591
|
+
/** Result of `audio.textToSpeech`. */
|
|
592
|
+
interface TtsResult {
|
|
593
|
+
/** Served audio path (e.g. /generated/tts-….mp3). */
|
|
594
|
+
url: string;
|
|
595
|
+
voiceId: string;
|
|
596
|
+
modelId: string;
|
|
597
|
+
bytes: number;
|
|
598
|
+
latencyMs: number;
|
|
599
|
+
}
|
|
600
|
+
/** A single ElevenLabs voice as returned by `audio.voices`. */
|
|
601
|
+
interface VoiceInfo {
|
|
602
|
+
id: string;
|
|
603
|
+
name: string;
|
|
604
|
+
}
|
|
605
|
+
/** Result of `audio.voices`. */
|
|
606
|
+
interface VoicesResult {
|
|
607
|
+
voices: VoiceInfo[];
|
|
608
|
+
/** "live" = fetched from the provider; "none" = no provider key configured. */
|
|
609
|
+
source: "live" | "none";
|
|
610
|
+
note?: string;
|
|
611
|
+
}
|
|
612
|
+
/** Result of `files.upload`. */
|
|
613
|
+
interface UploadedFile {
|
|
614
|
+
/** Stable served path (e.g. /uploads/<workspace>/<file>) usable as a media input URL. */
|
|
615
|
+
url: string;
|
|
616
|
+
filename: string;
|
|
617
|
+
size: number;
|
|
618
|
+
contentType: string;
|
|
619
|
+
}
|
|
620
|
+
/** Options for `files.upload`. */
|
|
621
|
+
interface FileUploadOptions {
|
|
622
|
+
/** Override the stored display name (extension is kept from the file). */
|
|
623
|
+
filename?: string;
|
|
624
|
+
/**
|
|
625
|
+
* Coarse progress callback. Fetch does not expose upload byte progress, so this
|
|
626
|
+
* reports 0 at start and 100 on completion.
|
|
627
|
+
*/
|
|
628
|
+
onProgress?: (percent: number) => void;
|
|
629
|
+
}
|
|
362
630
|
|
|
363
631
|
declare function isTerminalTaskStatus(status: string): boolean;
|
|
364
632
|
/**
|
|
@@ -377,15 +645,24 @@ declare class TaskHandle {
|
|
|
377
645
|
get(signal?: AbortSignal): Promise<Task>;
|
|
378
646
|
/** Alias of `get()` — perform one poll and return the latest snapshot. */
|
|
379
647
|
poll(signal?: AbortSignal): Promise<Task>;
|
|
380
|
-
/**
|
|
381
|
-
* Poll until the task reaches a terminal status.
|
|
382
|
-
*
|
|
383
|
-
* - Uses exponential-ish backoff from `intervalMs` up to `maxIntervalMs`.
|
|
384
|
-
* - Throws a QLError with code "timeout" if `timeoutMs` elapses first.
|
|
385
|
-
* - Throws a QLError with code "aborted" if `signal` aborts.
|
|
386
|
-
*/
|
|
648
|
+
/** Poll until the task reaches a terminal status (see pollUntilTerminal for semantics). */
|
|
387
649
|
wait(opts?: WaitOptions): Promise<Task>;
|
|
388
650
|
}
|
|
651
|
+
/**
|
|
652
|
+
* A handle to a video job created via `videos.generate`.
|
|
653
|
+
* Polls the video-tasks endpoint until the job reaches a terminal status.
|
|
654
|
+
*/
|
|
655
|
+
declare class VideoTaskHandle {
|
|
656
|
+
private readonly transport;
|
|
657
|
+
readonly taskId: string;
|
|
658
|
+
constructor(transport: Transport, taskId: string);
|
|
659
|
+
/** Fetch the current job snapshot (single request). */
|
|
660
|
+
get(signal?: AbortSignal): Promise<VideoTask>;
|
|
661
|
+
/** Alias of `get()` — perform one poll and return the latest snapshot. */
|
|
662
|
+
poll(signal?: AbortSignal): Promise<VideoTask>;
|
|
663
|
+
/** Poll until the job reaches a terminal status (completed/failed/cancelled). */
|
|
664
|
+
wait(opts?: VideoWaitOptions): Promise<VideoTask>;
|
|
665
|
+
}
|
|
389
666
|
|
|
390
667
|
declare const DEFAULT_BASE_URL = "https://app.quantonlabs.com";
|
|
391
668
|
interface QLClientOptions {
|
|
@@ -402,6 +679,18 @@ declare class WorkspaceApi {
|
|
|
402
679
|
constructor(t: Transport);
|
|
403
680
|
/** GET /api/v1/workspace */
|
|
404
681
|
get(): Promise<Workspace>;
|
|
682
|
+
/** GET /api/v1/workspace/models — current model config (OpenRouter key masked). */
|
|
683
|
+
getModels(): Promise<WorkspaceModelsResult>;
|
|
684
|
+
/** PATCH /api/v1/workspace — update the workspace name and/or OpenRouter model config (partial). */
|
|
685
|
+
update(input: WorkspaceUpdateInput): Promise<Workspace>;
|
|
686
|
+
/** PATCH /api/v1/workspace — convenience wrapper that only touches `config.openrouter`. */
|
|
687
|
+
updateModels(input: WorkspaceModelsUpdateInput): Promise<Workspace>;
|
|
688
|
+
/** GET /api/v1/workspace/models/catalog — OpenRouter model catalog (server-side cached). */
|
|
689
|
+
listCatalogModels(): Promise<CatalogResult>;
|
|
690
|
+
/** POST /api/v1/workspace/models/verify — check an OpenRouter key with a 1-token completion. */
|
|
691
|
+
verifyOpenRouterKey(key: string, model?: string, baseUrl?: string): Promise<VerifyKeyResult>;
|
|
692
|
+
/** GET /api/v1/workspace/keys — API keys with rotation metadata (rotatesAt, daysLeft). */
|
|
693
|
+
listKeys(): Promise<KeysResult>;
|
|
405
694
|
}
|
|
406
695
|
/** Agents namespace. */
|
|
407
696
|
declare class AgentsApi {
|
|
@@ -458,6 +747,37 @@ declare class ImagesApi {
|
|
|
458
747
|
/** POST /api/v1/agents/:agentId/images — generate image(s) via a tiered model. */
|
|
459
748
|
generate(agentId: string, input: ImageGenerateInput): Promise<ImageGenerateResult>;
|
|
460
749
|
}
|
|
750
|
+
/** Videos namespace (tiered video generation: submit → poll). */
|
|
751
|
+
declare class VideosApi {
|
|
752
|
+
private readonly t;
|
|
753
|
+
constructor(t: Transport);
|
|
754
|
+
/** GET /api/v1/videos/models — list tiered video models + engine availability. */
|
|
755
|
+
listModels(): Promise<VideoModelsResult>;
|
|
756
|
+
/** POST /api/v1/agents/:agentId/videos — start a video job (returns the queued task, HTTP 202). */
|
|
757
|
+
generate(agentId: string, input: VideoGenerateInput): Promise<VideoTaskCreated>;
|
|
758
|
+
/** GET /api/v1/video-tasks/:taskId — fetch the current job snapshot. */
|
|
759
|
+
getTask(taskId: string, signal?: AbortSignal): Promise<VideoTask>;
|
|
760
|
+
/** DELETE /api/v1/video-tasks/:taskId — cancel a queued/rendering job (409 if already terminal). */
|
|
761
|
+
cancelTask(taskId: string): Promise<VideoTask>;
|
|
762
|
+
/** Get a handle for polling / waiting on a video job (poll(), wait()). */
|
|
763
|
+
handle(taskId: string): VideoTaskHandle;
|
|
764
|
+
}
|
|
765
|
+
/** Audio namespace (text-to-speech). */
|
|
766
|
+
declare class AudioApi {
|
|
767
|
+
private readonly t;
|
|
768
|
+
constructor(t: Transport);
|
|
769
|
+
/** GET /api/v1/audio/voices — list available TTS voices. */
|
|
770
|
+
voices(): Promise<VoicesResult>;
|
|
771
|
+
/** POST /api/v1/agents/:agentId/tts — synthesize speech (synchronous). */
|
|
772
|
+
textToSpeech(agentId: string, input: TtsInput): Promise<TtsResult>;
|
|
773
|
+
}
|
|
774
|
+
/** Files namespace (media uploads). */
|
|
775
|
+
declare class FilesApi {
|
|
776
|
+
private readonly t;
|
|
777
|
+
constructor(t: Transport);
|
|
778
|
+
/** POST /api/v1/files — upload a media file (multipart field "file"). */
|
|
779
|
+
upload(file: Blob, opts?: FileUploadOptions): Promise<UploadedFile>;
|
|
780
|
+
}
|
|
461
781
|
/**
|
|
462
782
|
* The public client. Example:
|
|
463
783
|
* const ql = new QLClient({ apiKey: process.env.QL_API_KEY });
|
|
@@ -469,6 +789,9 @@ declare class QLClient {
|
|
|
469
789
|
readonly workflows: WorkflowsApi;
|
|
470
790
|
readonly tasks: TasksApi;
|
|
471
791
|
readonly images: ImagesApi;
|
|
792
|
+
readonly videos: VideosApi;
|
|
793
|
+
readonly audio: AudioApi;
|
|
794
|
+
readonly files: FilesApi;
|
|
472
795
|
private readonly transport;
|
|
473
796
|
private readonly base;
|
|
474
797
|
constructor(opts: QLClientOptions);
|
|
@@ -512,4 +835,4 @@ declare class QLError extends Error {
|
|
|
512
835
|
get isNetworkError(): boolean;
|
|
513
836
|
}
|
|
514
837
|
|
|
515
|
-
export { API_ERROR_CODES, type AgentDetail, type AgentListResult, type AgentSummary, AgentsApi, type ApiErrorCode, type CapParamKind, type CapabilitiesResult, type CapabilityInfo, type CapabilityParam, type CapabilityResult, type CapabilityTemplate, type ChatInput, type ChatMessage, type ChatResult, type ChatStreamEvent, DEFAULT_BASE_URL, type GeneratedImage, type HistoryPage, type HistoryParams, type ImageGenerateInput, type ImageGenerateResult, type ImageModelInfo, type ImageModelsResult, type ImagePricingEntry, type ImageReferenceInput, type ImageTier, type ImageUsage, ImagesApi, type MessageItem, QLClient, type QLClientOptions, QLError, type QLErrorContext, type RunCapabilityInput, type RunCapabilityResult, type StreamOptions, type Task, type TaskCreateInput, type TaskCreated, TaskHandle, type TaskPriority, type TaskStatus, TasksApi, type WaitOptions, type WorkflowRun, type WorkflowRunInput, type WorkflowRunStart, type WorkflowRunStatus, WorkflowsApi, type Workspace, WorkspaceApi, isTerminalTaskStatus };
|
|
838
|
+
export { API_ERROR_CODES, type AgentDetail, type AgentListResult, type AgentSummary, AgentsApi, type ApiErrorCode, AudioApi, type CapParamKind, type CapabilitiesResult, type CapabilityInfo, type CapabilityParam, type CapabilityResult, type CapabilityTemplate, type ChatInput, type ChatMessage, type ChatResult, type ChatStreamEvent, DEFAULT_BASE_URL, type FileUploadOptions, FilesApi, type GeneratedImage, type HistoryPage, type HistoryParams, type ImageGenerateInput, type ImageGenerateResult, type ImageModelInfo, type ImageModelsResult, type ImagePricingEntry, type ImageReferenceInput, type ImageTier, type ImageUsage, ImagesApi, type MessageItem, QLClient, type QLClientOptions, QLError, type QLErrorContext, type RunCapabilityInput, type RunCapabilityResult, type StreamOptions, type Task, type TaskCreateInput, type TaskCreated, TaskHandle, type TaskPriority, type TaskStatus, TasksApi, type TtsInput, type TtsResult, type UploadedFile, type VideoGenerateInput, type VideoModelInfo, type VideoModelsResult, type VideoPricingEntry, type VideoTask, type VideoTaskCreated, VideoTaskHandle, type VideoTaskStatus, type VideoTier, type VideoWaitOptions, VideosApi, type VoiceInfo, type VoicesResult, type WaitOptions, type WorkflowRun, type WorkflowRunInput, type WorkflowRunStart, type WorkflowRunStatus, WorkflowsApi, type Workspace, WorkspaceApi, isTerminalTaskStatus };
|