@openrouter/sdk 1.5.127 → 1.5.129
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/scimCreate.d.ts +1 -3
- package/esm/funcs/scimCreate.js +1 -3
- package/esm/funcs/scimDelete.d.ts +1 -1
- package/esm/funcs/scimDelete.js +1 -1
- package/esm/funcs/scimUpdate.d.ts +1 -1
- package/esm/funcs/scimUpdate.js +1 -1
- package/esm/lib/config.d.ts +2 -2
- package/esm/lib/config.js +2 -2
- package/esm/models/byokproviderslug.d.ts +1 -0
- package/esm/models/byokproviderslug.js +1 -0
- package/esm/models/imagegenerationproviderpreferences.d.ts +6 -0
- package/esm/models/imagegenerationproviderpreferences.js +2 -0
- package/esm/models/imagegenerationrequest.d.ts +1 -0
- package/esm/models/imagegenerationrequest.js +1 -0
- package/esm/models/index.d.ts +6 -0
- package/esm/models/index.js +6 -0
- package/esm/models/messagesmessageparam.d.ts +7 -6
- package/esm/models/messagesmessageparam.js +4 -0
- package/esm/models/messagestoolsearchtoolreference.d.ts +24 -0
- package/esm/models/messagestoolsearchtoolreference.js +23 -0
- package/esm/models/messagestoolsearchtoolresultblock.d.ts +29 -0
- package/esm/models/messagestoolsearchtoolresultblock.js +23 -0
- package/esm/models/messagestoolsearchtoolresultcontent.d.ts +13 -0
- package/esm/models/messagestoolsearchtoolresultcontent.js +15 -0
- package/esm/models/messagestoolsearchtoolresulterror.d.ts +23 -0
- package/esm/models/messagestoolsearchtoolresulterror.js +21 -0
- package/esm/models/messagestoolsearchtoolresulterrorcode.d.ts +18 -0
- package/esm/models/messagestoolsearchtoolresulterrorcode.js +16 -0
- package/esm/models/messagestoolsearchtoolsearchresult.d.ts +18 -0
- package/esm/models/messagestoolsearchtoolsearchresult.js +19 -0
- package/esm/models/operations/deletescimgroupmapping.d.ts +2 -2
- package/esm/models/operations/listbyokkeys.d.ts +1 -0
- package/esm/models/operations/listbyokkeys.js +1 -0
- package/esm/models/providername.d.ts +1 -0
- package/esm/models/providername.js +1 -0
- package/esm/models/provideroptions.d.ts +6 -0
- package/esm/models/provideroptions.js +2 -0
- package/esm/models/providerresponse.d.ts +1 -0
- package/esm/models/providerresponse.js +1 -0
- package/esm/models/videogenerationrequest.d.ts +6 -0
- package/esm/models/videogenerationrequest.js +2 -0
- package/esm/sdk/scim.d.ts +3 -5
- package/esm/sdk/scim.js +3 -5
- package/jsr.json +1 -1
- package/package.json +6 -6
|
@@ -13,9 +13,7 @@ import { Result } from "../types/fp.js";
|
|
|
13
13
|
* Create a SCIM group mapping
|
|
14
14
|
*
|
|
15
15
|
* @remarks
|
|
16
|
-
* Create a SCIM group-to-workspace role mapping.
|
|
17
|
-
*
|
|
18
|
-
* @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
16
|
+
* Create a SCIM group-to-workspace role mapping. Creating a mapping that already exists with the same role succeeds and re-applies the mapping to the group members. Requesting a different role for an existing mapping returns 409. Assigning the `admin` role is dashboard-only and returns 403 for management keys. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
19
17
|
*/
|
|
20
18
|
export declare function scimCreate(client: OpenRouterCore, request: operations.CreateScimGroupMappingRequest, options?: RequestOptions): APIPromise<Result<models.CreateScimGroupMappingResponse, errors.BadRequestResponseError | errors.UnauthorizedResponseError | errors.ForbiddenResponseError | errors.NotFoundResponseError | errors.ConflictResponseError | errors.InternalServerResponseError | OpenRouterError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
|
|
21
19
|
//# sourceMappingURL=scimCreate.d.ts.map
|
package/esm/funcs/scimCreate.js
CHANGED
|
@@ -16,9 +16,7 @@ import { APIPromise } from "../types/async.js";
|
|
|
16
16
|
* Create a SCIM group mapping
|
|
17
17
|
*
|
|
18
18
|
* @remarks
|
|
19
|
-
* Create a SCIM group-to-workspace role mapping.
|
|
20
|
-
*
|
|
21
|
-
* @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
19
|
+
* Create a SCIM group-to-workspace role mapping. Creating a mapping that already exists with the same role succeeds and re-applies the mapping to the group members. Requesting a different role for an existing mapping returns 409. Assigning the `admin` role is dashboard-only and returns 403 for management keys. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
22
20
|
*/
|
|
23
21
|
export function scimCreate(client, request, options) {
|
|
24
22
|
return new APIPromise($do(client, request, options));
|
|
@@ -13,7 +13,7 @@ import { Result } from "../types/fp.js";
|
|
|
13
13
|
* Delete a SCIM group mapping
|
|
14
14
|
*
|
|
15
15
|
* @remarks
|
|
16
|
-
* Delete a SCIM group-to-workspace mapping. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
16
|
+
* Delete a SCIM group-to-workspace mapping. For an `admin` mapping, `keep_members=true` returns `403` and leaves the mapping in place — preserving members as workspace admins is dashboard-only. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
17
17
|
*/
|
|
18
18
|
export declare function scimDelete(client: OpenRouterCore, request: operations.DeleteScimGroupMappingRequest, options?: RequestOptions): APIPromise<Result<models.DeleteScimGroupMappingResponse, errors.BadRequestResponseError | errors.UnauthorizedResponseError | errors.ForbiddenResponseError | errors.NotFoundResponseError | errors.InternalServerResponseError | OpenRouterError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
|
|
19
19
|
//# sourceMappingURL=scimDelete.d.ts.map
|
package/esm/funcs/scimDelete.js
CHANGED
|
@@ -16,7 +16,7 @@ import { APIPromise } from "../types/async.js";
|
|
|
16
16
|
* Delete a SCIM group mapping
|
|
17
17
|
*
|
|
18
18
|
* @remarks
|
|
19
|
-
* Delete a SCIM group-to-workspace mapping. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
19
|
+
* Delete a SCIM group-to-workspace mapping. For an `admin` mapping, `keep_members=true` returns `403` and leaves the mapping in place — preserving members as workspace admins is dashboard-only. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
20
20
|
*/
|
|
21
21
|
export function scimDelete(client, request, options) {
|
|
22
22
|
return new APIPromise($do(client, request, options));
|
|
@@ -13,7 +13,7 @@ import { Result } from "../types/fp.js";
|
|
|
13
13
|
* Update a SCIM group mapping
|
|
14
14
|
*
|
|
15
15
|
* @remarks
|
|
16
|
-
* Update a SCIM group mapping role. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
16
|
+
* Update a SCIM group mapping role. Assigning the `admin` role is dashboard-only and returns 403 for management keys. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
17
17
|
*/
|
|
18
18
|
export declare function scimUpdate(client: OpenRouterCore, request: operations.UpdateScimGroupMappingRequest, options?: RequestOptions): APIPromise<Result<models.UpdateScimGroupMappingResponse, errors.BadRequestResponseError | errors.UnauthorizedResponseError | errors.ForbiddenResponseError | errors.NotFoundResponseError | errors.InternalServerResponseError | OpenRouterError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
|
|
19
19
|
//# sourceMappingURL=scimUpdate.d.ts.map
|
package/esm/funcs/scimUpdate.js
CHANGED
|
@@ -16,7 +16,7 @@ import { APIPromise } from "../types/async.js";
|
|
|
16
16
|
* Update a SCIM group mapping
|
|
17
17
|
*
|
|
18
18
|
* @remarks
|
|
19
|
-
* Update a SCIM group mapping role. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
19
|
+
* Update a SCIM group mapping role. Assigning the `admin` role is dashboard-only and returns 403 for management keys. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
20
20
|
*/
|
|
21
21
|
export function scimUpdate(client, request, options) {
|
|
22
22
|
return new APIPromise($do(client, request, options));
|
package/esm/lib/config.d.ts
CHANGED
|
@@ -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.
|
|
52
|
+
readonly sdkVersion: "1.5.129";
|
|
53
53
|
readonly genVersion: "2.960.8";
|
|
54
|
-
readonly userAgent: "speakeasy-sdk/typescript 1.5.
|
|
54
|
+
readonly userAgent: "speakeasy-sdk/typescript 1.5.129 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.
|
|
28
|
+
sdkVersion: "1.5.129",
|
|
29
29
|
genVersion: "2.960.8",
|
|
30
|
-
userAgent: "speakeasy-sdk/typescript 1.5.
|
|
30
|
+
userAgent: "speakeasy-sdk/typescript 1.5.129 2.960.8 1.0.0 @openrouter/sdk",
|
|
31
31
|
};
|
|
32
32
|
//# sourceMappingURL=config.js.map
|
|
@@ -87,6 +87,7 @@ export declare const BYOKProviderSlug: {
|
|
|
87
87
|
readonly Parallel: "parallel";
|
|
88
88
|
readonly Parasail: "parasail";
|
|
89
89
|
readonly ParetoAlpha: "pareto-alpha";
|
|
90
|
+
readonly ParetoInference: "pareto-inference";
|
|
90
91
|
readonly ParticleAi: "particle-ai";
|
|
91
92
|
readonly PearlResearch: "pearl-research";
|
|
92
93
|
readonly Perceptron: "perceptron";
|
|
@@ -345,6 +345,9 @@ export type ImageGenerationProviderPreferencesOptions = {
|
|
|
345
345
|
paretoAlpha?: {
|
|
346
346
|
[k: string]: any;
|
|
347
347
|
} | undefined;
|
|
348
|
+
paretoInference?: {
|
|
349
|
+
[k: string]: any;
|
|
350
|
+
} | undefined;
|
|
348
351
|
particleAi?: {
|
|
349
352
|
[k: string]: any;
|
|
350
353
|
} | undefined;
|
|
@@ -879,6 +882,9 @@ export type ImageGenerationProviderPreferencesOptions$Outbound = {
|
|
|
879
882
|
"pareto-alpha"?: {
|
|
880
883
|
[k: string]: any;
|
|
881
884
|
} | undefined;
|
|
885
|
+
"pareto-inference"?: {
|
|
886
|
+
[k: string]: any;
|
|
887
|
+
} | undefined;
|
|
882
888
|
"particle-ai"?: {
|
|
883
889
|
[k: string]: any;
|
|
884
890
|
} | undefined;
|
|
@@ -138,6 +138,7 @@ export const ImageGenerationProviderPreferencesOptions$outboundSchema = z.object
|
|
|
138
138
|
parallel: z.record(z.string(), z.any()).optional(),
|
|
139
139
|
parasail: z.record(z.string(), z.any()).optional(),
|
|
140
140
|
paretoAlpha: z.record(z.string(), z.any()).optional(),
|
|
141
|
+
paretoInference: z.record(z.string(), z.any()).optional(),
|
|
141
142
|
particleAi: z.record(z.string(), z.any()).optional(),
|
|
142
143
|
pearlResearch: z.record(z.string(), z.any()).optional(),
|
|
143
144
|
perceptron: z.record(z.string(), z.any()).optional(),
|
|
@@ -216,6 +217,7 @@ export const ImageGenerationProviderPreferencesOptions$outboundSchema = z.object
|
|
|
216
217
|
nexAgi: "nex-agi",
|
|
217
218
|
openInference: "open-inference",
|
|
218
219
|
paretoAlpha: "pareto-alpha",
|
|
220
|
+
paretoInference: "pareto-inference",
|
|
219
221
|
particleAi: "particle-ai",
|
|
220
222
|
pearlResearch: "pearl-research",
|
|
221
223
|
sailResearch: "sail-research",
|
|
@@ -105,6 +105,7 @@ export declare const ImageGenerationRequestResolution: {
|
|
|
105
105
|
readonly OneDot5K: "1.5K";
|
|
106
106
|
readonly TwoK: "2K";
|
|
107
107
|
readonly FourK: "4K";
|
|
108
|
+
readonly EightK: "8K";
|
|
108
109
|
};
|
|
109
110
|
/**
|
|
110
111
|
* Normalized resolution tier of the generated image. Concrete pixel dimensions are derived per-provider.
|
|
@@ -82,6 +82,7 @@ export const ImageGenerationRequestResolution = {
|
|
|
82
82
|
OneDot5K: "1.5K",
|
|
83
83
|
TwoK: "2K",
|
|
84
84
|
FourK: "4K",
|
|
85
|
+
EightK: "8K",
|
|
85
86
|
};
|
|
86
87
|
/**
|
|
87
88
|
* `b64_json` (default) returns the image bytes inline. `url` stores each output in OpenRouter storage and returns a signed download URL in place of the bytes. The URL is a bearer link: anyone holding it can download the image until it expires, up to 24 hours after the image was stored (use `expires_at`); the stored copy is deleted by the storage lifecycle within the following day. The response falls back to `b64_json` when a URL cannot be issued: streaming responses, zero-data-retention requests (account settings, guardrails or `provider.zdr`) or endpoints, or storage being unavailable.
|
package/esm/models/index.d.ts
CHANGED
|
@@ -551,6 +551,12 @@ export * from "./messagessearchmodelsservertool.js";
|
|
|
551
551
|
export * from "./messagesshelltoolresultblock.js";
|
|
552
552
|
export * from "./messagestooladditionblock.js";
|
|
553
553
|
export * from "./messagestoolremovalblock.js";
|
|
554
|
+
export * from "./messagestoolsearchtoolreference.js";
|
|
555
|
+
export * from "./messagestoolsearchtoolresultblock.js";
|
|
556
|
+
export * from "./messagestoolsearchtoolresultcontent.js";
|
|
557
|
+
export * from "./messagestoolsearchtoolresulterror.js";
|
|
558
|
+
export * from "./messagestoolsearchtoolresulterrorcode.js";
|
|
559
|
+
export * from "./messagestoolsearchtoolsearchresult.js";
|
|
554
560
|
export * from "./metadatalevel.js";
|
|
555
561
|
export * from "./model.js";
|
|
556
562
|
export * from "./modelaliastarget.js";
|
package/esm/models/index.js
CHANGED
|
@@ -554,6 +554,12 @@ export * from "./messagessearchmodelsservertool.js";
|
|
|
554
554
|
export * from "./messagesshelltoolresultblock.js";
|
|
555
555
|
export * from "./messagestooladditionblock.js";
|
|
556
556
|
export * from "./messagestoolremovalblock.js";
|
|
557
|
+
export * from "./messagestoolsearchtoolreference.js";
|
|
558
|
+
export * from "./messagestoolsearchtoolresultblock.js";
|
|
559
|
+
export * from "./messagestoolsearchtoolresultcontent.js";
|
|
560
|
+
export * from "./messagestoolsearchtoolresulterror.js";
|
|
561
|
+
export * from "./messagestoolsearchtoolresulterrorcode.js";
|
|
562
|
+
export * from "./messagestoolsearchtoolsearchresult.js";
|
|
557
563
|
export * from "./metadatalevel.js";
|
|
558
564
|
export * from "./model.js";
|
|
559
565
|
export * from "./modelaliastarget.js";
|
|
@@ -13,6 +13,7 @@ import { MessagesBashToolResultBlock, MessagesBashToolResultBlock$Outbound } fro
|
|
|
13
13
|
import { MessagesShellToolResultBlock, MessagesShellToolResultBlock$Outbound } from "./messagesshelltoolresultblock.js";
|
|
14
14
|
import { MessagesToolAdditionBlock, MessagesToolAdditionBlock$Outbound } from "./messagestooladditionblock.js";
|
|
15
15
|
import { MessagesToolRemovalBlock, MessagesToolRemovalBlock$Outbound } from "./messagestoolremovalblock.js";
|
|
16
|
+
import { MessagesToolSearchToolResultBlock, MessagesToolSearchToolResultBlock$Outbound } from "./messagestoolsearchtoolresultblock.js";
|
|
16
17
|
import { ORAnthropicToolSearchResultParam, ORAnthropicToolSearchResultParam$Outbound } from "./oranthropictoolsearchresultparam.js";
|
|
17
18
|
export type ContentCompaction = {
|
|
18
19
|
/**
|
|
@@ -95,8 +96,8 @@ export type ContentToolUse = {
|
|
|
95
96
|
name: string;
|
|
96
97
|
type: "tool_use";
|
|
97
98
|
};
|
|
98
|
-
export type MessagesMessageParamContentUnion4 = AnthropicTextBlockParam | AnthropicImageBlockParam | AnthropicDocumentBlockParam | ContentToolUse | ContentToolResult | ContentThinking | ContentRedactedThinking | ContentServerToolUse | ContentWebSearchToolResult | AnthropicSearchResultBlockParam | ContentCompaction | MessagesAdvisorToolResultBlock | MessagesToolAdditionBlock | MessagesToolRemovalBlock | MessagesShellToolResultBlock | MessagesBashToolResultBlock | ORAnthropicToolSearchResultParam;
|
|
99
|
-
export type MessagesMessageParamContentUnion5 = string | Array<AnthropicTextBlockParam | AnthropicImageBlockParam | AnthropicDocumentBlockParam | ContentToolUse | ContentToolResult | ContentThinking | ContentRedactedThinking | ContentServerToolUse | ContentWebSearchToolResult | AnthropicSearchResultBlockParam | ContentCompaction | MessagesAdvisorToolResultBlock | MessagesToolAdditionBlock | MessagesToolRemovalBlock | MessagesShellToolResultBlock | MessagesBashToolResultBlock | ORAnthropicToolSearchResultParam>;
|
|
99
|
+
export type MessagesMessageParamContentUnion4 = AnthropicTextBlockParam | AnthropicImageBlockParam | AnthropicDocumentBlockParam | ContentToolUse | ContentToolResult | ContentThinking | ContentRedactedThinking | ContentServerToolUse | ContentWebSearchToolResult | AnthropicSearchResultBlockParam | ContentCompaction | MessagesAdvisorToolResultBlock | MessagesToolAdditionBlock | MessagesToolRemovalBlock | MessagesShellToolResultBlock | MessagesBashToolResultBlock | ORAnthropicToolSearchResultParam | MessagesToolSearchToolResultBlock;
|
|
100
|
+
export type MessagesMessageParamContentUnion5 = string | Array<AnthropicTextBlockParam | AnthropicImageBlockParam | AnthropicDocumentBlockParam | ContentToolUse | ContentToolResult | ContentThinking | ContentRedactedThinking | ContentServerToolUse | ContentWebSearchToolResult | AnthropicSearchResultBlockParam | ContentCompaction | MessagesAdvisorToolResultBlock | MessagesToolAdditionBlock | MessagesToolRemovalBlock | MessagesShellToolResultBlock | MessagesBashToolResultBlock | ORAnthropicToolSearchResultParam | MessagesToolSearchToolResultBlock>;
|
|
100
101
|
export declare const MessagesMessageParamRole: {
|
|
101
102
|
readonly User: "user";
|
|
102
103
|
readonly Assistant: "assistant";
|
|
@@ -108,7 +109,7 @@ export type MessagesMessageParamRole = OpenEnum<typeof MessagesMessageParamRole>
|
|
|
108
109
|
*/
|
|
109
110
|
export type MessagesMessageParam = {
|
|
110
111
|
clearAt?: AnthropicSystemClearAt | null | undefined;
|
|
111
|
-
content: string | Array<AnthropicTextBlockParam | AnthropicImageBlockParam | AnthropicDocumentBlockParam | ContentToolUse | ContentToolResult | ContentThinking | ContentRedactedThinking | ContentServerToolUse | ContentWebSearchToolResult | AnthropicSearchResultBlockParam | ContentCompaction | MessagesAdvisorToolResultBlock | MessagesToolAdditionBlock | MessagesToolRemovalBlock | MessagesShellToolResultBlock | MessagesBashToolResultBlock | ORAnthropicToolSearchResultParam>;
|
|
112
|
+
content: string | Array<AnthropicTextBlockParam | AnthropicImageBlockParam | AnthropicDocumentBlockParam | ContentToolUse | ContentToolResult | ContentThinking | ContentRedactedThinking | ContentServerToolUse | ContentWebSearchToolResult | AnthropicSearchResultBlockParam | ContentCompaction | MessagesAdvisorToolResultBlock | MessagesToolAdditionBlock | MessagesToolRemovalBlock | MessagesShellToolResultBlock | MessagesBashToolResultBlock | ORAnthropicToolSearchResultParam | MessagesToolSearchToolResultBlock>;
|
|
112
113
|
outputConfig?: AnthropicMessageOutputConfig | null | undefined;
|
|
113
114
|
role: MessagesMessageParamRole;
|
|
114
115
|
};
|
|
@@ -218,12 +219,12 @@ export type ContentToolUse$Outbound = {
|
|
|
218
219
|
export declare const ContentToolUse$outboundSchema: z.ZodType<ContentToolUse$Outbound, ContentToolUse>;
|
|
219
220
|
export declare function contentToolUseToJSON(contentToolUse: ContentToolUse): string;
|
|
220
221
|
/** @internal */
|
|
221
|
-
export type MessagesMessageParamContentUnion4$Outbound = AnthropicTextBlockParam$Outbound | AnthropicImageBlockParam$Outbound | AnthropicDocumentBlockParam$Outbound | ContentToolUse$Outbound | ContentToolResult$Outbound | ContentThinking$Outbound | ContentRedactedThinking$Outbound | ContentServerToolUse$Outbound | ContentWebSearchToolResult$Outbound | AnthropicSearchResultBlockParam$Outbound | ContentCompaction$Outbound | MessagesAdvisorToolResultBlock$Outbound | MessagesToolAdditionBlock$Outbound | MessagesToolRemovalBlock$Outbound | MessagesShellToolResultBlock$Outbound | MessagesBashToolResultBlock$Outbound | ORAnthropicToolSearchResultParam$Outbound;
|
|
222
|
+
export type MessagesMessageParamContentUnion4$Outbound = AnthropicTextBlockParam$Outbound | AnthropicImageBlockParam$Outbound | AnthropicDocumentBlockParam$Outbound | ContentToolUse$Outbound | ContentToolResult$Outbound | ContentThinking$Outbound | ContentRedactedThinking$Outbound | ContentServerToolUse$Outbound | ContentWebSearchToolResult$Outbound | AnthropicSearchResultBlockParam$Outbound | ContentCompaction$Outbound | MessagesAdvisorToolResultBlock$Outbound | MessagesToolAdditionBlock$Outbound | MessagesToolRemovalBlock$Outbound | MessagesShellToolResultBlock$Outbound | MessagesBashToolResultBlock$Outbound | ORAnthropicToolSearchResultParam$Outbound | MessagesToolSearchToolResultBlock$Outbound;
|
|
222
223
|
/** @internal */
|
|
223
224
|
export declare const MessagesMessageParamContentUnion4$outboundSchema: z.ZodType<MessagesMessageParamContentUnion4$Outbound, MessagesMessageParamContentUnion4>;
|
|
224
225
|
export declare function messagesMessageParamContentUnion4ToJSON(messagesMessageParamContentUnion4: MessagesMessageParamContentUnion4): string;
|
|
225
226
|
/** @internal */
|
|
226
|
-
export type MessagesMessageParamContentUnion5$Outbound = string | Array<AnthropicTextBlockParam$Outbound | AnthropicImageBlockParam$Outbound | AnthropicDocumentBlockParam$Outbound | ContentToolUse$Outbound | ContentToolResult$Outbound | ContentThinking$Outbound | ContentRedactedThinking$Outbound | ContentServerToolUse$Outbound | ContentWebSearchToolResult$Outbound | AnthropicSearchResultBlockParam$Outbound | ContentCompaction$Outbound | MessagesAdvisorToolResultBlock$Outbound | MessagesToolAdditionBlock$Outbound | MessagesToolRemovalBlock$Outbound | MessagesShellToolResultBlock$Outbound | MessagesBashToolResultBlock$Outbound | ORAnthropicToolSearchResultParam$Outbound>;
|
|
227
|
+
export type MessagesMessageParamContentUnion5$Outbound = string | Array<AnthropicTextBlockParam$Outbound | AnthropicImageBlockParam$Outbound | AnthropicDocumentBlockParam$Outbound | ContentToolUse$Outbound | ContentToolResult$Outbound | ContentThinking$Outbound | ContentRedactedThinking$Outbound | ContentServerToolUse$Outbound | ContentWebSearchToolResult$Outbound | AnthropicSearchResultBlockParam$Outbound | ContentCompaction$Outbound | MessagesAdvisorToolResultBlock$Outbound | MessagesToolAdditionBlock$Outbound | MessagesToolRemovalBlock$Outbound | MessagesShellToolResultBlock$Outbound | MessagesBashToolResultBlock$Outbound | ORAnthropicToolSearchResultParam$Outbound | MessagesToolSearchToolResultBlock$Outbound>;
|
|
227
228
|
/** @internal */
|
|
228
229
|
export declare const MessagesMessageParamContentUnion5$outboundSchema: z.ZodType<MessagesMessageParamContentUnion5$Outbound, MessagesMessageParamContentUnion5>;
|
|
229
230
|
export declare function messagesMessageParamContentUnion5ToJSON(messagesMessageParamContentUnion5: MessagesMessageParamContentUnion5): string;
|
|
@@ -232,7 +233,7 @@ export declare const MessagesMessageParamRole$outboundSchema: z.ZodType<string,
|
|
|
232
233
|
/** @internal */
|
|
233
234
|
export type MessagesMessageParam$Outbound = {
|
|
234
235
|
clear_at?: string | null | undefined;
|
|
235
|
-
content: string | Array<AnthropicTextBlockParam$Outbound | AnthropicImageBlockParam$Outbound | AnthropicDocumentBlockParam$Outbound | ContentToolUse$Outbound | ContentToolResult$Outbound | ContentThinking$Outbound | ContentRedactedThinking$Outbound | ContentServerToolUse$Outbound | ContentWebSearchToolResult$Outbound | AnthropicSearchResultBlockParam$Outbound | ContentCompaction$Outbound | MessagesAdvisorToolResultBlock$Outbound | MessagesToolAdditionBlock$Outbound | MessagesToolRemovalBlock$Outbound | MessagesShellToolResultBlock$Outbound | MessagesBashToolResultBlock$Outbound | ORAnthropicToolSearchResultParam$Outbound>;
|
|
236
|
+
content: string | Array<AnthropicTextBlockParam$Outbound | AnthropicImageBlockParam$Outbound | AnthropicDocumentBlockParam$Outbound | ContentToolUse$Outbound | ContentToolResult$Outbound | ContentThinking$Outbound | ContentRedactedThinking$Outbound | ContentServerToolUse$Outbound | ContentWebSearchToolResult$Outbound | AnthropicSearchResultBlockParam$Outbound | ContentCompaction$Outbound | MessagesAdvisorToolResultBlock$Outbound | MessagesToolAdditionBlock$Outbound | MessagesToolRemovalBlock$Outbound | MessagesShellToolResultBlock$Outbound | MessagesBashToolResultBlock$Outbound | ORAnthropicToolSearchResultParam$Outbound | MessagesToolSearchToolResultBlock$Outbound>;
|
|
236
237
|
output_config?: AnthropicMessageOutputConfig$Outbound | null | undefined;
|
|
237
238
|
role: string;
|
|
238
239
|
};
|
|
@@ -17,6 +17,7 @@ import { MessagesBashToolResultBlock$outboundSchema, } from "./messagesbashtoolr
|
|
|
17
17
|
import { MessagesShellToolResultBlock$outboundSchema, } from "./messagesshelltoolresultblock.js";
|
|
18
18
|
import { MessagesToolAdditionBlock$outboundSchema, } from "./messagestooladditionblock.js";
|
|
19
19
|
import { MessagesToolRemovalBlock$outboundSchema, } from "./messagestoolremovalblock.js";
|
|
20
|
+
import { MessagesToolSearchToolResultBlock$outboundSchema, } from "./messagestoolsearchtoolresultblock.js";
|
|
20
21
|
import { ORAnthropicToolSearchResultParam$outboundSchema, } from "./oranthropictoolsearchresultparam.js";
|
|
21
22
|
export const MessagesMessageParamErrorCode = {
|
|
22
23
|
InvalidToolInput: "invalid_tool_input",
|
|
@@ -220,6 +221,7 @@ export const MessagesMessageParamContentUnion4$outboundSchema = z.union([
|
|
|
220
221
|
MessagesShellToolResultBlock$outboundSchema,
|
|
221
222
|
MessagesBashToolResultBlock$outboundSchema,
|
|
222
223
|
ORAnthropicToolSearchResultParam$outboundSchema,
|
|
224
|
+
MessagesToolSearchToolResultBlock$outboundSchema,
|
|
223
225
|
]);
|
|
224
226
|
export function messagesMessageParamContentUnion4ToJSON(messagesMessageParamContentUnion4) {
|
|
225
227
|
return JSON.stringify(MessagesMessageParamContentUnion4$outboundSchema.parse(messagesMessageParamContentUnion4));
|
|
@@ -245,6 +247,7 @@ export const MessagesMessageParamContentUnion5$outboundSchema = z.union([
|
|
|
245
247
|
MessagesShellToolResultBlock$outboundSchema,
|
|
246
248
|
MessagesBashToolResultBlock$outboundSchema,
|
|
247
249
|
ORAnthropicToolSearchResultParam$outboundSchema,
|
|
250
|
+
MessagesToolSearchToolResultBlock$outboundSchema,
|
|
248
251
|
])),
|
|
249
252
|
]);
|
|
250
253
|
export function messagesMessageParamContentUnion5ToJSON(messagesMessageParamContentUnion5) {
|
|
@@ -275,6 +278,7 @@ export const MessagesMessageParam$outboundSchema = z.object({
|
|
|
275
278
|
MessagesShellToolResultBlock$outboundSchema,
|
|
276
279
|
MessagesBashToolResultBlock$outboundSchema,
|
|
277
280
|
ORAnthropicToolSearchResultParam$outboundSchema,
|
|
281
|
+
MessagesToolSearchToolResultBlock$outboundSchema,
|
|
278
282
|
])),
|
|
279
283
|
]),
|
|
280
284
|
outputConfig: z.nullable(AnthropicMessageOutputConfig$outboundSchema)
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
|
+
import { ClosedEnum } from "../types/enums.js";
|
|
3
|
+
export declare const MessagesToolSearchToolReferenceType: {
|
|
4
|
+
readonly ToolReference: "tool_reference";
|
|
5
|
+
};
|
|
6
|
+
export type MessagesToolSearchToolReferenceType = ClosedEnum<typeof MessagesToolSearchToolReferenceType>;
|
|
7
|
+
/**
|
|
8
|
+
* The name of one tool a tool search found.
|
|
9
|
+
*/
|
|
10
|
+
export type MessagesToolSearchToolReference = {
|
|
11
|
+
toolName: string;
|
|
12
|
+
type: MessagesToolSearchToolReferenceType;
|
|
13
|
+
};
|
|
14
|
+
/** @internal */
|
|
15
|
+
export declare const MessagesToolSearchToolReferenceType$outboundSchema: z.ZodEnum<typeof MessagesToolSearchToolReferenceType>;
|
|
16
|
+
/** @internal */
|
|
17
|
+
export type MessagesToolSearchToolReference$Outbound = {
|
|
18
|
+
tool_name: string;
|
|
19
|
+
type: string;
|
|
20
|
+
};
|
|
21
|
+
/** @internal */
|
|
22
|
+
export declare const MessagesToolSearchToolReference$outboundSchema: z.ZodType<MessagesToolSearchToolReference$Outbound, MessagesToolSearchToolReference>;
|
|
23
|
+
export declare function messagesToolSearchToolReferenceToJSON(messagesToolSearchToolReference: MessagesToolSearchToolReference): string;
|
|
24
|
+
//# sourceMappingURL=messagestoolsearchtoolreference.d.ts.map
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
import * as z from "zod/v4";
|
|
5
|
+
import { remap as remap$ } from "../lib/primitives.js";
|
|
6
|
+
export const MessagesToolSearchToolReferenceType = {
|
|
7
|
+
ToolReference: "tool_reference",
|
|
8
|
+
};
|
|
9
|
+
/** @internal */
|
|
10
|
+
export const MessagesToolSearchToolReferenceType$outboundSchema = z.enum(MessagesToolSearchToolReferenceType);
|
|
11
|
+
/** @internal */
|
|
12
|
+
export const MessagesToolSearchToolReference$outboundSchema = z.object({
|
|
13
|
+
toolName: z.string(),
|
|
14
|
+
type: MessagesToolSearchToolReferenceType$outboundSchema,
|
|
15
|
+
}).transform((v) => {
|
|
16
|
+
return remap$(v, {
|
|
17
|
+
toolName: "tool_name",
|
|
18
|
+
});
|
|
19
|
+
});
|
|
20
|
+
export function messagesToolSearchToolReferenceToJSON(messagesToolSearchToolReference) {
|
|
21
|
+
return JSON.stringify(MessagesToolSearchToolReference$outboundSchema.parse(messagesToolSearchToolReference));
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=messagestoolsearchtoolreference.js.map
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
|
+
import { AnthropicCacheControlDirective, AnthropicCacheControlDirective$Outbound } from "./anthropiccachecontroldirective.js";
|
|
3
|
+
import { MessagesToolSearchToolResultContent, MessagesToolSearchToolResultContent$Outbound } from "./messagestoolsearchtoolresultcontent.js";
|
|
4
|
+
/**
|
|
5
|
+
* Tool search result from a prior assistant turn, returned beside the `server_tool_use` it answers.
|
|
6
|
+
*/
|
|
7
|
+
export type MessagesToolSearchToolResultBlock = {
|
|
8
|
+
/**
|
|
9
|
+
* Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. When set on an individual content block, it marks an explicit cache breakpoint; block-level markers also work on OpenAI models that support explicit prompt caching — OpenRouter converts them to the provider's native format.
|
|
10
|
+
*/
|
|
11
|
+
cacheControl?: AnthropicCacheControlDirective | undefined;
|
|
12
|
+
/**
|
|
13
|
+
* What a tool search returned: the tools it found, or an error.
|
|
14
|
+
*/
|
|
15
|
+
content: MessagesToolSearchToolResultContent;
|
|
16
|
+
toolUseId: string;
|
|
17
|
+
type: "tool_search_tool_result";
|
|
18
|
+
};
|
|
19
|
+
/** @internal */
|
|
20
|
+
export type MessagesToolSearchToolResultBlock$Outbound = {
|
|
21
|
+
cache_control?: AnthropicCacheControlDirective$Outbound | undefined;
|
|
22
|
+
content: MessagesToolSearchToolResultContent$Outbound;
|
|
23
|
+
tool_use_id: string;
|
|
24
|
+
type: "tool_search_tool_result";
|
|
25
|
+
};
|
|
26
|
+
/** @internal */
|
|
27
|
+
export declare const MessagesToolSearchToolResultBlock$outboundSchema: z.ZodType<MessagesToolSearchToolResultBlock$Outbound, MessagesToolSearchToolResultBlock>;
|
|
28
|
+
export declare function messagesToolSearchToolResultBlockToJSON(messagesToolSearchToolResultBlock: MessagesToolSearchToolResultBlock): string;
|
|
29
|
+
//# sourceMappingURL=messagestoolsearchtoolresultblock.d.ts.map
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
import * as z from "zod/v4";
|
|
5
|
+
import { remap as remap$ } from "../lib/primitives.js";
|
|
6
|
+
import { AnthropicCacheControlDirective$outboundSchema, } from "./anthropiccachecontroldirective.js";
|
|
7
|
+
import { MessagesToolSearchToolResultContent$outboundSchema, } from "./messagestoolsearchtoolresultcontent.js";
|
|
8
|
+
/** @internal */
|
|
9
|
+
export const MessagesToolSearchToolResultBlock$outboundSchema = z.object({
|
|
10
|
+
cacheControl: AnthropicCacheControlDirective$outboundSchema.optional(),
|
|
11
|
+
content: MessagesToolSearchToolResultContent$outboundSchema,
|
|
12
|
+
toolUseId: z.string(),
|
|
13
|
+
type: z.literal("tool_search_tool_result"),
|
|
14
|
+
}).transform((v) => {
|
|
15
|
+
return remap$(v, {
|
|
16
|
+
cacheControl: "cache_control",
|
|
17
|
+
toolUseId: "tool_use_id",
|
|
18
|
+
});
|
|
19
|
+
});
|
|
20
|
+
export function messagesToolSearchToolResultBlockToJSON(messagesToolSearchToolResultBlock) {
|
|
21
|
+
return JSON.stringify(MessagesToolSearchToolResultBlock$outboundSchema.parse(messagesToolSearchToolResultBlock));
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=messagestoolsearchtoolresultblock.js.map
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
|
+
import { MessagesToolSearchToolResultError, MessagesToolSearchToolResultError$Outbound } from "./messagestoolsearchtoolresulterror.js";
|
|
3
|
+
import { MessagesToolSearchToolSearchResult, MessagesToolSearchToolSearchResult$Outbound } from "./messagestoolsearchtoolsearchresult.js";
|
|
4
|
+
/**
|
|
5
|
+
* What a tool search returned: the tools it found, or an error.
|
|
6
|
+
*/
|
|
7
|
+
export type MessagesToolSearchToolResultContent = MessagesToolSearchToolResultError | MessagesToolSearchToolSearchResult;
|
|
8
|
+
/** @internal */
|
|
9
|
+
export type MessagesToolSearchToolResultContent$Outbound = MessagesToolSearchToolResultError$Outbound | MessagesToolSearchToolSearchResult$Outbound;
|
|
10
|
+
/** @internal */
|
|
11
|
+
export declare const MessagesToolSearchToolResultContent$outboundSchema: z.ZodType<MessagesToolSearchToolResultContent$Outbound, MessagesToolSearchToolResultContent>;
|
|
12
|
+
export declare function messagesToolSearchToolResultContentToJSON(messagesToolSearchToolResultContent: MessagesToolSearchToolResultContent): string;
|
|
13
|
+
//# sourceMappingURL=messagestoolsearchtoolresultcontent.d.ts.map
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
import * as z from "zod/v4";
|
|
5
|
+
import { MessagesToolSearchToolResultError$outboundSchema, } from "./messagestoolsearchtoolresulterror.js";
|
|
6
|
+
import { MessagesToolSearchToolSearchResult$outboundSchema, } from "./messagestoolsearchtoolsearchresult.js";
|
|
7
|
+
/** @internal */
|
|
8
|
+
export const MessagesToolSearchToolResultContent$outboundSchema = z.union([
|
|
9
|
+
MessagesToolSearchToolResultError$outboundSchema,
|
|
10
|
+
MessagesToolSearchToolSearchResult$outboundSchema,
|
|
11
|
+
]);
|
|
12
|
+
export function messagesToolSearchToolResultContentToJSON(messagesToolSearchToolResultContent) {
|
|
13
|
+
return JSON.stringify(MessagesToolSearchToolResultContent$outboundSchema.parse(messagesToolSearchToolResultContent));
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=messagestoolsearchtoolresultcontent.js.map
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
|
+
import { MessagesToolSearchToolResultErrorCode } from "./messagestoolsearchtoolresulterrorcode.js";
|
|
3
|
+
/**
|
|
4
|
+
* A tool search that returned an error in place of tools.
|
|
5
|
+
*/
|
|
6
|
+
export type MessagesToolSearchToolResultError = {
|
|
7
|
+
/**
|
|
8
|
+
* Why a tool search returned no result.
|
|
9
|
+
*/
|
|
10
|
+
errorCode: MessagesToolSearchToolResultErrorCode;
|
|
11
|
+
errorMessage?: string | null | undefined;
|
|
12
|
+
type: "tool_search_tool_result_error";
|
|
13
|
+
};
|
|
14
|
+
/** @internal */
|
|
15
|
+
export type MessagesToolSearchToolResultError$Outbound = {
|
|
16
|
+
error_code: string;
|
|
17
|
+
error_message?: string | null | undefined;
|
|
18
|
+
type: "tool_search_tool_result_error";
|
|
19
|
+
};
|
|
20
|
+
/** @internal */
|
|
21
|
+
export declare const MessagesToolSearchToolResultError$outboundSchema: z.ZodType<MessagesToolSearchToolResultError$Outbound, MessagesToolSearchToolResultError>;
|
|
22
|
+
export declare function messagesToolSearchToolResultErrorToJSON(messagesToolSearchToolResultError: MessagesToolSearchToolResultError): string;
|
|
23
|
+
//# sourceMappingURL=messagestoolsearchtoolresulterror.d.ts.map
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
import * as z from "zod/v4";
|
|
5
|
+
import { remap as remap$ } from "../lib/primitives.js";
|
|
6
|
+
import { MessagesToolSearchToolResultErrorCode$outboundSchema, } from "./messagestoolsearchtoolresulterrorcode.js";
|
|
7
|
+
/** @internal */
|
|
8
|
+
export const MessagesToolSearchToolResultError$outboundSchema = z.object({
|
|
9
|
+
errorCode: MessagesToolSearchToolResultErrorCode$outboundSchema,
|
|
10
|
+
errorMessage: z.nullable(z.string()).optional(),
|
|
11
|
+
type: z.literal("tool_search_tool_result_error"),
|
|
12
|
+
}).transform((v) => {
|
|
13
|
+
return remap$(v, {
|
|
14
|
+
errorCode: "error_code",
|
|
15
|
+
errorMessage: "error_message",
|
|
16
|
+
});
|
|
17
|
+
});
|
|
18
|
+
export function messagesToolSearchToolResultErrorToJSON(messagesToolSearchToolResultError) {
|
|
19
|
+
return JSON.stringify(MessagesToolSearchToolResultError$outboundSchema.parse(messagesToolSearchToolResultError));
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=messagestoolsearchtoolresulterror.js.map
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
|
+
import { OpenEnum } from "../types/enums.js";
|
|
3
|
+
/**
|
|
4
|
+
* Why a tool search returned no result.
|
|
5
|
+
*/
|
|
6
|
+
export declare const MessagesToolSearchToolResultErrorCode: {
|
|
7
|
+
readonly InvalidToolInput: "invalid_tool_input";
|
|
8
|
+
readonly Unavailable: "unavailable";
|
|
9
|
+
readonly TooManyRequests: "too_many_requests";
|
|
10
|
+
readonly ExecutionTimeExceeded: "execution_time_exceeded";
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* Why a tool search returned no result.
|
|
14
|
+
*/
|
|
15
|
+
export type MessagesToolSearchToolResultErrorCode = OpenEnum<typeof MessagesToolSearchToolResultErrorCode>;
|
|
16
|
+
/** @internal */
|
|
17
|
+
export declare const MessagesToolSearchToolResultErrorCode$outboundSchema: z.ZodType<string, MessagesToolSearchToolResultErrorCode>;
|
|
18
|
+
//# sourceMappingURL=messagestoolsearchtoolresulterrorcode.d.ts.map
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
import * as openEnums from "../types/enums.js";
|
|
5
|
+
/**
|
|
6
|
+
* Why a tool search returned no result.
|
|
7
|
+
*/
|
|
8
|
+
export const MessagesToolSearchToolResultErrorCode = {
|
|
9
|
+
InvalidToolInput: "invalid_tool_input",
|
|
10
|
+
Unavailable: "unavailable",
|
|
11
|
+
TooManyRequests: "too_many_requests",
|
|
12
|
+
ExecutionTimeExceeded: "execution_time_exceeded",
|
|
13
|
+
};
|
|
14
|
+
/** @internal */
|
|
15
|
+
export const MessagesToolSearchToolResultErrorCode$outboundSchema = openEnums.outboundSchema(MessagesToolSearchToolResultErrorCode);
|
|
16
|
+
//# sourceMappingURL=messagestoolsearchtoolresulterrorcode.js.map
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
|
+
import { MessagesToolSearchToolReference, MessagesToolSearchToolReference$Outbound } from "./messagestoolsearchtoolreference.js";
|
|
3
|
+
/**
|
|
4
|
+
* The tools a tool search found, by name, in match order.
|
|
5
|
+
*/
|
|
6
|
+
export type MessagesToolSearchToolSearchResult = {
|
|
7
|
+
toolReferences: Array<MessagesToolSearchToolReference>;
|
|
8
|
+
type: "tool_search_tool_search_result";
|
|
9
|
+
};
|
|
10
|
+
/** @internal */
|
|
11
|
+
export type MessagesToolSearchToolSearchResult$Outbound = {
|
|
12
|
+
tool_references: Array<MessagesToolSearchToolReference$Outbound>;
|
|
13
|
+
type: "tool_search_tool_search_result";
|
|
14
|
+
};
|
|
15
|
+
/** @internal */
|
|
16
|
+
export declare const MessagesToolSearchToolSearchResult$outboundSchema: z.ZodType<MessagesToolSearchToolSearchResult$Outbound, MessagesToolSearchToolSearchResult>;
|
|
17
|
+
export declare function messagesToolSearchToolSearchResultToJSON(messagesToolSearchToolSearchResult: MessagesToolSearchToolSearchResult): string;
|
|
18
|
+
//# sourceMappingURL=messagestoolsearchtoolsearchresult.d.ts.map
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
import * as z from "zod/v4";
|
|
5
|
+
import { remap as remap$ } from "../lib/primitives.js";
|
|
6
|
+
import { MessagesToolSearchToolReference$outboundSchema, } from "./messagestoolsearchtoolreference.js";
|
|
7
|
+
/** @internal */
|
|
8
|
+
export const MessagesToolSearchToolSearchResult$outboundSchema = z.object({
|
|
9
|
+
toolReferences: z.array(MessagesToolSearchToolReference$outboundSchema),
|
|
10
|
+
type: z.literal("tool_search_tool_search_result"),
|
|
11
|
+
}).transform((v) => {
|
|
12
|
+
return remap$(v, {
|
|
13
|
+
toolReferences: "tool_references",
|
|
14
|
+
});
|
|
15
|
+
});
|
|
16
|
+
export function messagesToolSearchToolSearchResultToJSON(messagesToolSearchToolSearchResult) {
|
|
17
|
+
return JSON.stringify(MessagesToolSearchToolSearchResult$outboundSchema.parse(messagesToolSearchToolSearchResult));
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=messagestoolsearchtoolsearchresult.js.map
|
|
@@ -27,7 +27,7 @@ export declare const KeepMembersEnum: {
|
|
|
27
27
|
};
|
|
28
28
|
export type KeepMembersEnum = OpenEnum<typeof KeepMembersEnum>;
|
|
29
29
|
/**
|
|
30
|
-
* Required. Whether to keep workspace members after deleting the mapping. `false` **removes** the members this mapping granted access to; `true` deletes the mapping while leaving membership intact as manually-managed. There is deliberately no default — omitting it returns `400` so the destructive path cannot be reached by accident. Mirrors the dashboard, whose `DeleteMappingSchema.keepMembers` is likewise required.
|
|
30
|
+
* Required. Whether to keep workspace members after deleting the mapping. `false` **removes** the members this mapping granted access to; `true` deletes the mapping while leaving membership intact as manually-managed. Exception: for an `admin` mapping, `keep_members=true` returns `403` and leaves the mapping in place — management keys cannot preserve members as workspace admins, so do not plan an admin mapping rotation around preserving members through this endpoint (use the dashboard instead). There is deliberately no default — omitting it returns `400` so the destructive path cannot be reached by accident. Mirrors the dashboard, whose `DeleteMappingSchema.keepMembers` is likewise required.
|
|
31
31
|
*/
|
|
32
32
|
export type KeepMembers = KeepMembersEnum | boolean;
|
|
33
33
|
export type DeleteScimGroupMappingRequest = {
|
|
@@ -52,7 +52,7 @@ export type DeleteScimGroupMappingRequest = {
|
|
|
52
52
|
appCategories?: string | undefined;
|
|
53
53
|
id: string;
|
|
54
54
|
/**
|
|
55
|
-
* Required. Whether to keep workspace members after deleting the mapping. `false` **removes** the members this mapping granted access to; `true` deletes the mapping while leaving membership intact as manually-managed. There is deliberately no default — omitting it returns `400` so the destructive path cannot be reached by accident. Mirrors the dashboard, whose `DeleteMappingSchema.keepMembers` is likewise required.
|
|
55
|
+
* Required. Whether to keep workspace members after deleting the mapping. `false` **removes** the members this mapping granted access to; `true` deletes the mapping while leaving membership intact as manually-managed. Exception: for an `admin` mapping, `keep_members=true` returns `403` and leaves the mapping in place — management keys cannot preserve members as workspace admins, so do not plan an admin mapping rotation around preserving members through this endpoint (use the dashboard instead). There is deliberately no default — omitting it returns `400` so the destructive path cannot be reached by accident. Mirrors the dashboard, whose `DeleteMappingSchema.keepMembers` is likewise required.
|
|
56
56
|
*/
|
|
57
57
|
keepMembers: KeepMembersEnum | boolean;
|
|
58
58
|
};
|
|
@@ -111,6 +111,7 @@ export declare const Provider: {
|
|
|
111
111
|
readonly Parallel: "parallel";
|
|
112
112
|
readonly Parasail: "parasail";
|
|
113
113
|
readonly ParetoAlpha: "pareto-alpha";
|
|
114
|
+
readonly ParetoInference: "pareto-inference";
|
|
114
115
|
readonly ParticleAi: "particle-ai";
|
|
115
116
|
readonly PearlResearch: "pearl-research";
|
|
116
117
|
readonly Perceptron: "perceptron";
|
|
@@ -84,6 +84,7 @@ export declare const ProviderName: {
|
|
|
84
84
|
readonly Parallel: "Parallel";
|
|
85
85
|
readonly Parasail: "Parasail";
|
|
86
86
|
readonly ParetoAlpha: "ParetoAlpha";
|
|
87
|
+
readonly ParetoInference: "Pareto Inference";
|
|
87
88
|
readonly ParticleAI: "Particle AI";
|
|
88
89
|
readonly PearlResearch: "Pearl Research";
|
|
89
90
|
readonly Poolside: "Poolside";
|
|
@@ -318,6 +318,9 @@ export type ProviderOptions = {
|
|
|
318
318
|
paretoAlpha?: {
|
|
319
319
|
[k: string]: any;
|
|
320
320
|
} | undefined;
|
|
321
|
+
paretoInference?: {
|
|
322
|
+
[k: string]: any;
|
|
323
|
+
} | undefined;
|
|
321
324
|
particleAi?: {
|
|
322
325
|
[k: string]: any;
|
|
323
326
|
} | undefined;
|
|
@@ -792,6 +795,9 @@ export type ProviderOptions$Outbound = {
|
|
|
792
795
|
"pareto-alpha"?: {
|
|
793
796
|
[k: string]: any;
|
|
794
797
|
} | undefined;
|
|
798
|
+
"pareto-inference"?: {
|
|
799
|
+
[k: string]: any;
|
|
800
|
+
} | undefined;
|
|
795
801
|
"particle-ai"?: {
|
|
796
802
|
[k: string]: any;
|
|
797
803
|
} | undefined;
|
|
@@ -110,6 +110,7 @@ export const ProviderOptions$outboundSchema = z.object({
|
|
|
110
110
|
parallel: z.record(z.string(), z.any()).optional(),
|
|
111
111
|
parasail: z.record(z.string(), z.any()).optional(),
|
|
112
112
|
paretoAlpha: z.record(z.string(), z.any()).optional(),
|
|
113
|
+
paretoInference: z.record(z.string(), z.any()).optional(),
|
|
113
114
|
particleAi: z.record(z.string(), z.any()).optional(),
|
|
114
115
|
pearlResearch: z.record(z.string(), z.any()).optional(),
|
|
115
116
|
perceptron: z.record(z.string(), z.any()).optional(),
|
|
@@ -188,6 +189,7 @@ export const ProviderOptions$outboundSchema = z.object({
|
|
|
188
189
|
nexAgi: "nex-agi",
|
|
189
190
|
openInference: "open-inference",
|
|
190
191
|
paretoAlpha: "pareto-alpha",
|
|
192
|
+
paretoInference: "pareto-inference",
|
|
191
193
|
particleAi: "particle-ai",
|
|
192
194
|
pearlResearch: "pearl-research",
|
|
193
195
|
sailResearch: "sail-research",
|
|
@@ -117,6 +117,7 @@ export declare const ProviderResponseProviderName: {
|
|
|
117
117
|
readonly Parallel: "Parallel";
|
|
118
118
|
readonly Parasail: "Parasail";
|
|
119
119
|
readonly ParetoAlpha: "ParetoAlpha";
|
|
120
|
+
readonly ParetoInference: "Pareto Inference";
|
|
120
121
|
readonly ParticleAI: "Particle AI";
|
|
121
122
|
readonly PearlResearch: "Pearl Research";
|
|
122
123
|
readonly Poolside: "Poolside";
|
|
@@ -120,6 +120,7 @@ export const ProviderResponseProviderName = {
|
|
|
120
120
|
Parallel: "Parallel",
|
|
121
121
|
Parasail: "Parasail",
|
|
122
122
|
ParetoAlpha: "ParetoAlpha",
|
|
123
|
+
ParetoInference: "Pareto Inference",
|
|
123
124
|
ParticleAI: "Particle AI",
|
|
124
125
|
PearlResearch: "Pearl Research",
|
|
125
126
|
Poolside: "Poolside",
|
|
@@ -366,6 +366,9 @@ export type VideoGenerationRequestOptions = {
|
|
|
366
366
|
paretoAlpha?: {
|
|
367
367
|
[k: string]: any;
|
|
368
368
|
} | undefined;
|
|
369
|
+
paretoInference?: {
|
|
370
|
+
[k: string]: any;
|
|
371
|
+
} | undefined;
|
|
369
372
|
particleAi?: {
|
|
370
373
|
[k: string]: any;
|
|
371
374
|
} | undefined;
|
|
@@ -974,6 +977,9 @@ export type VideoGenerationRequestOptions$Outbound = {
|
|
|
974
977
|
"pareto-alpha"?: {
|
|
975
978
|
[k: string]: any;
|
|
976
979
|
} | undefined;
|
|
980
|
+
"pareto-inference"?: {
|
|
981
|
+
[k: string]: any;
|
|
982
|
+
} | undefined;
|
|
977
983
|
"particle-ai"?: {
|
|
978
984
|
[k: string]: any;
|
|
979
985
|
} | undefined;
|
|
@@ -170,6 +170,7 @@ export const VideoGenerationRequestOptions$outboundSchema = z.object({
|
|
|
170
170
|
parallel: z.record(z.string(), z.any()).optional(),
|
|
171
171
|
parasail: z.record(z.string(), z.any()).optional(),
|
|
172
172
|
paretoAlpha: z.record(z.string(), z.any()).optional(),
|
|
173
|
+
paretoInference: z.record(z.string(), z.any()).optional(),
|
|
173
174
|
particleAi: z.record(z.string(), z.any()).optional(),
|
|
174
175
|
pearlResearch: z.record(z.string(), z.any()).optional(),
|
|
175
176
|
perceptron: z.record(z.string(), z.any()).optional(),
|
|
@@ -248,6 +249,7 @@ export const VideoGenerationRequestOptions$outboundSchema = z.object({
|
|
|
248
249
|
nexAgi: "nex-agi",
|
|
249
250
|
openInference: "open-inference",
|
|
250
251
|
paretoAlpha: "pareto-alpha",
|
|
252
|
+
paretoInference: "pareto-inference",
|
|
251
253
|
particleAi: "particle-ai",
|
|
252
254
|
pearlResearch: "pearl-research",
|
|
253
255
|
sailResearch: "sail-research",
|
package/esm/sdk/scim.d.ts
CHANGED
|
@@ -16,16 +16,14 @@ export declare class Scim extends ClientSDK {
|
|
|
16
16
|
* Create a SCIM group mapping
|
|
17
17
|
*
|
|
18
18
|
* @remarks
|
|
19
|
-
* Create a SCIM group-to-workspace role mapping.
|
|
20
|
-
*
|
|
21
|
-
* @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
19
|
+
* Create a SCIM group-to-workspace role mapping. Creating a mapping that already exists with the same role succeeds and re-applies the mapping to the group members. Requesting a different role for an existing mapping returns 409. Assigning the `admin` role is dashboard-only and returns 403 for management keys. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
22
20
|
*/
|
|
23
21
|
create(request: operations.CreateScimGroupMappingRequest, options?: RequestOptions): Promise<models.CreateScimGroupMappingResponse>;
|
|
24
22
|
/**
|
|
25
23
|
* Delete a SCIM group mapping
|
|
26
24
|
*
|
|
27
25
|
* @remarks
|
|
28
|
-
* Delete a SCIM group-to-workspace mapping. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
26
|
+
* Delete a SCIM group-to-workspace mapping. For an `admin` mapping, `keep_members=true` returns `403` and leaves the mapping in place — preserving members as workspace admins is dashboard-only. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
29
27
|
*/
|
|
30
28
|
delete(request: operations.DeleteScimGroupMappingRequest, options?: RequestOptions): Promise<models.DeleteScimGroupMappingResponse>;
|
|
31
29
|
/**
|
|
@@ -39,7 +37,7 @@ export declare class Scim extends ClientSDK {
|
|
|
39
37
|
* Update a SCIM group mapping
|
|
40
38
|
*
|
|
41
39
|
* @remarks
|
|
42
|
-
* Update a SCIM group mapping role. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
40
|
+
* Update a SCIM group mapping role. Assigning the `admin` role is dashboard-only and returns 403 for management keys. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
43
41
|
*/
|
|
44
42
|
update(request: operations.UpdateScimGroupMappingRequest, options?: RequestOptions): Promise<models.UpdateScimGroupMappingResponse>;
|
|
45
43
|
/**
|
package/esm/sdk/scim.js
CHANGED
|
@@ -26,9 +26,7 @@ export class Scim extends ClientSDK {
|
|
|
26
26
|
* Create a SCIM group mapping
|
|
27
27
|
*
|
|
28
28
|
* @remarks
|
|
29
|
-
* Create a SCIM group-to-workspace role mapping.
|
|
30
|
-
*
|
|
31
|
-
* @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
29
|
+
* Create a SCIM group-to-workspace role mapping. Creating a mapping that already exists with the same role succeeds and re-applies the mapping to the group members. Requesting a different role for an existing mapping returns 409. Assigning the `admin` role is dashboard-only and returns 403 for management keys. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
32
30
|
*/
|
|
33
31
|
async create(request, options) {
|
|
34
32
|
return unwrapAsync(scimCreate(this, request, options));
|
|
@@ -37,7 +35,7 @@ export class Scim extends ClientSDK {
|
|
|
37
35
|
* Delete a SCIM group mapping
|
|
38
36
|
*
|
|
39
37
|
* @remarks
|
|
40
|
-
* Delete a SCIM group-to-workspace mapping. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
38
|
+
* Delete a SCIM group-to-workspace mapping. For an `admin` mapping, `keep_members=true` returns `403` and leaves the mapping in place — preserving members as workspace admins is dashboard-only. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
41
39
|
*/
|
|
42
40
|
async delete(request, options) {
|
|
43
41
|
return unwrapAsync(scimDelete(this, request, options));
|
|
@@ -55,7 +53,7 @@ export class Scim extends ClientSDK {
|
|
|
55
53
|
* Update a SCIM group mapping
|
|
56
54
|
*
|
|
57
55
|
* @remarks
|
|
58
|
-
* Update a SCIM group mapping role. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
56
|
+
* Update a SCIM group mapping role. Assigning the `admin` role is dashboard-only and returns 403 for management keys. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
59
57
|
*/
|
|
60
58
|
async update(request, options) {
|
|
61
59
|
return unwrapAsync(scimUpdate(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.129",
|
|
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": "node --max-old-space-size=8192 ./node_modules/typescript/bin/tsc && node scripts/unbarrel-imports.js",
|
|
75
75
|
"prepublishOnly": "npm run build",
|
|
76
|
-
"
|
|
76
|
+
"prepare": "npm run build",
|
|
77
|
+
"test": "vitest --run --project unit",
|
|
78
|
+
"test:transit": "exit 0",
|
|
77
79
|
"typecheck:transit": "exit 0",
|
|
78
|
-
"postinstall": "node scripts/check-types.js || true",
|
|
79
80
|
"test:e2e": "vitest --run --project e2e",
|
|
80
|
-
"test:transit": "exit 0",
|
|
81
81
|
"test:watch": "vitest --watch --project unit",
|
|
82
|
+
"typecheck": "tsc --noEmit",
|
|
82
83
|
"compile": "node --max-old-space-size=8192 ./node_modules/typescript/bin/tsc && node scripts/unbarrel-imports.js",
|
|
83
|
-
"
|
|
84
|
-
"test": "vitest --run --project unit"
|
|
84
|
+
"postinstall": "node scripts/check-types.js || true"
|
|
85
85
|
},
|
|
86
86
|
"peerDependencies": {
|
|
87
87
|
|