mcp-google-multi 6.0.0-beta.2 → 6.0.0-beta.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (165) hide show
  1. package/dist/accounts.d.ts +17 -1
  2. package/dist/accounts.js +52 -15
  3. package/dist/api-probe.d.ts +5 -0
  4. package/dist/api-probe.js +20 -15
  5. package/dist/arg-normalize.js +6 -5
  6. package/dist/arg-strict.d.ts +7 -0
  7. package/dist/arg-strict.js +34 -4
  8. package/dist/auth.d.ts +4 -3
  9. package/dist/auth.js +11 -13
  10. package/dist/boot-gates.d.ts +26 -0
  11. package/dist/boot-gates.js +38 -0
  12. package/dist/cimd-cache.d.ts +38 -0
  13. package/dist/cimd-cache.js +117 -0
  14. package/dist/client.d.ts +32 -2
  15. package/dist/client.js +0 -0
  16. package/dist/compose.d.ts +11 -0
  17. package/dist/compose.js +109 -0
  18. package/dist/config-file.d.ts +13 -0
  19. package/dist/config-file.js +37 -1
  20. package/dist/discover.js +3 -1
  21. package/dist/discovery-client.d.ts +3 -0
  22. package/dist/discovery-client.js +25 -2
  23. package/dist/doctor.d.ts +6 -2
  24. package/dist/doctor.js +119 -23
  25. package/dist/executor.d.ts +3 -0
  26. package/dist/executor.js +4 -2
  27. package/dist/fanout.d.ts +9 -1
  28. package/dist/fanout.js +44 -10
  29. package/dist/fs-atomic.d.ts +11 -0
  30. package/dist/fs-atomic.js +219 -28
  31. package/dist/hint-provider.d.ts +129 -0
  32. package/dist/hint-provider.js +64 -0
  33. package/dist/http-transport.d.ts +62 -4
  34. package/dist/http-transport.js +343 -24
  35. package/dist/identity.d.ts +4 -1
  36. package/dist/identity.js +25 -6
  37. package/dist/index.js +66 -138
  38. package/dist/master-key.js +13 -5
  39. package/dist/mcp-token.d.ts +136 -19
  40. package/dist/mcp-token.js +569 -72
  41. package/dist/migrate-config.js +2 -2
  42. package/dist/oauth-as.d.ts +103 -3
  43. package/dist/oauth-as.js +374 -79
  44. package/dist/oauth-consent.d.ts +10 -0
  45. package/dist/oauth-consent.js +16 -0
  46. package/dist/outbound-allowlist.js +5 -2
  47. package/dist/reauth-hint.d.ts +1 -1
  48. package/dist/reauth-hint.js +12 -8
  49. package/dist/registry-transfer.d.ts +5 -0
  50. package/dist/registry-transfer.js +65 -5
  51. package/dist/registry.d.ts +18 -1
  52. package/dist/registry.js +71 -15
  53. package/dist/scope-catalog.d.ts +11 -0
  54. package/dist/scope-catalog.js +23 -6
  55. package/dist/scope-observability.d.ts +8 -6
  56. package/dist/scope-observability.js +29 -13
  57. package/dist/services.d.ts +15 -10
  58. package/dist/services.js +59 -15
  59. package/dist/ssrf-guard.d.ts +23 -9
  60. package/dist/ssrf-guard.js +101 -62
  61. package/dist/tenant-purge.d.ts +26 -0
  62. package/dist/tenant-purge.js +67 -0
  63. package/dist/token-store.d.ts +20 -2
  64. package/dist/token-store.js +0 -0
  65. package/dist/tools/_errors.d.ts +3 -0
  66. package/dist/tools/_errors.js +53 -24
  67. package/dist/tools/_local-files.d.ts +9 -0
  68. package/dist/tools/_local-files.js +18 -0
  69. package/dist/tools/account-wizard.d.ts +10 -1
  70. package/dist/tools/account-wizard.js +74 -17
  71. package/dist/tools/accounts-tool.d.ts +7 -0
  72. package/dist/tools/accounts-tool.js +34 -18
  73. package/dist/tools/admin.d.ts +10 -1
  74. package/dist/tools/admin.js +15 -11
  75. package/dist/tools/analytics.d.ts +10 -1
  76. package/dist/tools/analytics.js +13 -8
  77. package/dist/tools/calendar.d.ts +2 -1
  78. package/dist/tools/calendar.js +18 -14
  79. package/dist/tools/chat.d.ts +10 -1
  80. package/dist/tools/chat.js +13 -8
  81. package/dist/tools/contacts.d.ts +2 -1
  82. package/dist/tools/contacts.js +17 -13
  83. package/dist/tools/docs.d.ts +2 -1
  84. package/dist/tools/docs.js +34 -30
  85. package/dist/tools/drive.d.ts +2 -1
  86. package/dist/tools/drive.js +65 -50
  87. package/dist/tools/forms.d.ts +10 -1
  88. package/dist/tools/forms.js +19 -12
  89. package/dist/tools/generated/_shared.d.ts +2 -1
  90. package/dist/tools/generated/_shared.js +7 -3
  91. package/dist/tools/generated/admin.d.ts +2 -1
  92. package/dist/tools/generated/admin.js +265 -265
  93. package/dist/tools/generated/analytics.d.ts +2 -1
  94. package/dist/tools/generated/analytics.js +125 -125
  95. package/dist/tools/generated/appsmarket.d.ts +2 -1
  96. package/dist/tools/generated/appsmarket.js +5 -5
  97. package/dist/tools/generated/calendar.d.ts +2 -1
  98. package/dist/tools/generated/calendar.js +55 -55
  99. package/dist/tools/generated/chat.d.ts +2 -1
  100. package/dist/tools/generated/chat.js +95 -95
  101. package/dist/tools/generated/classroom.d.ts +2 -1
  102. package/dist/tools/generated/classroom.js +209 -209
  103. package/dist/tools/generated/cloudidentity.d.ts +2 -1
  104. package/dist/tools/generated/cloudidentity.js +133 -133
  105. package/dist/tools/generated/cloudsearch.d.ts +2 -1
  106. package/dist/tools/generated/cloudsearch.js +99 -99
  107. package/dist/tools/generated/contacts.d.ts +2 -1
  108. package/dist/tools/generated/contacts.js +29 -29
  109. package/dist/tools/generated/drive.d.ts +2 -1
  110. package/dist/tools/generated/drive.js +71 -71
  111. package/dist/tools/generated/driveactivity.d.ts +2 -1
  112. package/dist/tools/generated/driveactivity.js +3 -3
  113. package/dist/tools/generated/drivelabels.d.ts +2 -1
  114. package/dist/tools/generated/drivelabels.js +53 -53
  115. package/dist/tools/generated/forms.d.ts +2 -1
  116. package/dist/tools/generated/forms.js +7 -7
  117. package/dist/tools/generated/gmail.d.ts +2 -1
  118. package/dist/tools/generated/gmail.js +117 -117
  119. package/dist/tools/generated/groupsmigration.d.ts +2 -1
  120. package/dist/tools/generated/groupsmigration.js +3 -3
  121. package/dist/tools/generated/groupssettings.d.ts +2 -1
  122. package/dist/tools/generated/groupssettings.js +7 -7
  123. package/dist/tools/generated/index.d.ts +2 -1
  124. package/dist/tools/generated/keep.d.ts +2 -1
  125. package/dist/tools/generated/keep.js +15 -15
  126. package/dist/tools/generated/licensing.d.ts +2 -1
  127. package/dist/tools/generated/licensing.js +15 -15
  128. package/dist/tools/generated/meet.d.ts +2 -1
  129. package/dist/tools/generated/meet.js +27 -27
  130. package/dist/tools/generated/postmaster.d.ts +2 -1
  131. package/dist/tools/generated/postmaster.js +9 -9
  132. package/dist/tools/generated/reseller.d.ts +2 -1
  133. package/dist/tools/generated/reseller.js +35 -35
  134. package/dist/tools/generated/script.d.ts +2 -1
  135. package/dist/tools/generated/script.js +33 -33
  136. package/dist/tools/generated/searchconsole.d.ts +2 -1
  137. package/dist/tools/generated/searchconsole.js +3 -3
  138. package/dist/tools/generated/sheets.d.ts +2 -1
  139. package/dist/tools/generated/sheets.js +15 -15
  140. package/dist/tools/generated/tasks.d.ts +2 -1
  141. package/dist/tools/generated/tasks.js +5 -5
  142. package/dist/tools/generated/vault.d.ts +2 -1
  143. package/dist/tools/generated/vault.js +67 -67
  144. package/dist/tools/generated/workspaceevents.d.ts +2 -1
  145. package/dist/tools/generated/workspaceevents.js +31 -31
  146. package/dist/tools/gmail.d.ts +2 -1
  147. package/dist/tools/gmail.js +45 -33
  148. package/dist/tools/google-api.d.ts +2 -3
  149. package/dist/tools/google-api.js +30 -16
  150. package/dist/tools/meet.d.ts +10 -1
  151. package/dist/tools/meet.js +13 -9
  152. package/dist/tools/searchconsole.d.ts +2 -1
  153. package/dist/tools/searchconsole.js +17 -13
  154. package/dist/tools/sheets.d.ts +2 -1
  155. package/dist/tools/sheets.js +36 -32
  156. package/dist/tools/slides.d.ts +10 -1
  157. package/dist/tools/slides.js +17 -10
  158. package/dist/tools/tasks.d.ts +2 -1
  159. package/dist/tools/tasks.js +19 -15
  160. package/dist/trim.d.ts +5 -0
  161. package/dist/trim.js +20 -0
  162. package/dist/usage-metrics.d.ts +23 -0
  163. package/dist/usage-metrics.js +65 -47
  164. package/dist/write-control.js +10 -2
  165. package/package.json +27 -1
@@ -2,7 +2,7 @@
2
2
  import { z } from 'zod';
3
3
  import { coerceArray, coerceBoolean, coerceJson } from '../_coerce.js';
4
4
  import { accountField, registerGeneratedTool } from './_shared.js';
5
- export function registerDriveGeneratedTools(registry) {
5
+ export function registerDriveGeneratedTools(registry, deps = {}) {
6
6
  // Interned method scope sets (shared across tools; see scope-observability).
7
7
  const S_drive_v3 = [
8
8
  ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file", "https://www.googleapis.com/auth/drive.metadata", "https://www.googleapis.com/auth/drive.metadata.readonly", "https://www.googleapis.com/auth/drive.readonly"],
@@ -27,12 +27,12 @@ export function registerDriveGeneratedTools(registry) {
27
27
  params: [{ "field": "fileId", "api": "fileId", "location": "path" }, { "field": "proposalId", "api": "proposalId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
28
28
  hasBody: false,
29
29
  shape: {
30
- account: accountField(),
30
+ account: accountField(() => registry.accountAliases()),
31
31
  fileId: z.string().min(1).describe("Required. The ID of the item the request is on."),
32
32
  proposalId: z.string().min(1).describe("Required. The ID of the access proposal to resolve."),
33
33
  fields: z.string().optional().describe('Response field mask.'),
34
34
  },
35
- });
35
+ }, deps);
36
36
  registerGeneratedTool(registry, {
37
37
  name: "drive_approvals_approve",
38
38
  cud: "update",
@@ -42,13 +42,13 @@ export function registerDriveGeneratedTools(registry) {
42
42
  hasBody: true,
43
43
  bodyParams: [{ "field": "message", "api": "message" }],
44
44
  shape: {
45
- account: accountField(),
45
+ account: accountField(() => registry.accountAliases()),
46
46
  approvalId: z.string().min(1).describe("Required. The ID of the approval to approve."),
47
47
  fileId: z.string().min(1).describe("Required. The ID of the file that the approval is on."),
48
48
  message: z.string().describe("Optional. A message to accompany the reviewer response on the approval. This message is included in notifications for the action and in the approval activity log.").optional(),
49
49
  fields: z.string().optional().describe('Response field mask.'),
50
50
  },
51
- });
51
+ }, deps);
52
52
  registerGeneratedTool(registry, {
53
53
  name: "drive_approvals_cancel",
54
54
  cud: "delete",
@@ -58,13 +58,13 @@ export function registerDriveGeneratedTools(registry) {
58
58
  hasBody: true,
59
59
  bodyParams: [{ "field": "message", "api": "message" }],
60
60
  shape: {
61
- account: accountField(),
61
+ account: accountField(() => registry.accountAliases()),
62
62
  approvalId: z.string().min(1).describe("Required. The ID of the approval to cancel."),
63
63
  fileId: z.string().min(1).describe("Required. The ID of the file that the approval is on."),
64
64
  message: z.string().describe("Optional. A message to accompany the cancellation of the approval. This message is included in notifications for the action and in the approval activity log.").optional(),
65
65
  fields: z.string().optional().describe('Response field mask.'),
66
66
  },
67
- });
67
+ }, deps);
68
68
  registerGeneratedTool(registry, {
69
69
  name: "drive_approvals_comment",
70
70
  cud: "create",
@@ -74,13 +74,13 @@ export function registerDriveGeneratedTools(registry) {
74
74
  hasBody: true,
75
75
  bodyParams: [{ "field": "message", "api": "message" }],
76
76
  shape: {
77
- account: accountField(),
77
+ account: accountField(() => registry.accountAliases()),
78
78
  approvalId: z.string().min(1).describe("Required. The ID of the approval to comment on."),
79
79
  fileId: z.string().min(1).describe("Required. The ID of the file that the approval is on."),
80
80
  message: z.string().describe("Required. A message to comment on the approval. This message is included in notifications for the action and in the approval activity log.").optional(),
81
81
  fields: z.string().optional().describe('Response field mask.'),
82
82
  },
83
- });
83
+ }, deps);
84
84
  registerGeneratedTool(registry, {
85
85
  name: "drive_approvals_decline",
86
86
  cud: "update",
@@ -90,13 +90,13 @@ export function registerDriveGeneratedTools(registry) {
90
90
  hasBody: true,
91
91
  bodyParams: [{ "field": "message", "api": "message" }],
92
92
  shape: {
93
- account: accountField(),
93
+ account: accountField(() => registry.accountAliases()),
94
94
  approvalId: z.string().min(1).describe("Required. The ID of the approval to decline."),
95
95
  fileId: z.string().min(1).describe("Required. The ID of the file that the approval is on."),
96
96
  message: z.string().describe("Optional. A message to accompany the reviewer response on the approval. This message is included in notifications for the action and in the approval activity log.").optional(),
97
97
  fields: z.string().optional().describe('Response field mask.'),
98
98
  },
99
- });
99
+ }, deps);
100
100
  registerGeneratedTool(registry, {
101
101
  name: "drive_approvals_get",
102
102
  cud: "read",
@@ -105,12 +105,12 @@ export function registerDriveGeneratedTools(registry) {
105
105
  params: [{ "field": "approvalId", "api": "approvalId", "location": "path" }, { "field": "fileId", "api": "fileId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
106
106
  hasBody: false,
107
107
  shape: {
108
- account: accountField(),
108
+ account: accountField(() => registry.accountAliases()),
109
109
  approvalId: z.string().min(1).describe("Required. The ID of the approval."),
110
110
  fileId: z.string().min(1).describe("Required. The ID of the file that the approval is on."),
111
111
  fields: z.string().optional().describe('Response field mask.'),
112
112
  },
113
- });
113
+ }, deps);
114
114
  registerGeneratedTool(registry, {
115
115
  name: "drive_approvals_list",
116
116
  cud: "read",
@@ -119,13 +119,13 @@ export function registerDriveGeneratedTools(registry) {
119
119
  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" }],
120
120
  hasBody: false,
121
121
  shape: {
122
- account: accountField(),
122
+ account: accountField(() => registry.accountAliases()),
123
123
  fileId: z.string().min(1).describe("Required. The ID of the file that the approval is on."),
124
124
  pageSize: z.number().describe("The maximum number of approvals to return. When not set, at most 100 approvals are returned.").optional(),
125
125
  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(),
126
126
  fields: z.string().optional().describe('Response field mask.'),
127
127
  },
128
- });
128
+ }, deps);
129
129
  registerGeneratedTool(registry, {
130
130
  name: "drive_approvals_reassign",
131
131
  cud: "update",
@@ -134,13 +134,13 @@ export function registerDriveGeneratedTools(registry) {
134
134
  params: [{ "field": "approvalId", "api": "approvalId", "location": "path" }, { "field": "fileId", "api": "fileId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
135
135
  hasBody: true,
136
136
  shape: {
137
- account: accountField(),
137
+ account: accountField(() => registry.accountAliases()),
138
138
  approvalId: z.string().min(1).describe("Required. The ID of the approval to reassign."),
139
139
  fileId: z.string().min(1).describe("Required. The ID of the file that the approval is on."),
140
140
  body: coerceJson(z.record(z.string(), z.unknown())).describe("ReassignApprovalRequest JSON request body. Top-level fields: addReviewers, message, replaceReviewers."),
141
141
  fields: z.string().optional().describe('Response field mask.'),
142
142
  },
143
- });
143
+ }, deps);
144
144
  registerGeneratedTool(registry, {
145
145
  name: "drive_approvals_start",
146
146
  cud: "create",
@@ -150,7 +150,7 @@ export function registerDriveGeneratedTools(registry) {
150
150
  hasBody: true,
151
151
  bodyParams: [{ "field": "dueTime", "api": "dueTime" }, { "field": "fileContentChangeBehavior", "api": "fileContentChangeBehavior" }, { "field": "lockFile", "api": "lockFile" }, { "field": "message", "api": "message" }, { "field": "reviewerEmails", "api": "reviewerEmails" }],
152
152
  shape: {
153
- account: accountField(),
153
+ account: accountField(() => registry.accountAliases()),
154
154
  fileId: z.string().min(1).describe("Required. The ID of the file that the approval is created on."),
155
155
  dueTime: z.string().describe("Optional. The time that the approval is due.").optional(),
156
156
  fileContentChangeBehavior: z.enum(["FILE_CONTENT_CHANGE_BEHAVIOR_UNSPECIFIED", "RESET_APPROVAL", "NO_APPROVAL_ACTION"]).describe("Optional. The behavior of the approval when the file content changes.").optional(),
@@ -159,7 +159,7 @@ export function registerDriveGeneratedTools(registry) {
159
159
  reviewerEmails: coerceArray(z.string()).describe("Required. The emails of the users who are set to review the approval.").optional(),
160
160
  fields: z.string().optional().describe('Response field mask.'),
161
161
  },
162
- });
162
+ }, deps);
163
163
  registerGeneratedTool(registry, {
164
164
  name: "drive_apps_get",
165
165
  cud: "read",
@@ -168,11 +168,11 @@ export function registerDriveGeneratedTools(registry) {
168
168
  params: [{ "field": "appId", "api": "appId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
169
169
  hasBody: false,
170
170
  shape: {
171
- account: accountField(),
171
+ account: accountField(() => registry.accountAliases()),
172
172
  appId: z.string().min(1).describe("The ID of the app."),
173
173
  fields: z.string().optional().describe('Response field mask.'),
174
174
  },
175
- });
175
+ }, deps);
176
176
  registerGeneratedTool(registry, {
177
177
  name: "drive_apps_list",
178
178
  cud: "read",
@@ -181,13 +181,13 @@ export function registerDriveGeneratedTools(registry) {
181
181
  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" }],
182
182
  hasBody: false,
183
183
  shape: {
184
- account: accountField(),
184
+ account: accountField(() => registry.accountAliases()),
185
185
  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(),
186
186
  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(),
187
187
  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(),
188
188
  fields: z.string().optional().describe('Response field mask.'),
189
189
  },
190
- });
190
+ }, deps);
191
191
  registerGeneratedTool(registry, {
192
192
  name: "drive_changes_get_start_page_token",
193
193
  cud: "read",
@@ -196,14 +196,14 @@ export function registerDriveGeneratedTools(registry) {
196
196
  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" }],
197
197
  hasBody: false,
198
198
  shape: {
199
- account: accountField(),
199
+ account: accountField(() => registry.accountAliases()),
200
200
  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(),
201
201
  supportsAllDrives: coerceBoolean.describe("Whether the requesting application supports both My Drives and shared drives.").optional(),
202
202
  supportsTeamDrives: coerceBoolean.describe("Deprecated: Use `supportsAllDrives` instead.").optional(),
203
203
  teamDriveId: z.string().describe("Deprecated: Use `driveId` instead.").optional(),
204
204
  fields: z.string().optional().describe('Response field mask.'),
205
205
  },
206
- });
206
+ }, deps);
207
207
  registerGeneratedTool(registry, {
208
208
  name: "drive_changes_list",
209
209
  cud: "read",
@@ -212,7 +212,7 @@ export function registerDriveGeneratedTools(registry) {
212
212
  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" }],
213
213
  hasBody: false,
214
214
  shape: {
215
- account: accountField(),
215
+ account: accountField(() => registry.accountAliases()),
216
216
  pageToken: z.string().min(1).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."),
217
217
  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(),
218
218
  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(),
@@ -229,7 +229,7 @@ export function registerDriveGeneratedTools(registry) {
229
229
  teamDriveId: z.string().describe("Deprecated: Use `driveId` instead.").optional(),
230
230
  fields: z.string().optional().describe('Response field mask.'),
231
231
  },
232
- });
232
+ }, deps);
233
233
  registerGeneratedTool(registry, {
234
234
  name: "drive_changes_watch",
235
235
  cud: "create",
@@ -238,7 +238,7 @@ export function registerDriveGeneratedTools(registry) {
238
238
  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" }],
239
239
  hasBody: true,
240
240
  shape: {
241
- account: accountField(),
241
+ account: accountField(() => registry.accountAliases()),
242
242
  pageToken: z.string().min(1).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."),
243
243
  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(),
244
244
  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(),
@@ -256,7 +256,7 @@ export function registerDriveGeneratedTools(registry) {
256
256
  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."),
257
257
  fields: z.string().optional().describe('Response field mask.'),
258
258
  },
259
- });
259
+ }, deps);
260
260
  registerGeneratedTool(registry, {
261
261
  name: "drive_channels_stop",
262
262
  cud: "delete",
@@ -265,11 +265,11 @@ export function registerDriveGeneratedTools(registry) {
265
265
  params: [{ "field": "fields", "api": "fields", "location": "query" }],
266
266
  hasBody: true,
267
267
  shape: {
268
- account: accountField(),
268
+ account: accountField(() => registry.accountAliases()),
269
269
  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."),
270
270
  fields: z.string().optional().describe('Response field mask.'),
271
271
  },
272
- });
272
+ }, deps);
273
273
  registerGeneratedTool(registry, {
274
274
  name: "drive_drives_create",
275
275
  cud: "create",
@@ -278,12 +278,12 @@ export function registerDriveGeneratedTools(registry) {
278
278
  params: [{ "field": "requestId", "api": "requestId", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
279
279
  hasBody: true,
280
280
  shape: {
281
- account: accountField(),
281
+ account: accountField(() => registry.accountAliases()),
282
282
  requestId: z.string().min(1).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"),
283
283
  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."),
284
284
  fields: z.string().optional().describe('Response field mask.'),
285
285
  },
286
- });
286
+ }, deps);
287
287
  registerGeneratedTool(registry, {
288
288
  name: "drive_drives_delete",
289
289
  cud: "delete",
@@ -292,13 +292,13 @@ export function registerDriveGeneratedTools(registry) {
292
292
  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" }],
293
293
  hasBody: false,
294
294
  shape: {
295
- account: accountField(),
295
+ account: accountField(() => registry.accountAliases()),
296
296
  driveId: z.string().min(1).describe("The ID of the shared drive."),
297
297
  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(),
298
298
  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(),
299
299
  fields: z.string().optional().describe('Response field mask.'),
300
300
  },
301
- });
301
+ }, deps);
302
302
  registerGeneratedTool(registry, {
303
303
  name: "drive_drives_hide",
304
304
  cud: "update",
@@ -307,11 +307,11 @@ export function registerDriveGeneratedTools(registry) {
307
307
  params: [{ "field": "driveId", "api": "driveId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
308
308
  hasBody: false,
309
309
  shape: {
310
- account: accountField(),
310
+ account: accountField(() => registry.accountAliases()),
311
311
  driveId: z.string().min(1).describe("The ID of the shared drive."),
312
312
  fields: z.string().optional().describe('Response field mask.'),
313
313
  },
314
- });
314
+ }, deps);
315
315
  registerGeneratedTool(registry, {
316
316
  name: "drive_drives_unhide",
317
317
  cud: "update",
@@ -320,11 +320,11 @@ export function registerDriveGeneratedTools(registry) {
320
320
  params: [{ "field": "driveId", "api": "driveId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
321
321
  hasBody: false,
322
322
  shape: {
323
- account: accountField(),
323
+ account: accountField(() => registry.accountAliases()),
324
324
  driveId: z.string().min(1).describe("The ID of the shared drive."),
325
325
  fields: z.string().optional().describe('Response field mask.'),
326
326
  },
327
- });
327
+ }, deps);
328
328
  registerGeneratedTool(registry, {
329
329
  name: "drive_drives_update",
330
330
  cud: "update",
@@ -333,13 +333,13 @@ export function registerDriveGeneratedTools(registry) {
333
333
  params: [{ "field": "driveId", "api": "driveId", "location": "path" }, { "field": "useDomainAdminAccess", "api": "useDomainAdminAccess", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
334
334
  hasBody: true,
335
335
  shape: {
336
- account: accountField(),
336
+ account: accountField(() => registry.accountAliases()),
337
337
  driveId: z.string().min(1).describe("The ID of the shared drive."),
338
338
  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(),
339
339
  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."),
340
340
  fields: z.string().optional().describe('Response field mask.'),
341
341
  },
342
- });
342
+ }, deps);
343
343
  registerGeneratedTool(registry, {
344
344
  name: "drive_files_download",
345
345
  cud: "read",
@@ -348,13 +348,13 @@ export function registerDriveGeneratedTools(registry) {
348
348
  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" }],
349
349
  hasBody: false,
350
350
  shape: {
351
- account: accountField(),
351
+ account: accountField(() => registry.accountAliases()),
352
352
  fileId: z.string().min(1).describe("Required. The ID of the file to download."),
353
353
  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(),
354
354
  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(),
355
355
  fields: z.string().optional().describe('Response field mask.'),
356
356
  },
357
- });
357
+ }, deps);
358
358
  registerGeneratedTool(registry, {
359
359
  name: "drive_files_generate_cse_token",
360
360
  cud: "read",
@@ -363,12 +363,12 @@ export function registerDriveGeneratedTools(registry) {
363
363
  params: [{ "field": "fileId", "api": "fileId", "location": "query" }, { "field": "parent", "api": "parent", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
364
364
  hasBody: false,
365
365
  shape: {
366
- account: accountField(),
366
+ account: accountField(() => registry.accountAliases()),
367
367
  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(),
368
368
  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(),
369
369
  fields: z.string().optional().describe('Response field mask.'),
370
370
  },
371
- });
371
+ }, deps);
372
372
  registerGeneratedTool(registry, {
373
373
  name: "drive_files_generate_ids",
374
374
  cud: "read",
@@ -377,13 +377,13 @@ export function registerDriveGeneratedTools(registry) {
377
377
  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" }],
378
378
  hasBody: false,
379
379
  shape: {
380
- account: accountField(),
380
+ account: accountField(() => registry.accountAliases()),
381
381
  count: z.number().describe("The number of IDs to return.").optional(),
382
382
  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(),
383
383
  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(),
384
384
  fields: z.string().optional().describe('Response field mask.'),
385
385
  },
386
- });
386
+ }, deps);
387
387
  registerGeneratedTool(registry, {
388
388
  name: "drive_files_list_labels",
389
389
  cud: "read",
@@ -392,13 +392,13 @@ export function registerDriveGeneratedTools(registry) {
392
392
  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" }],
393
393
  hasBody: false,
394
394
  shape: {
395
- account: accountField(),
395
+ account: accountField(() => registry.accountAliases()),
396
396
  fileId: z.string().min(1).describe("The ID for the file."),
397
397
  maxResults: z.number().describe("The maximum number of labels to return per page. When not set, defaults to 100.").optional(),
398
398
  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(),
399
399
  fields: z.string().optional().describe('Response field mask.'),
400
400
  },
401
- });
401
+ }, deps);
402
402
  registerGeneratedTool(registry, {
403
403
  name: "drive_files_modify_labels",
404
404
  cud: "update",
@@ -407,12 +407,12 @@ export function registerDriveGeneratedTools(registry) {
407
407
  params: [{ "field": "fileId", "api": "fileId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
408
408
  hasBody: true,
409
409
  shape: {
410
- account: accountField(),
410
+ account: accountField(() => registry.accountAliases()),
411
411
  fileId: z.string().min(1).describe("The ID of the file to which the labels belong."),
412
412
  body: coerceJson(z.record(z.string(), z.unknown())).describe("ModifyLabelsRequest JSON request body. Top-level fields: kind, labelModifications."),
413
413
  fields: z.string().optional().describe('Response field mask.'),
414
414
  },
415
- });
415
+ }, deps);
416
416
  registerGeneratedTool(registry, {
417
417
  name: "drive_files_watch",
418
418
  cud: "create",
@@ -421,7 +421,7 @@ export function registerDriveGeneratedTools(registry) {
421
421
  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" }],
422
422
  hasBody: true,
423
423
  shape: {
424
- account: accountField(),
424
+ account: accountField(() => registry.accountAliases()),
425
425
  fileId: z.string().min(1).describe("The ID of the file."),
426
426
  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(),
427
427
  includeLabels: z.string().describe("A comma-separated list of IDs of labels to include in the `labelInfo` part of the response.").optional(),
@@ -431,7 +431,7 @@ export function registerDriveGeneratedTools(registry) {
431
431
  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."),
432
432
  fields: z.string().optional().describe('Response field mask.'),
433
433
  },
434
- });
434
+ }, deps);
435
435
  registerGeneratedTool(registry, {
436
436
  name: "drive_operations_get",
437
437
  cud: "read",
@@ -440,11 +440,11 @@ export function registerDriveGeneratedTools(registry) {
440
440
  params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
441
441
  hasBody: false,
442
442
  shape: {
443
- account: accountField(),
443
+ account: accountField(() => registry.accountAliases()),
444
444
  name: z.string().min(1).describe("The name of the operation resource."),
445
445
  fields: z.string().optional().describe('Response field mask.'),
446
446
  },
447
- });
447
+ }, deps);
448
448
  registerGeneratedTool(registry, {
449
449
  name: "drive_permissions_get",
450
450
  cud: "read",
@@ -453,7 +453,7 @@ export function registerDriveGeneratedTools(registry) {
453
453
  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" }],
454
454
  hasBody: false,
455
455
  shape: {
456
- account: accountField(),
456
+ account: accountField(() => registry.accountAliases()),
457
457
  fileId: z.string().min(1).describe("The ID of the file."),
458
458
  permissionId: z.string().min(1).describe("The ID of the permission."),
459
459
  supportsAllDrives: coerceBoolean.describe("Whether the requesting application supports both My Drives and shared drives.").optional(),
@@ -461,7 +461,7 @@ export function registerDriveGeneratedTools(registry) {
461
461
  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(),
462
462
  fields: z.string().optional().describe('Response field mask.'),
463
463
  },
464
- });
464
+ }, deps);
465
465
  registerGeneratedTool(registry, {
466
466
  name: "drive_replies_get",
467
467
  cud: "read",
@@ -470,14 +470,14 @@ export function registerDriveGeneratedTools(registry) {
470
470
  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" }],
471
471
  hasBody: false,
472
472
  shape: {
473
- account: accountField(),
473
+ account: accountField(() => registry.accountAliases()),
474
474
  commentId: z.string().min(1).describe("The ID of the comment."),
475
475
  fileId: z.string().min(1).describe("The ID of the file."),
476
476
  replyId: z.string().min(1).describe("The ID of the reply."),
477
477
  includeDeleted: coerceBoolean.describe("Whether to return deleted replies. Deleted replies don't include their original content.").optional(),
478
478
  fields: z.string().optional().describe('Response field mask.'),
479
479
  },
480
- });
480
+ }, deps);
481
481
  registerGeneratedTool(registry, {
482
482
  name: "drive_revisions_get",
483
483
  cud: "read",
@@ -486,13 +486,13 @@ export function registerDriveGeneratedTools(registry) {
486
486
  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" }],
487
487
  hasBody: false,
488
488
  shape: {
489
- account: accountField(),
489
+ account: accountField(() => registry.accountAliases()),
490
490
  fileId: z.string().min(1).describe("The ID of the file."),
491
491
  revisionId: z.string().min(1).describe("The ID of the revision."),
492
492
  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(),
493
493
  fields: z.string().optional().describe('Response field mask.'),
494
494
  },
495
- });
495
+ }, deps);
496
496
  registerGeneratedTool(registry, {
497
497
  name: "drive_teamdrives_create",
498
498
  cud: "create",
@@ -501,12 +501,12 @@ export function registerDriveGeneratedTools(registry) {
501
501
  params: [{ "field": "requestId", "api": "requestId", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
502
502
  hasBody: true,
503
503
  shape: {
504
- account: accountField(),
504
+ account: accountField(() => registry.accountAliases()),
505
505
  requestId: z.string().min(1).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"),
506
506
  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."),
507
507
  fields: z.string().optional().describe('Response field mask.'),
508
508
  },
509
- });
509
+ }, deps);
510
510
  registerGeneratedTool(registry, {
511
511
  name: "drive_teamdrives_delete",
512
512
  cud: "delete",
@@ -515,11 +515,11 @@ export function registerDriveGeneratedTools(registry) {
515
515
  params: [{ "field": "teamDriveId", "api": "teamDriveId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
516
516
  hasBody: false,
517
517
  shape: {
518
- account: accountField(),
518
+ account: accountField(() => registry.accountAliases()),
519
519
  teamDriveId: z.string().min(1).describe("The ID of the Team Drive"),
520
520
  fields: z.string().optional().describe('Response field mask.'),
521
521
  },
522
- });
522
+ }, deps);
523
523
  registerGeneratedTool(registry, {
524
524
  name: "drive_teamdrives_get",
525
525
  cud: "read",
@@ -528,12 +528,12 @@ export function registerDriveGeneratedTools(registry) {
528
528
  params: [{ "field": "teamDriveId", "api": "teamDriveId", "location": "path" }, { "field": "useDomainAdminAccess", "api": "useDomainAdminAccess", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
529
529
  hasBody: false,
530
530
  shape: {
531
- account: accountField(),
531
+ account: accountField(() => registry.accountAliases()),
532
532
  teamDriveId: z.string().min(1).describe("The ID of the Team Drive"),
533
533
  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(),
534
534
  fields: z.string().optional().describe('Response field mask.'),
535
535
  },
536
- });
536
+ }, deps);
537
537
  registerGeneratedTool(registry, {
538
538
  name: "drive_teamdrives_list",
539
539
  cud: "read",
@@ -542,14 +542,14 @@ export function registerDriveGeneratedTools(registry) {
542
542
  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" }],
543
543
  hasBody: false,
544
544
  shape: {
545
- account: accountField(),
545
+ account: accountField(() => registry.accountAliases()),
546
546
  pageSize: z.number().describe("Maximum number of Team Drives to return.").optional(),
547
547
  pageToken: z.string().describe("Page token for Team Drives.").optional(),
548
548
  q: z.string().describe("Query string for searching Team Drives.").optional(),
549
549
  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(),
550
550
  fields: z.string().optional().describe('Response field mask.'),
551
551
  },
552
- });
552
+ }, deps);
553
553
  registerGeneratedTool(registry, {
554
554
  name: "drive_teamdrives_update",
555
555
  cud: "update",
@@ -558,11 +558,11 @@ export function registerDriveGeneratedTools(registry) {
558
558
  params: [{ "field": "teamDriveId", "api": "teamDriveId", "location": "path" }, { "field": "useDomainAdminAccess", "api": "useDomainAdminAccess", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
559
559
  hasBody: true,
560
560
  shape: {
561
- account: accountField(),
561
+ account: accountField(() => registry.accountAliases()),
562
562
  teamDriveId: z.string().min(1).describe("The ID of the Team Drive"),
563
563
  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(),
564
564
  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."),
565
565
  fields: z.string().optional().describe('Response field mask.'),
566
566
  },
567
- });
567
+ }, deps);
568
568
  }
@@ -1,2 +1,3 @@
1
1
  import type { ToolRegistry } from '../../registry.js';
2
- export declare function registerDriveactivityGeneratedTools(registry: ToolRegistry): void;
2
+ import { type ExecuteDeps } from './_shared.js';
3
+ export declare function registerDriveactivityGeneratedTools(registry: ToolRegistry, deps?: ExecuteDeps): void;
@@ -2,7 +2,7 @@
2
2
  import { z } from 'zod';
3
3
  import { coerceJson } from '../_coerce.js';
4
4
  import { accountField, registerGeneratedTool } from './_shared.js';
5
- export function registerDriveactivityGeneratedTools(registry) {
5
+ export function registerDriveactivityGeneratedTools(registry, deps = {}) {
6
6
  // Interned method scope sets (shared across tools; see scope-observability).
7
7
  const S_driveactivity_v2 = [
8
8
  ["https://www.googleapis.com/auth/drive.activity", "https://www.googleapis.com/auth/drive.activity.readonly"],
@@ -15,9 +15,9 @@ export function registerDriveactivityGeneratedTools(registry) {
15
15
  params: [{ "field": "fields", "api": "fields", "location": "query" }],
16
16
  hasBody: true,
17
17
  shape: {
18
- account: accountField(),
18
+ account: accountField(() => registry.accountAliases()),
19
19
  body: coerceJson(z.record(z.string(), z.unknown())).describe("QueryDriveActivityRequest JSON request body. Top-level fields: ancestorName, consolidationStrategy, filter, itemName, pageSize, pageToken."),
20
20
  fields: z.string().optional().describe('Response field mask.'),
21
21
  },
22
- });
22
+ }, deps);
23
23
  }
@@ -1,2 +1,3 @@
1
1
  import type { ToolRegistry } from '../../registry.js';
2
- export declare function registerDrivelabelsGeneratedTools(registry: ToolRegistry): void;
2
+ import { type ExecuteDeps } from './_shared.js';
3
+ export declare function registerDrivelabelsGeneratedTools(registry: ToolRegistry, deps?: ExecuteDeps): void;