@bubblelab/bubble-core 0.1.103 → 0.1.106
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/dist/bubble-bundle.d.ts +100 -55
- package/dist/bubble-factory.d.ts.map +1 -1
- package/dist/bubble-factory.js +4 -0
- package/dist/bubble-factory.js.map +1 -1
- package/dist/bubbles/service-bubble/ai-agent.d.ts +4 -4
- package/dist/bubbles/service-bubble/apify/apify.d.ts +4 -4
- package/dist/bubbles/service-bubble/confluence/confluence.d.ts +1957 -0
- package/dist/bubbles/service-bubble/confluence/confluence.d.ts.map +1 -0
- package/dist/bubbles/service-bubble/confluence/confluence.integration.flow.d.ts +35 -0
- package/dist/bubbles/service-bubble/confluence/confluence.integration.flow.d.ts.map +1 -0
- package/dist/bubbles/service-bubble/confluence/confluence.integration.flow.js +327 -0
- package/dist/bubbles/service-bubble/confluence/confluence.integration.flow.js.map +1 -0
- package/dist/bubbles/service-bubble/confluence/confluence.js +534 -0
- package/dist/bubbles/service-bubble/confluence/confluence.js.map +1 -0
- package/dist/bubbles/service-bubble/confluence/confluence.schema.d.ts +2435 -0
- package/dist/bubbles/service-bubble/confluence/confluence.schema.d.ts.map +1 -0
- package/dist/bubbles/service-bubble/confluence/confluence.schema.js +467 -0
- package/dist/bubbles/service-bubble/confluence/confluence.schema.js.map +1 -0
- package/dist/bubbles/service-bubble/confluence/confluence.utils.d.ts +49 -0
- package/dist/bubbles/service-bubble/confluence/confluence.utils.d.ts.map +1 -0
- package/dist/bubbles/service-bubble/confluence/confluence.utils.js +337 -0
- package/dist/bubbles/service-bubble/confluence/confluence.utils.js.map +1 -0
- package/dist/bubbles/service-bubble/confluence/index.d.ts +5 -0
- package/dist/bubbles/service-bubble/confluence/index.d.ts.map +1 -0
- package/dist/bubbles/service-bubble/confluence/index.js +5 -0
- package/dist/bubbles/service-bubble/confluence/index.js.map +1 -0
- package/dist/bubbles/service-bubble/crustdata/crustdata.d.ts +8 -8
- package/dist/bubbles/service-bubble/crustdata/crustdata.schema.d.ts +16 -16
- package/dist/bubbles/service-bubble/firecrawl.d.ts +4 -4
- package/dist/bubbles/service-bubble/gmail.d.ts +84 -84
- package/dist/bubbles/service-bubble/google-drive.d.ts +32 -32
- package/dist/bubbles/service-bubble/google-drive.d.ts.map +1 -1
- package/dist/bubbles/service-bubble/google-drive.js +22 -2
- package/dist/bubbles/service-bubble/google-drive.js.map +1 -1
- package/dist/bubbles/service-bubble/google-sheets/google-sheets.schema.js +6 -6
- package/dist/bubbles/service-bubble/google-sheets/google-sheets.schema.js.map +1 -1
- package/dist/bubbles/service-bubble/jira/jira.d.ts +12 -12
- package/dist/bubbles/service-bubble/jira/jira.schema.d.ts +14 -14
- package/dist/bubbles/service-bubble/resend.d.ts +4 -4
- package/dist/bubbles/service-bubble/salesforce/index.d.ts +4 -0
- package/dist/bubbles/service-bubble/salesforce/index.d.ts.map +1 -0
- package/dist/bubbles/service-bubble/salesforce/index.js +4 -0
- package/dist/bubbles/service-bubble/salesforce/index.js.map +1 -0
- package/dist/bubbles/service-bubble/salesforce/salesforce.d.ts +1331 -0
- package/dist/bubbles/service-bubble/salesforce/salesforce.d.ts.map +1 -0
- package/dist/bubbles/service-bubble/salesforce/salesforce.js +618 -0
- package/dist/bubbles/service-bubble/salesforce/salesforce.js.map +1 -0
- package/dist/bubbles/service-bubble/salesforce/salesforce.schema.d.ts +1445 -0
- package/dist/bubbles/service-bubble/salesforce/salesforce.schema.d.ts.map +1 -0
- package/dist/bubbles/service-bubble/salesforce/salesforce.schema.js +609 -0
- package/dist/bubbles/service-bubble/salesforce/salesforce.schema.js.map +1 -0
- package/dist/bubbles/service-bubble/salesforce/salesforce.utils.d.ts +87 -0
- package/dist/bubbles/service-bubble/salesforce/salesforce.utils.d.ts.map +1 -0
- package/dist/bubbles/service-bubble/salesforce/salesforce.utils.js +181 -0
- package/dist/bubbles/service-bubble/salesforce/salesforce.utils.js.map +1 -0
- package/dist/bubbles/service-bubble/slack/slack.d.ts +36 -36
- package/dist/bubbles/tool-bubble/tiktok-tool.d.ts +8 -8
- package/dist/bubbles/tool-bubble/twitter-tool.d.ts +10 -10
- package/dist/bubbles/workflow-bubble/pdf-form-operations.workflow.d.ts +8 -8
- package/dist/bubbles/workflow-bubble/pdf-ocr.workflow.d.ts +16 -16
- package/dist/bubbles/workflow-bubble/slack-formatter-agent.d.ts +16 -16
- package/dist/bubbles.json +1247 -8
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"confluence.schema.d.ts","sourceRoot":"","sources":["../../../../src/bubbles/service-bubble/confluence/confluence.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAgB3D,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;gCAiBH,CAAC;AAEhC,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gCA2CH,CAAC;AAE/B,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gCA2BH,CAAC;AAElC,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;CAAE,CAC7B,CAAC;AACF,MAAM,MAAM,2BAA2B,GAAG,OAAO,CAC/C,gBAAgB,EAChB;IAAE,SAAS,EAAE,cAAc,CAAA;CAAE,CAC9B,CAAC"}
|
|
@@ -0,0 +1,467 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { CredentialType } from '@bubblelab/shared-schemas';
|
|
3
|
+
// ============================================================================
|
|
4
|
+
// HELPER SCHEMAS
|
|
5
|
+
// ============================================================================
|
|
6
|
+
// Credentials field (common across all operations)
|
|
7
|
+
const credentialsField = z
|
|
8
|
+
.record(z.nativeEnum(CredentialType), z.string())
|
|
9
|
+
.optional()
|
|
10
|
+
.describe('Credentials (injected at runtime)');
|
|
11
|
+
// ============================================================================
|
|
12
|
+
// DATA SCHEMAS (for results)
|
|
13
|
+
// ============================================================================
|
|
14
|
+
export const ConfluenceSpaceSchema = z
|
|
15
|
+
.object({
|
|
16
|
+
id: z.string().describe('Space ID'),
|
|
17
|
+
key: z.string().describe('Space key'),
|
|
18
|
+
name: z.string().describe('Space name'),
|
|
19
|
+
type: z
|
|
20
|
+
.string()
|
|
21
|
+
.optional()
|
|
22
|
+
.describe('Space type (e.g., "global", "personal")'),
|
|
23
|
+
status: z.string().optional().describe('Space status'),
|
|
24
|
+
description: z
|
|
25
|
+
.unknown()
|
|
26
|
+
.optional()
|
|
27
|
+
.describe('Space description (string or structured object)'),
|
|
28
|
+
homepageId: z.string().optional().describe('Homepage ID'),
|
|
29
|
+
})
|
|
30
|
+
.passthrough()
|
|
31
|
+
.describe('Confluence space');
|
|
32
|
+
export const ConfluencePageSchema = z
|
|
33
|
+
.object({
|
|
34
|
+
id: z.string().describe('Page ID'),
|
|
35
|
+
title: z.string().describe('Page title'),
|
|
36
|
+
status: z
|
|
37
|
+
.string()
|
|
38
|
+
.optional()
|
|
39
|
+
.describe('Page status (current, draft, trashed)'),
|
|
40
|
+
spaceId: z.string().optional().describe('Space ID the page belongs to'),
|
|
41
|
+
parentId: z.string().nullable().optional().describe('Parent page ID'),
|
|
42
|
+
parentType: z.string().nullable().optional().describe('Parent type'),
|
|
43
|
+
authorId: z.string().optional().describe('Author account ID'),
|
|
44
|
+
createdAt: z.string().optional().describe('Creation timestamp'),
|
|
45
|
+
version: z
|
|
46
|
+
.object({
|
|
47
|
+
number: z.number().describe('Version number'),
|
|
48
|
+
message: z.string().optional().describe('Version message'),
|
|
49
|
+
createdAt: z.string().optional().describe('Version creation timestamp'),
|
|
50
|
+
})
|
|
51
|
+
.passthrough()
|
|
52
|
+
.optional()
|
|
53
|
+
.describe('Version information'),
|
|
54
|
+
body: z
|
|
55
|
+
.object({
|
|
56
|
+
storage: z
|
|
57
|
+
.object({
|
|
58
|
+
value: z.string().describe('Page body in storage format (XHTML)'),
|
|
59
|
+
representation: z.string().optional(),
|
|
60
|
+
})
|
|
61
|
+
.optional(),
|
|
62
|
+
})
|
|
63
|
+
.passthrough()
|
|
64
|
+
.optional()
|
|
65
|
+
.describe('Page body content'),
|
|
66
|
+
_links: z
|
|
67
|
+
.object({
|
|
68
|
+
webui: z.string().optional().describe('Web UI link to the page'),
|
|
69
|
+
})
|
|
70
|
+
.passthrough()
|
|
71
|
+
.optional()
|
|
72
|
+
.describe('Links'),
|
|
73
|
+
})
|
|
74
|
+
.passthrough()
|
|
75
|
+
.describe('Confluence page');
|
|
76
|
+
export const ConfluenceCommentSchema = z
|
|
77
|
+
.object({
|
|
78
|
+
id: z.string().describe('Comment ID'),
|
|
79
|
+
title: z.string().optional().describe('Comment title'),
|
|
80
|
+
body: z
|
|
81
|
+
.object({
|
|
82
|
+
storage: z
|
|
83
|
+
.object({
|
|
84
|
+
value: z.string().describe('Comment body in storage format'),
|
|
85
|
+
representation: z.string().optional(),
|
|
86
|
+
})
|
|
87
|
+
.optional(),
|
|
88
|
+
})
|
|
89
|
+
.passthrough()
|
|
90
|
+
.optional()
|
|
91
|
+
.describe('Comment body'),
|
|
92
|
+
version: z
|
|
93
|
+
.object({
|
|
94
|
+
number: z.number().describe('Version number'),
|
|
95
|
+
createdAt: z.string().optional().describe('Version creation timestamp'),
|
|
96
|
+
})
|
|
97
|
+
.passthrough()
|
|
98
|
+
.optional()
|
|
99
|
+
.describe('Version information'),
|
|
100
|
+
createdAt: z.string().optional().describe('Creation timestamp'),
|
|
101
|
+
})
|
|
102
|
+
.passthrough()
|
|
103
|
+
.describe('Confluence comment');
|
|
104
|
+
export const ConfluenceSearchResultSchema = z
|
|
105
|
+
.object({
|
|
106
|
+
id: z.string().optional().describe('Page ID'),
|
|
107
|
+
type: z.string().optional().describe('Content type (page, blogpost, etc.)'),
|
|
108
|
+
title: z.string().optional().describe('Page title'),
|
|
109
|
+
status: z.string().optional().describe('Page status'),
|
|
110
|
+
excerpt: z.string().optional().describe('Search result excerpt'),
|
|
111
|
+
url: z.string().optional().describe('Result URL'),
|
|
112
|
+
lastModified: z.string().optional().describe('Last modified timestamp'),
|
|
113
|
+
_links: z
|
|
114
|
+
.object({
|
|
115
|
+
webui: z.string().optional(),
|
|
116
|
+
})
|
|
117
|
+
.passthrough()
|
|
118
|
+
.optional()
|
|
119
|
+
.describe('Links'),
|
|
120
|
+
content: z
|
|
121
|
+
.object({
|
|
122
|
+
id: z.string().optional(),
|
|
123
|
+
type: z.string().optional(),
|
|
124
|
+
title: z.string().optional(),
|
|
125
|
+
status: z.string().optional(),
|
|
126
|
+
_links: z
|
|
127
|
+
.object({
|
|
128
|
+
webui: z.string().optional(),
|
|
129
|
+
})
|
|
130
|
+
.passthrough()
|
|
131
|
+
.optional(),
|
|
132
|
+
})
|
|
133
|
+
.passthrough()
|
|
134
|
+
.optional()
|
|
135
|
+
.describe('Raw content object (same data also available at top level)'),
|
|
136
|
+
})
|
|
137
|
+
.passthrough()
|
|
138
|
+
.describe('Confluence search result (normalized: id, title, status available at top level)');
|
|
139
|
+
// ============================================================================
|
|
140
|
+
// PARAMETERS SCHEMA (discriminated union)
|
|
141
|
+
// ============================================================================
|
|
142
|
+
export const ConfluenceParamsSchema = z.discriminatedUnion('operation', [
|
|
143
|
+
// -------------------------------------------------------------------------
|
|
144
|
+
// OPERATION 1: list_spaces
|
|
145
|
+
// -------------------------------------------------------------------------
|
|
146
|
+
z.object({
|
|
147
|
+
operation: z.literal('list_spaces').describe('List Confluence spaces'),
|
|
148
|
+
limit: z
|
|
149
|
+
.number()
|
|
150
|
+
.min(1)
|
|
151
|
+
.max(250)
|
|
152
|
+
.optional()
|
|
153
|
+
.default(25)
|
|
154
|
+
.describe('Maximum number of spaces to return (1-250)'),
|
|
155
|
+
cursor: z
|
|
156
|
+
.string()
|
|
157
|
+
.optional()
|
|
158
|
+
.describe('Cursor for pagination (from previous response)'),
|
|
159
|
+
type: z
|
|
160
|
+
.enum(['global', 'personal'])
|
|
161
|
+
.optional()
|
|
162
|
+
.describe('Filter by space type. Omit to list all spaces (recommended). Most Confluence sites use personal spaces, so filtering by "global" may return no results.'),
|
|
163
|
+
status: z
|
|
164
|
+
.enum(['current', 'archived'])
|
|
165
|
+
.optional()
|
|
166
|
+
.describe('Filter by space status'),
|
|
167
|
+
credentials: credentialsField,
|
|
168
|
+
}),
|
|
169
|
+
// -------------------------------------------------------------------------
|
|
170
|
+
// OPERATION 2: get_space
|
|
171
|
+
// -------------------------------------------------------------------------
|
|
172
|
+
z.object({
|
|
173
|
+
operation: z.literal('get_space').describe('Get a specific space by ID'),
|
|
174
|
+
space_id: z
|
|
175
|
+
.string()
|
|
176
|
+
.min(1, 'Space ID is required')
|
|
177
|
+
.describe('Space ID to retrieve'),
|
|
178
|
+
credentials: credentialsField,
|
|
179
|
+
}),
|
|
180
|
+
// -------------------------------------------------------------------------
|
|
181
|
+
// OPERATION 3: list_pages
|
|
182
|
+
// -------------------------------------------------------------------------
|
|
183
|
+
z.object({
|
|
184
|
+
operation: z
|
|
185
|
+
.literal('list_pages')
|
|
186
|
+
.describe('List pages with optional filtering'),
|
|
187
|
+
space_id: z
|
|
188
|
+
.string()
|
|
189
|
+
.optional()
|
|
190
|
+
.describe('Filter by space ID (numeric ID from list_spaces)'),
|
|
191
|
+
space_key: z
|
|
192
|
+
.string()
|
|
193
|
+
.optional()
|
|
194
|
+
.describe('Filter by space key (e.g., "DEV", "HR"). Alternative to space_id — provide either one.'),
|
|
195
|
+
title: z.string().optional().describe('Filter by exact page title'),
|
|
196
|
+
status: z
|
|
197
|
+
.enum(['current', 'trashed', 'draft'])
|
|
198
|
+
.optional()
|
|
199
|
+
.describe('Filter by page status. Default: current'),
|
|
200
|
+
limit: z
|
|
201
|
+
.number()
|
|
202
|
+
.min(1)
|
|
203
|
+
.max(250)
|
|
204
|
+
.optional()
|
|
205
|
+
.default(25)
|
|
206
|
+
.describe('Maximum number of pages to return (1-250)'),
|
|
207
|
+
cursor: z.string().optional().describe('Cursor for pagination'),
|
|
208
|
+
credentials: credentialsField,
|
|
209
|
+
}),
|
|
210
|
+
// -------------------------------------------------------------------------
|
|
211
|
+
// OPERATION 4: get_page
|
|
212
|
+
// -------------------------------------------------------------------------
|
|
213
|
+
z.object({
|
|
214
|
+
operation: z
|
|
215
|
+
.literal('get_page')
|
|
216
|
+
.describe('Get a specific page by ID with body content'),
|
|
217
|
+
page_id: z
|
|
218
|
+
.string()
|
|
219
|
+
.min(1, 'Page ID is required')
|
|
220
|
+
.describe('Page ID to retrieve'),
|
|
221
|
+
include_body: z
|
|
222
|
+
.boolean()
|
|
223
|
+
.optional()
|
|
224
|
+
.default(true)
|
|
225
|
+
.describe('Whether to include the page body content. Default: true'),
|
|
226
|
+
credentials: credentialsField,
|
|
227
|
+
}),
|
|
228
|
+
// -------------------------------------------------------------------------
|
|
229
|
+
// OPERATION 5: create_page
|
|
230
|
+
// -------------------------------------------------------------------------
|
|
231
|
+
z.object({
|
|
232
|
+
operation: z
|
|
233
|
+
.literal('create_page')
|
|
234
|
+
.describe('Create a new page in a space'),
|
|
235
|
+
space_id: z
|
|
236
|
+
.string()
|
|
237
|
+
.min(1)
|
|
238
|
+
.optional()
|
|
239
|
+
.describe('Space ID to create the page in (numeric ID from list_spaces). Provide either space_id or space_key.'),
|
|
240
|
+
space_key: z
|
|
241
|
+
.string()
|
|
242
|
+
.min(1)
|
|
243
|
+
.optional()
|
|
244
|
+
.describe('Space key to create the page in (e.g., "DEV", "HR"). Alternative to space_id.'),
|
|
245
|
+
title: z.string().min(1, 'Title is required').describe('Page title'),
|
|
246
|
+
body: z
|
|
247
|
+
.string()
|
|
248
|
+
.optional()
|
|
249
|
+
.describe('Page body content (markdown - auto-converted to Confluence storage format)'),
|
|
250
|
+
parent_id: z
|
|
251
|
+
.string()
|
|
252
|
+
.optional()
|
|
253
|
+
.describe('Parent page ID (creates as child page)'),
|
|
254
|
+
status: z
|
|
255
|
+
.enum(['current', 'draft'])
|
|
256
|
+
.optional()
|
|
257
|
+
.default('current')
|
|
258
|
+
.describe('Page status. Default: current (published)'),
|
|
259
|
+
credentials: credentialsField,
|
|
260
|
+
}),
|
|
261
|
+
// -------------------------------------------------------------------------
|
|
262
|
+
// OPERATION 6: update_page
|
|
263
|
+
// -------------------------------------------------------------------------
|
|
264
|
+
z.object({
|
|
265
|
+
operation: z
|
|
266
|
+
.literal('update_page')
|
|
267
|
+
.describe('Update an existing page (auto-increments version)'),
|
|
268
|
+
page_id: z
|
|
269
|
+
.string()
|
|
270
|
+
.min(1, 'Page ID is required')
|
|
271
|
+
.describe('Page ID to update'),
|
|
272
|
+
title: z
|
|
273
|
+
.string()
|
|
274
|
+
.optional()
|
|
275
|
+
.describe('New page title (uses current title if not specified)'),
|
|
276
|
+
body: z
|
|
277
|
+
.string()
|
|
278
|
+
.optional()
|
|
279
|
+
.describe('New page body (markdown - auto-converted to Confluence storage format). If omitted, the existing body is preserved.'),
|
|
280
|
+
status: z.enum(['current', 'draft']).optional().describe('New page status'),
|
|
281
|
+
version_message: z
|
|
282
|
+
.string()
|
|
283
|
+
.optional()
|
|
284
|
+
.describe('Version comment describing the changes'),
|
|
285
|
+
credentials: credentialsField,
|
|
286
|
+
}),
|
|
287
|
+
// -------------------------------------------------------------------------
|
|
288
|
+
// OPERATION 7: delete_page
|
|
289
|
+
// -------------------------------------------------------------------------
|
|
290
|
+
z.object({
|
|
291
|
+
operation: z.literal('delete_page').describe('Delete (trash) a page'),
|
|
292
|
+
page_id: z
|
|
293
|
+
.string()
|
|
294
|
+
.min(1, 'Page ID is required')
|
|
295
|
+
.describe('Page ID to delete'),
|
|
296
|
+
credentials: credentialsField,
|
|
297
|
+
}),
|
|
298
|
+
// -------------------------------------------------------------------------
|
|
299
|
+
// OPERATION 8: search
|
|
300
|
+
// -------------------------------------------------------------------------
|
|
301
|
+
z.object({
|
|
302
|
+
operation: z
|
|
303
|
+
.literal('search')
|
|
304
|
+
.describe('Search Confluence content using CQL'),
|
|
305
|
+
cql: z
|
|
306
|
+
.string()
|
|
307
|
+
.min(1, 'CQL query is required')
|
|
308
|
+
.describe('CQL (Confluence Query Language) query string. Examples: \'type=page AND space=DEV\', \'type=page AND title="My Page"\', \'text~"search term"\', \'type=page ORDER BY created DESC\'. Note: reserved words like "null", "and", "or" must be quoted if used as values. IMPORTANT: Confluence search has an indexing delay — newly created or updated pages may not appear in CQL search results for several minutes. Use list_pages to find recently created pages instead.'),
|
|
309
|
+
limit: z
|
|
310
|
+
.number()
|
|
311
|
+
.min(1)
|
|
312
|
+
.max(100)
|
|
313
|
+
.optional()
|
|
314
|
+
.default(25)
|
|
315
|
+
.describe('Maximum number of results to return (1-100)'),
|
|
316
|
+
start: z
|
|
317
|
+
.number()
|
|
318
|
+
.min(0)
|
|
319
|
+
.optional()
|
|
320
|
+
.default(0)
|
|
321
|
+
.describe('Starting index for pagination'),
|
|
322
|
+
credentials: credentialsField,
|
|
323
|
+
}),
|
|
324
|
+
// -------------------------------------------------------------------------
|
|
325
|
+
// OPERATION 9: add_comment
|
|
326
|
+
// -------------------------------------------------------------------------
|
|
327
|
+
z.object({
|
|
328
|
+
operation: z
|
|
329
|
+
.literal('add_comment')
|
|
330
|
+
.describe('Add a footer comment to a page'),
|
|
331
|
+
page_id: z
|
|
332
|
+
.string()
|
|
333
|
+
.min(1, 'Page ID is required')
|
|
334
|
+
.describe('Page ID to add the comment to'),
|
|
335
|
+
body: z
|
|
336
|
+
.string()
|
|
337
|
+
.min(1, 'Comment body is required')
|
|
338
|
+
.describe('Comment text (markdown - auto-converted to Confluence storage format)'),
|
|
339
|
+
credentials: credentialsField,
|
|
340
|
+
}),
|
|
341
|
+
// -------------------------------------------------------------------------
|
|
342
|
+
// OPERATION 10: get_comments
|
|
343
|
+
// -------------------------------------------------------------------------
|
|
344
|
+
z.object({
|
|
345
|
+
operation: z
|
|
346
|
+
.literal('get_comments')
|
|
347
|
+
.describe('List footer comments for a page'),
|
|
348
|
+
page_id: z
|
|
349
|
+
.string()
|
|
350
|
+
.min(1, 'Page ID is required')
|
|
351
|
+
.describe('Page ID to get comments for'),
|
|
352
|
+
limit: z
|
|
353
|
+
.number()
|
|
354
|
+
.min(1)
|
|
355
|
+
.max(100)
|
|
356
|
+
.optional()
|
|
357
|
+
.default(25)
|
|
358
|
+
.describe('Maximum number of comments to return'),
|
|
359
|
+
cursor: z.string().optional().describe('Cursor for pagination'),
|
|
360
|
+
credentials: credentialsField,
|
|
361
|
+
}),
|
|
362
|
+
]);
|
|
363
|
+
// ============================================================================
|
|
364
|
+
// RESULT SCHEMAS
|
|
365
|
+
// ============================================================================
|
|
366
|
+
export const ConfluenceResultSchema = z.discriminatedUnion('operation', [
|
|
367
|
+
// list_spaces result
|
|
368
|
+
z.object({
|
|
369
|
+
operation: z.literal('list_spaces'),
|
|
370
|
+
success: z.boolean(),
|
|
371
|
+
spaces: z.array(ConfluenceSpaceSchema).optional(),
|
|
372
|
+
cursor: z.string().optional().describe('Next page cursor'),
|
|
373
|
+
error: z.string(),
|
|
374
|
+
}),
|
|
375
|
+
// get_space result
|
|
376
|
+
z.object({
|
|
377
|
+
operation: z.literal('get_space'),
|
|
378
|
+
success: z.boolean(),
|
|
379
|
+
space: ConfluenceSpaceSchema.optional(),
|
|
380
|
+
error: z.string(),
|
|
381
|
+
}),
|
|
382
|
+
// list_pages result
|
|
383
|
+
z.object({
|
|
384
|
+
operation: z.literal('list_pages'),
|
|
385
|
+
success: z.boolean(),
|
|
386
|
+
pages: z.array(ConfluencePageSchema).optional(),
|
|
387
|
+
cursor: z.string().optional().describe('Next page cursor'),
|
|
388
|
+
error: z.string(),
|
|
389
|
+
}),
|
|
390
|
+
// get_page result
|
|
391
|
+
z.object({
|
|
392
|
+
operation: z.literal('get_page'),
|
|
393
|
+
success: z.boolean(),
|
|
394
|
+
page: ConfluencePageSchema.optional(),
|
|
395
|
+
error: z.string(),
|
|
396
|
+
}),
|
|
397
|
+
// create_page result
|
|
398
|
+
z.object({
|
|
399
|
+
operation: z.literal('create_page'),
|
|
400
|
+
success: z.boolean(),
|
|
401
|
+
page: z
|
|
402
|
+
.object({
|
|
403
|
+
id: z.string(),
|
|
404
|
+
title: z.string(),
|
|
405
|
+
status: z.string().optional(),
|
|
406
|
+
_links: z
|
|
407
|
+
.object({
|
|
408
|
+
webui: z.string().optional(),
|
|
409
|
+
})
|
|
410
|
+
.passthrough()
|
|
411
|
+
.optional(),
|
|
412
|
+
})
|
|
413
|
+
.optional(),
|
|
414
|
+
error: z.string(),
|
|
415
|
+
}),
|
|
416
|
+
// update_page result
|
|
417
|
+
z.object({
|
|
418
|
+
operation: z.literal('update_page'),
|
|
419
|
+
success: z.boolean(),
|
|
420
|
+
page: z
|
|
421
|
+
.object({
|
|
422
|
+
id: z.string(),
|
|
423
|
+
title: z.string(),
|
|
424
|
+
version: z
|
|
425
|
+
.object({
|
|
426
|
+
number: z.number(),
|
|
427
|
+
})
|
|
428
|
+
.passthrough()
|
|
429
|
+
.optional(),
|
|
430
|
+
})
|
|
431
|
+
.optional(),
|
|
432
|
+
error: z.string(),
|
|
433
|
+
}),
|
|
434
|
+
// delete_page result
|
|
435
|
+
z.object({
|
|
436
|
+
operation: z.literal('delete_page'),
|
|
437
|
+
success: z.boolean(),
|
|
438
|
+
page_id: z.string().optional(),
|
|
439
|
+
error: z.string(),
|
|
440
|
+
}),
|
|
441
|
+
// search result
|
|
442
|
+
z.object({
|
|
443
|
+
operation: z.literal('search'),
|
|
444
|
+
success: z.boolean(),
|
|
445
|
+
results: z.array(ConfluenceSearchResultSchema).optional(),
|
|
446
|
+
total: z.number().optional(),
|
|
447
|
+
start: z.number().optional(),
|
|
448
|
+
limit: z.number().optional(),
|
|
449
|
+
error: z.string(),
|
|
450
|
+
}),
|
|
451
|
+
// add_comment result
|
|
452
|
+
z.object({
|
|
453
|
+
operation: z.literal('add_comment'),
|
|
454
|
+
success: z.boolean(),
|
|
455
|
+
comment: ConfluenceCommentSchema.optional(),
|
|
456
|
+
error: z.string(),
|
|
457
|
+
}),
|
|
458
|
+
// get_comments result
|
|
459
|
+
z.object({
|
|
460
|
+
operation: z.literal('get_comments'),
|
|
461
|
+
success: z.boolean(),
|
|
462
|
+
comments: z.array(ConfluenceCommentSchema).optional(),
|
|
463
|
+
cursor: z.string().optional(),
|
|
464
|
+
error: z.string(),
|
|
465
|
+
}),
|
|
466
|
+
]);
|
|
467
|
+
//# sourceMappingURL=confluence.schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"confluence.schema.js","sourceRoot":"","sources":["../../../../src/bubbles/service-bubble/confluence/confluence.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,+EAA+E;AAC/E,iBAAiB;AACjB,+EAA+E;AAE/E,mDAAmD;AACnD,MAAM,gBAAgB,GAAG,CAAC;KACvB,MAAM,CAAC,CAAC,CAAC,UAAU,CAAC,cAAc,CAAC,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC;KAChD,QAAQ,EAAE;KACV,QAAQ,CAAC,mCAAmC,CAAC,CAAC;AAEjD,+EAA+E;AAC/E,6BAA6B;AAC7B,+EAA+E;AAE/E,MA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AC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QAC7B,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;KAClB,CAAC;CACH,CAAC,CAAC"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Confluence Bubble Utilities
|
|
3
|
+
*
|
|
4
|
+
* Helper functions for the Confluence service integration.
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* Converts markdown text to Confluence storage format (XHTML-based).
|
|
8
|
+
*
|
|
9
|
+
* Confluence uses an XHTML-based storage format for page bodies.
|
|
10
|
+
* This function converts common markdown into the appropriate format.
|
|
11
|
+
* Works for both page bodies and comment bodies.
|
|
12
|
+
*
|
|
13
|
+
* Supported markdown:
|
|
14
|
+
* - **bold** or __bold__
|
|
15
|
+
* - *italic* or _italic_
|
|
16
|
+
* - `inline code`
|
|
17
|
+
* - [links](url)
|
|
18
|
+
* - # Headings (h1-h6)
|
|
19
|
+
* - - Bullet lists
|
|
20
|
+
* - 1. Numbered lists
|
|
21
|
+
* - > Blockquotes
|
|
22
|
+
* - ``` Code blocks ```
|
|
23
|
+
* - --- Horizontal rules
|
|
24
|
+
* - ~~strikethrough~~
|
|
25
|
+
* - | Tables |
|
|
26
|
+
*
|
|
27
|
+
* @param text - Markdown or plain text to convert
|
|
28
|
+
* @returns Confluence storage format XHTML string
|
|
29
|
+
*/
|
|
30
|
+
export declare function markdownToConfluenceStorage(text: string): string;
|
|
31
|
+
/**
|
|
32
|
+
* Converts Confluence storage format (XHTML) back to plain text.
|
|
33
|
+
*
|
|
34
|
+
* Strips HTML tags to produce readable plain text.
|
|
35
|
+
*
|
|
36
|
+
* @param storage - Storage format XHTML string
|
|
37
|
+
* @returns Plain text representation
|
|
38
|
+
*/
|
|
39
|
+
export declare function storageToText(storage: string | undefined | null): string;
|
|
40
|
+
/**
|
|
41
|
+
* Enhances Confluence API error messages with helpful hints.
|
|
42
|
+
*
|
|
43
|
+
* @param errorText - Raw error text from API
|
|
44
|
+
* @param statusCode - HTTP status code
|
|
45
|
+
* @param statusText - HTTP status text
|
|
46
|
+
* @returns Enhanced error message
|
|
47
|
+
*/
|
|
48
|
+
export declare function enhanceErrorMessage(errorText: string, statusCode: number, statusText: string): string;
|
|
49
|
+
//# sourceMappingURL=confluence.utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"confluence.utils.d.ts","sourceRoot":"","sources":["../../../../src/bubbles/service-bubble/confluence/confluence.utils.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAaH;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAgB,2BAA2B,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAsHhE;AAuHD;;;;;;;GAOG;AACH,wBAAgB,aAAa,CAAC,OAAO,EAAE,MAAM,GAAG,SAAS,GAAG,IAAI,GAAG,MAAM,CAkCxE;AAED;;;;;;;GAOG;AACH,wBAAgB,mBAAmB,CACjC,SAAS,EAAE,MAAM,EACjB,UAAU,EAAE,MAAM,EAClB,UAAU,EAAE,MAAM,GACjB,MAAM,CAkDR"}
|