@uploadista/core 0.0.7 → 0.0.9

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.
Files changed (102) hide show
  1. package/dist/checksum-DgutVB-2.cjs +1 -0
  2. package/dist/checksum-Do_Vh-tB.mjs +2 -0
  3. package/dist/checksum-Do_Vh-tB.mjs.map +1 -0
  4. package/dist/errors/index.cjs +1 -1
  5. package/dist/errors/{index.d.ts → index.d.mts} +2 -2
  6. package/dist/errors/index.mjs +1 -0
  7. package/dist/flow/index.cjs +1 -1
  8. package/dist/flow/index.d.cts +3 -3
  9. package/dist/flow/index.d.mts +6 -0
  10. package/dist/flow/index.mjs +1 -0
  11. package/dist/flow-C_doYlGf.cjs +1 -0
  12. package/dist/flow-DEohelFR.mjs +2 -0
  13. package/dist/flow-DEohelFR.mjs.map +1 -0
  14. package/dist/{index-Dv14pVwd.d.ts → index-C2nrn_49.d.mts} +5 -5
  15. package/dist/{index-BswVyg4Z.d.cts.map → index-C2nrn_49.d.mts.map} +1 -1
  16. package/dist/{index-BQIgMrBX.d.ts → index-CsLVxsad.d.mts} +2 -2
  17. package/dist/index-CsLVxsad.d.mts.map +1 -0
  18. package/dist/{index-BOKqNaD_.d.ts → index-b891YUgl.d.cts} +97 -32
  19. package/dist/index-b891YUgl.d.cts.map +1 -0
  20. package/dist/{index-BswVyg4Z.d.cts → index-eLYBkDBH.d.cts} +4 -4
  21. package/dist/index-eLYBkDBH.d.cts.map +1 -0
  22. package/dist/{index-aQrRecmb.d.cts → index-od64jviT.d.mts} +188 -303
  23. package/dist/index-od64jviT.d.mts.map +1 -0
  24. package/dist/index.cjs +1 -1
  25. package/dist/index.d.cts +3 -3
  26. package/dist/index.d.mts +6 -0
  27. package/dist/index.mjs +1 -0
  28. package/dist/stream-limiter-Bj_iImMm.cjs +1 -0
  29. package/dist/stream-limiter-CEpDLQVB.mjs +2 -0
  30. package/dist/stream-limiter-CEpDLQVB.mjs.map +1 -0
  31. package/dist/streams/index.cjs +1 -1
  32. package/dist/streams/index.d.mts +3 -0
  33. package/dist/streams/index.mjs +1 -0
  34. package/dist/types/index.cjs +1 -1
  35. package/dist/types/index.d.cts +2 -2
  36. package/dist/types/index.d.mts +6 -0
  37. package/dist/types/index.mjs +1 -0
  38. package/dist/types-BYfvxhhG.mjs +2 -0
  39. package/dist/types-BYfvxhhG.mjs.map +1 -0
  40. package/dist/types-C80hlY_o.cjs +1 -0
  41. package/dist/upload/index.cjs +1 -1
  42. package/dist/upload/index.d.cts +2 -2
  43. package/dist/upload/index.d.mts +6 -0
  44. package/dist/upload/index.mjs +1 -0
  45. package/dist/upload-CcmxSO5u.mjs +2 -0
  46. package/dist/upload-CcmxSO5u.mjs.map +1 -0
  47. package/dist/upload-IZuHoQqL.cjs +1 -0
  48. package/dist/{uploadista-error-BOHJtDRc.cjs → uploadista-error-CQ1ADme7.cjs} +2 -2
  49. package/dist/{uploadista-error-kZCQLC_U.d.ts → uploadista-error-DHajuvP1.d.mts} +1 -1
  50. package/dist/uploadista-error-DHajuvP1.d.mts.map +1 -0
  51. package/dist/{uploadista-error-CDkJ_Vrc.js → uploadista-error-U9YxwNtM.mjs} +1 -1
  52. package/dist/uploadista-error-U9YxwNtM.mjs.map +1 -0
  53. package/dist/utils/index.cjs +1 -1
  54. package/dist/utils/index.d.cts +1 -1
  55. package/dist/utils/{index.d.ts → index.d.mts} +2 -2
  56. package/dist/utils/index.mjs +1 -0
  57. package/dist/{utils-BbLQplqQ.cjs → utils-C6k-Fs99.mjs} +2 -1
  58. package/dist/utils-C6k-Fs99.mjs.map +1 -0
  59. package/dist/utils-DzDTNMnq.cjs +1 -0
  60. package/package.json +6 -6
  61. package/src/flow/flow-server.ts +122 -25
  62. package/src/flow/flow.ts +2 -0
  63. package/src/types/upload-file.ts +11 -0
  64. package/dist/checksum-CPiON71t.cjs +0 -1
  65. package/dist/checksum-_Vagjoys.js +0 -2
  66. package/dist/checksum-_Vagjoys.js.map +0 -1
  67. package/dist/errors/index.js +0 -1
  68. package/dist/flow/index.d.ts +0 -6
  69. package/dist/flow/index.js +0 -1
  70. package/dist/flow-CSHZVjcf.js +0 -2
  71. package/dist/flow-CSHZVjcf.js.map +0 -1
  72. package/dist/flow-zlCaikPS.cjs +0 -1
  73. package/dist/index-BOKqNaD_.d.ts.map +0 -1
  74. package/dist/index-BQIgMrBX.d.ts.map +0 -1
  75. package/dist/index-Dv14pVwd.d.ts.map +0 -1
  76. package/dist/index-aQrRecmb.d.cts.map +0 -1
  77. package/dist/index.d.ts +0 -6
  78. package/dist/index.js +0 -1
  79. package/dist/stream-limiter-CTLrikR_.js +0 -2
  80. package/dist/stream-limiter-CTLrikR_.js.map +0 -1
  81. package/dist/stream-limiter-CaCFrKY1.cjs +0 -1
  82. package/dist/streams/index.d.ts +0 -3
  83. package/dist/streams/index.js +0 -1
  84. package/dist/types/index.d.ts +0 -6
  85. package/dist/types/index.js +0 -1
  86. package/dist/types-BVbqP7yA.cjs +0 -1
  87. package/dist/types-DqllXpuL.js +0 -2
  88. package/dist/types-DqllXpuL.js.map +0 -1
  89. package/dist/upload/index.d.ts +0 -6
  90. package/dist/upload/index.js +0 -1
  91. package/dist/upload-C_n7Smfl.js +0 -2
  92. package/dist/upload-C_n7Smfl.js.map +0 -1
  93. package/dist/upload-kFnf82ds.cjs +0 -1
  94. package/dist/uploadista-error-CDkJ_Vrc.js.map +0 -1
  95. package/dist/uploadista-error-kZCQLC_U.d.ts.map +0 -1
  96. package/dist/utils/index.js +0 -1
  97. package/dist/utils-B5sYo1z9.js +0 -2
  98. package/dist/utils-B5sYo1z9.js.map +0 -1
  99. /package/dist/{errors-8i_aMxOE.js → errors-C0zLx77t.mjs} +0 -0
  100. /package/dist/{errors-D-K-vxsP.cjs → errors-CRm1FHHT.cjs} +0 -0
  101. /package/dist/{index-BoGG5KAY.d.ts → index-DEHBdV_z.d.mts} +0 -0
  102. /package/dist/{streams-Bs3GDNKJ.js → streams-CJKKIAwy.mjs} +0 -0
@@ -1,9 +1,8 @@
1
- import { n as UploadistaError } from "./uploadista-error-B4dn0Ch6.cjs";
2
- import { l as GenerateId, p as GenerateIdShape } from "./index-BswVyg4Z.cjs";
3
- import * as effect_Types0 from "effect/Types";
4
- import * as effect_Cause0 from "effect/Cause";
5
- import { Context, Effect, Layer, Stream } from "effect";
1
+ import { n as UploadistaError$1 } from "./uploadista-error-DHajuvP1.mjs";
2
+ import { l as GenerateId, p as GenerateIdShape } from "./index-C2nrn_49.mjs";
3
+ import { Context, Effect, Layer, Option, Stream } from "effect";
6
4
  import z$1, { z } from "zod";
5
+ import { UploadistaError } from "@uploadista/core/errors";
7
6
 
8
7
  //#region src/flow/node.d.ts
9
8
  /**
@@ -124,7 +123,7 @@ declare function createFlowNode<Input, Output>({
124
123
  storageId: string;
125
124
  flowId: string;
126
125
  clientId: string | null;
127
- }) => Effect.Effect<NodeExecutionResult<Output>, UploadistaError>;
126
+ }) => Effect.Effect<NodeExecutionResult<Output>, UploadistaError$1>;
128
127
  condition?: {
129
128
  field: ConditionField;
130
129
  operator: ConditionOperator;
@@ -138,7 +137,7 @@ declare function createFlowNode<Input, Output>({
138
137
  retryDelay?: number;
139
138
  exponentialBackoff?: boolean;
140
139
  };
141
- }): Effect.Effect<FlowNode<Input, Output, UploadistaError>>;
140
+ }): Effect.Effect<FlowNode<Input, Output, UploadistaError$1>>;
142
141
  /**
143
142
  * Extracts serializable node metadata from a FlowNode instance.
144
143
  *
@@ -149,7 +148,7 @@ declare function createFlowNode<Input, Output>({
149
148
  * @param node - The flow node to extract data from
150
149
  * @returns A plain object containing the node's metadata (id, name, description, type)
151
150
  */
152
- declare const getNodeData: (node: FlowNode<any, any, UploadistaError>) => FlowNodeData;
151
+ declare const getNodeData: (node: FlowNode<any, any, UploadistaError$1>) => FlowNodeData;
153
152
  //#endregion
154
153
  //#region src/flow/event.d.ts
155
154
  /**
@@ -421,9 +420,9 @@ type FlowNodeData = {
421
420
  * }
422
421
  * ```
423
422
  */
424
- type NodeExecutionResult<TOutput$1> = {
423
+ type NodeExecutionResult<TOutput> = {
425
424
  type: "complete";
426
- data: TOutput$1;
425
+ data: TOutput;
427
426
  } | {
428
427
  type: "waiting";
429
428
  partialData?: unknown;
@@ -516,9 +515,9 @@ declare const waitingNodeExecution: (partialData?: unknown) => {
516
515
  * @see {@link NodeExecutionResult} for return type options
517
516
  * @see {@link FlowCondition} for conditional execution
518
517
  */
519
- type FlowNode<TInput = unknown, TOutput$1 = unknown, TError$1 = UploadistaError> = FlowNodeData & {
518
+ type FlowNode<TInput = unknown, TOutput = unknown, TError$1 = UploadistaError$1> = FlowNodeData & {
520
519
  inputSchema: z.ZodSchema<TInput>;
521
- outputSchema: z.ZodSchema<TOutput$1>;
520
+ outputSchema: z.ZodSchema<TOutput>;
522
521
  run: (args: {
523
522
  data: TInput;
524
523
  jobId: string;
@@ -526,7 +525,7 @@ type FlowNode<TInput = unknown, TOutput$1 = unknown, TError$1 = UploadistaError>
526
525
  flowId: string;
527
526
  inputs?: Record<string, unknown>;
528
527
  clientId: string | null;
529
- }) => Effect.Effect<NodeExecutionResult<TOutput$1>, TError$1>;
528
+ }) => Effect.Effect<NodeExecutionResult<TOutput>, TError$1>;
530
529
  condition?: {
531
530
  field: string;
532
531
  operator: string;
@@ -665,15 +664,15 @@ type NodeConnectionValidator = {
665
664
  type FlowConfig<TFlowInputSchema extends z.ZodSchema<any>, TFlowOutputSchema extends z.ZodSchema<any>, TNodeError = never, TNodeRequirements = never> = {
666
665
  flowId: string;
667
666
  name: string;
668
- nodes: Array<FlowNode<any, any, UploadistaError> | Effect.Effect<FlowNode<any, any, UploadistaError>, TNodeError, TNodeRequirements>>;
667
+ nodes: Array<FlowNode<any, any, UploadistaError$1> | Effect.Effect<FlowNode<any, any, UploadistaError$1>, TNodeError, TNodeRequirements>>;
669
668
  edges: FlowEdge$1[];
670
669
  inputSchema: TFlowInputSchema;
671
670
  outputSchema: TFlowOutputSchema;
672
671
  typeChecker?: TypeCompatibilityChecker;
673
672
  onEvent?: (event: FlowEvent) => Effect.Effect<{
674
673
  eventId: string | null;
675
- }, UploadistaError>;
676
- checkJobStatus?: (jobId: string) => Effect.Effect<"running" | "paused" | "cancelled", UploadistaError>;
674
+ }, UploadistaError$1>;
675
+ checkJobStatus?: (jobId: string) => Effect.Effect<"running" | "paused" | "cancelled", UploadistaError$1>;
677
676
  parallelExecution?: {
678
677
  enabled?: boolean;
679
678
  maxConcurrency?: number;
@@ -763,7 +762,7 @@ type FlowData = {
763
762
  * await db.flows.save(flowData);
764
763
  * ```
765
764
  */
766
- declare const getFlowData: <TRequirements>(flow: Flow<any, any, TRequirements>) => FlowData;
765
+ declare const getFlowData: <TRequirements$1>(flow: Flow<any, any, TRequirements$1>) => FlowData;
767
766
  /**
768
767
  * Result of a flow execution - either completed or paused.
769
768
  *
@@ -785,9 +784,9 @@ declare const getFlowData: <TRequirements>(flow: Flow<any, any, TRequirements>)
785
784
  * }
786
785
  * ```
787
786
  */
788
- type FlowExecutionResult<TOutput$1> = {
787
+ type FlowExecutionResult<TOutput> = {
789
788
  type: "completed";
790
- result: TOutput$1;
789
+ result: TOutput;
791
790
  } | {
792
791
  type: "paused";
793
792
  nodeId: string;
@@ -849,7 +848,7 @@ type FlowExecutionResult<TOutput$1> = {
849
848
  type Flow<TFlowInputSchema extends z.ZodSchema<any>, TFlowOutputSchema extends z.ZodSchema<any>, TRequirements$1> = {
850
849
  id: string;
851
850
  name: string;
852
- nodes: FlowNode<any, any, UploadistaError>[];
851
+ nodes: FlowNode<any, any, UploadistaError$1>[];
853
852
  edges: FlowEdge[];
854
853
  inputSchema: TFlowInputSchema;
855
854
  outputSchema: TFlowOutputSchema;
@@ -860,7 +859,7 @@ type Flow<TFlowInputSchema extends z.ZodSchema<any>, TFlowOutputSchema extends z
860
859
  storageId: string;
861
860
  jobId: string;
862
861
  clientId: string | null;
863
- }) => Effect.Effect<FlowExecutionResult<Record<string, z.infer<TFlowOutputSchema>>>, UploadistaError, TRequirements$1>;
862
+ }) => Effect.Effect<FlowExecutionResult<Record<string, z.infer<TFlowOutputSchema>>>, UploadistaError$1, TRequirements$1>;
864
863
  resume: (args: {
865
864
  jobId: string;
866
865
  storageId: string;
@@ -871,7 +870,7 @@ type Flow<TFlowInputSchema extends z.ZodSchema<any>, TFlowOutputSchema extends z
871
870
  inputs: Record<string, z.infer<TFlowInputSchema>>;
872
871
  };
873
872
  clientId: string | null;
874
- }) => Effect.Effect<FlowExecutionResult<Record<string, z.infer<TFlowOutputSchema>>>, UploadistaError, TRequirements$1>;
873
+ }) => Effect.Effect<FlowExecutionResult<Record<string, z.infer<TFlowOutputSchema>>>, UploadistaError$1, TRequirements$1>;
875
874
  validateTypes: () => {
876
875
  isValid: boolean;
877
876
  errors: string[];
@@ -980,6 +979,11 @@ declare const uploadFileSchema: z.ZodObject<{
980
979
  path: z.ZodOptional<z.ZodString>;
981
980
  uploadId: z.ZodOptional<z.ZodString>;
982
981
  bucket: z.ZodOptional<z.ZodString>;
982
+ parts: z.ZodOptional<z.ZodArray<z.ZodObject<{
983
+ partNumber: z.ZodNumber;
984
+ etag: z.ZodString;
985
+ size: z.ZodNumber;
986
+ }, z.core.$strip>>>;
983
987
  }, z.core.$strip>;
984
988
  flow: z.ZodOptional<z.ZodObject<{
985
989
  flowId: z.ZodString;
@@ -1002,6 +1006,7 @@ declare const uploadFileSchema: z.ZodObject<{
1002
1006
  * @property storage.path - Optional path prefix within the storage backend
1003
1007
  * @property storage.uploadId - Optional backend-specific upload ID (e.g., S3 multipart upload ID)
1004
1008
  * @property storage.bucket - Optional bucket or container name
1009
+ * @property storage.parts - Optional array of uploaded parts (used by data stores that need to track parts locally, like R2)
1005
1010
  * @property flow - Optional flow processing information (when file is part of a flow)
1006
1011
  * @property flow.flowId - ID of the flow processing this file
1007
1012
  * @property flow.nodeId - ID of the flow node that created this file
@@ -1076,6 +1081,11 @@ type UploadFile = {
1076
1081
  path?: string | undefined;
1077
1082
  uploadId?: string | undefined;
1078
1083
  bucket?: string | undefined;
1084
+ parts?: Array<{
1085
+ partNumber: number;
1086
+ etag: string;
1087
+ size: number;
1088
+ }> | undefined;
1079
1089
  };
1080
1090
  flow?: {
1081
1091
  flowId: string;
@@ -1130,10 +1140,10 @@ type UploadFile = {
1130
1140
  * ```
1131
1141
  */
1132
1142
  interface BaseKvStore {
1133
- readonly get: (key: string) => Effect.Effect<string | null, UploadistaError>;
1134
- readonly set: (key: string, value: string) => Effect.Effect<void, UploadistaError>;
1135
- readonly delete: (key: string) => Effect.Effect<void, UploadistaError>;
1136
- readonly list?: (keyPrefix: string) => Effect.Effect<Array<string>, UploadistaError>;
1143
+ readonly get: (key: string) => Effect.Effect<string | null, UploadistaError$1>;
1144
+ readonly set: (key: string, value: string) => Effect.Effect<void, UploadistaError$1>;
1145
+ readonly delete: (key: string) => Effect.Effect<void, UploadistaError$1>;
1146
+ readonly list?: (keyPrefix: string) => Effect.Effect<Array<string>, UploadistaError$1>;
1137
1147
  }
1138
1148
  /**
1139
1149
  * Type-safe key-value store interface with automatic serialization.
@@ -1177,10 +1187,10 @@ interface BaseKvStore {
1177
1187
  * ```
1178
1188
  */
1179
1189
  type KvStore<TData> = {
1180
- readonly get: (key: string) => Effect.Effect<TData, UploadistaError>;
1181
- readonly set: (key: string, value: TData) => Effect.Effect<void, UploadistaError>;
1182
- readonly delete: (key: string) => Effect.Effect<void, UploadistaError>;
1183
- readonly list?: () => Effect.Effect<Array<string>, UploadistaError>;
1190
+ readonly get: (key: string) => Effect.Effect<TData, UploadistaError$1>;
1191
+ readonly set: (key: string, value: TData) => Effect.Effect<void, UploadistaError$1>;
1192
+ readonly delete: (key: string) => Effect.Effect<void, UploadistaError$1>;
1193
+ readonly list?: () => Effect.Effect<Array<string>, UploadistaError$1>;
1184
1194
  };
1185
1195
  /**
1186
1196
  * Typed wrapper class that adds serialization to a BaseKvStore.
@@ -1226,10 +1236,10 @@ declare class TypedKvStore<TData> implements KvStore<TData> {
1226
1236
  private serialize;
1227
1237
  private deserialize;
1228
1238
  constructor(baseStore: BaseKvStore, keyPrefix: string, serialize: (data: TData) => string, deserialize: (str: string) => TData);
1229
- get: (key: string) => Effect.Effect<TData, UploadistaError>;
1230
- set: (key: string, value: TData) => Effect.Effect<void, UploadistaError>;
1231
- delete: (key: string) => Effect.Effect<void, UploadistaError>;
1232
- list: () => Effect.Effect<Array<string>, UploadistaError>;
1239
+ get: (key: string) => Effect.Effect<TData, UploadistaError$1>;
1240
+ set: (key: string, value: TData) => Effect.Effect<void, UploadistaError$1>;
1241
+ delete: (key: string) => Effect.Effect<void, UploadistaError$1>;
1242
+ list: () => Effect.Effect<Array<string>, UploadistaError$1>;
1233
1243
  }
1234
1244
  /**
1235
1245
  * Default JSON serialization helpers.
@@ -1375,7 +1385,7 @@ declare const flowJobKvStore: Layer.Layer<FlowJobKVStore, never, BaseKvStoreServ
1375
1385
  */
1376
1386
  type DataStoreWriteOptions = {
1377
1387
  file_id: string;
1378
- stream: Stream.Stream<Uint8Array, UploadistaError>;
1388
+ stream: Stream.Stream<Uint8Array, UploadistaError$1>;
1379
1389
  offset: number;
1380
1390
  };
1381
1391
  /**
@@ -1507,13 +1517,13 @@ type DataStoreCapabilities = {
1507
1517
  type DataStore<TData = unknown> = {
1508
1518
  readonly bucket?: string;
1509
1519
  readonly path?: string;
1510
- readonly create: (file: TData) => Effect.Effect<TData, UploadistaError>;
1511
- readonly remove: (file_id: string) => Effect.Effect<void, UploadistaError>;
1512
- readonly read: (file_id: string) => Effect.Effect<Uint8Array, UploadistaError>;
1520
+ readonly create: (file: TData) => Effect.Effect<TData, UploadistaError$1>;
1521
+ readonly remove: (file_id: string) => Effect.Effect<void, UploadistaError$1>;
1522
+ readonly read: (file_id: string) => Effect.Effect<Uint8Array, UploadistaError$1>;
1513
1523
  readonly write: (options: DataStoreWriteOptions, dependencies: {
1514
1524
  onProgress?: (chunkSize: number) => void;
1515
- }) => Effect.Effect<number, UploadistaError>;
1516
- readonly deleteExpired?: Effect.Effect<number, UploadistaError>;
1525
+ }) => Effect.Effect<number, UploadistaError$1>;
1526
+ readonly deleteExpired?: Effect.Effect<number, UploadistaError$1>;
1517
1527
  readonly getCapabilities: () => DataStoreCapabilities;
1518
1528
  readonly validateUploadStrategy: (strategy: UploadStrategy) => Effect.Effect<boolean, never>;
1519
1529
  };
@@ -1562,8 +1572,8 @@ declare class BufferedUploadFileDataStore extends BufferedUploadFileDataStore_ba
1562
1572
  * @property bufferedDataStore - Optional temporary storage for intermediate files
1563
1573
  */
1564
1574
  type UploadFileDataStoresShape = {
1565
- getDataStore: (storageId: string, clientId: string | null) => Effect.Effect<DataStore<UploadFile>, UploadistaError>;
1566
- bufferedDataStore: Effect.Effect<DataStore<UploadFile> | undefined, UploadistaError>;
1575
+ getDataStore: (storageId: string, clientId: string | null) => Effect.Effect<DataStore<UploadFile>, UploadistaError$1>;
1576
+ bufferedDataStore: Effect.Effect<DataStore<UploadFile> | undefined, UploadistaError$1>;
1567
1577
  };
1568
1578
  declare const UploadFileDataStores_base: Context.TagClass<UploadFileDataStores, "UploadFileDataStores", UploadFileDataStoresShape>;
1569
1579
  /**
@@ -1683,15 +1693,15 @@ interface EventBroadcaster {
1683
1693
  /**
1684
1694
  * Publish a message to a channel
1685
1695
  */
1686
- readonly publish: (channel: string, message: string) => Effect.Effect<void, UploadistaError>;
1696
+ readonly publish: (channel: string, message: string) => Effect.Effect<void, UploadistaError$1>;
1687
1697
  /**
1688
1698
  * Subscribe to messages on a channel
1689
1699
  */
1690
- readonly subscribe: (channel: string, handler: (message: string) => void) => Effect.Effect<void, UploadistaError>;
1700
+ readonly subscribe: (channel: string, handler: (message: string) => void) => Effect.Effect<void, UploadistaError$1>;
1691
1701
  /**
1692
1702
  * Unsubscribe from a channel (optional - not all implementations may support)
1693
1703
  */
1694
- readonly unsubscribe?: (channel: string) => Effect.Effect<void, UploadistaError>;
1704
+ readonly unsubscribe?: (channel: string) => Effect.Effect<void, UploadistaError$1>;
1695
1705
  }
1696
1706
  declare const EventBroadcasterService_base: Context.TagClass<EventBroadcasterService, "EventBroadcaster", EventBroadcaster>;
1697
1707
  /**
@@ -1727,6 +1737,11 @@ declare const uploadEventSchema: z.ZodUnion<readonly [z.ZodObject<{
1727
1737
  path: z.ZodOptional<z.ZodString>;
1728
1738
  uploadId: z.ZodOptional<z.ZodString>;
1729
1739
  bucket: z.ZodOptional<z.ZodString>;
1740
+ parts: z.ZodOptional<z.ZodArray<z.ZodObject<{
1741
+ partNumber: z.ZodNumber;
1742
+ etag: z.ZodString;
1743
+ size: z.ZodNumber;
1744
+ }, z.core.$strip>>>;
1730
1745
  }, z.core.$strip>;
1731
1746
  flow: z.ZodOptional<z.ZodObject<{
1732
1747
  flowId: z.ZodString;
@@ -1837,6 +1852,11 @@ declare const webSocketMessageSchema: z$1.ZodUnion<readonly [z$1.ZodObject<{
1837
1852
  path: z$1.ZodOptional<z$1.ZodString>;
1838
1853
  uploadId: z$1.ZodOptional<z$1.ZodString>;
1839
1854
  bucket: z$1.ZodOptional<z$1.ZodString>;
1855
+ parts: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
1856
+ partNumber: z$1.ZodNumber;
1857
+ etag: z$1.ZodString;
1858
+ size: z$1.ZodNumber;
1859
+ }, z$1.core.$strip>>>;
1840
1860
  }, z$1.core.$strip>;
1841
1861
  flow: z$1.ZodOptional<z$1.ZodObject<{
1842
1862
  flowId: z$1.ZodString;
@@ -1980,9 +2000,9 @@ type WebSocketMessage<TEvent = unknown> = z$1.infer<typeof webSocketMessageSchem
1980
2000
  * ```
1981
2001
  */
1982
2002
  interface BaseEventEmitter {
1983
- readonly subscribe: (key: string, connection: WebSocketConnection) => Effect.Effect<void, UploadistaError>;
1984
- readonly unsubscribe: (key: string) => Effect.Effect<void, UploadistaError>;
1985
- readonly emit: (key: string, event: string) => Effect.Effect<void, UploadistaError>;
2003
+ readonly subscribe: (key: string, connection: WebSocketConnection) => Effect.Effect<void, UploadistaError$1>;
2004
+ readonly unsubscribe: (key: string) => Effect.Effect<void, UploadistaError$1>;
2005
+ readonly emit: (key: string, event: string) => Effect.Effect<void, UploadistaError$1>;
1986
2006
  }
1987
2007
  /**
1988
2008
  * Type-safe event emitter interface with automatic serialization.
@@ -2019,9 +2039,9 @@ interface BaseEventEmitter {
2019
2039
  * ```
2020
2040
  */
2021
2041
  type EventEmitter<TEvent> = {
2022
- readonly subscribe: (key: string, connection: WebSocketConnection) => Effect.Effect<void, UploadistaError>;
2023
- readonly unsubscribe: (key: string) => Effect.Effect<void, UploadistaError>;
2024
- readonly emit: (key: string, event: TEvent) => Effect.Effect<void, UploadistaError>;
2042
+ readonly subscribe: (key: string, connection: WebSocketConnection) => Effect.Effect<void, UploadistaError$1>;
2043
+ readonly unsubscribe: (key: string) => Effect.Effect<void, UploadistaError$1>;
2044
+ readonly emit: (key: string, event: TEvent) => Effect.Effect<void, UploadistaError$1>;
2025
2045
  };
2026
2046
  /**
2027
2047
  * Typed wrapper class that adds event serialization to a BaseEventEmitter.
@@ -2072,9 +2092,9 @@ declare class TypedEventEmitter<TEvent> implements EventEmitter<TEvent> {
2072
2092
  private baseEmitter;
2073
2093
  private eventToMessage;
2074
2094
  constructor(baseEmitter: BaseEventEmitter, eventToMessage: (event: TEvent) => string);
2075
- subscribe: (key: string, connection: WebSocketConnection) => Effect.Effect<void, UploadistaError>;
2076
- unsubscribe: (key: string) => Effect.Effect<void, UploadistaError>;
2077
- emit: (key: string, event: TEvent) => Effect.Effect<void, UploadistaError>;
2095
+ subscribe: (key: string, connection: WebSocketConnection) => Effect.Effect<void, UploadistaError$1>;
2096
+ unsubscribe: (key: string) => Effect.Effect<void, UploadistaError$1>;
2097
+ emit: (key: string, event: TEvent) => Effect.Effect<void, UploadistaError$1>;
2078
2098
  }
2079
2099
  /**
2080
2100
  * Default event-to-message serialization helper.
@@ -2135,6 +2155,11 @@ declare const UploadEventEmitter_base: Context.TagClass<UploadEventEmitter, "Upl
2135
2155
  path?: string | undefined;
2136
2156
  uploadId?: string | undefined;
2137
2157
  bucket?: string | undefined;
2158
+ parts?: {
2159
+ partNumber: number;
2160
+ etag: string;
2161
+ size: number;
2162
+ }[] | undefined;
2138
2163
  };
2139
2164
  size?: number | undefined;
2140
2165
  metadata?: Record<string, string | number | boolean> | undefined;
@@ -2432,7 +2457,7 @@ type MiddlewareContext = {
2432
2457
  type MiddlewareNext = () => Promise<Response>;
2433
2458
  type Middleware = (context: MiddlewareContext, next: MiddlewareNext) => Promise<Response>;
2434
2459
  declare const MiddlewareService_base: Context.TagClass<MiddlewareService, "MiddlewareService", {
2435
- readonly execute: (middlewares: Middleware[], context: MiddlewareContext, handler: MiddlewareNext) => Effect.Effect<Response, UploadistaError>;
2460
+ readonly execute: (middlewares: Middleware[], context: MiddlewareContext, handler: MiddlewareNext) => Effect.Effect<Response, UploadistaError$1>;
2436
2461
  }>;
2437
2462
  declare class MiddlewareService extends MiddlewareService_base {}
2438
2463
  declare const MiddlewareServiceLive: Layer.Layer<MiddlewareService, never, never>;
@@ -2566,16 +2591,16 @@ type UploadServerOptions = {
2566
2591
  * ```
2567
2592
  */
2568
2593
  type UploadServerShape = {
2569
- createUpload: (inputFile: InputFile, clientId: string | null) => Effect.Effect<UploadFile, UploadistaError>;
2570
- uploadChunk: (uploadId: string, clientId: string | null, chunk: ReadableStream) => Effect.Effect<UploadFile, UploadistaError>;
2571
- getCapabilities: (storageId: string, clientId: string | null) => Effect.Effect<DataStoreCapabilities, UploadistaError>;
2572
- upload: (file: InputFile, clientId: string | null, stream: ReadableStream) => Effect.Effect<UploadFile, UploadistaError>;
2573
- uploadFromUrl: (inputFile: InputFile, clientId: string | null, url: string) => Effect.Effect<UploadFile, UploadistaError>;
2574
- getUpload: (uploadId: string) => Effect.Effect<UploadFile, UploadistaError>;
2575
- read: (uploadId: string, clientId: string | null) => Effect.Effect<Uint8Array, UploadistaError>;
2576
- delete: (uploadId: string, clientId: string | null) => Effect.Effect<void, UploadistaError>;
2577
- subscribeToUploadEvents: (uploadId: string, connection: WebSocketConnection) => Effect.Effect<void, UploadistaError>;
2578
- unsubscribeFromUploadEvents: (uploadId: string) => Effect.Effect<void, UploadistaError>;
2594
+ createUpload: (inputFile: InputFile, clientId: string | null) => Effect.Effect<UploadFile, UploadistaError$1>;
2595
+ uploadChunk: (uploadId: string, clientId: string | null, chunk: ReadableStream) => Effect.Effect<UploadFile, UploadistaError$1>;
2596
+ getCapabilities: (storageId: string, clientId: string | null) => Effect.Effect<DataStoreCapabilities, UploadistaError$1>;
2597
+ upload: (file: InputFile, clientId: string | null, stream: ReadableStream) => Effect.Effect<UploadFile, UploadistaError$1>;
2598
+ uploadFromUrl: (inputFile: InputFile, clientId: string | null, url: string) => Effect.Effect<UploadFile, UploadistaError$1>;
2599
+ getUpload: (uploadId: string) => Effect.Effect<UploadFile, UploadistaError$1>;
2600
+ read: (uploadId: string, clientId: string | null) => Effect.Effect<Uint8Array, UploadistaError$1>;
2601
+ delete: (uploadId: string, clientId: string | null) => Effect.Effect<void, UploadistaError$1>;
2602
+ subscribeToUploadEvents: (uploadId: string, connection: WebSocketConnection) => Effect.Effect<void, UploadistaError$1>;
2603
+ unsubscribeFromUploadEvents: (uploadId: string) => Effect.Effect<void, UploadistaError$1>;
2579
2604
  };
2580
2605
  declare const UploadServer_base: Context.TagClass<UploadServer, "UploadServer", UploadServerShape>;
2581
2606
  /**
@@ -2634,17 +2659,17 @@ declare class UploadServer extends UploadServer_base {}
2634
2659
  * ```
2635
2660
  */
2636
2661
  declare function createUploadServer(): Effect.Effect<{
2637
- upload: (inputFile: InputFile, clientId: string | null, stream: ReadableStream) => Effect.Effect<UploadFile, UploadistaError, never>;
2638
- uploadFromUrl: (inputFile: InputFile, clientId: string | null, url: string) => Effect.Effect<UploadFile, UploadistaError, never>;
2639
- createUpload: (inputFile: InputFile, clientId: string | null) => Effect.Effect<UploadFile, UploadistaError, never>;
2640
- uploadChunk: (uploadId: string, clientId: string | null, chunk: ReadableStream) => Effect.Effect<UploadFile, UploadistaError, never>;
2641
- getUpload: (uploadId: string) => Effect.Effect<UploadFile, UploadistaError, never>;
2642
- read: (uploadId: string, clientId: string | null) => Effect.Effect<Uint8Array<ArrayBufferLike>, UploadistaError, never>;
2643
- delete: (uploadId: string, clientId: string | null) => Effect.Effect<void, UploadistaError, never>;
2644
- getCapabilities: (storageId: string, clientId: string | null) => Effect.Effect<DataStoreCapabilities, UploadistaError, never>;
2645
- subscribeToUploadEvents: (uploadId: string, connection: WebSocketConnection) => Effect.Effect<void, UploadistaError, never>;
2646
- unsubscribeFromUploadEvents: (uploadId: string) => Effect.Effect<void, UploadistaError, never>;
2647
- }, never, GenerateId | UploadFileDataStores | UploadFileKVStore | UploadEventEmitter>;
2662
+ upload: (inputFile: InputFile, clientId: string | null, stream: ReadableStream) => Effect.Effect<UploadFile, UploadistaError$1, never>;
2663
+ uploadFromUrl: (inputFile: InputFile, clientId: string | null, url: string) => Effect.Effect<UploadFile, UploadistaError$1, never>;
2664
+ createUpload: (inputFile: InputFile, clientId: string | null) => Effect.Effect<UploadFile, UploadistaError$1, never>;
2665
+ uploadChunk: (uploadId: string, clientId: string | null, chunk: ReadableStream) => Effect.Effect<UploadFile, UploadistaError$1, never>;
2666
+ getUpload: (uploadId: string) => Effect.Effect<UploadFile, UploadistaError$1, never>;
2667
+ read: (uploadId: string, clientId: string | null) => Effect.Effect<Uint8Array<ArrayBufferLike>, UploadistaError$1, never>;
2668
+ delete: (uploadId: string, clientId: string | null) => Effect.Effect<void, UploadistaError$1, never>;
2669
+ getCapabilities: (storageId: string, clientId: string | null) => Effect.Effect<DataStoreCapabilities, UploadistaError$1, never>;
2670
+ subscribeToUploadEvents: (uploadId: string, connection: WebSocketConnection) => Effect.Effect<void, UploadistaError$1, never>;
2671
+ unsubscribeFromUploadEvents: (uploadId: string) => Effect.Effect<void, UploadistaError$1, never>;
2672
+ }, never, UploadFileDataStores | UploadFileKVStore | UploadEventEmitter | GenerateId>;
2648
2673
  /**
2649
2674
  * Pre-built UploadServer Effect Layer.
2650
2675
  *
@@ -2675,7 +2700,7 @@ declare function createUploadServer(): Effect.Effect<{
2675
2700
  * }).pipe(Effect.provide(fullUploadSystem));
2676
2701
  * ```
2677
2702
  */
2678
- declare const uploadServer: Layer.Layer<UploadServer, never, GenerateId | UploadFileDataStores | UploadFileKVStore | UploadEventEmitter>;
2703
+ declare const uploadServer: Layer.Layer<UploadServer, never, UploadFileDataStores | UploadFileKVStore | UploadEventEmitter | GenerateId>;
2679
2704
  //#endregion
2680
2705
  //#region src/upload/upload-strategy-negotiator.d.ts
2681
2706
  /**
@@ -2946,6 +2971,35 @@ type FlowJob = {
2946
2971
  type FlowJobStatus = "pending" | "running" | "completed" | "failed" | "started" | "paused" | "cancelled";
2947
2972
  //#endregion
2948
2973
  //#region src/flow/flow-server.d.ts
2974
+ /**
2975
+ * WaitUntil callback type for keeping background tasks alive.
2976
+ * Used in serverless environments like Cloudflare Workers to prevent
2977
+ * premature termination of background operations.
2978
+ *
2979
+ * @param promise - Promise representing the background task to keep alive
2980
+ */
2981
+ type WaitUntilCallback = (promise: Promise<unknown>) => void;
2982
+ declare const FlowWaitUntil_base: Context.TagClass<FlowWaitUntil, "FlowWaitUntil", WaitUntilCallback>;
2983
+ /**
2984
+ * Optional WaitUntil service for background task management.
2985
+ * When provided, allows flows to execute beyond the HTTP response lifecycle.
2986
+ *
2987
+ * In Cloudflare Workers, use `ctx.executionCtx.waitUntil()`.
2988
+ * In other environments, this can be undefined (flows execute normally with Effect.fork).
2989
+ *
2990
+ * This service uses Effect's optional service pattern. Access it via:
2991
+ * ```typescript
2992
+ * const waitUntil = yield* FlowWaitUntil.optional;
2993
+ * if (Option.isSome(waitUntil)) {
2994
+ * // Use waitUntil.value
2995
+ * }
2996
+ * ```
2997
+ *
2998
+ * @see https://effect.website/docs/requirements-management/services/#optional-services
2999
+ */
3000
+ declare class FlowWaitUntil extends FlowWaitUntil_base {
3001
+ static optional: Effect.Effect<Option.Option<WaitUntilCallback>, never, never>;
3002
+ }
2949
3003
  /**
2950
3004
  * Flow provider interface that applications must implement.
2951
3005
  *
@@ -2982,7 +3036,7 @@ type FlowJobStatus = "pending" | "running" | "completed" | "failed" | "started"
2982
3036
  * ```
2983
3037
  */
2984
3038
  type FlowProviderShape<TRequirements$1 = any> = {
2985
- getFlow: (flowId: string, clientId: string | null) => Effect.Effect<Flow<any, any, TRequirements$1>, UploadistaError>;
3039
+ getFlow: (flowId: string, clientId: string | null) => Effect.Effect<Flow<any, any, TRequirements$1>, UploadistaError$1>;
2986
3040
  };
2987
3041
  declare const FlowProvider_base: Context.TagClass<FlowProvider, "FlowProvider", FlowProviderShape<any>>;
2988
3042
  /**
@@ -3088,9 +3142,9 @@ declare class FlowProvider extends FlowProvider_base {}
3088
3142
  * ```
3089
3143
  */
3090
3144
  type FlowServerShape = {
3091
- getFlow: <TRequirements>(flowId: string, clientId: string | null) => Effect.Effect<Flow<any, any, TRequirements>, UploadistaError>;
3092
- getFlowData: (flowId: string, clientId: string | null) => Effect.Effect<FlowData, UploadistaError>;
3093
- runFlow: <TRequirements>({
3145
+ getFlow: <TRequirements$1>(flowId: string, clientId: string | null) => Effect.Effect<Flow<any, any, TRequirements$1>, UploadistaError$1>;
3146
+ getFlowData: (flowId: string, clientId: string | null) => Effect.Effect<FlowData, UploadistaError$1>;
3147
+ runFlow: <TRequirements$1>({
3094
3148
  flowId,
3095
3149
  storageId,
3096
3150
  clientId,
@@ -3100,8 +3154,8 @@ type FlowServerShape = {
3100
3154
  storageId: string;
3101
3155
  clientId: string | null;
3102
3156
  inputs: any;
3103
- }) => Effect.Effect<FlowJob, UploadistaError, TRequirements>;
3104
- resumeFlow: <TRequirements>({
3157
+ }) => Effect.Effect<FlowJob, UploadistaError$1, TRequirements$1>;
3158
+ resumeFlow: <TRequirements$1>({
3105
3159
  jobId,
3106
3160
  nodeId,
3107
3161
  newData,
@@ -3111,12 +3165,12 @@ type FlowServerShape = {
3111
3165
  nodeId: string;
3112
3166
  newData: unknown;
3113
3167
  clientId: string | null;
3114
- }) => Effect.Effect<FlowJob, UploadistaError, TRequirements>;
3115
- pauseFlow: (jobId: string, clientId: string | null) => Effect.Effect<FlowJob, UploadistaError>;
3116
- cancelFlow: (jobId: string, clientId: string | null) => Effect.Effect<FlowJob, UploadistaError>;
3117
- getJobStatus: (jobId: string) => Effect.Effect<FlowJob, UploadistaError>;
3118
- subscribeToFlowEvents: (jobId: string, connection: WebSocketConnection) => Effect.Effect<void, UploadistaError>;
3119
- unsubscribeFromFlowEvents: (jobId: string) => Effect.Effect<void, UploadistaError>;
3168
+ }) => Effect.Effect<FlowJob, UploadistaError$1, TRequirements$1>;
3169
+ pauseFlow: (jobId: string, clientId: string | null) => Effect.Effect<FlowJob, UploadistaError$1>;
3170
+ cancelFlow: (jobId: string, clientId: string | null) => Effect.Effect<FlowJob, UploadistaError$1>;
3171
+ getJobStatus: (jobId: string) => Effect.Effect<FlowJob, UploadistaError$1>;
3172
+ subscribeToFlowEvents: (jobId: string, connection: WebSocketConnection) => Effect.Effect<void, UploadistaError$1>;
3173
+ unsubscribeFromFlowEvents: (jobId: string) => Effect.Effect<void, UploadistaError$1>;
3120
3174
  };
3121
3175
  declare const FlowServer_base: Context.TagClass<FlowServer, "FlowServer", FlowServerShape>;
3122
3176
  /**
@@ -3158,18 +3212,18 @@ declare class FlowServer extends FlowServer_base {}
3158
3212
  * @property kvStore - KV store for flow job metadata
3159
3213
  */
3160
3214
  type FlowServerOptions = {
3161
- getFlow: <TRequirements>({
3215
+ getFlow: <TRequirements$1>({
3162
3216
  flowId,
3163
3217
  storageId
3164
3218
  }: {
3165
3219
  flowId: string;
3166
3220
  storageId: string;
3167
- }) => Promise<Flow<any, any, TRequirements>>;
3221
+ }) => Promise<Flow<any, any, TRequirements$1>>;
3168
3222
  kvStore: KvStore<FlowJob>;
3169
3223
  };
3170
3224
  declare function createFlowServer(): Effect.Effect<{
3171
- getFlow: <TRequirements>(flowId: string, clientId: string | null) => Effect.Effect<Flow<any, any, any>, UploadistaError, never>;
3172
- getFlowData: (flowId: string, clientId: string | null) => Effect.Effect<FlowData, UploadistaError, never>;
3225
+ getFlow: <TRequirements$1>(flowId: string, clientId: string | null) => Effect.Effect<Flow<any, any, any>, UploadistaError$1, never>;
3226
+ getFlowData: (flowId: string, clientId: string | null) => Effect.Effect<FlowData, UploadistaError$1, never>;
3173
3227
  runFlow: ({
3174
3228
  flowId,
3175
3229
  storageId,
@@ -3180,8 +3234,8 @@ declare function createFlowServer(): Effect.Effect<{
3180
3234
  storageId: string;
3181
3235
  clientId: string | null;
3182
3236
  inputs: unknown;
3183
- }) => Effect.Effect<FlowJob, UploadistaError, any>;
3184
- getJobStatus: (jobId: string) => Effect.Effect<FlowJob, UploadistaError, never>;
3237
+ }) => Effect.Effect<FlowJob, UploadistaError$1, never>;
3238
+ getJobStatus: (jobId: string) => Effect.Effect<FlowJob, UploadistaError$1, never>;
3185
3239
  resumeFlow: ({
3186
3240
  jobId,
3187
3241
  nodeId,
@@ -3192,13 +3246,13 @@ declare function createFlowServer(): Effect.Effect<{
3192
3246
  nodeId: string;
3193
3247
  newData: unknown;
3194
3248
  clientId: string | null;
3195
- }) => Effect.Effect<FlowJob, UploadistaError, any>;
3196
- pauseFlow: (jobId: string, clientId: string | null) => Effect.Effect<FlowJob, UploadistaError, never>;
3197
- cancelFlow: (jobId: string, clientId: string | null) => Effect.Effect<FlowJob, UploadistaError, never>;
3198
- subscribeToFlowEvents: (jobId: string, connection: WebSocketConnection) => Effect.Effect<void, UploadistaError, never>;
3199
- unsubscribeFromFlowEvents: (jobId: string) => Effect.Effect<void, UploadistaError, never>;
3200
- }, never, FlowProvider | FlowJobKVStore | FlowEventEmitter | UploadServer>;
3201
- declare const flowServer: Layer.Layer<FlowServer, never, FlowProvider | FlowJobKVStore | FlowEventEmitter | UploadServer>;
3249
+ }) => Effect.Effect<FlowJob, UploadistaError$1, never>;
3250
+ pauseFlow: (jobId: string, clientId: string | null) => Effect.Effect<FlowJob, UploadistaError$1, never>;
3251
+ cancelFlow: (jobId: string, clientId: string | null) => Effect.Effect<FlowJob, UploadistaError$1, never>;
3252
+ subscribeToFlowEvents: (jobId: string, connection: WebSocketConnection) => Effect.Effect<void, UploadistaError$1, never>;
3253
+ unsubscribeFromFlowEvents: (jobId: string) => Effect.Effect<void, UploadistaError$1, never>;
3254
+ }, never, UploadServer | FlowProvider | FlowJobKVStore | FlowEventEmitter>;
3255
+ declare const flowServer: Layer.Layer<FlowServer, never, UploadServer | FlowProvider | FlowJobKVStore | FlowEventEmitter>;
3202
3256
  type FlowServerLayer = typeof flowServer;
3203
3257
  //#endregion
3204
3258
  //#region src/flow/nodes/input-node.d.ts
@@ -3274,7 +3328,7 @@ declare function createInputNode(id: string, params?: InputNodeParams): Effect.E
3274
3328
  url: string;
3275
3329
  storageId?: string | undefined;
3276
3330
  metadata?: Record<string, any> | undefined;
3277
- }, UploadFile, UploadistaError>, never, UploadServer>;
3331
+ }, UploadFile, UploadistaError$1>, never, UploadServer>;
3278
3332
  //#endregion
3279
3333
  //#region src/flow/nodes/storage-node.d.ts
3280
3334
  /**
@@ -3324,6 +3378,11 @@ declare function createStorageNode(id: string, postProcessFile?: (file: UploadFi
3324
3378
  path?: string | undefined;
3325
3379
  uploadId?: string | undefined;
3326
3380
  bucket?: string | undefined;
3381
+ parts?: {
3382
+ partNumber: number;
3383
+ etag: string;
3384
+ size: number;
3385
+ }[] | undefined;
3327
3386
  };
3328
3387
  size?: number | undefined;
3329
3388
  metadata?: Record<string, string | number | boolean> | undefined;
@@ -3337,7 +3396,7 @@ declare function createStorageNode(id: string, postProcessFile?: (file: UploadFi
3337
3396
  nodeId: string;
3338
3397
  jobId: string;
3339
3398
  } | undefined;
3340
- }, UploadFile, UploadistaError>, never, UploadServer>;
3399
+ }, UploadFile, UploadistaError$1>, never, UploadServer>;
3341
3400
  //#endregion
3342
3401
  //#region src/flow/nodes/transform-node.d.ts
3343
3402
  /**
@@ -3355,7 +3414,7 @@ interface TransformNodeConfig {
3355
3414
  bytes: Uint8Array;
3356
3415
  type?: string;
3357
3416
  fileName?: string;
3358
- }, UploadistaError>;
3417
+ }, UploadistaError$1>;
3359
3418
  }
3360
3419
  /**
3361
3420
  * Creates a transform node that handles the common pattern of:
@@ -3411,6 +3470,11 @@ declare function createTransformNode({
3411
3470
  path?: string | undefined;
3412
3471
  uploadId?: string | undefined;
3413
3472
  bucket?: string | undefined;
3473
+ parts?: {
3474
+ partNumber: number;
3475
+ etag: string;
3476
+ size: number;
3477
+ }[] | undefined;
3414
3478
  };
3415
3479
  size?: number | undefined;
3416
3480
  metadata?: Record<string, string | number | boolean> | undefined;
@@ -3424,7 +3488,7 @@ declare function createTransformNode({
3424
3488
  nodeId: string;
3425
3489
  jobId: string;
3426
3490
  } | undefined;
3427
- }, UploadFile, UploadistaError>, never, UploadServer>;
3491
+ }, UploadFile, UploadistaError$1>, never, UploadServer>;
3428
3492
  //#endregion
3429
3493
  //#region src/flow/parallel-scheduler.d.ts
3430
3494
  /**
@@ -3531,7 +3595,7 @@ declare class ParallelScheduler {
3531
3595
  * // results will be in order: [result1, result2, result3]
3532
3596
  * ```
3533
3597
  */
3534
- executeNodesInParallel<T, E, R>(nodeExecutors: Array<() => Effect.Effect<T, E, R>>): Effect.Effect<T[], E, R>;
3598
+ executeNodesInParallel<T, E, R$1>(nodeExecutors: Array<() => Effect.Effect<T, E, R$1>>): Effect.Effect<T[], E, R$1>;
3535
3599
  /**
3536
3600
  * Determines if a set of nodes can be safely executed in parallel.
3537
3601
  *
@@ -3588,7 +3652,7 @@ interface CredentialProviderShape {
3588
3652
  getCredential: (params: {
3589
3653
  clientId: string | null;
3590
3654
  serviceType?: string;
3591
- }) => Effect.Effect<Record<string, unknown>, UploadistaError>;
3655
+ }) => Effect.Effect<Record<string, unknown>, UploadistaError$1>;
3592
3656
  }
3593
3657
  declare const CredentialProvider_base: Context.TagClass<CredentialProvider, "CredentialProvider", CredentialProviderShape>;
3594
3658
  /**
@@ -3614,185 +3678,6 @@ declare const CredentialProvider_base: Context.TagClass<CredentialProvider, "Cre
3614
3678
  */
3615
3679
  declare class CredentialProvider extends CredentialProvider_base {}
3616
3680
  //#endregion
3617
- //#region dist/uploadista-error-kZCQLC_U.d.ts
3618
- //#region src/errors/uploadista-error.d.ts
3619
-
3620
- /**
3621
- * Union type of all possible error codes in the Uploadista system.
3622
- *
3623
- * Each error code corresponds to a specific error condition with predefined
3624
- * HTTP status codes and messages in the ERROR_CATALOG.
3625
- */
3626
- type UploadistaErrorCode = "MISSING_OFFSET" | "ABORTED" | "INVALID_TERMINATION" | "ERR_LOCK_TIMEOUT" | "INVALID_CONTENT_TYPE" | "FLOW_STRUCTURE_ERROR" | "FLOW_CYCLE_ERROR" | "FLOW_NODE_NOT_FOUND" | "FLOW_NODE_ERROR" | "FLOW_NOT_AUTHORIZED" | "FLOW_NOT_FOUND" | "FLOW_PAUSED" | "FLOW_CANCELLED" | "FILE_READ_ERROR" | "FLOW_JOB_NOT_FOUND" | "FLOW_JOB_ERROR" | "DATASTORE_NOT_FOUND" | "FILE_NOT_FOUND" | "INVALID_OFFSET" | "FILE_NO_LONGER_EXISTS" | "ERR_SIZE_EXCEEDED" | "ERR_MAX_SIZE_EXCEEDED" | "INVALID_LENGTH" | "INVALID_METADATA" | "VALIDATION_ERROR" | "STORAGE_NOT_AUTHORIZED" | "UNKNOWN_ERROR" | "FILE_WRITE_ERROR" | "UPLOAD_ID_NOT_FOUND" | "FLOW_OUTPUT_VALIDATION_ERROR" | "FLOW_INPUT_VALIDATION_ERROR" | "CHECKSUM_MISMATCH" | "MIMETYPE_MISMATCH" | "UNSUPPORTED_CHECKSUM_ALGORITHM";
3627
- /**
3628
- * Catalog of all predefined errors in the Uploadista system.
3629
- *
3630
- * Maps error codes to their HTTP status codes and default error messages.
3631
- * This centralized catalog ensures consistent error handling across all
3632
- * Uploadista packages and adapters.
3633
- *
3634
- * Each error entry contains:
3635
- * - `status`: HTTP status code (400-500 range)
3636
- * - `body`: Human-readable error message
3637
- *
3638
- * @example
3639
- * ```typescript
3640
- * // Access a specific error definition
3641
- * const fileNotFound = ERROR_CATALOG.FILE_NOT_FOUND;
3642
- * console.log(fileNotFound.status); // 404
3643
- * console.log(fileNotFound.body); // "The file for this url was not found\n"
3644
- *
3645
- * // Use with UploadistaError
3646
- * const error = UploadistaError.fromCode("FILE_NOT_FOUND");
3647
- * ```
3648
- */
3649
-
3650
- declare const UploadistaError_base: new <A extends Record<string, any> = {}>(args: effect_Types0.Equals<A, {}> extends true ? void : { readonly [P in keyof A as P extends "_tag" ? never : P]: A[P] }) => effect_Cause0.YieldableError & {
3651
- readonly _tag: "UploadistaError";
3652
- } & Readonly<A>;
3653
- /**
3654
- * Standard error class for all Uploadista operations.
3655
- *
3656
- * UploadistaError provides a consistent error handling approach across the entire
3657
- * Uploadista ecosystem. Each error has:
3658
- * - A typed error code from the ERROR_CATALOG
3659
- * - An HTTP-compatible status code
3660
- * - A human-readable error message (body)
3661
- * - Optional additional details and cause information
3662
- *
3663
- * This class integrates with Effect-TS for functional error handling and can be
3664
- * easily converted to an Effect that fails.
3665
- *
3666
- * @example
3667
- * ```typescript
3668
- * // Create from error code
3669
- * const error = UploadistaError.fromCode("FILE_NOT_FOUND");
3670
- *
3671
- * // Create with custom details
3672
- * const customError = UploadistaError.fromCode("FLOW_NODE_ERROR", {
3673
- * body: "Failed to process image",
3674
- * cause: originalError,
3675
- * details: { nodeId: "resize-1", fileId: "abc123" }
3676
- * });
3677
- *
3678
- * // Use with Effect
3679
- * const effect = customError.toEffect<void>();
3680
- *
3681
- * // In an Effect pipeline
3682
- * return Effect.gen(function* () {
3683
- * const file = yield* getFile(id);
3684
- * if (!file) {
3685
- * return yield* UploadistaError.fromCode("FILE_NOT_FOUND").toEffect();
3686
- * }
3687
- * return file;
3688
- * });
3689
- * ```
3690
- */
3691
- declare class UploadistaError$1 extends UploadistaError_base {
3692
- readonly code: string;
3693
- readonly status: number;
3694
- readonly status_code: number;
3695
- readonly body: string;
3696
- readonly details?: unknown;
3697
- constructor({
3698
- code,
3699
- status,
3700
- body,
3701
- cause,
3702
- details
3703
- }: {
3704
- code: UploadistaErrorCode | string;
3705
- status: number;
3706
- body: string;
3707
- cause?: unknown;
3708
- details?: unknown;
3709
- });
3710
- /**
3711
- * Creates an UploadistaError from a predefined error code.
3712
- *
3713
- * This is the primary way to create errors in the Uploadista system. Each error code
3714
- * has a default status and message defined in ERROR_CATALOG, but these can be overridden
3715
- * for specific use cases.
3716
- *
3717
- * @param code - One of the predefined error codes from UploadistaErrorCode
3718
- * @param overrides - Optional overrides for the default error properties
3719
- * @param overrides.status - Custom HTTP status code (overrides the default)
3720
- * @param overrides.body - Custom error message (overrides the default)
3721
- * @param overrides.details - Additional structured data about the error
3722
- * @param overrides.cause - The underlying error that caused this error (for error chaining)
3723
- *
3724
- * @returns A new UploadistaError instance
3725
- *
3726
- * @example
3727
- * ```typescript
3728
- * // Use default error
3729
- * const error = UploadistaError.fromCode("FILE_NOT_FOUND");
3730
- *
3731
- * // Override message
3732
- * const customError = UploadistaError.fromCode("FILE_NOT_FOUND", {
3733
- * body: `File with ID ${fileId} was not found in storage`
3734
- * });
3735
- *
3736
- * // Include cause and details
3737
- * const detailedError = UploadistaError.fromCode("DATASTORE_NOT_FOUND", {
3738
- * cause: storageException,
3739
- * details: { storageId: "s3-prod", region: "us-east-1" }
3740
- * });
3741
- * ```
3742
- */
3743
- static fromCode(code: UploadistaErrorCode, overrides?: Partial<Pick<UploadistaError$1, "status" | "body">> & {
3744
- details?: unknown;
3745
- cause?: unknown;
3746
- }): UploadistaError$1;
3747
- /**
3748
- * Converts this error to an Effect that immediately fails.
3749
- *
3750
- * This method integrates UploadistaError with Effect-TS's error handling system,
3751
- * allowing errors to be used in Effect pipelines with proper type checking.
3752
- *
3753
- * @template T - The success type of the Effect (defaults to never since it always fails)
3754
- * @returns An Effect that fails with this UploadistaError
3755
- *
3756
- * @example
3757
- * ```typescript
3758
- * const error = UploadistaError.fromCode("FILE_NOT_FOUND");
3759
- *
3760
- * // Use in an Effect pipeline
3761
- * return Effect.gen(function* () {
3762
- * const file = yield* kvStore.get(fileId);
3763
- * if (!file) {
3764
- * return yield* error.toEffect();
3765
- * }
3766
- * return file;
3767
- * });
3768
- * ```
3769
- */
3770
- toEffect<T = never>(): Effect.Effect<T, UploadistaError$1>;
3771
- }
3772
- /**
3773
- * Type guard to check if an unknown value is an UploadistaError.
3774
- *
3775
- * Useful for error handling when catching errors that might be from
3776
- * different sources or libraries.
3777
- *
3778
- * @param error - The value to check
3779
- * @returns True if the value is an UploadistaError instance
3780
- *
3781
- * @example
3782
- * ```typescript
3783
- * try {
3784
- * await someOperation();
3785
- * } catch (error) {
3786
- * if (isUploadistaError(error)) {
3787
- * console.log(`Uploadista error: ${error.code} (${error.status})`);
3788
- * console.log(error.body);
3789
- * } else {
3790
- * console.error("Unknown error:", error);
3791
- * }
3792
- * }
3793
- * ```
3794
- */
3795
- //#endregion
3796
3681
  //#region src/flow/plugins/image-ai-plugin.d.ts
3797
3682
  /**
3798
3683
  * Context information for AI image processing operations.
@@ -3817,7 +3702,7 @@ type ImageAiPluginShape = {
3817
3702
  */
3818
3703
  removeBackground: (inputUrl: string, context: ImageAiContext) => Effect.Effect<{
3819
3704
  outputUrl: string;
3820
- }, UploadistaError$1>;
3705
+ }, UploadistaError>;
3821
3706
  /**
3822
3707
  * Generates a textual description of an image using AI analysis.
3823
3708
  *
@@ -3828,7 +3713,7 @@ type ImageAiPluginShape = {
3828
3713
  */
3829
3714
  describeImage: (inputUrl: string, context: ImageAiContext) => Effect.Effect<{
3830
3715
  description: string;
3831
- }, UploadistaError$1>;
3716
+ }, UploadistaError>;
3832
3717
  };
3833
3718
  declare const ImageAiPlugin_base: Context.TagClass<ImageAiPlugin, "ImageAiPlugin", ImageAiPluginShape>;
3834
3719
  /**
@@ -3906,7 +3791,7 @@ type ImagePluginShape = {
3906
3791
  * @returns An Effect that resolves to the optimized image as a Uint8Array
3907
3792
  * @throws {UploadistaError} When image optimization fails
3908
3793
  */
3909
- optimize: (input: Uint8Array, options: OptimizeParams) => Effect.Effect<Uint8Array, UploadistaError$1>;
3794
+ optimize: (input: Uint8Array, options: OptimizeParams) => Effect.Effect<Uint8Array, UploadistaError>;
3910
3795
  /**
3911
3796
  * Resizes an image to specified dimensions.
3912
3797
  *
@@ -3915,7 +3800,7 @@ type ImagePluginShape = {
3915
3800
  * @returns An Effect that resolves to the resized image as a Uint8Array
3916
3801
  * @throws {UploadistaError} When image resizing fails
3917
3802
  */
3918
- resize: (input: Uint8Array, options: ResizeParams) => Effect.Effect<Uint8Array, UploadistaError$1>;
3803
+ resize: (input: Uint8Array, options: ResizeParams) => Effect.Effect<Uint8Array, UploadistaError>;
3919
3804
  };
3920
3805
  declare const ImagePlugin_base: Context.TagClass<ImagePlugin, "ImagePlugin", ImagePluginShape>;
3921
3806
  /**
@@ -4006,7 +3891,7 @@ type ZipPluginShape = {
4006
3891
  * @returns An Effect that resolves to the ZIP file as a Uint8Array
4007
3892
  * @throws {UploadistaError} When ZIP creation fails
4008
3893
  */
4009
- zip: (inputs: ZipInput[], options: ZipParams) => Effect.Effect<Uint8Array, UploadistaError$1>;
3894
+ zip: (inputs: ZipInput[], options: ZipParams) => Effect.Effect<Uint8Array, UploadistaError>;
4010
3895
  };
4011
3896
  declare const ZipPlugin_base: Context.TagClass<ZipPlugin, "ZipPlugin", ZipPluginShape>;
4012
3897
  /**
@@ -4030,17 +3915,17 @@ declare const ZipPlugin_base: Context.TagClass<ZipPlugin, "ZipPlugin", ZipPlugin
4030
3915
  declare class ZipPlugin extends ZipPlugin_base {}
4031
3916
  //#endregion
4032
3917
  //#region src/flow/typed-flow.d.ts
4033
- type NodeDefinition<TNodeError = never, TNodeRequirements = never> = FlowNode<any, any, UploadistaError> | Effect.Effect<FlowNode<any, any, UploadistaError>, TNodeError, TNodeRequirements>;
3918
+ type NodeDefinition<TNodeError = never, TNodeRequirements = never> = FlowNode<any, any, UploadistaError$1> | Effect.Effect<FlowNode<any, any, UploadistaError$1>, TNodeError, TNodeRequirements>;
4034
3919
  type NodeDefinitionsRecord = Record<string, NodeDefinition<any, any>>;
4035
- type NodeDefinitionError<T$1> = T$1 extends Effect.Effect<FlowNode<any, any, UploadistaError>, infer TError, any> ? TError : never;
4036
- type NodeDefinitionRequirements<T$1> = T$1 extends Effect.Effect<FlowNode<any, any, UploadistaError>, any, infer TRequirements> ? TRequirements : never;
3920
+ type NodeDefinitionError<T> = T extends Effect.Effect<FlowNode<any, any, UploadistaError$1>, infer TError, any> ? TError : never;
3921
+ type NodeDefinitionRequirements<T> = T extends Effect.Effect<FlowNode<any, any, UploadistaError$1>, any, infer TRequirements> ? TRequirements : never;
4037
3922
  type NodesErrorUnion<TNodes extends NodeDefinitionsRecord> = { [K in keyof TNodes]: NodeDefinitionError<TNodes[K]> }[keyof TNodes];
4038
3923
  type NodesRequirementsUnion<TNodes extends NodeDefinitionsRecord> = { [K in keyof TNodes]: NodeDefinitionRequirements<TNodes[K]> }[keyof TNodes];
4039
3924
  type FlowRequirements<TNodes extends NodeDefinitionsRecord> = NodesRequirementsUnion<TNodes>;
4040
3925
  type FlowPluginRequirements<TNodes extends NodeDefinitionsRecord> = Exclude<FlowRequirements<TNodes>, UploadServer>;
4041
- type InferNode<T$1> = T$1 extends FlowNode<any, any, UploadistaError> ? T$1 : T$1 extends Effect.Effect<infer R, any, any> ? R extends FlowNode<any, any, UploadistaError> ? R : never : never;
3926
+ type InferNode<T> = T extends FlowNode<any, any, UploadistaError$1> ? T : T extends Effect.Effect<infer R, any, any> ? R extends FlowNode<any, any, UploadistaError$1> ? R : never : never;
4042
3927
  type ExtractKeysByNodeType<TNodes extends NodeDefinitionsRecord, TType extends NodeType> = { [K in keyof TNodes]: InferNode<TNodes[K]>["type"] extends TType ? K : never }[keyof TNodes];
4043
- type SchemaInfer<T$1> = T$1 extends z.ZodTypeAny ? z.infer<T$1> : never;
3928
+ type SchemaInfer<T> = T extends z.ZodTypeAny ? z.infer<T> : never;
4044
3929
  type FlowInputMap<TNodes extends NodeDefinitionsRecord> = { [K in Extract<ExtractKeysByNodeType<TNodes, NodeType.input>, string>]: SchemaInfer<InferNode<TNodes[K]>["inputSchema"]> };
4045
3930
  type FlowOutputMap<TNodes extends NodeDefinitionsRecord> = { [K in Extract<ExtractKeysByNodeType<TNodes, NodeType.output>, string>]: SchemaInfer<InferNode<TNodes[K]>["outputSchema"]> };
4046
3931
  type FlowInputUnion<TNodes extends NodeDefinitionsRecord> = { [K in Extract<ExtractKeysByNodeType<TNodes, NodeType.input>, string>]: SchemaInfer<InferNode<TNodes[K]>["inputSchema"]> }[Extract<ExtractKeysByNodeType<TNodes, NodeType.input>, string>];
@@ -4060,7 +3945,7 @@ type TypedFlowConfig<TNodes extends NodeDefinitionsRecord> = {
4060
3945
  typeChecker?: TypeCompatibilityChecker;
4061
3946
  onEvent?: (event: FlowEvent) => Effect.Effect<{
4062
3947
  eventId: string | null;
4063
- }, UploadistaError>;
3948
+ }, UploadistaError$1>;
4064
3949
  parallelExecution?: {
4065
3950
  enabled?: boolean;
4066
3951
  maxConcurrency?: number;
@@ -4076,7 +3961,7 @@ type TypedFlow<TNodes extends NodeDefinitionsRecord, TInputSchema extends z.ZodT
4076
3961
  inputs?: Partial<FlowInputMap<TNodes>>;
4077
3962
  storageId: string;
4078
3963
  jobId: string;
4079
- }) => Effect.Effect<FlowExecutionResult<FlowOutputMap<TNodes>>, UploadistaError, FlowRequirements<TNodes>>;
3964
+ }) => Effect.Effect<FlowExecutionResult<FlowOutputMap<TNodes>>, UploadistaError$1, FlowRequirements<TNodes>>;
4080
3965
  resume: (args: {
4081
3966
  jobId: string;
4082
3967
  storageId: string;
@@ -4086,12 +3971,12 @@ type TypedFlow<TNodes extends NodeDefinitionsRecord, TInputSchema extends z.ZodT
4086
3971
  currentIndex: number;
4087
3972
  inputs: Partial<FlowInputMap<TNodes>>;
4088
3973
  };
4089
- }) => Effect.Effect<FlowExecutionResult<FlowOutputMap<TNodes>>, UploadistaError, FlowRequirements<TNodes>>;
3974
+ }) => Effect.Effect<FlowExecutionResult<FlowOutputMap<TNodes>>, UploadistaError$1, FlowRequirements<TNodes>>;
4090
3975
  readonly [typedFlowInputsSymbol]?: FlowInputMap<TNodes>;
4091
3976
  readonly [typedFlowOutputsSymbol]?: FlowOutputMap<TNodes>;
4092
3977
  readonly [typedFlowPluginsSymbol]?: FlowPluginRequirements<TNodes>;
4093
3978
  };
4094
- declare function createFlow<TNodes extends NodeDefinitionsRecord>(config: TypedFlowConfig<TNodes>): Effect.Effect<TypedFlow<TNodes, z.ZodType<FlowInputUnion<TNodes>>, z.ZodType<FlowOutputUnion<TNodes>>>, NodesErrorUnion<TNodes> | UploadistaError, FlowRequirements<TNodes>>;
3979
+ declare function createFlow<TNodes extends NodeDefinitionsRecord>(config: TypedFlowConfig<TNodes>): Effect.Effect<TypedFlow<TNodes, z.ZodType<FlowInputUnion<TNodes>>, z.ZodType<FlowOutputUnion<TNodes>>>, NodesErrorUnion<TNodes> | UploadistaError$1, FlowRequirements<TNodes>>;
4095
3980
  //#endregion
4096
3981
  //#region src/flow/types/flow-file.d.ts
4097
3982
  /**
@@ -4179,5 +4064,5 @@ type ResolvedUploadMetadata = {
4179
4064
  };
4180
4065
  declare function resolveUploadMetadata(metadata: FileMetadata): ResolvedUploadMetadata;
4181
4066
  //#endregion
4182
- export { FlowServerShape as $, FlowJobKVStore as $t, ImageAiContext as A, FlowEventFlowStart as An, flowEventEmitter as At, StorageParams as B, ConditionOperator as Bn, BufferedUploadFileDataStore as Bt, describeImageParamsSchema as C, waitingNodeExecution as Cn, BaseEventEmitter as Ct, resizeParamsSchema as D, FlowEventFlowEnd as Dn, TypedEventEmitter as Dt, ResizeParams as E, FlowEventFlowCancel as En, FlowEventEmitter as Et, ExecutionLevel as F, FlowEventNodePause as Fn, UploadEvent as Ft, createInputNode as G, UploadFileDataStore as Gt, storageParamsSchema as H, NodeType as Hn, DataStoreCapabilities as Ht, ParallelScheduler as I, FlowEventNodeResponse as In, UploadEventType as It, FlowProvider as J, UploadStrategy as Jt, inputDataSchema as K, UploadFileDataStores as Kt, ParallelSchedulerConfig as L, FlowEventNodeResume as Ln, uploadEventSchema as Lt, ImageAiPluginShape as M, FlowEventJobStart as Mn, WebSocketConnection as Mt, CredentialProvider as N, FlowEventNodeEnd as Nn, WebSocketMessage as Nt, OptimizeParams as O, FlowEventFlowError as On, UploadEventEmitter as Ot, CredentialProviderShape as P, FlowEventNodeError as Pn, webSocketMessageSchema as Pt, FlowServerOptions as Q, BaseKvStoreService as Qt, TransformNodeConfig as R, FlowEventNodeStart as Rn, EventBroadcaster as Rt, DescribeImageParams as S, completeNodeExecution as Sn, inputFileSchema as St, ImagePluginShape as T, FlowEvent as Tn, EventEmitter as Tt, InputData as U, createFlowNode as Un, DataStoreConfig as Ut, createStorageNode as V, ConditionValue as Vn, DataStore as Vt, InputNodeParams as W, getNodeData as Wn, DataStoreWriteOptions as Wt, FlowServer as X, isDataStore as Xt, FlowProviderShape as Y, createDataStoreLayer as Yt, FlowServerLayer as Z, BaseKvStore as Zt, ZipParams as _, FlowNodeData as _n, MiddlewareContext as _t, FlowCondition as a, uploadFileKvStore as an, FlowJobTaskStatus as at, RemoveBackgroundParams as b, NodeTypeMap as bn, MiddlewareServiceLive as bt, FlowPluginRequirements as c, Flow as cn, UploadStrategyOptions as ct, NodeDefinitionsRecord as d, createFlowWithSchema as dn, UploadServerShape as dt, KvStore as en, createFlowServer as et, TypedFlow as f, getFlowData as fn, createUploadServer as ft, ZipInput as g, FlowNode as gn, Middleware as gt, createFlow as h, FlowConfig as hn, detectMimeType as ht, runArgsSchema as i, jsonSerializer as in, FlowJobTask as it, ImageAiPlugin as j, FlowEventJobEnd as jn, uploadEventEmitter as jt, optimizeParamsSchema as k, FlowEventFlowPause as kn, eventToMessageSerializer as kt, FlowRequirements as l, FlowData as ln, UploadServer as lt, TypedFlowEdge as m, createFlowEdge as mn, compareMimeTypes as mt, resolveUploadMetadata as n, UploadFileKVStore as nn, FlowJob as nt, FlowInputMap as o, UploadFile as on, NegotiatedStrategy as ot, TypedFlowConfig as p, FlowEdge as pn, uploadServer as pt, inputNodeParamsSchema as q, UploadFileDataStoresShape as qt, RunArgs as r, flowJobKvStore as rn, FlowJobStatus as rt, FlowOutputMap as s, uploadFileSchema as sn, UploadStrategyNegotiator as st, ResolvedUploadMetadata as t, TypedKvStore as tn, flowServer as tt, NodeDefinition as u, FlowExecutionResult as un, UploadServerOptions as ut, ZipPlugin as v, NodeConnectionValidator as vn, MiddlewareNext as vt, ImagePlugin as w, EventType as wn, BaseEventEmitterService as wt, removeBackgroundParamsSchema as x, TypeCompatibilityChecker as xn, InputFile as xt, ZipPluginShape as y, NodeExecutionResult as yn, MiddlewareService as yt, createTransformNode as z, ConditionField as zn, EventBroadcasterService as zt };
4183
- //# sourceMappingURL=index-aQrRecmb.d.cts.map
4067
+ export { FlowServerShape as $, BaseKvStore as $t, ImageAiContext as A, FlowEventFlowError as An, UploadEventEmitter as At, StorageParams as B, FlowEventNodeStart as Bn, EventBroadcaster as Bt, describeImageParamsSchema as C, TypeCompatibilityChecker as Cn, InputFile as Ct, resizeParamsSchema as D, FlowEvent as Dn, EventEmitter as Dt, ResizeParams as E, EventType as En, BaseEventEmitterService as Et, ExecutionLevel as F, FlowEventNodeEnd as Fn, WebSocketMessage as Ft, createInputNode as G, createFlowNode as Gn, DataStoreConfig as Gt, storageParamsSchema as H, ConditionOperator as Hn, BufferedUploadFileDataStore as Ht, ParallelScheduler as I, FlowEventNodeError as In, webSocketMessageSchema as It, FlowProvider as J, UploadFileDataStores as Jt, inputDataSchema as K, getNodeData as Kn, DataStoreWriteOptions as Kt, ParallelSchedulerConfig as L, FlowEventNodePause as Ln, UploadEvent as Lt, ImageAiPluginShape as M, FlowEventFlowStart as Mn, flowEventEmitter as Mt, CredentialProvider as N, FlowEventJobEnd as Nn, uploadEventEmitter as Nt, OptimizeParams as O, FlowEventFlowCancel as On, FlowEventEmitter as Ot, CredentialProviderShape as P, FlowEventJobStart as Pn, WebSocketConnection as Pt, FlowServerOptions as Q, isDataStore as Qt, TransformNodeConfig as R, FlowEventNodeResponse as Rn, UploadEventType as Rt, DescribeImageParams as S, NodeTypeMap as Sn, MiddlewareServiceLive as St, ImagePluginShape as T, waitingNodeExecution as Tn, BaseEventEmitter as Tt, InputData as U, ConditionValue as Un, DataStore as Ut, createStorageNode as V, ConditionField as Vn, EventBroadcasterService as Vt, InputNodeParams as W, NodeType as Wn, DataStoreCapabilities as Wt, FlowServer as X, UploadStrategy as Xt, FlowProviderShape as Y, UploadFileDataStoresShape as Yt, FlowServerLayer as Z, createDataStoreLayer as Zt, ZipParams as _, FlowConfig as _n, detectMimeType as _t, FlowCondition as a, flowJobKvStore as an, FlowJobStatus as at, RemoveBackgroundParams as b, NodeConnectionValidator as bn, MiddlewareNext as bt, FlowPluginRequirements as c, UploadFile as cn, NegotiatedStrategy as ct, NodeDefinitionsRecord as d, FlowData as dn, UploadServer as dt, BaseKvStoreService as en, FlowWaitUntil as et, TypedFlow as f, FlowExecutionResult as fn, UploadServerOptions as ft, ZipInput as g, createFlowEdge as gn, compareMimeTypes as gt, createFlow as h, FlowEdge as hn, uploadServer as ht, runArgsSchema as i, UploadFileKVStore as in, FlowJob as it, ImageAiPlugin as j, FlowEventFlowPause as jn, eventToMessageSerializer as jt, optimizeParamsSchema as k, FlowEventFlowEnd as kn, TypedEventEmitter as kt, FlowRequirements as l, uploadFileSchema as ln, UploadStrategyNegotiator as lt, TypedFlowEdge as m, getFlowData as mn, createUploadServer as mt, resolveUploadMetadata as n, KvStore as nn, createFlowServer as nt, FlowInputMap as o, jsonSerializer as on, FlowJobTask as ot, TypedFlowConfig as p, createFlowWithSchema as pn, UploadServerShape as pt, inputNodeParamsSchema as q, UploadFileDataStore as qt, RunArgs as r, TypedKvStore as rn, flowServer as rt, FlowOutputMap as s, uploadFileKvStore as sn, FlowJobTaskStatus as st, ResolvedUploadMetadata as t, FlowJobKVStore as tn, WaitUntilCallback as tt, NodeDefinition as u, Flow as un, UploadStrategyOptions as ut, ZipPlugin as v, FlowNode as vn, Middleware as vt, ImagePlugin as w, completeNodeExecution as wn, inputFileSchema as wt, removeBackgroundParamsSchema as x, NodeExecutionResult as xn, MiddlewareService as xt, ZipPluginShape as y, FlowNodeData as yn, MiddlewareContext as yt, createTransformNode as z, FlowEventNodeResume as zn, uploadEventSchema as zt };
4068
+ //# sourceMappingURL=index-od64jviT.d.mts.map