@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/meta.d.ts
CHANGED
|
@@ -1531,10 +1531,11 @@ declare enum Model {
|
|
|
1531
1531
|
CLAUDE_4_5_HAIKU_1_0 = "CLAUDE_4_5_HAIKU_1_0",
|
|
1532
1532
|
CLAUDE_4_5_OPUS_1_0 = "CLAUDE_4_5_OPUS_1_0",
|
|
1533
1533
|
CLAUDE_4_6_OPUS_1_0 = "CLAUDE_4_6_OPUS_1_0",
|
|
1534
|
-
CLAUDE_4_6_SONNET_1_0 = "CLAUDE_4_6_SONNET_1_0"
|
|
1534
|
+
CLAUDE_4_6_SONNET_1_0 = "CLAUDE_4_6_SONNET_1_0",
|
|
1535
|
+
CLAUDE_4_7_OPUS_1_0 = "CLAUDE_4_7_OPUS_1_0"
|
|
1535
1536
|
}
|
|
1536
1537
|
/** @enumType */
|
|
1537
|
-
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';
|
|
1538
|
+
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';
|
|
1538
1539
|
interface AnthropicClaudeMessage {
|
|
1539
1540
|
/** The role of the message author. */
|
|
1540
1541
|
role?: RoleWithLiterals;
|
|
@@ -1740,6 +1741,12 @@ interface Tool {
|
|
|
1740
1741
|
type?: string | null;
|
|
1741
1742
|
/** Maximum uses of a tool allowed to the model. Currently used only by `web_search` */
|
|
1742
1743
|
maxUses?: number | null;
|
|
1744
|
+
/**
|
|
1745
|
+
* Optional concrete example inputs for this tool. Each example is a JSON object that must
|
|
1746
|
+
* validate against `input_schema`. Forwarded verbatim to the Claude model on Bedrock.
|
|
1747
|
+
* @maxSize 100
|
|
1748
|
+
*/
|
|
1749
|
+
inputExamples?: Record<string, any>[] | null;
|
|
1743
1750
|
}
|
|
1744
1751
|
interface ToolChoice {
|
|
1745
1752
|
/**
|
|
@@ -1926,10 +1933,11 @@ declare enum ClaudeModel {
|
|
|
1926
1933
|
CLAUDE_4_5_HAIKU_1_0 = "CLAUDE_4_5_HAIKU_1_0",
|
|
1927
1934
|
CLAUDE_4_5_OPUS_1_0 = "CLAUDE_4_5_OPUS_1_0",
|
|
1928
1935
|
CLAUDE_4_6_OPUS_1_0 = "CLAUDE_4_6_OPUS_1_0",
|
|
1929
|
-
CLAUDE_4_6_SONNET_1_0 = "CLAUDE_4_6_SONNET_1_0"
|
|
1936
|
+
CLAUDE_4_6_SONNET_1_0 = "CLAUDE_4_6_SONNET_1_0",
|
|
1937
|
+
CLAUDE_4_7_OPUS_1_0 = "CLAUDE_4_7_OPUS_1_0"
|
|
1930
1938
|
}
|
|
1931
1939
|
/** @enumType */
|
|
1932
|
-
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';
|
|
1940
|
+
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';
|
|
1933
1941
|
interface V1AnthropicClaudeMessage {
|
|
1934
1942
|
/** The role of the message author. */
|
|
1935
1943
|
role?: V1MessageRoleRoleWithLiterals;
|
|
@@ -2135,6 +2143,12 @@ interface InvokeAnthropicClaudeModelRequestTool {
|
|
|
2135
2143
|
type?: string | null;
|
|
2136
2144
|
/** Maximum uses of a tool allowed to the model. Currently used only by `web_search` */
|
|
2137
2145
|
maxUses?: number | null;
|
|
2146
|
+
/**
|
|
2147
|
+
* Optional concrete example inputs for this tool. Each example is a JSON object that must
|
|
2148
|
+
* validate against `input_schema`. Forwarded verbatim to the Claude model on Vertex.
|
|
2149
|
+
* @maxSize 100
|
|
2150
|
+
*/
|
|
2151
|
+
inputExamples?: Record<string, any>[] | null;
|
|
2138
2152
|
}
|
|
2139
2153
|
interface GoogleproxyV1ToolChoice {
|
|
2140
2154
|
/**
|
|
@@ -2300,10 +2314,11 @@ declare enum AnthropicModel {
|
|
|
2300
2314
|
CLAUDE_4_5_HAIKU_1_0 = "CLAUDE_4_5_HAIKU_1_0",
|
|
2301
2315
|
CLAUDE_4_5_OPUS_1_0 = "CLAUDE_4_5_OPUS_1_0",
|
|
2302
2316
|
CLAUDE_4_6_OPUS_1_0 = "CLAUDE_4_6_OPUS_1_0",
|
|
2303
|
-
CLAUDE_4_6_SONNET_1_0 = "CLAUDE_4_6_SONNET_1_0"
|
|
2317
|
+
CLAUDE_4_6_SONNET_1_0 = "CLAUDE_4_6_SONNET_1_0",
|
|
2318
|
+
CLAUDE_4_7_OPUS_1_0 = "CLAUDE_4_7_OPUS_1_0"
|
|
2304
2319
|
}
|
|
2305
2320
|
/** @enumType */
|
|
2306
|
-
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';
|
|
2321
|
+
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';
|
|
2307
2322
|
interface AnthropicMessage {
|
|
2308
2323
|
/** The role of the message author. */
|
|
2309
2324
|
role?: MessageRoleRoleWithLiterals;
|
|
@@ -3141,6 +3156,13 @@ interface CustomTool {
|
|
|
3141
3156
|
inputSchema?: V1InputSchema;
|
|
3142
3157
|
/** Enables prompt caching: https://docs.anthropic.com/en/docs/build-with-claude/prompt-caching. */
|
|
3143
3158
|
cacheControl?: V1CacheControl;
|
|
3159
|
+
/**
|
|
3160
|
+
* Optional concrete example inputs for this tool. Each example is a JSON object that must validate
|
|
3161
|
+
* against `input_schema`. Anthropic forwards these to the model to reduce schema-validation errors.
|
|
3162
|
+
* See: https://platform.claude.com/docs/en/agents-and-tools/tool-use/implement-tool-use
|
|
3163
|
+
* @maxSize 100
|
|
3164
|
+
*/
|
|
3165
|
+
inputExamples?: Record<string, any>[] | null;
|
|
3144
3166
|
}
|
|
3145
3167
|
interface V1InputSchema {
|
|
3146
3168
|
/**
|
|
@@ -7733,6 +7755,13 @@ interface GatewayToolDefinitionCustomTool {
|
|
|
7733
7755
|
description?: string | null;
|
|
7734
7756
|
/** The parameters the tool accepts, described as a JSON Schema object. */
|
|
7735
7757
|
parameters?: Record<string, any> | null;
|
|
7758
|
+
/**
|
|
7759
|
+
* Optional concrete example inputs for this tool. Forwarded to providers that natively support
|
|
7760
|
+
* tool input examples (e.g. Anthropic `input_examples`). Each example must validate against
|
|
7761
|
+
* `parameters`. Silently ignored by providers that do not support them (OpenAI, Gemini, etc.).
|
|
7762
|
+
* @maxSize 100
|
|
7763
|
+
*/
|
|
7764
|
+
inputExamples?: Record<string, any>[] | null;
|
|
7736
7765
|
}
|
|
7737
7766
|
interface BuiltInTool {
|
|
7738
7767
|
/**
|
package/build/cjs/meta.js
CHANGED
|
@@ -3456,6 +3456,7 @@ var Model = /* @__PURE__ */ ((Model2) => {
|
|
|
3456
3456
|
Model2["CLAUDE_4_5_OPUS_1_0"] = "CLAUDE_4_5_OPUS_1_0";
|
|
3457
3457
|
Model2["CLAUDE_4_6_OPUS_1_0"] = "CLAUDE_4_6_OPUS_1_0";
|
|
3458
3458
|
Model2["CLAUDE_4_6_SONNET_1_0"] = "CLAUDE_4_6_SONNET_1_0";
|
|
3459
|
+
Model2["CLAUDE_4_7_OPUS_1_0"] = "CLAUDE_4_7_OPUS_1_0";
|
|
3459
3460
|
return Model2;
|
|
3460
3461
|
})(Model || {});
|
|
3461
3462
|
var Role = /* @__PURE__ */ ((Role2) => {
|
|
@@ -3504,6 +3505,7 @@ var ClaudeModel = /* @__PURE__ */ ((ClaudeModel2) => {
|
|
|
3504
3505
|
ClaudeModel2["CLAUDE_4_5_OPUS_1_0"] = "CLAUDE_4_5_OPUS_1_0";
|
|
3505
3506
|
ClaudeModel2["CLAUDE_4_6_OPUS_1_0"] = "CLAUDE_4_6_OPUS_1_0";
|
|
3506
3507
|
ClaudeModel2["CLAUDE_4_6_SONNET_1_0"] = "CLAUDE_4_6_SONNET_1_0";
|
|
3508
|
+
ClaudeModel2["CLAUDE_4_7_OPUS_1_0"] = "CLAUDE_4_7_OPUS_1_0";
|
|
3507
3509
|
return ClaudeModel2;
|
|
3508
3510
|
})(ClaudeModel || {});
|
|
3509
3511
|
var V1MessageRoleRole = /* @__PURE__ */ ((V1MessageRoleRole2) => {
|
|
@@ -3546,6 +3548,7 @@ var AnthropicModel = /* @__PURE__ */ ((AnthropicModel2) => {
|
|
|
3546
3548
|
AnthropicModel2["CLAUDE_4_5_OPUS_1_0"] = "CLAUDE_4_5_OPUS_1_0";
|
|
3547
3549
|
AnthropicModel2["CLAUDE_4_6_OPUS_1_0"] = "CLAUDE_4_6_OPUS_1_0";
|
|
3548
3550
|
AnthropicModel2["CLAUDE_4_6_SONNET_1_0"] = "CLAUDE_4_6_SONNET_1_0";
|
|
3551
|
+
AnthropicModel2["CLAUDE_4_7_OPUS_1_0"] = "CLAUDE_4_7_OPUS_1_0";
|
|
3549
3552
|
return AnthropicModel2;
|
|
3550
3553
|
})(AnthropicModel || {});
|
|
3551
3554
|
var MessageRoleRole = /* @__PURE__ */ ((MessageRoleRole2) => {
|