mcp-google-multi 6.0.0-beta.2 → 6.0.0-beta.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -5
- package/dist/accounts.d.ts +20 -4
- package/dist/accounts.js +68 -44
- package/dist/api-probe.d.ts +5 -0
- package/dist/api-probe.js +20 -15
- package/dist/arg-normalize.js +19 -38
- package/dist/arg-strict.d.ts +7 -0
- package/dist/arg-strict.js +38 -28
- package/dist/auth.d.ts +5 -4
- package/dist/auth.js +16 -23
- package/dist/boot-gates.d.ts +26 -0
- package/dist/boot-gates.js +36 -0
- package/dist/cimd-cache.d.ts +38 -0
- package/dist/cimd-cache.js +111 -0
- package/dist/client-config.d.ts +2 -2
- package/dist/client-config.js +8 -14
- package/dist/client.d.ts +32 -2
- package/dist/client.js +0 -0
- package/dist/compose.d.ts +18 -0
- package/dist/compose.js +109 -0
- package/dist/config-file.d.ts +13 -0
- package/dist/config-file.js +41 -10
- package/dist/discover.js +7 -10
- package/dist/discovery-client.d.ts +3 -0
- package/dist/discovery-client.js +36 -32
- package/dist/doctor.d.ts +9 -5
- package/dist/doctor.js +119 -29
- package/dist/env-load.js +2 -5
- package/dist/executor.d.ts +3 -0
- package/dist/executor.js +6 -6
- package/dist/fanout.d.ts +9 -1
- package/dist/fanout.js +47 -22
- package/dist/fs-atomic.d.ts +8 -0
- package/dist/fs-atomic.js +216 -29
- package/dist/hint-provider.d.ts +129 -0
- package/dist/hint-provider.js +58 -0
- package/dist/http-config.d.ts +2 -2
- package/dist/http-config.js +3 -7
- package/dist/http-transport.d.ts +67 -9
- package/dist/http-transport.js +318 -52
- package/dist/identity.d.ts +6 -3
- package/dist/identity.js +24 -8
- package/dist/index.js +76 -160
- package/dist/master-key.d.ts +3 -3
- package/dist/master-key.js +16 -19
- package/dist/mcp-token.d.ts +126 -19
- package/dist/mcp-token.js +557 -76
- package/dist/metrics-cli.d.ts +1 -1
- package/dist/metrics-cli.js +1 -1
- package/dist/metrics-tap.js +2 -5
- package/dist/migrate-config.d.ts +1 -2
- package/dist/migrate-config.js +5 -7
- package/dist/net-tuning.js +2 -4
- package/dist/oauth-as.d.ts +104 -4
- package/dist/oauth-as.js +368 -114
- package/dist/oauth-consent.d.ts +10 -0
- package/dist/oauth-consent.js +20 -10
- package/dist/outbound-allowlist.js +9 -11
- package/dist/reauth-hint.d.ts +1 -1
- package/dist/reauth-hint.js +11 -10
- package/dist/registry-transfer.d.ts +5 -0
- package/dist/registry-transfer.js +63 -11
- package/dist/registry.d.ts +13 -4
- package/dist/registry.js +100 -72
- package/dist/scope-catalog.d.ts +16 -0
- package/dist/scope-catalog.js +40 -13
- package/dist/scope-observability.d.ts +10 -9
- package/dist/scope-observability.js +34 -24
- package/dist/services.d.ts +18 -10
- package/dist/services.js +61 -22
- package/dist/ssrf-guard.d.ts +23 -9
- package/dist/ssrf-guard.js +106 -78
- package/dist/tenant-purge.d.ts +26 -0
- package/dist/tenant-purge.js +65 -0
- package/dist/token-store.d.ts +20 -2
- package/dist/token-store.js +0 -0
- package/dist/tools/_coerce.d.ts +4 -4
- package/dist/tools/_errors.d.ts +3 -0
- package/dist/tools/_errors.js +72 -60
- package/dist/tools/_local-files.d.ts +9 -0
- package/dist/tools/_local-files.js +22 -8
- package/dist/tools/account-wizard.d.ts +13 -3
- package/dist/tools/account-wizard.js +107 -56
- package/dist/tools/accounts-tool.d.ts +8 -1
- package/dist/tools/accounts-tool.js +35 -19
- package/dist/tools/admin.d.ts +10 -1
- package/dist/tools/admin.js +14 -11
- package/dist/tools/analytics.d.ts +10 -1
- package/dist/tools/analytics.js +14 -10
- package/dist/tools/calendar.d.ts +2 -1
- package/dist/tools/calendar.js +19 -18
- package/dist/tools/chat.d.ts +10 -1
- package/dist/tools/chat.js +12 -8
- package/dist/tools/contacts.d.ts +2 -1
- package/dist/tools/contacts.js +22 -19
- package/dist/tools/docs.d.ts +2 -1
- package/dist/tools/docs.js +35 -36
- package/dist/tools/drive.d.ts +2 -1
- package/dist/tools/drive.js +80 -74
- package/dist/tools/forms.d.ts +10 -1
- package/dist/tools/forms.js +18 -12
- package/dist/tools/generated/_shared.d.ts +2 -1
- package/dist/tools/generated/_shared.js +7 -3
- package/dist/tools/generated/admin.d.ts +2 -1
- package/dist/tools/generated/admin.js +265 -265
- package/dist/tools/generated/analytics.d.ts +2 -1
- package/dist/tools/generated/analytics.js +125 -125
- package/dist/tools/generated/appsmarket.d.ts +2 -1
- package/dist/tools/generated/appsmarket.js +5 -5
- package/dist/tools/generated/calendar.d.ts +2 -1
- package/dist/tools/generated/calendar.js +55 -55
- package/dist/tools/generated/chat.d.ts +2 -1
- package/dist/tools/generated/chat.js +95 -95
- package/dist/tools/generated/classroom.d.ts +2 -1
- package/dist/tools/generated/classroom.js +209 -209
- package/dist/tools/generated/cloudidentity.d.ts +2 -1
- package/dist/tools/generated/cloudidentity.js +133 -133
- package/dist/tools/generated/cloudsearch.d.ts +2 -1
- package/dist/tools/generated/cloudsearch.js +99 -99
- package/dist/tools/generated/contacts.d.ts +2 -1
- package/dist/tools/generated/contacts.js +29 -29
- package/dist/tools/generated/drive.d.ts +2 -1
- package/dist/tools/generated/drive.js +71 -71
- package/dist/tools/generated/driveactivity.d.ts +2 -1
- package/dist/tools/generated/driveactivity.js +3 -3
- package/dist/tools/generated/drivelabels.d.ts +2 -1
- package/dist/tools/generated/drivelabels.js +53 -53
- package/dist/tools/generated/forms.d.ts +2 -1
- package/dist/tools/generated/forms.js +7 -7
- package/dist/tools/generated/gmail.d.ts +2 -1
- package/dist/tools/generated/gmail.js +117 -117
- package/dist/tools/generated/groupsmigration.d.ts +2 -1
- package/dist/tools/generated/groupsmigration.js +3 -3
- package/dist/tools/generated/groupssettings.d.ts +2 -1
- package/dist/tools/generated/groupssettings.js +7 -7
- package/dist/tools/generated/index.d.ts +2 -1
- package/dist/tools/generated/keep.d.ts +2 -1
- package/dist/tools/generated/keep.js +15 -15
- package/dist/tools/generated/licensing.d.ts +2 -1
- package/dist/tools/generated/licensing.js +15 -15
- package/dist/tools/generated/meet.d.ts +2 -1
- package/dist/tools/generated/meet.js +27 -27
- package/dist/tools/generated/postmaster.d.ts +2 -1
- package/dist/tools/generated/postmaster.js +9 -9
- package/dist/tools/generated/reseller.d.ts +2 -1
- package/dist/tools/generated/reseller.js +35 -35
- package/dist/tools/generated/script.d.ts +2 -1
- package/dist/tools/generated/script.js +33 -33
- package/dist/tools/generated/searchconsole.d.ts +2 -1
- package/dist/tools/generated/searchconsole.js +3 -3
- package/dist/tools/generated/sheets.d.ts +2 -1
- package/dist/tools/generated/sheets.js +15 -15
- package/dist/tools/generated/tasks.d.ts +2 -1
- package/dist/tools/generated/tasks.js +5 -5
- package/dist/tools/generated/vault.d.ts +2 -1
- package/dist/tools/generated/vault.js +67 -67
- package/dist/tools/generated/workspaceevents.d.ts +2 -1
- package/dist/tools/generated/workspaceevents.js +31 -31
- package/dist/tools/gmail-mime.d.ts +1 -1
- package/dist/tools/gmail-mime.js +7 -12
- package/dist/tools/gmail.d.ts +4 -3
- package/dist/tools/gmail.js +67 -69
- package/dist/tools/google-api.d.ts +2 -3
- package/dist/tools/google-api.js +34 -22
- package/dist/tools/meet.d.ts +10 -1
- package/dist/tools/meet.js +12 -9
- package/dist/tools/searchconsole.d.ts +2 -1
- package/dist/tools/searchconsole.js +16 -13
- package/dist/tools/sheets.d.ts +2 -1
- package/dist/tools/sheets.js +35 -32
- package/dist/tools/slides.d.ts +10 -1
- package/dist/tools/slides.js +16 -10
- package/dist/tools/tasks.d.ts +2 -1
- package/dist/tools/tasks.js +18 -15
- package/dist/trim.d.ts +5 -0
- package/dist/trim.js +19 -0
- package/dist/usage-metrics.d.ts +23 -0
- package/dist/usage-metrics.js +67 -56
- package/dist/write-control.d.ts +4 -8
- package/dist/write-control.js +13 -6
- package/package.json +47 -21
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
import { 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"],
|
|
@@ -21,13 +21,13 @@ export function registerCloudsearchGeneratedTools(registry) {
|
|
|
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(),
|
|
24
|
+
account: accountField(() => registry.accountAliases()),
|
|
25
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(),
|
|
39
|
+
account: accountField(() => registry.accountAliases()),
|
|
40
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(),
|
|
53
|
+
account: accountField(() => registry.accountAliases()),
|
|
54
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,7 +66,7 @@ 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(),
|
|
69
|
+
account: accountField(() => registry.accountAliases()),
|
|
70
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(),
|
|
@@ -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,7 +84,7 @@ 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(),
|
|
87
|
+
account: accountField(() => registry.accountAliases()),
|
|
88
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(),
|
|
@@ -92,7 +92,7 @@ export function registerCloudsearchGeneratedTools(registry) {
|
|
|
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(),
|
|
104
|
+
account: accountField(() => registry.accountAliases()),
|
|
105
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(),
|
|
118
|
+
account: accountField(() => registry.accountAliases()),
|
|
119
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,7 +129,7 @@ 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(),
|
|
132
|
+
account: accountField(() => registry.accountAliases()),
|
|
133
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(),
|
|
@@ -137,7 +137,7 @@ export function registerCloudsearchGeneratedTools(registry) {
|
|
|
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(),
|
|
149
|
+
account: accountField(() => registry.accountAliases()),
|
|
150
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(),
|
|
163
|
+
account: accountField(() => registry.accountAliases()),
|
|
164
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(),
|
|
178
|
+
account: accountField(() => registry.accountAliases()),
|
|
179
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,7 +189,7 @@ 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(),
|
|
192
|
+
account: accountField(() => registry.accountAliases()),
|
|
193
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(),
|
|
@@ -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(),
|
|
210
|
+
account: accountField(() => registry.accountAliases()),
|
|
211
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,12 +221,12 @@ 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(),
|
|
224
|
+
account: accountField(() => registry.accountAliases()),
|
|
225
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
232
|
cud: "delete",
|
|
@@ -235,12 +235,12 @@ export function registerCloudsearchGeneratedTools(registry) {
|
|
|
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(),
|
|
238
|
+
account: accountField(() => registry.accountAliases()),
|
|
239
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(),
|
|
252
|
+
account: accountField(() => registry.accountAliases()),
|
|
253
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(),
|
|
266
|
+
account: accountField(() => registry.accountAliases()),
|
|
267
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",
|
|
@@ -278,10 +278,10 @@ export function registerCloudsearchGeneratedTools(registry) {
|
|
|
278
278
|
hasBody: true,
|
|
279
279
|
bodyParams: [],
|
|
280
280
|
shape: {
|
|
281
|
-
account: accountField(),
|
|
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",
|
|
@@ -291,12 +291,12 @@ export function registerCloudsearchGeneratedTools(registry) {
|
|
|
291
291
|
hasBody: true,
|
|
292
292
|
bodyParams: [{ "field": "resourceName_", "api": "resourceName" }],
|
|
293
293
|
shape: {
|
|
294
|
-
account: accountField(),
|
|
294
|
+
account: accountField(() => registry.accountAliases()),
|
|
295
295
|
resourceName: z.string().min(1).describe("Name of the media that is being downloaded. See ReadRequest.resource_name."),
|
|
296
296
|
resourceName_: z.string().describe("Name of the media resource.").optional(),
|
|
297
297
|
fields: z.string().optional().describe('Response field mask.'),
|
|
298
298
|
},
|
|
299
|
-
});
|
|
299
|
+
}, deps);
|
|
300
300
|
registerGeneratedTool(registry, {
|
|
301
301
|
name: "cloudsearch_operations_get",
|
|
302
302
|
cud: "read",
|
|
@@ -305,11 +305,11 @@ export function registerCloudsearchGeneratedTools(registry) {
|
|
|
305
305
|
params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
306
306
|
hasBody: false,
|
|
307
307
|
shape: {
|
|
308
|
-
account: accountField(),
|
|
308
|
+
account: accountField(() => registry.accountAliases()),
|
|
309
309
|
name: z.string().min(1).describe("The name of the operation resource."),
|
|
310
310
|
fields: z.string().optional().describe('Response field mask.'),
|
|
311
311
|
},
|
|
312
|
-
});
|
|
312
|
+
}, deps);
|
|
313
313
|
registerGeneratedTool(registry, {
|
|
314
314
|
name: "cloudsearch_operations_lro_list",
|
|
315
315
|
cud: "read",
|
|
@@ -318,7 +318,7 @@ export function registerCloudsearchGeneratedTools(registry) {
|
|
|
318
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" }],
|
|
319
319
|
hasBody: false,
|
|
320
320
|
shape: {
|
|
321
|
-
account: accountField(),
|
|
321
|
+
account: accountField(() => registry.accountAliases()),
|
|
322
322
|
name: z.string().min(1).describe("The name of the operation's parent resource."),
|
|
323
323
|
filter: z.string().describe("The standard list filter.").optional(),
|
|
324
324
|
pageSize: z.number().describe("The standard list page size.").optional(),
|
|
@@ -326,7 +326,7 @@ export function registerCloudsearchGeneratedTools(registry) {
|
|
|
326
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(),
|
|
327
327
|
fields: z.string().optional().describe('Response field mask.'),
|
|
328
328
|
},
|
|
329
|
-
});
|
|
329
|
+
}, deps);
|
|
330
330
|
registerGeneratedTool(registry, {
|
|
331
331
|
name: "cloudsearch_query_remove_activity",
|
|
332
332
|
cud: "delete",
|
|
@@ -335,11 +335,11 @@ export function registerCloudsearchGeneratedTools(registry) {
|
|
|
335
335
|
params: [{ "field": "fields", "api": "fields", "location": "query" }],
|
|
336
336
|
hasBody: true,
|
|
337
337
|
shape: {
|
|
338
|
-
account: accountField(),
|
|
338
|
+
account: accountField(() => registry.accountAliases()),
|
|
339
339
|
body: coerceJson(z.record(z.string(), z.unknown())).describe("RemoveActivityRequest JSON request body. Top-level fields: requestOptions, userActivity."),
|
|
340
340
|
fields: z.string().optional().describe('Response field mask.'),
|
|
341
341
|
},
|
|
342
|
-
});
|
|
342
|
+
}, deps);
|
|
343
343
|
registerGeneratedTool(registry, {
|
|
344
344
|
name: "cloudsearch_query_search",
|
|
345
345
|
cud: "read",
|
|
@@ -348,11 +348,11 @@ export function registerCloudsearchGeneratedTools(registry) {
|
|
|
348
348
|
params: [{ "field": "fields", "api": "fields", "location": "query" }],
|
|
349
349
|
hasBody: true,
|
|
350
350
|
shape: {
|
|
351
|
-
account: accountField(),
|
|
351
|
+
account: accountField(() => registry.accountAliases()),
|
|
352
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."),
|
|
353
353
|
fields: z.string().optional().describe('Response field mask.'),
|
|
354
354
|
},
|
|
355
|
-
});
|
|
355
|
+
}, deps);
|
|
356
356
|
registerGeneratedTool(registry, {
|
|
357
357
|
name: "cloudsearch_query_sources_list",
|
|
358
358
|
cud: "read",
|
|
@@ -361,7 +361,7 @@ export function registerCloudsearchGeneratedTools(registry) {
|
|
|
361
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" }],
|
|
362
362
|
hasBody: false,
|
|
363
363
|
shape: {
|
|
364
|
-
account: accountField(),
|
|
364
|
+
account: accountField(() => registry.accountAliases()),
|
|
365
365
|
pageToken: z.string().describe("Number of sources to return in the response.").optional(),
|
|
366
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(),
|
|
367
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(),
|
|
@@ -371,7 +371,7 @@ export function registerCloudsearchGeneratedTools(registry) {
|
|
|
371
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(),
|
|
372
372
|
fields: z.string().optional().describe('Response field mask.'),
|
|
373
373
|
},
|
|
374
|
-
});
|
|
374
|
+
}, deps);
|
|
375
375
|
registerGeneratedTool(registry, {
|
|
376
376
|
name: "cloudsearch_query_suggest",
|
|
377
377
|
cud: "read",
|
|
@@ -380,11 +380,11 @@ export function registerCloudsearchGeneratedTools(registry) {
|
|
|
380
380
|
params: [{ "field": "fields", "api": "fields", "location": "query" }],
|
|
381
381
|
hasBody: true,
|
|
382
382
|
shape: {
|
|
383
|
-
account: accountField(),
|
|
383
|
+
account: accountField(() => registry.accountAliases()),
|
|
384
384
|
body: coerceJson(z.record(z.string(), z.unknown())).describe("SuggestRequest JSON request body. Top-level fields: dataSourceRestrictions, query, requestOptions."),
|
|
385
385
|
fields: z.string().optional().describe('Response field mask.'),
|
|
386
386
|
},
|
|
387
|
-
});
|
|
387
|
+
}, deps);
|
|
388
388
|
registerGeneratedTool(registry, {
|
|
389
389
|
name: "cloudsearch_settings_datasources_create",
|
|
390
390
|
cud: "create",
|
|
@@ -393,11 +393,11 @@ export function registerCloudsearchGeneratedTools(registry) {
|
|
|
393
393
|
params: [{ "field": "fields", "api": "fields", "location": "query" }],
|
|
394
394
|
hasBody: true,
|
|
395
395
|
shape: {
|
|
396
|
-
account: accountField(),
|
|
396
|
+
account: accountField(() => registry.accountAliases()),
|
|
397
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."),
|
|
398
398
|
fields: z.string().optional().describe('Response field mask.'),
|
|
399
399
|
},
|
|
400
|
-
});
|
|
400
|
+
}, deps);
|
|
401
401
|
registerGeneratedTool(registry, {
|
|
402
402
|
name: "cloudsearch_settings_datasources_delete",
|
|
403
403
|
cud: "delete",
|
|
@@ -406,12 +406,12 @@ export function registerCloudsearchGeneratedTools(registry) {
|
|
|
406
406
|
params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "debugOptions.enableDebugging", "api": "debugOptions.enableDebugging", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
407
407
|
hasBody: false,
|
|
408
408
|
shape: {
|
|
409
|
-
account: accountField(),
|
|
409
|
+
account: accountField(() => registry.accountAliases()),
|
|
410
410
|
name: z.string().min(1).describe("The name of the datasource. Format: datasources/{source_id}."),
|
|
411
411
|
"debugOptions.enableDebugging": coerceBoolean.describe("If you are asked by Google to help with debugging, set this field. Otherwise, ignore this field.").optional(),
|
|
412
412
|
fields: z.string().optional().describe('Response field mask.'),
|
|
413
413
|
},
|
|
414
|
-
});
|
|
414
|
+
}, deps);
|
|
415
415
|
registerGeneratedTool(registry, {
|
|
416
416
|
name: "cloudsearch_settings_datasources_get",
|
|
417
417
|
cud: "read",
|
|
@@ -420,12 +420,12 @@ export function registerCloudsearchGeneratedTools(registry) {
|
|
|
420
420
|
params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "debugOptions.enableDebugging", "api": "debugOptions.enableDebugging", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
421
421
|
hasBody: false,
|
|
422
422
|
shape: {
|
|
423
|
-
account: accountField(),
|
|
423
|
+
account: accountField(() => registry.accountAliases()),
|
|
424
424
|
name: z.string().min(1).describe("The name of the datasource resource. Format: datasources/{source_id}."),
|
|
425
425
|
"debugOptions.enableDebugging": coerceBoolean.describe("If you are asked by Google to help with debugging, set this field. Otherwise, ignore this field.").optional(),
|
|
426
426
|
fields: z.string().optional().describe('Response field mask.'),
|
|
427
427
|
},
|
|
428
|
-
});
|
|
428
|
+
}, deps);
|
|
429
429
|
registerGeneratedTool(registry, {
|
|
430
430
|
name: "cloudsearch_settings_datasources_list",
|
|
431
431
|
cud: "read",
|
|
@@ -434,13 +434,13 @@ export function registerCloudsearchGeneratedTools(registry) {
|
|
|
434
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" }],
|
|
435
435
|
hasBody: false,
|
|
436
436
|
shape: {
|
|
437
|
-
account: accountField(),
|
|
437
|
+
account: accountField(() => registry.accountAliases()),
|
|
438
438
|
"debugOptions.enableDebugging": coerceBoolean.describe("If you are asked by Google to help with debugging, set this field. Otherwise, ignore this field.").optional(),
|
|
439
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(),
|
|
440
440
|
pageToken: z.string().describe("Starting index of the results.").optional(),
|
|
441
441
|
fields: z.string().optional().describe('Response field mask.'),
|
|
442
442
|
},
|
|
443
|
-
});
|
|
443
|
+
}, deps);
|
|
444
444
|
registerGeneratedTool(registry, {
|
|
445
445
|
name: "cloudsearch_settings_datasources_patch",
|
|
446
446
|
cud: "update",
|
|
@@ -449,14 +449,14 @@ export function registerCloudsearchGeneratedTools(registry) {
|
|
|
449
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" }],
|
|
450
450
|
hasBody: true,
|
|
451
451
|
shape: {
|
|
452
|
-
account: accountField(),
|
|
452
|
+
account: accountField(() => registry.accountAliases()),
|
|
453
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."),
|
|
454
454
|
"debugOptions.enableDebugging": coerceBoolean.describe("If you are asked by Google to help with debugging, set this field. Otherwise, ignore this field.").optional(),
|
|
455
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(),
|
|
456
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."),
|
|
457
457
|
fields: z.string().optional().describe('Response field mask.'),
|
|
458
458
|
},
|
|
459
|
-
});
|
|
459
|
+
}, deps);
|
|
460
460
|
registerGeneratedTool(registry, {
|
|
461
461
|
name: "cloudsearch_settings_datasources_update",
|
|
462
462
|
cud: "update",
|
|
@@ -465,12 +465,12 @@ export function registerCloudsearchGeneratedTools(registry) {
|
|
|
465
465
|
params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
466
466
|
hasBody: true,
|
|
467
467
|
shape: {
|
|
468
|
-
account: accountField(),
|
|
468
|
+
account: accountField(() => registry.accountAliases()),
|
|
469
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."),
|
|
470
470
|
body: coerceJson(z.record(z.string(), z.unknown())).describe("UpdateDataSourceRequest JSON request body. Top-level fields: debugOptions, source, updateMask."),
|
|
471
471
|
fields: z.string().optional().describe('Response field mask.'),
|
|
472
472
|
},
|
|
473
|
-
});
|
|
473
|
+
}, deps);
|
|
474
474
|
registerGeneratedTool(registry, {
|
|
475
475
|
name: "cloudsearch_settings_get_customer",
|
|
476
476
|
cud: "read",
|
|
@@ -479,10 +479,10 @@ export function registerCloudsearchGeneratedTools(registry) {
|
|
|
479
479
|
params: [{ "field": "fields", "api": "fields", "location": "query" }],
|
|
480
480
|
hasBody: false,
|
|
481
481
|
shape: {
|
|
482
|
-
account: accountField(),
|
|
482
|
+
account: accountField(() => registry.accountAliases()),
|
|
483
483
|
fields: z.string().optional().describe('Response field mask.'),
|
|
484
484
|
},
|
|
485
|
-
});
|
|
485
|
+
}, deps);
|
|
486
486
|
registerGeneratedTool(registry, {
|
|
487
487
|
name: "cloudsearch_settings_searchapplications_create",
|
|
488
488
|
cud: "create",
|
|
@@ -491,11 +491,11 @@ export function registerCloudsearchGeneratedTools(registry) {
|
|
|
491
491
|
params: [{ "field": "fields", "api": "fields", "location": "query" }],
|
|
492
492
|
hasBody: true,
|
|
493
493
|
shape: {
|
|
494
|
-
account: accountField(),
|
|
494
|
+
account: accountField(() => registry.accountAliases()),
|
|
495
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."),
|
|
496
496
|
fields: z.string().optional().describe('Response field mask.'),
|
|
497
497
|
},
|
|
498
|
-
});
|
|
498
|
+
}, deps);
|
|
499
499
|
registerGeneratedTool(registry, {
|
|
500
500
|
name: "cloudsearch_settings_searchapplications_delete",
|
|
501
501
|
cud: "delete",
|
|
@@ -504,12 +504,12 @@ export function registerCloudsearchGeneratedTools(registry) {
|
|
|
504
504
|
params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "debugOptions.enableDebugging", "api": "debugOptions.enableDebugging", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
505
505
|
hasBody: false,
|
|
506
506
|
shape: {
|
|
507
|
-
account: accountField(),
|
|
507
|
+
account: accountField(() => registry.accountAliases()),
|
|
508
508
|
name: z.string().min(1).describe("The name of the search application to be deleted. Format: applications/{application_id}."),
|
|
509
509
|
"debugOptions.enableDebugging": coerceBoolean.describe("If you are asked by Google to help with debugging, set this field. Otherwise, ignore this field.").optional(),
|
|
510
510
|
fields: z.string().optional().describe('Response field mask.'),
|
|
511
511
|
},
|
|
512
|
-
});
|
|
512
|
+
}, deps);
|
|
513
513
|
registerGeneratedTool(registry, {
|
|
514
514
|
name: "cloudsearch_settings_searchapplications_get",
|
|
515
515
|
cud: "read",
|
|
@@ -518,12 +518,12 @@ export function registerCloudsearchGeneratedTools(registry) {
|
|
|
518
518
|
params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "debugOptions.enableDebugging", "api": "debugOptions.enableDebugging", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
519
519
|
hasBody: false,
|
|
520
520
|
shape: {
|
|
521
|
-
account: accountField(),
|
|
521
|
+
account: accountField(() => registry.accountAliases()),
|
|
522
522
|
name: z.string().min(1).describe("The name of the search application. Format: searchapplications/{application_id}."),
|
|
523
523
|
"debugOptions.enableDebugging": coerceBoolean.describe("If you are asked by Google to help with debugging, set this field. Otherwise, ignore this field.").optional(),
|
|
524
524
|
fields: z.string().optional().describe('Response field mask.'),
|
|
525
525
|
},
|
|
526
|
-
});
|
|
526
|
+
}, deps);
|
|
527
527
|
registerGeneratedTool(registry, {
|
|
528
528
|
name: "cloudsearch_settings_searchapplications_list",
|
|
529
529
|
cud: "read",
|
|
@@ -532,13 +532,13 @@ export function registerCloudsearchGeneratedTools(registry) {
|
|
|
532
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" }],
|
|
533
533
|
hasBody: false,
|
|
534
534
|
shape: {
|
|
535
|
-
account: accountField(),
|
|
535
|
+
account: accountField(() => registry.accountAliases()),
|
|
536
536
|
"debugOptions.enableDebugging": coerceBoolean.describe("If you are asked by Google to help with debugging, set this field. Otherwise, ignore this field.").optional(),
|
|
537
537
|
pageSize: z.number().describe("The maximum number of items to return.").optional(),
|
|
538
538
|
pageToken: z.string().describe("The next_page_token value returned from a previous List request, if any. The default value is 10").optional(),
|
|
539
539
|
fields: z.string().optional().describe('Response field mask.'),
|
|
540
540
|
},
|
|
541
|
-
});
|
|
541
|
+
}, deps);
|
|
542
542
|
registerGeneratedTool(registry, {
|
|
543
543
|
name: "cloudsearch_settings_searchapplications_patch",
|
|
544
544
|
cud: "update",
|
|
@@ -547,13 +547,13 @@ export function registerCloudsearchGeneratedTools(registry) {
|
|
|
547
547
|
params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "updateMask", "api": "updateMask", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
548
548
|
hasBody: true,
|
|
549
549
|
shape: {
|
|
550
|
-
account: accountField(),
|
|
550
|
+
account: accountField(() => registry.accountAliases()),
|
|
551
551
|
name: z.string().min(1).describe("The name of the Search Application. Format: searchapplications/{application_id}."),
|
|
552
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(),
|
|
553
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."),
|
|
554
554
|
fields: z.string().optional().describe('Response field mask.'),
|
|
555
555
|
},
|
|
556
|
-
});
|
|
556
|
+
}, deps);
|
|
557
557
|
registerGeneratedTool(registry, {
|
|
558
558
|
name: "cloudsearch_settings_searchapplications_reset",
|
|
559
559
|
cud: "delete",
|
|
@@ -562,12 +562,12 @@ export function registerCloudsearchGeneratedTools(registry) {
|
|
|
562
562
|
params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
563
563
|
hasBody: true,
|
|
564
564
|
shape: {
|
|
565
|
-
account: accountField(),
|
|
565
|
+
account: accountField(() => registry.accountAliases()),
|
|
566
566
|
name: z.string().min(1).describe("The name of the search application to be reset. Format: applications/{application_id}."),
|
|
567
567
|
body: coerceJson(z.record(z.string(), z.unknown())).describe("ResetSearchApplicationRequest JSON request body. Top-level fields: debugOptions."),
|
|
568
568
|
fields: z.string().optional().describe('Response field mask.'),
|
|
569
569
|
},
|
|
570
|
-
});
|
|
570
|
+
}, deps);
|
|
571
571
|
registerGeneratedTool(registry, {
|
|
572
572
|
name: "cloudsearch_settings_searchapplications_update",
|
|
573
573
|
cud: "update",
|
|
@@ -576,13 +576,13 @@ export function registerCloudsearchGeneratedTools(registry) {
|
|
|
576
576
|
params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "updateMask", "api": "updateMask", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
577
577
|
hasBody: true,
|
|
578
578
|
shape: {
|
|
579
|
-
account: accountField(),
|
|
579
|
+
account: accountField(() => registry.accountAliases()),
|
|
580
580
|
name: z.string().min(1).describe("The name of the Search Application. Format: searchapplications/{application_id}."),
|
|
581
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(),
|
|
582
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."),
|
|
583
583
|
fields: z.string().optional().describe('Response field mask.'),
|
|
584
584
|
},
|
|
585
|
-
});
|
|
585
|
+
}, deps);
|
|
586
586
|
registerGeneratedTool(registry, {
|
|
587
587
|
name: "cloudsearch_settings_update_customer",
|
|
588
588
|
cud: "update",
|
|
@@ -591,12 +591,12 @@ export function registerCloudsearchGeneratedTools(registry) {
|
|
|
591
591
|
params: [{ "field": "updateMask", "api": "updateMask", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
592
592
|
hasBody: true,
|
|
593
593
|
shape: {
|
|
594
|
-
account: accountField(),
|
|
594
|
+
account: accountField(() => registry.accountAliases()),
|
|
595
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(),
|
|
596
596
|
body: coerceJson(z.record(z.string(), z.unknown())).describe("CustomerSettings JSON request body. Top-level fields: auditLoggingSettings, vpcSettings."),
|
|
597
597
|
fields: z.string().optional().describe('Response field mask.'),
|
|
598
598
|
},
|
|
599
|
-
});
|
|
599
|
+
}, deps);
|
|
600
600
|
registerGeneratedTool(registry, {
|
|
601
601
|
name: "cloudsearch_stats_get_index",
|
|
602
602
|
cud: "read",
|
|
@@ -605,7 +605,7 @@ export function registerCloudsearchGeneratedTools(registry) {
|
|
|
605
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" }],
|
|
606
606
|
hasBody: false,
|
|
607
607
|
shape: {
|
|
608
|
-
account: accountField(),
|
|
608
|
+
account: accountField(() => registry.accountAliases()),
|
|
609
609
|
"fromDate.day": z.number().describe("Day of month. Must be from 1 to 31 and valid for the year and month.").optional(),
|
|
610
610
|
"fromDate.month": z.number().describe("Month of date. Must be from 1 to 12.").optional(),
|
|
611
611
|
"fromDate.year": z.number().describe("Year of date. Must be from 1 to 9999.").optional(),
|
|
@@ -614,7 +614,7 @@ export function registerCloudsearchGeneratedTools(registry) {
|
|
|
614
614
|
"toDate.year": z.number().describe("Year of date. Must be from 1 to 9999.").optional(),
|
|
615
615
|
fields: z.string().optional().describe('Response field mask.'),
|
|
616
616
|
},
|
|
617
|
-
});
|
|
617
|
+
}, deps);
|
|
618
618
|
registerGeneratedTool(registry, {
|
|
619
619
|
name: "cloudsearch_stats_get_query",
|
|
620
620
|
cud: "read",
|
|
@@ -623,7 +623,7 @@ export function registerCloudsearchGeneratedTools(registry) {
|
|
|
623
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" }],
|
|
624
624
|
hasBody: false,
|
|
625
625
|
shape: {
|
|
626
|
-
account: accountField(),
|
|
626
|
+
account: accountField(() => registry.accountAliases()),
|
|
627
627
|
"fromDate.day": z.number().describe("Day of month. Must be from 1 to 31 and valid for the year and month.").optional(),
|
|
628
628
|
"fromDate.month": z.number().describe("Month of date. Must be from 1 to 12.").optional(),
|
|
629
629
|
"fromDate.year": z.number().describe("Year of date. Must be from 1 to 9999.").optional(),
|
|
@@ -632,7 +632,7 @@ export function registerCloudsearchGeneratedTools(registry) {
|
|
|
632
632
|
"toDate.year": z.number().describe("Year of date. Must be from 1 to 9999.").optional(),
|
|
633
633
|
fields: z.string().optional().describe('Response field mask.'),
|
|
634
634
|
},
|
|
635
|
-
});
|
|
635
|
+
}, deps);
|
|
636
636
|
registerGeneratedTool(registry, {
|
|
637
637
|
name: "cloudsearch_stats_get_searchapplication",
|
|
638
638
|
cud: "read",
|
|
@@ -641,7 +641,7 @@ export function registerCloudsearchGeneratedTools(registry) {
|
|
|
641
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" }],
|
|
642
642
|
hasBody: false,
|
|
643
643
|
shape: {
|
|
644
|
-
account: accountField(),
|
|
644
|
+
account: accountField(() => registry.accountAliases()),
|
|
645
645
|
"endDate.day": z.number().describe("Day of month. Must be from 1 to 31 and valid for the year and month.").optional(),
|
|
646
646
|
"endDate.month": z.number().describe("Month of date. Must be from 1 to 12.").optional(),
|
|
647
647
|
"endDate.year": z.number().describe("Year of date. Must be from 1 to 9999.").optional(),
|
|
@@ -650,7 +650,7 @@ export function registerCloudsearchGeneratedTools(registry) {
|
|
|
650
650
|
"startDate.year": z.number().describe("Year of date. Must be from 1 to 9999.").optional(),
|
|
651
651
|
fields: z.string().optional().describe('Response field mask.'),
|
|
652
652
|
},
|
|
653
|
-
});
|
|
653
|
+
}, deps);
|
|
654
654
|
registerGeneratedTool(registry, {
|
|
655
655
|
name: "cloudsearch_stats_get_session",
|
|
656
656
|
cud: "read",
|
|
@@ -659,7 +659,7 @@ export function registerCloudsearchGeneratedTools(registry) {
|
|
|
659
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" }],
|
|
660
660
|
hasBody: false,
|
|
661
661
|
shape: {
|
|
662
|
-
account: accountField(),
|
|
662
|
+
account: accountField(() => registry.accountAliases()),
|
|
663
663
|
"fromDate.day": z.number().describe("Day of month. Must be from 1 to 31 and valid for the year and month.").optional(),
|
|
664
664
|
"fromDate.month": z.number().describe("Month of date. Must be from 1 to 12.").optional(),
|
|
665
665
|
"fromDate.year": z.number().describe("Year of date. Must be from 1 to 9999.").optional(),
|
|
@@ -668,7 +668,7 @@ export function registerCloudsearchGeneratedTools(registry) {
|
|
|
668
668
|
"toDate.year": z.number().describe("Year of date. Must be from 1 to 9999.").optional(),
|
|
669
669
|
fields: z.string().optional().describe('Response field mask.'),
|
|
670
670
|
},
|
|
671
|
-
});
|
|
671
|
+
}, deps);
|
|
672
672
|
registerGeneratedTool(registry, {
|
|
673
673
|
name: "cloudsearch_stats_get_user",
|
|
674
674
|
cud: "read",
|
|
@@ -677,7 +677,7 @@ export function registerCloudsearchGeneratedTools(registry) {
|
|
|
677
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" }],
|
|
678
678
|
hasBody: false,
|
|
679
679
|
shape: {
|
|
680
|
-
account: accountField(),
|
|
680
|
+
account: accountField(() => registry.accountAliases()),
|
|
681
681
|
"fromDate.day": z.number().describe("Day of month. Must be from 1 to 31 and valid for the year and month.").optional(),
|
|
682
682
|
"fromDate.month": z.number().describe("Month of date. Must be from 1 to 12.").optional(),
|
|
683
683
|
"fromDate.year": z.number().describe("Year of date. Must be from 1 to 9999.").optional(),
|
|
@@ -686,7 +686,7 @@ export function registerCloudsearchGeneratedTools(registry) {
|
|
|
686
686
|
"toDate.year": z.number().describe("Year of date. Must be from 1 to 9999.").optional(),
|
|
687
687
|
fields: z.string().optional().describe('Response field mask.'),
|
|
688
688
|
},
|
|
689
|
-
});
|
|
689
|
+
}, deps);
|
|
690
690
|
registerGeneratedTool(registry, {
|
|
691
691
|
name: "cloudsearch_stats_index_datasources_get",
|
|
692
692
|
cud: "read",
|
|
@@ -695,7 +695,7 @@ export function registerCloudsearchGeneratedTools(registry) {
|
|
|
695
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" }],
|
|
696
696
|
hasBody: false,
|
|
697
697
|
shape: {
|
|
698
|
-
account: accountField(),
|
|
698
|
+
account: accountField(() => registry.accountAliases()),
|
|
699
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}\""),
|
|
700
700
|
"fromDate.day": z.number().describe("Day of month. Must be from 1 to 31 and valid for the year and month.").optional(),
|
|
701
701
|
"fromDate.month": z.number().describe("Month of date. Must be from 1 to 12.").optional(),
|
|
@@ -705,7 +705,7 @@ export function registerCloudsearchGeneratedTools(registry) {
|
|
|
705
705
|
"toDate.year": z.number().describe("Year of date. Must be from 1 to 9999.").optional(),
|
|
706
706
|
fields: z.string().optional().describe('Response field mask.'),
|
|
707
707
|
},
|
|
708
|
-
});
|
|
708
|
+
}, deps);
|
|
709
709
|
registerGeneratedTool(registry, {
|
|
710
710
|
name: "cloudsearch_stats_query_searchapplications_get",
|
|
711
711
|
cud: "read",
|
|
@@ -714,7 +714,7 @@ export function registerCloudsearchGeneratedTools(registry) {
|
|
|
714
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" }],
|
|
715
715
|
hasBody: false,
|
|
716
716
|
shape: {
|
|
717
|
-
account: accountField(),
|
|
717
|
+
account: accountField(() => registry.accountAliases()),
|
|
718
718
|
name: z.string().min(1).describe("The resource id of the search application query stats, in the following format: searchapplications/{application_id}"),
|
|
719
719
|
"fromDate.day": z.number().describe("Day of month. Must be from 1 to 31 and valid for the year and month.").optional(),
|
|
720
720
|
"fromDate.month": z.number().describe("Month of date. Must be from 1 to 12.").optional(),
|
|
@@ -724,7 +724,7 @@ export function registerCloudsearchGeneratedTools(registry) {
|
|
|
724
724
|
"toDate.year": z.number().describe("Year of date. Must be from 1 to 9999.").optional(),
|
|
725
725
|
fields: z.string().optional().describe('Response field mask.'),
|
|
726
726
|
},
|
|
727
|
-
});
|
|
727
|
+
}, deps);
|
|
728
728
|
registerGeneratedTool(registry, {
|
|
729
729
|
name: "cloudsearch_stats_session_searchapplications_get",
|
|
730
730
|
cud: "read",
|
|
@@ -733,7 +733,7 @@ export function registerCloudsearchGeneratedTools(registry) {
|
|
|
733
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" }],
|
|
734
734
|
hasBody: false,
|
|
735
735
|
shape: {
|
|
736
|
-
account: accountField(),
|
|
736
|
+
account: accountField(() => registry.accountAliases()),
|
|
737
737
|
name: z.string().min(1).describe("The resource id of the search application session stats, in the following format: searchapplications/{application_id}"),
|
|
738
738
|
"fromDate.day": z.number().describe("Day of month. Must be from 1 to 31 and valid for the year and month.").optional(),
|
|
739
739
|
"fromDate.month": z.number().describe("Month of date. Must be from 1 to 12.").optional(),
|
|
@@ -743,7 +743,7 @@ export function registerCloudsearchGeneratedTools(registry) {
|
|
|
743
743
|
"toDate.year": z.number().describe("Year of date. Must be from 1 to 9999.").optional(),
|
|
744
744
|
fields: z.string().optional().describe('Response field mask.'),
|
|
745
745
|
},
|
|
746
|
-
});
|
|
746
|
+
}, deps);
|
|
747
747
|
registerGeneratedTool(registry, {
|
|
748
748
|
name: "cloudsearch_stats_user_searchapplications_get",
|
|
749
749
|
cud: "read",
|
|
@@ -752,7 +752,7 @@ export function registerCloudsearchGeneratedTools(registry) {
|
|
|
752
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" }],
|
|
753
753
|
hasBody: false,
|
|
754
754
|
shape: {
|
|
755
|
-
account: accountField(),
|
|
755
|
+
account: accountField(() => registry.accountAliases()),
|
|
756
756
|
name: z.string().min(1).describe("The resource id of the search application session stats, in the following format: searchapplications/{application_id}"),
|
|
757
757
|
"fromDate.day": z.number().describe("Day of month. Must be from 1 to 31 and valid for the year and month.").optional(),
|
|
758
758
|
"fromDate.month": z.number().describe("Month of date. Must be from 1 to 12.").optional(),
|
|
@@ -762,5 +762,5 @@ export function registerCloudsearchGeneratedTools(registry) {
|
|
|
762
762
|
"toDate.year": z.number().describe("Year of date. Must be from 1 to 9999.").optional(),
|
|
763
763
|
fields: z.string().optional().describe('Response field mask.'),
|
|
764
764
|
},
|
|
765
|
-
});
|
|
765
|
+
}, deps);
|
|
766
766
|
}
|