mcp-google-multi 5.4.1-alpha.2 → 6.0.0-alpha.2

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 (116) hide show
  1. package/README.md +21 -16
  2. package/dist/accounts.d.ts +44 -5
  3. package/dist/accounts.js +267 -25
  4. package/dist/auth.d.ts +11 -4
  5. package/dist/auth.js +85 -78
  6. package/dist/client-config.d.ts +90 -0
  7. package/dist/client-config.js +282 -0
  8. package/dist/client.js +10 -4
  9. package/dist/config-file.d.ts +38 -0
  10. package/dist/config-file.js +117 -0
  11. package/dist/discover.js +57 -3
  12. package/dist/doctor.d.ts +86 -0
  13. package/dist/doctor.js +384 -0
  14. package/dist/env-load.d.ts +11 -0
  15. package/dist/env-load.js +52 -0
  16. package/dist/executor.d.ts +2 -0
  17. package/dist/executor.js +2 -1
  18. package/dist/fanout.js +8 -5
  19. package/dist/fs-atomic.d.ts +3 -0
  20. package/dist/fs-atomic.js +123 -0
  21. package/dist/http-config.d.ts +35 -0
  22. package/dist/http-config.js +113 -0
  23. package/dist/http-transport.d.ts +59 -0
  24. package/dist/http-transport.js +269 -0
  25. package/dist/identity.d.ts +24 -0
  26. package/dist/identity.js +19 -0
  27. package/dist/index.d.ts +1 -1
  28. package/dist/index.js +199 -18
  29. package/dist/master-key.d.ts +53 -0
  30. package/dist/master-key.js +242 -0
  31. package/dist/mcp-token.d.ts +81 -0
  32. package/dist/mcp-token.js +176 -0
  33. package/dist/migrate-config.d.ts +7 -0
  34. package/dist/migrate-config.js +103 -0
  35. package/dist/migrate-tokens.js +4 -3
  36. package/dist/net-tuning.d.ts +8 -0
  37. package/dist/net-tuning.js +25 -0
  38. package/dist/oauth-as.d.ts +52 -0
  39. package/dist/oauth-as.js +457 -0
  40. package/dist/oauth-consent.d.ts +28 -0
  41. package/dist/oauth-consent.js +109 -0
  42. package/dist/open-url.d.ts +1 -0
  43. package/dist/open-url.js +30 -0
  44. package/dist/reauth-hint.d.ts +2 -0
  45. package/dist/reauth-hint.js +15 -0
  46. package/dist/registry-transfer.d.ts +41 -0
  47. package/dist/registry-transfer.js +219 -0
  48. package/dist/registry.d.ts +27 -1
  49. package/dist/registry.js +117 -6
  50. package/dist/scope-catalog.d.ts +19 -0
  51. package/dist/scope-catalog.js +182 -0
  52. package/dist/scope-observability.d.ts +78 -0
  53. package/dist/scope-observability.js +192 -0
  54. package/dist/services.js +1 -1
  55. package/dist/setup-prompt.d.ts +9 -0
  56. package/dist/setup-prompt.js +59 -0
  57. package/dist/ssrf-guard.d.ts +48 -0
  58. package/dist/ssrf-guard.js +242 -0
  59. package/dist/token-store.js +23 -125
  60. package/dist/tools/_errors.d.ts +8 -2
  61. package/dist/tools/_errors.js +97 -6
  62. package/dist/tools/account-wizard.d.ts +33 -0
  63. package/dist/tools/account-wizard.js +284 -0
  64. package/dist/tools/accounts-tool.d.ts +8 -5
  65. package/dist/tools/accounts-tool.js +38 -15
  66. package/dist/tools/admin.js +2 -2
  67. package/dist/tools/calendar.js +2 -2
  68. package/dist/tools/chat.js +2 -2
  69. package/dist/tools/contacts.d.ts +40 -0
  70. package/dist/tools/contacts.js +135 -2
  71. package/dist/tools/docs.d.ts +3 -0
  72. package/dist/tools/docs.js +60 -9
  73. package/dist/tools/drive.d.ts +3 -0
  74. package/dist/tools/drive.js +60 -8
  75. package/dist/tools/forms.js +4 -2
  76. package/dist/tools/generated/_shared.d.ts +1 -3
  77. package/dist/tools/generated/_shared.js +3 -3
  78. package/dist/tools/generated/admin.js +175 -132
  79. package/dist/tools/generated/appsmarket.js +6 -2
  80. package/dist/tools/generated/calendar.js +45 -27
  81. package/dist/tools/generated/chat.js +81 -47
  82. package/dist/tools/generated/classroom.js +131 -104
  83. package/dist/tools/generated/cloudidentity.js +73 -61
  84. package/dist/tools/generated/cloudsearch.js +59 -49
  85. package/dist/tools/generated/contacts.js +22 -14
  86. package/dist/tools/generated/drive.js +51 -35
  87. package/dist/tools/generated/driveactivity.js +5 -1
  88. package/dist/tools/generated/drivelabels.js +30 -25
  89. package/dist/tools/generated/forms.js +7 -3
  90. package/dist/tools/generated/gmail.js +73 -58
  91. package/dist/tools/generated/groupsmigration.js +5 -1
  92. package/dist/tools/generated/groupssettings.js +7 -3
  93. package/dist/tools/generated/keep.js +12 -7
  94. package/dist/tools/generated/licensing.js +11 -7
  95. package/dist/tools/generated/meet.js +20 -13
  96. package/dist/tools/generated/postmaster.js +8 -4
  97. package/dist/tools/generated/reseller.js +22 -17
  98. package/dist/tools/generated/script.js +26 -16
  99. package/dist/tools/generated/sheets.js +11 -7
  100. package/dist/tools/generated/tasks.js +6 -2
  101. package/dist/tools/generated/vault.js +38 -33
  102. package/dist/tools/generated/workspaceevents.js +12 -7
  103. package/dist/tools/gmail-mime.d.ts +38 -8
  104. package/dist/tools/gmail-mime.js +75 -71
  105. package/dist/tools/gmail.d.ts +31 -0
  106. package/dist/tools/gmail.js +483 -99
  107. package/dist/tools/google-api.js +7 -4
  108. package/dist/tools/meet.js +2 -2
  109. package/dist/tools/searchconsole.js +2 -2
  110. package/dist/tools/sheets.js +6 -2
  111. package/dist/tools/slides.js +4 -2
  112. package/dist/tools/tasks.js +2 -2
  113. package/dist/types.d.ts +1 -1
  114. package/dist/write-control.d.ts +24 -1
  115. package/dist/write-control.js +26 -1
  116. package/package.json +26 -7
@@ -3,11 +3,26 @@ import { z } from 'zod';
3
3
  import { coerceArray, coerceBoolean, coerceJson } from '../_coerce.js';
4
4
  import { accountField, registerGeneratedTool } from './_shared.js';
5
5
  export function registerGmailGeneratedTools(registry) {
6
+ // Interned method scope sets (shared across tools; see scope-observability).
7
+ const S_gmail_v1 = [
8
+ ["https://mail.google.com/", "https://www.googleapis.com/auth/gmail.addons.current.action.compose", "https://www.googleapis.com/auth/gmail.compose", "https://www.googleapis.com/auth/gmail.modify"],
9
+ ["https://mail.google.com/", "https://www.googleapis.com/auth/gmail.labels", "https://www.googleapis.com/auth/gmail.metadata", "https://www.googleapis.com/auth/gmail.modify", "https://www.googleapis.com/auth/gmail.readonly"],
10
+ ["https://mail.google.com/", "https://www.googleapis.com/auth/gmail.labels", "https://www.googleapis.com/auth/gmail.modify"],
11
+ ["https://mail.google.com/", "https://www.googleapis.com/auth/gmail.insert", "https://www.googleapis.com/auth/gmail.modify"],
12
+ ["https://mail.google.com/", "https://www.googleapis.com/auth/gmail.modify"],
13
+ ["https://www.googleapis.com/auth/gmail.settings.basic", "https://www.googleapis.com/auth/gmail.settings.sharing"],
14
+ ["https://mail.google.com/", "https://www.googleapis.com/auth/gmail.modify", "https://www.googleapis.com/auth/gmail.readonly", "https://www.googleapis.com/auth/gmail.settings.basic", "https://www.googleapis.com/auth/gmail.settings.sharing"],
15
+ ["https://www.googleapis.com/auth/gmail.settings.sharing"],
16
+ ["https://mail.google.com/", "https://www.googleapis.com/auth/gmail.modify", "https://www.googleapis.com/auth/gmail.readonly", "https://www.googleapis.com/auth/gmail.settings.basic"],
17
+ ["https://www.googleapis.com/auth/gmail.settings.basic"],
18
+ ["https://mail.google.com/", "https://www.googleapis.com/auth/gmail.metadata", "https://www.googleapis.com/auth/gmail.modify", "https://www.googleapis.com/auth/gmail.readonly"],
19
+ ["https://mail.google.com/"],
20
+ ];
6
21
  registerGeneratedTool(registry, {
7
22
  name: "gmail_users_drafts_delete",
8
23
  cud: "delete",
9
24
  description: "Immediately and permanently deletes the specified draft. Does not simply trash it. For more information, see [Create and send draft emails](https://developers.g",
10
- method: { id: "gmail.users.drafts.delete", httpMethod: "DELETE", path: "gmail/v1/users/{userId}/drafts/{id}", baseUrl: "https://gmail.googleapis.com/", requiredParams: ["userId", "id"] },
25
+ method: { id: "gmail.users.drafts.delete", httpMethod: "DELETE", path: "gmail/v1/users/{userId}/drafts/{id}", baseUrl: "https://gmail.googleapis.com/", requiredParams: ["userId", "id"], scopes: S_gmail_v1[0] },
11
26
  params: [{ "field": "id", "api": "id", "location": "path" }, { "field": "userId", "api": "userId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
12
27
  hasBody: false,
13
28
  shape: {
@@ -21,7 +36,7 @@ export function registerGmailGeneratedTools(registry) {
21
36
  name: "gmail_users_drafts_update",
22
37
  cud: "update",
23
38
  description: "Replaces a draft's content. For more information, see [Create and send draft emails](https://developers.google.com/workspace/gmail/api/guides/drafts).",
24
- method: { id: "gmail.users.drafts.update", httpMethod: "PUT", path: "gmail/v1/users/{userId}/drafts/{id}", baseUrl: "https://gmail.googleapis.com/", requiredParams: ["userId", "id"] },
39
+ method: { id: "gmail.users.drafts.update", httpMethod: "PUT", path: "gmail/v1/users/{userId}/drafts/{id}", baseUrl: "https://gmail.googleapis.com/", requiredParams: ["userId", "id"], scopes: S_gmail_v1[0] },
25
40
  params: [{ "field": "id", "api": "id", "location": "path" }, { "field": "userId", "api": "userId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
26
41
  hasBody: true,
27
42
  shape: {
@@ -36,7 +51,7 @@ export function registerGmailGeneratedTools(registry) {
36
51
  name: "gmail_users_labels_get",
37
52
  cud: "read",
38
53
  description: "Gets the specified label. For more information, see [Manage labels](https://developers.google.com/workspace/gmail/api/guides/labels).",
39
- method: { id: "gmail.users.labels.get", httpMethod: "GET", path: "gmail/v1/users/{userId}/labels/{id}", baseUrl: "https://gmail.googleapis.com/", requiredParams: ["userId", "id"] },
54
+ method: { id: "gmail.users.labels.get", httpMethod: "GET", path: "gmail/v1/users/{userId}/labels/{id}", baseUrl: "https://gmail.googleapis.com/", requiredParams: ["userId", "id"], scopes: S_gmail_v1[1] },
40
55
  params: [{ "field": "id", "api": "id", "location": "path" }, { "field": "userId", "api": "userId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
41
56
  hasBody: false,
42
57
  shape: {
@@ -50,7 +65,7 @@ export function registerGmailGeneratedTools(registry) {
50
65
  name: "gmail_users_labels_patch",
51
66
  cud: "update",
52
67
  description: "Patch the specified label. For more information, see [Manage labels](https://developers.google.com/workspace/gmail/api/guides/labels).",
53
- method: { id: "gmail.users.labels.patch", httpMethod: "PATCH", path: "gmail/v1/users/{userId}/labels/{id}", baseUrl: "https://gmail.googleapis.com/", requiredParams: ["userId", "id"] },
68
+ method: { id: "gmail.users.labels.patch", httpMethod: "PATCH", path: "gmail/v1/users/{userId}/labels/{id}", baseUrl: "https://gmail.googleapis.com/", requiredParams: ["userId", "id"], scopes: S_gmail_v1[2] },
54
69
  params: [{ "field": "id", "api": "id", "location": "path" }, { "field": "userId", "api": "userId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
55
70
  hasBody: true,
56
71
  shape: {
@@ -65,7 +80,7 @@ export function registerGmailGeneratedTools(registry) {
65
80
  name: "gmail_users_labels_update",
66
81
  cud: "update",
67
82
  description: "Updates the specified label. For more information, see [Manage labels](https://developers.google.com/workspace/gmail/api/guides/labels).",
68
- method: { id: "gmail.users.labels.update", httpMethod: "PUT", path: "gmail/v1/users/{userId}/labels/{id}", baseUrl: "https://gmail.googleapis.com/", requiredParams: ["userId", "id"] },
83
+ method: { id: "gmail.users.labels.update", httpMethod: "PUT", path: "gmail/v1/users/{userId}/labels/{id}", baseUrl: "https://gmail.googleapis.com/", requiredParams: ["userId", "id"], scopes: S_gmail_v1[2] },
69
84
  params: [{ "field": "id", "api": "id", "location": "path" }, { "field": "userId", "api": "userId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
70
85
  hasBody: true,
71
86
  shape: {
@@ -80,7 +95,7 @@ export function registerGmailGeneratedTools(registry) {
80
95
  name: "gmail_users_messages_import",
81
96
  cud: "create",
82
97
  description: "Imports a message into only this user's mailbox, with standard email delivery scanning and classification similar to receiving via SMTP. This method doesn't per",
83
- method: { id: "gmail.users.messages.import", httpMethod: "POST", path: "gmail/v1/users/{userId}/messages/import", baseUrl: "https://gmail.googleapis.com/", requiredParams: ["userId"] },
98
+ method: { id: "gmail.users.messages.import", httpMethod: "POST", path: "gmail/v1/users/{userId}/messages/import", baseUrl: "https://gmail.googleapis.com/", requiredParams: ["userId"], scopes: S_gmail_v1[3] },
84
99
  params: [{ "field": "userId", "api": "userId", "location": "path" }, { "field": "deleted", "api": "deleted", "location": "query" }, { "field": "internalDateSource", "api": "internalDateSource", "location": "query" }, { "field": "neverMarkSpam", "api": "neverMarkSpam", "location": "query" }, { "field": "processForCalendar", "api": "processForCalendar", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
85
100
  hasBody: true,
86
101
  shape: {
@@ -98,7 +113,7 @@ export function registerGmailGeneratedTools(registry) {
98
113
  name: "gmail_users_messages_insert",
99
114
  cud: "create",
100
115
  description: "Directly inserts a message into only this user's mailbox similar to `IMAP APPEND`, bypassing most scanning and classification. Does not send a message. For more",
101
- method: { id: "gmail.users.messages.insert", httpMethod: "POST", path: "gmail/v1/users/{userId}/messages", baseUrl: "https://gmail.googleapis.com/", requiredParams: ["userId"] },
116
+ method: { id: "gmail.users.messages.insert", httpMethod: "POST", path: "gmail/v1/users/{userId}/messages", baseUrl: "https://gmail.googleapis.com/", requiredParams: ["userId"], scopes: S_gmail_v1[3] },
102
117
  params: [{ "field": "userId", "api": "userId", "location": "path" }, { "field": "deleted", "api": "deleted", "location": "query" }, { "field": "internalDateSource", "api": "internalDateSource", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
103
118
  hasBody: true,
104
119
  shape: {
@@ -114,7 +129,7 @@ export function registerGmailGeneratedTools(registry) {
114
129
  name: "gmail_users_messages_untrash",
115
130
  cud: "update",
116
131
  description: "Removes the specified message from the trash.",
117
- method: { id: "gmail.users.messages.untrash", httpMethod: "POST", path: "gmail/v1/users/{userId}/messages/{id}/untrash", baseUrl: "https://gmail.googleapis.com/", requiredParams: ["userId", "id"] },
132
+ method: { id: "gmail.users.messages.untrash", httpMethod: "POST", path: "gmail/v1/users/{userId}/messages/{id}/untrash", baseUrl: "https://gmail.googleapis.com/", requiredParams: ["userId", "id"], scopes: S_gmail_v1[4] },
118
133
  params: [{ "field": "id", "api": "id", "location": "path" }, { "field": "userId", "api": "userId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
119
134
  hasBody: false,
120
135
  shape: {
@@ -128,7 +143,7 @@ export function registerGmailGeneratedTools(registry) {
128
143
  name: "gmail_users_settings_cse_identities_create",
129
144
  cud: "create",
130
145
  description: "Creates and configures a client-side encryption identity that's authorized to send mail from the user account. Google publishes the S/MIME certificate to a shar",
131
- method: { id: "gmail.users.settings.cse.identities.create", httpMethod: "POST", path: "gmail/v1/users/{userId}/settings/cse/identities", baseUrl: "https://gmail.googleapis.com/", requiredParams: ["userId"] },
146
+ method: { id: "gmail.users.settings.cse.identities.create", httpMethod: "POST", path: "gmail/v1/users/{userId}/settings/cse/identities", baseUrl: "https://gmail.googleapis.com/", requiredParams: ["userId"], scopes: S_gmail_v1[5] },
132
147
  params: [{ "field": "userId", "api": "userId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
133
148
  hasBody: true,
134
149
  shape: {
@@ -142,7 +157,7 @@ export function registerGmailGeneratedTools(registry) {
142
157
  name: "gmail_users_settings_cse_identities_delete",
143
158
  cud: "delete",
144
159
  description: "Deletes a client-side encryption identity. The authenticated user can no longer use the identity to send encrypted messages. You cannot restore the identity aft",
145
- method: { id: "gmail.users.settings.cse.identities.delete", httpMethod: "DELETE", path: "gmail/v1/users/{userId}/settings/cse/identities/{cseEmailAddress}", baseUrl: "https://gmail.googleapis.com/", requiredParams: ["userId", "cseEmailAddress"] },
160
+ method: { id: "gmail.users.settings.cse.identities.delete", httpMethod: "DELETE", path: "gmail/v1/users/{userId}/settings/cse/identities/{cseEmailAddress}", baseUrl: "https://gmail.googleapis.com/", requiredParams: ["userId", "cseEmailAddress"], scopes: S_gmail_v1[5] },
146
161
  params: [{ "field": "cseEmailAddress", "api": "cseEmailAddress", "location": "path" }, { "field": "userId", "api": "userId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
147
162
  hasBody: false,
148
163
  shape: {
@@ -156,7 +171,7 @@ export function registerGmailGeneratedTools(registry) {
156
171
  name: "gmail_users_settings_cse_identities_get",
157
172
  cud: "read",
158
173
  description: "Retrieves a client-side encryption identity configuration. For administrators managing identities and keypairs for users in their organization, requests require",
159
- method: { id: "gmail.users.settings.cse.identities.get", httpMethod: "GET", path: "gmail/v1/users/{userId}/settings/cse/identities/{cseEmailAddress}", baseUrl: "https://gmail.googleapis.com/", requiredParams: ["userId", "cseEmailAddress"] },
174
+ method: { id: "gmail.users.settings.cse.identities.get", httpMethod: "GET", path: "gmail/v1/users/{userId}/settings/cse/identities/{cseEmailAddress}", baseUrl: "https://gmail.googleapis.com/", requiredParams: ["userId", "cseEmailAddress"], scopes: S_gmail_v1[6] },
160
175
  params: [{ "field": "cseEmailAddress", "api": "cseEmailAddress", "location": "path" }, { "field": "userId", "api": "userId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
161
176
  hasBody: false,
162
177
  shape: {
@@ -170,7 +185,7 @@ export function registerGmailGeneratedTools(registry) {
170
185
  name: "gmail_users_settings_cse_identities_list",
171
186
  cud: "read",
172
187
  description: "Lists the client-side encrypted identities for an authenticated user. For administrators managing identities and keypairs for users in their organization, reque",
173
- method: { id: "gmail.users.settings.cse.identities.list", httpMethod: "GET", path: "gmail/v1/users/{userId}/settings/cse/identities", baseUrl: "https://gmail.googleapis.com/", requiredParams: ["userId"] },
188
+ method: { id: "gmail.users.settings.cse.identities.list", httpMethod: "GET", path: "gmail/v1/users/{userId}/settings/cse/identities", baseUrl: "https://gmail.googleapis.com/", requiredParams: ["userId"], scopes: S_gmail_v1[6] },
174
189
  params: [{ "field": "userId", "api": "userId", "location": "path" }, { "field": "pageSize", "api": "pageSize", "location": "query" }, { "field": "pageToken", "api": "pageToken", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
175
190
  hasBody: false,
176
191
  shape: {
@@ -185,7 +200,7 @@ export function registerGmailGeneratedTools(registry) {
185
200
  name: "gmail_users_settings_cse_identities_patch",
186
201
  cud: "update",
187
202
  description: "Associates a different key pair with an existing client-side encryption identity. The updated key pair must validate against Google's [S/MIME certificate profil",
188
- method: { id: "gmail.users.settings.cse.identities.patch", httpMethod: "PATCH", path: "gmail/v1/users/{userId}/settings/cse/identities/{emailAddress}", baseUrl: "https://gmail.googleapis.com/", requiredParams: ["userId", "emailAddress"] },
203
+ method: { id: "gmail.users.settings.cse.identities.patch", httpMethod: "PATCH", path: "gmail/v1/users/{userId}/settings/cse/identities/{emailAddress}", baseUrl: "https://gmail.googleapis.com/", requiredParams: ["userId", "emailAddress"], scopes: S_gmail_v1[5] },
189
204
  params: [{ "field": "emailAddress", "api": "emailAddress", "location": "path" }, { "field": "userId", "api": "userId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
190
205
  hasBody: true,
191
206
  shape: {
@@ -200,7 +215,7 @@ export function registerGmailGeneratedTools(registry) {
200
215
  name: "gmail_users_settings_cse_keypairs_create",
201
216
  cud: "create",
202
217
  description: "Creates and uploads a client-side encryption S/MIME public key certificate chain and private key metadata for the authenticated user. For administrators managin",
203
- method: { id: "gmail.users.settings.cse.keypairs.create", httpMethod: "POST", path: "gmail/v1/users/{userId}/settings/cse/keypairs", baseUrl: "https://gmail.googleapis.com/", requiredParams: ["userId"] },
218
+ method: { id: "gmail.users.settings.cse.keypairs.create", httpMethod: "POST", path: "gmail/v1/users/{userId}/settings/cse/keypairs", baseUrl: "https://gmail.googleapis.com/", requiredParams: ["userId"], scopes: S_gmail_v1[5] },
204
219
  params: [{ "field": "userId", "api": "userId", "location": "path" }, { "field": "chainValidation", "api": "chainValidation", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
205
220
  hasBody: true,
206
221
  shape: {
@@ -215,7 +230,7 @@ export function registerGmailGeneratedTools(registry) {
215
230
  name: "gmail_users_settings_cse_keypairs_disable",
216
231
  cud: "create",
217
232
  description: "Turns off a client-side encryption key pair. The authenticated user can no longer use the key pair to decrypt incoming CSE message texts or sign outgoing CSE ma",
218
- method: { id: "gmail.users.settings.cse.keypairs.disable", httpMethod: "POST", path: "gmail/v1/users/{userId}/settings/cse/keypairs/{keyPairId}:disable", baseUrl: "https://gmail.googleapis.com/", requiredParams: ["userId", "keyPairId"] },
233
+ method: { id: "gmail.users.settings.cse.keypairs.disable", httpMethod: "POST", path: "gmail/v1/users/{userId}/settings/cse/keypairs/{keyPairId}:disable", baseUrl: "https://gmail.googleapis.com/", requiredParams: ["userId", "keyPairId"], scopes: S_gmail_v1[5] },
219
234
  params: [{ "field": "keyPairId", "api": "keyPairId", "location": "path" }, { "field": "userId", "api": "userId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
220
235
  hasBody: true,
221
236
  shape: {
@@ -230,7 +245,7 @@ export function registerGmailGeneratedTools(registry) {
230
245
  name: "gmail_users_settings_cse_keypairs_enable",
231
246
  cud: "create",
232
247
  description: "Turns on a client-side encryption key pair that was turned off. The key pair becomes active again for any associated client-side encryption identities. For admi",
233
- method: { id: "gmail.users.settings.cse.keypairs.enable", httpMethod: "POST", path: "gmail/v1/users/{userId}/settings/cse/keypairs/{keyPairId}:enable", baseUrl: "https://gmail.googleapis.com/", requiredParams: ["userId", "keyPairId"] },
248
+ method: { id: "gmail.users.settings.cse.keypairs.enable", httpMethod: "POST", path: "gmail/v1/users/{userId}/settings/cse/keypairs/{keyPairId}:enable", baseUrl: "https://gmail.googleapis.com/", requiredParams: ["userId", "keyPairId"], scopes: S_gmail_v1[5] },
234
249
  params: [{ "field": "keyPairId", "api": "keyPairId", "location": "path" }, { "field": "userId", "api": "userId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
235
250
  hasBody: true,
236
251
  shape: {
@@ -245,7 +260,7 @@ export function registerGmailGeneratedTools(registry) {
245
260
  name: "gmail_users_settings_cse_keypairs_get",
246
261
  cud: "read",
247
262
  description: "Retrieves an existing client-side encryption key pair. For administrators managing identities and keypairs for users in their organization, requests require aut",
248
- method: { id: "gmail.users.settings.cse.keypairs.get", httpMethod: "GET", path: "gmail/v1/users/{userId}/settings/cse/keypairs/{keyPairId}", baseUrl: "https://gmail.googleapis.com/", requiredParams: ["userId", "keyPairId"] },
263
+ method: { id: "gmail.users.settings.cse.keypairs.get", httpMethod: "GET", path: "gmail/v1/users/{userId}/settings/cse/keypairs/{keyPairId}", baseUrl: "https://gmail.googleapis.com/", requiredParams: ["userId", "keyPairId"], scopes: S_gmail_v1[6] },
249
264
  params: [{ "field": "keyPairId", "api": "keyPairId", "location": "path" }, { "field": "userId", "api": "userId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
250
265
  hasBody: false,
251
266
  shape: {
@@ -259,7 +274,7 @@ export function registerGmailGeneratedTools(registry) {
259
274
  name: "gmail_users_settings_cse_keypairs_list",
260
275
  cud: "read",
261
276
  description: "Lists client-side encryption key pairs for an authenticated user. For administrators managing identities and keypairs for users in their organization, requests",
262
- method: { id: "gmail.users.settings.cse.keypairs.list", httpMethod: "GET", path: "gmail/v1/users/{userId}/settings/cse/keypairs", baseUrl: "https://gmail.googleapis.com/", requiredParams: ["userId"] },
277
+ method: { id: "gmail.users.settings.cse.keypairs.list", httpMethod: "GET", path: "gmail/v1/users/{userId}/settings/cse/keypairs", baseUrl: "https://gmail.googleapis.com/", requiredParams: ["userId"], scopes: S_gmail_v1[6] },
263
278
  params: [{ "field": "userId", "api": "userId", "location": "path" }, { "field": "pageSize", "api": "pageSize", "location": "query" }, { "field": "pageToken", "api": "pageToken", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
264
279
  hasBody: false,
265
280
  shape: {
@@ -274,7 +289,7 @@ export function registerGmailGeneratedTools(registry) {
274
289
  name: "gmail_users_settings_cse_keypairs_obliterate",
275
290
  cud: "delete",
276
291
  description: "Deletes a client-side encryption key pair permanently and immediately. You can only permanently delete key pairs that have been turned off for more than 30 days",
277
- method: { id: "gmail.users.settings.cse.keypairs.obliterate", httpMethod: "POST", path: "gmail/v1/users/{userId}/settings/cse/keypairs/{keyPairId}:obliterate", baseUrl: "https://gmail.googleapis.com/", requiredParams: ["userId", "keyPairId"] },
292
+ method: { id: "gmail.users.settings.cse.keypairs.obliterate", httpMethod: "POST", path: "gmail/v1/users/{userId}/settings/cse/keypairs/{keyPairId}:obliterate", baseUrl: "https://gmail.googleapis.com/", requiredParams: ["userId", "keyPairId"], scopes: S_gmail_v1[5] },
278
293
  params: [{ "field": "keyPairId", "api": "keyPairId", "location": "path" }, { "field": "userId", "api": "userId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
279
294
  hasBody: true,
280
295
  shape: {
@@ -289,7 +304,7 @@ export function registerGmailGeneratedTools(registry) {
289
304
  name: "gmail_users_settings_delegates_create",
290
305
  cud: "create",
291
306
  description: "Adds a delegate with its verification status set directly to `accepted`, without sending any verification email. The delegate user must be a member of the same",
292
- method: { id: "gmail.users.settings.delegates.create", httpMethod: "POST", path: "gmail/v1/users/{userId}/settings/delegates", baseUrl: "https://gmail.googleapis.com/", requiredParams: ["userId"] },
307
+ method: { id: "gmail.users.settings.delegates.create", httpMethod: "POST", path: "gmail/v1/users/{userId}/settings/delegates", baseUrl: "https://gmail.googleapis.com/", requiredParams: ["userId"], scopes: S_gmail_v1[7] },
293
308
  params: [{ "field": "userId", "api": "userId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
294
309
  hasBody: true,
295
310
  shape: {
@@ -303,7 +318,7 @@ export function registerGmailGeneratedTools(registry) {
303
318
  name: "gmail_users_settings_delegates_delete",
304
319
  cud: "delete",
305
320
  description: "Removes the specified delegate (which can be of any verification status), and revokes any verification that may have been required for using it. For more inform",
306
- method: { id: "gmail.users.settings.delegates.delete", httpMethod: "DELETE", path: "gmail/v1/users/{userId}/settings/delegates/{delegateEmail}", baseUrl: "https://gmail.googleapis.com/", requiredParams: ["userId", "delegateEmail"] },
321
+ method: { id: "gmail.users.settings.delegates.delete", httpMethod: "DELETE", path: "gmail/v1/users/{userId}/settings/delegates/{delegateEmail}", baseUrl: "https://gmail.googleapis.com/", requiredParams: ["userId", "delegateEmail"], scopes: S_gmail_v1[7] },
307
322
  params: [{ "field": "delegateEmail", "api": "delegateEmail", "location": "path" }, { "field": "userId", "api": "userId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
308
323
  hasBody: false,
309
324
  shape: {
@@ -317,7 +332,7 @@ export function registerGmailGeneratedTools(registry) {
317
332
  name: "gmail_users_settings_delegates_get",
318
333
  cud: "read",
319
334
  description: "Gets the specified delegate. For more information, see [Manage delegates](https://developers.google.com/workspace/gmail/api/guides/delegate_settings). A delegat",
320
- method: { id: "gmail.users.settings.delegates.get", httpMethod: "GET", path: "gmail/v1/users/{userId}/settings/delegates/{delegateEmail}", baseUrl: "https://gmail.googleapis.com/", requiredParams: ["userId", "delegateEmail"] },
335
+ method: { id: "gmail.users.settings.delegates.get", httpMethod: "GET", path: "gmail/v1/users/{userId}/settings/delegates/{delegateEmail}", baseUrl: "https://gmail.googleapis.com/", requiredParams: ["userId", "delegateEmail"], scopes: S_gmail_v1[8] },
321
336
  params: [{ "field": "delegateEmail", "api": "delegateEmail", "location": "path" }, { "field": "userId", "api": "userId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
322
337
  hasBody: false,
323
338
  shape: {
@@ -331,7 +346,7 @@ export function registerGmailGeneratedTools(registry) {
331
346
  name: "gmail_users_settings_delegates_list",
332
347
  cud: "read",
333
348
  description: "Lists the delegates for the specified account. For more information, see [Manage delegates](https://developers.google.com/workspace/gmail/api/guides/delegate_se",
334
- method: { id: "gmail.users.settings.delegates.list", httpMethod: "GET", path: "gmail/v1/users/{userId}/settings/delegates", baseUrl: "https://gmail.googleapis.com/", requiredParams: ["userId"] },
349
+ method: { id: "gmail.users.settings.delegates.list", httpMethod: "GET", path: "gmail/v1/users/{userId}/settings/delegates", baseUrl: "https://gmail.googleapis.com/", requiredParams: ["userId"], scopes: S_gmail_v1[8] },
335
350
  params: [{ "field": "userId", "api": "userId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
336
351
  hasBody: false,
337
352
  shape: {
@@ -344,7 +359,7 @@ export function registerGmailGeneratedTools(registry) {
344
359
  name: "gmail_users_settings_filters_create",
345
360
  cud: "create",
346
361
  description: "Creates a filter. Note: you can only create a maximum of 1,000 filters. For more information, see [Manage Gmail filters](https://developers.google.com/workspace",
347
- method: { id: "gmail.users.settings.filters.create", httpMethod: "POST", path: "gmail/v1/users/{userId}/settings/filters", baseUrl: "https://gmail.googleapis.com/", requiredParams: ["userId"] },
362
+ method: { id: "gmail.users.settings.filters.create", httpMethod: "POST", path: "gmail/v1/users/{userId}/settings/filters", baseUrl: "https://gmail.googleapis.com/", requiredParams: ["userId"], scopes: S_gmail_v1[9] },
348
363
  params: [{ "field": "userId", "api": "userId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
349
364
  hasBody: true,
350
365
  shape: {
@@ -358,7 +373,7 @@ export function registerGmailGeneratedTools(registry) {
358
373
  name: "gmail_users_settings_filters_delete",
359
374
  cud: "delete",
360
375
  description: "Immediately and permanently deletes the specified filter. For more information, see [Manage Gmail filters](https://developers.google.com/workspace/gmail/api/gui",
361
- method: { id: "gmail.users.settings.filters.delete", httpMethod: "DELETE", path: "gmail/v1/users/{userId}/settings/filters/{id}", baseUrl: "https://gmail.googleapis.com/", requiredParams: ["userId", "id"] },
376
+ method: { id: "gmail.users.settings.filters.delete", httpMethod: "DELETE", path: "gmail/v1/users/{userId}/settings/filters/{id}", baseUrl: "https://gmail.googleapis.com/", requiredParams: ["userId", "id"], scopes: S_gmail_v1[9] },
362
377
  params: [{ "field": "id", "api": "id", "location": "path" }, { "field": "userId", "api": "userId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
363
378
  hasBody: false,
364
379
  shape: {
@@ -372,7 +387,7 @@ export function registerGmailGeneratedTools(registry) {
372
387
  name: "gmail_users_settings_filters_get",
373
388
  cud: "read",
374
389
  description: "Gets a filter. For more information, see [Manage Gmail filters](https://developers.google.com/workspace/gmail/api/guides/filter_settings).",
375
- method: { id: "gmail.users.settings.filters.get", httpMethod: "GET", path: "gmail/v1/users/{userId}/settings/filters/{id}", baseUrl: "https://gmail.googleapis.com/", requiredParams: ["userId", "id"] },
390
+ method: { id: "gmail.users.settings.filters.get", httpMethod: "GET", path: "gmail/v1/users/{userId}/settings/filters/{id}", baseUrl: "https://gmail.googleapis.com/", requiredParams: ["userId", "id"], scopes: S_gmail_v1[8] },
376
391
  params: [{ "field": "id", "api": "id", "location": "path" }, { "field": "userId", "api": "userId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
377
392
  hasBody: false,
378
393
  shape: {
@@ -386,7 +401,7 @@ export function registerGmailGeneratedTools(registry) {
386
401
  name: "gmail_users_settings_filters_list",
387
402
  cud: "read",
388
403
  description: "Lists the message filters of a Gmail user. For more information, see [Manage Gmail filters](https://developers.google.com/workspace/gmail/api/guides/filter_sett",
389
- method: { id: "gmail.users.settings.filters.list", httpMethod: "GET", path: "gmail/v1/users/{userId}/settings/filters", baseUrl: "https://gmail.googleapis.com/", requiredParams: ["userId"] },
404
+ method: { id: "gmail.users.settings.filters.list", httpMethod: "GET", path: "gmail/v1/users/{userId}/settings/filters", baseUrl: "https://gmail.googleapis.com/", requiredParams: ["userId"], scopes: S_gmail_v1[8] },
390
405
  params: [{ "field": "userId", "api": "userId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
391
406
  hasBody: false,
392
407
  shape: {
@@ -399,7 +414,7 @@ export function registerGmailGeneratedTools(registry) {
399
414
  name: "gmail_users_settings_forwarding_addresses_create",
400
415
  cud: "create",
401
416
  description: "Creates a forwarding address. If ownership verification is required, a message will be sent to the recipient and the resource's verification status will be set",
402
- method: { id: "gmail.users.settings.forwardingAddresses.create", httpMethod: "POST", path: "gmail/v1/users/{userId}/settings/forwardingAddresses", baseUrl: "https://gmail.googleapis.com/", requiredParams: ["userId"] },
417
+ method: { id: "gmail.users.settings.forwardingAddresses.create", httpMethod: "POST", path: "gmail/v1/users/{userId}/settings/forwardingAddresses", baseUrl: "https://gmail.googleapis.com/", requiredParams: ["userId"], scopes: S_gmail_v1[7] },
403
418
  params: [{ "field": "userId", "api": "userId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
404
419
  hasBody: true,
405
420
  shape: {
@@ -413,7 +428,7 @@ export function registerGmailGeneratedTools(registry) {
413
428
  name: "gmail_users_settings_forwarding_addresses_delete",
414
429
  cud: "delete",
415
430
  description: "Deletes the specified forwarding address and revokes any verification that may have been required. For more information, see [Manage email forwarding](https://d",
416
- method: { id: "gmail.users.settings.forwardingAddresses.delete", httpMethod: "DELETE", path: "gmail/v1/users/{userId}/settings/forwardingAddresses/{forwardingEmail}", baseUrl: "https://gmail.googleapis.com/", requiredParams: ["userId", "forwardingEmail"] },
431
+ method: { id: "gmail.users.settings.forwardingAddresses.delete", httpMethod: "DELETE", path: "gmail/v1/users/{userId}/settings/forwardingAddresses/{forwardingEmail}", baseUrl: "https://gmail.googleapis.com/", requiredParams: ["userId", "forwardingEmail"], scopes: S_gmail_v1[7] },
417
432
  params: [{ "field": "forwardingEmail", "api": "forwardingEmail", "location": "path" }, { "field": "userId", "api": "userId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
418
433
  hasBody: false,
419
434
  shape: {
@@ -427,7 +442,7 @@ export function registerGmailGeneratedTools(registry) {
427
442
  name: "gmail_users_settings_forwarding_addresses_get",
428
443
  cud: "read",
429
444
  description: "Gets the specified forwarding address. For more information, see [Manage email forwarding](https://developers.google.com/workspace/gmail/api/guides/forwarding_s",
430
- method: { id: "gmail.users.settings.forwardingAddresses.get", httpMethod: "GET", path: "gmail/v1/users/{userId}/settings/forwardingAddresses/{forwardingEmail}", baseUrl: "https://gmail.googleapis.com/", requiredParams: ["userId", "forwardingEmail"] },
445
+ method: { id: "gmail.users.settings.forwardingAddresses.get", httpMethod: "GET", path: "gmail/v1/users/{userId}/settings/forwardingAddresses/{forwardingEmail}", baseUrl: "https://gmail.googleapis.com/", requiredParams: ["userId", "forwardingEmail"], scopes: S_gmail_v1[8] },
431
446
  params: [{ "field": "forwardingEmail", "api": "forwardingEmail", "location": "path" }, { "field": "userId", "api": "userId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
432
447
  hasBody: false,
433
448
  shape: {
@@ -441,7 +456,7 @@ export function registerGmailGeneratedTools(registry) {
441
456
  name: "gmail_users_settings_forwarding_addresses_list",
442
457
  cud: "read",
443
458
  description: "Lists the forwarding addresses for the specified account. For more information, see [Manage email forwarding](https://developers.google.com/workspace/gmail/api/",
444
- method: { id: "gmail.users.settings.forwardingAddresses.list", httpMethod: "GET", path: "gmail/v1/users/{userId}/settings/forwardingAddresses", baseUrl: "https://gmail.googleapis.com/", requiredParams: ["userId"] },
459
+ method: { id: "gmail.users.settings.forwardingAddresses.list", httpMethod: "GET", path: "gmail/v1/users/{userId}/settings/forwardingAddresses", baseUrl: "https://gmail.googleapis.com/", requiredParams: ["userId"], scopes: S_gmail_v1[8] },
445
460
  params: [{ "field": "userId", "api": "userId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
446
461
  hasBody: false,
447
462
  shape: {
@@ -454,7 +469,7 @@ export function registerGmailGeneratedTools(registry) {
454
469
  name: "gmail_users_settings_get_auto_forwarding",
455
470
  cud: "read",
456
471
  description: "Gets the auto-forwarding setting for the specified account. For more information, see [Manage email forwarding](https://developers.google.com/workspace/gmail/ap",
457
- method: { id: "gmail.users.settings.getAutoForwarding", httpMethod: "GET", path: "gmail/v1/users/{userId}/settings/autoForwarding", baseUrl: "https://gmail.googleapis.com/", requiredParams: ["userId"] },
472
+ method: { id: "gmail.users.settings.getAutoForwarding", httpMethod: "GET", path: "gmail/v1/users/{userId}/settings/autoForwarding", baseUrl: "https://gmail.googleapis.com/", requiredParams: ["userId"], scopes: S_gmail_v1[8] },
458
473
  params: [{ "field": "userId", "api": "userId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
459
474
  hasBody: false,
460
475
  shape: {
@@ -467,7 +482,7 @@ export function registerGmailGeneratedTools(registry) {
467
482
  name: "gmail_users_settings_get_imap",
468
483
  cud: "read",
469
484
  description: "Gets IMAP settings. For more information, see [Configure POP and IMAP settings with the Gmail API](https://developers.google.com/workspace/gmail/api/guides/pop_",
470
- method: { id: "gmail.users.settings.getImap", httpMethod: "GET", path: "gmail/v1/users/{userId}/settings/imap", baseUrl: "https://gmail.googleapis.com/", requiredParams: ["userId"] },
485
+ method: { id: "gmail.users.settings.getImap", httpMethod: "GET", path: "gmail/v1/users/{userId}/settings/imap", baseUrl: "https://gmail.googleapis.com/", requiredParams: ["userId"], scopes: S_gmail_v1[8] },
471
486
  params: [{ "field": "userId", "api": "userId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
472
487
  hasBody: false,
473
488
  shape: {
@@ -480,7 +495,7 @@ export function registerGmailGeneratedTools(registry) {
480
495
  name: "gmail_users_settings_get_language",
481
496
  cud: "read",
482
497
  description: "Gets language settings. For more information, see [Manage language settings](https://developers.google.com/workspace/gmail/api/guides/language-settings).",
483
- method: { id: "gmail.users.settings.getLanguage", httpMethod: "GET", path: "gmail/v1/users/{userId}/settings/language", baseUrl: "https://gmail.googleapis.com/", requiredParams: ["userId"] },
498
+ method: { id: "gmail.users.settings.getLanguage", httpMethod: "GET", path: "gmail/v1/users/{userId}/settings/language", baseUrl: "https://gmail.googleapis.com/", requiredParams: ["userId"], scopes: S_gmail_v1[8] },
484
499
  params: [{ "field": "userId", "api": "userId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
485
500
  hasBody: false,
486
501
  shape: {
@@ -493,7 +508,7 @@ export function registerGmailGeneratedTools(registry) {
493
508
  name: "gmail_users_settings_get_pop",
494
509
  cud: "read",
495
510
  description: "Gets POP settings. For more information, see [Configure POP and IMAP settings with the Gmail API](https://developers.google.com/workspace/gmail/api/guides/pop_i",
496
- method: { id: "gmail.users.settings.getPop", httpMethod: "GET", path: "gmail/v1/users/{userId}/settings/pop", baseUrl: "https://gmail.googleapis.com/", requiredParams: ["userId"] },
511
+ method: { id: "gmail.users.settings.getPop", httpMethod: "GET", path: "gmail/v1/users/{userId}/settings/pop", baseUrl: "https://gmail.googleapis.com/", requiredParams: ["userId"], scopes: S_gmail_v1[8] },
497
512
  params: [{ "field": "userId", "api": "userId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
498
513
  hasBody: false,
499
514
  shape: {
@@ -506,7 +521,7 @@ export function registerGmailGeneratedTools(registry) {
506
521
  name: "gmail_users_settings_send_as_create",
507
522
  cud: "create",
508
523
  description: "Creates a custom \"from\" send-as alias. If an SMTP MSA is specified, Gmail will attempt to connect to the SMTP service to validate the configuration before creat",
509
- method: { id: "gmail.users.settings.sendAs.create", httpMethod: "POST", path: "gmail/v1/users/{userId}/settings/sendAs", baseUrl: "https://gmail.googleapis.com/", requiredParams: ["userId"] },
524
+ method: { id: "gmail.users.settings.sendAs.create", httpMethod: "POST", path: "gmail/v1/users/{userId}/settings/sendAs", baseUrl: "https://gmail.googleapis.com/", requiredParams: ["userId"], scopes: S_gmail_v1[7] },
510
525
  params: [{ "field": "userId", "api": "userId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
511
526
  hasBody: true,
512
527
  shape: {
@@ -520,7 +535,7 @@ export function registerGmailGeneratedTools(registry) {
520
535
  name: "gmail_users_settings_send_as_delete",
521
536
  cud: "delete",
522
537
  description: "Deletes the specified send-as alias. Revokes any verification that may have been required for using it. For more information, see [Manage aliases and signatures",
523
- method: { id: "gmail.users.settings.sendAs.delete", httpMethod: "DELETE", path: "gmail/v1/users/{userId}/settings/sendAs/{sendAsEmail}", baseUrl: "https://gmail.googleapis.com/", requiredParams: ["userId", "sendAsEmail"] },
538
+ method: { id: "gmail.users.settings.sendAs.delete", httpMethod: "DELETE", path: "gmail/v1/users/{userId}/settings/sendAs/{sendAsEmail}", baseUrl: "https://gmail.googleapis.com/", requiredParams: ["userId", "sendAsEmail"], scopes: S_gmail_v1[7] },
524
539
  params: [{ "field": "sendAsEmail", "api": "sendAsEmail", "location": "path" }, { "field": "userId", "api": "userId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
525
540
  hasBody: false,
526
541
  shape: {
@@ -534,7 +549,7 @@ export function registerGmailGeneratedTools(registry) {
534
549
  name: "gmail_users_settings_send_as_get",
535
550
  cud: "read",
536
551
  description: "Gets the specified send-as alias. Fails with an HTTP 404 error if the specified address is not a member of the collection. For more information, see [Manage ali",
537
- method: { id: "gmail.users.settings.sendAs.get", httpMethod: "GET", path: "gmail/v1/users/{userId}/settings/sendAs/{sendAsEmail}", baseUrl: "https://gmail.googleapis.com/", requiredParams: ["userId", "sendAsEmail"] },
552
+ method: { id: "gmail.users.settings.sendAs.get", httpMethod: "GET", path: "gmail/v1/users/{userId}/settings/sendAs/{sendAsEmail}", baseUrl: "https://gmail.googleapis.com/", requiredParams: ["userId", "sendAsEmail"], scopes: S_gmail_v1[8] },
538
553
  params: [{ "field": "sendAsEmail", "api": "sendAsEmail", "location": "path" }, { "field": "userId", "api": "userId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
539
554
  hasBody: false,
540
555
  shape: {
@@ -548,7 +563,7 @@ export function registerGmailGeneratedTools(registry) {
548
563
  name: "gmail_users_settings_send_as_list",
549
564
  cud: "read",
550
565
  description: "Lists the send-as aliases for the specified account. The result includes the primary send-as address associated with the account as well as any custom \"from\" al",
551
- method: { id: "gmail.users.settings.sendAs.list", httpMethod: "GET", path: "gmail/v1/users/{userId}/settings/sendAs", baseUrl: "https://gmail.googleapis.com/", requiredParams: ["userId"] },
566
+ method: { id: "gmail.users.settings.sendAs.list", httpMethod: "GET", path: "gmail/v1/users/{userId}/settings/sendAs", baseUrl: "https://gmail.googleapis.com/", requiredParams: ["userId"], scopes: S_gmail_v1[8] },
552
567
  params: [{ "field": "userId", "api": "userId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
553
568
  hasBody: false,
554
569
  shape: {
@@ -561,7 +576,7 @@ export function registerGmailGeneratedTools(registry) {
561
576
  name: "gmail_users_settings_send_as_patch",
562
577
  cud: "update",
563
578
  description: "Patch the specified send-as alias. For more information, see [Manage aliases and signatures with the Gmail API](https://developers.google.com/workspace/gmail/ap",
564
- method: { id: "gmail.users.settings.sendAs.patch", httpMethod: "PATCH", path: "gmail/v1/users/{userId}/settings/sendAs/{sendAsEmail}", baseUrl: "https://gmail.googleapis.com/", requiredParams: ["userId", "sendAsEmail"] },
579
+ method: { id: "gmail.users.settings.sendAs.patch", httpMethod: "PATCH", path: "gmail/v1/users/{userId}/settings/sendAs/{sendAsEmail}", baseUrl: "https://gmail.googleapis.com/", requiredParams: ["userId", "sendAsEmail"], scopes: S_gmail_v1[5] },
565
580
  params: [{ "field": "sendAsEmail", "api": "sendAsEmail", "location": "path" }, { "field": "userId", "api": "userId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
566
581
  hasBody: true,
567
582
  shape: {
@@ -576,7 +591,7 @@ export function registerGmailGeneratedTools(registry) {
576
591
  name: "gmail_users_settings_send_as_smime_info_delete",
577
592
  cud: "delete",
578
593
  description: "Deletes the specified S/MIME config for the specified send-as alias. For more information, see [Manage S/MIME certificates with the Gmail API](https://developer",
579
- method: { id: "gmail.users.settings.sendAs.smimeInfo.delete", httpMethod: "DELETE", path: "gmail/v1/users/{userId}/settings/sendAs/{sendAsEmail}/smimeInfo/{id}", baseUrl: "https://gmail.googleapis.com/", requiredParams: ["userId", "sendAsEmail", "id"] },
594
+ method: { id: "gmail.users.settings.sendAs.smimeInfo.delete", httpMethod: "DELETE", path: "gmail/v1/users/{userId}/settings/sendAs/{sendAsEmail}/smimeInfo/{id}", baseUrl: "https://gmail.googleapis.com/", requiredParams: ["userId", "sendAsEmail", "id"], scopes: S_gmail_v1[5] },
580
595
  params: [{ "field": "id", "api": "id", "location": "path" }, { "field": "sendAsEmail", "api": "sendAsEmail", "location": "path" }, { "field": "userId", "api": "userId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
581
596
  hasBody: false,
582
597
  shape: {
@@ -591,7 +606,7 @@ export function registerGmailGeneratedTools(registry) {
591
606
  name: "gmail_users_settings_send_as_smime_info_get",
592
607
  cud: "read",
593
608
  description: "Gets the specified S/MIME config for the specified send-as alias. For more information, see [Manage S/MIME certificates with the Gmail API](https://developers.g",
594
- method: { id: "gmail.users.settings.sendAs.smimeInfo.get", httpMethod: "GET", path: "gmail/v1/users/{userId}/settings/sendAs/{sendAsEmail}/smimeInfo/{id}", baseUrl: "https://gmail.googleapis.com/", requiredParams: ["userId", "sendAsEmail", "id"] },
609
+ method: { id: "gmail.users.settings.sendAs.smimeInfo.get", httpMethod: "GET", path: "gmail/v1/users/{userId}/settings/sendAs/{sendAsEmail}/smimeInfo/{id}", baseUrl: "https://gmail.googleapis.com/", requiredParams: ["userId", "sendAsEmail", "id"], scopes: S_gmail_v1[6] },
595
610
  params: [{ "field": "id", "api": "id", "location": "path" }, { "field": "sendAsEmail", "api": "sendAsEmail", "location": "path" }, { "field": "userId", "api": "userId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
596
611
  hasBody: false,
597
612
  shape: {
@@ -606,7 +621,7 @@ export function registerGmailGeneratedTools(registry) {
606
621
  name: "gmail_users_settings_send_as_smime_info_insert",
607
622
  cud: "create",
608
623
  description: "Insert (upload) the given S/MIME config for the specified send-as alias. Note that `pkcs12` format is required for the key. For more information, see [Manage S/",
609
- method: { id: "gmail.users.settings.sendAs.smimeInfo.insert", httpMethod: "POST", path: "gmail/v1/users/{userId}/settings/sendAs/{sendAsEmail}/smimeInfo", baseUrl: "https://gmail.googleapis.com/", requiredParams: ["userId", "sendAsEmail"] },
624
+ method: { id: "gmail.users.settings.sendAs.smimeInfo.insert", httpMethod: "POST", path: "gmail/v1/users/{userId}/settings/sendAs/{sendAsEmail}/smimeInfo", baseUrl: "https://gmail.googleapis.com/", requiredParams: ["userId", "sendAsEmail"], scopes: S_gmail_v1[5] },
610
625
  params: [{ "field": "sendAsEmail", "api": "sendAsEmail", "location": "path" }, { "field": "userId", "api": "userId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
611
626
  hasBody: true,
612
627
  shape: {
@@ -621,7 +636,7 @@ export function registerGmailGeneratedTools(registry) {
621
636
  name: "gmail_users_settings_send_as_smime_info_list",
622
637
  cud: "read",
623
638
  description: "Lists S/MIME configs for the specified send-as alias. For more information, see [Manage S/MIME certificates with the Gmail API](https://developers.google.com/wo",
624
- method: { id: "gmail.users.settings.sendAs.smimeInfo.list", httpMethod: "GET", path: "gmail/v1/users/{userId}/settings/sendAs/{sendAsEmail}/smimeInfo", baseUrl: "https://gmail.googleapis.com/", requiredParams: ["userId", "sendAsEmail"] },
639
+ method: { id: "gmail.users.settings.sendAs.smimeInfo.list", httpMethod: "GET", path: "gmail/v1/users/{userId}/settings/sendAs/{sendAsEmail}/smimeInfo", baseUrl: "https://gmail.googleapis.com/", requiredParams: ["userId", "sendAsEmail"], scopes: S_gmail_v1[6] },
625
640
  params: [{ "field": "sendAsEmail", "api": "sendAsEmail", "location": "path" }, { "field": "userId", "api": "userId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
626
641
  hasBody: false,
627
642
  shape: {
@@ -635,7 +650,7 @@ export function registerGmailGeneratedTools(registry) {
635
650
  name: "gmail_users_settings_send_as_smime_info_set_default",
636
651
  cud: "update",
637
652
  description: "Sets the default S/MIME config for the specified send-as alias. For more information, see [Manage S/MIME certificates with the Gmail API](https://developers.goo",
638
- method: { id: "gmail.users.settings.sendAs.smimeInfo.setDefault", httpMethod: "POST", path: "gmail/v1/users/{userId}/settings/sendAs/{sendAsEmail}/smimeInfo/{id}/setDefault", baseUrl: "https://gmail.googleapis.com/", requiredParams: ["userId", "sendAsEmail", "id"] },
653
+ method: { id: "gmail.users.settings.sendAs.smimeInfo.setDefault", httpMethod: "POST", path: "gmail/v1/users/{userId}/settings/sendAs/{sendAsEmail}/smimeInfo/{id}/setDefault", baseUrl: "https://gmail.googleapis.com/", requiredParams: ["userId", "sendAsEmail", "id"], scopes: S_gmail_v1[5] },
639
654
  params: [{ "field": "id", "api": "id", "location": "path" }, { "field": "sendAsEmail", "api": "sendAsEmail", "location": "path" }, { "field": "userId", "api": "userId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
640
655
  hasBody: false,
641
656
  shape: {
@@ -650,7 +665,7 @@ export function registerGmailGeneratedTools(registry) {
650
665
  name: "gmail_users_settings_send_as_update",
651
666
  cud: "update",
652
667
  description: "Updates a send-as alias. If a signature is provided, Gmail will sanitize the HTML before saving it with the alias. For more information, see [Manage aliases and",
653
- method: { id: "gmail.users.settings.sendAs.update", httpMethod: "PUT", path: "gmail/v1/users/{userId}/settings/sendAs/{sendAsEmail}", baseUrl: "https://gmail.googleapis.com/", requiredParams: ["userId", "sendAsEmail"] },
668
+ method: { id: "gmail.users.settings.sendAs.update", httpMethod: "PUT", path: "gmail/v1/users/{userId}/settings/sendAs/{sendAsEmail}", baseUrl: "https://gmail.googleapis.com/", requiredParams: ["userId", "sendAsEmail"], scopes: S_gmail_v1[5] },
654
669
  params: [{ "field": "sendAsEmail", "api": "sendAsEmail", "location": "path" }, { "field": "userId", "api": "userId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
655
670
  hasBody: true,
656
671
  shape: {
@@ -665,7 +680,7 @@ export function registerGmailGeneratedTools(registry) {
665
680
  name: "gmail_users_settings_send_as_verify",
666
681
  cud: "create",
667
682
  description: "Sends a verification email to the specified send-as alias address. The verification status must be `pending`. For more information, see [Manage aliases and sign",
668
- method: { id: "gmail.users.settings.sendAs.verify", httpMethod: "POST", path: "gmail/v1/users/{userId}/settings/sendAs/{sendAsEmail}/verify", baseUrl: "https://gmail.googleapis.com/", requiredParams: ["userId", "sendAsEmail"] },
683
+ method: { id: "gmail.users.settings.sendAs.verify", httpMethod: "POST", path: "gmail/v1/users/{userId}/settings/sendAs/{sendAsEmail}/verify", baseUrl: "https://gmail.googleapis.com/", requiredParams: ["userId", "sendAsEmail"], scopes: S_gmail_v1[7] },
669
684
  params: [{ "field": "sendAsEmail", "api": "sendAsEmail", "location": "path" }, { "field": "userId", "api": "userId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
670
685
  hasBody: false,
671
686
  shape: {
@@ -679,7 +694,7 @@ export function registerGmailGeneratedTools(registry) {
679
694
  name: "gmail_users_settings_update_auto_forwarding",
680
695
  cud: "update",
681
696
  description: "Updates the auto-forwarding setting for the specified account. A verified forwarding address must be specified when auto-forwarding is enabled. For more informa",
682
- method: { id: "gmail.users.settings.updateAutoForwarding", httpMethod: "PUT", path: "gmail/v1/users/{userId}/settings/autoForwarding", baseUrl: "https://gmail.googleapis.com/", requiredParams: ["userId"] },
697
+ method: { id: "gmail.users.settings.updateAutoForwarding", httpMethod: "PUT", path: "gmail/v1/users/{userId}/settings/autoForwarding", baseUrl: "https://gmail.googleapis.com/", requiredParams: ["userId"], scopes: S_gmail_v1[7] },
683
698
  params: [{ "field": "userId", "api": "userId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
684
699
  hasBody: true,
685
700
  shape: {
@@ -693,7 +708,7 @@ export function registerGmailGeneratedTools(registry) {
693
708
  name: "gmail_users_settings_update_imap",
694
709
  cud: "update",
695
710
  description: "Updates IMAP settings. For more information, see [Configure POP and IMAP settings with the Gmail API](https://developers.google.com/workspace/gmail/api/guides/p",
696
- method: { id: "gmail.users.settings.updateImap", httpMethod: "PUT", path: "gmail/v1/users/{userId}/settings/imap", baseUrl: "https://gmail.googleapis.com/", requiredParams: ["userId"] },
711
+ method: { id: "gmail.users.settings.updateImap", httpMethod: "PUT", path: "gmail/v1/users/{userId}/settings/imap", baseUrl: "https://gmail.googleapis.com/", requiredParams: ["userId"], scopes: S_gmail_v1[9] },
697
712
  params: [{ "field": "userId", "api": "userId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
698
713
  hasBody: true,
699
714
  shape: {
@@ -707,7 +722,7 @@ export function registerGmailGeneratedTools(registry) {
707
722
  name: "gmail_users_settings_update_language",
708
723
  cud: "update",
709
724
  description: "Updates language settings. For more information, see [Manage language settings](https://developers.google.com/workspace/gmail/api/guides/language-settings). If",
710
- method: { id: "gmail.users.settings.updateLanguage", httpMethod: "PUT", path: "gmail/v1/users/{userId}/settings/language", baseUrl: "https://gmail.googleapis.com/", requiredParams: ["userId"] },
725
+ method: { id: "gmail.users.settings.updateLanguage", httpMethod: "PUT", path: "gmail/v1/users/{userId}/settings/language", baseUrl: "https://gmail.googleapis.com/", requiredParams: ["userId"], scopes: S_gmail_v1[9] },
711
726
  params: [{ "field": "userId", "api": "userId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
712
727
  hasBody: true,
713
728
  shape: {
@@ -721,7 +736,7 @@ export function registerGmailGeneratedTools(registry) {
721
736
  name: "gmail_users_settings_update_pop",
722
737
  cud: "update",
723
738
  description: "Updates POP settings. For more information, see [Configure POP and IMAP settings with the Gmail API](https://developers.google.com/workspace/gmail/api/guides/po",
724
- method: { id: "gmail.users.settings.updatePop", httpMethod: "PUT", path: "gmail/v1/users/{userId}/settings/pop", baseUrl: "https://gmail.googleapis.com/", requiredParams: ["userId"] },
739
+ method: { id: "gmail.users.settings.updatePop", httpMethod: "PUT", path: "gmail/v1/users/{userId}/settings/pop", baseUrl: "https://gmail.googleapis.com/", requiredParams: ["userId"], scopes: S_gmail_v1[9] },
725
740
  params: [{ "field": "userId", "api": "userId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
726
741
  hasBody: true,
727
742
  shape: {
@@ -735,7 +750,7 @@ export function registerGmailGeneratedTools(registry) {
735
750
  name: "gmail_users_stop",
736
751
  cud: "create",
737
752
  description: "Turn off push notification delivery for the given user mailbox. For more information, see [Configure push notifications in Gmail API](https://developers.google.",
738
- method: { id: "gmail.users.stop", httpMethod: "POST", path: "gmail/v1/users/{userId}/stop", baseUrl: "https://gmail.googleapis.com/", requiredParams: ["userId"] },
753
+ method: { id: "gmail.users.stop", httpMethod: "POST", path: "gmail/v1/users/{userId}/stop", baseUrl: "https://gmail.googleapis.com/", requiredParams: ["userId"], scopes: S_gmail_v1[10] },
739
754
  params: [{ "field": "userId", "api": "userId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
740
755
  hasBody: false,
741
756
  shape: {
@@ -748,7 +763,7 @@ export function registerGmailGeneratedTools(registry) {
748
763
  name: "gmail_users_threads_delete",
749
764
  cud: "delete",
750
765
  description: "Immediately and permanently deletes the specified thread. Any messages that belong to the thread are also deleted. This operation cannot be undone. Prefer `thre",
751
- method: { id: "gmail.users.threads.delete", httpMethod: "DELETE", path: "gmail/v1/users/{userId}/threads/{id}", baseUrl: "https://gmail.googleapis.com/", requiredParams: ["userId", "id"] },
766
+ method: { id: "gmail.users.threads.delete", httpMethod: "DELETE", path: "gmail/v1/users/{userId}/threads/{id}", baseUrl: "https://gmail.googleapis.com/", requiredParams: ["userId", "id"], scopes: S_gmail_v1[11] },
752
767
  params: [{ "field": "id", "api": "id", "location": "path" }, { "field": "userId", "api": "userId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
753
768
  hasBody: false,
754
769
  shape: {
@@ -762,7 +777,7 @@ export function registerGmailGeneratedTools(registry) {
762
777
  name: "gmail_users_threads_list",
763
778
  cud: "read",
764
779
  description: "Lists the threads in the user's mailbox. For more information, see [Manage threads](https://developers.google.com/workspace/gmail/api/guides/threads).",
765
- method: { id: "gmail.users.threads.list", httpMethod: "GET", path: "gmail/v1/users/{userId}/threads", baseUrl: "https://gmail.googleapis.com/", requiredParams: ["userId"] },
780
+ method: { id: "gmail.users.threads.list", httpMethod: "GET", path: "gmail/v1/users/{userId}/threads", baseUrl: "https://gmail.googleapis.com/", requiredParams: ["userId"], scopes: S_gmail_v1[10] },
766
781
  params: [{ "field": "userId", "api": "userId", "location": "path" }, { "field": "includeSpamTrash", "api": "includeSpamTrash", "location": "query" }, { "field": "labelIds", "api": "labelIds", "location": "query" }, { "field": "maxResults", "api": "maxResults", "location": "query" }, { "field": "pageToken", "api": "pageToken", "location": "query" }, { "field": "q", "api": "q", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
767
782
  hasBody: false,
768
783
  shape: {
@@ -780,7 +795,7 @@ export function registerGmailGeneratedTools(registry) {
780
795
  name: "gmail_users_threads_modify",
781
796
  cud: "update",
782
797
  description: "Modifies the labels applied to the thread. This applies to all messages in the thread. For more information, see [Manage threads](https://developers.google.com/",
783
- method: { id: "gmail.users.threads.modify", httpMethod: "POST", path: "gmail/v1/users/{userId}/threads/{id}/modify", baseUrl: "https://gmail.googleapis.com/", requiredParams: ["userId", "id"] },
798
+ method: { id: "gmail.users.threads.modify", httpMethod: "POST", path: "gmail/v1/users/{userId}/threads/{id}/modify", baseUrl: "https://gmail.googleapis.com/", requiredParams: ["userId", "id"], scopes: S_gmail_v1[4] },
784
799
  params: [{ "field": "id", "api": "id", "location": "path" }, { "field": "userId", "api": "userId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
785
800
  hasBody: true,
786
801
  shape: {
@@ -795,7 +810,7 @@ export function registerGmailGeneratedTools(registry) {
795
810
  name: "gmail_users_threads_trash",
796
811
  cud: "delete",
797
812
  description: "Moves the specified thread to the trash. Any messages that belong to the thread are also moved to the trash. For more information, see [Manage threads](https://",
798
- method: { id: "gmail.users.threads.trash", httpMethod: "POST", path: "gmail/v1/users/{userId}/threads/{id}/trash", baseUrl: "https://gmail.googleapis.com/", requiredParams: ["userId", "id"] },
813
+ method: { id: "gmail.users.threads.trash", httpMethod: "POST", path: "gmail/v1/users/{userId}/threads/{id}/trash", baseUrl: "https://gmail.googleapis.com/", requiredParams: ["userId", "id"], scopes: S_gmail_v1[4] },
799
814
  params: [{ "field": "id", "api": "id", "location": "path" }, { "field": "userId", "api": "userId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
800
815
  hasBody: false,
801
816
  shape: {
@@ -809,7 +824,7 @@ export function registerGmailGeneratedTools(registry) {
809
824
  name: "gmail_users_threads_untrash",
810
825
  cud: "update",
811
826
  description: "Removes the specified thread from the trash. Any messages that belong to the thread are also removed from the trash. For more information, see [Manage threads](",
812
- method: { id: "gmail.users.threads.untrash", httpMethod: "POST", path: "gmail/v1/users/{userId}/threads/{id}/untrash", baseUrl: "https://gmail.googleapis.com/", requiredParams: ["userId", "id"] },
827
+ method: { id: "gmail.users.threads.untrash", httpMethod: "POST", path: "gmail/v1/users/{userId}/threads/{id}/untrash", baseUrl: "https://gmail.googleapis.com/", requiredParams: ["userId", "id"], scopes: S_gmail_v1[4] },
813
828
  params: [{ "field": "id", "api": "id", "location": "path" }, { "field": "userId", "api": "userId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
814
829
  hasBody: false,
815
830
  shape: {
@@ -823,7 +838,7 @@ export function registerGmailGeneratedTools(registry) {
823
838
  name: "gmail_users_watch",
824
839
  cud: "create",
825
840
  description: "Set up or update a push notification watch on the given user mailbox. For more information, see [Configure push notifications in Gmail API](https://developers.g",
826
- method: { id: "gmail.users.watch", httpMethod: "POST", path: "gmail/v1/users/{userId}/watch", baseUrl: "https://gmail.googleapis.com/", requiredParams: ["userId"] },
841
+ method: { id: "gmail.users.watch", httpMethod: "POST", path: "gmail/v1/users/{userId}/watch", baseUrl: "https://gmail.googleapis.com/", requiredParams: ["userId"], scopes: S_gmail_v1[10] },
827
842
  params: [{ "field": "userId", "api": "userId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
828
843
  hasBody: true,
829
844
  shape: {