@agentproto/model-catalog 0.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/LICENSE +21 -0
- package/README.md +37 -0
- package/dist/access/index.d.ts +30 -0
- package/dist/access/index.mjs +4 -0
- package/dist/access/index.mjs.map +1 -0
- package/dist/audio/index.d.ts +84 -0
- package/dist/audio/index.mjs +3 -0
- package/dist/audio/index.mjs.map +1 -0
- package/dist/audio-BzVF_wke.d.ts +92 -0
- package/dist/base-BNHcMifc.d.ts +109 -0
- package/dist/byok/index.d.ts +33 -0
- package/dist/byok/index.mjs +3 -0
- package/dist/byok/index.mjs.map +1 -0
- package/dist/catalog-aQHd559b.d.ts +594 -0
- package/dist/chunk-2LWYZOWB.mjs +643 -0
- package/dist/chunk-2LWYZOWB.mjs.map +1 -0
- package/dist/chunk-CINXNTU3.mjs +134 -0
- package/dist/chunk-CINXNTU3.mjs.map +1 -0
- package/dist/chunk-F7OEHYUI.mjs +187 -0
- package/dist/chunk-F7OEHYUI.mjs.map +1 -0
- package/dist/chunk-GH7PB5FB.mjs +183 -0
- package/dist/chunk-GH7PB5FB.mjs.map +1 -0
- package/dist/chunk-H6JUTF3U.mjs +33 -0
- package/dist/chunk-H6JUTF3U.mjs.map +1 -0
- package/dist/chunk-HEDDSOZF.mjs +47 -0
- package/dist/chunk-HEDDSOZF.mjs.map +1 -0
- package/dist/chunk-HRRG2RZO.mjs +116 -0
- package/dist/chunk-HRRG2RZO.mjs.map +1 -0
- package/dist/chunk-IJZ4XPO2.mjs +606 -0
- package/dist/chunk-IJZ4XPO2.mjs.map +1 -0
- package/dist/chunk-IORIAFK2.mjs +227 -0
- package/dist/chunk-IORIAFK2.mjs.map +1 -0
- package/dist/chunk-OHAMH3ZE.mjs +2629 -0
- package/dist/chunk-OHAMH3ZE.mjs.map +1 -0
- package/dist/chunk-QHELXPSL.mjs +85 -0
- package/dist/chunk-QHELXPSL.mjs.map +1 -0
- package/dist/chunk-SGJR6ZQH.mjs +1230 -0
- package/dist/chunk-SGJR6ZQH.mjs.map +1 -0
- package/dist/chunk-WRUWNKDB.mjs +521 -0
- package/dist/chunk-WRUWNKDB.mjs.map +1 -0
- package/dist/chunk-WTHHXXIK.mjs +366 -0
- package/dist/chunk-WTHHXXIK.mjs.map +1 -0
- package/dist/chunk-XFDXTFV3.mjs +28 -0
- package/dist/chunk-XFDXTFV3.mjs.map +1 -0
- package/dist/cost/index.d.ts +114 -0
- package/dist/cost/index.mjs +13 -0
- package/dist/cost/index.mjs.map +1 -0
- package/dist/curation/index.d.ts +98 -0
- package/dist/curation/index.mjs +13 -0
- package/dist/curation/index.mjs.map +1 -0
- package/dist/evaluate-DisH3H7u.d.ts +84 -0
- package/dist/image/index.d.ts +79 -0
- package/dist/image/index.mjs +3 -0
- package/dist/image/index.mjs.map +1 -0
- package/dist/index-BICjPG8H.d.ts +132 -0
- package/dist/index-D8nL3fPZ.d.ts +171 -0
- package/dist/index.d.ts +94 -0
- package/dist/index.mjs +33 -0
- package/dist/index.mjs.map +1 -0
- package/dist/llm/index.d.ts +48 -0
- package/dist/llm/index.mjs +4 -0
- package/dist/llm/index.mjs.map +1 -0
- package/dist/overlay/index.d.ts +67 -0
- package/dist/overlay/index.mjs +3 -0
- package/dist/overlay/index.mjs.map +1 -0
- package/dist/picker/index.d.ts +11 -0
- package/dist/picker/index.mjs +26 -0
- package/dist/picker/index.mjs.map +1 -0
- package/dist/pricing/index.d.ts +106 -0
- package/dist/pricing/index.mjs +3 -0
- package/dist/pricing/index.mjs.map +1 -0
- package/dist/providers/index.d.ts +78 -0
- package/dist/providers/index.mjs +237 -0
- package/dist/providers/index.mjs.map +1 -0
- package/dist/schema/index.d.ts +627 -0
- package/dist/schema/index.mjs +4 -0
- package/dist/schema/index.mjs.map +1 -0
- package/dist/schema/voice.d.ts +66 -0
- package/dist/schema/voice.mjs +3 -0
- package/dist/schema/voice.mjs.map +1 -0
- package/dist/video/index.d.ts +78 -0
- package/dist/video/index.mjs +3 -0
- package/dist/video/index.mjs.map +1 -0
- package/dist/voice/index.d.ts +1300 -0
- package/dist/voice/index.mjs +4 -0
- package/dist/voice/index.mjs.map +1 -0
- package/package.json +137 -0
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* TTS / realtime providers a catalog voice routes to. Each voice belongs
|
|
5
|
+
* to exactly one — the voice service picks the right adapter on dispatch.
|
|
6
|
+
*
|
|
7
|
+
* - `elevenlabs` — HTTP TTS streaming (sequential engine)
|
|
8
|
+
* - `minimax` — HTTP TTS streaming (sequential engine)
|
|
9
|
+
* - `openai-realtime` — bidirectional realtime WS (s2s engine). Voice id
|
|
10
|
+
* is the OpenAI voice name (`alloy`, `marin`, …).
|
|
11
|
+
* - `gemini-live` — Google Live API (s2s engine). Voice id is the
|
|
12
|
+
* named speaker (`Aoede`, `Charon`, …).
|
|
13
|
+
*
|
|
14
|
+
* Note: these are the voice-ENGINE provider tags, distinct from the
|
|
15
|
+
* company provider tags audio MODELS carry (`google`/`openai`). A voice's
|
|
16
|
+
* `gemini-live` ↔ the audio model `google/gemini-live` are the same engine.
|
|
17
|
+
*/
|
|
18
|
+
declare const CatalogVoiceProviderSchema: z.ZodEnum<{
|
|
19
|
+
elevenlabs: "elevenlabs";
|
|
20
|
+
"gemini-live": "gemini-live";
|
|
21
|
+
minimax: "minimax";
|
|
22
|
+
"openai-realtime": "openai-realtime";
|
|
23
|
+
}>;
|
|
24
|
+
type CatalogVoiceProvider = z.infer<typeof CatalogVoiceProviderSchema>;
|
|
25
|
+
/**
|
|
26
|
+
* A curated, provider-neutral voice. Carries both the selection metadata
|
|
27
|
+
* the picker shows (label, description, featured, samplePath) and the
|
|
28
|
+
* provider-native descriptors an adapter may surface (age, quality) — one
|
|
29
|
+
* entry serves both the UI and the execution adapter.
|
|
30
|
+
*
|
|
31
|
+
* `catalogId` is the stable provider-native slug saved on
|
|
32
|
+
* `operator.voiceId` rows; renaming the `label` is pure UX and never
|
|
33
|
+
* orphans a saved reference.
|
|
34
|
+
*/
|
|
35
|
+
declare const CatalogVoiceSchema: z.ZodObject<{
|
|
36
|
+
catalogId: z.ZodString;
|
|
37
|
+
providerVoiceId: z.ZodString;
|
|
38
|
+
provider: z.ZodEnum<{
|
|
39
|
+
elevenlabs: "elevenlabs";
|
|
40
|
+
"gemini-live": "gemini-live";
|
|
41
|
+
minimax: "minimax";
|
|
42
|
+
"openai-realtime": "openai-realtime";
|
|
43
|
+
}>;
|
|
44
|
+
label: z.ZodString;
|
|
45
|
+
description: z.ZodString;
|
|
46
|
+
gender: z.ZodEnum<{
|
|
47
|
+
female: "female";
|
|
48
|
+
male: "male";
|
|
49
|
+
neutral: "neutral";
|
|
50
|
+
}>;
|
|
51
|
+
primaryLanguage: z.ZodString;
|
|
52
|
+
supportedLanguages: z.ZodReadonly<z.ZodArray<z.ZodString>>;
|
|
53
|
+
samplePath: z.ZodOptional<z.ZodString>;
|
|
54
|
+
aliases: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
55
|
+
age: z.ZodOptional<z.ZodEnum<{
|
|
56
|
+
child: "child";
|
|
57
|
+
young: "young";
|
|
58
|
+
adult: "adult";
|
|
59
|
+
senior: "senior";
|
|
60
|
+
}>>;
|
|
61
|
+
quality: z.ZodOptional<z.ZodString>;
|
|
62
|
+
featured: z.ZodOptional<z.ZodBoolean>;
|
|
63
|
+
}, z.core.$strip>;
|
|
64
|
+
type CatalogVoice = z.infer<typeof CatalogVoiceSchema>;
|
|
65
|
+
|
|
66
|
+
export { type CatalogVoice, type CatalogVoiceProvider, CatalogVoiceProviderSchema, CatalogVoiceSchema };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"voice.mjs"}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Billing-unit + cost-multiplier types — inlined here so this package stays
|
|
3
|
+
* dependency-light (zod-only). Previously imported from
|
|
4
|
+
* `the app integration-core`; that coupling is severed for the OSS core.
|
|
5
|
+
* `@agentproto/model-catalog` re-exports these for back-compat.
|
|
6
|
+
*/
|
|
7
|
+
type BillingUnit = "per_image" | "per_second" | "per_clip" | "per_token" | "per_character";
|
|
8
|
+
/** Multipliers for resolution/duration/mode pricing variants. */
|
|
9
|
+
interface CostMultipliers {
|
|
10
|
+
resolution?: Record<string, number>;
|
|
11
|
+
duration?: Record<number, number>;
|
|
12
|
+
mode?: Record<string, number>;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Video Model Catalog — single source of truth for all video models.
|
|
17
|
+
*
|
|
18
|
+
* Migrated from `packages/integration/video/src/models/catalog.ts`. The
|
|
19
|
+
* original location now re-exports from here so every existing consumer
|
|
20
|
+
* keeps working.
|
|
21
|
+
*
|
|
22
|
+
* Adding a model = 1 entry here + 1 serializer in
|
|
23
|
+
* `packages/integration/video/src/providers/replicate/replicate-serializers.ts`.
|
|
24
|
+
*/
|
|
25
|
+
|
|
26
|
+
interface VideoModelDefinition {
|
|
27
|
+
id: string;
|
|
28
|
+
name: string;
|
|
29
|
+
/** Replicate model ID */
|
|
30
|
+
providerId: string;
|
|
31
|
+
provider: "replicate" | "minimax";
|
|
32
|
+
capabilities: {
|
|
33
|
+
textToVideo: boolean;
|
|
34
|
+
imageToVideo: boolean;
|
|
35
|
+
subjectReference: boolean;
|
|
36
|
+
audio: boolean;
|
|
37
|
+
};
|
|
38
|
+
maxDuration: number;
|
|
39
|
+
supportedResolutions: Array<"720p" | "1080p">;
|
|
40
|
+
supportedAspectRatios: string[];
|
|
41
|
+
pricing: {
|
|
42
|
+
/** @deprecated Use billingUnit + baseCost instead */
|
|
43
|
+
costPerClip: number;
|
|
44
|
+
/** @deprecated Derived from baseCost */
|
|
45
|
+
costTier: "low" | "medium" | "high";
|
|
46
|
+
/** How the provider bills: per_clip for most, per_second for lip-sync */
|
|
47
|
+
billingUnit: BillingUnit;
|
|
48
|
+
/** Our production cost in USD */
|
|
49
|
+
baseCost: number;
|
|
50
|
+
/** What baseCost covers */
|
|
51
|
+
baseCostUnit: string;
|
|
52
|
+
/** Provider-side cost multipliers for resolution/duration/mode. */
|
|
53
|
+
multipliers?: CostMultipliers;
|
|
54
|
+
/**
|
|
55
|
+
* @deprecated Credits derived at call time. Markup applied to
|
|
56
|
+
* `baseCost`, then `multipliers` re-applied. Kept optional for
|
|
57
|
+
* back-compat. Use `overrideCreditCost` for opt-outs.
|
|
58
|
+
*/
|
|
59
|
+
creditCost?: number;
|
|
60
|
+
/**
|
|
61
|
+
* @deprecated Use `multipliers`; markup re-uses the same shape.
|
|
62
|
+
*/
|
|
63
|
+
creditMultipliers?: CostMultipliers;
|
|
64
|
+
/** Bypass markup formula and charge exactly this base. */
|
|
65
|
+
overrideCreditCost?: number;
|
|
66
|
+
};
|
|
67
|
+
description: string;
|
|
68
|
+
agentVisible: boolean;
|
|
69
|
+
}
|
|
70
|
+
declare const VIDEO_MODEL_CATALOG: Record<string, VideoModelDefinition>;
|
|
71
|
+
/** All video model IDs */
|
|
72
|
+
declare const VIDEO_MODEL_IDS: [string, ...string[]];
|
|
73
|
+
/** Agent-visible video model IDs */
|
|
74
|
+
declare const AGENT_VIDEO_MODEL_IDS: [string, ...string[]];
|
|
75
|
+
/** Generate a markdown table of agent-visible video models for prompt blocks */
|
|
76
|
+
declare function generateVideoModelTable(): string;
|
|
77
|
+
|
|
78
|
+
export { AGENT_VIDEO_MODEL_IDS, VIDEO_MODEL_CATALOG, VIDEO_MODEL_IDS, type VideoModelDefinition, generateVideoModelTable };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.mjs"}
|