@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.
Files changed (87) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +37 -0
  3. package/dist/access/index.d.ts +30 -0
  4. package/dist/access/index.mjs +4 -0
  5. package/dist/access/index.mjs.map +1 -0
  6. package/dist/audio/index.d.ts +84 -0
  7. package/dist/audio/index.mjs +3 -0
  8. package/dist/audio/index.mjs.map +1 -0
  9. package/dist/audio-BzVF_wke.d.ts +92 -0
  10. package/dist/base-BNHcMifc.d.ts +109 -0
  11. package/dist/byok/index.d.ts +33 -0
  12. package/dist/byok/index.mjs +3 -0
  13. package/dist/byok/index.mjs.map +1 -0
  14. package/dist/catalog-aQHd559b.d.ts +594 -0
  15. package/dist/chunk-2LWYZOWB.mjs +643 -0
  16. package/dist/chunk-2LWYZOWB.mjs.map +1 -0
  17. package/dist/chunk-CINXNTU3.mjs +134 -0
  18. package/dist/chunk-CINXNTU3.mjs.map +1 -0
  19. package/dist/chunk-F7OEHYUI.mjs +187 -0
  20. package/dist/chunk-F7OEHYUI.mjs.map +1 -0
  21. package/dist/chunk-GH7PB5FB.mjs +183 -0
  22. package/dist/chunk-GH7PB5FB.mjs.map +1 -0
  23. package/dist/chunk-H6JUTF3U.mjs +33 -0
  24. package/dist/chunk-H6JUTF3U.mjs.map +1 -0
  25. package/dist/chunk-HEDDSOZF.mjs +47 -0
  26. package/dist/chunk-HEDDSOZF.mjs.map +1 -0
  27. package/dist/chunk-HRRG2RZO.mjs +116 -0
  28. package/dist/chunk-HRRG2RZO.mjs.map +1 -0
  29. package/dist/chunk-IJZ4XPO2.mjs +606 -0
  30. package/dist/chunk-IJZ4XPO2.mjs.map +1 -0
  31. package/dist/chunk-IORIAFK2.mjs +227 -0
  32. package/dist/chunk-IORIAFK2.mjs.map +1 -0
  33. package/dist/chunk-OHAMH3ZE.mjs +2629 -0
  34. package/dist/chunk-OHAMH3ZE.mjs.map +1 -0
  35. package/dist/chunk-QHELXPSL.mjs +85 -0
  36. package/dist/chunk-QHELXPSL.mjs.map +1 -0
  37. package/dist/chunk-SGJR6ZQH.mjs +1230 -0
  38. package/dist/chunk-SGJR6ZQH.mjs.map +1 -0
  39. package/dist/chunk-WRUWNKDB.mjs +521 -0
  40. package/dist/chunk-WRUWNKDB.mjs.map +1 -0
  41. package/dist/chunk-WTHHXXIK.mjs +366 -0
  42. package/dist/chunk-WTHHXXIK.mjs.map +1 -0
  43. package/dist/chunk-XFDXTFV3.mjs +28 -0
  44. package/dist/chunk-XFDXTFV3.mjs.map +1 -0
  45. package/dist/cost/index.d.ts +114 -0
  46. package/dist/cost/index.mjs +13 -0
  47. package/dist/cost/index.mjs.map +1 -0
  48. package/dist/curation/index.d.ts +98 -0
  49. package/dist/curation/index.mjs +13 -0
  50. package/dist/curation/index.mjs.map +1 -0
  51. package/dist/evaluate-DisH3H7u.d.ts +84 -0
  52. package/dist/image/index.d.ts +79 -0
  53. package/dist/image/index.mjs +3 -0
  54. package/dist/image/index.mjs.map +1 -0
  55. package/dist/index-BICjPG8H.d.ts +132 -0
  56. package/dist/index-D8nL3fPZ.d.ts +171 -0
  57. package/dist/index.d.ts +94 -0
  58. package/dist/index.mjs +33 -0
  59. package/dist/index.mjs.map +1 -0
  60. package/dist/llm/index.d.ts +48 -0
  61. package/dist/llm/index.mjs +4 -0
  62. package/dist/llm/index.mjs.map +1 -0
  63. package/dist/overlay/index.d.ts +67 -0
  64. package/dist/overlay/index.mjs +3 -0
  65. package/dist/overlay/index.mjs.map +1 -0
  66. package/dist/picker/index.d.ts +11 -0
  67. package/dist/picker/index.mjs +26 -0
  68. package/dist/picker/index.mjs.map +1 -0
  69. package/dist/pricing/index.d.ts +106 -0
  70. package/dist/pricing/index.mjs +3 -0
  71. package/dist/pricing/index.mjs.map +1 -0
  72. package/dist/providers/index.d.ts +78 -0
  73. package/dist/providers/index.mjs +237 -0
  74. package/dist/providers/index.mjs.map +1 -0
  75. package/dist/schema/index.d.ts +627 -0
  76. package/dist/schema/index.mjs +4 -0
  77. package/dist/schema/index.mjs.map +1 -0
  78. package/dist/schema/voice.d.ts +66 -0
  79. package/dist/schema/voice.mjs +3 -0
  80. package/dist/schema/voice.mjs.map +1 -0
  81. package/dist/video/index.d.ts +78 -0
  82. package/dist/video/index.mjs +3 -0
  83. package/dist/video/index.mjs.map +1 -0
  84. package/dist/voice/index.d.ts +1300 -0
  85. package/dist/voice/index.mjs +4 -0
  86. package/dist/voice/index.mjs.map +1 -0
  87. 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,3 @@
1
+ export { CatalogVoiceProviderSchema, CatalogVoiceSchema } from '../chunk-HEDDSOZF.mjs';
2
+ //# sourceMappingURL=voice.mjs.map
3
+ //# sourceMappingURL=voice.mjs.map
@@ -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,3 @@
1
+ export { AGENT_VIDEO_MODEL_IDS, VIDEO_MODEL_CATALOG, VIDEO_MODEL_IDS, generateVideoModelTable } from '../chunk-IJZ4XPO2.mjs';
2
+ //# sourceMappingURL=index.mjs.map
3
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"index.mjs"}