@uploadista/flow-documents-nodes 0.1.3 → 0.2.0
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/.turbo/turbo-build.log +28 -31
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +76 -76
- package/dist/index.d.mts +77 -76
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/dist/{index-BUVU_SCU.d.mts → split-pdf-node-BX6rgXm6.d.mts} +3 -3
- package/dist/split-pdf-node-BX6rgXm6.d.mts.map +1 -0
- package/dist/{types-B9hxQ57l.mjs → split-pdf-node-lCLhevrT.mjs} +1 -1
- package/dist/split-pdf-node-lCLhevrT.mjs.map +1 -0
- package/dist/{index-CC_AxLer.d.cts → split-pdf-node-lXy-nLE3.d.cts} +3 -3
- package/dist/split-pdf-node-lXy-nLE3.d.cts.map +1 -0
- package/dist/types/index.cjs +1 -1
- package/dist/types/index.d.cts +2 -2
- package/dist/types/index.d.mts +2 -2
- package/dist/types/index.mjs +1 -1
- package/package.json +5 -5
- package/dist/index-BUVU_SCU.d.mts.map +0 -1
- package/dist/index-CC_AxLer.d.cts.map +0 -1
- package/dist/types-B9hxQ57l.mjs.map +0 -1
- /package/dist/{types-Cz0s5Dxw.cjs → split-pdf-node-Bz85H5mE.cjs} +0 -0
package/dist/index.d.mts
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
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 "./
|
|
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 "./split-pdf-node-BX6rgXm6.mjs";
|
|
2
|
+
import "./types/index.mjs";
|
|
2
3
|
import { UploadistaError } from "@uploadista/core/errors";
|
|
3
|
-
import * as
|
|
4
|
+
import * as _uploadista_core_flow0 from "@uploadista/core/flow";
|
|
4
5
|
import { DocumentAiPlugin, DocumentPlugin, FileNamingConfig, NodeType, OcrResolution, OcrTaskType } from "@uploadista/core/flow";
|
|
5
|
-
import * as
|
|
6
|
+
import * as _uploadista_core_types0 from "@uploadista/core/types";
|
|
6
7
|
import { UploadEngine } from "@uploadista/core/upload";
|
|
7
8
|
import { Effect } from "effect";
|
|
8
|
-
import * as
|
|
9
|
+
import * as zod from "zod";
|
|
9
10
|
import { z } from "zod";
|
|
10
|
-
import * as
|
|
11
|
+
import * as zod_v4_core0 from "zod/v4/core";
|
|
11
12
|
|
|
12
13
|
//#region src/convert-to-markdown-node.d.ts
|
|
13
14
|
type ConvertToMarkdownNodeParams = {
|
|
@@ -15,8 +16,8 @@ type ConvertToMarkdownNodeParams = {
|
|
|
15
16
|
resolution?: "tiny" | "small" | "base" | "gundam" | "large";
|
|
16
17
|
keepOutput?: boolean;
|
|
17
18
|
};
|
|
18
|
-
declare function createConvertToMarkdownNode(id: string, params?: ConvertToMarkdownNodeParams): Effect.Effect<
|
|
19
|
-
inputSchema:
|
|
19
|
+
declare function createConvertToMarkdownNode(id: string, params?: ConvertToMarkdownNodeParams): Effect.Effect<_uploadista_core_flow0.FlowNodeData & {
|
|
20
|
+
inputSchema: zod.ZodType<{
|
|
20
21
|
id: string;
|
|
21
22
|
offset: number;
|
|
22
23
|
storage: {
|
|
@@ -32,7 +33,7 @@ declare function createConvertToMarkdownNode(id: string, params?: ConvertToMarkd
|
|
|
32
33
|
}[] | undefined;
|
|
33
34
|
};
|
|
34
35
|
size?: number | undefined;
|
|
35
|
-
metadata?: Record<string,
|
|
36
|
+
metadata?: Record<string, _uploadista_core_types0.JsonValue> | undefined;
|
|
36
37
|
creationDate?: string | undefined;
|
|
37
38
|
url?: string | undefined;
|
|
38
39
|
sizeIsDeferred?: boolean | undefined;
|
|
@@ -48,7 +49,7 @@ declare function createConvertToMarkdownNode(id: string, params?: ConvertToMarkd
|
|
|
48
49
|
spanId: string;
|
|
49
50
|
traceFlags: number;
|
|
50
51
|
} | undefined;
|
|
51
|
-
}, unknown,
|
|
52
|
+
}, unknown, zod_v4_core0.$ZodTypeInternals<{
|
|
52
53
|
id: string;
|
|
53
54
|
offset: number;
|
|
54
55
|
storage: {
|
|
@@ -64,7 +65,7 @@ declare function createConvertToMarkdownNode(id: string, params?: ConvertToMarkd
|
|
|
64
65
|
}[] | undefined;
|
|
65
66
|
};
|
|
66
67
|
size?: number | undefined;
|
|
67
|
-
metadata?: Record<string,
|
|
68
|
+
metadata?: Record<string, _uploadista_core_types0.JsonValue> | undefined;
|
|
68
69
|
creationDate?: string | undefined;
|
|
69
70
|
url?: string | undefined;
|
|
70
71
|
sizeIsDeferred?: boolean | undefined;
|
|
@@ -81,7 +82,7 @@ declare function createConvertToMarkdownNode(id: string, params?: ConvertToMarkd
|
|
|
81
82
|
traceFlags: number;
|
|
82
83
|
} | undefined;
|
|
83
84
|
}, unknown>>;
|
|
84
|
-
outputSchema:
|
|
85
|
+
outputSchema: zod.ZodType<{
|
|
85
86
|
id: string;
|
|
86
87
|
offset: number;
|
|
87
88
|
storage: {
|
|
@@ -97,7 +98,7 @@ declare function createConvertToMarkdownNode(id: string, params?: ConvertToMarkd
|
|
|
97
98
|
}[] | undefined;
|
|
98
99
|
};
|
|
99
100
|
size?: number | undefined;
|
|
100
|
-
metadata?: Record<string,
|
|
101
|
+
metadata?: Record<string, _uploadista_core_types0.JsonValue> | undefined;
|
|
101
102
|
creationDate?: string | undefined;
|
|
102
103
|
url?: string | undefined;
|
|
103
104
|
sizeIsDeferred?: boolean | undefined;
|
|
@@ -113,7 +114,7 @@ declare function createConvertToMarkdownNode(id: string, params?: ConvertToMarkd
|
|
|
113
114
|
spanId: string;
|
|
114
115
|
traceFlags: number;
|
|
115
116
|
} | undefined;
|
|
116
|
-
}, unknown,
|
|
117
|
+
}, unknown, zod_v4_core0.$ZodTypeInternals<{
|
|
117
118
|
id: string;
|
|
118
119
|
offset: number;
|
|
119
120
|
storage: {
|
|
@@ -129,7 +130,7 @@ declare function createConvertToMarkdownNode(id: string, params?: ConvertToMarkd
|
|
|
129
130
|
}[] | undefined;
|
|
130
131
|
};
|
|
131
132
|
size?: number | undefined;
|
|
132
|
-
metadata?: Record<string,
|
|
133
|
+
metadata?: Record<string, _uploadista_core_types0.JsonValue> | undefined;
|
|
133
134
|
creationDate?: string | undefined;
|
|
134
135
|
url?: string | undefined;
|
|
135
136
|
sizeIsDeferred?: boolean | undefined;
|
|
@@ -163,7 +164,7 @@ declare function createConvertToMarkdownNode(id: string, params?: ConvertToMarkd
|
|
|
163
164
|
}[] | undefined;
|
|
164
165
|
};
|
|
165
166
|
size?: number | undefined;
|
|
166
|
-
metadata?: Record<string,
|
|
167
|
+
metadata?: Record<string, _uploadista_core_types0.JsonValue> | undefined;
|
|
167
168
|
creationDate?: string | undefined;
|
|
168
169
|
url?: string | undefined;
|
|
169
170
|
sizeIsDeferred?: boolean | undefined;
|
|
@@ -185,7 +186,7 @@ declare function createConvertToMarkdownNode(id: string, params?: ConvertToMarkd
|
|
|
185
186
|
flowId: string;
|
|
186
187
|
inputs?: Record<string, unknown>;
|
|
187
188
|
clientId: string | null;
|
|
188
|
-
}) => Effect.Effect<
|
|
189
|
+
}) => Effect.Effect<_uploadista_core_flow0.NodeExecutionResult<{
|
|
189
190
|
id: string;
|
|
190
191
|
offset: number;
|
|
191
192
|
storage: {
|
|
@@ -201,7 +202,7 @@ declare function createConvertToMarkdownNode(id: string, params?: ConvertToMarkd
|
|
|
201
202
|
}[] | undefined;
|
|
202
203
|
};
|
|
203
204
|
size?: number | undefined;
|
|
204
|
-
metadata?: Record<string,
|
|
205
|
+
metadata?: Record<string, _uploadista_core_types0.JsonValue> | undefined;
|
|
205
206
|
creationDate?: string | undefined;
|
|
206
207
|
url?: string | undefined;
|
|
207
208
|
sizeIsDeferred?: boolean | undefined;
|
|
@@ -231,7 +232,7 @@ declare function createConvertToMarkdownNode(id: string, params?: ConvertToMarkd
|
|
|
231
232
|
retryDelay?: number;
|
|
232
233
|
exponentialBackoff?: boolean;
|
|
233
234
|
};
|
|
234
|
-
circuitBreaker?:
|
|
235
|
+
circuitBreaker?: _uploadista_core_flow0.FlowCircuitBreakerConfig;
|
|
235
236
|
} & {
|
|
236
237
|
type: NodeType.process;
|
|
237
238
|
}, UploadistaError, UploadEngine | DocumentPlugin | DocumentAiPlugin>;
|
|
@@ -240,8 +241,8 @@ declare function createConvertToMarkdownNode(id: string, params?: ConvertToMarkd
|
|
|
240
241
|
type DescribeDocumentNodeParams = {
|
|
241
242
|
keepOutput?: boolean;
|
|
242
243
|
};
|
|
243
|
-
declare function createDescribeDocumentNode(id: string, params?: DescribeDocumentNodeParams): Effect.Effect<
|
|
244
|
-
inputSchema:
|
|
244
|
+
declare function createDescribeDocumentNode(id: string, params?: DescribeDocumentNodeParams): Effect.Effect<_uploadista_core_flow0.FlowNodeData & {
|
|
245
|
+
inputSchema: zod.ZodType<{
|
|
245
246
|
id: string;
|
|
246
247
|
offset: number;
|
|
247
248
|
storage: {
|
|
@@ -257,7 +258,7 @@ declare function createDescribeDocumentNode(id: string, params?: DescribeDocumen
|
|
|
257
258
|
}[] | undefined;
|
|
258
259
|
};
|
|
259
260
|
size?: number | undefined;
|
|
260
|
-
metadata?: Record<string,
|
|
261
|
+
metadata?: Record<string, _uploadista_core_types0.JsonValue> | undefined;
|
|
261
262
|
creationDate?: string | undefined;
|
|
262
263
|
url?: string | undefined;
|
|
263
264
|
sizeIsDeferred?: boolean | undefined;
|
|
@@ -273,7 +274,7 @@ declare function createDescribeDocumentNode(id: string, params?: DescribeDocumen
|
|
|
273
274
|
spanId: string;
|
|
274
275
|
traceFlags: number;
|
|
275
276
|
} | undefined;
|
|
276
|
-
}, unknown,
|
|
277
|
+
}, unknown, zod_v4_core0.$ZodTypeInternals<{
|
|
277
278
|
id: string;
|
|
278
279
|
offset: number;
|
|
279
280
|
storage: {
|
|
@@ -289,7 +290,7 @@ declare function createDescribeDocumentNode(id: string, params?: DescribeDocumen
|
|
|
289
290
|
}[] | undefined;
|
|
290
291
|
};
|
|
291
292
|
size?: number | undefined;
|
|
292
|
-
metadata?: Record<string,
|
|
293
|
+
metadata?: Record<string, _uploadista_core_types0.JsonValue> | undefined;
|
|
293
294
|
creationDate?: string | undefined;
|
|
294
295
|
url?: string | undefined;
|
|
295
296
|
sizeIsDeferred?: boolean | undefined;
|
|
@@ -306,7 +307,7 @@ declare function createDescribeDocumentNode(id: string, params?: DescribeDocumen
|
|
|
306
307
|
traceFlags: number;
|
|
307
308
|
} | undefined;
|
|
308
309
|
}, unknown>>;
|
|
309
|
-
outputSchema:
|
|
310
|
+
outputSchema: zod.ZodType<{
|
|
310
311
|
id: string;
|
|
311
312
|
offset: number;
|
|
312
313
|
storage: {
|
|
@@ -322,7 +323,7 @@ declare function createDescribeDocumentNode(id: string, params?: DescribeDocumen
|
|
|
322
323
|
}[] | undefined;
|
|
323
324
|
};
|
|
324
325
|
size?: number | undefined;
|
|
325
|
-
metadata?: Record<string,
|
|
326
|
+
metadata?: Record<string, _uploadista_core_types0.JsonValue> | undefined;
|
|
326
327
|
creationDate?: string | undefined;
|
|
327
328
|
url?: string | undefined;
|
|
328
329
|
sizeIsDeferred?: boolean | undefined;
|
|
@@ -338,7 +339,7 @@ declare function createDescribeDocumentNode(id: string, params?: DescribeDocumen
|
|
|
338
339
|
spanId: string;
|
|
339
340
|
traceFlags: number;
|
|
340
341
|
} | undefined;
|
|
341
|
-
}, unknown,
|
|
342
|
+
}, unknown, zod_v4_core0.$ZodTypeInternals<{
|
|
342
343
|
id: string;
|
|
343
344
|
offset: number;
|
|
344
345
|
storage: {
|
|
@@ -354,7 +355,7 @@ declare function createDescribeDocumentNode(id: string, params?: DescribeDocumen
|
|
|
354
355
|
}[] | undefined;
|
|
355
356
|
};
|
|
356
357
|
size?: number | undefined;
|
|
357
|
-
metadata?: Record<string,
|
|
358
|
+
metadata?: Record<string, _uploadista_core_types0.JsonValue> | undefined;
|
|
358
359
|
creationDate?: string | undefined;
|
|
359
360
|
url?: string | undefined;
|
|
360
361
|
sizeIsDeferred?: boolean | undefined;
|
|
@@ -388,7 +389,7 @@ declare function createDescribeDocumentNode(id: string, params?: DescribeDocumen
|
|
|
388
389
|
}[] | undefined;
|
|
389
390
|
};
|
|
390
391
|
size?: number | undefined;
|
|
391
|
-
metadata?: Record<string,
|
|
392
|
+
metadata?: Record<string, _uploadista_core_types0.JsonValue> | undefined;
|
|
392
393
|
creationDate?: string | undefined;
|
|
393
394
|
url?: string | undefined;
|
|
394
395
|
sizeIsDeferred?: boolean | undefined;
|
|
@@ -410,7 +411,7 @@ declare function createDescribeDocumentNode(id: string, params?: DescribeDocumen
|
|
|
410
411
|
flowId: string;
|
|
411
412
|
inputs?: Record<string, unknown>;
|
|
412
413
|
clientId: string | null;
|
|
413
|
-
}) => Effect.Effect<
|
|
414
|
+
}) => Effect.Effect<_uploadista_core_flow0.NodeExecutionResult<{
|
|
414
415
|
id: string;
|
|
415
416
|
offset: number;
|
|
416
417
|
storage: {
|
|
@@ -426,7 +427,7 @@ declare function createDescribeDocumentNode(id: string, params?: DescribeDocumen
|
|
|
426
427
|
}[] | undefined;
|
|
427
428
|
};
|
|
428
429
|
size?: number | undefined;
|
|
429
|
-
metadata?: Record<string,
|
|
430
|
+
metadata?: Record<string, _uploadista_core_types0.JsonValue> | undefined;
|
|
430
431
|
creationDate?: string | undefined;
|
|
431
432
|
url?: string | undefined;
|
|
432
433
|
sizeIsDeferred?: boolean | undefined;
|
|
@@ -456,7 +457,7 @@ declare function createDescribeDocumentNode(id: string, params?: DescribeDocumen
|
|
|
456
457
|
retryDelay?: number;
|
|
457
458
|
exponentialBackoff?: boolean;
|
|
458
459
|
};
|
|
459
|
-
circuitBreaker?:
|
|
460
|
+
circuitBreaker?: _uploadista_core_flow0.FlowCircuitBreakerConfig;
|
|
460
461
|
} & {
|
|
461
462
|
type: NodeType.process;
|
|
462
463
|
}, UploadistaError, UploadEngine | DocumentPlugin>;
|
|
@@ -465,8 +466,8 @@ declare function createDescribeDocumentNode(id: string, params?: DescribeDocumen
|
|
|
465
466
|
type ExtractTextNodeParams = {
|
|
466
467
|
keepOutput?: boolean;
|
|
467
468
|
};
|
|
468
|
-
declare function createExtractTextNode(id: string, params?: ExtractTextNodeParams): Effect.Effect<
|
|
469
|
-
inputSchema:
|
|
469
|
+
declare function createExtractTextNode(id: string, params?: ExtractTextNodeParams): Effect.Effect<_uploadista_core_flow0.FlowNodeData & {
|
|
470
|
+
inputSchema: zod.ZodType<{
|
|
470
471
|
id: string;
|
|
471
472
|
offset: number;
|
|
472
473
|
storage: {
|
|
@@ -482,7 +483,7 @@ declare function createExtractTextNode(id: string, params?: ExtractTextNodeParam
|
|
|
482
483
|
}[] | undefined;
|
|
483
484
|
};
|
|
484
485
|
size?: number | undefined;
|
|
485
|
-
metadata?: Record<string,
|
|
486
|
+
metadata?: Record<string, _uploadista_core_types0.JsonValue> | undefined;
|
|
486
487
|
creationDate?: string | undefined;
|
|
487
488
|
url?: string | undefined;
|
|
488
489
|
sizeIsDeferred?: boolean | undefined;
|
|
@@ -498,7 +499,7 @@ declare function createExtractTextNode(id: string, params?: ExtractTextNodeParam
|
|
|
498
499
|
spanId: string;
|
|
499
500
|
traceFlags: number;
|
|
500
501
|
} | undefined;
|
|
501
|
-
}, unknown,
|
|
502
|
+
}, unknown, zod_v4_core0.$ZodTypeInternals<{
|
|
502
503
|
id: string;
|
|
503
504
|
offset: number;
|
|
504
505
|
storage: {
|
|
@@ -514,7 +515,7 @@ declare function createExtractTextNode(id: string, params?: ExtractTextNodeParam
|
|
|
514
515
|
}[] | undefined;
|
|
515
516
|
};
|
|
516
517
|
size?: number | undefined;
|
|
517
|
-
metadata?: Record<string,
|
|
518
|
+
metadata?: Record<string, _uploadista_core_types0.JsonValue> | undefined;
|
|
518
519
|
creationDate?: string | undefined;
|
|
519
520
|
url?: string | undefined;
|
|
520
521
|
sizeIsDeferred?: boolean | undefined;
|
|
@@ -531,7 +532,7 @@ declare function createExtractTextNode(id: string, params?: ExtractTextNodeParam
|
|
|
531
532
|
traceFlags: number;
|
|
532
533
|
} | undefined;
|
|
533
534
|
}, unknown>>;
|
|
534
|
-
outputSchema:
|
|
535
|
+
outputSchema: zod.ZodType<{
|
|
535
536
|
id: string;
|
|
536
537
|
offset: number;
|
|
537
538
|
storage: {
|
|
@@ -547,7 +548,7 @@ declare function createExtractTextNode(id: string, params?: ExtractTextNodeParam
|
|
|
547
548
|
}[] | undefined;
|
|
548
549
|
};
|
|
549
550
|
size?: number | undefined;
|
|
550
|
-
metadata?: Record<string,
|
|
551
|
+
metadata?: Record<string, _uploadista_core_types0.JsonValue> | undefined;
|
|
551
552
|
creationDate?: string | undefined;
|
|
552
553
|
url?: string | undefined;
|
|
553
554
|
sizeIsDeferred?: boolean | undefined;
|
|
@@ -563,7 +564,7 @@ declare function createExtractTextNode(id: string, params?: ExtractTextNodeParam
|
|
|
563
564
|
spanId: string;
|
|
564
565
|
traceFlags: number;
|
|
565
566
|
} | undefined;
|
|
566
|
-
}, unknown,
|
|
567
|
+
}, unknown, zod_v4_core0.$ZodTypeInternals<{
|
|
567
568
|
id: string;
|
|
568
569
|
offset: number;
|
|
569
570
|
storage: {
|
|
@@ -579,7 +580,7 @@ declare function createExtractTextNode(id: string, params?: ExtractTextNodeParam
|
|
|
579
580
|
}[] | undefined;
|
|
580
581
|
};
|
|
581
582
|
size?: number | undefined;
|
|
582
|
-
metadata?: Record<string,
|
|
583
|
+
metadata?: Record<string, _uploadista_core_types0.JsonValue> | undefined;
|
|
583
584
|
creationDate?: string | undefined;
|
|
584
585
|
url?: string | undefined;
|
|
585
586
|
sizeIsDeferred?: boolean | undefined;
|
|
@@ -613,7 +614,7 @@ declare function createExtractTextNode(id: string, params?: ExtractTextNodeParam
|
|
|
613
614
|
}[] | undefined;
|
|
614
615
|
};
|
|
615
616
|
size?: number | undefined;
|
|
616
|
-
metadata?: Record<string,
|
|
617
|
+
metadata?: Record<string, _uploadista_core_types0.JsonValue> | undefined;
|
|
617
618
|
creationDate?: string | undefined;
|
|
618
619
|
url?: string | undefined;
|
|
619
620
|
sizeIsDeferred?: boolean | undefined;
|
|
@@ -635,7 +636,7 @@ declare function createExtractTextNode(id: string, params?: ExtractTextNodeParam
|
|
|
635
636
|
flowId: string;
|
|
636
637
|
inputs?: Record<string, unknown>;
|
|
637
638
|
clientId: string | null;
|
|
638
|
-
}) => Effect.Effect<
|
|
639
|
+
}) => Effect.Effect<_uploadista_core_flow0.NodeExecutionResult<{
|
|
639
640
|
id: string;
|
|
640
641
|
offset: number;
|
|
641
642
|
storage: {
|
|
@@ -651,7 +652,7 @@ declare function createExtractTextNode(id: string, params?: ExtractTextNodeParam
|
|
|
651
652
|
}[] | undefined;
|
|
652
653
|
};
|
|
653
654
|
size?: number | undefined;
|
|
654
|
-
metadata?: Record<string,
|
|
655
|
+
metadata?: Record<string, _uploadista_core_types0.JsonValue> | undefined;
|
|
655
656
|
creationDate?: string | undefined;
|
|
656
657
|
url?: string | undefined;
|
|
657
658
|
sizeIsDeferred?: boolean | undefined;
|
|
@@ -681,7 +682,7 @@ declare function createExtractTextNode(id: string, params?: ExtractTextNodeParam
|
|
|
681
682
|
retryDelay?: number;
|
|
682
683
|
exponentialBackoff?: boolean;
|
|
683
684
|
};
|
|
684
|
-
circuitBreaker?:
|
|
685
|
+
circuitBreaker?: _uploadista_core_flow0.FlowCircuitBreakerConfig;
|
|
685
686
|
} & {
|
|
686
687
|
type: NodeType.process;
|
|
687
688
|
}, UploadistaError, UploadEngine | DocumentPlugin>;
|
|
@@ -696,7 +697,7 @@ type MergePdfNodeParams = {
|
|
|
696
697
|
*/
|
|
697
698
|
naming?: FileNamingConfig;
|
|
698
699
|
};
|
|
699
|
-
declare function createMergePdfNode(id: string, params?: MergePdfNodeParams): Effect.Effect<
|
|
700
|
+
declare function createMergePdfNode(id: string, params?: MergePdfNodeParams): Effect.Effect<_uploadista_core_flow0.FlowNodeData & {
|
|
700
701
|
inputSchema: z.ZodType<{
|
|
701
702
|
id: string;
|
|
702
703
|
offset: number;
|
|
@@ -713,7 +714,7 @@ declare function createMergePdfNode(id: string, params?: MergePdfNodeParams): Ef
|
|
|
713
714
|
}[] | undefined;
|
|
714
715
|
};
|
|
715
716
|
size?: number | undefined;
|
|
716
|
-
metadata?: Record<string,
|
|
717
|
+
metadata?: Record<string, _uploadista_core_types0.JsonValue> | undefined;
|
|
717
718
|
creationDate?: string | undefined;
|
|
718
719
|
url?: string | undefined;
|
|
719
720
|
sizeIsDeferred?: boolean | undefined;
|
|
@@ -745,7 +746,7 @@ declare function createMergePdfNode(id: string, params?: MergePdfNodeParams): Ef
|
|
|
745
746
|
}[] | undefined;
|
|
746
747
|
};
|
|
747
748
|
size?: number | undefined;
|
|
748
|
-
metadata?: Record<string,
|
|
749
|
+
metadata?: Record<string, _uploadista_core_types0.JsonValue> | undefined;
|
|
749
750
|
creationDate?: string | undefined;
|
|
750
751
|
url?: string | undefined;
|
|
751
752
|
sizeIsDeferred?: boolean | undefined;
|
|
@@ -778,7 +779,7 @@ declare function createMergePdfNode(id: string, params?: MergePdfNodeParams): Ef
|
|
|
778
779
|
}[] | undefined;
|
|
779
780
|
};
|
|
780
781
|
size?: number | undefined;
|
|
781
|
-
metadata?: Record<string,
|
|
782
|
+
metadata?: Record<string, _uploadista_core_types0.JsonValue> | undefined;
|
|
782
783
|
creationDate?: string | undefined;
|
|
783
784
|
url?: string | undefined;
|
|
784
785
|
sizeIsDeferred?: boolean | undefined;
|
|
@@ -810,7 +811,7 @@ declare function createMergePdfNode(id: string, params?: MergePdfNodeParams): Ef
|
|
|
810
811
|
}[] | undefined;
|
|
811
812
|
};
|
|
812
813
|
size?: number | undefined;
|
|
813
|
-
metadata?: Record<string,
|
|
814
|
+
metadata?: Record<string, _uploadista_core_types0.JsonValue> | undefined;
|
|
814
815
|
creationDate?: string | undefined;
|
|
815
816
|
url?: string | undefined;
|
|
816
817
|
sizeIsDeferred?: boolean | undefined;
|
|
@@ -844,7 +845,7 @@ declare function createMergePdfNode(id: string, params?: MergePdfNodeParams): Ef
|
|
|
844
845
|
}[] | undefined;
|
|
845
846
|
};
|
|
846
847
|
size?: number | undefined;
|
|
847
|
-
metadata?: Record<string,
|
|
848
|
+
metadata?: Record<string, _uploadista_core_types0.JsonValue> | undefined;
|
|
848
849
|
creationDate?: string | undefined;
|
|
849
850
|
url?: string | undefined;
|
|
850
851
|
sizeIsDeferred?: boolean | undefined;
|
|
@@ -866,7 +867,7 @@ declare function createMergePdfNode(id: string, params?: MergePdfNodeParams): Ef
|
|
|
866
867
|
flowId: string;
|
|
867
868
|
inputs?: Record<string, unknown>;
|
|
868
869
|
clientId: string | null;
|
|
869
|
-
}) => Effect.Effect<
|
|
870
|
+
}) => Effect.Effect<_uploadista_core_flow0.NodeExecutionResult<{
|
|
870
871
|
id: string;
|
|
871
872
|
offset: number;
|
|
872
873
|
storage: {
|
|
@@ -882,7 +883,7 @@ declare function createMergePdfNode(id: string, params?: MergePdfNodeParams): Ef
|
|
|
882
883
|
}[] | undefined;
|
|
883
884
|
};
|
|
884
885
|
size?: number | undefined;
|
|
885
|
-
metadata?: Record<string,
|
|
886
|
+
metadata?: Record<string, _uploadista_core_types0.JsonValue> | undefined;
|
|
886
887
|
creationDate?: string | undefined;
|
|
887
888
|
url?: string | undefined;
|
|
888
889
|
sizeIsDeferred?: boolean | undefined;
|
|
@@ -912,7 +913,7 @@ declare function createMergePdfNode(id: string, params?: MergePdfNodeParams): Ef
|
|
|
912
913
|
retryDelay?: number;
|
|
913
914
|
exponentialBackoff?: boolean;
|
|
914
915
|
};
|
|
915
|
-
circuitBreaker?:
|
|
916
|
+
circuitBreaker?: _uploadista_core_flow0.FlowCircuitBreakerConfig;
|
|
916
917
|
} & {
|
|
917
918
|
type: NodeType.process;
|
|
918
919
|
}, UploadistaError, UploadEngine | DocumentPlugin>;
|
|
@@ -925,8 +926,8 @@ type OcrNodeParams = {
|
|
|
925
926
|
referenceText?: string;
|
|
926
927
|
keepOutput?: boolean;
|
|
927
928
|
};
|
|
928
|
-
declare function createOcrNode(id: string, params: OcrNodeParams): Effect.Effect<
|
|
929
|
-
inputSchema:
|
|
929
|
+
declare function createOcrNode(id: string, params: OcrNodeParams): Effect.Effect<_uploadista_core_flow0.FlowNodeData & {
|
|
930
|
+
inputSchema: zod.ZodType<{
|
|
930
931
|
id: string;
|
|
931
932
|
offset: number;
|
|
932
933
|
storage: {
|
|
@@ -942,7 +943,7 @@ declare function createOcrNode(id: string, params: OcrNodeParams): Effect.Effect
|
|
|
942
943
|
}[] | undefined;
|
|
943
944
|
};
|
|
944
945
|
size?: number | undefined;
|
|
945
|
-
metadata?: Record<string,
|
|
946
|
+
metadata?: Record<string, _uploadista_core_types0.JsonValue> | undefined;
|
|
946
947
|
creationDate?: string | undefined;
|
|
947
948
|
url?: string | undefined;
|
|
948
949
|
sizeIsDeferred?: boolean | undefined;
|
|
@@ -958,7 +959,7 @@ declare function createOcrNode(id: string, params: OcrNodeParams): Effect.Effect
|
|
|
958
959
|
spanId: string;
|
|
959
960
|
traceFlags: number;
|
|
960
961
|
} | undefined;
|
|
961
|
-
}, unknown,
|
|
962
|
+
}, unknown, zod_v4_core0.$ZodTypeInternals<{
|
|
962
963
|
id: string;
|
|
963
964
|
offset: number;
|
|
964
965
|
storage: {
|
|
@@ -974,7 +975,7 @@ declare function createOcrNode(id: string, params: OcrNodeParams): Effect.Effect
|
|
|
974
975
|
}[] | undefined;
|
|
975
976
|
};
|
|
976
977
|
size?: number | undefined;
|
|
977
|
-
metadata?: Record<string,
|
|
978
|
+
metadata?: Record<string, _uploadista_core_types0.JsonValue> | undefined;
|
|
978
979
|
creationDate?: string | undefined;
|
|
979
980
|
url?: string | undefined;
|
|
980
981
|
sizeIsDeferred?: boolean | undefined;
|
|
@@ -991,12 +992,12 @@ declare function createOcrNode(id: string, params: OcrNodeParams): Effect.Effect
|
|
|
991
992
|
traceFlags: number;
|
|
992
993
|
} | undefined;
|
|
993
994
|
}, unknown>>;
|
|
994
|
-
outputSchema:
|
|
995
|
+
outputSchema: zod.ZodType<{
|
|
995
996
|
extractedText: string;
|
|
996
997
|
format: "markdown" | "plain" | "structured";
|
|
997
998
|
taskType: "convertToMarkdown" | "freeOcr" | "parseFigure" | "locateObject";
|
|
998
999
|
confidence?: number | undefined;
|
|
999
|
-
}, unknown,
|
|
1000
|
+
}, unknown, zod_v4_core0.$ZodTypeInternals<{
|
|
1000
1001
|
extractedText: string;
|
|
1001
1002
|
format: "markdown" | "plain" | "structured";
|
|
1002
1003
|
taskType: "convertToMarkdown" | "freeOcr" | "parseFigure" | "locateObject";
|
|
@@ -1019,7 +1020,7 @@ declare function createOcrNode(id: string, params: OcrNodeParams): Effect.Effect
|
|
|
1019
1020
|
}[] | undefined;
|
|
1020
1021
|
};
|
|
1021
1022
|
size?: number | undefined;
|
|
1022
|
-
metadata?: Record<string,
|
|
1023
|
+
metadata?: Record<string, _uploadista_core_types0.JsonValue> | undefined;
|
|
1023
1024
|
creationDate?: string | undefined;
|
|
1024
1025
|
url?: string | undefined;
|
|
1025
1026
|
sizeIsDeferred?: boolean | undefined;
|
|
@@ -1041,7 +1042,7 @@ declare function createOcrNode(id: string, params: OcrNodeParams): Effect.Effect
|
|
|
1041
1042
|
flowId: string;
|
|
1042
1043
|
inputs?: Record<string, unknown>;
|
|
1043
1044
|
clientId: string | null;
|
|
1044
|
-
}) => Effect.Effect<
|
|
1045
|
+
}) => Effect.Effect<_uploadista_core_flow0.NodeExecutionResult<{
|
|
1045
1046
|
extractedText: string;
|
|
1046
1047
|
format: "markdown" | "plain" | "structured";
|
|
1047
1048
|
taskType: "convertToMarkdown" | "freeOcr" | "parseFigure" | "locateObject";
|
|
@@ -1060,7 +1061,7 @@ declare function createOcrNode(id: string, params: OcrNodeParams): Effect.Effect
|
|
|
1060
1061
|
retryDelay?: number;
|
|
1061
1062
|
exponentialBackoff?: boolean;
|
|
1062
1063
|
};
|
|
1063
|
-
circuitBreaker?:
|
|
1064
|
+
circuitBreaker?: _uploadista_core_flow0.FlowCircuitBreakerConfig;
|
|
1064
1065
|
} & {
|
|
1065
1066
|
type: NodeType.process;
|
|
1066
1067
|
}, UploadistaError, DocumentAiPlugin>;
|
|
@@ -1077,8 +1078,8 @@ type SplitPdfNodeParams = {
|
|
|
1077
1078
|
*/
|
|
1078
1079
|
naming?: FileNamingConfig;
|
|
1079
1080
|
};
|
|
1080
|
-
declare function createSplitPdfNode(id: string, params: SplitPdfNodeParams): Effect.Effect<
|
|
1081
|
-
inputSchema:
|
|
1081
|
+
declare function createSplitPdfNode(id: string, params: SplitPdfNodeParams): Effect.Effect<_uploadista_core_flow0.FlowNodeData & {
|
|
1082
|
+
inputSchema: zod.ZodType<{
|
|
1082
1083
|
id: string;
|
|
1083
1084
|
offset: number;
|
|
1084
1085
|
storage: {
|
|
@@ -1094,7 +1095,7 @@ declare function createSplitPdfNode(id: string, params: SplitPdfNodeParams): Eff
|
|
|
1094
1095
|
}[] | undefined;
|
|
1095
1096
|
};
|
|
1096
1097
|
size?: number | undefined;
|
|
1097
|
-
metadata?: Record<string,
|
|
1098
|
+
metadata?: Record<string, _uploadista_core_types0.JsonValue> | undefined;
|
|
1098
1099
|
creationDate?: string | undefined;
|
|
1099
1100
|
url?: string | undefined;
|
|
1100
1101
|
sizeIsDeferred?: boolean | undefined;
|
|
@@ -1110,7 +1111,7 @@ declare function createSplitPdfNode(id: string, params: SplitPdfNodeParams): Eff
|
|
|
1110
1111
|
spanId: string;
|
|
1111
1112
|
traceFlags: number;
|
|
1112
1113
|
} | undefined;
|
|
1113
|
-
}, unknown,
|
|
1114
|
+
}, unknown, zod_v4_core0.$ZodTypeInternals<{
|
|
1114
1115
|
id: string;
|
|
1115
1116
|
offset: number;
|
|
1116
1117
|
storage: {
|
|
@@ -1126,7 +1127,7 @@ declare function createSplitPdfNode(id: string, params: SplitPdfNodeParams): Eff
|
|
|
1126
1127
|
}[] | undefined;
|
|
1127
1128
|
};
|
|
1128
1129
|
size?: number | undefined;
|
|
1129
|
-
metadata?: Record<string,
|
|
1130
|
+
metadata?: Record<string, _uploadista_core_types0.JsonValue> | undefined;
|
|
1130
1131
|
creationDate?: string | undefined;
|
|
1131
1132
|
url?: string | undefined;
|
|
1132
1133
|
sizeIsDeferred?: boolean | undefined;
|
|
@@ -1143,7 +1144,7 @@ declare function createSplitPdfNode(id: string, params: SplitPdfNodeParams): Eff
|
|
|
1143
1144
|
traceFlags: number;
|
|
1144
1145
|
} | undefined;
|
|
1145
1146
|
}, unknown>>;
|
|
1146
|
-
outputSchema:
|
|
1147
|
+
outputSchema: zod.ZodType<{
|
|
1147
1148
|
id: string;
|
|
1148
1149
|
offset: number;
|
|
1149
1150
|
storage: {
|
|
@@ -1159,7 +1160,7 @@ declare function createSplitPdfNode(id: string, params: SplitPdfNodeParams): Eff
|
|
|
1159
1160
|
}[] | undefined;
|
|
1160
1161
|
};
|
|
1161
1162
|
size?: number | undefined;
|
|
1162
|
-
metadata?: Record<string,
|
|
1163
|
+
metadata?: Record<string, _uploadista_core_types0.JsonValue> | undefined;
|
|
1163
1164
|
creationDate?: string | undefined;
|
|
1164
1165
|
url?: string | undefined;
|
|
1165
1166
|
sizeIsDeferred?: boolean | undefined;
|
|
@@ -1175,7 +1176,7 @@ declare function createSplitPdfNode(id: string, params: SplitPdfNodeParams): Eff
|
|
|
1175
1176
|
spanId: string;
|
|
1176
1177
|
traceFlags: number;
|
|
1177
1178
|
} | undefined;
|
|
1178
|
-
}, unknown,
|
|
1179
|
+
}, unknown, zod_v4_core0.$ZodTypeInternals<{
|
|
1179
1180
|
id: string;
|
|
1180
1181
|
offset: number;
|
|
1181
1182
|
storage: {
|
|
@@ -1191,7 +1192,7 @@ declare function createSplitPdfNode(id: string, params: SplitPdfNodeParams): Eff
|
|
|
1191
1192
|
}[] | undefined;
|
|
1192
1193
|
};
|
|
1193
1194
|
size?: number | undefined;
|
|
1194
|
-
metadata?: Record<string,
|
|
1195
|
+
metadata?: Record<string, _uploadista_core_types0.JsonValue> | undefined;
|
|
1195
1196
|
creationDate?: string | undefined;
|
|
1196
1197
|
url?: string | undefined;
|
|
1197
1198
|
sizeIsDeferred?: boolean | undefined;
|
|
@@ -1225,7 +1226,7 @@ declare function createSplitPdfNode(id: string, params: SplitPdfNodeParams): Eff
|
|
|
1225
1226
|
}[] | undefined;
|
|
1226
1227
|
};
|
|
1227
1228
|
size?: number | undefined;
|
|
1228
|
-
metadata?: Record<string,
|
|
1229
|
+
metadata?: Record<string, _uploadista_core_types0.JsonValue> | undefined;
|
|
1229
1230
|
creationDate?: string | undefined;
|
|
1230
1231
|
url?: string | undefined;
|
|
1231
1232
|
sizeIsDeferred?: boolean | undefined;
|
|
@@ -1247,7 +1248,7 @@ declare function createSplitPdfNode(id: string, params: SplitPdfNodeParams): Eff
|
|
|
1247
1248
|
flowId: string;
|
|
1248
1249
|
inputs?: Record<string, unknown>;
|
|
1249
1250
|
clientId: string | null;
|
|
1250
|
-
}) => Effect.Effect<
|
|
1251
|
+
}) => Effect.Effect<_uploadista_core_flow0.NodeExecutionResult<{
|
|
1251
1252
|
id: string;
|
|
1252
1253
|
offset: number;
|
|
1253
1254
|
storage: {
|
|
@@ -1263,7 +1264,7 @@ declare function createSplitPdfNode(id: string, params: SplitPdfNodeParams): Eff
|
|
|
1263
1264
|
}[] | undefined;
|
|
1264
1265
|
};
|
|
1265
1266
|
size?: number | undefined;
|
|
1266
|
-
metadata?: Record<string,
|
|
1267
|
+
metadata?: Record<string, _uploadista_core_types0.JsonValue> | undefined;
|
|
1267
1268
|
creationDate?: string | undefined;
|
|
1268
1269
|
url?: string | undefined;
|
|
1269
1270
|
sizeIsDeferred?: boolean | undefined;
|
|
@@ -1293,7 +1294,7 @@ declare function createSplitPdfNode(id: string, params: SplitPdfNodeParams): Eff
|
|
|
1293
1294
|
retryDelay?: number;
|
|
1294
1295
|
exponentialBackoff?: boolean;
|
|
1295
1296
|
};
|
|
1296
|
-
circuitBreaker?:
|
|
1297
|
+
circuitBreaker?: _uploadista_core_flow0.FlowCircuitBreakerConfig;
|
|
1297
1298
|
} & {
|
|
1298
1299
|
type: NodeType.process;
|
|
1299
1300
|
}, UploadistaError, UploadEngine | DocumentPlugin>;
|
package/dist/index.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","names":[],"sources":["../src/convert-to-markdown-node.ts","../src/describe-document-node.ts","../src/extract-text-node.ts","../src/merge-pdf-node.ts","../src/ocr-node.ts","../src/split-pdf-node.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.mts","names":[],"sources":["../src/convert-to-markdown-node.ts","../src/describe-document-node.ts","../src/extract-text-node.ts","../src/merge-pdf-node.ts","../src/ocr-node.ts","../src/split-pdf-node.ts"],"mappings":"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"}
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as e,i as t,n,o as r,r as i,t as a}from"./
|
|
1
|
+
import{a as e,i as t,n,o as r,r as i,t as a}from"./split-pdf-node-lCLhevrT.mjs";import"./types/index.mjs";import{UploadistaError as o}from"@uploadista/core/errors";import{DocumentAiPlugin as s,DocumentPlugin as c,NodeType as l,OCR_OUTPUT_TYPE_ID as u,STORAGE_OUTPUT_TYPE_ID as d,applyFileNaming as f,buildNamingContext as p,completeNodeExecution as m,createFlowNode as h,getBaseName as g,ocrOutputSchema as _,resolveUploadMetadata as v}from"@uploadista/core/flow";import{uploadFileSchema as y}from"@uploadista/core/types";import{UploadEngine as b}from"@uploadista/core/upload";import{Effect as x,Either as S}from"effect";import{z as C}from"zod";function w(e,t={}){return x.gen(function*(){let n=yield*c,r=yield*s,i=yield*b;return yield*h({id:e,name:`Convert to Markdown`,description:`Convert documents to Markdown format (intelligently uses OCR if needed)`,type:l.process,nodeTypeId:`convert-to-markdown`,outputTypeId:d,keepOutput:t.keepOutput,inputSchema:y,outputSchema:y,circuitBreaker:{enabled:!0,failureThreshold:5,resetTimeout:6e4,fallback:{type:`skip`,passThrough:!0}},run:({data:a,flowId:s,jobId:c,clientId:l})=>x.gen(function*(){let u={flowId:s,nodeId:e,jobId:c};yield*x.logInfo(`Converting file ${a.id} to Markdown`);let d=yield*i.read(a.id,l),f=yield*n.extractText(d).pipe(x.either),p,h;if(S.isRight(f)&&f.right.trim().length>0){let e=f.right;yield*x.logInfo(`Successfully extracted ${e.length} characters from searchable PDF`),p=e.split(`
|
|
2
2
|
|
|
3
3
|
`).map(e=>e.trim()).filter(e=>e.length>0).join(`
|
|
4
4
|
|