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