diff --git a/.fern/metadata.json b/.fern/metadata.json index 9d704c2e..a1f5f153 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -1,5 +1,5 @@ { - "cliVersion": "5.119.2", + "cliVersion": "5.120.1", "generatorName": "fernapi/fern-typescript-sdk", "generatorVersion": "3.63.0", "generatorConfig": { @@ -11,10 +11,10 @@ "omitUndefined": true, "enableInlineTypes": false }, - "originGitCommit": "ca6a646c295c707d5b6dff2fceab26c86c9137d5", + "originGitCommit": "c562c5d40be88eebdeffe5d726ed5dbe04ec5b12", "originGitCommitIsDirty": true, "invokedBy": "ci", "requestedVersion": "AUTO", "ciProvider": "unknown", - "sdkVersion": "2.0.1" + "sdkVersion": "2.0.2" } diff --git a/.fern/replay.lock b/.fern/replay.lock index 3a8062c8..a466d752 100644 --- a/.fern/replay.lock +++ b/.fern/replay.lock @@ -18,5 +18,11 @@ generations: cli_version: unknown generator_versions: fernapi/fern-typescript-sdk: 3.63.0 -current_generation: 5037338ca89fe36163c30364fd68c07e99299a5b + - commit_sha: 41cccfaba506a72813c5826f28b28c2d6e14eae5 + tree_hash: 682a338733faa0be2a6c2569800140b6fdd7ab9f + timestamp: 2026-09-10T23:46:49.246Z + cli_version: unknown + generator_versions: + fernapi/fern-typescript-sdk: 3.63.0 +current_generation: 41cccfaba506a72813c5826f28b28c2d6e14eae5 patches: [] diff --git a/changelog.md b/changelog.md index e0a673b4..e47e2fde 100644 --- a/changelog.md +++ b/changelog.md @@ -1,3 +1,5 @@ +## [2.0.2] - 2026-09-10 + ## [2.0.1] - 2026-08-26 ## 2.0.0 - 2026-06-24 diff --git a/package.json b/package.json index 5ebe74c5..616cbb88 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@vapi-ai/server-sdk", - "version": "2.0.1", + "version": "2.0.2", "private": false, "repository": { "type": "git", diff --git a/src/BaseClient.ts b/src/BaseClient.ts index 57a9cccf..475f1eee 100644 --- a/src/BaseClient.ts +++ b/src/BaseClient.ts @@ -52,8 +52,8 @@ export function normalizeClientOptions[]; /** * This is the type of the run. diff --git a/src/api/types/StructuredOutput.ts b/src/api/types/StructuredOutput.ts index 70465476..0b29d45e 100644 --- a/src/api/types/StructuredOutput.ts +++ b/src/api/types/StructuredOutput.ts @@ -16,6 +16,15 @@ export interface StructuredOutput { /** * This is the regex pattern to match against the transcript. * + * Simulation evaluations use a canonical transcript built from recorded messages: + * User: and AI: dialogue, AI: tool_calls: JSON name/arguments records, and + * AI: tool_call_results: JSON results. System messages are excluded. These + * fixed labels apply even when custom artifact transcript labels are configured. + * Tool payloads participate in first-match and all-match extraction in event order. + * An empty message array falls back to the supplied transcript verbatim. + * Production-call extraction and call preview use their existing transcripts, + * so previewing the same output on a simulation's call can return a different result. + * * Only used when type is 'regex'. Supports both raw patterns (e.g. '\d+') and * regex literal format (e.g. '/\d+/gi'). Uses RE2 syntax for safety. * diff --git a/src/version.ts b/src/version.ts index 85cbd4ff..d3a011ca 100644 --- a/src/version.ts +++ b/src/version.ts @@ -1 +1 @@ -export const SDK_VERSION = "2.0.1"; +export const SDK_VERSION = "2.0.2";