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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (181) hide show
  1. package/README.md +5 -5
  2. package/dist/accounts.d.ts +20 -4
  3. package/dist/accounts.js +68 -44
  4. package/dist/api-probe.d.ts +5 -0
  5. package/dist/api-probe.js +20 -15
  6. package/dist/arg-normalize.js +19 -38
  7. package/dist/arg-strict.d.ts +7 -0
  8. package/dist/arg-strict.js +38 -28
  9. package/dist/auth.d.ts +5 -4
  10. package/dist/auth.js +16 -23
  11. package/dist/boot-gates.d.ts +26 -0
  12. package/dist/boot-gates.js +36 -0
  13. package/dist/cimd-cache.d.ts +38 -0
  14. package/dist/cimd-cache.js +111 -0
  15. package/dist/client-config.d.ts +2 -2
  16. package/dist/client-config.js +8 -14
  17. package/dist/client.d.ts +32 -2
  18. package/dist/client.js +0 -0
  19. package/dist/compose.d.ts +18 -0
  20. package/dist/compose.js +109 -0
  21. package/dist/config-file.d.ts +13 -0
  22. package/dist/config-file.js +41 -10
  23. package/dist/discover.js +7 -10
  24. package/dist/discovery-client.d.ts +3 -0
  25. package/dist/discovery-client.js +36 -32
  26. package/dist/doctor.d.ts +9 -5
  27. package/dist/doctor.js +119 -29
  28. package/dist/env-load.js +2 -5
  29. package/dist/executor.d.ts +3 -0
  30. package/dist/executor.js +6 -6
  31. package/dist/fanout.d.ts +9 -1
  32. package/dist/fanout.js +47 -22
  33. package/dist/fs-atomic.d.ts +8 -0
  34. package/dist/fs-atomic.js +216 -29
  35. package/dist/hint-provider.d.ts +129 -0
  36. package/dist/hint-provider.js +58 -0
  37. package/dist/http-config.d.ts +2 -2
  38. package/dist/http-config.js +3 -7
  39. package/dist/http-transport.d.ts +67 -9
  40. package/dist/http-transport.js +318 -52
  41. package/dist/identity.d.ts +6 -3
  42. package/dist/identity.js +24 -8
  43. package/dist/index.js +76 -160
  44. package/dist/master-key.d.ts +3 -3
  45. package/dist/master-key.js +16 -19
  46. package/dist/mcp-token.d.ts +126 -19
  47. package/dist/mcp-token.js +557 -76
  48. package/dist/metrics-cli.d.ts +1 -1
  49. package/dist/metrics-cli.js +1 -1
  50. package/dist/metrics-tap.js +2 -5
  51. package/dist/migrate-config.d.ts +1 -2
  52. package/dist/migrate-config.js +5 -7
  53. package/dist/net-tuning.js +2 -4
  54. package/dist/oauth-as.d.ts +104 -4
  55. package/dist/oauth-as.js +368 -114
  56. package/dist/oauth-consent.d.ts +10 -0
  57. package/dist/oauth-consent.js +20 -10
  58. package/dist/outbound-allowlist.js +9 -11
  59. package/dist/reauth-hint.d.ts +1 -1
  60. package/dist/reauth-hint.js +11 -10
  61. package/dist/registry-transfer.d.ts +5 -0
  62. package/dist/registry-transfer.js +63 -11
  63. package/dist/registry.d.ts +13 -4
  64. package/dist/registry.js +100 -72
  65. package/dist/scope-catalog.d.ts +16 -0
  66. package/dist/scope-catalog.js +40 -13
  67. package/dist/scope-observability.d.ts +10 -9
  68. package/dist/scope-observability.js +34 -24
  69. package/dist/services.d.ts +18 -10
  70. package/dist/services.js +61 -22
  71. package/dist/ssrf-guard.d.ts +23 -9
  72. package/dist/ssrf-guard.js +106 -78
  73. package/dist/tenant-purge.d.ts +26 -0
  74. package/dist/tenant-purge.js +65 -0
  75. package/dist/token-store.d.ts +20 -2
  76. package/dist/token-store.js +0 -0
  77. package/dist/tools/_coerce.d.ts +4 -4
  78. package/dist/tools/_errors.d.ts +3 -0
  79. package/dist/tools/_errors.js +72 -60
  80. package/dist/tools/_local-files.d.ts +9 -0
  81. package/dist/tools/_local-files.js +22 -8
  82. package/dist/tools/account-wizard.d.ts +13 -3
  83. package/dist/tools/account-wizard.js +107 -56
  84. package/dist/tools/accounts-tool.d.ts +8 -1
  85. package/dist/tools/accounts-tool.js +35 -19
  86. package/dist/tools/admin.d.ts +10 -1
  87. package/dist/tools/admin.js +14 -11
  88. package/dist/tools/analytics.d.ts +10 -1
  89. package/dist/tools/analytics.js +14 -10
  90. package/dist/tools/calendar.d.ts +2 -1
  91. package/dist/tools/calendar.js +19 -18
  92. package/dist/tools/chat.d.ts +10 -1
  93. package/dist/tools/chat.js +12 -8
  94. package/dist/tools/contacts.d.ts +2 -1
  95. package/dist/tools/contacts.js +22 -19
  96. package/dist/tools/docs.d.ts +2 -1
  97. package/dist/tools/docs.js +35 -36
  98. package/dist/tools/drive.d.ts +2 -1
  99. package/dist/tools/drive.js +80 -74
  100. package/dist/tools/forms.d.ts +10 -1
  101. package/dist/tools/forms.js +18 -12
  102. package/dist/tools/generated/_shared.d.ts +2 -1
  103. package/dist/tools/generated/_shared.js +7 -3
  104. package/dist/tools/generated/admin.d.ts +2 -1
  105. package/dist/tools/generated/admin.js +265 -265
  106. package/dist/tools/generated/analytics.d.ts +2 -1
  107. package/dist/tools/generated/analytics.js +125 -125
  108. package/dist/tools/generated/appsmarket.d.ts +2 -1
  109. package/dist/tools/generated/appsmarket.js +5 -5
  110. package/dist/tools/generated/calendar.d.ts +2 -1
  111. package/dist/tools/generated/calendar.js +55 -55
  112. package/dist/tools/generated/chat.d.ts +2 -1
  113. package/dist/tools/generated/chat.js +95 -95
  114. package/dist/tools/generated/classroom.d.ts +2 -1
  115. package/dist/tools/generated/classroom.js +209 -209
  116. package/dist/tools/generated/cloudidentity.d.ts +2 -1
  117. package/dist/tools/generated/cloudidentity.js +133 -133
  118. package/dist/tools/generated/cloudsearch.d.ts +2 -1
  119. package/dist/tools/generated/cloudsearch.js +99 -99
  120. package/dist/tools/generated/contacts.d.ts +2 -1
  121. package/dist/tools/generated/contacts.js +29 -29
  122. package/dist/tools/generated/drive.d.ts +2 -1
  123. package/dist/tools/generated/drive.js +71 -71
  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 +53 -53
  128. package/dist/tools/generated/forms.d.ts +2 -1
  129. package/dist/tools/generated/forms.js +7 -7
  130. package/dist/tools/generated/gmail.d.ts +2 -1
  131. package/dist/tools/generated/gmail.js +117 -117
  132. package/dist/tools/generated/groupsmigration.d.ts +2 -1
  133. package/dist/tools/generated/groupsmigration.js +3 -3
  134. package/dist/tools/generated/groupssettings.d.ts +2 -1
  135. package/dist/tools/generated/groupssettings.js +7 -7
  136. package/dist/tools/generated/index.d.ts +2 -1
  137. package/dist/tools/generated/keep.d.ts +2 -1
  138. package/dist/tools/generated/keep.js +15 -15
  139. package/dist/tools/generated/licensing.d.ts +2 -1
  140. package/dist/tools/generated/licensing.js +15 -15
  141. package/dist/tools/generated/meet.d.ts +2 -1
  142. package/dist/tools/generated/meet.js +27 -27
  143. package/dist/tools/generated/postmaster.d.ts +2 -1
  144. package/dist/tools/generated/postmaster.js +9 -9
  145. package/dist/tools/generated/reseller.d.ts +2 -1
  146. package/dist/tools/generated/reseller.js +35 -35
  147. package/dist/tools/generated/script.d.ts +2 -1
  148. package/dist/tools/generated/script.js +33 -33
  149. package/dist/tools/generated/searchconsole.d.ts +2 -1
  150. package/dist/tools/generated/searchconsole.js +3 -3
  151. package/dist/tools/generated/sheets.d.ts +2 -1
  152. package/dist/tools/generated/sheets.js +15 -15
  153. package/dist/tools/generated/tasks.d.ts +2 -1
  154. package/dist/tools/generated/tasks.js +5 -5
  155. package/dist/tools/generated/vault.d.ts +2 -1
  156. package/dist/tools/generated/vault.js +67 -67
  157. package/dist/tools/generated/workspaceevents.d.ts +2 -1
  158. package/dist/tools/generated/workspaceevents.js +31 -31
  159. package/dist/tools/gmail-mime.d.ts +1 -1
  160. package/dist/tools/gmail-mime.js +7 -12
  161. package/dist/tools/gmail.d.ts +4 -3
  162. package/dist/tools/gmail.js +67 -69
  163. package/dist/tools/google-api.d.ts +2 -3
  164. package/dist/tools/google-api.js +34 -22
  165. package/dist/tools/meet.d.ts +10 -1
  166. package/dist/tools/meet.js +12 -9
  167. package/dist/tools/searchconsole.d.ts +2 -1
  168. package/dist/tools/searchconsole.js +16 -13
  169. package/dist/tools/sheets.d.ts +2 -1
  170. package/dist/tools/sheets.js +35 -32
  171. package/dist/tools/slides.d.ts +10 -1
  172. package/dist/tools/slides.js +16 -10
  173. package/dist/tools/tasks.d.ts +2 -1
  174. package/dist/tools/tasks.js +18 -15
  175. package/dist/trim.d.ts +5 -0
  176. package/dist/trim.js +19 -0
  177. package/dist/usage-metrics.d.ts +23 -0
  178. package/dist/usage-metrics.js +67 -56
  179. package/dist/write-control.d.ts +4 -8
  180. package/dist/write-control.js +13 -6
  181. package/package.json +47 -21
@@ -1,2 +1,3 @@
1
1
  import type { ToolRegistry } from '../../registry.js';
2
- export declare function registerAppsmarketGeneratedTools(registry: ToolRegistry): void;
2
+ import { type ExecuteDeps } from './_shared.js';
3
+ export declare function registerAppsmarketGeneratedTools(registry: ToolRegistry, deps?: ExecuteDeps): void;
@@ -1,7 +1,7 @@
1
1
  // GENERATED by scripts/gen-tools.ts — do not edit. Regenerate: npm run gen:tools
2
2
  import { z } from 'zod';
3
3
  import { accountField, registerGeneratedTool } from './_shared.js';
4
- export function registerAppsmarketGeneratedTools(registry) {
4
+ export function registerAppsmarketGeneratedTools(registry, deps = {}) {
5
5
  // Interned method scope sets (shared across tools; see scope-observability).
6
6
  const S_appsmarket_v2 = [
7
7
  ["https://www.googleapis.com/auth/appsmarketplace.license"],
@@ -14,12 +14,12 @@ export function registerAppsmarketGeneratedTools(registry) {
14
14
  params: [{ "field": "applicationId", "api": "applicationId", "location": "path" }, { "field": "customerId", "api": "customerId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
15
15
  hasBody: false,
16
16
  shape: {
17
- account: accountField(),
17
+ account: accountField(() => registry.accountAliases()),
18
18
  applicationId: z.string().min(1).describe("The ID of the application."),
19
19
  customerId: z.string().min(1).describe("The ID of the customer."),
20
20
  fields: z.string().optional().describe('Response field mask.'),
21
21
  },
22
- });
22
+ }, deps);
23
23
  registerGeneratedTool(registry, {
24
24
  name: "appsmarket_user_license_get",
25
25
  cud: "read",
@@ -28,10 +28,10 @@ export function registerAppsmarketGeneratedTools(registry) {
28
28
  params: [{ "field": "applicationId", "api": "applicationId", "location": "path" }, { "field": "userId", "api": "userId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
29
29
  hasBody: false,
30
30
  shape: {
31
- account: accountField(),
31
+ account: accountField(() => registry.accountAliases()),
32
32
  applicationId: z.string().min(1).describe("The ID of the application."),
33
33
  userId: z.string().min(1).describe("The ID of the user."),
34
34
  fields: z.string().optional().describe('Response field mask.'),
35
35
  },
36
- });
36
+ }, deps);
37
37
  }
@@ -1,2 +1,3 @@
1
1
  import type { ToolRegistry } from '../../registry.js';
2
- export declare function registerCalendarGeneratedTools(registry: ToolRegistry): void;
2
+ import { type ExecuteDeps } from './_shared.js';
3
+ export declare function registerCalendarGeneratedTools(registry: ToolRegistry, deps?: ExecuteDeps): void;
@@ -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 registerCalendarGeneratedTools(registry) {
5
+ export function registerCalendarGeneratedTools(registry, deps = {}) {
6
6
  // Interned method scope sets (shared across tools; see scope-observability).
7
7
  const S_calendar_v3 = [
8
8
  ["https://www.googleapis.com/auth/calendar", "https://www.googleapis.com/auth/calendar.acls"],
@@ -29,12 +29,12 @@ export function registerCalendarGeneratedTools(registry) {
29
29
  params: [{ "field": "calendarId", "api": "calendarId", "location": "path" }, { "field": "ruleId", "api": "ruleId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
30
30
  hasBody: false,
31
31
  shape: {
32
- account: accountField(),
32
+ account: accountField(() => registry.accountAliases()),
33
33
  calendarId: z.string().min(1).describe("Calendar identifier. To retrieve calendar IDs call the calendarList.list method. If you want to access the primary calendar of the currently logged in user, use the \"primary\" keyword."),
34
34
  ruleId: z.string().min(1).describe("ACL rule identifier."),
35
35
  fields: z.string().optional().describe('Response field mask.'),
36
36
  },
37
- });
37
+ }, deps);
38
38
  registerGeneratedTool(registry, {
39
39
  name: "calendar_acl_get",
40
40
  cud: "read",
@@ -43,12 +43,12 @@ export function registerCalendarGeneratedTools(registry) {
43
43
  params: [{ "field": "calendarId", "api": "calendarId", "location": "path" }, { "field": "ruleId", "api": "ruleId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
44
44
  hasBody: false,
45
45
  shape: {
46
- account: accountField(),
46
+ account: accountField(() => registry.accountAliases()),
47
47
  calendarId: z.string().min(1).describe("Calendar identifier. To retrieve calendar IDs call the calendarList.list method. If you want to access the primary calendar of the currently logged in user, use the \"primary\" keyword."),
48
48
  ruleId: z.string().min(1).describe("ACL rule identifier."),
49
49
  fields: z.string().optional().describe('Response field mask.'),
50
50
  },
51
- });
51
+ }, deps);
52
52
  registerGeneratedTool(registry, {
53
53
  name: "calendar_acl_insert",
54
54
  cud: "create",
@@ -57,13 +57,13 @@ export function registerCalendarGeneratedTools(registry) {
57
57
  params: [{ "field": "calendarId", "api": "calendarId", "location": "path" }, { "field": "sendNotifications", "api": "sendNotifications", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
58
58
  hasBody: true,
59
59
  shape: {
60
- account: accountField(),
60
+ account: accountField(() => registry.accountAliases()),
61
61
  calendarId: z.string().min(1).describe("Calendar identifier. To retrieve calendar IDs call the calendarList.list method. If you want to access the primary calendar of the currently logged in user, use the \"primary\" keyword."),
62
62
  sendNotifications: coerceBoolean.describe("Whether to send notifications about the calendar sharing change. Optional. The default is True.").optional(),
63
63
  body: coerceJson(z.record(z.string(), z.unknown())).describe("AclRule JSON request body. Top-level fields: etag, id, kind, role, scope."),
64
64
  fields: z.string().optional().describe('Response field mask.'),
65
65
  },
66
- });
66
+ }, deps);
67
67
  registerGeneratedTool(registry, {
68
68
  name: "calendar_acl_list",
69
69
  cud: "read",
@@ -72,7 +72,7 @@ export function registerCalendarGeneratedTools(registry) {
72
72
  params: [{ "field": "calendarId", "api": "calendarId", "location": "path" }, { "field": "maxResults", "api": "maxResults", "location": "query" }, { "field": "pageToken", "api": "pageToken", "location": "query" }, { "field": "showDeleted", "api": "showDeleted", "location": "query" }, { "field": "syncToken", "api": "syncToken", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
73
73
  hasBody: false,
74
74
  shape: {
75
- account: accountField(),
75
+ account: accountField(() => registry.accountAliases()),
76
76
  calendarId: z.string().min(1).describe("Calendar identifier. To retrieve calendar IDs call the calendarList.list method. If you want to access the primary calendar of the currently logged in user, use the \"primary\" keyword."),
77
77
  maxResults: z.number().describe("Maximum number of entries returned on one result page. By default the value is 100 entries. The page size can never be larger than 250 entries. Optional.").optional(),
78
78
  pageToken: z.string().describe("Token specifying which result page to return. Optional.").optional(),
@@ -80,7 +80,7 @@ export function registerCalendarGeneratedTools(registry) {
80
80
  syncToken: z.string().describe("Token obtained from the nextSyncToken field returned on the last page of results from the previous list request. It makes the result of this list request contain only entries that have changed since t").optional(),
81
81
  fields: z.string().optional().describe('Response field mask.'),
82
82
  },
83
- });
83
+ }, deps);
84
84
  registerGeneratedTool(registry, {
85
85
  name: "calendar_acl_patch",
86
86
  cud: "update",
@@ -89,14 +89,14 @@ export function registerCalendarGeneratedTools(registry) {
89
89
  params: [{ "field": "calendarId", "api": "calendarId", "location": "path" }, { "field": "ruleId", "api": "ruleId", "location": "path" }, { "field": "sendNotifications", "api": "sendNotifications", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
90
90
  hasBody: true,
91
91
  shape: {
92
- account: accountField(),
92
+ account: accountField(() => registry.accountAliases()),
93
93
  calendarId: z.string().min(1).describe("Calendar identifier. To retrieve calendar IDs call the calendarList.list method. If you want to access the primary calendar of the currently logged in user, use the \"primary\" keyword."),
94
94
  ruleId: z.string().min(1).describe("ACL rule identifier."),
95
95
  sendNotifications: coerceBoolean.describe("Whether to send notifications about the calendar sharing change. Note that there are no notifications on access removal. Optional. The default is True.").optional(),
96
96
  body: coerceJson(z.record(z.string(), z.unknown())).describe("AclRule JSON request body. Top-level fields: etag, id, kind, role, scope."),
97
97
  fields: z.string().optional().describe('Response field mask.'),
98
98
  },
99
- });
99
+ }, deps);
100
100
  registerGeneratedTool(registry, {
101
101
  name: "calendar_acl_update",
102
102
  cud: "update",
@@ -105,14 +105,14 @@ export function registerCalendarGeneratedTools(registry) {
105
105
  params: [{ "field": "calendarId", "api": "calendarId", "location": "path" }, { "field": "ruleId", "api": "ruleId", "location": "path" }, { "field": "sendNotifications", "api": "sendNotifications", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
106
106
  hasBody: true,
107
107
  shape: {
108
- account: accountField(),
108
+ account: accountField(() => registry.accountAliases()),
109
109
  calendarId: z.string().min(1).describe("Calendar identifier. To retrieve calendar IDs call the calendarList.list method. If you want to access the primary calendar of the currently logged in user, use the \"primary\" keyword."),
110
110
  ruleId: z.string().min(1).describe("ACL rule identifier."),
111
111
  sendNotifications: coerceBoolean.describe("Whether to send notifications about the calendar sharing change. Note that there are no notifications on access removal. Optional. The default is True.").optional(),
112
112
  body: coerceJson(z.record(z.string(), z.unknown())).describe("AclRule JSON request body. Top-level fields: etag, id, kind, role, scope."),
113
113
  fields: z.string().optional().describe('Response field mask.'),
114
114
  },
115
- });
115
+ }, deps);
116
116
  registerGeneratedTool(registry, {
117
117
  name: "calendar_acl_watch",
118
118
  cud: "create",
@@ -121,7 +121,7 @@ export function registerCalendarGeneratedTools(registry) {
121
121
  params: [{ "field": "calendarId", "api": "calendarId", "location": "path" }, { "field": "maxResults", "api": "maxResults", "location": "query" }, { "field": "pageToken", "api": "pageToken", "location": "query" }, { "field": "showDeleted", "api": "showDeleted", "location": "query" }, { "field": "syncToken", "api": "syncToken", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
122
122
  hasBody: true,
123
123
  shape: {
124
- account: accountField(),
124
+ account: accountField(() => registry.accountAliases()),
125
125
  calendarId: z.string().min(1).describe("Calendar identifier. To retrieve calendar IDs call the calendarList.list method. If you want to access the primary calendar of the currently logged in user, use the \"primary\" keyword."),
126
126
  maxResults: z.number().describe("Maximum number of entries returned on one result page. By default the value is 100 entries. The page size can never be larger than 250 entries. Optional.").optional(),
127
127
  pageToken: z.string().describe("Token specifying which result page to return. Optional.").optional(),
@@ -130,7 +130,7 @@ export function registerCalendarGeneratedTools(registry) {
130
130
  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."),
131
131
  fields: z.string().optional().describe('Response field mask.'),
132
132
  },
133
- });
133
+ }, deps);
134
134
  registerGeneratedTool(registry, {
135
135
  name: "calendar_calendar_list_delete",
136
136
  cud: "delete",
@@ -139,11 +139,11 @@ export function registerCalendarGeneratedTools(registry) {
139
139
  params: [{ "field": "calendarId", "api": "calendarId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
140
140
  hasBody: false,
141
141
  shape: {
142
- account: accountField(),
142
+ account: accountField(() => registry.accountAliases()),
143
143
  calendarId: z.string().min(1).describe("Calendar identifier. To retrieve calendar IDs call the calendarList.list method. If you want to access the primary calendar of the currently logged in user, use the \"primary\" keyword."),
144
144
  fields: z.string().optional().describe('Response field mask.'),
145
145
  },
146
- });
146
+ }, deps);
147
147
  registerGeneratedTool(registry, {
148
148
  name: "calendar_calendar_list_get",
149
149
  cud: "read",
@@ -152,11 +152,11 @@ export function registerCalendarGeneratedTools(registry) {
152
152
  params: [{ "field": "calendarId", "api": "calendarId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
153
153
  hasBody: false,
154
154
  shape: {
155
- account: accountField(),
155
+ account: accountField(() => registry.accountAliases()),
156
156
  calendarId: z.string().min(1).describe("Calendar identifier. To retrieve calendar IDs call the calendarList.list method. If you want to access the primary calendar of the currently logged in user, use the \"primary\" keyword."),
157
157
  fields: z.string().optional().describe('Response field mask.'),
158
158
  },
159
- });
159
+ }, deps);
160
160
  registerGeneratedTool(registry, {
161
161
  name: "calendar_calendar_list_insert",
162
162
  cud: "create",
@@ -165,12 +165,12 @@ export function registerCalendarGeneratedTools(registry) {
165
165
  params: [{ "field": "colorRgbFormat", "api": "colorRgbFormat", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
166
166
  hasBody: true,
167
167
  shape: {
168
- account: accountField(),
168
+ account: accountField(() => registry.accountAliases()),
169
169
  colorRgbFormat: coerceBoolean.describe("Whether to use the foregroundColor and backgroundColor fields to write the calendar colors (RGB). If this feature is used, the index-based colorId field will be set to the best matching option automat").optional(),
170
170
  body: coerceJson(z.record(z.string(), z.unknown())).describe("CalendarListEntry JSON request body. Top-level fields: accessRole, autoAcceptInvitations, backgroundColor, colorId, conferenceProperties, dataOwner, defaultReminders, deleted, description, etag, foregroundColor, hidden, +9 more."),
171
171
  fields: z.string().optional().describe('Response field mask.'),
172
172
  },
173
- });
173
+ }, deps);
174
174
  registerGeneratedTool(registry, {
175
175
  name: "calendar_calendar_list_patch",
176
176
  cud: "update",
@@ -179,13 +179,13 @@ export function registerCalendarGeneratedTools(registry) {
179
179
  params: [{ "field": "calendarId", "api": "calendarId", "location": "path" }, { "field": "colorRgbFormat", "api": "colorRgbFormat", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
180
180
  hasBody: true,
181
181
  shape: {
182
- account: accountField(),
182
+ account: accountField(() => registry.accountAliases()),
183
183
  calendarId: z.string().min(1).describe("Calendar identifier. To retrieve calendar IDs call the calendarList.list method. If you want to access the primary calendar of the currently logged in user, use the \"primary\" keyword."),
184
184
  colorRgbFormat: coerceBoolean.describe("Whether to use the foregroundColor and backgroundColor fields to write the calendar colors (RGB). If this feature is used, the index-based colorId field will be set to the best matching option automat").optional(),
185
185
  body: coerceJson(z.record(z.string(), z.unknown())).describe("CalendarListEntry JSON request body. Top-level fields: accessRole, autoAcceptInvitations, backgroundColor, colorId, conferenceProperties, dataOwner, defaultReminders, deleted, description, etag, foregroundColor, hidden, +9 more."),
186
186
  fields: z.string().optional().describe('Response field mask.'),
187
187
  },
188
- });
188
+ }, deps);
189
189
  registerGeneratedTool(registry, {
190
190
  name: "calendar_calendar_list_update",
191
191
  cud: "update",
@@ -194,13 +194,13 @@ export function registerCalendarGeneratedTools(registry) {
194
194
  params: [{ "field": "calendarId", "api": "calendarId", "location": "path" }, { "field": "colorRgbFormat", "api": "colorRgbFormat", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
195
195
  hasBody: true,
196
196
  shape: {
197
- account: accountField(),
197
+ account: accountField(() => registry.accountAliases()),
198
198
  calendarId: z.string().min(1).describe("Calendar identifier. To retrieve calendar IDs call the calendarList.list method. If you want to access the primary calendar of the currently logged in user, use the \"primary\" keyword."),
199
199
  colorRgbFormat: coerceBoolean.describe("Whether to use the foregroundColor and backgroundColor fields to write the calendar colors (RGB). If this feature is used, the index-based colorId field will be set to the best matching option automat").optional(),
200
200
  body: coerceJson(z.record(z.string(), z.unknown())).describe("CalendarListEntry JSON request body. Top-level fields: accessRole, autoAcceptInvitations, backgroundColor, colorId, conferenceProperties, dataOwner, defaultReminders, deleted, description, etag, foregroundColor, hidden, +9 more."),
201
201
  fields: z.string().optional().describe('Response field mask.'),
202
202
  },
203
- });
203
+ }, deps);
204
204
  registerGeneratedTool(registry, {
205
205
  name: "calendar_calendar_list_watch",
206
206
  cud: "create",
@@ -209,7 +209,7 @@ export function registerCalendarGeneratedTools(registry) {
209
209
  params: [{ "field": "maxResults", "api": "maxResults", "location": "query" }, { "field": "minAccessRole", "api": "minAccessRole", "location": "query" }, { "field": "pageToken", "api": "pageToken", "location": "query" }, { "field": "showDeleted", "api": "showDeleted", "location": "query" }, { "field": "showHidden", "api": "showHidden", "location": "query" }, { "field": "showOwnOrganizationOnly", "api": "showOwnOrganizationOnly", "location": "query" }, { "field": "syncToken", "api": "syncToken", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
210
210
  hasBody: true,
211
211
  shape: {
212
- account: accountField(),
212
+ account: accountField(() => registry.accountAliases()),
213
213
  maxResults: z.number().describe("Maximum number of entries returned on one result page. By default the value is 100 entries. The page size can never be larger than 250 entries. Optional.").optional(),
214
214
  minAccessRole: z.enum(["freeBusyReader", "owner", "reader", "writer", "writerWithoutPrivateAccess"]).describe("The minimum access role for the user in the returned entries. Optional. The default is no restriction.").optional(),
215
215
  pageToken: z.string().describe("Token specifying which result page to return. Optional.").optional(),
@@ -220,7 +220,7 @@ export function registerCalendarGeneratedTools(registry) {
220
220
  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."),
221
221
  fields: z.string().optional().describe('Response field mask.'),
222
222
  },
223
- });
223
+ }, deps);
224
224
  registerGeneratedTool(registry, {
225
225
  name: "calendar_calendars_clear",
226
226
  cud: "delete",
@@ -229,11 +229,11 @@ export function registerCalendarGeneratedTools(registry) {
229
229
  params: [{ "field": "calendarId", "api": "calendarId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
230
230
  hasBody: false,
231
231
  shape: {
232
- account: accountField(),
232
+ account: accountField(() => registry.accountAliases()),
233
233
  calendarId: z.string().min(1).describe("Calendar identifier. To retrieve calendar IDs call the calendarList.list method. If you want to access the primary calendar of the currently logged in user, use the \"primary\" keyword."),
234
234
  fields: z.string().optional().describe('Response field mask.'),
235
235
  },
236
- });
236
+ }, deps);
237
237
  registerGeneratedTool(registry, {
238
238
  name: "calendar_calendars_delete",
239
239
  cud: "delete",
@@ -242,11 +242,11 @@ export function registerCalendarGeneratedTools(registry) {
242
242
  params: [{ "field": "calendarId", "api": "calendarId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
243
243
  hasBody: false,
244
244
  shape: {
245
- account: accountField(),
245
+ account: accountField(() => registry.accountAliases()),
246
246
  calendarId: z.string().min(1).describe("Calendar identifier. To retrieve calendar IDs call the calendarList.list method. If you want to access the primary calendar of the currently logged in user, use the \"primary\" keyword."),
247
247
  fields: z.string().optional().describe('Response field mask.'),
248
248
  },
249
- });
249
+ }, deps);
250
250
  registerGeneratedTool(registry, {
251
251
  name: "calendar_calendars_get",
252
252
  cud: "read",
@@ -255,11 +255,11 @@ export function registerCalendarGeneratedTools(registry) {
255
255
  params: [{ "field": "calendarId", "api": "calendarId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
256
256
  hasBody: false,
257
257
  shape: {
258
- account: accountField(),
258
+ account: accountField(() => registry.accountAliases()),
259
259
  calendarId: z.string().min(1).describe("Calendar identifier. To retrieve calendar IDs call the calendarList.list method. If you want to access the primary calendar of the currently logged in user, use the \"primary\" keyword."),
260
260
  fields: z.string().optional().describe('Response field mask.'),
261
261
  },
262
- });
262
+ }, deps);
263
263
  registerGeneratedTool(registry, {
264
264
  name: "calendar_calendars_patch",
265
265
  cud: "update",
@@ -268,12 +268,12 @@ export function registerCalendarGeneratedTools(registry) {
268
268
  params: [{ "field": "calendarId", "api": "calendarId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
269
269
  hasBody: true,
270
270
  shape: {
271
- account: accountField(),
271
+ account: accountField(() => registry.accountAliases()),
272
272
  calendarId: z.string().min(1).describe("Calendar identifier. To retrieve calendar IDs call the calendarList.list method. If you want to access the primary calendar of the currently logged in user, use the \"primary\" keyword."),
273
273
  body: coerceJson(z.record(z.string(), z.unknown())).describe("Calendar JSON request body. Top-level fields: autoAcceptInvitations, conferenceProperties, dataOwner, description, etag, id, kind, labelProperties, location, summary, timeZone."),
274
274
  fields: z.string().optional().describe('Response field mask.'),
275
275
  },
276
- });
276
+ }, deps);
277
277
  registerGeneratedTool(registry, {
278
278
  name: "calendar_calendars_transfer_ownership",
279
279
  cud: "create",
@@ -282,13 +282,13 @@ export function registerCalendarGeneratedTools(registry) {
282
282
  params: [{ "field": "calendarId", "api": "calendarId", "location": "path" }, { "field": "newDataOwner", "api": "newDataOwner", "location": "query" }, { "field": "useAdminAccess", "api": "useAdminAccess", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
283
283
  hasBody: false,
284
284
  shape: {
285
- account: accountField(),
285
+ account: accountField(() => registry.accountAliases()),
286
286
  calendarId: z.string().min(1).describe("Calendar identifier. To retrieve calendar IDs, call the calendarList.list method."),
287
287
  newDataOwner: z.string().min(1).describe("The email address of a user who will become the data owner of the calendar."),
288
288
  useAdminAccess: coerceBoolean.describe("When true, the method runs using the user's Google Workspace administrator privileges. The calling user must be a Google Workspace administrator with the Manage Calendars privilege. This method curren"),
289
289
  fields: z.string().optional().describe('Response field mask.'),
290
290
  },
291
- });
291
+ }, deps);
292
292
  registerGeneratedTool(registry, {
293
293
  name: "calendar_calendars_update",
294
294
  cud: "update",
@@ -297,12 +297,12 @@ export function registerCalendarGeneratedTools(registry) {
297
297
  params: [{ "field": "calendarId", "api": "calendarId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
298
298
  hasBody: true,
299
299
  shape: {
300
- account: accountField(),
300
+ account: accountField(() => registry.accountAliases()),
301
301
  calendarId: z.string().min(1).describe("Calendar identifier. To retrieve calendar IDs call the calendarList.list method. If you want to access the primary calendar of the currently logged in user, use the \"primary\" keyword."),
302
302
  body: coerceJson(z.record(z.string(), z.unknown())).describe("Calendar JSON request body. Top-level fields: autoAcceptInvitations, conferenceProperties, dataOwner, description, etag, id, kind, labelProperties, location, summary, timeZone."),
303
303
  fields: z.string().optional().describe('Response field mask.'),
304
304
  },
305
- });
305
+ }, deps);
306
306
  registerGeneratedTool(registry, {
307
307
  name: "calendar_channels_stop",
308
308
  cud: "delete",
@@ -311,11 +311,11 @@ export function registerCalendarGeneratedTools(registry) {
311
311
  params: [{ "field": "fields", "api": "fields", "location": "query" }],
312
312
  hasBody: true,
313
313
  shape: {
314
- account: accountField(),
314
+ account: accountField(() => registry.accountAliases()),
315
315
  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."),
316
316
  fields: z.string().optional().describe('Response field mask.'),
317
317
  },
318
- });
318
+ }, deps);
319
319
  registerGeneratedTool(registry, {
320
320
  name: "calendar_colors_get",
321
321
  cud: "read",
@@ -324,10 +324,10 @@ export function registerCalendarGeneratedTools(registry) {
324
324
  params: [{ "field": "fields", "api": "fields", "location": "query" }],
325
325
  hasBody: false,
326
326
  shape: {
327
- account: accountField(),
327
+ account: accountField(() => registry.accountAliases()),
328
328
  fields: z.string().optional().describe('Response field mask.'),
329
329
  },
330
- });
330
+ }, deps);
331
331
  registerGeneratedTool(registry, {
332
332
  name: "calendar_events_import",
333
333
  cud: "create",
@@ -336,7 +336,7 @@ export function registerCalendarGeneratedTools(registry) {
336
336
  params: [{ "field": "calendarId", "api": "calendarId", "location": "path" }, { "field": "conferenceDataVersion", "api": "conferenceDataVersion", "location": "query" }, { "field": "eventLabelVersion", "api": "eventLabelVersion", "location": "query" }, { "field": "supportsAttachments", "api": "supportsAttachments", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
337
337
  hasBody: true,
338
338
  shape: {
339
- account: accountField(),
339
+ account: accountField(() => registry.accountAliases()),
340
340
  calendarId: z.string().min(1).describe("Calendar identifier. To retrieve calendar IDs call the calendarList.list method. If you want to access the primary calendar of the currently logged in user, use the \"primary\" keyword."),
341
341
  conferenceDataVersion: z.number().describe("Version number of conference data supported by the API client. Version 0 assumes no conference data support and ignores conference data in the event's body. Version 1 enables support for copying of Co").optional(),
342
342
  eventLabelVersion: z.number().describe("Version number of the event label feature supported by the API client. Version 0 assumes no event label support and processes the colorId field for color management. Version 1 enables support for even").optional(),
@@ -344,7 +344,7 @@ export function registerCalendarGeneratedTools(registry) {
344
344
  body: coerceJson(z.record(z.string(), z.unknown())).describe("Event JSON request body. Top-level fields: anyoneCanAddSelf, attachments, attendees, attendeesOmitted, birthdayProperties, colorId, conferenceData, created, creator, description, end, endTimeUnspecified, +32 more."),
345
345
  fields: z.string().optional().describe('Response field mask.'),
346
346
  },
347
- });
347
+ }, deps);
348
348
  registerGeneratedTool(registry, {
349
349
  name: "calendar_events_update",
350
350
  cud: "update",
@@ -353,7 +353,7 @@ export function registerCalendarGeneratedTools(registry) {
353
353
  params: [{ "field": "calendarId", "api": "calendarId", "location": "path" }, { "field": "eventId", "api": "eventId", "location": "path" }, { "field": "alwaysIncludeEmail", "api": "alwaysIncludeEmail", "location": "query" }, { "field": "conferenceDataVersion", "api": "conferenceDataVersion", "location": "query" }, { "field": "eventLabelVersion", "api": "eventLabelVersion", "location": "query" }, { "field": "maxAttendees", "api": "maxAttendees", "location": "query" }, { "field": "sendNotifications", "api": "sendNotifications", "location": "query" }, { "field": "sendUpdates", "api": "sendUpdates", "location": "query" }, { "field": "supportsAttachments", "api": "supportsAttachments", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
354
354
  hasBody: true,
355
355
  shape: {
356
- account: accountField(),
356
+ account: accountField(() => registry.accountAliases()),
357
357
  calendarId: z.string().min(1).describe("Calendar identifier. To retrieve calendar IDs call the calendarList.list method. If you want to access the primary calendar of the currently logged in user, use the \"primary\" keyword."),
358
358
  eventId: z.string().min(1).describe("Event identifier."),
359
359
  alwaysIncludeEmail: coerceBoolean.describe("Deprecated and ignored. A value will always be returned in the email field for the organizer, creator and attendees, even if no real email address is available (i.e. a generated, non-working value wil").optional(),
@@ -366,7 +366,7 @@ export function registerCalendarGeneratedTools(registry) {
366
366
  body: coerceJson(z.record(z.string(), z.unknown())).describe("Event JSON request body. Top-level fields: anyoneCanAddSelf, attachments, attendees, attendeesOmitted, birthdayProperties, colorId, conferenceData, created, creator, description, end, endTimeUnspecified, +32 more."),
367
367
  fields: z.string().optional().describe('Response field mask.'),
368
368
  },
369
- });
369
+ }, deps);
370
370
  registerGeneratedTool(registry, {
371
371
  name: "calendar_events_watch",
372
372
  cud: "create",
@@ -375,7 +375,7 @@ export function registerCalendarGeneratedTools(registry) {
375
375
  params: [{ "field": "calendarId", "api": "calendarId", "location": "path" }, { "field": "alwaysIncludeEmail", "api": "alwaysIncludeEmail", "location": "query" }, { "field": "eventTypes", "api": "eventTypes", "location": "query" }, { "field": "iCalUID", "api": "iCalUID", "location": "query" }, { "field": "maxAttendees", "api": "maxAttendees", "location": "query" }, { "field": "maxResults", "api": "maxResults", "location": "query" }, { "field": "orderBy", "api": "orderBy", "location": "query" }, { "field": "pageToken", "api": "pageToken", "location": "query" }, { "field": "privateExtendedProperty", "api": "privateExtendedProperty", "location": "query" }, { "field": "q", "api": "q", "location": "query" }, { "field": "sharedExtendedProperty", "api": "sharedExtendedProperty", "location": "query" }, { "field": "showDeleted", "api": "showDeleted", "location": "query" }, { "field": "showHiddenInvitations", "api": "showHiddenInvitations", "location": "query" }, { "field": "singleEvents", "api": "singleEvents", "location": "query" }, { "field": "syncToken", "api": "syncToken", "location": "query" }, { "field": "timeMax", "api": "timeMax", "location": "query" }, { "field": "timeMin", "api": "timeMin", "location": "query" }, { "field": "timeZone", "api": "timeZone", "location": "query" }, { "field": "updatedMin", "api": "updatedMin", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
376
376
  hasBody: true,
377
377
  shape: {
378
- account: accountField(),
378
+ account: accountField(() => registry.accountAliases()),
379
379
  calendarId: z.string().min(1).describe("Calendar identifier. To retrieve calendar IDs call the calendarList.list method. If you want to access the primary calendar of the currently logged in user, use the \"primary\" keyword."),
380
380
  alwaysIncludeEmail: coerceBoolean.describe("Deprecated and ignored.").optional(),
381
381
  eventTypes: coerceArray(z.enum(["birthday", "default", "focusTime", "fromGmail", "outOfOffice", "workingLocation"])).describe("Event types to return. Optional. This parameter can be repeated multiple times to return events of different types. If unset, returns all event types.").optional(),
@@ -398,7 +398,7 @@ export function registerCalendarGeneratedTools(registry) {
398
398
  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."),
399
399
  fields: z.string().optional().describe('Response field mask.'),
400
400
  },
401
- });
401
+ }, deps);
402
402
  registerGeneratedTool(registry, {
403
403
  name: "calendar_settings_get",
404
404
  cud: "read",
@@ -407,11 +407,11 @@ export function registerCalendarGeneratedTools(registry) {
407
407
  params: [{ "field": "setting", "api": "setting", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
408
408
  hasBody: false,
409
409
  shape: {
410
- account: accountField(),
410
+ account: accountField(() => registry.accountAliases()),
411
411
  setting: z.string().min(1).describe("The id of the user setting."),
412
412
  fields: z.string().optional().describe('Response field mask.'),
413
413
  },
414
- });
414
+ }, deps);
415
415
  registerGeneratedTool(registry, {
416
416
  name: "calendar_settings_list",
417
417
  cud: "read",
@@ -420,13 +420,13 @@ export function registerCalendarGeneratedTools(registry) {
420
420
  params: [{ "field": "maxResults", "api": "maxResults", "location": "query" }, { "field": "pageToken", "api": "pageToken", "location": "query" }, { "field": "syncToken", "api": "syncToken", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
421
421
  hasBody: false,
422
422
  shape: {
423
- account: accountField(),
423
+ account: accountField(() => registry.accountAliases()),
424
424
  maxResults: z.number().describe("Maximum number of entries returned on one result page. By default the value is 100 entries. The page size can never be larger than 250 entries. Optional.").optional(),
425
425
  pageToken: z.string().describe("Token specifying which result page to return. Optional.").optional(),
426
426
  syncToken: z.string().describe("Token obtained from the nextSyncToken field returned on the last page of results from the previous list request. It makes the result of this list request contain only entries that have changed since t").optional(),
427
427
  fields: z.string().optional().describe('Response field mask.'),
428
428
  },
429
- });
429
+ }, deps);
430
430
  registerGeneratedTool(registry, {
431
431
  name: "calendar_settings_watch",
432
432
  cud: "create",
@@ -435,12 +435,12 @@ export function registerCalendarGeneratedTools(registry) {
435
435
  params: [{ "field": "maxResults", "api": "maxResults", "location": "query" }, { "field": "pageToken", "api": "pageToken", "location": "query" }, { "field": "syncToken", "api": "syncToken", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
436
436
  hasBody: true,
437
437
  shape: {
438
- account: accountField(),
438
+ account: accountField(() => registry.accountAliases()),
439
439
  maxResults: z.number().describe("Maximum number of entries returned on one result page. By default the value is 100 entries. The page size can never be larger than 250 entries. Optional.").optional(),
440
440
  pageToken: z.string().describe("Token specifying which result page to return. Optional.").optional(),
441
441
  syncToken: z.string().describe("Token obtained from the nextSyncToken field returned on the last page of results from the previous list request. It makes the result of this list request contain only entries that have changed since t").optional(),
442
442
  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."),
443
443
  fields: z.string().optional().describe('Response field mask.'),
444
444
  },
445
- });
445
+ }, deps);
446
446
  }
@@ -1,2 +1,3 @@
1
1
  import type { ToolRegistry } from '../../registry.js';
2
- export declare function registerChatGeneratedTools(registry: ToolRegistry): void;
2
+ import { type ExecuteDeps } from './_shared.js';
3
+ export declare function registerChatGeneratedTools(registry: ToolRegistry, deps?: ExecuteDeps): void;