@anolilab/ai-model-registry 1.0.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.
@@ -0,0 +1,90 @@
1
+ import { z } from 'zod';
2
+
3
+ declare const ModelSchema: z.ZodObject<{
4
+ attachment: z.ZodBoolean;
5
+ audioGeneration: z.ZodOptional<z.ZodBoolean>;
6
+ batchMode: z.ZodOptional<z.ZodBoolean>;
7
+ cacheRead: z.ZodOptional<z.ZodBoolean>;
8
+ codeExecution: z.ZodOptional<z.ZodBoolean>;
9
+ compoundSystem: z.ZodOptional<z.ZodBoolean>;
10
+ cost: z.ZodObject<{
11
+ imageGeneration: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
12
+ imageGenerationUltra: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
13
+ input: z.ZodNullable<z.ZodNumber>;
14
+ inputCacheHit: z.ZodNullable<z.ZodNumber>;
15
+ output: z.ZodNullable<z.ZodNumber>;
16
+ videoGeneration: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
17
+ videoGenerationWithAudio: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
18
+ videoGenerationWithoutAudio: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
19
+ }, z.core.$strict>;
20
+ deploymentType: z.ZodOptional<z.ZodString>;
21
+ description: z.ZodOptional<z.ZodString>;
22
+ extendedThinking: z.ZodOptional<z.ZodBoolean>;
23
+ icon: z.ZodOptional<z.ZodString>;
24
+ id: z.ZodString;
25
+ imageGeneration: z.ZodOptional<z.ZodBoolean>;
26
+ knowledge: z.ZodNullable<z.ZodString>;
27
+ lastUpdated: z.ZodNullable<z.ZodString>;
28
+ launchDate: z.ZodOptional<z.ZodString>;
29
+ limit: z.ZodObject<{
30
+ context: z.ZodNullable<z.ZodNumber>;
31
+ output: z.ZodNullable<z.ZodNumber>;
32
+ }, z.core.$strict>;
33
+ modalities: z.ZodObject<{
34
+ input: z.ZodArray<z.ZodString>;
35
+ output: z.ZodArray<z.ZodString>;
36
+ }, z.core.$strict>;
37
+ name: z.ZodNullable<z.ZodString>;
38
+ openWeights: z.ZodBoolean;
39
+ originalModelId: z.ZodOptional<z.ZodString>;
40
+ ownedBy: z.ZodOptional<z.ZodString>;
41
+ preview: z.ZodOptional<z.ZodBoolean>;
42
+ provider: z.ZodOptional<z.ZodString>;
43
+ providerDoc: z.ZodOptional<z.ZodString>;
44
+ providerEnv: z.ZodOptional<z.ZodArray<z.ZodString>>;
45
+ providerId: z.ZodOptional<z.ZodString>;
46
+ providerModelsDevId: z.ZodOptional<z.ZodString>;
47
+ providerNpm: z.ZodOptional<z.ZodString>;
48
+ providerStatus: z.ZodOptional<z.ZodString>;
49
+ reasoning: z.ZodBoolean;
50
+ regions: z.ZodOptional<z.ZodArray<z.ZodString>>;
51
+ releaseDate: z.ZodNullable<z.ZodString>;
52
+ searchGrounding: z.ZodOptional<z.ZodBoolean>;
53
+ streamingSupported: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
54
+ structuredOutputs: z.ZodOptional<z.ZodBoolean>;
55
+ supportsStructuredOutput: z.ZodOptional<z.ZodBoolean>;
56
+ supportsTools: z.ZodOptional<z.ZodBoolean>;
57
+ temperature: z.ZodBoolean;
58
+ toolCall: z.ZodBoolean;
59
+ trainingCutoff: z.ZodOptional<z.ZodNullable<z.ZodString>>;
60
+ version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
61
+ versions: z.ZodOptional<z.ZodObject<{
62
+ preview: z.ZodOptional<z.ZodNullable<z.ZodString>>;
63
+ stable: z.ZodOptional<z.ZodNullable<z.ZodString>>;
64
+ }, z.core.$strip>>;
65
+ vision: z.ZodOptional<z.ZodBoolean>;
66
+ }, z.core.$strict>;
67
+ type Model = z.infer<typeof ModelSchema>;
68
+ declare const ProviderSchema: z.ZodObject<{
69
+ capabilities: z.ZodOptional<z.ZodArray<z.ZodString>>;
70
+ description: z.ZodOptional<z.ZodString>;
71
+ displayName: z.ZodOptional<z.ZodString>;
72
+ doc: z.ZodOptional<z.ZodString>;
73
+ env: z.ZodOptional<z.ZodArray<z.ZodString>>;
74
+ icon: z.ZodOptional<z.ZodString>;
75
+ id: z.ZodString;
76
+ modelCount: z.ZodOptional<z.ZodNumber>;
77
+ modelsDevId: z.ZodOptional<z.ZodString>;
78
+ name: z.ZodString;
79
+ npm: z.ZodOptional<z.ZodString>;
80
+ status: z.ZodOptional<z.ZodEnum<{
81
+ active: "active";
82
+ inactive: "inactive";
83
+ deprecated: "deprecated";
84
+ }>>;
85
+ website: z.ZodOptional<z.ZodString>;
86
+ }, z.core.$strict>;
87
+ type Provider = z.infer<typeof ProviderSchema>;
88
+
89
+ export { ModelSchema, ProviderSchema };
90
+ export type { Model, Provider };
package/dist/schema.js ADDED
@@ -0,0 +1 @@
1
+ import{z as o}from"zod";const t=o.object({attachment:o.boolean(),audioGeneration:o.boolean().optional(),batchMode:o.boolean().optional(),cacheRead:o.boolean().optional(),codeExecution:o.boolean().optional(),compoundSystem:o.boolean().optional(),cost:o.object({imageGeneration:o.number().nullable().optional(),imageGenerationUltra:o.number().nullable().optional(),input:o.number().nullable(),inputCacheHit:o.number().nullable(),output:o.number().nullable(),videoGeneration:o.number().nullable().optional(),videoGenerationWithAudio:o.number().nullable().optional(),videoGenerationWithoutAudio:o.number().nullable().optional()}).strict(),deploymentType:o.string().optional(),description:o.string().optional(),extendedThinking:o.boolean().optional(),icon:o.string().optional(),id:o.string(),imageGeneration:o.boolean().optional(),knowledge:o.string().nullable(),lastUpdated:o.string().nullable(),launchDate:o.string().optional(),limit:o.object({context:o.number().nullable(),output:o.number().nullable()}).strict(),modalities:o.object({input:o.array(o.string()),output:o.array(o.string())}).strict(),name:o.string().nullable(),openWeights:o.boolean(),originalModelId:o.string().optional(),ownedBy:o.string().optional(),preview:o.boolean().optional(),provider:o.string().optional(),providerDoc:o.string().optional(),providerEnv:o.array(o.string()).optional(),providerId:o.string().optional(),providerModelsDevId:o.string().optional(),providerNpm:o.string().optional(),providerStatus:o.string().optional(),reasoning:o.boolean(),regions:o.array(o.string()).optional(),releaseDate:o.string().nullable(),searchGrounding:o.boolean().optional(),streamingSupported:o.boolean().nullable().optional(),structuredOutputs:o.boolean().optional(),supportsStructuredOutput:o.boolean().optional(),supportsTools:o.boolean().optional(),temperature:o.boolean(),toolCall:o.boolean(),trainingCutoff:o.string().nullable().optional(),version:o.string().nullable().optional(),versions:o.object({preview:o.string().nullable().optional(),stable:o.string().nullable().optional()}).optional(),vision:o.boolean().optional()}).strict(),i=o.object({capabilities:o.array(o.string()).optional(),description:o.string().optional(),displayName:o.string().optional(),doc:o.string().optional(),env:o.array(o.string()).optional(),icon:o.string().optional(),id:o.string(),modelCount:o.number().optional(),modelsDevId:o.string().optional(),name:o.string(),npm:o.string().optional(),status:o.enum(["active","inactive","deprecated"]).optional(),website:o.string().optional()}).strict();export{t as ModelSchema,i as ProviderSchema};
package/package.json ADDED
@@ -0,0 +1,86 @@
1
+ {
2
+ "name": "@anolilab/ai-model-registry",
3
+ "version": "1.0.0",
4
+ "description": "Unified registry for AI model providers and their metadata",
5
+ "keywords": [
6
+ "ai",
7
+ "artificial-intelligence",
8
+ "llm",
9
+ "large-language-models",
10
+ "models",
11
+ "model-registry",
12
+ "providers",
13
+ "registry",
14
+ "metadata",
15
+ "openai",
16
+ "anthropic",
17
+ "google",
18
+ "meta",
19
+ "groq",
20
+ "deepseek",
21
+ "mistral",
22
+ "pricing",
23
+ "cost",
24
+ "search",
25
+ "filter",
26
+ "typescript",
27
+ "javascript",
28
+ "node",
29
+ "browser"
30
+ ],
31
+ "homepage": "https://github.com/anolilab/ai-models",
32
+ "bugs": {
33
+ "url": "https://github.com/anolilab/ai-models/issues"
34
+ },
35
+ "repository": {
36
+ "type": "git",
37
+ "url": "git+https://github.com/anolilab/ai-models.git",
38
+ "directory": "packages/ai-model-registry"
39
+ },
40
+ "funding": [
41
+ {
42
+ "type": "github",
43
+ "url": "https://github.com/sponsors/prisis"
44
+ },
45
+ {
46
+ "type": "consulting",
47
+ "url": "https://anolilab.com/support"
48
+ }
49
+ ],
50
+ "license": "Apache-2.0",
51
+ "author": "AnoliLab",
52
+ "sideEffects": false,
53
+ "type": "module",
54
+ "exports": {
55
+ ".": {
56
+ "types": "./dist/index.d.ts",
57
+ "import": "./dist/index.js"
58
+ },
59
+ "./schema": {
60
+ "types": "./dist/schema.d.ts",
61
+ "import": "./dist/schema.js"
62
+ },
63
+ "./icons": {
64
+ "types": "./dist/icons-sprite.d.ts",
65
+ "import": "./dist/icons-sprite.js"
66
+ },
67
+ "./api.json": "./public/api.json"
68
+ },
69
+ "files": [
70
+ "./dist",
71
+ "./public",
72
+ "README.md",
73
+ "CHANGELOG.md",
74
+ "LICENSE.md"
75
+ ],
76
+ "dependencies": {
77
+ "zod": "^4.0.14"
78
+ },
79
+ "engines": {
80
+ "node": ">=20"
81
+ },
82
+ "publishConfig": {
83
+ "access": "public",
84
+ "provenance": true
85
+ }
86
+ }