mcp-google-multi 5.2.0-alpha.1 → 5.2.0-alpha.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/auth.js +33 -0
- package/dist/discovery-client.js +13 -0
- package/dist/executor.d.ts +39 -0
- package/dist/executor.js +75 -0
- package/dist/index.js +42 -3
- package/dist/registry.js +3 -2
- package/dist/tools/generated/_shared.d.ts +21 -0
- package/dist/tools/generated/_shared.js +35 -0
- package/dist/tools/generated/admin.d.ts +2 -0
- package/dist/tools/generated/admin.js +1937 -0
- package/dist/tools/generated/appsmarket.d.ts +2 -0
- package/dist/tools/generated/appsmarket.js +33 -0
- package/dist/tools/generated/calendar.d.ts +2 -0
- package/dist/tools/generated/calendar.js +428 -0
- package/dist/tools/generated/chat.d.ts +2 -0
- package/dist/tools/generated/chat.js +666 -0
- package/dist/tools/generated/classroom.d.ts +2 -0
- package/dist/tools/generated/classroom.js +1610 -0
- package/dist/tools/generated/cloudidentity.d.ts +2 -0
- package/dist/tools/generated/cloudidentity.js +955 -0
- package/dist/tools/generated/cloudsearch.d.ts +2 -0
- package/dist/tools/generated/cloudsearch.js +754 -0
- package/dist/tools/generated/contacts.d.ts +2 -0
- package/dist/tools/generated/contacts.js +215 -0
- package/dist/tools/generated/drive.d.ts +2 -0
- package/dist/tools/generated/drive.js +543 -0
- package/dist/tools/generated/driveactivity.d.ts +2 -0
- package/dist/tools/generated/driveactivity.js +19 -0
- package/dist/tools/generated/drivelabels.d.ts +2 -0
- package/dist/tools/generated/drivelabels.js +389 -0
- package/dist/tools/generated/forms.d.ts +2 -0
- package/dist/tools/generated/forms.js +49 -0
- package/dist/tools/generated/gmail.d.ts +2 -0
- package/dist/tools/generated/gmail.js +835 -0
- package/dist/tools/generated/groupsmigration.d.ts +2 -0
- package/dist/tools/generated/groupsmigration.js +18 -0
- package/dist/tools/generated/groupssettings.d.ts +2 -0
- package/dist/tools/generated/groupssettings.js +47 -0
- package/dist/tools/generated/index.d.ts +5 -0
- package/dist/tools/generated/index.js +54 -0
- package/dist/tools/generated/keep.d.ts +2 -0
- package/dist/tools/generated/keep.js +102 -0
- package/dist/tools/generated/licensing.d.ts +2 -0
- package/dist/tools/generated/licensing.js +116 -0
- package/dist/tools/generated/meet.d.ts +2 -0
- package/dist/tools/generated/meet.js +186 -0
- package/dist/tools/generated/postmaster.d.ts +2 -0
- package/dist/tools/generated/postmaster.js +66 -0
- package/dist/tools/generated/reseller.d.ts +2 -0
- package/dist/tools/generated/reseller.js +249 -0
- package/dist/tools/generated/script.d.ts +2 -0
- package/dist/tools/generated/script.js +249 -0
- package/dist/tools/generated/searchconsole.d.ts +2 -0
- package/dist/tools/generated/searchconsole.js +19 -0
- package/dist/tools/generated/sheets.d.ts +2 -0
- package/dist/tools/generated/sheets.js +105 -0
- package/dist/tools/generated/tasks.d.ts +2 -0
- package/dist/tools/generated/tasks.js +35 -0
- package/dist/tools/generated/vault.d.ts +2 -0
- package/dist/tools/generated/vault.js +479 -0
- package/dist/tools/generated/workspaceevents.d.ts +2 -0
- package/dist/tools/generated/workspaceevents.js +223 -0
- package/dist/tools/google-api.js +9 -71
- package/package.json +3 -2
|
@@ -0,0 +1,1937 @@
|
|
|
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 registerAdminGeneratedTools(registry) {
|
|
6
|
+
registerGeneratedTool(registry, {
|
|
7
|
+
name: "admin_applications_get",
|
|
8
|
+
cud: "read",
|
|
9
|
+
description: "Retrieves information about an application for the given application ID.",
|
|
10
|
+
method: { id: "datatransfer.applications.get", httpMethod: "GET", path: "admin/datatransfer/v1/applications/{applicationId}", baseUrl: "https://admin.googleapis.com/", requiredParams: ["applicationId"] },
|
|
11
|
+
params: [{ "field": "applicationId", "api": "applicationId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
12
|
+
hasBody: false,
|
|
13
|
+
shape: {
|
|
14
|
+
account: accountField(),
|
|
15
|
+
applicationId: z.string().describe("ID of the application resource to be retrieved."),
|
|
16
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
17
|
+
},
|
|
18
|
+
});
|
|
19
|
+
registerGeneratedTool(registry, {
|
|
20
|
+
name: "admin_applications_list",
|
|
21
|
+
cud: "read",
|
|
22
|
+
description: "Lists the applications available for data transfer for a customer.",
|
|
23
|
+
method: { id: "datatransfer.applications.list", httpMethod: "GET", path: "admin/datatransfer/v1/applications", baseUrl: "https://admin.googleapis.com/", requiredParams: [] },
|
|
24
|
+
params: [{ "field": "customerId", "api": "customerId", "location": "query" }, { "field": "maxResults", "api": "maxResults", "location": "query" }, { "field": "pageToken", "api": "pageToken", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
25
|
+
hasBody: false,
|
|
26
|
+
shape: {
|
|
27
|
+
account: accountField(),
|
|
28
|
+
customerId: z.string().describe("Immutable ID of the Google Workspace account.").optional(),
|
|
29
|
+
maxResults: z.number().describe("Maximum number of results to return. Default is 100.").optional(),
|
|
30
|
+
pageToken: z.string().describe("Token to specify next page in the list.").optional(),
|
|
31
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
32
|
+
},
|
|
33
|
+
});
|
|
34
|
+
registerGeneratedTool(registry, {
|
|
35
|
+
name: "admin_transfers_get",
|
|
36
|
+
cud: "read",
|
|
37
|
+
description: "Retrieves a data transfer request by its resource ID.",
|
|
38
|
+
method: { id: "datatransfer.transfers.get", httpMethod: "GET", path: "admin/datatransfer/v1/transfers/{dataTransferId}", baseUrl: "https://admin.googleapis.com/", requiredParams: ["dataTransferId"] },
|
|
39
|
+
params: [{ "field": "dataTransferId", "api": "dataTransferId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
40
|
+
hasBody: false,
|
|
41
|
+
shape: {
|
|
42
|
+
account: accountField(),
|
|
43
|
+
dataTransferId: z.string().describe("ID of the resource to be retrieved. This is returned in the response from the insert method."),
|
|
44
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
45
|
+
},
|
|
46
|
+
});
|
|
47
|
+
registerGeneratedTool(registry, {
|
|
48
|
+
name: "admin_transfers_insert",
|
|
49
|
+
cud: "create",
|
|
50
|
+
description: "Inserts a data transfer request. See the [Transfer parameters](https://developers.google.com/workspace/admin/data-transfer/v1/parameters) reference for specific",
|
|
51
|
+
method: { id: "datatransfer.transfers.insert", httpMethod: "POST", path: "admin/datatransfer/v1/transfers", baseUrl: "https://admin.googleapis.com/", requiredParams: [] },
|
|
52
|
+
params: [{ "field": "fields", "api": "fields", "location": "query" }],
|
|
53
|
+
hasBody: true,
|
|
54
|
+
shape: {
|
|
55
|
+
account: accountField(),
|
|
56
|
+
body: coerceJson(z.record(z.string(), z.unknown())).describe("DataTransfer JSON request body. Top-level fields: applicationDataTransfers, etag, id, kind, newOwnerUserId, oldOwnerUserId, overallTransferStatusCode, requestTime."),
|
|
57
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
58
|
+
},
|
|
59
|
+
});
|
|
60
|
+
registerGeneratedTool(registry, {
|
|
61
|
+
name: "admin_transfers_list",
|
|
62
|
+
cud: "read",
|
|
63
|
+
description: "Lists the transfers for a customer by source user, destination user, or status.",
|
|
64
|
+
method: { id: "datatransfer.transfers.list", httpMethod: "GET", path: "admin/datatransfer/v1/transfers", baseUrl: "https://admin.googleapis.com/", requiredParams: [] },
|
|
65
|
+
params: [{ "field": "customerId", "api": "customerId", "location": "query" }, { "field": "maxResults", "api": "maxResults", "location": "query" }, { "field": "newOwnerUserId", "api": "newOwnerUserId", "location": "query" }, { "field": "oldOwnerUserId", "api": "oldOwnerUserId", "location": "query" }, { "field": "pageToken", "api": "pageToken", "location": "query" }, { "field": "status", "api": "status", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
66
|
+
hasBody: false,
|
|
67
|
+
shape: {
|
|
68
|
+
account: accountField(),
|
|
69
|
+
customerId: z.string().describe("Immutable ID of the Google Workspace account.").optional(),
|
|
70
|
+
maxResults: z.number().describe("Maximum number of results to return. Default is 100.").optional(),
|
|
71
|
+
newOwnerUserId: z.string().describe("Destination user's profile ID.").optional(),
|
|
72
|
+
oldOwnerUserId: z.string().describe("Source user's profile ID.").optional(),
|
|
73
|
+
pageToken: z.string().describe("Token to specify the next page in the list.").optional(),
|
|
74
|
+
status: z.string().describe("Status of the transfer.").optional(),
|
|
75
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
76
|
+
},
|
|
77
|
+
});
|
|
78
|
+
registerGeneratedTool(registry, {
|
|
79
|
+
name: "admin_channels_stop",
|
|
80
|
+
cud: "create",
|
|
81
|
+
description: "Stops watching resources through this channel.",
|
|
82
|
+
method: { id: "admin.channels.stop", httpMethod: "POST", path: "admin/directory_v1/channels/stop", baseUrl: "https://admin.googleapis.com/", requiredParams: [] },
|
|
83
|
+
params: [{ "field": "fields", "api": "fields", "location": "query" }],
|
|
84
|
+
hasBody: true,
|
|
85
|
+
shape: {
|
|
86
|
+
account: accountField(),
|
|
87
|
+
body: coerceJson(z.record(z.string(), z.unknown())).describe("Channel JSON request body. Top-level fields: address, expiration, id, kind, params, payload, resourceId, resourceUri, token, type."),
|
|
88
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
89
|
+
},
|
|
90
|
+
});
|
|
91
|
+
registerGeneratedTool(registry, {
|
|
92
|
+
name: "admin_customer_devices_chromeos_batch_change_status",
|
|
93
|
+
cud: "create",
|
|
94
|
+
description: "Changes the status of a batch of ChromeOS devices. For more information about changing a ChromeOS device state [Repair, repurpose, or retire ChromeOS devices](h",
|
|
95
|
+
method: { id: "admin.customer.devices.chromeos.batchChangeStatus", httpMethod: "POST", path: "admin/directory/v1/customer/{customerId}/devices/chromeos:batchChangeStatus", baseUrl: "https://admin.googleapis.com/", requiredParams: ["customerId"] },
|
|
96
|
+
params: [{ "field": "customerId", "api": "customerId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
97
|
+
hasBody: true,
|
|
98
|
+
shape: {
|
|
99
|
+
account: accountField(),
|
|
100
|
+
customerId: z.string().describe("Required. Immutable ID of the Google Workspace account."),
|
|
101
|
+
body: coerceJson(z.record(z.string(), z.unknown())).describe("BatchChangeChromeOsDeviceStatusRequest JSON request body. Top-level fields: changeChromeOsDeviceStatusAction, deprovisionReason, deviceIds."),
|
|
102
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
103
|
+
},
|
|
104
|
+
});
|
|
105
|
+
registerGeneratedTool(registry, {
|
|
106
|
+
name: "admin_customer_devices_chromeos_commands_get",
|
|
107
|
+
cud: "read",
|
|
108
|
+
description: "Gets command data a specific command issued to the device.",
|
|
109
|
+
method: { id: "admin.customer.devices.chromeos.commands.get", httpMethod: "GET", path: "admin/directory/v1/customer/{customerId}/devices/chromeos/{deviceId}/commands/{commandId}", baseUrl: "https://admin.googleapis.com/", requiredParams: ["commandId", "customerId", "deviceId"] },
|
|
110
|
+
params: [{ "field": "commandId", "api": "commandId", "location": "path" }, { "field": "customerId", "api": "customerId", "location": "path" }, { "field": "deviceId", "api": "deviceId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
111
|
+
hasBody: false,
|
|
112
|
+
shape: {
|
|
113
|
+
account: accountField(),
|
|
114
|
+
commandId: z.string().describe("Immutable. ID of Chrome OS Device Command."),
|
|
115
|
+
customerId: z.string().describe("Immutable. ID of the Google Workspace account."),
|
|
116
|
+
deviceId: z.string().describe("Immutable. ID of Chrome OS Device."),
|
|
117
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
118
|
+
},
|
|
119
|
+
});
|
|
120
|
+
registerGeneratedTool(registry, {
|
|
121
|
+
name: "admin_customer_devices_chromeos_count_chrome_os_devices",
|
|
122
|
+
cud: "read",
|
|
123
|
+
description: "Counts ChromeOS devices matching the request.",
|
|
124
|
+
method: { id: "admin.customer.devices.chromeos.countChromeOsDevices", httpMethod: "GET", path: "admin/directory/v1/customer/{customerId}/devices/chromeos:countChromeOsDevices", baseUrl: "https://admin.googleapis.com/", requiredParams: ["customerId"] },
|
|
125
|
+
params: [{ "field": "customerId", "api": "customerId", "location": "path" }, { "field": "filter", "api": "filter", "location": "query" }, { "field": "includeChildOrgunits", "api": "includeChildOrgunits", "location": "query" }, { "field": "orgUnitPath", "api": "orgUnitPath", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
126
|
+
hasBody: false,
|
|
127
|
+
shape: {
|
|
128
|
+
account: accountField(),
|
|
129
|
+
customerId: z.string().describe("Required. Immutable ID of the Google Workspace account."),
|
|
130
|
+
filter: z.string().describe("Optional. Search string in the format given at [List query operators](https://developers.google.com/workspace/admin/directory/v1/list-query-operators).").optional(),
|
|
131
|
+
includeChildOrgunits: coerceBoolean.describe("Optional. Return devices from all child orgunits, as well as the specified org unit. If this is set to true, 'orgUnitPath' must be provided.").optional(),
|
|
132
|
+
orgUnitPath: z.string().describe("Optional. The full path of the organizational unit (minus the leading `/`) or its unique ID.").optional(),
|
|
133
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
134
|
+
},
|
|
135
|
+
});
|
|
136
|
+
registerGeneratedTool(registry, {
|
|
137
|
+
name: "admin_customer_devices_chromeos_issue_command",
|
|
138
|
+
cud: "create",
|
|
139
|
+
description: "Issues a command for the device to execute.",
|
|
140
|
+
method: { id: "admin.customer.devices.chromeos.issueCommand", httpMethod: "POST", path: "admin/directory/v1/customer/{customerId}/devices/chromeos/{deviceId}:issueCommand", baseUrl: "https://admin.googleapis.com/", requiredParams: ["customerId", "deviceId"] },
|
|
141
|
+
params: [{ "field": "customerId", "api": "customerId", "location": "path" }, { "field": "deviceId", "api": "deviceId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
142
|
+
hasBody: true,
|
|
143
|
+
shape: {
|
|
144
|
+
account: accountField(),
|
|
145
|
+
customerId: z.string().describe("Immutable. ID of the Google Workspace account."),
|
|
146
|
+
deviceId: z.string().describe("Immutable. ID of Chrome OS Device."),
|
|
147
|
+
body: coerceJson(z.record(z.string(), z.unknown())).describe("DirectoryChromeosdevicesIssueCommandRequest JSON request body. Top-level fields: commandType, payload."),
|
|
148
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
149
|
+
},
|
|
150
|
+
});
|
|
151
|
+
registerGeneratedTool(registry, {
|
|
152
|
+
name: "admin_customers_chrome_printers_batch_create_printers",
|
|
153
|
+
cud: "create",
|
|
154
|
+
description: "Creates printers under given Organization Unit.",
|
|
155
|
+
method: { id: "admin.customers.chrome.printers.batchCreatePrinters", httpMethod: "POST", path: "admin/directory/v1/{+parent}/chrome/printers:batchCreatePrinters", baseUrl: "https://admin.googleapis.com/", requiredParams: ["parent"] },
|
|
156
|
+
params: [{ "field": "parent", "api": "parent", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
157
|
+
hasBody: true,
|
|
158
|
+
shape: {
|
|
159
|
+
account: accountField(),
|
|
160
|
+
parent: z.string().describe("Required. The name of the customer. Format: customers/{customer_id}"),
|
|
161
|
+
body: coerceJson(z.record(z.string(), z.unknown())).describe("BatchCreatePrintersRequest JSON request body. Top-level fields: requests."),
|
|
162
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
163
|
+
},
|
|
164
|
+
});
|
|
165
|
+
registerGeneratedTool(registry, {
|
|
166
|
+
name: "admin_customers_chrome_printers_batch_delete_printers",
|
|
167
|
+
cud: "delete",
|
|
168
|
+
description: "Deletes printers in batch.",
|
|
169
|
+
method: { id: "admin.customers.chrome.printers.batchDeletePrinters", httpMethod: "POST", path: "admin/directory/v1/{+parent}/chrome/printers:batchDeletePrinters", baseUrl: "https://admin.googleapis.com/", requiredParams: ["parent"] },
|
|
170
|
+
params: [{ "field": "parent", "api": "parent", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
171
|
+
hasBody: true,
|
|
172
|
+
shape: {
|
|
173
|
+
account: accountField(),
|
|
174
|
+
parent: z.string().describe("Required. The name of the customer. Format: customers/{customer_id}"),
|
|
175
|
+
body: coerceJson(z.record(z.string(), z.unknown())).describe("BatchDeletePrintersRequest JSON request body. Top-level fields: printerIds."),
|
|
176
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
177
|
+
},
|
|
178
|
+
});
|
|
179
|
+
registerGeneratedTool(registry, {
|
|
180
|
+
name: "admin_customers_chrome_printers_create",
|
|
181
|
+
cud: "create",
|
|
182
|
+
description: "Creates a printer under given Organization Unit.",
|
|
183
|
+
method: { id: "admin.customers.chrome.printers.create", httpMethod: "POST", path: "admin/directory/v1/{+parent}/chrome/printers", baseUrl: "https://admin.googleapis.com/", requiredParams: ["parent"] },
|
|
184
|
+
params: [{ "field": "parent", "api": "parent", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
185
|
+
hasBody: true,
|
|
186
|
+
shape: {
|
|
187
|
+
account: accountField(),
|
|
188
|
+
parent: z.string().describe("Required. The name of the customer. Format: customers/{customer_id}"),
|
|
189
|
+
body: coerceJson(z.record(z.string(), z.unknown())).describe("Printer JSON request body. Top-level fields: auxiliaryMessages, createTime, description, displayName, id, makeAndModel, name, orgUnitId, uri, useDriverlessConfig."),
|
|
190
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
191
|
+
},
|
|
192
|
+
});
|
|
193
|
+
registerGeneratedTool(registry, {
|
|
194
|
+
name: "admin_customers_chrome_printers_delete",
|
|
195
|
+
cud: "delete",
|
|
196
|
+
description: "Deletes a `Printer`.",
|
|
197
|
+
method: { id: "admin.customers.chrome.printers.delete", httpMethod: "DELETE", path: "admin/directory/v1/{+name}", baseUrl: "https://admin.googleapis.com/", requiredParams: ["name"] },
|
|
198
|
+
params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
199
|
+
hasBody: false,
|
|
200
|
+
shape: {
|
|
201
|
+
account: accountField(),
|
|
202
|
+
name: z.string().describe("Required. The name of the printer to be updated. Format: customers/{customer_id}/chrome/printers/{printer_id}"),
|
|
203
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
204
|
+
},
|
|
205
|
+
});
|
|
206
|
+
registerGeneratedTool(registry, {
|
|
207
|
+
name: "admin_customers_chrome_printers_get",
|
|
208
|
+
cud: "read",
|
|
209
|
+
description: "Returns a `Printer` resource (printer's config).",
|
|
210
|
+
method: { id: "admin.customers.chrome.printers.get", httpMethod: "GET", path: "admin/directory/v1/{+name}", baseUrl: "https://admin.googleapis.com/", requiredParams: ["name"] },
|
|
211
|
+
params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
212
|
+
hasBody: false,
|
|
213
|
+
shape: {
|
|
214
|
+
account: accountField(),
|
|
215
|
+
name: z.string().describe("Required. The name of the printer to retrieve. Format: customers/{customer_id}/chrome/printers/{printer_id}"),
|
|
216
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
217
|
+
},
|
|
218
|
+
});
|
|
219
|
+
registerGeneratedTool(registry, {
|
|
220
|
+
name: "admin_customers_chrome_printers_list",
|
|
221
|
+
cud: "read",
|
|
222
|
+
description: "List printers configs.",
|
|
223
|
+
method: { id: "admin.customers.chrome.printers.list", httpMethod: "GET", path: "admin/directory/v1/{+parent}/chrome/printers", baseUrl: "https://admin.googleapis.com/", requiredParams: ["parent"] },
|
|
224
|
+
params: [{ "field": "parent", "api": "parent", "location": "path" }, { "field": "filter", "api": "filter", "location": "query" }, { "field": "orderBy", "api": "orderBy", "location": "query" }, { "field": "orgUnitId", "api": "orgUnitId", "location": "query" }, { "field": "pageSize", "api": "pageSize", "location": "query" }, { "field": "pageToken", "api": "pageToken", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
225
|
+
hasBody: false,
|
|
226
|
+
shape: {
|
|
227
|
+
account: accountField(),
|
|
228
|
+
parent: z.string().describe("Required. The name of the customer who owns this collection of printers. Format: customers/{customer_id}"),
|
|
229
|
+
filter: z.string().describe("Search query. Search syntax is shared between this api and Admin Console printers pages.").optional(),
|
|
230
|
+
orderBy: z.string().describe("The order to sort results by. Must be one of display_name, description, make_and_model, or create_time. Default order is ascending, but descending order can be returned by appending \"desc\" to the orde").optional(),
|
|
231
|
+
orgUnitId: z.string().describe("Organization Unit that we want to list the printers for. When org_unit is not present in the request then all printers of the customer are returned (or filtered). When org_unit is present in the reque").optional(),
|
|
232
|
+
pageSize: z.number().describe("The maximum number of objects to return. The service may return fewer than this value.").optional(),
|
|
233
|
+
pageToken: z.string().describe("A page token, received from a previous call.").optional(),
|
|
234
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
235
|
+
},
|
|
236
|
+
});
|
|
237
|
+
registerGeneratedTool(registry, {
|
|
238
|
+
name: "admin_customers_chrome_printers_list_printer_models",
|
|
239
|
+
cud: "read",
|
|
240
|
+
description: "Lists the supported printer models.",
|
|
241
|
+
method: { id: "admin.customers.chrome.printers.listPrinterModels", httpMethod: "GET", path: "admin/directory/v1/{+parent}/chrome/printers:listPrinterModels", baseUrl: "https://admin.googleapis.com/", requiredParams: ["parent"] },
|
|
242
|
+
params: [{ "field": "parent", "api": "parent", "location": "path" }, { "field": "filter", "api": "filter", "location": "query" }, { "field": "pageSize", "api": "pageSize", "location": "query" }, { "field": "pageToken", "api": "pageToken", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
243
|
+
hasBody: false,
|
|
244
|
+
shape: {
|
|
245
|
+
account: accountField(),
|
|
246
|
+
parent: z.string().describe("Required. The name of the customer who owns this collection of printers. Format: customers/{customer_id}"),
|
|
247
|
+
filter: z.string().describe("Filer to list only models by a given manufacturer in format: \"manufacturer:Brother\". Search syntax is shared between this api and Admin Console printers pages.").optional(),
|
|
248
|
+
pageSize: z.number().describe("The maximum number of objects to return. The service may return fewer than this value.").optional(),
|
|
249
|
+
pageToken: z.string().describe("A page token, received from a previous call.").optional(),
|
|
250
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
251
|
+
},
|
|
252
|
+
});
|
|
253
|
+
registerGeneratedTool(registry, {
|
|
254
|
+
name: "admin_customers_chrome_printers_patch",
|
|
255
|
+
cud: "update",
|
|
256
|
+
description: "Updates a `Printer` resource.",
|
|
257
|
+
method: { id: "admin.customers.chrome.printers.patch", httpMethod: "PATCH", path: "admin/directory/v1/{+name}", baseUrl: "https://admin.googleapis.com/", requiredParams: ["name"] },
|
|
258
|
+
params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "clearMask", "api": "clearMask", "location": "query" }, { "field": "updateMask", "api": "updateMask", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
259
|
+
hasBody: true,
|
|
260
|
+
shape: {
|
|
261
|
+
account: accountField(),
|
|
262
|
+
name: z.string().describe("Identifier. The resource name of the Printer object, in the format customers/{customer-id}/printers/{printer-id} (During printer creation leave empty)"),
|
|
263
|
+
clearMask: z.string().describe("The list of fields to be cleared. Note, some of the fields are read only and cannot be updated. Values for not specified fields will be patched.").optional(),
|
|
264
|
+
updateMask: z.string().describe("The list of fields to be updated. Note, some of the fields are read only and cannot be updated. Values for not specified fields will be patched.").optional(),
|
|
265
|
+
body: coerceJson(z.record(z.string(), z.unknown())).describe("Printer JSON request body. Top-level fields: auxiliaryMessages, createTime, description, displayName, id, makeAndModel, name, orgUnitId, uri, useDriverlessConfig."),
|
|
266
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
267
|
+
},
|
|
268
|
+
});
|
|
269
|
+
registerGeneratedTool(registry, {
|
|
270
|
+
name: "admin_customers_chrome_print_servers_batch_create_print_servers",
|
|
271
|
+
cud: "create",
|
|
272
|
+
description: "Creates multiple print servers.",
|
|
273
|
+
method: { id: "admin.customers.chrome.printServers.batchCreatePrintServers", httpMethod: "POST", path: "admin/directory/v1/{+parent}/chrome/printServers:batchCreatePrintServers", baseUrl: "https://admin.googleapis.com/", requiredParams: ["parent"] },
|
|
274
|
+
params: [{ "field": "parent", "api": "parent", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
275
|
+
hasBody: true,
|
|
276
|
+
shape: {
|
|
277
|
+
account: accountField(),
|
|
278
|
+
parent: z.string().describe("Required. The [unique ID](https://developers.google.com/workspace/admin/directory/reference/rest/v1/customers) of the customer's Google Workspace account. Format: `customers/{id}`"),
|
|
279
|
+
body: coerceJson(z.record(z.string(), z.unknown())).describe("BatchCreatePrintServersRequest JSON request body. Top-level fields: requests."),
|
|
280
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
281
|
+
},
|
|
282
|
+
});
|
|
283
|
+
registerGeneratedTool(registry, {
|
|
284
|
+
name: "admin_customers_chrome_print_servers_batch_delete_print_servers",
|
|
285
|
+
cud: "delete",
|
|
286
|
+
description: "Deletes multiple print servers.",
|
|
287
|
+
method: { id: "admin.customers.chrome.printServers.batchDeletePrintServers", httpMethod: "POST", path: "admin/directory/v1/{+parent}/chrome/printServers:batchDeletePrintServers", baseUrl: "https://admin.googleapis.com/", requiredParams: ["parent"] },
|
|
288
|
+
params: [{ "field": "parent", "api": "parent", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
289
|
+
hasBody: true,
|
|
290
|
+
shape: {
|
|
291
|
+
account: accountField(),
|
|
292
|
+
parent: z.string().describe("Required. The [unique ID](https://developers.google.com/workspace/admin/directory/reference/rest/v1/customers) of the customer's Google Workspace account. Format: `customers/{customer.id}`"),
|
|
293
|
+
body: coerceJson(z.record(z.string(), z.unknown())).describe("BatchDeletePrintServersRequest JSON request body. Top-level fields: printServerIds."),
|
|
294
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
295
|
+
},
|
|
296
|
+
});
|
|
297
|
+
registerGeneratedTool(registry, {
|
|
298
|
+
name: "admin_customers_chrome_print_servers_create",
|
|
299
|
+
cud: "create",
|
|
300
|
+
description: "Creates a print server.",
|
|
301
|
+
method: { id: "admin.customers.chrome.printServers.create", httpMethod: "POST", path: "admin/directory/v1/{+parent}/chrome/printServers", baseUrl: "https://admin.googleapis.com/", requiredParams: ["parent"] },
|
|
302
|
+
params: [{ "field": "parent", "api": "parent", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
303
|
+
hasBody: true,
|
|
304
|
+
shape: {
|
|
305
|
+
account: accountField(),
|
|
306
|
+
parent: z.string().describe("Required. The [unique ID](https://developers.google.com/workspace/admin/directory/reference/rest/v1/customers) of the customer's Google Workspace account. Format: `customers/{id}`"),
|
|
307
|
+
body: coerceJson(z.record(z.string(), z.unknown())).describe("PrintServer JSON request body. Top-level fields: createTime, description, displayName, id, name, orgUnitId, uri."),
|
|
308
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
309
|
+
},
|
|
310
|
+
});
|
|
311
|
+
registerGeneratedTool(registry, {
|
|
312
|
+
name: "admin_customers_chrome_print_servers_delete",
|
|
313
|
+
cud: "delete",
|
|
314
|
+
description: "Deletes a print server.",
|
|
315
|
+
method: { id: "admin.customers.chrome.printServers.delete", httpMethod: "DELETE", path: "admin/directory/v1/{+name}", baseUrl: "https://admin.googleapis.com/", requiredParams: ["name"] },
|
|
316
|
+
params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
317
|
+
hasBody: false,
|
|
318
|
+
shape: {
|
|
319
|
+
account: accountField(),
|
|
320
|
+
name: z.string().describe("Required. The name of the print server to be deleted. Format: `customers/{customer.id}/chrome/printServers/{print_server.id}`"),
|
|
321
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
322
|
+
},
|
|
323
|
+
});
|
|
324
|
+
registerGeneratedTool(registry, {
|
|
325
|
+
name: "admin_customers_chrome_print_servers_get",
|
|
326
|
+
cud: "read",
|
|
327
|
+
description: "Returns a print server's configuration.",
|
|
328
|
+
method: { id: "admin.customers.chrome.printServers.get", httpMethod: "GET", path: "admin/directory/v1/{+name}", baseUrl: "https://admin.googleapis.com/", requiredParams: ["name"] },
|
|
329
|
+
params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
330
|
+
hasBody: false,
|
|
331
|
+
shape: {
|
|
332
|
+
account: accountField(),
|
|
333
|
+
name: z.string().describe("Required. The [unique ID](https://developers.google.com/workspace/admin/directory/reference/rest/v1/customers) of the customer's Google Workspace account. Format: `customers/{id}`"),
|
|
334
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
335
|
+
},
|
|
336
|
+
});
|
|
337
|
+
registerGeneratedTool(registry, {
|
|
338
|
+
name: "admin_customers_chrome_print_servers_list",
|
|
339
|
+
cud: "read",
|
|
340
|
+
description: "Lists print server configurations.",
|
|
341
|
+
method: { id: "admin.customers.chrome.printServers.list", httpMethod: "GET", path: "admin/directory/v1/{+parent}/chrome/printServers", baseUrl: "https://admin.googleapis.com/", requiredParams: ["parent"] },
|
|
342
|
+
params: [{ "field": "parent", "api": "parent", "location": "path" }, { "field": "filter", "api": "filter", "location": "query" }, { "field": "orderBy", "api": "orderBy", "location": "query" }, { "field": "orgUnitId", "api": "orgUnitId", "location": "query" }, { "field": "pageSize", "api": "pageSize", "location": "query" }, { "field": "pageToken", "api": "pageToken", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
343
|
+
hasBody: false,
|
|
344
|
+
shape: {
|
|
345
|
+
account: accountField(),
|
|
346
|
+
parent: z.string().describe("Required. The [unique ID](https://developers.google.com/workspace/admin/directory/reference/rest/v1/customers) of the customer's Google Workspace account. Format: `customers/{id}`"),
|
|
347
|
+
filter: z.string().describe("Search query in [Common Expression Language syntax](https://github.com/google/cel-spec). Supported filters are `display_name`, `description`, and `uri`. Example: `printServer.displayName=='marketing-q").optional(),
|
|
348
|
+
orderBy: z.string().describe("Sort order for results. Supported values are `display_name`, `description`, or `create_time`. Default order is ascending, but descending order can be returned by appending \"desc\" to the `order_by` fie").optional(),
|
|
349
|
+
orgUnitId: z.string().describe("If `org_unit_id` is present in the request, only print servers owned or inherited by the organizational unit (OU) are returned. If the `PrintServer` resource's `org_unit_id` matches the one in the req").optional(),
|
|
350
|
+
pageSize: z.number().describe("The maximum number of objects to return (default `100`, max `100`). The service might return fewer than this value.").optional(),
|
|
351
|
+
pageToken: z.string().describe("A generated token to paginate results (the `next_page_token` from a previous call).").optional(),
|
|
352
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
353
|
+
},
|
|
354
|
+
});
|
|
355
|
+
registerGeneratedTool(registry, {
|
|
356
|
+
name: "admin_customers_chrome_print_servers_patch",
|
|
357
|
+
cud: "update",
|
|
358
|
+
description: "Updates a print server's configuration.",
|
|
359
|
+
method: { id: "admin.customers.chrome.printServers.patch", httpMethod: "PATCH", path: "admin/directory/v1/{+name}", baseUrl: "https://admin.googleapis.com/", requiredParams: ["name"] },
|
|
360
|
+
params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "updateMask", "api": "updateMask", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
361
|
+
hasBody: true,
|
|
362
|
+
shape: {
|
|
363
|
+
account: accountField(),
|
|
364
|
+
name: z.string().describe("Identifier. Resource name of the print server. Leave empty when creating. Format: `customers/{customer.id}/printServers/{print_server.id}`"),
|
|
365
|
+
updateMask: z.string().describe("The list of fields to update. Some fields are read-only and cannot be updated. Values for unspecified fields are patched.").optional(),
|
|
366
|
+
body: coerceJson(z.record(z.string(), z.unknown())).describe("PrintServer JSON request body. Top-level fields: createTime, description, displayName, id, name, orgUnitId, uri."),
|
|
367
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
368
|
+
},
|
|
369
|
+
});
|
|
370
|
+
registerGeneratedTool(registry, {
|
|
371
|
+
name: "admin_asps_delete",
|
|
372
|
+
cud: "delete",
|
|
373
|
+
description: "Deletes an ASP issued by a user.",
|
|
374
|
+
method: { id: "directory.asps.delete", httpMethod: "DELETE", path: "admin/directory/v1/users/{userKey}/asps/{codeId}", baseUrl: "https://admin.googleapis.com/", requiredParams: ["userKey", "codeId"] },
|
|
375
|
+
params: [{ "field": "codeId", "api": "codeId", "location": "path" }, { "field": "userKey", "api": "userKey", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
376
|
+
hasBody: false,
|
|
377
|
+
shape: {
|
|
378
|
+
account: accountField(),
|
|
379
|
+
codeId: z.number().describe("The unique ID of the ASP to be deleted."),
|
|
380
|
+
userKey: z.string().describe("Identifies the user in the API request. The value can be the user's primary email address, alias email address, or unique user ID."),
|
|
381
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
382
|
+
},
|
|
383
|
+
});
|
|
384
|
+
registerGeneratedTool(registry, {
|
|
385
|
+
name: "admin_asps_get",
|
|
386
|
+
cud: "read",
|
|
387
|
+
description: "Gets information about an ASP issued by a user.",
|
|
388
|
+
method: { id: "directory.asps.get", httpMethod: "GET", path: "admin/directory/v1/users/{userKey}/asps/{codeId}", baseUrl: "https://admin.googleapis.com/", requiredParams: ["userKey", "codeId"] },
|
|
389
|
+
params: [{ "field": "codeId", "api": "codeId", "location": "path" }, { "field": "userKey", "api": "userKey", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
390
|
+
hasBody: false,
|
|
391
|
+
shape: {
|
|
392
|
+
account: accountField(),
|
|
393
|
+
codeId: z.number().describe("The unique ID of the ASP."),
|
|
394
|
+
userKey: z.string().describe("Identifies the user in the API request. The value can be the user's primary email address, alias email address, or unique user ID."),
|
|
395
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
396
|
+
},
|
|
397
|
+
});
|
|
398
|
+
registerGeneratedTool(registry, {
|
|
399
|
+
name: "admin_asps_list",
|
|
400
|
+
cud: "read",
|
|
401
|
+
description: "Lists the ASPs issued by a user.",
|
|
402
|
+
method: { id: "directory.asps.list", httpMethod: "GET", path: "admin/directory/v1/users/{userKey}/asps", baseUrl: "https://admin.googleapis.com/", requiredParams: ["userKey"] },
|
|
403
|
+
params: [{ "field": "userKey", "api": "userKey", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
404
|
+
hasBody: false,
|
|
405
|
+
shape: {
|
|
406
|
+
account: accountField(),
|
|
407
|
+
userKey: z.string().describe("Identifies the user in the API request. The value can be the user's primary email address, alias email address, or unique user ID."),
|
|
408
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
409
|
+
},
|
|
410
|
+
});
|
|
411
|
+
registerGeneratedTool(registry, {
|
|
412
|
+
name: "admin_chromeosdevices_action",
|
|
413
|
+
cud: "create",
|
|
414
|
+
description: "Use [BatchChangeChromeOsDeviceStatus](https://developers.google.com/workspace/admin/directory/reference/rest/v1/customer.devices.chromeos/batchChangeStatus) ins",
|
|
415
|
+
method: { id: "directory.chromeosdevices.action", httpMethod: "POST", path: "admin/directory/v1/customer/{customerId}/devices/chromeos/{resourceId}/action", baseUrl: "https://admin.googleapis.com/", requiredParams: ["resourceId", "customerId"] },
|
|
416
|
+
params: [{ "field": "customerId", "api": "customerId", "location": "path" }, { "field": "resourceId", "api": "resourceId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
417
|
+
hasBody: true,
|
|
418
|
+
shape: {
|
|
419
|
+
account: accountField(),
|
|
420
|
+
customerId: z.string().describe("The unique ID for the customer's Google Workspace account. As an account administrator, you can also use the `my_customer` alias to represent your account's `customerId`. The `customerId` is also retu"),
|
|
421
|
+
resourceId: z.string().describe("The unique ID of the device. The `resourceId`s are returned in the response from the [chromeosdevices.list](https://developers.google.com/workspace/admin/directory/v1/reference/chromeosdevices/list) m"),
|
|
422
|
+
body: coerceJson(z.record(z.string(), z.unknown())).describe("ChromeOsDeviceAction JSON request body. Top-level fields: action, deprovisionReason."),
|
|
423
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
424
|
+
},
|
|
425
|
+
});
|
|
426
|
+
registerGeneratedTool(registry, {
|
|
427
|
+
name: "admin_chromeosdevices_get",
|
|
428
|
+
cud: "read",
|
|
429
|
+
description: "Retrieves a Chrome OS device's properties.",
|
|
430
|
+
method: { id: "directory.chromeosdevices.get", httpMethod: "GET", path: "admin/directory/v1/customer/{customerId}/devices/chromeos/{deviceId}", baseUrl: "https://admin.googleapis.com/", requiredParams: ["customerId", "deviceId"] },
|
|
431
|
+
params: [{ "field": "customerId", "api": "customerId", "location": "path" }, { "field": "deviceId", "api": "deviceId", "location": "path" }, { "field": "projection", "api": "projection", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
432
|
+
hasBody: false,
|
|
433
|
+
shape: {
|
|
434
|
+
account: accountField(),
|
|
435
|
+
customerId: z.string().describe("The unique ID for the customer's Google Workspace account. As an account administrator, you can also use the `my_customer` alias to represent your account's `customerId`. The `customerId` is also retu"),
|
|
436
|
+
deviceId: z.string().describe("The unique ID of the device. The `deviceId`s are returned in the response from the [chromeosdevices.list](https://developers.google.com/workspace/admin/directory/v1/reference/chromeosdevices/list) met"),
|
|
437
|
+
projection: z.enum(["BASIC", "FULL"]).describe("Determines whether the response contains the full list of properties or only a subset.").optional(),
|
|
438
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
439
|
+
},
|
|
440
|
+
});
|
|
441
|
+
registerGeneratedTool(registry, {
|
|
442
|
+
name: "admin_chromeosdevices_list",
|
|
443
|
+
cud: "read",
|
|
444
|
+
description: "Retrieves a paginated list of Chrome OS devices within an account.",
|
|
445
|
+
method: { id: "directory.chromeosdevices.list", httpMethod: "GET", path: "admin/directory/v1/customer/{customerId}/devices/chromeos", baseUrl: "https://admin.googleapis.com/", requiredParams: ["customerId"] },
|
|
446
|
+
params: [{ "field": "customerId", "api": "customerId", "location": "path" }, { "field": "includeChildOrgunits", "api": "includeChildOrgunits", "location": "query" }, { "field": "maxResults", "api": "maxResults", "location": "query" }, { "field": "orderBy", "api": "orderBy", "location": "query" }, { "field": "orgUnitPath", "api": "orgUnitPath", "location": "query" }, { "field": "pageToken", "api": "pageToken", "location": "query" }, { "field": "projection", "api": "projection", "location": "query" }, { "field": "query", "api": "query", "location": "query" }, { "field": "sortOrder", "api": "sortOrder", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
447
|
+
hasBody: false,
|
|
448
|
+
shape: {
|
|
449
|
+
account: accountField(),
|
|
450
|
+
customerId: z.string().describe("The unique ID for the customer's Google Workspace account. As an account administrator, you can also use the `my_customer` alias to represent your account's `customerId`. The `customerId` is also retu"),
|
|
451
|
+
includeChildOrgunits: coerceBoolean.describe("Return devices from all child orgunits, as well as the specified org unit. If this is set to true, 'orgUnitPath' must be provided.").optional(),
|
|
452
|
+
maxResults: z.number().describe("Maximum number of results to return. Value should not exceed 300.").optional(),
|
|
453
|
+
orderBy: z.enum(["annotatedLocation", "annotatedUser", "lastSync", "notes", "serialNumber", "status"]).describe("Device property to use for sorting results.").optional(),
|
|
454
|
+
orgUnitPath: z.string().describe("The full path of the organizational unit (minus the leading `/`) or its unique ID.").optional(),
|
|
455
|
+
pageToken: z.string().describe("The `pageToken` query parameter is used to request the next page of query results. The follow-on request's `pageToken` query parameter is the `nextPageToken` from your previous response.").optional(),
|
|
456
|
+
projection: z.enum(["BASIC", "FULL"]).describe("Determines whether the response contains the full list of properties or only a subset.").optional(),
|
|
457
|
+
query: z.string().describe("Search string in the format given at [List query operators](https://developers.google.com/workspace/admin/directory/v1/list-query-operators).").optional(),
|
|
458
|
+
sortOrder: z.enum(["ASCENDING", "DESCENDING"]).describe("Whether to return results in ascending or descending order. Must be used with the `orderBy` parameter.").optional(),
|
|
459
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
460
|
+
},
|
|
461
|
+
});
|
|
462
|
+
registerGeneratedTool(registry, {
|
|
463
|
+
name: "admin_chromeosdevices_move_devices_to_ou",
|
|
464
|
+
cud: "update",
|
|
465
|
+
description: "Moves or inserts multiple Chrome OS devices to an organizational unit. You can move up to 50 devices at once.",
|
|
466
|
+
method: { id: "directory.chromeosdevices.moveDevicesToOu", httpMethod: "POST", path: "admin/directory/v1/customer/{customerId}/devices/chromeos/moveDevicesToOu", baseUrl: "https://admin.googleapis.com/", requiredParams: ["customerId", "orgUnitPath"] },
|
|
467
|
+
params: [{ "field": "customerId", "api": "customerId", "location": "path" }, { "field": "orgUnitPath", "api": "orgUnitPath", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
468
|
+
hasBody: true,
|
|
469
|
+
shape: {
|
|
470
|
+
account: accountField(),
|
|
471
|
+
customerId: z.string().describe("Immutable. ID of the Google Workspace account"),
|
|
472
|
+
orgUnitPath: z.string().describe("Full path of the target organizational unit or its ID"),
|
|
473
|
+
body: coerceJson(z.record(z.string(), z.unknown())).describe("ChromeOsMoveDevicesToOu JSON request body. Top-level fields: deviceIds."),
|
|
474
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
475
|
+
},
|
|
476
|
+
});
|
|
477
|
+
registerGeneratedTool(registry, {
|
|
478
|
+
name: "admin_chromeosdevices_patch",
|
|
479
|
+
cud: "update",
|
|
480
|
+
description: "Updates a device's updatable properties, such as `annotatedUser`, `annotatedLocation`, `notes`, `orgUnitPath`, or `annotatedAssetId`. This method supports [patc",
|
|
481
|
+
method: { id: "directory.chromeosdevices.patch", httpMethod: "PATCH", path: "admin/directory/v1/customer/{customerId}/devices/chromeos/{deviceId}", baseUrl: "https://admin.googleapis.com/", requiredParams: ["customerId", "deviceId"] },
|
|
482
|
+
params: [{ "field": "customerId", "api": "customerId", "location": "path" }, { "field": "deviceId", "api": "deviceId", "location": "path" }, { "field": "projection", "api": "projection", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
483
|
+
hasBody: true,
|
|
484
|
+
shape: {
|
|
485
|
+
account: accountField(),
|
|
486
|
+
customerId: z.string().describe("The unique ID for the customer's Google Workspace account. As an account administrator, you can also use the `my_customer` alias to represent your account's `customerId`. The `customerId` is also retu"),
|
|
487
|
+
deviceId: z.string().describe("The unique ID of the device. The `deviceId`s are returned in the response from the [chromeosdevices.list](https://developers.google.com/workspace/admin/v1/reference/chromeosdevices/list) method."),
|
|
488
|
+
projection: z.enum(["BASIC", "FULL"]).describe("Determines whether the response contains the full list of properties or only a subset.").optional(),
|
|
489
|
+
body: coerceJson(z.record(z.string(), z.unknown())).describe("ChromeOsDevice JSON request body. Top-level fields: activeTimeRanges, annotatedAssetId, annotatedLocation, annotatedUser, autoUpdateExpiration, autoUpdateThrough, backlightInfo, bluetoothAdapterInfo, bootMode, chromeOsType, cpuInfo, cpuStatusReports, +42 more."),
|
|
490
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
491
|
+
},
|
|
492
|
+
});
|
|
493
|
+
registerGeneratedTool(registry, {
|
|
494
|
+
name: "admin_chromeosdevices_update",
|
|
495
|
+
cud: "update",
|
|
496
|
+
description: "Updates a device's updatable properties, such as `annotatedUser`, `annotatedLocation`, `notes`, `orgUnitPath`, or `annotatedAssetId`.",
|
|
497
|
+
method: { id: "directory.chromeosdevices.update", httpMethod: "PUT", path: "admin/directory/v1/customer/{customerId}/devices/chromeos/{deviceId}", baseUrl: "https://admin.googleapis.com/", requiredParams: ["customerId", "deviceId"] },
|
|
498
|
+
params: [{ "field": "customerId", "api": "customerId", "location": "path" }, { "field": "deviceId", "api": "deviceId", "location": "path" }, { "field": "projection", "api": "projection", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
499
|
+
hasBody: true,
|
|
500
|
+
shape: {
|
|
501
|
+
account: accountField(),
|
|
502
|
+
customerId: z.string().describe("The unique ID for the customer's Google Workspace account. As an account administrator, you can also use the `my_customer` alias to represent your account's `customerId`. The `customerId` is also retu"),
|
|
503
|
+
deviceId: z.string().describe("The unique ID of the device. The `deviceId`s are returned in the response from the [chromeosdevices.list](https://developers.google.com/workspace/admin/v1/reference/chromeosdevices/list) method."),
|
|
504
|
+
projection: z.enum(["BASIC", "FULL"]).describe("Determines whether the response contains the full list of properties or only a subset.").optional(),
|
|
505
|
+
body: coerceJson(z.record(z.string(), z.unknown())).describe("ChromeOsDevice JSON request body. Top-level fields: activeTimeRanges, annotatedAssetId, annotatedLocation, annotatedUser, autoUpdateExpiration, autoUpdateThrough, backlightInfo, bluetoothAdapterInfo, bootMode, chromeOsType, cpuInfo, cpuStatusReports, +42 more."),
|
|
506
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
507
|
+
},
|
|
508
|
+
});
|
|
509
|
+
registerGeneratedTool(registry, {
|
|
510
|
+
name: "admin_customers_get",
|
|
511
|
+
cud: "read",
|
|
512
|
+
description: "Retrieves a customer.",
|
|
513
|
+
method: { id: "directory.customers.get", httpMethod: "GET", path: "admin/directory/v1/customers/{customerKey}", baseUrl: "https://admin.googleapis.com/", requiredParams: ["customerKey"] },
|
|
514
|
+
params: [{ "field": "customerKey", "api": "customerKey", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
515
|
+
hasBody: false,
|
|
516
|
+
shape: {
|
|
517
|
+
account: accountField(),
|
|
518
|
+
customerKey: z.string().describe("Id of the customer to be retrieved"),
|
|
519
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
520
|
+
},
|
|
521
|
+
});
|
|
522
|
+
registerGeneratedTool(registry, {
|
|
523
|
+
name: "admin_customers_patch",
|
|
524
|
+
cud: "update",
|
|
525
|
+
description: "Patches a customer.",
|
|
526
|
+
method: { id: "directory.customers.patch", httpMethod: "PATCH", path: "admin/directory/v1/customers/{customerKey}", baseUrl: "https://admin.googleapis.com/", requiredParams: ["customerKey"] },
|
|
527
|
+
params: [{ "field": "customerKey", "api": "customerKey", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
528
|
+
hasBody: true,
|
|
529
|
+
shape: {
|
|
530
|
+
account: accountField(),
|
|
531
|
+
customerKey: z.string().describe("Id of the customer to be updated"),
|
|
532
|
+
body: coerceJson(z.record(z.string(), z.unknown())).describe("Customer JSON request body. Top-level fields: alternateEmail, customerCreationTime, customerDomain, etag, id, kind, language, phoneNumber, postalAddress."),
|
|
533
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
534
|
+
},
|
|
535
|
+
});
|
|
536
|
+
registerGeneratedTool(registry, {
|
|
537
|
+
name: "admin_customers_update",
|
|
538
|
+
cud: "update",
|
|
539
|
+
description: "Updates a customer.",
|
|
540
|
+
method: { id: "directory.customers.update", httpMethod: "PUT", path: "admin/directory/v1/customers/{customerKey}", baseUrl: "https://admin.googleapis.com/", requiredParams: ["customerKey"] },
|
|
541
|
+
params: [{ "field": "customerKey", "api": "customerKey", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
542
|
+
hasBody: true,
|
|
543
|
+
shape: {
|
|
544
|
+
account: accountField(),
|
|
545
|
+
customerKey: z.string().describe("Id of the customer to be updated"),
|
|
546
|
+
body: coerceJson(z.record(z.string(), z.unknown())).describe("Customer JSON request body. Top-level fields: alternateEmail, customerCreationTime, customerDomain, etag, id, kind, language, phoneNumber, postalAddress."),
|
|
547
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
548
|
+
},
|
|
549
|
+
});
|
|
550
|
+
registerGeneratedTool(registry, {
|
|
551
|
+
name: "admin_domain_aliases_delete",
|
|
552
|
+
cud: "delete",
|
|
553
|
+
description: "Deletes a domain Alias of the customer.",
|
|
554
|
+
method: { id: "directory.domainAliases.delete", httpMethod: "DELETE", path: "admin/directory/v1/customer/{customer}/domainaliases/{domainAliasName}", baseUrl: "https://admin.googleapis.com/", requiredParams: ["customer", "domainAliasName"] },
|
|
555
|
+
params: [{ "field": "customer", "api": "customer", "location": "path" }, { "field": "domainAliasName", "api": "domainAliasName", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
556
|
+
hasBody: false,
|
|
557
|
+
shape: {
|
|
558
|
+
account: accountField(),
|
|
559
|
+
customer: z.string().describe("Immutable ID of the Google Workspace account."),
|
|
560
|
+
domainAliasName: z.string().describe("Name of domain alias to be retrieved."),
|
|
561
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
562
|
+
},
|
|
563
|
+
});
|
|
564
|
+
registerGeneratedTool(registry, {
|
|
565
|
+
name: "admin_domain_aliases_get",
|
|
566
|
+
cud: "read",
|
|
567
|
+
description: "Retrieves a domain alias of the customer.",
|
|
568
|
+
method: { id: "directory.domainAliases.get", httpMethod: "GET", path: "admin/directory/v1/customer/{customer}/domainaliases/{domainAliasName}", baseUrl: "https://admin.googleapis.com/", requiredParams: ["customer", "domainAliasName"] },
|
|
569
|
+
params: [{ "field": "customer", "api": "customer", "location": "path" }, { "field": "domainAliasName", "api": "domainAliasName", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
570
|
+
hasBody: false,
|
|
571
|
+
shape: {
|
|
572
|
+
account: accountField(),
|
|
573
|
+
customer: z.string().describe("The unique ID for the customer's Google Workspace account. In case of a multi-domain account, to fetch all groups for a customer, use this field instead of `domain`. You can also use the `my_customer`"),
|
|
574
|
+
domainAliasName: z.string().describe("Name of domain alias to be retrieved."),
|
|
575
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
576
|
+
},
|
|
577
|
+
});
|
|
578
|
+
registerGeneratedTool(registry, {
|
|
579
|
+
name: "admin_domain_aliases_insert",
|
|
580
|
+
cud: "create",
|
|
581
|
+
description: "Inserts a domain alias of the customer.",
|
|
582
|
+
method: { id: "directory.domainAliases.insert", httpMethod: "POST", path: "admin/directory/v1/customer/{customer}/domainaliases", baseUrl: "https://admin.googleapis.com/", requiredParams: ["customer"] },
|
|
583
|
+
params: [{ "field": "customer", "api": "customer", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
584
|
+
hasBody: true,
|
|
585
|
+
shape: {
|
|
586
|
+
account: accountField(),
|
|
587
|
+
customer: z.string().describe("Immutable ID of the Google Workspace account."),
|
|
588
|
+
body: coerceJson(z.record(z.string(), z.unknown())).describe("DomainAlias JSON request body. Top-level fields: creationTime, domainAliasName, etag, kind, parentDomainName, verified."),
|
|
589
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
590
|
+
},
|
|
591
|
+
});
|
|
592
|
+
registerGeneratedTool(registry, {
|
|
593
|
+
name: "admin_domain_aliases_list",
|
|
594
|
+
cud: "read",
|
|
595
|
+
description: "Lists the domain aliases of the customer.",
|
|
596
|
+
method: { id: "directory.domainAliases.list", httpMethod: "GET", path: "admin/directory/v1/customer/{customer}/domainaliases", baseUrl: "https://admin.googleapis.com/", requiredParams: ["customer"] },
|
|
597
|
+
params: [{ "field": "customer", "api": "customer", "location": "path" }, { "field": "parentDomainName", "api": "parentDomainName", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
598
|
+
hasBody: false,
|
|
599
|
+
shape: {
|
|
600
|
+
account: accountField(),
|
|
601
|
+
customer: z.string().describe("The unique ID for the customer's Google Workspace account. In case of a multi-domain account, to fetch all groups for a customer, use this field instead of `domain`. You can also use the `my_customer`"),
|
|
602
|
+
parentDomainName: z.string().describe("Name of the parent domain for which domain aliases are to be fetched.").optional(),
|
|
603
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
604
|
+
},
|
|
605
|
+
});
|
|
606
|
+
registerGeneratedTool(registry, {
|
|
607
|
+
name: "admin_domains_delete",
|
|
608
|
+
cud: "delete",
|
|
609
|
+
description: "Deletes a domain of the customer.",
|
|
610
|
+
method: { id: "directory.domains.delete", httpMethod: "DELETE", path: "admin/directory/v1/customer/{customer}/domains/{domainName}", baseUrl: "https://admin.googleapis.com/", requiredParams: ["customer", "domainName"] },
|
|
611
|
+
params: [{ "field": "customer", "api": "customer", "location": "path" }, { "field": "domainName", "api": "domainName", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
612
|
+
hasBody: false,
|
|
613
|
+
shape: {
|
|
614
|
+
account: accountField(),
|
|
615
|
+
customer: z.string().describe("Immutable ID of the Google Workspace account."),
|
|
616
|
+
domainName: z.string().describe("Name of domain to be deleted"),
|
|
617
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
618
|
+
},
|
|
619
|
+
});
|
|
620
|
+
registerGeneratedTool(registry, {
|
|
621
|
+
name: "admin_domains_get",
|
|
622
|
+
cud: "read",
|
|
623
|
+
description: "Retrieves a domain of the customer.",
|
|
624
|
+
method: { id: "directory.domains.get", httpMethod: "GET", path: "admin/directory/v1/customer/{customer}/domains/{domainName}", baseUrl: "https://admin.googleapis.com/", requiredParams: ["customer", "domainName"] },
|
|
625
|
+
params: [{ "field": "customer", "api": "customer", "location": "path" }, { "field": "domainName", "api": "domainName", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
626
|
+
hasBody: false,
|
|
627
|
+
shape: {
|
|
628
|
+
account: accountField(),
|
|
629
|
+
customer: z.string().describe("The unique ID for the customer's Google Workspace account. In case of a multi-domain account, to fetch all groups for a customer, use this field instead of `domain`. You can also use the `my_customer`"),
|
|
630
|
+
domainName: z.string().describe("Name of domain to be retrieved"),
|
|
631
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
632
|
+
},
|
|
633
|
+
});
|
|
634
|
+
registerGeneratedTool(registry, {
|
|
635
|
+
name: "admin_domains_insert",
|
|
636
|
+
cud: "create",
|
|
637
|
+
description: "Inserts a domain of the customer.",
|
|
638
|
+
method: { id: "directory.domains.insert", httpMethod: "POST", path: "admin/directory/v1/customer/{customer}/domains", baseUrl: "https://admin.googleapis.com/", requiredParams: ["customer"] },
|
|
639
|
+
params: [{ "field": "customer", "api": "customer", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
640
|
+
hasBody: true,
|
|
641
|
+
shape: {
|
|
642
|
+
account: accountField(),
|
|
643
|
+
customer: z.string().describe("Immutable ID of the Google Workspace account."),
|
|
644
|
+
body: coerceJson(z.record(z.string(), z.unknown())).describe("Domains JSON request body. Top-level fields: creationTime, domainAliases, domainName, etag, isPrimary, kind, verified."),
|
|
645
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
646
|
+
},
|
|
647
|
+
});
|
|
648
|
+
registerGeneratedTool(registry, {
|
|
649
|
+
name: "admin_domains_list",
|
|
650
|
+
cud: "read",
|
|
651
|
+
description: "Lists the domains of the customer.",
|
|
652
|
+
method: { id: "directory.domains.list", httpMethod: "GET", path: "admin/directory/v1/customer/{customer}/domains", baseUrl: "https://admin.googleapis.com/", requiredParams: ["customer"] },
|
|
653
|
+
params: [{ "field": "customer", "api": "customer", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
654
|
+
hasBody: false,
|
|
655
|
+
shape: {
|
|
656
|
+
account: accountField(),
|
|
657
|
+
customer: z.string().describe("The unique ID for the customer's Google Workspace account. In case of a multi-domain account, to fetch all groups for a customer, use this field instead of `domain`. You can also use the `my_customer`"),
|
|
658
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
659
|
+
},
|
|
660
|
+
});
|
|
661
|
+
registerGeneratedTool(registry, {
|
|
662
|
+
name: "admin_groups_aliases_delete",
|
|
663
|
+
cud: "delete",
|
|
664
|
+
description: "Removes an alias.",
|
|
665
|
+
method: { id: "directory.groups.aliases.delete", httpMethod: "DELETE", path: "admin/directory/v1/groups/{groupKey}/aliases/{alias}", baseUrl: "https://admin.googleapis.com/", requiredParams: ["groupKey", "alias"] },
|
|
666
|
+
params: [{ "field": "alias", "api": "alias", "location": "path" }, { "field": "groupKey", "api": "groupKey", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
667
|
+
hasBody: false,
|
|
668
|
+
shape: {
|
|
669
|
+
account: accountField(),
|
|
670
|
+
alias: z.string().describe("The alias to be removed"),
|
|
671
|
+
groupKey: z.string().describe("Identifies the group in the API request. The value can be the group's email address, group alias, or the unique group ID."),
|
|
672
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
673
|
+
},
|
|
674
|
+
});
|
|
675
|
+
registerGeneratedTool(registry, {
|
|
676
|
+
name: "admin_groups_aliases_insert",
|
|
677
|
+
cud: "create",
|
|
678
|
+
description: "Adds an alias for the group.",
|
|
679
|
+
method: { id: "directory.groups.aliases.insert", httpMethod: "POST", path: "admin/directory/v1/groups/{groupKey}/aliases", baseUrl: "https://admin.googleapis.com/", requiredParams: ["groupKey"] },
|
|
680
|
+
params: [{ "field": "groupKey", "api": "groupKey", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
681
|
+
hasBody: true,
|
|
682
|
+
shape: {
|
|
683
|
+
account: accountField(),
|
|
684
|
+
groupKey: z.string().describe("Identifies the group in the API request. The value can be the group's email address, group alias, or the unique group ID."),
|
|
685
|
+
body: coerceJson(z.record(z.string(), z.unknown())).describe("Alias JSON request body. Top-level fields: alias, etag, id, kind, primaryEmail."),
|
|
686
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
687
|
+
},
|
|
688
|
+
});
|
|
689
|
+
registerGeneratedTool(registry, {
|
|
690
|
+
name: "admin_groups_aliases_list",
|
|
691
|
+
cud: "read",
|
|
692
|
+
description: "Lists all aliases for a group.",
|
|
693
|
+
method: { id: "directory.groups.aliases.list", httpMethod: "GET", path: "admin/directory/v1/groups/{groupKey}/aliases", baseUrl: "https://admin.googleapis.com/", requiredParams: ["groupKey"] },
|
|
694
|
+
params: [{ "field": "groupKey", "api": "groupKey", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
695
|
+
hasBody: false,
|
|
696
|
+
shape: {
|
|
697
|
+
account: accountField(),
|
|
698
|
+
groupKey: z.string().describe("Identifies the group in the API request. The value can be the group's email address, group alias, or the unique group ID."),
|
|
699
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
700
|
+
},
|
|
701
|
+
});
|
|
702
|
+
registerGeneratedTool(registry, {
|
|
703
|
+
name: "admin_groups_delete",
|
|
704
|
+
cud: "delete",
|
|
705
|
+
description: "Deletes a group.",
|
|
706
|
+
method: { id: "directory.groups.delete", httpMethod: "DELETE", path: "admin/directory/v1/groups/{groupKey}", baseUrl: "https://admin.googleapis.com/", requiredParams: ["groupKey"] },
|
|
707
|
+
params: [{ "field": "groupKey", "api": "groupKey", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
708
|
+
hasBody: false,
|
|
709
|
+
shape: {
|
|
710
|
+
account: accountField(),
|
|
711
|
+
groupKey: z.string().describe("Identifies the group in the API request. The value can be the group's email address, group alias, or the unique group ID."),
|
|
712
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
713
|
+
},
|
|
714
|
+
});
|
|
715
|
+
registerGeneratedTool(registry, {
|
|
716
|
+
name: "admin_groups_get",
|
|
717
|
+
cud: "read",
|
|
718
|
+
description: "Retrieves a group's properties.",
|
|
719
|
+
method: { id: "directory.groups.get", httpMethod: "GET", path: "admin/directory/v1/groups/{groupKey}", baseUrl: "https://admin.googleapis.com/", requiredParams: ["groupKey"] },
|
|
720
|
+
params: [{ "field": "groupKey", "api": "groupKey", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
721
|
+
hasBody: false,
|
|
722
|
+
shape: {
|
|
723
|
+
account: accountField(),
|
|
724
|
+
groupKey: z.string().describe("Identifies the group in the API request. The value can be the group's email address, group alias, or the unique group ID."),
|
|
725
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
726
|
+
},
|
|
727
|
+
});
|
|
728
|
+
registerGeneratedTool(registry, {
|
|
729
|
+
name: "admin_groups_insert",
|
|
730
|
+
cud: "create",
|
|
731
|
+
description: "Creates a group.",
|
|
732
|
+
method: { id: "directory.groups.insert", httpMethod: "POST", path: "admin/directory/v1/groups", baseUrl: "https://admin.googleapis.com/", requiredParams: [] },
|
|
733
|
+
params: [{ "field": "fields", "api": "fields", "location": "query" }],
|
|
734
|
+
hasBody: true,
|
|
735
|
+
shape: {
|
|
736
|
+
account: accountField(),
|
|
737
|
+
body: coerceJson(z.record(z.string(), z.unknown())).describe("Group JSON request body. Top-level fields: adminCreated, aliases, description, directMembersCount, email, etag, id, kind, name, nonEditableAliases."),
|
|
738
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
739
|
+
},
|
|
740
|
+
});
|
|
741
|
+
registerGeneratedTool(registry, {
|
|
742
|
+
name: "admin_groups_patch",
|
|
743
|
+
cud: "update",
|
|
744
|
+
description: "Updates a group's properties. This method supports [patch semantics](https://developers.google.com/workspace/admin/directory/v1/guides/performance#patch).",
|
|
745
|
+
method: { id: "directory.groups.patch", httpMethod: "PATCH", path: "admin/directory/v1/groups/{groupKey}", baseUrl: "https://admin.googleapis.com/", requiredParams: ["groupKey"] },
|
|
746
|
+
params: [{ "field": "groupKey", "api": "groupKey", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
747
|
+
hasBody: true,
|
|
748
|
+
shape: {
|
|
749
|
+
account: accountField(),
|
|
750
|
+
groupKey: z.string().describe("Identifies the group in the API request. The value can be the group's email address, group alias, or the unique group ID."),
|
|
751
|
+
body: coerceJson(z.record(z.string(), z.unknown())).describe("Group JSON request body. Top-level fields: adminCreated, aliases, description, directMembersCount, email, etag, id, kind, name, nonEditableAliases."),
|
|
752
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
753
|
+
},
|
|
754
|
+
});
|
|
755
|
+
registerGeneratedTool(registry, {
|
|
756
|
+
name: "admin_groups_update",
|
|
757
|
+
cud: "update",
|
|
758
|
+
description: "Updates a group's properties.",
|
|
759
|
+
method: { id: "directory.groups.update", httpMethod: "PUT", path: "admin/directory/v1/groups/{groupKey}", baseUrl: "https://admin.googleapis.com/", requiredParams: ["groupKey"] },
|
|
760
|
+
params: [{ "field": "groupKey", "api": "groupKey", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
761
|
+
hasBody: true,
|
|
762
|
+
shape: {
|
|
763
|
+
account: accountField(),
|
|
764
|
+
groupKey: z.string().describe("Identifies the group in the API request. The value can be the group's email address, group alias, or the unique group ID."),
|
|
765
|
+
body: coerceJson(z.record(z.string(), z.unknown())).describe("Group JSON request body. Top-level fields: adminCreated, aliases, description, directMembersCount, email, etag, id, kind, name, nonEditableAliases."),
|
|
766
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
767
|
+
},
|
|
768
|
+
});
|
|
769
|
+
registerGeneratedTool(registry, {
|
|
770
|
+
name: "admin_members_delete",
|
|
771
|
+
cud: "delete",
|
|
772
|
+
description: "Removes a member from a group.",
|
|
773
|
+
method: { id: "directory.members.delete", httpMethod: "DELETE", path: "admin/directory/v1/groups/{groupKey}/members/{memberKey}", baseUrl: "https://admin.googleapis.com/", requiredParams: ["memberKey", "groupKey"] },
|
|
774
|
+
params: [{ "field": "groupKey", "api": "groupKey", "location": "path" }, { "field": "memberKey", "api": "memberKey", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
775
|
+
hasBody: false,
|
|
776
|
+
shape: {
|
|
777
|
+
account: accountField(),
|
|
778
|
+
groupKey: z.string().describe("Identifies the group in the API request. The value can be the group's email address, group alias, or the unique group ID."),
|
|
779
|
+
memberKey: z.string().describe("Identifies the group member in the API request. A group member can be a user or another group. The value can be the member's (group or user) primary email address, alias, or unique ID."),
|
|
780
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
781
|
+
},
|
|
782
|
+
});
|
|
783
|
+
registerGeneratedTool(registry, {
|
|
784
|
+
name: "admin_members_get",
|
|
785
|
+
cud: "read",
|
|
786
|
+
description: "Retrieves a group member's properties.",
|
|
787
|
+
method: { id: "directory.members.get", httpMethod: "GET", path: "admin/directory/v1/groups/{groupKey}/members/{memberKey}", baseUrl: "https://admin.googleapis.com/", requiredParams: ["groupKey", "memberKey"] },
|
|
788
|
+
params: [{ "field": "groupKey", "api": "groupKey", "location": "path" }, { "field": "memberKey", "api": "memberKey", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
789
|
+
hasBody: false,
|
|
790
|
+
shape: {
|
|
791
|
+
account: accountField(),
|
|
792
|
+
groupKey: z.string().describe("Identifies the group in the API request. The value can be the group's email address, group alias, or the unique group ID."),
|
|
793
|
+
memberKey: z.string().describe("Identifies the group member in the API request. A group member can be a user or another group. The value can be the member's (group or user) primary email address, alias, or unique ID."),
|
|
794
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
795
|
+
},
|
|
796
|
+
});
|
|
797
|
+
registerGeneratedTool(registry, {
|
|
798
|
+
name: "admin_members_has_member",
|
|
799
|
+
cud: "read",
|
|
800
|
+
description: "Checks whether the given user is a member of the group. Membership can be direct or nested, but if nested, the `memberKey` and `groupKey` must be entities in th",
|
|
801
|
+
method: { id: "directory.members.hasMember", httpMethod: "GET", path: "admin/directory/v1/groups/{groupKey}/hasMember/{memberKey}", baseUrl: "https://admin.googleapis.com/", requiredParams: ["memberKey", "groupKey"] },
|
|
802
|
+
params: [{ "field": "groupKey", "api": "groupKey", "location": "path" }, { "field": "memberKey", "api": "memberKey", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
803
|
+
hasBody: false,
|
|
804
|
+
shape: {
|
|
805
|
+
account: accountField(),
|
|
806
|
+
groupKey: z.string().describe("Identifies the group in the API request. The value can be the group's email address, group alias, or the unique group ID."),
|
|
807
|
+
memberKey: z.string().describe("Identifies the user member in the API request. The value can be the user's primary email address, alias, or unique ID."),
|
|
808
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
809
|
+
},
|
|
810
|
+
});
|
|
811
|
+
registerGeneratedTool(registry, {
|
|
812
|
+
name: "admin_members_insert",
|
|
813
|
+
cud: "create",
|
|
814
|
+
description: "Adds a user to the specified group.",
|
|
815
|
+
method: { id: "directory.members.insert", httpMethod: "POST", path: "admin/directory/v1/groups/{groupKey}/members", baseUrl: "https://admin.googleapis.com/", requiredParams: ["groupKey"] },
|
|
816
|
+
params: [{ "field": "groupKey", "api": "groupKey", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
817
|
+
hasBody: true,
|
|
818
|
+
shape: {
|
|
819
|
+
account: accountField(),
|
|
820
|
+
groupKey: z.string().describe("Identifies the group in the API request. The value can be the group's email address, group alias, or the unique group ID."),
|
|
821
|
+
body: coerceJson(z.record(z.string(), z.unknown())).describe("Member JSON request body. Top-level fields: delivery_settings, email, etag, id, kind, role, status, type."),
|
|
822
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
823
|
+
},
|
|
824
|
+
});
|
|
825
|
+
registerGeneratedTool(registry, {
|
|
826
|
+
name: "admin_members_patch",
|
|
827
|
+
cud: "update",
|
|
828
|
+
description: "Updates the membership properties of a user in the specified group. This method supports [patch semantics](https://developers.google.com/workspace/admin/directo",
|
|
829
|
+
method: { id: "directory.members.patch", httpMethod: "PATCH", path: "admin/directory/v1/groups/{groupKey}/members/{memberKey}", baseUrl: "https://admin.googleapis.com/", requiredParams: ["memberKey", "groupKey"] },
|
|
830
|
+
params: [{ "field": "groupKey", "api": "groupKey", "location": "path" }, { "field": "memberKey", "api": "memberKey", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
831
|
+
hasBody: true,
|
|
832
|
+
shape: {
|
|
833
|
+
account: accountField(),
|
|
834
|
+
groupKey: z.string().describe("Identifies the group in the API request. The value can be the group's email address, group alias, or the unique group ID."),
|
|
835
|
+
memberKey: z.string().describe("Identifies the group member in the API request. A group member can be a user or another group. The value can be the member's (group or user) primary email address, alias, or unique ID."),
|
|
836
|
+
body: coerceJson(z.record(z.string(), z.unknown())).describe("Member JSON request body. Top-level fields: delivery_settings, email, etag, id, kind, role, status, type."),
|
|
837
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
838
|
+
},
|
|
839
|
+
});
|
|
840
|
+
registerGeneratedTool(registry, {
|
|
841
|
+
name: "admin_members_update",
|
|
842
|
+
cud: "update",
|
|
843
|
+
description: "Updates the membership of a user in the specified group.",
|
|
844
|
+
method: { id: "directory.members.update", httpMethod: "PUT", path: "admin/directory/v1/groups/{groupKey}/members/{memberKey}", baseUrl: "https://admin.googleapis.com/", requiredParams: ["groupKey", "memberKey"] },
|
|
845
|
+
params: [{ "field": "groupKey", "api": "groupKey", "location": "path" }, { "field": "memberKey", "api": "memberKey", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
846
|
+
hasBody: true,
|
|
847
|
+
shape: {
|
|
848
|
+
account: accountField(),
|
|
849
|
+
groupKey: z.string().describe("Identifies the group in the API request. The value can be the group's email address, group alias, or the unique group ID."),
|
|
850
|
+
memberKey: z.string().describe("Identifies the group member in the API request. A group member can be a user or another group. The value can be the member's (group or user) primary email address, alias, or unique ID."),
|
|
851
|
+
body: coerceJson(z.record(z.string(), z.unknown())).describe("Member JSON request body. Top-level fields: delivery_settings, email, etag, id, kind, role, status, type."),
|
|
852
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
853
|
+
},
|
|
854
|
+
});
|
|
855
|
+
registerGeneratedTool(registry, {
|
|
856
|
+
name: "admin_mobiledevices_action",
|
|
857
|
+
cud: "create",
|
|
858
|
+
description: "Takes an action that affects a mobile device. For example, remotely wiping a device.",
|
|
859
|
+
method: { id: "directory.mobiledevices.action", httpMethod: "POST", path: "admin/directory/v1/customer/{customerId}/devices/mobile/{resourceId}/action", baseUrl: "https://admin.googleapis.com/", requiredParams: ["resourceId", "customerId"] },
|
|
860
|
+
params: [{ "field": "customerId", "api": "customerId", "location": "path" }, { "field": "resourceId", "api": "resourceId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
861
|
+
hasBody: true,
|
|
862
|
+
shape: {
|
|
863
|
+
account: accountField(),
|
|
864
|
+
customerId: z.string().describe("The unique ID for the customer's Google Workspace account. As an account administrator, you can also use the `my_customer` alias to represent your account's `customerId`. The `customerId` is also retu"),
|
|
865
|
+
resourceId: z.string().describe("The unique ID the API service uses to identify the mobile device."),
|
|
866
|
+
body: coerceJson(z.record(z.string(), z.unknown())).describe("MobileDeviceAction JSON request body. Top-level fields: action."),
|
|
867
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
868
|
+
},
|
|
869
|
+
});
|
|
870
|
+
registerGeneratedTool(registry, {
|
|
871
|
+
name: "admin_mobiledevices_delete",
|
|
872
|
+
cud: "delete",
|
|
873
|
+
description: "Removes a mobile device.",
|
|
874
|
+
method: { id: "directory.mobiledevices.delete", httpMethod: "DELETE", path: "admin/directory/v1/customer/{customerId}/devices/mobile/{resourceId}", baseUrl: "https://admin.googleapis.com/", requiredParams: ["resourceId", "customerId"] },
|
|
875
|
+
params: [{ "field": "customerId", "api": "customerId", "location": "path" }, { "field": "resourceId", "api": "resourceId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
876
|
+
hasBody: false,
|
|
877
|
+
shape: {
|
|
878
|
+
account: accountField(),
|
|
879
|
+
customerId: z.string().describe("The unique ID for the customer's Google Workspace account. As an account administrator, you can also use the `my_customer` alias to represent your account's `customerId`. The `customerId` is also retu"),
|
|
880
|
+
resourceId: z.string().describe("The unique ID the API service uses to identify the mobile device."),
|
|
881
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
882
|
+
},
|
|
883
|
+
});
|
|
884
|
+
registerGeneratedTool(registry, {
|
|
885
|
+
name: "admin_mobiledevices_get",
|
|
886
|
+
cud: "read",
|
|
887
|
+
description: "Retrieves a mobile device's properties.",
|
|
888
|
+
method: { id: "directory.mobiledevices.get", httpMethod: "GET", path: "admin/directory/v1/customer/{customerId}/devices/mobile/{resourceId}", baseUrl: "https://admin.googleapis.com/", requiredParams: ["resourceId", "customerId"] },
|
|
889
|
+
params: [{ "field": "customerId", "api": "customerId", "location": "path" }, { "field": "resourceId", "api": "resourceId", "location": "path" }, { "field": "projection", "api": "projection", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
890
|
+
hasBody: false,
|
|
891
|
+
shape: {
|
|
892
|
+
account: accountField(),
|
|
893
|
+
customerId: z.string().describe("The unique ID for the customer's Google Workspace account. As an account administrator, you can also use the `my_customer` alias to represent your account's `customerId`. The `customerId` is also retu"),
|
|
894
|
+
resourceId: z.string().describe("The unique ID the API service uses to identify the mobile device."),
|
|
895
|
+
projection: z.enum(["BASIC", "FULL"]).describe("Restrict information returned to a set of selected fields.").optional(),
|
|
896
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
897
|
+
},
|
|
898
|
+
});
|
|
899
|
+
registerGeneratedTool(registry, {
|
|
900
|
+
name: "admin_mobiledevices_list",
|
|
901
|
+
cud: "read",
|
|
902
|
+
description: "Retrieves a paginated list of all user-owned mobile devices for an account. To retrieve a list that includes company-owned devices, use the Cloud Identity [Devi",
|
|
903
|
+
method: { id: "directory.mobiledevices.list", httpMethod: "GET", path: "admin/directory/v1/customer/{customerId}/devices/mobile", baseUrl: "https://admin.googleapis.com/", requiredParams: ["customerId"] },
|
|
904
|
+
params: [{ "field": "customerId", "api": "customerId", "location": "path" }, { "field": "maxResults", "api": "maxResults", "location": "query" }, { "field": "orderBy", "api": "orderBy", "location": "query" }, { "field": "pageToken", "api": "pageToken", "location": "query" }, { "field": "projection", "api": "projection", "location": "query" }, { "field": "query", "api": "query", "location": "query" }, { "field": "sortOrder", "api": "sortOrder", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
905
|
+
hasBody: false,
|
|
906
|
+
shape: {
|
|
907
|
+
account: accountField(),
|
|
908
|
+
customerId: z.string().describe("The unique ID for the customer's Google Workspace account. As an account administrator, you can also use the `my_customer` alias to represent your account's `customerId`. The `customerId` is also retu"),
|
|
909
|
+
maxResults: z.number().describe("Maximum number of results to return. Max allowed value is 100.").optional(),
|
|
910
|
+
orderBy: z.enum(["deviceId", "email", "lastSync", "model", "name", "os", "status", "type"]).describe("Device property to use for sorting results.").optional(),
|
|
911
|
+
pageToken: z.string().describe("Token to specify next page in the list").optional(),
|
|
912
|
+
projection: z.enum(["BASIC", "FULL"]).describe("Restrict information returned to a set of selected fields.").optional(),
|
|
913
|
+
query: z.string().describe("Search string in the format given at https://developers.google.com/workspace/admin/directory/v1/search-operators").optional(),
|
|
914
|
+
sortOrder: z.enum(["ASCENDING", "DESCENDING"]).describe("Whether to return results in ascending or descending order. Must be used with the `orderBy` parameter.").optional(),
|
|
915
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
916
|
+
},
|
|
917
|
+
});
|
|
918
|
+
registerGeneratedTool(registry, {
|
|
919
|
+
name: "admin_orgunits_delete",
|
|
920
|
+
cud: "delete",
|
|
921
|
+
description: "Removes an organizational unit.",
|
|
922
|
+
method: { id: "directory.orgunits.delete", httpMethod: "DELETE", path: "admin/directory/v1/customer/{customerId}/orgunits/{+orgUnitPath}", baseUrl: "https://admin.googleapis.com/", requiredParams: ["customerId", "orgUnitPath"] },
|
|
923
|
+
params: [{ "field": "customerId", "api": "customerId", "location": "path" }, { "field": "orgUnitPath", "api": "orgUnitPath", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
924
|
+
hasBody: false,
|
|
925
|
+
shape: {
|
|
926
|
+
account: accountField(),
|
|
927
|
+
customerId: z.string().describe("The unique ID for the customer's Google Workspace account. As an account administrator, you can also use the `my_customer` alias to represent your account's `customerId`. The `customerId` is also retu"),
|
|
928
|
+
orgUnitPath: z.string().describe("The full path of the organizational unit (minus the leading `/`) or its unique ID."),
|
|
929
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
930
|
+
},
|
|
931
|
+
});
|
|
932
|
+
registerGeneratedTool(registry, {
|
|
933
|
+
name: "admin_orgunits_get",
|
|
934
|
+
cud: "read",
|
|
935
|
+
description: "Retrieves an organizational unit.",
|
|
936
|
+
method: { id: "directory.orgunits.get", httpMethod: "GET", path: "admin/directory/v1/customer/{customerId}/orgunits/{+orgUnitPath}", baseUrl: "https://admin.googleapis.com/", requiredParams: ["customerId", "orgUnitPath"] },
|
|
937
|
+
params: [{ "field": "customerId", "api": "customerId", "location": "path" }, { "field": "orgUnitPath", "api": "orgUnitPath", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
938
|
+
hasBody: false,
|
|
939
|
+
shape: {
|
|
940
|
+
account: accountField(),
|
|
941
|
+
customerId: z.string().describe("The unique ID for the customer's Google Workspace account. As an account administrator, you can also use the `my_customer` alias to represent your account's `customerId`. The `customerId` is also retu"),
|
|
942
|
+
orgUnitPath: z.string().describe("The full path of the organizational unit (minus the leading `/`) or its unique ID."),
|
|
943
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
944
|
+
},
|
|
945
|
+
});
|
|
946
|
+
registerGeneratedTool(registry, {
|
|
947
|
+
name: "admin_orgunits_insert",
|
|
948
|
+
cud: "create",
|
|
949
|
+
description: "Adds an organizational unit.",
|
|
950
|
+
method: { id: "directory.orgunits.insert", httpMethod: "POST", path: "admin/directory/v1/customer/{customerId}/orgunits", baseUrl: "https://admin.googleapis.com/", requiredParams: ["customerId"] },
|
|
951
|
+
params: [{ "field": "customerId", "api": "customerId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
952
|
+
hasBody: true,
|
|
953
|
+
shape: {
|
|
954
|
+
account: accountField(),
|
|
955
|
+
customerId: z.string().describe("The unique ID for the customer's Google Workspace account. As an account administrator, you can also use the `my_customer` alias to represent your account's `customerId`. The `customerId` is also retu"),
|
|
956
|
+
body: coerceJson(z.record(z.string(), z.unknown())).describe("OrgUnit JSON request body. Top-level fields: blockInheritance, description, etag, kind, name, orgUnitId, orgUnitPath, parentOrgUnitId, parentOrgUnitPath."),
|
|
957
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
958
|
+
},
|
|
959
|
+
});
|
|
960
|
+
registerGeneratedTool(registry, {
|
|
961
|
+
name: "admin_orgunits_list",
|
|
962
|
+
cud: "read",
|
|
963
|
+
description: "Retrieves a list of all organizational units for an account.",
|
|
964
|
+
method: { id: "directory.orgunits.list", httpMethod: "GET", path: "admin/directory/v1/customer/{customerId}/orgunits", baseUrl: "https://admin.googleapis.com/", requiredParams: ["customerId"] },
|
|
965
|
+
params: [{ "field": "customerId", "api": "customerId", "location": "path" }, { "field": "orgUnitPath", "api": "orgUnitPath", "location": "query" }, { "field": "type", "api": "type", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
966
|
+
hasBody: false,
|
|
967
|
+
shape: {
|
|
968
|
+
account: accountField(),
|
|
969
|
+
customerId: z.string().describe("The unique ID for the customer's Google Workspace account. As an account administrator, you can also use the `my_customer` alias to represent your account's `customerId`. The `customerId` is also retu"),
|
|
970
|
+
orgUnitPath: z.string().describe("The full path to the organizational unit or its unique ID. Returns the children of the specified organizational unit.").optional(),
|
|
971
|
+
type: z.enum(["all", "children", "allIncludingParent"]).describe("Whether to return all sub-organizations or just immediate children.").optional(),
|
|
972
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
973
|
+
},
|
|
974
|
+
});
|
|
975
|
+
registerGeneratedTool(registry, {
|
|
976
|
+
name: "admin_orgunits_patch",
|
|
977
|
+
cud: "update",
|
|
978
|
+
description: "Updates an organizational unit. This method supports [patch semantics](https://developers.google.com/workspace/admin/directory/v1/guides/performance#patch)",
|
|
979
|
+
method: { id: "directory.orgunits.patch", httpMethod: "PATCH", path: "admin/directory/v1/customer/{customerId}/orgunits/{+orgUnitPath}", baseUrl: "https://admin.googleapis.com/", requiredParams: ["customerId", "orgUnitPath"] },
|
|
980
|
+
params: [{ "field": "customerId", "api": "customerId", "location": "path" }, { "field": "orgUnitPath", "api": "orgUnitPath", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
981
|
+
hasBody: true,
|
|
982
|
+
shape: {
|
|
983
|
+
account: accountField(),
|
|
984
|
+
customerId: z.string().describe("The unique ID for the customer's Google Workspace account. As an account administrator, you can also use the `my_customer` alias to represent your account's `customerId`. The `customerId` is also retu"),
|
|
985
|
+
orgUnitPath: z.string().describe("The full path of the organizational unit (minus the leading `/`) or its unique ID."),
|
|
986
|
+
body: coerceJson(z.record(z.string(), z.unknown())).describe("OrgUnit JSON request body. Top-level fields: blockInheritance, description, etag, kind, name, orgUnitId, orgUnitPath, parentOrgUnitId, parentOrgUnitPath."),
|
|
987
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
988
|
+
},
|
|
989
|
+
});
|
|
990
|
+
registerGeneratedTool(registry, {
|
|
991
|
+
name: "admin_orgunits_update",
|
|
992
|
+
cud: "update",
|
|
993
|
+
description: "Updates an organizational unit.",
|
|
994
|
+
method: { id: "directory.orgunits.update", httpMethod: "PUT", path: "admin/directory/v1/customer/{customerId}/orgunits/{+orgUnitPath}", baseUrl: "https://admin.googleapis.com/", requiredParams: ["orgUnitPath", "customerId"] },
|
|
995
|
+
params: [{ "field": "customerId", "api": "customerId", "location": "path" }, { "field": "orgUnitPath", "api": "orgUnitPath", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
996
|
+
hasBody: true,
|
|
997
|
+
shape: {
|
|
998
|
+
account: accountField(),
|
|
999
|
+
customerId: z.string().describe("The unique ID for the customer's Google Workspace account. As an account administrator, you can also use the `my_customer` alias to represent your account's `customerId`. The `customerId` is also retu"),
|
|
1000
|
+
orgUnitPath: z.string().describe("The full path of the organizational unit (minus the leading `/`) or its unique ID."),
|
|
1001
|
+
body: coerceJson(z.record(z.string(), z.unknown())).describe("OrgUnit JSON request body. Top-level fields: blockInheritance, description, etag, kind, name, orgUnitId, orgUnitPath, parentOrgUnitId, parentOrgUnitPath."),
|
|
1002
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
1003
|
+
},
|
|
1004
|
+
});
|
|
1005
|
+
registerGeneratedTool(registry, {
|
|
1006
|
+
name: "admin_privileges_list",
|
|
1007
|
+
cud: "read",
|
|
1008
|
+
description: "Retrieves a paginated list of all privileges for a customer.",
|
|
1009
|
+
method: { id: "directory.privileges.list", httpMethod: "GET", path: "admin/directory/v1/customer/{customer}/roles/ALL/privileges", baseUrl: "https://admin.googleapis.com/", requiredParams: ["customer"] },
|
|
1010
|
+
params: [{ "field": "customer", "api": "customer", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
1011
|
+
hasBody: false,
|
|
1012
|
+
shape: {
|
|
1013
|
+
account: accountField(),
|
|
1014
|
+
customer: z.string().describe("The unique ID for the customer's Google Workspace account. In case of a multi-domain account, to fetch all groups for a customer, use this field instead of `domain`. You can also use the `my_customer`"),
|
|
1015
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
1016
|
+
},
|
|
1017
|
+
});
|
|
1018
|
+
registerGeneratedTool(registry, {
|
|
1019
|
+
name: "admin_resources_buildings_delete",
|
|
1020
|
+
cud: "delete",
|
|
1021
|
+
description: "Deletes a building.",
|
|
1022
|
+
method: { id: "directory.resources.buildings.delete", httpMethod: "DELETE", path: "admin/directory/v1/customer/{customer}/resources/buildings/{buildingId}", baseUrl: "https://admin.googleapis.com/", requiredParams: ["buildingId", "customer"] },
|
|
1023
|
+
params: [{ "field": "buildingId", "api": "buildingId", "location": "path" }, { "field": "customer", "api": "customer", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
1024
|
+
hasBody: false,
|
|
1025
|
+
shape: {
|
|
1026
|
+
account: accountField(),
|
|
1027
|
+
buildingId: z.string().describe("The id of the building to delete."),
|
|
1028
|
+
customer: z.string().describe("The unique ID for the customer's Google Workspace account. As an account administrator, you can also use the `my_customer` alias to represent your account's customer ID."),
|
|
1029
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
1030
|
+
},
|
|
1031
|
+
});
|
|
1032
|
+
registerGeneratedTool(registry, {
|
|
1033
|
+
name: "admin_resources_buildings_get",
|
|
1034
|
+
cud: "read",
|
|
1035
|
+
description: "Retrieves a building.",
|
|
1036
|
+
method: { id: "directory.resources.buildings.get", httpMethod: "GET", path: "admin/directory/v1/customer/{customer}/resources/buildings/{buildingId}", baseUrl: "https://admin.googleapis.com/", requiredParams: ["customer", "buildingId"] },
|
|
1037
|
+
params: [{ "field": "buildingId", "api": "buildingId", "location": "path" }, { "field": "customer", "api": "customer", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
1038
|
+
hasBody: false,
|
|
1039
|
+
shape: {
|
|
1040
|
+
account: accountField(),
|
|
1041
|
+
buildingId: z.string().describe("The unique ID of the building to retrieve."),
|
|
1042
|
+
customer: z.string().describe("The unique ID for the customer's Google Workspace account. As an account administrator, you can also use the `my_customer` alias to represent your account's customer ID."),
|
|
1043
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
1044
|
+
},
|
|
1045
|
+
});
|
|
1046
|
+
registerGeneratedTool(registry, {
|
|
1047
|
+
name: "admin_resources_buildings_insert",
|
|
1048
|
+
cud: "create",
|
|
1049
|
+
description: "Inserts a building.",
|
|
1050
|
+
method: { id: "directory.resources.buildings.insert", httpMethod: "POST", path: "admin/directory/v1/customer/{customer}/resources/buildings", baseUrl: "https://admin.googleapis.com/", requiredParams: ["customer"] },
|
|
1051
|
+
params: [{ "field": "customer", "api": "customer", "location": "path" }, { "field": "coordinatesSource", "api": "coordinatesSource", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
1052
|
+
hasBody: true,
|
|
1053
|
+
shape: {
|
|
1054
|
+
account: accountField(),
|
|
1055
|
+
customer: z.string().describe("The unique ID for the customer's Google Workspace account. As an account administrator, you can also use the `my_customer` alias to represent your account's customer ID."),
|
|
1056
|
+
coordinatesSource: z.enum(["CLIENT_SPECIFIED", "RESOLVED_FROM_ADDRESS", "SOURCE_UNSPECIFIED"]).describe("Source from which Building.coordinates are derived.").optional(),
|
|
1057
|
+
body: coerceJson(z.record(z.string(), z.unknown())).describe("Building JSON request body. Top-level fields: address, buildingId, buildingName, coordinates, description, etags, floorNames, kind."),
|
|
1058
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
1059
|
+
},
|
|
1060
|
+
});
|
|
1061
|
+
registerGeneratedTool(registry, {
|
|
1062
|
+
name: "admin_resources_buildings_list",
|
|
1063
|
+
cud: "read",
|
|
1064
|
+
description: "Retrieves a list of buildings for an account.",
|
|
1065
|
+
method: { id: "directory.resources.buildings.list", httpMethod: "GET", path: "admin/directory/v1/customer/{customer}/resources/buildings", baseUrl: "https://admin.googleapis.com/", requiredParams: ["customer"] },
|
|
1066
|
+
params: [{ "field": "customer", "api": "customer", "location": "path" }, { "field": "maxResults", "api": "maxResults", "location": "query" }, { "field": "pageToken", "api": "pageToken", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
1067
|
+
hasBody: false,
|
|
1068
|
+
shape: {
|
|
1069
|
+
account: accountField(),
|
|
1070
|
+
customer: z.string().describe("The unique ID for the customer's Google Workspace account. As an account administrator, you can also use the `my_customer` alias to represent your account's customer ID."),
|
|
1071
|
+
maxResults: z.number().describe("Maximum number of results to return.").optional(),
|
|
1072
|
+
pageToken: z.string().describe("Token to specify the next page in the list.").optional(),
|
|
1073
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
1074
|
+
},
|
|
1075
|
+
});
|
|
1076
|
+
registerGeneratedTool(registry, {
|
|
1077
|
+
name: "admin_resources_buildings_patch",
|
|
1078
|
+
cud: "update",
|
|
1079
|
+
description: "Patches a building.",
|
|
1080
|
+
method: { id: "directory.resources.buildings.patch", httpMethod: "PATCH", path: "admin/directory/v1/customer/{customer}/resources/buildings/{buildingId}", baseUrl: "https://admin.googleapis.com/", requiredParams: ["buildingId", "customer"] },
|
|
1081
|
+
params: [{ "field": "buildingId", "api": "buildingId", "location": "path" }, { "field": "customer", "api": "customer", "location": "path" }, { "field": "coordinatesSource", "api": "coordinatesSource", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
1082
|
+
hasBody: true,
|
|
1083
|
+
shape: {
|
|
1084
|
+
account: accountField(),
|
|
1085
|
+
buildingId: z.string().describe("The id of the building to update."),
|
|
1086
|
+
customer: z.string().describe("The unique ID for the customer's Google Workspace account. As an account administrator, you can also use the `my_customer` alias to represent your account's customer ID."),
|
|
1087
|
+
coordinatesSource: z.enum(["CLIENT_SPECIFIED", "RESOLVED_FROM_ADDRESS", "SOURCE_UNSPECIFIED"]).describe("Source from which Building.coordinates are derived.").optional(),
|
|
1088
|
+
body: coerceJson(z.record(z.string(), z.unknown())).describe("Building JSON request body. Top-level fields: address, buildingId, buildingName, coordinates, description, etags, floorNames, kind."),
|
|
1089
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
1090
|
+
},
|
|
1091
|
+
});
|
|
1092
|
+
registerGeneratedTool(registry, {
|
|
1093
|
+
name: "admin_resources_buildings_update",
|
|
1094
|
+
cud: "update",
|
|
1095
|
+
description: "Updates a building.",
|
|
1096
|
+
method: { id: "directory.resources.buildings.update", httpMethod: "PUT", path: "admin/directory/v1/customer/{customer}/resources/buildings/{buildingId}", baseUrl: "https://admin.googleapis.com/", requiredParams: ["customer", "buildingId"] },
|
|
1097
|
+
params: [{ "field": "buildingId", "api": "buildingId", "location": "path" }, { "field": "customer", "api": "customer", "location": "path" }, { "field": "coordinatesSource", "api": "coordinatesSource", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
1098
|
+
hasBody: true,
|
|
1099
|
+
shape: {
|
|
1100
|
+
account: accountField(),
|
|
1101
|
+
buildingId: z.string().describe("The id of the building to update."),
|
|
1102
|
+
customer: z.string().describe("The unique ID for the customer's Google Workspace account. As an account administrator, you can also use the `my_customer` alias to represent your account's customer ID."),
|
|
1103
|
+
coordinatesSource: z.enum(["CLIENT_SPECIFIED", "RESOLVED_FROM_ADDRESS", "SOURCE_UNSPECIFIED"]).describe("Source from which Building.coordinates are derived.").optional(),
|
|
1104
|
+
body: coerceJson(z.record(z.string(), z.unknown())).describe("Building JSON request body. Top-level fields: address, buildingId, buildingName, coordinates, description, etags, floorNames, kind."),
|
|
1105
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
1106
|
+
},
|
|
1107
|
+
});
|
|
1108
|
+
registerGeneratedTool(registry, {
|
|
1109
|
+
name: "admin_resources_calendars_delete",
|
|
1110
|
+
cud: "delete",
|
|
1111
|
+
description: "Deletes a calendar resource.",
|
|
1112
|
+
method: { id: "directory.resources.calendars.delete", httpMethod: "DELETE", path: "admin/directory/v1/customer/{customer}/resources/calendars/{calendarResourceId}", baseUrl: "https://admin.googleapis.com/", requiredParams: ["calendarResourceId", "customer"] },
|
|
1113
|
+
params: [{ "field": "calendarResourceId", "api": "calendarResourceId", "location": "path" }, { "field": "customer", "api": "customer", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
1114
|
+
hasBody: false,
|
|
1115
|
+
shape: {
|
|
1116
|
+
account: accountField(),
|
|
1117
|
+
calendarResourceId: z.string().describe("The unique ID of the calendar resource to delete."),
|
|
1118
|
+
customer: z.string().describe("The unique ID for the customer's Google Workspace account. As an account administrator, you can also use the `my_customer` alias to represent your account's customer ID."),
|
|
1119
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
1120
|
+
},
|
|
1121
|
+
});
|
|
1122
|
+
registerGeneratedTool(registry, {
|
|
1123
|
+
name: "admin_resources_calendars_get",
|
|
1124
|
+
cud: "read",
|
|
1125
|
+
description: "Retrieves a calendar resource.",
|
|
1126
|
+
method: { id: "directory.resources.calendars.get", httpMethod: "GET", path: "admin/directory/v1/customer/{customer}/resources/calendars/{calendarResourceId}", baseUrl: "https://admin.googleapis.com/", requiredParams: ["customer", "calendarResourceId"] },
|
|
1127
|
+
params: [{ "field": "calendarResourceId", "api": "calendarResourceId", "location": "path" }, { "field": "customer", "api": "customer", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
1128
|
+
hasBody: false,
|
|
1129
|
+
shape: {
|
|
1130
|
+
account: accountField(),
|
|
1131
|
+
calendarResourceId: z.string().describe("The unique ID of the calendar resource to retrieve."),
|
|
1132
|
+
customer: z.string().describe("The unique ID for the customer's Google Workspace account. As an account administrator, you can also use the `my_customer` alias to represent your account's customer ID."),
|
|
1133
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
1134
|
+
},
|
|
1135
|
+
});
|
|
1136
|
+
registerGeneratedTool(registry, {
|
|
1137
|
+
name: "admin_resources_calendars_insert",
|
|
1138
|
+
cud: "create",
|
|
1139
|
+
description: "Inserts a calendar resource.",
|
|
1140
|
+
method: { id: "directory.resources.calendars.insert", httpMethod: "POST", path: "admin/directory/v1/customer/{customer}/resources/calendars", baseUrl: "https://admin.googleapis.com/", requiredParams: ["customer"] },
|
|
1141
|
+
params: [{ "field": "customer", "api": "customer", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
1142
|
+
hasBody: true,
|
|
1143
|
+
shape: {
|
|
1144
|
+
account: accountField(),
|
|
1145
|
+
customer: z.string().describe("The unique ID for the customer's Google Workspace account. As an account administrator, you can also use the `my_customer` alias to represent your account's customer ID."),
|
|
1146
|
+
body: coerceJson(z.record(z.string(), z.unknown())).describe("CalendarResource JSON request body. Top-level fields: buildingId, capacity, etags, featureInstances, floorName, floorSection, generatedResourceName, kind, resourceCategory, resourceDescription, resourceEmail, resourceId, +3 more."),
|
|
1147
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
1148
|
+
},
|
|
1149
|
+
});
|
|
1150
|
+
registerGeneratedTool(registry, {
|
|
1151
|
+
name: "admin_resources_calendars_list",
|
|
1152
|
+
cud: "read",
|
|
1153
|
+
description: "Retrieves a list of calendar resources for an account.",
|
|
1154
|
+
method: { id: "directory.resources.calendars.list", httpMethod: "GET", path: "admin/directory/v1/customer/{customer}/resources/calendars", baseUrl: "https://admin.googleapis.com/", requiredParams: ["customer"] },
|
|
1155
|
+
params: [{ "field": "customer", "api": "customer", "location": "path" }, { "field": "maxResults", "api": "maxResults", "location": "query" }, { "field": "orderBy", "api": "orderBy", "location": "query" }, { "field": "pageToken", "api": "pageToken", "location": "query" }, { "field": "query", "api": "query", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
1156
|
+
hasBody: false,
|
|
1157
|
+
shape: {
|
|
1158
|
+
account: accountField(),
|
|
1159
|
+
customer: z.string().describe("The unique ID for the customer's Google Workspace account. As an account administrator, you can also use the `my_customer` alias to represent your account's customer ID."),
|
|
1160
|
+
maxResults: z.number().describe("Maximum number of results to return.").optional(),
|
|
1161
|
+
orderBy: z.string().describe("Field(s) to sort results by in either ascending or descending order. Supported fields include `resourceId`, `resourceName`, `capacity`, `buildingId`, and `floorName`. If no order is specified, default").optional(),
|
|
1162
|
+
pageToken: z.string().describe("Token to specify the next page in the list.").optional(),
|
|
1163
|
+
query: z.string().describe("String query used to filter results. Contains one or more search clauses, each with a field, operator, and value. A field can be any of supported fields and operators can be any of supported operation").optional(),
|
|
1164
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
1165
|
+
},
|
|
1166
|
+
});
|
|
1167
|
+
registerGeneratedTool(registry, {
|
|
1168
|
+
name: "admin_resources_calendars_patch",
|
|
1169
|
+
cud: "update",
|
|
1170
|
+
description: "Patches a calendar resource.",
|
|
1171
|
+
method: { id: "directory.resources.calendars.patch", httpMethod: "PATCH", path: "admin/directory/v1/customer/{customer}/resources/calendars/{calendarResourceId}", baseUrl: "https://admin.googleapis.com/", requiredParams: ["calendarResourceId", "customer"] },
|
|
1172
|
+
params: [{ "field": "calendarResourceId", "api": "calendarResourceId", "location": "path" }, { "field": "customer", "api": "customer", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
1173
|
+
hasBody: true,
|
|
1174
|
+
shape: {
|
|
1175
|
+
account: accountField(),
|
|
1176
|
+
calendarResourceId: z.string().describe("The unique ID of the calendar resource to update."),
|
|
1177
|
+
customer: z.string().describe("The unique ID for the customer's Google Workspace account. As an account administrator, you can also use the `my_customer` alias to represent your account's customer ID."),
|
|
1178
|
+
body: coerceJson(z.record(z.string(), z.unknown())).describe("CalendarResource JSON request body. Top-level fields: buildingId, capacity, etags, featureInstances, floorName, floorSection, generatedResourceName, kind, resourceCategory, resourceDescription, resourceEmail, resourceId, +3 more."),
|
|
1179
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
1180
|
+
},
|
|
1181
|
+
});
|
|
1182
|
+
registerGeneratedTool(registry, {
|
|
1183
|
+
name: "admin_resources_calendars_update",
|
|
1184
|
+
cud: "update",
|
|
1185
|
+
description: "Updates a calendar resource. This method supports patch semantics, meaning you only need to include the fields you wish to update. Fields that are not present i",
|
|
1186
|
+
method: { id: "directory.resources.calendars.update", httpMethod: "PUT", path: "admin/directory/v1/customer/{customer}/resources/calendars/{calendarResourceId}", baseUrl: "https://admin.googleapis.com/", requiredParams: ["calendarResourceId", "customer"] },
|
|
1187
|
+
params: [{ "field": "calendarResourceId", "api": "calendarResourceId", "location": "path" }, { "field": "customer", "api": "customer", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
1188
|
+
hasBody: true,
|
|
1189
|
+
shape: {
|
|
1190
|
+
account: accountField(),
|
|
1191
|
+
calendarResourceId: z.string().describe("The unique ID of the calendar resource to update."),
|
|
1192
|
+
customer: z.string().describe("The unique ID for the customer's Google Workspace account. As an account administrator, you can also use the `my_customer` alias to represent your account's customer ID."),
|
|
1193
|
+
body: coerceJson(z.record(z.string(), z.unknown())).describe("CalendarResource JSON request body. Top-level fields: buildingId, capacity, etags, featureInstances, floorName, floorSection, generatedResourceName, kind, resourceCategory, resourceDescription, resourceEmail, resourceId, +3 more."),
|
|
1194
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
1195
|
+
},
|
|
1196
|
+
});
|
|
1197
|
+
registerGeneratedTool(registry, {
|
|
1198
|
+
name: "admin_resources_features_delete",
|
|
1199
|
+
cud: "delete",
|
|
1200
|
+
description: "Deletes a feature.",
|
|
1201
|
+
method: { id: "directory.resources.features.delete", httpMethod: "DELETE", path: "admin/directory/v1/customer/{customer}/resources/features/{featureKey}", baseUrl: "https://admin.googleapis.com/", requiredParams: ["customer", "featureKey"] },
|
|
1202
|
+
params: [{ "field": "customer", "api": "customer", "location": "path" }, { "field": "featureKey", "api": "featureKey", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
1203
|
+
hasBody: false,
|
|
1204
|
+
shape: {
|
|
1205
|
+
account: accountField(),
|
|
1206
|
+
customer: z.string().describe("The unique ID for the customer's Google Workspace account. As an account administrator, you can also use the `my_customer` alias to represent your account's customer ID."),
|
|
1207
|
+
featureKey: z.string().describe("The unique ID of the feature to delete."),
|
|
1208
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
1209
|
+
},
|
|
1210
|
+
});
|
|
1211
|
+
registerGeneratedTool(registry, {
|
|
1212
|
+
name: "admin_resources_features_get",
|
|
1213
|
+
cud: "read",
|
|
1214
|
+
description: "Retrieves a feature.",
|
|
1215
|
+
method: { id: "directory.resources.features.get", httpMethod: "GET", path: "admin/directory/v1/customer/{customer}/resources/features/{featureKey}", baseUrl: "https://admin.googleapis.com/", requiredParams: ["customer", "featureKey"] },
|
|
1216
|
+
params: [{ "field": "customer", "api": "customer", "location": "path" }, { "field": "featureKey", "api": "featureKey", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
1217
|
+
hasBody: false,
|
|
1218
|
+
shape: {
|
|
1219
|
+
account: accountField(),
|
|
1220
|
+
customer: z.string().describe("The unique ID for the customer's Google Workspace account. As an account administrator, you can also use the `my_customer` alias to represent your account's customer ID."),
|
|
1221
|
+
featureKey: z.string().describe("The unique ID of the feature to retrieve."),
|
|
1222
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
1223
|
+
},
|
|
1224
|
+
});
|
|
1225
|
+
registerGeneratedTool(registry, {
|
|
1226
|
+
name: "admin_resources_features_insert",
|
|
1227
|
+
cud: "create",
|
|
1228
|
+
description: "Inserts a feature.",
|
|
1229
|
+
method: { id: "directory.resources.features.insert", httpMethod: "POST", path: "admin/directory/v1/customer/{customer}/resources/features", baseUrl: "https://admin.googleapis.com/", requiredParams: ["customer"] },
|
|
1230
|
+
params: [{ "field": "customer", "api": "customer", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
1231
|
+
hasBody: true,
|
|
1232
|
+
shape: {
|
|
1233
|
+
account: accountField(),
|
|
1234
|
+
customer: z.string().describe("The unique ID for the customer's Google Workspace account. As an account administrator, you can also use the `my_customer` alias to represent your account's customer ID."),
|
|
1235
|
+
body: coerceJson(z.record(z.string(), z.unknown())).describe("Feature JSON request body. Top-level fields: etags, kind, name."),
|
|
1236
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
1237
|
+
},
|
|
1238
|
+
});
|
|
1239
|
+
registerGeneratedTool(registry, {
|
|
1240
|
+
name: "admin_resources_features_list",
|
|
1241
|
+
cud: "read",
|
|
1242
|
+
description: "Retrieves a list of features for an account.",
|
|
1243
|
+
method: { id: "directory.resources.features.list", httpMethod: "GET", path: "admin/directory/v1/customer/{customer}/resources/features", baseUrl: "https://admin.googleapis.com/", requiredParams: ["customer"] },
|
|
1244
|
+
params: [{ "field": "customer", "api": "customer", "location": "path" }, { "field": "maxResults", "api": "maxResults", "location": "query" }, { "field": "pageToken", "api": "pageToken", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
1245
|
+
hasBody: false,
|
|
1246
|
+
shape: {
|
|
1247
|
+
account: accountField(),
|
|
1248
|
+
customer: z.string().describe("The unique ID for the customer's Google Workspace account. As an account administrator, you can also use the `my_customer` alias to represent your account's customer ID."),
|
|
1249
|
+
maxResults: z.number().describe("Maximum number of results to return.").optional(),
|
|
1250
|
+
pageToken: z.string().describe("Token to specify the next page in the list.").optional(),
|
|
1251
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
1252
|
+
},
|
|
1253
|
+
});
|
|
1254
|
+
registerGeneratedTool(registry, {
|
|
1255
|
+
name: "admin_resources_features_patch",
|
|
1256
|
+
cud: "update",
|
|
1257
|
+
description: "Patches a feature.",
|
|
1258
|
+
method: { id: "directory.resources.features.patch", httpMethod: "PATCH", path: "admin/directory/v1/customer/{customer}/resources/features/{featureKey}", baseUrl: "https://admin.googleapis.com/", requiredParams: ["customer", "featureKey"] },
|
|
1259
|
+
params: [{ "field": "customer", "api": "customer", "location": "path" }, { "field": "featureKey", "api": "featureKey", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
1260
|
+
hasBody: true,
|
|
1261
|
+
shape: {
|
|
1262
|
+
account: accountField(),
|
|
1263
|
+
customer: z.string().describe("The unique ID for the customer's Google Workspace account. As an account administrator, you can also use the `my_customer` alias to represent your account's customer ID."),
|
|
1264
|
+
featureKey: z.string().describe("The unique ID of the feature to update."),
|
|
1265
|
+
body: coerceJson(z.record(z.string(), z.unknown())).describe("Feature JSON request body. Top-level fields: etags, kind, name."),
|
|
1266
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
1267
|
+
},
|
|
1268
|
+
});
|
|
1269
|
+
registerGeneratedTool(registry, {
|
|
1270
|
+
name: "admin_resources_features_rename",
|
|
1271
|
+
cud: "create",
|
|
1272
|
+
description: "Renames a feature.",
|
|
1273
|
+
method: { id: "directory.resources.features.rename", httpMethod: "POST", path: "admin/directory/v1/customer/{customer}/resources/features/{oldName}/rename", baseUrl: "https://admin.googleapis.com/", requiredParams: ["customer", "oldName"] },
|
|
1274
|
+
params: [{ "field": "customer", "api": "customer", "location": "path" }, { "field": "oldName", "api": "oldName", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
1275
|
+
hasBody: true,
|
|
1276
|
+
shape: {
|
|
1277
|
+
account: accountField(),
|
|
1278
|
+
customer: z.string().describe("The unique ID for the customer's Google Workspace account. As an account administrator, you can also use the `my_customer` alias to represent your account's customer ID."),
|
|
1279
|
+
oldName: z.string().describe("The unique ID of the feature to rename."),
|
|
1280
|
+
body: coerceJson(z.record(z.string(), z.unknown())).describe("FeatureRename JSON request body. Top-level fields: newName."),
|
|
1281
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
1282
|
+
},
|
|
1283
|
+
});
|
|
1284
|
+
registerGeneratedTool(registry, {
|
|
1285
|
+
name: "admin_resources_features_update",
|
|
1286
|
+
cud: "update",
|
|
1287
|
+
description: "Updates a feature.",
|
|
1288
|
+
method: { id: "directory.resources.features.update", httpMethod: "PUT", path: "admin/directory/v1/customer/{customer}/resources/features/{featureKey}", baseUrl: "https://admin.googleapis.com/", requiredParams: ["customer", "featureKey"] },
|
|
1289
|
+
params: [{ "field": "customer", "api": "customer", "location": "path" }, { "field": "featureKey", "api": "featureKey", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
1290
|
+
hasBody: true,
|
|
1291
|
+
shape: {
|
|
1292
|
+
account: accountField(),
|
|
1293
|
+
customer: z.string().describe("The unique ID for the customer's Google Workspace account. As an account administrator, you can also use the `my_customer` alias to represent your account's customer ID."),
|
|
1294
|
+
featureKey: z.string().describe("The unique ID of the feature to update."),
|
|
1295
|
+
body: coerceJson(z.record(z.string(), z.unknown())).describe("Feature JSON request body. Top-level fields: etags, kind, name."),
|
|
1296
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
1297
|
+
},
|
|
1298
|
+
});
|
|
1299
|
+
registerGeneratedTool(registry, {
|
|
1300
|
+
name: "admin_role_assignments_delete",
|
|
1301
|
+
cud: "delete",
|
|
1302
|
+
description: "Deletes a role assignment.",
|
|
1303
|
+
method: { id: "directory.roleAssignments.delete", httpMethod: "DELETE", path: "admin/directory/v1/customer/{customer}/roleassignments/{roleAssignmentId}", baseUrl: "https://admin.googleapis.com/", requiredParams: ["customer", "roleAssignmentId"] },
|
|
1304
|
+
params: [{ "field": "customer", "api": "customer", "location": "path" }, { "field": "roleAssignmentId", "api": "roleAssignmentId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
1305
|
+
hasBody: false,
|
|
1306
|
+
shape: {
|
|
1307
|
+
account: accountField(),
|
|
1308
|
+
customer: z.string().describe("Immutable ID of the Google Workspace account."),
|
|
1309
|
+
roleAssignmentId: z.string().describe("Immutable ID of the role assignment."),
|
|
1310
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
1311
|
+
},
|
|
1312
|
+
});
|
|
1313
|
+
registerGeneratedTool(registry, {
|
|
1314
|
+
name: "admin_role_assignments_get",
|
|
1315
|
+
cud: "read",
|
|
1316
|
+
description: "Retrieves a role assignment.",
|
|
1317
|
+
method: { id: "directory.roleAssignments.get", httpMethod: "GET", path: "admin/directory/v1/customer/{customer}/roleassignments/{roleAssignmentId}", baseUrl: "https://admin.googleapis.com/", requiredParams: ["customer", "roleAssignmentId"] },
|
|
1318
|
+
params: [{ "field": "customer", "api": "customer", "location": "path" }, { "field": "roleAssignmentId", "api": "roleAssignmentId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
1319
|
+
hasBody: false,
|
|
1320
|
+
shape: {
|
|
1321
|
+
account: accountField(),
|
|
1322
|
+
customer: z.string().describe("The unique ID for the customer's Google Workspace account. In case of a multi-domain account, to fetch all groups for a customer, use this field instead of `domain`. You can also use the `my_customer`"),
|
|
1323
|
+
roleAssignmentId: z.string().describe("Immutable ID of the role assignment."),
|
|
1324
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
1325
|
+
},
|
|
1326
|
+
});
|
|
1327
|
+
registerGeneratedTool(registry, {
|
|
1328
|
+
name: "admin_role_assignments_insert",
|
|
1329
|
+
cud: "create",
|
|
1330
|
+
description: "Creates a role assignment.",
|
|
1331
|
+
method: { id: "directory.roleAssignments.insert", httpMethod: "POST", path: "admin/directory/v1/customer/{customer}/roleassignments", baseUrl: "https://admin.googleapis.com/", requiredParams: ["customer"] },
|
|
1332
|
+
params: [{ "field": "customer", "api": "customer", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
1333
|
+
hasBody: true,
|
|
1334
|
+
shape: {
|
|
1335
|
+
account: accountField(),
|
|
1336
|
+
customer: z.string().describe("Immutable ID of the Google Workspace account."),
|
|
1337
|
+
body: coerceJson(z.record(z.string(), z.unknown())).describe("RoleAssignment JSON request body. Top-level fields: assignedTo, assigneeType, condition, etag, kind, orgUnitId, roleAssignmentId, roleId, scopeType."),
|
|
1338
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
1339
|
+
},
|
|
1340
|
+
});
|
|
1341
|
+
registerGeneratedTool(registry, {
|
|
1342
|
+
name: "admin_role_assignments_list",
|
|
1343
|
+
cud: "read",
|
|
1344
|
+
description: "Retrieves a paginated list of all roleAssignments.",
|
|
1345
|
+
method: { id: "directory.roleAssignments.list", httpMethod: "GET", path: "admin/directory/v1/customer/{customer}/roleassignments", baseUrl: "https://admin.googleapis.com/", requiredParams: ["customer"] },
|
|
1346
|
+
params: [{ "field": "customer", "api": "customer", "location": "path" }, { "field": "includeIndirectRoleAssignments", "api": "includeIndirectRoleAssignments", "location": "query" }, { "field": "maxResults", "api": "maxResults", "location": "query" }, { "field": "pageToken", "api": "pageToken", "location": "query" }, { "field": "roleId", "api": "roleId", "location": "query" }, { "field": "userKey", "api": "userKey", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
1347
|
+
hasBody: false,
|
|
1348
|
+
shape: {
|
|
1349
|
+
account: accountField(),
|
|
1350
|
+
customer: z.string().describe("The unique ID for the customer's Google Workspace account. In case of a multi-domain account, to fetch all groups for a customer, use this field instead of `domain`. You can also use the `my_customer`"),
|
|
1351
|
+
includeIndirectRoleAssignments: coerceBoolean.describe("When set to `true`, fetches indirect role assignments (i.e. role assignment via a group) as well as direct ones. Defaults to `false`. You must specify `user_key` or the indirect role assignments will ").optional(),
|
|
1352
|
+
maxResults: z.number().describe("Maximum number of results to return.").optional(),
|
|
1353
|
+
pageToken: z.string().describe("Token to specify the next page in the list.").optional(),
|
|
1354
|
+
roleId: z.string().describe("Immutable ID of a role. If included in the request, returns only role assignments containing this role ID.").optional(),
|
|
1355
|
+
userKey: z.string().describe("The primary email address, alias email address, or unique user or group ID. If included in the request, returns role assignments only for this user or group.").optional(),
|
|
1356
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
1357
|
+
},
|
|
1358
|
+
});
|
|
1359
|
+
registerGeneratedTool(registry, {
|
|
1360
|
+
name: "admin_roles_delete",
|
|
1361
|
+
cud: "delete",
|
|
1362
|
+
description: "Deletes a role.",
|
|
1363
|
+
method: { id: "directory.roles.delete", httpMethod: "DELETE", path: "admin/directory/v1/customer/{customer}/roles/{roleId}", baseUrl: "https://admin.googleapis.com/", requiredParams: ["customer", "roleId"] },
|
|
1364
|
+
params: [{ "field": "customer", "api": "customer", "location": "path" }, { "field": "roleId", "api": "roleId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
1365
|
+
hasBody: false,
|
|
1366
|
+
shape: {
|
|
1367
|
+
account: accountField(),
|
|
1368
|
+
customer: z.string().describe("Immutable ID of the Google Workspace account."),
|
|
1369
|
+
roleId: z.string().describe("Immutable ID of the role."),
|
|
1370
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
1371
|
+
},
|
|
1372
|
+
});
|
|
1373
|
+
registerGeneratedTool(registry, {
|
|
1374
|
+
name: "admin_roles_get",
|
|
1375
|
+
cud: "read",
|
|
1376
|
+
description: "Retrieves a role.",
|
|
1377
|
+
method: { id: "directory.roles.get", httpMethod: "GET", path: "admin/directory/v1/customer/{customer}/roles/{roleId}", baseUrl: "https://admin.googleapis.com/", requiredParams: ["customer", "roleId"] },
|
|
1378
|
+
params: [{ "field": "customer", "api": "customer", "location": "path" }, { "field": "roleId", "api": "roleId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
1379
|
+
hasBody: false,
|
|
1380
|
+
shape: {
|
|
1381
|
+
account: accountField(),
|
|
1382
|
+
customer: z.string().describe("The unique ID for the customer's Google Workspace account. In case of a multi-domain account, to fetch all groups for a customer, use this field instead of `domain`. You can also use the `my_customer`"),
|
|
1383
|
+
roleId: z.string().describe("Immutable ID of the role."),
|
|
1384
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
1385
|
+
},
|
|
1386
|
+
});
|
|
1387
|
+
registerGeneratedTool(registry, {
|
|
1388
|
+
name: "admin_roles_insert",
|
|
1389
|
+
cud: "create",
|
|
1390
|
+
description: "Creates a role.",
|
|
1391
|
+
method: { id: "directory.roles.insert", httpMethod: "POST", path: "admin/directory/v1/customer/{customer}/roles", baseUrl: "https://admin.googleapis.com/", requiredParams: ["customer"] },
|
|
1392
|
+
params: [{ "field": "customer", "api": "customer", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
1393
|
+
hasBody: true,
|
|
1394
|
+
shape: {
|
|
1395
|
+
account: accountField(),
|
|
1396
|
+
customer: z.string().describe("Immutable ID of the Google Workspace account."),
|
|
1397
|
+
body: coerceJson(z.record(z.string(), z.unknown())).describe("Role JSON request body. Top-level fields: etag, isSuperAdminRole, isSystemRole, kind, roleDescription, roleId, roleName, rolePrivileges."),
|
|
1398
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
1399
|
+
},
|
|
1400
|
+
});
|
|
1401
|
+
registerGeneratedTool(registry, {
|
|
1402
|
+
name: "admin_roles_list",
|
|
1403
|
+
cud: "read",
|
|
1404
|
+
description: "Retrieves a paginated list of all the roles in a domain.",
|
|
1405
|
+
method: { id: "directory.roles.list", httpMethod: "GET", path: "admin/directory/v1/customer/{customer}/roles", baseUrl: "https://admin.googleapis.com/", requiredParams: ["customer"] },
|
|
1406
|
+
params: [{ "field": "customer", "api": "customer", "location": "path" }, { "field": "maxResults", "api": "maxResults", "location": "query" }, { "field": "pageToken", "api": "pageToken", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
1407
|
+
hasBody: false,
|
|
1408
|
+
shape: {
|
|
1409
|
+
account: accountField(),
|
|
1410
|
+
customer: z.string().describe("The unique ID for the customer's Google Workspace account. In case of a multi-domain account, to fetch all groups for a customer, use this field instead of `domain`. You can also use the `my_customer`"),
|
|
1411
|
+
maxResults: z.number().describe("Maximum number of results to return.").optional(),
|
|
1412
|
+
pageToken: z.string().describe("Token to specify the next page in the list.").optional(),
|
|
1413
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
1414
|
+
},
|
|
1415
|
+
});
|
|
1416
|
+
registerGeneratedTool(registry, {
|
|
1417
|
+
name: "admin_roles_patch",
|
|
1418
|
+
cud: "update",
|
|
1419
|
+
description: "Patches a role.",
|
|
1420
|
+
method: { id: "directory.roles.patch", httpMethod: "PATCH", path: "admin/directory/v1/customer/{customer}/roles/{roleId}", baseUrl: "https://admin.googleapis.com/", requiredParams: ["customer", "roleId"] },
|
|
1421
|
+
params: [{ "field": "customer", "api": "customer", "location": "path" }, { "field": "roleId", "api": "roleId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
1422
|
+
hasBody: true,
|
|
1423
|
+
shape: {
|
|
1424
|
+
account: accountField(),
|
|
1425
|
+
customer: z.string().describe("Immutable ID of the Google Workspace account."),
|
|
1426
|
+
roleId: z.string().describe("Immutable ID of the role."),
|
|
1427
|
+
body: coerceJson(z.record(z.string(), z.unknown())).describe("Role JSON request body. Top-level fields: etag, isSuperAdminRole, isSystemRole, kind, roleDescription, roleId, roleName, rolePrivileges."),
|
|
1428
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
1429
|
+
},
|
|
1430
|
+
});
|
|
1431
|
+
registerGeneratedTool(registry, {
|
|
1432
|
+
name: "admin_roles_update",
|
|
1433
|
+
cud: "update",
|
|
1434
|
+
description: "Updates a role.",
|
|
1435
|
+
method: { id: "directory.roles.update", httpMethod: "PUT", path: "admin/directory/v1/customer/{customer}/roles/{roleId}", baseUrl: "https://admin.googleapis.com/", requiredParams: ["customer", "roleId"] },
|
|
1436
|
+
params: [{ "field": "customer", "api": "customer", "location": "path" }, { "field": "roleId", "api": "roleId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
1437
|
+
hasBody: true,
|
|
1438
|
+
shape: {
|
|
1439
|
+
account: accountField(),
|
|
1440
|
+
customer: z.string().describe("Immutable ID of the Google Workspace account."),
|
|
1441
|
+
roleId: z.string().describe("Immutable ID of the role."),
|
|
1442
|
+
body: coerceJson(z.record(z.string(), z.unknown())).describe("Role JSON request body. Top-level fields: etag, isSuperAdminRole, isSystemRole, kind, roleDescription, roleId, roleName, rolePrivileges."),
|
|
1443
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
1444
|
+
},
|
|
1445
|
+
});
|
|
1446
|
+
registerGeneratedTool(registry, {
|
|
1447
|
+
name: "admin_schemas_delete",
|
|
1448
|
+
cud: "delete",
|
|
1449
|
+
description: "Deletes a schema.",
|
|
1450
|
+
method: { id: "directory.schemas.delete", httpMethod: "DELETE", path: "admin/directory/v1/customer/{customerId}/schemas/{schemaKey}", baseUrl: "https://admin.googleapis.com/", requiredParams: ["customerId", "schemaKey"] },
|
|
1451
|
+
params: [{ "field": "customerId", "api": "customerId", "location": "path" }, { "field": "schemaKey", "api": "schemaKey", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
1452
|
+
hasBody: false,
|
|
1453
|
+
shape: {
|
|
1454
|
+
account: accountField(),
|
|
1455
|
+
customerId: z.string().describe("Immutable ID of the Google Workspace account."),
|
|
1456
|
+
schemaKey: z.string().describe("Name or immutable ID of the schema."),
|
|
1457
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
1458
|
+
},
|
|
1459
|
+
});
|
|
1460
|
+
registerGeneratedTool(registry, {
|
|
1461
|
+
name: "admin_schemas_get",
|
|
1462
|
+
cud: "read",
|
|
1463
|
+
description: "Retrieves a schema.",
|
|
1464
|
+
method: { id: "directory.schemas.get", httpMethod: "GET", path: "admin/directory/v1/customer/{customerId}/schemas/{schemaKey}", baseUrl: "https://admin.googleapis.com/", requiredParams: ["customerId", "schemaKey"] },
|
|
1465
|
+
params: [{ "field": "customerId", "api": "customerId", "location": "path" }, { "field": "schemaKey", "api": "schemaKey", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
1466
|
+
hasBody: false,
|
|
1467
|
+
shape: {
|
|
1468
|
+
account: accountField(),
|
|
1469
|
+
customerId: z.string().describe("The unique ID for the customer's Google Workspace account. In case of a multi-domain account, to fetch all groups for a customer, use this field instead of `domain`. You can also use the `my_customer`"),
|
|
1470
|
+
schemaKey: z.string().describe("Name or immutable ID of the schema."),
|
|
1471
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
1472
|
+
},
|
|
1473
|
+
});
|
|
1474
|
+
registerGeneratedTool(registry, {
|
|
1475
|
+
name: "admin_schemas_insert",
|
|
1476
|
+
cud: "create",
|
|
1477
|
+
description: "Creates a schema.",
|
|
1478
|
+
method: { id: "directory.schemas.insert", httpMethod: "POST", path: "admin/directory/v1/customer/{customerId}/schemas", baseUrl: "https://admin.googleapis.com/", requiredParams: ["customerId"] },
|
|
1479
|
+
params: [{ "field": "customerId", "api": "customerId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
1480
|
+
hasBody: true,
|
|
1481
|
+
shape: {
|
|
1482
|
+
account: accountField(),
|
|
1483
|
+
customerId: z.string().describe("Immutable ID of the Google Workspace account."),
|
|
1484
|
+
body: coerceJson(z.record(z.string(), z.unknown())).describe("Schema JSON request body. Top-level fields: displayName, etag, fields, kind, schemaId, schemaName."),
|
|
1485
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
1486
|
+
},
|
|
1487
|
+
});
|
|
1488
|
+
registerGeneratedTool(registry, {
|
|
1489
|
+
name: "admin_schemas_list",
|
|
1490
|
+
cud: "read",
|
|
1491
|
+
description: "Retrieves all schemas for a customer.",
|
|
1492
|
+
method: { id: "directory.schemas.list", httpMethod: "GET", path: "admin/directory/v1/customer/{customerId}/schemas", baseUrl: "https://admin.googleapis.com/", requiredParams: ["customerId"] },
|
|
1493
|
+
params: [{ "field": "customerId", "api": "customerId", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
1494
|
+
hasBody: false,
|
|
1495
|
+
shape: {
|
|
1496
|
+
account: accountField(),
|
|
1497
|
+
customerId: z.string().describe("The unique ID for the customer's Google Workspace account. In case of a multi-domain account, to fetch all groups for a customer, use this field instead of `domain`. You can also use the `my_customer`"),
|
|
1498
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
1499
|
+
},
|
|
1500
|
+
});
|
|
1501
|
+
registerGeneratedTool(registry, {
|
|
1502
|
+
name: "admin_schemas_patch",
|
|
1503
|
+
cud: "update",
|
|
1504
|
+
description: "Patches a schema.",
|
|
1505
|
+
method: { id: "directory.schemas.patch", httpMethod: "PATCH", path: "admin/directory/v1/customer/{customerId}/schemas/{schemaKey}", baseUrl: "https://admin.googleapis.com/", requiredParams: ["customerId", "schemaKey"] },
|
|
1506
|
+
params: [{ "field": "customerId", "api": "customerId", "location": "path" }, { "field": "schemaKey", "api": "schemaKey", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
1507
|
+
hasBody: true,
|
|
1508
|
+
shape: {
|
|
1509
|
+
account: accountField(),
|
|
1510
|
+
customerId: z.string().describe("Immutable ID of the Google Workspace account."),
|
|
1511
|
+
schemaKey: z.string().describe("Name or immutable ID of the schema."),
|
|
1512
|
+
body: coerceJson(z.record(z.string(), z.unknown())).describe("Schema JSON request body. Top-level fields: displayName, etag, fields, kind, schemaId, schemaName."),
|
|
1513
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
1514
|
+
},
|
|
1515
|
+
});
|
|
1516
|
+
registerGeneratedTool(registry, {
|
|
1517
|
+
name: "admin_schemas_update",
|
|
1518
|
+
cud: "update",
|
|
1519
|
+
description: "Updates a schema.",
|
|
1520
|
+
method: { id: "directory.schemas.update", httpMethod: "PUT", path: "admin/directory/v1/customer/{customerId}/schemas/{schemaKey}", baseUrl: "https://admin.googleapis.com/", requiredParams: ["customerId", "schemaKey"] },
|
|
1521
|
+
params: [{ "field": "customerId", "api": "customerId", "location": "path" }, { "field": "schemaKey", "api": "schemaKey", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
1522
|
+
hasBody: true,
|
|
1523
|
+
shape: {
|
|
1524
|
+
account: accountField(),
|
|
1525
|
+
customerId: z.string().describe("Immutable ID of the Google Workspace account."),
|
|
1526
|
+
schemaKey: z.string().describe("Name or immutable ID of the schema."),
|
|
1527
|
+
body: coerceJson(z.record(z.string(), z.unknown())).describe("Schema JSON request body. Top-level fields: displayName, etag, fields, kind, schemaId, schemaName."),
|
|
1528
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
1529
|
+
},
|
|
1530
|
+
});
|
|
1531
|
+
registerGeneratedTool(registry, {
|
|
1532
|
+
name: "admin_tokens_delete",
|
|
1533
|
+
cud: "delete",
|
|
1534
|
+
description: "Deletes all access tokens issued by a user for an application.",
|
|
1535
|
+
method: { id: "directory.tokens.delete", httpMethod: "DELETE", path: "admin/directory/v1/users/{userKey}/tokens/{clientId}", baseUrl: "https://admin.googleapis.com/", requiredParams: ["userKey", "clientId"] },
|
|
1536
|
+
params: [{ "field": "clientId", "api": "clientId", "location": "path" }, { "field": "userKey", "api": "userKey", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
1537
|
+
hasBody: false,
|
|
1538
|
+
shape: {
|
|
1539
|
+
account: accountField(),
|
|
1540
|
+
clientId: z.string().describe("The Client ID of the application the token is issued to."),
|
|
1541
|
+
userKey: z.string().describe("Identifies the user in the API request. The value can be the user's primary email address, alias email address, or unique user ID."),
|
|
1542
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
1543
|
+
},
|
|
1544
|
+
});
|
|
1545
|
+
registerGeneratedTool(registry, {
|
|
1546
|
+
name: "admin_tokens_get",
|
|
1547
|
+
cud: "read",
|
|
1548
|
+
description: "Gets information about an access token issued by a user.",
|
|
1549
|
+
method: { id: "directory.tokens.get", httpMethod: "GET", path: "admin/directory/v1/users/{userKey}/tokens/{clientId}", baseUrl: "https://admin.googleapis.com/", requiredParams: ["userKey", "clientId"] },
|
|
1550
|
+
params: [{ "field": "clientId", "api": "clientId", "location": "path" }, { "field": "userKey", "api": "userKey", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
1551
|
+
hasBody: false,
|
|
1552
|
+
shape: {
|
|
1553
|
+
account: accountField(),
|
|
1554
|
+
clientId: z.string().describe("The Client ID of the application the token is issued to."),
|
|
1555
|
+
userKey: z.string().describe("Identifies the user in the API request. The value can be the user's primary email address, alias email address, or unique user ID."),
|
|
1556
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
1557
|
+
},
|
|
1558
|
+
});
|
|
1559
|
+
registerGeneratedTool(registry, {
|
|
1560
|
+
name: "admin_tokens_list",
|
|
1561
|
+
cud: "read",
|
|
1562
|
+
description: "Returns the set of tokens specified user has issued to 3rd party applications.",
|
|
1563
|
+
method: { id: "directory.tokens.list", httpMethod: "GET", path: "admin/directory/v1/users/{userKey}/tokens", baseUrl: "https://admin.googleapis.com/", requiredParams: ["userKey"] },
|
|
1564
|
+
params: [{ "field": "userKey", "api": "userKey", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
1565
|
+
hasBody: false,
|
|
1566
|
+
shape: {
|
|
1567
|
+
account: accountField(),
|
|
1568
|
+
userKey: z.string().describe("Identifies the user in the API request. The value can be the user's primary email address, alias email address, or unique user ID."),
|
|
1569
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
1570
|
+
},
|
|
1571
|
+
});
|
|
1572
|
+
registerGeneratedTool(registry, {
|
|
1573
|
+
name: "admin_two_step_verification_turn_off",
|
|
1574
|
+
cud: "create",
|
|
1575
|
+
description: "Turns off 2-Step Verification for user.",
|
|
1576
|
+
method: { id: "directory.twoStepVerification.turnOff", httpMethod: "POST", path: "admin/directory/v1/users/{userKey}/twoStepVerification/turnOff", baseUrl: "https://admin.googleapis.com/", requiredParams: ["userKey"] },
|
|
1577
|
+
params: [{ "field": "userKey", "api": "userKey", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
1578
|
+
hasBody: false,
|
|
1579
|
+
shape: {
|
|
1580
|
+
account: accountField(),
|
|
1581
|
+
userKey: z.string().describe("Identifies the user in the API request. The value can be the user's primary email address, alias email address, or unique user ID."),
|
|
1582
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
1583
|
+
},
|
|
1584
|
+
});
|
|
1585
|
+
registerGeneratedTool(registry, {
|
|
1586
|
+
name: "admin_users_aliases_delete",
|
|
1587
|
+
cud: "delete",
|
|
1588
|
+
description: "Removes an alias.",
|
|
1589
|
+
method: { id: "directory.users.aliases.delete", httpMethod: "DELETE", path: "admin/directory/v1/users/{userKey}/aliases/{alias}", baseUrl: "https://admin.googleapis.com/", requiredParams: ["userKey", "alias"] },
|
|
1590
|
+
params: [{ "field": "alias", "api": "alias", "location": "path" }, { "field": "userKey", "api": "userKey", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
1591
|
+
hasBody: false,
|
|
1592
|
+
shape: {
|
|
1593
|
+
account: accountField(),
|
|
1594
|
+
alias: z.string().describe("The alias to be removed."),
|
|
1595
|
+
userKey: z.string().describe("Identifies the user in the API request. The value can be the user's primary email address, alias email address, or unique user ID."),
|
|
1596
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
1597
|
+
},
|
|
1598
|
+
});
|
|
1599
|
+
registerGeneratedTool(registry, {
|
|
1600
|
+
name: "admin_users_aliases_insert",
|
|
1601
|
+
cud: "create",
|
|
1602
|
+
description: "Adds an alias.",
|
|
1603
|
+
method: { id: "directory.users.aliases.insert", httpMethod: "POST", path: "admin/directory/v1/users/{userKey}/aliases", baseUrl: "https://admin.googleapis.com/", requiredParams: ["userKey"] },
|
|
1604
|
+
params: [{ "field": "userKey", "api": "userKey", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
1605
|
+
hasBody: true,
|
|
1606
|
+
shape: {
|
|
1607
|
+
account: accountField(),
|
|
1608
|
+
userKey: z.string().describe("Identifies the user in the API request. The value can be the user's primary email address, alias email address, or unique user ID."),
|
|
1609
|
+
body: coerceJson(z.record(z.string(), z.unknown())).describe("Alias JSON request body. Top-level fields: alias, etag, id, kind, primaryEmail."),
|
|
1610
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
1611
|
+
},
|
|
1612
|
+
});
|
|
1613
|
+
registerGeneratedTool(registry, {
|
|
1614
|
+
name: "admin_users_aliases_list",
|
|
1615
|
+
cud: "read",
|
|
1616
|
+
description: "Lists all aliases for a user.",
|
|
1617
|
+
method: { id: "directory.users.aliases.list", httpMethod: "GET", path: "admin/directory/v1/users/{userKey}/aliases", baseUrl: "https://admin.googleapis.com/", requiredParams: ["userKey"] },
|
|
1618
|
+
params: [{ "field": "userKey", "api": "userKey", "location": "path" }, { "field": "event", "api": "event", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
1619
|
+
hasBody: false,
|
|
1620
|
+
shape: {
|
|
1621
|
+
account: accountField(),
|
|
1622
|
+
userKey: z.string().describe("Identifies the user in the API request. The value can be the user's primary email address, alias email address, or unique user ID."),
|
|
1623
|
+
event: z.enum(["add", "delete"]).describe("Events to watch for.").optional(),
|
|
1624
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
1625
|
+
},
|
|
1626
|
+
});
|
|
1627
|
+
registerGeneratedTool(registry, {
|
|
1628
|
+
name: "admin_users_aliases_watch",
|
|
1629
|
+
cud: "create",
|
|
1630
|
+
description: "Watches for changes in users list.",
|
|
1631
|
+
method: { id: "directory.users.aliases.watch", httpMethod: "POST", path: "admin/directory/v1/users/{userKey}/aliases/watch", baseUrl: "https://admin.googleapis.com/", requiredParams: ["userKey"] },
|
|
1632
|
+
params: [{ "field": "userKey", "api": "userKey", "location": "path" }, { "field": "event", "api": "event", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
1633
|
+
hasBody: true,
|
|
1634
|
+
shape: {
|
|
1635
|
+
account: accountField(),
|
|
1636
|
+
userKey: z.string().describe("Email or immutable ID of the user"),
|
|
1637
|
+
event: z.enum(["add", "delete"]).describe("Events to watch for.").optional(),
|
|
1638
|
+
body: coerceJson(z.record(z.string(), z.unknown())).describe("Channel JSON request body. Top-level fields: address, expiration, id, kind, params, payload, resourceId, resourceUri, token, type."),
|
|
1639
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
1640
|
+
},
|
|
1641
|
+
});
|
|
1642
|
+
registerGeneratedTool(registry, {
|
|
1643
|
+
name: "admin_users_create_guest",
|
|
1644
|
+
cud: "create",
|
|
1645
|
+
description: "Create a guest user with access to a [subset of Workspace capabilities](https://support.google.com/a/answer/16558545). This feature is currently in Open Beta.",
|
|
1646
|
+
method: { id: "directory.users.createGuest", httpMethod: "POST", path: "admin/directory/v1/users:createGuest", baseUrl: "https://admin.googleapis.com/", requiredParams: [] },
|
|
1647
|
+
params: [{ "field": "fields", "api": "fields", "location": "query" }],
|
|
1648
|
+
hasBody: true,
|
|
1649
|
+
shape: {
|
|
1650
|
+
account: accountField(),
|
|
1651
|
+
body: coerceJson(z.record(z.string(), z.unknown())).describe("DirectoryUsersCreateGuestRequest JSON request body. Top-level fields: customer, primaryGuestEmail."),
|
|
1652
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
1653
|
+
},
|
|
1654
|
+
});
|
|
1655
|
+
registerGeneratedTool(registry, {
|
|
1656
|
+
name: "admin_users_delete",
|
|
1657
|
+
cud: "delete",
|
|
1658
|
+
description: "Deletes a user.",
|
|
1659
|
+
method: { id: "directory.users.delete", httpMethod: "DELETE", path: "admin/directory/v1/users/{userKey}", baseUrl: "https://admin.googleapis.com/", requiredParams: ["userKey"] },
|
|
1660
|
+
params: [{ "field": "userKey", "api": "userKey", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
1661
|
+
hasBody: false,
|
|
1662
|
+
shape: {
|
|
1663
|
+
account: accountField(),
|
|
1664
|
+
userKey: z.string().describe("Identifies the user in the API request. The value can be the user's primary email address, alias email address, or unique user ID."),
|
|
1665
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
1666
|
+
},
|
|
1667
|
+
});
|
|
1668
|
+
registerGeneratedTool(registry, {
|
|
1669
|
+
name: "admin_users_insert",
|
|
1670
|
+
cud: "create",
|
|
1671
|
+
description: "Creates a user. Mutate calls immediately following user creation might sometimes fail as the user isn't fully created due to propagation delay in our backends.",
|
|
1672
|
+
method: { id: "directory.users.insert", httpMethod: "POST", path: "admin/directory/v1/users", baseUrl: "https://admin.googleapis.com/", requiredParams: [] },
|
|
1673
|
+
params: [{ "field": "resolveConflictAccount", "api": "resolveConflictAccount", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
1674
|
+
hasBody: true,
|
|
1675
|
+
shape: {
|
|
1676
|
+
account: accountField(),
|
|
1677
|
+
resolveConflictAccount: coerceBoolean.describe("Optional. If set to `true`, the option selected for [handling unmanaged user accounts](https://support.google.com/a/answer/11112794) will apply. Default: `false`").optional(),
|
|
1678
|
+
body: coerceJson(z.record(z.string(), z.unknown())).describe("User JSON request body. Top-level fields: addresses, agreedToTerms, aliases, archivalTime, archived, changePasswordAtNextLogin, creationTime, customSchemas, customerId, deletionTime, emails, etag, +38 more."),
|
|
1679
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
1680
|
+
},
|
|
1681
|
+
});
|
|
1682
|
+
registerGeneratedTool(registry, {
|
|
1683
|
+
name: "admin_users_make_admin",
|
|
1684
|
+
cud: "create",
|
|
1685
|
+
description: "Makes a user a super administrator.",
|
|
1686
|
+
method: { id: "directory.users.makeAdmin", httpMethod: "POST", path: "admin/directory/v1/users/{userKey}/makeAdmin", baseUrl: "https://admin.googleapis.com/", requiredParams: ["userKey"] },
|
|
1687
|
+
params: [{ "field": "userKey", "api": "userKey", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
1688
|
+
hasBody: true,
|
|
1689
|
+
shape: {
|
|
1690
|
+
account: accountField(),
|
|
1691
|
+
userKey: z.string().describe("Identifies the user in the API request. The value can be the user's primary email address, alias email address, or unique user ID."),
|
|
1692
|
+
body: coerceJson(z.record(z.string(), z.unknown())).describe("UserMakeAdmin JSON request body. Top-level fields: status."),
|
|
1693
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
1694
|
+
},
|
|
1695
|
+
});
|
|
1696
|
+
registerGeneratedTool(registry, {
|
|
1697
|
+
name: "admin_users_photos_delete",
|
|
1698
|
+
cud: "delete",
|
|
1699
|
+
description: "Removes the user's photo.",
|
|
1700
|
+
method: { id: "directory.users.photos.delete", httpMethod: "DELETE", path: "admin/directory/v1/users/{userKey}/photos/thumbnail", baseUrl: "https://admin.googleapis.com/", requiredParams: ["userKey"] },
|
|
1701
|
+
params: [{ "field": "userKey", "api": "userKey", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
1702
|
+
hasBody: false,
|
|
1703
|
+
shape: {
|
|
1704
|
+
account: accountField(),
|
|
1705
|
+
userKey: z.string().describe("Identifies the user in the API request. The value can be the user's primary email address, alias email address, or unique user ID."),
|
|
1706
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
1707
|
+
},
|
|
1708
|
+
});
|
|
1709
|
+
registerGeneratedTool(registry, {
|
|
1710
|
+
name: "admin_users_photos_get",
|
|
1711
|
+
cud: "read",
|
|
1712
|
+
description: "Retrieves the user's photo.",
|
|
1713
|
+
method: { id: "directory.users.photos.get", httpMethod: "GET", path: "admin/directory/v1/users/{userKey}/photos/thumbnail", baseUrl: "https://admin.googleapis.com/", requiredParams: ["userKey"] },
|
|
1714
|
+
params: [{ "field": "userKey", "api": "userKey", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
1715
|
+
hasBody: false,
|
|
1716
|
+
shape: {
|
|
1717
|
+
account: accountField(),
|
|
1718
|
+
userKey: z.string().describe("Identifies the user in the API request. The value can be the user's primary email address, alias email address, or unique user ID."),
|
|
1719
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
1720
|
+
},
|
|
1721
|
+
});
|
|
1722
|
+
registerGeneratedTool(registry, {
|
|
1723
|
+
name: "admin_users_photos_patch",
|
|
1724
|
+
cud: "update",
|
|
1725
|
+
description: "Adds a photo for the user. This method supports [patch semantics](https://developers.google.com/workspace/admin/directory/v1/guides/performance#patch).",
|
|
1726
|
+
method: { id: "directory.users.photos.patch", httpMethod: "PATCH", path: "admin/directory/v1/users/{userKey}/photos/thumbnail", baseUrl: "https://admin.googleapis.com/", requiredParams: ["userKey"] },
|
|
1727
|
+
params: [{ "field": "userKey", "api": "userKey", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
1728
|
+
hasBody: true,
|
|
1729
|
+
shape: {
|
|
1730
|
+
account: accountField(),
|
|
1731
|
+
userKey: z.string().describe("Identifies the user in the API request. The value can be the user's primary email address, alias email address, or unique user ID."),
|
|
1732
|
+
body: coerceJson(z.record(z.string(), z.unknown())).describe("UserPhoto JSON request body. Top-level fields: etag, height, id, kind, mimeType, photoData, primaryEmail, width."),
|
|
1733
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
1734
|
+
},
|
|
1735
|
+
});
|
|
1736
|
+
registerGeneratedTool(registry, {
|
|
1737
|
+
name: "admin_users_photos_update",
|
|
1738
|
+
cud: "update",
|
|
1739
|
+
description: "Adds a photo for the user.",
|
|
1740
|
+
method: { id: "directory.users.photos.update", httpMethod: "PUT", path: "admin/directory/v1/users/{userKey}/photos/thumbnail", baseUrl: "https://admin.googleapis.com/", requiredParams: ["userKey"] },
|
|
1741
|
+
params: [{ "field": "userKey", "api": "userKey", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
1742
|
+
hasBody: true,
|
|
1743
|
+
shape: {
|
|
1744
|
+
account: accountField(),
|
|
1745
|
+
userKey: z.string().describe("Identifies the user in the API request. The value can be the user's primary email address, alias email address, or unique user ID."),
|
|
1746
|
+
body: coerceJson(z.record(z.string(), z.unknown())).describe("UserPhoto JSON request body. Top-level fields: etag, height, id, kind, mimeType, photoData, primaryEmail, width."),
|
|
1747
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
1748
|
+
},
|
|
1749
|
+
});
|
|
1750
|
+
registerGeneratedTool(registry, {
|
|
1751
|
+
name: "admin_users_sign_out",
|
|
1752
|
+
cud: "create",
|
|
1753
|
+
description: "Signs a user out of all web and device sessions and reset their sign-in cookies. User will have to sign in by authenticating again.",
|
|
1754
|
+
method: { id: "directory.users.signOut", httpMethod: "POST", path: "admin/directory/v1/users/{userKey}/signOut", baseUrl: "https://admin.googleapis.com/", requiredParams: ["userKey"] },
|
|
1755
|
+
params: [{ "field": "userKey", "api": "userKey", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
1756
|
+
hasBody: false,
|
|
1757
|
+
shape: {
|
|
1758
|
+
account: accountField(),
|
|
1759
|
+
userKey: z.string().describe("Identifies the target user in the API request. The value can be the user's primary email address, alias email address, or unique user ID."),
|
|
1760
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
1761
|
+
},
|
|
1762
|
+
});
|
|
1763
|
+
registerGeneratedTool(registry, {
|
|
1764
|
+
name: "admin_users_undelete",
|
|
1765
|
+
cud: "update",
|
|
1766
|
+
description: "Undeletes a deleted user.",
|
|
1767
|
+
method: { id: "directory.users.undelete", httpMethod: "POST", path: "admin/directory/v1/users/{userKey}/undelete", baseUrl: "https://admin.googleapis.com/", requiredParams: ["userKey"] },
|
|
1768
|
+
params: [{ "field": "userKey", "api": "userKey", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
1769
|
+
hasBody: true,
|
|
1770
|
+
shape: {
|
|
1771
|
+
account: accountField(),
|
|
1772
|
+
userKey: z.string().describe("The immutable id of the user"),
|
|
1773
|
+
body: coerceJson(z.record(z.string(), z.unknown())).describe("UserUndelete JSON request body. Top-level fields: orgUnitPath."),
|
|
1774
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
1775
|
+
},
|
|
1776
|
+
});
|
|
1777
|
+
registerGeneratedTool(registry, {
|
|
1778
|
+
name: "admin_users_update",
|
|
1779
|
+
cud: "update",
|
|
1780
|
+
description: "Updates a user. This method supports patch semantics, meaning that you only need to include the fields you wish to update. Fields that are not present in the re",
|
|
1781
|
+
method: { id: "directory.users.update", httpMethod: "PUT", path: "admin/directory/v1/users/{userKey}", baseUrl: "https://admin.googleapis.com/", requiredParams: ["userKey"] },
|
|
1782
|
+
params: [{ "field": "userKey", "api": "userKey", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
1783
|
+
hasBody: true,
|
|
1784
|
+
shape: {
|
|
1785
|
+
account: accountField(),
|
|
1786
|
+
userKey: z.string().describe("Identifies the user in the API request. The value can be the user's primary email address, alias email address, or unique user ID."),
|
|
1787
|
+
body: coerceJson(z.record(z.string(), z.unknown())).describe("User JSON request body. Top-level fields: addresses, agreedToTerms, aliases, archivalTime, archived, changePasswordAtNextLogin, creationTime, customSchemas, customerId, deletionTime, emails, etag, +38 more."),
|
|
1788
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
1789
|
+
},
|
|
1790
|
+
});
|
|
1791
|
+
registerGeneratedTool(registry, {
|
|
1792
|
+
name: "admin_users_watch",
|
|
1793
|
+
cud: "create",
|
|
1794
|
+
description: "Watches for changes in users list.",
|
|
1795
|
+
method: { id: "directory.users.watch", httpMethod: "POST", path: "admin/directory/v1/users/watch", baseUrl: "https://admin.googleapis.com/", requiredParams: [] },
|
|
1796
|
+
params: [{ "field": "customer", "api": "customer", "location": "query" }, { "field": "customFieldMask", "api": "customFieldMask", "location": "query" }, { "field": "domain", "api": "domain", "location": "query" }, { "field": "event", "api": "event", "location": "query" }, { "field": "maxResults", "api": "maxResults", "location": "query" }, { "field": "orderBy", "api": "orderBy", "location": "query" }, { "field": "pageToken", "api": "pageToken", "location": "query" }, { "field": "projection", "api": "projection", "location": "query" }, { "field": "query", "api": "query", "location": "query" }, { "field": "showDeleted", "api": "showDeleted", "location": "query" }, { "field": "sortOrder", "api": "sortOrder", "location": "query" }, { "field": "viewType", "api": "viewType", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
1797
|
+
hasBody: true,
|
|
1798
|
+
shape: {
|
|
1799
|
+
account: accountField(),
|
|
1800
|
+
customer: z.string().describe("Immutable ID of the Google Workspace account. In case of multi-domain, to fetch all users for a customer, fill this field instead of domain.").optional(),
|
|
1801
|
+
customFieldMask: z.string().describe("Comma-separated list of schema names. All fields from these schemas are fetched. This should only be set when projection=custom.").optional(),
|
|
1802
|
+
domain: z.string().describe("Name of the domain. Fill this field to get users from only this domain. To return all users in a multi-domain fill customer field instead.\"").optional(),
|
|
1803
|
+
event: z.enum(["add", "delete", "makeAdmin", "undelete", "update"]).describe("Events to watch for.").optional(),
|
|
1804
|
+
maxResults: z.number().describe("Maximum number of results to return.").optional(),
|
|
1805
|
+
orderBy: z.enum(["email", "familyName", "givenName"]).describe("Column to use for sorting results").optional(),
|
|
1806
|
+
pageToken: z.string().describe("Token to specify next page in the list").optional(),
|
|
1807
|
+
projection: z.enum(["basic", "custom", "full"]).describe("What subset of fields to fetch for this user.").optional(),
|
|
1808
|
+
query: z.string().describe("Query string search. Contains one or more search clauses, each with a field, operator, and value. For complete documentation, go to [Search for users](https://developers.google.com/workspace/admin/dir").optional(),
|
|
1809
|
+
showDeleted: z.string().describe("If set to true, retrieves the list of deleted users. (Default: false)").optional(),
|
|
1810
|
+
sortOrder: z.enum(["ASCENDING", "DESCENDING"]).describe("Whether to return results in ascending or descending order.").optional(),
|
|
1811
|
+
viewType: z.enum(["admin_view", "domain_public"]).describe("Whether to fetch the administrator-only or domain-wide public view of the user. For more information, see [Retrieve a user as a non-administrator](https://developers.google.com/workspace/admin/directo").optional(),
|
|
1812
|
+
body: coerceJson(z.record(z.string(), z.unknown())).describe("Channel JSON request body. Top-level fields: address, expiration, id, kind, params, payload, resourceId, resourceUri, token, type."),
|
|
1813
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
1814
|
+
},
|
|
1815
|
+
});
|
|
1816
|
+
registerGeneratedTool(registry, {
|
|
1817
|
+
name: "admin_verification_codes_generate",
|
|
1818
|
+
cud: "create",
|
|
1819
|
+
description: "Generates new backup verification codes for the user.",
|
|
1820
|
+
method: { id: "directory.verificationCodes.generate", httpMethod: "POST", path: "admin/directory/v1/users/{userKey}/verificationCodes/generate", baseUrl: "https://admin.googleapis.com/", requiredParams: ["userKey"] },
|
|
1821
|
+
params: [{ "field": "userKey", "api": "userKey", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
1822
|
+
hasBody: false,
|
|
1823
|
+
shape: {
|
|
1824
|
+
account: accountField(),
|
|
1825
|
+
userKey: z.string().describe("Email or immutable ID of the user"),
|
|
1826
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
1827
|
+
},
|
|
1828
|
+
});
|
|
1829
|
+
registerGeneratedTool(registry, {
|
|
1830
|
+
name: "admin_verification_codes_invalidate",
|
|
1831
|
+
cud: "create",
|
|
1832
|
+
description: "Invalidates the current backup verification codes for the user.",
|
|
1833
|
+
method: { id: "directory.verificationCodes.invalidate", httpMethod: "POST", path: "admin/directory/v1/users/{userKey}/verificationCodes/invalidate", baseUrl: "https://admin.googleapis.com/", requiredParams: ["userKey"] },
|
|
1834
|
+
params: [{ "field": "userKey", "api": "userKey", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
1835
|
+
hasBody: false,
|
|
1836
|
+
shape: {
|
|
1837
|
+
account: accountField(),
|
|
1838
|
+
userKey: z.string().describe("Email or immutable ID of the user"),
|
|
1839
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
1840
|
+
},
|
|
1841
|
+
});
|
|
1842
|
+
registerGeneratedTool(registry, {
|
|
1843
|
+
name: "admin_verification_codes_list",
|
|
1844
|
+
cud: "read",
|
|
1845
|
+
description: "Returns the current set of valid backup verification codes for the specified user.",
|
|
1846
|
+
method: { id: "directory.verificationCodes.list", httpMethod: "GET", path: "admin/directory/v1/users/{userKey}/verificationCodes", baseUrl: "https://admin.googleapis.com/", requiredParams: ["userKey"] },
|
|
1847
|
+
params: [{ "field": "userKey", "api": "userKey", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
1848
|
+
hasBody: false,
|
|
1849
|
+
shape: {
|
|
1850
|
+
account: accountField(),
|
|
1851
|
+
userKey: z.string().describe("Identifies the user in the API request. The value can be the user's primary email address, alias email address, or unique user ID."),
|
|
1852
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
1853
|
+
},
|
|
1854
|
+
});
|
|
1855
|
+
registerGeneratedTool(registry, {
|
|
1856
|
+
name: "admin_activities_watch",
|
|
1857
|
+
cud: "create",
|
|
1858
|
+
description: "Start receiving notifications for account activities. For more information, see Receiving Push Notifications.",
|
|
1859
|
+
method: { id: "reports.activities.watch", httpMethod: "POST", path: "admin/reports/v1/activity/users/{userKey}/applications/{applicationName}/watch", baseUrl: "https://admin.googleapis.com/", requiredParams: ["userKey", "applicationName"] },
|
|
1860
|
+
params: [{ "field": "applicationName", "api": "applicationName", "location": "path" }, { "field": "userKey", "api": "userKey", "location": "path" }, { "field": "actorIpAddress", "api": "actorIpAddress", "location": "query" }, { "field": "customerId", "api": "customerId", "location": "query" }, { "field": "endTime", "api": "endTime", "location": "query" }, { "field": "eventName", "api": "eventName", "location": "query" }, { "field": "filters", "api": "filters", "location": "query" }, { "field": "groupIdFilter", "api": "groupIdFilter", "location": "query" }, { "field": "maxResults", "api": "maxResults", "location": "query" }, { "field": "orgUnitID", "api": "orgUnitID", "location": "query" }, { "field": "pageToken", "api": "pageToken", "location": "query" }, { "field": "startTime", "api": "startTime", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
1861
|
+
hasBody: true,
|
|
1862
|
+
shape: {
|
|
1863
|
+
account: accountField(),
|
|
1864
|
+
applicationName: z.enum(["access_transparency", "admin", "calendar", "chat", "drive", "gcp", "gplus", "groups", "groups_enterprise", "jamboard", "login", "meet", "mobile", "rules", "saml", "token", "user_accounts", "context_aware_access", "chrome", "data_studio", "keep", "classroom"]).describe("Application name for which the events are to be retrieved."),
|
|
1865
|
+
userKey: z.string().describe("Represents the profile ID or the user email for which the data should be filtered. Can be `all` for all information, or `userKey` for a user's unique Google Workspace profile ID or their primary email"),
|
|
1866
|
+
actorIpAddress: z.string().describe("The Internet Protocol (IP) Address of host where the event was performed. This is an additional way to filter a report's summary using the IP address of the user whose activity is being reported. This").optional(),
|
|
1867
|
+
customerId: z.string().describe("The unique ID of the customer to retrieve data for.").optional(),
|
|
1868
|
+
endTime: z.string().describe("Sets the end of the range of time shown in the report. The date is in the RFC 3339 format, for example 2010-10-28T10:26:35.000Z. The default value is the approximate time of the API request. An API re").optional(),
|
|
1869
|
+
eventName: z.string().describe("The name of the event being queried by the API. Each `eventName` is related to a specific Google Workspace service or feature which the API organizes into types of events. An example is the Google Cal").optional(),
|
|
1870
|
+
filters: z.string().describe("The `filters` query string is a comma-separated list composed of event parameters manipulated by relational operators. Event parameters are in the form `{parameter1 name}{relational operator}{paramete").optional(),
|
|
1871
|
+
groupIdFilter: z.string().describe("`Deprecated`. This field is deprecated and is no longer supported. Comma separated group ids (obfuscated) on which user activities are filtered, i.e. the response will contain activities for only thos").optional(),
|
|
1872
|
+
maxResults: z.number().describe("Determines how many activity records are shown on each response page. For example, if the request sets `maxResults=1` and the report has two activities, the report has two pages. The response's `nextP").optional(),
|
|
1873
|
+
orgUnitID: z.string().describe("`Deprecated`. This field is deprecated and is no longer supported. ID of the organizational unit to report on. Activity records will be shown only for users who belong to the specified organizational ").optional(),
|
|
1874
|
+
pageToken: z.string().describe("The token to specify next page. A report with multiple pages has a `nextPageToken` property in the response. In your follow-on request getting the next page of the report, enter the `nextPageToken` va").optional(),
|
|
1875
|
+
startTime: z.string().describe("Sets the beginning of the range of time shown in the report. The date is in the RFC 3339 format, for example 2010-10-28T10:26:35.000Z. The report returns all activities from `startTime` until `endTime").optional(),
|
|
1876
|
+
body: coerceJson(z.record(z.string(), z.unknown())).describe("Channel JSON request body. Top-level fields: address, expiration, id, kind, params, payload, resourceId, resourceUri, token, type."),
|
|
1877
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
1878
|
+
},
|
|
1879
|
+
});
|
|
1880
|
+
registerGeneratedTool(registry, {
|
|
1881
|
+
name: "admin_customer_usage_reports_get",
|
|
1882
|
+
cud: "read",
|
|
1883
|
+
description: "Retrieves a report which is a collection of properties and statistics for a specific customer's account. For more information, see the Customers Usage Report gu",
|
|
1884
|
+
method: { id: "reports.customerUsageReports.get", httpMethod: "GET", path: "admin/reports/v1/usage/dates/{date}", baseUrl: "https://admin.googleapis.com/", requiredParams: ["date"] },
|
|
1885
|
+
params: [{ "field": "date", "api": "date", "location": "path" }, { "field": "customerId", "api": "customerId", "location": "query" }, { "field": "pageToken", "api": "pageToken", "location": "query" }, { "field": "parameters", "api": "parameters", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
1886
|
+
hasBody: false,
|
|
1887
|
+
shape: {
|
|
1888
|
+
account: accountField(),
|
|
1889
|
+
date: z.string().describe("Represents the date the usage occurred, based on UTC-8:00 (Pacific Standard Time). The timestamp is in the [ISO 8601 format](https://en.wikipedia.org/wiki/ISO_8601), `yyyy-mm-dd`."),
|
|
1890
|
+
customerId: z.string().describe("The unique ID of the customer to retrieve data for.").optional(),
|
|
1891
|
+
pageToken: z.string().describe("Token to specify next page. A report with multiple pages has a `nextPageToken` property in the response. For your follow-on requests getting all of the report's pages, enter the `nextPageToken` value ").optional(),
|
|
1892
|
+
parameters: z.string().describe("The `parameters` query string is a comma-separated list of event parameters that refine a report's results. The parameter is associated with a specific application. The application values for the Cust").optional(),
|
|
1893
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
1894
|
+
},
|
|
1895
|
+
});
|
|
1896
|
+
registerGeneratedTool(registry, {
|
|
1897
|
+
name: "admin_entity_usage_reports_get",
|
|
1898
|
+
cud: "read",
|
|
1899
|
+
description: "Retrieves a report which is a collection of properties and statistics for entities used by users within the account. For more information, see the Entities Usag",
|
|
1900
|
+
method: { id: "reports.entityUsageReports.get", httpMethod: "GET", path: "admin/reports/v1/usage/{entityType}/{entityKey}/dates/{date}", baseUrl: "https://admin.googleapis.com/", requiredParams: ["entityType", "entityKey", "date"] },
|
|
1901
|
+
params: [{ "field": "date", "api": "date", "location": "path" }, { "field": "entityKey", "api": "entityKey", "location": "path" }, { "field": "entityType", "api": "entityType", "location": "path" }, { "field": "customerId", "api": "customerId", "location": "query" }, { "field": "filters", "api": "filters", "location": "query" }, { "field": "maxResults", "api": "maxResults", "location": "query" }, { "field": "pageToken", "api": "pageToken", "location": "query" }, { "field": "parameters", "api": "parameters", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
1902
|
+
hasBody: false,
|
|
1903
|
+
shape: {
|
|
1904
|
+
account: accountField(),
|
|
1905
|
+
date: z.string().describe("Represents the date the usage occurred, based on UTC-8:00 (Pacific Standard Time). The timestamp is in the [ISO 8601 format](https://en.wikipedia.org/wiki/ISO_8601), `yyyy-mm-dd`."),
|
|
1906
|
+
entityKey: z.string().describe("Represents the key of the object to filter the data with. It is a string which can take the value `all` to get activity events for all users, or any other value for an app-specific entity. For details"),
|
|
1907
|
+
entityType: z.enum(["gplus_communities"]).describe("Represents the type of entity for the report."),
|
|
1908
|
+
customerId: z.string().describe("The unique ID of the customer to retrieve data for.").optional(),
|
|
1909
|
+
filters: z.string().describe("The `filters` query string is a comma-separated list of an application's event parameters where the parameter's value is manipulated by a relational operator. The `filters` query string includes the n").optional(),
|
|
1910
|
+
maxResults: z.number().describe("Determines how many activity records are shown on each response page. For example, if the request sets `maxResults=1` and the report has two activities, the report has two pages. The response's `nextP").optional(),
|
|
1911
|
+
pageToken: z.string().describe("Token to specify next page. A report with multiple pages has a `nextPageToken` property in the response. In your follow-on request getting the next page of the report, enter the `nextPageToken` value ").optional(),
|
|
1912
|
+
parameters: z.string().describe("The `parameters` query string is a comma-separated list of event parameters that refine a report's results. The parameter is associated with a specific application. The application values for the Enti").optional(),
|
|
1913
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
1914
|
+
},
|
|
1915
|
+
});
|
|
1916
|
+
registerGeneratedTool(registry, {
|
|
1917
|
+
name: "admin_user_usage_report_get",
|
|
1918
|
+
cud: "read",
|
|
1919
|
+
description: "Retrieves a report which is a collection of properties and statistics for a set of users with the account. For more information, see the User Usage Report guide",
|
|
1920
|
+
method: { id: "reports.userUsageReport.get", httpMethod: "GET", path: "admin/reports/v1/usage/users/{userKey}/dates/{date}", baseUrl: "https://admin.googleapis.com/", requiredParams: ["date", "userKey"] },
|
|
1921
|
+
params: [{ "field": "date", "api": "date", "location": "path" }, { "field": "userKey", "api": "userKey", "location": "path" }, { "field": "customerId", "api": "customerId", "location": "query" }, { "field": "filters", "api": "filters", "location": "query" }, { "field": "groupIdFilter", "api": "groupIdFilter", "location": "query" }, { "field": "maxResults", "api": "maxResults", "location": "query" }, { "field": "orgUnitID", "api": "orgUnitID", "location": "query" }, { "field": "pageToken", "api": "pageToken", "location": "query" }, { "field": "parameters", "api": "parameters", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
1922
|
+
hasBody: false,
|
|
1923
|
+
shape: {
|
|
1924
|
+
account: accountField(),
|
|
1925
|
+
date: z.string().describe("Represents the date the usage occurred, based on UTC-8:00 (Pacific Standard Time). The timestamp is in the [ISO 8601 format](https://en.wikipedia.org/wiki/ISO_8601), `yyyy-mm-dd`."),
|
|
1926
|
+
userKey: z.string().describe("Represents the profile ID or the user email for which the data should be filtered. Can be `all` for all information, or `userKey` for a user's unique Google Workspace profile ID or their primary email"),
|
|
1927
|
+
customerId: z.string().describe("The unique ID of the customer to retrieve data for.").optional(),
|
|
1928
|
+
filters: z.string().describe("The `filters` query string is a comma-separated list of an application's event parameters where the parameter's value is manipulated by a relational operator. The `filters` query string includes the n").optional(),
|
|
1929
|
+
groupIdFilter: z.string().describe("Comma separated group ids (obfuscated) on which user activities are filtered, i.e. the response will contain activities for only those users that are a part of at least one of the group ids mentioned ").optional(),
|
|
1930
|
+
maxResults: z.number().describe("Determines how many activity records are shown on each response page. For example, if the request sets `maxResults=1` and the report has two activities, the report has two pages. The response's `nextP").optional(),
|
|
1931
|
+
orgUnitID: z.string().describe("ID of the organizational unit to report on. User activity will be shown only for users who belong to the specified organizational unit. Data before Dec 17, 2018 doesn't appear in the filtered results.").optional(),
|
|
1932
|
+
pageToken: z.string().describe("Token to specify next page. A report with multiple pages has a `nextPageToken` property in the response. In your follow-on request getting the next page of the report, enter the `nextPageToken` value ").optional(),
|
|
1933
|
+
parameters: z.string().describe("The `parameters` query string is a comma-separated list of event parameters that refine a report's results. The parameter is associated with a specific application. The application values for the Cust").optional(),
|
|
1934
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
1935
|
+
},
|
|
1936
|
+
});
|
|
1937
|
+
}
|