@lmnr-ai/lmnr 0.8.30 → 0.8.32

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.
Files changed (39) hide show
  1. package/dist/cli.cjs +20 -22
  2. package/dist/cli.cjs.map +1 -1
  3. package/dist/cli.d.cts +1 -1
  4. package/dist/cli.d.mts +1 -1
  5. package/dist/cli.mjs +7 -9
  6. package/dist/cli.mjs.map +1 -1
  7. package/dist/{consts-ivIFfgfN.mjs → consts-3AfXaMBI.mjs} +1 -1
  8. package/dist/{consts-ivIFfgfN.mjs.map → consts-3AfXaMBI.mjs.map} +1 -1
  9. package/dist/{consts-Cx9iKRmq.cjs → consts-DV6_Ea-8.cjs} +1 -1
  10. package/dist/{consts-Cx9iKRmq.cjs.map → consts-DV6_Ea-8.cjs.map} +1 -1
  11. package/dist/{dist-Cyli7uVF.cjs → dist-CDaxruok.cjs} +580 -12
  12. package/dist/dist-CDaxruok.cjs.map +1 -0
  13. package/dist/{dist-DMgpr2Zn.mjs → dist-DwtZd9Jy.mjs} +337 -5
  14. package/dist/dist-DwtZd9Jy.mjs.map +1 -0
  15. package/dist/{evaluations-DLNweSzE.d.cts → evaluations-8E6Oxgoq.d.cts} +18 -5
  16. package/dist/{evaluations-fF1Y_olL.d.mts → evaluations-HtzF0xSN.d.mts} +18 -5
  17. package/dist/{file-utils-CHgYB_Ei.mjs → file-utils-CjQ2Zw9n.mjs} +3 -3
  18. package/dist/{file-utils-CHgYB_Ei.mjs.map → file-utils-CjQ2Zw9n.mjs.map} +1 -1
  19. package/dist/{file-utils-Cysp1Ym1.cjs → file-utils-DWqUwg2p.cjs} +12 -12
  20. package/dist/{file-utils-Cysp1Ym1.cjs.map → file-utils-DWqUwg2p.cjs.map} +1 -1
  21. package/dist/index.cjs +555 -502
  22. package/dist/index.cjs.map +1 -1
  23. package/dist/index.d.cts +108 -33
  24. package/dist/index.d.mts +108 -33
  25. package/dist/index.mjs +343 -290
  26. package/dist/index.mjs.map +1 -1
  27. package/dist/opentelemetry-lib/instrumentation/temporal/workflow-interceptors.cjs +69 -69
  28. package/dist/opentelemetry-lib/instrumentation/temporal/workflow-interceptors.cjs.map +1 -1
  29. package/dist/opentelemetry-lib/instrumentation/temporal/workflow-interceptors.mjs +2 -2
  30. package/dist/opentelemetry-lib/instrumentation/temporal/workflow-interceptors.mjs.map +1 -1
  31. package/package.json +7 -7
  32. package/dist/dist-Cyli7uVF.cjs.map +0 -1
  33. package/dist/dist-DMgpr2Zn.mjs.map +0 -1
  34. package/dist/utils-Bdv7YZH7.mjs +0 -337
  35. package/dist/utils-Bdv7YZH7.mjs.map +0 -1
  36. package/dist/utils-C_Pf3r64.cjs +0 -561
  37. package/dist/utils-C_Pf3r64.cjs.map +0 -1
  38. /package/dist/{chunk-hT5z_Zn9.mjs → rolldown-runtime-2rV9d50f.mjs} +0 -0
  39. /package/dist/{chunk-BN4qSVkS.cjs → rolldown-runtime-CVvi-lCc.cjs} +0 -0
package/dist/index.d.cts CHANGED
@@ -1,15 +1,13 @@
1
- import { C as __exportAll, S as TracingLevel, _ as MaskInputOptions, a as HumanEvaluator, b as SpanType, c as InitializeOptions, d as LaminarClient, f as Dataset, g as LaminarSpanContext, h as Event, i as EvaluatorFunctionReturn, l as EvaluationDataset, m as EvaluationDatapointDatasetLink, o as evaluate, p as EvaluationDatapoint, r as EvaluatorFunction, s as StringUUID, t as Datapoint, u as LaminarDataset, v as PushDatapointsResponse, x as TraceType, y as SessionRecordingOptions } from "./evaluations-DLNweSzE.cjs";
1
+ import { C as __exportAll, S as TracingLevel, _ as MaskInputOptions, a as HumanEvaluator, b as SpanType, c as InitializeOptions, d as LaminarClient, f as Dataset, g as LaminarSpanContext, h as Event, i as EvaluatorFunctionReturn, l as EvaluationDataset, m as EvaluationDatapointDatasetLink, o as evaluate, p as EvaluationDatapoint, r as EvaluatorFunction, s as StringUUID, t as Datapoint, u as LaminarDataset, v as PushDatapointsResponse, x as TraceType, y as SessionRecordingOptions } from "./evaluations-8E6Oxgoq.cjs";
2
2
  import { ServerResponse } from "node:http";
3
3
  import { ReadableSpan, SpanExporter, SpanProcessor, TimedEvent } from "@opentelemetry/sdk-trace-base";
4
4
  import { AttributeValue, Attributes, Context, Exception, HrTime, Link, Span, Span as Span$1, SpanContext, SpanKind, SpanStatus, TimeInput, Tracer, TracerProvider } from "@opentelemetry/api";
5
- import * as _$pino from "pino";
6
5
  import { JSONSchema7, JSONSchema7 as JSONSchema7$1 } from "json-schema";
7
6
  import { InstrumentationScope } from "@opentelemetry/core";
8
7
  import * as z3 from "zod/v3";
9
8
  import * as z4 from "zod/v4";
10
9
  import { z } from "zod/v4";
11
10
  import { ServerResponse as ServerResponse$1 } from "http";
12
- import * as _$_opentelemetry_instrumentation0 from "@opentelemetry/instrumentation";
13
11
  import { Instrumentation } from "@opentelemetry/instrumentation";
14
12
 
15
13
  //#region src/decorators.d.ts
@@ -4058,7 +4056,7 @@ type VideoModelV3 = {
4058
4056
  }>;
4059
4057
  };
4060
4058
  //#endregion
4061
- //#region ../../node_modules/.pnpm/@ai-sdk+provider@2.0.0/node_modules/@ai-sdk/provider/dist/index.d.ts
4059
+ //#region ../../node_modules/.pnpm/@ai-sdk+provider@2.0.3/node_modules/@ai-sdk/provider/dist/index.d.ts
4062
4060
  type SharedV2Headers = Record<string, string>;
4063
4061
  /**
4064
4062
  A JSON value can be a string, number, boolean, object, array, or null.
@@ -4565,15 +4563,21 @@ type LanguageModelV2Text = {
4565
4563
  providerMetadata?: SharedV2ProviderMetadata;
4566
4564
  };
4567
4565
  /**
4568
- Tool calls that the model has generated.
4569
- */
4566
+ * Tool calls that the model has generated.
4567
+ */
4570
4568
  type LanguageModelV2ToolCall = {
4571
4569
  type: 'tool-call';
4570
+ /**
4571
+ * The identifier of the tool call. It must be unique across all tool calls.
4572
+ */
4572
4573
  toolCallId: string;
4574
+ /**
4575
+ * The name of the tool that should be called.
4576
+ */
4573
4577
  toolName: string;
4574
4578
  /**
4575
- Stringified JSON object with the tool call arguments. Must match the
4576
- parameters schema of the tool.
4579
+ * Stringified JSON object with the tool call arguments. Must match the
4580
+ * parameters schema of the tool.
4577
4581
  */
4578
4582
  input: string;
4579
4583
  /**
@@ -5459,7 +5463,7 @@ declare class Laminar {
5459
5463
  static wrapClaudeAgentQuery<T extends Function>(originalQuery: T): T;
5460
5464
  }
5461
5465
  //#endregion
5462
- //#region ../../node_modules/.pnpm/@ai-sdk+provider@4.0.0-canary.17/node_modules/@ai-sdk/provider/dist/index.d.ts
5466
+ //#region ../../node_modules/.pnpm/@ai-sdk+provider@4.0.0-canary.18/node_modules/@ai-sdk/provider/dist/index.d.ts
5463
5467
  /**
5464
5468
  * A mapping of provider names to provider-specific file identifiers.
5465
5469
  *
@@ -6781,7 +6785,7 @@ declare namespace StandardJSONSchemaV1 {
6781
6785
  type InferOutput<Schema extends StandardTypedV1> = StandardTypedV1.InferOutput<Schema>;
6782
6786
  }
6783
6787
  //#endregion
6784
- //#region ../../node_modules/.pnpm/@ai-sdk+provider-utils@4.0.27_zod@4.4.3/node_modules/@ai-sdk/provider-utils/dist/index.d.ts
6788
+ //#region ../../node_modules/.pnpm/@ai-sdk+provider-utils@4.0.29_zod@4.4.3/node_modules/@ai-sdk/provider-utils/dist/index.d.ts
6785
6789
  declare const symbol$10: unique symbol;
6786
6790
  declare class DownloadError extends AISDKError {
6787
6791
  private readonly [symbol$10];
@@ -7286,6 +7290,11 @@ type ToolApprovalRequest = {
7286
7290
  * ID of the tool call that the approval request is for.
7287
7291
  */
7288
7292
  toolCallId: string;
7293
+ /**
7294
+ * HMAC-SHA256 signature binding this approval to its tool call.
7295
+ * Present only when `experimental_toolApprovalSecret` is configured.
7296
+ */
7297
+ signature?: string;
7289
7298
  };
7290
7299
  /**
7291
7300
  * An assistant message. It can contain text, tool calls, or a combination of text and tool calls.
@@ -7689,10 +7698,10 @@ interface ToolCall<NAME extends string, INPUT> {
7689
7698
  */
7690
7699
  type ToolCallOptions = ToolExecutionOptions;
7691
7700
  //#endregion
7692
- //#region ../../node_modules/.pnpm/@ai-sdk+gateway@3.0.112_zod@4.4.3/node_modules/@ai-sdk/gateway/dist/index.d.ts
7693
- type GatewayModelId = 'alibaba/qwen-3-14b' | 'alibaba/qwen-3-235b' | 'alibaba/qwen-3-30b' | 'alibaba/qwen-3-32b' | 'alibaba/qwen-3.6-max-preview' | 'alibaba/qwen3-235b-a22b-thinking' | 'alibaba/qwen3-coder' | 'alibaba/qwen3-coder-30b-a3b' | 'alibaba/qwen3-coder-next' | 'alibaba/qwen3-coder-plus' | 'alibaba/qwen3-max' | 'alibaba/qwen3-max-preview' | 'alibaba/qwen3-max-thinking' | 'alibaba/qwen3-next-80b-a3b-instruct' | 'alibaba/qwen3-next-80b-a3b-thinking' | 'alibaba/qwen3-vl-235b-a22b-instruct' | 'alibaba/qwen3-vl-instruct' | 'alibaba/qwen3-vl-thinking' | 'alibaba/qwen3.5-flash' | 'alibaba/qwen3.5-plus' | 'alibaba/qwen3.6-27b' | 'alibaba/qwen3.6-plus' | 'amazon/nova-2-lite' | 'amazon/nova-lite' | 'amazon/nova-micro' | 'amazon/nova-pro' | 'anthropic/claude-3-haiku' | 'anthropic/claude-3.5-haiku' | 'anthropic/claude-3.7-sonnet' | 'anthropic/claude-haiku-4.5' | 'anthropic/claude-opus-4' | 'anthropic/claude-opus-4.1' | 'anthropic/claude-opus-4.5' | 'anthropic/claude-opus-4.6' | 'anthropic/claude-opus-4.7' | 'anthropic/claude-sonnet-4' | 'anthropic/claude-sonnet-4.5' | 'anthropic/claude-sonnet-4.6' | 'arcee-ai/trinity-large-preview' | 'arcee-ai/trinity-large-thinking' | 'arcee-ai/trinity-mini' | 'bytedance/seed-1.6' | 'bytedance/seed-1.8' | 'cohere/command-a' | 'deepseek/deepseek-r1' | 'deepseek/deepseek-v3' | 'deepseek/deepseek-v3.1' | 'deepseek/deepseek-v3.1-terminus' | 'deepseek/deepseek-v3.2' | 'deepseek/deepseek-v3.2-thinking' | 'deepseek/deepseek-v4-flash' | 'deepseek/deepseek-v4-pro' | 'google/gemini-2.0-flash' | 'google/gemini-2.0-flash-lite' | 'google/gemini-2.5-flash' | 'google/gemini-2.5-flash-image' | 'google/gemini-2.5-flash-lite' | 'google/gemini-2.5-pro' | 'google/gemini-3-flash' | 'google/gemini-3-pro-image' | 'google/gemini-3-pro-preview' | 'google/gemini-3.1-flash-image-preview' | 'google/gemini-3.1-flash-lite' | 'google/gemini-3.1-flash-lite-preview' | 'google/gemini-3.1-pro-preview' | 'google/gemma-4-26b-a4b-it' | 'google/gemma-4-31b-it' | 'inception/mercury-2' | 'inception/mercury-coder-small' | 'interfaze/interfaze-beta' | 'kwaipilot/kat-coder-pro-v1' | 'kwaipilot/kat-coder-pro-v2' | 'meituan/longcat-flash-chat' | 'meituan/longcat-flash-thinking-2601' | 'meta/llama-3.1-70b' | 'meta/llama-3.1-8b' | 'meta/llama-3.2-11b' | 'meta/llama-3.2-1b' | 'meta/llama-3.2-3b' | 'meta/llama-3.2-90b' | 'meta/llama-3.3-70b' | 'meta/llama-4-maverick' | 'meta/llama-4-scout' | 'minimax/minimax-m2' | 'minimax/minimax-m2.1' | 'minimax/minimax-m2.1-lightning' | 'minimax/minimax-m2.5' | 'minimax/minimax-m2.5-highspeed' | 'minimax/minimax-m2.7' | 'minimax/minimax-m2.7-highspeed' | 'mistral/codestral' | 'mistral/devstral-2' | 'mistral/devstral-small' | 'mistral/devstral-small-2' | 'mistral/magistral-medium' | 'mistral/magistral-small' | 'mistral/ministral-14b' | 'mistral/ministral-3b' | 'mistral/ministral-8b' | 'mistral/mistral-large-3' | 'mistral/mistral-medium' | 'mistral/mistral-nemo' | 'mistral/mistral-small' | 'mistral/pixtral-12b' | 'mistral/pixtral-large' | 'moonshotai/kimi-k2' | 'moonshotai/kimi-k2-thinking' | 'moonshotai/kimi-k2-thinking-turbo' | 'moonshotai/kimi-k2-turbo' | 'moonshotai/kimi-k2.5' | 'moonshotai/kimi-k2.6' | 'morph/morph-v3-fast' | 'morph/morph-v3-large' | 'nvidia/nemotron-3-nano-30b-a3b' | 'nvidia/nemotron-3-super-120b-a12b' | 'nvidia/nemotron-nano-12b-v2-vl' | 'nvidia/nemotron-nano-9b-v2' | 'openai/gpt-3.5-turbo' | 'openai/gpt-3.5-turbo-instruct' | 'openai/gpt-4-turbo' | 'openai/gpt-4.1' | 'openai/gpt-4.1-mini' | 'openai/gpt-4.1-nano' | 'openai/gpt-4o' | 'openai/gpt-4o-mini' | 'openai/gpt-4o-mini-search-preview' | 'openai/gpt-5' | 'openai/gpt-5-chat' | 'openai/gpt-5-codex' | 'openai/gpt-5-mini' | 'openai/gpt-5-nano' | 'openai/gpt-5-pro' | 'openai/gpt-5.1-codex' | 'openai/gpt-5.1-codex-max' | 'openai/gpt-5.1-codex-mini' | 'openai/gpt-5.1-instant' | 'openai/gpt-5.1-thinking' | 'openai/gpt-5.2' | 'openai/gpt-5.2-chat' | 'openai/gpt-5.2-codex' | 'openai/gpt-5.2-pro' | 'openai/gpt-5.3-chat' | 'openai/gpt-5.3-codex' | 'openai/gpt-5.4' | 'openai/gpt-5.4-mini' | 'openai/gpt-5.4-nano' | 'openai/gpt-5.4-pro' | 'openai/gpt-5.5' | 'openai/gpt-5.5-pro' | 'openai/gpt-oss-120b' | 'openai/gpt-oss-20b' | 'openai/gpt-oss-safeguard-20b' | 'openai/o1' | 'openai/o3' | 'openai/o3-deep-research' | 'openai/o3-mini' | 'openai/o3-pro' | 'openai/o4-mini' | 'perplexity/sonar' | 'perplexity/sonar-pro' | 'perplexity/sonar-reasoning-pro' | 'xai/grok-3' | 'xai/grok-3-fast' | 'xai/grok-3-mini' | 'xai/grok-3-mini-fast' | 'xai/grok-4' | 'xai/grok-4-fast-non-reasoning' | 'xai/grok-4-fast-reasoning' | 'xai/grok-4.1-fast-non-reasoning' | 'xai/grok-4.1-fast-reasoning' | 'xai/grok-4.20-multi-agent' | 'xai/grok-4.20-multi-agent-beta' | 'xai/grok-4.20-non-reasoning' | 'xai/grok-4.20-non-reasoning-beta' | 'xai/grok-4.20-reasoning' | 'xai/grok-4.20-reasoning-beta' | 'xai/grok-4.3' | 'xai/grok-code-fast-1' | 'xiaomi/mimo-v2-flash' | 'xiaomi/mimo-v2-pro' | 'xiaomi/mimo-v2.5' | 'xiaomi/mimo-v2.5-pro' | 'zai/glm-4.5' | 'zai/glm-4.5-air' | 'zai/glm-4.5v' | 'zai/glm-4.6' | 'zai/glm-4.6v' | 'zai/glm-4.6v-flash' | 'zai/glm-4.7' | 'zai/glm-4.7-flash' | 'zai/glm-4.7-flashx' | 'zai/glm-5' | 'zai/glm-5-turbo' | 'zai/glm-5.1' | 'zai/glm-5v-turbo' | (string & {});
7701
+ //#region ../../node_modules/.pnpm/@ai-sdk+gateway@3.0.131_zod@4.4.3/node_modules/@ai-sdk/gateway/dist/index.d.ts
7702
+ type GatewayModelId = 'alibaba/qwen-3-14b' | 'alibaba/qwen-3-235b' | 'alibaba/qwen-3-30b' | 'alibaba/qwen-3-32b' | 'alibaba/qwen-3.6-max-preview' | 'alibaba/qwen3-235b-a22b-thinking' | 'alibaba/qwen3-coder' | 'alibaba/qwen3-coder-30b-a3b' | 'alibaba/qwen3-coder-next' | 'alibaba/qwen3-coder-plus' | 'alibaba/qwen3-max' | 'alibaba/qwen3-max-preview' | 'alibaba/qwen3-max-thinking' | 'alibaba/qwen3-next-80b-a3b-instruct' | 'alibaba/qwen3-next-80b-a3b-thinking' | 'alibaba/qwen3-vl-235b-a22b-instruct' | 'alibaba/qwen3-vl-instruct' | 'alibaba/qwen3-vl-thinking' | 'alibaba/qwen3.5-flash' | 'alibaba/qwen3.5-plus' | 'alibaba/qwen3.6-27b' | 'alibaba/qwen3.6-plus' | 'alibaba/qwen3.7-max' | 'alibaba/qwen3.7-plus' | 'amazon/nova-2-lite' | 'amazon/nova-lite' | 'amazon/nova-micro' | 'amazon/nova-pro' | 'anthropic/claude-3-haiku' | 'anthropic/claude-3.5-haiku' | 'anthropic/claude-fable-5' | 'anthropic/claude-haiku-4.5' | 'anthropic/claude-opus-4' | 'anthropic/claude-opus-4.1' | 'anthropic/claude-opus-4.5' | 'anthropic/claude-opus-4.6' | 'anthropic/claude-opus-4.7' | 'anthropic/claude-opus-4.8' | 'anthropic/claude-sonnet-4' | 'anthropic/claude-sonnet-4.5' | 'anthropic/claude-sonnet-4.6' | 'arcee-ai/trinity-large-preview' | 'arcee-ai/trinity-large-thinking' | 'arcee-ai/trinity-mini' | 'bytedance/seed-1.6' | 'bytedance/seed-1.8' | 'cohere/command-a' | 'deepseek/deepseek-r1' | 'deepseek/deepseek-v3' | 'deepseek/deepseek-v3.1' | 'deepseek/deepseek-v3.1-terminus' | 'deepseek/deepseek-v3.2' | 'deepseek/deepseek-v3.2-thinking' | 'deepseek/deepseek-v4-flash' | 'deepseek/deepseek-v4-pro' | 'google/gemini-2.5-flash' | 'google/gemini-2.5-flash-image' | 'google/gemini-2.5-flash-lite' | 'google/gemini-2.5-pro' | 'google/gemini-3-flash' | 'google/gemini-3-pro-image' | 'google/gemini-3-pro-preview' | 'google/gemini-3.1-flash-image' | 'google/gemini-3.1-flash-image-preview' | 'google/gemini-3.1-flash-lite' | 'google/gemini-3.1-flash-lite-preview' | 'google/gemini-3.1-pro-preview' | 'google/gemini-3.5-flash' | 'google/gemma-4-26b-a4b-it' | 'google/gemma-4-31b-it' | 'inception/mercury-2' | 'inception/mercury-coder-small' | 'interfaze/interfaze-beta' | 'kwaipilot/kat-coder-pro-v1' | 'kwaipilot/kat-coder-pro-v2' | 'meituan/longcat-flash-chat' | 'meituan/longcat-flash-thinking-2601' | 'meta/llama-3.1-70b' | 'meta/llama-3.1-8b' | 'meta/llama-3.2-11b' | 'meta/llama-3.2-1b' | 'meta/llama-3.2-3b' | 'meta/llama-3.2-90b' | 'meta/llama-3.3-70b' | 'meta/llama-4-maverick' | 'meta/llama-4-scout' | 'minimax/minimax-m2' | 'minimax/minimax-m2.1' | 'minimax/minimax-m2.1-lightning' | 'minimax/minimax-m2.5' | 'minimax/minimax-m2.5-highspeed' | 'minimax/minimax-m2.7' | 'minimax/minimax-m2.7-highspeed' | 'minimax/minimax-m3' | 'mistral/codestral' | 'mistral/devstral-2' | 'mistral/devstral-small' | 'mistral/devstral-small-2' | 'mistral/magistral-medium' | 'mistral/magistral-small' | 'mistral/ministral-14b' | 'mistral/ministral-3b' | 'mistral/ministral-8b' | 'mistral/mistral-large-3' | 'mistral/mistral-medium' | 'mistral/mistral-medium-3.5' | 'mistral/mistral-nemo' | 'mistral/mistral-small' | 'mistral/pixtral-12b' | 'mistral/pixtral-large' | 'moonshotai/kimi-k2' | 'moonshotai/kimi-k2-thinking' | 'moonshotai/kimi-k2.5' | 'moonshotai/kimi-k2.6' | 'moonshotai/kimi-k2.7-code' | 'morph/morph-v3-fast' | 'morph/morph-v3-large' | 'nvidia/nemotron-3-nano-30b-a3b' | 'nvidia/nemotron-3-super-120b-a12b' | 'nvidia/nemotron-3-ultra-550b-a55b' | 'nvidia/nemotron-nano-12b-v2-vl' | 'nvidia/nemotron-nano-9b-v2' | 'openai/gpt-3.5-turbo' | 'openai/gpt-3.5-turbo-instruct' | 'openai/gpt-4-turbo' | 'openai/gpt-4.1' | 'openai/gpt-4.1-mini' | 'openai/gpt-4.1-nano' | 'openai/gpt-4o' | 'openai/gpt-4o-mini' | 'openai/gpt-4o-mini-search-preview' | 'openai/gpt-5' | 'openai/gpt-5-chat' | 'openai/gpt-5-codex' | 'openai/gpt-5-mini' | 'openai/gpt-5-nano' | 'openai/gpt-5-pro' | 'openai/gpt-5.1-codex' | 'openai/gpt-5.1-codex-max' | 'openai/gpt-5.1-codex-mini' | 'openai/gpt-5.1-instant' | 'openai/gpt-5.1-thinking' | 'openai/gpt-5.2' | 'openai/gpt-5.2-chat' | 'openai/gpt-5.2-codex' | 'openai/gpt-5.2-pro' | 'openai/gpt-5.3-chat' | 'openai/gpt-5.3-codex' | 'openai/gpt-5.4' | 'openai/gpt-5.4-mini' | 'openai/gpt-5.4-nano' | 'openai/gpt-5.4-pro' | 'openai/gpt-5.5' | 'openai/gpt-5.5-pro' | 'openai/gpt-oss-120b' | 'openai/gpt-oss-20b' | 'openai/gpt-oss-safeguard-20b' | 'openai/o1' | 'openai/o3' | 'openai/o3-deep-research' | 'openai/o3-mini' | 'openai/o3-pro' | 'openai/o4-mini' | 'perplexity/sonar' | 'perplexity/sonar-pro' | 'perplexity/sonar-reasoning-pro' | 'stepfun/step-3.5-flash' | 'stepfun/step-3.7-flash' | 'xai/grok-4.1-fast-non-reasoning' | 'xai/grok-4.1-fast-reasoning' | 'xai/grok-4.20-multi-agent' | 'xai/grok-4.20-multi-agent-beta' | 'xai/grok-4.20-non-reasoning' | 'xai/grok-4.20-non-reasoning-beta' | 'xai/grok-4.20-reasoning' | 'xai/grok-4.20-reasoning-beta' | 'xai/grok-4.3' | 'xai/grok-build-0.1' | 'xiaomi/mimo-v2-flash' | 'xiaomi/mimo-v2-pro' | 'xiaomi/mimo-v2.5' | 'xiaomi/mimo-v2.5-pro' | 'zai/glm-4.5' | 'zai/glm-4.5-air' | 'zai/glm-4.5v' | 'zai/glm-4.6' | 'zai/glm-4.6v' | 'zai/glm-4.6v-flash' | 'zai/glm-4.7' | 'zai/glm-4.7-flash' | 'zai/glm-4.7-flashx' | 'zai/glm-5' | 'zai/glm-5-turbo' | 'zai/glm-5.1' | 'zai/glm-5v-turbo' | (string & {});
7694
7703
  type GatewayRerankingModelId = 'cohere/rerank-v3.5' | 'cohere/rerank-v4-fast' | 'cohere/rerank-v4-pro' | 'voyage/rerank-2.5' | 'voyage/rerank-2.5-lite' | (string & {});
7695
- type GatewayVideoModelId = 'alibaba/wan-v2.5-t2v-preview' | 'alibaba/wan-v2.6-i2v' | 'alibaba/wan-v2.6-i2v-flash' | 'alibaba/wan-v2.6-r2v' | 'alibaba/wan-v2.6-r2v-flash' | 'alibaba/wan-v2.6-t2v' | 'bytedance/seedance-2.0' | 'bytedance/seedance-2.0-fast' | 'bytedance/seedance-v1.0-lite-i2v' | 'bytedance/seedance-v1.0-lite-t2v' | 'bytedance/seedance-v1.0-pro' | 'bytedance/seedance-v1.0-pro-fast' | 'bytedance/seedance-v1.5-pro' | 'google/veo-3.0-fast-generate-001' | 'google/veo-3.0-generate-001' | 'google/veo-3.1-fast-generate-001' | 'google/veo-3.1-generate-001' | 'klingai/kling-v2.5-turbo-i2v' | 'klingai/kling-v2.5-turbo-t2v' | 'klingai/kling-v2.6-i2v' | 'klingai/kling-v2.6-motion-control' | 'klingai/kling-v2.6-t2v' | 'klingai/kling-v3.0-i2v' | 'klingai/kling-v3.0-t2v' | 'xai/grok-imagine-video' | (string & {});
7704
+ type GatewayVideoModelId = 'alibaba/wan-v2.5-t2v-preview' | 'alibaba/wan-v2.6-i2v' | 'alibaba/wan-v2.6-i2v-flash' | 'alibaba/wan-v2.6-r2v' | 'alibaba/wan-v2.6-r2v-flash' | 'alibaba/wan-v2.6-t2v' | 'bytedance/seedance-2.0' | 'bytedance/seedance-2.0-fast' | 'bytedance/seedance-v1.0-lite-i2v' | 'bytedance/seedance-v1.0-lite-t2v' | 'bytedance/seedance-v1.0-pro' | 'bytedance/seedance-v1.0-pro-fast' | 'bytedance/seedance-v1.5-pro' | 'google/veo-3.0-fast-generate-001' | 'google/veo-3.0-generate-001' | 'google/veo-3.1-fast-generate-001' | 'google/veo-3.1-generate-001' | 'klingai/kling-v2.5-turbo-i2v' | 'klingai/kling-v2.5-turbo-t2v' | 'klingai/kling-v2.6-i2v' | 'klingai/kling-v2.6-motion-control' | 'klingai/kling-v2.6-t2v' | 'klingai/kling-v3.0-i2v' | 'klingai/kling-v3.0-motion-control' | 'klingai/kling-v3.0-t2v' | 'xai/grok-imagine-video' | 'xai/grok-imagine-video-1.5-preview' | (string & {});
7696
7705
  declare const KNOWN_MODEL_TYPES: readonly ["embedding", "image", "language", "reranking", "video"];
7697
7706
  type KnownModelType = (typeof KNOWN_MODEL_TYPES)[number];
7698
7707
  interface GatewayLanguageModelEntry {
@@ -7849,7 +7858,7 @@ interface GatewayGenerationInfo {
7849
7858
  billableWebSearchCalls: number;
7850
7859
  }
7851
7860
  type GatewayEmbeddingModelId = 'alibaba/qwen3-embedding-0.6b' | 'alibaba/qwen3-embedding-4b' | 'alibaba/qwen3-embedding-8b' | 'amazon/titan-embed-text-v2' | 'cohere/embed-v4.0' | 'google/gemini-embedding-001' | 'google/gemini-embedding-2' | 'google/text-embedding-005' | 'google/text-multilingual-embedding-002' | 'mistral/codestral-embed' | 'mistral/mistral-embed' | 'openai/text-embedding-3-large' | 'openai/text-embedding-3-small' | 'openai/text-embedding-ada-002' | 'voyage/voyage-3-large' | 'voyage/voyage-3.5' | 'voyage/voyage-3.5-lite' | 'voyage/voyage-4' | 'voyage/voyage-4-large' | 'voyage/voyage-4-lite' | 'voyage/voyage-code-2' | 'voyage/voyage-code-3' | 'voyage/voyage-finance-2' | 'voyage/voyage-law-2' | (string & {});
7852
- type GatewayImageModelId = 'bfl/flux-2-flex' | 'bfl/flux-2-klein-4b' | 'bfl/flux-2-klein-9b' | 'bfl/flux-2-max' | 'bfl/flux-2-pro' | 'bfl/flux-kontext-max' | 'bfl/flux-kontext-pro' | 'bfl/flux-pro-1.0-fill' | 'bfl/flux-pro-1.1' | 'bfl/flux-pro-1.1-ultra' | 'bytedance/seedream-4.0' | 'bytedance/seedream-4.5' | 'bytedance/seedream-5.0-lite' | 'google/imagen-4.0-fast-generate-001' | 'google/imagen-4.0-generate-001' | 'google/imagen-4.0-ultra-generate-001' | 'openai/gpt-image-1' | 'openai/gpt-image-1-mini' | 'openai/gpt-image-1.5' | 'openai/gpt-image-2' | 'prodia/flux-fast-schnell' | 'recraft/recraft-v2' | 'recraft/recraft-v3' | 'recraft/recraft-v4' | 'recraft/recraft-v4-pro' | 'xai/grok-imagine-image' | 'xai/grok-imagine-image-pro' | (string & {});
7861
+ type GatewayImageModelId = 'bfl/flux-2-flex' | 'bfl/flux-2-klein-4b' | 'bfl/flux-2-klein-9b' | 'bfl/flux-2-max' | 'bfl/flux-2-pro' | 'bfl/flux-kontext-max' | 'bfl/flux-kontext-pro' | 'bfl/flux-pro-1.0-fill' | 'bfl/flux-pro-1.1' | 'bfl/flux-pro-1.1-ultra' | 'bytedance/seedream-4.0' | 'bytedance/seedream-4.5' | 'bytedance/seedream-5.0-lite' | 'google/imagen-4.0-fast-generate-001' | 'google/imagen-4.0-generate-001' | 'google/imagen-4.0-ultra-generate-001' | 'openai/gpt-image-1' | 'openai/gpt-image-1-mini' | 'openai/gpt-image-1.5' | 'openai/gpt-image-2' | 'prodia/flux-fast-schnell' | 'recraft/recraft-v2' | 'recraft/recraft-v3' | 'recraft/recraft-v4' | 'recraft/recraft-v4-pro' | 'recraft/recraft-v4.1' | 'recraft/recraft-v4.1-pro' | 'recraft/recraft-v4.1-utility' | 'recraft/recraft-v4.1-utility-pro' | 'xai/grok-imagine-image' | (string & {});
7853
7862
  interface PerplexitySearchConfig {
7854
7863
  /**
7855
7864
  * Default maximum number of search results to return (1-20, default: 10).
@@ -8229,7 +8238,7 @@ interface GatewayProviderSettings {
8229
8238
  declare function createGatewayProvider(options?: GatewayProviderSettings): GatewayProvider;
8230
8239
  declare const gateway: GatewayProvider;
8231
8240
  declare namespace index_d_exports {
8232
- export { AISDKError, APICallError, AbstractChat, Agent$1 as Agent, AgentCallParameters, AgentStreamParameters, AssistantContent, AssistantModelMessage, AsyncIterableStream, CallSettings, CallWarning, ChatAddToolApproveResponseFunction, ChatAddToolOutputFunction, ChatInit, ChatOnDataCallback, ChatOnErrorCallback, ChatOnFinishCallback, ChatOnToolCallCallback, ChatRequestOptions, ChatState, ChatStatus, ChatTransport, ChunkDetector, CompletionRequestOptions, ContentPart, CreateUIMessage, DataContent, DataUIPart, DeepPartial, DefaultChatTransport, DefaultGeneratedFile, DirectChatTransport, DirectChatTransportOptions, DownloadError, DynamicToolCall, DynamicToolError, DynamicToolResult, DynamicToolUIPart, EmbedManyResult, EmbedResult, Embedding, EmbeddingModel, EmbeddingModelMiddleware, EmbeddingModelUsage, EmptyResponseBodyError, ErrorHandler, ToolLoopAgent as Experimental_Agent, ToolLoopAgentSettings as Experimental_AgentSettings, DownloadFunction as Experimental_DownloadFunction, Experimental_GenerateImageResult, GeneratedFile as Experimental_GeneratedImage, InferAgentUIMessage as Experimental_InferAgentUIMessage, LogWarningsFunction as Experimental_LogWarningsFunction, SpeechResult as Experimental_SpeechResult, TranscriptionResult as Experimental_TranscriptionResult, FilePart, FileUIPart, FinishReason, FlexibleSchema, GatewayModelId, GenerateImageResult, GenerateObjectResult, GenerateTextOnFinishCallback, GenerateTextOnStartCallback, GenerateTextOnStepFinishCallback, GenerateTextOnStepStartCallback, GenerateTextOnToolCallFinishCallback, GenerateTextOnToolCallStartCallback, GenerateTextResult, GenerateVideoPrompt, GenerateVideoResult, GeneratedAudioFile, GeneratedFile, HttpChatTransport, HttpChatTransportInitOptions, IdGenerator, ImageModel, ImageModelMiddleware, ImageModelProviderMetadata, ImageModelResponseMetadata, ImageModelUsage, ImagePart, InferAgentUIMessage, InferCompleteOutput as InferGenerateOutput, InferSchema, InferPartialOutput as InferStreamOutput, InferToolInput, InferToolOutput, InferUIDataParts, InferUIMessageChunk, InferUITool, InferUITools, InvalidArgumentError, InvalidDataContentError, InvalidMessageRoleError, InvalidPromptError, InvalidResponseDataError, InvalidStreamPartError, InvalidToolApprovalError, InvalidToolInputError, JSONParseError, JSONSchema7$1 as JSONSchema7, JSONValue, JsonToSseTransformStream, LanguageModel, LanguageModelMiddleware, LanguageModelRequestMetadata, LanguageModelResponseMetadata, LanguageModelUsage, LoadAPIKeyError, LoadSettingError, LogWarningsFunction, MessageConversionError, MissingToolResultsError, ModelMessage, NoContentGeneratedError, NoImageGeneratedError, NoObjectGeneratedError, NoOutputGeneratedError, NoSpeechGeneratedError, NoSuchModelError, NoSuchProviderError, NoSuchToolError, NoTranscriptGeneratedError, NoVideoGeneratedError, ObjectStreamPart, OnFinishEvent, OnStartEvent, OnStepFinishEvent, OnStepStartEvent, OnToolCallFinishEvent, OnToolCallStartEvent, output as Output, PrepareReconnectToStreamRequest, PrepareSendMessagesRequest, PrepareStepFunction, PrepareStepResult, Prompt, Provider, ProviderMetadata, ProviderRegistryProvider, ReasoningOutput, ReasoningUIPart, RepairTextFunction, RerankResult, RerankingModel, RetryError, SafeValidateUIMessagesResult, Schema, SerialJobExecutor, SourceDocumentUIPart, SourceUrlUIPart, SpeechModel, SpeechModelResponseMetadata, StaticToolCall, StaticToolError, StaticToolOutputDenied, StaticToolResult, StepResult, StepStartUIPart, StopCondition, StreamObjectOnFinishCallback, StreamObjectResult, StreamTextOnChunkCallback, StreamTextOnErrorCallback, StreamTextOnFinishCallback, StreamTextOnStartCallback, StreamTextOnStepFinishCallback, StreamTextOnStepStartCallback, StreamTextOnToolCallFinishCallback, StreamTextOnToolCallStartCallback, StreamTextResult, StreamTextTransform, SystemModelMessage, TelemetryIntegration, TelemetrySettings, TextPart, TextStreamChatTransport, TextStreamPart, TextUIPart, TimeoutConfiguration, TooManyEmbeddingValuesForCallError, Tool, ToolApprovalRequest, ToolApprovalRequestOutput, ToolApprovalResponse, ToolCallNotFoundForApprovalError, ToolCallOptions, ToolCallPart, ToolCallRepairError, ToolCallRepairFunction, ToolChoice, ToolContent, ToolExecuteFunction, ToolExecutionOptions, ToolLoopAgent, ToolLoopAgentOnFinishCallback, ToolLoopAgentOnStepFinishCallback, ToolLoopAgentSettings, ToolModelMessage, ToolResultPart, ToolSet, ToolUIPart, TranscriptionModel, TranscriptionModelResponseMetadata, TypeValidationError, TypedToolCall, TypedToolError, TypedToolOutputDenied, TypedToolResult, UIDataPartSchemas, UIDataTypes, UIMessage, UIMessageChunk, UIMessagePart, UIMessageStreamError, UIMessageStreamOnFinishCallback, UIMessageStreamOnStepFinishCallback, UIMessageStreamOptions, UIMessageStreamWriter, UITool, UIToolInvocation, UITools, UI_MESSAGE_STREAM_HEADERS, UnsupportedFunctionalityError, UnsupportedModelVersionError, UseCompletionOptions, UserContent, UserModelMessage, Warning, addToolInputExamplesMiddleware, asSchema, assistantModelMessageSchema, bindTelemetryIntegration, callCompletionApi, consumeStream, convertFileListToFileUIParts, convertToModelMessages, cosineSimilarity, createAgentUIStream, createAgentUIStreamResponse, createDownload, createGatewayProvider as createGateway, createIdGenerator, createProviderRegistry, createTextStreamResponse, createUIMessageStream, createUIMessageStreamResponse, customProvider, defaultEmbeddingSettingsMiddleware, defaultSettingsMiddleware, dynamicTool, embed, embedMany, experimental_createProviderRegistry, experimental_customProvider, experimental_generateImage, generateSpeech as experimental_generateSpeech, experimental_generateVideo, transcribe as experimental_transcribe, extractJsonMiddleware, extractReasoningMiddleware, gateway, generateId$1 as generateId, generateImage, generateObject, generateText, getStaticToolName, getTextFromDataUrl, getToolName, getToolOrDynamicToolName, hasToolCall, isDataUIPart, isDeepEqualData, isFileUIPart, isLoopFinished, isReasoningUIPart, isStaticToolUIPart, isTextUIPart, isToolOrDynamicToolUIPart, isToolUIPart, jsonSchema, lastAssistantMessageIsCompleteWithApprovalResponses, lastAssistantMessageIsCompleteWithToolCalls, modelMessageSchema, parseJsonEventStream, parsePartialJson, pipeAgentUIStreamToResponse, pipeTextStreamToResponse, pipeUIMessageStreamToResponse, pruneMessages, readUIMessageStream, registerTelemetryIntegration, rerank, safeValidateUIMessages, simulateReadableStream, simulateStreamingMiddleware, smoothStream, stepCountIs, streamObject, streamText, systemModelMessageSchema, tool$1 as tool, toolModelMessageSchema, uiMessageChunkSchema, userModelMessageSchema, validateUIMessages, wrapEmbeddingModel, wrapImageModel, wrapLanguageModel$1 as wrapLanguageModel, wrapProvider, zodSchema };
8241
+ export { AISDKError, APICallError, AbstractChat, Agent$1 as Agent, AgentCallParameters, AgentStreamParameters, AssistantContent, AssistantModelMessage, AsyncIterableStream, CallSettings, CallWarning, ChatAddToolApproveResponseFunction, ChatAddToolOutputFunction, ChatInit, ChatOnDataCallback, ChatOnErrorCallback, ChatOnFinishCallback, ChatOnToolCallCallback, ChatRequestOptions, ChatState, ChatStatus, ChatTransport, ChunkDetector, CompletionRequestOptions, ContentPart, CreateUIMessage, DataContent, DataUIPart, DeepPartial, DefaultChatTransport, DefaultGeneratedFile, DirectChatTransport, DirectChatTransportOptions, DownloadError, DynamicToolCall, DynamicToolError, DynamicToolResult, DynamicToolUIPart, EmbedManyResult, EmbedResult, Embedding, EmbeddingModel, EmbeddingModelMiddleware, EmbeddingModelUsage, EmptyResponseBodyError, ErrorHandler, ToolLoopAgent as Experimental_Agent, ToolLoopAgentSettings as Experimental_AgentSettings, DownloadFunction as Experimental_DownloadFunction, Experimental_GenerateImageResult, GeneratedFile as Experimental_GeneratedImage, InferAgentUIMessage as Experimental_InferAgentUIMessage, LogWarningsFunction as Experimental_LogWarningsFunction, SpeechResult as Experimental_SpeechResult, TranscriptionResult as Experimental_TranscriptionResult, FilePart, FileUIPart, FinishReason, FlexibleSchema, GatewayModelId, GenerateImageResult, GenerateObjectResult, GenerateTextOnFinishCallback, GenerateTextOnStartCallback, GenerateTextOnStepFinishCallback, GenerateTextOnStepStartCallback, GenerateTextOnToolCallFinishCallback, GenerateTextOnToolCallStartCallback, GenerateTextResult, GenerateVideoPrompt, GenerateVideoResult, GeneratedAudioFile, GeneratedFile, HttpChatTransport, HttpChatTransportInitOptions, IdGenerator, ImageModel, ImageModelMiddleware, ImageModelProviderMetadata, ImageModelResponseMetadata, ImageModelUsage, ImagePart, InferAgentUIMessage, InferCompleteOutput as InferGenerateOutput, InferSchema, InferPartialOutput as InferStreamOutput, InferToolInput, InferToolOutput, InferUIDataParts, InferUIMessageChunk, InferUITool, InferUITools, InvalidArgumentError, InvalidDataContentError, InvalidMessageRoleError, InvalidPromptError, InvalidResponseDataError, InvalidStreamPartError, InvalidToolApprovalError, InvalidToolApprovalSignatureError, InvalidToolInputError, JSONParseError, JSONSchema7$1 as JSONSchema7, JSONValue, JsonToSseTransformStream, LanguageModel, LanguageModelMiddleware, LanguageModelRequestMetadata, LanguageModelResponseMetadata, LanguageModelUsage, LoadAPIKeyError, LoadSettingError, LogWarningsFunction, MessageConversionError, MissingToolResultsError, ModelMessage, NoContentGeneratedError, NoImageGeneratedError, NoObjectGeneratedError, NoOutputGeneratedError, NoSpeechGeneratedError, NoSuchModelError, NoSuchProviderError, NoSuchToolError, NoTranscriptGeneratedError, NoVideoGeneratedError, ObjectStreamPart, OnFinishEvent, OnStartEvent, OnStepFinishEvent, OnStepStartEvent, OnToolCallFinishEvent, OnToolCallStartEvent, output as Output, PrepareReconnectToStreamRequest, PrepareSendMessagesRequest, PrepareStepFunction, PrepareStepResult, Prompt, Provider, ProviderMetadata, ProviderRegistryProvider, ReasoningOutput, ReasoningUIPart, RepairTextFunction, RerankResult, RerankingModel, RetryError, SafeValidateUIMessagesResult, Schema, SerialJobExecutor, SourceDocumentUIPart, SourceUrlUIPart, SpeechModel, SpeechModelResponseMetadata, StaticToolCall, StaticToolError, StaticToolOutputDenied, StaticToolResult, StepResult, StepStartUIPart, StopCondition, StreamObjectOnFinishCallback, StreamObjectResult, StreamTextOnChunkCallback, StreamTextOnErrorCallback, StreamTextOnFinishCallback, StreamTextOnStartCallback, StreamTextOnStepFinishCallback, StreamTextOnStepStartCallback, StreamTextOnToolCallFinishCallback, StreamTextOnToolCallStartCallback, StreamTextResult, StreamTextTransform, SystemModelMessage, TelemetryIntegration, TelemetrySettings, TextPart, TextStreamChatTransport, TextStreamPart, TextUIPart, TimeoutConfiguration, TooManyEmbeddingValuesForCallError, Tool, ToolApprovalRequest, ToolApprovalRequestOutput, ToolApprovalResponse, ToolCallNotFoundForApprovalError, ToolCallOptions, ToolCallPart, ToolCallRepairError, ToolCallRepairFunction, ToolChoice, ToolContent, ToolExecuteFunction, ToolExecutionOptions, ToolLoopAgent, ToolLoopAgentOnFinishCallback, ToolLoopAgentOnStepFinishCallback, ToolLoopAgentSettings, ToolModelMessage, ToolResultPart, ToolSet, ToolUIPart, TranscriptionModel, TranscriptionModelResponseMetadata, TypeValidationError, TypedToolCall, TypedToolError, TypedToolOutputDenied, TypedToolResult, UIDataPartSchemas, UIDataTypes, UIMessage, UIMessageChunk, UIMessagePart, UIMessageStreamError, UIMessageStreamOnFinishCallback, UIMessageStreamOnStepFinishCallback, UIMessageStreamOptions, UIMessageStreamWriter, UITool, UIToolInvocation, UITools, UI_MESSAGE_STREAM_HEADERS, UnsupportedFunctionalityError, UnsupportedModelVersionError, UseCompletionOptions, UserContent, UserModelMessage, Warning, addToolInputExamplesMiddleware, asSchema, assistantModelMessageSchema, bindTelemetryIntegration, callCompletionApi, consumeStream, convertFileListToFileUIParts, convertToModelMessages, cosineSimilarity, createAgentUIStream, createAgentUIStreamResponse, createDownload, createGatewayProvider as createGateway, createIdGenerator, createProviderRegistry, createTextStreamResponse, createUIMessageStream, createUIMessageStreamResponse, customProvider, defaultEmbeddingSettingsMiddleware, defaultSettingsMiddleware, dynamicTool, embed, embedMany, experimental_createProviderRegistry, experimental_customProvider, experimental_generateImage, generateSpeech as experimental_generateSpeech, experimental_generateVideo, transcribe as experimental_transcribe, extractJsonMiddleware, extractReasoningMiddleware, gateway, generateId$1 as generateId, generateImage, generateObject, generateText, getStaticToolName, getTextFromDataUrl, getToolName, getToolOrDynamicToolName, hasToolCall, isDataUIPart, isDeepEqualData, isFileUIPart, isLoopFinished, isReasoningUIPart, isStaticToolUIPart, isTextUIPart, isToolOrDynamicToolUIPart, isToolUIPart, jsonSchema, lastAssistantMessageIsCompleteWithApprovalResponses, lastAssistantMessageIsCompleteWithToolCalls, modelMessageSchema, parseJsonEventStream, parsePartialJson, pipeAgentUIStreamToResponse, pipeTextStreamToResponse, pipeUIMessageStreamToResponse, pruneMessages, readUIMessageStream, registerTelemetryIntegration, rerank, safeValidateUIMessages, simulateReadableStream, simulateStreamingMiddleware, smoothStream, stepCountIs, streamObject, streamText, systemModelMessageSchema, tool$1 as tool, toolModelMessageSchema, uiMessageChunkSchema, userModelMessageSchema, validateUIMessages, wrapEmbeddingModel, wrapImageModel, wrapLanguageModel$1 as wrapLanguageModel, wrapProvider, zodSchema };
8233
8242
  }
8234
8243
  /**
8235
8244
  * Embedding model that is used by the AI SDK.
@@ -8918,6 +8927,10 @@ type ToolApprovalRequestOutput<TOOLS extends ToolSet> = {
8918
8927
  * Tool call that the approval request is for.
8919
8928
  */
8920
8929
  toolCall: TypedToolCall<TOOLS>;
8930
+ /**
8931
+ * HMAC-SHA256 signature binding this approval request to its tool call.
8932
+ */
8933
+ signature?: string;
8921
8934
  };
8922
8935
  type StaticToolError<TOOLS extends ToolSet> = ValueOf<{ [NAME in keyof TOOLS]: {
8923
8936
  type: 'tool-error';
@@ -9335,9 +9348,9 @@ interface GenerateTextResult<TOOLS extends ToolSet, OUTPUT extends Output> {
9335
9348
  */
9336
9349
  readonly output: InferCompleteOutput<OUTPUT>;
9337
9350
  }
9338
- declare const symbol$j: unique symbol;
9351
+ declare const symbol$k: unique symbol;
9339
9352
  declare class InvalidToolInputError extends AISDKError {
9340
- private readonly [symbol$j];
9353
+ private readonly [symbol$k];
9341
9354
  readonly toolName: string;
9342
9355
  readonly toolInput: string;
9343
9356
  constructor({
@@ -9353,9 +9366,9 @@ declare class InvalidToolInputError extends AISDKError {
9353
9366
  });
9354
9367
  static isInstance(error: unknown): error is InvalidToolInputError;
9355
9368
  }
9356
- declare const symbol$i: unique symbol;
9369
+ declare const symbol$j: unique symbol;
9357
9370
  declare class NoSuchToolError extends AISDKError {
9358
- private readonly [symbol$i];
9371
+ private readonly [symbol$j];
9359
9372
  readonly toolName: string;
9360
9373
  readonly availableTools: string[] | undefined;
9361
9374
  constructor({
@@ -9544,6 +9557,7 @@ declare function generateText<TOOLS extends ToolSet, OUTPUT extends Output = Out
9544
9557
  experimental_repairToolCall: repairToolCall,
9545
9558
  experimental_download: download,
9546
9559
  experimental_context,
9560
+ experimental_toolApprovalSecret,
9547
9561
  experimental_include: include,
9548
9562
  _internal: {
9549
9563
  generateId
@@ -9656,6 +9670,14 @@ declare function generateText<TOOLS extends ToolSet, OUTPUT extends Output = Out
9656
9670
  * @default undefined
9657
9671
  */
9658
9672
  experimental_context?: unknown;
9673
+ /**
9674
+ * Secret for HMAC-signing tool approval requests. When set, the server
9675
+ * signs each approval request at issuance and verifies the signature when
9676
+ * the approval is replayed, preventing client-forged approvals.
9677
+ *
9678
+ * Experimental (can break in patch releases).
9679
+ */
9680
+ experimental_toolApprovalSecret?: string | Uint8Array;
9659
9681
  /**
9660
9682
  * Settings for controlling what data is included in step results.
9661
9683
  * Disabling inclusion can help reduce memory usage when processing
@@ -9920,7 +9942,7 @@ type UIToolInvocation<TOOL extends UITool | Tool> = {
9920
9942
  providerExecuted?: boolean;
9921
9943
  } & ({
9922
9944
  state: 'input-streaming';
9923
- input: DeepPartial<asUITool<TOOL>['input']> | undefined;
9945
+ input?: DeepPartial<asUITool<TOOL>['input']> | undefined;
9924
9946
  output?: never;
9925
9947
  errorText?: never;
9926
9948
  callProviderMetadata?: ProviderMetadata;
@@ -9942,6 +9964,7 @@ type UIToolInvocation<TOOL extends UITool | Tool> = {
9942
9964
  id: string;
9943
9965
  approved?: never;
9944
9966
  reason?: never;
9967
+ signature?: string;
9945
9968
  };
9946
9969
  } | {
9947
9970
  state: 'approval-responded';
@@ -9953,6 +9976,7 @@ type UIToolInvocation<TOOL extends UITool | Tool> = {
9953
9976
  id: string;
9954
9977
  approved: boolean;
9955
9978
  reason?: string;
9979
+ signature?: string;
9956
9980
  };
9957
9981
  } | {
9958
9982
  state: 'output-available';
@@ -9966,6 +9990,7 @@ type UIToolInvocation<TOOL extends UITool | Tool> = {
9966
9990
  id: string;
9967
9991
  approved: true;
9968
9992
  reason?: string;
9993
+ signature?: string;
9969
9994
  };
9970
9995
  } | {
9971
9996
  state: 'output-error';
@@ -9979,6 +10004,7 @@ type UIToolInvocation<TOOL extends UITool | Tool> = {
9979
10004
  id: string;
9980
10005
  approved: true;
9981
10006
  reason?: string;
10007
+ signature?: string;
9982
10008
  };
9983
10009
  } | {
9984
10010
  state: 'output-denied';
@@ -9990,6 +10016,7 @@ type UIToolInvocation<TOOL extends UITool | Tool> = {
9990
10016
  id: string;
9991
10017
  approved: false;
9992
10018
  reason?: string;
10019
+ signature?: string;
9993
10020
  };
9994
10021
  });
9995
10022
  type ToolUIPart<TOOLS extends UITools = UITools> = ValueOf<{ [NAME in keyof TOOLS & string]: {
@@ -10013,7 +10040,7 @@ type DynamicToolUIPart = {
10013
10040
  providerExecuted?: boolean;
10014
10041
  } & ({
10015
10042
  state: 'input-streaming';
10016
- input: unknown | undefined;
10043
+ input?: unknown;
10017
10044
  output?: never;
10018
10045
  errorText?: never;
10019
10046
  callProviderMetadata?: ProviderMetadata;
@@ -10035,6 +10062,7 @@ type DynamicToolUIPart = {
10035
10062
  id: string;
10036
10063
  approved?: never;
10037
10064
  reason?: never;
10065
+ signature?: string;
10038
10066
  };
10039
10067
  } | {
10040
10068
  state: 'approval-responded';
@@ -10046,6 +10074,7 @@ type DynamicToolUIPart = {
10046
10074
  id: string;
10047
10075
  approved: boolean;
10048
10076
  reason?: string;
10077
+ signature?: string;
10049
10078
  };
10050
10079
  } | {
10051
10080
  state: 'output-available';
@@ -10059,6 +10088,7 @@ type DynamicToolUIPart = {
10059
10088
  id: string;
10060
10089
  approved: true;
10061
10090
  reason?: string;
10091
+ signature?: string;
10062
10092
  };
10063
10093
  } | {
10064
10094
  state: 'output-error';
@@ -10071,6 +10101,7 @@ type DynamicToolUIPart = {
10071
10101
  id: string;
10072
10102
  approved: true;
10073
10103
  reason?: string;
10104
+ signature?: string;
10074
10105
  };
10075
10106
  } | {
10076
10107
  state: 'output-denied';
@@ -10082,6 +10113,7 @@ type DynamicToolUIPart = {
10082
10113
  id: string;
10083
10114
  approved: false;
10084
10115
  reason?: string;
10116
+ signature?: string;
10085
10117
  };
10086
10118
  });
10087
10119
  /**
@@ -10195,6 +10227,7 @@ declare const uiMessageChunkSchema: LazySchema<{
10195
10227
  type: "tool-approval-request";
10196
10228
  approvalId: string;
10197
10229
  toolCallId: string;
10230
+ signature?: string | undefined;
10198
10231
  } | {
10199
10232
  type: "tool-output-available";
10200
10233
  toolCallId: string;
@@ -10330,6 +10363,7 @@ type UIMessageChunk<METADATA = unknown, DATA_TYPES extends UIDataTypes = UIDataT
10330
10363
  type: 'tool-approval-request';
10331
10364
  approvalId: string;
10332
10365
  toolCallId: string;
10366
+ signature?: string;
10333
10367
  } | {
10334
10368
  type: 'tool-output-available';
10335
10369
  toolCallId: string;
@@ -10964,6 +10998,7 @@ declare function streamText<TOOLS extends ToolSet, OUTPUT extends Output = Outpu
10964
10998
  experimental_onToolCallStart: onToolCallStart,
10965
10999
  experimental_onToolCallFinish: onToolCallFinish,
10966
11000
  experimental_context,
11001
+ experimental_toolApprovalSecret,
10967
11002
  experimental_include: include,
10968
11003
  _internal: {
10969
11004
  now,
@@ -11103,6 +11138,14 @@ declare function streamText<TOOLS extends ToolSet, OUTPUT extends Output = Outpu
11103
11138
  * @default undefined
11104
11139
  */
11105
11140
  experimental_context?: unknown;
11141
+ /**
11142
+ * Secret for HMAC-signing tool approval requests. When set, the server
11143
+ * signs each approval request at issuance and verifies the signature when
11144
+ * the approval is replayed, preventing client-forged approvals.
11145
+ *
11146
+ * Experimental (can break in patch releases).
11147
+ */
11148
+ experimental_toolApprovalSecret?: string | Uint8Array;
11106
11149
  /**
11107
11150
  * Settings for controlling what data is included in step results.
11108
11151
  * Disabling inclusion can help reduce memory usage when processing
@@ -11564,6 +11607,15 @@ type ToolLoopAgentSettings<CALL_OPTIONS = never, TOOLS extends ToolSet = {}, OUT
11564
11607
  * It can be a string, or, if you need to pass additional provider options (e.g. for caching), a `SystemModelMessage`.
11565
11608
  */
11566
11609
  instructions?: string | SystemModelMessage | Array<SystemModelMessage>;
11610
+ /**
11611
+ * Whether system messages are allowed in the `prompt` or `messages` fields.
11612
+ *
11613
+ * When disabled, system messages must be provided through the `instructions`
11614
+ * option.
11615
+ *
11616
+ * @default false
11617
+ */
11618
+ allowSystemInMessages?: boolean;
11567
11619
  /**
11568
11620
  * The language model to use.
11569
11621
  */
@@ -11641,7 +11693,7 @@ type ToolLoopAgentSettings<CALL_OPTIONS = never, TOOLS extends ToolSet = {}, OUT
11641
11693
  *
11642
11694
  * You can use this to have templates based on call options.
11643
11695
  */
11644
- prepareCall?: (options: Omit<AgentCallParameters<CALL_OPTIONS, NoInfer<TOOLS>>, 'onStepFinish'> & Pick<ToolLoopAgentSettings<CALL_OPTIONS, TOOLS, OUTPUT>, 'model' | 'tools' | 'maxOutputTokens' | 'temperature' | 'topP' | 'topK' | 'presencePenalty' | 'frequencyPenalty' | 'stopSequences' | 'seed' | 'headers' | 'instructions' | 'stopWhen' | 'experimental_telemetry' | 'activeTools' | 'providerOptions' | 'experimental_context' | 'experimental_download'>) => MaybePromiseLike<Pick<ToolLoopAgentSettings<CALL_OPTIONS, TOOLS, OUTPUT>, 'model' | 'tools' | 'maxOutputTokens' | 'temperature' | 'topP' | 'topK' | 'presencePenalty' | 'frequencyPenalty' | 'stopSequences' | 'seed' | 'headers' | 'instructions' | 'stopWhen' | 'experimental_telemetry' | 'activeTools' | 'providerOptions' | 'experimental_context' | 'experimental_download'> & Omit<Prompt, 'system'>>;
11696
+ prepareCall?: (options: Omit<AgentCallParameters<CALL_OPTIONS, NoInfer<TOOLS>>, 'onStepFinish'> & Pick<ToolLoopAgentSettings<CALL_OPTIONS, TOOLS, OUTPUT>, 'model' | 'tools' | 'maxOutputTokens' | 'temperature' | 'topP' | 'topK' | 'presencePenalty' | 'frequencyPenalty' | 'stopSequences' | 'seed' | 'headers' | 'instructions' | 'allowSystemInMessages' | 'stopWhen' | 'experimental_telemetry' | 'activeTools' | 'providerOptions' | 'experimental_context' | 'experimental_download'>) => MaybePromiseLike<Pick<ToolLoopAgentSettings<CALL_OPTIONS, TOOLS, OUTPUT>, 'model' | 'tools' | 'maxOutputTokens' | 'temperature' | 'topP' | 'topK' | 'presencePenalty' | 'frequencyPenalty' | 'stopSequences' | 'seed' | 'headers' | 'instructions' | 'allowSystemInMessages' | 'stopWhen' | 'experimental_telemetry' | 'activeTools' | 'providerOptions' | 'experimental_context' | 'experimental_download'> & Omit<Prompt, 'system'>>;
11645
11697
  };
11646
11698
  /**
11647
11699
  * Parameters for calling an agent.
@@ -12529,7 +12581,7 @@ interface UIMessageStreamWriter<UI_MESSAGE extends UIMessage = UIMessage> {
12529
12581
  * Creates a UI message stream that can be used to send messages to the client.
12530
12582
  *
12531
12583
  * @param options.execute - A function that is called with a writer to write UI message chunks to the stream.
12532
- * @param options.onError - A function that extracts an error message from an error. Defaults to `getErrorMessage`.
12584
+ * @param options.onError - A function that extracts an error message from an error. Defaults to `() => 'An error occurred.'` so server-side error details are not leaked to the client; supply your own to surface richer messages.
12533
12585
  * @param options.originalMessages - The original messages. If provided, persistence mode is assumed
12534
12586
  * and a message ID is provided for the response message.
12535
12587
  * @param options.onStepFinish - A callback that is called when each step finishes. Useful for persisting intermediate messages.
@@ -12541,6 +12593,7 @@ interface UIMessageStreamWriter<UI_MESSAGE extends UIMessage = UIMessage> {
12541
12593
  declare function createUIMessageStream<UI_MESSAGE extends UIMessage>({
12542
12594
  execute,
12543
12595
  onError,
12596
+ // prevent leaking server error details to the client by default
12544
12597
  originalMessages,
12545
12598
  onStepFinish,
12546
12599
  onFinish,
@@ -12919,9 +12972,9 @@ declare function embedMany({
12919
12972
  */
12920
12973
  maxParallelCalls?: number;
12921
12974
  }): Promise<EmbedManyResult>;
12922
- declare const symbol$h: unique symbol;
12975
+ declare const symbol$i: unique symbol;
12923
12976
  declare class InvalidArgumentError extends AISDKError {
12924
- private readonly [symbol$h];
12977
+ private readonly [symbol$i];
12925
12978
  readonly parameter: string;
12926
12979
  readonly value: unknown;
12927
12980
  constructor({
@@ -13010,9 +13063,9 @@ type SingleRequestTextStreamPart<TOOLS extends ToolSet> = {
13010
13063
  type: 'raw';
13011
13064
  rawValue: unknown;
13012
13065
  };
13013
- declare const symbol$g: unique symbol;
13066
+ declare const symbol$h: unique symbol;
13014
13067
  declare class InvalidStreamPartError extends AISDKError {
13015
- private readonly [symbol$g];
13068
+ private readonly [symbol$h];
13016
13069
  readonly chunk: SingleRequestTextStreamPart<any>;
13017
13070
  constructor({
13018
13071
  chunk,
@@ -13023,9 +13076,9 @@ declare class InvalidStreamPartError extends AISDKError {
13023
13076
  });
13024
13077
  static isInstance(error: unknown): error is InvalidStreamPartError;
13025
13078
  }
13026
- declare const symbol$f: unique symbol;
13079
+ declare const symbol$g: unique symbol;
13027
13080
  declare class InvalidToolApprovalError extends AISDKError {
13028
- private readonly [symbol$f];
13081
+ private readonly [symbol$g];
13029
13082
  readonly approvalId: string;
13030
13083
  constructor({
13031
13084
  approvalId
@@ -13034,6 +13087,22 @@ declare class InvalidToolApprovalError extends AISDKError {
13034
13087
  });
13035
13088
  static isInstance(error: unknown): error is InvalidToolApprovalError;
13036
13089
  }
13090
+ declare const symbol$f: unique symbol;
13091
+ declare class InvalidToolApprovalSignatureError extends AISDKError {
13092
+ private readonly [symbol$f];
13093
+ readonly approvalId: string;
13094
+ readonly toolCallId: string;
13095
+ constructor({
13096
+ approvalId,
13097
+ toolCallId,
13098
+ reason
13099
+ }: {
13100
+ approvalId: string;
13101
+ toolCallId: string;
13102
+ reason: string;
13103
+ });
13104
+ static isInstance(error: unknown): error is InvalidToolApprovalSignatureError;
13105
+ }
13037
13106
  declare const symbol$e: unique symbol;
13038
13107
  declare class ToolCallNotFoundForApprovalError extends AISDKError {
13039
13108
  private readonly [symbol$e];
@@ -14894,6 +14963,12 @@ interface LaminarAiSdkTelemetryOptions {
14894
14963
  * generation. Defaults to false.
14895
14964
  */
14896
14965
  createStepSpan?: boolean;
14966
+ /**
14967
+ * Options to pass to {@link Laminar.initialize}. If Laminar is already
14968
+ * initialized, this is ignored. Allows all-in-one setup without a separate
14969
+ * `Laminar.initialize()` call.
14970
+ */
14971
+ laminarOptions?: LaminarInitializeProps;
14897
14972
  }
14898
14973
  /**
14899
14974
  * Laminar's implementation of the AI SDK v7 `Telemetry` interface.
@@ -15251,7 +15326,7 @@ declare class ActivityInboundInterceptor {
15251
15326
  readonly recordActivityArgs: boolean;
15252
15327
  readonly recordActivityOutput: boolean;
15253
15328
  readonly activityType: string | undefined;
15254
- readonly logger: _$pino.Logger<never, boolean>;
15329
+ readonly logger: import("pino").Logger<never, boolean>;
15255
15330
  constructor(options?: LaminarTemporalInterceptorOptions, activityContext?: any);
15256
15331
  execute: <T extends {
15257
15332
  headers: Record<string, unknown> | undefined;
@@ -15274,7 +15349,7 @@ declare const LaminarTemporalInterceptors: {
15274
15349
  readonly recordActivityArgs: boolean;
15275
15350
  readonly recordActivityOutput: boolean;
15276
15351
  readonly activityType: string | undefined;
15277
- readonly logger: _$pino.Logger<never, boolean>;
15352
+ readonly logger: import("pino").Logger<never, boolean>;
15278
15353
  execute: <T extends {
15279
15354
  headers: Record<string, unknown> | undefined;
15280
15355
  args: unknown[];
@@ -15357,7 +15432,7 @@ declare const initializeLaminarInstrumentations: (options?: {
15357
15432
  suppressContentTracing?: boolean;
15358
15433
  instrumentModules?: InitializeOptions["instrumentModules"];
15359
15434
  sessionRecordingOptions?: SessionRecordingOptions;
15360
- }) => Instrumentation<_$_opentelemetry_instrumentation0.InstrumentationConfig>[];
15435
+ }) => Instrumentation<import("@opentelemetry/instrumentation").InstrumentationConfig>[];
15361
15436
  //#endregion
15362
- export { AI_SDK_TELEMETRY_DIAGNOSTIC_CHANNEL, type Datapoint, EvaluationDataset as Dataset, type Dataset as DatasetType, type EvaluationDatapoint, type EvaluationDatapointDatasetLink, type EvaluatorFunction, type EvaluatorFunctionReturn, type Event, HumanEvaluator, LAMINAR_SPAN_CONTEXT_HEADER as LAMINAR_TEMPORAL_SPAN_CONTEXT_HEADER, TRACEPARENT_HEADER as LAMINAR_TEMPORAL_TRACEPARENT_HEADER, Laminar, LaminarAiSdkTelemetry, type LaminarAiSdkTelemetryOptions, LaminarAttributes, LaminarClient, LaminarDataset, type LaminarSpanContext, LaminarSpanProcessor, ActivityClientInterceptor as LaminarTemporalActivityClientInterceptor, ActivityInterceptorFactory as LaminarTemporalActivityInterceptorFactory, LaminarTemporalInterceptors, ScheduleClientInterceptor as LaminarTemporalScheduleClientInterceptor, WorkflowClientInterceptor as LaminarTemporalWorkflowClientInterceptor, type MaskInputOptions, MastraExporter, type MastraExporterOptions, type PushDatapointsResponse, type SessionRecordingOptions, type Span, TracingLevel, aiSdkTelemetry, enableAiSdkTelemetryDebug, evaluate, getTracer, getTracerProvider, initializeLaminarInstrumentations, instrumentClaudeAgentQuery, observe, observeDecorator, observeExperimentalDecorator, registerAiSdkTelemetry, withTracingLevel, wrapAISDK, wrapLanguageModel };
15437
+ export { AI_SDK_TELEMETRY_DIAGNOSTIC_CHANNEL, type Datapoint, EvaluationDataset as Dataset, type Dataset as DatasetType, type EvaluationDatapoint, type EvaluationDatapointDatasetLink, type EvaluatorFunction, type EvaluatorFunctionReturn, type Event, HumanEvaluator, LAMINAR_SPAN_CONTEXT_HEADER as LAMINAR_TEMPORAL_SPAN_CONTEXT_HEADER, TRACEPARENT_HEADER as LAMINAR_TEMPORAL_TRACEPARENT_HEADER, Laminar, LaminarAiSdkTelemetry, type LaminarAiSdkTelemetryOptions, LaminarAttributes, LaminarClient, LaminarDataset, type LaminarInitializeProps, type LaminarSpanContext, LaminarSpanProcessor, ActivityClientInterceptor as LaminarTemporalActivityClientInterceptor, ActivityInterceptorFactory as LaminarTemporalActivityInterceptorFactory, LaminarTemporalInterceptors, ScheduleClientInterceptor as LaminarTemporalScheduleClientInterceptor, WorkflowClientInterceptor as LaminarTemporalWorkflowClientInterceptor, type MaskInputOptions, MastraExporter, type MastraExporterOptions, type PushDatapointsResponse, type SessionRecordingOptions, type Span, TracingLevel, aiSdkTelemetry, enableAiSdkTelemetryDebug, evaluate, getTracer, getTracerProvider, initializeLaminarInstrumentations, instrumentClaudeAgentQuery, observe, observeDecorator, observeExperimentalDecorator, registerAiSdkTelemetry, withTracingLevel, wrapAISDK, wrapLanguageModel };
15363
15438
  //# sourceMappingURL=index.d.cts.map