mcp-google-multi 5.2.0-alpha.1 → 5.2.0-alpha.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/auth.js +33 -0
- package/dist/discovery-client.js +13 -0
- package/dist/executor.d.ts +39 -0
- package/dist/executor.js +75 -0
- package/dist/index.js +42 -3
- package/dist/registry.js +3 -2
- package/dist/tools/generated/_shared.d.ts +21 -0
- package/dist/tools/generated/_shared.js +35 -0
- package/dist/tools/generated/admin.d.ts +2 -0
- package/dist/tools/generated/admin.js +1937 -0
- package/dist/tools/generated/appsmarket.d.ts +2 -0
- package/dist/tools/generated/appsmarket.js +33 -0
- package/dist/tools/generated/calendar.d.ts +2 -0
- package/dist/tools/generated/calendar.js +428 -0
- package/dist/tools/generated/chat.d.ts +2 -0
- package/dist/tools/generated/chat.js +666 -0
- package/dist/tools/generated/classroom.d.ts +2 -0
- package/dist/tools/generated/classroom.js +1610 -0
- package/dist/tools/generated/cloudidentity.d.ts +2 -0
- package/dist/tools/generated/cloudidentity.js +955 -0
- package/dist/tools/generated/cloudsearch.d.ts +2 -0
- package/dist/tools/generated/cloudsearch.js +754 -0
- package/dist/tools/generated/contacts.d.ts +2 -0
- package/dist/tools/generated/contacts.js +215 -0
- package/dist/tools/generated/drive.d.ts +2 -0
- package/dist/tools/generated/drive.js +543 -0
- package/dist/tools/generated/driveactivity.d.ts +2 -0
- package/dist/tools/generated/driveactivity.js +19 -0
- package/dist/tools/generated/drivelabels.d.ts +2 -0
- package/dist/tools/generated/drivelabels.js +389 -0
- package/dist/tools/generated/forms.d.ts +2 -0
- package/dist/tools/generated/forms.js +49 -0
- package/dist/tools/generated/gmail.d.ts +2 -0
- package/dist/tools/generated/gmail.js +835 -0
- package/dist/tools/generated/groupsmigration.d.ts +2 -0
- package/dist/tools/generated/groupsmigration.js +18 -0
- package/dist/tools/generated/groupssettings.d.ts +2 -0
- package/dist/tools/generated/groupssettings.js +47 -0
- package/dist/tools/generated/index.d.ts +5 -0
- package/dist/tools/generated/index.js +54 -0
- package/dist/tools/generated/keep.d.ts +2 -0
- package/dist/tools/generated/keep.js +102 -0
- package/dist/tools/generated/licensing.d.ts +2 -0
- package/dist/tools/generated/licensing.js +116 -0
- package/dist/tools/generated/meet.d.ts +2 -0
- package/dist/tools/generated/meet.js +186 -0
- package/dist/tools/generated/postmaster.d.ts +2 -0
- package/dist/tools/generated/postmaster.js +66 -0
- package/dist/tools/generated/reseller.d.ts +2 -0
- package/dist/tools/generated/reseller.js +249 -0
- package/dist/tools/generated/script.d.ts +2 -0
- package/dist/tools/generated/script.js +249 -0
- package/dist/tools/generated/searchconsole.d.ts +2 -0
- package/dist/tools/generated/searchconsole.js +19 -0
- package/dist/tools/generated/sheets.d.ts +2 -0
- package/dist/tools/generated/sheets.js +105 -0
- package/dist/tools/generated/tasks.d.ts +2 -0
- package/dist/tools/generated/tasks.js +35 -0
- package/dist/tools/generated/vault.d.ts +2 -0
- package/dist/tools/generated/vault.js +479 -0
- package/dist/tools/generated/workspaceevents.d.ts +2 -0
- package/dist/tools/generated/workspaceevents.js +223 -0
- package/dist/tools/google-api.js +9 -71
- package/package.json +3 -2
|
@@ -0,0 +1,835 @@
|
|
|
1
|
+
// GENERATED by scripts/gen-tools.ts — do not edit. Regenerate: npm run gen:tools
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
import { coerceArray, coerceBoolean, coerceJson } from '../_coerce.js';
|
|
4
|
+
import { accountField, registerGeneratedTool } from './_shared.js';
|
|
5
|
+
export function registerGmailGeneratedTools(registry) {
|
|
6
|
+
registerGeneratedTool(registry, {
|
|
7
|
+
name: "gmail_users_drafts_delete",
|
|
8
|
+
cud: "delete",
|
|
9
|
+
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"] },
|
|
11
|
+
params: [{ "field": "id", "api": "id", "location": "path" }, { "field": "userId", "api": "userId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
12
|
+
hasBody: false,
|
|
13
|
+
shape: {
|
|
14
|
+
account: accountField(),
|
|
15
|
+
id: z.string().describe("The ID of the draft to delete."),
|
|
16
|
+
userId: z.string().describe("The user's email address. The special value `me` can be used to indicate the authenticated user."),
|
|
17
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
18
|
+
},
|
|
19
|
+
});
|
|
20
|
+
registerGeneratedTool(registry, {
|
|
21
|
+
name: "gmail_users_drafts_update",
|
|
22
|
+
cud: "update",
|
|
23
|
+
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"] },
|
|
25
|
+
params: [{ "field": "id", "api": "id", "location": "path" }, { "field": "userId", "api": "userId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
26
|
+
hasBody: true,
|
|
27
|
+
shape: {
|
|
28
|
+
account: accountField(),
|
|
29
|
+
id: z.string().describe("The ID of the draft to update."),
|
|
30
|
+
userId: z.string().describe("The user's email address. The special value `me` can be used to indicate the authenticated user."),
|
|
31
|
+
body: coerceJson(z.record(z.string(), z.unknown())).describe("Draft JSON request body. Top-level fields: id, message."),
|
|
32
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
33
|
+
},
|
|
34
|
+
});
|
|
35
|
+
registerGeneratedTool(registry, {
|
|
36
|
+
name: "gmail_users_labels_get",
|
|
37
|
+
cud: "read",
|
|
38
|
+
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"] },
|
|
40
|
+
params: [{ "field": "id", "api": "id", "location": "path" }, { "field": "userId", "api": "userId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
41
|
+
hasBody: false,
|
|
42
|
+
shape: {
|
|
43
|
+
account: accountField(),
|
|
44
|
+
id: z.string().describe("The ID of the label to retrieve."),
|
|
45
|
+
userId: z.string().describe("The user's email address. The special value `me` can be used to indicate the authenticated user."),
|
|
46
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
47
|
+
},
|
|
48
|
+
});
|
|
49
|
+
registerGeneratedTool(registry, {
|
|
50
|
+
name: "gmail_users_labels_patch",
|
|
51
|
+
cud: "update",
|
|
52
|
+
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"] },
|
|
54
|
+
params: [{ "field": "id", "api": "id", "location": "path" }, { "field": "userId", "api": "userId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
55
|
+
hasBody: true,
|
|
56
|
+
shape: {
|
|
57
|
+
account: accountField(),
|
|
58
|
+
id: z.string().describe("The ID of the label to update."),
|
|
59
|
+
userId: z.string().describe("The user's email address. The special value `me` can be used to indicate the authenticated user."),
|
|
60
|
+
body: coerceJson(z.record(z.string(), z.unknown())).describe("Label JSON request body. Top-level fields: color, id, labelListVisibility, messageListVisibility, messagesTotal, messagesUnread, name, threadsTotal, threadsUnread, type."),
|
|
61
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
62
|
+
},
|
|
63
|
+
});
|
|
64
|
+
registerGeneratedTool(registry, {
|
|
65
|
+
name: "gmail_users_labels_update",
|
|
66
|
+
cud: "update",
|
|
67
|
+
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"] },
|
|
69
|
+
params: [{ "field": "id", "api": "id", "location": "path" }, { "field": "userId", "api": "userId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
70
|
+
hasBody: true,
|
|
71
|
+
shape: {
|
|
72
|
+
account: accountField(),
|
|
73
|
+
id: z.string().describe("The ID of the label to update."),
|
|
74
|
+
userId: z.string().describe("The user's email address. The special value `me` can be used to indicate the authenticated user."),
|
|
75
|
+
body: coerceJson(z.record(z.string(), z.unknown())).describe("Label JSON request body. Top-level fields: color, id, labelListVisibility, messageListVisibility, messagesTotal, messagesUnread, name, threadsTotal, threadsUnread, type."),
|
|
76
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
77
|
+
},
|
|
78
|
+
});
|
|
79
|
+
registerGeneratedTool(registry, {
|
|
80
|
+
name: "gmail_users_messages_import",
|
|
81
|
+
cud: "create",
|
|
82
|
+
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"] },
|
|
84
|
+
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
|
+
hasBody: true,
|
|
86
|
+
shape: {
|
|
87
|
+
account: accountField(),
|
|
88
|
+
userId: z.string().describe("The user's email address. The special value `me` can be used to indicate the authenticated user."),
|
|
89
|
+
deleted: coerceBoolean.describe("Mark the email as permanently deleted (not TRASH) and only visible in Google Vault to a Vault administrator. Only used for Google Workspace accounts.").optional(),
|
|
90
|
+
internalDateSource: z.enum(["receivedTime", "dateHeader"]).describe("Source for Gmail's internal date of the message.").optional(),
|
|
91
|
+
neverMarkSpam: coerceBoolean.describe("Ignore the Gmail spam classifier decision and never mark this email as SPAM in the mailbox.").optional(),
|
|
92
|
+
processForCalendar: coerceBoolean.describe("Process calendar invites in the email and add any extracted meetings to the Google Calendar for this user.").optional(),
|
|
93
|
+
body: coerceJson(z.record(z.string(), z.unknown())).describe("Message JSON request body. Top-level fields: classificationLabelValues, historyId, id, internalDate, labelIds, payload, raw, sizeEstimate, snippet, threadId."),
|
|
94
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
95
|
+
},
|
|
96
|
+
});
|
|
97
|
+
registerGeneratedTool(registry, {
|
|
98
|
+
name: "gmail_users_messages_insert",
|
|
99
|
+
cud: "create",
|
|
100
|
+
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"] },
|
|
102
|
+
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
|
+
hasBody: true,
|
|
104
|
+
shape: {
|
|
105
|
+
account: accountField(),
|
|
106
|
+
userId: z.string().describe("The user's email address. The special value `me` can be used to indicate the authenticated user."),
|
|
107
|
+
deleted: coerceBoolean.describe("Mark the email as permanently deleted (not TRASH) and only visible in Google Vault to a Vault administrator. Only used for Google Workspace accounts.").optional(),
|
|
108
|
+
internalDateSource: z.enum(["receivedTime", "dateHeader"]).describe("Source for Gmail's internal date of the message.").optional(),
|
|
109
|
+
body: coerceJson(z.record(z.string(), z.unknown())).describe("Message JSON request body. Top-level fields: classificationLabelValues, historyId, id, internalDate, labelIds, payload, raw, sizeEstimate, snippet, threadId."),
|
|
110
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
111
|
+
},
|
|
112
|
+
});
|
|
113
|
+
registerGeneratedTool(registry, {
|
|
114
|
+
name: "gmail_users_messages_untrash",
|
|
115
|
+
cud: "update",
|
|
116
|
+
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"] },
|
|
118
|
+
params: [{ "field": "id", "api": "id", "location": "path" }, { "field": "userId", "api": "userId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
119
|
+
hasBody: false,
|
|
120
|
+
shape: {
|
|
121
|
+
account: accountField(),
|
|
122
|
+
id: z.string().describe("The ID of the message to remove from Trash."),
|
|
123
|
+
userId: z.string().describe("The user's email address. The special value `me` can be used to indicate the authenticated user."),
|
|
124
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
125
|
+
},
|
|
126
|
+
});
|
|
127
|
+
registerGeneratedTool(registry, {
|
|
128
|
+
name: "gmail_users_settings_cse_identities_create",
|
|
129
|
+
cud: "create",
|
|
130
|
+
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"] },
|
|
132
|
+
params: [{ "field": "userId", "api": "userId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
133
|
+
hasBody: true,
|
|
134
|
+
shape: {
|
|
135
|
+
account: accountField(),
|
|
136
|
+
userId: z.string().describe("The requester's primary email address. To indicate the authenticated user, you can use the special value `me`."),
|
|
137
|
+
body: coerceJson(z.record(z.string(), z.unknown())).describe("CseIdentity JSON request body. Top-level fields: emailAddress, primaryKeyPairId, signAndEncryptKeyPairs."),
|
|
138
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
139
|
+
},
|
|
140
|
+
});
|
|
141
|
+
registerGeneratedTool(registry, {
|
|
142
|
+
name: "gmail_users_settings_cse_identities_delete",
|
|
143
|
+
cud: "delete",
|
|
144
|
+
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"] },
|
|
146
|
+
params: [{ "field": "cseEmailAddress", "api": "cseEmailAddress", "location": "path" }, { "field": "userId", "api": "userId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
147
|
+
hasBody: false,
|
|
148
|
+
shape: {
|
|
149
|
+
account: accountField(),
|
|
150
|
+
cseEmailAddress: z.string().describe("The primary email address associated with the client-side encryption identity configuration that's removed."),
|
|
151
|
+
userId: z.string().describe("The requester's primary email address. To indicate the authenticated user, you can use the special value `me`."),
|
|
152
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
153
|
+
},
|
|
154
|
+
});
|
|
155
|
+
registerGeneratedTool(registry, {
|
|
156
|
+
name: "gmail_users_settings_cse_identities_get",
|
|
157
|
+
cud: "read",
|
|
158
|
+
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"] },
|
|
160
|
+
params: [{ "field": "cseEmailAddress", "api": "cseEmailAddress", "location": "path" }, { "field": "userId", "api": "userId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
161
|
+
hasBody: false,
|
|
162
|
+
shape: {
|
|
163
|
+
account: accountField(),
|
|
164
|
+
cseEmailAddress: z.string().describe("The primary email address associated with the client-side encryption identity configuration that's retrieved."),
|
|
165
|
+
userId: z.string().describe("The requester's primary email address. To indicate the authenticated user, you can use the special value `me`."),
|
|
166
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
167
|
+
},
|
|
168
|
+
});
|
|
169
|
+
registerGeneratedTool(registry, {
|
|
170
|
+
name: "gmail_users_settings_cse_identities_list",
|
|
171
|
+
cud: "read",
|
|
172
|
+
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"] },
|
|
174
|
+
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
|
+
hasBody: false,
|
|
176
|
+
shape: {
|
|
177
|
+
account: accountField(),
|
|
178
|
+
userId: z.string().describe("The requester's primary email address. To indicate the authenticated user, you can use the special value `me`."),
|
|
179
|
+
pageSize: z.number().describe("The number of identities to return. If not provided, the page size will default to 20 entries.").optional(),
|
|
180
|
+
pageToken: z.string().describe("Pagination token indicating which page of identities to return. If the token is not supplied, then the API will return the first page of results.").optional(),
|
|
181
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
182
|
+
},
|
|
183
|
+
});
|
|
184
|
+
registerGeneratedTool(registry, {
|
|
185
|
+
name: "gmail_users_settings_cse_identities_patch",
|
|
186
|
+
cud: "update",
|
|
187
|
+
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: ["emailAddress", "userId"] },
|
|
189
|
+
params: [{ "field": "emailAddress", "api": "emailAddress", "location": "path" }, { "field": "userId", "api": "userId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
190
|
+
hasBody: true,
|
|
191
|
+
shape: {
|
|
192
|
+
account: accountField(),
|
|
193
|
+
emailAddress: z.string().describe("The email address of the client-side encryption identity to update."),
|
|
194
|
+
userId: z.string().describe("The requester's primary email address. To indicate the authenticated user, you can use the special value `me`."),
|
|
195
|
+
body: coerceJson(z.record(z.string(), z.unknown())).describe("CseIdentity JSON request body. Top-level fields: emailAddress, primaryKeyPairId, signAndEncryptKeyPairs."),
|
|
196
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
197
|
+
},
|
|
198
|
+
});
|
|
199
|
+
registerGeneratedTool(registry, {
|
|
200
|
+
name: "gmail_users_settings_cse_keypairs_create",
|
|
201
|
+
cud: "create",
|
|
202
|
+
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"] },
|
|
204
|
+
params: [{ "field": "userId", "api": "userId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
205
|
+
hasBody: true,
|
|
206
|
+
shape: {
|
|
207
|
+
account: accountField(),
|
|
208
|
+
userId: z.string().describe("The requester's primary email address. To indicate the authenticated user, you can use the special value `me`."),
|
|
209
|
+
body: coerceJson(z.record(z.string(), z.unknown())).describe("CseKeyPair JSON request body. Top-level fields: disableTime, enablementState, keyPairId, pem, pkcs7, privateKeyMetadata, subjectEmailAddresses."),
|
|
210
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
211
|
+
},
|
|
212
|
+
});
|
|
213
|
+
registerGeneratedTool(registry, {
|
|
214
|
+
name: "gmail_users_settings_cse_keypairs_disable",
|
|
215
|
+
cud: "create",
|
|
216
|
+
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",
|
|
217
|
+
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: ["keyPairId", "userId"] },
|
|
218
|
+
params: [{ "field": "keyPairId", "api": "keyPairId", "location": "path" }, { "field": "userId", "api": "userId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
219
|
+
hasBody: true,
|
|
220
|
+
shape: {
|
|
221
|
+
account: accountField(),
|
|
222
|
+
keyPairId: z.string().describe("The identifier of the key pair to turn off."),
|
|
223
|
+
userId: z.string().describe("The requester's primary email address. To indicate the authenticated user, you can use the special value `me`."),
|
|
224
|
+
body: coerceJson(z.record(z.string(), z.unknown())).describe("DisableCseKeyPairRequest JSON request body."),
|
|
225
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
226
|
+
},
|
|
227
|
+
});
|
|
228
|
+
registerGeneratedTool(registry, {
|
|
229
|
+
name: "gmail_users_settings_cse_keypairs_enable",
|
|
230
|
+
cud: "create",
|
|
231
|
+
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",
|
|
232
|
+
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"] },
|
|
233
|
+
params: [{ "field": "keyPairId", "api": "keyPairId", "location": "path" }, { "field": "userId", "api": "userId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
234
|
+
hasBody: true,
|
|
235
|
+
shape: {
|
|
236
|
+
account: accountField(),
|
|
237
|
+
keyPairId: z.string().describe("The identifier of the key pair to turn on."),
|
|
238
|
+
userId: z.string().describe("The requester's primary email address. To indicate the authenticated user, you can use the special value `me`."),
|
|
239
|
+
body: coerceJson(z.record(z.string(), z.unknown())).describe("EnableCseKeyPairRequest JSON request body."),
|
|
240
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
241
|
+
},
|
|
242
|
+
});
|
|
243
|
+
registerGeneratedTool(registry, {
|
|
244
|
+
name: "gmail_users_settings_cse_keypairs_get",
|
|
245
|
+
cud: "read",
|
|
246
|
+
description: "Retrieves an existing client-side encryption key pair. For administrators managing identities and keypairs for users in their organization, requests require aut",
|
|
247
|
+
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: ["keyPairId", "userId"] },
|
|
248
|
+
params: [{ "field": "keyPairId", "api": "keyPairId", "location": "path" }, { "field": "userId", "api": "userId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
249
|
+
hasBody: false,
|
|
250
|
+
shape: {
|
|
251
|
+
account: accountField(),
|
|
252
|
+
keyPairId: z.string().describe("The identifier of the key pair to retrieve."),
|
|
253
|
+
userId: z.string().describe("The requester's primary email address. To indicate the authenticated user, you can use the special value `me`."),
|
|
254
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
255
|
+
},
|
|
256
|
+
});
|
|
257
|
+
registerGeneratedTool(registry, {
|
|
258
|
+
name: "gmail_users_settings_cse_keypairs_list",
|
|
259
|
+
cud: "read",
|
|
260
|
+
description: "Lists client-side encryption key pairs for an authenticated user. For administrators managing identities and keypairs for users in their organization, requests",
|
|
261
|
+
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"] },
|
|
262
|
+
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" }],
|
|
263
|
+
hasBody: false,
|
|
264
|
+
shape: {
|
|
265
|
+
account: accountField(),
|
|
266
|
+
userId: z.string().describe("The requester's primary email address. To indicate the authenticated user, you can use the special value `me`."),
|
|
267
|
+
pageSize: z.number().describe("The number of key pairs to return. If not provided, the page size will default to 20 entries.").optional(),
|
|
268
|
+
pageToken: z.string().describe("Pagination token indicating which page of key pairs to return. If the token is not supplied, then the API will return the first page of results.").optional(),
|
|
269
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
270
|
+
},
|
|
271
|
+
});
|
|
272
|
+
registerGeneratedTool(registry, {
|
|
273
|
+
name: "gmail_users_settings_cse_keypairs_obliterate",
|
|
274
|
+
cud: "delete",
|
|
275
|
+
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",
|
|
276
|
+
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"] },
|
|
277
|
+
params: [{ "field": "keyPairId", "api": "keyPairId", "location": "path" }, { "field": "userId", "api": "userId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
278
|
+
hasBody: true,
|
|
279
|
+
shape: {
|
|
280
|
+
account: accountField(),
|
|
281
|
+
keyPairId: z.string().describe("The identifier of the key pair to obliterate."),
|
|
282
|
+
userId: z.string().describe("The requester's primary email address. To indicate the authenticated user, you can use the special value `me`."),
|
|
283
|
+
body: coerceJson(z.record(z.string(), z.unknown())).describe("ObliterateCseKeyPairRequest JSON request body."),
|
|
284
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
285
|
+
},
|
|
286
|
+
});
|
|
287
|
+
registerGeneratedTool(registry, {
|
|
288
|
+
name: "gmail_users_settings_delegates_create",
|
|
289
|
+
cud: "create",
|
|
290
|
+
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",
|
|
291
|
+
method: { id: "gmail.users.settings.delegates.create", httpMethod: "POST", path: "gmail/v1/users/{userId}/settings/delegates", baseUrl: "https://gmail.googleapis.com/", requiredParams: ["userId"] },
|
|
292
|
+
params: [{ "field": "userId", "api": "userId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
293
|
+
hasBody: true,
|
|
294
|
+
shape: {
|
|
295
|
+
account: accountField(),
|
|
296
|
+
userId: z.string().describe("User's email address. The special value \"me\" can be used to indicate the authenticated user."),
|
|
297
|
+
body: coerceJson(z.record(z.string(), z.unknown())).describe("Delegate JSON request body. Top-level fields: delegateEmail, verificationStatus."),
|
|
298
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
299
|
+
},
|
|
300
|
+
});
|
|
301
|
+
registerGeneratedTool(registry, {
|
|
302
|
+
name: "gmail_users_settings_delegates_delete",
|
|
303
|
+
cud: "delete",
|
|
304
|
+
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",
|
|
305
|
+
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"] },
|
|
306
|
+
params: [{ "field": "delegateEmail", "api": "delegateEmail", "location": "path" }, { "field": "userId", "api": "userId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
307
|
+
hasBody: false,
|
|
308
|
+
shape: {
|
|
309
|
+
account: accountField(),
|
|
310
|
+
delegateEmail: z.string().describe("The email address of the user to be removed as a delegate."),
|
|
311
|
+
userId: z.string().describe("User's email address. The special value \"me\" can be used to indicate the authenticated user."),
|
|
312
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
313
|
+
},
|
|
314
|
+
});
|
|
315
|
+
registerGeneratedTool(registry, {
|
|
316
|
+
name: "gmail_users_settings_delegates_get",
|
|
317
|
+
cud: "read",
|
|
318
|
+
description: "Gets the specified delegate. For more information, see [Manage delegates](https://developers.google.com/workspace/gmail/api/guides/delegate_settings). A delegat",
|
|
319
|
+
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"] },
|
|
320
|
+
params: [{ "field": "delegateEmail", "api": "delegateEmail", "location": "path" }, { "field": "userId", "api": "userId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
321
|
+
hasBody: false,
|
|
322
|
+
shape: {
|
|
323
|
+
account: accountField(),
|
|
324
|
+
delegateEmail: z.string().describe("The email address of the user whose delegate relationship is to be retrieved."),
|
|
325
|
+
userId: z.string().describe("User's email address. The special value \"me\" can be used to indicate the authenticated user."),
|
|
326
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
327
|
+
},
|
|
328
|
+
});
|
|
329
|
+
registerGeneratedTool(registry, {
|
|
330
|
+
name: "gmail_users_settings_delegates_list",
|
|
331
|
+
cud: "read",
|
|
332
|
+
description: "Lists the delegates for the specified account. For more information, see [Manage delegates](https://developers.google.com/workspace/gmail/api/guides/delegate_se",
|
|
333
|
+
method: { id: "gmail.users.settings.delegates.list", httpMethod: "GET", path: "gmail/v1/users/{userId}/settings/delegates", baseUrl: "https://gmail.googleapis.com/", requiredParams: ["userId"] },
|
|
334
|
+
params: [{ "field": "userId", "api": "userId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
335
|
+
hasBody: false,
|
|
336
|
+
shape: {
|
|
337
|
+
account: accountField(),
|
|
338
|
+
userId: z.string().describe("User's email address. The special value \"me\" can be used to indicate the authenticated user."),
|
|
339
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
340
|
+
},
|
|
341
|
+
});
|
|
342
|
+
registerGeneratedTool(registry, {
|
|
343
|
+
name: "gmail_users_settings_filters_create",
|
|
344
|
+
cud: "create",
|
|
345
|
+
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",
|
|
346
|
+
method: { id: "gmail.users.settings.filters.create", httpMethod: "POST", path: "gmail/v1/users/{userId}/settings/filters", baseUrl: "https://gmail.googleapis.com/", requiredParams: ["userId"] },
|
|
347
|
+
params: [{ "field": "userId", "api": "userId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
348
|
+
hasBody: true,
|
|
349
|
+
shape: {
|
|
350
|
+
account: accountField(),
|
|
351
|
+
userId: z.string().describe("User's email address. The special value \"me\" can be used to indicate the authenticated user."),
|
|
352
|
+
body: coerceJson(z.record(z.string(), z.unknown())).describe("Filter JSON request body. Top-level fields: action, criteria, id."),
|
|
353
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
354
|
+
},
|
|
355
|
+
});
|
|
356
|
+
registerGeneratedTool(registry, {
|
|
357
|
+
name: "gmail_users_settings_filters_delete",
|
|
358
|
+
cud: "delete",
|
|
359
|
+
description: "Immediately and permanently deletes the specified filter. For more information, see [Manage Gmail filters](https://developers.google.com/workspace/gmail/api/gui",
|
|
360
|
+
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"] },
|
|
361
|
+
params: [{ "field": "id", "api": "id", "location": "path" }, { "field": "userId", "api": "userId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
362
|
+
hasBody: false,
|
|
363
|
+
shape: {
|
|
364
|
+
account: accountField(),
|
|
365
|
+
id: z.string().describe("The ID of the filter to be deleted."),
|
|
366
|
+
userId: z.string().describe("User's email address. The special value \"me\" can be used to indicate the authenticated user."),
|
|
367
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
368
|
+
},
|
|
369
|
+
});
|
|
370
|
+
registerGeneratedTool(registry, {
|
|
371
|
+
name: "gmail_users_settings_filters_get",
|
|
372
|
+
cud: "read",
|
|
373
|
+
description: "Gets a filter. For more information, see [Manage Gmail filters](https://developers.google.com/workspace/gmail/api/guides/filter_settings).",
|
|
374
|
+
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"] },
|
|
375
|
+
params: [{ "field": "id", "api": "id", "location": "path" }, { "field": "userId", "api": "userId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
376
|
+
hasBody: false,
|
|
377
|
+
shape: {
|
|
378
|
+
account: accountField(),
|
|
379
|
+
id: z.string().describe("The ID of the filter to be fetched."),
|
|
380
|
+
userId: z.string().describe("User's email address. The special value \"me\" can be used to indicate the authenticated user."),
|
|
381
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
382
|
+
},
|
|
383
|
+
});
|
|
384
|
+
registerGeneratedTool(registry, {
|
|
385
|
+
name: "gmail_users_settings_filters_list",
|
|
386
|
+
cud: "read",
|
|
387
|
+
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",
|
|
388
|
+
method: { id: "gmail.users.settings.filters.list", httpMethod: "GET", path: "gmail/v1/users/{userId}/settings/filters", baseUrl: "https://gmail.googleapis.com/", requiredParams: ["userId"] },
|
|
389
|
+
params: [{ "field": "userId", "api": "userId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
390
|
+
hasBody: false,
|
|
391
|
+
shape: {
|
|
392
|
+
account: accountField(),
|
|
393
|
+
userId: z.string().describe("User's email address. The special value \"me\" can be used to indicate the authenticated user."),
|
|
394
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
395
|
+
},
|
|
396
|
+
});
|
|
397
|
+
registerGeneratedTool(registry, {
|
|
398
|
+
name: "gmail_users_settings_forwarding_addresses_create",
|
|
399
|
+
cud: "create",
|
|
400
|
+
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",
|
|
401
|
+
method: { id: "gmail.users.settings.forwardingAddresses.create", httpMethod: "POST", path: "gmail/v1/users/{userId}/settings/forwardingAddresses", baseUrl: "https://gmail.googleapis.com/", requiredParams: ["userId"] },
|
|
402
|
+
params: [{ "field": "userId", "api": "userId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
403
|
+
hasBody: true,
|
|
404
|
+
shape: {
|
|
405
|
+
account: accountField(),
|
|
406
|
+
userId: z.string().describe("User's email address. The special value \"me\" can be used to indicate the authenticated user."),
|
|
407
|
+
body: coerceJson(z.record(z.string(), z.unknown())).describe("ForwardingAddress JSON request body. Top-level fields: forwardingEmail, verificationStatus."),
|
|
408
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
409
|
+
},
|
|
410
|
+
});
|
|
411
|
+
registerGeneratedTool(registry, {
|
|
412
|
+
name: "gmail_users_settings_forwarding_addresses_delete",
|
|
413
|
+
cud: "delete",
|
|
414
|
+
description: "Deletes the specified forwarding address and revokes any verification that may have been required. For more information, see [Manage email forwarding](https://d",
|
|
415
|
+
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"] },
|
|
416
|
+
params: [{ "field": "forwardingEmail", "api": "forwardingEmail", "location": "path" }, { "field": "userId", "api": "userId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
417
|
+
hasBody: false,
|
|
418
|
+
shape: {
|
|
419
|
+
account: accountField(),
|
|
420
|
+
forwardingEmail: z.string().describe("The forwarding address to be deleted."),
|
|
421
|
+
userId: z.string().describe("User's email address. The special value \"me\" can be used to indicate the authenticated user."),
|
|
422
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
423
|
+
},
|
|
424
|
+
});
|
|
425
|
+
registerGeneratedTool(registry, {
|
|
426
|
+
name: "gmail_users_settings_forwarding_addresses_get",
|
|
427
|
+
cud: "read",
|
|
428
|
+
description: "Gets the specified forwarding address. For more information, see [Manage email forwarding](https://developers.google.com/workspace/gmail/api/guides/forwarding_s",
|
|
429
|
+
method: { id: "gmail.users.settings.forwardingAddresses.get", httpMethod: "GET", path: "gmail/v1/users/{userId}/settings/forwardingAddresses/{forwardingEmail}", baseUrl: "https://gmail.googleapis.com/", requiredParams: ["forwardingEmail", "userId"] },
|
|
430
|
+
params: [{ "field": "forwardingEmail", "api": "forwardingEmail", "location": "path" }, { "field": "userId", "api": "userId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
431
|
+
hasBody: false,
|
|
432
|
+
shape: {
|
|
433
|
+
account: accountField(),
|
|
434
|
+
forwardingEmail: z.string().describe("The forwarding address to be retrieved."),
|
|
435
|
+
userId: z.string().describe("User's email address. The special value \"me\" can be used to indicate the authenticated user."),
|
|
436
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
437
|
+
},
|
|
438
|
+
});
|
|
439
|
+
registerGeneratedTool(registry, {
|
|
440
|
+
name: "gmail_users_settings_forwarding_addresses_list",
|
|
441
|
+
cud: "read",
|
|
442
|
+
description: "Lists the forwarding addresses for the specified account. For more information, see [Manage email forwarding](https://developers.google.com/workspace/gmail/api/",
|
|
443
|
+
method: { id: "gmail.users.settings.forwardingAddresses.list", httpMethod: "GET", path: "gmail/v1/users/{userId}/settings/forwardingAddresses", baseUrl: "https://gmail.googleapis.com/", requiredParams: ["userId"] },
|
|
444
|
+
params: [{ "field": "userId", "api": "userId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
445
|
+
hasBody: false,
|
|
446
|
+
shape: {
|
|
447
|
+
account: accountField(),
|
|
448
|
+
userId: z.string().describe("User's email address. The special value \"me\" can be used to indicate the authenticated user."),
|
|
449
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
450
|
+
},
|
|
451
|
+
});
|
|
452
|
+
registerGeneratedTool(registry, {
|
|
453
|
+
name: "gmail_users_settings_get_auto_forwarding",
|
|
454
|
+
cud: "read",
|
|
455
|
+
description: "Gets the auto-forwarding setting for the specified account. For more information, see [Manage email forwarding](https://developers.google.com/workspace/gmail/ap",
|
|
456
|
+
method: { id: "gmail.users.settings.getAutoForwarding", httpMethod: "GET", path: "gmail/v1/users/{userId}/settings/autoForwarding", baseUrl: "https://gmail.googleapis.com/", requiredParams: ["userId"] },
|
|
457
|
+
params: [{ "field": "userId", "api": "userId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
458
|
+
hasBody: false,
|
|
459
|
+
shape: {
|
|
460
|
+
account: accountField(),
|
|
461
|
+
userId: z.string().describe("User's email address. The special value \"me\" can be used to indicate the authenticated user."),
|
|
462
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
463
|
+
},
|
|
464
|
+
});
|
|
465
|
+
registerGeneratedTool(registry, {
|
|
466
|
+
name: "gmail_users_settings_get_imap",
|
|
467
|
+
cud: "read",
|
|
468
|
+
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_",
|
|
469
|
+
method: { id: "gmail.users.settings.getImap", httpMethod: "GET", path: "gmail/v1/users/{userId}/settings/imap", baseUrl: "https://gmail.googleapis.com/", requiredParams: ["userId"] },
|
|
470
|
+
params: [{ "field": "userId", "api": "userId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
471
|
+
hasBody: false,
|
|
472
|
+
shape: {
|
|
473
|
+
account: accountField(),
|
|
474
|
+
userId: z.string().describe("User's email address. The special value \"me\" can be used to indicate the authenticated user."),
|
|
475
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
476
|
+
},
|
|
477
|
+
});
|
|
478
|
+
registerGeneratedTool(registry, {
|
|
479
|
+
name: "gmail_users_settings_get_language",
|
|
480
|
+
cud: "read",
|
|
481
|
+
description: "Gets language settings. For more information, see [Manage language settings](https://developers.google.com/workspace/gmail/api/guides/language-settings).",
|
|
482
|
+
method: { id: "gmail.users.settings.getLanguage", httpMethod: "GET", path: "gmail/v1/users/{userId}/settings/language", baseUrl: "https://gmail.googleapis.com/", requiredParams: ["userId"] },
|
|
483
|
+
params: [{ "field": "userId", "api": "userId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
484
|
+
hasBody: false,
|
|
485
|
+
shape: {
|
|
486
|
+
account: accountField(),
|
|
487
|
+
userId: z.string().describe("User's email address. The special value \"me\" can be used to indicate the authenticated user."),
|
|
488
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
489
|
+
},
|
|
490
|
+
});
|
|
491
|
+
registerGeneratedTool(registry, {
|
|
492
|
+
name: "gmail_users_settings_get_pop",
|
|
493
|
+
cud: "read",
|
|
494
|
+
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",
|
|
495
|
+
method: { id: "gmail.users.settings.getPop", httpMethod: "GET", path: "gmail/v1/users/{userId}/settings/pop", baseUrl: "https://gmail.googleapis.com/", requiredParams: ["userId"] },
|
|
496
|
+
params: [{ "field": "userId", "api": "userId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
497
|
+
hasBody: false,
|
|
498
|
+
shape: {
|
|
499
|
+
account: accountField(),
|
|
500
|
+
userId: z.string().describe("User's email address. The special value \"me\" can be used to indicate the authenticated user."),
|
|
501
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
502
|
+
},
|
|
503
|
+
});
|
|
504
|
+
registerGeneratedTool(registry, {
|
|
505
|
+
name: "gmail_users_settings_send_as_create",
|
|
506
|
+
cud: "create",
|
|
507
|
+
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",
|
|
508
|
+
method: { id: "gmail.users.settings.sendAs.create", httpMethod: "POST", path: "gmail/v1/users/{userId}/settings/sendAs", baseUrl: "https://gmail.googleapis.com/", requiredParams: ["userId"] },
|
|
509
|
+
params: [{ "field": "userId", "api": "userId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
510
|
+
hasBody: true,
|
|
511
|
+
shape: {
|
|
512
|
+
account: accountField(),
|
|
513
|
+
userId: z.string().describe("User's email address. The special value \"me\" can be used to indicate the authenticated user."),
|
|
514
|
+
body: coerceJson(z.record(z.string(), z.unknown())).describe("SendAs JSON request body. Top-level fields: displayName, isDefault, isPrimary, replyToAddress, sendAsEmail, signature, smtpMsa, treatAsAlias, verificationStatus."),
|
|
515
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
516
|
+
},
|
|
517
|
+
});
|
|
518
|
+
registerGeneratedTool(registry, {
|
|
519
|
+
name: "gmail_users_settings_send_as_delete",
|
|
520
|
+
cud: "delete",
|
|
521
|
+
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",
|
|
522
|
+
method: { id: "gmail.users.settings.sendAs.delete", httpMethod: "DELETE", path: "gmail/v1/users/{userId}/settings/sendAs/{sendAsEmail}", baseUrl: "https://gmail.googleapis.com/", requiredParams: ["sendAsEmail", "userId"] },
|
|
523
|
+
params: [{ "field": "sendAsEmail", "api": "sendAsEmail", "location": "path" }, { "field": "userId", "api": "userId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
524
|
+
hasBody: false,
|
|
525
|
+
shape: {
|
|
526
|
+
account: accountField(),
|
|
527
|
+
sendAsEmail: z.string().describe("The send-as alias to be deleted."),
|
|
528
|
+
userId: z.string().describe("User's email address. The special value \"me\" can be used to indicate the authenticated user."),
|
|
529
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
530
|
+
},
|
|
531
|
+
});
|
|
532
|
+
registerGeneratedTool(registry, {
|
|
533
|
+
name: "gmail_users_settings_send_as_get",
|
|
534
|
+
cud: "read",
|
|
535
|
+
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",
|
|
536
|
+
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"] },
|
|
537
|
+
params: [{ "field": "sendAsEmail", "api": "sendAsEmail", "location": "path" }, { "field": "userId", "api": "userId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
538
|
+
hasBody: false,
|
|
539
|
+
shape: {
|
|
540
|
+
account: accountField(),
|
|
541
|
+
sendAsEmail: z.string().describe("The send-as alias to be retrieved."),
|
|
542
|
+
userId: z.string().describe("User's email address. The special value \"me\" can be used to indicate the authenticated user."),
|
|
543
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
544
|
+
},
|
|
545
|
+
});
|
|
546
|
+
registerGeneratedTool(registry, {
|
|
547
|
+
name: "gmail_users_settings_send_as_list",
|
|
548
|
+
cud: "read",
|
|
549
|
+
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",
|
|
550
|
+
method: { id: "gmail.users.settings.sendAs.list", httpMethod: "GET", path: "gmail/v1/users/{userId}/settings/sendAs", baseUrl: "https://gmail.googleapis.com/", requiredParams: ["userId"] },
|
|
551
|
+
params: [{ "field": "userId", "api": "userId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
552
|
+
hasBody: false,
|
|
553
|
+
shape: {
|
|
554
|
+
account: accountField(),
|
|
555
|
+
userId: z.string().describe("User's email address. The special value \"me\" can be used to indicate the authenticated user."),
|
|
556
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
557
|
+
},
|
|
558
|
+
});
|
|
559
|
+
registerGeneratedTool(registry, {
|
|
560
|
+
name: "gmail_users_settings_send_as_patch",
|
|
561
|
+
cud: "update",
|
|
562
|
+
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",
|
|
563
|
+
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"] },
|
|
564
|
+
params: [{ "field": "sendAsEmail", "api": "sendAsEmail", "location": "path" }, { "field": "userId", "api": "userId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
565
|
+
hasBody: true,
|
|
566
|
+
shape: {
|
|
567
|
+
account: accountField(),
|
|
568
|
+
sendAsEmail: z.string().describe("The send-as alias to be updated."),
|
|
569
|
+
userId: z.string().describe("User's email address. The special value \"me\" can be used to indicate the authenticated user."),
|
|
570
|
+
body: coerceJson(z.record(z.string(), z.unknown())).describe("SendAs JSON request body. Top-level fields: displayName, isDefault, isPrimary, replyToAddress, sendAsEmail, signature, smtpMsa, treatAsAlias, verificationStatus."),
|
|
571
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
572
|
+
},
|
|
573
|
+
});
|
|
574
|
+
registerGeneratedTool(registry, {
|
|
575
|
+
name: "gmail_users_settings_send_as_smime_info_delete",
|
|
576
|
+
cud: "delete",
|
|
577
|
+
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",
|
|
578
|
+
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", "id", "sendAsEmail"] },
|
|
579
|
+
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" }],
|
|
580
|
+
hasBody: false,
|
|
581
|
+
shape: {
|
|
582
|
+
account: accountField(),
|
|
583
|
+
id: z.string().describe("The immutable ID for the SmimeInfo."),
|
|
584
|
+
sendAsEmail: z.string().describe("The email address that appears in the \"From:\" header for mail sent using this alias."),
|
|
585
|
+
userId: z.string().describe("The user's email address. The special value `me` can be used to indicate the authenticated user."),
|
|
586
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
587
|
+
},
|
|
588
|
+
});
|
|
589
|
+
registerGeneratedTool(registry, {
|
|
590
|
+
name: "gmail_users_settings_send_as_smime_info_get",
|
|
591
|
+
cud: "read",
|
|
592
|
+
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",
|
|
593
|
+
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", "id", "sendAsEmail"] },
|
|
594
|
+
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" }],
|
|
595
|
+
hasBody: false,
|
|
596
|
+
shape: {
|
|
597
|
+
account: accountField(),
|
|
598
|
+
id: z.string().describe("The immutable ID for the SmimeInfo."),
|
|
599
|
+
sendAsEmail: z.string().describe("The email address that appears in the \"From:\" header for mail sent using this alias."),
|
|
600
|
+
userId: z.string().describe("The user's email address. The special value `me` can be used to indicate the authenticated user."),
|
|
601
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
602
|
+
},
|
|
603
|
+
});
|
|
604
|
+
registerGeneratedTool(registry, {
|
|
605
|
+
name: "gmail_users_settings_send_as_smime_info_insert",
|
|
606
|
+
cud: "create",
|
|
607
|
+
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/",
|
|
608
|
+
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: ["sendAsEmail", "userId"] },
|
|
609
|
+
params: [{ "field": "sendAsEmail", "api": "sendAsEmail", "location": "path" }, { "field": "userId", "api": "userId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
610
|
+
hasBody: true,
|
|
611
|
+
shape: {
|
|
612
|
+
account: accountField(),
|
|
613
|
+
sendAsEmail: z.string().describe("The email address that appears in the \"From:\" header for mail sent using this alias."),
|
|
614
|
+
userId: z.string().describe("The user's email address. The special value `me` can be used to indicate the authenticated user."),
|
|
615
|
+
body: coerceJson(z.record(z.string(), z.unknown())).describe("SmimeInfo JSON request body. Top-level fields: encryptedKeyPassword, expiration, id, isDefault, issuerCn, pem, pkcs12."),
|
|
616
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
617
|
+
},
|
|
618
|
+
});
|
|
619
|
+
registerGeneratedTool(registry, {
|
|
620
|
+
name: "gmail_users_settings_send_as_smime_info_list",
|
|
621
|
+
cud: "read",
|
|
622
|
+
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",
|
|
623
|
+
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: ["sendAsEmail", "userId"] },
|
|
624
|
+
params: [{ "field": "sendAsEmail", "api": "sendAsEmail", "location": "path" }, { "field": "userId", "api": "userId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
625
|
+
hasBody: false,
|
|
626
|
+
shape: {
|
|
627
|
+
account: accountField(),
|
|
628
|
+
sendAsEmail: z.string().describe("The email address that appears in the \"From:\" header for mail sent using this alias."),
|
|
629
|
+
userId: z.string().describe("The user's email address. The special value `me` can be used to indicate the authenticated user."),
|
|
630
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
631
|
+
},
|
|
632
|
+
});
|
|
633
|
+
registerGeneratedTool(registry, {
|
|
634
|
+
name: "gmail_users_settings_send_as_smime_info_set_default",
|
|
635
|
+
cud: "update",
|
|
636
|
+
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",
|
|
637
|
+
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: ["sendAsEmail", "userId", "id"] },
|
|
638
|
+
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" }],
|
|
639
|
+
hasBody: false,
|
|
640
|
+
shape: {
|
|
641
|
+
account: accountField(),
|
|
642
|
+
id: z.string().describe("The immutable ID for the SmimeInfo."),
|
|
643
|
+
sendAsEmail: z.string().describe("The email address that appears in the \"From:\" header for mail sent using this alias."),
|
|
644
|
+
userId: z.string().describe("The user's email address. The special value `me` can be used to indicate the authenticated user."),
|
|
645
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
646
|
+
},
|
|
647
|
+
});
|
|
648
|
+
registerGeneratedTool(registry, {
|
|
649
|
+
name: "gmail_users_settings_send_as_update",
|
|
650
|
+
cud: "update",
|
|
651
|
+
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",
|
|
652
|
+
method: { id: "gmail.users.settings.sendAs.update", httpMethod: "PUT", path: "gmail/v1/users/{userId}/settings/sendAs/{sendAsEmail}", baseUrl: "https://gmail.googleapis.com/", requiredParams: ["sendAsEmail", "userId"] },
|
|
653
|
+
params: [{ "field": "sendAsEmail", "api": "sendAsEmail", "location": "path" }, { "field": "userId", "api": "userId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
654
|
+
hasBody: true,
|
|
655
|
+
shape: {
|
|
656
|
+
account: accountField(),
|
|
657
|
+
sendAsEmail: z.string().describe("The send-as alias to be updated."),
|
|
658
|
+
userId: z.string().describe("User's email address. The special value \"me\" can be used to indicate the authenticated user."),
|
|
659
|
+
body: coerceJson(z.record(z.string(), z.unknown())).describe("SendAs JSON request body. Top-level fields: displayName, isDefault, isPrimary, replyToAddress, sendAsEmail, signature, smtpMsa, treatAsAlias, verificationStatus."),
|
|
660
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
661
|
+
},
|
|
662
|
+
});
|
|
663
|
+
registerGeneratedTool(registry, {
|
|
664
|
+
name: "gmail_users_settings_send_as_verify",
|
|
665
|
+
cud: "create",
|
|
666
|
+
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",
|
|
667
|
+
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"] },
|
|
668
|
+
params: [{ "field": "sendAsEmail", "api": "sendAsEmail", "location": "path" }, { "field": "userId", "api": "userId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
669
|
+
hasBody: false,
|
|
670
|
+
shape: {
|
|
671
|
+
account: accountField(),
|
|
672
|
+
sendAsEmail: z.string().describe("The send-as alias to be verified."),
|
|
673
|
+
userId: z.string().describe("User's email address. The special value \"me\" can be used to indicate the authenticated user."),
|
|
674
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
675
|
+
},
|
|
676
|
+
});
|
|
677
|
+
registerGeneratedTool(registry, {
|
|
678
|
+
name: "gmail_users_settings_update_auto_forwarding",
|
|
679
|
+
cud: "update",
|
|
680
|
+
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",
|
|
681
|
+
method: { id: "gmail.users.settings.updateAutoForwarding", httpMethod: "PUT", path: "gmail/v1/users/{userId}/settings/autoForwarding", baseUrl: "https://gmail.googleapis.com/", requiredParams: ["userId"] },
|
|
682
|
+
params: [{ "field": "userId", "api": "userId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
683
|
+
hasBody: true,
|
|
684
|
+
shape: {
|
|
685
|
+
account: accountField(),
|
|
686
|
+
userId: z.string().describe("User's email address. The special value \"me\" can be used to indicate the authenticated user."),
|
|
687
|
+
body: coerceJson(z.record(z.string(), z.unknown())).describe("AutoForwarding JSON request body. Top-level fields: disposition, emailAddress, enabled."),
|
|
688
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
689
|
+
},
|
|
690
|
+
});
|
|
691
|
+
registerGeneratedTool(registry, {
|
|
692
|
+
name: "gmail_users_settings_update_imap",
|
|
693
|
+
cud: "update",
|
|
694
|
+
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",
|
|
695
|
+
method: { id: "gmail.users.settings.updateImap", httpMethod: "PUT", path: "gmail/v1/users/{userId}/settings/imap", baseUrl: "https://gmail.googleapis.com/", requiredParams: ["userId"] },
|
|
696
|
+
params: [{ "field": "userId", "api": "userId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
697
|
+
hasBody: true,
|
|
698
|
+
shape: {
|
|
699
|
+
account: accountField(),
|
|
700
|
+
userId: z.string().describe("User's email address. The special value \"me\" can be used to indicate the authenticated user."),
|
|
701
|
+
body: coerceJson(z.record(z.string(), z.unknown())).describe("ImapSettings JSON request body. Top-level fields: autoExpunge, enabled, expungeBehavior, maxFolderSize."),
|
|
702
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
703
|
+
},
|
|
704
|
+
});
|
|
705
|
+
registerGeneratedTool(registry, {
|
|
706
|
+
name: "gmail_users_settings_update_language",
|
|
707
|
+
cud: "update",
|
|
708
|
+
description: "Updates language settings. For more information, see [Manage language settings](https://developers.google.com/workspace/gmail/api/guides/language-settings). If",
|
|
709
|
+
method: { id: "gmail.users.settings.updateLanguage", httpMethod: "PUT", path: "gmail/v1/users/{userId}/settings/language", baseUrl: "https://gmail.googleapis.com/", requiredParams: ["userId"] },
|
|
710
|
+
params: [{ "field": "userId", "api": "userId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
711
|
+
hasBody: true,
|
|
712
|
+
shape: {
|
|
713
|
+
account: accountField(),
|
|
714
|
+
userId: z.string().describe("User's email address. The special value \"me\" can be used to indicate the authenticated user."),
|
|
715
|
+
body: coerceJson(z.record(z.string(), z.unknown())).describe("LanguageSettings JSON request body. Top-level fields: displayLanguage."),
|
|
716
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
717
|
+
},
|
|
718
|
+
});
|
|
719
|
+
registerGeneratedTool(registry, {
|
|
720
|
+
name: "gmail_users_settings_update_pop",
|
|
721
|
+
cud: "update",
|
|
722
|
+
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",
|
|
723
|
+
method: { id: "gmail.users.settings.updatePop", httpMethod: "PUT", path: "gmail/v1/users/{userId}/settings/pop", baseUrl: "https://gmail.googleapis.com/", requiredParams: ["userId"] },
|
|
724
|
+
params: [{ "field": "userId", "api": "userId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
725
|
+
hasBody: true,
|
|
726
|
+
shape: {
|
|
727
|
+
account: accountField(),
|
|
728
|
+
userId: z.string().describe("User's email address. The special value \"me\" can be used to indicate the authenticated user."),
|
|
729
|
+
body: coerceJson(z.record(z.string(), z.unknown())).describe("PopSettings JSON request body. Top-level fields: accessWindow, disposition."),
|
|
730
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
731
|
+
},
|
|
732
|
+
});
|
|
733
|
+
registerGeneratedTool(registry, {
|
|
734
|
+
name: "gmail_users_stop",
|
|
735
|
+
cud: "create",
|
|
736
|
+
description: "Turn off push notification delivery for the given user mailbox. For more information, see [Configure push notifications in Gmail API](https://developers.google.",
|
|
737
|
+
method: { id: "gmail.users.stop", httpMethod: "POST", path: "gmail/v1/users/{userId}/stop", baseUrl: "https://gmail.googleapis.com/", requiredParams: ["userId"] },
|
|
738
|
+
params: [{ "field": "userId", "api": "userId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
739
|
+
hasBody: false,
|
|
740
|
+
shape: {
|
|
741
|
+
account: accountField(),
|
|
742
|
+
userId: z.string().describe("The user's email address. The special value `me` can be used to indicate the authenticated user."),
|
|
743
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
744
|
+
},
|
|
745
|
+
});
|
|
746
|
+
registerGeneratedTool(registry, {
|
|
747
|
+
name: "gmail_users_threads_delete",
|
|
748
|
+
cud: "delete",
|
|
749
|
+
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",
|
|
750
|
+
method: { id: "gmail.users.threads.delete", httpMethod: "DELETE", path: "gmail/v1/users/{userId}/threads/{id}", baseUrl: "https://gmail.googleapis.com/", requiredParams: ["userId", "id"] },
|
|
751
|
+
params: [{ "field": "id", "api": "id", "location": "path" }, { "field": "userId", "api": "userId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
752
|
+
hasBody: false,
|
|
753
|
+
shape: {
|
|
754
|
+
account: accountField(),
|
|
755
|
+
id: z.string().describe("ID of the Thread to delete."),
|
|
756
|
+
userId: z.string().describe("The user's email address. The special value `me` can be used to indicate the authenticated user."),
|
|
757
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
758
|
+
},
|
|
759
|
+
});
|
|
760
|
+
registerGeneratedTool(registry, {
|
|
761
|
+
name: "gmail_users_threads_list",
|
|
762
|
+
cud: "read",
|
|
763
|
+
description: "Lists the threads in the user's mailbox. For more information, see [Manage threads](https://developers.google.com/workspace/gmail/api/guides/threads).",
|
|
764
|
+
method: { id: "gmail.users.threads.list", httpMethod: "GET", path: "gmail/v1/users/{userId}/threads", baseUrl: "https://gmail.googleapis.com/", requiredParams: ["userId"] },
|
|
765
|
+
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" }],
|
|
766
|
+
hasBody: false,
|
|
767
|
+
shape: {
|
|
768
|
+
account: accountField(),
|
|
769
|
+
userId: z.string().describe("The user's email address. The special value `me` can be used to indicate the authenticated user."),
|
|
770
|
+
includeSpamTrash: coerceBoolean.describe("Include threads from `SPAM` and `TRASH` in the results.").optional(),
|
|
771
|
+
labelIds: coerceArray(z.string()).describe("Only return threads with labels that match all of the specified label IDs.").optional(),
|
|
772
|
+
maxResults: z.number().describe("Maximum number of threads to return. This field defaults to 100. The maximum allowed value for this field is 500.").optional(),
|
|
773
|
+
pageToken: z.string().describe("Page token to retrieve a specific page of results in the list.").optional(),
|
|
774
|
+
q: z.string().describe("Only return threads matching the specified query. Supports the same query format as the Gmail search box. For example, `\"from:someuser@example.com rfc822msgid: is:unread\"`. Parameter cannot be used wh").optional(),
|
|
775
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
776
|
+
},
|
|
777
|
+
});
|
|
778
|
+
registerGeneratedTool(registry, {
|
|
779
|
+
name: "gmail_users_threads_modify",
|
|
780
|
+
cud: "update",
|
|
781
|
+
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/",
|
|
782
|
+
method: { id: "gmail.users.threads.modify", httpMethod: "POST", path: "gmail/v1/users/{userId}/threads/{id}/modify", baseUrl: "https://gmail.googleapis.com/", requiredParams: ["userId", "id"] },
|
|
783
|
+
params: [{ "field": "id", "api": "id", "location": "path" }, { "field": "userId", "api": "userId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
784
|
+
hasBody: true,
|
|
785
|
+
shape: {
|
|
786
|
+
account: accountField(),
|
|
787
|
+
id: z.string().describe("The ID of the thread to modify."),
|
|
788
|
+
userId: z.string().describe("The user's email address. The special value `me` can be used to indicate the authenticated user."),
|
|
789
|
+
body: coerceJson(z.record(z.string(), z.unknown())).describe("ModifyThreadRequest JSON request body. Top-level fields: addLabelIds, removeLabelIds."),
|
|
790
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
791
|
+
},
|
|
792
|
+
});
|
|
793
|
+
registerGeneratedTool(registry, {
|
|
794
|
+
name: "gmail_users_threads_trash",
|
|
795
|
+
cud: "delete",
|
|
796
|
+
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://",
|
|
797
|
+
method: { id: "gmail.users.threads.trash", httpMethod: "POST", path: "gmail/v1/users/{userId}/threads/{id}/trash", baseUrl: "https://gmail.googleapis.com/", requiredParams: ["userId", "id"] },
|
|
798
|
+
params: [{ "field": "id", "api": "id", "location": "path" }, { "field": "userId", "api": "userId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
799
|
+
hasBody: false,
|
|
800
|
+
shape: {
|
|
801
|
+
account: accountField(),
|
|
802
|
+
id: z.string().describe("The ID of the thread to Trash."),
|
|
803
|
+
userId: z.string().describe("The user's email address. The special value `me` can be used to indicate the authenticated user."),
|
|
804
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
805
|
+
},
|
|
806
|
+
});
|
|
807
|
+
registerGeneratedTool(registry, {
|
|
808
|
+
name: "gmail_users_threads_untrash",
|
|
809
|
+
cud: "update",
|
|
810
|
+
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](",
|
|
811
|
+
method: { id: "gmail.users.threads.untrash", httpMethod: "POST", path: "gmail/v1/users/{userId}/threads/{id}/untrash", baseUrl: "https://gmail.googleapis.com/", requiredParams: ["userId", "id"] },
|
|
812
|
+
params: [{ "field": "id", "api": "id", "location": "path" }, { "field": "userId", "api": "userId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
813
|
+
hasBody: false,
|
|
814
|
+
shape: {
|
|
815
|
+
account: accountField(),
|
|
816
|
+
id: z.string().describe("The ID of the thread to remove from Trash."),
|
|
817
|
+
userId: z.string().describe("The user's email address. The special value `me` can be used to indicate the authenticated user."),
|
|
818
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
819
|
+
},
|
|
820
|
+
});
|
|
821
|
+
registerGeneratedTool(registry, {
|
|
822
|
+
name: "gmail_users_watch",
|
|
823
|
+
cud: "create",
|
|
824
|
+
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",
|
|
825
|
+
method: { id: "gmail.users.watch", httpMethod: "POST", path: "gmail/v1/users/{userId}/watch", baseUrl: "https://gmail.googleapis.com/", requiredParams: ["userId"] },
|
|
826
|
+
params: [{ "field": "userId", "api": "userId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
827
|
+
hasBody: true,
|
|
828
|
+
shape: {
|
|
829
|
+
account: accountField(),
|
|
830
|
+
userId: z.string().describe("The user's email address. The special value `me` can be used to indicate the authenticated user."),
|
|
831
|
+
body: coerceJson(z.record(z.string(), z.unknown())).describe("WatchRequest JSON request body. Top-level fields: labelFilterAction, labelFilterBehavior, labelIds, topicName."),
|
|
832
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
833
|
+
},
|
|
834
|
+
});
|
|
835
|
+
}
|