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 registerVaultGeneratedTools(registry) {
|
|
5
|
+
export function registerVaultGeneratedTools(registry, deps = {}) {
|
|
6
6
|
// Interned method scope sets (shared across tools; see scope-observability).
|
|
7
7
|
const S_vault_v1 = [
|
|
8
8
|
["https://www.googleapis.com/auth/ediscovery"],
|
|
@@ -16,12 +16,12 @@ export function registerVaultGeneratedTools(registry) {
|
|
|
16
16
|
params: [{ "field": "matterId", "api": "matterId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
17
17
|
hasBody: true,
|
|
18
18
|
shape: {
|
|
19
|
-
account: accountField(),
|
|
19
|
+
account: accountField(() => registry.accountAliases()),
|
|
20
20
|
matterId: z.string().min(1).describe("The matter ID."),
|
|
21
21
|
body: coerceJson(z.record(z.string(), z.unknown())).describe("AddMatterPermissionsRequest JSON request body. Top-level fields: ccMe, matterPermission, sendEmails."),
|
|
22
22
|
fields: z.string().optional().describe('Response field mask.'),
|
|
23
23
|
},
|
|
24
|
-
});
|
|
24
|
+
}, deps);
|
|
25
25
|
registerGeneratedTool(registry, {
|
|
26
26
|
name: "vault_matters_close",
|
|
27
27
|
cud: "update",
|
|
@@ -31,11 +31,11 @@ export function registerVaultGeneratedTools(registry) {
|
|
|
31
31
|
hasBody: true,
|
|
32
32
|
bodyParams: [],
|
|
33
33
|
shape: {
|
|
34
|
-
account: accountField(),
|
|
34
|
+
account: accountField(() => registry.accountAliases()),
|
|
35
35
|
matterId: z.string().min(1).describe("The matter ID."),
|
|
36
36
|
fields: z.string().optional().describe('Response field mask.'),
|
|
37
37
|
},
|
|
38
|
-
});
|
|
38
|
+
}, deps);
|
|
39
39
|
registerGeneratedTool(registry, {
|
|
40
40
|
name: "vault_matters_count",
|
|
41
41
|
cud: "read",
|
|
@@ -44,12 +44,12 @@ export function registerVaultGeneratedTools(registry) {
|
|
|
44
44
|
params: [{ "field": "matterId", "api": "matterId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
45
45
|
hasBody: true,
|
|
46
46
|
shape: {
|
|
47
|
-
account: accountField(),
|
|
47
|
+
account: accountField(() => registry.accountAliases()),
|
|
48
48
|
matterId: z.string().min(1).describe("The matter ID."),
|
|
49
49
|
body: coerceJson(z.record(z.string(), z.unknown())).describe("CountArtifactsRequest JSON request body. Top-level fields: query, view."),
|
|
50
50
|
fields: z.string().optional().describe('Response field mask.'),
|
|
51
51
|
},
|
|
52
|
-
});
|
|
52
|
+
}, deps);
|
|
53
53
|
registerGeneratedTool(registry, {
|
|
54
54
|
name: "vault_matters_create",
|
|
55
55
|
cud: "create",
|
|
@@ -58,11 +58,11 @@ export function registerVaultGeneratedTools(registry) {
|
|
|
58
58
|
params: [{ "field": "fields", "api": "fields", "location": "query" }],
|
|
59
59
|
hasBody: true,
|
|
60
60
|
shape: {
|
|
61
|
-
account: accountField(),
|
|
61
|
+
account: accountField(() => registry.accountAliases()),
|
|
62
62
|
body: coerceJson(z.record(z.string(), z.unknown())).describe("Matter JSON request body. Top-level fields: description, matterId, matterPermissions, matterRegion, name, state."),
|
|
63
63
|
fields: z.string().optional().describe('Response field mask.'),
|
|
64
64
|
},
|
|
65
|
-
});
|
|
65
|
+
}, deps);
|
|
66
66
|
registerGeneratedTool(registry, {
|
|
67
67
|
name: "vault_matters_delete",
|
|
68
68
|
cud: "delete",
|
|
@@ -71,11 +71,11 @@ export function registerVaultGeneratedTools(registry) {
|
|
|
71
71
|
params: [{ "field": "matterId", "api": "matterId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
72
72
|
hasBody: false,
|
|
73
73
|
shape: {
|
|
74
|
-
account: accountField(),
|
|
74
|
+
account: accountField(() => registry.accountAliases()),
|
|
75
75
|
matterId: z.string().min(1).describe("The matter ID"),
|
|
76
76
|
fields: z.string().optional().describe('Response field mask.'),
|
|
77
77
|
},
|
|
78
|
-
});
|
|
78
|
+
}, deps);
|
|
79
79
|
registerGeneratedTool(registry, {
|
|
80
80
|
name: "vault_matters_exports_create",
|
|
81
81
|
cud: "create",
|
|
@@ -84,12 +84,12 @@ export function registerVaultGeneratedTools(registry) {
|
|
|
84
84
|
params: [{ "field": "matterId", "api": "matterId", "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
|
matterId: z.string().min(1).describe("The matter ID."),
|
|
89
89
|
body: coerceJson(z.record(z.string(), z.unknown())).describe("Export JSON request body. Top-level fields: cloudStorageSink, createTime, exportOptions, id, matterId, name, parentExportId, query, requester, stats, status."),
|
|
90
90
|
fields: z.string().optional().describe('Response field mask.'),
|
|
91
91
|
},
|
|
92
|
-
});
|
|
92
|
+
}, deps);
|
|
93
93
|
registerGeneratedTool(registry, {
|
|
94
94
|
name: "vault_matters_exports_delete",
|
|
95
95
|
cud: "delete",
|
|
@@ -98,12 +98,12 @@ export function registerVaultGeneratedTools(registry) {
|
|
|
98
98
|
params: [{ "field": "exportId", "api": "exportId", "location": "path" }, { "field": "matterId", "api": "matterId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
99
99
|
hasBody: false,
|
|
100
100
|
shape: {
|
|
101
|
-
account: accountField(),
|
|
101
|
+
account: accountField(() => registry.accountAliases()),
|
|
102
102
|
exportId: z.string().min(1).describe("The export ID."),
|
|
103
103
|
matterId: z.string().min(1).describe("The matter ID."),
|
|
104
104
|
fields: z.string().optional().describe('Response field mask.'),
|
|
105
105
|
},
|
|
106
|
-
});
|
|
106
|
+
}, deps);
|
|
107
107
|
registerGeneratedTool(registry, {
|
|
108
108
|
name: "vault_matters_exports_get",
|
|
109
109
|
cud: "read",
|
|
@@ -112,12 +112,12 @@ export function registerVaultGeneratedTools(registry) {
|
|
|
112
112
|
params: [{ "field": "exportId", "api": "exportId", "location": "path" }, { "field": "matterId", "api": "matterId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
113
113
|
hasBody: false,
|
|
114
114
|
shape: {
|
|
115
|
-
account: accountField(),
|
|
115
|
+
account: accountField(() => registry.accountAliases()),
|
|
116
116
|
exportId: z.string().min(1).describe("The export ID."),
|
|
117
117
|
matterId: z.string().min(1).describe("The matter ID."),
|
|
118
118
|
fields: z.string().optional().describe('Response field mask.'),
|
|
119
119
|
},
|
|
120
|
-
});
|
|
120
|
+
}, deps);
|
|
121
121
|
registerGeneratedTool(registry, {
|
|
122
122
|
name: "vault_matters_exports_list",
|
|
123
123
|
cud: "read",
|
|
@@ -126,13 +126,13 @@ export function registerVaultGeneratedTools(registry) {
|
|
|
126
126
|
params: [{ "field": "matterId", "api": "matterId", "location": "path" }, { "field": "pageSize", "api": "pageSize", "location": "query" }, { "field": "pageToken", "api": "pageToken", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
127
127
|
hasBody: false,
|
|
128
128
|
shape: {
|
|
129
|
-
account: accountField(),
|
|
129
|
+
account: accountField(() => registry.accountAliases()),
|
|
130
130
|
matterId: z.string().min(1).describe("The matter ID."),
|
|
131
131
|
pageSize: z.number().describe("The number of exports to return in the response.").optional(),
|
|
132
132
|
pageToken: z.string().describe("The pagination token as returned in the response.").optional(),
|
|
133
133
|
fields: z.string().optional().describe('Response field mask.'),
|
|
134
134
|
},
|
|
135
|
-
});
|
|
135
|
+
}, deps);
|
|
136
136
|
registerGeneratedTool(registry, {
|
|
137
137
|
name: "vault_matters_get",
|
|
138
138
|
cud: "read",
|
|
@@ -141,12 +141,12 @@ export function registerVaultGeneratedTools(registry) {
|
|
|
141
141
|
params: [{ "field": "matterId", "api": "matterId", "location": "path" }, { "field": "view", "api": "view", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
142
142
|
hasBody: false,
|
|
143
143
|
shape: {
|
|
144
|
-
account: accountField(),
|
|
144
|
+
account: accountField(() => registry.accountAliases()),
|
|
145
145
|
matterId: z.string().min(1).describe("The matter ID."),
|
|
146
146
|
view: z.enum(["VIEW_UNSPECIFIED", "BASIC", "FULL"]).describe("Specifies how much information about the matter to return in the response.").optional(),
|
|
147
147
|
fields: z.string().optional().describe('Response field mask.'),
|
|
148
148
|
},
|
|
149
|
-
});
|
|
149
|
+
}, deps);
|
|
150
150
|
registerGeneratedTool(registry, {
|
|
151
151
|
name: "vault_matters_holds_accounts_create",
|
|
152
152
|
cud: "create",
|
|
@@ -156,7 +156,7 @@ export function registerVaultGeneratedTools(registry) {
|
|
|
156
156
|
hasBody: true,
|
|
157
157
|
bodyParams: [{ "field": "accountId", "api": "accountId" }, { "field": "email", "api": "email" }, { "field": "firstName", "api": "firstName" }, { "field": "holdTime", "api": "holdTime" }, { "field": "lastName", "api": "lastName" }],
|
|
158
158
|
shape: {
|
|
159
|
-
account: accountField(),
|
|
159
|
+
account: accountField(() => registry.accountAliases()),
|
|
160
160
|
holdId: z.string().min(1).describe("The hold ID."),
|
|
161
161
|
matterId: z.string().min(1).describe("The matter ID."),
|
|
162
162
|
accountId: z.string().describe("The account ID, as provided by the [Admin SDK](https://developers.google.com/admin-sdk/).").optional(),
|
|
@@ -166,7 +166,7 @@ export function registerVaultGeneratedTools(registry) {
|
|
|
166
166
|
lastName: z.string().describe("Output only. The last name of the account holder.").optional(),
|
|
167
167
|
fields: z.string().optional().describe('Response field mask.'),
|
|
168
168
|
},
|
|
169
|
-
});
|
|
169
|
+
}, deps);
|
|
170
170
|
registerGeneratedTool(registry, {
|
|
171
171
|
name: "vault_matters_holds_accounts_delete",
|
|
172
172
|
cud: "delete",
|
|
@@ -175,13 +175,13 @@ export function registerVaultGeneratedTools(registry) {
|
|
|
175
175
|
params: [{ "field": "accountId", "api": "accountId", "location": "path" }, { "field": "holdId", "api": "holdId", "location": "path" }, { "field": "matterId", "api": "matterId", "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
|
accountId: z.string().min(1).describe("The ID of the account to remove from the hold."),
|
|
180
180
|
holdId: z.string().min(1).describe("The hold ID."),
|
|
181
181
|
matterId: z.string().min(1).describe("The matter ID."),
|
|
182
182
|
fields: z.string().optional().describe('Response field mask.'),
|
|
183
183
|
},
|
|
184
|
-
});
|
|
184
|
+
}, deps);
|
|
185
185
|
registerGeneratedTool(registry, {
|
|
186
186
|
name: "vault_matters_holds_accounts_list",
|
|
187
187
|
cud: "read",
|
|
@@ -190,12 +190,12 @@ export function registerVaultGeneratedTools(registry) {
|
|
|
190
190
|
params: [{ "field": "holdId", "api": "holdId", "location": "path" }, { "field": "matterId", "api": "matterId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
191
191
|
hasBody: false,
|
|
192
192
|
shape: {
|
|
193
|
-
account: accountField(),
|
|
193
|
+
account: accountField(() => registry.accountAliases()),
|
|
194
194
|
holdId: z.string().min(1).describe("The hold ID."),
|
|
195
195
|
matterId: z.string().min(1).describe("The matter ID."),
|
|
196
196
|
fields: z.string().optional().describe('Response field mask.'),
|
|
197
197
|
},
|
|
198
|
-
});
|
|
198
|
+
}, deps);
|
|
199
199
|
registerGeneratedTool(registry, {
|
|
200
200
|
name: "vault_matters_holds_add_held_accounts",
|
|
201
201
|
cud: "create",
|
|
@@ -205,14 +205,14 @@ export function registerVaultGeneratedTools(registry) {
|
|
|
205
205
|
hasBody: true,
|
|
206
206
|
bodyParams: [{ "field": "accountIds", "api": "accountIds" }, { "field": "emails", "api": "emails" }],
|
|
207
207
|
shape: {
|
|
208
|
-
account: accountField(),
|
|
208
|
+
account: accountField(() => registry.accountAliases()),
|
|
209
209
|
holdId: z.string().min(1).describe("The hold ID."),
|
|
210
210
|
matterId: z.string().min(1).describe("The matter ID."),
|
|
211
211
|
accountIds: coerceArray(z.string()).describe("A comma-separated list of the account IDs of the accounts to add to the hold. Specify either **emails** or **account_ids**, but not both.").optional(),
|
|
212
212
|
emails: coerceArray(z.string()).describe("A comma-separated list of the emails of the accounts to add to the hold. Specify either **emails** or **account_ids**, but not both.").optional(),
|
|
213
213
|
fields: z.string().optional().describe('Response field mask.'),
|
|
214
214
|
},
|
|
215
|
-
});
|
|
215
|
+
}, deps);
|
|
216
216
|
registerGeneratedTool(registry, {
|
|
217
217
|
name: "vault_matters_holds_create",
|
|
218
218
|
cud: "create",
|
|
@@ -221,12 +221,12 @@ export function registerVaultGeneratedTools(registry) {
|
|
|
221
221
|
params: [{ "field": "matterId", "api": "matterId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
222
222
|
hasBody: true,
|
|
223
223
|
shape: {
|
|
224
|
-
account: accountField(),
|
|
224
|
+
account: accountField(() => registry.accountAliases()),
|
|
225
225
|
matterId: z.string().min(1).describe("The matter ID."),
|
|
226
226
|
body: coerceJson(z.record(z.string(), z.unknown())).describe("Hold JSON request body. Top-level fields: accounts, corpus, holdId, name, orgUnit, query, updateTime."),
|
|
227
227
|
fields: z.string().optional().describe('Response field mask.'),
|
|
228
228
|
},
|
|
229
|
-
});
|
|
229
|
+
}, deps);
|
|
230
230
|
registerGeneratedTool(registry, {
|
|
231
231
|
name: "vault_matters_holds_delete",
|
|
232
232
|
cud: "delete",
|
|
@@ -235,12 +235,12 @@ export function registerVaultGeneratedTools(registry) {
|
|
|
235
235
|
params: [{ "field": "holdId", "api": "holdId", "location": "path" }, { "field": "matterId", "api": "matterId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
236
236
|
hasBody: false,
|
|
237
237
|
shape: {
|
|
238
|
-
account: accountField(),
|
|
238
|
+
account: accountField(() => registry.accountAliases()),
|
|
239
239
|
holdId: z.string().min(1).describe("The hold ID."),
|
|
240
240
|
matterId: z.string().min(1).describe("The matter ID."),
|
|
241
241
|
fields: z.string().optional().describe('Response field mask.'),
|
|
242
242
|
},
|
|
243
|
-
});
|
|
243
|
+
}, deps);
|
|
244
244
|
registerGeneratedTool(registry, {
|
|
245
245
|
name: "vault_matters_holds_get",
|
|
246
246
|
cud: "read",
|
|
@@ -249,13 +249,13 @@ export function registerVaultGeneratedTools(registry) {
|
|
|
249
249
|
params: [{ "field": "holdId", "api": "holdId", "location": "path" }, { "field": "matterId", "api": "matterId", "location": "path" }, { "field": "view", "api": "view", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
250
250
|
hasBody: false,
|
|
251
251
|
shape: {
|
|
252
|
-
account: accountField(),
|
|
252
|
+
account: accountField(() => registry.accountAliases()),
|
|
253
253
|
holdId: z.string().min(1).describe("The hold ID."),
|
|
254
254
|
matterId: z.string().min(1).describe("The matter ID."),
|
|
255
255
|
view: z.enum(["HOLD_VIEW_UNSPECIFIED", "BASIC_HOLD", "FULL_HOLD"]).describe("The amount of detail to return for a hold.").optional(),
|
|
256
256
|
fields: z.string().optional().describe('Response field mask.'),
|
|
257
257
|
},
|
|
258
|
-
});
|
|
258
|
+
}, deps);
|
|
259
259
|
registerGeneratedTool(registry, {
|
|
260
260
|
name: "vault_matters_holds_list",
|
|
261
261
|
cud: "read",
|
|
@@ -264,14 +264,14 @@ export function registerVaultGeneratedTools(registry) {
|
|
|
264
264
|
params: [{ "field": "matterId", "api": "matterId", "location": "path" }, { "field": "pageSize", "api": "pageSize", "location": "query" }, { "field": "pageToken", "api": "pageToken", "location": "query" }, { "field": "view", "api": "view", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
265
265
|
hasBody: false,
|
|
266
266
|
shape: {
|
|
267
|
-
account: accountField(),
|
|
267
|
+
account: accountField(() => registry.accountAliases()),
|
|
268
268
|
matterId: z.string().min(1).describe("The matter ID."),
|
|
269
269
|
pageSize: z.number().describe("The number of holds to return in the response, between 0 and 100 inclusive. Leaving this empty, or as 0, is the same as **page_size** = 100.").optional(),
|
|
270
270
|
pageToken: z.string().describe("The pagination token as returned in the response. An empty token means start from the beginning.").optional(),
|
|
271
271
|
view: z.enum(["HOLD_VIEW_UNSPECIFIED", "BASIC_HOLD", "FULL_HOLD"]).describe("The amount of detail to return for a hold.").optional(),
|
|
272
272
|
fields: z.string().optional().describe('Response field mask.'),
|
|
273
273
|
},
|
|
274
|
-
});
|
|
274
|
+
}, deps);
|
|
275
275
|
registerGeneratedTool(registry, {
|
|
276
276
|
name: "vault_matters_holds_remove_held_accounts",
|
|
277
277
|
cud: "delete",
|
|
@@ -281,13 +281,13 @@ export function registerVaultGeneratedTools(registry) {
|
|
|
281
281
|
hasBody: true,
|
|
282
282
|
bodyParams: [{ "field": "accountIds", "api": "accountIds" }],
|
|
283
283
|
shape: {
|
|
284
|
-
account: accountField(),
|
|
284
|
+
account: accountField(() => registry.accountAliases()),
|
|
285
285
|
holdId: z.string().min(1).describe("The hold ID."),
|
|
286
286
|
matterId: z.string().min(1).describe("The matter ID."),
|
|
287
287
|
accountIds: coerceArray(z.string()).describe("The account IDs of the accounts to remove from the hold.").optional(),
|
|
288
288
|
fields: z.string().optional().describe('Response field mask.'),
|
|
289
289
|
},
|
|
290
|
-
});
|
|
290
|
+
}, deps);
|
|
291
291
|
registerGeneratedTool(registry, {
|
|
292
292
|
name: "vault_matters_holds_update",
|
|
293
293
|
cud: "update",
|
|
@@ -296,13 +296,13 @@ export function registerVaultGeneratedTools(registry) {
|
|
|
296
296
|
params: [{ "field": "holdId", "api": "holdId", "location": "path" }, { "field": "matterId", "api": "matterId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
297
297
|
hasBody: true,
|
|
298
298
|
shape: {
|
|
299
|
-
account: accountField(),
|
|
299
|
+
account: accountField(() => registry.accountAliases()),
|
|
300
300
|
holdId: z.string().min(1).describe("The ID of the hold."),
|
|
301
301
|
matterId: z.string().min(1).describe("The matter ID."),
|
|
302
302
|
body: coerceJson(z.record(z.string(), z.unknown())).describe("Hold JSON request body. Top-level fields: accounts, corpus, holdId, name, orgUnit, query, updateTime."),
|
|
303
303
|
fields: z.string().optional().describe('Response field mask.'),
|
|
304
304
|
},
|
|
305
|
-
});
|
|
305
|
+
}, deps);
|
|
306
306
|
registerGeneratedTool(registry, {
|
|
307
307
|
name: "vault_matters_list",
|
|
308
308
|
cud: "read",
|
|
@@ -311,14 +311,14 @@ export function registerVaultGeneratedTools(registry) {
|
|
|
311
311
|
params: [{ "field": "pageSize", "api": "pageSize", "location": "query" }, { "field": "pageToken", "api": "pageToken", "location": "query" }, { "field": "state", "api": "state", "location": "query" }, { "field": "view", "api": "view", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
312
312
|
hasBody: false,
|
|
313
313
|
shape: {
|
|
314
|
-
account: accountField(),
|
|
314
|
+
account: accountField(() => registry.accountAliases()),
|
|
315
315
|
pageSize: z.number().describe("The number of matters to return in the response. Default and maximum are 100.").optional(),
|
|
316
316
|
pageToken: z.string().describe("The pagination token as returned in the response.").optional(),
|
|
317
317
|
state: z.enum(["STATE_UNSPECIFIED", "OPEN", "CLOSED", "DELETED"]).describe("If set, lists only matters with the specified state. The default lists matters of all states.").optional(),
|
|
318
318
|
view: z.enum(["VIEW_UNSPECIFIED", "BASIC", "FULL"]).describe("Specifies how much information about the matter to return in response.").optional(),
|
|
319
319
|
fields: z.string().optional().describe('Response field mask.'),
|
|
320
320
|
},
|
|
321
|
-
});
|
|
321
|
+
}, deps);
|
|
322
322
|
registerGeneratedTool(registry, {
|
|
323
323
|
name: "vault_matters_remove_permissions",
|
|
324
324
|
cud: "delete",
|
|
@@ -328,12 +328,12 @@ export function registerVaultGeneratedTools(registry) {
|
|
|
328
328
|
hasBody: true,
|
|
329
329
|
bodyParams: [{ "field": "accountId", "api": "accountId" }],
|
|
330
330
|
shape: {
|
|
331
|
-
account: accountField(),
|
|
331
|
+
account: accountField(() => registry.accountAliases()),
|
|
332
332
|
matterId: z.string().min(1).describe("The matter ID."),
|
|
333
333
|
accountId: z.string().describe("The account ID.").optional(),
|
|
334
334
|
fields: z.string().optional().describe('Response field mask.'),
|
|
335
335
|
},
|
|
336
|
-
});
|
|
336
|
+
}, deps);
|
|
337
337
|
registerGeneratedTool(registry, {
|
|
338
338
|
name: "vault_matters_reopen",
|
|
339
339
|
cud: "update",
|
|
@@ -343,11 +343,11 @@ export function registerVaultGeneratedTools(registry) {
|
|
|
343
343
|
hasBody: true,
|
|
344
344
|
bodyParams: [],
|
|
345
345
|
shape: {
|
|
346
|
-
account: accountField(),
|
|
346
|
+
account: accountField(() => registry.accountAliases()),
|
|
347
347
|
matterId: z.string().min(1).describe("The matter ID."),
|
|
348
348
|
fields: z.string().optional().describe('Response field mask.'),
|
|
349
349
|
},
|
|
350
|
-
});
|
|
350
|
+
}, deps);
|
|
351
351
|
registerGeneratedTool(registry, {
|
|
352
352
|
name: "vault_matters_saved_queries_create",
|
|
353
353
|
cud: "create",
|
|
@@ -356,12 +356,12 @@ export function registerVaultGeneratedTools(registry) {
|
|
|
356
356
|
params: [{ "field": "matterId", "api": "matterId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
357
357
|
hasBody: true,
|
|
358
358
|
shape: {
|
|
359
|
-
account: accountField(),
|
|
359
|
+
account: accountField(() => registry.accountAliases()),
|
|
360
360
|
matterId: z.string().min(1).describe("The ID of the matter to create the saved query in."),
|
|
361
361
|
body: coerceJson(z.record(z.string(), z.unknown())).describe("SavedQuery JSON request body. Top-level fields: createTime, displayName, matterId, query, savedQueryId."),
|
|
362
362
|
fields: z.string().optional().describe('Response field mask.'),
|
|
363
363
|
},
|
|
364
|
-
});
|
|
364
|
+
}, deps);
|
|
365
365
|
registerGeneratedTool(registry, {
|
|
366
366
|
name: "vault_matters_saved_queries_delete",
|
|
367
367
|
cud: "delete",
|
|
@@ -370,12 +370,12 @@ export function registerVaultGeneratedTools(registry) {
|
|
|
370
370
|
params: [{ "field": "matterId", "api": "matterId", "location": "path" }, { "field": "savedQueryId", "api": "savedQueryId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
371
371
|
hasBody: false,
|
|
372
372
|
shape: {
|
|
373
|
-
account: accountField(),
|
|
373
|
+
account: accountField(() => registry.accountAliases()),
|
|
374
374
|
matterId: z.string().min(1).describe("The ID of the matter to delete the saved query from."),
|
|
375
375
|
savedQueryId: z.string().min(1).describe("ID of the saved query to delete."),
|
|
376
376
|
fields: z.string().optional().describe('Response field mask.'),
|
|
377
377
|
},
|
|
378
|
-
});
|
|
378
|
+
}, deps);
|
|
379
379
|
registerGeneratedTool(registry, {
|
|
380
380
|
name: "vault_matters_saved_queries_get",
|
|
381
381
|
cud: "read",
|
|
@@ -384,12 +384,12 @@ export function registerVaultGeneratedTools(registry) {
|
|
|
384
384
|
params: [{ "field": "matterId", "api": "matterId", "location": "path" }, { "field": "savedQueryId", "api": "savedQueryId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
385
385
|
hasBody: false,
|
|
386
386
|
shape: {
|
|
387
|
-
account: accountField(),
|
|
387
|
+
account: accountField(() => registry.accountAliases()),
|
|
388
388
|
matterId: z.string().min(1).describe("The ID of the matter to get the saved query from."),
|
|
389
389
|
savedQueryId: z.string().min(1).describe("ID of the saved query to retrieve."),
|
|
390
390
|
fields: z.string().optional().describe('Response field mask.'),
|
|
391
391
|
},
|
|
392
|
-
});
|
|
392
|
+
}, deps);
|
|
393
393
|
registerGeneratedTool(registry, {
|
|
394
394
|
name: "vault_matters_saved_queries_list",
|
|
395
395
|
cud: "read",
|
|
@@ -398,13 +398,13 @@ export function registerVaultGeneratedTools(registry) {
|
|
|
398
398
|
params: [{ "field": "matterId", "api": "matterId", "location": "path" }, { "field": "pageSize", "api": "pageSize", "location": "query" }, { "field": "pageToken", "api": "pageToken", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
399
399
|
hasBody: false,
|
|
400
400
|
shape: {
|
|
401
|
-
account: accountField(),
|
|
401
|
+
account: accountField(() => registry.accountAliases()),
|
|
402
402
|
matterId: z.string().min(1).describe("The ID of the matter to get the saved queries for."),
|
|
403
403
|
pageSize: z.number().describe("The maximum number of saved queries to return.").optional(),
|
|
404
404
|
pageToken: z.string().describe("The pagination token as returned in the previous response. An empty token means start from the beginning.").optional(),
|
|
405
405
|
fields: z.string().optional().describe('Response field mask.'),
|
|
406
406
|
},
|
|
407
|
-
});
|
|
407
|
+
}, deps);
|
|
408
408
|
registerGeneratedTool(registry, {
|
|
409
409
|
name: "vault_matters_undelete",
|
|
410
410
|
cud: "update",
|
|
@@ -414,11 +414,11 @@ export function registerVaultGeneratedTools(registry) {
|
|
|
414
414
|
hasBody: true,
|
|
415
415
|
bodyParams: [],
|
|
416
416
|
shape: {
|
|
417
|
-
account: accountField(),
|
|
417
|
+
account: accountField(() => registry.accountAliases()),
|
|
418
418
|
matterId: z.string().min(1).describe("The matter ID."),
|
|
419
419
|
fields: z.string().optional().describe('Response field mask.'),
|
|
420
420
|
},
|
|
421
|
-
});
|
|
421
|
+
}, deps);
|
|
422
422
|
registerGeneratedTool(registry, {
|
|
423
423
|
name: "vault_matters_update",
|
|
424
424
|
cud: "update",
|
|
@@ -427,12 +427,12 @@ export function registerVaultGeneratedTools(registry) {
|
|
|
427
427
|
params: [{ "field": "matterId", "api": "matterId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
428
428
|
hasBody: true,
|
|
429
429
|
shape: {
|
|
430
|
-
account: accountField(),
|
|
430
|
+
account: accountField(() => registry.accountAliases()),
|
|
431
431
|
matterId: z.string().min(1).describe("The matter ID."),
|
|
432
432
|
body: coerceJson(z.record(z.string(), z.unknown())).describe("Matter JSON request body. Top-level fields: description, matterId, matterPermissions, matterRegion, name, state."),
|
|
433
433
|
fields: z.string().optional().describe('Response field mask.'),
|
|
434
434
|
},
|
|
435
|
-
});
|
|
435
|
+
}, deps);
|
|
436
436
|
registerGeneratedTool(registry, {
|
|
437
437
|
name: "vault_operations_cancel",
|
|
438
438
|
cud: "delete",
|
|
@@ -442,11 +442,11 @@ export function registerVaultGeneratedTools(registry) {
|
|
|
442
442
|
hasBody: true,
|
|
443
443
|
bodyParams: [],
|
|
444
444
|
shape: {
|
|
445
|
-
account: accountField(),
|
|
445
|
+
account: accountField(() => registry.accountAliases()),
|
|
446
446
|
name: z.string().min(1).describe("The name of the operation resource to be cancelled."),
|
|
447
447
|
fields: z.string().optional().describe('Response field mask.'),
|
|
448
448
|
},
|
|
449
|
-
});
|
|
449
|
+
}, deps);
|
|
450
450
|
registerGeneratedTool(registry, {
|
|
451
451
|
name: "vault_operations_delete",
|
|
452
452
|
cud: "delete",
|
|
@@ -455,11 +455,11 @@ export function registerVaultGeneratedTools(registry) {
|
|
|
455
455
|
params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
456
456
|
hasBody: false,
|
|
457
457
|
shape: {
|
|
458
|
-
account: accountField(),
|
|
458
|
+
account: accountField(() => registry.accountAliases()),
|
|
459
459
|
name: z.string().min(1).describe("The name of the operation resource to be deleted."),
|
|
460
460
|
fields: z.string().optional().describe('Response field mask.'),
|
|
461
461
|
},
|
|
462
|
-
});
|
|
462
|
+
}, deps);
|
|
463
463
|
registerGeneratedTool(registry, {
|
|
464
464
|
name: "vault_operations_get",
|
|
465
465
|
cud: "read",
|
|
@@ -468,11 +468,11 @@ export function registerVaultGeneratedTools(registry) {
|
|
|
468
468
|
params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
469
469
|
hasBody: false,
|
|
470
470
|
shape: {
|
|
471
|
-
account: accountField(),
|
|
471
|
+
account: accountField(() => registry.accountAliases()),
|
|
472
472
|
name: z.string().min(1).describe("The name of the operation resource."),
|
|
473
473
|
fields: z.string().optional().describe('Response field mask.'),
|
|
474
474
|
},
|
|
475
|
-
});
|
|
475
|
+
}, deps);
|
|
476
476
|
registerGeneratedTool(registry, {
|
|
477
477
|
name: "vault_operations_list",
|
|
478
478
|
cud: "read",
|
|
@@ -481,7 +481,7 @@ export function registerVaultGeneratedTools(registry) {
|
|
|
481
481
|
params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "filter", "api": "filter", "location": "query" }, { "field": "pageSize", "api": "pageSize", "location": "query" }, { "field": "pageToken", "api": "pageToken", "location": "query" }, { "field": "returnPartialSuccess", "api": "returnPartialSuccess", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
482
482
|
hasBody: false,
|
|
483
483
|
shape: {
|
|
484
|
-
account: accountField(),
|
|
484
|
+
account: accountField(() => registry.accountAliases()),
|
|
485
485
|
name: z.string().min(1).describe("The name of the operation's parent resource."),
|
|
486
486
|
filter: z.string().describe("The standard list filter.").optional(),
|
|
487
487
|
pageSize: z.number().describe("The standard list page size.").optional(),
|
|
@@ -489,5 +489,5 @@ export function registerVaultGeneratedTools(registry) {
|
|
|
489
489
|
returnPartialSuccess: coerceBoolean.describe("When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the ListOperationsResponse.unreachable field. This can only be `true` when read").optional(),
|
|
490
490
|
fields: z.string().optional().describe('Response field mask.'),
|
|
491
491
|
},
|
|
492
|
-
});
|
|
492
|
+
}, deps);
|
|
493
493
|
}
|
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
import type { ToolRegistry } from '../../registry.js';
|
|
2
|
-
|
|
2
|
+
import { type ExecuteDeps } from './_shared.js';
|
|
3
|
+
export declare function registerWorkspaceeventsGeneratedTools(registry: ToolRegistry, deps?: ExecuteDeps): void;
|