@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.
Files changed (67) hide show
  1. package/dist/bubble-bundle.d.ts +100 -55
  2. package/dist/bubble-factory.d.ts.map +1 -1
  3. package/dist/bubble-factory.js +4 -0
  4. package/dist/bubble-factory.js.map +1 -1
  5. package/dist/bubbles/service-bubble/ai-agent.d.ts +4 -4
  6. package/dist/bubbles/service-bubble/apify/apify.d.ts +4 -4
  7. package/dist/bubbles/service-bubble/confluence/confluence.d.ts +1957 -0
  8. package/dist/bubbles/service-bubble/confluence/confluence.d.ts.map +1 -0
  9. package/dist/bubbles/service-bubble/confluence/confluence.integration.flow.d.ts +35 -0
  10. package/dist/bubbles/service-bubble/confluence/confluence.integration.flow.d.ts.map +1 -0
  11. package/dist/bubbles/service-bubble/confluence/confluence.integration.flow.js +327 -0
  12. package/dist/bubbles/service-bubble/confluence/confluence.integration.flow.js.map +1 -0
  13. package/dist/bubbles/service-bubble/confluence/confluence.js +534 -0
  14. package/dist/bubbles/service-bubble/confluence/confluence.js.map +1 -0
  15. package/dist/bubbles/service-bubble/confluence/confluence.schema.d.ts +2435 -0
  16. package/dist/bubbles/service-bubble/confluence/confluence.schema.d.ts.map +1 -0
  17. package/dist/bubbles/service-bubble/confluence/confluence.schema.js +467 -0
  18. package/dist/bubbles/service-bubble/confluence/confluence.schema.js.map +1 -0
  19. package/dist/bubbles/service-bubble/confluence/confluence.utils.d.ts +49 -0
  20. package/dist/bubbles/service-bubble/confluence/confluence.utils.d.ts.map +1 -0
  21. package/dist/bubbles/service-bubble/confluence/confluence.utils.js +337 -0
  22. package/dist/bubbles/service-bubble/confluence/confluence.utils.js.map +1 -0
  23. package/dist/bubbles/service-bubble/confluence/index.d.ts +5 -0
  24. package/dist/bubbles/service-bubble/confluence/index.d.ts.map +1 -0
  25. package/dist/bubbles/service-bubble/confluence/index.js +5 -0
  26. package/dist/bubbles/service-bubble/confluence/index.js.map +1 -0
  27. package/dist/bubbles/service-bubble/crustdata/crustdata.d.ts +8 -8
  28. package/dist/bubbles/service-bubble/crustdata/crustdata.schema.d.ts +16 -16
  29. package/dist/bubbles/service-bubble/firecrawl.d.ts +4 -4
  30. package/dist/bubbles/service-bubble/gmail.d.ts +84 -84
  31. package/dist/bubbles/service-bubble/google-drive.d.ts +32 -32
  32. package/dist/bubbles/service-bubble/google-drive.d.ts.map +1 -1
  33. package/dist/bubbles/service-bubble/google-drive.js +22 -2
  34. package/dist/bubbles/service-bubble/google-drive.js.map +1 -1
  35. package/dist/bubbles/service-bubble/google-sheets/google-sheets.schema.js +6 -6
  36. package/dist/bubbles/service-bubble/google-sheets/google-sheets.schema.js.map +1 -1
  37. package/dist/bubbles/service-bubble/jira/jira.d.ts +12 -12
  38. package/dist/bubbles/service-bubble/jira/jira.schema.d.ts +14 -14
  39. package/dist/bubbles/service-bubble/resend.d.ts +4 -4
  40. package/dist/bubbles/service-bubble/salesforce/index.d.ts +4 -0
  41. package/dist/bubbles/service-bubble/salesforce/index.d.ts.map +1 -0
  42. package/dist/bubbles/service-bubble/salesforce/index.js +4 -0
  43. package/dist/bubbles/service-bubble/salesforce/index.js.map +1 -0
  44. package/dist/bubbles/service-bubble/salesforce/salesforce.d.ts +1331 -0
  45. package/dist/bubbles/service-bubble/salesforce/salesforce.d.ts.map +1 -0
  46. package/dist/bubbles/service-bubble/salesforce/salesforce.js +618 -0
  47. package/dist/bubbles/service-bubble/salesforce/salesforce.js.map +1 -0
  48. package/dist/bubbles/service-bubble/salesforce/salesforce.schema.d.ts +1445 -0
  49. package/dist/bubbles/service-bubble/salesforce/salesforce.schema.d.ts.map +1 -0
  50. package/dist/bubbles/service-bubble/salesforce/salesforce.schema.js +609 -0
  51. package/dist/bubbles/service-bubble/salesforce/salesforce.schema.js.map +1 -0
  52. package/dist/bubbles/service-bubble/salesforce/salesforce.utils.d.ts +87 -0
  53. package/dist/bubbles/service-bubble/salesforce/salesforce.utils.d.ts.map +1 -0
  54. package/dist/bubbles/service-bubble/salesforce/salesforce.utils.js +181 -0
  55. package/dist/bubbles/service-bubble/salesforce/salesforce.utils.js.map +1 -0
  56. package/dist/bubbles/service-bubble/slack/slack.d.ts +36 -36
  57. package/dist/bubbles/tool-bubble/tiktok-tool.d.ts +8 -8
  58. package/dist/bubbles/tool-bubble/twitter-tool.d.ts +10 -10
  59. package/dist/bubbles/workflow-bubble/pdf-form-operations.workflow.d.ts +8 -8
  60. package/dist/bubbles/workflow-bubble/pdf-ocr.workflow.d.ts +16 -16
  61. package/dist/bubbles/workflow-bubble/slack-formatter-agent.d.ts +16 -16
  62. package/dist/bubbles.json +1247 -8
  63. package/dist/index.d.ts +2 -0
  64. package/dist/index.d.ts.map +1 -1
  65. package/dist/index.js +1 -0
  66. package/dist/index.js.map +1 -1
  67. package/package.json +2 -2
@@ -0,0 +1,87 @@
1
+ /**
2
+ * Salesforce Bubble Utility Functions
3
+ *
4
+ * Helper functions for Salesforce API interactions and data formatting.
5
+ */
6
+ /**
7
+ * Validate Salesforce ID format (15 or 18 character)
8
+ * @param id Salesforce record ID
9
+ * @returns Whether the ID is valid
10
+ */
11
+ export declare function isValidSalesforceId(id: string): boolean;
12
+ /**
13
+ * Convert 15-character Salesforce ID to 18-character ID
14
+ * @param id15 15-character Salesforce ID
15
+ * @returns 18-character Salesforce ID
16
+ */
17
+ export declare function to18CharId(id15: string): string;
18
+ /**
19
+ * Format Salesforce date to ISO string
20
+ * @param sfDate Salesforce date string (YYYY-MM-DD or ISO format)
21
+ * @returns ISO date string
22
+ */
23
+ export declare function formatSalesforceDate(sfDate: string): string;
24
+ /**
25
+ * Convert JavaScript Date to Salesforce date format
26
+ * @param date JavaScript Date object
27
+ * @returns Salesforce date string (YYYY-MM-DD)
28
+ */
29
+ export declare function toSalesforceDate(date: Date): string;
30
+ /**
31
+ * Escape SOQL special characters in a string
32
+ * @param value String to escape
33
+ * @returns Escaped string safe for SOQL
34
+ */
35
+ export declare function escapeSoql(value: string): string;
36
+ /**
37
+ * Build a SOQL query string
38
+ * @param sobjectType sObject API name
39
+ * @param fields Array of field names to select
40
+ * @param options Query options (where, orderBy, limit)
41
+ * @returns SOQL query string
42
+ */
43
+ export declare function buildSoqlQuery(sobjectType: string, fields: string[], options?: {
44
+ where?: string;
45
+ orderBy?: string;
46
+ limit?: number;
47
+ }): string;
48
+ /**
49
+ * Enhance Salesforce API error messages with helpful hints
50
+ * @param error Original error message or object
51
+ * @param statusCode HTTP status code
52
+ * @returns Enhanced error message
53
+ */
54
+ export declare function enhanceSalesforceErrorMessage(error: string | SalesforceErrorResponse[], statusCode?: number): string;
55
+ /**
56
+ * Salesforce error response object
57
+ */
58
+ export interface SalesforceErrorResponse {
59
+ message: string;
60
+ errorCode?: string;
61
+ fields?: string[];
62
+ }
63
+ /**
64
+ * Parse Salesforce API error response
65
+ * @param responseBody Response body from Salesforce API
66
+ * @returns Array of error objects or string error
67
+ */
68
+ export declare function parseSalesforceError(responseBody: unknown): SalesforceErrorResponse[] | string;
69
+ /**
70
+ * Get the instance URL from OAuth token response metadata
71
+ * @param instanceUrl Instance URL from OAuth response
72
+ * @returns Cleaned instance URL (without trailing slash)
73
+ */
74
+ export declare function cleanInstanceUrl(instanceUrl: string): string;
75
+ /**
76
+ * Get Salesforce API version
77
+ * @returns Current API version string
78
+ */
79
+ export declare function getSalesforceApiVersion(): string;
80
+ /**
81
+ * Build Salesforce REST API URL
82
+ * @param instanceUrl Salesforce instance URL
83
+ * @param endpoint API endpoint path
84
+ * @returns Full API URL
85
+ */
86
+ export declare function buildApiUrl(instanceUrl: string, endpoint: string): string;
87
+ //# sourceMappingURL=salesforce.utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"salesforce.utils.d.ts","sourceRoot":"","sources":["../../../../src/bubbles/service-bubble/salesforce/salesforce.utils.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;;;GAIG;AACH,wBAAgB,mBAAmB,CAAC,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181 @@
1
+ /**
2
+ * Salesforce Bubble Utility Functions
3
+ *
4
+ * Helper functions for Salesforce API interactions and data formatting.
5
+ */
6
+ /**
7
+ * Validate Salesforce ID format (15 or 18 character)
8
+ * @param id Salesforce record ID
9
+ * @returns Whether the ID is valid
10
+ */
11
+ export function isValidSalesforceId(id) {
12
+ // Salesforce IDs are either 15-character (case-sensitive) or 18-character (case-insensitive)
13
+ return /^[a-zA-Z0-9]{15}$|^[a-zA-Z0-9]{18}$/.test(id);
14
+ }
15
+ /**
16
+ * Convert 15-character Salesforce ID to 18-character ID
17
+ * @param id15 15-character Salesforce ID
18
+ * @returns 18-character Salesforce ID
19
+ */
20
+ export function to18CharId(id15) {
21
+ if (id15.length === 18)
22
+ return id15;
23
+ if (id15.length !== 15) {
24
+ throw new Error('Invalid Salesforce ID: must be 15 or 18 characters');
25
+ }
26
+ const suffix = [];
27
+ for (let i = 0; i < 3; i++) {
28
+ let flags = 0;
29
+ for (let j = 0; j < 5; j++) {
30
+ const char = id15.charAt(i * 5 + j);
31
+ if (char >= 'A' && char <= 'Z') {
32
+ flags += 1 << j;
33
+ }
34
+ }
35
+ suffix.push('ABCDEFGHIJKLMNOPQRSTUVWXYZ012345'.charAt(flags));
36
+ }
37
+ return id15 + suffix.join('');
38
+ }
39
+ /**
40
+ * Format Salesforce date to ISO string
41
+ * @param sfDate Salesforce date string (YYYY-MM-DD or ISO format)
42
+ * @returns ISO date string
43
+ */
44
+ export function formatSalesforceDate(sfDate) {
45
+ // If already ISO format, return as-is
46
+ if (sfDate.includes('T')) {
47
+ return sfDate;
48
+ }
49
+ // Convert YYYY-MM-DD to ISO
50
+ return new Date(sfDate + 'T00:00:00.000Z').toISOString();
51
+ }
52
+ /**
53
+ * Convert JavaScript Date to Salesforce date format
54
+ * @param date JavaScript Date object
55
+ * @returns Salesforce date string (YYYY-MM-DD)
56
+ */
57
+ export function toSalesforceDate(date) {
58
+ return date.toISOString().split('T')[0];
59
+ }
60
+ /**
61
+ * Escape SOQL special characters in a string
62
+ * @param value String to escape
63
+ * @returns Escaped string safe for SOQL
64
+ */
65
+ export function escapeSoql(value) {
66
+ // Escape single quotes, backslashes, and other special characters
67
+ return value
68
+ .replace(/\\/g, '\\\\')
69
+ .replace(/'/g, "\\'")
70
+ .replace(/\n/g, '\\n')
71
+ .replace(/\r/g, '\\r')
72
+ .replace(/\t/g, '\\t');
73
+ }
74
+ /**
75
+ * Build a SOQL query string
76
+ * @param sobjectType sObject API name
77
+ * @param fields Array of field names to select
78
+ * @param options Query options (where, orderBy, limit)
79
+ * @returns SOQL query string
80
+ */
81
+ export function buildSoqlQuery(sobjectType, fields, options) {
82
+ let query = `SELECT ${fields.join(', ')} FROM ${sobjectType}`;
83
+ if (options?.where) {
84
+ query += ` WHERE ${options.where}`;
85
+ }
86
+ if (options?.orderBy) {
87
+ query += ` ORDER BY ${options.orderBy}`;
88
+ }
89
+ if (options?.limit) {
90
+ query += ` LIMIT ${options.limit}`;
91
+ }
92
+ return query;
93
+ }
94
+ /**
95
+ * Enhance Salesforce API error messages with helpful hints
96
+ * @param error Original error message or object
97
+ * @param statusCode HTTP status code
98
+ * @returns Enhanced error message
99
+ */
100
+ export function enhanceSalesforceErrorMessage(error, statusCode) {
101
+ // Handle array of Salesforce error objects
102
+ if (Array.isArray(error)) {
103
+ const messages = error.map((e) => {
104
+ let msg = e.message;
105
+ if (e.errorCode) {
106
+ msg = `[${e.errorCode}] ${msg}`;
107
+ }
108
+ if (e.fields && e.fields.length > 0) {
109
+ msg += ` (Fields: ${e.fields.join(', ')})`;
110
+ }
111
+ return msg;
112
+ });
113
+ return messages.join('; ');
114
+ }
115
+ // Handle string error
116
+ let errorMsg = error;
117
+ if (statusCode === 401) {
118
+ errorMsg += '\n\nHint: Your Salesforce access token may be expired. Try refreshing your OAuth credentials.';
119
+ }
120
+ else if (statusCode === 403) {
121
+ errorMsg += '\n\nHint: You may not have permission to access this resource. Check your Salesforce profile permissions.';
122
+ }
123
+ else if (statusCode === 404) {
124
+ errorMsg += '\n\nHint: The requested resource was not found. Check that the ID or object type is correct.';
125
+ }
126
+ else if (statusCode === 400) {
127
+ errorMsg += '\n\nHint: The request was malformed. Check your field names and data types.';
128
+ }
129
+ return errorMsg;
130
+ }
131
+ /**
132
+ * Parse Salesforce API error response
133
+ * @param responseBody Response body from Salesforce API
134
+ * @returns Array of error objects or string error
135
+ */
136
+ export function parseSalesforceError(responseBody) {
137
+ if (Array.isArray(responseBody)) {
138
+ return responseBody;
139
+ }
140
+ if (typeof responseBody === 'string') {
141
+ return responseBody;
142
+ }
143
+ if (typeof responseBody === 'object' &&
144
+ responseBody !== null &&
145
+ 'message' in responseBody) {
146
+ return [responseBody];
147
+ }
148
+ return 'Unknown Salesforce API error';
149
+ }
150
+ /**
151
+ * Get the instance URL from OAuth token response metadata
152
+ * @param instanceUrl Instance URL from OAuth response
153
+ * @returns Cleaned instance URL (without trailing slash)
154
+ */
155
+ export function cleanInstanceUrl(instanceUrl) {
156
+ return instanceUrl.replace(/\/$/, '');
157
+ }
158
+ /**
159
+ * Get Salesforce API version
160
+ * @returns Current API version string
161
+ */
162
+ export function getSalesforceApiVersion() {
163
+ return 'v59.0'; // Winter '24 release - current stable version
164
+ }
165
+ /**
166
+ * Build Salesforce REST API URL
167
+ * @param instanceUrl Salesforce instance URL
168
+ * @param endpoint API endpoint path
169
+ * @returns Full API URL
170
+ */
171
+ export function buildApiUrl(instanceUrl, endpoint) {
172
+ const cleanedInstance = cleanInstanceUrl(instanceUrl);
173
+ const version = getSalesforceApiVersion();
174
+ // Handle endpoints that already include the services path
175
+ if (endpoint.startsWith('/services/')) {
176
+ return `${cleanedInstance}${endpoint}`;
177
+ }
178
+ // Standard data API endpoints
179
+ return `${cleanedInstance}/services/data/${version}${endpoint}`;
180
+ }
181
+ //# sourceMappingURL=salesforce.utils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"salesforce.utils.js","sourceRoot":"","sources":["../../../../src/bubbles/service-bubble/salesforce/salesforce.utils.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OAAO,YAAY,KAAK,QAAQ;QAChC,YAAY,KAAK,IAAI;QACrB,SAAS,IAAI,YAAY,EACzB,CAAC;QACD,OAAO,CAAE,YAAwC,CAAC,CAAC;IACrD,CAAC;IACD,OAAO,8BAA8B,CAAC;AACxC,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,gBAAgB,CAAC,WAAmB;IAClD,OAAO,WAAW,CAAC,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;AACxC,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,uBAAuB;IACrC,OAAO,OAAO,CAAC,CAAC,8CAA8C;AAChE,CAAC;AAED;;;;;GAKG;AACH,MAAM,UAAU,WAAW,CAAC,WAAmB,EAAE,QAAgB;IAC/D,MAAM,eAAe,GAAG,gBAAgB,CAAC,WAAW,CAAC,CAAC;IACtD,MAAM,OAAO,GAAG,uBAAuB,EAAE,CAAC;IAE1C,0DAA0D;IAC1D,IAAI,QAAQ,CAAC,UAAU,CAAC,YAAY,CAAC,EAAE,CAAC;QACtC,OAAO,GAAG,eAAe,GAAG,QAAQ,EAAE,CAAC;IACzC,CAAC;IAED,8BAA8B;IAC9B,OAAO,GAAG,eAAe,kBAAkB,OAAO,GAAG,QAAQ,EAAE,CAAC;AAClE,CAAC"}
@@ -355,16 +355,16 @@ declare const SlackParamsSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
355
355
  cursor: z.ZodOptional<z.ZodString>;
356
356
  credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>;
357
357
  }, "strip", z.ZodTypeAny, {
358
- types: ("public_channel" | "private_channel" | "mpim" | "im")[];
359
358
  operation: "list_channels";
359
+ types: ("public_channel" | "private_channel" | "mpim" | "im")[];
360
360
  exclude_archived: boolean;
361
361
  limit: number;
362
362
  credentials?: Partial<Record<CredentialType, string>> | undefined;
363
363
  cursor?: string | undefined;
364
364
  }, {
365
365
  operation: "list_channels";
366
- types?: ("public_channel" | "private_channel" | "mpim" | "im")[] | undefined;
367
366
  credentials?: Partial<Record<CredentialType, string>> | undefined;
367
+ types?: ("public_channel" | "private_channel" | "mpim" | "im")[] | undefined;
368
368
  exclude_archived?: boolean | undefined;
369
369
  limit?: number | undefined;
370
370
  cursor?: string | undefined;
@@ -1241,8 +1241,8 @@ declare const SlackResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
1241
1241
  }>, "many">>;
1242
1242
  }, "strip", z.ZodTypeAny, {
1243
1243
  type: string;
1244
- text?: string | undefined;
1245
1244
  user?: string | undefined;
1245
+ text?: string | undefined;
1246
1246
  ts?: string | undefined;
1247
1247
  username?: string | undefined;
1248
1248
  attachments?: unknown[] | undefined;
@@ -1283,8 +1283,8 @@ declare const SlackResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
1283
1283
  }[] | undefined;
1284
1284
  }, {
1285
1285
  type: string;
1286
- text?: string | undefined;
1287
1286
  user?: string | undefined;
1287
+ text?: string | undefined;
1288
1288
  ts?: string | undefined;
1289
1289
  username?: string | undefined;
1290
1290
  attachments?: unknown[] | undefined;
@@ -1333,8 +1333,8 @@ declare const SlackResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
1333
1333
  ok: boolean;
1334
1334
  message?: {
1335
1335
  type: string;
1336
- text?: string | undefined;
1337
1336
  user?: string | undefined;
1337
+ text?: string | undefined;
1338
1338
  ts?: string | undefined;
1339
1339
  username?: string | undefined;
1340
1340
  attachments?: unknown[] | undefined;
@@ -1383,8 +1383,8 @@ declare const SlackResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
1383
1383
  ok: boolean;
1384
1384
  message?: {
1385
1385
  type: string;
1386
- text?: string | undefined;
1387
1386
  user?: string | undefined;
1387
+ text?: string | undefined;
1388
1388
  ts?: string | undefined;
1389
1389
  username?: string | undefined;
1390
1390
  attachments?: unknown[] | undefined;
@@ -2527,8 +2527,8 @@ declare const SlackResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
2527
2527
  }>, "many">>;
2528
2528
  }, "strip", z.ZodTypeAny, {
2529
2529
  type: string;
2530
- text?: string | undefined;
2531
2530
  user?: string | undefined;
2531
+ text?: string | undefined;
2532
2532
  ts?: string | undefined;
2533
2533
  username?: string | undefined;
2534
2534
  attachments?: unknown[] | undefined;
@@ -2569,8 +2569,8 @@ declare const SlackResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
2569
2569
  }[] | undefined;
2570
2570
  }, {
2571
2571
  type: string;
2572
- text?: string | undefined;
2573
2572
  user?: string | undefined;
2573
+ text?: string | undefined;
2574
2574
  ts?: string | undefined;
2575
2575
  username?: string | undefined;
2576
2576
  attachments?: unknown[] | undefined;
@@ -2630,8 +2630,8 @@ declare const SlackResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
2630
2630
  } | undefined;
2631
2631
  messages?: {
2632
2632
  type: string;
2633
- text?: string | undefined;
2634
2633
  user?: string | undefined;
2634
+ text?: string | undefined;
2635
2635
  ts?: string | undefined;
2636
2636
  username?: string | undefined;
2637
2637
  attachments?: unknown[] | undefined;
@@ -2682,8 +2682,8 @@ declare const SlackResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
2682
2682
  } | undefined;
2683
2683
  messages?: {
2684
2684
  type: string;
2685
- text?: string | undefined;
2686
2685
  user?: string | undefined;
2686
+ text?: string | undefined;
2687
2687
  ts?: string | undefined;
2688
2688
  username?: string | undefined;
2689
2689
  attachments?: unknown[] | undefined;
@@ -2815,8 +2815,8 @@ declare const SlackResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
2815
2815
  }>, "many">>;
2816
2816
  }, "strip", z.ZodTypeAny, {
2817
2817
  type: string;
2818
- text?: string | undefined;
2819
2818
  user?: string | undefined;
2819
+ text?: string | undefined;
2820
2820
  ts?: string | undefined;
2821
2821
  username?: string | undefined;
2822
2822
  attachments?: unknown[] | undefined;
@@ -2857,8 +2857,8 @@ declare const SlackResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
2857
2857
  }[] | undefined;
2858
2858
  }, {
2859
2859
  type: string;
2860
- text?: string | undefined;
2861
2860
  user?: string | undefined;
2861
+ text?: string | undefined;
2862
2862
  ts?: string | undefined;
2863
2863
  username?: string | undefined;
2864
2864
  attachments?: unknown[] | undefined;
@@ -2918,8 +2918,8 @@ declare const SlackResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
2918
2918
  } | undefined;
2919
2919
  messages?: {
2920
2920
  type: string;
2921
- text?: string | undefined;
2922
2921
  user?: string | undefined;
2922
+ text?: string | undefined;
2923
2923
  ts?: string | undefined;
2924
2924
  username?: string | undefined;
2925
2925
  attachments?: unknown[] | undefined;
@@ -2970,8 +2970,8 @@ declare const SlackResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
2970
2970
  } | undefined;
2971
2971
  messages?: {
2972
2972
  type: string;
2973
- text?: string | undefined;
2974
2973
  user?: string | undefined;
2974
+ text?: string | undefined;
2975
2975
  ts?: string | undefined;
2976
2976
  username?: string | undefined;
2977
2977
  attachments?: unknown[] | undefined;
@@ -3106,8 +3106,8 @@ declare const SlackResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
3106
3106
  }>, "many">>;
3107
3107
  }, "strip", z.ZodTypeAny, {
3108
3108
  type: string;
3109
- text?: string | undefined;
3110
3109
  user?: string | undefined;
3110
+ text?: string | undefined;
3111
3111
  ts?: string | undefined;
3112
3112
  username?: string | undefined;
3113
3113
  attachments?: unknown[] | undefined;
@@ -3148,8 +3148,8 @@ declare const SlackResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
3148
3148
  }[] | undefined;
3149
3149
  }, {
3150
3150
  type: string;
3151
- text?: string | undefined;
3152
3151
  user?: string | undefined;
3152
+ text?: string | undefined;
3153
3153
  ts?: string | undefined;
3154
3154
  username?: string | undefined;
3155
3155
  attachments?: unknown[] | undefined;
@@ -3198,8 +3198,8 @@ declare const SlackResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
3198
3198
  ok: boolean;
3199
3199
  message?: {
3200
3200
  type: string;
3201
- text?: string | undefined;
3202
3201
  user?: string | undefined;
3202
+ text?: string | undefined;
3203
3203
  ts?: string | undefined;
3204
3204
  username?: string | undefined;
3205
3205
  attachments?: unknown[] | undefined;
@@ -3249,8 +3249,8 @@ declare const SlackResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
3249
3249
  ok: boolean;
3250
3250
  message?: {
3251
3251
  type: string;
3252
- text?: string | undefined;
3253
3252
  user?: string | undefined;
3253
+ text?: string | undefined;
3254
3254
  ts?: string | undefined;
3255
3255
  username?: string | undefined;
3256
3256
  attachments?: unknown[] | undefined;
@@ -4367,16 +4367,16 @@ export declare class SlackBubble<T extends SlackParams = SlackParams> extends Se
4367
4367
  cursor: z.ZodOptional<z.ZodString>;
4368
4368
  credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>;
4369
4369
  }, "strip", z.ZodTypeAny, {
4370
- types: ("public_channel" | "private_channel" | "mpim" | "im")[];
4371
4370
  operation: "list_channels";
4371
+ types: ("public_channel" | "private_channel" | "mpim" | "im")[];
4372
4372
  exclude_archived: boolean;
4373
4373
  limit: number;
4374
4374
  credentials?: Partial<Record<CredentialType, string>> | undefined;
4375
4375
  cursor?: string | undefined;
4376
4376
  }, {
4377
4377
  operation: "list_channels";
4378
- types?: ("public_channel" | "private_channel" | "mpim" | "im")[] | undefined;
4379
4378
  credentials?: Partial<Record<CredentialType, string>> | undefined;
4379
+ types?: ("public_channel" | "private_channel" | "mpim" | "im")[] | undefined;
4380
4380
  exclude_archived?: boolean | undefined;
4381
4381
  limit?: number | undefined;
4382
4382
  cursor?: string | undefined;
@@ -5253,8 +5253,8 @@ export declare class SlackBubble<T extends SlackParams = SlackParams> extends Se
5253
5253
  }>, "many">>;
5254
5254
  }, "strip", z.ZodTypeAny, {
5255
5255
  type: string;
5256
- text?: string | undefined;
5257
5256
  user?: string | undefined;
5257
+ text?: string | undefined;
5258
5258
  ts?: string | undefined;
5259
5259
  username?: string | undefined;
5260
5260
  attachments?: unknown[] | undefined;
@@ -5295,8 +5295,8 @@ export declare class SlackBubble<T extends SlackParams = SlackParams> extends Se
5295
5295
  }[] | undefined;
5296
5296
  }, {
5297
5297
  type: string;
5298
- text?: string | undefined;
5299
5298
  user?: string | undefined;
5299
+ text?: string | undefined;
5300
5300
  ts?: string | undefined;
5301
5301
  username?: string | undefined;
5302
5302
  attachments?: unknown[] | undefined;
@@ -5345,8 +5345,8 @@ export declare class SlackBubble<T extends SlackParams = SlackParams> extends Se
5345
5345
  ok: boolean;
5346
5346
  message?: {
5347
5347
  type: string;
5348
- text?: string | undefined;
5349
5348
  user?: string | undefined;
5349
+ text?: string | undefined;
5350
5350
  ts?: string | undefined;
5351
5351
  username?: string | undefined;
5352
5352
  attachments?: unknown[] | undefined;
@@ -5395,8 +5395,8 @@ export declare class SlackBubble<T extends SlackParams = SlackParams> extends Se
5395
5395
  ok: boolean;
5396
5396
  message?: {
5397
5397
  type: string;
5398
- text?: string | undefined;
5399
5398
  user?: string | undefined;
5399
+ text?: string | undefined;
5400
5400
  ts?: string | undefined;
5401
5401
  username?: string | undefined;
5402
5402
  attachments?: unknown[] | undefined;
@@ -6539,8 +6539,8 @@ export declare class SlackBubble<T extends SlackParams = SlackParams> extends Se
6539
6539
  }>, "many">>;
6540
6540
  }, "strip", z.ZodTypeAny, {
6541
6541
  type: string;
6542
- text?: string | undefined;
6543
6542
  user?: string | undefined;
6543
+ text?: string | undefined;
6544
6544
  ts?: string | undefined;
6545
6545
  username?: string | undefined;
6546
6546
  attachments?: unknown[] | undefined;
@@ -6581,8 +6581,8 @@ export declare class SlackBubble<T extends SlackParams = SlackParams> extends Se
6581
6581
  }[] | undefined;
6582
6582
  }, {
6583
6583
  type: string;
6584
- text?: string | undefined;
6585
6584
  user?: string | undefined;
6585
+ text?: string | undefined;
6586
6586
  ts?: string | undefined;
6587
6587
  username?: string | undefined;
6588
6588
  attachments?: unknown[] | undefined;
@@ -6642,8 +6642,8 @@ export declare class SlackBubble<T extends SlackParams = SlackParams> extends Se
6642
6642
  } | undefined;
6643
6643
  messages?: {
6644
6644
  type: string;
6645
- text?: string | undefined;
6646
6645
  user?: string | undefined;
6646
+ text?: string | undefined;
6647
6647
  ts?: string | undefined;
6648
6648
  username?: string | undefined;
6649
6649
  attachments?: unknown[] | undefined;
@@ -6694,8 +6694,8 @@ export declare class SlackBubble<T extends SlackParams = SlackParams> extends Se
6694
6694
  } | undefined;
6695
6695
  messages?: {
6696
6696
  type: string;
6697
- text?: string | undefined;
6698
6697
  user?: string | undefined;
6698
+ text?: string | undefined;
6699
6699
  ts?: string | undefined;
6700
6700
  username?: string | undefined;
6701
6701
  attachments?: unknown[] | undefined;
@@ -6827,8 +6827,8 @@ export declare class SlackBubble<T extends SlackParams = SlackParams> extends Se
6827
6827
  }>, "many">>;
6828
6828
  }, "strip", z.ZodTypeAny, {
6829
6829
  type: string;
6830
- text?: string | undefined;
6831
6830
  user?: string | undefined;
6831
+ text?: string | undefined;
6832
6832
  ts?: string | undefined;
6833
6833
  username?: string | undefined;
6834
6834
  attachments?: unknown[] | undefined;
@@ -6869,8 +6869,8 @@ export declare class SlackBubble<T extends SlackParams = SlackParams> extends Se
6869
6869
  }[] | undefined;
6870
6870
  }, {
6871
6871
  type: string;
6872
- text?: string | undefined;
6873
6872
  user?: string | undefined;
6873
+ text?: string | undefined;
6874
6874
  ts?: string | undefined;
6875
6875
  username?: string | undefined;
6876
6876
  attachments?: unknown[] | undefined;
@@ -6930,8 +6930,8 @@ export declare class SlackBubble<T extends SlackParams = SlackParams> extends Se
6930
6930
  } | undefined;
6931
6931
  messages?: {
6932
6932
  type: string;
6933
- text?: string | undefined;
6934
6933
  user?: string | undefined;
6934
+ text?: string | undefined;
6935
6935
  ts?: string | undefined;
6936
6936
  username?: string | undefined;
6937
6937
  attachments?: unknown[] | undefined;
@@ -6982,8 +6982,8 @@ export declare class SlackBubble<T extends SlackParams = SlackParams> extends Se
6982
6982
  } | undefined;
6983
6983
  messages?: {
6984
6984
  type: string;
6985
- text?: string | undefined;
6986
6985
  user?: string | undefined;
6986
+ text?: string | undefined;
6987
6987
  ts?: string | undefined;
6988
6988
  username?: string | undefined;
6989
6989
  attachments?: unknown[] | undefined;
@@ -7118,8 +7118,8 @@ export declare class SlackBubble<T extends SlackParams = SlackParams> extends Se
7118
7118
  }>, "many">>;
7119
7119
  }, "strip", z.ZodTypeAny, {
7120
7120
  type: string;
7121
- text?: string | undefined;
7122
7121
  user?: string | undefined;
7122
+ text?: string | undefined;
7123
7123
  ts?: string | undefined;
7124
7124
  username?: string | undefined;
7125
7125
  attachments?: unknown[] | undefined;
@@ -7160,8 +7160,8 @@ export declare class SlackBubble<T extends SlackParams = SlackParams> extends Se
7160
7160
  }[] | undefined;
7161
7161
  }, {
7162
7162
  type: string;
7163
- text?: string | undefined;
7164
7163
  user?: string | undefined;
7164
+ text?: string | undefined;
7165
7165
  ts?: string | undefined;
7166
7166
  username?: string | undefined;
7167
7167
  attachments?: unknown[] | undefined;
@@ -7210,8 +7210,8 @@ export declare class SlackBubble<T extends SlackParams = SlackParams> extends Se
7210
7210
  ok: boolean;
7211
7211
  message?: {
7212
7212
  type: string;
7213
- text?: string | undefined;
7214
7213
  user?: string | undefined;
7214
+ text?: string | undefined;
7215
7215
  ts?: string | undefined;
7216
7216
  username?: string | undefined;
7217
7217
  attachments?: unknown[] | undefined;
@@ -7261,8 +7261,8 @@ export declare class SlackBubble<T extends SlackParams = SlackParams> extends Se
7261
7261
  ok: boolean;
7262
7262
  message?: {
7263
7263
  type: string;
7264
- text?: string | undefined;
7265
7264
  user?: string | undefined;
7265
+ text?: string | undefined;
7266
7266
  ts?: string | undefined;
7267
7267
  username?: string | undefined;
7268
7268
  attachments?: unknown[] | undefined;