@uploadista/flow-videos-nodes 0.1.4-beta.1 → 1.0.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-build.log +16 -14
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +39 -39
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +39 -39
- package/dist/index.d.mts.map +1 -1
- package/package.json +5 -5
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,28 +1,30 @@
|
|
|
1
1
|
|
|
2
|
-
> @uploadista/flow-videos-nodes@0.
|
|
2
|
+
> @uploadista/flow-videos-nodes@1.0.0-beta.2 build /home/runner/work/uploadista-sdk/uploadista-sdk/packages/flow/videos/nodes
|
|
3
3
|
> tsc --noEmit && tsdown
|
|
4
4
|
|
|
5
|
-
[34mℹ[39m tsdown [2mv0.20.
|
|
5
|
+
[34mℹ[39m tsdown [2mv0.20.3[22m powered by rolldown [2mv1.0.0-rc.3[22m
|
|
6
6
|
[34mℹ[39m config file: [4m/home/runner/work/uploadista-sdk/uploadista-sdk/packages/flow/videos/nodes/tsdown.config.ts[24m
|
|
7
7
|
[34mℹ[39m entry: [34msrc/index.ts[39m
|
|
8
8
|
[34mℹ[39m tsconfig: [34mtsconfig.json[39m
|
|
9
9
|
[34mℹ[39m Build start
|
|
10
|
-
[34mℹ[39m [33m[CJS][39m [2mdist/[22m[1mindex.cjs[22m [2m5.
|
|
11
|
-
[34mℹ[39m [33m[CJS][39m 1 files, total: 5.
|
|
10
|
+
[34mℹ[39m [33m[CJS][39m [2mdist/[22m[1mindex.cjs[22m [2m5.35 kB[22m [2m│ gzip: 1.65 kB[22m
|
|
11
|
+
[34mℹ[39m [33m[CJS][39m 1 files, total: 5.35 kB
|
|
12
|
+
[33m[PLUGIN_TIMINGS] Warning:[0m Your build spent significant time in plugin `tsdown:external`. See https://rolldown.rs/options/checks#plugintimings for more details.
|
|
13
|
+
|
|
12
14
|
[34mℹ[39m [34m[ESM][39m [2mdist/[22m[1mindex.mjs[22m [2m 4.91 kB[22m [2m│ gzip: 1.62 kB[22m
|
|
13
15
|
[34mℹ[39m [34m[ESM][39m [2mdist/[22mindex.mjs.map [2m26.39 kB[22m [2m│ gzip: 5.07 kB[22m
|
|
14
|
-
[34mℹ[39m [34m[ESM][39m [2mdist/[22mindex.d.mts.map [2m 1.58 kB[22m [2m│ gzip: 0.
|
|
15
|
-
[34mℹ[39m [34m[ESM][39m [2mdist/[22m[32m[1mindex.d.mts[22m[39m [2m13.
|
|
16
|
-
[34mℹ[39m [34m[ESM][39m 4 files, total: 46.
|
|
16
|
+
[34mℹ[39m [34m[ESM][39m [2mdist/[22mindex.d.mts.map [2m 1.58 kB[22m [2m│ gzip: 0.41 kB[22m
|
|
17
|
+
[34mℹ[39m [34m[ESM][39m [2mdist/[22m[32m[1mindex.d.mts[22m[39m [2m13.68 kB[22m [2m│ gzip: 2.06 kB[22m
|
|
18
|
+
[34mℹ[39m [34m[ESM][39m 4 files, total: 46.57 kB
|
|
17
19
|
[33m[PLUGIN_TIMINGS] Warning:[0m Your build spent significant time in plugin `rolldown-plugin-dts:generate`. See https://rolldown.rs/options/checks#plugintimings for more details.
|
|
18
20
|
|
|
19
|
-
[32m✔[39m Build complete in [
|
|
20
|
-
[34mℹ[39m [33m[CJS][39m [2mdist/[22mindex.d.cts.map [2m 1.58 kB[22m [2m│ gzip: 0.
|
|
21
|
-
[34mℹ[39m [33m[CJS][39m [2mdist/[22m[32m[1mindex.d.cts[22m[39m [2m13.
|
|
22
|
-
[34mℹ[39m [33m[CJS][39m 2 files, total: 15.
|
|
21
|
+
[32m✔[39m Build complete in [32m13783ms[39m
|
|
22
|
+
[34mℹ[39m [33m[CJS][39m [2mdist/[22mindex.d.cts.map [2m 1.58 kB[22m [2m│ gzip: 0.41 kB[22m
|
|
23
|
+
[34mℹ[39m [33m[CJS][39m [2mdist/[22m[32m[1mindex.d.cts[22m[39m [2m13.68 kB[22m [2m│ gzip: 2.06 kB[22m
|
|
24
|
+
[34mℹ[39m [33m[CJS][39m 2 files, total: 15.27 kB
|
|
23
25
|
[33m[PLUGIN_TIMINGS] Warning:[0m Your build spent significant time in plugins. Here is a breakdown:
|
|
24
|
-
- rolldown-plugin-dts:
|
|
25
|
-
- rolldown-plugin-dts:
|
|
26
|
+
- rolldown-plugin-dts:generate (60%)
|
|
27
|
+
- rolldown-plugin-dts:resolver (37%)
|
|
26
28
|
See https://rolldown.rs/options/checks#plugintimings for more details.
|
|
27
29
|
|
|
28
|
-
[32m✔[39m Build complete in [
|
|
30
|
+
[32m✔[39m Build complete in [32m13809ms[39m
|
package/dist/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
let e=require(`@uploadista/core/flow`),t=require(`effect`),n=require(`@uploadista/core/errors`);function r(n,r){return t.Effect.gen(function*(){let i=yield*e.VideoPlugin;return yield*(0,e.createTransformNode)({id:n,name:`Describe Video`,description:`Extracts video metadata (duration, resolution, codec, etc.)`,nodeTypeId:`describe-video`,outputTypeId:e.STORAGE_OUTPUT_TYPE_ID,keepOutput:r?.keepOutput,transform:(e,n)=>t.Effect.gen(function*(){let t=yield*i.describe(e);return{bytes:e,metadata:{...n.metadata,videoInfo:t}}})})})}const i={fileSizeThreshold:1e7,chunkSize:1048576};function a(n,r,a){return t.Effect.gen(function*(){let o=yield*e.VideoPlugin,s=o.supportsStreaming??!1,c=a?.mode??`auto`,l=c===`buffered`?`buffered`:s?c:`buffered`,u={...i,...a?.streamingConfig},d=a?.naming?{...a.naming,autoSuffix:a.naming.autoSuffix??(e=>`${e.width??r.width}x${e.height??r.height}`)}:void 0;return yield*(0,e.createTransformNode)({id:n,name:`Resize Video`,description:`Changes video resolution`,nodeTypeId:`resize-video`,outputTypeId:e.STORAGE_OUTPUT_TYPE_ID,keepOutput:a?.keepOutput,naming:d,nodeType:`resize-video`,namingVars:{width:r.width,height:r.height},mode:l,streamingConfig:u,transform:e=>t.Effect.map(o.resize(e,r),e=>({bytes:e})),streamingTransform:o.resizeStream?e=>t.Effect.gen(function*(){let t=o.resizeStream;if(!t)throw Error(`resizeStream not available`);return{stream:yield*t(e,r)}}):void 0})})}function o(n,r,i){return t.Effect.gen(function*(){let a=yield*e.VideoPlugin,o=r.format||`jpeg`;return yield*(0,e.createTransformNode)({id:n,name:`Generate Thumbnail`,description:`Extracts a frame from video as an image`,nodeTypeId:`thumbnail-video`,outputTypeId:e.STORAGE_OUTPUT_TYPE_ID,keepOutput:i?.keepOutput,nodeType:`thumbnail`,namingVars:{format:o},transform:(s,c)=>t.Effect.map(a.extractFrame(s,r),t=>{let r=o===`png`?`image/png`:`image/jpeg`,a=o===`png`?`png`:`jpg`,s=c.metadata?.fileName,l;if(s&&typeof s==`string`)if(i?.naming){let t={...i.naming,autoSuffix:i.naming.autoSuffix??(()=>`thumb`)};l=`${(0,e.getBaseName)((0,e.applyFileNaming)(c,(0,e.buildNamingContext)(c,{flowId:c.flow?.flowId??``,jobId:c.flow?.jobId??``,nodeId:n,nodeType:`thumbnail`},{format:o}),t))}.${a}`}else l=s.replace(/\.[^.]+$/,`.${a}`);return{bytes:t,type:r,fileName:l}})})})}const s={fileSizeThreshold:1e7,chunkSize:1048576},c={mp4:`video/mp4`,webm:`video/webm`,mov:`video/quicktime`,avi:`video/x-msvideo`},l={mp4:`mp4`,webm:`webm`,mov:`mov`,avi:`avi`};function u(n,r,i){return t.Effect.gen(function*(){let a=yield*e.VideoPlugin,o=a.supportsStreaming??!1,u=i?.mode??`auto`,d=u===`buffered`?`buffered`:o?u:`buffered`,f={...s,...i?.streamingConfig},p=t=>{let a=c[r.format],o=l[r.format],s=t.metadata?.fileName,u;if(s&&typeof s==`string`)if(i?.naming){let a={...i.naming,autoSuffix:i.naming.autoSuffix??(e=>e.format??r.format)};u=`${(0,e.getBaseName)((0,e.applyFileNaming)(t,(0,e.buildNamingContext)(t,{flowId:t.flow?.flowId??``,jobId:t.flow?.jobId??``,nodeId:n,nodeType:`transcode`},{format:r.format}),a))}.${o}`}else u=s.replace(/\.[^.]+$/,`.${o}`);return{newType:a,newFileName:u}};return yield*(0,e.createTransformNode)({id:n,name:`Transcode`,description:`Converts video to specified format and codec`,nodeTypeId:`transcode-video`,outputTypeId:e.STORAGE_OUTPUT_TYPE_ID,keepOutput:i?.keepOutput,nodeType:`transcode`,namingVars:{format:r.format},mode:d,streamingConfig:f,transform:(e,n)=>t.Effect.map(a.transcode(e,r),e=>{let{newType:t,newFileName:r}=p(n);return{bytes:e,type:t,fileName:r}}),streamingTransform:a.transcodeStream?(e,n)=>t.Effect.gen(function*(){let t=a.transcodeStream;if(!t)throw Error(`transcodeStream not available`);let i=yield*t(e,r),{newType:o,newFileName:s}=p(n);return{stream:i,type:o,fileName:s}}):void 0})})}const d={fileSizeThreshold:1e7,chunkSize:1048576};function f(r,i,a){return t.Effect.gen(function*(){let o=yield*e.VideoPlugin;if(i.endTime!==void 0&&i.endTime<=i.startTime)return yield*n.UploadistaError.fromCode(`VALIDATION_ERROR`,{body:`endTime must be greater than startTime`,details:{params:i}}).toEffect();if(i.duration!==void 0&&i.endTime!==void 0&&i.duration!==i.endTime-i.startTime)return yield*n.UploadistaError.fromCode(`VALIDATION_ERROR`,{body:`Cannot specify both endTime and duration with conflicting values`,details:{params:i}}).toEffect();if(i.duration!==void 0&&i.duration<=0)return yield*n.UploadistaError.fromCode(`VALIDATION_ERROR`,{body:`duration must be greater than 0`,details:{params:i}}).toEffect();let s=o.supportsStreaming??!1,c=a?.mode??`auto`,l=c===`buffered`?`buffered`:s?c:`buffered`,u={...d,...a?.streamingConfig},f=a?.naming?{...a.naming,autoSuffix:a.naming.autoSuffix??(()=>`trimmed`)}:void 0;return yield*(0,e.createTransformNode)({id:r,name:`Trim Video`,description:`Extracts a segment from the video`,nodeTypeId:`trim-video`,outputTypeId:e.STORAGE_OUTPUT_TYPE_ID,keepOutput:a?.keepOutput,naming:f,nodeType:`trim`,mode:l,streamingConfig:u,transform:e=>t.Effect.map(o.trim(e,i),e=>({bytes:e})),streamingTransform:o.trimStream?e=>t.Effect.gen(function*(){let t=o.trimStream;if(!t)throw Error(`trimStream not available`);return{stream:yield*t(e,i)}}):void 0})})}exports.createDescribeVideoNode=r,exports.createTranscodeVideoNode=u,exports.createTrimVideoNode=f,exports.createVideoResizeNode=a,exports.createVideoThumbnailNode=o;
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});let e=require(`@uploadista/core/flow`),t=require(`effect`),n=require(`@uploadista/core/errors`);function r(n,r){return t.Effect.gen(function*(){let i=yield*e.VideoPlugin;return yield*(0,e.createTransformNode)({id:n,name:`Describe Video`,description:`Extracts video metadata (duration, resolution, codec, etc.)`,nodeTypeId:`describe-video`,outputTypeId:e.STORAGE_OUTPUT_TYPE_ID,keepOutput:r?.keepOutput,transform:(e,n)=>t.Effect.gen(function*(){let t=yield*i.describe(e);return{bytes:e,metadata:{...n.metadata,videoInfo:t}}})})})}const i={fileSizeThreshold:1e7,chunkSize:1048576};function a(n,r,a){return t.Effect.gen(function*(){let o=yield*e.VideoPlugin,s=o.supportsStreaming??!1,c=a?.mode??`auto`,l=c===`buffered`?`buffered`:s?c:`buffered`,u={...i,...a?.streamingConfig},d=a?.naming?{...a.naming,autoSuffix:a.naming.autoSuffix??(e=>`${e.width??r.width}x${e.height??r.height}`)}:void 0;return yield*(0,e.createTransformNode)({id:n,name:`Resize Video`,description:`Changes video resolution`,nodeTypeId:`resize-video`,outputTypeId:e.STORAGE_OUTPUT_TYPE_ID,keepOutput:a?.keepOutput,naming:d,nodeType:`resize-video`,namingVars:{width:r.width,height:r.height},mode:l,streamingConfig:u,transform:e=>t.Effect.map(o.resize(e,r),e=>({bytes:e})),streamingTransform:o.resizeStream?e=>t.Effect.gen(function*(){let t=o.resizeStream;if(!t)throw Error(`resizeStream not available`);return{stream:yield*t(e,r)}}):void 0})})}function o(n,r,i){return t.Effect.gen(function*(){let a=yield*e.VideoPlugin,o=r.format||`jpeg`;return yield*(0,e.createTransformNode)({id:n,name:`Generate Thumbnail`,description:`Extracts a frame from video as an image`,nodeTypeId:`thumbnail-video`,outputTypeId:e.STORAGE_OUTPUT_TYPE_ID,keepOutput:i?.keepOutput,nodeType:`thumbnail`,namingVars:{format:o},transform:(s,c)=>t.Effect.map(a.extractFrame(s,r),t=>{let r=o===`png`?`image/png`:`image/jpeg`,a=o===`png`?`png`:`jpg`,s=c.metadata?.fileName,l;if(s&&typeof s==`string`)if(i?.naming){let t={...i.naming,autoSuffix:i.naming.autoSuffix??(()=>`thumb`)};l=`${(0,e.getBaseName)((0,e.applyFileNaming)(c,(0,e.buildNamingContext)(c,{flowId:c.flow?.flowId??``,jobId:c.flow?.jobId??``,nodeId:n,nodeType:`thumbnail`},{format:o}),t))}.${a}`}else l=s.replace(/\.[^.]+$/,`.${a}`);return{bytes:t,type:r,fileName:l}})})})}const s={fileSizeThreshold:1e7,chunkSize:1048576},c={mp4:`video/mp4`,webm:`video/webm`,mov:`video/quicktime`,avi:`video/x-msvideo`},l={mp4:`mp4`,webm:`webm`,mov:`mov`,avi:`avi`};function u(n,r,i){return t.Effect.gen(function*(){let a=yield*e.VideoPlugin,o=a.supportsStreaming??!1,u=i?.mode??`auto`,d=u===`buffered`?`buffered`:o?u:`buffered`,f={...s,...i?.streamingConfig},p=t=>{let a=c[r.format],o=l[r.format],s=t.metadata?.fileName,u;if(s&&typeof s==`string`)if(i?.naming){let a={...i.naming,autoSuffix:i.naming.autoSuffix??(e=>e.format??r.format)};u=`${(0,e.getBaseName)((0,e.applyFileNaming)(t,(0,e.buildNamingContext)(t,{flowId:t.flow?.flowId??``,jobId:t.flow?.jobId??``,nodeId:n,nodeType:`transcode`},{format:r.format}),a))}.${o}`}else u=s.replace(/\.[^.]+$/,`.${o}`);return{newType:a,newFileName:u}};return yield*(0,e.createTransformNode)({id:n,name:`Transcode`,description:`Converts video to specified format and codec`,nodeTypeId:`transcode-video`,outputTypeId:e.STORAGE_OUTPUT_TYPE_ID,keepOutput:i?.keepOutput,nodeType:`transcode`,namingVars:{format:r.format},mode:d,streamingConfig:f,transform:(e,n)=>t.Effect.map(a.transcode(e,r),e=>{let{newType:t,newFileName:r}=p(n);return{bytes:e,type:t,fileName:r}}),streamingTransform:a.transcodeStream?(e,n)=>t.Effect.gen(function*(){let t=a.transcodeStream;if(!t)throw Error(`transcodeStream not available`);let i=yield*t(e,r),{newType:o,newFileName:s}=p(n);return{stream:i,type:o,fileName:s}}):void 0})})}const d={fileSizeThreshold:1e7,chunkSize:1048576};function f(r,i,a){return t.Effect.gen(function*(){let o=yield*e.VideoPlugin;if(i.endTime!==void 0&&i.endTime<=i.startTime)return yield*n.UploadistaError.fromCode(`VALIDATION_ERROR`,{body:`endTime must be greater than startTime`,details:{params:i}}).toEffect();if(i.duration!==void 0&&i.endTime!==void 0&&i.duration!==i.endTime-i.startTime)return yield*n.UploadistaError.fromCode(`VALIDATION_ERROR`,{body:`Cannot specify both endTime and duration with conflicting values`,details:{params:i}}).toEffect();if(i.duration!==void 0&&i.duration<=0)return yield*n.UploadistaError.fromCode(`VALIDATION_ERROR`,{body:`duration must be greater than 0`,details:{params:i}}).toEffect();let s=o.supportsStreaming??!1,c=a?.mode??`auto`,l=c===`buffered`?`buffered`:s?c:`buffered`,u={...d,...a?.streamingConfig},f=a?.naming?{...a.naming,autoSuffix:a.naming.autoSuffix??(()=>`trimmed`)}:void 0;return yield*(0,e.createTransformNode)({id:r,name:`Trim Video`,description:`Extracts a segment from the video`,nodeTypeId:`trim-video`,outputTypeId:e.STORAGE_OUTPUT_TYPE_ID,keepOutput:a?.keepOutput,naming:f,nodeType:`trim`,mode:l,streamingConfig:u,transform:e=>t.Effect.map(o.trim(e,i),e=>({bytes:e})),streamingTransform:o.trimStream?e=>t.Effect.gen(function*(){let t=o.trimStream;if(!t)throw Error(`trimStream not available`);return{stream:yield*t(e,i)}}):void 0})})}exports.createDescribeVideoNode=r,exports.createTranscodeVideoNode=u,exports.createTrimVideoNode=f,exports.createVideoResizeNode=a,exports.createVideoThumbnailNode=o;
|
package/dist/index.d.cts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _uploadista_core_flow0 from "@uploadista/core/flow";
|
|
2
2
|
import { DescribeVideoMetadata, ExtractFrameVideoParams, ExtractFrameVideoParams as ExtractFrameVideoParams$1, FileNamingConfig, ResizeVideoParams, ResizeVideoParams as ResizeVideoParams$1, StreamingConfig, TranscodeVideoParams, TranscodeVideoParams as TranscodeVideoParams$1, TransformMode, TrimVideoParams, TrimVideoParams as TrimVideoParams$1, VideoPlugin } from "@uploadista/core/flow";
|
|
3
|
-
import * as
|
|
4
|
-
import * as
|
|
5
|
-
import * as
|
|
3
|
+
import * as _uploadista_core_types0 from "@uploadista/core/types";
|
|
4
|
+
import * as zod_v4_core0 from "zod/v4/core";
|
|
5
|
+
import * as zod from "zod";
|
|
6
6
|
import * as _uploadista_core_errors0 from "@uploadista/core/errors";
|
|
7
7
|
import { UploadistaError } from "@uploadista/core/errors";
|
|
8
8
|
import * as _uploadista_core_upload0 from "@uploadista/core/upload";
|
|
@@ -26,17 +26,17 @@ import { Effect } from "effect";
|
|
|
26
26
|
*/
|
|
27
27
|
declare function createDescribeVideoNode(id: string, options?: {
|
|
28
28
|
keepOutput?: boolean;
|
|
29
|
-
}): Effect.Effect<
|
|
30
|
-
inputSchema:
|
|
31
|
-
outputSchema:
|
|
29
|
+
}): Effect.Effect<_uploadista_core_flow0.FlowNodeData & {
|
|
30
|
+
inputSchema: zod.ZodType<_uploadista_core_types0.UploadFile, unknown, zod_v4_core0.$ZodTypeInternals<_uploadista_core_types0.UploadFile, unknown>>;
|
|
31
|
+
outputSchema: zod.ZodType<_uploadista_core_types0.UploadFile, unknown, zod_v4_core0.$ZodTypeInternals<_uploadista_core_types0.UploadFile, unknown>>;
|
|
32
32
|
run: (args: {
|
|
33
|
-
data:
|
|
33
|
+
data: _uploadista_core_types0.UploadFile;
|
|
34
34
|
jobId: string;
|
|
35
35
|
storageId: string;
|
|
36
36
|
flowId: string;
|
|
37
37
|
inputs?: Record<string, unknown>;
|
|
38
38
|
clientId: string | null;
|
|
39
|
-
}) => Effect.Effect<
|
|
39
|
+
}) => Effect.Effect<_uploadista_core_flow0.NodeExecutionResult<_uploadista_core_types0.UploadFile>, _uploadista_core_errors0.UploadistaError, never>;
|
|
40
40
|
condition?: {
|
|
41
41
|
field: string;
|
|
42
42
|
operator: string;
|
|
@@ -50,9 +50,9 @@ declare function createDescribeVideoNode(id: string, options?: {
|
|
|
50
50
|
retryDelay?: number;
|
|
51
51
|
exponentialBackoff?: boolean;
|
|
52
52
|
};
|
|
53
|
-
circuitBreaker?:
|
|
53
|
+
circuitBreaker?: _uploadista_core_flow0.FlowCircuitBreakerConfig;
|
|
54
54
|
} & {
|
|
55
|
-
type:
|
|
55
|
+
type: _uploadista_core_flow0.NodeType;
|
|
56
56
|
}, _uploadista_core_errors0.UploadistaError, VideoPlugin | _uploadista_core_upload0.UploadEngine>;
|
|
57
57
|
//#endregion
|
|
58
58
|
//#region src/resize-node.d.ts
|
|
@@ -109,17 +109,17 @@ declare function createVideoResizeNode(id: string, params: ResizeVideoParams$1,
|
|
|
109
109
|
naming?: FileNamingConfig;
|
|
110
110
|
mode?: TransformMode;
|
|
111
111
|
streamingConfig?: StreamingConfig;
|
|
112
|
-
}): Effect.Effect<
|
|
113
|
-
inputSchema:
|
|
114
|
-
outputSchema:
|
|
112
|
+
}): Effect.Effect<_uploadista_core_flow0.FlowNodeData & {
|
|
113
|
+
inputSchema: zod.ZodType<_uploadista_core_types0.UploadFile, unknown, zod_v4_core0.$ZodTypeInternals<_uploadista_core_types0.UploadFile, unknown>>;
|
|
114
|
+
outputSchema: zod.ZodType<_uploadista_core_types0.UploadFile, unknown, zod_v4_core0.$ZodTypeInternals<_uploadista_core_types0.UploadFile, unknown>>;
|
|
115
115
|
run: (args: {
|
|
116
|
-
data:
|
|
116
|
+
data: _uploadista_core_types0.UploadFile;
|
|
117
117
|
jobId: string;
|
|
118
118
|
storageId: string;
|
|
119
119
|
flowId: string;
|
|
120
120
|
inputs?: Record<string, unknown>;
|
|
121
121
|
clientId: string | null;
|
|
122
|
-
}) => Effect.Effect<
|
|
122
|
+
}) => Effect.Effect<_uploadista_core_flow0.NodeExecutionResult<_uploadista_core_types0.UploadFile>, _uploadista_core_errors0.UploadistaError, never>;
|
|
123
123
|
condition?: {
|
|
124
124
|
field: string;
|
|
125
125
|
operator: string;
|
|
@@ -133,9 +133,9 @@ declare function createVideoResizeNode(id: string, params: ResizeVideoParams$1,
|
|
|
133
133
|
retryDelay?: number;
|
|
134
134
|
exponentialBackoff?: boolean;
|
|
135
135
|
};
|
|
136
|
-
circuitBreaker?:
|
|
136
|
+
circuitBreaker?: _uploadista_core_flow0.FlowCircuitBreakerConfig;
|
|
137
137
|
} & {
|
|
138
|
-
type:
|
|
138
|
+
type: _uploadista_core_flow0.NodeType;
|
|
139
139
|
}, _uploadista_core_errors0.UploadistaError, VideoPlugin | _uploadista_core_upload0.UploadEngine>;
|
|
140
140
|
//#endregion
|
|
141
141
|
//#region src/thumbnail-node.d.ts
|
|
@@ -165,17 +165,17 @@ declare function createVideoResizeNode(id: string, params: ResizeVideoParams$1,
|
|
|
165
165
|
declare function createVideoThumbnailNode(id: string, params: ExtractFrameVideoParams$1, options?: {
|
|
166
166
|
keepOutput?: boolean;
|
|
167
167
|
naming?: FileNamingConfig;
|
|
168
|
-
}): Effect.Effect<
|
|
169
|
-
inputSchema:
|
|
170
|
-
outputSchema:
|
|
168
|
+
}): Effect.Effect<_uploadista_core_flow0.FlowNodeData & {
|
|
169
|
+
inputSchema: zod.ZodType<_uploadista_core_types0.UploadFile, unknown, zod_v4_core0.$ZodTypeInternals<_uploadista_core_types0.UploadFile, unknown>>;
|
|
170
|
+
outputSchema: zod.ZodType<_uploadista_core_types0.UploadFile, unknown, zod_v4_core0.$ZodTypeInternals<_uploadista_core_types0.UploadFile, unknown>>;
|
|
171
171
|
run: (args: {
|
|
172
|
-
data:
|
|
172
|
+
data: _uploadista_core_types0.UploadFile;
|
|
173
173
|
jobId: string;
|
|
174
174
|
storageId: string;
|
|
175
175
|
flowId: string;
|
|
176
176
|
inputs?: Record<string, unknown>;
|
|
177
177
|
clientId: string | null;
|
|
178
|
-
}) => Effect.Effect<
|
|
178
|
+
}) => Effect.Effect<_uploadista_core_flow0.NodeExecutionResult<_uploadista_core_types0.UploadFile>, _uploadista_core_errors0.UploadistaError, never>;
|
|
179
179
|
condition?: {
|
|
180
180
|
field: string;
|
|
181
181
|
operator: string;
|
|
@@ -189,9 +189,9 @@ declare function createVideoThumbnailNode(id: string, params: ExtractFrameVideoP
|
|
|
189
189
|
retryDelay?: number;
|
|
190
190
|
exponentialBackoff?: boolean;
|
|
191
191
|
};
|
|
192
|
-
circuitBreaker?:
|
|
192
|
+
circuitBreaker?: _uploadista_core_flow0.FlowCircuitBreakerConfig;
|
|
193
193
|
} & {
|
|
194
|
-
type:
|
|
194
|
+
type: _uploadista_core_flow0.NodeType;
|
|
195
195
|
}, _uploadista_core_errors0.UploadistaError, VideoPlugin | _uploadista_core_upload0.UploadEngine>;
|
|
196
196
|
//#endregion
|
|
197
197
|
//#region src/transcode-node.d.ts
|
|
@@ -247,17 +247,17 @@ declare function createTranscodeVideoNode(id: string, params: TranscodeVideoPara
|
|
|
247
247
|
naming?: FileNamingConfig;
|
|
248
248
|
mode?: TransformMode;
|
|
249
249
|
streamingConfig?: StreamingConfig;
|
|
250
|
-
}): Effect.Effect<
|
|
251
|
-
inputSchema:
|
|
252
|
-
outputSchema:
|
|
250
|
+
}): Effect.Effect<_uploadista_core_flow0.FlowNodeData & {
|
|
251
|
+
inputSchema: zod.ZodType<_uploadista_core_types0.UploadFile, unknown, zod_v4_core0.$ZodTypeInternals<_uploadista_core_types0.UploadFile, unknown>>;
|
|
252
|
+
outputSchema: zod.ZodType<_uploadista_core_types0.UploadFile, unknown, zod_v4_core0.$ZodTypeInternals<_uploadista_core_types0.UploadFile, unknown>>;
|
|
253
253
|
run: (args: {
|
|
254
|
-
data:
|
|
254
|
+
data: _uploadista_core_types0.UploadFile;
|
|
255
255
|
jobId: string;
|
|
256
256
|
storageId: string;
|
|
257
257
|
flowId: string;
|
|
258
258
|
inputs?: Record<string, unknown>;
|
|
259
259
|
clientId: string | null;
|
|
260
|
-
}) => Effect.Effect<
|
|
260
|
+
}) => Effect.Effect<_uploadista_core_flow0.NodeExecutionResult<_uploadista_core_types0.UploadFile>, _uploadista_core_errors0.UploadistaError, never>;
|
|
261
261
|
condition?: {
|
|
262
262
|
field: string;
|
|
263
263
|
operator: string;
|
|
@@ -271,9 +271,9 @@ declare function createTranscodeVideoNode(id: string, params: TranscodeVideoPara
|
|
|
271
271
|
retryDelay?: number;
|
|
272
272
|
exponentialBackoff?: boolean;
|
|
273
273
|
};
|
|
274
|
-
circuitBreaker?:
|
|
274
|
+
circuitBreaker?: _uploadista_core_flow0.FlowCircuitBreakerConfig;
|
|
275
275
|
} & {
|
|
276
|
-
type:
|
|
276
|
+
type: _uploadista_core_flow0.NodeType;
|
|
277
277
|
}, _uploadista_core_errors0.UploadistaError, VideoPlugin | _uploadista_core_upload0.UploadEngine>;
|
|
278
278
|
//#endregion
|
|
279
279
|
//#region src/trim-node.d.ts
|
|
@@ -328,17 +328,17 @@ declare function createTrimVideoNode(id: string, params: TrimVideoParams$1, opti
|
|
|
328
328
|
naming?: FileNamingConfig;
|
|
329
329
|
mode?: TransformMode;
|
|
330
330
|
streamingConfig?: StreamingConfig;
|
|
331
|
-
}): Effect.Effect<
|
|
332
|
-
inputSchema:
|
|
333
|
-
outputSchema:
|
|
331
|
+
}): Effect.Effect<_uploadista_core_flow0.FlowNodeData & {
|
|
332
|
+
inputSchema: zod.ZodType<_uploadista_core_types0.UploadFile, unknown, zod_v4_core0.$ZodTypeInternals<_uploadista_core_types0.UploadFile, unknown>>;
|
|
333
|
+
outputSchema: zod.ZodType<_uploadista_core_types0.UploadFile, unknown, zod_v4_core0.$ZodTypeInternals<_uploadista_core_types0.UploadFile, unknown>>;
|
|
334
334
|
run: (args: {
|
|
335
|
-
data:
|
|
335
|
+
data: _uploadista_core_types0.UploadFile;
|
|
336
336
|
jobId: string;
|
|
337
337
|
storageId: string;
|
|
338
338
|
flowId: string;
|
|
339
339
|
inputs?: Record<string, unknown>;
|
|
340
340
|
clientId: string | null;
|
|
341
|
-
}) => Effect.Effect<
|
|
341
|
+
}) => Effect.Effect<_uploadista_core_flow0.NodeExecutionResult<_uploadista_core_types0.UploadFile>, UploadistaError, never>;
|
|
342
342
|
condition?: {
|
|
343
343
|
field: string;
|
|
344
344
|
operator: string;
|
|
@@ -352,9 +352,9 @@ declare function createTrimVideoNode(id: string, params: TrimVideoParams$1, opti
|
|
|
352
352
|
retryDelay?: number;
|
|
353
353
|
exponentialBackoff?: boolean;
|
|
354
354
|
};
|
|
355
|
-
circuitBreaker?:
|
|
355
|
+
circuitBreaker?: _uploadista_core_flow0.FlowCircuitBreakerConfig;
|
|
356
356
|
} & {
|
|
357
|
-
type:
|
|
357
|
+
type: _uploadista_core_flow0.NodeType;
|
|
358
358
|
}, UploadistaError, VideoPlugin | _uploadista_core_upload0.UploadEngine>;
|
|
359
359
|
//#endregion
|
|
360
360
|
export { type DescribeVideoMetadata, type ExtractFrameVideoParams, type ResizeVideoParams, type TranscodeVideoParams, type TrimVideoParams, createDescribeVideoNode, createTranscodeVideoNode, createTrimVideoNode, createVideoResizeNode, createVideoThumbnailNode };
|
package/dist/index.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.cts","names":[],"sources":["../src/describe-video-node.ts","../src/resize-node.ts","../src/thumbnail-node.ts","../src/transcode-node.ts","../src/trim-node.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;AAsBA;;;;;;iBAAgB,uBAAA,CACd,EAAA,UACA,OAAA;EAAY,UAAA;AAAA,IAAsB,MAAA,CAAA,MAAA,CAFG,sBAAA,CAEH,YAAA;
|
|
1
|
+
{"version":3,"file":"index.d.cts","names":[],"sources":["../src/describe-video-node.ts","../src/resize-node.ts","../src/thumbnail-node.ts","../src/transcode-node.ts","../src/trim-node.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;AAsBA;;;;;;iBAAgB,uBAAA,CACd,EAAA,UACA,OAAA;EAAY,UAAA;AAAA,IAAsB,MAAA,CAAA,MAAA,CAFG,sBAAA,CAEH,YAAA;2BAAA,uBAAA,CAAA,UAAA;;;;;;;aA8BgvsE,MAAA;;iEAAA,uBAAA,CAAA,UAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAhCpxsE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBC2CgB,qBAAA,CACd,EAAA,UACA,MAAA,EAAQ,mBAAA,EACR,OAAA;EACE,UAAA;EACA,MAAA,GAAS,gBAAA;EACT,IAAA,GAAO,aAAA;EACP,eAAA,GAAkB,eAAA;AAAA,IACnB,MAAA,CAAA,MAAA,CADkC,sBAAA,CAClC,YAAA;2BAAA,uBAAA,CAAA,UAAA;;;;;;;aAkEijnE,MAAA;;iEAAA,uBAAA,CAAA,UAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ADrHpjnE;;;;;;;;;;;;;;iBEagB,wBAAA,CACd,EAAA,UACA,MAAA,EAAQ,yBAAA,EACR,OAAA;EAAY,UAAA;EAAsB,MAAA,GAAS,gBAAA;AAAA,IAAkB,MAAA,CAAA,MAAA,CAAF,sBAAA,CAAE,YAAA;2BAAA,uBAAA,CAAA,UAAA;;;;;;;aAsEy2oE,MAAA;;iEAAA,uBAAA,CAAA,UAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AFtFx6oE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBG6DgB,wBAAA,CACd,EAAA,UACA,MAAA,EAAQ,sBAAA,EACR,OAAA;EACE,UAAA;EACA,MAAA,GAAS,gBAAA;EACT,IAAA,GAAO,aAAA;EACP,eAAA,GAAkB,eAAA;AAAA,IACnB,MAAA,CAAA,MAAA,CADkC,sBAAA,CAClC,YAAA;2BAAA,uBAAA,CAAA,UAAA;;;;;;;aAiH0njE,MAAA;;iEAAA,uBAAA,CAAA,UAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;AHtL7njE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBI0CgB,mBAAA,CACd,EAAA,UACA,MAAA,EAAQ,iBAAA,EACR,OAAA;EACE,UAAA;EACA,MAAA,GAAS,gBAAA;EACT,IAAA,GAAO,aAAA;EACP,eAAA,GAAkB,eAAA;AAAA,IACnB,MAAA,CAAA,MAAA,CADkC,sBAAA,CAClC,YAAA;2BAAA,uBAAA,CAAA,UAAA;;;;;;;aAwFk6lE,MAAA;;iEAAA,uBAAA,CAAA,UAAA"}
|
package/dist/index.d.mts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _uploadista_core_flow0 from "@uploadista/core/flow";
|
|
2
2
|
import { DescribeVideoMetadata, ExtractFrameVideoParams, ExtractFrameVideoParams as ExtractFrameVideoParams$1, FileNamingConfig, ResizeVideoParams, ResizeVideoParams as ResizeVideoParams$1, StreamingConfig, TranscodeVideoParams, TranscodeVideoParams as TranscodeVideoParams$1, TransformMode, TrimVideoParams, TrimVideoParams as TrimVideoParams$1, VideoPlugin } from "@uploadista/core/flow";
|
|
3
3
|
import { Effect } from "effect";
|
|
4
4
|
import * as _uploadista_core_errors0 from "@uploadista/core/errors";
|
|
5
5
|
import { UploadistaError } from "@uploadista/core/errors";
|
|
6
|
-
import * as
|
|
7
|
-
import * as
|
|
8
|
-
import * as
|
|
6
|
+
import * as _uploadista_core_types0 from "@uploadista/core/types";
|
|
7
|
+
import * as zod_v4_core0 from "zod/v4/core";
|
|
8
|
+
import * as zod from "zod";
|
|
9
9
|
import * as _uploadista_core_upload0 from "@uploadista/core/upload";
|
|
10
10
|
|
|
11
11
|
//#region src/describe-video-node.d.ts
|
|
@@ -26,17 +26,17 @@ import * as _uploadista_core_upload0 from "@uploadista/core/upload";
|
|
|
26
26
|
*/
|
|
27
27
|
declare function createDescribeVideoNode(id: string, options?: {
|
|
28
28
|
keepOutput?: boolean;
|
|
29
|
-
}): Effect.Effect<
|
|
30
|
-
inputSchema:
|
|
31
|
-
outputSchema:
|
|
29
|
+
}): Effect.Effect<_uploadista_core_flow0.FlowNodeData & {
|
|
30
|
+
inputSchema: zod.ZodType<_uploadista_core_types0.UploadFile, unknown, zod_v4_core0.$ZodTypeInternals<_uploadista_core_types0.UploadFile, unknown>>;
|
|
31
|
+
outputSchema: zod.ZodType<_uploadista_core_types0.UploadFile, unknown, zod_v4_core0.$ZodTypeInternals<_uploadista_core_types0.UploadFile, unknown>>;
|
|
32
32
|
run: (args: {
|
|
33
|
-
data:
|
|
33
|
+
data: _uploadista_core_types0.UploadFile;
|
|
34
34
|
jobId: string;
|
|
35
35
|
storageId: string;
|
|
36
36
|
flowId: string;
|
|
37
37
|
inputs?: Record<string, unknown>;
|
|
38
38
|
clientId: string | null;
|
|
39
|
-
}) => Effect.Effect<
|
|
39
|
+
}) => Effect.Effect<_uploadista_core_flow0.NodeExecutionResult<_uploadista_core_types0.UploadFile>, _uploadista_core_errors0.UploadistaError, never>;
|
|
40
40
|
condition?: {
|
|
41
41
|
field: string;
|
|
42
42
|
operator: string;
|
|
@@ -50,9 +50,9 @@ declare function createDescribeVideoNode(id: string, options?: {
|
|
|
50
50
|
retryDelay?: number;
|
|
51
51
|
exponentialBackoff?: boolean;
|
|
52
52
|
};
|
|
53
|
-
circuitBreaker?:
|
|
53
|
+
circuitBreaker?: _uploadista_core_flow0.FlowCircuitBreakerConfig;
|
|
54
54
|
} & {
|
|
55
|
-
type:
|
|
55
|
+
type: _uploadista_core_flow0.NodeType;
|
|
56
56
|
}, _uploadista_core_errors0.UploadistaError, VideoPlugin | _uploadista_core_upload0.UploadEngine>;
|
|
57
57
|
//#endregion
|
|
58
58
|
//#region src/resize-node.d.ts
|
|
@@ -109,17 +109,17 @@ declare function createVideoResizeNode(id: string, params: ResizeVideoParams$1,
|
|
|
109
109
|
naming?: FileNamingConfig;
|
|
110
110
|
mode?: TransformMode;
|
|
111
111
|
streamingConfig?: StreamingConfig;
|
|
112
|
-
}): Effect.Effect<
|
|
113
|
-
inputSchema:
|
|
114
|
-
outputSchema:
|
|
112
|
+
}): Effect.Effect<_uploadista_core_flow0.FlowNodeData & {
|
|
113
|
+
inputSchema: zod.ZodType<_uploadista_core_types0.UploadFile, unknown, zod_v4_core0.$ZodTypeInternals<_uploadista_core_types0.UploadFile, unknown>>;
|
|
114
|
+
outputSchema: zod.ZodType<_uploadista_core_types0.UploadFile, unknown, zod_v4_core0.$ZodTypeInternals<_uploadista_core_types0.UploadFile, unknown>>;
|
|
115
115
|
run: (args: {
|
|
116
|
-
data:
|
|
116
|
+
data: _uploadista_core_types0.UploadFile;
|
|
117
117
|
jobId: string;
|
|
118
118
|
storageId: string;
|
|
119
119
|
flowId: string;
|
|
120
120
|
inputs?: Record<string, unknown>;
|
|
121
121
|
clientId: string | null;
|
|
122
|
-
}) => Effect.Effect<
|
|
122
|
+
}) => Effect.Effect<_uploadista_core_flow0.NodeExecutionResult<_uploadista_core_types0.UploadFile>, _uploadista_core_errors0.UploadistaError, never>;
|
|
123
123
|
condition?: {
|
|
124
124
|
field: string;
|
|
125
125
|
operator: string;
|
|
@@ -133,9 +133,9 @@ declare function createVideoResizeNode(id: string, params: ResizeVideoParams$1,
|
|
|
133
133
|
retryDelay?: number;
|
|
134
134
|
exponentialBackoff?: boolean;
|
|
135
135
|
};
|
|
136
|
-
circuitBreaker?:
|
|
136
|
+
circuitBreaker?: _uploadista_core_flow0.FlowCircuitBreakerConfig;
|
|
137
137
|
} & {
|
|
138
|
-
type:
|
|
138
|
+
type: _uploadista_core_flow0.NodeType;
|
|
139
139
|
}, _uploadista_core_errors0.UploadistaError, VideoPlugin | _uploadista_core_upload0.UploadEngine>;
|
|
140
140
|
//#endregion
|
|
141
141
|
//#region src/thumbnail-node.d.ts
|
|
@@ -165,17 +165,17 @@ declare function createVideoResizeNode(id: string, params: ResizeVideoParams$1,
|
|
|
165
165
|
declare function createVideoThumbnailNode(id: string, params: ExtractFrameVideoParams$1, options?: {
|
|
166
166
|
keepOutput?: boolean;
|
|
167
167
|
naming?: FileNamingConfig;
|
|
168
|
-
}): Effect.Effect<
|
|
169
|
-
inputSchema:
|
|
170
|
-
outputSchema:
|
|
168
|
+
}): Effect.Effect<_uploadista_core_flow0.FlowNodeData & {
|
|
169
|
+
inputSchema: zod.ZodType<_uploadista_core_types0.UploadFile, unknown, zod_v4_core0.$ZodTypeInternals<_uploadista_core_types0.UploadFile, unknown>>;
|
|
170
|
+
outputSchema: zod.ZodType<_uploadista_core_types0.UploadFile, unknown, zod_v4_core0.$ZodTypeInternals<_uploadista_core_types0.UploadFile, unknown>>;
|
|
171
171
|
run: (args: {
|
|
172
|
-
data:
|
|
172
|
+
data: _uploadista_core_types0.UploadFile;
|
|
173
173
|
jobId: string;
|
|
174
174
|
storageId: string;
|
|
175
175
|
flowId: string;
|
|
176
176
|
inputs?: Record<string, unknown>;
|
|
177
177
|
clientId: string | null;
|
|
178
|
-
}) => Effect.Effect<
|
|
178
|
+
}) => Effect.Effect<_uploadista_core_flow0.NodeExecutionResult<_uploadista_core_types0.UploadFile>, _uploadista_core_errors0.UploadistaError, never>;
|
|
179
179
|
condition?: {
|
|
180
180
|
field: string;
|
|
181
181
|
operator: string;
|
|
@@ -189,9 +189,9 @@ declare function createVideoThumbnailNode(id: string, params: ExtractFrameVideoP
|
|
|
189
189
|
retryDelay?: number;
|
|
190
190
|
exponentialBackoff?: boolean;
|
|
191
191
|
};
|
|
192
|
-
circuitBreaker?:
|
|
192
|
+
circuitBreaker?: _uploadista_core_flow0.FlowCircuitBreakerConfig;
|
|
193
193
|
} & {
|
|
194
|
-
type:
|
|
194
|
+
type: _uploadista_core_flow0.NodeType;
|
|
195
195
|
}, _uploadista_core_errors0.UploadistaError, VideoPlugin | _uploadista_core_upload0.UploadEngine>;
|
|
196
196
|
//#endregion
|
|
197
197
|
//#region src/transcode-node.d.ts
|
|
@@ -247,17 +247,17 @@ declare function createTranscodeVideoNode(id: string, params: TranscodeVideoPara
|
|
|
247
247
|
naming?: FileNamingConfig;
|
|
248
248
|
mode?: TransformMode;
|
|
249
249
|
streamingConfig?: StreamingConfig;
|
|
250
|
-
}): Effect.Effect<
|
|
251
|
-
inputSchema:
|
|
252
|
-
outputSchema:
|
|
250
|
+
}): Effect.Effect<_uploadista_core_flow0.FlowNodeData & {
|
|
251
|
+
inputSchema: zod.ZodType<_uploadista_core_types0.UploadFile, unknown, zod_v4_core0.$ZodTypeInternals<_uploadista_core_types0.UploadFile, unknown>>;
|
|
252
|
+
outputSchema: zod.ZodType<_uploadista_core_types0.UploadFile, unknown, zod_v4_core0.$ZodTypeInternals<_uploadista_core_types0.UploadFile, unknown>>;
|
|
253
253
|
run: (args: {
|
|
254
|
-
data:
|
|
254
|
+
data: _uploadista_core_types0.UploadFile;
|
|
255
255
|
jobId: string;
|
|
256
256
|
storageId: string;
|
|
257
257
|
flowId: string;
|
|
258
258
|
inputs?: Record<string, unknown>;
|
|
259
259
|
clientId: string | null;
|
|
260
|
-
}) => Effect.Effect<
|
|
260
|
+
}) => Effect.Effect<_uploadista_core_flow0.NodeExecutionResult<_uploadista_core_types0.UploadFile>, _uploadista_core_errors0.UploadistaError, never>;
|
|
261
261
|
condition?: {
|
|
262
262
|
field: string;
|
|
263
263
|
operator: string;
|
|
@@ -271,9 +271,9 @@ declare function createTranscodeVideoNode(id: string, params: TranscodeVideoPara
|
|
|
271
271
|
retryDelay?: number;
|
|
272
272
|
exponentialBackoff?: boolean;
|
|
273
273
|
};
|
|
274
|
-
circuitBreaker?:
|
|
274
|
+
circuitBreaker?: _uploadista_core_flow0.FlowCircuitBreakerConfig;
|
|
275
275
|
} & {
|
|
276
|
-
type:
|
|
276
|
+
type: _uploadista_core_flow0.NodeType;
|
|
277
277
|
}, _uploadista_core_errors0.UploadistaError, VideoPlugin | _uploadista_core_upload0.UploadEngine>;
|
|
278
278
|
//#endregion
|
|
279
279
|
//#region src/trim-node.d.ts
|
|
@@ -328,17 +328,17 @@ declare function createTrimVideoNode(id: string, params: TrimVideoParams$1, opti
|
|
|
328
328
|
naming?: FileNamingConfig;
|
|
329
329
|
mode?: TransformMode;
|
|
330
330
|
streamingConfig?: StreamingConfig;
|
|
331
|
-
}): Effect.Effect<
|
|
332
|
-
inputSchema:
|
|
333
|
-
outputSchema:
|
|
331
|
+
}): Effect.Effect<_uploadista_core_flow0.FlowNodeData & {
|
|
332
|
+
inputSchema: zod.ZodType<_uploadista_core_types0.UploadFile, unknown, zod_v4_core0.$ZodTypeInternals<_uploadista_core_types0.UploadFile, unknown>>;
|
|
333
|
+
outputSchema: zod.ZodType<_uploadista_core_types0.UploadFile, unknown, zod_v4_core0.$ZodTypeInternals<_uploadista_core_types0.UploadFile, unknown>>;
|
|
334
334
|
run: (args: {
|
|
335
|
-
data:
|
|
335
|
+
data: _uploadista_core_types0.UploadFile;
|
|
336
336
|
jobId: string;
|
|
337
337
|
storageId: string;
|
|
338
338
|
flowId: string;
|
|
339
339
|
inputs?: Record<string, unknown>;
|
|
340
340
|
clientId: string | null;
|
|
341
|
-
}) => Effect.Effect<
|
|
341
|
+
}) => Effect.Effect<_uploadista_core_flow0.NodeExecutionResult<_uploadista_core_types0.UploadFile>, UploadistaError, never>;
|
|
342
342
|
condition?: {
|
|
343
343
|
field: string;
|
|
344
344
|
operator: string;
|
|
@@ -352,9 +352,9 @@ declare function createTrimVideoNode(id: string, params: TrimVideoParams$1, opti
|
|
|
352
352
|
retryDelay?: number;
|
|
353
353
|
exponentialBackoff?: boolean;
|
|
354
354
|
};
|
|
355
|
-
circuitBreaker?:
|
|
355
|
+
circuitBreaker?: _uploadista_core_flow0.FlowCircuitBreakerConfig;
|
|
356
356
|
} & {
|
|
357
|
-
type:
|
|
357
|
+
type: _uploadista_core_flow0.NodeType;
|
|
358
358
|
}, UploadistaError, VideoPlugin | _uploadista_core_upload0.UploadEngine>;
|
|
359
359
|
//#endregion
|
|
360
360
|
export { type DescribeVideoMetadata, type ExtractFrameVideoParams, type ResizeVideoParams, type TranscodeVideoParams, type TrimVideoParams, createDescribeVideoNode, createTranscodeVideoNode, createTrimVideoNode, createVideoResizeNode, createVideoThumbnailNode };
|
package/dist/index.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","names":[],"sources":["../src/describe-video-node.ts","../src/resize-node.ts","../src/thumbnail-node.ts","../src/transcode-node.ts","../src/trim-node.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;AAsBA;;;;;;iBAAgB,uBAAA,CACd,EAAA,UACA,OAAA;EAAY,UAAA;AAAA,IAAsB,MAAA,CAAA,MAAA,CAFG,sBAAA,CAEH,YAAA;
|
|
1
|
+
{"version":3,"file":"index.d.mts","names":[],"sources":["../src/describe-video-node.ts","../src/resize-node.ts","../src/thumbnail-node.ts","../src/transcode-node.ts","../src/trim-node.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;AAsBA;;;;;;iBAAgB,uBAAA,CACd,EAAA,UACA,OAAA;EAAY,UAAA;AAAA,IAAsB,MAAA,CAAA,MAAA,CAFG,sBAAA,CAEH,YAAA;2BAAA,uBAAA,CAAA,UAAA;;;;;;;aA8BgvsE,MAAA;;iEAAA,uBAAA,CAAA,UAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAhCpxsE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBC2CgB,qBAAA,CACd,EAAA,UACA,MAAA,EAAQ,mBAAA,EACR,OAAA;EACE,UAAA;EACA,MAAA,GAAS,gBAAA;EACT,IAAA,GAAO,aAAA;EACP,eAAA,GAAkB,eAAA;AAAA,IACnB,MAAA,CAAA,MAAA,CADkC,sBAAA,CAClC,YAAA;2BAAA,uBAAA,CAAA,UAAA;;;;;;;aAkEijnE,MAAA;;iEAAA,uBAAA,CAAA,UAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ADrHpjnE;;;;;;;;;;;;;;iBEagB,wBAAA,CACd,EAAA,UACA,MAAA,EAAQ,yBAAA,EACR,OAAA;EAAY,UAAA;EAAsB,MAAA,GAAS,gBAAA;AAAA,IAAkB,MAAA,CAAA,MAAA,CAAF,sBAAA,CAAE,YAAA;2BAAA,uBAAA,CAAA,UAAA;;;;;;;aAsEy2oE,MAAA;;iEAAA,uBAAA,CAAA,UAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AFtFx6oE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBG6DgB,wBAAA,CACd,EAAA,UACA,MAAA,EAAQ,sBAAA,EACR,OAAA;EACE,UAAA;EACA,MAAA,GAAS,gBAAA;EACT,IAAA,GAAO,aAAA;EACP,eAAA,GAAkB,eAAA;AAAA,IACnB,MAAA,CAAA,MAAA,CADkC,sBAAA,CAClC,YAAA;2BAAA,uBAAA,CAAA,UAAA;;;;;;;aAiH0njE,MAAA;;iEAAA,uBAAA,CAAA,UAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;AHtL7njE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBI0CgB,mBAAA,CACd,EAAA,UACA,MAAA,EAAQ,iBAAA,EACR,OAAA;EACE,UAAA;EACA,MAAA,GAAS,gBAAA;EACT,IAAA,GAAO,aAAA;EACP,eAAA,GAAkB,eAAA;AAAA,IACnB,MAAA,CAAA,MAAA,CADkC,sBAAA,CAClC,YAAA;2BAAA,uBAAA,CAAA,UAAA;;;;;;;aAwFk6lE,MAAA;;iEAAA,uBAAA,CAAA,UAAA"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uploadista/flow-videos-nodes",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "1.0.0-beta.2",
|
|
5
5
|
"description": "Video processing nodes for Uploadista Flow",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"author": "Uploadista",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
}
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@uploadista/core": "0.
|
|
17
|
+
"@uploadista/core": "1.0.0-beta.2"
|
|
18
18
|
},
|
|
19
19
|
"peerDependencies": {
|
|
20
20
|
"effect": "^3.0.0",
|
|
@@ -23,11 +23,11 @@
|
|
|
23
23
|
"devDependencies": {
|
|
24
24
|
"@effect/vitest": "0.27.0",
|
|
25
25
|
"@types/node": "24.10.9",
|
|
26
|
-
"effect": "3.19.
|
|
27
|
-
"tsdown": "0.20.
|
|
26
|
+
"effect": "3.19.19",
|
|
27
|
+
"tsdown": "0.20.3",
|
|
28
28
|
"vitest": "4.0.18",
|
|
29
29
|
"zod": "4.3.6",
|
|
30
|
-
"@uploadista/typescript-config": "0.
|
|
30
|
+
"@uploadista/typescript-config": "1.0.0-beta.2"
|
|
31
31
|
},
|
|
32
32
|
"scripts": {
|
|
33
33
|
"build": "tsc --noEmit && tsdown",
|