@wix/auto_sdk_ai-gateway_generators 1.0.82 → 1.0.84
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/build/cjs/index.d.ts +35 -6
- package/build/cjs/index.js +3 -0
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.js +3 -0
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +35 -6
- package/build/cjs/meta.js +3 -0
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +35 -6
- package/build/es/index.mjs +3 -0
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.mjs +3 -0
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +35 -6
- package/build/es/meta.mjs +3 -0
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.js +3 -0
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +35 -6
- package/build/internal/cjs/index.typings.js +3 -0
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +35 -6
- package/build/internal/cjs/meta.js +3 -0
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.mjs +3 -0
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +35 -6
- package/build/internal/es/index.typings.mjs +3 -0
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +35 -6
- package/build/internal/es/meta.mjs +3 -0
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +5 -4
package/build/cjs/index.d.ts
CHANGED
|
@@ -1528,10 +1528,11 @@ declare enum Model {
|
|
|
1528
1528
|
CLAUDE_4_5_HAIKU_1_0 = "CLAUDE_4_5_HAIKU_1_0",
|
|
1529
1529
|
CLAUDE_4_5_OPUS_1_0 = "CLAUDE_4_5_OPUS_1_0",
|
|
1530
1530
|
CLAUDE_4_6_OPUS_1_0 = "CLAUDE_4_6_OPUS_1_0",
|
|
1531
|
-
CLAUDE_4_6_SONNET_1_0 = "CLAUDE_4_6_SONNET_1_0"
|
|
1531
|
+
CLAUDE_4_6_SONNET_1_0 = "CLAUDE_4_6_SONNET_1_0",
|
|
1532
|
+
CLAUDE_4_7_OPUS_1_0 = "CLAUDE_4_7_OPUS_1_0"
|
|
1532
1533
|
}
|
|
1533
1534
|
/** @enumType */
|
|
1534
|
-
type ModelWithLiterals = Model | 'UNKNOWN' | 'CLAUDE_3_SONNET_1_0' | 'CLAUDE_3_HAIKU_1_0' | 'CLAUDE_3_5_SONNET_1_0' | 'CLAUDE_3_5_SONNET_2_0' | 'CLAUDE_3_5_HAIKU_1_0' | 'CLAUDE_3_7_SONNET_1_0' | 'CLAUDE_4_SONNET_1_0' | 'CLAUDE_4_OPUS_1_0' | 'CLAUDE_4_5_SONNET_1_0' | 'CLAUDE_4_5_HAIKU_1_0' | 'CLAUDE_4_5_OPUS_1_0' | 'CLAUDE_4_6_OPUS_1_0' | 'CLAUDE_4_6_SONNET_1_0';
|
|
1535
|
+
type ModelWithLiterals = Model | 'UNKNOWN' | 'CLAUDE_3_SONNET_1_0' | 'CLAUDE_3_HAIKU_1_0' | 'CLAUDE_3_5_SONNET_1_0' | 'CLAUDE_3_5_SONNET_2_0' | 'CLAUDE_3_5_HAIKU_1_0' | 'CLAUDE_3_7_SONNET_1_0' | 'CLAUDE_4_SONNET_1_0' | 'CLAUDE_4_OPUS_1_0' | 'CLAUDE_4_5_SONNET_1_0' | 'CLAUDE_4_5_HAIKU_1_0' | 'CLAUDE_4_5_OPUS_1_0' | 'CLAUDE_4_6_OPUS_1_0' | 'CLAUDE_4_6_SONNET_1_0' | 'CLAUDE_4_7_OPUS_1_0';
|
|
1535
1536
|
interface AnthropicClaudeMessage {
|
|
1536
1537
|
/** The role of the message author. */
|
|
1537
1538
|
role?: RoleWithLiterals;
|
|
@@ -1737,6 +1738,12 @@ interface Tool {
|
|
|
1737
1738
|
type?: string | null;
|
|
1738
1739
|
/** Maximum uses of a tool allowed to the model. Currently used only by `web_search` */
|
|
1739
1740
|
maxUses?: number | null;
|
|
1741
|
+
/**
|
|
1742
|
+
* Optional concrete example inputs for this tool. Each example is a JSON object that must
|
|
1743
|
+
* validate against `input_schema`. Forwarded verbatim to the Claude model on Bedrock.
|
|
1744
|
+
* @maxSize 100
|
|
1745
|
+
*/
|
|
1746
|
+
inputExamples?: Record<string, any>[] | null;
|
|
1740
1747
|
}
|
|
1741
1748
|
interface ToolChoice {
|
|
1742
1749
|
/**
|
|
@@ -1923,10 +1930,11 @@ declare enum ClaudeModel {
|
|
|
1923
1930
|
CLAUDE_4_5_HAIKU_1_0 = "CLAUDE_4_5_HAIKU_1_0",
|
|
1924
1931
|
CLAUDE_4_5_OPUS_1_0 = "CLAUDE_4_5_OPUS_1_0",
|
|
1925
1932
|
CLAUDE_4_6_OPUS_1_0 = "CLAUDE_4_6_OPUS_1_0",
|
|
1926
|
-
CLAUDE_4_6_SONNET_1_0 = "CLAUDE_4_6_SONNET_1_0"
|
|
1933
|
+
CLAUDE_4_6_SONNET_1_0 = "CLAUDE_4_6_SONNET_1_0",
|
|
1934
|
+
CLAUDE_4_7_OPUS_1_0 = "CLAUDE_4_7_OPUS_1_0"
|
|
1927
1935
|
}
|
|
1928
1936
|
/** @enumType */
|
|
1929
|
-
type ClaudeModelWithLiterals = ClaudeModel | 'UNKNOWN_CLAUDE_MODEL' | 'CLAUDE_3_SONNET_1_0' | 'CLAUDE_3_HAIKU_1_0' | 'CLAUDE_3_OPUS_1_0' | 'CLAUDE_3_5_SONNET_1_0' | 'CLAUDE_3_5_SONNET_2_0' | 'CLAUDE_3_7_SONNET_1_0' | 'CLAUDE_4_SONNET_1_0' | 'CLAUDE_4_OPUS_1_0' | 'CLAUDE_4_5_SONNET_1_0' | 'CLAUDE_4_5_HAIKU_1_0' | 'CLAUDE_4_5_OPUS_1_0' | 'CLAUDE_4_6_OPUS_1_0' | 'CLAUDE_4_6_SONNET_1_0';
|
|
1937
|
+
type ClaudeModelWithLiterals = ClaudeModel | 'UNKNOWN_CLAUDE_MODEL' | 'CLAUDE_3_SONNET_1_0' | 'CLAUDE_3_HAIKU_1_0' | 'CLAUDE_3_OPUS_1_0' | 'CLAUDE_3_5_SONNET_1_0' | 'CLAUDE_3_5_SONNET_2_0' | 'CLAUDE_3_7_SONNET_1_0' | 'CLAUDE_4_SONNET_1_0' | 'CLAUDE_4_OPUS_1_0' | 'CLAUDE_4_5_SONNET_1_0' | 'CLAUDE_4_5_HAIKU_1_0' | 'CLAUDE_4_5_OPUS_1_0' | 'CLAUDE_4_6_OPUS_1_0' | 'CLAUDE_4_6_SONNET_1_0' | 'CLAUDE_4_7_OPUS_1_0';
|
|
1930
1938
|
interface V1AnthropicClaudeMessage {
|
|
1931
1939
|
/** The role of the message author. */
|
|
1932
1940
|
role?: V1MessageRoleRoleWithLiterals;
|
|
@@ -2132,6 +2140,12 @@ interface InvokeAnthropicClaudeModelRequestTool {
|
|
|
2132
2140
|
type?: string | null;
|
|
2133
2141
|
/** Maximum uses of a tool allowed to the model. Currently used only by `web_search` */
|
|
2134
2142
|
maxUses?: number | null;
|
|
2143
|
+
/**
|
|
2144
|
+
* Optional concrete example inputs for this tool. Each example is a JSON object that must
|
|
2145
|
+
* validate against `input_schema`. Forwarded verbatim to the Claude model on Vertex.
|
|
2146
|
+
* @maxSize 100
|
|
2147
|
+
*/
|
|
2148
|
+
inputExamples?: Record<string, any>[] | null;
|
|
2135
2149
|
}
|
|
2136
2150
|
interface GoogleproxyV1ToolChoice {
|
|
2137
2151
|
/**
|
|
@@ -2297,10 +2311,11 @@ declare enum AnthropicModel {
|
|
|
2297
2311
|
CLAUDE_4_5_HAIKU_1_0 = "CLAUDE_4_5_HAIKU_1_0",
|
|
2298
2312
|
CLAUDE_4_5_OPUS_1_0 = "CLAUDE_4_5_OPUS_1_0",
|
|
2299
2313
|
CLAUDE_4_6_OPUS_1_0 = "CLAUDE_4_6_OPUS_1_0",
|
|
2300
|
-
CLAUDE_4_6_SONNET_1_0 = "CLAUDE_4_6_SONNET_1_0"
|
|
2314
|
+
CLAUDE_4_6_SONNET_1_0 = "CLAUDE_4_6_SONNET_1_0",
|
|
2315
|
+
CLAUDE_4_7_OPUS_1_0 = "CLAUDE_4_7_OPUS_1_0"
|
|
2301
2316
|
}
|
|
2302
2317
|
/** @enumType */
|
|
2303
|
-
type AnthropicModelWithLiterals = AnthropicModel | 'UNKNOWN_ANTHROPIC_MODEL' | 'CLAUDE_3_HAIKU_1_0' | 'CLAUDE_3_5_SONNET_1_0' | 'CLAUDE_3_5_SONNET_2_0' | 'CLAUDE_3_7_SONNET_1_0' | 'CLAUDE_4_SONNET_1_0' | 'CLAUDE_4_OPUS_1_0' | 'CLAUDE_4_1_OPUS_1_0' | 'CLAUDE_4_5_SONNET_1_0' | 'CLAUDE_4_5_HAIKU_1_0' | 'CLAUDE_4_5_OPUS_1_0' | 'CLAUDE_4_6_OPUS_1_0' | 'CLAUDE_4_6_SONNET_1_0';
|
|
2318
|
+
type AnthropicModelWithLiterals = AnthropicModel | 'UNKNOWN_ANTHROPIC_MODEL' | 'CLAUDE_3_HAIKU_1_0' | 'CLAUDE_3_5_SONNET_1_0' | 'CLAUDE_3_5_SONNET_2_0' | 'CLAUDE_3_7_SONNET_1_0' | 'CLAUDE_4_SONNET_1_0' | 'CLAUDE_4_OPUS_1_0' | 'CLAUDE_4_1_OPUS_1_0' | 'CLAUDE_4_5_SONNET_1_0' | 'CLAUDE_4_5_HAIKU_1_0' | 'CLAUDE_4_5_OPUS_1_0' | 'CLAUDE_4_6_OPUS_1_0' | 'CLAUDE_4_6_SONNET_1_0' | 'CLAUDE_4_7_OPUS_1_0';
|
|
2304
2319
|
interface AnthropicMessage {
|
|
2305
2320
|
/** The role of the message author. */
|
|
2306
2321
|
role?: MessageRoleRoleWithLiterals;
|
|
@@ -3138,6 +3153,13 @@ interface CustomTool {
|
|
|
3138
3153
|
inputSchema?: V1InputSchema;
|
|
3139
3154
|
/** Enables prompt caching: https://docs.anthropic.com/en/docs/build-with-claude/prompt-caching. */
|
|
3140
3155
|
cacheControl?: V1CacheControl;
|
|
3156
|
+
/**
|
|
3157
|
+
* Optional concrete example inputs for this tool. Each example is a JSON object that must validate
|
|
3158
|
+
* against `input_schema`. Anthropic forwards these to the model to reduce schema-validation errors.
|
|
3159
|
+
* See: https://platform.claude.com/docs/en/agents-and-tools/tool-use/implement-tool-use
|
|
3160
|
+
* @maxSize 100
|
|
3161
|
+
*/
|
|
3162
|
+
inputExamples?: Record<string, any>[] | null;
|
|
3141
3163
|
}
|
|
3142
3164
|
interface V1InputSchema {
|
|
3143
3165
|
/**
|
|
@@ -7730,6 +7752,13 @@ interface GatewayToolDefinitionCustomTool {
|
|
|
7730
7752
|
description?: string | null;
|
|
7731
7753
|
/** The parameters the tool accepts, described as a JSON Schema object. */
|
|
7732
7754
|
parameters?: Record<string, any> | null;
|
|
7755
|
+
/**
|
|
7756
|
+
* Optional concrete example inputs for this tool. Forwarded to providers that natively support
|
|
7757
|
+
* tool input examples (e.g. Anthropic `input_examples`). Each example must validate against
|
|
7758
|
+
* `parameters`. Silently ignored by providers that do not support them (OpenAI, Gemini, etc.).
|
|
7759
|
+
* @maxSize 100
|
|
7760
|
+
*/
|
|
7761
|
+
inputExamples?: Record<string, any>[] | null;
|
|
7733
7762
|
}
|
|
7734
7763
|
interface BuiltInTool {
|
|
7735
7764
|
/**
|
package/build/cjs/index.js
CHANGED
|
@@ -3460,6 +3460,7 @@ var Model = /* @__PURE__ */ ((Model2) => {
|
|
|
3460
3460
|
Model2["CLAUDE_4_5_OPUS_1_0"] = "CLAUDE_4_5_OPUS_1_0";
|
|
3461
3461
|
Model2["CLAUDE_4_6_OPUS_1_0"] = "CLAUDE_4_6_OPUS_1_0";
|
|
3462
3462
|
Model2["CLAUDE_4_6_SONNET_1_0"] = "CLAUDE_4_6_SONNET_1_0";
|
|
3463
|
+
Model2["CLAUDE_4_7_OPUS_1_0"] = "CLAUDE_4_7_OPUS_1_0";
|
|
3463
3464
|
return Model2;
|
|
3464
3465
|
})(Model || {});
|
|
3465
3466
|
var Role = /* @__PURE__ */ ((Role2) => {
|
|
@@ -3508,6 +3509,7 @@ var ClaudeModel = /* @__PURE__ */ ((ClaudeModel2) => {
|
|
|
3508
3509
|
ClaudeModel2["CLAUDE_4_5_OPUS_1_0"] = "CLAUDE_4_5_OPUS_1_0";
|
|
3509
3510
|
ClaudeModel2["CLAUDE_4_6_OPUS_1_0"] = "CLAUDE_4_6_OPUS_1_0";
|
|
3510
3511
|
ClaudeModel2["CLAUDE_4_6_SONNET_1_0"] = "CLAUDE_4_6_SONNET_1_0";
|
|
3512
|
+
ClaudeModel2["CLAUDE_4_7_OPUS_1_0"] = "CLAUDE_4_7_OPUS_1_0";
|
|
3511
3513
|
return ClaudeModel2;
|
|
3512
3514
|
})(ClaudeModel || {});
|
|
3513
3515
|
var V1MessageRoleRole = /* @__PURE__ */ ((V1MessageRoleRole2) => {
|
|
@@ -3550,6 +3552,7 @@ var AnthropicModel = /* @__PURE__ */ ((AnthropicModel2) => {
|
|
|
3550
3552
|
AnthropicModel2["CLAUDE_4_5_OPUS_1_0"] = "CLAUDE_4_5_OPUS_1_0";
|
|
3551
3553
|
AnthropicModel2["CLAUDE_4_6_OPUS_1_0"] = "CLAUDE_4_6_OPUS_1_0";
|
|
3552
3554
|
AnthropicModel2["CLAUDE_4_6_SONNET_1_0"] = "CLAUDE_4_6_SONNET_1_0";
|
|
3555
|
+
AnthropicModel2["CLAUDE_4_7_OPUS_1_0"] = "CLAUDE_4_7_OPUS_1_0";
|
|
3553
3556
|
return AnthropicModel2;
|
|
3554
3557
|
})(AnthropicModel || {});
|
|
3555
3558
|
var MessageRoleRole = /* @__PURE__ */ ((MessageRoleRole2) => {
|