mcp-google-multi 5.2.0-alpha.2 → 5.2.0-alpha.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/dist/auth.js +33 -0
- package/dist/discovery-client.js +13 -0
- package/dist/index.js +4 -34
- package/dist/services.d.ts +11 -0
- package/dist/services.js +53 -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.js +50 -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/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 +1 -0
- package/package.json +3 -2
|
@@ -0,0 +1,754 @@
|
|
|
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 registerCloudsearchGeneratedTools(registry) {
|
|
6
|
+
registerGeneratedTool(registry, {
|
|
7
|
+
name: "cloudsearch_debug_datasources_items_check_access",
|
|
8
|
+
cud: "create",
|
|
9
|
+
description: "Checks whether an item is accessible by specified principal. Principal must be a user; groups and domain values aren't supported. **Note:** This API requires an",
|
|
10
|
+
method: { id: "cloudsearch.debug.datasources.items.checkAccess", httpMethod: "POST", path: "v1/debug/{+name}:checkAccess", baseUrl: "https://cloudsearch.googleapis.com/", requiredParams: ["name"] },
|
|
11
|
+
params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "debugOptions.enableDebugging", "api": "debugOptions.enableDebugging", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
12
|
+
hasBody: true,
|
|
13
|
+
shape: {
|
|
14
|
+
account: accountField(),
|
|
15
|
+
name: z.string().describe("Item name, format: datasources/{source_id}/items/{item_id}"),
|
|
16
|
+
"debugOptions.enableDebugging": coerceBoolean.describe("If you are asked by Google to help with debugging, set this field. Otherwise, ignore this field.").optional(),
|
|
17
|
+
body: coerceJson(z.record(z.string(), z.unknown())).describe("Principal JSON request body. Top-level fields: groupResourceName, gsuitePrincipal, userResourceName."),
|
|
18
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
19
|
+
},
|
|
20
|
+
});
|
|
21
|
+
registerGeneratedTool(registry, {
|
|
22
|
+
name: "cloudsearch_debug_datasources_items_search_by_view_url",
|
|
23
|
+
cud: "read",
|
|
24
|
+
description: "Fetches the item whose viewUrl exactly matches that of the URL provided in the request. **Note:** This API requires an admin account to execute.",
|
|
25
|
+
method: { id: "cloudsearch.debug.datasources.items.searchByViewUrl", httpMethod: "POST", path: "v1/debug/{+name}/items:searchByViewUrl", baseUrl: "https://cloudsearch.googleapis.com/", requiredParams: ["name"] },
|
|
26
|
+
params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
27
|
+
hasBody: true,
|
|
28
|
+
shape: {
|
|
29
|
+
account: accountField(),
|
|
30
|
+
name: z.string().describe("Source name, format: datasources/{source_id}"),
|
|
31
|
+
body: coerceJson(z.record(z.string(), z.unknown())).describe("SearchItemsByViewUrlRequest JSON request body. Top-level fields: debugOptions, pageToken, viewUrl."),
|
|
32
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
33
|
+
},
|
|
34
|
+
});
|
|
35
|
+
registerGeneratedTool(registry, {
|
|
36
|
+
name: "cloudsearch_debug_datasources_items_unmappedids_list",
|
|
37
|
+
cud: "read",
|
|
38
|
+
description: "List all unmapped identities for a specific item. **Note:** This API requires an admin account to execute.",
|
|
39
|
+
method: { id: "cloudsearch.debug.datasources.items.unmappedids.list", httpMethod: "GET", path: "v1/debug/{+parent}/unmappedids", baseUrl: "https://cloudsearch.googleapis.com/", requiredParams: ["parent"] },
|
|
40
|
+
params: [{ "field": "parent", "api": "parent", "location": "path" }, { "field": "debugOptions.enableDebugging", "api": "debugOptions.enableDebugging", "location": "query" }, { "field": "pageSize", "api": "pageSize", "location": "query" }, { "field": "pageToken", "api": "pageToken", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
41
|
+
hasBody: false,
|
|
42
|
+
shape: {
|
|
43
|
+
account: accountField(),
|
|
44
|
+
parent: z.string().describe("The name of the item, in the following format: datasources/{source_id}/items/{ID}"),
|
|
45
|
+
"debugOptions.enableDebugging": coerceBoolean.describe("If you are asked by Google to help with debugging, set this field. Otherwise, ignore this field.").optional(),
|
|
46
|
+
pageSize: z.number().describe("Maximum number of items to fetch in a request. Defaults to 100.").optional(),
|
|
47
|
+
pageToken: z.string().describe("The next_page_token value returned from a previous List request, if any.").optional(),
|
|
48
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
49
|
+
},
|
|
50
|
+
});
|
|
51
|
+
registerGeneratedTool(registry, {
|
|
52
|
+
name: "cloudsearch_debug_identitysources_items_list_forunmappedidentity",
|
|
53
|
+
cud: "read",
|
|
54
|
+
description: "Lists names of items associated with an unmapped identity. **Note:** This API requires an admin account to execute.",
|
|
55
|
+
method: { id: "cloudsearch.debug.identitysources.items.listForunmappedidentity", httpMethod: "GET", path: "v1/debug/{+parent}/items:forunmappedidentity", baseUrl: "https://cloudsearch.googleapis.com/", requiredParams: ["parent"] },
|
|
56
|
+
params: [{ "field": "parent", "api": "parent", "location": "path" }, { "field": "debugOptions.enableDebugging", "api": "debugOptions.enableDebugging", "location": "query" }, { "field": "groupResourceName", "api": "groupResourceName", "location": "query" }, { "field": "pageSize", "api": "pageSize", "location": "query" }, { "field": "pageToken", "api": "pageToken", "location": "query" }, { "field": "userResourceName", "api": "userResourceName", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
57
|
+
hasBody: false,
|
|
58
|
+
shape: {
|
|
59
|
+
account: accountField(),
|
|
60
|
+
parent: z.string().describe("The name of the identity source, in the following format: identitysources/{source_id}}"),
|
|
61
|
+
"debugOptions.enableDebugging": coerceBoolean.describe("If you are asked by Google to help with debugging, set this field. Otherwise, ignore this field.").optional(),
|
|
62
|
+
groupResourceName: z.string().optional(),
|
|
63
|
+
pageSize: z.number().describe("Maximum number of items to fetch in a request. Defaults to 100.").optional(),
|
|
64
|
+
pageToken: z.string().describe("The next_page_token value returned from a previous List request, if any.").optional(),
|
|
65
|
+
userResourceName: z.string().optional(),
|
|
66
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
67
|
+
},
|
|
68
|
+
});
|
|
69
|
+
registerGeneratedTool(registry, {
|
|
70
|
+
name: "cloudsearch_debug_identitysources_unmappedids_list",
|
|
71
|
+
cud: "read",
|
|
72
|
+
description: "Lists unmapped user identities for an identity source. **Note:** This API requires an admin account to execute.",
|
|
73
|
+
method: { id: "cloudsearch.debug.identitysources.unmappedids.list", httpMethod: "GET", path: "v1/debug/{+parent}/unmappedids", baseUrl: "https://cloudsearch.googleapis.com/", requiredParams: ["parent"] },
|
|
74
|
+
params: [{ "field": "parent", "api": "parent", "location": "path" }, { "field": "debugOptions.enableDebugging", "api": "debugOptions.enableDebugging", "location": "query" }, { "field": "pageSize", "api": "pageSize", "location": "query" }, { "field": "pageToken", "api": "pageToken", "location": "query" }, { "field": "resolutionStatusCode", "api": "resolutionStatusCode", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
75
|
+
hasBody: false,
|
|
76
|
+
shape: {
|
|
77
|
+
account: accountField(),
|
|
78
|
+
parent: z.string().describe("The name of the identity source, in the following format: identitysources/{source_id}"),
|
|
79
|
+
"debugOptions.enableDebugging": coerceBoolean.describe("If you are asked by Google to help with debugging, set this field. Otherwise, ignore this field.").optional(),
|
|
80
|
+
pageSize: z.number().describe("Maximum number of items to fetch in a request. Defaults to 100.").optional(),
|
|
81
|
+
pageToken: z.string().describe("The next_page_token value returned from a previous List request, if any.").optional(),
|
|
82
|
+
resolutionStatusCode: z.enum(["CODE_UNSPECIFIED", "NOT_FOUND", "IDENTITY_SOURCE_NOT_FOUND", "IDENTITY_SOURCE_MISCONFIGURED", "TOO_MANY_MAPPINGS_FOUND", "INTERNAL_ERROR"]).describe("Limit users selection to this status.").optional(),
|
|
83
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
84
|
+
},
|
|
85
|
+
});
|
|
86
|
+
registerGeneratedTool(registry, {
|
|
87
|
+
name: "cloudsearch_indexing_datasources_delete_schema",
|
|
88
|
+
cud: "delete",
|
|
89
|
+
description: "Deletes the schema of a data source. **Note:** This API requires an admin or service account to execute.",
|
|
90
|
+
method: { id: "cloudsearch.indexing.datasources.deleteSchema", httpMethod: "DELETE", path: "v1/indexing/{+name}/schema", baseUrl: "https://cloudsearch.googleapis.com/", requiredParams: ["name"] },
|
|
91
|
+
params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "debugOptions.enableDebugging", "api": "debugOptions.enableDebugging", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
92
|
+
hasBody: false,
|
|
93
|
+
shape: {
|
|
94
|
+
account: accountField(),
|
|
95
|
+
name: z.string().describe("The name of the data source to delete Schema. Format: datasources/{source_id}"),
|
|
96
|
+
"debugOptions.enableDebugging": coerceBoolean.describe("If you are asked by Google to help with debugging, set this field. Otherwise, ignore this field.").optional(),
|
|
97
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
98
|
+
},
|
|
99
|
+
});
|
|
100
|
+
registerGeneratedTool(registry, {
|
|
101
|
+
name: "cloudsearch_indexing_datasources_get_schema",
|
|
102
|
+
cud: "read",
|
|
103
|
+
description: "Gets the schema of a data source. **Note:** This API requires an admin or service account to execute.",
|
|
104
|
+
method: { id: "cloudsearch.indexing.datasources.getSchema", httpMethod: "GET", path: "v1/indexing/{+name}/schema", baseUrl: "https://cloudsearch.googleapis.com/", requiredParams: ["name"] },
|
|
105
|
+
params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "debugOptions.enableDebugging", "api": "debugOptions.enableDebugging", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
106
|
+
hasBody: false,
|
|
107
|
+
shape: {
|
|
108
|
+
account: accountField(),
|
|
109
|
+
name: z.string().describe("The name of the data source to get Schema. Format: datasources/{source_id}"),
|
|
110
|
+
"debugOptions.enableDebugging": coerceBoolean.describe("If you are asked by Google to help with debugging, set this field. Otherwise, ignore this field.").optional(),
|
|
111
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
112
|
+
},
|
|
113
|
+
});
|
|
114
|
+
registerGeneratedTool(registry, {
|
|
115
|
+
name: "cloudsearch_indexing_datasources_items_delete",
|
|
116
|
+
cud: "delete",
|
|
117
|
+
description: "Deletes Item resource for the specified resource name. This API requires an admin or service account to execute. The service account used is the one whitelisted",
|
|
118
|
+
method: { id: "cloudsearch.indexing.datasources.items.delete", httpMethod: "DELETE", path: "v1/indexing/{+name}", baseUrl: "https://cloudsearch.googleapis.com/", requiredParams: ["name"] },
|
|
119
|
+
params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "connectorName", "api": "connectorName", "location": "query" }, { "field": "debugOptions.enableDebugging", "api": "debugOptions.enableDebugging", "location": "query" }, { "field": "mode", "api": "mode", "location": "query" }, { "field": "version", "api": "version", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
120
|
+
hasBody: false,
|
|
121
|
+
shape: {
|
|
122
|
+
account: accountField(),
|
|
123
|
+
name: z.string().describe("Required. The name of the item to delete. Format: datasources/{source_id}/items/{item_id}"),
|
|
124
|
+
connectorName: z.string().describe("The name of connector making this call. Format: datasources/{source_id}/connectors/{ID}").optional(),
|
|
125
|
+
"debugOptions.enableDebugging": coerceBoolean.describe("If you are asked by Google to help with debugging, set this field. Otherwise, ignore this field.").optional(),
|
|
126
|
+
mode: z.enum(["UNSPECIFIED", "SYNCHRONOUS", "ASYNCHRONOUS"]).describe("Required. The RequestMode for this request.").optional(),
|
|
127
|
+
version: z.string().describe("Required. The incremented version of the item to delete from the index. The indexing system stores the version from the datasource as a byte string and compares the Item version in the index to the ve").optional(),
|
|
128
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
129
|
+
},
|
|
130
|
+
});
|
|
131
|
+
registerGeneratedTool(registry, {
|
|
132
|
+
name: "cloudsearch_indexing_datasources_items_delete_queue_items",
|
|
133
|
+
cud: "delete",
|
|
134
|
+
description: "Deletes all items in a queue. This method is useful for deleting stale items. This API requires an admin or service account to execute. The service account used",
|
|
135
|
+
method: { id: "cloudsearch.indexing.datasources.items.deleteQueueItems", httpMethod: "POST", path: "v1/indexing/{+name}/items:deleteQueueItems", baseUrl: "https://cloudsearch.googleapis.com/", requiredParams: ["name"] },
|
|
136
|
+
params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
137
|
+
hasBody: true,
|
|
138
|
+
shape: {
|
|
139
|
+
account: accountField(),
|
|
140
|
+
name: z.string().describe("The name of the Data Source to delete items in a queue. Format: datasources/{source_id}"),
|
|
141
|
+
body: coerceJson(z.record(z.string(), z.unknown())).describe("DeleteQueueItemsRequest JSON request body. Top-level fields: connectorName, debugOptions, queue."),
|
|
142
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
143
|
+
},
|
|
144
|
+
});
|
|
145
|
+
registerGeneratedTool(registry, {
|
|
146
|
+
name: "cloudsearch_indexing_datasources_items_get",
|
|
147
|
+
cud: "read",
|
|
148
|
+
description: "Gets Item resource by item name. This API requires an admin or service account to execute. The service account used is the one whitelisted in the corresponding",
|
|
149
|
+
method: { id: "cloudsearch.indexing.datasources.items.get", httpMethod: "GET", path: "v1/indexing/{+name}", baseUrl: "https://cloudsearch.googleapis.com/", requiredParams: ["name"] },
|
|
150
|
+
params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "connectorName", "api": "connectorName", "location": "query" }, { "field": "debugOptions.enableDebugging", "api": "debugOptions.enableDebugging", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
151
|
+
hasBody: false,
|
|
152
|
+
shape: {
|
|
153
|
+
account: accountField(),
|
|
154
|
+
name: z.string().describe("The name of the item to get info. Format: datasources/{source_id}/items/{item_id}"),
|
|
155
|
+
connectorName: z.string().describe("The name of connector making this call. Format: datasources/{source_id}/connectors/{ID}").optional(),
|
|
156
|
+
"debugOptions.enableDebugging": coerceBoolean.describe("If you are asked by Google to help with debugging, set this field. Otherwise, ignore this field.").optional(),
|
|
157
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
158
|
+
},
|
|
159
|
+
});
|
|
160
|
+
registerGeneratedTool(registry, {
|
|
161
|
+
name: "cloudsearch_indexing_datasources_items_index",
|
|
162
|
+
cud: "create",
|
|
163
|
+
description: "Updates Item ACL, metadata, and content. It will insert the Item if it does not exist. This method does not support partial updates. Fields with no provided val",
|
|
164
|
+
method: { id: "cloudsearch.indexing.datasources.items.index", httpMethod: "POST", path: "v1/indexing/{+name}:index", baseUrl: "https://cloudsearch.googleapis.com/", requiredParams: ["name"] },
|
|
165
|
+
params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
166
|
+
hasBody: true,
|
|
167
|
+
shape: {
|
|
168
|
+
account: accountField(),
|
|
169
|
+
name: z.string().describe("The name of the Item. Format: datasources/{source_id}/items/{item_id} This is a required field. The maximum length is 1536 characters."),
|
|
170
|
+
body: coerceJson(z.record(z.string(), z.unknown())).describe("IndexItemRequest JSON request body. Top-level fields: connectorName, debugOptions, indexItemOptions, item, mode."),
|
|
171
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
172
|
+
},
|
|
173
|
+
});
|
|
174
|
+
registerGeneratedTool(registry, {
|
|
175
|
+
name: "cloudsearch_indexing_datasources_items_list",
|
|
176
|
+
cud: "read",
|
|
177
|
+
description: "Lists all or a subset of Item resources. This API requires an admin or service account to execute. The service account used is the one whitelisted in the corres",
|
|
178
|
+
method: { id: "cloudsearch.indexing.datasources.items.list", httpMethod: "GET", path: "v1/indexing/{+name}/items", baseUrl: "https://cloudsearch.googleapis.com/", requiredParams: ["name"] },
|
|
179
|
+
params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "brief", "api": "brief", "location": "query" }, { "field": "connectorName", "api": "connectorName", "location": "query" }, { "field": "debugOptions.enableDebugging", "api": "debugOptions.enableDebugging", "location": "query" }, { "field": "pageSize", "api": "pageSize", "location": "query" }, { "field": "pageToken", "api": "pageToken", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
180
|
+
hasBody: false,
|
|
181
|
+
shape: {
|
|
182
|
+
account: accountField(),
|
|
183
|
+
name: z.string().describe("The name of the Data Source to list Items. Format: datasources/{source_id}"),
|
|
184
|
+
brief: coerceBoolean.describe("When set to true, the indexing system only populates the following fields: name, version, queue. metadata.hash, metadata.title, metadata.sourceRepositoryURL, metadata.objectType, metadata.createTime, ").optional(),
|
|
185
|
+
connectorName: z.string().describe("The name of connector making this call. Format: datasources/{source_id}/connectors/{ID}").optional(),
|
|
186
|
+
"debugOptions.enableDebugging": coerceBoolean.describe("If you are asked by Google to help with debugging, set this field. Otherwise, ignore this field.").optional(),
|
|
187
|
+
pageSize: z.number().describe("Maximum number of items to fetch in a request. The max value is 1000 when brief is true. The max value is 10 if brief is false. The default value is 10").optional(),
|
|
188
|
+
pageToken: z.string().describe("The next_page_token value returned from a previous List request, if any.").optional(),
|
|
189
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
190
|
+
},
|
|
191
|
+
});
|
|
192
|
+
registerGeneratedTool(registry, {
|
|
193
|
+
name: "cloudsearch_indexing_datasources_items_poll",
|
|
194
|
+
cud: "create",
|
|
195
|
+
description: "Polls for unreserved items from the indexing queue and marks a set as reserved, starting with items that have the oldest timestamp from the highest priority Ite",
|
|
196
|
+
method: { id: "cloudsearch.indexing.datasources.items.poll", httpMethod: "POST", path: "v1/indexing/{+name}/items:poll", baseUrl: "https://cloudsearch.googleapis.com/", requiredParams: ["name"] },
|
|
197
|
+
params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
198
|
+
hasBody: true,
|
|
199
|
+
shape: {
|
|
200
|
+
account: accountField(),
|
|
201
|
+
name: z.string().describe("The name of the Data Source to poll items. Format: datasources/{source_id}"),
|
|
202
|
+
body: coerceJson(z.record(z.string(), z.unknown())).describe("PollItemsRequest JSON request body. Top-level fields: connectorName, debugOptions, limit, queue, statusCodes."),
|
|
203
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
204
|
+
},
|
|
205
|
+
});
|
|
206
|
+
registerGeneratedTool(registry, {
|
|
207
|
+
name: "cloudsearch_indexing_datasources_items_push",
|
|
208
|
+
cud: "create",
|
|
209
|
+
description: "Pushes an item onto a queue for later polling and updating. This API requires an admin or service account to execute. The service account used is the one whitel",
|
|
210
|
+
method: { id: "cloudsearch.indexing.datasources.items.push", httpMethod: "POST", path: "v1/indexing/{+name}:push", baseUrl: "https://cloudsearch.googleapis.com/", requiredParams: ["name"] },
|
|
211
|
+
params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
212
|
+
hasBody: true,
|
|
213
|
+
shape: {
|
|
214
|
+
account: accountField(),
|
|
215
|
+
name: z.string().describe("The name of the item to push into the indexing queue. Format: datasources/{source_id}/items/{ID} This is a required field. The maximum length is 1536 characters."),
|
|
216
|
+
body: coerceJson(z.record(z.string(), z.unknown())).describe("PushItemRequest JSON request body. Top-level fields: connectorName, debugOptions, item."),
|
|
217
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
218
|
+
},
|
|
219
|
+
});
|
|
220
|
+
registerGeneratedTool(registry, {
|
|
221
|
+
name: "cloudsearch_indexing_datasources_items_unreserve",
|
|
222
|
+
cud: "create",
|
|
223
|
+
description: "Unreserves all items from a queue, making them all eligible to be polled. This method is useful for resetting the indexing queue after a connector has been rest",
|
|
224
|
+
method: { id: "cloudsearch.indexing.datasources.items.unreserve", httpMethod: "POST", path: "v1/indexing/{+name}/items:unreserve", baseUrl: "https://cloudsearch.googleapis.com/", requiredParams: ["name"] },
|
|
225
|
+
params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
226
|
+
hasBody: true,
|
|
227
|
+
shape: {
|
|
228
|
+
account: accountField(),
|
|
229
|
+
name: z.string().describe("The name of the Data Source to unreserve all items. Format: datasources/{source_id}"),
|
|
230
|
+
body: coerceJson(z.record(z.string(), z.unknown())).describe("UnreserveItemsRequest JSON request body. Top-level fields: connectorName, debugOptions, queue."),
|
|
231
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
232
|
+
},
|
|
233
|
+
});
|
|
234
|
+
registerGeneratedTool(registry, {
|
|
235
|
+
name: "cloudsearch_indexing_datasources_items_upload",
|
|
236
|
+
cud: "create",
|
|
237
|
+
description: "Creates an upload session for uploading item content. For items smaller than 100 KB, it's easier to embed the content inline within an index request. This API r",
|
|
238
|
+
method: { id: "cloudsearch.indexing.datasources.items.upload", httpMethod: "POST", path: "v1/indexing/{+name}:upload", baseUrl: "https://cloudsearch.googleapis.com/", requiredParams: ["name"] },
|
|
239
|
+
params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
240
|
+
hasBody: true,
|
|
241
|
+
shape: {
|
|
242
|
+
account: accountField(),
|
|
243
|
+
name: z.string().describe("The name of the Item to start a resumable upload. Format: datasources/{source_id}/items/{item_id}. The maximum length is 1536 bytes."),
|
|
244
|
+
body: coerceJson(z.record(z.string(), z.unknown())).describe("StartUploadItemRequest JSON request body. Top-level fields: connectorName, debugOptions."),
|
|
245
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
246
|
+
},
|
|
247
|
+
});
|
|
248
|
+
registerGeneratedTool(registry, {
|
|
249
|
+
name: "cloudsearch_indexing_datasources_update_schema",
|
|
250
|
+
cud: "update",
|
|
251
|
+
description: "Updates the schema of a data source. This method does not perform incremental updates to the schema. Instead, this method updates the schema by overwriting the",
|
|
252
|
+
method: { id: "cloudsearch.indexing.datasources.updateSchema", httpMethod: "PUT", path: "v1/indexing/{+name}/schema", baseUrl: "https://cloudsearch.googleapis.com/", requiredParams: ["name"] },
|
|
253
|
+
params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
254
|
+
hasBody: true,
|
|
255
|
+
shape: {
|
|
256
|
+
account: accountField(),
|
|
257
|
+
name: z.string().describe("The name of the data source to update Schema. Format: datasources/{source_id}"),
|
|
258
|
+
body: coerceJson(z.record(z.string(), z.unknown())).describe("UpdateSchemaRequest JSON request body. Top-level fields: debugOptions, schema, validateOnly."),
|
|
259
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
260
|
+
},
|
|
261
|
+
});
|
|
262
|
+
registerGeneratedTool(registry, {
|
|
263
|
+
name: "cloudsearch_initialize_customer",
|
|
264
|
+
cud: "create",
|
|
265
|
+
description: "Enables `third party` support in Google Cloud Search. **Note:** This API requires an admin account to execute.",
|
|
266
|
+
method: { id: "cloudsearch.initializeCustomer", httpMethod: "POST", path: "v1:initializeCustomer", baseUrl: "https://cloudsearch.googleapis.com/", requiredParams: [] },
|
|
267
|
+
params: [{ "field": "fields", "api": "fields", "location": "query" }],
|
|
268
|
+
hasBody: true,
|
|
269
|
+
shape: {
|
|
270
|
+
account: accountField(),
|
|
271
|
+
body: coerceJson(z.record(z.string(), z.unknown())).describe("InitializeCustomerRequest JSON request body."),
|
|
272
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
273
|
+
},
|
|
274
|
+
});
|
|
275
|
+
registerGeneratedTool(registry, {
|
|
276
|
+
name: "cloudsearch_media_upload",
|
|
277
|
+
cud: "create",
|
|
278
|
+
description: "Uploads media for indexing. The upload endpoint supports direct and resumable upload protocols and is intended for large items that can not be [inlined during i",
|
|
279
|
+
method: { id: "cloudsearch.media.upload", httpMethod: "POST", path: "v1/media/{+resourceName}", baseUrl: "https://cloudsearch.googleapis.com/", requiredParams: ["resourceName"] },
|
|
280
|
+
params: [{ "field": "resourceName", "api": "resourceName", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
281
|
+
hasBody: true,
|
|
282
|
+
shape: {
|
|
283
|
+
account: accountField(),
|
|
284
|
+
resourceName: z.string().describe("Name of the media that is being downloaded. See ReadRequest.resource_name."),
|
|
285
|
+
body: coerceJson(z.record(z.string(), z.unknown())).describe("Media JSON request body. Top-level fields: resourceName."),
|
|
286
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
287
|
+
},
|
|
288
|
+
});
|
|
289
|
+
registerGeneratedTool(registry, {
|
|
290
|
+
name: "cloudsearch_operations_get",
|
|
291
|
+
cud: "read",
|
|
292
|
+
description: "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.",
|
|
293
|
+
method: { id: "cloudsearch.operations.get", httpMethod: "GET", path: "v1/{+name}", baseUrl: "https://cloudsearch.googleapis.com/", requiredParams: ["name"] },
|
|
294
|
+
params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
295
|
+
hasBody: false,
|
|
296
|
+
shape: {
|
|
297
|
+
account: accountField(),
|
|
298
|
+
name: z.string().describe("The name of the operation resource."),
|
|
299
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
300
|
+
},
|
|
301
|
+
});
|
|
302
|
+
registerGeneratedTool(registry, {
|
|
303
|
+
name: "cloudsearch_operations_lro_list",
|
|
304
|
+
cud: "read",
|
|
305
|
+
description: "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.",
|
|
306
|
+
method: { id: "cloudsearch.operations.lro.list", httpMethod: "GET", path: "v1/{+name}/lro", baseUrl: "https://cloudsearch.googleapis.com/", requiredParams: ["name"] },
|
|
307
|
+
params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "filter", "api": "filter", "location": "query" }, { "field": "pageSize", "api": "pageSize", "location": "query" }, { "field": "pageToken", "api": "pageToken", "location": "query" }, { "field": "returnPartialSuccess", "api": "returnPartialSuccess", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
308
|
+
hasBody: false,
|
|
309
|
+
shape: {
|
|
310
|
+
account: accountField(),
|
|
311
|
+
name: z.string().describe("The name of the operation's parent resource."),
|
|
312
|
+
filter: z.string().describe("The standard list filter.").optional(),
|
|
313
|
+
pageSize: z.number().describe("The standard list page size.").optional(),
|
|
314
|
+
pageToken: z.string().describe("The standard list page token.").optional(),
|
|
315
|
+
returnPartialSuccess: coerceBoolean.describe("When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the ListOperationsResponse.unreachable field. This can only be `true` when read").optional(),
|
|
316
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
317
|
+
},
|
|
318
|
+
});
|
|
319
|
+
registerGeneratedTool(registry, {
|
|
320
|
+
name: "cloudsearch_query_remove_activity",
|
|
321
|
+
cud: "delete",
|
|
322
|
+
description: "Provides functionality to remove logged activity for a user. Currently to be used only for Chat 1p clients **Note:** This API requires a standard end user accou",
|
|
323
|
+
method: { id: "cloudsearch.query.removeActivity", httpMethod: "POST", path: "v1/query:removeActivity", baseUrl: "https://cloudsearch.googleapis.com/", requiredParams: [] },
|
|
324
|
+
params: [{ "field": "fields", "api": "fields", "location": "query" }],
|
|
325
|
+
hasBody: true,
|
|
326
|
+
shape: {
|
|
327
|
+
account: accountField(),
|
|
328
|
+
body: coerceJson(z.record(z.string(), z.unknown())).describe("RemoveActivityRequest JSON request body. Top-level fields: requestOptions, userActivity."),
|
|
329
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
330
|
+
},
|
|
331
|
+
});
|
|
332
|
+
registerGeneratedTool(registry, {
|
|
333
|
+
name: "cloudsearch_query_search",
|
|
334
|
+
cud: "read",
|
|
335
|
+
description: "The Cloud Search Query API provides the search method, which returns the most relevant results from a user query. The results can come from Google Workspace app",
|
|
336
|
+
method: { id: "cloudsearch.query.search", httpMethod: "POST", path: "v1/query/search", baseUrl: "https://cloudsearch.googleapis.com/", requiredParams: [] },
|
|
337
|
+
params: [{ "field": "fields", "api": "fields", "location": "query" }],
|
|
338
|
+
hasBody: true,
|
|
339
|
+
shape: {
|
|
340
|
+
account: accountField(),
|
|
341
|
+
body: coerceJson(z.record(z.string(), z.unknown())).describe("SearchRequest JSON request body. Top-level fields: contextAttributes, dataSourceRestrictions, facetOptions, pageSize, query, queryInterpretationOptions, requestOptions, sortOptions, start."),
|
|
342
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
343
|
+
},
|
|
344
|
+
});
|
|
345
|
+
registerGeneratedTool(registry, {
|
|
346
|
+
name: "cloudsearch_query_sources_list",
|
|
347
|
+
cud: "read",
|
|
348
|
+
description: "Returns list of sources that user can use for Search and Suggest APIs. **Note:** This API requires a standard end user account to execute. A service account can",
|
|
349
|
+
method: { id: "cloudsearch.query.sources.list", httpMethod: "GET", path: "v1/query/sources", baseUrl: "https://cloudsearch.googleapis.com/", requiredParams: [] },
|
|
350
|
+
params: [{ "field": "pageToken", "api": "pageToken", "location": "query" }, { "field": "requestOptions.clientDisplayLanguageCode", "api": "requestOptions.clientDisplayLanguageCode", "location": "query" }, { "field": "requestOptions.debugOptions.enableDebugging", "api": "requestOptions.debugOptions.enableDebugging", "location": "query" }, { "field": "requestOptions.languageCode", "api": "requestOptions.languageCode", "location": "query" }, { "field": "requestOptions.searchApplicationId", "api": "requestOptions.searchApplicationId", "location": "query" }, { "field": "requestOptions.timeZone", "api": "requestOptions.timeZone", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
351
|
+
hasBody: false,
|
|
352
|
+
shape: {
|
|
353
|
+
account: accountField(),
|
|
354
|
+
pageToken: z.string().describe("Number of sources to return in the response.").optional(),
|
|
355
|
+
"requestOptions.clientDisplayLanguageCode": z.string().describe("The BCP-47 language code, such as \"pt\" or \"en\". It represents the user's preferred Display Language.").optional(),
|
|
356
|
+
"requestOptions.debugOptions.enableDebugging": coerceBoolean.describe("If you are asked by Google to help with debugging, set this field. Otherwise, ignore this field.").optional(),
|
|
357
|
+
"requestOptions.languageCode": z.string().describe("The BCP-47 language code, such as \"en-US\" or \"sr-Latn\". For more information, see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. For translations. Set this field using the language se").optional(),
|
|
358
|
+
"requestOptions.searchApplicationId": z.string().describe("The ID generated when you create a search application using the [admin console](https://support.google.com/a/answer/9043922).").optional(),
|
|
359
|
+
"requestOptions.timeZone": z.string().describe("Current user's time zone id, such as \"America/Los_Angeles\" or \"Australia/Sydney\". These IDs are defined by [Unicode Common Locale Data Repository (CLDR)](http://cldr.unicode.org/) project, and current").optional(),
|
|
360
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
361
|
+
},
|
|
362
|
+
});
|
|
363
|
+
registerGeneratedTool(registry, {
|
|
364
|
+
name: "cloudsearch_query_suggest",
|
|
365
|
+
cud: "create",
|
|
366
|
+
description: "Provides suggestions for autocompleting the query. **Note:** This API requires a standard end user account to execute. A service account can't perform Query API",
|
|
367
|
+
method: { id: "cloudsearch.query.suggest", httpMethod: "POST", path: "v1/query/suggest", baseUrl: "https://cloudsearch.googleapis.com/", requiredParams: [] },
|
|
368
|
+
params: [{ "field": "fields", "api": "fields", "location": "query" }],
|
|
369
|
+
hasBody: true,
|
|
370
|
+
shape: {
|
|
371
|
+
account: accountField(),
|
|
372
|
+
body: coerceJson(z.record(z.string(), z.unknown())).describe("SuggestRequest JSON request body. Top-level fields: dataSourceRestrictions, query, requestOptions."),
|
|
373
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
374
|
+
},
|
|
375
|
+
});
|
|
376
|
+
registerGeneratedTool(registry, {
|
|
377
|
+
name: "cloudsearch_settings_datasources_create",
|
|
378
|
+
cud: "create",
|
|
379
|
+
description: "Creates a datasource. **Note:** This API requires an admin account to execute.",
|
|
380
|
+
method: { id: "cloudsearch.settings.datasources.create", httpMethod: "POST", path: "v1/settings/datasources", baseUrl: "https://cloudsearch.googleapis.com/", requiredParams: [] },
|
|
381
|
+
params: [{ "field": "fields", "api": "fields", "location": "query" }],
|
|
382
|
+
hasBody: true,
|
|
383
|
+
shape: {
|
|
384
|
+
account: accountField(),
|
|
385
|
+
body: coerceJson(z.record(z.string(), z.unknown())).describe("DataSource JSON request body. Top-level fields: disableModifications, disableServing, displayName, indexingServiceAccounts, itemsVisibility, name, operationIds, returnThumbnailUrls, shortName."),
|
|
386
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
387
|
+
},
|
|
388
|
+
});
|
|
389
|
+
registerGeneratedTool(registry, {
|
|
390
|
+
name: "cloudsearch_settings_datasources_delete",
|
|
391
|
+
cud: "delete",
|
|
392
|
+
description: "Deletes a datasource. **Note:** This API requires an admin account to execute.",
|
|
393
|
+
method: { id: "cloudsearch.settings.datasources.delete", httpMethod: "DELETE", path: "v1/settings/{+name}", baseUrl: "https://cloudsearch.googleapis.com/", requiredParams: ["name"] },
|
|
394
|
+
params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "debugOptions.enableDebugging", "api": "debugOptions.enableDebugging", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
395
|
+
hasBody: false,
|
|
396
|
+
shape: {
|
|
397
|
+
account: accountField(),
|
|
398
|
+
name: z.string().describe("The name of the datasource. Format: datasources/{source_id}."),
|
|
399
|
+
"debugOptions.enableDebugging": coerceBoolean.describe("If you are asked by Google to help with debugging, set this field. Otherwise, ignore this field.").optional(),
|
|
400
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
401
|
+
},
|
|
402
|
+
});
|
|
403
|
+
registerGeneratedTool(registry, {
|
|
404
|
+
name: "cloudsearch_settings_datasources_get",
|
|
405
|
+
cud: "read",
|
|
406
|
+
description: "Gets a datasource. **Note:** This API requires an admin account to execute.",
|
|
407
|
+
method: { id: "cloudsearch.settings.datasources.get", httpMethod: "GET", path: "v1/settings/{+name}", baseUrl: "https://cloudsearch.googleapis.com/", requiredParams: ["name"] },
|
|
408
|
+
params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "debugOptions.enableDebugging", "api": "debugOptions.enableDebugging", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
409
|
+
hasBody: false,
|
|
410
|
+
shape: {
|
|
411
|
+
account: accountField(),
|
|
412
|
+
name: z.string().describe("The name of the datasource resource. Format: datasources/{source_id}."),
|
|
413
|
+
"debugOptions.enableDebugging": coerceBoolean.describe("If you are asked by Google to help with debugging, set this field. Otherwise, ignore this field.").optional(),
|
|
414
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
415
|
+
},
|
|
416
|
+
});
|
|
417
|
+
registerGeneratedTool(registry, {
|
|
418
|
+
name: "cloudsearch_settings_datasources_list",
|
|
419
|
+
cud: "read",
|
|
420
|
+
description: "Lists datasources. **Note:** This API requires an admin account to execute.",
|
|
421
|
+
method: { id: "cloudsearch.settings.datasources.list", httpMethod: "GET", path: "v1/settings/datasources", baseUrl: "https://cloudsearch.googleapis.com/", requiredParams: [] },
|
|
422
|
+
params: [{ "field": "debugOptions.enableDebugging", "api": "debugOptions.enableDebugging", "location": "query" }, { "field": "pageSize", "api": "pageSize", "location": "query" }, { "field": "pageToken", "api": "pageToken", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
423
|
+
hasBody: false,
|
|
424
|
+
shape: {
|
|
425
|
+
account: accountField(),
|
|
426
|
+
"debugOptions.enableDebugging": coerceBoolean.describe("If you are asked by Google to help with debugging, set this field. Otherwise, ignore this field.").optional(),
|
|
427
|
+
pageSize: z.number().describe("Maximum number of datasources to fetch in a request. The max value is 1000. The default value is 1000.").optional(),
|
|
428
|
+
pageToken: z.string().describe("Starting index of the results.").optional(),
|
|
429
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
430
|
+
},
|
|
431
|
+
});
|
|
432
|
+
registerGeneratedTool(registry, {
|
|
433
|
+
name: "cloudsearch_settings_datasources_patch",
|
|
434
|
+
cud: "update",
|
|
435
|
+
description: "Updates a datasource. **Note:** This API requires an admin account to execute.",
|
|
436
|
+
method: { id: "cloudsearch.settings.datasources.patch", httpMethod: "PATCH", path: "v1/settings/{+name}", baseUrl: "https://cloudsearch.googleapis.com/", requiredParams: ["name"] },
|
|
437
|
+
params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "debugOptions.enableDebugging", "api": "debugOptions.enableDebugging", "location": "query" }, { "field": "updateMask", "api": "updateMask", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
438
|
+
hasBody: true,
|
|
439
|
+
shape: {
|
|
440
|
+
account: accountField(),
|
|
441
|
+
name: z.string().describe("The name of the datasource resource. Format: datasources/{source_id}. The name is ignored when creating a datasource."),
|
|
442
|
+
"debugOptions.enableDebugging": coerceBoolean.describe("If you are asked by Google to help with debugging, set this field. Otherwise, ignore this field.").optional(),
|
|
443
|
+
updateMask: z.string().describe("Only applies to [`settings.datasources.patch`](https://developers.google.com/workspace/cloud-search/docs/reference/rest/v1/settings.datasources/patch). Update mask to control which fields to update. E").optional(),
|
|
444
|
+
body: coerceJson(z.record(z.string(), z.unknown())).describe("DataSource JSON request body. Top-level fields: disableModifications, disableServing, displayName, indexingServiceAccounts, itemsVisibility, name, operationIds, returnThumbnailUrls, shortName."),
|
|
445
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
446
|
+
},
|
|
447
|
+
});
|
|
448
|
+
registerGeneratedTool(registry, {
|
|
449
|
+
name: "cloudsearch_settings_datasources_update",
|
|
450
|
+
cud: "update",
|
|
451
|
+
description: "Updates a datasource. **Note:** This API requires an admin account to execute.",
|
|
452
|
+
method: { id: "cloudsearch.settings.datasources.update", httpMethod: "PUT", path: "v1/settings/{+name}", baseUrl: "https://cloudsearch.googleapis.com/", requiredParams: ["name"] },
|
|
453
|
+
params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
454
|
+
hasBody: true,
|
|
455
|
+
shape: {
|
|
456
|
+
account: accountField(),
|
|
457
|
+
name: z.string().describe("The name of the datasource resource. Format: datasources/{source_id}. The name is ignored when creating a datasource."),
|
|
458
|
+
body: coerceJson(z.record(z.string(), z.unknown())).describe("UpdateDataSourceRequest JSON request body. Top-level fields: debugOptions, source, updateMask."),
|
|
459
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
460
|
+
},
|
|
461
|
+
});
|
|
462
|
+
registerGeneratedTool(registry, {
|
|
463
|
+
name: "cloudsearch_settings_get_customer",
|
|
464
|
+
cud: "read",
|
|
465
|
+
description: "Get customer settings. **Note:** This API requires an admin account to execute.",
|
|
466
|
+
method: { id: "cloudsearch.settings.getCustomer", httpMethod: "GET", path: "v1/settings/customer", baseUrl: "https://cloudsearch.googleapis.com/", requiredParams: [] },
|
|
467
|
+
params: [{ "field": "fields", "api": "fields", "location": "query" }],
|
|
468
|
+
hasBody: false,
|
|
469
|
+
shape: {
|
|
470
|
+
account: accountField(),
|
|
471
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
472
|
+
},
|
|
473
|
+
});
|
|
474
|
+
registerGeneratedTool(registry, {
|
|
475
|
+
name: "cloudsearch_settings_searchapplications_create",
|
|
476
|
+
cud: "create",
|
|
477
|
+
description: "Creates a search application. **Note:** This API requires an admin account to execute.",
|
|
478
|
+
method: { id: "cloudsearch.settings.searchapplications.create", httpMethod: "POST", path: "v1/settings/searchapplications", baseUrl: "https://cloudsearch.googleapis.com/", requiredParams: [] },
|
|
479
|
+
params: [{ "field": "fields", "api": "fields", "location": "query" }],
|
|
480
|
+
hasBody: true,
|
|
481
|
+
shape: {
|
|
482
|
+
account: accountField(),
|
|
483
|
+
body: coerceJson(z.record(z.string(), z.unknown())).describe("SearchApplication JSON request body. Top-level fields: dataSourceRestrictions, defaultFacetOptions, defaultSortOptions, displayName, enableAuditLog, name, operationIds, queryInterpretationConfig, returnResultThumbnailUrls, scoringConfig, sourceConfig."),
|
|
484
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
485
|
+
},
|
|
486
|
+
});
|
|
487
|
+
registerGeneratedTool(registry, {
|
|
488
|
+
name: "cloudsearch_settings_searchapplications_delete",
|
|
489
|
+
cud: "delete",
|
|
490
|
+
description: "Deletes a search application. **Note:** This API requires an admin account to execute.",
|
|
491
|
+
method: { id: "cloudsearch.settings.searchapplications.delete", httpMethod: "DELETE", path: "v1/settings/{+name}", baseUrl: "https://cloudsearch.googleapis.com/", requiredParams: ["name"] },
|
|
492
|
+
params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "debugOptions.enableDebugging", "api": "debugOptions.enableDebugging", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
493
|
+
hasBody: false,
|
|
494
|
+
shape: {
|
|
495
|
+
account: accountField(),
|
|
496
|
+
name: z.string().describe("The name of the search application to be deleted. Format: applications/{application_id}."),
|
|
497
|
+
"debugOptions.enableDebugging": coerceBoolean.describe("If you are asked by Google to help with debugging, set this field. Otherwise, ignore this field.").optional(),
|
|
498
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
499
|
+
},
|
|
500
|
+
});
|
|
501
|
+
registerGeneratedTool(registry, {
|
|
502
|
+
name: "cloudsearch_settings_searchapplications_get",
|
|
503
|
+
cud: "read",
|
|
504
|
+
description: "Gets the specified search application. **Note:** This API requires an admin account to execute.",
|
|
505
|
+
method: { id: "cloudsearch.settings.searchapplications.get", httpMethod: "GET", path: "v1/settings/{+name}", baseUrl: "https://cloudsearch.googleapis.com/", requiredParams: ["name"] },
|
|
506
|
+
params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "debugOptions.enableDebugging", "api": "debugOptions.enableDebugging", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
507
|
+
hasBody: false,
|
|
508
|
+
shape: {
|
|
509
|
+
account: accountField(),
|
|
510
|
+
name: z.string().describe("The name of the search application. Format: searchapplications/{application_id}."),
|
|
511
|
+
"debugOptions.enableDebugging": coerceBoolean.describe("If you are asked by Google to help with debugging, set this field. Otherwise, ignore this field.").optional(),
|
|
512
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
513
|
+
},
|
|
514
|
+
});
|
|
515
|
+
registerGeneratedTool(registry, {
|
|
516
|
+
name: "cloudsearch_settings_searchapplications_list",
|
|
517
|
+
cud: "read",
|
|
518
|
+
description: "Lists all search applications. **Note:** This API requires an admin account to execute.",
|
|
519
|
+
method: { id: "cloudsearch.settings.searchapplications.list", httpMethod: "GET", path: "v1/settings/searchapplications", baseUrl: "https://cloudsearch.googleapis.com/", requiredParams: [] },
|
|
520
|
+
params: [{ "field": "debugOptions.enableDebugging", "api": "debugOptions.enableDebugging", "location": "query" }, { "field": "pageSize", "api": "pageSize", "location": "query" }, { "field": "pageToken", "api": "pageToken", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
521
|
+
hasBody: false,
|
|
522
|
+
shape: {
|
|
523
|
+
account: accountField(),
|
|
524
|
+
"debugOptions.enableDebugging": coerceBoolean.describe("If you are asked by Google to help with debugging, set this field. Otherwise, ignore this field.").optional(),
|
|
525
|
+
pageSize: z.number().describe("The maximum number of items to return.").optional(),
|
|
526
|
+
pageToken: z.string().describe("The next_page_token value returned from a previous List request, if any. The default value is 10").optional(),
|
|
527
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
528
|
+
},
|
|
529
|
+
});
|
|
530
|
+
registerGeneratedTool(registry, {
|
|
531
|
+
name: "cloudsearch_settings_searchapplications_patch",
|
|
532
|
+
cud: "update",
|
|
533
|
+
description: "Updates a search application. **Note:** This API requires an admin account to execute.",
|
|
534
|
+
method: { id: "cloudsearch.settings.searchapplications.patch", httpMethod: "PATCH", path: "v1/settings/{+name}", baseUrl: "https://cloudsearch.googleapis.com/", requiredParams: ["name"] },
|
|
535
|
+
params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "updateMask", "api": "updateMask", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
536
|
+
hasBody: true,
|
|
537
|
+
shape: {
|
|
538
|
+
account: accountField(),
|
|
539
|
+
name: z.string().describe("The name of the Search Application. Format: searchapplications/{application_id}."),
|
|
540
|
+
updateMask: z.string().describe("Only applies to [`settings.searchapplications.patch`](https://developers.google.com/workspace/cloud-search/docs/reference/rest/v1/settings.searchapplications/patch). Update mask to control which field").optional(),
|
|
541
|
+
body: coerceJson(z.record(z.string(), z.unknown())).describe("SearchApplication JSON request body. Top-level fields: dataSourceRestrictions, defaultFacetOptions, defaultSortOptions, displayName, enableAuditLog, name, operationIds, queryInterpretationConfig, returnResultThumbnailUrls, scoringConfig, sourceConfig."),
|
|
542
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
543
|
+
},
|
|
544
|
+
});
|
|
545
|
+
registerGeneratedTool(registry, {
|
|
546
|
+
name: "cloudsearch_settings_searchapplications_reset",
|
|
547
|
+
cud: "create",
|
|
548
|
+
description: "Resets a search application to default settings. This will return an empty response. **Note:** This API requires an admin account to execute.",
|
|
549
|
+
method: { id: "cloudsearch.settings.searchapplications.reset", httpMethod: "POST", path: "v1/settings/{+name}:reset", baseUrl: "https://cloudsearch.googleapis.com/", requiredParams: ["name"] },
|
|
550
|
+
params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
551
|
+
hasBody: true,
|
|
552
|
+
shape: {
|
|
553
|
+
account: accountField(),
|
|
554
|
+
name: z.string().describe("The name of the search application to be reset. Format: applications/{application_id}."),
|
|
555
|
+
body: coerceJson(z.record(z.string(), z.unknown())).describe("ResetSearchApplicationRequest JSON request body. Top-level fields: debugOptions."),
|
|
556
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
557
|
+
},
|
|
558
|
+
});
|
|
559
|
+
registerGeneratedTool(registry, {
|
|
560
|
+
name: "cloudsearch_settings_searchapplications_update",
|
|
561
|
+
cud: "update",
|
|
562
|
+
description: "Updates a search application. **Note:** This API requires an admin account to execute.",
|
|
563
|
+
method: { id: "cloudsearch.settings.searchapplications.update", httpMethod: "PUT", path: "v1/settings/{+name}", baseUrl: "https://cloudsearch.googleapis.com/", requiredParams: ["name"] },
|
|
564
|
+
params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "updateMask", "api": "updateMask", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
565
|
+
hasBody: true,
|
|
566
|
+
shape: {
|
|
567
|
+
account: accountField(),
|
|
568
|
+
name: z.string().describe("The name of the Search Application. Format: searchapplications/{application_id}."),
|
|
569
|
+
updateMask: z.string().describe("Only applies to [`settings.searchapplications.patch`](https://developers.google.com/workspace/cloud-search/docs/reference/rest/v1/settings.searchapplications/patch). Update mask to control which field").optional(),
|
|
570
|
+
body: coerceJson(z.record(z.string(), z.unknown())).describe("SearchApplication JSON request body. Top-level fields: dataSourceRestrictions, defaultFacetOptions, defaultSortOptions, displayName, enableAuditLog, name, operationIds, queryInterpretationConfig, returnResultThumbnailUrls, scoringConfig, sourceConfig."),
|
|
571
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
572
|
+
},
|
|
573
|
+
});
|
|
574
|
+
registerGeneratedTool(registry, {
|
|
575
|
+
name: "cloudsearch_settings_update_customer",
|
|
576
|
+
cud: "update",
|
|
577
|
+
description: "Update customer settings. **Note:** This API requires an admin account to execute.",
|
|
578
|
+
method: { id: "cloudsearch.settings.updateCustomer", httpMethod: "PATCH", path: "v1/settings/customer", baseUrl: "https://cloudsearch.googleapis.com/", requiredParams: [] },
|
|
579
|
+
params: [{ "field": "updateMask", "api": "updateMask", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
580
|
+
hasBody: true,
|
|
581
|
+
shape: {
|
|
582
|
+
account: accountField(),
|
|
583
|
+
updateMask: z.string().describe("Update mask to control which fields get updated. If you specify a field in the update_mask but don't specify its value here, that field will be cleared. If the mask is not present or empty, all fields").optional(),
|
|
584
|
+
body: coerceJson(z.record(z.string(), z.unknown())).describe("CustomerSettings JSON request body. Top-level fields: auditLoggingSettings, vpcSettings."),
|
|
585
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
586
|
+
},
|
|
587
|
+
});
|
|
588
|
+
registerGeneratedTool(registry, {
|
|
589
|
+
name: "cloudsearch_stats_get_index",
|
|
590
|
+
cud: "read",
|
|
591
|
+
description: "Gets indexed item statistics aggreggated across all data sources. This API only returns statistics for previous dates; it doesn't return statistics for the curr",
|
|
592
|
+
method: { id: "cloudsearch.stats.getIndex", httpMethod: "GET", path: "v1/stats/index", baseUrl: "https://cloudsearch.googleapis.com/", requiredParams: [] },
|
|
593
|
+
params: [{ "field": "fromDate.day", "api": "fromDate.day", "location": "query" }, { "field": "fromDate.month", "api": "fromDate.month", "location": "query" }, { "field": "fromDate.year", "api": "fromDate.year", "location": "query" }, { "field": "toDate.day", "api": "toDate.day", "location": "query" }, { "field": "toDate.month", "api": "toDate.month", "location": "query" }, { "field": "toDate.year", "api": "toDate.year", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
594
|
+
hasBody: false,
|
|
595
|
+
shape: {
|
|
596
|
+
account: accountField(),
|
|
597
|
+
"fromDate.day": z.number().describe("Day of month. Must be from 1 to 31 and valid for the year and month.").optional(),
|
|
598
|
+
"fromDate.month": z.number().describe("Month of date. Must be from 1 to 12.").optional(),
|
|
599
|
+
"fromDate.year": z.number().describe("Year of date. Must be from 1 to 9999.").optional(),
|
|
600
|
+
"toDate.day": z.number().describe("Day of month. Must be from 1 to 31 and valid for the year and month.").optional(),
|
|
601
|
+
"toDate.month": z.number().describe("Month of date. Must be from 1 to 12.").optional(),
|
|
602
|
+
"toDate.year": z.number().describe("Year of date. Must be from 1 to 9999.").optional(),
|
|
603
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
604
|
+
},
|
|
605
|
+
});
|
|
606
|
+
registerGeneratedTool(registry, {
|
|
607
|
+
name: "cloudsearch_stats_get_query",
|
|
608
|
+
cud: "read",
|
|
609
|
+
description: "Get the query statistics for customer. **Note:** This API requires a standard end user account to execute.",
|
|
610
|
+
method: { id: "cloudsearch.stats.getQuery", httpMethod: "GET", path: "v1/stats/query", baseUrl: "https://cloudsearch.googleapis.com/", requiredParams: [] },
|
|
611
|
+
params: [{ "field": "fromDate.day", "api": "fromDate.day", "location": "query" }, { "field": "fromDate.month", "api": "fromDate.month", "location": "query" }, { "field": "fromDate.year", "api": "fromDate.year", "location": "query" }, { "field": "toDate.day", "api": "toDate.day", "location": "query" }, { "field": "toDate.month", "api": "toDate.month", "location": "query" }, { "field": "toDate.year", "api": "toDate.year", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
612
|
+
hasBody: false,
|
|
613
|
+
shape: {
|
|
614
|
+
account: accountField(),
|
|
615
|
+
"fromDate.day": z.number().describe("Day of month. Must be from 1 to 31 and valid for the year and month.").optional(),
|
|
616
|
+
"fromDate.month": z.number().describe("Month of date. Must be from 1 to 12.").optional(),
|
|
617
|
+
"fromDate.year": z.number().describe("Year of date. Must be from 1 to 9999.").optional(),
|
|
618
|
+
"toDate.day": z.number().describe("Day of month. Must be from 1 to 31 and valid for the year and month.").optional(),
|
|
619
|
+
"toDate.month": z.number().describe("Month of date. Must be from 1 to 12.").optional(),
|
|
620
|
+
"toDate.year": z.number().describe("Year of date. Must be from 1 to 9999.").optional(),
|
|
621
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
622
|
+
},
|
|
623
|
+
});
|
|
624
|
+
registerGeneratedTool(registry, {
|
|
625
|
+
name: "cloudsearch_stats_get_searchapplication",
|
|
626
|
+
cud: "read",
|
|
627
|
+
description: "Get search application stats for customer. **Note:** This API requires a standard end user account to execute.",
|
|
628
|
+
method: { id: "cloudsearch.stats.getSearchapplication", httpMethod: "GET", path: "v1/stats/searchapplication", baseUrl: "https://cloudsearch.googleapis.com/", requiredParams: [] },
|
|
629
|
+
params: [{ "field": "endDate.day", "api": "endDate.day", "location": "query" }, { "field": "endDate.month", "api": "endDate.month", "location": "query" }, { "field": "endDate.year", "api": "endDate.year", "location": "query" }, { "field": "startDate.day", "api": "startDate.day", "location": "query" }, { "field": "startDate.month", "api": "startDate.month", "location": "query" }, { "field": "startDate.year", "api": "startDate.year", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
630
|
+
hasBody: false,
|
|
631
|
+
shape: {
|
|
632
|
+
account: accountField(),
|
|
633
|
+
"endDate.day": z.number().describe("Day of month. Must be from 1 to 31 and valid for the year and month.").optional(),
|
|
634
|
+
"endDate.month": z.number().describe("Month of date. Must be from 1 to 12.").optional(),
|
|
635
|
+
"endDate.year": z.number().describe("Year of date. Must be from 1 to 9999.").optional(),
|
|
636
|
+
"startDate.day": z.number().describe("Day of month. Must be from 1 to 31 and valid for the year and month.").optional(),
|
|
637
|
+
"startDate.month": z.number().describe("Month of date. Must be from 1 to 12.").optional(),
|
|
638
|
+
"startDate.year": z.number().describe("Year of date. Must be from 1 to 9999.").optional(),
|
|
639
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
640
|
+
},
|
|
641
|
+
});
|
|
642
|
+
registerGeneratedTool(registry, {
|
|
643
|
+
name: "cloudsearch_stats_get_session",
|
|
644
|
+
cud: "read",
|
|
645
|
+
description: "Get the # of search sessions, % of successful sessions with a click query statistics for customer. **Note:** This API requires a standard end user account to ex",
|
|
646
|
+
method: { id: "cloudsearch.stats.getSession", httpMethod: "GET", path: "v1/stats/session", baseUrl: "https://cloudsearch.googleapis.com/", requiredParams: [] },
|
|
647
|
+
params: [{ "field": "fromDate.day", "api": "fromDate.day", "location": "query" }, { "field": "fromDate.month", "api": "fromDate.month", "location": "query" }, { "field": "fromDate.year", "api": "fromDate.year", "location": "query" }, { "field": "toDate.day", "api": "toDate.day", "location": "query" }, { "field": "toDate.month", "api": "toDate.month", "location": "query" }, { "field": "toDate.year", "api": "toDate.year", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
648
|
+
hasBody: false,
|
|
649
|
+
shape: {
|
|
650
|
+
account: accountField(),
|
|
651
|
+
"fromDate.day": z.number().describe("Day of month. Must be from 1 to 31 and valid for the year and month.").optional(),
|
|
652
|
+
"fromDate.month": z.number().describe("Month of date. Must be from 1 to 12.").optional(),
|
|
653
|
+
"fromDate.year": z.number().describe("Year of date. Must be from 1 to 9999.").optional(),
|
|
654
|
+
"toDate.day": z.number().describe("Day of month. Must be from 1 to 31 and valid for the year and month.").optional(),
|
|
655
|
+
"toDate.month": z.number().describe("Month of date. Must be from 1 to 12.").optional(),
|
|
656
|
+
"toDate.year": z.number().describe("Year of date. Must be from 1 to 9999.").optional(),
|
|
657
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
658
|
+
},
|
|
659
|
+
});
|
|
660
|
+
registerGeneratedTool(registry, {
|
|
661
|
+
name: "cloudsearch_stats_get_user",
|
|
662
|
+
cud: "read",
|
|
663
|
+
description: "Get the users statistics for customer. **Note:** This API requires a standard end user account to execute.",
|
|
664
|
+
method: { id: "cloudsearch.stats.getUser", httpMethod: "GET", path: "v1/stats/user", baseUrl: "https://cloudsearch.googleapis.com/", requiredParams: [] },
|
|
665
|
+
params: [{ "field": "fromDate.day", "api": "fromDate.day", "location": "query" }, { "field": "fromDate.month", "api": "fromDate.month", "location": "query" }, { "field": "fromDate.year", "api": "fromDate.year", "location": "query" }, { "field": "toDate.day", "api": "toDate.day", "location": "query" }, { "field": "toDate.month", "api": "toDate.month", "location": "query" }, { "field": "toDate.year", "api": "toDate.year", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
666
|
+
hasBody: false,
|
|
667
|
+
shape: {
|
|
668
|
+
account: accountField(),
|
|
669
|
+
"fromDate.day": z.number().describe("Day of month. Must be from 1 to 31 and valid for the year and month.").optional(),
|
|
670
|
+
"fromDate.month": z.number().describe("Month of date. Must be from 1 to 12.").optional(),
|
|
671
|
+
"fromDate.year": z.number().describe("Year of date. Must be from 1 to 9999.").optional(),
|
|
672
|
+
"toDate.day": z.number().describe("Day of month. Must be from 1 to 31 and valid for the year and month.").optional(),
|
|
673
|
+
"toDate.month": z.number().describe("Month of date. Must be from 1 to 12.").optional(),
|
|
674
|
+
"toDate.year": z.number().describe("Year of date. Must be from 1 to 9999.").optional(),
|
|
675
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
676
|
+
},
|
|
677
|
+
});
|
|
678
|
+
registerGeneratedTool(registry, {
|
|
679
|
+
name: "cloudsearch_stats_index_datasources_get",
|
|
680
|
+
cud: "read",
|
|
681
|
+
description: "Gets indexed item statistics for a single data source. **Note:** This API requires a standard end user account to execute.",
|
|
682
|
+
method: { id: "cloudsearch.stats.index.datasources.get", httpMethod: "GET", path: "v1/stats/index/{+name}", baseUrl: "https://cloudsearch.googleapis.com/", requiredParams: ["name"] },
|
|
683
|
+
params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "fromDate.day", "api": "fromDate.day", "location": "query" }, { "field": "fromDate.month", "api": "fromDate.month", "location": "query" }, { "field": "fromDate.year", "api": "fromDate.year", "location": "query" }, { "field": "toDate.day", "api": "toDate.day", "location": "query" }, { "field": "toDate.month", "api": "toDate.month", "location": "query" }, { "field": "toDate.year", "api": "toDate.year", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
684
|
+
hasBody: false,
|
|
685
|
+
shape: {
|
|
686
|
+
account: accountField(),
|
|
687
|
+
name: z.string().describe("The resource id of the data source to retrieve statistics for, in the following format: \"datasources/{source_id}\""),
|
|
688
|
+
"fromDate.day": z.number().describe("Day of month. Must be from 1 to 31 and valid for the year and month.").optional(),
|
|
689
|
+
"fromDate.month": z.number().describe("Month of date. Must be from 1 to 12.").optional(),
|
|
690
|
+
"fromDate.year": z.number().describe("Year of date. Must be from 1 to 9999.").optional(),
|
|
691
|
+
"toDate.day": z.number().describe("Day of month. Must be from 1 to 31 and valid for the year and month.").optional(),
|
|
692
|
+
"toDate.month": z.number().describe("Month of date. Must be from 1 to 12.").optional(),
|
|
693
|
+
"toDate.year": z.number().describe("Year of date. Must be from 1 to 9999.").optional(),
|
|
694
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
695
|
+
},
|
|
696
|
+
});
|
|
697
|
+
registerGeneratedTool(registry, {
|
|
698
|
+
name: "cloudsearch_stats_query_searchapplications_get",
|
|
699
|
+
cud: "read",
|
|
700
|
+
description: "Get the query statistics for search application. **Note:** This API requires a standard end user account to execute.",
|
|
701
|
+
method: { id: "cloudsearch.stats.query.searchapplications.get", httpMethod: "GET", path: "v1/stats/query/{+name}", baseUrl: "https://cloudsearch.googleapis.com/", requiredParams: ["name"] },
|
|
702
|
+
params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "fromDate.day", "api": "fromDate.day", "location": "query" }, { "field": "fromDate.month", "api": "fromDate.month", "location": "query" }, { "field": "fromDate.year", "api": "fromDate.year", "location": "query" }, { "field": "toDate.day", "api": "toDate.day", "location": "query" }, { "field": "toDate.month", "api": "toDate.month", "location": "query" }, { "field": "toDate.year", "api": "toDate.year", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
703
|
+
hasBody: false,
|
|
704
|
+
shape: {
|
|
705
|
+
account: accountField(),
|
|
706
|
+
name: z.string().describe("The resource id of the search application query stats, in the following format: searchapplications/{application_id}"),
|
|
707
|
+
"fromDate.day": z.number().describe("Day of month. Must be from 1 to 31 and valid for the year and month.").optional(),
|
|
708
|
+
"fromDate.month": z.number().describe("Month of date. Must be from 1 to 12.").optional(),
|
|
709
|
+
"fromDate.year": z.number().describe("Year of date. Must be from 1 to 9999.").optional(),
|
|
710
|
+
"toDate.day": z.number().describe("Day of month. Must be from 1 to 31 and valid for the year and month.").optional(),
|
|
711
|
+
"toDate.month": z.number().describe("Month of date. Must be from 1 to 12.").optional(),
|
|
712
|
+
"toDate.year": z.number().describe("Year of date. Must be from 1 to 9999.").optional(),
|
|
713
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
714
|
+
},
|
|
715
|
+
});
|
|
716
|
+
registerGeneratedTool(registry, {
|
|
717
|
+
name: "cloudsearch_stats_session_searchapplications_get",
|
|
718
|
+
cud: "read",
|
|
719
|
+
description: "Get the # of search sessions, % of successful sessions with a click query statistics for search application. **Note:** This API requires a standard end user acc",
|
|
720
|
+
method: { id: "cloudsearch.stats.session.searchapplications.get", httpMethod: "GET", path: "v1/stats/session/{+name}", baseUrl: "https://cloudsearch.googleapis.com/", requiredParams: ["name"] },
|
|
721
|
+
params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "fromDate.day", "api": "fromDate.day", "location": "query" }, { "field": "fromDate.month", "api": "fromDate.month", "location": "query" }, { "field": "fromDate.year", "api": "fromDate.year", "location": "query" }, { "field": "toDate.day", "api": "toDate.day", "location": "query" }, { "field": "toDate.month", "api": "toDate.month", "location": "query" }, { "field": "toDate.year", "api": "toDate.year", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
722
|
+
hasBody: false,
|
|
723
|
+
shape: {
|
|
724
|
+
account: accountField(),
|
|
725
|
+
name: z.string().describe("The resource id of the search application session stats, in the following format: searchapplications/{application_id}"),
|
|
726
|
+
"fromDate.day": z.number().describe("Day of month. Must be from 1 to 31 and valid for the year and month.").optional(),
|
|
727
|
+
"fromDate.month": z.number().describe("Month of date. Must be from 1 to 12.").optional(),
|
|
728
|
+
"fromDate.year": z.number().describe("Year of date. Must be from 1 to 9999.").optional(),
|
|
729
|
+
"toDate.day": z.number().describe("Day of month. Must be from 1 to 31 and valid for the year and month.").optional(),
|
|
730
|
+
"toDate.month": z.number().describe("Month of date. Must be from 1 to 12.").optional(),
|
|
731
|
+
"toDate.year": z.number().describe("Year of date. Must be from 1 to 9999.").optional(),
|
|
732
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
733
|
+
},
|
|
734
|
+
});
|
|
735
|
+
registerGeneratedTool(registry, {
|
|
736
|
+
name: "cloudsearch_stats_user_searchapplications_get",
|
|
737
|
+
cud: "read",
|
|
738
|
+
description: "Get the users statistics for search application. **Note:** This API requires a standard end user account to execute.",
|
|
739
|
+
method: { id: "cloudsearch.stats.user.searchapplications.get", httpMethod: "GET", path: "v1/stats/user/{+name}", baseUrl: "https://cloudsearch.googleapis.com/", requiredParams: ["name"] },
|
|
740
|
+
params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "fromDate.day", "api": "fromDate.day", "location": "query" }, { "field": "fromDate.month", "api": "fromDate.month", "location": "query" }, { "field": "fromDate.year", "api": "fromDate.year", "location": "query" }, { "field": "toDate.day", "api": "toDate.day", "location": "query" }, { "field": "toDate.month", "api": "toDate.month", "location": "query" }, { "field": "toDate.year", "api": "toDate.year", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
741
|
+
hasBody: false,
|
|
742
|
+
shape: {
|
|
743
|
+
account: accountField(),
|
|
744
|
+
name: z.string().describe("The resource id of the search application session stats, in the following format: searchapplications/{application_id}"),
|
|
745
|
+
"fromDate.day": z.number().describe("Day of month. Must be from 1 to 31 and valid for the year and month.").optional(),
|
|
746
|
+
"fromDate.month": z.number().describe("Month of date. Must be from 1 to 12.").optional(),
|
|
747
|
+
"fromDate.year": z.number().describe("Year of date. Must be from 1 to 9999.").optional(),
|
|
748
|
+
"toDate.day": z.number().describe("Day of month. Must be from 1 to 31 and valid for the year and month.").optional(),
|
|
749
|
+
"toDate.month": z.number().describe("Month of date. Must be from 1 to 12.").optional(),
|
|
750
|
+
"toDate.year": z.number().describe("Year of date. Must be from 1 to 9999.").optional(),
|
|
751
|
+
fields: z.string().optional().describe('Response field mask.'),
|
|
752
|
+
},
|
|
753
|
+
});
|
|
754
|
+
}
|