@openrouter/sdk 1.5.80 → 1.5.81
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.81";
|
|
54
54
|
readonly genVersion: "2.950.13";
|
|
55
|
-
readonly userAgent: "speakeasy-sdk/typescript 1.5.
|
|
55
|
+
readonly userAgent: "speakeasy-sdk/typescript 1.5.81 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.81",
|
|
33
33
|
genVersion: "2.950.13",
|
|
34
|
-
userAgent: "speakeasy-sdk/typescript 1.5.
|
|
34
|
+
userAgent: "speakeasy-sdk/typescript 1.5.81 2.950.13 1.0.0 @openrouter/sdk",
|
|
35
35
|
};
|
|
36
36
|
//# sourceMappingURL=config.js.map
|
|
@@ -34,7 +34,10 @@ export type ExtractionListAnswer = {
|
|
|
34
34
|
* Set to `image` or `document` when the answer was read from an image or a PDF rather than the state text.
|
|
35
35
|
*/
|
|
36
36
|
source?: ExtractionListAnswerSource | undefined;
|
|
37
|
-
|
|
37
|
+
/**
|
|
38
|
+
* One span per item of `value`, in the same order; null for an item that has no offsets in the state text (read from an image or a document).
|
|
39
|
+
*/
|
|
40
|
+
spans?: Array<Array<number> | null> | undefined;
|
|
38
41
|
/**
|
|
39
42
|
* Confidence in the spelling of text read from an image.
|
|
40
43
|
*/
|
|
@@ -33,7 +33,7 @@ export const ExtractionListAnswer$inboundSchema = z.object({
|
|
|
33
33
|
guess: z.array(z.union([z.string(), z.number()])).optional(),
|
|
34
34
|
p_null: z.number().optional(),
|
|
35
35
|
source: ExtractionListAnswerSource$inboundSchema.optional(),
|
|
36
|
-
spans: z.array(z.array(z.int())).optional(),
|
|
36
|
+
spans: z.array(z.nullable(z.array(z.int()))).optional(),
|
|
37
37
|
spell_confidence: z.number().optional(),
|
|
38
38
|
type: z.literal("list"),
|
|
39
39
|
value: z.nullable(z.array(z.union([z.string(), z.number()]))),
|
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.81",
|
|
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 && node scripts/unbarrel-imports.js",
|
|
75
75
|
"prepublishOnly": "npm run build",
|
|
76
|
-
"test": "vitest --run --project unit",
|
|
77
76
|
"test:watch": "vitest --watch --project unit",
|
|
77
|
+
"prepare": "npm run build",
|
|
78
|
+
"test": "vitest --run --project unit",
|
|
78
79
|
"test:e2e": "vitest --run --project e2e",
|
|
79
80
|
"test:transit": "exit 0",
|
|
80
81
|
"typecheck": "tsc --noEmit",
|
|
81
82
|
"typecheck:transit": "exit 0",
|
|
82
83
|
"compile": "tsc && node scripts/unbarrel-imports.js",
|
|
83
|
-
"postinstall": "node scripts/check-types.js || true"
|
|
84
|
-
"prepare": "npm run build"
|
|
84
|
+
"postinstall": "node scripts/check-types.js || true"
|
|
85
85
|
},
|
|
86
86
|
"peerDependencies": {
|
|
87
87
|
|