@openrouter/sdk 1.5.41 → 1.5.43

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.
@@ -12,7 +12,7 @@ import { Result } from "../types/fp.js";
12
12
  * Create a private provider
13
13
  *
14
14
  * @remarks
15
- * Create a private, bring-your-own-key provider visible only to your organization. Use its slug as `provider_slug` when creating private endpoints. Requires both the private endpoints and the private providers entitlements. [Management key](/docs/guides/overview/auth/management-api-keys) required.
15
+ * Create a private, bring-your-own-key provider visible only to your organization. Use its slug as `provider_slug` when creating private endpoints. Requires the private endpoints entitlement. [Management key](/docs/guides/overview/auth/management-api-keys) required.
16
16
  */
17
17
  export declare function privateProvidersCreate(client: OpenRouterCore, request: operations.CreatePrivateProviderRequest, options?: RequestOptions): APIPromise<Result<operations.CreatePrivateProviderResponse, errors.BadRequestResponseError | errors.UnauthorizedResponseError | errors.ForbiddenResponseError | errors.NotFoundResponseError | errors.RequestTimeoutResponseError | errors.ConflictResponseError | errors.UnprocessableEntityResponseError | errors.TooManyRequestsResponseError | errors.InternalServerResponseError | errors.BadGatewayResponseError | OpenRouterError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
18
18
  //# sourceMappingURL=privateProvidersCreate.d.ts.map
@@ -16,7 +16,7 @@ import { APIPromise } from "../types/async.js";
16
16
  * Create a private provider
17
17
  *
18
18
  * @remarks
19
- * Create a private, bring-your-own-key provider visible only to your organization. Use its slug as `provider_slug` when creating private endpoints. Requires both the private endpoints and the private providers entitlements. [Management key](/docs/guides/overview/auth/management-api-keys) required.
19
+ * Create a private, bring-your-own-key provider visible only to your organization. Use its slug as `provider_slug` when creating private endpoints. Requires the private endpoints entitlement. [Management key](/docs/guides/overview/auth/management-api-keys) required.
20
20
  */
21
21
  export function privateProvidersCreate(client, request, options) {
22
22
  return new APIPromise($do(client, request, options));
@@ -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.41";
53
+ readonly sdkVersion: "1.5.43";
54
54
  readonly genVersion: "2.950.13";
55
- readonly userAgent: "speakeasy-sdk/typescript 1.5.41 2.950.13 1.0.0 @openrouter/sdk";
55
+ readonly userAgent: "speakeasy-sdk/typescript 1.5.43 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.41",
32
+ sdkVersion: "1.5.43",
33
33
  genVersion: "2.950.13",
34
- userAgent: "speakeasy-sdk/typescript 1.5.41 2.950.13 1.0.0 @openrouter/sdk",
34
+ userAgent: "speakeasy-sdk/typescript 1.5.43 2.950.13 1.0.0 @openrouter/sdk",
35
35
  };
36
36
  //# sourceMappingURL=config.js.map
@@ -83,6 +83,7 @@ export declare const BYOKProviderSlug: {
83
83
  readonly Ollama: "ollama";
84
84
  readonly OpenInference: "open-inference";
85
85
  readonly Openai: "openai";
86
+ readonly Parallel: "parallel";
86
87
  readonly Parasail: "parasail";
87
88
  readonly ParetoAlpha: "pareto-alpha";
88
89
  readonly ParticleAi: "particle-ai";
@@ -86,6 +86,7 @@ export const BYOKProviderSlug = {
86
86
  Ollama: "ollama",
87
87
  OpenInference: "open-inference",
88
88
  Openai: "openai",
89
+ Parallel: "parallel",
89
90
  Parasail: "parasail",
90
91
  ParetoAlpha: "pareto-alpha",
91
92
  ParticleAi: "particle-ai",
@@ -16,6 +16,7 @@ export declare const ApiType: {
16
16
  readonly TTS: "tts";
17
17
  readonly STT: "stt";
18
18
  readonly Image: "image";
19
+ readonly ToolsInvoke: "tools_invoke";
19
20
  };
20
21
  /**
21
22
  * Type of API used for the generation
@@ -20,6 +20,7 @@ export const ApiType = {
20
20
  TTS: "tts",
21
21
  STT: "stt",
22
22
  Image: "image",
23
+ ToolsInvoke: "tools_invoke",
23
24
  };
24
25
  /**
25
26
  * The data region this generation was routed through: 'global', 'europe', or 'us'.
@@ -311,6 +311,9 @@ export type ImageGenerationProviderPreferencesOptions = {
311
311
  openai?: {
312
312
  [k: string]: any;
313
313
  } | undefined;
314
+ parallel?: {
315
+ [k: string]: any;
316
+ } | undefined;
314
317
  parasail?: {
315
318
  [k: string]: any;
316
319
  } | undefined;
@@ -818,6 +821,9 @@ export type ImageGenerationProviderPreferencesOptions$Outbound = {
818
821
  openai?: {
819
822
  [k: string]: any;
820
823
  } | undefined;
824
+ parallel?: {
825
+ [k: string]: any;
826
+ } | undefined;
821
827
  parasail?: {
822
828
  [k: string]: any;
823
829
  } | undefined;
@@ -120,6 +120,7 @@ export const ImageGenerationProviderPreferencesOptions$outboundSchema = z.object
120
120
  ollama: z.record(z.string(), z.any()).optional(),
121
121
  openInference: z.record(z.string(), z.any()).optional(),
122
122
  openai: z.record(z.string(), z.any()).optional(),
123
+ parallel: z.record(z.string(), z.any()).optional(),
123
124
  parasail: z.record(z.string(), z.any()).optional(),
124
125
  paretoAlpha: z.record(z.string(), z.any()).optional(),
125
126
  particleAi: z.record(z.string(), z.any()).optional(),
@@ -107,6 +107,7 @@ export declare const Provider: {
107
107
  readonly Ollama: "ollama";
108
108
  readonly OpenInference: "open-inference";
109
109
  readonly Openai: "openai";
110
+ readonly Parallel: "parallel";
110
111
  readonly Parasail: "parasail";
111
112
  readonly ParetoAlpha: "pareto-alpha";
112
113
  readonly ParticleAi: "particle-ai";
@@ -90,6 +90,7 @@ export const Provider = {
90
90
  Ollama: "ollama",
91
91
  OpenInference: "open-inference",
92
92
  Openai: "openai",
93
+ Parallel: "parallel",
93
94
  Parasail: "parasail",
94
95
  ParetoAlpha: "pareto-alpha",
95
96
  ParticleAi: "particle-ai",
@@ -80,6 +80,7 @@ export declare const ProviderName: {
80
80
  readonly Ollama: "Ollama";
81
81
  readonly OpenAI: "OpenAI";
82
82
  readonly OpenInference: "OpenInference";
83
+ readonly Parallel: "Parallel";
83
84
  readonly Parasail: "Parasail";
84
85
  readonly ParetoAlpha: "ParetoAlpha";
85
86
  readonly ParticleAI: "Particle AI";
@@ -83,6 +83,7 @@ export const ProviderName = {
83
83
  Ollama: "Ollama",
84
84
  OpenAI: "OpenAI",
85
85
  OpenInference: "OpenInference",
86
+ Parallel: "Parallel",
86
87
  Parasail: "Parasail",
87
88
  ParetoAlpha: "ParetoAlpha",
88
89
  ParticleAI: "Particle AI",
@@ -306,6 +306,9 @@ export type ProviderOptions = {
306
306
  openai?: {
307
307
  [k: string]: any;
308
308
  } | undefined;
309
+ parallel?: {
310
+ [k: string]: any;
311
+ } | undefined;
309
312
  parasail?: {
310
313
  [k: string]: any;
311
314
  } | undefined;
@@ -768,6 +771,9 @@ export type ProviderOptions$Outbound = {
768
771
  openai?: {
769
772
  [k: string]: any;
770
773
  } | undefined;
774
+ parallel?: {
775
+ [k: string]: any;
776
+ } | undefined;
771
777
  parasail?: {
772
778
  [k: string]: any;
773
779
  } | undefined;
@@ -107,6 +107,7 @@ export const ProviderOptions$outboundSchema = z.object({
107
107
  ollama: z.record(z.string(), z.any()).optional(),
108
108
  openInference: z.record(z.string(), z.any()).optional(),
109
109
  openai: z.record(z.string(), z.any()).optional(),
110
+ parallel: z.record(z.string(), z.any()).optional(),
110
111
  parasail: z.record(z.string(), z.any()).optional(),
111
112
  paretoAlpha: z.record(z.string(), z.any()).optional(),
112
113
  particleAi: z.record(z.string(), z.any()).optional(),
@@ -113,6 +113,7 @@ export declare const ProviderResponseProviderName: {
113
113
  readonly Ollama: "Ollama";
114
114
  readonly OpenAI: "OpenAI";
115
115
  readonly OpenInference: "OpenInference";
116
+ readonly Parallel: "Parallel";
116
117
  readonly Parasail: "Parasail";
117
118
  readonly ParetoAlpha: "ParetoAlpha";
118
119
  readonly ParticleAI: "Particle AI";
@@ -117,6 +117,7 @@ export const ProviderResponseProviderName = {
117
117
  Ollama: "Ollama",
118
118
  OpenAI: "OpenAI",
119
119
  OpenInference: "OpenInference",
120
+ Parallel: "Parallel",
120
121
  Parasail: "Parasail",
121
122
  ParetoAlpha: "ParetoAlpha",
122
123
  ParticleAI: "Particle AI",
@@ -328,6 +328,9 @@ export type VideoGenerationRequestOptions = {
328
328
  openai?: {
329
329
  [k: string]: any;
330
330
  } | undefined;
331
+ parallel?: {
332
+ [k: string]: any;
333
+ } | undefined;
331
334
  parasail?: {
332
335
  [k: string]: any;
333
336
  } | undefined;
@@ -886,6 +889,9 @@ export type VideoGenerationRequestOptions$Outbound = {
886
889
  openai?: {
887
890
  [k: string]: any;
888
891
  } | undefined;
892
+ parallel?: {
893
+ [k: string]: any;
894
+ } | undefined;
889
895
  parasail?: {
890
896
  [k: string]: any;
891
897
  } | undefined;
@@ -140,6 +140,7 @@ export const VideoGenerationRequestOptions$outboundSchema = z.object({
140
140
  ollama: z.record(z.string(), z.any()).optional(),
141
141
  openInference: z.record(z.string(), z.any()).optional(),
142
142
  openai: z.record(z.string(), z.any()).optional(),
143
+ parallel: z.record(z.string(), z.any()).optional(),
143
144
  parasail: z.record(z.string(), z.any()).optional(),
144
145
  paretoAlpha: z.record(z.string(), z.any()).optional(),
145
146
  particleAi: z.record(z.string(), z.any()).optional(),
@@ -12,7 +12,7 @@ export declare class PrivateProviders extends ClientSDK {
12
12
  * Create a private provider
13
13
  *
14
14
  * @remarks
15
- * Create a private, bring-your-own-key provider visible only to your organization. Use its slug as `provider_slug` when creating private endpoints. Requires both the private endpoints and the private providers entitlements. [Management key](/docs/guides/overview/auth/management-api-keys) required.
15
+ * Create a private, bring-your-own-key provider visible only to your organization. Use its slug as `provider_slug` when creating private endpoints. Requires the private endpoints entitlement. [Management key](/docs/guides/overview/auth/management-api-keys) required.
16
16
  */
17
17
  create(request: operations.CreatePrivateProviderRequest, options?: RequestOptions): Promise<operations.CreatePrivateProviderResponse>;
18
18
  /**
@@ -23,7 +23,7 @@ export class PrivateProviders extends ClientSDK {
23
23
  * Create a private provider
24
24
  *
25
25
  * @remarks
26
- * Create a private, bring-your-own-key provider visible only to your organization. Use its slug as `provider_slug` when creating private endpoints. Requires both the private endpoints and the private providers entitlements. [Management key](/docs/guides/overview/auth/management-api-keys) required.
26
+ * Create a private, bring-your-own-key provider visible only to your organization. Use its slug as `provider_slug` when creating private endpoints. Requires the private endpoints entitlement. [Management key](/docs/guides/overview/auth/management-api-keys) required.
27
27
  */
28
28
  async create(request, options) {
29
29
  return unwrapAsync(privateProvidersCreate(this, request, options));
package/jsr.json CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  {
4
4
  "name": "@openrouter/sdk",
5
- "version": "1.5.41",
5
+ "version": "1.5.43",
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.41",
3
+ "version": "1.5.43",
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": "tsc && node scripts/unbarrel-imports.js",
75
75
  "prepublishOnly": "npm run build",
76
- "test:e2e": "vitest --run --project e2e",
76
+ "prepare": "npm run build",
77
+ "test": "vitest --run --project unit",
78
+ "test:watch": "vitest --watch --project unit",
77
79
  "typecheck:transit": "exit 0",
78
80
  "compile": "tsc && node scripts/unbarrel-imports.js",
79
81
  "postinstall": "node scripts/check-types.js || true",
80
- "prepare": "npm run build",
81
- "test": "vitest --run --project unit",
82
+ "test:e2e": "vitest --run --project e2e",
82
83
  "test:transit": "exit 0",
83
- "test:watch": "vitest --watch --project unit",
84
84
  "typecheck": "tsc --noEmit"
85
85
  },
86
86
  "peerDependencies": {