@copilotkit/aimock 1.46.0 → 1.47.0
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/.claude-plugin/marketplace.json +1 -1
- package/.claude-plugin/plugin.json +1 -1
- package/CHANGELOG.md +12 -1
- package/README.md +4 -1
- package/dist/aws-event-stream.cjs +20 -23
- package/dist/aws-event-stream.cjs.map +1 -1
- package/dist/aws-event-stream.d.cts +0 -1
- package/dist/aws-event-stream.d.ts +0 -1
- package/dist/aws-event-stream.js +20 -24
- package/dist/aws-event-stream.js.map +1 -1
- package/dist/bedrock-converse.cjs +79 -82
- package/dist/bedrock-converse.cjs.map +1 -1
- package/dist/bedrock-converse.d.cts.map +1 -1
- package/dist/bedrock-converse.d.ts.map +1 -1
- package/dist/bedrock-converse.js +80 -83
- package/dist/bedrock-converse.js.map +1 -1
- package/dist/bedrock.cjs +112 -121
- package/dist/bedrock.cjs.map +1 -1
- package/dist/bedrock.d.cts.map +1 -1
- package/dist/bedrock.d.ts.map +1 -1
- package/dist/bedrock.js +113 -122
- package/dist/bedrock.js.map +1 -1
- package/dist/cohere.cjs +58 -106
- package/dist/cohere.cjs.map +1 -1
- package/dist/cohere.d.cts.map +1 -1
- package/dist/cohere.d.ts.map +1 -1
- package/dist/cohere.js +60 -108
- package/dist/cohere.js.map +1 -1
- package/dist/config-loader.d.cts.map +1 -1
- package/dist/config-loader.d.ts.map +1 -1
- package/dist/fixture-loader.cjs +103 -2
- package/dist/fixture-loader.cjs.map +1 -1
- package/dist/fixture-loader.d.cts.map +1 -1
- package/dist/fixture-loader.d.ts.map +1 -1
- package/dist/fixture-loader.js +104 -4
- package/dist/fixture-loader.js.map +1 -1
- package/dist/gemini-interactions.cjs +63 -121
- package/dist/gemini-interactions.cjs.map +1 -1
- package/dist/gemini-interactions.d.cts.map +1 -1
- package/dist/gemini-interactions.d.ts.map +1 -1
- package/dist/gemini-interactions.js +65 -123
- package/dist/gemini-interactions.js.map +1 -1
- package/dist/gemini.cjs +242 -155
- package/dist/gemini.cjs.map +1 -1
- package/dist/gemini.d.cts.map +1 -1
- package/dist/gemini.d.ts.map +1 -1
- package/dist/gemini.js +244 -157
- package/dist/gemini.js.map +1 -1
- package/dist/helpers.cjs +400 -7
- package/dist/helpers.cjs.map +1 -1
- package/dist/helpers.d.cts +51 -1
- package/dist/helpers.d.cts.map +1 -1
- package/dist/helpers.d.ts +51 -1
- package/dist/helpers.d.ts.map +1 -1
- package/dist/helpers.js +391 -8
- package/dist/helpers.js.map +1 -1
- package/dist/index.cjs +4 -2
- package/dist/index.d.cts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +4 -4
- package/dist/mcp-fakes.d.cts.map +1 -1
- package/dist/messages.cjs +159 -141
- package/dist/messages.cjs.map +1 -1
- package/dist/messages.d.cts.map +1 -1
- package/dist/messages.d.ts.map +1 -1
- package/dist/messages.js +161 -143
- package/dist/messages.js.map +1 -1
- package/dist/misbehavior.cjs +62 -3
- package/dist/misbehavior.cjs.map +1 -1
- package/dist/misbehavior.d.cts.map +1 -1
- package/dist/misbehavior.d.ts.map +1 -1
- package/dist/misbehavior.js +63 -4
- package/dist/misbehavior.js.map +1 -1
- package/dist/ndjson-writer.cjs +21 -23
- package/dist/ndjson-writer.cjs.map +1 -1
- package/dist/ndjson-writer.d.cts +0 -1
- package/dist/ndjson-writer.d.cts.map +1 -1
- package/dist/ndjson-writer.d.ts +0 -1
- package/dist/ndjson-writer.d.ts.map +1 -1
- package/dist/ndjson-writer.js +21 -24
- package/dist/ndjson-writer.js.map +1 -1
- package/dist/ollama.cjs +153 -147
- package/dist/ollama.cjs.map +1 -1
- package/dist/ollama.d.cts.map +1 -1
- package/dist/ollama.d.ts.map +1 -1
- package/dist/ollama.js +155 -149
- package/dist/ollama.js.map +1 -1
- package/dist/openrouter-chat.cjs +1 -1
- package/dist/openrouter-chat.js +1 -1
- package/dist/raw-validation.cjs +177 -0
- package/dist/raw-validation.cjs.map +1 -0
- package/dist/raw-validation.js +176 -0
- package/dist/raw-validation.js.map +1 -0
- package/dist/response/deliver.cjs +144 -0
- package/dist/response/deliver.cjs.map +1 -0
- package/dist/response/deliver.js +143 -0
- package/dist/response/deliver.js.map +1 -0
- package/dist/response/frame-loop.cjs +102 -0
- package/dist/response/frame-loop.cjs.map +1 -0
- package/dist/response/frame-loop.js +100 -0
- package/dist/response/frame-loop.js.map +1 -0
- package/dist/response/lifecycle.cjs +223 -0
- package/dist/response/lifecycle.cjs.map +1 -0
- package/dist/response/lifecycle.js +211 -0
- package/dist/response/lifecycle.js.map +1 -0
- package/dist/response/proxy.cjs +71 -0
- package/dist/response/proxy.cjs.map +1 -0
- package/dist/response/proxy.js +70 -0
- package/dist/response/proxy.js.map +1 -0
- package/dist/response/raw.cjs +228 -0
- package/dist/response/raw.cjs.map +1 -0
- package/dist/response/raw.js +227 -0
- package/dist/response/raw.js.map +1 -0
- package/dist/response/timing.cjs +157 -0
- package/dist/response/timing.cjs.map +1 -0
- package/dist/response/timing.js +150 -0
- package/dist/response/timing.js.map +1 -0
- package/dist/responses.cjs +269 -148
- package/dist/responses.cjs.map +1 -1
- package/dist/responses.d.cts.map +1 -1
- package/dist/responses.d.ts.map +1 -1
- package/dist/responses.js +270 -149
- package/dist/responses.js.map +1 -1
- package/dist/router.cjs +20 -4
- package/dist/router.cjs.map +1 -1
- package/dist/router.d.cts +7 -1
- package/dist/router.d.cts.map +1 -1
- package/dist/router.d.ts +7 -1
- package/dist/router.d.ts.map +1 -1
- package/dist/router.js +21 -5
- package/dist/router.js.map +1 -1
- package/dist/server.cjs +89 -120
- package/dist/server.cjs.map +1 -1
- package/dist/server.d.cts.map +1 -1
- package/dist/server.d.ts.map +1 -1
- package/dist/server.js +91 -122
- package/dist/server.js.map +1 -1
- package/dist/sse-writer.cjs +49 -30
- package/dist/sse-writer.cjs.map +1 -1
- package/dist/sse-writer.d.cts +0 -1
- package/dist/sse-writer.d.cts.map +1 -1
- package/dist/sse-writer.d.ts +0 -1
- package/dist/sse-writer.d.ts.map +1 -1
- package/dist/sse-writer.js +49 -31
- package/dist/sse-writer.js.map +1 -1
- package/dist/transcription.cjs +19 -33
- package/dist/transcription.cjs.map +1 -1
- package/dist/transcription.d.cts.map +1 -1
- package/dist/transcription.d.ts.map +1 -1
- package/dist/transcription.js +20 -34
- package/dist/transcription.js.map +1 -1
- package/dist/types.cjs.map +1 -1
- package/dist/types.d.cts +173 -10
- package/dist/types.d.cts.map +1 -1
- package/dist/types.d.ts +173 -10
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js.map +1 -1
- package/dist/ws-framing.cjs +12 -6
- package/dist/ws-framing.cjs.map +1 -1
- package/dist/ws-framing.d.cts +2 -0
- package/dist/ws-framing.d.cts.map +1 -1
- package/dist/ws-framing.d.ts +2 -0
- package/dist/ws-framing.d.ts.map +1 -1
- package/dist/ws-framing.js +12 -6
- package/dist/ws-framing.js.map +1 -1
- package/dist/ws-gemini-live.cjs +120 -93
- package/dist/ws-gemini-live.cjs.map +1 -1
- package/dist/ws-gemini-live.js +120 -93
- package/dist/ws-gemini-live.js.map +1 -1
- package/dist/ws-realtime.cjs +80 -70
- package/dist/ws-realtime.cjs.map +1 -1
- package/dist/ws-realtime.d.cts.map +1 -1
- package/dist/ws-realtime.d.ts.map +1 -1
- package/dist/ws-realtime.js +80 -70
- package/dist/ws-realtime.js.map +1 -1
- package/dist/ws-responses.cjs +72 -53
- package/dist/ws-responses.cjs.map +1 -1
- package/dist/ws-responses.d.cts.map +1 -1
- package/dist/ws-responses.d.ts.map +1 -1
- package/dist/ws-responses.js +73 -54
- package/dist/ws-responses.js.map +1 -1
- package/package.json +1 -1
- package/skills/write-fixtures/SKILL.md +34 -2
package/dist/types.d.cts
CHANGED
|
@@ -245,6 +245,72 @@ interface FixtureMatch {
|
|
|
245
245
|
endpoint?: "chat" | "image" | "speech" | "transcription" | "translation" | "video" | "embedding" | "audio-gen" | "elevenlabs-tts" | "elevenlabs-voice-design" | "elevenlabs-voice" | "elevenlabs-voice-get" | "elevenlabs-voice-delete" | "fal-audio" | "fal" | "realtime" | "realtime-transcription" | "realtime-translation" | "openai-live";
|
|
246
246
|
context?: string;
|
|
247
247
|
}
|
|
248
|
+
/**
|
|
249
|
+
* A web source citation attached to a text response. Served as `url_citation`
|
|
250
|
+
* annotations on OpenAI Responses (`output_text.annotations`) and Chat
|
|
251
|
+
* Completions (`message.annotations` / `delta.annotations`), as
|
|
252
|
+
* `web_search_result_location` citations on Anthropic text blocks, and as
|
|
253
|
+
* Gemini `groundingMetadata` (`groundingChunks` + `groundingSupports`).
|
|
254
|
+
*/
|
|
255
|
+
interface FixtureUrlCitation {
|
|
256
|
+
/**
|
|
257
|
+
* Optional discriminator; a citation without `type` is a URL citation. A
|
|
258
|
+
* citation that also sets file citation fields (`fileId`, `filename`,
|
|
259
|
+
* `index`) is rejected: set `type: "file"` or remove the stray fields.
|
|
260
|
+
*/
|
|
261
|
+
type?: "url";
|
|
262
|
+
url: string;
|
|
263
|
+
title?: string;
|
|
264
|
+
/**
|
|
265
|
+
* Offsets of the cited span, as UTF-16 string indices (JavaScript string
|
|
266
|
+
* positions) into the joined text of all the response's text blocks. Chat
|
|
267
|
+
* Completions, Anthropic, Gemini and Responses read them the same way;
|
|
268
|
+
* Gemini converts them to the UTF-8 byte offsets its wire carries. Default
|
|
269
|
+
* to the whole text.
|
|
270
|
+
*/
|
|
271
|
+
startIndex?: number;
|
|
272
|
+
endIndex?: number;
|
|
273
|
+
}
|
|
274
|
+
/**
|
|
275
|
+
* A citation of an uploaded file, served as a `file_citation` annotation on
|
|
276
|
+
* OpenAI Responses (`output_text.annotations`, streamed through
|
|
277
|
+
* `response.output_text.annotation.added`). Chat Completions, Anthropic
|
|
278
|
+
* Messages and Gemini have no file-citation wire shape, so they skip it and
|
|
279
|
+
* serve only the fixture's URL citations.
|
|
280
|
+
*/
|
|
281
|
+
interface FixtureFileCitation {
|
|
282
|
+
type: "file";
|
|
283
|
+
/** Wire `file_id`, e.g. `file-abc123`. */
|
|
284
|
+
fileId: string;
|
|
285
|
+
/** Wire `filename` of the cited file. */
|
|
286
|
+
filename: string;
|
|
287
|
+
/**
|
|
288
|
+
* Character position cited: a UTF-16 string index into the joined text of
|
|
289
|
+
* all the response's text blocks; defaults to the end of the text. The wire
|
|
290
|
+
* `index` is not this value: the annotation goes on the `output_text` whose
|
|
291
|
+
* text holds the position, and its `index` counts from the start of that
|
|
292
|
+
* `output_text`.
|
|
293
|
+
*/
|
|
294
|
+
index?: number;
|
|
295
|
+
}
|
|
296
|
+
/** A source citation attached to a text response: a web page or an uploaded file. */
|
|
297
|
+
type FixtureCitation = FixtureUrlCitation | FixtureFileCitation;
|
|
298
|
+
/**
|
|
299
|
+
* A model-generated file (e.g. an inline image). Served on Gemini as
|
|
300
|
+
* `inlineData` parts and on the OpenAI Responses API as
|
|
301
|
+
* `image_generation_call` output items (`image/*` files only; another
|
|
302
|
+
* `mimeType` is rejected). Chat Completions (OpenAI, Azure OpenAI, OpenRouter
|
|
303
|
+
* and BytePlus ModelArk) and Anthropic Messages cannot carry one and reject
|
|
304
|
+
* the request. Every rejection is a coded 500,
|
|
305
|
+
* `aimock_unsupported_generated_file`, sent before any content. Every other
|
|
306
|
+
* wire (Bedrock, Cohere, Ollama, Gemini Interactions and the rest) drops
|
|
307
|
+
* `files` without an error.
|
|
308
|
+
*/
|
|
309
|
+
interface FixtureGeneratedFile {
|
|
310
|
+
mimeType: string;
|
|
311
|
+
/** Base64-encoded file bytes. */
|
|
312
|
+
data: string;
|
|
313
|
+
}
|
|
248
314
|
/**
|
|
249
315
|
* Fields that override auto-generated envelope values in the built response.
|
|
250
316
|
* Scalar fields (finishReason, role) use OpenAI-canonical values — provider
|
|
@@ -256,14 +322,31 @@ interface FixtureMatch {
|
|
|
256
322
|
* When total_tokens (or provider equivalent) is omitted, it is auto-computed
|
|
257
323
|
* from the component fields.
|
|
258
324
|
*
|
|
259
|
-
* Provider support: seven fields are common (id, created, model,
|
|
260
|
-
* systemFingerprint, finishReason, role); provider and
|
|
261
|
-
* OpenRouter-only and ignored elsewhere
|
|
262
|
-
* fields
|
|
263
|
-
*
|
|
264
|
-
*
|
|
325
|
+
* Provider support: seven envelope fields are common (id, created, model,
|
|
326
|
+
* usage, systemFingerprint, finishReason, role); provider and
|
|
327
|
+
* nativeFinishReason are OpenRouter-only and ignored elsewhere; `citations`
|
|
328
|
+
* and `files` are content fields (see their docs). OpenAI Chat honors the
|
|
329
|
+
* seven common fields plus `citations` (it rejects `files`); OpenRouter
|
|
330
|
+
* additionally honors provider/nativeFinishReason; Responses API honors five
|
|
331
|
+
* common fields (no role, systemFingerprint) plus optional phase, `citations`
|
|
332
|
+
* and `files`; Claude honors five (no created, systemFingerprint) plus
|
|
333
|
+
* `citations` (it rejects `files`); Gemini honors two (only finishReason,
|
|
334
|
+
* usage) plus `citations` and `files`.
|
|
265
335
|
*/
|
|
266
336
|
interface ResponseOverrides {
|
|
337
|
+
/**
|
|
338
|
+
* Model-generated files emitted before the response text and tool calls.
|
|
339
|
+
* Served on Gemini and the OpenAI Responses API (`image/*` only); Chat
|
|
340
|
+
* Completions and Anthropic Messages reject them; every other wire drops
|
|
341
|
+
* them without an error (see {@link FixtureGeneratedFile}).
|
|
342
|
+
*/
|
|
343
|
+
files?: FixtureGeneratedFile[];
|
|
344
|
+
/**
|
|
345
|
+
* Source citations for the response text (OpenAI Responses, Chat Completions, Anthropic, Gemini).
|
|
346
|
+
* File citations are served on OpenAI Responses only; the other three skip them.
|
|
347
|
+
* Every other wire ignores `citations`.
|
|
348
|
+
*/
|
|
349
|
+
citations?: FixtureCitation[];
|
|
267
350
|
id?: string;
|
|
268
351
|
created?: number;
|
|
269
352
|
model?: string;
|
|
@@ -640,7 +723,48 @@ interface RawJSONResponse extends ResponseOverrides {
|
|
|
640
723
|
*/
|
|
641
724
|
billableUnits?: number;
|
|
642
725
|
}
|
|
643
|
-
|
|
726
|
+
/**
|
|
727
|
+
* Pass-through LLM response. aimock sends `events` (streaming) or `json`
|
|
728
|
+
* (non-streaming) as written, adding only the named wire's framing. No
|
|
729
|
+
* overrides, reasoning gating, provider shaping or drift checks apply.
|
|
730
|
+
*/
|
|
731
|
+
interface RawResponse {
|
|
732
|
+
/**
|
|
733
|
+
* The passthrough body for one wire: `events` for a streaming request,
|
|
734
|
+
* `json` for a non-streaming one, plus optional `status`, `headers` and
|
|
735
|
+
* (`openai-chat` only) `done`. The router offers the fixture only to the
|
|
736
|
+
* handler for `wire`. Checked at load (`validateFixtures`) and again when
|
|
737
|
+
* served; a fixture that fails when served gets a 500 with the code
|
|
738
|
+
* `aimock_raw_fixture_invalid`.
|
|
739
|
+
*/
|
|
740
|
+
raw: {
|
|
741
|
+
/**
|
|
742
|
+
* The wire these events belong to. The router skips the fixture on every
|
|
743
|
+
* other wire; a factory that returns it for another wire gets a 500.
|
|
744
|
+
*/
|
|
745
|
+
wire: RawWireId;
|
|
746
|
+
/** Streamed body: one entry per frame, each framed per `wire`. */
|
|
747
|
+
events?: Record<string, unknown>[];
|
|
748
|
+
/** Non-streaming body, sent as `JSON.stringify(json)`. */
|
|
749
|
+
json?: unknown;
|
|
750
|
+
/** HTTP status. Default 200. */
|
|
751
|
+
status?: number;
|
|
752
|
+
/**
|
|
753
|
+
* Extra response headers. Without a Content-Type here, a stream gets the
|
|
754
|
+
* wire's own type and a non-streaming reply gets `application/json`.
|
|
755
|
+
*/
|
|
756
|
+
headers?: Record<string, string>;
|
|
757
|
+
/** `openai-chat` only: send the terminal `data: [DONE]`. Default true. */
|
|
758
|
+
done?: boolean;
|
|
759
|
+
};
|
|
760
|
+
}
|
|
761
|
+
/**
|
|
762
|
+
* The wires a {@link RawResponse} can target: every HTTP LLM wire. Ollama has
|
|
763
|
+
* two: `ollama` is `/api/chat` and `ollama-generate` is `/api/generate`, whose
|
|
764
|
+
* frames have a different shape.
|
|
765
|
+
*/
|
|
766
|
+
type RawWireId = Exclude<WireId, "openai-realtime" | "gemini-live"> | "ollama-generate";
|
|
767
|
+
type FixtureResponse = TextResponse | ToolCallResponse | ContentWithToolCallsResponse | ErrorResponse | EmbeddingResponse | ImageResponse | AudioResponse | TranscriptionResponse | VideoResponse | RawJSONResponse | RawResponse | LiveFixtureResponse;
|
|
644
768
|
interface StreamingProfile {
|
|
645
769
|
ttft?: number;
|
|
646
770
|
tps?: number;
|
|
@@ -834,9 +958,26 @@ interface Fixture {
|
|
|
834
958
|
* non-streaming (`stream: false`) OpenAI chat completion replies (default OFF).
|
|
835
959
|
* When enabled, the single JSON reply waits about as long as the streamed
|
|
836
960
|
* reply would. Without it, non-streaming replies return immediately. Bare
|
|
837
|
-
* `latency` never delays non-streaming replies. Other providers ignore it
|
|
961
|
+
* `latency` never delays non-streaming replies. Other providers ignore it; to
|
|
962
|
+
* delay them too, use {@link Fixture.nonStreamingTimingAllProviders}.
|
|
838
963
|
*/
|
|
839
964
|
nonStreamingTiming?: boolean;
|
|
965
|
+
/**
|
|
966
|
+
* Opt into `streamingProfile` / `recordedTimings` timing on this fixture's
|
|
967
|
+
* non-streaming (`stream: false`) replies on these providers (default OFF):
|
|
968
|
+
* OpenAI Chat Completions, Anthropic Messages, OpenAI Responses, Gemini and
|
|
969
|
+
* Vertex AI `generateContent`, Gemini Interactions, Cohere v2 chat, Bedrock
|
|
970
|
+
* InvokeModel and Converse, Ollama `/api/chat` and `/api/generate`, and
|
|
971
|
+
* OpenRouter chat completions (`/api/v1/chat/completions`), which is served
|
|
972
|
+
* as OpenAI Chat Completions, so `nonStreamingTiming` also delays it.
|
|
973
|
+
* Audio transcription replies are not delayed. The delay is the same as
|
|
974
|
+
* {@link Fixture.nonStreamingTiming} gives on OpenAI Chat Completions: the
|
|
975
|
+
* single JSON reply waits about as long as the streamed reply would. It
|
|
976
|
+
* needs a `streamingProfile` or `recordedTimings`. Bare `latency` never delays
|
|
977
|
+
* non-streaming replies, and error replies are never delayed. Setting it to
|
|
978
|
+
* `false` does not turn off `nonStreamingTiming: true`.
|
|
979
|
+
*/
|
|
980
|
+
nonStreamingTimingAllProviders?: boolean;
|
|
840
981
|
metadata?: {
|
|
841
982
|
systemHash?: string;
|
|
842
983
|
toolsHash?: string;
|
|
@@ -947,7 +1088,7 @@ interface FixtureFileContentWithToolCallsResponse extends ResponseOverrides {
|
|
|
947
1088
|
redactedThinking?: string[];
|
|
948
1089
|
webSearches?: string[];
|
|
949
1090
|
}
|
|
950
|
-
type FixtureFileResponse = FixtureFileTextResponse | FixtureFileToolCallResponse | FixtureFileContentWithToolCallsResponse | ErrorResponse | EmbeddingResponse | ImageResponse | AudioResponse | TranscriptionResponse | VideoResponse | RawJSONResponse | LiveFixtureResponse;
|
|
1091
|
+
type FixtureFileResponse = FixtureFileTextResponse | FixtureFileToolCallResponse | FixtureFileContentWithToolCallsResponse | ErrorResponse | EmbeddingResponse | ImageResponse | AudioResponse | TranscriptionResponse | VideoResponse | RawJSONResponse | RawResponse | LiveFixtureResponse;
|
|
951
1092
|
interface FixtureFile {
|
|
952
1093
|
fixtures: FixtureFileEntry[];
|
|
953
1094
|
}
|
|
@@ -1001,6 +1142,8 @@ interface FixtureFileEntry {
|
|
|
1001
1142
|
openRouterProcessing?: boolean;
|
|
1002
1143
|
/** See {@link Fixture.nonStreamingTiming}. */
|
|
1003
1144
|
nonStreamingTiming?: boolean;
|
|
1145
|
+
/** See {@link Fixture.nonStreamingTimingAllProviders}. */
|
|
1146
|
+
nonStreamingTimingAllProviders?: boolean;
|
|
1004
1147
|
metadata?: {
|
|
1005
1148
|
systemHash?: string;
|
|
1006
1149
|
toolsHash?: string;
|
|
@@ -1163,6 +1306,21 @@ interface SSEDelta {
|
|
|
1163
1306
|
reasoning_details?: ReasoningTextDetail[];
|
|
1164
1307
|
reasoning_content?: string;
|
|
1165
1308
|
tool_calls?: SSEToolCallDelta[];
|
|
1309
|
+
/**
|
|
1310
|
+
* Fixture URL `citations`, sent once on their own chunk just before the
|
|
1311
|
+
* finish chunk: after the content chunks and after any tool-call chunks.
|
|
1312
|
+
*/
|
|
1313
|
+
annotations?: ChatCompletionAnnotation[];
|
|
1314
|
+
}
|
|
1315
|
+
/** A Chat Completions `url_citation` annotation (`message.annotations` / `delta.annotations`). */
|
|
1316
|
+
interface ChatCompletionAnnotation {
|
|
1317
|
+
type: "url_citation";
|
|
1318
|
+
url_citation: {
|
|
1319
|
+
url: string;
|
|
1320
|
+
title: string;
|
|
1321
|
+
start_index: number;
|
|
1322
|
+
end_index: number;
|
|
1323
|
+
};
|
|
1166
1324
|
}
|
|
1167
1325
|
interface SSEToolCallDelta {
|
|
1168
1326
|
index: number;
|
|
@@ -1216,6 +1374,11 @@ interface ChatCompletionMessage {
|
|
|
1216
1374
|
*/
|
|
1217
1375
|
reasoning?: string | null;
|
|
1218
1376
|
tool_calls?: ToolCallMessage[];
|
|
1377
|
+
/**
|
|
1378
|
+
* Fixture URL `citations`; omitted when the fixture sets none, or only file
|
|
1379
|
+
* citations (Chat Completions has no `file_citation` annotation).
|
|
1380
|
+
*/
|
|
1381
|
+
annotations?: ChatCompletionAnnotation[];
|
|
1219
1382
|
}
|
|
1220
1383
|
type RecordProviderKey = "openai" | "anthropic" | "gemini" | "gemini-interactions" | "vertexai" | "bedrock" | "azure" | "ollama" | "cohere" | "elevenlabs" | "fal" | "openrouter" | "veo" | "grok" | "byteplus";
|
|
1221
1384
|
interface RecordConfig {
|
|
@@ -1772,5 +1935,5 @@ declare const MCP_FAKE_ERROR_CODES: {
|
|
|
1772
1935
|
};
|
|
1773
1936
|
type McpFakeErrorCode = keyof typeof MCP_FAKE_ERROR_CODES;
|
|
1774
1937
|
//#endregion
|
|
1775
|
-
export { AimockPolicy, ApiKeyAuthConfig, AudioResponse, ChaosAction, ChaosConfig, ChaosDefaults, ChatCompletion, ChatCompletionChoice, ChatCompletionMessage, ChatCompletionRequest, ChatMessage, ContentPart, ContentWithToolCallsResponse, CustomToolCall, CustomToolCallMessage, CustomToolDefinition, EmbeddingFixtureOpts, EmbeddingResponse, ErrorResponse, FalQueueOpts, Fixture, FixtureBlock, FixtureFile, FixtureFileBlock, FixtureFileContentWithToolCallsResponse, FixtureFileCustomToolCall, FixtureFileEntry, FixtureFileResponse, FixtureFileResponsesBlock, FixtureFileTextResponse, FixtureFileToolCall, FixtureFileToolCallResponse, FixtureMatch, FixtureOpts, FixtureResponse, FixtureToolCall, HandlerDefaults, ImageItem, ImageResponse, JournalBody, JournalEntry, MCP_FAKE_ERROR_CODES, McpFakeAnnotations, McpFakeBlock, McpFakeCall, McpFakeCallAnswer, McpFakeCallMatch, McpFakeContentBlock, McpFakeDeepReadonly, McpFakeErrorCode, McpFakeFullResult, McpFakeIcon, McpFakeIdentity, McpFakeNotification, McpFakeOutcome, McpFakeRecorded, McpFakeResourceContents, McpFakeResult, McpFakeScope, McpFakeSource, McpFakeStructuredResult, McpFakeTool, McpFakeUndeclaredPolicy, McpRecordConfig, MisbehaviorConfig, MisbehaviorCounterKey, MisbehaviorCounters, MisbehaviorFault, MisbehaviorFaultId, MockServerOptions, Mountable, RawJSONResponse, RecordConfig, RecordProviderKey, RecordedTimings, ResponseFactory, ResponseOverrides, ResponsesFixtureBlock, ResponsesToolsMode, SSEChoice, SSEChunk, SSEDelta, SSEToolCallDelta, StreamingProfile, TextResponse, ToolCall, ToolCallMessage, ToolCallResponse, ToolDefinition, TranscriptionResponse, VideoResponse, VoiceDesignPreview, VoiceDesignResponse, WireId };
|
|
1938
|
+
export { AimockPolicy, ApiKeyAuthConfig, AudioResponse, ChaosAction, ChaosConfig, ChaosDefaults, ChatCompletion, ChatCompletionAnnotation, ChatCompletionChoice, ChatCompletionMessage, ChatCompletionRequest, ChatMessage, ContentPart, ContentWithToolCallsResponse, CustomToolCall, CustomToolCallMessage, CustomToolDefinition, EmbeddingFixtureOpts, EmbeddingResponse, ErrorResponse, FalQueueOpts, Fixture, FixtureBlock, FixtureCitation, FixtureFile, FixtureFileBlock, FixtureFileCitation, FixtureFileContentWithToolCallsResponse, FixtureFileCustomToolCall, FixtureFileEntry, FixtureFileResponse, FixtureFileResponsesBlock, FixtureFileTextResponse, FixtureFileToolCall, FixtureFileToolCallResponse, FixtureGeneratedFile, FixtureMatch, FixtureOpts, FixtureResponse, FixtureToolCall, FixtureUrlCitation, HandlerDefaults, ImageItem, ImageResponse, JournalBody, JournalEntry, MCP_FAKE_ERROR_CODES, McpFakeAnnotations, McpFakeBlock, McpFakeCall, McpFakeCallAnswer, McpFakeCallMatch, McpFakeContentBlock, McpFakeDeepReadonly, McpFakeErrorCode, McpFakeFullResult, McpFakeIcon, McpFakeIdentity, McpFakeNotification, McpFakeOutcome, McpFakeRecorded, McpFakeResourceContents, McpFakeResult, McpFakeScope, McpFakeSource, McpFakeStructuredResult, McpFakeTool, McpFakeUndeclaredPolicy, McpRecordConfig, MisbehaviorConfig, MisbehaviorCounterKey, MisbehaviorCounters, MisbehaviorFault, MisbehaviorFaultId, MockServerOptions, Mountable, RawJSONResponse, RawResponse, RawWireId, RecordConfig, RecordProviderKey, RecordedTimings, ResponseFactory, ResponseOverrides, ResponsesFixtureBlock, ResponsesToolsMode, SSEChoice, SSEChunk, SSEDelta, SSEToolCallDelta, StreamingProfile, TextResponse, ToolCall, ToolCallMessage, ToolCallResponse, ToolDefinition, TranscriptionResponse, VideoResponse, VoiceDesignPreview, VoiceDesignResponse, WireId };
|
|
1776
1939
|
//# sourceMappingURL=types.d.cts.map
|
package/dist/types.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.cts","names":[],"sources":["../src/types.ts"],"sourcesContent":[],"mappings":";;;;;;;;;;UAWiB,SAAA;qBAER,MAAA,CAAK,sBACL,MAAA,CAAK,mCAET;EALY,aAAS,EAAA,MAAA,EAMD,GAAA,CAAI,MANH,EAAA,IAAA,EAMiB,MANjB,EAAA,QAAA,EAAA,MAAA,CAAA,EAM4C,OAN5C,CAAA,OAAA,CAAA;EAAA,MAAA,GAAA,EAAA;IAEjB,MAAK,EAAA,MAAA;IACL,CAAA,GAAA,EAAK,MAAA,CAAA,EAAA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C;oBACO;aACP;cACC;;;;;;;;kBAQI;;;;;;KASN,YAAA,cAER;;;KACA;;;;;;;;KAMQ,yBAAyB,4CACjC,IACA,0CACyB,IAAI,oBAAoB,EAAE,QACjD;;UAGW,kBAAA;aACJ;;;;;;;UAQI,WAAA;;;;;;;KAQL,uBAAA;;;UAGF;;;;;;;;KAGL,oBAAA;gBACW;UACN;;;KAIE,mBAAA,GAAsB;;;;;;;;;;;;;;;;;;;UAalB;;;YAEoB;;;UAInB,iBAAA;WACN;;sBAEW;UACZ;;;;;;KAOE,uBAAA,GAA0B;;;;;;;;;;;;KAa1B,aAAA,YAER,wBACA,oBACA;;KAGQ,gBAAA;QACA;;;;;;;KAIA,iBAAA;UACE;;;;;;;KAIF,WAAA,GAAc,mBACxB;;;kBAGkB;;;;;UAMH,WAAA;;;gBAGD;SACP;;;UAIQ,YAAA;SACR;;oBAEW;SACX;;SAEA;;aAEI;;;;;UAMI,eAAA;;;;eAIF;;;;;;UAOE,eAAA;;;;;;;;;;;;;UAcA,mBAAA;;;UAGP;;KAGE,uBAAA;;;;;;;;UASK,eAAA;;;cAGH;;;;;;UAOG,aAAA;;;;;;;;;KAUL,cAAA;;;;;;;cAQC;;;;;;KAOD,gBAAA,gBAAgC"}
|
package/dist/types.d.ts
CHANGED
|
@@ -245,6 +245,72 @@ interface FixtureMatch {
|
|
|
245
245
|
endpoint?: "chat" | "image" | "speech" | "transcription" | "translation" | "video" | "embedding" | "audio-gen" | "elevenlabs-tts" | "elevenlabs-voice-design" | "elevenlabs-voice" | "elevenlabs-voice-get" | "elevenlabs-voice-delete" | "fal-audio" | "fal" | "realtime" | "realtime-transcription" | "realtime-translation" | "openai-live";
|
|
246
246
|
context?: string;
|
|
247
247
|
}
|
|
248
|
+
/**
|
|
249
|
+
* A web source citation attached to a text response. Served as `url_citation`
|
|
250
|
+
* annotations on OpenAI Responses (`output_text.annotations`) and Chat
|
|
251
|
+
* Completions (`message.annotations` / `delta.annotations`), as
|
|
252
|
+
* `web_search_result_location` citations on Anthropic text blocks, and as
|
|
253
|
+
* Gemini `groundingMetadata` (`groundingChunks` + `groundingSupports`).
|
|
254
|
+
*/
|
|
255
|
+
interface FixtureUrlCitation {
|
|
256
|
+
/**
|
|
257
|
+
* Optional discriminator; a citation without `type` is a URL citation. A
|
|
258
|
+
* citation that also sets file citation fields (`fileId`, `filename`,
|
|
259
|
+
* `index`) is rejected: set `type: "file"` or remove the stray fields.
|
|
260
|
+
*/
|
|
261
|
+
type?: "url";
|
|
262
|
+
url: string;
|
|
263
|
+
title?: string;
|
|
264
|
+
/**
|
|
265
|
+
* Offsets of the cited span, as UTF-16 string indices (JavaScript string
|
|
266
|
+
* positions) into the joined text of all the response's text blocks. Chat
|
|
267
|
+
* Completions, Anthropic, Gemini and Responses read them the same way;
|
|
268
|
+
* Gemini converts them to the UTF-8 byte offsets its wire carries. Default
|
|
269
|
+
* to the whole text.
|
|
270
|
+
*/
|
|
271
|
+
startIndex?: number;
|
|
272
|
+
endIndex?: number;
|
|
273
|
+
}
|
|
274
|
+
/**
|
|
275
|
+
* A citation of an uploaded file, served as a `file_citation` annotation on
|
|
276
|
+
* OpenAI Responses (`output_text.annotations`, streamed through
|
|
277
|
+
* `response.output_text.annotation.added`). Chat Completions, Anthropic
|
|
278
|
+
* Messages and Gemini have no file-citation wire shape, so they skip it and
|
|
279
|
+
* serve only the fixture's URL citations.
|
|
280
|
+
*/
|
|
281
|
+
interface FixtureFileCitation {
|
|
282
|
+
type: "file";
|
|
283
|
+
/** Wire `file_id`, e.g. `file-abc123`. */
|
|
284
|
+
fileId: string;
|
|
285
|
+
/** Wire `filename` of the cited file. */
|
|
286
|
+
filename: string;
|
|
287
|
+
/**
|
|
288
|
+
* Character position cited: a UTF-16 string index into the joined text of
|
|
289
|
+
* all the response's text blocks; defaults to the end of the text. The wire
|
|
290
|
+
* `index` is not this value: the annotation goes on the `output_text` whose
|
|
291
|
+
* text holds the position, and its `index` counts from the start of that
|
|
292
|
+
* `output_text`.
|
|
293
|
+
*/
|
|
294
|
+
index?: number;
|
|
295
|
+
}
|
|
296
|
+
/** A source citation attached to a text response: a web page or an uploaded file. */
|
|
297
|
+
type FixtureCitation = FixtureUrlCitation | FixtureFileCitation;
|
|
298
|
+
/**
|
|
299
|
+
* A model-generated file (e.g. an inline image). Served on Gemini as
|
|
300
|
+
* `inlineData` parts and on the OpenAI Responses API as
|
|
301
|
+
* `image_generation_call` output items (`image/*` files only; another
|
|
302
|
+
* `mimeType` is rejected). Chat Completions (OpenAI, Azure OpenAI, OpenRouter
|
|
303
|
+
* and BytePlus ModelArk) and Anthropic Messages cannot carry one and reject
|
|
304
|
+
* the request. Every rejection is a coded 500,
|
|
305
|
+
* `aimock_unsupported_generated_file`, sent before any content. Every other
|
|
306
|
+
* wire (Bedrock, Cohere, Ollama, Gemini Interactions and the rest) drops
|
|
307
|
+
* `files` without an error.
|
|
308
|
+
*/
|
|
309
|
+
interface FixtureGeneratedFile {
|
|
310
|
+
mimeType: string;
|
|
311
|
+
/** Base64-encoded file bytes. */
|
|
312
|
+
data: string;
|
|
313
|
+
}
|
|
248
314
|
/**
|
|
249
315
|
* Fields that override auto-generated envelope values in the built response.
|
|
250
316
|
* Scalar fields (finishReason, role) use OpenAI-canonical values — provider
|
|
@@ -256,14 +322,31 @@ interface FixtureMatch {
|
|
|
256
322
|
* When total_tokens (or provider equivalent) is omitted, it is auto-computed
|
|
257
323
|
* from the component fields.
|
|
258
324
|
*
|
|
259
|
-
* Provider support: seven fields are common (id, created, model,
|
|
260
|
-
* systemFingerprint, finishReason, role); provider and
|
|
261
|
-
* OpenRouter-only and ignored elsewhere
|
|
262
|
-
* fields
|
|
263
|
-
*
|
|
264
|
-
*
|
|
325
|
+
* Provider support: seven envelope fields are common (id, created, model,
|
|
326
|
+
* usage, systemFingerprint, finishReason, role); provider and
|
|
327
|
+
* nativeFinishReason are OpenRouter-only and ignored elsewhere; `citations`
|
|
328
|
+
* and `files` are content fields (see their docs). OpenAI Chat honors the
|
|
329
|
+
* seven common fields plus `citations` (it rejects `files`); OpenRouter
|
|
330
|
+
* additionally honors provider/nativeFinishReason; Responses API honors five
|
|
331
|
+
* common fields (no role, systemFingerprint) plus optional phase, `citations`
|
|
332
|
+
* and `files`; Claude honors five (no created, systemFingerprint) plus
|
|
333
|
+
* `citations` (it rejects `files`); Gemini honors two (only finishReason,
|
|
334
|
+
* usage) plus `citations` and `files`.
|
|
265
335
|
*/
|
|
266
336
|
interface ResponseOverrides {
|
|
337
|
+
/**
|
|
338
|
+
* Model-generated files emitted before the response text and tool calls.
|
|
339
|
+
* Served on Gemini and the OpenAI Responses API (`image/*` only); Chat
|
|
340
|
+
* Completions and Anthropic Messages reject them; every other wire drops
|
|
341
|
+
* them without an error (see {@link FixtureGeneratedFile}).
|
|
342
|
+
*/
|
|
343
|
+
files?: FixtureGeneratedFile[];
|
|
344
|
+
/**
|
|
345
|
+
* Source citations for the response text (OpenAI Responses, Chat Completions, Anthropic, Gemini).
|
|
346
|
+
* File citations are served on OpenAI Responses only; the other three skip them.
|
|
347
|
+
* Every other wire ignores `citations`.
|
|
348
|
+
*/
|
|
349
|
+
citations?: FixtureCitation[];
|
|
267
350
|
id?: string;
|
|
268
351
|
created?: number;
|
|
269
352
|
model?: string;
|
|
@@ -640,7 +723,48 @@ interface RawJSONResponse extends ResponseOverrides {
|
|
|
640
723
|
*/
|
|
641
724
|
billableUnits?: number;
|
|
642
725
|
}
|
|
643
|
-
|
|
726
|
+
/**
|
|
727
|
+
* Pass-through LLM response. aimock sends `events` (streaming) or `json`
|
|
728
|
+
* (non-streaming) as written, adding only the named wire's framing. No
|
|
729
|
+
* overrides, reasoning gating, provider shaping or drift checks apply.
|
|
730
|
+
*/
|
|
731
|
+
interface RawResponse {
|
|
732
|
+
/**
|
|
733
|
+
* The passthrough body for one wire: `events` for a streaming request,
|
|
734
|
+
* `json` for a non-streaming one, plus optional `status`, `headers` and
|
|
735
|
+
* (`openai-chat` only) `done`. The router offers the fixture only to the
|
|
736
|
+
* handler for `wire`. Checked at load (`validateFixtures`) and again when
|
|
737
|
+
* served; a fixture that fails when served gets a 500 with the code
|
|
738
|
+
* `aimock_raw_fixture_invalid`.
|
|
739
|
+
*/
|
|
740
|
+
raw: {
|
|
741
|
+
/**
|
|
742
|
+
* The wire these events belong to. The router skips the fixture on every
|
|
743
|
+
* other wire; a factory that returns it for another wire gets a 500.
|
|
744
|
+
*/
|
|
745
|
+
wire: RawWireId;
|
|
746
|
+
/** Streamed body: one entry per frame, each framed per `wire`. */
|
|
747
|
+
events?: Record<string, unknown>[];
|
|
748
|
+
/** Non-streaming body, sent as `JSON.stringify(json)`. */
|
|
749
|
+
json?: unknown;
|
|
750
|
+
/** HTTP status. Default 200. */
|
|
751
|
+
status?: number;
|
|
752
|
+
/**
|
|
753
|
+
* Extra response headers. Without a Content-Type here, a stream gets the
|
|
754
|
+
* wire's own type and a non-streaming reply gets `application/json`.
|
|
755
|
+
*/
|
|
756
|
+
headers?: Record<string, string>;
|
|
757
|
+
/** `openai-chat` only: send the terminal `data: [DONE]`. Default true. */
|
|
758
|
+
done?: boolean;
|
|
759
|
+
};
|
|
760
|
+
}
|
|
761
|
+
/**
|
|
762
|
+
* The wires a {@link RawResponse} can target: every HTTP LLM wire. Ollama has
|
|
763
|
+
* two: `ollama` is `/api/chat` and `ollama-generate` is `/api/generate`, whose
|
|
764
|
+
* frames have a different shape.
|
|
765
|
+
*/
|
|
766
|
+
type RawWireId = Exclude<WireId, "openai-realtime" | "gemini-live"> | "ollama-generate";
|
|
767
|
+
type FixtureResponse = TextResponse | ToolCallResponse | ContentWithToolCallsResponse | ErrorResponse | EmbeddingResponse | ImageResponse | AudioResponse | TranscriptionResponse | VideoResponse | RawJSONResponse | RawResponse | LiveFixtureResponse;
|
|
644
768
|
interface StreamingProfile {
|
|
645
769
|
ttft?: number;
|
|
646
770
|
tps?: number;
|
|
@@ -834,9 +958,26 @@ interface Fixture {
|
|
|
834
958
|
* non-streaming (`stream: false`) OpenAI chat completion replies (default OFF).
|
|
835
959
|
* When enabled, the single JSON reply waits about as long as the streamed
|
|
836
960
|
* reply would. Without it, non-streaming replies return immediately. Bare
|
|
837
|
-
* `latency` never delays non-streaming replies. Other providers ignore it
|
|
961
|
+
* `latency` never delays non-streaming replies. Other providers ignore it; to
|
|
962
|
+
* delay them too, use {@link Fixture.nonStreamingTimingAllProviders}.
|
|
838
963
|
*/
|
|
839
964
|
nonStreamingTiming?: boolean;
|
|
965
|
+
/**
|
|
966
|
+
* Opt into `streamingProfile` / `recordedTimings` timing on this fixture's
|
|
967
|
+
* non-streaming (`stream: false`) replies on these providers (default OFF):
|
|
968
|
+
* OpenAI Chat Completions, Anthropic Messages, OpenAI Responses, Gemini and
|
|
969
|
+
* Vertex AI `generateContent`, Gemini Interactions, Cohere v2 chat, Bedrock
|
|
970
|
+
* InvokeModel and Converse, Ollama `/api/chat` and `/api/generate`, and
|
|
971
|
+
* OpenRouter chat completions (`/api/v1/chat/completions`), which is served
|
|
972
|
+
* as OpenAI Chat Completions, so `nonStreamingTiming` also delays it.
|
|
973
|
+
* Audio transcription replies are not delayed. The delay is the same as
|
|
974
|
+
* {@link Fixture.nonStreamingTiming} gives on OpenAI Chat Completions: the
|
|
975
|
+
* single JSON reply waits about as long as the streamed reply would. It
|
|
976
|
+
* needs a `streamingProfile` or `recordedTimings`. Bare `latency` never delays
|
|
977
|
+
* non-streaming replies, and error replies are never delayed. Setting it to
|
|
978
|
+
* `false` does not turn off `nonStreamingTiming: true`.
|
|
979
|
+
*/
|
|
980
|
+
nonStreamingTimingAllProviders?: boolean;
|
|
840
981
|
metadata?: {
|
|
841
982
|
systemHash?: string;
|
|
842
983
|
toolsHash?: string;
|
|
@@ -947,7 +1088,7 @@ interface FixtureFileContentWithToolCallsResponse extends ResponseOverrides {
|
|
|
947
1088
|
redactedThinking?: string[];
|
|
948
1089
|
webSearches?: string[];
|
|
949
1090
|
}
|
|
950
|
-
type FixtureFileResponse = FixtureFileTextResponse | FixtureFileToolCallResponse | FixtureFileContentWithToolCallsResponse | ErrorResponse | EmbeddingResponse | ImageResponse | AudioResponse | TranscriptionResponse | VideoResponse | RawJSONResponse | LiveFixtureResponse;
|
|
1091
|
+
type FixtureFileResponse = FixtureFileTextResponse | FixtureFileToolCallResponse | FixtureFileContentWithToolCallsResponse | ErrorResponse | EmbeddingResponse | ImageResponse | AudioResponse | TranscriptionResponse | VideoResponse | RawJSONResponse | RawResponse | LiveFixtureResponse;
|
|
951
1092
|
interface FixtureFile {
|
|
952
1093
|
fixtures: FixtureFileEntry[];
|
|
953
1094
|
}
|
|
@@ -1001,6 +1142,8 @@ interface FixtureFileEntry {
|
|
|
1001
1142
|
openRouterProcessing?: boolean;
|
|
1002
1143
|
/** See {@link Fixture.nonStreamingTiming}. */
|
|
1003
1144
|
nonStreamingTiming?: boolean;
|
|
1145
|
+
/** See {@link Fixture.nonStreamingTimingAllProviders}. */
|
|
1146
|
+
nonStreamingTimingAllProviders?: boolean;
|
|
1004
1147
|
metadata?: {
|
|
1005
1148
|
systemHash?: string;
|
|
1006
1149
|
toolsHash?: string;
|
|
@@ -1163,6 +1306,21 @@ interface SSEDelta {
|
|
|
1163
1306
|
reasoning_details?: ReasoningTextDetail[];
|
|
1164
1307
|
reasoning_content?: string;
|
|
1165
1308
|
tool_calls?: SSEToolCallDelta[];
|
|
1309
|
+
/**
|
|
1310
|
+
* Fixture URL `citations`, sent once on their own chunk just before the
|
|
1311
|
+
* finish chunk: after the content chunks and after any tool-call chunks.
|
|
1312
|
+
*/
|
|
1313
|
+
annotations?: ChatCompletionAnnotation[];
|
|
1314
|
+
}
|
|
1315
|
+
/** A Chat Completions `url_citation` annotation (`message.annotations` / `delta.annotations`). */
|
|
1316
|
+
interface ChatCompletionAnnotation {
|
|
1317
|
+
type: "url_citation";
|
|
1318
|
+
url_citation: {
|
|
1319
|
+
url: string;
|
|
1320
|
+
title: string;
|
|
1321
|
+
start_index: number;
|
|
1322
|
+
end_index: number;
|
|
1323
|
+
};
|
|
1166
1324
|
}
|
|
1167
1325
|
interface SSEToolCallDelta {
|
|
1168
1326
|
index: number;
|
|
@@ -1216,6 +1374,11 @@ interface ChatCompletionMessage {
|
|
|
1216
1374
|
*/
|
|
1217
1375
|
reasoning?: string | null;
|
|
1218
1376
|
tool_calls?: ToolCallMessage[];
|
|
1377
|
+
/**
|
|
1378
|
+
* Fixture URL `citations`; omitted when the fixture sets none, or only file
|
|
1379
|
+
* citations (Chat Completions has no `file_citation` annotation).
|
|
1380
|
+
*/
|
|
1381
|
+
annotations?: ChatCompletionAnnotation[];
|
|
1219
1382
|
}
|
|
1220
1383
|
type RecordProviderKey = "openai" | "anthropic" | "gemini" | "gemini-interactions" | "vertexai" | "bedrock" | "azure" | "ollama" | "cohere" | "elevenlabs" | "fal" | "openrouter" | "veo" | "grok" | "byteplus";
|
|
1221
1384
|
interface RecordConfig {
|
|
@@ -1772,5 +1935,5 @@ declare const MCP_FAKE_ERROR_CODES: {
|
|
|
1772
1935
|
};
|
|
1773
1936
|
type McpFakeErrorCode = keyof typeof MCP_FAKE_ERROR_CODES;
|
|
1774
1937
|
//#endregion
|
|
1775
|
-
export { AimockPolicy, ApiKeyAuthConfig, AudioResponse, ChaosAction, ChaosConfig, ChaosDefaults, ChatCompletion, ChatCompletionChoice, ChatCompletionMessage, ChatCompletionRequest, ChatMessage, ContentPart, ContentWithToolCallsResponse, CustomToolCall, CustomToolCallMessage, CustomToolDefinition, EmbeddingFixtureOpts, EmbeddingResponse, ErrorResponse, FalQueueOpts, Fixture, FixtureBlock, FixtureFile, FixtureFileBlock, FixtureFileContentWithToolCallsResponse, FixtureFileCustomToolCall, FixtureFileEntry, FixtureFileResponse, FixtureFileResponsesBlock, FixtureFileTextResponse, FixtureFileToolCall, FixtureFileToolCallResponse, FixtureMatch, FixtureOpts, FixtureResponse, FixtureToolCall, HandlerDefaults, ImageItem, ImageResponse, JournalBody, JournalEntry, MCP_FAKE_ERROR_CODES, McpFakeAnnotations, McpFakeBlock, McpFakeCall, McpFakeCallAnswer, McpFakeCallMatch, McpFakeContentBlock, McpFakeDeepReadonly, McpFakeErrorCode, McpFakeFullResult, McpFakeIcon, McpFakeIdentity, McpFakeNotification, McpFakeOutcome, McpFakeRecorded, McpFakeResourceContents, McpFakeResult, McpFakeScope, McpFakeSource, McpFakeStructuredResult, McpFakeTool, McpFakeUndeclaredPolicy, McpRecordConfig, MisbehaviorConfig, MisbehaviorCounterKey, MisbehaviorCounters, MisbehaviorFault, MisbehaviorFaultId, MockServerOptions, Mountable, RawJSONResponse, RecordConfig, RecordProviderKey, RecordedTimings, ResponseFactory, ResponseOverrides, ResponsesFixtureBlock, ResponsesToolsMode, SSEChoice, SSEChunk, SSEDelta, SSEToolCallDelta, StreamingProfile, TextResponse, ToolCall, ToolCallMessage, ToolCallResponse, ToolDefinition, TranscriptionResponse, VideoResponse, VoiceDesignPreview, VoiceDesignResponse, WireId };
|
|
1938
|
+
export { AimockPolicy, ApiKeyAuthConfig, AudioResponse, ChaosAction, ChaosConfig, ChaosDefaults, ChatCompletion, ChatCompletionAnnotation, ChatCompletionChoice, ChatCompletionMessage, ChatCompletionRequest, ChatMessage, ContentPart, ContentWithToolCallsResponse, CustomToolCall, CustomToolCallMessage, CustomToolDefinition, EmbeddingFixtureOpts, EmbeddingResponse, ErrorResponse, FalQueueOpts, Fixture, FixtureBlock, FixtureCitation, FixtureFile, FixtureFileBlock, FixtureFileCitation, FixtureFileContentWithToolCallsResponse, FixtureFileCustomToolCall, FixtureFileEntry, FixtureFileResponse, FixtureFileResponsesBlock, FixtureFileTextResponse, FixtureFileToolCall, FixtureFileToolCallResponse, FixtureGeneratedFile, FixtureMatch, FixtureOpts, FixtureResponse, FixtureToolCall, FixtureUrlCitation, HandlerDefaults, ImageItem, ImageResponse, JournalBody, JournalEntry, MCP_FAKE_ERROR_CODES, McpFakeAnnotations, McpFakeBlock, McpFakeCall, McpFakeCallAnswer, McpFakeCallMatch, McpFakeContentBlock, McpFakeDeepReadonly, McpFakeErrorCode, McpFakeFullResult, McpFakeIcon, McpFakeIdentity, McpFakeNotification, McpFakeOutcome, McpFakeRecorded, McpFakeResourceContents, McpFakeResult, McpFakeScope, McpFakeSource, McpFakeStructuredResult, McpFakeTool, McpFakeUndeclaredPolicy, McpRecordConfig, MisbehaviorConfig, MisbehaviorCounterKey, MisbehaviorCounters, MisbehaviorFault, MisbehaviorFaultId, MockServerOptions, Mountable, RawJSONResponse, RawResponse, RawWireId, RecordConfig, RecordProviderKey, RecordedTimings, ResponseFactory, ResponseOverrides, ResponsesFixtureBlock, ResponsesToolsMode, SSEChoice, SSEChunk, SSEDelta, SSEToolCallDelta, StreamingProfile, TextResponse, ToolCall, ToolCallMessage, ToolCallResponse, ToolDefinition, TranscriptionResponse, VideoResponse, VoiceDesignPreview, VoiceDesignResponse, WireId };
|
|
1776
1939
|
//# sourceMappingURL=types.d.ts.map
|
package/dist/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","names":[],"sources":["../src/types.ts"],"sourcesContent":[],"mappings":";;;;;;;;;;UAWiB,SAAA;qBAER,MAAA,CAAK,sBACL,MAAA,CAAK,mCAET;EALY,aAAS,EAAA,MAAA,EAMD,GAAA,CAAI,MANH,EAAA,IAAA,EAMiB,MANjB,EAAA,QAAA,EAAA,MAAA,CAAA,EAM4C,OAN5C,CAAA,OAAA,CAAA;EAAA,MAAA,GAAA,EAAA;IAEjB,MAAK,EAAA,MAAA;IACL,CAAA,GAAA,EAAK,MAAA,CAAA,EAAA,OAAA;;YAGe,EAAA,OAAA,EAEN,OAFM,CAAA,EAAA,IAAA;YAAc,EAAA,GAAA,EAAA,MAAA,CAAA,EAAA,IAAA;aAA2B,EAAA,QAAA,EAI7C,eAJ6C,CAAA,EAAA,IAAA;;;;;;;;AAwBtE;AAMA;;aAEoB,EAAA,MAAA,EAjBG,aAiBH,EAAA,EAAA,MAAA,EAjB4B,gBAiB5B,CAAA,EAjB+C,gBAiB/C;;eAQE,G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