mcp-google-multi 5.2.0-alpha.2 → 5.2.0-alpha.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 +2 -2
- package/dist/auth.js +33 -0
- package/dist/discovery-client.js +13 -0
- package/dist/index.js +4 -34
- package/dist/services.d.ts +11 -0
- package/dist/services.js +53 -0
- package/dist/tools/generated/admin.d.ts +2 -0
- package/dist/tools/generated/admin.js +1937 -0
- package/dist/tools/generated/appsmarket.d.ts +2 -0
- package/dist/tools/generated/appsmarket.js +33 -0
- package/dist/tools/generated/calendar.d.ts +2 -0
- package/dist/tools/generated/calendar.js +428 -0
- package/dist/tools/generated/chat.d.ts +2 -0
- package/dist/tools/generated/chat.js +666 -0
- package/dist/tools/generated/classroom.d.ts +2 -0
- package/dist/tools/generated/classroom.js +1610 -0
- package/dist/tools/generated/cloudidentity.d.ts +2 -0
- package/dist/tools/generated/cloudidentity.js +955 -0
- package/dist/tools/generated/cloudsearch.d.ts +2 -0
- package/dist/tools/generated/cloudsearch.js +754 -0
- package/dist/tools/generated/contacts.d.ts +2 -0
- package/dist/tools/generated/contacts.js +215 -0
- package/dist/tools/generated/drive.d.ts +2 -0
- package/dist/tools/generated/drive.js +543 -0
- package/dist/tools/generated/driveactivity.d.ts +2 -0
- package/dist/tools/generated/driveactivity.js +19 -0
- package/dist/tools/generated/drivelabels.d.ts +2 -0
- package/dist/tools/generated/drivelabels.js +389 -0
- package/dist/tools/generated/forms.d.ts +2 -0
- package/dist/tools/generated/forms.js +49 -0
- package/dist/tools/generated/gmail.d.ts +2 -0
- package/dist/tools/generated/gmail.js +835 -0
- package/dist/tools/generated/groupsmigration.d.ts +2 -0
- package/dist/tools/generated/groupsmigration.js +18 -0
- package/dist/tools/generated/groupssettings.d.ts +2 -0
- package/dist/tools/generated/groupssettings.js +47 -0
- package/dist/tools/generated/index.js +50 -0
- package/dist/tools/generated/keep.d.ts +2 -0
- package/dist/tools/generated/keep.js +102 -0
- package/dist/tools/generated/licensing.d.ts +2 -0
- package/dist/tools/generated/licensing.js +116 -0
- package/dist/tools/generated/meet.d.ts +2 -0
- package/dist/tools/generated/meet.js +186 -0
- package/dist/tools/generated/postmaster.d.ts +2 -0
- package/dist/tools/generated/postmaster.js +66 -0
- package/dist/tools/generated/reseller.d.ts +2 -0
- package/dist/tools/generated/reseller.js +249 -0
- package/dist/tools/generated/script.d.ts +2 -0
- package/dist/tools/generated/script.js +249 -0
- package/dist/tools/generated/searchconsole.d.ts +2 -0
- package/dist/tools/generated/searchconsole.js +19 -0
- package/dist/tools/generated/sheets.d.ts +2 -0
- package/dist/tools/generated/sheets.js +105 -0
- package/dist/tools/generated/vault.d.ts +2 -0
- package/dist/tools/generated/vault.js +479 -0
- package/dist/tools/generated/workspaceevents.d.ts +2 -0
- package/dist/tools/generated/workspaceevents.js +223 -0
- package/dist/tools/google-api.js +1 -0
- package/package.json +3 -2
|
@@ -0,0 +1,389 @@
|
|
|
1
|
+
// GENERATED by scripts/gen-tools.ts — do not edit. Regenerate: npm run gen:tools
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
import { coerceBoolean, coerceJson } from '../_coerce.js';
|
|
4
|
+
import { accountField, registerGeneratedTool } from './_shared.js';
|
|
5
|
+
export function registerDrivelabelsGeneratedTools(registry) {
|
|
6
|
+
registerGeneratedTool(registry, {
|
|
7
|
+
name: "drivelabels_labels_create",
|
|
8
|
+
cud: "create",
|
|
9
|
+
description: "Creates a label. For more information, see [Create and publish a label](https://developers.google.com/workspace/drive/labels/guides/create-label).",
|
|
10
|
+
method: { id: "drivelabels.labels.create", httpMethod: "POST", path: "v2/labels", baseUrl: "https://drivelabels.googleapis.com/", requiredParams: [] },
|
|
11
|
+
params: [{ "field": "languageCode", "api": "languageCode", "location": "query" }, { "field": "useAdminAccess", "api": "useAdminAccess", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
12
|
+
hasBody: true,
|
|
13
|
+
shape: {
|
|
14
|
+
account: accountField(),
|
|
15
|
+
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(),
|
|
16
|
+
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(),
|
|
17
|
+
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."),
|
|
18
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
19
|
+
},
|
|
20
|
+
});
|
|
21
|
+
registerGeneratedTool(registry, {
|
|
22
|
+
name: "drivelabels_labels_delete",
|
|
23
|
+
cud: "delete",
|
|
24
|
+
description: "Permanently deletes a label and related metadata on Drive items. For more information, see [Disable, enable, and delete a label](https://developers.google.com/w",
|
|
25
|
+
method: { id: "drivelabels.labels.delete", httpMethod: "DELETE", path: "v2/{+name}", baseUrl: "https://drivelabels.googleapis.com/", requiredParams: ["name"] },
|
|
26
|
+
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" }],
|
|
27
|
+
hasBody: false,
|
|
28
|
+
shape: {
|
|
29
|
+
account: accountField(),
|
|
30
|
+
name: z.string().describe("Required. Label resource name."),
|
|
31
|
+
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(),
|
|
32
|
+
"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(),
|
|
33
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
34
|
+
},
|
|
35
|
+
});
|
|
36
|
+
registerGeneratedTool(registry, {
|
|
37
|
+
name: "drivelabels_labels_delta",
|
|
38
|
+
cud: "create",
|
|
39
|
+
description: "Updates a single label by applying a set of update requests resulting in a new draft revision. For more information, see [Update a label](https://developers.goo",
|
|
40
|
+
method: { id: "drivelabels.labels.delta", httpMethod: "POST", path: "v2/{+name}:delta", baseUrl: "https://drivelabels.googleapis.com/", requiredParams: ["name"] },
|
|
41
|
+
params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
42
|
+
hasBody: true,
|
|
43
|
+
shape: {
|
|
44
|
+
account: accountField(),
|
|
45
|
+
name: z.string().describe("Required. The resource name of the label to update."),
|
|
46
|
+
body: coerceJson(z.record(z.string(), z.unknown())).describe("GoogleAppsDriveLabelsV2DeltaUpdateLabelRequest JSON request body. Top-level fields: languageCode, requests, useAdminAccess, view, writeControl."),
|
|
47
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
48
|
+
},
|
|
49
|
+
});
|
|
50
|
+
registerGeneratedTool(registry, {
|
|
51
|
+
name: "drivelabels_labels_disable",
|
|
52
|
+
cud: "create",
|
|
53
|
+
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",
|
|
54
|
+
method: { id: "drivelabels.labels.disable", httpMethod: "POST", path: "v2/{+name}:disable", baseUrl: "https://drivelabels.googleapis.com/", requiredParams: ["name"] },
|
|
55
|
+
params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
56
|
+
hasBody: true,
|
|
57
|
+
shape: {
|
|
58
|
+
account: accountField(),
|
|
59
|
+
name: z.string().describe("Required. Label resource name."),
|
|
60
|
+
body: coerceJson(z.record(z.string(), z.unknown())).describe("GoogleAppsDriveLabelsV2DisableLabelRequest JSON request body. Top-level fields: disabledPolicy, languageCode, updateMask, useAdminAccess, writeControl."),
|
|
61
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
62
|
+
},
|
|
63
|
+
});
|
|
64
|
+
registerGeneratedTool(registry, {
|
|
65
|
+
name: "drivelabels_labels_enable",
|
|
66
|
+
cud: "create",
|
|
67
|
+
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",
|
|
68
|
+
method: { id: "drivelabels.labels.enable", httpMethod: "POST", path: "v2/{+name}:enable", baseUrl: "https://drivelabels.googleapis.com/", requiredParams: ["name"] },
|
|
69
|
+
params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
70
|
+
hasBody: true,
|
|
71
|
+
shape: {
|
|
72
|
+
account: accountField(),
|
|
73
|
+
name: z.string().describe("Required. Label resource name."),
|
|
74
|
+
body: coerceJson(z.record(z.string(), z.unknown())).describe("GoogleAppsDriveLabelsV2EnableLabelRequest JSON request body. Top-level fields: languageCode, useAdminAccess, writeControl."),
|
|
75
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
76
|
+
},
|
|
77
|
+
});
|
|
78
|
+
registerGeneratedTool(registry, {
|
|
79
|
+
name: "drivelabels_labels_get",
|
|
80
|
+
cud: "read",
|
|
81
|
+
description: "Get a label by its resource name. For more information, see [Search for labels](https://developers.google.com/workspace/drive/labels/guides/search-label). Resou",
|
|
82
|
+
method: { id: "drivelabels.labels.get", httpMethod: "GET", path: "v2/{+name}", baseUrl: "https://drivelabels.googleapis.com/", requiredParams: ["name"] },
|
|
83
|
+
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" }],
|
|
84
|
+
hasBody: false,
|
|
85
|
+
shape: {
|
|
86
|
+
account: accountField(),
|
|
87
|
+
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}`"),
|
|
88
|
+
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(),
|
|
89
|
+
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(),
|
|
90
|
+
view: z.enum(["LABEL_VIEW_BASIC", "LABEL_VIEW_FULL"]).describe("When specified, only certain fields belonging to the indicated view are returned.").optional(),
|
|
91
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
92
|
+
},
|
|
93
|
+
});
|
|
94
|
+
registerGeneratedTool(registry, {
|
|
95
|
+
name: "drivelabels_labels_list",
|
|
96
|
+
cud: "read",
|
|
97
|
+
description: "List labels. For more information, see [Search for labels](https://developers.google.com/workspace/drive/labels/guides/search-label).",
|
|
98
|
+
method: { id: "drivelabels.labels.list", httpMethod: "GET", path: "v2/labels", baseUrl: "https://drivelabels.googleapis.com/", requiredParams: [] },
|
|
99
|
+
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" }],
|
|
100
|
+
hasBody: false,
|
|
101
|
+
shape: {
|
|
102
|
+
account: accountField(),
|
|
103
|
+
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(),
|
|
104
|
+
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(),
|
|
105
|
+
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(),
|
|
106
|
+
pageSize: z.number().describe("Maximum number of labels to return per page. Default: 50. Max: 200.").optional(),
|
|
107
|
+
pageToken: z.string().describe("The token of the page to return.").optional(),
|
|
108
|
+
publishedOnly: coerceBoolean.describe("Whether to include only published labels in the results. * When `true`, only the current published label revisions are returned. Disabled labels are included. Returned label resource names reference t").optional(),
|
|
109
|
+
useAdminAccess: coerceBoolean.describe("Set to `true` in order to use the user's admin credentials. This will return all labels within the customer.").optional(),
|
|
110
|
+
view: z.enum(["LABEL_VIEW_BASIC", "LABEL_VIEW_FULL"]).describe("When specified, only certain fields belonging to the indicated view are returned.").optional(),
|
|
111
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
112
|
+
},
|
|
113
|
+
});
|
|
114
|
+
registerGeneratedTool(registry, {
|
|
115
|
+
name: "drivelabels_labels_locks_list",
|
|
116
|
+
cud: "read",
|
|
117
|
+
description: "Lists the label locks on a label.",
|
|
118
|
+
method: { id: "drivelabels.labels.locks.list", httpMethod: "GET", path: "v2/{+parent}/locks", baseUrl: "https://drivelabels.googleapis.com/", requiredParams: ["parent"] },
|
|
119
|
+
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" }],
|
|
120
|
+
hasBody: false,
|
|
121
|
+
shape: {
|
|
122
|
+
account: accountField(),
|
|
123
|
+
parent: z.string().describe("Required. Label on which locks are applied. Format: `labels/{label}`."),
|
|
124
|
+
pageSize: z.number().describe("Maximum number of locks to return per page. Default: 100. Max: 200.").optional(),
|
|
125
|
+
pageToken: z.string().describe("The token of the page to return.").optional(),
|
|
126
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
127
|
+
},
|
|
128
|
+
});
|
|
129
|
+
registerGeneratedTool(registry, {
|
|
130
|
+
name: "drivelabels_labels_permissions_batch_delete",
|
|
131
|
+
cud: "delete",
|
|
132
|
+
description: "Deletes label permissions. Permissions affect the label resource as a whole, aren't revisioned, and don't require publishing.",
|
|
133
|
+
method: { id: "drivelabels.labels.permissions.batchDelete", httpMethod: "POST", path: "v2/{+parent}/permissions:batchDelete", baseUrl: "https://drivelabels.googleapis.com/", requiredParams: ["parent"] },
|
|
134
|
+
params: [{ "field": "parent", "api": "parent", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
135
|
+
hasBody: true,
|
|
136
|
+
shape: {
|
|
137
|
+
account: accountField(),
|
|
138
|
+
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 "),
|
|
139
|
+
body: coerceJson(z.record(z.string(), z.unknown())).describe("GoogleAppsDriveLabelsV2BatchDeleteLabelPermissionsRequest JSON request body. Top-level fields: requests, useAdminAccess."),
|
|
140
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
141
|
+
},
|
|
142
|
+
});
|
|
143
|
+
registerGeneratedTool(registry, {
|
|
144
|
+
name: "drivelabels_labels_permissions_batch_update",
|
|
145
|
+
cud: "create",
|
|
146
|
+
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",
|
|
147
|
+
method: { id: "drivelabels.labels.permissions.batchUpdate", httpMethod: "POST", path: "v2/{+parent}/permissions:batchUpdate", baseUrl: "https://drivelabels.googleapis.com/", requiredParams: ["parent"] },
|
|
148
|
+
params: [{ "field": "parent", "api": "parent", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
149
|
+
hasBody: true,
|
|
150
|
+
shape: {
|
|
151
|
+
account: accountField(),
|
|
152
|
+
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 "),
|
|
153
|
+
body: coerceJson(z.record(z.string(), z.unknown())).describe("GoogleAppsDriveLabelsV2BatchUpdateLabelPermissionsRequest JSON request body. Top-level fields: requests, useAdminAccess."),
|
|
154
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
155
|
+
},
|
|
156
|
+
});
|
|
157
|
+
registerGeneratedTool(registry, {
|
|
158
|
+
name: "drivelabels_labels_permissions_create",
|
|
159
|
+
cud: "create",
|
|
160
|
+
description: "Updates a label's permissions. If a permission for the indicated principal doesn't exist, a label permission is created, otherwise the existing permission is up",
|
|
161
|
+
method: { id: "drivelabels.labels.permissions.create", httpMethod: "POST", path: "v2/{+parent}/permissions", baseUrl: "https://drivelabels.googleapis.com/", requiredParams: ["parent"] },
|
|
162
|
+
params: [{ "field": "parent", "api": "parent", "location": "path" }, { "field": "useAdminAccess", "api": "useAdminAccess", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
163
|
+
hasBody: true,
|
|
164
|
+
shape: {
|
|
165
|
+
account: accountField(),
|
|
166
|
+
parent: z.string().describe("Required. The parent label resource name on the label permission is created. Format: `labels/{label}`."),
|
|
167
|
+
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(),
|
|
168
|
+
body: coerceJson(z.record(z.string(), z.unknown())).describe("GoogleAppsDriveLabelsV2LabelPermission JSON request body. Top-level fields: audience, email, group, name, person, role."),
|
|
169
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
170
|
+
},
|
|
171
|
+
});
|
|
172
|
+
registerGeneratedTool(registry, {
|
|
173
|
+
name: "drivelabels_labels_permissions_delete",
|
|
174
|
+
cud: "delete",
|
|
175
|
+
description: "Deletes a label's permission. Permissions affect the label resource as a whole, aren't revisioned, and don't require publishing.",
|
|
176
|
+
method: { id: "drivelabels.labels.permissions.delete", httpMethod: "DELETE", path: "v2/{+name}", baseUrl: "https://drivelabels.googleapis.com/", requiredParams: ["name"] },
|
|
177
|
+
params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "useAdminAccess", "api": "useAdminAccess", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
178
|
+
hasBody: false,
|
|
179
|
+
shape: {
|
|
180
|
+
account: accountField(),
|
|
181
|
+
name: z.string().describe("Required. Label permission resource name."),
|
|
182
|
+
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(),
|
|
183
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
184
|
+
},
|
|
185
|
+
});
|
|
186
|
+
registerGeneratedTool(registry, {
|
|
187
|
+
name: "drivelabels_labels_permissions_list",
|
|
188
|
+
cud: "read",
|
|
189
|
+
description: "Lists a label's permissions.",
|
|
190
|
+
method: { id: "drivelabels.labels.permissions.list", httpMethod: "GET", path: "v2/{+parent}/permissions", baseUrl: "https://drivelabels.googleapis.com/", requiredParams: ["parent"] },
|
|
191
|
+
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" }],
|
|
192
|
+
hasBody: false,
|
|
193
|
+
shape: {
|
|
194
|
+
account: accountField(),
|
|
195
|
+
parent: z.string().describe("Required. The parent label resource name on which label permissions are listed. Format: `labels/{label}`."),
|
|
196
|
+
pageSize: z.number().describe("Maximum number of permissions to return per page. Default: 50. Max: 200.").optional(),
|
|
197
|
+
pageToken: z.string().describe("The token of the page to return.").optional(),
|
|
198
|
+
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(),
|
|
199
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
200
|
+
},
|
|
201
|
+
});
|
|
202
|
+
registerGeneratedTool(registry, {
|
|
203
|
+
name: "drivelabels_labels_publish",
|
|
204
|
+
cud: "update",
|
|
205
|
+
description: "Publish all draft changes to the label. Once published, the label may not return to its draft state. For more information, see [Create and publish a label](http",
|
|
206
|
+
method: { id: "drivelabels.labels.publish", httpMethod: "POST", path: "v2/{+name}:publish", baseUrl: "https://drivelabels.googleapis.com/", requiredParams: ["name"] },
|
|
207
|
+
params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
208
|
+
hasBody: true,
|
|
209
|
+
shape: {
|
|
210
|
+
account: accountField(),
|
|
211
|
+
name: z.string().describe("Required. Label resource name."),
|
|
212
|
+
body: coerceJson(z.record(z.string(), z.unknown())).describe("GoogleAppsDriveLabelsV2PublishLabelRequest JSON request body. Top-level fields: languageCode, useAdminAccess, writeControl."),
|
|
213
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
214
|
+
},
|
|
215
|
+
});
|
|
216
|
+
registerGeneratedTool(registry, {
|
|
217
|
+
name: "drivelabels_labels_revisions_locks_list",
|
|
218
|
+
cud: "read",
|
|
219
|
+
description: "Lists the label locks on a label.",
|
|
220
|
+
method: { id: "drivelabels.labels.revisions.locks.list", httpMethod: "GET", path: "v2/{+parent}/locks", baseUrl: "https://drivelabels.googleapis.com/", requiredParams: ["parent"] },
|
|
221
|
+
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" }],
|
|
222
|
+
hasBody: false,
|
|
223
|
+
shape: {
|
|
224
|
+
account: accountField(),
|
|
225
|
+
parent: z.string().describe("Required. Label on which locks are applied. Format: `labels/{label}`."),
|
|
226
|
+
pageSize: z.number().describe("Maximum number of locks to return per page. Default: 100. Max: 200.").optional(),
|
|
227
|
+
pageToken: z.string().describe("The token of the page to return.").optional(),
|
|
228
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
229
|
+
},
|
|
230
|
+
});
|
|
231
|
+
registerGeneratedTool(registry, {
|
|
232
|
+
name: "drivelabels_labels_revisions_permissions_batch_delete",
|
|
233
|
+
cud: "delete",
|
|
234
|
+
description: "Deletes label permissions. Permissions affect the label resource as a whole, aren't revisioned, and don't require publishing.",
|
|
235
|
+
method: { id: "drivelabels.labels.revisions.permissions.batchDelete", httpMethod: "POST", path: "v2/{+parent}/permissions:batchDelete", baseUrl: "https://drivelabels.googleapis.com/", requiredParams: ["parent"] },
|
|
236
|
+
params: [{ "field": "parent", "api": "parent", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
237
|
+
hasBody: true,
|
|
238
|
+
shape: {
|
|
239
|
+
account: accountField(),
|
|
240
|
+
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 "),
|
|
241
|
+
body: coerceJson(z.record(z.string(), z.unknown())).describe("GoogleAppsDriveLabelsV2BatchDeleteLabelPermissionsRequest JSON request body. Top-level fields: requests, useAdminAccess."),
|
|
242
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
243
|
+
},
|
|
244
|
+
});
|
|
245
|
+
registerGeneratedTool(registry, {
|
|
246
|
+
name: "drivelabels_labels_revisions_permissions_batch_update",
|
|
247
|
+
cud: "create",
|
|
248
|
+
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",
|
|
249
|
+
method: { id: "drivelabels.labels.revisions.permissions.batchUpdate", httpMethod: "POST", path: "v2/{+parent}/permissions:batchUpdate", baseUrl: "https://drivelabels.googleapis.com/", requiredParams: ["parent"] },
|
|
250
|
+
params: [{ "field": "parent", "api": "parent", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
251
|
+
hasBody: true,
|
|
252
|
+
shape: {
|
|
253
|
+
account: accountField(),
|
|
254
|
+
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 "),
|
|
255
|
+
body: coerceJson(z.record(z.string(), z.unknown())).describe("GoogleAppsDriveLabelsV2BatchUpdateLabelPermissionsRequest JSON request body. Top-level fields: requests, useAdminAccess."),
|
|
256
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
257
|
+
},
|
|
258
|
+
});
|
|
259
|
+
registerGeneratedTool(registry, {
|
|
260
|
+
name: "drivelabels_labels_revisions_permissions_create",
|
|
261
|
+
cud: "create",
|
|
262
|
+
description: "Updates a label's permissions. If a permission for the indicated principal doesn't exist, a label permission is created, otherwise the existing permission is up",
|
|
263
|
+
method: { id: "drivelabels.labels.revisions.permissions.create", httpMethod: "POST", path: "v2/{+parent}/permissions", baseUrl: "https://drivelabels.googleapis.com/", requiredParams: ["parent"] },
|
|
264
|
+
params: [{ "field": "parent", "api": "parent", "location": "path" }, { "field": "useAdminAccess", "api": "useAdminAccess", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
265
|
+
hasBody: true,
|
|
266
|
+
shape: {
|
|
267
|
+
account: accountField(),
|
|
268
|
+
parent: z.string().describe("Required. The parent label resource name on the label permission is created. Format: `labels/{label}`."),
|
|
269
|
+
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(),
|
|
270
|
+
body: coerceJson(z.record(z.string(), z.unknown())).describe("GoogleAppsDriveLabelsV2LabelPermission JSON request body. Top-level fields: audience, email, group, name, person, role."),
|
|
271
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
272
|
+
},
|
|
273
|
+
});
|
|
274
|
+
registerGeneratedTool(registry, {
|
|
275
|
+
name: "drivelabels_labels_revisions_permissions_delete",
|
|
276
|
+
cud: "delete",
|
|
277
|
+
description: "Deletes a label's permission. Permissions affect the label resource as a whole, aren't revisioned, and don't require publishing.",
|
|
278
|
+
method: { id: "drivelabels.labels.revisions.permissions.delete", httpMethod: "DELETE", path: "v2/{+name}", baseUrl: "https://drivelabels.googleapis.com/", requiredParams: ["name"] },
|
|
279
|
+
params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "useAdminAccess", "api": "useAdminAccess", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
280
|
+
hasBody: false,
|
|
281
|
+
shape: {
|
|
282
|
+
account: accountField(),
|
|
283
|
+
name: z.string().describe("Required. Label permission resource name."),
|
|
284
|
+
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(),
|
|
285
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
286
|
+
},
|
|
287
|
+
});
|
|
288
|
+
registerGeneratedTool(registry, {
|
|
289
|
+
name: "drivelabels_labels_revisions_permissions_list",
|
|
290
|
+
cud: "read",
|
|
291
|
+
description: "Lists a label's permissions.",
|
|
292
|
+
method: { id: "drivelabels.labels.revisions.permissions.list", httpMethod: "GET", path: "v2/{+parent}/permissions", baseUrl: "https://drivelabels.googleapis.com/", requiredParams: ["parent"] },
|
|
293
|
+
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" }],
|
|
294
|
+
hasBody: false,
|
|
295
|
+
shape: {
|
|
296
|
+
account: accountField(),
|
|
297
|
+
parent: z.string().describe("Required. The parent label resource name on which label permissions are listed. Format: `labels/{label}`."),
|
|
298
|
+
pageSize: z.number().describe("Maximum number of permissions to return per page. Default: 50. Max: 200.").optional(),
|
|
299
|
+
pageToken: z.string().describe("The token of the page to return.").optional(),
|
|
300
|
+
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(),
|
|
301
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
302
|
+
},
|
|
303
|
+
});
|
|
304
|
+
registerGeneratedTool(registry, {
|
|
305
|
+
name: "drivelabels_labels_revisions_update_permissions",
|
|
306
|
+
cud: "update",
|
|
307
|
+
description: "Updates a label's permissions. If a permission for the indicated principal doesn't exist, a label permission is created, otherwise the existing permission is up",
|
|
308
|
+
method: { id: "drivelabels.labels.revisions.updatePermissions", httpMethod: "PATCH", path: "v2/{+parent}/permissions", baseUrl: "https://drivelabels.googleapis.com/", requiredParams: ["parent"] },
|
|
309
|
+
params: [{ "field": "parent", "api": "parent", "location": "path" }, { "field": "useAdminAccess", "api": "useAdminAccess", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
310
|
+
hasBody: true,
|
|
311
|
+
shape: {
|
|
312
|
+
account: accountField(),
|
|
313
|
+
parent: z.string().describe("Required. The parent label resource name."),
|
|
314
|
+
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(),
|
|
315
|
+
body: coerceJson(z.record(z.string(), z.unknown())).describe("GoogleAppsDriveLabelsV2LabelPermission JSON request body. Top-level fields: audience, email, group, name, person, role."),
|
|
316
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
317
|
+
},
|
|
318
|
+
});
|
|
319
|
+
registerGeneratedTool(registry, {
|
|
320
|
+
name: "drivelabels_labels_update_label_copy_mode",
|
|
321
|
+
cud: "update",
|
|
322
|
+
description: "Updates a label's `CopyMode`. Changes to this policy aren't revisioned, don't require publishing, and take effect immediately.",
|
|
323
|
+
method: { id: "drivelabels.labels.updateLabelCopyMode", httpMethod: "POST", path: "v2/{+name}:updateLabelCopyMode", baseUrl: "https://drivelabels.googleapis.com/", requiredParams: ["name"] },
|
|
324
|
+
params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
325
|
+
hasBody: true,
|
|
326
|
+
shape: {
|
|
327
|
+
account: accountField(),
|
|
328
|
+
name: z.string().describe("Required. The resource name of the label to update."),
|
|
329
|
+
body: coerceJson(z.record(z.string(), z.unknown())).describe("GoogleAppsDriveLabelsV2UpdateLabelCopyModeRequest JSON request body. Top-level fields: copyMode, languageCode, useAdminAccess, view."),
|
|
330
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
331
|
+
},
|
|
332
|
+
});
|
|
333
|
+
registerGeneratedTool(registry, {
|
|
334
|
+
name: "drivelabels_labels_update_label_enabled_app_settings",
|
|
335
|
+
cud: "update",
|
|
336
|
+
description: "Updates a label's `EnabledAppSettings`. Enabling a label in a Google Workspace app allows it to be used in that app. This change isn't revisioned, doesn't requi",
|
|
337
|
+
method: { id: "drivelabels.labels.updateLabelEnabledAppSettings", httpMethod: "POST", path: "v2/{+name}:updateLabelEnabledAppSettings", baseUrl: "https://drivelabels.googleapis.com/", requiredParams: ["name"] },
|
|
338
|
+
params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
339
|
+
hasBody: true,
|
|
340
|
+
shape: {
|
|
341
|
+
account: accountField(),
|
|
342
|
+
name: z.string().describe("Required. The resource name of the label to update. The resource name of the label to update."),
|
|
343
|
+
body: coerceJson(z.record(z.string(), z.unknown())).describe("GoogleAppsDriveLabelsV2UpdateLabelEnabledAppSettingsRequest JSON request body. Top-level fields: enabledAppSettings, languageCode, useAdminAccess, view."),
|
|
344
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
345
|
+
},
|
|
346
|
+
});
|
|
347
|
+
registerGeneratedTool(registry, {
|
|
348
|
+
name: "drivelabels_labels_update_permissions",
|
|
349
|
+
cud: "update",
|
|
350
|
+
description: "Updates a label's permissions. If a permission for the indicated principal doesn't exist, a label permission is created, otherwise the existing permission is up",
|
|
351
|
+
method: { id: "drivelabels.labels.updatePermissions", httpMethod: "PATCH", path: "v2/{+parent}/permissions", baseUrl: "https://drivelabels.googleapis.com/", requiredParams: ["parent"] },
|
|
352
|
+
params: [{ "field": "parent", "api": "parent", "location": "path" }, { "field": "useAdminAccess", "api": "useAdminAccess", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
353
|
+
hasBody: true,
|
|
354
|
+
shape: {
|
|
355
|
+
account: accountField(),
|
|
356
|
+
parent: z.string().describe("Required. The parent label resource name."),
|
|
357
|
+
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(),
|
|
358
|
+
body: coerceJson(z.record(z.string(), z.unknown())).describe("GoogleAppsDriveLabelsV2LabelPermission JSON request body. Top-level fields: audience, email, group, name, person, role."),
|
|
359
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
360
|
+
},
|
|
361
|
+
});
|
|
362
|
+
registerGeneratedTool(registry, {
|
|
363
|
+
name: "drivelabels_limits_get_label",
|
|
364
|
+
cud: "read",
|
|
365
|
+
description: "Get the constraints on the structure of a label; such as, the maximum number of fields allowed and maximum length of the label title.",
|
|
366
|
+
method: { id: "drivelabels.limits.getLabel", httpMethod: "GET", path: "v2/limits/label", baseUrl: "https://drivelabels.googleapis.com/", requiredParams: [] },
|
|
367
|
+
params: [{ "field": "name", "api": "name", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
368
|
+
hasBody: false,
|
|
369
|
+
shape: {
|
|
370
|
+
account: accountField(),
|
|
371
|
+
name: z.string().describe("Required. Label revision resource name must be: \"limits/label\".").optional(),
|
|
372
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
373
|
+
},
|
|
374
|
+
});
|
|
375
|
+
registerGeneratedTool(registry, {
|
|
376
|
+
name: "drivelabels_users_get_capabilities",
|
|
377
|
+
cud: "read",
|
|
378
|
+
description: "Gets the user capabilities.",
|
|
379
|
+
method: { id: "drivelabels.users.getCapabilities", httpMethod: "GET", path: "v2/{+name}", baseUrl: "https://drivelabels.googleapis.com/", requiredParams: ["name"] },
|
|
380
|
+
params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "customer", "api": "customer", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
381
|
+
hasBody: false,
|
|
382
|
+
shape: {
|
|
383
|
+
account: accountField(),
|
|
384
|
+
name: z.string().describe("Required. The resource name of the user. Only \"users/me/capabilities\" is supported."),
|
|
385
|
+
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(),
|
|
386
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
387
|
+
},
|
|
388
|
+
});
|
|
389
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
// GENERATED by scripts/gen-tools.ts — do not edit. Regenerate: npm run gen:tools
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
import { coerceJson } from '../_coerce.js';
|
|
4
|
+
import { accountField, registerGeneratedTool } from './_shared.js';
|
|
5
|
+
export function registerFormsGeneratedTools(registry) {
|
|
6
|
+
registerGeneratedTool(registry, {
|
|
7
|
+
name: "forms_forms_watches_create",
|
|
8
|
+
cud: "create",
|
|
9
|
+
description: "Create a new watch. If a watch ID is provided, it must be unused. For each invoking project, the per form limit is one watch per Watch.EventType. A watch expire",
|
|
10
|
+
method: { id: "forms.forms.watches.create", httpMethod: "POST", path: "v1/forms/{formId}/watches", baseUrl: "https://forms.googleapis.com/", requiredParams: ["formId"] },
|
|
11
|
+
params: [{ "field": "formId", "api": "formId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
12
|
+
hasBody: true,
|
|
13
|
+
shape: {
|
|
14
|
+
account: accountField(),
|
|
15
|
+
formId: z.string().describe("Required. ID of the Form to watch."),
|
|
16
|
+
body: coerceJson(z.record(z.string(), z.unknown())).describe("CreateWatchRequest JSON request body. Top-level fields: watch, watchId."),
|
|
17
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
18
|
+
},
|
|
19
|
+
});
|
|
20
|
+
registerGeneratedTool(registry, {
|
|
21
|
+
name: "forms_forms_watches_delete",
|
|
22
|
+
cud: "delete",
|
|
23
|
+
description: "Delete a watch.",
|
|
24
|
+
method: { id: "forms.forms.watches.delete", httpMethod: "DELETE", path: "v1/forms/{formId}/watches/{watchId}", baseUrl: "https://forms.googleapis.com/", requiredParams: ["formId", "watchId"] },
|
|
25
|
+
params: [{ "field": "formId", "api": "formId", "location": "path" }, { "field": "watchId", "api": "watchId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
26
|
+
hasBody: false,
|
|
27
|
+
shape: {
|
|
28
|
+
account: accountField(),
|
|
29
|
+
formId: z.string().describe("Required. The ID of the Form."),
|
|
30
|
+
watchId: z.string().describe("Required. The ID of the Watch to delete."),
|
|
31
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
32
|
+
},
|
|
33
|
+
});
|
|
34
|
+
registerGeneratedTool(registry, {
|
|
35
|
+
name: "forms_forms_watches_renew",
|
|
36
|
+
cud: "create",
|
|
37
|
+
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",
|
|
38
|
+
method: { id: "forms.forms.watches.renew", httpMethod: "POST", path: "v1/forms/{formId}/watches/{watchId}:renew", baseUrl: "https://forms.googleapis.com/", requiredParams: ["formId", "watchId"] },
|
|
39
|
+
params: [{ "field": "formId", "api": "formId", "location": "path" }, { "field": "watchId", "api": "watchId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
40
|
+
hasBody: true,
|
|
41
|
+
shape: {
|
|
42
|
+
account: accountField(),
|
|
43
|
+
formId: z.string().describe("Required. The ID of the Form."),
|
|
44
|
+
watchId: z.string().describe("Required. The ID of the Watch to renew."),
|
|
45
|
+
body: coerceJson(z.record(z.string(), z.unknown())).describe("RenewWatchRequest JSON request body."),
|
|
46
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
47
|
+
},
|
|
48
|
+
});
|
|
49
|
+
}
|