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
@@ -1,2 +1,3 @@
1
1
  import type { ToolRegistry } from '../../registry.js';
2
- export declare function registerContactsGeneratedTools(registry: ToolRegistry): void;
2
+ import { type ExecuteDeps } from './_shared.js';
3
+ export declare function registerContactsGeneratedTools(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 registerContactsGeneratedTools(registry) {
5
+ export function registerContactsGeneratedTools(registry, deps = {}) {
6
6
  // Interned method scope sets (shared across tools; see scope-observability).
7
7
  const S_people_v1 = [
8
8
  ["https://www.googleapis.com/auth/contacts", "https://www.googleapis.com/auth/contacts.readonly"],
@@ -19,13 +19,13 @@ export function registerContactsGeneratedTools(registry) {
19
19
  params: [{ "field": "groupFields", "api": "groupFields", "location": "query" }, { "field": "maxMembers", "api": "maxMembers", "location": "query" }, { "field": "resourceNames", "api": "resourceNames", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
20
20
  hasBody: false,
21
21
  shape: {
22
- account: accountField(),
22
+ account: accountField(() => registry.accountAliases()),
23
23
  groupFields: z.string().describe("Optional. A field mask to restrict which fields on the group are returned. Defaults to `metadata`, `groupType`, `memberCount`, and `name` if not set or set to empty. Valid fields are: * clientData * g").optional(),
24
24
  maxMembers: z.number().describe("Optional. Specifies the maximum number of members to return for each group. Defaults to 0 if not set, which will return zero members.").optional(),
25
25
  resourceNames: coerceArray(z.string()).describe("Required. The resource names of the contact groups to get. There is a maximum of 200 resource names.").optional(),
26
26
  fields: z.string().optional().describe('Response field mask.'),
27
27
  },
28
- });
28
+ }, deps);
29
29
  registerGeneratedTool(registry, {
30
30
  name: "contacts_contact_groups_delete",
31
31
  cud: "delete",
@@ -34,12 +34,12 @@ export function registerContactsGeneratedTools(registry) {
34
34
  params: [{ "field": "resourceName", "api": "resourceName", "location": "path" }, { "field": "deleteContacts", "api": "deleteContacts", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
35
35
  hasBody: false,
36
36
  shape: {
37
- account: accountField(),
38
- resourceName: z.string().describe("Required. The resource name of the contact group to delete."),
37
+ account: accountField(() => registry.accountAliases()),
38
+ resourceName: z.string().min(1).describe("Required. The resource name of the contact group to delete."),
39
39
  deleteContacts: coerceBoolean.describe("Optional. Set to true to also delete the contacts in the specified group.").optional(),
40
40
  fields: z.string().optional().describe('Response field mask.'),
41
41
  },
42
- });
42
+ }, deps);
43
43
  registerGeneratedTool(registry, {
44
44
  name: "contacts_contact_groups_members_modify",
45
45
  cud: "update",
@@ -47,13 +47,15 @@ export function registerContactsGeneratedTools(registry) {
47
47
  method: { id: "people.contactGroups.members.modify", httpMethod: "POST", path: "v1/{+resourceName}/members:modify", baseUrl: "https://people.googleapis.com/", requiredParams: ["resourceName"], scopes: S_people_v1[1] },
48
48
  params: [{ "field": "resourceName", "api": "resourceName", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
49
49
  hasBody: true,
50
+ bodyParams: [{ "field": "resourceNamesToAdd", "api": "resourceNamesToAdd" }, { "field": "resourceNamesToRemove", "api": "resourceNamesToRemove" }],
50
51
  shape: {
51
- account: accountField(),
52
- resourceName: z.string().describe("Required. The resource name of the contact group to modify."),
53
- body: coerceJson(z.record(z.string(), z.unknown())).describe("ModifyContactGroupMembersRequest JSON request body. Top-level fields: resourceNamesToAdd, resourceNamesToRemove."),
52
+ account: accountField(() => registry.accountAliases()),
53
+ resourceName: z.string().min(1).describe("Required. The resource name of the contact group to modify."),
54
+ resourceNamesToAdd: coerceArray(z.string()).describe("Optional. The resource names of the contact people to add in the form of `people/{person_id}`. The total number of resource names in `resource_names_to_add` and `resource_names_to_remove` must be less").optional(),
55
+ resourceNamesToRemove: coerceArray(z.string()).describe("Optional. The resource names of the contact people to remove in the form of `people/{person_id}`. The total number of resource names in `resource_names_to_add` and `resource_names_to_remove` must be l").optional(),
54
56
  fields: z.string().optional().describe('Response field mask.'),
55
57
  },
56
- });
58
+ }, deps);
57
59
  registerGeneratedTool(registry, {
58
60
  name: "contacts_contact_groups_update",
59
61
  cud: "update",
@@ -62,12 +64,12 @@ export function registerContactsGeneratedTools(registry) {
62
64
  params: [{ "field": "resourceName", "api": "resourceName", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
63
65
  hasBody: true,
64
66
  shape: {
65
- account: accountField(),
66
- resourceName: z.string().describe("The resource name for the contact group, assigned by the server. An ASCII string, in the form of `contactGroups/{contact_group_id}`."),
67
+ account: accountField(() => registry.accountAliases()),
68
+ resourceName: z.string().min(1).describe("The resource name for the contact group, assigned by the server. An ASCII string, in the form of `contactGroups/{contact_group_id}`."),
67
69
  body: coerceJson(z.record(z.string(), z.unknown())).describe("UpdateContactGroupRequest JSON request body. Top-level fields: contactGroup, readGroupFields, updateGroupFields."),
68
70
  fields: z.string().optional().describe('Response field mask.'),
69
71
  },
70
- });
72
+ }, deps);
71
73
  registerGeneratedTool(registry, {
72
74
  name: "contacts_other_contacts_copy_other_contact_to_my_contacts_group",
73
75
  cud: "create",
@@ -75,13 +77,16 @@ export function registerContactsGeneratedTools(registry) {
75
77
  method: { id: "people.otherContacts.copyOtherContactToMyContactsGroup", httpMethod: "POST", path: "v1/{+resourceName}:copyOtherContactToMyContactsGroup", baseUrl: "https://people.googleapis.com/", requiredParams: ["resourceName"], scopes: S_people_v1[2] },
76
78
  params: [{ "field": "resourceName", "api": "resourceName", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
77
79
  hasBody: true,
80
+ bodyParams: [{ "field": "copyMask", "api": "copyMask" }, { "field": "readMask", "api": "readMask" }, { "field": "sources", "api": "sources" }],
78
81
  shape: {
79
- account: accountField(),
80
- resourceName: z.string().describe("Required. The resource name of the \"Other contact\" to copy."),
81
- body: coerceJson(z.record(z.string(), z.unknown())).describe("CopyOtherContactToMyContactsGroupRequest JSON request body. Top-level fields: copyMask, readMask, sources."),
82
+ account: accountField(() => registry.accountAliases()),
83
+ resourceName: z.string().min(1).describe("Required. The resource name of the \"Other contact\" to copy."),
84
+ copyMask: z.string().describe("Required. A field mask to restrict which fields are copied into the new contact. Valid values are: * emailAddresses * names * phoneNumbers").optional(),
85
+ readMask: z.string().describe("Optional. A field mask to restrict which fields on the person are returned. Multiple fields can be specified by separating them with commas. Defaults to the copy mask with metadata and membership fiel").optional(),
86
+ sources: coerceArray(z.enum(["READ_SOURCE_TYPE_UNSPECIFIED", "READ_SOURCE_TYPE_PROFILE", "READ_SOURCE_TYPE_CONTACT", "READ_SOURCE_TYPE_DOMAIN_CONTACT", "READ_SOURCE_TYPE_OTHER_CONTACT"])).describe("Optional. A mask of what source types to return. Defaults to READ_SOURCE_TYPE_CONTACT and READ_SOURCE_TYPE_PROFILE if not set.").optional(),
82
87
  fields: z.string().optional().describe('Response field mask.'),
83
88
  },
84
- });
89
+ }, deps);
85
90
  registerGeneratedTool(registry, {
86
91
  name: "contacts_other_contacts_list",
87
92
  cud: "read",
@@ -90,7 +95,7 @@ export function registerContactsGeneratedTools(registry) {
90
95
  params: [{ "field": "pageSize", "api": "pageSize", "location": "query" }, { "field": "pageToken", "api": "pageToken", "location": "query" }, { "field": "readMask", "api": "readMask", "location": "query" }, { "field": "requestSyncToken", "api": "requestSyncToken", "location": "query" }, { "field": "sources", "api": "sources", "location": "query" }, { "field": "syncToken", "api": "syncToken", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
91
96
  hasBody: false,
92
97
  shape: {
93
- account: accountField(),
98
+ account: accountField(() => registry.accountAliases()),
94
99
  pageSize: z.number().describe("Optional. The number of \"Other contacts\" to include in the response. Valid values are between 1 and 1000, inclusive. Defaults to 100 if not set or set to 0.").optional(),
95
100
  pageToken: z.string().describe("Optional. A page token, received from a previous response `next_page_token`. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `otherContacts.list` must m").optional(),
96
101
  readMask: z.string().describe("Required. A field mask to restrict which fields on each person are returned. Multiple fields can be specified by separating them with commas. What values are valid depend on what ReadSourceType is use").optional(),
@@ -99,7 +104,7 @@ export function registerContactsGeneratedTools(registry) {
99
104
  syncToken: z.string().describe("Optional. A sync token, received from a previous response `next_sync_token` Provide this to retrieve only the resources changed since the last request. When syncing, all other parameters provided to `").optional(),
100
105
  fields: z.string().optional().describe('Response field mask.'),
101
106
  },
102
- });
107
+ }, deps);
103
108
  registerGeneratedTool(registry, {
104
109
  name: "contacts_other_contacts_search",
105
110
  cud: "read",
@@ -108,13 +113,13 @@ export function registerContactsGeneratedTools(registry) {
108
113
  params: [{ "field": "pageSize", "api": "pageSize", "location": "query" }, { "field": "query", "api": "query", "location": "query" }, { "field": "readMask", "api": "readMask", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
109
114
  hasBody: false,
110
115
  shape: {
111
- account: accountField(),
116
+ account: accountField(() => registry.accountAliases()),
112
117
  pageSize: z.number().describe("Optional. The number of results to return. Defaults to 10 if field is not set, or set to 0. Values greater than 30 will be capped to 30.").optional(),
113
118
  query: z.string().describe("Required. The plain-text query for the request. The query is used to match prefix phrases of the fields on a person. For example, a person with name \"foo name\" matches queries such as \"f\", \"fo\", \"foo\"").optional(),
114
119
  readMask: z.string().describe("Required. A field mask to restrict which fields on each person are returned. Multiple fields can be specified by separating them with commas. Valid values are: * emailAddresses * metadata * names * ph").optional(),
115
120
  fields: z.string().optional().describe('Response field mask.'),
116
121
  },
117
- });
122
+ }, deps);
118
123
  registerGeneratedTool(registry, {
119
124
  name: "contacts_people_batch_create_contacts",
120
125
  cud: "create",
@@ -123,11 +128,11 @@ export function registerContactsGeneratedTools(registry) {
123
128
  params: [{ "field": "fields", "api": "fields", "location": "query" }],
124
129
  hasBody: true,
125
130
  shape: {
126
- account: accountField(),
131
+ account: accountField(() => registry.accountAliases()),
127
132
  body: coerceJson(z.record(z.string(), z.unknown())).describe("BatchCreateContactsRequest JSON request body. Top-level fields: contacts, readMask, sources."),
128
133
  fields: z.string().optional().describe('Response field mask.'),
129
134
  },
130
- });
135
+ }, deps);
131
136
  registerGeneratedTool(registry, {
132
137
  name: "contacts_people_batch_delete_contacts",
133
138
  cud: "delete",
@@ -135,25 +140,26 @@ export function registerContactsGeneratedTools(registry) {
135
140
  method: { id: "people.people.batchDeleteContacts", httpMethod: "POST", path: "v1/people:batchDeleteContacts", baseUrl: "https://people.googleapis.com/", requiredParams: [], scopes: S_people_v1[1] },
136
141
  params: [{ "field": "fields", "api": "fields", "location": "query" }],
137
142
  hasBody: true,
143
+ bodyParams: [{ "field": "resourceNames", "api": "resourceNames" }],
138
144
  shape: {
139
- account: accountField(),
140
- body: coerceJson(z.record(z.string(), z.unknown())).describe("BatchDeleteContactsRequest JSON request body. Top-level fields: resourceNames."),
145
+ account: accountField(() => registry.accountAliases()),
146
+ resourceNames: coerceArray(z.string()).describe("Required. The resource names of the contact to delete. It's repeatable. Allows up to 500 resource names in a single request.").optional(),
141
147
  fields: z.string().optional().describe('Response field mask.'),
142
148
  },
143
- });
149
+ }, deps);
144
150
  registerGeneratedTool(registry, {
145
151
  name: "contacts_people_batch_update_contacts",
146
- cud: "create",
152
+ cud: "update",
147
153
  description: "Update a batch of contacts and return a map of resource names to PersonResponses for the updated contacts. Mutate requests for the same user should be sent sequ",
148
154
  method: { id: "people.people.batchUpdateContacts", httpMethod: "POST", path: "v1/people:batchUpdateContacts", baseUrl: "https://people.googleapis.com/", requiredParams: [], scopes: S_people_v1[1] },
149
155
  params: [{ "field": "fields", "api": "fields", "location": "query" }],
150
156
  hasBody: true,
151
157
  shape: {
152
- account: accountField(),
158
+ account: accountField(() => registry.accountAliases()),
153
159
  body: coerceJson(z.record(z.string(), z.unknown())).describe("BatchUpdateContactsRequest JSON request body. Top-level fields: contacts, readMask, sources, updateMask."),
154
160
  fields: z.string().optional().describe('Response field mask.'),
155
161
  },
156
- });
162
+ }, deps);
157
163
  registerGeneratedTool(registry, {
158
164
  name: "contacts_people_delete_contact_photo",
159
165
  cud: "delete",
@@ -162,13 +168,13 @@ export function registerContactsGeneratedTools(registry) {
162
168
  params: [{ "field": "resourceName", "api": "resourceName", "location": "path" }, { "field": "personFields", "api": "personFields", "location": "query" }, { "field": "sources", "api": "sources", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
163
169
  hasBody: false,
164
170
  shape: {
165
- account: accountField(),
166
- resourceName: z.string().describe("Required. The resource name of the contact whose photo will be deleted."),
171
+ account: accountField(() => registry.accountAliases()),
172
+ resourceName: z.string().min(1).describe("Required. The resource name of the contact whose photo will be deleted."),
167
173
  personFields: z.string().describe("Optional. A field mask to restrict which fields on the person are returned. Multiple fields can be specified by separating them with commas. Defaults to empty if not set, which will skip the post muta").optional(),
168
174
  sources: coerceArray(z.enum(["READ_SOURCE_TYPE_UNSPECIFIED", "READ_SOURCE_TYPE_PROFILE", "READ_SOURCE_TYPE_CONTACT", "READ_SOURCE_TYPE_DOMAIN_CONTACT", "READ_SOURCE_TYPE_OTHER_CONTACT"])).describe("Optional. A mask of what source types to return. Defaults to READ_SOURCE_TYPE_CONTACT and READ_SOURCE_TYPE_PROFILE if not set.").optional(),
169
175
  fields: z.string().optional().describe('Response field mask.'),
170
176
  },
171
- });
177
+ }, deps);
172
178
  registerGeneratedTool(registry, {
173
179
  name: "contacts_people_list_directory_people",
174
180
  cud: "read",
@@ -177,7 +183,7 @@ export function registerContactsGeneratedTools(registry) {
177
183
  params: [{ "field": "mergeSources", "api": "mergeSources", "location": "query" }, { "field": "pageSize", "api": "pageSize", "location": "query" }, { "field": "pageToken", "api": "pageToken", "location": "query" }, { "field": "readMask", "api": "readMask", "location": "query" }, { "field": "requestSyncToken", "api": "requestSyncToken", "location": "query" }, { "field": "sources", "api": "sources", "location": "query" }, { "field": "syncToken", "api": "syncToken", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
178
184
  hasBody: false,
179
185
  shape: {
180
- account: accountField(),
186
+ account: accountField(() => registry.accountAliases()),
181
187
  mergeSources: coerceArray(z.enum(["DIRECTORY_MERGE_SOURCE_TYPE_UNSPECIFIED", "DIRECTORY_MERGE_SOURCE_TYPE_CONTACT"])).describe("Optional. Additional data to merge into the directory sources if they are connected through verified join keys such as email addresses or phone numbers.").optional(),
182
188
  pageSize: z.number().describe("Optional. The number of people to include in the response. Valid values are between 1 and 1000, inclusive. Defaults to 100 if not set or set to 0.").optional(),
183
189
  pageToken: z.string().describe("Optional. A page token, received from a previous response `next_page_token`. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `people.listDirectoryPeople").optional(),
@@ -187,7 +193,7 @@ export function registerContactsGeneratedTools(registry) {
187
193
  syncToken: z.string().describe("Optional. A sync token, received from a previous response `next_sync_token` Provide this to retrieve only the resources changed since the last request. When syncing, all other parameters provided to `").optional(),
188
194
  fields: z.string().optional().describe('Response field mask.'),
189
195
  },
190
- });
196
+ }, deps);
191
197
  registerGeneratedTool(registry, {
192
198
  name: "contacts_people_search_directory_people",
193
199
  cud: "read",
@@ -196,7 +202,7 @@ export function registerContactsGeneratedTools(registry) {
196
202
  params: [{ "field": "mergeSources", "api": "mergeSources", "location": "query" }, { "field": "pageSize", "api": "pageSize", "location": "query" }, { "field": "pageToken", "api": "pageToken", "location": "query" }, { "field": "query", "api": "query", "location": "query" }, { "field": "readMask", "api": "readMask", "location": "query" }, { "field": "sources", "api": "sources", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
197
203
  hasBody: false,
198
204
  shape: {
199
- account: accountField(),
205
+ account: accountField(() => registry.accountAliases()),
200
206
  mergeSources: coerceArray(z.enum(["DIRECTORY_MERGE_SOURCE_TYPE_UNSPECIFIED", "DIRECTORY_MERGE_SOURCE_TYPE_CONTACT"])).describe("Optional. Additional data to merge into the directory sources if they are connected through verified join keys such as email addresses or phone numbers.").optional(),
201
207
  pageSize: z.number().describe("Optional. The number of people to include in the response. Valid values are between 1 and 500, inclusive. Defaults to 100 if not set or set to 0.").optional(),
202
208
  pageToken: z.string().describe("Optional. A page token, received from a previous response `next_page_token`. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `SearchDirectoryPeople` mus").optional(),
@@ -205,7 +211,7 @@ export function registerContactsGeneratedTools(registry) {
205
211
  sources: coerceArray(z.enum(["DIRECTORY_SOURCE_TYPE_UNSPECIFIED", "DIRECTORY_SOURCE_TYPE_DOMAIN_CONTACT", "DIRECTORY_SOURCE_TYPE_DOMAIN_PROFILE"])).describe("Required. Directory sources to return.").optional(),
206
212
  fields: z.string().optional().describe('Response field mask.'),
207
213
  },
208
- });
214
+ }, deps);
209
215
  registerGeneratedTool(registry, {
210
216
  name: "contacts_people_update_contact_photo",
211
217
  cud: "update",
@@ -213,11 +219,14 @@ export function registerContactsGeneratedTools(registry) {
213
219
  method: { id: "people.people.updateContactPhoto", httpMethod: "PATCH", path: "v1/{+resourceName}:updateContactPhoto", baseUrl: "https://people.googleapis.com/", requiredParams: ["resourceName"], scopes: S_people_v1[1] },
214
220
  params: [{ "field": "resourceName", "api": "resourceName", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
215
221
  hasBody: true,
222
+ bodyParams: [{ "field": "personFields", "api": "personFields" }, { "field": "photoBytes", "api": "photoBytes" }, { "field": "sources", "api": "sources" }],
216
223
  shape: {
217
- account: accountField(),
218
- resourceName: z.string().describe("Required. Person resource name"),
219
- body: coerceJson(z.record(z.string(), z.unknown())).describe("UpdateContactPhotoRequest JSON request body. Top-level fields: personFields, photoBytes, sources."),
224
+ account: accountField(() => registry.accountAliases()),
225
+ resourceName: z.string().min(1).describe("Required. Person resource name"),
226
+ personFields: z.string().describe("Optional. A field mask to restrict which fields on the person are returned. Multiple fields can be specified by separating them with commas. Defaults to empty if not set, which will skip the post muta").optional(),
227
+ photoBytes: z.string().describe("Required. Raw photo bytes").optional(),
228
+ sources: coerceArray(z.enum(["READ_SOURCE_TYPE_UNSPECIFIED", "READ_SOURCE_TYPE_PROFILE", "READ_SOURCE_TYPE_CONTACT", "READ_SOURCE_TYPE_DOMAIN_CONTACT", "READ_SOURCE_TYPE_OTHER_CONTACT"])).describe("Optional. A mask of what source types to return. Defaults to READ_SOURCE_TYPE_CONTACT and READ_SOURCE_TYPE_PROFILE if not set.").optional(),
220
229
  fields: z.string().optional().describe('Response field mask.'),
221
230
  },
222
- });
231
+ }, deps);
223
232
  }
@@ -1,2 +1,3 @@
1
1
  import type { ToolRegistry } from '../../registry.js';
2
- export declare function registerDriveGeneratedTools(registry: ToolRegistry): void;
2
+ import { type ExecuteDeps } from './_shared.js';
3
+ export declare function registerDriveGeneratedTools(registry: ToolRegistry, deps?: ExecuteDeps): void;