@codeworksh/aikit 0.4.1-dev.20260531052349 → 0.5.1-dev.20260613074656
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/LICENSE +1 -1
- package/cli.mjs +95 -5
- package/cli.mjs.map +1 -1
- package/{codex-DfYk740t.mjs → codex-C36oU6yH.mjs} +30 -23
- package/codex-C36oU6yH.mjs.map +1 -0
- package/index.d.mts +142 -75
- package/index.mjs +8 -3
- package/index.mjs.map +1 -1
- package/oauth/openai/codex.d.mts +27 -18
- package/oauth/openai/codex.mjs +2 -2
- package/openai-codex-CZrBnLAJ.mjs +753 -0
- package/openai-codex-CZrBnLAJ.mjs.map +1 -0
- package/openai-codex-bzfev3us.mjs +2 -0
- package/package.json +2 -1
- package/{registry-Cfdk78qk.mjs → registry-DUKrGxt4.mjs} +12 -7
- package/{registry-Cfdk78qk.mjs.map → registry-DUKrGxt4.mjs.map} +1 -1
- package/codex-DfYk740t.mjs.map +0 -1
package/index.d.mts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import Type$1, { Static, Static as Static$1, TSchema, TSchema as TSchema$1, Type, Type as Type$2 } from "typebox";
|
|
2
2
|
import { statSync } from "fs";
|
|
3
3
|
import { Readable } from "stream";
|
|
4
|
+
import { APICallError, LanguageModelV3, ProviderV3 } from "@ai-sdk/provider";
|
|
4
5
|
import { AnthropicLanguageModelOptions, AnthropicProviderSettings } from "@ai-sdk/anthropic";
|
|
5
6
|
import { GoogleGenerativeAIProviderSettings, GoogleLanguageModelOptions } from "@ai-sdk/google";
|
|
6
7
|
import { GoogleVertexProviderSettings } from "@ai-sdk/google-vertex";
|
|
@@ -40,7 +41,7 @@ declare namespace Event {
|
|
|
40
41
|
type: Type$1.TLiteral<"start">;
|
|
41
42
|
partial: Type$1.TObject<{
|
|
42
43
|
role: Type$1.TLiteral<"assistant">;
|
|
43
|
-
protocol: Type$1.TUnion<[Type$1.TLiteral<"anthropic">, Type$1.TLiteral<"google">, Type$1.TLiteral<"google-vertex">, Type$1.TLiteral<"google-vertex-anthropic">, Type$1.TLiteral<"openai">, Type$1.TLiteral<"openai-compatible">, Type$1.TLiteral<"openrouter">, Type$1.TLiteral<"xai">]>;
|
|
44
|
+
protocol: Type$1.TUnion<[Type$1.TLiteral<"anthropic">, Type$1.TLiteral<"google">, Type$1.TLiteral<"google-vertex">, Type$1.TLiteral<"google-vertex-anthropic">, Type$1.TLiteral<"openai">, Type$1.TLiteral<"openai-compatible">, Type$1.TLiteral<"openai-codex">, Type$1.TLiteral<"openrouter">, Type$1.TLiteral<"xai">]>;
|
|
44
45
|
provider: Type$1.TObject<{
|
|
45
46
|
id: Type$1.TString;
|
|
46
47
|
name: Type$1.TString;
|
|
@@ -224,7 +225,7 @@ declare namespace Event {
|
|
|
224
225
|
partIndex: Type$1.TNumber;
|
|
225
226
|
partial: Type$1.TObject<{
|
|
226
227
|
role: Type$1.TLiteral<"assistant">;
|
|
227
|
-
protocol: Type$1.TUnion<[Type$1.TLiteral<"anthropic">, Type$1.TLiteral<"google">, Type$1.TLiteral<"google-vertex">, Type$1.TLiteral<"google-vertex-anthropic">, Type$1.TLiteral<"openai">, Type$1.TLiteral<"openai-compatible">, Type$1.TLiteral<"openrouter">, Type$1.TLiteral<"xai">]>;
|
|
228
|
+
protocol: Type$1.TUnion<[Type$1.TLiteral<"anthropic">, Type$1.TLiteral<"google">, Type$1.TLiteral<"google-vertex">, Type$1.TLiteral<"google-vertex-anthropic">, Type$1.TLiteral<"openai">, Type$1.TLiteral<"openai-compatible">, Type$1.TLiteral<"openai-codex">, Type$1.TLiteral<"openrouter">, Type$1.TLiteral<"xai">]>;
|
|
228
229
|
provider: Type$1.TObject<{
|
|
229
230
|
id: Type$1.TString;
|
|
230
231
|
name: Type$1.TString;
|
|
@@ -409,7 +410,7 @@ declare namespace Event {
|
|
|
409
410
|
delta: Type$1.TString;
|
|
410
411
|
partial: Type$1.TObject<{
|
|
411
412
|
role: Type$1.TLiteral<"assistant">;
|
|
412
|
-
protocol: Type$1.TUnion<[Type$1.TLiteral<"anthropic">, Type$1.TLiteral<"google">, Type$1.TLiteral<"google-vertex">, Type$1.TLiteral<"google-vertex-anthropic">, Type$1.TLiteral<"openai">, Type$1.TLiteral<"openai-compatible">, Type$1.TLiteral<"openrouter">, Type$1.TLiteral<"xai">]>;
|
|
413
|
+
protocol: Type$1.TUnion<[Type$1.TLiteral<"anthropic">, Type$1.TLiteral<"google">, Type$1.TLiteral<"google-vertex">, Type$1.TLiteral<"google-vertex-anthropic">, Type$1.TLiteral<"openai">, Type$1.TLiteral<"openai-compatible">, Type$1.TLiteral<"openai-codex">, Type$1.TLiteral<"openrouter">, Type$1.TLiteral<"xai">]>;
|
|
413
414
|
provider: Type$1.TObject<{
|
|
414
415
|
id: Type$1.TString;
|
|
415
416
|
name: Type$1.TString;
|
|
@@ -594,7 +595,7 @@ declare namespace Event {
|
|
|
594
595
|
content: Type$1.TString;
|
|
595
596
|
partial: Type$1.TObject<{
|
|
596
597
|
role: Type$1.TLiteral<"assistant">;
|
|
597
|
-
protocol: Type$1.TUnion<[Type$1.TLiteral<"anthropic">, Type$1.TLiteral<"google">, Type$1.TLiteral<"google-vertex">, Type$1.TLiteral<"google-vertex-anthropic">, Type$1.TLiteral<"openai">, Type$1.TLiteral<"openai-compatible">, Type$1.TLiteral<"openrouter">, Type$1.TLiteral<"xai">]>;
|
|
598
|
+
protocol: Type$1.TUnion<[Type$1.TLiteral<"anthropic">, Type$1.TLiteral<"google">, Type$1.TLiteral<"google-vertex">, Type$1.TLiteral<"google-vertex-anthropic">, Type$1.TLiteral<"openai">, Type$1.TLiteral<"openai-compatible">, Type$1.TLiteral<"openai-codex">, Type$1.TLiteral<"openrouter">, Type$1.TLiteral<"xai">]>;
|
|
598
599
|
provider: Type$1.TObject<{
|
|
599
600
|
id: Type$1.TString;
|
|
600
601
|
name: Type$1.TString;
|
|
@@ -778,7 +779,7 @@ declare namespace Event {
|
|
|
778
779
|
partIndex: Type$1.TNumber;
|
|
779
780
|
partial: Type$1.TObject<{
|
|
780
781
|
role: Type$1.TLiteral<"assistant">;
|
|
781
|
-
protocol: Type$1.TUnion<[Type$1.TLiteral<"anthropic">, Type$1.TLiteral<"google">, Type$1.TLiteral<"google-vertex">, Type$1.TLiteral<"google-vertex-anthropic">, Type$1.TLiteral<"openai">, Type$1.TLiteral<"openai-compatible">, Type$1.TLiteral<"openrouter">, Type$1.TLiteral<"xai">]>;
|
|
782
|
+
protocol: Type$1.TUnion<[Type$1.TLiteral<"anthropic">, Type$1.TLiteral<"google">, Type$1.TLiteral<"google-vertex">, Type$1.TLiteral<"google-vertex-anthropic">, Type$1.TLiteral<"openai">, Type$1.TLiteral<"openai-compatible">, Type$1.TLiteral<"openai-codex">, Type$1.TLiteral<"openrouter">, Type$1.TLiteral<"xai">]>;
|
|
782
783
|
provider: Type$1.TObject<{
|
|
783
784
|
id: Type$1.TString;
|
|
784
785
|
name: Type$1.TString;
|
|
@@ -963,7 +964,7 @@ declare namespace Event {
|
|
|
963
964
|
delta: Type$1.TString;
|
|
964
965
|
partial: Type$1.TObject<{
|
|
965
966
|
role: Type$1.TLiteral<"assistant">;
|
|
966
|
-
protocol: Type$1.TUnion<[Type$1.TLiteral<"anthropic">, Type$1.TLiteral<"google">, Type$1.TLiteral<"google-vertex">, Type$1.TLiteral<"google-vertex-anthropic">, Type$1.TLiteral<"openai">, Type$1.TLiteral<"openai-compatible">, Type$1.TLiteral<"openrouter">, Type$1.TLiteral<"xai">]>;
|
|
967
|
+
protocol: Type$1.TUnion<[Type$1.TLiteral<"anthropic">, Type$1.TLiteral<"google">, Type$1.TLiteral<"google-vertex">, Type$1.TLiteral<"google-vertex-anthropic">, Type$1.TLiteral<"openai">, Type$1.TLiteral<"openai-compatible">, Type$1.TLiteral<"openai-codex">, Type$1.TLiteral<"openrouter">, Type$1.TLiteral<"xai">]>;
|
|
967
968
|
provider: Type$1.TObject<{
|
|
968
969
|
id: Type$1.TString;
|
|
969
970
|
name: Type$1.TString;
|
|
@@ -1148,7 +1149,7 @@ declare namespace Event {
|
|
|
1148
1149
|
content: Type$1.TString;
|
|
1149
1150
|
partial: Type$1.TObject<{
|
|
1150
1151
|
role: Type$1.TLiteral<"assistant">;
|
|
1151
|
-
protocol: Type$1.TUnion<[Type$1.TLiteral<"anthropic">, Type$1.TLiteral<"google">, Type$1.TLiteral<"google-vertex">, Type$1.TLiteral<"google-vertex-anthropic">, Type$1.TLiteral<"openai">, Type$1.TLiteral<"openai-compatible">, Type$1.TLiteral<"openrouter">, Type$1.TLiteral<"xai">]>;
|
|
1152
|
+
protocol: Type$1.TUnion<[Type$1.TLiteral<"anthropic">, Type$1.TLiteral<"google">, Type$1.TLiteral<"google-vertex">, Type$1.TLiteral<"google-vertex-anthropic">, Type$1.TLiteral<"openai">, Type$1.TLiteral<"openai-compatible">, Type$1.TLiteral<"openai-codex">, Type$1.TLiteral<"openrouter">, Type$1.TLiteral<"xai">]>;
|
|
1152
1153
|
provider: Type$1.TObject<{
|
|
1153
1154
|
id: Type$1.TString;
|
|
1154
1155
|
name: Type$1.TString;
|
|
@@ -1332,7 +1333,7 @@ declare namespace Event {
|
|
|
1332
1333
|
partIndex: Type$1.TNumber;
|
|
1333
1334
|
partial: Type$1.TObject<{
|
|
1334
1335
|
role: Type$1.TLiteral<"assistant">;
|
|
1335
|
-
protocol: Type$1.TUnion<[Type$1.TLiteral<"anthropic">, Type$1.TLiteral<"google">, Type$1.TLiteral<"google-vertex">, Type$1.TLiteral<"google-vertex-anthropic">, Type$1.TLiteral<"openai">, Type$1.TLiteral<"openai-compatible">, Type$1.TLiteral<"openrouter">, Type$1.TLiteral<"xai">]>;
|
|
1336
|
+
protocol: Type$1.TUnion<[Type$1.TLiteral<"anthropic">, Type$1.TLiteral<"google">, Type$1.TLiteral<"google-vertex">, Type$1.TLiteral<"google-vertex-anthropic">, Type$1.TLiteral<"openai">, Type$1.TLiteral<"openai-compatible">, Type$1.TLiteral<"openai-codex">, Type$1.TLiteral<"openrouter">, Type$1.TLiteral<"xai">]>;
|
|
1336
1337
|
provider: Type$1.TObject<{
|
|
1337
1338
|
id: Type$1.TString;
|
|
1338
1339
|
name: Type$1.TString;
|
|
@@ -1517,7 +1518,7 @@ declare namespace Event {
|
|
|
1517
1518
|
delta: Type$1.TString;
|
|
1518
1519
|
partial: Type$1.TObject<{
|
|
1519
1520
|
role: Type$1.TLiteral<"assistant">;
|
|
1520
|
-
protocol: Type$1.TUnion<[Type$1.TLiteral<"anthropic">, Type$1.TLiteral<"google">, Type$1.TLiteral<"google-vertex">, Type$1.TLiteral<"google-vertex-anthropic">, Type$1.TLiteral<"openai">, Type$1.TLiteral<"openai-compatible">, Type$1.TLiteral<"openrouter">, Type$1.TLiteral<"xai">]>;
|
|
1521
|
+
protocol: Type$1.TUnion<[Type$1.TLiteral<"anthropic">, Type$1.TLiteral<"google">, Type$1.TLiteral<"google-vertex">, Type$1.TLiteral<"google-vertex-anthropic">, Type$1.TLiteral<"openai">, Type$1.TLiteral<"openai-compatible">, Type$1.TLiteral<"openai-codex">, Type$1.TLiteral<"openrouter">, Type$1.TLiteral<"xai">]>;
|
|
1521
1522
|
provider: Type$1.TObject<{
|
|
1522
1523
|
id: Type$1.TString;
|
|
1523
1524
|
name: Type$1.TString;
|
|
@@ -1833,7 +1834,7 @@ declare namespace Event {
|
|
|
1833
1834
|
}>]>;
|
|
1834
1835
|
partial: Type$1.TObject<{
|
|
1835
1836
|
role: Type$1.TLiteral<"assistant">;
|
|
1836
|
-
protocol: Type$1.TUnion<[Type$1.TLiteral<"anthropic">, Type$1.TLiteral<"google">, Type$1.TLiteral<"google-vertex">, Type$1.TLiteral<"google-vertex-anthropic">, Type$1.TLiteral<"openai">, Type$1.TLiteral<"openai-compatible">, Type$1.TLiteral<"openrouter">, Type$1.TLiteral<"xai">]>;
|
|
1837
|
+
protocol: Type$1.TUnion<[Type$1.TLiteral<"anthropic">, Type$1.TLiteral<"google">, Type$1.TLiteral<"google-vertex">, Type$1.TLiteral<"google-vertex-anthropic">, Type$1.TLiteral<"openai">, Type$1.TLiteral<"openai-compatible">, Type$1.TLiteral<"openai-codex">, Type$1.TLiteral<"openrouter">, Type$1.TLiteral<"xai">]>;
|
|
1837
1838
|
provider: Type$1.TObject<{
|
|
1838
1839
|
id: Type$1.TString;
|
|
1839
1840
|
name: Type$1.TString;
|
|
@@ -2149,7 +2150,7 @@ declare namespace Event {
|
|
|
2149
2150
|
}>]>;
|
|
2150
2151
|
partial: Type$1.TObject<{
|
|
2151
2152
|
role: Type$1.TLiteral<"assistant">;
|
|
2152
|
-
protocol: Type$1.TUnion<[Type$1.TLiteral<"anthropic">, Type$1.TLiteral<"google">, Type$1.TLiteral<"google-vertex">, Type$1.TLiteral<"google-vertex-anthropic">, Type$1.TLiteral<"openai">, Type$1.TLiteral<"openai-compatible">, Type$1.TLiteral<"openrouter">, Type$1.TLiteral<"xai">]>;
|
|
2153
|
+
protocol: Type$1.TUnion<[Type$1.TLiteral<"anthropic">, Type$1.TLiteral<"google">, Type$1.TLiteral<"google-vertex">, Type$1.TLiteral<"google-vertex-anthropic">, Type$1.TLiteral<"openai">, Type$1.TLiteral<"openai-compatible">, Type$1.TLiteral<"openai-codex">, Type$1.TLiteral<"openrouter">, Type$1.TLiteral<"xai">]>;
|
|
2153
2154
|
provider: Type$1.TObject<{
|
|
2154
2155
|
id: Type$1.TString;
|
|
2155
2156
|
name: Type$1.TString;
|
|
@@ -2333,7 +2334,7 @@ declare namespace Event {
|
|
|
2333
2334
|
reason: Type$1.TUnion<[Type$1.TLiteral<"stop">, Type$1.TLiteral<"length">, Type$1.TLiteral<"toolUse">]>;
|
|
2334
2335
|
message: Type$1.TObject<{
|
|
2335
2336
|
role: Type$1.TLiteral<"assistant">;
|
|
2336
|
-
protocol: Type$1.TUnion<[Type$1.TLiteral<"anthropic">, Type$1.TLiteral<"google">, Type$1.TLiteral<"google-vertex">, Type$1.TLiteral<"google-vertex-anthropic">, Type$1.TLiteral<"openai">, Type$1.TLiteral<"openai-compatible">, Type$1.TLiteral<"openrouter">, Type$1.TLiteral<"xai">]>;
|
|
2337
|
+
protocol: Type$1.TUnion<[Type$1.TLiteral<"anthropic">, Type$1.TLiteral<"google">, Type$1.TLiteral<"google-vertex">, Type$1.TLiteral<"google-vertex-anthropic">, Type$1.TLiteral<"openai">, Type$1.TLiteral<"openai-compatible">, Type$1.TLiteral<"openai-codex">, Type$1.TLiteral<"openrouter">, Type$1.TLiteral<"xai">]>;
|
|
2337
2338
|
provider: Type$1.TObject<{
|
|
2338
2339
|
id: Type$1.TString;
|
|
2339
2340
|
name: Type$1.TString;
|
|
@@ -2517,7 +2518,7 @@ declare namespace Event {
|
|
|
2517
2518
|
reason: Type$1.TUnion<[Type$1.TLiteral<"aborted">, Type$1.TLiteral<"error">]>;
|
|
2518
2519
|
error: Type$1.TObject<{
|
|
2519
2520
|
role: Type$1.TLiteral<"assistant">;
|
|
2520
|
-
protocol: Type$1.TUnion<[Type$1.TLiteral<"anthropic">, Type$1.TLiteral<"google">, Type$1.TLiteral<"google-vertex">, Type$1.TLiteral<"google-vertex-anthropic">, Type$1.TLiteral<"openai">, Type$1.TLiteral<"openai-compatible">, Type$1.TLiteral<"openrouter">, Type$1.TLiteral<"xai">]>;
|
|
2521
|
+
protocol: Type$1.TUnion<[Type$1.TLiteral<"anthropic">, Type$1.TLiteral<"google">, Type$1.TLiteral<"google-vertex">, Type$1.TLiteral<"google-vertex-anthropic">, Type$1.TLiteral<"openai">, Type$1.TLiteral<"openai-compatible">, Type$1.TLiteral<"openai-codex">, Type$1.TLiteral<"openrouter">, Type$1.TLiteral<"xai">]>;
|
|
2521
2522
|
provider: Type$1.TObject<{
|
|
2522
2523
|
id: Type$1.TString;
|
|
2523
2524
|
name: Type$1.TString;
|
|
@@ -2810,7 +2811,7 @@ declare namespace Event {
|
|
|
2810
2811
|
}>]>>;
|
|
2811
2812
|
}>, Type$1.TObject<{
|
|
2812
2813
|
role: Type$1.TLiteral<"assistant">;
|
|
2813
|
-
protocol: Type$1.TUnion<[Type$1.TLiteral<"anthropic">, Type$1.TLiteral<"google">, Type$1.TLiteral<"google-vertex">, Type$1.TLiteral<"google-vertex-anthropic">, Type$1.TLiteral<"openai">, Type$1.TLiteral<"openai-compatible">, Type$1.TLiteral<"openrouter">, Type$1.TLiteral<"xai">]>;
|
|
2814
|
+
protocol: Type$1.TUnion<[Type$1.TLiteral<"anthropic">, Type$1.TLiteral<"google">, Type$1.TLiteral<"google-vertex">, Type$1.TLiteral<"google-vertex-anthropic">, Type$1.TLiteral<"openai">, Type$1.TLiteral<"openai-compatible">, Type$1.TLiteral<"openai-codex">, Type$1.TLiteral<"openrouter">, Type$1.TLiteral<"xai">]>;
|
|
2814
2815
|
provider: Type$1.TObject<{
|
|
2815
2816
|
id: Type$1.TString;
|
|
2816
2817
|
name: Type$1.TString;
|
|
@@ -2995,7 +2996,7 @@ declare namespace Event {
|
|
|
2995
2996
|
type: Type$1.TLiteral<"turn.end">;
|
|
2996
2997
|
message: Type$1.TObject<{
|
|
2997
2998
|
role: Type$1.TLiteral<"assistant">;
|
|
2998
|
-
protocol: Type$1.TUnion<[Type$1.TLiteral<"anthropic">, Type$1.TLiteral<"google">, Type$1.TLiteral<"google-vertex">, Type$1.TLiteral<"google-vertex-anthropic">, Type$1.TLiteral<"openai">, Type$1.TLiteral<"openai-compatible">, Type$1.TLiteral<"openrouter">, Type$1.TLiteral<"xai">]>;
|
|
2999
|
+
protocol: Type$1.TUnion<[Type$1.TLiteral<"anthropic">, Type$1.TLiteral<"google">, Type$1.TLiteral<"google-vertex">, Type$1.TLiteral<"google-vertex-anthropic">, Type$1.TLiteral<"openai">, Type$1.TLiteral<"openai-compatible">, Type$1.TLiteral<"openai-codex">, Type$1.TLiteral<"openrouter">, Type$1.TLiteral<"xai">]>;
|
|
2999
3000
|
provider: Type$1.TObject<{
|
|
3000
3001
|
id: Type$1.TString;
|
|
3001
3002
|
name: Type$1.TString;
|
|
@@ -3193,7 +3194,7 @@ declare namespace Event {
|
|
|
3193
3194
|
}>]>>;
|
|
3194
3195
|
}>, Type$1.TObject<{
|
|
3195
3196
|
role: Type$1.TLiteral<"assistant">;
|
|
3196
|
-
protocol: Type$1.TUnion<[Type$1.TLiteral<"anthropic">, Type$1.TLiteral<"google">, Type$1.TLiteral<"google-vertex">, Type$1.TLiteral<"google-vertex-anthropic">, Type$1.TLiteral<"openai">, Type$1.TLiteral<"openai-compatible">, Type$1.TLiteral<"openrouter">, Type$1.TLiteral<"xai">]>;
|
|
3197
|
+
protocol: Type$1.TUnion<[Type$1.TLiteral<"anthropic">, Type$1.TLiteral<"google">, Type$1.TLiteral<"google-vertex">, Type$1.TLiteral<"google-vertex-anthropic">, Type$1.TLiteral<"openai">, Type$1.TLiteral<"openai-compatible">, Type$1.TLiteral<"openai-codex">, Type$1.TLiteral<"openrouter">, Type$1.TLiteral<"xai">]>;
|
|
3197
3198
|
provider: Type$1.TObject<{
|
|
3198
3199
|
id: Type$1.TString;
|
|
3199
3200
|
name: Type$1.TString;
|
|
@@ -3432,7 +3433,7 @@ declare namespace Event {
|
|
|
3432
3433
|
type: Type$1.TLiteral<"message.part.start">;
|
|
3433
3434
|
message: Type$1.TObject<{
|
|
3434
3435
|
role: Type$1.TLiteral<"assistant">;
|
|
3435
|
-
protocol: Type$1.TUnion<[Type$1.TLiteral<"anthropic">, Type$1.TLiteral<"google">, Type$1.TLiteral<"google-vertex">, Type$1.TLiteral<"google-vertex-anthropic">, Type$1.TLiteral<"openai">, Type$1.TLiteral<"openai-compatible">, Type$1.TLiteral<"openrouter">, Type$1.TLiteral<"xai">]>;
|
|
3436
|
+
protocol: Type$1.TUnion<[Type$1.TLiteral<"anthropic">, Type$1.TLiteral<"google">, Type$1.TLiteral<"google-vertex">, Type$1.TLiteral<"google-vertex-anthropic">, Type$1.TLiteral<"openai">, Type$1.TLiteral<"openai-compatible">, Type$1.TLiteral<"openai-codex">, Type$1.TLiteral<"openrouter">, Type$1.TLiteral<"xai">]>;
|
|
3436
3437
|
provider: Type$1.TObject<{
|
|
3437
3438
|
id: Type$1.TString;
|
|
3438
3439
|
name: Type$1.TString;
|
|
@@ -3761,7 +3762,7 @@ declare namespace Event {
|
|
|
3761
3762
|
type: Type$1.TLiteral<"message.part.update">;
|
|
3762
3763
|
message: Type$1.TObject<{
|
|
3763
3764
|
role: Type$1.TLiteral<"assistant">;
|
|
3764
|
-
protocol: Type$1.TUnion<[Type$1.TLiteral<"anthropic">, Type$1.TLiteral<"google">, Type$1.TLiteral<"google-vertex">, Type$1.TLiteral<"google-vertex-anthropic">, Type$1.TLiteral<"openai">, Type$1.TLiteral<"openai-compatible">, Type$1.TLiteral<"openrouter">, Type$1.TLiteral<"xai">]>;
|
|
3765
|
+
protocol: Type$1.TUnion<[Type$1.TLiteral<"anthropic">, Type$1.TLiteral<"google">, Type$1.TLiteral<"google-vertex">, Type$1.TLiteral<"google-vertex-anthropic">, Type$1.TLiteral<"openai">, Type$1.TLiteral<"openai-compatible">, Type$1.TLiteral<"openai-codex">, Type$1.TLiteral<"openrouter">, Type$1.TLiteral<"xai">]>;
|
|
3765
3766
|
provider: Type$1.TObject<{
|
|
3766
3767
|
id: Type$1.TString;
|
|
3767
3768
|
name: Type$1.TString;
|
|
@@ -4091,7 +4092,7 @@ declare namespace Event {
|
|
|
4091
4092
|
type: Type$1.TLiteral<"message.part.update">;
|
|
4092
4093
|
message: Type$1.TObject<{
|
|
4093
4094
|
role: Type$1.TLiteral<"assistant">;
|
|
4094
|
-
protocol: Type$1.TUnion<[Type$1.TLiteral<"anthropic">, Type$1.TLiteral<"google">, Type$1.TLiteral<"google-vertex">, Type$1.TLiteral<"google-vertex-anthropic">, Type$1.TLiteral<"openai">, Type$1.TLiteral<"openai-compatible">, Type$1.TLiteral<"openrouter">, Type$1.TLiteral<"xai">]>;
|
|
4095
|
+
protocol: Type$1.TUnion<[Type$1.TLiteral<"anthropic">, Type$1.TLiteral<"google">, Type$1.TLiteral<"google-vertex">, Type$1.TLiteral<"google-vertex-anthropic">, Type$1.TLiteral<"openai">, Type$1.TLiteral<"openai-compatible">, Type$1.TLiteral<"openai-codex">, Type$1.TLiteral<"openrouter">, Type$1.TLiteral<"xai">]>;
|
|
4095
4096
|
provider: Type$1.TObject<{
|
|
4096
4097
|
id: Type$1.TString;
|
|
4097
4098
|
name: Type$1.TString;
|
|
@@ -4421,7 +4422,7 @@ declare namespace Event {
|
|
|
4421
4422
|
type: Type$1.TLiteral<"message.part.end">;
|
|
4422
4423
|
message: Type$1.TObject<{
|
|
4423
4424
|
role: Type$1.TLiteral<"assistant">;
|
|
4424
|
-
protocol: Type$1.TUnion<[Type$1.TLiteral<"anthropic">, Type$1.TLiteral<"google">, Type$1.TLiteral<"google-vertex">, Type$1.TLiteral<"google-vertex-anthropic">, Type$1.TLiteral<"openai">, Type$1.TLiteral<"openai-compatible">, Type$1.TLiteral<"openrouter">, Type$1.TLiteral<"xai">]>;
|
|
4425
|
+
protocol: Type$1.TUnion<[Type$1.TLiteral<"anthropic">, Type$1.TLiteral<"google">, Type$1.TLiteral<"google-vertex">, Type$1.TLiteral<"google-vertex-anthropic">, Type$1.TLiteral<"openai">, Type$1.TLiteral<"openai-compatible">, Type$1.TLiteral<"openai-codex">, Type$1.TLiteral<"openrouter">, Type$1.TLiteral<"xai">]>;
|
|
4425
4426
|
provider: Type$1.TObject<{
|
|
4426
4427
|
id: Type$1.TString;
|
|
4427
4428
|
name: Type$1.TString;
|
|
@@ -4765,7 +4766,7 @@ declare namespace Event {
|
|
|
4765
4766
|
}>]>>;
|
|
4766
4767
|
}>, Type$1.TObject<{
|
|
4767
4768
|
role: Type$1.TLiteral<"assistant">;
|
|
4768
|
-
protocol: Type$1.TUnion<[Type$1.TLiteral<"anthropic">, Type$1.TLiteral<"google">, Type$1.TLiteral<"google-vertex">, Type$1.TLiteral<"google-vertex-anthropic">, Type$1.TLiteral<"openai">, Type$1.TLiteral<"openai-compatible">, Type$1.TLiteral<"openrouter">, Type$1.TLiteral<"xai">]>;
|
|
4769
|
+
protocol: Type$1.TUnion<[Type$1.TLiteral<"anthropic">, Type$1.TLiteral<"google">, Type$1.TLiteral<"google-vertex">, Type$1.TLiteral<"google-vertex-anthropic">, Type$1.TLiteral<"openai">, Type$1.TLiteral<"openai-compatible">, Type$1.TLiteral<"openai-codex">, Type$1.TLiteral<"openrouter">, Type$1.TLiteral<"xai">]>;
|
|
4769
4770
|
provider: Type$1.TObject<{
|
|
4770
4771
|
id: Type$1.TString;
|
|
4771
4772
|
name: Type$1.TString;
|
|
@@ -4963,7 +4964,7 @@ declare namespace Event {
|
|
|
4963
4964
|
}>]>>;
|
|
4964
4965
|
}>, Type$1.TObject<{
|
|
4965
4966
|
role: Type$1.TLiteral<"assistant">;
|
|
4966
|
-
protocol: Type$1.TUnion<[Type$1.TLiteral<"anthropic">, Type$1.TLiteral<"google">, Type$1.TLiteral<"google-vertex">, Type$1.TLiteral<"google-vertex-anthropic">, Type$1.TLiteral<"openai">, Type$1.TLiteral<"openai-compatible">, Type$1.TLiteral<"openrouter">, Type$1.TLiteral<"xai">]>;
|
|
4967
|
+
protocol: Type$1.TUnion<[Type$1.TLiteral<"anthropic">, Type$1.TLiteral<"google">, Type$1.TLiteral<"google-vertex">, Type$1.TLiteral<"google-vertex-anthropic">, Type$1.TLiteral<"openai">, Type$1.TLiteral<"openai-compatible">, Type$1.TLiteral<"openai-codex">, Type$1.TLiteral<"openrouter">, Type$1.TLiteral<"xai">]>;
|
|
4967
4968
|
provider: Type$1.TObject<{
|
|
4968
4969
|
id: Type$1.TString;
|
|
4969
4970
|
name: Type$1.TString;
|
|
@@ -5230,10 +5231,11 @@ declare namespace ModelCatalog {
|
|
|
5230
5231
|
readonly googleVertexAnthropic: "google-vertex-anthropic";
|
|
5231
5232
|
readonly openai: "openai";
|
|
5232
5233
|
readonly openaiCompatible: "openai-compatible";
|
|
5234
|
+
readonly openaiCodex: "openai-codex";
|
|
5233
5235
|
readonly openrouter: "openrouter";
|
|
5234
5236
|
readonly xai: "xai";
|
|
5235
5237
|
};
|
|
5236
|
-
export const KnownProviderEnumSchema: Type$1.TUnion<[Type$1.TLiteral<"anthropic">, Type$1.TLiteral<"google">, Type$1.TLiteral<"google-vertex">, Type$1.TLiteral<"google-vertex-anthropic">, Type$1.TLiteral<"openai">, Type$1.TLiteral<"openai-compatible">, Type$1.TLiteral<"openrouter">, Type$1.TLiteral<"xai">]>;
|
|
5238
|
+
export const KnownProviderEnumSchema: Type$1.TUnion<[Type$1.TLiteral<"anthropic">, Type$1.TLiteral<"google">, Type$1.TLiteral<"google-vertex">, Type$1.TLiteral<"google-vertex-anthropic">, Type$1.TLiteral<"openai">, Type$1.TLiteral<"openai-compatible">, Type$1.TLiteral<"openai-codex">, Type$1.TLiteral<"openrouter">, Type$1.TLiteral<"xai">]>;
|
|
5237
5239
|
export type KnownProviderEnum = Static$1<typeof KnownProviderEnumSchema>;
|
|
5238
5240
|
export type GeneratedCatalog = Partial<Record<string, Record<string, unknown>>>;
|
|
5239
5241
|
type LazyGeneratedCatalog = ReturnType<typeof lazy<Promise<GeneratedCatalog>>>;
|
|
@@ -5254,10 +5256,11 @@ declare namespace Model {
|
|
|
5254
5256
|
readonly googleVertexAnthropic: "google-vertex-anthropic";
|
|
5255
5257
|
readonly openai: "openai";
|
|
5256
5258
|
readonly openaiCompatible: "openai-compatible";
|
|
5259
|
+
readonly openaiCodex: "openai-codex";
|
|
5257
5260
|
readonly openrouter: "openrouter";
|
|
5258
5261
|
readonly xai: "xai";
|
|
5259
5262
|
};
|
|
5260
|
-
const KnownProviderEnumSchema: Type$1.TUnion<[Type$1.TLiteral<"anthropic">, Type$1.TLiteral<"google">, Type$1.TLiteral<"google-vertex">, Type$1.TLiteral<"google-vertex-anthropic">, Type$1.TLiteral<"openai">, Type$1.TLiteral<"openai-compatible">, Type$1.TLiteral<"openrouter">, Type$1.TLiteral<"xai">]>;
|
|
5263
|
+
const KnownProviderEnumSchema: Type$1.TUnion<[Type$1.TLiteral<"anthropic">, Type$1.TLiteral<"google">, Type$1.TLiteral<"google-vertex">, Type$1.TLiteral<"google-vertex-anthropic">, Type$1.TLiteral<"openai">, Type$1.TLiteral<"openai-compatible">, Type$1.TLiteral<"openai-codex">, Type$1.TLiteral<"openrouter">, Type$1.TLiteral<"xai">]>;
|
|
5261
5264
|
type KnownProviderEnum = ModelCatalog.KnownProviderEnum;
|
|
5262
5265
|
const ThinkingLevelEnum: {
|
|
5263
5266
|
readonly off: "off";
|
|
@@ -5345,16 +5348,17 @@ declare namespace Model {
|
|
|
5345
5348
|
providerOptionsKey: Type$1.TOptional<Type$1.TString>;
|
|
5346
5349
|
options: Type$1.TOptional<Type$1.TRecord<"^.*$", Type$1.TUnknown>>;
|
|
5347
5350
|
providerOptions: Type$1.TOptional<Type$1.TRecord<"^.*$", Type$1.TUnknown>>;
|
|
5348
|
-
protocol: Type$1.TUnion<[Type$1.TLiteral<"anthropic">, Type$1.TLiteral<"google">, Type$1.TLiteral<"google-vertex">, Type$1.TLiteral<"google-vertex-anthropic">, Type$1.TLiteral<"openai">, Type$1.TLiteral<"openai-compatible">, Type$1.TLiteral<"openrouter">, Type$1.TLiteral<"xai">]>;
|
|
5351
|
+
protocol: Type$1.TUnion<[Type$1.TLiteral<"anthropic">, Type$1.TLiteral<"google">, Type$1.TLiteral<"google-vertex">, Type$1.TLiteral<"google-vertex-anthropic">, Type$1.TLiteral<"openai">, Type$1.TLiteral<"openai-compatible">, Type$1.TLiteral<"openai-codex">, Type$1.TLiteral<"openrouter">, Type$1.TLiteral<"xai">]>;
|
|
5349
5352
|
supportedProtocols: Type$1.TOptional<Type$1.TObject<{
|
|
5350
|
-
anthropic: Type$1.TOptional<Type$1.TUnion<[Type$1.TLiteral<"anthropic">, Type$1.TLiteral<"google">, Type$1.TLiteral<"google-vertex">, Type$1.TLiteral<"google-vertex-anthropic">, Type$1.TLiteral<"openai">, Type$1.TLiteral<"openai-compatible">, Type$1.TLiteral<"openrouter">, Type$1.TLiteral<"xai">]>>;
|
|
5351
|
-
google: Type$1.TOptional<Type$1.TUnion<[Type$1.TLiteral<"anthropic">, Type$1.TLiteral<"google">, Type$1.TLiteral<"google-vertex">, Type$1.TLiteral<"google-vertex-anthropic">, Type$1.TLiteral<"openai">, Type$1.TLiteral<"openai-compatible">, Type$1.TLiteral<"openrouter">, Type$1.TLiteral<"xai">]>>;
|
|
5352
|
-
googleVertex: Type$1.TOptional<Type$1.TUnion<[Type$1.TLiteral<"anthropic">, Type$1.TLiteral<"google">, Type$1.TLiteral<"google-vertex">, Type$1.TLiteral<"google-vertex-anthropic">, Type$1.TLiteral<"openai">, Type$1.TLiteral<"openai-compatible">, Type$1.TLiteral<"openrouter">, Type$1.TLiteral<"xai">]>>;
|
|
5353
|
-
googleVertexAnthropic: Type$1.TOptional<Type$1.TUnion<[Type$1.TLiteral<"anthropic">, Type$1.TLiteral<"google">, Type$1.TLiteral<"google-vertex">, Type$1.TLiteral<"google-vertex-anthropic">, Type$1.TLiteral<"openai">, Type$1.TLiteral<"openai-compatible">, Type$1.TLiteral<"openrouter">, Type$1.TLiteral<"xai">]>>;
|
|
5354
|
-
openai: Type$1.TOptional<Type$1.TUnion<[Type$1.TLiteral<"anthropic">, Type$1.TLiteral<"google">, Type$1.TLiteral<"google-vertex">, Type$1.TLiteral<"google-vertex-anthropic">, Type$1.TLiteral<"openai">, Type$1.TLiteral<"openai-compatible">, Type$1.TLiteral<"openrouter">, Type$1.TLiteral<"xai">]>>;
|
|
5355
|
-
openaiCompatible: Type$1.TOptional<Type$1.TUnion<[Type$1.TLiteral<"anthropic">, Type$1.TLiteral<"google">, Type$1.TLiteral<"google-vertex">, Type$1.TLiteral<"google-vertex-anthropic">, Type$1.TLiteral<"openai">, Type$1.TLiteral<"openai-compatible">, Type$1.TLiteral<"openrouter">, Type$1.TLiteral<"xai">]>>;
|
|
5356
|
-
|
|
5357
|
-
|
|
5353
|
+
anthropic: Type$1.TOptional<Type$1.TUnion<[Type$1.TLiteral<"anthropic">, Type$1.TLiteral<"google">, Type$1.TLiteral<"google-vertex">, Type$1.TLiteral<"google-vertex-anthropic">, Type$1.TLiteral<"openai">, Type$1.TLiteral<"openai-compatible">, Type$1.TLiteral<"openai-codex">, Type$1.TLiteral<"openrouter">, Type$1.TLiteral<"xai">]>>;
|
|
5354
|
+
google: Type$1.TOptional<Type$1.TUnion<[Type$1.TLiteral<"anthropic">, Type$1.TLiteral<"google">, Type$1.TLiteral<"google-vertex">, Type$1.TLiteral<"google-vertex-anthropic">, Type$1.TLiteral<"openai">, Type$1.TLiteral<"openai-compatible">, Type$1.TLiteral<"openai-codex">, Type$1.TLiteral<"openrouter">, Type$1.TLiteral<"xai">]>>;
|
|
5355
|
+
googleVertex: Type$1.TOptional<Type$1.TUnion<[Type$1.TLiteral<"anthropic">, Type$1.TLiteral<"google">, Type$1.TLiteral<"google-vertex">, Type$1.TLiteral<"google-vertex-anthropic">, Type$1.TLiteral<"openai">, Type$1.TLiteral<"openai-compatible">, Type$1.TLiteral<"openai-codex">, Type$1.TLiteral<"openrouter">, Type$1.TLiteral<"xai">]>>;
|
|
5356
|
+
googleVertexAnthropic: Type$1.TOptional<Type$1.TUnion<[Type$1.TLiteral<"anthropic">, Type$1.TLiteral<"google">, Type$1.TLiteral<"google-vertex">, Type$1.TLiteral<"google-vertex-anthropic">, Type$1.TLiteral<"openai">, Type$1.TLiteral<"openai-compatible">, Type$1.TLiteral<"openai-codex">, Type$1.TLiteral<"openrouter">, Type$1.TLiteral<"xai">]>>;
|
|
5357
|
+
openai: Type$1.TOptional<Type$1.TUnion<[Type$1.TLiteral<"anthropic">, Type$1.TLiteral<"google">, Type$1.TLiteral<"google-vertex">, Type$1.TLiteral<"google-vertex-anthropic">, Type$1.TLiteral<"openai">, Type$1.TLiteral<"openai-compatible">, Type$1.TLiteral<"openai-codex">, Type$1.TLiteral<"openrouter">, Type$1.TLiteral<"xai">]>>;
|
|
5358
|
+
openaiCompatible: Type$1.TOptional<Type$1.TUnion<[Type$1.TLiteral<"anthropic">, Type$1.TLiteral<"google">, Type$1.TLiteral<"google-vertex">, Type$1.TLiteral<"google-vertex-anthropic">, Type$1.TLiteral<"openai">, Type$1.TLiteral<"openai-compatible">, Type$1.TLiteral<"openai-codex">, Type$1.TLiteral<"openrouter">, Type$1.TLiteral<"xai">]>>;
|
|
5359
|
+
openaiCodex: Type$1.TOptional<Type$1.TUnion<[Type$1.TLiteral<"anthropic">, Type$1.TLiteral<"google">, Type$1.TLiteral<"google-vertex">, Type$1.TLiteral<"google-vertex-anthropic">, Type$1.TLiteral<"openai">, Type$1.TLiteral<"openai-compatible">, Type$1.TLiteral<"openai-codex">, Type$1.TLiteral<"openrouter">, Type$1.TLiteral<"xai">]>>;
|
|
5360
|
+
openrouter: Type$1.TOptional<Type$1.TUnion<[Type$1.TLiteral<"anthropic">, Type$1.TLiteral<"google">, Type$1.TLiteral<"google-vertex">, Type$1.TLiteral<"google-vertex-anthropic">, Type$1.TLiteral<"openai">, Type$1.TLiteral<"openai-compatible">, Type$1.TLiteral<"openai-codex">, Type$1.TLiteral<"openrouter">, Type$1.TLiteral<"xai">]>>;
|
|
5361
|
+
xai: Type$1.TOptional<Type$1.TUnion<[Type$1.TLiteral<"anthropic">, Type$1.TLiteral<"google">, Type$1.TLiteral<"google-vertex">, Type$1.TLiteral<"google-vertex-anthropic">, Type$1.TLiteral<"openai">, Type$1.TLiteral<"openai-compatible">, Type$1.TLiteral<"openai-codex">, Type$1.TLiteral<"openrouter">, Type$1.TLiteral<"xai">]>>;
|
|
5358
5362
|
}>>;
|
|
5359
5363
|
}>;
|
|
5360
5364
|
const ExtrasSchema: Type$1.TObject<{}>;
|
|
@@ -5398,16 +5402,17 @@ declare namespace Model {
|
|
|
5398
5402
|
providerOptionsKey: Type$1.TOptional<Type$1.TString>;
|
|
5399
5403
|
options: Type$1.TOptional<Type$1.TRecord<"^.*$", Type$1.TUnknown>>;
|
|
5400
5404
|
providerOptions: Type$1.TOptional<Type$1.TRecord<"^.*$", Type$1.TUnknown>>;
|
|
5401
|
-
protocol: Type$1.TUnion<[Type$1.TLiteral<"anthropic">, Type$1.TLiteral<"google">, Type$1.TLiteral<"google-vertex">, Type$1.TLiteral<"google-vertex-anthropic">, Type$1.TLiteral<"openai">, Type$1.TLiteral<"openai-compatible">, Type$1.TLiteral<"openrouter">, Type$1.TLiteral<"xai">]>;
|
|
5405
|
+
protocol: Type$1.TUnion<[Type$1.TLiteral<"anthropic">, Type$1.TLiteral<"google">, Type$1.TLiteral<"google-vertex">, Type$1.TLiteral<"google-vertex-anthropic">, Type$1.TLiteral<"openai">, Type$1.TLiteral<"openai-compatible">, Type$1.TLiteral<"openai-codex">, Type$1.TLiteral<"openrouter">, Type$1.TLiteral<"xai">]>;
|
|
5402
5406
|
supportedProtocols: Type$1.TOptional<Type$1.TObject<{
|
|
5403
|
-
anthropic: Type$1.TOptional<Type$1.TUnion<[Type$1.TLiteral<"anthropic">, Type$1.TLiteral<"google">, Type$1.TLiteral<"google-vertex">, Type$1.TLiteral<"google-vertex-anthropic">, Type$1.TLiteral<"openai">, Type$1.TLiteral<"openai-compatible">, Type$1.TLiteral<"openrouter">, Type$1.TLiteral<"xai">]>>;
|
|
5404
|
-
google: Type$1.TOptional<Type$1.TUnion<[Type$1.TLiteral<"anthropic">, Type$1.TLiteral<"google">, Type$1.TLiteral<"google-vertex">, Type$1.TLiteral<"google-vertex-anthropic">, Type$1.TLiteral<"openai">, Type$1.TLiteral<"openai-compatible">, Type$1.TLiteral<"openrouter">, Type$1.TLiteral<"xai">]>>;
|
|
5405
|
-
googleVertex: Type$1.TOptional<Type$1.TUnion<[Type$1.TLiteral<"anthropic">, Type$1.TLiteral<"google">, Type$1.TLiteral<"google-vertex">, Type$1.TLiteral<"google-vertex-anthropic">, Type$1.TLiteral<"openai">, Type$1.TLiteral<"openai-compatible">, Type$1.TLiteral<"openrouter">, Type$1.TLiteral<"xai">]>>;
|
|
5406
|
-
googleVertexAnthropic: Type$1.TOptional<Type$1.TUnion<[Type$1.TLiteral<"anthropic">, Type$1.TLiteral<"google">, Type$1.TLiteral<"google-vertex">, Type$1.TLiteral<"google-vertex-anthropic">, Type$1.TLiteral<"openai">, Type$1.TLiteral<"openai-compatible">, Type$1.TLiteral<"openrouter">, Type$1.TLiteral<"xai">]>>;
|
|
5407
|
-
openai: Type$1.TOptional<Type$1.TUnion<[Type$1.TLiteral<"anthropic">, Type$1.TLiteral<"google">, Type$1.TLiteral<"google-vertex">, Type$1.TLiteral<"google-vertex-anthropic">, Type$1.TLiteral<"openai">, Type$1.TLiteral<"openai-compatible">, Type$1.TLiteral<"openrouter">, Type$1.TLiteral<"xai">]>>;
|
|
5408
|
-
openaiCompatible: Type$1.TOptional<Type$1.TUnion<[Type$1.TLiteral<"anthropic">, Type$1.TLiteral<"google">, Type$1.TLiteral<"google-vertex">, Type$1.TLiteral<"google-vertex-anthropic">, Type$1.TLiteral<"openai">, Type$1.TLiteral<"openai-compatible">, Type$1.TLiteral<"openrouter">, Type$1.TLiteral<"xai">]>>;
|
|
5409
|
-
|
|
5410
|
-
|
|
5407
|
+
anthropic: Type$1.TOptional<Type$1.TUnion<[Type$1.TLiteral<"anthropic">, Type$1.TLiteral<"google">, Type$1.TLiteral<"google-vertex">, Type$1.TLiteral<"google-vertex-anthropic">, Type$1.TLiteral<"openai">, Type$1.TLiteral<"openai-compatible">, Type$1.TLiteral<"openai-codex">, Type$1.TLiteral<"openrouter">, Type$1.TLiteral<"xai">]>>;
|
|
5408
|
+
google: Type$1.TOptional<Type$1.TUnion<[Type$1.TLiteral<"anthropic">, Type$1.TLiteral<"google">, Type$1.TLiteral<"google-vertex">, Type$1.TLiteral<"google-vertex-anthropic">, Type$1.TLiteral<"openai">, Type$1.TLiteral<"openai-compatible">, Type$1.TLiteral<"openai-codex">, Type$1.TLiteral<"openrouter">, Type$1.TLiteral<"xai">]>>;
|
|
5409
|
+
googleVertex: Type$1.TOptional<Type$1.TUnion<[Type$1.TLiteral<"anthropic">, Type$1.TLiteral<"google">, Type$1.TLiteral<"google-vertex">, Type$1.TLiteral<"google-vertex-anthropic">, Type$1.TLiteral<"openai">, Type$1.TLiteral<"openai-compatible">, Type$1.TLiteral<"openai-codex">, Type$1.TLiteral<"openrouter">, Type$1.TLiteral<"xai">]>>;
|
|
5410
|
+
googleVertexAnthropic: Type$1.TOptional<Type$1.TUnion<[Type$1.TLiteral<"anthropic">, Type$1.TLiteral<"google">, Type$1.TLiteral<"google-vertex">, Type$1.TLiteral<"google-vertex-anthropic">, Type$1.TLiteral<"openai">, Type$1.TLiteral<"openai-compatible">, Type$1.TLiteral<"openai-codex">, Type$1.TLiteral<"openrouter">, Type$1.TLiteral<"xai">]>>;
|
|
5411
|
+
openai: Type$1.TOptional<Type$1.TUnion<[Type$1.TLiteral<"anthropic">, Type$1.TLiteral<"google">, Type$1.TLiteral<"google-vertex">, Type$1.TLiteral<"google-vertex-anthropic">, Type$1.TLiteral<"openai">, Type$1.TLiteral<"openai-compatible">, Type$1.TLiteral<"openai-codex">, Type$1.TLiteral<"openrouter">, Type$1.TLiteral<"xai">]>>;
|
|
5412
|
+
openaiCompatible: Type$1.TOptional<Type$1.TUnion<[Type$1.TLiteral<"anthropic">, Type$1.TLiteral<"google">, Type$1.TLiteral<"google-vertex">, Type$1.TLiteral<"google-vertex-anthropic">, Type$1.TLiteral<"openai">, Type$1.TLiteral<"openai-compatible">, Type$1.TLiteral<"openai-codex">, Type$1.TLiteral<"openrouter">, Type$1.TLiteral<"xai">]>>;
|
|
5413
|
+
openaiCodex: Type$1.TOptional<Type$1.TUnion<[Type$1.TLiteral<"anthropic">, Type$1.TLiteral<"google">, Type$1.TLiteral<"google-vertex">, Type$1.TLiteral<"google-vertex-anthropic">, Type$1.TLiteral<"openai">, Type$1.TLiteral<"openai-compatible">, Type$1.TLiteral<"openai-codex">, Type$1.TLiteral<"openrouter">, Type$1.TLiteral<"xai">]>>;
|
|
5414
|
+
openrouter: Type$1.TOptional<Type$1.TUnion<[Type$1.TLiteral<"anthropic">, Type$1.TLiteral<"google">, Type$1.TLiteral<"google-vertex">, Type$1.TLiteral<"google-vertex-anthropic">, Type$1.TLiteral<"openai">, Type$1.TLiteral<"openai-compatible">, Type$1.TLiteral<"openai-codex">, Type$1.TLiteral<"openrouter">, Type$1.TLiteral<"xai">]>>;
|
|
5415
|
+
xai: Type$1.TOptional<Type$1.TUnion<[Type$1.TLiteral<"anthropic">, Type$1.TLiteral<"google">, Type$1.TLiteral<"google-vertex">, Type$1.TLiteral<"google-vertex-anthropic">, Type$1.TLiteral<"openai">, Type$1.TLiteral<"openai-compatible">, Type$1.TLiteral<"openai-codex">, Type$1.TLiteral<"openrouter">, Type$1.TLiteral<"xai">]>>;
|
|
5411
5416
|
}>>;
|
|
5412
5417
|
}>;
|
|
5413
5418
|
type Info = Static$1<typeof Info>;
|
|
@@ -5432,13 +5437,13 @@ declare namespace Model {
|
|
|
5432
5437
|
function getBuiltInModels(): Promise<BuiltInModels>;
|
|
5433
5438
|
const registry: {
|
|
5434
5439
|
(): Promise<Map<string, Map<string, {
|
|
5440
|
+
headers?: Record<string, string> | undefined;
|
|
5435
5441
|
api?: {
|
|
5436
5442
|
id?: string | undefined;
|
|
5437
5443
|
url?: string | undefined;
|
|
5438
|
-
method?: "
|
|
5444
|
+
method?: "languageModel" | "chat" | "completion" | "completionModel" | "messages" | "responses" | undefined;
|
|
5439
5445
|
} | undefined;
|
|
5440
5446
|
options?: Record<string, unknown> | undefined;
|
|
5441
|
-
headers?: Record<string, string> | undefined;
|
|
5442
5447
|
thinkingLevelMap?: {
|
|
5443
5448
|
off?: string | null | undefined;
|
|
5444
5449
|
minimal?: string | null | undefined;
|
|
@@ -5451,16 +5456,17 @@ declare namespace Model {
|
|
|
5451
5456
|
providerOptionsKey?: string | undefined;
|
|
5452
5457
|
providerOptions?: Record<string, unknown> | undefined;
|
|
5453
5458
|
supportedProtocols?: {
|
|
5454
|
-
anthropic?: "anthropic" | "google" | "google-vertex" | "google-vertex-anthropic" | "openai" | "openai-compatible" | "openrouter" | "xai" | undefined;
|
|
5455
|
-
google?: "anthropic" | "google" | "google-vertex" | "google-vertex-anthropic" | "openai" | "openai-compatible" | "openrouter" | "xai" | undefined;
|
|
5456
|
-
openai?: "anthropic" | "google" | "google-vertex" | "google-vertex-anthropic" | "openai" | "openai-compatible" | "openrouter" | "xai" | undefined;
|
|
5457
|
-
openrouter?: "anthropic" | "google" | "google-vertex" | "google-vertex-anthropic" | "openai" | "openai-compatible" | "openrouter" | "xai" | undefined;
|
|
5458
|
-
xai?: "anthropic" | "google" | "google-vertex" | "google-vertex-anthropic" | "openai" | "openai-compatible" | "openrouter" | "xai" | undefined;
|
|
5459
|
-
googleVertex?: "anthropic" | "google" | "google-vertex" | "google-vertex-anthropic" | "openai" | "openai-compatible" | "openrouter" | "xai" | undefined;
|
|
5460
|
-
googleVertexAnthropic?: "anthropic" | "google" | "google-vertex" | "google-vertex-anthropic" | "openai" | "openai-compatible" | "openrouter" | "xai" | undefined;
|
|
5461
|
-
openaiCompatible?: "anthropic" | "google" | "google-vertex" | "google-vertex-anthropic" | "openai" | "openai-compatible" | "openrouter" | "xai" | undefined;
|
|
5459
|
+
anthropic?: "anthropic" | "google" | "google-vertex" | "google-vertex-anthropic" | "openai" | "openai-compatible" | "openai-codex" | "openrouter" | "xai" | undefined;
|
|
5460
|
+
google?: "anthropic" | "google" | "google-vertex" | "google-vertex-anthropic" | "openai" | "openai-compatible" | "openai-codex" | "openrouter" | "xai" | undefined;
|
|
5461
|
+
openai?: "anthropic" | "google" | "google-vertex" | "google-vertex-anthropic" | "openai" | "openai-compatible" | "openai-codex" | "openrouter" | "xai" | undefined;
|
|
5462
|
+
openrouter?: "anthropic" | "google" | "google-vertex" | "google-vertex-anthropic" | "openai" | "openai-compatible" | "openai-codex" | "openrouter" | "xai" | undefined;
|
|
5463
|
+
xai?: "anthropic" | "google" | "google-vertex" | "google-vertex-anthropic" | "openai" | "openai-compatible" | "openai-codex" | "openrouter" | "xai" | undefined;
|
|
5464
|
+
googleVertex?: "anthropic" | "google" | "google-vertex" | "google-vertex-anthropic" | "openai" | "openai-compatible" | "openai-codex" | "openrouter" | "xai" | undefined;
|
|
5465
|
+
googleVertexAnthropic?: "anthropic" | "google" | "google-vertex" | "google-vertex-anthropic" | "openai" | "openai-compatible" | "openai-codex" | "openrouter" | "xai" | undefined;
|
|
5466
|
+
openaiCompatible?: "anthropic" | "google" | "google-vertex" | "google-vertex-anthropic" | "openai" | "openai-compatible" | "openai-codex" | "openrouter" | "xai" | undefined;
|
|
5467
|
+
openaiCodex?: "anthropic" | "google" | "google-vertex" | "google-vertex-anthropic" | "openai" | "openai-compatible" | "openai-codex" | "openrouter" | "xai" | undefined;
|
|
5462
5468
|
} | undefined;
|
|
5463
|
-
|
|
5469
|
+
maxTokens: number;
|
|
5464
5470
|
id: string;
|
|
5465
5471
|
name: string;
|
|
5466
5472
|
provider: {
|
|
@@ -5471,6 +5477,8 @@ declare namespace Model {
|
|
|
5471
5477
|
source: "env" | "config" | "custom" | "api" | "unknown";
|
|
5472
5478
|
env: string[];
|
|
5473
5479
|
};
|
|
5480
|
+
baseUrl: string;
|
|
5481
|
+
reasoning: boolean;
|
|
5474
5482
|
input: ("text" | "image")[];
|
|
5475
5483
|
cost: {
|
|
5476
5484
|
input: number;
|
|
@@ -5478,10 +5486,8 @@ declare namespace Model {
|
|
|
5478
5486
|
cacheRead: number;
|
|
5479
5487
|
cacheWrite: number;
|
|
5480
5488
|
};
|
|
5481
|
-
maxTokens: number;
|
|
5482
|
-
baseUrl: string;
|
|
5483
|
-
reasoning: boolean;
|
|
5484
5489
|
contextWindow: number;
|
|
5490
|
+
protocol: "anthropic" | "google" | "google-vertex" | "google-vertex-anthropic" | "openai" | "openai-compatible" | "openai-codex" | "openrouter" | "xai";
|
|
5485
5491
|
}>>>;
|
|
5486
5492
|
reset(): void;
|
|
5487
5493
|
};
|
|
@@ -5941,7 +5947,7 @@ declare namespace Message {
|
|
|
5941
5947
|
export type UserMessage = Static$1<typeof UserMessageSchema>;
|
|
5942
5948
|
export const AssistantMessageSchema: Type$1.TObject<{
|
|
5943
5949
|
role: Type$1.TLiteral<"assistant">;
|
|
5944
|
-
protocol: Type$1.TUnion<[Type$1.TLiteral<"anthropic">, Type$1.TLiteral<"google">, Type$1.TLiteral<"google-vertex">, Type$1.TLiteral<"google-vertex-anthropic">, Type$1.TLiteral<"openai">, Type$1.TLiteral<"openai-compatible">, Type$1.TLiteral<"openrouter">, Type$1.TLiteral<"xai">]>;
|
|
5950
|
+
protocol: Type$1.TUnion<[Type$1.TLiteral<"anthropic">, Type$1.TLiteral<"google">, Type$1.TLiteral<"google-vertex">, Type$1.TLiteral<"google-vertex-anthropic">, Type$1.TLiteral<"openai">, Type$1.TLiteral<"openai-compatible">, Type$1.TLiteral<"openai-codex">, Type$1.TLiteral<"openrouter">, Type$1.TLiteral<"xai">]>;
|
|
5945
5951
|
provider: Type$1.TObject<{
|
|
5946
5952
|
id: Type$1.TString;
|
|
5947
5953
|
name: Type$1.TString;
|
|
@@ -6141,7 +6147,7 @@ declare namespace Message {
|
|
|
6141
6147
|
}>]>>;
|
|
6142
6148
|
}>, Type$1.TObject<{
|
|
6143
6149
|
role: Type$1.TLiteral<"assistant">;
|
|
6144
|
-
protocol: Type$1.TUnion<[Type$1.TLiteral<"anthropic">, Type$1.TLiteral<"google">, Type$1.TLiteral<"google-vertex">, Type$1.TLiteral<"google-vertex-anthropic">, Type$1.TLiteral<"openai">, Type$1.TLiteral<"openai-compatible">, Type$1.TLiteral<"openrouter">, Type$1.TLiteral<"xai">]>;
|
|
6150
|
+
protocol: Type$1.TUnion<[Type$1.TLiteral<"anthropic">, Type$1.TLiteral<"google">, Type$1.TLiteral<"google-vertex">, Type$1.TLiteral<"google-vertex-anthropic">, Type$1.TLiteral<"openai">, Type$1.TLiteral<"openai-compatible">, Type$1.TLiteral<"openai-codex">, Type$1.TLiteral<"openrouter">, Type$1.TLiteral<"xai">]>;
|
|
6145
6151
|
provider: Type$1.TObject<{
|
|
6146
6152
|
id: Type$1.TString;
|
|
6147
6153
|
name: Type$1.TString;
|
|
@@ -6379,7 +6385,7 @@ declare namespace Message {
|
|
|
6379
6385
|
}>]>>;
|
|
6380
6386
|
}>, Type$1.TObject<{
|
|
6381
6387
|
role: Type$1.TLiteral<"assistant">;
|
|
6382
|
-
protocol: Type$1.TUnion<[Type$1.TLiteral<"anthropic">, Type$1.TLiteral<"google">, Type$1.TLiteral<"google-vertex">, Type$1.TLiteral<"google-vertex-anthropic">, Type$1.TLiteral<"openai">, Type$1.TLiteral<"openai-compatible">, Type$1.TLiteral<"openrouter">, Type$1.TLiteral<"xai">]>;
|
|
6388
|
+
protocol: Type$1.TUnion<[Type$1.TLiteral<"anthropic">, Type$1.TLiteral<"google">, Type$1.TLiteral<"google-vertex">, Type$1.TLiteral<"google-vertex-anthropic">, Type$1.TLiteral<"openai">, Type$1.TLiteral<"openai-compatible">, Type$1.TLiteral<"openai-codex">, Type$1.TLiteral<"openrouter">, Type$1.TLiteral<"xai">]>;
|
|
6383
6389
|
provider: Type$1.TObject<{
|
|
6384
6390
|
id: Type$1.TString;
|
|
6385
6391
|
name: Type$1.TString;
|
|
@@ -6593,6 +6599,63 @@ declare class AssistantMessageEventStream extends EventStream<Event.LLMMessageEv
|
|
|
6593
6599
|
/** Factory function for AssistantMessageEventStream (for use in extensions) */
|
|
6594
6600
|
declare function createAssistantMessageEventStream(): AssistantMessageEventStream;
|
|
6595
6601
|
//#endregion
|
|
6602
|
+
//#region src/providers/openai-codex/codex-language-model.d.ts
|
|
6603
|
+
type OpenAICodexModelId = "gpt-5.3-codex-spark" | "gpt-5.4" | "gpt-5.4-mini" | "gpt-5.5" | (string & {});
|
|
6604
|
+
type OpenAICodexServiceTier = "auto" | "default" | "flex" | "scale" | "priority";
|
|
6605
|
+
/**
|
|
6606
|
+
* Per-call options, passed via `providerOptions["openai-codex"]`.
|
|
6607
|
+
*/
|
|
6608
|
+
type OpenAICodexLanguageModelOptions = {
|
|
6609
|
+
/** Reasoning effort forwarded as `reasoning.effort`. */reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | (string & {}); /** Reasoning summary verbosity; defaults to `auto` when an effort is set. */
|
|
6610
|
+
reasoningSummary?: "auto" | "concise" | "detailed"; /** Output text verbosity; defaults to `low`. */
|
|
6611
|
+
textVerbosity?: "low" | "medium" | "high";
|
|
6612
|
+
serviceTier?: OpenAICodexServiceTier; /** Prompt cache key; defaults to the provider `sessionId`. */
|
|
6613
|
+
promptCacheKey?: string; /** `include` fields; defaults to `["reasoning.encrypted_content"]`. */
|
|
6614
|
+
include?: string[]; /** The Codex backend requires `store: false`; override only for testing. */
|
|
6615
|
+
store?: boolean;
|
|
6616
|
+
};
|
|
6617
|
+
//#endregion
|
|
6618
|
+
//#region src/providers/openai-codex/codex-provider.d.ts
|
|
6619
|
+
interface OpenAICodexProvider extends ProviderV3 {
|
|
6620
|
+
(modelId: OpenAICodexModelId): LanguageModelV3;
|
|
6621
|
+
languageModel(modelId: OpenAICodexModelId): LanguageModelV3;
|
|
6622
|
+
/** Alias for `languageModel`; the Codex API only speaks the Responses protocol. */
|
|
6623
|
+
responses(modelId: OpenAICodexModelId): LanguageModelV3;
|
|
6624
|
+
}
|
|
6625
|
+
interface OpenAICodexProviderSettings {
|
|
6626
|
+
/**
|
|
6627
|
+
* Base URL for the Codex backend.
|
|
6628
|
+
* Defaults to `https://chatgpt.com/backend-api`.
|
|
6629
|
+
*/
|
|
6630
|
+
baseURL?: string;
|
|
6631
|
+
/**
|
|
6632
|
+
* ChatGPT OAuth access token (JWT) used as the API key.
|
|
6633
|
+
* Defaults to the `OPENAI_CODEX_API_KEY` environment variable.
|
|
6634
|
+
* A function can be passed to resolve a fresh token per request.
|
|
6635
|
+
*/
|
|
6636
|
+
apiKey?: string | (() => string | PromiseLike<string>);
|
|
6637
|
+
/**
|
|
6638
|
+
* ChatGPT account id sent as the `chatgpt-account-id` header.
|
|
6639
|
+
* Extracted from the JWT access token when omitted.
|
|
6640
|
+
*/
|
|
6641
|
+
accountId?: string;
|
|
6642
|
+
/** Custom headers merged into every request. */
|
|
6643
|
+
headers?: Record<string, string>;
|
|
6644
|
+
/** Custom fetch implementation. */
|
|
6645
|
+
fetch?: typeof globalThis.fetch;
|
|
6646
|
+
/** Session id used for the `session-id` header and the default prompt cache key. */
|
|
6647
|
+
sessionId?: string;
|
|
6648
|
+
/** Default service tier for requests. */
|
|
6649
|
+
serviceTier?: OpenAICodexServiceTier;
|
|
6650
|
+
/** `originator` header value; defaults to `codework`. */
|
|
6651
|
+
originator?: string;
|
|
6652
|
+
}
|
|
6653
|
+
declare function createOpenAICodex(options?: OpenAICodexProviderSettings): OpenAICodexProvider;
|
|
6654
|
+
/**
|
|
6655
|
+
* Default provider instance using `OPENAI_CODEX_API_KEY`.
|
|
6656
|
+
*/
|
|
6657
|
+
declare const openaiCodex: OpenAICodexProvider;
|
|
6658
|
+
//#endregion
|
|
6596
6659
|
//#region src/llm/options.d.ts
|
|
6597
6660
|
type ProviderOptionBag = Record<string, Record<string, unknown> | undefined>;
|
|
6598
6661
|
type AISDKOptions<TFactoryOptions, TProviderOptions extends ProviderOptionBag = ProviderOptionBag> = Protocol.CommonOptions & {
|
|
@@ -6621,6 +6684,9 @@ type GoogleVertexAnthropicOptions = AISDKOptions<GoogleVertexAnthropicProviderSe
|
|
|
6621
6684
|
type OpenAICompatibleOptions = AISDKOptions<OpenAICompatibleProviderSettings, {
|
|
6622
6685
|
"openai-compatible"?: OpenAICompatibleLanguageOptions;
|
|
6623
6686
|
}>;
|
|
6687
|
+
type OpenAICodexOptions = AISDKOptions<OpenAICodexProviderSettings, {
|
|
6688
|
+
"openai-codex"?: OpenAICodexLanguageModelOptions;
|
|
6689
|
+
}>;
|
|
6624
6690
|
type OpenRouterOptions = AISDKOptions<OpenRouterProviderSettings, {
|
|
6625
6691
|
openrouter?: OpenRouterProviderOptions;
|
|
6626
6692
|
}>;
|
|
@@ -6656,11 +6722,11 @@ type SharedOptions = Static$1<typeof SharedOptions>;
|
|
|
6656
6722
|
declare namespace Protocol {
|
|
6657
6723
|
export const ProviderProtocolNotFoundError: {
|
|
6658
6724
|
new (data: {
|
|
6659
|
-
protocol: "anthropic" | "google" | "google-vertex" | "google-vertex-anthropic" | "openai" | "openai-compatible" | "openrouter" | "xai";
|
|
6725
|
+
protocol: "anthropic" | "google" | "google-vertex" | "google-vertex-anthropic" | "openai" | "openai-compatible" | "openai-codex" | "openrouter" | "xai";
|
|
6660
6726
|
}, options?: ErrorOptions): {
|
|
6661
6727
|
readonly name: "ProviderProtocolNotFoundError";
|
|
6662
6728
|
readonly data: {
|
|
6663
|
-
protocol: "anthropic" | "google" | "google-vertex" | "google-vertex-anthropic" | "openai" | "openai-compatible" | "openrouter" | "xai";
|
|
6729
|
+
protocol: "anthropic" | "google" | "google-vertex" | "google-vertex-anthropic" | "openai" | "openai-compatible" | "openai-codex" | "openrouter" | "xai";
|
|
6664
6730
|
};
|
|
6665
6731
|
schema(): {
|
|
6666
6732
|
readonly $id: "ProviderProtocolNotFoundError";
|
|
@@ -6671,14 +6737,14 @@ declare namespace Protocol {
|
|
|
6671
6737
|
readonly const: "ProviderProtocolNotFoundError";
|
|
6672
6738
|
};
|
|
6673
6739
|
readonly data: Type$1.TObject<{
|
|
6674
|
-
protocol: Type$1.TUnion<[Type$1.TLiteral<"anthropic">, Type$1.TLiteral<"google">, Type$1.TLiteral<"google-vertex">, Type$1.TLiteral<"google-vertex-anthropic">, Type$1.TLiteral<"openai">, Type$1.TLiteral<"openai-compatible">, Type$1.TLiteral<"openrouter">, Type$1.TLiteral<"xai">]>;
|
|
6740
|
+
protocol: Type$1.TUnion<[Type$1.TLiteral<"anthropic">, Type$1.TLiteral<"google">, Type$1.TLiteral<"google-vertex">, Type$1.TLiteral<"google-vertex-anthropic">, Type$1.TLiteral<"openai">, Type$1.TLiteral<"openai-compatible">, Type$1.TLiteral<"openai-codex">, Type$1.TLiteral<"openrouter">, Type$1.TLiteral<"xai">]>;
|
|
6675
6741
|
}>;
|
|
6676
6742
|
};
|
|
6677
6743
|
};
|
|
6678
6744
|
toObject(): {
|
|
6679
6745
|
name: "ProviderProtocolNotFoundError";
|
|
6680
6746
|
data: {
|
|
6681
|
-
protocol: "anthropic" | "google" | "google-vertex" | "google-vertex-anthropic" | "openai" | "openai-compatible" | "openrouter" | "xai";
|
|
6747
|
+
protocol: "anthropic" | "google" | "google-vertex" | "google-vertex-anthropic" | "openai" | "openai-compatible" | "openai-codex" | "openrouter" | "xai";
|
|
6682
6748
|
};
|
|
6683
6749
|
};
|
|
6684
6750
|
message: string;
|
|
@@ -6694,7 +6760,7 @@ declare namespace Protocol {
|
|
|
6694
6760
|
readonly const: "ProviderProtocolNotFoundError";
|
|
6695
6761
|
};
|
|
6696
6762
|
readonly data: Type$1.TObject<{
|
|
6697
|
-
protocol: Type$1.TUnion<[Type$1.TLiteral<"anthropic">, Type$1.TLiteral<"google">, Type$1.TLiteral<"google-vertex">, Type$1.TLiteral<"google-vertex-anthropic">, Type$1.TLiteral<"openai">, Type$1.TLiteral<"openai-compatible">, Type$1.TLiteral<"openrouter">, Type$1.TLiteral<"xai">]>;
|
|
6763
|
+
protocol: Type$1.TUnion<[Type$1.TLiteral<"anthropic">, Type$1.TLiteral<"google">, Type$1.TLiteral<"google-vertex">, Type$1.TLiteral<"google-vertex-anthropic">, Type$1.TLiteral<"openai">, Type$1.TLiteral<"openai-compatible">, Type$1.TLiteral<"openai-codex">, Type$1.TLiteral<"openrouter">, Type$1.TLiteral<"xai">]>;
|
|
6698
6764
|
}>;
|
|
6699
6765
|
};
|
|
6700
6766
|
};
|
|
@@ -6803,13 +6869,13 @@ declare namespace Protocol {
|
|
|
6803
6869
|
export type ProviderProtocolNotFoundError = InstanceType<typeof ProviderProtocolNotFoundError>;
|
|
6804
6870
|
export const ProtocolMismatchError: {
|
|
6805
6871
|
new (data: {
|
|
6806
|
-
actual: "anthropic" | "google" | "google-vertex" | "google-vertex-anthropic" | "openai" | "openai-compatible" | "openrouter" | "xai";
|
|
6807
|
-
expected: "anthropic" | "google" | "google-vertex" | "google-vertex-anthropic" | "openai" | "openai-compatible" | "openrouter" | "xai";
|
|
6872
|
+
actual: "anthropic" | "google" | "google-vertex" | "google-vertex-anthropic" | "openai" | "openai-compatible" | "openai-codex" | "openrouter" | "xai";
|
|
6873
|
+
expected: "anthropic" | "google" | "google-vertex" | "google-vertex-anthropic" | "openai" | "openai-compatible" | "openai-codex" | "openrouter" | "xai";
|
|
6808
6874
|
}, options?: ErrorOptions): {
|
|
6809
6875
|
readonly name: "ProtocolMismatchError";
|
|
6810
6876
|
readonly data: {
|
|
6811
|
-
actual: "anthropic" | "google" | "google-vertex" | "google-vertex-anthropic" | "openai" | "openai-compatible" | "openrouter" | "xai";
|
|
6812
|
-
expected: "anthropic" | "google" | "google-vertex" | "google-vertex-anthropic" | "openai" | "openai-compatible" | "openrouter" | "xai";
|
|
6877
|
+
actual: "anthropic" | "google" | "google-vertex" | "google-vertex-anthropic" | "openai" | "openai-compatible" | "openai-codex" | "openrouter" | "xai";
|
|
6878
|
+
expected: "anthropic" | "google" | "google-vertex" | "google-vertex-anthropic" | "openai" | "openai-compatible" | "openai-codex" | "openrouter" | "xai";
|
|
6813
6879
|
};
|
|
6814
6880
|
schema(): {
|
|
6815
6881
|
readonly $id: "ProtocolMismatchError";
|
|
@@ -6820,16 +6886,16 @@ declare namespace Protocol {
|
|
|
6820
6886
|
readonly const: "ProtocolMismatchError";
|
|
6821
6887
|
};
|
|
6822
6888
|
readonly data: Type$1.TObject<{
|
|
6823
|
-
actual: Type$1.TUnion<[Type$1.TLiteral<"anthropic">, Type$1.TLiteral<"google">, Type$1.TLiteral<"google-vertex">, Type$1.TLiteral<"google-vertex-anthropic">, Type$1.TLiteral<"openai">, Type$1.TLiteral<"openai-compatible">, Type$1.TLiteral<"openrouter">, Type$1.TLiteral<"xai">]>;
|
|
6824
|
-
expected: Type$1.TUnion<[Type$1.TLiteral<"anthropic">, Type$1.TLiteral<"google">, Type$1.TLiteral<"google-vertex">, Type$1.TLiteral<"google-vertex-anthropic">, Type$1.TLiteral<"openai">, Type$1.TLiteral<"openai-compatible">, Type$1.TLiteral<"openrouter">, Type$1.TLiteral<"xai">]>;
|
|
6889
|
+
actual: Type$1.TUnion<[Type$1.TLiteral<"anthropic">, Type$1.TLiteral<"google">, Type$1.TLiteral<"google-vertex">, Type$1.TLiteral<"google-vertex-anthropic">, Type$1.TLiteral<"openai">, Type$1.TLiteral<"openai-compatible">, Type$1.TLiteral<"openai-codex">, Type$1.TLiteral<"openrouter">, Type$1.TLiteral<"xai">]>;
|
|
6890
|
+
expected: Type$1.TUnion<[Type$1.TLiteral<"anthropic">, Type$1.TLiteral<"google">, Type$1.TLiteral<"google-vertex">, Type$1.TLiteral<"google-vertex-anthropic">, Type$1.TLiteral<"openai">, Type$1.TLiteral<"openai-compatible">, Type$1.TLiteral<"openai-codex">, Type$1.TLiteral<"openrouter">, Type$1.TLiteral<"xai">]>;
|
|
6825
6891
|
}>;
|
|
6826
6892
|
};
|
|
6827
6893
|
};
|
|
6828
6894
|
toObject(): {
|
|
6829
6895
|
name: "ProtocolMismatchError";
|
|
6830
6896
|
data: {
|
|
6831
|
-
actual: "anthropic" | "google" | "google-vertex" | "google-vertex-anthropic" | "openai" | "openai-compatible" | "openrouter" | "xai";
|
|
6832
|
-
expected: "anthropic" | "google" | "google-vertex" | "google-vertex-anthropic" | "openai" | "openai-compatible" | "openrouter" | "xai";
|
|
6897
|
+
actual: "anthropic" | "google" | "google-vertex" | "google-vertex-anthropic" | "openai" | "openai-compatible" | "openai-codex" | "openrouter" | "xai";
|
|
6898
|
+
expected: "anthropic" | "google" | "google-vertex" | "google-vertex-anthropic" | "openai" | "openai-compatible" | "openai-codex" | "openrouter" | "xai";
|
|
6833
6899
|
};
|
|
6834
6900
|
};
|
|
6835
6901
|
message: string;
|
|
@@ -6845,8 +6911,8 @@ declare namespace Protocol {
|
|
|
6845
6911
|
readonly const: "ProtocolMismatchError";
|
|
6846
6912
|
};
|
|
6847
6913
|
readonly data: Type$1.TObject<{
|
|
6848
|
-
actual: Type$1.TUnion<[Type$1.TLiteral<"anthropic">, Type$1.TLiteral<"google">, Type$1.TLiteral<"google-vertex">, Type$1.TLiteral<"google-vertex-anthropic">, Type$1.TLiteral<"openai">, Type$1.TLiteral<"openai-compatible">, Type$1.TLiteral<"openrouter">, Type$1.TLiteral<"xai">]>;
|
|
6849
|
-
expected: Type$1.TUnion<[Type$1.TLiteral<"anthropic">, Type$1.TLiteral<"google">, Type$1.TLiteral<"google-vertex">, Type$1.TLiteral<"google-vertex-anthropic">, Type$1.TLiteral<"openai">, Type$1.TLiteral<"openai-compatible">, Type$1.TLiteral<"openrouter">, Type$1.TLiteral<"xai">]>;
|
|
6914
|
+
actual: Type$1.TUnion<[Type$1.TLiteral<"anthropic">, Type$1.TLiteral<"google">, Type$1.TLiteral<"google-vertex">, Type$1.TLiteral<"google-vertex-anthropic">, Type$1.TLiteral<"openai">, Type$1.TLiteral<"openai-compatible">, Type$1.TLiteral<"openai-codex">, Type$1.TLiteral<"openrouter">, Type$1.TLiteral<"xai">]>;
|
|
6915
|
+
expected: Type$1.TUnion<[Type$1.TLiteral<"anthropic">, Type$1.TLiteral<"google">, Type$1.TLiteral<"google-vertex">, Type$1.TLiteral<"google-vertex-anthropic">, Type$1.TLiteral<"openai">, Type$1.TLiteral<"openai-compatible">, Type$1.TLiteral<"openai-codex">, Type$1.TLiteral<"openrouter">, Type$1.TLiteral<"xai">]>;
|
|
6850
6916
|
}>;
|
|
6851
6917
|
};
|
|
6852
6918
|
};
|
|
@@ -7116,6 +7182,7 @@ declare namespace Protocol {
|
|
|
7116
7182
|
[Model.KnownProviderEnum.googleVertex]: GoogleVertexOptions;
|
|
7117
7183
|
[Model.KnownProviderEnum.googleVertexAnthropic]: GoogleVertexAnthropicOptions;
|
|
7118
7184
|
[Model.KnownProviderEnum.openaiCompatible]: OpenAICompatibleOptions;
|
|
7185
|
+
[Model.KnownProviderEnum.openaiCodex]: OpenAICodexOptions;
|
|
7119
7186
|
[Model.KnownProviderEnum.openrouter]: OpenRouterOptions;
|
|
7120
7187
|
[Model.KnownProviderEnum.xai]: XaiOptions;
|
|
7121
7188
|
}
|
|
@@ -7199,5 +7266,5 @@ declare function validateToolCall<T extends Message.Tool>(tools: T[], toolExecut
|
|
|
7199
7266
|
*/
|
|
7200
7267
|
declare function validateToolArguments<T extends Message.Tool>(tool: T, toolExecution: Message.ToolCallInFlight): Message.ToolArguments<T>;
|
|
7201
7268
|
//#endregion
|
|
7202
|
-
export { type AnthropicOptions, type AssistantMessageEventStream, Event, EventStream, type GoogleOptions, type GoogleVertexAnthropicOptions, type GoogleVertexOptions, Message, Model, type OpenAICompatibleOptions, type OpenAIOptions, type OpenRouterOptions, Protocol, type Static, type TSchema, ThinkingBudgets, Type, type XaiOptions, createAssistantMessageEventStream, llm, stream, validateSchema, validateToolArguments, validateToolCall };
|
|
7269
|
+
export { type AnthropicOptions, type AssistantMessageEventStream, Event, EventStream, type GoogleOptions, type GoogleVertexAnthropicOptions, type GoogleVertexOptions, Message, Model, type OpenAICodexOptions, type OpenAICodexProvider, type OpenAICodexProviderSettings, type OpenAICompatibleOptions, type OpenAIOptions, type OpenRouterOptions, Protocol, type Static, type TSchema, ThinkingBudgets, Type, type XaiOptions, createAssistantMessageEventStream, createOpenAICodex, llm, openaiCodex, stream, validateSchema, validateToolArguments, validateToolCall };
|
|
7203
7270
|
//# sourceMappingURL=index.d.mts.map
|