@uploadista/core 1.0.0-beta.2 → 1.0.0-beta.4
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-Ag6JbNS6.mjs +2 -0
- package/dist/flow-Ag6JbNS6.mjs.map +1 -0
- package/dist/flow-DA_u2lYT.cjs +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/{resolve-upload-metadata-B2C5e1y1.d.cts → index-CTpuhufX.d.mts} +316 -309
- package/dist/index-CTpuhufX.d.mts.map +1 -0
- package/dist/{middleware-BlrOGKrp.d.cts → index-Ce8IxXxR.d.mts} +300 -300
- package/dist/index-Ce8IxXxR.d.mts.map +1 -0
- package/dist/{resolve-upload-metadata-DbkBzxm8.d.mts → index-Cwin1ALJ.d.cts} +316 -309
- package/dist/index-Cwin1ALJ.d.cts.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-a2O28qPf.d.mts → index-DiZp8FJs.d.mts} +6 -6
- package/dist/index-DiZp8FJs.d.mts.map +1 -0
- package/dist/{middleware-BmRmwme_.d.mts → index-_Q4OxX9Y.d.cts} +300 -300
- package/dist/index-_Q4OxX9Y.d.cts.map +1 -0
- package/dist/{upload-strategy-negotiator-EmOrc2bn.d.cts → index-zjG37VoL.d.cts} +6 -6
- 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 +6 -6
- package/src/flow/flow-engine.ts +3 -1
- package/src/types/data-store.ts +3 -3
- package/src/upload/write-to-store.ts +24 -29
- 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-BlrOGKrp.d.cts.map +0 -1
- package/dist/middleware-BmRmwme_.d.mts.map +0 -1
- package/dist/resolve-upload-metadata-B2C5e1y1.d.cts.map +0 -1
- package/dist/resolve-upload-metadata-DbkBzxm8.d.mts.map +0 -1
- package/dist/run-args-C4no7Ny4.cjs +0 -1
- package/dist/run-args-CIqI4Zc7.mjs +0 -2
- package/dist/run-args-CIqI4Zc7.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-5da9ZySO.cjs +0 -1
- package/dist/upload-strategy-negotiator-ChKvppnA.mjs +0 -2
- package/dist/upload-strategy-negotiator-ChKvppnA.mjs.map +0 -1
- package/dist/upload-strategy-negotiator-EmOrc2bn.d.cts.map +0 -1
- package/dist/upload-strategy-negotiator-a2O28qPf.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,10 +1,8 @@
|
|
|
1
|
-
import { n as UploadistaError } from "./uploadista-error-
|
|
2
|
-
import { $ as BaseKvStoreService, Bt as TypedOutput, Dn as NodeType, Dt as FlowCircuitBreakerConfig, G as StreamingConfig, In as DeadLetterCleanupOptions, Ln as DeadLetterCleanupResult, Lt as NodeExecutionResult, Mt as FlowNode, Nt as FlowNodeData, O as WebSocketConnection, Pt as NamingContext, Q as BaseKvStore, Qt as RetryPolicy, S as FlowEventEmitter, Tt as FileNamingConfig, Un as DeadLetterQueueStats, Vn as DeadLetterListOptions, Xn as CircuitBreakerStoreService, Yn as CircuitBreakerStore, et as DeadLetterQueueKVStore, ft as FlowQueueConfig, gt as FlowJob, ht as FlowQueueStats, in as FlowEvent, jn as UploadFile, jt as FlowEdge$1, kt as FlowConfig, mt as FlowQueueItemStatus, nt as FlowQueueKVStore, pt as FlowQueueItem, q as UploadFileDataStores, qn as CircuitBreakerStateValue, rt as KvStore, tt as FlowJobKVStore, zn as DeadLetterItem, zt as TypeCompatibilityChecker } from "./
|
|
3
|
-
import { i as UploadEngine } from "./
|
|
1
|
+
import { n as UploadistaError } from "./uploadista-error-CT_B4E7l.cjs";
|
|
2
|
+
import { $ as BaseKvStoreService, Bt as TypedOutput, Dn as NodeType, Dt as FlowCircuitBreakerConfig, G as StreamingConfig, In as DeadLetterCleanupOptions, Ln as DeadLetterCleanupResult, Lt as NodeExecutionResult, Mt as FlowNode, Nt as FlowNodeData, O as WebSocketConnection, Pt as NamingContext, Q as BaseKvStore, Qt as RetryPolicy, S as FlowEventEmitter, Tt as FileNamingConfig, Un as DeadLetterQueueStats, Vn as DeadLetterListOptions, Xn as CircuitBreakerStoreService, Yn as CircuitBreakerStore, et as DeadLetterQueueKVStore, ft as FlowQueueConfig, gt as FlowJob, ht as FlowQueueStats, in as FlowEvent, jn as UploadFile, jt as FlowEdge$1, kt as FlowConfig, mt as FlowQueueItemStatus, nt as FlowQueueKVStore, pt as FlowQueueItem, q as UploadFileDataStores, qn as CircuitBreakerStateValue, rt as KvStore, tt as FlowJobKVStore, zn as DeadLetterItem, zt as TypeCompatibilityChecker } from "./index-_Q4OxX9Y.cjs";
|
|
3
|
+
import { i as UploadEngine } from "./index-zjG37VoL.cjs";
|
|
4
4
|
import { Context, Effect, Layer, Option, Stream } from "effect";
|
|
5
|
-
import
|
|
6
|
-
import { z } from "zod";
|
|
7
|
-
import * as zod_v4_core0 from "zod/v4/core";
|
|
5
|
+
import { z as z$1 } from "zod";
|
|
8
6
|
|
|
9
7
|
//#region src/flow/circuit-breaker.d.ts
|
|
10
8
|
/**
|
|
@@ -477,7 +475,7 @@ type FlowExecutionResult<TOutput> = {
|
|
|
477
475
|
* });
|
|
478
476
|
* ```
|
|
479
477
|
*/
|
|
480
|
-
type Flow<TFlowInputSchema extends z.ZodSchema<any>, TFlowOutputSchema extends z.ZodSchema<any>, TRequirements> = {
|
|
478
|
+
type Flow<TFlowInputSchema extends z$1.ZodSchema<any>, TFlowOutputSchema extends z$1.ZodSchema<any>, TRequirements> = {
|
|
481
479
|
id: string;
|
|
482
480
|
name: string;
|
|
483
481
|
nodes: FlowNode<any, any, UploadistaError>[];
|
|
@@ -488,11 +486,11 @@ type Flow<TFlowInputSchema extends z.ZodSchema<any>, TFlowOutputSchema extends z
|
|
|
488
486
|
checkJobStatus?: FlowConfig<TFlowInputSchema, TFlowOutputSchema, TRequirements>["checkJobStatus"];
|
|
489
487
|
hooks?: FlowConfig<TFlowInputSchema, TFlowOutputSchema, TRequirements>["hooks"];
|
|
490
488
|
run: (args: {
|
|
491
|
-
inputs?: Record<string, z.infer<TFlowInputSchema>>;
|
|
489
|
+
inputs?: Record<string, z$1.infer<TFlowInputSchema>>;
|
|
492
490
|
storageId: string;
|
|
493
491
|
jobId: string;
|
|
494
492
|
clientId: string | null;
|
|
495
|
-
}) => Effect.Effect<FlowExecutionResult<Record<string, z.infer<TFlowOutputSchema>>>, UploadistaError, TRequirements | UploadFileDataStores>;
|
|
493
|
+
}) => Effect.Effect<FlowExecutionResult<Record<string, z$1.infer<TFlowOutputSchema>>>, UploadistaError, TRequirements | UploadFileDataStores>;
|
|
496
494
|
resume: (args: {
|
|
497
495
|
jobId: string;
|
|
498
496
|
storageId: string;
|
|
@@ -500,10 +498,10 @@ type Flow<TFlowInputSchema extends z.ZodSchema<any>, TFlowOutputSchema extends z
|
|
|
500
498
|
executionState: {
|
|
501
499
|
executionOrder: string[];
|
|
502
500
|
currentIndex: number;
|
|
503
|
-
inputs: Record<string, z.infer<TFlowInputSchema>>;
|
|
501
|
+
inputs: Record<string, z$1.infer<TFlowInputSchema>>;
|
|
504
502
|
};
|
|
505
503
|
clientId: string | null;
|
|
506
|
-
}) => Effect.Effect<FlowExecutionResult<Record<string, z.infer<TFlowOutputSchema>>>, UploadistaError, TRequirements | UploadFileDataStores>;
|
|
504
|
+
}) => Effect.Effect<FlowExecutionResult<Record<string, z$1.infer<TFlowOutputSchema>>>, UploadistaError, TRequirements | UploadFileDataStores>;
|
|
507
505
|
validateTypes: () => {
|
|
508
506
|
isValid: boolean;
|
|
509
507
|
errors: string[];
|
|
@@ -585,7 +583,7 @@ type Flow<TFlowInputSchema extends z.ZodSchema<any>, TFlowOutputSchema extends z
|
|
|
585
583
|
* @see {@link Flow} for the returned flow type
|
|
586
584
|
* @see {@link FlowConfig} for configuration options
|
|
587
585
|
*/
|
|
588
|
-
declare function createFlowWithSchema<TFlowInputSchema extends z.ZodSchema<any>, TFlowOutputSchema extends z.ZodSchema<any>, TRequirements = never, TNodeError = never, TNodeRequirements = never>(config: FlowConfig<TFlowInputSchema, TFlowOutputSchema, TNodeError, TNodeRequirements>): Effect.Effect<Flow<TFlowInputSchema, TFlowOutputSchema, TRequirements>, TNodeError, TNodeRequirements>;
|
|
586
|
+
declare function createFlowWithSchema<TFlowInputSchema extends z$1.ZodSchema<any>, TFlowOutputSchema extends z$1.ZodSchema<any>, TRequirements = never, TNodeError = never, TNodeRequirements = never>(config: FlowConfig<TFlowInputSchema, TFlowOutputSchema, TNodeError, TNodeRequirements>): Effect.Effect<Flow<TFlowInputSchema, TFlowOutputSchema, TRequirements>, TNodeError, TNodeRequirements>;
|
|
589
587
|
//#endregion
|
|
590
588
|
//#region src/flow/input-type-registry.d.ts
|
|
591
589
|
/**
|
|
@@ -604,7 +602,7 @@ declare function createFlowWithSchema<TFlowInputSchema extends z.ZodSchema<any>,
|
|
|
604
602
|
*/
|
|
605
603
|
interface InputTypeDefinition<TSchema = unknown> {
|
|
606
604
|
id: string;
|
|
607
|
-
schema: z.ZodSchema<TSchema>;
|
|
605
|
+
schema: z$1.ZodSchema<TSchema>;
|
|
608
606
|
version: string;
|
|
609
607
|
description: string;
|
|
610
608
|
}
|
|
@@ -743,7 +741,7 @@ declare function validateFlowInput<T = unknown>(typeId: string, data: unknown):
|
|
|
743
741
|
*/
|
|
744
742
|
interface OutputTypeDefinition<TSchema = unknown> {
|
|
745
743
|
id: string;
|
|
746
|
-
schema: z.ZodSchema<TSchema>;
|
|
744
|
+
schema: z$1.ZodSchema<TSchema>;
|
|
747
745
|
version: string;
|
|
748
746
|
description: string;
|
|
749
747
|
}
|
|
@@ -897,22 +895,22 @@ declare const STREAMING_INPUT_TYPE_ID = "streaming-input-v1";
|
|
|
897
895
|
* @property taskType - Type of OCR task performed
|
|
898
896
|
* @property confidence - Optional confidence score (0-1)
|
|
899
897
|
*/
|
|
900
|
-
declare const ocrOutputSchema: z.ZodObject<{
|
|
901
|
-
extractedText: z.ZodString;
|
|
902
|
-
format: z.ZodEnum<{
|
|
898
|
+
declare const ocrOutputSchema: z$1.ZodObject<{
|
|
899
|
+
extractedText: z$1.ZodString;
|
|
900
|
+
format: z$1.ZodEnum<{
|
|
903
901
|
markdown: "markdown";
|
|
904
902
|
plain: "plain";
|
|
905
903
|
structured: "structured";
|
|
906
904
|
}>;
|
|
907
|
-
taskType: z.ZodEnum<{
|
|
905
|
+
taskType: z$1.ZodEnum<{
|
|
908
906
|
convertToMarkdown: "convertToMarkdown";
|
|
909
907
|
freeOcr: "freeOcr";
|
|
910
908
|
parseFigure: "parseFigure";
|
|
911
909
|
locateObject: "locateObject";
|
|
912
910
|
}>;
|
|
913
|
-
confidence: z.ZodOptional<z.ZodNumber>;
|
|
914
|
-
}, z.core.$strip>;
|
|
915
|
-
type OcrOutput = z.infer<typeof ocrOutputSchema>;
|
|
911
|
+
confidence: z$1.ZodOptional<z$1.ZodNumber>;
|
|
912
|
+
}, z$1.core.$strip>;
|
|
913
|
+
type OcrOutput = z$1.infer<typeof ocrOutputSchema>;
|
|
916
914
|
/**
|
|
917
915
|
* Image description output schema - AI-generated image analysis result.
|
|
918
916
|
*
|
|
@@ -920,12 +918,12 @@ type OcrOutput = z.infer<typeof ocrOutputSchema>;
|
|
|
920
918
|
* @property confidence - Confidence score for the description (0-1)
|
|
921
919
|
* @property metadata - Additional metadata about the description
|
|
922
920
|
*/
|
|
923
|
-
declare const imageDescriptionOutputSchema: z.ZodObject<{
|
|
924
|
-
description: z.ZodString;
|
|
925
|
-
confidence: z.ZodOptional<z.ZodNumber>;
|
|
926
|
-
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
927
|
-
}, z.core.$strip>;
|
|
928
|
-
type ImageDescriptionOutput = z.infer<typeof imageDescriptionOutputSchema>;
|
|
921
|
+
declare const imageDescriptionOutputSchema: z$1.ZodObject<{
|
|
922
|
+
description: z$1.ZodString;
|
|
923
|
+
confidence: z$1.ZodOptional<z$1.ZodNumber>;
|
|
924
|
+
metadata: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>>;
|
|
925
|
+
}, z$1.core.$strip>;
|
|
926
|
+
type ImageDescriptionOutput = z$1.infer<typeof imageDescriptionOutputSchema>;
|
|
929
927
|
//#endregion
|
|
930
928
|
//#region src/flow/dead-letter-queue.d.ts
|
|
931
929
|
/**
|
|
@@ -1445,7 +1443,16 @@ declare function createFlowEngine(): Effect.Effect<{
|
|
|
1445
1443
|
clientId: string | null;
|
|
1446
1444
|
inputs: unknown;
|
|
1447
1445
|
jobId?: string;
|
|
1448
|
-
}) => Effect.Effect<FlowJob
|
|
1446
|
+
}) => Effect.Effect<FlowJob | {
|
|
1447
|
+
id: string;
|
|
1448
|
+
flowId: string;
|
|
1449
|
+
storageId: string;
|
|
1450
|
+
clientId: string | null;
|
|
1451
|
+
status: "pending";
|
|
1452
|
+
tasks: never[];
|
|
1453
|
+
createdAt: Date;
|
|
1454
|
+
updatedAt: Date;
|
|
1455
|
+
}, UploadistaError, never>;
|
|
1449
1456
|
getJobStatus: (jobId: string) => Effect.Effect<FlowJob, UploadistaError, never>;
|
|
1450
1457
|
resumeFlow: ({
|
|
1451
1458
|
jobId,
|
|
@@ -1462,8 +1469,8 @@ declare function createFlowEngine(): Effect.Effect<{
|
|
|
1462
1469
|
cancelFlow: (jobId: string, clientId: string | null) => Effect.Effect<FlowJob, UploadistaError, never>;
|
|
1463
1470
|
subscribeToFlowEvents: (jobId: string, connection: WebSocketConnection) => Effect.Effect<void, UploadistaError, never>;
|
|
1464
1471
|
unsubscribeFromFlowEvents: (jobId: string) => Effect.Effect<void, UploadistaError, never>;
|
|
1465
|
-
}, never, UploadEngine |
|
|
1466
|
-
declare const flowEngine: Layer.Layer<FlowEngine, never, UploadEngine |
|
|
1472
|
+
}, never, UploadEngine | FlowJobKVStore | FlowEventEmitter | FlowProvider>;
|
|
1473
|
+
declare const flowEngine: Layer.Layer<FlowEngine, never, UploadEngine | FlowJobKVStore | FlowEventEmitter | FlowProvider>;
|
|
1467
1474
|
type FlowEngineLayer = typeof flowEngine;
|
|
1468
1475
|
//#endregion
|
|
1469
1476
|
//#region src/flow/flow-queue.d.ts
|
|
@@ -1607,38 +1614,38 @@ declare class FlowQueueService extends FlowQueueService_base {
|
|
|
1607
1614
|
* Union schema for all input operations.
|
|
1608
1615
|
* Defines the possible input data structures for the input node.
|
|
1609
1616
|
*/
|
|
1610
|
-
declare const inputDataSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
1611
|
-
operation: z.ZodLiteral<"init">;
|
|
1612
|
-
storageId: z.ZodString;
|
|
1613
|
-
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
1614
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
1615
|
-
operation: z.ZodLiteral<"finalize">;
|
|
1616
|
-
uploadId: z.ZodString;
|
|
1617
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
1618
|
-
operation: z.ZodLiteral<"url">;
|
|
1619
|
-
url: z.ZodString;
|
|
1620
|
-
storageId: z.ZodOptional<z.ZodString>;
|
|
1621
|
-
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
1622
|
-
}, z.core.$strip>]>;
|
|
1617
|
+
declare const inputDataSchema: z$1.ZodUnion<readonly [z$1.ZodObject<{
|
|
1618
|
+
operation: z$1.ZodLiteral<"init">;
|
|
1619
|
+
storageId: z$1.ZodString;
|
|
1620
|
+
metadata: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodAny>>;
|
|
1621
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
1622
|
+
operation: z$1.ZodLiteral<"finalize">;
|
|
1623
|
+
uploadId: z$1.ZodString;
|
|
1624
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
1625
|
+
operation: z$1.ZodLiteral<"url">;
|
|
1626
|
+
url: z$1.ZodString;
|
|
1627
|
+
storageId: z$1.ZodOptional<z$1.ZodString>;
|
|
1628
|
+
metadata: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodAny>>;
|
|
1629
|
+
}, z$1.core.$strip>]>;
|
|
1623
1630
|
/**
|
|
1624
1631
|
* Type representing the input data for the input node.
|
|
1625
1632
|
* Can be one of three operation types: init, finalize, or url.
|
|
1626
1633
|
*/
|
|
1627
|
-
type InputData = z.infer<typeof inputDataSchema>;
|
|
1634
|
+
type InputData = z$1.infer<typeof inputDataSchema>;
|
|
1628
1635
|
/**
|
|
1629
1636
|
* Schema for input node filtering parameters.
|
|
1630
1637
|
* Defines validation rules for incoming files.
|
|
1631
1638
|
*/
|
|
1632
|
-
declare const inputNodeParamsSchema: z.ZodObject<{
|
|
1633
|
-
allowedMimeTypes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1634
|
-
minSize: z.ZodOptional<z.ZodNumber>;
|
|
1635
|
-
maxSize: z.ZodOptional<z.ZodNumber>;
|
|
1636
|
-
}, z.core.$strip>;
|
|
1639
|
+
declare const inputNodeParamsSchema: z$1.ZodObject<{
|
|
1640
|
+
allowedMimeTypes: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
|
|
1641
|
+
minSize: z$1.ZodOptional<z$1.ZodNumber>;
|
|
1642
|
+
maxSize: z$1.ZodOptional<z$1.ZodNumber>;
|
|
1643
|
+
}, z$1.core.$strip>;
|
|
1637
1644
|
/**
|
|
1638
1645
|
* Parameters for configuring input node validation.
|
|
1639
1646
|
* Controls which files are accepted based on type and size constraints.
|
|
1640
1647
|
*/
|
|
1641
|
-
type InputNodeParams = z.infer<typeof inputNodeParamsSchema>;
|
|
1648
|
+
type InputNodeParams = z$1.infer<typeof inputNodeParamsSchema>;
|
|
1642
1649
|
/**
|
|
1643
1650
|
* Creates an input node for handling file input through multiple methods.
|
|
1644
1651
|
*
|
|
@@ -1666,7 +1673,7 @@ type InputNodeParams = z.infer<typeof inputNodeParamsSchema>;
|
|
|
1666
1673
|
declare function createInputNode(id: string, params?: InputNodeParams, options?: {
|
|
1667
1674
|
keepOutput?: boolean;
|
|
1668
1675
|
}): Effect.Effect<FlowNodeData & {
|
|
1669
|
-
inputSchema: z.ZodType<{
|
|
1676
|
+
inputSchema: z$1.ZodType<{
|
|
1670
1677
|
operation: "init";
|
|
1671
1678
|
storageId: string;
|
|
1672
1679
|
metadata?: Record<string, any> | undefined;
|
|
@@ -1678,7 +1685,7 @@ declare function createInputNode(id: string, params?: InputNodeParams, options?:
|
|
|
1678
1685
|
url: string;
|
|
1679
1686
|
storageId?: string | undefined;
|
|
1680
1687
|
metadata?: Record<string, any> | undefined;
|
|
1681
|
-
}, unknown, z.core.$ZodTypeInternals<{
|
|
1688
|
+
}, unknown, z$1.core.$ZodTypeInternals<{
|
|
1682
1689
|
operation: "init";
|
|
1683
1690
|
storageId: string;
|
|
1684
1691
|
metadata?: Record<string, any> | undefined;
|
|
@@ -1691,7 +1698,7 @@ declare function createInputNode(id: string, params?: InputNodeParams, options?:
|
|
|
1691
1698
|
storageId?: string | undefined;
|
|
1692
1699
|
metadata?: Record<string, any> | undefined;
|
|
1693
1700
|
}, unknown>>;
|
|
1694
|
-
outputSchema: z.ZodType<UploadFile, unknown, z.core.$ZodTypeInternals<UploadFile, unknown>>;
|
|
1701
|
+
outputSchema: z$1.ZodType<UploadFile, unknown, z$1.core.$ZodTypeInternals<UploadFile, unknown>>;
|
|
1695
1702
|
run: (args: {
|
|
1696
1703
|
data: {
|
|
1697
1704
|
operation: "init";
|
|
@@ -2094,8 +2101,8 @@ declare function createTransformNode({
|
|
|
2094
2101
|
transform,
|
|
2095
2102
|
streamingTransform
|
|
2096
2103
|
}: TransformNodeConfig): Effect.Effect<FlowNodeData & {
|
|
2097
|
-
inputSchema: zod.ZodType<UploadFile, unknown,
|
|
2098
|
-
outputSchema: zod.ZodType<UploadFile, unknown,
|
|
2104
|
+
inputSchema: import("zod").ZodType<UploadFile, unknown, import("zod/v4/core").$ZodTypeInternals<UploadFile, unknown>>;
|
|
2105
|
+
outputSchema: import("zod").ZodType<UploadFile, unknown, import("zod/v4/core").$ZodTypeInternals<UploadFile, unknown>>;
|
|
2099
2106
|
run: (args: {
|
|
2100
2107
|
data: UploadFile;
|
|
2101
2108
|
jobId: string;
|
|
@@ -2624,20 +2631,20 @@ type ImageAiPluginLayer = Layer.Layer<ImageAiPlugin, never, never>;
|
|
|
2624
2631
|
* Zod schema for validating image optimization parameters.
|
|
2625
2632
|
* Defines the structure and validation rules for image optimization requests.
|
|
2626
2633
|
*/
|
|
2627
|
-
declare const optimizeParamsSchema: z.ZodObject<{
|
|
2628
|
-
quality: z.ZodNumber;
|
|
2629
|
-
format: z.ZodEnum<{
|
|
2634
|
+
declare const optimizeParamsSchema: z$1.ZodObject<{
|
|
2635
|
+
quality: z$1.ZodNumber;
|
|
2636
|
+
format: z$1.ZodEnum<{
|
|
2630
2637
|
jpeg: "jpeg";
|
|
2631
2638
|
webp: "webp";
|
|
2632
2639
|
png: "png";
|
|
2633
2640
|
avif: "avif";
|
|
2634
2641
|
}>;
|
|
2635
|
-
}, z.core.$strip>;
|
|
2642
|
+
}, z$1.core.$strip>;
|
|
2636
2643
|
/**
|
|
2637
2644
|
* Parameters for the image optimization node.
|
|
2638
2645
|
* Controls quality and format settings for image optimization.
|
|
2639
2646
|
*/
|
|
2640
|
-
type OptimizeParams = z.infer<typeof optimizeParamsSchema>;
|
|
2647
|
+
type OptimizeParams = z$1.infer<typeof optimizeParamsSchema>;
|
|
2641
2648
|
//#endregion
|
|
2642
2649
|
//#region src/flow/plugins/types/resize-node.d.ts
|
|
2643
2650
|
/**
|
|
@@ -2645,20 +2652,20 @@ type OptimizeParams = z.infer<typeof optimizeParamsSchema>;
|
|
|
2645
2652
|
* Defines the structure and validation rules for image resizing requests.
|
|
2646
2653
|
* Requires at least one dimension (width or height) to be specified.
|
|
2647
2654
|
*/
|
|
2648
|
-
declare const resizeParamsSchema: z.ZodObject<{
|
|
2649
|
-
width: z.ZodOptional<z.ZodNumber>;
|
|
2650
|
-
height: z.ZodOptional<z.ZodNumber>;
|
|
2651
|
-
fit: z.ZodEnum<{
|
|
2655
|
+
declare const resizeParamsSchema: z$1.ZodObject<{
|
|
2656
|
+
width: z$1.ZodOptional<z$1.ZodNumber>;
|
|
2657
|
+
height: z$1.ZodOptional<z$1.ZodNumber>;
|
|
2658
|
+
fit: z$1.ZodEnum<{
|
|
2652
2659
|
fill: "fill";
|
|
2653
2660
|
contain: "contain";
|
|
2654
2661
|
cover: "cover";
|
|
2655
2662
|
}>;
|
|
2656
|
-
}, z.core.$strip>;
|
|
2663
|
+
}, z$1.core.$strip>;
|
|
2657
2664
|
/**
|
|
2658
2665
|
* Parameters for the image resize node.
|
|
2659
2666
|
* Controls the target dimensions and fitting behavior for image resizing.
|
|
2660
2667
|
*/
|
|
2661
|
-
type ResizeParams = z.infer<typeof resizeParamsSchema>;
|
|
2668
|
+
type ResizeParams = z$1.infer<typeof resizeParamsSchema>;
|
|
2662
2669
|
//#endregion
|
|
2663
2670
|
//#region src/flow/plugins/types/transform-image-node.d.ts
|
|
2664
2671
|
/**
|
|
@@ -2669,91 +2676,91 @@ type TransformationType = "resize" | "blur" | "rotate" | "flip" | "grayscale" |
|
|
|
2669
2676
|
* Resize transformation parameters.
|
|
2670
2677
|
* Resizes the image to the specified dimensions with the given fit mode.
|
|
2671
2678
|
*/
|
|
2672
|
-
declare const resizeTransformSchema: z.ZodObject<{
|
|
2673
|
-
type: z.ZodLiteral<"resize">;
|
|
2674
|
-
width: z.ZodOptional<z.ZodNumber>;
|
|
2675
|
-
height: z.ZodOptional<z.ZodNumber>;
|
|
2676
|
-
fit: z.ZodEnum<{
|
|
2679
|
+
declare const resizeTransformSchema: z$1.ZodObject<{
|
|
2680
|
+
type: z$1.ZodLiteral<"resize">;
|
|
2681
|
+
width: z$1.ZodOptional<z$1.ZodNumber>;
|
|
2682
|
+
height: z$1.ZodOptional<z$1.ZodNumber>;
|
|
2683
|
+
fit: z$1.ZodEnum<{
|
|
2677
2684
|
fill: "fill";
|
|
2678
2685
|
contain: "contain";
|
|
2679
2686
|
cover: "cover";
|
|
2680
2687
|
}>;
|
|
2681
|
-
}, z.core.$strip>;
|
|
2682
|
-
type ResizeTransform = z.infer<typeof resizeTransformSchema>;
|
|
2688
|
+
}, z$1.core.$strip>;
|
|
2689
|
+
type ResizeTransform = z$1.infer<typeof resizeTransformSchema>;
|
|
2683
2690
|
/**
|
|
2684
2691
|
* Blur transformation parameters.
|
|
2685
2692
|
* Applies Gaussian blur to the image.
|
|
2686
2693
|
*/
|
|
2687
|
-
declare const blurTransformSchema: z.ZodObject<{
|
|
2688
|
-
type: z.ZodLiteral<"blur">;
|
|
2689
|
-
sigma: z.ZodNumber;
|
|
2690
|
-
}, z.core.$strip>;
|
|
2691
|
-
type BlurTransform = z.infer<typeof blurTransformSchema>;
|
|
2694
|
+
declare const blurTransformSchema: z$1.ZodObject<{
|
|
2695
|
+
type: z$1.ZodLiteral<"blur">;
|
|
2696
|
+
sigma: z$1.ZodNumber;
|
|
2697
|
+
}, z$1.core.$strip>;
|
|
2698
|
+
type BlurTransform = z$1.infer<typeof blurTransformSchema>;
|
|
2692
2699
|
/**
|
|
2693
2700
|
* Rotate transformation parameters.
|
|
2694
2701
|
* Rotates the image by the specified angle.
|
|
2695
2702
|
*/
|
|
2696
|
-
declare const rotateTransformSchema: z.ZodObject<{
|
|
2697
|
-
type: z.ZodLiteral<"rotate">;
|
|
2698
|
-
angle: z.ZodNumber;
|
|
2699
|
-
background: z.ZodOptional<z.ZodString>;
|
|
2700
|
-
}, z.core.$strip>;
|
|
2701
|
-
type RotateTransform = z.infer<typeof rotateTransformSchema>;
|
|
2703
|
+
declare const rotateTransformSchema: z$1.ZodObject<{
|
|
2704
|
+
type: z$1.ZodLiteral<"rotate">;
|
|
2705
|
+
angle: z$1.ZodNumber;
|
|
2706
|
+
background: z$1.ZodOptional<z$1.ZodString>;
|
|
2707
|
+
}, z$1.core.$strip>;
|
|
2708
|
+
type RotateTransform = z$1.infer<typeof rotateTransformSchema>;
|
|
2702
2709
|
/**
|
|
2703
2710
|
* Flip transformation parameters.
|
|
2704
2711
|
* Flips the image horizontally or vertically.
|
|
2705
2712
|
*/
|
|
2706
|
-
declare const flipTransformSchema: z.ZodObject<{
|
|
2707
|
-
type: z.ZodLiteral<"flip">;
|
|
2708
|
-
direction: z.ZodEnum<{
|
|
2713
|
+
declare const flipTransformSchema: z$1.ZodObject<{
|
|
2714
|
+
type: z$1.ZodLiteral<"flip">;
|
|
2715
|
+
direction: z$1.ZodEnum<{
|
|
2709
2716
|
horizontal: "horizontal";
|
|
2710
2717
|
vertical: "vertical";
|
|
2711
2718
|
}>;
|
|
2712
|
-
}, z.core.$strip>;
|
|
2713
|
-
type FlipTransform = z.infer<typeof flipTransformSchema>;
|
|
2719
|
+
}, z$1.core.$strip>;
|
|
2720
|
+
type FlipTransform = z$1.infer<typeof flipTransformSchema>;
|
|
2714
2721
|
/**
|
|
2715
2722
|
* Grayscale transformation parameters.
|
|
2716
2723
|
* Converts the image to grayscale.
|
|
2717
2724
|
*/
|
|
2718
|
-
declare const grayscaleTransformSchema: z.ZodObject<{
|
|
2719
|
-
type: z.ZodLiteral<"grayscale">;
|
|
2720
|
-
}, z.core.$strip>;
|
|
2721
|
-
type GrayscaleTransform = z.infer<typeof grayscaleTransformSchema>;
|
|
2725
|
+
declare const grayscaleTransformSchema: z$1.ZodObject<{
|
|
2726
|
+
type: z$1.ZodLiteral<"grayscale">;
|
|
2727
|
+
}, z$1.core.$strip>;
|
|
2728
|
+
type GrayscaleTransform = z$1.infer<typeof grayscaleTransformSchema>;
|
|
2722
2729
|
/**
|
|
2723
2730
|
* Sepia transformation parameters.
|
|
2724
2731
|
* Applies a sepia tone effect to the image.
|
|
2725
2732
|
*/
|
|
2726
|
-
declare const sepiaTransformSchema: z.ZodObject<{
|
|
2727
|
-
type: z.ZodLiteral<"sepia">;
|
|
2728
|
-
}, z.core.$strip>;
|
|
2729
|
-
type SepiaTransform = z.infer<typeof sepiaTransformSchema>;
|
|
2733
|
+
declare const sepiaTransformSchema: z$1.ZodObject<{
|
|
2734
|
+
type: z$1.ZodLiteral<"sepia">;
|
|
2735
|
+
}, z$1.core.$strip>;
|
|
2736
|
+
type SepiaTransform = z$1.infer<typeof sepiaTransformSchema>;
|
|
2730
2737
|
/**
|
|
2731
2738
|
* Brightness transformation parameters.
|
|
2732
2739
|
* Adjusts the brightness of the image.
|
|
2733
2740
|
*/
|
|
2734
|
-
declare const brightnessTransformSchema: z.ZodObject<{
|
|
2735
|
-
type: z.ZodLiteral<"brightness">;
|
|
2736
|
-
value: z.ZodNumber;
|
|
2737
|
-
}, z.core.$strip>;
|
|
2738
|
-
type BrightnessTransform = z.infer<typeof brightnessTransformSchema>;
|
|
2741
|
+
declare const brightnessTransformSchema: z$1.ZodObject<{
|
|
2742
|
+
type: z$1.ZodLiteral<"brightness">;
|
|
2743
|
+
value: z$1.ZodNumber;
|
|
2744
|
+
}, z$1.core.$strip>;
|
|
2745
|
+
type BrightnessTransform = z$1.infer<typeof brightnessTransformSchema>;
|
|
2739
2746
|
/**
|
|
2740
2747
|
* Contrast transformation parameters.
|
|
2741
2748
|
* Adjusts the contrast of the image.
|
|
2742
2749
|
*/
|
|
2743
|
-
declare const contrastTransformSchema: z.ZodObject<{
|
|
2744
|
-
type: z.ZodLiteral<"contrast">;
|
|
2745
|
-
value: z.ZodNumber;
|
|
2746
|
-
}, z.core.$strip>;
|
|
2747
|
-
type ContrastTransform = z.infer<typeof contrastTransformSchema>;
|
|
2750
|
+
declare const contrastTransformSchema: z$1.ZodObject<{
|
|
2751
|
+
type: z$1.ZodLiteral<"contrast">;
|
|
2752
|
+
value: z$1.ZodNumber;
|
|
2753
|
+
}, z$1.core.$strip>;
|
|
2754
|
+
type ContrastTransform = z$1.infer<typeof contrastTransformSchema>;
|
|
2748
2755
|
/**
|
|
2749
2756
|
* Sharpen transformation parameters.
|
|
2750
2757
|
* Applies sharpening to the image.
|
|
2751
2758
|
*/
|
|
2752
|
-
declare const sharpenTransformSchema: z.ZodObject<{
|
|
2753
|
-
type: z.ZodLiteral<"sharpen">;
|
|
2754
|
-
sigma: z.ZodOptional<z.ZodNumber>;
|
|
2755
|
-
}, z.core.$strip>;
|
|
2756
|
-
type SharpenTransform = z.infer<typeof sharpenTransformSchema>;
|
|
2759
|
+
declare const sharpenTransformSchema: z$1.ZodObject<{
|
|
2760
|
+
type: z$1.ZodLiteral<"sharpen">;
|
|
2761
|
+
sigma: z$1.ZodOptional<z$1.ZodNumber>;
|
|
2762
|
+
}, z$1.core.$strip>;
|
|
2763
|
+
type SharpenTransform = z$1.infer<typeof sharpenTransformSchema>;
|
|
2757
2764
|
/**
|
|
2758
2765
|
* Position for overlays (watermarks, logos, text).
|
|
2759
2766
|
*/
|
|
@@ -2762,234 +2769,234 @@ type OverlayPosition = "top-left" | "top-right" | "bottom-left" | "bottom-right"
|
|
|
2762
2769
|
* Watermark transformation parameters.
|
|
2763
2770
|
* Overlays a watermark image on the main image.
|
|
2764
2771
|
*/
|
|
2765
|
-
declare const watermarkTransformSchema: z.ZodObject<{
|
|
2766
|
-
type: z.ZodLiteral<"watermark">;
|
|
2767
|
-
imagePath: z.ZodString;
|
|
2768
|
-
position: z.ZodEnum<{
|
|
2772
|
+
declare const watermarkTransformSchema: z$1.ZodObject<{
|
|
2773
|
+
type: z$1.ZodLiteral<"watermark">;
|
|
2774
|
+
imagePath: z$1.ZodString;
|
|
2775
|
+
position: z$1.ZodEnum<{
|
|
2769
2776
|
"top-left": "top-left";
|
|
2770
2777
|
"top-right": "top-right";
|
|
2771
2778
|
"bottom-left": "bottom-left";
|
|
2772
2779
|
"bottom-right": "bottom-right";
|
|
2773
2780
|
center: "center";
|
|
2774
2781
|
}>;
|
|
2775
|
-
opacity: z.ZodNumber;
|
|
2776
|
-
offsetX: z.ZodOptional<z.ZodNumber>;
|
|
2777
|
-
offsetY: z.ZodOptional<z.ZodNumber>;
|
|
2778
|
-
}, z.core.$strip>;
|
|
2779
|
-
type WatermarkTransform = z.infer<typeof watermarkTransformSchema>;
|
|
2782
|
+
opacity: z$1.ZodNumber;
|
|
2783
|
+
offsetX: z$1.ZodOptional<z$1.ZodNumber>;
|
|
2784
|
+
offsetY: z$1.ZodOptional<z$1.ZodNumber>;
|
|
2785
|
+
}, z$1.core.$strip>;
|
|
2786
|
+
type WatermarkTransform = z$1.infer<typeof watermarkTransformSchema>;
|
|
2780
2787
|
/**
|
|
2781
2788
|
* Logo transformation parameters.
|
|
2782
2789
|
* Overlays a logo image on the main image with scaling.
|
|
2783
2790
|
*/
|
|
2784
|
-
declare const logoTransformSchema: z.ZodObject<{
|
|
2785
|
-
type: z.ZodLiteral<"logo">;
|
|
2786
|
-
imagePath: z.ZodString;
|
|
2787
|
-
position: z.ZodEnum<{
|
|
2791
|
+
declare const logoTransformSchema: z$1.ZodObject<{
|
|
2792
|
+
type: z$1.ZodLiteral<"logo">;
|
|
2793
|
+
imagePath: z$1.ZodString;
|
|
2794
|
+
position: z$1.ZodEnum<{
|
|
2788
2795
|
"top-left": "top-left";
|
|
2789
2796
|
"top-right": "top-right";
|
|
2790
2797
|
"bottom-left": "bottom-left";
|
|
2791
2798
|
"bottom-right": "bottom-right";
|
|
2792
2799
|
center: "center";
|
|
2793
2800
|
}>;
|
|
2794
|
-
scale: z.ZodNumber;
|
|
2795
|
-
offsetX: z.ZodOptional<z.ZodNumber>;
|
|
2796
|
-
offsetY: z.ZodOptional<z.ZodNumber>;
|
|
2797
|
-
}, z.core.$strip>;
|
|
2798
|
-
type LogoTransform = z.infer<typeof logoTransformSchema>;
|
|
2801
|
+
scale: z$1.ZodNumber;
|
|
2802
|
+
offsetX: z$1.ZodOptional<z$1.ZodNumber>;
|
|
2803
|
+
offsetY: z$1.ZodOptional<z$1.ZodNumber>;
|
|
2804
|
+
}, z$1.core.$strip>;
|
|
2805
|
+
type LogoTransform = z$1.infer<typeof logoTransformSchema>;
|
|
2799
2806
|
/**
|
|
2800
2807
|
* Text transformation parameters.
|
|
2801
2808
|
* Overlays text on the image.
|
|
2802
2809
|
*/
|
|
2803
|
-
declare const textTransformSchema: z.ZodObject<{
|
|
2804
|
-
type: z.ZodLiteral<"text">;
|
|
2805
|
-
text: z.ZodString;
|
|
2806
|
-
position: z.ZodEnum<{
|
|
2810
|
+
declare const textTransformSchema: z$1.ZodObject<{
|
|
2811
|
+
type: z$1.ZodLiteral<"text">;
|
|
2812
|
+
text: z$1.ZodString;
|
|
2813
|
+
position: z$1.ZodEnum<{
|
|
2807
2814
|
"top-left": "top-left";
|
|
2808
2815
|
"top-right": "top-right";
|
|
2809
2816
|
"bottom-left": "bottom-left";
|
|
2810
2817
|
"bottom-right": "bottom-right";
|
|
2811
2818
|
center: "center";
|
|
2812
2819
|
}>;
|
|
2813
|
-
fontSize: z.ZodNumber;
|
|
2814
|
-
color: z.ZodString;
|
|
2815
|
-
fontFamily: z.ZodOptional<z.ZodString>;
|
|
2816
|
-
offsetX: z.ZodOptional<z.ZodNumber>;
|
|
2817
|
-
offsetY: z.ZodOptional<z.ZodNumber>;
|
|
2818
|
-
}, z.core.$strip>;
|
|
2819
|
-
type TextTransform = z.infer<typeof textTransformSchema>;
|
|
2820
|
+
fontSize: z$1.ZodNumber;
|
|
2821
|
+
color: z$1.ZodString;
|
|
2822
|
+
fontFamily: z$1.ZodOptional<z$1.ZodString>;
|
|
2823
|
+
offsetX: z$1.ZodOptional<z$1.ZodNumber>;
|
|
2824
|
+
offsetY: z$1.ZodOptional<z$1.ZodNumber>;
|
|
2825
|
+
}, z$1.core.$strip>;
|
|
2826
|
+
type TextTransform = z$1.infer<typeof textTransformSchema>;
|
|
2820
2827
|
/**
|
|
2821
2828
|
* Schema for validating any transformation type.
|
|
2822
2829
|
* This is a discriminated union of all transformation schemas.
|
|
2823
2830
|
*/
|
|
2824
|
-
declare const transformationSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2825
|
-
type: z.ZodLiteral<"resize">;
|
|
2826
|
-
width: z.ZodOptional<z.ZodNumber>;
|
|
2827
|
-
height: z.ZodOptional<z.ZodNumber>;
|
|
2828
|
-
fit: z.ZodEnum<{
|
|
2831
|
+
declare const transformationSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
2832
|
+
type: z$1.ZodLiteral<"resize">;
|
|
2833
|
+
width: z$1.ZodOptional<z$1.ZodNumber>;
|
|
2834
|
+
height: z$1.ZodOptional<z$1.ZodNumber>;
|
|
2835
|
+
fit: z$1.ZodEnum<{
|
|
2829
2836
|
fill: "fill";
|
|
2830
2837
|
contain: "contain";
|
|
2831
2838
|
cover: "cover";
|
|
2832
2839
|
}>;
|
|
2833
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
2834
|
-
type: z.ZodLiteral<"blur">;
|
|
2835
|
-
sigma: z.ZodNumber;
|
|
2836
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
2837
|
-
type: z.ZodLiteral<"rotate">;
|
|
2838
|
-
angle: z.ZodNumber;
|
|
2839
|
-
background: z.ZodOptional<z.ZodString>;
|
|
2840
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
2841
|
-
type: z.ZodLiteral<"flip">;
|
|
2842
|
-
direction: z.ZodEnum<{
|
|
2840
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
2841
|
+
type: z$1.ZodLiteral<"blur">;
|
|
2842
|
+
sigma: z$1.ZodNumber;
|
|
2843
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
2844
|
+
type: z$1.ZodLiteral<"rotate">;
|
|
2845
|
+
angle: z$1.ZodNumber;
|
|
2846
|
+
background: z$1.ZodOptional<z$1.ZodString>;
|
|
2847
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
2848
|
+
type: z$1.ZodLiteral<"flip">;
|
|
2849
|
+
direction: z$1.ZodEnum<{
|
|
2843
2850
|
horizontal: "horizontal";
|
|
2844
2851
|
vertical: "vertical";
|
|
2845
2852
|
}>;
|
|
2846
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
2847
|
-
type: z.ZodLiteral<"grayscale">;
|
|
2848
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
2849
|
-
type: z.ZodLiteral<"sepia">;
|
|
2850
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
2851
|
-
type: z.ZodLiteral<"brightness">;
|
|
2852
|
-
value: z.ZodNumber;
|
|
2853
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
2854
|
-
type: z.ZodLiteral<"contrast">;
|
|
2855
|
-
value: z.ZodNumber;
|
|
2856
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
2857
|
-
type: z.ZodLiteral<"sharpen">;
|
|
2858
|
-
sigma: z.ZodOptional<z.ZodNumber>;
|
|
2859
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
2860
|
-
type: z.ZodLiteral<"watermark">;
|
|
2861
|
-
imagePath: z.ZodString;
|
|
2862
|
-
position: z.ZodEnum<{
|
|
2853
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
2854
|
+
type: z$1.ZodLiteral<"grayscale">;
|
|
2855
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
2856
|
+
type: z$1.ZodLiteral<"sepia">;
|
|
2857
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
2858
|
+
type: z$1.ZodLiteral<"brightness">;
|
|
2859
|
+
value: z$1.ZodNumber;
|
|
2860
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
2861
|
+
type: z$1.ZodLiteral<"contrast">;
|
|
2862
|
+
value: z$1.ZodNumber;
|
|
2863
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
2864
|
+
type: z$1.ZodLiteral<"sharpen">;
|
|
2865
|
+
sigma: z$1.ZodOptional<z$1.ZodNumber>;
|
|
2866
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
2867
|
+
type: z$1.ZodLiteral<"watermark">;
|
|
2868
|
+
imagePath: z$1.ZodString;
|
|
2869
|
+
position: z$1.ZodEnum<{
|
|
2863
2870
|
"top-left": "top-left";
|
|
2864
2871
|
"top-right": "top-right";
|
|
2865
2872
|
"bottom-left": "bottom-left";
|
|
2866
2873
|
"bottom-right": "bottom-right";
|
|
2867
2874
|
center: "center";
|
|
2868
2875
|
}>;
|
|
2869
|
-
opacity: z.ZodNumber;
|
|
2870
|
-
offsetX: z.ZodOptional<z.ZodNumber>;
|
|
2871
|
-
offsetY: z.ZodOptional<z.ZodNumber>;
|
|
2872
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
2873
|
-
type: z.ZodLiteral<"logo">;
|
|
2874
|
-
imagePath: z.ZodString;
|
|
2875
|
-
position: z.ZodEnum<{
|
|
2876
|
+
opacity: z$1.ZodNumber;
|
|
2877
|
+
offsetX: z$1.ZodOptional<z$1.ZodNumber>;
|
|
2878
|
+
offsetY: z$1.ZodOptional<z$1.ZodNumber>;
|
|
2879
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
2880
|
+
type: z$1.ZodLiteral<"logo">;
|
|
2881
|
+
imagePath: z$1.ZodString;
|
|
2882
|
+
position: z$1.ZodEnum<{
|
|
2876
2883
|
"top-left": "top-left";
|
|
2877
2884
|
"top-right": "top-right";
|
|
2878
2885
|
"bottom-left": "bottom-left";
|
|
2879
2886
|
"bottom-right": "bottom-right";
|
|
2880
2887
|
center: "center";
|
|
2881
2888
|
}>;
|
|
2882
|
-
scale: z.ZodNumber;
|
|
2883
|
-
offsetX: z.ZodOptional<z.ZodNumber>;
|
|
2884
|
-
offsetY: z.ZodOptional<z.ZodNumber>;
|
|
2885
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
2886
|
-
type: z.ZodLiteral<"text">;
|
|
2887
|
-
text: z.ZodString;
|
|
2888
|
-
position: z.ZodEnum<{
|
|
2889
|
+
scale: z$1.ZodNumber;
|
|
2890
|
+
offsetX: z$1.ZodOptional<z$1.ZodNumber>;
|
|
2891
|
+
offsetY: z$1.ZodOptional<z$1.ZodNumber>;
|
|
2892
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
2893
|
+
type: z$1.ZodLiteral<"text">;
|
|
2894
|
+
text: z$1.ZodString;
|
|
2895
|
+
position: z$1.ZodEnum<{
|
|
2889
2896
|
"top-left": "top-left";
|
|
2890
2897
|
"top-right": "top-right";
|
|
2891
2898
|
"bottom-left": "bottom-left";
|
|
2892
2899
|
"bottom-right": "bottom-right";
|
|
2893
2900
|
center: "center";
|
|
2894
2901
|
}>;
|
|
2895
|
-
fontSize: z.ZodNumber;
|
|
2896
|
-
color: z.ZodString;
|
|
2897
|
-
fontFamily: z.ZodOptional<z.ZodString>;
|
|
2898
|
-
offsetX: z.ZodOptional<z.ZodNumber>;
|
|
2899
|
-
offsetY: z.ZodOptional<z.ZodNumber>;
|
|
2900
|
-
}, z.core.$strip>], "type">;
|
|
2902
|
+
fontSize: z$1.ZodNumber;
|
|
2903
|
+
color: z$1.ZodString;
|
|
2904
|
+
fontFamily: z$1.ZodOptional<z$1.ZodString>;
|
|
2905
|
+
offsetX: z$1.ZodOptional<z$1.ZodNumber>;
|
|
2906
|
+
offsetY: z$1.ZodOptional<z$1.ZodNumber>;
|
|
2907
|
+
}, z$1.core.$strip>], "type">;
|
|
2901
2908
|
/**
|
|
2902
2909
|
* A single image transformation operation.
|
|
2903
2910
|
* This is a discriminated union type that can represent any transformation.
|
|
2904
2911
|
*/
|
|
2905
|
-
type Transformation = z.infer<typeof transformationSchema>;
|
|
2912
|
+
type Transformation = z$1.infer<typeof transformationSchema>;
|
|
2906
2913
|
/**
|
|
2907
2914
|
* Parameters for the transform image node.
|
|
2908
2915
|
* Contains an ordered array of transformations to apply sequentially.
|
|
2909
2916
|
*/
|
|
2910
|
-
declare const transformImageParamsSchema: z.ZodObject<{
|
|
2911
|
-
transformations: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2912
|
-
type: z.ZodLiteral<"resize">;
|
|
2913
|
-
width: z.ZodOptional<z.ZodNumber>;
|
|
2914
|
-
height: z.ZodOptional<z.ZodNumber>;
|
|
2915
|
-
fit: z.ZodEnum<{
|
|
2917
|
+
declare const transformImageParamsSchema: z$1.ZodObject<{
|
|
2918
|
+
transformations: z$1.ZodArray<z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
2919
|
+
type: z$1.ZodLiteral<"resize">;
|
|
2920
|
+
width: z$1.ZodOptional<z$1.ZodNumber>;
|
|
2921
|
+
height: z$1.ZodOptional<z$1.ZodNumber>;
|
|
2922
|
+
fit: z$1.ZodEnum<{
|
|
2916
2923
|
fill: "fill";
|
|
2917
2924
|
contain: "contain";
|
|
2918
2925
|
cover: "cover";
|
|
2919
2926
|
}>;
|
|
2920
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
2921
|
-
type: z.ZodLiteral<"blur">;
|
|
2922
|
-
sigma: z.ZodNumber;
|
|
2923
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
2924
|
-
type: z.ZodLiteral<"rotate">;
|
|
2925
|
-
angle: z.ZodNumber;
|
|
2926
|
-
background: z.ZodOptional<z.ZodString>;
|
|
2927
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
2928
|
-
type: z.ZodLiteral<"flip">;
|
|
2929
|
-
direction: z.ZodEnum<{
|
|
2927
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
2928
|
+
type: z$1.ZodLiteral<"blur">;
|
|
2929
|
+
sigma: z$1.ZodNumber;
|
|
2930
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
2931
|
+
type: z$1.ZodLiteral<"rotate">;
|
|
2932
|
+
angle: z$1.ZodNumber;
|
|
2933
|
+
background: z$1.ZodOptional<z$1.ZodString>;
|
|
2934
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
2935
|
+
type: z$1.ZodLiteral<"flip">;
|
|
2936
|
+
direction: z$1.ZodEnum<{
|
|
2930
2937
|
horizontal: "horizontal";
|
|
2931
2938
|
vertical: "vertical";
|
|
2932
2939
|
}>;
|
|
2933
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
2934
|
-
type: z.ZodLiteral<"grayscale">;
|
|
2935
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
2936
|
-
type: z.ZodLiteral<"sepia">;
|
|
2937
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
2938
|
-
type: z.ZodLiteral<"brightness">;
|
|
2939
|
-
value: z.ZodNumber;
|
|
2940
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
2941
|
-
type: z.ZodLiteral<"contrast">;
|
|
2942
|
-
value: z.ZodNumber;
|
|
2943
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
2944
|
-
type: z.ZodLiteral<"sharpen">;
|
|
2945
|
-
sigma: z.ZodOptional<z.ZodNumber>;
|
|
2946
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
2947
|
-
type: z.ZodLiteral<"watermark">;
|
|
2948
|
-
imagePath: z.ZodString;
|
|
2949
|
-
position: z.ZodEnum<{
|
|
2940
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
2941
|
+
type: z$1.ZodLiteral<"grayscale">;
|
|
2942
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
2943
|
+
type: z$1.ZodLiteral<"sepia">;
|
|
2944
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
2945
|
+
type: z$1.ZodLiteral<"brightness">;
|
|
2946
|
+
value: z$1.ZodNumber;
|
|
2947
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
2948
|
+
type: z$1.ZodLiteral<"contrast">;
|
|
2949
|
+
value: z$1.ZodNumber;
|
|
2950
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
2951
|
+
type: z$1.ZodLiteral<"sharpen">;
|
|
2952
|
+
sigma: z$1.ZodOptional<z$1.ZodNumber>;
|
|
2953
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
2954
|
+
type: z$1.ZodLiteral<"watermark">;
|
|
2955
|
+
imagePath: z$1.ZodString;
|
|
2956
|
+
position: z$1.ZodEnum<{
|
|
2950
2957
|
"top-left": "top-left";
|
|
2951
2958
|
"top-right": "top-right";
|
|
2952
2959
|
"bottom-left": "bottom-left";
|
|
2953
2960
|
"bottom-right": "bottom-right";
|
|
2954
2961
|
center: "center";
|
|
2955
2962
|
}>;
|
|
2956
|
-
opacity: z.ZodNumber;
|
|
2957
|
-
offsetX: z.ZodOptional<z.ZodNumber>;
|
|
2958
|
-
offsetY: z.ZodOptional<z.ZodNumber>;
|
|
2959
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
2960
|
-
type: z.ZodLiteral<"logo">;
|
|
2961
|
-
imagePath: z.ZodString;
|
|
2962
|
-
position: z.ZodEnum<{
|
|
2963
|
+
opacity: z$1.ZodNumber;
|
|
2964
|
+
offsetX: z$1.ZodOptional<z$1.ZodNumber>;
|
|
2965
|
+
offsetY: z$1.ZodOptional<z$1.ZodNumber>;
|
|
2966
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
2967
|
+
type: z$1.ZodLiteral<"logo">;
|
|
2968
|
+
imagePath: z$1.ZodString;
|
|
2969
|
+
position: z$1.ZodEnum<{
|
|
2963
2970
|
"top-left": "top-left";
|
|
2964
2971
|
"top-right": "top-right";
|
|
2965
2972
|
"bottom-left": "bottom-left";
|
|
2966
2973
|
"bottom-right": "bottom-right";
|
|
2967
2974
|
center: "center";
|
|
2968
2975
|
}>;
|
|
2969
|
-
scale: z.ZodNumber;
|
|
2970
|
-
offsetX: z.ZodOptional<z.ZodNumber>;
|
|
2971
|
-
offsetY: z.ZodOptional<z.ZodNumber>;
|
|
2972
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
2973
|
-
type: z.ZodLiteral<"text">;
|
|
2974
|
-
text: z.ZodString;
|
|
2975
|
-
position: z.ZodEnum<{
|
|
2976
|
+
scale: z$1.ZodNumber;
|
|
2977
|
+
offsetX: z$1.ZodOptional<z$1.ZodNumber>;
|
|
2978
|
+
offsetY: z$1.ZodOptional<z$1.ZodNumber>;
|
|
2979
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
2980
|
+
type: z$1.ZodLiteral<"text">;
|
|
2981
|
+
text: z$1.ZodString;
|
|
2982
|
+
position: z$1.ZodEnum<{
|
|
2976
2983
|
"top-left": "top-left";
|
|
2977
2984
|
"top-right": "top-right";
|
|
2978
2985
|
"bottom-left": "bottom-left";
|
|
2979
2986
|
"bottom-right": "bottom-right";
|
|
2980
2987
|
center: "center";
|
|
2981
2988
|
}>;
|
|
2982
|
-
fontSize: z.ZodNumber;
|
|
2983
|
-
color: z.ZodString;
|
|
2984
|
-
fontFamily: z.ZodOptional<z.ZodString>;
|
|
2985
|
-
offsetX: z.ZodOptional<z.ZodNumber>;
|
|
2986
|
-
offsetY: z.ZodOptional<z.ZodNumber>;
|
|
2987
|
-
}, z.core.$strip>], "type">>;
|
|
2988
|
-
}, z.core.$strip>;
|
|
2989
|
+
fontSize: z$1.ZodNumber;
|
|
2990
|
+
color: z$1.ZodString;
|
|
2991
|
+
fontFamily: z$1.ZodOptional<z$1.ZodString>;
|
|
2992
|
+
offsetX: z$1.ZodOptional<z$1.ZodNumber>;
|
|
2993
|
+
offsetY: z$1.ZodOptional<z$1.ZodNumber>;
|
|
2994
|
+
}, z$1.core.$strip>], "type">>;
|
|
2995
|
+
}, z$1.core.$strip>;
|
|
2989
2996
|
/**
|
|
2990
2997
|
* Parameters for the transform image node.
|
|
2991
2998
|
*/
|
|
2992
|
-
type TransformImageParams = z.infer<typeof transformImageParamsSchema>;
|
|
2999
|
+
type TransformImageParams = z$1.infer<typeof transformImageParamsSchema>;
|
|
2993
3000
|
//#endregion
|
|
2994
3001
|
//#region src/flow/plugins/image-plugin.d.ts
|
|
2995
3002
|
/**
|
|
@@ -3166,44 +3173,44 @@ type ImagePluginLayer = Layer.Layer<ImagePlugin, never, never>;
|
|
|
3166
3173
|
* Zod schema for video metadata extracted by the describe operation.
|
|
3167
3174
|
* Defines the structure and validation rules for video metadata.
|
|
3168
3175
|
*/
|
|
3169
|
-
declare const describeVideoMetadataSchema: z.ZodObject<{
|
|
3170
|
-
duration: z.ZodNumber;
|
|
3171
|
-
width: z.ZodNumber;
|
|
3172
|
-
height: z.ZodNumber;
|
|
3173
|
-
codec: z.ZodString;
|
|
3174
|
-
format: z.ZodString;
|
|
3175
|
-
bitrate: z.ZodNumber;
|
|
3176
|
-
frameRate: z.ZodNumber;
|
|
3177
|
-
aspectRatio: z.ZodString;
|
|
3178
|
-
hasAudio: z.ZodBoolean;
|
|
3179
|
-
audioCodec: z.ZodOptional<z.ZodString>;
|
|
3180
|
-
audioBitrate: z.ZodOptional<z.ZodNumber>;
|
|
3181
|
-
size: z.ZodNumber;
|
|
3182
|
-
}, z.core.$strip>;
|
|
3176
|
+
declare const describeVideoMetadataSchema: z$1.ZodObject<{
|
|
3177
|
+
duration: z$1.ZodNumber;
|
|
3178
|
+
width: z$1.ZodNumber;
|
|
3179
|
+
height: z$1.ZodNumber;
|
|
3180
|
+
codec: z$1.ZodString;
|
|
3181
|
+
format: z$1.ZodString;
|
|
3182
|
+
bitrate: z$1.ZodNumber;
|
|
3183
|
+
frameRate: z$1.ZodNumber;
|
|
3184
|
+
aspectRatio: z$1.ZodString;
|
|
3185
|
+
hasAudio: z$1.ZodBoolean;
|
|
3186
|
+
audioCodec: z$1.ZodOptional<z$1.ZodString>;
|
|
3187
|
+
audioBitrate: z$1.ZodOptional<z$1.ZodNumber>;
|
|
3188
|
+
size: z$1.ZodNumber;
|
|
3189
|
+
}, z$1.core.$strip>;
|
|
3183
3190
|
/**
|
|
3184
3191
|
* Video metadata extracted by the describe operation.
|
|
3185
3192
|
* Contains comprehensive information about video properties, codecs, and audio.
|
|
3186
3193
|
*/
|
|
3187
|
-
type DescribeVideoMetadata = z.infer<typeof describeVideoMetadataSchema>;
|
|
3194
|
+
type DescribeVideoMetadata = z$1.infer<typeof describeVideoMetadataSchema>;
|
|
3188
3195
|
//#endregion
|
|
3189
3196
|
//#region src/flow/plugins/types/extract-frame-video-node.d.ts
|
|
3190
3197
|
/**
|
|
3191
3198
|
* Zod schema for validating video frame extraction parameters.
|
|
3192
3199
|
* Defines the structure and validation rules for extracting a single frame from video.
|
|
3193
3200
|
*/
|
|
3194
|
-
declare const extractFrameVideoParamsSchema: z.ZodObject<{
|
|
3195
|
-
timestamp: z.ZodNumber;
|
|
3196
|
-
format: z.ZodOptional<z.ZodEnum<{
|
|
3201
|
+
declare const extractFrameVideoParamsSchema: z$1.ZodObject<{
|
|
3202
|
+
timestamp: z$1.ZodNumber;
|
|
3203
|
+
format: z$1.ZodOptional<z$1.ZodEnum<{
|
|
3197
3204
|
jpeg: "jpeg";
|
|
3198
3205
|
png: "png";
|
|
3199
3206
|
}>>;
|
|
3200
|
-
quality: z.ZodOptional<z.ZodNumber>;
|
|
3201
|
-
}, z.core.$strip>;
|
|
3207
|
+
quality: z$1.ZodOptional<z$1.ZodNumber>;
|
|
3208
|
+
}, z$1.core.$strip>;
|
|
3202
3209
|
/**
|
|
3203
3210
|
* Parameters for the video frame extraction node.
|
|
3204
3211
|
* Controls the timestamp and output format for extracting a single frame from video.
|
|
3205
3212
|
*/
|
|
3206
|
-
type ExtractFrameVideoParams = z.infer<typeof extractFrameVideoParamsSchema>;
|
|
3213
|
+
type ExtractFrameVideoParams = z$1.infer<typeof extractFrameVideoParamsSchema>;
|
|
3207
3214
|
//#endregion
|
|
3208
3215
|
//#region src/flow/plugins/types/resize-video-node.d.ts
|
|
3209
3216
|
/**
|
|
@@ -3211,73 +3218,73 @@ type ExtractFrameVideoParams = z.infer<typeof extractFrameVideoParamsSchema>;
|
|
|
3211
3218
|
* Defines the structure and validation rules for video resolution changes.
|
|
3212
3219
|
* Requires at least one dimension (width or height) to be specified.
|
|
3213
3220
|
*/
|
|
3214
|
-
declare const resizeVideoParamsSchema: z.ZodObject<{
|
|
3215
|
-
width: z.ZodOptional<z.ZodNumber>;
|
|
3216
|
-
height: z.ZodOptional<z.ZodNumber>;
|
|
3217
|
-
aspectRatio: z.ZodOptional<z.ZodEnum<{
|
|
3221
|
+
declare const resizeVideoParamsSchema: z$1.ZodObject<{
|
|
3222
|
+
width: z$1.ZodOptional<z$1.ZodNumber>;
|
|
3223
|
+
height: z$1.ZodOptional<z$1.ZodNumber>;
|
|
3224
|
+
aspectRatio: z$1.ZodOptional<z$1.ZodEnum<{
|
|
3218
3225
|
keep: "keep";
|
|
3219
3226
|
ignore: "ignore";
|
|
3220
3227
|
}>>;
|
|
3221
|
-
scaling: z.ZodOptional<z.ZodEnum<{
|
|
3228
|
+
scaling: z$1.ZodOptional<z$1.ZodEnum<{
|
|
3222
3229
|
bicubic: "bicubic";
|
|
3223
3230
|
bilinear: "bilinear";
|
|
3224
3231
|
lanczos: "lanczos";
|
|
3225
3232
|
}>>;
|
|
3226
|
-
}, z.core.$strip>;
|
|
3233
|
+
}, z$1.core.$strip>;
|
|
3227
3234
|
/**
|
|
3228
3235
|
* Parameters for the video resize node.
|
|
3229
3236
|
* Controls the target dimensions and aspect ratio handling for video resizing.
|
|
3230
3237
|
*/
|
|
3231
|
-
type ResizeVideoParams = z.infer<typeof resizeVideoParamsSchema>;
|
|
3238
|
+
type ResizeVideoParams = z$1.infer<typeof resizeVideoParamsSchema>;
|
|
3232
3239
|
//#endregion
|
|
3233
3240
|
//#region src/flow/plugins/types/transcode-video-node.d.ts
|
|
3234
3241
|
/**
|
|
3235
3242
|
* Zod schema for validating video transcode parameters.
|
|
3236
3243
|
* Defines the structure and validation rules for video format and codec conversion.
|
|
3237
3244
|
*/
|
|
3238
|
-
declare const transcodeVideoParamsSchema: z.ZodObject<{
|
|
3239
|
-
format: z.ZodEnum<{
|
|
3245
|
+
declare const transcodeVideoParamsSchema: z$1.ZodObject<{
|
|
3246
|
+
format: z$1.ZodEnum<{
|
|
3240
3247
|
mp4: "mp4";
|
|
3241
3248
|
webm: "webm";
|
|
3242
3249
|
mov: "mov";
|
|
3243
3250
|
avi: "avi";
|
|
3244
3251
|
}>;
|
|
3245
|
-
codec: z.ZodOptional<z.ZodEnum<{
|
|
3252
|
+
codec: z$1.ZodOptional<z$1.ZodEnum<{
|
|
3246
3253
|
h264: "h264";
|
|
3247
3254
|
h265: "h265";
|
|
3248
3255
|
vp9: "vp9";
|
|
3249
3256
|
av1: "av1";
|
|
3250
3257
|
}>>;
|
|
3251
|
-
videoBitrate: z.ZodOptional<z.ZodString>;
|
|
3252
|
-
audioBitrate: z.ZodOptional<z.ZodString>;
|
|
3253
|
-
audioCodec: z.ZodOptional<z.ZodEnum<{
|
|
3258
|
+
videoBitrate: z$1.ZodOptional<z$1.ZodString>;
|
|
3259
|
+
audioBitrate: z$1.ZodOptional<z$1.ZodString>;
|
|
3260
|
+
audioCodec: z$1.ZodOptional<z$1.ZodEnum<{
|
|
3254
3261
|
aac: "aac";
|
|
3255
3262
|
mp3: "mp3";
|
|
3256
3263
|
opus: "opus";
|
|
3257
3264
|
vorbis: "vorbis";
|
|
3258
3265
|
}>>;
|
|
3259
|
-
}, z.core.$strip>;
|
|
3266
|
+
}, z$1.core.$strip>;
|
|
3260
3267
|
/**
|
|
3261
3268
|
* Parameters for the video transcode node.
|
|
3262
3269
|
* Controls output format, codecs, and quality settings for video transcoding.
|
|
3263
3270
|
*/
|
|
3264
|
-
type TranscodeVideoParams = z.infer<typeof transcodeVideoParamsSchema>;
|
|
3271
|
+
type TranscodeVideoParams = z$1.infer<typeof transcodeVideoParamsSchema>;
|
|
3265
3272
|
//#endregion
|
|
3266
3273
|
//#region src/flow/plugins/types/trim-video-node.d.ts
|
|
3267
3274
|
/**
|
|
3268
3275
|
* Zod schema for validating video trim parameters.
|
|
3269
3276
|
* Defines the structure and validation rules for extracting video segments.
|
|
3270
3277
|
*/
|
|
3271
|
-
declare const trimVideoParamsSchema: z.ZodObject<{
|
|
3272
|
-
startTime: z.ZodNumber;
|
|
3273
|
-
endTime: z.ZodOptional<z.ZodNumber>;
|
|
3274
|
-
duration: z.ZodOptional<z.ZodNumber>;
|
|
3275
|
-
}, z.core.$strip>;
|
|
3278
|
+
declare const trimVideoParamsSchema: z$1.ZodObject<{
|
|
3279
|
+
startTime: z$1.ZodNumber;
|
|
3280
|
+
endTime: z$1.ZodOptional<z$1.ZodNumber>;
|
|
3281
|
+
duration: z$1.ZodOptional<z$1.ZodNumber>;
|
|
3282
|
+
}, z$1.core.$strip>;
|
|
3276
3283
|
/**
|
|
3277
3284
|
* Parameters for the video trim node.
|
|
3278
3285
|
* Controls the time range for extracting video segments.
|
|
3279
3286
|
*/
|
|
3280
|
-
type TrimVideoParams = z.infer<typeof trimVideoParamsSchema>;
|
|
3287
|
+
type TrimVideoParams = z$1.infer<typeof trimVideoParamsSchema>;
|
|
3281
3288
|
//#endregion
|
|
3282
3289
|
//#region src/flow/plugins/video-plugin.d.ts
|
|
3283
3290
|
/**
|
|
@@ -3634,32 +3641,32 @@ type PluginLayer = ImagePluginLayer | ImageAiPluginLayer | VideoPluginLayer | Do
|
|
|
3634
3641
|
* Zod schema for validating describe image node parameters.
|
|
3635
3642
|
* Defines the structure and validation rules for image description requests.
|
|
3636
3643
|
*/
|
|
3637
|
-
declare const describeImageParamsSchema: z.ZodObject<{
|
|
3638
|
-
serviceType: z.ZodOptional<z.ZodEnum<{
|
|
3644
|
+
declare const describeImageParamsSchema: z$1.ZodObject<{
|
|
3645
|
+
serviceType: z$1.ZodOptional<z$1.ZodEnum<{
|
|
3639
3646
|
replicate: "replicate";
|
|
3640
3647
|
}>>;
|
|
3641
|
-
}, z.core.$strip>;
|
|
3648
|
+
}, z$1.core.$strip>;
|
|
3642
3649
|
/**
|
|
3643
3650
|
* Parameters for the describe image node.
|
|
3644
3651
|
* Controls which AI service to use for generating image descriptions.
|
|
3645
3652
|
*/
|
|
3646
|
-
type DescribeImageParams = z.infer<typeof describeImageParamsSchema>;
|
|
3653
|
+
type DescribeImageParams = z$1.infer<typeof describeImageParamsSchema>;
|
|
3647
3654
|
//#endregion
|
|
3648
3655
|
//#region src/flow/plugins/types/remove-background-node.d.ts
|
|
3649
3656
|
/**
|
|
3650
3657
|
* Zod schema for validating remove background node parameters.
|
|
3651
3658
|
* Defines the structure and validation rules for background removal requests.
|
|
3652
3659
|
*/
|
|
3653
|
-
declare const removeBackgroundParamsSchema: z.ZodObject<{
|
|
3654
|
-
serviceType: z.ZodOptional<z.ZodEnum<{
|
|
3660
|
+
declare const removeBackgroundParamsSchema: z$1.ZodObject<{
|
|
3661
|
+
serviceType: z$1.ZodOptional<z$1.ZodEnum<{
|
|
3655
3662
|
replicate: "replicate";
|
|
3656
3663
|
}>>;
|
|
3657
|
-
}, z.core.$strip>;
|
|
3664
|
+
}, z$1.core.$strip>;
|
|
3658
3665
|
/**
|
|
3659
3666
|
* Parameters for the remove background node.
|
|
3660
3667
|
* Controls which AI service to use for background removal processing.
|
|
3661
3668
|
*/
|
|
3662
|
-
type RemoveBackgroundParams = z.infer<typeof removeBackgroundParamsSchema>;
|
|
3669
|
+
type RemoveBackgroundParams = z$1.infer<typeof removeBackgroundParamsSchema>;
|
|
3663
3670
|
//#endregion
|
|
3664
3671
|
//#region src/flow/type-guards.d.ts
|
|
3665
3672
|
/**
|
|
@@ -4149,7 +4156,7 @@ type FlowPluginRequirements<TNodes extends NodeDefinitionsRecord> = Exclude<Flow
|
|
|
4149
4156
|
*/
|
|
4150
4157
|
type InferNode<T> = T extends FlowNode<any, any, UploadistaError> ? T : ResolveEffect<T> extends FlowNode<any, any, UploadistaError> ? ResolveEffect<T> : never;
|
|
4151
4158
|
type ExtractKeysByNodeType<TNodes extends NodeDefinitionsRecord, TType extends NodeType> = { [K in keyof TNodes]: InferNode<TNodes[K]>["type"] extends TType ? K : never }[keyof TNodes];
|
|
4152
|
-
type SchemaInfer<T> = T extends z.ZodTypeAny ? z.infer<T> : never;
|
|
4159
|
+
type SchemaInfer<T> = T extends z$1.ZodTypeAny ? z$1.infer<T> : never;
|
|
4153
4160
|
type FlowInputMap<TNodes extends NodeDefinitionsRecord> = { [K in Extract<ExtractKeysByNodeType<TNodes, NodeType.input>, string>]: SchemaInfer<InferNode<TNodes[K]>["inputSchema"]> };
|
|
4154
4161
|
type FlowOutputMap<TNodes extends NodeDefinitionsRecord> = { [K in Extract<keyof TNodes, string>]: SchemaInfer<InferNode<TNodes[K]>["outputSchema"]> };
|
|
4155
4162
|
type FlowInputUnion<TNodes extends NodeDefinitionsRecord> = { [K in Extract<ExtractKeysByNodeType<TNodes, NodeType.input>, string>]: SchemaInfer<InferNode<TNodes[K]>["inputSchema"]> }[Extract<ExtractKeysByNodeType<TNodes, NodeType.input>, string>];
|
|
@@ -4174,8 +4181,8 @@ type TypedFlowConfig<TNodes extends NodeDefinitionsRecord> = {
|
|
|
4174
4181
|
enabled?: boolean;
|
|
4175
4182
|
maxConcurrency?: number;
|
|
4176
4183
|
};
|
|
4177
|
-
inputSchema?: z.ZodTypeAny;
|
|
4178
|
-
outputSchema?: z.ZodTypeAny;
|
|
4184
|
+
inputSchema?: z$1.ZodTypeAny;
|
|
4185
|
+
outputSchema?: z$1.ZodTypeAny;
|
|
4179
4186
|
hooks?: {
|
|
4180
4187
|
/**
|
|
4181
4188
|
* Called when a sink node (terminal node with no outgoing edges) produces an output.
|
|
@@ -4270,7 +4277,7 @@ declare const typedFlowPluginsSymbol: unique symbol;
|
|
|
4270
4277
|
* // - Requirements: ImagePlugin (from resize node)
|
|
4271
4278
|
* ```
|
|
4272
4279
|
*/
|
|
4273
|
-
type TypedFlow<TNodes extends NodeDefinitionsRecord, TInputSchema extends z.ZodTypeAny, TOutputSchema extends z.ZodTypeAny> = Flow<TInputSchema, TOutputSchema, FlowRequirements<TNodes>> & {
|
|
4280
|
+
type TypedFlow<TNodes extends NodeDefinitionsRecord, TInputSchema extends z$1.ZodTypeAny, TOutputSchema extends z$1.ZodTypeAny> = Flow<TInputSchema, TOutputSchema, FlowRequirements<TNodes>> & {
|
|
4274
4281
|
run: (args: {
|
|
4275
4282
|
inputs?: Partial<FlowInputMap<TNodes>>;
|
|
4276
4283
|
storageId: string;
|
|
@@ -4290,7 +4297,7 @@ type TypedFlow<TNodes extends NodeDefinitionsRecord, TInputSchema extends z.ZodT
|
|
|
4290
4297
|
readonly [typedFlowOutputsSymbol]?: FlowOutputMap<TNodes>;
|
|
4291
4298
|
readonly [typedFlowPluginsSymbol]?: FlowPluginRequirements<TNodes>;
|
|
4292
4299
|
};
|
|
4293
|
-
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>>;
|
|
4300
|
+
declare function createFlow<TNodes extends NodeDefinitionsRecord>(config: TypedFlowConfig<TNodes>): Effect.Effect<TypedFlow<TNodes, z$1.ZodType<FlowInputUnion<TNodes>>, z$1.ZodType<FlowOutputUnion<TNodes>>>, NodesErrorUnion<TNodes> | UploadistaError, FlowRequirements<TNodes>>;
|
|
4294
4301
|
//#endregion
|
|
4295
4302
|
//#region src/flow/types/run-args.d.ts
|
|
4296
4303
|
/**
|
|
@@ -4311,16 +4318,16 @@ declare function createFlow<TNodes extends NodeDefinitionsRecord>(config: TypedF
|
|
|
4311
4318
|
* const validated = runArgsSchema.parse(args);
|
|
4312
4319
|
* ```
|
|
4313
4320
|
*/
|
|
4314
|
-
declare const runArgsSchema: z.ZodObject<{
|
|
4315
|
-
inputs: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
4316
|
-
}, z.core.$strip>;
|
|
4321
|
+
declare const runArgsSchema: z$1.ZodObject<{
|
|
4322
|
+
inputs: z$1.ZodRecord<z$1.ZodString, z$1.ZodAny>;
|
|
4323
|
+
}, z$1.core.$strip>;
|
|
4317
4324
|
/**
|
|
4318
4325
|
* Type representing validated flow run arguments.
|
|
4319
4326
|
*
|
|
4320
4327
|
* This type is inferred from the runArgsSchema and ensures type safety
|
|
4321
4328
|
* when passing inputs to flow execution.
|
|
4322
4329
|
*/
|
|
4323
|
-
type RunArgs = z.infer<typeof runArgsSchema>;
|
|
4330
|
+
type RunArgs = z$1.infer<typeof runArgsSchema>;
|
|
4324
4331
|
//#endregion
|
|
4325
4332
|
//#region src/flow/utils/file-naming.d.ts
|
|
4326
4333
|
/**
|
|
@@ -4530,4 +4537,4 @@ type ResolvedUploadMetadata = {
|
|
|
4530
4537
|
declare function resolveUploadMetadata(metadata: FileMetadata): ResolvedUploadMetadata;
|
|
4531
4538
|
//#endregion
|
|
4532
4539
|
export { VideoPlugin as $, MemoryFlowQueueStore as $n, ImageAiPluginLayer as $t, isImageDescriptionOutput as A, ExtractLayerServices as An, DistributedCircuitBreaker as Ar, Transformation as At, describeImageParamsSchema as B, FlowQueueServiceShape as Bn, CircuitBreakerState as Br, rotateTransformSchema as Bt, createTypeGuard as C, StreamingTransformResult as Cn, FlowData as Cr, OverlayPosition as Ct, getSingleOutputByType as D, ExtractEffectError as Dn, FlowEdge as Dr, SharpenTransform as Dt, getOutputByNodeId as E, createTransformNode as En, getFlowData as Er, SepiaTransform as Et, isUploadOperation as F, createInputNode as Fn, memoryCircuitBreakerStoreLayer as Fr, contrastTransformSchema as Ft, ZipPlugin as G, FlowLifecycleHook as Gn, transformationSchema as Gt, PluginLayer as H, FlowEngineLayer as Hn, sharpenTransformSchema as Ht, isUrlOperation as I, inputDataSchema as In, CircuitBreakerConfig as Ir, flipTransformSchema as It, ScanMetadata as J, FlowWaitUntil as Jn, resizeParamsSchema as Jt, ZipPluginLayer as K, FlowProvider as Kn, watermarkTransformSchema as Kt, RemoveBackgroundParams as L, inputNodeParamsSchema as Ln, CircuitBreakerEvent as Lr, grayscaleTransformSchema as Lt, isOcrOutput as M, FlowCondition as Mn, kvCircuitBreakerStoreLayer as Mr, WatermarkTransform as Mt, isStorageOutput as N, InputData as Nn, makeKvCircuitBreakerStore as Nr, blurTransformSchema as Nt, hasOutputOfType as O, ExtractEffectRequirements as On, createFlowEdge as Or, TextTransform as Ot, isUploadFile as P, InputNodeParams as Pn, makeMemoryCircuitBreakerStore as Pr, brightnessTransformSchema as Pt, VirusScanPluginShape as Q, FlowQueueStore as Qn, ImageAiPlugin as Qt, removeBackgroundParamsSchema as R, FlowQueueDispatchMarker as Rn, CircuitBreakerEventHandler as Rr, logoTransformSchema as Rt, NarrowedTypedOutput as S, StreamingTransformFn as Sn, Flow as Sr, LogoTransform as St, getFirstOutputByType as T, TransformNodeConfig as Tn, createFlowWithSchema as Tr, RotateTransform as Tt, ZipInput as U, FlowEngineOptions as Un, textTransformSchema as Ut, Plugin as V, FlowEngine as Vn, DEFAULT_CIRCUIT_BREAKER_CONFIG as Vr, sepiaTransformSchema as Vt, ZipParams as W, FlowEngineShape as Wn, transformImageParamsSchema as Wt, VirusScanPlugin as X, createFlowEngine as Xn, optimizeParamsSchema as Xt, ScanResult as Y, WaitUntilCallback as Yn, OptimizeParams as Yt, VirusScanPluginLayer as Z, flowEngine as Zn, ImageAiContext as Zt, NodeDefinitionsRecord as _, CredentialProviderLayer as _n, InputTypeDefinition as _r, BlurTransform as _t, buildNamingContext as a, MergePdfParams as an, ImageDescriptionOutput as ar, trimVideoParamsSchema as at, TypedFlowEdge as b, ParallelScheduler as bn, inputTypeRegistry as br, FlipTransform as bt, interpolateFileName as c, DocumentAiContext as cn, STORAGE_OUTPUT_TYPE_ID as cr, ResizeVideoParams as ct, runArgsSchema as d, DocumentAiPluginShape as dn, ocrOutputSchema as dr, extractFrameVideoParamsSchema as dt, ImageAiPluginShape as en, DeadLetterQueueService as er, VideoPluginLayer as et, FlowInputMap as f, OcrParams as fn, OutputTypeDefinition as fr, DescribeVideoMetadata as ft, NodeDefinition as g, CredentialProvider as gn, validateFlowOutput as gr, ImagePluginShape as gt, FlowRequirements as h, OcrTaskType as hn, outputTypeRegistry as hr, ImagePluginLayer as ht, applyFileNaming as i, DocumentPluginShape as in, IMAGE_DESCRIPTION_OUTPUT_TYPE_ID as ir, TrimVideoParams as it, isInitOperation as j, ResolveEffect as jn, DistributedCircuitBreakerRegistry as jr, TransformationType as jt, isFinalizeOperation as k, ExtractLayerService as kn, AllowRequestResult as kr, TransformImageParams as kt, validatePattern as l, DocumentAiPlugin as ln, STREAMING_INPUT_TYPE_ID as lr, resizeVideoParamsSchema as lt, FlowPluginRequirements as m, OcrResult as mn, OutputValidationResult as mr, ImagePlugin as mt, resolveUploadMetadata as n, DocumentPlugin as nn, createDeadLetterQueueService as nr, VideoStreamInput as nt, getBaseName as o, SplitPdfParams as on, OCR_OUTPUT_TYPE_ID as or, TranscodeVideoParams as ot, FlowOutputMap as p, OcrResolution as pn, OutputTypeRegistry as pr, describeVideoMetadataSchema as pt, ZipPluginShape as q, FlowProviderShape as qn, ResizeParams as qt, AVAILABLE_TEMPLATE_VARIABLES as r, DocumentPluginLayer as rn, deadLetterQueueService as rr, VideoStreamOptions as rt, getExtension as s, SplitPdfResult as sn, OcrOutput as sr, transcodeVideoParamsSchema as st, ResolvedUploadMetadata as t, DocumentMetadata as tn, DeadLetterQueueServiceShape as tr, VideoPluginShape as tt, RunArgs as u, DocumentAiPluginLayer as un, imageDescriptionOutputSchema as ur, ExtractFrameVideoParams as ut, TypedFlow as v, CredentialProviderShape as vn, InputTypeRegistry as vr, BrightnessTransform as vt, filterOutputsByType as w, TransformMode as wn, FlowExecutionResult as wr, ResizeTransform as wt, createFlow as x, ParallelSchedulerConfig as xn, validateFlowInput as xr, GrayscaleTransform as xt, TypedFlowConfig as y, ExecutionLevel as yn, InputValidationResult as yr, ContrastTransform as yt, DescribeImageParams as z, FlowQueueService as zn, CircuitBreakerFallback as zr, resizeTransformSchema as zt };
|
|
4533
|
-
//# sourceMappingURL=
|
|
4540
|
+
//# sourceMappingURL=index-Cwin1ALJ.d.cts.map
|