@rnsk/toolkits 0.0.8 → 0.0.10
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 +15 -1
- package/dist/index.d.ts +15 -1
- package/dist/index.js +29 -1
- package/dist/toolkits/bitbucket/icon.d.ts +5 -0
- package/dist/toolkits/bitbucket/icon.js +6 -0
- package/dist/toolkits/bitbucket/manifest.d.ts +3 -0
- package/dist/toolkits/bitbucket/manifest.js +56 -0
- package/dist/toolkits/bitbucket/tools/client.d.ts +38 -0
- package/dist/toolkits/bitbucket/tools/client.js +87 -0
- package/dist/toolkits/bitbucket/tools/commits.d.ts +149 -0
- package/dist/toolkits/bitbucket/tools/commits.js +444 -0
- package/dist/toolkits/bitbucket/tools/index.d.ts +1093 -0
- package/dist/toolkits/bitbucket/tools/index.js +770 -0
- package/dist/toolkits/bitbucket/tools/issues.d.ts +73 -0
- package/dist/toolkits/bitbucket/tools/issues.js +234 -0
- package/dist/toolkits/bitbucket/tools/pipelines.d.ts +124 -0
- package/dist/toolkits/bitbucket/tools/pipelines.js +446 -0
- package/dist/toolkits/bitbucket/tools/pull-requests.d.ts +174 -0
- package/dist/toolkits/bitbucket/tools/pull-requests.js +541 -0
- package/dist/toolkits/bitbucket/tools/reports.d.ts +84 -0
- package/dist/toolkits/bitbucket/tools/reports.js +213 -0
- package/dist/toolkits/bitbucket/tools/repositories.d.ts +156 -0
- package/dist/toolkits/bitbucket/tools/repositories.js +531 -0
- package/dist/toolkits/bitbucket/tools/search.d.ts +17 -0
- package/dist/toolkits/bitbucket/tools/search.js +67 -0
- package/dist/toolkits/bitbucket/tools/snippets.d.ts +34 -0
- package/dist/toolkits/bitbucket/tools/snippets.js +122 -0
- package/dist/toolkits/bitbucket/tools/users-workspaces.d.ts +65 -0
- package/dist/toolkits/bitbucket/tools/users-workspaces.js +294 -0
- package/dist/toolkits/discord/icon.d.ts +5 -0
- package/dist/toolkits/discord/icon.js +12 -0
- package/dist/toolkits/discord/manifest.d.ts +3 -0
- package/dist/toolkits/discord/manifest.js +52 -0
- package/dist/toolkits/discord/tools/applications.d.ts +79 -0
- package/dist/toolkits/discord/tools/applications.js +216 -0
- package/dist/toolkits/discord/tools/client.d.ts +22 -0
- package/dist/toolkits/discord/tools/client.js +69 -0
- package/dist/toolkits/discord/tools/guilds.d.ts +39 -0
- package/dist/toolkits/discord/tools/guilds.js +123 -0
- package/dist/toolkits/discord/tools/index.d.ts +222 -0
- package/dist/toolkits/discord/tools/index.js +170 -0
- package/dist/toolkits/discord/tools/misc.d.ts +7 -0
- package/dist/toolkits/discord/tools/misc.js +40 -0
- package/dist/toolkits/discord/tools/users.d.ts +28 -0
- package/dist/toolkits/discord/tools/users.js +128 -0
- package/dist/toolkits/figma/tools/index.d.ts +1 -1
- package/dist/toolkits/figma/tools/render-images-of-file-nodes.d.ts +1 -1
- package/dist/toolkits/gitlab/icon.d.ts +5 -0
- package/dist/toolkits/gitlab/icon.js +6 -0
- package/dist/toolkits/gitlab/manifest.d.ts +3 -0
- package/dist/toolkits/gitlab/manifest.js +36 -0
- package/dist/toolkits/gitlab/tools/client.d.ts +7 -0
- package/dist/toolkits/gitlab/tools/client.js +45 -0
- package/dist/toolkits/gitlab/tools/index.d.ts +306 -0
- package/dist/toolkits/gitlab/tools/index.js +36 -0
- package/dist/toolkits/gitlab/tools/issues.d.ts +45 -0
- package/dist/toolkits/gitlab/tools/issues.js +103 -0
- package/dist/toolkits/gitlab/tools/merge-requests.d.ts +35 -0
- package/dist/toolkits/gitlab/tools/merge-requests.js +91 -0
- package/dist/toolkits/gitlab/tools/pipelines.d.ts +30 -0
- package/dist/toolkits/gitlab/tools/pipelines.js +66 -0
- package/dist/toolkits/gitlab/tools/projects.d.ts +36 -0
- package/dist/toolkits/gitlab/tools/projects.js +94 -0
- package/dist/toolkits/gitlab/tools/repository.d.ts +21 -0
- package/dist/toolkits/gitlab/tools/repository.js +53 -0
- package/dist/toolkits/gitlab/tools/users-groups.d.ts +11 -0
- package/dist/toolkits/gitlab/tools/users-groups.js +30 -0
- package/dist/toolkits/google-ads/tools/get-rmf-report.d.ts +2 -2
- package/dist/toolkits/google-ads/tools/index.d.ts +2 -2
- package/dist/toolkits/google-analytics/icon.d.ts +5 -0
- package/dist/toolkits/google-analytics/icon.js +11 -0
- package/dist/toolkits/google-analytics/manifest.d.ts +3 -0
- package/dist/toolkits/google-analytics/manifest.js +48 -0
- package/dist/toolkits/google-analytics/tools/admin.d.ts +73 -0
- package/dist/toolkits/google-analytics/tools/admin.js +238 -0
- package/dist/toolkits/google-analytics/tools/audiences.d.ts +81 -0
- package/dist/toolkits/google-analytics/tools/audiences.js +190 -0
- package/dist/toolkits/google-analytics/tools/client.d.ts +47 -0
- package/dist/toolkits/google-analytics/tools/client.js +74 -0
- package/dist/toolkits/google-analytics/tools/custom-definitions.d.ts +62 -0
- package/dist/toolkits/google-analytics/tools/custom-definitions.js +106 -0
- package/dist/toolkits/google-analytics/tools/index.d.ts +16 -0
- package/dist/toolkits/google-analytics/tools/index.js +88 -0
- package/dist/toolkits/google-analytics/tools/links.d.ts +22 -0
- package/dist/toolkits/google-analytics/tools/links.js +56 -0
- package/dist/toolkits/google-analytics/tools/measurement.d.ts +3 -0
- package/dist/toolkits/google-analytics/tools/measurement.js +55 -0
- package/dist/toolkits/google-analytics/tools/reports.d.ts +136 -0
- package/dist/toolkits/google-analytics/tools/reports.js +200 -0
- package/dist/toolkits/google-contacts/icon.d.ts +5 -0
- package/dist/toolkits/google-contacts/icon.js +6 -0
- package/dist/toolkits/google-contacts/manifest.d.ts +3 -0
- package/dist/toolkits/google-contacts/manifest.js +48 -0
- package/dist/toolkits/google-contacts/tools/client.d.ts +19 -0
- package/dist/toolkits/google-contacts/tools/client.js +44 -0
- package/dist/toolkits/google-contacts/tools/contacts.d.ts +94 -0
- package/dist/toolkits/google-contacts/tools/contacts.js +273 -0
- package/dist/toolkits/google-contacts/tools/directory.d.ts +36 -0
- package/dist/toolkits/google-contacts/tools/directory.js +99 -0
- package/dist/toolkits/google-contacts/tools/groups.d.ts +68 -0
- package/dist/toolkits/google-contacts/tools/groups.js +169 -0
- package/dist/toolkits/google-contacts/tools/index.d.ts +347 -0
- package/dist/toolkits/google-contacts/tools/index.js +34 -0
- package/dist/toolkits/google-contacts/tools/photos.d.ts +26 -0
- package/dist/toolkits/google-contacts/tools/photos.js +52 -0
- package/dist/toolkits/google-maps/icon.d.ts +5 -0
- package/dist/toolkits/google-maps/icon.js +39 -0
- package/dist/toolkits/google-maps/manifest.d.ts +3 -0
- package/dist/toolkits/google-maps/manifest.js +55 -0
- package/dist/toolkits/google-maps/tools/client.d.ts +27 -0
- package/dist/toolkits/google-maps/tools/client.js +72 -0
- package/dist/toolkits/google-maps/tools/geocode.d.ts +49 -0
- package/dist/toolkits/google-maps/tools/geocode.js +168 -0
- package/dist/toolkits/google-maps/tools/index.d.ts +432 -0
- package/dist/toolkits/google-maps/tools/index.js +31 -0
- package/dist/toolkits/google-maps/tools/misc.d.ts +70 -0
- package/dist/toolkits/google-maps/tools/misc.js +158 -0
- package/dist/toolkits/google-maps/tools/places.d.ts +112 -0
- package/dist/toolkits/google-maps/tools/places.js +185 -0
- package/dist/toolkits/google-maps/tools/routes.d.ts +48 -0
- package/dist/toolkits/google-maps/tools/routes.js +97 -0
- package/dist/toolkits/google-maps/tools/tiles.d.ts +51 -0
- package/dist/toolkits/google-maps/tools/tiles.js +84 -0
- package/dist/toolkits/google-photos/icon.d.ts +5 -0
- package/dist/toolkits/google-photos/icon.js +6 -0
- package/dist/toolkits/google-photos/manifest.d.ts +3 -0
- package/dist/toolkits/google-photos/manifest.js +47 -0
- package/dist/toolkits/google-photos/tools/albums.d.ts +83 -0
- package/dist/toolkits/google-photos/tools/albums.js +180 -0
- package/dist/toolkits/google-photos/tools/client.d.ts +24 -0
- package/dist/toolkits/google-photos/tools/client.js +77 -0
- package/dist/toolkits/google-photos/tools/index.d.ts +261 -0
- package/dist/toolkits/google-photos/tools/index.js +22 -0
- package/dist/toolkits/google-photos/tools/media.d.ts +52 -0
- package/dist/toolkits/google-photos/tools/media.js +142 -0
- package/dist/toolkits/google-photos/tools/uploads.d.ts +58 -0
- package/dist/toolkits/google-photos/tools/uploads.js +107 -0
- package/dist/toolkits/google-tasks/tools/index.d.ts +1 -1
- package/dist/toolkits/google-tasks/tools/update-task-full.d.ts +1 -1
- package/dist/toolkits/groww/tools/index.d.ts +1 -1
- package/dist/toolkits/groww/tools/instruments.d.ts +1 -1
- package/dist/toolkits/hacker-news/icon.d.ts +5 -0
- package/dist/toolkits/hacker-news/icon.js +9 -0
- package/dist/toolkits/hacker-news/manifest.d.ts +3 -0
- package/dist/toolkits/hacker-news/manifest.js +25 -0
- package/dist/toolkits/hacker-news/tools/client.d.ts +8 -0
- package/dist/toolkits/hacker-news/tools/client.js +51 -0
- package/dist/toolkits/hacker-news/tools/index.d.ts +89 -0
- package/dist/toolkits/hacker-news/tools/index.js +22 -0
- package/dist/toolkits/hacker-news/tools/items.d.ts +42 -0
- package/dist/toolkits/hacker-news/tools/items.js +126 -0
- package/dist/toolkits/hacker-news/tools/search.d.ts +12 -0
- package/dist/toolkits/hacker-news/tools/search.js +40 -0
- package/dist/toolkits/hacker-news/tools/stories.d.ts +25 -0
- package/dist/toolkits/hacker-news/tools/stories.js +98 -0
- package/dist/toolkits/hostinger/icon.d.ts +5 -0
- package/dist/toolkits/hostinger/icon.js +6 -0
- package/dist/toolkits/hostinger/manifest.d.ts +3 -0
- package/dist/toolkits/hostinger/manifest.js +36 -0
- package/dist/toolkits/hostinger/tools/billing.d.ts +12 -0
- package/dist/toolkits/hostinger/tools/billing.js +35 -0
- package/dist/toolkits/hostinger/tools/client.d.ts +6 -0
- package/dist/toolkits/hostinger/tools/client.js +57 -0
- package/dist/toolkits/hostinger/tools/dns.d.ts +22 -0
- package/dist/toolkits/hostinger/tools/dns.js +47 -0
- package/dist/toolkits/hostinger/tools/domains.d.ts +21 -0
- package/dist/toolkits/hostinger/tools/domains.js +62 -0
- package/dist/toolkits/hostinger/tools/hosting.d.ts +17 -0
- package/dist/toolkits/hostinger/tools/hosting.js +38 -0
- package/dist/toolkits/hostinger/tools/index.d.ts +179 -0
- package/dist/toolkits/hostinger/tools/index.js +35 -0
- package/dist/toolkits/hostinger/tools/vps.d.ts +27 -0
- package/dist/toolkits/hostinger/tools/vps.js +77 -0
- package/dist/toolkits/hostinger/tools/whois.d.ts +33 -0
- package/dist/toolkits/hostinger/tools/whois.js +85 -0
- package/dist/toolkits/hugging-face/icon.d.ts +5 -0
- package/dist/toolkits/hugging-face/icon.js +6 -0
- package/dist/toolkits/hugging-face/manifest.d.ts +3 -0
- package/dist/toolkits/hugging-face/manifest.js +42 -0
- package/dist/toolkits/hugging-face/tools/client.d.ts +93 -0
- package/dist/toolkits/hugging-face/tools/client.js +192 -0
- package/dist/toolkits/hugging-face/tools/datasets-viewer.d.ts +65 -0
- package/dist/toolkits/hugging-face/tools/datasets-viewer.js +150 -0
- package/dist/toolkits/hugging-face/tools/datasets.d.ts +160 -0
- package/dist/toolkits/hugging-face/tools/datasets.js +383 -0
- package/dist/toolkits/hugging-face/tools/discussions.d.ts +68 -0
- package/dist/toolkits/hugging-face/tools/discussions.js +144 -0
- package/dist/toolkits/hugging-face/tools/index.d.ts +523 -0
- package/dist/toolkits/hugging-face/tools/index.js +163 -0
- package/dist/toolkits/hugging-face/tools/inference.d.ts +42 -0
- package/dist/toolkits/hugging-face/tools/inference.js +86 -0
- package/dist/toolkits/hugging-face/tools/models.d.ts +117 -0
- package/dist/toolkits/hugging-face/tools/models.js +273 -0
- package/dist/toolkits/hugging-face/tools/papers.d.ts +37 -0
- package/dist/toolkits/hugging-face/tools/papers.js +91 -0
- package/dist/toolkits/hugging-face/tools/repos.d.ts +96 -0
- package/dist/toolkits/hugging-face/tools/repos.js +201 -0
- package/dist/toolkits/hugging-face/tools/settings.d.ts +53 -0
- package/dist/toolkits/hugging-face/tools/settings.js +88 -0
- package/dist/toolkits/hugging-face/tools/spaces.d.ts +245 -0
- package/dist/toolkits/hugging-face/tools/spaces.js +468 -0
- package/dist/toolkits/hugging-face/tools/sql.d.ts +21 -0
- package/dist/toolkits/hugging-face/tools/sql.js +47 -0
- package/dist/toolkits/hugging-face/tools/users.d.ts +60 -0
- package/dist/toolkits/hugging-face/tools/users.js +132 -0
- package/dist/toolkits/hugging-face/tools/webhooks.d.ts +35 -0
- package/dist/toolkits/hugging-face/tools/webhooks.js +87 -0
- package/dist/toolkits/jira/icon.d.ts +5 -0
- package/dist/toolkits/jira/icon.js +6 -0
- package/dist/toolkits/jira/manifest.d.ts +3 -0
- package/dist/toolkits/jira/manifest.js +53 -0
- package/dist/toolkits/jira/tools/boards.d.ts +52 -0
- package/dist/toolkits/jira/tools/boards.js +104 -0
- package/dist/toolkits/jira/tools/client.d.ts +23 -0
- package/dist/toolkits/jira/tools/client.js +270 -0
- package/dist/toolkits/jira/tools/index.d.ts +1280 -0
- package/dist/toolkits/jira/tools/index.js +119 -0
- package/dist/toolkits/jira/tools/issue-fields.d.ts +10 -0
- package/dist/toolkits/jira/tools/issue-fields.js +111 -0
- package/dist/toolkits/jira/tools/issues.d.ts +304 -0
- package/dist/toolkits/jira/tools/issues.js +593 -0
- package/dist/toolkits/jira/tools/meta.d.ts +212 -0
- package/dist/toolkits/jira/tools/meta.js +369 -0
- package/dist/toolkits/jira/tools/projects.d.ts +130 -0
- package/dist/toolkits/jira/tools/projects.js +263 -0
- package/dist/toolkits/jira/tools/search.d.ts +90 -0
- package/dist/toolkits/jira/tools/search.js +181 -0
- package/dist/toolkits/jira/tools/users.d.ts +114 -0
- package/dist/toolkits/jira/tools/users.js +221 -0
- package/dist/toolkits/neo4j/icon.d.ts +5 -0
- package/dist/toolkits/neo4j/icon.js +6 -0
- package/dist/toolkits/neo4j/manifest.d.ts +3 -0
- package/dist/toolkits/neo4j/manifest.js +33 -0
- package/dist/toolkits/neo4j/tools/analytics.d.ts +21 -0
- package/dist/toolkits/neo4j/tools/analytics.js +91 -0
- package/dist/toolkits/neo4j/tools/client.d.ts +6 -0
- package/dist/toolkits/neo4j/tools/client.js +105 -0
- package/dist/toolkits/neo4j/tools/index.d.ts +198 -0
- package/dist/toolkits/neo4j/tools/index.js +30 -0
- package/dist/toolkits/neo4j/tools/instances.d.ts +47 -0
- package/dist/toolkits/neo4j/tools/instances.js +127 -0
- package/dist/toolkits/neo4j/tools/projects.d.ts +44 -0
- package/dist/toolkits/neo4j/tools/projects.js +110 -0
- package/dist/toolkits/neo4j/tools/snapshots.d.ts +20 -0
- package/dist/toolkits/neo4j/tools/snapshots.js +57 -0
- package/dist/toolkits/neon/icon.d.ts +5 -0
- package/dist/toolkits/neon/icon.js +8 -0
- package/dist/toolkits/neon/manifest.d.ts +3 -0
- package/dist/toolkits/neon/manifest.js +36 -0
- package/dist/toolkits/neon/tools/auth.d.ts +115 -0
- package/dist/toolkits/neon/tools/auth.js +286 -0
- package/dist/toolkits/neon/tools/branches.d.ts +189 -0
- package/dist/toolkits/neon/tools/branches.js +465 -0
- package/dist/toolkits/neon/tools/client.d.ts +10 -0
- package/dist/toolkits/neon/tools/client.js +69 -0
- package/dist/toolkits/neon/tools/dataapi.d.ts +42 -0
- package/dist/toolkits/neon/tools/dataapi.js +111 -0
- package/dist/toolkits/neon/tools/endpoints.d.ts +59 -0
- package/dist/toolkits/neon/tools/endpoints.js +163 -0
- package/dist/toolkits/neon/tools/index.d.ts +976 -0
- package/dist/toolkits/neon/tools/index.js +130 -0
- package/dist/toolkits/neon/tools/meta.d.ts +4 -0
- package/dist/toolkits/neon/tools/meta.js +16 -0
- package/dist/toolkits/neon/tools/orgs.d.ts +112 -0
- package/dist/toolkits/neon/tools/orgs.js +303 -0
- package/dist/toolkits/neon/tools/projects.d.ts +177 -0
- package/dist/toolkits/neon/tools/projects.js +468 -0
- package/dist/toolkits/neon/tools/snapshots.d.ts +24 -0
- package/dist/toolkits/neon/tools/snapshots.js +67 -0
- package/dist/toolkits/reddit/tools/index.d.ts +1 -1
- package/dist/toolkits/reddit/tools/search-across-subreddits.d.ts +1 -1
- package/dist/toolkits/slack/icon.d.ts +5 -0
- package/dist/toolkits/slack/icon.js +20 -0
- package/dist/toolkits/slack/manifest.d.ts +3 -0
- package/dist/toolkits/slack/manifest.js +93 -0
- package/dist/toolkits/slack/tools/admin-apps.d.ts +32 -0
- package/dist/toolkits/slack/tools/admin-apps.js +116 -0
- package/dist/toolkits/slack/tools/admin-conversations.d.ts +62 -0
- package/dist/toolkits/slack/tools/admin-conversations.js +246 -0
- package/dist/toolkits/slack/tools/admin-invites.d.ts +19 -0
- package/dist/toolkits/slack/tools/admin-invites.js +75 -0
- package/dist/toolkits/slack/tools/admin-users.d.ts +52 -0
- package/dist/toolkits/slack/tools/admin-users.js +182 -0
- package/dist/toolkits/slack/tools/audit.d.ts +20 -0
- package/dist/toolkits/slack/tools/audit.js +81 -0
- package/dist/toolkits/slack/tools/calls.d.ts +38 -0
- package/dist/toolkits/slack/tools/calls.js +141 -0
- package/dist/toolkits/slack/tools/canvas.d.ts +24 -0
- package/dist/toolkits/slack/tools/canvas.js +102 -0
- package/dist/toolkits/slack/tools/client.d.ts +22 -0
- package/dist/toolkits/slack/tools/client.js +73 -0
- package/dist/toolkits/slack/tools/conversations.d.ts +131 -0
- package/dist/toolkits/slack/tools/conversations.js +463 -0
- package/dist/toolkits/slack/tools/emoji.d.ts +29 -0
- package/dist/toolkits/slack/tools/emoji.js +118 -0
- package/dist/toolkits/slack/tools/files.d.ts +113 -0
- package/dist/toolkits/slack/tools/files.js +368 -0
- package/dist/toolkits/slack/tools/index.d.ts +28 -0
- package/dist/toolkits/slack/tools/index.js +187 -0
- package/dist/toolkits/slack/tools/messages.d.ts +106 -0
- package/dist/toolkits/slack/tools/messages.js +340 -0
- package/dist/toolkits/slack/tools/misc.d.ts +42 -0
- package/dist/toolkits/slack/tools/misc.js +127 -0
- package/dist/toolkits/slack/tools/reactions-stars-pins.d.ts +69 -0
- package/dist/toolkits/slack/tools/reactions-stars-pins.js +236 -0
- package/dist/toolkits/slack/tools/reminders.d.ts +22 -0
- package/dist/toolkits/slack/tools/reminders.js +83 -0
- package/dist/toolkits/slack/tools/search.d.ts +49 -0
- package/dist/toolkits/slack/tools/search.js +155 -0
- package/dist/toolkits/slack/tools/slack-lists.d.ts +65 -0
- package/dist/toolkits/slack/tools/slack-lists.js +282 -0
- package/dist/toolkits/slack/tools/teams.d.ts +75 -0
- package/dist/toolkits/slack/tools/teams.js +285 -0
- package/dist/toolkits/slack/tools/usergroups.d.ts +56 -0
- package/dist/toolkits/slack/tools/usergroups.js +194 -0
- package/dist/toolkits/slack/tools/users.d.ts +87 -0
- package/dist/toolkits/slack/tools/users.js +396 -0
- package/dist/toolkits/youtube/tools/add-video-to-playlist.d.ts +1 -1
- package/dist/toolkits/youtube/tools/delete-video.d.ts +1 -1
- package/dist/toolkits/youtube/tools/index.d.ts +10 -10
- package/dist/toolkits/youtube/tools/list-caption-track.d.ts +1 -1
- package/dist/toolkits/youtube/tools/list-playlist-items.d.ts +1 -1
- package/dist/toolkits/youtube/tools/list-video-categories.d.ts +1 -1
- package/dist/toolkits/youtube/tools/post-comment.d.ts +1 -1
- package/dist/toolkits/youtube/tools/report-video-abuse.d.ts +1 -1
- package/dist/toolkits/youtube/tools/search-youtube.d.ts +1 -1
- package/dist/toolkits/youtube/tools/update-thumbnail.d.ts +1 -1
- package/dist/toolkits/youtube/tools/update-video.d.ts +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
export declare const createCustomDimension: import("ai").Tool<{
|
|
2
|
+
scope: "EVENT" | "USER" | "ITEM";
|
|
3
|
+
parent: string;
|
|
4
|
+
googleAnalyticsToken: string;
|
|
5
|
+
displayName: string;
|
|
6
|
+
parameterName: string;
|
|
7
|
+
description?: string | undefined;
|
|
8
|
+
disallowAdsPersonalization?: boolean | undefined;
|
|
9
|
+
}, any>;
|
|
10
|
+
export declare const getCustomDimension: import("ai").Tool<{
|
|
11
|
+
name: string;
|
|
12
|
+
googleAnalyticsToken: string;
|
|
13
|
+
}, any>;
|
|
14
|
+
export declare const listCustomDimensions: import("ai").Tool<{
|
|
15
|
+
parent: string;
|
|
16
|
+
googleAnalyticsToken: string;
|
|
17
|
+
pageToken?: string | undefined;
|
|
18
|
+
pageSize?: number | undefined;
|
|
19
|
+
}, any>;
|
|
20
|
+
export declare const archiveCustomDimension: import("ai").Tool<{
|
|
21
|
+
name: string;
|
|
22
|
+
googleAnalyticsToken: string;
|
|
23
|
+
}, any>;
|
|
24
|
+
export declare const createCustomMetric: import("ai").Tool<{
|
|
25
|
+
scope: "EVENT";
|
|
26
|
+
parent: string;
|
|
27
|
+
googleAnalyticsToken: string;
|
|
28
|
+
displayName: string;
|
|
29
|
+
parameterName: string;
|
|
30
|
+
measurementUnit: "STANDARD" | "CURRENCY" | "FEET" | "METERS" | "KILOMETERS" | "MILES" | "MILLISECONDS" | "SECONDS" | "MINUTES" | "HOURS";
|
|
31
|
+
description?: string | undefined;
|
|
32
|
+
restrictedMetricType?: ("COST_DATA" | "REVENUE_DATA")[] | undefined;
|
|
33
|
+
}, any>;
|
|
34
|
+
export declare const listCustomMetrics: import("ai").Tool<{
|
|
35
|
+
parent: string;
|
|
36
|
+
googleAnalyticsToken: string;
|
|
37
|
+
pageToken?: string | undefined;
|
|
38
|
+
pageSize?: number | undefined;
|
|
39
|
+
}, any>;
|
|
40
|
+
export declare const listCalculatedMetrics: import("ai").Tool<{
|
|
41
|
+
parent: string;
|
|
42
|
+
googleAnalyticsToken: string;
|
|
43
|
+
pageToken?: string | undefined;
|
|
44
|
+
pageSize?: number | undefined;
|
|
45
|
+
}, any>;
|
|
46
|
+
export declare const createExpandedDataSet: import("ai").Tool<{
|
|
47
|
+
parent: string;
|
|
48
|
+
googleAnalyticsToken: string;
|
|
49
|
+
expandedDataSet: {
|
|
50
|
+
displayName: string;
|
|
51
|
+
dimensionNames: string[];
|
|
52
|
+
metricNames: string[];
|
|
53
|
+
description?: string | undefined;
|
|
54
|
+
};
|
|
55
|
+
}, any>;
|
|
56
|
+
export declare const listExpandedDataSets: import("ai").Tool<{
|
|
57
|
+
parent: string;
|
|
58
|
+
googleAnalyticsToken: string;
|
|
59
|
+
pageToken?: string | undefined;
|
|
60
|
+
pageSize?: number | undefined;
|
|
61
|
+
}, any>;
|
|
62
|
+
//# sourceMappingURL=custom-definitions.d.ts.map
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
import { tool } from 'ai';
|
|
3
|
+
import { z } from 'zod';
|
|
4
|
+
import { ADMIN_V1ALPHA, ADMIN_V1BETA, gaGet, gaList, gaPost, googleAnalyticsTokenField, normalizeProperty, paginationSchema, } from './client.js';
|
|
5
|
+
const propertyField = z.string().describe("Property 'properties/{id}' (bare numeric ID accepted)");
|
|
6
|
+
export const createCustomDimension = tool({
|
|
7
|
+
description: 'Creates a custom dimension (EVENT, USER, or ITEM scope) to track event parameters, user properties, or item parameters.',
|
|
8
|
+
inputSchema: z.object({
|
|
9
|
+
googleAnalyticsToken: googleAnalyticsTokenField,
|
|
10
|
+
parent: propertyField,
|
|
11
|
+
displayName: z.string().max(82).describe('UI display name (alphanumeric + space/underscore, starts with a letter)'),
|
|
12
|
+
parameterName: z.string().describe('Tagging parameter name (alphanumeric + underscore, starts with a letter)'),
|
|
13
|
+
scope: z.enum(['EVENT', 'USER', 'ITEM']).describe('Immutable scope'),
|
|
14
|
+
description: z.string().max(150).optional(),
|
|
15
|
+
disallowAdsPersonalization: z.boolean().optional().describe('Set NPA flag (user scope only)'),
|
|
16
|
+
}),
|
|
17
|
+
execute: async ({ googleAnalyticsToken, parent, ...dimension }) => gaPost(googleAnalyticsToken, ADMIN_V1BETA, `${normalizeProperty(parent)}/customDimensions`, dimension, undefined, 'create custom dimension'),
|
|
18
|
+
});
|
|
19
|
+
export const getCustomDimension = tool({
|
|
20
|
+
description: 'Gets a single custom dimension (display name, scope, parameter name) by resource name.',
|
|
21
|
+
inputSchema: z.object({
|
|
22
|
+
googleAnalyticsToken: googleAnalyticsTokenField,
|
|
23
|
+
name: z.string().describe("Dimension 'properties/{id}/customDimensions/{dimensionId}'"),
|
|
24
|
+
}),
|
|
25
|
+
execute: async ({ googleAnalyticsToken, name }) => {
|
|
26
|
+
try {
|
|
27
|
+
return await gaGet(googleAnalyticsToken, ADMIN_V1BETA, name);
|
|
28
|
+
}
|
|
29
|
+
catch (error) {
|
|
30
|
+
return { error: 'Error getting custom dimension', message: error instanceof Error ? error.message : 'Unknown error' };
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
});
|
|
34
|
+
export const listCustomDimensions = tool({
|
|
35
|
+
description: 'Lists custom dimensions on a property.',
|
|
36
|
+
inputSchema: z.object({
|
|
37
|
+
googleAnalyticsToken: googleAnalyticsTokenField,
|
|
38
|
+
parent: propertyField,
|
|
39
|
+
...paginationSchema,
|
|
40
|
+
}),
|
|
41
|
+
execute: async ({ googleAnalyticsToken, parent, pageSize, pageToken }) => gaList(googleAnalyticsToken, ADMIN_V1BETA, normalizeProperty(parent), 'customDimensions', { pageSize, pageToken }, 'list custom dimensions'),
|
|
42
|
+
});
|
|
43
|
+
export const archiveCustomDimension = tool({
|
|
44
|
+
description: 'Archives a custom dimension (removes from active use without deleting). Archived dimensions cannot be used in new reports.',
|
|
45
|
+
inputSchema: z.object({
|
|
46
|
+
googleAnalyticsToken: googleAnalyticsTokenField,
|
|
47
|
+
name: z.string().describe("Dimension 'properties/{id}/customDimensions/{dimensionId}'"),
|
|
48
|
+
}),
|
|
49
|
+
execute: async ({ googleAnalyticsToken, name }) => gaPost(googleAnalyticsToken, ADMIN_V1BETA, `${name}:archive`, {}, undefined, 'archive custom dimension'),
|
|
50
|
+
});
|
|
51
|
+
export const createCustomMetric = tool({
|
|
52
|
+
description: 'Creates an event-scoped custom metric for tracking numeric event parameters. CURRENCY units require restrictedMetricType.',
|
|
53
|
+
inputSchema: z.object({
|
|
54
|
+
googleAnalyticsToken: googleAnalyticsTokenField,
|
|
55
|
+
parent: propertyField,
|
|
56
|
+
displayName: z.string().max(82).describe('UI display name'),
|
|
57
|
+
parameterName: z.string().describe('Tagging event-parameter name (max 40 chars)'),
|
|
58
|
+
measurementUnit: z.enum(['STANDARD', 'CURRENCY', 'FEET', 'METERS', 'KILOMETERS', 'MILES', 'MILLISECONDS', 'SECONDS', 'MINUTES', 'HOURS']).describe('Value type'),
|
|
59
|
+
scope: z.enum(['EVENT']).describe('Immutable scope (currently EVENT only)'),
|
|
60
|
+
description: z.string().max(150).optional(),
|
|
61
|
+
restrictedMetricType: z.array(z.enum(['COST_DATA', 'REVENUE_DATA'])).optional().describe('Required for CURRENCY metrics; empty otherwise'),
|
|
62
|
+
}),
|
|
63
|
+
execute: async ({ googleAnalyticsToken, parent, ...metric }) => gaPost(googleAnalyticsToken, ADMIN_V1BETA, `${normalizeProperty(parent)}/customMetrics`, metric, undefined, 'create custom metric'),
|
|
64
|
+
});
|
|
65
|
+
export const listCustomMetrics = tool({
|
|
66
|
+
description: 'Lists custom metrics on a property.',
|
|
67
|
+
inputSchema: z.object({
|
|
68
|
+
googleAnalyticsToken: googleAnalyticsTokenField,
|
|
69
|
+
parent: propertyField,
|
|
70
|
+
...paginationSchema,
|
|
71
|
+
}),
|
|
72
|
+
execute: async ({ googleAnalyticsToken, parent, pageSize, pageToken }) => gaList(googleAnalyticsToken, ADMIN_V1BETA, normalizeProperty(parent), 'customMetrics', { pageSize, pageToken }, 'list custom metrics'),
|
|
73
|
+
});
|
|
74
|
+
export const listCalculatedMetrics = tool({
|
|
75
|
+
description: 'Lists calculated metrics (formula-based metrics) on a property.',
|
|
76
|
+
inputSchema: z.object({
|
|
77
|
+
googleAnalyticsToken: googleAnalyticsTokenField,
|
|
78
|
+
parent: propertyField,
|
|
79
|
+
...paginationSchema,
|
|
80
|
+
}),
|
|
81
|
+
execute: async ({ googleAnalyticsToken, parent, pageSize, pageToken }) => gaList(googleAnalyticsToken, ADMIN_V1BETA, normalizeProperty(parent), 'calculatedMetrics', { pageSize, pageToken }, 'list calculated metrics'),
|
|
82
|
+
});
|
|
83
|
+
export const createExpandedDataSet = tool({
|
|
84
|
+
description: 'Creates an expanded data set combining dimensions + metrics into a custom dataset for unsampled exploration.',
|
|
85
|
+
inputSchema: z.object({
|
|
86
|
+
googleAnalyticsToken: googleAnalyticsTokenField,
|
|
87
|
+
parent: propertyField,
|
|
88
|
+
expandedDataSet: z.object({
|
|
89
|
+
displayName: z.string().describe('Human-readable name'),
|
|
90
|
+
dimensionNames: z.array(z.string()).min(1).describe("Dimensions, e.g. ['date','region']"),
|
|
91
|
+
metricNames: z.array(z.string()).min(1).describe("Metrics, e.g. ['sessions']"),
|
|
92
|
+
description: z.string().optional(),
|
|
93
|
+
}).describe('Expanded data set definition'),
|
|
94
|
+
}),
|
|
95
|
+
execute: async ({ googleAnalyticsToken, parent, expandedDataSet }) => gaPost(googleAnalyticsToken, ADMIN_V1ALPHA, `${normalizeProperty(parent)}/expandedDataSets`, { expandedDataSet }, undefined, 'create expanded data set'),
|
|
96
|
+
});
|
|
97
|
+
export const listExpandedDataSets = tool({
|
|
98
|
+
description: 'Lists expanded data sets on a property.',
|
|
99
|
+
inputSchema: z.object({
|
|
100
|
+
googleAnalyticsToken: googleAnalyticsTokenField,
|
|
101
|
+
parent: propertyField,
|
|
102
|
+
...paginationSchema,
|
|
103
|
+
}),
|
|
104
|
+
execute: async ({ googleAnalyticsToken, parent, pageSize, pageToken }) => gaList(googleAnalyticsToken, ADMIN_V1ALPHA, normalizeProperty(parent), 'expandedDataSets', { pageSize, pageToken }, 'list expanded data sets'),
|
|
105
|
+
});
|
|
106
|
+
//# sourceMappingURL=custom-definitions.js.map
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { createReportTask, getReportTask, listReportTasks, queryReportTask, batchRunPivotReports, batchRunReports, checkCompatibility, getMetadata, runFunnelReport, runPivotReport, runRealtimeReport, runReport } from './reports.js';
|
|
2
|
+
import { createAudienceExport, createAudienceList, createRecurringAudienceList, getAudience, getAudienceExport, getAudienceList, getRecurringAudienceList, listAudienceExports, listAudienceLists, listAudiences, listRecurringAudienceLists, queryAudienceExport, queryAudienceList } from './audiences.js';
|
|
3
|
+
import { createRollupProperty, getAccount, getAttributionSettings, getDataRetentionSettings, getDataSharingSettings, getGoogleSignalsSettings, getProperty, getPropertyQuotasSnapshot, listAccountSummaries, listAccountsV1Beta, listPropertiesFiltered, provisionAccountTicket, updateProperty } from './admin.js';
|
|
4
|
+
import { archiveCustomDimension, createCustomDimension, createCustomMetric, createExpandedDataSet, getCustomDimension, listCalculatedMetrics, listCustomDimensions, listCustomMetrics, listExpandedDataSets } from './custom-definitions.js';
|
|
5
|
+
import { getKeyEvent, listAdsenseLinks, listBigqueryLinks, listChannelGroups, listConversionEvents, listDataStreams, listDv360AdLinks, listDv360LinkProposals, listEventCreateRules, listFirebaseLinks, listGoogleAdsLinks, listKeyEvents, listMeasurementProtocolSecrets, listReportingDataAnnotations, listSearchAds360Links, listSkAdNetworkSchemas, listSubpropertyEventFilters, listSubpropertySyncConfigs } from './links.js';
|
|
6
|
+
import { sendEvents, validateEvents } from './measurement.js';
|
|
7
|
+
export { runReport, batchRunReports, runPivotReport, batchRunPivotReports, runRealtimeReport, runFunnelReport, checkCompatibility, getMetadata, createReportTask, getReportTask, listReportTasks, queryReportTask, getAudience, listAudiences, createAudienceExport, getAudienceExport, listAudienceExports, queryAudienceExport, createAudienceList, getAudienceList, listAudienceLists, queryAudienceList, createRecurringAudienceList, getRecurringAudienceList, listRecurringAudienceLists, getAccount, listAccountsV1Beta, listAccountSummaries, provisionAccountTicket, getProperty, listPropertiesFiltered, updateProperty, createRollupProperty, getPropertyQuotasSnapshot, getAttributionSettings, getDataRetentionSettings, getDataSharingSettings, getGoogleSignalsSettings, createCustomDimension, getCustomDimension, listCustomDimensions, archiveCustomDimension, createCustomMetric, listCustomMetrics, listCalculatedMetrics, createExpandedDataSet, listExpandedDataSets, listAdsenseLinks, listBigqueryLinks, listChannelGroups, listConversionEvents, listKeyEvents, getKeyEvent, listDataStreams, listDv360AdLinks, listDv360LinkProposals, listEventCreateRules, listFirebaseLinks, listGoogleAdsLinks, listMeasurementProtocolSecrets, listSearchAds360Links, listSkAdNetworkSchemas, listSubpropertyEventFilters, listSubpropertySyncConfigs, listReportingDataAnnotations, sendEvents, validateEvents, };
|
|
8
|
+
declare const auth: "googleAnalyticsToken";
|
|
9
|
+
export declare const googleAnalyticsTools: {
|
|
10
|
+
name: string;
|
|
11
|
+
description: string;
|
|
12
|
+
tool: any;
|
|
13
|
+
requiredAuth?: typeof auth;
|
|
14
|
+
scope: "read" | "write" | "delete";
|
|
15
|
+
}[];
|
|
16
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
import { createReportTask, getReportTask, listReportTasks, queryReportTask, batchRunPivotReports, batchRunReports, checkCompatibility, getMetadata, runFunnelReport, runPivotReport, runRealtimeReport, runReport, } from './reports.js';
|
|
3
|
+
import { createAudienceExport, createAudienceList, createRecurringAudienceList, getAudience, getAudienceExport, getAudienceList, getRecurringAudienceList, listAudienceExports, listAudienceLists, listAudiences, listRecurringAudienceLists, queryAudienceExport, queryAudienceList, } from './audiences.js';
|
|
4
|
+
import { createRollupProperty, getAccount, getAttributionSettings, getDataRetentionSettings, getDataSharingSettings, getGoogleSignalsSettings, getProperty, getPropertyQuotasSnapshot, listAccountSummaries, listAccountsV1Beta, listPropertiesFiltered, provisionAccountTicket, updateProperty, } from './admin.js';
|
|
5
|
+
import { archiveCustomDimension, createCustomDimension, createCustomMetric, createExpandedDataSet, getCustomDimension, listCalculatedMetrics, listCustomDimensions, listCustomMetrics, listExpandedDataSets, } from './custom-definitions.js';
|
|
6
|
+
import { getKeyEvent, listAdsenseLinks, listBigqueryLinks, listChannelGroups, listConversionEvents, listDataStreams, listDv360AdLinks, listDv360LinkProposals, listEventCreateRules, listFirebaseLinks, listGoogleAdsLinks, listKeyEvents, listMeasurementProtocolSecrets, listReportingDataAnnotations, listSearchAds360Links, listSkAdNetworkSchemas, listSubpropertyEventFilters, listSubpropertySyncConfigs, } from './links.js';
|
|
7
|
+
import { sendEvents, validateEvents } from './measurement.js';
|
|
8
|
+
export { runReport, batchRunReports, runPivotReport, batchRunPivotReports, runRealtimeReport, runFunnelReport, checkCompatibility, getMetadata, createReportTask, getReportTask, listReportTasks, queryReportTask, getAudience, listAudiences, createAudienceExport, getAudienceExport, listAudienceExports, queryAudienceExport, createAudienceList, getAudienceList, listAudienceLists, queryAudienceList, createRecurringAudienceList, getRecurringAudienceList, listRecurringAudienceLists, getAccount, listAccountsV1Beta, listAccountSummaries, provisionAccountTicket, getProperty, listPropertiesFiltered, updateProperty, createRollupProperty, getPropertyQuotasSnapshot, getAttributionSettings, getDataRetentionSettings, getDataSharingSettings, getGoogleSignalsSettings, createCustomDimension, getCustomDimension, listCustomDimensions, archiveCustomDimension, createCustomMetric, listCustomMetrics, listCalculatedMetrics, createExpandedDataSet, listExpandedDataSets, listAdsenseLinks, listBigqueryLinks, listChannelGroups, listConversionEvents, listKeyEvents, getKeyEvent, listDataStreams, listDv360AdLinks, listDv360LinkProposals, listEventCreateRules, listFirebaseLinks, listGoogleAdsLinks, listMeasurementProtocolSecrets, listSearchAds360Links, listSkAdNetworkSchemas, listSubpropertyEventFilters, listSubpropertySyncConfigs, listReportingDataAnnotations, sendEvents, validateEvents, };
|
|
9
|
+
const auth = 'googleAnalyticsToken';
|
|
10
|
+
function entry(name, description, toolRef, scope, opts) {
|
|
11
|
+
return {
|
|
12
|
+
name,
|
|
13
|
+
description,
|
|
14
|
+
tool: toolRef,
|
|
15
|
+
...(opts?.noAuth ? {} : { requiredAuth: auth }),
|
|
16
|
+
scope,
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
export const googleAnalyticsTools = [
|
|
20
|
+
entry('googleAnalyticsRunReport', 'Runs a standard GA4 report (dimensions x metrics over date ranges).', runReport, 'read'),
|
|
21
|
+
entry('googleAnalyticsBatchRunReports', 'Runs multiple standard reports for one property in a single call.', batchRunReports, 'read'),
|
|
22
|
+
entry('googleAnalyticsRunPivotReport', 'Runs a GA4 pivot-table report.', runPivotReport, 'read'),
|
|
23
|
+
entry('googleAnalyticsBatchRunPivotReports', 'Runs multiple pivot reports for one property in a single call.', batchRunPivotReports, 'read'),
|
|
24
|
+
entry('googleAnalyticsRunRealtimeReport', 'Runs a realtime report over the last 30 minutes of activity.', runRealtimeReport, 'read'),
|
|
25
|
+
entry('googleAnalyticsRunFunnelReport', 'Runs a funnel analysis report.', runFunnelReport, 'read'),
|
|
26
|
+
entry('googleAnalyticsCheckCompatibility', 'Lists dimensions/metrics compatible with a report request.', checkCompatibility, 'read'),
|
|
27
|
+
entry('googleAnalyticsGetMetadata', 'Gets report metadata (available dimensions, metrics, comparisons).', getMetadata, 'read'),
|
|
28
|
+
entry('googleAnalyticsCreateReportTask', 'Creates an async report task for large/complex reports.', createReportTask, 'write'),
|
|
29
|
+
entry('googleAnalyticsGetReportTask', 'Gets report-task metadata and processing state.', getReportTask, 'read'),
|
|
30
|
+
entry('googleAnalyticsListReportTasks', 'Lists report tasks for a property.', listReportTasks, 'read'),
|
|
31
|
+
entry('googleAnalyticsQueryReportTask', 'Retrieves rows from an ACTIVE report task.', queryReportTask, 'read'),
|
|
32
|
+
entry('googleAnalyticsGetAudience', 'Gets a single audience configuration.', getAudience, 'read'),
|
|
33
|
+
entry('googleAnalyticsListAudiences', 'Lists audience configurations on a property.', listAudiences, 'read'),
|
|
34
|
+
entry('googleAnalyticsCreateAudienceExport', 'Exports a snapshot of users in an audience (async).', createAudienceExport, 'write'),
|
|
35
|
+
entry('googleAnalyticsGetAudienceExport', 'Gets audience-export metadata/state.', getAudienceExport, 'read'),
|
|
36
|
+
entry('googleAnalyticsListAudienceExports', 'Lists audience exports for a property.', listAudienceExports, 'read'),
|
|
37
|
+
entry('googleAnalyticsQueryAudienceExport', 'Retrieves rows from an audience export.', queryAudienceExport, 'read'),
|
|
38
|
+
entry('googleAnalyticsCreateAudienceList', 'Creates an audience list snapshot (async).', createAudienceList, 'write'),
|
|
39
|
+
entry('googleAnalyticsGetAudienceList', 'Gets audience-list metadata/state.', getAudienceList, 'read'),
|
|
40
|
+
entry('googleAnalyticsListAudienceLists', 'Lists audience lists for a property.', listAudienceLists, 'read'),
|
|
41
|
+
entry('googleAnalyticsQueryAudienceList', 'Retrieves rows from an audience list.', queryAudienceList, 'read'),
|
|
42
|
+
entry('googleAnalyticsCreateRecurringAudienceList', 'Creates a recurring (daily) audience list.', createRecurringAudienceList, 'write'),
|
|
43
|
+
entry('googleAnalyticsGetRecurringAudienceList', 'Gets a recurring audience list and its latest generated list.', getRecurringAudienceList, 'read'),
|
|
44
|
+
entry('googleAnalyticsListRecurringAudienceLists', 'Lists recurring audience lists for a property.', listRecurringAudienceLists, 'read'),
|
|
45
|
+
entry('googleAnalyticsGetAccount', 'Gets a single account by resource name.', getAccount, 'read'),
|
|
46
|
+
entry('googleAnalyticsListAccountsV1Beta', 'Lists all accessible accounts (v1beta).', listAccountsV1Beta, 'read'),
|
|
47
|
+
entry('googleAnalyticsListAccountSummaries', 'Lists high-level summaries of all accessible accounts.', listAccountSummaries, 'read'),
|
|
48
|
+
entry('googleAnalyticsProvisionAccountTicket', 'Provisions an account ticket for creating a new account.', provisionAccountTicket, 'write'),
|
|
49
|
+
entry('googleAnalyticsGetProperty', 'Gets a single GA4 property by resource name.', getProperty, 'read'),
|
|
50
|
+
entry('googleAnalyticsListPropertiesFiltered', 'Lists GA4 properties by filter expression.', listPropertiesFiltered, 'read'),
|
|
51
|
+
entry('googleAnalyticsUpdateProperty', 'Updates a property (displayName, timeZone, currencyCode).', updateProperty, 'write'),
|
|
52
|
+
entry('googleAnalyticsCreateRollupProperty', 'Creates a roll-up property aggregating source properties.', createRollupProperty, 'write'),
|
|
53
|
+
entry('googleAnalyticsGetPropertyQuotasSnapshot', 'Gets property quota usage by category.', getPropertyQuotasSnapshot, 'read'),
|
|
54
|
+
entry('googleAnalyticsGetAttributionSettings', 'Gets attribution configuration for a property.', getAttributionSettings, 'read'),
|
|
55
|
+
entry('googleAnalyticsGetDataRetentionSettings', 'Gets data retention configuration for a property.', getDataRetentionSettings, 'read'),
|
|
56
|
+
entry('googleAnalyticsGetDataSharingSettings', 'Gets data-sharing configuration for an account.', getDataSharingSettings, 'read'),
|
|
57
|
+
entry('googleAnalyticsGetGoogleSignalsSettings', 'Gets Google Signals configuration for a property.', getGoogleSignalsSettings, 'read'),
|
|
58
|
+
entry('googleAnalyticsCreateCustomDimension', 'Creates a custom dimension (EVENT, USER, or ITEM scope).', createCustomDimension, 'write'),
|
|
59
|
+
entry('googleAnalyticsGetCustomDimension', 'Gets a single custom dimension by resource name.', getCustomDimension, 'read'),
|
|
60
|
+
entry('googleAnalyticsListCustomDimensions', 'Lists custom dimensions on a property.', listCustomDimensions, 'read'),
|
|
61
|
+
entry('googleAnalyticsArchiveCustomDimension', 'Archives a custom dimension (removes from active use).', archiveCustomDimension, 'write'),
|
|
62
|
+
entry('googleAnalyticsCreateCustomMetric', 'Creates an event-scoped custom metric.', createCustomMetric, 'write'),
|
|
63
|
+
entry('googleAnalyticsListCustomMetrics', 'Lists custom metrics on a property.', listCustomMetrics, 'read'),
|
|
64
|
+
entry('googleAnalyticsListCalculatedMetrics', 'Lists calculated metrics on a property.', listCalculatedMetrics, 'read'),
|
|
65
|
+
entry('googleAnalyticsCreateExpandedDataSet', 'Creates an expanded data set (dimensions + metrics).', createExpandedDataSet, 'write'),
|
|
66
|
+
entry('googleAnalyticsListExpandedDataSets', 'Lists expanded data sets on a property.', listExpandedDataSets, 'read'),
|
|
67
|
+
entry('googleAnalyticsListAdsenseLinks', 'Lists AdSense links on a property.', listAdsenseLinks, 'read'),
|
|
68
|
+
entry('googleAnalyticsListBigqueryLinks', 'Lists BigQuery links on a property.', listBigqueryLinks, 'read'),
|
|
69
|
+
entry('googleAnalyticsListChannelGroups', 'Lists channel groups on a property.', listChannelGroups, 'read'),
|
|
70
|
+
entry('googleAnalyticsListConversionEvents', 'Lists conversion events on a property.', listConversionEvents, 'read'),
|
|
71
|
+
entry('googleAnalyticsListKeyEvents', 'Lists key events on a property.', listKeyEvents, 'read'),
|
|
72
|
+
entry('googleAnalyticsGetKeyEvent', 'Gets a single key event by resource name.', getKeyEvent, 'read'),
|
|
73
|
+
entry('googleAnalyticsListDataStreams', 'Lists data streams on a property.', listDataStreams, 'read'),
|
|
74
|
+
entry('googleAnalyticsListDv360AdLinks', 'Lists DV360 advertiser links on a property.', listDv360AdLinks, 'read'),
|
|
75
|
+
entry('googleAnalyticsListDv360LinkProposals', 'Lists DV360 link proposals on a property.', listDv360LinkProposals, 'read'),
|
|
76
|
+
entry('googleAnalyticsListEventCreateRules', 'Lists event-create rules on a property.', listEventCreateRules, 'read'),
|
|
77
|
+
entry('googleAnalyticsListFirebaseLinks', 'Lists Firebase links on a property.', listFirebaseLinks, 'read'),
|
|
78
|
+
entry('googleAnalyticsListGoogleAdsLinks', 'Lists Google Ads links on a property.', listGoogleAdsLinks, 'read'),
|
|
79
|
+
entry('googleAnalyticsListMeasurementProtocolSecrets', 'Lists Measurement Protocol secrets on a property.', listMeasurementProtocolSecrets, 'read'),
|
|
80
|
+
entry('googleAnalyticsListSearchAds360Links', 'Lists Search Ads 360 links on a property.', listSearchAds360Links, 'read'),
|
|
81
|
+
entry('googleAnalyticsListSkAdNetworkSchemas', 'Lists SKAdNetwork schemas for an iOS data stream.', listSkAdNetworkSchemas, 'read'),
|
|
82
|
+
entry('googleAnalyticsListSubpropertyEventFilters', 'Lists subproperty event filters on a property.', listSubpropertyEventFilters, 'read'),
|
|
83
|
+
entry('googleAnalyticsListSubpropertySyncConfigs', 'Lists subproperty sync configs on a property.', listSubpropertySyncConfigs, 'read'),
|
|
84
|
+
entry('googleAnalyticsListReportingDataAnnotations', 'Lists reporting data annotations on a property.', listReportingDataAnnotations, 'read'),
|
|
85
|
+
entry('googleAnalyticsSendEvents', 'Sends server-side events via Measurement Protocol (API-secret auth).', sendEvents, 'write', { noAuth: true }),
|
|
86
|
+
entry('googleAnalyticsValidateEvents', 'Validates Measurement Protocol events without recording them.', validateEvents, 'read', { noAuth: true }),
|
|
87
|
+
];
|
|
88
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export declare const listAdsenseLinks: import("ai").Tool<Record<string, any>, any>;
|
|
2
|
+
export declare const listBigqueryLinks: import("ai").Tool<Record<string, any>, any>;
|
|
3
|
+
export declare const listChannelGroups: import("ai").Tool<Record<string, any>, any>;
|
|
4
|
+
export declare const listConversionEvents: import("ai").Tool<Record<string, any>, any>;
|
|
5
|
+
export declare const listKeyEvents: import("ai").Tool<Record<string, any>, any>;
|
|
6
|
+
export declare const getKeyEvent: import("ai").Tool<{
|
|
7
|
+
name: string;
|
|
8
|
+
googleAnalyticsToken: string;
|
|
9
|
+
}, any>;
|
|
10
|
+
export declare const listDataStreams: import("ai").Tool<Record<string, any>, any>;
|
|
11
|
+
export declare const listDv360AdLinks: import("ai").Tool<Record<string, any>, any>;
|
|
12
|
+
export declare const listDv360LinkProposals: import("ai").Tool<Record<string, any>, any>;
|
|
13
|
+
export declare const listEventCreateRules: import("ai").Tool<Record<string, any>, any>;
|
|
14
|
+
export declare const listFirebaseLinks: import("ai").Tool<Record<string, any>, any>;
|
|
15
|
+
export declare const listGoogleAdsLinks: import("ai").Tool<Record<string, any>, any>;
|
|
16
|
+
export declare const listMeasurementProtocolSecrets: import("ai").Tool<Record<string, any>, any>;
|
|
17
|
+
export declare const listSearchAds360Links: import("ai").Tool<Record<string, any>, any>;
|
|
18
|
+
export declare const listSkAdNetworkSchemas: import("ai").Tool<Record<string, any>, any>;
|
|
19
|
+
export declare const listSubpropertyEventFilters: import("ai").Tool<Record<string, any>, any>;
|
|
20
|
+
export declare const listSubpropertySyncConfigs: import("ai").Tool<Record<string, any>, any>;
|
|
21
|
+
export declare const listReportingDataAnnotations: import("ai").Tool<Record<string, any>, any>;
|
|
22
|
+
//# sourceMappingURL=links.d.ts.map
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
import { tool } from 'ai';
|
|
3
|
+
import { z } from 'zod';
|
|
4
|
+
import { ADMIN_V1ALPHA, ADMIN_V1BETA, gaGet, gaList, googleAnalyticsTokenField, normalizeProperty, paginationSchema, } from './client.js';
|
|
5
|
+
const propertyField = z.string().describe("Property 'properties/{id}' (bare numeric ID accepted)");
|
|
6
|
+
function makeListTool(toolName, description, resource, action, base = ADMIN_V1BETA, extraSchema = {}) {
|
|
7
|
+
return tool({
|
|
8
|
+
description,
|
|
9
|
+
inputSchema: z.object({
|
|
10
|
+
googleAnalyticsToken: googleAnalyticsTokenField,
|
|
11
|
+
parent: propertyField,
|
|
12
|
+
...paginationSchema,
|
|
13
|
+
...extraSchema,
|
|
14
|
+
}),
|
|
15
|
+
execute: async ({ googleAnalyticsToken, parent, pageSize, pageToken, ...rest }) => {
|
|
16
|
+
const extra = {};
|
|
17
|
+
for (const [k, v] of Object.entries(rest))
|
|
18
|
+
if (v !== undefined)
|
|
19
|
+
extra[k] = v;
|
|
20
|
+
return gaList(googleAnalyticsToken, base, parent.startsWith('properties/') || parent.startsWith('accounts/') ? parent : normalizeProperty(parent), resource, { pageSize, pageToken, extra }, action);
|
|
21
|
+
},
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
export const listAdsenseLinks = makeListTool('listAdsenseLinks', 'Lists AdSense links on a property.', 'adsenseLinks', 'list AdSense links');
|
|
25
|
+
export const listBigqueryLinks = makeListTool('listBigqueryLinks', 'Lists BigQuery export links on a property.', 'bigqueryLinks', 'list BigQuery links');
|
|
26
|
+
export const listChannelGroups = makeListTool('listChannelGroups', 'Lists channel groups that categorize traffic sources in reports.', 'channelGroups', 'list channel groups');
|
|
27
|
+
export const listConversionEvents = makeListTool('listConversionEvents', 'Lists conversion events configured on a property.', 'conversionEvents', 'list conversion events');
|
|
28
|
+
export const listKeyEvents = makeListTool('listKeyEvents', 'Lists key events (successor of conversion events) on a property.', 'keyEvents', 'list key events');
|
|
29
|
+
export const getKeyEvent = tool({
|
|
30
|
+
description: 'Gets a single key event by resource name. Read-only; create/update/delete require the Analytics UI.',
|
|
31
|
+
inputSchema: z.object({
|
|
32
|
+
googleAnalyticsToken: googleAnalyticsTokenField,
|
|
33
|
+
name: z.string().describe("Key event 'properties/{id}/keyEvents/{event}'"),
|
|
34
|
+
}),
|
|
35
|
+
execute: async ({ googleAnalyticsToken, name }) => {
|
|
36
|
+
try {
|
|
37
|
+
return await gaGet(googleAnalyticsToken, ADMIN_V1BETA, name);
|
|
38
|
+
}
|
|
39
|
+
catch (error) {
|
|
40
|
+
return { error: 'Error getting key event', message: error instanceof Error ? error.message : 'Unknown error' };
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
});
|
|
44
|
+
export const listDataStreams = makeListTool('listDataStreams', 'Lists data streams (web, iOS, Android) on a property.', 'dataStreams', 'list data streams');
|
|
45
|
+
export const listDv360AdLinks = makeListTool('listDv360AdLinks', 'Lists Display & Video 360 advertiser links on a property.', 'displayVideo360AdvertiserLinks', 'list DV360 advertiser links');
|
|
46
|
+
export const listDv360LinkProposals = makeListTool('listDv360LinkProposals', 'Lists Display & Video 360 link proposals on a property.', 'displayVideo360AdvertiserLinkProposals', 'list DV360 link proposals');
|
|
47
|
+
export const listEventCreateRules = makeListTool('listEventCreateRules', 'Lists event-create rules (derived events) on a property.', 'eventCreateRules', 'list event create rules');
|
|
48
|
+
export const listFirebaseLinks = makeListTool('listFirebaseLinks', 'Lists Firebase links on a property.', 'firebaseLinks', 'list Firebase links');
|
|
49
|
+
export const listGoogleAdsLinks = makeListTool('listGoogleAdsLinks', 'Lists Google Ads links on a property.', 'googleAdsLinks', 'list Google Ads links');
|
|
50
|
+
export const listMeasurementProtocolSecrets = makeListTool('listMeasurementProtocolSecrets', 'Lists Measurement Protocol secrets (api_secret values live under data streams — reuse them for sendEvents).', 'measurementProtocolSecrets', 'list Measurement Protocol secrets');
|
|
51
|
+
export const listSearchAds360Links = makeListTool('listSearchAds360Links', 'Lists Search Ads 360 links on a property.', 'searchAds360Links', 'list Search Ads 360 links');
|
|
52
|
+
export const listSkAdNetworkSchemas = makeListTool('listSkAdNetworkSchemas', 'Lists SKAdNetwork conversion-value schemas for an iOS data stream. At most one schema per property.', 'skadnetworkConversionValueSchemas', 'list SKAdNetwork schemas', ADMIN_V1ALPHA);
|
|
53
|
+
export const listSubpropertyEventFilters = makeListTool('listSubpropertyEventFilters', 'Lists subproperty event filters on a property.', 'subpropertyEventFilters', 'list subproperty event filters', ADMIN_V1ALPHA);
|
|
54
|
+
export const listSubpropertySyncConfigs = makeListTool('listSubpropertySyncConfigs', 'Lists subproperty sync configurations on a property.', 'subpropertySyncConfigs', 'list subproperty sync configs', ADMIN_V1ALPHA);
|
|
55
|
+
export const listReportingDataAnnotations = makeListTool('listReportingDataAnnotations', 'Lists reporting data annotations (notes on report data) on a property. Supports filter expressions.', 'reportingDataAnnotations', 'list reporting data annotations', ADMIN_V1ALPHA, { filter: z.string().optional().describe('Filter expression for annotations') });
|
|
56
|
+
//# sourceMappingURL=links.js.map
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
import { tool } from 'ai';
|
|
3
|
+
import { z } from 'zod';
|
|
4
|
+
const mpEvent = z.object({
|
|
5
|
+
name: z.string().max(40).describe("Event name, e.g. 'purchase', 'login', 'page_view'"),
|
|
6
|
+
params: z.record(z.any()).optional().describe("Parameters, e.g. {currency:'USD', value:42.5, transaction_id:'T12345'}"),
|
|
7
|
+
});
|
|
8
|
+
const mpBody = {
|
|
9
|
+
measurementId: z.string().describe("Web stream measurement ID, e.g. 'G-XXXXXXX'"),
|
|
10
|
+
apiSecret: z.string().describe('Measurement Protocol API secret (see listMeasurementProtocolSecrets)'),
|
|
11
|
+
clientId: z.string().describe('Client ID (same value used client-side for session stitching)'),
|
|
12
|
+
events: z.array(mpEvent).min(1).max(25).describe('1-25 events per request'),
|
|
13
|
+
userId: z.string().optional(),
|
|
14
|
+
timestampMicros: z.number().optional().describe('Unix microseconds; defaults to collection time'),
|
|
15
|
+
userProperties: z.record(z.any()).optional(),
|
|
16
|
+
consent: z.object({
|
|
17
|
+
adUserData: z.string().optional().describe("'GRANTED' or 'DENIED'"),
|
|
18
|
+
adPersonalization: z.string().optional().describe("'GRANTED' or 'DENIED'"),
|
|
19
|
+
}).catchall(z.unknown()).optional(),
|
|
20
|
+
};
|
|
21
|
+
async function postMeasurementProtocol(measurementId, apiSecret, payload, debug, action) {
|
|
22
|
+
try {
|
|
23
|
+
const base = debug ? 'https://www.google-analytics.com/debug/mp/collect' : 'https://www.google-analytics.com/mp/collect';
|
|
24
|
+
const url = `${base}?measurement_id=${encodeURIComponent(measurementId)}&api_secret=${encodeURIComponent(apiSecret)}`;
|
|
25
|
+
const response = await fetch(url, {
|
|
26
|
+
method: 'POST',
|
|
27
|
+
headers: { 'Content-Type': 'application/json' },
|
|
28
|
+
body: JSON.stringify(payload),
|
|
29
|
+
});
|
|
30
|
+
if (!response.ok) {
|
|
31
|
+
const details = await response.text().catch(() => '');
|
|
32
|
+
return { error: `Failed to ${action} (HTTP ${response.status})`, details };
|
|
33
|
+
}
|
|
34
|
+
const data = await response.json().catch(() => ({}));
|
|
35
|
+
return debug ? data : { success: true, ...(typeof data === 'object' ? data : {}) };
|
|
36
|
+
}
|
|
37
|
+
catch (error) {
|
|
38
|
+
return { error: `Error while trying to ${action}`, message: error instanceof Error ? error.message : 'Unknown error' };
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
function toPayload(input) {
|
|
42
|
+
const { measurementId, apiSecret, ...rest } = input;
|
|
43
|
+
return rest;
|
|
44
|
+
}
|
|
45
|
+
export const sendEvents = tool({
|
|
46
|
+
description: 'Sends server-side events via Measurement Protocol (API-secret auth, no OAuth). Events appear in reports within 24-48h. Validate first with validateEvents.',
|
|
47
|
+
inputSchema: z.object(mpBody),
|
|
48
|
+
execute: async (input) => postMeasurementProtocol(input.measurementId, input.apiSecret, toPayload(input), false, 'send events'),
|
|
49
|
+
});
|
|
50
|
+
export const validateEvents = tool({
|
|
51
|
+
description: 'Validates Measurement Protocol events against the debug endpoint without recording them. Fix validationMessages before calling sendEvents.',
|
|
52
|
+
inputSchema: z.object(mpBody),
|
|
53
|
+
execute: async (input) => postMeasurementProtocol(input.measurementId, input.apiSecret, toPayload(input), true, 'validate events'),
|
|
54
|
+
});
|
|
55
|
+
//# sourceMappingURL=measurement.js.map
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const runReport: import("ai").Tool<{
|
|
3
|
+
property: string;
|
|
4
|
+
googleAnalyticsToken: string;
|
|
5
|
+
limit?: number | undefined;
|
|
6
|
+
dimensions?: z.objectOutputType<{
|
|
7
|
+
name: z.ZodString;
|
|
8
|
+
}, z.ZodUnknown, "strip">[] | undefined;
|
|
9
|
+
metricAggregations?: string[] | undefined;
|
|
10
|
+
dateRanges?: z.objectOutputType<{
|
|
11
|
+
startDate: z.ZodString;
|
|
12
|
+
endDate: z.ZodString;
|
|
13
|
+
name: z.ZodOptional<z.ZodString>;
|
|
14
|
+
}, z.ZodUnknown, "strip">[] | undefined;
|
|
15
|
+
metrics?: z.objectOutputType<{
|
|
16
|
+
name: z.ZodString;
|
|
17
|
+
}, z.ZodUnknown, "strip">[] | undefined;
|
|
18
|
+
dimensionFilter?: Record<string, any> | undefined;
|
|
19
|
+
metricFilter?: Record<string, any> | undefined;
|
|
20
|
+
orderBys?: Record<string, any>[] | undefined;
|
|
21
|
+
offset?: number | undefined;
|
|
22
|
+
currencyCode?: string | undefined;
|
|
23
|
+
cohortSpec?: Record<string, any> | undefined;
|
|
24
|
+
comparisons?: Record<string, any>[] | undefined;
|
|
25
|
+
keepEmptyRows?: boolean | undefined;
|
|
26
|
+
returnPropertyQuota?: boolean | undefined;
|
|
27
|
+
}, unknown>;
|
|
28
|
+
export declare const batchRunReports: import("ai").Tool<{
|
|
29
|
+
property: string;
|
|
30
|
+
requests: Record<string, any>[];
|
|
31
|
+
googleAnalyticsToken: string;
|
|
32
|
+
}, unknown>;
|
|
33
|
+
export declare const runPivotReport: import("ai").Tool<{
|
|
34
|
+
property: string;
|
|
35
|
+
googleAnalyticsToken: string;
|
|
36
|
+
limit?: number | undefined;
|
|
37
|
+
dimensions?: z.objectOutputType<{
|
|
38
|
+
name: z.ZodString;
|
|
39
|
+
}, z.ZodUnknown, "strip">[] | undefined;
|
|
40
|
+
dateRanges?: z.objectOutputType<{
|
|
41
|
+
startDate: z.ZodString;
|
|
42
|
+
endDate: z.ZodString;
|
|
43
|
+
name: z.ZodOptional<z.ZodString>;
|
|
44
|
+
}, z.ZodUnknown, "strip">[] | undefined;
|
|
45
|
+
metrics?: z.objectOutputType<{
|
|
46
|
+
name: z.ZodString;
|
|
47
|
+
}, z.ZodUnknown, "strip">[] | undefined;
|
|
48
|
+
dimensionFilter?: Record<string, any> | undefined;
|
|
49
|
+
metricFilter?: Record<string, any> | undefined;
|
|
50
|
+
orderBys?: Record<string, any>[] | undefined;
|
|
51
|
+
offset?: number | undefined;
|
|
52
|
+
currencyCode?: string | undefined;
|
|
53
|
+
cohortSpec?: Record<string, any> | undefined;
|
|
54
|
+
comparisons?: Record<string, any>[] | undefined;
|
|
55
|
+
keepEmptyRows?: boolean | undefined;
|
|
56
|
+
returnPropertyQuota?: boolean | undefined;
|
|
57
|
+
pivots?: Record<string, any>[] | undefined;
|
|
58
|
+
}, unknown>;
|
|
59
|
+
export declare const batchRunPivotReports: import("ai").Tool<{
|
|
60
|
+
property: string;
|
|
61
|
+
requests: Record<string, any>[];
|
|
62
|
+
googleAnalyticsToken: string;
|
|
63
|
+
}, unknown>;
|
|
64
|
+
export declare const runRealtimeReport: import("ai").Tool<{
|
|
65
|
+
property: string;
|
|
66
|
+
googleAnalyticsToken: string;
|
|
67
|
+
limit?: number | undefined;
|
|
68
|
+
dimensions?: z.objectOutputType<{
|
|
69
|
+
name: z.ZodString;
|
|
70
|
+
}, z.ZodUnknown, "strip">[] | undefined;
|
|
71
|
+
metricAggregations?: string[] | undefined;
|
|
72
|
+
metrics?: z.objectOutputType<{
|
|
73
|
+
name: z.ZodString;
|
|
74
|
+
}, z.ZodUnknown, "strip">[] | undefined;
|
|
75
|
+
dimensionFilter?: Record<string, any> | undefined;
|
|
76
|
+
metricFilter?: Record<string, any> | undefined;
|
|
77
|
+
orderBys?: Record<string, any>[] | undefined;
|
|
78
|
+
returnPropertyQuota?: boolean | undefined;
|
|
79
|
+
minuteRanges?: Record<string, any>[] | undefined;
|
|
80
|
+
}, unknown>;
|
|
81
|
+
export declare const runFunnelReport: import("ai").Tool<{
|
|
82
|
+
property: string;
|
|
83
|
+
googleAnalyticsToken: string;
|
|
84
|
+
funnel: Record<string, any>;
|
|
85
|
+
limit?: number | undefined;
|
|
86
|
+
dateRanges?: z.objectOutputType<{
|
|
87
|
+
startDate: z.ZodString;
|
|
88
|
+
endDate: z.ZodString;
|
|
89
|
+
name: z.ZodOptional<z.ZodString>;
|
|
90
|
+
}, z.ZodUnknown, "strip">[] | undefined;
|
|
91
|
+
dimensionFilter?: Record<string, any> | undefined;
|
|
92
|
+
returnPropertyQuota?: boolean | undefined;
|
|
93
|
+
segments?: Record<string, any>[] | undefined;
|
|
94
|
+
funnelBreakdown?: Record<string, any> | undefined;
|
|
95
|
+
funnelNextAction?: Record<string, any> | undefined;
|
|
96
|
+
funnelVisualizationType?: string | undefined;
|
|
97
|
+
}, unknown>;
|
|
98
|
+
export declare const checkCompatibility: import("ai").Tool<{
|
|
99
|
+
property: string;
|
|
100
|
+
googleAnalyticsToken: string;
|
|
101
|
+
dimensions?: z.objectOutputType<{
|
|
102
|
+
name: z.ZodString;
|
|
103
|
+
}, z.ZodUnknown, "strip">[] | undefined;
|
|
104
|
+
metrics?: z.objectOutputType<{
|
|
105
|
+
name: z.ZodString;
|
|
106
|
+
}, z.ZodUnknown, "strip">[] | undefined;
|
|
107
|
+
dimensionFilter?: Record<string, any> | undefined;
|
|
108
|
+
metricFilter?: Record<string, any> | undefined;
|
|
109
|
+
compatibilityFilter?: "DIMENSION_COMPATIBILITY_FILTER_UNSPECIFIED" | "COMPATIBLE" | "INCOMPATIBLE" | undefined;
|
|
110
|
+
}, unknown>;
|
|
111
|
+
export declare const getMetadata: import("ai").Tool<{
|
|
112
|
+
name: string;
|
|
113
|
+
googleAnalyticsToken: string;
|
|
114
|
+
}, any>;
|
|
115
|
+
export declare const createReportTask: import("ai").Tool<{
|
|
116
|
+
parent: string;
|
|
117
|
+
googleAnalyticsToken: string;
|
|
118
|
+
reportDefinition?: Record<string, any> | undefined;
|
|
119
|
+
}, any>;
|
|
120
|
+
export declare const getReportTask: import("ai").Tool<{
|
|
121
|
+
name: string;
|
|
122
|
+
googleAnalyticsToken: string;
|
|
123
|
+
}, any>;
|
|
124
|
+
export declare const listReportTasks: import("ai").Tool<{
|
|
125
|
+
parent: string;
|
|
126
|
+
googleAnalyticsToken: string;
|
|
127
|
+
pageToken?: string | undefined;
|
|
128
|
+
pageSize?: number | undefined;
|
|
129
|
+
}, any>;
|
|
130
|
+
export declare const queryReportTask: import("ai").Tool<{
|
|
131
|
+
name: string;
|
|
132
|
+
googleAnalyticsToken: string;
|
|
133
|
+
limit?: number | undefined;
|
|
134
|
+
offset?: number | undefined;
|
|
135
|
+
}, any>;
|
|
136
|
+
//# sourceMappingURL=reports.d.ts.map
|