|
1 | | -diff --git a/dist/edge/index.d.mts b/dist/edge/index.d.mts |
2 | | -index a8fea73f05364d1b67b91d547bf76007275bea57..a4496464e0dc05eb514a6085c2e1d79849271886 100644 |
3 | | ---- a/dist/edge/index.d.mts |
4 | | -+++ b/dist/edge/index.d.mts |
5 | | -@@ -100,7 +100,7 @@ interface GoogleVertexProviderSettings extends GoogleVertexProviderSettings$1 { |
6 | | - * not provided, the Google Vertex provider will use environment variables to |
7 | | - * load the credentials. |
8 | | - */ |
9 | | -- googleCredentials?: GoogleCredentials; |
10 | | -+ googleCredentials?: GoogleCredentials | { apiKey: string }; |
11 | | - } |
12 | | - declare function createVertex(options?: GoogleVertexProviderSettings): GoogleVertexProvider; |
13 | | - /** |
14 | | -diff --git a/dist/edge/index.d.ts b/dist/edge/index.d.ts |
15 | | -index a8fea73f05364d1b67b91d547bf76007275bea57..a4496464e0dc05eb514a6085c2e1d79849271886 100644 |
16 | | ---- a/dist/edge/index.d.ts |
17 | | -+++ b/dist/edge/index.d.ts |
18 | | -@@ -100,7 +100,7 @@ interface GoogleVertexProviderSettings extends GoogleVertexProviderSettings$1 { |
19 | | - * not provided, the Google Vertex provider will use environment variables to |
20 | | - * load the credentials. |
21 | | - */ |
22 | | -- googleCredentials?: GoogleCredentials; |
23 | | -+ googleCredentials?: GoogleCredentials | { apiKey: string }; |
24 | | - } |
25 | | - declare function createVertex(options?: GoogleVertexProviderSettings): GoogleVertexProvider; |
26 | | - /** |
27 | 1 | diff --git a/dist/edge/index.js b/dist/edge/index.js |
28 | | -index 8d155c95c62b177e232811dab69e78ba02f406d0..988ad94b9fcf4cd1123f1bec1700b83d3e7e3e32 100644 |
| 2 | +index 079ab83ed4518113abdc847cc2f644a654a656ec..beffbc925b35aea015d27e936cf5208bcbcc9c8b 100644 |
29 | 3 | --- a/dist/edge/index.js |
30 | 4 | +++ b/dist/edge/index.js |
31 | | -@@ -457,6 +457,7 @@ var buildJwt = async (credentials) => { |
| 5 | +@@ -587,6 +587,7 @@ var buildJwt = async (credentials) => { |
32 | 6 | }; |
33 | 7 | async function generateAuthToken(credentials) { |
34 | 8 | try { |
35 | | -+ if(credentials.apiKey) return credentials.apiKey; |
| 9 | ++ if(credentials.cfApiKey) return credentials.cfApiKey; |
36 | 10 | const creds = credentials || await loadCredentials(); |
37 | 11 | const jwt = await buildJwt(creds); |
38 | 12 | const response = await fetch("https://oauth2.googleapis.com/token", { |
39 | 13 | diff --git a/dist/edge/index.mjs b/dist/edge/index.mjs |
40 | | -index 330c98783ca74cb3b87e22370889a21b7a11f5dd..0fe244acc9a7381eb1c78610f17f68f12d08881a 100644 |
| 14 | +index 89a0c0ef49b4beaa1d53fdff49f1dea93333dc8a..be6988f70fc17c058183c17da2fd9f1a9a9dee26 100644 |
41 | 15 | --- a/dist/edge/index.mjs |
42 | 16 | +++ b/dist/edge/index.mjs |
43 | | -@@ -455,6 +455,7 @@ var buildJwt = async (credentials) => { |
| 17 | +@@ -587,6 +587,7 @@ var buildJwt = async (credentials) => { |
44 | 18 | }; |
45 | 19 | async function generateAuthToken(credentials) { |
46 | 20 | try { |
47 | | -+ if(credentials.apiKey) return credentials.apiKey; |
| 21 | ++ if(credentials.cfApiKey) return credentials.cfApiKey; |
48 | 22 | const creds = credentials || await loadCredentials(); |
49 | 23 | const jwt = await buildJwt(creds); |
50 | 24 | const response = await fetch("https://oauth2.googleapis.com/token", { |
0 commit comments