@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,130 @@
|
|
|
1
|
+
export declare const jiraAddUsersToProjectRole: import("ai").Tool<{
|
|
2
|
+
roleId: number;
|
|
3
|
+
projectIdOrKey: string;
|
|
4
|
+
jiraToken?: string | undefined;
|
|
5
|
+
jiraCloudId?: string | undefined;
|
|
6
|
+
groupIds?: string[] | undefined;
|
|
7
|
+
groupNames?: string[] | undefined;
|
|
8
|
+
userAccountIds?: string[] | undefined;
|
|
9
|
+
}, any>;
|
|
10
|
+
export declare const jiraCreateProject: import("ai").Tool<{
|
|
11
|
+
name: string;
|
|
12
|
+
key: string;
|
|
13
|
+
leadAccountId: string;
|
|
14
|
+
projectTypeKey: "business" | "software" | "service_desk";
|
|
15
|
+
projectTemplateKey: string;
|
|
16
|
+
description?: string | undefined;
|
|
17
|
+
url?: string | undefined;
|
|
18
|
+
categoryId?: number | undefined;
|
|
19
|
+
jiraToken?: string | undefined;
|
|
20
|
+
jiraCloudId?: string | undefined;
|
|
21
|
+
additionalProperties?: Record<string, any> | undefined;
|
|
22
|
+
avatarId?: number | undefined;
|
|
23
|
+
assigneeType?: "PROJECT_LEAD" | "UNASSIGNED" | undefined;
|
|
24
|
+
permissionScheme?: number | undefined;
|
|
25
|
+
notificationScheme?: number | undefined;
|
|
26
|
+
issueSecurityScheme?: number | undefined;
|
|
27
|
+
}, any>;
|
|
28
|
+
export declare const jiraCreateVersion: import("ai").Tool<{
|
|
29
|
+
projectId: number;
|
|
30
|
+
name: string;
|
|
31
|
+
description?: string | undefined;
|
|
32
|
+
archived?: boolean | undefined;
|
|
33
|
+
startDate?: string | undefined;
|
|
34
|
+
jiraToken?: string | undefined;
|
|
35
|
+
jiraCloudId?: string | undefined;
|
|
36
|
+
additionalProperties?: Record<string, any> | undefined;
|
|
37
|
+
released?: boolean | undefined;
|
|
38
|
+
releaseDate?: string | undefined;
|
|
39
|
+
}, any>;
|
|
40
|
+
export declare const jiraDeleteVersion: import("ai").Tool<{
|
|
41
|
+
versionId: string;
|
|
42
|
+
jiraToken?: string | undefined;
|
|
43
|
+
jiraCloudId?: string | undefined;
|
|
44
|
+
moveFixIssuesTo?: string | undefined;
|
|
45
|
+
moveAffectedIssuesTo?: string | undefined;
|
|
46
|
+
}, any>;
|
|
47
|
+
export declare const jiraGetAllIssueTypeSchemes: import("ai").Tool<{
|
|
48
|
+
id?: number[] | undefined;
|
|
49
|
+
maxResults?: number | undefined;
|
|
50
|
+
jiraToken?: string | undefined;
|
|
51
|
+
jiraCloudId?: string | undefined;
|
|
52
|
+
startAt?: number | undefined;
|
|
53
|
+
}, any>;
|
|
54
|
+
export declare const jiraGetAllProjects: import("ai").Tool<{
|
|
55
|
+
query?: string | undefined;
|
|
56
|
+
status?: string[] | undefined;
|
|
57
|
+
maxResults?: number | undefined;
|
|
58
|
+
action?: "create" | "view" | "edit" | "browse" | undefined;
|
|
59
|
+
name?: string | undefined;
|
|
60
|
+
properties?: string[] | undefined;
|
|
61
|
+
orderBy?: string | undefined;
|
|
62
|
+
categoryId?: number | undefined;
|
|
63
|
+
expand?: string | undefined;
|
|
64
|
+
jiraToken?: string | undefined;
|
|
65
|
+
jiraCloudId?: string | undefined;
|
|
66
|
+
startAt?: number | undefined;
|
|
67
|
+
}, any>;
|
|
68
|
+
export declare const jiraGetComponents: import("ai").Tool<{
|
|
69
|
+
query?: string | undefined;
|
|
70
|
+
maxResults?: number | undefined;
|
|
71
|
+
orderBy?: "description" | "name" | "-description" | "+description" | "-name" | "+name" | undefined;
|
|
72
|
+
jiraToken?: string | undefined;
|
|
73
|
+
jiraCloudId?: string | undefined;
|
|
74
|
+
startAt?: number | undefined;
|
|
75
|
+
projectIdsOrKeys?: string[] | undefined;
|
|
76
|
+
}, any>;
|
|
77
|
+
export declare const jiraGetProject: import("ai").Tool<{
|
|
78
|
+
projectIdOrKey: string;
|
|
79
|
+
properties?: string | undefined;
|
|
80
|
+
expand?: string | undefined;
|
|
81
|
+
jiraToken?: string | undefined;
|
|
82
|
+
jiraCloudId?: string | undefined;
|
|
83
|
+
}, any>;
|
|
84
|
+
export declare const jiraGetProjectRoles: import("ai").Tool<{
|
|
85
|
+
projectIdOrKey: string;
|
|
86
|
+
jiraToken?: string | undefined;
|
|
87
|
+
jiraCloudId?: string | undefined;
|
|
88
|
+
}, any>;
|
|
89
|
+
export declare const jiraGetProjectTemplates: import("ai").Tool<{
|
|
90
|
+
jiraToken?: string | undefined;
|
|
91
|
+
jiraCloudId?: string | undefined;
|
|
92
|
+
projectTypeKey?: string | undefined;
|
|
93
|
+
}, any>;
|
|
94
|
+
export declare const jiraGetProjectType: import("ai").Tool<{
|
|
95
|
+
projectTypeKey: "business" | "software" | "service_desk" | "product_discovery";
|
|
96
|
+
jiraToken?: string | undefined;
|
|
97
|
+
jiraCloudId?: string | undefined;
|
|
98
|
+
}, any>;
|
|
99
|
+
export declare const jiraGetProjectVersions: import("ai").Tool<{
|
|
100
|
+
projectIdOrKey: string;
|
|
101
|
+
expand?: string | undefined;
|
|
102
|
+
jiraToken?: string | undefined;
|
|
103
|
+
jiraCloudId?: string | undefined;
|
|
104
|
+
}, any>;
|
|
105
|
+
export declare const jiraGetRecentProjects: import("ai").Tool<{
|
|
106
|
+
properties?: string[] | undefined;
|
|
107
|
+
expand?: string | undefined;
|
|
108
|
+
jiraToken?: string | undefined;
|
|
109
|
+
jiraCloudId?: string | undefined;
|
|
110
|
+
}, any>;
|
|
111
|
+
export declare const jiraListAllProjects: import("ai").Tool<{
|
|
112
|
+
properties?: string[] | undefined;
|
|
113
|
+
expand?: string | undefined;
|
|
114
|
+
jiraToken?: string | undefined;
|
|
115
|
+
jiraCloudId?: string | undefined;
|
|
116
|
+
recent?: number | undefined;
|
|
117
|
+
}, any>;
|
|
118
|
+
export declare const jiraListProjectTypes: import("ai").Tool<{
|
|
119
|
+
jiraToken?: string | undefined;
|
|
120
|
+
jiraCloudId?: string | undefined;
|
|
121
|
+
}, any>;
|
|
122
|
+
export declare const jiraRemoveUserFromProjectRole: import("ai").Tool<{
|
|
123
|
+
roleId: number;
|
|
124
|
+
projectIdOrKey: string;
|
|
125
|
+
jiraToken?: string | undefined;
|
|
126
|
+
jiraCloudId?: string | undefined;
|
|
127
|
+
groupName?: string | undefined;
|
|
128
|
+
userAccountId?: string | undefined;
|
|
129
|
+
}, any>;
|
|
130
|
+
//# sourceMappingURL=projects.d.ts.map
|
|
@@ -0,0 +1,263 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
import { tool } from 'ai';
|
|
3
|
+
import { z } from 'zod';
|
|
4
|
+
import { jira } from './client.js';
|
|
5
|
+
const tokenField = z.string().optional().describe('Injected by system; do not provide');
|
|
6
|
+
export const jiraAddUsersToProjectRole = tool({
|
|
7
|
+
description: "This action adds one or more users (and optionally groups) to a specific project role in Jira. Users are identified by their Atlassian account IDs, and roles are identified by their role ID.",
|
|
8
|
+
inputSchema: z.object({
|
|
9
|
+
jiraToken: tokenField,
|
|
10
|
+
jiraCloudId: z.string().optional().describe('Optional Jira Cloud site ID. If omitted, your first accessible site is used automatically.'),
|
|
11
|
+
roleId: z.number().int().describe("The ID of the project role to add users to. Use get_project_roles action to find available role IDs."),
|
|
12
|
+
groupIds: z.array(z.string()).optional().describe("Optional list of group IDs to add to the project role. Mutually exclusive with group_names (Jira's ActorsMap rejects sending both)."),
|
|
13
|
+
groupNames: z.array(z.string()).optional().describe("Optional list of group names to add to the project role. Mutually exclusive with group_ids (Jira's ActorsMap rejects sending both)."),
|
|
14
|
+
userAccountIds: z.array(z.string()).optional().describe("List of Atlassian account IDs of users to add to the project role. Must be Atlassian account IDs (alphanumeric strings), not email addresses or display names; use JIRA_FIND_USERS to resolve account IDs first. Optional, but at least one of user_account_ids, group_names, or group_ids must be provided."),
|
|
15
|
+
projectIdOrKey: z.string().describe("The project ID (numeric) or project key (e.g., 'PROJ') of the project."),
|
|
16
|
+
}),
|
|
17
|
+
execute: async ({ jiraToken, jiraCloudId, roleId, groupIds, groupNames, userAccountIds, projectIdOrKey }) => {
|
|
18
|
+
const queryParams = undefined;
|
|
19
|
+
const body = { user: userAccountIds, group: groupNames, groupId: groupIds };
|
|
20
|
+
return jira(jiraToken, { cloudId: jiraCloudId, api: 'api/3', path: `/project/${encodeURIComponent(projectIdOrKey)}/role/${encodeURIComponent(roleId)}`, method: 'POST', query: queryParams, body });
|
|
21
|
+
},
|
|
22
|
+
});
|
|
23
|
+
export const jiraCreateProject = tool({
|
|
24
|
+
description: "This action creates a new Jira project with the necessary configurations. It requires information such as the project key, name, type, and template to successfully set up a project in Jira.",
|
|
25
|
+
inputSchema: z.object({
|
|
26
|
+
jiraToken: tokenField,
|
|
27
|
+
jiraCloudId: z.string().optional().describe('Optional Jira Cloud site ID. If omitted, your first accessible site is used automatically.'),
|
|
28
|
+
key: z.string().max(10).describe("Unique key for the project. Must be unique across all Jira projects. Must be uppercase letters only, no spaces or special characters."),
|
|
29
|
+
url: z.string().optional().describe("Optional URL for the project, like a Confluence space link or external website."),
|
|
30
|
+
name: z.string().describe("Human-readable name for the project."),
|
|
31
|
+
avatarId: z.number().int().optional().describe("Optional ID of an existing avatar for the project."),
|
|
32
|
+
categoryId: z.number().int().optional().describe("Optional ID of an existing project category."),
|
|
33
|
+
description: z.string().optional().describe("Optional detailed textual description of the project."),
|
|
34
|
+
assigneeType: z.enum(["PROJECT_LEAD", "UNASSIGNED"]).optional().describe("Default assignee for new issues: 'PROJECT_LEAD' (assigns to project lead) or 'UNASSIGNED' (issues remain unassigned)."),
|
|
35
|
+
leadAccountId: z.string().describe("Atlassian Account ID (not username or email) of the project lead. Must be a valid account ID from your Jira instance, typically in format like '712020:xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx'."),
|
|
36
|
+
projectTypeKey: z.enum(["business", "software", "service_desk"]).describe("Type of project. Must match the template prefix: 'business' for jira-core-project-templates, 'software' for greenhopper templates, 'service_desk' for servicedesk templates."),
|
|
37
|
+
permissionScheme: z.number().int().optional().describe("Optional ID of an existing permission scheme that is accessible in your Jira instance. The scheme ID must exist and you must have permission to use it. If invalid or inaccessible, project creation will fail."),
|
|
38
|
+
notificationScheme: z.number().int().optional().describe("Optional ID of an existing notification scheme that is accessible in your Jira instance. The scheme ID must exist and you must have permission to use it. If invalid or inaccessible, project creation will fail."),
|
|
39
|
+
projectTemplateKey: z.string().describe("Key of the project template. MUST be compatible with project_type_key. Valid combinations: For 'business': 'com.atlassian.jira-core-project-templates:jira-core-project-management', 'com.atlassian.jira-core-project-templates:jira-core-simplified-process-control'. For 'software': 'com.pyxis.greenhopper.jira:gh-simplified-agility-kanban', 'com.pyxis.greenhopper.jira:gh-simplified-agility-scrum', 'com.pyxis.greenhopper.jira:gh-simplified-scrum-classic'. For 'service_desk': 'com.atlassian.servicedesk:simplified-it-service-desk', 'com.atlassian.servicedesk:simplified-internal-service-desk'."),
|
|
40
|
+
additionalProperties: z.record(z.any()).optional().describe("Additional properties to include in the project creation request. Use this for any extra fields supported by the Jira API that are not covered by the standard parameters. Provide as a dictionary with field names and their values (using camelCase for field names as expected by the Jira API). IMPORTANT: The scheme fields (fieldConfigurationScheme, workflowScheme, issueTypeScreenScheme, issueTypeScheme) cannot be used when projectTemplateKey is provided - they are mutually exclusive. If you include these fields alongside a project template, they will be automatically removed. Note: The Jira API may ignore unsupported fields."),
|
|
41
|
+
issueSecurityScheme: z.number().int().optional().describe("Optional ID of an existing issue security scheme that is accessible in your Jira instance. The scheme ID must exist and you must have permission to use it. If invalid or inaccessible, project creation will fail."),
|
|
42
|
+
}),
|
|
43
|
+
execute: async ({ jiraToken, jiraCloudId, key, url, name, avatarId, categoryId, description, assigneeType, leadAccountId, projectTypeKey, permissionScheme, notificationScheme, projectTemplateKey, additionalProperties, issueSecurityScheme }) => {
|
|
44
|
+
const queryParams = undefined;
|
|
45
|
+
const body = { key: key, name: name, projectTypeKey: projectTypeKey, projectTemplateKey: projectTemplateKey, leadAccountId: leadAccountId, url: url, description: description, assigneeType: assigneeType, avatarId: avatarId, categoryId: categoryId, permissionScheme: permissionScheme, notificationScheme: notificationScheme, issueSecurityScheme: issueSecurityScheme };
|
|
46
|
+
if (additionalProperties && typeof additionalProperties === "object")
|
|
47
|
+
Object.assign(body, additionalProperties);
|
|
48
|
+
return jira(jiraToken, { cloudId: jiraCloudId, api: 'api/3', path: `/project`, method: 'POST', query: queryParams, body });
|
|
49
|
+
},
|
|
50
|
+
});
|
|
51
|
+
export const jiraCreateVersion = tool({
|
|
52
|
+
description: "This action creates a new version within a specified Jira project, allowing users to manage project milestones effectively. It includes attributes such as name, description, and release dates that provide context to the version being created.",
|
|
53
|
+
inputSchema: z.object({
|
|
54
|
+
jiraToken: tokenField,
|
|
55
|
+
jiraCloudId: z.string().optional().describe('Optional Jira Cloud site ID. If omitted, your first accessible site is used automatically.'),
|
|
56
|
+
name: z.string().describe("Name for the new version. It is recommended that version names be unique within a project."),
|
|
57
|
+
archived: z.boolean().optional().describe("Indicates if the version is marked as archived."),
|
|
58
|
+
released: z.boolean().optional().describe("Indicates if the version is marked as released."),
|
|
59
|
+
projectId: z.number().int().describe("Numeric ID of the Jira project to which this version will be added. The project must exist."),
|
|
60
|
+
startDate: z.string().optional().describe("Start date for work on the version (YYYY-MM-DD format)."),
|
|
61
|
+
description: z.string().optional().describe("Textual description for the version, providing more context about its purpose or content."),
|
|
62
|
+
releaseDate: z.string().optional().describe("Release date for the version (YYYY-MM-DD format). Relevant if the version is marked as released or has a planned release."),
|
|
63
|
+
additionalProperties: z.record(z.any()).optional().describe("Additional properties to include in the version creation request. Use this for any extra fields supported by the Jira API that are not covered by the standard parameters. Provide as a dictionary with field names and their values. Note: Jira Cloud has strict schema validation and may reject unknown properties with a 400 error. This field is primarily useful for Jira Server/Data Center deployments or future API additions. Use with caution."),
|
|
64
|
+
}),
|
|
65
|
+
execute: async ({ jiraToken, jiraCloudId, name, archived, released, projectId, startDate, description, releaseDate, additionalProperties }) => {
|
|
66
|
+
const queryParams = undefined;
|
|
67
|
+
const body = { name: name, projectId: projectId, description: description, released: released, archived: archived, startDate: startDate, releaseDate: releaseDate };
|
|
68
|
+
if (additionalProperties && typeof additionalProperties === "object")
|
|
69
|
+
Object.assign(body, additionalProperties);
|
|
70
|
+
return jira(jiraToken, { cloudId: jiraCloudId, api: 'api/3', path: `/version`, method: 'POST', query: queryParams, body });
|
|
71
|
+
},
|
|
72
|
+
});
|
|
73
|
+
export const jiraDeleteVersion = tool({
|
|
74
|
+
description: "This action deletes a specified version in Jira. It can also optionally move issues associated with the deleted version to another specified version.",
|
|
75
|
+
inputSchema: z.object({
|
|
76
|
+
jiraToken: tokenField,
|
|
77
|
+
jiraCloudId: z.string().optional().describe('Optional Jira Cloud site ID. If omitted, your first accessible site is used automatically.'),
|
|
78
|
+
versionId: z.string().describe("The unique identifier of the version to be deleted."),
|
|
79
|
+
moveFixIssuesTo: z.string().optional().describe("The ID of an alternative version to which issues with the deleted version as their fix version will be moved. If unspecified or null, these issues will remain unassigned from a fix version."),
|
|
80
|
+
moveAffectedIssuesTo: z.string().optional().describe("The ID of an alternative version to which issues with the deleted version as their affected version will be moved. If unspecified or null, these issues will remain unassigned from an affected version."),
|
|
81
|
+
}),
|
|
82
|
+
execute: async ({ jiraToken, jiraCloudId, versionId, moveFixIssuesTo, moveAffectedIssuesTo }) => {
|
|
83
|
+
const queryParams = { moveFixIssuesTo: moveFixIssuesTo, moveAffectedIssuesTo: moveAffectedIssuesTo };
|
|
84
|
+
return jira(jiraToken, { cloudId: jiraCloudId, api: 'api/3', path: `/version/${encodeURIComponent(versionId)}`, method: 'DELETE', query: queryParams });
|
|
85
|
+
},
|
|
86
|
+
});
|
|
87
|
+
export const jiraGetAllIssueTypeSchemes = tool({
|
|
88
|
+
description: "This action retrieves a list of all issue type schemes from Jira. It allows for optional filtering based on specific IDs and supports pagination for large sets of data.",
|
|
89
|
+
inputSchema: z.object({
|
|
90
|
+
jiraToken: tokenField,
|
|
91
|
+
jiraCloudId: z.string().optional().describe('Optional Jira Cloud site ID. If omitted, your first accessible site is used automatically.'),
|
|
92
|
+
id: z.array(z.number().int()).optional().describe("The list of issue type scheme IDs to filter results. Returns only schemes with these IDs."),
|
|
93
|
+
startAt: z.number().int().optional().describe("The index of the first item to return in a page of results (page offset). Default is 0."),
|
|
94
|
+
maxResults: z.number().int().optional().describe("The maximum number of items to return per page. Default is 50, maximum is 100."),
|
|
95
|
+
}),
|
|
96
|
+
execute: async ({ jiraToken, jiraCloudId, id, startAt, maxResults }) => {
|
|
97
|
+
const queryParams = { startAt: startAt, maxResults: maxResults, id: id };
|
|
98
|
+
return jira(jiraToken, { cloudId: jiraCloudId, api: 'api/3', path: `/issuetypescheme`, method: 'GET', query: queryParams });
|
|
99
|
+
},
|
|
100
|
+
});
|
|
101
|
+
export const jiraGetAllProjects = tool({
|
|
102
|
+
description: "Retrieves a list of all projects that the user has visibility over. This action allows filtering, sorting, and pagination of project results based on specified criteria.",
|
|
103
|
+
inputSchema: z.object({
|
|
104
|
+
jiraToken: tokenField,
|
|
105
|
+
jiraCloudId: z.string().optional().describe('Optional Jira Cloud site ID. If omitted, your first accessible site is used automatically.'),
|
|
106
|
+
name: z.string().optional().describe("DEPRECATED: Use 'query' parameter instead. The project name (or part of it) to filter the results. This will be mapped to the 'query' parameter."),
|
|
107
|
+
query: z.string().optional().describe("Filter the results using a query string. Projects with a name or key that contains the query string are returned. The search is case-insensitive. May return multiple partial matches — verify the correct project by exact name or key before using the result. Use the returned project ID or key to pass to tools like JIRA_GET_PROJECT that require a stable identifier."),
|
|
108
|
+
action: z.enum(["view", "browse", "edit", "create"]).optional().describe("Action types for filtering projects by user permissions."),
|
|
109
|
+
expand: z.string().optional().describe("A comma-separated list of entities to expand in the response for additional project details. Valid options include: 'description' (to include the project description), 'issueTypes' (to include all issue types associated with the project), 'lead' (to include information about the project lead), and 'projectKeys' (to include all project keys associated with the project)."),
|
|
110
|
+
status: z.array(z.string()).optional().describe("EXPERIMENTAL. Filter results by project status. Valid values: 'live', 'archived', 'deleted'."),
|
|
111
|
+
orderBy: z.string().optional().describe("Order the results by a field. Valid values: 'category', 'issueCount', 'key', 'lastIssueUpdatedTime', 'name', 'owner', 'archivedDate', 'deletedDate'. Prefix with '-' for descending order."),
|
|
112
|
+
startAt: z.number().int().optional().describe("The index of the first item to return in a page of results (page offset). The base index is 0."),
|
|
113
|
+
categoryId: z.number().int().optional().describe("The ID of the project category to filter by."),
|
|
114
|
+
maxResults: z.number().int().optional().describe("The maximum number of projects to return per page. Maximum allowed value is 100."),
|
|
115
|
+
properties: z.array(z.string()).optional().describe("A list of project property keys to include in the response for each project, allowing retrieval of custom project entity properties. For example, if a project has a property with key 'com.example.property', including this key here as part of the list will return its value. Provide as a list of strings, e.g., '['property1', 'property2']'."),
|
|
116
|
+
}),
|
|
117
|
+
execute: async ({ jiraToken, jiraCloudId, name, query, action, expand, status, orderBy, startAt, categoryId, maxResults, properties }) => {
|
|
118
|
+
const queryParams = { query: query, action: action, expand: expand, status: status, orderBy: orderBy, startAt: startAt, categoryId: categoryId, maxResults: maxResults, properties: properties };
|
|
119
|
+
const body = { name: name };
|
|
120
|
+
return jira(jiraToken, { cloudId: jiraCloudId, api: 'api/3', path: `/project/search`, method: 'GET', query: queryParams, body });
|
|
121
|
+
},
|
|
122
|
+
});
|
|
123
|
+
export const jiraGetComponents = tool({
|
|
124
|
+
description: "Tool to retrieve components from Jira projects with search and filtering. Use when you need to list or find components across projects, optionally filtered by project IDs/keys or search query.",
|
|
125
|
+
inputSchema: z.object({
|
|
126
|
+
jiraToken: tokenField,
|
|
127
|
+
jiraCloudId: z.string().optional().describe('Optional Jira Cloud site ID. If omitted, your first accessible site is used automatically.'),
|
|
128
|
+
query: z.string().optional().describe("Filter the results using a literal string. Components with a matching name or description are returned (case insensitive)."),
|
|
129
|
+
orderBy: z.enum(["description", "-description", "+description", "name", "-name", "+name"]).optional().describe("Enum for orderBy parameter values."),
|
|
130
|
+
startAt: z.number().int().min(0).optional().describe("The index of the first item to return in a page of results (page offset). Used for pagination."),
|
|
131
|
+
maxResults: z.number().int().min(1).optional().describe("The maximum number of items to return per page. Used for pagination."),
|
|
132
|
+
projectIdsOrKeys: z.array(z.string()).optional().describe("The project IDs and/or project keys (case sensitive) to filter components by. Returns components from all projects if not specified."),
|
|
133
|
+
}),
|
|
134
|
+
execute: async ({ jiraToken, jiraCloudId, query, orderBy, startAt, maxResults, projectIdsOrKeys }) => {
|
|
135
|
+
const queryParams = { projectIdsOrKeys: projectIdsOrKeys, query: query, orderBy: orderBy, startAt: startAt, maxResults: maxResults };
|
|
136
|
+
return jira(jiraToken, { cloudId: jiraCloudId, api: 'api/3', path: `/component`, method: 'GET', query: queryParams });
|
|
137
|
+
},
|
|
138
|
+
});
|
|
139
|
+
export const jiraGetProject = tool({
|
|
140
|
+
description: "This action retrieves detailed information about a specific Jira project using its project ID or key. It returns project metadata including name, key, type, and optional expanded fields.",
|
|
141
|
+
inputSchema: z.object({
|
|
142
|
+
jiraToken: tokenField,
|
|
143
|
+
jiraCloudId: z.string().optional().describe('Optional Jira Cloud site ID. If omitted, your first accessible site is used automatically.'),
|
|
144
|
+
expand: z.string().optional().describe("Use expand to include additional information about project in the response. Available options: description, issueTypes, lead, projectKeys, issueTypeHierarchy."),
|
|
145
|
+
properties: z.string().optional().describe("A comma-separated list of project properties to return for the project. Maximum 100 keys can be specified."),
|
|
146
|
+
projectIdOrKey: z.string().describe("The project ID (numeric) or project key (e.g., 'PROJ') of the project to retrieve. Prefer the numeric ID for durable references, as project keys are mutable and can be renamed."),
|
|
147
|
+
}),
|
|
148
|
+
execute: async ({ jiraToken, jiraCloudId, expand, properties, projectIdOrKey }) => {
|
|
149
|
+
const queryParams = { expand: expand, properties: properties };
|
|
150
|
+
return jira(jiraToken, { cloudId: jiraCloudId, api: 'api/3', path: `/project/${encodeURIComponent(projectIdOrKey)}`, method: 'GET', query: queryParams });
|
|
151
|
+
},
|
|
152
|
+
});
|
|
153
|
+
export const jiraGetProjectRoles = tool({
|
|
154
|
+
description: "This action retrieves all available roles for a specific Jira project. It returns role IDs, names, and descriptions which are needed when adding or removing users from project roles.",
|
|
155
|
+
inputSchema: z.object({
|
|
156
|
+
jiraToken: tokenField,
|
|
157
|
+
jiraCloudId: z.string().optional().describe('Optional Jira Cloud site ID. If omitted, your first accessible site is used automatically.'),
|
|
158
|
+
projectIdOrKey: z.string().describe("The project ID (numeric) or project key (e.g., 'PROJ') of the project."),
|
|
159
|
+
}),
|
|
160
|
+
execute: async ({ jiraToken, jiraCloudId, projectIdOrKey }) => {
|
|
161
|
+
const map = await jira(jiraToken, { cloudId: jiraCloudId, path: `/project/${encodeURIComponent(projectIdOrKey)}/role` });
|
|
162
|
+
if (map?.error)
|
|
163
|
+
return map;
|
|
164
|
+
const entries = Object.entries(map);
|
|
165
|
+
const roles = await Promise.all(entries.map(async ([name, url]) => {
|
|
166
|
+
const id = String(url).split("/").pop();
|
|
167
|
+
const detail = await jira(jiraToken, { cloudId: jiraCloudId, path: `/project/${encodeURIComponent(projectIdOrKey)}/role/${id}` });
|
|
168
|
+
return { id: Number(id), name, description: detail?.description ?? null, actors: detail?.actors ?? [] };
|
|
169
|
+
}));
|
|
170
|
+
return { roles };
|
|
171
|
+
},
|
|
172
|
+
});
|
|
173
|
+
export const jiraGetProjectTemplates = tool({
|
|
174
|
+
description: "Retrieves available Jira project templates for creating projects. Returns template keys that can be used with the Create Project action. Use this action when you need to discover valid project template keys before creating a project.",
|
|
175
|
+
inputSchema: z.object({
|
|
176
|
+
jiraToken: tokenField,
|
|
177
|
+
jiraCloudId: z.string().optional().describe('Optional Jira Cloud site ID. If omitted, your first accessible site is used automatically.'),
|
|
178
|
+
projectTypeKey: z.string().optional().describe("Filter templates by project type key. Valid values: 'software', 'business', 'service_desk', 'product_discovery'. If not provided, returns templates for all project types."),
|
|
179
|
+
}),
|
|
180
|
+
execute: async ({ jiraToken, jiraCloudId, projectTypeKey }) => {
|
|
181
|
+
const queryParams = { projectTypeKey: projectTypeKey };
|
|
182
|
+
return jira(jiraToken, { cloudId: jiraCloudId, api: 'api/3', path: `/projectTemplate`, method: 'GET', query: queryParams });
|
|
183
|
+
},
|
|
184
|
+
});
|
|
185
|
+
export const jiraGetProjectType = tool({
|
|
186
|
+
description: "Retrieves detailed information about a specific Jira project type using its key identifier. Returns metadata including the project type's key, formatted name, description key, icon, and color.",
|
|
187
|
+
inputSchema: z.object({
|
|
188
|
+
jiraToken: tokenField,
|
|
189
|
+
jiraCloudId: z.string().optional().describe('Optional Jira Cloud site ID. If omitted, your first accessible site is used automatically.'),
|
|
190
|
+
projectTypeKey: z.enum(["software", "service_desk", "business", "product_discovery"]).describe("The key of the project type to retrieve. Valid values are: software (for software projects), service_desk (for service desk projects), business (for business projects), or product_discovery (for product discovery projects)."),
|
|
191
|
+
}),
|
|
192
|
+
execute: async ({ jiraToken, jiraCloudId, projectTypeKey }) => {
|
|
193
|
+
const queryParams = undefined;
|
|
194
|
+
return jira(jiraToken, { cloudId: jiraCloudId, api: 'api/3', path: `/project/type/${encodeURIComponent(projectTypeKey)}`, method: 'GET', query: queryParams });
|
|
195
|
+
},
|
|
196
|
+
});
|
|
197
|
+
export const jiraGetProjectVersions = tool({
|
|
198
|
+
description: "This action retrieves all versions associated with a specific Jira project. It can include additional properties for each version based on the request parameters.",
|
|
199
|
+
inputSchema: z.object({
|
|
200
|
+
jiraToken: tokenField,
|
|
201
|
+
jiraCloudId: z.string().optional().describe('Optional Jira Cloud site ID. If omitted, your first accessible site is used automatically.'),
|
|
202
|
+
expand: z.string().optional().describe("Comma-separated string of properties to expand for each version (e.g., 'operations', 'issuesstatus')."),
|
|
203
|
+
projectIdOrKey: z.string().describe("The ID or unique key of the Jira project for which versions are to be retrieved. For example, '10000' or 'PROJECTKEY'."),
|
|
204
|
+
}),
|
|
205
|
+
execute: async ({ jiraToken, jiraCloudId, expand, projectIdOrKey }) => {
|
|
206
|
+
const queryParams = { expand: expand };
|
|
207
|
+
return jira(jiraToken, { cloudId: jiraCloudId, api: 'api/3', path: `/project/${encodeURIComponent(projectIdOrKey)}/version`, method: 'GET', query: queryParams });
|
|
208
|
+
},
|
|
209
|
+
});
|
|
210
|
+
export const jiraGetRecentProjects = tool({
|
|
211
|
+
description: "This action retrieves a list of Jira projects that were recently accessed by the authenticated user. Use this to quickly find projects the user has been working with recently.",
|
|
212
|
+
inputSchema: z.object({
|
|
213
|
+
jiraToken: tokenField,
|
|
214
|
+
jiraCloudId: z.string().optional().describe('Optional Jira Cloud site ID. If omitted, your first accessible site is used automatically.'),
|
|
215
|
+
expand: z.string().optional().describe("Use expand to include additional information in the response. This parameter accepts a comma-separated list. Expanded options include: description (returns the project description), projectKeys (returns all project keys associated with a project), lead (returns information about the project lead), issueTypes (returns all issue types associated with the project), url (returns the URL associated with the project), permissions (returns the permissions associated with the project), insight (EXPERIMENTAL - returns the insight details of total issue count and last issue update time for the project), * (returns the project with all available expand options)."),
|
|
216
|
+
properties: z.array(z.string()).optional().describe("EXPERIMENTAL. A list of project properties to return for the project. This parameter accepts a comma-separated list. Invalid property names are ignored."),
|
|
217
|
+
}),
|
|
218
|
+
execute: async ({ jiraToken, jiraCloudId, expand, properties }) => {
|
|
219
|
+
const queryParams = { expand: expand, properties: properties };
|
|
220
|
+
return jira(jiraToken, { cloudId: jiraCloudId, api: 'api/3', path: `/project/recent`, method: 'GET', query: queryParams });
|
|
221
|
+
},
|
|
222
|
+
});
|
|
223
|
+
export const jiraListAllProjects = tool({
|
|
224
|
+
description: "DEPRECATED: Use JIRA_GET_ALL_PROJECTS instead. Tool to list all projects accessible to the user. Wraps the deprecated GET /project endpoint; prefer the paginated JIRA_GET_ALL_PROJECTS (GET /project/search).",
|
|
225
|
+
inputSchema: z.object({
|
|
226
|
+
jiraToken: tokenField,
|
|
227
|
+
jiraCloudId: z.string().optional().describe('Optional Jira Cloud site ID. If omitted, your first accessible site is used automatically.'),
|
|
228
|
+
expand: z.string().optional().describe("Use expand to include additional information in the response. This parameter accepts a comma-separated list. Expanded options include: 'description' (Returns the project description), 'issueTypes' (Returns all issue types associated with the project), 'lead' (Returns information about the project lead), 'projectKeys' (Returns all project keys associated with the project)."),
|
|
229
|
+
recent: z.number().int().min(1).max(20).optional().describe("Returns the user's most recently accessed projects. You may specify the number of results to return up to a maximum of 20. If access is anonymous, then the recently accessed projects are based on the current HTTP session."),
|
|
230
|
+
properties: z.array(z.string()).optional().describe("A list of project properties to return for the project. This parameter accepts a comma-separated list."),
|
|
231
|
+
}),
|
|
232
|
+
execute: async ({ jiraToken, jiraCloudId, expand, recent, properties }) => {
|
|
233
|
+
const queryParams = { expand: expand, recent: recent, properties: properties };
|
|
234
|
+
return jira(jiraToken, { cloudId: jiraCloudId, api: 'api/3', path: `/project`, method: 'GET', query: queryParams });
|
|
235
|
+
},
|
|
236
|
+
});
|
|
237
|
+
export const jiraListProjectTypes = tool({
|
|
238
|
+
description: "Retrieves a list of all project types available in your Jira instance. Returns details about each project type including keys, formatted names, descriptions, icons, and colors.",
|
|
239
|
+
inputSchema: z.object({
|
|
240
|
+
jiraToken: tokenField,
|
|
241
|
+
jiraCloudId: z.string().optional().describe('Optional Jira Cloud site ID. If omitted, your first accessible site is used automatically.'),
|
|
242
|
+
}),
|
|
243
|
+
execute: async ({ jiraToken, jiraCloudId }) => {
|
|
244
|
+
const queryParams = undefined;
|
|
245
|
+
return jira(jiraToken, { cloudId: jiraCloudId, api: 'api/3', path: `/project/type`, method: 'GET', query: queryParams });
|
|
246
|
+
},
|
|
247
|
+
});
|
|
248
|
+
export const jiraRemoveUserFromProjectRole = tool({
|
|
249
|
+
description: "This action removes a user or group from a specific project role in Jira. Either a user account ID or group name must be provided.",
|
|
250
|
+
inputSchema: z.object({
|
|
251
|
+
jiraToken: tokenField,
|
|
252
|
+
jiraCloudId: z.string().optional().describe('Optional Jira Cloud site ID. If omitted, your first accessible site is used automatically.'),
|
|
253
|
+
roleId: z.number().int().describe("The ID of the project role to remove the user from. Use get_project_roles action to find available role IDs."),
|
|
254
|
+
groupName: z.string().optional().describe("The name of the group to remove from the project role. Either user_account_id or group_name must be provided."),
|
|
255
|
+
userAccountId: z.string().optional().describe("The Atlassian account ID of the user to remove from the project role. Either user_account_id or group_name must be provided."),
|
|
256
|
+
projectIdOrKey: z.string().describe("The project ID (numeric) or project key (e.g., 'PROJ') of the project."),
|
|
257
|
+
}),
|
|
258
|
+
execute: async ({ jiraToken, jiraCloudId, roleId, groupName, userAccountId, projectIdOrKey }) => {
|
|
259
|
+
const queryParams = { user: userAccountId, group: groupName };
|
|
260
|
+
return jira(jiraToken, { cloudId: jiraCloudId, api: 'api/3', path: `/project/${encodeURIComponent(projectIdOrKey)}/role/${encodeURIComponent(roleId)}`, method: 'DELETE', query: queryParams });
|
|
261
|
+
},
|
|
262
|
+
});
|
|
263
|
+
//# sourceMappingURL=projects.js.map
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
export declare const jiraAnalyseExpression: import("ai").Tool<{
|
|
2
|
+
expressions: string[];
|
|
3
|
+
jiraToken?: string | undefined;
|
|
4
|
+
jiraCloudId?: string | undefined;
|
|
5
|
+
check?: "type" | "syntax" | "complexity" | undefined;
|
|
6
|
+
contextVariables?: Record<string, any> | undefined;
|
|
7
|
+
}, any>;
|
|
8
|
+
export declare const jiraCreateJqlAutocompletedata: import("ai").Tool<{
|
|
9
|
+
jiraToken?: string | undefined;
|
|
10
|
+
jiraCloudId?: string | undefined;
|
|
11
|
+
projectIds?: string[] | undefined;
|
|
12
|
+
includeCollapsedFields?: boolean | undefined;
|
|
13
|
+
}, any>;
|
|
14
|
+
export declare const jiraEvaluateJiraExpression: import("ai").Tool<{
|
|
15
|
+
expression: string;
|
|
16
|
+
context?: Record<string, any> | undefined;
|
|
17
|
+
expand?: string | undefined;
|
|
18
|
+
jiraToken?: string | undefined;
|
|
19
|
+
jiraCloudId?: string | undefined;
|
|
20
|
+
}, any>;
|
|
21
|
+
export declare const jiraGetJqlAutocompletedata: import("ai").Tool<{
|
|
22
|
+
jiraToken?: string | undefined;
|
|
23
|
+
jiraCloudId?: string | undefined;
|
|
24
|
+
}, any>;
|
|
25
|
+
export declare const jiraGetJqlAutocompletedataSuggestions: import("ai").Tool<{
|
|
26
|
+
jiraToken?: string | undefined;
|
|
27
|
+
jiraCloudId?: string | undefined;
|
|
28
|
+
fieldName?: string | undefined;
|
|
29
|
+
fieldValue?: string | undefined;
|
|
30
|
+
predicateName?: string | undefined;
|
|
31
|
+
predicateValue?: string | undefined;
|
|
32
|
+
}, any>;
|
|
33
|
+
export declare const jiraParseJqlQueries: import("ai").Tool<{
|
|
34
|
+
queries: string[];
|
|
35
|
+
validation?: "none" | "strict" | "warn" | undefined;
|
|
36
|
+
jiraToken?: string | undefined;
|
|
37
|
+
jiraCloudId?: string | undefined;
|
|
38
|
+
}, any>;
|
|
39
|
+
export declare const jiraSearchApproximateCount: import("ai").Tool<{
|
|
40
|
+
jql: string;
|
|
41
|
+
jiraToken?: string | undefined;
|
|
42
|
+
jiraCloudId?: string | undefined;
|
|
43
|
+
}, any>;
|
|
44
|
+
export declare const jiraSearchForIssuesUsingJqlGet: import("ai").Tool<{
|
|
45
|
+
maxResults?: number | undefined;
|
|
46
|
+
nextPageToken?: string | undefined;
|
|
47
|
+
properties?: string[] | undefined;
|
|
48
|
+
fields?: string[] | undefined;
|
|
49
|
+
expand?: string | undefined;
|
|
50
|
+
jiraToken?: string | undefined;
|
|
51
|
+
jiraCloudId?: string | undefined;
|
|
52
|
+
fieldsByKeys?: boolean | undefined;
|
|
53
|
+
jql?: string | undefined;
|
|
54
|
+
failFast?: boolean | undefined;
|
|
55
|
+
reconcileIssues?: number[] | undefined;
|
|
56
|
+
}, any>;
|
|
57
|
+
export declare const jiraSearchForIssuesUsingJqlPost: import("ai").Tool<{
|
|
58
|
+
maxResults?: number | undefined;
|
|
59
|
+
nextPageToken?: string | undefined;
|
|
60
|
+
properties?: string[] | undefined;
|
|
61
|
+
fields?: string[] | undefined;
|
|
62
|
+
expand?: string | undefined;
|
|
63
|
+
jiraToken?: string | undefined;
|
|
64
|
+
jiraCloudId?: string | undefined;
|
|
65
|
+
fieldsByKeys?: boolean | undefined;
|
|
66
|
+
jql?: string | undefined;
|
|
67
|
+
reconcileIssues?: number[] | undefined;
|
|
68
|
+
}, any>;
|
|
69
|
+
export declare const jiraSearchIssues: import("ai").Tool<{
|
|
70
|
+
maxResults?: number | undefined;
|
|
71
|
+
nextPageToken?: string | undefined;
|
|
72
|
+
labels?: string[] | undefined;
|
|
73
|
+
assignee?: string | undefined;
|
|
74
|
+
fields?: string[] | undefined;
|
|
75
|
+
projectKey?: string | undefined;
|
|
76
|
+
jiraToken?: string | undefined;
|
|
77
|
+
jiraCloudId?: string | undefined;
|
|
78
|
+
sprintIdOrName?: string | undefined;
|
|
79
|
+
priorityIdOrName?: string | undefined;
|
|
80
|
+
jql?: string | undefined;
|
|
81
|
+
textSearch?: string | undefined;
|
|
82
|
+
createdAfter?: string | undefined;
|
|
83
|
+
updatedAfter?: string | undefined;
|
|
84
|
+
createdBefore?: string | undefined;
|
|
85
|
+
updatedBefore?: string | undefined;
|
|
86
|
+
statusIdOrName?: string | undefined;
|
|
87
|
+
preservedOrderBy?: string | undefined;
|
|
88
|
+
issueTypeIdOrName?: string | undefined;
|
|
89
|
+
}, any>;
|
|
90
|
+
//# sourceMappingURL=search.d.ts.map
|