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 { coerceArray, coerceBoolean, coerceJson } from '../_coerce.js';
|
|
4
4
|
import { accountField, registerGeneratedTool } from './_shared.js';
|
|
5
|
-
export function registerAnalyticsGeneratedTools(registry) {
|
|
5
|
+
export function registerAnalyticsGeneratedTools(registry, deps = {}) {
|
|
6
6
|
// Interned method scope sets (shared across tools; see scope-observability).
|
|
7
7
|
const S_analyticsadmin_v1beta = [
|
|
8
8
|
["https://www.googleapis.com/auth/analytics.edit"],
|
|
@@ -16,11 +16,11 @@ export function registerAnalyticsGeneratedTools(registry) {
|
|
|
16
16
|
params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
17
17
|
hasBody: false,
|
|
18
18
|
shape: {
|
|
19
|
-
account: accountField(),
|
|
19
|
+
account: accountField(() => registry.accountAliases()),
|
|
20
20
|
name: z.string().min(1).describe("Required. The name of the Account to soft-delete. Format: accounts/{account} Example: \"accounts/100\""),
|
|
21
21
|
fields: z.string().optional().describe('Response field mask.'),
|
|
22
22
|
},
|
|
23
|
-
});
|
|
23
|
+
}, deps);
|
|
24
24
|
registerGeneratedTool(registry, {
|
|
25
25
|
name: "analytics_accounts_get",
|
|
26
26
|
cud: "read",
|
|
@@ -29,11 +29,11 @@ export function registerAnalyticsGeneratedTools(registry) {
|
|
|
29
29
|
params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
30
30
|
hasBody: false,
|
|
31
31
|
shape: {
|
|
32
|
-
account: accountField(),
|
|
32
|
+
account: accountField(() => registry.accountAliases()),
|
|
33
33
|
name: z.string().min(1).describe("Required. The name of the account to lookup. Format: accounts/{account} Example: \"accounts/100\""),
|
|
34
34
|
fields: z.string().optional().describe('Response field mask.'),
|
|
35
35
|
},
|
|
36
|
-
});
|
|
36
|
+
}, deps);
|
|
37
37
|
registerGeneratedTool(registry, {
|
|
38
38
|
name: "analytics_accounts_get_data_sharing_settings",
|
|
39
39
|
cud: "read",
|
|
@@ -42,11 +42,11 @@ export function registerAnalyticsGeneratedTools(registry) {
|
|
|
42
42
|
params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
43
43
|
hasBody: false,
|
|
44
44
|
shape: {
|
|
45
|
-
account: accountField(),
|
|
45
|
+
account: accountField(() => registry.accountAliases()),
|
|
46
46
|
name: z.string().min(1).describe("Required. The name of the settings to lookup. Format: accounts/{account}/dataSharingSettings Example: `accounts/1000/dataSharingSettings`"),
|
|
47
47
|
fields: z.string().optional().describe('Response field mask.'),
|
|
48
48
|
},
|
|
49
|
-
});
|
|
49
|
+
}, deps);
|
|
50
50
|
registerGeneratedTool(registry, {
|
|
51
51
|
name: "analytics_accounts_list",
|
|
52
52
|
cud: "read",
|
|
@@ -55,13 +55,13 @@ export function registerAnalyticsGeneratedTools(registry) {
|
|
|
55
55
|
params: [{ "field": "pageSize", "api": "pageSize", "location": "query" }, { "field": "pageToken", "api": "pageToken", "location": "query" }, { "field": "showDeleted", "api": "showDeleted", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
56
56
|
hasBody: false,
|
|
57
57
|
shape: {
|
|
58
|
-
account: accountField(),
|
|
58
|
+
account: accountField(() => registry.accountAliases()),
|
|
59
59
|
pageSize: z.number().describe("Optional. The maximum number of resources to return. The service may return fewer than this value, even if there are additional pages. If unspecified, at most 50 resources will be returned. The maximu").optional(),
|
|
60
60
|
pageToken: z.string().describe("Optional. A page token, received from a previous `ListAccounts` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListAccounts` must match the call").optional(),
|
|
61
61
|
showDeleted: coerceBoolean.describe("Whether to include soft-deleted (ie: \"trashed\") Accounts in the results. Accounts can be inspected to determine whether they are deleted or not.").optional(),
|
|
62
62
|
fields: z.string().optional().describe('Response field mask.'),
|
|
63
63
|
},
|
|
64
|
-
});
|
|
64
|
+
}, deps);
|
|
65
65
|
registerGeneratedTool(registry, {
|
|
66
66
|
name: "analytics_accounts_patch",
|
|
67
67
|
cud: "update",
|
|
@@ -71,7 +71,7 @@ export function registerAnalyticsGeneratedTools(registry) {
|
|
|
71
71
|
hasBody: true,
|
|
72
72
|
bodyParams: [{ "field": "createTime", "api": "createTime" }, { "field": "deleted", "api": "deleted" }, { "field": "displayName", "api": "displayName" }, { "field": "gmpOrganization", "api": "gmpOrganization" }, { "field": "name_", "api": "name" }, { "field": "regionCode", "api": "regionCode" }, { "field": "updateTime", "api": "updateTime" }],
|
|
73
73
|
shape: {
|
|
74
|
-
account: accountField(),
|
|
74
|
+
account: accountField(() => registry.accountAliases()),
|
|
75
75
|
name: z.string().min(1).describe("Identifier. Resource name of this account. Format: accounts/{account} Example: \"accounts/100\""),
|
|
76
76
|
updateMask: z.string().describe("Required. The list of fields to be updated. Field names must be in snake case (for example, \"field_to_update\"). Omitted fields will not be updated. To replace the entire entity, use one path with the ").optional(),
|
|
77
77
|
createTime: z.string().describe("Output only. Time when this account was originally created.").optional(),
|
|
@@ -83,7 +83,7 @@ export function registerAnalyticsGeneratedTools(registry) {
|
|
|
83
83
|
updateTime: z.string().describe("Output only. Time when account payload fields were last updated.").optional(),
|
|
84
84
|
fields: z.string().optional().describe('Response field mask.'),
|
|
85
85
|
},
|
|
86
|
-
});
|
|
86
|
+
}, deps);
|
|
87
87
|
registerGeneratedTool(registry, {
|
|
88
88
|
name: "analytics_accounts_provision_account_ticket",
|
|
89
89
|
cud: "create",
|
|
@@ -92,11 +92,11 @@ export function registerAnalyticsGeneratedTools(registry) {
|
|
|
92
92
|
params: [{ "field": "fields", "api": "fields", "location": "query" }],
|
|
93
93
|
hasBody: true,
|
|
94
94
|
shape: {
|
|
95
|
-
account: accountField(),
|
|
95
|
+
account: accountField(() => registry.accountAliases()),
|
|
96
96
|
body: coerceJson(z.record(z.string(), z.unknown())).describe("GoogleAnalyticsAdminV1betaProvisionAccountTicketRequest JSON request body. Top-level fields: account, redirectUri."),
|
|
97
97
|
fields: z.string().optional().describe('Response field mask.'),
|
|
98
98
|
},
|
|
99
|
-
});
|
|
99
|
+
}, deps);
|
|
100
100
|
registerGeneratedTool(registry, {
|
|
101
101
|
name: "analytics_accounts_run_access_report",
|
|
102
102
|
cud: "read",
|
|
@@ -105,12 +105,12 @@ export function registerAnalyticsGeneratedTools(registry) {
|
|
|
105
105
|
params: [{ "field": "entity", "api": "entity", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
106
106
|
hasBody: true,
|
|
107
107
|
shape: {
|
|
108
|
-
account: accountField(),
|
|
108
|
+
account: accountField(() => registry.accountAliases()),
|
|
109
109
|
entity: z.string().min(1).describe("The Data Access Report supports requesting at the property level or account level. If requested at the account level, Data Access Reports include all access for all properties under that account. To r"),
|
|
110
110
|
body: coerceJson(z.record(z.string(), z.unknown())).describe("GoogleAnalyticsAdminV1betaRunAccessReportRequest JSON request body. Top-level fields: dateRanges, dimensionFilter, dimensions, expandGroups, includeAllUsers, limit, metricFilter, metrics, offset, orderBys, returnEntityQuota, timeZone."),
|
|
111
111
|
fields: z.string().optional().describe('Response field mask.'),
|
|
112
112
|
},
|
|
113
|
-
});
|
|
113
|
+
}, deps);
|
|
114
114
|
registerGeneratedTool(registry, {
|
|
115
115
|
name: "analytics_accounts_search_change_history_events",
|
|
116
116
|
cud: "read",
|
|
@@ -120,7 +120,7 @@ export function registerAnalyticsGeneratedTools(registry) {
|
|
|
120
120
|
hasBody: true,
|
|
121
121
|
bodyParams: [{ "field": "action", "api": "action" }, { "field": "actorEmail", "api": "actorEmail" }, { "field": "earliestChangeTime", "api": "earliestChangeTime" }, { "field": "latestChangeTime", "api": "latestChangeTime" }, { "field": "pageSize", "api": "pageSize" }, { "field": "pageToken", "api": "pageToken" }, { "field": "property", "api": "property" }, { "field": "resourceType", "api": "resourceType" }],
|
|
122
122
|
shape: {
|
|
123
|
-
account: accountField(),
|
|
123
|
+
account: accountField(() => registry.accountAliases()),
|
|
124
124
|
account_: z.string().min(1).describe("Required. The account resource for which to return change history resources. Format: accounts/{account} Example: `accounts/100`"),
|
|
125
125
|
action: coerceArray(z.enum(["ACTION_TYPE_UNSPECIFIED", "CREATED", "UPDATED", "DELETED"])).describe("Optional. If set, only return changes that match one or more of these types of actions.").optional(),
|
|
126
126
|
actorEmail: coerceArray(z.string()).describe("Optional. If set, only return changes if they are made by a user in this list.").optional(),
|
|
@@ -132,7 +132,7 @@ export function registerAnalyticsGeneratedTools(registry) {
|
|
|
132
132
|
resourceType: coerceArray(z.enum(["CHANGE_HISTORY_RESOURCE_TYPE_UNSPECIFIED", "ACCOUNT", "PROPERTY", "FIREBASE_LINK", "GOOGLE_ADS_LINK", "GOOGLE_SIGNALS_SETTINGS", "CONVERSION_EVENT", "MEASUREMENT_PROTOCOL_SECRET", "CUSTOM_DIMENSION", "CUSTOM_METRIC", "DATA_RETENTION_SETTINGS", "DISPLAY_VIDEO_360_ADVERTISER_LINK", "DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL", "DATA_STREAM", "ATTRIBUTION_SETTINGS"])).describe("Optional. If set, only return changes if they are for a resource that matches at least one of these types.").optional(),
|
|
133
133
|
fields: z.string().optional().describe('Response field mask.'),
|
|
134
134
|
},
|
|
135
|
-
});
|
|
135
|
+
}, deps);
|
|
136
136
|
registerGeneratedTool(registry, {
|
|
137
137
|
name: "analytics_properties_acknowledge_user_data_collection",
|
|
138
138
|
cud: "update",
|
|
@@ -142,12 +142,12 @@ export function registerAnalyticsGeneratedTools(registry) {
|
|
|
142
142
|
hasBody: true,
|
|
143
143
|
bodyParams: [{ "field": "acknowledgement", "api": "acknowledgement" }],
|
|
144
144
|
shape: {
|
|
145
|
-
account: accountField(),
|
|
145
|
+
account: accountField(() => registry.accountAliases()),
|
|
146
146
|
property: z.string().min(1).describe("Required. The property for which to acknowledge user data collection."),
|
|
147
147
|
acknowledgement: z.string().describe("Required. An acknowledgement that the caller of this method understands the terms of user data collection. This field must contain the exact value: \"I acknowledge that I have the necessary privacy dis").optional(),
|
|
148
148
|
fields: z.string().optional().describe('Response field mask.'),
|
|
149
149
|
},
|
|
150
|
-
});
|
|
150
|
+
}, deps);
|
|
151
151
|
registerGeneratedTool(registry, {
|
|
152
152
|
name: "analytics_properties_conversion_events_create",
|
|
153
153
|
cud: "create",
|
|
@@ -156,12 +156,12 @@ export function registerAnalyticsGeneratedTools(registry) {
|
|
|
156
156
|
params: [{ "field": "parent", "api": "parent", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
157
157
|
hasBody: true,
|
|
158
158
|
shape: {
|
|
159
|
-
account: accountField(),
|
|
159
|
+
account: accountField(() => registry.accountAliases()),
|
|
160
160
|
parent: z.string().min(1).describe("Required. The resource name of the parent property where this conversion event will be created. Format: properties/123"),
|
|
161
161
|
body: coerceJson(z.record(z.string(), z.unknown())).describe("GoogleAnalyticsAdminV1betaConversionEvent JSON request body. Top-level fields: countingMethod, createTime, custom, defaultConversionValue, deletable, eventName, name."),
|
|
162
162
|
fields: z.string().optional().describe('Response field mask.'),
|
|
163
163
|
},
|
|
164
|
-
});
|
|
164
|
+
}, deps);
|
|
165
165
|
registerGeneratedTool(registry, {
|
|
166
166
|
name: "analytics_properties_conversion_events_delete",
|
|
167
167
|
cud: "delete",
|
|
@@ -170,11 +170,11 @@ export function registerAnalyticsGeneratedTools(registry) {
|
|
|
170
170
|
params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
171
171
|
hasBody: false,
|
|
172
172
|
shape: {
|
|
173
|
-
account: accountField(),
|
|
173
|
+
account: accountField(() => registry.accountAliases()),
|
|
174
174
|
name: z.string().min(1).describe("Required. The resource name of the conversion event to delete. Format: properties/{property}/conversionEvents/{conversion_event} Example: \"properties/123/conversionEvents/456\""),
|
|
175
175
|
fields: z.string().optional().describe('Response field mask.'),
|
|
176
176
|
},
|
|
177
|
-
});
|
|
177
|
+
}, deps);
|
|
178
178
|
registerGeneratedTool(registry, {
|
|
179
179
|
name: "analytics_properties_conversion_events_get",
|
|
180
180
|
cud: "read",
|
|
@@ -183,11 +183,11 @@ export function registerAnalyticsGeneratedTools(registry) {
|
|
|
183
183
|
params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
184
184
|
hasBody: false,
|
|
185
185
|
shape: {
|
|
186
|
-
account: accountField(),
|
|
186
|
+
account: accountField(() => registry.accountAliases()),
|
|
187
187
|
name: z.string().min(1).describe("Required. The resource name of the conversion event to retrieve. Format: properties/{property}/conversionEvents/{conversion_event} Example: \"properties/123/conversionEvents/456\""),
|
|
188
188
|
fields: z.string().optional().describe('Response field mask.'),
|
|
189
189
|
},
|
|
190
|
-
});
|
|
190
|
+
}, deps);
|
|
191
191
|
registerGeneratedTool(registry, {
|
|
192
192
|
name: "analytics_properties_conversion_events_list",
|
|
193
193
|
cud: "read",
|
|
@@ -196,13 +196,13 @@ export function registerAnalyticsGeneratedTools(registry) {
|
|
|
196
196
|
params: [{ "field": "parent", "api": "parent", "location": "path" }, { "field": "pageSize", "api": "pageSize", "location": "query" }, { "field": "pageToken", "api": "pageToken", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
197
197
|
hasBody: false,
|
|
198
198
|
shape: {
|
|
199
|
-
account: accountField(),
|
|
199
|
+
account: accountField(() => registry.accountAliases()),
|
|
200
200
|
parent: z.string().min(1).describe("Required. The resource name of the parent property. Example: 'properties/123'"),
|
|
201
201
|
pageSize: z.number().describe("Optional. The maximum number of resources to return. If unspecified, at most 50 resources will be returned. The maximum value is 200; (higher values will be coerced to the maximum)").optional(),
|
|
202
202
|
pageToken: z.string().describe("Optional. A page token, received from a previous `ListConversionEvents` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListConversionEvents` mus").optional(),
|
|
203
203
|
fields: z.string().optional().describe('Response field mask.'),
|
|
204
204
|
},
|
|
205
|
-
});
|
|
205
|
+
}, deps);
|
|
206
206
|
registerGeneratedTool(registry, {
|
|
207
207
|
name: "analytics_properties_conversion_events_patch",
|
|
208
208
|
cud: "update",
|
|
@@ -211,13 +211,13 @@ export function registerAnalyticsGeneratedTools(registry) {
|
|
|
211
211
|
params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "updateMask", "api": "updateMask", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
212
212
|
hasBody: true,
|
|
213
213
|
shape: {
|
|
214
|
-
account: accountField(),
|
|
214
|
+
account: accountField(() => registry.accountAliases()),
|
|
215
215
|
name: z.string().min(1).describe("Identifier. Resource name of this conversion event. Format: properties/{property}/conversionEvents/{conversion_event}"),
|
|
216
216
|
updateMask: z.string().describe("Required. The list of fields to be updated. Field names must be in snake case (e.g., \"field_to_update\"). Omitted fields will not be updated. To replace the entire entity, use one path with the string ").optional(),
|
|
217
217
|
body: coerceJson(z.record(z.string(), z.unknown())).describe("GoogleAnalyticsAdminV1betaConversionEvent JSON request body. Top-level fields: countingMethod, createTime, custom, defaultConversionValue, deletable, eventName, name."),
|
|
218
218
|
fields: z.string().optional().describe('Response field mask.'),
|
|
219
219
|
},
|
|
220
|
-
});
|
|
220
|
+
}, deps);
|
|
221
221
|
registerGeneratedTool(registry, {
|
|
222
222
|
name: "analytics_properties_create",
|
|
223
223
|
cud: "create",
|
|
@@ -227,7 +227,7 @@ export function registerAnalyticsGeneratedTools(registry) {
|
|
|
227
227
|
hasBody: true,
|
|
228
228
|
bodyParams: [{ "field": "account_", "api": "account" }, { "field": "createTime", "api": "createTime" }, { "field": "currencyCode", "api": "currencyCode" }, { "field": "deleteTime", "api": "deleteTime" }, { "field": "displayName", "api": "displayName" }, { "field": "expireTime", "api": "expireTime" }, { "field": "industryCategory", "api": "industryCategory" }, { "field": "name", "api": "name" }, { "field": "parent", "api": "parent" }, { "field": "propertyType", "api": "propertyType" }, { "field": "serviceLevel", "api": "serviceLevel" }, { "field": "timeZone", "api": "timeZone" }, { "field": "updateTime", "api": "updateTime" }],
|
|
229
229
|
shape: {
|
|
230
|
-
account: accountField(),
|
|
230
|
+
account: accountField(() => registry.accountAliases()),
|
|
231
231
|
account_: z.string().describe("Immutable. The resource name of the parent account Format: accounts/{account_id} Example: \"accounts/123\"").optional(),
|
|
232
232
|
createTime: z.string().describe("Output only. Time when the entity was originally created.").optional(),
|
|
233
233
|
currencyCode: z.string().describe("The currency type used in reports involving monetary values. Format: https://en.wikipedia.org/wiki/ISO_4217 Examples: \"USD\", \"EUR\", \"JPY\"").optional(),
|
|
@@ -243,7 +243,7 @@ export function registerAnalyticsGeneratedTools(registry) {
|
|
|
243
243
|
updateTime: z.string().describe("Output only. Time when entity payload fields were last updated.").optional(),
|
|
244
244
|
fields: z.string().optional().describe('Response field mask.'),
|
|
245
245
|
},
|
|
246
|
-
});
|
|
246
|
+
}, deps);
|
|
247
247
|
registerGeneratedTool(registry, {
|
|
248
248
|
name: "analytics_properties_custom_dimensions_archive",
|
|
249
249
|
cud: "delete",
|
|
@@ -253,11 +253,11 @@ export function registerAnalyticsGeneratedTools(registry) {
|
|
|
253
253
|
hasBody: true,
|
|
254
254
|
bodyParams: [],
|
|
255
255
|
shape: {
|
|
256
|
-
account: accountField(),
|
|
256
|
+
account: accountField(() => registry.accountAliases()),
|
|
257
257
|
name: z.string().min(1).describe("Required. The name of the CustomDimension to archive. Example format: properties/1234/customDimensions/5678"),
|
|
258
258
|
fields: z.string().optional().describe('Response field mask.'),
|
|
259
259
|
},
|
|
260
|
-
});
|
|
260
|
+
}, deps);
|
|
261
261
|
registerGeneratedTool(registry, {
|
|
262
262
|
name: "analytics_properties_custom_dimensions_create",
|
|
263
263
|
cud: "create",
|
|
@@ -267,7 +267,7 @@ export function registerAnalyticsGeneratedTools(registry) {
|
|
|
267
267
|
hasBody: true,
|
|
268
268
|
bodyParams: [{ "field": "description", "api": "description" }, { "field": "disallowAdsPersonalization", "api": "disallowAdsPersonalization" }, { "field": "displayName", "api": "displayName" }, { "field": "name", "api": "name" }, { "field": "parameterName", "api": "parameterName" }, { "field": "scope", "api": "scope" }],
|
|
269
269
|
shape: {
|
|
270
|
-
account: accountField(),
|
|
270
|
+
account: accountField(() => registry.accountAliases()),
|
|
271
271
|
parent: z.string().min(1).describe("Required. Example format: properties/1234"),
|
|
272
272
|
description: z.string().describe("Optional. Description for this custom dimension. Max length of 150 characters.").optional(),
|
|
273
273
|
disallowAdsPersonalization: coerceBoolean.describe("Optional. If set to true, sets this dimension as NPA and excludes it from ads personalization. This is currently only supported by user-scoped custom dimensions.").optional(),
|
|
@@ -277,7 +277,7 @@ export function registerAnalyticsGeneratedTools(registry) {
|
|
|
277
277
|
scope: z.enum(["DIMENSION_SCOPE_UNSPECIFIED", "EVENT", "USER", "ITEM"]).describe("Required. Immutable. The scope of this dimension.").optional(),
|
|
278
278
|
fields: z.string().optional().describe('Response field mask.'),
|
|
279
279
|
},
|
|
280
|
-
});
|
|
280
|
+
}, deps);
|
|
281
281
|
registerGeneratedTool(registry, {
|
|
282
282
|
name: "analytics_properties_custom_dimensions_get",
|
|
283
283
|
cud: "read",
|
|
@@ -286,11 +286,11 @@ export function registerAnalyticsGeneratedTools(registry) {
|
|
|
286
286
|
params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
287
287
|
hasBody: false,
|
|
288
288
|
shape: {
|
|
289
|
-
account: accountField(),
|
|
289
|
+
account: accountField(() => registry.accountAliases()),
|
|
290
290
|
name: z.string().min(1).describe("Required. The name of the CustomDimension to get. Example format: properties/1234/customDimensions/5678"),
|
|
291
291
|
fields: z.string().optional().describe('Response field mask.'),
|
|
292
292
|
},
|
|
293
|
-
});
|
|
293
|
+
}, deps);
|
|
294
294
|
registerGeneratedTool(registry, {
|
|
295
295
|
name: "analytics_properties_custom_dimensions_list",
|
|
296
296
|
cud: "read",
|
|
@@ -299,13 +299,13 @@ export function registerAnalyticsGeneratedTools(registry) {
|
|
|
299
299
|
params: [{ "field": "parent", "api": "parent", "location": "path" }, { "field": "pageSize", "api": "pageSize", "location": "query" }, { "field": "pageToken", "api": "pageToken", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
300
300
|
hasBody: false,
|
|
301
301
|
shape: {
|
|
302
|
-
account: accountField(),
|
|
302
|
+
account: accountField(() => registry.accountAliases()),
|
|
303
303
|
parent: z.string().min(1).describe("Required. Example format: properties/1234"),
|
|
304
304
|
pageSize: z.number().describe("Optional. The maximum number of resources to return. If unspecified, at most 50 resources will be returned. The maximum value is 200 (higher values will be coerced to the maximum).").optional(),
|
|
305
305
|
pageToken: z.string().describe("Optional. A page token, received from a previous `ListCustomDimensions` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListCustomDimensions` mus").optional(),
|
|
306
306
|
fields: z.string().optional().describe('Response field mask.'),
|
|
307
307
|
},
|
|
308
|
-
});
|
|
308
|
+
}, deps);
|
|
309
309
|
registerGeneratedTool(registry, {
|
|
310
310
|
name: "analytics_properties_custom_dimensions_patch",
|
|
311
311
|
cud: "update",
|
|
@@ -315,7 +315,7 @@ export function registerAnalyticsGeneratedTools(registry) {
|
|
|
315
315
|
hasBody: true,
|
|
316
316
|
bodyParams: [{ "field": "description", "api": "description" }, { "field": "disallowAdsPersonalization", "api": "disallowAdsPersonalization" }, { "field": "displayName", "api": "displayName" }, { "field": "name_", "api": "name" }, { "field": "parameterName", "api": "parameterName" }, { "field": "scope", "api": "scope" }],
|
|
317
317
|
shape: {
|
|
318
|
-
account: accountField(),
|
|
318
|
+
account: accountField(() => registry.accountAliases()),
|
|
319
319
|
name: z.string().min(1).describe("Identifier. Resource name for this CustomDimension resource. Format: properties/{property}/customDimensions/{customDimension}"),
|
|
320
320
|
updateMask: z.string().describe("Required. The list of fields to be updated. Omitted fields will not be updated. To replace the entire entity, use one path with the string \"*\" to match all fields.").optional(),
|
|
321
321
|
description: z.string().describe("Optional. Description for this custom dimension. Max length of 150 characters.").optional(),
|
|
@@ -326,7 +326,7 @@ export function registerAnalyticsGeneratedTools(registry) {
|
|
|
326
326
|
scope: z.enum(["DIMENSION_SCOPE_UNSPECIFIED", "EVENT", "USER", "ITEM"]).describe("Required. Immutable. The scope of this dimension.").optional(),
|
|
327
327
|
fields: z.string().optional().describe('Response field mask.'),
|
|
328
328
|
},
|
|
329
|
-
});
|
|
329
|
+
}, deps);
|
|
330
330
|
registerGeneratedTool(registry, {
|
|
331
331
|
name: "analytics_properties_custom_metrics_archive",
|
|
332
332
|
cud: "delete",
|
|
@@ -336,11 +336,11 @@ export function registerAnalyticsGeneratedTools(registry) {
|
|
|
336
336
|
hasBody: true,
|
|
337
337
|
bodyParams: [],
|
|
338
338
|
shape: {
|
|
339
|
-
account: accountField(),
|
|
339
|
+
account: accountField(() => registry.accountAliases()),
|
|
340
340
|
name: z.string().min(1).describe("Required. The name of the CustomMetric to archive. Example format: properties/1234/customMetrics/5678"),
|
|
341
341
|
fields: z.string().optional().describe('Response field mask.'),
|
|
342
342
|
},
|
|
343
|
-
});
|
|
343
|
+
}, deps);
|
|
344
344
|
registerGeneratedTool(registry, {
|
|
345
345
|
name: "analytics_properties_custom_metrics_create",
|
|
346
346
|
cud: "create",
|
|
@@ -350,7 +350,7 @@ export function registerAnalyticsGeneratedTools(registry) {
|
|
|
350
350
|
hasBody: true,
|
|
351
351
|
bodyParams: [{ "field": "description", "api": "description" }, { "field": "displayName", "api": "displayName" }, { "field": "measurementUnit", "api": "measurementUnit" }, { "field": "name", "api": "name" }, { "field": "parameterName", "api": "parameterName" }, { "field": "restrictedMetricType", "api": "restrictedMetricType" }, { "field": "scope", "api": "scope" }],
|
|
352
352
|
shape: {
|
|
353
|
-
account: accountField(),
|
|
353
|
+
account: accountField(() => registry.accountAliases()),
|
|
354
354
|
parent: z.string().min(1).describe("Required. Example format: properties/1234"),
|
|
355
355
|
description: z.string().describe("Optional. Description for this custom dimension. Max length of 150 characters.").optional(),
|
|
356
356
|
displayName: z.string().describe("Required. Display name for this custom metric as shown in the Analytics UI. Max length of 82 characters, alphanumeric plus space and underscore starting with a letter. Legacy system-generated display ").optional(),
|
|
@@ -361,7 +361,7 @@ export function registerAnalyticsGeneratedTools(registry) {
|
|
|
361
361
|
scope: z.enum(["METRIC_SCOPE_UNSPECIFIED", "EVENT"]).describe("Required. Immutable. The scope of this custom metric.").optional(),
|
|
362
362
|
fields: z.string().optional().describe('Response field mask.'),
|
|
363
363
|
},
|
|
364
|
-
});
|
|
364
|
+
}, deps);
|
|
365
365
|
registerGeneratedTool(registry, {
|
|
366
366
|
name: "analytics_properties_custom_metrics_get",
|
|
367
367
|
cud: "read",
|
|
@@ -370,11 +370,11 @@ export function registerAnalyticsGeneratedTools(registry) {
|
|
|
370
370
|
params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
371
371
|
hasBody: false,
|
|
372
372
|
shape: {
|
|
373
|
-
account: accountField(),
|
|
373
|
+
account: accountField(() => registry.accountAliases()),
|
|
374
374
|
name: z.string().min(1).describe("Required. The name of the CustomMetric to get. Example format: properties/1234/customMetrics/5678"),
|
|
375
375
|
fields: z.string().optional().describe('Response field mask.'),
|
|
376
376
|
},
|
|
377
|
-
});
|
|
377
|
+
}, deps);
|
|
378
378
|
registerGeneratedTool(registry, {
|
|
379
379
|
name: "analytics_properties_custom_metrics_list",
|
|
380
380
|
cud: "read",
|
|
@@ -383,13 +383,13 @@ export function registerAnalyticsGeneratedTools(registry) {
|
|
|
383
383
|
params: [{ "field": "parent", "api": "parent", "location": "path" }, { "field": "pageSize", "api": "pageSize", "location": "query" }, { "field": "pageToken", "api": "pageToken", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
384
384
|
hasBody: false,
|
|
385
385
|
shape: {
|
|
386
|
-
account: accountField(),
|
|
386
|
+
account: accountField(() => registry.accountAliases()),
|
|
387
387
|
parent: z.string().min(1).describe("Required. Example format: properties/1234"),
|
|
388
388
|
pageSize: z.number().describe("The maximum number of resources to return. If unspecified, at most 50 resources will be returned. The maximum value is 200 (higher values will be coerced to the maximum).").optional(),
|
|
389
389
|
pageToken: z.string().describe("A page token, received from a previous `ListCustomMetrics` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListCustomMetrics` must match the call").optional(),
|
|
390
390
|
fields: z.string().optional().describe('Response field mask.'),
|
|
391
391
|
},
|
|
392
|
-
});
|
|
392
|
+
}, deps);
|
|
393
393
|
registerGeneratedTool(registry, {
|
|
394
394
|
name: "analytics_properties_custom_metrics_patch",
|
|
395
395
|
cud: "update",
|
|
@@ -399,7 +399,7 @@ export function registerAnalyticsGeneratedTools(registry) {
|
|
|
399
399
|
hasBody: true,
|
|
400
400
|
bodyParams: [{ "field": "description", "api": "description" }, { "field": "displayName", "api": "displayName" }, { "field": "measurementUnit", "api": "measurementUnit" }, { "field": "name_", "api": "name" }, { "field": "parameterName", "api": "parameterName" }, { "field": "restrictedMetricType", "api": "restrictedMetricType" }, { "field": "scope", "api": "scope" }],
|
|
401
401
|
shape: {
|
|
402
|
-
account: accountField(),
|
|
402
|
+
account: accountField(() => registry.accountAliases()),
|
|
403
403
|
name: z.string().min(1).describe("Identifier. Resource name for this CustomMetric resource. Format: properties/{property}/customMetrics/{customMetric}"),
|
|
404
404
|
updateMask: z.string().describe("Required. The list of fields to be updated. Omitted fields will not be updated. To replace the entire entity, use one path with the string \"*\" to match all fields.").optional(),
|
|
405
405
|
description: z.string().describe("Optional. Description for this custom dimension. Max length of 150 characters.").optional(),
|
|
@@ -411,7 +411,7 @@ export function registerAnalyticsGeneratedTools(registry) {
|
|
|
411
411
|
scope: z.enum(["METRIC_SCOPE_UNSPECIFIED", "EVENT"]).describe("Required. Immutable. The scope of this custom metric.").optional(),
|
|
412
412
|
fields: z.string().optional().describe('Response field mask.'),
|
|
413
413
|
},
|
|
414
|
-
});
|
|
414
|
+
}, deps);
|
|
415
415
|
registerGeneratedTool(registry, {
|
|
416
416
|
name: "analytics_properties_data_streams_create",
|
|
417
417
|
cud: "create",
|
|
@@ -420,12 +420,12 @@ export function registerAnalyticsGeneratedTools(registry) {
|
|
|
420
420
|
params: [{ "field": "parent", "api": "parent", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
421
421
|
hasBody: true,
|
|
422
422
|
shape: {
|
|
423
|
-
account: accountField(),
|
|
423
|
+
account: accountField(() => registry.accountAliases()),
|
|
424
424
|
parent: z.string().min(1).describe("Required. Example format: properties/1234"),
|
|
425
425
|
body: coerceJson(z.record(z.string(), z.unknown())).describe("GoogleAnalyticsAdminV1betaDataStream JSON request body. Top-level fields: androidAppStreamData, createTime, displayName, iosAppStreamData, name, type, updateTime, webStreamData."),
|
|
426
426
|
fields: z.string().optional().describe('Response field mask.'),
|
|
427
427
|
},
|
|
428
|
-
});
|
|
428
|
+
}, deps);
|
|
429
429
|
registerGeneratedTool(registry, {
|
|
430
430
|
name: "analytics_properties_data_streams_delete",
|
|
431
431
|
cud: "delete",
|
|
@@ -434,11 +434,11 @@ export function registerAnalyticsGeneratedTools(registry) {
|
|
|
434
434
|
params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
435
435
|
hasBody: false,
|
|
436
436
|
shape: {
|
|
437
|
-
account: accountField(),
|
|
437
|
+
account: accountField(() => registry.accountAliases()),
|
|
438
438
|
name: z.string().min(1).describe("Required. The name of the DataStream to delete. Example format: properties/1234/dataStreams/5678"),
|
|
439
439
|
fields: z.string().optional().describe('Response field mask.'),
|
|
440
440
|
},
|
|
441
|
-
});
|
|
441
|
+
}, deps);
|
|
442
442
|
registerGeneratedTool(registry, {
|
|
443
443
|
name: "analytics_properties_data_streams_get",
|
|
444
444
|
cud: "read",
|
|
@@ -447,11 +447,11 @@ export function registerAnalyticsGeneratedTools(registry) {
|
|
|
447
447
|
params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
448
448
|
hasBody: false,
|
|
449
449
|
shape: {
|
|
450
|
-
account: accountField(),
|
|
450
|
+
account: accountField(() => registry.accountAliases()),
|
|
451
451
|
name: z.string().min(1).describe("Required. The name of the DataStream to get. Example format: properties/1234/dataStreams/5678"),
|
|
452
452
|
fields: z.string().optional().describe('Response field mask.'),
|
|
453
453
|
},
|
|
454
|
-
});
|
|
454
|
+
}, deps);
|
|
455
455
|
registerGeneratedTool(registry, {
|
|
456
456
|
name: "analytics_properties_data_streams_list",
|
|
457
457
|
cud: "read",
|
|
@@ -460,13 +460,13 @@ export function registerAnalyticsGeneratedTools(registry) {
|
|
|
460
460
|
params: [{ "field": "parent", "api": "parent", "location": "path" }, { "field": "pageSize", "api": "pageSize", "location": "query" }, { "field": "pageToken", "api": "pageToken", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
461
461
|
hasBody: false,
|
|
462
462
|
shape: {
|
|
463
|
-
account: accountField(),
|
|
463
|
+
account: accountField(() => registry.accountAliases()),
|
|
464
464
|
parent: z.string().min(1).describe("Required. Example format: properties/1234"),
|
|
465
465
|
pageSize: z.number().describe("The maximum number of resources to return. If unspecified, at most 50 resources will be returned. The maximum value is 200 (higher values will be coerced to the maximum).").optional(),
|
|
466
466
|
pageToken: z.string().describe("A page token, received from a previous `ListDataStreams` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListDataStreams` must match the call tha").optional(),
|
|
467
467
|
fields: z.string().optional().describe('Response field mask.'),
|
|
468
468
|
},
|
|
469
|
-
});
|
|
469
|
+
}, deps);
|
|
470
470
|
registerGeneratedTool(registry, {
|
|
471
471
|
name: "analytics_data_streams_measurement_protocol_secrets_create",
|
|
472
472
|
cud: "create",
|
|
@@ -476,14 +476,14 @@ export function registerAnalyticsGeneratedTools(registry) {
|
|
|
476
476
|
hasBody: true,
|
|
477
477
|
bodyParams: [{ "field": "displayName", "api": "displayName" }, { "field": "name", "api": "name" }, { "field": "secretValue", "api": "secretValue" }],
|
|
478
478
|
shape: {
|
|
479
|
-
account: accountField(),
|
|
479
|
+
account: accountField(() => registry.accountAliases()),
|
|
480
480
|
parent: z.string().min(1).describe("Required. The parent resource where this secret will be created. Format: properties/{property}/dataStreams/{dataStream}"),
|
|
481
481
|
displayName: z.string().describe("Required. Human-readable display name for this secret.").optional(),
|
|
482
482
|
name: z.string().describe("Identifier. Resource name of this secret. This secret may be a child of any type of stream. Format: properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret").optional(),
|
|
483
483
|
secretValue: z.string().describe("Output only. The measurement protocol secret value. Pass this value to the api_secret field of the Measurement Protocol API when sending hits to this secret's parent property.").optional(),
|
|
484
484
|
fields: z.string().optional().describe('Response field mask.'),
|
|
485
485
|
},
|
|
486
|
-
});
|
|
486
|
+
}, deps);
|
|
487
487
|
registerGeneratedTool(registry, {
|
|
488
488
|
name: "analytics_data_streams_measurement_protocol_secrets_delete",
|
|
489
489
|
cud: "delete",
|
|
@@ -492,11 +492,11 @@ export function registerAnalyticsGeneratedTools(registry) {
|
|
|
492
492
|
params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
493
493
|
hasBody: false,
|
|
494
494
|
shape: {
|
|
495
|
-
account: accountField(),
|
|
495
|
+
account: accountField(() => registry.accountAliases()),
|
|
496
496
|
name: z.string().min(1).describe("Required. The name of the MeasurementProtocolSecret to delete. Format: properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret}"),
|
|
497
497
|
fields: z.string().optional().describe('Response field mask.'),
|
|
498
498
|
},
|
|
499
|
-
});
|
|
499
|
+
}, deps);
|
|
500
500
|
registerGeneratedTool(registry, {
|
|
501
501
|
name: "analytics_data_streams_measurement_protocol_secrets_get",
|
|
502
502
|
cud: "read",
|
|
@@ -505,11 +505,11 @@ export function registerAnalyticsGeneratedTools(registry) {
|
|
|
505
505
|
params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
506
506
|
hasBody: false,
|
|
507
507
|
shape: {
|
|
508
|
-
account: accountField(),
|
|
508
|
+
account: accountField(() => registry.accountAliases()),
|
|
509
509
|
name: z.string().min(1).describe("Required. The name of the measurement protocol secret to lookup. Format: properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret}"),
|
|
510
510
|
fields: z.string().optional().describe('Response field mask.'),
|
|
511
511
|
},
|
|
512
|
-
});
|
|
512
|
+
}, deps);
|
|
513
513
|
registerGeneratedTool(registry, {
|
|
514
514
|
name: "analytics_data_streams_measurement_protocol_secrets_list",
|
|
515
515
|
cud: "read",
|
|
@@ -518,13 +518,13 @@ export function registerAnalyticsGeneratedTools(registry) {
|
|
|
518
518
|
params: [{ "field": "parent", "api": "parent", "location": "path" }, { "field": "pageSize", "api": "pageSize", "location": "query" }, { "field": "pageToken", "api": "pageToken", "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
|
parent: z.string().min(1).describe("Required. The resource name of the parent stream. Format: properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets"),
|
|
523
523
|
pageSize: z.number().describe("Optional. The maximum number of resources to return. If unspecified, at most 10 resources will be returned. The maximum value is 10. Higher values will be coerced to the maximum.").optional(),
|
|
524
524
|
pageToken: z.string().describe("Optional. A page token, received from a previous `ListMeasurementProtocolSecrets` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListMeasurement").optional(),
|
|
525
525
|
fields: z.string().optional().describe('Response field mask.'),
|
|
526
526
|
},
|
|
527
|
-
});
|
|
527
|
+
}, deps);
|
|
528
528
|
registerGeneratedTool(registry, {
|
|
529
529
|
name: "analytics_data_streams_measurement_protocol_secrets_patch",
|
|
530
530
|
cud: "update",
|
|
@@ -534,7 +534,7 @@ export function registerAnalyticsGeneratedTools(registry) {
|
|
|
534
534
|
hasBody: true,
|
|
535
535
|
bodyParams: [{ "field": "displayName", "api": "displayName" }, { "field": "name_", "api": "name" }, { "field": "secretValue", "api": "secretValue" }],
|
|
536
536
|
shape: {
|
|
537
|
-
account: accountField(),
|
|
537
|
+
account: accountField(() => registry.accountAliases()),
|
|
538
538
|
name: z.string().min(1).describe("Identifier. Resource name of this secret. This secret may be a child of any type of stream. Format: properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret"),
|
|
539
539
|
updateMask: z.string().describe("Required. The list of fields to be updated. Omitted fields will not be updated.").optional(),
|
|
540
540
|
displayName: z.string().describe("Required. Human-readable display name for this secret.").optional(),
|
|
@@ -542,7 +542,7 @@ export function registerAnalyticsGeneratedTools(registry) {
|
|
|
542
542
|
secretValue: z.string().describe("Output only. The measurement protocol secret value. Pass this value to the api_secret field of the Measurement Protocol API when sending hits to this secret's parent property.").optional(),
|
|
543
543
|
fields: z.string().optional().describe('Response field mask.'),
|
|
544
544
|
},
|
|
545
|
-
});
|
|
545
|
+
}, deps);
|
|
546
546
|
registerGeneratedTool(registry, {
|
|
547
547
|
name: "analytics_properties_data_streams_patch",
|
|
548
548
|
cud: "update",
|
|
@@ -551,13 +551,13 @@ export function registerAnalyticsGeneratedTools(registry) {
|
|
|
551
551
|
params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "updateMask", "api": "updateMask", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
552
552
|
hasBody: true,
|
|
553
553
|
shape: {
|
|
554
|
-
account: accountField(),
|
|
554
|
+
account: accountField(() => registry.accountAliases()),
|
|
555
555
|
name: z.string().min(1).describe("Identifier. Resource name of this Data Stream. Format: properties/{property_id}/dataStreams/{stream_id} Example: \"properties/1000/dataStreams/2000\""),
|
|
556
556
|
updateMask: z.string().describe("Required. The list of fields to be updated. Omitted fields will not be updated. To replace the entire entity, use one path with the string \"*\" to match all fields.").optional(),
|
|
557
557
|
body: coerceJson(z.record(z.string(), z.unknown())).describe("GoogleAnalyticsAdminV1betaDataStream JSON request body. Top-level fields: androidAppStreamData, createTime, displayName, iosAppStreamData, name, type, updateTime, webStreamData."),
|
|
558
558
|
fields: z.string().optional().describe('Response field mask.'),
|
|
559
559
|
},
|
|
560
|
-
});
|
|
560
|
+
}, deps);
|
|
561
561
|
registerGeneratedTool(registry, {
|
|
562
562
|
name: "analytics_properties_delete",
|
|
563
563
|
cud: "delete",
|
|
@@ -566,11 +566,11 @@ export function registerAnalyticsGeneratedTools(registry) {
|
|
|
566
566
|
params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
567
567
|
hasBody: false,
|
|
568
568
|
shape: {
|
|
569
|
-
account: accountField(),
|
|
569
|
+
account: accountField(() => registry.accountAliases()),
|
|
570
570
|
name: z.string().min(1).describe("Required. The name of the Property to soft-delete. Format: properties/{property_id} Example: \"properties/1000\""),
|
|
571
571
|
fields: z.string().optional().describe('Response field mask.'),
|
|
572
572
|
},
|
|
573
|
-
});
|
|
573
|
+
}, deps);
|
|
574
574
|
registerGeneratedTool(registry, {
|
|
575
575
|
name: "analytics_properties_firebase_links_create",
|
|
576
576
|
cud: "create",
|
|
@@ -580,14 +580,14 @@ export function registerAnalyticsGeneratedTools(registry) {
|
|
|
580
580
|
hasBody: true,
|
|
581
581
|
bodyParams: [{ "field": "createTime", "api": "createTime" }, { "field": "name", "api": "name" }, { "field": "project", "api": "project" }],
|
|
582
582
|
shape: {
|
|
583
|
-
account: accountField(),
|
|
583
|
+
account: accountField(() => registry.accountAliases()),
|
|
584
584
|
parent: z.string().min(1).describe("Required. Format: properties/{property_id} Example: `properties/1234`"),
|
|
585
585
|
createTime: z.string().describe("Output only. Time when this FirebaseLink was originally created.").optional(),
|
|
586
586
|
name: z.string().describe("Identifier. Example format: properties/1234/firebaseLinks/5678").optional(),
|
|
587
587
|
project: z.string().describe("Immutable. Firebase project resource name. When creating a FirebaseLink, you may provide this resource name using either a project number or project ID. Once this resource has been created, returned F").optional(),
|
|
588
588
|
fields: z.string().optional().describe('Response field mask.'),
|
|
589
589
|
},
|
|
590
|
-
});
|
|
590
|
+
}, deps);
|
|
591
591
|
registerGeneratedTool(registry, {
|
|
592
592
|
name: "analytics_properties_firebase_links_delete",
|
|
593
593
|
cud: "delete",
|
|
@@ -596,11 +596,11 @@ export function registerAnalyticsGeneratedTools(registry) {
|
|
|
596
596
|
params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
597
597
|
hasBody: false,
|
|
598
598
|
shape: {
|
|
599
|
-
account: accountField(),
|
|
599
|
+
account: accountField(() => registry.accountAliases()),
|
|
600
600
|
name: z.string().min(1).describe("Required. Format: properties/{property_id}/firebaseLinks/{firebase_link_id} Example: `properties/1234/firebaseLinks/5678`"),
|
|
601
601
|
fields: z.string().optional().describe('Response field mask.'),
|
|
602
602
|
},
|
|
603
|
-
});
|
|
603
|
+
}, deps);
|
|
604
604
|
registerGeneratedTool(registry, {
|
|
605
605
|
name: "analytics_properties_firebase_links_list",
|
|
606
606
|
cud: "read",
|
|
@@ -609,13 +609,13 @@ export function registerAnalyticsGeneratedTools(registry) {
|
|
|
609
609
|
params: [{ "field": "parent", "api": "parent", "location": "path" }, { "field": "pageSize", "api": "pageSize", "location": "query" }, { "field": "pageToken", "api": "pageToken", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
610
610
|
hasBody: false,
|
|
611
611
|
shape: {
|
|
612
|
-
account: accountField(),
|
|
612
|
+
account: accountField(() => registry.accountAliases()),
|
|
613
613
|
parent: z.string().min(1).describe("Required. Format: properties/{property_id} Example: `properties/1234`"),
|
|
614
614
|
pageSize: z.number().describe("Optional. The maximum number of resources to return. The service may return fewer than this value, even if there are additional pages. If unspecified, at most 50 resources will be returned. The maximu").optional(),
|
|
615
615
|
pageToken: z.string().describe("Optional. A page token, received from a previous `ListFirebaseLinks` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListFirebaseLinks` must matc").optional(),
|
|
616
616
|
fields: z.string().optional().describe('Response field mask.'),
|
|
617
617
|
},
|
|
618
|
-
});
|
|
618
|
+
}, deps);
|
|
619
619
|
registerGeneratedTool(registry, {
|
|
620
620
|
name: "analytics_properties_get",
|
|
621
621
|
cud: "read",
|
|
@@ -624,11 +624,11 @@ export function registerAnalyticsGeneratedTools(registry) {
|
|
|
624
624
|
params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
625
625
|
hasBody: false,
|
|
626
626
|
shape: {
|
|
627
|
-
account: accountField(),
|
|
627
|
+
account: accountField(() => registry.accountAliases()),
|
|
628
628
|
name: z.string().min(1).describe("Required. The name of the property to lookup. Format: properties/{property_id} Example: \"properties/1000\""),
|
|
629
629
|
fields: z.string().optional().describe('Response field mask.'),
|
|
630
630
|
},
|
|
631
|
-
});
|
|
631
|
+
}, deps);
|
|
632
632
|
registerGeneratedTool(registry, {
|
|
633
633
|
name: "analytics_properties_get_data_retention_settings",
|
|
634
634
|
cud: "read",
|
|
@@ -637,11 +637,11 @@ export function registerAnalyticsGeneratedTools(registry) {
|
|
|
637
637
|
params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
638
638
|
hasBody: false,
|
|
639
639
|
shape: {
|
|
640
|
-
account: accountField(),
|
|
640
|
+
account: accountField(() => registry.accountAliases()),
|
|
641
641
|
name: z.string().min(1).describe("Required. The name of the settings to lookup. Format: properties/{property}/dataRetentionSettings Example: \"properties/1000/dataRetentionSettings\""),
|
|
642
642
|
fields: z.string().optional().describe('Response field mask.'),
|
|
643
643
|
},
|
|
644
|
-
});
|
|
644
|
+
}, deps);
|
|
645
645
|
registerGeneratedTool(registry, {
|
|
646
646
|
name: "analytics_properties_google_ads_links_create",
|
|
647
647
|
cud: "create",
|
|
@@ -651,7 +651,7 @@ export function registerAnalyticsGeneratedTools(registry) {
|
|
|
651
651
|
hasBody: true,
|
|
652
652
|
bodyParams: [{ "field": "adsPersonalizationEnabled", "api": "adsPersonalizationEnabled" }, { "field": "canManageClients", "api": "canManageClients" }, { "field": "createTime", "api": "createTime" }, { "field": "creatorEmailAddress", "api": "creatorEmailAddress" }, { "field": "customerId", "api": "customerId" }, { "field": "name", "api": "name" }, { "field": "updateTime", "api": "updateTime" }],
|
|
653
653
|
shape: {
|
|
654
|
-
account: accountField(),
|
|
654
|
+
account: accountField(() => registry.accountAliases()),
|
|
655
655
|
parent: z.string().min(1).describe("Required. Example format: properties/1234"),
|
|
656
656
|
adsPersonalizationEnabled: coerceBoolean.describe("Enable personalized advertising features with this integration. Automatically publish my Google Analytics audience lists and Google Analytics remarketing events/parameters to the linked Google Ads acc").optional(),
|
|
657
657
|
canManageClients: coerceBoolean.describe("Output only. If true, this link is for a Google Ads manager account.").optional(),
|
|
@@ -662,7 +662,7 @@ export function registerAnalyticsGeneratedTools(registry) {
|
|
|
662
662
|
updateTime: z.string().describe("Output only. Time when this link was last updated.").optional(),
|
|
663
663
|
fields: z.string().optional().describe('Response field mask.'),
|
|
664
664
|
},
|
|
665
|
-
});
|
|
665
|
+
}, deps);
|
|
666
666
|
registerGeneratedTool(registry, {
|
|
667
667
|
name: "analytics_properties_google_ads_links_delete",
|
|
668
668
|
cud: "delete",
|
|
@@ -671,11 +671,11 @@ export function registerAnalyticsGeneratedTools(registry) {
|
|
|
671
671
|
params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
672
672
|
hasBody: false,
|
|
673
673
|
shape: {
|
|
674
|
-
account: accountField(),
|
|
674
|
+
account: accountField(() => registry.accountAliases()),
|
|
675
675
|
name: z.string().min(1).describe("Required. Example format: properties/1234/googleAdsLinks/5678"),
|
|
676
676
|
fields: z.string().optional().describe('Response field mask.'),
|
|
677
677
|
},
|
|
678
|
-
});
|
|
678
|
+
}, deps);
|
|
679
679
|
registerGeneratedTool(registry, {
|
|
680
680
|
name: "analytics_properties_google_ads_links_list",
|
|
681
681
|
cud: "read",
|
|
@@ -684,13 +684,13 @@ export function registerAnalyticsGeneratedTools(registry) {
|
|
|
684
684
|
params: [{ "field": "parent", "api": "parent", "location": "path" }, { "field": "pageSize", "api": "pageSize", "location": "query" }, { "field": "pageToken", "api": "pageToken", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
685
685
|
hasBody: false,
|
|
686
686
|
shape: {
|
|
687
|
-
account: accountField(),
|
|
687
|
+
account: accountField(() => registry.accountAliases()),
|
|
688
688
|
parent: z.string().min(1).describe("Required. Example format: properties/1234"),
|
|
689
689
|
pageSize: z.number().describe("Optional. The maximum number of resources to return. If unspecified, at most 50 resources will be returned. The maximum value is 200 (higher values will be coerced to the maximum).").optional(),
|
|
690
690
|
pageToken: z.string().describe("Optional. A page token, received from a previous `ListGoogleAdsLinks` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListGoogleAdsLinks` must ma").optional(),
|
|
691
691
|
fields: z.string().optional().describe('Response field mask.'),
|
|
692
692
|
},
|
|
693
|
-
});
|
|
693
|
+
}, deps);
|
|
694
694
|
registerGeneratedTool(registry, {
|
|
695
695
|
name: "analytics_properties_google_ads_links_patch",
|
|
696
696
|
cud: "update",
|
|
@@ -700,7 +700,7 @@ export function registerAnalyticsGeneratedTools(registry) {
|
|
|
700
700
|
hasBody: true,
|
|
701
701
|
bodyParams: [{ "field": "adsPersonalizationEnabled", "api": "adsPersonalizationEnabled" }, { "field": "canManageClients", "api": "canManageClients" }, { "field": "createTime", "api": "createTime" }, { "field": "creatorEmailAddress", "api": "creatorEmailAddress" }, { "field": "customerId", "api": "customerId" }, { "field": "name_", "api": "name" }, { "field": "updateTime", "api": "updateTime" }],
|
|
702
702
|
shape: {
|
|
703
|
-
account: accountField(),
|
|
703
|
+
account: accountField(() => registry.accountAliases()),
|
|
704
704
|
name: z.string().min(1).describe("Identifier. Format: properties/{propertyId}/googleAdsLinks/{googleAdsLinkId} Note: googleAdsLinkId is not the Google Ads customer ID."),
|
|
705
705
|
updateMask: z.string().describe("Required. The list of fields to be updated. Field names must be in snake case (e.g., \"field_to_update\"). Omitted fields will not be updated. To replace the entire entity, use one path with the string ").optional(),
|
|
706
706
|
adsPersonalizationEnabled: coerceBoolean.describe("Enable personalized advertising features with this integration. Automatically publish my Google Analytics audience lists and Google Analytics remarketing events/parameters to the linked Google Ads acc").optional(),
|
|
@@ -712,7 +712,7 @@ export function registerAnalyticsGeneratedTools(registry) {
|
|
|
712
712
|
updateTime: z.string().describe("Output only. Time when this link was last updated.").optional(),
|
|
713
713
|
fields: z.string().optional().describe('Response field mask.'),
|
|
714
714
|
},
|
|
715
|
-
});
|
|
715
|
+
}, deps);
|
|
716
716
|
registerGeneratedTool(registry, {
|
|
717
717
|
name: "analytics_properties_key_events_create",
|
|
718
718
|
cud: "create",
|
|
@@ -721,12 +721,12 @@ export function registerAnalyticsGeneratedTools(registry) {
|
|
|
721
721
|
params: [{ "field": "parent", "api": "parent", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
722
722
|
hasBody: true,
|
|
723
723
|
shape: {
|
|
724
|
-
account: accountField(),
|
|
724
|
+
account: accountField(() => registry.accountAliases()),
|
|
725
725
|
parent: z.string().min(1).describe("Required. The resource name of the parent property where this Key Event will be created. Format: properties/123"),
|
|
726
726
|
body: coerceJson(z.record(z.string(), z.unknown())).describe("GoogleAnalyticsAdminV1betaKeyEvent JSON request body. Top-level fields: countingMethod, createTime, custom, defaultValue, deletable, eventName, name."),
|
|
727
727
|
fields: z.string().optional().describe('Response field mask.'),
|
|
728
728
|
},
|
|
729
|
-
});
|
|
729
|
+
}, deps);
|
|
730
730
|
registerGeneratedTool(registry, {
|
|
731
731
|
name: "analytics_properties_key_events_delete",
|
|
732
732
|
cud: "delete",
|
|
@@ -735,11 +735,11 @@ export function registerAnalyticsGeneratedTools(registry) {
|
|
|
735
735
|
params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
736
736
|
hasBody: false,
|
|
737
737
|
shape: {
|
|
738
|
-
account: accountField(),
|
|
738
|
+
account: accountField(() => registry.accountAliases()),
|
|
739
739
|
name: z.string().min(1).describe("Required. The resource name of the Key Event to delete. Format: properties/{property}/keyEvents/{key_event} Example: \"properties/123/keyEvents/456\""),
|
|
740
740
|
fields: z.string().optional().describe('Response field mask.'),
|
|
741
741
|
},
|
|
742
|
-
});
|
|
742
|
+
}, deps);
|
|
743
743
|
registerGeneratedTool(registry, {
|
|
744
744
|
name: "analytics_properties_key_events_get",
|
|
745
745
|
cud: "read",
|
|
@@ -748,11 +748,11 @@ export function registerAnalyticsGeneratedTools(registry) {
|
|
|
748
748
|
params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
749
749
|
hasBody: false,
|
|
750
750
|
shape: {
|
|
751
|
-
account: accountField(),
|
|
751
|
+
account: accountField(() => registry.accountAliases()),
|
|
752
752
|
name: z.string().min(1).describe("Required. The resource name of the Key Event to retrieve. Format: properties/{property}/keyEvents/{key_event} Example: \"properties/123/keyEvents/456\""),
|
|
753
753
|
fields: z.string().optional().describe('Response field mask.'),
|
|
754
754
|
},
|
|
755
|
-
});
|
|
755
|
+
}, deps);
|
|
756
756
|
registerGeneratedTool(registry, {
|
|
757
757
|
name: "analytics_properties_key_events_list",
|
|
758
758
|
cud: "read",
|
|
@@ -761,13 +761,13 @@ export function registerAnalyticsGeneratedTools(registry) {
|
|
|
761
761
|
params: [{ "field": "parent", "api": "parent", "location": "path" }, { "field": "pageSize", "api": "pageSize", "location": "query" }, { "field": "pageToken", "api": "pageToken", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
762
762
|
hasBody: false,
|
|
763
763
|
shape: {
|
|
764
|
-
account: accountField(),
|
|
764
|
+
account: accountField(() => registry.accountAliases()),
|
|
765
765
|
parent: z.string().min(1).describe("Required. The resource name of the parent property. Example: 'properties/123'"),
|
|
766
766
|
pageSize: z.number().describe("Optional. The maximum number of resources to return. If unspecified, at most 50 resources will be returned. The maximum value is 200; (higher values will be coerced to the maximum)").optional(),
|
|
767
767
|
pageToken: z.string().describe("Optional. A page token, received from a previous `ListKeyEvents` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListKeyEvents` must match the ca").optional(),
|
|
768
768
|
fields: z.string().optional().describe('Response field mask.'),
|
|
769
769
|
},
|
|
770
|
-
});
|
|
770
|
+
}, deps);
|
|
771
771
|
registerGeneratedTool(registry, {
|
|
772
772
|
name: "analytics_properties_key_events_patch",
|
|
773
773
|
cud: "update",
|
|
@@ -776,13 +776,13 @@ export function registerAnalyticsGeneratedTools(registry) {
|
|
|
776
776
|
params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "updateMask", "api": "updateMask", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
777
777
|
hasBody: true,
|
|
778
778
|
shape: {
|
|
779
|
-
account: accountField(),
|
|
779
|
+
account: accountField(() => registry.accountAliases()),
|
|
780
780
|
name: z.string().min(1).describe("Output only. Resource name of this key event. Format: properties/{property}/keyEvents/{key_event}"),
|
|
781
781
|
updateMask: z.string().describe("Required. The list of fields to be updated. Field names must be in snake case (e.g., \"field_to_update\"). Omitted fields will not be updated. To replace the entire entity, use one path with the string ").optional(),
|
|
782
782
|
body: coerceJson(z.record(z.string(), z.unknown())).describe("GoogleAnalyticsAdminV1betaKeyEvent JSON request body. Top-level fields: countingMethod, createTime, custom, defaultValue, deletable, eventName, name."),
|
|
783
783
|
fields: z.string().optional().describe('Response field mask.'),
|
|
784
784
|
},
|
|
785
|
-
});
|
|
785
|
+
}, deps);
|
|
786
786
|
registerGeneratedTool(registry, {
|
|
787
787
|
name: "analytics_properties_list",
|
|
788
788
|
cud: "read",
|
|
@@ -791,14 +791,14 @@ export function registerAnalyticsGeneratedTools(registry) {
|
|
|
791
791
|
params: [{ "field": "filter", "api": "filter", "location": "query" }, { "field": "pageSize", "api": "pageSize", "location": "query" }, { "field": "pageToken", "api": "pageToken", "location": "query" }, { "field": "showDeleted", "api": "showDeleted", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
792
792
|
hasBody: false,
|
|
793
793
|
shape: {
|
|
794
|
-
account: accountField(),
|
|
794
|
+
account: accountField(() => registry.accountAliases()),
|
|
795
795
|
filter: z.string().describe("Required. An expression for filtering the results of the request. Fields eligible for filtering are: `parent:`(The resource name of the parent account/property) or `ancestor:`(The resource name of the").optional(),
|
|
796
796
|
pageSize: z.number().describe("Optional. The maximum number of resources to return. The service may return fewer than this value, even if there are additional pages. If unspecified, at most 50 resources will be returned. The maximu").optional(),
|
|
797
797
|
pageToken: z.string().describe("Optional. A page token, received from a previous `ListProperties` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListProperties` must match the ").optional(),
|
|
798
798
|
showDeleted: coerceBoolean.describe("Whether to include soft-deleted (ie: \"trashed\") Properties in the results. Properties can be inspected to determine whether they are deleted or not.").optional(),
|
|
799
799
|
fields: z.string().optional().describe('Response field mask.'),
|
|
800
800
|
},
|
|
801
|
-
});
|
|
801
|
+
}, deps);
|
|
802
802
|
registerGeneratedTool(registry, {
|
|
803
803
|
name: "analytics_properties_patch",
|
|
804
804
|
cud: "update",
|
|
@@ -808,7 +808,7 @@ export function registerAnalyticsGeneratedTools(registry) {
|
|
|
808
808
|
hasBody: true,
|
|
809
809
|
bodyParams: [{ "field": "account_", "api": "account" }, { "field": "createTime", "api": "createTime" }, { "field": "currencyCode", "api": "currencyCode" }, { "field": "deleteTime", "api": "deleteTime" }, { "field": "displayName", "api": "displayName" }, { "field": "expireTime", "api": "expireTime" }, { "field": "industryCategory", "api": "industryCategory" }, { "field": "name_", "api": "name" }, { "field": "parent", "api": "parent" }, { "field": "propertyType", "api": "propertyType" }, { "field": "serviceLevel", "api": "serviceLevel" }, { "field": "timeZone", "api": "timeZone" }, { "field": "updateTime", "api": "updateTime" }],
|
|
810
810
|
shape: {
|
|
811
|
-
account: accountField(),
|
|
811
|
+
account: accountField(() => registry.accountAliases()),
|
|
812
812
|
name: z.string().min(1).describe("Identifier. Resource name of this property. Format: properties/{property_id} Example: \"properties/1000\""),
|
|
813
813
|
updateMask: z.string().describe("Required. The list of fields to be updated. Field names must be in snake case (e.g., \"field_to_update\"). Omitted fields will not be updated. To replace the entire entity, use one path with the string ").optional(),
|
|
814
814
|
account_: z.string().describe("Immutable. The resource name of the parent account Format: accounts/{account_id} Example: \"accounts/123\"").optional(),
|
|
@@ -826,7 +826,7 @@ export function registerAnalyticsGeneratedTools(registry) {
|
|
|
826
826
|
updateTime: z.string().describe("Output only. Time when entity payload fields were last updated.").optional(),
|
|
827
827
|
fields: z.string().optional().describe('Response field mask.'),
|
|
828
828
|
},
|
|
829
|
-
});
|
|
829
|
+
}, deps);
|
|
830
830
|
registerGeneratedTool(registry, {
|
|
831
831
|
name: "analytics_properties_run_access_report",
|
|
832
832
|
cud: "read",
|
|
@@ -835,12 +835,12 @@ export function registerAnalyticsGeneratedTools(registry) {
|
|
|
835
835
|
params: [{ "field": "entity", "api": "entity", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
836
836
|
hasBody: true,
|
|
837
837
|
shape: {
|
|
838
|
-
account: accountField(),
|
|
838
|
+
account: accountField(() => registry.accountAliases()),
|
|
839
839
|
entity: z.string().min(1).describe("The Data Access Report supports requesting at the property level or account level. If requested at the account level, Data Access Reports include all access for all properties under that account. To r"),
|
|
840
840
|
body: coerceJson(z.record(z.string(), z.unknown())).describe("GoogleAnalyticsAdminV1betaRunAccessReportRequest JSON request body. Top-level fields: dateRanges, dimensionFilter, dimensions, expandGroups, includeAllUsers, limit, metricFilter, metrics, offset, orderBys, returnEntityQuota, timeZone."),
|
|
841
841
|
fields: z.string().optional().describe('Response field mask.'),
|
|
842
842
|
},
|
|
843
|
-
});
|
|
843
|
+
}, deps);
|
|
844
844
|
registerGeneratedTool(registry, {
|
|
845
845
|
name: "analytics_properties_update_data_retention_settings",
|
|
846
846
|
cud: "update",
|
|
@@ -850,7 +850,7 @@ export function registerAnalyticsGeneratedTools(registry) {
|
|
|
850
850
|
hasBody: true,
|
|
851
851
|
bodyParams: [{ "field": "eventDataRetention", "api": "eventDataRetention" }, { "field": "name_", "api": "name" }, { "field": "resetUserDataOnNewActivity", "api": "resetUserDataOnNewActivity" }, { "field": "userDataRetention", "api": "userDataRetention" }],
|
|
852
852
|
shape: {
|
|
853
|
-
account: accountField(),
|
|
853
|
+
account: accountField(() => registry.accountAliases()),
|
|
854
854
|
name: z.string().min(1).describe("Identifier. Resource name for this DataRetentionSetting resource. Format: properties/{property}/dataRetentionSettings"),
|
|
855
855
|
updateMask: z.string().describe("Required. The list of fields to be updated. Field names must be in snake case (e.g., \"field_to_update\"). Omitted fields will not be updated. To replace the entire entity, use one path with the string ").optional(),
|
|
856
856
|
eventDataRetention: z.enum(["RETENTION_DURATION_UNSPECIFIED", "TWO_MONTHS", "FOURTEEN_MONTHS", "TWENTY_SIX_MONTHS", "THIRTY_EIGHT_MONTHS", "FIFTY_MONTHS"]).describe("Required. The length of time that event-level data is retained.").optional(),
|
|
@@ -859,7 +859,7 @@ export function registerAnalyticsGeneratedTools(registry) {
|
|
|
859
859
|
userDataRetention: z.enum(["RETENTION_DURATION_UNSPECIFIED", "TWO_MONTHS", "FOURTEEN_MONTHS", "TWENTY_SIX_MONTHS", "THIRTY_EIGHT_MONTHS", "FIFTY_MONTHS"]).describe("Required. The length of time that user-level data is retained.").optional(),
|
|
860
860
|
fields: z.string().optional().describe('Response field mask.'),
|
|
861
861
|
},
|
|
862
|
-
});
|
|
862
|
+
}, deps);
|
|
863
863
|
// Interned method scope sets (shared across tools; see scope-observability).
|
|
864
864
|
const S_analyticsdata_v1beta = [
|
|
865
865
|
["https://www.googleapis.com/auth/analytics", "https://www.googleapis.com/auth/analytics.readonly"],
|
|
@@ -872,12 +872,12 @@ export function registerAnalyticsGeneratedTools(registry) {
|
|
|
872
872
|
params: [{ "field": "parent", "api": "parent", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
873
873
|
hasBody: true,
|
|
874
874
|
shape: {
|
|
875
|
-
account: accountField(),
|
|
875
|
+
account: accountField(() => registry.accountAliases()),
|
|
876
876
|
parent: z.string().min(1).describe("Required. The parent resource where this audience export will be created. Format: `properties/{property}`"),
|
|
877
877
|
body: coerceJson(z.record(z.string(), z.unknown())).describe("AudienceExport JSON request body. Top-level fields: audience, audienceDisplayName, beginCreatingTime, creationQuotaTokensCharged, dimensions, errorMessage, name, percentageCompleted, rowCount, state."),
|
|
878
878
|
fields: z.string().optional().describe('Response field mask.'),
|
|
879
879
|
},
|
|
880
|
-
});
|
|
880
|
+
}, deps);
|
|
881
881
|
registerGeneratedTool(registry, {
|
|
882
882
|
name: "analytics_properties_audience_exports_get",
|
|
883
883
|
cud: "read",
|
|
@@ -886,11 +886,11 @@ export function registerAnalyticsGeneratedTools(registry) {
|
|
|
886
886
|
params: [{ "field": "name", "api": "name", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
887
887
|
hasBody: false,
|
|
888
888
|
shape: {
|
|
889
|
-
account: accountField(),
|
|
889
|
+
account: accountField(() => registry.accountAliases()),
|
|
890
890
|
name: z.string().min(1).describe("Required. The audience export resource name. Format: `properties/{property}/audienceExports/{audience_export}`"),
|
|
891
891
|
fields: z.string().optional().describe('Response field mask.'),
|
|
892
892
|
},
|
|
893
|
-
});
|
|
893
|
+
}, deps);
|
|
894
894
|
registerGeneratedTool(registry, {
|
|
895
895
|
name: "analytics_properties_audience_exports_list",
|
|
896
896
|
cud: "read",
|
|
@@ -899,13 +899,13 @@ export function registerAnalyticsGeneratedTools(registry) {
|
|
|
899
899
|
params: [{ "field": "parent", "api": "parent", "location": "path" }, { "field": "pageSize", "api": "pageSize", "location": "query" }, { "field": "pageToken", "api": "pageToken", "location": "query" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
900
900
|
hasBody: false,
|
|
901
901
|
shape: {
|
|
902
|
-
account: accountField(),
|
|
902
|
+
account: accountField(() => registry.accountAliases()),
|
|
903
903
|
parent: z.string().min(1).describe("Required. All audience exports for this property will be listed in the response. Format: `properties/{property}`"),
|
|
904
904
|
pageSize: z.number().describe("Optional. The maximum number of audience exports to return. The service may return fewer than this value. If unspecified, at most 200 audience exports will be returned. The maximum value is 1000 (high").optional(),
|
|
905
905
|
pageToken: z.string().describe("Optional. A page token, received from a previous `ListAudienceExports` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListAudienceExports` must ").optional(),
|
|
906
906
|
fields: z.string().optional().describe('Response field mask.'),
|
|
907
907
|
},
|
|
908
|
-
});
|
|
908
|
+
}, deps);
|
|
909
909
|
registerGeneratedTool(registry, {
|
|
910
910
|
name: "analytics_properties_audience_exports_query",
|
|
911
911
|
cud: "read",
|
|
@@ -915,13 +915,13 @@ export function registerAnalyticsGeneratedTools(registry) {
|
|
|
915
915
|
hasBody: true,
|
|
916
916
|
bodyParams: [{ "field": "limit", "api": "limit" }, { "field": "offset", "api": "offset" }],
|
|
917
917
|
shape: {
|
|
918
|
-
account: accountField(),
|
|
918
|
+
account: accountField(() => registry.accountAliases()),
|
|
919
919
|
name: z.string().min(1).describe("Required. The name of the audience export to retrieve users from. Format: `properties/{property}/audienceExports/{audience_export}`"),
|
|
920
920
|
limit: z.string().describe("Optional. The number of rows to return. If unspecified, 10,000 rows are returned. The API returns a maximum of 250,000 rows per request, no matter how many you ask for. `limit` must be positive. The A").optional(),
|
|
921
921
|
offset: z.string().describe("Optional. The row count of the start row. The first row is counted as row 0. When paging, the first request does not specify offset; or equivalently, sets offset to 0; the first request returns the fi").optional(),
|
|
922
922
|
fields: z.string().optional().describe('Response field mask.'),
|
|
923
923
|
},
|
|
924
|
-
});
|
|
924
|
+
}, deps);
|
|
925
925
|
registerGeneratedTool(registry, {
|
|
926
926
|
name: "analytics_properties_batch_run_pivot_reports",
|
|
927
927
|
cud: "read",
|
|
@@ -930,12 +930,12 @@ export function registerAnalyticsGeneratedTools(registry) {
|
|
|
930
930
|
params: [{ "field": "property", "api": "property", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
931
931
|
hasBody: true,
|
|
932
932
|
shape: {
|
|
933
|
-
account: accountField(),
|
|
933
|
+
account: accountField(() => registry.accountAliases()),
|
|
934
934
|
property: z.string().min(1).describe("A Google Analytics property identifier whose events are tracked. Specified in the URL path and not the body. To learn more, see [where to find your Property ID](https://developers.google.com/analytics"),
|
|
935
935
|
body: coerceJson(z.record(z.string(), z.unknown())).describe("BatchRunPivotReportsRequest JSON request body. Top-level fields: requests."),
|
|
936
936
|
fields: z.string().optional().describe('Response field mask.'),
|
|
937
937
|
},
|
|
938
|
-
});
|
|
938
|
+
}, deps);
|
|
939
939
|
registerGeneratedTool(registry, {
|
|
940
940
|
name: "analytics_properties_batch_run_reports",
|
|
941
941
|
cud: "read",
|
|
@@ -944,12 +944,12 @@ export function registerAnalyticsGeneratedTools(registry) {
|
|
|
944
944
|
params: [{ "field": "property", "api": "property", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
945
945
|
hasBody: true,
|
|
946
946
|
shape: {
|
|
947
|
-
account: accountField(),
|
|
947
|
+
account: accountField(() => registry.accountAliases()),
|
|
948
948
|
property: z.string().min(1).describe("A Google Analytics property identifier whose events are tracked. Specified in the URL path and not the body. To learn more, see [where to find your Property ID](https://developers.google.com/analytics"),
|
|
949
949
|
body: coerceJson(z.record(z.string(), z.unknown())).describe("BatchRunReportsRequest JSON request body. Top-level fields: requests."),
|
|
950
950
|
fields: z.string().optional().describe('Response field mask.'),
|
|
951
951
|
},
|
|
952
|
-
});
|
|
952
|
+
}, deps);
|
|
953
953
|
registerGeneratedTool(registry, {
|
|
954
954
|
name: "analytics_properties_check_compatibility",
|
|
955
955
|
cud: "read",
|
|
@@ -958,12 +958,12 @@ export function registerAnalyticsGeneratedTools(registry) {
|
|
|
958
958
|
params: [{ "field": "property", "api": "property", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
959
959
|
hasBody: true,
|
|
960
960
|
shape: {
|
|
961
|
-
account: accountField(),
|
|
961
|
+
account: accountField(() => registry.accountAliases()),
|
|
962
962
|
property: z.string().min(1).describe("A Google Analytics property identifier whose events are tracked. To learn more, see [where to find your Property ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id). `"),
|
|
963
963
|
body: coerceJson(z.record(z.string(), z.unknown())).describe("CheckCompatibilityRequest JSON request body. Top-level fields: compatibilityFilter, dimensionFilter, dimensions, metricFilter, metrics."),
|
|
964
964
|
fields: z.string().optional().describe('Response field mask.'),
|
|
965
965
|
},
|
|
966
|
-
});
|
|
966
|
+
}, deps);
|
|
967
967
|
registerGeneratedTool(registry, {
|
|
968
968
|
name: "analytics_properties_run_pivot_report",
|
|
969
969
|
cud: "read",
|
|
@@ -972,10 +972,10 @@ export function registerAnalyticsGeneratedTools(registry) {
|
|
|
972
972
|
params: [{ "field": "property", "api": "property", "location": "path" }, { "field": "fields", "api": "fields", "location": "query" }],
|
|
973
973
|
hasBody: true,
|
|
974
974
|
shape: {
|
|
975
|
-
account: accountField(),
|
|
975
|
+
account: accountField(() => registry.accountAliases()),
|
|
976
976
|
property: z.string().min(1).describe("A Google Analytics property identifier whose events are tracked. Specified in the URL path and not the body. To learn more, see [where to find your Property ID](https://developers.google.com/analytics"),
|
|
977
977
|
body: coerceJson(z.record(z.string(), z.unknown())).describe("RunPivotReportRequest JSON request body. Top-level fields: cohortSpec, comparisons, currencyCode, dateRanges, dimensionFilter, dimensions, keepEmptyRows, metricFilter, metrics, pivots, property, returnPropertyQuota."),
|
|
978
978
|
fields: z.string().optional().describe('Response field mask.'),
|
|
979
979
|
},
|
|
980
|
-
});
|
|
980
|
+
}, deps);
|
|
981
981
|
}
|