mirror of
https://github.com/simstudioai/sim.git
synced 2026-04-06 03:00:16 -04:00
feat(confluence): add missing response fields for descendants and tasks
- Add type and depth fields to page descendants (from Confluence API) - Add body field (storage format) to task list/get/update responses Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -1248,10 +1248,12 @@ Get all descendants of a Confluence page recursively.
|
||||
| `descendants` | array | Array of descendant pages |
|
||||
| ↳ `id` | string | Page ID |
|
||||
| ↳ `title` | string | Page title |
|
||||
| ↳ `type` | string | Content type \(page, whiteboard, database, etc.\) |
|
||||
| ↳ `status` | string | Page status |
|
||||
| ↳ `spaceId` | string | Space ID |
|
||||
| ↳ `parentId` | string | Parent page ID |
|
||||
| ↳ `childPosition` | number | Position among siblings |
|
||||
| ↳ `depth` | number | Depth in the hierarchy |
|
||||
| `pageId` | string | Parent page ID |
|
||||
| `nextCursor` | string | Cursor for fetching the next page of results |
|
||||
|
||||
@@ -1284,6 +1286,7 @@ List inline tasks from Confluence. Optionally filter by page, space, assignee, o
|
||||
| ↳ `pageId` | string | Page ID |
|
||||
| ↳ `blogPostId` | string | Blog post ID |
|
||||
| ↳ `status` | string | Task status \(complete or incomplete\) |
|
||||
| ↳ `body` | string | Task body content in storage format |
|
||||
| ↳ `createdBy` | string | Creator account ID |
|
||||
| ↳ `assignedTo` | string | Assignee account ID |
|
||||
| ↳ `completedBy` | string | Completer account ID |
|
||||
@@ -1316,6 +1319,7 @@ Get a specific Confluence inline task by ID.
|
||||
| `pageId` | string | Page ID |
|
||||
| `blogPostId` | string | Blog post ID |
|
||||
| `status` | string | Task status \(complete or incomplete\) |
|
||||
| `body` | string | Task body content in storage format |
|
||||
| `createdBy` | string | Creator account ID |
|
||||
| `assignedTo` | string | Assignee account ID |
|
||||
| `completedBy` | string | Completer account ID |
|
||||
@@ -1348,6 +1352,7 @@ Update the status of a Confluence inline task (complete or incomplete).
|
||||
| `pageId` | string | Page ID |
|
||||
| `blogPostId` | string | Blog post ID |
|
||||
| `status` | string | Updated task status |
|
||||
| `body` | string | Task body content in storage format |
|
||||
| `createdBy` | string | Creator account ID |
|
||||
| `assignedTo` | string | Assignee account ID |
|
||||
| `completedBy` | string | Completer account ID |
|
||||
|
||||
@@ -82,10 +82,12 @@ export async function POST(request: NextRequest) {
|
||||
const descendants = (data.results || []).map((page: any) => ({
|
||||
id: page.id,
|
||||
title: page.title,
|
||||
type: page.type ?? null,
|
||||
status: page.status ?? null,
|
||||
spaceId: page.spaceId ?? null,
|
||||
parentId: page.parentId ?? null,
|
||||
childPosition: page.childPosition ?? null,
|
||||
depth: page.depth ?? null,
|
||||
}))
|
||||
|
||||
return NextResponse.json({
|
||||
|
||||
@@ -113,6 +113,7 @@ export async function POST(request: NextRequest) {
|
||||
pageId: data.pageId ?? null,
|
||||
blogPostId: data.blogPostId ?? null,
|
||||
status: data.status,
|
||||
body: data.body?.storage?.value ?? null,
|
||||
createdBy: data.createdBy ?? null,
|
||||
assignedTo: data.assignedTo ?? null,
|
||||
completedBy: data.completedBy ?? null,
|
||||
@@ -163,6 +164,7 @@ export async function POST(request: NextRequest) {
|
||||
pageId: data.pageId ?? null,
|
||||
blogPostId: data.blogPostId ?? null,
|
||||
status: data.status,
|
||||
body: data.body?.storage?.value ?? null,
|
||||
createdBy: data.createdBy ?? null,
|
||||
assignedTo: data.assignedTo ?? null,
|
||||
completedBy: data.completedBy ?? null,
|
||||
@@ -216,6 +218,7 @@ export async function POST(request: NextRequest) {
|
||||
pageId: task.pageId ?? null,
|
||||
blogPostId: task.blogPostId ?? null,
|
||||
status: task.status,
|
||||
body: task.body?.storage?.value ?? null,
|
||||
createdBy: task.createdBy ?? null,
|
||||
assignedTo: task.assignedTo ?? null,
|
||||
completedBy: task.completedBy ?? null,
|
||||
|
||||
@@ -17,10 +17,12 @@ export interface ConfluenceGetPageDescendantsResponse {
|
||||
descendants: Array<{
|
||||
id: string
|
||||
title: string
|
||||
type: string | null
|
||||
status: string | null
|
||||
spaceId: string | null
|
||||
parentId: string | null
|
||||
childPosition: number | null
|
||||
depth: number | null
|
||||
}>
|
||||
pageId: string
|
||||
nextCursor: string | null
|
||||
@@ -122,10 +124,12 @@ export const confluenceGetPageDescendantsTool: ToolConfig<
|
||||
properties: {
|
||||
id: { type: 'string', description: 'Page ID' },
|
||||
title: { type: 'string', description: 'Page title' },
|
||||
type: { type: 'string', description: 'Content type (page, whiteboard, database, etc.)', optional: true },
|
||||
status: { type: 'string', description: 'Page status', optional: true },
|
||||
spaceId: { type: 'string', description: 'Space ID', optional: true },
|
||||
parentId: { type: 'string', description: 'Parent page ID', optional: true },
|
||||
childPosition: { type: 'number', description: 'Position among siblings', optional: true },
|
||||
depth: { type: 'number', description: 'Depth in the hierarchy', optional: true },
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
@@ -18,6 +18,7 @@ export interface ConfluenceGetTaskResponse {
|
||||
pageId: string | null
|
||||
blogPostId: string | null
|
||||
status: string
|
||||
body: string | null
|
||||
createdBy: string | null
|
||||
assignedTo: string | null
|
||||
completedBy: string | null
|
||||
@@ -97,6 +98,7 @@ export const confluenceGetTaskTool: ToolConfig<ConfluenceGetTaskParams, Confluen
|
||||
pageId: task.pageId ?? null,
|
||||
blogPostId: task.blogPostId ?? null,
|
||||
status: task.status ?? '',
|
||||
body: task.body ?? null,
|
||||
createdBy: task.createdBy ?? null,
|
||||
assignedTo: task.assignedTo ?? null,
|
||||
completedBy: task.completedBy ?? null,
|
||||
@@ -116,6 +118,7 @@ export const confluenceGetTaskTool: ToolConfig<ConfluenceGetTaskParams, Confluen
|
||||
pageId: { type: 'string', description: 'Page ID', optional: true },
|
||||
blogPostId: { type: 'string', description: 'Blog post ID', optional: true },
|
||||
status: { type: 'string', description: 'Task status (complete or incomplete)' },
|
||||
body: { type: 'string', description: 'Task body content in storage format', optional: true },
|
||||
createdBy: { type: 'string', description: 'Creator account ID', optional: true },
|
||||
assignedTo: { type: 'string', description: 'Assignee account ID', optional: true },
|
||||
completedBy: { type: 'string', description: 'Completer account ID', optional: true },
|
||||
|
||||
@@ -24,6 +24,7 @@ export interface ConfluenceListTasksResponse {
|
||||
pageId: string | null
|
||||
blogPostId: string | null
|
||||
status: string
|
||||
body: string | null
|
||||
createdBy: string | null
|
||||
assignedTo: string | null
|
||||
completedBy: string | null
|
||||
@@ -156,6 +157,7 @@ export const confluenceListTasksTool: ToolConfig<
|
||||
pageId: { type: 'string', description: 'Page ID', optional: true },
|
||||
blogPostId: { type: 'string', description: 'Blog post ID', optional: true },
|
||||
status: { type: 'string', description: 'Task status (complete or incomplete)' },
|
||||
body: { type: 'string', description: 'Task body content in storage format', optional: true },
|
||||
createdBy: { type: 'string', description: 'Creator account ID', optional: true },
|
||||
assignedTo: { type: 'string', description: 'Assignee account ID', optional: true },
|
||||
completedBy: { type: 'string', description: 'Completer account ID', optional: true },
|
||||
|
||||
@@ -19,6 +19,7 @@ export interface ConfluenceUpdateTaskResponse {
|
||||
pageId: string | null
|
||||
blogPostId: string | null
|
||||
status: string
|
||||
body: string | null
|
||||
createdBy: string | null
|
||||
assignedTo: string | null
|
||||
completedBy: string | null
|
||||
@@ -108,6 +109,7 @@ export const confluenceUpdateTaskTool: ToolConfig<
|
||||
pageId: task.pageId ?? null,
|
||||
blogPostId: task.blogPostId ?? null,
|
||||
status: task.status ?? '',
|
||||
body: task.body ?? null,
|
||||
createdBy: task.createdBy ?? null,
|
||||
assignedTo: task.assignedTo ?? null,
|
||||
completedBy: task.completedBy ?? null,
|
||||
@@ -127,6 +129,7 @@ export const confluenceUpdateTaskTool: ToolConfig<
|
||||
pageId: { type: 'string', description: 'Page ID', optional: true },
|
||||
blogPostId: { type: 'string', description: 'Blog post ID', optional: true },
|
||||
status: { type: 'string', description: 'Updated task status' },
|
||||
body: { type: 'string', description: 'Task body content in storage format', optional: true },
|
||||
createdBy: { type: 'string', description: 'Creator account ID', optional: true },
|
||||
assignedTo: { type: 'string', description: 'Assignee account ID', optional: true },
|
||||
completedBy: { type: 'string', description: 'Completer account ID', optional: true },
|
||||
|
||||
Reference in New Issue
Block a user