@wix/auto_sdk_ai-gateway_generators 1.0.76 → 1.0.78
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 +246 -6
- package/build/cjs/index.js +93 -3
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +1 -1
- package/build/cjs/index.typings.js +93 -3
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +240 -4
- package/build/cjs/meta.js +89 -1
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +246 -6
- package/build/es/index.mjs +93 -3
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +1 -1
- package/build/es/index.typings.mjs +93 -3
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +240 -4
- package/build/es/meta.mjs +89 -1
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +11 -11
- package/build/internal/cjs/index.js +93 -3
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +256 -16
- package/build/internal/cjs/index.typings.js +93 -3
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +240 -4
- package/build/internal/cjs/meta.js +89 -1
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.d.mts +11 -11
- package/build/internal/es/index.mjs +93 -3
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +256 -16
- package/build/internal/es/index.typings.mjs +93 -3
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +240 -4
- package/build/internal/es/meta.mjs +89 -1
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -255,6 +255,12 @@ function generateTextByPrompt(payload) {
|
|
|
255
255
|
{
|
|
256
256
|
path: "response.googleGeminiGenerateContentResponse.candidates.safetyRatings.severityScore"
|
|
257
257
|
},
|
|
258
|
+
{
|
|
259
|
+
path: "response.googleGeminiGenerateContentResponse.promptFeedback.safetyRatings.probabilityScore"
|
|
260
|
+
},
|
|
261
|
+
{
|
|
262
|
+
path: "response.googleGeminiGenerateContentResponse.promptFeedback.safetyRatings.severityScore"
|
|
263
|
+
},
|
|
258
264
|
{ path: "response.openAiResponsesResponse.temperature" },
|
|
259
265
|
{
|
|
260
266
|
path: "materializedPrompt.openAiChatCompletionRequest.temperature"
|
|
@@ -461,6 +467,12 @@ function generateTextByPromptStreamed(payload) {
|
|
|
461
467
|
{
|
|
462
468
|
path: "googleGeminiStreamChunk.candidates.safetyRatings.severityScore"
|
|
463
469
|
},
|
|
470
|
+
{
|
|
471
|
+
path: "googleGeminiStreamChunk.promptFeedback.safetyRatings.probabilityScore"
|
|
472
|
+
},
|
|
473
|
+
{
|
|
474
|
+
path: "googleGeminiStreamChunk.promptFeedback.safetyRatings.severityScore"
|
|
475
|
+
},
|
|
464
476
|
{
|
|
465
477
|
path: "googleGeminiStreamChunk.candidates.groundingMetadata.groundingSupports.confidenceScores",
|
|
466
478
|
isRepeated: true
|
|
@@ -603,6 +615,12 @@ function generateTextByPromptObject(payload) {
|
|
|
603
615
|
{
|
|
604
616
|
path: "response.googleGeminiGenerateContentResponse.candidates.safetyRatings.severityScore"
|
|
605
617
|
},
|
|
618
|
+
{
|
|
619
|
+
path: "response.googleGeminiGenerateContentResponse.promptFeedback.safetyRatings.probabilityScore"
|
|
620
|
+
},
|
|
621
|
+
{
|
|
622
|
+
path: "response.googleGeminiGenerateContentResponse.promptFeedback.safetyRatings.severityScore"
|
|
623
|
+
},
|
|
606
624
|
{ path: "response.openAiResponsesResponse.temperature" },
|
|
607
625
|
{
|
|
608
626
|
path: "materializedPrompt.openAiChatCompletionRequest.temperature"
|
|
@@ -902,6 +920,12 @@ function generateTextByPromptObjectStreamed(payload) {
|
|
|
902
920
|
{
|
|
903
921
|
path: "googleGeminiStreamChunk.candidates.safetyRatings.severityScore"
|
|
904
922
|
},
|
|
923
|
+
{
|
|
924
|
+
path: "googleGeminiStreamChunk.promptFeedback.safetyRatings.probabilityScore"
|
|
925
|
+
},
|
|
926
|
+
{
|
|
927
|
+
path: "googleGeminiStreamChunk.promptFeedback.safetyRatings.severityScore"
|
|
928
|
+
},
|
|
905
929
|
{
|
|
906
930
|
path: "googleGeminiStreamChunk.candidates.groundingMetadata.groundingSupports.confidenceScores",
|
|
907
931
|
isRepeated: true
|
|
@@ -991,6 +1015,12 @@ function generateTextByProject(payload) {
|
|
|
991
1015
|
{
|
|
992
1016
|
path: "response.googleGeminiGenerateContentResponse.candidates.safetyRatings.severityScore"
|
|
993
1017
|
},
|
|
1018
|
+
{
|
|
1019
|
+
path: "response.googleGeminiGenerateContentResponse.promptFeedback.safetyRatings.probabilityScore"
|
|
1020
|
+
},
|
|
1021
|
+
{
|
|
1022
|
+
path: "response.googleGeminiGenerateContentResponse.promptFeedback.safetyRatings.severityScore"
|
|
1023
|
+
},
|
|
994
1024
|
{ path: "response.openAiResponsesResponse.temperature" },
|
|
995
1025
|
{
|
|
996
1026
|
path: "materializedPrompt.openAiChatCompletionRequest.temperature"
|
|
@@ -1197,6 +1227,12 @@ function generateTextByProjectStreamed(payload) {
|
|
|
1197
1227
|
{
|
|
1198
1228
|
path: "googleGeminiStreamChunk.candidates.safetyRatings.severityScore"
|
|
1199
1229
|
},
|
|
1230
|
+
{
|
|
1231
|
+
path: "googleGeminiStreamChunk.promptFeedback.safetyRatings.probabilityScore"
|
|
1232
|
+
},
|
|
1233
|
+
{
|
|
1234
|
+
path: "googleGeminiStreamChunk.promptFeedback.safetyRatings.severityScore"
|
|
1235
|
+
},
|
|
1200
1236
|
{
|
|
1201
1237
|
path: "googleGeminiStreamChunk.candidates.groundingMetadata.groundingSupports.confidenceScores",
|
|
1202
1238
|
isRepeated: true
|
|
@@ -1924,6 +1960,12 @@ function generateContentByPrompt(payload) {
|
|
|
1924
1960
|
{
|
|
1925
1961
|
path: "response.googleGeminiGenerateContentResponse.candidates.safetyRatings.severityScore"
|
|
1926
1962
|
},
|
|
1963
|
+
{
|
|
1964
|
+
path: "response.googleGeminiGenerateContentResponse.promptFeedback.safetyRatings.probabilityScore"
|
|
1965
|
+
},
|
|
1966
|
+
{
|
|
1967
|
+
path: "response.googleGeminiGenerateContentResponse.promptFeedback.safetyRatings.severityScore"
|
|
1968
|
+
},
|
|
1927
1969
|
{
|
|
1928
1970
|
path: "response.googleGenerateImageResponse.predictions.safetyAttributes.scores",
|
|
1929
1971
|
isRepeated: true
|
|
@@ -2135,6 +2177,12 @@ function generateContentByProject(payload) {
|
|
|
2135
2177
|
{
|
|
2136
2178
|
path: "response.googleGeminiGenerateContentResponse.candidates.safetyRatings.severityScore"
|
|
2137
2179
|
},
|
|
2180
|
+
{
|
|
2181
|
+
path: "response.googleGeminiGenerateContentResponse.promptFeedback.safetyRatings.probabilityScore"
|
|
2182
|
+
},
|
|
2183
|
+
{
|
|
2184
|
+
path: "response.googleGeminiGenerateContentResponse.promptFeedback.safetyRatings.severityScore"
|
|
2185
|
+
},
|
|
2138
2186
|
{
|
|
2139
2187
|
path: "response.googleGenerateImageResponse.predictions.safetyAttributes.scores",
|
|
2140
2188
|
isRepeated: true
|
|
@@ -2439,6 +2487,12 @@ function generateContentByPromptObject(payload) {
|
|
|
2439
2487
|
{
|
|
2440
2488
|
path: "response.googleGeminiGenerateContentResponse.candidates.safetyRatings.severityScore"
|
|
2441
2489
|
},
|
|
2490
|
+
{
|
|
2491
|
+
path: "response.googleGeminiGenerateContentResponse.promptFeedback.safetyRatings.probabilityScore"
|
|
2492
|
+
},
|
|
2493
|
+
{
|
|
2494
|
+
path: "response.googleGeminiGenerateContentResponse.promptFeedback.safetyRatings.severityScore"
|
|
2495
|
+
},
|
|
2442
2496
|
{
|
|
2443
2497
|
path: "response.googleGenerateImageResponse.predictions.safetyAttributes.scores",
|
|
2444
2498
|
isRepeated: true
|
|
@@ -3144,7 +3198,38 @@ function editImage(payload) {
|
|
|
3144
3198
|
{ path: "replicateEditImageResponse.metrics.predictTime" },
|
|
3145
3199
|
{ path: "replicateEditImageResponse.metrics.totalTime" },
|
|
3146
3200
|
{ path: "replicateExtractFromImageResponse.metrics.extractTime" },
|
|
3147
|
-
{ path: "replicateExtractFromImageResponse.metrics.totalTime" }
|
|
3201
|
+
{ path: "replicateExtractFromImageResponse.metrics.totalTime" },
|
|
3202
|
+
{ path: "googleDetectTextResponse.textAnnotations.confidence" },
|
|
3203
|
+
{
|
|
3204
|
+
path: "googleDetectTextResponse.fullTextAnnotation.pages.confidence"
|
|
3205
|
+
},
|
|
3206
|
+
{
|
|
3207
|
+
path: "googleDetectTextResponse.fullTextAnnotation.pages.property.detectedLanguages.confidence"
|
|
3208
|
+
},
|
|
3209
|
+
{
|
|
3210
|
+
path: "googleDetectTextResponse.fullTextAnnotation.pages.blocks.confidence"
|
|
3211
|
+
},
|
|
3212
|
+
{
|
|
3213
|
+
path: "googleDetectTextResponse.fullTextAnnotation.pages.blocks.property.detectedLanguages.confidence"
|
|
3214
|
+
},
|
|
3215
|
+
{
|
|
3216
|
+
path: "googleDetectTextResponse.fullTextAnnotation.pages.blocks.paragraphs.confidence"
|
|
3217
|
+
},
|
|
3218
|
+
{
|
|
3219
|
+
path: "googleDetectTextResponse.fullTextAnnotation.pages.blocks.paragraphs.property.detectedLanguages.confidence"
|
|
3220
|
+
},
|
|
3221
|
+
{
|
|
3222
|
+
path: "googleDetectTextResponse.fullTextAnnotation.pages.blocks.paragraphs.words.confidence"
|
|
3223
|
+
},
|
|
3224
|
+
{
|
|
3225
|
+
path: "googleDetectTextResponse.fullTextAnnotation.pages.blocks.paragraphs.words.property.detectedLanguages.confidence"
|
|
3226
|
+
},
|
|
3227
|
+
{
|
|
3228
|
+
path: "googleDetectTextResponse.fullTextAnnotation.pages.blocks.paragraphs.words.symbols.confidence"
|
|
3229
|
+
},
|
|
3230
|
+
{
|
|
3231
|
+
path: "googleDetectTextResponse.fullTextAnnotation.pages.blocks.paragraphs.words.symbols.property.detectedLanguages.confidence"
|
|
3232
|
+
}
|
|
3148
3233
|
]
|
|
3149
3234
|
}
|
|
3150
3235
|
])
|
|
@@ -3277,6 +3362,8 @@ var GoogleproxyV1Model = /* @__PURE__ */ ((GoogleproxyV1Model2) => {
|
|
|
3277
3362
|
GoogleproxyV1Model2["GEMINI_3_0_PRO_IMAGE"] = "GEMINI_3_0_PRO_IMAGE";
|
|
3278
3363
|
GoogleproxyV1Model2["GEMINI_3_0_FLASH"] = "GEMINI_3_0_FLASH";
|
|
3279
3364
|
GoogleproxyV1Model2["GEMINI_3_1_PRO"] = "GEMINI_3_1_PRO";
|
|
3365
|
+
GoogleproxyV1Model2["GEMINI_3_1_FLASH_IMAGE"] = "GEMINI_3_1_FLASH_IMAGE";
|
|
3366
|
+
GoogleproxyV1Model2["GEMINI_3_1_FLASH_LITE"] = "GEMINI_3_1_FLASH_LITE";
|
|
3280
3367
|
return GoogleproxyV1Model2;
|
|
3281
3368
|
})(GoogleproxyV1Model || {});
|
|
3282
3369
|
var ContentRole = /* @__PURE__ */ ((ContentRole2) => {
|
|
@@ -3891,6 +3978,7 @@ var FinishReason = /* @__PURE__ */ ((FinishReason2) => {
|
|
|
3891
3978
|
FinishReason2["SPII"] = "SPII";
|
|
3892
3979
|
FinishReason2["MALFORMED_FUNCTION_CALL"] = "MALFORMED_FUNCTION_CALL";
|
|
3893
3980
|
FinishReason2["IMAGE_SAFETY"] = "IMAGE_SAFETY";
|
|
3981
|
+
FinishReason2["MODEL_ARMOR"] = "MODEL_ARMOR";
|
|
3894
3982
|
FinishReason2["UNEXPECTED_TOOL_CALL"] = "UNEXPECTED_TOOL_CALL";
|
|
3895
3983
|
FinishReason2["TOO_MANY_TOOL_CALLS"] = "TOO_MANY_TOOL_CALLS";
|
|
3896
3984
|
FinishReason2["IMAGE_PROHIBITED_CONTENT"] = "IMAGE_PROHIBITED_CONTENT";
|
|
@@ -4845,7 +4933,8 @@ async function editImage2(options) {
|
|
|
4845
4933
|
stabilityAiEditRequest: options?.stabilityAiEditRequest,
|
|
4846
4934
|
replicateEditImageRequest: options?.replicateEditImageRequest,
|
|
4847
4935
|
recraftEditImageRequest: options?.recraftEditImageRequest,
|
|
4848
|
-
replicateExtractFromImageRequest: options?.replicateExtractFromImageRequest
|
|
4936
|
+
replicateExtractFromImageRequest: options?.replicateExtractFromImageRequest,
|
|
4937
|
+
googleDetectTextRequest: options?.googleDetectTextRequest
|
|
4849
4938
|
});
|
|
4850
4939
|
const reqOpts = editImage(payload);
|
|
4851
4940
|
sideEffects?.onSiteCall?.();
|
|
@@ -4865,7 +4954,8 @@ async function editImage2(options) {
|
|
|
4865
4954
|
stabilityAiEditRequest: "$[0].stabilityAiEditRequest",
|
|
4866
4955
|
replicateEditImageRequest: "$[0].replicateEditImageRequest",
|
|
4867
4956
|
recraftEditImageRequest: "$[0].recraftEditImageRequest",
|
|
4868
|
-
replicateExtractFromImageRequest: "$[0].replicateExtractFromImageRequest"
|
|
4957
|
+
replicateExtractFromImageRequest: "$[0].replicateExtractFromImageRequest",
|
|
4958
|
+
googleDetectTextRequest: "$[0].googleDetectTextRequest"
|
|
4869
4959
|
},
|
|
4870
4960
|
singleArgumentUnchanged: false
|
|
4871
4961
|
},
|