@openrouter/sdk 1.2.109 → 1.2.111
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 +2 -2
- package/esm/lib/config.js +2 -2
- package/esm/models/bashservertoolconfig.d.ts +0 -5
- package/esm/models/bashservertoolconfig.js +0 -6
- package/esm/models/byokproviderslug.d.ts +0 -1
- package/esm/models/byokproviderslug.js +0 -1
- package/esm/models/operations/listbyokkeys.d.ts +0 -1
- package/esm/models/operations/listbyokkeys.js +0 -1
- package/esm/models/providername.d.ts +0 -1
- package/esm/models/providername.js +0 -1
- package/esm/models/providerresponse.d.ts +1 -1
- package/esm/models/providerresponse.js +1 -1
- package/esm/models/shellservertoolconfig.d.ts +0 -5
- package/esm/models/shellservertoolconfig.js +0 -6
- package/jsr.json +1 -1
- package/package.json +7 -7
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.2.
|
|
53
|
+
readonly sdkVersion: "1.2.111";
|
|
54
54
|
readonly genVersion: "2.914.0";
|
|
55
|
-
readonly userAgent: "speakeasy-sdk/typescript 1.2.
|
|
55
|
+
readonly userAgent: "speakeasy-sdk/typescript 1.2.111 2.914.0 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.2.
|
|
32
|
+
sdkVersion: "1.2.111",
|
|
33
33
|
genVersion: "2.914.0",
|
|
34
|
-
userAgent: "speakeasy-sdk/typescript 1.2.
|
|
34
|
+
userAgent: "speakeasy-sdk/typescript 1.2.111 2.914.0 1.0.0 @openrouter/sdk",
|
|
35
35
|
};
|
|
36
36
|
//# sourceMappingURL=config.js.map
|
|
@@ -13,16 +13,11 @@ export type BashServerToolConfig = {
|
|
|
13
13
|
* Execution environment for the bash server tool.
|
|
14
14
|
*/
|
|
15
15
|
environment?: BashServerToolEnvironment | undefined;
|
|
16
|
-
/**
|
|
17
|
-
* How long (in seconds) the container stays warm after its last command before sleeping, freeing its capacity slot. Idle-based: each command renews the timer. Defaults to 300 (5 minutes); capped at 14400 (4 hours).
|
|
18
|
-
*/
|
|
19
|
-
sleepAfterSeconds?: number | undefined;
|
|
20
16
|
};
|
|
21
17
|
/** @internal */
|
|
22
18
|
export type BashServerToolConfig$Outbound = {
|
|
23
19
|
engine?: string | undefined;
|
|
24
20
|
environment?: BashServerToolEnvironment$Outbound | undefined;
|
|
25
|
-
sleep_after_seconds?: number | undefined;
|
|
26
21
|
};
|
|
27
22
|
/** @internal */
|
|
28
23
|
export declare const BashServerToolConfig$outboundSchema: z.ZodType<BashServerToolConfig$Outbound, BashServerToolConfig>;
|
|
@@ -3,18 +3,12 @@
|
|
|
3
3
|
* @generated-id: 77c2f874ae9c
|
|
4
4
|
*/
|
|
5
5
|
import * as z from "zod/v4";
|
|
6
|
-
import { remap as remap$ } from "../lib/primitives.js";
|
|
7
6
|
import { BashServerToolEngine$outboundSchema, } from "./bashservertoolengine.js";
|
|
8
7
|
import { BashServerToolEnvironment$outboundSchema, } from "./bashservertoolenvironment.js";
|
|
9
8
|
/** @internal */
|
|
10
9
|
export const BashServerToolConfig$outboundSchema = z.object({
|
|
11
10
|
engine: BashServerToolEngine$outboundSchema.optional(),
|
|
12
11
|
environment: BashServerToolEnvironment$outboundSchema.optional(),
|
|
13
|
-
sleepAfterSeconds: z.int().optional(),
|
|
14
|
-
}).transform((v) => {
|
|
15
|
-
return remap$(v, {
|
|
16
|
-
sleepAfterSeconds: "sleep_after_seconds",
|
|
17
|
-
});
|
|
18
12
|
});
|
|
19
13
|
export function bashServerToolConfigToJSON(bashServerToolConfig) {
|
|
20
14
|
return JSON.stringify(BashServerToolConfig$outboundSchema.parse(bashServerToolConfig));
|
|
@@ -67,7 +67,6 @@ export declare const BYOKProviderSlug: {
|
|
|
67
67
|
readonly Modular: "modular";
|
|
68
68
|
readonly Moonshotai: "moonshotai";
|
|
69
69
|
readonly Morph: "morph";
|
|
70
|
-
readonly Ncompass: "ncompass";
|
|
71
70
|
readonly Nebius: "nebius";
|
|
72
71
|
readonly NexAgi: "nex-agi";
|
|
73
72
|
readonly Nextbit: "nextbit";
|
|
@@ -66,7 +66,6 @@ export declare const ProviderName: {
|
|
|
66
66
|
readonly MoonshotAI: "Moonshot AI";
|
|
67
67
|
readonly Morph: "Morph";
|
|
68
68
|
readonly VoyageAIByMongoDB: "VoyageAI by MongoDB";
|
|
69
|
-
readonly NCompass: "NCompass";
|
|
70
69
|
readonly Nebius: "Nebius";
|
|
71
70
|
readonly NexAGI: "Nex AGI";
|
|
72
71
|
readonly NextBit: "NextBit";
|
|
@@ -23,6 +23,7 @@ export declare const ProviderResponseProviderName: {
|
|
|
23
23
|
readonly Lynn: "Lynn";
|
|
24
24
|
readonly Mancer: "Mancer";
|
|
25
25
|
readonly Modal: "Modal";
|
|
26
|
+
readonly NCompass: "NCompass";
|
|
26
27
|
readonly Nineteen: "Nineteen";
|
|
27
28
|
readonly OctoAI: "OctoAI";
|
|
28
29
|
readonly Recursal: "Recursal";
|
|
@@ -98,7 +99,6 @@ export declare const ProviderResponseProviderName: {
|
|
|
98
99
|
readonly MoonshotAI: "Moonshot AI";
|
|
99
100
|
readonly Morph: "Morph";
|
|
100
101
|
readonly VoyageAIByMongoDB: "VoyageAI by MongoDB";
|
|
101
|
-
readonly NCompass: "NCompass";
|
|
102
102
|
readonly Nebius: "Nebius";
|
|
103
103
|
readonly NexAGI: "Nex AGI";
|
|
104
104
|
readonly NextBit: "NextBit";
|
|
@@ -27,6 +27,7 @@ export const ProviderResponseProviderName = {
|
|
|
27
27
|
Lynn: "Lynn",
|
|
28
28
|
Mancer: "Mancer",
|
|
29
29
|
Modal: "Modal",
|
|
30
|
+
NCompass: "NCompass",
|
|
30
31
|
Nineteen: "Nineteen",
|
|
31
32
|
OctoAI: "OctoAI",
|
|
32
33
|
Recursal: "Recursal",
|
|
@@ -102,7 +103,6 @@ export const ProviderResponseProviderName = {
|
|
|
102
103
|
MoonshotAI: "Moonshot AI",
|
|
103
104
|
Morph: "Morph",
|
|
104
105
|
VoyageAIByMongoDB: "VoyageAI by MongoDB",
|
|
105
|
-
NCompass: "NCompass",
|
|
106
106
|
Nebius: "Nebius",
|
|
107
107
|
NexAGI: "Nex AGI",
|
|
108
108
|
NextBit: "NextBit",
|
|
@@ -13,16 +13,11 @@ export type ShellServerToolConfig = {
|
|
|
13
13
|
* Server-side execution environment for the shell tool. Only container-backed environments are supported; "local" shells are not.
|
|
14
14
|
*/
|
|
15
15
|
environment?: ShellServerToolEnvironment | undefined;
|
|
16
|
-
/**
|
|
17
|
-
* How long (in seconds) the container stays warm after its last command before sleeping, freeing its capacity slot. Idle-based: each command renews the timer. Defaults to 300 (5 minutes); capped at 14400 (4 hours).
|
|
18
|
-
*/
|
|
19
|
-
sleepAfterSeconds?: number | undefined;
|
|
20
16
|
};
|
|
21
17
|
/** @internal */
|
|
22
18
|
export type ShellServerToolConfig$Outbound = {
|
|
23
19
|
engine?: string | undefined;
|
|
24
20
|
environment?: ShellServerToolEnvironment$Outbound | undefined;
|
|
25
|
-
sleep_after_seconds?: number | undefined;
|
|
26
21
|
};
|
|
27
22
|
/** @internal */
|
|
28
23
|
export declare const ShellServerToolConfig$outboundSchema: z.ZodType<ShellServerToolConfig$Outbound, ShellServerToolConfig>;
|
|
@@ -3,18 +3,12 @@
|
|
|
3
3
|
* @generated-id: c6c92c223699
|
|
4
4
|
*/
|
|
5
5
|
import * as z from "zod/v4";
|
|
6
|
-
import { remap as remap$ } from "../lib/primitives.js";
|
|
7
6
|
import { ShellServerToolEngine$outboundSchema, } from "./shellservertoolengine.js";
|
|
8
7
|
import { ShellServerToolEnvironment$outboundSchema, } from "./shellservertoolenvironment.js";
|
|
9
8
|
/** @internal */
|
|
10
9
|
export const ShellServerToolConfig$outboundSchema = z.object({
|
|
11
10
|
engine: ShellServerToolEngine$outboundSchema.optional(),
|
|
12
11
|
environment: ShellServerToolEnvironment$outboundSchema.optional(),
|
|
13
|
-
sleepAfterSeconds: z.int().optional(),
|
|
14
|
-
}).transform((v) => {
|
|
15
|
-
return remap$(v, {
|
|
16
|
-
sleepAfterSeconds: "sleep_after_seconds",
|
|
17
|
-
});
|
|
18
12
|
});
|
|
19
13
|
export function shellServerToolConfigToJSON(shellServerToolConfig) {
|
|
20
14
|
return JSON.stringify(ShellServerToolConfig$outboundSchema.parse(shellServerToolConfig));
|
package/jsr.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openrouter/sdk",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.111",
|
|
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",
|
|
75
75
|
"prepublishOnly": "npm run build",
|
|
76
|
-
"prepare": "npm run build",
|
|
77
76
|
"test": "vitest --run --project unit",
|
|
78
|
-
"typecheck": "tsc --noEmit",
|
|
79
|
-
"typecheck:transit": "exit 0",
|
|
80
|
-
"compile": "tsc",
|
|
81
|
-
"postinstall": "node scripts/check-types.js || true",
|
|
82
77
|
"test:e2e": "vitest --run --project e2e",
|
|
83
78
|
"test:transit": "exit 0",
|
|
84
|
-
"
|
|
79
|
+
"typecheck": "tsc --noEmit",
|
|
80
|
+
"postinstall": "node scripts/check-types.js || true",
|
|
81
|
+
"prepare": "npm run build",
|
|
82
|
+
"test:watch": "vitest --watch --project unit",
|
|
83
|
+
"typecheck:transit": "exit 0",
|
|
84
|
+
"compile": "tsc"
|
|
85
85
|
},
|
|
86
86
|
"peerDependencies": {},
|
|
87
87
|
"devDependencies": {
|