@openrouter/sdk 1.2.147 → 1.2.149

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.2.147";
53
+ readonly sdkVersion: "1.2.149";
54
54
  readonly genVersion: "2.914.0";
55
- readonly userAgent: "speakeasy-sdk/typescript 1.2.147 2.914.0 1.0.0 @openrouter/sdk";
55
+ readonly userAgent: "speakeasy-sdk/typescript 1.2.149 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.147",
32
+ sdkVersion: "1.2.149",
33
33
  genVersion: "2.914.0",
34
- userAgent: "speakeasy-sdk/typescript 1.2.147 2.914.0 1.0.0 @openrouter/sdk",
34
+ userAgent: "speakeasy-sdk/typescript 1.2.149 2.914.0 1.0.0 @openrouter/sdk",
35
35
  };
36
36
  //# sourceMappingURL=config.js.map
@@ -21,9 +21,15 @@ export const InternStatus = {
21
21
  };
22
22
  /** @internal */
23
23
  export const Progress$inboundSchema = z.object({
24
- stepLabel: z.string(),
25
- stepNumber: z.int(),
26
- totalSteps: z.int(),
24
+ step_label: z.string(),
25
+ step_number: z.int(),
26
+ total_steps: z.int(),
27
+ }).transform((v) => {
28
+ return remap$(v, {
29
+ "step_label": "stepLabel",
30
+ "step_number": "stepNumber",
31
+ "total_steps": "totalSteps",
32
+ });
27
33
  });
28
34
  export function progressFromJSON(jsonString) {
29
35
  return safeParse(jsonString, (x) => Progress$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Progress' from JSON`);
@@ -33,23 +39,27 @@ export const InternStatus$inboundSchema = openEnums.inboundSchema(InternStatus);
33
39
  /** @internal */
34
40
  export const Intern$inboundSchema = z.object({
35
41
  attached_vault_id: z.nullable(z.string()),
36
- createdAt: z.string(),
42
+ created_at: z.string(),
37
43
  description: z.nullable(z.string()),
38
44
  hostname: z.nullable(z.string()),
39
45
  id: z.string(),
40
46
  instructions: z.nullable(z.string()),
41
- lastFailureMessage: z.nullable(z.string()),
47
+ last_failure_message: z.nullable(z.string()),
42
48
  model: z.nullable(z.string()),
43
49
  name: z.string(),
44
50
  progress: z.nullable(z.lazy(() => Progress$inboundSchema)),
45
51
  status: InternStatus$inboundSchema,
46
- updatedAt: z.string(),
52
+ updated_at: z.string(),
47
53
  vault_id: z.nullable(z.string()),
48
- workspaceId: z.string(),
54
+ workspace_id: z.string(),
49
55
  }).transform((v) => {
50
56
  return remap$(v, {
51
57
  "attached_vault_id": "attachedVaultId",
58
+ "created_at": "createdAt",
59
+ "last_failure_message": "lastFailureMessage",
60
+ "updated_at": "updatedAt",
52
61
  "vault_id": "vaultId",
62
+ "workspace_id": "workspaceId",
53
63
  });
54
64
  });
55
65
  export function internFromJSON(jsonString) {
@@ -2,7 +2,7 @@ import * as z from "zod/v4";
2
2
  import { Result as SafeParseResult } from "../types/fp.js";
3
3
  import { SDKValidationError } from "./errors/sdkvalidationerror.js";
4
4
  /**
5
- * Metadata for one stored secret. The secret value is never returned. `fingerprint` is a keyed SHA-256 digest of the value: equal fingerprints within one scope mean equal values, but a workspace secret and its intern copy carry different fingerprints. `hosts` and `fingerprint` are `null` only for legacy rows written before host binding was required; storing the secret again assigns hosts.
5
+ * Metadata for one stored secret. The secret value is never returned. `fingerprint` is an HMAC-SHA-256 of the value keyed with that vault's own data key, so it is comparable only within one vault: equal fingerprints in one vault mean equal values, and rewriting the same value keeps its fingerprint. The same value stored in two vaults (for example a workspace secret and its intern copy) carries different fingerprints, so comparing fingerprints across vaults cannot show that a copy matches or that a rotation propagated. `hosts` and `fingerprint` are `null` only for legacy rows written before host binding was required; storing the secret again assigns hosts.
6
6
  */
7
7
  export type VaultSecret = {
8
8
  createdAt: Date;
@@ -7,7 +7,7 @@ import { VaultSecret } from "./vaultsecret.js";
7
7
  */
8
8
  export type VaultSecretResponse = {
9
9
  /**
10
- * Metadata for one stored secret. The secret value is never returned. `fingerprint` is a keyed SHA-256 digest of the value: equal fingerprints within one scope mean equal values, but a workspace secret and its intern copy carry different fingerprints. `hosts` and `fingerprint` are `null` only for legacy rows written before host binding was required; storing the secret again assigns hosts.
10
+ * Metadata for one stored secret. The secret value is never returned. `fingerprint` is an HMAC-SHA-256 of the value keyed with that vault's own data key, so it is comparable only within one vault: equal fingerprints in one vault mean equal values, and rewriting the same value keeps its fingerprint. The same value stored in two vaults (for example a workspace secret and its intern copy) carries different fingerprints, so comparing fingerprints across vaults cannot show that a copy matches or that a rotation propagated. `hosts` and `fingerprint` are `null` only for legacy rows written before host binding was required; storing the secret again assigns hosts.
11
11
  */
12
12
  data: VaultSecret;
13
13
  };
package/jsr.json CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  {
4
4
  "name": "@openrouter/sdk",
5
- "version": "1.2.147",
5
+ "version": "1.2.149",
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.2.147",
3
+ "version": "1.2.149",
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
- "test": "vitest --run --project unit",
77
- "typecheck": "tsc --noEmit",
78
- "typecheck:transit": "exit 0",
79
- "postinstall": "node scripts/check-types.js || true",
80
76
  "prepare": "npm run build",
81
77
  "test:e2e": "vitest --run --project e2e",
78
+ "test": "vitest --run --project unit",
82
79
  "test:transit": "exit 0",
83
80
  "test:watch": "vitest --watch --project unit",
84
- "compile": "tsc"
81
+ "typecheck": "tsc --noEmit",
82
+ "typecheck:transit": "exit 0",
83
+ "compile": "tsc",
84
+ "postinstall": "node scripts/check-types.js || true"
85
85
  },
86
86
  "peerDependencies": {},
87
87
  "devDependencies": {