mcp-google-multi 5.2.0-alpha.2 → 5.2.0-alpha.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (56) hide show
  1. package/dist/auth.js +33 -0
  2. package/dist/discovery-client.js +13 -0
  3. package/dist/index.js +25 -3
  4. package/dist/tools/generated/admin.d.ts +2 -0
  5. package/dist/tools/generated/admin.js +1937 -0
  6. package/dist/tools/generated/appsmarket.d.ts +2 -0
  7. package/dist/tools/generated/appsmarket.js +33 -0
  8. package/dist/tools/generated/calendar.d.ts +2 -0
  9. package/dist/tools/generated/calendar.js +428 -0
  10. package/dist/tools/generated/chat.d.ts +2 -0
  11. package/dist/tools/generated/chat.js +666 -0
  12. package/dist/tools/generated/classroom.d.ts +2 -0
  13. package/dist/tools/generated/classroom.js +1610 -0
  14. package/dist/tools/generated/cloudidentity.d.ts +2 -0
  15. package/dist/tools/generated/cloudidentity.js +955 -0
  16. package/dist/tools/generated/cloudsearch.d.ts +2 -0
  17. package/dist/tools/generated/cloudsearch.js +754 -0
  18. package/dist/tools/generated/contacts.d.ts +2 -0
  19. package/dist/tools/generated/contacts.js +215 -0
  20. package/dist/tools/generated/drive.d.ts +2 -0
  21. package/dist/tools/generated/drive.js +543 -0
  22. package/dist/tools/generated/driveactivity.d.ts +2 -0
  23. package/dist/tools/generated/driveactivity.js +19 -0
  24. package/dist/tools/generated/drivelabels.d.ts +2 -0
  25. package/dist/tools/generated/drivelabels.js +389 -0
  26. package/dist/tools/generated/forms.d.ts +2 -0
  27. package/dist/tools/generated/forms.js +49 -0
  28. package/dist/tools/generated/gmail.d.ts +2 -0
  29. package/dist/tools/generated/gmail.js +835 -0
  30. package/dist/tools/generated/groupsmigration.d.ts +2 -0
  31. package/dist/tools/generated/groupsmigration.js +18 -0
  32. package/dist/tools/generated/groupssettings.d.ts +2 -0
  33. package/dist/tools/generated/groupssettings.js +47 -0
  34. package/dist/tools/generated/index.js +50 -0
  35. package/dist/tools/generated/keep.d.ts +2 -0
  36. package/dist/tools/generated/keep.js +102 -0
  37. package/dist/tools/generated/licensing.d.ts +2 -0
  38. package/dist/tools/generated/licensing.js +116 -0
  39. package/dist/tools/generated/meet.d.ts +2 -0
  40. package/dist/tools/generated/meet.js +186 -0
  41. package/dist/tools/generated/postmaster.d.ts +2 -0
  42. package/dist/tools/generated/postmaster.js +66 -0
  43. package/dist/tools/generated/reseller.d.ts +2 -0
  44. package/dist/tools/generated/reseller.js +249 -0
  45. package/dist/tools/generated/script.d.ts +2 -0
  46. package/dist/tools/generated/script.js +249 -0
  47. package/dist/tools/generated/searchconsole.d.ts +2 -0
  48. package/dist/tools/generated/searchconsole.js +19 -0
  49. package/dist/tools/generated/sheets.d.ts +2 -0
  50. package/dist/tools/generated/sheets.js +105 -0
  51. package/dist/tools/generated/vault.d.ts +2 -0
  52. package/dist/tools/generated/vault.js +479 -0
  53. package/dist/tools/generated/workspaceevents.d.ts +2 -0
  54. package/dist/tools/generated/workspaceevents.js +223 -0
  55. package/dist/tools/google-api.js +1 -0
  56. package/package.json +1 -1
@@ -0,0 +1,19 @@
1
+ // GENERATED by scripts/gen-tools.ts — do not edit. Regenerate: npm run gen:tools
2
+ import { z } from 'zod';
3
+ import { coerceJson } from '../_coerce.js';
4
+ import { accountField, registerGeneratedTool } from './_shared.js';
5
+ export function registerSearchconsoleGeneratedTools(registry) {
6
+ registerGeneratedTool(registry, {
7
+ name: "searchconsole_url_testing_tools_mobile_friendly_test_run",
8
+ cud: "create",
9
+ description: "Runs Mobile-Friendly Test for a given URL.",
10
+ method: { id: "searchconsole.urlTestingTools.mobileFriendlyTest.run", httpMethod: "POST", path: "v1/urlTestingTools/mobileFriendlyTest:run", baseUrl: "https://searchconsole.googleapis.com/", requiredParams: [] },
11
+ params: [{ "field": "fields", "api": "fields", "location": "query" }],
12
+ hasBody: true,
13
+ shape: {
14
+ account: accountField(),
15
+ body: coerceJson(z.record(z.string(), z.unknown())).describe("RunMobileFriendlyTestRequest JSON request body. Top-level fields: requestScreenshot, url."),
16
+ fields: z.string().optional().describe('Response field mask.'),
17
+ },
18
+ });
19
+ }
@@ -0,0 +1,2 @@
1
+ import type { ToolRegistry } from '../../registry.js';
2
+ export declare function registerSheetsGeneratedTools(registry: ToolRegistry): void;
@@ -0,0 +1,105 @@
1
+ // GENERATED by scripts/gen-tools.ts — do not edit. Regenerate: npm run gen:tools
2
+ import { z } from 'zod';
3
+ import { coerceJson } from '../_coerce.js';
4
+ import { accountField, registerGeneratedTool } from './_shared.js';
5
+ export function registerSheetsGeneratedTools(registry) {
6
+ registerGeneratedTool(registry, {
7
+ name: "sheets_spreadsheets_developer_metadata_get",
8
+ cud: "read",
9
+ description: "Returns the developer metadata with the specified ID. The caller must specify the spreadsheet ID and the developer metadata's unique metadataId. For more inform",
10
+ method: { id: "sheets.spreadsheets.developerMetadata.get", httpMethod: "GET", path: "v4/spreadsheets/{spreadsheetId}/developerMetadata/{metadataId}", baseUrl: "https://sheets.googleapis.com/", requiredParams: ["metadataId", "spreadsheetId"] },
11
+ params: [{ "field": "metadataId", "api": "metadataId", "location": "path" }, { "field": "spreadsheetId", "api": "spreadsheetId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
12
+ hasBody: false,
13
+ shape: {
14
+ account: accountField(),
15
+ metadataId: z.number().describe("The ID of the developer metadata to retrieve."),
16
+ spreadsheetId: z.string().describe("The ID of the spreadsheet to retrieve metadata from."),
17
+ fields: z.string().optional().describe('Response field mask.'),
18
+ },
19
+ });
20
+ registerGeneratedTool(registry, {
21
+ name: "sheets_spreadsheets_developer_metadata_search",
22
+ cud: "read",
23
+ description: "Returns all developer metadata matching the specified DataFilter. For more information, see [Read, write, and search metadata](https://developers.google.com/wor",
24
+ method: { id: "sheets.spreadsheets.developerMetadata.search", httpMethod: "POST", path: "v4/spreadsheets/{spreadsheetId}/developerMetadata:search", baseUrl: "https://sheets.googleapis.com/", requiredParams: ["spreadsheetId"] },
25
+ params: [{ "field": "spreadsheetId", "api": "spreadsheetId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
26
+ hasBody: true,
27
+ shape: {
28
+ account: accountField(),
29
+ spreadsheetId: z.string().describe("The ID of the spreadsheet to retrieve metadata from."),
30
+ body: coerceJson(z.record(z.string(), z.unknown())).describe("SearchDeveloperMetadataRequest JSON request body. Top-level fields: dataFilters."),
31
+ fields: z.string().optional().describe('Response field mask.'),
32
+ },
33
+ });
34
+ registerGeneratedTool(registry, {
35
+ name: "sheets_spreadsheets_get_by_data_filter",
36
+ cud: "read",
37
+ description: "Returns the spreadsheet at the given ID. The caller must specify the spreadsheet ID. For more information, see [Read, write, and search metadata](https://develo",
38
+ method: { id: "sheets.spreadsheets.getByDataFilter", httpMethod: "POST", path: "v4/spreadsheets/{spreadsheetId}:getByDataFilter", baseUrl: "https://sheets.googleapis.com/", requiredParams: ["spreadsheetId"] },
39
+ params: [{ "field": "spreadsheetId", "api": "spreadsheetId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
40
+ hasBody: true,
41
+ shape: {
42
+ account: accountField(),
43
+ spreadsheetId: z.string().describe("The spreadsheet to request."),
44
+ body: coerceJson(z.record(z.string(), z.unknown())).describe("GetSpreadsheetByDataFilterRequest JSON request body. Top-level fields: dataFilters, excludeTablesInBandedRanges, includeGridData."),
45
+ fields: z.string().optional().describe('Response field mask.'),
46
+ },
47
+ });
48
+ registerGeneratedTool(registry, {
49
+ name: "sheets_spreadsheets_sheets_copy_to",
50
+ cud: "create",
51
+ description: "Copies a single sheet from a spreadsheet to another spreadsheet. Returns the properties of the newly created sheet.",
52
+ method: { id: "sheets.spreadsheets.sheets.copyTo", httpMethod: "POST", path: "v4/spreadsheets/{spreadsheetId}/sheets/{sheetId}:copyTo", baseUrl: "https://sheets.googleapis.com/", requiredParams: ["sheetId", "spreadsheetId"] },
53
+ params: [{ "field": "sheetId", "api": "sheetId", "location": "path" }, { "field": "spreadsheetId", "api": "spreadsheetId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
54
+ hasBody: true,
55
+ shape: {
56
+ account: accountField(),
57
+ sheetId: z.number().describe("The ID of the sheet to copy."),
58
+ spreadsheetId: z.string().describe("The ID of the spreadsheet containing the sheet to copy."),
59
+ body: coerceJson(z.record(z.string(), z.unknown())).describe("CopySheetToAnotherSpreadsheetRequest JSON request body. Top-level fields: destinationSpreadsheetId."),
60
+ fields: z.string().optional().describe('Response field mask.'),
61
+ },
62
+ });
63
+ registerGeneratedTool(registry, {
64
+ name: "sheets_spreadsheets_values_batch_clear_by_data_filter",
65
+ cud: "delete",
66
+ description: "Clears one or more ranges of values from a spreadsheet. For more information, see [Read, write, and search metadata](https://developers.google.com/workspace/she",
67
+ method: { id: "sheets.spreadsheets.values.batchClearByDataFilter", httpMethod: "POST", path: "v4/spreadsheets/{spreadsheetId}/values:batchClearByDataFilter", baseUrl: "https://sheets.googleapis.com/", requiredParams: ["spreadsheetId"] },
68
+ params: [{ "field": "spreadsheetId", "api": "spreadsheetId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
69
+ hasBody: true,
70
+ shape: {
71
+ account: accountField(),
72
+ spreadsheetId: z.string().describe("The ID of the spreadsheet to update."),
73
+ body: coerceJson(z.record(z.string(), z.unknown())).describe("BatchClearValuesByDataFilterRequest JSON request body. Top-level fields: dataFilters."),
74
+ fields: z.string().optional().describe('Response field mask.'),
75
+ },
76
+ });
77
+ registerGeneratedTool(registry, {
78
+ name: "sheets_spreadsheets_values_batch_get_by_data_filter",
79
+ cud: "read",
80
+ description: "Returns one or more ranges of values that match the specified data filters. For more information, see [Read, write, and search metadata](https://developers.goog",
81
+ method: { id: "sheets.spreadsheets.values.batchGetByDataFilter", httpMethod: "POST", path: "v4/spreadsheets/{spreadsheetId}/values:batchGetByDataFilter", baseUrl: "https://sheets.googleapis.com/", requiredParams: ["spreadsheetId"] },
82
+ params: [{ "field": "spreadsheetId", "api": "spreadsheetId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
83
+ hasBody: true,
84
+ shape: {
85
+ account: accountField(),
86
+ spreadsheetId: z.string().describe("The ID of the spreadsheet to retrieve data from."),
87
+ body: coerceJson(z.record(z.string(), z.unknown())).describe("BatchGetValuesByDataFilterRequest JSON request body. Top-level fields: dataFilters, dateTimeRenderOption, majorDimension, valueRenderOption."),
88
+ fields: z.string().optional().describe('Response field mask.'),
89
+ },
90
+ });
91
+ registerGeneratedTool(registry, {
92
+ name: "sheets_spreadsheets_values_batch_update_by_data_filter",
93
+ cud: "create",
94
+ description: "Sets values in one or more ranges of a spreadsheet. For more information, see [Read, write, and search metadata](https://developers.google.com/workspace/sheets/",
95
+ method: { id: "sheets.spreadsheets.values.batchUpdateByDataFilter", httpMethod: "POST", path: "v4/spreadsheets/{spreadsheetId}/values:batchUpdateByDataFilter", baseUrl: "https://sheets.googleapis.com/", requiredParams: ["spreadsheetId"] },
96
+ params: [{ "field": "spreadsheetId", "api": "spreadsheetId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
97
+ hasBody: true,
98
+ shape: {
99
+ account: accountField(),
100
+ spreadsheetId: z.string().describe("The ID of the spreadsheet to update."),
101
+ body: coerceJson(z.record(z.string(), z.unknown())).describe("BatchUpdateValuesByDataFilterRequest JSON request body. Top-level fields: data, includeValuesInResponse, responseDateTimeRenderOption, responseValueRenderOption, valueInputOption."),
102
+ fields: z.string().optional().describe('Response field mask.'),
103
+ },
104
+ });
105
+ }
@@ -0,0 +1,2 @@
1
+ import type { ToolRegistry } from '../../registry.js';
2
+ export declare function registerVaultGeneratedTools(registry: ToolRegistry): void;
@@ -0,0 +1,479 @@
1
+ // GENERATED by scripts/gen-tools.ts — do not edit. Regenerate: npm run gen:tools
2
+ import { z } from 'zod';
3
+ import { coerceBoolean, coerceJson } from '../_coerce.js';
4
+ import { accountField, registerGeneratedTool } from './_shared.js';
5
+ export function registerVaultGeneratedTools(registry) {
6
+ registerGeneratedTool(registry, {
7
+ name: "vault_matters_add_permissions",
8
+ cud: "create",
9
+ description: "Adds an account as a matter collaborator.",
10
+ method: { id: "vault.matters.addPermissions", httpMethod: "POST", path: "v1/matters/{matterId}:addPermissions", baseUrl: "https://vault.googleapis.com/", requiredParams: ["matterId"] },
11
+ params: [{ "field": "matterId", "api": "matterId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
12
+ hasBody: true,
13
+ shape: {
14
+ account: accountField(),
15
+ matterId: z.string().describe("The matter ID."),
16
+ body: coerceJson(z.record(z.string(), z.unknown())).describe("AddMatterPermissionsRequest JSON request body. Top-level fields: ccMe, matterPermission, sendEmails."),
17
+ fields: z.string().optional().describe('Response field mask.'),
18
+ },
19
+ });
20
+ registerGeneratedTool(registry, {
21
+ name: "vault_matters_close",
22
+ cud: "create",
23
+ description: "Closes the specified matter. Returns the matter with updated state.",
24
+ method: { id: "vault.matters.close", httpMethod: "POST", path: "v1/matters/{matterId}:close", baseUrl: "https://vault.googleapis.com/", requiredParams: ["matterId"] },
25
+ params: [{ "field": "matterId", "api": "matterId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
26
+ hasBody: true,
27
+ shape: {
28
+ account: accountField(),
29
+ matterId: z.string().describe("The matter ID."),
30
+ body: coerceJson(z.record(z.string(), z.unknown())).describe("CloseMatterRequest JSON request body."),
31
+ fields: z.string().optional().describe('Response field mask.'),
32
+ },
33
+ });
34
+ registerGeneratedTool(registry, {
35
+ name: "vault_matters_count",
36
+ cud: "read",
37
+ description: "Counts the accounts processed by the specified query.",
38
+ method: { id: "vault.matters.count", httpMethod: "POST", path: "v1/matters/{matterId}:count", baseUrl: "https://vault.googleapis.com/", requiredParams: ["matterId"] },
39
+ params: [{ "field": "matterId", "api": "matterId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
40
+ hasBody: true,
41
+ shape: {
42
+ account: accountField(),
43
+ matterId: z.string().describe("The matter ID."),
44
+ body: coerceJson(z.record(z.string(), z.unknown())).describe("CountArtifactsRequest JSON request body. Top-level fields: query, view."),
45
+ fields: z.string().optional().describe('Response field mask.'),
46
+ },
47
+ });
48
+ registerGeneratedTool(registry, {
49
+ name: "vault_matters_create",
50
+ cud: "create",
51
+ description: "Creates a matter with the given name and description. The initial state is open, and the owner is the method caller. Returns the created matter with default vie",
52
+ method: { id: "vault.matters.create", httpMethod: "POST", path: "v1/matters", baseUrl: "https://vault.googleapis.com/", requiredParams: [] },
53
+ params: [{ "field": "fields", "api": "fields", "location": "query" }],
54
+ hasBody: true,
55
+ shape: {
56
+ account: accountField(),
57
+ body: coerceJson(z.record(z.string(), z.unknown())).describe("Matter JSON request body. Top-level fields: description, matterId, matterPermissions, matterRegion, name, state."),
58
+ fields: z.string().optional().describe('Response field mask.'),
59
+ },
60
+ });
61
+ registerGeneratedTool(registry, {
62
+ name: "vault_matters_delete",
63
+ cud: "delete",
64
+ description: "Deletes the specified matter. Returns the matter with updated state.",
65
+ method: { id: "vault.matters.delete", httpMethod: "DELETE", path: "v1/matters/{matterId}", baseUrl: "https://vault.googleapis.com/", requiredParams: ["matterId"] },
66
+ params: [{ "field": "matterId", "api": "matterId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
67
+ hasBody: false,
68
+ shape: {
69
+ account: accountField(),
70
+ matterId: z.string().describe("The matter ID"),
71
+ fields: z.string().optional().describe('Response field mask.'),
72
+ },
73
+ });
74
+ registerGeneratedTool(registry, {
75
+ name: "vault_matters_exports_create",
76
+ cud: "create",
77
+ description: "Creates an export.",
78
+ method: { id: "vault.matters.exports.create", httpMethod: "POST", path: "v1/matters/{matterId}/exports", baseUrl: "https://vault.googleapis.com/", requiredParams: ["matterId"] },
79
+ params: [{ "field": "matterId", "api": "matterId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
80
+ hasBody: true,
81
+ shape: {
82
+ account: accountField(),
83
+ matterId: z.string().describe("The matter ID."),
84
+ 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."),
85
+ fields: z.string().optional().describe('Response field mask.'),
86
+ },
87
+ });
88
+ registerGeneratedTool(registry, {
89
+ name: "vault_matters_exports_delete",
90
+ cud: "delete",
91
+ description: "Deletes an export.",
92
+ method: { id: "vault.matters.exports.delete", httpMethod: "DELETE", path: "v1/matters/{matterId}/exports/{exportId}", baseUrl: "https://vault.googleapis.com/", requiredParams: ["matterId", "exportId"] },
93
+ params: [{ "field": "exportId", "api": "exportId", "location": "path" }, { "field": "matterId", "api": "matterId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
94
+ hasBody: false,
95
+ shape: {
96
+ account: accountField(),
97
+ exportId: z.string().describe("The export ID."),
98
+ matterId: z.string().describe("The matter ID."),
99
+ fields: z.string().optional().describe('Response field mask.'),
100
+ },
101
+ });
102
+ registerGeneratedTool(registry, {
103
+ name: "vault_matters_exports_get",
104
+ cud: "read",
105
+ description: "Gets an export.",
106
+ method: { id: "vault.matters.exports.get", httpMethod: "GET", path: "v1/matters/{matterId}/exports/{exportId}", baseUrl: "https://vault.googleapis.com/", requiredParams: ["matterId", "exportId"] },
107
+ params: [{ "field": "exportId", "api": "exportId", "location": "path" }, { "field": "matterId", "api": "matterId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
108
+ hasBody: false,
109
+ shape: {
110
+ account: accountField(),
111
+ exportId: z.string().describe("The export ID."),
112
+ matterId: z.string().describe("The matter ID."),
113
+ fields: z.string().optional().describe('Response field mask.'),
114
+ },
115
+ });
116
+ registerGeneratedTool(registry, {
117
+ name: "vault_matters_exports_list",
118
+ cud: "read",
119
+ description: "Lists details about the exports in the specified matter.",
120
+ method: { id: "vault.matters.exports.list", httpMethod: "GET", path: "v1/matters/{matterId}/exports", baseUrl: "https://vault.googleapis.com/", requiredParams: ["matterId"] },
121
+ 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" }],
122
+ hasBody: false,
123
+ shape: {
124
+ account: accountField(),
125
+ matterId: z.string().describe("The matter ID."),
126
+ pageSize: z.number().describe("The number of exports to return in the response.").optional(),
127
+ pageToken: z.string().describe("The pagination token as returned in the response.").optional(),
128
+ fields: z.string().optional().describe('Response field mask.'),
129
+ },
130
+ });
131
+ registerGeneratedTool(registry, {
132
+ name: "vault_matters_get",
133
+ cud: "read",
134
+ description: "Gets the specified matter.",
135
+ method: { id: "vault.matters.get", httpMethod: "GET", path: "v1/matters/{matterId}", baseUrl: "https://vault.googleapis.com/", requiredParams: ["matterId"] },
136
+ params: [{ "field": "matterId", "api": "matterId", "location": "path" }, { "field": "view", "api": "view", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
137
+ hasBody: false,
138
+ shape: {
139
+ account: accountField(),
140
+ matterId: z.string().describe("The matter ID."),
141
+ view: z.enum(["VIEW_UNSPECIFIED", "BASIC", "FULL"]).describe("Specifies how much information about the matter to return in the response.").optional(),
142
+ fields: z.string().optional().describe('Response field mask.'),
143
+ },
144
+ });
145
+ registerGeneratedTool(registry, {
146
+ name: "vault_matters_holds_accounts_create",
147
+ cud: "create",
148
+ description: "Adds an account to a hold. Accounts can be added only to a hold that does not have an organizational unit set. If you try to add an account to an organizational",
149
+ method: { id: "vault.matters.holds.accounts.create", httpMethod: "POST", path: "v1/matters/{matterId}/holds/{holdId}/accounts", baseUrl: "https://vault.googleapis.com/", requiredParams: ["matterId", "holdId"] },
150
+ params: [{ "field": "holdId", "api": "holdId", "location": "path" }, { "field": "matterId", "api": "matterId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
151
+ hasBody: true,
152
+ shape: {
153
+ account: accountField(),
154
+ holdId: z.string().describe("The hold ID."),
155
+ matterId: z.string().describe("The matter ID."),
156
+ body: coerceJson(z.record(z.string(), z.unknown())).describe("HeldAccount JSON request body. Top-level fields: accountId, email, firstName, holdTime, lastName."),
157
+ fields: z.string().optional().describe('Response field mask.'),
158
+ },
159
+ });
160
+ registerGeneratedTool(registry, {
161
+ name: "vault_matters_holds_accounts_delete",
162
+ cud: "delete",
163
+ description: "Removes an account from a hold.",
164
+ method: { id: "vault.matters.holds.accounts.delete", httpMethod: "DELETE", path: "v1/matters/{matterId}/holds/{holdId}/accounts/{accountId}", baseUrl: "https://vault.googleapis.com/", requiredParams: ["holdId", "matterId", "accountId"] },
165
+ 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" }],
166
+ hasBody: false,
167
+ shape: {
168
+ account: accountField(),
169
+ accountId: z.string().describe("The ID of the account to remove from the hold."),
170
+ holdId: z.string().describe("The hold ID."),
171
+ matterId: z.string().describe("The matter ID."),
172
+ fields: z.string().optional().describe('Response field mask.'),
173
+ },
174
+ });
175
+ registerGeneratedTool(registry, {
176
+ name: "vault_matters_holds_accounts_list",
177
+ cud: "read",
178
+ description: "Lists the accounts covered by a hold. This can list only individually-specified accounts covered by the hold. If the hold covers an organizational unit, use the",
179
+ method: { id: "vault.matters.holds.accounts.list", httpMethod: "GET", path: "v1/matters/{matterId}/holds/{holdId}/accounts", baseUrl: "https://vault.googleapis.com/", requiredParams: ["holdId", "matterId"] },
180
+ params: [{ "field": "holdId", "api": "holdId", "location": "path" }, { "field": "matterId", "api": "matterId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
181
+ hasBody: false,
182
+ shape: {
183
+ account: accountField(),
184
+ holdId: z.string().describe("The hold ID."),
185
+ matterId: z.string().describe("The matter ID."),
186
+ fields: z.string().optional().describe('Response field mask.'),
187
+ },
188
+ });
189
+ registerGeneratedTool(registry, {
190
+ name: "vault_matters_holds_add_held_accounts",
191
+ cud: "create",
192
+ description: "Adds accounts to a hold. Returns a list of accounts that have been successfully added. Accounts can be added only to an existing account-based hold.",
193
+ method: { id: "vault.matters.holds.addHeldAccounts", httpMethod: "POST", path: "v1/matters/{matterId}/holds/{holdId}:addHeldAccounts", baseUrl: "https://vault.googleapis.com/", requiredParams: ["matterId", "holdId"] },
194
+ params: [{ "field": "holdId", "api": "holdId", "location": "path" }, { "field": "matterId", "api": "matterId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
195
+ hasBody: true,
196
+ shape: {
197
+ account: accountField(),
198
+ holdId: z.string().describe("The hold ID."),
199
+ matterId: z.string().describe("The matter ID."),
200
+ body: coerceJson(z.record(z.string(), z.unknown())).describe("AddHeldAccountsRequest JSON request body. Top-level fields: accountIds, emails."),
201
+ fields: z.string().optional().describe('Response field mask.'),
202
+ },
203
+ });
204
+ registerGeneratedTool(registry, {
205
+ name: "vault_matters_holds_create",
206
+ cud: "create",
207
+ description: "Creates a hold in the specified matter.",
208
+ method: { id: "vault.matters.holds.create", httpMethod: "POST", path: "v1/matters/{matterId}/holds", baseUrl: "https://vault.googleapis.com/", requiredParams: ["matterId"] },
209
+ params: [{ "field": "matterId", "api": "matterId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
210
+ hasBody: true,
211
+ shape: {
212
+ account: accountField(),
213
+ matterId: z.string().describe("The matter ID."),
214
+ body: coerceJson(z.record(z.string(), z.unknown())).describe("Hold JSON request body. Top-level fields: accounts, corpus, holdId, name, orgUnit, query, updateTime."),
215
+ fields: z.string().optional().describe('Response field mask.'),
216
+ },
217
+ });
218
+ registerGeneratedTool(registry, {
219
+ name: "vault_matters_holds_delete",
220
+ cud: "delete",
221
+ description: "Removes the specified hold and releases the accounts or organizational unit covered by the hold. If the data is not preserved by another hold or retention rule,",
222
+ method: { id: "vault.matters.holds.delete", httpMethod: "DELETE", path: "v1/matters/{matterId}/holds/{holdId}", baseUrl: "https://vault.googleapis.com/", requiredParams: ["matterId", "holdId"] },
223
+ params: [{ "field": "holdId", "api": "holdId", "location": "path" }, { "field": "matterId", "api": "matterId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
224
+ hasBody: false,
225
+ shape: {
226
+ account: accountField(),
227
+ holdId: z.string().describe("The hold ID."),
228
+ matterId: z.string().describe("The matter ID."),
229
+ fields: z.string().optional().describe('Response field mask.'),
230
+ },
231
+ });
232
+ registerGeneratedTool(registry, {
233
+ name: "vault_matters_holds_get",
234
+ cud: "read",
235
+ description: "Gets the specified hold.",
236
+ method: { id: "vault.matters.holds.get", httpMethod: "GET", path: "v1/matters/{matterId}/holds/{holdId}", baseUrl: "https://vault.googleapis.com/", requiredParams: ["matterId", "holdId"] },
237
+ 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" }],
238
+ hasBody: false,
239
+ shape: {
240
+ account: accountField(),
241
+ holdId: z.string().describe("The hold ID."),
242
+ matterId: z.string().describe("The matter ID."),
243
+ view: z.enum(["HOLD_VIEW_UNSPECIFIED", "BASIC_HOLD", "FULL_HOLD"]).describe("The amount of detail to return for a hold.").optional(),
244
+ fields: z.string().optional().describe('Response field mask.'),
245
+ },
246
+ });
247
+ registerGeneratedTool(registry, {
248
+ name: "vault_matters_holds_list",
249
+ cud: "read",
250
+ description: "Lists the holds in a matter.",
251
+ method: { id: "vault.matters.holds.list", httpMethod: "GET", path: "v1/matters/{matterId}/holds", baseUrl: "https://vault.googleapis.com/", requiredParams: ["matterId"] },
252
+ 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" }],
253
+ hasBody: false,
254
+ shape: {
255
+ account: accountField(),
256
+ matterId: z.string().describe("The matter ID."),
257
+ 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(),
258
+ pageToken: z.string().describe("The pagination token as returned in the response. An empty token means start from the beginning.").optional(),
259
+ view: z.enum(["HOLD_VIEW_UNSPECIFIED", "BASIC_HOLD", "FULL_HOLD"]).describe("The amount of detail to return for a hold.").optional(),
260
+ fields: z.string().optional().describe('Response field mask.'),
261
+ },
262
+ });
263
+ registerGeneratedTool(registry, {
264
+ name: "vault_matters_holds_remove_held_accounts",
265
+ cud: "delete",
266
+ description: "Removes the specified accounts from a hold. Returns a list of statuses in the same order as the request.",
267
+ method: { id: "vault.matters.holds.removeHeldAccounts", httpMethod: "POST", path: "v1/matters/{matterId}/holds/{holdId}:removeHeldAccounts", baseUrl: "https://vault.googleapis.com/", requiredParams: ["matterId", "holdId"] },
268
+ params: [{ "field": "holdId", "api": "holdId", "location": "path" }, { "field": "matterId", "api": "matterId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
269
+ hasBody: true,
270
+ shape: {
271
+ account: accountField(),
272
+ holdId: z.string().describe("The hold ID."),
273
+ matterId: z.string().describe("The matter ID."),
274
+ body: coerceJson(z.record(z.string(), z.unknown())).describe("RemoveHeldAccountsRequest JSON request body. Top-level fields: accountIds."),
275
+ fields: z.string().optional().describe('Response field mask.'),
276
+ },
277
+ });
278
+ registerGeneratedTool(registry, {
279
+ name: "vault_matters_holds_update",
280
+ cud: "update",
281
+ description: "Updates the scope (organizational unit or accounts) and query parameters of a hold. You cannot add accounts to a hold that covers an organizational unit, nor ca",
282
+ method: { id: "vault.matters.holds.update", httpMethod: "PUT", path: "v1/matters/{matterId}/holds/{holdId}", baseUrl: "https://vault.googleapis.com/", requiredParams: ["holdId", "matterId"] },
283
+ params: [{ "field": "holdId", "api": "holdId", "location": "path" }, { "field": "matterId", "api": "matterId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
284
+ hasBody: true,
285
+ shape: {
286
+ account: accountField(),
287
+ holdId: z.string().describe("The ID of the hold."),
288
+ matterId: z.string().describe("The matter ID."),
289
+ body: coerceJson(z.record(z.string(), z.unknown())).describe("Hold JSON request body. Top-level fields: accounts, corpus, holdId, name, orgUnit, query, updateTime."),
290
+ fields: z.string().optional().describe('Response field mask.'),
291
+ },
292
+ });
293
+ registerGeneratedTool(registry, {
294
+ name: "vault_matters_list",
295
+ cud: "read",
296
+ description: "Lists matters the requestor has access to.",
297
+ method: { id: "vault.matters.list", httpMethod: "GET", path: "v1/matters", baseUrl: "https://vault.googleapis.com/", requiredParams: [] },
298
+ 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" }],
299
+ hasBody: false,
300
+ shape: {
301
+ account: accountField(),
302
+ pageSize: z.number().describe("The number of matters to return in the response. Default and maximum are 100.").optional(),
303
+ pageToken: z.string().describe("The pagination token as returned in the response.").optional(),
304
+ 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(),
305
+ view: z.enum(["VIEW_UNSPECIFIED", "BASIC", "FULL"]).describe("Specifies how much information about the matter to return in response.").optional(),
306
+ fields: z.string().optional().describe('Response field mask.'),
307
+ },
308
+ });
309
+ registerGeneratedTool(registry, {
310
+ name: "vault_matters_remove_permissions",
311
+ cud: "delete",
312
+ description: "Removes an account as a matter collaborator.",
313
+ method: { id: "vault.matters.removePermissions", httpMethod: "POST", path: "v1/matters/{matterId}:removePermissions", baseUrl: "https://vault.googleapis.com/", requiredParams: ["matterId"] },
314
+ params: [{ "field": "matterId", "api": "matterId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
315
+ hasBody: true,
316
+ shape: {
317
+ account: accountField(),
318
+ matterId: z.string().describe("The matter ID."),
319
+ body: coerceJson(z.record(z.string(), z.unknown())).describe("RemoveMatterPermissionsRequest JSON request body. Top-level fields: accountId."),
320
+ fields: z.string().optional().describe('Response field mask.'),
321
+ },
322
+ });
323
+ registerGeneratedTool(registry, {
324
+ name: "vault_matters_reopen",
325
+ cud: "create",
326
+ description: "Reopens the specified matter. Returns the matter with updated state.",
327
+ method: { id: "vault.matters.reopen", httpMethod: "POST", path: "v1/matters/{matterId}:reopen", baseUrl: "https://vault.googleapis.com/", requiredParams: ["matterId"] },
328
+ params: [{ "field": "matterId", "api": "matterId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
329
+ hasBody: true,
330
+ shape: {
331
+ account: accountField(),
332
+ matterId: z.string().describe("The matter ID."),
333
+ body: coerceJson(z.record(z.string(), z.unknown())).describe("ReopenMatterRequest JSON request body."),
334
+ fields: z.string().optional().describe('Response field mask.'),
335
+ },
336
+ });
337
+ registerGeneratedTool(registry, {
338
+ name: "vault_matters_saved_queries_create",
339
+ cud: "create",
340
+ description: "Creates a saved query.",
341
+ method: { id: "vault.matters.savedQueries.create", httpMethod: "POST", path: "v1/matters/{matterId}/savedQueries", baseUrl: "https://vault.googleapis.com/", requiredParams: ["matterId"] },
342
+ params: [{ "field": "matterId", "api": "matterId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
343
+ hasBody: true,
344
+ shape: {
345
+ account: accountField(),
346
+ matterId: z.string().describe("The ID of the matter to create the saved query in."),
347
+ body: coerceJson(z.record(z.string(), z.unknown())).describe("SavedQuery JSON request body. Top-level fields: createTime, displayName, matterId, query, savedQueryId."),
348
+ fields: z.string().optional().describe('Response field mask.'),
349
+ },
350
+ });
351
+ registerGeneratedTool(registry, {
352
+ name: "vault_matters_saved_queries_delete",
353
+ cud: "delete",
354
+ description: "Deletes the specified saved query.",
355
+ method: { id: "vault.matters.savedQueries.delete", httpMethod: "DELETE", path: "v1/matters/{matterId}/savedQueries/{savedQueryId}", baseUrl: "https://vault.googleapis.com/", requiredParams: ["matterId", "savedQueryId"] },
356
+ params: [{ "field": "matterId", "api": "matterId", "location": "path" }, { "field": "savedQueryId", "api": "savedQueryId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
357
+ hasBody: false,
358
+ shape: {
359
+ account: accountField(),
360
+ matterId: z.string().describe("The ID of the matter to delete the saved query from."),
361
+ savedQueryId: z.string().describe("ID of the saved query to delete."),
362
+ fields: z.string().optional().describe('Response field mask.'),
363
+ },
364
+ });
365
+ registerGeneratedTool(registry, {
366
+ name: "vault_matters_saved_queries_get",
367
+ cud: "read",
368
+ description: "Retrieves the specified saved query.",
369
+ method: { id: "vault.matters.savedQueries.get", httpMethod: "GET", path: "v1/matters/{matterId}/savedQueries/{savedQueryId}", baseUrl: "https://vault.googleapis.com/", requiredParams: ["matterId", "savedQueryId"] },
370
+ params: [{ "field": "matterId", "api": "matterId", "location": "path" }, { "field": "savedQueryId", "api": "savedQueryId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
371
+ hasBody: false,
372
+ shape: {
373
+ account: accountField(),
374
+ matterId: z.string().describe("The ID of the matter to get the saved query from."),
375
+ savedQueryId: z.string().describe("ID of the saved query to retrieve."),
376
+ fields: z.string().optional().describe('Response field mask.'),
377
+ },
378
+ });
379
+ registerGeneratedTool(registry, {
380
+ name: "vault_matters_saved_queries_list",
381
+ cud: "read",
382
+ description: "Lists the saved queries in a matter.",
383
+ method: { id: "vault.matters.savedQueries.list", httpMethod: "GET", path: "v1/matters/{matterId}/savedQueries", baseUrl: "https://vault.googleapis.com/", requiredParams: ["matterId"] },
384
+ 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" }],
385
+ hasBody: false,
386
+ shape: {
387
+ account: accountField(),
388
+ matterId: z.string().describe("The ID of the matter to get the saved queries for."),
389
+ pageSize: z.number().describe("The maximum number of saved queries to return.").optional(),
390
+ pageToken: z.string().describe("The pagination token as returned in the previous response. An empty token means start from the beginning.").optional(),
391
+ fields: z.string().optional().describe('Response field mask.'),
392
+ },
393
+ });
394
+ registerGeneratedTool(registry, {
395
+ name: "vault_matters_undelete",
396
+ cud: "update",
397
+ description: "Undeletes the specified matter. Returns the matter with updated state.",
398
+ method: { id: "vault.matters.undelete", httpMethod: "POST", path: "v1/matters/{matterId}:undelete", baseUrl: "https://vault.googleapis.com/", requiredParams: ["matterId"] },
399
+ params: [{ "field": "matterId", "api": "matterId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
400
+ hasBody: true,
401
+ shape: {
402
+ account: accountField(),
403
+ matterId: z.string().describe("The matter ID."),
404
+ body: coerceJson(z.record(z.string(), z.unknown())).describe("UndeleteMatterRequest JSON request body."),
405
+ fields: z.string().optional().describe('Response field mask.'),
406
+ },
407
+ });
408
+ registerGeneratedTool(registry, {
409
+ name: "vault_matters_update",
410
+ cud: "update",
411
+ description: "Updates the specified matter. This updates only the name and description of the matter, identified by matter ID. Changes to any other fields are ignored. Return",
412
+ method: { id: "vault.matters.update", httpMethod: "PUT", path: "v1/matters/{matterId}", baseUrl: "https://vault.googleapis.com/", requiredParams: ["matterId"] },
413
+ params: [{ "field": "matterId", "api": "matterId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
414
+ hasBody: true,
415
+ shape: {
416
+ account: accountField(),
417
+ matterId: z.string().describe("The matter ID."),
418
+ body: coerceJson(z.record(z.string(), z.unknown())).describe("Matter JSON request body. Top-level fields: description, matterId, matterPermissions, matterRegion, name, state."),
419
+ fields: z.string().optional().describe('Response field mask.'),
420
+ },
421
+ });
422
+ registerGeneratedTool(registry, {
423
+ name: "vault_operations_cancel",
424
+ cud: "create",
425
+ description: "Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the serv",
426
+ method: { id: "vault.operations.cancel", httpMethod: "POST", path: "v1/{+name}:cancel", baseUrl: "https://vault.googleapis.com/", requiredParams: ["name"] },
427
+ params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
428
+ hasBody: true,
429
+ shape: {
430
+ account: accountField(),
431
+ name: z.string().describe("The name of the operation resource to be cancelled."),
432
+ body: coerceJson(z.record(z.string(), z.unknown())).describe("CancelOperationRequest JSON request body."),
433
+ fields: z.string().optional().describe('Response field mask.'),
434
+ },
435
+ });
436
+ registerGeneratedTool(registry, {
437
+ name: "vault_operations_delete",
438
+ cud: "delete",
439
+ description: "Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If th",
440
+ method: { id: "vault.operations.delete", httpMethod: "DELETE", path: "v1/{+name}", baseUrl: "https://vault.googleapis.com/", requiredParams: ["name"] },
441
+ params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
442
+ hasBody: false,
443
+ shape: {
444
+ account: accountField(),
445
+ name: z.string().describe("The name of the operation resource to be deleted."),
446
+ fields: z.string().optional().describe('Response field mask.'),
447
+ },
448
+ });
449
+ registerGeneratedTool(registry, {
450
+ name: "vault_operations_get",
451
+ cud: "read",
452
+ description: "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.",
453
+ method: { id: "vault.operations.get", httpMethod: "GET", path: "v1/{+name}", baseUrl: "https://vault.googleapis.com/", requiredParams: ["name"] },
454
+ params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
455
+ hasBody: false,
456
+ shape: {
457
+ account: accountField(),
458
+ name: z.string().describe("The name of the operation resource."),
459
+ fields: z.string().optional().describe('Response field mask.'),
460
+ },
461
+ });
462
+ registerGeneratedTool(registry, {
463
+ name: "vault_operations_list",
464
+ cud: "read",
465
+ description: "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.",
466
+ method: { id: "vault.operations.list", httpMethod: "GET", path: "v1/{+name}", baseUrl: "https://vault.googleapis.com/", requiredParams: ["name"] },
467
+ 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" }],
468
+ hasBody: false,
469
+ shape: {
470
+ account: accountField(),
471
+ name: z.string().describe("The name of the operation's parent resource."),
472
+ filter: z.string().describe("The standard list filter.").optional(),
473
+ pageSize: z.number().describe("The standard list page size.").optional(),
474
+ pageToken: z.string().describe("The standard list page token.").optional(),
475
+ 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(),
476
+ fields: z.string().optional().describe('Response field mask.'),
477
+ },
478
+ });
479
+ }