backlog-mcp-server 0.15.0 → 0.15.1
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.ja.md +4 -2
- package/README.md +4 -2
- package/build/auth/backlogAuthContext.d.ts +2 -0
- package/build/auth/backlogOAuthClient.d.ts +10 -0
- package/build/auth/backlogOAuthConfig.d.ts +9 -0
- package/build/auth/bearerAuthMiddleware.d.ts +4 -0
- package/build/auth/oauthRoutes.d.ts +4 -0
- package/build/auth/tokenStore.d.ts +62 -0
- package/build/backlog/backlogErrorHandler.d.ts +2 -0
- package/build/backlog/customFields.d.ts +29 -0
- package/build/backlog/parseBacklogAPIError.d.ts +8 -0
- package/build/createBacklogMcpServer.d.ts +29 -0
- package/build/createBacklogMcpServer.js +6 -1
- package/build/createTranslationHelper.d.ts +16 -0
- package/build/createTranslationHelper.js +7 -11
- package/build/handlers/builders/composeToolHandler.d.ts +31 -0
- package/build/handlers/builders/composeToolHandler.js +21 -9
- package/build/handlers/transformers/wrapWithErrorHandling.d.ts +2 -0
- package/build/handlers/transformers/wrapWithFieldPicking.d.ts +4 -0
- package/build/handlers/transformers/wrapWithOrganizationContext.d.ts +3 -0
- package/build/handlers/transformers/wrapWithTokenLimit.d.ts +2 -0
- package/build/handlers/transformers/wrapWithToolResult.d.ts +6 -0
- package/build/httpMcpServer.d.ts +22 -0
- package/build/index.d.ts +2 -0
- package/build/index.js +8 -2
- package/build/lib.d.ts +25 -0
- package/build/lib.js +20 -0
- package/build/loadTranslationOverrides.d.ts +17 -0
- package/build/loadTranslationOverrides.js +24 -0
- package/build/registerTools.d.ts +5 -0
- package/build/registerTools.js +7 -6
- package/build/tools/addDocument.d.ts +15 -0
- package/build/tools/addIssue.d.ts +30 -0
- package/build/tools/addIssueComment.d.ts +14 -0
- package/build/tools/addProject.d.ts +18 -0
- package/build/tools/addPullRequest.d.ts +20 -0
- package/build/tools/addPullRequestComment.d.ts +16 -0
- package/build/tools/addRelatedIssue.d.ts +12 -0
- package/build/tools/addVersionMilestone.d.ts +15 -0
- package/build/tools/addWatching.d.ts +11 -0
- package/build/tools/addWiki.d.ts +13 -0
- package/build/tools/countIssues.d.ts +48 -0
- package/build/tools/deleteIssue.d.ts +11 -0
- package/build/tools/deleteProject.d.ts +11 -0
- package/build/tools/deleteVersion.d.ts +12 -0
- package/build/tools/deleteWatching.d.ts +10 -0
- package/build/tools/dynamicTools/organizations.d.ts +6 -0
- package/build/tools/dynamicTools/toolsets.d.ts +15 -0
- package/build/tools/getCategories.d.ts +11 -0
- package/build/tools/getCustomFields.d.ts +12 -0
- package/build/tools/getDocument.d.ts +10 -0
- package/build/tools/getDocumentTree.d.ts +10 -0
- package/build/tools/getDocuments.d.ts +11 -0
- package/build/tools/getGitRepositories.d.ts +11 -0
- package/build/tools/getGitRepository.d.ts +13 -0
- package/build/tools/getIssue.d.ts +11 -0
- package/build/tools/getIssueComments.d.ts +18 -0
- package/build/tools/getIssueTypes.d.ts +11 -0
- package/build/tools/getIssues.d.ts +75 -0
- package/build/tools/getMyself.d.ts +7 -0
- package/build/tools/getNotifications.d.ts +16 -0
- package/build/tools/getNotificationsCount.d.ts +11 -0
- package/build/tools/getPriorities.d.ts +7 -0
- package/build/tools/getProject.d.ts +11 -0
- package/build/tools/getProjectList.d.ts +11 -0
- package/build/tools/getProjectUsers.d.ts +11 -0
- package/build/tools/getPullRequest.d.ts +14 -0
- package/build/tools/getPullRequestComments.d.ts +21 -0
- package/build/tools/getPullRequests.d.ts +19 -0
- package/build/tools/getPullRequestsCount.d.ts +17 -0
- package/build/tools/getRelatedIssues.d.ts +11 -0
- package/build/tools/getResolutions.d.ts +7 -0
- package/build/tools/getSpace.d.ts +7 -0
- package/build/tools/getSpaceActivities.d.ts +45 -0
- package/build/tools/getUserRecentUpdates.d.ts +46 -0
- package/build/tools/getUserStarsCount.d.ts +12 -0
- package/build/tools/getUsers.d.ts +7 -0
- package/build/tools/getVersionMilestoneList.d.ts +11 -0
- package/build/tools/getWatchingListCount.d.ts +10 -0
- package/build/tools/getWatchingListItems.d.ts +10 -0
- package/build/tools/getWiki.d.ts +10 -0
- package/build/tools/getWikiPages.d.ts +12 -0
- package/build/tools/getWikisCount.d.ts +11 -0
- package/build/tools/markNotificationAsRead.d.ts +13 -0
- package/build/tools/markWatchingAsRead.d.ts +13 -0
- package/build/tools/removeRelatedIssue.d.ts +12 -0
- package/build/tools/resetUnreadNotificationCount.d.ts +7 -0
- package/build/tools/shared/customFieldFiltersSchema.d.ts +21 -0
- package/build/tools/tools.d.ts +4 -0
- package/build/tools/updateIssue.d.ts +34 -0
- package/build/tools/updateIssueComment.d.ts +13 -0
- package/build/tools/updateProject.d.ts +21 -0
- package/build/tools/updatePullRequest.d.ts +20 -0
- package/build/tools/updatePullRequestComment.d.ts +16 -0
- package/build/tools/updateVersionMilestone.d.ts +17 -0
- package/build/tools/updateWatching.d.ts +11 -0
- package/build/tools/updateWiki.d.ts +13 -0
- package/build/types/mcp.d.ts +10 -0
- package/build/types/result.d.ts +10 -0
- package/build/types/tool.d.ts +24 -0
- package/build/types/toolsets.d.ts +16 -0
- package/build/types/zod/backlogOutputDefinition.d.ts +3334 -0
- package/build/types/zod/backlogOutputDefinition.js +0 -16
- package/build/utils/backlogClientRegistry.d.ts +28 -0
- package/build/utils/backlogClientRegistry.js +4 -0
- package/build/utils/backlogOrganizationContext.d.ts +2 -0
- package/build/utils/generateFieldsDescription.d.ts +5 -0
- package/build/utils/logger.d.ts +2 -0
- package/build/utils/logger.js +27 -14
- package/build/utils/resolveIdOrKey.d.ts +18 -0
- package/build/utils/runToolSafely.d.ts +6 -0
- package/build/utils/tokenCounter.d.ts +1 -0
- package/build/utils/toolRegistrar.d.ts +5 -0
- package/build/utils/toolsetUtils.d.ts +6 -0
- package/build/utils/toolsetUtils.js +0 -20
- package/build/utils/wrapServerWithToolRegistry.d.ts +6 -0
- package/package.json +11 -2
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { Backlog } from 'backlog-js';
|
|
3
|
+
import { ToolDefinition } from '../types/tool.js';
|
|
4
|
+
import { TranslationHelper } from '../createTranslationHelper.js';
|
|
5
|
+
import { IssueCommentSchema } from '../types/zod/backlogOutputDefinition.js';
|
|
6
|
+
declare const addIssueCommentSchema: (t: TranslationHelper["t"]) => {
|
|
7
|
+
issueId: z.ZodOptional<z.ZodNumber>;
|
|
8
|
+
issueKey: z.ZodOptional<z.ZodString>;
|
|
9
|
+
content: z.ZodString;
|
|
10
|
+
notifiedUserId: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
11
|
+
attachmentId: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
12
|
+
};
|
|
13
|
+
export declare const addIssueCommentTool: (backlog: Backlog, { t }: TranslationHelper) => ToolDefinition<ReturnType<typeof addIssueCommentSchema>, (typeof IssueCommentSchema)["shape"]>;
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { Backlog } from 'backlog-js';
|
|
3
|
+
import { ToolDefinition } from '../types/tool.js';
|
|
4
|
+
import { TranslationHelper } from '../createTranslationHelper.js';
|
|
5
|
+
import { ProjectSchema } from '../types/zod/backlogOutputDefinition.js';
|
|
6
|
+
declare const addProjectSchema: (t: TranslationHelper["t"]) => {
|
|
7
|
+
name: z.ZodString;
|
|
8
|
+
key: z.ZodString;
|
|
9
|
+
chartEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
10
|
+
subtaskingEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
11
|
+
projectLeaderCanEditProjectLeader: z.ZodOptional<z.ZodBoolean>;
|
|
12
|
+
textFormattingRule: z.ZodOptional<z.ZodEnum<{
|
|
13
|
+
backlog: "backlog";
|
|
14
|
+
markdown: "markdown";
|
|
15
|
+
}>>;
|
|
16
|
+
};
|
|
17
|
+
export declare const addProjectTool: (backlog: Backlog, { t }: TranslationHelper) => ToolDefinition<ReturnType<typeof addProjectSchema>, (typeof ProjectSchema)["shape"]>;
|
|
18
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { Backlog } from 'backlog-js';
|
|
3
|
+
import { ToolDefinition } from '../types/tool.js';
|
|
4
|
+
import { TranslationHelper } from '../createTranslationHelper.js';
|
|
5
|
+
import { PullRequestSchema } from '../types/zod/backlogOutputDefinition.js';
|
|
6
|
+
declare const addPullRequestSchema: (t: TranslationHelper["t"]) => {
|
|
7
|
+
projectId: z.ZodOptional<z.ZodNumber>;
|
|
8
|
+
projectKey: z.ZodOptional<z.ZodString>;
|
|
9
|
+
repoId: z.ZodOptional<z.ZodNumber>;
|
|
10
|
+
repoName: z.ZodOptional<z.ZodString>;
|
|
11
|
+
summary: z.ZodString;
|
|
12
|
+
description: z.ZodString;
|
|
13
|
+
base: z.ZodString;
|
|
14
|
+
branch: z.ZodString;
|
|
15
|
+
issueId: z.ZodOptional<z.ZodNumber>;
|
|
16
|
+
assigneeId: z.ZodOptional<z.ZodNumber>;
|
|
17
|
+
notifiedUserId: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
18
|
+
};
|
|
19
|
+
export declare const addPullRequestTool: (backlog: Backlog, { t }: TranslationHelper) => ToolDefinition<ReturnType<typeof addPullRequestSchema>, (typeof PullRequestSchema)["shape"]>;
|
|
20
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { Backlog } from 'backlog-js';
|
|
3
|
+
import { ToolDefinition } from '../types/tool.js';
|
|
4
|
+
import { TranslationHelper } from '../createTranslationHelper.js';
|
|
5
|
+
import { PullRequestCommentSchema } from '../types/zod/backlogOutputDefinition.js';
|
|
6
|
+
declare const addPullRequestCommentSchema: (t: TranslationHelper["t"]) => {
|
|
7
|
+
projectId: z.ZodOptional<z.ZodNumber>;
|
|
8
|
+
projectKey: z.ZodOptional<z.ZodString>;
|
|
9
|
+
repoId: z.ZodOptional<z.ZodNumber>;
|
|
10
|
+
repoName: z.ZodOptional<z.ZodString>;
|
|
11
|
+
number: z.ZodNumber;
|
|
12
|
+
content: z.ZodString;
|
|
13
|
+
notifiedUserId: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
14
|
+
};
|
|
15
|
+
export declare const addPullRequestCommentTool: (backlog: Backlog, { t }: TranslationHelper) => ToolDefinition<ReturnType<typeof addPullRequestCommentSchema>, (typeof PullRequestCommentSchema)["shape"]>;
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { Backlog } from 'backlog-js';
|
|
3
|
+
import { ToolDefinition } from '../types/tool.js';
|
|
4
|
+
import { TranslationHelper } from '../createTranslationHelper.js';
|
|
5
|
+
import { RelatedIssueSchema } from '../types/zod/backlogOutputDefinition.js';
|
|
6
|
+
declare const addRelatedIssueSchema: (t: TranslationHelper["t"]) => {
|
|
7
|
+
issueId: z.ZodOptional<z.ZodNumber>;
|
|
8
|
+
issueKey: z.ZodOptional<z.ZodString>;
|
|
9
|
+
targetIssueId: z.ZodNumber;
|
|
10
|
+
};
|
|
11
|
+
export declare const addRelatedIssueTool: (backlog: Backlog, { t }: TranslationHelper) => ToolDefinition<ReturnType<typeof addRelatedIssueSchema>, (typeof RelatedIssueSchema)["shape"]>;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { Backlog } from 'backlog-js';
|
|
3
|
+
import { ToolDefinition } from '../types/tool.js';
|
|
4
|
+
import { TranslationHelper } from '../createTranslationHelper.js';
|
|
5
|
+
import { VersionSchema } from '../types/zod/backlogOutputDefinition.js';
|
|
6
|
+
declare const addVersionMilestoneSchema: (t: TranslationHelper["t"]) => {
|
|
7
|
+
projectId: z.ZodOptional<z.ZodNumber>;
|
|
8
|
+
projectKey: z.ZodOptional<z.ZodString>;
|
|
9
|
+
name: z.ZodString;
|
|
10
|
+
description: z.ZodOptional<z.ZodString>;
|
|
11
|
+
startDate: z.ZodOptional<z.ZodString>;
|
|
12
|
+
releaseDueDate: z.ZodOptional<z.ZodString>;
|
|
13
|
+
};
|
|
14
|
+
export declare const addVersionMilestoneTool: (backlog: Backlog, { t }: TranslationHelper) => ToolDefinition<ReturnType<typeof addVersionMilestoneSchema>, (typeof VersionSchema)["shape"]>;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { Backlog } from 'backlog-js';
|
|
3
|
+
import { ToolDefinition } from '../types/tool.js';
|
|
4
|
+
import { TranslationHelper } from '../createTranslationHelper.js';
|
|
5
|
+
import { WatchingListItemSchema } from '../types/zod/backlogOutputDefinition.js';
|
|
6
|
+
declare const addWatchingSchema: (t: TranslationHelper["t"]) => {
|
|
7
|
+
issueIdOrKey: z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>;
|
|
8
|
+
note: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
9
|
+
};
|
|
10
|
+
export declare const addWatchingTool: (backlog: Backlog, { t }: TranslationHelper) => ToolDefinition<ReturnType<typeof addWatchingSchema>, (typeof WatchingListItemSchema)["shape"]>;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { Backlog } from 'backlog-js';
|
|
3
|
+
import { ToolDefinition } from '../types/tool.js';
|
|
4
|
+
import { TranslationHelper } from '../createTranslationHelper.js';
|
|
5
|
+
import { WikiSchema } from '../types/zod/backlogOutputDefinition.js';
|
|
6
|
+
declare const addWikiSchema: (t: TranslationHelper["t"]) => {
|
|
7
|
+
projectId: z.ZodNumber;
|
|
8
|
+
name: z.ZodString;
|
|
9
|
+
content: z.ZodString;
|
|
10
|
+
mailNotify: z.ZodOptional<z.ZodBoolean>;
|
|
11
|
+
};
|
|
12
|
+
export declare const addWikiTool: (backlog: Backlog, { t }: TranslationHelper) => ToolDefinition<ReturnType<typeof addWikiSchema>, (typeof WikiSchema)["shape"]>;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { Backlog } from 'backlog-js';
|
|
3
|
+
import { ToolDefinition } from '../types/tool.js';
|
|
4
|
+
import { TranslationHelper } from '../createTranslationHelper.js';
|
|
5
|
+
import { IssueCountSchema } from '../types/zod/backlogOutputDefinition.js';
|
|
6
|
+
declare const countIssuesSchema: (t: TranslationHelper["t"]) => {
|
|
7
|
+
projectId: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
8
|
+
issueTypeId: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
9
|
+
categoryId: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
10
|
+
versionId: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
11
|
+
milestoneId: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
12
|
+
statusId: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
13
|
+
priorityId: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
14
|
+
assigneeId: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
15
|
+
createdUserId: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
16
|
+
resolutionId: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
17
|
+
parentIssueId: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
18
|
+
keyword: z.ZodOptional<z.ZodString>;
|
|
19
|
+
startDateSince: z.ZodOptional<z.ZodString>;
|
|
20
|
+
startDateUntil: z.ZodOptional<z.ZodString>;
|
|
21
|
+
dueDateSince: z.ZodOptional<z.ZodString>;
|
|
22
|
+
dueDateUntil: z.ZodOptional<z.ZodString>;
|
|
23
|
+
createdSince: z.ZodOptional<z.ZodString>;
|
|
24
|
+
createdUntil: z.ZodOptional<z.ZodString>;
|
|
25
|
+
updatedSince: z.ZodOptional<z.ZodString>;
|
|
26
|
+
updatedUntil: z.ZodOptional<z.ZodString>;
|
|
27
|
+
customFields: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
28
|
+
type: z.ZodLiteral<"text">;
|
|
29
|
+
id: z.ZodNumber;
|
|
30
|
+
value: z.ZodString;
|
|
31
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
32
|
+
type: z.ZodLiteral<"numeric">;
|
|
33
|
+
id: z.ZodNumber;
|
|
34
|
+
min: z.ZodOptional<z.ZodNumber>;
|
|
35
|
+
max: z.ZodOptional<z.ZodNumber>;
|
|
36
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
37
|
+
type: z.ZodLiteral<"date">;
|
|
38
|
+
id: z.ZodNumber;
|
|
39
|
+
min: z.ZodOptional<z.ZodString>;
|
|
40
|
+
max: z.ZodOptional<z.ZodString>;
|
|
41
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
42
|
+
type: z.ZodLiteral<"list">;
|
|
43
|
+
id: z.ZodNumber;
|
|
44
|
+
value: z.ZodUnion<readonly [z.ZodNumber, z.ZodArray<z.ZodNumber>]>;
|
|
45
|
+
}, z.core.$strip>], "type">>>;
|
|
46
|
+
};
|
|
47
|
+
export declare const countIssuesTool: (backlog: Backlog, { t }: TranslationHelper) => ToolDefinition<ReturnType<typeof countIssuesSchema>, (typeof IssueCountSchema)["shape"]>;
|
|
48
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { Backlog } from 'backlog-js';
|
|
3
|
+
import { ToolDefinition } from '../types/tool.js';
|
|
4
|
+
import { TranslationHelper } from '../createTranslationHelper.js';
|
|
5
|
+
import { IssueSchema } from '../types/zod/backlogOutputDefinition.js';
|
|
6
|
+
declare const deleteIssueSchema: (t: TranslationHelper["t"]) => {
|
|
7
|
+
issueId: z.ZodOptional<z.ZodNumber>;
|
|
8
|
+
issueKey: z.ZodOptional<z.ZodString>;
|
|
9
|
+
};
|
|
10
|
+
export declare const deleteIssueTool: (backlog: Backlog, { t }: TranslationHelper) => ToolDefinition<ReturnType<typeof deleteIssueSchema>, (typeof IssueSchema)["shape"]>;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { Backlog } from 'backlog-js';
|
|
3
|
+
import { ToolDefinition } from '../types/tool.js';
|
|
4
|
+
import { TranslationHelper } from '../createTranslationHelper.js';
|
|
5
|
+
import { ProjectSchema } from '../types/zod/backlogOutputDefinition.js';
|
|
6
|
+
declare const deleteProjectSchema: (t: TranslationHelper["t"]) => {
|
|
7
|
+
projectId: z.ZodOptional<z.ZodNumber>;
|
|
8
|
+
projectKey: z.ZodOptional<z.ZodString>;
|
|
9
|
+
};
|
|
10
|
+
export declare const deleteProjectTool: (backlog: Backlog, { t }: TranslationHelper) => ToolDefinition<ReturnType<typeof deleteProjectSchema>, (typeof ProjectSchema)["shape"]>;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { Backlog } from 'backlog-js';
|
|
3
|
+
import { ToolDefinition } from '../types/tool.js';
|
|
4
|
+
import { TranslationHelper } from '../createTranslationHelper.js';
|
|
5
|
+
import { VersionSchema } from '../types/zod/backlogOutputDefinition.js';
|
|
6
|
+
declare const deleteVersionSchema: (t: TranslationHelper["t"]) => {
|
|
7
|
+
projectId: z.ZodOptional<z.ZodNumber>;
|
|
8
|
+
projectKey: z.ZodOptional<z.ZodString>;
|
|
9
|
+
id: z.ZodNumber;
|
|
10
|
+
};
|
|
11
|
+
export declare const deleteVersionTool: (backlog: Backlog, { t }: TranslationHelper) => ToolDefinition<ReturnType<typeof deleteVersionSchema>, (typeof VersionSchema)["shape"]>;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { Backlog } from 'backlog-js';
|
|
3
|
+
import { ToolDefinition } from '../types/tool.js';
|
|
4
|
+
import { TranslationHelper } from '../createTranslationHelper.js';
|
|
5
|
+
import { WatchingListItemSchema } from '../types/zod/backlogOutputDefinition.js';
|
|
6
|
+
declare const deleteWatchingSchema: (t: TranslationHelper["t"]) => {
|
|
7
|
+
watchId: z.ZodNumber;
|
|
8
|
+
};
|
|
9
|
+
export declare const deleteWatchingTool: (backlog: Backlog, { t }: TranslationHelper) => ToolDefinition<ReturnType<typeof deleteWatchingSchema>, (typeof WatchingListItemSchema)["shape"]>;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { TranslationHelper } from '../../createTranslationHelper.js';
|
|
2
|
+
import { BacklogClientRegistry } from '../../utils/backlogClientRegistry.js';
|
|
3
|
+
import { DynamicToolDefinition } from '../../types/tool.js';
|
|
4
|
+
import { DynamicToolsetGroup } from '../../types/toolsets.js';
|
|
5
|
+
export declare function organizationTools(registry: BacklogClientRegistry, { t }: TranslationHelper): DynamicToolsetGroup;
|
|
6
|
+
export declare function listOrganizationsTool(registry: BacklogClientRegistry, t: TranslationHelper['t']): DynamicToolDefinition<Record<string, never>>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { DynamicToolDefinition, ToolRegistrar } from '../../types/tool.js';
|
|
3
|
+
import { DynamicToolsetGroup, ToolsetGroup } from '../../types/toolsets.js';
|
|
4
|
+
import { TranslationHelper } from '../../createTranslationHelper.js';
|
|
5
|
+
export declare const dynamicTools: (toolRegistrar: ToolRegistrar, helper: TranslationHelper, toolsetGroup: ToolsetGroup) => DynamicToolsetGroup;
|
|
6
|
+
declare const enableToolsetSchema: (t: TranslationHelper["t"]) => {
|
|
7
|
+
toolset: z.ZodString;
|
|
8
|
+
};
|
|
9
|
+
export declare const enableToolsetTool: (toolRegistrar: ToolRegistrar, { t }: TranslationHelper) => DynamicToolDefinition<ReturnType<typeof enableToolsetSchema>>;
|
|
10
|
+
export declare const listAvailableToolsets: ({ t }: TranslationHelper, toolsetGroup: ToolsetGroup) => DynamicToolDefinition<Record<string, never>>;
|
|
11
|
+
declare const getToolsetToolsSchema: (t: TranslationHelper["t"]) => {
|
|
12
|
+
toolset: z.ZodString;
|
|
13
|
+
};
|
|
14
|
+
export declare const getToolsetTools: ({ t }: TranslationHelper, toolsetGroup: ToolsetGroup) => DynamicToolDefinition<ReturnType<typeof getToolsetToolsSchema>>;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { Backlog } from 'backlog-js';
|
|
3
|
+
import { ToolDefinition } from '../types/tool.js';
|
|
4
|
+
import { TranslationHelper } from '../createTranslationHelper.js';
|
|
5
|
+
import { CategorySchema } from '../types/zod/backlogOutputDefinition.js';
|
|
6
|
+
declare const getCategoriesSchema: (t: TranslationHelper["t"]) => {
|
|
7
|
+
projectId: z.ZodOptional<z.ZodNumber>;
|
|
8
|
+
projectKey: z.ZodOptional<z.ZodString>;
|
|
9
|
+
};
|
|
10
|
+
export declare const getCategoriesTool: (backlog: Backlog, { t }: TranslationHelper) => ToolDefinition<ReturnType<typeof getCategoriesSchema>, (typeof CategorySchema)["shape"]>;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Backlog } from 'backlog-js';
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
import { ToolDefinition } from '../types/tool.js';
|
|
4
|
+
import { TranslationHelper } from '../createTranslationHelper.js';
|
|
5
|
+
import { CustomFieldSchema } from '../types/zod/backlogOutputDefinition.js';
|
|
6
|
+
declare const getCustomFieldsInputSchema: (t: TranslationHelper["t"]) => {
|
|
7
|
+
projectId: z.ZodOptional<z.ZodNumber>;
|
|
8
|
+
projectKey: z.ZodOptional<z.ZodString>;
|
|
9
|
+
};
|
|
10
|
+
export declare const getCustomFieldsTool: (backlog: Backlog, { t }: TranslationHelper) => ToolDefinition<ReturnType<typeof getCustomFieldsInputSchema>, // Shape for input schema
|
|
11
|
+
(typeof CustomFieldSchema)["shape"]>;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Backlog } from 'backlog-js';
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
import { TranslationHelper } from '../createTranslationHelper.js';
|
|
4
|
+
import { DocumentItemSchema } from '../types/zod/backlogOutputDefinition.js';
|
|
5
|
+
import { ToolDefinition } from '../types/tool.js';
|
|
6
|
+
declare const getDocumentSchema: (t: TranslationHelper["t"]) => {
|
|
7
|
+
documentId: z.ZodString;
|
|
8
|
+
};
|
|
9
|
+
export declare const getDocumentTool: (backlog: Backlog, { t }: TranslationHelper) => ToolDefinition<ReturnType<typeof getDocumentSchema>, (typeof DocumentItemSchema)["shape"]>;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Backlog } from 'backlog-js';
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
import { TranslationHelper } from '../createTranslationHelper.js';
|
|
4
|
+
import { DocumentTreeFullSchema } from '../types/zod/backlogOutputDefinition.js';
|
|
5
|
+
import { ToolDefinition } from '../types/tool.js';
|
|
6
|
+
declare const getDocumentTreeSchema: (t: TranslationHelper["t"]) => {
|
|
7
|
+
projectIdOrKey: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
|
|
8
|
+
};
|
|
9
|
+
export declare const getDocumentTreeTool: (backlog: Backlog, { t }: TranslationHelper) => ToolDefinition<ReturnType<typeof getDocumentTreeSchema>, typeof DocumentTreeFullSchema>;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Backlog } from 'backlog-js';
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
import { TranslationHelper } from '../createTranslationHelper.js';
|
|
4
|
+
import { DocumentItemSchema } from '../types/zod/backlogOutputDefinition.js';
|
|
5
|
+
import { ToolDefinition } from '../types/tool.js';
|
|
6
|
+
declare const getDocumentsSchema: (t: TranslationHelper["t"]) => {
|
|
7
|
+
projectIds: z.ZodArray<z.ZodNumber>;
|
|
8
|
+
offset: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
9
|
+
};
|
|
10
|
+
export declare const getDocumentsTool: (backlog: Backlog, { t }: TranslationHelper) => ToolDefinition<ReturnType<typeof getDocumentsSchema>, (typeof DocumentItemSchema)["shape"]>;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { Backlog } from 'backlog-js';
|
|
3
|
+
import { ToolDefinition } from '../types/tool.js';
|
|
4
|
+
import { TranslationHelper } from '../createTranslationHelper.js';
|
|
5
|
+
import { GitRepositorySchema } from '../types/zod/backlogOutputDefinition.js';
|
|
6
|
+
declare const getGitRepositoriesSchema: (t: TranslationHelper["t"]) => {
|
|
7
|
+
projectId: z.ZodOptional<z.ZodNumber>;
|
|
8
|
+
projectKey: z.ZodOptional<z.ZodString>;
|
|
9
|
+
};
|
|
10
|
+
export declare const getGitRepositoriesTool: (backlog: Backlog, { t }: TranslationHelper) => ToolDefinition<ReturnType<typeof getGitRepositoriesSchema>, (typeof GitRepositorySchema)["shape"]>;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { Backlog } from 'backlog-js';
|
|
3
|
+
import { ToolDefinition } from '../types/tool.js';
|
|
4
|
+
import { TranslationHelper } from '../createTranslationHelper.js';
|
|
5
|
+
import { GitRepositorySchema } from '../types/zod/backlogOutputDefinition.js';
|
|
6
|
+
declare const getGitRepositorySchema: (t: TranslationHelper["t"]) => {
|
|
7
|
+
projectId: z.ZodOptional<z.ZodNumber>;
|
|
8
|
+
projectKey: z.ZodOptional<z.ZodString>;
|
|
9
|
+
repoId: z.ZodOptional<z.ZodNumber>;
|
|
10
|
+
repoName: z.ZodOptional<z.ZodString>;
|
|
11
|
+
};
|
|
12
|
+
export declare const getGitRepositoryTool: (backlog: Backlog, { t }: TranslationHelper) => ToolDefinition<ReturnType<typeof getGitRepositorySchema>, (typeof GitRepositorySchema)["shape"]>;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { Backlog } from 'backlog-js';
|
|
3
|
+
import { ToolDefinition } from '../types/tool.js';
|
|
4
|
+
import { TranslationHelper } from '../createTranslationHelper.js';
|
|
5
|
+
import { IssueSchema } from '../types/zod/backlogOutputDefinition.js';
|
|
6
|
+
declare const getIssueSchema: (t: TranslationHelper["t"]) => {
|
|
7
|
+
issueId: z.ZodOptional<z.ZodNumber>;
|
|
8
|
+
issueKey: z.ZodOptional<z.ZodString>;
|
|
9
|
+
};
|
|
10
|
+
export declare const getIssueTool: (backlog: Backlog, { t }: TranslationHelper) => ToolDefinition<ReturnType<typeof getIssueSchema>, (typeof IssueSchema)["shape"]>;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { Backlog } from 'backlog-js';
|
|
3
|
+
import { ToolDefinition } from '../types/tool.js';
|
|
4
|
+
import { TranslationHelper } from '../createTranslationHelper.js';
|
|
5
|
+
import { IssueCommentSchema } from '../types/zod/backlogOutputDefinition.js';
|
|
6
|
+
declare const getIssueCommentsSchema: (t: TranslationHelper["t"]) => {
|
|
7
|
+
issueId: z.ZodOptional<z.ZodNumber>;
|
|
8
|
+
issueKey: z.ZodOptional<z.ZodString>;
|
|
9
|
+
minId: z.ZodOptional<z.ZodNumber>;
|
|
10
|
+
maxId: z.ZodOptional<z.ZodNumber>;
|
|
11
|
+
count: z.ZodOptional<z.ZodNumber>;
|
|
12
|
+
order: z.ZodOptional<z.ZodEnum<{
|
|
13
|
+
asc: "asc";
|
|
14
|
+
desc: "desc";
|
|
15
|
+
}>>;
|
|
16
|
+
};
|
|
17
|
+
export declare const getIssueCommentsTool: (backlog: Backlog, { t }: TranslationHelper) => ToolDefinition<ReturnType<typeof getIssueCommentsSchema>, (typeof IssueCommentSchema)["shape"]>;
|
|
18
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { Backlog } from 'backlog-js';
|
|
3
|
+
import { ToolDefinition } from '../types/tool.js';
|
|
4
|
+
import { TranslationHelper } from '../createTranslationHelper.js';
|
|
5
|
+
import { IssueTypeSchema } from '../types/zod/backlogOutputDefinition.js';
|
|
6
|
+
declare const getIssueTypesSchema: (t: TranslationHelper["t"]) => {
|
|
7
|
+
projectId: z.ZodOptional<z.ZodNumber>;
|
|
8
|
+
projectKey: z.ZodOptional<z.ZodString>;
|
|
9
|
+
};
|
|
10
|
+
export declare const getIssueTypesTool: (backlog: Backlog, { t }: TranslationHelper) => ToolDefinition<ReturnType<typeof getIssueTypesSchema>, (typeof IssueTypeSchema)["shape"]>;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { Backlog } from 'backlog-js';
|
|
3
|
+
import { ToolDefinition } from '../types/tool.js';
|
|
4
|
+
import { TranslationHelper } from '../createTranslationHelper.js';
|
|
5
|
+
import { IssueSchema } from '../types/zod/backlogOutputDefinition.js';
|
|
6
|
+
declare const getIssuesSchema: (t: TranslationHelper["t"]) => {
|
|
7
|
+
projectId: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
8
|
+
issueTypeId: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
9
|
+
categoryId: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
10
|
+
versionId: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
11
|
+
milestoneId: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
12
|
+
statusId: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
13
|
+
priorityId: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
14
|
+
assigneeId: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
15
|
+
createdUserId: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
16
|
+
resolutionId: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
17
|
+
parentIssueId: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
18
|
+
keyword: z.ZodOptional<z.ZodString>;
|
|
19
|
+
startDateSince: z.ZodOptional<z.ZodString>;
|
|
20
|
+
startDateUntil: z.ZodOptional<z.ZodString>;
|
|
21
|
+
dueDateSince: z.ZodOptional<z.ZodString>;
|
|
22
|
+
dueDateUntil: z.ZodOptional<z.ZodString>;
|
|
23
|
+
createdSince: z.ZodOptional<z.ZodString>;
|
|
24
|
+
createdUntil: z.ZodOptional<z.ZodString>;
|
|
25
|
+
updatedSince: z.ZodOptional<z.ZodString>;
|
|
26
|
+
updatedUntil: z.ZodOptional<z.ZodString>;
|
|
27
|
+
sort: z.ZodOptional<z.ZodEnum<{
|
|
28
|
+
version: "version";
|
|
29
|
+
priority: "priority";
|
|
30
|
+
createdUser: "createdUser";
|
|
31
|
+
created: "created";
|
|
32
|
+
startDate: "startDate";
|
|
33
|
+
updatedUser: "updatedUser";
|
|
34
|
+
updated: "updated";
|
|
35
|
+
issueType: "issueType";
|
|
36
|
+
status: "status";
|
|
37
|
+
summary: "summary";
|
|
38
|
+
assignee: "assignee";
|
|
39
|
+
category: "category";
|
|
40
|
+
milestone: "milestone";
|
|
41
|
+
dueDate: "dueDate";
|
|
42
|
+
estimatedHours: "estimatedHours";
|
|
43
|
+
actualHours: "actualHours";
|
|
44
|
+
attachment: "attachment";
|
|
45
|
+
sharedFile: "sharedFile";
|
|
46
|
+
childIssue: "childIssue";
|
|
47
|
+
}>>;
|
|
48
|
+
order: z.ZodOptional<z.ZodEnum<{
|
|
49
|
+
asc: "asc";
|
|
50
|
+
desc: "desc";
|
|
51
|
+
}>>;
|
|
52
|
+
offset: z.ZodOptional<z.ZodNumber>;
|
|
53
|
+
count: z.ZodOptional<z.ZodNumber>;
|
|
54
|
+
customFields: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
55
|
+
type: z.ZodLiteral<"text">;
|
|
56
|
+
id: z.ZodNumber;
|
|
57
|
+
value: z.ZodString;
|
|
58
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
59
|
+
type: z.ZodLiteral<"numeric">;
|
|
60
|
+
id: z.ZodNumber;
|
|
61
|
+
min: z.ZodOptional<z.ZodNumber>;
|
|
62
|
+
max: z.ZodOptional<z.ZodNumber>;
|
|
63
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
64
|
+
type: z.ZodLiteral<"date">;
|
|
65
|
+
id: z.ZodNumber;
|
|
66
|
+
min: z.ZodOptional<z.ZodString>;
|
|
67
|
+
max: z.ZodOptional<z.ZodString>;
|
|
68
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
69
|
+
type: z.ZodLiteral<"list">;
|
|
70
|
+
id: z.ZodNumber;
|
|
71
|
+
value: z.ZodUnion<readonly [z.ZodNumber, z.ZodArray<z.ZodNumber>]>;
|
|
72
|
+
}, z.core.$strip>], "type">>>;
|
|
73
|
+
};
|
|
74
|
+
export declare const getIssuesTool: (backlog: Backlog, { t }: TranslationHelper) => ToolDefinition<ReturnType<typeof getIssuesSchema>, (typeof IssueSchema)["shape"]>;
|
|
75
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Backlog } from 'backlog-js';
|
|
2
|
+
import { ToolDefinition } from '../types/tool.js';
|
|
3
|
+
import { TranslationHelper } from '../createTranslationHelper.js';
|
|
4
|
+
import { UserSchema } from '../types/zod/backlogOutputDefinition.js';
|
|
5
|
+
declare const getMyselfSchema: (t: TranslationHelper["t"]) => {};
|
|
6
|
+
export declare const getMyselfTool: (backlog: Backlog, { t }: TranslationHelper) => ToolDefinition<ReturnType<typeof getMyselfSchema>, (typeof UserSchema)["shape"]>;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { Backlog } from 'backlog-js';
|
|
3
|
+
import { ToolDefinition } from '../types/tool.js';
|
|
4
|
+
import { TranslationHelper } from '../createTranslationHelper.js';
|
|
5
|
+
import { NotificationSchema } from '../types/zod/backlogOutputDefinition.js';
|
|
6
|
+
declare const getNotificationsSchema: (t: TranslationHelper["t"]) => {
|
|
7
|
+
minId: z.ZodOptional<z.ZodNumber>;
|
|
8
|
+
maxId: z.ZodOptional<z.ZodNumber>;
|
|
9
|
+
count: z.ZodOptional<z.ZodNumber>;
|
|
10
|
+
order: z.ZodOptional<z.ZodEnum<{
|
|
11
|
+
asc: "asc";
|
|
12
|
+
desc: "desc";
|
|
13
|
+
}>>;
|
|
14
|
+
};
|
|
15
|
+
export declare const getNotificationsTool: (backlog: Backlog, { t }: TranslationHelper) => ToolDefinition<ReturnType<typeof getNotificationsSchema>, (typeof NotificationSchema)["shape"]>;
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { Backlog } from 'backlog-js';
|
|
3
|
+
import { ToolDefinition } from '../types/tool.js';
|
|
4
|
+
import { TranslationHelper } from '../createTranslationHelper.js';
|
|
5
|
+
import { NotificationCountSchema } from '../types/zod/backlogOutputDefinition.js';
|
|
6
|
+
declare const getNotificationsCountSchema: (t: TranslationHelper["t"]) => {
|
|
7
|
+
alreadyRead: z.ZodBoolean;
|
|
8
|
+
resourceAlreadyRead: z.ZodBoolean;
|
|
9
|
+
};
|
|
10
|
+
export declare const getNotificationsCountTool: (backlog: Backlog, { t }: TranslationHelper) => ToolDefinition<ReturnType<typeof getNotificationsCountSchema>, (typeof NotificationCountSchema)["shape"]>;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Backlog } from 'backlog-js';
|
|
2
|
+
import { ToolDefinition } from '../types/tool.js';
|
|
3
|
+
import { TranslationHelper } from '../createTranslationHelper.js';
|
|
4
|
+
import { PrioritySchema } from '../types/zod/backlogOutputDefinition.js';
|
|
5
|
+
declare const getPrioritiesSchema: (t: TranslationHelper["t"]) => {};
|
|
6
|
+
export declare const getPrioritiesTool: (backlog: Backlog, { t }: TranslationHelper) => ToolDefinition<ReturnType<typeof getPrioritiesSchema>, (typeof PrioritySchema)["shape"]>;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { Backlog } from 'backlog-js';
|
|
3
|
+
import { ToolDefinition } from '../types/tool.js';
|
|
4
|
+
import { TranslationHelper } from '../createTranslationHelper.js';
|
|
5
|
+
import { ProjectSchema } from '../types/zod/backlogOutputDefinition.js';
|
|
6
|
+
declare const getProjectSchema: (t: TranslationHelper["t"]) => {
|
|
7
|
+
projectId: z.ZodOptional<z.ZodNumber>;
|
|
8
|
+
projectKey: z.ZodOptional<z.ZodString>;
|
|
9
|
+
};
|
|
10
|
+
export declare const getProjectTool: (backlog: Backlog, { t }: TranslationHelper) => ToolDefinition<ReturnType<typeof getProjectSchema>, (typeof ProjectSchema)["shape"]>;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { Backlog } from 'backlog-js';
|
|
3
|
+
import { ToolDefinition } from '../types/tool.js';
|
|
4
|
+
import { TranslationHelper } from '../createTranslationHelper.js';
|
|
5
|
+
import { ProjectSchema } from '../types/zod/backlogOutputDefinition.js';
|
|
6
|
+
declare const getProjectListSchema: (t: TranslationHelper["t"]) => {
|
|
7
|
+
archived: z.ZodOptional<z.ZodBoolean>;
|
|
8
|
+
all: z.ZodOptional<z.ZodBoolean>;
|
|
9
|
+
};
|
|
10
|
+
export declare const getProjectListTool: (backlog: Backlog, { t }: TranslationHelper) => ToolDefinition<ReturnType<typeof getProjectListSchema>, (typeof ProjectSchema)["shape"]>;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { Backlog } from 'backlog-js';
|
|
3
|
+
import { ToolDefinition } from '../types/tool.js';
|
|
4
|
+
import { TranslationHelper } from '../createTranslationHelper.js';
|
|
5
|
+
import { UserSchema } from '../types/zod/backlogOutputDefinition.js';
|
|
6
|
+
declare const getProjectUsersSchema: (t: TranslationHelper["t"]) => {
|
|
7
|
+
projectId: z.ZodOptional<z.ZodNumber>;
|
|
8
|
+
projectKey: z.ZodOptional<z.ZodString>;
|
|
9
|
+
};
|
|
10
|
+
export declare const getProjectUsersTool: (backlog: Backlog, { t }: TranslationHelper) => ToolDefinition<ReturnType<typeof getProjectUsersSchema>, (typeof UserSchema)["shape"]>;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { Backlog } from 'backlog-js';
|
|
3
|
+
import { ToolDefinition } from '../types/tool.js';
|
|
4
|
+
import { TranslationHelper } from '../createTranslationHelper.js';
|
|
5
|
+
import { PullRequestSchema } from '../types/zod/backlogOutputDefinition.js';
|
|
6
|
+
declare const getPullRequestSchema: (t: TranslationHelper["t"]) => {
|
|
7
|
+
projectId: z.ZodOptional<z.ZodNumber>;
|
|
8
|
+
projectKey: z.ZodOptional<z.ZodString>;
|
|
9
|
+
repoId: z.ZodOptional<z.ZodNumber>;
|
|
10
|
+
repoName: z.ZodOptional<z.ZodString>;
|
|
11
|
+
number: z.ZodNumber;
|
|
12
|
+
};
|
|
13
|
+
export declare const getPullRequestTool: (backlog: Backlog, { t }: TranslationHelper) => ToolDefinition<ReturnType<typeof getPullRequestSchema>, (typeof PullRequestSchema)["shape"]>;
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { Backlog } from 'backlog-js';
|
|
3
|
+
import { ToolDefinition } from '../types/tool.js';
|
|
4
|
+
import { TranslationHelper } from '../createTranslationHelper.js';
|
|
5
|
+
import { PullRequestCommentSchema } from '../types/zod/backlogOutputDefinition.js';
|
|
6
|
+
declare const getPullRequestCommentsSchema: (t: TranslationHelper["t"]) => {
|
|
7
|
+
projectId: z.ZodOptional<z.ZodNumber>;
|
|
8
|
+
projectKey: z.ZodOptional<z.ZodString>;
|
|
9
|
+
repoId: z.ZodOptional<z.ZodNumber>;
|
|
10
|
+
repoName: z.ZodOptional<z.ZodString>;
|
|
11
|
+
number: z.ZodNumber;
|
|
12
|
+
minId: z.ZodOptional<z.ZodNumber>;
|
|
13
|
+
maxId: z.ZodOptional<z.ZodNumber>;
|
|
14
|
+
count: z.ZodOptional<z.ZodNumber>;
|
|
15
|
+
order: z.ZodOptional<z.ZodEnum<{
|
|
16
|
+
asc: "asc";
|
|
17
|
+
desc: "desc";
|
|
18
|
+
}>>;
|
|
19
|
+
};
|
|
20
|
+
export declare const getPullRequestCommentsTool: (backlog: Backlog, { t }: TranslationHelper) => ToolDefinition<ReturnType<typeof getPullRequestCommentsSchema>, (typeof PullRequestCommentSchema)["shape"]>;
|
|
21
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { Backlog } from 'backlog-js';
|
|
3
|
+
import { ToolDefinition } from '../types/tool.js';
|
|
4
|
+
import { TranslationHelper } from '../createTranslationHelper.js';
|
|
5
|
+
import { PullRequestSchema } from '../types/zod/backlogOutputDefinition.js';
|
|
6
|
+
declare const getPullRequestsSchema: (t: TranslationHelper["t"]) => {
|
|
7
|
+
projectId: z.ZodOptional<z.ZodNumber>;
|
|
8
|
+
projectKey: z.ZodOptional<z.ZodString>;
|
|
9
|
+
repoId: z.ZodOptional<z.ZodNumber>;
|
|
10
|
+
repoName: z.ZodOptional<z.ZodString>;
|
|
11
|
+
statusId: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
12
|
+
assigneeId: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
13
|
+
issueId: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
14
|
+
createdUserId: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
15
|
+
offset: z.ZodOptional<z.ZodNumber>;
|
|
16
|
+
count: z.ZodOptional<z.ZodNumber>;
|
|
17
|
+
};
|
|
18
|
+
export declare const getPullRequestsTool: (backlog: Backlog, { t }: TranslationHelper) => ToolDefinition<ReturnType<typeof getPullRequestsSchema>, (typeof PullRequestSchema)["shape"]>;
|
|
19
|
+
export {};
|