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.
Files changed (84) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +77 -0
  3. package/build/api-catalog.d.ts +27 -0
  4. package/build/api-catalog.js +76 -0
  5. package/build/api-catalog.js.map +1 -0
  6. package/build/confluence-client.d.ts +33 -0
  7. package/build/confluence-client.js +65 -0
  8. package/build/confluence-client.js.map +1 -0
  9. package/build/index.d.ts +2 -0
  10. package/build/index.js +137 -0
  11. package/build/index.js.map +1 -0
  12. package/build/resource-definitions.d.ts +10 -0
  13. package/build/resource-definitions.js +75 -0
  14. package/build/resource-definitions.js.map +1 -0
  15. package/build/tool-definitions.d.ts +19 -0
  16. package/build/tool-definitions.js +1811 -0
  17. package/build/tool-definitions.js.map +1 -0
  18. package/build/tools/admin-users-groups.d.ts +114 -0
  19. package/build/tools/admin-users-groups.js +150 -0
  20. package/build/tools/admin-users-groups.js.map +1 -0
  21. package/build/tools/admin.d.ts +12 -0
  22. package/build/tools/admin.js +30 -0
  23. package/build/tools/admin.js.map +1 -0
  24. package/build/tools/args.d.ts +2 -0
  25. package/build/tools/args.js +12 -0
  26. package/build/tools/args.js.map +1 -0
  27. package/build/tools/attachments.d.ts +138 -0
  28. package/build/tools/attachments.js +170 -0
  29. package/build/tools/attachments.js.map +1 -0
  30. package/build/tools/backup-restore.d.ts +144 -0
  31. package/build/tools/backup-restore.js +223 -0
  32. package/build/tools/backup-restore.js.map +1 -0
  33. package/build/tools/bulk-pages.d.ts +103 -0
  34. package/build/tools/bulk-pages.js +111 -0
  35. package/build/tools/bulk-pages.js.map +1 -0
  36. package/build/tools/color-schemes.d.ts +72 -0
  37. package/build/tools/color-schemes.js +121 -0
  38. package/build/tools/color-schemes.js.map +1 -0
  39. package/build/tools/content-structure.d.ts +164 -0
  40. package/build/tools/content-structure.js +220 -0
  41. package/build/tools/content-structure.js.map +1 -0
  42. package/build/tools/content.d.ts +194 -0
  43. package/build/tools/content.js +246 -0
  44. package/build/tools/content.js.map +1 -0
  45. package/build/tools/errors.d.ts +3 -0
  46. package/build/tools/errors.js +55 -0
  47. package/build/tools/errors.js.map +1 -0
  48. package/build/tools/index-management.d.ts +30 -0
  49. package/build/tools/index-management.js +64 -0
  50. package/build/tools/index-management.js.map +1 -0
  51. package/build/tools/labels.d.ts +108 -0
  52. package/build/tools/labels.js +160 -0
  53. package/build/tools/labels.js.map +1 -0
  54. package/build/tools/permissions.d.ts +554 -0
  55. package/build/tools/permissions.js +194 -0
  56. package/build/tools/permissions.js.map +1 -0
  57. package/build/tools/spaces-admin.d.ts +225 -0
  58. package/build/tools/spaces-admin.js +288 -0
  59. package/build/tools/spaces-admin.js.map +1 -0
  60. package/build/tools/spaces-pages.d.ts +103 -0
  61. package/build/tools/spaces-pages.js +150 -0
  62. package/build/tools/spaces-pages.js.map +1 -0
  63. package/build/tools/system.d.ts +42 -0
  64. package/build/tools/system.js +101 -0
  65. package/build/tools/system.js.map +1 -0
  66. package/build/tools/users-groups.d.ts +216 -0
  67. package/build/tools/users-groups.js +274 -0
  68. package/build/tools/users-groups.js.map +1 -0
  69. package/build/tools/webhooks.d.ts +105 -0
  70. package/build/tools/webhooks.js +124 -0
  71. package/build/tools/webhooks.js.map +1 -0
  72. package/build/version.d.ts +7 -0
  73. package/build/version.js +17 -0
  74. package/build/version.js.map +1 -0
  75. package/docs/api-catalog.yaml +2388 -0
  76. package/package.json +59 -0
  77. package/skills/content.md +85 -0
  78. package/skills/instance-maintenance.md +59 -0
  79. package/skills/permissions.md +47 -0
  80. package/skills/spaces-admin.md +59 -0
  81. package/skills/spaces-pages.md +24 -0
  82. package/skills/system.md +34 -0
  83. package/skills/users-groups.md +55 -0
  84. package/skills/webhooks.md +25 -0
@@ -0,0 +1,554 @@
1
+ import { z } from "zod";
2
+ import { ConfluenceClient } from "../confluence-client.js";
3
+ import { ToolResult } from "./spaces-pages.js";
4
+ export declare const OperationsArgSchema: z.ZodArray<z.ZodObject<{
5
+ targetType: z.ZodString;
6
+ operationKey: z.ZodString;
7
+ }, "strip", z.ZodTypeAny, {
8
+ operationKey: string;
9
+ targetType: string;
10
+ }, {
11
+ operationKey: string;
12
+ targetType: string;
13
+ }>, "many">;
14
+ export declare const ListGlobalPermissionsArgsSchema: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
15
+ export type ListGlobalPermissionsArgs = z.infer<typeof ListGlobalPermissionsArgsSchema>;
16
+ export declare function listGlobalPermissions(client: ConfluenceClient, _args: ListGlobalPermissionsArgs): Promise<ToolResult>;
17
+ export declare const SetGlobalPermissionsArgsSchema: z.ZodObject<{
18
+ subjects: z.ZodArray<z.ZodObject<{
19
+ userKey: z.ZodOptional<z.ZodString>;
20
+ groupName: z.ZodOptional<z.ZodString>;
21
+ operations: z.ZodArray<z.ZodObject<{
22
+ targetType: z.ZodString;
23
+ operationKey: z.ZodString;
24
+ }, "strip", z.ZodTypeAny, {
25
+ operationKey: string;
26
+ targetType: string;
27
+ }, {
28
+ operationKey: string;
29
+ targetType: string;
30
+ }>, "many">;
31
+ }, "strip", z.ZodTypeAny, {
32
+ operations: {
33
+ operationKey: string;
34
+ targetType: string;
35
+ }[];
36
+ userKey?: string | undefined;
37
+ groupName?: string | undefined;
38
+ }, {
39
+ operations: {
40
+ operationKey: string;
41
+ targetType: string;
42
+ }[];
43
+ userKey?: string | undefined;
44
+ groupName?: string | undefined;
45
+ }>, "many">;
46
+ }, "strip", z.ZodTypeAny, {
47
+ subjects: {
48
+ operations: {
49
+ operationKey: string;
50
+ targetType: string;
51
+ }[];
52
+ userKey?: string | undefined;
53
+ groupName?: string | undefined;
54
+ }[];
55
+ }, {
56
+ subjects: {
57
+ operations: {
58
+ operationKey: string;
59
+ targetType: string;
60
+ }[];
61
+ userKey?: string | undefined;
62
+ groupName?: string | undefined;
63
+ }[];
64
+ }>;
65
+ export type SetGlobalPermissionsArgs = z.infer<typeof SetGlobalPermissionsArgsSchema>;
66
+ export declare function setGlobalPermissions(client: ConfluenceClient, args: SetGlobalPermissionsArgs): Promise<ToolResult>;
67
+ export declare const GetAnonymousGlobalPermissionsArgsSchema: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
68
+ export type GetAnonymousGlobalPermissionsArgs = z.infer<typeof GetAnonymousGlobalPermissionsArgsSchema>;
69
+ export declare function getAnonymousGlobalPermissions(client: ConfluenceClient, _args: GetAnonymousGlobalPermissionsArgs): Promise<ToolResult>;
70
+ export declare const GrantAnonymousGlobalPermissionsArgsSchema: z.ZodObject<{
71
+ operations: z.ZodArray<z.ZodObject<{
72
+ targetType: z.ZodString;
73
+ operationKey: z.ZodString;
74
+ }, "strip", z.ZodTypeAny, {
75
+ operationKey: string;
76
+ targetType: string;
77
+ }, {
78
+ operationKey: string;
79
+ targetType: string;
80
+ }>, "many">;
81
+ }, "strip", z.ZodTypeAny, {
82
+ operations: {
83
+ operationKey: string;
84
+ targetType: string;
85
+ }[];
86
+ }, {
87
+ operations: {
88
+ operationKey: string;
89
+ targetType: string;
90
+ }[];
91
+ }>;
92
+ export type GrantAnonymousGlobalPermissionsArgs = z.infer<typeof GrantAnonymousGlobalPermissionsArgsSchema>;
93
+ export declare function grantAnonymousGlobalPermissions(client: ConfluenceClient, args: GrantAnonymousGlobalPermissionsArgs): Promise<ToolResult>;
94
+ export declare const RevokeAnonymousGlobalPermissionsArgsSchema: z.ZodObject<{
95
+ operations: z.ZodArray<z.ZodObject<{
96
+ targetType: z.ZodString;
97
+ operationKey: z.ZodString;
98
+ }, "strip", z.ZodTypeAny, {
99
+ operationKey: string;
100
+ targetType: string;
101
+ }, {
102
+ operationKey: string;
103
+ targetType: string;
104
+ }>, "many">;
105
+ }, "strip", z.ZodTypeAny, {
106
+ operations: {
107
+ operationKey: string;
108
+ targetType: string;
109
+ }[];
110
+ }, {
111
+ operations: {
112
+ operationKey: string;
113
+ targetType: string;
114
+ }[];
115
+ }>;
116
+ export type RevokeAnonymousGlobalPermissionsArgs = z.infer<typeof RevokeAnonymousGlobalPermissionsArgsSchema>;
117
+ export declare function revokeAnonymousGlobalPermissions(client: ConfluenceClient, args: RevokeAnonymousGlobalPermissionsArgs): Promise<ToolResult>;
118
+ export declare const GetGroupGlobalPermissionsArgsSchema: z.ZodObject<{
119
+ groupName: z.ZodString;
120
+ }, "strip", z.ZodTypeAny, {
121
+ groupName: string;
122
+ }, {
123
+ groupName: string;
124
+ }>;
125
+ export type GetGroupGlobalPermissionsArgs = z.infer<typeof GetGroupGlobalPermissionsArgsSchema>;
126
+ export declare function getGroupGlobalPermissions(client: ConfluenceClient, args: GetGroupGlobalPermissionsArgs): Promise<ToolResult>;
127
+ export declare const GrantGroupGlobalPermissionsArgsSchema: z.ZodObject<{
128
+ groupName: z.ZodString;
129
+ operations: z.ZodArray<z.ZodObject<{
130
+ targetType: z.ZodString;
131
+ operationKey: z.ZodString;
132
+ }, "strip", z.ZodTypeAny, {
133
+ operationKey: string;
134
+ targetType: string;
135
+ }, {
136
+ operationKey: string;
137
+ targetType: string;
138
+ }>, "many">;
139
+ }, "strip", z.ZodTypeAny, {
140
+ groupName: string;
141
+ operations: {
142
+ operationKey: string;
143
+ targetType: string;
144
+ }[];
145
+ }, {
146
+ groupName: string;
147
+ operations: {
148
+ operationKey: string;
149
+ targetType: string;
150
+ }[];
151
+ }>;
152
+ export type GrantGroupGlobalPermissionsArgs = z.infer<typeof GrantGroupGlobalPermissionsArgsSchema>;
153
+ export declare function grantGroupGlobalPermissions(client: ConfluenceClient, args: GrantGroupGlobalPermissionsArgs): Promise<ToolResult>;
154
+ export declare const RevokeGroupGlobalPermissionsArgsSchema: z.ZodObject<{
155
+ groupName: z.ZodString;
156
+ operations: z.ZodArray<z.ZodObject<{
157
+ targetType: z.ZodString;
158
+ operationKey: z.ZodString;
159
+ }, "strip", z.ZodTypeAny, {
160
+ operationKey: string;
161
+ targetType: string;
162
+ }, {
163
+ operationKey: string;
164
+ targetType: string;
165
+ }>, "many">;
166
+ }, "strip", z.ZodTypeAny, {
167
+ groupName: string;
168
+ operations: {
169
+ operationKey: string;
170
+ targetType: string;
171
+ }[];
172
+ }, {
173
+ groupName: string;
174
+ operations: {
175
+ operationKey: string;
176
+ targetType: string;
177
+ }[];
178
+ }>;
179
+ export type RevokeGroupGlobalPermissionsArgs = z.infer<typeof RevokeGroupGlobalPermissionsArgsSchema>;
180
+ export declare function revokeGroupGlobalPermissions(client: ConfluenceClient, args: RevokeGroupGlobalPermissionsArgs): Promise<ToolResult>;
181
+ export declare const GetUnlicensedGlobalPermissionsArgsSchema: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
182
+ export type GetUnlicensedGlobalPermissionsArgs = z.infer<typeof GetUnlicensedGlobalPermissionsArgsSchema>;
183
+ export declare function getUnlicensedGlobalPermissions(client: ConfluenceClient, _args: GetUnlicensedGlobalPermissionsArgs): Promise<ToolResult>;
184
+ export declare const GrantUnlicensedGlobalPermissionsArgsSchema: z.ZodObject<{
185
+ operations: z.ZodArray<z.ZodObject<{
186
+ targetType: z.ZodString;
187
+ operationKey: z.ZodString;
188
+ }, "strip", z.ZodTypeAny, {
189
+ operationKey: string;
190
+ targetType: string;
191
+ }, {
192
+ operationKey: string;
193
+ targetType: string;
194
+ }>, "many">;
195
+ }, "strip", z.ZodTypeAny, {
196
+ operations: {
197
+ operationKey: string;
198
+ targetType: string;
199
+ }[];
200
+ }, {
201
+ operations: {
202
+ operationKey: string;
203
+ targetType: string;
204
+ }[];
205
+ }>;
206
+ export type GrantUnlicensedGlobalPermissionsArgs = z.infer<typeof GrantUnlicensedGlobalPermissionsArgsSchema>;
207
+ export declare function grantUnlicensedGlobalPermissions(client: ConfluenceClient, args: GrantUnlicensedGlobalPermissionsArgs): Promise<ToolResult>;
208
+ export declare const RevokeUnlicensedGlobalPermissionsArgsSchema: z.ZodObject<{
209
+ operations: z.ZodArray<z.ZodObject<{
210
+ targetType: z.ZodString;
211
+ operationKey: z.ZodString;
212
+ }, "strip", z.ZodTypeAny, {
213
+ operationKey: string;
214
+ targetType: string;
215
+ }, {
216
+ operationKey: string;
217
+ targetType: string;
218
+ }>, "many">;
219
+ }, "strip", z.ZodTypeAny, {
220
+ operations: {
221
+ operationKey: string;
222
+ targetType: string;
223
+ }[];
224
+ }, {
225
+ operations: {
226
+ operationKey: string;
227
+ targetType: string;
228
+ }[];
229
+ }>;
230
+ export type RevokeUnlicensedGlobalPermissionsArgs = z.infer<typeof RevokeUnlicensedGlobalPermissionsArgsSchema>;
231
+ export declare function revokeUnlicensedGlobalPermissions(client: ConfluenceClient, args: RevokeUnlicensedGlobalPermissionsArgs): Promise<ToolResult>;
232
+ export declare const GetUserGlobalPermissionsArgsSchema: z.ZodObject<{
233
+ user: z.ZodString;
234
+ }, "strip", z.ZodTypeAny, {
235
+ user: string;
236
+ }, {
237
+ user: string;
238
+ }>;
239
+ export type GetUserGlobalPermissionsArgs = z.infer<typeof GetUserGlobalPermissionsArgsSchema>;
240
+ export declare function getUserGlobalPermissions(client: ConfluenceClient, args: GetUserGlobalPermissionsArgs): Promise<ToolResult>;
241
+ export declare const GrantUserGlobalPermissionsArgsSchema: z.ZodObject<{
242
+ user: z.ZodString;
243
+ operations: z.ZodArray<z.ZodObject<{
244
+ targetType: z.ZodString;
245
+ operationKey: z.ZodString;
246
+ }, "strip", z.ZodTypeAny, {
247
+ operationKey: string;
248
+ targetType: string;
249
+ }, {
250
+ operationKey: string;
251
+ targetType: string;
252
+ }>, "many">;
253
+ }, "strip", z.ZodTypeAny, {
254
+ user: string;
255
+ operations: {
256
+ operationKey: string;
257
+ targetType: string;
258
+ }[];
259
+ }, {
260
+ user: string;
261
+ operations: {
262
+ operationKey: string;
263
+ targetType: string;
264
+ }[];
265
+ }>;
266
+ export type GrantUserGlobalPermissionsArgs = z.infer<typeof GrantUserGlobalPermissionsArgsSchema>;
267
+ export declare function grantUserGlobalPermissions(client: ConfluenceClient, args: GrantUserGlobalPermissionsArgs): Promise<ToolResult>;
268
+ export declare const RevokeUserGlobalPermissionsArgsSchema: z.ZodObject<{
269
+ user: z.ZodString;
270
+ operations: z.ZodArray<z.ZodObject<{
271
+ targetType: z.ZodString;
272
+ operationKey: z.ZodString;
273
+ }, "strip", z.ZodTypeAny, {
274
+ operationKey: string;
275
+ targetType: string;
276
+ }, {
277
+ operationKey: string;
278
+ targetType: string;
279
+ }>, "many">;
280
+ }, "strip", z.ZodTypeAny, {
281
+ user: string;
282
+ operations: {
283
+ operationKey: string;
284
+ targetType: string;
285
+ }[];
286
+ }, {
287
+ user: string;
288
+ operations: {
289
+ operationKey: string;
290
+ targetType: string;
291
+ }[];
292
+ }>;
293
+ export type RevokeUserGlobalPermissionsArgs = z.infer<typeof RevokeUserGlobalPermissionsArgsSchema>;
294
+ export declare function revokeUserGlobalPermissions(client: ConfluenceClient, args: RevokeUserGlobalPermissionsArgs): Promise<ToolResult>;
295
+ export declare const SetSpacePermissionsArgsSchema: z.ZodObject<{
296
+ spaceKey: z.ZodString;
297
+ subjects: z.ZodArray<z.ZodObject<{
298
+ userKey: z.ZodOptional<z.ZodString>;
299
+ groupName: z.ZodOptional<z.ZodString>;
300
+ operations: z.ZodArray<z.ZodObject<{
301
+ targetType: z.ZodString;
302
+ operationKey: z.ZodString;
303
+ }, "strip", z.ZodTypeAny, {
304
+ operationKey: string;
305
+ targetType: string;
306
+ }, {
307
+ operationKey: string;
308
+ targetType: string;
309
+ }>, "many">;
310
+ }, "strip", z.ZodTypeAny, {
311
+ operations: {
312
+ operationKey: string;
313
+ targetType: string;
314
+ }[];
315
+ userKey?: string | undefined;
316
+ groupName?: string | undefined;
317
+ }, {
318
+ operations: {
319
+ operationKey: string;
320
+ targetType: string;
321
+ }[];
322
+ userKey?: string | undefined;
323
+ groupName?: string | undefined;
324
+ }>, "many">;
325
+ }, "strip", z.ZodTypeAny, {
326
+ spaceKey: string;
327
+ subjects: {
328
+ operations: {
329
+ operationKey: string;
330
+ targetType: string;
331
+ }[];
332
+ userKey?: string | undefined;
333
+ groupName?: string | undefined;
334
+ }[];
335
+ }, {
336
+ spaceKey: string;
337
+ subjects: {
338
+ operations: {
339
+ operationKey: string;
340
+ targetType: string;
341
+ }[];
342
+ userKey?: string | undefined;
343
+ groupName?: string | undefined;
344
+ }[];
345
+ }>;
346
+ export type SetSpacePermissionsArgs = z.infer<typeof SetSpacePermissionsArgsSchema>;
347
+ export declare function setSpacePermissions(client: ConfluenceClient, args: SetSpacePermissionsArgs): Promise<ToolResult>;
348
+ export declare const GetSpaceAnonymousPermissionsArgsSchema: z.ZodObject<{
349
+ spaceKey: z.ZodString;
350
+ }, "strip", z.ZodTypeAny, {
351
+ spaceKey: string;
352
+ }, {
353
+ spaceKey: string;
354
+ }>;
355
+ export type GetSpaceAnonymousPermissionsArgs = z.infer<typeof GetSpaceAnonymousPermissionsArgsSchema>;
356
+ export declare function getSpaceAnonymousPermissions(client: ConfluenceClient, args: GetSpaceAnonymousPermissionsArgs): Promise<ToolResult>;
357
+ export declare const GrantSpaceAnonymousPermissionsArgsSchema: z.ZodObject<{
358
+ spaceKey: z.ZodString;
359
+ operations: z.ZodArray<z.ZodObject<{
360
+ targetType: z.ZodString;
361
+ operationKey: z.ZodString;
362
+ }, "strip", z.ZodTypeAny, {
363
+ operationKey: string;
364
+ targetType: string;
365
+ }, {
366
+ operationKey: string;
367
+ targetType: string;
368
+ }>, "many">;
369
+ }, "strip", z.ZodTypeAny, {
370
+ spaceKey: string;
371
+ operations: {
372
+ operationKey: string;
373
+ targetType: string;
374
+ }[];
375
+ }, {
376
+ spaceKey: string;
377
+ operations: {
378
+ operationKey: string;
379
+ targetType: string;
380
+ }[];
381
+ }>;
382
+ export type GrantSpaceAnonymousPermissionsArgs = z.infer<typeof GrantSpaceAnonymousPermissionsArgsSchema>;
383
+ export declare function grantSpaceAnonymousPermissions(client: ConfluenceClient, args: GrantSpaceAnonymousPermissionsArgs): Promise<ToolResult>;
384
+ export declare const RevokeSpaceAnonymousPermissionsArgsSchema: z.ZodObject<{
385
+ spaceKey: z.ZodString;
386
+ operations: z.ZodArray<z.ZodObject<{
387
+ targetType: z.ZodString;
388
+ operationKey: z.ZodString;
389
+ }, "strip", z.ZodTypeAny, {
390
+ operationKey: string;
391
+ targetType: string;
392
+ }, {
393
+ operationKey: string;
394
+ targetType: string;
395
+ }>, "many">;
396
+ }, "strip", z.ZodTypeAny, {
397
+ spaceKey: string;
398
+ operations: {
399
+ operationKey: string;
400
+ targetType: string;
401
+ }[];
402
+ }, {
403
+ spaceKey: string;
404
+ operations: {
405
+ operationKey: string;
406
+ targetType: string;
407
+ }[];
408
+ }>;
409
+ export type RevokeSpaceAnonymousPermissionsArgs = z.infer<typeof RevokeSpaceAnonymousPermissionsArgsSchema>;
410
+ export declare function revokeSpaceAnonymousPermissions(client: ConfluenceClient, args: RevokeSpaceAnonymousPermissionsArgs): Promise<ToolResult>;
411
+ export declare const GetSpaceGroupPermissionsArgsSchema: z.ZodObject<{
412
+ spaceKey: z.ZodString;
413
+ groupName: z.ZodString;
414
+ }, "strip", z.ZodTypeAny, {
415
+ spaceKey: string;
416
+ groupName: string;
417
+ }, {
418
+ spaceKey: string;
419
+ groupName: string;
420
+ }>;
421
+ export type GetSpaceGroupPermissionsArgs = z.infer<typeof GetSpaceGroupPermissionsArgsSchema>;
422
+ export declare function getSpaceGroupPermissions(client: ConfluenceClient, args: GetSpaceGroupPermissionsArgs): Promise<ToolResult>;
423
+ export declare const GrantSpaceGroupPermissionsArgsSchema: z.ZodObject<{
424
+ spaceKey: z.ZodString;
425
+ groupName: z.ZodString;
426
+ operations: z.ZodArray<z.ZodObject<{
427
+ targetType: z.ZodString;
428
+ operationKey: z.ZodString;
429
+ }, "strip", z.ZodTypeAny, {
430
+ operationKey: string;
431
+ targetType: string;
432
+ }, {
433
+ operationKey: string;
434
+ targetType: string;
435
+ }>, "many">;
436
+ }, "strip", z.ZodTypeAny, {
437
+ spaceKey: string;
438
+ groupName: string;
439
+ operations: {
440
+ operationKey: string;
441
+ targetType: string;
442
+ }[];
443
+ }, {
444
+ spaceKey: string;
445
+ groupName: string;
446
+ operations: {
447
+ operationKey: string;
448
+ targetType: string;
449
+ }[];
450
+ }>;
451
+ export type GrantSpaceGroupPermissionsArgs = z.infer<typeof GrantSpaceGroupPermissionsArgsSchema>;
452
+ export declare function grantSpaceGroupPermissions(client: ConfluenceClient, args: GrantSpaceGroupPermissionsArgs): Promise<ToolResult>;
453
+ export declare const RevokeSpaceGroupPermissionsArgsSchema: z.ZodObject<{
454
+ spaceKey: z.ZodString;
455
+ groupName: z.ZodString;
456
+ operations: z.ZodArray<z.ZodObject<{
457
+ targetType: z.ZodString;
458
+ operationKey: z.ZodString;
459
+ }, "strip", z.ZodTypeAny, {
460
+ operationKey: string;
461
+ targetType: string;
462
+ }, {
463
+ operationKey: string;
464
+ targetType: string;
465
+ }>, "many">;
466
+ }, "strip", z.ZodTypeAny, {
467
+ spaceKey: string;
468
+ groupName: string;
469
+ operations: {
470
+ operationKey: string;
471
+ targetType: string;
472
+ }[];
473
+ }, {
474
+ spaceKey: string;
475
+ groupName: string;
476
+ operations: {
477
+ operationKey: string;
478
+ targetType: string;
479
+ }[];
480
+ }>;
481
+ export type RevokeSpaceGroupPermissionsArgs = z.infer<typeof RevokeSpaceGroupPermissionsArgsSchema>;
482
+ export declare function revokeSpaceGroupPermissions(client: ConfluenceClient, args: RevokeSpaceGroupPermissionsArgs): Promise<ToolResult>;
483
+ export declare const GetSpaceUserPermissionsArgsSchema: z.ZodObject<{
484
+ spaceKey: z.ZodString;
485
+ userKey: z.ZodString;
486
+ }, "strip", z.ZodTypeAny, {
487
+ spaceKey: string;
488
+ userKey: string;
489
+ }, {
490
+ spaceKey: string;
491
+ userKey: string;
492
+ }>;
493
+ export type GetSpaceUserPermissionsArgs = z.infer<typeof GetSpaceUserPermissionsArgsSchema>;
494
+ export declare function getSpaceUserPermissions(client: ConfluenceClient, args: GetSpaceUserPermissionsArgs): Promise<ToolResult>;
495
+ export declare const GrantSpaceUserPermissionsArgsSchema: z.ZodObject<{
496
+ spaceKey: z.ZodString;
497
+ userKey: z.ZodString;
498
+ operations: z.ZodArray<z.ZodObject<{
499
+ targetType: z.ZodString;
500
+ operationKey: z.ZodString;
501
+ }, "strip", z.ZodTypeAny, {
502
+ operationKey: string;
503
+ targetType: string;
504
+ }, {
505
+ operationKey: string;
506
+ targetType: string;
507
+ }>, "many">;
508
+ }, "strip", z.ZodTypeAny, {
509
+ spaceKey: string;
510
+ userKey: string;
511
+ operations: {
512
+ operationKey: string;
513
+ targetType: string;
514
+ }[];
515
+ }, {
516
+ spaceKey: string;
517
+ userKey: string;
518
+ operations: {
519
+ operationKey: string;
520
+ targetType: string;
521
+ }[];
522
+ }>;
523
+ export type GrantSpaceUserPermissionsArgs = z.infer<typeof GrantSpaceUserPermissionsArgsSchema>;
524
+ export declare function grantSpaceUserPermissions(client: ConfluenceClient, args: GrantSpaceUserPermissionsArgs): Promise<ToolResult>;
525
+ export declare const RevokeSpaceUserPermissionsArgsSchema: z.ZodObject<{
526
+ spaceKey: z.ZodString;
527
+ userKey: z.ZodString;
528
+ operations: z.ZodArray<z.ZodObject<{
529
+ targetType: z.ZodString;
530
+ operationKey: z.ZodString;
531
+ }, "strip", z.ZodTypeAny, {
532
+ operationKey: string;
533
+ targetType: string;
534
+ }, {
535
+ operationKey: string;
536
+ targetType: string;
537
+ }>, "many">;
538
+ }, "strip", z.ZodTypeAny, {
539
+ spaceKey: string;
540
+ userKey: string;
541
+ operations: {
542
+ operationKey: string;
543
+ targetType: string;
544
+ }[];
545
+ }, {
546
+ spaceKey: string;
547
+ userKey: string;
548
+ operations: {
549
+ operationKey: string;
550
+ targetType: string;
551
+ }[];
552
+ }>;
553
+ export type RevokeSpaceUserPermissionsArgs = z.infer<typeof RevokeSpaceUserPermissionsArgsSchema>;
554
+ export declare function revokeSpaceUserPermissions(client: ConfluenceClient, args: RevokeSpaceUserPermissionsArgs): Promise<ToolResult>;