@bubblelab/bubble-core 0.1.4 → 0.1.5
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 +28 -28
- package/dist/bubbles/service-bubble/ai-agent.d.ts +24 -24
- package/dist/bubbles/service-bubble/ai-agent.d.ts.map +1 -1
- package/dist/bubbles/service-bubble/ai-agent.js +16 -2
- package/dist/bubbles/service-bubble/ai-agent.js.map +1 -1
- package/dist/bubbles/service-bubble/gmail.d.ts +4 -4
- package/dist/bubbles/service-bubble/google-calendar.d.ts +6 -6
- package/dist/bubbles/service-bubble/google-drive.d.ts +4 -4
- package/dist/bubbles/service-bubble/google-sheets.d.ts +20 -20
- package/dist/bubbles/service-bubble/http.d.ts +2 -2
- package/dist/bubbles/service-bubble/postgresql.d.ts +4 -4
- package/dist/bubbles/service-bubble/slack.d.ts +58 -58
- package/dist/bubbles/tool-bubble/bubbleflow-validation-tool.d.ts +4 -4
- package/dist/bubbles/tool-bubble/get-bubble-details-tool.d.ts +4 -4
- package/dist/bubbles/tool-bubble/list-bubbles-tool.d.ts +4 -4
- package/dist/bubbles/tool-bubble/reddit-scrape-tool.d.ts +10 -10
- package/dist/bubbles/tool-bubble/research-agent-tool.d.ts +14 -14
- package/dist/bubbles/tool-bubble/web-crawl-tool.d.ts +8 -8
- package/dist/bubbles/tool-bubble/web-scrape-tool.d.ts +10 -10
- package/dist/bubbles/workflow-bubble/bubbleflow-generator.workflow.d.ts +8 -8
- package/dist/bubbles/workflow-bubble/generate-document.workflow.d.ts +66 -66
- package/dist/bubbles/workflow-bubble/parse-document.workflow.d.ts +50 -50
- package/dist/bubbles/workflow-bubble/pdf-form-operations.workflow.d.ts +92 -92
- package/dist/bubbles/workflow-bubble/pdf-ocr.workflow.d.ts +36 -36
- package/dist/bubbles/workflow-bubble/slack-data-assistant.workflow.d.ts +46 -46
- package/dist/bubbles/workflow-bubble/slack-formatter-agent.d.ts +60 -60
- package/dist/bubbles/workflow-bubble/slack-notifier.workflow.d.ts +14 -14
- package/dist/logging/BubbleLogger.d.ts.map +1 -1
- package/dist/logging/BubbleLogger.js +16 -4
- package/dist/logging/BubbleLogger.js.map +1 -1
- package/dist/types/ai-models.d.ts +1 -1
- package/dist/types/ai-models.d.ts.map +1 -1
- package/dist/types/ai-models.js +2 -0
- package/dist/types/ai-models.js.map +1 -1
- package/dist/types/base-bubble-class.d.ts.map +1 -1
- package/dist/types/base-bubble-class.js +7 -1
- package/dist/types/base-bubble-class.js.map +1 -1
- package/package.json +4 -3
- package/dist/bubbles/tool-bubble/virtual-file-editor-example.d.ts +0 -8
- package/dist/bubbles/tool-bubble/virtual-file-editor-example.d.ts.map +0 -1
- package/dist/bubbles/tool-bubble/virtual-file-editor-example.js +0 -65
- package/dist/bubbles/tool-bubble/virtual-file-editor-example.js.map +0 -1
- package/dist/bubbles/tool-bubble/virtual-file-editor.tool.d.ts +0 -125
- package/dist/bubbles/tool-bubble/virtual-file-editor.tool.d.ts.map +0 -1
- package/dist/bubbles/tool-bubble/virtual-file-editor.tool.js +0 -169
- package/dist/bubbles/tool-bubble/virtual-file-editor.tool.js.map +0 -1
- package/dist/bubbles/workflow-bubble/bubblscript-generateor.workflow.d.ts +0 -97
- package/dist/bubbles/workflow-bubble/bubblscript-generateor.workflow.d.ts.map +0 -1
- package/dist/bubbles/workflow-bubble/bubblscript-generateor.workflow.js +0 -327
- package/dist/bubbles/workflow-bubble/bubblscript-generateor.workflow.js.map +0 -1
- package/dist/bubbles/workflow-bubble/file-editor-agent.workflow.d.ts +0 -157
- package/dist/bubbles/workflow-bubble/file-editor-agent.workflow.d.ts.map +0 -1
- package/dist/bubbles/workflow-bubble/file-editor-agent.workflow.js +0 -310
- package/dist/bubbles/workflow-bubble/file-editor-agent.workflow.js.map +0 -1
- package/dist/bubbles/workflow-bubble/workflow-template.d.ts +0 -144
- package/dist/bubbles/workflow-bubble/workflow-template.d.ts.map +0 -1
- package/dist/bubbles/workflow-bubble/workflow-template.js +0 -124
- package/dist/bubbles/workflow-bubble/workflow-template.js.map +0 -1
- package/dist/types/streaming-events.d.ts +0 -18
- package/dist/types/streaming-events.d.ts.map +0 -1
- package/dist/types/streaming-events.js +0 -5
- package/dist/types/streaming-events.js.map +0 -1
- package/dist/utils/mock-data-generator.d.ts +0 -43
- package/dist/utils/mock-data-generator.d.ts.map +0 -1
- package/dist/utils/mock-data-generator.js +0 -312
- package/dist/utils/mock-data-generator.js.map +0 -1
|
@@ -81,8 +81,8 @@ declare const PDFFormOperationsParamsSchema: z.ZodDiscriminatedUnion<"operation"
|
|
|
81
81
|
credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>;
|
|
82
82
|
}, "strip", z.ZodTypeAny, {
|
|
83
83
|
format: "png" | "jpeg";
|
|
84
|
-
quality: number;
|
|
85
84
|
operation: "convert-to-images";
|
|
85
|
+
quality: number;
|
|
86
86
|
pdfData: string;
|
|
87
87
|
dpi: number;
|
|
88
88
|
credentials?: Partial<Record<CredentialType, string>> | undefined;
|
|
@@ -92,8 +92,8 @@ declare const PDFFormOperationsParamsSchema: z.ZodDiscriminatedUnion<"operation"
|
|
|
92
92
|
pdfData: string;
|
|
93
93
|
format?: "png" | "jpeg" | undefined;
|
|
94
94
|
credentials?: Partial<Record<CredentialType, string>> | undefined;
|
|
95
|
-
quality?: number | undefined;
|
|
96
95
|
pages?: number[] | undefined;
|
|
96
|
+
quality?: number | undefined;
|
|
97
97
|
dpi?: number | undefined;
|
|
98
98
|
}>, z.ZodObject<{
|
|
99
99
|
operation: z.ZodLiteral<"convert-to-markdown">;
|
|
@@ -140,8 +140,6 @@ declare const PDFFormOperationsResultSchema: z.ZodDiscriminatedUnion<"operation"
|
|
|
140
140
|
name: string;
|
|
141
141
|
id: number;
|
|
142
142
|
label: string;
|
|
143
|
-
width: number;
|
|
144
|
-
height: number;
|
|
145
143
|
page: number;
|
|
146
144
|
field_type: string;
|
|
147
145
|
current_value: string;
|
|
@@ -149,6 +147,8 @@ declare const PDFFormOperationsResultSchema: z.ZodDiscriminatedUnion<"operation"
|
|
|
149
147
|
rect: [number, number, number, number];
|
|
150
148
|
x: number;
|
|
151
149
|
y: number;
|
|
150
|
+
width: number;
|
|
151
|
+
height: number;
|
|
152
152
|
field_flags: number;
|
|
153
153
|
potential_labels: string[];
|
|
154
154
|
}, {
|
|
@@ -156,8 +156,6 @@ declare const PDFFormOperationsResultSchema: z.ZodDiscriminatedUnion<"operation"
|
|
|
156
156
|
name: string;
|
|
157
157
|
id: number;
|
|
158
158
|
label: string;
|
|
159
|
-
width: number;
|
|
160
|
-
height: number;
|
|
161
159
|
page: number;
|
|
162
160
|
field_type: string;
|
|
163
161
|
current_value: string;
|
|
@@ -165,6 +163,8 @@ declare const PDFFormOperationsResultSchema: z.ZodDiscriminatedUnion<"operation"
|
|
|
165
163
|
rect: [number, number, number, number];
|
|
166
164
|
x: number;
|
|
167
165
|
y: number;
|
|
166
|
+
width: number;
|
|
167
|
+
height: number;
|
|
168
168
|
field_flags: number;
|
|
169
169
|
potential_labels: string[];
|
|
170
170
|
}>, "many">;
|
|
@@ -172,15 +172,14 @@ declare const PDFFormOperationsResultSchema: z.ZodDiscriminatedUnion<"operation"
|
|
|
172
172
|
success: z.ZodBoolean;
|
|
173
173
|
error: z.ZodString;
|
|
174
174
|
}, "strip", z.ZodTypeAny, {
|
|
175
|
-
success: boolean;
|
|
176
175
|
error: string;
|
|
176
|
+
success: boolean;
|
|
177
|
+
operation: "discover";
|
|
177
178
|
fields: {
|
|
178
179
|
type: string;
|
|
179
180
|
name: string;
|
|
180
181
|
id: number;
|
|
181
182
|
label: string;
|
|
182
|
-
width: number;
|
|
183
|
-
height: number;
|
|
184
183
|
page: number;
|
|
185
184
|
field_type: string;
|
|
186
185
|
current_value: string;
|
|
@@ -188,21 +187,21 @@ declare const PDFFormOperationsResultSchema: z.ZodDiscriminatedUnion<"operation"
|
|
|
188
187
|
rect: [number, number, number, number];
|
|
189
188
|
x: number;
|
|
190
189
|
y: number;
|
|
190
|
+
width: number;
|
|
191
|
+
height: number;
|
|
191
192
|
field_flags: number;
|
|
192
193
|
potential_labels: string[];
|
|
193
194
|
}[];
|
|
194
|
-
operation: "discover";
|
|
195
195
|
totalFields: number;
|
|
196
196
|
}, {
|
|
197
|
-
success: boolean;
|
|
198
197
|
error: string;
|
|
198
|
+
success: boolean;
|
|
199
|
+
operation: "discover";
|
|
199
200
|
fields: {
|
|
200
201
|
type: string;
|
|
201
202
|
name: string;
|
|
202
203
|
id: number;
|
|
203
204
|
label: string;
|
|
204
|
-
width: number;
|
|
205
|
-
height: number;
|
|
206
205
|
page: number;
|
|
207
206
|
field_type: string;
|
|
208
207
|
current_value: string;
|
|
@@ -210,10 +209,11 @@ declare const PDFFormOperationsResultSchema: z.ZodDiscriminatedUnion<"operation"
|
|
|
210
209
|
rect: [number, number, number, number];
|
|
211
210
|
x: number;
|
|
212
211
|
y: number;
|
|
212
|
+
width: number;
|
|
213
|
+
height: number;
|
|
213
214
|
field_flags: number;
|
|
214
215
|
potential_labels: string[];
|
|
215
216
|
}[];
|
|
216
|
-
operation: "discover";
|
|
217
217
|
totalFields: number;
|
|
218
218
|
}>, z.ZodObject<{
|
|
219
219
|
operation: z.ZodLiteral<"fill">;
|
|
@@ -224,36 +224,36 @@ declare const PDFFormOperationsResultSchema: z.ZodDiscriminatedUnion<"operation"
|
|
|
224
224
|
type: z.ZodString;
|
|
225
225
|
page: z.ZodNumber;
|
|
226
226
|
}, "strip", z.ZodTypeAny, {
|
|
227
|
-
value: string;
|
|
228
227
|
type: string;
|
|
228
|
+
value: string;
|
|
229
229
|
page: number;
|
|
230
230
|
}, {
|
|
231
|
-
value: string;
|
|
232
231
|
type: string;
|
|
232
|
+
value: string;
|
|
233
233
|
page: number;
|
|
234
234
|
}>>;
|
|
235
235
|
success: z.ZodBoolean;
|
|
236
236
|
error: z.ZodString;
|
|
237
237
|
}, "strip", z.ZodTypeAny, {
|
|
238
|
-
success: boolean;
|
|
239
238
|
error: string;
|
|
239
|
+
success: boolean;
|
|
240
240
|
operation: "fill";
|
|
241
241
|
filledPdfData: string;
|
|
242
242
|
filledFields: number;
|
|
243
243
|
verification: Record<string, {
|
|
244
|
-
value: string;
|
|
245
244
|
type: string;
|
|
245
|
+
value: string;
|
|
246
246
|
page: number;
|
|
247
247
|
}>;
|
|
248
248
|
}, {
|
|
249
|
-
success: boolean;
|
|
250
249
|
error: string;
|
|
250
|
+
success: boolean;
|
|
251
251
|
operation: "fill";
|
|
252
252
|
filledPdfData: string;
|
|
253
253
|
filledFields: number;
|
|
254
254
|
verification: Record<string, {
|
|
255
|
-
value: string;
|
|
256
255
|
type: string;
|
|
256
|
+
value: string;
|
|
257
257
|
page: number;
|
|
258
258
|
}>;
|
|
259
259
|
}>, z.ZodObject<{
|
|
@@ -278,8 +278,8 @@ declare const PDFFormOperationsResultSchema: z.ZodDiscriminatedUnion<"operation"
|
|
|
278
278
|
success: z.ZodBoolean;
|
|
279
279
|
error: z.ZodString;
|
|
280
280
|
}, "strip", z.ZodTypeAny, {
|
|
281
|
-
success: boolean;
|
|
282
281
|
error: string;
|
|
282
|
+
success: boolean;
|
|
283
283
|
operation: "analyze-checkboxes";
|
|
284
284
|
checkboxes: Record<string, {
|
|
285
285
|
page: number;
|
|
@@ -289,8 +289,8 @@ declare const PDFFormOperationsResultSchema: z.ZodDiscriminatedUnion<"operation"
|
|
|
289
289
|
}>;
|
|
290
290
|
totalCheckboxes: number;
|
|
291
291
|
}, {
|
|
292
|
-
success: boolean;
|
|
293
292
|
error: string;
|
|
293
|
+
success: boolean;
|
|
294
294
|
operation: "analyze-checkboxes";
|
|
295
295
|
checkboxes: Record<string, {
|
|
296
296
|
page: number;
|
|
@@ -306,12 +306,12 @@ declare const PDFFormOperationsResultSchema: z.ZodDiscriminatedUnion<"operation"
|
|
|
306
306
|
type: z.ZodString;
|
|
307
307
|
page: z.ZodNumber;
|
|
308
308
|
}, "strip", z.ZodTypeAny, {
|
|
309
|
-
value: string;
|
|
310
309
|
type: string;
|
|
310
|
+
value: string;
|
|
311
311
|
page: number;
|
|
312
312
|
}, {
|
|
313
|
-
value: string;
|
|
314
313
|
type: string;
|
|
314
|
+
value: string;
|
|
315
315
|
page: number;
|
|
316
316
|
}>>;
|
|
317
317
|
totalFields: z.ZodNumber;
|
|
@@ -320,26 +320,26 @@ declare const PDFFormOperationsResultSchema: z.ZodDiscriminatedUnion<"operation"
|
|
|
320
320
|
success: z.ZodBoolean;
|
|
321
321
|
error: z.ZodString;
|
|
322
322
|
}, "strip", z.ZodTypeAny, {
|
|
323
|
-
success: boolean;
|
|
324
323
|
error: string;
|
|
324
|
+
success: boolean;
|
|
325
|
+
operation: "validate";
|
|
325
326
|
fields: Record<string, {
|
|
326
|
-
value: string;
|
|
327
327
|
type: string;
|
|
328
|
+
value: string;
|
|
328
329
|
page: number;
|
|
329
330
|
}>;
|
|
330
|
-
operation: "validate";
|
|
331
331
|
totalFields: number;
|
|
332
332
|
filledFields: number;
|
|
333
333
|
emptyFields: number;
|
|
334
334
|
}, {
|
|
335
|
-
success: boolean;
|
|
336
335
|
error: string;
|
|
336
|
+
success: boolean;
|
|
337
|
+
operation: "validate";
|
|
337
338
|
fields: Record<string, {
|
|
338
|
-
value: string;
|
|
339
339
|
type: string;
|
|
340
|
+
value: string;
|
|
340
341
|
page: number;
|
|
341
342
|
}>;
|
|
342
|
-
operation: "validate";
|
|
343
343
|
totalFields: number;
|
|
344
344
|
filledFields: number;
|
|
345
345
|
emptyFields: number;
|
|
@@ -353,15 +353,15 @@ declare const PDFFormOperationsResultSchema: z.ZodDiscriminatedUnion<"operation"
|
|
|
353
353
|
height: z.ZodNumber;
|
|
354
354
|
}, "strip", z.ZodTypeAny, {
|
|
355
355
|
format: string;
|
|
356
|
-
pageNumber: number;
|
|
357
356
|
width: number;
|
|
358
357
|
height: number;
|
|
358
|
+
pageNumber: number;
|
|
359
359
|
imageData: string;
|
|
360
360
|
}, {
|
|
361
361
|
format: string;
|
|
362
|
-
pageNumber: number;
|
|
363
362
|
width: number;
|
|
364
363
|
height: number;
|
|
364
|
+
pageNumber: number;
|
|
365
365
|
imageData: string;
|
|
366
366
|
}>, "many">;
|
|
367
367
|
totalPages: z.ZodNumber;
|
|
@@ -369,28 +369,28 @@ declare const PDFFormOperationsResultSchema: z.ZodDiscriminatedUnion<"operation"
|
|
|
369
369
|
success: z.ZodBoolean;
|
|
370
370
|
error: z.ZodString;
|
|
371
371
|
}, "strip", z.ZodTypeAny, {
|
|
372
|
-
success: boolean;
|
|
373
|
-
error: string;
|
|
374
372
|
images: {
|
|
375
373
|
format: string;
|
|
376
|
-
pageNumber: number;
|
|
377
374
|
width: number;
|
|
378
375
|
height: number;
|
|
376
|
+
pageNumber: number;
|
|
379
377
|
imageData: string;
|
|
380
378
|
}[];
|
|
379
|
+
error: string;
|
|
380
|
+
success: boolean;
|
|
381
381
|
totalPages: number;
|
|
382
382
|
operation: "convert-to-images";
|
|
383
383
|
convertedPages: number;
|
|
384
384
|
}, {
|
|
385
|
-
success: boolean;
|
|
386
|
-
error: string;
|
|
387
385
|
images: {
|
|
388
386
|
format: string;
|
|
389
|
-
pageNumber: number;
|
|
390
387
|
width: number;
|
|
391
388
|
height: number;
|
|
389
|
+
pageNumber: number;
|
|
392
390
|
imageData: string;
|
|
393
391
|
}[];
|
|
392
|
+
error: string;
|
|
393
|
+
success: boolean;
|
|
394
394
|
totalPages: number;
|
|
395
395
|
operation: "convert-to-images";
|
|
396
396
|
convertedPages: number;
|
|
@@ -408,15 +408,15 @@ declare const PDFFormOperationsResultSchema: z.ZodDiscriminatedUnion<"operation"
|
|
|
408
408
|
x: z.ZodNumber;
|
|
409
409
|
y: z.ZodNumber;
|
|
410
410
|
}, "strip", z.ZodTypeAny, {
|
|
411
|
-
value: string;
|
|
412
411
|
type: string;
|
|
412
|
+
value: string;
|
|
413
413
|
name: string;
|
|
414
414
|
id: number;
|
|
415
415
|
x: number;
|
|
416
416
|
y: number;
|
|
417
417
|
}, {
|
|
418
|
-
value: string;
|
|
419
418
|
type: string;
|
|
419
|
+
value: string;
|
|
420
420
|
name: string;
|
|
421
421
|
id: number;
|
|
422
422
|
x: number;
|
|
@@ -426,8 +426,8 @@ declare const PDFFormOperationsResultSchema: z.ZodDiscriminatedUnion<"operation"
|
|
|
426
426
|
markdown: string;
|
|
427
427
|
pageNumber: number;
|
|
428
428
|
formFields?: {
|
|
429
|
-
value: string;
|
|
430
429
|
type: string;
|
|
430
|
+
value: string;
|
|
431
431
|
name: string;
|
|
432
432
|
id: number;
|
|
433
433
|
x: number;
|
|
@@ -437,8 +437,8 @@ declare const PDFFormOperationsResultSchema: z.ZodDiscriminatedUnion<"operation"
|
|
|
437
437
|
markdown: string;
|
|
438
438
|
pageNumber: number;
|
|
439
439
|
formFields?: {
|
|
440
|
-
value: string;
|
|
441
440
|
type: string;
|
|
441
|
+
value: string;
|
|
442
442
|
name: string;
|
|
443
443
|
id: number;
|
|
444
444
|
x: number;
|
|
@@ -450,15 +450,15 @@ declare const PDFFormOperationsResultSchema: z.ZodDiscriminatedUnion<"operation"
|
|
|
450
450
|
success: z.ZodBoolean;
|
|
451
451
|
error: z.ZodString;
|
|
452
452
|
}, "strip", z.ZodTypeAny, {
|
|
453
|
-
success: boolean;
|
|
454
453
|
error: string;
|
|
454
|
+
success: boolean;
|
|
455
455
|
markdown: string;
|
|
456
456
|
pages: {
|
|
457
457
|
markdown: string;
|
|
458
458
|
pageNumber: number;
|
|
459
459
|
formFields?: {
|
|
460
|
-
value: string;
|
|
461
460
|
type: string;
|
|
461
|
+
value: string;
|
|
462
462
|
name: string;
|
|
463
463
|
id: number;
|
|
464
464
|
x: number;
|
|
@@ -469,15 +469,15 @@ declare const PDFFormOperationsResultSchema: z.ZodDiscriminatedUnion<"operation"
|
|
|
469
469
|
operation: "convert-to-markdown";
|
|
470
470
|
convertedPages: number;
|
|
471
471
|
}, {
|
|
472
|
-
success: boolean;
|
|
473
472
|
error: string;
|
|
473
|
+
success: boolean;
|
|
474
474
|
markdown: string;
|
|
475
475
|
pages: {
|
|
476
476
|
markdown: string;
|
|
477
477
|
pageNumber: number;
|
|
478
478
|
formFields?: {
|
|
479
|
-
value: string;
|
|
480
479
|
type: string;
|
|
480
|
+
value: string;
|
|
481
481
|
name: string;
|
|
482
482
|
id: number;
|
|
483
483
|
x: number;
|
|
@@ -563,8 +563,8 @@ export declare class PDFFormOperationsWorkflow<T extends PDFFormOperationsParams
|
|
|
563
563
|
credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>;
|
|
564
564
|
}, "strip", z.ZodTypeAny, {
|
|
565
565
|
format: "png" | "jpeg";
|
|
566
|
-
quality: number;
|
|
567
566
|
operation: "convert-to-images";
|
|
567
|
+
quality: number;
|
|
568
568
|
pdfData: string;
|
|
569
569
|
dpi: number;
|
|
570
570
|
credentials?: Partial<Record<CredentialType, string>> | undefined;
|
|
@@ -574,8 +574,8 @@ export declare class PDFFormOperationsWorkflow<T extends PDFFormOperationsParams
|
|
|
574
574
|
pdfData: string;
|
|
575
575
|
format?: "png" | "jpeg" | undefined;
|
|
576
576
|
credentials?: Partial<Record<CredentialType, string>> | undefined;
|
|
577
|
-
quality?: number | undefined;
|
|
578
577
|
pages?: number[] | undefined;
|
|
578
|
+
quality?: number | undefined;
|
|
579
579
|
dpi?: number | undefined;
|
|
580
580
|
}>, z.ZodObject<{
|
|
581
581
|
operation: z.ZodLiteral<"convert-to-markdown">;
|
|
@@ -619,8 +619,6 @@ export declare class PDFFormOperationsWorkflow<T extends PDFFormOperationsParams
|
|
|
619
619
|
name: string;
|
|
620
620
|
id: number;
|
|
621
621
|
label: string;
|
|
622
|
-
width: number;
|
|
623
|
-
height: number;
|
|
624
622
|
page: number;
|
|
625
623
|
field_type: string;
|
|
626
624
|
current_value: string;
|
|
@@ -628,6 +626,8 @@ export declare class PDFFormOperationsWorkflow<T extends PDFFormOperationsParams
|
|
|
628
626
|
rect: [number, number, number, number];
|
|
629
627
|
x: number;
|
|
630
628
|
y: number;
|
|
629
|
+
width: number;
|
|
630
|
+
height: number;
|
|
631
631
|
field_flags: number;
|
|
632
632
|
potential_labels: string[];
|
|
633
633
|
}, {
|
|
@@ -635,8 +635,6 @@ export declare class PDFFormOperationsWorkflow<T extends PDFFormOperationsParams
|
|
|
635
635
|
name: string;
|
|
636
636
|
id: number;
|
|
637
637
|
label: string;
|
|
638
|
-
width: number;
|
|
639
|
-
height: number;
|
|
640
638
|
page: number;
|
|
641
639
|
field_type: string;
|
|
642
640
|
current_value: string;
|
|
@@ -644,6 +642,8 @@ export declare class PDFFormOperationsWorkflow<T extends PDFFormOperationsParams
|
|
|
644
642
|
rect: [number, number, number, number];
|
|
645
643
|
x: number;
|
|
646
644
|
y: number;
|
|
645
|
+
width: number;
|
|
646
|
+
height: number;
|
|
647
647
|
field_flags: number;
|
|
648
648
|
potential_labels: string[];
|
|
649
649
|
}>, "many">;
|
|
@@ -651,15 +651,14 @@ export declare class PDFFormOperationsWorkflow<T extends PDFFormOperationsParams
|
|
|
651
651
|
success: z.ZodBoolean;
|
|
652
652
|
error: z.ZodString;
|
|
653
653
|
}, "strip", z.ZodTypeAny, {
|
|
654
|
-
success: boolean;
|
|
655
654
|
error: string;
|
|
655
|
+
success: boolean;
|
|
656
|
+
operation: "discover";
|
|
656
657
|
fields: {
|
|
657
658
|
type: string;
|
|
658
659
|
name: string;
|
|
659
660
|
id: number;
|
|
660
661
|
label: string;
|
|
661
|
-
width: number;
|
|
662
|
-
height: number;
|
|
663
662
|
page: number;
|
|
664
663
|
field_type: string;
|
|
665
664
|
current_value: string;
|
|
@@ -667,21 +666,21 @@ export declare class PDFFormOperationsWorkflow<T extends PDFFormOperationsParams
|
|
|
667
666
|
rect: [number, number, number, number];
|
|
668
667
|
x: number;
|
|
669
668
|
y: number;
|
|
669
|
+
width: number;
|
|
670
|
+
height: number;
|
|
670
671
|
field_flags: number;
|
|
671
672
|
potential_labels: string[];
|
|
672
673
|
}[];
|
|
673
|
-
operation: "discover";
|
|
674
674
|
totalFields: number;
|
|
675
675
|
}, {
|
|
676
|
-
success: boolean;
|
|
677
676
|
error: string;
|
|
677
|
+
success: boolean;
|
|
678
|
+
operation: "discover";
|
|
678
679
|
fields: {
|
|
679
680
|
type: string;
|
|
680
681
|
name: string;
|
|
681
682
|
id: number;
|
|
682
683
|
label: string;
|
|
683
|
-
width: number;
|
|
684
|
-
height: number;
|
|
685
684
|
page: number;
|
|
686
685
|
field_type: string;
|
|
687
686
|
current_value: string;
|
|
@@ -689,10 +688,11 @@ export declare class PDFFormOperationsWorkflow<T extends PDFFormOperationsParams
|
|
|
689
688
|
rect: [number, number, number, number];
|
|
690
689
|
x: number;
|
|
691
690
|
y: number;
|
|
691
|
+
width: number;
|
|
692
|
+
height: number;
|
|
692
693
|
field_flags: number;
|
|
693
694
|
potential_labels: string[];
|
|
694
695
|
}[];
|
|
695
|
-
operation: "discover";
|
|
696
696
|
totalFields: number;
|
|
697
697
|
}>, z.ZodObject<{
|
|
698
698
|
operation: z.ZodLiteral<"fill">;
|
|
@@ -703,36 +703,36 @@ export declare class PDFFormOperationsWorkflow<T extends PDFFormOperationsParams
|
|
|
703
703
|
type: z.ZodString;
|
|
704
704
|
page: z.ZodNumber;
|
|
705
705
|
}, "strip", z.ZodTypeAny, {
|
|
706
|
-
value: string;
|
|
707
706
|
type: string;
|
|
707
|
+
value: string;
|
|
708
708
|
page: number;
|
|
709
709
|
}, {
|
|
710
|
-
value: string;
|
|
711
710
|
type: string;
|
|
711
|
+
value: string;
|
|
712
712
|
page: number;
|
|
713
713
|
}>>;
|
|
714
714
|
success: z.ZodBoolean;
|
|
715
715
|
error: z.ZodString;
|
|
716
716
|
}, "strip", z.ZodTypeAny, {
|
|
717
|
-
success: boolean;
|
|
718
717
|
error: string;
|
|
718
|
+
success: boolean;
|
|
719
719
|
operation: "fill";
|
|
720
720
|
filledPdfData: string;
|
|
721
721
|
filledFields: number;
|
|
722
722
|
verification: Record<string, {
|
|
723
|
-
value: string;
|
|
724
723
|
type: string;
|
|
724
|
+
value: string;
|
|
725
725
|
page: number;
|
|
726
726
|
}>;
|
|
727
727
|
}, {
|
|
728
|
-
success: boolean;
|
|
729
728
|
error: string;
|
|
729
|
+
success: boolean;
|
|
730
730
|
operation: "fill";
|
|
731
731
|
filledPdfData: string;
|
|
732
732
|
filledFields: number;
|
|
733
733
|
verification: Record<string, {
|
|
734
|
-
value: string;
|
|
735
734
|
type: string;
|
|
735
|
+
value: string;
|
|
736
736
|
page: number;
|
|
737
737
|
}>;
|
|
738
738
|
}>, z.ZodObject<{
|
|
@@ -757,8 +757,8 @@ export declare class PDFFormOperationsWorkflow<T extends PDFFormOperationsParams
|
|
|
757
757
|
success: z.ZodBoolean;
|
|
758
758
|
error: z.ZodString;
|
|
759
759
|
}, "strip", z.ZodTypeAny, {
|
|
760
|
-
success: boolean;
|
|
761
760
|
error: string;
|
|
761
|
+
success: boolean;
|
|
762
762
|
operation: "analyze-checkboxes";
|
|
763
763
|
checkboxes: Record<string, {
|
|
764
764
|
page: number;
|
|
@@ -768,8 +768,8 @@ export declare class PDFFormOperationsWorkflow<T extends PDFFormOperationsParams
|
|
|
768
768
|
}>;
|
|
769
769
|
totalCheckboxes: number;
|
|
770
770
|
}, {
|
|
771
|
-
success: boolean;
|
|
772
771
|
error: string;
|
|
772
|
+
success: boolean;
|
|
773
773
|
operation: "analyze-checkboxes";
|
|
774
774
|
checkboxes: Record<string, {
|
|
775
775
|
page: number;
|
|
@@ -785,12 +785,12 @@ export declare class PDFFormOperationsWorkflow<T extends PDFFormOperationsParams
|
|
|
785
785
|
type: z.ZodString;
|
|
786
786
|
page: z.ZodNumber;
|
|
787
787
|
}, "strip", z.ZodTypeAny, {
|
|
788
|
-
value: string;
|
|
789
788
|
type: string;
|
|
789
|
+
value: string;
|
|
790
790
|
page: number;
|
|
791
791
|
}, {
|
|
792
|
-
value: string;
|
|
793
792
|
type: string;
|
|
793
|
+
value: string;
|
|
794
794
|
page: number;
|
|
795
795
|
}>>;
|
|
796
796
|
totalFields: z.ZodNumber;
|
|
@@ -799,26 +799,26 @@ export declare class PDFFormOperationsWorkflow<T extends PDFFormOperationsParams
|
|
|
799
799
|
success: z.ZodBoolean;
|
|
800
800
|
error: z.ZodString;
|
|
801
801
|
}, "strip", z.ZodTypeAny, {
|
|
802
|
-
success: boolean;
|
|
803
802
|
error: string;
|
|
803
|
+
success: boolean;
|
|
804
|
+
operation: "validate";
|
|
804
805
|
fields: Record<string, {
|
|
805
|
-
value: string;
|
|
806
806
|
type: string;
|
|
807
|
+
value: string;
|
|
807
808
|
page: number;
|
|
808
809
|
}>;
|
|
809
|
-
operation: "validate";
|
|
810
810
|
totalFields: number;
|
|
811
811
|
filledFields: number;
|
|
812
812
|
emptyFields: number;
|
|
813
813
|
}, {
|
|
814
|
-
success: boolean;
|
|
815
814
|
error: string;
|
|
815
|
+
success: boolean;
|
|
816
|
+
operation: "validate";
|
|
816
817
|
fields: Record<string, {
|
|
817
|
-
value: string;
|
|
818
818
|
type: string;
|
|
819
|
+
value: string;
|
|
819
820
|
page: number;
|
|
820
821
|
}>;
|
|
821
|
-
operation: "validate";
|
|
822
822
|
totalFields: number;
|
|
823
823
|
filledFields: number;
|
|
824
824
|
emptyFields: number;
|
|
@@ -832,15 +832,15 @@ export declare class PDFFormOperationsWorkflow<T extends PDFFormOperationsParams
|
|
|
832
832
|
height: z.ZodNumber;
|
|
833
833
|
}, "strip", z.ZodTypeAny, {
|
|
834
834
|
format: string;
|
|
835
|
-
pageNumber: number;
|
|
836
835
|
width: number;
|
|
837
836
|
height: number;
|
|
837
|
+
pageNumber: number;
|
|
838
838
|
imageData: string;
|
|
839
839
|
}, {
|
|
840
840
|
format: string;
|
|
841
|
-
pageNumber: number;
|
|
842
841
|
width: number;
|
|
843
842
|
height: number;
|
|
843
|
+
pageNumber: number;
|
|
844
844
|
imageData: string;
|
|
845
845
|
}>, "many">;
|
|
846
846
|
totalPages: z.ZodNumber;
|
|
@@ -848,28 +848,28 @@ export declare class PDFFormOperationsWorkflow<T extends PDFFormOperationsParams
|
|
|
848
848
|
success: z.ZodBoolean;
|
|
849
849
|
error: z.ZodString;
|
|
850
850
|
}, "strip", z.ZodTypeAny, {
|
|
851
|
-
success: boolean;
|
|
852
|
-
error: string;
|
|
853
851
|
images: {
|
|
854
852
|
format: string;
|
|
855
|
-
pageNumber: number;
|
|
856
853
|
width: number;
|
|
857
854
|
height: number;
|
|
855
|
+
pageNumber: number;
|
|
858
856
|
imageData: string;
|
|
859
857
|
}[];
|
|
858
|
+
error: string;
|
|
859
|
+
success: boolean;
|
|
860
860
|
totalPages: number;
|
|
861
861
|
operation: "convert-to-images";
|
|
862
862
|
convertedPages: number;
|
|
863
863
|
}, {
|
|
864
|
-
success: boolean;
|
|
865
|
-
error: string;
|
|
866
864
|
images: {
|
|
867
865
|
format: string;
|
|
868
|
-
pageNumber: number;
|
|
869
866
|
width: number;
|
|
870
867
|
height: number;
|
|
868
|
+
pageNumber: number;
|
|
871
869
|
imageData: string;
|
|
872
870
|
}[];
|
|
871
|
+
error: string;
|
|
872
|
+
success: boolean;
|
|
873
873
|
totalPages: number;
|
|
874
874
|
operation: "convert-to-images";
|
|
875
875
|
convertedPages: number;
|
|
@@ -887,15 +887,15 @@ export declare class PDFFormOperationsWorkflow<T extends PDFFormOperationsParams
|
|
|
887
887
|
x: z.ZodNumber;
|
|
888
888
|
y: z.ZodNumber;
|
|
889
889
|
}, "strip", z.ZodTypeAny, {
|
|
890
|
-
value: string;
|
|
891
890
|
type: string;
|
|
891
|
+
value: string;
|
|
892
892
|
name: string;
|
|
893
893
|
id: number;
|
|
894
894
|
x: number;
|
|
895
895
|
y: number;
|
|
896
896
|
}, {
|
|
897
|
-
value: string;
|
|
898
897
|
type: string;
|
|
898
|
+
value: string;
|
|
899
899
|
name: string;
|
|
900
900
|
id: number;
|
|
901
901
|
x: number;
|
|
@@ -905,8 +905,8 @@ export declare class PDFFormOperationsWorkflow<T extends PDFFormOperationsParams
|
|
|
905
905
|
markdown: string;
|
|
906
906
|
pageNumber: number;
|
|
907
907
|
formFields?: {
|
|
908
|
-
value: string;
|
|
909
908
|
type: string;
|
|
909
|
+
value: string;
|
|
910
910
|
name: string;
|
|
911
911
|
id: number;
|
|
912
912
|
x: number;
|
|
@@ -916,8 +916,8 @@ export declare class PDFFormOperationsWorkflow<T extends PDFFormOperationsParams
|
|
|
916
916
|
markdown: string;
|
|
917
917
|
pageNumber: number;
|
|
918
918
|
formFields?: {
|
|
919
|
-
value: string;
|
|
920
919
|
type: string;
|
|
920
|
+
value: string;
|
|
921
921
|
name: string;
|
|
922
922
|
id: number;
|
|
923
923
|
x: number;
|
|
@@ -929,15 +929,15 @@ export declare class PDFFormOperationsWorkflow<T extends PDFFormOperationsParams
|
|
|
929
929
|
success: z.ZodBoolean;
|
|
930
930
|
error: z.ZodString;
|
|
931
931
|
}, "strip", z.ZodTypeAny, {
|
|
932
|
-
success: boolean;
|
|
933
932
|
error: string;
|
|
933
|
+
success: boolean;
|
|
934
934
|
markdown: string;
|
|
935
935
|
pages: {
|
|
936
936
|
markdown: string;
|
|
937
937
|
pageNumber: number;
|
|
938
938
|
formFields?: {
|
|
939
|
-
value: string;
|
|
940
939
|
type: string;
|
|
940
|
+
value: string;
|
|
941
941
|
name: string;
|
|
942
942
|
id: number;
|
|
943
943
|
x: number;
|
|
@@ -948,15 +948,15 @@ export declare class PDFFormOperationsWorkflow<T extends PDFFormOperationsParams
|
|
|
948
948
|
operation: "convert-to-markdown";
|
|
949
949
|
convertedPages: number;
|
|
950
950
|
}, {
|
|
951
|
-
success: boolean;
|
|
952
951
|
error: string;
|
|
952
|
+
success: boolean;
|
|
953
953
|
markdown: string;
|
|
954
954
|
pages: {
|
|
955
955
|
markdown: string;
|
|
956
956
|
pageNumber: number;
|
|
957
957
|
formFields?: {
|
|
958
|
-
value: string;
|
|
959
958
|
type: string;
|
|
959
|
+
value: string;
|
|
960
960
|
name: string;
|
|
961
961
|
id: number;
|
|
962
962
|
x: number;
|