firebase-functions 7.2.4 → 7.2.5
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.
|
@@ -184,4 +184,4 @@ function afterGenerateContent(optsOrCb, cb) {
|
|
|
184
184
|
}
|
|
185
185
|
|
|
186
186
|
//#endregion
|
|
187
|
-
export {
|
|
187
|
+
export { HttpsError, afterGenerateContent, afterGenerateEventType, beforeGenerateContent, beforeGenerateEventType, geminiV1Beta, rpcCodeMap, vertexV1Beta1 };
|
|
@@ -5,9 +5,9 @@ import { Expression } from "../../../params";
|
|
|
5
5
|
import { ResetValue } from "../../../common/options";
|
|
6
6
|
export { HttpsError };
|
|
7
7
|
export declare const rpcCodeMap: Record<FunctionsErrorCode, number>;
|
|
8
|
-
import { GenerateContentRequest as VertexV1Beta1GenerateContentRequest, GenerateContentResponse as VertexV1Beta1GenerateContentResponse } from "./types/vertex/v1beta1";
|
|
9
|
-
import { GenerateContentRequest as GeminiV1BetaGenerateContentRequest, GenerateContentResponse as GeminiV1BetaGenerateContentResponse } from "./types/gemini/v1beta";
|
|
10
|
-
export { VertexV1Beta1GenerateContentRequest, VertexV1Beta1GenerateContentResponse, GeminiV1BetaGenerateContentRequest, GeminiV1BetaGenerateContentResponse, };
|
|
8
|
+
import { type GenerateContentRequest as VertexV1Beta1GenerateContentRequest, type GenerateContentResponse as VertexV1Beta1GenerateContentResponse } from "./types/vertex/v1beta1";
|
|
9
|
+
import { type GenerateContentRequest as GeminiV1BetaGenerateContentRequest, type GenerateContentResponse as GeminiV1BetaGenerateContentResponse } from "./types/gemini/v1beta";
|
|
10
|
+
export { type VertexV1Beta1GenerateContentRequest, type VertexV1Beta1GenerateContentResponse, type GeminiV1BetaGenerateContentRequest, type GeminiV1BetaGenerateContentResponse, };
|
|
11
11
|
type MultipleLocationsIf<Allowed extends boolean> = Allowed extends true ? string[] : never;
|
|
12
12
|
export interface WebhookOptions<Regional extends boolean = false> extends Omit<EventHandlerOptions, "location"> {
|
|
13
13
|
location?: string | Expression<string> | MultipleLocationsIf<Regional> | ResetValue;
|
|
@@ -184,11 +184,7 @@ function afterGenerateContent(optsOrCb, cb) {
|
|
|
184
184
|
}
|
|
185
185
|
|
|
186
186
|
//#endregion
|
|
187
|
-
exports.GeminiV1BetaGenerateContentRequest = GeminiV1BetaGenerateContentRequest;
|
|
188
|
-
exports.GeminiV1BetaGenerateContentResponse = GeminiV1BetaGenerateContentResponse;
|
|
189
187
|
exports.HttpsError = require_common_providers_https.HttpsError;
|
|
190
|
-
exports.VertexV1Beta1GenerateContentRequest = VertexV1Beta1GenerateContentRequest;
|
|
191
|
-
exports.VertexV1Beta1GenerateContentResponse = VertexV1Beta1GenerateContentResponse;
|
|
192
188
|
exports.afterGenerateContent = afterGenerateContent;
|
|
193
189
|
exports.afterGenerateEventType = afterGenerateEventType;
|
|
194
190
|
exports.beforeGenerateContent = beforeGenerateContent;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "firebase-functions",
|
|
3
|
-
"version": "7.2.
|
|
3
|
+
"version": "7.2.5",
|
|
4
4
|
"description": "Firebase SDK for Cloud Functions",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"firebase",
|
|
@@ -123,6 +123,21 @@
|
|
|
123
123
|
"import": "./lib/esm/v2/providers/https.mjs",
|
|
124
124
|
"require": "./lib/v2/providers/https.js"
|
|
125
125
|
},
|
|
126
|
+
"./ai": {
|
|
127
|
+
"types": "./lib/v2/providers/ai/index.d.ts",
|
|
128
|
+
"import": "./lib/esm/v2/providers/ai/index.mjs",
|
|
129
|
+
"require": "./lib/v2/providers/ai/index.js"
|
|
130
|
+
},
|
|
131
|
+
"./ai/types/gemini/v1beta": {
|
|
132
|
+
"types": "./lib/v2/providers/ai/types/gemini/v1beta/index.d.ts",
|
|
133
|
+
"import": "./lib/esm/v2/providers/ai/types/gemini/v1beta/index.mjs",
|
|
134
|
+
"require": "./lib/v2/providers/ai/types/gemini/v1beta/index.js"
|
|
135
|
+
},
|
|
136
|
+
"./ai/types/vertex/v1beta1": {
|
|
137
|
+
"types": "./lib/v2/providers/ai/types/vertex/v1beta1/index.d.ts",
|
|
138
|
+
"import": "./lib/esm/v2/providers/ai/types/vertex/v1beta1/index.mjs",
|
|
139
|
+
"require": "./lib/v2/providers/ai/types/vertex/v1beta1/index.js"
|
|
140
|
+
},
|
|
126
141
|
"./pubsub": {
|
|
127
142
|
"types": "./lib/v2/providers/pubsub.d.ts",
|
|
128
143
|
"import": "./lib/esm/v2/providers/pubsub.mjs",
|
|
@@ -228,6 +243,21 @@
|
|
|
228
243
|
"import": "./lib/esm/v2/providers/https.mjs",
|
|
229
244
|
"require": "./lib/v2/providers/https.js"
|
|
230
245
|
},
|
|
246
|
+
"./v2/ai": {
|
|
247
|
+
"types": "./lib/v2/providers/ai/index.d.ts",
|
|
248
|
+
"import": "./lib/esm/v2/providers/ai/index.mjs",
|
|
249
|
+
"require": "./lib/v2/providers/ai/index.js"
|
|
250
|
+
},
|
|
251
|
+
"./v2/ai/types/gemini/v1beta": {
|
|
252
|
+
"types": "./lib/v2/providers/ai/types/gemini/v1beta/index.d.ts",
|
|
253
|
+
"import": "./lib/esm/v2/providers/ai/types/gemini/v1beta/index.mjs",
|
|
254
|
+
"require": "./lib/v2/providers/ai/types/gemini/v1beta/index.js"
|
|
255
|
+
},
|
|
256
|
+
"./v2/ai/types/vertex/v1beta1": {
|
|
257
|
+
"types": "./lib/v2/providers/ai/types/vertex/v1beta1/index.d.ts",
|
|
258
|
+
"import": "./lib/esm/v2/providers/ai/types/vertex/v1beta1/index.mjs",
|
|
259
|
+
"require": "./lib/v2/providers/ai/types/vertex/v1beta1/index.js"
|
|
260
|
+
},
|
|
231
261
|
"./v2/pubsub": {
|
|
232
262
|
"types": "./lib/v2/providers/pubsub.d.ts",
|
|
233
263
|
"import": "./lib/esm/v2/providers/pubsub.mjs",
|
|
@@ -367,6 +397,15 @@
|
|
|
367
397
|
"https": [
|
|
368
398
|
"lib/v2/providers/https"
|
|
369
399
|
],
|
|
400
|
+
"ai": [
|
|
401
|
+
"lib/v2/providers/ai"
|
|
402
|
+
],
|
|
403
|
+
"ai/types/gemini/v1beta": [
|
|
404
|
+
"lib/v2/providers/ai/types/gemini/v1beta"
|
|
405
|
+
],
|
|
406
|
+
"ai/types/vertex/v1beta1": [
|
|
407
|
+
"lib/v2/providers/ai/types/vertex/v1beta1"
|
|
408
|
+
],
|
|
370
409
|
"pubsub": [
|
|
371
410
|
"lib/v2/providers/pubsub"
|
|
372
411
|
],
|
|
@@ -457,6 +496,15 @@
|
|
|
457
496
|
"v2/https": [
|
|
458
497
|
"lib/v2/providers/https"
|
|
459
498
|
],
|
|
499
|
+
"v2/ai": [
|
|
500
|
+
"lib/v2/providers/ai"
|
|
501
|
+
],
|
|
502
|
+
"v2/ai/types/gemini/v1beta": [
|
|
503
|
+
"lib/v2/providers/ai/types/gemini/v1beta"
|
|
504
|
+
],
|
|
505
|
+
"v2/ai/types/vertex/v1beta1": [
|
|
506
|
+
"lib/v2/providers/ai/types/vertex/v1beta1"
|
|
507
|
+
],
|
|
460
508
|
"v2/pubsub": [
|
|
461
509
|
"lib/v2/providers/pubsub"
|
|
462
510
|
],
|