mcp-google-multi 6.0.0-beta.2 → 6.0.0-beta.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -5
- package/dist/accounts.d.ts +20 -4
- package/dist/accounts.js +68 -44
- package/dist/api-probe.d.ts +5 -0
- package/dist/api-probe.js +20 -15
- package/dist/arg-normalize.js +19 -38
- package/dist/arg-strict.d.ts +7 -0
- package/dist/arg-strict.js +38 -28
- package/dist/auth.d.ts +5 -4
- package/dist/auth.js +16 -23
- package/dist/boot-gates.d.ts +26 -0
- package/dist/boot-gates.js +36 -0
- package/dist/cimd-cache.d.ts +38 -0
- package/dist/cimd-cache.js +111 -0
- package/dist/client-config.d.ts +2 -2
- package/dist/client-config.js +8 -14
- package/dist/client.d.ts +32 -2
- package/dist/client.js +0 -0
- package/dist/compose.d.ts +18 -0
- package/dist/compose.js +109 -0
- package/dist/config-file.d.ts +13 -0
- package/dist/config-file.js +41 -10
- package/dist/discover.js +7 -10
- package/dist/discovery-client.d.ts +3 -0
- package/dist/discovery-client.js +36 -32
- package/dist/doctor.d.ts +9 -5
- package/dist/doctor.js +119 -29
- package/dist/env-load.js +2 -5
- package/dist/executor.d.ts +3 -0
- package/dist/executor.js +6 -6
- package/dist/fanout.d.ts +9 -1
- package/dist/fanout.js +47 -22
- package/dist/fs-atomic.d.ts +8 -0
- package/dist/fs-atomic.js +216 -29
- package/dist/hint-provider.d.ts +129 -0
- package/dist/hint-provider.js +58 -0
- package/dist/http-config.d.ts +2 -2
- package/dist/http-config.js +3 -7
- package/dist/http-transport.d.ts +67 -9
- package/dist/http-transport.js +318 -52
- package/dist/identity.d.ts +6 -3
- package/dist/identity.js +24 -8
- package/dist/index.js +76 -160
- package/dist/master-key.d.ts +3 -3
- package/dist/master-key.js +16 -19
- package/dist/mcp-token.d.ts +126 -19
- package/dist/mcp-token.js +557 -76
- package/dist/metrics-cli.d.ts +1 -1
- package/dist/metrics-cli.js +1 -1
- package/dist/metrics-tap.js +2 -5
- package/dist/migrate-config.d.ts +1 -2
- package/dist/migrate-config.js +5 -7
- package/dist/net-tuning.js +2 -4
- package/dist/oauth-as.d.ts +104 -4
- package/dist/oauth-as.js +368 -114
- package/dist/oauth-consent.d.ts +10 -0
- package/dist/oauth-consent.js +20 -10
- package/dist/outbound-allowlist.js +9 -11
- package/dist/reauth-hint.d.ts +1 -1
- package/dist/reauth-hint.js +11 -10
- package/dist/registry-transfer.d.ts +5 -0
- package/dist/registry-transfer.js +63 -11
- package/dist/registry.d.ts +13 -4
- package/dist/registry.js +100 -72
- package/dist/scope-catalog.d.ts +16 -0
- package/dist/scope-catalog.js +40 -13
- package/dist/scope-observability.d.ts +10 -9
- package/dist/scope-observability.js +34 -24
- package/dist/services.d.ts +18 -10
- package/dist/services.js +61 -22
- package/dist/ssrf-guard.d.ts +23 -9
- package/dist/ssrf-guard.js +106 -78
- package/dist/tenant-purge.d.ts +26 -0
- package/dist/tenant-purge.js +65 -0
- package/dist/token-store.d.ts +20 -2
- package/dist/token-store.js +0 -0
- package/dist/tools/_coerce.d.ts +4 -4
- package/dist/tools/_errors.d.ts +3 -0
- package/dist/tools/_errors.js +72 -60
- package/dist/tools/_local-files.d.ts +9 -0
- package/dist/tools/_local-files.js +22 -8
- package/dist/tools/account-wizard.d.ts +13 -3
- package/dist/tools/account-wizard.js +107 -56
- package/dist/tools/accounts-tool.d.ts +8 -1
- package/dist/tools/accounts-tool.js +35 -19
- package/dist/tools/admin.d.ts +10 -1
- package/dist/tools/admin.js +14 -11
- package/dist/tools/analytics.d.ts +10 -1
- package/dist/tools/analytics.js +14 -10
- package/dist/tools/calendar.d.ts +2 -1
- package/dist/tools/calendar.js +19 -18
- package/dist/tools/chat.d.ts +10 -1
- package/dist/tools/chat.js +12 -8
- package/dist/tools/contacts.d.ts +2 -1
- package/dist/tools/contacts.js +22 -19
- package/dist/tools/docs.d.ts +2 -1
- package/dist/tools/docs.js +35 -36
- package/dist/tools/drive.d.ts +2 -1
- package/dist/tools/drive.js +80 -74
- package/dist/tools/forms.d.ts +10 -1
- package/dist/tools/forms.js +18 -12
- package/dist/tools/generated/_shared.d.ts +2 -1
- package/dist/tools/generated/_shared.js +7 -3
- package/dist/tools/generated/admin.d.ts +2 -1
- package/dist/tools/generated/admin.js +265 -265
- package/dist/tools/generated/analytics.d.ts +2 -1
- package/dist/tools/generated/analytics.js +125 -125
- package/dist/tools/generated/appsmarket.d.ts +2 -1
- package/dist/tools/generated/appsmarket.js +5 -5
- package/dist/tools/generated/calendar.d.ts +2 -1
- package/dist/tools/generated/calendar.js +55 -55
- package/dist/tools/generated/chat.d.ts +2 -1
- package/dist/tools/generated/chat.js +95 -95
- package/dist/tools/generated/classroom.d.ts +2 -1
- package/dist/tools/generated/classroom.js +209 -209
- package/dist/tools/generated/cloudidentity.d.ts +2 -1
- package/dist/tools/generated/cloudidentity.js +133 -133
- package/dist/tools/generated/cloudsearch.d.ts +2 -1
- package/dist/tools/generated/cloudsearch.js +99 -99
- package/dist/tools/generated/contacts.d.ts +2 -1
- package/dist/tools/generated/contacts.js +29 -29
- package/dist/tools/generated/drive.d.ts +2 -1
- package/dist/tools/generated/drive.js +71 -71
- package/dist/tools/generated/driveactivity.d.ts +2 -1
- package/dist/tools/generated/driveactivity.js +3 -3
- package/dist/tools/generated/drivelabels.d.ts +2 -1
- package/dist/tools/generated/drivelabels.js +53 -53
- package/dist/tools/generated/forms.d.ts +2 -1
- package/dist/tools/generated/forms.js +7 -7
- package/dist/tools/generated/gmail.d.ts +2 -1
- package/dist/tools/generated/gmail.js +117 -117
- package/dist/tools/generated/groupsmigration.d.ts +2 -1
- package/dist/tools/generated/groupsmigration.js +3 -3
- package/dist/tools/generated/groupssettings.d.ts +2 -1
- package/dist/tools/generated/groupssettings.js +7 -7
- package/dist/tools/generated/index.d.ts +2 -1
- package/dist/tools/generated/keep.d.ts +2 -1
- package/dist/tools/generated/keep.js +15 -15
- package/dist/tools/generated/licensing.d.ts +2 -1
- package/dist/tools/generated/licensing.js +15 -15
- package/dist/tools/generated/meet.d.ts +2 -1
- package/dist/tools/generated/meet.js +27 -27
- package/dist/tools/generated/postmaster.d.ts +2 -1
- package/dist/tools/generated/postmaster.js +9 -9
- package/dist/tools/generated/reseller.d.ts +2 -1
- package/dist/tools/generated/reseller.js +35 -35
- package/dist/tools/generated/script.d.ts +2 -1
- package/dist/tools/generated/script.js +33 -33
- package/dist/tools/generated/searchconsole.d.ts +2 -1
- package/dist/tools/generated/searchconsole.js +3 -3
- package/dist/tools/generated/sheets.d.ts +2 -1
- package/dist/tools/generated/sheets.js +15 -15
- package/dist/tools/generated/tasks.d.ts +2 -1
- package/dist/tools/generated/tasks.js +5 -5
- package/dist/tools/generated/vault.d.ts +2 -1
- package/dist/tools/generated/vault.js +67 -67
- package/dist/tools/generated/workspaceevents.d.ts +2 -1
- package/dist/tools/generated/workspaceevents.js +31 -31
- package/dist/tools/gmail-mime.d.ts +1 -1
- package/dist/tools/gmail-mime.js +7 -12
- package/dist/tools/gmail.d.ts +4 -3
- package/dist/tools/gmail.js +67 -69
- package/dist/tools/google-api.d.ts +2 -3
- package/dist/tools/google-api.js +34 -22
- package/dist/tools/meet.d.ts +10 -1
- package/dist/tools/meet.js +12 -9
- package/dist/tools/searchconsole.d.ts +2 -1
- package/dist/tools/searchconsole.js +16 -13
- package/dist/tools/sheets.d.ts +2 -1
- package/dist/tools/sheets.js +35 -32
- package/dist/tools/slides.d.ts +10 -1
- package/dist/tools/slides.js +16 -10
- package/dist/tools/tasks.d.ts +2 -1
- package/dist/tools/tasks.js +18 -15
- package/dist/trim.d.ts +5 -0
- package/dist/trim.js +19 -0
- package/dist/usage-metrics.d.ts +23 -0
- package/dist/usage-metrics.js +67 -56
- package/dist/write-control.d.ts +4 -8
- package/dist/write-control.js +13 -6
- package/package.json +47 -21
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
import { coerceArray, coerceBoolean, coerceJson } from '../_coerce.js';
|
|
4
4
|
import { accountField, registerGeneratedTool } from './_shared.js';
|
|
5
|
-
export function registerGmailGeneratedTools(registry) {
|
|
5
|
+
export function registerGmailGeneratedTools(registry, deps = {}) {
|
|
6
6
|
// Interned method scope sets (shared across tools; see scope-observability).
|
|
7
7
|
const S_gmail_v1 = [
|
|
8
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"],
|
|
@@ -26,12 +26,12 @@ export function registerGmailGeneratedTools(registry) {
|
|
|
26
26
|
params: [{ "field": "id", "api": "id", "location": "path" }, { "field": "userId", "api": "userId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
27
27
|
hasBody: false,
|
|
28
28
|
shape: {
|
|
29
|
-
account: accountField(),
|
|
29
|
+
account: accountField(() => registry.accountAliases()),
|
|
30
30
|
id: z.string().min(1).describe("The ID of the draft to delete."),
|
|
31
31
|
userId: z.string().min(1).describe("The user's email address. The special value `me` can be used to indicate the authenticated user."),
|
|
32
32
|
fields: z.string().optional().describe('Response field mask.'),
|
|
33
33
|
},
|
|
34
|
-
});
|
|
34
|
+
}, deps);
|
|
35
35
|
registerGeneratedTool(registry, {
|
|
36
36
|
name: "gmail_users_drafts_update",
|
|
37
37
|
cud: "update",
|
|
@@ -40,13 +40,13 @@ export function registerGmailGeneratedTools(registry) {
|
|
|
40
40
|
params: [{ "field": "id", "api": "id", "location": "path" }, { "field": "userId", "api": "userId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
41
41
|
hasBody: true,
|
|
42
42
|
shape: {
|
|
43
|
-
account: accountField(),
|
|
43
|
+
account: accountField(() => registry.accountAliases()),
|
|
44
44
|
id: z.string().min(1).describe("The ID of the draft to update."),
|
|
45
45
|
userId: z.string().min(1).describe("The user's email address. The special value `me` can be used to indicate the authenticated user."),
|
|
46
46
|
body: coerceJson(z.record(z.string(), z.unknown())).describe("Draft JSON request body. Top-level fields: id, message."),
|
|
47
47
|
fields: z.string().optional().describe('Response field mask.'),
|
|
48
48
|
},
|
|
49
|
-
});
|
|
49
|
+
}, deps);
|
|
50
50
|
registerGeneratedTool(registry, {
|
|
51
51
|
name: "gmail_users_labels_get",
|
|
52
52
|
cud: "read",
|
|
@@ -55,12 +55,12 @@ export function registerGmailGeneratedTools(registry) {
|
|
|
55
55
|
params: [{ "field": "id", "api": "id", "location": "path" }, { "field": "userId", "api": "userId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
56
56
|
hasBody: false,
|
|
57
57
|
shape: {
|
|
58
|
-
account: accountField(),
|
|
58
|
+
account: accountField(() => registry.accountAliases()),
|
|
59
59
|
id: z.string().min(1).describe("The ID of the label to retrieve."),
|
|
60
60
|
userId: z.string().min(1).describe("The user's email address. The special value `me` can be used to indicate the authenticated user."),
|
|
61
61
|
fields: z.string().optional().describe('Response field mask.'),
|
|
62
62
|
},
|
|
63
|
-
});
|
|
63
|
+
}, deps);
|
|
64
64
|
registerGeneratedTool(registry, {
|
|
65
65
|
name: "gmail_users_labels_patch",
|
|
66
66
|
cud: "update",
|
|
@@ -69,13 +69,13 @@ export function registerGmailGeneratedTools(registry) {
|
|
|
69
69
|
params: [{ "field": "id", "api": "id", "location": "path" }, { "field": "userId", "api": "userId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
70
70
|
hasBody: true,
|
|
71
71
|
shape: {
|
|
72
|
-
account: accountField(),
|
|
72
|
+
account: accountField(() => registry.accountAliases()),
|
|
73
73
|
id: z.string().min(1).describe("The ID of the label to update."),
|
|
74
74
|
userId: z.string().min(1).describe("The user's email address. The special value `me` can be used to indicate the authenticated user."),
|
|
75
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
76
|
fields: z.string().optional().describe('Response field mask.'),
|
|
77
77
|
},
|
|
78
|
-
});
|
|
78
|
+
}, deps);
|
|
79
79
|
registerGeneratedTool(registry, {
|
|
80
80
|
name: "gmail_users_labels_update",
|
|
81
81
|
cud: "update",
|
|
@@ -84,13 +84,13 @@ export function registerGmailGeneratedTools(registry) {
|
|
|
84
84
|
params: [{ "field": "id", "api": "id", "location": "path" }, { "field": "userId", "api": "userId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
85
85
|
hasBody: true,
|
|
86
86
|
shape: {
|
|
87
|
-
account: accountField(),
|
|
87
|
+
account: accountField(() => registry.accountAliases()),
|
|
88
88
|
id: z.string().min(1).describe("The ID of the label to update."),
|
|
89
89
|
userId: z.string().min(1).describe("The user's email address. The special value `me` can be used to indicate the authenticated user."),
|
|
90
90
|
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."),
|
|
91
91
|
fields: z.string().optional().describe('Response field mask.'),
|
|
92
92
|
},
|
|
93
|
-
});
|
|
93
|
+
}, deps);
|
|
94
94
|
registerGeneratedTool(registry, {
|
|
95
95
|
name: "gmail_users_messages_import",
|
|
96
96
|
cud: "create",
|
|
@@ -99,7 +99,7 @@ export function registerGmailGeneratedTools(registry) {
|
|
|
99
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" }],
|
|
100
100
|
hasBody: true,
|
|
101
101
|
shape: {
|
|
102
|
-
account: accountField(),
|
|
102
|
+
account: accountField(() => registry.accountAliases()),
|
|
103
103
|
userId: z.string().min(1).describe("The user's email address. The special value `me` can be used to indicate the authenticated user."),
|
|
104
104
|
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(),
|
|
105
105
|
internalDateSource: z.enum(["receivedTime", "dateHeader"]).describe("Source for Gmail's internal date of the message.").optional(),
|
|
@@ -108,7 +108,7 @@ export function registerGmailGeneratedTools(registry) {
|
|
|
108
108
|
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."),
|
|
109
109
|
fields: z.string().optional().describe('Response field mask.'),
|
|
110
110
|
},
|
|
111
|
-
});
|
|
111
|
+
}, deps);
|
|
112
112
|
registerGeneratedTool(registry, {
|
|
113
113
|
name: "gmail_users_messages_insert",
|
|
114
114
|
cud: "create",
|
|
@@ -117,14 +117,14 @@ export function registerGmailGeneratedTools(registry) {
|
|
|
117
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" }],
|
|
118
118
|
hasBody: true,
|
|
119
119
|
shape: {
|
|
120
|
-
account: accountField(),
|
|
120
|
+
account: accountField(() => registry.accountAliases()),
|
|
121
121
|
userId: z.string().min(1).describe("The user's email address. The special value `me` can be used to indicate the authenticated user."),
|
|
122
122
|
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(),
|
|
123
123
|
internalDateSource: z.enum(["receivedTime", "dateHeader"]).describe("Source for Gmail's internal date of the message.").optional(),
|
|
124
124
|
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."),
|
|
125
125
|
fields: z.string().optional().describe('Response field mask.'),
|
|
126
126
|
},
|
|
127
|
-
});
|
|
127
|
+
}, deps);
|
|
128
128
|
registerGeneratedTool(registry, {
|
|
129
129
|
name: "gmail_users_messages_untrash",
|
|
130
130
|
cud: "update",
|
|
@@ -133,12 +133,12 @@ export function registerGmailGeneratedTools(registry) {
|
|
|
133
133
|
params: [{ "field": "id", "api": "id", "location": "path" }, { "field": "userId", "api": "userId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
134
134
|
hasBody: false,
|
|
135
135
|
shape: {
|
|
136
|
-
account: accountField(),
|
|
136
|
+
account: accountField(() => registry.accountAliases()),
|
|
137
137
|
id: z.string().min(1).describe("The ID of the message to remove from Trash."),
|
|
138
138
|
userId: z.string().min(1).describe("The user's email address. The special value `me` can be used to indicate the authenticated user."),
|
|
139
139
|
fields: z.string().optional().describe('Response field mask.'),
|
|
140
140
|
},
|
|
141
|
-
});
|
|
141
|
+
}, deps);
|
|
142
142
|
registerGeneratedTool(registry, {
|
|
143
143
|
name: "gmail_users_settings_cse_identities_create",
|
|
144
144
|
cud: "create",
|
|
@@ -147,12 +147,12 @@ export function registerGmailGeneratedTools(registry) {
|
|
|
147
147
|
params: [{ "field": "userId", "api": "userId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
148
148
|
hasBody: true,
|
|
149
149
|
shape: {
|
|
150
|
-
account: accountField(),
|
|
150
|
+
account: accountField(() => registry.accountAliases()),
|
|
151
151
|
userId: z.string().min(1).describe("The requester's primary email address. To indicate the authenticated user, you can use the special value `me`."),
|
|
152
152
|
body: coerceJson(z.record(z.string(), z.unknown())).describe("CseIdentity JSON request body. Top-level fields: emailAddress, primaryKeyPairId, signAndEncryptKeyPairs."),
|
|
153
153
|
fields: z.string().optional().describe('Response field mask.'),
|
|
154
154
|
},
|
|
155
|
-
});
|
|
155
|
+
}, deps);
|
|
156
156
|
registerGeneratedTool(registry, {
|
|
157
157
|
name: "gmail_users_settings_cse_identities_delete",
|
|
158
158
|
cud: "delete",
|
|
@@ -161,12 +161,12 @@ export function registerGmailGeneratedTools(registry) {
|
|
|
161
161
|
params: [{ "field": "cseEmailAddress", "api": "cseEmailAddress", "location": "path" }, { "field": "userId", "api": "userId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
162
162
|
hasBody: false,
|
|
163
163
|
shape: {
|
|
164
|
-
account: accountField(),
|
|
164
|
+
account: accountField(() => registry.accountAliases()),
|
|
165
165
|
cseEmailAddress: z.string().min(1).describe("The primary email address associated with the client-side encryption identity configuration that's removed."),
|
|
166
166
|
userId: z.string().min(1).describe("The requester's primary email address. To indicate the authenticated user, you can use the special value `me`."),
|
|
167
167
|
fields: z.string().optional().describe('Response field mask.'),
|
|
168
168
|
},
|
|
169
|
-
});
|
|
169
|
+
}, deps);
|
|
170
170
|
registerGeneratedTool(registry, {
|
|
171
171
|
name: "gmail_users_settings_cse_identities_get",
|
|
172
172
|
cud: "read",
|
|
@@ -175,12 +175,12 @@ export function registerGmailGeneratedTools(registry) {
|
|
|
175
175
|
params: [{ "field": "cseEmailAddress", "api": "cseEmailAddress", "location": "path" }, { "field": "userId", "api": "userId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
176
176
|
hasBody: false,
|
|
177
177
|
shape: {
|
|
178
|
-
account: accountField(),
|
|
178
|
+
account: accountField(() => registry.accountAliases()),
|
|
179
179
|
cseEmailAddress: z.string().min(1).describe("The primary email address associated with the client-side encryption identity configuration that's retrieved."),
|
|
180
180
|
userId: z.string().min(1).describe("The requester's primary email address. To indicate the authenticated user, you can use the special value `me`."),
|
|
181
181
|
fields: z.string().optional().describe('Response field mask.'),
|
|
182
182
|
},
|
|
183
|
-
});
|
|
183
|
+
}, deps);
|
|
184
184
|
registerGeneratedTool(registry, {
|
|
185
185
|
name: "gmail_users_settings_cse_identities_list",
|
|
186
186
|
cud: "read",
|
|
@@ -189,13 +189,13 @@ export function registerGmailGeneratedTools(registry) {
|
|
|
189
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" }],
|
|
190
190
|
hasBody: false,
|
|
191
191
|
shape: {
|
|
192
|
-
account: accountField(),
|
|
192
|
+
account: accountField(() => registry.accountAliases()),
|
|
193
193
|
userId: z.string().min(1).describe("The requester's primary email address. To indicate the authenticated user, you can use the special value `me`."),
|
|
194
194
|
pageSize: z.number().describe("The number of identities to return. If not provided, the page size will default to 20 entries.").optional(),
|
|
195
195
|
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(),
|
|
196
196
|
fields: z.string().optional().describe('Response field mask.'),
|
|
197
197
|
},
|
|
198
|
-
});
|
|
198
|
+
}, deps);
|
|
199
199
|
registerGeneratedTool(registry, {
|
|
200
200
|
name: "gmail_users_settings_cse_identities_patch",
|
|
201
201
|
cud: "update",
|
|
@@ -204,13 +204,13 @@ export function registerGmailGeneratedTools(registry) {
|
|
|
204
204
|
params: [{ "field": "emailAddress", "api": "emailAddress", "location": "path" }, { "field": "userId", "api": "userId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
205
205
|
hasBody: true,
|
|
206
206
|
shape: {
|
|
207
|
-
account: accountField(),
|
|
207
|
+
account: accountField(() => registry.accountAliases()),
|
|
208
208
|
emailAddress: z.string().min(1).describe("The email address of the client-side encryption identity to update."),
|
|
209
209
|
userId: z.string().min(1).describe("The requester's primary email address. To indicate the authenticated user, you can use the special value `me`."),
|
|
210
210
|
body: coerceJson(z.record(z.string(), z.unknown())).describe("CseIdentity JSON request body. Top-level fields: emailAddress, primaryKeyPairId, signAndEncryptKeyPairs."),
|
|
211
211
|
fields: z.string().optional().describe('Response field mask.'),
|
|
212
212
|
},
|
|
213
|
-
});
|
|
213
|
+
}, deps);
|
|
214
214
|
registerGeneratedTool(registry, {
|
|
215
215
|
name: "gmail_users_settings_cse_keypairs_create",
|
|
216
216
|
cud: "create",
|
|
@@ -219,13 +219,13 @@ export function registerGmailGeneratedTools(registry) {
|
|
|
219
219
|
params: [{ "field": "userId", "api": "userId", "location": "path" }, { "field": "chainValidation", "api": "chainValidation", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
220
220
|
hasBody: true,
|
|
221
221
|
shape: {
|
|
222
|
-
account: accountField(),
|
|
222
|
+
account: accountField(() => registry.accountAliases()),
|
|
223
223
|
userId: z.string().min(1).describe("The requester's primary email address. To indicate the authenticated user, you can use the special value `me`."),
|
|
224
224
|
chainValidation: z.enum(["all", "none"]).describe("The type of certificate chain validation to perform at creation. The request will be rejected if the uploaded chain fails to satisfy the requested validation checks. When unspecified, this parameter d").optional(),
|
|
225
225
|
body: coerceJson(z.record(z.string(), z.unknown())).describe("CseKeyPair JSON request body. Top-level fields: disableTime, enablementState, keyPairId, pem, pkcs7, privateKeyMetadata, subjectEmailAddresses."),
|
|
226
226
|
fields: z.string().optional().describe('Response field mask.'),
|
|
227
227
|
},
|
|
228
|
-
});
|
|
228
|
+
}, deps);
|
|
229
229
|
registerGeneratedTool(registry, {
|
|
230
230
|
name: "gmail_users_settings_cse_keypairs_disable",
|
|
231
231
|
cud: "update",
|
|
@@ -235,12 +235,12 @@ export function registerGmailGeneratedTools(registry) {
|
|
|
235
235
|
hasBody: true,
|
|
236
236
|
bodyParams: [],
|
|
237
237
|
shape: {
|
|
238
|
-
account: accountField(),
|
|
238
|
+
account: accountField(() => registry.accountAliases()),
|
|
239
239
|
keyPairId: z.string().min(1).describe("The identifier of the key pair to turn off."),
|
|
240
240
|
userId: z.string().min(1).describe("The requester's primary email address. To indicate the authenticated user, you can use the special value `me`."),
|
|
241
241
|
fields: z.string().optional().describe('Response field mask.'),
|
|
242
242
|
},
|
|
243
|
-
});
|
|
243
|
+
}, deps);
|
|
244
244
|
registerGeneratedTool(registry, {
|
|
245
245
|
name: "gmail_users_settings_cse_keypairs_enable",
|
|
246
246
|
cud: "update",
|
|
@@ -250,12 +250,12 @@ export function registerGmailGeneratedTools(registry) {
|
|
|
250
250
|
hasBody: true,
|
|
251
251
|
bodyParams: [],
|
|
252
252
|
shape: {
|
|
253
|
-
account: accountField(),
|
|
253
|
+
account: accountField(() => registry.accountAliases()),
|
|
254
254
|
keyPairId: z.string().min(1).describe("The identifier of the key pair to turn on."),
|
|
255
255
|
userId: z.string().min(1).describe("The requester's primary email address. To indicate the authenticated user, you can use the special value `me`."),
|
|
256
256
|
fields: z.string().optional().describe('Response field mask.'),
|
|
257
257
|
},
|
|
258
|
-
});
|
|
258
|
+
}, deps);
|
|
259
259
|
registerGeneratedTool(registry, {
|
|
260
260
|
name: "gmail_users_settings_cse_keypairs_get",
|
|
261
261
|
cud: "read",
|
|
@@ -264,12 +264,12 @@ export function registerGmailGeneratedTools(registry) {
|
|
|
264
264
|
params: [{ "field": "keyPairId", "api": "keyPairId", "location": "path" }, { "field": "userId", "api": "userId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
265
265
|
hasBody: false,
|
|
266
266
|
shape: {
|
|
267
|
-
account: accountField(),
|
|
267
|
+
account: accountField(() => registry.accountAliases()),
|
|
268
268
|
keyPairId: z.string().min(1).describe("The identifier of the key pair to retrieve."),
|
|
269
269
|
userId: z.string().min(1).describe("The requester's primary email address. To indicate the authenticated user, you can use the special value `me`."),
|
|
270
270
|
fields: z.string().optional().describe('Response field mask.'),
|
|
271
271
|
},
|
|
272
|
-
});
|
|
272
|
+
}, deps);
|
|
273
273
|
registerGeneratedTool(registry, {
|
|
274
274
|
name: "gmail_users_settings_cse_keypairs_list",
|
|
275
275
|
cud: "read",
|
|
@@ -278,13 +278,13 @@ export function registerGmailGeneratedTools(registry) {
|
|
|
278
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" }],
|
|
279
279
|
hasBody: false,
|
|
280
280
|
shape: {
|
|
281
|
-
account: accountField(),
|
|
281
|
+
account: accountField(() => registry.accountAliases()),
|
|
282
282
|
userId: z.string().min(1).describe("The requester's primary email address. To indicate the authenticated user, you can use the special value `me`."),
|
|
283
283
|
pageSize: z.number().describe("The number of key pairs to return. If not provided, the page size will default to 20 entries.").optional(),
|
|
284
284
|
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(),
|
|
285
285
|
fields: z.string().optional().describe('Response field mask.'),
|
|
286
286
|
},
|
|
287
|
-
});
|
|
287
|
+
}, deps);
|
|
288
288
|
registerGeneratedTool(registry, {
|
|
289
289
|
name: "gmail_users_settings_cse_keypairs_obliterate",
|
|
290
290
|
cud: "delete",
|
|
@@ -294,12 +294,12 @@ export function registerGmailGeneratedTools(registry) {
|
|
|
294
294
|
hasBody: true,
|
|
295
295
|
bodyParams: [],
|
|
296
296
|
shape: {
|
|
297
|
-
account: accountField(),
|
|
297
|
+
account: accountField(() => registry.accountAliases()),
|
|
298
298
|
keyPairId: z.string().min(1).describe("The identifier of the key pair to obliterate."),
|
|
299
299
|
userId: z.string().min(1).describe("The requester's primary email address. To indicate the authenticated user, you can use the special value `me`."),
|
|
300
300
|
fields: z.string().optional().describe('Response field mask.'),
|
|
301
301
|
},
|
|
302
|
-
});
|
|
302
|
+
}, deps);
|
|
303
303
|
registerGeneratedTool(registry, {
|
|
304
304
|
name: "gmail_users_settings_delegates_create",
|
|
305
305
|
cud: "create",
|
|
@@ -309,13 +309,13 @@ export function registerGmailGeneratedTools(registry) {
|
|
|
309
309
|
hasBody: true,
|
|
310
310
|
bodyParams: [{ "field": "delegateEmail", "api": "delegateEmail" }, { "field": "verificationStatus", "api": "verificationStatus" }],
|
|
311
311
|
shape: {
|
|
312
|
-
account: accountField(),
|
|
312
|
+
account: accountField(() => registry.accountAliases()),
|
|
313
313
|
userId: z.string().min(1).describe("User's email address. The special value \"me\" can be used to indicate the authenticated user."),
|
|
314
314
|
delegateEmail: z.string().describe("The email address of the delegate.").optional(),
|
|
315
315
|
verificationStatus: z.enum(["verificationStatusUnspecified", "accepted", "pending", "rejected", "expired"]).describe("Indicates whether this address has been verified and can act as a delegate for the account. Read-only.").optional(),
|
|
316
316
|
fields: z.string().optional().describe('Response field mask.'),
|
|
317
317
|
},
|
|
318
|
-
});
|
|
318
|
+
}, deps);
|
|
319
319
|
registerGeneratedTool(registry, {
|
|
320
320
|
name: "gmail_users_settings_delegates_delete",
|
|
321
321
|
cud: "delete",
|
|
@@ -324,12 +324,12 @@ export function registerGmailGeneratedTools(registry) {
|
|
|
324
324
|
params: [{ "field": "delegateEmail", "api": "delegateEmail", "location": "path" }, { "field": "userId", "api": "userId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
325
325
|
hasBody: false,
|
|
326
326
|
shape: {
|
|
327
|
-
account: accountField(),
|
|
327
|
+
account: accountField(() => registry.accountAliases()),
|
|
328
328
|
delegateEmail: z.string().min(1).describe("The email address of the user to be removed as a delegate."),
|
|
329
329
|
userId: z.string().min(1).describe("User's email address. The special value \"me\" can be used to indicate the authenticated user."),
|
|
330
330
|
fields: z.string().optional().describe('Response field mask.'),
|
|
331
331
|
},
|
|
332
|
-
});
|
|
332
|
+
}, deps);
|
|
333
333
|
registerGeneratedTool(registry, {
|
|
334
334
|
name: "gmail_users_settings_delegates_get",
|
|
335
335
|
cud: "read",
|
|
@@ -338,12 +338,12 @@ export function registerGmailGeneratedTools(registry) {
|
|
|
338
338
|
params: [{ "field": "delegateEmail", "api": "delegateEmail", "location": "path" }, { "field": "userId", "api": "userId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
339
339
|
hasBody: false,
|
|
340
340
|
shape: {
|
|
341
|
-
account: accountField(),
|
|
341
|
+
account: accountField(() => registry.accountAliases()),
|
|
342
342
|
delegateEmail: z.string().min(1).describe("The email address of the user whose delegate relationship is to be retrieved."),
|
|
343
343
|
userId: z.string().min(1).describe("User's email address. The special value \"me\" can be used to indicate the authenticated user."),
|
|
344
344
|
fields: z.string().optional().describe('Response field mask.'),
|
|
345
345
|
},
|
|
346
|
-
});
|
|
346
|
+
}, deps);
|
|
347
347
|
registerGeneratedTool(registry, {
|
|
348
348
|
name: "gmail_users_settings_delegates_list",
|
|
349
349
|
cud: "read",
|
|
@@ -352,11 +352,11 @@ export function registerGmailGeneratedTools(registry) {
|
|
|
352
352
|
params: [{ "field": "userId", "api": "userId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
353
353
|
hasBody: false,
|
|
354
354
|
shape: {
|
|
355
|
-
account: accountField(),
|
|
355
|
+
account: accountField(() => registry.accountAliases()),
|
|
356
356
|
userId: z.string().min(1).describe("User's email address. The special value \"me\" can be used to indicate the authenticated user."),
|
|
357
357
|
fields: z.string().optional().describe('Response field mask.'),
|
|
358
358
|
},
|
|
359
|
-
});
|
|
359
|
+
}, deps);
|
|
360
360
|
registerGeneratedTool(registry, {
|
|
361
361
|
name: "gmail_users_settings_filters_create",
|
|
362
362
|
cud: "create",
|
|
@@ -365,12 +365,12 @@ export function registerGmailGeneratedTools(registry) {
|
|
|
365
365
|
params: [{ "field": "userId", "api": "userId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
366
366
|
hasBody: true,
|
|
367
367
|
shape: {
|
|
368
|
-
account: accountField(),
|
|
368
|
+
account: accountField(() => registry.accountAliases()),
|
|
369
369
|
userId: z.string().min(1).describe("User's email address. The special value \"me\" can be used to indicate the authenticated user."),
|
|
370
370
|
body: coerceJson(z.record(z.string(), z.unknown())).describe("Filter JSON request body. Top-level fields: action, criteria, id."),
|
|
371
371
|
fields: z.string().optional().describe('Response field mask.'),
|
|
372
372
|
},
|
|
373
|
-
});
|
|
373
|
+
}, deps);
|
|
374
374
|
registerGeneratedTool(registry, {
|
|
375
375
|
name: "gmail_users_settings_filters_delete",
|
|
376
376
|
cud: "delete",
|
|
@@ -379,12 +379,12 @@ export function registerGmailGeneratedTools(registry) {
|
|
|
379
379
|
params: [{ "field": "id", "api": "id", "location": "path" }, { "field": "userId", "api": "userId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
380
380
|
hasBody: false,
|
|
381
381
|
shape: {
|
|
382
|
-
account: accountField(),
|
|
382
|
+
account: accountField(() => registry.accountAliases()),
|
|
383
383
|
id: z.string().min(1).describe("The ID of the filter to be deleted."),
|
|
384
384
|
userId: z.string().min(1).describe("User's email address. The special value \"me\" can be used to indicate the authenticated user."),
|
|
385
385
|
fields: z.string().optional().describe('Response field mask.'),
|
|
386
386
|
},
|
|
387
|
-
});
|
|
387
|
+
}, deps);
|
|
388
388
|
registerGeneratedTool(registry, {
|
|
389
389
|
name: "gmail_users_settings_filters_get",
|
|
390
390
|
cud: "read",
|
|
@@ -393,12 +393,12 @@ export function registerGmailGeneratedTools(registry) {
|
|
|
393
393
|
params: [{ "field": "id", "api": "id", "location": "path" }, { "field": "userId", "api": "userId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
394
394
|
hasBody: false,
|
|
395
395
|
shape: {
|
|
396
|
-
account: accountField(),
|
|
396
|
+
account: accountField(() => registry.accountAliases()),
|
|
397
397
|
id: z.string().min(1).describe("The ID of the filter to be fetched."),
|
|
398
398
|
userId: z.string().min(1).describe("User's email address. The special value \"me\" can be used to indicate the authenticated user."),
|
|
399
399
|
fields: z.string().optional().describe('Response field mask.'),
|
|
400
400
|
},
|
|
401
|
-
});
|
|
401
|
+
}, deps);
|
|
402
402
|
registerGeneratedTool(registry, {
|
|
403
403
|
name: "gmail_users_settings_filters_list",
|
|
404
404
|
cud: "read",
|
|
@@ -407,11 +407,11 @@ export function registerGmailGeneratedTools(registry) {
|
|
|
407
407
|
params: [{ "field": "userId", "api": "userId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
408
408
|
hasBody: false,
|
|
409
409
|
shape: {
|
|
410
|
-
account: accountField(),
|
|
410
|
+
account: accountField(() => registry.accountAliases()),
|
|
411
411
|
userId: z.string().min(1).describe("User's email address. The special value \"me\" can be used to indicate the authenticated user."),
|
|
412
412
|
fields: z.string().optional().describe('Response field mask.'),
|
|
413
413
|
},
|
|
414
|
-
});
|
|
414
|
+
}, deps);
|
|
415
415
|
registerGeneratedTool(registry, {
|
|
416
416
|
name: "gmail_users_settings_forwarding_addresses_create",
|
|
417
417
|
cud: "create",
|
|
@@ -421,13 +421,13 @@ export function registerGmailGeneratedTools(registry) {
|
|
|
421
421
|
hasBody: true,
|
|
422
422
|
bodyParams: [{ "field": "forwardingEmail", "api": "forwardingEmail" }, { "field": "verificationStatus", "api": "verificationStatus" }],
|
|
423
423
|
shape: {
|
|
424
|
-
account: accountField(),
|
|
424
|
+
account: accountField(() => registry.accountAliases()),
|
|
425
425
|
userId: z.string().min(1).describe("User's email address. The special value \"me\" can be used to indicate the authenticated user."),
|
|
426
426
|
forwardingEmail: z.string().describe("An email address to which messages can be forwarded.").optional(),
|
|
427
427
|
verificationStatus: z.enum(["verificationStatusUnspecified", "accepted", "pending"]).describe("Indicates whether this address has been verified and is usable for forwarding. Read-only.").optional(),
|
|
428
428
|
fields: z.string().optional().describe('Response field mask.'),
|
|
429
429
|
},
|
|
430
|
-
});
|
|
430
|
+
}, deps);
|
|
431
431
|
registerGeneratedTool(registry, {
|
|
432
432
|
name: "gmail_users_settings_forwarding_addresses_delete",
|
|
433
433
|
cud: "delete",
|
|
@@ -436,12 +436,12 @@ export function registerGmailGeneratedTools(registry) {
|
|
|
436
436
|
params: [{ "field": "forwardingEmail", "api": "forwardingEmail", "location": "path" }, { "field": "userId", "api": "userId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
437
437
|
hasBody: false,
|
|
438
438
|
shape: {
|
|
439
|
-
account: accountField(),
|
|
439
|
+
account: accountField(() => registry.accountAliases()),
|
|
440
440
|
forwardingEmail: z.string().min(1).describe("The forwarding address to be deleted."),
|
|
441
441
|
userId: z.string().min(1).describe("User's email address. The special value \"me\" can be used to indicate the authenticated user."),
|
|
442
442
|
fields: z.string().optional().describe('Response field mask.'),
|
|
443
443
|
},
|
|
444
|
-
});
|
|
444
|
+
}, deps);
|
|
445
445
|
registerGeneratedTool(registry, {
|
|
446
446
|
name: "gmail_users_settings_forwarding_addresses_get",
|
|
447
447
|
cud: "read",
|
|
@@ -450,12 +450,12 @@ export function registerGmailGeneratedTools(registry) {
|
|
|
450
450
|
params: [{ "field": "forwardingEmail", "api": "forwardingEmail", "location": "path" }, { "field": "userId", "api": "userId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
451
451
|
hasBody: false,
|
|
452
452
|
shape: {
|
|
453
|
-
account: accountField(),
|
|
453
|
+
account: accountField(() => registry.accountAliases()),
|
|
454
454
|
forwardingEmail: z.string().min(1).describe("The forwarding address to be retrieved."),
|
|
455
455
|
userId: z.string().min(1).describe("User's email address. The special value \"me\" can be used to indicate the authenticated user."),
|
|
456
456
|
fields: z.string().optional().describe('Response field mask.'),
|
|
457
457
|
},
|
|
458
|
-
});
|
|
458
|
+
}, deps);
|
|
459
459
|
registerGeneratedTool(registry, {
|
|
460
460
|
name: "gmail_users_settings_forwarding_addresses_list",
|
|
461
461
|
cud: "read",
|
|
@@ -464,11 +464,11 @@ export function registerGmailGeneratedTools(registry) {
|
|
|
464
464
|
params: [{ "field": "userId", "api": "userId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
465
465
|
hasBody: false,
|
|
466
466
|
shape: {
|
|
467
|
-
account: accountField(),
|
|
467
|
+
account: accountField(() => registry.accountAliases()),
|
|
468
468
|
userId: z.string().min(1).describe("User's email address. The special value \"me\" can be used to indicate the authenticated user."),
|
|
469
469
|
fields: z.string().optional().describe('Response field mask.'),
|
|
470
470
|
},
|
|
471
|
-
});
|
|
471
|
+
}, deps);
|
|
472
472
|
registerGeneratedTool(registry, {
|
|
473
473
|
name: "gmail_users_settings_get_auto_forwarding",
|
|
474
474
|
cud: "read",
|
|
@@ -477,11 +477,11 @@ export function registerGmailGeneratedTools(registry) {
|
|
|
477
477
|
params: [{ "field": "userId", "api": "userId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
478
478
|
hasBody: false,
|
|
479
479
|
shape: {
|
|
480
|
-
account: accountField(),
|
|
480
|
+
account: accountField(() => registry.accountAliases()),
|
|
481
481
|
userId: z.string().min(1).describe("User's email address. The special value \"me\" can be used to indicate the authenticated user."),
|
|
482
482
|
fields: z.string().optional().describe('Response field mask.'),
|
|
483
483
|
},
|
|
484
|
-
});
|
|
484
|
+
}, deps);
|
|
485
485
|
registerGeneratedTool(registry, {
|
|
486
486
|
name: "gmail_users_settings_get_imap",
|
|
487
487
|
cud: "read",
|
|
@@ -490,11 +490,11 @@ export function registerGmailGeneratedTools(registry) {
|
|
|
490
490
|
params: [{ "field": "userId", "api": "userId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
491
491
|
hasBody: false,
|
|
492
492
|
shape: {
|
|
493
|
-
account: accountField(),
|
|
493
|
+
account: accountField(() => registry.accountAliases()),
|
|
494
494
|
userId: z.string().min(1).describe("User's email address. The special value \"me\" can be used to indicate the authenticated user."),
|
|
495
495
|
fields: z.string().optional().describe('Response field mask.'),
|
|
496
496
|
},
|
|
497
|
-
});
|
|
497
|
+
}, deps);
|
|
498
498
|
registerGeneratedTool(registry, {
|
|
499
499
|
name: "gmail_users_settings_get_language",
|
|
500
500
|
cud: "read",
|
|
@@ -503,11 +503,11 @@ export function registerGmailGeneratedTools(registry) {
|
|
|
503
503
|
params: [{ "field": "userId", "api": "userId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
504
504
|
hasBody: false,
|
|
505
505
|
shape: {
|
|
506
|
-
account: accountField(),
|
|
506
|
+
account: accountField(() => registry.accountAliases()),
|
|
507
507
|
userId: z.string().min(1).describe("User's email address. The special value \"me\" can be used to indicate the authenticated user."),
|
|
508
508
|
fields: z.string().optional().describe('Response field mask.'),
|
|
509
509
|
},
|
|
510
|
-
});
|
|
510
|
+
}, deps);
|
|
511
511
|
registerGeneratedTool(registry, {
|
|
512
512
|
name: "gmail_users_settings_get_pop",
|
|
513
513
|
cud: "read",
|
|
@@ -516,11 +516,11 @@ export function registerGmailGeneratedTools(registry) {
|
|
|
516
516
|
params: [{ "field": "userId", "api": "userId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
517
517
|
hasBody: false,
|
|
518
518
|
shape: {
|
|
519
|
-
account: accountField(),
|
|
519
|
+
account: accountField(() => registry.accountAliases()),
|
|
520
520
|
userId: z.string().min(1).describe("User's email address. The special value \"me\" can be used to indicate the authenticated user."),
|
|
521
521
|
fields: z.string().optional().describe('Response field mask.'),
|
|
522
522
|
},
|
|
523
|
-
});
|
|
523
|
+
}, deps);
|
|
524
524
|
registerGeneratedTool(registry, {
|
|
525
525
|
name: "gmail_users_settings_send_as_create",
|
|
526
526
|
cud: "create",
|
|
@@ -529,12 +529,12 @@ export function registerGmailGeneratedTools(registry) {
|
|
|
529
529
|
params: [{ "field": "userId", "api": "userId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
530
530
|
hasBody: true,
|
|
531
531
|
shape: {
|
|
532
|
-
account: accountField(),
|
|
532
|
+
account: accountField(() => registry.accountAliases()),
|
|
533
533
|
userId: z.string().min(1).describe("User's email address. The special value \"me\" can be used to indicate the authenticated user."),
|
|
534
534
|
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."),
|
|
535
535
|
fields: z.string().optional().describe('Response field mask.'),
|
|
536
536
|
},
|
|
537
|
-
});
|
|
537
|
+
}, deps);
|
|
538
538
|
registerGeneratedTool(registry, {
|
|
539
539
|
name: "gmail_users_settings_send_as_delete",
|
|
540
540
|
cud: "delete",
|
|
@@ -543,12 +543,12 @@ export function registerGmailGeneratedTools(registry) {
|
|
|
543
543
|
params: [{ "field": "sendAsEmail", "api": "sendAsEmail", "location": "path" }, { "field": "userId", "api": "userId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
544
544
|
hasBody: false,
|
|
545
545
|
shape: {
|
|
546
|
-
account: accountField(),
|
|
546
|
+
account: accountField(() => registry.accountAliases()),
|
|
547
547
|
sendAsEmail: z.string().min(1).describe("The send-as alias to be deleted."),
|
|
548
548
|
userId: z.string().min(1).describe("User's email address. The special value \"me\" can be used to indicate the authenticated user."),
|
|
549
549
|
fields: z.string().optional().describe('Response field mask.'),
|
|
550
550
|
},
|
|
551
|
-
});
|
|
551
|
+
}, deps);
|
|
552
552
|
registerGeneratedTool(registry, {
|
|
553
553
|
name: "gmail_users_settings_send_as_get",
|
|
554
554
|
cud: "read",
|
|
@@ -557,12 +557,12 @@ export function registerGmailGeneratedTools(registry) {
|
|
|
557
557
|
params: [{ "field": "sendAsEmail", "api": "sendAsEmail", "location": "path" }, { "field": "userId", "api": "userId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
558
558
|
hasBody: false,
|
|
559
559
|
shape: {
|
|
560
|
-
account: accountField(),
|
|
560
|
+
account: accountField(() => registry.accountAliases()),
|
|
561
561
|
sendAsEmail: z.string().min(1).describe("The send-as alias to be retrieved."),
|
|
562
562
|
userId: z.string().min(1).describe("User's email address. The special value \"me\" can be used to indicate the authenticated user."),
|
|
563
563
|
fields: z.string().optional().describe('Response field mask.'),
|
|
564
564
|
},
|
|
565
|
-
});
|
|
565
|
+
}, deps);
|
|
566
566
|
registerGeneratedTool(registry, {
|
|
567
567
|
name: "gmail_users_settings_send_as_list",
|
|
568
568
|
cud: "read",
|
|
@@ -571,11 +571,11 @@ export function registerGmailGeneratedTools(registry) {
|
|
|
571
571
|
params: [{ "field": "userId", "api": "userId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
572
572
|
hasBody: false,
|
|
573
573
|
shape: {
|
|
574
|
-
account: accountField(),
|
|
574
|
+
account: accountField(() => registry.accountAliases()),
|
|
575
575
|
userId: z.string().min(1).describe("User's email address. The special value \"me\" can be used to indicate the authenticated user."),
|
|
576
576
|
fields: z.string().optional().describe('Response field mask.'),
|
|
577
577
|
},
|
|
578
|
-
});
|
|
578
|
+
}, deps);
|
|
579
579
|
registerGeneratedTool(registry, {
|
|
580
580
|
name: "gmail_users_settings_send_as_patch",
|
|
581
581
|
cud: "update",
|
|
@@ -584,13 +584,13 @@ export function registerGmailGeneratedTools(registry) {
|
|
|
584
584
|
params: [{ "field": "sendAsEmail", "api": "sendAsEmail", "location": "path" }, { "field": "userId", "api": "userId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
585
585
|
hasBody: true,
|
|
586
586
|
shape: {
|
|
587
|
-
account: accountField(),
|
|
587
|
+
account: accountField(() => registry.accountAliases()),
|
|
588
588
|
sendAsEmail: z.string().min(1).describe("The send-as alias to be updated."),
|
|
589
589
|
userId: z.string().min(1).describe("User's email address. The special value \"me\" can be used to indicate the authenticated user."),
|
|
590
590
|
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."),
|
|
591
591
|
fields: z.string().optional().describe('Response field mask.'),
|
|
592
592
|
},
|
|
593
|
-
});
|
|
593
|
+
}, deps);
|
|
594
594
|
registerGeneratedTool(registry, {
|
|
595
595
|
name: "gmail_users_settings_send_as_smime_info_delete",
|
|
596
596
|
cud: "delete",
|
|
@@ -599,13 +599,13 @@ export function registerGmailGeneratedTools(registry) {
|
|
|
599
599
|
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" }],
|
|
600
600
|
hasBody: false,
|
|
601
601
|
shape: {
|
|
602
|
-
account: accountField(),
|
|
602
|
+
account: accountField(() => registry.accountAliases()),
|
|
603
603
|
id: z.string().min(1).describe("The immutable ID for the SmimeInfo."),
|
|
604
604
|
sendAsEmail: z.string().min(1).describe("The email address that appears in the \"From:\" header for mail sent using this alias."),
|
|
605
605
|
userId: z.string().min(1).describe("The user's email address. The special value `me` can be used to indicate the authenticated user."),
|
|
606
606
|
fields: z.string().optional().describe('Response field mask.'),
|
|
607
607
|
},
|
|
608
|
-
});
|
|
608
|
+
}, deps);
|
|
609
609
|
registerGeneratedTool(registry, {
|
|
610
610
|
name: "gmail_users_settings_send_as_smime_info_get",
|
|
611
611
|
cud: "read",
|
|
@@ -614,13 +614,13 @@ export function registerGmailGeneratedTools(registry) {
|
|
|
614
614
|
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" }],
|
|
615
615
|
hasBody: false,
|
|
616
616
|
shape: {
|
|
617
|
-
account: accountField(),
|
|
617
|
+
account: accountField(() => registry.accountAliases()),
|
|
618
618
|
id: z.string().min(1).describe("The immutable ID for the SmimeInfo."),
|
|
619
619
|
sendAsEmail: z.string().min(1).describe("The email address that appears in the \"From:\" header for mail sent using this alias."),
|
|
620
620
|
userId: z.string().min(1).describe("The user's email address. The special value `me` can be used to indicate the authenticated user."),
|
|
621
621
|
fields: z.string().optional().describe('Response field mask.'),
|
|
622
622
|
},
|
|
623
|
-
});
|
|
623
|
+
}, deps);
|
|
624
624
|
registerGeneratedTool(registry, {
|
|
625
625
|
name: "gmail_users_settings_send_as_smime_info_insert",
|
|
626
626
|
cud: "create",
|
|
@@ -630,7 +630,7 @@ export function registerGmailGeneratedTools(registry) {
|
|
|
630
630
|
hasBody: true,
|
|
631
631
|
bodyParams: [{ "field": "encryptedKeyPassword", "api": "encryptedKeyPassword" }, { "field": "expiration", "api": "expiration" }, { "field": "id", "api": "id" }, { "field": "isDefault", "api": "isDefault" }, { "field": "issuerCn", "api": "issuerCn" }, { "field": "pem", "api": "pem" }, { "field": "pkcs12", "api": "pkcs12" }],
|
|
632
632
|
shape: {
|
|
633
|
-
account: accountField(),
|
|
633
|
+
account: accountField(() => registry.accountAliases()),
|
|
634
634
|
sendAsEmail: z.string().min(1).describe("The email address that appears in the \"From:\" header for mail sent using this alias."),
|
|
635
635
|
userId: z.string().min(1).describe("The user's email address. The special value `me` can be used to indicate the authenticated user."),
|
|
636
636
|
encryptedKeyPassword: z.string().describe("Encrypted key password, when key is encrypted.").optional(),
|
|
@@ -642,7 +642,7 @@ export function registerGmailGeneratedTools(registry) {
|
|
|
642
642
|
pkcs12: z.string().describe("PKCS#12 format containing a single private/public key pair and certificate chain. This format is only accepted from client for creating a new SmimeInfo and is never returned, because the private key i").optional(),
|
|
643
643
|
fields: z.string().optional().describe('Response field mask.'),
|
|
644
644
|
},
|
|
645
|
-
});
|
|
645
|
+
}, deps);
|
|
646
646
|
registerGeneratedTool(registry, {
|
|
647
647
|
name: "gmail_users_settings_send_as_smime_info_list",
|
|
648
648
|
cud: "read",
|
|
@@ -651,12 +651,12 @@ export function registerGmailGeneratedTools(registry) {
|
|
|
651
651
|
params: [{ "field": "sendAsEmail", "api": "sendAsEmail", "location": "path" }, { "field": "userId", "api": "userId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
652
652
|
hasBody: false,
|
|
653
653
|
shape: {
|
|
654
|
-
account: accountField(),
|
|
654
|
+
account: accountField(() => registry.accountAliases()),
|
|
655
655
|
sendAsEmail: z.string().min(1).describe("The email address that appears in the \"From:\" header for mail sent using this alias."),
|
|
656
656
|
userId: z.string().min(1).describe("The user's email address. The special value `me` can be used to indicate the authenticated user."),
|
|
657
657
|
fields: z.string().optional().describe('Response field mask.'),
|
|
658
658
|
},
|
|
659
|
-
});
|
|
659
|
+
}, deps);
|
|
660
660
|
registerGeneratedTool(registry, {
|
|
661
661
|
name: "gmail_users_settings_send_as_smime_info_set_default",
|
|
662
662
|
cud: "update",
|
|
@@ -665,13 +665,13 @@ export function registerGmailGeneratedTools(registry) {
|
|
|
665
665
|
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" }],
|
|
666
666
|
hasBody: false,
|
|
667
667
|
shape: {
|
|
668
|
-
account: accountField(),
|
|
668
|
+
account: accountField(() => registry.accountAliases()),
|
|
669
669
|
id: z.string().min(1).describe("The immutable ID for the SmimeInfo."),
|
|
670
670
|
sendAsEmail: z.string().min(1).describe("The email address that appears in the \"From:\" header for mail sent using this alias."),
|
|
671
671
|
userId: z.string().min(1).describe("The user's email address. The special value `me` can be used to indicate the authenticated user."),
|
|
672
672
|
fields: z.string().optional().describe('Response field mask.'),
|
|
673
673
|
},
|
|
674
|
-
});
|
|
674
|
+
}, deps);
|
|
675
675
|
registerGeneratedTool(registry, {
|
|
676
676
|
name: "gmail_users_settings_send_as_update",
|
|
677
677
|
cud: "update",
|
|
@@ -680,13 +680,13 @@ export function registerGmailGeneratedTools(registry) {
|
|
|
680
680
|
params: [{ "field": "sendAsEmail", "api": "sendAsEmail", "location": "path" }, { "field": "userId", "api": "userId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
681
681
|
hasBody: true,
|
|
682
682
|
shape: {
|
|
683
|
-
account: accountField(),
|
|
683
|
+
account: accountField(() => registry.accountAliases()),
|
|
684
684
|
sendAsEmail: z.string().min(1).describe("The send-as alias to be updated."),
|
|
685
685
|
userId: z.string().min(1).describe("User's email address. The special value \"me\" can be used to indicate the authenticated user."),
|
|
686
686
|
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."),
|
|
687
687
|
fields: z.string().optional().describe('Response field mask.'),
|
|
688
688
|
},
|
|
689
|
-
});
|
|
689
|
+
}, deps);
|
|
690
690
|
registerGeneratedTool(registry, {
|
|
691
691
|
name: "gmail_users_settings_send_as_verify",
|
|
692
692
|
cud: "create",
|
|
@@ -695,12 +695,12 @@ export function registerGmailGeneratedTools(registry) {
|
|
|
695
695
|
params: [{ "field": "sendAsEmail", "api": "sendAsEmail", "location": "path" }, { "field": "userId", "api": "userId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
696
696
|
hasBody: false,
|
|
697
697
|
shape: {
|
|
698
|
-
account: accountField(),
|
|
698
|
+
account: accountField(() => registry.accountAliases()),
|
|
699
699
|
sendAsEmail: z.string().min(1).describe("The send-as alias to be verified."),
|
|
700
700
|
userId: z.string().min(1).describe("User's email address. The special value \"me\" can be used to indicate the authenticated user."),
|
|
701
701
|
fields: z.string().optional().describe('Response field mask.'),
|
|
702
702
|
},
|
|
703
|
-
});
|
|
703
|
+
}, deps);
|
|
704
704
|
registerGeneratedTool(registry, {
|
|
705
705
|
name: "gmail_users_settings_update_auto_forwarding",
|
|
706
706
|
cud: "update",
|
|
@@ -710,14 +710,14 @@ export function registerGmailGeneratedTools(registry) {
|
|
|
710
710
|
hasBody: true,
|
|
711
711
|
bodyParams: [{ "field": "disposition", "api": "disposition" }, { "field": "emailAddress", "api": "emailAddress" }, { "field": "enabled", "api": "enabled" }],
|
|
712
712
|
shape: {
|
|
713
|
-
account: accountField(),
|
|
713
|
+
account: accountField(() => registry.accountAliases()),
|
|
714
714
|
userId: z.string().min(1).describe("User's email address. The special value \"me\" can be used to indicate the authenticated user."),
|
|
715
715
|
disposition: z.enum(["dispositionUnspecified", "leaveInInbox", "archive", "trash", "markRead"]).describe("The state that a message should be left in after it has been forwarded.").optional(),
|
|
716
716
|
emailAddress: z.string().describe("Email address to which all incoming messages are forwarded. This email address must be a verified member of the forwarding addresses.").optional(),
|
|
717
717
|
enabled: coerceBoolean.describe("Whether all incoming mail is automatically forwarded to another address.").optional(),
|
|
718
718
|
fields: z.string().optional().describe('Response field mask.'),
|
|
719
719
|
},
|
|
720
|
-
});
|
|
720
|
+
}, deps);
|
|
721
721
|
registerGeneratedTool(registry, {
|
|
722
722
|
name: "gmail_users_settings_update_imap",
|
|
723
723
|
cud: "update",
|
|
@@ -727,7 +727,7 @@ export function registerGmailGeneratedTools(registry) {
|
|
|
727
727
|
hasBody: true,
|
|
728
728
|
bodyParams: [{ "field": "autoExpunge", "api": "autoExpunge" }, { "field": "enabled", "api": "enabled" }, { "field": "expungeBehavior", "api": "expungeBehavior" }, { "field": "maxFolderSize", "api": "maxFolderSize" }],
|
|
729
729
|
shape: {
|
|
730
|
-
account: accountField(),
|
|
730
|
+
account: accountField(() => registry.accountAliases()),
|
|
731
731
|
userId: z.string().min(1).describe("User's email address. The special value \"me\" can be used to indicate the authenticated user."),
|
|
732
732
|
autoExpunge: coerceBoolean.describe("If this value is true, Gmail will immediately expunge a message when it is marked as deleted in IMAP. Otherwise, Gmail will wait for an update from the client before expunging messages marked as delet").optional(),
|
|
733
733
|
enabled: coerceBoolean.describe("Whether IMAP is enabled for the account.").optional(),
|
|
@@ -735,7 +735,7 @@ export function registerGmailGeneratedTools(registry) {
|
|
|
735
735
|
maxFolderSize: z.number().describe("An optional limit on the number of messages that an IMAP folder may contain. Legal values are 0, 1000, 2000, 5000 or 10000. A value of zero is interpreted to mean that there is no limit.").optional(),
|
|
736
736
|
fields: z.string().optional().describe('Response field mask.'),
|
|
737
737
|
},
|
|
738
|
-
});
|
|
738
|
+
}, deps);
|
|
739
739
|
registerGeneratedTool(registry, {
|
|
740
740
|
name: "gmail_users_settings_update_language",
|
|
741
741
|
cud: "update",
|
|
@@ -745,12 +745,12 @@ export function registerGmailGeneratedTools(registry) {
|
|
|
745
745
|
hasBody: true,
|
|
746
746
|
bodyParams: [{ "field": "displayLanguage", "api": "displayLanguage" }],
|
|
747
747
|
shape: {
|
|
748
|
-
account: accountField(),
|
|
748
|
+
account: accountField(() => registry.accountAliases()),
|
|
749
749
|
userId: z.string().min(1).describe("User's email address. The special value \"me\" can be used to indicate the authenticated user."),
|
|
750
750
|
displayLanguage: z.string().describe("The language to display Gmail in, formatted as an RFC 3066 Language Tag (for example `en-GB`, `fr` or `ja` for British English, French, or Japanese respectively). The set of languages supported by Gma").optional(),
|
|
751
751
|
fields: z.string().optional().describe('Response field mask.'),
|
|
752
752
|
},
|
|
753
|
-
});
|
|
753
|
+
}, deps);
|
|
754
754
|
registerGeneratedTool(registry, {
|
|
755
755
|
name: "gmail_users_settings_update_pop",
|
|
756
756
|
cud: "update",
|
|
@@ -760,13 +760,13 @@ export function registerGmailGeneratedTools(registry) {
|
|
|
760
760
|
hasBody: true,
|
|
761
761
|
bodyParams: [{ "field": "accessWindow", "api": "accessWindow" }, { "field": "disposition", "api": "disposition" }],
|
|
762
762
|
shape: {
|
|
763
|
-
account: accountField(),
|
|
763
|
+
account: accountField(() => registry.accountAliases()),
|
|
764
764
|
userId: z.string().min(1).describe("User's email address. The special value \"me\" can be used to indicate the authenticated user."),
|
|
765
765
|
accessWindow: z.enum(["accessWindowUnspecified", "disabled", "fromNowOn", "allMail"]).describe("The range of messages which are accessible via POP.").optional(),
|
|
766
766
|
disposition: z.enum(["dispositionUnspecified", "leaveInInbox", "archive", "trash", "markRead"]).describe("The action that will be executed on a message after it has been fetched via POP.").optional(),
|
|
767
767
|
fields: z.string().optional().describe('Response field mask.'),
|
|
768
768
|
},
|
|
769
|
-
});
|
|
769
|
+
}, deps);
|
|
770
770
|
registerGeneratedTool(registry, {
|
|
771
771
|
name: "gmail_users_stop",
|
|
772
772
|
cud: "delete",
|
|
@@ -775,11 +775,11 @@ export function registerGmailGeneratedTools(registry) {
|
|
|
775
775
|
params: [{ "field": "userId", "api": "userId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
776
776
|
hasBody: false,
|
|
777
777
|
shape: {
|
|
778
|
-
account: accountField(),
|
|
778
|
+
account: accountField(() => registry.accountAliases()),
|
|
779
779
|
userId: z.string().min(1).describe("The user's email address. The special value `me` can be used to indicate the authenticated user."),
|
|
780
780
|
fields: z.string().optional().describe('Response field mask.'),
|
|
781
781
|
},
|
|
782
|
-
});
|
|
782
|
+
}, deps);
|
|
783
783
|
registerGeneratedTool(registry, {
|
|
784
784
|
name: "gmail_users_threads_delete",
|
|
785
785
|
cud: "delete",
|
|
@@ -788,12 +788,12 @@ export function registerGmailGeneratedTools(registry) {
|
|
|
788
788
|
params: [{ "field": "id", "api": "id", "location": "path" }, { "field": "userId", "api": "userId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
789
789
|
hasBody: false,
|
|
790
790
|
shape: {
|
|
791
|
-
account: accountField(),
|
|
791
|
+
account: accountField(() => registry.accountAliases()),
|
|
792
792
|
id: z.string().min(1).describe("ID of the Thread to delete."),
|
|
793
793
|
userId: z.string().min(1).describe("The user's email address. The special value `me` can be used to indicate the authenticated user."),
|
|
794
794
|
fields: z.string().optional().describe('Response field mask.'),
|
|
795
795
|
},
|
|
796
|
-
});
|
|
796
|
+
}, deps);
|
|
797
797
|
registerGeneratedTool(registry, {
|
|
798
798
|
name: "gmail_users_threads_list",
|
|
799
799
|
cud: "read",
|
|
@@ -802,7 +802,7 @@ export function registerGmailGeneratedTools(registry) {
|
|
|
802
802
|
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" }],
|
|
803
803
|
hasBody: false,
|
|
804
804
|
shape: {
|
|
805
|
-
account: accountField(),
|
|
805
|
+
account: accountField(() => registry.accountAliases()),
|
|
806
806
|
userId: z.string().min(1).describe("The user's email address. The special value `me` can be used to indicate the authenticated user."),
|
|
807
807
|
includeSpamTrash: coerceBoolean.describe("Include threads from `SPAM` and `TRASH` in the results.").optional(),
|
|
808
808
|
labelIds: coerceArray(z.string()).describe("Only return threads with labels that match all of the specified label IDs.").optional(),
|
|
@@ -811,7 +811,7 @@ export function registerGmailGeneratedTools(registry) {
|
|
|
811
811
|
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(),
|
|
812
812
|
fields: z.string().optional().describe('Response field mask.'),
|
|
813
813
|
},
|
|
814
|
-
});
|
|
814
|
+
}, deps);
|
|
815
815
|
registerGeneratedTool(registry, {
|
|
816
816
|
name: "gmail_users_threads_modify",
|
|
817
817
|
cud: "update",
|
|
@@ -821,14 +821,14 @@ export function registerGmailGeneratedTools(registry) {
|
|
|
821
821
|
hasBody: true,
|
|
822
822
|
bodyParams: [{ "field": "addLabelIds", "api": "addLabelIds" }, { "field": "removeLabelIds", "api": "removeLabelIds" }],
|
|
823
823
|
shape: {
|
|
824
|
-
account: accountField(),
|
|
824
|
+
account: accountField(() => registry.accountAliases()),
|
|
825
825
|
id: z.string().min(1).describe("The ID of the thread to modify."),
|
|
826
826
|
userId: z.string().min(1).describe("The user's email address. The special value `me` can be used to indicate the authenticated user."),
|
|
827
827
|
addLabelIds: coerceArray(z.string()).describe("A list of IDs of labels to add to this thread. You can add up to 100 labels with each update.").optional(),
|
|
828
828
|
removeLabelIds: coerceArray(z.string()).describe("A list of IDs of labels to remove from this thread. You can remove up to 100 labels with each update.").optional(),
|
|
829
829
|
fields: z.string().optional().describe('Response field mask.'),
|
|
830
830
|
},
|
|
831
|
-
});
|
|
831
|
+
}, deps);
|
|
832
832
|
registerGeneratedTool(registry, {
|
|
833
833
|
name: "gmail_users_threads_trash",
|
|
834
834
|
cud: "delete",
|
|
@@ -837,12 +837,12 @@ export function registerGmailGeneratedTools(registry) {
|
|
|
837
837
|
params: [{ "field": "id", "api": "id", "location": "path" }, { "field": "userId", "api": "userId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
838
838
|
hasBody: false,
|
|
839
839
|
shape: {
|
|
840
|
-
account: accountField(),
|
|
840
|
+
account: accountField(() => registry.accountAliases()),
|
|
841
841
|
id: z.string().min(1).describe("The ID of the thread to Trash."),
|
|
842
842
|
userId: z.string().min(1).describe("The user's email address. The special value `me` can be used to indicate the authenticated user."),
|
|
843
843
|
fields: z.string().optional().describe('Response field mask.'),
|
|
844
844
|
},
|
|
845
|
-
});
|
|
845
|
+
}, deps);
|
|
846
846
|
registerGeneratedTool(registry, {
|
|
847
847
|
name: "gmail_users_threads_untrash",
|
|
848
848
|
cud: "update",
|
|
@@ -851,12 +851,12 @@ export function registerGmailGeneratedTools(registry) {
|
|
|
851
851
|
params: [{ "field": "id", "api": "id", "location": "path" }, { "field": "userId", "api": "userId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
852
852
|
hasBody: false,
|
|
853
853
|
shape: {
|
|
854
|
-
account: accountField(),
|
|
854
|
+
account: accountField(() => registry.accountAliases()),
|
|
855
855
|
id: z.string().min(1).describe("The ID of the thread to remove from Trash."),
|
|
856
856
|
userId: z.string().min(1).describe("The user's email address. The special value `me` can be used to indicate the authenticated user."),
|
|
857
857
|
fields: z.string().optional().describe('Response field mask.'),
|
|
858
858
|
},
|
|
859
|
-
});
|
|
859
|
+
}, deps);
|
|
860
860
|
registerGeneratedTool(registry, {
|
|
861
861
|
name: "gmail_users_watch",
|
|
862
862
|
cud: "create",
|
|
@@ -866,7 +866,7 @@ export function registerGmailGeneratedTools(registry) {
|
|
|
866
866
|
hasBody: true,
|
|
867
867
|
bodyParams: [{ "field": "labelFilterAction", "api": "labelFilterAction" }, { "field": "labelFilterBehavior", "api": "labelFilterBehavior" }, { "field": "labelIds", "api": "labelIds" }, { "field": "topicName", "api": "topicName" }],
|
|
868
868
|
shape: {
|
|
869
|
-
account: accountField(),
|
|
869
|
+
account: accountField(() => registry.accountAliases()),
|
|
870
870
|
userId: z.string().min(1).describe("The user's email address. The special value `me` can be used to indicate the authenticated user."),
|
|
871
871
|
labelFilterAction: z.enum(["include", "exclude"]).describe("Filtering behavior of `labelIds list` specified. This field is deprecated because it caused incorrect behavior in some cases; use `label_filter_behavior` instead.").optional(),
|
|
872
872
|
labelFilterBehavior: z.enum(["include", "exclude"]).describe("Filtering behavior of `labelIds list` specified. This field replaces `label_filter_action`; if set, `label_filter_action` is ignored.").optional(),
|
|
@@ -874,5 +874,5 @@ export function registerGmailGeneratedTools(registry) {
|
|
|
874
874
|
topicName: z.string().describe("A fully qualified Google Cloud Pub/Sub API topic name to publish the events to. This topic name **must** already exist in Cloud Pub/Sub and you **must** have already granted gmail \"publish\" permission").optional(),
|
|
875
875
|
fields: z.string().optional().describe('Response field mask.'),
|
|
876
876
|
},
|
|
877
|
-
});
|
|
877
|
+
}, deps);
|
|
878
878
|
}
|