@openrouter/sdk 1.5.99 → 1.5.100

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.
@@ -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.99";
53
+ readonly sdkVersion: "1.5.100";
54
54
  readonly genVersion: "2.960.8";
55
- readonly userAgent: "speakeasy-sdk/typescript 1.5.99 2.960.8 1.0.0 @openrouter/sdk";
55
+ readonly userAgent: "speakeasy-sdk/typescript 1.5.100 2.960.8 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.99",
32
+ sdkVersion: "1.5.100",
33
33
  genVersion: "2.960.8",
34
- userAgent: "speakeasy-sdk/typescript 1.5.99 2.960.8 1.0.0 @openrouter/sdk",
34
+ userAgent: "speakeasy-sdk/typescript 1.5.100 2.960.8 1.0.0 @openrouter/sdk",
35
35
  };
36
36
  //# sourceMappingURL=config.js.map
@@ -21,6 +21,10 @@ export type OutputWebFetchServerToolItem = {
21
21
  */
22
22
  httpStatus?: number | undefined;
23
23
  id?: string | undefined;
24
+ /**
25
+ * The time the content was fetched, as an ISO 8601 timestamp.
26
+ */
27
+ retrievedAt?: string | undefined;
24
28
  status: ToolCallStatus;
25
29
  title?: string | undefined;
26
30
  type: OutputWebFetchServerToolItemType;
@@ -38,6 +42,7 @@ export type OutputWebFetchServerToolItem$Outbound = {
38
42
  error?: string | undefined;
39
43
  httpStatus?: number | undefined;
40
44
  id?: string | undefined;
45
+ retrieved_at?: string | undefined;
41
46
  status: string;
42
47
  title?: string | undefined;
43
48
  type: string;
@@ -3,6 +3,7 @@
3
3
  * @generated-id: a28b106c9b49
4
4
  */
5
5
  import * as z from "zod/v4";
6
+ import { remap as remap$ } from "../lib/primitives.js";
6
7
  import { safeParse } from "../lib/schemas.js";
7
8
  import { ToolCallStatus$inboundSchema, ToolCallStatus$outboundSchema, } from "./toolcallstatus.js";
8
9
  export const OutputWebFetchServerToolItemType = {
@@ -18,10 +19,15 @@ export const OutputWebFetchServerToolItem$inboundSchema = z.object({
18
19
  error: z.string().optional(),
19
20
  httpStatus: z.int().optional(),
20
21
  id: z.string().optional(),
22
+ retrieved_at: z.string().optional(),
21
23
  status: ToolCallStatus$inboundSchema,
22
24
  title: z.string().optional(),
23
25
  type: OutputWebFetchServerToolItemType$inboundSchema,
24
26
  url: z.string().optional(),
27
+ }).transform((v) => {
28
+ return remap$(v, {
29
+ "retrieved_at": "retrievedAt",
30
+ });
25
31
  });
26
32
  /** @internal */
27
33
  export const OutputWebFetchServerToolItem$outboundSchema = z.object({
@@ -29,10 +35,15 @@ export const OutputWebFetchServerToolItem$outboundSchema = z.object({
29
35
  error: z.string().optional(),
30
36
  httpStatus: z.int().optional(),
31
37
  id: z.string().optional(),
38
+ retrievedAt: z.string().optional(),
32
39
  status: ToolCallStatus$outboundSchema,
33
40
  title: z.string().optional(),
34
41
  type: OutputWebFetchServerToolItemType$outboundSchema,
35
42
  url: z.string().optional(),
43
+ }).transform((v) => {
44
+ return remap$(v, {
45
+ retrievedAt: "retrieved_at",
46
+ });
36
47
  });
37
48
  export function outputWebFetchServerToolItemToJSON(outputWebFetchServerToolItem) {
38
49
  return JSON.stringify(OutputWebFetchServerToolItem$outboundSchema.parse(outputWebFetchServerToolItem));
package/jsr.json CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  {
4
4
  "name": "@openrouter/sdk",
5
- "version": "1.5.99",
5
+ "version": "1.5.100",
6
6
  "exports": {
7
7
  ".": "./src/index.ts",
8
8
  "./models/errors": "./src/models/errors/index.ts",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openrouter/sdk",
3
- "version": "1.5.99",
3
+ "version": "1.5.100",
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
- "test:e2e": "vitest --run --project e2e",
77
- "typecheck:transit": "exit 0",
78
76
  "compile": "tsc && node scripts/unbarrel-imports.js",
79
77
  "postinstall": "node scripts/check-types.js || true",
78
+ "prepare": "npm run build",
80
79
  "test": "vitest --run --project unit",
80
+ "test:e2e": "vitest --run --project e2e",
81
81
  "test:transit": "exit 0",
82
82
  "test:watch": "vitest --watch --project unit",
83
83
  "typecheck": "tsc --noEmit",
84
- "prepare": "npm run build"
84
+ "typecheck:transit": "exit 0"
85
85
  },
86
86
  "peerDependencies": {
87
87