@openrouter/sdk 1.5.42 → 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.42";
53
+ readonly sdkVersion: "1.5.43";
54
54
  readonly genVersion: "2.950.13";
55
- readonly userAgent: "speakeasy-sdk/typescript 1.5.42 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.42",
32
+ sdkVersion: "1.5.43",
33
33
  genVersion: "2.950.13",
34
- userAgent: "speakeasy-sdk/typescript 1.5.42 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
@@ -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'.
@@ -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.42",
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.42",
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,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
+ "prepare": "npm run build",
77
+ "test": "vitest --run --project unit",
78
+ "test:watch": "vitest --watch --project unit",
79
+ "typecheck:transit": "exit 0",
76
80
  "compile": "tsc && node scripts/unbarrel-imports.js",
77
81
  "postinstall": "node scripts/check-types.js || true",
78
- "prepare": "npm run build",
79
82
  "test:e2e": "vitest --run --project e2e",
80
- "typecheck": "tsc --noEmit",
81
- "test": "vitest --run --project unit",
82
83
  "test:transit": "exit 0",
83
- "test:watch": "vitest --watch --project unit",
84
- "typecheck:transit": "exit 0"
84
+ "typecheck": "tsc --noEmit"
85
85
  },
86
86
  "peerDependencies": {
87
87