@shop-os/modelkit 0.2.11 → 0.2.13
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/CHANGELOG.md +21 -0
- package/README.md +17 -1
- package/dist/catalog.cjs +419 -147
- package/dist/catalog.cjs.map +1 -1
- package/dist/catalog.d.cts +289 -1
- package/dist/catalog.d.ts +289 -1
- package/dist/catalog.js +419 -147
- package/dist/catalog.js.map +1 -1
- package/dist/index.cjs +5651 -5140
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +370 -38
- package/dist/index.d.ts +370 -38
- package/dist/index.js +3991 -3489
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/catalog.d.cts
CHANGED
|
@@ -480,6 +480,289 @@ declare const SurfaceSchema: z.ZodEnum<{
|
|
|
480
480
|
}>;
|
|
481
481
|
declare const SURFACES: ("cowork" | "space_builder")[];
|
|
482
482
|
declare const ExposureSchema: z.ZodType<Surface[], unknown>;
|
|
483
|
+
declare const CatalogModelSchemaBase: z.ZodObject<{
|
|
484
|
+
id: z.ZodString;
|
|
485
|
+
aliases: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
486
|
+
label: z.ZodString;
|
|
487
|
+
type: z.ZodEnum<{
|
|
488
|
+
text: "text";
|
|
489
|
+
image: "image";
|
|
490
|
+
video: "video";
|
|
491
|
+
audio: "audio";
|
|
492
|
+
upscale: "upscale";
|
|
493
|
+
"bg-remove": "bg-remove";
|
|
494
|
+
}>;
|
|
495
|
+
adapter: z.ZodEnum<{
|
|
496
|
+
"ai-sdk-text": "ai-sdk-text";
|
|
497
|
+
"google-image": "google-image";
|
|
498
|
+
"openai-image": "openai-image";
|
|
499
|
+
"google-genai": "google-genai";
|
|
500
|
+
ark: "ark";
|
|
501
|
+
fal: "fal";
|
|
502
|
+
replicate: "replicate";
|
|
503
|
+
prodia: "prodia";
|
|
504
|
+
higgsfield: "higgsfield";
|
|
505
|
+
"xai-video": "xai-video";
|
|
506
|
+
}>;
|
|
507
|
+
providerModelId: z.ZodString;
|
|
508
|
+
lifecycle: z.ZodEnum<{
|
|
509
|
+
active: "active";
|
|
510
|
+
deprecated: "deprecated";
|
|
511
|
+
retired: "retired";
|
|
512
|
+
}>;
|
|
513
|
+
replacedBy: z.ZodOptional<z.ZodString>;
|
|
514
|
+
exposure: z.ZodType<Surface[], unknown, z.core.$ZodTypeInternals<Surface[], unknown>>;
|
|
515
|
+
constraints: z.ZodObject<{
|
|
516
|
+
aspectRatios: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
517
|
+
"1:1": "1:1";
|
|
518
|
+
"16:9": "16:9";
|
|
519
|
+
"9:16": "9:16";
|
|
520
|
+
"4:3": "4:3";
|
|
521
|
+
"3:4": "3:4";
|
|
522
|
+
"3:2": "3:2";
|
|
523
|
+
"2:3": "2:3";
|
|
524
|
+
"4:5": "4:5";
|
|
525
|
+
"5:4": "5:4";
|
|
526
|
+
"21:9": "21:9";
|
|
527
|
+
"9:21": "9:21";
|
|
528
|
+
"97:30": "97:30";
|
|
529
|
+
adaptive: "adaptive";
|
|
530
|
+
}>>>;
|
|
531
|
+
sizes: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
532
|
+
512: "512";
|
|
533
|
+
"1K": "1K";
|
|
534
|
+
"2K": "2K";
|
|
535
|
+
"4K": "4K";
|
|
536
|
+
}>>>;
|
|
537
|
+
resolutions: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
538
|
+
"360p": "360p";
|
|
539
|
+
"480p": "480p";
|
|
540
|
+
"720p": "720p";
|
|
541
|
+
"768p": "768p";
|
|
542
|
+
"1080p": "1080p";
|
|
543
|
+
"2k": "2k";
|
|
544
|
+
"4k": "4k";
|
|
545
|
+
}>>>;
|
|
546
|
+
durations: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
547
|
+
min: z.ZodNumber;
|
|
548
|
+
max: z.ZodNumber;
|
|
549
|
+
}, z.core.$loose>, z.ZodArray<z.ZodNumber>]>>;
|
|
550
|
+
durationPresets: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
551
|
+
qualityOptions: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
552
|
+
exactSizes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
553
|
+
references: z.ZodOptional<z.ZodObject<{
|
|
554
|
+
images: z.ZodOptional<z.ZodNumber>;
|
|
555
|
+
imagesWithVideo: z.ZodOptional<z.ZodNumber>;
|
|
556
|
+
videos: z.ZodOptional<z.ZodNumber>;
|
|
557
|
+
audios: z.ZodOptional<z.ZodNumber>;
|
|
558
|
+
total: z.ZodOptional<z.ZodNumber>;
|
|
559
|
+
audioOnly: z.ZodOptional<z.ZodBoolean>;
|
|
560
|
+
}, z.core.$loose>>;
|
|
561
|
+
requires: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
562
|
+
references: "references";
|
|
563
|
+
firstFrame: "firstFrame";
|
|
564
|
+
sourceVideo: "sourceVideo";
|
|
565
|
+
}>>>;
|
|
566
|
+
supports: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
567
|
+
upscale: "upscale";
|
|
568
|
+
quality: "quality";
|
|
569
|
+
seed: "seed";
|
|
570
|
+
count: "count";
|
|
571
|
+
outputFormat: "outputFormat";
|
|
572
|
+
scaleFactor: "scaleFactor";
|
|
573
|
+
safetySettings: "safetySettings";
|
|
574
|
+
temperature: "temperature";
|
|
575
|
+
lastFrame: "lastFrame";
|
|
576
|
+
generateAudio: "generateAudio";
|
|
577
|
+
negativePrompt: "negativePrompt";
|
|
578
|
+
cfgScale: "cfgScale";
|
|
579
|
+
promptExpansion: "promptExpansion";
|
|
580
|
+
watermark: "watermark";
|
|
581
|
+
safetyChecker: "safetyChecker";
|
|
582
|
+
taskType: "taskType";
|
|
583
|
+
instrumental: "instrumental";
|
|
584
|
+
}>>>;
|
|
585
|
+
ratioIgnoredWith: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
586
|
+
firstFrame: "firstFrame";
|
|
587
|
+
sourceVideo: "sourceVideo";
|
|
588
|
+
}>>>;
|
|
589
|
+
}, z.core.$loose>;
|
|
590
|
+
defaults: z.ZodObject<{
|
|
591
|
+
references: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
592
|
+
url: z.ZodString;
|
|
593
|
+
label: z.ZodOptional<z.ZodString>;
|
|
594
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
595
|
+
bytes: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
|
|
596
|
+
mime: z.ZodString;
|
|
597
|
+
label: z.ZodOptional<z.ZodString>;
|
|
598
|
+
}, z.core.$loose>]>>>;
|
|
599
|
+
aspectRatio: z.ZodOptional<z.ZodEnum<{
|
|
600
|
+
"1:1": "1:1";
|
|
601
|
+
"16:9": "16:9";
|
|
602
|
+
"9:16": "9:16";
|
|
603
|
+
"4:3": "4:3";
|
|
604
|
+
"3:4": "3:4";
|
|
605
|
+
"3:2": "3:2";
|
|
606
|
+
"2:3": "2:3";
|
|
607
|
+
"4:5": "4:5";
|
|
608
|
+
"5:4": "5:4";
|
|
609
|
+
"21:9": "21:9";
|
|
610
|
+
"9:21": "9:21";
|
|
611
|
+
"97:30": "97:30";
|
|
612
|
+
adaptive: "adaptive";
|
|
613
|
+
}>>;
|
|
614
|
+
size: z.ZodOptional<z.ZodEnum<{
|
|
615
|
+
512: "512";
|
|
616
|
+
"1K": "1K";
|
|
617
|
+
"2K": "2K";
|
|
618
|
+
"4K": "4K";
|
|
619
|
+
}>>;
|
|
620
|
+
exactSize: z.ZodOptional<z.ZodString>;
|
|
621
|
+
quality: z.ZodOptional<z.ZodEnum<{
|
|
622
|
+
auto: "auto";
|
|
623
|
+
low: "low";
|
|
624
|
+
medium: "medium";
|
|
625
|
+
high: "high";
|
|
626
|
+
xhigh: "xhigh";
|
|
627
|
+
max: "max";
|
|
628
|
+
}>>;
|
|
629
|
+
seed: z.ZodOptional<z.ZodNumber>;
|
|
630
|
+
count: z.ZodOptional<z.ZodNumber>;
|
|
631
|
+
outputFormat: z.ZodOptional<z.ZodEnum<{
|
|
632
|
+
png: "png";
|
|
633
|
+
jpeg: "jpeg";
|
|
634
|
+
webp: "webp";
|
|
635
|
+
}>>;
|
|
636
|
+
scaleFactor: z.ZodOptional<z.ZodNumber>;
|
|
637
|
+
safetySettings: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
638
|
+
category: z.ZodString;
|
|
639
|
+
threshold: z.ZodString;
|
|
640
|
+
}, z.core.$loose>>>;
|
|
641
|
+
temperature: z.ZodOptional<z.ZodNumber>;
|
|
642
|
+
upscale: z.ZodOptional<z.ZodObject<{
|
|
643
|
+
enhanceModel: z.ZodOptional<z.ZodString>;
|
|
644
|
+
subjectDetection: z.ZodOptional<z.ZodString>;
|
|
645
|
+
faceEnhancement: z.ZodOptional<z.ZodBoolean>;
|
|
646
|
+
faceEnhancementCreativity: z.ZodOptional<z.ZodNumber>;
|
|
647
|
+
faceEnhancementStrength: z.ZodOptional<z.ZodNumber>;
|
|
648
|
+
}, z.core.$loose>>;
|
|
649
|
+
firstFrame: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
650
|
+
url: z.ZodString;
|
|
651
|
+
label: z.ZodOptional<z.ZodString>;
|
|
652
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
653
|
+
bytes: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
|
|
654
|
+
mime: z.ZodString;
|
|
655
|
+
label: z.ZodOptional<z.ZodString>;
|
|
656
|
+
}, z.core.$loose>]>>;
|
|
657
|
+
lastFrame: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
658
|
+
url: z.ZodString;
|
|
659
|
+
label: z.ZodOptional<z.ZodString>;
|
|
660
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
661
|
+
bytes: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
|
|
662
|
+
mime: z.ZodString;
|
|
663
|
+
label: z.ZodOptional<z.ZodString>;
|
|
664
|
+
}, z.core.$loose>]>>;
|
|
665
|
+
sourceVideo: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
666
|
+
url: z.ZodString;
|
|
667
|
+
label: z.ZodOptional<z.ZodString>;
|
|
668
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
669
|
+
bytes: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
|
|
670
|
+
mime: z.ZodString;
|
|
671
|
+
label: z.ZodOptional<z.ZodString>;
|
|
672
|
+
}, z.core.$loose>]>>;
|
|
673
|
+
referenceImages: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
674
|
+
url: z.ZodString;
|
|
675
|
+
label: z.ZodOptional<z.ZodString>;
|
|
676
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
677
|
+
bytes: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
|
|
678
|
+
mime: z.ZodString;
|
|
679
|
+
label: z.ZodOptional<z.ZodString>;
|
|
680
|
+
}, z.core.$loose>]>>>;
|
|
681
|
+
referenceVideos: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
682
|
+
url: z.ZodString;
|
|
683
|
+
label: z.ZodOptional<z.ZodString>;
|
|
684
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
685
|
+
bytes: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
|
|
686
|
+
mime: z.ZodString;
|
|
687
|
+
label: z.ZodOptional<z.ZodString>;
|
|
688
|
+
}, z.core.$loose>]>>>;
|
|
689
|
+
referenceAudios: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
690
|
+
url: z.ZodString;
|
|
691
|
+
label: z.ZodOptional<z.ZodString>;
|
|
692
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
693
|
+
bytes: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
|
|
694
|
+
mime: z.ZodString;
|
|
695
|
+
label: z.ZodOptional<z.ZodString>;
|
|
696
|
+
}, z.core.$loose>]>>>;
|
|
697
|
+
resolution: z.ZodOptional<z.ZodEnum<{
|
|
698
|
+
"360p": "360p";
|
|
699
|
+
"480p": "480p";
|
|
700
|
+
"720p": "720p";
|
|
701
|
+
"768p": "768p";
|
|
702
|
+
"1080p": "1080p";
|
|
703
|
+
"2k": "2k";
|
|
704
|
+
"4k": "4k";
|
|
705
|
+
}>>;
|
|
706
|
+
durationSeconds: z.ZodOptional<z.ZodNumber>;
|
|
707
|
+
generateAudio: z.ZodOptional<z.ZodBoolean>;
|
|
708
|
+
negativePrompt: z.ZodOptional<z.ZodString>;
|
|
709
|
+
cfgScale: z.ZodOptional<z.ZodNumber>;
|
|
710
|
+
promptExpansion: z.ZodOptional<z.ZodEnum<{
|
|
711
|
+
quality: "quality";
|
|
712
|
+
fast: "fast";
|
|
713
|
+
balanced: "balanced";
|
|
714
|
+
}>>;
|
|
715
|
+
watermark: z.ZodOptional<z.ZodBoolean>;
|
|
716
|
+
safetyChecker: z.ZodOptional<z.ZodBoolean>;
|
|
717
|
+
taskType: z.ZodOptional<z.ZodEnum<{
|
|
718
|
+
reference: "reference";
|
|
719
|
+
edit: "edit";
|
|
720
|
+
extend: "extend";
|
|
721
|
+
}>>;
|
|
722
|
+
mode: z.ZodOptional<z.ZodEnum<{
|
|
723
|
+
standard: "standard";
|
|
724
|
+
pro: "pro";
|
|
725
|
+
}>>;
|
|
726
|
+
instrumental: z.ZodOptional<z.ZodBoolean>;
|
|
727
|
+
}, z.core.$loose>;
|
|
728
|
+
providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodType<ProviderOptionValue, unknown, z.core.$ZodTypeInternals<ProviderOptionValue, unknown>>>>>;
|
|
729
|
+
usage: z.ZodObject<{
|
|
730
|
+
unit: z.ZodEnum<{
|
|
731
|
+
tokens: "tokens";
|
|
732
|
+
images: "images";
|
|
733
|
+
seconds: "seconds";
|
|
734
|
+
reported_cost_usd: "reported_cost_usd";
|
|
735
|
+
compute_seconds: "compute_seconds";
|
|
736
|
+
}>;
|
|
737
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
738
|
+
providerLabel: z.ZodOptional<z.ZodString>;
|
|
739
|
+
}, z.core.$loose>;
|
|
740
|
+
pricingKind: z.ZodEnum<{
|
|
741
|
+
token: "token";
|
|
742
|
+
image_size: "image_size";
|
|
743
|
+
video_per_second: "video_per_second";
|
|
744
|
+
flat: "flat";
|
|
745
|
+
}>;
|
|
746
|
+
display: z.ZodOptional<z.ZodObject<{
|
|
747
|
+
provider: z.ZodString;
|
|
748
|
+
description: z.ZodString;
|
|
749
|
+
logo: z.ZodOptional<z.ZodString>;
|
|
750
|
+
costTier: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>>;
|
|
751
|
+
recommended: z.ZodOptional<z.ZodBoolean>;
|
|
752
|
+
sortOrder: z.ZodOptional<z.ZodNumber>;
|
|
753
|
+
chat: z.ZodOptional<z.ZodObject<{
|
|
754
|
+
providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodType<ProviderOptionValue, unknown, z.core.$ZodTypeInternals<ProviderOptionValue, unknown>>>>>;
|
|
755
|
+
temperature: z.ZodOptional<z.ZodNumber>;
|
|
756
|
+
}, z.core.$loose>>;
|
|
757
|
+
}, z.core.$loose>>;
|
|
758
|
+
capabilities: z.ZodOptional<z.ZodObject<{
|
|
759
|
+
acceptsSourceVideo: z.ZodOptional<z.ZodBoolean>;
|
|
760
|
+
framesExcludeReferences: z.ZodOptional<z.ZodBoolean>;
|
|
761
|
+
reasoning: z.ZodOptional<z.ZodBoolean>;
|
|
762
|
+
vision: z.ZodOptional<z.ZodBoolean>;
|
|
763
|
+
contextWindow: z.ZodOptional<z.ZodNumber>;
|
|
764
|
+
}, z.core.$loose>>;
|
|
765
|
+
}, z.core.$loose>;
|
|
483
766
|
declare const CatalogModelSchema: z.ZodType<CatalogModel>;
|
|
484
767
|
declare const CatalogSchema: z.ZodType<CatalogModel[]>;
|
|
485
768
|
|
|
@@ -489,6 +772,7 @@ interface PrimeCatalogResult {
|
|
|
489
772
|
rowCount: number;
|
|
490
773
|
revision?: string;
|
|
491
774
|
error?: string;
|
|
775
|
+
droppedRows?: number;
|
|
492
776
|
}
|
|
493
777
|
interface LiveCatalogState {
|
|
494
778
|
catalog: Catalog;
|
|
@@ -526,6 +810,10 @@ interface CatalogEnvelope {
|
|
|
526
810
|
rows: CatalogModel[];
|
|
527
811
|
revision?: string;
|
|
528
812
|
}
|
|
813
|
+
interface QuarantineResult {
|
|
814
|
+
rows: CatalogModel[];
|
|
815
|
+
dropped: number;
|
|
816
|
+
}
|
|
529
817
|
/** Fetch, validate, swap into liveCatalog. Never throws. Second call returns the same promise. */
|
|
530
818
|
declare function primeCatalog(source: CatalogSource): Promise<PrimeCatalogResult>;
|
|
531
819
|
/** Test seam: stop the refresh timer, reset liveCatalog to MODELS and clear the memo. */
|
|
@@ -585,4 +873,4 @@ declare function isModelKitError(err: unknown): err is ModelKitError;
|
|
|
585
873
|
/** Resolve caller options against a catalog row, dispatching on `model.type`. */
|
|
586
874
|
declare function resolveOptions(model: CatalogModel, request: ImageRequest | VideoRequest | AudioRequest, onUnsupported?: OnUnsupported): ResolveResult<ImageRequest | VideoRequest | AudioRequest>;
|
|
587
875
|
|
|
588
|
-
export { ADAPTER_IDS, type AdapterEndpoints, type AdapterId, type AspectRatio, type AudioRequest, type AudioResult, type CallContext, Catalog, type CatalogAuth, type CatalogCache, type CatalogCapabilities, type CatalogDisplay, type CatalogEnvelope, type CatalogModel, CatalogModelSchema, type CatalogOrigin, CatalogSchema, type CatalogSource, type Exposure, ExposureSchema, type GeneratedImage, IMAGE_MODELS, type ImageBytes, type ImageCallOptions, type ImageCallResult, type ImageQuality, type ImageRequest, type ImageResult, type ImageSafetySetting, type ImageSize, type JsonObject, type JsonPrimitive, type JsonValue, type Lifecycle, type LiveCatalogState, MODELS, type MediaPart, type MediaRef, type ModelConstraints, type ModelKitConfig, ModelKitError, type ModelKitErrorCode, type ModelKitErrorInit, type ModelType, OTHER_MODELS, type OnUnsupported, type OutputFormat, type PricingKind, type PrimeCatalogResult, type ProviderErrorBody, type ProviderKeyName, type ProviderKeys, type ProviderOptionValue, type ProviderOptions, type ReferenceLimits, type RequiredInput, type RequiredKeyName, type ResolveResult, type Routing, SURFACES, type SupportedOption, type Surface, SurfaceSchema, TEXT_MODELS, type UpscaleOptions, type UsageEvent, type UsageModality, type UsageUnit, VIDEO_MODELS, type VideoCallJob, type VideoCallOptions, type VideoJob, type VideoModel, type VideoRequest, type VideoResolution, type VideoResult, type Warning, compareCatalogOrder, hasAwsCredentials, isListed, isListedOn, isModelKitError, liveCatalog, liveState, nearestAspectRatio, normalizeExposure, primeCatalog, resetLiveCatalog, resolveAudioOptions, resolveImageOptions, resolveOptions, resolveVideoOptions, sortCatalogRows };
|
|
876
|
+
export { ADAPTER_IDS, type AdapterEndpoints, type AdapterId, type AspectRatio, type AudioRequest, type AudioResult, type CallContext, Catalog, type CatalogAuth, type CatalogCache, type CatalogCapabilities, type CatalogDisplay, type CatalogEnvelope, type CatalogModel, CatalogModelSchema, CatalogModelSchemaBase, type CatalogOrigin, CatalogSchema, type CatalogSource, type Exposure, ExposureSchema, type GeneratedImage, IMAGE_MODELS, type ImageBytes, type ImageCallOptions, type ImageCallResult, type ImageQuality, type ImageRequest, type ImageResult, type ImageSafetySetting, type ImageSize, type JsonObject, type JsonPrimitive, type JsonValue, type Lifecycle, type LiveCatalogState, MODELS, type MediaPart, type MediaRef, type ModelConstraints, type ModelKitConfig, ModelKitError, type ModelKitErrorCode, type ModelKitErrorInit, type ModelType, OTHER_MODELS, type OnUnsupported, type OutputFormat, type PricingKind, type PrimeCatalogResult, type ProviderErrorBody, type ProviderKeyName, type ProviderKeys, type ProviderOptionValue, type ProviderOptions, type QuarantineResult, type ReferenceLimits, type RequiredInput, type RequiredKeyName, type ResolveResult, type Routing, SURFACES, type SupportedOption, type Surface, SurfaceSchema, TEXT_MODELS, type UpscaleOptions, type UsageEvent, type UsageModality, type UsageUnit, VIDEO_MODELS, type VideoCallJob, type VideoCallOptions, type VideoJob, type VideoModel, type VideoRequest, type VideoResolution, type VideoResult, type Warning, compareCatalogOrder, hasAwsCredentials, isListed, isListedOn, isModelKitError, liveCatalog, liveState, nearestAspectRatio, normalizeExposure, primeCatalog, resetLiveCatalog, resolveAudioOptions, resolveImageOptions, resolveOptions, resolveVideoOptions, sortCatalogRows };
|
package/dist/catalog.d.ts
CHANGED
|
@@ -480,6 +480,289 @@ declare const SurfaceSchema: z.ZodEnum<{
|
|
|
480
480
|
}>;
|
|
481
481
|
declare const SURFACES: ("cowork" | "space_builder")[];
|
|
482
482
|
declare const ExposureSchema: z.ZodType<Surface[], unknown>;
|
|
483
|
+
declare const CatalogModelSchemaBase: z.ZodObject<{
|
|
484
|
+
id: z.ZodString;
|
|
485
|
+
aliases: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
486
|
+
label: z.ZodString;
|
|
487
|
+
type: z.ZodEnum<{
|
|
488
|
+
text: "text";
|
|
489
|
+
image: "image";
|
|
490
|
+
video: "video";
|
|
491
|
+
audio: "audio";
|
|
492
|
+
upscale: "upscale";
|
|
493
|
+
"bg-remove": "bg-remove";
|
|
494
|
+
}>;
|
|
495
|
+
adapter: z.ZodEnum<{
|
|
496
|
+
"ai-sdk-text": "ai-sdk-text";
|
|
497
|
+
"google-image": "google-image";
|
|
498
|
+
"openai-image": "openai-image";
|
|
499
|
+
"google-genai": "google-genai";
|
|
500
|
+
ark: "ark";
|
|
501
|
+
fal: "fal";
|
|
502
|
+
replicate: "replicate";
|
|
503
|
+
prodia: "prodia";
|
|
504
|
+
higgsfield: "higgsfield";
|
|
505
|
+
"xai-video": "xai-video";
|
|
506
|
+
}>;
|
|
507
|
+
providerModelId: z.ZodString;
|
|
508
|
+
lifecycle: z.ZodEnum<{
|
|
509
|
+
active: "active";
|
|
510
|
+
deprecated: "deprecated";
|
|
511
|
+
retired: "retired";
|
|
512
|
+
}>;
|
|
513
|
+
replacedBy: z.ZodOptional<z.ZodString>;
|
|
514
|
+
exposure: z.ZodType<Surface[], unknown, z.core.$ZodTypeInternals<Surface[], unknown>>;
|
|
515
|
+
constraints: z.ZodObject<{
|
|
516
|
+
aspectRatios: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
517
|
+
"1:1": "1:1";
|
|
518
|
+
"16:9": "16:9";
|
|
519
|
+
"9:16": "9:16";
|
|
520
|
+
"4:3": "4:3";
|
|
521
|
+
"3:4": "3:4";
|
|
522
|
+
"3:2": "3:2";
|
|
523
|
+
"2:3": "2:3";
|
|
524
|
+
"4:5": "4:5";
|
|
525
|
+
"5:4": "5:4";
|
|
526
|
+
"21:9": "21:9";
|
|
527
|
+
"9:21": "9:21";
|
|
528
|
+
"97:30": "97:30";
|
|
529
|
+
adaptive: "adaptive";
|
|
530
|
+
}>>>;
|
|
531
|
+
sizes: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
532
|
+
512: "512";
|
|
533
|
+
"1K": "1K";
|
|
534
|
+
"2K": "2K";
|
|
535
|
+
"4K": "4K";
|
|
536
|
+
}>>>;
|
|
537
|
+
resolutions: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
538
|
+
"360p": "360p";
|
|
539
|
+
"480p": "480p";
|
|
540
|
+
"720p": "720p";
|
|
541
|
+
"768p": "768p";
|
|
542
|
+
"1080p": "1080p";
|
|
543
|
+
"2k": "2k";
|
|
544
|
+
"4k": "4k";
|
|
545
|
+
}>>>;
|
|
546
|
+
durations: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
547
|
+
min: z.ZodNumber;
|
|
548
|
+
max: z.ZodNumber;
|
|
549
|
+
}, z.core.$loose>, z.ZodArray<z.ZodNumber>]>>;
|
|
550
|
+
durationPresets: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
551
|
+
qualityOptions: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
552
|
+
exactSizes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
553
|
+
references: z.ZodOptional<z.ZodObject<{
|
|
554
|
+
images: z.ZodOptional<z.ZodNumber>;
|
|
555
|
+
imagesWithVideo: z.ZodOptional<z.ZodNumber>;
|
|
556
|
+
videos: z.ZodOptional<z.ZodNumber>;
|
|
557
|
+
audios: z.ZodOptional<z.ZodNumber>;
|
|
558
|
+
total: z.ZodOptional<z.ZodNumber>;
|
|
559
|
+
audioOnly: z.ZodOptional<z.ZodBoolean>;
|
|
560
|
+
}, z.core.$loose>>;
|
|
561
|
+
requires: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
562
|
+
references: "references";
|
|
563
|
+
firstFrame: "firstFrame";
|
|
564
|
+
sourceVideo: "sourceVideo";
|
|
565
|
+
}>>>;
|
|
566
|
+
supports: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
567
|
+
upscale: "upscale";
|
|
568
|
+
quality: "quality";
|
|
569
|
+
seed: "seed";
|
|
570
|
+
count: "count";
|
|
571
|
+
outputFormat: "outputFormat";
|
|
572
|
+
scaleFactor: "scaleFactor";
|
|
573
|
+
safetySettings: "safetySettings";
|
|
574
|
+
temperature: "temperature";
|
|
575
|
+
lastFrame: "lastFrame";
|
|
576
|
+
generateAudio: "generateAudio";
|
|
577
|
+
negativePrompt: "negativePrompt";
|
|
578
|
+
cfgScale: "cfgScale";
|
|
579
|
+
promptExpansion: "promptExpansion";
|
|
580
|
+
watermark: "watermark";
|
|
581
|
+
safetyChecker: "safetyChecker";
|
|
582
|
+
taskType: "taskType";
|
|
583
|
+
instrumental: "instrumental";
|
|
584
|
+
}>>>;
|
|
585
|
+
ratioIgnoredWith: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
586
|
+
firstFrame: "firstFrame";
|
|
587
|
+
sourceVideo: "sourceVideo";
|
|
588
|
+
}>>>;
|
|
589
|
+
}, z.core.$loose>;
|
|
590
|
+
defaults: z.ZodObject<{
|
|
591
|
+
references: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
592
|
+
url: z.ZodString;
|
|
593
|
+
label: z.ZodOptional<z.ZodString>;
|
|
594
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
595
|
+
bytes: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
|
|
596
|
+
mime: z.ZodString;
|
|
597
|
+
label: z.ZodOptional<z.ZodString>;
|
|
598
|
+
}, z.core.$loose>]>>>;
|
|
599
|
+
aspectRatio: z.ZodOptional<z.ZodEnum<{
|
|
600
|
+
"1:1": "1:1";
|
|
601
|
+
"16:9": "16:9";
|
|
602
|
+
"9:16": "9:16";
|
|
603
|
+
"4:3": "4:3";
|
|
604
|
+
"3:4": "3:4";
|
|
605
|
+
"3:2": "3:2";
|
|
606
|
+
"2:3": "2:3";
|
|
607
|
+
"4:5": "4:5";
|
|
608
|
+
"5:4": "5:4";
|
|
609
|
+
"21:9": "21:9";
|
|
610
|
+
"9:21": "9:21";
|
|
611
|
+
"97:30": "97:30";
|
|
612
|
+
adaptive: "adaptive";
|
|
613
|
+
}>>;
|
|
614
|
+
size: z.ZodOptional<z.ZodEnum<{
|
|
615
|
+
512: "512";
|
|
616
|
+
"1K": "1K";
|
|
617
|
+
"2K": "2K";
|
|
618
|
+
"4K": "4K";
|
|
619
|
+
}>>;
|
|
620
|
+
exactSize: z.ZodOptional<z.ZodString>;
|
|
621
|
+
quality: z.ZodOptional<z.ZodEnum<{
|
|
622
|
+
auto: "auto";
|
|
623
|
+
low: "low";
|
|
624
|
+
medium: "medium";
|
|
625
|
+
high: "high";
|
|
626
|
+
xhigh: "xhigh";
|
|
627
|
+
max: "max";
|
|
628
|
+
}>>;
|
|
629
|
+
seed: z.ZodOptional<z.ZodNumber>;
|
|
630
|
+
count: z.ZodOptional<z.ZodNumber>;
|
|
631
|
+
outputFormat: z.ZodOptional<z.ZodEnum<{
|
|
632
|
+
png: "png";
|
|
633
|
+
jpeg: "jpeg";
|
|
634
|
+
webp: "webp";
|
|
635
|
+
}>>;
|
|
636
|
+
scaleFactor: z.ZodOptional<z.ZodNumber>;
|
|
637
|
+
safetySettings: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
638
|
+
category: z.ZodString;
|
|
639
|
+
threshold: z.ZodString;
|
|
640
|
+
}, z.core.$loose>>>;
|
|
641
|
+
temperature: z.ZodOptional<z.ZodNumber>;
|
|
642
|
+
upscale: z.ZodOptional<z.ZodObject<{
|
|
643
|
+
enhanceModel: z.ZodOptional<z.ZodString>;
|
|
644
|
+
subjectDetection: z.ZodOptional<z.ZodString>;
|
|
645
|
+
faceEnhancement: z.ZodOptional<z.ZodBoolean>;
|
|
646
|
+
faceEnhancementCreativity: z.ZodOptional<z.ZodNumber>;
|
|
647
|
+
faceEnhancementStrength: z.ZodOptional<z.ZodNumber>;
|
|
648
|
+
}, z.core.$loose>>;
|
|
649
|
+
firstFrame: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
650
|
+
url: z.ZodString;
|
|
651
|
+
label: z.ZodOptional<z.ZodString>;
|
|
652
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
653
|
+
bytes: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
|
|
654
|
+
mime: z.ZodString;
|
|
655
|
+
label: z.ZodOptional<z.ZodString>;
|
|
656
|
+
}, z.core.$loose>]>>;
|
|
657
|
+
lastFrame: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
658
|
+
url: z.ZodString;
|
|
659
|
+
label: z.ZodOptional<z.ZodString>;
|
|
660
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
661
|
+
bytes: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
|
|
662
|
+
mime: z.ZodString;
|
|
663
|
+
label: z.ZodOptional<z.ZodString>;
|
|
664
|
+
}, z.core.$loose>]>>;
|
|
665
|
+
sourceVideo: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
666
|
+
url: z.ZodString;
|
|
667
|
+
label: z.ZodOptional<z.ZodString>;
|
|
668
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
669
|
+
bytes: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
|
|
670
|
+
mime: z.ZodString;
|
|
671
|
+
label: z.ZodOptional<z.ZodString>;
|
|
672
|
+
}, z.core.$loose>]>>;
|
|
673
|
+
referenceImages: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
674
|
+
url: z.ZodString;
|
|
675
|
+
label: z.ZodOptional<z.ZodString>;
|
|
676
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
677
|
+
bytes: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
|
|
678
|
+
mime: z.ZodString;
|
|
679
|
+
label: z.ZodOptional<z.ZodString>;
|
|
680
|
+
}, z.core.$loose>]>>>;
|
|
681
|
+
referenceVideos: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
682
|
+
url: z.ZodString;
|
|
683
|
+
label: z.ZodOptional<z.ZodString>;
|
|
684
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
685
|
+
bytes: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
|
|
686
|
+
mime: z.ZodString;
|
|
687
|
+
label: z.ZodOptional<z.ZodString>;
|
|
688
|
+
}, z.core.$loose>]>>>;
|
|
689
|
+
referenceAudios: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
690
|
+
url: z.ZodString;
|
|
691
|
+
label: z.ZodOptional<z.ZodString>;
|
|
692
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
693
|
+
bytes: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
|
|
694
|
+
mime: z.ZodString;
|
|
695
|
+
label: z.ZodOptional<z.ZodString>;
|
|
696
|
+
}, z.core.$loose>]>>>;
|
|
697
|
+
resolution: z.ZodOptional<z.ZodEnum<{
|
|
698
|
+
"360p": "360p";
|
|
699
|
+
"480p": "480p";
|
|
700
|
+
"720p": "720p";
|
|
701
|
+
"768p": "768p";
|
|
702
|
+
"1080p": "1080p";
|
|
703
|
+
"2k": "2k";
|
|
704
|
+
"4k": "4k";
|
|
705
|
+
}>>;
|
|
706
|
+
durationSeconds: z.ZodOptional<z.ZodNumber>;
|
|
707
|
+
generateAudio: z.ZodOptional<z.ZodBoolean>;
|
|
708
|
+
negativePrompt: z.ZodOptional<z.ZodString>;
|
|
709
|
+
cfgScale: z.ZodOptional<z.ZodNumber>;
|
|
710
|
+
promptExpansion: z.ZodOptional<z.ZodEnum<{
|
|
711
|
+
quality: "quality";
|
|
712
|
+
fast: "fast";
|
|
713
|
+
balanced: "balanced";
|
|
714
|
+
}>>;
|
|
715
|
+
watermark: z.ZodOptional<z.ZodBoolean>;
|
|
716
|
+
safetyChecker: z.ZodOptional<z.ZodBoolean>;
|
|
717
|
+
taskType: z.ZodOptional<z.ZodEnum<{
|
|
718
|
+
reference: "reference";
|
|
719
|
+
edit: "edit";
|
|
720
|
+
extend: "extend";
|
|
721
|
+
}>>;
|
|
722
|
+
mode: z.ZodOptional<z.ZodEnum<{
|
|
723
|
+
standard: "standard";
|
|
724
|
+
pro: "pro";
|
|
725
|
+
}>>;
|
|
726
|
+
instrumental: z.ZodOptional<z.ZodBoolean>;
|
|
727
|
+
}, z.core.$loose>;
|
|
728
|
+
providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodType<ProviderOptionValue, unknown, z.core.$ZodTypeInternals<ProviderOptionValue, unknown>>>>>;
|
|
729
|
+
usage: z.ZodObject<{
|
|
730
|
+
unit: z.ZodEnum<{
|
|
731
|
+
tokens: "tokens";
|
|
732
|
+
images: "images";
|
|
733
|
+
seconds: "seconds";
|
|
734
|
+
reported_cost_usd: "reported_cost_usd";
|
|
735
|
+
compute_seconds: "compute_seconds";
|
|
736
|
+
}>;
|
|
737
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
738
|
+
providerLabel: z.ZodOptional<z.ZodString>;
|
|
739
|
+
}, z.core.$loose>;
|
|
740
|
+
pricingKind: z.ZodEnum<{
|
|
741
|
+
token: "token";
|
|
742
|
+
image_size: "image_size";
|
|
743
|
+
video_per_second: "video_per_second";
|
|
744
|
+
flat: "flat";
|
|
745
|
+
}>;
|
|
746
|
+
display: z.ZodOptional<z.ZodObject<{
|
|
747
|
+
provider: z.ZodString;
|
|
748
|
+
description: z.ZodString;
|
|
749
|
+
logo: z.ZodOptional<z.ZodString>;
|
|
750
|
+
costTier: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>>;
|
|
751
|
+
recommended: z.ZodOptional<z.ZodBoolean>;
|
|
752
|
+
sortOrder: z.ZodOptional<z.ZodNumber>;
|
|
753
|
+
chat: z.ZodOptional<z.ZodObject<{
|
|
754
|
+
providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodType<ProviderOptionValue, unknown, z.core.$ZodTypeInternals<ProviderOptionValue, unknown>>>>>;
|
|
755
|
+
temperature: z.ZodOptional<z.ZodNumber>;
|
|
756
|
+
}, z.core.$loose>>;
|
|
757
|
+
}, z.core.$loose>>;
|
|
758
|
+
capabilities: z.ZodOptional<z.ZodObject<{
|
|
759
|
+
acceptsSourceVideo: z.ZodOptional<z.ZodBoolean>;
|
|
760
|
+
framesExcludeReferences: z.ZodOptional<z.ZodBoolean>;
|
|
761
|
+
reasoning: z.ZodOptional<z.ZodBoolean>;
|
|
762
|
+
vision: z.ZodOptional<z.ZodBoolean>;
|
|
763
|
+
contextWindow: z.ZodOptional<z.ZodNumber>;
|
|
764
|
+
}, z.core.$loose>>;
|
|
765
|
+
}, z.core.$loose>;
|
|
483
766
|
declare const CatalogModelSchema: z.ZodType<CatalogModel>;
|
|
484
767
|
declare const CatalogSchema: z.ZodType<CatalogModel[]>;
|
|
485
768
|
|
|
@@ -489,6 +772,7 @@ interface PrimeCatalogResult {
|
|
|
489
772
|
rowCount: number;
|
|
490
773
|
revision?: string;
|
|
491
774
|
error?: string;
|
|
775
|
+
droppedRows?: number;
|
|
492
776
|
}
|
|
493
777
|
interface LiveCatalogState {
|
|
494
778
|
catalog: Catalog;
|
|
@@ -526,6 +810,10 @@ interface CatalogEnvelope {
|
|
|
526
810
|
rows: CatalogModel[];
|
|
527
811
|
revision?: string;
|
|
528
812
|
}
|
|
813
|
+
interface QuarantineResult {
|
|
814
|
+
rows: CatalogModel[];
|
|
815
|
+
dropped: number;
|
|
816
|
+
}
|
|
529
817
|
/** Fetch, validate, swap into liveCatalog. Never throws. Second call returns the same promise. */
|
|
530
818
|
declare function primeCatalog(source: CatalogSource): Promise<PrimeCatalogResult>;
|
|
531
819
|
/** Test seam: stop the refresh timer, reset liveCatalog to MODELS and clear the memo. */
|
|
@@ -585,4 +873,4 @@ declare function isModelKitError(err: unknown): err is ModelKitError;
|
|
|
585
873
|
/** Resolve caller options against a catalog row, dispatching on `model.type`. */
|
|
586
874
|
declare function resolveOptions(model: CatalogModel, request: ImageRequest | VideoRequest | AudioRequest, onUnsupported?: OnUnsupported): ResolveResult<ImageRequest | VideoRequest | AudioRequest>;
|
|
587
875
|
|
|
588
|
-
export { ADAPTER_IDS, type AdapterEndpoints, type AdapterId, type AspectRatio, type AudioRequest, type AudioResult, type CallContext, Catalog, type CatalogAuth, type CatalogCache, type CatalogCapabilities, type CatalogDisplay, type CatalogEnvelope, type CatalogModel, CatalogModelSchema, type CatalogOrigin, CatalogSchema, type CatalogSource, type Exposure, ExposureSchema, type GeneratedImage, IMAGE_MODELS, type ImageBytes, type ImageCallOptions, type ImageCallResult, type ImageQuality, type ImageRequest, type ImageResult, type ImageSafetySetting, type ImageSize, type JsonObject, type JsonPrimitive, type JsonValue, type Lifecycle, type LiveCatalogState, MODELS, type MediaPart, type MediaRef, type ModelConstraints, type ModelKitConfig, ModelKitError, type ModelKitErrorCode, type ModelKitErrorInit, type ModelType, OTHER_MODELS, type OnUnsupported, type OutputFormat, type PricingKind, type PrimeCatalogResult, type ProviderErrorBody, type ProviderKeyName, type ProviderKeys, type ProviderOptionValue, type ProviderOptions, type ReferenceLimits, type RequiredInput, type RequiredKeyName, type ResolveResult, type Routing, SURFACES, type SupportedOption, type Surface, SurfaceSchema, TEXT_MODELS, type UpscaleOptions, type UsageEvent, type UsageModality, type UsageUnit, VIDEO_MODELS, type VideoCallJob, type VideoCallOptions, type VideoJob, type VideoModel, type VideoRequest, type VideoResolution, type VideoResult, type Warning, compareCatalogOrder, hasAwsCredentials, isListed, isListedOn, isModelKitError, liveCatalog, liveState, nearestAspectRatio, normalizeExposure, primeCatalog, resetLiveCatalog, resolveAudioOptions, resolveImageOptions, resolveOptions, resolveVideoOptions, sortCatalogRows };
|
|
876
|
+
export { ADAPTER_IDS, type AdapterEndpoints, type AdapterId, type AspectRatio, type AudioRequest, type AudioResult, type CallContext, Catalog, type CatalogAuth, type CatalogCache, type CatalogCapabilities, type CatalogDisplay, type CatalogEnvelope, type CatalogModel, CatalogModelSchema, CatalogModelSchemaBase, type CatalogOrigin, CatalogSchema, type CatalogSource, type Exposure, ExposureSchema, type GeneratedImage, IMAGE_MODELS, type ImageBytes, type ImageCallOptions, type ImageCallResult, type ImageQuality, type ImageRequest, type ImageResult, type ImageSafetySetting, type ImageSize, type JsonObject, type JsonPrimitive, type JsonValue, type Lifecycle, type LiveCatalogState, MODELS, type MediaPart, type MediaRef, type ModelConstraints, type ModelKitConfig, ModelKitError, type ModelKitErrorCode, type ModelKitErrorInit, type ModelType, OTHER_MODELS, type OnUnsupported, type OutputFormat, type PricingKind, type PrimeCatalogResult, type ProviderErrorBody, type ProviderKeyName, type ProviderKeys, type ProviderOptionValue, type ProviderOptions, type QuarantineResult, type ReferenceLimits, type RequiredInput, type RequiredKeyName, type ResolveResult, type Routing, SURFACES, type SupportedOption, type Surface, SurfaceSchema, TEXT_MODELS, type UpscaleOptions, type UsageEvent, type UsageModality, type UsageUnit, VIDEO_MODELS, type VideoCallJob, type VideoCallOptions, type VideoJob, type VideoModel, type VideoRequest, type VideoResolution, type VideoResult, type Warning, compareCatalogOrder, hasAwsCredentials, isListed, isListedOn, isModelKitError, liveCatalog, liveState, nearestAspectRatio, normalizeExposure, primeCatalog, resetLiveCatalog, resolveAudioOptions, resolveImageOptions, resolveOptions, resolveVideoOptions, sortCatalogRows };
|