@openclaw/googlechat 2026.7.1-beta.1 → 2026.7.1-beta.4
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/dist/{actions-BaygKCqu.js → actions-BacnMHv0.js} +2 -2
- package/dist/api.js +2 -2
- package/dist/{approval-auth-BxSuKX1J.js → approval-auth-C_BVZZFA.js} +2 -2
- package/dist/{approval-handler.runtime-AQl0xUss.js → approval-handler.runtime-BnkufknT.js} +7 -5
- package/dist/{channel-BQMTDOKw.js → channel-_o671C-U.js} +9 -8
- package/dist/{channel-base-Qh87GFW_.js → channel-base-DJICAvKH.js} +7 -6
- package/dist/channel-plugin-api.js +1 -1
- package/dist/{channel.adapters-CFEUpRK6.js → channel.adapters-FEj7zUjh.js} +53 -3
- package/dist/{channel.runtime-BBH8WHto.js → channel.runtime-CYmt7Ybo.js} +2 -8
- package/dist/directory-contract-api.js +1 -1
- package/dist/setup-plugin-api.js +1 -1
- package/node_modules/gaxios/build/cjs/tsconfig.cjs.tsbuildinfo +1 -1
- package/node_modules/gaxios/build/esm/tsconfig.tsbuildinfo +1 -1
- package/node_modules/gaxios/package.json +7 -9
- package/node_modules/google-auth-library/build/src/auth/gdchclient.d.ts +47 -0
- package/node_modules/google-auth-library/build/src/auth/gdchclient.js +307 -0
- package/node_modules/google-auth-library/build/src/auth/googleauth.d.ts +5 -4
- package/node_modules/google-auth-library/build/src/auth/googleauth.js +18 -1
- package/node_modules/google-auth-library/build/src/index.d.ts +1 -0
- package/node_modules/google-auth-library/build/src/index.js +4 -1
- package/node_modules/google-auth-library/package.json +5 -7
- package/npm-shrinkwrap.json +11 -39
- package/package.json +6 -6
- package/node_modules/gcp-metadata/node_modules/gaxios/LICENSE +0 -202
- package/node_modules/gcp-metadata/node_modules/gaxios/README.md +0 -240
- package/node_modules/gcp-metadata/node_modules/gaxios/build/cjs/browser-test/browser-test-runner.d.ts +0 -1
- package/node_modules/gcp-metadata/node_modules/gaxios/build/cjs/browser-test/browser-test-runner.js +0 -109
- package/node_modules/gcp-metadata/node_modules/gaxios/build/cjs/browser-test/browser-test-runner.js.map +0 -1
- package/node_modules/gcp-metadata/node_modules/gaxios/build/cjs/browser-test/test.browser.d.ts +0 -1
- package/node_modules/gcp-metadata/node_modules/gaxios/build/cjs/browser-test/test.browser.js +0 -81
- package/node_modules/gcp-metadata/node_modules/gaxios/build/cjs/browser-test/test.browser.js.map +0 -1
- package/node_modules/gcp-metadata/node_modules/gaxios/build/cjs/src/common.d.ts +0 -329
- package/node_modules/gcp-metadata/node_modules/gaxios/build/cjs/src/common.js +0 -311
- package/node_modules/gcp-metadata/node_modules/gaxios/build/cjs/src/common.js.map +0 -1
- package/node_modules/gcp-metadata/node_modules/gaxios/build/cjs/src/gaxios.d.ts +0 -104
- package/node_modules/gcp-metadata/node_modules/gaxios/build/cjs/src/gaxios.js +0 -564
- package/node_modules/gcp-metadata/node_modules/gaxios/build/cjs/src/gaxios.js.map +0 -1
- package/node_modules/gcp-metadata/node_modules/gaxios/build/cjs/src/index.d.ts +0 -15
- package/node_modules/gcp-metadata/node_modules/gaxios/build/cjs/src/index.js +0 -48
- package/node_modules/gcp-metadata/node_modules/gaxios/build/cjs/src/index.js.map +0 -1
- package/node_modules/gcp-metadata/node_modules/gaxios/build/cjs/src/interceptor.d.ts +0 -25
- package/node_modules/gcp-metadata/node_modules/gaxios/build/cjs/src/interceptor.js +0 -22
- package/node_modules/gcp-metadata/node_modules/gaxios/build/cjs/src/interceptor.js.map +0 -1
- package/node_modules/gcp-metadata/node_modules/gaxios/build/cjs/src/retry.d.ts +0 -8
- package/node_modules/gcp-metadata/node_modules/gaxios/build/cjs/src/retry.js +0 -165
- package/node_modules/gcp-metadata/node_modules/gaxios/build/cjs/src/retry.js.map +0 -1
- package/node_modules/gcp-metadata/node_modules/gaxios/build/cjs/src/util.cjs +0 -16
- package/node_modules/gcp-metadata/node_modules/gaxios/build/cjs/src/util.cjs.map +0 -1
- package/node_modules/gcp-metadata/node_modules/gaxios/build/cjs/src/util.d.cts +0 -7
- package/node_modules/gcp-metadata/node_modules/gaxios/build/cjs/system-test/test.install.d.ts +0 -1
- package/node_modules/gcp-metadata/node_modules/gaxios/build/cjs/system-test/test.install.js +0 -128
- package/node_modules/gcp-metadata/node_modules/gaxios/build/cjs/system-test/test.install.js.map +0 -1
- package/node_modules/gcp-metadata/node_modules/gaxios/build/cjs/test/test.getch.d.ts +0 -1
- package/node_modules/gcp-metadata/node_modules/gaxios/build/cjs/test/test.getch.js +0 -1444
- package/node_modules/gcp-metadata/node_modules/gaxios/build/cjs/test/test.getch.js.map +0 -1
- package/node_modules/gcp-metadata/node_modules/gaxios/build/cjs/test/test.index.d.ts +0 -1
- package/node_modules/gcp-metadata/node_modules/gaxios/build/cjs/test/test.index.js +0 -61
- package/node_modules/gcp-metadata/node_modules/gaxios/build/cjs/test/test.index.js.map +0 -1
- package/node_modules/gcp-metadata/node_modules/gaxios/build/cjs/test/test.retry.d.ts +0 -1
- package/node_modules/gcp-metadata/node_modules/gaxios/build/cjs/test/test.retry.js +0 -367
- package/node_modules/gcp-metadata/node_modules/gaxios/build/cjs/test/test.retry.js.map +0 -1
- package/node_modules/gcp-metadata/node_modules/gaxios/build/cjs/tsconfig.cjs.tsbuildinfo +0 -1
- package/node_modules/gcp-metadata/node_modules/gaxios/build/esm/browser-test/browser-test-runner.d.ts +0 -1
- package/node_modules/gcp-metadata/node_modules/gaxios/build/esm/browser-test/browser-test-runner.js +0 -71
- package/node_modules/gcp-metadata/node_modules/gaxios/build/esm/browser-test/browser-test-runner.js.map +0 -1
- package/node_modules/gcp-metadata/node_modules/gaxios/build/esm/browser-test/test.browser.d.ts +0 -1
- package/node_modules/gcp-metadata/node_modules/gaxios/build/esm/browser-test/test.browser.js +0 -76
- package/node_modules/gcp-metadata/node_modules/gaxios/build/esm/browser-test/test.browser.js.map +0 -1
- package/node_modules/gcp-metadata/node_modules/gaxios/build/esm/package.json +0 -1
- package/node_modules/gcp-metadata/node_modules/gaxios/build/esm/src/common.d.ts +0 -329
- package/node_modules/gcp-metadata/node_modules/gaxios/build/esm/src/common.js +0 -303
- package/node_modules/gcp-metadata/node_modules/gaxios/build/esm/src/common.js.map +0 -1
- package/node_modules/gcp-metadata/node_modules/gaxios/build/esm/src/gaxios.d.ts +0 -104
- package/node_modules/gcp-metadata/node_modules/gaxios/build/esm/src/gaxios.js +0 -557
- package/node_modules/gcp-metadata/node_modules/gaxios/build/esm/src/gaxios.js.map +0 -1
- package/node_modules/gcp-metadata/node_modules/gaxios/build/esm/src/index.d.ts +0 -15
- package/node_modules/gcp-metadata/node_modules/gaxios/build/esm/src/index.js +0 -29
- package/node_modules/gcp-metadata/node_modules/gaxios/build/esm/src/index.js.map +0 -1
- package/node_modules/gcp-metadata/node_modules/gaxios/build/esm/src/interceptor.d.ts +0 -25
- package/node_modules/gcp-metadata/node_modules/gaxios/build/esm/src/interceptor.js +0 -18
- package/node_modules/gcp-metadata/node_modules/gaxios/build/esm/src/interceptor.js.map +0 -1
- package/node_modules/gcp-metadata/node_modules/gaxios/build/esm/src/retry.d.ts +0 -8
- package/node_modules/gcp-metadata/node_modules/gaxios/build/esm/src/retry.js +0 -162
- package/node_modules/gcp-metadata/node_modules/gaxios/build/esm/src/retry.js.map +0 -1
- package/node_modules/gcp-metadata/node_modules/gaxios/build/esm/src/util.cjs +0 -15
- package/node_modules/gcp-metadata/node_modules/gaxios/build/esm/src/util.cjs.map +0 -1
- package/node_modules/gcp-metadata/node_modules/gaxios/build/esm/src/util.d.cts +0 -7
- package/node_modules/gcp-metadata/node_modules/gaxios/build/esm/system-test/test.install.d.ts +0 -1
- package/node_modules/gcp-metadata/node_modules/gaxios/build/esm/system-test/test.install.js +0 -123
- package/node_modules/gcp-metadata/node_modules/gaxios/build/esm/system-test/test.install.js.map +0 -1
- package/node_modules/gcp-metadata/node_modules/gaxios/build/esm/test/test.getch.d.ts +0 -1
- package/node_modules/gcp-metadata/node_modules/gaxios/build/esm/test/test.getch.js +0 -1406
- package/node_modules/gcp-metadata/node_modules/gaxios/build/esm/test/test.getch.js.map +0 -1
- package/node_modules/gcp-metadata/node_modules/gaxios/build/esm/test/test.index.d.ts +0 -1
- package/node_modules/gcp-metadata/node_modules/gaxios/build/esm/test/test.index.js +0 -23
- package/node_modules/gcp-metadata/node_modules/gaxios/build/esm/test/test.index.js.map +0 -1
- package/node_modules/gcp-metadata/node_modules/gaxios/build/esm/test/test.retry.d.ts +0 -1
- package/node_modules/gcp-metadata/node_modules/gaxios/build/esm/test/test.retry.js +0 -362
- package/node_modules/gcp-metadata/node_modules/gaxios/build/esm/test/test.retry.js.map +0 -1
- package/node_modules/gcp-metadata/node_modules/gaxios/build/esm/tsconfig.tsbuildinfo +0 -1
- package/node_modules/gcp-metadata/node_modules/gaxios/package.json +0 -105
- package/node_modules/google-auth-library/node_modules/gaxios/LICENSE +0 -202
- package/node_modules/google-auth-library/node_modules/gaxios/README.md +0 -240
- package/node_modules/google-auth-library/node_modules/gaxios/build/cjs/browser-test/browser-test-runner.d.ts +0 -1
- package/node_modules/google-auth-library/node_modules/gaxios/build/cjs/browser-test/browser-test-runner.js +0 -109
- package/node_modules/google-auth-library/node_modules/gaxios/build/cjs/browser-test/browser-test-runner.js.map +0 -1
- package/node_modules/google-auth-library/node_modules/gaxios/build/cjs/browser-test/test.browser.d.ts +0 -1
- package/node_modules/google-auth-library/node_modules/gaxios/build/cjs/browser-test/test.browser.js +0 -81
- package/node_modules/google-auth-library/node_modules/gaxios/build/cjs/browser-test/test.browser.js.map +0 -1
- package/node_modules/google-auth-library/node_modules/gaxios/build/cjs/src/common.d.ts +0 -329
- package/node_modules/google-auth-library/node_modules/gaxios/build/cjs/src/common.js +0 -311
- package/node_modules/google-auth-library/node_modules/gaxios/build/cjs/src/common.js.map +0 -1
- package/node_modules/google-auth-library/node_modules/gaxios/build/cjs/src/gaxios.d.ts +0 -104
- package/node_modules/google-auth-library/node_modules/gaxios/build/cjs/src/gaxios.js +0 -564
- package/node_modules/google-auth-library/node_modules/gaxios/build/cjs/src/gaxios.js.map +0 -1
- package/node_modules/google-auth-library/node_modules/gaxios/build/cjs/src/index.d.ts +0 -15
- package/node_modules/google-auth-library/node_modules/gaxios/build/cjs/src/index.js +0 -48
- package/node_modules/google-auth-library/node_modules/gaxios/build/cjs/src/index.js.map +0 -1
- package/node_modules/google-auth-library/node_modules/gaxios/build/cjs/src/interceptor.d.ts +0 -25
- package/node_modules/google-auth-library/node_modules/gaxios/build/cjs/src/interceptor.js +0 -22
- package/node_modules/google-auth-library/node_modules/gaxios/build/cjs/src/interceptor.js.map +0 -1
- package/node_modules/google-auth-library/node_modules/gaxios/build/cjs/src/retry.d.ts +0 -8
- package/node_modules/google-auth-library/node_modules/gaxios/build/cjs/src/retry.js +0 -165
- package/node_modules/google-auth-library/node_modules/gaxios/build/cjs/src/retry.js.map +0 -1
- package/node_modules/google-auth-library/node_modules/gaxios/build/cjs/src/util.cjs +0 -16
- package/node_modules/google-auth-library/node_modules/gaxios/build/cjs/src/util.cjs.map +0 -1
- package/node_modules/google-auth-library/node_modules/gaxios/build/cjs/src/util.d.cts +0 -7
- package/node_modules/google-auth-library/node_modules/gaxios/build/cjs/system-test/test.install.d.ts +0 -1
- package/node_modules/google-auth-library/node_modules/gaxios/build/cjs/system-test/test.install.js +0 -128
- package/node_modules/google-auth-library/node_modules/gaxios/build/cjs/system-test/test.install.js.map +0 -1
- package/node_modules/google-auth-library/node_modules/gaxios/build/cjs/test/test.getch.d.ts +0 -1
- package/node_modules/google-auth-library/node_modules/gaxios/build/cjs/test/test.getch.js +0 -1444
- package/node_modules/google-auth-library/node_modules/gaxios/build/cjs/test/test.getch.js.map +0 -1
- package/node_modules/google-auth-library/node_modules/gaxios/build/cjs/test/test.index.d.ts +0 -1
- package/node_modules/google-auth-library/node_modules/gaxios/build/cjs/test/test.index.js +0 -61
- package/node_modules/google-auth-library/node_modules/gaxios/build/cjs/test/test.index.js.map +0 -1
- package/node_modules/google-auth-library/node_modules/gaxios/build/cjs/test/test.retry.d.ts +0 -1
- package/node_modules/google-auth-library/node_modules/gaxios/build/cjs/test/test.retry.js +0 -367
- package/node_modules/google-auth-library/node_modules/gaxios/build/cjs/test/test.retry.js.map +0 -1
- package/node_modules/google-auth-library/node_modules/gaxios/build/cjs/tsconfig.cjs.tsbuildinfo +0 -1
- package/node_modules/google-auth-library/node_modules/gaxios/build/esm/browser-test/browser-test-runner.d.ts +0 -1
- package/node_modules/google-auth-library/node_modules/gaxios/build/esm/browser-test/browser-test-runner.js +0 -71
- package/node_modules/google-auth-library/node_modules/gaxios/build/esm/browser-test/browser-test-runner.js.map +0 -1
- package/node_modules/google-auth-library/node_modules/gaxios/build/esm/browser-test/test.browser.d.ts +0 -1
- package/node_modules/google-auth-library/node_modules/gaxios/build/esm/browser-test/test.browser.js +0 -76
- package/node_modules/google-auth-library/node_modules/gaxios/build/esm/browser-test/test.browser.js.map +0 -1
- package/node_modules/google-auth-library/node_modules/gaxios/build/esm/package.json +0 -1
- package/node_modules/google-auth-library/node_modules/gaxios/build/esm/src/common.d.ts +0 -329
- package/node_modules/google-auth-library/node_modules/gaxios/build/esm/src/common.js +0 -303
- package/node_modules/google-auth-library/node_modules/gaxios/build/esm/src/common.js.map +0 -1
- package/node_modules/google-auth-library/node_modules/gaxios/build/esm/src/gaxios.d.ts +0 -104
- package/node_modules/google-auth-library/node_modules/gaxios/build/esm/src/gaxios.js +0 -557
- package/node_modules/google-auth-library/node_modules/gaxios/build/esm/src/gaxios.js.map +0 -1
- package/node_modules/google-auth-library/node_modules/gaxios/build/esm/src/index.d.ts +0 -15
- package/node_modules/google-auth-library/node_modules/gaxios/build/esm/src/index.js +0 -29
- package/node_modules/google-auth-library/node_modules/gaxios/build/esm/src/index.js.map +0 -1
- package/node_modules/google-auth-library/node_modules/gaxios/build/esm/src/interceptor.d.ts +0 -25
- package/node_modules/google-auth-library/node_modules/gaxios/build/esm/src/interceptor.js +0 -18
- package/node_modules/google-auth-library/node_modules/gaxios/build/esm/src/interceptor.js.map +0 -1
- package/node_modules/google-auth-library/node_modules/gaxios/build/esm/src/retry.d.ts +0 -8
- package/node_modules/google-auth-library/node_modules/gaxios/build/esm/src/retry.js +0 -162
- package/node_modules/google-auth-library/node_modules/gaxios/build/esm/src/retry.js.map +0 -1
- package/node_modules/google-auth-library/node_modules/gaxios/build/esm/src/util.cjs +0 -15
- package/node_modules/google-auth-library/node_modules/gaxios/build/esm/src/util.cjs.map +0 -1
- package/node_modules/google-auth-library/node_modules/gaxios/build/esm/src/util.d.cts +0 -7
- package/node_modules/google-auth-library/node_modules/gaxios/build/esm/system-test/test.install.d.ts +0 -1
- package/node_modules/google-auth-library/node_modules/gaxios/build/esm/system-test/test.install.js +0 -123
- package/node_modules/google-auth-library/node_modules/gaxios/build/esm/system-test/test.install.js.map +0 -1
- package/node_modules/google-auth-library/node_modules/gaxios/build/esm/test/test.getch.d.ts +0 -1
- package/node_modules/google-auth-library/node_modules/gaxios/build/esm/test/test.getch.js +0 -1406
- package/node_modules/google-auth-library/node_modules/gaxios/build/esm/test/test.getch.js.map +0 -1
- package/node_modules/google-auth-library/node_modules/gaxios/build/esm/test/test.index.d.ts +0 -1
- package/node_modules/google-auth-library/node_modules/gaxios/build/esm/test/test.index.js +0 -23
- package/node_modules/google-auth-library/node_modules/gaxios/build/esm/test/test.index.js.map +0 -1
- package/node_modules/google-auth-library/node_modules/gaxios/build/esm/test/test.retry.d.ts +0 -1
- package/node_modules/google-auth-library/node_modules/gaxios/build/esm/test/test.retry.js +0 -362
- package/node_modules/google-auth-library/node_modules/gaxios/build/esm/test/test.retry.js.map +0 -1
- package/node_modules/google-auth-library/node_modules/gaxios/build/esm/tsconfig.tsbuildinfo +0 -1
- package/node_modules/google-auth-library/node_modules/gaxios/package.json +0 -105
|
@@ -0,0 +1,307 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Copyright 2026 Google LLC
|
|
3
|
+
//
|
|
4
|
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
// you may not use this file except in compliance with the License.
|
|
6
|
+
// You may obtain a copy of the License at
|
|
7
|
+
//
|
|
8
|
+
// http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
//
|
|
10
|
+
// Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
// See the License for the specific language governing permissions and
|
|
14
|
+
// limitations under the License.
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.GdchClient = exports.GDCH_SERVICE_ACCOUNT_TYPE = void 0;
|
|
17
|
+
const crypto = require("crypto");
|
|
18
|
+
const fs = require("fs");
|
|
19
|
+
const https = require("https");
|
|
20
|
+
const oauth2client_1 = require("./oauth2client");
|
|
21
|
+
const DEFAULT_LIFETIME_IN_SECONDS = 3600;
|
|
22
|
+
exports.GDCH_SERVICE_ACCOUNT_TYPE = 'gdch_service_account';
|
|
23
|
+
class GdchClient extends oauth2client_1.OAuth2Client {
|
|
24
|
+
projectId;
|
|
25
|
+
privateKeyId;
|
|
26
|
+
privateKey;
|
|
27
|
+
serviceIdentityName;
|
|
28
|
+
tokenServerUri;
|
|
29
|
+
caCertPath;
|
|
30
|
+
apiAudience;
|
|
31
|
+
lifetime;
|
|
32
|
+
gdchOptions;
|
|
33
|
+
caAgentPromise;
|
|
34
|
+
cachedCaCertPath;
|
|
35
|
+
lastCaCertReadTime = 0;
|
|
36
|
+
CA_CERT_TTL_MS = 5 * 60 * 1000;
|
|
37
|
+
constructor(options = {}) {
|
|
38
|
+
super(options);
|
|
39
|
+
this.gdchOptions = options;
|
|
40
|
+
this.projectId = options.projectId || undefined;
|
|
41
|
+
this.privateKeyId = options.privateKeyId;
|
|
42
|
+
this.privateKey = options.privateKey;
|
|
43
|
+
this.serviceIdentityName = options.serviceIdentityName;
|
|
44
|
+
this.tokenServerUri = options.tokenServerUri;
|
|
45
|
+
this.caCertPath = options.caCertPath;
|
|
46
|
+
this.apiAudience = options.apiAudience;
|
|
47
|
+
this.lifetime = options.lifetime || DEFAULT_LIFETIME_IN_SECONDS;
|
|
48
|
+
// Start with an expired refresh token, which will automatically be
|
|
49
|
+
// refreshed before the first API call is made.
|
|
50
|
+
this.credentials = { refresh_token: 'gdch-placeholder', expiry_date: 1 };
|
|
51
|
+
}
|
|
52
|
+
createWithGdchAudience(apiAudience) {
|
|
53
|
+
if (!apiAudience) {
|
|
54
|
+
throw new Error('Audience cannot be null or empty for GDCH service account credentials.');
|
|
55
|
+
}
|
|
56
|
+
return new GdchClient({
|
|
57
|
+
...this.gdchOptions,
|
|
58
|
+
projectId: this.projectId,
|
|
59
|
+
privateKeyId: this.privateKeyId,
|
|
60
|
+
privateKey: this.privateKey,
|
|
61
|
+
serviceIdentityName: this.serviceIdentityName,
|
|
62
|
+
tokenServerUri: this.tokenServerUri,
|
|
63
|
+
caCertPath: this.caCertPath,
|
|
64
|
+
lifetime: this.lifetime,
|
|
65
|
+
apiAudience,
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
fromJSON(json) {
|
|
69
|
+
if (!json) {
|
|
70
|
+
throw new Error('Must pass in a JSON object containing the GDCH credentials settings.');
|
|
71
|
+
}
|
|
72
|
+
if (json.type !== exports.GDCH_SERVICE_ACCOUNT_TYPE) {
|
|
73
|
+
throw new Error(`The incoming JSON object does not have the "${exports.GDCH_SERVICE_ACCOUNT_TYPE}" type`);
|
|
74
|
+
}
|
|
75
|
+
if (json.format_version !== '1') {
|
|
76
|
+
throw new Error('Only format version 1 is supported.');
|
|
77
|
+
}
|
|
78
|
+
if (!json.project) {
|
|
79
|
+
throw new Error('The incoming JSON object does not contain a project field');
|
|
80
|
+
}
|
|
81
|
+
if (!json.private_key_id) {
|
|
82
|
+
throw new Error('The incoming JSON object does not contain a private_key_id field');
|
|
83
|
+
}
|
|
84
|
+
if (!json.private_key) {
|
|
85
|
+
throw new Error('The incoming JSON object does not contain a private_key field');
|
|
86
|
+
}
|
|
87
|
+
if (!json.name) {
|
|
88
|
+
throw new Error('The incoming JSON object does not contain a name field');
|
|
89
|
+
}
|
|
90
|
+
if (!json.token_uri) {
|
|
91
|
+
throw new Error('The incoming JSON object does not contain a token_uri field');
|
|
92
|
+
}
|
|
93
|
+
this.projectId = json.project;
|
|
94
|
+
this.privateKeyId = json.private_key_id;
|
|
95
|
+
this.privateKey = json.private_key;
|
|
96
|
+
this.serviceIdentityName = json.name;
|
|
97
|
+
this.tokenServerUri = json.token_uri;
|
|
98
|
+
this.caCertPath = json.ca_cert_path;
|
|
99
|
+
this.gdchOptions = {
|
|
100
|
+
...this.gdchOptions,
|
|
101
|
+
projectId: json.project,
|
|
102
|
+
privateKeyId: json.private_key_id,
|
|
103
|
+
privateKey: json.private_key,
|
|
104
|
+
serviceIdentityName: json.name,
|
|
105
|
+
tokenServerUri: json.token_uri,
|
|
106
|
+
caCertPath: json.ca_cert_path,
|
|
107
|
+
};
|
|
108
|
+
}
|
|
109
|
+
async refreshTokenNoCache() {
|
|
110
|
+
if (!this.apiAudience) {
|
|
111
|
+
throw new Error('Audience cannot be null or empty for GDCH service account credentials. ' +
|
|
112
|
+
'Specify the audience by calling createWithGdchAudience.');
|
|
113
|
+
}
|
|
114
|
+
if (!this.privateKey) {
|
|
115
|
+
throw new Error('Private key is not configured for GDCH credentials.');
|
|
116
|
+
}
|
|
117
|
+
if (!this.privateKeyId) {
|
|
118
|
+
throw new Error('Private key ID is not configured for GDCH credentials.');
|
|
119
|
+
}
|
|
120
|
+
if (!this.projectId) {
|
|
121
|
+
throw new Error('Project is not configured for GDCH credentials.');
|
|
122
|
+
}
|
|
123
|
+
if (!this.serviceIdentityName) {
|
|
124
|
+
throw new Error('Service identity name is not configured for GDCH credentials.');
|
|
125
|
+
}
|
|
126
|
+
if (!this.tokenServerUri) {
|
|
127
|
+
throw new Error('Token server URI is not configured for GDCH credentials.');
|
|
128
|
+
}
|
|
129
|
+
const assertion = this.createAssertion();
|
|
130
|
+
const data = {
|
|
131
|
+
audience: this.apiAudience,
|
|
132
|
+
grant_type: 'urn:ietf:params:oauth:token-type:token-exchange',
|
|
133
|
+
requested_token_type: 'urn:ietf:params:oauth:token-type:access_token',
|
|
134
|
+
subject_token: assertion,
|
|
135
|
+
subject_token_type: 'urn:k8s:params:oauth:token-type:serviceaccount',
|
|
136
|
+
};
|
|
137
|
+
const requestOpts = {
|
|
138
|
+
url: this.tokenServerUri,
|
|
139
|
+
method: 'POST',
|
|
140
|
+
headers: {
|
|
141
|
+
'Content-Type': 'application/json',
|
|
142
|
+
},
|
|
143
|
+
data,
|
|
144
|
+
responseType: 'json',
|
|
145
|
+
timeout: 10000,
|
|
146
|
+
retry: true,
|
|
147
|
+
retryConfig: {
|
|
148
|
+
httpMethodsToRetry: ['POST'],
|
|
149
|
+
statusCodesToRetry: [[500, 599]],
|
|
150
|
+
noResponseRetries: 3,
|
|
151
|
+
},
|
|
152
|
+
};
|
|
153
|
+
if (this.caCertPath) {
|
|
154
|
+
requestOpts.agent = await this.getCaAgent();
|
|
155
|
+
}
|
|
156
|
+
try {
|
|
157
|
+
const res = await this.transporter.request(requestOpts);
|
|
158
|
+
const tokenResponse = res.data;
|
|
159
|
+
if (!tokenResponse.access_token) {
|
|
160
|
+
throw new Error('Token response did not contain an access_token.');
|
|
161
|
+
}
|
|
162
|
+
if (!tokenResponse.expires_in) {
|
|
163
|
+
throw new Error('Token response did not contain an expires_in field.');
|
|
164
|
+
}
|
|
165
|
+
const tokens = {
|
|
166
|
+
access_token: tokenResponse.access_token,
|
|
167
|
+
token_type: 'STS-Bearer',
|
|
168
|
+
expiry_date: Date.now() + tokenResponse.expires_in * 1000,
|
|
169
|
+
};
|
|
170
|
+
this.emit('tokens', tokens);
|
|
171
|
+
return { res, tokens };
|
|
172
|
+
}
|
|
173
|
+
catch (e) {
|
|
174
|
+
if (e && e.config && e.config.data) {
|
|
175
|
+
try {
|
|
176
|
+
if (typeof e.config.data === 'string') {
|
|
177
|
+
const parsedData = JSON.parse(e.config.data);
|
|
178
|
+
if (parsedData.subject_token) {
|
|
179
|
+
parsedData.subject_token = '***REDACTED***';
|
|
180
|
+
e.config.data = JSON.stringify(parsedData);
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
else if (typeof e.config.data === 'object' && e.config.data.subject_token) {
|
|
184
|
+
e.config.data.subject_token = '***REDACTED***';
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
catch { }
|
|
188
|
+
}
|
|
189
|
+
if (e instanceof Error) {
|
|
190
|
+
e.message = `Error getting access token for GDCH service account: ${e.message}, iss: ${this.serviceIdentityName}`;
|
|
191
|
+
}
|
|
192
|
+
throw e;
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
createAssertion() {
|
|
196
|
+
const header = {
|
|
197
|
+
alg: 'ES256',
|
|
198
|
+
typ: 'JWT',
|
|
199
|
+
kid: this.privateKeyId,
|
|
200
|
+
};
|
|
201
|
+
const issSub = `system:serviceaccount:${this.projectId}:${this.serviceIdentityName}`;
|
|
202
|
+
const currentTime = Math.floor(Date.now() / 1000);
|
|
203
|
+
const payload = {
|
|
204
|
+
iss: issSub,
|
|
205
|
+
sub: issSub,
|
|
206
|
+
iat: currentTime,
|
|
207
|
+
exp: currentTime + this.lifetime,
|
|
208
|
+
aud: this.tokenServerUri,
|
|
209
|
+
};
|
|
210
|
+
const encodedHeader = this.base64UrlEncode(JSON.stringify(header));
|
|
211
|
+
const encodedPayload = this.base64UrlEncode(JSON.stringify(payload));
|
|
212
|
+
const signingInput = `${encodedHeader}.${encodedPayload}`;
|
|
213
|
+
const signature = crypto.sign('sha256', Buffer.from(signingInput), {
|
|
214
|
+
key: this.privateKey,
|
|
215
|
+
dsaEncoding: 'ieee-p1363',
|
|
216
|
+
});
|
|
217
|
+
const encodedSignature = this.base64UrlEncode(signature);
|
|
218
|
+
return `${signingInput}.${encodedSignature}`;
|
|
219
|
+
}
|
|
220
|
+
async requestAsync(opts, retry = false) {
|
|
221
|
+
if (this.caCertPath && !opts.agent) {
|
|
222
|
+
const url = (opts.url || '').toString();
|
|
223
|
+
if (!url.includes('googleapis.com') && !url.includes('google.com')) {
|
|
224
|
+
opts.agent = await this.getCaAgent();
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
return super.requestAsync(opts, retry);
|
|
228
|
+
}
|
|
229
|
+
getCaAgent() {
|
|
230
|
+
if (!this.caCertPath) {
|
|
231
|
+
this.caAgentPromise = undefined;
|
|
232
|
+
this.cachedCaCertPath = undefined;
|
|
233
|
+
this.lastCaCertReadTime = 0;
|
|
234
|
+
return undefined;
|
|
235
|
+
}
|
|
236
|
+
const now = Date.now();
|
|
237
|
+
const isCacheExpired = now - this.lastCaCertReadTime > this.CA_CERT_TTL_MS;
|
|
238
|
+
if (this.caAgentPromise &&
|
|
239
|
+
this.caCertPath === this.cachedCaCertPath &&
|
|
240
|
+
!isCacheExpired) {
|
|
241
|
+
return this.caAgentPromise;
|
|
242
|
+
}
|
|
243
|
+
this.cachedCaCertPath = this.caCertPath;
|
|
244
|
+
this.lastCaCertReadTime = now;
|
|
245
|
+
const currentPath = this.caCertPath;
|
|
246
|
+
this.caAgentPromise = (async () => {
|
|
247
|
+
try {
|
|
248
|
+
const ca = await fs.promises.readFile(currentPath);
|
|
249
|
+
return new https.Agent({ ca });
|
|
250
|
+
}
|
|
251
|
+
catch (err) {
|
|
252
|
+
if (this.cachedCaCertPath === currentPath) {
|
|
253
|
+
this.caAgentPromise = undefined;
|
|
254
|
+
this.cachedCaCertPath = undefined;
|
|
255
|
+
this.lastCaCertReadTime = 0;
|
|
256
|
+
}
|
|
257
|
+
if (err instanceof Error) {
|
|
258
|
+
err.message = `Error reading certificate file from CA cert path, value '${currentPath}': ${err.message}`;
|
|
259
|
+
}
|
|
260
|
+
throw err;
|
|
261
|
+
}
|
|
262
|
+
})();
|
|
263
|
+
return this.caAgentPromise;
|
|
264
|
+
}
|
|
265
|
+
toJSON() {
|
|
266
|
+
return {
|
|
267
|
+
...this,
|
|
268
|
+
privateKey: this.privateKey ? '***REDACTED***' : undefined,
|
|
269
|
+
_clientSecret: this._clientSecret ? '***REDACTED***' : undefined,
|
|
270
|
+
apiKey: this.apiKey ? '***REDACTED***' : undefined,
|
|
271
|
+
gdchOptions: this.gdchOptions
|
|
272
|
+
? {
|
|
273
|
+
...this.gdchOptions,
|
|
274
|
+
privateKey: this.gdchOptions.privateKey ? '***REDACTED***' : undefined,
|
|
275
|
+
clientSecret: this.gdchOptions.clientSecret ? '***REDACTED***' : undefined,
|
|
276
|
+
client_secret: this.gdchOptions.client_secret ? '***REDACTED***' : undefined,
|
|
277
|
+
apiKey: this.gdchOptions.apiKey ? '***REDACTED***' : undefined,
|
|
278
|
+
credentials: this.gdchOptions.credentials
|
|
279
|
+
? {
|
|
280
|
+
...this.gdchOptions.credentials,
|
|
281
|
+
access_token: this.gdchOptions.credentials.access_token
|
|
282
|
+
? '***REDACTED***'
|
|
283
|
+
: undefined,
|
|
284
|
+
refresh_token: this.gdchOptions.credentials.refresh_token
|
|
285
|
+
? '***REDACTED***'
|
|
286
|
+
: undefined,
|
|
287
|
+
}
|
|
288
|
+
: undefined,
|
|
289
|
+
}
|
|
290
|
+
: undefined,
|
|
291
|
+
credentials: {
|
|
292
|
+
...this.credentials,
|
|
293
|
+
access_token: this.credentials?.access_token ? '***REDACTED***' : undefined,
|
|
294
|
+
refresh_token: this.credentials?.refresh_token ? '***REDACTED***' : undefined,
|
|
295
|
+
},
|
|
296
|
+
};
|
|
297
|
+
}
|
|
298
|
+
[Symbol.for('nodejs.util.inspect.custom')]() {
|
|
299
|
+
return this.toJSON();
|
|
300
|
+
}
|
|
301
|
+
base64UrlEncode(str) {
|
|
302
|
+
const buffer = typeof str === 'string' ? Buffer.from(str) : str;
|
|
303
|
+
return buffer.toString('base64url');
|
|
304
|
+
}
|
|
305
|
+
}
|
|
306
|
+
exports.GdchClient = GdchClient;
|
|
307
|
+
//# sourceMappingURL=gdchclient.js.map
|
|
@@ -10,12 +10,13 @@ import { ExternalAccountClientOptions } from './externalclient';
|
|
|
10
10
|
import { BaseExternalAccountClient } from './baseexternalclient';
|
|
11
11
|
import { AuthClient, AuthClientOptions } from './authclient';
|
|
12
12
|
import { ExternalAccountAuthorizedUserClient } from './externalAccountAuthorizedUserClient';
|
|
13
|
+
import { GdchClient, GdchCredentialsInput } from './gdchclient';
|
|
13
14
|
import { AnyAuthClient, AnyAuthClientConstructor } from '..';
|
|
14
15
|
/**
|
|
15
16
|
* Defines all types of explicit clients that are determined via ADC JSON
|
|
16
17
|
* config file.
|
|
17
18
|
*/
|
|
18
|
-
export type JSONClient = JWT | UserRefreshClient | BaseExternalAccountClient | ExternalAccountAuthorizedUserClient | Impersonated;
|
|
19
|
+
export type JSONClient = JWT | UserRefreshClient | BaseExternalAccountClient | ExternalAccountAuthorizedUserClient | Impersonated | GdchClient;
|
|
19
20
|
export interface ProjectIdCallback {
|
|
20
21
|
(err?: Error | null, projectId?: string | null): void;
|
|
21
22
|
}
|
|
@@ -127,7 +128,7 @@ export interface GoogleAuthOptions<T extends AuthClient = AnyAuthClient> {
|
|
|
127
128
|
*
|
|
128
129
|
* For more details, see https://cloud.google.com/docs/authentication/external/externally-sourced-credentials.
|
|
129
130
|
*/
|
|
130
|
-
credentials?: JWTInput | ExternalAccountClientOptions;
|
|
131
|
+
credentials?: JWTInput | ExternalAccountClientOptions | GdchCredentialsInput;
|
|
131
132
|
/**
|
|
132
133
|
* `AuthClientOptions` object passed to the constructor of the client
|
|
133
134
|
*/
|
|
@@ -168,7 +169,7 @@ export declare class GoogleAuth<T extends AuthClient = AuthClient> {
|
|
|
168
169
|
get isGCE(): boolean | undefined;
|
|
169
170
|
private _findProjectIdPromise?;
|
|
170
171
|
private _cachedProjectId?;
|
|
171
|
-
jsonContent: JWTInput | ExternalAccountClientOptions | null;
|
|
172
|
+
jsonContent: JWTInput | ExternalAccountClientOptions | GdchCredentialsInput | null;
|
|
172
173
|
apiKey: string | null;
|
|
173
174
|
cachedCredential: AnyAuthClient | T | null;
|
|
174
175
|
/**
|
|
@@ -335,7 +336,7 @@ export declare class GoogleAuth<T extends AuthClient = AuthClient> {
|
|
|
335
336
|
* @param options The JWT or UserRefresh options for the client
|
|
336
337
|
* @returns JWT or UserRefresh Client with data
|
|
337
338
|
*/
|
|
338
|
-
fromJSON(json: JWTInput | ImpersonatedJWTInput, options?: AuthClientOptions): JSONClient;
|
|
339
|
+
fromJSON(json: JWTInput | ImpersonatedJWTInput | GdchCredentialsInput | ExternalAccountClientOptions, options?: AuthClientOptions): JSONClient;
|
|
339
340
|
/**
|
|
340
341
|
* Return a JWT or UserRefreshClient from JavaScript object, caching both the
|
|
341
342
|
* object used to instantiate and the client.
|
|
@@ -31,6 +31,7 @@ const externalclient_1 = require("./externalclient");
|
|
|
31
31
|
const baseexternalclient_1 = require("./baseexternalclient");
|
|
32
32
|
const authclient_1 = require("./authclient");
|
|
33
33
|
const externalAccountAuthorizedUserClient_1 = require("./externalAccountAuthorizedUserClient");
|
|
34
|
+
const gdchclient_1 = require("./gdchclient");
|
|
34
35
|
const util_1 = require("../util");
|
|
35
36
|
exports.GoogleAuthExceptionMessages = {
|
|
36
37
|
API_KEY_WITH_CREDENTIALS: 'API Keys and Credentials are mutually exclusive authentication methods and cannot be used together.',
|
|
@@ -497,6 +498,10 @@ class GoogleAuth {
|
|
|
497
498
|
...options,
|
|
498
499
|
});
|
|
499
500
|
}
|
|
501
|
+
else if (json.type === gdchclient_1.GDCH_SERVICE_ACCOUNT_TYPE) {
|
|
502
|
+
client = new gdchclient_1.GdchClient(options);
|
|
503
|
+
client.fromJSON(json);
|
|
504
|
+
}
|
|
500
505
|
else {
|
|
501
506
|
options.scopes = this.scopes;
|
|
502
507
|
client = new jwtclient_1.JWT(options);
|
|
@@ -738,7 +743,19 @@ class GoogleAuth {
|
|
|
738
743
|
this.#pendingAuthClient =
|
|
739
744
|
this.#pendingAuthClient || this.#determineClient();
|
|
740
745
|
try {
|
|
741
|
-
|
|
746
|
+
const client = await this.#pendingAuthClient;
|
|
747
|
+
if (client instanceof gdchclient_1.GdchClient && !client.apiAudience) {
|
|
748
|
+
const opts = this.clientOptions;
|
|
749
|
+
const endpoint = opts.apiEndpoint || opts.servicePath;
|
|
750
|
+
if (endpoint) {
|
|
751
|
+
const scheme = endpoint.startsWith('http') ? '' : 'https://';
|
|
752
|
+
const formattedAudience = `${scheme}${endpoint}`.replace(/\/+$/, '');
|
|
753
|
+
const newClient = client.createWithGdchAudience(formattedAudience);
|
|
754
|
+
this.cachedCredential = newClient;
|
|
755
|
+
return newClient;
|
|
756
|
+
}
|
|
757
|
+
}
|
|
758
|
+
return client;
|
|
742
759
|
}
|
|
743
760
|
finally {
|
|
744
761
|
// reset the pending auth client in case it is changed later
|
|
@@ -24,6 +24,7 @@ export { CredentialAccessBoundary, DownscopedClient, } from './auth/downscopedcl
|
|
|
24
24
|
export { PluggableAuthClient, PluggableAuthClientOptions, ExecutableError, } from './auth/pluggable-auth-client';
|
|
25
25
|
export { EXTERNAL_ACCOUNT_AUTHORIZED_USER_TYPE, ExternalAccountAuthorizedUserClient, ExternalAccountAuthorizedUserClientOptions, } from './auth/externalAccountAuthorizedUserClient';
|
|
26
26
|
export { PassThroughClient } from './auth/passthrough';
|
|
27
|
+
export { GdchClient, GdchClientOptions, GdchCredentialsInput, GDCH_SERVICE_ACCOUNT_TYPE, } from './auth/gdchclient';
|
|
27
28
|
export * from './gtoken/googleToken';
|
|
28
29
|
type ALL_EXPORTS = (typeof import('./'))[keyof typeof import('./')];
|
|
29
30
|
/**
|
|
@@ -14,7 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.GoogleAuth = exports.auth = exports.PassThroughClient = exports.ExternalAccountAuthorizedUserClient = exports.EXTERNAL_ACCOUNT_AUTHORIZED_USER_TYPE = exports.ExecutableError = exports.PluggableAuthClient = exports.DownscopedClient = exports.BaseExternalAccountClient = exports.ExternalAccountClient = exports.IdentityPoolClient = exports.AwsRequestSigner = exports.AwsClient = exports.UserRefreshClient = exports.LoginTicket = exports.ClientAuthentication = exports.OAuth2Client = exports.CodeChallengeMethod = exports.Impersonated = exports.JWT = exports.JWTAccess = exports.IdTokenClient = exports.IAMAuth = exports.GCPEnv = exports.Compute = exports.DEFAULT_UNIVERSE = exports.AuthClient = exports.gaxios = exports.gcpMetadata = void 0;
|
|
17
|
+
exports.GoogleAuth = exports.auth = exports.GDCH_SERVICE_ACCOUNT_TYPE = exports.GdchClient = exports.PassThroughClient = exports.ExternalAccountAuthorizedUserClient = exports.EXTERNAL_ACCOUNT_AUTHORIZED_USER_TYPE = exports.ExecutableError = exports.PluggableAuthClient = exports.DownscopedClient = exports.BaseExternalAccountClient = exports.ExternalAccountClient = exports.IdentityPoolClient = exports.AwsRequestSigner = exports.AwsClient = exports.UserRefreshClient = exports.LoginTicket = exports.ClientAuthentication = exports.OAuth2Client = exports.CodeChallengeMethod = exports.Impersonated = exports.JWT = exports.JWTAccess = exports.IdTokenClient = exports.IAMAuth = exports.GCPEnv = exports.Compute = exports.DEFAULT_UNIVERSE = exports.AuthClient = exports.gaxios = exports.gcpMetadata = void 0;
|
|
18
18
|
// Copyright 2017 Google LLC
|
|
19
19
|
//
|
|
20
20
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
@@ -79,6 +79,9 @@ Object.defineProperty(exports, "EXTERNAL_ACCOUNT_AUTHORIZED_USER_TYPE", { enumer
|
|
|
79
79
|
Object.defineProperty(exports, "ExternalAccountAuthorizedUserClient", { enumerable: true, get: function () { return externalAccountAuthorizedUserClient_1.ExternalAccountAuthorizedUserClient; } });
|
|
80
80
|
var passthrough_1 = require("./auth/passthrough");
|
|
81
81
|
Object.defineProperty(exports, "PassThroughClient", { enumerable: true, get: function () { return passthrough_1.PassThroughClient; } });
|
|
82
|
+
var gdchclient_1 = require("./auth/gdchclient");
|
|
83
|
+
Object.defineProperty(exports, "GdchClient", { enumerable: true, get: function () { return gdchclient_1.GdchClient; } });
|
|
84
|
+
Object.defineProperty(exports, "GDCH_SERVICE_ACCOUNT_TYPE", { enumerable: true, get: function () { return gdchclient_1.GDCH_SERVICE_ACCOUNT_TYPE; } });
|
|
82
85
|
__exportStar(require("./gtoken/googleToken"), exports);
|
|
83
86
|
const auth = new googleauth_1.GoogleAuth();
|
|
84
87
|
exports.auth = auth;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "google-auth-library",
|
|
3
|
-
"version": "10.
|
|
3
|
+
"version": "10.9.0",
|
|
4
4
|
"author": "Google Inc.",
|
|
5
5
|
"description": "Google APIs Authentication Client Library for Node.js",
|
|
6
6
|
"engines": {
|
|
@@ -10,8 +10,8 @@
|
|
|
10
10
|
"types": "./build/src/index.d.ts",
|
|
11
11
|
"repository": {
|
|
12
12
|
"type": "git",
|
|
13
|
-
"directory": "packages/google-auth-library-nodejs",
|
|
14
|
-
"url": "https://github.com/googleapis/google-cloud-node
|
|
13
|
+
"directory": "core/packages/google-auth-library-nodejs",
|
|
14
|
+
"url": "https://github.com/googleapis/google-cloud-node.git"
|
|
15
15
|
},
|
|
16
16
|
"keywords": [
|
|
17
17
|
"google",
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
"nock": "^14.0.5",
|
|
59
59
|
"null-loader": "^4.0.1",
|
|
60
60
|
"puppeteer": "^24.0.0",
|
|
61
|
-
"sinon": "
|
|
61
|
+
"sinon": "21.0.3",
|
|
62
62
|
"ts-loader": "^9.5.2",
|
|
63
63
|
"typescript": "5.8.3",
|
|
64
64
|
"webpack": "^5.97.1",
|
|
@@ -83,10 +83,8 @@
|
|
|
83
83
|
"presystem-test": "npm run compile -- --sourceMap",
|
|
84
84
|
"webpack": "webpack",
|
|
85
85
|
"browser-test": "karma start",
|
|
86
|
-
"docs-test": "echo 'disabled until linkinator is fixed'",
|
|
87
|
-
"predocs-test": "npm run docs",
|
|
88
86
|
"prelint": "cd samples; npm link ../; npm install"
|
|
89
87
|
},
|
|
90
88
|
"license": "Apache-2.0",
|
|
91
|
-
"homepage": "https://github.com/googleapis/google-cloud-node
|
|
89
|
+
"homepage": "https://github.com/googleapis/google-cloud-node/tree/main/core/packages/google-auth-library-nodejs"
|
|
92
90
|
}
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openclaw/googlechat",
|
|
3
|
-
"version": "2026.7.1-beta.
|
|
3
|
+
"version": "2026.7.1-beta.4",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "@openclaw/googlechat",
|
|
9
|
-
"version": "2026.7.1-beta.
|
|
9
|
+
"version": "2026.7.1-beta.4",
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"gaxios": "7.1.
|
|
12
|
-
"google-auth-library": "10.
|
|
11
|
+
"gaxios": "7.1.5",
|
|
12
|
+
"google-auth-library": "10.9.0",
|
|
13
13
|
"zod": "4.4.3"
|
|
14
14
|
},
|
|
15
15
|
"peerDependencies": {
|
|
16
|
-
"openclaw": ">=2026.7.1-beta.
|
|
16
|
+
"openclaw": ">=2026.7.1-beta.4"
|
|
17
17
|
},
|
|
18
18
|
"peerDependenciesMeta": {
|
|
19
19
|
"openclaw": {
|
|
@@ -142,9 +142,9 @@
|
|
|
142
142
|
}
|
|
143
143
|
},
|
|
144
144
|
"node_modules/gaxios": {
|
|
145
|
-
"version": "7.1.
|
|
146
|
-
"resolved": "https://registry.npmjs.org/gaxios/-/gaxios-7.1.
|
|
147
|
-
"integrity": "sha512-
|
|
145
|
+
"version": "7.1.5",
|
|
146
|
+
"resolved": "https://registry.npmjs.org/gaxios/-/gaxios-7.1.5.tgz",
|
|
147
|
+
"integrity": "sha512-5FZy72Rh8LhtjmvDrKkI+lVhrsQrVKVsItxMoDm5mNQE+xR0WVIIs+jzPSJgBvKVsLi24fZhXJIsNI0bihDzFg==",
|
|
148
148
|
"license": "Apache-2.0",
|
|
149
149
|
"dependencies": {
|
|
150
150
|
"extend": "^3.0.2",
|
|
@@ -169,24 +169,10 @@
|
|
|
169
169
|
"node": ">=18"
|
|
170
170
|
}
|
|
171
171
|
},
|
|
172
|
-
"node_modules/gcp-metadata/node_modules/gaxios": {
|
|
173
|
-
"version": "7.1.5",
|
|
174
|
-
"resolved": "https://registry.npmjs.org/gaxios/-/gaxios-7.1.5.tgz",
|
|
175
|
-
"integrity": "sha512-5FZy72Rh8LhtjmvDrKkI+lVhrsQrVKVsItxMoDm5mNQE+xR0WVIIs+jzPSJgBvKVsLi24fZhXJIsNI0bihDzFg==",
|
|
176
|
-
"license": "Apache-2.0",
|
|
177
|
-
"dependencies": {
|
|
178
|
-
"extend": "^3.0.2",
|
|
179
|
-
"https-proxy-agent": "^7.0.1",
|
|
180
|
-
"node-fetch": "^3.3.2"
|
|
181
|
-
},
|
|
182
|
-
"engines": {
|
|
183
|
-
"node": ">=18"
|
|
184
|
-
}
|
|
185
|
-
},
|
|
186
172
|
"node_modules/google-auth-library": {
|
|
187
|
-
"version": "10.
|
|
188
|
-
"resolved": "https://registry.npmjs.org/google-auth-library/-/google-auth-library-10.
|
|
189
|
-
"integrity": "sha512-
|
|
173
|
+
"version": "10.9.0",
|
|
174
|
+
"resolved": "https://registry.npmjs.org/google-auth-library/-/google-auth-library-10.9.0.tgz",
|
|
175
|
+
"integrity": "sha512-xtvUqvINPhTaBm7nXqlYPcrMHJPm1lCNdSovxnKKhTm+4JsvQ+KGVYJViLoH9Yxu8w+T0Qv5HubzYT9BLrppJg==",
|
|
190
176
|
"license": "Apache-2.0",
|
|
191
177
|
"dependencies": {
|
|
192
178
|
"base64-js": "^1.3.0",
|
|
@@ -200,20 +186,6 @@
|
|
|
200
186
|
"node": ">=18"
|
|
201
187
|
}
|
|
202
188
|
},
|
|
203
|
-
"node_modules/google-auth-library/node_modules/gaxios": {
|
|
204
|
-
"version": "7.1.5",
|
|
205
|
-
"resolved": "https://registry.npmjs.org/gaxios/-/gaxios-7.1.5.tgz",
|
|
206
|
-
"integrity": "sha512-5FZy72Rh8LhtjmvDrKkI+lVhrsQrVKVsItxMoDm5mNQE+xR0WVIIs+jzPSJgBvKVsLi24fZhXJIsNI0bihDzFg==",
|
|
207
|
-
"license": "Apache-2.0",
|
|
208
|
-
"dependencies": {
|
|
209
|
-
"extend": "^3.0.2",
|
|
210
|
-
"https-proxy-agent": "^7.0.1",
|
|
211
|
-
"node-fetch": "^3.3.2"
|
|
212
|
-
},
|
|
213
|
-
"engines": {
|
|
214
|
-
"node": ">=18"
|
|
215
|
-
}
|
|
216
|
-
},
|
|
217
189
|
"node_modules/google-logging-utils": {
|
|
218
190
|
"version": "1.1.3",
|
|
219
191
|
"resolved": "https://registry.npmjs.org/google-logging-utils/-/google-logging-utils-1.1.3.tgz",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openclaw/googlechat",
|
|
3
|
-
"version": "2026.7.1-beta.
|
|
3
|
+
"version": "2026.7.1-beta.4",
|
|
4
4
|
"description": "OpenClaw Google Chat channel plugin for spaces and direct messages.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -8,12 +8,12 @@
|
|
|
8
8
|
},
|
|
9
9
|
"type": "module",
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"gaxios": "7.1.
|
|
12
|
-
"google-auth-library": "10.
|
|
11
|
+
"gaxios": "7.1.5",
|
|
12
|
+
"google-auth-library": "10.9.0",
|
|
13
13
|
"zod": "4.4.3"
|
|
14
14
|
},
|
|
15
15
|
"peerDependencies": {
|
|
16
|
-
"openclaw": ">=2026.7.1-beta.
|
|
16
|
+
"openclaw": ">=2026.7.1-beta.4"
|
|
17
17
|
},
|
|
18
18
|
"peerDependenciesMeta": {
|
|
19
19
|
"openclaw": {
|
|
@@ -71,10 +71,10 @@
|
|
|
71
71
|
"minHostVersion": ">=2026.4.10"
|
|
72
72
|
},
|
|
73
73
|
"compat": {
|
|
74
|
-
"pluginApi": ">=2026.7.1-beta.
|
|
74
|
+
"pluginApi": ">=2026.7.1-beta.4"
|
|
75
75
|
},
|
|
76
76
|
"build": {
|
|
77
|
-
"openclawVersion": "2026.7.1-beta.
|
|
77
|
+
"openclawVersion": "2026.7.1-beta.4"
|
|
78
78
|
},
|
|
79
79
|
"release": {
|
|
80
80
|
"publishToClawHub": true,
|