mcp-google-multi 6.0.0-beta.1 → 6.0.0-beta.3
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/README.md +5 -3
- package/dist/accounts.d.ts +22 -1
- package/dist/accounts.js +64 -16
- package/dist/api-probe.d.ts +5 -0
- package/dist/api-probe.js +23 -15
- package/dist/arg-normalize.d.ts +61 -4
- package/dist/arg-normalize.js +229 -4
- package/dist/arg-strict.d.ts +61 -0
- package/dist/arg-strict.js +193 -0
- package/dist/auth.d.ts +4 -3
- package/dist/auth.js +26 -85
- package/dist/boot-gates.d.ts +26 -0
- package/dist/boot-gates.js +38 -0
- package/dist/cimd-cache.d.ts +38 -0
- package/dist/cimd-cache.js +117 -0
- package/dist/client.d.ts +32 -2
- package/dist/client.js +0 -0
- package/dist/compose.d.ts +11 -0
- package/dist/compose.js +109 -0
- package/dist/config-file.d.ts +14 -0
- package/dist/config-file.js +41 -1
- package/dist/discover.js +38 -15
- package/dist/discovery-client.d.ts +11 -1
- package/dist/discovery-client.js +120 -18
- package/dist/doctor.d.ts +15 -3
- package/dist/doctor.js +151 -27
- package/dist/env-load.d.ts +11 -0
- package/dist/env-load.js +23 -1
- package/dist/executor.d.ts +3 -0
- package/dist/executor.js +16 -3
- package/dist/fanout.d.ts +9 -1
- package/dist/fanout.js +83 -14
- package/dist/fs-atomic.d.ts +11 -0
- package/dist/fs-atomic.js +219 -28
- package/dist/hint-provider.d.ts +129 -0
- package/dist/hint-provider.js +64 -0
- package/dist/http-transport.d.ts +73 -6
- package/dist/http-transport.js +350 -26
- package/dist/identity.d.ts +4 -1
- package/dist/identity.js +25 -6
- package/dist/index.js +142 -114
- package/dist/master-key.js +13 -5
- package/dist/mcp-token.d.ts +136 -19
- package/dist/mcp-token.js +569 -72
- package/dist/metrics-cli.d.ts +21 -0
- package/dist/metrics-cli.js +206 -0
- package/dist/metrics-tap.d.ts +12 -0
- package/dist/metrics-tap.js +95 -0
- package/dist/migrate-config.js +2 -2
- package/dist/oauth-as.d.ts +103 -3
- package/dist/oauth-as.js +374 -79
- package/dist/oauth-consent.d.ts +35 -10
- package/dist/oauth-consent.js +101 -39
- package/dist/outbound-allowlist.d.ts +34 -0
- package/dist/outbound-allowlist.js +111 -0
- package/dist/reauth-hint.d.ts +1 -1
- package/dist/reauth-hint.js +12 -8
- package/dist/registry-transfer.d.ts +5 -0
- package/dist/registry-transfer.js +65 -5
- package/dist/registry.d.ts +66 -2
- package/dist/registry.js +214 -18
- package/dist/scope-catalog.d.ts +11 -0
- package/dist/scope-catalog.js +39 -6
- package/dist/scope-observability.d.ts +8 -6
- package/dist/scope-observability.js +29 -13
- package/dist/services.d.ts +17 -4
- package/dist/services.js +77 -6
- package/dist/setup-prompt.d.ts +1 -1
- package/dist/setup-prompt.js +1 -1
- package/dist/ssrf-guard.d.ts +23 -9
- package/dist/ssrf-guard.js +101 -62
- package/dist/tenant-purge.d.ts +26 -0
- package/dist/tenant-purge.js +67 -0
- package/dist/token-store.d.ts +20 -2
- package/dist/token-store.js +0 -0
- package/dist/tools/_coerce.d.ts +5 -0
- package/dist/tools/_coerce.js +11 -0
- package/dist/tools/_errors.d.ts +34 -3
- package/dist/tools/_errors.js +346 -53
- package/dist/tools/_local-files.d.ts +9 -0
- package/dist/tools/_local-files.js +25 -2
- package/dist/tools/account-wizard.d.ts +34 -2
- package/dist/tools/account-wizard.js +223 -65
- package/dist/tools/accounts-tool.d.ts +7 -0
- package/dist/tools/accounts-tool.js +34 -18
- package/dist/tools/admin.d.ts +10 -1
- package/dist/tools/admin.js +21 -16
- package/dist/tools/analytics.d.ts +27 -0
- package/dist/tools/analytics.js +289 -0
- package/dist/tools/calendar.d.ts +9 -1
- package/dist/tools/calendar.js +93 -29
- package/dist/tools/chat.d.ts +10 -1
- package/dist/tools/chat.js +20 -12
- package/dist/tools/contacts.d.ts +2 -1
- package/dist/tools/contacts.js +74 -43
- package/dist/tools/docs.d.ts +2 -1
- package/dist/tools/docs.js +90 -84
- package/dist/tools/drive.d.ts +2 -1
- package/dist/tools/drive.js +197 -120
- package/dist/tools/forms.d.ts +10 -1
- package/dist/tools/forms.js +26 -19
- package/dist/tools/generated/_shared.d.ts +8 -1
- package/dist/tools/generated/_shared.js +18 -4
- package/dist/tools/generated/admin.d.ts +2 -1
- package/dist/tools/generated/admin.js +610 -479
- package/dist/tools/generated/analytics.d.ts +3 -0
- package/dist/tools/generated/analytics.js +981 -0
- package/dist/tools/generated/appsmarket.d.ts +2 -1
- package/dist/tools/generated/appsmarket.js +9 -9
- package/dist/tools/generated/calendar.d.ts +2 -1
- package/dist/tools/generated/calendar.js +83 -83
- package/dist/tools/generated/chat.d.ts +2 -1
- package/dist/tools/generated/chat.js +178 -151
- package/dist/tools/generated/classroom.d.ts +2 -1
- package/dist/tools/generated/classroom.js +467 -425
- package/dist/tools/generated/cloudidentity.d.ts +2 -1
- package/dist/tools/generated/cloudidentity.js +209 -201
- package/dist/tools/generated/cloudsearch.d.ts +2 -1
- package/dist/tools/generated/cloudsearch.js +139 -138
- package/dist/tools/generated/contacts.d.ts +2 -1
- package/dist/tools/generated/contacts.js +49 -40
- package/dist/tools/generated/drive.d.ts +2 -1
- package/dist/tools/generated/drive.js +133 -124
- package/dist/tools/generated/driveactivity.d.ts +2 -1
- package/dist/tools/generated/driveactivity.js +3 -3
- package/dist/tools/generated/drivelabels.d.ts +2 -1
- package/dist/tools/generated/drivelabels.js +113 -85
- package/dist/tools/generated/forms.d.ts +2 -1
- package/dist/tools/generated/forms.js +14 -14
- package/dist/tools/generated/gmail.d.ts +2 -1
- package/dist/tools/generated/gmail.js +253 -226
- package/dist/tools/generated/groupsmigration.d.ts +2 -1
- package/dist/tools/generated/groupsmigration.js +4 -4
- package/dist/tools/generated/groupssettings.d.ts +2 -1
- package/dist/tools/generated/groupssettings.js +10 -10
- package/dist/tools/generated/index.d.ts +2 -1
- package/dist/tools/generated/index.js +2 -0
- package/dist/tools/generated/keep.d.ts +2 -1
- package/dist/tools/generated/keep.js +23 -22
- package/dist/tools/generated/licensing.d.ts +2 -1
- package/dist/tools/generated/licensing.js +54 -38
- package/dist/tools/generated/meet.d.ts +2 -1
- package/dist/tools/generated/meet.js +41 -41
- package/dist/tools/generated/method-map.d.ts +2 -0
- package/dist/tools/generated/method-map.js +894 -0
- package/dist/tools/generated/postmaster.d.ts +2 -1
- package/dist/tools/generated/postmaster.js +12 -12
- package/dist/tools/generated/reseller.d.ts +2 -1
- package/dist/tools/generated/reseller.js +69 -63
- package/dist/tools/generated/script.d.ts +2 -1
- package/dist/tools/generated/script.js +62 -52
- package/dist/tools/generated/searchconsole.d.ts +2 -1
- package/dist/tools/generated/searchconsole.js +8 -6
- package/dist/tools/generated/sheets.d.ts +2 -1
- package/dist/tools/generated/sheets.js +25 -24
- package/dist/tools/generated/tasks.d.ts +2 -1
- package/dist/tools/generated/tasks.js +15 -9
- package/dist/tools/generated/vault.d.ts +2 -1
- package/dist/tools/generated/vault.js +132 -123
- package/dist/tools/generated/workspaceevents.d.ts +2 -1
- package/dist/tools/generated/workspaceevents.js +48 -47
- package/dist/tools/gmail.d.ts +12 -2
- package/dist/tools/gmail.js +95 -51
- package/dist/tools/google-api.d.ts +2 -3
- package/dist/tools/google-api.js +76 -33
- package/dist/tools/meet.d.ts +10 -1
- package/dist/tools/meet.js +18 -11
- package/dist/tools/searchconsole.d.ts +2 -1
- package/dist/tools/searchconsole.js +27 -23
- package/dist/tools/sheets.d.ts +2 -1
- package/dist/tools/sheets.js +72 -80
- package/dist/tools/slides.d.ts +10 -1
- package/dist/tools/slides.js +23 -16
- package/dist/tools/tasks.d.ts +2 -1
- package/dist/tools/tasks.js +35 -31
- package/dist/trim.d.ts +26 -0
- package/dist/trim.js +67 -0
- package/dist/usage-metrics.d.ts +178 -0
- package/dist/usage-metrics.js +621 -0
- package/dist/write-control.d.ts +27 -1
- package/dist/write-control.js +99 -12
- package/package.json +34 -3
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
import type { ToolRegistry } from '../../registry.js';
|
|
2
|
-
|
|
2
|
+
import { type ExecuteDeps } from './_shared.js';
|
|
3
|
+
export declare function registerDriveactivityGeneratedTools(registry: ToolRegistry, deps?: ExecuteDeps): void;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
import { coerceJson } from '../_coerce.js';
|
|
4
4
|
import { accountField, registerGeneratedTool } from './_shared.js';
|
|
5
|
-
export function registerDriveactivityGeneratedTools(registry) {
|
|
5
|
+
export function registerDriveactivityGeneratedTools(registry, deps = {}) {
|
|
6
6
|
// Interned method scope sets (shared across tools; see scope-observability).
|
|
7
7
|
const S_driveactivity_v2 = [
|
|
8
8
|
["https://www.googleapis.com/auth/drive.activity", "https://www.googleapis.com/auth/drive.activity.readonly"],
|
|
@@ -15,9 +15,9 @@ export function registerDriveactivityGeneratedTools(registry) {
|
|
|
15
15
|
params: [{ "field": "fields", "api": "fields", "location": "query" }],
|
|
16
16
|
hasBody: true,
|
|
17
17
|
shape: {
|
|
18
|
-
account: accountField(),
|
|
18
|
+
account: accountField(() => registry.accountAliases()),
|
|
19
19
|
body: coerceJson(z.record(z.string(), z.unknown())).describe("QueryDriveActivityRequest JSON request body. Top-level fields: ancestorName, consolidationStrategy, filter, itemName, pageSize, pageToken."),
|
|
20
20
|
fields: z.string().optional().describe('Response field mask.'),
|
|
21
21
|
},
|
|
22
|
-
});
|
|
22
|
+
}, deps);
|
|
23
23
|
}
|
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
import type { ToolRegistry } from '../../registry.js';
|
|
2
|
-
|
|
2
|
+
import { type ExecuteDeps } from './_shared.js';
|
|
3
|
+
export declare function registerDrivelabelsGeneratedTools(registry: ToolRegistry, deps?: ExecuteDeps): void;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
import { coerceBoolean, coerceJson } from '../_coerce.js';
|
|
4
4
|
import { accountField, registerGeneratedTool } from './_shared.js';
|
|
5
|
-
export function registerDrivelabelsGeneratedTools(registry) {
|
|
5
|
+
export function registerDrivelabelsGeneratedTools(registry, deps = {}) {
|
|
6
6
|
// Interned method scope sets (shared across tools; see scope-observability).
|
|
7
7
|
const S_drivelabels_v2 = [
|
|
8
8
|
["https://www.googleapis.com/auth/drive.admin.labels", "https://www.googleapis.com/auth/drive.labels"],
|
|
@@ -16,13 +16,13 @@ export function registerDrivelabelsGeneratedTools(registry) {
|
|
|
16
16
|
params: [{ "field": "languageCode", "api": "languageCode", "location": "query" }, { "field": "useAdminAccess", "api": "useAdminAccess", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
17
17
|
hasBody: true,
|
|
18
18
|
shape: {
|
|
19
|
-
account: accountField(),
|
|
19
|
+
account: accountField(() => registry.accountAliases()),
|
|
20
20
|
languageCode: z.string().describe("The BCP-47 language code to use for evaluating localized field labels in response. When not specified, values in the default configured language will be used.").optional(),
|
|
21
21
|
useAdminAccess: coerceBoolean.describe("Set to `true` in order to use the user's admin privileges. The server will verify the user is an admin before allowing access.").optional(),
|
|
22
22
|
body: coerceJson(z.record(z.string(), z.unknown())).describe("GoogleAppsDriveLabelsV2Label JSON request body. Top-level fields: appliedCapabilities, appliedLabelPolicy, createTime, creator, customer, disableTime, disabler, displayHints, enabledAppSettings, fields, id, labelType, +11 more."),
|
|
23
23
|
fields: z.string().optional().describe('Response field mask.'),
|
|
24
24
|
},
|
|
25
|
-
});
|
|
25
|
+
}, deps);
|
|
26
26
|
registerGeneratedTool(registry, {
|
|
27
27
|
name: "drivelabels_labels_delete",
|
|
28
28
|
cud: "delete",
|
|
@@ -31,13 +31,13 @@ export function registerDrivelabelsGeneratedTools(registry) {
|
|
|
31
31
|
params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "useAdminAccess", "api": "useAdminAccess", "location": "query" }, { "field": "writeControl.requiredRevisionId", "api": "writeControl.requiredRevisionId", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
32
32
|
hasBody: false,
|
|
33
33
|
shape: {
|
|
34
|
-
account: accountField(),
|
|
35
|
-
name: z.string().describe("Required. Label resource name."),
|
|
34
|
+
account: accountField(() => registry.accountAliases()),
|
|
35
|
+
name: z.string().min(1).describe("Required. Label resource name."),
|
|
36
36
|
useAdminAccess: coerceBoolean.describe("Set to `true` in order to use the user's admin credentials. The server will verify the user is an admin for the label before allowing access.").optional(),
|
|
37
37
|
"writeControl.requiredRevisionId": z.string().describe("The revision ID of the label that the write request will be applied to. If this isn't the latest revision of the label, the request will not be processed and will return a 400 Bad Request error.").optional(),
|
|
38
38
|
fields: z.string().optional().describe('Response field mask.'),
|
|
39
39
|
},
|
|
40
|
-
});
|
|
40
|
+
}, deps);
|
|
41
41
|
registerGeneratedTool(registry, {
|
|
42
42
|
name: "drivelabels_labels_delta",
|
|
43
43
|
cud: "create",
|
|
@@ -46,40 +46,40 @@ export function registerDrivelabelsGeneratedTools(registry) {
|
|
|
46
46
|
params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
47
47
|
hasBody: true,
|
|
48
48
|
shape: {
|
|
49
|
-
account: accountField(),
|
|
50
|
-
name: z.string().describe("Required. The resource name of the label to update."),
|
|
49
|
+
account: accountField(() => registry.accountAliases()),
|
|
50
|
+
name: z.string().min(1).describe("Required. The resource name of the label to update."),
|
|
51
51
|
body: coerceJson(z.record(z.string(), z.unknown())).describe("GoogleAppsDriveLabelsV2DeltaUpdateLabelRequest JSON request body. Top-level fields: languageCode, requests, useAdminAccess, view, writeControl."),
|
|
52
52
|
fields: z.string().optional().describe('Response field mask.'),
|
|
53
53
|
},
|
|
54
|
-
});
|
|
54
|
+
}, deps);
|
|
55
55
|
registerGeneratedTool(registry, {
|
|
56
56
|
name: "drivelabels_labels_disable",
|
|
57
|
-
cud: "
|
|
57
|
+
cud: "update",
|
|
58
58
|
description: "Disable a published label. For more information, see [Disable, enable, and delete a label](https://developers.google.com/workspace/drive/labels/guides/disable-d",
|
|
59
59
|
method: { id: "drivelabels.labels.disable", httpMethod: "POST", path: "v2/{+name}:disable", baseUrl: "https://drivelabels.googleapis.com/", requiredParams: ["name"], scopes: S_drivelabels_v2[0] },
|
|
60
60
|
params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
61
61
|
hasBody: true,
|
|
62
62
|
shape: {
|
|
63
|
-
account: accountField(),
|
|
64
|
-
name: z.string().describe("Required. Label resource name."),
|
|
63
|
+
account: accountField(() => registry.accountAliases()),
|
|
64
|
+
name: z.string().min(1).describe("Required. Label resource name."),
|
|
65
65
|
body: coerceJson(z.record(z.string(), z.unknown())).describe("GoogleAppsDriveLabelsV2DisableLabelRequest JSON request body. Top-level fields: disabledPolicy, languageCode, updateMask, useAdminAccess, writeControl."),
|
|
66
66
|
fields: z.string().optional().describe('Response field mask.'),
|
|
67
67
|
},
|
|
68
|
-
});
|
|
68
|
+
}, deps);
|
|
69
69
|
registerGeneratedTool(registry, {
|
|
70
70
|
name: "drivelabels_labels_enable",
|
|
71
|
-
cud: "
|
|
71
|
+
cud: "update",
|
|
72
72
|
description: "Enable a disabled label and restore it to its published state. For more information, see [Disable, enable, and delete a label](https://developers.google.com/wor",
|
|
73
73
|
method: { id: "drivelabels.labels.enable", httpMethod: "POST", path: "v2/{+name}:enable", baseUrl: "https://drivelabels.googleapis.com/", requiredParams: ["name"], scopes: S_drivelabels_v2[0] },
|
|
74
74
|
params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
75
75
|
hasBody: true,
|
|
76
76
|
shape: {
|
|
77
|
-
account: accountField(),
|
|
78
|
-
name: z.string().describe("Required. Label resource name."),
|
|
77
|
+
account: accountField(() => registry.accountAliases()),
|
|
78
|
+
name: z.string().min(1).describe("Required. Label resource name."),
|
|
79
79
|
body: coerceJson(z.record(z.string(), z.unknown())).describe("GoogleAppsDriveLabelsV2EnableLabelRequest JSON request body. Top-level fields: languageCode, useAdminAccess, writeControl."),
|
|
80
80
|
fields: z.string().optional().describe('Response field mask.'),
|
|
81
81
|
},
|
|
82
|
-
});
|
|
82
|
+
}, deps);
|
|
83
83
|
registerGeneratedTool(registry, {
|
|
84
84
|
name: "drivelabels_labels_get",
|
|
85
85
|
cud: "read",
|
|
@@ -88,14 +88,14 @@ export function registerDrivelabelsGeneratedTools(registry) {
|
|
|
88
88
|
params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "languageCode", "api": "languageCode", "location": "query" }, { "field": "useAdminAccess", "api": "useAdminAccess", "location": "query" }, { "field": "view", "api": "view", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
89
89
|
hasBody: false,
|
|
90
90
|
shape: {
|
|
91
|
-
account: accountField(),
|
|
92
|
-
name: z.string().describe("Required. Label resource name. May be any of: * `labels/{id}` (equivalent to labels/{id}@latest) * `labels/{id}@latest` * `labels/{id}@published` * `labels/{id}@{revision_id}`"),
|
|
91
|
+
account: accountField(() => registry.accountAliases()),
|
|
92
|
+
name: z.string().min(1).describe("Required. Label resource name. May be any of: * `labels/{id}` (equivalent to labels/{id}@latest) * `labels/{id}@latest` * `labels/{id}@published` * `labels/{id}@{revision_id}`"),
|
|
93
93
|
languageCode: z.string().describe("The BCP-47 language code to use for evaluating localized field labels. When not specified, values in the default configured language are used.").optional(),
|
|
94
94
|
useAdminAccess: coerceBoolean.describe("Set to `true` in order to use the user's admin credentials. The server verifies that the user is an admin for the label before allowing access.").optional(),
|
|
95
95
|
view: z.enum(["LABEL_VIEW_BASIC", "LABEL_VIEW_FULL"]).describe("When specified, only certain fields belonging to the indicated view are returned.").optional(),
|
|
96
96
|
fields: z.string().optional().describe('Response field mask.'),
|
|
97
97
|
},
|
|
98
|
-
});
|
|
98
|
+
}, deps);
|
|
99
99
|
registerGeneratedTool(registry, {
|
|
100
100
|
name: "drivelabels_labels_list",
|
|
101
101
|
cud: "read",
|
|
@@ -104,7 +104,7 @@ export function registerDrivelabelsGeneratedTools(registry) {
|
|
|
104
104
|
params: [{ "field": "customer", "api": "customer", "location": "query" }, { "field": "languageCode", "api": "languageCode", "location": "query" }, { "field": "minimumRole", "api": "minimumRole", "location": "query" }, { "field": "pageSize", "api": "pageSize", "location": "query" }, { "field": "pageToken", "api": "pageToken", "location": "query" }, { "field": "publishedOnly", "api": "publishedOnly", "location": "query" }, { "field": "useAdminAccess", "api": "useAdminAccess", "location": "query" }, { "field": "view", "api": "view", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
105
105
|
hasBody: false,
|
|
106
106
|
shape: {
|
|
107
|
-
account: accountField(),
|
|
107
|
+
account: accountField(() => registry.accountAliases()),
|
|
108
108
|
customer: z.string().describe("The customer to scope this list request to. For example: `customers/abcd1234`. If unset, will return all labels within the current customer.").optional(),
|
|
109
109
|
languageCode: z.string().describe("The BCP-47 language code to use for evaluating localized field labels. When not specified, values in the default configured language are used.").optional(),
|
|
110
110
|
minimumRole: z.enum(["LABEL_ROLE_UNSPECIFIED", "READER", "APPLIER", "ORGANIZER", "EDITOR"]).describe("Specifies the level of access the user must have on the returned labels. The minimum role a user must have on a label. Defaults to `READER`.").optional(),
|
|
@@ -115,7 +115,7 @@ export function registerDrivelabelsGeneratedTools(registry) {
|
|
|
115
115
|
view: z.enum(["LABEL_VIEW_BASIC", "LABEL_VIEW_FULL"]).describe("When specified, only certain fields belonging to the indicated view are returned.").optional(),
|
|
116
116
|
fields: z.string().optional().describe('Response field mask.'),
|
|
117
117
|
},
|
|
118
|
-
});
|
|
118
|
+
}, deps);
|
|
119
119
|
registerGeneratedTool(registry, {
|
|
120
120
|
name: "drivelabels_labels_locks_list",
|
|
121
121
|
cud: "read",
|
|
@@ -124,13 +124,13 @@ export function registerDrivelabelsGeneratedTools(registry) {
|
|
|
124
124
|
params: [{ "field": "parent", "api": "parent", "location": "path" }, { "field": "pageSize", "api": "pageSize", "location": "query" }, { "field": "pageToken", "api": "pageToken", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
125
125
|
hasBody: false,
|
|
126
126
|
shape: {
|
|
127
|
-
account: accountField(),
|
|
128
|
-
parent: z.string().describe("Required. Label on which locks are applied. Format: `labels/{label}`."),
|
|
127
|
+
account: accountField(() => registry.accountAliases()),
|
|
128
|
+
parent: z.string().min(1).describe("Required. Label on which locks are applied. Format: `labels/{label}`."),
|
|
129
129
|
pageSize: z.number().describe("Maximum number of locks to return per page. Default: 100. Max: 200.").optional(),
|
|
130
130
|
pageToken: z.string().describe("The token of the page to return.").optional(),
|
|
131
131
|
fields: z.string().optional().describe('Response field mask.'),
|
|
132
132
|
},
|
|
133
|
-
});
|
|
133
|
+
}, deps);
|
|
134
134
|
registerGeneratedTool(registry, {
|
|
135
135
|
name: "drivelabels_labels_permissions_batch_delete",
|
|
136
136
|
cud: "delete",
|
|
@@ -139,26 +139,26 @@ export function registerDrivelabelsGeneratedTools(registry) {
|
|
|
139
139
|
params: [{ "field": "parent", "api": "parent", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
140
140
|
hasBody: true,
|
|
141
141
|
shape: {
|
|
142
|
-
account: accountField(),
|
|
143
|
-
parent: z.string().describe("Required. The parent label resource name shared by all permissions being deleted. Format: `labels/{label}`. If this is set, the parent field in the `UpdateLabelPermissionRequest` messages must either "),
|
|
142
|
+
account: accountField(() => registry.accountAliases()),
|
|
143
|
+
parent: z.string().min(1).describe("Required. The parent label resource name shared by all permissions being deleted. Format: `labels/{label}`. If this is set, the parent field in the `UpdateLabelPermissionRequest` messages must either "),
|
|
144
144
|
body: coerceJson(z.record(z.string(), z.unknown())).describe("GoogleAppsDriveLabelsV2BatchDeleteLabelPermissionsRequest JSON request body. Top-level fields: requests, useAdminAccess."),
|
|
145
145
|
fields: z.string().optional().describe('Response field mask.'),
|
|
146
146
|
},
|
|
147
|
-
});
|
|
147
|
+
}, deps);
|
|
148
148
|
registerGeneratedTool(registry, {
|
|
149
149
|
name: "drivelabels_labels_permissions_batch_update",
|
|
150
|
-
cud: "
|
|
150
|
+
cud: "update",
|
|
151
151
|
description: "Updates label permissions. If a permission for the indicated principal doesn't exist, a label permission is created, otherwise the existing permission is update",
|
|
152
152
|
method: { id: "drivelabels.labels.permissions.batchUpdate", httpMethod: "POST", path: "v2/{+parent}/permissions:batchUpdate", baseUrl: "https://drivelabels.googleapis.com/", requiredParams: ["parent"], scopes: S_drivelabels_v2[0] },
|
|
153
153
|
params: [{ "field": "parent", "api": "parent", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
154
154
|
hasBody: true,
|
|
155
155
|
shape: {
|
|
156
|
-
account: accountField(),
|
|
157
|
-
parent: z.string().describe("Required. The parent label resource name shared by all permissions being updated. Format: `labels/{label}`. If this is set, the parent field in the `UpdateLabelPermissionRequest` messages must either "),
|
|
156
|
+
account: accountField(() => registry.accountAliases()),
|
|
157
|
+
parent: z.string().min(1).describe("Required. The parent label resource name shared by all permissions being updated. Format: `labels/{label}`. If this is set, the parent field in the `UpdateLabelPermissionRequest` messages must either "),
|
|
158
158
|
body: coerceJson(z.record(z.string(), z.unknown())).describe("GoogleAppsDriveLabelsV2BatchUpdateLabelPermissionsRequest JSON request body. Top-level fields: requests, useAdminAccess."),
|
|
159
159
|
fields: z.string().optional().describe('Response field mask.'),
|
|
160
160
|
},
|
|
161
|
-
});
|
|
161
|
+
}, deps);
|
|
162
162
|
registerGeneratedTool(registry, {
|
|
163
163
|
name: "drivelabels_labels_permissions_create",
|
|
164
164
|
cud: "create",
|
|
@@ -166,14 +166,20 @@ export function registerDrivelabelsGeneratedTools(registry) {
|
|
|
166
166
|
method: { id: "drivelabels.labels.permissions.create", httpMethod: "POST", path: "v2/{+parent}/permissions", baseUrl: "https://drivelabels.googleapis.com/", requiredParams: ["parent"], scopes: S_drivelabels_v2[0] },
|
|
167
167
|
params: [{ "field": "parent", "api": "parent", "location": "path" }, { "field": "useAdminAccess", "api": "useAdminAccess", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
168
168
|
hasBody: true,
|
|
169
|
+
bodyParams: [{ "field": "audience", "api": "audience" }, { "field": "email", "api": "email" }, { "field": "group", "api": "group" }, { "field": "name", "api": "name" }, { "field": "person", "api": "person" }, { "field": "role", "api": "role" }],
|
|
169
170
|
shape: {
|
|
170
|
-
account: accountField(),
|
|
171
|
-
parent: z.string().describe("Required. The parent label resource name on the label permission is created. Format: `labels/{label}`."),
|
|
171
|
+
account: accountField(() => registry.accountAliases()),
|
|
172
|
+
parent: z.string().min(1).describe("Required. The parent label resource name on the label permission is created. Format: `labels/{label}`."),
|
|
172
173
|
useAdminAccess: coerceBoolean.describe("Set to `true` in order to use the user's admin credentials. The server will verify the user is an admin for the label before allowing access.").optional(),
|
|
173
|
-
|
|
174
|
+
audience: z.string().describe("Audience to grant a role to. The magic value of `audiences/default` may be used to apply the role to the default audience in the context of the organization that owns the label.").optional(),
|
|
175
|
+
email: z.string().describe("Specifies the email address for a user or group principal. Not populated for audience principals. User and group permissions may only be inserted using an email address. On update requests, if email a").optional(),
|
|
176
|
+
group: z.string().describe("Group resource name.").optional(),
|
|
177
|
+
name: z.string().describe("Resource name of this permission.").optional(),
|
|
178
|
+
person: z.string().describe("Person resource name.").optional(),
|
|
179
|
+
role: z.enum(["LABEL_ROLE_UNSPECIFIED", "READER", "APPLIER", "ORGANIZER", "EDITOR"]).describe("The role the principal should have.").optional(),
|
|
174
180
|
fields: z.string().optional().describe('Response field mask.'),
|
|
175
181
|
},
|
|
176
|
-
});
|
|
182
|
+
}, deps);
|
|
177
183
|
registerGeneratedTool(registry, {
|
|
178
184
|
name: "drivelabels_labels_permissions_delete",
|
|
179
185
|
cud: "delete",
|
|
@@ -182,12 +188,12 @@ export function registerDrivelabelsGeneratedTools(registry) {
|
|
|
182
188
|
params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "useAdminAccess", "api": "useAdminAccess", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
183
189
|
hasBody: false,
|
|
184
190
|
shape: {
|
|
185
|
-
account: accountField(),
|
|
186
|
-
name: z.string().describe("Required. Label permission resource name."),
|
|
191
|
+
account: accountField(() => registry.accountAliases()),
|
|
192
|
+
name: z.string().min(1).describe("Required. Label permission resource name."),
|
|
187
193
|
useAdminAccess: coerceBoolean.describe("Set to `true` in order to use the user's admin credentials. The server will verify the user is an admin for the label before allowing access.").optional(),
|
|
188
194
|
fields: z.string().optional().describe('Response field mask.'),
|
|
189
195
|
},
|
|
190
|
-
});
|
|
196
|
+
}, deps);
|
|
191
197
|
registerGeneratedTool(registry, {
|
|
192
198
|
name: "drivelabels_labels_permissions_list",
|
|
193
199
|
cud: "read",
|
|
@@ -196,14 +202,14 @@ export function registerDrivelabelsGeneratedTools(registry) {
|
|
|
196
202
|
params: [{ "field": "parent", "api": "parent", "location": "path" }, { "field": "pageSize", "api": "pageSize", "location": "query" }, { "field": "pageToken", "api": "pageToken", "location": "query" }, { "field": "useAdminAccess", "api": "useAdminAccess", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
197
203
|
hasBody: false,
|
|
198
204
|
shape: {
|
|
199
|
-
account: accountField(),
|
|
200
|
-
parent: z.string().describe("Required. The parent label resource name on which label permissions are listed. Format: `labels/{label}`."),
|
|
205
|
+
account: accountField(() => registry.accountAliases()),
|
|
206
|
+
parent: z.string().min(1).describe("Required. The parent label resource name on which label permissions are listed. Format: `labels/{label}`."),
|
|
201
207
|
pageSize: z.number().describe("Maximum number of permissions to return per page. Default: 50. Max: 200.").optional(),
|
|
202
208
|
pageToken: z.string().describe("The token of the page to return.").optional(),
|
|
203
209
|
useAdminAccess: coerceBoolean.describe("Set to `true` in order to use the user's admin credentials. The server will verify the user is an admin for the label before allowing access.").optional(),
|
|
204
210
|
fields: z.string().optional().describe('Response field mask.'),
|
|
205
211
|
},
|
|
206
|
-
});
|
|
212
|
+
}, deps);
|
|
207
213
|
registerGeneratedTool(registry, {
|
|
208
214
|
name: "drivelabels_labels_publish",
|
|
209
215
|
cud: "update",
|
|
@@ -212,12 +218,12 @@ export function registerDrivelabelsGeneratedTools(registry) {
|
|
|
212
218
|
params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
213
219
|
hasBody: true,
|
|
214
220
|
shape: {
|
|
215
|
-
account: accountField(),
|
|
216
|
-
name: z.string().describe("Required. Label resource name."),
|
|
221
|
+
account: accountField(() => registry.accountAliases()),
|
|
222
|
+
name: z.string().min(1).describe("Required. Label resource name."),
|
|
217
223
|
body: coerceJson(z.record(z.string(), z.unknown())).describe("GoogleAppsDriveLabelsV2PublishLabelRequest JSON request body. Top-level fields: languageCode, useAdminAccess, writeControl."),
|
|
218
224
|
fields: z.string().optional().describe('Response field mask.'),
|
|
219
225
|
},
|
|
220
|
-
});
|
|
226
|
+
}, deps);
|
|
221
227
|
registerGeneratedTool(registry, {
|
|
222
228
|
name: "drivelabels_labels_revisions_locks_list",
|
|
223
229
|
cud: "read",
|
|
@@ -226,13 +232,13 @@ export function registerDrivelabelsGeneratedTools(registry) {
|
|
|
226
232
|
params: [{ "field": "parent", "api": "parent", "location": "path" }, { "field": "pageSize", "api": "pageSize", "location": "query" }, { "field": "pageToken", "api": "pageToken", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
227
233
|
hasBody: false,
|
|
228
234
|
shape: {
|
|
229
|
-
account: accountField(),
|
|
230
|
-
parent: z.string().describe("Required. Label on which locks are applied. Format: `labels/{label}`."),
|
|
235
|
+
account: accountField(() => registry.accountAliases()),
|
|
236
|
+
parent: z.string().min(1).describe("Required. Label on which locks are applied. Format: `labels/{label}`."),
|
|
231
237
|
pageSize: z.number().describe("Maximum number of locks to return per page. Default: 100. Max: 200.").optional(),
|
|
232
238
|
pageToken: z.string().describe("The token of the page to return.").optional(),
|
|
233
239
|
fields: z.string().optional().describe('Response field mask.'),
|
|
234
240
|
},
|
|
235
|
-
});
|
|
241
|
+
}, deps);
|
|
236
242
|
registerGeneratedTool(registry, {
|
|
237
243
|
name: "drivelabels_labels_revisions_permissions_batch_delete",
|
|
238
244
|
cud: "delete",
|
|
@@ -241,26 +247,26 @@ export function registerDrivelabelsGeneratedTools(registry) {
|
|
|
241
247
|
params: [{ "field": "parent", "api": "parent", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
242
248
|
hasBody: true,
|
|
243
249
|
shape: {
|
|
244
|
-
account: accountField(),
|
|
245
|
-
parent: z.string().describe("Required. The parent label resource name shared by all permissions being deleted. Format: `labels/{label}`. If this is set, the parent field in the `UpdateLabelPermissionRequest` messages must either "),
|
|
250
|
+
account: accountField(() => registry.accountAliases()),
|
|
251
|
+
parent: z.string().min(1).describe("Required. The parent label resource name shared by all permissions being deleted. Format: `labels/{label}`. If this is set, the parent field in the `UpdateLabelPermissionRequest` messages must either "),
|
|
246
252
|
body: coerceJson(z.record(z.string(), z.unknown())).describe("GoogleAppsDriveLabelsV2BatchDeleteLabelPermissionsRequest JSON request body. Top-level fields: requests, useAdminAccess."),
|
|
247
253
|
fields: z.string().optional().describe('Response field mask.'),
|
|
248
254
|
},
|
|
249
|
-
});
|
|
255
|
+
}, deps);
|
|
250
256
|
registerGeneratedTool(registry, {
|
|
251
257
|
name: "drivelabels_labels_revisions_permissions_batch_update",
|
|
252
|
-
cud: "
|
|
258
|
+
cud: "update",
|
|
253
259
|
description: "Updates label permissions. If a permission for the indicated principal doesn't exist, a label permission is created, otherwise the existing permission is update",
|
|
254
260
|
method: { id: "drivelabels.labels.revisions.permissions.batchUpdate", httpMethod: "POST", path: "v2/{+parent}/permissions:batchUpdate", baseUrl: "https://drivelabels.googleapis.com/", requiredParams: ["parent"], scopes: S_drivelabels_v2[0] },
|
|
255
261
|
params: [{ "field": "parent", "api": "parent", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
256
262
|
hasBody: true,
|
|
257
263
|
shape: {
|
|
258
|
-
account: accountField(),
|
|
259
|
-
parent: z.string().describe("Required. The parent label resource name shared by all permissions being updated. Format: `labels/{label}`. If this is set, the parent field in the `UpdateLabelPermissionRequest` messages must either "),
|
|
264
|
+
account: accountField(() => registry.accountAliases()),
|
|
265
|
+
parent: z.string().min(1).describe("Required. The parent label resource name shared by all permissions being updated. Format: `labels/{label}`. If this is set, the parent field in the `UpdateLabelPermissionRequest` messages must either "),
|
|
260
266
|
body: coerceJson(z.record(z.string(), z.unknown())).describe("GoogleAppsDriveLabelsV2BatchUpdateLabelPermissionsRequest JSON request body. Top-level fields: requests, useAdminAccess."),
|
|
261
267
|
fields: z.string().optional().describe('Response field mask.'),
|
|
262
268
|
},
|
|
263
|
-
});
|
|
269
|
+
}, deps);
|
|
264
270
|
registerGeneratedTool(registry, {
|
|
265
271
|
name: "drivelabels_labels_revisions_permissions_create",
|
|
266
272
|
cud: "create",
|
|
@@ -268,14 +274,20 @@ export function registerDrivelabelsGeneratedTools(registry) {
|
|
|
268
274
|
method: { id: "drivelabels.labels.revisions.permissions.create", httpMethod: "POST", path: "v2/{+parent}/permissions", baseUrl: "https://drivelabels.googleapis.com/", requiredParams: ["parent"], scopes: S_drivelabels_v2[0] },
|
|
269
275
|
params: [{ "field": "parent", "api": "parent", "location": "path" }, { "field": "useAdminAccess", "api": "useAdminAccess", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
270
276
|
hasBody: true,
|
|
277
|
+
bodyParams: [{ "field": "audience", "api": "audience" }, { "field": "email", "api": "email" }, { "field": "group", "api": "group" }, { "field": "name", "api": "name" }, { "field": "person", "api": "person" }, { "field": "role", "api": "role" }],
|
|
271
278
|
shape: {
|
|
272
|
-
account: accountField(),
|
|
273
|
-
parent: z.string().describe("Required. The parent label resource name on the label permission is created. Format: `labels/{label}`."),
|
|
279
|
+
account: accountField(() => registry.accountAliases()),
|
|
280
|
+
parent: z.string().min(1).describe("Required. The parent label resource name on the label permission is created. Format: `labels/{label}`."),
|
|
274
281
|
useAdminAccess: coerceBoolean.describe("Set to `true` in order to use the user's admin credentials. The server will verify the user is an admin for the label before allowing access.").optional(),
|
|
275
|
-
|
|
282
|
+
audience: z.string().describe("Audience to grant a role to. The magic value of `audiences/default` may be used to apply the role to the default audience in the context of the organization that owns the label.").optional(),
|
|
283
|
+
email: z.string().describe("Specifies the email address for a user or group principal. Not populated for audience principals. User and group permissions may only be inserted using an email address. On update requests, if email a").optional(),
|
|
284
|
+
group: z.string().describe("Group resource name.").optional(),
|
|
285
|
+
name: z.string().describe("Resource name of this permission.").optional(),
|
|
286
|
+
person: z.string().describe("Person resource name.").optional(),
|
|
287
|
+
role: z.enum(["LABEL_ROLE_UNSPECIFIED", "READER", "APPLIER", "ORGANIZER", "EDITOR"]).describe("The role the principal should have.").optional(),
|
|
276
288
|
fields: z.string().optional().describe('Response field mask.'),
|
|
277
289
|
},
|
|
278
|
-
});
|
|
290
|
+
}, deps);
|
|
279
291
|
registerGeneratedTool(registry, {
|
|
280
292
|
name: "drivelabels_labels_revisions_permissions_delete",
|
|
281
293
|
cud: "delete",
|
|
@@ -284,12 +296,12 @@ export function registerDrivelabelsGeneratedTools(registry) {
|
|
|
284
296
|
params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "useAdminAccess", "api": "useAdminAccess", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
285
297
|
hasBody: false,
|
|
286
298
|
shape: {
|
|
287
|
-
account: accountField(),
|
|
288
|
-
name: z.string().describe("Required. Label permission resource name."),
|
|
299
|
+
account: accountField(() => registry.accountAliases()),
|
|
300
|
+
name: z.string().min(1).describe("Required. Label permission resource name."),
|
|
289
301
|
useAdminAccess: coerceBoolean.describe("Set to `true` in order to use the user's admin credentials. The server will verify the user is an admin for the label before allowing access.").optional(),
|
|
290
302
|
fields: z.string().optional().describe('Response field mask.'),
|
|
291
303
|
},
|
|
292
|
-
});
|
|
304
|
+
}, deps);
|
|
293
305
|
registerGeneratedTool(registry, {
|
|
294
306
|
name: "drivelabels_labels_revisions_permissions_list",
|
|
295
307
|
cud: "read",
|
|
@@ -298,14 +310,14 @@ export function registerDrivelabelsGeneratedTools(registry) {
|
|
|
298
310
|
params: [{ "field": "parent", "api": "parent", "location": "path" }, { "field": "pageSize", "api": "pageSize", "location": "query" }, { "field": "pageToken", "api": "pageToken", "location": "query" }, { "field": "useAdminAccess", "api": "useAdminAccess", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
299
311
|
hasBody: false,
|
|
300
312
|
shape: {
|
|
301
|
-
account: accountField(),
|
|
302
|
-
parent: z.string().describe("Required. The parent label resource name on which label permissions are listed. Format: `labels/{label}`."),
|
|
313
|
+
account: accountField(() => registry.accountAliases()),
|
|
314
|
+
parent: z.string().min(1).describe("Required. The parent label resource name on which label permissions are listed. Format: `labels/{label}`."),
|
|
303
315
|
pageSize: z.number().describe("Maximum number of permissions to return per page. Default: 50. Max: 200.").optional(),
|
|
304
316
|
pageToken: z.string().describe("The token of the page to return.").optional(),
|
|
305
317
|
useAdminAccess: coerceBoolean.describe("Set to `true` in order to use the user's admin credentials. The server will verify the user is an admin for the label before allowing access.").optional(),
|
|
306
318
|
fields: z.string().optional().describe('Response field mask.'),
|
|
307
319
|
},
|
|
308
|
-
});
|
|
320
|
+
}, deps);
|
|
309
321
|
registerGeneratedTool(registry, {
|
|
310
322
|
name: "drivelabels_labels_revisions_update_permissions",
|
|
311
323
|
cud: "update",
|
|
@@ -313,14 +325,20 @@ export function registerDrivelabelsGeneratedTools(registry) {
|
|
|
313
325
|
method: { id: "drivelabels.labels.revisions.updatePermissions", httpMethod: "PATCH", path: "v2/{+parent}/permissions", baseUrl: "https://drivelabels.googleapis.com/", requiredParams: ["parent"], scopes: S_drivelabels_v2[0] },
|
|
314
326
|
params: [{ "field": "parent", "api": "parent", "location": "path" }, { "field": "useAdminAccess", "api": "useAdminAccess", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
315
327
|
hasBody: true,
|
|
328
|
+
bodyParams: [{ "field": "audience", "api": "audience" }, { "field": "email", "api": "email" }, { "field": "group", "api": "group" }, { "field": "name", "api": "name" }, { "field": "person", "api": "person" }, { "field": "role", "api": "role" }],
|
|
316
329
|
shape: {
|
|
317
|
-
account: accountField(),
|
|
318
|
-
parent: z.string().describe("Required. The parent label resource name."),
|
|
330
|
+
account: accountField(() => registry.accountAliases()),
|
|
331
|
+
parent: z.string().min(1).describe("Required. The parent label resource name."),
|
|
319
332
|
useAdminAccess: coerceBoolean.describe("Set to `true` in order to use the user's admin credentials. The server will verify the user is an admin for the label before allowing access.").optional(),
|
|
320
|
-
|
|
333
|
+
audience: z.string().describe("Audience to grant a role to. The magic value of `audiences/default` may be used to apply the role to the default audience in the context of the organization that owns the label.").optional(),
|
|
334
|
+
email: z.string().describe("Specifies the email address for a user or group principal. Not populated for audience principals. User and group permissions may only be inserted using an email address. On update requests, if email a").optional(),
|
|
335
|
+
group: z.string().describe("Group resource name.").optional(),
|
|
336
|
+
name: z.string().describe("Resource name of this permission.").optional(),
|
|
337
|
+
person: z.string().describe("Person resource name.").optional(),
|
|
338
|
+
role: z.enum(["LABEL_ROLE_UNSPECIFIED", "READER", "APPLIER", "ORGANIZER", "EDITOR"]).describe("The role the principal should have.").optional(),
|
|
321
339
|
fields: z.string().optional().describe('Response field mask.'),
|
|
322
340
|
},
|
|
323
|
-
});
|
|
341
|
+
}, deps);
|
|
324
342
|
registerGeneratedTool(registry, {
|
|
325
343
|
name: "drivelabels_labels_update_label_copy_mode",
|
|
326
344
|
cud: "update",
|
|
@@ -328,13 +346,17 @@ export function registerDrivelabelsGeneratedTools(registry) {
|
|
|
328
346
|
method: { id: "drivelabels.labels.updateLabelCopyMode", httpMethod: "POST", path: "v2/{+name}:updateLabelCopyMode", baseUrl: "https://drivelabels.googleapis.com/", requiredParams: ["name"], scopes: S_drivelabels_v2[0] },
|
|
329
347
|
params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
330
348
|
hasBody: true,
|
|
349
|
+
bodyParams: [{ "field": "copyMode", "api": "copyMode" }, { "field": "languageCode", "api": "languageCode" }, { "field": "useAdminAccess", "api": "useAdminAccess" }, { "field": "view", "api": "view" }],
|
|
331
350
|
shape: {
|
|
332
|
-
account: accountField(),
|
|
333
|
-
name: z.string().describe("Required. The resource name of the label to update."),
|
|
334
|
-
|
|
351
|
+
account: accountField(() => registry.accountAliases()),
|
|
352
|
+
name: z.string().min(1).describe("Required. The resource name of the label to update."),
|
|
353
|
+
copyMode: z.enum(["COPY_MODE_UNSPECIFIED", "DO_NOT_COPY", "ALWAYS_COPY", "COPY_APPLIABLE"]).describe("Required. Indicates how the applied label and field values should be copied when a Drive item is copied.").optional(),
|
|
354
|
+
languageCode: z.string().describe("The BCP-47 language code to use for evaluating localized field labels. When not specified, values in the default configured language will be used.").optional(),
|
|
355
|
+
useAdminAccess: coerceBoolean.describe("Set to `true` in order to use the user's admin credentials. The server will verify the user is an admin for the label before allowing access.").optional(),
|
|
356
|
+
view: z.enum(["LABEL_VIEW_BASIC", "LABEL_VIEW_FULL"]).describe("When specified, only certain fields belonging to the indicated view will be returned.").optional(),
|
|
335
357
|
fields: z.string().optional().describe('Response field mask.'),
|
|
336
358
|
},
|
|
337
|
-
});
|
|
359
|
+
}, deps);
|
|
338
360
|
registerGeneratedTool(registry, {
|
|
339
361
|
name: "drivelabels_labels_update_label_enabled_app_settings",
|
|
340
362
|
cud: "update",
|
|
@@ -343,12 +365,12 @@ export function registerDrivelabelsGeneratedTools(registry) {
|
|
|
343
365
|
params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
344
366
|
hasBody: true,
|
|
345
367
|
shape: {
|
|
346
|
-
account: accountField(),
|
|
347
|
-
name: z.string().describe("Required. The resource name of the label to update. The resource name of the label to update."),
|
|
368
|
+
account: accountField(() => registry.accountAliases()),
|
|
369
|
+
name: z.string().min(1).describe("Required. The resource name of the label to update. The resource name of the label to update."),
|
|
348
370
|
body: coerceJson(z.record(z.string(), z.unknown())).describe("GoogleAppsDriveLabelsV2UpdateLabelEnabledAppSettingsRequest JSON request body. Top-level fields: enabledAppSettings, languageCode, useAdminAccess, view."),
|
|
349
371
|
fields: z.string().optional().describe('Response field mask.'),
|
|
350
372
|
},
|
|
351
|
-
});
|
|
373
|
+
}, deps);
|
|
352
374
|
registerGeneratedTool(registry, {
|
|
353
375
|
name: "drivelabels_labels_update_permissions",
|
|
354
376
|
cud: "update",
|
|
@@ -356,14 +378,20 @@ export function registerDrivelabelsGeneratedTools(registry) {
|
|
|
356
378
|
method: { id: "drivelabels.labels.updatePermissions", httpMethod: "PATCH", path: "v2/{+parent}/permissions", baseUrl: "https://drivelabels.googleapis.com/", requiredParams: ["parent"], scopes: S_drivelabels_v2[0] },
|
|
357
379
|
params: [{ "field": "parent", "api": "parent", "location": "path" }, { "field": "useAdminAccess", "api": "useAdminAccess", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
358
380
|
hasBody: true,
|
|
381
|
+
bodyParams: [{ "field": "audience", "api": "audience" }, { "field": "email", "api": "email" }, { "field": "group", "api": "group" }, { "field": "name", "api": "name" }, { "field": "person", "api": "person" }, { "field": "role", "api": "role" }],
|
|
359
382
|
shape: {
|
|
360
|
-
account: accountField(),
|
|
361
|
-
parent: z.string().describe("Required. The parent label resource name."),
|
|
383
|
+
account: accountField(() => registry.accountAliases()),
|
|
384
|
+
parent: z.string().min(1).describe("Required. The parent label resource name."),
|
|
362
385
|
useAdminAccess: coerceBoolean.describe("Set to `true` in order to use the user's admin credentials. The server will verify the user is an admin for the label before allowing access.").optional(),
|
|
363
|
-
|
|
386
|
+
audience: z.string().describe("Audience to grant a role to. The magic value of `audiences/default` may be used to apply the role to the default audience in the context of the organization that owns the label.").optional(),
|
|
387
|
+
email: z.string().describe("Specifies the email address for a user or group principal. Not populated for audience principals. User and group permissions may only be inserted using an email address. On update requests, if email a").optional(),
|
|
388
|
+
group: z.string().describe("Group resource name.").optional(),
|
|
389
|
+
name: z.string().describe("Resource name of this permission.").optional(),
|
|
390
|
+
person: z.string().describe("Person resource name.").optional(),
|
|
391
|
+
role: z.enum(["LABEL_ROLE_UNSPECIFIED", "READER", "APPLIER", "ORGANIZER", "EDITOR"]).describe("The role the principal should have.").optional(),
|
|
364
392
|
fields: z.string().optional().describe('Response field mask.'),
|
|
365
393
|
},
|
|
366
|
-
});
|
|
394
|
+
}, deps);
|
|
367
395
|
registerGeneratedTool(registry, {
|
|
368
396
|
name: "drivelabels_limits_get_label",
|
|
369
397
|
cud: "read",
|
|
@@ -372,11 +400,11 @@ export function registerDrivelabelsGeneratedTools(registry) {
|
|
|
372
400
|
params: [{ "field": "name", "api": "name", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
373
401
|
hasBody: false,
|
|
374
402
|
shape: {
|
|
375
|
-
account: accountField(),
|
|
403
|
+
account: accountField(() => registry.accountAliases()),
|
|
376
404
|
name: z.string().describe("Required. Label revision resource name must be: \"limits/label\".").optional(),
|
|
377
405
|
fields: z.string().optional().describe('Response field mask.'),
|
|
378
406
|
},
|
|
379
|
-
});
|
|
407
|
+
}, deps);
|
|
380
408
|
registerGeneratedTool(registry, {
|
|
381
409
|
name: "drivelabels_users_get_capabilities",
|
|
382
410
|
cud: "read",
|
|
@@ -385,10 +413,10 @@ export function registerDrivelabelsGeneratedTools(registry) {
|
|
|
385
413
|
params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "customer", "api": "customer", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
386
414
|
hasBody: false,
|
|
387
415
|
shape: {
|
|
388
|
-
account: accountField(),
|
|
389
|
-
name: z.string().describe("Required. The resource name of the user. Only \"users/me/capabilities\" is supported."),
|
|
416
|
+
account: accountField(() => registry.accountAliases()),
|
|
417
|
+
name: z.string().min(1).describe("Required. The resource name of the user. Only \"users/me/capabilities\" is supported."),
|
|
390
418
|
customer: z.string().describe("The customer to scope this request to. For example: `customers/abcd1234`. If unset, it will return settings within the current customer.").optional(),
|
|
391
419
|
fields: z.string().optional().describe('Response field mask.'),
|
|
392
420
|
},
|
|
393
|
-
});
|
|
421
|
+
}, deps);
|
|
394
422
|
}
|
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
import type { ToolRegistry } from '../../registry.js';
|
|
2
|
-
|
|
2
|
+
import { type ExecuteDeps } from './_shared.js';
|
|
3
|
+
export declare function registerFormsGeneratedTools(registry: ToolRegistry, deps?: ExecuteDeps): void;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
import { coerceJson } from '../_coerce.js';
|
|
4
4
|
import { accountField, registerGeneratedTool } from './_shared.js';
|
|
5
|
-
export function registerFormsGeneratedTools(registry) {
|
|
5
|
+
export function registerFormsGeneratedTools(registry, deps = {}) {
|
|
6
6
|
// Interned method scope sets (shared across tools; see scope-observability).
|
|
7
7
|
const S_forms_v1 = [
|
|
8
8
|
["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file", "https://www.googleapis.com/auth/drive.readonly", "https://www.googleapis.com/auth/forms.body", "https://www.googleapis.com/auth/forms.body.readonly", "https://www.googleapis.com/auth/forms.responses.readonly"],
|
|
@@ -15,12 +15,12 @@ export function registerFormsGeneratedTools(registry) {
|
|
|
15
15
|
params: [{ "field": "formId", "api": "formId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
16
16
|
hasBody: true,
|
|
17
17
|
shape: {
|
|
18
|
-
account: accountField(),
|
|
19
|
-
formId: z.string().describe("Required. ID of the Form to watch."),
|
|
18
|
+
account: accountField(() => registry.accountAliases()),
|
|
19
|
+
formId: z.string().min(1).describe("Required. ID of the Form to watch."),
|
|
20
20
|
body: coerceJson(z.record(z.string(), z.unknown())).describe("CreateWatchRequest JSON request body. Top-level fields: watch, watchId."),
|
|
21
21
|
fields: z.string().optional().describe('Response field mask.'),
|
|
22
22
|
},
|
|
23
|
-
});
|
|
23
|
+
}, deps);
|
|
24
24
|
registerGeneratedTool(registry, {
|
|
25
25
|
name: "forms_forms_watches_delete",
|
|
26
26
|
cud: "delete",
|
|
@@ -29,25 +29,25 @@ export function registerFormsGeneratedTools(registry) {
|
|
|
29
29
|
params: [{ "field": "formId", "api": "formId", "location": "path" }, { "field": "watchId", "api": "watchId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
30
30
|
hasBody: false,
|
|
31
31
|
shape: {
|
|
32
|
-
account: accountField(),
|
|
33
|
-
formId: z.string().describe("Required. The ID of the Form."),
|
|
34
|
-
watchId: z.string().describe("Required. The ID of the Watch to delete."),
|
|
32
|
+
account: accountField(() => registry.accountAliases()),
|
|
33
|
+
formId: z.string().min(1).describe("Required. The ID of the Form."),
|
|
34
|
+
watchId: z.string().min(1).describe("Required. The ID of the Watch to delete."),
|
|
35
35
|
fields: z.string().optional().describe('Response field mask.'),
|
|
36
36
|
},
|
|
37
|
-
});
|
|
37
|
+
}, deps);
|
|
38
38
|
registerGeneratedTool(registry, {
|
|
39
39
|
name: "forms_forms_watches_renew",
|
|
40
|
-
cud: "
|
|
40
|
+
cud: "update",
|
|
41
41
|
description: "Renew an existing watch for seven days. The state of the watch after renewal is `ACTIVE`, and the `expire_time` is seven days from the renewal. Renewing a watch",
|
|
42
42
|
method: { id: "forms.forms.watches.renew", httpMethod: "POST", path: "v1/forms/{formId}/watches/{watchId}:renew", baseUrl: "https://forms.googleapis.com/", requiredParams: ["formId", "watchId"], scopes: S_forms_v1[0] },
|
|
43
43
|
params: [{ "field": "formId", "api": "formId", "location": "path" }, { "field": "watchId", "api": "watchId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
44
44
|
hasBody: true,
|
|
45
|
+
bodyParams: [],
|
|
45
46
|
shape: {
|
|
46
|
-
account: accountField(),
|
|
47
|
-
formId: z.string().describe("Required. The ID of the Form."),
|
|
48
|
-
watchId: z.string().describe("Required. The ID of the Watch to renew."),
|
|
49
|
-
body: coerceJson(z.record(z.string(), z.unknown())).describe("RenewWatchRequest JSON request body."),
|
|
47
|
+
account: accountField(() => registry.accountAliases()),
|
|
48
|
+
formId: z.string().min(1).describe("Required. The ID of the Form."),
|
|
49
|
+
watchId: z.string().min(1).describe("Required. The ID of the Watch to renew."),
|
|
50
50
|
fields: z.string().optional().describe('Response field mask.'),
|
|
51
51
|
},
|
|
52
|
-
});
|
|
52
|
+
}, deps);
|
|
53
53
|
}
|
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
import type { ToolRegistry } from '../../registry.js';
|
|
2
|
-
|
|
2
|
+
import { type ExecuteDeps } from './_shared.js';
|
|
3
|
+
export declare function registerGmailGeneratedTools(registry: ToolRegistry, deps?: ExecuteDeps): void;
|