@openrouter/sdk 1.5.14 → 1.5.16
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.
- package/esm/funcs/privateEndpointsCreate.d.ts +1 -1
- package/esm/funcs/privateEndpointsCreate.js +1 -1
- package/esm/lib/config.d.ts +2 -2
- package/esm/lib/config.js +2 -2
- package/esm/models/chatdevelopermessage.d.ts +3 -19
- package/esm/models/chatdevelopermessage.js +3 -9
- package/esm/models/chatsystemmessage.d.ts +3 -19
- package/esm/models/chatsystemmessage.js +3 -9
- package/esm/models/configurationupdate.d.ts +19 -0
- package/esm/models/configurationupdate.js +14 -0
- package/esm/models/index.d.ts +1 -0
- package/esm/models/index.js +1 -0
- package/esm/models/websearchstatus.d.ts +1 -0
- package/esm/models/websearchstatus.js +1 -0
- package/esm/sdk/privateendpoints.d.ts +1 -1
- package/esm/sdk/privateendpoints.js +1 -1
- package/jsr.json +1 -1
- package/package.json +5 -5
|
@@ -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));
|
package/esm/lib/config.d.ts
CHANGED
|
@@ -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.
|
|
53
|
+
readonly sdkVersion: "1.5.16";
|
|
54
54
|
readonly genVersion: "2.948.4";
|
|
55
|
-
readonly userAgent: "speakeasy-sdk/typescript 1.5.
|
|
55
|
+
readonly userAgent: "speakeasy-sdk/typescript 1.5.16 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.
|
|
32
|
+
sdkVersion: "1.5.16",
|
|
33
33
|
genVersion: "2.948.4",
|
|
34
|
-
userAgent: "speakeasy-sdk/typescript 1.5.
|
|
34
|
+
userAgent: "speakeasy-sdk/typescript 1.5.16 2.948.4 1.0.0 @openrouter/sdk",
|
|
35
35
|
};
|
|
36
36
|
//# sourceMappingURL=config.js.map
|
|
@@ -1,15 +1,6 @@
|
|
|
1
1
|
import * as z from "zod/v4";
|
|
2
2
|
import { ChatContentText, ChatContentText$Outbound } from "./chatcontenttext.js";
|
|
3
|
-
import {
|
|
4
|
-
/**
|
|
5
|
-
* OpenRouter extension. Same as the system message `configuration_update`: changes reasoning effort from this point in the conversation onward without invalidating the prompt cache for the preceding turns.
|
|
6
|
-
*/
|
|
7
|
-
export type ChatDeveloperMessageConfigurationUpdate = {
|
|
8
|
-
/**
|
|
9
|
-
* Reasoning settings applied from this point in the conversation onward
|
|
10
|
-
*/
|
|
11
|
-
reasoning: ConfigurationUpdateReasoning;
|
|
12
|
-
};
|
|
3
|
+
import { ConfigurationUpdate, ConfigurationUpdate$Outbound } from "./configurationupdate.js";
|
|
13
4
|
/**
|
|
14
5
|
* Developer message content
|
|
15
6
|
*/
|
|
@@ -21,7 +12,7 @@ export type ChatDeveloperMessage = {
|
|
|
21
12
|
/**
|
|
22
13
|
* OpenRouter extension. Same as the system message `configuration_update`: changes reasoning effort from this point in the conversation onward without invalidating the prompt cache for the preceding turns.
|
|
23
14
|
*/
|
|
24
|
-
configurationUpdate?:
|
|
15
|
+
configurationUpdate?: ConfigurationUpdate | null | undefined;
|
|
25
16
|
/**
|
|
26
17
|
* Developer message content
|
|
27
18
|
*/
|
|
@@ -33,20 +24,13 @@ export type ChatDeveloperMessage = {
|
|
|
33
24
|
role: "developer";
|
|
34
25
|
};
|
|
35
26
|
/** @internal */
|
|
36
|
-
export type ChatDeveloperMessageConfigurationUpdate$Outbound = {
|
|
37
|
-
reasoning: ConfigurationUpdateReasoning$Outbound;
|
|
38
|
-
};
|
|
39
|
-
/** @internal */
|
|
40
|
-
export declare const ChatDeveloperMessageConfigurationUpdate$outboundSchema: z.ZodType<ChatDeveloperMessageConfigurationUpdate$Outbound, ChatDeveloperMessageConfigurationUpdate>;
|
|
41
|
-
export declare function chatDeveloperMessageConfigurationUpdateToJSON(chatDeveloperMessageConfigurationUpdate: ChatDeveloperMessageConfigurationUpdate): string;
|
|
42
|
-
/** @internal */
|
|
43
27
|
export type ChatDeveloperMessageContent$Outbound = string | Array<ChatContentText$Outbound>;
|
|
44
28
|
/** @internal */
|
|
45
29
|
export declare const ChatDeveloperMessageContent$outboundSchema: z.ZodType<ChatDeveloperMessageContent$Outbound, ChatDeveloperMessageContent>;
|
|
46
30
|
export declare function chatDeveloperMessageContentToJSON(chatDeveloperMessageContent: ChatDeveloperMessageContent): string;
|
|
47
31
|
/** @internal */
|
|
48
32
|
export type ChatDeveloperMessage$Outbound = {
|
|
49
|
-
configuration_update?:
|
|
33
|
+
configuration_update?: ConfigurationUpdate$Outbound | null | undefined;
|
|
50
34
|
content: string | Array<ChatContentText$Outbound>;
|
|
51
35
|
name?: string | undefined;
|
|
52
36
|
role: "developer";
|
|
@@ -5,14 +5,7 @@
|
|
|
5
5
|
import * as z from "zod/v4";
|
|
6
6
|
import { remap as remap$ } from "../lib/primitives.js";
|
|
7
7
|
import { ChatContentText$outboundSchema, } from "./chatcontenttext.js";
|
|
8
|
-
import {
|
|
9
|
-
/** @internal */
|
|
10
|
-
export const ChatDeveloperMessageConfigurationUpdate$outboundSchema = z.object({
|
|
11
|
-
reasoning: ConfigurationUpdateReasoning$outboundSchema,
|
|
12
|
-
});
|
|
13
|
-
export function chatDeveloperMessageConfigurationUpdateToJSON(chatDeveloperMessageConfigurationUpdate) {
|
|
14
|
-
return JSON.stringify(ChatDeveloperMessageConfigurationUpdate$outboundSchema.parse(chatDeveloperMessageConfigurationUpdate));
|
|
15
|
-
}
|
|
8
|
+
import { ConfigurationUpdate$outboundSchema, } from "./configurationupdate.js";
|
|
16
9
|
/** @internal */
|
|
17
10
|
export const ChatDeveloperMessageContent$outboundSchema = z.union([z.string(), z.array(ChatContentText$outboundSchema)]);
|
|
18
11
|
export function chatDeveloperMessageContentToJSON(chatDeveloperMessageContent) {
|
|
@@ -20,7 +13,8 @@ export function chatDeveloperMessageContentToJSON(chatDeveloperMessageContent) {
|
|
|
20
13
|
}
|
|
21
14
|
/** @internal */
|
|
22
15
|
export const ChatDeveloperMessage$outboundSchema = z.object({
|
|
23
|
-
configurationUpdate: z.nullable(
|
|
16
|
+
configurationUpdate: z.nullable(ConfigurationUpdate$outboundSchema)
|
|
17
|
+
.optional(),
|
|
24
18
|
content: z.union([z.string(), z.array(ChatContentText$outboundSchema)]),
|
|
25
19
|
name: z.string().optional(),
|
|
26
20
|
role: z.literal("developer"),
|
|
@@ -1,15 +1,6 @@
|
|
|
1
1
|
import * as z from "zod/v4";
|
|
2
2
|
import { ChatContentText, ChatContentText$Outbound } from "./chatcontenttext.js";
|
|
3
|
-
import {
|
|
4
|
-
/**
|
|
5
|
-
* OpenRouter extension. Changes reasoning effort from this point in the conversation onward without invalidating the prompt cache for the preceding turns. Place it on a content-less system message (`content: ""`) directly before the user message it should apply to, and keep it at that position in later requests. Equivalent to the OpenAI Responses `configuration_update` input item and the Anthropic Messages per-message `output_config.effort`.
|
|
6
|
-
*/
|
|
7
|
-
export type ChatSystemMessageConfigurationUpdate = {
|
|
8
|
-
/**
|
|
9
|
-
* Reasoning settings applied from this point in the conversation onward
|
|
10
|
-
*/
|
|
11
|
-
reasoning: ConfigurationUpdateReasoning;
|
|
12
|
-
};
|
|
3
|
+
import { ConfigurationUpdate, ConfigurationUpdate$Outbound } from "./configurationupdate.js";
|
|
13
4
|
/**
|
|
14
5
|
* System message content
|
|
15
6
|
*/
|
|
@@ -21,7 +12,7 @@ export type ChatSystemMessage = {
|
|
|
21
12
|
/**
|
|
22
13
|
* OpenRouter extension. Changes reasoning effort from this point in the conversation onward without invalidating the prompt cache for the preceding turns. Place it on a content-less system message (`content: ""`) directly before the user message it should apply to, and keep it at that position in later requests. Equivalent to the OpenAI Responses `configuration_update` input item and the Anthropic Messages per-message `output_config.effort`.
|
|
23
14
|
*/
|
|
24
|
-
configurationUpdate?:
|
|
15
|
+
configurationUpdate?: ConfigurationUpdate | null | undefined;
|
|
25
16
|
/**
|
|
26
17
|
* System message content
|
|
27
18
|
*/
|
|
@@ -33,20 +24,13 @@ export type ChatSystemMessage = {
|
|
|
33
24
|
role: "system";
|
|
34
25
|
};
|
|
35
26
|
/** @internal */
|
|
36
|
-
export type ChatSystemMessageConfigurationUpdate$Outbound = {
|
|
37
|
-
reasoning: ConfigurationUpdateReasoning$Outbound;
|
|
38
|
-
};
|
|
39
|
-
/** @internal */
|
|
40
|
-
export declare const ChatSystemMessageConfigurationUpdate$outboundSchema: z.ZodType<ChatSystemMessageConfigurationUpdate$Outbound, ChatSystemMessageConfigurationUpdate>;
|
|
41
|
-
export declare function chatSystemMessageConfigurationUpdateToJSON(chatSystemMessageConfigurationUpdate: ChatSystemMessageConfigurationUpdate): string;
|
|
42
|
-
/** @internal */
|
|
43
27
|
export type ChatSystemMessageContent$Outbound = string | Array<ChatContentText$Outbound>;
|
|
44
28
|
/** @internal */
|
|
45
29
|
export declare const ChatSystemMessageContent$outboundSchema: z.ZodType<ChatSystemMessageContent$Outbound, ChatSystemMessageContent>;
|
|
46
30
|
export declare function chatSystemMessageContentToJSON(chatSystemMessageContent: ChatSystemMessageContent): string;
|
|
47
31
|
/** @internal */
|
|
48
32
|
export type ChatSystemMessage$Outbound = {
|
|
49
|
-
configuration_update?:
|
|
33
|
+
configuration_update?: ConfigurationUpdate$Outbound | null | undefined;
|
|
50
34
|
content: string | Array<ChatContentText$Outbound>;
|
|
51
35
|
name?: string | undefined;
|
|
52
36
|
role: "system";
|
|
@@ -5,14 +5,7 @@
|
|
|
5
5
|
import * as z from "zod/v4";
|
|
6
6
|
import { remap as remap$ } from "../lib/primitives.js";
|
|
7
7
|
import { ChatContentText$outboundSchema, } from "./chatcontenttext.js";
|
|
8
|
-
import {
|
|
9
|
-
/** @internal */
|
|
10
|
-
export const ChatSystemMessageConfigurationUpdate$outboundSchema = z.object({
|
|
11
|
-
reasoning: ConfigurationUpdateReasoning$outboundSchema,
|
|
12
|
-
});
|
|
13
|
-
export function chatSystemMessageConfigurationUpdateToJSON(chatSystemMessageConfigurationUpdate) {
|
|
14
|
-
return JSON.stringify(ChatSystemMessageConfigurationUpdate$outboundSchema.parse(chatSystemMessageConfigurationUpdate));
|
|
15
|
-
}
|
|
8
|
+
import { ConfigurationUpdate$outboundSchema, } from "./configurationupdate.js";
|
|
16
9
|
/** @internal */
|
|
17
10
|
export const ChatSystemMessageContent$outboundSchema = z.union([z.string(), z.array(ChatContentText$outboundSchema)]);
|
|
18
11
|
export function chatSystemMessageContentToJSON(chatSystemMessageContent) {
|
|
@@ -20,7 +13,8 @@ export function chatSystemMessageContentToJSON(chatSystemMessageContent) {
|
|
|
20
13
|
}
|
|
21
14
|
/** @internal */
|
|
22
15
|
export const ChatSystemMessage$outboundSchema = z.object({
|
|
23
|
-
configurationUpdate: z.nullable(
|
|
16
|
+
configurationUpdate: z.nullable(ConfigurationUpdate$outboundSchema)
|
|
17
|
+
.optional(),
|
|
24
18
|
content: z.union([z.string(), z.array(ChatContentText$outboundSchema)]),
|
|
25
19
|
name: z.string().optional(),
|
|
26
20
|
role: z.literal("system"),
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
|
+
import { ConfigurationUpdateReasoning, ConfigurationUpdateReasoning$Outbound } from "./configurationupdatereasoning.js";
|
|
3
|
+
/**
|
|
4
|
+
* Mid-conversation configuration update. Changes reasoning effort from this point onward without invalidating the prompt cache for the preceding turns.
|
|
5
|
+
*/
|
|
6
|
+
export type ConfigurationUpdate = {
|
|
7
|
+
/**
|
|
8
|
+
* Reasoning settings applied from this point in the conversation onward
|
|
9
|
+
*/
|
|
10
|
+
reasoning: ConfigurationUpdateReasoning;
|
|
11
|
+
};
|
|
12
|
+
/** @internal */
|
|
13
|
+
export type ConfigurationUpdate$Outbound = {
|
|
14
|
+
reasoning: ConfigurationUpdateReasoning$Outbound;
|
|
15
|
+
};
|
|
16
|
+
/** @internal */
|
|
17
|
+
export declare const ConfigurationUpdate$outboundSchema: z.ZodType<ConfigurationUpdate$Outbound, ConfigurationUpdate>;
|
|
18
|
+
export declare function configurationUpdateToJSON(configurationUpdate: ConfigurationUpdate): string;
|
|
19
|
+
//# sourceMappingURL=configurationupdate.d.ts.map
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: f89cde6e6d79
|
|
4
|
+
*/
|
|
5
|
+
import * as z from "zod/v4";
|
|
6
|
+
import { ConfigurationUpdateReasoning$outboundSchema, } from "./configurationupdatereasoning.js";
|
|
7
|
+
/** @internal */
|
|
8
|
+
export const ConfigurationUpdate$outboundSchema = z.object({
|
|
9
|
+
reasoning: ConfigurationUpdateReasoning$outboundSchema,
|
|
10
|
+
});
|
|
11
|
+
export function configurationUpdateToJSON(configurationUpdate) {
|
|
12
|
+
return JSON.stringify(ConfigurationUpdate$outboundSchema.parse(configurationUpdate));
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=configurationupdate.js.map
|
package/esm/models/index.d.ts
CHANGED
|
@@ -241,6 +241,7 @@ export * from "./codexlocalshelltool.js";
|
|
|
241
241
|
export * from "./compactionitem.js";
|
|
242
242
|
export * from "./compoundfilter.js";
|
|
243
243
|
export * from "./computeruseservertool.js";
|
|
244
|
+
export * from "./configurationupdate.js";
|
|
244
245
|
export * from "./configurationupdateitem.js";
|
|
245
246
|
export * from "./configurationupdatereasoning.js";
|
|
246
247
|
export * from "./conflictresponseerrordata.js";
|
package/esm/models/index.js
CHANGED
|
@@ -245,6 +245,7 @@ export * from "./codexlocalshelltool.js";
|
|
|
245
245
|
export * from "./compactionitem.js";
|
|
246
246
|
export * from "./compoundfilter.js";
|
|
247
247
|
export * from "./computeruseservertool.js";
|
|
248
|
+
export * from "./configurationupdate.js";
|
|
248
249
|
export * from "./configurationupdateitem.js";
|
|
249
250
|
export * from "./configurationupdatereasoning.js";
|
|
250
251
|
export * from "./conflictresponseerrordata.js";
|
|
@@ -5,6 +5,7 @@ export declare const WebSearchStatus: {
|
|
|
5
5
|
readonly Searching: "searching";
|
|
6
6
|
readonly InProgress: "in_progress";
|
|
7
7
|
readonly Failed: "failed";
|
|
8
|
+
readonly Incomplete: "incomplete";
|
|
8
9
|
};
|
|
9
10
|
export type WebSearchStatus = OpenEnum<typeof WebSearchStatus>;
|
|
10
11
|
/** @internal */
|
|
@@ -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
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openrouter/sdk",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.16",
|
|
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": [
|
|
@@ -76,12 +76,12 @@
|
|
|
76
76
|
"test:transit": "exit 0",
|
|
77
77
|
"test:watch": "vitest --watch --project unit",
|
|
78
78
|
"typecheck": "tsc --noEmit",
|
|
79
|
-
"prepare": "npm run build",
|
|
80
|
-
"test": "vitest --run --project unit",
|
|
81
79
|
"typecheck:transit": "exit 0",
|
|
82
|
-
"compile": "tsc && node scripts/unbarrel-imports.js",
|
|
83
80
|
"postinstall": "node scripts/check-types.js || true",
|
|
84
|
-
"test
|
|
81
|
+
"test": "vitest --run --project unit",
|
|
82
|
+
"test:e2e": "vitest --run --project e2e",
|
|
83
|
+
"compile": "tsc && node scripts/unbarrel-imports.js",
|
|
84
|
+
"prepare": "npm run build"
|
|
85
85
|
},
|
|
86
86
|
"peerDependencies": {
|
|
87
87
|
|