@openrouter/sdk 1.5.13 → 1.5.15

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.
@@ -13,7 +13,7 @@ import { Result } from "../types/fp.js";
13
13
  * Create a private endpoint
14
14
  *
15
15
  * @remarks
16
- * Create a private endpoint as a draft. Drafts are not routable: validate one with `POST /private-endpoints/{id}/validate`, then activate it with `POST /private-endpoints/{id}/activate`. Pass `activate` to do all three in one call; if validation fails the draft is kept and returned with the failed checks. Send an `Idempotency-Key` header to make retries safe: a repeated key with the same request returns the endpoint the first request created; reusing it with different fields returns 422 `idempotency_key_reused`. [Management key](/docs/guides/overview/auth/management-api-keys) required.
16
+ * Create a private endpoint as a draft. Drafts are not routable: validate one with `POST /private-endpoints/{id}/validate`, then activate it with `POST /private-endpoints/{id}/activate`. Pass `activate` to do all three in one call; if validation fails the draft is kept and returned with the failed checks. Send an `Idempotency-Key` header to make retries safe: a repeated key with the same request returns the endpoint the first request created; reusing it with different fields returns 422 `idempotency_key_reused`. Returns 400 `parameters_invalid` when `tool_choice` is declared without `tools`. The response does not echo `declared_parameters` or `tested_parameters`; read them with `GET /private-endpoints/{id}`. [Management key](/docs/guides/overview/auth/management-api-keys) required.
17
17
  */
18
18
  export declare function privateEndpointsCreate(client: OpenRouterCore, request: operations.CreatePrivateEndpointRequest, options?: RequestOptions): APIPromise<Result<models.ManagedPrivateEndpointResponse, errors.BadRequestResponseError | errors.UnauthorizedResponseError | errors.ForbiddenResponseError | errors.NotFound | errors.RequestTimeoutResponseError | errors.Conflict | errors.UnprocessableEntity | errors.InternalServerError | errors.BadGateway | OpenRouterError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
19
19
  //# sourceMappingURL=privateEndpointsCreate.d.ts.map
@@ -17,7 +17,7 @@ import { APIPromise } from "../types/async.js";
17
17
  * Create a private endpoint
18
18
  *
19
19
  * @remarks
20
- * Create a private endpoint as a draft. Drafts are not routable: validate one with `POST /private-endpoints/{id}/validate`, then activate it with `POST /private-endpoints/{id}/activate`. Pass `activate` to do all three in one call; if validation fails the draft is kept and returned with the failed checks. Send an `Idempotency-Key` header to make retries safe: a repeated key with the same request returns the endpoint the first request created; reusing it with different fields returns 422 `idempotency_key_reused`. [Management key](/docs/guides/overview/auth/management-api-keys) required.
20
+ * Create a private endpoint as a draft. Drafts are not routable: validate one with `POST /private-endpoints/{id}/validate`, then activate it with `POST /private-endpoints/{id}/activate`. Pass `activate` to do all three in one call; if validation fails the draft is kept and returned with the failed checks. Send an `Idempotency-Key` header to make retries safe: a repeated key with the same request returns the endpoint the first request created; reusing it with different fields returns 422 `idempotency_key_reused`. Returns 400 `parameters_invalid` when `tool_choice` is declared without `tools`. The response does not echo `declared_parameters` or `tested_parameters`; read them with `GET /private-endpoints/{id}`. [Management key](/docs/guides/overview/auth/management-api-keys) required.
21
21
  */
22
22
  export function privateEndpointsCreate(client, request, options) {
23
23
  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.13";
53
+ readonly sdkVersion: "1.5.15";
54
54
  readonly genVersion: "2.948.4";
55
- readonly userAgent: "speakeasy-sdk/typescript 1.5.13 2.948.4 1.0.0 @openrouter/sdk";
55
+ readonly userAgent: "speakeasy-sdk/typescript 1.5.15 2.948.4 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.13",
32
+ sdkVersion: "1.5.15",
33
33
  genVersion: "2.948.4",
34
- userAgent: "speakeasy-sdk/typescript 1.5.13 2.948.4 1.0.0 @openrouter/sdk",
34
+ userAgent: "speakeasy-sdk/typescript 1.5.15 2.948.4 1.0.0 @openrouter/sdk",
35
35
  };
36
36
  //# sourceMappingURL=config.js.map
@@ -323,6 +323,9 @@ export type ImageGenerationProviderPreferencesOptions = {
323
323
  poolside?: {
324
324
  [k: string]: any;
325
325
  } | undefined;
326
+ primalabs?: {
327
+ [k: string]: any;
328
+ } | undefined;
326
329
  primeintellect?: {
327
330
  [k: string]: any;
328
331
  } | undefined;
@@ -815,6 +818,9 @@ export type ImageGenerationProviderPreferencesOptions$Outbound = {
815
818
  poolside?: {
816
819
  [k: string]: any;
817
820
  } | undefined;
821
+ primalabs?: {
822
+ [k: string]: any;
823
+ } | undefined;
818
824
  primeintellect?: {
819
825
  [k: string]: any;
820
826
  } | undefined;
@@ -124,6 +124,7 @@ export const ImageGenerationProviderPreferencesOptions$outboundSchema = z.object
124
124
  perplexity: z.record(z.string(), z.any()).optional(),
125
125
  phala: z.record(z.string(), z.any()).optional(),
126
126
  poolside: z.record(z.string(), z.any()).optional(),
127
+ primalabs: z.record(z.string(), z.any()).optional(),
127
128
  primeintellect: z.record(z.string(), z.any()).optional(),
128
129
  quiver: z.record(z.string(), z.any()).optional(),
129
130
  recraft: z.record(z.string(), z.any()).optional(),
@@ -81,6 +81,7 @@ export declare const ProviderName: {
81
81
  readonly Parasail: "Parasail";
82
82
  readonly ParetoAlpha: "ParetoAlpha";
83
83
  readonly Poolside: "Poolside";
84
+ readonly PrimaLabs: "PrimaLabs";
84
85
  readonly PrimeIntellect: "PrimeIntellect";
85
86
  readonly Perceptron: "Perceptron";
86
87
  readonly Perplexity: "Perplexity";
@@ -84,6 +84,7 @@ export const ProviderName = {
84
84
  Parasail: "Parasail",
85
85
  ParetoAlpha: "ParetoAlpha",
86
86
  Poolside: "Poolside",
87
+ PrimaLabs: "PrimaLabs",
87
88
  PrimeIntellect: "PrimeIntellect",
88
89
  Perceptron: "Perceptron",
89
90
  Perplexity: "Perplexity",
@@ -318,6 +318,9 @@ export type ProviderOptions = {
318
318
  poolside?: {
319
319
  [k: string]: any;
320
320
  } | undefined;
321
+ primalabs?: {
322
+ [k: string]: any;
323
+ } | undefined;
321
324
  primeintellect?: {
322
325
  [k: string]: any;
323
326
  } | undefined;
@@ -765,6 +768,9 @@ export type ProviderOptions$Outbound = {
765
768
  poolside?: {
766
769
  [k: string]: any;
767
770
  } | undefined;
771
+ primalabs?: {
772
+ [k: string]: any;
773
+ } | undefined;
768
774
  primeintellect?: {
769
775
  [k: string]: any;
770
776
  } | undefined;
@@ -111,6 +111,7 @@ export const ProviderOptions$outboundSchema = z.object({
111
111
  perplexity: z.record(z.string(), z.any()).optional(),
112
112
  phala: z.record(z.string(), z.any()).optional(),
113
113
  poolside: z.record(z.string(), z.any()).optional(),
114
+ primalabs: z.record(z.string(), z.any()).optional(),
114
115
  primeintellect: z.record(z.string(), z.any()).optional(),
115
116
  quiver: z.record(z.string(), z.any()).optional(),
116
117
  recraft: z.record(z.string(), z.any()).optional(),
@@ -114,6 +114,7 @@ export declare const ProviderResponseProviderName: {
114
114
  readonly Parasail: "Parasail";
115
115
  readonly ParetoAlpha: "ParetoAlpha";
116
116
  readonly Poolside: "Poolside";
117
+ readonly PrimaLabs: "PrimaLabs";
117
118
  readonly PrimeIntellect: "PrimeIntellect";
118
119
  readonly Perceptron: "Perceptron";
119
120
  readonly Perplexity: "Perplexity";
@@ -118,6 +118,7 @@ export const ProviderResponseProviderName = {
118
118
  Parasail: "Parasail",
119
119
  ParetoAlpha: "ParetoAlpha",
120
120
  Poolside: "Poolside",
121
+ PrimaLabs: "PrimaLabs",
121
122
  PrimeIntellect: "PrimeIntellect",
122
123
  Perceptron: "Perceptron",
123
124
  Perplexity: "Perplexity",
@@ -340,6 +340,9 @@ export type VideoGenerationRequestOptions = {
340
340
  poolside?: {
341
341
  [k: string]: any;
342
342
  } | undefined;
343
+ primalabs?: {
344
+ [k: string]: any;
345
+ } | undefined;
343
346
  primeintellect?: {
344
347
  [k: string]: any;
345
348
  } | undefined;
@@ -883,6 +886,9 @@ export type VideoGenerationRequestOptions$Outbound = {
883
886
  poolside?: {
884
887
  [k: string]: any;
885
888
  } | undefined;
889
+ primalabs?: {
890
+ [k: string]: any;
891
+ } | undefined;
886
892
  primeintellect?: {
887
893
  [k: string]: any;
888
894
  } | undefined;
@@ -144,6 +144,7 @@ export const VideoGenerationRequestOptions$outboundSchema = z.object({
144
144
  perplexity: z.record(z.string(), z.any()).optional(),
145
145
  phala: z.record(z.string(), z.any()).optional(),
146
146
  poolside: z.record(z.string(), z.any()).optional(),
147
+ primalabs: z.record(z.string(), z.any()).optional(),
147
148
  primeintellect: z.record(z.string(), z.any()).optional(),
148
149
  quiver: z.record(z.string(), z.any()).optional(),
149
150
  recraft: z.record(z.string(), z.any()).optional(),
@@ -13,7 +13,7 @@ export declare class PrivateEndpoints extends ClientSDK {
13
13
  * Create a private endpoint
14
14
  *
15
15
  * @remarks
16
- * Create a private endpoint as a draft. Drafts are not routable: validate one with `POST /private-endpoints/{id}/validate`, then activate it with `POST /private-endpoints/{id}/activate`. Pass `activate` to do all three in one call; if validation fails the draft is kept and returned with the failed checks. Send an `Idempotency-Key` header to make retries safe: a repeated key with the same request returns the endpoint the first request created; reusing it with different fields returns 422 `idempotency_key_reused`. [Management key](/docs/guides/overview/auth/management-api-keys) required.
16
+ * Create a private endpoint as a draft. Drafts are not routable: validate one with `POST /private-endpoints/{id}/validate`, then activate it with `POST /private-endpoints/{id}/activate`. Pass `activate` to do all three in one call; if validation fails the draft is kept and returned with the failed checks. Send an `Idempotency-Key` header to make retries safe: a repeated key with the same request returns the endpoint the first request created; reusing it with different fields returns 422 `idempotency_key_reused`. Returns 400 `parameters_invalid` when `tool_choice` is declared without `tools`. The response does not echo `declared_parameters` or `tested_parameters`; read them with `GET /private-endpoints/{id}`. [Management key](/docs/guides/overview/auth/management-api-keys) required.
17
17
  */
18
18
  create(request: operations.CreatePrivateEndpointRequest, options?: RequestOptions): Promise<models.ManagedPrivateEndpointResponse>;
19
19
  /**
@@ -29,7 +29,7 @@ export class PrivateEndpoints extends ClientSDK {
29
29
  * Create a private endpoint
30
30
  *
31
31
  * @remarks
32
- * Create a private endpoint as a draft. Drafts are not routable: validate one with `POST /private-endpoints/{id}/validate`, then activate it with `POST /private-endpoints/{id}/activate`. Pass `activate` to do all three in one call; if validation fails the draft is kept and returned with the failed checks. Send an `Idempotency-Key` header to make retries safe: a repeated key with the same request returns the endpoint the first request created; reusing it with different fields returns 422 `idempotency_key_reused`. [Management key](/docs/guides/overview/auth/management-api-keys) required.
32
+ * Create a private endpoint as a draft. Drafts are not routable: validate one with `POST /private-endpoints/{id}/validate`, then activate it with `POST /private-endpoints/{id}/activate`. Pass `activate` to do all three in one call; if validation fails the draft is kept and returned with the failed checks. Send an `Idempotency-Key` header to make retries safe: a repeated key with the same request returns the endpoint the first request created; reusing it with different fields returns 422 `idempotency_key_reused`. Returns 400 `parameters_invalid` when `tool_choice` is declared without `tools`. The response does not echo `declared_parameters` or `tested_parameters`; read them with `GET /private-endpoints/{id}`. [Management key](/docs/guides/overview/auth/management-api-keys) required.
33
33
  */
34
34
  async create(request, options) {
35
35
  return unwrapAsync(privateEndpointsCreate(this, request, options));
package/jsr.json CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  {
4
4
  "name": "@openrouter/sdk",
5
- "version": "1.5.13",
5
+ "version": "1.5.15",
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.13",
3
+ "version": "1.5.15",
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": [
@@ -74,14 +74,14 @@
74
74
  "build": "tsc && node scripts/unbarrel-imports.js",
75
75
  "prepublishOnly": "npm run build",
76
76
  "postinstall": "node scripts/check-types.js || true",
77
+ "test": "vitest --run --project unit",
77
78
  "test:transit": "exit 0",
78
- "test:watch": "vitest --watch --project unit",
79
79
  "typecheck": "tsc --noEmit",
80
+ "typecheck:transit": "exit 0",
80
81
  "compile": "tsc && node scripts/unbarrel-imports.js",
81
82
  "prepare": "npm run build",
82
- "test": "vitest --run --project unit",
83
83
  "test:e2e": "vitest --run --project e2e",
84
- "typecheck:transit": "exit 0"
84
+ "test:watch": "vitest --watch --project unit"
85
85
  },
86
86
  "peerDependencies": {
87
87