@openrouter/sdk 1.5.138 → 1.5.140

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.
@@ -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.5.138";
52
+ readonly sdkVersion: "1.5.140";
53
53
  readonly genVersion: "2.960.8";
54
- readonly userAgent: "speakeasy-sdk/typescript 1.5.138 2.960.8 1.0.0 @openrouter/sdk";
54
+ readonly userAgent: "speakeasy-sdk/typescript 1.5.140 2.960.8 1.0.0 @openrouter/sdk";
55
55
  };
56
56
  //# sourceMappingURL=config.d.ts.map
package/esm/lib/config.js CHANGED
@@ -25,8 +25,8 @@ export function serverURLFromOptions(options) {
25
25
  export const SDK_METADATA = {
26
26
  language: "typescript",
27
27
  openapiDocVersion: "1.0.0",
28
- sdkVersion: "1.5.138",
28
+ sdkVersion: "1.5.140",
29
29
  genVersion: "2.960.8",
30
- userAgent: "speakeasy-sdk/typescript 1.5.138 2.960.8 1.0.0 @openrouter/sdk",
30
+ userAgent: "speakeasy-sdk/typescript 1.5.140 2.960.8 1.0.0 @openrouter/sdk",
31
31
  };
32
32
  //# sourceMappingURL=config.js.map
@@ -25,7 +25,7 @@ export type ScimSyncJob = {
25
25
  */
26
26
  deletedGroups: number | null;
27
27
  /**
28
- * Stable error message when the job failed.
28
+ * Stable message code, or null. On a failed job, the failure reason. On a succeeded job, set when optional work beyond the group synchronization could not be completed; the groups were still synchronized.
29
29
  */
30
30
  errorMessage: string | null;
31
31
  /**
@@ -88,6 +88,7 @@ export type SpeechRequestProvider = {
88
88
  export declare const SpeechRequestResponseFormat: {
89
89
  readonly Mp3: "mp3";
90
90
  readonly Pcm: "pcm";
91
+ readonly Wav: "wav";
91
92
  };
92
93
  /**
93
94
  * Audio output format
@@ -34,6 +34,7 @@ export const SpeechRequestDataCollection = {
34
34
  export const SpeechRequestResponseFormat = {
35
35
  Mp3: "mp3",
36
36
  Pcm: "pcm",
37
+ Wav: "wav",
37
38
  };
38
39
  /** @internal */
39
40
  export const OutputDelivery$outboundSchema = openEnums.outboundSchema(OutputDelivery);
@@ -528,7 +528,7 @@ export type VideoGenerationRequestOptions = {
528
528
  };
529
529
  export type VideoGenerationRequestOrder = ProviderName | string;
530
530
  /**
531
- * Provider routing preferences (order, only, ignore), request-level data policy (zdr, data_collection) and provider-specific passthrough configuration. No video endpoint currently offers Zero Data Retention, so `zdr: true` fails routing.
531
+ * Provider routing preferences (order, only, ignore), request-level data policy (zdr, data_collection) and provider-specific passthrough configuration. Sorting by price, latency, or throughput and automatic provider fallbacks are not supported. No video endpoint currently offers Zero Data Retention, so `zdr: true` fails routing.
532
532
  */
533
533
  export type VideoGenerationRequestProvider = {
534
534
  /**
@@ -550,7 +550,7 @@ export type VideoGenerationRequestProvider = {
550
550
  only?: Array<ProviderName | string> | null | undefined;
551
551
  options?: VideoGenerationRequestOptions | undefined;
552
552
  /**
553
- * An ordered list of provider slugs. The router will attempt to use the first provider in the subset of this list that supports your requested model, and fall back to the next if it is unavailable. If no providers are available, the request will fail with an error message.
553
+ * An ordered list of provider slugs to prefer when choosing an eligible video endpoint. The request is submitted to one endpoint and is not retried on another provider if submission fails.
554
554
  */
555
555
  order?: Array<ProviderName | string> | null | undefined;
556
556
  /**
@@ -614,7 +614,7 @@ export type VideoGenerationRequest = {
614
614
  */
615
615
  prompt?: string | undefined;
616
616
  /**
617
- * Provider routing preferences (order, only, ignore), request-level data policy (zdr, data_collection) and provider-specific passthrough configuration. No video endpoint currently offers Zero Data Retention, so `zdr: true` fails routing.
617
+ * Provider routing preferences (order, only, ignore), request-level data policy (zdr, data_collection) and provider-specific passthrough configuration. Sorting by price, latency, or throughput and automatic provider fallbacks are not supported. No video endpoint currently offers Zero Data Retention, so `zdr: true` fails routing.
618
618
  */
619
619
  provider?: VideoGenerationRequestProvider | undefined;
620
620
  /**
package/jsr.json CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  {
4
4
  "name": "@openrouter/sdk",
5
- "version": "1.5.138",
5
+ "version": "1.5.140",
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.138",
3
+ "version": "1.5.140",
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,14 +73,14 @@
73
73
  "lint": "eslint --cache --max-warnings=0 src",
74
74
  "build": "node --max-old-space-size=8192 ./node_modules/typescript/bin/tsc && node scripts/unbarrel-imports.js",
75
75
  "prepublishOnly": "npm run build",
76
- "typecheck:transit": "exit 0",
77
76
  "compile": "node --max-old-space-size=8192 ./node_modules/typescript/bin/tsc && node scripts/unbarrel-imports.js",
78
- "prepare": "npm run build",
79
77
  "test:e2e": "vitest --run --project e2e",
80
- "test:watch": "vitest --watch --project unit",
78
+ "test:transit": "exit 0",
79
+ "typecheck:transit": "exit 0",
81
80
  "postinstall": "node scripts/check-types.js || true",
81
+ "prepare": "npm run build",
82
82
  "test": "vitest --run --project unit",
83
- "test:transit": "exit 0",
83
+ "test:watch": "vitest --watch --project unit",
84
84
  "typecheck": "tsc --noEmit"
85
85
  },
86
86
  "peerDependencies": {