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,194 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { withConfluenceErrorHandling } from "./errors.js";
|
|
3
|
+
import { jsonDetailBlock } from "./spaces-pages.js";
|
|
4
|
+
// Confirmed live (2026-08-20): granting global permissions to a subject with no existing global
|
|
5
|
+
// grants fails with "'USECONFLUENCE' permission has to exist before adding any other permissions
|
|
6
|
+
// for a subject" unless {targetType: "application", operationKey: "use"} is included in — or
|
|
7
|
+
// already granted before — the same call. Not a bug in this tool; a real Confluence business
|
|
8
|
+
// rule callers need to know about, since the error message alone doesn't say what to do about it.
|
|
9
|
+
const OperationSchema = z.object({
|
|
10
|
+
targetType: z.string().describe('e.g. "space", "application".'),
|
|
11
|
+
operationKey: z.string().describe('e.g. "read", "create", "administer", "use".'),
|
|
12
|
+
});
|
|
13
|
+
export const OperationsArgSchema = z.array(OperationSchema).min(1);
|
|
14
|
+
// Shared shape behind every get/grant/revoke pair below — same request/response contract,
|
|
15
|
+
// differing only in path. Kept as thin named exports (not one generic tool) so each operation the
|
|
16
|
+
// catalog lists maps to a distinct, individually-registerable tool name, matching this project's
|
|
17
|
+
// one-tool-per-capability convention.
|
|
18
|
+
async function getPermissions(client, path, label) {
|
|
19
|
+
return withConfluenceErrorHandling(async () => {
|
|
20
|
+
const response = await client.get(path);
|
|
21
|
+
return {
|
|
22
|
+
content: [
|
|
23
|
+
{ type: "text", text: `✅ Permissions for ${label} retrieved` },
|
|
24
|
+
jsonDetailBlock(response.data),
|
|
25
|
+
],
|
|
26
|
+
};
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
async function grantPermissions(client, path, operations, label) {
|
|
30
|
+
return withConfluenceErrorHandling(async () => {
|
|
31
|
+
await client.put(path, operations);
|
|
32
|
+
return { content: [{ type: "text", text: `✅ Permissions granted to ${label}` }] };
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
async function revokePermissions(client, path, operations, label) {
|
|
36
|
+
return withConfluenceErrorHandling(async () => {
|
|
37
|
+
await client.put(path, operations);
|
|
38
|
+
return { content: [{ type: "text", text: `✅ Permissions revoked from ${label}` }] };
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
// --- Global permissions ---
|
|
42
|
+
export const ListGlobalPermissionsArgsSchema = z.object({});
|
|
43
|
+
export async function listGlobalPermissions(client, _args) {
|
|
44
|
+
return getPermissions(client, "/rest/api/permissions", "the instance (all global permissions)");
|
|
45
|
+
}
|
|
46
|
+
const SpacePermissionsForSubjectSchema = z.object({
|
|
47
|
+
userKey: z.string().optional(),
|
|
48
|
+
groupName: z.string().optional(),
|
|
49
|
+
operations: OperationsArgSchema,
|
|
50
|
+
});
|
|
51
|
+
export const SetGlobalPermissionsArgsSchema = z.object({
|
|
52
|
+
subjects: z.array(SpacePermissionsForSubjectSchema).min(1),
|
|
53
|
+
});
|
|
54
|
+
export async function setGlobalPermissions(client, args) {
|
|
55
|
+
return withConfluenceErrorHandling(async () => {
|
|
56
|
+
await client.put("/rest/api/permissions", args.subjects);
|
|
57
|
+
return { content: [{ type: "text", text: `✅ Global permissions set for ${args.subjects.length} subject(s)` }] };
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
export const GetAnonymousGlobalPermissionsArgsSchema = z.object({});
|
|
61
|
+
export async function getAnonymousGlobalPermissions(client, _args) {
|
|
62
|
+
return getPermissions(client, "/rest/api/permissions/anonymous", "anonymous users (global)");
|
|
63
|
+
}
|
|
64
|
+
export const GrantAnonymousGlobalPermissionsArgsSchema = z.object({ operations: OperationsArgSchema });
|
|
65
|
+
export async function grantAnonymousGlobalPermissions(client, args) {
|
|
66
|
+
return grantPermissions(client, "/rest/api/permissions/anonymous/grant", args.operations, "anonymous users (global)");
|
|
67
|
+
}
|
|
68
|
+
export const RevokeAnonymousGlobalPermissionsArgsSchema = z.object({ operations: OperationsArgSchema });
|
|
69
|
+
export async function revokeAnonymousGlobalPermissions(client, args) {
|
|
70
|
+
return revokePermissions(client, "/rest/api/permissions/anonymous/revoke", args.operations, "anonymous users (global)");
|
|
71
|
+
}
|
|
72
|
+
export const GetGroupGlobalPermissionsArgsSchema = z.object({ groupName: z.string().min(1) });
|
|
73
|
+
export async function getGroupGlobalPermissions(client, args) {
|
|
74
|
+
return getPermissions(client, `/rest/api/permissions/group/${encodeURIComponent(args.groupName)}`, `group "${args.groupName}" (global)`);
|
|
75
|
+
}
|
|
76
|
+
export const GrantGroupGlobalPermissionsArgsSchema = z.object({
|
|
77
|
+
groupName: z.string().min(1),
|
|
78
|
+
operations: OperationsArgSchema,
|
|
79
|
+
});
|
|
80
|
+
export async function grantGroupGlobalPermissions(client, args) {
|
|
81
|
+
return grantPermissions(client, `/rest/api/permissions/group/${encodeURIComponent(args.groupName)}/grant`, args.operations, `group "${args.groupName}" (global)`);
|
|
82
|
+
}
|
|
83
|
+
export const RevokeGroupGlobalPermissionsArgsSchema = z.object({
|
|
84
|
+
groupName: z.string().min(1),
|
|
85
|
+
operations: OperationsArgSchema,
|
|
86
|
+
});
|
|
87
|
+
export async function revokeGroupGlobalPermissions(client, args) {
|
|
88
|
+
return revokePermissions(client, `/rest/api/permissions/group/${encodeURIComponent(args.groupName)}/revoke`, args.operations, `group "${args.groupName}" (global)`);
|
|
89
|
+
}
|
|
90
|
+
export const GetUnlicensedGlobalPermissionsArgsSchema = z.object({});
|
|
91
|
+
export async function getUnlicensedGlobalPermissions(client, _args) {
|
|
92
|
+
return getPermissions(client, "/rest/api/permissions/unlicensed", "unlicensed users (global)");
|
|
93
|
+
}
|
|
94
|
+
export const GrantUnlicensedGlobalPermissionsArgsSchema = z.object({ operations: OperationsArgSchema });
|
|
95
|
+
export async function grantUnlicensedGlobalPermissions(client, args) {
|
|
96
|
+
return grantPermissions(client, "/rest/api/permissions/unlicensed/grant", args.operations, "unlicensed users (global)");
|
|
97
|
+
}
|
|
98
|
+
export const RevokeUnlicensedGlobalPermissionsArgsSchema = z.object({ operations: OperationsArgSchema });
|
|
99
|
+
export async function revokeUnlicensedGlobalPermissions(client, args) {
|
|
100
|
+
return revokePermissions(client, "/rest/api/permissions/unlicensed/revoke", args.operations, "unlicensed users (global)");
|
|
101
|
+
}
|
|
102
|
+
export const GetUserGlobalPermissionsArgsSchema = z.object({ user: z.string().min(1) });
|
|
103
|
+
export async function getUserGlobalPermissions(client, args) {
|
|
104
|
+
return getPermissions(client, `/rest/api/permissions/user/${encodeURIComponent(args.user)}`, `user "${args.user}" (global)`);
|
|
105
|
+
}
|
|
106
|
+
export const GrantUserGlobalPermissionsArgsSchema = z.object({
|
|
107
|
+
user: z.string().min(1),
|
|
108
|
+
operations: OperationsArgSchema,
|
|
109
|
+
});
|
|
110
|
+
export async function grantUserGlobalPermissions(client, args) {
|
|
111
|
+
return grantPermissions(client, `/rest/api/permissions/user/${encodeURIComponent(args.user)}/grant`, args.operations, `user "${args.user}" (global)`);
|
|
112
|
+
}
|
|
113
|
+
export const RevokeUserGlobalPermissionsArgsSchema = z.object({
|
|
114
|
+
user: z.string().min(1),
|
|
115
|
+
operations: OperationsArgSchema,
|
|
116
|
+
});
|
|
117
|
+
export async function revokeUserGlobalPermissions(client, args) {
|
|
118
|
+
return revokePermissions(client, `/rest/api/permissions/user/${encodeURIComponent(args.user)}/revoke`, args.operations, `user "${args.user}" (global)`);
|
|
119
|
+
}
|
|
120
|
+
// --- Space permissions ---
|
|
121
|
+
export const SetSpacePermissionsArgsSchema = z.object({
|
|
122
|
+
spaceKey: z.string().min(1),
|
|
123
|
+
subjects: z.array(SpacePermissionsForSubjectSchema).min(1),
|
|
124
|
+
});
|
|
125
|
+
export async function setSpacePermissions(client, args) {
|
|
126
|
+
return withConfluenceErrorHandling(async () => {
|
|
127
|
+
const response = await client.post(`/rest/api/space/${encodeURIComponent(args.spaceKey)}/permissions`, args.subjects);
|
|
128
|
+
return {
|
|
129
|
+
content: [
|
|
130
|
+
{ type: "text", text: `✅ Permissions set on space ${args.spaceKey} for ${args.subjects.length} subject(s)` },
|
|
131
|
+
jsonDetailBlock(response.data),
|
|
132
|
+
],
|
|
133
|
+
};
|
|
134
|
+
});
|
|
135
|
+
}
|
|
136
|
+
export const GetSpaceAnonymousPermissionsArgsSchema = z.object({ spaceKey: z.string().min(1) });
|
|
137
|
+
export async function getSpaceAnonymousPermissions(client, args) {
|
|
138
|
+
return getPermissions(client, `/rest/api/space/${encodeURIComponent(args.spaceKey)}/permissions/anonymous`, `anonymous users on space ${args.spaceKey}`);
|
|
139
|
+
}
|
|
140
|
+
export const GrantSpaceAnonymousPermissionsArgsSchema = z.object({
|
|
141
|
+
spaceKey: z.string().min(1),
|
|
142
|
+
operations: OperationsArgSchema,
|
|
143
|
+
});
|
|
144
|
+
export async function grantSpaceAnonymousPermissions(client, args) {
|
|
145
|
+
return grantPermissions(client, `/rest/api/space/${encodeURIComponent(args.spaceKey)}/permissions/anonymous/grant`, args.operations, `anonymous users on space ${args.spaceKey}`);
|
|
146
|
+
}
|
|
147
|
+
export const RevokeSpaceAnonymousPermissionsArgsSchema = z.object({
|
|
148
|
+
spaceKey: z.string().min(1),
|
|
149
|
+
operations: OperationsArgSchema,
|
|
150
|
+
});
|
|
151
|
+
export async function revokeSpaceAnonymousPermissions(client, args) {
|
|
152
|
+
return revokePermissions(client, `/rest/api/space/${encodeURIComponent(args.spaceKey)}/permissions/anonymous/revoke`, args.operations, `anonymous users on space ${args.spaceKey}`);
|
|
153
|
+
}
|
|
154
|
+
export const GetSpaceGroupPermissionsArgsSchema = z.object({ spaceKey: z.string().min(1), groupName: z.string().min(1) });
|
|
155
|
+
export async function getSpaceGroupPermissions(client, args) {
|
|
156
|
+
return getPermissions(client, `/rest/api/space/${encodeURIComponent(args.spaceKey)}/permissions/group/${encodeURIComponent(args.groupName)}`, `group "${args.groupName}" on space ${args.spaceKey}`);
|
|
157
|
+
}
|
|
158
|
+
export const GrantSpaceGroupPermissionsArgsSchema = z.object({
|
|
159
|
+
spaceKey: z.string().min(1),
|
|
160
|
+
groupName: z.string().min(1),
|
|
161
|
+
operations: OperationsArgSchema,
|
|
162
|
+
});
|
|
163
|
+
export async function grantSpaceGroupPermissions(client, args) {
|
|
164
|
+
return grantPermissions(client, `/rest/api/space/${encodeURIComponent(args.spaceKey)}/permissions/group/${encodeURIComponent(args.groupName)}/grant`, args.operations, `group "${args.groupName}" on space ${args.spaceKey}`);
|
|
165
|
+
}
|
|
166
|
+
export const RevokeSpaceGroupPermissionsArgsSchema = z.object({
|
|
167
|
+
spaceKey: z.string().min(1),
|
|
168
|
+
groupName: z.string().min(1),
|
|
169
|
+
operations: OperationsArgSchema,
|
|
170
|
+
});
|
|
171
|
+
export async function revokeSpaceGroupPermissions(client, args) {
|
|
172
|
+
return revokePermissions(client, `/rest/api/space/${encodeURIComponent(args.spaceKey)}/permissions/group/${encodeURIComponent(args.groupName)}/revoke`, args.operations, `group "${args.groupName}" on space ${args.spaceKey}`);
|
|
173
|
+
}
|
|
174
|
+
export const GetSpaceUserPermissionsArgsSchema = z.object({ spaceKey: z.string().min(1), userKey: z.string().min(1) });
|
|
175
|
+
export async function getSpaceUserPermissions(client, args) {
|
|
176
|
+
return getPermissions(client, `/rest/api/space/${encodeURIComponent(args.spaceKey)}/permissions/user/${encodeURIComponent(args.userKey)}`, `user "${args.userKey}" on space ${args.spaceKey}`);
|
|
177
|
+
}
|
|
178
|
+
export const GrantSpaceUserPermissionsArgsSchema = z.object({
|
|
179
|
+
spaceKey: z.string().min(1),
|
|
180
|
+
userKey: z.string().min(1),
|
|
181
|
+
operations: OperationsArgSchema,
|
|
182
|
+
});
|
|
183
|
+
export async function grantSpaceUserPermissions(client, args) {
|
|
184
|
+
return grantPermissions(client, `/rest/api/space/${encodeURIComponent(args.spaceKey)}/permissions/user/${encodeURIComponent(args.userKey)}/grant`, args.operations, `user "${args.userKey}" on space ${args.spaceKey}`);
|
|
185
|
+
}
|
|
186
|
+
export const RevokeSpaceUserPermissionsArgsSchema = z.object({
|
|
187
|
+
spaceKey: z.string().min(1),
|
|
188
|
+
userKey: z.string().min(1),
|
|
189
|
+
operations: OperationsArgSchema,
|
|
190
|
+
});
|
|
191
|
+
export async function revokeSpaceUserPermissions(client, args) {
|
|
192
|
+
return revokePermissions(client, `/rest/api/space/${encodeURIComponent(args.spaceKey)}/permissions/user/${encodeURIComponent(args.userKey)}/revoke`, args.operations, `user "${args.userKey}" on space ${args.spaceKey}`);
|
|
193
|
+
}
|
|
194
|
+
//# sourceMappingURL=permissions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"permissions.js","sourceRoot":"","sources":["../../src/tools/permissions.ts"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CAAC,CAAC,CAAC;IAC1B,UAAU,EAAE,mBAAmB;CAChC,CAAC,CAAC;AAEH,MAAM,CAAC,KAAK,UAAU,yBAAyB,CAC7C,MAAwB,EACxB,IAAmC;IAEnC,OAAO,gBAAgB,CACrB,MAAM,EACN,mBAAmB,kBAAkB,CAAC,IAAI,CAAC,QAAQ,CAAC,qBAAqB,kBAAkB,CAAC,IAAI,CAAC,OAAO,CAAC,QAAQ,EACjH,IAAI,CAAC,UAAU,EACf,SAAS,IAAI,CAAC,OAAO,cAAc,IAAI,CAAC,QAAQ,EAAE,CACnD,CAAC;AACJ,CAAC;AAED,MAAM,CAAC,MAAM,oCAAoC,GAAG,CAAC,CAAC,MAAM,CAAC;IAC3D,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAC3B,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAC1B,UAAU,EAAE,mBAAmB;CAChC,CAAC,CAAC;AAEH,MAAM,CAAC,KAAK,UAAU,0BAA0B,CAC9C,MAAwB,EACxB,IAAoC;IAEpC,OAAO,iBAAiB,CACtB,MAAM,EACN,mBAAmB,kBAAkB,CAAC,IAAI,CAAC,QAAQ,CAAC,qBAAqB,kBAAkB,CAAC,IAAI,CAAC,OAAO,CAAC,SAAS,EAClH,IAAI,CAAC,UAAU,EACf,SAAS,IAAI,CAAC,OAAO,cAAc,IAAI,CAAC,QAAQ,EAAE,CACnD,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,225 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { ConfluenceClient } from "../confluence-client.js";
|
|
3
|
+
import { ToolResult } from "./spaces-pages.js";
|
|
4
|
+
export declare const CreateSpaceArgsSchema: z.ZodObject<{
|
|
5
|
+
key: z.ZodString;
|
|
6
|
+
name: z.ZodString;
|
|
7
|
+
description: z.ZodOptional<z.ZodString>;
|
|
8
|
+
}, "strip", z.ZodTypeAny, {
|
|
9
|
+
key: string;
|
|
10
|
+
name: string;
|
|
11
|
+
description?: string | undefined;
|
|
12
|
+
}, {
|
|
13
|
+
key: string;
|
|
14
|
+
name: string;
|
|
15
|
+
description?: string | undefined;
|
|
16
|
+
}>;
|
|
17
|
+
export type CreateSpaceArgs = z.infer<typeof CreateSpaceArgsSchema>;
|
|
18
|
+
export declare function createSpace(client: ConfluenceClient, args: CreateSpaceArgs): Promise<ToolResult>;
|
|
19
|
+
export declare const CreatePrivateSpaceArgsSchema: z.ZodObject<{
|
|
20
|
+
key: z.ZodString;
|
|
21
|
+
name: z.ZodString;
|
|
22
|
+
description: z.ZodOptional<z.ZodString>;
|
|
23
|
+
}, "strip", z.ZodTypeAny, {
|
|
24
|
+
key: string;
|
|
25
|
+
name: string;
|
|
26
|
+
description?: string | undefined;
|
|
27
|
+
}, {
|
|
28
|
+
key: string;
|
|
29
|
+
name: string;
|
|
30
|
+
description?: string | undefined;
|
|
31
|
+
}>;
|
|
32
|
+
export type CreatePrivateSpaceArgs = z.infer<typeof CreatePrivateSpaceArgsSchema>;
|
|
33
|
+
export declare function createPrivateSpace(client: ConfluenceClient, args: CreatePrivateSpaceArgs): Promise<ToolResult>;
|
|
34
|
+
export declare const CreatePersonalSpaceArgsSchema: z.ZodObject<{
|
|
35
|
+
description: z.ZodOptional<z.ZodString>;
|
|
36
|
+
isPrivate: z.ZodOptional<z.ZodBoolean>;
|
|
37
|
+
}, "strip", z.ZodTypeAny, {
|
|
38
|
+
description?: string | undefined;
|
|
39
|
+
isPrivate?: boolean | undefined;
|
|
40
|
+
}, {
|
|
41
|
+
description?: string | undefined;
|
|
42
|
+
isPrivate?: boolean | undefined;
|
|
43
|
+
}>;
|
|
44
|
+
export type CreatePersonalSpaceArgs = z.infer<typeof CreatePersonalSpaceArgsSchema>;
|
|
45
|
+
export declare function createPersonalSpace(client: ConfluenceClient, args: CreatePersonalSpaceArgs): Promise<ToolResult>;
|
|
46
|
+
export declare const DeleteSpaceArgsSchema: z.ZodObject<{
|
|
47
|
+
spaceKey: z.ZodString;
|
|
48
|
+
}, "strip", z.ZodTypeAny, {
|
|
49
|
+
spaceKey: string;
|
|
50
|
+
}, {
|
|
51
|
+
spaceKey: string;
|
|
52
|
+
}>;
|
|
53
|
+
export type DeleteSpaceArgs = z.infer<typeof DeleteSpaceArgsSchema>;
|
|
54
|
+
export declare function deleteSpace(client: ConfluenceClient, args: DeleteSpaceArgs): Promise<ToolResult>;
|
|
55
|
+
export declare const UpdateSpaceArgsSchema: z.ZodObject<{
|
|
56
|
+
spaceKey: z.ZodString;
|
|
57
|
+
name: z.ZodOptional<z.ZodString>;
|
|
58
|
+
description: z.ZodOptional<z.ZodString>;
|
|
59
|
+
}, "strip", z.ZodTypeAny, {
|
|
60
|
+
spaceKey: string;
|
|
61
|
+
name?: string | undefined;
|
|
62
|
+
description?: string | undefined;
|
|
63
|
+
}, {
|
|
64
|
+
spaceKey: string;
|
|
65
|
+
name?: string | undefined;
|
|
66
|
+
description?: string | undefined;
|
|
67
|
+
}>;
|
|
68
|
+
export type UpdateSpaceArgs = z.infer<typeof UpdateSpaceArgsSchema>;
|
|
69
|
+
export declare function updateSpace(client: ConfluenceClient, args: UpdateSpaceArgs): Promise<ToolResult>;
|
|
70
|
+
export declare const ArchiveSpaceArgsSchema: z.ZodObject<{
|
|
71
|
+
spaceKey: z.ZodString;
|
|
72
|
+
}, "strip", z.ZodTypeAny, {
|
|
73
|
+
spaceKey: string;
|
|
74
|
+
}, {
|
|
75
|
+
spaceKey: string;
|
|
76
|
+
}>;
|
|
77
|
+
export type ArchiveSpaceArgs = z.infer<typeof ArchiveSpaceArgsSchema>;
|
|
78
|
+
export declare function archiveSpace(client: ConfluenceClient, args: ArchiveSpaceArgs): Promise<ToolResult>;
|
|
79
|
+
export declare const AddSpaceCategoryArgsSchema: z.ZodObject<{
|
|
80
|
+
spaceKey: z.ZodString;
|
|
81
|
+
categoryName: z.ZodString;
|
|
82
|
+
}, "strip", z.ZodTypeAny, {
|
|
83
|
+
spaceKey: string;
|
|
84
|
+
categoryName: string;
|
|
85
|
+
}, {
|
|
86
|
+
spaceKey: string;
|
|
87
|
+
categoryName: string;
|
|
88
|
+
}>;
|
|
89
|
+
export type AddSpaceCategoryArgs = z.infer<typeof AddSpaceCategoryArgsSchema>;
|
|
90
|
+
export declare function addSpaceCategory(client: ConfluenceClient, args: AddSpaceCategoryArgs): Promise<ToolResult>;
|
|
91
|
+
export declare const RemoveSpaceCategoryArgsSchema: z.ZodObject<{
|
|
92
|
+
spaceKey: z.ZodString;
|
|
93
|
+
categoryName: z.ZodString;
|
|
94
|
+
}, "strip", z.ZodTypeAny, {
|
|
95
|
+
spaceKey: string;
|
|
96
|
+
categoryName: string;
|
|
97
|
+
}, {
|
|
98
|
+
spaceKey: string;
|
|
99
|
+
categoryName: string;
|
|
100
|
+
}>;
|
|
101
|
+
export type RemoveSpaceCategoryArgs = z.infer<typeof RemoveSpaceCategoryArgsSchema>;
|
|
102
|
+
export declare function removeSpaceCategory(client: ConfluenceClient, args: RemoveSpaceCategoryArgs): Promise<ToolResult>;
|
|
103
|
+
export declare const ListSpaceContentArgsSchema: z.ZodObject<{
|
|
104
|
+
spaceKey: z.ZodString;
|
|
105
|
+
}, "strip", z.ZodTypeAny, {
|
|
106
|
+
spaceKey: string;
|
|
107
|
+
}, {
|
|
108
|
+
spaceKey: string;
|
|
109
|
+
}>;
|
|
110
|
+
export type ListSpaceContentArgs = z.infer<typeof ListSpaceContentArgsSchema>;
|
|
111
|
+
export declare function listSpaceContent(client: ConfluenceClient, args: ListSpaceContentArgs): Promise<ToolResult>;
|
|
112
|
+
export declare const ListSpaceContentOfTypeArgsSchema: z.ZodObject<{
|
|
113
|
+
spaceKey: z.ZodString;
|
|
114
|
+
type: z.ZodString;
|
|
115
|
+
}, "strip", z.ZodTypeAny, {
|
|
116
|
+
type: string;
|
|
117
|
+
spaceKey: string;
|
|
118
|
+
}, {
|
|
119
|
+
type: string;
|
|
120
|
+
spaceKey: string;
|
|
121
|
+
}>;
|
|
122
|
+
export type ListSpaceContentOfTypeArgs = z.infer<typeof ListSpaceContentOfTypeArgsSchema>;
|
|
123
|
+
export declare function listSpaceContentOfType(client: ConfluenceClient, args: ListSpaceContentOfTypeArgs): Promise<ToolResult>;
|
|
124
|
+
export declare const ListSpacePropertiesArgsSchema: z.ZodObject<{
|
|
125
|
+
spaceKey: z.ZodString;
|
|
126
|
+
}, "strip", z.ZodTypeAny, {
|
|
127
|
+
spaceKey: string;
|
|
128
|
+
}, {
|
|
129
|
+
spaceKey: string;
|
|
130
|
+
}>;
|
|
131
|
+
export type ListSpacePropertiesArgs = z.infer<typeof ListSpacePropertiesArgsSchema>;
|
|
132
|
+
export declare function listSpaceProperties(client: ConfluenceClient, args: ListSpacePropertiesArgs): Promise<ToolResult>;
|
|
133
|
+
export declare const CreateSpacePropertyArgsSchema: z.ZodObject<{
|
|
134
|
+
spaceKey: z.ZodString;
|
|
135
|
+
key: z.ZodString;
|
|
136
|
+
value: z.ZodUnknown;
|
|
137
|
+
}, "strip", z.ZodTypeAny, {
|
|
138
|
+
spaceKey: string;
|
|
139
|
+
key: string;
|
|
140
|
+
value?: unknown;
|
|
141
|
+
}, {
|
|
142
|
+
spaceKey: string;
|
|
143
|
+
key: string;
|
|
144
|
+
value?: unknown;
|
|
145
|
+
}>;
|
|
146
|
+
export type CreateSpacePropertyArgs = z.infer<typeof CreateSpacePropertyArgsSchema>;
|
|
147
|
+
export declare function createSpaceProperty(client: ConfluenceClient, args: CreateSpacePropertyArgs): Promise<ToolResult>;
|
|
148
|
+
export declare const GetSpacePropertyArgsSchema: z.ZodObject<{
|
|
149
|
+
spaceKey: z.ZodString;
|
|
150
|
+
key: z.ZodString;
|
|
151
|
+
}, "strip", z.ZodTypeAny, {
|
|
152
|
+
spaceKey: string;
|
|
153
|
+
key: string;
|
|
154
|
+
}, {
|
|
155
|
+
spaceKey: string;
|
|
156
|
+
key: string;
|
|
157
|
+
}>;
|
|
158
|
+
export type GetSpacePropertyArgs = z.infer<typeof GetSpacePropertyArgsSchema>;
|
|
159
|
+
export declare function getSpaceProperty(client: ConfluenceClient, args: GetSpacePropertyArgs): Promise<ToolResult>;
|
|
160
|
+
export declare const UpdateSpacePropertyArgsSchema: z.ZodObject<{
|
|
161
|
+
spaceKey: z.ZodString;
|
|
162
|
+
key: z.ZodString;
|
|
163
|
+
value: z.ZodUnknown;
|
|
164
|
+
currentVersion: z.ZodNumber;
|
|
165
|
+
}, "strip", z.ZodTypeAny, {
|
|
166
|
+
spaceKey: string;
|
|
167
|
+
currentVersion: number;
|
|
168
|
+
key: string;
|
|
169
|
+
value?: unknown;
|
|
170
|
+
}, {
|
|
171
|
+
spaceKey: string;
|
|
172
|
+
currentVersion: number;
|
|
173
|
+
key: string;
|
|
174
|
+
value?: unknown;
|
|
175
|
+
}>;
|
|
176
|
+
export type UpdateSpacePropertyArgs = z.infer<typeof UpdateSpacePropertyArgsSchema>;
|
|
177
|
+
export declare function updateSpaceProperty(client: ConfluenceClient, args: UpdateSpacePropertyArgs): Promise<ToolResult>;
|
|
178
|
+
export declare const DeleteSpacePropertyArgsSchema: z.ZodObject<{
|
|
179
|
+
spaceKey: z.ZodString;
|
|
180
|
+
key: z.ZodString;
|
|
181
|
+
}, "strip", z.ZodTypeAny, {
|
|
182
|
+
spaceKey: string;
|
|
183
|
+
key: string;
|
|
184
|
+
}, {
|
|
185
|
+
spaceKey: string;
|
|
186
|
+
key: string;
|
|
187
|
+
}>;
|
|
188
|
+
export type DeleteSpacePropertyArgs = z.infer<typeof DeleteSpacePropertyArgsSchema>;
|
|
189
|
+
export declare function deleteSpaceProperty(client: ConfluenceClient, args: DeleteSpacePropertyArgs): Promise<ToolResult>;
|
|
190
|
+
export declare const RestoreSpaceArgsSchema: z.ZodObject<{
|
|
191
|
+
spaceKey: z.ZodString;
|
|
192
|
+
}, "strip", z.ZodTypeAny, {
|
|
193
|
+
spaceKey: string;
|
|
194
|
+
}, {
|
|
195
|
+
spaceKey: string;
|
|
196
|
+
}>;
|
|
197
|
+
export type RestoreSpaceArgs = z.infer<typeof RestoreSpaceArgsSchema>;
|
|
198
|
+
export declare function restoreSpace(client: ConfluenceClient, args: RestoreSpaceArgs): Promise<ToolResult>;
|
|
199
|
+
export declare const EmptySpaceTrashArgsSchema: z.ZodObject<{
|
|
200
|
+
spaceKey: z.ZodString;
|
|
201
|
+
}, "strip", z.ZodTypeAny, {
|
|
202
|
+
spaceKey: string;
|
|
203
|
+
}, {
|
|
204
|
+
spaceKey: string;
|
|
205
|
+
}>;
|
|
206
|
+
export type EmptySpaceTrashArgs = z.infer<typeof EmptySpaceTrashArgsSchema>;
|
|
207
|
+
export declare function emptySpaceTrash(client: ConfluenceClient, args: EmptySpaceTrashArgs): Promise<ToolResult>;
|
|
208
|
+
export declare const ListSpaceTrashArgsSchema: z.ZodObject<{
|
|
209
|
+
spaceKey: z.ZodString;
|
|
210
|
+
}, "strip", z.ZodTypeAny, {
|
|
211
|
+
spaceKey: string;
|
|
212
|
+
}, {
|
|
213
|
+
spaceKey: string;
|
|
214
|
+
}>;
|
|
215
|
+
export type ListSpaceTrashArgs = z.infer<typeof ListSpaceTrashArgsSchema>;
|
|
216
|
+
export declare function listSpaceTrash(client: ConfluenceClient, args: ListSpaceTrashArgs): Promise<ToolResult>;
|
|
217
|
+
export declare const GetSpaceWatchersArgsSchema: z.ZodObject<{
|
|
218
|
+
spaceKey: z.ZodString;
|
|
219
|
+
}, "strip", z.ZodTypeAny, {
|
|
220
|
+
spaceKey: string;
|
|
221
|
+
}, {
|
|
222
|
+
spaceKey: string;
|
|
223
|
+
}>;
|
|
224
|
+
export type GetSpaceWatchersArgs = z.infer<typeof GetSpaceWatchersArgsSchema>;
|
|
225
|
+
export declare function getSpaceWatchers(client: ConfluenceClient, args: GetSpaceWatchersArgs): Promise<ToolResult>;
|