@uploadista/flow-documents-nodes 0.0.16-beta.2 → 0.0.16

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.
@@ -0,0 +1,1178 @@
1
+ import { a as MergePdfParams, c as extractTextParamsSchema, d as ConvertToMarkdownParams, f as convertToMarkdownParamsSchema, i as ocrParamsSchema, l as DescribeDocumentParams, n as splitPdfParamsSchema, o as mergePdfParamsSchema, r as OcrParams, s as ExtractTextParams, t as SplitPdfParams, u as describeDocumentParamsSchema } from "./index-DN0piYEv.cjs";
2
+ import * as _uploadista_core_flow1 from "@uploadista/core/flow";
3
+ import { DocumentAiPlugin, DocumentPlugin, NodeType, OcrResolution, OcrTaskType } from "@uploadista/core/flow";
4
+ import * as zod_v4_core1 from "zod/v4/core";
5
+ import * as zod1 from "zod";
6
+ import { z } from "zod";
7
+ import { UploadistaError } from "@uploadista/core/errors";
8
+ import { UploadServer } from "@uploadista/core/upload";
9
+ import { Effect } from "effect";
10
+
11
+ //#region src/convert-to-markdown-node.d.ts
12
+ type ConvertToMarkdownNodeParams = {
13
+ credentialId?: string;
14
+ resolution?: "tiny" | "small" | "base" | "gundam" | "large";
15
+ };
16
+ declare function createConvertToMarkdownNode(id: string, params?: ConvertToMarkdownNodeParams): Effect.Effect<_uploadista_core_flow1.FlowNodeData & {
17
+ inputSchema: zod1.ZodType<{
18
+ id: string;
19
+ offset: number;
20
+ storage: {
21
+ id: string;
22
+ type: string;
23
+ path?: string | undefined;
24
+ uploadId?: string | undefined;
25
+ bucket?: string | undefined;
26
+ parts?: {
27
+ partNumber: number;
28
+ etag: string;
29
+ size: number;
30
+ }[] | undefined;
31
+ };
32
+ size?: number | undefined;
33
+ metadata?: Record<string, string | number | boolean> | undefined;
34
+ creationDate?: string | undefined;
35
+ url?: string | undefined;
36
+ sizeIsDeferred?: boolean | undefined;
37
+ checksum?: string | undefined;
38
+ checksumAlgorithm?: string | undefined;
39
+ flow?: {
40
+ flowId: string;
41
+ nodeId: string;
42
+ jobId: string;
43
+ } | undefined;
44
+ }, unknown, zod_v4_core1.$ZodTypeInternals<{
45
+ id: string;
46
+ offset: number;
47
+ storage: {
48
+ id: string;
49
+ type: string;
50
+ path?: string | undefined;
51
+ uploadId?: string | undefined;
52
+ bucket?: string | undefined;
53
+ parts?: {
54
+ partNumber: number;
55
+ etag: string;
56
+ size: number;
57
+ }[] | undefined;
58
+ };
59
+ size?: number | undefined;
60
+ metadata?: Record<string, string | number | boolean> | undefined;
61
+ creationDate?: string | undefined;
62
+ url?: string | undefined;
63
+ sizeIsDeferred?: boolean | undefined;
64
+ checksum?: string | undefined;
65
+ checksumAlgorithm?: string | undefined;
66
+ flow?: {
67
+ flowId: string;
68
+ nodeId: string;
69
+ jobId: string;
70
+ } | undefined;
71
+ }, unknown>>;
72
+ outputSchema: zod1.ZodType<{
73
+ id: string;
74
+ offset: number;
75
+ storage: {
76
+ id: string;
77
+ type: string;
78
+ path?: string | undefined;
79
+ uploadId?: string | undefined;
80
+ bucket?: string | undefined;
81
+ parts?: {
82
+ partNumber: number;
83
+ etag: string;
84
+ size: number;
85
+ }[] | undefined;
86
+ };
87
+ size?: number | undefined;
88
+ metadata?: Record<string, string | number | boolean> | undefined;
89
+ creationDate?: string | undefined;
90
+ url?: string | undefined;
91
+ sizeIsDeferred?: boolean | undefined;
92
+ checksum?: string | undefined;
93
+ checksumAlgorithm?: string | undefined;
94
+ flow?: {
95
+ flowId: string;
96
+ nodeId: string;
97
+ jobId: string;
98
+ } | undefined;
99
+ }, unknown, zod_v4_core1.$ZodTypeInternals<{
100
+ id: string;
101
+ offset: number;
102
+ storage: {
103
+ id: string;
104
+ type: string;
105
+ path?: string | undefined;
106
+ uploadId?: string | undefined;
107
+ bucket?: string | undefined;
108
+ parts?: {
109
+ partNumber: number;
110
+ etag: string;
111
+ size: number;
112
+ }[] | undefined;
113
+ };
114
+ size?: number | undefined;
115
+ metadata?: Record<string, string | number | boolean> | undefined;
116
+ creationDate?: string | undefined;
117
+ url?: string | undefined;
118
+ sizeIsDeferred?: boolean | undefined;
119
+ checksum?: string | undefined;
120
+ checksumAlgorithm?: string | undefined;
121
+ flow?: {
122
+ flowId: string;
123
+ nodeId: string;
124
+ jobId: string;
125
+ } | undefined;
126
+ }, unknown>>;
127
+ run: (args: {
128
+ data: {
129
+ id: string;
130
+ offset: number;
131
+ storage: {
132
+ id: string;
133
+ type: string;
134
+ path?: string | undefined;
135
+ uploadId?: string | undefined;
136
+ bucket?: string | undefined;
137
+ parts?: {
138
+ partNumber: number;
139
+ etag: string;
140
+ size: number;
141
+ }[] | undefined;
142
+ };
143
+ size?: number | undefined;
144
+ metadata?: Record<string, string | number | boolean> | undefined;
145
+ creationDate?: string | undefined;
146
+ url?: string | undefined;
147
+ sizeIsDeferred?: boolean | undefined;
148
+ checksum?: string | undefined;
149
+ checksumAlgorithm?: string | undefined;
150
+ flow?: {
151
+ flowId: string;
152
+ nodeId: string;
153
+ jobId: string;
154
+ } | undefined;
155
+ };
156
+ jobId: string;
157
+ storageId: string;
158
+ flowId: string;
159
+ inputs?: Record<string, unknown>;
160
+ clientId: string | null;
161
+ }) => Effect.Effect<_uploadista_core_flow1.NodeExecutionResult<{
162
+ id: string;
163
+ offset: number;
164
+ storage: {
165
+ id: string;
166
+ type: string;
167
+ path?: string | undefined;
168
+ uploadId?: string | undefined;
169
+ bucket?: string | undefined;
170
+ parts?: {
171
+ partNumber: number;
172
+ etag: string;
173
+ size: number;
174
+ }[] | undefined;
175
+ };
176
+ size?: number | undefined;
177
+ metadata?: Record<string, string | number | boolean> | undefined;
178
+ creationDate?: string | undefined;
179
+ url?: string | undefined;
180
+ sizeIsDeferred?: boolean | undefined;
181
+ checksum?: string | undefined;
182
+ checksumAlgorithm?: string | undefined;
183
+ flow?: {
184
+ flowId: string;
185
+ nodeId: string;
186
+ jobId: string;
187
+ } | undefined;
188
+ }>, UploadistaError, never>;
189
+ condition?: {
190
+ field: string;
191
+ operator: string;
192
+ value: unknown;
193
+ };
194
+ multiInput?: boolean;
195
+ multiOutput?: boolean;
196
+ pausable?: boolean;
197
+ retry?: {
198
+ maxRetries?: number;
199
+ retryDelay?: number;
200
+ exponentialBackoff?: boolean;
201
+ };
202
+ } & {
203
+ type: NodeType.process;
204
+ }, UploadistaError, UploadServer | DocumentPlugin | DocumentAiPlugin>;
205
+ //#endregion
206
+ //#region src/describe-document-node.d.ts
207
+ type DescribeDocumentNodeParams = Record<string, never>;
208
+ declare function createDescribeDocumentNode(id: string, _params?: DescribeDocumentNodeParams): Effect.Effect<_uploadista_core_flow1.FlowNodeData & {
209
+ inputSchema: zod1.ZodType<{
210
+ id: string;
211
+ offset: number;
212
+ storage: {
213
+ id: string;
214
+ type: string;
215
+ path?: string | undefined;
216
+ uploadId?: string | undefined;
217
+ bucket?: string | undefined;
218
+ parts?: {
219
+ partNumber: number;
220
+ etag: string;
221
+ size: number;
222
+ }[] | undefined;
223
+ };
224
+ size?: number | undefined;
225
+ metadata?: Record<string, string | number | boolean> | undefined;
226
+ creationDate?: string | undefined;
227
+ url?: string | undefined;
228
+ sizeIsDeferred?: boolean | undefined;
229
+ checksum?: string | undefined;
230
+ checksumAlgorithm?: string | undefined;
231
+ flow?: {
232
+ flowId: string;
233
+ nodeId: string;
234
+ jobId: string;
235
+ } | undefined;
236
+ }, unknown, zod_v4_core1.$ZodTypeInternals<{
237
+ id: string;
238
+ offset: number;
239
+ storage: {
240
+ id: string;
241
+ type: string;
242
+ path?: string | undefined;
243
+ uploadId?: string | undefined;
244
+ bucket?: string | undefined;
245
+ parts?: {
246
+ partNumber: number;
247
+ etag: string;
248
+ size: number;
249
+ }[] | undefined;
250
+ };
251
+ size?: number | undefined;
252
+ metadata?: Record<string, string | number | boolean> | undefined;
253
+ creationDate?: string | undefined;
254
+ url?: string | undefined;
255
+ sizeIsDeferred?: boolean | undefined;
256
+ checksum?: string | undefined;
257
+ checksumAlgorithm?: string | undefined;
258
+ flow?: {
259
+ flowId: string;
260
+ nodeId: string;
261
+ jobId: string;
262
+ } | undefined;
263
+ }, unknown>>;
264
+ outputSchema: zod1.ZodType<{
265
+ id: string;
266
+ offset: number;
267
+ storage: {
268
+ id: string;
269
+ type: string;
270
+ path?: string | undefined;
271
+ uploadId?: string | undefined;
272
+ bucket?: string | undefined;
273
+ parts?: {
274
+ partNumber: number;
275
+ etag: string;
276
+ size: number;
277
+ }[] | undefined;
278
+ };
279
+ size?: number | undefined;
280
+ metadata?: Record<string, string | number | boolean> | undefined;
281
+ creationDate?: string | undefined;
282
+ url?: string | undefined;
283
+ sizeIsDeferred?: boolean | undefined;
284
+ checksum?: string | undefined;
285
+ checksumAlgorithm?: string | undefined;
286
+ flow?: {
287
+ flowId: string;
288
+ nodeId: string;
289
+ jobId: string;
290
+ } | undefined;
291
+ }, unknown, zod_v4_core1.$ZodTypeInternals<{
292
+ id: string;
293
+ offset: number;
294
+ storage: {
295
+ id: string;
296
+ type: string;
297
+ path?: string | undefined;
298
+ uploadId?: string | undefined;
299
+ bucket?: string | undefined;
300
+ parts?: {
301
+ partNumber: number;
302
+ etag: string;
303
+ size: number;
304
+ }[] | undefined;
305
+ };
306
+ size?: number | undefined;
307
+ metadata?: Record<string, string | number | boolean> | undefined;
308
+ creationDate?: string | undefined;
309
+ url?: string | undefined;
310
+ sizeIsDeferred?: boolean | undefined;
311
+ checksum?: string | undefined;
312
+ checksumAlgorithm?: string | undefined;
313
+ flow?: {
314
+ flowId: string;
315
+ nodeId: string;
316
+ jobId: string;
317
+ } | undefined;
318
+ }, unknown>>;
319
+ run: (args: {
320
+ data: {
321
+ id: string;
322
+ offset: number;
323
+ storage: {
324
+ id: string;
325
+ type: string;
326
+ path?: string | undefined;
327
+ uploadId?: string | undefined;
328
+ bucket?: string | undefined;
329
+ parts?: {
330
+ partNumber: number;
331
+ etag: string;
332
+ size: number;
333
+ }[] | undefined;
334
+ };
335
+ size?: number | undefined;
336
+ metadata?: Record<string, string | number | boolean> | undefined;
337
+ creationDate?: string | undefined;
338
+ url?: string | undefined;
339
+ sizeIsDeferred?: boolean | undefined;
340
+ checksum?: string | undefined;
341
+ checksumAlgorithm?: string | undefined;
342
+ flow?: {
343
+ flowId: string;
344
+ nodeId: string;
345
+ jobId: string;
346
+ } | undefined;
347
+ };
348
+ jobId: string;
349
+ storageId: string;
350
+ flowId: string;
351
+ inputs?: Record<string, unknown>;
352
+ clientId: string | null;
353
+ }) => Effect.Effect<_uploadista_core_flow1.NodeExecutionResult<{
354
+ id: string;
355
+ offset: number;
356
+ storage: {
357
+ id: string;
358
+ type: string;
359
+ path?: string | undefined;
360
+ uploadId?: string | undefined;
361
+ bucket?: string | undefined;
362
+ parts?: {
363
+ partNumber: number;
364
+ etag: string;
365
+ size: number;
366
+ }[] | undefined;
367
+ };
368
+ size?: number | undefined;
369
+ metadata?: Record<string, string | number | boolean> | undefined;
370
+ creationDate?: string | undefined;
371
+ url?: string | undefined;
372
+ sizeIsDeferred?: boolean | undefined;
373
+ checksum?: string | undefined;
374
+ checksumAlgorithm?: string | undefined;
375
+ flow?: {
376
+ flowId: string;
377
+ nodeId: string;
378
+ jobId: string;
379
+ } | undefined;
380
+ }>, UploadistaError, never>;
381
+ condition?: {
382
+ field: string;
383
+ operator: string;
384
+ value: unknown;
385
+ };
386
+ multiInput?: boolean;
387
+ multiOutput?: boolean;
388
+ pausable?: boolean;
389
+ retry?: {
390
+ maxRetries?: number;
391
+ retryDelay?: number;
392
+ exponentialBackoff?: boolean;
393
+ };
394
+ } & {
395
+ type: NodeType.process;
396
+ }, UploadistaError, UploadServer | DocumentPlugin>;
397
+ //#endregion
398
+ //#region src/extract-text-node.d.ts
399
+ type ExtractTextNodeParams = Record<string, never>;
400
+ declare function createExtractTextNode(id: string, _params?: ExtractTextNodeParams): Effect.Effect<_uploadista_core_flow1.FlowNodeData & {
401
+ inputSchema: zod1.ZodType<{
402
+ id: string;
403
+ offset: number;
404
+ storage: {
405
+ id: string;
406
+ type: string;
407
+ path?: string | undefined;
408
+ uploadId?: string | undefined;
409
+ bucket?: string | undefined;
410
+ parts?: {
411
+ partNumber: number;
412
+ etag: string;
413
+ size: number;
414
+ }[] | undefined;
415
+ };
416
+ size?: number | undefined;
417
+ metadata?: Record<string, string | number | boolean> | undefined;
418
+ creationDate?: string | undefined;
419
+ url?: string | undefined;
420
+ sizeIsDeferred?: boolean | undefined;
421
+ checksum?: string | undefined;
422
+ checksumAlgorithm?: string | undefined;
423
+ flow?: {
424
+ flowId: string;
425
+ nodeId: string;
426
+ jobId: string;
427
+ } | undefined;
428
+ }, unknown, zod_v4_core1.$ZodTypeInternals<{
429
+ id: string;
430
+ offset: number;
431
+ storage: {
432
+ id: string;
433
+ type: string;
434
+ path?: string | undefined;
435
+ uploadId?: string | undefined;
436
+ bucket?: string | undefined;
437
+ parts?: {
438
+ partNumber: number;
439
+ etag: string;
440
+ size: number;
441
+ }[] | undefined;
442
+ };
443
+ size?: number | undefined;
444
+ metadata?: Record<string, string | number | boolean> | undefined;
445
+ creationDate?: string | undefined;
446
+ url?: string | undefined;
447
+ sizeIsDeferred?: boolean | undefined;
448
+ checksum?: string | undefined;
449
+ checksumAlgorithm?: string | undefined;
450
+ flow?: {
451
+ flowId: string;
452
+ nodeId: string;
453
+ jobId: string;
454
+ } | undefined;
455
+ }, unknown>>;
456
+ outputSchema: zod1.ZodType<{
457
+ id: string;
458
+ offset: number;
459
+ storage: {
460
+ id: string;
461
+ type: string;
462
+ path?: string | undefined;
463
+ uploadId?: string | undefined;
464
+ bucket?: string | undefined;
465
+ parts?: {
466
+ partNumber: number;
467
+ etag: string;
468
+ size: number;
469
+ }[] | undefined;
470
+ };
471
+ size?: number | undefined;
472
+ metadata?: Record<string, string | number | boolean> | undefined;
473
+ creationDate?: string | undefined;
474
+ url?: string | undefined;
475
+ sizeIsDeferred?: boolean | undefined;
476
+ checksum?: string | undefined;
477
+ checksumAlgorithm?: string | undefined;
478
+ flow?: {
479
+ flowId: string;
480
+ nodeId: string;
481
+ jobId: string;
482
+ } | undefined;
483
+ }, unknown, zod_v4_core1.$ZodTypeInternals<{
484
+ id: string;
485
+ offset: number;
486
+ storage: {
487
+ id: string;
488
+ type: string;
489
+ path?: string | undefined;
490
+ uploadId?: string | undefined;
491
+ bucket?: string | undefined;
492
+ parts?: {
493
+ partNumber: number;
494
+ etag: string;
495
+ size: number;
496
+ }[] | undefined;
497
+ };
498
+ size?: number | undefined;
499
+ metadata?: Record<string, string | number | boolean> | undefined;
500
+ creationDate?: string | undefined;
501
+ url?: string | undefined;
502
+ sizeIsDeferred?: boolean | undefined;
503
+ checksum?: string | undefined;
504
+ checksumAlgorithm?: string | undefined;
505
+ flow?: {
506
+ flowId: string;
507
+ nodeId: string;
508
+ jobId: string;
509
+ } | undefined;
510
+ }, unknown>>;
511
+ run: (args: {
512
+ data: {
513
+ id: string;
514
+ offset: number;
515
+ storage: {
516
+ id: string;
517
+ type: string;
518
+ path?: string | undefined;
519
+ uploadId?: string | undefined;
520
+ bucket?: string | undefined;
521
+ parts?: {
522
+ partNumber: number;
523
+ etag: string;
524
+ size: number;
525
+ }[] | undefined;
526
+ };
527
+ size?: number | undefined;
528
+ metadata?: Record<string, string | number | boolean> | undefined;
529
+ creationDate?: string | undefined;
530
+ url?: string | undefined;
531
+ sizeIsDeferred?: boolean | undefined;
532
+ checksum?: string | undefined;
533
+ checksumAlgorithm?: string | undefined;
534
+ flow?: {
535
+ flowId: string;
536
+ nodeId: string;
537
+ jobId: string;
538
+ } | undefined;
539
+ };
540
+ jobId: string;
541
+ storageId: string;
542
+ flowId: string;
543
+ inputs?: Record<string, unknown>;
544
+ clientId: string | null;
545
+ }) => Effect.Effect<_uploadista_core_flow1.NodeExecutionResult<{
546
+ id: string;
547
+ offset: number;
548
+ storage: {
549
+ id: string;
550
+ type: string;
551
+ path?: string | undefined;
552
+ uploadId?: string | undefined;
553
+ bucket?: string | undefined;
554
+ parts?: {
555
+ partNumber: number;
556
+ etag: string;
557
+ size: number;
558
+ }[] | undefined;
559
+ };
560
+ size?: number | undefined;
561
+ metadata?: Record<string, string | number | boolean> | undefined;
562
+ creationDate?: string | undefined;
563
+ url?: string | undefined;
564
+ sizeIsDeferred?: boolean | undefined;
565
+ checksum?: string | undefined;
566
+ checksumAlgorithm?: string | undefined;
567
+ flow?: {
568
+ flowId: string;
569
+ nodeId: string;
570
+ jobId: string;
571
+ } | undefined;
572
+ }>, UploadistaError, never>;
573
+ condition?: {
574
+ field: string;
575
+ operator: string;
576
+ value: unknown;
577
+ };
578
+ multiInput?: boolean;
579
+ multiOutput?: boolean;
580
+ pausable?: boolean;
581
+ retry?: {
582
+ maxRetries?: number;
583
+ retryDelay?: number;
584
+ exponentialBackoff?: boolean;
585
+ };
586
+ } & {
587
+ type: NodeType.process;
588
+ }, UploadistaError, UploadServer | DocumentPlugin>;
589
+ //#endregion
590
+ //#region src/merge-pdf-node.d.ts
591
+ type MergePdfNodeParams = {
592
+ inputCount?: number;
593
+ };
594
+ declare function createMergePdfNode(id: string, _params?: MergePdfNodeParams): Effect.Effect<_uploadista_core_flow1.FlowNodeData & {
595
+ inputSchema: z.ZodType<{
596
+ id: string;
597
+ offset: number;
598
+ storage: {
599
+ id: string;
600
+ type: string;
601
+ path?: string | undefined;
602
+ uploadId?: string | undefined;
603
+ bucket?: string | undefined;
604
+ parts?: {
605
+ partNumber: number;
606
+ etag: string;
607
+ size: number;
608
+ }[] | undefined;
609
+ };
610
+ size?: number | undefined;
611
+ metadata?: Record<string, string | number | boolean> | undefined;
612
+ creationDate?: string | undefined;
613
+ url?: string | undefined;
614
+ sizeIsDeferred?: boolean | undefined;
615
+ checksum?: string | undefined;
616
+ checksumAlgorithm?: string | undefined;
617
+ flow?: {
618
+ flowId: string;
619
+ nodeId: string;
620
+ jobId: string;
621
+ } | undefined;
622
+ }[], unknown, z.core.$ZodTypeInternals<{
623
+ id: string;
624
+ offset: number;
625
+ storage: {
626
+ id: string;
627
+ type: string;
628
+ path?: string | undefined;
629
+ uploadId?: string | undefined;
630
+ bucket?: string | undefined;
631
+ parts?: {
632
+ partNumber: number;
633
+ etag: string;
634
+ size: number;
635
+ }[] | undefined;
636
+ };
637
+ size?: number | undefined;
638
+ metadata?: Record<string, string | number | boolean> | undefined;
639
+ creationDate?: string | undefined;
640
+ url?: string | undefined;
641
+ sizeIsDeferred?: boolean | undefined;
642
+ checksum?: string | undefined;
643
+ checksumAlgorithm?: string | undefined;
644
+ flow?: {
645
+ flowId: string;
646
+ nodeId: string;
647
+ jobId: string;
648
+ } | undefined;
649
+ }[], unknown>>;
650
+ outputSchema: z.ZodType<{
651
+ id: string;
652
+ offset: number;
653
+ storage: {
654
+ id: string;
655
+ type: string;
656
+ path?: string | undefined;
657
+ uploadId?: string | undefined;
658
+ bucket?: string | undefined;
659
+ parts?: {
660
+ partNumber: number;
661
+ etag: string;
662
+ size: number;
663
+ }[] | undefined;
664
+ };
665
+ size?: number | undefined;
666
+ metadata?: Record<string, string | number | boolean> | undefined;
667
+ creationDate?: string | undefined;
668
+ url?: string | undefined;
669
+ sizeIsDeferred?: boolean | undefined;
670
+ checksum?: string | undefined;
671
+ checksumAlgorithm?: string | undefined;
672
+ flow?: {
673
+ flowId: string;
674
+ nodeId: string;
675
+ jobId: string;
676
+ } | undefined;
677
+ }, unknown, z.core.$ZodTypeInternals<{
678
+ id: string;
679
+ offset: number;
680
+ storage: {
681
+ id: string;
682
+ type: string;
683
+ path?: string | undefined;
684
+ uploadId?: string | undefined;
685
+ bucket?: string | undefined;
686
+ parts?: {
687
+ partNumber: number;
688
+ etag: string;
689
+ size: number;
690
+ }[] | undefined;
691
+ };
692
+ size?: number | undefined;
693
+ metadata?: Record<string, string | number | boolean> | undefined;
694
+ creationDate?: string | undefined;
695
+ url?: string | undefined;
696
+ sizeIsDeferred?: boolean | undefined;
697
+ checksum?: string | undefined;
698
+ checksumAlgorithm?: string | undefined;
699
+ flow?: {
700
+ flowId: string;
701
+ nodeId: string;
702
+ jobId: string;
703
+ } | undefined;
704
+ }, unknown>>;
705
+ run: (args: {
706
+ data: {
707
+ id: string;
708
+ offset: number;
709
+ storage: {
710
+ id: string;
711
+ type: string;
712
+ path?: string | undefined;
713
+ uploadId?: string | undefined;
714
+ bucket?: string | undefined;
715
+ parts?: {
716
+ partNumber: number;
717
+ etag: string;
718
+ size: number;
719
+ }[] | undefined;
720
+ };
721
+ size?: number | undefined;
722
+ metadata?: Record<string, string | number | boolean> | undefined;
723
+ creationDate?: string | undefined;
724
+ url?: string | undefined;
725
+ sizeIsDeferred?: boolean | undefined;
726
+ checksum?: string | undefined;
727
+ checksumAlgorithm?: string | undefined;
728
+ flow?: {
729
+ flowId: string;
730
+ nodeId: string;
731
+ jobId: string;
732
+ } | undefined;
733
+ }[];
734
+ jobId: string;
735
+ storageId: string;
736
+ flowId: string;
737
+ inputs?: Record<string, unknown>;
738
+ clientId: string | null;
739
+ }) => Effect.Effect<_uploadista_core_flow1.NodeExecutionResult<{
740
+ id: string;
741
+ offset: number;
742
+ storage: {
743
+ id: string;
744
+ type: string;
745
+ path?: string | undefined;
746
+ uploadId?: string | undefined;
747
+ bucket?: string | undefined;
748
+ parts?: {
749
+ partNumber: number;
750
+ etag: string;
751
+ size: number;
752
+ }[] | undefined;
753
+ };
754
+ size?: number | undefined;
755
+ metadata?: Record<string, string | number | boolean> | undefined;
756
+ creationDate?: string | undefined;
757
+ url?: string | undefined;
758
+ sizeIsDeferred?: boolean | undefined;
759
+ checksum?: string | undefined;
760
+ checksumAlgorithm?: string | undefined;
761
+ flow?: {
762
+ flowId: string;
763
+ nodeId: string;
764
+ jobId: string;
765
+ } | undefined;
766
+ }>, UploadistaError, never>;
767
+ condition?: {
768
+ field: string;
769
+ operator: string;
770
+ value: unknown;
771
+ };
772
+ multiInput?: boolean;
773
+ multiOutput?: boolean;
774
+ pausable?: boolean;
775
+ retry?: {
776
+ maxRetries?: number;
777
+ retryDelay?: number;
778
+ exponentialBackoff?: boolean;
779
+ };
780
+ } & {
781
+ type: NodeType.process;
782
+ }, UploadistaError, UploadServer | DocumentPlugin>;
783
+ //#endregion
784
+ //#region src/ocr-node.d.ts
785
+ type OcrNodeParams = {
786
+ taskType: OcrTaskType;
787
+ resolution?: OcrResolution;
788
+ credentialId?: string;
789
+ referenceText?: string;
790
+ };
791
+ declare function createOcrNode(id: string, params: OcrNodeParams): Effect.Effect<_uploadista_core_flow1.FlowNodeData & {
792
+ inputSchema: zod1.ZodType<{
793
+ id: string;
794
+ offset: number;
795
+ storage: {
796
+ id: string;
797
+ type: string;
798
+ path?: string | undefined;
799
+ uploadId?: string | undefined;
800
+ bucket?: string | undefined;
801
+ parts?: {
802
+ partNumber: number;
803
+ etag: string;
804
+ size: number;
805
+ }[] | undefined;
806
+ };
807
+ size?: number | undefined;
808
+ metadata?: Record<string, string | number | boolean> | undefined;
809
+ creationDate?: string | undefined;
810
+ url?: string | undefined;
811
+ sizeIsDeferred?: boolean | undefined;
812
+ checksum?: string | undefined;
813
+ checksumAlgorithm?: string | undefined;
814
+ flow?: {
815
+ flowId: string;
816
+ nodeId: string;
817
+ jobId: string;
818
+ } | undefined;
819
+ }, unknown, zod_v4_core1.$ZodTypeInternals<{
820
+ id: string;
821
+ offset: number;
822
+ storage: {
823
+ id: string;
824
+ type: string;
825
+ path?: string | undefined;
826
+ uploadId?: string | undefined;
827
+ bucket?: string | undefined;
828
+ parts?: {
829
+ partNumber: number;
830
+ etag: string;
831
+ size: number;
832
+ }[] | undefined;
833
+ };
834
+ size?: number | undefined;
835
+ metadata?: Record<string, string | number | boolean> | undefined;
836
+ creationDate?: string | undefined;
837
+ url?: string | undefined;
838
+ sizeIsDeferred?: boolean | undefined;
839
+ checksum?: string | undefined;
840
+ checksumAlgorithm?: string | undefined;
841
+ flow?: {
842
+ flowId: string;
843
+ nodeId: string;
844
+ jobId: string;
845
+ } | undefined;
846
+ }, unknown>>;
847
+ outputSchema: zod1.ZodType<{
848
+ id: string;
849
+ offset: number;
850
+ storage: {
851
+ id: string;
852
+ type: string;
853
+ path?: string | undefined;
854
+ uploadId?: string | undefined;
855
+ bucket?: string | undefined;
856
+ parts?: {
857
+ partNumber: number;
858
+ etag: string;
859
+ size: number;
860
+ }[] | undefined;
861
+ };
862
+ size?: number | undefined;
863
+ metadata?: Record<string, string | number | boolean> | undefined;
864
+ creationDate?: string | undefined;
865
+ url?: string | undefined;
866
+ sizeIsDeferred?: boolean | undefined;
867
+ checksum?: string | undefined;
868
+ checksumAlgorithm?: string | undefined;
869
+ flow?: {
870
+ flowId: string;
871
+ nodeId: string;
872
+ jobId: string;
873
+ } | undefined;
874
+ }, unknown, zod_v4_core1.$ZodTypeInternals<{
875
+ id: string;
876
+ offset: number;
877
+ storage: {
878
+ id: string;
879
+ type: string;
880
+ path?: string | undefined;
881
+ uploadId?: string | undefined;
882
+ bucket?: string | undefined;
883
+ parts?: {
884
+ partNumber: number;
885
+ etag: string;
886
+ size: number;
887
+ }[] | undefined;
888
+ };
889
+ size?: number | undefined;
890
+ metadata?: Record<string, string | number | boolean> | undefined;
891
+ creationDate?: string | undefined;
892
+ url?: string | undefined;
893
+ sizeIsDeferred?: boolean | undefined;
894
+ checksum?: string | undefined;
895
+ checksumAlgorithm?: string | undefined;
896
+ flow?: {
897
+ flowId: string;
898
+ nodeId: string;
899
+ jobId: string;
900
+ } | undefined;
901
+ }, unknown>>;
902
+ run: (args: {
903
+ data: {
904
+ id: string;
905
+ offset: number;
906
+ storage: {
907
+ id: string;
908
+ type: string;
909
+ path?: string | undefined;
910
+ uploadId?: string | undefined;
911
+ bucket?: string | undefined;
912
+ parts?: {
913
+ partNumber: number;
914
+ etag: string;
915
+ size: number;
916
+ }[] | undefined;
917
+ };
918
+ size?: number | undefined;
919
+ metadata?: Record<string, string | number | boolean> | undefined;
920
+ creationDate?: string | undefined;
921
+ url?: string | undefined;
922
+ sizeIsDeferred?: boolean | undefined;
923
+ checksum?: string | undefined;
924
+ checksumAlgorithm?: string | undefined;
925
+ flow?: {
926
+ flowId: string;
927
+ nodeId: string;
928
+ jobId: string;
929
+ } | undefined;
930
+ };
931
+ jobId: string;
932
+ storageId: string;
933
+ flowId: string;
934
+ inputs?: Record<string, unknown>;
935
+ clientId: string | null;
936
+ }) => Effect.Effect<_uploadista_core_flow1.NodeExecutionResult<{
937
+ id: string;
938
+ offset: number;
939
+ storage: {
940
+ id: string;
941
+ type: string;
942
+ path?: string | undefined;
943
+ uploadId?: string | undefined;
944
+ bucket?: string | undefined;
945
+ parts?: {
946
+ partNumber: number;
947
+ etag: string;
948
+ size: number;
949
+ }[] | undefined;
950
+ };
951
+ size?: number | undefined;
952
+ metadata?: Record<string, string | number | boolean> | undefined;
953
+ creationDate?: string | undefined;
954
+ url?: string | undefined;
955
+ sizeIsDeferred?: boolean | undefined;
956
+ checksum?: string | undefined;
957
+ checksumAlgorithm?: string | undefined;
958
+ flow?: {
959
+ flowId: string;
960
+ nodeId: string;
961
+ jobId: string;
962
+ } | undefined;
963
+ }>, UploadistaError, never>;
964
+ condition?: {
965
+ field: string;
966
+ operator: string;
967
+ value: unknown;
968
+ };
969
+ multiInput?: boolean;
970
+ multiOutput?: boolean;
971
+ pausable?: boolean;
972
+ retry?: {
973
+ maxRetries?: number;
974
+ retryDelay?: number;
975
+ exponentialBackoff?: boolean;
976
+ };
977
+ } & {
978
+ type: NodeType.process;
979
+ }, UploadistaError, DocumentAiPlugin>;
980
+ //#endregion
981
+ //#region src/split-pdf-node.d.ts
982
+ type SplitPdfNodeParams = {
983
+ mode: "range" | "individual";
984
+ startPage?: number;
985
+ endPage?: number;
986
+ };
987
+ declare function createSplitPdfNode(id: string, params: SplitPdfNodeParams): Effect.Effect<_uploadista_core_flow1.FlowNodeData & {
988
+ inputSchema: zod1.ZodType<{
989
+ id: string;
990
+ offset: number;
991
+ storage: {
992
+ id: string;
993
+ type: string;
994
+ path?: string | undefined;
995
+ uploadId?: string | undefined;
996
+ bucket?: string | undefined;
997
+ parts?: {
998
+ partNumber: number;
999
+ etag: string;
1000
+ size: number;
1001
+ }[] | undefined;
1002
+ };
1003
+ size?: number | undefined;
1004
+ metadata?: Record<string, string | number | boolean> | undefined;
1005
+ creationDate?: string | undefined;
1006
+ url?: string | undefined;
1007
+ sizeIsDeferred?: boolean | undefined;
1008
+ checksum?: string | undefined;
1009
+ checksumAlgorithm?: string | undefined;
1010
+ flow?: {
1011
+ flowId: string;
1012
+ nodeId: string;
1013
+ jobId: string;
1014
+ } | undefined;
1015
+ }, unknown, zod_v4_core1.$ZodTypeInternals<{
1016
+ id: string;
1017
+ offset: number;
1018
+ storage: {
1019
+ id: string;
1020
+ type: string;
1021
+ path?: string | undefined;
1022
+ uploadId?: string | undefined;
1023
+ bucket?: string | undefined;
1024
+ parts?: {
1025
+ partNumber: number;
1026
+ etag: string;
1027
+ size: number;
1028
+ }[] | undefined;
1029
+ };
1030
+ size?: number | undefined;
1031
+ metadata?: Record<string, string | number | boolean> | undefined;
1032
+ creationDate?: string | undefined;
1033
+ url?: string | undefined;
1034
+ sizeIsDeferred?: boolean | undefined;
1035
+ checksum?: string | undefined;
1036
+ checksumAlgorithm?: string | undefined;
1037
+ flow?: {
1038
+ flowId: string;
1039
+ nodeId: string;
1040
+ jobId: string;
1041
+ } | undefined;
1042
+ }, unknown>>;
1043
+ outputSchema: zod1.ZodType<{
1044
+ id: string;
1045
+ offset: number;
1046
+ storage: {
1047
+ id: string;
1048
+ type: string;
1049
+ path?: string | undefined;
1050
+ uploadId?: string | undefined;
1051
+ bucket?: string | undefined;
1052
+ parts?: {
1053
+ partNumber: number;
1054
+ etag: string;
1055
+ size: number;
1056
+ }[] | undefined;
1057
+ };
1058
+ size?: number | undefined;
1059
+ metadata?: Record<string, string | number | boolean> | undefined;
1060
+ creationDate?: string | undefined;
1061
+ url?: string | undefined;
1062
+ sizeIsDeferred?: boolean | undefined;
1063
+ checksum?: string | undefined;
1064
+ checksumAlgorithm?: string | undefined;
1065
+ flow?: {
1066
+ flowId: string;
1067
+ nodeId: string;
1068
+ jobId: string;
1069
+ } | undefined;
1070
+ }, unknown, zod_v4_core1.$ZodTypeInternals<{
1071
+ id: string;
1072
+ offset: number;
1073
+ storage: {
1074
+ id: string;
1075
+ type: string;
1076
+ path?: string | undefined;
1077
+ uploadId?: string | undefined;
1078
+ bucket?: string | undefined;
1079
+ parts?: {
1080
+ partNumber: number;
1081
+ etag: string;
1082
+ size: number;
1083
+ }[] | undefined;
1084
+ };
1085
+ size?: number | undefined;
1086
+ metadata?: Record<string, string | number | boolean> | undefined;
1087
+ creationDate?: string | undefined;
1088
+ url?: string | undefined;
1089
+ sizeIsDeferred?: boolean | undefined;
1090
+ checksum?: string | undefined;
1091
+ checksumAlgorithm?: string | undefined;
1092
+ flow?: {
1093
+ flowId: string;
1094
+ nodeId: string;
1095
+ jobId: string;
1096
+ } | undefined;
1097
+ }, unknown>>;
1098
+ run: (args: {
1099
+ data: {
1100
+ id: string;
1101
+ offset: number;
1102
+ storage: {
1103
+ id: string;
1104
+ type: string;
1105
+ path?: string | undefined;
1106
+ uploadId?: string | undefined;
1107
+ bucket?: string | undefined;
1108
+ parts?: {
1109
+ partNumber: number;
1110
+ etag: string;
1111
+ size: number;
1112
+ }[] | undefined;
1113
+ };
1114
+ size?: number | undefined;
1115
+ metadata?: Record<string, string | number | boolean> | undefined;
1116
+ creationDate?: string | undefined;
1117
+ url?: string | undefined;
1118
+ sizeIsDeferred?: boolean | undefined;
1119
+ checksum?: string | undefined;
1120
+ checksumAlgorithm?: string | undefined;
1121
+ flow?: {
1122
+ flowId: string;
1123
+ nodeId: string;
1124
+ jobId: string;
1125
+ } | undefined;
1126
+ };
1127
+ jobId: string;
1128
+ storageId: string;
1129
+ flowId: string;
1130
+ inputs?: Record<string, unknown>;
1131
+ clientId: string | null;
1132
+ }) => Effect.Effect<_uploadista_core_flow1.NodeExecutionResult<{
1133
+ id: string;
1134
+ offset: number;
1135
+ storage: {
1136
+ id: string;
1137
+ type: string;
1138
+ path?: string | undefined;
1139
+ uploadId?: string | undefined;
1140
+ bucket?: string | undefined;
1141
+ parts?: {
1142
+ partNumber: number;
1143
+ etag: string;
1144
+ size: number;
1145
+ }[] | undefined;
1146
+ };
1147
+ size?: number | undefined;
1148
+ metadata?: Record<string, string | number | boolean> | undefined;
1149
+ creationDate?: string | undefined;
1150
+ url?: string | undefined;
1151
+ sizeIsDeferred?: boolean | undefined;
1152
+ checksum?: string | undefined;
1153
+ checksumAlgorithm?: string | undefined;
1154
+ flow?: {
1155
+ flowId: string;
1156
+ nodeId: string;
1157
+ jobId: string;
1158
+ } | undefined;
1159
+ }>, UploadistaError, never>;
1160
+ condition?: {
1161
+ field: string;
1162
+ operator: string;
1163
+ value: unknown;
1164
+ };
1165
+ multiInput?: boolean;
1166
+ multiOutput?: boolean;
1167
+ pausable?: boolean;
1168
+ retry?: {
1169
+ maxRetries?: number;
1170
+ retryDelay?: number;
1171
+ exponentialBackoff?: boolean;
1172
+ };
1173
+ } & {
1174
+ type: NodeType.process;
1175
+ }, UploadistaError, UploadServer | DocumentPlugin>;
1176
+ //#endregion
1177
+ export { type ConvertToMarkdownNodeParams, ConvertToMarkdownParams, type DescribeDocumentNodeParams, DescribeDocumentParams, type ExtractTextNodeParams, ExtractTextParams, type MergePdfNodeParams, MergePdfParams, type OcrNodeParams, OcrParams, type SplitPdfNodeParams, SplitPdfParams, convertToMarkdownParamsSchema, createConvertToMarkdownNode, createDescribeDocumentNode, createExtractTextNode, createMergePdfNode, createOcrNode, createSplitPdfNode, describeDocumentParamsSchema, extractTextParamsSchema, mergePdfParamsSchema, ocrParamsSchema, splitPdfParamsSchema };
1178
+ //# sourceMappingURL=index.d.cts.map