@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,30 @@
|
|
|
1
|
+
export declare const gitlabListPipelines: import("ai").Tool<{
|
|
2
|
+
projectId: string | number;
|
|
3
|
+
perPage: number;
|
|
4
|
+
page: number;
|
|
5
|
+
status?: "success" | "skipped" | "pending" | "running" | "manual" | "failed" | "canceled" | undefined;
|
|
6
|
+
ref?: string | undefined;
|
|
7
|
+
gitlabToken?: string | undefined;
|
|
8
|
+
}, any>;
|
|
9
|
+
export declare const gitlabGetPipeline: import("ai").Tool<{
|
|
10
|
+
projectId: string | number;
|
|
11
|
+
pipelineId: string | number;
|
|
12
|
+
gitlabToken?: string | undefined;
|
|
13
|
+
}, any>;
|
|
14
|
+
export declare const gitlabCreatePipeline: import("ai").Tool<{
|
|
15
|
+
projectId: string | number;
|
|
16
|
+
ref: string;
|
|
17
|
+
variables?: {
|
|
18
|
+
value: string;
|
|
19
|
+
key: string;
|
|
20
|
+
}[] | undefined;
|
|
21
|
+
gitlabToken?: string | undefined;
|
|
22
|
+
}, any>;
|
|
23
|
+
export declare const gitlabListJobs: import("ai").Tool<{
|
|
24
|
+
projectId: string | number;
|
|
25
|
+
perPage: number;
|
|
26
|
+
page: number;
|
|
27
|
+
pipelineId: string | number;
|
|
28
|
+
gitlabToken?: string | undefined;
|
|
29
|
+
}, any>;
|
|
30
|
+
//# sourceMappingURL=pipelines.d.ts.map
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
import { tool } from 'ai';
|
|
3
|
+
import { z } from 'zod';
|
|
4
|
+
import { gitlabRequest, encodeId } from './client.js';
|
|
5
|
+
const tokenField = z.string().optional().describe('Injected by system; do not provide');
|
|
6
|
+
const projectField = z
|
|
7
|
+
.union([z.string(), z.number()])
|
|
8
|
+
.describe('Project ID or URL-encoded path (e.g. 123 or "group/project")');
|
|
9
|
+
export const gitlabListPipelines = tool({
|
|
10
|
+
description: 'List GitLab CI/CD pipelines for a project. Use when the user asks to see pipeline runs, build status, or CI history.',
|
|
11
|
+
inputSchema: z.object({
|
|
12
|
+
gitlabToken: tokenField,
|
|
13
|
+
projectId: projectField,
|
|
14
|
+
status: z.enum(['running', 'pending', 'success', 'failed', 'canceled', 'skipped', 'manual']).optional().describe('Filter by pipeline status'),
|
|
15
|
+
ref: z.string().optional().describe('Filter by branch or tag name'),
|
|
16
|
+
perPage: z.number().min(1).max(100).optional().default(20).describe('Results per page (max 100)'),
|
|
17
|
+
page: z.number().min(1).optional().default(1).describe('Page number'),
|
|
18
|
+
}),
|
|
19
|
+
execute: async ({ gitlabToken, projectId, status, ref, perPage = 20, page = 1 }) => {
|
|
20
|
+
return gitlabRequest(gitlabToken, `/projects/${encodeId(projectId)}/pipelines`, {
|
|
21
|
+
query: { status, ref, per_page: perPage, page },
|
|
22
|
+
});
|
|
23
|
+
},
|
|
24
|
+
});
|
|
25
|
+
export const gitlabGetPipeline = tool({
|
|
26
|
+
description: 'Get a single GitLab pipeline by ID. Use when the user asks for details or status of a specific pipeline run.',
|
|
27
|
+
inputSchema: z.object({
|
|
28
|
+
gitlabToken: tokenField,
|
|
29
|
+
projectId: projectField,
|
|
30
|
+
pipelineId: z.union([z.string(), z.number()]).describe('Pipeline ID'),
|
|
31
|
+
}),
|
|
32
|
+
execute: async ({ gitlabToken, projectId, pipelineId }) => {
|
|
33
|
+
return gitlabRequest(gitlabToken, `/projects/${encodeId(projectId)}/pipelines/${pipelineId}`);
|
|
34
|
+
},
|
|
35
|
+
});
|
|
36
|
+
export const gitlabCreatePipeline = tool({
|
|
37
|
+
description: 'Create (trigger) a new GitLab CI/CD pipeline run for a branch or tag. Use when the user wants to run or retrigger CI.',
|
|
38
|
+
inputSchema: z.object({
|
|
39
|
+
gitlabToken: tokenField,
|
|
40
|
+
projectId: projectField,
|
|
41
|
+
ref: z.string().describe('Branch or tag to run the pipeline on, e.g. "main"'),
|
|
42
|
+
variables: z.array(z.object({ key: z.string(), value: z.string() })).optional().describe('CI/CD variables for the pipeline run'),
|
|
43
|
+
}),
|
|
44
|
+
execute: async ({ gitlabToken, projectId, ref, variables }) => {
|
|
45
|
+
return gitlabRequest(gitlabToken, `/projects/${encodeId(projectId)}/pipeline`, {
|
|
46
|
+
method: 'POST',
|
|
47
|
+
body: { ref, variables },
|
|
48
|
+
});
|
|
49
|
+
},
|
|
50
|
+
});
|
|
51
|
+
export const gitlabListJobs = tool({
|
|
52
|
+
description: 'List jobs for a GitLab pipeline. Use when the user asks to see jobs, stages, or which job failed in a pipeline.',
|
|
53
|
+
inputSchema: z.object({
|
|
54
|
+
gitlabToken: tokenField,
|
|
55
|
+
projectId: projectField,
|
|
56
|
+
pipelineId: z.union([z.string(), z.number()]).describe('Pipeline ID'),
|
|
57
|
+
perPage: z.number().min(1).max(100).optional().default(20).describe('Results per page (max 100)'),
|
|
58
|
+
page: z.number().min(1).optional().default(1).describe('Page number'),
|
|
59
|
+
}),
|
|
60
|
+
execute: async ({ gitlabToken, projectId, pipelineId, perPage = 20, page = 1 }) => {
|
|
61
|
+
return gitlabRequest(gitlabToken, `/projects/${encodeId(projectId)}/pipelines/${pipelineId}/jobs`, {
|
|
62
|
+
query: { per_page: perPage, page },
|
|
63
|
+
});
|
|
64
|
+
},
|
|
65
|
+
});
|
|
66
|
+
//# sourceMappingURL=pipelines.js.map
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
export declare const gitlabListProjects: import("ai").Tool<{
|
|
2
|
+
perPage: number;
|
|
3
|
+
page: number;
|
|
4
|
+
sort?: "asc" | "desc" | undefined;
|
|
5
|
+
search?: string | undefined;
|
|
6
|
+
owned?: boolean | undefined;
|
|
7
|
+
orderBy?: "path" | "id" | "name" | "updated_at" | "created_at" | "last_activity_at" | undefined;
|
|
8
|
+
gitlabToken?: string | undefined;
|
|
9
|
+
membership?: boolean | undefined;
|
|
10
|
+
}, any>;
|
|
11
|
+
export declare const gitlabGetProject: import("ai").Tool<{
|
|
12
|
+
projectId: string | number;
|
|
13
|
+
gitlabToken?: string | undefined;
|
|
14
|
+
}, any>;
|
|
15
|
+
export declare const gitlabCreateProject: import("ai").Tool<{
|
|
16
|
+
name: string;
|
|
17
|
+
description?: string | undefined;
|
|
18
|
+
visibility?: "private" | "public" | "internal" | undefined;
|
|
19
|
+
gitlabToken?: string | undefined;
|
|
20
|
+
initializeWithReadme?: boolean | undefined;
|
|
21
|
+
defaultBranch?: string | undefined;
|
|
22
|
+
namespaceId?: string | number | undefined;
|
|
23
|
+
}, any>;
|
|
24
|
+
export declare const gitlabUpdateProject: import("ai").Tool<{
|
|
25
|
+
projectId: string | number;
|
|
26
|
+
description?: string | undefined;
|
|
27
|
+
visibility?: "private" | "public" | "internal" | undefined;
|
|
28
|
+
name?: string | undefined;
|
|
29
|
+
gitlabToken?: string | undefined;
|
|
30
|
+
defaultBranch?: string | undefined;
|
|
31
|
+
}, any>;
|
|
32
|
+
export declare const gitlabDeleteProject: import("ai").Tool<{
|
|
33
|
+
projectId: string | number;
|
|
34
|
+
gitlabToken?: string | undefined;
|
|
35
|
+
}, any>;
|
|
36
|
+
//# sourceMappingURL=projects.d.ts.map
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
import { tool } from 'ai';
|
|
3
|
+
import { z } from 'zod';
|
|
4
|
+
import { gitlabRequest, encodeId } from './client.js';
|
|
5
|
+
const tokenField = z.string().optional().describe('Injected by system; do not provide');
|
|
6
|
+
const projectField = z
|
|
7
|
+
.union([z.string(), z.number()])
|
|
8
|
+
.describe('Project ID or URL-encoded path (e.g. 123 or "group/project")');
|
|
9
|
+
export const gitlabListProjects = tool({
|
|
10
|
+
description: 'List GitLab projects for the authenticated user. Use when the user asks to see their projects, browse repos, or find a project by name. Supports search, ownership filter, and pagination.',
|
|
11
|
+
inputSchema: z.object({
|
|
12
|
+
gitlabToken: tokenField,
|
|
13
|
+
search: z.string().optional().describe('Search query to filter projects by name or path'),
|
|
14
|
+
owned: z.boolean().optional().describe('Limit to projects explicitly owned by the authenticated user'),
|
|
15
|
+
membership: z.boolean().optional().describe('Limit to projects the user is a member of'),
|
|
16
|
+
orderBy: z.enum(['id', 'name', 'path', 'created_at', 'updated_at', 'last_activity_at']).optional().describe('Field to order results by'),
|
|
17
|
+
sort: z.enum(['asc', 'desc']).optional().describe('Sort direction'),
|
|
18
|
+
perPage: z.number().min(1).max(100).optional().default(20).describe('Results per page (max 100)'),
|
|
19
|
+
page: z.number().min(1).optional().default(1).describe('Page number'),
|
|
20
|
+
}),
|
|
21
|
+
execute: async ({ gitlabToken, search, owned, membership, orderBy, sort, perPage = 20, page = 1 }) => {
|
|
22
|
+
return gitlabRequest(gitlabToken, '/projects', {
|
|
23
|
+
query: { search, owned, membership, order_by: orderBy, sort, per_page: perPage, page },
|
|
24
|
+
});
|
|
25
|
+
},
|
|
26
|
+
});
|
|
27
|
+
export const gitlabGetProject = tool({
|
|
28
|
+
description: 'Get detailed information about a single GitLab project. Use when the user asks for project details, settings, or stats for a specific project.',
|
|
29
|
+
inputSchema: z.object({
|
|
30
|
+
gitlabToken: tokenField,
|
|
31
|
+
projectId: projectField,
|
|
32
|
+
}),
|
|
33
|
+
execute: async ({ gitlabToken, projectId }) => {
|
|
34
|
+
return gitlabRequest(gitlabToken, `/projects/${encodeId(projectId)}`);
|
|
35
|
+
},
|
|
36
|
+
});
|
|
37
|
+
export const gitlabCreateProject = tool({
|
|
38
|
+
description: 'Create a new GitLab project. Use when the user wants to create a project or repository on GitLab.',
|
|
39
|
+
inputSchema: z.object({
|
|
40
|
+
gitlabToken: tokenField,
|
|
41
|
+
name: z.string().describe('New project name'),
|
|
42
|
+
description: z.string().optional().describe('Project description'),
|
|
43
|
+
visibility: z.enum(['private', 'internal', 'public']).optional().describe('Project visibility level'),
|
|
44
|
+
initializeWithReadme: z.boolean().optional().describe('Initialize the project with a README'),
|
|
45
|
+
defaultBranch: z.string().optional().describe('Default branch name, e.g. "main"'),
|
|
46
|
+
namespaceId: z.union([z.string(), z.number()]).optional().describe('Namespace (group or user) ID to create the project under'),
|
|
47
|
+
}),
|
|
48
|
+
execute: async ({ gitlabToken, name, description, visibility, initializeWithReadme, defaultBranch, namespaceId }) => {
|
|
49
|
+
return gitlabRequest(gitlabToken, '/projects', {
|
|
50
|
+
method: 'POST',
|
|
51
|
+
body: {
|
|
52
|
+
name,
|
|
53
|
+
description,
|
|
54
|
+
visibility,
|
|
55
|
+
initialize_with_readme: initializeWithReadme,
|
|
56
|
+
default_branch: defaultBranch,
|
|
57
|
+
namespace_id: namespaceId,
|
|
58
|
+
},
|
|
59
|
+
});
|
|
60
|
+
},
|
|
61
|
+
});
|
|
62
|
+
export const gitlabUpdateProject = tool({
|
|
63
|
+
description: 'Update a GitLab project (name, description, visibility, default branch). Use when the user wants to edit project settings.',
|
|
64
|
+
inputSchema: z.object({
|
|
65
|
+
gitlabToken: tokenField,
|
|
66
|
+
projectId: projectField,
|
|
67
|
+
name: z.string().optional().describe('New project name'),
|
|
68
|
+
description: z.string().optional().describe('New project description'),
|
|
69
|
+
visibility: z.enum(['private', 'internal', 'public']).optional().describe('New visibility level'),
|
|
70
|
+
defaultBranch: z.string().optional().describe('New default branch'),
|
|
71
|
+
}),
|
|
72
|
+
execute: async ({ gitlabToken, projectId, name, description, visibility, defaultBranch }) => {
|
|
73
|
+
return gitlabRequest(gitlabToken, `/projects/${encodeId(projectId)}`, {
|
|
74
|
+
method: 'PUT',
|
|
75
|
+
body: {
|
|
76
|
+
name,
|
|
77
|
+
description,
|
|
78
|
+
visibility,
|
|
79
|
+
default_branch: defaultBranch,
|
|
80
|
+
},
|
|
81
|
+
});
|
|
82
|
+
},
|
|
83
|
+
});
|
|
84
|
+
export const gitlabDeleteProject = tool({
|
|
85
|
+
description: 'Delete a GitLab project. Use only when the user explicitly asks to delete or remove a project. This is irreversible.',
|
|
86
|
+
inputSchema: z.object({
|
|
87
|
+
gitlabToken: tokenField,
|
|
88
|
+
projectId: projectField,
|
|
89
|
+
}),
|
|
90
|
+
execute: async ({ gitlabToken, projectId }) => {
|
|
91
|
+
return gitlabRequest(gitlabToken, `/projects/${encodeId(projectId)}`, { method: 'DELETE' });
|
|
92
|
+
},
|
|
93
|
+
});
|
|
94
|
+
//# sourceMappingURL=projects.js.map
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export declare const gitlabListBranches: import("ai").Tool<{
|
|
2
|
+
projectId: string | number;
|
|
3
|
+
perPage: number;
|
|
4
|
+
page: number;
|
|
5
|
+
search?: string | undefined;
|
|
6
|
+
gitlabToken?: string | undefined;
|
|
7
|
+
}, any>;
|
|
8
|
+
export declare const gitlabListCommits: import("ai").Tool<{
|
|
9
|
+
projectId: string | number;
|
|
10
|
+
perPage: number;
|
|
11
|
+
page: number;
|
|
12
|
+
gitlabToken?: string | undefined;
|
|
13
|
+
refName?: string | undefined;
|
|
14
|
+
}, any>;
|
|
15
|
+
export declare const gitlabGetFile: import("ai").Tool<{
|
|
16
|
+
projectId: string | number;
|
|
17
|
+
ref: string;
|
|
18
|
+
filePath: string;
|
|
19
|
+
gitlabToken?: string | undefined;
|
|
20
|
+
}, any>;
|
|
21
|
+
//# sourceMappingURL=repository.d.ts.map
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
import { tool } from 'ai';
|
|
3
|
+
import { z } from 'zod';
|
|
4
|
+
import { gitlabRequest, encodeId } from './client.js';
|
|
5
|
+
const tokenField = z.string().optional().describe('Injected by system; do not provide');
|
|
6
|
+
const projectField = z
|
|
7
|
+
.union([z.string(), z.number()])
|
|
8
|
+
.describe('Project ID or URL-encoded path (e.g. 123 or "group/project")');
|
|
9
|
+
export const gitlabListBranches = tool({
|
|
10
|
+
description: 'List branches of a GitLab project repository. Use when the user asks to see branches or find a branch name.',
|
|
11
|
+
inputSchema: z.object({
|
|
12
|
+
gitlabToken: tokenField,
|
|
13
|
+
projectId: projectField,
|
|
14
|
+
search: z.string().optional().describe('Search branches by name'),
|
|
15
|
+
perPage: z.number().min(1).max(100).optional().default(20).describe('Results per page (max 100)'),
|
|
16
|
+
page: z.number().min(1).optional().default(1).describe('Page number'),
|
|
17
|
+
}),
|
|
18
|
+
execute: async ({ gitlabToken, projectId, search, perPage = 20, page = 1 }) => {
|
|
19
|
+
return gitlabRequest(gitlabToken, `/projects/${encodeId(projectId)}/repository/branches`, {
|
|
20
|
+
query: { search, per_page: perPage, page },
|
|
21
|
+
});
|
|
22
|
+
},
|
|
23
|
+
});
|
|
24
|
+
export const gitlabListCommits = tool({
|
|
25
|
+
description: 'List commits of a GitLab project repository. Use when the user asks to see commit history or recent changes.',
|
|
26
|
+
inputSchema: z.object({
|
|
27
|
+
gitlabToken: tokenField,
|
|
28
|
+
projectId: projectField,
|
|
29
|
+
refName: z.string().optional().describe('Branch, tag, or commit SHA to list commits from (defaults to the default branch)'),
|
|
30
|
+
perPage: z.number().min(1).max(100).optional().default(20).describe('Results per page (max 100)'),
|
|
31
|
+
page: z.number().min(1).optional().default(1).describe('Page number'),
|
|
32
|
+
}),
|
|
33
|
+
execute: async ({ gitlabToken, projectId, refName, perPage = 20, page = 1 }) => {
|
|
34
|
+
return gitlabRequest(gitlabToken, `/projects/${encodeId(projectId)}/repository/commits`, {
|
|
35
|
+
query: { ref_name: refName, per_page: perPage, page },
|
|
36
|
+
});
|
|
37
|
+
},
|
|
38
|
+
});
|
|
39
|
+
export const gitlabGetFile = tool({
|
|
40
|
+
description: 'Get the content of a file from a GitLab project repository. The file path is URL-encoded automatically. Use when the user asks to read a file from a project.',
|
|
41
|
+
inputSchema: z.object({
|
|
42
|
+
gitlabToken: tokenField,
|
|
43
|
+
projectId: projectField,
|
|
44
|
+
filePath: z.string().describe('Path of the file in the repository, e.g. "README.md" or "src/index.ts"'),
|
|
45
|
+
ref: z.string().optional().default('main').describe('Branch, tag, or commit SHA (defaults to "main")'),
|
|
46
|
+
}),
|
|
47
|
+
execute: async ({ gitlabToken, projectId, filePath, ref = 'main' }) => {
|
|
48
|
+
return gitlabRequest(gitlabToken, `/projects/${encodeId(projectId)}/repository/files/${encodeId(filePath)}`, {
|
|
49
|
+
query: { ref },
|
|
50
|
+
});
|
|
51
|
+
},
|
|
52
|
+
});
|
|
53
|
+
//# sourceMappingURL=repository.js.map
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare const gitlabGetCurrentUser: import("ai").Tool<{
|
|
2
|
+
gitlabToken?: string | undefined;
|
|
3
|
+
}, any>;
|
|
4
|
+
export declare const gitlabListGroups: import("ai").Tool<{
|
|
5
|
+
perPage: number;
|
|
6
|
+
page: number;
|
|
7
|
+
search?: string | undefined;
|
|
8
|
+
owned?: boolean | undefined;
|
|
9
|
+
gitlabToken?: string | undefined;
|
|
10
|
+
}, any>;
|
|
11
|
+
//# sourceMappingURL=users-groups.d.ts.map
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
import { tool } from 'ai';
|
|
3
|
+
import { z } from 'zod';
|
|
4
|
+
import { gitlabRequest } from './client.js';
|
|
5
|
+
const tokenField = z.string().optional().describe('Injected by system; do not provide');
|
|
6
|
+
export const gitlabGetCurrentUser = tool({
|
|
7
|
+
description: 'Get the authenticated GitLab user profile. Use when the user asks who they are logged in as, or to get their username, ID, or email.',
|
|
8
|
+
inputSchema: z.object({
|
|
9
|
+
gitlabToken: tokenField,
|
|
10
|
+
}),
|
|
11
|
+
execute: async ({ gitlabToken }) => {
|
|
12
|
+
return gitlabRequest(gitlabToken, '/user');
|
|
13
|
+
},
|
|
14
|
+
});
|
|
15
|
+
export const gitlabListGroups = tool({
|
|
16
|
+
description: 'List GitLab groups visible to the authenticated user. Use when the user asks to see their groups or namespaces.',
|
|
17
|
+
inputSchema: z.object({
|
|
18
|
+
gitlabToken: tokenField,
|
|
19
|
+
search: z.string().optional().describe('Search groups by name or path'),
|
|
20
|
+
owned: z.boolean().optional().describe('Limit to groups explicitly owned by the user'),
|
|
21
|
+
perPage: z.number().min(1).max(100).optional().default(20).describe('Results per page (max 100)'),
|
|
22
|
+
page: z.number().min(1).optional().default(1).describe('Page number'),
|
|
23
|
+
}),
|
|
24
|
+
execute: async ({ gitlabToken, search, owned, perPage = 20, page = 1 }) => {
|
|
25
|
+
return gitlabRequest(gitlabToken, '/groups', {
|
|
26
|
+
query: { search, owned, per_page: perPage, page },
|
|
27
|
+
});
|
|
28
|
+
},
|
|
29
|
+
});
|
|
30
|
+
//# sourceMappingURL=users-groups.js.map
|
|
@@ -2,10 +2,10 @@ export declare const getRmfReport: import("ai").Tool<{
|
|
|
2
2
|
googleAdsToken: string;
|
|
3
3
|
developerToken: string;
|
|
4
4
|
report: "CUSTOMER" | "CAMPAIGN" | "AD_GROUP_AD" | "KEYWORD" | "SEARCH_TERM" | "DYNAMIC_SEARCH_AD_SEARCH_TERM" | "BIDDING_STRATEGY";
|
|
5
|
-
customerId?: string | undefined;
|
|
6
|
-
loginCustomerId?: string | undefined;
|
|
7
5
|
startDate?: string | undefined;
|
|
8
6
|
endDate?: string | undefined;
|
|
7
|
+
customerId?: string | undefined;
|
|
8
|
+
loginCustomerId?: string | undefined;
|
|
9
9
|
maxRows?: number | undefined;
|
|
10
10
|
optionalMetrics?: string[] | undefined;
|
|
11
11
|
}, {
|
|
@@ -248,10 +248,10 @@ export declare const googleAdsTools: ({
|
|
|
248
248
|
googleAdsToken: string;
|
|
249
249
|
developerToken: string;
|
|
250
250
|
report: "CUSTOMER" | "CAMPAIGN" | "AD_GROUP_AD" | "KEYWORD" | "SEARCH_TERM" | "DYNAMIC_SEARCH_AD_SEARCH_TERM" | "BIDDING_STRATEGY";
|
|
251
|
-
customerId?: string | undefined;
|
|
252
|
-
loginCustomerId?: string | undefined;
|
|
253
251
|
startDate?: string | undefined;
|
|
254
252
|
endDate?: string | undefined;
|
|
253
|
+
customerId?: string | undefined;
|
|
254
|
+
loginCustomerId?: string | undefined;
|
|
255
255
|
maxRows?: number | undefined;
|
|
256
256
|
optionalMetrics?: string[] | undefined;
|
|
257
257
|
}, {
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
const SVG = `<svg width="284px" height="284px" viewBox="-14 0 284 284" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" preserveAspectRatio="xMidYMid">
|
|
2
|
+
<g>
|
|
3
|
+
<path d="M256.003159,247.933017 C256.055907,258.030289 251.77298,267.664804 244.241349,274.390297 C236.709718,281.11579 226.653817,284.285366 216.626905,283.094249 C198.58347,280.424364 185.360959,264.722632 185.800619,246.488035 L185.800619,36.8452103 C185.364944,18.5907614 198.619678,2.88144681 216.687112,0.238996295 C226.704325,-0.933476157 236.743571,2.24455542 244.261279,8.9678962 C251.778988,15.691237 256.053811,25.3147619 256.003159,35.4002282 L256.003159,247.933017 Z" fill="#F9AB00"></path>
|
|
4
|
+
<path d="M35.1010243,213.193238 C54.4867848,213.193238 70.2020487,228.908502 70.2020487,248.294263 C70.2020487,267.680023 54.4867848,283.395287 35.1010243,283.395287 C15.7152639,283.395287 0,267.680023 0,248.294263 C0,228.908502 15.7152639,213.193238 35.1010243,213.193238 Z M127.459466,106.806429 C107.981896,107.874068 92.8698765,124.212107 93.3217628,143.713681 L93.3217628,237.998765 C93.3217628,263.58699 104.580582,279.120548 121.077461,282.431965 C131.434034,284.530959 142.185473,281.860819 150.356699,275.160414 C158.527925,268.460009 163.252393,258.439904 163.222912,247.872809 L163.222912,142.088076 C163.240039,132.641687 159.462041,123.584285 152.737293,116.950107 C146.012546,110.315928 136.904752,106.661084 127.459466,106.806429 L127.459466,106.806429 Z" fill="#E37400"></path>
|
|
5
|
+
</g>
|
|
6
|
+
</svg>`;
|
|
7
|
+
export const GANALYTICS_ICON = {
|
|
8
|
+
kind: 'svg',
|
|
9
|
+
dataUri: `data:image/svg+xml;base64,${Buffer.from(SVG).toString('base64')}`,
|
|
10
|
+
};
|
|
11
|
+
//# sourceMappingURL=icon.js.map
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { defineToolkit, defineTool } from '../../core/define.js';
|
|
2
|
+
import { inferToolScope } from '../../core/scope.js';
|
|
3
|
+
import { GANALYTICS_ICON } from './icon.js';
|
|
4
|
+
import { googleAnalyticsTools } from './tools/index.js';
|
|
5
|
+
export default defineToolkit({
|
|
6
|
+
id: 'google-analytics',
|
|
7
|
+
displayName: 'Google Analytics',
|
|
8
|
+
shortDescription: 'Run GA4 reports, manage audiences, properties, and Measurement Protocol events.',
|
|
9
|
+
category: 'Analytics & Data',
|
|
10
|
+
icon: GANALYTICS_ICON,
|
|
11
|
+
auth: {
|
|
12
|
+
type: 'oauth2',
|
|
13
|
+
tokenField: 'googleAnalyticsToken',
|
|
14
|
+
provider: {
|
|
15
|
+
slug: 'google-analytics',
|
|
16
|
+
env: { clientId: 'GOOGLE_ANALYTICS_CLIENT_ID', clientSecret: 'GOOGLE_ANALYTICS_CLIENT_SECRET' },
|
|
17
|
+
authorizeUrl: 'https://accounts.google.com/o/oauth2/v2/auth',
|
|
18
|
+
tokenUrl: 'https://oauth2.googleapis.com/token',
|
|
19
|
+
scopes: [
|
|
20
|
+
'https://www.googleapis.com/auth/analytics.readonly',
|
|
21
|
+
'https://www.googleapis.com/auth/analytics.edit',
|
|
22
|
+
],
|
|
23
|
+
exchangeStyle: 'form',
|
|
24
|
+
extraAuthParams: { access_type: 'offline', prompt: 'consent' },
|
|
25
|
+
connectDescription: 'Connect Google Analytics for GA4 reports, audiences, properties, and admin.',
|
|
26
|
+
callbackPath: '/api/auth/google-analytics/callback',
|
|
27
|
+
stateCookie: 'google_analytics_oauth_state',
|
|
28
|
+
},
|
|
29
|
+
},
|
|
30
|
+
allowedHosts: [
|
|
31
|
+
'analyticsadmin.googleapis.com',
|
|
32
|
+
'analyticsdata.googleapis.com',
|
|
33
|
+
'www.google-analytics.com',
|
|
34
|
+
],
|
|
35
|
+
tools: googleAnalyticsTools.map((entry) => defineTool({
|
|
36
|
+
name: entry.name,
|
|
37
|
+
description: entry.description,
|
|
38
|
+
tool: entry.tool,
|
|
39
|
+
requiredAuth: entry.requiredAuth,
|
|
40
|
+
scope: entry.scope ?? inferToolScope(entry.name),
|
|
41
|
+
})),
|
|
42
|
+
meta: {
|
|
43
|
+
since: '0.0.8',
|
|
44
|
+
homepage: 'https://analytics.google.com',
|
|
45
|
+
docsUrl: 'https://developers.google.com/analytics',
|
|
46
|
+
},
|
|
47
|
+
});
|
|
48
|
+
//# sourceMappingURL=manifest.js.map
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
export declare const getAccount: import("ai").Tool<{
|
|
2
|
+
name: string;
|
|
3
|
+
googleAnalyticsToken: string;
|
|
4
|
+
}, any>;
|
|
5
|
+
export declare const listAccountsV1Beta: import("ai").Tool<{
|
|
6
|
+
googleAnalyticsToken: string;
|
|
7
|
+
pageToken?: string | undefined;
|
|
8
|
+
pageSize?: number | undefined;
|
|
9
|
+
showDeleted?: boolean | undefined;
|
|
10
|
+
}, any>;
|
|
11
|
+
export declare const listAccountSummaries: import("ai").Tool<{
|
|
12
|
+
googleAnalyticsToken: string;
|
|
13
|
+
pageToken?: string | undefined;
|
|
14
|
+
pageSize?: number | undefined;
|
|
15
|
+
}, any>;
|
|
16
|
+
export declare const provisionAccountTicket: import("ai").Tool<{
|
|
17
|
+
redirectUri: string;
|
|
18
|
+
account: {
|
|
19
|
+
regionCode: string;
|
|
20
|
+
displayName: string;
|
|
21
|
+
};
|
|
22
|
+
googleAnalyticsToken: string;
|
|
23
|
+
}, any>;
|
|
24
|
+
export declare const getProperty: import("ai").Tool<{
|
|
25
|
+
name: string;
|
|
26
|
+
googleAnalyticsToken: string;
|
|
27
|
+
}, any>;
|
|
28
|
+
export declare const listPropertiesFiltered: import("ai").Tool<{
|
|
29
|
+
filter: string;
|
|
30
|
+
googleAnalyticsToken: string;
|
|
31
|
+
pageToken?: string | undefined;
|
|
32
|
+
pageSize?: number | undefined;
|
|
33
|
+
showDeleted?: boolean | undefined;
|
|
34
|
+
}, any>;
|
|
35
|
+
export declare const updateProperty: import("ai").Tool<{
|
|
36
|
+
name: string;
|
|
37
|
+
updateMask: string;
|
|
38
|
+
googleAnalyticsToken: string;
|
|
39
|
+
parent?: string | undefined;
|
|
40
|
+
currencyCode?: string | undefined;
|
|
41
|
+
displayName?: string | undefined;
|
|
42
|
+
timeZone?: string | undefined;
|
|
43
|
+
industryCategory?: string | undefined;
|
|
44
|
+
propertyType?: "PROPERTY_TYPE_UNSPECIFIED" | "PROPERTY_TYPE_ORDINARY" | "PROPERTY_TYPE_SUBPROPERTY" | "PROPERTY_TYPE_ROLLUP" | undefined;
|
|
45
|
+
}, any>;
|
|
46
|
+
export declare const createRollupProperty: import("ai").Tool<{
|
|
47
|
+
account: string;
|
|
48
|
+
googleAnalyticsToken: string;
|
|
49
|
+
displayName: string;
|
|
50
|
+
timeZone: string;
|
|
51
|
+
sourceProperties?: string[] | undefined;
|
|
52
|
+
}, any>;
|
|
53
|
+
export declare const getPropertyQuotasSnapshot: import("ai").Tool<{
|
|
54
|
+
property: string;
|
|
55
|
+
googleAnalyticsToken: string;
|
|
56
|
+
}, any>;
|
|
57
|
+
export declare const getAttributionSettings: import("ai").Tool<{
|
|
58
|
+
name: string;
|
|
59
|
+
googleAnalyticsToken: string;
|
|
60
|
+
}, any>;
|
|
61
|
+
export declare const getDataRetentionSettings: import("ai").Tool<{
|
|
62
|
+
name: string;
|
|
63
|
+
googleAnalyticsToken: string;
|
|
64
|
+
}, any>;
|
|
65
|
+
export declare const getDataSharingSettings: import("ai").Tool<{
|
|
66
|
+
name: string;
|
|
67
|
+
googleAnalyticsToken: string;
|
|
68
|
+
}, any>;
|
|
69
|
+
export declare const getGoogleSignalsSettings: import("ai").Tool<{
|
|
70
|
+
name: string;
|
|
71
|
+
googleAnalyticsToken: string;
|
|
72
|
+
}, any>;
|
|
73
|
+
//# sourceMappingURL=admin.d.ts.map
|