import * as z from "zod/v4"; import { OpenEnum } from "../types/enums.js"; import { Result as SafeParseResult } from "../types/fp.js"; import { SDKValidationError } from "./errors/sdkvalidationerror.js"; import { ServerToolExecutedBy } from "./servertoolexecutedby.js"; import { ServerToolPrice } from "./servertoolprice.js"; /** * Whether the engine needs the caller's own key, saved in plugin settings: `required` (OpenRouter holds none), `optional` (OpenRouter's key is used unless the caller saved one), or `none` */ export declare const BYOK: { readonly Required: "required"; readonly Optional: "optional"; readonly None: "none"; }; /** * Whether the engine needs the caller's own key, saved in plugin settings: `required` (OpenRouter holds none), `optional` (OpenRouter's key is used unless the caller saved one), or `none` */ export type BYOK = OpenEnum; export declare const ServerToolEngineDataRegion: { readonly Global: "global"; readonly Europe: "europe"; readonly Us: "us"; }; export type ServerToolEngineDataRegion = OpenEnum; /** * Who bills the engine's calls beyond the model's tokens: `openrouter` (the `pricing` rows, from the caller's credits), `provider` (a per-call tool fee from the model's provider on the inference call, at its own rates), `byok` (the engine's vendor, against the caller's own key), or `none` (no charge) */ export declare const PricingSource: { readonly Openrouter: "openrouter"; readonly Provider: "provider"; readonly BYOK: "byok"; readonly None: "none"; }; /** * Who bills the engine's calls beyond the model's tokens: `openrouter` (the `pricing` rows, from the caller's credits), `provider` (a per-call tool fee from the model's provider on the inference call, at its own rates), `byok` (the engine's vendor, against the caller's own key), or `none` (no charge) */ export type PricingSource = OpenEnum; export type ServerToolEngine = { /** * Whether the engine needs the caller's own key, saved in plugin settings: `required` (OpenRouter holds none), `optional` (OpenRouter's key is used unless the caller saved one), or `none` */ byok: BYOK; /** * The data regions whose requests this engine serves without leaving the region. A request pinned to a region can only use engines that list it; `global` is always listed. */ dataRegions: Array; /** * The `parameters.mode` a request without one runs and bills as; null for engines without modes. The `pricing[]` row with this `mode` is what an unmoded request bills */ defaultMode: string | null; /** * Who runs the tool call: the model provider during inference (`provider`), OpenRouter (`openrouter`), or the caller's application after the call is returned (`client`). */ executedBy: ServerToolExecutedBy; /** * The `parameters.engine` value that selects this engine; null for the single engine of a tool without an engine parameter */ id: string | null; name: string; /** * The rows OpenRouter bills; non-empty exactly when `pricing_source` is `openrouter` */ pricing: Array; /** * Where the rates are documented when `pricing_source` is `provider` or `byok`; null otherwise */ pricingDocUrl: string | null; /** * Who bills the engine's calls beyond the model's tokens: `openrouter` (the `pricing` rows, from the caller's credits), `provider` (a per-call tool fee from the model's provider on the inference call, at its own rates), `byok` (the engine's vendor, against the caller's own key), or `none` (no charge) */ pricingSource: PricingSource; }; /** @internal */ export declare const BYOK$inboundSchema: z.ZodType; /** @internal */ export declare const ServerToolEngineDataRegion$inboundSchema: z.ZodType; /** @internal */ export declare const PricingSource$inboundSchema: z.ZodType; /** @internal */ export declare const ServerToolEngine$inboundSchema: z.ZodType; export declare function serverToolEngineFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=servertoolengine.d.ts.map