@@ -28,102 +28,100 @@ export interface ConfluenceGetTaskResponse {
2828 }
2929}
3030
31- export const confluenceGetTaskTool : ToolConfig <
32- ConfluenceGetTaskParams ,
33- ConfluenceGetTaskResponse
34- > = {
35- id : 'confluence_get_task' ,
36- name : 'Confluence Get Task' ,
37- description : 'Get a specific Confluence inline task by ID.' ,
38- version : '1.0.0' ,
31+ export const confluenceGetTaskTool : ToolConfig < ConfluenceGetTaskParams , ConfluenceGetTaskResponse > =
32+ {
33+ id : 'confluence_get_task' ,
34+ name : 'Confluence Get Task' ,
35+ description : 'Get a specific Confluence inline task by ID.' ,
36+ version : '1.0.0' ,
3937
40- oauth : {
41- required : true ,
42- provider : 'confluence' ,
43- } ,
44-
45- params : {
46- accessToken : {
47- type : 'string' ,
48- required : true ,
49- visibility : 'hidden' ,
50- description : 'OAuth access token for Confluence' ,
51- } ,
52- domain : {
53- type : 'string' ,
54- required : true ,
55- visibility : 'user-only' ,
56- description : 'Your Confluence domain (e.g., yourcompany.atlassian.net)' ,
57- } ,
58- taskId : {
59- type : 'string' ,
38+ oauth : {
6039 required : true ,
61- visibility : 'user-or-llm' ,
62- description : 'The ID of the task to retrieve' ,
40+ provider : 'confluence' ,
6341 } ,
64- cloudId : {
65- type : 'string' ,
66- required : false ,
67- visibility : 'user-only' ,
68- description :
69- 'Confluence Cloud ID for the instance. If not provided, it will be fetched using the domain.' ,
42+
43+ params : {
44+ accessToken : {
45+ type : 'string' ,
46+ required : true ,
47+ visibility : 'hidden' ,
48+ description : 'OAuth access token for Confluence' ,
49+ } ,
50+ domain : {
51+ type : 'string' ,
52+ required : true ,
53+ visibility : 'user-only' ,
54+ description : 'Your Confluence domain (e.g., yourcompany.atlassian.net)' ,
55+ } ,
56+ taskId : {
57+ type : 'string' ,
58+ required : true ,
59+ visibility : 'user-or-llm' ,
60+ description : 'The ID of the task to retrieve' ,
61+ } ,
62+ cloudId : {
63+ type : 'string' ,
64+ required : false ,
65+ visibility : 'user-only' ,
66+ description :
67+ 'Confluence Cloud ID for the instance. If not provided, it will be fetched using the domain.' ,
68+ } ,
7069 } ,
71- } ,
7270
73- request : {
74- url : ( ) => '/api/tools/confluence/tasks' ,
75- method : 'POST' ,
76- headers : ( params : ConfluenceGetTaskParams ) => ( {
77- Accept : 'application/json' ,
78- 'Content-Type' : 'application/json' ,
79- Authorization : `Bearer ${ params . accessToken } ` ,
80- } ) ,
81- body : ( params : ConfluenceGetTaskParams ) => ( {
82- domain : params . domain ,
83- accessToken : params . accessToken ,
84- cloudId : params . cloudId ,
85- taskId : params . taskId ,
86- } ) ,
87- } ,
71+ request : {
72+ url : ( ) => '/api/tools/confluence/tasks' ,
73+ method : 'POST' ,
74+ headers : ( params : ConfluenceGetTaskParams ) => ( {
75+ Accept : 'application/json' ,
76+ 'Content-Type' : 'application/json' ,
77+ Authorization : `Bearer ${ params . accessToken } ` ,
78+ } ) ,
79+ body : ( params : ConfluenceGetTaskParams ) => ( {
80+ domain : params . domain ,
81+ accessToken : params . accessToken ,
82+ cloudId : params . cloudId ,
83+ taskId : params . taskId ,
84+ } ) ,
85+ } ,
8886
89- transformResponse : async ( response : Response ) => {
90- const data = await response . json ( )
91- const task = data . task || data
92- return {
93- success : true ,
94- output : {
95- ts : new Date ( ) . toISOString ( ) ,
96- id : task . id ?? '' ,
97- localId : task . localId ?? null ,
98- spaceId : task . spaceId ?? null ,
99- pageId : task . pageId ?? null ,
100- blogPostId : task . blogPostId ?? null ,
101- status : task . status ?? '' ,
102- createdBy : task . createdBy ?? null ,
103- assignedTo : task . assignedTo ?? null ,
104- completedBy : task . completedBy ?? null ,
105- createdAt : task . createdAt ?? null ,
106- updatedAt : task . updatedAt ?? null ,
107- dueAt : task . dueAt ?? null ,
108- completedAt : task . completedAt ?? null ,
109- } ,
110- }
111- } ,
87+ transformResponse : async ( response : Response ) => {
88+ const data = await response . json ( )
89+ const task = data . task || data
90+ return {
91+ success : true ,
92+ output : {
93+ ts : new Date ( ) . toISOString ( ) ,
94+ id : task . id ?? '' ,
95+ localId : task . localId ?? null ,
96+ spaceId : task . spaceId ?? null ,
97+ pageId : task . pageId ?? null ,
98+ blogPostId : task . blogPostId ?? null ,
99+ status : task . status ?? '' ,
100+ createdBy : task . createdBy ?? null ,
101+ assignedTo : task . assignedTo ?? null ,
102+ completedBy : task . completedBy ?? null ,
103+ createdAt : task . createdAt ?? null ,
104+ updatedAt : task . updatedAt ?? null ,
105+ dueAt : task . dueAt ?? null ,
106+ completedAt : task . completedAt ?? null ,
107+ } ,
108+ }
109+ } ,
112110
113- outputs : {
114- ts : TIMESTAMP_OUTPUT ,
115- id : { type : 'string' , description : 'Task ID' } ,
116- localId : { type : 'string' , description : 'Local task ID' , optional : true } ,
117- spaceId : { type : 'string' , description : 'Space ID' , optional : true } ,
118- pageId : { type : 'string' , description : 'Page ID' , optional : true } ,
119- blogPostId : { type : 'string' , description : 'Blog post ID' , optional : true } ,
120- status : { type : 'string' , description : 'Task status (complete or incomplete)' } ,
121- createdBy : { type : 'string' , description : 'Creator account ID' , optional : true } ,
122- assignedTo : { type : 'string' , description : 'Assignee account ID' , optional : true } ,
123- completedBy : { type : 'string' , description : 'Completer account ID' , optional : true } ,
124- createdAt : { type : 'string' , description : 'Creation timestamp' , optional : true } ,
125- updatedAt : { type : 'string' , description : 'Last update timestamp' , optional : true } ,
126- dueAt : { type : 'string' , description : 'Due date' , optional : true } ,
127- completedAt : { type : 'string' , description : 'Completion timestamp' , optional : true } ,
128- } ,
129- }
111+ outputs : {
112+ ts : TIMESTAMP_OUTPUT ,
113+ id : { type : 'string' , description : 'Task ID' } ,
114+ localId : { type : 'string' , description : 'Local task ID' , optional : true } ,
115+ spaceId : { type : 'string' , description : 'Space ID' , optional : true } ,
116+ pageId : { type : 'string' , description : 'Page ID' , optional : true } ,
117+ blogPostId : { type : 'string' , description : 'Blog post ID' , optional : true } ,
118+ status : { type : 'string' , description : 'Task status (complete or incomplete)' } ,
119+ createdBy : { type : 'string' , description : 'Creator account ID' , optional : true } ,
120+ assignedTo : { type : 'string' , description : 'Assignee account ID' , optional : true } ,
121+ completedBy : { type : 'string' , description : 'Completer account ID' , optional : true } ,
122+ createdAt : { type : 'string' , description : 'Creation timestamp' , optional : true } ,
123+ updatedAt : { type : 'string' , description : 'Last update timestamp' , optional : true } ,
124+ dueAt : { type : 'string' , description : 'Due date' , optional : true } ,
125+ completedAt : { type : 'string' , description : 'Completion timestamp' , optional : true } ,
126+ } ,
127+ }
0 commit comments