@nemesis-oss/ollama-sdk 1.21.0 → 1.22.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/CHANGELOG.md +21 -0
- package/dist/{anthropic-C2-qaxjI.d.cts → anthropic-D8qPCPIr.d.cts} +41 -1
- package/dist/{anthropic-BFOC6eI7.d.ts → anthropic-DjdkzlIn.d.ts} +41 -1
- package/dist/generated-api.cjs +18 -0
- package/dist/generated-api.cjs.map +1 -1
- package/dist/generated-api.d.cts +48 -3
- package/dist/generated-api.d.ts +48 -3
- package/dist/generated-api.js +18 -1
- package/dist/generated-api.js.map +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js.map +1 -1
- package/dist/mcp-generated.cjs +19 -1
- package/dist/mcp-generated.cjs.map +1 -1
- package/dist/mcp-generated.js +19 -1
- package/dist/mcp-generated.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,26 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [1.22.0] — `/v1/audio/speech` recorded as a generation-excluded contract operation; MDX pin provenance for every docs source
|
|
4
|
+
|
|
5
|
+
The second daily audit claimed "zero upstream drift since d9b8601" while verifying the v1.20.0 release that had absorbed exactly the two commits landing after that (retired) pin — and missed real in-window documentation drift besides: upstream `6ef847b8` ("mlxrunner: add Phonon text-to-speech support", 2026-10-22 18:36 UTC) added a `### /v1/audio/speech` section to the OpenAI-compatibility page inside the audit's own 24-hour window. The endpoint is documented (Ollama v0.40.8+; `model`/`input` ≤ 4,096 chars/`voice`/`response_format` `wav`+`pcm`/`speed` `1`/`stream_format` `audio` supported; `instructions` and the `mp3`/`opus`/`aac`/`flac` formats unsupported; 16-bit mono 24 kHz; unsupported values rejected with `400`) but absent from upstream's own `openapi.yaml` — docs ahead of spec, so no openapi re-pin. The live openapi content itself is byte-identical to the `36a6e99` pin (raw sha256 `e94c8f02…`), confirming zero *spec* drift; the audit's error was the anchor and the unchecked MDX surfaces. This release closes the documentation-alignment gap (see [ADR 0038](./docs/adr/0038-audio-speech-contract-mdx-pin-provenance.md)). 1125 pre-existing tests stay green (including the 1.21.0 cancellation-signal suite), 8 net-new tests added.
|
|
6
|
+
|
|
7
|
+
### `/v1/audio/speech` — documented, typed, deliberately not transported
|
|
8
|
+
|
|
9
|
+
- The operation is now declared in `contracts/overlays/openai.yaml` (POST, local+cloud, `minOllamaVersion: 0.40.8`, `experimental`) with its full field-matrix `parity` block — six supported fields, `instructions` unsupported, four nested unsupported `response_format` values — so the bidirectional discovery validator (27 declared / 26 discovered, no drift) and the live-docs parity verifier both track it.
|
|
10
|
+
- Its response is a raw audio byte stream; none of the runtime's transports (`json`/`ndjson`/`sse`) can deliver it. Following the `createBlob` precedent, the op is **excluded from the generated `OpenAIApi` class and from MCP tools** (binary-transport exclusion sets in both emitters, kept in sync by a test) — advertising an executable method or tool the runtime cannot back would be a footgun. The `OperationDefinition` is still emitted for IR visibility.
|
|
11
|
+
- The typed request ships instead: `OpenAISpeechRequest` (broad — full OpenAI `response_format`/`speed` unions for drop-in interop, with `@remarks` recording that Ollama rejects unsupported *values* with `400`, unlike the usual accept-and-ignore contract) and the strict `OllamaOpenAISpeechRequest` (`wav`/`pcm` only, `speed: 1` only, no `instructions`), exported from the integrations surface for callers driving the endpoint over their own HTTP layer until an audio transport lands.
|
|
12
|
+
|
|
13
|
+
### MDX pin provenance — the last untracked sources
|
|
14
|
+
|
|
15
|
+
- Both compatibility MDX pins are refreshed from the live `docs.ollama.com` twins (`scripts/refresh-mdx-pins.ts`): the openai pin picks up the audio section (upstream `6ef847b8`), the anthropic pin picks up the retired "Recommended local models" list (upstream `33a3afa6`, 2026-10-13 — two days after the previous pin; compat tables unchanged).
|
|
16
|
+
- Each pin header now carries a machine-parseable provenance line — `Pinned from <url> on <date> (source SHA: <40-hex>)` — and `contracts/sources/docs-index.json` records `pinnedSha`/`pinnedAt` for both mdx sources. New pin-consistency tests assert header/index agreement, refresh-content markers, and base64 elision: a stale MDX pin can no longer hide behind a passing build, closing the exact defect class ADR 0036 fixed for the openapi source.
|
|
17
|
+
|
|
18
|
+
### Docs
|
|
19
|
+
|
|
20
|
+
- New [ADR 0038](./docs/adr/0038-audio-speech-contract-mdx-pin-provenance.md) recording the generation-exclusion decision (with the declined alternatives — including why the endpoint is *not* a curated openapi addition à la System One), the MDX provenance design, and the drift-anchor correction. ADR indexes updated (`docs/adr/README.md`, `docs-site/adr/index.md`).
|
|
21
|
+
- The docs-site OpenAI-compat guide's support table gains the `/v1/audio/speech` row plus a note explaining the recorded-but-not-transported status.
|
|
22
|
+
- Watch items carried (not acted on, all code-ahead-of-docs): upstream `816c36ac` (Responses-stream failure preservation) and `e61ba8b4` (reasoning before client tool calls) on the OpenAI bridge; `a79f7d74` (thinking reuse for web search) and the standing `efabf6bc` (mid-stream error events) on the Anthropic bridge. Tomorrow's audit must anchor drift tracking on `36a6e99` (openapi) and `6ef847b8`/`33a3afa6` (MDX pins) — never the retired `d9b8601`.
|
|
23
|
+
|
|
3
24
|
## [1.21.0] — `systemOne` takes a cancellation signal; the failover layer stops dropping caller signals (ADR 0037)
|
|
4
25
|
|
|
5
26
|
The Decision Plane in nexum could not bound a System One call: its `AbortSignal` never reached the wire. Tracing that found a defect in the SDK, not in nexum. `FailoverHttpClient.request` replaced the caller's signal with the failover layer's own in every attempt, so a signal passed to any runtime operation that accepts one was silently ignored. [ADR 0037](./docs/adr/0037-systemone-signal-failover-cancellation.md) records the root cause and the declined alternatives.
|
|
@@ -1111,6 +1111,46 @@ interface OpenAIEmbeddingResponse {
|
|
|
1111
1111
|
readonly total_tokens: number;
|
|
1112
1112
|
} | undefined;
|
|
1113
1113
|
}
|
|
1114
|
+
/**
|
|
1115
|
+
* Request body for OpenAI's speech endpoint (`/v1/audio/speech`), added in
|
|
1116
|
+
* Ollama v0.40.8 with the Phonon text-to-speech models.
|
|
1117
|
+
*
|
|
1118
|
+
* @remarks
|
|
1119
|
+
* The response is a raw audio byte stream (16-bit mono, 24 kHz) — `wav` by
|
|
1120
|
+
* default, or headerless little-endian `pcm` samples — not JSON, so the SDK's
|
|
1121
|
+
* generated transports (json/ndjson/sse) do not cover this endpoint yet; the
|
|
1122
|
+
* typed request is exported for callers driving the endpoint over their own
|
|
1123
|
+
* HTTP layer (see ADR 0038). Unlike other unsupported fields, Ollama rejects
|
|
1124
|
+
* unsupported VALUES here with a `400` instead of ignoring them.
|
|
1125
|
+
*/
|
|
1126
|
+
interface OpenAISpeechRequest {
|
|
1127
|
+
readonly model: string;
|
|
1128
|
+
/** Text to synthesize — up to 4,096 characters. */
|
|
1129
|
+
readonly input: string;
|
|
1130
|
+
/** One of the model's voice names (such as `Freya`); omit for the model's default. */
|
|
1131
|
+
readonly voice?: string | undefined;
|
|
1132
|
+
/**
|
|
1133
|
+
* `wav` is the default. `mp3`, `opus`, `aac`, and `flac` are documented as
|
|
1134
|
+
* unsupported — typed for OpenAI interop, but the server returns a `400`.
|
|
1135
|
+
*/
|
|
1136
|
+
readonly response_format?: 'wav' | 'pcm' | 'mp3' | 'opus' | 'aac' | 'flac' | undefined;
|
|
1137
|
+
/** Only `1` is supported; other values return a `400`. */
|
|
1138
|
+
readonly speed?: number | undefined;
|
|
1139
|
+
/** Only `audio` is supported — the response streams while audio is generated. */
|
|
1140
|
+
readonly stream_format?: 'audio' | undefined;
|
|
1141
|
+
/** @remarks Documented as unsupported by Ollama — accepted for OpenAI interop, ignored by the server. */
|
|
1142
|
+
readonly instructions?: string | undefined;
|
|
1143
|
+
}
|
|
1144
|
+
/**
|
|
1145
|
+
* Strict Ollama-documented speech request: excludes `instructions` (documented
|
|
1146
|
+
* as unsupported) and narrows `response_format` to the supported `wav`/`pcm`
|
|
1147
|
+
* and `speed` to the supported `1`, so unsupported values are compile-time
|
|
1148
|
+
* errors instead of runtime `400`s.
|
|
1149
|
+
*/
|
|
1150
|
+
type OllamaOpenAISpeechRequest = Omit<OpenAISpeechRequest, 'response_format' | 'speed' | 'instructions'> & {
|
|
1151
|
+
readonly response_format?: 'wav' | 'pcm' | undefined;
|
|
1152
|
+
readonly speed?: 1 | undefined;
|
|
1153
|
+
};
|
|
1114
1154
|
/**
|
|
1115
1155
|
* Request body for OpenAI's Responses API (`/v1/responses`), added in Ollama v0.13.3.
|
|
1116
1156
|
*
|
|
@@ -1699,4 +1739,4 @@ declare class AnthropicCompatClient {
|
|
|
1699
1739
|
messages(request: AnthropicMessagesRequest, signal?: AbortSignal): Promise<AnthropicMessagesResponse | AnthropicMessagesStream>;
|
|
1700
1740
|
}
|
|
1701
1741
|
|
|
1702
|
-
export { type OllamaAnthropicThinkingConfig as $, type AnthropicMessagesRequest as A, type AnthropicImageContentBlock as B, type AnthropicMessage as C, AnthropicMessagesStream as D, type AnthropicMetadata as E, type AnthropicOutputConfig as F, type AnthropicRedactedThinkingContentBlock as G, type AnthropicSystem as H, type AnthropicSystemTextBlock as I, type AnthropicTextContentBlock as J, type AnthropicThinkingConfig as K, type AnthropicThinkingContentBlock as L, type AnthropicTool as M, NativeApi as N, type OpenAIChatCompletionRequest as O, type AnthropicToolChoice as P, type AnthropicToolResultContentBlock as Q, type RequestRunner as R, type SystemOneChoiceAnswer as S, type AnthropicToolUseContentBlock as T, type AnthropicUnknownStreamEvent as U, type OllamaAnthropicContentBlock as V, type OllamaAnthropicMessage as W, type OllamaAnthropicMessagesRequest as X, type OllamaAnthropicSystem as Y, type OllamaAnthropicSystemTextBlock as Z, type OllamaAnthropicTextContentBlock as _, type OpenAIChatCompletionResponse as a, type
|
|
1742
|
+
export { type OllamaAnthropicThinkingConfig as $, type AnthropicMessagesRequest as A, type AnthropicImageContentBlock as B, type AnthropicMessage as C, AnthropicMessagesStream as D, type AnthropicMetadata as E, type AnthropicOutputConfig as F, type AnthropicRedactedThinkingContentBlock as G, type AnthropicSystem as H, type AnthropicSystemTextBlock as I, type AnthropicTextContentBlock as J, type AnthropicThinkingConfig as K, type AnthropicThinkingContentBlock as L, type AnthropicTool as M, NativeApi as N, type OpenAIChatCompletionRequest as O, type AnthropicToolChoice as P, type AnthropicToolResultContentBlock as Q, type RequestRunner as R, type SystemOneChoiceAnswer as S, type AnthropicToolUseContentBlock as T, type AnthropicUnknownStreamEvent as U, type OllamaAnthropicContentBlock as V, type OllamaAnthropicMessage as W, type OllamaAnthropicMessagesRequest as X, type OllamaAnthropicSystem as Y, type OllamaAnthropicSystemTextBlock as Z, type OllamaAnthropicTextContentBlock as _, type OpenAIChatCompletionResponse as a, type OpenAITextContentPart as a$, type OllamaAnthropicTool as a0, type OllamaAnthropicToolResultContentBlock as a1, type OllamaOpenAIChatCompletionRequest as a2, type OllamaOpenAIChatContentPart as a3, type OllamaOpenAIChatMessage as a4, type OllamaOpenAICompletionRequest as a5, type OllamaOpenAIEmbeddingRequest as a6, type OllamaOpenAIImageDataUrl as a7, type OllamaOpenAIReasoningEffort as a8, type OllamaOpenAIResponsesRequest as a9, type OpenAIResponsesIncompleteEvent as aA, type OpenAIResponsesOutputContent as aB, type OpenAIResponsesOutputFunctionCall as aC, type OpenAIResponsesOutputItem as aD, type OpenAIResponsesOutputItemAddedEvent as aE, type OpenAIResponsesOutputItemDoneEvent as aF, type OpenAIResponsesOutputMessage as aG, type OpenAIResponsesOutputReasoning as aH, type OpenAIResponsesOutputRefusal as aI, type OpenAIResponsesOutputTextContent as aJ, type OpenAIResponsesOutputTextDeltaEvent as aK, type OpenAIResponsesOutputTextDoneEvent as aL, type OpenAIResponsesQueuedEvent as aM, type OpenAIResponsesReasoningSummaryPartAddedEvent as aN, type OpenAIResponsesReasoningSummaryPartDoneEvent as aO, type OpenAIResponsesReasoningSummaryTextDeltaEvent as aP, type OpenAIResponsesReasoningSummaryTextDoneEvent as aQ, type OpenAIResponsesReasoningTextDeltaEvent as aR, type OpenAIResponsesReasoningTextDoneEvent as aS, type OpenAIResponsesRefusalDeltaEvent as aT, type OpenAIResponsesRefusalDoneEvent as aU, type OpenAIResponsesStatus as aV, OpenAIResponsesStream as aW, OpenAIResponsesStreamError as aX, type OpenAIResponsesUsage as aY, type OpenAISpeechRequest as aZ, type OpenAIStreamOptions as a_, type OllamaOpenAISpeechRequest as aa, type OpenAIChatCompletionChoice as ab, type OpenAIChatCompletionChunkChoice as ac, type OpenAIChatCompletionDelta as ad, OpenAIChatCompletionStream as ae, type OpenAICompletionChoice as af, OpenAICompletionStream as ag, type OpenAIContentPart as ah, type OpenAIEmbeddingInput as ai, type OpenAIEmbeddingItem as aj, type OpenAIFunctionDefinition as ak, type OpenAIImageUrlContentPart as al, type OpenAIMessage as am, type OpenAIReasoningEffort as an, type OpenAIResponseFormat as ao, type OpenAIResponsesCompletedEvent as ap, type OpenAIResponsesContentPartAddedEvent as aq, type OpenAIResponsesContentPartDoneEvent as ar, type OpenAIResponsesCreatedEvent as as, type OpenAIResponsesError as at, type OpenAIResponsesEventBase as au, type OpenAIResponsesFailedEvent as av, type OpenAIResponsesFunctionCallArgumentsDeltaEvent as aw, type OpenAIResponsesFunctionCallArgumentsDoneEvent as ax, type OpenAIResponsesInProgressEvent as ay, type OpenAIResponsesIncompleteDetails as az, type OpenAIChatCompletionChunk as b, type OpenAITool as b0, type OpenAIToolCall as b1, type OpenAIToolCallDelta as b2, type OpenAIUsage as b3, type SystemOneConfidence as b4, type SystemOneProbabilities as b5, type OpenAICompletionRequest as c, type OpenAICompletionResponse as d, type OpenAICompletionChunk as e, type OpenAIEmbeddingRequest as f, type OpenAIEmbeddingResponse as g, type OpenAIListModelsResponse as h, type OpenAIModelItem as i, type OpenAIResponsesRequest as j, type OpenAIResponsesResponse as k, type OpenAIResponsesStreamEvent as l, type AnthropicMessagesResponse as m, type AnthropicMessageStreamEvent as n, type SystemOneNoulAnswer as o, type SystemOneScoreAnswer as p, type SystemOneChoiceQuestion as q, type SystemOneNoulQuestion as r, type SystemOneScoreQuestion as s, type SystemOneRequest as t, type SystemOneResponse as u, type SystemOneContent as v, OpenAICompatClient as w, AnthropicCompatClient as x, type AnthropicCacheControl as y, type AnthropicContentBlock as z };
|
|
@@ -1111,6 +1111,46 @@ interface OpenAIEmbeddingResponse {
|
|
|
1111
1111
|
readonly total_tokens: number;
|
|
1112
1112
|
} | undefined;
|
|
1113
1113
|
}
|
|
1114
|
+
/**
|
|
1115
|
+
* Request body for OpenAI's speech endpoint (`/v1/audio/speech`), added in
|
|
1116
|
+
* Ollama v0.40.8 with the Phonon text-to-speech models.
|
|
1117
|
+
*
|
|
1118
|
+
* @remarks
|
|
1119
|
+
* The response is a raw audio byte stream (16-bit mono, 24 kHz) — `wav` by
|
|
1120
|
+
* default, or headerless little-endian `pcm` samples — not JSON, so the SDK's
|
|
1121
|
+
* generated transports (json/ndjson/sse) do not cover this endpoint yet; the
|
|
1122
|
+
* typed request is exported for callers driving the endpoint over their own
|
|
1123
|
+
* HTTP layer (see ADR 0038). Unlike other unsupported fields, Ollama rejects
|
|
1124
|
+
* unsupported VALUES here with a `400` instead of ignoring them.
|
|
1125
|
+
*/
|
|
1126
|
+
interface OpenAISpeechRequest {
|
|
1127
|
+
readonly model: string;
|
|
1128
|
+
/** Text to synthesize — up to 4,096 characters. */
|
|
1129
|
+
readonly input: string;
|
|
1130
|
+
/** One of the model's voice names (such as `Freya`); omit for the model's default. */
|
|
1131
|
+
readonly voice?: string | undefined;
|
|
1132
|
+
/**
|
|
1133
|
+
* `wav` is the default. `mp3`, `opus`, `aac`, and `flac` are documented as
|
|
1134
|
+
* unsupported — typed for OpenAI interop, but the server returns a `400`.
|
|
1135
|
+
*/
|
|
1136
|
+
readonly response_format?: 'wav' | 'pcm' | 'mp3' | 'opus' | 'aac' | 'flac' | undefined;
|
|
1137
|
+
/** Only `1` is supported; other values return a `400`. */
|
|
1138
|
+
readonly speed?: number | undefined;
|
|
1139
|
+
/** Only `audio` is supported — the response streams while audio is generated. */
|
|
1140
|
+
readonly stream_format?: 'audio' | undefined;
|
|
1141
|
+
/** @remarks Documented as unsupported by Ollama — accepted for OpenAI interop, ignored by the server. */
|
|
1142
|
+
readonly instructions?: string | undefined;
|
|
1143
|
+
}
|
|
1144
|
+
/**
|
|
1145
|
+
* Strict Ollama-documented speech request: excludes `instructions` (documented
|
|
1146
|
+
* as unsupported) and narrows `response_format` to the supported `wav`/`pcm`
|
|
1147
|
+
* and `speed` to the supported `1`, so unsupported values are compile-time
|
|
1148
|
+
* errors instead of runtime `400`s.
|
|
1149
|
+
*/
|
|
1150
|
+
type OllamaOpenAISpeechRequest = Omit<OpenAISpeechRequest, 'response_format' | 'speed' | 'instructions'> & {
|
|
1151
|
+
readonly response_format?: 'wav' | 'pcm' | undefined;
|
|
1152
|
+
readonly speed?: 1 | undefined;
|
|
1153
|
+
};
|
|
1114
1154
|
/**
|
|
1115
1155
|
* Request body for OpenAI's Responses API (`/v1/responses`), added in Ollama v0.13.3.
|
|
1116
1156
|
*
|
|
@@ -1699,4 +1739,4 @@ declare class AnthropicCompatClient {
|
|
|
1699
1739
|
messages(request: AnthropicMessagesRequest, signal?: AbortSignal): Promise<AnthropicMessagesResponse | AnthropicMessagesStream>;
|
|
1700
1740
|
}
|
|
1701
1741
|
|
|
1702
|
-
export { type OllamaAnthropicThinkingConfig as $, type AnthropicMessagesRequest as A, type AnthropicImageContentBlock as B, type AnthropicMessage as C, AnthropicMessagesStream as D, type AnthropicMetadata as E, type AnthropicOutputConfig as F, type AnthropicRedactedThinkingContentBlock as G, type AnthropicSystem as H, type AnthropicSystemTextBlock as I, type AnthropicTextContentBlock as J, type AnthropicThinkingConfig as K, type AnthropicThinkingContentBlock as L, type AnthropicTool as M, NativeApi as N, type OpenAIChatCompletionRequest as O, type AnthropicToolChoice as P, type AnthropicToolResultContentBlock as Q, type RequestRunner as R, type SystemOneChoiceAnswer as S, type AnthropicToolUseContentBlock as T, type AnthropicUnknownStreamEvent as U, type OllamaAnthropicContentBlock as V, type OllamaAnthropicMessage as W, type OllamaAnthropicMessagesRequest as X, type OllamaAnthropicSystem as Y, type OllamaAnthropicSystemTextBlock as Z, type OllamaAnthropicTextContentBlock as _, type OpenAIChatCompletionResponse as a, type
|
|
1742
|
+
export { type OllamaAnthropicThinkingConfig as $, type AnthropicMessagesRequest as A, type AnthropicImageContentBlock as B, type AnthropicMessage as C, AnthropicMessagesStream as D, type AnthropicMetadata as E, type AnthropicOutputConfig as F, type AnthropicRedactedThinkingContentBlock as G, type AnthropicSystem as H, type AnthropicSystemTextBlock as I, type AnthropicTextContentBlock as J, type AnthropicThinkingConfig as K, type AnthropicThinkingContentBlock as L, type AnthropicTool as M, NativeApi as N, type OpenAIChatCompletionRequest as O, type AnthropicToolChoice as P, type AnthropicToolResultContentBlock as Q, type RequestRunner as R, type SystemOneChoiceAnswer as S, type AnthropicToolUseContentBlock as T, type AnthropicUnknownStreamEvent as U, type OllamaAnthropicContentBlock as V, type OllamaAnthropicMessage as W, type OllamaAnthropicMessagesRequest as X, type OllamaAnthropicSystem as Y, type OllamaAnthropicSystemTextBlock as Z, type OllamaAnthropicTextContentBlock as _, type OpenAIChatCompletionResponse as a, type OpenAITextContentPart as a$, type OllamaAnthropicTool as a0, type OllamaAnthropicToolResultContentBlock as a1, type OllamaOpenAIChatCompletionRequest as a2, type OllamaOpenAIChatContentPart as a3, type OllamaOpenAIChatMessage as a4, type OllamaOpenAICompletionRequest as a5, type OllamaOpenAIEmbeddingRequest as a6, type OllamaOpenAIImageDataUrl as a7, type OllamaOpenAIReasoningEffort as a8, type OllamaOpenAIResponsesRequest as a9, type OpenAIResponsesIncompleteEvent as aA, type OpenAIResponsesOutputContent as aB, type OpenAIResponsesOutputFunctionCall as aC, type OpenAIResponsesOutputItem as aD, type OpenAIResponsesOutputItemAddedEvent as aE, type OpenAIResponsesOutputItemDoneEvent as aF, type OpenAIResponsesOutputMessage as aG, type OpenAIResponsesOutputReasoning as aH, type OpenAIResponsesOutputRefusal as aI, type OpenAIResponsesOutputTextContent as aJ, type OpenAIResponsesOutputTextDeltaEvent as aK, type OpenAIResponsesOutputTextDoneEvent as aL, type OpenAIResponsesQueuedEvent as aM, type OpenAIResponsesReasoningSummaryPartAddedEvent as aN, type OpenAIResponsesReasoningSummaryPartDoneEvent as aO, type OpenAIResponsesReasoningSummaryTextDeltaEvent as aP, type OpenAIResponsesReasoningSummaryTextDoneEvent as aQ, type OpenAIResponsesReasoningTextDeltaEvent as aR, type OpenAIResponsesReasoningTextDoneEvent as aS, type OpenAIResponsesRefusalDeltaEvent as aT, type OpenAIResponsesRefusalDoneEvent as aU, type OpenAIResponsesStatus as aV, OpenAIResponsesStream as aW, OpenAIResponsesStreamError as aX, type OpenAIResponsesUsage as aY, type OpenAISpeechRequest as aZ, type OpenAIStreamOptions as a_, type OllamaOpenAISpeechRequest as aa, type OpenAIChatCompletionChoice as ab, type OpenAIChatCompletionChunkChoice as ac, type OpenAIChatCompletionDelta as ad, OpenAIChatCompletionStream as ae, type OpenAICompletionChoice as af, OpenAICompletionStream as ag, type OpenAIContentPart as ah, type OpenAIEmbeddingInput as ai, type OpenAIEmbeddingItem as aj, type OpenAIFunctionDefinition as ak, type OpenAIImageUrlContentPart as al, type OpenAIMessage as am, type OpenAIReasoningEffort as an, type OpenAIResponseFormat as ao, type OpenAIResponsesCompletedEvent as ap, type OpenAIResponsesContentPartAddedEvent as aq, type OpenAIResponsesContentPartDoneEvent as ar, type OpenAIResponsesCreatedEvent as as, type OpenAIResponsesError as at, type OpenAIResponsesEventBase as au, type OpenAIResponsesFailedEvent as av, type OpenAIResponsesFunctionCallArgumentsDeltaEvent as aw, type OpenAIResponsesFunctionCallArgumentsDoneEvent as ax, type OpenAIResponsesInProgressEvent as ay, type OpenAIResponsesIncompleteDetails as az, type OpenAIChatCompletionChunk as b, type OpenAITool as b0, type OpenAIToolCall as b1, type OpenAIToolCallDelta as b2, type OpenAIUsage as b3, type SystemOneConfidence as b4, type SystemOneProbabilities as b5, type OpenAICompletionRequest as c, type OpenAICompletionResponse as d, type OpenAICompletionChunk as e, type OpenAIEmbeddingRequest as f, type OpenAIEmbeddingResponse as g, type OpenAIListModelsResponse as h, type OpenAIModelItem as i, type OpenAIResponsesRequest as j, type OpenAIResponsesResponse as k, type OpenAIResponsesStreamEvent as l, type AnthropicMessagesResponse as m, type AnthropicMessageStreamEvent as n, type SystemOneNoulAnswer as o, type SystemOneScoreAnswer as p, type SystemOneChoiceQuestion as q, type SystemOneNoulQuestion as r, type SystemOneScoreQuestion as s, type SystemOneRequest as t, type SystemOneResponse as u, type SystemOneContent as v, OpenAICompatClient as w, AnthropicCompatClient as x, type AnthropicCacheControl as y, type AnthropicContentBlock as z };
|
package/dist/generated-api.cjs
CHANGED
|
@@ -296,6 +296,22 @@ var webSearchOp = {
|
|
|
296
296
|
"Use OllamaClient.webSearch() \u2014 the generated NativeApi class does not expose this operation."
|
|
297
297
|
]
|
|
298
298
|
};
|
|
299
|
+
var openaiAudioSpeechOp = {
|
|
300
|
+
operationId: "openaiAudioSpeech",
|
|
301
|
+
method: "POST",
|
|
302
|
+
path: "/v1/audio/speech",
|
|
303
|
+
environment: { local: true, cloud: true },
|
|
304
|
+
transport: { mode: "json", streaming: false },
|
|
305
|
+
capabilities: {},
|
|
306
|
+
constraints: { minOllamaVersion: "0.40.8" },
|
|
307
|
+
status: { documented: true, experimental: true },
|
|
308
|
+
domain: "openai",
|
|
309
|
+
notes: [
|
|
310
|
+
"Generates audio with speech models; the response is a raw audio byte stream (16-bit mono, 24 kHz), not JSON/NDJSON/SSE \u2014 the generated runtime cannot transport it.",
|
|
311
|
+
"Recorded for endpoint-discovery completeness and docs parity tracking; excluded from the generated OpenAIApi class and from MCP tools (binary-transport exclusion).",
|
|
312
|
+
"The typed request shape is exported as OpenAISpeechRequest (src/integrations/openai.ts) for direct use until an audio transport lands."
|
|
313
|
+
]
|
|
314
|
+
};
|
|
299
315
|
var openaiChatCompletionsOp = {
|
|
300
316
|
operationId: "openaiChatCompletions",
|
|
301
317
|
method: "POST",
|
|
@@ -404,6 +420,7 @@ var allOperations = [
|
|
|
404
420
|
versionOp,
|
|
405
421
|
webFetchOp,
|
|
406
422
|
webSearchOp,
|
|
423
|
+
openaiAudioSpeechOp,
|
|
407
424
|
openaiChatCompletionsOp,
|
|
408
425
|
openaiCompletionsOp,
|
|
409
426
|
openaiEmbeddingsOp,
|
|
@@ -587,6 +604,7 @@ exports.createBlob = createBlobOp;
|
|
|
587
604
|
exports.delete = deleteOp;
|
|
588
605
|
exports.embed = embedOp;
|
|
589
606
|
exports.generate = generateOp;
|
|
607
|
+
exports.openaiAudioSpeech = openaiAudioSpeechOp;
|
|
590
608
|
exports.openaiChatCompletions = openaiChatCompletionsOp;
|
|
591
609
|
exports.openaiCompletions = openaiCompletionsOp;
|
|
592
610
|
exports.openaiEmbeddings = openaiEmbeddingsOp;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/generated/api/operations.ts","../src/generated/api/native-api.ts","../src/generated/api/openai-api.ts","../src/generated/api/anthropic-api.ts"],"names":[],"mappings":";;;AASO,IAAM,SAAA,GAAY;AAAA,EACvB,WAAA,EAAa,SAAA;AAAA,EACb,MAAA,EAAQ,KAAA;AAAA,EACR,IAAA,EAAM,cAAA;AAAA,EACN,QAAA,EAAU,EAAE,IAAA,EAAM,2BAAA,EAA4B;AAAA,EAC9C,WAAA,EAAa,EAAE,KAAA,EAAO,KAAA,EAAO,OAAO,IAAA,EAAK;AAAA,EACzC,IAAA,EAAM,oBAAA;AAAA,EACN,SAAA,EAAW,EAAE,IAAA,EAAM,MAAA,EAAQ,WAAW,KAAA,EAAM;AAAA,EAC5C,cAAc,EAAC;AAAA,EACf,MAAA,EAAQ,EAAE,UAAA,EAAY,IAAA,EAAK;AAAA,EAC3B,MAAA,EAAQ,QAAA;AAAA,EACR,KAAA,EAAO;AAAA,IACL,6FAAA;AAAA,IACA,sEAAA;AAAA,IACA,iEAAA;AAAA,IACA,wFAAA;AAAA,IACA;AAAA;AAEJ;AAEO,IAAM,OAAA,GAAU;AAAA,EACrB,WAAA,EAAa,OAAA;AAAA,EACb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":"generated-api.cjs","sourcesContent":["/**\n * AUTO-GENERATED by `npm run contract:generate`. DO NOT EDIT.\n * Source: contracts/ir/ollama.ir.json (canonical Ollama IR).\n * Each OperationDefinition captures what Ollama exposes; the runtime\n * in src/generated/runtime/runtime.ts captures how the SDK behaves.\n */\n\nimport type { OperationDefinition } from '../runtime/operation-definition.js';\n\nexport const balanceOp = {\n operationId: 'balance',\n method: 'GET',\n path: '/api/balance',\n response: { $ref: '#/schemas/BalanceResponse' },\n environment: { local: false, cloud: true },\n host: 'https://ollama.com',\n transport: { mode: 'json', streaming: false },\n capabilities: {},\n status: { documented: true },\n domain: 'native',\n notes: [\n 'Cloud-only account endpoint — targets https://ollama.com, not the local Ollama server.',\n 'Requires an Ollama Cloud API key (set via OllamaClient credentials).',\n 'Takes no parameters. For usage history see the usage operation.',\n 'Rate limited to 10 requests/minute per user; 429 responses carry a Retry-After header.',\n 'Use OllamaClient.balance() — the generated NativeApi class does not expose this operation.',\n ],\n} as const satisfies OperationDefinition;\n\nexport const blobsOp = {\n operationId: 'blobs',\n method: 'HEAD',\n path: '/api/blobs/{digest}',\n environment: { local: true, cloud: false },\n parameters: [{ name: 'digest', in: 'path', required: true, schema: { type: 'string' } }],\n transport: { mode: 'json', streaming: false },\n capabilities: {},\n status: { documented: true },\n domain: 'native',\n notes: [\n 'HEAD-only endpoint for blob existence checks; declared in OpenAPI but not in the legacy parity manifest.',\n ],\n} as const satisfies OperationDefinition;\n\nexport const chatOp = {\n operationId: 'chat',\n method: 'POST',\n path: '/api/chat',\n request: { $ref: '#/schemas/ChatRequest' },\n response: { $ref: '#/schemas/ChatResponse' },\n environment: { local: true, cloud: true },\n transport: { mode: 'ndjson', streaming: true, streamingDefault: true },\n capabilities: {\n thinking: 'model-dependent',\n tools: 'model-dependent',\n vision: 'model-dependent',\n structuredOutput: 'supported',\n logprobs: 'supported',\n },\n status: { documented: true },\n domain: 'native',\n notes: [\n 'Use /api/show to discover model-specific thinking values and defaults.',\n 'Structured output (format field) is rejected by Ollama Cloud.',\n ],\n} as const satisfies OperationDefinition;\n\nexport const copyOp = {\n operationId: 'copy',\n method: 'POST',\n path: '/api/copy',\n request: { $ref: '#/schemas/CopyRequest' },\n response: { $ref: '#/schemas/StatusResponse' },\n environment: { local: true, cloud: false },\n transport: { mode: 'json', streaming: false },\n capabilities: {},\n status: { documented: true },\n domain: 'native',\n} as const satisfies OperationDefinition;\n\nexport const createOp = {\n operationId: 'create',\n method: 'POST',\n path: '/api/create',\n request: { $ref: '#/schemas/CreateRequest' },\n response: { $ref: '#/schemas/StatusResponse' },\n environment: { local: true, cloud: false },\n transport: { mode: 'ndjson', streaming: true, streamingDefault: true },\n capabilities: { thinking: 'unsupported', tools: 'unsupported' },\n status: { documented: true },\n domain: 'native',\n notes: ['Model creation is local-only; Ollama Cloud does not support it.'],\n} as const satisfies OperationDefinition;\n\nexport const createBlobOp = {\n operationId: 'createBlob',\n method: 'POST',\n path: '/api/blobs/{digest}',\n environment: { local: true, cloud: false },\n parameters: [{ name: 'digest', in: 'path', required: true, schema: { type: 'string' } }],\n transport: { mode: 'json', streaming: false },\n capabilities: {},\n status: { documented: true },\n domain: 'native',\n notes: [\n 'POST endpoint for blob creation; takes a binary body (application/octet-stream).',\n 'Handled by OllamaClient.createBlob() — the generated NativeApi does not expose this operation because the runtime JSON-encodes request bodies.',\n ],\n} as const satisfies OperationDefinition;\n\nexport const deleteOp = {\n operationId: 'delete',\n method: 'DELETE',\n path: '/api/delete',\n request: { $ref: '#/schemas/DeleteRequest' },\n environment: { local: true, cloud: false },\n transport: { mode: 'json', streaming: false },\n capabilities: {},\n status: { documented: true },\n domain: 'native',\n} as const satisfies OperationDefinition;\n\nexport const embedOp = {\n operationId: 'embed',\n method: 'POST',\n path: '/api/embed',\n request: { $ref: '#/schemas/EmbedRequest' },\n response: { $ref: '#/schemas/EmbedResponse' },\n environment: { local: true, cloud: true },\n transport: { mode: 'json', streaming: false },\n capabilities: { embeddings: 'supported' },\n status: { documented: true },\n domain: 'native',\n} as const satisfies OperationDefinition;\n\nexport const generateOp = {\n operationId: 'generate',\n method: 'POST',\n path: '/api/generate',\n request: { $ref: '#/schemas/GenerateRequest' },\n response: { $ref: '#/schemas/GenerateResponse' },\n environment: { local: true, cloud: true },\n transport: { mode: 'ndjson', streaming: true, streamingDefault: true },\n capabilities: {\n thinking: 'model-dependent',\n vision: 'supported',\n structuredOutput: 'supported',\n logprobs: 'supported',\n },\n status: { documented: true },\n domain: 'native',\n} as const satisfies OperationDefinition;\n\nexport const psOp = {\n operationId: 'ps',\n method: 'GET',\n path: '/api/ps',\n response: { $ref: '#/schemas/PsResponse' },\n environment: { local: true, cloud: true },\n transport: { mode: 'json', streaming: false },\n capabilities: {},\n status: { documented: true },\n domain: 'native',\n} as const satisfies OperationDefinition;\n\nexport const pullOp = {\n operationId: 'pull',\n method: 'POST',\n path: '/api/pull',\n request: { $ref: '#/schemas/PullRequest' },\n response: { $ref: '#/schemas/StatusResponse' },\n environment: { local: true, cloud: false },\n transport: { mode: 'ndjson', streaming: true, streamingDefault: true },\n capabilities: {},\n status: { documented: true },\n domain: 'native',\n} as const satisfies OperationDefinition;\n\nexport const pushOp = {\n operationId: 'push',\n method: 'POST',\n path: '/api/push',\n request: { $ref: '#/schemas/PushRequest' },\n response: { $ref: '#/schemas/StatusResponse' },\n environment: { local: true, cloud: false },\n transport: { mode: 'ndjson', streaming: true, streamingDefault: true },\n capabilities: {},\n status: { documented: true },\n domain: 'native',\n} as const satisfies OperationDefinition;\n\nexport const showOp = {\n operationId: 'show',\n method: 'POST',\n path: '/api/show',\n request: { $ref: '#/schemas/ShowRequest' },\n response: { $ref: '#/schemas/ShowResponse' },\n environment: { local: true, cloud: true },\n transport: { mode: 'json', streaming: false },\n capabilities: {},\n status: { documented: true },\n domain: 'native',\n notes: [\n 'Capabilities source: /api/show is the runtime source of truth for model-dependent capability values (tools, vision, thinking, embeddings).',\n ],\n} as const satisfies OperationDefinition;\n\nexport const systemOneOp = {\n operationId: 'systemOne',\n method: 'POST',\n path: '/v1/systemone',\n request: { $ref: '#/schemas/SystemOneRequest' },\n response: { $ref: '#/schemas/SystemOneResponse' },\n environment: { local: true, cloud: true },\n transport: { mode: 'json', streaming: false },\n capabilities: {\n thinking: 'unsupported',\n tools: 'unsupported',\n vision: 'model-dependent',\n structuredOutput: 'unsupported',\n logprobs: 'unsupported',\n embeddings: 'unsupported',\n },\n constraints: {\n minOllamaVersion: '0.35.0',\n maxRequestBytes: 65536,\n maxRequestBytesWithImages: 33554432,\n },\n status: { documented: true, experimental: true },\n domain: 'native',\n notes: [\n 'Local and cloud: model accepts cloud models (e.g. clef:cloud); cloud models require Ollama >= 0.40.5 or the hosted https://ollama.com endpoint.',\n 'Local dual cap: text and schema (excluding images) within 64 KiB AND the whole request within 32 MiB, including base64 and JSON overhead.',\n \"Cloud requests: paid plan or usage credits required; up to 64 questions named with up to 100 ASCII letters, digits, `_`, `.`, or `-`; up to 4 images of at most 4 MiB and 16 megapixels each (8 MiB total); requests within 13 MiB; input within the model's 65,536-token context window.\",\n '401 when a cloud model is requested without signing in or with an invalid API key (through a local server the response includes a signin_url); 402 when the cloud model is not included in the Free plan or a payment fails.',\n 'No tools, no generation controls (temperature, top_p, etc.).',\n 'Vision is model-dependent: images are accepted by vision-weighted models (Clef/Clef Flash) but not by text-only models.',\n 'Experimental: behavioral surface may change between Ollama releases.',\n ],\n} as const satisfies OperationDefinition;\n\nexport const tagsOp = {\n operationId: 'tags',\n method: 'GET',\n path: '/api/tags',\n response: { $ref: '#/schemas/ListResponse' },\n environment: { local: true, cloud: true },\n transport: { mode: 'json', streaming: false },\n capabilities: {},\n status: { documented: true },\n domain: 'native',\n} as const satisfies OperationDefinition;\n\nexport const usageOp = {\n operationId: 'usage',\n method: 'GET',\n path: '/api/usage',\n response: { $ref: '#/schemas/UsageResponse' },\n environment: { local: false, cloud: true },\n host: 'https://ollama.com',\n transport: { mode: 'json', streaming: false },\n capabilities: {},\n status: { documented: true },\n domain: 'native',\n notes: [\n 'Cloud-only account endpoint — targets https://ollama.com, not the local Ollama server.',\n 'Requires an Ollama Cloud API key (set via OllamaClient credentials).',\n 'Query parameters (not modeled by the generated runtime): range = 24h | 7d | 30d (server default 7d), scope = self | team (server default self; team scope requires a team admin), group_by = model (2026-10-22 pin: upstream 2476d5e — groups totals into per-model UsageGroup entries, up to 10 ranked by usage_usd or request_count, with a remainder bucket for the rest).',\n 'Rate limited to 10 requests/minute per user; 429 responses carry a Retry-After header.',\n 'Use OllamaClient.usage() — the generated NativeApi class does not expose this operation.',\n ],\n} as const satisfies OperationDefinition;\n\nexport const versionOp = {\n operationId: 'version',\n method: 'GET',\n path: '/api/version',\n response: { $ref: '#/schemas/VersionResponse' },\n environment: { local: true, cloud: true },\n transport: { mode: 'json', streaming: false },\n capabilities: {},\n status: { documented: true },\n domain: 'native',\n} as const satisfies OperationDefinition;\n\nexport const webFetchOp = {\n operationId: 'webFetch',\n method: 'POST',\n path: '/api/web_fetch',\n request: { $ref: '#/schemas/WebFetchRequest' },\n response: { $ref: '#/schemas/WebFetchResponse' },\n environment: { local: false, cloud: true },\n host: 'https://ollama.com',\n transport: { mode: 'json', streaming: false },\n capabilities: {},\n status: { documented: true },\n domain: 'native',\n notes: [\n 'Cloud-only capability endpoint — targets https://ollama.com, not the local Ollama server.',\n 'Requires an Ollama Cloud API key (set via OllamaClient credentials).',\n 'Use OllamaClient.webFetch() — the generated NativeApi class does not expose this operation.',\n ],\n} as const satisfies OperationDefinition;\n\nexport const webSearchOp = {\n operationId: 'webSearch',\n method: 'POST',\n path: '/api/web_search',\n request: { $ref: '#/schemas/WebSearchRequest' },\n response: { $ref: '#/schemas/WebSearchResponse' },\n environment: { local: false, cloud: true },\n host: 'https://ollama.com',\n transport: { mode: 'json', streaming: false },\n capabilities: {},\n status: { documented: true },\n domain: 'native',\n notes: [\n 'Cloud-only capability endpoint — targets https://ollama.com, not the local Ollama server.',\n 'Requires an Ollama Cloud API key (set via OllamaClient credentials).',\n 'Use OllamaClient.webSearch() — the generated NativeApi class does not expose this operation.',\n ],\n} as const satisfies OperationDefinition;\n\nexport const openaiChatCompletionsOp = {\n operationId: 'openaiChatCompletions',\n method: 'POST',\n path: '/v1/chat/completions',\n environment: { local: true, cloud: true },\n transport: { mode: 'sse', streaming: true, streamingDefault: false },\n capabilities: {\n thinking: 'model-dependent',\n tools: 'model-dependent',\n vision: 'model-dependent',\n structuredOutput: 'supported',\n logprobs: 'unsupported',\n },\n status: { documented: true },\n domain: 'openai',\n notes: [\n 'Ollama exposes a subset of the OpenAI Chat Completions request fields; see docs/upstream/ollama-openai-compatibility.mdx.',\n ],\n} as const satisfies OperationDefinition;\n\nexport const openaiCompletionsOp = {\n operationId: 'openaiCompletions',\n method: 'POST',\n path: '/v1/completions',\n environment: { local: true, cloud: true },\n transport: { mode: 'sse', streaming: true, streamingDefault: false },\n capabilities: { logprobs: 'unsupported' },\n status: { documented: true },\n domain: 'openai',\n} as const satisfies OperationDefinition;\n\nexport const openaiEmbeddingsOp = {\n operationId: 'openaiEmbeddings',\n method: 'POST',\n path: '/v1/embeddings',\n environment: { local: true, cloud: true },\n transport: { mode: 'json', streaming: false },\n capabilities: { embeddings: 'supported' },\n status: { documented: true },\n domain: 'openai',\n} as const satisfies OperationDefinition;\n\nexport const openaiModelsOp = {\n operationId: 'openaiModels',\n method: 'GET',\n path: '/v1/models',\n environment: { local: true, cloud: true },\n transport: { mode: 'json', streaming: false },\n capabilities: {},\n status: { documented: true },\n domain: 'openai',\n} as const satisfies OperationDefinition;\n\nexport const openaiModelsGetOneOp = {\n operationId: 'openaiModelsGetOne',\n method: 'GET',\n path: '/v1/models/{model}',\n environment: { local: true, cloud: true },\n parameters: [{ name: 'model', in: 'path', required: true, schema: { type: 'string' } }],\n transport: { mode: 'json', streaming: false },\n capabilities: {},\n status: { documented: true },\n domain: 'openai',\n notes: ['Returns metadata for a single OpenAI-compat model by id.'],\n} as const satisfies OperationDefinition;\n\nexport const openaiResponsesOp = {\n operationId: 'openaiResponses',\n method: 'POST',\n path: '/v1/responses',\n environment: { local: true, cloud: true },\n transport: { mode: 'sse', streaming: true, streamingDefault: false },\n capabilities: { thinking: 'model-dependent', tools: 'model-dependent' },\n status: { documented: true },\n domain: 'openai',\n notes: [\n 'Ollama implements a subset of the OpenAI Responses API; previous_response_id and conversation are explicitly unsupported.',\n ],\n} as const satisfies OperationDefinition;\n\nexport const anthropicMessagesOp = {\n operationId: 'anthropicMessages',\n method: 'POST',\n path: '/v1/messages',\n environment: { local: true, cloud: true },\n transport: { mode: 'sse', streaming: true, streamingDefault: false },\n capabilities: { thinking: 'model-dependent', tools: 'model-dependent' },\n status: { documented: true },\n domain: 'anthropic',\n notes: [\n \"tool_choice and metadata are explicitly unsupported by Ollama's Anthropic compat layer.\",\n 'Nested cache_control fields under messages[].content[].cache_control are unsupported.',\n ],\n} as const satisfies OperationDefinition;\n\nexport const allOperations = [\n balanceOp,\n blobsOp,\n chatOp,\n copyOp,\n createOp,\n createBlobOp,\n deleteOp,\n embedOp,\n generateOp,\n psOp,\n pullOp,\n pushOp,\n showOp,\n systemOneOp,\n tagsOp,\n usageOp,\n versionOp,\n webFetchOp,\n webSearchOp,\n openaiChatCompletionsOp,\n openaiCompletionsOp,\n openaiEmbeddingsOp,\n openaiModelsOp,\n openaiModelsGetOneOp,\n openaiResponsesOp,\n anthropicMessagesOp,\n] as const;\n","/**\n * AUTO-GENERATED by `npm run contract:generate`. DO NOT EDIT.\n * Source: contracts/ir/ollama.ir.json (canonical Ollama IR).\n * Each generated class delegates to OllamaRuntime — the runtime owns\n * transport, retry, streaming, telemetry, and error handling.\n */\n\nimport type { OllamaRuntime } from '../runtime/runtime.js';\nimport type {\n ChatRequest,\n ChatResponse,\n CopyRequest,\n CreateRequest,\n DeleteRequest,\n EmbedRequest,\n EmbedResponse,\n GenerateRequest,\n GenerateResponse,\n ListResponse,\n PsResponse,\n PullRequest,\n PushRequest,\n ShowRequest,\n ShowResponse,\n StatusResponse,\n SystemOneRequest,\n SystemOneResponse,\n VersionResponse,\n} from '../models/index.js';\nimport {\n blobsOp,\n chatOp,\n copyOp,\n createOp,\n deleteOp,\n embedOp,\n generateOp,\n psOp,\n pullOp,\n pushOp,\n showOp,\n systemOneOp,\n tagsOp,\n versionOp,\n} from './operations.js';\n\n/**\n * Generated API surface for Ollama's native domain.\n * Each method delegates to {@link OllamaRuntime.invoke}.\n */\nexport class NativeApi {\n constructor(private readonly runtime: OllamaRuntime) {}\n\n blobs(digest: string, options?: { signal?: AbortSignal }): Promise<unknown> {\n return this.runtime.invoke({\n operation: blobsOp,\n body: undefined,\n pathParams: { digest },\n ...(options?.signal !== undefined ? { signal: options.signal } : {}),\n });\n }\n\n chat(request: ChatRequest & { stream?: false }): Promise<ChatResponse>;\n chat(\n request: ChatRequest & { stream: true },\n ): Promise<AsyncGenerator<ChatResponse, void, undefined>>;\n chat(\n request: ChatRequest,\n ): Promise<ChatResponse | AsyncGenerator<ChatResponse, void, undefined>> {\n return this.runtime.invoke({\n operation: chatOp,\n body: request,\n streamingDefault: true,\n });\n }\n\n copy(request: CopyRequest): Promise<StatusResponse> {\n return this.runtime.invoke({\n operation: copyOp,\n body: request,\n });\n }\n\n create(request: CreateRequest & { stream?: false }): Promise<StatusResponse>;\n create(\n request: CreateRequest & { stream: true },\n ): Promise<AsyncGenerator<StatusResponse, void, undefined>>;\n create(\n request: CreateRequest,\n ): Promise<StatusResponse | AsyncGenerator<StatusResponse, void, undefined>> {\n return this.runtime.invoke({\n operation: createOp,\n body: request,\n streamingDefault: true,\n });\n }\n\n delete(request: DeleteRequest): Promise<unknown> {\n return this.runtime.invoke({\n operation: deleteOp,\n body: request,\n });\n }\n\n embed(request: EmbedRequest): Promise<EmbedResponse> {\n return this.runtime.invoke({\n operation: embedOp,\n body: request,\n });\n }\n\n generate(request: GenerateRequest & { stream?: false }): Promise<GenerateResponse>;\n generate(\n request: GenerateRequest & { stream: true },\n ): Promise<AsyncGenerator<GenerateResponse, void, undefined>>;\n generate(\n request: GenerateRequest,\n ): Promise<GenerateResponse | AsyncGenerator<GenerateResponse, void, undefined>> {\n return this.runtime.invoke({\n operation: generateOp,\n body: request,\n streamingDefault: true,\n });\n }\n\n ps(options?: { signal?: AbortSignal }): Promise<PsResponse> {\n return this.runtime.invoke({\n operation: psOp,\n body: undefined,\n ...(options?.signal !== undefined ? { signal: options.signal } : {}),\n });\n }\n\n pull(request: PullRequest & { stream?: false }): Promise<StatusResponse>;\n pull(\n request: PullRequest & { stream: true },\n ): Promise<AsyncGenerator<StatusResponse, void, undefined>>;\n pull(\n request: PullRequest,\n ): Promise<StatusResponse | AsyncGenerator<StatusResponse, void, undefined>> {\n return this.runtime.invoke({\n operation: pullOp,\n body: request,\n streamingDefault: true,\n });\n }\n\n push(request: PushRequest & { stream?: false }): Promise<StatusResponse>;\n push(\n request: PushRequest & { stream: true },\n ): Promise<AsyncGenerator<StatusResponse, void, undefined>>;\n push(\n request: PushRequest,\n ): Promise<StatusResponse | AsyncGenerator<StatusResponse, void, undefined>> {\n return this.runtime.invoke({\n operation: pushOp,\n body: request,\n streamingDefault: true,\n });\n }\n\n show(request: ShowRequest): Promise<ShowResponse> {\n return this.runtime.invoke({\n operation: showOp,\n body: request,\n });\n }\n\n systemOne(request: SystemOneRequest): Promise<SystemOneResponse> {\n return this.runtime.invoke({\n operation: systemOneOp,\n body: request,\n });\n }\n\n tags(options?: { signal?: AbortSignal }): Promise<ListResponse> {\n return this.runtime.invoke({\n operation: tagsOp,\n body: undefined,\n ...(options?.signal !== undefined ? { signal: options.signal } : {}),\n });\n }\n\n version(options?: { signal?: AbortSignal }): Promise<VersionResponse> {\n return this.runtime.invoke({\n operation: versionOp,\n body: undefined,\n ...(options?.signal !== undefined ? { signal: options.signal } : {}),\n });\n }\n}\n","/**\n * AUTO-GENERATED by `npm run contract:generate`. DO NOT EDIT.\n * Source: contracts/ir/ollama.ir.json (canonical Ollama IR).\n * Each generated class delegates to OllamaRuntime — the runtime owns\n * transport, retry, streaming, telemetry, and error handling.\n */\n\nimport type { OllamaRuntime } from '../runtime/runtime.js';\n// No model types referenced.\nimport type {\n OpenAIChatCompletionChunk,\n OpenAIChatCompletionRequest,\n OpenAIChatCompletionResponse,\n OpenAICompletionChunk,\n OpenAICompletionRequest,\n OpenAICompletionResponse,\n OpenAIEmbeddingRequest,\n OpenAIEmbeddingResponse,\n OpenAIListModelsResponse,\n OpenAIModelItem,\n OpenAIResponsesRequest,\n OpenAIResponsesResponse,\n OpenAIResponsesStreamEvent,\n} from '../../integrations/index.js';\nimport {\n openaiChatCompletionsOp,\n openaiCompletionsOp,\n openaiEmbeddingsOp,\n openaiModelsOp,\n openaiModelsGetOneOp,\n openaiResponsesOp,\n} from './operations.js';\n\n/**\n * Generated API surface for Ollama's openai domain.\n * Each method delegates to {@link OllamaRuntime.invoke}.\n */\nexport class OpenAIApi {\n constructor(private readonly runtime: OllamaRuntime) {}\n\n openaiChatCompletions(\n request: OpenAIChatCompletionRequest & { stream?: false },\n ): Promise<OpenAIChatCompletionResponse>;\n openaiChatCompletions(\n request: OpenAIChatCompletionRequest & { stream: true },\n ): Promise<AsyncGenerator<OpenAIChatCompletionChunk, void, undefined>>;\n openaiChatCompletions(\n request: OpenAIChatCompletionRequest,\n ): Promise<\n OpenAIChatCompletionResponse | AsyncGenerator<OpenAIChatCompletionChunk, void, undefined>\n > {\n return this.runtime.invoke({\n operation: openaiChatCompletionsOp,\n body: request,\n });\n }\n\n openaiCompletions(\n request: OpenAICompletionRequest & { stream?: false },\n ): Promise<OpenAICompletionResponse>;\n openaiCompletions(\n request: OpenAICompletionRequest & { stream: true },\n ): Promise<AsyncGenerator<OpenAICompletionChunk, void, undefined>>;\n openaiCompletions(\n request: OpenAICompletionRequest,\n ): Promise<OpenAICompletionResponse | AsyncGenerator<OpenAICompletionChunk, void, undefined>> {\n return this.runtime.invoke({\n operation: openaiCompletionsOp,\n body: request,\n });\n }\n\n openaiEmbeddings(request: OpenAIEmbeddingRequest): Promise<OpenAIEmbeddingResponse> {\n return this.runtime.invoke({\n operation: openaiEmbeddingsOp,\n body: request,\n });\n }\n\n openaiModels(options?: { signal?: AbortSignal }): Promise<OpenAIListModelsResponse> {\n return this.runtime.invoke({\n operation: openaiModelsOp,\n body: undefined,\n ...(options?.signal !== undefined ? { signal: options.signal } : {}),\n });\n }\n\n openaiModelsGetOne(model: string, options?: { signal?: AbortSignal }): Promise<OpenAIModelItem> {\n return this.runtime.invoke({\n operation: openaiModelsGetOneOp,\n body: undefined,\n pathParams: { model },\n ...(options?.signal !== undefined ? { signal: options.signal } : {}),\n });\n }\n\n openaiResponses(\n request: OpenAIResponsesRequest & { stream?: false },\n ): Promise<OpenAIResponsesResponse>;\n openaiResponses(\n request: OpenAIResponsesRequest & { stream: true },\n ): Promise<AsyncGenerator<OpenAIResponsesStreamEvent, void, undefined>>;\n openaiResponses(\n request: OpenAIResponsesRequest,\n ): Promise<\n OpenAIResponsesResponse | AsyncGenerator<OpenAIResponsesStreamEvent, void, undefined>\n > {\n return this.runtime.invoke({\n operation: openaiResponsesOp,\n body: request,\n });\n }\n}\n","/**\n * AUTO-GENERATED by `npm run contract:generate`. DO NOT EDIT.\n * Source: contracts/ir/ollama.ir.json (canonical Ollama IR).\n * Each generated class delegates to OllamaRuntime — the runtime owns\n * transport, retry, streaming, telemetry, and error handling.\n */\n\nimport type { OllamaRuntime } from '../runtime/runtime.js';\n// No model types referenced.\nimport type {\n AnthropicMessageStreamEvent,\n AnthropicMessagesRequest,\n AnthropicMessagesResponse,\n} from '../../integrations/index.js';\nimport { anthropicMessagesOp } from './operations.js';\n\n/**\n * Generated API surface for Ollama's anthropic domain.\n * Each method delegates to {@link OllamaRuntime.invoke}.\n */\nexport class AnthropicApi {\n constructor(private readonly runtime: OllamaRuntime) {}\n\n anthropicMessages(\n request: AnthropicMessagesRequest & { stream?: false },\n ): Promise<AnthropicMessagesResponse>;\n anthropicMessages(\n request: AnthropicMessagesRequest & { stream: true },\n ): Promise<AsyncGenerator<AnthropicMessageStreamEvent, void, undefined>>;\n anthropicMessages(\n request: AnthropicMessagesRequest,\n ): Promise<\n AnthropicMessagesResponse | AsyncGenerator<AnthropicMessageStreamEvent, void, undefined>\n > {\n return this.runtime.invoke({\n operation: anthropicMessagesOp,\n body: request,\n });\n }\n}\n"]}
|
|
1
|
+
{"version":3,"sources":["../src/generated/api/operations.ts","../src/generated/api/native-api.ts","../src/generated/api/openai-api.ts","../src/generated/api/anthropic-api.ts"],"names":[],"mappings":";;;AASO,IAAM,SAAA,GAAY;AAAA,EACvB,WAAA,EAAa,SAAA;AAAA,EACb,MAAA,EAAQ,KAAA;AAAA,EACR,IAAA,EAAM,cAAA;AAAA,EACN,QAAA,EAAU,EAAE,IAAA,EAAM,2BAAA,EAA4B;AAAA,EAC9C,WAAA,EAAa,EAAE,KAAA,EAAO,KAAA,EAAO,OAAO,IAAA,EAAK;AAAA,EACzC,IAAA,EAAM,oBAAA;AAAA,EACN,SAAA,EAAW,EAAE,IAAA,EAAM,MAAA,EAAQ,WAAW,KAAA,EAAM;AAAA,EAC5C,cAAc,EAAC;AAAA,EACf,MAAA,EAAQ,EAAE,UAAA,EAAY,IAAA,EAAK;AAAA,EAC3B,MAAA,EAAQ,QAAA;AAAA,EACR,KAAA,EAAO;AAAA,IACL,6FAAA;AAAA,IACA,sEAAA;AAAA,IACA,iEAAA;AAAA,IACA,wFAAA;AAAA,IACA;AAAA;AAEJ;AAEO,IAAM,OAAA,GAAU;AAAA,EACrB,WAAA,EAAa,OAAA;AAAA,EACb,MAAA,EAAQ,MAAA;AAAA,EACR,IAAA,EAAM,qBAAA;AAAA,EACN,WAAA,EAAa,EAAE,KAAA,EAAO,IAAA,EAAM,OAAO,KAAA,EAAM;AAAA,EACzC,UAAA,EAAY,CAAC,EAAE,IAAA,EAAM,UAAU,EAAA,EAAI,MAAA,EAAQ,QAAA,EAAU,IAAA,EAAM,MAAA,EAAQ,EAAE,IAAA,EAAM,QAAA,IAAY,CAAA;AAAA,EACvF,SAAA,EAAW,EA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,EACxB,YAA6B,OAAA,EAAwB;AAAxB,IAAA,IAAA,CAAA,OAAA,GAAA,OAAA;AAAA,EAAyB;AAAA,EAQtD,kBACE,OAAA,EAGA;AACA,IAAA,OAAO,IAAA,CAAK,QAAQ,MAAA,CAAO;AAAA,MACzB,SAAA,EAAW,mBAAA;AAAA,MACX,IAAA,EAAM;AAAA,KACP,CAAA;AAAA,EACH;AACF","file":"generated-api.cjs","sourcesContent":["/**\n * AUTO-GENERATED by `npm run contract:generate`. DO NOT EDIT.\n * Source: contracts/ir/ollama.ir.json (canonical Ollama IR).\n * Each OperationDefinition captures what Ollama exposes; the runtime\n * in src/generated/runtime/runtime.ts captures how the SDK behaves.\n */\n\nimport type { OperationDefinition } from '../runtime/operation-definition.js';\n\nexport const balanceOp = {\n operationId: 'balance',\n method: 'GET',\n path: '/api/balance',\n response: { $ref: '#/schemas/BalanceResponse' },\n environment: { local: false, cloud: true },\n host: 'https://ollama.com',\n transport: { mode: 'json', streaming: false },\n capabilities: {},\n status: { documented: true },\n domain: 'native',\n notes: [\n 'Cloud-only account endpoint — targets https://ollama.com, not the local Ollama server.',\n 'Requires an Ollama Cloud API key (set via OllamaClient credentials).',\n 'Takes no parameters. For usage history see the usage operation.',\n 'Rate limited to 10 requests/minute per user; 429 responses carry a Retry-After header.',\n 'Use OllamaClient.balance() — the generated NativeApi class does not expose this operation.',\n ],\n} as const satisfies OperationDefinition;\n\nexport const blobsOp = {\n operationId: 'blobs',\n method: 'HEAD',\n path: '/api/blobs/{digest}',\n environment: { local: true, cloud: false },\n parameters: [{ name: 'digest', in: 'path', required: true, schema: { type: 'string' } }],\n transport: { mode: 'json', streaming: false },\n capabilities: {},\n status: { documented: true },\n domain: 'native',\n notes: [\n 'HEAD-only endpoint for blob existence checks; declared in OpenAPI but not in the legacy parity manifest.',\n ],\n} as const satisfies OperationDefinition;\n\nexport const chatOp = {\n operationId: 'chat',\n method: 'POST',\n path: '/api/chat',\n request: { $ref: '#/schemas/ChatRequest' },\n response: { $ref: '#/schemas/ChatResponse' },\n environment: { local: true, cloud: true },\n transport: { mode: 'ndjson', streaming: true, streamingDefault: true },\n capabilities: {\n thinking: 'model-dependent',\n tools: 'model-dependent',\n vision: 'model-dependent',\n structuredOutput: 'supported',\n logprobs: 'supported',\n },\n status: { documented: true },\n domain: 'native',\n notes: [\n 'Use /api/show to discover model-specific thinking values and defaults.',\n 'Structured output (format field) is rejected by Ollama Cloud.',\n ],\n} as const satisfies OperationDefinition;\n\nexport const copyOp = {\n operationId: 'copy',\n method: 'POST',\n path: '/api/copy',\n request: { $ref: '#/schemas/CopyRequest' },\n response: { $ref: '#/schemas/StatusResponse' },\n environment: { local: true, cloud: false },\n transport: { mode: 'json', streaming: false },\n capabilities: {},\n status: { documented: true },\n domain: 'native',\n} as const satisfies OperationDefinition;\n\nexport const createOp = {\n operationId: 'create',\n method: 'POST',\n path: '/api/create',\n request: { $ref: '#/schemas/CreateRequest' },\n response: { $ref: '#/schemas/StatusResponse' },\n environment: { local: true, cloud: false },\n transport: { mode: 'ndjson', streaming: true, streamingDefault: true },\n capabilities: { thinking: 'unsupported', tools: 'unsupported' },\n status: { documented: true },\n domain: 'native',\n notes: ['Model creation is local-only; Ollama Cloud does not support it.'],\n} as const satisfies OperationDefinition;\n\nexport const createBlobOp = {\n operationId: 'createBlob',\n method: 'POST',\n path: '/api/blobs/{digest}',\n environment: { local: true, cloud: false },\n parameters: [{ name: 'digest', in: 'path', required: true, schema: { type: 'string' } }],\n transport: { mode: 'json', streaming: false },\n capabilities: {},\n status: { documented: true },\n domain: 'native',\n notes: [\n 'POST endpoint for blob creation; takes a binary body (application/octet-stream).',\n 'Handled by OllamaClient.createBlob() — the generated NativeApi does not expose this operation because the runtime JSON-encodes request bodies.',\n ],\n} as const satisfies OperationDefinition;\n\nexport const deleteOp = {\n operationId: 'delete',\n method: 'DELETE',\n path: '/api/delete',\n request: { $ref: '#/schemas/DeleteRequest' },\n environment: { local: true, cloud: false },\n transport: { mode: 'json', streaming: false },\n capabilities: {},\n status: { documented: true },\n domain: 'native',\n} as const satisfies OperationDefinition;\n\nexport const embedOp = {\n operationId: 'embed',\n method: 'POST',\n path: '/api/embed',\n request: { $ref: '#/schemas/EmbedRequest' },\n response: { $ref: '#/schemas/EmbedResponse' },\n environment: { local: true, cloud: true },\n transport: { mode: 'json', streaming: false },\n capabilities: { embeddings: 'supported' },\n status: { documented: true },\n domain: 'native',\n} as const satisfies OperationDefinition;\n\nexport const generateOp = {\n operationId: 'generate',\n method: 'POST',\n path: '/api/generate',\n request: { $ref: '#/schemas/GenerateRequest' },\n response: { $ref: '#/schemas/GenerateResponse' },\n environment: { local: true, cloud: true },\n transport: { mode: 'ndjson', streaming: true, streamingDefault: true },\n capabilities: {\n thinking: 'model-dependent',\n vision: 'supported',\n structuredOutput: 'supported',\n logprobs: 'supported',\n },\n status: { documented: true },\n domain: 'native',\n} as const satisfies OperationDefinition;\n\nexport const psOp = {\n operationId: 'ps',\n method: 'GET',\n path: '/api/ps',\n response: { $ref: '#/schemas/PsResponse' },\n environment: { local: true, cloud: true },\n transport: { mode: 'json', streaming: false },\n capabilities: {},\n status: { documented: true },\n domain: 'native',\n} as const satisfies OperationDefinition;\n\nexport const pullOp = {\n operationId: 'pull',\n method: 'POST',\n path: '/api/pull',\n request: { $ref: '#/schemas/PullRequest' },\n response: { $ref: '#/schemas/StatusResponse' },\n environment: { local: true, cloud: false },\n transport: { mode: 'ndjson', streaming: true, streamingDefault: true },\n capabilities: {},\n status: { documented: true },\n domain: 'native',\n} as const satisfies OperationDefinition;\n\nexport const pushOp = {\n operationId: 'push',\n method: 'POST',\n path: '/api/push',\n request: { $ref: '#/schemas/PushRequest' },\n response: { $ref: '#/schemas/StatusResponse' },\n environment: { local: true, cloud: false },\n transport: { mode: 'ndjson', streaming: true, streamingDefault: true },\n capabilities: {},\n status: { documented: true },\n domain: 'native',\n} as const satisfies OperationDefinition;\n\nexport const showOp = {\n operationId: 'show',\n method: 'POST',\n path: '/api/show',\n request: { $ref: '#/schemas/ShowRequest' },\n response: { $ref: '#/schemas/ShowResponse' },\n environment: { local: true, cloud: true },\n transport: { mode: 'json', streaming: false },\n capabilities: {},\n status: { documented: true },\n domain: 'native',\n notes: [\n 'Capabilities source: /api/show is the runtime source of truth for model-dependent capability values (tools, vision, thinking, embeddings).',\n ],\n} as const satisfies OperationDefinition;\n\nexport const systemOneOp = {\n operationId: 'systemOne',\n method: 'POST',\n path: '/v1/systemone',\n request: { $ref: '#/schemas/SystemOneRequest' },\n response: { $ref: '#/schemas/SystemOneResponse' },\n environment: { local: true, cloud: true },\n transport: { mode: 'json', streaming: false },\n capabilities: {\n thinking: 'unsupported',\n tools: 'unsupported',\n vision: 'model-dependent',\n structuredOutput: 'unsupported',\n logprobs: 'unsupported',\n embeddings: 'unsupported',\n },\n constraints: {\n minOllamaVersion: '0.35.0',\n maxRequestBytes: 65536,\n maxRequestBytesWithImages: 33554432,\n },\n status: { documented: true, experimental: true },\n domain: 'native',\n notes: [\n 'Local and cloud: model accepts cloud models (e.g. clef:cloud); cloud models require Ollama >= 0.40.5 or the hosted https://ollama.com endpoint.',\n 'Local dual cap: text and schema (excluding images) within 64 KiB AND the whole request within 32 MiB, including base64 and JSON overhead.',\n \"Cloud requests: paid plan or usage credits required; up to 64 questions named with up to 100 ASCII letters, digits, `_`, `.`, or `-`; up to 4 images of at most 4 MiB and 16 megapixels each (8 MiB total); requests within 13 MiB; input within the model's 65,536-token context window.\",\n '401 when a cloud model is requested without signing in or with an invalid API key (through a local server the response includes a signin_url); 402 when the cloud model is not included in the Free plan or a payment fails.',\n 'No tools, no generation controls (temperature, top_p, etc.).',\n 'Vision is model-dependent: images are accepted by vision-weighted models (Clef/Clef Flash) but not by text-only models.',\n 'Experimental: behavioral surface may change between Ollama releases.',\n ],\n} as const satisfies OperationDefinition;\n\nexport const tagsOp = {\n operationId: 'tags',\n method: 'GET',\n path: '/api/tags',\n response: { $ref: '#/schemas/ListResponse' },\n environment: { local: true, cloud: true },\n transport: { mode: 'json', streaming: false },\n capabilities: {},\n status: { documented: true },\n domain: 'native',\n} as const satisfies OperationDefinition;\n\nexport const usageOp = {\n operationId: 'usage',\n method: 'GET',\n path: '/api/usage',\n response: { $ref: '#/schemas/UsageResponse' },\n environment: { local: false, cloud: true },\n host: 'https://ollama.com',\n transport: { mode: 'json', streaming: false },\n capabilities: {},\n status: { documented: true },\n domain: 'native',\n notes: [\n 'Cloud-only account endpoint — targets https://ollama.com, not the local Ollama server.',\n 'Requires an Ollama Cloud API key (set via OllamaClient credentials).',\n 'Query parameters (not modeled by the generated runtime): range = 24h | 7d | 30d (server default 7d), scope = self | team (server default self; team scope requires a team admin), group_by = model (2026-10-22 pin: upstream 2476d5e — groups totals into per-model UsageGroup entries, up to 10 ranked by usage_usd or request_count, with a remainder bucket for the rest).',\n 'Rate limited to 10 requests/minute per user; 429 responses carry a Retry-After header.',\n 'Use OllamaClient.usage() — the generated NativeApi class does not expose this operation.',\n ],\n} as const satisfies OperationDefinition;\n\nexport const versionOp = {\n operationId: 'version',\n method: 'GET',\n path: '/api/version',\n response: { $ref: '#/schemas/VersionResponse' },\n environment: { local: true, cloud: true },\n transport: { mode: 'json', streaming: false },\n capabilities: {},\n status: { documented: true },\n domain: 'native',\n} as const satisfies OperationDefinition;\n\nexport const webFetchOp = {\n operationId: 'webFetch',\n method: 'POST',\n path: '/api/web_fetch',\n request: { $ref: '#/schemas/WebFetchRequest' },\n response: { $ref: '#/schemas/WebFetchResponse' },\n environment: { local: false, cloud: true },\n host: 'https://ollama.com',\n transport: { mode: 'json', streaming: false },\n capabilities: {},\n status: { documented: true },\n domain: 'native',\n notes: [\n 'Cloud-only capability endpoint — targets https://ollama.com, not the local Ollama server.',\n 'Requires an Ollama Cloud API key (set via OllamaClient credentials).',\n 'Use OllamaClient.webFetch() — the generated NativeApi class does not expose this operation.',\n ],\n} as const satisfies OperationDefinition;\n\nexport const webSearchOp = {\n operationId: 'webSearch',\n method: 'POST',\n path: '/api/web_search',\n request: { $ref: '#/schemas/WebSearchRequest' },\n response: { $ref: '#/schemas/WebSearchResponse' },\n environment: { local: false, cloud: true },\n host: 'https://ollama.com',\n transport: { mode: 'json', streaming: false },\n capabilities: {},\n status: { documented: true },\n domain: 'native',\n notes: [\n 'Cloud-only capability endpoint — targets https://ollama.com, not the local Ollama server.',\n 'Requires an Ollama Cloud API key (set via OllamaClient credentials).',\n 'Use OllamaClient.webSearch() — the generated NativeApi class does not expose this operation.',\n ],\n} as const satisfies OperationDefinition;\n\nexport const openaiAudioSpeechOp = {\n operationId: 'openaiAudioSpeech',\n method: 'POST',\n path: '/v1/audio/speech',\n environment: { local: true, cloud: true },\n transport: { mode: 'json', streaming: false },\n capabilities: {},\n constraints: { minOllamaVersion: '0.40.8' },\n status: { documented: true, experimental: true },\n domain: 'openai',\n notes: [\n 'Generates audio with speech models; the response is a raw audio byte stream (16-bit mono, 24 kHz), not JSON/NDJSON/SSE — the generated runtime cannot transport it.',\n 'Recorded for endpoint-discovery completeness and docs parity tracking; excluded from the generated OpenAIApi class and from MCP tools (binary-transport exclusion).',\n 'The typed request shape is exported as OpenAISpeechRequest (src/integrations/openai.ts) for direct use until an audio transport lands.',\n ],\n} as const satisfies OperationDefinition;\n\nexport const openaiChatCompletionsOp = {\n operationId: 'openaiChatCompletions',\n method: 'POST',\n path: '/v1/chat/completions',\n environment: { local: true, cloud: true },\n transport: { mode: 'sse', streaming: true, streamingDefault: false },\n capabilities: {\n thinking: 'model-dependent',\n tools: 'model-dependent',\n vision: 'model-dependent',\n structuredOutput: 'supported',\n logprobs: 'unsupported',\n },\n status: { documented: true },\n domain: 'openai',\n notes: [\n 'Ollama exposes a subset of the OpenAI Chat Completions request fields; see docs/upstream/ollama-openai-compatibility.mdx.',\n ],\n} as const satisfies OperationDefinition;\n\nexport const openaiCompletionsOp = {\n operationId: 'openaiCompletions',\n method: 'POST',\n path: '/v1/completions',\n environment: { local: true, cloud: true },\n transport: { mode: 'sse', streaming: true, streamingDefault: false },\n capabilities: { logprobs: 'unsupported' },\n status: { documented: true },\n domain: 'openai',\n} as const satisfies OperationDefinition;\n\nexport const openaiEmbeddingsOp = {\n operationId: 'openaiEmbeddings',\n method: 'POST',\n path: '/v1/embeddings',\n environment: { local: true, cloud: true },\n transport: { mode: 'json', streaming: false },\n capabilities: { embeddings: 'supported' },\n status: { documented: true },\n domain: 'openai',\n} as const satisfies OperationDefinition;\n\nexport const openaiModelsOp = {\n operationId: 'openaiModels',\n method: 'GET',\n path: '/v1/models',\n environment: { local: true, cloud: true },\n transport: { mode: 'json', streaming: false },\n capabilities: {},\n status: { documented: true },\n domain: 'openai',\n} as const satisfies OperationDefinition;\n\nexport const openaiModelsGetOneOp = {\n operationId: 'openaiModelsGetOne',\n method: 'GET',\n path: '/v1/models/{model}',\n environment: { local: true, cloud: true },\n parameters: [{ name: 'model', in: 'path', required: true, schema: { type: 'string' } }],\n transport: { mode: 'json', streaming: false },\n capabilities: {},\n status: { documented: true },\n domain: 'openai',\n notes: ['Returns metadata for a single OpenAI-compat model by id.'],\n} as const satisfies OperationDefinition;\n\nexport const openaiResponsesOp = {\n operationId: 'openaiResponses',\n method: 'POST',\n path: '/v1/responses',\n environment: { local: true, cloud: true },\n transport: { mode: 'sse', streaming: true, streamingDefault: false },\n capabilities: { thinking: 'model-dependent', tools: 'model-dependent' },\n status: { documented: true },\n domain: 'openai',\n notes: [\n 'Ollama implements a subset of the OpenAI Responses API; previous_response_id and conversation are explicitly unsupported.',\n ],\n} as const satisfies OperationDefinition;\n\nexport const anthropicMessagesOp = {\n operationId: 'anthropicMessages',\n method: 'POST',\n path: '/v1/messages',\n environment: { local: true, cloud: true },\n transport: { mode: 'sse', streaming: true, streamingDefault: false },\n capabilities: { thinking: 'model-dependent', tools: 'model-dependent' },\n status: { documented: true },\n domain: 'anthropic',\n notes: [\n \"tool_choice and metadata are explicitly unsupported by Ollama's Anthropic compat layer.\",\n 'Nested cache_control fields under messages[].content[].cache_control are unsupported.',\n ],\n} as const satisfies OperationDefinition;\n\nexport const allOperations = [\n balanceOp,\n blobsOp,\n chatOp,\n copyOp,\n createOp,\n createBlobOp,\n deleteOp,\n embedOp,\n generateOp,\n psOp,\n pullOp,\n pushOp,\n showOp,\n systemOneOp,\n tagsOp,\n usageOp,\n versionOp,\n webFetchOp,\n webSearchOp,\n openaiAudioSpeechOp,\n openaiChatCompletionsOp,\n openaiCompletionsOp,\n openaiEmbeddingsOp,\n openaiModelsOp,\n openaiModelsGetOneOp,\n openaiResponsesOp,\n anthropicMessagesOp,\n] as const;\n","/**\n * AUTO-GENERATED by `npm run contract:generate`. DO NOT EDIT.\n * Source: contracts/ir/ollama.ir.json (canonical Ollama IR).\n * Each generated class delegates to OllamaRuntime — the runtime owns\n * transport, retry, streaming, telemetry, and error handling.\n */\n\nimport type { OllamaRuntime } from '../runtime/runtime.js';\nimport type {\n ChatRequest,\n ChatResponse,\n CopyRequest,\n CreateRequest,\n DeleteRequest,\n EmbedRequest,\n EmbedResponse,\n GenerateRequest,\n GenerateResponse,\n ListResponse,\n PsResponse,\n PullRequest,\n PushRequest,\n ShowRequest,\n ShowResponse,\n StatusResponse,\n SystemOneRequest,\n SystemOneResponse,\n VersionResponse,\n} from '../models/index.js';\nimport {\n blobsOp,\n chatOp,\n copyOp,\n createOp,\n deleteOp,\n embedOp,\n generateOp,\n psOp,\n pullOp,\n pushOp,\n showOp,\n systemOneOp,\n tagsOp,\n versionOp,\n} from './operations.js';\n\n/**\n * Generated API surface for Ollama's native domain.\n * Each method delegates to {@link OllamaRuntime.invoke}.\n */\nexport class NativeApi {\n constructor(private readonly runtime: OllamaRuntime) {}\n\n blobs(digest: string, options?: { signal?: AbortSignal }): Promise<unknown> {\n return this.runtime.invoke({\n operation: blobsOp,\n body: undefined,\n pathParams: { digest },\n ...(options?.signal !== undefined ? { signal: options.signal } : {}),\n });\n }\n\n chat(request: ChatRequest & { stream?: false }): Promise<ChatResponse>;\n chat(\n request: ChatRequest & { stream: true },\n ): Promise<AsyncGenerator<ChatResponse, void, undefined>>;\n chat(\n request: ChatRequest,\n ): Promise<ChatResponse | AsyncGenerator<ChatResponse, void, undefined>> {\n return this.runtime.invoke({\n operation: chatOp,\n body: request,\n streamingDefault: true,\n });\n }\n\n copy(request: CopyRequest): Promise<StatusResponse> {\n return this.runtime.invoke({\n operation: copyOp,\n body: request,\n });\n }\n\n create(request: CreateRequest & { stream?: false }): Promise<StatusResponse>;\n create(\n request: CreateRequest & { stream: true },\n ): Promise<AsyncGenerator<StatusResponse, void, undefined>>;\n create(\n request: CreateRequest,\n ): Promise<StatusResponse | AsyncGenerator<StatusResponse, void, undefined>> {\n return this.runtime.invoke({\n operation: createOp,\n body: request,\n streamingDefault: true,\n });\n }\n\n delete(request: DeleteRequest): Promise<unknown> {\n return this.runtime.invoke({\n operation: deleteOp,\n body: request,\n });\n }\n\n embed(request: EmbedRequest): Promise<EmbedResponse> {\n return this.runtime.invoke({\n operation: embedOp,\n body: request,\n });\n }\n\n generate(request: GenerateRequest & { stream?: false }): Promise<GenerateResponse>;\n generate(\n request: GenerateRequest & { stream: true },\n ): Promise<AsyncGenerator<GenerateResponse, void, undefined>>;\n generate(\n request: GenerateRequest,\n ): Promise<GenerateResponse | AsyncGenerator<GenerateResponse, void, undefined>> {\n return this.runtime.invoke({\n operation: generateOp,\n body: request,\n streamingDefault: true,\n });\n }\n\n ps(options?: { signal?: AbortSignal }): Promise<PsResponse> {\n return this.runtime.invoke({\n operation: psOp,\n body: undefined,\n ...(options?.signal !== undefined ? { signal: options.signal } : {}),\n });\n }\n\n pull(request: PullRequest & { stream?: false }): Promise<StatusResponse>;\n pull(\n request: PullRequest & { stream: true },\n ): Promise<AsyncGenerator<StatusResponse, void, undefined>>;\n pull(\n request: PullRequest,\n ): Promise<StatusResponse | AsyncGenerator<StatusResponse, void, undefined>> {\n return this.runtime.invoke({\n operation: pullOp,\n body: request,\n streamingDefault: true,\n });\n }\n\n push(request: PushRequest & { stream?: false }): Promise<StatusResponse>;\n push(\n request: PushRequest & { stream: true },\n ): Promise<AsyncGenerator<StatusResponse, void, undefined>>;\n push(\n request: PushRequest,\n ): Promise<StatusResponse | AsyncGenerator<StatusResponse, void, undefined>> {\n return this.runtime.invoke({\n operation: pushOp,\n body: request,\n streamingDefault: true,\n });\n }\n\n show(request: ShowRequest): Promise<ShowResponse> {\n return this.runtime.invoke({\n operation: showOp,\n body: request,\n });\n }\n\n systemOne(request: SystemOneRequest): Promise<SystemOneResponse> {\n return this.runtime.invoke({\n operation: systemOneOp,\n body: request,\n });\n }\n\n tags(options?: { signal?: AbortSignal }): Promise<ListResponse> {\n return this.runtime.invoke({\n operation: tagsOp,\n body: undefined,\n ...(options?.signal !== undefined ? { signal: options.signal } : {}),\n });\n }\n\n version(options?: { signal?: AbortSignal }): Promise<VersionResponse> {\n return this.runtime.invoke({\n operation: versionOp,\n body: undefined,\n ...(options?.signal !== undefined ? { signal: options.signal } : {}),\n });\n }\n}\n","/**\n * AUTO-GENERATED by `npm run contract:generate`. DO NOT EDIT.\n * Source: contracts/ir/ollama.ir.json (canonical Ollama IR).\n * Each generated class delegates to OllamaRuntime — the runtime owns\n * transport, retry, streaming, telemetry, and error handling.\n */\n\nimport type { OllamaRuntime } from '../runtime/runtime.js';\n// No model types referenced.\nimport type {\n OpenAIChatCompletionChunk,\n OpenAIChatCompletionRequest,\n OpenAIChatCompletionResponse,\n OpenAICompletionChunk,\n OpenAICompletionRequest,\n OpenAICompletionResponse,\n OpenAIEmbeddingRequest,\n OpenAIEmbeddingResponse,\n OpenAIListModelsResponse,\n OpenAIModelItem,\n OpenAIResponsesRequest,\n OpenAIResponsesResponse,\n OpenAIResponsesStreamEvent,\n} from '../../integrations/index.js';\nimport {\n openaiChatCompletionsOp,\n openaiCompletionsOp,\n openaiEmbeddingsOp,\n openaiModelsOp,\n openaiModelsGetOneOp,\n openaiResponsesOp,\n} from './operations.js';\n\n/**\n * Generated API surface for Ollama's openai domain.\n * Each method delegates to {@link OllamaRuntime.invoke}.\n */\nexport class OpenAIApi {\n constructor(private readonly runtime: OllamaRuntime) {}\n\n openaiChatCompletions(\n request: OpenAIChatCompletionRequest & { stream?: false },\n ): Promise<OpenAIChatCompletionResponse>;\n openaiChatCompletions(\n request: OpenAIChatCompletionRequest & { stream: true },\n ): Promise<AsyncGenerator<OpenAIChatCompletionChunk, void, undefined>>;\n openaiChatCompletions(\n request: OpenAIChatCompletionRequest,\n ): Promise<\n OpenAIChatCompletionResponse | AsyncGenerator<OpenAIChatCompletionChunk, void, undefined>\n > {\n return this.runtime.invoke({\n operation: openaiChatCompletionsOp,\n body: request,\n });\n }\n\n openaiCompletions(\n request: OpenAICompletionRequest & { stream?: false },\n ): Promise<OpenAICompletionResponse>;\n openaiCompletions(\n request: OpenAICompletionRequest & { stream: true },\n ): Promise<AsyncGenerator<OpenAICompletionChunk, void, undefined>>;\n openaiCompletions(\n request: OpenAICompletionRequest,\n ): Promise<OpenAICompletionResponse | AsyncGenerator<OpenAICompletionChunk, void, undefined>> {\n return this.runtime.invoke({\n operation: openaiCompletionsOp,\n body: request,\n });\n }\n\n openaiEmbeddings(request: OpenAIEmbeddingRequest): Promise<OpenAIEmbeddingResponse> {\n return this.runtime.invoke({\n operation: openaiEmbeddingsOp,\n body: request,\n });\n }\n\n openaiModels(options?: { signal?: AbortSignal }): Promise<OpenAIListModelsResponse> {\n return this.runtime.invoke({\n operation: openaiModelsOp,\n body: undefined,\n ...(options?.signal !== undefined ? { signal: options.signal } : {}),\n });\n }\n\n openaiModelsGetOne(model: string, options?: { signal?: AbortSignal }): Promise<OpenAIModelItem> {\n return this.runtime.invoke({\n operation: openaiModelsGetOneOp,\n body: undefined,\n pathParams: { model },\n ...(options?.signal !== undefined ? { signal: options.signal } : {}),\n });\n }\n\n openaiResponses(\n request: OpenAIResponsesRequest & { stream?: false },\n ): Promise<OpenAIResponsesResponse>;\n openaiResponses(\n request: OpenAIResponsesRequest & { stream: true },\n ): Promise<AsyncGenerator<OpenAIResponsesStreamEvent, void, undefined>>;\n openaiResponses(\n request: OpenAIResponsesRequest,\n ): Promise<\n OpenAIResponsesResponse | AsyncGenerator<OpenAIResponsesStreamEvent, void, undefined>\n > {\n return this.runtime.invoke({\n operation: openaiResponsesOp,\n body: request,\n });\n }\n}\n","/**\n * AUTO-GENERATED by `npm run contract:generate`. DO NOT EDIT.\n * Source: contracts/ir/ollama.ir.json (canonical Ollama IR).\n * Each generated class delegates to OllamaRuntime — the runtime owns\n * transport, retry, streaming, telemetry, and error handling.\n */\n\nimport type { OllamaRuntime } from '../runtime/runtime.js';\n// No model types referenced.\nimport type {\n AnthropicMessageStreamEvent,\n AnthropicMessagesRequest,\n AnthropicMessagesResponse,\n} from '../../integrations/index.js';\nimport { anthropicMessagesOp } from './operations.js';\n\n/**\n * Generated API surface for Ollama's anthropic domain.\n * Each method delegates to {@link OllamaRuntime.invoke}.\n */\nexport class AnthropicApi {\n constructor(private readonly runtime: OllamaRuntime) {}\n\n anthropicMessages(\n request: AnthropicMessagesRequest & { stream?: false },\n ): Promise<AnthropicMessagesResponse>;\n anthropicMessages(\n request: AnthropicMessagesRequest & { stream: true },\n ): Promise<AsyncGenerator<AnthropicMessageStreamEvent, void, undefined>>;\n anthropicMessages(\n request: AnthropicMessagesRequest,\n ): Promise<\n AnthropicMessagesResponse | AsyncGenerator<AnthropicMessageStreamEvent, void, undefined>\n > {\n return this.runtime.invoke({\n operation: anthropicMessagesOp,\n body: request,\n });\n }\n}\n"]}
|
package/dist/generated-api.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { O as OpenAIChatCompletionRequest, a as OpenAIChatCompletionResponse, b as OpenAIChatCompletionChunk, c as OpenAICompletionRequest, d as OpenAICompletionResponse, e as OpenAICompletionChunk, f as OpenAIEmbeddingRequest, g as OpenAIEmbeddingResponse, h as OpenAIListModelsResponse, i as OpenAIModelItem, j as OpenAIResponsesRequest, k as OpenAIResponsesResponse, l as OpenAIResponsesStreamEvent, A as AnthropicMessagesRequest, m as AnthropicMessagesResponse, n as AnthropicMessageStreamEvent } from './anthropic-
|
|
2
|
-
export { N as NativeApi } from './anthropic-
|
|
1
|
+
import { O as OpenAIChatCompletionRequest, a as OpenAIChatCompletionResponse, b as OpenAIChatCompletionChunk, c as OpenAICompletionRequest, d as OpenAICompletionResponse, e as OpenAICompletionChunk, f as OpenAIEmbeddingRequest, g as OpenAIEmbeddingResponse, h as OpenAIListModelsResponse, i as OpenAIModelItem, j as OpenAIResponsesRequest, k as OpenAIResponsesResponse, l as OpenAIResponsesStreamEvent, A as AnthropicMessagesRequest, m as AnthropicMessagesResponse, n as AnthropicMessageStreamEvent } from './anthropic-D8qPCPIr.cjs';
|
|
2
|
+
export { N as NativeApi } from './anthropic-D8qPCPIr.cjs';
|
|
3
3
|
import { O as OllamaRuntime } from './runtime-CpO3H6yy.cjs';
|
|
4
4
|
export { a as OperationDefinition } from './runtime-CpO3H6yy.cjs';
|
|
5
5
|
import './types-CnsZ24tm.cjs';
|
|
@@ -564,6 +564,29 @@ declare const webSearchOp: {
|
|
|
564
564
|
readonly domain: "native";
|
|
565
565
|
readonly notes: readonly ["Cloud-only capability endpoint — targets https://ollama.com, not the local Ollama server.", "Requires an Ollama Cloud API key (set via OllamaClient credentials).", "Use OllamaClient.webSearch() — the generated NativeApi class does not expose this operation."];
|
|
566
566
|
};
|
|
567
|
+
declare const openaiAudioSpeechOp: {
|
|
568
|
+
readonly operationId: "openaiAudioSpeech";
|
|
569
|
+
readonly method: "POST";
|
|
570
|
+
readonly path: "/v1/audio/speech";
|
|
571
|
+
readonly environment: {
|
|
572
|
+
readonly local: true;
|
|
573
|
+
readonly cloud: true;
|
|
574
|
+
};
|
|
575
|
+
readonly transport: {
|
|
576
|
+
readonly mode: "json";
|
|
577
|
+
readonly streaming: false;
|
|
578
|
+
};
|
|
579
|
+
readonly capabilities: {};
|
|
580
|
+
readonly constraints: {
|
|
581
|
+
readonly minOllamaVersion: "0.40.8";
|
|
582
|
+
};
|
|
583
|
+
readonly status: {
|
|
584
|
+
readonly documented: true;
|
|
585
|
+
readonly experimental: true;
|
|
586
|
+
};
|
|
587
|
+
readonly domain: "openai";
|
|
588
|
+
readonly notes: readonly ["Generates audio with speech models; the response is a raw audio byte stream (16-bit mono, 24 kHz), not JSON/NDJSON/SSE — the generated runtime cannot transport it.", "Recorded for endpoint-discovery completeness and docs parity tracking; excluded from the generated OpenAIApi class and from MCP tools (binary-transport exclusion).", "The typed request shape is exported as OpenAISpeechRequest (src/integrations/openai.ts) for direct use until an audio transport lands."];
|
|
589
|
+
};
|
|
567
590
|
declare const openaiChatCompletionsOp: {
|
|
568
591
|
readonly operationId: "openaiChatCompletions";
|
|
569
592
|
readonly method: "POST";
|
|
@@ -1193,6 +1216,28 @@ declare const allOperations: readonly [{
|
|
|
1193
1216
|
};
|
|
1194
1217
|
readonly domain: "native";
|
|
1195
1218
|
readonly notes: readonly ["Cloud-only capability endpoint — targets https://ollama.com, not the local Ollama server.", "Requires an Ollama Cloud API key (set via OllamaClient credentials).", "Use OllamaClient.webSearch() — the generated NativeApi class does not expose this operation."];
|
|
1219
|
+
}, {
|
|
1220
|
+
readonly operationId: "openaiAudioSpeech";
|
|
1221
|
+
readonly method: "POST";
|
|
1222
|
+
readonly path: "/v1/audio/speech";
|
|
1223
|
+
readonly environment: {
|
|
1224
|
+
readonly local: true;
|
|
1225
|
+
readonly cloud: true;
|
|
1226
|
+
};
|
|
1227
|
+
readonly transport: {
|
|
1228
|
+
readonly mode: "json";
|
|
1229
|
+
readonly streaming: false;
|
|
1230
|
+
};
|
|
1231
|
+
readonly capabilities: {};
|
|
1232
|
+
readonly constraints: {
|
|
1233
|
+
readonly minOllamaVersion: "0.40.8";
|
|
1234
|
+
};
|
|
1235
|
+
readonly status: {
|
|
1236
|
+
readonly documented: true;
|
|
1237
|
+
readonly experimental: true;
|
|
1238
|
+
};
|
|
1239
|
+
readonly domain: "openai";
|
|
1240
|
+
readonly notes: readonly ["Generates audio with speech models; the response is a raw audio byte stream (16-bit mono, 24 kHz), not JSON/NDJSON/SSE — the generated runtime cannot transport it.", "Recorded for endpoint-discovery completeness and docs parity tracking; excluded from the generated OpenAIApi class and from MCP tools (binary-transport exclusion).", "The typed request shape is exported as OpenAISpeechRequest (src/integrations/openai.ts) for direct use until an audio transport lands."];
|
|
1196
1241
|
}, {
|
|
1197
1242
|
readonly operationId: "openaiChatCompletions";
|
|
1198
1243
|
readonly method: "POST";
|
|
@@ -1346,4 +1391,4 @@ declare const allOperations: readonly [{
|
|
|
1346
1391
|
readonly notes: readonly ["tool_choice and metadata are explicitly unsupported by Ollama's Anthropic compat layer.", "Nested cache_control fields under messages[].content[].cache_control are unsupported."];
|
|
1347
1392
|
}];
|
|
1348
1393
|
|
|
1349
|
-
export { AnthropicApi, OpenAIApi, allOperations, anthropicMessagesOp as anthropicMessages, balanceOp as balance, blobsOp as blobs, chatOp as chat, copyOp as copy, createOp as create, createBlobOp as createBlob, deleteOp as delete, embedOp as embed, generateOp as generate, openaiChatCompletionsOp as openaiChatCompletions, openaiCompletionsOp as openaiCompletions, openaiEmbeddingsOp as openaiEmbeddings, openaiModelsOp as openaiModels, openaiModelsGetOneOp as openaiModelsGetOne, openaiResponsesOp as openaiResponses, psOp as ps, pullOp as pull, pushOp as push, showOp as show, systemOneOp as systemOne, tagsOp as tags, usageOp as usage, versionOp as version, webFetchOp as webFetch, webSearchOp as webSearch };
|
|
1394
|
+
export { AnthropicApi, OpenAIApi, allOperations, anthropicMessagesOp as anthropicMessages, balanceOp as balance, blobsOp as blobs, chatOp as chat, copyOp as copy, createOp as create, createBlobOp as createBlob, deleteOp as delete, embedOp as embed, generateOp as generate, openaiAudioSpeechOp as openaiAudioSpeech, openaiChatCompletionsOp as openaiChatCompletions, openaiCompletionsOp as openaiCompletions, openaiEmbeddingsOp as openaiEmbeddings, openaiModelsOp as openaiModels, openaiModelsGetOneOp as openaiModelsGetOne, openaiResponsesOp as openaiResponses, psOp as ps, pullOp as pull, pushOp as push, showOp as show, systemOneOp as systemOne, tagsOp as tags, usageOp as usage, versionOp as version, webFetchOp as webFetch, webSearchOp as webSearch };
|
package/dist/generated-api.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { O as OpenAIChatCompletionRequest, a as OpenAIChatCompletionResponse, b as OpenAIChatCompletionChunk, c as OpenAICompletionRequest, d as OpenAICompletionResponse, e as OpenAICompletionChunk, f as OpenAIEmbeddingRequest, g as OpenAIEmbeddingResponse, h as OpenAIListModelsResponse, i as OpenAIModelItem, j as OpenAIResponsesRequest, k as OpenAIResponsesResponse, l as OpenAIResponsesStreamEvent, A as AnthropicMessagesRequest, m as AnthropicMessagesResponse, n as AnthropicMessageStreamEvent } from './anthropic-
|
|
2
|
-
export { N as NativeApi } from './anthropic-
|
|
1
|
+
import { O as OpenAIChatCompletionRequest, a as OpenAIChatCompletionResponse, b as OpenAIChatCompletionChunk, c as OpenAICompletionRequest, d as OpenAICompletionResponse, e as OpenAICompletionChunk, f as OpenAIEmbeddingRequest, g as OpenAIEmbeddingResponse, h as OpenAIListModelsResponse, i as OpenAIModelItem, j as OpenAIResponsesRequest, k as OpenAIResponsesResponse, l as OpenAIResponsesStreamEvent, A as AnthropicMessagesRequest, m as AnthropicMessagesResponse, n as AnthropicMessageStreamEvent } from './anthropic-DjdkzlIn.js';
|
|
2
|
+
export { N as NativeApi } from './anthropic-DjdkzlIn.js';
|
|
3
3
|
import { O as OllamaRuntime } from './runtime-DPSrPwAa.js';
|
|
4
4
|
export { a as OperationDefinition } from './runtime-DPSrPwAa.js';
|
|
5
5
|
import './types-CnsZ24tm.js';
|
|
@@ -564,6 +564,29 @@ declare const webSearchOp: {
|
|
|
564
564
|
readonly domain: "native";
|
|
565
565
|
readonly notes: readonly ["Cloud-only capability endpoint — targets https://ollama.com, not the local Ollama server.", "Requires an Ollama Cloud API key (set via OllamaClient credentials).", "Use OllamaClient.webSearch() — the generated NativeApi class does not expose this operation."];
|
|
566
566
|
};
|
|
567
|
+
declare const openaiAudioSpeechOp: {
|
|
568
|
+
readonly operationId: "openaiAudioSpeech";
|
|
569
|
+
readonly method: "POST";
|
|
570
|
+
readonly path: "/v1/audio/speech";
|
|
571
|
+
readonly environment: {
|
|
572
|
+
readonly local: true;
|
|
573
|
+
readonly cloud: true;
|
|
574
|
+
};
|
|
575
|
+
readonly transport: {
|
|
576
|
+
readonly mode: "json";
|
|
577
|
+
readonly streaming: false;
|
|
578
|
+
};
|
|
579
|
+
readonly capabilities: {};
|
|
580
|
+
readonly constraints: {
|
|
581
|
+
readonly minOllamaVersion: "0.40.8";
|
|
582
|
+
};
|
|
583
|
+
readonly status: {
|
|
584
|
+
readonly documented: true;
|
|
585
|
+
readonly experimental: true;
|
|
586
|
+
};
|
|
587
|
+
readonly domain: "openai";
|
|
588
|
+
readonly notes: readonly ["Generates audio with speech models; the response is a raw audio byte stream (16-bit mono, 24 kHz), not JSON/NDJSON/SSE — the generated runtime cannot transport it.", "Recorded for endpoint-discovery completeness and docs parity tracking; excluded from the generated OpenAIApi class and from MCP tools (binary-transport exclusion).", "The typed request shape is exported as OpenAISpeechRequest (src/integrations/openai.ts) for direct use until an audio transport lands."];
|
|
589
|
+
};
|
|
567
590
|
declare const openaiChatCompletionsOp: {
|
|
568
591
|
readonly operationId: "openaiChatCompletions";
|
|
569
592
|
readonly method: "POST";
|
|
@@ -1193,6 +1216,28 @@ declare const allOperations: readonly [{
|
|
|
1193
1216
|
};
|
|
1194
1217
|
readonly domain: "native";
|
|
1195
1218
|
readonly notes: readonly ["Cloud-only capability endpoint — targets https://ollama.com, not the local Ollama server.", "Requires an Ollama Cloud API key (set via OllamaClient credentials).", "Use OllamaClient.webSearch() — the generated NativeApi class does not expose this operation."];
|
|
1219
|
+
}, {
|
|
1220
|
+
readonly operationId: "openaiAudioSpeech";
|
|
1221
|
+
readonly method: "POST";
|
|
1222
|
+
readonly path: "/v1/audio/speech";
|
|
1223
|
+
readonly environment: {
|
|
1224
|
+
readonly local: true;
|
|
1225
|
+
readonly cloud: true;
|
|
1226
|
+
};
|
|
1227
|
+
readonly transport: {
|
|
1228
|
+
readonly mode: "json";
|
|
1229
|
+
readonly streaming: false;
|
|
1230
|
+
};
|
|
1231
|
+
readonly capabilities: {};
|
|
1232
|
+
readonly constraints: {
|
|
1233
|
+
readonly minOllamaVersion: "0.40.8";
|
|
1234
|
+
};
|
|
1235
|
+
readonly status: {
|
|
1236
|
+
readonly documented: true;
|
|
1237
|
+
readonly experimental: true;
|
|
1238
|
+
};
|
|
1239
|
+
readonly domain: "openai";
|
|
1240
|
+
readonly notes: readonly ["Generates audio with speech models; the response is a raw audio byte stream (16-bit mono, 24 kHz), not JSON/NDJSON/SSE — the generated runtime cannot transport it.", "Recorded for endpoint-discovery completeness and docs parity tracking; excluded from the generated OpenAIApi class and from MCP tools (binary-transport exclusion).", "The typed request shape is exported as OpenAISpeechRequest (src/integrations/openai.ts) for direct use until an audio transport lands."];
|
|
1196
1241
|
}, {
|
|
1197
1242
|
readonly operationId: "openaiChatCompletions";
|
|
1198
1243
|
readonly method: "POST";
|
|
@@ -1346,4 +1391,4 @@ declare const allOperations: readonly [{
|
|
|
1346
1391
|
readonly notes: readonly ["tool_choice and metadata are explicitly unsupported by Ollama's Anthropic compat layer.", "Nested cache_control fields under messages[].content[].cache_control are unsupported."];
|
|
1347
1392
|
}];
|
|
1348
1393
|
|
|
1349
|
-
export { AnthropicApi, OpenAIApi, allOperations, anthropicMessagesOp as anthropicMessages, balanceOp as balance, blobsOp as blobs, chatOp as chat, copyOp as copy, createOp as create, createBlobOp as createBlob, deleteOp as delete, embedOp as embed, generateOp as generate, openaiChatCompletionsOp as openaiChatCompletions, openaiCompletionsOp as openaiCompletions, openaiEmbeddingsOp as openaiEmbeddings, openaiModelsOp as openaiModels, openaiModelsGetOneOp as openaiModelsGetOne, openaiResponsesOp as openaiResponses, psOp as ps, pullOp as pull, pushOp as push, showOp as show, systemOneOp as systemOne, tagsOp as tags, usageOp as usage, versionOp as version, webFetchOp as webFetch, webSearchOp as webSearch };
|
|
1394
|
+
export { AnthropicApi, OpenAIApi, allOperations, anthropicMessagesOp as anthropicMessages, balanceOp as balance, blobsOp as blobs, chatOp as chat, copyOp as copy, createOp as create, createBlobOp as createBlob, deleteOp as delete, embedOp as embed, generateOp as generate, openaiAudioSpeechOp as openaiAudioSpeech, openaiChatCompletionsOp as openaiChatCompletions, openaiCompletionsOp as openaiCompletions, openaiEmbeddingsOp as openaiEmbeddings, openaiModelsOp as openaiModels, openaiModelsGetOneOp as openaiModelsGetOne, openaiResponsesOp as openaiResponses, psOp as ps, pullOp as pull, pushOp as push, showOp as show, systemOneOp as systemOne, tagsOp as tags, usageOp as usage, versionOp as version, webFetchOp as webFetch, webSearchOp as webSearch };
|