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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (182) hide show
  1. package/README.md +5 -3
  2. package/dist/accounts.d.ts +22 -1
  3. package/dist/accounts.js +64 -16
  4. package/dist/api-probe.d.ts +5 -0
  5. package/dist/api-probe.js +23 -15
  6. package/dist/arg-normalize.d.ts +61 -4
  7. package/dist/arg-normalize.js +229 -4
  8. package/dist/arg-strict.d.ts +61 -0
  9. package/dist/arg-strict.js +193 -0
  10. package/dist/auth.d.ts +4 -3
  11. package/dist/auth.js +26 -85
  12. package/dist/boot-gates.d.ts +26 -0
  13. package/dist/boot-gates.js +38 -0
  14. package/dist/cimd-cache.d.ts +38 -0
  15. package/dist/cimd-cache.js +117 -0
  16. package/dist/client.d.ts +32 -2
  17. package/dist/client.js +0 -0
  18. package/dist/compose.d.ts +11 -0
  19. package/dist/compose.js +109 -0
  20. package/dist/config-file.d.ts +14 -0
  21. package/dist/config-file.js +41 -1
  22. package/dist/discover.js +38 -15
  23. package/dist/discovery-client.d.ts +11 -1
  24. package/dist/discovery-client.js +120 -18
  25. package/dist/doctor.d.ts +15 -3
  26. package/dist/doctor.js +151 -27
  27. package/dist/env-load.d.ts +11 -0
  28. package/dist/env-load.js +23 -1
  29. package/dist/executor.d.ts +3 -0
  30. package/dist/executor.js +16 -3
  31. package/dist/fanout.d.ts +9 -1
  32. package/dist/fanout.js +83 -14
  33. package/dist/fs-atomic.d.ts +11 -0
  34. package/dist/fs-atomic.js +219 -28
  35. package/dist/hint-provider.d.ts +129 -0
  36. package/dist/hint-provider.js +64 -0
  37. package/dist/http-transport.d.ts +73 -6
  38. package/dist/http-transport.js +350 -26
  39. package/dist/identity.d.ts +4 -1
  40. package/dist/identity.js +25 -6
  41. package/dist/index.js +142 -114
  42. package/dist/master-key.js +13 -5
  43. package/dist/mcp-token.d.ts +136 -19
  44. package/dist/mcp-token.js +569 -72
  45. package/dist/metrics-cli.d.ts +21 -0
  46. package/dist/metrics-cli.js +206 -0
  47. package/dist/metrics-tap.d.ts +12 -0
  48. package/dist/metrics-tap.js +95 -0
  49. package/dist/migrate-config.js +2 -2
  50. package/dist/oauth-as.d.ts +103 -3
  51. package/dist/oauth-as.js +374 -79
  52. package/dist/oauth-consent.d.ts +35 -10
  53. package/dist/oauth-consent.js +101 -39
  54. package/dist/outbound-allowlist.d.ts +34 -0
  55. package/dist/outbound-allowlist.js +111 -0
  56. package/dist/reauth-hint.d.ts +1 -1
  57. package/dist/reauth-hint.js +12 -8
  58. package/dist/registry-transfer.d.ts +5 -0
  59. package/dist/registry-transfer.js +65 -5
  60. package/dist/registry.d.ts +66 -2
  61. package/dist/registry.js +214 -18
  62. package/dist/scope-catalog.d.ts +11 -0
  63. package/dist/scope-catalog.js +39 -6
  64. package/dist/scope-observability.d.ts +8 -6
  65. package/dist/scope-observability.js +29 -13
  66. package/dist/services.d.ts +17 -4
  67. package/dist/services.js +77 -6
  68. package/dist/setup-prompt.d.ts +1 -1
  69. package/dist/setup-prompt.js +1 -1
  70. package/dist/ssrf-guard.d.ts +23 -9
  71. package/dist/ssrf-guard.js +101 -62
  72. package/dist/tenant-purge.d.ts +26 -0
  73. package/dist/tenant-purge.js +67 -0
  74. package/dist/token-store.d.ts +20 -2
  75. package/dist/token-store.js +0 -0
  76. package/dist/tools/_coerce.d.ts +5 -0
  77. package/dist/tools/_coerce.js +11 -0
  78. package/dist/tools/_errors.d.ts +34 -3
  79. package/dist/tools/_errors.js +346 -53
  80. package/dist/tools/_local-files.d.ts +9 -0
  81. package/dist/tools/_local-files.js +25 -2
  82. package/dist/tools/account-wizard.d.ts +34 -2
  83. package/dist/tools/account-wizard.js +223 -65
  84. package/dist/tools/accounts-tool.d.ts +7 -0
  85. package/dist/tools/accounts-tool.js +34 -18
  86. package/dist/tools/admin.d.ts +10 -1
  87. package/dist/tools/admin.js +21 -16
  88. package/dist/tools/analytics.d.ts +27 -0
  89. package/dist/tools/analytics.js +289 -0
  90. package/dist/tools/calendar.d.ts +9 -1
  91. package/dist/tools/calendar.js +93 -29
  92. package/dist/tools/chat.d.ts +10 -1
  93. package/dist/tools/chat.js +20 -12
  94. package/dist/tools/contacts.d.ts +2 -1
  95. package/dist/tools/contacts.js +74 -43
  96. package/dist/tools/docs.d.ts +2 -1
  97. package/dist/tools/docs.js +90 -84
  98. package/dist/tools/drive.d.ts +2 -1
  99. package/dist/tools/drive.js +197 -120
  100. package/dist/tools/forms.d.ts +10 -1
  101. package/dist/tools/forms.js +26 -19
  102. package/dist/tools/generated/_shared.d.ts +8 -1
  103. package/dist/tools/generated/_shared.js +18 -4
  104. package/dist/tools/generated/admin.d.ts +2 -1
  105. package/dist/tools/generated/admin.js +610 -479
  106. package/dist/tools/generated/analytics.d.ts +3 -0
  107. package/dist/tools/generated/analytics.js +981 -0
  108. package/dist/tools/generated/appsmarket.d.ts +2 -1
  109. package/dist/tools/generated/appsmarket.js +9 -9
  110. package/dist/tools/generated/calendar.d.ts +2 -1
  111. package/dist/tools/generated/calendar.js +83 -83
  112. package/dist/tools/generated/chat.d.ts +2 -1
  113. package/dist/tools/generated/chat.js +178 -151
  114. package/dist/tools/generated/classroom.d.ts +2 -1
  115. package/dist/tools/generated/classroom.js +467 -425
  116. package/dist/tools/generated/cloudidentity.d.ts +2 -1
  117. package/dist/tools/generated/cloudidentity.js +209 -201
  118. package/dist/tools/generated/cloudsearch.d.ts +2 -1
  119. package/dist/tools/generated/cloudsearch.js +139 -138
  120. package/dist/tools/generated/contacts.d.ts +2 -1
  121. package/dist/tools/generated/contacts.js +49 -40
  122. package/dist/tools/generated/drive.d.ts +2 -1
  123. package/dist/tools/generated/drive.js +133 -124
  124. package/dist/tools/generated/driveactivity.d.ts +2 -1
  125. package/dist/tools/generated/driveactivity.js +3 -3
  126. package/dist/tools/generated/drivelabels.d.ts +2 -1
  127. package/dist/tools/generated/drivelabels.js +113 -85
  128. package/dist/tools/generated/forms.d.ts +2 -1
  129. package/dist/tools/generated/forms.js +14 -14
  130. package/dist/tools/generated/gmail.d.ts +2 -1
  131. package/dist/tools/generated/gmail.js +253 -226
  132. package/dist/tools/generated/groupsmigration.d.ts +2 -1
  133. package/dist/tools/generated/groupsmigration.js +4 -4
  134. package/dist/tools/generated/groupssettings.d.ts +2 -1
  135. package/dist/tools/generated/groupssettings.js +10 -10
  136. package/dist/tools/generated/index.d.ts +2 -1
  137. package/dist/tools/generated/index.js +2 -0
  138. package/dist/tools/generated/keep.d.ts +2 -1
  139. package/dist/tools/generated/keep.js +23 -22
  140. package/dist/tools/generated/licensing.d.ts +2 -1
  141. package/dist/tools/generated/licensing.js +54 -38
  142. package/dist/tools/generated/meet.d.ts +2 -1
  143. package/dist/tools/generated/meet.js +41 -41
  144. package/dist/tools/generated/method-map.d.ts +2 -0
  145. package/dist/tools/generated/method-map.js +894 -0
  146. package/dist/tools/generated/postmaster.d.ts +2 -1
  147. package/dist/tools/generated/postmaster.js +12 -12
  148. package/dist/tools/generated/reseller.d.ts +2 -1
  149. package/dist/tools/generated/reseller.js +69 -63
  150. package/dist/tools/generated/script.d.ts +2 -1
  151. package/dist/tools/generated/script.js +62 -52
  152. package/dist/tools/generated/searchconsole.d.ts +2 -1
  153. package/dist/tools/generated/searchconsole.js +8 -6
  154. package/dist/tools/generated/sheets.d.ts +2 -1
  155. package/dist/tools/generated/sheets.js +25 -24
  156. package/dist/tools/generated/tasks.d.ts +2 -1
  157. package/dist/tools/generated/tasks.js +15 -9
  158. package/dist/tools/generated/vault.d.ts +2 -1
  159. package/dist/tools/generated/vault.js +132 -123
  160. package/dist/tools/generated/workspaceevents.d.ts +2 -1
  161. package/dist/tools/generated/workspaceevents.js +48 -47
  162. package/dist/tools/gmail.d.ts +12 -2
  163. package/dist/tools/gmail.js +95 -51
  164. package/dist/tools/google-api.d.ts +2 -3
  165. package/dist/tools/google-api.js +76 -33
  166. package/dist/tools/meet.d.ts +10 -1
  167. package/dist/tools/meet.js +18 -11
  168. package/dist/tools/searchconsole.d.ts +2 -1
  169. package/dist/tools/searchconsole.js +27 -23
  170. package/dist/tools/sheets.d.ts +2 -1
  171. package/dist/tools/sheets.js +72 -80
  172. package/dist/tools/slides.d.ts +10 -1
  173. package/dist/tools/slides.js +23 -16
  174. package/dist/tools/tasks.d.ts +2 -1
  175. package/dist/tools/tasks.js +35 -31
  176. package/dist/trim.d.ts +26 -0
  177. package/dist/trim.js +67 -0
  178. package/dist/usage-metrics.d.ts +178 -0
  179. package/dist/usage-metrics.js +621 -0
  180. package/dist/write-control.d.ts +27 -1
  181. package/dist/write-control.js +99 -12
  182. package/package.json +34 -3
@@ -2,7 +2,7 @@
2
2
  import { z } from 'zod';
3
3
  import { coerceArray, coerceJson } from '../_coerce.js';
4
4
  import { accountField, registerGeneratedTool } from './_shared.js';
5
- export function registerScriptGeneratedTools(registry) {
5
+ export function registerScriptGeneratedTools(registry, deps = {}) {
6
6
  // Interned method scope sets (shared across tools; see scope-observability).
7
7
  const S_script_v1 = [
8
8
  ["https://www.googleapis.com/auth/script.processes"],
@@ -21,7 +21,7 @@ export function registerScriptGeneratedTools(registry) {
21
21
  params: [{ "field": "pageSize", "api": "pageSize", "location": "query" }, { "field": "pageToken", "api": "pageToken", "location": "query" }, { "field": "userProcessFilter.deploymentId", "api": "userProcessFilter.deploymentId", "location": "query" }, { "field": "userProcessFilter.endTime", "api": "userProcessFilter.endTime", "location": "query" }, { "field": "userProcessFilter.functionName", "api": "userProcessFilter.functionName", "location": "query" }, { "field": "userProcessFilter.projectName", "api": "userProcessFilter.projectName", "location": "query" }, { "field": "userProcessFilter.scriptId", "api": "userProcessFilter.scriptId", "location": "query" }, { "field": "userProcessFilter.startTime", "api": "userProcessFilter.startTime", "location": "query" }, { "field": "userProcessFilter.statuses", "api": "userProcessFilter.statuses", "location": "query" }, { "field": "userProcessFilter.types", "api": "userProcessFilter.types", "location": "query" }, { "field": "userProcessFilter.userAccessLevels", "api": "userProcessFilter.userAccessLevels", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
22
22
  hasBody: false,
23
23
  shape: {
24
- account: accountField(),
24
+ account: accountField(() => registry.accountAliases()),
25
25
  pageSize: z.number().describe("The maximum number of returned processes per page of results. Defaults to 50.").optional(),
26
26
  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(),
27
27
  "userProcessFilter.deploymentId": z.string().describe("Optional field used to limit returned processes to those originating from projects with a specific deployment ID.").optional(),
@@ -35,7 +35,7 @@ export function registerScriptGeneratedTools(registry) {
35
35
  "userProcessFilter.userAccessLevels": coerceArray(z.enum(["USER_ACCESS_LEVEL_UNSPECIFIED", "NONE", "READ", "WRITE", "OWNER"])).describe("Optional field used to limit returned processes to those having one of the specified user access levels.").optional(),
36
36
  fields: z.string().optional().describe('Response field mask.'),
37
37
  },
38
- });
38
+ }, deps);
39
39
  registerGeneratedTool(registry, {
40
40
  name: "script_processes_list_script_processes",
41
41
  cud: "read",
@@ -44,7 +44,7 @@ export function registerScriptGeneratedTools(registry) {
44
44
  params: [{ "field": "pageSize", "api": "pageSize", "location": "query" }, { "field": "pageToken", "api": "pageToken", "location": "query" }, { "field": "scriptId", "api": "scriptId", "location": "query" }, { "field": "scriptProcessFilter.deploymentId", "api": "scriptProcessFilter.deploymentId", "location": "query" }, { "field": "scriptProcessFilter.endTime", "api": "scriptProcessFilter.endTime", "location": "query" }, { "field": "scriptProcessFilter.functionName", "api": "scriptProcessFilter.functionName", "location": "query" }, { "field": "scriptProcessFilter.startTime", "api": "scriptProcessFilter.startTime", "location": "query" }, { "field": "scriptProcessFilter.statuses", "api": "scriptProcessFilter.statuses", "location": "query" }, { "field": "scriptProcessFilter.types", "api": "scriptProcessFilter.types", "location": "query" }, { "field": "scriptProcessFilter.userAccessLevels", "api": "scriptProcessFilter.userAccessLevels", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
45
45
  hasBody: false,
46
46
  shape: {
47
- account: accountField(),
47
+ account: accountField(() => registry.accountAliases()),
48
48
  pageSize: z.number().describe("The maximum number of returned processes per page of results. Defaults to 50.").optional(),
49
49
  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(),
50
50
  scriptId: z.string().describe("The script ID of the project whose processes are listed.").optional(),
@@ -57,7 +57,7 @@ export function registerScriptGeneratedTools(registry) {
57
57
  "scriptProcessFilter.userAccessLevels": coerceArray(z.enum(["USER_ACCESS_LEVEL_UNSPECIFIED", "NONE", "READ", "WRITE", "OWNER"])).describe("Optional field used to limit returned processes to those having one of the specified user access levels.").optional(),
58
58
  fields: z.string().optional().describe('Response field mask.'),
59
59
  },
60
- });
60
+ }, deps);
61
61
  registerGeneratedTool(registry, {
62
62
  name: "script_projects_create",
63
63
  cud: "create",
@@ -65,12 +65,14 @@ export function registerScriptGeneratedTools(registry) {
65
65
  method: { id: "script.projects.create", httpMethod: "POST", path: "v1/projects", baseUrl: "https://script.googleapis.com/", requiredParams: [], scopes: S_script_v1[1] },
66
66
  params: [{ "field": "fields", "api": "fields", "location": "query" }],
67
67
  hasBody: true,
68
+ bodyParams: [{ "field": "parentId", "api": "parentId" }, { "field": "title", "api": "title" }],
68
69
  shape: {
69
- account: accountField(),
70
- body: coerceJson(z.record(z.string(), z.unknown())).describe("CreateProjectRequest JSON request body. Top-level fields: parentId, title."),
70
+ account: accountField(() => registry.accountAliases()),
71
+ parentId: z.string().describe("The Drive ID of a parent file that the created script project is bound to. This is usually the ID of a Google Doc, Google Sheet, Google Form, or Google Slides file. If not set, a standalone script pro").optional(),
72
+ title: z.string().describe("The title for the project.").optional(),
71
73
  fields: z.string().optional().describe('Response field mask.'),
72
74
  },
73
- });
75
+ }, deps);
74
76
  registerGeneratedTool(registry, {
75
77
  name: "script_projects_deployments_create",
76
78
  cud: "create",
@@ -78,13 +80,17 @@ export function registerScriptGeneratedTools(registry) {
78
80
  method: { id: "script.projects.deployments.create", httpMethod: "POST", path: "v1/projects/{scriptId}/deployments", baseUrl: "https://script.googleapis.com/", requiredParams: ["scriptId"], scopes: S_script_v1[2] },
79
81
  params: [{ "field": "scriptId", "api": "scriptId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
80
82
  hasBody: true,
83
+ bodyParams: [{ "field": "description", "api": "description" }, { "field": "manifestFileName", "api": "manifestFileName" }, { "field": "scriptId_", "api": "scriptId" }, { "field": "versionNumber", "api": "versionNumber" }],
81
84
  shape: {
82
- account: accountField(),
83
- scriptId: z.string().describe("The script project's Drive ID."),
84
- body: coerceJson(z.record(z.string(), z.unknown())).describe("DeploymentConfig JSON request body. Top-level fields: description, manifestFileName, scriptId, versionNumber."),
85
+ account: accountField(() => registry.accountAliases()),
86
+ scriptId: z.string().min(1).describe("The script project's Drive ID."),
87
+ description: z.string().describe("The description for this deployment.").optional(),
88
+ manifestFileName: z.string().describe("The manifest file name for this deployment.").optional(),
89
+ scriptId_: z.string().describe("The script project's Drive ID.").optional(),
90
+ versionNumber: z.number().describe("The version number on which this deployment is based.").optional(),
85
91
  fields: z.string().optional().describe('Response field mask.'),
86
92
  },
87
- });
93
+ }, deps);
88
94
  registerGeneratedTool(registry, {
89
95
  name: "script_projects_deployments_delete",
90
96
  cud: "delete",
@@ -93,12 +99,12 @@ export function registerScriptGeneratedTools(registry) {
93
99
  params: [{ "field": "deploymentId", "api": "deploymentId", "location": "path" }, { "field": "scriptId", "api": "scriptId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
94
100
  hasBody: false,
95
101
  shape: {
96
- account: accountField(),
97
- deploymentId: z.string().describe("The deployment ID to be undeployed."),
98
- scriptId: z.string().describe("The script project's Drive ID."),
102
+ account: accountField(() => registry.accountAliases()),
103
+ deploymentId: z.string().min(1).describe("The deployment ID to be undeployed."),
104
+ scriptId: z.string().min(1).describe("The script project's Drive ID."),
99
105
  fields: z.string().optional().describe('Response field mask.'),
100
106
  },
101
- });
107
+ }, deps);
102
108
  registerGeneratedTool(registry, {
103
109
  name: "script_projects_deployments_get",
104
110
  cud: "read",
@@ -107,12 +113,12 @@ export function registerScriptGeneratedTools(registry) {
107
113
  params: [{ "field": "deploymentId", "api": "deploymentId", "location": "path" }, { "field": "scriptId", "api": "scriptId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
108
114
  hasBody: false,
109
115
  shape: {
110
- account: accountField(),
111
- deploymentId: z.string().describe("The deployment ID."),
112
- scriptId: z.string().describe("The script project's Drive ID."),
116
+ account: accountField(() => registry.accountAliases()),
117
+ deploymentId: z.string().min(1).describe("The deployment ID."),
118
+ scriptId: z.string().min(1).describe("The script project's Drive ID."),
113
119
  fields: z.string().optional().describe('Response field mask.'),
114
120
  },
115
- });
121
+ }, deps);
116
122
  registerGeneratedTool(registry, {
117
123
  name: "script_projects_deployments_list",
118
124
  cud: "read",
@@ -121,13 +127,13 @@ export function registerScriptGeneratedTools(registry) {
121
127
  params: [{ "field": "scriptId", "api": "scriptId", "location": "path" }, { "field": "pageSize", "api": "pageSize", "location": "query" }, { "field": "pageToken", "api": "pageToken", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
122
128
  hasBody: false,
123
129
  shape: {
124
- account: accountField(),
125
- scriptId: z.string().describe("The script project's Drive ID."),
130
+ account: accountField(() => registry.accountAliases()),
131
+ scriptId: z.string().min(1).describe("The script project's Drive ID."),
126
132
  pageSize: z.number().describe("The maximum number of deployments on each returned page. Defaults to 50.").optional(),
127
133
  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(),
128
134
  fields: z.string().optional().describe('Response field mask.'),
129
135
  },
130
- });
136
+ }, deps);
131
137
  registerGeneratedTool(registry, {
132
138
  name: "script_projects_deployments_update",
133
139
  cud: "update",
@@ -136,13 +142,13 @@ export function registerScriptGeneratedTools(registry) {
136
142
  params: [{ "field": "deploymentId", "api": "deploymentId", "location": "path" }, { "field": "scriptId", "api": "scriptId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
137
143
  hasBody: true,
138
144
  shape: {
139
- account: accountField(),
140
- deploymentId: z.string().describe("The deployment ID for this deployment."),
141
- scriptId: z.string().describe("The script project's Drive ID."),
145
+ account: accountField(() => registry.accountAliases()),
146
+ deploymentId: z.string().min(1).describe("The deployment ID for this deployment."),
147
+ scriptId: z.string().min(1).describe("The script project's Drive ID."),
142
148
  body: coerceJson(z.record(z.string(), z.unknown())).describe("UpdateDeploymentRequest JSON request body. Top-level fields: deploymentConfig."),
143
149
  fields: z.string().optional().describe('Response field mask.'),
144
150
  },
145
- });
151
+ }, deps);
146
152
  registerGeneratedTool(registry, {
147
153
  name: "script_projects_get",
148
154
  cud: "read",
@@ -151,11 +157,11 @@ export function registerScriptGeneratedTools(registry) {
151
157
  params: [{ "field": "scriptId", "api": "scriptId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
152
158
  hasBody: false,
153
159
  shape: {
154
- account: accountField(),
155
- scriptId: z.string().describe("The script project's Drive ID."),
160
+ account: accountField(() => registry.accountAliases()),
161
+ scriptId: z.string().min(1).describe("The script project's Drive ID."),
156
162
  fields: z.string().optional().describe('Response field mask.'),
157
163
  },
158
- });
164
+ }, deps);
159
165
  registerGeneratedTool(registry, {
160
166
  name: "script_projects_get_content",
161
167
  cud: "read",
@@ -164,12 +170,12 @@ export function registerScriptGeneratedTools(registry) {
164
170
  params: [{ "field": "scriptId", "api": "scriptId", "location": "path" }, { "field": "versionNumber", "api": "versionNumber", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
165
171
  hasBody: false,
166
172
  shape: {
167
- account: accountField(),
168
- scriptId: z.string().describe("The script project's Drive ID."),
173
+ account: accountField(() => registry.accountAliases()),
174
+ scriptId: z.string().min(1).describe("The script project's Drive ID."),
169
175
  versionNumber: z.number().describe("The version number of the project to retrieve. If not provided, the project's HEAD version is returned.").optional(),
170
176
  fields: z.string().optional().describe('Response field mask.'),
171
177
  },
172
- });
178
+ }, deps);
173
179
  registerGeneratedTool(registry, {
174
180
  name: "script_projects_get_metrics",
175
181
  cud: "read",
@@ -178,13 +184,13 @@ export function registerScriptGeneratedTools(registry) {
178
184
  params: [{ "field": "scriptId", "api": "scriptId", "location": "path" }, { "field": "metricsFilter.deploymentId", "api": "metricsFilter.deploymentId", "location": "query" }, { "field": "metricsGranularity", "api": "metricsGranularity", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
179
185
  hasBody: false,
180
186
  shape: {
181
- account: accountField(),
182
- scriptId: z.string().describe("Required field indicating the script to get metrics for."),
187
+ account: accountField(() => registry.accountAliases()),
188
+ scriptId: z.string().min(1).describe("Required field indicating the script to get metrics for."),
183
189
  "metricsFilter.deploymentId": z.string().describe("Optional field indicating a specific deployment to retrieve metrics from.").optional(),
184
190
  metricsGranularity: z.enum(["UNSPECIFIED_GRANULARITY", "WEEKLY", "DAILY"]).describe("Required field indicating what granularity of metrics are returned.").optional(),
185
191
  fields: z.string().optional().describe('Response field mask.'),
186
192
  },
187
- });
193
+ }, deps);
188
194
  registerGeneratedTool(registry, {
189
195
  name: "script_projects_update_content",
190
196
  cud: "update",
@@ -193,12 +199,12 @@ export function registerScriptGeneratedTools(registry) {
193
199
  params: [{ "field": "scriptId", "api": "scriptId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
194
200
  hasBody: true,
195
201
  shape: {
196
- account: accountField(),
197
- scriptId: z.string().describe("The script project's Drive ID."),
202
+ account: accountField(() => registry.accountAliases()),
203
+ scriptId: z.string().min(1).describe("The script project's Drive ID."),
198
204
  body: coerceJson(z.record(z.string(), z.unknown())).describe("Content JSON request body. Top-level fields: files, scriptId."),
199
205
  fields: z.string().optional().describe('Response field mask.'),
200
206
  },
201
- });
207
+ }, deps);
202
208
  registerGeneratedTool(registry, {
203
209
  name: "script_projects_versions_create",
204
210
  cud: "create",
@@ -206,13 +212,17 @@ export function registerScriptGeneratedTools(registry) {
206
212
  method: { id: "script.projects.versions.create", httpMethod: "POST", path: "v1/projects/{scriptId}/versions", baseUrl: "https://script.googleapis.com/", requiredParams: ["scriptId"], scopes: S_script_v1[1] },
207
213
  params: [{ "field": "scriptId", "api": "scriptId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
208
214
  hasBody: true,
215
+ bodyParams: [{ "field": "createTime", "api": "createTime" }, { "field": "description", "api": "description" }, { "field": "scriptId_", "api": "scriptId" }, { "field": "versionNumber", "api": "versionNumber" }],
209
216
  shape: {
210
- account: accountField(),
211
- scriptId: z.string().describe("The script project's Drive ID."),
212
- body: coerceJson(z.record(z.string(), z.unknown())).describe("Version JSON request body. Top-level fields: createTime, description, scriptId, versionNumber."),
217
+ account: accountField(() => registry.accountAliases()),
218
+ scriptId: z.string().min(1).describe("The script project's Drive ID."),
219
+ createTime: z.string().describe("When the version was created.").optional(),
220
+ description: z.string().describe("The description for this version.").optional(),
221
+ scriptId_: z.string().describe("The script project's Drive ID.").optional(),
222
+ versionNumber: z.number().describe("The incremental ID that is created by Apps Script when a version is created. This is system assigned number and is immutable once created.").optional(),
213
223
  fields: z.string().optional().describe('Response field mask.'),
214
224
  },
215
- });
225
+ }, deps);
216
226
  registerGeneratedTool(registry, {
217
227
  name: "script_projects_versions_get",
218
228
  cud: "read",
@@ -221,12 +231,12 @@ export function registerScriptGeneratedTools(registry) {
221
231
  params: [{ "field": "scriptId", "api": "scriptId", "location": "path" }, { "field": "versionNumber", "api": "versionNumber", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
222
232
  hasBody: false,
223
233
  shape: {
224
- account: accountField(),
225
- scriptId: z.string().describe("The script project's Drive ID."),
234
+ account: accountField(() => registry.accountAliases()),
235
+ scriptId: z.string().min(1).describe("The script project's Drive ID."),
226
236
  versionNumber: z.number().describe("The version number."),
227
237
  fields: z.string().optional().describe('Response field mask.'),
228
238
  },
229
- });
239
+ }, deps);
230
240
  registerGeneratedTool(registry, {
231
241
  name: "script_projects_versions_list",
232
242
  cud: "read",
@@ -235,13 +245,13 @@ export function registerScriptGeneratedTools(registry) {
235
245
  params: [{ "field": "scriptId", "api": "scriptId", "location": "path" }, { "field": "pageSize", "api": "pageSize", "location": "query" }, { "field": "pageToken", "api": "pageToken", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
236
246
  hasBody: false,
237
247
  shape: {
238
- account: accountField(),
239
- scriptId: z.string().describe("The script project's Drive ID."),
248
+ account: accountField(() => registry.accountAliases()),
249
+ scriptId: z.string().min(1).describe("The script project's Drive ID."),
240
250
  pageSize: z.number().describe("The maximum number of versions on each returned page. Defaults to 50.").optional(),
241
251
  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(),
242
252
  fields: z.string().optional().describe('Response field mask.'),
243
253
  },
244
- });
254
+ }, deps);
245
255
  registerGeneratedTool(registry, {
246
256
  name: "script_scripts_run",
247
257
  cud: "create",
@@ -250,10 +260,10 @@ export function registerScriptGeneratedTools(registry) {
250
260
  params: [{ "field": "scriptId", "api": "scriptId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
251
261
  hasBody: true,
252
262
  shape: {
253
- account: accountField(),
254
- scriptId: z.string().describe("The script ID of the script to be executed. Find the script ID on the **Project settings** page under \"IDs.\" As multiple executable APIs can be deployed in new IDE for same script, this field should b"),
263
+ account: accountField(() => registry.accountAliases()),
264
+ scriptId: z.string().min(1).describe("The script ID of the script to be executed. Find the script ID on the **Project settings** page under \"IDs.\" As multiple executable APIs can be deployed in new IDE for same script, this field should b"),
255
265
  body: coerceJson(z.record(z.string(), z.unknown())).describe("ExecutionRequest JSON request body. Top-level fields: devMode, function, parameters, sessionState."),
256
266
  fields: z.string().optional().describe('Response field mask.'),
257
267
  },
258
- });
268
+ }, deps);
259
269
  }
@@ -1,2 +1,3 @@
1
1
  import type { ToolRegistry } from '../../registry.js';
2
- export declare function registerSearchconsoleGeneratedTools(registry: ToolRegistry): void;
2
+ import { type ExecuteDeps } from './_shared.js';
3
+ export declare function registerSearchconsoleGeneratedTools(registry: ToolRegistry, deps?: ExecuteDeps): void;
@@ -1,19 +1,21 @@
1
1
  // GENERATED by scripts/gen-tools.ts — do not edit. Regenerate: npm run gen:tools
2
2
  import { z } from 'zod';
3
- import { coerceJson } from '../_coerce.js';
3
+ import { coerceBoolean } from '../_coerce.js';
4
4
  import { accountField, registerGeneratedTool } from './_shared.js';
5
- export function registerSearchconsoleGeneratedTools(registry) {
5
+ export function registerSearchconsoleGeneratedTools(registry, deps = {}) {
6
6
  registerGeneratedTool(registry, {
7
7
  name: "searchconsole_url_testing_tools_mobile_friendly_test_run",
8
- cud: "create",
8
+ cud: "read",
9
9
  description: "Runs Mobile-Friendly Test for a given URL.",
10
10
  method: { id: "searchconsole.urlTestingTools.mobileFriendlyTest.run", httpMethod: "POST", path: "v1/urlTestingTools/mobileFriendlyTest:run", baseUrl: "https://searchconsole.googleapis.com/", requiredParams: [] },
11
11
  params: [{ "field": "fields", "api": "fields", "location": "query" }],
12
12
  hasBody: true,
13
+ bodyParams: [{ "field": "requestScreenshot", "api": "requestScreenshot" }, { "field": "url", "api": "url" }],
13
14
  shape: {
14
- account: accountField(),
15
- body: coerceJson(z.record(z.string(), z.unknown())).describe("RunMobileFriendlyTestRequest JSON request body. Top-level fields: requestScreenshot, url."),
15
+ account: accountField(() => registry.accountAliases()),
16
+ requestScreenshot: coerceBoolean.describe("Whether or not screenshot is requested. Default is false.").optional(),
17
+ url: z.string().describe("URL for inspection.").optional(),
16
18
  fields: z.string().optional().describe('Response field mask.'),
17
19
  },
18
- });
20
+ }, deps);
19
21
  }
@@ -1,2 +1,3 @@
1
1
  import type { ToolRegistry } from '../../registry.js';
2
- export declare function registerSheetsGeneratedTools(registry: ToolRegistry): void;
2
+ import { type ExecuteDeps } from './_shared.js';
3
+ export declare function registerSheetsGeneratedTools(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 registerSheetsGeneratedTools(registry) {
5
+ export function registerSheetsGeneratedTools(registry, deps = {}) {
6
6
  // Interned method scope sets (shared across tools; see scope-observability).
7
7
  const S_sheets_v4 = [
8
8
  ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file", "https://www.googleapis.com/auth/spreadsheets"],
@@ -15,12 +15,12 @@ export function registerSheetsGeneratedTools(registry) {
15
15
  params: [{ "field": "metadataId", "api": "metadataId", "location": "path" }, { "field": "spreadsheetId", "api": "spreadsheetId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
16
16
  hasBody: false,
17
17
  shape: {
18
- account: accountField(),
18
+ account: accountField(() => registry.accountAliases()),
19
19
  metadataId: z.number().describe("The ID of the developer metadata to retrieve."),
20
- spreadsheetId: z.string().describe("The ID of the spreadsheet to retrieve metadata from."),
20
+ spreadsheetId: z.string().min(1).describe("The ID of the spreadsheet to retrieve metadata from."),
21
21
  fields: z.string().optional().describe('Response field mask.'),
22
22
  },
23
- });
23
+ }, deps);
24
24
  registerGeneratedTool(registry, {
25
25
  name: "sheets_spreadsheets_developer_metadata_search",
26
26
  cud: "read",
@@ -29,12 +29,12 @@ export function registerSheetsGeneratedTools(registry) {
29
29
  params: [{ "field": "spreadsheetId", "api": "spreadsheetId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
30
30
  hasBody: true,
31
31
  shape: {
32
- account: accountField(),
33
- spreadsheetId: z.string().describe("The ID of the spreadsheet to retrieve metadata from."),
32
+ account: accountField(() => registry.accountAliases()),
33
+ spreadsheetId: z.string().min(1).describe("The ID of the spreadsheet to retrieve metadata from."),
34
34
  body: coerceJson(z.record(z.string(), z.unknown())).describe("SearchDeveloperMetadataRequest JSON request body. Top-level fields: dataFilters."),
35
35
  fields: z.string().optional().describe('Response field mask.'),
36
36
  },
37
- });
37
+ }, deps);
38
38
  registerGeneratedTool(registry, {
39
39
  name: "sheets_spreadsheets_get_by_data_filter",
40
40
  cud: "read",
@@ -43,12 +43,12 @@ export function registerSheetsGeneratedTools(registry) {
43
43
  params: [{ "field": "spreadsheetId", "api": "spreadsheetId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
44
44
  hasBody: true,
45
45
  shape: {
46
- account: accountField(),
47
- spreadsheetId: z.string().describe("The spreadsheet to request."),
46
+ account: accountField(() => registry.accountAliases()),
47
+ spreadsheetId: z.string().min(1).describe("The spreadsheet to request."),
48
48
  body: coerceJson(z.record(z.string(), z.unknown())).describe("GetSpreadsheetByDataFilterRequest JSON request body. Top-level fields: dataFilters, excludeTablesInBandedRanges, includeGridData."),
49
49
  fields: z.string().optional().describe('Response field mask.'),
50
50
  },
51
- });
51
+ }, deps);
52
52
  registerGeneratedTool(registry, {
53
53
  name: "sheets_spreadsheets_sheets_copy_to",
54
54
  cud: "create",
@@ -56,14 +56,15 @@ export function registerSheetsGeneratedTools(registry) {
56
56
  method: { id: "sheets.spreadsheets.sheets.copyTo", httpMethod: "POST", path: "v4/spreadsheets/{spreadsheetId}/sheets/{sheetId}:copyTo", baseUrl: "https://sheets.googleapis.com/", requiredParams: ["spreadsheetId", "sheetId"], scopes: S_sheets_v4[0] },
57
57
  params: [{ "field": "sheetId", "api": "sheetId", "location": "path" }, { "field": "spreadsheetId", "api": "spreadsheetId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
58
58
  hasBody: true,
59
+ bodyParams: [{ "field": "destinationSpreadsheetId", "api": "destinationSpreadsheetId" }],
59
60
  shape: {
60
- account: accountField(),
61
+ account: accountField(() => registry.accountAliases()),
61
62
  sheetId: z.number().describe("The ID of the sheet to copy."),
62
- spreadsheetId: z.string().describe("The ID of the spreadsheet containing the sheet to copy."),
63
- body: coerceJson(z.record(z.string(), z.unknown())).describe("CopySheetToAnotherSpreadsheetRequest JSON request body. Top-level fields: destinationSpreadsheetId."),
63
+ spreadsheetId: z.string().min(1).describe("The ID of the spreadsheet containing the sheet to copy."),
64
+ destinationSpreadsheetId: z.string().describe("The ID of the spreadsheet to copy the sheet to.").optional(),
64
65
  fields: z.string().optional().describe('Response field mask.'),
65
66
  },
66
- });
67
+ }, deps);
67
68
  registerGeneratedTool(registry, {
68
69
  name: "sheets_spreadsheets_values_batch_clear_by_data_filter",
69
70
  cud: "delete",
@@ -72,12 +73,12 @@ export function registerSheetsGeneratedTools(registry) {
72
73
  params: [{ "field": "spreadsheetId", "api": "spreadsheetId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
73
74
  hasBody: true,
74
75
  shape: {
75
- account: accountField(),
76
- spreadsheetId: z.string().describe("The ID of the spreadsheet to update."),
76
+ account: accountField(() => registry.accountAliases()),
77
+ spreadsheetId: z.string().min(1).describe("The ID of the spreadsheet to update."),
77
78
  body: coerceJson(z.record(z.string(), z.unknown())).describe("BatchClearValuesByDataFilterRequest JSON request body. Top-level fields: dataFilters."),
78
79
  fields: z.string().optional().describe('Response field mask.'),
79
80
  },
80
- });
81
+ }, deps);
81
82
  registerGeneratedTool(registry, {
82
83
  name: "sheets_spreadsheets_values_batch_get_by_data_filter",
83
84
  cud: "read",
@@ -86,24 +87,24 @@ export function registerSheetsGeneratedTools(registry) {
86
87
  params: [{ "field": "spreadsheetId", "api": "spreadsheetId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
87
88
  hasBody: true,
88
89
  shape: {
89
- account: accountField(),
90
- spreadsheetId: z.string().describe("The ID of the spreadsheet to retrieve data from."),
90
+ account: accountField(() => registry.accountAliases()),
91
+ spreadsheetId: z.string().min(1).describe("The ID of the spreadsheet to retrieve data from."),
91
92
  body: coerceJson(z.record(z.string(), z.unknown())).describe("BatchGetValuesByDataFilterRequest JSON request body. Top-level fields: dataFilters, dateTimeRenderOption, majorDimension, valueRenderOption."),
92
93
  fields: z.string().optional().describe('Response field mask.'),
93
94
  },
94
- });
95
+ }, deps);
95
96
  registerGeneratedTool(registry, {
96
97
  name: "sheets_spreadsheets_values_batch_update_by_data_filter",
97
- cud: "create",
98
+ cud: "update",
98
99
  description: "Sets values in one or more ranges of a spreadsheet. For more information, see [Read, write, and search metadata](https://developers.google.com/workspace/sheets/",
99
100
  method: { id: "sheets.spreadsheets.values.batchUpdateByDataFilter", httpMethod: "POST", path: "v4/spreadsheets/{spreadsheetId}/values:batchUpdateByDataFilter", baseUrl: "https://sheets.googleapis.com/", requiredParams: ["spreadsheetId"], scopes: S_sheets_v4[0] },
100
101
  params: [{ "field": "spreadsheetId", "api": "spreadsheetId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
101
102
  hasBody: true,
102
103
  shape: {
103
- account: accountField(),
104
- spreadsheetId: z.string().describe("The ID of the spreadsheet to update."),
104
+ account: accountField(() => registry.accountAliases()),
105
+ spreadsheetId: z.string().min(1).describe("The ID of the spreadsheet to update."),
105
106
  body: coerceJson(z.record(z.string(), z.unknown())).describe("BatchUpdateValuesByDataFilterRequest JSON request body. Top-level fields: data, includeValuesInResponse, responseDateTimeRenderOption, responseValueRenderOption, valueInputOption."),
106
107
  fields: z.string().optional().describe('Response field mask.'),
107
108
  },
108
- });
109
+ }, deps);
109
110
  }
@@ -1,2 +1,3 @@
1
1
  import type { ToolRegistry } from '../../registry.js';
2
- export declare function registerTasksGeneratedTools(registry: ToolRegistry): void;
2
+ import { type ExecuteDeps } from './_shared.js';
3
+ export declare function registerTasksGeneratedTools(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 registerTasksGeneratedTools(registry) {
5
+ export function registerTasksGeneratedTools(registry, deps = {}) {
6
6
  // Interned method scope sets (shared across tools; see scope-observability).
7
7
  const S_tasks_v1 = [
8
8
  ["https://www.googleapis.com/auth/tasks"],
@@ -14,13 +14,19 @@ export function registerTasksGeneratedTools(registry) {
14
14
  method: { id: "tasks.tasklists.update", httpMethod: "PUT", path: "tasks/v1/users/@me/lists/{tasklist}", baseUrl: "https://tasks.googleapis.com/", requiredParams: ["tasklist"], scopes: S_tasks_v1[0] },
15
15
  params: [{ "field": "tasklist", "api": "tasklist", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
16
16
  hasBody: true,
17
+ bodyParams: [{ "field": "etag", "api": "etag" }, { "field": "id", "api": "id" }, { "field": "kind", "api": "kind" }, { "field": "selfLink", "api": "selfLink" }, { "field": "title", "api": "title" }, { "field": "updated", "api": "updated" }],
17
18
  shape: {
18
- account: accountField(),
19
- tasklist: z.string().describe("Task list identifier."),
20
- body: coerceJson(z.record(z.string(), z.unknown())).describe("TaskList JSON request body. Top-level fields: etag, id, kind, selfLink, title, updated."),
19
+ account: accountField(() => registry.accountAliases()),
20
+ tasklist: z.string().min(1).describe("Task list identifier."),
21
+ etag: z.string().describe("ETag of the resource.").optional(),
22
+ id: z.string().describe("Task list identifier.").optional(),
23
+ kind: z.string().describe("Output only. Type of the resource. This is always \"tasks#taskList\".").optional(),
24
+ selfLink: z.string().describe("Output only. URL pointing to this task list. Used to retrieve, update, or delete this task list.").optional(),
25
+ title: z.string().describe("Title of the task list. Maximum length allowed: 1024 characters.").optional(),
26
+ updated: z.string().describe("Output only. Last modification time of the task list (as a RFC 3339 timestamp).").optional(),
21
27
  fields: z.string().optional().describe('Response field mask.'),
22
28
  },
23
- });
29
+ }, deps);
24
30
  registerGeneratedTool(registry, {
25
31
  name: "tasks_tasks_update",
26
32
  cud: "update",
@@ -29,11 +35,11 @@ export function registerTasksGeneratedTools(registry) {
29
35
  params: [{ "field": "task", "api": "task", "location": "path" }, { "field": "tasklist", "api": "tasklist", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
30
36
  hasBody: true,
31
37
  shape: {
32
- account: accountField(),
33
- task: z.string().describe("Task identifier."),
34
- tasklist: z.string().describe("Task list identifier."),
38
+ account: accountField(() => registry.accountAliases()),
39
+ task: z.string().min(1).describe("Task identifier."),
40
+ tasklist: z.string().min(1).describe("Task list identifier."),
35
41
  body: coerceJson(z.record(z.string(), z.unknown())).describe("Task JSON request body. Top-level fields: assignmentInfo, completed, deleted, due, etag, hidden, id, kind, links, notes, parent, position, +5 more."),
36
42
  fields: z.string().optional().describe('Response field mask.'),
37
43
  },
38
- });
44
+ }, deps);
39
45
  }
@@ -1,2 +1,3 @@
1
1
  import type { ToolRegistry } from '../../registry.js';
2
- export declare function registerVaultGeneratedTools(registry: ToolRegistry): void;
2
+ import { type ExecuteDeps } from './_shared.js';
3
+ export declare function registerVaultGeneratedTools(registry: ToolRegistry, deps?: ExecuteDeps): void;