@uploadista/core 1.0.0-beta.3 → 1.0.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/dist/{checksum-BRjFmTRk.mjs → checksum-BjBRZIT-.mjs} +2 -2
- package/dist/{checksum-BRjFmTRk.mjs.map → checksum-BjBRZIT-.mjs.map} +1 -1
- package/dist/checksum-MAHKDZRq.cjs +1 -0
- package/dist/errors/index.cjs +1 -1
- package/dist/errors/index.d.cts +1 -1
- package/dist/errors/index.d.mts +1 -1
- package/dist/errors/index.mjs +1 -1
- package/dist/flow/index.cjs +1 -1
- package/dist/flow/index.d.cts +3 -3
- package/dist/flow/index.d.mts +3 -8
- package/dist/flow/index.mjs +1 -1
- package/dist/flow-BAYnF4vh.cjs +1 -0
- package/dist/flow-BLK5x1LF.mjs +2 -0
- package/dist/flow-BLK5x1LF.mjs.map +1 -0
- package/dist/{generate-id-DuZwLm4m.d.mts → generate-id-ByeNC8nU.d.cts} +1 -1
- package/dist/generate-id-ByeNC8nU.d.cts.map +1 -0
- package/dist/{generate-id-BAMRQzMr.d.cts → generate-id-ByeNC8nU.d.mts} +1 -1
- package/dist/generate-id-ByeNC8nU.d.mts.map +1 -0
- package/dist/{throttle-3FRcr7MU.d.mts → index-BPvb7plJ.d.cts} +2 -2
- package/dist/index-BPvb7plJ.d.cts.map +1 -0
- package/dist/index-BVVgDSdq.d.cts +1 -0
- package/dist/index-BVVgDSdq.d.mts +1 -0
- package/dist/{middleware-BghazxzH.d.cts → index-Ce8IxXxR.d.mts} +297 -297
- package/dist/index-Ce8IxXxR.d.mts.map +1 -0
- package/dist/{throttle-BlH27EGu.d.cts → index-DIbUBwpn.d.mts} +2 -2
- package/dist/index-DIbUBwpn.d.mts.map +1 -0
- package/dist/{stream-limiter-7wkBVLWT.d.mts → index-DL2Q2cli.d.cts} +2 -2
- package/dist/index-DL2Q2cli.d.cts.map +1 -0
- package/dist/{stream-limiter-D1KC-6pK.d.cts → index-DUcqG0NR.d.mts} +2 -2
- package/dist/index-DUcqG0NR.d.mts.map +1 -0
- package/dist/{upload-strategy-negotiator-CEnlfVgJ.d.mts → index-DiZp8FJs.d.mts} +4 -4
- package/dist/index-DiZp8FJs.d.mts.map +1 -0
- package/dist/{resolve-upload-metadata-CYl2PHIs.d.mts → index-Dl4AtGUF.d.cts} +388 -390
- package/dist/index-Dl4AtGUF.d.cts.map +1 -0
- package/dist/{resolve-upload-metadata-D0qFuyWc.d.cts → index-_IkOrjon.d.mts} +388 -390
- package/dist/index-_IkOrjon.d.mts.map +1 -0
- package/dist/{middleware-CYizzAhP.d.mts → index-_Q4OxX9Y.d.cts} +297 -297
- package/dist/index-_Q4OxX9Y.d.cts.map +1 -0
- package/dist/{upload-strategy-negotiator-0-dpNIce.d.cts → index-zjG37VoL.d.cts} +4 -4
- package/dist/index-zjG37VoL.d.cts.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +7 -7
- package/dist/index.d.mts +7 -13
- package/dist/index.mjs +1 -1
- package/dist/stream-limiter-BIS16qEm.cjs +1 -0
- package/dist/{stream-limiter-CvDuNIyd.mjs → stream-limiter-CnjPsRPU.mjs} +2 -2
- package/dist/{stream-limiter-CvDuNIyd.mjs.map → stream-limiter-CnjPsRPU.mjs.map} +1 -1
- package/dist/streams/index.cjs +1 -1
- package/dist/streams/index.d.cts +1 -1
- package/dist/streams/index.d.mts +1 -2
- package/dist/streams/index.mjs +1 -1
- package/dist/testing/index.cjs +3 -3
- package/dist/testing/index.d.cts +2 -2
- package/dist/testing/index.d.cts.map +1 -1
- package/dist/testing/index.d.mts +2 -9
- package/dist/testing/index.d.mts.map +1 -1
- package/dist/testing/index.mjs +1 -1
- package/dist/testing/index.mjs.map +1 -1
- package/dist/types/index.cjs +1 -1
- package/dist/types/index.d.cts +1 -1
- package/dist/types/index.d.mts +1 -2
- package/dist/types/index.mjs +2 -1
- package/dist/types/index.mjs.map +1 -0
- package/dist/upload/index.cjs +1 -1
- package/dist/upload/index.d.cts +1 -1
- package/dist/upload/index.d.mts +1 -4
- package/dist/upload/index.mjs +1 -1
- package/dist/upload-DiHATxK7.cjs +1 -0
- package/dist/upload-pYFcRQoJ.mjs +2 -0
- package/dist/upload-pYFcRQoJ.mjs.map +1 -0
- package/dist/{uploadista-error-DQ7V1FlX.mjs → uploadista-error-C2T7YDIc.mjs} +1 -1
- package/dist/{uploadista-error-DQ7V1FlX.mjs.map → uploadista-error-C2T7YDIc.mjs.map} +1 -1
- package/dist/{uploadista-error-CZx1JU_L.cjs → uploadista-error-C6mqvnK_.cjs} +2 -2
- package/dist/{uploadista-error-LtiZn-R_.d.mts → uploadista-error-CT_B4E7l.d.cts} +2 -4
- package/dist/uploadista-error-CT_B4E7l.d.cts.map +1 -0
- package/dist/{uploadista-error-eZtG4iyf.d.cts → uploadista-error-CT_B4E7l.d.mts} +2 -4
- package/dist/uploadista-error-CT_B4E7l.d.mts.map +1 -0
- package/dist/utils/index.cjs +1 -1
- package/dist/utils/index.d.cts +2 -2
- package/dist/utils/index.d.mts +2 -3
- package/dist/utils/index.mjs +1 -1
- package/dist/utils-BnznIfIx.mjs +2 -0
- package/dist/utils-BnznIfIx.mjs.map +1 -0
- package/dist/utils-DJcyg79C.cjs +1 -0
- package/package.json +7 -7
- package/src/flow/flow-engine.ts +12 -8
- package/src/flow/flow-queue-store.ts +12 -6
- package/src/flow/flow-queue.ts +86 -90
- package/src/flow/flow.ts +7 -8
- package/src/flow/index.ts +3 -2
- package/src/flow/types/flow-queue-item.ts +5 -1
- package/src/flow/types/flow-types.ts +1 -1
- package/src/flow/types/type-utils.ts +2 -5
- package/tsconfig.json +0 -1
- package/dist/checksum-BrjQ8GJL.cjs +0 -1
- package/dist/generate-id-BAMRQzMr.d.cts.map +0 -1
- package/dist/generate-id-DuZwLm4m.d.mts.map +0 -1
- package/dist/middleware-BghazxzH.d.cts.map +0 -1
- package/dist/middleware-CYizzAhP.d.mts.map +0 -1
- package/dist/resolve-upload-metadata-CYl2PHIs.d.mts.map +0 -1
- package/dist/resolve-upload-metadata-D0qFuyWc.d.cts.map +0 -1
- package/dist/run-args-CM14Vtzu.cjs +0 -1
- package/dist/run-args-DSKHoSWs.mjs +0 -2
- package/dist/run-args-DSKHoSWs.mjs.map +0 -1
- package/dist/stream-limiter-7wkBVLWT.d.mts.map +0 -1
- package/dist/stream-limiter-B-Y0DTgA.cjs +0 -1
- package/dist/stream-limiter-D1KC-6pK.d.cts.map +0 -1
- package/dist/throttle-3FRcr7MU.d.mts.map +0 -1
- package/dist/throttle-BlH27EGu.d.cts.map +0 -1
- package/dist/throttle-Dp59f37i.cjs +0 -1
- package/dist/throttle-TFY-V41R.mjs +0 -2
- package/dist/throttle-TFY-V41R.mjs.map +0 -1
- package/dist/upload-strategy-negotiator-0-dpNIce.d.cts.map +0 -1
- package/dist/upload-strategy-negotiator-BR_o1Ez8.cjs +0 -1
- package/dist/upload-strategy-negotiator-C9MeoOnW.mjs +0 -2
- package/dist/upload-strategy-negotiator-C9MeoOnW.mjs.map +0 -1
- package/dist/upload-strategy-negotiator-CEnlfVgJ.d.mts.map +0 -1
- package/dist/uploadista-error-LtiZn-R_.d.mts.map +0 -1
- package/dist/uploadista-error-eZtG4iyf.d.cts.map +0 -1
- package/dist/websocket-Br0ijEZA.cjs +0 -1
- package/dist/websocket-DftnHFfN.mjs +0 -2
- package/dist/websocket-DftnHFfN.mjs.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as UploadistaError } from "./uploadista-error-
|
|
1
|
+
import { n as UploadistaError } from "./uploadista-error-CT_B4E7l.mjs";
|
|
2
2
|
import { Context, Effect, Layer, Stream } from "effect";
|
|
3
|
-
import z
|
|
3
|
+
import z, { z as z$1 } from "zod";
|
|
4
4
|
|
|
5
5
|
//#region src/types/circuit-breaker-store.d.ts
|
|
6
6
|
/**
|
|
@@ -414,11 +414,11 @@ interface DeadLetterProcessResult {
|
|
|
414
414
|
/**
|
|
415
415
|
* Zod schema for trace context used in distributed tracing.
|
|
416
416
|
*/
|
|
417
|
-
declare const traceContextSchema: z.ZodObject<{
|
|
418
|
-
traceId: z.ZodString;
|
|
419
|
-
spanId: z.ZodString;
|
|
420
|
-
traceFlags: z.ZodNumber;
|
|
421
|
-
}, z.core.$strip>;
|
|
417
|
+
declare const traceContextSchema: z$1.ZodObject<{
|
|
418
|
+
traceId: z$1.ZodString;
|
|
419
|
+
spanId: z$1.ZodString;
|
|
420
|
+
traceFlags: z$1.ZodNumber;
|
|
421
|
+
}, z$1.core.$strip>;
|
|
422
422
|
/**
|
|
423
423
|
* JSON value type that allows any JSON-serializable data.
|
|
424
424
|
* Used for metadata values which can be primitives, arrays, or nested objects.
|
|
@@ -430,40 +430,40 @@ type JsonValue = string | number | boolean | null | JsonValue[] | {
|
|
|
430
430
|
* JSON value schema that allows any JSON-serializable data.
|
|
431
431
|
* This is used for metadata values which can be primitives, arrays, or objects.
|
|
432
432
|
*/
|
|
433
|
-
declare const jsonValueSchema: z.ZodType<JsonValue>;
|
|
434
|
-
declare const uploadFileSchema: z.ZodObject<{
|
|
435
|
-
id: z.ZodString;
|
|
436
|
-
size: z.ZodOptional<z.ZodNumber>;
|
|
437
|
-
offset: z.ZodNumber;
|
|
438
|
-
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>>;
|
|
439
|
-
creationDate: z.ZodOptional<z.ZodString>;
|
|
440
|
-
url: z.ZodOptional<z.ZodString>;
|
|
441
|
-
sizeIsDeferred: z.ZodOptional<z.ZodBoolean>;
|
|
442
|
-
checksum: z.ZodOptional<z.ZodString>;
|
|
443
|
-
checksumAlgorithm: z.ZodOptional<z.ZodString>;
|
|
444
|
-
storage: z.ZodObject<{
|
|
445
|
-
id: z.ZodString;
|
|
446
|
-
type: z.ZodString;
|
|
447
|
-
path: z.ZodOptional<z.ZodString>;
|
|
448
|
-
uploadId: z.ZodOptional<z.ZodString>;
|
|
449
|
-
bucket: z.ZodOptional<z.ZodString>;
|
|
450
|
-
parts: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
451
|
-
partNumber: z.ZodNumber;
|
|
452
|
-
etag: z.ZodString;
|
|
453
|
-
size: z.ZodNumber;
|
|
454
|
-
}, z.core.$strip>>>;
|
|
455
|
-
}, z.core.$strip>;
|
|
456
|
-
flow: z.ZodOptional<z.ZodObject<{
|
|
457
|
-
flowId: z.ZodString;
|
|
458
|
-
nodeId: z.ZodString;
|
|
459
|
-
jobId: z.ZodString;
|
|
460
|
-
}, z.core.$strip>>;
|
|
461
|
-
traceContext: z.ZodOptional<z.ZodObject<{
|
|
462
|
-
traceId: z.ZodString;
|
|
463
|
-
spanId: z.ZodString;
|
|
464
|
-
traceFlags: z.ZodNumber;
|
|
465
|
-
}, z.core.$strip>>;
|
|
466
|
-
}, z.core.$strip>;
|
|
433
|
+
declare const jsonValueSchema: z$1.ZodType<JsonValue>;
|
|
434
|
+
declare const uploadFileSchema: z$1.ZodObject<{
|
|
435
|
+
id: z$1.ZodString;
|
|
436
|
+
size: z$1.ZodOptional<z$1.ZodNumber>;
|
|
437
|
+
offset: z$1.ZodNumber;
|
|
438
|
+
metadata: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodType<JsonValue, unknown, z$1.core.$ZodTypeInternals<JsonValue, unknown>>>>;
|
|
439
|
+
creationDate: z$1.ZodOptional<z$1.ZodString>;
|
|
440
|
+
url: z$1.ZodOptional<z$1.ZodString>;
|
|
441
|
+
sizeIsDeferred: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
442
|
+
checksum: z$1.ZodOptional<z$1.ZodString>;
|
|
443
|
+
checksumAlgorithm: z$1.ZodOptional<z$1.ZodString>;
|
|
444
|
+
storage: z$1.ZodObject<{
|
|
445
|
+
id: z$1.ZodString;
|
|
446
|
+
type: z$1.ZodString;
|
|
447
|
+
path: z$1.ZodOptional<z$1.ZodString>;
|
|
448
|
+
uploadId: z$1.ZodOptional<z$1.ZodString>;
|
|
449
|
+
bucket: z$1.ZodOptional<z$1.ZodString>;
|
|
450
|
+
parts: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
|
|
451
|
+
partNumber: z$1.ZodNumber;
|
|
452
|
+
etag: z$1.ZodString;
|
|
453
|
+
size: z$1.ZodNumber;
|
|
454
|
+
}, z$1.core.$strip>>>;
|
|
455
|
+
}, z$1.core.$strip>;
|
|
456
|
+
flow: z$1.ZodOptional<z$1.ZodObject<{
|
|
457
|
+
flowId: z$1.ZodString;
|
|
458
|
+
nodeId: z$1.ZodString;
|
|
459
|
+
jobId: z$1.ZodString;
|
|
460
|
+
}, z$1.core.$strip>>;
|
|
461
|
+
traceContext: z$1.ZodOptional<z$1.ZodObject<{
|
|
462
|
+
traceId: z$1.ZodString;
|
|
463
|
+
spanId: z$1.ZodString;
|
|
464
|
+
traceFlags: z$1.ZodNumber;
|
|
465
|
+
}, z$1.core.$strip>>;
|
|
466
|
+
}, z$1.core.$strip>;
|
|
467
467
|
/**
|
|
468
468
|
* Represents an uploaded file with its metadata and storage information.
|
|
469
469
|
*
|
|
@@ -708,8 +708,8 @@ declare function createFlowNode<Input, Output, TType extends NodeType = NodeType
|
|
|
708
708
|
name: string;
|
|
709
709
|
description: string;
|
|
710
710
|
type: TType;
|
|
711
|
-
inputSchema: z.ZodSchema<Input>;
|
|
712
|
-
outputSchema: z.ZodSchema<Output>;
|
|
711
|
+
inputSchema: z$1.ZodSchema<Input>;
|
|
712
|
+
outputSchema: z$1.ZodSchema<Output>;
|
|
713
713
|
run: (args: {
|
|
714
714
|
data: Input;
|
|
715
715
|
jobId: string;
|
|
@@ -1607,8 +1607,8 @@ declare const waitingNodeExecution: (partialData?: unknown) => {
|
|
|
1607
1607
|
* @see {@link FlowCondition} for conditional execution
|
|
1608
1608
|
*/
|
|
1609
1609
|
type FlowNode<TInput = unknown, TOutput = unknown, TError = UploadistaError> = FlowNodeData & {
|
|
1610
|
-
inputSchema: z.ZodSchema<TInput>;
|
|
1611
|
-
outputSchema: z.ZodSchema<TOutput>;
|
|
1610
|
+
inputSchema: z$1.ZodSchema<TInput>;
|
|
1611
|
+
outputSchema: z$1.ZodSchema<TOutput>;
|
|
1612
1612
|
run: (args: {
|
|
1613
1613
|
data: TInput;
|
|
1614
1614
|
jobId: string;
|
|
@@ -1683,7 +1683,7 @@ type FlowEdge = {
|
|
|
1683
1683
|
*
|
|
1684
1684
|
* @see {@link FlowTypeValidator} for the default implementation
|
|
1685
1685
|
*/
|
|
1686
|
-
type TypeCompatibilityChecker = (from: z.ZodSchema<any>, to: z.ZodSchema<any>) => boolean;
|
|
1686
|
+
type TypeCompatibilityChecker = (from: z$1.ZodSchema<any>, to: z$1.ZodSchema<any>) => boolean;
|
|
1687
1687
|
/**
|
|
1688
1688
|
* Interface for validating node connections and schema compatibility.
|
|
1689
1689
|
*
|
|
@@ -1695,7 +1695,7 @@ type TypeCompatibilityChecker = (from: z.ZodSchema<any>, to: z.ZodSchema<any>) =
|
|
|
1695
1695
|
*/
|
|
1696
1696
|
type NodeConnectionValidator = {
|
|
1697
1697
|
validateConnection: (sourceNode: FlowNode<any, any>, targetNode: FlowNode<any, any>, edge: FlowEdge) => boolean;
|
|
1698
|
-
getCompatibleTypes: (sourceSchema: z.ZodSchema<any>, targetSchema: z.ZodSchema<any>) => boolean;
|
|
1698
|
+
getCompatibleTypes: (sourceSchema: z$1.ZodSchema<any>, targetSchema: z$1.ZodSchema<any>) => boolean;
|
|
1699
1699
|
};
|
|
1700
1700
|
/**
|
|
1701
1701
|
* Fallback behavior when circuit is open.
|
|
@@ -1851,7 +1851,7 @@ interface FlowDeadLetterQueueConfig {
|
|
|
1851
1851
|
* @see {@link FlowNode} for node specifications
|
|
1852
1852
|
* @see {@link FlowEdge} for edge specifications
|
|
1853
1853
|
*/
|
|
1854
|
-
type FlowConfig<TFlowInputSchema extends z.ZodSchema<any>, TFlowOutputSchema extends z.ZodSchema<any>, TNodeError = never, TNodeRequirements = never> = {
|
|
1854
|
+
type FlowConfig<TFlowInputSchema extends z$1.ZodSchema<any>, TFlowOutputSchema extends z$1.ZodSchema<any>, TNodeError = never, TNodeRequirements = never> = {
|
|
1855
1855
|
flowId: string;
|
|
1856
1856
|
name: string;
|
|
1857
1857
|
nodes: Array<FlowNode<any, any, UploadistaError> | Effect.Effect<FlowNode<any, any, UploadistaError>, TNodeError, TNodeRequirements>>;
|
|
@@ -3209,110 +3209,110 @@ declare enum UploadEventType {
|
|
|
3209
3209
|
UPLOAD_VALIDATION_FAILED = "upload-validation-failed",
|
|
3210
3210
|
UPLOAD_VALIDATION_WARNING = "upload-validation-warning"
|
|
3211
3211
|
}
|
|
3212
|
-
declare const uploadEventSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
3213
|
-
type: z.ZodUnion<readonly [z.ZodLiteral<UploadEventType.UPLOAD_STARTED>, z.ZodLiteral<UploadEventType.UPLOAD_COMPLETE>]>;
|
|
3214
|
-
data: z.ZodObject<{
|
|
3215
|
-
id: z.ZodString;
|
|
3216
|
-
size: z.ZodOptional<z.ZodNumber>;
|
|
3217
|
-
offset: z.ZodNumber;
|
|
3218
|
-
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>>;
|
|
3219
|
-
creationDate: z.ZodOptional<z.ZodString>;
|
|
3220
|
-
url: z.ZodOptional<z.ZodString>;
|
|
3221
|
-
sizeIsDeferred: z.ZodOptional<z.ZodBoolean>;
|
|
3222
|
-
checksum: z.ZodOptional<z.ZodString>;
|
|
3223
|
-
checksumAlgorithm: z.ZodOptional<z.ZodString>;
|
|
3224
|
-
storage: z.ZodObject<{
|
|
3225
|
-
id: z.ZodString;
|
|
3226
|
-
type: z.ZodString;
|
|
3227
|
-
path: z.ZodOptional<z.ZodString>;
|
|
3228
|
-
uploadId: z.ZodOptional<z.ZodString>;
|
|
3229
|
-
bucket: z.ZodOptional<z.ZodString>;
|
|
3230
|
-
parts: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3231
|
-
partNumber: z.ZodNumber;
|
|
3232
|
-
etag: z.ZodString;
|
|
3233
|
-
size: z.ZodNumber;
|
|
3234
|
-
}, z.core.$strip>>>;
|
|
3235
|
-
}, z.core.$strip>;
|
|
3236
|
-
flow: z.ZodOptional<z.ZodObject<{
|
|
3237
|
-
flowId: z.ZodString;
|
|
3238
|
-
nodeId: z.ZodString;
|
|
3239
|
-
jobId: z.ZodString;
|
|
3240
|
-
}, z.core.$strip>>;
|
|
3241
|
-
traceContext: z.ZodOptional<z.ZodObject<{
|
|
3242
|
-
traceId: z.ZodString;
|
|
3243
|
-
spanId: z.ZodString;
|
|
3244
|
-
traceFlags: z.ZodNumber;
|
|
3245
|
-
}, z.core.$strip>>;
|
|
3246
|
-
}, z.core.$strip>;
|
|
3247
|
-
flow: z.ZodOptional<z.ZodObject<{
|
|
3248
|
-
flowId: z.ZodString;
|
|
3249
|
-
nodeId: z.ZodString;
|
|
3250
|
-
jobId: z.ZodString;
|
|
3251
|
-
}, z.core.$strip>>;
|
|
3252
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
3253
|
-
type: z.ZodLiteral<UploadEventType.UPLOAD_PROGRESS>;
|
|
3254
|
-
data: z.ZodObject<{
|
|
3255
|
-
id: z.ZodString;
|
|
3256
|
-
progress: z.ZodNumber;
|
|
3257
|
-
total: z.ZodNumber;
|
|
3258
|
-
}, z.core.$strip>;
|
|
3259
|
-
flow: z.ZodOptional<z.ZodObject<{
|
|
3260
|
-
flowId: z.ZodString;
|
|
3261
|
-
nodeId: z.ZodString;
|
|
3262
|
-
jobId: z.ZodString;
|
|
3263
|
-
}, z.core.$strip>>;
|
|
3264
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
3265
|
-
type: z.ZodLiteral<UploadEventType.UPLOAD_FAILED>;
|
|
3266
|
-
data: z.ZodObject<{
|
|
3267
|
-
id: z.ZodString;
|
|
3268
|
-
error: z.ZodString;
|
|
3269
|
-
}, z.core.$strip>;
|
|
3270
|
-
flow: z.ZodOptional<z.ZodObject<{
|
|
3271
|
-
flowId: z.ZodString;
|
|
3272
|
-
nodeId: z.ZodString;
|
|
3273
|
-
jobId: z.ZodString;
|
|
3274
|
-
}, z.core.$strip>>;
|
|
3275
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
3276
|
-
type: z.ZodLiteral<UploadEventType.UPLOAD_VALIDATION_SUCCESS>;
|
|
3277
|
-
data: z.ZodObject<{
|
|
3278
|
-
id: z.ZodString;
|
|
3279
|
-
validationType: z.ZodEnum<{
|
|
3212
|
+
declare const uploadEventSchema: z$1.ZodUnion<readonly [z$1.ZodObject<{
|
|
3213
|
+
type: z$1.ZodUnion<readonly [z$1.ZodLiteral<UploadEventType.UPLOAD_STARTED>, z$1.ZodLiteral<UploadEventType.UPLOAD_COMPLETE>]>;
|
|
3214
|
+
data: z$1.ZodObject<{
|
|
3215
|
+
id: z$1.ZodString;
|
|
3216
|
+
size: z$1.ZodOptional<z$1.ZodNumber>;
|
|
3217
|
+
offset: z$1.ZodNumber;
|
|
3218
|
+
metadata: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodType<JsonValue, unknown, z$1.core.$ZodTypeInternals<JsonValue, unknown>>>>;
|
|
3219
|
+
creationDate: z$1.ZodOptional<z$1.ZodString>;
|
|
3220
|
+
url: z$1.ZodOptional<z$1.ZodString>;
|
|
3221
|
+
sizeIsDeferred: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
3222
|
+
checksum: z$1.ZodOptional<z$1.ZodString>;
|
|
3223
|
+
checksumAlgorithm: z$1.ZodOptional<z$1.ZodString>;
|
|
3224
|
+
storage: z$1.ZodObject<{
|
|
3225
|
+
id: z$1.ZodString;
|
|
3226
|
+
type: z$1.ZodString;
|
|
3227
|
+
path: z$1.ZodOptional<z$1.ZodString>;
|
|
3228
|
+
uploadId: z$1.ZodOptional<z$1.ZodString>;
|
|
3229
|
+
bucket: z$1.ZodOptional<z$1.ZodString>;
|
|
3230
|
+
parts: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
|
|
3231
|
+
partNumber: z$1.ZodNumber;
|
|
3232
|
+
etag: z$1.ZodString;
|
|
3233
|
+
size: z$1.ZodNumber;
|
|
3234
|
+
}, z$1.core.$strip>>>;
|
|
3235
|
+
}, z$1.core.$strip>;
|
|
3236
|
+
flow: z$1.ZodOptional<z$1.ZodObject<{
|
|
3237
|
+
flowId: z$1.ZodString;
|
|
3238
|
+
nodeId: z$1.ZodString;
|
|
3239
|
+
jobId: z$1.ZodString;
|
|
3240
|
+
}, z$1.core.$strip>>;
|
|
3241
|
+
traceContext: z$1.ZodOptional<z$1.ZodObject<{
|
|
3242
|
+
traceId: z$1.ZodString;
|
|
3243
|
+
spanId: z$1.ZodString;
|
|
3244
|
+
traceFlags: z$1.ZodNumber;
|
|
3245
|
+
}, z$1.core.$strip>>;
|
|
3246
|
+
}, z$1.core.$strip>;
|
|
3247
|
+
flow: z$1.ZodOptional<z$1.ZodObject<{
|
|
3248
|
+
flowId: z$1.ZodString;
|
|
3249
|
+
nodeId: z$1.ZodString;
|
|
3250
|
+
jobId: z$1.ZodString;
|
|
3251
|
+
}, z$1.core.$strip>>;
|
|
3252
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
3253
|
+
type: z$1.ZodLiteral<UploadEventType.UPLOAD_PROGRESS>;
|
|
3254
|
+
data: z$1.ZodObject<{
|
|
3255
|
+
id: z$1.ZodString;
|
|
3256
|
+
progress: z$1.ZodNumber;
|
|
3257
|
+
total: z$1.ZodNumber;
|
|
3258
|
+
}, z$1.core.$strip>;
|
|
3259
|
+
flow: z$1.ZodOptional<z$1.ZodObject<{
|
|
3260
|
+
flowId: z$1.ZodString;
|
|
3261
|
+
nodeId: z$1.ZodString;
|
|
3262
|
+
jobId: z$1.ZodString;
|
|
3263
|
+
}, z$1.core.$strip>>;
|
|
3264
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
3265
|
+
type: z$1.ZodLiteral<UploadEventType.UPLOAD_FAILED>;
|
|
3266
|
+
data: z$1.ZodObject<{
|
|
3267
|
+
id: z$1.ZodString;
|
|
3268
|
+
error: z$1.ZodString;
|
|
3269
|
+
}, z$1.core.$strip>;
|
|
3270
|
+
flow: z$1.ZodOptional<z$1.ZodObject<{
|
|
3271
|
+
flowId: z$1.ZodString;
|
|
3272
|
+
nodeId: z$1.ZodString;
|
|
3273
|
+
jobId: z$1.ZodString;
|
|
3274
|
+
}, z$1.core.$strip>>;
|
|
3275
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
3276
|
+
type: z$1.ZodLiteral<UploadEventType.UPLOAD_VALIDATION_SUCCESS>;
|
|
3277
|
+
data: z$1.ZodObject<{
|
|
3278
|
+
id: z$1.ZodString;
|
|
3279
|
+
validationType: z$1.ZodEnum<{
|
|
3280
3280
|
checksum: "checksum";
|
|
3281
3281
|
mimetype: "mimetype";
|
|
3282
3282
|
}>;
|
|
3283
|
-
algorithm: z.ZodOptional<z.ZodString>;
|
|
3284
|
-
}, z.core.$strip>;
|
|
3285
|
-
flow: z.ZodOptional<z.ZodObject<{
|
|
3286
|
-
flowId: z.ZodString;
|
|
3287
|
-
nodeId: z.ZodString;
|
|
3288
|
-
jobId: z.ZodString;
|
|
3289
|
-
}, z.core.$strip>>;
|
|
3290
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
3291
|
-
type: z.ZodLiteral<UploadEventType.UPLOAD_VALIDATION_FAILED>;
|
|
3292
|
-
data: z.ZodObject<{
|
|
3293
|
-
id: z.ZodString;
|
|
3294
|
-
reason: z.ZodString;
|
|
3295
|
-
expected: z.ZodString;
|
|
3296
|
-
actual: z.ZodString;
|
|
3297
|
-
}, z.core.$strip>;
|
|
3298
|
-
flow: z.ZodOptional<z.ZodObject<{
|
|
3299
|
-
flowId: z.ZodString;
|
|
3300
|
-
nodeId: z.ZodString;
|
|
3301
|
-
jobId: z.ZodString;
|
|
3302
|
-
}, z.core.$strip>>;
|
|
3303
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
3304
|
-
type: z.ZodLiteral<UploadEventType.UPLOAD_VALIDATION_WARNING>;
|
|
3305
|
-
data: z.ZodObject<{
|
|
3306
|
-
id: z.ZodString;
|
|
3307
|
-
message: z.ZodString;
|
|
3308
|
-
}, z.core.$strip>;
|
|
3309
|
-
flow: z.ZodOptional<z.ZodObject<{
|
|
3310
|
-
flowId: z.ZodString;
|
|
3311
|
-
nodeId: z.ZodString;
|
|
3312
|
-
jobId: z.ZodString;
|
|
3313
|
-
}, z.core.$strip>>;
|
|
3314
|
-
}, z.core.$strip>]>;
|
|
3315
|
-
type UploadEvent = z.infer<typeof uploadEventSchema>;
|
|
3283
|
+
algorithm: z$1.ZodOptional<z$1.ZodString>;
|
|
3284
|
+
}, z$1.core.$strip>;
|
|
3285
|
+
flow: z$1.ZodOptional<z$1.ZodObject<{
|
|
3286
|
+
flowId: z$1.ZodString;
|
|
3287
|
+
nodeId: z$1.ZodString;
|
|
3288
|
+
jobId: z$1.ZodString;
|
|
3289
|
+
}, z$1.core.$strip>>;
|
|
3290
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
3291
|
+
type: z$1.ZodLiteral<UploadEventType.UPLOAD_VALIDATION_FAILED>;
|
|
3292
|
+
data: z$1.ZodObject<{
|
|
3293
|
+
id: z$1.ZodString;
|
|
3294
|
+
reason: z$1.ZodString;
|
|
3295
|
+
expected: z$1.ZodString;
|
|
3296
|
+
actual: z$1.ZodString;
|
|
3297
|
+
}, z$1.core.$strip>;
|
|
3298
|
+
flow: z$1.ZodOptional<z$1.ZodObject<{
|
|
3299
|
+
flowId: z$1.ZodString;
|
|
3300
|
+
nodeId: z$1.ZodString;
|
|
3301
|
+
jobId: z$1.ZodString;
|
|
3302
|
+
}, z$1.core.$strip>>;
|
|
3303
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
3304
|
+
type: z$1.ZodLiteral<UploadEventType.UPLOAD_VALIDATION_WARNING>;
|
|
3305
|
+
data: z$1.ZodObject<{
|
|
3306
|
+
id: z$1.ZodString;
|
|
3307
|
+
message: z$1.ZodString;
|
|
3308
|
+
}, z$1.core.$strip>;
|
|
3309
|
+
flow: z$1.ZodOptional<z$1.ZodObject<{
|
|
3310
|
+
flowId: z$1.ZodString;
|
|
3311
|
+
nodeId: z$1.ZodString;
|
|
3312
|
+
jobId: z$1.ZodString;
|
|
3313
|
+
}, z$1.core.$strip>>;
|
|
3314
|
+
}, z$1.core.$strip>]>;
|
|
3315
|
+
type UploadEvent = z$1.infer<typeof uploadEventSchema>;
|
|
3316
3316
|
//#endregion
|
|
3317
3317
|
//#region src/types/websocket.d.ts
|
|
3318
3318
|
/**
|
|
@@ -3327,138 +3327,138 @@ interface WebSocketConnection {
|
|
|
3327
3327
|
/**
|
|
3328
3328
|
* WebSocket message that can be sent/received
|
|
3329
3329
|
*/
|
|
3330
|
-
declare const webSocketMessageSchema: z
|
|
3331
|
-
type: z
|
|
3332
|
-
payload: z
|
|
3333
|
-
type: z
|
|
3334
|
-
data: z
|
|
3335
|
-
id: z
|
|
3336
|
-
size: z
|
|
3337
|
-
offset: z
|
|
3338
|
-
metadata: z
|
|
3339
|
-
creationDate: z
|
|
3340
|
-
url: z
|
|
3341
|
-
sizeIsDeferred: z
|
|
3342
|
-
checksum: z
|
|
3343
|
-
checksumAlgorithm: z
|
|
3344
|
-
storage: z
|
|
3345
|
-
id: z
|
|
3346
|
-
type: z
|
|
3347
|
-
path: z
|
|
3348
|
-
uploadId: z
|
|
3349
|
-
bucket: z
|
|
3350
|
-
parts: z
|
|
3351
|
-
partNumber: z
|
|
3352
|
-
etag: z
|
|
3353
|
-
size: z
|
|
3354
|
-
}, z
|
|
3355
|
-
}, z
|
|
3356
|
-
flow: z
|
|
3357
|
-
flowId: z
|
|
3358
|
-
nodeId: z
|
|
3359
|
-
jobId: z
|
|
3360
|
-
}, z
|
|
3361
|
-
traceContext: z
|
|
3362
|
-
traceId: z
|
|
3363
|
-
spanId: z
|
|
3364
|
-
traceFlags: z
|
|
3365
|
-
}, z
|
|
3366
|
-
}, z
|
|
3367
|
-
flow: z
|
|
3368
|
-
flowId: z
|
|
3369
|
-
nodeId: z
|
|
3370
|
-
jobId: z
|
|
3371
|
-
}, z
|
|
3372
|
-
}, z
|
|
3373
|
-
type: z
|
|
3374
|
-
data: z
|
|
3375
|
-
id: z
|
|
3376
|
-
progress: z
|
|
3377
|
-
total: z
|
|
3378
|
-
}, z
|
|
3379
|
-
flow: z
|
|
3380
|
-
flowId: z
|
|
3381
|
-
nodeId: z
|
|
3382
|
-
jobId: z
|
|
3383
|
-
}, z
|
|
3384
|
-
}, z
|
|
3385
|
-
type: z
|
|
3386
|
-
data: z
|
|
3387
|
-
id: z
|
|
3388
|
-
error: z
|
|
3389
|
-
}, z
|
|
3390
|
-
flow: z
|
|
3391
|
-
flowId: z
|
|
3392
|
-
nodeId: z
|
|
3393
|
-
jobId: z
|
|
3394
|
-
}, z
|
|
3395
|
-
}, z
|
|
3396
|
-
type: z
|
|
3397
|
-
data: z
|
|
3398
|
-
id: z
|
|
3399
|
-
validationType: z
|
|
3330
|
+
declare const webSocketMessageSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
3331
|
+
type: z.ZodLiteral<"upload_event">;
|
|
3332
|
+
payload: z.ZodUnion<readonly [z.ZodObject<{
|
|
3333
|
+
type: z.ZodUnion<readonly [z.ZodLiteral<UploadEventType.UPLOAD_STARTED>, z.ZodLiteral<UploadEventType.UPLOAD_COMPLETE>]>;
|
|
3334
|
+
data: z.ZodObject<{
|
|
3335
|
+
id: z.ZodString;
|
|
3336
|
+
size: z.ZodOptional<z.ZodNumber>;
|
|
3337
|
+
offset: z.ZodNumber;
|
|
3338
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>>;
|
|
3339
|
+
creationDate: z.ZodOptional<z.ZodString>;
|
|
3340
|
+
url: z.ZodOptional<z.ZodString>;
|
|
3341
|
+
sizeIsDeferred: z.ZodOptional<z.ZodBoolean>;
|
|
3342
|
+
checksum: z.ZodOptional<z.ZodString>;
|
|
3343
|
+
checksumAlgorithm: z.ZodOptional<z.ZodString>;
|
|
3344
|
+
storage: z.ZodObject<{
|
|
3345
|
+
id: z.ZodString;
|
|
3346
|
+
type: z.ZodString;
|
|
3347
|
+
path: z.ZodOptional<z.ZodString>;
|
|
3348
|
+
uploadId: z.ZodOptional<z.ZodString>;
|
|
3349
|
+
bucket: z.ZodOptional<z.ZodString>;
|
|
3350
|
+
parts: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3351
|
+
partNumber: z.ZodNumber;
|
|
3352
|
+
etag: z.ZodString;
|
|
3353
|
+
size: z.ZodNumber;
|
|
3354
|
+
}, z.core.$strip>>>;
|
|
3355
|
+
}, z.core.$strip>;
|
|
3356
|
+
flow: z.ZodOptional<z.ZodObject<{
|
|
3357
|
+
flowId: z.ZodString;
|
|
3358
|
+
nodeId: z.ZodString;
|
|
3359
|
+
jobId: z.ZodString;
|
|
3360
|
+
}, z.core.$strip>>;
|
|
3361
|
+
traceContext: z.ZodOptional<z.ZodObject<{
|
|
3362
|
+
traceId: z.ZodString;
|
|
3363
|
+
spanId: z.ZodString;
|
|
3364
|
+
traceFlags: z.ZodNumber;
|
|
3365
|
+
}, z.core.$strip>>;
|
|
3366
|
+
}, z.core.$strip>;
|
|
3367
|
+
flow: z.ZodOptional<z.ZodObject<{
|
|
3368
|
+
flowId: z.ZodString;
|
|
3369
|
+
nodeId: z.ZodString;
|
|
3370
|
+
jobId: z.ZodString;
|
|
3371
|
+
}, z.core.$strip>>;
|
|
3372
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3373
|
+
type: z.ZodLiteral<UploadEventType.UPLOAD_PROGRESS>;
|
|
3374
|
+
data: z.ZodObject<{
|
|
3375
|
+
id: z.ZodString;
|
|
3376
|
+
progress: z.ZodNumber;
|
|
3377
|
+
total: z.ZodNumber;
|
|
3378
|
+
}, z.core.$strip>;
|
|
3379
|
+
flow: z.ZodOptional<z.ZodObject<{
|
|
3380
|
+
flowId: z.ZodString;
|
|
3381
|
+
nodeId: z.ZodString;
|
|
3382
|
+
jobId: z.ZodString;
|
|
3383
|
+
}, z.core.$strip>>;
|
|
3384
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3385
|
+
type: z.ZodLiteral<UploadEventType.UPLOAD_FAILED>;
|
|
3386
|
+
data: z.ZodObject<{
|
|
3387
|
+
id: z.ZodString;
|
|
3388
|
+
error: z.ZodString;
|
|
3389
|
+
}, z.core.$strip>;
|
|
3390
|
+
flow: z.ZodOptional<z.ZodObject<{
|
|
3391
|
+
flowId: z.ZodString;
|
|
3392
|
+
nodeId: z.ZodString;
|
|
3393
|
+
jobId: z.ZodString;
|
|
3394
|
+
}, z.core.$strip>>;
|
|
3395
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3396
|
+
type: z.ZodLiteral<UploadEventType.UPLOAD_VALIDATION_SUCCESS>;
|
|
3397
|
+
data: z.ZodObject<{
|
|
3398
|
+
id: z.ZodString;
|
|
3399
|
+
validationType: z.ZodEnum<{
|
|
3400
3400
|
checksum: "checksum";
|
|
3401
3401
|
mimetype: "mimetype";
|
|
3402
3402
|
}>;
|
|
3403
|
-
algorithm: z
|
|
3404
|
-
}, z
|
|
3405
|
-
flow: z
|
|
3406
|
-
flowId: z
|
|
3407
|
-
nodeId: z
|
|
3408
|
-
jobId: z
|
|
3409
|
-
}, z
|
|
3410
|
-
}, z
|
|
3411
|
-
type: z
|
|
3412
|
-
data: z
|
|
3413
|
-
id: z
|
|
3414
|
-
reason: z
|
|
3415
|
-
expected: z
|
|
3416
|
-
actual: z
|
|
3417
|
-
}, z
|
|
3418
|
-
flow: z
|
|
3419
|
-
flowId: z
|
|
3420
|
-
nodeId: z
|
|
3421
|
-
jobId: z
|
|
3422
|
-
}, z
|
|
3423
|
-
}, z
|
|
3424
|
-
type: z
|
|
3425
|
-
data: z
|
|
3426
|
-
id: z
|
|
3427
|
-
message: z
|
|
3428
|
-
}, z
|
|
3429
|
-
flow: z
|
|
3430
|
-
flowId: z
|
|
3431
|
-
nodeId: z
|
|
3432
|
-
jobId: z
|
|
3433
|
-
}, z
|
|
3434
|
-
}, z
|
|
3435
|
-
timestamp: z
|
|
3436
|
-
}, z
|
|
3437
|
-
type: z
|
|
3438
|
-
payload: z
|
|
3439
|
-
timestamp: z
|
|
3440
|
-
}, z
|
|
3441
|
-
type: z
|
|
3442
|
-
payload: z
|
|
3443
|
-
eventKey: z
|
|
3444
|
-
}, z
|
|
3445
|
-
timestamp: z
|
|
3446
|
-
}, z
|
|
3447
|
-
type: z
|
|
3448
|
-
message: z
|
|
3449
|
-
}, z
|
|
3450
|
-
type: z
|
|
3451
|
-
timestamp: z
|
|
3452
|
-
}, z
|
|
3453
|
-
type: z
|
|
3454
|
-
timestamp: z
|
|
3455
|
-
}, z
|
|
3456
|
-
type: z
|
|
3457
|
-
message: z
|
|
3458
|
-
uploadId: z
|
|
3459
|
-
timestamp: z
|
|
3460
|
-
}, z
|
|
3461
|
-
type WebSocketMessage<TEvent = unknown> = z
|
|
3403
|
+
algorithm: z.ZodOptional<z.ZodString>;
|
|
3404
|
+
}, z.core.$strip>;
|
|
3405
|
+
flow: z.ZodOptional<z.ZodObject<{
|
|
3406
|
+
flowId: z.ZodString;
|
|
3407
|
+
nodeId: z.ZodString;
|
|
3408
|
+
jobId: z.ZodString;
|
|
3409
|
+
}, z.core.$strip>>;
|
|
3410
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3411
|
+
type: z.ZodLiteral<UploadEventType.UPLOAD_VALIDATION_FAILED>;
|
|
3412
|
+
data: z.ZodObject<{
|
|
3413
|
+
id: z.ZodString;
|
|
3414
|
+
reason: z.ZodString;
|
|
3415
|
+
expected: z.ZodString;
|
|
3416
|
+
actual: z.ZodString;
|
|
3417
|
+
}, z.core.$strip>;
|
|
3418
|
+
flow: z.ZodOptional<z.ZodObject<{
|
|
3419
|
+
flowId: z.ZodString;
|
|
3420
|
+
nodeId: z.ZodString;
|
|
3421
|
+
jobId: z.ZodString;
|
|
3422
|
+
}, z.core.$strip>>;
|
|
3423
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3424
|
+
type: z.ZodLiteral<UploadEventType.UPLOAD_VALIDATION_WARNING>;
|
|
3425
|
+
data: z.ZodObject<{
|
|
3426
|
+
id: z.ZodString;
|
|
3427
|
+
message: z.ZodString;
|
|
3428
|
+
}, z.core.$strip>;
|
|
3429
|
+
flow: z.ZodOptional<z.ZodObject<{
|
|
3430
|
+
flowId: z.ZodString;
|
|
3431
|
+
nodeId: z.ZodString;
|
|
3432
|
+
jobId: z.ZodString;
|
|
3433
|
+
}, z.core.$strip>>;
|
|
3434
|
+
}, z.core.$strip>]>;
|
|
3435
|
+
timestamp: z.ZodOptional<z.ZodString>;
|
|
3436
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3437
|
+
type: z.ZodLiteral<"flow_event">;
|
|
3438
|
+
payload: z.ZodAny;
|
|
3439
|
+
timestamp: z.ZodOptional<z.ZodString>;
|
|
3440
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3441
|
+
type: z.ZodLiteral<"subscribed">;
|
|
3442
|
+
payload: z.ZodObject<{
|
|
3443
|
+
eventKey: z.ZodString;
|
|
3444
|
+
}, z.core.$strip>;
|
|
3445
|
+
timestamp: z.ZodOptional<z.ZodString>;
|
|
3446
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3447
|
+
type: z.ZodLiteral<"error">;
|
|
3448
|
+
message: z.ZodOptional<z.ZodString>;
|
|
3449
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3450
|
+
type: z.ZodLiteral<"pong">;
|
|
3451
|
+
timestamp: z.ZodOptional<z.ZodString>;
|
|
3452
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3453
|
+
type: z.ZodLiteral<"ping">;
|
|
3454
|
+
timestamp: z.ZodOptional<z.ZodString>;
|
|
3455
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3456
|
+
type: z.ZodLiteral<"connection">;
|
|
3457
|
+
message: z.ZodOptional<z.ZodString>;
|
|
3458
|
+
uploadId: z.ZodOptional<z.ZodString>;
|
|
3459
|
+
timestamp: z.ZodOptional<z.ZodString>;
|
|
3460
|
+
}, z.core.$strip>]>;
|
|
3461
|
+
type WebSocketMessage<TEvent = unknown> = z.infer<typeof webSocketMessageSchema> | {
|
|
3462
3462
|
type: "upload_event";
|
|
3463
3463
|
payload: TEvent;
|
|
3464
3464
|
timestamp?: string;
|
|
@@ -4006,23 +4006,23 @@ declare function formatHealthAsText(status: HealthStatus): string;
|
|
|
4006
4006
|
*
|
|
4007
4007
|
* @see {@link InputFile} for the TypeScript type
|
|
4008
4008
|
*/
|
|
4009
|
-
declare const inputFileSchema: z.ZodObject<{
|
|
4010
|
-
uploadLengthDeferred: z.ZodOptional<z.ZodBoolean>;
|
|
4011
|
-
storageId: z.ZodString;
|
|
4012
|
-
size: z.ZodOptional<z.ZodNumber>;
|
|
4013
|
-
sizeHint: z.ZodOptional<z.ZodNumber>;
|
|
4014
|
-
type: z.ZodString;
|
|
4015
|
-
fileName: z.ZodOptional<z.ZodString>;
|
|
4016
|
-
lastModified: z.ZodOptional<z.ZodNumber>;
|
|
4017
|
-
metadata: z.ZodOptional<z.ZodString>;
|
|
4018
|
-
checksum: z.ZodOptional<z.ZodString>;
|
|
4019
|
-
checksumAlgorithm: z.ZodOptional<z.ZodString>;
|
|
4020
|
-
flow: z.ZodOptional<z.ZodObject<{
|
|
4021
|
-
flowId: z.ZodString;
|
|
4022
|
-
nodeId: z.ZodString;
|
|
4023
|
-
jobId: z.ZodString;
|
|
4024
|
-
}, z.core.$strip>>;
|
|
4025
|
-
}, z.core.$strip>;
|
|
4009
|
+
declare const inputFileSchema: z$1.ZodObject<{
|
|
4010
|
+
uploadLengthDeferred: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
4011
|
+
storageId: z$1.ZodString;
|
|
4012
|
+
size: z$1.ZodOptional<z$1.ZodNumber>;
|
|
4013
|
+
sizeHint: z$1.ZodOptional<z$1.ZodNumber>;
|
|
4014
|
+
type: z$1.ZodString;
|
|
4015
|
+
fileName: z$1.ZodOptional<z$1.ZodString>;
|
|
4016
|
+
lastModified: z$1.ZodOptional<z$1.ZodNumber>;
|
|
4017
|
+
metadata: z$1.ZodOptional<z$1.ZodString>;
|
|
4018
|
+
checksum: z$1.ZodOptional<z$1.ZodString>;
|
|
4019
|
+
checksumAlgorithm: z$1.ZodOptional<z$1.ZodString>;
|
|
4020
|
+
flow: z$1.ZodOptional<z$1.ZodObject<{
|
|
4021
|
+
flowId: z$1.ZodString;
|
|
4022
|
+
nodeId: z$1.ZodString;
|
|
4023
|
+
jobId: z$1.ZodString;
|
|
4024
|
+
}, z$1.core.$strip>>;
|
|
4025
|
+
}, z$1.core.$strip>;
|
|
4026
4026
|
/**
|
|
4027
4027
|
* Represents the input data for creating a new file upload.
|
|
4028
4028
|
*
|
|
@@ -4109,7 +4109,7 @@ declare const inputFileSchema: z.ZodObject<{
|
|
|
4109
4109
|
* };
|
|
4110
4110
|
* ```
|
|
4111
4111
|
*/
|
|
4112
|
-
type InputFile = z.infer<typeof inputFileSchema>;
|
|
4112
|
+
type InputFile = z$1.infer<typeof inputFileSchema>;
|
|
4113
4113
|
//#endregion
|
|
4114
4114
|
//#region src/types/middleware.d.ts
|
|
4115
4115
|
type MiddlewareContext = {
|
|
@@ -4126,4 +4126,4 @@ declare class MiddlewareService extends MiddlewareService_base {}
|
|
|
4126
4126
|
declare const MiddlewareServiceLive: Layer.Layer<MiddlewareService, never, never>;
|
|
4127
4127
|
//#endregion
|
|
4128
4128
|
export { BaseKvStoreService as $, calculateBackoffDelay as $t, webSocketMessageSchema as A, JsonValue as An, FlowDeadLetterQueueConfig as At, DataStoreCapabilities as B, DeadLetterItemStatus as Bn, TypedOutput as Bt, TypedEventEmitter as C, FlowEventNodeStart as Cn, BuiltInTypedOutput as Ct, uploadEventEmitter as D, NodeType as Dn, FlowCircuitBreakerConfig as Dt, flowEventEmitter as E, ConditionValue as En, FileNamingFunction as Et, EventBroadcasterService as F, uploadFileSchema as Fn, NarrowTypedOutput as Ft, StreamingConfig as G, DeadLetterRetryAttempt as Gn, isStreamingInputV1 as Gt, DataStoreWriteOptions as H, DeadLetterProcessResult as Hn, completeNodeExecution as Ht, BufferedUploadFileDataStore as I, DeadLetterCleanupOptions as In, NodeConnectionValidator as It, UploadFileDataStoresShape as J, CircuitBreakerStats as Jn, DEFAULT_RETRY_POLICY as Jt, UploadFileDataStore as K, CircuitBreakerStateData as Kn, waitingNodeExecution as Kt, DEFAULT_MULTIPART_PART_SIZE as L, DeadLetterCleanupResult as Ln, NodeExecutionResult as Lt, UploadEventType as M, UploadFileTraceContext as Mn, FlowNode as Mt, uploadEventSchema as N, jsonValueSchema as Nn, FlowNodeData as Nt, WebSocketConnection as O, createFlowNode as On, FlowCircuitBreakerFallback as Ot, EventBroadcaster as P, traceContextSchema as Pn, NamingContext as Pt, BaseKvStore as Q, RetryPolicy as Qt, DEFAULT_STREAMING_CONFIG as R, DeadLetterError as Rn, NodeTypeMap as Rt, FlowEventEmitter as S, FlowEventNodeResume as Sn, BuiltInNodeType as St, eventToMessageSerializer as T, ConditionOperator as Tn, FileNamingConfig as Tt, StreamWriteOptions as U, DeadLetterQueueStats as Un, createOutputGuard as Ut, DataStoreConfig as V, DeadLetterListOptions as Vn, TypedOutputGuard as Vt, StreamWriteResult as W, DeadLetterRetryAllResult as Wn, isStorageOutputV1 as Wt, createDataStoreLayer as X, CircuitBreakerStoreService as Xn, FixedBackoff as Xt, UploadStrategy as Y, CircuitBreakerStore as Yn, ExponentialBackoff as Yt, isDataStore as Z, createInitialCircuitBreakerState as Zn, ImmediateBackoff as Zt, formatHealthAsText as _, FlowEventJobStart as _n, FlowJobStatus as _t, MiddlewareServiceLive as a, FlowEventDlqItemAdded as an, UploadFileKVStore as at, BaseEventEmitterService as b, FlowEventNodePause as bn, FlowJobTraceContext as bt, CircuitBreakerHealthSummary as c, FlowEventDlqRetryFailed as cn, flowQueueKvStore as ct, DlqHealthSummary as d, FlowEventFlowCancel as dn, DEFAULT_QUEUE_CONFIG as dt, calculateExpirationDate as en, DeadLetterQueueKVStore as et, HealthCheckConfig as f, FlowEventFlowEnd as fn, FlowQueueConfig as ft, HealthStatus as g, FlowEventJobEnd as gn, FlowJob as gt, HealthResponseFormat as h, FlowEventFlowStart as hn, FlowQueueStats as ht, MiddlewareService as i, FlowEvent as in, TypedKvStore as it, UploadEvent as j, UploadFile as jn, FlowEdge as jt, WebSocketMessage as k, getNodeData as kn, FlowConfig as kt, ComponentHealth as l, FlowEventDlqRetryStart as ln, jsonSerializer as lt, HealthResponse as m, FlowEventFlowPause as mn, FlowQueueItemStatus as mt, MiddlewareContext as n, DlqEvent as nn, FlowQueueKVStore as nt, InputFile as o, FlowEventDlqItemExhausted as on, deadLetterQueueKvStore as ot, HealthComponents as p, FlowEventFlowError as pn, FlowQueueItem as pt, UploadFileDataStores as q, CircuitBreakerStateValue as qn, BackoffStrategy as qt, MiddlewareNext as r, EventType as rn, KvStore as rt, inputFileSchema as s, FlowEventDlqItemResolved as sn, flowJobKvStore as st, Middleware as t, isErrorRetryable as tn, FlowJobKVStore as tt, DEFAULT_HEALTH_CHECK_CONFIG as u, FlowEventDlqRetrySuccess as un, uploadFileKvStore as ut, getHealthResponseFormat as v, FlowEventNodeEnd as vn, FlowJobTask as vt, UploadEventEmitter as w, ConditionField as wn, CustomTypedOutput as wt, EventEmitter as x, FlowEventNodeResponse as xn, AutoNamingSuffixGenerator as xt, BaseEventEmitter as y, FlowEventNodeError as yn, FlowJobTaskStatus as yt, DataStore as z, DeadLetterItem as zn, TypeCompatibilityChecker as zt };
|
|
4129
|
-
//# sourceMappingURL=
|
|
4129
|
+
//# sourceMappingURL=index-Ce8IxXxR.d.mts.map
|