mcp-google-multi 6.0.0-beta.2 → 6.0.0-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/README.md +5 -5
- package/dist/accounts.d.ts +20 -4
- package/dist/accounts.js +68 -44
- package/dist/api-probe.d.ts +5 -0
- package/dist/api-probe.js +20 -15
- package/dist/arg-normalize.js +19 -38
- package/dist/arg-strict.d.ts +7 -0
- package/dist/arg-strict.js +38 -28
- package/dist/auth.d.ts +5 -4
- package/dist/auth.js +16 -23
- package/dist/boot-gates.d.ts +26 -0
- package/dist/boot-gates.js +36 -0
- package/dist/cimd-cache.d.ts +38 -0
- package/dist/cimd-cache.js +111 -0
- package/dist/client-config.d.ts +2 -2
- package/dist/client-config.js +8 -14
- package/dist/client.d.ts +32 -2
- package/dist/client.js +0 -0
- package/dist/compose.d.ts +18 -0
- package/dist/compose.js +109 -0
- package/dist/config-file.d.ts +13 -0
- package/dist/config-file.js +41 -10
- package/dist/discover.js +7 -10
- package/dist/discovery-client.d.ts +3 -0
- package/dist/discovery-client.js +36 -32
- package/dist/doctor.d.ts +9 -5
- package/dist/doctor.js +119 -29
- package/dist/env-load.js +2 -5
- package/dist/executor.d.ts +3 -0
- package/dist/executor.js +6 -6
- package/dist/fanout.d.ts +9 -1
- package/dist/fanout.js +47 -22
- package/dist/fs-atomic.d.ts +8 -0
- package/dist/fs-atomic.js +216 -29
- package/dist/hint-provider.d.ts +129 -0
- package/dist/hint-provider.js +58 -0
- package/dist/http-config.d.ts +2 -2
- package/dist/http-config.js +3 -7
- package/dist/http-transport.d.ts +67 -9
- package/dist/http-transport.js +318 -52
- package/dist/identity.d.ts +6 -3
- package/dist/identity.js +24 -8
- package/dist/index.js +76 -160
- package/dist/master-key.d.ts +3 -3
- package/dist/master-key.js +16 -19
- package/dist/mcp-token.d.ts +126 -19
- package/dist/mcp-token.js +557 -76
- package/dist/metrics-cli.d.ts +1 -1
- package/dist/metrics-cli.js +1 -1
- package/dist/metrics-tap.js +2 -5
- package/dist/migrate-config.d.ts +1 -2
- package/dist/migrate-config.js +5 -7
- package/dist/net-tuning.js +2 -4
- package/dist/oauth-as.d.ts +104 -4
- package/dist/oauth-as.js +368 -114
- package/dist/oauth-consent.d.ts +10 -0
- package/dist/oauth-consent.js +20 -10
- package/dist/outbound-allowlist.js +9 -11
- package/dist/reauth-hint.d.ts +1 -1
- package/dist/reauth-hint.js +11 -10
- package/dist/registry-transfer.d.ts +5 -0
- package/dist/registry-transfer.js +63 -11
- package/dist/registry.d.ts +13 -4
- package/dist/registry.js +100 -72
- package/dist/scope-catalog.d.ts +16 -0
- package/dist/scope-catalog.js +40 -13
- package/dist/scope-observability.d.ts +10 -9
- package/dist/scope-observability.js +34 -24
- package/dist/services.d.ts +18 -10
- package/dist/services.js +61 -22
- package/dist/ssrf-guard.d.ts +23 -9
- package/dist/ssrf-guard.js +106 -78
- package/dist/tenant-purge.d.ts +26 -0
- package/dist/tenant-purge.js +65 -0
- package/dist/token-store.d.ts +20 -2
- package/dist/token-store.js +0 -0
- package/dist/tools/_coerce.d.ts +4 -4
- package/dist/tools/_errors.d.ts +3 -0
- package/dist/tools/_errors.js +72 -60
- package/dist/tools/_local-files.d.ts +9 -0
- package/dist/tools/_local-files.js +22 -8
- package/dist/tools/account-wizard.d.ts +13 -3
- package/dist/tools/account-wizard.js +107 -56
- package/dist/tools/accounts-tool.d.ts +8 -1
- package/dist/tools/accounts-tool.js +35 -19
- package/dist/tools/admin.d.ts +10 -1
- package/dist/tools/admin.js +14 -11
- package/dist/tools/analytics.d.ts +10 -1
- package/dist/tools/analytics.js +14 -10
- package/dist/tools/calendar.d.ts +2 -1
- package/dist/tools/calendar.js +19 -18
- package/dist/tools/chat.d.ts +10 -1
- package/dist/tools/chat.js +12 -8
- package/dist/tools/contacts.d.ts +2 -1
- package/dist/tools/contacts.js +22 -19
- package/dist/tools/docs.d.ts +2 -1
- package/dist/tools/docs.js +35 -36
- package/dist/tools/drive.d.ts +2 -1
- package/dist/tools/drive.js +80 -74
- package/dist/tools/forms.d.ts +10 -1
- package/dist/tools/forms.js +18 -12
- package/dist/tools/generated/_shared.d.ts +2 -1
- package/dist/tools/generated/_shared.js +7 -3
- package/dist/tools/generated/admin.d.ts +2 -1
- package/dist/tools/generated/admin.js +265 -265
- package/dist/tools/generated/analytics.d.ts +2 -1
- package/dist/tools/generated/analytics.js +125 -125
- package/dist/tools/generated/appsmarket.d.ts +2 -1
- package/dist/tools/generated/appsmarket.js +5 -5
- package/dist/tools/generated/calendar.d.ts +2 -1
- package/dist/tools/generated/calendar.js +55 -55
- package/dist/tools/generated/chat.d.ts +2 -1
- package/dist/tools/generated/chat.js +95 -95
- package/dist/tools/generated/classroom.d.ts +2 -1
- package/dist/tools/generated/classroom.js +209 -209
- package/dist/tools/generated/cloudidentity.d.ts +2 -1
- package/dist/tools/generated/cloudidentity.js +133 -133
- package/dist/tools/generated/cloudsearch.d.ts +2 -1
- package/dist/tools/generated/cloudsearch.js +99 -99
- package/dist/tools/generated/contacts.d.ts +2 -1
- package/dist/tools/generated/contacts.js +29 -29
- package/dist/tools/generated/drive.d.ts +2 -1
- package/dist/tools/generated/drive.js +71 -71
- 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 +53 -53
- package/dist/tools/generated/forms.d.ts +2 -1
- package/dist/tools/generated/forms.js +7 -7
- package/dist/tools/generated/gmail.d.ts +2 -1
- package/dist/tools/generated/gmail.js +117 -117
- package/dist/tools/generated/groupsmigration.d.ts +2 -1
- package/dist/tools/generated/groupsmigration.js +3 -3
- package/dist/tools/generated/groupssettings.d.ts +2 -1
- package/dist/tools/generated/groupssettings.js +7 -7
- package/dist/tools/generated/index.d.ts +2 -1
- package/dist/tools/generated/keep.d.ts +2 -1
- package/dist/tools/generated/keep.js +15 -15
- package/dist/tools/generated/licensing.d.ts +2 -1
- package/dist/tools/generated/licensing.js +15 -15
- package/dist/tools/generated/meet.d.ts +2 -1
- package/dist/tools/generated/meet.js +27 -27
- package/dist/tools/generated/postmaster.d.ts +2 -1
- package/dist/tools/generated/postmaster.js +9 -9
- package/dist/tools/generated/reseller.d.ts +2 -1
- package/dist/tools/generated/reseller.js +35 -35
- package/dist/tools/generated/script.d.ts +2 -1
- package/dist/tools/generated/script.js +33 -33
- package/dist/tools/generated/searchconsole.d.ts +2 -1
- package/dist/tools/generated/searchconsole.js +3 -3
- package/dist/tools/generated/sheets.d.ts +2 -1
- package/dist/tools/generated/sheets.js +15 -15
- package/dist/tools/generated/tasks.d.ts +2 -1
- package/dist/tools/generated/tasks.js +5 -5
- package/dist/tools/generated/vault.d.ts +2 -1
- package/dist/tools/generated/vault.js +67 -67
- package/dist/tools/generated/workspaceevents.d.ts +2 -1
- package/dist/tools/generated/workspaceevents.js +31 -31
- package/dist/tools/gmail-mime.d.ts +1 -1
- package/dist/tools/gmail-mime.js +7 -12
- package/dist/tools/gmail.d.ts +4 -3
- package/dist/tools/gmail.js +67 -69
- package/dist/tools/google-api.d.ts +2 -3
- package/dist/tools/google-api.js +34 -22
- package/dist/tools/meet.d.ts +10 -1
- package/dist/tools/meet.js +12 -9
- package/dist/tools/searchconsole.d.ts +2 -1
- package/dist/tools/searchconsole.js +16 -13
- package/dist/tools/sheets.d.ts +2 -1
- package/dist/tools/sheets.js +35 -32
- package/dist/tools/slides.d.ts +10 -1
- package/dist/tools/slides.js +16 -10
- package/dist/tools/tasks.d.ts +2 -1
- package/dist/tools/tasks.js +18 -15
- package/dist/trim.d.ts +5 -0
- package/dist/trim.js +19 -0
- package/dist/usage-metrics.d.ts +23 -0
- package/dist/usage-metrics.js +67 -56
- package/dist/write-control.d.ts +4 -8
- package/dist/write-control.js +13 -6
- package/package.json +47 -21
|
@@ -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(),
|
|
34
|
+
account: accountField(() => registry.accountAliases()),
|
|
35
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,12 +46,12 @@ 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(),
|
|
49
|
+
account: accountField(() => registry.accountAliases()),
|
|
50
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
57
|
cud: "update",
|
|
@@ -60,12 +60,12 @@ export function registerDrivelabelsGeneratedTools(registry) {
|
|
|
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(),
|
|
63
|
+
account: accountField(() => registry.accountAliases()),
|
|
64
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
71
|
cud: "update",
|
|
@@ -74,12 +74,12 @@ export function registerDrivelabelsGeneratedTools(registry) {
|
|
|
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(),
|
|
77
|
+
account: accountField(() => registry.accountAliases()),
|
|
78
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(),
|
|
91
|
+
account: accountField(() => registry.accountAliases()),
|
|
92
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(),
|
|
127
|
+
account: accountField(() => registry.accountAliases()),
|
|
128
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,12 +139,12 @@ 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(),
|
|
142
|
+
account: accountField(() => registry.accountAliases()),
|
|
143
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
150
|
cud: "update",
|
|
@@ -153,12 +153,12 @@ export function registerDrivelabelsGeneratedTools(registry) {
|
|
|
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(),
|
|
156
|
+
account: accountField(() => registry.accountAliases()),
|
|
157
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",
|
|
@@ -168,7 +168,7 @@ export function registerDrivelabelsGeneratedTools(registry) {
|
|
|
168
168
|
hasBody: true,
|
|
169
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" }],
|
|
170
170
|
shape: {
|
|
171
|
-
account: accountField(),
|
|
171
|
+
account: accountField(() => registry.accountAliases()),
|
|
172
172
|
parent: z.string().min(1).describe("Required. The parent label resource name on the label permission is created. Format: `labels/{label}`."),
|
|
173
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(),
|
|
174
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(),
|
|
@@ -179,7 +179,7 @@ export function registerDrivelabelsGeneratedTools(registry) {
|
|
|
179
179
|
role: z.enum(["LABEL_ROLE_UNSPECIFIED", "READER", "APPLIER", "ORGANIZER", "EDITOR"]).describe("The role the principal should have.").optional(),
|
|
180
180
|
fields: z.string().optional().describe('Response field mask.'),
|
|
181
181
|
},
|
|
182
|
-
});
|
|
182
|
+
}, deps);
|
|
183
183
|
registerGeneratedTool(registry, {
|
|
184
184
|
name: "drivelabels_labels_permissions_delete",
|
|
185
185
|
cud: "delete",
|
|
@@ -188,12 +188,12 @@ export function registerDrivelabelsGeneratedTools(registry) {
|
|
|
188
188
|
params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "useAdminAccess", "api": "useAdminAccess", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
189
189
|
hasBody: false,
|
|
190
190
|
shape: {
|
|
191
|
-
account: accountField(),
|
|
191
|
+
account: accountField(() => registry.accountAliases()),
|
|
192
192
|
name: z.string().min(1).describe("Required. Label permission resource name."),
|
|
193
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(),
|
|
194
194
|
fields: z.string().optional().describe('Response field mask.'),
|
|
195
195
|
},
|
|
196
|
-
});
|
|
196
|
+
}, deps);
|
|
197
197
|
registerGeneratedTool(registry, {
|
|
198
198
|
name: "drivelabels_labels_permissions_list",
|
|
199
199
|
cud: "read",
|
|
@@ -202,14 +202,14 @@ export function registerDrivelabelsGeneratedTools(registry) {
|
|
|
202
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" }],
|
|
203
203
|
hasBody: false,
|
|
204
204
|
shape: {
|
|
205
|
-
account: accountField(),
|
|
205
|
+
account: accountField(() => registry.accountAliases()),
|
|
206
206
|
parent: z.string().min(1).describe("Required. The parent label resource name on which label permissions are listed. Format: `labels/{label}`."),
|
|
207
207
|
pageSize: z.number().describe("Maximum number of permissions to return per page. Default: 50. Max: 200.").optional(),
|
|
208
208
|
pageToken: z.string().describe("The token of the page to return.").optional(),
|
|
209
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(),
|
|
210
210
|
fields: z.string().optional().describe('Response field mask.'),
|
|
211
211
|
},
|
|
212
|
-
});
|
|
212
|
+
}, deps);
|
|
213
213
|
registerGeneratedTool(registry, {
|
|
214
214
|
name: "drivelabels_labels_publish",
|
|
215
215
|
cud: "update",
|
|
@@ -218,12 +218,12 @@ export function registerDrivelabelsGeneratedTools(registry) {
|
|
|
218
218
|
params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
219
219
|
hasBody: true,
|
|
220
220
|
shape: {
|
|
221
|
-
account: accountField(),
|
|
221
|
+
account: accountField(() => registry.accountAliases()),
|
|
222
222
|
name: z.string().min(1).describe("Required. Label resource name."),
|
|
223
223
|
body: coerceJson(z.record(z.string(), z.unknown())).describe("GoogleAppsDriveLabelsV2PublishLabelRequest JSON request body. Top-level fields: languageCode, useAdminAccess, writeControl."),
|
|
224
224
|
fields: z.string().optional().describe('Response field mask.'),
|
|
225
225
|
},
|
|
226
|
-
});
|
|
226
|
+
}, deps);
|
|
227
227
|
registerGeneratedTool(registry, {
|
|
228
228
|
name: "drivelabels_labels_revisions_locks_list",
|
|
229
229
|
cud: "read",
|
|
@@ -232,13 +232,13 @@ export function registerDrivelabelsGeneratedTools(registry) {
|
|
|
232
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" }],
|
|
233
233
|
hasBody: false,
|
|
234
234
|
shape: {
|
|
235
|
-
account: accountField(),
|
|
235
|
+
account: accountField(() => registry.accountAliases()),
|
|
236
236
|
parent: z.string().min(1).describe("Required. Label on which locks are applied. Format: `labels/{label}`."),
|
|
237
237
|
pageSize: z.number().describe("Maximum number of locks to return per page. Default: 100. Max: 200.").optional(),
|
|
238
238
|
pageToken: z.string().describe("The token of the page to return.").optional(),
|
|
239
239
|
fields: z.string().optional().describe('Response field mask.'),
|
|
240
240
|
},
|
|
241
|
-
});
|
|
241
|
+
}, deps);
|
|
242
242
|
registerGeneratedTool(registry, {
|
|
243
243
|
name: "drivelabels_labels_revisions_permissions_batch_delete",
|
|
244
244
|
cud: "delete",
|
|
@@ -247,12 +247,12 @@ export function registerDrivelabelsGeneratedTools(registry) {
|
|
|
247
247
|
params: [{ "field": "parent", "api": "parent", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
248
248
|
hasBody: true,
|
|
249
249
|
shape: {
|
|
250
|
-
account: accountField(),
|
|
250
|
+
account: accountField(() => registry.accountAliases()),
|
|
251
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 "),
|
|
252
252
|
body: coerceJson(z.record(z.string(), z.unknown())).describe("GoogleAppsDriveLabelsV2BatchDeleteLabelPermissionsRequest JSON request body. Top-level fields: requests, useAdminAccess."),
|
|
253
253
|
fields: z.string().optional().describe('Response field mask.'),
|
|
254
254
|
},
|
|
255
|
-
});
|
|
255
|
+
}, deps);
|
|
256
256
|
registerGeneratedTool(registry, {
|
|
257
257
|
name: "drivelabels_labels_revisions_permissions_batch_update",
|
|
258
258
|
cud: "update",
|
|
@@ -261,12 +261,12 @@ export function registerDrivelabelsGeneratedTools(registry) {
|
|
|
261
261
|
params: [{ "field": "parent", "api": "parent", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
262
262
|
hasBody: true,
|
|
263
263
|
shape: {
|
|
264
|
-
account: accountField(),
|
|
264
|
+
account: accountField(() => registry.accountAliases()),
|
|
265
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 "),
|
|
266
266
|
body: coerceJson(z.record(z.string(), z.unknown())).describe("GoogleAppsDriveLabelsV2BatchUpdateLabelPermissionsRequest JSON request body. Top-level fields: requests, useAdminAccess."),
|
|
267
267
|
fields: z.string().optional().describe('Response field mask.'),
|
|
268
268
|
},
|
|
269
|
-
});
|
|
269
|
+
}, deps);
|
|
270
270
|
registerGeneratedTool(registry, {
|
|
271
271
|
name: "drivelabels_labels_revisions_permissions_create",
|
|
272
272
|
cud: "create",
|
|
@@ -276,7 +276,7 @@ export function registerDrivelabelsGeneratedTools(registry) {
|
|
|
276
276
|
hasBody: true,
|
|
277
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" }],
|
|
278
278
|
shape: {
|
|
279
|
-
account: accountField(),
|
|
279
|
+
account: accountField(() => registry.accountAliases()),
|
|
280
280
|
parent: z.string().min(1).describe("Required. The parent label resource name on the label permission is created. Format: `labels/{label}`."),
|
|
281
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(),
|
|
282
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(),
|
|
@@ -287,7 +287,7 @@ export function registerDrivelabelsGeneratedTools(registry) {
|
|
|
287
287
|
role: z.enum(["LABEL_ROLE_UNSPECIFIED", "READER", "APPLIER", "ORGANIZER", "EDITOR"]).describe("The role the principal should have.").optional(),
|
|
288
288
|
fields: z.string().optional().describe('Response field mask.'),
|
|
289
289
|
},
|
|
290
|
-
});
|
|
290
|
+
}, deps);
|
|
291
291
|
registerGeneratedTool(registry, {
|
|
292
292
|
name: "drivelabels_labels_revisions_permissions_delete",
|
|
293
293
|
cud: "delete",
|
|
@@ -296,12 +296,12 @@ export function registerDrivelabelsGeneratedTools(registry) {
|
|
|
296
296
|
params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "useAdminAccess", "api": "useAdminAccess", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
297
297
|
hasBody: false,
|
|
298
298
|
shape: {
|
|
299
|
-
account: accountField(),
|
|
299
|
+
account: accountField(() => registry.accountAliases()),
|
|
300
300
|
name: z.string().min(1).describe("Required. Label permission resource name."),
|
|
301
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(),
|
|
302
302
|
fields: z.string().optional().describe('Response field mask.'),
|
|
303
303
|
},
|
|
304
|
-
});
|
|
304
|
+
}, deps);
|
|
305
305
|
registerGeneratedTool(registry, {
|
|
306
306
|
name: "drivelabels_labels_revisions_permissions_list",
|
|
307
307
|
cud: "read",
|
|
@@ -310,14 +310,14 @@ export function registerDrivelabelsGeneratedTools(registry) {
|
|
|
310
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" }],
|
|
311
311
|
hasBody: false,
|
|
312
312
|
shape: {
|
|
313
|
-
account: accountField(),
|
|
313
|
+
account: accountField(() => registry.accountAliases()),
|
|
314
314
|
parent: z.string().min(1).describe("Required. The parent label resource name on which label permissions are listed. Format: `labels/{label}`."),
|
|
315
315
|
pageSize: z.number().describe("Maximum number of permissions to return per page. Default: 50. Max: 200.").optional(),
|
|
316
316
|
pageToken: z.string().describe("The token of the page to return.").optional(),
|
|
317
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(),
|
|
318
318
|
fields: z.string().optional().describe('Response field mask.'),
|
|
319
319
|
},
|
|
320
|
-
});
|
|
320
|
+
}, deps);
|
|
321
321
|
registerGeneratedTool(registry, {
|
|
322
322
|
name: "drivelabels_labels_revisions_update_permissions",
|
|
323
323
|
cud: "update",
|
|
@@ -327,7 +327,7 @@ export function registerDrivelabelsGeneratedTools(registry) {
|
|
|
327
327
|
hasBody: true,
|
|
328
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" }],
|
|
329
329
|
shape: {
|
|
330
|
-
account: accountField(),
|
|
330
|
+
account: accountField(() => registry.accountAliases()),
|
|
331
331
|
parent: z.string().min(1).describe("Required. The parent label resource name."),
|
|
332
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(),
|
|
333
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(),
|
|
@@ -338,7 +338,7 @@ export function registerDrivelabelsGeneratedTools(registry) {
|
|
|
338
338
|
role: z.enum(["LABEL_ROLE_UNSPECIFIED", "READER", "APPLIER", "ORGANIZER", "EDITOR"]).describe("The role the principal should have.").optional(),
|
|
339
339
|
fields: z.string().optional().describe('Response field mask.'),
|
|
340
340
|
},
|
|
341
|
-
});
|
|
341
|
+
}, deps);
|
|
342
342
|
registerGeneratedTool(registry, {
|
|
343
343
|
name: "drivelabels_labels_update_label_copy_mode",
|
|
344
344
|
cud: "update",
|
|
@@ -348,7 +348,7 @@ export function registerDrivelabelsGeneratedTools(registry) {
|
|
|
348
348
|
hasBody: true,
|
|
349
349
|
bodyParams: [{ "field": "copyMode", "api": "copyMode" }, { "field": "languageCode", "api": "languageCode" }, { "field": "useAdminAccess", "api": "useAdminAccess" }, { "field": "view", "api": "view" }],
|
|
350
350
|
shape: {
|
|
351
|
-
account: accountField(),
|
|
351
|
+
account: accountField(() => registry.accountAliases()),
|
|
352
352
|
name: z.string().min(1).describe("Required. The resource name of the label to update."),
|
|
353
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
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(),
|
|
@@ -356,7 +356,7 @@ export function registerDrivelabelsGeneratedTools(registry) {
|
|
|
356
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(),
|
|
357
357
|
fields: z.string().optional().describe('Response field mask.'),
|
|
358
358
|
},
|
|
359
|
-
});
|
|
359
|
+
}, deps);
|
|
360
360
|
registerGeneratedTool(registry, {
|
|
361
361
|
name: "drivelabels_labels_update_label_enabled_app_settings",
|
|
362
362
|
cud: "update",
|
|
@@ -365,12 +365,12 @@ export function registerDrivelabelsGeneratedTools(registry) {
|
|
|
365
365
|
params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
366
366
|
hasBody: true,
|
|
367
367
|
shape: {
|
|
368
|
-
account: accountField(),
|
|
368
|
+
account: accountField(() => registry.accountAliases()),
|
|
369
369
|
name: z.string().min(1).describe("Required. The resource name of the label to update. The resource name of the label to update."),
|
|
370
370
|
body: coerceJson(z.record(z.string(), z.unknown())).describe("GoogleAppsDriveLabelsV2UpdateLabelEnabledAppSettingsRequest JSON request body. Top-level fields: enabledAppSettings, languageCode, useAdminAccess, view."),
|
|
371
371
|
fields: z.string().optional().describe('Response field mask.'),
|
|
372
372
|
},
|
|
373
|
-
});
|
|
373
|
+
}, deps);
|
|
374
374
|
registerGeneratedTool(registry, {
|
|
375
375
|
name: "drivelabels_labels_update_permissions",
|
|
376
376
|
cud: "update",
|
|
@@ -380,7 +380,7 @@ export function registerDrivelabelsGeneratedTools(registry) {
|
|
|
380
380
|
hasBody: true,
|
|
381
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" }],
|
|
382
382
|
shape: {
|
|
383
|
-
account: accountField(),
|
|
383
|
+
account: accountField(() => registry.accountAliases()),
|
|
384
384
|
parent: z.string().min(1).describe("Required. The parent label resource name."),
|
|
385
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(),
|
|
386
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(),
|
|
@@ -391,7 +391,7 @@ export function registerDrivelabelsGeneratedTools(registry) {
|
|
|
391
391
|
role: z.enum(["LABEL_ROLE_UNSPECIFIED", "READER", "APPLIER", "ORGANIZER", "EDITOR"]).describe("The role the principal should have.").optional(),
|
|
392
392
|
fields: z.string().optional().describe('Response field mask.'),
|
|
393
393
|
},
|
|
394
|
-
});
|
|
394
|
+
}, deps);
|
|
395
395
|
registerGeneratedTool(registry, {
|
|
396
396
|
name: "drivelabels_limits_get_label",
|
|
397
397
|
cud: "read",
|
|
@@ -400,11 +400,11 @@ export function registerDrivelabelsGeneratedTools(registry) {
|
|
|
400
400
|
params: [{ "field": "name", "api": "name", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
401
401
|
hasBody: false,
|
|
402
402
|
shape: {
|
|
403
|
-
account: accountField(),
|
|
403
|
+
account: accountField(() => registry.accountAliases()),
|
|
404
404
|
name: z.string().describe("Required. Label revision resource name must be: \"limits/label\".").optional(),
|
|
405
405
|
fields: z.string().optional().describe('Response field mask.'),
|
|
406
406
|
},
|
|
407
|
-
});
|
|
407
|
+
}, deps);
|
|
408
408
|
registerGeneratedTool(registry, {
|
|
409
409
|
name: "drivelabels_users_get_capabilities",
|
|
410
410
|
cud: "read",
|
|
@@ -413,10 +413,10 @@ export function registerDrivelabelsGeneratedTools(registry) {
|
|
|
413
413
|
params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "customer", "api": "customer", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
414
414
|
hasBody: false,
|
|
415
415
|
shape: {
|
|
416
|
-
account: accountField(),
|
|
416
|
+
account: accountField(() => registry.accountAliases()),
|
|
417
417
|
name: z.string().min(1).describe("Required. The resource name of the user. Only \"users/me/capabilities\" is supported."),
|
|
418
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(),
|
|
419
419
|
fields: z.string().optional().describe('Response field mask.'),
|
|
420
420
|
},
|
|
421
|
-
});
|
|
421
|
+
}, deps);
|
|
422
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(),
|
|
18
|
+
account: accountField(() => registry.accountAliases()),
|
|
19
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,12 +29,12 @@ 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(),
|
|
32
|
+
account: accountField(() => registry.accountAliases()),
|
|
33
33
|
formId: z.string().min(1).describe("Required. The ID of the Form."),
|
|
34
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
40
|
cud: "update",
|
|
@@ -44,10 +44,10 @@ export function registerFormsGeneratedTools(registry) {
|
|
|
44
44
|
hasBody: true,
|
|
45
45
|
bodyParams: [],
|
|
46
46
|
shape: {
|
|
47
|
-
account: accountField(),
|
|
47
|
+
account: accountField(() => registry.accountAliases()),
|
|
48
48
|
formId: z.string().min(1).describe("Required. The ID of the Form."),
|
|
49
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;
|