castor-mcp 0.6.0
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/LICENSE +21 -0
- package/README.md +77 -0
- package/build/api-catalog.d.ts +27 -0
- package/build/api-catalog.js +76 -0
- package/build/api-catalog.js.map +1 -0
- package/build/confluence-client.d.ts +33 -0
- package/build/confluence-client.js +65 -0
- package/build/confluence-client.js.map +1 -0
- package/build/index.d.ts +2 -0
- package/build/index.js +137 -0
- package/build/index.js.map +1 -0
- package/build/resource-definitions.d.ts +10 -0
- package/build/resource-definitions.js +75 -0
- package/build/resource-definitions.js.map +1 -0
- package/build/tool-definitions.d.ts +19 -0
- package/build/tool-definitions.js +1811 -0
- package/build/tool-definitions.js.map +1 -0
- package/build/tools/admin-users-groups.d.ts +114 -0
- package/build/tools/admin-users-groups.js +150 -0
- package/build/tools/admin-users-groups.js.map +1 -0
- package/build/tools/admin.d.ts +12 -0
- package/build/tools/admin.js +30 -0
- package/build/tools/admin.js.map +1 -0
- package/build/tools/args.d.ts +2 -0
- package/build/tools/args.js +12 -0
- package/build/tools/args.js.map +1 -0
- package/build/tools/attachments.d.ts +138 -0
- package/build/tools/attachments.js +170 -0
- package/build/tools/attachments.js.map +1 -0
- package/build/tools/backup-restore.d.ts +144 -0
- package/build/tools/backup-restore.js +223 -0
- package/build/tools/backup-restore.js.map +1 -0
- package/build/tools/bulk-pages.d.ts +103 -0
- package/build/tools/bulk-pages.js +111 -0
- package/build/tools/bulk-pages.js.map +1 -0
- package/build/tools/color-schemes.d.ts +72 -0
- package/build/tools/color-schemes.js +121 -0
- package/build/tools/color-schemes.js.map +1 -0
- package/build/tools/content-structure.d.ts +164 -0
- package/build/tools/content-structure.js +220 -0
- package/build/tools/content-structure.js.map +1 -0
- package/build/tools/content.d.ts +194 -0
- package/build/tools/content.js +246 -0
- package/build/tools/content.js.map +1 -0
- package/build/tools/errors.d.ts +3 -0
- package/build/tools/errors.js +55 -0
- package/build/tools/errors.js.map +1 -0
- package/build/tools/index-management.d.ts +30 -0
- package/build/tools/index-management.js +64 -0
- package/build/tools/index-management.js.map +1 -0
- package/build/tools/labels.d.ts +108 -0
- package/build/tools/labels.js +160 -0
- package/build/tools/labels.js.map +1 -0
- package/build/tools/permissions.d.ts +554 -0
- package/build/tools/permissions.js +194 -0
- package/build/tools/permissions.js.map +1 -0
- package/build/tools/spaces-admin.d.ts +225 -0
- package/build/tools/spaces-admin.js +288 -0
- package/build/tools/spaces-admin.js.map +1 -0
- package/build/tools/spaces-pages.d.ts +103 -0
- package/build/tools/spaces-pages.js +150 -0
- package/build/tools/spaces-pages.js.map +1 -0
- package/build/tools/system.d.ts +42 -0
- package/build/tools/system.js +101 -0
- package/build/tools/system.js.map +1 -0
- package/build/tools/users-groups.d.ts +216 -0
- package/build/tools/users-groups.js +274 -0
- package/build/tools/users-groups.js.map +1 -0
- package/build/tools/webhooks.d.ts +105 -0
- package/build/tools/webhooks.js +124 -0
- package/build/tools/webhooks.js.map +1 -0
- package/build/version.d.ts +7 -0
- package/build/version.js +17 -0
- package/build/version.js.map +1 -0
- package/docs/api-catalog.yaml +2388 -0
- package/package.json +59 -0
- package/skills/content.md +85 -0
- package/skills/instance-maintenance.md +59 -0
- package/skills/permissions.md +47 -0
- package/skills/spaces-admin.md +59 -0
- package/skills/spaces-pages.md +24 -0
- package/skills/system.md +34 -0
- package/skills/users-groups.md +55 -0
- package/skills/webhooks.md +25 -0
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { ConfluenceClient } from "../confluence-client.js";
|
|
3
|
+
import { ToolResult } from "./spaces-pages.js";
|
|
4
|
+
export declare const ListPageAttachmentsArgsSchema: z.ZodObject<{
|
|
5
|
+
pageId: z.ZodString;
|
|
6
|
+
filename: z.ZodOptional<z.ZodString>;
|
|
7
|
+
mediaType: z.ZodOptional<z.ZodString>;
|
|
8
|
+
}, "strip", z.ZodTypeAny, {
|
|
9
|
+
pageId: string;
|
|
10
|
+
filename?: string | undefined;
|
|
11
|
+
mediaType?: string | undefined;
|
|
12
|
+
}, {
|
|
13
|
+
pageId: string;
|
|
14
|
+
filename?: string | undefined;
|
|
15
|
+
mediaType?: string | undefined;
|
|
16
|
+
}>;
|
|
17
|
+
export type ListPageAttachmentsArgs = z.infer<typeof ListPageAttachmentsArgsSchema>;
|
|
18
|
+
export declare function listPageAttachments(client: ConfluenceClient, args: ListPageAttachmentsArgs): Promise<ToolResult>;
|
|
19
|
+
export declare const CreateAttachmentArgsSchema: z.ZodObject<{
|
|
20
|
+
pageId: z.ZodString;
|
|
21
|
+
filename: z.ZodString;
|
|
22
|
+
contentBase64: z.ZodString;
|
|
23
|
+
mediaType: z.ZodOptional<z.ZodString>;
|
|
24
|
+
comment: z.ZodOptional<z.ZodString>;
|
|
25
|
+
}, "strip", z.ZodTypeAny, {
|
|
26
|
+
pageId: string;
|
|
27
|
+
filename: string;
|
|
28
|
+
contentBase64: string;
|
|
29
|
+
mediaType?: string | undefined;
|
|
30
|
+
comment?: string | undefined;
|
|
31
|
+
}, {
|
|
32
|
+
pageId: string;
|
|
33
|
+
filename: string;
|
|
34
|
+
contentBase64: string;
|
|
35
|
+
mediaType?: string | undefined;
|
|
36
|
+
comment?: string | undefined;
|
|
37
|
+
}>;
|
|
38
|
+
export type CreateAttachmentArgs = z.infer<typeof CreateAttachmentArgsSchema>;
|
|
39
|
+
export declare function createAttachment(client: ConfluenceClient, args: CreateAttachmentArgs): Promise<ToolResult>;
|
|
40
|
+
export declare const DeleteAttachmentArgsSchema: z.ZodObject<{
|
|
41
|
+
pageId: z.ZodString;
|
|
42
|
+
attachmentId: z.ZodString;
|
|
43
|
+
}, "strip", z.ZodTypeAny, {
|
|
44
|
+
pageId: string;
|
|
45
|
+
attachmentId: string;
|
|
46
|
+
}, {
|
|
47
|
+
pageId: string;
|
|
48
|
+
attachmentId: string;
|
|
49
|
+
}>;
|
|
50
|
+
export type DeleteAttachmentArgs = z.infer<typeof DeleteAttachmentArgsSchema>;
|
|
51
|
+
export declare function deleteAttachment(client: ConfluenceClient, args: DeleteAttachmentArgs): Promise<ToolResult>;
|
|
52
|
+
export declare const UpdateAttachmentMetadataArgsSchema: z.ZodObject<{
|
|
53
|
+
pageId: z.ZodString;
|
|
54
|
+
attachmentId: z.ZodString;
|
|
55
|
+
title: z.ZodString;
|
|
56
|
+
currentVersion: z.ZodNumber;
|
|
57
|
+
}, "strip", z.ZodTypeAny, {
|
|
58
|
+
pageId: string;
|
|
59
|
+
title: string;
|
|
60
|
+
currentVersion: number;
|
|
61
|
+
attachmentId: string;
|
|
62
|
+
}, {
|
|
63
|
+
pageId: string;
|
|
64
|
+
title: string;
|
|
65
|
+
currentVersion: number;
|
|
66
|
+
attachmentId: string;
|
|
67
|
+
}>;
|
|
68
|
+
export type UpdateAttachmentMetadataArgs = z.infer<typeof UpdateAttachmentMetadataArgsSchema>;
|
|
69
|
+
export declare function updateAttachmentMetadata(client: ConfluenceClient, args: UpdateAttachmentMetadataArgs): Promise<ToolResult>;
|
|
70
|
+
export declare const UpdateAttachmentDataArgsSchema: z.ZodObject<{
|
|
71
|
+
pageId: z.ZodString;
|
|
72
|
+
attachmentId: z.ZodString;
|
|
73
|
+
filename: z.ZodString;
|
|
74
|
+
contentBase64: z.ZodString;
|
|
75
|
+
mediaType: z.ZodOptional<z.ZodString>;
|
|
76
|
+
comment: z.ZodOptional<z.ZodString>;
|
|
77
|
+
}, "strip", z.ZodTypeAny, {
|
|
78
|
+
pageId: string;
|
|
79
|
+
filename: string;
|
|
80
|
+
contentBase64: string;
|
|
81
|
+
attachmentId: string;
|
|
82
|
+
mediaType?: string | undefined;
|
|
83
|
+
comment?: string | undefined;
|
|
84
|
+
}, {
|
|
85
|
+
pageId: string;
|
|
86
|
+
filename: string;
|
|
87
|
+
contentBase64: string;
|
|
88
|
+
attachmentId: string;
|
|
89
|
+
mediaType?: string | undefined;
|
|
90
|
+
comment?: string | undefined;
|
|
91
|
+
}>;
|
|
92
|
+
export type UpdateAttachmentDataArgs = z.infer<typeof UpdateAttachmentDataArgsSchema>;
|
|
93
|
+
export declare function updateAttachmentData(client: ConfluenceClient, args: UpdateAttachmentDataArgs): Promise<ToolResult>;
|
|
94
|
+
export declare const GetAttachmentExtractedTextArgsSchema: z.ZodObject<{
|
|
95
|
+
pageId: z.ZodString;
|
|
96
|
+
attachmentId: z.ZodString;
|
|
97
|
+
}, "strip", z.ZodTypeAny, {
|
|
98
|
+
pageId: string;
|
|
99
|
+
attachmentId: string;
|
|
100
|
+
}, {
|
|
101
|
+
pageId: string;
|
|
102
|
+
attachmentId: string;
|
|
103
|
+
}>;
|
|
104
|
+
export type GetAttachmentExtractedTextArgs = z.infer<typeof GetAttachmentExtractedTextArgsSchema>;
|
|
105
|
+
export declare function getAttachmentExtractedText(client: ConfluenceClient, args: GetAttachmentExtractedTextArgs): Promise<ToolResult>;
|
|
106
|
+
export declare const MoveAttachmentArgsSchema: z.ZodObject<{
|
|
107
|
+
pageId: z.ZodString;
|
|
108
|
+
attachmentId: z.ZodString;
|
|
109
|
+
newName: z.ZodOptional<z.ZodString>;
|
|
110
|
+
newContentId: z.ZodOptional<z.ZodString>;
|
|
111
|
+
}, "strip", z.ZodTypeAny, {
|
|
112
|
+
pageId: string;
|
|
113
|
+
attachmentId: string;
|
|
114
|
+
newName?: string | undefined;
|
|
115
|
+
newContentId?: string | undefined;
|
|
116
|
+
}, {
|
|
117
|
+
pageId: string;
|
|
118
|
+
attachmentId: string;
|
|
119
|
+
newName?: string | undefined;
|
|
120
|
+
newContentId?: string | undefined;
|
|
121
|
+
}>;
|
|
122
|
+
export type MoveAttachmentArgs = z.infer<typeof MoveAttachmentArgsSchema>;
|
|
123
|
+
export declare function moveAttachment(client: ConfluenceClient, args: MoveAttachmentArgs): Promise<ToolResult>;
|
|
124
|
+
export declare const DeleteAttachmentVersionArgsSchema: z.ZodObject<{
|
|
125
|
+
pageId: z.ZodString;
|
|
126
|
+
attachmentId: z.ZodString;
|
|
127
|
+
version: z.ZodNumber;
|
|
128
|
+
}, "strip", z.ZodTypeAny, {
|
|
129
|
+
pageId: string;
|
|
130
|
+
version: number;
|
|
131
|
+
attachmentId: string;
|
|
132
|
+
}, {
|
|
133
|
+
pageId: string;
|
|
134
|
+
version: number;
|
|
135
|
+
attachmentId: string;
|
|
136
|
+
}>;
|
|
137
|
+
export type DeleteAttachmentVersionArgs = z.infer<typeof DeleteAttachmentVersionArgsSchema>;
|
|
138
|
+
export declare function deleteAttachmentVersion(client: ConfluenceClient, args: DeleteAttachmentVersionArgs): Promise<ToolResult>;
|
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { withConfluenceErrorHandling } from "./errors.js";
|
|
3
|
+
import { jsonDetailBlock, MAX_LIST_RESULTS } from "./spaces-pages.js";
|
|
4
|
+
import { projectContentSummary } from "./content.js";
|
|
5
|
+
// Two things every multipart attachment upload below needs, confirmed live (2026-08-20):
|
|
6
|
+
// - X-Atlassian-Token: no-check — a real, documented Atlassian XSRF-check bypass for non-browser
|
|
7
|
+
// multipart uploads, not a formality.
|
|
8
|
+
// - Content-Type: undefined — ConfluenceClient's axios instance sets a default
|
|
9
|
+
// "Content-Type: application/json" header for every request; left in place, it silently
|
|
10
|
+
// pre-empts axios's own multipart-boundary auto-detection for FormData bodies and Confluence
|
|
11
|
+
// responds 415 Unsupported Media Type. Explicitly unsetting it here lets axios generate the
|
|
12
|
+
// correct "multipart/form-data; boundary=..." header itself.
|
|
13
|
+
const MULTIPART_UPLOAD_HEADERS = { "X-Atlassian-Token": "no-check", "Content-Type": undefined };
|
|
14
|
+
export const ListPageAttachmentsArgsSchema = z.object({
|
|
15
|
+
pageId: z.string().min(1),
|
|
16
|
+
filename: z.string().optional(),
|
|
17
|
+
mediaType: z.string().optional(),
|
|
18
|
+
});
|
|
19
|
+
export async function listPageAttachments(client, args) {
|
|
20
|
+
return withConfluenceErrorHandling(async () => {
|
|
21
|
+
const response = await client.get(`/rest/api/content/${encodeURIComponent(args.pageId)}/child/attachment`, {
|
|
22
|
+
filename: args.filename,
|
|
23
|
+
mediaType: args.mediaType,
|
|
24
|
+
expand: "space",
|
|
25
|
+
});
|
|
26
|
+
const items = (response.data.results ?? []).slice(0, MAX_LIST_RESULTS).map(projectContentSummary);
|
|
27
|
+
return {
|
|
28
|
+
content: [
|
|
29
|
+
{ type: "text", text: `✅ ${items.length} attachment(s) on page ${args.pageId}` },
|
|
30
|
+
jsonDetailBlock(items),
|
|
31
|
+
],
|
|
32
|
+
};
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
export const CreateAttachmentArgsSchema = z.object({
|
|
36
|
+
pageId: z.string().min(1),
|
|
37
|
+
filename: z.string().min(1),
|
|
38
|
+
contentBase64: z.string().min(1).describe("File content, base64-encoded."),
|
|
39
|
+
mediaType: z.string().optional(),
|
|
40
|
+
comment: z.string().optional(),
|
|
41
|
+
});
|
|
42
|
+
export async function createAttachment(client, args) {
|
|
43
|
+
return withConfluenceErrorHandling(async () => {
|
|
44
|
+
const bytes = Buffer.from(args.contentBase64, "base64");
|
|
45
|
+
const form = new FormData();
|
|
46
|
+
form.append("file", new Blob([bytes], { type: args.mediaType ?? "application/octet-stream" }), args.filename);
|
|
47
|
+
if (args.comment)
|
|
48
|
+
form.append("comment", args.comment);
|
|
49
|
+
const response = await client.post(`/rest/api/content/${encodeURIComponent(args.pageId)}/child/attachment`, form, MULTIPART_UPLOAD_HEADERS);
|
|
50
|
+
const uploaded = (response.data.results ?? [response.data]).map(projectContentSummary);
|
|
51
|
+
return {
|
|
52
|
+
content: [
|
|
53
|
+
{ type: "text", text: `✅ Attachment "${args.filename}" created on page ${args.pageId}` },
|
|
54
|
+
jsonDetailBlock(uploaded),
|
|
55
|
+
],
|
|
56
|
+
};
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
export const DeleteAttachmentArgsSchema = z.object({ pageId: z.string().min(1), attachmentId: z.string().min(1) });
|
|
60
|
+
export async function deleteAttachment(client, args) {
|
|
61
|
+
return withConfluenceErrorHandling(async () => {
|
|
62
|
+
await client.delete(`/rest/api/content/${encodeURIComponent(args.pageId)}/child/attachment/${encodeURIComponent(args.attachmentId)}`);
|
|
63
|
+
return { content: [{ type: "text", text: `✅ Attachment ${args.attachmentId} deleted from page ${args.pageId}` }] };
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
export const UpdateAttachmentMetadataArgsSchema = z.object({
|
|
67
|
+
pageId: z.string().min(1),
|
|
68
|
+
attachmentId: z.string().min(1),
|
|
69
|
+
title: z.string().min(1),
|
|
70
|
+
currentVersion: z.number().int().positive().describe("From list_page_attachments' version field."),
|
|
71
|
+
});
|
|
72
|
+
export async function updateAttachmentMetadata(client, args) {
|
|
73
|
+
return withConfluenceErrorHandling(async () => {
|
|
74
|
+
const response = await client.put(`/rest/api/content/${encodeURIComponent(args.pageId)}/child/attachment/${encodeURIComponent(args.attachmentId)}`, { id: args.attachmentId, type: "attachment", title: args.title, version: { number: args.currentVersion + 1 } });
|
|
75
|
+
const attachment = projectContentSummary(response.data);
|
|
76
|
+
return {
|
|
77
|
+
content: [
|
|
78
|
+
{ type: "text", text: `✅ Attachment ${args.attachmentId} renamed to "${attachment.title}"` },
|
|
79
|
+
jsonDetailBlock(attachment),
|
|
80
|
+
],
|
|
81
|
+
};
|
|
82
|
+
});
|
|
83
|
+
}
|
|
84
|
+
export const UpdateAttachmentDataArgsSchema = z.object({
|
|
85
|
+
pageId: z.string().min(1),
|
|
86
|
+
attachmentId: z.string().min(1),
|
|
87
|
+
filename: z
|
|
88
|
+
.string()
|
|
89
|
+
.min(1)
|
|
90
|
+
.describe("Confirmed live (2026-08-20): Confluence renames the attachment to whatever filename the " +
|
|
91
|
+
"multipart upload part carries — pass the attachment's existing filename (from " +
|
|
92
|
+
"list_page_attachments) to keep its name, or a new one to rename it as a side effect."),
|
|
93
|
+
contentBase64: z.string().min(1).describe("New file content, base64-encoded."),
|
|
94
|
+
mediaType: z.string().optional(),
|
|
95
|
+
comment: z.string().optional(),
|
|
96
|
+
});
|
|
97
|
+
export async function updateAttachmentData(client, args) {
|
|
98
|
+
return withConfluenceErrorHandling(async () => {
|
|
99
|
+
const bytes = Buffer.from(args.contentBase64, "base64");
|
|
100
|
+
const form = new FormData();
|
|
101
|
+
form.append("file", new Blob([bytes], { type: args.mediaType ?? "application/octet-stream" }), args.filename);
|
|
102
|
+
if (args.comment)
|
|
103
|
+
form.append("comment", args.comment);
|
|
104
|
+
const response = await client.post(`/rest/api/content/${encodeURIComponent(args.pageId)}/child/attachment/${encodeURIComponent(args.attachmentId)}/data`, form, MULTIPART_UPLOAD_HEADERS);
|
|
105
|
+
const attachment = projectContentSummary(response.data);
|
|
106
|
+
return {
|
|
107
|
+
content: [
|
|
108
|
+
{ type: "text", text: `✅ New data uploaded for attachment ${args.attachmentId}` },
|
|
109
|
+
jsonDetailBlock(attachment),
|
|
110
|
+
],
|
|
111
|
+
};
|
|
112
|
+
});
|
|
113
|
+
}
|
|
114
|
+
export const GetAttachmentExtractedTextArgsSchema = z.object({
|
|
115
|
+
pageId: z.string().min(1),
|
|
116
|
+
attachmentId: z.string().min(1),
|
|
117
|
+
});
|
|
118
|
+
export async function getAttachmentExtractedText(client, args) {
|
|
119
|
+
return withConfluenceErrorHandling(async () => {
|
|
120
|
+
const response = await client.get(`/rest/api/content/${encodeURIComponent(args.pageId)}/child/attachment/${encodeURIComponent(args.attachmentId)}/extractedtext`);
|
|
121
|
+
return {
|
|
122
|
+
content: [
|
|
123
|
+
{ type: "text", text: `✅ Extracted text for attachment ${args.attachmentId} retrieved` },
|
|
124
|
+
jsonDetailBlock(response.data),
|
|
125
|
+
],
|
|
126
|
+
};
|
|
127
|
+
});
|
|
128
|
+
}
|
|
129
|
+
export const MoveAttachmentArgsSchema = z.object({
|
|
130
|
+
pageId: z.string().min(1),
|
|
131
|
+
attachmentId: z.string().min(1),
|
|
132
|
+
newName: z.string().optional(),
|
|
133
|
+
newContentId: z
|
|
134
|
+
.string()
|
|
135
|
+
.optional()
|
|
136
|
+
.describe("Page to move the attachment to. Confirmed live (2026-08-20): despite the swagger schema " +
|
|
137
|
+
"marking this optional, Confluence's real behavior requires it on every call — \"New " +
|
|
138
|
+
"container ID is required!\" — even for a pure rename with no actual move. Omit to " +
|
|
139
|
+
"default to the attachment's current page (pageId)."),
|
|
140
|
+
});
|
|
141
|
+
export async function moveAttachment(client, args) {
|
|
142
|
+
return withConfluenceErrorHandling(async () => {
|
|
143
|
+
// newName/newContentId are query params on this endpoint, not a request body. newContentId is
|
|
144
|
+
// required by the real server despite being schema-optional — default it to the current page
|
|
145
|
+
// so callers can rename without also having to know this quirk.
|
|
146
|
+
const query = new URLSearchParams();
|
|
147
|
+
if (args.newName)
|
|
148
|
+
query.set("newName", args.newName);
|
|
149
|
+
query.set("newContentId", args.newContentId ?? args.pageId);
|
|
150
|
+
const queryString = query.toString();
|
|
151
|
+
await client.post(`/rest/api/content/${encodeURIComponent(args.pageId)}/child/attachment/${encodeURIComponent(args.attachmentId)}/move${queryString ? `?${queryString}` : ""}`);
|
|
152
|
+
return {
|
|
153
|
+
content: [{ type: "text", text: `✅ Attachment ${args.attachmentId} moved` }],
|
|
154
|
+
};
|
|
155
|
+
});
|
|
156
|
+
}
|
|
157
|
+
export const DeleteAttachmentVersionArgsSchema = z.object({
|
|
158
|
+
pageId: z.string().min(1),
|
|
159
|
+
attachmentId: z.string().min(1),
|
|
160
|
+
version: z.number().int().positive(),
|
|
161
|
+
});
|
|
162
|
+
export async function deleteAttachmentVersion(client, args) {
|
|
163
|
+
return withConfluenceErrorHandling(async () => {
|
|
164
|
+
await client.delete(`/rest/api/content/${encodeURIComponent(args.pageId)}/child/attachment/${encodeURIComponent(args.attachmentId)}/version/${args.version}`);
|
|
165
|
+
return {
|
|
166
|
+
content: [{ type: "text", text: `✅ Version ${args.version} of attachment ${args.attachmentId} deleted` }],
|
|
167
|
+
};
|
|
168
|
+
});
|
|
169
|
+
}
|
|
170
|
+
//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AC,CAAC,CAAC;IACzB,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAC/B,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE;CACrC,CAAC,CAAC;AAGH,MAAM,CAAC,KAAK,UAAU,uBAAuB,CAC3C,MAAwB,EACxB,IAAiC;IAEjC,OAAO,2BAA2B,CAAC,KAAK,IAAI,EAAE;QAC5C,MAAM,MAAM,CAAC,MAAM,CACjB,qBAAqB,kBAAkB,CAAC,IAAI,CAAC,MAAM,CAAC,qBAAqB,kBAAkB,CAAC,IAAI,CAAC,YAAY,CAAC,YAAY,IAAI,CAAC,OAAO,EAAE,CACzI,CAAC;QACF,OAAO;YACL,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,aAAa,IAAI,CAAC,OAAO,kBAAkB,IAAI,CAAC,YAAY,UAAU,EAAE,CAAC;SAC1G,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { ConfluenceClient } from "../confluence-client.js";
|
|
3
|
+
import { ToolResult } from "./spaces-pages.js";
|
|
4
|
+
export declare const AdminCreateSiteBackupJobArgsSchema: z.ZodObject<{
|
|
5
|
+
skipAttachments: z.ZodOptional<z.ZodBoolean>;
|
|
6
|
+
keepPermanently: z.ZodOptional<z.ZodBoolean>;
|
|
7
|
+
fileNamePrefix: z.ZodOptional<z.ZodString>;
|
|
8
|
+
}, "strip", z.ZodTypeAny, {
|
|
9
|
+
skipAttachments?: boolean | undefined;
|
|
10
|
+
keepPermanently?: boolean | undefined;
|
|
11
|
+
fileNamePrefix?: string | undefined;
|
|
12
|
+
}, {
|
|
13
|
+
skipAttachments?: boolean | undefined;
|
|
14
|
+
keepPermanently?: boolean | undefined;
|
|
15
|
+
fileNamePrefix?: string | undefined;
|
|
16
|
+
}>;
|
|
17
|
+
export type AdminCreateSiteBackupJobArgs = z.infer<typeof AdminCreateSiteBackupJobArgsSchema>;
|
|
18
|
+
export declare function adminCreateSiteBackupJob(client: ConfluenceClient, args: AdminCreateSiteBackupJobArgs): Promise<ToolResult>;
|
|
19
|
+
export declare const AdminCreateSpaceBackupJobArgsSchema: z.ZodObject<{
|
|
20
|
+
spaceKeys: z.ZodArray<z.ZodString, "many">;
|
|
21
|
+
keepPermanently: z.ZodOptional<z.ZodBoolean>;
|
|
22
|
+
fileNamePrefix: z.ZodOptional<z.ZodString>;
|
|
23
|
+
}, "strip", z.ZodTypeAny, {
|
|
24
|
+
spaceKeys: string[];
|
|
25
|
+
keepPermanently?: boolean | undefined;
|
|
26
|
+
fileNamePrefix?: string | undefined;
|
|
27
|
+
}, {
|
|
28
|
+
spaceKeys: string[];
|
|
29
|
+
keepPermanently?: boolean | undefined;
|
|
30
|
+
fileNamePrefix?: string | undefined;
|
|
31
|
+
}>;
|
|
32
|
+
export type AdminCreateSpaceBackupJobArgs = z.infer<typeof AdminCreateSpaceBackupJobArgsSchema>;
|
|
33
|
+
export declare function adminCreateSpaceBackupJob(client: ConfluenceClient, args: AdminCreateSpaceBackupJobArgs): Promise<ToolResult>;
|
|
34
|
+
export declare const AdminFindBackupRestoreJobsArgsSchema: z.ZodObject<{
|
|
35
|
+
owner: z.ZodOptional<z.ZodString>;
|
|
36
|
+
spaceKey: z.ZodOptional<z.ZodString>;
|
|
37
|
+
jobScope: z.ZodOptional<z.ZodString>;
|
|
38
|
+
jobOperation: z.ZodOptional<z.ZodString>;
|
|
39
|
+
}, "strip", z.ZodTypeAny, {
|
|
40
|
+
spaceKey?: string | undefined;
|
|
41
|
+
owner?: string | undefined;
|
|
42
|
+
jobScope?: string | undefined;
|
|
43
|
+
jobOperation?: string | undefined;
|
|
44
|
+
}, {
|
|
45
|
+
spaceKey?: string | undefined;
|
|
46
|
+
owner?: string | undefined;
|
|
47
|
+
jobScope?: string | undefined;
|
|
48
|
+
jobOperation?: string | undefined;
|
|
49
|
+
}>;
|
|
50
|
+
export type AdminFindBackupRestoreJobsArgs = z.infer<typeof AdminFindBackupRestoreJobsArgsSchema>;
|
|
51
|
+
export declare function adminFindBackupRestoreJobs(client: ConfluenceClient, args: AdminFindBackupRestoreJobsArgs): Promise<ToolResult>;
|
|
52
|
+
export declare const AdminGetBackupRestoreJobArgsSchema: z.ZodObject<{
|
|
53
|
+
jobId: z.ZodString;
|
|
54
|
+
}, "strip", z.ZodTypeAny, {
|
|
55
|
+
jobId: string;
|
|
56
|
+
}, {
|
|
57
|
+
jobId: string;
|
|
58
|
+
}>;
|
|
59
|
+
export type AdminGetBackupRestoreJobArgs = z.infer<typeof AdminGetBackupRestoreJobArgsSchema>;
|
|
60
|
+
export declare function adminGetBackupRestoreJob(client: ConfluenceClient, args: AdminGetBackupRestoreJobArgs): Promise<ToolResult>;
|
|
61
|
+
export declare const AdminCancelBackupRestoreJobArgsSchema: z.ZodObject<{
|
|
62
|
+
jobId: z.ZodString;
|
|
63
|
+
}, "strip", z.ZodTypeAny, {
|
|
64
|
+
jobId: string;
|
|
65
|
+
}, {
|
|
66
|
+
jobId: string;
|
|
67
|
+
}>;
|
|
68
|
+
export type AdminCancelBackupRestoreJobArgs = z.infer<typeof AdminCancelBackupRestoreJobArgsSchema>;
|
|
69
|
+
export declare function adminCancelBackupRestoreJob(client: ConfluenceClient, args: AdminCancelBackupRestoreJobArgs): Promise<ToolResult>;
|
|
70
|
+
export declare const AdminDownloadBackupFileArgsSchema: z.ZodObject<{
|
|
71
|
+
jobId: z.ZodString;
|
|
72
|
+
}, "strip", z.ZodTypeAny, {
|
|
73
|
+
jobId: string;
|
|
74
|
+
}, {
|
|
75
|
+
jobId: string;
|
|
76
|
+
}>;
|
|
77
|
+
export type AdminDownloadBackupFileArgs = z.infer<typeof AdminDownloadBackupFileArgsSchema>;
|
|
78
|
+
export declare function adminDownloadBackupFile(client: ConfluenceClient, args: AdminDownloadBackupFileArgs): Promise<ToolResult>;
|
|
79
|
+
export declare const AdminCancelAllQueuedBackupRestoreJobsArgsSchema: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
80
|
+
export type AdminCancelAllQueuedBackupRestoreJobsArgs = z.infer<typeof AdminCancelAllQueuedBackupRestoreJobsArgsSchema>;
|
|
81
|
+
export declare function adminCancelAllQueuedBackupRestoreJobs(client: ConfluenceClient, _args: AdminCancelAllQueuedBackupRestoreJobsArgs): Promise<ToolResult>;
|
|
82
|
+
export declare const AdminListRestoreFilesArgsSchema: z.ZodObject<{
|
|
83
|
+
jobScope: z.ZodOptional<z.ZodString>;
|
|
84
|
+
}, "strip", z.ZodTypeAny, {
|
|
85
|
+
jobScope?: string | undefined;
|
|
86
|
+
}, {
|
|
87
|
+
jobScope?: string | undefined;
|
|
88
|
+
}>;
|
|
89
|
+
export type AdminListRestoreFilesArgs = z.infer<typeof AdminListRestoreFilesArgsSchema>;
|
|
90
|
+
export declare function adminListRestoreFiles(client: ConfluenceClient, args: AdminListRestoreFilesArgs): Promise<ToolResult>;
|
|
91
|
+
export declare const AdminCreateSiteRestoreJobArgsSchema: z.ZodObject<{
|
|
92
|
+
fileName: z.ZodString;
|
|
93
|
+
skipReindex: z.ZodOptional<z.ZodBoolean>;
|
|
94
|
+
}, "strip", z.ZodTypeAny, {
|
|
95
|
+
fileName: string;
|
|
96
|
+
skipReindex?: boolean | undefined;
|
|
97
|
+
}, {
|
|
98
|
+
fileName: string;
|
|
99
|
+
skipReindex?: boolean | undefined;
|
|
100
|
+
}>;
|
|
101
|
+
export type AdminCreateSiteRestoreJobArgs = z.infer<typeof AdminCreateSiteRestoreJobArgsSchema>;
|
|
102
|
+
export declare function adminCreateSiteRestoreJob(client: ConfluenceClient, args: AdminCreateSiteRestoreJobArgs): Promise<ToolResult>;
|
|
103
|
+
export declare const AdminCreateSpaceRestoreJobArgsSchema: z.ZodObject<{
|
|
104
|
+
fileName: z.ZodString;
|
|
105
|
+
skipReindex: z.ZodOptional<z.ZodBoolean>;
|
|
106
|
+
}, "strip", z.ZodTypeAny, {
|
|
107
|
+
fileName: string;
|
|
108
|
+
skipReindex?: boolean | undefined;
|
|
109
|
+
}, {
|
|
110
|
+
fileName: string;
|
|
111
|
+
skipReindex?: boolean | undefined;
|
|
112
|
+
}>;
|
|
113
|
+
export type AdminCreateSpaceRestoreJobArgs = z.infer<typeof AdminCreateSpaceRestoreJobArgsSchema>;
|
|
114
|
+
export declare function adminCreateSpaceRestoreJob(client: ConfluenceClient, args: AdminCreateSpaceRestoreJobArgs): Promise<ToolResult>;
|
|
115
|
+
export declare const AdminCreateSiteRestoreJobFromUploadArgsSchema: z.ZodObject<{
|
|
116
|
+
filename: z.ZodString;
|
|
117
|
+
contentBase64: z.ZodString;
|
|
118
|
+
skipReindex: z.ZodOptional<z.ZodBoolean>;
|
|
119
|
+
}, "strip", z.ZodTypeAny, {
|
|
120
|
+
filename: string;
|
|
121
|
+
contentBase64: string;
|
|
122
|
+
skipReindex?: boolean | undefined;
|
|
123
|
+
}, {
|
|
124
|
+
filename: string;
|
|
125
|
+
contentBase64: string;
|
|
126
|
+
skipReindex?: boolean | undefined;
|
|
127
|
+
}>;
|
|
128
|
+
export type AdminCreateSiteRestoreJobFromUploadArgs = z.infer<typeof AdminCreateSiteRestoreJobFromUploadArgsSchema>;
|
|
129
|
+
export declare function adminCreateSiteRestoreJobFromUpload(client: ConfluenceClient, args: AdminCreateSiteRestoreJobFromUploadArgs): Promise<ToolResult>;
|
|
130
|
+
export declare const AdminCreateSpaceRestoreJobFromUploadArgsSchema: z.ZodObject<{
|
|
131
|
+
filename: z.ZodString;
|
|
132
|
+
contentBase64: z.ZodString;
|
|
133
|
+
skipReindex: z.ZodOptional<z.ZodBoolean>;
|
|
134
|
+
}, "strip", z.ZodTypeAny, {
|
|
135
|
+
filename: string;
|
|
136
|
+
contentBase64: string;
|
|
137
|
+
skipReindex?: boolean | undefined;
|
|
138
|
+
}, {
|
|
139
|
+
filename: string;
|
|
140
|
+
contentBase64: string;
|
|
141
|
+
skipReindex?: boolean | undefined;
|
|
142
|
+
}>;
|
|
143
|
+
export type AdminCreateSpaceRestoreJobFromUploadArgs = z.infer<typeof AdminCreateSpaceRestoreJobFromUploadArgsSchema>;
|
|
144
|
+
export declare function adminCreateSpaceRestoreJobFromUpload(client: ConfluenceClient, args: AdminCreateSpaceRestoreJobFromUploadArgs): Promise<ToolResult>;
|