mcp-google-multi 6.0.0-beta.1 → 6.0.0-beta.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/README.md +5 -3
- package/dist/accounts.d.ts +22 -1
- package/dist/accounts.js +64 -16
- package/dist/api-probe.d.ts +5 -0
- package/dist/api-probe.js +23 -15
- package/dist/arg-normalize.d.ts +61 -4
- package/dist/arg-normalize.js +229 -4
- package/dist/arg-strict.d.ts +61 -0
- package/dist/arg-strict.js +193 -0
- package/dist/auth.d.ts +4 -3
- package/dist/auth.js +26 -85
- package/dist/boot-gates.d.ts +26 -0
- package/dist/boot-gates.js +38 -0
- package/dist/cimd-cache.d.ts +38 -0
- package/dist/cimd-cache.js +117 -0
- package/dist/client.d.ts +32 -2
- package/dist/client.js +0 -0
- package/dist/compose.d.ts +11 -0
- package/dist/compose.js +109 -0
- package/dist/config-file.d.ts +14 -0
- package/dist/config-file.js +41 -1
- package/dist/discover.js +38 -15
- package/dist/discovery-client.d.ts +11 -1
- package/dist/discovery-client.js +120 -18
- package/dist/doctor.d.ts +15 -3
- package/dist/doctor.js +151 -27
- package/dist/env-load.d.ts +11 -0
- package/dist/env-load.js +23 -1
- package/dist/executor.d.ts +3 -0
- package/dist/executor.js +16 -3
- package/dist/fanout.d.ts +9 -1
- package/dist/fanout.js +83 -14
- package/dist/fs-atomic.d.ts +11 -0
- package/dist/fs-atomic.js +219 -28
- package/dist/hint-provider.d.ts +129 -0
- package/dist/hint-provider.js +64 -0
- package/dist/http-transport.d.ts +73 -6
- package/dist/http-transport.js +350 -26
- package/dist/identity.d.ts +4 -1
- package/dist/identity.js +25 -6
- package/dist/index.js +142 -114
- package/dist/master-key.js +13 -5
- package/dist/mcp-token.d.ts +136 -19
- package/dist/mcp-token.js +569 -72
- package/dist/metrics-cli.d.ts +21 -0
- package/dist/metrics-cli.js +206 -0
- package/dist/metrics-tap.d.ts +12 -0
- package/dist/metrics-tap.js +95 -0
- package/dist/migrate-config.js +2 -2
- package/dist/oauth-as.d.ts +103 -3
- package/dist/oauth-as.js +374 -79
- package/dist/oauth-consent.d.ts +35 -10
- package/dist/oauth-consent.js +101 -39
- package/dist/outbound-allowlist.d.ts +34 -0
- package/dist/outbound-allowlist.js +111 -0
- package/dist/reauth-hint.d.ts +1 -1
- package/dist/reauth-hint.js +12 -8
- package/dist/registry-transfer.d.ts +5 -0
- package/dist/registry-transfer.js +65 -5
- package/dist/registry.d.ts +66 -2
- package/dist/registry.js +214 -18
- package/dist/scope-catalog.d.ts +11 -0
- package/dist/scope-catalog.js +39 -6
- package/dist/scope-observability.d.ts +8 -6
- package/dist/scope-observability.js +29 -13
- package/dist/services.d.ts +17 -4
- package/dist/services.js +77 -6
- package/dist/setup-prompt.d.ts +1 -1
- package/dist/setup-prompt.js +1 -1
- package/dist/ssrf-guard.d.ts +23 -9
- package/dist/ssrf-guard.js +101 -62
- package/dist/tenant-purge.d.ts +26 -0
- package/dist/tenant-purge.js +67 -0
- package/dist/token-store.d.ts +20 -2
- package/dist/token-store.js +0 -0
- package/dist/tools/_coerce.d.ts +5 -0
- package/dist/tools/_coerce.js +11 -0
- package/dist/tools/_errors.d.ts +34 -3
- package/dist/tools/_errors.js +346 -53
- package/dist/tools/_local-files.d.ts +9 -0
- package/dist/tools/_local-files.js +25 -2
- package/dist/tools/account-wizard.d.ts +34 -2
- package/dist/tools/account-wizard.js +223 -65
- package/dist/tools/accounts-tool.d.ts +7 -0
- package/dist/tools/accounts-tool.js +34 -18
- package/dist/tools/admin.d.ts +10 -1
- package/dist/tools/admin.js +21 -16
- package/dist/tools/analytics.d.ts +27 -0
- package/dist/tools/analytics.js +289 -0
- package/dist/tools/calendar.d.ts +9 -1
- package/dist/tools/calendar.js +93 -29
- package/dist/tools/chat.d.ts +10 -1
- package/dist/tools/chat.js +20 -12
- package/dist/tools/contacts.d.ts +2 -1
- package/dist/tools/contacts.js +74 -43
- package/dist/tools/docs.d.ts +2 -1
- package/dist/tools/docs.js +90 -84
- package/dist/tools/drive.d.ts +2 -1
- package/dist/tools/drive.js +197 -120
- package/dist/tools/forms.d.ts +10 -1
- package/dist/tools/forms.js +26 -19
- package/dist/tools/generated/_shared.d.ts +8 -1
- package/dist/tools/generated/_shared.js +18 -4
- package/dist/tools/generated/admin.d.ts +2 -1
- package/dist/tools/generated/admin.js +610 -479
- package/dist/tools/generated/analytics.d.ts +3 -0
- package/dist/tools/generated/analytics.js +981 -0
- package/dist/tools/generated/appsmarket.d.ts +2 -1
- package/dist/tools/generated/appsmarket.js +9 -9
- package/dist/tools/generated/calendar.d.ts +2 -1
- package/dist/tools/generated/calendar.js +83 -83
- package/dist/tools/generated/chat.d.ts +2 -1
- package/dist/tools/generated/chat.js +178 -151
- package/dist/tools/generated/classroom.d.ts +2 -1
- package/dist/tools/generated/classroom.js +467 -425
- package/dist/tools/generated/cloudidentity.d.ts +2 -1
- package/dist/tools/generated/cloudidentity.js +209 -201
- package/dist/tools/generated/cloudsearch.d.ts +2 -1
- package/dist/tools/generated/cloudsearch.js +139 -138
- package/dist/tools/generated/contacts.d.ts +2 -1
- package/dist/tools/generated/contacts.js +49 -40
- package/dist/tools/generated/drive.d.ts +2 -1
- package/dist/tools/generated/drive.js +133 -124
- package/dist/tools/generated/driveactivity.d.ts +2 -1
- package/dist/tools/generated/driveactivity.js +3 -3
- package/dist/tools/generated/drivelabels.d.ts +2 -1
- package/dist/tools/generated/drivelabels.js +113 -85
- package/dist/tools/generated/forms.d.ts +2 -1
- package/dist/tools/generated/forms.js +14 -14
- package/dist/tools/generated/gmail.d.ts +2 -1
- package/dist/tools/generated/gmail.js +253 -226
- package/dist/tools/generated/groupsmigration.d.ts +2 -1
- package/dist/tools/generated/groupsmigration.js +4 -4
- package/dist/tools/generated/groupssettings.d.ts +2 -1
- package/dist/tools/generated/groupssettings.js +10 -10
- package/dist/tools/generated/index.d.ts +2 -1
- package/dist/tools/generated/index.js +2 -0
- package/dist/tools/generated/keep.d.ts +2 -1
- package/dist/tools/generated/keep.js +23 -22
- package/dist/tools/generated/licensing.d.ts +2 -1
- package/dist/tools/generated/licensing.js +54 -38
- package/dist/tools/generated/meet.d.ts +2 -1
- package/dist/tools/generated/meet.js +41 -41
- package/dist/tools/generated/method-map.d.ts +2 -0
- package/dist/tools/generated/method-map.js +894 -0
- package/dist/tools/generated/postmaster.d.ts +2 -1
- package/dist/tools/generated/postmaster.js +12 -12
- package/dist/tools/generated/reseller.d.ts +2 -1
- package/dist/tools/generated/reseller.js +69 -63
- package/dist/tools/generated/script.d.ts +2 -1
- package/dist/tools/generated/script.js +62 -52
- package/dist/tools/generated/searchconsole.d.ts +2 -1
- package/dist/tools/generated/searchconsole.js +8 -6
- package/dist/tools/generated/sheets.d.ts +2 -1
- package/dist/tools/generated/sheets.js +25 -24
- package/dist/tools/generated/tasks.d.ts +2 -1
- package/dist/tools/generated/tasks.js +15 -9
- package/dist/tools/generated/vault.d.ts +2 -1
- package/dist/tools/generated/vault.js +132 -123
- package/dist/tools/generated/workspaceevents.d.ts +2 -1
- package/dist/tools/generated/workspaceevents.js +48 -47
- package/dist/tools/gmail.d.ts +12 -2
- package/dist/tools/gmail.js +95 -51
- package/dist/tools/google-api.d.ts +2 -3
- package/dist/tools/google-api.js +76 -33
- package/dist/tools/meet.d.ts +10 -1
- package/dist/tools/meet.js +18 -11
- package/dist/tools/searchconsole.d.ts +2 -1
- package/dist/tools/searchconsole.js +27 -23
- package/dist/tools/sheets.d.ts +2 -1
- package/dist/tools/sheets.js +72 -80
- package/dist/tools/slides.d.ts +10 -1
- package/dist/tools/slides.js +23 -16
- package/dist/tools/tasks.d.ts +2 -1
- package/dist/tools/tasks.js +35 -31
- package/dist/trim.d.ts +26 -0
- package/dist/trim.js +67 -0
- package/dist/usage-metrics.d.ts +178 -0
- package/dist/usage-metrics.js +621 -0
- package/dist/write-control.d.ts +27 -1
- package/dist/write-control.js +99 -12
- package/package.json +34 -3
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
import { coerceBoolean, coerceJson } from '../_coerce.js';
|
|
4
4
|
import { accountField, registerGeneratedTool } from './_shared.js';
|
|
5
|
-
export function registerCloudsearchGeneratedTools(registry) {
|
|
5
|
+
export function registerCloudsearchGeneratedTools(registry, deps = {}) {
|
|
6
6
|
// Interned method scope sets (shared across tools; see scope-observability).
|
|
7
7
|
const S_cloudsearch_v1 = [
|
|
8
8
|
["https://www.googleapis.com/auth/cloud_search", "https://www.googleapis.com/auth/cloud_search.debug"],
|
|
@@ -15,19 +15,19 @@ export function registerCloudsearchGeneratedTools(registry) {
|
|
|
15
15
|
];
|
|
16
16
|
registerGeneratedTool(registry, {
|
|
17
17
|
name: "cloudsearch_debug_datasources_items_check_access",
|
|
18
|
-
cud: "
|
|
18
|
+
cud: "read",
|
|
19
19
|
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",
|
|
20
20
|
method: { id: "cloudsearch.debug.datasources.items.checkAccess", httpMethod: "POST", path: "v1/debug/{+name}:checkAccess", baseUrl: "https://cloudsearch.googleapis.com/", requiredParams: ["name"], scopes: S_cloudsearch_v1[0] },
|
|
21
21
|
params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "debugOptions.enableDebugging", "api": "debugOptions.enableDebugging", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
22
22
|
hasBody: true,
|
|
23
23
|
shape: {
|
|
24
|
-
account: accountField(),
|
|
25
|
-
name: z.string().describe("Item name, format: datasources/{source_id}/items/{item_id}"),
|
|
24
|
+
account: accountField(() => registry.accountAliases()),
|
|
25
|
+
name: z.string().min(1).describe("Item name, format: datasources/{source_id}/items/{item_id}"),
|
|
26
26
|
"debugOptions.enableDebugging": coerceBoolean.describe("If you are asked by Google to help with debugging, set this field. Otherwise, ignore this field.").optional(),
|
|
27
27
|
body: coerceJson(z.record(z.string(), z.unknown())).describe("Principal JSON request body. Top-level fields: groupResourceName, gsuitePrincipal, userResourceName."),
|
|
28
28
|
fields: z.string().optional().describe('Response field mask.'),
|
|
29
29
|
},
|
|
30
|
-
});
|
|
30
|
+
}, deps);
|
|
31
31
|
registerGeneratedTool(registry, {
|
|
32
32
|
name: "cloudsearch_debug_datasources_items_search_by_view_url",
|
|
33
33
|
cud: "read",
|
|
@@ -36,12 +36,12 @@ export function registerCloudsearchGeneratedTools(registry) {
|
|
|
36
36
|
params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
37
37
|
hasBody: true,
|
|
38
38
|
shape: {
|
|
39
|
-
account: accountField(),
|
|
40
|
-
name: z.string().describe("Source name, format: datasources/{source_id}"),
|
|
39
|
+
account: accountField(() => registry.accountAliases()),
|
|
40
|
+
name: z.string().min(1).describe("Source name, format: datasources/{source_id}"),
|
|
41
41
|
body: coerceJson(z.record(z.string(), z.unknown())).describe("SearchItemsByViewUrlRequest JSON request body. Top-level fields: debugOptions, pageToken, viewUrl."),
|
|
42
42
|
fields: z.string().optional().describe('Response field mask.'),
|
|
43
43
|
},
|
|
44
|
-
});
|
|
44
|
+
}, deps);
|
|
45
45
|
registerGeneratedTool(registry, {
|
|
46
46
|
name: "cloudsearch_debug_datasources_items_unmappedids_list",
|
|
47
47
|
cud: "read",
|
|
@@ -50,14 +50,14 @@ export function registerCloudsearchGeneratedTools(registry) {
|
|
|
50
50
|
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" }],
|
|
51
51
|
hasBody: false,
|
|
52
52
|
shape: {
|
|
53
|
-
account: accountField(),
|
|
54
|
-
parent: z.string().describe("The name of the item, in the following format: datasources/{source_id}/items/{ID}"),
|
|
53
|
+
account: accountField(() => registry.accountAliases()),
|
|
54
|
+
parent: z.string().min(1).describe("The name of the item, in the following format: datasources/{source_id}/items/{ID}"),
|
|
55
55
|
"debugOptions.enableDebugging": coerceBoolean.describe("If you are asked by Google to help with debugging, set this field. Otherwise, ignore this field.").optional(),
|
|
56
56
|
pageSize: z.number().describe("Maximum number of items to fetch in a request. Defaults to 100.").optional(),
|
|
57
57
|
pageToken: z.string().describe("The next_page_token value returned from a previous List request, if any.").optional(),
|
|
58
58
|
fields: z.string().optional().describe('Response field mask.'),
|
|
59
59
|
},
|
|
60
|
-
});
|
|
60
|
+
}, deps);
|
|
61
61
|
registerGeneratedTool(registry, {
|
|
62
62
|
name: "cloudsearch_debug_identitysources_items_list_forunmappedidentity",
|
|
63
63
|
cud: "read",
|
|
@@ -66,8 +66,8 @@ export function registerCloudsearchGeneratedTools(registry) {
|
|
|
66
66
|
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" }],
|
|
67
67
|
hasBody: false,
|
|
68
68
|
shape: {
|
|
69
|
-
account: accountField(),
|
|
70
|
-
parent: z.string().describe("The name of the identity source, in the following format: identitysources/{source_id}}"),
|
|
69
|
+
account: accountField(() => registry.accountAliases()),
|
|
70
|
+
parent: z.string().min(1).describe("The name of the identity source, in the following format: identitysources/{source_id}}"),
|
|
71
71
|
"debugOptions.enableDebugging": coerceBoolean.describe("If you are asked by Google to help with debugging, set this field. Otherwise, ignore this field.").optional(),
|
|
72
72
|
groupResourceName: z.string().optional(),
|
|
73
73
|
pageSize: z.number().describe("Maximum number of items to fetch in a request. Defaults to 100.").optional(),
|
|
@@ -75,7 +75,7 @@ export function registerCloudsearchGeneratedTools(registry) {
|
|
|
75
75
|
userResourceName: z.string().optional(),
|
|
76
76
|
fields: z.string().optional().describe('Response field mask.'),
|
|
77
77
|
},
|
|
78
|
-
});
|
|
78
|
+
}, deps);
|
|
79
79
|
registerGeneratedTool(registry, {
|
|
80
80
|
name: "cloudsearch_debug_identitysources_unmappedids_list",
|
|
81
81
|
cud: "read",
|
|
@@ -84,15 +84,15 @@ export function registerCloudsearchGeneratedTools(registry) {
|
|
|
84
84
|
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" }],
|
|
85
85
|
hasBody: false,
|
|
86
86
|
shape: {
|
|
87
|
-
account: accountField(),
|
|
88
|
-
parent: z.string().describe("The name of the identity source, in the following format: identitysources/{source_id}"),
|
|
87
|
+
account: accountField(() => registry.accountAliases()),
|
|
88
|
+
parent: z.string().min(1).describe("The name of the identity source, in the following format: identitysources/{source_id}"),
|
|
89
89
|
"debugOptions.enableDebugging": coerceBoolean.describe("If you are asked by Google to help with debugging, set this field. Otherwise, ignore this field.").optional(),
|
|
90
90
|
pageSize: z.number().describe("Maximum number of items to fetch in a request. Defaults to 100.").optional(),
|
|
91
91
|
pageToken: z.string().describe("The next_page_token value returned from a previous List request, if any.").optional(),
|
|
92
92
|
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(),
|
|
93
93
|
fields: z.string().optional().describe('Response field mask.'),
|
|
94
94
|
},
|
|
95
|
-
});
|
|
95
|
+
}, deps);
|
|
96
96
|
registerGeneratedTool(registry, {
|
|
97
97
|
name: "cloudsearch_indexing_datasources_delete_schema",
|
|
98
98
|
cud: "delete",
|
|
@@ -101,12 +101,12 @@ export function registerCloudsearchGeneratedTools(registry) {
|
|
|
101
101
|
params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "debugOptions.enableDebugging", "api": "debugOptions.enableDebugging", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
102
102
|
hasBody: false,
|
|
103
103
|
shape: {
|
|
104
|
-
account: accountField(),
|
|
105
|
-
name: z.string().describe("The name of the data source to delete Schema. Format: datasources/{source_id}"),
|
|
104
|
+
account: accountField(() => registry.accountAliases()),
|
|
105
|
+
name: z.string().min(1).describe("The name of the data source to delete Schema. Format: datasources/{source_id}"),
|
|
106
106
|
"debugOptions.enableDebugging": coerceBoolean.describe("If you are asked by Google to help with debugging, set this field. Otherwise, ignore this field.").optional(),
|
|
107
107
|
fields: z.string().optional().describe('Response field mask.'),
|
|
108
108
|
},
|
|
109
|
-
});
|
|
109
|
+
}, deps);
|
|
110
110
|
registerGeneratedTool(registry, {
|
|
111
111
|
name: "cloudsearch_indexing_datasources_get_schema",
|
|
112
112
|
cud: "read",
|
|
@@ -115,12 +115,12 @@ export function registerCloudsearchGeneratedTools(registry) {
|
|
|
115
115
|
params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "debugOptions.enableDebugging", "api": "debugOptions.enableDebugging", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
116
116
|
hasBody: false,
|
|
117
117
|
shape: {
|
|
118
|
-
account: accountField(),
|
|
119
|
-
name: z.string().describe("The name of the data source to get Schema. Format: datasources/{source_id}"),
|
|
118
|
+
account: accountField(() => registry.accountAliases()),
|
|
119
|
+
name: z.string().min(1).describe("The name of the data source to get Schema. Format: datasources/{source_id}"),
|
|
120
120
|
"debugOptions.enableDebugging": coerceBoolean.describe("If you are asked by Google to help with debugging, set this field. Otherwise, ignore this field.").optional(),
|
|
121
121
|
fields: z.string().optional().describe('Response field mask.'),
|
|
122
122
|
},
|
|
123
|
-
});
|
|
123
|
+
}, deps);
|
|
124
124
|
registerGeneratedTool(registry, {
|
|
125
125
|
name: "cloudsearch_indexing_datasources_items_delete",
|
|
126
126
|
cud: "delete",
|
|
@@ -129,15 +129,15 @@ export function registerCloudsearchGeneratedTools(registry) {
|
|
|
129
129
|
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" }],
|
|
130
130
|
hasBody: false,
|
|
131
131
|
shape: {
|
|
132
|
-
account: accountField(),
|
|
133
|
-
name: z.string().describe("Required. The name of the item to delete. Format: datasources/{source_id}/items/{item_id}"),
|
|
132
|
+
account: accountField(() => registry.accountAliases()),
|
|
133
|
+
name: z.string().min(1).describe("Required. The name of the item to delete. Format: datasources/{source_id}/items/{item_id}"),
|
|
134
134
|
connectorName: z.string().describe("The name of connector making this call. Format: datasources/{source_id}/connectors/{ID}").optional(),
|
|
135
135
|
"debugOptions.enableDebugging": coerceBoolean.describe("If you are asked by Google to help with debugging, set this field. Otherwise, ignore this field.").optional(),
|
|
136
136
|
mode: z.enum(["UNSPECIFIED", "SYNCHRONOUS", "ASYNCHRONOUS"]).describe("Required. The RequestMode for this request.").optional(),
|
|
137
137
|
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(),
|
|
138
138
|
fields: z.string().optional().describe('Response field mask.'),
|
|
139
139
|
},
|
|
140
|
-
});
|
|
140
|
+
}, deps);
|
|
141
141
|
registerGeneratedTool(registry, {
|
|
142
142
|
name: "cloudsearch_indexing_datasources_items_delete_queue_items",
|
|
143
143
|
cud: "delete",
|
|
@@ -146,12 +146,12 @@ export function registerCloudsearchGeneratedTools(registry) {
|
|
|
146
146
|
params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
147
147
|
hasBody: true,
|
|
148
148
|
shape: {
|
|
149
|
-
account: accountField(),
|
|
150
|
-
name: z.string().describe("The name of the Data Source to delete items in a queue. Format: datasources/{source_id}"),
|
|
149
|
+
account: accountField(() => registry.accountAliases()),
|
|
150
|
+
name: z.string().min(1).describe("The name of the Data Source to delete items in a queue. Format: datasources/{source_id}"),
|
|
151
151
|
body: coerceJson(z.record(z.string(), z.unknown())).describe("DeleteQueueItemsRequest JSON request body. Top-level fields: connectorName, debugOptions, queue."),
|
|
152
152
|
fields: z.string().optional().describe('Response field mask.'),
|
|
153
153
|
},
|
|
154
|
-
});
|
|
154
|
+
}, deps);
|
|
155
155
|
registerGeneratedTool(registry, {
|
|
156
156
|
name: "cloudsearch_indexing_datasources_items_get",
|
|
157
157
|
cud: "read",
|
|
@@ -160,13 +160,13 @@ export function registerCloudsearchGeneratedTools(registry) {
|
|
|
160
160
|
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" }],
|
|
161
161
|
hasBody: false,
|
|
162
162
|
shape: {
|
|
163
|
-
account: accountField(),
|
|
164
|
-
name: z.string().describe("The name of the item to get info. Format: datasources/{source_id}/items/{item_id}"),
|
|
163
|
+
account: accountField(() => registry.accountAliases()),
|
|
164
|
+
name: z.string().min(1).describe("The name of the item to get info. Format: datasources/{source_id}/items/{item_id}"),
|
|
165
165
|
connectorName: z.string().describe("The name of connector making this call. Format: datasources/{source_id}/connectors/{ID}").optional(),
|
|
166
166
|
"debugOptions.enableDebugging": coerceBoolean.describe("If you are asked by Google to help with debugging, set this field. Otherwise, ignore this field.").optional(),
|
|
167
167
|
fields: z.string().optional().describe('Response field mask.'),
|
|
168
168
|
},
|
|
169
|
-
});
|
|
169
|
+
}, deps);
|
|
170
170
|
registerGeneratedTool(registry, {
|
|
171
171
|
name: "cloudsearch_indexing_datasources_items_index",
|
|
172
172
|
cud: "create",
|
|
@@ -175,12 +175,12 @@ export function registerCloudsearchGeneratedTools(registry) {
|
|
|
175
175
|
params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
176
176
|
hasBody: true,
|
|
177
177
|
shape: {
|
|
178
|
-
account: accountField(),
|
|
179
|
-
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."),
|
|
178
|
+
account: accountField(() => registry.accountAliases()),
|
|
179
|
+
name: z.string().min(1).describe("The name of the Item. Format: datasources/{source_id}/items/{item_id} This is a required field. The maximum length is 1536 characters."),
|
|
180
180
|
body: coerceJson(z.record(z.string(), z.unknown())).describe("IndexItemRequest JSON request body. Top-level fields: connectorName, debugOptions, indexItemOptions, item, mode."),
|
|
181
181
|
fields: z.string().optional().describe('Response field mask.'),
|
|
182
182
|
},
|
|
183
|
-
});
|
|
183
|
+
}, deps);
|
|
184
184
|
registerGeneratedTool(registry, {
|
|
185
185
|
name: "cloudsearch_indexing_datasources_items_list",
|
|
186
186
|
cud: "read",
|
|
@@ -189,8 +189,8 @@ export function registerCloudsearchGeneratedTools(registry) {
|
|
|
189
189
|
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" }],
|
|
190
190
|
hasBody: false,
|
|
191
191
|
shape: {
|
|
192
|
-
account: accountField(),
|
|
193
|
-
name: z.string().describe("The name of the Data Source to list Items. Format: datasources/{source_id}"),
|
|
192
|
+
account: accountField(() => registry.accountAliases()),
|
|
193
|
+
name: z.string().min(1).describe("The name of the Data Source to list Items. Format: datasources/{source_id}"),
|
|
194
194
|
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(),
|
|
195
195
|
connectorName: z.string().describe("The name of connector making this call. Format: datasources/{source_id}/connectors/{ID}").optional(),
|
|
196
196
|
"debugOptions.enableDebugging": coerceBoolean.describe("If you are asked by Google to help with debugging, set this field. Otherwise, ignore this field.").optional(),
|
|
@@ -198,7 +198,7 @@ export function registerCloudsearchGeneratedTools(registry) {
|
|
|
198
198
|
pageToken: z.string().describe("The next_page_token value returned from a previous List request, if any.").optional(),
|
|
199
199
|
fields: z.string().optional().describe('Response field mask.'),
|
|
200
200
|
},
|
|
201
|
-
});
|
|
201
|
+
}, deps);
|
|
202
202
|
registerGeneratedTool(registry, {
|
|
203
203
|
name: "cloudsearch_indexing_datasources_items_poll",
|
|
204
204
|
cud: "create",
|
|
@@ -207,12 +207,12 @@ export function registerCloudsearchGeneratedTools(registry) {
|
|
|
207
207
|
params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
208
208
|
hasBody: true,
|
|
209
209
|
shape: {
|
|
210
|
-
account: accountField(),
|
|
211
|
-
name: z.string().describe("The name of the Data Source to poll items. Format: datasources/{source_id}"),
|
|
210
|
+
account: accountField(() => registry.accountAliases()),
|
|
211
|
+
name: z.string().min(1).describe("The name of the Data Source to poll items. Format: datasources/{source_id}"),
|
|
212
212
|
body: coerceJson(z.record(z.string(), z.unknown())).describe("PollItemsRequest JSON request body. Top-level fields: connectorName, debugOptions, limit, queue, statusCodes."),
|
|
213
213
|
fields: z.string().optional().describe('Response field mask.'),
|
|
214
214
|
},
|
|
215
|
-
});
|
|
215
|
+
}, deps);
|
|
216
216
|
registerGeneratedTool(registry, {
|
|
217
217
|
name: "cloudsearch_indexing_datasources_items_push",
|
|
218
218
|
cud: "create",
|
|
@@ -221,26 +221,26 @@ export function registerCloudsearchGeneratedTools(registry) {
|
|
|
221
221
|
params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
222
222
|
hasBody: true,
|
|
223
223
|
shape: {
|
|
224
|
-
account: accountField(),
|
|
225
|
-
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."),
|
|
224
|
+
account: accountField(() => registry.accountAliases()),
|
|
225
|
+
name: z.string().min(1).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."),
|
|
226
226
|
body: coerceJson(z.record(z.string(), z.unknown())).describe("PushItemRequest JSON request body. Top-level fields: connectorName, debugOptions, item."),
|
|
227
227
|
fields: z.string().optional().describe('Response field mask.'),
|
|
228
228
|
},
|
|
229
|
-
});
|
|
229
|
+
}, deps);
|
|
230
230
|
registerGeneratedTool(registry, {
|
|
231
231
|
name: "cloudsearch_indexing_datasources_items_unreserve",
|
|
232
|
-
cud: "
|
|
232
|
+
cud: "delete",
|
|
233
233
|
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",
|
|
234
234
|
method: { id: "cloudsearch.indexing.datasources.items.unreserve", httpMethod: "POST", path: "v1/indexing/{+name}/items:unreserve", baseUrl: "https://cloudsearch.googleapis.com/", requiredParams: ["name"], scopes: S_cloudsearch_v1[2] },
|
|
235
235
|
params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
236
236
|
hasBody: true,
|
|
237
237
|
shape: {
|
|
238
|
-
account: accountField(),
|
|
239
|
-
name: z.string().describe("The name of the Data Source to unreserve all items. Format: datasources/{source_id}"),
|
|
238
|
+
account: accountField(() => registry.accountAliases()),
|
|
239
|
+
name: z.string().min(1).describe("The name of the Data Source to unreserve all items. Format: datasources/{source_id}"),
|
|
240
240
|
body: coerceJson(z.record(z.string(), z.unknown())).describe("UnreserveItemsRequest JSON request body. Top-level fields: connectorName, debugOptions, queue."),
|
|
241
241
|
fields: z.string().optional().describe('Response field mask.'),
|
|
242
242
|
},
|
|
243
|
-
});
|
|
243
|
+
}, deps);
|
|
244
244
|
registerGeneratedTool(registry, {
|
|
245
245
|
name: "cloudsearch_indexing_datasources_items_upload",
|
|
246
246
|
cud: "create",
|
|
@@ -249,12 +249,12 @@ export function registerCloudsearchGeneratedTools(registry) {
|
|
|
249
249
|
params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
250
250
|
hasBody: true,
|
|
251
251
|
shape: {
|
|
252
|
-
account: accountField(),
|
|
253
|
-
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."),
|
|
252
|
+
account: accountField(() => registry.accountAliases()),
|
|
253
|
+
name: z.string().min(1).describe("The name of the Item to start a resumable upload. Format: datasources/{source_id}/items/{item_id}. The maximum length is 1536 bytes."),
|
|
254
254
|
body: coerceJson(z.record(z.string(), z.unknown())).describe("StartUploadItemRequest JSON request body. Top-level fields: connectorName, debugOptions."),
|
|
255
255
|
fields: z.string().optional().describe('Response field mask.'),
|
|
256
256
|
},
|
|
257
|
-
});
|
|
257
|
+
}, deps);
|
|
258
258
|
registerGeneratedTool(registry, {
|
|
259
259
|
name: "cloudsearch_indexing_datasources_update_schema",
|
|
260
260
|
cud: "update",
|
|
@@ -263,12 +263,12 @@ export function registerCloudsearchGeneratedTools(registry) {
|
|
|
263
263
|
params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
264
264
|
hasBody: true,
|
|
265
265
|
shape: {
|
|
266
|
-
account: accountField(),
|
|
267
|
-
name: z.string().describe("The name of the data source to update Schema. Format: datasources/{source_id}"),
|
|
266
|
+
account: accountField(() => registry.accountAliases()),
|
|
267
|
+
name: z.string().min(1).describe("The name of the data source to update Schema. Format: datasources/{source_id}"),
|
|
268
268
|
body: coerceJson(z.record(z.string(), z.unknown())).describe("UpdateSchemaRequest JSON request body. Top-level fields: debugOptions, schema, validateOnly."),
|
|
269
269
|
fields: z.string().optional().describe('Response field mask.'),
|
|
270
270
|
},
|
|
271
|
-
});
|
|
271
|
+
}, deps);
|
|
272
272
|
registerGeneratedTool(registry, {
|
|
273
273
|
name: "cloudsearch_initialize_customer",
|
|
274
274
|
cud: "create",
|
|
@@ -276,12 +276,12 @@ export function registerCloudsearchGeneratedTools(registry) {
|
|
|
276
276
|
method: { id: "cloudsearch.initializeCustomer", httpMethod: "POST", path: "v1:initializeCustomer", baseUrl: "https://cloudsearch.googleapis.com/", requiredParams: [], scopes: S_cloudsearch_v1[1] },
|
|
277
277
|
params: [{ "field": "fields", "api": "fields", "location": "query" }],
|
|
278
278
|
hasBody: true,
|
|
279
|
+
bodyParams: [],
|
|
279
280
|
shape: {
|
|
280
|
-
account: accountField(),
|
|
281
|
-
body: coerceJson(z.record(z.string(), z.unknown())).describe("InitializeCustomerRequest JSON request body."),
|
|
281
|
+
account: accountField(() => registry.accountAliases()),
|
|
282
282
|
fields: z.string().optional().describe('Response field mask.'),
|
|
283
283
|
},
|
|
284
|
-
});
|
|
284
|
+
}, deps);
|
|
285
285
|
registerGeneratedTool(registry, {
|
|
286
286
|
name: "cloudsearch_media_upload",
|
|
287
287
|
cud: "create",
|
|
@@ -289,13 +289,14 @@ export function registerCloudsearchGeneratedTools(registry) {
|
|
|
289
289
|
method: { id: "cloudsearch.media.upload", httpMethod: "POST", path: "v1/media/{+resourceName}", baseUrl: "https://cloudsearch.googleapis.com/", requiredParams: ["resourceName"], scopes: S_cloudsearch_v1[2] },
|
|
290
290
|
params: [{ "field": "resourceName", "api": "resourceName", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
291
291
|
hasBody: true,
|
|
292
|
+
bodyParams: [{ "field": "resourceName_", "api": "resourceName" }],
|
|
292
293
|
shape: {
|
|
293
|
-
account: accountField(),
|
|
294
|
-
resourceName: z.string().describe("Name of the media that is being downloaded. See ReadRequest.resource_name."),
|
|
295
|
-
|
|
294
|
+
account: accountField(() => registry.accountAliases()),
|
|
295
|
+
resourceName: z.string().min(1).describe("Name of the media that is being downloaded. See ReadRequest.resource_name."),
|
|
296
|
+
resourceName_: z.string().describe("Name of the media resource.").optional(),
|
|
296
297
|
fields: z.string().optional().describe('Response field mask.'),
|
|
297
298
|
},
|
|
298
|
-
});
|
|
299
|
+
}, deps);
|
|
299
300
|
registerGeneratedTool(registry, {
|
|
300
301
|
name: "cloudsearch_operations_get",
|
|
301
302
|
cud: "read",
|
|
@@ -304,11 +305,11 @@ export function registerCloudsearchGeneratedTools(registry) {
|
|
|
304
305
|
params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
305
306
|
hasBody: false,
|
|
306
307
|
shape: {
|
|
307
|
-
account: accountField(),
|
|
308
|
-
name: z.string().describe("The name of the operation resource."),
|
|
308
|
+
account: accountField(() => registry.accountAliases()),
|
|
309
|
+
name: z.string().min(1).describe("The name of the operation resource."),
|
|
309
310
|
fields: z.string().optional().describe('Response field mask.'),
|
|
310
311
|
},
|
|
311
|
-
});
|
|
312
|
+
}, deps);
|
|
312
313
|
registerGeneratedTool(registry, {
|
|
313
314
|
name: "cloudsearch_operations_lro_list",
|
|
314
315
|
cud: "read",
|
|
@@ -317,15 +318,15 @@ export function registerCloudsearchGeneratedTools(registry) {
|
|
|
317
318
|
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" }],
|
|
318
319
|
hasBody: false,
|
|
319
320
|
shape: {
|
|
320
|
-
account: accountField(),
|
|
321
|
-
name: z.string().describe("The name of the operation's parent resource."),
|
|
321
|
+
account: accountField(() => registry.accountAliases()),
|
|
322
|
+
name: z.string().min(1).describe("The name of the operation's parent resource."),
|
|
322
323
|
filter: z.string().describe("The standard list filter.").optional(),
|
|
323
324
|
pageSize: z.number().describe("The standard list page size.").optional(),
|
|
324
325
|
pageToken: z.string().describe("The standard list page token.").optional(),
|
|
325
326
|
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(),
|
|
326
327
|
fields: z.string().optional().describe('Response field mask.'),
|
|
327
328
|
},
|
|
328
|
-
});
|
|
329
|
+
}, deps);
|
|
329
330
|
registerGeneratedTool(registry, {
|
|
330
331
|
name: "cloudsearch_query_remove_activity",
|
|
331
332
|
cud: "delete",
|
|
@@ -334,11 +335,11 @@ export function registerCloudsearchGeneratedTools(registry) {
|
|
|
334
335
|
params: [{ "field": "fields", "api": "fields", "location": "query" }],
|
|
335
336
|
hasBody: true,
|
|
336
337
|
shape: {
|
|
337
|
-
account: accountField(),
|
|
338
|
+
account: accountField(() => registry.accountAliases()),
|
|
338
339
|
body: coerceJson(z.record(z.string(), z.unknown())).describe("RemoveActivityRequest JSON request body. Top-level fields: requestOptions, userActivity."),
|
|
339
340
|
fields: z.string().optional().describe('Response field mask.'),
|
|
340
341
|
},
|
|
341
|
-
});
|
|
342
|
+
}, deps);
|
|
342
343
|
registerGeneratedTool(registry, {
|
|
343
344
|
name: "cloudsearch_query_search",
|
|
344
345
|
cud: "read",
|
|
@@ -347,11 +348,11 @@ export function registerCloudsearchGeneratedTools(registry) {
|
|
|
347
348
|
params: [{ "field": "fields", "api": "fields", "location": "query" }],
|
|
348
349
|
hasBody: true,
|
|
349
350
|
shape: {
|
|
350
|
-
account: accountField(),
|
|
351
|
+
account: accountField(() => registry.accountAliases()),
|
|
351
352
|
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."),
|
|
352
353
|
fields: z.string().optional().describe('Response field mask.'),
|
|
353
354
|
},
|
|
354
|
-
});
|
|
355
|
+
}, deps);
|
|
355
356
|
registerGeneratedTool(registry, {
|
|
356
357
|
name: "cloudsearch_query_sources_list",
|
|
357
358
|
cud: "read",
|
|
@@ -360,7 +361,7 @@ export function registerCloudsearchGeneratedTools(registry) {
|
|
|
360
361
|
params: [{ "field": "pageToken", "api": "pageToken", "location": "query" }, { "field": "requestOptions.clientDisplayLanguageCode", "api": "requestOptions.clientDisplayLanguageCode", "location": "query" }, { "field": "requestOptions.countryCode", "api": "requestOptions.countryCode", "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" }],
|
|
361
362
|
hasBody: false,
|
|
362
363
|
shape: {
|
|
363
|
-
account: accountField(),
|
|
364
|
+
account: accountField(() => registry.accountAliases()),
|
|
364
365
|
pageToken: z.string().describe("Number of sources to return in the response.").optional(),
|
|
365
366
|
"requestOptions.clientDisplayLanguageCode": z.string().describe("The BCP-47 language code, such as \"pt\" or \"en\". It represents the user's preferred Display Language.").optional(),
|
|
366
367
|
"requestOptions.countryCode": z.string().describe("Optional. Specifies the country/region where the query originated, as a lowercase ISO 3166-1 alpha-2 region code (using 'uk' instead of 'gb' for the United Kingdom).").optional(),
|
|
@@ -370,20 +371,20 @@ export function registerCloudsearchGeneratedTools(registry) {
|
|
|
370
371
|
"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(),
|
|
371
372
|
fields: z.string().optional().describe('Response field mask.'),
|
|
372
373
|
},
|
|
373
|
-
});
|
|
374
|
+
}, deps);
|
|
374
375
|
registerGeneratedTool(registry, {
|
|
375
376
|
name: "cloudsearch_query_suggest",
|
|
376
|
-
cud: "
|
|
377
|
+
cud: "read",
|
|
377
378
|
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",
|
|
378
379
|
method: { id: "cloudsearch.query.suggest", httpMethod: "POST", path: "v1/query/suggest", baseUrl: "https://cloudsearch.googleapis.com/", requiredParams: [], scopes: S_cloudsearch_v1[4] },
|
|
379
380
|
params: [{ "field": "fields", "api": "fields", "location": "query" }],
|
|
380
381
|
hasBody: true,
|
|
381
382
|
shape: {
|
|
382
|
-
account: accountField(),
|
|
383
|
+
account: accountField(() => registry.accountAliases()),
|
|
383
384
|
body: coerceJson(z.record(z.string(), z.unknown())).describe("SuggestRequest JSON request body. Top-level fields: dataSourceRestrictions, query, requestOptions."),
|
|
384
385
|
fields: z.string().optional().describe('Response field mask.'),
|
|
385
386
|
},
|
|
386
|
-
});
|
|
387
|
+
}, deps);
|
|
387
388
|
registerGeneratedTool(registry, {
|
|
388
389
|
name: "cloudsearch_settings_datasources_create",
|
|
389
390
|
cud: "create",
|
|
@@ -392,11 +393,11 @@ export function registerCloudsearchGeneratedTools(registry) {
|
|
|
392
393
|
params: [{ "field": "fields", "api": "fields", "location": "query" }],
|
|
393
394
|
hasBody: true,
|
|
394
395
|
shape: {
|
|
395
|
-
account: accountField(),
|
|
396
|
+
account: accountField(() => registry.accountAliases()),
|
|
396
397
|
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."),
|
|
397
398
|
fields: z.string().optional().describe('Response field mask.'),
|
|
398
399
|
},
|
|
399
|
-
});
|
|
400
|
+
}, deps);
|
|
400
401
|
registerGeneratedTool(registry, {
|
|
401
402
|
name: "cloudsearch_settings_datasources_delete",
|
|
402
403
|
cud: "delete",
|
|
@@ -405,12 +406,12 @@ export function registerCloudsearchGeneratedTools(registry) {
|
|
|
405
406
|
params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "debugOptions.enableDebugging", "api": "debugOptions.enableDebugging", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
406
407
|
hasBody: false,
|
|
407
408
|
shape: {
|
|
408
|
-
account: accountField(),
|
|
409
|
-
name: z.string().describe("The name of the datasource. Format: datasources/{source_id}."),
|
|
409
|
+
account: accountField(() => registry.accountAliases()),
|
|
410
|
+
name: z.string().min(1).describe("The name of the datasource. Format: datasources/{source_id}."),
|
|
410
411
|
"debugOptions.enableDebugging": coerceBoolean.describe("If you are asked by Google to help with debugging, set this field. Otherwise, ignore this field.").optional(),
|
|
411
412
|
fields: z.string().optional().describe('Response field mask.'),
|
|
412
413
|
},
|
|
413
|
-
});
|
|
414
|
+
}, deps);
|
|
414
415
|
registerGeneratedTool(registry, {
|
|
415
416
|
name: "cloudsearch_settings_datasources_get",
|
|
416
417
|
cud: "read",
|
|
@@ -419,12 +420,12 @@ export function registerCloudsearchGeneratedTools(registry) {
|
|
|
419
420
|
params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "debugOptions.enableDebugging", "api": "debugOptions.enableDebugging", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
420
421
|
hasBody: false,
|
|
421
422
|
shape: {
|
|
422
|
-
account: accountField(),
|
|
423
|
-
name: z.string().describe("The name of the datasource resource. Format: datasources/{source_id}."),
|
|
423
|
+
account: accountField(() => registry.accountAliases()),
|
|
424
|
+
name: z.string().min(1).describe("The name of the datasource resource. Format: datasources/{source_id}."),
|
|
424
425
|
"debugOptions.enableDebugging": coerceBoolean.describe("If you are asked by Google to help with debugging, set this field. Otherwise, ignore this field.").optional(),
|
|
425
426
|
fields: z.string().optional().describe('Response field mask.'),
|
|
426
427
|
},
|
|
427
|
-
});
|
|
428
|
+
}, deps);
|
|
428
429
|
registerGeneratedTool(registry, {
|
|
429
430
|
name: "cloudsearch_settings_datasources_list",
|
|
430
431
|
cud: "read",
|
|
@@ -433,13 +434,13 @@ export function registerCloudsearchGeneratedTools(registry) {
|
|
|
433
434
|
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" }],
|
|
434
435
|
hasBody: false,
|
|
435
436
|
shape: {
|
|
436
|
-
account: accountField(),
|
|
437
|
+
account: accountField(() => registry.accountAliases()),
|
|
437
438
|
"debugOptions.enableDebugging": coerceBoolean.describe("If you are asked by Google to help with debugging, set this field. Otherwise, ignore this field.").optional(),
|
|
438
439
|
pageSize: z.number().describe("Maximum number of datasources to fetch in a request. The max value is 1000. The default value is 1000.").optional(),
|
|
439
440
|
pageToken: z.string().describe("Starting index of the results.").optional(),
|
|
440
441
|
fields: z.string().optional().describe('Response field mask.'),
|
|
441
442
|
},
|
|
442
|
-
});
|
|
443
|
+
}, deps);
|
|
443
444
|
registerGeneratedTool(registry, {
|
|
444
445
|
name: "cloudsearch_settings_datasources_patch",
|
|
445
446
|
cud: "update",
|
|
@@ -448,14 +449,14 @@ export function registerCloudsearchGeneratedTools(registry) {
|
|
|
448
449
|
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" }],
|
|
449
450
|
hasBody: true,
|
|
450
451
|
shape: {
|
|
451
|
-
account: accountField(),
|
|
452
|
-
name: z.string().describe("The name of the datasource resource. Format: datasources/{source_id}. The name is ignored when creating a datasource."),
|
|
452
|
+
account: accountField(() => registry.accountAliases()),
|
|
453
|
+
name: z.string().min(1).describe("The name of the datasource resource. Format: datasources/{source_id}. The name is ignored when creating a datasource."),
|
|
453
454
|
"debugOptions.enableDebugging": coerceBoolean.describe("If you are asked by Google to help with debugging, set this field. Otherwise, ignore this field.").optional(),
|
|
454
455
|
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(),
|
|
455
456
|
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."),
|
|
456
457
|
fields: z.string().optional().describe('Response field mask.'),
|
|
457
458
|
},
|
|
458
|
-
});
|
|
459
|
+
}, deps);
|
|
459
460
|
registerGeneratedTool(registry, {
|
|
460
461
|
name: "cloudsearch_settings_datasources_update",
|
|
461
462
|
cud: "update",
|
|
@@ -464,12 +465,12 @@ export function registerCloudsearchGeneratedTools(registry) {
|
|
|
464
465
|
params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
465
466
|
hasBody: true,
|
|
466
467
|
shape: {
|
|
467
|
-
account: accountField(),
|
|
468
|
-
name: z.string().describe("The name of the datasource resource. Format: datasources/{source_id}. The name is ignored when creating a datasource."),
|
|
468
|
+
account: accountField(() => registry.accountAliases()),
|
|
469
|
+
name: z.string().min(1).describe("The name of the datasource resource. Format: datasources/{source_id}. The name is ignored when creating a datasource."),
|
|
469
470
|
body: coerceJson(z.record(z.string(), z.unknown())).describe("UpdateDataSourceRequest JSON request body. Top-level fields: debugOptions, source, updateMask."),
|
|
470
471
|
fields: z.string().optional().describe('Response field mask.'),
|
|
471
472
|
},
|
|
472
|
-
});
|
|
473
|
+
}, deps);
|
|
473
474
|
registerGeneratedTool(registry, {
|
|
474
475
|
name: "cloudsearch_settings_get_customer",
|
|
475
476
|
cud: "read",
|
|
@@ -478,10 +479,10 @@ export function registerCloudsearchGeneratedTools(registry) {
|
|
|
478
479
|
params: [{ "field": "fields", "api": "fields", "location": "query" }],
|
|
479
480
|
hasBody: false,
|
|
480
481
|
shape: {
|
|
481
|
-
account: accountField(),
|
|
482
|
+
account: accountField(() => registry.accountAliases()),
|
|
482
483
|
fields: z.string().optional().describe('Response field mask.'),
|
|
483
484
|
},
|
|
484
|
-
});
|
|
485
|
+
}, deps);
|
|
485
486
|
registerGeneratedTool(registry, {
|
|
486
487
|
name: "cloudsearch_settings_searchapplications_create",
|
|
487
488
|
cud: "create",
|
|
@@ -490,11 +491,11 @@ export function registerCloudsearchGeneratedTools(registry) {
|
|
|
490
491
|
params: [{ "field": "fields", "api": "fields", "location": "query" }],
|
|
491
492
|
hasBody: true,
|
|
492
493
|
shape: {
|
|
493
|
-
account: accountField(),
|
|
494
|
+
account: accountField(() => registry.accountAliases()),
|
|
494
495
|
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."),
|
|
495
496
|
fields: z.string().optional().describe('Response field mask.'),
|
|
496
497
|
},
|
|
497
|
-
});
|
|
498
|
+
}, deps);
|
|
498
499
|
registerGeneratedTool(registry, {
|
|
499
500
|
name: "cloudsearch_settings_searchapplications_delete",
|
|
500
501
|
cud: "delete",
|
|
@@ -503,12 +504,12 @@ export function registerCloudsearchGeneratedTools(registry) {
|
|
|
503
504
|
params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "debugOptions.enableDebugging", "api": "debugOptions.enableDebugging", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
504
505
|
hasBody: false,
|
|
505
506
|
shape: {
|
|
506
|
-
account: accountField(),
|
|
507
|
-
name: z.string().describe("The name of the search application to be deleted. Format: applications/{application_id}."),
|
|
507
|
+
account: accountField(() => registry.accountAliases()),
|
|
508
|
+
name: z.string().min(1).describe("The name of the search application to be deleted. Format: applications/{application_id}."),
|
|
508
509
|
"debugOptions.enableDebugging": coerceBoolean.describe("If you are asked by Google to help with debugging, set this field. Otherwise, ignore this field.").optional(),
|
|
509
510
|
fields: z.string().optional().describe('Response field mask.'),
|
|
510
511
|
},
|
|
511
|
-
});
|
|
512
|
+
}, deps);
|
|
512
513
|
registerGeneratedTool(registry, {
|
|
513
514
|
name: "cloudsearch_settings_searchapplications_get",
|
|
514
515
|
cud: "read",
|
|
@@ -517,12 +518,12 @@ export function registerCloudsearchGeneratedTools(registry) {
|
|
|
517
518
|
params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "debugOptions.enableDebugging", "api": "debugOptions.enableDebugging", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
518
519
|
hasBody: false,
|
|
519
520
|
shape: {
|
|
520
|
-
account: accountField(),
|
|
521
|
-
name: z.string().describe("The name of the search application. Format: searchapplications/{application_id}."),
|
|
521
|
+
account: accountField(() => registry.accountAliases()),
|
|
522
|
+
name: z.string().min(1).describe("The name of the search application. Format: searchapplications/{application_id}."),
|
|
522
523
|
"debugOptions.enableDebugging": coerceBoolean.describe("If you are asked by Google to help with debugging, set this field. Otherwise, ignore this field.").optional(),
|
|
523
524
|
fields: z.string().optional().describe('Response field mask.'),
|
|
524
525
|
},
|
|
525
|
-
});
|
|
526
|
+
}, deps);
|
|
526
527
|
registerGeneratedTool(registry, {
|
|
527
528
|
name: "cloudsearch_settings_searchapplications_list",
|
|
528
529
|
cud: "read",
|
|
@@ -531,13 +532,13 @@ export function registerCloudsearchGeneratedTools(registry) {
|
|
|
531
532
|
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" }],
|
|
532
533
|
hasBody: false,
|
|
533
534
|
shape: {
|
|
534
|
-
account: accountField(),
|
|
535
|
+
account: accountField(() => registry.accountAliases()),
|
|
535
536
|
"debugOptions.enableDebugging": coerceBoolean.describe("If you are asked by Google to help with debugging, set this field. Otherwise, ignore this field.").optional(),
|
|
536
537
|
pageSize: z.number().describe("The maximum number of items to return.").optional(),
|
|
537
538
|
pageToken: z.string().describe("The next_page_token value returned from a previous List request, if any. The default value is 10").optional(),
|
|
538
539
|
fields: z.string().optional().describe('Response field mask.'),
|
|
539
540
|
},
|
|
540
|
-
});
|
|
541
|
+
}, deps);
|
|
541
542
|
registerGeneratedTool(registry, {
|
|
542
543
|
name: "cloudsearch_settings_searchapplications_patch",
|
|
543
544
|
cud: "update",
|
|
@@ -546,27 +547,27 @@ export function registerCloudsearchGeneratedTools(registry) {
|
|
|
546
547
|
params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "updateMask", "api": "updateMask", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
547
548
|
hasBody: true,
|
|
548
549
|
shape: {
|
|
549
|
-
account: accountField(),
|
|
550
|
-
name: z.string().describe("The name of the Search Application. Format: searchapplications/{application_id}."),
|
|
550
|
+
account: accountField(() => registry.accountAliases()),
|
|
551
|
+
name: z.string().min(1).describe("The name of the Search Application. Format: searchapplications/{application_id}."),
|
|
551
552
|
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(),
|
|
552
553
|
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."),
|
|
553
554
|
fields: z.string().optional().describe('Response field mask.'),
|
|
554
555
|
},
|
|
555
|
-
});
|
|
556
|
+
}, deps);
|
|
556
557
|
registerGeneratedTool(registry, {
|
|
557
558
|
name: "cloudsearch_settings_searchapplications_reset",
|
|
558
|
-
cud: "
|
|
559
|
+
cud: "delete",
|
|
559
560
|
description: "Resets a search application to default settings. This will return an empty response. **Note:** This API requires an admin account to execute.",
|
|
560
561
|
method: { id: "cloudsearch.settings.searchapplications.reset", httpMethod: "POST", path: "v1/settings/{+name}:reset", baseUrl: "https://cloudsearch.googleapis.com/", requiredParams: ["name"], scopes: S_cloudsearch_v1[5] },
|
|
561
562
|
params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
562
563
|
hasBody: true,
|
|
563
564
|
shape: {
|
|
564
|
-
account: accountField(),
|
|
565
|
-
name: z.string().describe("The name of the search application to be reset. Format: applications/{application_id}."),
|
|
565
|
+
account: accountField(() => registry.accountAliases()),
|
|
566
|
+
name: z.string().min(1).describe("The name of the search application to be reset. Format: applications/{application_id}."),
|
|
566
567
|
body: coerceJson(z.record(z.string(), z.unknown())).describe("ResetSearchApplicationRequest JSON request body. Top-level fields: debugOptions."),
|
|
567
568
|
fields: z.string().optional().describe('Response field mask.'),
|
|
568
569
|
},
|
|
569
|
-
});
|
|
570
|
+
}, deps);
|
|
570
571
|
registerGeneratedTool(registry, {
|
|
571
572
|
name: "cloudsearch_settings_searchapplications_update",
|
|
572
573
|
cud: "update",
|
|
@@ -575,13 +576,13 @@ export function registerCloudsearchGeneratedTools(registry) {
|
|
|
575
576
|
params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "updateMask", "api": "updateMask", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
576
577
|
hasBody: true,
|
|
577
578
|
shape: {
|
|
578
|
-
account: accountField(),
|
|
579
|
-
name: z.string().describe("The name of the Search Application. Format: searchapplications/{application_id}."),
|
|
579
|
+
account: accountField(() => registry.accountAliases()),
|
|
580
|
+
name: z.string().min(1).describe("The name of the Search Application. Format: searchapplications/{application_id}."),
|
|
580
581
|
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(),
|
|
581
582
|
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."),
|
|
582
583
|
fields: z.string().optional().describe('Response field mask.'),
|
|
583
584
|
},
|
|
584
|
-
});
|
|
585
|
+
}, deps);
|
|
585
586
|
registerGeneratedTool(registry, {
|
|
586
587
|
name: "cloudsearch_settings_update_customer",
|
|
587
588
|
cud: "update",
|
|
@@ -590,12 +591,12 @@ export function registerCloudsearchGeneratedTools(registry) {
|
|
|
590
591
|
params: [{ "field": "updateMask", "api": "updateMask", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
591
592
|
hasBody: true,
|
|
592
593
|
shape: {
|
|
593
|
-
account: accountField(),
|
|
594
|
+
account: accountField(() => registry.accountAliases()),
|
|
594
595
|
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(),
|
|
595
596
|
body: coerceJson(z.record(z.string(), z.unknown())).describe("CustomerSettings JSON request body. Top-level fields: auditLoggingSettings, vpcSettings."),
|
|
596
597
|
fields: z.string().optional().describe('Response field mask.'),
|
|
597
598
|
},
|
|
598
|
-
});
|
|
599
|
+
}, deps);
|
|
599
600
|
registerGeneratedTool(registry, {
|
|
600
601
|
name: "cloudsearch_stats_get_index",
|
|
601
602
|
cud: "read",
|
|
@@ -604,7 +605,7 @@ export function registerCloudsearchGeneratedTools(registry) {
|
|
|
604
605
|
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" }],
|
|
605
606
|
hasBody: false,
|
|
606
607
|
shape: {
|
|
607
|
-
account: accountField(),
|
|
608
|
+
account: accountField(() => registry.accountAliases()),
|
|
608
609
|
"fromDate.day": z.number().describe("Day of month. Must be from 1 to 31 and valid for the year and month.").optional(),
|
|
609
610
|
"fromDate.month": z.number().describe("Month of date. Must be from 1 to 12.").optional(),
|
|
610
611
|
"fromDate.year": z.number().describe("Year of date. Must be from 1 to 9999.").optional(),
|
|
@@ -613,7 +614,7 @@ export function registerCloudsearchGeneratedTools(registry) {
|
|
|
613
614
|
"toDate.year": z.number().describe("Year of date. Must be from 1 to 9999.").optional(),
|
|
614
615
|
fields: z.string().optional().describe('Response field mask.'),
|
|
615
616
|
},
|
|
616
|
-
});
|
|
617
|
+
}, deps);
|
|
617
618
|
registerGeneratedTool(registry, {
|
|
618
619
|
name: "cloudsearch_stats_get_query",
|
|
619
620
|
cud: "read",
|
|
@@ -622,7 +623,7 @@ export function registerCloudsearchGeneratedTools(registry) {
|
|
|
622
623
|
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" }],
|
|
623
624
|
hasBody: false,
|
|
624
625
|
shape: {
|
|
625
|
-
account: accountField(),
|
|
626
|
+
account: accountField(() => registry.accountAliases()),
|
|
626
627
|
"fromDate.day": z.number().describe("Day of month. Must be from 1 to 31 and valid for the year and month.").optional(),
|
|
627
628
|
"fromDate.month": z.number().describe("Month of date. Must be from 1 to 12.").optional(),
|
|
628
629
|
"fromDate.year": z.number().describe("Year of date. Must be from 1 to 9999.").optional(),
|
|
@@ -631,7 +632,7 @@ export function registerCloudsearchGeneratedTools(registry) {
|
|
|
631
632
|
"toDate.year": z.number().describe("Year of date. Must be from 1 to 9999.").optional(),
|
|
632
633
|
fields: z.string().optional().describe('Response field mask.'),
|
|
633
634
|
},
|
|
634
|
-
});
|
|
635
|
+
}, deps);
|
|
635
636
|
registerGeneratedTool(registry, {
|
|
636
637
|
name: "cloudsearch_stats_get_searchapplication",
|
|
637
638
|
cud: "read",
|
|
@@ -640,7 +641,7 @@ export function registerCloudsearchGeneratedTools(registry) {
|
|
|
640
641
|
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" }],
|
|
641
642
|
hasBody: false,
|
|
642
643
|
shape: {
|
|
643
|
-
account: accountField(),
|
|
644
|
+
account: accountField(() => registry.accountAliases()),
|
|
644
645
|
"endDate.day": z.number().describe("Day of month. Must be from 1 to 31 and valid for the year and month.").optional(),
|
|
645
646
|
"endDate.month": z.number().describe("Month of date. Must be from 1 to 12.").optional(),
|
|
646
647
|
"endDate.year": z.number().describe("Year of date. Must be from 1 to 9999.").optional(),
|
|
@@ -649,7 +650,7 @@ export function registerCloudsearchGeneratedTools(registry) {
|
|
|
649
650
|
"startDate.year": z.number().describe("Year of date. Must be from 1 to 9999.").optional(),
|
|
650
651
|
fields: z.string().optional().describe('Response field mask.'),
|
|
651
652
|
},
|
|
652
|
-
});
|
|
653
|
+
}, deps);
|
|
653
654
|
registerGeneratedTool(registry, {
|
|
654
655
|
name: "cloudsearch_stats_get_session",
|
|
655
656
|
cud: "read",
|
|
@@ -658,7 +659,7 @@ export function registerCloudsearchGeneratedTools(registry) {
|
|
|
658
659
|
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" }],
|
|
659
660
|
hasBody: false,
|
|
660
661
|
shape: {
|
|
661
|
-
account: accountField(),
|
|
662
|
+
account: accountField(() => registry.accountAliases()),
|
|
662
663
|
"fromDate.day": z.number().describe("Day of month. Must be from 1 to 31 and valid for the year and month.").optional(),
|
|
663
664
|
"fromDate.month": z.number().describe("Month of date. Must be from 1 to 12.").optional(),
|
|
664
665
|
"fromDate.year": z.number().describe("Year of date. Must be from 1 to 9999.").optional(),
|
|
@@ -667,7 +668,7 @@ export function registerCloudsearchGeneratedTools(registry) {
|
|
|
667
668
|
"toDate.year": z.number().describe("Year of date. Must be from 1 to 9999.").optional(),
|
|
668
669
|
fields: z.string().optional().describe('Response field mask.'),
|
|
669
670
|
},
|
|
670
|
-
});
|
|
671
|
+
}, deps);
|
|
671
672
|
registerGeneratedTool(registry, {
|
|
672
673
|
name: "cloudsearch_stats_get_user",
|
|
673
674
|
cud: "read",
|
|
@@ -676,7 +677,7 @@ export function registerCloudsearchGeneratedTools(registry) {
|
|
|
676
677
|
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" }],
|
|
677
678
|
hasBody: false,
|
|
678
679
|
shape: {
|
|
679
|
-
account: accountField(),
|
|
680
|
+
account: accountField(() => registry.accountAliases()),
|
|
680
681
|
"fromDate.day": z.number().describe("Day of month. Must be from 1 to 31 and valid for the year and month.").optional(),
|
|
681
682
|
"fromDate.month": z.number().describe("Month of date. Must be from 1 to 12.").optional(),
|
|
682
683
|
"fromDate.year": z.number().describe("Year of date. Must be from 1 to 9999.").optional(),
|
|
@@ -685,7 +686,7 @@ export function registerCloudsearchGeneratedTools(registry) {
|
|
|
685
686
|
"toDate.year": z.number().describe("Year of date. Must be from 1 to 9999.").optional(),
|
|
686
687
|
fields: z.string().optional().describe('Response field mask.'),
|
|
687
688
|
},
|
|
688
|
-
});
|
|
689
|
+
}, deps);
|
|
689
690
|
registerGeneratedTool(registry, {
|
|
690
691
|
name: "cloudsearch_stats_index_datasources_get",
|
|
691
692
|
cud: "read",
|
|
@@ -694,8 +695,8 @@ export function registerCloudsearchGeneratedTools(registry) {
|
|
|
694
695
|
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" }],
|
|
695
696
|
hasBody: false,
|
|
696
697
|
shape: {
|
|
697
|
-
account: accountField(),
|
|
698
|
-
name: z.string().describe("The resource id of the data source to retrieve statistics for, in the following format: \"datasources/{source_id}\""),
|
|
698
|
+
account: accountField(() => registry.accountAliases()),
|
|
699
|
+
name: z.string().min(1).describe("The resource id of the data source to retrieve statistics for, in the following format: \"datasources/{source_id}\""),
|
|
699
700
|
"fromDate.day": z.number().describe("Day of month. Must be from 1 to 31 and valid for the year and month.").optional(),
|
|
700
701
|
"fromDate.month": z.number().describe("Month of date. Must be from 1 to 12.").optional(),
|
|
701
702
|
"fromDate.year": z.number().describe("Year of date. Must be from 1 to 9999.").optional(),
|
|
@@ -704,7 +705,7 @@ export function registerCloudsearchGeneratedTools(registry) {
|
|
|
704
705
|
"toDate.year": z.number().describe("Year of date. Must be from 1 to 9999.").optional(),
|
|
705
706
|
fields: z.string().optional().describe('Response field mask.'),
|
|
706
707
|
},
|
|
707
|
-
});
|
|
708
|
+
}, deps);
|
|
708
709
|
registerGeneratedTool(registry, {
|
|
709
710
|
name: "cloudsearch_stats_query_searchapplications_get",
|
|
710
711
|
cud: "read",
|
|
@@ -713,8 +714,8 @@ export function registerCloudsearchGeneratedTools(registry) {
|
|
|
713
714
|
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" }],
|
|
714
715
|
hasBody: false,
|
|
715
716
|
shape: {
|
|
716
|
-
account: accountField(),
|
|
717
|
-
name: z.string().describe("The resource id of the search application query stats, in the following format: searchapplications/{application_id}"),
|
|
717
|
+
account: accountField(() => registry.accountAliases()),
|
|
718
|
+
name: z.string().min(1).describe("The resource id of the search application query stats, in the following format: searchapplications/{application_id}"),
|
|
718
719
|
"fromDate.day": z.number().describe("Day of month. Must be from 1 to 31 and valid for the year and month.").optional(),
|
|
719
720
|
"fromDate.month": z.number().describe("Month of date. Must be from 1 to 12.").optional(),
|
|
720
721
|
"fromDate.year": z.number().describe("Year of date. Must be from 1 to 9999.").optional(),
|
|
@@ -723,7 +724,7 @@ export function registerCloudsearchGeneratedTools(registry) {
|
|
|
723
724
|
"toDate.year": z.number().describe("Year of date. Must be from 1 to 9999.").optional(),
|
|
724
725
|
fields: z.string().optional().describe('Response field mask.'),
|
|
725
726
|
},
|
|
726
|
-
});
|
|
727
|
+
}, deps);
|
|
727
728
|
registerGeneratedTool(registry, {
|
|
728
729
|
name: "cloudsearch_stats_session_searchapplications_get",
|
|
729
730
|
cud: "read",
|
|
@@ -732,8 +733,8 @@ export function registerCloudsearchGeneratedTools(registry) {
|
|
|
732
733
|
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" }],
|
|
733
734
|
hasBody: false,
|
|
734
735
|
shape: {
|
|
735
|
-
account: accountField(),
|
|
736
|
-
name: z.string().describe("The resource id of the search application session stats, in the following format: searchapplications/{application_id}"),
|
|
736
|
+
account: accountField(() => registry.accountAliases()),
|
|
737
|
+
name: z.string().min(1).describe("The resource id of the search application session stats, in the following format: searchapplications/{application_id}"),
|
|
737
738
|
"fromDate.day": z.number().describe("Day of month. Must be from 1 to 31 and valid for the year and month.").optional(),
|
|
738
739
|
"fromDate.month": z.number().describe("Month of date. Must be from 1 to 12.").optional(),
|
|
739
740
|
"fromDate.year": z.number().describe("Year of date. Must be from 1 to 9999.").optional(),
|
|
@@ -742,7 +743,7 @@ export function registerCloudsearchGeneratedTools(registry) {
|
|
|
742
743
|
"toDate.year": z.number().describe("Year of date. Must be from 1 to 9999.").optional(),
|
|
743
744
|
fields: z.string().optional().describe('Response field mask.'),
|
|
744
745
|
},
|
|
745
|
-
});
|
|
746
|
+
}, deps);
|
|
746
747
|
registerGeneratedTool(registry, {
|
|
747
748
|
name: "cloudsearch_stats_user_searchapplications_get",
|
|
748
749
|
cud: "read",
|
|
@@ -751,8 +752,8 @@ export function registerCloudsearchGeneratedTools(registry) {
|
|
|
751
752
|
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" }],
|
|
752
753
|
hasBody: false,
|
|
753
754
|
shape: {
|
|
754
|
-
account: accountField(),
|
|
755
|
-
name: z.string().describe("The resource id of the search application session stats, in the following format: searchapplications/{application_id}"),
|
|
755
|
+
account: accountField(() => registry.accountAliases()),
|
|
756
|
+
name: z.string().min(1).describe("The resource id of the search application session stats, in the following format: searchapplications/{application_id}"),
|
|
756
757
|
"fromDate.day": z.number().describe("Day of month. Must be from 1 to 31 and valid for the year and month.").optional(),
|
|
757
758
|
"fromDate.month": z.number().describe("Month of date. Must be from 1 to 12.").optional(),
|
|
758
759
|
"fromDate.year": z.number().describe("Year of date. Must be from 1 to 9999.").optional(),
|
|
@@ -761,5 +762,5 @@ export function registerCloudsearchGeneratedTools(registry) {
|
|
|
761
762
|
"toDate.year": z.number().describe("Year of date. Must be from 1 to 9999.").optional(),
|
|
762
763
|
fields: z.string().optional().describe('Response field mask.'),
|
|
763
764
|
},
|
|
764
|
-
});
|
|
765
|
+
}, deps);
|
|
765
766
|
}
|