@bubblelab/bubble-core 0.1.200 → 0.1.202
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 +189 -168
- 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/agi-inc.d.ts +110 -110
- package/dist/bubbles/service-bubble/agi-inc.d.ts.map +1 -1
- package/dist/bubbles/service-bubble/agi-inc.js +4 -6
- package/dist/bubbles/service-bubble/agi-inc.js.map +1 -1
- package/dist/bubbles/service-bubble/ai-agent.d.ts.map +1 -1
- package/dist/bubbles/service-bubble/ai-agent.js +12 -4
- package/dist/bubbles/service-bubble/ai-agent.js.map +1 -1
- package/dist/bubbles/service-bubble/airtable.d.ts +76 -76
- package/dist/bubbles/service-bubble/airtable.d.ts.map +1 -1
- package/dist/bubbles/service-bubble/airtable.js +8 -13
- package/dist/bubbles/service-bubble/airtable.js.map +1 -1
- package/dist/bubbles/service-bubble/apify/actors/google-maps-scraper.d.ts +8 -8
- package/dist/bubbles/service-bubble/apify/actors/instagram-hashtag-scraper.d.ts +6 -6
- package/dist/bubbles/service-bubble/apify/actors/instagram-scraper.d.ts +20 -20
- package/dist/bubbles/service-bubble/apify/actors/linkedin-posts-search.d.ts +20 -20
- package/dist/bubbles/service-bubble/apify/actors/linkedin-profile-detail.d.ts +90 -90
- package/dist/bubbles/service-bubble/apify/actors/linkedin-profile-posts.d.ts +30 -30
- package/dist/bubbles/service-bubble/apify/actors/tiktok-scraper.d.ts +22 -22
- package/dist/bubbles/service-bubble/apify/actors/twitter-scraper.d.ts +35 -35
- package/dist/bubbles/service-bubble/apify/actors/youtube-scraper.d.ts +14 -14
- package/dist/bubbles/service-bubble/apify/apify-scraper.schema.d.ts +223 -223
- package/dist/bubbles/service-bubble/apify/apify.d.ts +4 -4
- package/dist/bubbles/service-bubble/ashby/ashby.d.ts +68 -68
- package/dist/bubbles/service-bubble/ashby/ashby.d.ts.map +1 -1
- package/dist/bubbles/service-bubble/ashby/ashby.js +8 -10
- package/dist/bubbles/service-bubble/ashby/ashby.js.map +1 -1
- package/dist/bubbles/service-bubble/ashby/ashby.schema.d.ts +44 -44
- package/dist/bubbles/service-bubble/attio/attio.d.ts +42 -42
- package/dist/bubbles/service-bubble/attio/attio.schema.d.ts +76 -76
- package/dist/bubbles/service-bubble/browserbase/browserbase.d.ts +37 -37
- package/dist/bubbles/service-bubble/browserbase/browserbase.schema.d.ts +53 -53
- package/dist/bubbles/service-bubble/confluence/confluence.d.ts +33 -33
- package/dist/bubbles/service-bubble/confluence/confluence.schema.d.ts +44 -44
- package/dist/bubbles/service-bubble/crustdata/crustdata.d.ts +61 -61
- package/dist/bubbles/service-bubble/crustdata/crustdata.d.ts.map +1 -1
- package/dist/bubbles/service-bubble/crustdata/crustdata.js +16 -17
- package/dist/bubbles/service-bubble/crustdata/crustdata.js.map +1 -1
- package/dist/bubbles/service-bubble/crustdata/crustdata.schema.d.ts +80 -80
- package/dist/bubbles/service-bubble/eleven-labs.d.ts +36 -36
- package/dist/bubbles/service-bubble/eleven-labs.d.ts.map +1 -1
- package/dist/bubbles/service-bubble/eleven-labs.js +12 -14
- package/dist/bubbles/service-bubble/eleven-labs.js.map +1 -1
- package/dist/bubbles/service-bubble/firecrawl.d.ts +824 -824
- package/dist/bubbles/service-bubble/firecrawl.d.ts.map +1 -1
- package/dist/bubbles/service-bubble/firecrawl.js +3 -12
- package/dist/bubbles/service-bubble/firecrawl.js.map +1 -1
- package/dist/bubbles/service-bubble/followupboss.d.ts +428 -428
- package/dist/bubbles/service-bubble/followupboss.d.ts.map +1 -1
- package/dist/bubbles/service-bubble/followupboss.js +12 -13
- package/dist/bubbles/service-bubble/followupboss.js.map +1 -1
- package/dist/bubbles/service-bubble/fullenrich/fullenrich.d.ts +300 -300
- package/dist/bubbles/service-bubble/fullenrich/fullenrich.d.ts.map +1 -1
- package/dist/bubbles/service-bubble/fullenrich/fullenrich.js +11 -12
- package/dist/bubbles/service-bubble/fullenrich/fullenrich.js.map +1 -1
- package/dist/bubbles/service-bubble/fullenrich/fullenrich.schema.d.ts +268 -268
- package/dist/bubbles/service-bubble/github.d.ts +204 -204
- package/dist/bubbles/service-bubble/gmail.d.ts +158 -158
- package/dist/bubbles/service-bubble/google-calendar.d.ts +138 -138
- package/dist/bubbles/service-bubble/google-calendar.d.ts.map +1 -1
- package/dist/bubbles/service-bubble/google-calendar.js +10 -11
- package/dist/bubbles/service-bubble/google-calendar.js.map +1 -1
- package/dist/bubbles/service-bubble/google-drive.d.ts +110 -104
- package/dist/bubbles/service-bubble/google-drive.d.ts.map +1 -1
- package/dist/bubbles/service-bubble/google-drive.js +8 -1
- package/dist/bubbles/service-bubble/google-drive.js.map +1 -1
- package/dist/bubbles/service-bubble/google-sheets/google-sheets.d.ts +52 -52
- package/dist/bubbles/service-bubble/google-sheets/google-sheets.schema.d.ts +78 -78
- package/dist/bubbles/service-bubble/hello-world.d.ts +4 -4
- package/dist/bubbles/service-bubble/http.d.ts +12 -12
- package/dist/bubbles/service-bubble/hubspot/hubspot.d.ts +39 -39
- package/dist/bubbles/service-bubble/hubspot/hubspot.schema.d.ts +20 -20
- package/dist/bubbles/service-bubble/insforge-db.d.ts +8 -8
- package/dist/bubbles/service-bubble/insforge-db.d.ts.map +1 -1
- package/dist/bubbles/service-bubble/insforge-db.js +24 -26
- package/dist/bubbles/service-bubble/insforge-db.js.map +1 -1
- package/dist/bubbles/service-bubble/jira/jira.d.ts +61 -61
- package/dist/bubbles/service-bubble/jira/jira.schema.d.ts +70 -70
- package/dist/bubbles/service-bubble/linear/linear.d.ts +41 -41
- package/dist/bubbles/service-bubble/linear/linear.schema.d.ts +59 -59
- package/dist/bubbles/service-bubble/notion/notion.d.ts +1637 -1637
- package/dist/bubbles/service-bubble/notion/property-schemas.d.ts +8 -8
- package/dist/bubbles/service-bubble/postgresql.d.ts +8 -8
- package/dist/bubbles/service-bubble/posthog/posthog.d.ts +31 -31
- package/dist/bubbles/service-bubble/posthog/posthog.schema.d.ts +56 -56
- package/dist/bubbles/service-bubble/resend.d.ts +28 -28
- package/dist/bubbles/service-bubble/resend.d.ts.map +1 -1
- package/dist/bubbles/service-bubble/resend.js +8 -13
- package/dist/bubbles/service-bubble/resend.js.map +1 -1
- package/dist/bubbles/service-bubble/s3/index.d.ts +4 -0
- package/dist/bubbles/service-bubble/s3/index.d.ts.map +1 -0
- package/dist/bubbles/service-bubble/s3/index.js +4 -0
- package/dist/bubbles/service-bubble/s3/index.js.map +1 -0
- package/dist/bubbles/service-bubble/s3/s3.d.ts +301 -0
- package/dist/bubbles/service-bubble/s3/s3.d.ts.map +1 -0
- package/dist/bubbles/service-bubble/s3/s3.js +320 -0
- package/dist/bubbles/service-bubble/s3/s3.js.map +1 -0
- package/dist/bubbles/service-bubble/s3/s3.schema.d.ts +262 -0
- package/dist/bubbles/service-bubble/s3/s3.schema.d.ts.map +1 -0
- package/dist/bubbles/service-bubble/s3/s3.schema.js +212 -0
- package/dist/bubbles/service-bubble/s3/s3.schema.js.map +1 -0
- package/dist/bubbles/service-bubble/s3/s3.utils.d.ts +17 -0
- package/dist/bubbles/service-bubble/s3/s3.utils.d.ts.map +1 -0
- package/dist/bubbles/service-bubble/s3/s3.utils.js +46 -0
- package/dist/bubbles/service-bubble/s3/s3.utils.js.map +1 -0
- package/dist/bubbles/service-bubble/sendsafely/sendsafely.d.ts +12 -12
- package/dist/bubbles/service-bubble/sendsafely/sendsafely.schema.d.ts +14 -14
- package/dist/bubbles/service-bubble/slack/slack.d.ts +609 -609
- package/dist/bubbles/service-bubble/storage.d.ts +40 -40
- package/dist/bubbles/service-bubble/stripe/stripe.d.ts +186 -186
- package/dist/bubbles/service-bubble/stripe/stripe.d.ts.map +1 -1
- package/dist/bubbles/service-bubble/stripe/stripe.js +5 -7
- package/dist/bubbles/service-bubble/stripe/stripe.js.map +1 -1
- package/dist/bubbles/service-bubble/stripe/stripe.schema.d.ts +143 -143
- package/dist/bubbles/service-bubble/telegram.d.ts +1832 -1832
- package/dist/bubbles/service-bubble/telegram.d.ts.map +1 -1
- package/dist/bubbles/service-bubble/telegram.js +3 -3
- package/dist/bubbles/service-bubble/telegram.js.map +1 -1
- package/dist/bubbles/tool-bubble/amazon-shopping-tool/amazon-shopping-tool.d.ts +23 -23
- package/dist/bubbles/tool-bubble/amazon-shopping-tool/amazon-shopping-tool.schema.d.ts +39 -39
- package/dist/bubbles/tool-bubble/browser-tools/linkedin-accept-invitations/schema.d.ts +5 -5
- package/dist/bubbles/tool-bubble/browser-tools/linkedin-accept-invitations/tool.d.ts +2 -2
- package/dist/bubbles/tool-bubble/browser-tools/linkedin-connection/schema.d.ts +4 -4
- package/dist/bubbles/tool-bubble/browser-tools/linkedin-connection/tool.d.ts +6 -6
- package/dist/bubbles/tool-bubble/browser-tools/linkedin-received-invitations/schema.d.ts +4 -4
- package/dist/bubbles/tool-bubble/browser-tools/linkedin-received-invitations/tool.d.ts +2 -2
- package/dist/bubbles/tool-bubble/browser-tools/linkedin-sent-invitations/schema.d.ts +4 -4
- package/dist/bubbles/tool-bubble/browser-tools/linkedin-sent-invitations/tool.d.ts +2 -2
- package/dist/bubbles/tool-bubble/bubbleflow-validation-tool.d.ts +16 -16
- package/dist/bubbles/tool-bubble/chart-js-tool.d.ts +22 -22
- package/dist/bubbles/tool-bubble/code-edit-tool.d.ts.map +1 -1
- package/dist/bubbles/tool-bubble/code-edit-tool.js +3 -1
- package/dist/bubbles/tool-bubble/code-edit-tool.js.map +1 -1
- package/dist/bubbles/tool-bubble/company-enrichment-tool.d.ts +84 -84
- package/dist/bubbles/tool-bubble/google-maps-tool.d.ts +16 -16
- package/dist/bubbles/tool-bubble/instagram-tool.d.ts +22 -22
- package/dist/bubbles/tool-bubble/linkedin-tool.d.ts +622 -622
- package/dist/bubbles/tool-bubble/list-capabilities-tool.d.ts +8 -8
- package/dist/bubbles/tool-bubble/people-search-tool.d.ts +124 -124
- package/dist/bubbles/tool-bubble/reddit-scrape-tool.d.ts +26 -26
- package/dist/bubbles/tool-bubble/sql-query-tool.d.ts +4 -4
- package/dist/bubbles/tool-bubble/tiktok-tool.d.ts +36 -36
- package/dist/bubbles/tool-bubble/twitter-tool.d.ts +82 -82
- package/dist/bubbles/tool-bubble/web-crawl-tool.d.ts +14 -14
- package/dist/bubbles/tool-bubble/web-search-tool.d.ts +12 -12
- package/dist/bubbles/tool-bubble/yc-scraper-tool.d.ts +24 -24
- package/dist/bubbles/tool-bubble/youtube-tool.d.ts +18 -18
- package/dist/bubbles/workflow-bubble/generate-document.workflow.d.ts +24 -24
- package/dist/bubbles/workflow-bubble/parse-document.workflow.d.ts +4 -4
- package/dist/bubbles/workflow-bubble/pdf-form-operations.workflow.d.ts +66 -66
- package/dist/bubbles/workflow-bubble/pdf-ocr.workflow.d.ts +8 -8
- package/dist/bubbles/workflow-bubble/slack-data-assistant.workflow.d.ts +28 -28
- package/dist/bubbles/workflow-bubble/slack-formatter-agent.d.ts +52 -52
- package/dist/bubbles/workflow-bubble/slack-notifier.workflow.d.ts +4 -4
- package/dist/bubbles.json +489 -3
- package/dist/index.d.ts +1 -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,212 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { CredentialType } from '@bubblelab/shared-schemas';
|
|
3
|
+
// Base credentials schema that all operations share
|
|
4
|
+
const BaseCredentialsSchema = z
|
|
5
|
+
.record(z.nativeEnum(CredentialType), z.string())
|
|
6
|
+
.optional()
|
|
7
|
+
.describe('Object mapping credential types to values (injected at runtime)');
|
|
8
|
+
// Define the parameters schema for S3 operations using discriminated union
|
|
9
|
+
export const S3ParamsSchema = z.discriminatedUnion('operation', [
|
|
10
|
+
// Get upload URL operation
|
|
11
|
+
z.object({
|
|
12
|
+
operation: z
|
|
13
|
+
.literal('getUploadUrl')
|
|
14
|
+
.describe('Generate presigned upload URL'),
|
|
15
|
+
bucketName: z
|
|
16
|
+
.string()
|
|
17
|
+
.min(1, 'Bucket name is required')
|
|
18
|
+
.describe('Name of the S3 bucket'),
|
|
19
|
+
fileName: z
|
|
20
|
+
.string()
|
|
21
|
+
.min(1, 'File name is required')
|
|
22
|
+
.describe('Original filename for the upload'),
|
|
23
|
+
region: z
|
|
24
|
+
.string()
|
|
25
|
+
.optional()
|
|
26
|
+
.describe('AWS region override (defaults from credential or us-east-1)'),
|
|
27
|
+
expirationMinutes: z
|
|
28
|
+
.number()
|
|
29
|
+
.optional()
|
|
30
|
+
.default(60)
|
|
31
|
+
.describe('URL expiration time in minutes'),
|
|
32
|
+
contentType: z.string().optional().describe('Content type for uploads'),
|
|
33
|
+
userId: z.string().optional().describe('User ID for secure file isolation'),
|
|
34
|
+
credentials: BaseCredentialsSchema,
|
|
35
|
+
}),
|
|
36
|
+
// Get file operation
|
|
37
|
+
z.object({
|
|
38
|
+
operation: z.literal('getFile').describe('Generate presigned download URL'),
|
|
39
|
+
bucketName: z
|
|
40
|
+
.string()
|
|
41
|
+
.min(1, 'Bucket name is required')
|
|
42
|
+
.describe('Name of the S3 bucket'),
|
|
43
|
+
fileName: z
|
|
44
|
+
.string()
|
|
45
|
+
.min(1, 'File name is required')
|
|
46
|
+
.describe('Name of the file to retrieve'),
|
|
47
|
+
region: z
|
|
48
|
+
.string()
|
|
49
|
+
.optional()
|
|
50
|
+
.describe('AWS region override (defaults from credential or us-east-1)'),
|
|
51
|
+
expirationMinutes: z
|
|
52
|
+
.number()
|
|
53
|
+
.optional()
|
|
54
|
+
.default(60)
|
|
55
|
+
.describe('URL expiration time in minutes'),
|
|
56
|
+
userId: z.string().optional().describe('User ID for secure file isolation'),
|
|
57
|
+
credentials: BaseCredentialsSchema,
|
|
58
|
+
}),
|
|
59
|
+
// Delete file operation
|
|
60
|
+
z.object({
|
|
61
|
+
operation: z.literal('deleteFile').describe('Delete file from bucket'),
|
|
62
|
+
bucketName: z
|
|
63
|
+
.string()
|
|
64
|
+
.min(1, 'Bucket name is required')
|
|
65
|
+
.describe('Name of the S3 bucket'),
|
|
66
|
+
fileName: z
|
|
67
|
+
.string()
|
|
68
|
+
.min(1, 'File name is required')
|
|
69
|
+
.describe('Name of the file to delete'),
|
|
70
|
+
region: z
|
|
71
|
+
.string()
|
|
72
|
+
.optional()
|
|
73
|
+
.describe('AWS region override (defaults from credential or us-east-1)'),
|
|
74
|
+
credentials: BaseCredentialsSchema,
|
|
75
|
+
}),
|
|
76
|
+
// Update file operation
|
|
77
|
+
z.object({
|
|
78
|
+
operation: z.literal('updateFile').describe('Update/replace file content'),
|
|
79
|
+
bucketName: z
|
|
80
|
+
.string()
|
|
81
|
+
.min(1, 'Bucket name is required')
|
|
82
|
+
.default('bubble-lab-bucket'),
|
|
83
|
+
fileName: z
|
|
84
|
+
.string()
|
|
85
|
+
.min(1, 'File name is required')
|
|
86
|
+
.describe('Name of the file to update'),
|
|
87
|
+
region: z
|
|
88
|
+
.string()
|
|
89
|
+
.optional()
|
|
90
|
+
.describe('AWS region override (defaults from credential or us-east-1)'),
|
|
91
|
+
contentType: z.string().optional().describe('Content type for uploads'),
|
|
92
|
+
fileContent: z
|
|
93
|
+
.string()
|
|
94
|
+
.min(1, 'File content is required for updates')
|
|
95
|
+
.describe('Base64 encoded file content or raw text content'),
|
|
96
|
+
credentials: BaseCredentialsSchema,
|
|
97
|
+
}),
|
|
98
|
+
// Get multiple upload URLs operation
|
|
99
|
+
z.object({
|
|
100
|
+
operation: z
|
|
101
|
+
.literal('getMultipleUploadUrls')
|
|
102
|
+
.describe('Generate multiple presigned upload URLs for PDF + page images'),
|
|
103
|
+
bucketName: z
|
|
104
|
+
.string()
|
|
105
|
+
.min(1, 'Bucket name is required')
|
|
106
|
+
.describe('Name of the S3 bucket'),
|
|
107
|
+
pdfFileName: z
|
|
108
|
+
.string()
|
|
109
|
+
.min(1, 'PDF file name is required')
|
|
110
|
+
.describe('Original filename for the PDF'),
|
|
111
|
+
pageCount: z
|
|
112
|
+
.number()
|
|
113
|
+
.min(1, 'Page count must be at least 1')
|
|
114
|
+
.describe('Number of pages to generate upload URLs for'),
|
|
115
|
+
region: z
|
|
116
|
+
.string()
|
|
117
|
+
.optional()
|
|
118
|
+
.describe('AWS region override (defaults from credential or us-east-1)'),
|
|
119
|
+
expirationMinutes: z
|
|
120
|
+
.number()
|
|
121
|
+
.optional()
|
|
122
|
+
.default(60)
|
|
123
|
+
.describe('URL expiration time in minutes'),
|
|
124
|
+
userId: z.string().optional().describe('User ID for secure file isolation'),
|
|
125
|
+
credentials: BaseCredentialsSchema,
|
|
126
|
+
}),
|
|
127
|
+
]);
|
|
128
|
+
// Define result schemas for different operations using discriminated union
|
|
129
|
+
export const S3ResultSchema = z.discriminatedUnion('operation', [
|
|
130
|
+
// Get upload URL result
|
|
131
|
+
z.object({
|
|
132
|
+
operation: z
|
|
133
|
+
.literal('getUploadUrl')
|
|
134
|
+
.describe('Generate presigned upload URL'),
|
|
135
|
+
success: z.boolean().describe('Whether the operation was successful'),
|
|
136
|
+
uploadUrl: z.string().optional().describe('Presigned upload URL'),
|
|
137
|
+
fileName: z
|
|
138
|
+
.string()
|
|
139
|
+
.optional()
|
|
140
|
+
.describe('Secure filename generated for the upload'),
|
|
141
|
+
contentType: z.string().optional().describe('Content type of the file'),
|
|
142
|
+
error: z.string().describe('Error message if operation failed'),
|
|
143
|
+
}),
|
|
144
|
+
// Get file result
|
|
145
|
+
z.object({
|
|
146
|
+
operation: z.literal('getFile').describe('Generate presigned download URL'),
|
|
147
|
+
success: z.boolean().describe('Whether the operation was successful'),
|
|
148
|
+
downloadUrl: z.string().optional().describe('Presigned download URL'),
|
|
149
|
+
fileUrl: z.string().optional().describe('Direct file access URL'),
|
|
150
|
+
fileName: z.string().optional().describe('Name of the file'),
|
|
151
|
+
fileSize: z.number().optional().describe('File size in bytes'),
|
|
152
|
+
contentType: z.string().optional().describe('Content type of the file'),
|
|
153
|
+
lastModified: z
|
|
154
|
+
.string()
|
|
155
|
+
.optional()
|
|
156
|
+
.describe('Last modified timestamp in ISO format'),
|
|
157
|
+
error: z.string().describe('Error message if operation failed'),
|
|
158
|
+
}),
|
|
159
|
+
// Delete file result
|
|
160
|
+
z.object({
|
|
161
|
+
operation: z.literal('deleteFile').describe('Delete file from bucket'),
|
|
162
|
+
success: z.boolean().describe('Whether the operation was successful'),
|
|
163
|
+
fileName: z.string().optional().describe('Name of the deleted file'),
|
|
164
|
+
deleted: z
|
|
165
|
+
.boolean()
|
|
166
|
+
.optional()
|
|
167
|
+
.describe('Whether the file was successfully deleted'),
|
|
168
|
+
error: z.string().describe('Error message if operation failed'),
|
|
169
|
+
}),
|
|
170
|
+
// Update file result
|
|
171
|
+
z.object({
|
|
172
|
+
operation: z
|
|
173
|
+
.literal('updateFile')
|
|
174
|
+
.describe('Update/replace file content and generate a new secure filename for the file'),
|
|
175
|
+
success: z.boolean().describe('Whether the operation was successful'),
|
|
176
|
+
fileName: z
|
|
177
|
+
.string()
|
|
178
|
+
.optional()
|
|
179
|
+
.describe('Secure filename for the updated file (different from the original filename)'),
|
|
180
|
+
updated: z
|
|
181
|
+
.boolean()
|
|
182
|
+
.optional()
|
|
183
|
+
.describe('Whether the file was successfully updated'),
|
|
184
|
+
contentType: z
|
|
185
|
+
.string()
|
|
186
|
+
.optional()
|
|
187
|
+
.describe('Content type of the updated file'),
|
|
188
|
+
error: z.string().describe('Error message if operation failed'),
|
|
189
|
+
}),
|
|
190
|
+
// Get multiple upload URLs result
|
|
191
|
+
z.object({
|
|
192
|
+
operation: z
|
|
193
|
+
.literal('getMultipleUploadUrls')
|
|
194
|
+
.describe('Generate multiple presigned upload URLs for PDF + page images'),
|
|
195
|
+
success: z.boolean().describe('Whether the operation was successful'),
|
|
196
|
+
pdfUploadUrl: z
|
|
197
|
+
.string()
|
|
198
|
+
.optional()
|
|
199
|
+
.describe('Presigned upload URL for PDF'),
|
|
200
|
+
pdfFileName: z.string().optional().describe('Secure filename for PDF'),
|
|
201
|
+
pageUploadUrls: z
|
|
202
|
+
.array(z.object({
|
|
203
|
+
pageNumber: z.number().describe('Page number (1-indexed)'),
|
|
204
|
+
uploadUrl: z.string().describe('Presigned upload URL for this page'),
|
|
205
|
+
fileName: z.string().describe('Secure filename for this page image'),
|
|
206
|
+
}))
|
|
207
|
+
.optional()
|
|
208
|
+
.describe('Array of upload URLs for page images'),
|
|
209
|
+
error: z.string().describe('Error message if operation failed'),
|
|
210
|
+
}),
|
|
211
|
+
]);
|
|
212
|
+
//# sourceMappingURL=s3.schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"s3.schema.js","sourceRoot":"","sources":["../../../../src/bubbles/service-bubble/s3/s3.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,oDAAoD;AACpD,MAAM,qBAAqB,GAAG,CAAC;KAC5B,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,2EAA2E;AAC3E,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,CAAC,kBAAkB,CAAC,WAAW,EAAE;IAC9D,2BAA2B;IAC3B,CAAC,CAAC,MAAM,CAAC;QACP,SAAS,EAAE,CAAC;aACT,OAAO,CAAC,cAAc,CAAC;aACvB,QAAQ,CAAC,+BAA+B,CAAC;QAC5C,UAAU,EAAE,CAAC;aACV,MAAM,EAAE;aACR,GAAG,CAAC,CAAC,EAAE,yBAAyB,CAAC;aACjC,QAAQ,CAAC,uBAAuB,CAAC;QACpC,QAAQ,EAAE,CAAC;aACR,MAAM,EAAE;aACR,GAAG,CAAC,CAAC,EAAE,uBAAuB,CAAC;aAC/B,QAA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3C,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,yBAAyB,CAAC;QACtE,cAAc,EAAE,CAAC;aACd,KAAK,CACJ,CAAC,CAAC,MAAM,CAAC;YACP,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,yBAAyB,CAAC;YAC1D,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,oCAAoC,CAAC;YACpE,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,qCAAqC,CAAC;SACrE,CAAC,CACH;aACA,QAAQ,EAAE;aACV,QAAQ,CAAC,sCAAsC,CAAC;QACnD,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,mCAAmC,CAAC;KAChE,CAAC;CACH,CAAC,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export interface S3Credentials {
|
|
2
|
+
accessKeyId: string;
|
|
3
|
+
secretAccessKey: string;
|
|
4
|
+
endpoint?: string;
|
|
5
|
+
region?: string;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* Parse a multi-field credential value into typed S3 fields.
|
|
9
|
+
* Uses the shared decodeCredentialPayload() which handles both
|
|
10
|
+
* base64 (injection path) and raw JSON (validator path).
|
|
11
|
+
*/
|
|
12
|
+
export declare function parseS3Credential(value: string): S3Credentials;
|
|
13
|
+
/**
|
|
14
|
+
* Helper method to detect if a string is base64 encoded
|
|
15
|
+
*/
|
|
16
|
+
export declare function isBase64(str: string): boolean;
|
|
17
|
+
//# sourceMappingURL=s3.utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"s3.utils.d.ts","sourceRoot":"","sources":["../../../../src/bubbles/service-bubble/s3/s3.utils.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,aAAa;IAC5B,WAAW,EAAE,MAAM,CAAC;IACpB,eAAe,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,MAAM,GAAG,aAAa,CAa9D;AAED;;GAEG;AACH,wBAAgB,QAAQ,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAuB7C"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { decodeCredentialPayload } from '@bubblelab/shared-schemas';
|
|
2
|
+
/**
|
|
3
|
+
* Parse a multi-field credential value into typed S3 fields.
|
|
4
|
+
* Uses the shared decodeCredentialPayload() which handles both
|
|
5
|
+
* base64 (injection path) and raw JSON (validator path).
|
|
6
|
+
*/
|
|
7
|
+
export function parseS3Credential(value) {
|
|
8
|
+
const parsed = decodeCredentialPayload(value);
|
|
9
|
+
if (!parsed.accessKeyId || !parsed.secretAccessKey) {
|
|
10
|
+
throw new Error('S3 credential is missing required fields: accessKeyId, secretAccessKey');
|
|
11
|
+
}
|
|
12
|
+
return {
|
|
13
|
+
accessKeyId: parsed.accessKeyId,
|
|
14
|
+
secretAccessKey: parsed.secretAccessKey,
|
|
15
|
+
endpoint: parsed.endpoint || undefined,
|
|
16
|
+
region: parsed.region || undefined,
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Helper method to detect if a string is base64 encoded
|
|
21
|
+
*/
|
|
22
|
+
export function isBase64(str) {
|
|
23
|
+
try {
|
|
24
|
+
// Check if it's a data URL (e.g., "data:image/png;base64,...")
|
|
25
|
+
if (str.startsWith('data:') && str.includes('base64,')) {
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
// Check if it's pure base64 (valid base64 characters, proper length)
|
|
29
|
+
const base64Regex = /^[A-Za-z0-9+/]*={0,2}$/;
|
|
30
|
+
if (base64Regex.test(str) && str.length > 0) {
|
|
31
|
+
// Try to decode and re-encode to verify it's valid base64
|
|
32
|
+
try {
|
|
33
|
+
const decoded = Buffer.from(str, 'base64').toString('base64');
|
|
34
|
+
return decoded === str;
|
|
35
|
+
}
|
|
36
|
+
catch {
|
|
37
|
+
return false;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
return false;
|
|
41
|
+
}
|
|
42
|
+
catch {
|
|
43
|
+
return false;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
//# sourceMappingURL=s3.utils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"s3.utils.js","sourceRoot":"","sources":["../../../../src/bubbles/service-bubble/s3/s3.utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AASpE;;;;GAIG;AACH,MAAM,UAAU,iBAAiB,CAAC,KAAa;IAC7C,MAAM,MAAM,GAAG,uBAAuB,CAAyB,KAAK,CAAC,CAAC;IACtE,IAAI,CAAC,MAAM,CAAC,WAAW,IAAI,CAAC,MAAM,CAAC,eAAe,EAAE,CAAC;QACnD,MAAM,IAAI,KAAK,CACb,wEAAwE,CACzE,CAAC;IACJ,CAAC;IACD,OAAO;QACL,WAAW,EAAE,MAAM,CAAC,WAAW;QAC/B,eAAe,EAAE,MAAM,CAAC,eAAe;QACvC,QAAQ,EAAE,MAAM,CAAC,QAAQ,IAAI,SAAS;QACtC,MAAM,EAAE,MAAM,CAAC,MAAM,IAAI,SAAS;KACnC,CAAC;AACJ,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,QAAQ,CAAC,GAAW;IAClC,IAAI,CAAC;QACH,+DAA+D;QAC/D,IAAI,GAAG,CAAC,UAAU,CAAC,OAAO,CAAC,IAAI,GAAG,CAAC,QAAQ,CAAC,SAAS,CAAC,EAAE,CAAC;YACvD,OAAO,IAAI,CAAC;QACd,CAAC;QAED,qEAAqE;QACrE,MAAM,WAAW,GAAG,wBAAwB,CAAC;QAC7C,IAAI,WAAW,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,GAAG,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YAC5C,0DAA0D;YAC1D,IAAI,CAAC;gBACH,MAAM,OAAO,GAAG,MAAM,CAAC,IAAI,CAAC,GAAG,EAAE,QAAQ,CAAC,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;gBAC9D,OAAO,OAAO,KAAK,GAAG,CAAC;YACzB,CAAC;YAAC,MAAM,CAAC;gBACP,OAAO,KAAK,CAAC;YACf,CAAC;QACH,CAAC;QAED,OAAO,KAAK,CAAC;IACf,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,KAAK,CAAC;IACf,CAAC;AACH,CAAC"}
|
|
@@ -61,14 +61,14 @@ export declare class SendSafelyBubble<T extends SendSafelyParamsInput = SendSafe
|
|
|
61
61
|
lifeDays: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
62
62
|
credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodNativeEnum<typeof CredentialType>, import("zod").ZodString>>;
|
|
63
63
|
}, "strip", import("zod").ZodTypeAny, {
|
|
64
|
-
message: string;
|
|
65
64
|
operation: "send_message";
|
|
65
|
+
message: string;
|
|
66
66
|
recipientEmail: string | string[];
|
|
67
67
|
credentials?: Partial<Record<CredentialType, string>> | undefined;
|
|
68
68
|
lifeDays?: number | undefined;
|
|
69
69
|
}, {
|
|
70
|
-
message: string;
|
|
71
70
|
operation: "send_message";
|
|
71
|
+
message: string;
|
|
72
72
|
recipientEmail: string | string[];
|
|
73
73
|
credentials?: Partial<Record<CredentialType, string>> | undefined;
|
|
74
74
|
lifeDays?: number | undefined;
|
|
@@ -92,15 +92,15 @@ export declare class SendSafelyBubble<T extends SendSafelyParamsInput = SendSafe
|
|
|
92
92
|
secureLink: import("zod").ZodOptional<import("zod").ZodString>;
|
|
93
93
|
error: import("zod").ZodString;
|
|
94
94
|
}, "strip", import("zod").ZodTypeAny, {
|
|
95
|
+
operation: "send_file";
|
|
95
96
|
success: boolean;
|
|
96
97
|
error: string;
|
|
97
|
-
operation: "send_file";
|
|
98
98
|
packageId?: string | undefined;
|
|
99
99
|
secureLink?: string | undefined;
|
|
100
100
|
}, {
|
|
101
|
+
operation: "send_file";
|
|
101
102
|
success: boolean;
|
|
102
103
|
error: string;
|
|
103
|
-
operation: "send_file";
|
|
104
104
|
packageId?: string | undefined;
|
|
105
105
|
secureLink?: string | undefined;
|
|
106
106
|
}>, import("zod").ZodObject<{
|
|
@@ -110,15 +110,15 @@ export declare class SendSafelyBubble<T extends SendSafelyParamsInput = SendSafe
|
|
|
110
110
|
secureLink: import("zod").ZodOptional<import("zod").ZodString>;
|
|
111
111
|
error: import("zod").ZodString;
|
|
112
112
|
}, "strip", import("zod").ZodTypeAny, {
|
|
113
|
+
operation: "send_message";
|
|
113
114
|
success: boolean;
|
|
114
115
|
error: string;
|
|
115
|
-
operation: "send_message";
|
|
116
116
|
packageId?: string | undefined;
|
|
117
117
|
secureLink?: string | undefined;
|
|
118
118
|
}, {
|
|
119
|
+
operation: "send_message";
|
|
119
120
|
success: boolean;
|
|
120
121
|
error: string;
|
|
121
|
-
operation: "send_message";
|
|
122
122
|
packageId?: string | undefined;
|
|
123
123
|
secureLink?: string | undefined;
|
|
124
124
|
}>, import("zod").ZodObject<{
|
|
@@ -156,12 +156,12 @@ export declare class SendSafelyBubble<T extends SendSafelyParamsInput = SendSafe
|
|
|
156
156
|
secureLink: import("zod").ZodOptional<import("zod").ZodString>;
|
|
157
157
|
}, "strip", import("zod").ZodTypeAny, {
|
|
158
158
|
packageId: string;
|
|
159
|
+
state?: string | undefined;
|
|
159
160
|
files?: {
|
|
160
161
|
fileName: string;
|
|
161
162
|
fileId: string;
|
|
162
163
|
fileSize?: number | undefined;
|
|
163
164
|
}[] | undefined;
|
|
164
|
-
state?: string | undefined;
|
|
165
165
|
secureLink?: string | undefined;
|
|
166
166
|
packageCode?: string | undefined;
|
|
167
167
|
serverSecret?: string | undefined;
|
|
@@ -172,12 +172,12 @@ export declare class SendSafelyBubble<T extends SendSafelyParamsInput = SendSafe
|
|
|
172
172
|
life?: number | undefined;
|
|
173
173
|
}, {
|
|
174
174
|
packageId: string;
|
|
175
|
+
state?: string | undefined;
|
|
175
176
|
files?: {
|
|
176
177
|
fileName: string;
|
|
177
178
|
fileId: string;
|
|
178
179
|
fileSize?: number | undefined;
|
|
179
180
|
}[] | undefined;
|
|
180
|
-
state?: string | undefined;
|
|
181
181
|
secureLink?: string | undefined;
|
|
182
182
|
packageCode?: string | undefined;
|
|
183
183
|
serverSecret?: string | undefined;
|
|
@@ -189,17 +189,17 @@ export declare class SendSafelyBubble<T extends SendSafelyParamsInput = SendSafe
|
|
|
189
189
|
}>>;
|
|
190
190
|
error: import("zod").ZodString;
|
|
191
191
|
}, "strip", import("zod").ZodTypeAny, {
|
|
192
|
+
operation: "get_package";
|
|
192
193
|
success: boolean;
|
|
193
194
|
error: string;
|
|
194
|
-
operation: "get_package";
|
|
195
195
|
package?: {
|
|
196
196
|
packageId: string;
|
|
197
|
+
state?: string | undefined;
|
|
197
198
|
files?: {
|
|
198
199
|
fileName: string;
|
|
199
200
|
fileId: string;
|
|
200
201
|
fileSize?: number | undefined;
|
|
201
202
|
}[] | undefined;
|
|
202
|
-
state?: string | undefined;
|
|
203
203
|
secureLink?: string | undefined;
|
|
204
204
|
packageCode?: string | undefined;
|
|
205
205
|
serverSecret?: string | undefined;
|
|
@@ -210,17 +210,17 @@ export declare class SendSafelyBubble<T extends SendSafelyParamsInput = SendSafe
|
|
|
210
210
|
life?: number | undefined;
|
|
211
211
|
} | undefined;
|
|
212
212
|
}, {
|
|
213
|
+
operation: "get_package";
|
|
213
214
|
success: boolean;
|
|
214
215
|
error: string;
|
|
215
|
-
operation: "get_package";
|
|
216
216
|
package?: {
|
|
217
217
|
packageId: string;
|
|
218
|
+
state?: string | undefined;
|
|
218
219
|
files?: {
|
|
219
220
|
fileName: string;
|
|
220
221
|
fileId: string;
|
|
221
222
|
fileSize?: number | undefined;
|
|
222
223
|
}[] | undefined;
|
|
223
|
-
state?: string | undefined;
|
|
224
224
|
secureLink?: string | undefined;
|
|
225
225
|
packageCode?: string | undefined;
|
|
226
226
|
serverSecret?: string | undefined;
|
|
@@ -94,14 +94,14 @@ export declare const SendSafelyParamsSchema: z.ZodDiscriminatedUnion<"operation"
|
|
|
94
94
|
lifeDays: z.ZodOptional<z.ZodNumber>;
|
|
95
95
|
credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>;
|
|
96
96
|
}, "strip", z.ZodTypeAny, {
|
|
97
|
-
message: string;
|
|
98
97
|
operation: "send_message";
|
|
98
|
+
message: string;
|
|
99
99
|
recipientEmail: string | string[];
|
|
100
100
|
credentials?: Partial<Record<CredentialType, string>> | undefined;
|
|
101
101
|
lifeDays?: number | undefined;
|
|
102
102
|
}, {
|
|
103
|
-
message: string;
|
|
104
103
|
operation: "send_message";
|
|
104
|
+
message: string;
|
|
105
105
|
recipientEmail: string | string[];
|
|
106
106
|
credentials?: Partial<Record<CredentialType, string>> | undefined;
|
|
107
107
|
lifeDays?: number | undefined;
|
|
@@ -125,15 +125,15 @@ export declare const SendSafelyResultSchema: z.ZodDiscriminatedUnion<"operation"
|
|
|
125
125
|
secureLink: z.ZodOptional<z.ZodString>;
|
|
126
126
|
error: z.ZodString;
|
|
127
127
|
}, "strip", z.ZodTypeAny, {
|
|
128
|
-
success: boolean;
|
|
129
|
-
error: string;
|
|
130
128
|
operation: "send_file";
|
|
129
|
+
error: string;
|
|
130
|
+
success: boolean;
|
|
131
131
|
packageId?: string | undefined;
|
|
132
132
|
secureLink?: string | undefined;
|
|
133
133
|
}, {
|
|
134
|
-
success: boolean;
|
|
135
|
-
error: string;
|
|
136
134
|
operation: "send_file";
|
|
135
|
+
error: string;
|
|
136
|
+
success: boolean;
|
|
137
137
|
packageId?: string | undefined;
|
|
138
138
|
secureLink?: string | undefined;
|
|
139
139
|
}>, z.ZodObject<{
|
|
@@ -143,15 +143,15 @@ export declare const SendSafelyResultSchema: z.ZodDiscriminatedUnion<"operation"
|
|
|
143
143
|
secureLink: z.ZodOptional<z.ZodString>;
|
|
144
144
|
error: z.ZodString;
|
|
145
145
|
}, "strip", z.ZodTypeAny, {
|
|
146
|
-
success: boolean;
|
|
147
|
-
error: string;
|
|
148
146
|
operation: "send_message";
|
|
147
|
+
error: string;
|
|
148
|
+
success: boolean;
|
|
149
149
|
packageId?: string | undefined;
|
|
150
150
|
secureLink?: string | undefined;
|
|
151
151
|
}, {
|
|
152
|
-
success: boolean;
|
|
153
|
-
error: string;
|
|
154
152
|
operation: "send_message";
|
|
153
|
+
error: string;
|
|
154
|
+
success: boolean;
|
|
155
155
|
packageId?: string | undefined;
|
|
156
156
|
secureLink?: string | undefined;
|
|
157
157
|
}>, z.ZodObject<{
|
|
@@ -222,9 +222,9 @@ export declare const SendSafelyResultSchema: z.ZodDiscriminatedUnion<"operation"
|
|
|
222
222
|
}>>;
|
|
223
223
|
error: z.ZodString;
|
|
224
224
|
}, "strip", z.ZodTypeAny, {
|
|
225
|
-
success: boolean;
|
|
226
|
-
error: string;
|
|
227
225
|
operation: "get_package";
|
|
226
|
+
error: string;
|
|
227
|
+
success: boolean;
|
|
228
228
|
package?: {
|
|
229
229
|
packageId: string;
|
|
230
230
|
files?: {
|
|
@@ -243,9 +243,9 @@ export declare const SendSafelyResultSchema: z.ZodDiscriminatedUnion<"operation"
|
|
|
243
243
|
life?: number | undefined;
|
|
244
244
|
} | undefined;
|
|
245
245
|
}, {
|
|
246
|
-
success: boolean;
|
|
247
|
-
error: string;
|
|
248
246
|
operation: "get_package";
|
|
247
|
+
error: string;
|
|
248
|
+
success: boolean;
|
|
249
249
|
package?: {
|
|
250
250
|
packageId: string;
|
|
251
251
|
files?: {
|