@openrouter/sdk 1.5.29 → 1.5.30
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/esm/lib/config.d.ts
CHANGED
|
@@ -50,8 +50,8 @@ export declare function serverURLFromOptions(options: SDKOptions): URL | null;
|
|
|
50
50
|
export declare const SDK_METADATA: {
|
|
51
51
|
readonly language: "typescript";
|
|
52
52
|
readonly openapiDocVersion: "1.0.0";
|
|
53
|
-
readonly sdkVersion: "1.5.
|
|
53
|
+
readonly sdkVersion: "1.5.30";
|
|
54
54
|
readonly genVersion: "2.950.13";
|
|
55
|
-
readonly userAgent: "speakeasy-sdk/typescript 1.5.
|
|
55
|
+
readonly userAgent: "speakeasy-sdk/typescript 1.5.30 2.950.13 1.0.0 @openrouter/sdk";
|
|
56
56
|
};
|
|
57
57
|
//# sourceMappingURL=config.d.ts.map
|
package/esm/lib/config.js
CHANGED
|
@@ -29,8 +29,8 @@ export function serverURLFromOptions(options) {
|
|
|
29
29
|
export const SDK_METADATA = {
|
|
30
30
|
language: "typescript",
|
|
31
31
|
openapiDocVersion: "1.0.0",
|
|
32
|
-
sdkVersion: "1.5.
|
|
32
|
+
sdkVersion: "1.5.30",
|
|
33
33
|
genVersion: "2.950.13",
|
|
34
|
-
userAgent: "speakeasy-sdk/typescript 1.5.
|
|
34
|
+
userAgent: "speakeasy-sdk/typescript 1.5.30 2.950.13 1.0.0 @openrouter/sdk",
|
|
35
35
|
};
|
|
36
36
|
//# sourceMappingURL=config.js.map
|
package/esm/models/model.d.ts
CHANGED
|
@@ -47,6 +47,10 @@ export type Model = {
|
|
|
47
47
|
* Description of the model
|
|
48
48
|
*/
|
|
49
49
|
description?: string | undefined;
|
|
50
|
+
/**
|
|
51
|
+
* Request API paths that serve this model, derived from the same modality and adapter rules the routers use. A model served only through an alpha surface lists only that path.
|
|
52
|
+
*/
|
|
53
|
+
endpoints: Array<string>;
|
|
50
54
|
/**
|
|
51
55
|
* The date after which the model may be removed. ISO 8601 date string (YYYY-MM-DD) or null if no expiration.
|
|
52
56
|
*/
|
package/esm/models/model.js
CHANGED
|
@@ -25,6 +25,7 @@ export const Model$inboundSchema = z.object({
|
|
|
25
25
|
created: z.int(),
|
|
26
26
|
default_parameters: z.nullable(DefaultParameters$inboundSchema),
|
|
27
27
|
description: z.string().optional(),
|
|
28
|
+
endpoints: z.array(z.string()),
|
|
28
29
|
expiration_date: z.nullable(z.string()).optional(),
|
|
29
30
|
hugging_face_id: z.nullable(z.string()).optional(),
|
|
30
31
|
id: z.string(),
|
|
@@ -49,7 +49,7 @@ export declare const ListModelsUserSort: {
|
|
|
49
49
|
*/
|
|
50
50
|
export type ListModelsUserSort = OpenEnum<typeof ListModelsUserSort>;
|
|
51
51
|
/**
|
|
52
|
-
* Filter models and presets by the named harness's eligibility policy: tool calling is required, and when one of your guardrails sets `enforce_first_party_harness_models`, only the harness vendor's own models remain (OpenAI for codex, Anthropic for claude_code and claude_desktop). This filter doesn't apply the harness's ranking, caps or Claude Desktop model ID aliases, so returned IDs stay routable. One of: claude_code, claude_desktop, codex. Omit it to get every model you can use.
|
|
52
|
+
* Filter models and presets by the named harness's eligibility policy: tool calling is required, and when one of your guardrails sets `enforce_first_party_harness_models`, only the harness vendor's own models remain (OpenAI for codex, Anthropic for claude_code and claude_desktop). When your workspace's Managed Machines policy sets a model list for that harness, only the listed models remain, and a preset remains only while every model it routes to is listed. This filter doesn't apply the harness's ranking, caps or Claude Desktop model ID aliases, so returned IDs stay routable. One of: claude_code, claude_desktop, codex. Omit it to get every model you can use.
|
|
53
53
|
*/
|
|
54
54
|
export declare const Client: {
|
|
55
55
|
readonly ClaudeCode: "claude_code";
|
|
@@ -57,7 +57,7 @@ export declare const Client: {
|
|
|
57
57
|
readonly Codex: "codex";
|
|
58
58
|
};
|
|
59
59
|
/**
|
|
60
|
-
* Filter models and presets by the named harness's eligibility policy: tool calling is required, and when one of your guardrails sets `enforce_first_party_harness_models`, only the harness vendor's own models remain (OpenAI for codex, Anthropic for claude_code and claude_desktop). This filter doesn't apply the harness's ranking, caps or Claude Desktop model ID aliases, so returned IDs stay routable. One of: claude_code, claude_desktop, codex. Omit it to get every model you can use.
|
|
60
|
+
* Filter models and presets by the named harness's eligibility policy: tool calling is required, and when one of your guardrails sets `enforce_first_party_harness_models`, only the harness vendor's own models remain (OpenAI for codex, Anthropic for claude_code and claude_desktop). When your workspace's Managed Machines policy sets a model list for that harness, only the listed models remain, and a preset remains only while every model it routes to is listed. This filter doesn't apply the harness's ranking, caps or Claude Desktop model ID aliases, so returned IDs stay routable. One of: claude_code, claude_desktop, codex. Omit it to get every model you can use.
|
|
61
61
|
*/
|
|
62
62
|
export type Client = OpenEnum<typeof Client>;
|
|
63
63
|
export type ListModelsUserRequest = {
|
|
@@ -97,7 +97,7 @@ export type ListModelsUserRequest = {
|
|
|
97
97
|
*/
|
|
98
98
|
sort?: ListModelsUserSort | undefined;
|
|
99
99
|
/**
|
|
100
|
-
* Filter models and presets by the named harness's eligibility policy: tool calling is required, and when one of your guardrails sets `enforce_first_party_harness_models`, only the harness vendor's own models remain (OpenAI for codex, Anthropic for claude_code and claude_desktop). This filter doesn't apply the harness's ranking, caps or Claude Desktop model ID aliases, so returned IDs stay routable. One of: claude_code, claude_desktop, codex. Omit it to get every model you can use.
|
|
100
|
+
* Filter models and presets by the named harness's eligibility policy: tool calling is required, and when one of your guardrails sets `enforce_first_party_harness_models`, only the harness vendor's own models remain (OpenAI for codex, Anthropic for claude_code and claude_desktop). When your workspace's Managed Machines policy sets a model list for that harness, only the listed models remain, and a preset remains only while every model it routes to is listed. This filter doesn't apply the harness's ranking, caps or Claude Desktop model ID aliases, so returned IDs stay routable. One of: claude_code, claude_desktop, codex. Omit it to get every model you can use.
|
|
101
101
|
*/
|
|
102
102
|
client?: Client | undefined;
|
|
103
103
|
};
|
|
@@ -25,7 +25,7 @@ export const ListModelsUserSort = {
|
|
|
25
25
|
DesignArenaEloHighToLow: "design-arena-elo-high-to-low",
|
|
26
26
|
};
|
|
27
27
|
/**
|
|
28
|
-
* Filter models and presets by the named harness's eligibility policy: tool calling is required, and when one of your guardrails sets `enforce_first_party_harness_models`, only the harness vendor's own models remain (OpenAI for codex, Anthropic for claude_code and claude_desktop). This filter doesn't apply the harness's ranking, caps or Claude Desktop model ID aliases, so returned IDs stay routable. One of: claude_code, claude_desktop, codex. Omit it to get every model you can use.
|
|
28
|
+
* Filter models and presets by the named harness's eligibility policy: tool calling is required, and when one of your guardrails sets `enforce_first_party_harness_models`, only the harness vendor's own models remain (OpenAI for codex, Anthropic for claude_code and claude_desktop). When your workspace's Managed Machines policy sets a model list for that harness, only the listed models remain, and a preset remains only while every model it routes to is listed. This filter doesn't apply the harness's ranking, caps or Claude Desktop model ID aliases, so returned IDs stay routable. One of: claude_code, claude_desktop, codex. Omit it to get every model you can use.
|
|
29
29
|
*/
|
|
30
30
|
export const Client = {
|
|
31
31
|
ClaudeCode: "claude_code",
|
package/jsr.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openrouter/sdk",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.30",
|
|
4
4
|
"author": "OpenRouter",
|
|
5
5
|
"description": "The OpenRouter TypeScript SDK is a type-safe toolkit for building AI applications with access to 400+ language models through a unified API.",
|
|
6
6
|
"keywords": [
|
|
@@ -73,15 +73,15 @@
|
|
|
73
73
|
"lint": "eslint --cache --max-warnings=0 src",
|
|
74
74
|
"build": "tsc && node scripts/unbarrel-imports.js",
|
|
75
75
|
"prepublishOnly": "npm run build",
|
|
76
|
+
"postinstall": "node scripts/check-types.js || true",
|
|
77
|
+
"test:e2e": "vitest --run --project e2e",
|
|
76
78
|
"test:transit": "exit 0",
|
|
77
|
-
"test:watch": "vitest --watch --project unit",
|
|
78
|
-
"typecheck": "tsc --noEmit",
|
|
79
|
-
"compile": "tsc && node scripts/unbarrel-imports.js",
|
|
80
79
|
"prepare": "npm run build",
|
|
81
80
|
"test": "vitest --run --project unit",
|
|
81
|
+
"test:watch": "vitest --watch --project unit",
|
|
82
|
+
"typecheck": "tsc --noEmit",
|
|
82
83
|
"typecheck:transit": "exit 0",
|
|
83
|
-
"
|
|
84
|
-
"test:e2e": "vitest --run --project e2e"
|
|
84
|
+
"compile": "tsc && node scripts/unbarrel-imports.js"
|
|
85
85
|
},
|
|
86
86
|
"peerDependencies": {
|
|
87
87
|
|