@openrouter/sdk 1.1.14 → 1.1.15
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
|
@@ -49,8 +49,8 @@ export declare function serverURLFromOptions(options: SDKOptions): URL | null;
|
|
|
49
49
|
export declare const SDK_METADATA: {
|
|
50
50
|
readonly language: "typescript";
|
|
51
51
|
readonly openapiDocVersion: "1.0.0";
|
|
52
|
-
readonly sdkVersion: "1.1.
|
|
52
|
+
readonly sdkVersion: "1.1.15";
|
|
53
53
|
readonly genVersion: "2.914.0";
|
|
54
|
-
readonly userAgent: "speakeasy-sdk/typescript 1.1.
|
|
54
|
+
readonly userAgent: "speakeasy-sdk/typescript 1.1.15 2.914.0 1.0.0 @openrouter/sdk";
|
|
55
55
|
};
|
|
56
56
|
//# sourceMappingURL=config.d.ts.map
|
package/esm/lib/config.js
CHANGED
|
@@ -26,8 +26,8 @@ export function serverURLFromOptions(options) {
|
|
|
26
26
|
export const SDK_METADATA = {
|
|
27
27
|
language: "typescript",
|
|
28
28
|
openapiDocVersion: "1.0.0",
|
|
29
|
-
sdkVersion: "1.1.
|
|
29
|
+
sdkVersion: "1.1.15",
|
|
30
30
|
genVersion: "2.914.0",
|
|
31
|
-
userAgent: "speakeasy-sdk/typescript 1.1.
|
|
31
|
+
userAgent: "speakeasy-sdk/typescript 1.1.15 2.914.0 1.0.0 @openrouter/sdk",
|
|
32
32
|
};
|
|
33
33
|
//# sourceMappingURL=config.js.map
|
|
@@ -20,14 +20,15 @@ export declare const ApiType: {
|
|
|
20
20
|
*/
|
|
21
21
|
export type ApiType = OpenEnum<typeof ApiType>;
|
|
22
22
|
/**
|
|
23
|
-
* The data region this generation was routed through
|
|
23
|
+
* The data region this generation was routed through: 'global', 'europe', or 'us'.
|
|
24
24
|
*/
|
|
25
25
|
export declare const DataRegion: {
|
|
26
26
|
readonly Global: "global";
|
|
27
27
|
readonly Europe: "europe";
|
|
28
|
+
readonly Us: "us";
|
|
28
29
|
};
|
|
29
30
|
/**
|
|
30
|
-
* The data region this generation was routed through
|
|
31
|
+
* The data region this generation was routed through: 'global', 'europe', or 'us'.
|
|
31
32
|
*/
|
|
32
33
|
export type DataRegion = OpenEnum<typeof DataRegion>;
|
|
33
34
|
/**
|
|
@@ -55,7 +56,7 @@ export type GenerationResponseData = {
|
|
|
55
56
|
*/
|
|
56
57
|
createdAt: string;
|
|
57
58
|
/**
|
|
58
|
-
* The data region this generation was routed through
|
|
59
|
+
* The data region this generation was routed through: 'global', 'europe', or 'us'.
|
|
59
60
|
*/
|
|
60
61
|
dataRegion: DataRegion;
|
|
61
62
|
/**
|
|
@@ -20,11 +20,12 @@ export const ApiType = {
|
|
|
20
20
|
Image: "image",
|
|
21
21
|
};
|
|
22
22
|
/**
|
|
23
|
-
* The data region this generation was routed through
|
|
23
|
+
* The data region this generation was routed through: 'global', 'europe', or 'us'.
|
|
24
24
|
*/
|
|
25
25
|
export const DataRegion = {
|
|
26
26
|
Global: "global",
|
|
27
27
|
Europe: "europe",
|
|
28
|
+
Us: "us",
|
|
28
29
|
};
|
|
29
30
|
/** @internal */
|
|
30
31
|
export const ApiType$inboundSchema = openEnums
|
package/jsr.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openrouter/sdk",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.15",
|
|
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": [
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
"license": "Apache-2.0",
|
|
22
22
|
"packageManager": "pnpm@10.22.0",
|
|
23
23
|
"publishConfig": {
|
|
24
|
-
"
|
|
25
|
-
"
|
|
24
|
+
"provenance": true,
|
|
25
|
+
"access": "public"
|
|
26
26
|
},
|
|
27
27
|
"type": "module",
|
|
28
28
|
"main": "./esm/index.js",
|
|
@@ -73,15 +73,15 @@
|
|
|
73
73
|
"lint": "eslint --cache --max-warnings=0 src",
|
|
74
74
|
"build": "tsc",
|
|
75
75
|
"prepublishOnly": "npm run build",
|
|
76
|
-
"
|
|
76
|
+
"test:e2e": "vitest --run --project e2e",
|
|
77
|
+
"test:watch": "vitest --watch --project unit",
|
|
78
|
+
"prepare": "npm run build",
|
|
77
79
|
"test": "vitest --run --project unit",
|
|
80
|
+
"test:transit": "exit 0",
|
|
78
81
|
"typecheck": "tsc --noEmit",
|
|
82
|
+
"typecheck:transit": "exit 0",
|
|
79
83
|
"compile": "tsc",
|
|
80
|
-
"
|
|
81
|
-
"test:e2e": "vitest --run --project e2e",
|
|
82
|
-
"test:transit": "exit 0",
|
|
83
|
-
"test:watch": "vitest --watch --project unit",
|
|
84
|
-
"typecheck:transit": "exit 0"
|
|
84
|
+
"postinstall": "node scripts/check-types.js || true"
|
|
85
85
|
},
|
|
86
86
|
"peerDependencies": {},
|
|
87
87
|
"devDependencies": {
|