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
@@ -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 registerChatGeneratedTools(registry) {
5
+ export function registerChatGeneratedTools(registry, deps = {}) {
6
6
  // Interned method scope sets (shared across tools; see scope-observability).
7
7
  const S_chat_v1 = [
8
8
  ["https://www.googleapis.com/auth/chat.customemojis"],
@@ -45,11 +45,11 @@ export function registerChatGeneratedTools(registry) {
45
45
  params: [{ "field": "fields", "api": "fields", "location": "query" }],
46
46
  hasBody: true,
47
47
  shape: {
48
- account: accountField(),
48
+ account: accountField(() => registry.accountAliases()),
49
49
  body: coerceJson(z.record(z.string(), z.unknown())).describe("CustomEmoji JSON request body. Top-level fields: emojiName, name, payload, temporaryImageUri, uid."),
50
50
  fields: z.string().optional().describe('Response field mask.'),
51
51
  },
52
- });
52
+ }, deps);
53
53
  registerGeneratedTool(registry, {
54
54
  name: "chat_custom_emojis_delete",
55
55
  cud: "delete",
@@ -58,11 +58,11 @@ export function registerChatGeneratedTools(registry) {
58
58
  params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
59
59
  hasBody: false,
60
60
  shape: {
61
- account: accountField(),
61
+ account: accountField(() => registry.accountAliases()),
62
62
  name: z.string().min(1).describe("Required. Resource name of the custom emoji to delete. Format: `customEmojis/{customEmoji}` You can use the emoji name as an alias for `{customEmoji}`. For example, `customEmojis/:example-emoji:` wher"),
63
63
  fields: z.string().optional().describe('Response field mask.'),
64
64
  },
65
- });
65
+ }, deps);
66
66
  registerGeneratedTool(registry, {
67
67
  name: "chat_custom_emojis_get",
68
68
  cud: "read",
@@ -71,11 +71,11 @@ export function registerChatGeneratedTools(registry) {
71
71
  params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
72
72
  hasBody: false,
73
73
  shape: {
74
- account: accountField(),
74
+ account: accountField(() => registry.accountAliases()),
75
75
  name: z.string().min(1).describe("Required. Resource name of the custom emoji. Format: `customEmojis/{customEmoji}` You can use the emoji name as an alias for `{customEmoji}`. For example, `customEmojis/:example-emoji:` where `:exampl"),
76
76
  fields: z.string().optional().describe('Response field mask.'),
77
77
  },
78
- });
78
+ }, deps);
79
79
  registerGeneratedTool(registry, {
80
80
  name: "chat_custom_emojis_list",
81
81
  cud: "read",
@@ -84,13 +84,13 @@ export function registerChatGeneratedTools(registry) {
84
84
  params: [{ "field": "filter", "api": "filter", "location": "query" }, { "field": "pageSize", "api": "pageSize", "location": "query" }, { "field": "pageToken", "api": "pageToken", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
85
85
  hasBody: false,
86
86
  shape: {
87
- account: accountField(),
87
+ account: accountField(() => registry.accountAliases()),
88
88
  filter: z.string().describe("Optional. A query filter. Supports filtering by creator. To filter by creator, you must specify a valid value. Currently only `creator(\"users/me\")` and `NOT creator(\"users/me\")` are accepted to filter").optional(),
89
89
  pageSize: z.number().describe("Optional. The maximum number of custom emojis returned. The service can return fewer custom emojis than this value. If unspecified, the default value is 25. The maximum value is 200; values above 200 ").optional(),
90
90
  pageToken: z.string().describe("Optional. (If resuming from a previous query.) A page token received from a previous list custom emoji call. Provide this to retrieve the subsequent page. When paginating, the filter value should matc").optional(),
91
91
  fields: z.string().optional().describe('Response field mask.'),
92
92
  },
93
- });
93
+ }, deps);
94
94
  registerGeneratedTool(registry, {
95
95
  name: "chat_media_download",
96
96
  cud: "read",
@@ -99,11 +99,11 @@ export function registerChatGeneratedTools(registry) {
99
99
  params: [{ "field": "resourceName", "api": "resourceName", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
100
100
  hasBody: false,
101
101
  shape: {
102
- account: accountField(),
102
+ account: accountField(() => registry.accountAliases()),
103
103
  resourceName: z.string().min(1).describe("Name of the media that is being downloaded. See ReadRequest.resource_name."),
104
104
  fields: z.string().optional().describe('Response field mask.'),
105
105
  },
106
- });
106
+ }, deps);
107
107
  registerGeneratedTool(registry, {
108
108
  name: "chat_media_upload",
109
109
  cud: "create",
@@ -113,12 +113,12 @@ export function registerChatGeneratedTools(registry) {
113
113
  hasBody: true,
114
114
  bodyParams: [{ "field": "filename", "api": "filename" }],
115
115
  shape: {
116
- account: accountField(),
116
+ account: accountField(() => registry.accountAliases()),
117
117
  parent: z.string().min(1).describe("Required. Resource name of the Chat space in which the attachment is uploaded. Format \"spaces/{space}\"."),
118
118
  filename: z.string().describe("Required. The filename of the attachment, including the file extension.").optional(),
119
119
  fields: z.string().optional().describe('Response field mask.'),
120
120
  },
121
- });
121
+ }, deps);
122
122
  registerGeneratedTool(registry, {
123
123
  name: "chat_spaces_complete_import",
124
124
  cud: "update",
@@ -128,11 +128,11 @@ export function registerChatGeneratedTools(registry) {
128
128
  hasBody: true,
129
129
  bodyParams: [],
130
130
  shape: {
131
- account: accountField(),
131
+ account: accountField(() => registry.accountAliases()),
132
132
  name: z.string().min(1).describe("Required. Resource name of the import mode space. Format: `spaces/{space}`"),
133
133
  fields: z.string().optional().describe('Response field mask.'),
134
134
  },
135
- });
135
+ }, deps);
136
136
  registerGeneratedTool(registry, {
137
137
  name: "chat_spaces_create",
138
138
  cud: "create",
@@ -141,12 +141,12 @@ export function registerChatGeneratedTools(registry) {
141
141
  params: [{ "field": "requestId", "api": "requestId", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
142
142
  hasBody: true,
143
143
  shape: {
144
- account: accountField(),
144
+ account: accountField(() => registry.accountAliases()),
145
145
  requestId: z.string().describe("Optional. A unique identifier for this request. A random UUID is recommended. Specifying an existing request ID returns the space created with that ID instead of creating a new space. Specifying an ex").optional(),
146
146
  body: coerceJson(z.record(z.string(), z.unknown())).describe("Space JSON request body. Top-level fields: accessSettings, adminInstalled, createTime, customer, displayName, externalUserAllowed, importMode, importModeExpireTime, lastActiveTime, membershipCount, name, permissionSettings, +9 more."),
147
147
  fields: z.string().optional().describe('Response field mask.'),
148
148
  },
149
- });
149
+ }, deps);
150
150
  registerGeneratedTool(registry, {
151
151
  name: "chat_spaces_delete",
152
152
  cud: "delete",
@@ -155,12 +155,12 @@ export function registerChatGeneratedTools(registry) {
155
155
  params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "useAdminAccess", "api": "useAdminAccess", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
156
156
  hasBody: false,
157
157
  shape: {
158
- account: accountField(),
158
+ account: accountField(() => registry.accountAliases()),
159
159
  name: z.string().min(1).describe("Required. Resource name of the space to delete. Format: `spaces/{space}`"),
160
160
  useAdminAccess: coerceBoolean.describe("Optional. 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 chat and spaces conversati").optional(),
161
161
  fields: z.string().optional().describe('Response field mask.'),
162
162
  },
163
- });
163
+ }, deps);
164
164
  registerGeneratedTool(registry, {
165
165
  name: "chat_spaces_find_direct_message",
166
166
  cud: "read",
@@ -169,11 +169,11 @@ export function registerChatGeneratedTools(registry) {
169
169
  params: [{ "field": "name", "api": "name", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
170
170
  hasBody: false,
171
171
  shape: {
172
- account: accountField(),
172
+ account: accountField(() => registry.accountAliases()),
173
173
  name: z.string().describe("Required. Resource name of the user to find direct message with. Format: `users/{user}`, where `{user}` is either the `id` for the [person](https://developers.google.com/people/api/rest/v1/people) fro").optional(),
174
174
  fields: z.string().optional().describe('Response field mask.'),
175
175
  },
176
- });
176
+ }, deps);
177
177
  registerGeneratedTool(registry, {
178
178
  name: "chat_spaces_find_group_chats",
179
179
  cud: "read",
@@ -182,14 +182,14 @@ export function registerChatGeneratedTools(registry) {
182
182
  params: [{ "field": "pageSize", "api": "pageSize", "location": "query" }, { "field": "pageToken", "api": "pageToken", "location": "query" }, { "field": "spaceView", "api": "spaceView", "location": "query" }, { "field": "users", "api": "users", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
183
183
  hasBody: false,
184
184
  shape: {
185
- account: accountField(),
185
+ account: accountField(() => registry.accountAliases()),
186
186
  pageSize: z.number().describe("Optional. The maximum number of spaces to return. The service might return fewer than this value. If unspecified, at most 10 spaces are returned. The maximum value is 30. If you use a value more than ").optional(),
187
187
  pageToken: z.string().describe("Optional. A page token, received from a previous call to find group chats. Provide this parameter to retrieve the subsequent page. When paginating, all other parameters provided should match the call ").optional(),
188
188
  spaceView: z.enum(["SPACE_VIEW_UNSPECIFIED", "SPACE_VIEW_RESOURCE_NAME_ONLY", "SPACE_VIEW_EXPANDED"]).describe("Requested space view type. If unset, defaults to `SPACE_VIEW_RESOURCE_NAME_ONLY`. Requests that specify `SPACE_VIEW_EXPANDED` must include scopes that allow reading space data, for example, https://ww").optional(),
189
189
  users: coerceArray(z.string()).describe("Optional. Resource names of all human users in group chat with the calling user. Chat apps can't be included in the request. The maximum number of users that can be specified in a single request is `4").optional(),
190
190
  fields: z.string().optional().describe('Response field mask.'),
191
191
  },
192
- });
192
+ }, deps);
193
193
  registerGeneratedTool(registry, {
194
194
  name: "chat_spaces_members_create",
195
195
  cud: "create",
@@ -198,13 +198,13 @@ export function registerChatGeneratedTools(registry) {
198
198
  params: [{ "field": "parent", "api": "parent", "location": "path" }, { "field": "useAdminAccess", "api": "useAdminAccess", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
199
199
  hasBody: true,
200
200
  shape: {
201
- account: accountField(),
201
+ account: accountField(() => registry.accountAliases()),
202
202
  parent: z.string().min(1).describe("Required. The resource name of the space for which to create the membership. Format: spaces/{space}"),
203
203
  useAdminAccess: coerceBoolean.describe("Optional. 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 chat and spaces conversati").optional(),
204
204
  body: coerceJson(z.record(z.string(), z.unknown())).describe("Membership JSON request body. Top-level fields: affiliation, createTime, deleteTime, groupMember, member, name, role, state."),
205
205
  fields: z.string().optional().describe('Response field mask.'),
206
206
  },
207
- });
207
+ }, deps);
208
208
  registerGeneratedTool(registry, {
209
209
  name: "chat_spaces_members_delete",
210
210
  cud: "delete",
@@ -213,12 +213,12 @@ export function registerChatGeneratedTools(registry) {
213
213
  params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "useAdminAccess", "api": "useAdminAccess", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
214
214
  hasBody: false,
215
215
  shape: {
216
- account: accountField(),
216
+ account: accountField(() => registry.accountAliases()),
217
217
  name: z.string().min(1).describe("Required. Resource name of the membership to delete. Chat apps can delete human users' or their own memberships. Chat apps can't delete other apps' memberships. When deleting a human membership, requi"),
218
218
  useAdminAccess: coerceBoolean.describe("Optional. 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 chat and spaces conversati").optional(),
219
219
  fields: z.string().optional().describe('Response field mask.'),
220
220
  },
221
- });
221
+ }, deps);
222
222
  registerGeneratedTool(registry, {
223
223
  name: "chat_spaces_members_get",
224
224
  cud: "read",
@@ -227,12 +227,12 @@ export function registerChatGeneratedTools(registry) {
227
227
  params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "useAdminAccess", "api": "useAdminAccess", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
228
228
  hasBody: false,
229
229
  shape: {
230
- account: accountField(),
230
+ account: accountField(() => registry.accountAliases()),
231
231
  name: z.string().min(1).describe("Required. Resource name of the membership to retrieve. To get the app's own membership [by using user authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), yo"),
232
232
  useAdminAccess: coerceBoolean.describe("Optional. 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 chat and spaces conversati").optional(),
233
233
  fields: z.string().optional().describe('Response field mask.'),
234
234
  },
235
- });
235
+ }, deps);
236
236
  registerGeneratedTool(registry, {
237
237
  name: "chat_spaces_members_list",
238
238
  cud: "read",
@@ -241,7 +241,7 @@ export function registerChatGeneratedTools(registry) {
241
241
  params: [{ "field": "parent", "api": "parent", "location": "path" }, { "field": "filter", "api": "filter", "location": "query" }, { "field": "pageSize", "api": "pageSize", "location": "query" }, { "field": "pageToken", "api": "pageToken", "location": "query" }, { "field": "showGroups", "api": "showGroups", "location": "query" }, { "field": "showInvited", "api": "showInvited", "location": "query" }, { "field": "useAdminAccess", "api": "useAdminAccess", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
242
242
  hasBody: false,
243
243
  shape: {
244
- account: accountField(),
244
+ account: accountField(() => registry.accountAliases()),
245
245
  parent: z.string().min(1).describe("Required. The resource name of the space for which to fetch a membership list. Format: spaces/{space}"),
246
246
  filter: z.string().describe("Optional. A query filter. You can filter memberships by a member's role ([`role`](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.members#membershiprole)) and type ([`member.").optional(),
247
247
  pageSize: z.number().describe("Optional. The maximum number of memberships to return. The service might return fewer than this value. If unspecified, at most 100 memberships are returned. The maximum value is 1000. If you use a val").optional(),
@@ -251,7 +251,7 @@ export function registerChatGeneratedTools(registry) {
251
251
  useAdminAccess: coerceBoolean.describe("Optional. 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 chat and spaces conversati").optional(),
252
252
  fields: z.string().optional().describe('Response field mask.'),
253
253
  },
254
- });
254
+ }, deps);
255
255
  registerGeneratedTool(registry, {
256
256
  name: "chat_spaces_members_patch",
257
257
  cud: "update",
@@ -260,14 +260,14 @@ export function registerChatGeneratedTools(registry) {
260
260
  params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "updateMask", "api": "updateMask", "location": "query" }, { "field": "useAdminAccess", "api": "useAdminAccess", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
261
261
  hasBody: true,
262
262
  shape: {
263
- account: accountField(),
263
+ account: accountField(() => registry.accountAliases()),
264
264
  name: z.string().min(1).describe("Identifier. Resource name of the membership, assigned by the server. Format: `spaces/{space}/members/{member}`"),
265
265
  updateMask: z.string().describe("Required. The field paths to update. Separate multiple values with commas or use `*` to update all field paths. Currently supported field paths: - `role`").optional(),
266
266
  useAdminAccess: coerceBoolean.describe("Optional. 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 chat and spaces conversati").optional(),
267
267
  body: coerceJson(z.record(z.string(), z.unknown())).describe("Membership JSON request body. Top-level fields: affiliation, createTime, deleteTime, groupMember, member, name, role, state."),
268
268
  fields: z.string().optional().describe('Response field mask.'),
269
269
  },
270
- });
270
+ }, deps);
271
271
  registerGeneratedTool(registry, {
272
272
  name: "chat_spaces_messages_attachments_get",
273
273
  cud: "read",
@@ -276,11 +276,11 @@ export function registerChatGeneratedTools(registry) {
276
276
  params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
277
277
  hasBody: false,
278
278
  shape: {
279
- account: accountField(),
279
+ account: accountField(() => registry.accountAliases()),
280
280
  name: z.string().min(1).describe("Required. Resource name of the attachment, in the form `spaces/{space}/messages/{message}/attachments/{attachment}`."),
281
281
  fields: z.string().optional().describe('Response field mask.'),
282
282
  },
283
- });
283
+ }, deps);
284
284
  registerGeneratedTool(registry, {
285
285
  name: "chat_spaces_messages_delete",
286
286
  cud: "delete",
@@ -289,12 +289,12 @@ export function registerChatGeneratedTools(registry) {
289
289
  params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "force", "api": "force", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
290
290
  hasBody: false,
291
291
  shape: {
292
- account: accountField(),
292
+ account: accountField(() => registry.accountAliases()),
293
293
  name: z.string().min(1).describe("Required. Resource name of the message. Format: `spaces/{space}/messages/{message}` If you've set a custom ID for your message, you can use the value from the `clientAssignedMessageId` field for `{mes"),
294
294
  force: coerceBoolean.describe("Optional. When `true`, deleting a message also deletes its threaded replies. When `false`, if a message has threaded replies, deletion fails. Only applies when [authenticating as a user](https://devel").optional(),
295
295
  fields: z.string().optional().describe('Response field mask.'),
296
296
  },
297
- });
297
+ }, deps);
298
298
  registerGeneratedTool(registry, {
299
299
  name: "chat_spaces_messages_get",
300
300
  cud: "read",
@@ -303,12 +303,12 @@ export function registerChatGeneratedTools(registry) {
303
303
  params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "markupSyntax", "api": "markupSyntax", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
304
304
  hasBody: false,
305
305
  shape: {
306
- account: accountField(),
306
+ account: accountField(() => registry.accountAliases()),
307
307
  name: z.string().min(1).describe("Required. Resource name of the message. Format: `spaces/{space}/messages/{message}` If you've set a custom ID for your message, you can use the value from the `clientAssignedMessageId` field for `{mes"),
308
308
  markupSyntax: z.enum(["MARKUP_SYNTAX_UNSPECIFIED", "MARKUP_SYNTAX_CHAT", "MARKUP_SYNTAX_MARKDOWN"]).describe("Optional. Specifies the desired output syntax for the Chat message `formatted_text` field.").optional(),
309
309
  fields: z.string().optional().describe('Response field mask.'),
310
310
  },
311
- });
311
+ }, deps);
312
312
  registerGeneratedTool(registry, {
313
313
  name: "chat_spaces_messages_patch",
314
314
  cud: "update",
@@ -317,14 +317,14 @@ export function registerChatGeneratedTools(registry) {
317
317
  params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "allowMissing", "api": "allowMissing", "location": "query" }, { "field": "updateMask", "api": "updateMask", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
318
318
  hasBody: true,
319
319
  shape: {
320
- account: accountField(),
320
+ account: accountField(() => registry.accountAliases()),
321
321
  name: z.string().min(1).describe("Identifier. Resource name of the message. Format: `spaces/{space}/messages/{message}` Where `{space}` is the ID of the space where the message is posted and `{message}` is a system-assigned ID for the"),
322
322
  allowMissing: coerceBoolean.describe("Optional. If `true` and the message isn't found, a new message is created and `updateMask` is ignored. The specified message ID must be [client-assigned](https://developers.google.com/workspace/chat/c").optional(),
323
323
  updateMask: z.string().describe("Required. The field paths to update. Separate multiple values with commas or use `*` to update all field paths. Currently supported field paths: - `text` - `attachment` - `cards` (Requires [app authen").optional(),
324
324
  body: coerceJson(z.record(z.string(), z.unknown())).describe("Message JSON request body. Top-level fields: accessoryWidgets, actionResponse, annotations, argumentText, attachedGifs, attachment, cards, cardsV2, clientAssignedMessageId, createTime, deleteTime, deletionMetadata, +16 more."),
325
325
  fields: z.string().optional().describe('Response field mask.'),
326
326
  },
327
- });
327
+ }, deps);
328
328
  registerGeneratedTool(registry, {
329
329
  name: "chat_spaces_messages_reactions_create",
330
330
  cud: "create",
@@ -333,12 +333,12 @@ export function registerChatGeneratedTools(registry) {
333
333
  params: [{ "field": "parent", "api": "parent", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
334
334
  hasBody: true,
335
335
  shape: {
336
- account: accountField(),
336
+ account: accountField(() => registry.accountAliases()),
337
337
  parent: z.string().min(1).describe("Required. The message where the reaction is created. Format: `spaces/{space}/messages/{message}`"),
338
338
  body: coerceJson(z.record(z.string(), z.unknown())).describe("Reaction JSON request body. Top-level fields: emoji, name, user."),
339
339
  fields: z.string().optional().describe('Response field mask.'),
340
340
  },
341
- });
341
+ }, deps);
342
342
  registerGeneratedTool(registry, {
343
343
  name: "chat_spaces_messages_reactions_delete",
344
344
  cud: "delete",
@@ -347,11 +347,11 @@ export function registerChatGeneratedTools(registry) {
347
347
  params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
348
348
  hasBody: false,
349
349
  shape: {
350
- account: accountField(),
350
+ account: accountField(() => registry.accountAliases()),
351
351
  name: z.string().min(1).describe("Required. Name of the reaction to delete. Format: `spaces/{space}/messages/{message}/reactions/{reaction}`"),
352
352
  fields: z.string().optional().describe('Response field mask.'),
353
353
  },
354
- });
354
+ }, deps);
355
355
  registerGeneratedTool(registry, {
356
356
  name: "chat_spaces_messages_reactions_list",
357
357
  cud: "read",
@@ -360,14 +360,14 @@ export function registerChatGeneratedTools(registry) {
360
360
  params: [{ "field": "parent", "api": "parent", "location": "path" }, { "field": "filter", "api": "filter", "location": "query" }, { "field": "pageSize", "api": "pageSize", "location": "query" }, { "field": "pageToken", "api": "pageToken", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
361
361
  hasBody: false,
362
362
  shape: {
363
- account: accountField(),
363
+ account: accountField(() => registry.accountAliases()),
364
364
  parent: z.string().min(1).describe("Required. The message users reacted to. Format: `spaces/{space}/messages/{message}`"),
365
365
  filter: z.string().describe("Optional. A query filter. You can filter reactions by [emoji](https://developers.google.com/workspace/chat/api/reference/rest/v1/Emoji) (either `emoji.unicode` or `emoji.custom_emoji.uid`) and [user](").optional(),
366
366
  pageSize: z.number().describe("Optional. The maximum number of reactions returned. The service can return fewer reactions than this value. If unspecified, the default value is 25. The maximum value is 200; values above 200 are chan").optional(),
367
367
  pageToken: z.string().describe("Optional. (If resuming from a previous query.) A page token received from a previous list reactions call. Provide this to retrieve the subsequent page. When paginating, the filter value should match t").optional(),
368
368
  fields: z.string().optional().describe('Response field mask.'),
369
369
  },
370
- });
370
+ }, deps);
371
371
  registerGeneratedTool(registry, {
372
372
  name: "chat_spaces_messages_search",
373
373
  cud: "read",
@@ -377,7 +377,7 @@ export function registerChatGeneratedTools(registry) {
377
377
  hasBody: true,
378
378
  bodyParams: [{ "field": "filter", "api": "filter" }, { "field": "markupSyntax", "api": "markupSyntax" }, { "field": "orderBy", "api": "orderBy" }, { "field": "pageSize", "api": "pageSize" }, { "field": "pageToken", "api": "pageToken" }, { "field": "view", "api": "view" }],
379
379
  shape: {
380
- account: accountField(),
380
+ account: accountField(() => registry.accountAliases()),
381
381
  parent: z.string().min(1).describe("Required. The resource name of the space to search within. To search across all spaces the user has access to, set this field to `spaces/-`. Using any other value for `parent` results in an `INVALID_A"),
382
382
  filter: z.string().describe("Required. A search query. The query can specify one or more search keywords, which are used to filter the results, You can also filter the results using the following message fields: - `create_time`: ").optional(),
383
383
  markupSyntax: z.enum(["MARKUP_SYNTAX_UNSPECIFIED", "MARKUP_SYNTAX_CHAT", "MARKUP_SYNTAX_MARKDOWN"]).describe("Optional. Specifies the desired output syntax for the Chat message `formatted_text` field.").optional(),
@@ -387,7 +387,7 @@ export function registerChatGeneratedTools(registry) {
387
387
  view: z.enum(["SEARCH_MESSAGES_VIEW_UNSPECIFIED", "SEARCH_MESSAGES_VIEW_BASIC", "SEARCH_MESSAGES_VIEW_FULL"]).describe("Optional. Specifies what kind of search results view to return. The default is `SEARCH_MESSAGES_VIEW_BASIC`.").optional(),
388
388
  fields: z.string().optional().describe('Response field mask.'),
389
389
  },
390
- });
390
+ }, deps);
391
391
  registerGeneratedTool(registry, {
392
392
  name: "chat_spaces_messages_update",
393
393
  cud: "update",
@@ -396,14 +396,14 @@ export function registerChatGeneratedTools(registry) {
396
396
  params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "allowMissing", "api": "allowMissing", "location": "query" }, { "field": "updateMask", "api": "updateMask", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
397
397
  hasBody: true,
398
398
  shape: {
399
- account: accountField(),
399
+ account: accountField(() => registry.accountAliases()),
400
400
  name: z.string().min(1).describe("Identifier. Resource name of the message. Format: `spaces/{space}/messages/{message}` Where `{space}` is the ID of the space where the message is posted and `{message}` is a system-assigned ID for the"),
401
401
  allowMissing: coerceBoolean.describe("Optional. If `true` and the message isn't found, a new message is created and `updateMask` is ignored. The specified message ID must be [client-assigned](https://developers.google.com/workspace/chat/c").optional(),
402
402
  updateMask: z.string().describe("Required. The field paths to update. Separate multiple values with commas or use `*` to update all field paths. Currently supported field paths: - `text` - `attachment` - `cards` (Requires [app authen").optional(),
403
403
  body: coerceJson(z.record(z.string(), z.unknown())).describe("Message JSON request body. Top-level fields: accessoryWidgets, actionResponse, annotations, argumentText, attachedGifs, attachment, cards, cardsV2, clientAssignedMessageId, createTime, deleteTime, deletionMetadata, +16 more."),
404
404
  fields: z.string().optional().describe('Response field mask.'),
405
405
  },
406
- });
406
+ }, deps);
407
407
  registerGeneratedTool(registry, {
408
408
  name: "chat_spaces_patch",
409
409
  cud: "update",
@@ -412,14 +412,14 @@ export function registerChatGeneratedTools(registry) {
412
412
  params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "updateMask", "api": "updateMask", "location": "query" }, { "field": "useAdminAccess", "api": "useAdminAccess", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
413
413
  hasBody: true,
414
414
  shape: {
415
- account: accountField(),
415
+ account: accountField(() => registry.accountAliases()),
416
416
  name: z.string().min(1).describe("Identifier. Resource name of the space. Format: `spaces/{space}` Where `{space}` represents the system-assigned ID for the space. You can obtain the space ID by calling the [`spaces.list()`](https://d"),
417
417
  updateMask: z.string().describe("Required. The updated field paths, comma separated if there are multiple. You can update the following fields for a space: `space_details`: Updates the space's description and guidelines. You must pas").optional(),
418
418
  useAdminAccess: coerceBoolean.describe("Optional. 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 chat and spaces conversati").optional(),
419
419
  body: coerceJson(z.record(z.string(), z.unknown())).describe("Space JSON request body. Top-level fields: accessSettings, adminInstalled, createTime, customer, displayName, externalUserAllowed, importMode, importModeExpireTime, lastActiveTime, membershipCount, name, permissionSettings, +9 more."),
420
420
  fields: z.string().optional().describe('Response field mask.'),
421
421
  },
422
- });
422
+ }, deps);
423
423
  registerGeneratedTool(registry, {
424
424
  name: "chat_spaces_search",
425
425
  cud: "read",
@@ -428,7 +428,7 @@ export function registerChatGeneratedTools(registry) {
428
428
  params: [{ "field": "orderBy", "api": "orderBy", "location": "query" }, { "field": "pageSize", "api": "pageSize", "location": "query" }, { "field": "pageToken", "api": "pageToken", "location": "query" }, { "field": "query", "api": "query", "location": "query" }, { "field": "useAdminAccess", "api": "useAdminAccess", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
429
429
  hasBody: false,
430
430
  shape: {
431
- account: accountField(),
431
+ account: accountField(() => registry.accountAliases()),
432
432
  orderBy: z.string().describe("Optional. How the list of spaces is ordered. Supported attributes to order by are: - `membership_count.joined_direct_human_user_count` — Denotes the count of human users that have directly joined a sp").optional(),
433
433
  pageSize: z.number().describe("The maximum number of spaces to return. The service may return fewer than this value. If unspecified, at most 100 spaces are returned. The maximum value is 1000. If you use a value more than 1000, it'").optional(),
434
434
  pageToken: z.string().describe("A token, received from the previous search spaces call. Provide this parameter to retrieve the subsequent page. When paginating, all other parameters provided should match the call that provided the p").optional(),
@@ -436,7 +436,7 @@ export function registerChatGeneratedTools(registry) {
436
436
  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 chat and spaces conversations privil").optional(),
437
437
  fields: z.string().optional().describe('Response field mask.'),
438
438
  },
439
- });
439
+ }, deps);
440
440
  registerGeneratedTool(registry, {
441
441
  name: "chat_spaces_setup",
442
442
  cud: "update",
@@ -445,11 +445,11 @@ export function registerChatGeneratedTools(registry) {
445
445
  params: [{ "field": "fields", "api": "fields", "location": "query" }],
446
446
  hasBody: true,
447
447
  shape: {
448
- account: accountField(),
448
+ account: accountField(() => registry.accountAliases()),
449
449
  body: coerceJson(z.record(z.string(), z.unknown())).describe("SetUpSpaceRequest JSON request body. Top-level fields: memberships, requestId, space."),
450
450
  fields: z.string().optional().describe('Response field mask.'),
451
451
  },
452
- });
452
+ }, deps);
453
453
  registerGeneratedTool(registry, {
454
454
  name: "chat_spaces_space_events_get",
455
455
  cud: "read",
@@ -458,11 +458,11 @@ export function registerChatGeneratedTools(registry) {
458
458
  params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
459
459
  hasBody: false,
460
460
  shape: {
461
- account: accountField(),
461
+ account: accountField(() => registry.accountAliases()),
462
462
  name: z.string().min(1).describe("Required. The resource name of the space event. Format: `spaces/{space}/spaceEvents/{spaceEvent}`"),
463
463
  fields: z.string().optional().describe('Response field mask.'),
464
464
  },
465
- });
465
+ }, deps);
466
466
  registerGeneratedTool(registry, {
467
467
  name: "chat_spaces_space_events_list",
468
468
  cud: "read",
@@ -471,14 +471,14 @@ export function registerChatGeneratedTools(registry) {
471
471
  params: [{ "field": "parent", "api": "parent", "location": "path" }, { "field": "filter", "api": "filter", "location": "query" }, { "field": "pageSize", "api": "pageSize", "location": "query" }, { "field": "pageToken", "api": "pageToken", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
472
472
  hasBody: false,
473
473
  shape: {
474
- account: accountField(),
474
+ account: accountField(() => registry.accountAliases()),
475
475
  parent: z.string().min(1).describe("Required. Resource name of the [Google Chat space](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces) where the events occurred. Format: `spaces/{space}`."),
476
476
  filter: z.string().describe("Required. A query filter. You must specify at least one event type (`event_type`) using the has `:` operator. To filter by multiple event types, use the `OR` operator. Omit batch event types in your f").optional(),
477
477
  pageSize: z.number().describe("Optional. The maximum number of space events returned. The service might return fewer than this value. Negative values return an `INVALID_ARGUMENT` error.").optional(),
478
478
  pageToken: z.string().describe("Optional. A page token, received from a previous list space events call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to list space events must match th").optional(),
479
479
  fields: z.string().optional().describe('Response field mask.'),
480
480
  },
481
- });
481
+ }, deps);
482
482
  registerGeneratedTool(registry, {
483
483
  name: "chat_users_availability_get",
484
484
  cud: "read",
@@ -487,11 +487,11 @@ export function registerChatGeneratedTools(registry) {
487
487
  params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
488
488
  hasBody: false,
489
489
  shape: {
490
- account: accountField(),
490
+ account: accountField(() => registry.accountAliases()),
491
491
  name: z.string().min(1).describe("Required. The resource name of the availability to retrieve. Format: users/{user}/availability `{user}` is the id for the Person in the People API or Admin SDK directory API. For example, `users/12345"),
492
492
  fields: z.string().optional().describe('Response field mask.'),
493
493
  },
494
- });
494
+ }, deps);
495
495
  registerGeneratedTool(registry, {
496
496
  name: "chat_users_availability_mark_as_active",
497
497
  cud: "update",
@@ -501,13 +501,13 @@ export function registerChatGeneratedTools(registry) {
501
501
  hasBody: true,
502
502
  bodyParams: [{ "field": "expireTime", "api": "expireTime" }, { "field": "ttl", "api": "ttl" }],
503
503
  shape: {
504
- account: accountField(),
504
+ account: accountField(() => registry.accountAliases()),
505
505
  name: z.string().min(1).describe("Required. The resource name of the availability to mark as active. Format: users/{user}/availability `{user}` is the id for the Person in the People API or Admin SDK directory API. For example, `users"),
506
506
  expireTime: z.string().describe("The absolute timestamp when the ACTIVE state expires.").optional(),
507
507
  ttl: z.string().describe("The duration from the current time until the ACTIVE state expires. Using a short TTL can effectively reset the user's state to be based on activity after this brief duration.").optional(),
508
508
  fields: z.string().optional().describe('Response field mask.'),
509
509
  },
510
- });
510
+ }, deps);
511
511
  registerGeneratedTool(registry, {
512
512
  name: "chat_users_availability_mark_as_away",
513
513
  cud: "update",
@@ -517,11 +517,11 @@ export function registerChatGeneratedTools(registry) {
517
517
  hasBody: true,
518
518
  bodyParams: [],
519
519
  shape: {
520
- account: accountField(),
520
+ account: accountField(() => registry.accountAliases()),
521
521
  name: z.string().min(1).describe("Required. The resource name of the availability to mark as away. Format: users/{user}/availability `{user}` is the id for the Person in the People API or Admin SDK directory API. For example, `users/1"),
522
522
  fields: z.string().optional().describe('Response field mask.'),
523
523
  },
524
- });
524
+ }, deps);
525
525
  registerGeneratedTool(registry, {
526
526
  name: "chat_users_availability_mark_as_do_not_disturb",
527
527
  cud: "update",
@@ -531,13 +531,13 @@ export function registerChatGeneratedTools(registry) {
531
531
  hasBody: true,
532
532
  bodyParams: [{ "field": "expireTime", "api": "expireTime" }, { "field": "ttl", "api": "ttl" }],
533
533
  shape: {
534
- account: accountField(),
534
+ account: accountField(() => registry.accountAliases()),
535
535
  name: z.string().min(1).describe("Required. The resource name of the availability to mark as Do Not Disturb. Format: users/{user}/availability `{user}` is the id for the Person in the People API or Admin SDK directory API. For example"),
536
536
  expireTime: z.string().describe("The absolute timestamp when the DND state expires.").optional(),
537
537
  ttl: z.string().describe("The duration from the current time until the DND state expires.").optional(),
538
538
  fields: z.string().optional().describe('Response field mask.'),
539
539
  },
540
- });
540
+ }, deps);
541
541
  registerGeneratedTool(registry, {
542
542
  name: "chat_users_availability_patch",
543
543
  cud: "update",
@@ -546,13 +546,13 @@ export function registerChatGeneratedTools(registry) {
546
546
  params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "updateMask", "api": "updateMask", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
547
547
  hasBody: true,
548
548
  shape: {
549
- account: accountField(),
549
+ account: accountField(() => registry.accountAliases()),
550
550
  name: z.string().min(1).describe("Identifier. Resource name of the user's availability. Format: `users/{user}/availability` `{user}` is the id for the Person in the People API or Admin SDK directory API. For example, `users/123456789`"),
551
551
  updateMask: z.string().describe("Required. The list of fields to update. The only field that can be updated is `custom_status`.").optional(),
552
552
  body: coerceJson(z.record(z.string(), z.unknown())).describe("Availability JSON request body. Top-level fields: customStatus, doNotDisturbMetadata, name, state."),
553
553
  fields: z.string().optional().describe('Response field mask.'),
554
554
  },
555
- });
555
+ }, deps);
556
556
  registerGeneratedTool(registry, {
557
557
  name: "chat_users_sections_create",
558
558
  cud: "create",
@@ -562,7 +562,7 @@ export function registerChatGeneratedTools(registry) {
562
562
  hasBody: true,
563
563
  bodyParams: [{ "field": "displayName", "api": "displayName" }, { "field": "name", "api": "name" }, { "field": "sortOrder", "api": "sortOrder" }, { "field": "type", "api": "type" }],
564
564
  shape: {
565
- account: accountField(),
565
+ account: accountField(() => registry.accountAliases()),
566
566
  parent: z.string().min(1).describe("Required. The parent resource name where the section is created. Format: `users/{user}`"),
567
567
  displayName: z.string().describe("Optional. The section's display name. Only populated for sections of type `CUSTOM_SECTION`. Supports up to 80 characters. Required when creating a `CUSTOM_SECTION`.").optional(),
568
568
  name: z.string().describe("Identifier. Resource name of the section. For system sections, the section ID is a constant string: - DEFAULT_DIRECT_MESSAGES: `users/{user}/sections/default-direct-messages` - DEFAULT_SPACES: `users/").optional(),
@@ -570,7 +570,7 @@ export function registerChatGeneratedTools(registry) {
570
570
  type: z.enum(["SECTION_TYPE_UNSPECIFIED", "CUSTOM_SECTION", "DEFAULT_DIRECT_MESSAGES", "DEFAULT_SPACES", "DEFAULT_APPS"]).describe("Required. The type of the section.").optional(),
571
571
  fields: z.string().optional().describe('Response field mask.'),
572
572
  },
573
- });
573
+ }, deps);
574
574
  registerGeneratedTool(registry, {
575
575
  name: "chat_users_sections_delete",
576
576
  cud: "delete",
@@ -579,11 +579,11 @@ export function registerChatGeneratedTools(registry) {
579
579
  params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
580
580
  hasBody: false,
581
581
  shape: {
582
- account: accountField(),
582
+ account: accountField(() => registry.accountAliases()),
583
583
  name: z.string().min(1).describe("Required. The name of the section to delete. Format: `users/{user}/sections/{section}`"),
584
584
  fields: z.string().optional().describe('Response field mask.'),
585
585
  },
586
- });
586
+ }, deps);
587
587
  registerGeneratedTool(registry, {
588
588
  name: "chat_users_sections_items_list",
589
589
  cud: "read",
@@ -592,14 +592,14 @@ export function registerChatGeneratedTools(registry) {
592
592
  params: [{ "field": "parent", "api": "parent", "location": "path" }, { "field": "filter", "api": "filter", "location": "query" }, { "field": "pageSize", "api": "pageSize", "location": "query" }, { "field": "pageToken", "api": "pageToken", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
593
593
  hasBody: false,
594
594
  shape: {
595
- account: accountField(),
595
+ account: accountField(() => registry.accountAliases()),
596
596
  parent: z.string().min(1).describe("Required. The parent, which is the section resource name that owns this collection of section items. Only supports listing section items for the calling user. When you're filtering by space, use the w"),
597
597
  filter: z.string().describe("Optional. A query filter. Currently only supports filtering by space. For example, `space = spaces/{space}`. Invalid queries are rejected with an `INVALID_ARGUMENT` error.").optional(),
598
598
  pageSize: z.number().describe("Optional. The maximum number of section items to return. The service may return fewer than this value. If unspecified, at most 10 section items will be returned. The maximum value is 100. If you use a").optional(),
599
599
  pageToken: z.string().describe("Optional. A page token, received from a previous list section items call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided should match the call that provid").optional(),
600
600
  fields: z.string().optional().describe('Response field mask.'),
601
601
  },
602
- });
602
+ }, deps);
603
603
  registerGeneratedTool(registry, {
604
604
  name: "chat_users_sections_items_move",
605
605
  cud: "update",
@@ -609,12 +609,12 @@ export function registerChatGeneratedTools(registry) {
609
609
  hasBody: true,
610
610
  bodyParams: [{ "field": "targetSection", "api": "targetSection" }],
611
611
  shape: {
612
- account: accountField(),
612
+ account: accountField(() => registry.accountAliases()),
613
613
  name: z.string().min(1).describe("Required. The resource name of the section item to move. Format: `users/{user}/sections/{section}/items/{item}`"),
614
614
  targetSection: z.string().describe("Required. The resource name of the section to move the section item to. Format: `users/{user}/sections/{section}`").optional(),
615
615
  fields: z.string().optional().describe('Response field mask.'),
616
616
  },
617
- });
617
+ }, deps);
618
618
  registerGeneratedTool(registry, {
619
619
  name: "chat_users_sections_list",
620
620
  cud: "read",
@@ -623,13 +623,13 @@ export function registerChatGeneratedTools(registry) {
623
623
  params: [{ "field": "parent", "api": "parent", "location": "path" }, { "field": "pageSize", "api": "pageSize", "location": "query" }, { "field": "pageToken", "api": "pageToken", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
624
624
  hasBody: false,
625
625
  shape: {
626
- account: accountField(),
626
+ account: accountField(() => registry.accountAliases()),
627
627
  parent: z.string().min(1).describe("Required. The parent, which is the user resource name that owns this collection of sections. Only supports listing sections for the calling user. To refer to the calling user, set one of the following"),
628
628
  pageSize: z.number().describe("Optional. The maximum number of sections to return. The service may return fewer than this value. If unspecified, at most 10 sections will be returned. The maximum value is 100. If you use a value mor").optional(),
629
629
  pageToken: z.string().describe("Optional. A page token, received from a previous list sections call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided should match the call that provided th").optional(),
630
630
  fields: z.string().optional().describe('Response field mask.'),
631
631
  },
632
- });
632
+ }, deps);
633
633
  registerGeneratedTool(registry, {
634
634
  name: "chat_users_sections_patch",
635
635
  cud: "update",
@@ -639,7 +639,7 @@ export function registerChatGeneratedTools(registry) {
639
639
  hasBody: true,
640
640
  bodyParams: [{ "field": "displayName", "api": "displayName" }, { "field": "name_", "api": "name" }, { "field": "sortOrder", "api": "sortOrder" }, { "field": "type", "api": "type" }],
641
641
  shape: {
642
- account: accountField(),
642
+ account: accountField(() => registry.accountAliases()),
643
643
  name: z.string().min(1).describe("Identifier. Resource name of the section. For system sections, the section ID is a constant string: - DEFAULT_DIRECT_MESSAGES: `users/{user}/sections/default-direct-messages` - DEFAULT_SPACES: `users/"),
644
644
  updateMask: z.string().describe("Required. The mask to specify which fields to update. Currently supported field paths: - `display_name`").optional(),
645
645
  displayName: z.string().describe("Optional. The section's display name. Only populated for sections of type `CUSTOM_SECTION`. Supports up to 80 characters. Required when creating a `CUSTOM_SECTION`.").optional(),
@@ -648,7 +648,7 @@ export function registerChatGeneratedTools(registry) {
648
648
  type: z.enum(["SECTION_TYPE_UNSPECIFIED", "CUSTOM_SECTION", "DEFAULT_DIRECT_MESSAGES", "DEFAULT_SPACES", "DEFAULT_APPS"]).describe("Required. The type of the section.").optional(),
649
649
  fields: z.string().optional().describe('Response field mask.'),
650
650
  },
651
- });
651
+ }, deps);
652
652
  registerGeneratedTool(registry, {
653
653
  name: "chat_users_sections_position",
654
654
  cud: "create",
@@ -658,13 +658,13 @@ export function registerChatGeneratedTools(registry) {
658
658
  hasBody: true,
659
659
  bodyParams: [{ "field": "relativePosition", "api": "relativePosition" }, { "field": "sortOrder", "api": "sortOrder" }],
660
660
  shape: {
661
- account: accountField(),
661
+ account: accountField(() => registry.accountAliases()),
662
662
  name: z.string().min(1).describe("Required. The resource name of the section to position. Format: `users/{user}/sections/{section}`"),
663
663
  relativePosition: z.enum(["POSITION_UNSPECIFIED", "START", "END"]).describe("Optional. The relative position of the section in the list of sections.").optional(),
664
664
  sortOrder: z.number().describe("Optional. The absolute position of the section in the list of sections. The position must be greater than 0. If the position is greater than the number of sections, the section will be appended to the").optional(),
665
665
  fields: z.string().optional().describe('Response field mask.'),
666
666
  },
667
- });
667
+ }, deps);
668
668
  registerGeneratedTool(registry, {
669
669
  name: "chat_users_spaces_get_space_read_state",
670
670
  cud: "read",
@@ -673,11 +673,11 @@ export function registerChatGeneratedTools(registry) {
673
673
  params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
674
674
  hasBody: false,
675
675
  shape: {
676
- account: accountField(),
676
+ account: accountField(() => registry.accountAliases()),
677
677
  name: z.string().min(1).describe("Required. Resource name of the space read state to retrieve. Only supports getting read state for the calling user. To refer to the calling user, set one of the following: - The `me` alias. For exampl"),
678
678
  fields: z.string().optional().describe('Response field mask.'),
679
679
  },
680
- });
680
+ }, deps);
681
681
  registerGeneratedTool(registry, {
682
682
  name: "chat_users_spaces_space_notification_setting_get",
683
683
  cud: "read",
@@ -686,11 +686,11 @@ export function registerChatGeneratedTools(registry) {
686
686
  params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
687
687
  hasBody: false,
688
688
  shape: {
689
- account: accountField(),
689
+ account: accountField(() => registry.accountAliases()),
690
690
  name: z.string().min(1).describe("Required. Format: users/{user}/spaces/{space}/spaceNotificationSetting - `users/me/spaces/{space}/spaceNotificationSetting`, OR - `users/user@example.com/spaces/{space}/spaceNotificationSetting`, OR -"),
691
691
  fields: z.string().optional().describe('Response field mask.'),
692
692
  },
693
- });
693
+ }, deps);
694
694
  registerGeneratedTool(registry, {
695
695
  name: "chat_users_spaces_space_notification_setting_patch",
696
696
  cud: "update",
@@ -700,7 +700,7 @@ export function registerChatGeneratedTools(registry) {
700
700
  hasBody: true,
701
701
  bodyParams: [{ "field": "muteSetting", "api": "muteSetting" }, { "field": "name_", "api": "name" }, { "field": "notificationSetting", "api": "notificationSetting" }],
702
702
  shape: {
703
- account: accountField(),
703
+ account: accountField(() => registry.accountAliases()),
704
704
  name: z.string().min(1).describe("Identifier. The resource name of the space notification setting. Format: `users/{user}/spaces/{space}/spaceNotificationSetting`."),
705
705
  updateMask: z.string().describe("Required. Supported field paths: - `notification_setting` - `mute_setting`").optional(),
706
706
  muteSetting: z.enum(["MUTE_SETTING_UNSPECIFIED", "UNMUTED", "MUTED"]).describe("The space notification mute setting.").optional(),
@@ -708,7 +708,7 @@ export function registerChatGeneratedTools(registry) {
708
708
  notificationSetting: z.enum(["NOTIFICATION_SETTING_UNSPECIFIED", "ALL", "MAIN_CONVERSATIONS", "FOR_YOU", "OFF"]).describe("The notification setting.").optional(),
709
709
  fields: z.string().optional().describe('Response field mask.'),
710
710
  },
711
- });
711
+ }, deps);
712
712
  registerGeneratedTool(registry, {
713
713
  name: "chat_users_spaces_threads_get_thread_read_state",
714
714
  cud: "read",
@@ -717,11 +717,11 @@ export function registerChatGeneratedTools(registry) {
717
717
  params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
718
718
  hasBody: false,
719
719
  shape: {
720
- account: accountField(),
720
+ account: accountField(() => registry.accountAliases()),
721
721
  name: z.string().min(1).describe("Required. Resource name of the thread read state to retrieve. Only supports getting read state for the calling user. To refer to the calling user, set one of the following: - The `me` alias. For examp"),
722
722
  fields: z.string().optional().describe('Response field mask.'),
723
723
  },
724
- });
724
+ }, deps);
725
725
  registerGeneratedTool(registry, {
726
726
  name: "chat_users_spaces_update_space_read_state",
727
727
  cud: "update",
@@ -731,12 +731,12 @@ export function registerChatGeneratedTools(registry) {
731
731
  hasBody: true,
732
732
  bodyParams: [{ "field": "lastReadTime", "api": "lastReadTime" }, { "field": "name_", "api": "name" }],
733
733
  shape: {
734
- account: accountField(),
734
+ account: accountField(() => registry.accountAliases()),
735
735
  name: z.string().min(1).describe("Resource name of the space read state. Format: `users/{user}/spaces/{space}/spaceReadState`"),
736
736
  updateMask: z.string().describe("Required. The field paths to update. Currently supported field paths: - `last_read_time` When the `last_read_time` is before the latest message create time, the space appears as unread in the UI. To m").optional(),
737
737
  lastReadTime: z.string().describe("Optional. The time when the user's space read state was updated. Usually this corresponds with either the timestamp of the last read message, or a timestamp specified by the user to mark the last read").optional(),
738
738
  name_: z.string().describe("Resource name of the space read state. Format: `users/{user}/spaces/{space}/spaceReadState`").optional(),
739
739
  fields: z.string().optional().describe('Response field mask.'),
740
740
  },
741
- });
741
+ }, deps);
742
742
  }