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

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