mcp-google-multi 5.2.0-alpha.1 → 5.2.0-alpha.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.
Files changed (64) hide show
  1. package/dist/auth.js +33 -0
  2. package/dist/discovery-client.js +13 -0
  3. package/dist/executor.d.ts +39 -0
  4. package/dist/executor.js +75 -0
  5. package/dist/index.js +42 -3
  6. package/dist/registry.js +3 -2
  7. package/dist/tools/generated/_shared.d.ts +21 -0
  8. package/dist/tools/generated/_shared.js +35 -0
  9. package/dist/tools/generated/admin.d.ts +2 -0
  10. package/dist/tools/generated/admin.js +1937 -0
  11. package/dist/tools/generated/appsmarket.d.ts +2 -0
  12. package/dist/tools/generated/appsmarket.js +33 -0
  13. package/dist/tools/generated/calendar.d.ts +2 -0
  14. package/dist/tools/generated/calendar.js +428 -0
  15. package/dist/tools/generated/chat.d.ts +2 -0
  16. package/dist/tools/generated/chat.js +666 -0
  17. package/dist/tools/generated/classroom.d.ts +2 -0
  18. package/dist/tools/generated/classroom.js +1610 -0
  19. package/dist/tools/generated/cloudidentity.d.ts +2 -0
  20. package/dist/tools/generated/cloudidentity.js +955 -0
  21. package/dist/tools/generated/cloudsearch.d.ts +2 -0
  22. package/dist/tools/generated/cloudsearch.js +754 -0
  23. package/dist/tools/generated/contacts.d.ts +2 -0
  24. package/dist/tools/generated/contacts.js +215 -0
  25. package/dist/tools/generated/drive.d.ts +2 -0
  26. package/dist/tools/generated/drive.js +543 -0
  27. package/dist/tools/generated/driveactivity.d.ts +2 -0
  28. package/dist/tools/generated/driveactivity.js +19 -0
  29. package/dist/tools/generated/drivelabels.d.ts +2 -0
  30. package/dist/tools/generated/drivelabels.js +389 -0
  31. package/dist/tools/generated/forms.d.ts +2 -0
  32. package/dist/tools/generated/forms.js +49 -0
  33. package/dist/tools/generated/gmail.d.ts +2 -0
  34. package/dist/tools/generated/gmail.js +835 -0
  35. package/dist/tools/generated/groupsmigration.d.ts +2 -0
  36. package/dist/tools/generated/groupsmigration.js +18 -0
  37. package/dist/tools/generated/groupssettings.d.ts +2 -0
  38. package/dist/tools/generated/groupssettings.js +47 -0
  39. package/dist/tools/generated/index.d.ts +5 -0
  40. package/dist/tools/generated/index.js +54 -0
  41. package/dist/tools/generated/keep.d.ts +2 -0
  42. package/dist/tools/generated/keep.js +102 -0
  43. package/dist/tools/generated/licensing.d.ts +2 -0
  44. package/dist/tools/generated/licensing.js +116 -0
  45. package/dist/tools/generated/meet.d.ts +2 -0
  46. package/dist/tools/generated/meet.js +186 -0
  47. package/dist/tools/generated/postmaster.d.ts +2 -0
  48. package/dist/tools/generated/postmaster.js +66 -0
  49. package/dist/tools/generated/reseller.d.ts +2 -0
  50. package/dist/tools/generated/reseller.js +249 -0
  51. package/dist/tools/generated/script.d.ts +2 -0
  52. package/dist/tools/generated/script.js +249 -0
  53. package/dist/tools/generated/searchconsole.d.ts +2 -0
  54. package/dist/tools/generated/searchconsole.js +19 -0
  55. package/dist/tools/generated/sheets.d.ts +2 -0
  56. package/dist/tools/generated/sheets.js +105 -0
  57. package/dist/tools/generated/tasks.d.ts +2 -0
  58. package/dist/tools/generated/tasks.js +35 -0
  59. package/dist/tools/generated/vault.d.ts +2 -0
  60. package/dist/tools/generated/vault.js +479 -0
  61. package/dist/tools/generated/workspaceevents.d.ts +2 -0
  62. package/dist/tools/generated/workspaceevents.js +223 -0
  63. package/dist/tools/google-api.js +9 -71
  64. package/package.json +3 -2
@@ -0,0 +1,543 @@
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 registerDriveGeneratedTools(registry) {
6
+ registerGeneratedTool(registry, {
7
+ name: "drive_accessproposals_get",
8
+ cud: "read",
9
+ description: "Retrieves an access proposal by ID. For more information, see [Manage pending access proposals](https://developers.google.com/workspace/drive/api/guides/pending",
10
+ method: { id: "drive.accessproposals.get", httpMethod: "GET", path: "files/{fileId}/accessproposals/{proposalId}", baseUrl: "https://www.googleapis.com/drive/v3/", requiredParams: ["fileId", "proposalId"] },
11
+ params: [{ "field": "fileId", "api": "fileId", "location": "path" }, { "field": "proposalId", "api": "proposalId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
12
+ hasBody: false,
13
+ shape: {
14
+ account: accountField(),
15
+ fileId: z.string().describe("Required. The ID of the item the request is on."),
16
+ proposalId: z.string().describe("Required. The ID of the access proposal to resolve."),
17
+ fields: z.string().optional().describe('Response field mask.'),
18
+ },
19
+ });
20
+ registerGeneratedTool(registry, {
21
+ name: "drive_approvals_approve",
22
+ cud: "create",
23
+ description: "Approves an approval. For more information, see [Manage approvals](https://developers.google.com/workspace/drive/api/guides/approvals). This is used to update t",
24
+ method: { id: "drive.approvals.approve", httpMethod: "POST", path: "files/{fileId}/approvals/{approvalId}:approve", baseUrl: "https://www.googleapis.com/drive/v3/", requiredParams: ["fileId", "approvalId"] },
25
+ params: [{ "field": "approvalId", "api": "approvalId", "location": "path" }, { "field": "fileId", "api": "fileId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
26
+ hasBody: true,
27
+ shape: {
28
+ account: accountField(),
29
+ approvalId: z.string().describe("Required. The ID of the approval to approve."),
30
+ fileId: z.string().describe("Required. The ID of the file that the approval is on."),
31
+ body: coerceJson(z.record(z.string(), z.unknown())).describe("ApproveApprovalRequest JSON request body. Top-level fields: message."),
32
+ fields: z.string().optional().describe('Response field mask.'),
33
+ },
34
+ });
35
+ registerGeneratedTool(registry, {
36
+ name: "drive_approvals_cancel",
37
+ cud: "create",
38
+ description: "Cancels an approval. For more information, see [Manage approvals](https://developers.google.com/workspace/drive/api/guides/approvals). Updates the approval Stat",
39
+ method: { id: "drive.approvals.cancel", httpMethod: "POST", path: "files/{fileId}/approvals/{approvalId}:cancel", baseUrl: "https://www.googleapis.com/drive/v3/", requiredParams: ["fileId", "approvalId"] },
40
+ params: [{ "field": "approvalId", "api": "approvalId", "location": "path" }, { "field": "fileId", "api": "fileId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
41
+ hasBody: true,
42
+ shape: {
43
+ account: accountField(),
44
+ approvalId: z.string().describe("Required. The ID of the approval to cancel."),
45
+ fileId: z.string().describe("Required. The ID of the file that the approval is on."),
46
+ body: coerceJson(z.record(z.string(), z.unknown())).describe("CancelApprovalRequest JSON request body. Top-level fields: message."),
47
+ fields: z.string().optional().describe('Response field mask.'),
48
+ },
49
+ });
50
+ registerGeneratedTool(registry, {
51
+ name: "drive_approvals_comment",
52
+ cud: "create",
53
+ description: "Comments on an approval. For more information, see [Manage approvals](https://developers.google.com/workspace/drive/api/guides/approvals). This sends a notifica",
54
+ method: { id: "drive.approvals.comment", httpMethod: "POST", path: "files/{fileId}/approvals/{approvalId}:comment", baseUrl: "https://www.googleapis.com/drive/v3/", requiredParams: ["approvalId", "fileId"] },
55
+ params: [{ "field": "approvalId", "api": "approvalId", "location": "path" }, { "field": "fileId", "api": "fileId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
56
+ hasBody: true,
57
+ shape: {
58
+ account: accountField(),
59
+ approvalId: z.string().describe("Required. The ID of the approval to comment on."),
60
+ fileId: z.string().describe("Required. The ID of the file that the approval is on."),
61
+ body: coerceJson(z.record(z.string(), z.unknown())).describe("CommentApprovalRequest JSON request body. Top-level fields: message."),
62
+ fields: z.string().optional().describe('Response field mask.'),
63
+ },
64
+ });
65
+ registerGeneratedTool(registry, {
66
+ name: "drive_approvals_decline",
67
+ cud: "create",
68
+ description: "Declines an approval. For more information, see [Manage approvals](https://developers.google.com/workspace/drive/api/guides/approvals). This is used to update t",
69
+ method: { id: "drive.approvals.decline", httpMethod: "POST", path: "files/{fileId}/approvals/{approvalId}:decline", baseUrl: "https://www.googleapis.com/drive/v3/", requiredParams: ["approvalId", "fileId"] },
70
+ params: [{ "field": "approvalId", "api": "approvalId", "location": "path" }, { "field": "fileId", "api": "fileId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
71
+ hasBody: true,
72
+ shape: {
73
+ account: accountField(),
74
+ approvalId: z.string().describe("Required. The ID of the approval to decline."),
75
+ fileId: z.string().describe("Required. The ID of the file that the approval is on."),
76
+ body: coerceJson(z.record(z.string(), z.unknown())).describe("DeclineApprovalRequest JSON request body. Top-level fields: message."),
77
+ fields: z.string().optional().describe('Response field mask.'),
78
+ },
79
+ });
80
+ registerGeneratedTool(registry, {
81
+ name: "drive_approvals_get",
82
+ cud: "read",
83
+ description: "Gets an approval by ID. For more information, see [Manage approvals](https://developers.google.com/workspace/drive/api/guides/approvals).",
84
+ method: { id: "drive.approvals.get", httpMethod: "GET", path: "files/{fileId}/approvals/{approvalId}", baseUrl: "https://www.googleapis.com/drive/v3/", requiredParams: ["approvalId", "fileId"] },
85
+ params: [{ "field": "approvalId", "api": "approvalId", "location": "path" }, { "field": "fileId", "api": "fileId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
86
+ hasBody: false,
87
+ shape: {
88
+ account: accountField(),
89
+ approvalId: z.string().describe("Required. The ID of the approval."),
90
+ fileId: z.string().describe("Required. The ID of the file that the approval is on."),
91
+ fields: z.string().optional().describe('Response field mask.'),
92
+ },
93
+ });
94
+ registerGeneratedTool(registry, {
95
+ name: "drive_approvals_list",
96
+ cud: "read",
97
+ description: "Lists the approvals on a file. For more information, see [Manage approvals](https://developers.google.com/workspace/drive/api/guides/approvals).",
98
+ method: { id: "drive.approvals.list", httpMethod: "GET", path: "files/{fileId}/approvals", baseUrl: "https://www.googleapis.com/drive/v3/", requiredParams: ["fileId"] },
99
+ params: [{ "field": "fileId", "api": "fileId", "location": "path" }, { "field": "pageSize", "api": "pageSize", "location": "query" }, { "field": "pageToken", "api": "pageToken", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
100
+ hasBody: false,
101
+ shape: {
102
+ account: accountField(),
103
+ fileId: z.string().describe("Required. The ID of the file that the approval is on."),
104
+ pageSize: z.number().describe("The maximum number of approvals to return. When not set, at most 100 approvals are returned.").optional(),
105
+ pageToken: z.string().describe("The token for continuing a previous list request on the next page. This should be set to the value of `nextPageToken` from a previous response.").optional(),
106
+ fields: z.string().optional().describe('Response field mask.'),
107
+ },
108
+ });
109
+ registerGeneratedTool(registry, {
110
+ name: "drive_approvals_reassign",
111
+ cud: "create",
112
+ description: "Reassigns the reviewers on an approval. For more information, see [Manage approvals](https://developers.google.com/workspace/drive/api/guides/approvals). Adds o",
113
+ method: { id: "drive.approvals.reassign", httpMethod: "POST", path: "files/{fileId}/approvals/{approvalId}:reassign", baseUrl: "https://www.googleapis.com/drive/v3/", requiredParams: ["fileId", "approvalId"] },
114
+ params: [{ "field": "approvalId", "api": "approvalId", "location": "path" }, { "field": "fileId", "api": "fileId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
115
+ hasBody: true,
116
+ shape: {
117
+ account: accountField(),
118
+ approvalId: z.string().describe("Required. The ID of the approval to reassign."),
119
+ fileId: z.string().describe("Required. The ID of the file that the approval is on."),
120
+ body: coerceJson(z.record(z.string(), z.unknown())).describe("ReassignApprovalRequest JSON request body. Top-level fields: addReviewers, message, replaceReviewers."),
121
+ fields: z.string().optional().describe('Response field mask.'),
122
+ },
123
+ });
124
+ registerGeneratedTool(registry, {
125
+ name: "drive_approvals_start",
126
+ cud: "create",
127
+ description: "Starts an approval on a file. For more information, see [Manage approvals](https://developers.google.com/workspace/drive/api/guides/approvals).",
128
+ method: { id: "drive.approvals.start", httpMethod: "POST", path: "files/{fileId}/approvals:start", baseUrl: "https://www.googleapis.com/drive/v3/", requiredParams: ["fileId"] },
129
+ params: [{ "field": "fileId", "api": "fileId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
130
+ hasBody: true,
131
+ shape: {
132
+ account: accountField(),
133
+ fileId: z.string().describe("Required. The ID of the file that the approval is created on."),
134
+ body: coerceJson(z.record(z.string(), z.unknown())).describe("StartApprovalRequest JSON request body. Top-level fields: dueTime, fileContentChangeBehavior, lockFile, message, reviewerEmails."),
135
+ fields: z.string().optional().describe('Response field mask.'),
136
+ },
137
+ });
138
+ registerGeneratedTool(registry, {
139
+ name: "drive_apps_get",
140
+ cud: "read",
141
+ description: "Gets a specific app. For more information, see [Return user info](https://developers.google.com/workspace/drive/api/guides/user-info).",
142
+ method: { id: "drive.apps.get", httpMethod: "GET", path: "apps/{appId}", baseUrl: "https://www.googleapis.com/drive/v3/", requiredParams: ["appId"] },
143
+ params: [{ "field": "appId", "api": "appId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
144
+ hasBody: false,
145
+ shape: {
146
+ account: accountField(),
147
+ appId: z.string().describe("The ID of the app."),
148
+ fields: z.string().optional().describe('Response field mask.'),
149
+ },
150
+ });
151
+ registerGeneratedTool(registry, {
152
+ name: "drive_apps_list",
153
+ cud: "read",
154
+ description: "Lists a user's installed apps. For more information, see [Return user info](https://developers.google.com/workspace/drive/api/guides/user-info).",
155
+ method: { id: "drive.apps.list", httpMethod: "GET", path: "apps", baseUrl: "https://www.googleapis.com/drive/v3/", requiredParams: [] },
156
+ params: [{ "field": "appFilterExtensions", "api": "appFilterExtensions", "location": "query" }, { "field": "appFilterMimeTypes", "api": "appFilterMimeTypes", "location": "query" }, { "field": "languageCode", "api": "languageCode", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
157
+ hasBody: false,
158
+ shape: {
159
+ account: accountField(),
160
+ appFilterExtensions: z.string().describe("A comma-separated list of file extensions to limit returned results. All results within the given app query scope which can open any of the given file extensions are included in the response. If `appF").optional(),
161
+ appFilterMimeTypes: z.string().describe("A comma-separated list of file extensions to limit returned results. All results within the given app query scope which can open any of the given MIME types will be included in the response. If `appFi").optional(),
162
+ languageCode: z.string().describe("A language or locale code, as defined by BCP 47, with some extensions from Unicode's LDML format (http://www.unicode.org/reports/tr35/).").optional(),
163
+ fields: z.string().optional().describe('Response field mask.'),
164
+ },
165
+ });
166
+ registerGeneratedTool(registry, {
167
+ name: "drive_changes_get_start_page_token",
168
+ cud: "read",
169
+ description: "Gets the starting pageToken for listing future changes. For more information, see [Retrieve changes](https://developers.google.com/workspace/drive/api/guides/ma",
170
+ method: { id: "drive.changes.getStartPageToken", httpMethod: "GET", path: "changes/startPageToken", baseUrl: "https://www.googleapis.com/drive/v3/", requiredParams: [] },
171
+ params: [{ "field": "driveId", "api": "driveId", "location": "query" }, { "field": "supportsAllDrives", "api": "supportsAllDrives", "location": "query" }, { "field": "supportsTeamDrives", "api": "supportsTeamDrives", "location": "query" }, { "field": "teamDriveId", "api": "teamDriveId", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
172
+ hasBody: false,
173
+ shape: {
174
+ account: accountField(),
175
+ driveId: z.string().describe("The ID of the shared drive for which the starting pageToken for listing future changes from that shared drive will be returned.").optional(),
176
+ supportsAllDrives: coerceBoolean.describe("Whether the requesting application supports both My Drives and shared drives.").optional(),
177
+ supportsTeamDrives: coerceBoolean.describe("Deprecated: Use `supportsAllDrives` instead.").optional(),
178
+ teamDriveId: z.string().describe("Deprecated: Use `driveId` instead.").optional(),
179
+ fields: z.string().optional().describe('Response field mask.'),
180
+ },
181
+ });
182
+ registerGeneratedTool(registry, {
183
+ name: "drive_changes_list",
184
+ cud: "read",
185
+ description: "Lists the changes for a user or shared drive. For more information, see [Retrieve changes](https://developers.google.com/workspace/drive/api/guides/manage-chang",
186
+ method: { id: "drive.changes.list", httpMethod: "GET", path: "changes", baseUrl: "https://www.googleapis.com/drive/v3/", requiredParams: ["pageToken"] },
187
+ params: [{ "field": "pageToken", "api": "pageToken", "location": "query" }, { "field": "driveId", "api": "driveId", "location": "query" }, { "field": "includeCorpusRemovals", "api": "includeCorpusRemovals", "location": "query" }, { "field": "includeItemsFromAllDrives", "api": "includeItemsFromAllDrives", "location": "query" }, { "field": "includeLabels", "api": "includeLabels", "location": "query" }, { "field": "includePermissionsForView", "api": "includePermissionsForView", "location": "query" }, { "field": "includeRemoved", "api": "includeRemoved", "location": "query" }, { "field": "includeTeamDriveItems", "api": "includeTeamDriveItems", "location": "query" }, { "field": "pageSize", "api": "pageSize", "location": "query" }, { "field": "restrictToMyDrive", "api": "restrictToMyDrive", "location": "query" }, { "field": "spaces", "api": "spaces", "location": "query" }, { "field": "supportsAllDrives", "api": "supportsAllDrives", "location": "query" }, { "field": "supportsTeamDrives", "api": "supportsTeamDrives", "location": "query" }, { "field": "teamDriveId", "api": "teamDriveId", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
188
+ hasBody: false,
189
+ shape: {
190
+ account: accountField(),
191
+ pageToken: z.string().describe("The token for continuing a previous list request on the next page. This should be set to the value of 'nextPageToken' from the previous response or to the response from the getStartPageToken method."),
192
+ driveId: z.string().describe("The shared drive from which changes will be returned. If specified the change IDs will be reflective of the shared drive; use the combined drive ID and change ID as an identifier.").optional(),
193
+ includeCorpusRemovals: coerceBoolean.describe("Whether changes should include the file resource if the file is still accessible by the user at the time of the request, even when a file was removed from the list of changes and there will be no furt").optional(),
194
+ includeItemsFromAllDrives: coerceBoolean.describe("Whether both My Drive and shared drive items should be included in results.").optional(),
195
+ includeLabels: z.string().describe("A comma-separated list of IDs of labels to include in the `labelInfo` part of the response.").optional(),
196
+ includePermissionsForView: z.string().describe("Specifies which additional view's permissions to include in the response. Only 'published' is supported.").optional(),
197
+ includeRemoved: coerceBoolean.describe("Whether to include changes indicating that items have been removed from the list of changes, for example by deletion or loss of access.").optional(),
198
+ includeTeamDriveItems: coerceBoolean.describe("Deprecated: Use `includeItemsFromAllDrives` instead.").optional(),
199
+ pageSize: z.number().describe("The maximum number of changes to return. The service may return fewer than this value. If unspecified, at most 100 changes will be returned. The maximum value is 1000; values above 1000 will be coerce").optional(),
200
+ restrictToMyDrive: coerceBoolean.describe("Whether to restrict the results to changes inside the My Drive hierarchy. This omits changes to files such as those in the Application Data folder or shared files which have not been added to My Drive").optional(),
201
+ spaces: z.string().describe("A comma-separated list of spaces to query within the corpora. Supported values are 'drive' and 'appDataFolder'.").optional(),
202
+ supportsAllDrives: coerceBoolean.describe("Whether the requesting application supports both My Drives and shared drives.").optional(),
203
+ supportsTeamDrives: coerceBoolean.describe("Deprecated: Use `supportsAllDrives` instead.").optional(),
204
+ teamDriveId: z.string().describe("Deprecated: Use `driveId` instead.").optional(),
205
+ fields: z.string().optional().describe('Response field mask.'),
206
+ },
207
+ });
208
+ registerGeneratedTool(registry, {
209
+ name: "drive_changes_watch",
210
+ cud: "create",
211
+ description: "Subscribes to changes for a user. For more information, see [Notifications for resource changes](https://developers.google.com/workspace/drive/api/guides/push).",
212
+ method: { id: "drive.changes.watch", httpMethod: "POST", path: "changes/watch", baseUrl: "https://www.googleapis.com/drive/v3/", requiredParams: ["pageToken"] },
213
+ params: [{ "field": "pageToken", "api": "pageToken", "location": "query" }, { "field": "driveId", "api": "driveId", "location": "query" }, { "field": "includeCorpusRemovals", "api": "includeCorpusRemovals", "location": "query" }, { "field": "includeItemsFromAllDrives", "api": "includeItemsFromAllDrives", "location": "query" }, { "field": "includeLabels", "api": "includeLabels", "location": "query" }, { "field": "includePermissionsForView", "api": "includePermissionsForView", "location": "query" }, { "field": "includeRemoved", "api": "includeRemoved", "location": "query" }, { "field": "includeTeamDriveItems", "api": "includeTeamDriveItems", "location": "query" }, { "field": "pageSize", "api": "pageSize", "location": "query" }, { "field": "restrictToMyDrive", "api": "restrictToMyDrive", "location": "query" }, { "field": "spaces", "api": "spaces", "location": "query" }, { "field": "supportsAllDrives", "api": "supportsAllDrives", "location": "query" }, { "field": "supportsTeamDrives", "api": "supportsTeamDrives", "location": "query" }, { "field": "teamDriveId", "api": "teamDriveId", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
214
+ hasBody: true,
215
+ shape: {
216
+ account: accountField(),
217
+ pageToken: z.string().describe("The token for continuing a previous list request on the next page. This should be set to the value of 'nextPageToken' from the previous response or to the response from the getStartPageToken method."),
218
+ driveId: z.string().describe("The shared drive from which changes will be returned. If specified the change IDs will be reflective of the shared drive; use the combined drive ID and change ID as an identifier.").optional(),
219
+ includeCorpusRemovals: coerceBoolean.describe("Whether changes should include the file resource if the file is still accessible by the user at the time of the request, even when a file was removed from the list of changes and there will be no furt").optional(),
220
+ includeItemsFromAllDrives: coerceBoolean.describe("Whether both My Drive and shared drive items should be included in results.").optional(),
221
+ includeLabels: z.string().describe("A comma-separated list of IDs of labels to include in the `labelInfo` part of the response.").optional(),
222
+ includePermissionsForView: z.string().describe("Specifies which additional view's permissions to include in the response. Only 'published' is supported.").optional(),
223
+ includeRemoved: coerceBoolean.describe("Whether to include changes indicating that items have been removed from the list of changes, for example by deletion or loss of access.").optional(),
224
+ includeTeamDriveItems: coerceBoolean.describe("Deprecated: Use `includeItemsFromAllDrives` instead.").optional(),
225
+ pageSize: z.number().describe("The maximum number of changes to return. The service may return fewer than this value. If unspecified, at most 100 changes will be returned. The maximum value is 1000; values above 1000 will be coerce").optional(),
226
+ restrictToMyDrive: coerceBoolean.describe("Whether to restrict the results to changes inside the My Drive hierarchy. This omits changes to files such as those in the Application Data folder or shared files which have not been added to My Drive").optional(),
227
+ spaces: z.string().describe("A comma-separated list of spaces to query within the corpora. Supported values are 'drive' and 'appDataFolder'.").optional(),
228
+ supportsAllDrives: coerceBoolean.describe("Whether the requesting application supports both My Drives and shared drives.").optional(),
229
+ supportsTeamDrives: coerceBoolean.describe("Deprecated: Use `supportsAllDrives` instead.").optional(),
230
+ teamDriveId: z.string().describe("Deprecated: Use `driveId` instead.").optional(),
231
+ body: coerceJson(z.record(z.string(), z.unknown())).describe("Channel JSON request body. Top-level fields: address, expiration, id, kind, params, payload, resourceId, resourceUri, token, type."),
232
+ fields: z.string().optional().describe('Response field mask.'),
233
+ },
234
+ });
235
+ registerGeneratedTool(registry, {
236
+ name: "drive_channels_stop",
237
+ cud: "create",
238
+ description: "Stops watching resources through this channel. For more information, see [Notifications for resource changes](https://developers.google.com/workspace/drive/api/",
239
+ method: { id: "drive.channels.stop", httpMethod: "POST", path: "channels/stop", baseUrl: "https://www.googleapis.com/drive/v3/", requiredParams: [] },
240
+ params: [{ "field": "fields", "api": "fields", "location": "query" }],
241
+ hasBody: true,
242
+ shape: {
243
+ account: accountField(),
244
+ body: coerceJson(z.record(z.string(), z.unknown())).describe("Channel JSON request body. Top-level fields: address, expiration, id, kind, params, payload, resourceId, resourceUri, token, type."),
245
+ fields: z.string().optional().describe('Response field mask.'),
246
+ },
247
+ });
248
+ registerGeneratedTool(registry, {
249
+ name: "drive_drives_create",
250
+ cud: "create",
251
+ description: "Creates a shared drive. For more information, see [Manage shared drives](https://developers.google.com/workspace/drive/api/guides/manage-shareddrives).",
252
+ method: { id: "drive.drives.create", httpMethod: "POST", path: "drives", baseUrl: "https://www.googleapis.com/drive/v3/", requiredParams: ["requestId"] },
253
+ params: [{ "field": "requestId", "api": "requestId", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
254
+ hasBody: true,
255
+ shape: {
256
+ account: accountField(),
257
+ requestId: z.string().describe("Required. An ID, such as a random UUID, which uniquely identifies this user's request for idempotent creation of a shared drive. A repeated request by the same user and with the same request ID will a"),
258
+ body: coerceJson(z.record(z.string(), z.unknown())).describe("Drive JSON request body. Top-level fields: backgroundImageFile, backgroundImageLink, capabilities, colorRgb, createdTime, hidden, id, kind, name, orgUnitId, restrictions, themeId."),
259
+ fields: z.string().optional().describe('Response field mask.'),
260
+ },
261
+ });
262
+ registerGeneratedTool(registry, {
263
+ name: "drive_drives_delete",
264
+ cud: "delete",
265
+ description: "Permanently deletes a shared drive for which the user is an `organizer`. The shared drive cannot contain any untrashed items. For more information, see [Manage",
266
+ method: { id: "drive.drives.delete", httpMethod: "DELETE", path: "drives/{driveId}", baseUrl: "https://www.googleapis.com/drive/v3/", requiredParams: ["driveId"] },
267
+ params: [{ "field": "driveId", "api": "driveId", "location": "path" }, { "field": "allowItemDeletion", "api": "allowItemDeletion", "location": "query" }, { "field": "useDomainAdminAccess", "api": "useDomainAdminAccess", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
268
+ hasBody: false,
269
+ shape: {
270
+ account: accountField(),
271
+ driveId: z.string().describe("The ID of the shared drive."),
272
+ allowItemDeletion: coerceBoolean.describe("Whether any items inside the shared drive should also be deleted. This option is only supported when `useDomainAdminAccess` is also set to `true`.").optional(),
273
+ useDomainAdminAccess: coerceBoolean.describe("Issue the request as a domain administrator; if set to true, then the requester will be granted access if they are an administrator of the domain to which the shared drive belongs.").optional(),
274
+ fields: z.string().optional().describe('Response field mask.'),
275
+ },
276
+ });
277
+ registerGeneratedTool(registry, {
278
+ name: "drive_drives_hide",
279
+ cud: "create",
280
+ description: "Hides a shared drive from the default view. For more information, see [Manage shared drives](https://developers.google.com/workspace/drive/api/guides/manage-sha",
281
+ method: { id: "drive.drives.hide", httpMethod: "POST", path: "drives/{driveId}/hide", baseUrl: "https://www.googleapis.com/drive/v3/", requiredParams: ["driveId"] },
282
+ params: [{ "field": "driveId", "api": "driveId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
283
+ hasBody: false,
284
+ shape: {
285
+ account: accountField(),
286
+ driveId: z.string().describe("The ID of the shared drive."),
287
+ fields: z.string().optional().describe('Response field mask.'),
288
+ },
289
+ });
290
+ registerGeneratedTool(registry, {
291
+ name: "drive_drives_unhide",
292
+ cud: "create",
293
+ description: "Restores a shared drive to the default view. For more information, see [Manage shared drives](https://developers.google.com/workspace/drive/api/guides/manage-sh",
294
+ method: { id: "drive.drives.unhide", httpMethod: "POST", path: "drives/{driveId}/unhide", baseUrl: "https://www.googleapis.com/drive/v3/", requiredParams: ["driveId"] },
295
+ params: [{ "field": "driveId", "api": "driveId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
296
+ hasBody: false,
297
+ shape: {
298
+ account: accountField(),
299
+ driveId: z.string().describe("The ID of the shared drive."),
300
+ fields: z.string().optional().describe('Response field mask.'),
301
+ },
302
+ });
303
+ registerGeneratedTool(registry, {
304
+ name: "drive_drives_update",
305
+ cud: "update",
306
+ description: "Updates the metadata for a shared drive. For more information, see [Manage shared drives](https://developers.google.com/workspace/drive/api/guides/manage-shared",
307
+ method: { id: "drive.drives.update", httpMethod: "PATCH", path: "drives/{driveId}", baseUrl: "https://www.googleapis.com/drive/v3/", requiredParams: ["driveId"] },
308
+ params: [{ "field": "driveId", "api": "driveId", "location": "path" }, { "field": "useDomainAdminAccess", "api": "useDomainAdminAccess", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
309
+ hasBody: true,
310
+ shape: {
311
+ account: accountField(),
312
+ driveId: z.string().describe("The ID of the shared drive."),
313
+ useDomainAdminAccess: coerceBoolean.describe("Issue the request as a domain administrator; if set to true, then the requester will be granted access if they are an administrator of the domain to which the shared drive belongs.").optional(),
314
+ body: coerceJson(z.record(z.string(), z.unknown())).describe("Drive JSON request body. Top-level fields: backgroundImageFile, backgroundImageLink, capabilities, colorRgb, createdTime, hidden, id, kind, name, orgUnitId, restrictions, themeId."),
315
+ fields: z.string().optional().describe('Response field mask.'),
316
+ },
317
+ });
318
+ registerGeneratedTool(registry, {
319
+ name: "drive_files_download",
320
+ cud: "read",
321
+ description: "Downloads the content of a file. For more information, see [Download and export files](https://developers.google.com/workspace/drive/api/guides/manage-downloads",
322
+ method: { id: "drive.files.download", httpMethod: "POST", path: "files/{fileId}/download", baseUrl: "https://www.googleapis.com/drive/v3/", requiredParams: ["fileId"] },
323
+ params: [{ "field": "fileId", "api": "fileId", "location": "path" }, { "field": "mimeType", "api": "mimeType", "location": "query" }, { "field": "revisionId", "api": "revisionId", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
324
+ hasBody: false,
325
+ shape: {
326
+ account: accountField(),
327
+ fileId: z.string().describe("Required. The ID of the file to download."),
328
+ mimeType: z.string().describe("Optional. The MIME type the file should be downloaded as. This field can only be set when downloading Google Workspace documents. For a list of supported MIME types, see [Export MIME types for Google ").optional(),
329
+ revisionId: z.string().describe("Optional. The revision ID of the file to download. This field can only be set when downloading blob files, Google Docs, and Google Sheets. Returns `INVALID_ARGUMENT` if downloading a specific revision").optional(),
330
+ fields: z.string().optional().describe('Response field mask.'),
331
+ },
332
+ });
333
+ registerGeneratedTool(registry, {
334
+ name: "drive_files_generate_cse_token",
335
+ cud: "read",
336
+ description: "Generates a CSE token which can be used to create or update CSE files.",
337
+ method: { id: "drive.files.generateCseToken", httpMethod: "GET", path: "files/generateCseToken", baseUrl: "https://www.googleapis.com/drive/v3/", requiredParams: [] },
338
+ params: [{ "field": "fileId", "api": "fileId", "location": "query" }, { "field": "parent", "api": "parent", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
339
+ hasBody: false,
340
+ shape: {
341
+ account: accountField(),
342
+ fileId: z.string().describe("The ID of the file for which the JWT should be generated. If not provided, an id will be generated.").optional(),
343
+ parent: z.string().describe("The ID of the expected parent of the file. Used when generating a JWT for a new CSE file. If specified, the parent will be fetched, and if the parent is a shared drive item, the shared drive's policy ").optional(),
344
+ fields: z.string().optional().describe('Response field mask.'),
345
+ },
346
+ });
347
+ registerGeneratedTool(registry, {
348
+ name: "drive_files_generate_ids",
349
+ cud: "read",
350
+ description: "Generates a set of file IDs which can be provided in create or copy requests. For more information, see [Create and manage files](https://developers.google.com/",
351
+ method: { id: "drive.files.generateIds", httpMethod: "GET", path: "files/generateIds", baseUrl: "https://www.googleapis.com/drive/v3/", requiredParams: [] },
352
+ params: [{ "field": "count", "api": "count", "location": "query" }, { "field": "space", "api": "space", "location": "query" }, { "field": "type", "api": "type", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
353
+ hasBody: false,
354
+ shape: {
355
+ account: accountField(),
356
+ count: z.number().describe("The number of IDs to return.").optional(),
357
+ space: z.string().describe("The space in which the IDs can be used to create files. Supported values are `drive` and `appDataFolder`. (Default: `drive`.) For more information, see [File organization](https://developers.google.co").optional(),
358
+ type: z.string().describe("The type of items which the IDs can be used for. Supported values are `files` and `shortcuts`. Note that `shortcuts` are only supported in the `drive` `space`. (Default: `files`.) For more information").optional(),
359
+ fields: z.string().optional().describe('Response field mask.'),
360
+ },
361
+ });
362
+ registerGeneratedTool(registry, {
363
+ name: "drive_files_list_labels",
364
+ cud: "read",
365
+ description: "Lists the labels on a file. For more information, see [List labels on a file](https://developers.google.com/workspace/drive/api/guides/list-labels).",
366
+ method: { id: "drive.files.listLabels", httpMethod: "GET", path: "files/{fileId}/listLabels", baseUrl: "https://www.googleapis.com/drive/v3/", requiredParams: ["fileId"] },
367
+ params: [{ "field": "fileId", "api": "fileId", "location": "path" }, { "field": "maxResults", "api": "maxResults", "location": "query" }, { "field": "pageToken", "api": "pageToken", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
368
+ hasBody: false,
369
+ shape: {
370
+ account: accountField(),
371
+ fileId: z.string().describe("The ID for the file."),
372
+ maxResults: z.number().describe("The maximum number of labels to return per page. When not set, defaults to 100.").optional(),
373
+ pageToken: z.string().describe("The token for continuing a previous list request on the next page. This should be set to the value of `nextPageToken` from the previous response.").optional(),
374
+ fields: z.string().optional().describe('Response field mask.'),
375
+ },
376
+ });
377
+ registerGeneratedTool(registry, {
378
+ name: "drive_files_modify_labels",
379
+ cud: "update",
380
+ description: "Modifies the set of labels applied to a file. For more information, see [Set a label field on a file](https://developers.google.com/workspace/drive/api/guides/s",
381
+ method: { id: "drive.files.modifyLabels", httpMethod: "POST", path: "files/{fileId}/modifyLabels", baseUrl: "https://www.googleapis.com/drive/v3/", requiredParams: ["fileId"] },
382
+ params: [{ "field": "fileId", "api": "fileId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
383
+ hasBody: true,
384
+ shape: {
385
+ account: accountField(),
386
+ fileId: z.string().describe("The ID of the file to which the labels belong."),
387
+ body: coerceJson(z.record(z.string(), z.unknown())).describe("ModifyLabelsRequest JSON request body. Top-level fields: kind, labelModifications."),
388
+ fields: z.string().optional().describe('Response field mask.'),
389
+ },
390
+ });
391
+ registerGeneratedTool(registry, {
392
+ name: "drive_files_watch",
393
+ cud: "create",
394
+ description: "Subscribes to changes to a file. For more information, see [Notifications for resource changes](https://developers.google.com/workspace/drive/api/guides/push).",
395
+ method: { id: "drive.files.watch", httpMethod: "POST", path: "files/{fileId}/watch", baseUrl: "https://www.googleapis.com/drive/v3/", requiredParams: ["fileId"] },
396
+ params: [{ "field": "fileId", "api": "fileId", "location": "path" }, { "field": "acknowledgeAbuse", "api": "acknowledgeAbuse", "location": "query" }, { "field": "includeLabels", "api": "includeLabels", "location": "query" }, { "field": "includePermissionsForView", "api": "includePermissionsForView", "location": "query" }, { "field": "supportsAllDrives", "api": "supportsAllDrives", "location": "query" }, { "field": "supportsTeamDrives", "api": "supportsTeamDrives", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
397
+ hasBody: true,
398
+ shape: {
399
+ account: accountField(),
400
+ fileId: z.string().describe("The ID of the file."),
401
+ acknowledgeAbuse: coerceBoolean.describe("Whether the user is acknowledging the risk of downloading known malware or other abusive files. This is only applicable when the `alt` parameter is set to `media` and the user is the owner of the file").optional(),
402
+ includeLabels: z.string().describe("A comma-separated list of IDs of labels to include in the `labelInfo` part of the response.").optional(),
403
+ includePermissionsForView: z.string().describe("Specifies which additional view's permissions to include in the response. Only `published` is supported.").optional(),
404
+ supportsAllDrives: coerceBoolean.describe("Whether the requesting application supports both My Drives and shared drives.").optional(),
405
+ supportsTeamDrives: coerceBoolean.describe("Deprecated: Use `supportsAllDrives` instead.").optional(),
406
+ body: coerceJson(z.record(z.string(), z.unknown())).describe("Channel JSON request body. Top-level fields: address, expiration, id, kind, params, payload, resourceId, resourceUri, token, type."),
407
+ fields: z.string().optional().describe('Response field mask.'),
408
+ },
409
+ });
410
+ registerGeneratedTool(registry, {
411
+ name: "drive_operations_get",
412
+ cud: "read",
413
+ description: "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.",
414
+ method: { id: "drive.operations.get", httpMethod: "GET", path: "operations/{name}", baseUrl: "https://www.googleapis.com/drive/v3/", requiredParams: ["name"] },
415
+ params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
416
+ hasBody: false,
417
+ shape: {
418
+ account: accountField(),
419
+ name: z.string().describe("The name of the operation resource."),
420
+ fields: z.string().optional().describe('Response field mask.'),
421
+ },
422
+ });
423
+ registerGeneratedTool(registry, {
424
+ name: "drive_permissions_get",
425
+ cud: "read",
426
+ description: "Gets a permission by ID. For more information, see [Share files, folders, and drives](https://developers.google.com/workspace/drive/api/guides/manage-sharing).",
427
+ method: { id: "drive.permissions.get", httpMethod: "GET", path: "files/{fileId}/permissions/{permissionId}", baseUrl: "https://www.googleapis.com/drive/v3/", requiredParams: ["permissionId", "fileId"] },
428
+ params: [{ "field": "fileId", "api": "fileId", "location": "path" }, { "field": "permissionId", "api": "permissionId", "location": "path" }, { "field": "supportsAllDrives", "api": "supportsAllDrives", "location": "query" }, { "field": "supportsTeamDrives", "api": "supportsTeamDrives", "location": "query" }, { "field": "useDomainAdminAccess", "api": "useDomainAdminAccess", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
429
+ hasBody: false,
430
+ shape: {
431
+ account: accountField(),
432
+ fileId: z.string().describe("The ID of the file."),
433
+ permissionId: z.string().describe("The ID of the permission."),
434
+ supportsAllDrives: coerceBoolean.describe("Whether the requesting application supports both My Drives and shared drives.").optional(),
435
+ supportsTeamDrives: coerceBoolean.describe("Deprecated: Use `supportsAllDrives` instead.").optional(),
436
+ useDomainAdminAccess: coerceBoolean.describe("Issue the request as a domain administrator. If set to `true`, and if the following additional conditions are met, the requester is granted access: 1. The file ID parameter refers to a shared drive. 2").optional(),
437
+ fields: z.string().optional().describe('Response field mask.'),
438
+ },
439
+ });
440
+ registerGeneratedTool(registry, {
441
+ name: "drive_replies_get",
442
+ cud: "read",
443
+ description: "Gets a reply by ID. For more information, see [Manage comments and replies](https://developers.google.com/workspace/drive/api/guides/manage-comments).",
444
+ method: { id: "drive.replies.get", httpMethod: "GET", path: "files/{fileId}/comments/{commentId}/replies/{replyId}", baseUrl: "https://www.googleapis.com/drive/v3/", requiredParams: ["fileId", "replyId", "commentId"] },
445
+ params: [{ "field": "commentId", "api": "commentId", "location": "path" }, { "field": "fileId", "api": "fileId", "location": "path" }, { "field": "replyId", "api": "replyId", "location": "path" }, { "field": "includeDeleted", "api": "includeDeleted", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
446
+ hasBody: false,
447
+ shape: {
448
+ account: accountField(),
449
+ commentId: z.string().describe("The ID of the comment."),
450
+ fileId: z.string().describe("The ID of the file."),
451
+ replyId: z.string().describe("The ID of the reply."),
452
+ includeDeleted: coerceBoolean.describe("Whether to return deleted replies. Deleted replies don't include their original content.").optional(),
453
+ fields: z.string().optional().describe('Response field mask.'),
454
+ },
455
+ });
456
+ registerGeneratedTool(registry, {
457
+ name: "drive_revisions_get",
458
+ cud: "read",
459
+ description: "Gets a revision's metadata or content by ID. For more information, see [Manage file revisions](https://developers.google.com/workspace/drive/api/guides/manage-r",
460
+ method: { id: "drive.revisions.get", httpMethod: "GET", path: "files/{fileId}/revisions/{revisionId}", baseUrl: "https://www.googleapis.com/drive/v3/", requiredParams: ["fileId", "revisionId"] },
461
+ params: [{ "field": "fileId", "api": "fileId", "location": "path" }, { "field": "revisionId", "api": "revisionId", "location": "path" }, { "field": "acknowledgeAbuse", "api": "acknowledgeAbuse", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
462
+ hasBody: false,
463
+ shape: {
464
+ account: accountField(),
465
+ fileId: z.string().describe("The ID of the file."),
466
+ revisionId: z.string().describe("The ID of the revision."),
467
+ acknowledgeAbuse: coerceBoolean.describe("Whether the user is acknowledging the risk of downloading known malware or other abusive files. This is only applicable when the `alt` parameter is set to `media` and the user is the owner of the file").optional(),
468
+ fields: z.string().optional().describe('Response field mask.'),
469
+ },
470
+ });
471
+ registerGeneratedTool(registry, {
472
+ name: "drive_teamdrives_create",
473
+ cud: "create",
474
+ description: "Deprecated: Use `drives.create` instead.",
475
+ method: { id: "drive.teamdrives.create", httpMethod: "POST", path: "teamdrives", baseUrl: "https://www.googleapis.com/drive/v3/", requiredParams: ["requestId"] },
476
+ params: [{ "field": "requestId", "api": "requestId", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
477
+ hasBody: true,
478
+ shape: {
479
+ account: accountField(),
480
+ requestId: z.string().describe("Required. An ID, such as a random UUID, which uniquely identifies this user's request for idempotent creation of a Team Drive. A repeated request by the same user and with the same request ID will avo"),
481
+ body: coerceJson(z.record(z.string(), z.unknown())).describe("TeamDrive JSON request body. Top-level fields: backgroundImageFile, backgroundImageLink, capabilities, colorRgb, createdTime, id, kind, name, orgUnitId, restrictions, themeId."),
482
+ fields: z.string().optional().describe('Response field mask.'),
483
+ },
484
+ });
485
+ registerGeneratedTool(registry, {
486
+ name: "drive_teamdrives_delete",
487
+ cud: "delete",
488
+ description: "Deprecated: Use `drives.delete` instead.",
489
+ method: { id: "drive.teamdrives.delete", httpMethod: "DELETE", path: "teamdrives/{teamDriveId}", baseUrl: "https://www.googleapis.com/drive/v3/", requiredParams: ["teamDriveId"] },
490
+ params: [{ "field": "teamDriveId", "api": "teamDriveId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
491
+ hasBody: false,
492
+ shape: {
493
+ account: accountField(),
494
+ teamDriveId: z.string().describe("The ID of the Team Drive"),
495
+ fields: z.string().optional().describe('Response field mask.'),
496
+ },
497
+ });
498
+ registerGeneratedTool(registry, {
499
+ name: "drive_teamdrives_get",
500
+ cud: "read",
501
+ description: "Deprecated: Use `drives.get` instead.",
502
+ method: { id: "drive.teamdrives.get", httpMethod: "GET", path: "teamdrives/{teamDriveId}", baseUrl: "https://www.googleapis.com/drive/v3/", requiredParams: ["teamDriveId"] },
503
+ params: [{ "field": "teamDriveId", "api": "teamDriveId", "location": "path" }, { "field": "useDomainAdminAccess", "api": "useDomainAdminAccess", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
504
+ hasBody: false,
505
+ shape: {
506
+ account: accountField(),
507
+ teamDriveId: z.string().describe("The ID of the Team Drive"),
508
+ useDomainAdminAccess: coerceBoolean.describe("Issue the request as a domain administrator; if set to true, then the requester will be granted access if they are an administrator of the domain to which the Team Drive belongs.").optional(),
509
+ fields: z.string().optional().describe('Response field mask.'),
510
+ },
511
+ });
512
+ registerGeneratedTool(registry, {
513
+ name: "drive_teamdrives_list",
514
+ cud: "read",
515
+ description: "Deprecated: Use `drives.list` instead.",
516
+ method: { id: "drive.teamdrives.list", httpMethod: "GET", path: "teamdrives", baseUrl: "https://www.googleapis.com/drive/v3/", requiredParams: [] },
517
+ params: [{ "field": "pageSize", "api": "pageSize", "location": "query" }, { "field": "pageToken", "api": "pageToken", "location": "query" }, { "field": "q", "api": "q", "location": "query" }, { "field": "useDomainAdminAccess", "api": "useDomainAdminAccess", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
518
+ hasBody: false,
519
+ shape: {
520
+ account: accountField(),
521
+ pageSize: z.number().describe("Maximum number of Team Drives to return.").optional(),
522
+ pageToken: z.string().describe("Page token for Team Drives.").optional(),
523
+ q: z.string().describe("Query string for searching Team Drives.").optional(),
524
+ useDomainAdminAccess: coerceBoolean.describe("Issue the request as a domain administrator; if set to true, then all Team Drives of the domain in which the requester is an administrator are returned.").optional(),
525
+ fields: z.string().optional().describe('Response field mask.'),
526
+ },
527
+ });
528
+ registerGeneratedTool(registry, {
529
+ name: "drive_teamdrives_update",
530
+ cud: "update",
531
+ description: "Deprecated: Use `drives.update` instead.",
532
+ method: { id: "drive.teamdrives.update", httpMethod: "PATCH", path: "teamdrives/{teamDriveId}", baseUrl: "https://www.googleapis.com/drive/v3/", requiredParams: ["teamDriveId"] },
533
+ params: [{ "field": "teamDriveId", "api": "teamDriveId", "location": "path" }, { "field": "useDomainAdminAccess", "api": "useDomainAdminAccess", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
534
+ hasBody: true,
535
+ shape: {
536
+ account: accountField(),
537
+ teamDriveId: z.string().describe("The ID of the Team Drive"),
538
+ useDomainAdminAccess: coerceBoolean.describe("Issue the request as a domain administrator; if set to true, then the requester will be granted access if they are an administrator of the domain to which the Team Drive belongs.").optional(),
539
+ body: coerceJson(z.record(z.string(), z.unknown())).describe("TeamDrive JSON request body. Top-level fields: backgroundImageFile, backgroundImageLink, capabilities, colorRgb, createdTime, id, kind, name, orgUnitId, restrictions, themeId."),
540
+ fields: z.string().optional().describe('Response field mask.'),
541
+ },
542
+ });
543
+ }
@@ -0,0 +1,2 @@
1
+ import type { ToolRegistry } from '../../registry.js';
2
+ export declare function registerDriveactivityGeneratedTools(registry: ToolRegistry): void;
@@ -0,0 +1,19 @@
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 registerDriveactivityGeneratedTools(registry) {
6
+ registerGeneratedTool(registry, {
7
+ name: "driveactivity_activity_query",
8
+ cud: "read",
9
+ description: "Query past activity in Google Drive.",
10
+ method: { id: "driveactivity.activity.query", httpMethod: "POST", path: "v2/activity:query", baseUrl: "https://driveactivity.googleapis.com/", requiredParams: [] },
11
+ params: [{ "field": "fields", "api": "fields", "location": "query" }],
12
+ hasBody: true,
13
+ shape: {
14
+ account: accountField(),
15
+ body: coerceJson(z.record(z.string(), z.unknown())).describe("QueryDriveActivityRequest JSON request body. Top-level fields: ancestorName, consolidationStrategy, filter, itemName, pageSize, pageToken."),
16
+ fields: z.string().optional().describe('Response field mask.'),
17
+ },
18
+ });
19
+ }
@@ -0,0 +1,2 @@
1
+ import type { ToolRegistry } from '../../registry.js';
2
+ export declare function registerDrivelabelsGeneratedTools(registry: ToolRegistry): void;