@bubblelab/bubble-core 0.1.254 → 0.1.261

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 (54) hide show
  1. package/dist/bubble-bundle.d.ts +148 -31
  2. package/dist/bubble-factory.d.ts.map +1 -1
  3. package/dist/bubble-factory.js +9 -0
  4. package/dist/bubble-factory.js.map +1 -1
  5. package/dist/bubbles/service-bubble/ai-agent.d.ts.map +1 -1
  6. package/dist/bubbles/service-bubble/ai-agent.js +9 -2
  7. package/dist/bubbles/service-bubble/ai-agent.js.map +1 -1
  8. package/dist/bubbles/service-bubble/asana/asana.d.ts +1232 -0
  9. package/dist/bubbles/service-bubble/asana/asana.d.ts.map +1 -0
  10. package/dist/bubbles/service-bubble/asana/asana.js +809 -0
  11. package/dist/bubbles/service-bubble/asana/asana.js.map +1 -0
  12. package/dist/bubbles/service-bubble/asana/asana.schema.d.ts +1169 -0
  13. package/dist/bubbles/service-bubble/asana/asana.schema.d.ts.map +1 -0
  14. package/dist/bubbles/service-bubble/asana/asana.schema.js +740 -0
  15. package/dist/bubbles/service-bubble/asana/asana.schema.js.map +1 -0
  16. package/dist/bubbles/service-bubble/asana/index.d.ts +3 -0
  17. package/dist/bubbles/service-bubble/asana/index.d.ts.map +1 -0
  18. package/dist/bubbles/service-bubble/asana/index.js +3 -0
  19. package/dist/bubbles/service-bubble/asana/index.js.map +1 -0
  20. package/dist/bubbles/service-bubble/confluence/confluence.d.ts +2 -2
  21. package/dist/bubbles/service-bubble/confluence/confluence.schema.d.ts +2 -2
  22. package/dist/bubbles/service-bubble/discord/discord.d.ts +778 -0
  23. package/dist/bubbles/service-bubble/discord/discord.d.ts.map +1 -0
  24. package/dist/bubbles/service-bubble/discord/discord.js +370 -0
  25. package/dist/bubbles/service-bubble/discord/discord.js.map +1 -0
  26. package/dist/bubbles/service-bubble/discord/discord.schema.d.ts +739 -0
  27. package/dist/bubbles/service-bubble/discord/discord.schema.d.ts.map +1 -0
  28. package/dist/bubbles/service-bubble/discord/discord.schema.js +352 -0
  29. package/dist/bubbles/service-bubble/discord/discord.schema.js.map +1 -0
  30. package/dist/bubbles/service-bubble/discord/index.d.ts +3 -0
  31. package/dist/bubbles/service-bubble/discord/index.d.ts.map +1 -0
  32. package/dist/bubbles/service-bubble/discord/index.js +3 -0
  33. package/dist/bubbles/service-bubble/discord/index.js.map +1 -0
  34. package/dist/bubbles/service-bubble/salesforce/index.d.ts +3 -0
  35. package/dist/bubbles/service-bubble/salesforce/index.d.ts.map +1 -0
  36. package/dist/bubbles/service-bubble/salesforce/index.js +3 -0
  37. package/dist/bubbles/service-bubble/salesforce/index.js.map +1 -0
  38. package/dist/bubbles/service-bubble/salesforce/salesforce.d.ts +209 -0
  39. package/dist/bubbles/service-bubble/salesforce/salesforce.d.ts.map +1 -0
  40. package/dist/bubbles/service-bubble/salesforce/salesforce.js +221 -0
  41. package/dist/bubbles/service-bubble/salesforce/salesforce.js.map +1 -0
  42. package/dist/bubbles/service-bubble/salesforce/salesforce.schema.d.ts +179 -0
  43. package/dist/bubbles/service-bubble/salesforce/salesforce.schema.d.ts.map +1 -0
  44. package/dist/bubbles/service-bubble/salesforce/salesforce.schema.js +127 -0
  45. package/dist/bubbles/service-bubble/salesforce/salesforce.schema.js.map +1 -0
  46. package/dist/bubbles/service-bubble/snowflake/snowflake.d.ts.map +1 -1
  47. package/dist/bubbles/service-bubble/snowflake/snowflake.js +1 -1
  48. package/dist/bubbles/service-bubble/snowflake/snowflake.js.map +1 -1
  49. package/dist/bubbles.json +3945 -4
  50. package/dist/index.d.ts +6 -0
  51. package/dist/index.d.ts.map +1 -1
  52. package/dist/index.js +3 -0
  53. package/dist/index.js.map +1 -1
  54. package/package.json +2 -2
@@ -0,0 +1,778 @@
1
+ import { ServiceBubble } from '../../../types/service-bubble-class.js';
2
+ import type { BubbleContext } from '../../../types/bubble.js';
3
+ import { CredentialType } from '@bubblelab/shared-schemas';
4
+ import { type DiscordParamsInput, type DiscordResult } from './discord.schema.js';
5
+ /**
6
+ * Discord Service Bubble
7
+ *
8
+ * Comprehensive Discord integration for messaging, channel management,
9
+ * threads, reactions, and guild operations via the Discord REST API (v10).
10
+ */
11
+ export declare class DiscordBubble<T extends DiscordParamsInput = DiscordParamsInput> extends ServiceBubble<T, Extract<DiscordResult, {
12
+ operation: T['operation'];
13
+ }>> {
14
+ static readonly type: "service";
15
+ static readonly service = "discord";
16
+ static readonly authType: "oauth";
17
+ static readonly bubbleName = "discord";
18
+ static readonly schema: import("zod").ZodDiscriminatedUnion<"operation", [import("zod").ZodObject<{
19
+ operation: import("zod").ZodLiteral<"send_message">;
20
+ channel_id: import("zod").ZodString;
21
+ content: import("zod").ZodOptional<import("zod").ZodString>;
22
+ embeds: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
23
+ title: import("zod").ZodOptional<import("zod").ZodString>;
24
+ description: import("zod").ZodOptional<import("zod").ZodString>;
25
+ url: import("zod").ZodOptional<import("zod").ZodString>;
26
+ color: import("zod").ZodOptional<import("zod").ZodNumber>;
27
+ fields: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
28
+ name: import("zod").ZodString;
29
+ value: import("zod").ZodString;
30
+ inline: import("zod").ZodOptional<import("zod").ZodBoolean>;
31
+ }, "strip", import("zod").ZodTypeAny, {
32
+ value: string;
33
+ name: string;
34
+ inline?: boolean | undefined;
35
+ }, {
36
+ value: string;
37
+ name: string;
38
+ inline?: boolean | undefined;
39
+ }>, "many">>;
40
+ footer: import("zod").ZodOptional<import("zod").ZodObject<{
41
+ text: import("zod").ZodString;
42
+ icon_url: import("zod").ZodOptional<import("zod").ZodString>;
43
+ }, "strip", import("zod").ZodTypeAny, {
44
+ text: string;
45
+ icon_url?: string | undefined;
46
+ }, {
47
+ text: string;
48
+ icon_url?: string | undefined;
49
+ }>>;
50
+ thumbnail: import("zod").ZodOptional<import("zod").ZodObject<{
51
+ url: import("zod").ZodString;
52
+ }, "strip", import("zod").ZodTypeAny, {
53
+ url: string;
54
+ }, {
55
+ url: string;
56
+ }>>;
57
+ image: import("zod").ZodOptional<import("zod").ZodObject<{
58
+ url: import("zod").ZodString;
59
+ }, "strip", import("zod").ZodTypeAny, {
60
+ url: string;
61
+ }, {
62
+ url: string;
63
+ }>>;
64
+ author: import("zod").ZodOptional<import("zod").ZodObject<{
65
+ name: import("zod").ZodString;
66
+ url: import("zod").ZodOptional<import("zod").ZodString>;
67
+ icon_url: import("zod").ZodOptional<import("zod").ZodString>;
68
+ }, "strip", import("zod").ZodTypeAny, {
69
+ name: string;
70
+ url?: string | undefined;
71
+ icon_url?: string | undefined;
72
+ }, {
73
+ name: string;
74
+ url?: string | undefined;
75
+ icon_url?: string | undefined;
76
+ }>>;
77
+ timestamp: import("zod").ZodOptional<import("zod").ZodString>;
78
+ }, "strip", import("zod").ZodTypeAny, {
79
+ description?: string | undefined;
80
+ title?: string | undefined;
81
+ url?: string | undefined;
82
+ image?: {
83
+ url: string;
84
+ } | undefined;
85
+ fields?: {
86
+ value: string;
87
+ name: string;
88
+ inline?: boolean | undefined;
89
+ }[] | undefined;
90
+ color?: number | undefined;
91
+ footer?: {
92
+ text: string;
93
+ icon_url?: string | undefined;
94
+ } | undefined;
95
+ timestamp?: string | undefined;
96
+ thumbnail?: {
97
+ url: string;
98
+ } | undefined;
99
+ author?: {
100
+ name: string;
101
+ url?: string | undefined;
102
+ icon_url?: string | undefined;
103
+ } | undefined;
104
+ }, {
105
+ description?: string | undefined;
106
+ title?: string | undefined;
107
+ url?: string | undefined;
108
+ image?: {
109
+ url: string;
110
+ } | undefined;
111
+ fields?: {
112
+ value: string;
113
+ name: string;
114
+ inline?: boolean | undefined;
115
+ }[] | undefined;
116
+ color?: number | undefined;
117
+ footer?: {
118
+ text: string;
119
+ icon_url?: string | undefined;
120
+ } | undefined;
121
+ timestamp?: string | undefined;
122
+ thumbnail?: {
123
+ url: string;
124
+ } | undefined;
125
+ author?: {
126
+ name: string;
127
+ url?: string | undefined;
128
+ icon_url?: string | undefined;
129
+ } | undefined;
130
+ }>, "many">>;
131
+ tts: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodBoolean>>;
132
+ reply_to: import("zod").ZodOptional<import("zod").ZodString>;
133
+ credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>;
134
+ }, "strip", import("zod").ZodTypeAny, {
135
+ operation: "send_message";
136
+ channel_id: string;
137
+ tts: boolean;
138
+ content?: string | undefined;
139
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
140
+ reply_to?: string | undefined;
141
+ embeds?: {
142
+ description?: string | undefined;
143
+ title?: string | undefined;
144
+ url?: string | undefined;
145
+ image?: {
146
+ url: string;
147
+ } | undefined;
148
+ fields?: {
149
+ value: string;
150
+ name: string;
151
+ inline?: boolean | undefined;
152
+ }[] | undefined;
153
+ color?: number | undefined;
154
+ footer?: {
155
+ text: string;
156
+ icon_url?: string | undefined;
157
+ } | undefined;
158
+ timestamp?: string | undefined;
159
+ thumbnail?: {
160
+ url: string;
161
+ } | undefined;
162
+ author?: {
163
+ name: string;
164
+ url?: string | undefined;
165
+ icon_url?: string | undefined;
166
+ } | undefined;
167
+ }[] | undefined;
168
+ }, {
169
+ operation: "send_message";
170
+ channel_id: string;
171
+ content?: string | undefined;
172
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
173
+ reply_to?: string | undefined;
174
+ embeds?: {
175
+ description?: string | undefined;
176
+ title?: string | undefined;
177
+ url?: string | undefined;
178
+ image?: {
179
+ url: string;
180
+ } | undefined;
181
+ fields?: {
182
+ value: string;
183
+ name: string;
184
+ inline?: boolean | undefined;
185
+ }[] | undefined;
186
+ color?: number | undefined;
187
+ footer?: {
188
+ text: string;
189
+ icon_url?: string | undefined;
190
+ } | undefined;
191
+ timestamp?: string | undefined;
192
+ thumbnail?: {
193
+ url: string;
194
+ } | undefined;
195
+ author?: {
196
+ name: string;
197
+ url?: string | undefined;
198
+ icon_url?: string | undefined;
199
+ } | undefined;
200
+ }[] | undefined;
201
+ tts?: boolean | undefined;
202
+ }>, import("zod").ZodObject<{
203
+ operation: import("zod").ZodLiteral<"list_messages">;
204
+ channel_id: import("zod").ZodString;
205
+ limit: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>;
206
+ before: import("zod").ZodOptional<import("zod").ZodString>;
207
+ after: import("zod").ZodOptional<import("zod").ZodString>;
208
+ credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>;
209
+ }, "strip", import("zod").ZodTypeAny, {
210
+ operation: "list_messages";
211
+ limit: number;
212
+ channel_id: string;
213
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
214
+ after?: string | undefined;
215
+ before?: string | undefined;
216
+ }, {
217
+ operation: "list_messages";
218
+ channel_id: string;
219
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
220
+ limit?: number | undefined;
221
+ after?: string | undefined;
222
+ before?: string | undefined;
223
+ }>, import("zod").ZodObject<{
224
+ operation: import("zod").ZodLiteral<"edit_message">;
225
+ channel_id: import("zod").ZodString;
226
+ message_id: import("zod").ZodString;
227
+ content: import("zod").ZodOptional<import("zod").ZodString>;
228
+ embeds: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
229
+ title: import("zod").ZodOptional<import("zod").ZodString>;
230
+ description: import("zod").ZodOptional<import("zod").ZodString>;
231
+ url: import("zod").ZodOptional<import("zod").ZodString>;
232
+ color: import("zod").ZodOptional<import("zod").ZodNumber>;
233
+ fields: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
234
+ name: import("zod").ZodString;
235
+ value: import("zod").ZodString;
236
+ inline: import("zod").ZodOptional<import("zod").ZodBoolean>;
237
+ }, "strip", import("zod").ZodTypeAny, {
238
+ value: string;
239
+ name: string;
240
+ inline?: boolean | undefined;
241
+ }, {
242
+ value: string;
243
+ name: string;
244
+ inline?: boolean | undefined;
245
+ }>, "many">>;
246
+ footer: import("zod").ZodOptional<import("zod").ZodObject<{
247
+ text: import("zod").ZodString;
248
+ icon_url: import("zod").ZodOptional<import("zod").ZodString>;
249
+ }, "strip", import("zod").ZodTypeAny, {
250
+ text: string;
251
+ icon_url?: string | undefined;
252
+ }, {
253
+ text: string;
254
+ icon_url?: string | undefined;
255
+ }>>;
256
+ thumbnail: import("zod").ZodOptional<import("zod").ZodObject<{
257
+ url: import("zod").ZodString;
258
+ }, "strip", import("zod").ZodTypeAny, {
259
+ url: string;
260
+ }, {
261
+ url: string;
262
+ }>>;
263
+ image: import("zod").ZodOptional<import("zod").ZodObject<{
264
+ url: import("zod").ZodString;
265
+ }, "strip", import("zod").ZodTypeAny, {
266
+ url: string;
267
+ }, {
268
+ url: string;
269
+ }>>;
270
+ author: import("zod").ZodOptional<import("zod").ZodObject<{
271
+ name: import("zod").ZodString;
272
+ url: import("zod").ZodOptional<import("zod").ZodString>;
273
+ icon_url: import("zod").ZodOptional<import("zod").ZodString>;
274
+ }, "strip", import("zod").ZodTypeAny, {
275
+ name: string;
276
+ url?: string | undefined;
277
+ icon_url?: string | undefined;
278
+ }, {
279
+ name: string;
280
+ url?: string | undefined;
281
+ icon_url?: string | undefined;
282
+ }>>;
283
+ timestamp: import("zod").ZodOptional<import("zod").ZodString>;
284
+ }, "strip", import("zod").ZodTypeAny, {
285
+ description?: string | undefined;
286
+ title?: string | undefined;
287
+ url?: string | undefined;
288
+ image?: {
289
+ url: string;
290
+ } | undefined;
291
+ fields?: {
292
+ value: string;
293
+ name: string;
294
+ inline?: boolean | undefined;
295
+ }[] | undefined;
296
+ color?: number | undefined;
297
+ footer?: {
298
+ text: string;
299
+ icon_url?: string | undefined;
300
+ } | undefined;
301
+ timestamp?: string | undefined;
302
+ thumbnail?: {
303
+ url: string;
304
+ } | undefined;
305
+ author?: {
306
+ name: string;
307
+ url?: string | undefined;
308
+ icon_url?: string | undefined;
309
+ } | undefined;
310
+ }, {
311
+ description?: string | undefined;
312
+ title?: string | undefined;
313
+ url?: string | undefined;
314
+ image?: {
315
+ url: string;
316
+ } | undefined;
317
+ fields?: {
318
+ value: string;
319
+ name: string;
320
+ inline?: boolean | undefined;
321
+ }[] | undefined;
322
+ color?: number | undefined;
323
+ footer?: {
324
+ text: string;
325
+ icon_url?: string | undefined;
326
+ } | undefined;
327
+ timestamp?: string | undefined;
328
+ thumbnail?: {
329
+ url: string;
330
+ } | undefined;
331
+ author?: {
332
+ name: string;
333
+ url?: string | undefined;
334
+ icon_url?: string | undefined;
335
+ } | undefined;
336
+ }>, "many">>;
337
+ credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>;
338
+ }, "strip", import("zod").ZodTypeAny, {
339
+ operation: "edit_message";
340
+ channel_id: string;
341
+ message_id: string;
342
+ content?: string | undefined;
343
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
344
+ embeds?: {
345
+ description?: string | undefined;
346
+ title?: string | undefined;
347
+ url?: string | undefined;
348
+ image?: {
349
+ url: string;
350
+ } | undefined;
351
+ fields?: {
352
+ value: string;
353
+ name: string;
354
+ inline?: boolean | undefined;
355
+ }[] | undefined;
356
+ color?: number | undefined;
357
+ footer?: {
358
+ text: string;
359
+ icon_url?: string | undefined;
360
+ } | undefined;
361
+ timestamp?: string | undefined;
362
+ thumbnail?: {
363
+ url: string;
364
+ } | undefined;
365
+ author?: {
366
+ name: string;
367
+ url?: string | undefined;
368
+ icon_url?: string | undefined;
369
+ } | undefined;
370
+ }[] | undefined;
371
+ }, {
372
+ operation: "edit_message";
373
+ channel_id: string;
374
+ message_id: string;
375
+ content?: string | undefined;
376
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
377
+ embeds?: {
378
+ description?: string | undefined;
379
+ title?: string | undefined;
380
+ url?: string | undefined;
381
+ image?: {
382
+ url: string;
383
+ } | undefined;
384
+ fields?: {
385
+ value: string;
386
+ name: string;
387
+ inline?: boolean | undefined;
388
+ }[] | undefined;
389
+ color?: number | undefined;
390
+ footer?: {
391
+ text: string;
392
+ icon_url?: string | undefined;
393
+ } | undefined;
394
+ timestamp?: string | undefined;
395
+ thumbnail?: {
396
+ url: string;
397
+ } | undefined;
398
+ author?: {
399
+ name: string;
400
+ url?: string | undefined;
401
+ icon_url?: string | undefined;
402
+ } | undefined;
403
+ }[] | undefined;
404
+ }>, import("zod").ZodObject<{
405
+ operation: import("zod").ZodLiteral<"delete_message">;
406
+ channel_id: import("zod").ZodString;
407
+ message_id: import("zod").ZodString;
408
+ credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>;
409
+ }, "strip", import("zod").ZodTypeAny, {
410
+ operation: "delete_message";
411
+ channel_id: string;
412
+ message_id: string;
413
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
414
+ }, {
415
+ operation: "delete_message";
416
+ channel_id: string;
417
+ message_id: string;
418
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
419
+ }>, import("zod").ZodObject<{
420
+ operation: import("zod").ZodLiteral<"pin_message">;
421
+ channel_id: import("zod").ZodString;
422
+ message_id: import("zod").ZodString;
423
+ credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>;
424
+ }, "strip", import("zod").ZodTypeAny, {
425
+ operation: "pin_message";
426
+ channel_id: string;
427
+ message_id: string;
428
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
429
+ }, {
430
+ operation: "pin_message";
431
+ channel_id: string;
432
+ message_id: string;
433
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
434
+ }>, import("zod").ZodObject<{
435
+ operation: import("zod").ZodLiteral<"add_reaction">;
436
+ channel_id: import("zod").ZodString;
437
+ message_id: import("zod").ZodString;
438
+ emoji: import("zod").ZodString;
439
+ credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>;
440
+ }, "strip", import("zod").ZodTypeAny, {
441
+ emoji: string;
442
+ operation: "add_reaction";
443
+ channel_id: string;
444
+ message_id: string;
445
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
446
+ }, {
447
+ emoji: string;
448
+ operation: "add_reaction";
449
+ channel_id: string;
450
+ message_id: string;
451
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
452
+ }>, import("zod").ZodObject<{
453
+ operation: import("zod").ZodLiteral<"list_channels">;
454
+ guild_id: import("zod").ZodOptional<import("zod").ZodString>;
455
+ credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>;
456
+ }, "strip", import("zod").ZodTypeAny, {
457
+ operation: "list_channels";
458
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
459
+ guild_id?: string | undefined;
460
+ }, {
461
+ operation: "list_channels";
462
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
463
+ guild_id?: string | undefined;
464
+ }>, import("zod").ZodObject<{
465
+ operation: import("zod").ZodLiteral<"create_channel">;
466
+ guild_id: import("zod").ZodOptional<import("zod").ZodString>;
467
+ name: import("zod").ZodString;
468
+ type: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodEnum<["text", "voice", "category", "announcement", "forum"]>>>;
469
+ topic: import("zod").ZodOptional<import("zod").ZodString>;
470
+ parent_id: import("zod").ZodOptional<import("zod").ZodString>;
471
+ nsfw: import("zod").ZodOptional<import("zod").ZodBoolean>;
472
+ credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>;
473
+ }, "strip", import("zod").ZodTypeAny, {
474
+ type: "text" | "category" | "voice" | "announcement" | "forum";
475
+ name: string;
476
+ operation: "create_channel";
477
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
478
+ topic?: string | undefined;
479
+ guild_id?: string | undefined;
480
+ parent_id?: string | undefined;
481
+ nsfw?: boolean | undefined;
482
+ }, {
483
+ name: string;
484
+ operation: "create_channel";
485
+ type?: "text" | "category" | "voice" | "announcement" | "forum" | undefined;
486
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
487
+ topic?: string | undefined;
488
+ guild_id?: string | undefined;
489
+ parent_id?: string | undefined;
490
+ nsfw?: boolean | undefined;
491
+ }>, import("zod").ZodObject<{
492
+ operation: import("zod").ZodLiteral<"delete_channel">;
493
+ channel_id: import("zod").ZodString;
494
+ credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>;
495
+ }, "strip", import("zod").ZodTypeAny, {
496
+ operation: "delete_channel";
497
+ channel_id: string;
498
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
499
+ }, {
500
+ operation: "delete_channel";
501
+ channel_id: string;
502
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
503
+ }>, import("zod").ZodObject<{
504
+ operation: import("zod").ZodLiteral<"create_thread">;
505
+ channel_id: import("zod").ZodString;
506
+ name: import("zod").ZodString;
507
+ message_id: import("zod").ZodOptional<import("zod").ZodString>;
508
+ auto_archive_duration: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodEnum<["60", "1440", "4320", "10080"]>>>;
509
+ credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>;
510
+ }, "strip", import("zod").ZodTypeAny, {
511
+ name: string;
512
+ operation: "create_thread";
513
+ channel_id: string;
514
+ auto_archive_duration: "60" | "1440" | "4320" | "10080";
515
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
516
+ message_id?: string | undefined;
517
+ }, {
518
+ name: string;
519
+ operation: "create_thread";
520
+ channel_id: string;
521
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
522
+ message_id?: string | undefined;
523
+ auto_archive_duration?: "60" | "1440" | "4320" | "10080" | undefined;
524
+ }>, import("zod").ZodObject<{
525
+ operation: import("zod").ZodLiteral<"list_threads">;
526
+ guild_id: import("zod").ZodOptional<import("zod").ZodString>;
527
+ credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>;
528
+ }, "strip", import("zod").ZodTypeAny, {
529
+ operation: "list_threads";
530
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
531
+ guild_id?: string | undefined;
532
+ }, {
533
+ operation: "list_threads";
534
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
535
+ guild_id?: string | undefined;
536
+ }>, import("zod").ZodObject<{
537
+ operation: import("zod").ZodLiteral<"list_members">;
538
+ guild_id: import("zod").ZodOptional<import("zod").ZodString>;
539
+ limit: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>;
540
+ after: import("zod").ZodOptional<import("zod").ZodString>;
541
+ credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>;
542
+ }, "strip", import("zod").ZodTypeAny, {
543
+ operation: "list_members";
544
+ limit: number;
545
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
546
+ after?: string | undefined;
547
+ guild_id?: string | undefined;
548
+ }, {
549
+ operation: "list_members";
550
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
551
+ limit?: number | undefined;
552
+ after?: string | undefined;
553
+ guild_id?: string | undefined;
554
+ }>, import("zod").ZodObject<{
555
+ operation: import("zod").ZodLiteral<"get_guild">;
556
+ guild_id: import("zod").ZodOptional<import("zod").ZodString>;
557
+ credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>;
558
+ }, "strip", import("zod").ZodTypeAny, {
559
+ operation: "get_guild";
560
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
561
+ guild_id?: string | undefined;
562
+ }, {
563
+ operation: "get_guild";
564
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
565
+ guild_id?: string | undefined;
566
+ }>]>;
567
+ static readonly resultSchema: import("zod").ZodDiscriminatedUnion<"operation", [import("zod").ZodObject<{
568
+ operation: import("zod").ZodLiteral<"send_message">;
569
+ success: import("zod").ZodBoolean;
570
+ message: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
571
+ error: import("zod").ZodString;
572
+ }, "strip", import("zod").ZodTypeAny, {
573
+ error: string;
574
+ success: boolean;
575
+ operation: "send_message";
576
+ message?: Record<string, unknown> | undefined;
577
+ }, {
578
+ error: string;
579
+ success: boolean;
580
+ operation: "send_message";
581
+ message?: Record<string, unknown> | undefined;
582
+ }>, import("zod").ZodObject<{
583
+ operation: import("zod").ZodLiteral<"list_messages">;
584
+ success: import("zod").ZodBoolean;
585
+ messages: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>, "many">>;
586
+ error: import("zod").ZodString;
587
+ }, "strip", import("zod").ZodTypeAny, {
588
+ error: string;
589
+ success: boolean;
590
+ operation: "list_messages";
591
+ messages?: Record<string, unknown>[] | undefined;
592
+ }, {
593
+ error: string;
594
+ success: boolean;
595
+ operation: "list_messages";
596
+ messages?: Record<string, unknown>[] | undefined;
597
+ }>, import("zod").ZodObject<{
598
+ operation: import("zod").ZodLiteral<"edit_message">;
599
+ success: import("zod").ZodBoolean;
600
+ message: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
601
+ error: import("zod").ZodString;
602
+ }, "strip", import("zod").ZodTypeAny, {
603
+ error: string;
604
+ success: boolean;
605
+ operation: "edit_message";
606
+ message?: Record<string, unknown> | undefined;
607
+ }, {
608
+ error: string;
609
+ success: boolean;
610
+ operation: "edit_message";
611
+ message?: Record<string, unknown> | undefined;
612
+ }>, import("zod").ZodObject<{
613
+ operation: import("zod").ZodLiteral<"delete_message">;
614
+ success: import("zod").ZodBoolean;
615
+ error: import("zod").ZodString;
616
+ }, "strip", import("zod").ZodTypeAny, {
617
+ error: string;
618
+ success: boolean;
619
+ operation: "delete_message";
620
+ }, {
621
+ error: string;
622
+ success: boolean;
623
+ operation: "delete_message";
624
+ }>, import("zod").ZodObject<{
625
+ operation: import("zod").ZodLiteral<"pin_message">;
626
+ success: import("zod").ZodBoolean;
627
+ error: import("zod").ZodString;
628
+ }, "strip", import("zod").ZodTypeAny, {
629
+ error: string;
630
+ success: boolean;
631
+ operation: "pin_message";
632
+ }, {
633
+ error: string;
634
+ success: boolean;
635
+ operation: "pin_message";
636
+ }>, import("zod").ZodObject<{
637
+ operation: import("zod").ZodLiteral<"add_reaction">;
638
+ success: import("zod").ZodBoolean;
639
+ error: import("zod").ZodString;
640
+ }, "strip", import("zod").ZodTypeAny, {
641
+ error: string;
642
+ success: boolean;
643
+ operation: "add_reaction";
644
+ }, {
645
+ error: string;
646
+ success: boolean;
647
+ operation: "add_reaction";
648
+ }>, import("zod").ZodObject<{
649
+ operation: import("zod").ZodLiteral<"list_channels">;
650
+ success: import("zod").ZodBoolean;
651
+ channels: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>, "many">>;
652
+ error: import("zod").ZodString;
653
+ }, "strip", import("zod").ZodTypeAny, {
654
+ error: string;
655
+ success: boolean;
656
+ operation: "list_channels";
657
+ channels?: Record<string, unknown>[] | undefined;
658
+ }, {
659
+ error: string;
660
+ success: boolean;
661
+ operation: "list_channels";
662
+ channels?: Record<string, unknown>[] | undefined;
663
+ }>, import("zod").ZodObject<{
664
+ operation: import("zod").ZodLiteral<"create_channel">;
665
+ success: import("zod").ZodBoolean;
666
+ channel: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
667
+ error: import("zod").ZodString;
668
+ }, "strip", import("zod").ZodTypeAny, {
669
+ error: string;
670
+ success: boolean;
671
+ operation: "create_channel";
672
+ channel?: Record<string, unknown> | undefined;
673
+ }, {
674
+ error: string;
675
+ success: boolean;
676
+ operation: "create_channel";
677
+ channel?: Record<string, unknown> | undefined;
678
+ }>, import("zod").ZodObject<{
679
+ operation: import("zod").ZodLiteral<"delete_channel">;
680
+ success: import("zod").ZodBoolean;
681
+ error: import("zod").ZodString;
682
+ }, "strip", import("zod").ZodTypeAny, {
683
+ error: string;
684
+ success: boolean;
685
+ operation: "delete_channel";
686
+ }, {
687
+ error: string;
688
+ success: boolean;
689
+ operation: "delete_channel";
690
+ }>, import("zod").ZodObject<{
691
+ operation: import("zod").ZodLiteral<"create_thread">;
692
+ success: import("zod").ZodBoolean;
693
+ thread: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
694
+ error: import("zod").ZodString;
695
+ }, "strip", import("zod").ZodTypeAny, {
696
+ error: string;
697
+ success: boolean;
698
+ operation: "create_thread";
699
+ thread?: Record<string, unknown> | undefined;
700
+ }, {
701
+ error: string;
702
+ success: boolean;
703
+ operation: "create_thread";
704
+ thread?: Record<string, unknown> | undefined;
705
+ }>, import("zod").ZodObject<{
706
+ operation: import("zod").ZodLiteral<"list_threads">;
707
+ success: import("zod").ZodBoolean;
708
+ threads: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>, "many">>;
709
+ error: import("zod").ZodString;
710
+ }, "strip", import("zod").ZodTypeAny, {
711
+ error: string;
712
+ success: boolean;
713
+ operation: "list_threads";
714
+ threads?: Record<string, unknown>[] | undefined;
715
+ }, {
716
+ error: string;
717
+ success: boolean;
718
+ operation: "list_threads";
719
+ threads?: Record<string, unknown>[] | undefined;
720
+ }>, import("zod").ZodObject<{
721
+ operation: import("zod").ZodLiteral<"list_members">;
722
+ success: import("zod").ZodBoolean;
723
+ members: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>, "many">>;
724
+ error: import("zod").ZodString;
725
+ }, "strip", import("zod").ZodTypeAny, {
726
+ error: string;
727
+ success: boolean;
728
+ operation: "list_members";
729
+ members?: Record<string, unknown>[] | undefined;
730
+ }, {
731
+ error: string;
732
+ success: boolean;
733
+ operation: "list_members";
734
+ members?: Record<string, unknown>[] | undefined;
735
+ }>, import("zod").ZodObject<{
736
+ operation: import("zod").ZodLiteral<"get_guild">;
737
+ success: import("zod").ZodBoolean;
738
+ guild: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
739
+ error: import("zod").ZodString;
740
+ }, "strip", import("zod").ZodTypeAny, {
741
+ error: string;
742
+ success: boolean;
743
+ operation: "get_guild";
744
+ guild?: Record<string, unknown> | undefined;
745
+ }, {
746
+ error: string;
747
+ success: boolean;
748
+ operation: "get_guild";
749
+ guild?: Record<string, unknown> | undefined;
750
+ }>]>;
751
+ static readonly shortDescription = "Discord integration for messaging, channels, threads, and server management";
752
+ static readonly longDescription = "\n Comprehensive Discord integration via the REST API (v10).\n\n Features:\n - Send, edit, delete, and pin messages in channels\n - List and read message history\n - Add emoji reactions to messages\n - List, create, and delete channels\n - Create and list threads\n - List guild/server members\n - Get guild/server information\n\n Security Features:\n - OAuth 2.0 authentication with Discord\n - Guild-scoped access with bot permissions\n - Secure credential handling with base64-encoded payloads\n ";
753
+ static readonly alias = "";
754
+ constructor(params?: T, context?: BubbleContext);
755
+ testCredential(): Promise<boolean>;
756
+ private parseCredentials;
757
+ protected chooseCredential(): string | undefined;
758
+ /** Resolve guild ID from params or credential metadata. */
759
+ private getGuildId;
760
+ private discordRequest;
761
+ protected performAction(): Promise<Extract<DiscordResult, {
762
+ operation: T['operation'];
763
+ }>>;
764
+ private sendMessage;
765
+ private listMessages;
766
+ private editMessage;
767
+ private deleteMessage;
768
+ private pinMessage;
769
+ private addReaction;
770
+ private listChannels;
771
+ private createChannel;
772
+ private deleteChannel;
773
+ private createThread;
774
+ private listThreads;
775
+ private listMembers;
776
+ private getGuild;
777
+ }
778
+ //# sourceMappingURL=discord.d.ts.map