@vibescope/mcp-server 0.4.3 → 0.4.5
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/dist/api-client/bodies-of-work.d.ts +125 -0
- package/dist/api-client/bodies-of-work.js +78 -0
- package/dist/api-client/chat.d.ts +26 -0
- package/dist/api-client/chat.js +20 -0
- package/dist/api-client/connectors.d.ts +104 -0
- package/dist/api-client/connectors.js +46 -0
- package/dist/api-client/deployment.d.ts +190 -0
- package/dist/api-client/deployment.js +113 -0
- package/dist/api-client/file-checkouts.d.ts +71 -0
- package/dist/api-client/file-checkouts.js +43 -0
- package/dist/api-client/git-issues.d.ts +55 -0
- package/dist/api-client/git-issues.js +34 -0
- package/dist/api-client/index.d.ts +619 -1
- package/dist/api-client/index.js +148 -0
- package/dist/api-client/organizations.d.ts +101 -0
- package/dist/api-client/organizations.js +86 -0
- package/dist/api-client/progress.d.ts +61 -0
- package/dist/api-client/progress.js +34 -0
- package/dist/api-client/requests.d.ts +28 -0
- package/dist/api-client/requests.js +28 -0
- package/dist/api-client/sprints.d.ts +153 -0
- package/dist/api-client/sprints.js +82 -0
- package/dist/api-client/subtasks.d.ts +37 -0
- package/dist/api-client/subtasks.js +23 -0
- package/dist/api-client.d.ts +22 -0
- package/dist/api-client.js +15 -0
- package/dist/handlers/blockers.js +4 -0
- package/dist/handlers/chat.d.ts +21 -0
- package/dist/handlers/chat.js +59 -0
- package/dist/handlers/deployment.d.ts +3 -0
- package/dist/handlers/deployment.js +23 -0
- package/dist/handlers/discovery.js +1 -0
- package/dist/handlers/index.d.ts +1 -0
- package/dist/handlers/index.js +3 -0
- package/dist/handlers/session.js +113 -0
- package/dist/handlers/tasks.js +7 -0
- package/dist/handlers/tool-docs.js +7 -0
- package/dist/tools/deployment.js +13 -0
- package/docs/TOOLS.md +17 -3
- package/package.json +1 -1
- package/src/api-client/bodies-of-work.ts +194 -0
- package/src/api-client/chat.ts +50 -0
- package/src/api-client/connectors.ts +152 -0
- package/src/api-client/deployment.ts +313 -0
- package/src/api-client/file-checkouts.ts +115 -0
- package/src/api-client/git-issues.ts +88 -0
- package/src/api-client/index.ts +179 -13
- package/src/api-client/organizations.ts +185 -0
- package/src/api-client/progress.ts +94 -0
- package/src/api-client/requests.ts +54 -0
- package/src/api-client/sprints.ts +227 -0
- package/src/api-client/subtasks.ts +57 -0
- package/src/api-client.test.ts +16 -19
- package/src/api-client.ts +34 -0
- package/src/handlers/__test-setup__.ts +4 -0
- package/src/handlers/blockers.ts +9 -0
- package/src/handlers/chat.test.ts +185 -0
- package/src/handlers/chat.ts +69 -0
- package/src/handlers/deployment.ts +29 -0
- package/src/handlers/discovery.ts +1 -0
- package/src/handlers/index.ts +3 -0
- package/src/handlers/session.ts +138 -0
- package/src/handlers/tasks.ts +12 -0
- package/src/handlers/tool-docs.ts +8 -0
- package/src/tools/deployment.ts +13 -0
|
@@ -20,6 +20,17 @@ import { type FindingsMethods } from './findings.js';
|
|
|
20
20
|
import { type MilestonesMethods } from './milestones.js';
|
|
21
21
|
import { type ValidationMethods } from './validation.js';
|
|
22
22
|
import { type FallbackMethods } from './fallback.js';
|
|
23
|
+
import { type RequestsMethods } from './requests.js';
|
|
24
|
+
import { type DeploymentMethods } from './deployment.js';
|
|
25
|
+
import { type OrganizationsMethods } from './organizations.js';
|
|
26
|
+
import { type BodiesOfWorkMethods } from './bodies-of-work.js';
|
|
27
|
+
import { type GitIssuesMethods } from './git-issues.js';
|
|
28
|
+
import { type FileCheckoutsMethods } from './file-checkouts.js';
|
|
29
|
+
import { type ConnectorsMethods } from './connectors.js';
|
|
30
|
+
import { type SprintsMethods } from './sprints.js';
|
|
31
|
+
import { type SubtasksMethods } from './subtasks.js';
|
|
32
|
+
import { type ProgressMethods } from './progress.js';
|
|
33
|
+
import { type ChatMethods } from './chat.js';
|
|
23
34
|
export type { ApiClientConfig, ApiResponse, RetryConfig, RequestFn, ProxyFn } from './types.js';
|
|
24
35
|
export type { SessionMethods } from './session.js';
|
|
25
36
|
export type { ProjectMethods } from './project.js';
|
|
@@ -34,10 +45,21 @@ export type { FindingsMethods } from './findings.js';
|
|
|
34
45
|
export type { MilestonesMethods } from './milestones.js';
|
|
35
46
|
export type { ValidationMethods } from './validation.js';
|
|
36
47
|
export type { FallbackMethods } from './fallback.js';
|
|
48
|
+
export type { RequestsMethods } from './requests.js';
|
|
49
|
+
export type { DeploymentMethods } from './deployment.js';
|
|
50
|
+
export type { OrganizationsMethods } from './organizations.js';
|
|
51
|
+
export type { BodiesOfWorkMethods } from './bodies-of-work.js';
|
|
52
|
+
export type { GitIssuesMethods } from './git-issues.js';
|
|
53
|
+
export type { FileCheckoutsMethods } from './file-checkouts.js';
|
|
54
|
+
export type { ConnectorsMethods } from './connectors.js';
|
|
55
|
+
export type { SprintsMethods } from './sprints.js';
|
|
56
|
+
export type { SubtasksMethods } from './subtasks.js';
|
|
57
|
+
export type { ProgressMethods } from './progress.js';
|
|
58
|
+
export type { ChatMethods } from './chat.js';
|
|
37
59
|
/**
|
|
38
60
|
* Combined interface for all API methods
|
|
39
61
|
*/
|
|
40
|
-
export interface VibescopeApiClientMethods extends SessionMethods, ProjectMethods, BlockersMethods, CostMethods, WorktreesMethods, DiscoveryMethods, DecisionsMethods, IdeasMethods, TasksMethods, FindingsMethods, MilestonesMethods, ValidationMethods, FallbackMethods {
|
|
62
|
+
export interface VibescopeApiClientMethods extends SessionMethods, ProjectMethods, BlockersMethods, CostMethods, WorktreesMethods, DiscoveryMethods, DecisionsMethods, IdeasMethods, TasksMethods, FindingsMethods, MilestonesMethods, ValidationMethods, FallbackMethods, RequestsMethods, DeploymentMethods, OrganizationsMethods, BodiesOfWorkMethods, GitIssuesMethods, FileCheckoutsMethods, ConnectorsMethods, SprintsMethods, SubtasksMethods, ProgressMethods, ChatMethods {
|
|
41
63
|
}
|
|
42
64
|
export declare class VibescopeApiClient implements VibescopeApiClientMethods {
|
|
43
65
|
private apiKey;
|
|
@@ -56,6 +78,17 @@ export declare class VibescopeApiClient implements VibescopeApiClientMethods {
|
|
|
56
78
|
private milestonesMethods;
|
|
57
79
|
private validationMethods;
|
|
58
80
|
private fallbackMethods;
|
|
81
|
+
private requestsMethods;
|
|
82
|
+
private deploymentMethods;
|
|
83
|
+
private organizationsMethods;
|
|
84
|
+
private bodiesOfWorkMethods;
|
|
85
|
+
private gitIssuesMethods;
|
|
86
|
+
private fileCheckoutsMethods;
|
|
87
|
+
private connectorsMethods;
|
|
88
|
+
private sprintsMethods;
|
|
89
|
+
private subtasksMethods;
|
|
90
|
+
private progressMethods;
|
|
91
|
+
private chatMethods;
|
|
59
92
|
constructor(config: ApiClientConfig);
|
|
60
93
|
private request;
|
|
61
94
|
/**
|
|
@@ -821,6 +854,591 @@ export declare class VibescopeApiClient implements VibescopeApiClientMethods {
|
|
|
821
854
|
stopFallbackActivity: (projectId: string, summary?: string, sessionId?: string) => Promise<ApiResponse<{
|
|
822
855
|
success: boolean;
|
|
823
856
|
}>>;
|
|
857
|
+
getPendingRequests: (projectId: string, sessionId?: string, limit?: number, offset?: number) => Promise<ApiResponse<{
|
|
858
|
+
requests: Array<{
|
|
859
|
+
id: string;
|
|
860
|
+
request_type: string;
|
|
861
|
+
message: string;
|
|
862
|
+
created_at: string;
|
|
863
|
+
}>;
|
|
864
|
+
total_count: number;
|
|
865
|
+
has_more: boolean;
|
|
866
|
+
}>>;
|
|
867
|
+
acknowledgeRequest: (requestId: string, sessionId?: string) => Promise<ApiResponse<{
|
|
868
|
+
success: boolean;
|
|
869
|
+
}>>;
|
|
870
|
+
answerQuestion: (requestId: string, answer: string, sessionId?: string) => Promise<ApiResponse<{
|
|
871
|
+
success: boolean;
|
|
872
|
+
}>>;
|
|
873
|
+
requestDeployment: (projectId: string, params?: Parameters<DeploymentMethods["requestDeployment"]>[1], sessionId?: string) => Promise<ApiResponse<{
|
|
874
|
+
success: boolean;
|
|
875
|
+
deployment_id: string;
|
|
876
|
+
status: string;
|
|
877
|
+
}>>;
|
|
878
|
+
checkDeploymentStatus: (projectId: string) => Promise<ApiResponse<{
|
|
879
|
+
active_deployment: boolean;
|
|
880
|
+
deployment?: {
|
|
881
|
+
id: string;
|
|
882
|
+
status: string;
|
|
883
|
+
environment: string;
|
|
884
|
+
git_ref?: string;
|
|
885
|
+
created_at: string;
|
|
886
|
+
};
|
|
887
|
+
}>>;
|
|
888
|
+
claimDeploymentValidation: (projectId: string, sessionId?: string) => Promise<ApiResponse<{
|
|
889
|
+
success: boolean;
|
|
890
|
+
deployment_id: string;
|
|
891
|
+
message: string;
|
|
892
|
+
}>>;
|
|
893
|
+
reportValidation: (projectId: string, params: Parameters<DeploymentMethods["reportValidation"]>[1]) => Promise<ApiResponse<{
|
|
894
|
+
success: boolean;
|
|
895
|
+
deployment_id: string;
|
|
896
|
+
status: string;
|
|
897
|
+
}>>;
|
|
898
|
+
startDeployment: (projectId: string, sessionId?: string) => Promise<ApiResponse<{
|
|
899
|
+
success: boolean;
|
|
900
|
+
deployment_id: string;
|
|
901
|
+
instructions: string;
|
|
902
|
+
}>>;
|
|
903
|
+
completeDeployment: (projectId: string, params: Parameters<DeploymentMethods["completeDeployment"]>[1]) => Promise<ApiResponse<{
|
|
904
|
+
success: boolean;
|
|
905
|
+
deployment_id: string;
|
|
906
|
+
status: string;
|
|
907
|
+
}>>;
|
|
908
|
+
cancelDeployment: (projectId: string, reason?: string) => Promise<ApiResponse<{
|
|
909
|
+
success: boolean;
|
|
910
|
+
}>>;
|
|
911
|
+
addDeploymentRequirement: (projectId: string, params: Parameters<DeploymentMethods["addDeploymentRequirement"]>[1]) => Promise<ApiResponse<{
|
|
912
|
+
success: boolean;
|
|
913
|
+
requirement_id: string;
|
|
914
|
+
}>>;
|
|
915
|
+
getDeploymentRequirements: (projectId: string, params?: Parameters<DeploymentMethods["getDeploymentRequirements"]>[1]) => Promise<ApiResponse<{
|
|
916
|
+
requirements: Array<{
|
|
917
|
+
id: string;
|
|
918
|
+
type: string;
|
|
919
|
+
title: string;
|
|
920
|
+
description?: string;
|
|
921
|
+
status: string;
|
|
922
|
+
stage: string;
|
|
923
|
+
}>;
|
|
924
|
+
total_count: number;
|
|
925
|
+
has_more: boolean;
|
|
926
|
+
}>>;
|
|
927
|
+
getDeploymentRequirementsStats: (projectId: string) => Promise<ApiResponse<{
|
|
928
|
+
total: number;
|
|
929
|
+
by_status: Record<string, number>;
|
|
930
|
+
by_stage: Record<string, number>;
|
|
931
|
+
by_type: Record<string, number>;
|
|
932
|
+
}>>;
|
|
933
|
+
completeDeploymentRequirement: (requirementId: string) => Promise<ApiResponse<{
|
|
934
|
+
success: boolean;
|
|
935
|
+
}>>;
|
|
936
|
+
reorderDeploymentRequirements: (projectId: string, params: Parameters<DeploymentMethods["reorderDeploymentRequirements"]>[1]) => Promise<ApiResponse<{
|
|
937
|
+
success: boolean;
|
|
938
|
+
reordered: number;
|
|
939
|
+
}>>;
|
|
940
|
+
scheduleDeployment: (projectId: string, params: Parameters<DeploymentMethods["scheduleDeployment"]>[1]) => Promise<ApiResponse<{
|
|
941
|
+
success: boolean;
|
|
942
|
+
schedule_id: string;
|
|
943
|
+
}>>;
|
|
944
|
+
getScheduledDeployments: (projectId: string, params?: Parameters<DeploymentMethods["getScheduledDeployments"]>[1]) => Promise<ApiResponse<{
|
|
945
|
+
schedules: Array<{
|
|
946
|
+
id: string;
|
|
947
|
+
scheduled_at: string;
|
|
948
|
+
schedule_type: string;
|
|
949
|
+
hours_interval: number;
|
|
950
|
+
environment: string;
|
|
951
|
+
version_bump: string;
|
|
952
|
+
auto_trigger: boolean;
|
|
953
|
+
enabled: boolean;
|
|
954
|
+
git_ref?: string;
|
|
955
|
+
notes?: string;
|
|
956
|
+
}>;
|
|
957
|
+
total_count: number;
|
|
958
|
+
has_more: boolean;
|
|
959
|
+
}>>;
|
|
960
|
+
updateScheduledDeployment: (scheduleId: string, updates: Parameters<DeploymentMethods["updateScheduledDeployment"]>[1]) => Promise<ApiResponse<{
|
|
961
|
+
success: boolean;
|
|
962
|
+
schedule_id: string;
|
|
963
|
+
}>>;
|
|
964
|
+
deleteScheduledDeployment: (scheduleId: string) => Promise<ApiResponse<{
|
|
965
|
+
success: boolean;
|
|
966
|
+
}>>;
|
|
967
|
+
triggerScheduledDeployment: (scheduleId: string, sessionId?: string) => Promise<ApiResponse<{
|
|
968
|
+
success: boolean;
|
|
969
|
+
deployment_id?: string;
|
|
970
|
+
schedule_id: string;
|
|
971
|
+
schedule_type: string;
|
|
972
|
+
next_scheduled_at?: string;
|
|
973
|
+
message?: string;
|
|
974
|
+
}>>;
|
|
975
|
+
checkDueDeployments: (projectId: string) => Promise<ApiResponse<{
|
|
976
|
+
due_schedules: Array<{
|
|
977
|
+
id: string;
|
|
978
|
+
scheduled_at: string;
|
|
979
|
+
environment: string;
|
|
980
|
+
version_bump: string;
|
|
981
|
+
schedule_type: string;
|
|
982
|
+
}>;
|
|
983
|
+
count: number;
|
|
984
|
+
}>>;
|
|
985
|
+
listOrganizations: () => Promise<ApiResponse<{
|
|
986
|
+
organizations: Array<{
|
|
987
|
+
id: string;
|
|
988
|
+
name: string;
|
|
989
|
+
slug: string;
|
|
990
|
+
description?: string;
|
|
991
|
+
role: string;
|
|
992
|
+
}>;
|
|
993
|
+
}>>;
|
|
994
|
+
createOrganization: (params: Parameters<OrganizationsMethods["createOrganization"]>[0]) => Promise<ApiResponse<{
|
|
995
|
+
success: boolean;
|
|
996
|
+
organization: {
|
|
997
|
+
id: string;
|
|
998
|
+
name: string;
|
|
999
|
+
slug: string;
|
|
1000
|
+
};
|
|
1001
|
+
}>>;
|
|
1002
|
+
updateOrganization: (organizationId: string, updates: Parameters<OrganizationsMethods["updateOrganization"]>[1]) => Promise<ApiResponse<{
|
|
1003
|
+
success: boolean;
|
|
1004
|
+
organization_id: string;
|
|
1005
|
+
}>>;
|
|
1006
|
+
deleteOrganization: (organizationId: string) => Promise<ApiResponse<{
|
|
1007
|
+
success: boolean;
|
|
1008
|
+
}>>;
|
|
1009
|
+
listOrgMembers: (organizationId: string) => Promise<ApiResponse<{
|
|
1010
|
+
members: Array<{
|
|
1011
|
+
user_id: string;
|
|
1012
|
+
email: string;
|
|
1013
|
+
role: string;
|
|
1014
|
+
joined_at: string;
|
|
1015
|
+
}>;
|
|
1016
|
+
}>>;
|
|
1017
|
+
inviteMember: (organizationId: string, email: string, role?: string) => Promise<ApiResponse<{
|
|
1018
|
+
success: boolean;
|
|
1019
|
+
invite_id: string;
|
|
1020
|
+
}>>;
|
|
1021
|
+
updateMemberRole: (organizationId: string, userId: string, role: string) => Promise<ApiResponse<{
|
|
1022
|
+
success: boolean;
|
|
1023
|
+
}>>;
|
|
1024
|
+
removeMember: (organizationId: string, userId: string) => Promise<ApiResponse<{
|
|
1025
|
+
success: boolean;
|
|
1026
|
+
}>>;
|
|
1027
|
+
leaveOrganization: (organizationId: string) => Promise<ApiResponse<{
|
|
1028
|
+
success: boolean;
|
|
1029
|
+
message: string;
|
|
1030
|
+
}>>;
|
|
1031
|
+
shareProjectWithOrg: (projectId: string, organizationId: string, permission?: string) => Promise<ApiResponse<{
|
|
1032
|
+
success: boolean;
|
|
1033
|
+
}>>;
|
|
1034
|
+
unshareProject: (projectId: string, organizationId: string) => Promise<ApiResponse<{
|
|
1035
|
+
success: boolean;
|
|
1036
|
+
}>>;
|
|
1037
|
+
updateProjectShare: (projectId: string, organizationId: string, permission: string) => Promise<ApiResponse<{
|
|
1038
|
+
success: boolean;
|
|
1039
|
+
share: {
|
|
1040
|
+
permission: string;
|
|
1041
|
+
};
|
|
1042
|
+
}>>;
|
|
1043
|
+
listProjectShares: (projectId: string) => Promise<ApiResponse<{
|
|
1044
|
+
shares: Array<{
|
|
1045
|
+
id: string;
|
|
1046
|
+
permission: string;
|
|
1047
|
+
shared_at: string;
|
|
1048
|
+
organization: {
|
|
1049
|
+
id: string;
|
|
1050
|
+
name: string;
|
|
1051
|
+
slug: string;
|
|
1052
|
+
};
|
|
1053
|
+
}>;
|
|
1054
|
+
count: number;
|
|
1055
|
+
}>>;
|
|
1056
|
+
createBodyOfWork: (projectId: string, params: Parameters<BodiesOfWorkMethods["createBodyOfWork"]>[1]) => Promise<ApiResponse<{
|
|
1057
|
+
success: boolean;
|
|
1058
|
+
body_of_work_id: string;
|
|
1059
|
+
}>>;
|
|
1060
|
+
getBodyOfWork: (bodyOfWorkId: string) => Promise<ApiResponse<{
|
|
1061
|
+
body_of_work: {
|
|
1062
|
+
id: string;
|
|
1063
|
+
title: string;
|
|
1064
|
+
description?: string;
|
|
1065
|
+
status: string;
|
|
1066
|
+
auto_deploy_on_completion: boolean;
|
|
1067
|
+
};
|
|
1068
|
+
tasks: {
|
|
1069
|
+
pre: Array<{
|
|
1070
|
+
id: string;
|
|
1071
|
+
title: string;
|
|
1072
|
+
status: string;
|
|
1073
|
+
}>;
|
|
1074
|
+
core: Array<{
|
|
1075
|
+
id: string;
|
|
1076
|
+
title: string;
|
|
1077
|
+
status: string;
|
|
1078
|
+
}>;
|
|
1079
|
+
post: Array<{
|
|
1080
|
+
id: string;
|
|
1081
|
+
title: string;
|
|
1082
|
+
status: string;
|
|
1083
|
+
}>;
|
|
1084
|
+
};
|
|
1085
|
+
}>>;
|
|
1086
|
+
getBodiesOfWork: (projectId: string, params?: Parameters<BodiesOfWorkMethods["getBodiesOfWork"]>[1]) => Promise<ApiResponse<{
|
|
1087
|
+
bodies_of_work: Array<{
|
|
1088
|
+
id: string;
|
|
1089
|
+
title: string;
|
|
1090
|
+
description?: string;
|
|
1091
|
+
status: string;
|
|
1092
|
+
task_counts: {
|
|
1093
|
+
pre: number;
|
|
1094
|
+
core: number;
|
|
1095
|
+
post: number;
|
|
1096
|
+
};
|
|
1097
|
+
}>;
|
|
1098
|
+
}>>;
|
|
1099
|
+
updateBodyOfWork: (bodyOfWorkId: string, updates: Parameters<BodiesOfWorkMethods["updateBodyOfWork"]>[1]) => Promise<ApiResponse<{
|
|
1100
|
+
success: boolean;
|
|
1101
|
+
}>>;
|
|
1102
|
+
deleteBodyOfWork: (bodyOfWorkId: string) => Promise<ApiResponse<{
|
|
1103
|
+
success: boolean;
|
|
1104
|
+
}>>;
|
|
1105
|
+
addTaskToBodyOfWork: (bodyOfWorkId: string, taskId: string, phase?: string, orderIndex?: number) => Promise<ApiResponse<{
|
|
1106
|
+
success: boolean;
|
|
1107
|
+
}>>;
|
|
1108
|
+
removeTaskFromBodyOfWork: (taskId: string) => Promise<ApiResponse<{
|
|
1109
|
+
success: boolean;
|
|
1110
|
+
}>>;
|
|
1111
|
+
activateBodyOfWork: (bodyOfWorkId: string) => Promise<ApiResponse<{
|
|
1112
|
+
success: boolean;
|
|
1113
|
+
status: string;
|
|
1114
|
+
}>>;
|
|
1115
|
+
addTaskDependency: (bodyOfWorkId: string, taskId: string, dependsOnTaskId: string) => Promise<ApiResponse<{
|
|
1116
|
+
success: boolean;
|
|
1117
|
+
}>>;
|
|
1118
|
+
removeTaskDependency: (taskId: string, dependsOnTaskId: string) => Promise<ApiResponse<{
|
|
1119
|
+
success: boolean;
|
|
1120
|
+
}>>;
|
|
1121
|
+
getTaskDependencies: (params: Parameters<BodiesOfWorkMethods["getTaskDependencies"]>[0]) => Promise<ApiResponse<{
|
|
1122
|
+
dependencies: Array<{
|
|
1123
|
+
id: string;
|
|
1124
|
+
task_id: string;
|
|
1125
|
+
depends_on_task_id: string;
|
|
1126
|
+
created_at: string;
|
|
1127
|
+
}>;
|
|
1128
|
+
}>>;
|
|
1129
|
+
getNextBodyOfWorkTask: (bodyOfWorkId: string) => Promise<ApiResponse<{
|
|
1130
|
+
task?: {
|
|
1131
|
+
id: string;
|
|
1132
|
+
title: string;
|
|
1133
|
+
priority: number;
|
|
1134
|
+
phase: string;
|
|
1135
|
+
} | null;
|
|
1136
|
+
message?: string;
|
|
1137
|
+
}>>;
|
|
1138
|
+
addGitIssue: (projectId: string, params: Parameters<GitIssuesMethods["addGitIssue"]>[1], sessionId?: string) => Promise<ApiResponse<{
|
|
1139
|
+
success: boolean;
|
|
1140
|
+
git_issue_id: string;
|
|
1141
|
+
}>>;
|
|
1142
|
+
resolveGitIssue: (gitIssueId: string, params?: Parameters<GitIssuesMethods["resolveGitIssue"]>[1], sessionId?: string) => Promise<ApiResponse<{
|
|
1143
|
+
success: boolean;
|
|
1144
|
+
git_issue_id: string;
|
|
1145
|
+
}>>;
|
|
1146
|
+
getGitIssues: (projectId: string, params?: Parameters<GitIssuesMethods["getGitIssues"]>[1]) => Promise<ApiResponse<{
|
|
1147
|
+
git_issues: Array<{
|
|
1148
|
+
id: string;
|
|
1149
|
+
issue_type: string;
|
|
1150
|
+
branch: string;
|
|
1151
|
+
target_branch?: string;
|
|
1152
|
+
pr_url?: string;
|
|
1153
|
+
conflicting_files?: string[];
|
|
1154
|
+
error_message?: string;
|
|
1155
|
+
status: string;
|
|
1156
|
+
created_at: string;
|
|
1157
|
+
resolved_at?: string;
|
|
1158
|
+
}>;
|
|
1159
|
+
}>>;
|
|
1160
|
+
deleteGitIssue: (gitIssueId: string) => Promise<ApiResponse<{
|
|
1161
|
+
success: boolean;
|
|
1162
|
+
}>>;
|
|
1163
|
+
checkoutFile: (projectId: string, filePath: string, reason?: string, sessionId?: string) => Promise<ApiResponse<{
|
|
1164
|
+
success: boolean;
|
|
1165
|
+
checkout_id: string;
|
|
1166
|
+
file_path: string;
|
|
1167
|
+
already_checked_out?: boolean;
|
|
1168
|
+
message: string;
|
|
1169
|
+
}>>;
|
|
1170
|
+
checkinFile: (params: Parameters<FileCheckoutsMethods["checkinFile"]>[0], sessionId?: string) => Promise<ApiResponse<{
|
|
1171
|
+
success: boolean;
|
|
1172
|
+
checkout_id: string;
|
|
1173
|
+
message: string;
|
|
1174
|
+
}>>;
|
|
1175
|
+
getFileCheckouts: (projectId: string, options?: Parameters<FileCheckoutsMethods["getFileCheckouts"]>[1]) => Promise<ApiResponse<{
|
|
1176
|
+
checkouts: Array<{
|
|
1177
|
+
id: string;
|
|
1178
|
+
file_path: string;
|
|
1179
|
+
status: string;
|
|
1180
|
+
checked_out_at: string;
|
|
1181
|
+
checkout_reason?: string;
|
|
1182
|
+
checked_in_at?: string;
|
|
1183
|
+
checkin_summary?: string;
|
|
1184
|
+
checked_out_by?: string;
|
|
1185
|
+
}>;
|
|
1186
|
+
}>>;
|
|
1187
|
+
abandonCheckout: (params: Parameters<FileCheckoutsMethods["abandonCheckout"]>[0]) => Promise<ApiResponse<{
|
|
1188
|
+
success: boolean;
|
|
1189
|
+
checkout_id: string;
|
|
1190
|
+
message: string;
|
|
1191
|
+
}>>;
|
|
1192
|
+
getFileCheckoutsStats: (projectId: string) => Promise<ApiResponse<{
|
|
1193
|
+
total: number;
|
|
1194
|
+
by_status: Record<string, number>;
|
|
1195
|
+
}>>;
|
|
1196
|
+
isFileAvailable: (projectId: string, filePath: string) => Promise<ApiResponse<{
|
|
1197
|
+
available: boolean;
|
|
1198
|
+
checkout?: {
|
|
1199
|
+
id: string;
|
|
1200
|
+
checked_out_by?: string;
|
|
1201
|
+
checked_out_at: string;
|
|
1202
|
+
checkout_reason?: string;
|
|
1203
|
+
};
|
|
1204
|
+
}>>;
|
|
1205
|
+
getConnectors: (projectId: string, params?: Parameters<ConnectorsMethods["getConnectors"]>[1]) => Promise<ApiResponse<{
|
|
1206
|
+
connectors: Array<{
|
|
1207
|
+
id: string;
|
|
1208
|
+
name: string;
|
|
1209
|
+
type: string;
|
|
1210
|
+
description?: string;
|
|
1211
|
+
status: string;
|
|
1212
|
+
events: Record<string, boolean>;
|
|
1213
|
+
events_sent: number;
|
|
1214
|
+
last_triggered_at?: string;
|
|
1215
|
+
last_error?: string;
|
|
1216
|
+
last_error_at?: string;
|
|
1217
|
+
created_at: string;
|
|
1218
|
+
}>;
|
|
1219
|
+
total_count: number;
|
|
1220
|
+
has_more: boolean;
|
|
1221
|
+
}>>;
|
|
1222
|
+
getConnector: (connectorId: string) => Promise<ApiResponse<{
|
|
1223
|
+
connector: {
|
|
1224
|
+
id: string;
|
|
1225
|
+
name: string;
|
|
1226
|
+
type: string;
|
|
1227
|
+
description?: string;
|
|
1228
|
+
config: Record<string, unknown>;
|
|
1229
|
+
events: Record<string, boolean>;
|
|
1230
|
+
status: string;
|
|
1231
|
+
events_sent: number;
|
|
1232
|
+
last_triggered_at?: string;
|
|
1233
|
+
last_error?: string;
|
|
1234
|
+
last_error_at?: string;
|
|
1235
|
+
created_at: string;
|
|
1236
|
+
};
|
|
1237
|
+
}>>;
|
|
1238
|
+
addConnector: (projectId: string, params: Parameters<ConnectorsMethods["addConnector"]>[1]) => Promise<ApiResponse<{
|
|
1239
|
+
success: boolean;
|
|
1240
|
+
connector_id: string;
|
|
1241
|
+
}>>;
|
|
1242
|
+
updateConnector: (connectorId: string, updates: Parameters<ConnectorsMethods["updateConnector"]>[1]) => Promise<ApiResponse<{
|
|
1243
|
+
success: boolean;
|
|
1244
|
+
connector_id: string;
|
|
1245
|
+
}>>;
|
|
1246
|
+
deleteConnector: (connectorId: string) => Promise<ApiResponse<{
|
|
1247
|
+
success: boolean;
|
|
1248
|
+
}>>;
|
|
1249
|
+
testConnector: (connectorId: string) => Promise<ApiResponse<{
|
|
1250
|
+
success: boolean;
|
|
1251
|
+
event_id: string;
|
|
1252
|
+
status?: number;
|
|
1253
|
+
error?: string;
|
|
1254
|
+
}>>;
|
|
1255
|
+
getConnectorEvents: (params: Parameters<ConnectorsMethods["getConnectorEvents"]>[0]) => Promise<ApiResponse<{
|
|
1256
|
+
events: Array<{
|
|
1257
|
+
id: string;
|
|
1258
|
+
connector_id: string;
|
|
1259
|
+
event_type: string;
|
|
1260
|
+
status: string;
|
|
1261
|
+
response_status?: number;
|
|
1262
|
+
error_message?: string;
|
|
1263
|
+
attempts: number;
|
|
1264
|
+
created_at: string;
|
|
1265
|
+
sent_at?: string;
|
|
1266
|
+
}>;
|
|
1267
|
+
total_count: number;
|
|
1268
|
+
has_more: boolean;
|
|
1269
|
+
}>>;
|
|
1270
|
+
createSprint: (projectId: string, params: Parameters<SprintsMethods["createSprint"]>[1]) => Promise<ApiResponse<{
|
|
1271
|
+
success: boolean;
|
|
1272
|
+
sprint_id: string;
|
|
1273
|
+
sprint_number: number;
|
|
1274
|
+
}>>;
|
|
1275
|
+
updateSprint: (sprintId: string, updates: Parameters<SprintsMethods["updateSprint"]>[1]) => Promise<ApiResponse<{
|
|
1276
|
+
success: boolean;
|
|
1277
|
+
}>>;
|
|
1278
|
+
getSprint: (sprintId: string, summaryOnly?: boolean) => Promise<ApiResponse<{
|
|
1279
|
+
id: string;
|
|
1280
|
+
title: string;
|
|
1281
|
+
goal?: string;
|
|
1282
|
+
sprint_number: number;
|
|
1283
|
+
sprint_status: string;
|
|
1284
|
+
start_date: string;
|
|
1285
|
+
end_date: string;
|
|
1286
|
+
progress_percentage: number;
|
|
1287
|
+
velocity_points: number;
|
|
1288
|
+
committed_points: number;
|
|
1289
|
+
pre_tasks?: unknown[];
|
|
1290
|
+
core_tasks?: unknown[];
|
|
1291
|
+
post_tasks?: unknown[];
|
|
1292
|
+
total_tasks?: number;
|
|
1293
|
+
task_counts?: {
|
|
1294
|
+
pre: {
|
|
1295
|
+
total: number;
|
|
1296
|
+
completed: number;
|
|
1297
|
+
};
|
|
1298
|
+
core: {
|
|
1299
|
+
total: number;
|
|
1300
|
+
completed: number;
|
|
1301
|
+
};
|
|
1302
|
+
post: {
|
|
1303
|
+
total: number;
|
|
1304
|
+
completed: number;
|
|
1305
|
+
};
|
|
1306
|
+
total: number;
|
|
1307
|
+
completed: number;
|
|
1308
|
+
in_progress: number;
|
|
1309
|
+
};
|
|
1310
|
+
next_task?: {
|
|
1311
|
+
id: string;
|
|
1312
|
+
title: string;
|
|
1313
|
+
priority: number;
|
|
1314
|
+
phase: string;
|
|
1315
|
+
} | null;
|
|
1316
|
+
}>>;
|
|
1317
|
+
getSprints: (projectId: string, params?: Parameters<SprintsMethods["getSprints"]>[1]) => Promise<ApiResponse<{
|
|
1318
|
+
sprints: Array<{
|
|
1319
|
+
id: string;
|
|
1320
|
+
title: string;
|
|
1321
|
+
sprint_number: number;
|
|
1322
|
+
sprint_status: string;
|
|
1323
|
+
start_date: string;
|
|
1324
|
+
end_date: string;
|
|
1325
|
+
progress_percentage: number;
|
|
1326
|
+
velocity_points: number;
|
|
1327
|
+
committed_points: number;
|
|
1328
|
+
}>;
|
|
1329
|
+
total_count: number;
|
|
1330
|
+
has_more: boolean;
|
|
1331
|
+
}>>;
|
|
1332
|
+
deleteSprint: (sprintId: string) => Promise<ApiResponse<{
|
|
1333
|
+
success: boolean;
|
|
1334
|
+
}>>;
|
|
1335
|
+
startSprint: (sprintId: string) => Promise<ApiResponse<{
|
|
1336
|
+
success: boolean;
|
|
1337
|
+
sprint_id: string;
|
|
1338
|
+
status: string;
|
|
1339
|
+
}>>;
|
|
1340
|
+
completeSprint: (sprintId: string, params?: Parameters<SprintsMethods["completeSprint"]>[1]) => Promise<ApiResponse<{
|
|
1341
|
+
success: boolean;
|
|
1342
|
+
sprint_id: string;
|
|
1343
|
+
status: string;
|
|
1344
|
+
}>>;
|
|
1345
|
+
addTaskToSprint: (sprintId: string, taskId: string, params?: Parameters<SprintsMethods["addTaskToSprint"]>[2]) => Promise<ApiResponse<{
|
|
1346
|
+
success: boolean;
|
|
1347
|
+
}>>;
|
|
1348
|
+
removeTaskFromSprint: (sprintId: string, taskId: string) => Promise<ApiResponse<{
|
|
1349
|
+
success: boolean;
|
|
1350
|
+
}>>;
|
|
1351
|
+
getSprintBacklog: (projectId: string, sprintId?: string, params?: Parameters<SprintsMethods["getSprintBacklog"]>[2]) => Promise<ApiResponse<{
|
|
1352
|
+
tasks: Array<{
|
|
1353
|
+
id: string;
|
|
1354
|
+
title: string;
|
|
1355
|
+
priority: number;
|
|
1356
|
+
status: string;
|
|
1357
|
+
estimated_minutes?: number;
|
|
1358
|
+
}>;
|
|
1359
|
+
total_count: number;
|
|
1360
|
+
has_more: boolean;
|
|
1361
|
+
}>>;
|
|
1362
|
+
getSprintVelocity: (projectId: string, limit?: number) => Promise<ApiResponse<{
|
|
1363
|
+
sprints: Array<{
|
|
1364
|
+
sprint_id: string;
|
|
1365
|
+
sprint_number: number;
|
|
1366
|
+
title: string;
|
|
1367
|
+
committed_points: number;
|
|
1368
|
+
velocity_points: number;
|
|
1369
|
+
completion_rate: number;
|
|
1370
|
+
}>;
|
|
1371
|
+
average_velocity: number;
|
|
1372
|
+
total_sprints: number;
|
|
1373
|
+
}>>;
|
|
1374
|
+
addSubtask: (parentTaskId: string, params: Parameters<SubtasksMethods["addSubtask"]>[1], sessionId?: string) => Promise<ApiResponse<{
|
|
1375
|
+
success: boolean;
|
|
1376
|
+
subtask_id: string;
|
|
1377
|
+
parent_task_id: string;
|
|
1378
|
+
}>>;
|
|
1379
|
+
getSubtasks: (parentTaskId: string, status?: string) => Promise<ApiResponse<{
|
|
1380
|
+
subtasks: Array<{
|
|
1381
|
+
id: string;
|
|
1382
|
+
title: string;
|
|
1383
|
+
description?: string;
|
|
1384
|
+
priority: number;
|
|
1385
|
+
status: string;
|
|
1386
|
+
progress_percentage?: number;
|
|
1387
|
+
estimated_minutes?: number;
|
|
1388
|
+
}>;
|
|
1389
|
+
stats: {
|
|
1390
|
+
total: number;
|
|
1391
|
+
completed: number;
|
|
1392
|
+
progress_percentage: number;
|
|
1393
|
+
};
|
|
1394
|
+
}>>;
|
|
1395
|
+
logProgress: (projectId: string, params: Parameters<ProgressMethods["logProgress"]>[1]) => Promise<ApiResponse<{
|
|
1396
|
+
success: boolean;
|
|
1397
|
+
progress_id: string;
|
|
1398
|
+
}>>;
|
|
1399
|
+
getActivityFeed: (projectId: string, params?: Parameters<ProgressMethods["getActivityFeed"]>[1]) => Promise<ApiResponse<{
|
|
1400
|
+
activities: Array<{
|
|
1401
|
+
type: string;
|
|
1402
|
+
data: unknown;
|
|
1403
|
+
timestamp: string;
|
|
1404
|
+
}>;
|
|
1405
|
+
}>>;
|
|
1406
|
+
getActivityHistory: (projectId: string, params?: Parameters<ProgressMethods["getActivityHistory"]>[1]) => Promise<ApiResponse<{
|
|
1407
|
+
history: Array<{
|
|
1408
|
+
id: string;
|
|
1409
|
+
activity_type: string;
|
|
1410
|
+
completed_at: string;
|
|
1411
|
+
summary?: string;
|
|
1412
|
+
}>;
|
|
1413
|
+
latest_by_type: Record<string, unknown>;
|
|
1414
|
+
count: number;
|
|
1415
|
+
}>>;
|
|
1416
|
+
getActivitySchedules: (projectId: string, params?: Parameters<ProgressMethods["getActivitySchedules"]>[1]) => Promise<ApiResponse<{
|
|
1417
|
+
schedules: Array<{
|
|
1418
|
+
id: string;
|
|
1419
|
+
activity_type: string;
|
|
1420
|
+
schedule_type: string;
|
|
1421
|
+
next_run_at?: string;
|
|
1422
|
+
enabled: boolean;
|
|
1423
|
+
}>;
|
|
1424
|
+
total_count: number;
|
|
1425
|
+
has_more: boolean;
|
|
1426
|
+
}>>;
|
|
1427
|
+
sendProjectMessage: (projectId: string, message: string, sessionId?: string) => Promise<ApiResponse<{
|
|
1428
|
+
success: boolean;
|
|
1429
|
+
message_id: string;
|
|
1430
|
+
sent_at: string;
|
|
1431
|
+
}>>;
|
|
1432
|
+
getProjectMessages: (projectId: string, limit?: number) => Promise<ApiResponse<{
|
|
1433
|
+
messages: Array<{
|
|
1434
|
+
id: string;
|
|
1435
|
+
sender_type: string;
|
|
1436
|
+
sender_name: string | null;
|
|
1437
|
+
content: string;
|
|
1438
|
+
created_at: string;
|
|
1439
|
+
}>;
|
|
1440
|
+
count: number;
|
|
1441
|
+
}>>;
|
|
824
1442
|
}
|
|
825
1443
|
export declare function getApiClient(): VibescopeApiClient;
|
|
826
1444
|
export declare function initApiClient(config: ApiClientConfig): VibescopeApiClient;
|