@bubblelab/bubble-core 0.1.219 → 0.1.221
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 +66 -27
- package/dist/bubble-factory.d.ts.map +1 -1
- package/dist/bubble-factory.js +22 -46
- package/dist/bubble-factory.js.map +1 -1
- package/dist/bubbles/service-bubble/slack/slack-table-blocks.d.ts +1 -0
- package/dist/bubbles/service-bubble/slack/slack-table-blocks.d.ts.map +1 -1
- package/dist/bubbles/service-bubble/slack/slack-table-blocks.js +1 -0
- package/dist/bubbles/service-bubble/slack/slack-table-blocks.js.map +1 -1
- package/dist/bubbles/service-bubble/slack/slack.d.ts.map +1 -1
- package/dist/bubbles/service-bubble/slack/slack.js +23 -22
- package/dist/bubbles/service-bubble/slack/slack.js.map +1 -1
- package/dist/bubbles/service-bubble/zendesk/index.d.ts +3 -0
- package/dist/bubbles/service-bubble/zendesk/index.d.ts.map +1 -0
- package/dist/bubbles/service-bubble/zendesk/index.js +3 -0
- package/dist/bubbles/service-bubble/zendesk/index.js.map +1 -0
- package/dist/bubbles/service-bubble/zendesk/zendesk.d.ts +1065 -0
- package/dist/bubbles/service-bubble/zendesk/zendesk.d.ts.map +1 -0
- package/dist/bubbles/service-bubble/zendesk/zendesk.js +531 -0
- package/dist/bubbles/service-bubble/zendesk/zendesk.js.map +1 -0
- package/dist/bubbles/service-bubble/zendesk/zendesk.schema.d.ts +1008 -0
- package/dist/bubbles/service-bubble/zendesk/zendesk.schema.d.ts.map +1 -0
- package/dist/bubbles/service-bubble/zendesk/zendesk.schema.js +473 -0
- package/dist/bubbles/service-bubble/zendesk/zendesk.schema.js.map +1 -0
- package/dist/bubbles/tool-bubble/reddit-scrape-tool.d.ts +4 -4
- package/dist/bubbles.json +1523 -2
- 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
|
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA6H9B,CAAC;AAEH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,mBAAmB,CAAC,CAAC;AACjE,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AACrE,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,mBAAmB,CAAC,CAAC"}
|
|
@@ -0,0 +1,473 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { CredentialType } from '@bubblelab/shared-schemas';
|
|
3
|
+
// Shared field helpers
|
|
4
|
+
const credentialsField = z
|
|
5
|
+
.record(z.nativeEnum(CredentialType), z.string())
|
|
6
|
+
.optional()
|
|
7
|
+
.describe('Object mapping credential types to values (injected at runtime)');
|
|
8
|
+
const ticketIdField = z
|
|
9
|
+
.string()
|
|
10
|
+
.min(1, 'Ticket ID is required')
|
|
11
|
+
.describe('Zendesk ticket ID (numeric string)');
|
|
12
|
+
// Parameter schema using discriminated union
|
|
13
|
+
export const ZendeskParamsSchema = z.discriminatedUnion('operation', [
|
|
14
|
+
// List tickets
|
|
15
|
+
z.object({
|
|
16
|
+
operation: z
|
|
17
|
+
.literal('list_tickets')
|
|
18
|
+
.describe('List tickets with optional filters'),
|
|
19
|
+
status: z
|
|
20
|
+
.enum(['new', 'open', 'pending', 'hold', 'solved', 'closed'])
|
|
21
|
+
.optional()
|
|
22
|
+
.describe('Filter by ticket status'),
|
|
23
|
+
sort_by: z
|
|
24
|
+
.enum(['created_at', 'updated_at', 'priority', 'status'])
|
|
25
|
+
.optional()
|
|
26
|
+
.default('updated_at')
|
|
27
|
+
.describe('Sort field (default: updated_at)'),
|
|
28
|
+
sort_order: z
|
|
29
|
+
.enum(['asc', 'desc'])
|
|
30
|
+
.optional()
|
|
31
|
+
.default('desc')
|
|
32
|
+
.describe('Sort order (default: desc)'),
|
|
33
|
+
page: z
|
|
34
|
+
.number()
|
|
35
|
+
.min(1)
|
|
36
|
+
.optional()
|
|
37
|
+
.default(1)
|
|
38
|
+
.describe('Page number for pagination (default 1)'),
|
|
39
|
+
per_page: z
|
|
40
|
+
.number()
|
|
41
|
+
.min(1)
|
|
42
|
+
.max(100)
|
|
43
|
+
.optional()
|
|
44
|
+
.default(25)
|
|
45
|
+
.describe('Results per page (1-100, default 25)'),
|
|
46
|
+
credentials: credentialsField,
|
|
47
|
+
}),
|
|
48
|
+
// Get ticket
|
|
49
|
+
z.object({
|
|
50
|
+
operation: z
|
|
51
|
+
.literal('get_ticket')
|
|
52
|
+
.describe('Retrieve a single ticket by ID with full details'),
|
|
53
|
+
ticket_id: ticketIdField,
|
|
54
|
+
credentials: credentialsField,
|
|
55
|
+
}),
|
|
56
|
+
// Create ticket
|
|
57
|
+
z.object({
|
|
58
|
+
operation: z
|
|
59
|
+
.literal('create_ticket')
|
|
60
|
+
.describe('Create a new support ticket'),
|
|
61
|
+
subject: z.string().min(1).describe('Ticket subject line'),
|
|
62
|
+
body: z
|
|
63
|
+
.string()
|
|
64
|
+
.min(1)
|
|
65
|
+
.describe('Ticket description / initial comment body'),
|
|
66
|
+
requester_email: z
|
|
67
|
+
.string()
|
|
68
|
+
.optional()
|
|
69
|
+
.describe('Email of the requester (creates user if not found)'),
|
|
70
|
+
requester_name: z
|
|
71
|
+
.string()
|
|
72
|
+
.optional()
|
|
73
|
+
.describe('Name of the requester (used when creating a new requester alongside email)'),
|
|
74
|
+
assignee_id: z
|
|
75
|
+
.number()
|
|
76
|
+
.optional()
|
|
77
|
+
.describe('Agent ID to assign the ticket to'),
|
|
78
|
+
priority: z
|
|
79
|
+
.enum(['urgent', 'high', 'normal', 'low'])
|
|
80
|
+
.optional()
|
|
81
|
+
.describe('Ticket priority'),
|
|
82
|
+
type: z
|
|
83
|
+
.enum(['problem', 'incident', 'question', 'task'])
|
|
84
|
+
.optional()
|
|
85
|
+
.describe('Ticket type'),
|
|
86
|
+
tags: z
|
|
87
|
+
.array(z.string())
|
|
88
|
+
.optional()
|
|
89
|
+
.describe('Tags to apply to the ticket'),
|
|
90
|
+
credentials: credentialsField,
|
|
91
|
+
}),
|
|
92
|
+
// Update ticket (add comment / change fields)
|
|
93
|
+
z.object({
|
|
94
|
+
operation: z
|
|
95
|
+
.literal('update_ticket')
|
|
96
|
+
.describe('Update a ticket: add a reply/comment, change status, priority, or assignee'),
|
|
97
|
+
ticket_id: ticketIdField,
|
|
98
|
+
comment: z
|
|
99
|
+
.string()
|
|
100
|
+
.optional()
|
|
101
|
+
.describe('Comment body to add to the ticket (public reply or internal note)'),
|
|
102
|
+
public: z
|
|
103
|
+
.boolean()
|
|
104
|
+
.optional()
|
|
105
|
+
.default(true)
|
|
106
|
+
.describe('Whether the comment is public (visible to requester) or internal note (default: true)'),
|
|
107
|
+
status: z
|
|
108
|
+
.enum(['new', 'open', 'pending', 'hold', 'solved', 'closed'])
|
|
109
|
+
.optional()
|
|
110
|
+
.describe('Set new ticket status'),
|
|
111
|
+
priority: z
|
|
112
|
+
.enum(['urgent', 'high', 'normal', 'low'])
|
|
113
|
+
.optional()
|
|
114
|
+
.describe('Set new ticket priority'),
|
|
115
|
+
assignee_id: z
|
|
116
|
+
.number()
|
|
117
|
+
.optional()
|
|
118
|
+
.describe('Reassign ticket to this agent ID'),
|
|
119
|
+
tags: z
|
|
120
|
+
.array(z.string())
|
|
121
|
+
.optional()
|
|
122
|
+
.describe('Replace ticket tags with this list'),
|
|
123
|
+
credentials: credentialsField,
|
|
124
|
+
}),
|
|
125
|
+
// List ticket comments
|
|
126
|
+
z.object({
|
|
127
|
+
operation: z
|
|
128
|
+
.literal('list_ticket_comments')
|
|
129
|
+
.describe('List comments/replies on a ticket'),
|
|
130
|
+
ticket_id: ticketIdField,
|
|
131
|
+
sort_order: z
|
|
132
|
+
.enum(['asc', 'desc'])
|
|
133
|
+
.optional()
|
|
134
|
+
.default('asc')
|
|
135
|
+
.describe('Sort order for comments (default: asc — oldest first)'),
|
|
136
|
+
page: z
|
|
137
|
+
.number()
|
|
138
|
+
.min(1)
|
|
139
|
+
.optional()
|
|
140
|
+
.default(1)
|
|
141
|
+
.describe('Page number for pagination (default 1)'),
|
|
142
|
+
per_page: z
|
|
143
|
+
.number()
|
|
144
|
+
.min(1)
|
|
145
|
+
.max(100)
|
|
146
|
+
.optional()
|
|
147
|
+
.default(25)
|
|
148
|
+
.describe('Results per page (1-100, default 25)'),
|
|
149
|
+
credentials: credentialsField,
|
|
150
|
+
}),
|
|
151
|
+
// List users
|
|
152
|
+
z.object({
|
|
153
|
+
operation: z.literal('list_users').describe('List or search users'),
|
|
154
|
+
query: z.string().optional().describe('Search query (name or email)'),
|
|
155
|
+
role: z
|
|
156
|
+
.enum(['end-user', 'agent', 'admin'])
|
|
157
|
+
.optional()
|
|
158
|
+
.describe('Filter by user role'),
|
|
159
|
+
page: z
|
|
160
|
+
.number()
|
|
161
|
+
.min(1)
|
|
162
|
+
.optional()
|
|
163
|
+
.default(1)
|
|
164
|
+
.describe('Page number for pagination (default 1)'),
|
|
165
|
+
per_page: z
|
|
166
|
+
.number()
|
|
167
|
+
.min(1)
|
|
168
|
+
.max(100)
|
|
169
|
+
.optional()
|
|
170
|
+
.default(25)
|
|
171
|
+
.describe('Results per page (1-100, default 25)'),
|
|
172
|
+
credentials: credentialsField,
|
|
173
|
+
}),
|
|
174
|
+
// Get user
|
|
175
|
+
z.object({
|
|
176
|
+
operation: z.literal('get_user').describe('Retrieve a single user by ID'),
|
|
177
|
+
user_id: z.string().min(1).describe('Zendesk user ID (numeric string)'),
|
|
178
|
+
credentials: credentialsField,
|
|
179
|
+
}),
|
|
180
|
+
// List organizations
|
|
181
|
+
z.object({
|
|
182
|
+
operation: z
|
|
183
|
+
.literal('list_organizations')
|
|
184
|
+
.describe('List or search organizations'),
|
|
185
|
+
query: z
|
|
186
|
+
.string()
|
|
187
|
+
.optional()
|
|
188
|
+
.describe('Search by organization name or external ID'),
|
|
189
|
+
page: z
|
|
190
|
+
.number()
|
|
191
|
+
.min(1)
|
|
192
|
+
.optional()
|
|
193
|
+
.default(1)
|
|
194
|
+
.describe('Page number for pagination (default 1)'),
|
|
195
|
+
per_page: z
|
|
196
|
+
.number()
|
|
197
|
+
.min(1)
|
|
198
|
+
.max(100)
|
|
199
|
+
.optional()
|
|
200
|
+
.default(25)
|
|
201
|
+
.describe('Results per page (1-100, default 25)'),
|
|
202
|
+
credentials: credentialsField,
|
|
203
|
+
}),
|
|
204
|
+
// Get organization
|
|
205
|
+
z.object({
|
|
206
|
+
operation: z
|
|
207
|
+
.literal('get_organization')
|
|
208
|
+
.describe('Retrieve a single organization by ID'),
|
|
209
|
+
organization_id: z
|
|
210
|
+
.string()
|
|
211
|
+
.min(1)
|
|
212
|
+
.describe('Zendesk organization ID (numeric string)'),
|
|
213
|
+
credentials: credentialsField,
|
|
214
|
+
}),
|
|
215
|
+
// Search
|
|
216
|
+
z.object({
|
|
217
|
+
operation: z
|
|
218
|
+
.literal('search')
|
|
219
|
+
.describe('Unified search across tickets, users, and organizations using Zendesk query syntax'),
|
|
220
|
+
query: z
|
|
221
|
+
.string()
|
|
222
|
+
.min(1)
|
|
223
|
+
.describe('Zendesk search query (e.g., "type:ticket status:open", "type:user email:john@example.com")'),
|
|
224
|
+
sort_by: z
|
|
225
|
+
.enum(['updated_at', 'created_at', 'priority', 'status', 'ticket_type'])
|
|
226
|
+
.optional()
|
|
227
|
+
.describe('Sort field'),
|
|
228
|
+
sort_order: z
|
|
229
|
+
.enum(['asc', 'desc'])
|
|
230
|
+
.optional()
|
|
231
|
+
.default('desc')
|
|
232
|
+
.describe('Sort order (default: desc)'),
|
|
233
|
+
page: z
|
|
234
|
+
.number()
|
|
235
|
+
.min(1)
|
|
236
|
+
.optional()
|
|
237
|
+
.default(1)
|
|
238
|
+
.describe('Page number for pagination (default 1)'),
|
|
239
|
+
per_page: z
|
|
240
|
+
.number()
|
|
241
|
+
.min(1)
|
|
242
|
+
.max(100)
|
|
243
|
+
.optional()
|
|
244
|
+
.default(25)
|
|
245
|
+
.describe('Results per page (1-100, default 25)'),
|
|
246
|
+
credentials: credentialsField,
|
|
247
|
+
}),
|
|
248
|
+
// List articles
|
|
249
|
+
z.object({
|
|
250
|
+
operation: z
|
|
251
|
+
.literal('list_articles')
|
|
252
|
+
.describe('List or search Help Center articles'),
|
|
253
|
+
query: z.string().optional().describe('Search query for articles'),
|
|
254
|
+
section_id: z.string().optional().describe('Filter articles by section ID'),
|
|
255
|
+
category_id: z
|
|
256
|
+
.string()
|
|
257
|
+
.optional()
|
|
258
|
+
.describe('Filter articles by category ID'),
|
|
259
|
+
locale: z.string().optional().describe('Filter by locale (e.g., "en-us")'),
|
|
260
|
+
page: z
|
|
261
|
+
.number()
|
|
262
|
+
.min(1)
|
|
263
|
+
.optional()
|
|
264
|
+
.default(1)
|
|
265
|
+
.describe('Page number for pagination (default 1)'),
|
|
266
|
+
per_page: z
|
|
267
|
+
.number()
|
|
268
|
+
.min(1)
|
|
269
|
+
.max(100)
|
|
270
|
+
.optional()
|
|
271
|
+
.default(25)
|
|
272
|
+
.describe('Results per page (1-100, default 25)'),
|
|
273
|
+
credentials: credentialsField,
|
|
274
|
+
}),
|
|
275
|
+
// Get article
|
|
276
|
+
z.object({
|
|
277
|
+
operation: z
|
|
278
|
+
.literal('get_article')
|
|
279
|
+
.describe('Retrieve a single Help Center article by ID with body content'),
|
|
280
|
+
article_id: z.string().min(1).describe('Zendesk Help Center article ID'),
|
|
281
|
+
locale: z
|
|
282
|
+
.string()
|
|
283
|
+
.optional()
|
|
284
|
+
.describe('Locale for the article (e.g., "en-us")'),
|
|
285
|
+
credentials: credentialsField,
|
|
286
|
+
}),
|
|
287
|
+
]);
|
|
288
|
+
// Zendesk record schemas for response data
|
|
289
|
+
const ZendeskTicketSchema = z
|
|
290
|
+
.object({
|
|
291
|
+
id: z.number().describe('Ticket ID'),
|
|
292
|
+
subject: z.string().optional().describe('Ticket subject'),
|
|
293
|
+
description: z.string().optional().describe('Ticket description'),
|
|
294
|
+
status: z.string().optional().describe('Ticket status'),
|
|
295
|
+
priority: z.string().optional().nullable().describe('Ticket priority'),
|
|
296
|
+
type: z.string().optional().nullable().describe('Ticket type'),
|
|
297
|
+
requester_id: z.number().optional().describe('Requester user ID'),
|
|
298
|
+
assignee_id: z.number().optional().nullable().describe('Assignee user ID'),
|
|
299
|
+
organization_id: z
|
|
300
|
+
.number()
|
|
301
|
+
.optional()
|
|
302
|
+
.nullable()
|
|
303
|
+
.describe('Organization ID'),
|
|
304
|
+
tags: z.array(z.string()).optional().describe('Ticket tags'),
|
|
305
|
+
created_at: z.string().optional().describe('Created timestamp'),
|
|
306
|
+
updated_at: z.string().optional().describe('Updated timestamp'),
|
|
307
|
+
})
|
|
308
|
+
.describe('A Zendesk ticket');
|
|
309
|
+
const ZendeskCommentSchema = z
|
|
310
|
+
.object({
|
|
311
|
+
id: z.number().describe('Comment ID'),
|
|
312
|
+
body: z.string().optional().describe('Comment body text'),
|
|
313
|
+
html_body: z.string().optional().describe('Comment body HTML'),
|
|
314
|
+
public: z.boolean().optional().describe('Whether comment is public'),
|
|
315
|
+
author_id: z.number().optional().describe('Author user ID'),
|
|
316
|
+
created_at: z.string().optional().describe('Created timestamp'),
|
|
317
|
+
})
|
|
318
|
+
.describe('A Zendesk ticket comment');
|
|
319
|
+
const ZendeskUserSchema = z
|
|
320
|
+
.object({
|
|
321
|
+
id: z.number().describe('User ID'),
|
|
322
|
+
name: z.string().optional().describe('User name'),
|
|
323
|
+
email: z.string().optional().describe('User email'),
|
|
324
|
+
role: z.string().optional().describe('User role (end-user, agent, admin)'),
|
|
325
|
+
organization_id: z
|
|
326
|
+
.number()
|
|
327
|
+
.optional()
|
|
328
|
+
.nullable()
|
|
329
|
+
.describe('Organization ID'),
|
|
330
|
+
active: z.boolean().optional().describe('Whether user is active'),
|
|
331
|
+
created_at: z.string().optional().describe('Created timestamp'),
|
|
332
|
+
})
|
|
333
|
+
.describe('A Zendesk user');
|
|
334
|
+
const ZendeskOrganizationSchema = z
|
|
335
|
+
.object({
|
|
336
|
+
id: z.number().describe('Organization ID'),
|
|
337
|
+
name: z.string().optional().describe('Organization name'),
|
|
338
|
+
domain_names: z
|
|
339
|
+
.array(z.string())
|
|
340
|
+
.optional()
|
|
341
|
+
.describe('Associated domain names'),
|
|
342
|
+
external_id: z.string().optional().nullable().describe('External ID'),
|
|
343
|
+
created_at: z.string().optional().describe('Created timestamp'),
|
|
344
|
+
})
|
|
345
|
+
.describe('A Zendesk organization');
|
|
346
|
+
const ZendeskArticleSchema = z
|
|
347
|
+
.object({
|
|
348
|
+
id: z.number().describe('Article ID'),
|
|
349
|
+
title: z.string().optional().describe('Article title'),
|
|
350
|
+
body: z.string().optional().describe('Article body HTML'),
|
|
351
|
+
locale: z.string().optional().describe('Article locale'),
|
|
352
|
+
section_id: z.number().optional().describe('Section ID'),
|
|
353
|
+
author_id: z.number().optional().describe('Author user ID'),
|
|
354
|
+
draft: z.boolean().optional().describe('Whether article is a draft'),
|
|
355
|
+
created_at: z.string().optional().describe('Created timestamp'),
|
|
356
|
+
updated_at: z.string().optional().describe('Updated timestamp'),
|
|
357
|
+
})
|
|
358
|
+
.describe('A Zendesk Help Center article');
|
|
359
|
+
// Result schema
|
|
360
|
+
export const ZendeskResultSchema = z.discriminatedUnion('operation', [
|
|
361
|
+
// List tickets result
|
|
362
|
+
z.object({
|
|
363
|
+
operation: z.literal('list_tickets'),
|
|
364
|
+
success: z.boolean().describe('Whether the operation was successful'),
|
|
365
|
+
tickets: z
|
|
366
|
+
.array(ZendeskTicketSchema)
|
|
367
|
+
.optional()
|
|
368
|
+
.describe('List of tickets'),
|
|
369
|
+
count: z.number().optional().describe('Total ticket count'),
|
|
370
|
+
next_page: z.string().optional().nullable().describe('Next page URL'),
|
|
371
|
+
error: z.string().describe('Error message if operation failed'),
|
|
372
|
+
}),
|
|
373
|
+
// Get ticket result
|
|
374
|
+
z.object({
|
|
375
|
+
operation: z.literal('get_ticket'),
|
|
376
|
+
success: z.boolean().describe('Whether the operation was successful'),
|
|
377
|
+
ticket: ZendeskTicketSchema.optional().describe('Retrieved ticket'),
|
|
378
|
+
error: z.string().describe('Error message if operation failed'),
|
|
379
|
+
}),
|
|
380
|
+
// Create ticket result
|
|
381
|
+
z.object({
|
|
382
|
+
operation: z.literal('create_ticket'),
|
|
383
|
+
success: z.boolean().describe('Whether the operation was successful'),
|
|
384
|
+
ticket: ZendeskTicketSchema.optional().describe('Created ticket'),
|
|
385
|
+
error: z.string().describe('Error message if operation failed'),
|
|
386
|
+
}),
|
|
387
|
+
// Update ticket result
|
|
388
|
+
z.object({
|
|
389
|
+
operation: z.literal('update_ticket'),
|
|
390
|
+
success: z.boolean().describe('Whether the operation was successful'),
|
|
391
|
+
ticket: ZendeskTicketSchema.optional().describe('Updated ticket'),
|
|
392
|
+
error: z.string().describe('Error message if operation failed'),
|
|
393
|
+
}),
|
|
394
|
+
// List ticket comments result
|
|
395
|
+
z.object({
|
|
396
|
+
operation: z.literal('list_ticket_comments'),
|
|
397
|
+
success: z.boolean().describe('Whether the operation was successful'),
|
|
398
|
+
comments: z
|
|
399
|
+
.array(ZendeskCommentSchema)
|
|
400
|
+
.optional()
|
|
401
|
+
.describe('List of comments'),
|
|
402
|
+
count: z.number().optional().describe('Total comment count'),
|
|
403
|
+
next_page: z.string().optional().nullable().describe('Next page URL'),
|
|
404
|
+
error: z.string().describe('Error message if operation failed'),
|
|
405
|
+
}),
|
|
406
|
+
// List users result
|
|
407
|
+
z.object({
|
|
408
|
+
operation: z.literal('list_users'),
|
|
409
|
+
success: z.boolean().describe('Whether the operation was successful'),
|
|
410
|
+
users: z.array(ZendeskUserSchema).optional().describe('List of users'),
|
|
411
|
+
count: z.number().optional().describe('Total user count'),
|
|
412
|
+
next_page: z.string().optional().nullable().describe('Next page URL'),
|
|
413
|
+
error: z.string().describe('Error message if operation failed'),
|
|
414
|
+
}),
|
|
415
|
+
// Get user result
|
|
416
|
+
z.object({
|
|
417
|
+
operation: z.literal('get_user'),
|
|
418
|
+
success: z.boolean().describe('Whether the operation was successful'),
|
|
419
|
+
user: ZendeskUserSchema.optional().describe('Retrieved user'),
|
|
420
|
+
error: z.string().describe('Error message if operation failed'),
|
|
421
|
+
}),
|
|
422
|
+
// List organizations result
|
|
423
|
+
z.object({
|
|
424
|
+
operation: z.literal('list_organizations'),
|
|
425
|
+
success: z.boolean().describe('Whether the operation was successful'),
|
|
426
|
+
organizations: z
|
|
427
|
+
.array(ZendeskOrganizationSchema)
|
|
428
|
+
.optional()
|
|
429
|
+
.describe('List of organizations'),
|
|
430
|
+
count: z.number().optional().describe('Total organization count'),
|
|
431
|
+
next_page: z.string().optional().nullable().describe('Next page URL'),
|
|
432
|
+
error: z.string().describe('Error message if operation failed'),
|
|
433
|
+
}),
|
|
434
|
+
// Get organization result
|
|
435
|
+
z.object({
|
|
436
|
+
operation: z.literal('get_organization'),
|
|
437
|
+
success: z.boolean().describe('Whether the operation was successful'),
|
|
438
|
+
organization: ZendeskOrganizationSchema.optional().describe('Retrieved organization'),
|
|
439
|
+
error: z.string().describe('Error message if operation failed'),
|
|
440
|
+
}),
|
|
441
|
+
// Search result
|
|
442
|
+
z.object({
|
|
443
|
+
operation: z.literal('search'),
|
|
444
|
+
success: z.boolean().describe('Whether the operation was successful'),
|
|
445
|
+
results: z
|
|
446
|
+
.array(z.record(z.unknown()))
|
|
447
|
+
.optional()
|
|
448
|
+
.describe('Search results (mixed types)'),
|
|
449
|
+
count: z.number().optional().describe('Total result count'),
|
|
450
|
+
next_page: z.string().optional().nullable().describe('Next page URL'),
|
|
451
|
+
error: z.string().describe('Error message if operation failed'),
|
|
452
|
+
}),
|
|
453
|
+
// List articles result
|
|
454
|
+
z.object({
|
|
455
|
+
operation: z.literal('list_articles'),
|
|
456
|
+
success: z.boolean().describe('Whether the operation was successful'),
|
|
457
|
+
articles: z
|
|
458
|
+
.array(ZendeskArticleSchema)
|
|
459
|
+
.optional()
|
|
460
|
+
.describe('List of articles'),
|
|
461
|
+
count: z.number().optional().describe('Total article count'),
|
|
462
|
+
next_page: z.string().optional().nullable().describe('Next page URL'),
|
|
463
|
+
error: z.string().describe('Error message if operation failed'),
|
|
464
|
+
}),
|
|
465
|
+
// Get article result
|
|
466
|
+
z.object({
|
|
467
|
+
operation: z.literal('get_article'),
|
|
468
|
+
success: z.boolean().describe('Whether the operation was successful'),
|
|
469
|
+
article: ZendeskArticleSchema.optional().describe('Retrieved article'),
|
|
470
|
+
error: z.string().describe('Error message if operation failed'),
|
|
471
|
+
}),
|
|
472
|
+
]);
|
|
473
|
+
//# sourceMappingURL=zendesk.schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"zendesk.schema.js","sourceRoot":"","sources":["../../../../src/bubbles/service-bubble/zendesk/zendesk.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,uBAAuB;AACvB,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,iEAAiE,CAAC,CAAC;AAE/E,MAAM,aAAa,GAAG,CAAC;KACpB,MAAM,EAAE;KACR,GAAG,CAAC,CAAC,EAAE,uBAAuB,CAAC;KAC/B,QAAQ,CAAC,oCAAoC,CAAC,CAAC;AAElD,6CAA6C;AAC7C,MAAM,CAAC,MAAM,mBAAmB,GAAG,C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E,CAAC;aACR,KAAK,CAAC,oBAAoB,CAAC;aAC3B,QAAQ,EAAE;aACV,QAAQ,CAAC,kBAAkB,CAAC;QAC/B,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,qBAAqB,CAAC;QAC5D,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,eAAe,CAAC;QACrE,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,mCAAmC,CAAC;KAChE,CAAC;IAEF,qBAAqB;IACrB,CAAC,CAAC,MAAM,CAAC;QACP,SAAS,EAAE,CAAC,CAAC,OAAO,CAAC,aAAa,CAAC;QACnC,OAAO,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,CAAC,sCAAsC,CAAC;QACrE,OAAO,EAAE,oBAAoB,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,mBAAmB,CAAC;QACtE,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,mCAAmC,CAAC;KAChE,CAAC;CACH,CAAC,CAAC"}
|
|
@@ -58,7 +58,7 @@ declare const RedditScrapeToolParamsSchema: z.ZodObject<{
|
|
|
58
58
|
minScore: z.ZodOptional<z.ZodNumber>;
|
|
59
59
|
credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>;
|
|
60
60
|
}, "strip", z.ZodTypeAny, {
|
|
61
|
-
sort: "
|
|
61
|
+
sort: "new" | "hot" | "top" | "rising";
|
|
62
62
|
limit: number;
|
|
63
63
|
subreddit: string;
|
|
64
64
|
filterToday: boolean;
|
|
@@ -68,7 +68,7 @@ declare const RedditScrapeToolParamsSchema: z.ZodObject<{
|
|
|
68
68
|
minScore?: number | undefined;
|
|
69
69
|
}, {
|
|
70
70
|
subreddit: string;
|
|
71
|
-
sort?: "
|
|
71
|
+
sort?: "new" | "hot" | "top" | "rising" | undefined;
|
|
72
72
|
credentials?: Partial<Record<CredentialType, string>> | undefined;
|
|
73
73
|
limit?: number | undefined;
|
|
74
74
|
timeFilter?: "year" | "month" | "day" | "hour" | "all" | "week" | undefined;
|
|
@@ -228,7 +228,7 @@ export declare class RedditScrapeTool extends ToolBubble<RedditScrapeToolParams,
|
|
|
228
228
|
minScore: z.ZodOptional<z.ZodNumber>;
|
|
229
229
|
credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>;
|
|
230
230
|
}, "strip", z.ZodTypeAny, {
|
|
231
|
-
sort: "
|
|
231
|
+
sort: "new" | "hot" | "top" | "rising";
|
|
232
232
|
limit: number;
|
|
233
233
|
subreddit: string;
|
|
234
234
|
filterToday: boolean;
|
|
@@ -238,7 +238,7 @@ export declare class RedditScrapeTool extends ToolBubble<RedditScrapeToolParams,
|
|
|
238
238
|
minScore?: number | undefined;
|
|
239
239
|
}, {
|
|
240
240
|
subreddit: string;
|
|
241
|
-
sort?: "
|
|
241
|
+
sort?: "new" | "hot" | "top" | "rising" | undefined;
|
|
242
242
|
credentials?: Partial<Record<CredentialType, string>> | undefined;
|
|
243
243
|
limit?: number | undefined;
|
|
244
244
|
timeFilter?: "year" | "month" | "day" | "hour" | "all" | "week" | undefined;
|