@workglow/tasks 0.2.1 → 0.2.3
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/browser.d.ts +4 -3
- package/dist/browser.d.ts.map +1 -1
- package/dist/browser.js +9764 -9174
- package/dist/browser.js.map +58 -50
- package/dist/bun.d.ts +5 -3
- package/dist/bun.d.ts.map +1 -1
- package/dist/bun.js +9893 -9204
- package/dist/bun.js.map +60 -51
- package/dist/common.d.ts +80 -74
- package/dist/common.d.ts.map +1 -1
- package/dist/node.d.ts +5 -3
- package/dist/node.d.ts.map +1 -1
- package/dist/node.js +9893 -9204
- package/dist/node.js.map +60 -51
- package/dist/task/FetchUrlTask.d.ts +13 -0
- package/dist/task/FetchUrlTask.d.ts.map +1 -1
- package/dist/task/FileLoaderTask.d.ts +2 -2
- package/dist/task/FileLoaderTask.d.ts.map +1 -1
- package/dist/task/FileLoaderTask.server.d.ts.map +1 -1
- package/dist/task/image/ImageBlurTask.d.ts +148 -120
- package/dist/task/image/ImageBlurTask.d.ts.map +1 -1
- package/dist/task/image/ImageBorderTask.d.ts +148 -120
- package/dist/task/image/ImageBorderTask.d.ts.map +1 -1
- package/dist/task/image/ImageBrightnessTask.d.ts +148 -120
- package/dist/task/image/ImageBrightnessTask.d.ts.map +1 -1
- package/dist/task/image/ImageContrastTask.d.ts +148 -120
- package/dist/task/image/ImageContrastTask.d.ts.map +1 -1
- package/dist/task/image/ImageCropTask.d.ts +148 -120
- package/dist/task/image/ImageCropTask.d.ts.map +1 -1
- package/dist/task/image/ImageFlipTask.d.ts +143 -115
- package/dist/task/image/ImageFlipTask.d.ts.map +1 -1
- package/dist/task/image/ImageGrayscaleTask.d.ts +132 -104
- package/dist/task/image/ImageGrayscaleTask.d.ts.map +1 -1
- package/dist/task/image/ImageInvertTask.d.ts +132 -104
- package/dist/task/image/ImageInvertTask.d.ts.map +1 -1
- package/dist/task/image/ImagePixelateTask.d.ts +146 -118
- package/dist/task/image/ImagePixelateTask.d.ts.map +1 -1
- package/dist/task/image/ImagePosterizeTask.d.ts +148 -120
- package/dist/task/image/ImagePosterizeTask.d.ts.map +1 -1
- package/dist/task/image/ImageResizeTask.d.ts +148 -120
- package/dist/task/image/ImageResizeTask.d.ts.map +1 -1
- package/dist/task/image/ImageRotateTask.d.ts +144 -116
- package/dist/task/image/ImageRotateTask.d.ts.map +1 -1
- package/dist/task/image/ImageSchemas.d.ts +46 -0
- package/dist/task/image/ImageSchemas.d.ts.map +1 -1
- package/dist/task/image/ImageSepiaTask.d.ts +132 -104
- package/dist/task/image/ImageSepiaTask.d.ts.map +1 -1
- package/dist/task/image/ImageThresholdTask.d.ts +148 -120
- package/dist/task/image/ImageThresholdTask.d.ts.map +1 -1
- package/dist/task/image/ImageTintTask.d.ts +148 -120
- package/dist/task/image/ImageTintTask.d.ts.map +1 -1
- package/dist/task/image/ImageTransparencyTask.d.ts +146 -118
- package/dist/task/image/ImageTransparencyTask.d.ts.map +1 -1
- package/dist/task/image/ImageWatermarkTask.d.ts +148 -120
- package/dist/task/image/ImageWatermarkTask.d.ts.map +1 -1
- package/dist/task/image/imageCodecLimits.d.ts +80 -0
- package/dist/task/image/imageCodecLimits.d.ts.map +1 -0
- package/dist/task/image/imageRasterCodecBrowser.d.ts +8 -0
- package/dist/task/image/imageRasterCodecBrowser.d.ts.map +1 -0
- package/dist/task/image/imageRasterCodecNode.d.ts +8 -0
- package/dist/task/image/imageRasterCodecNode.d.ts.map +1 -0
- package/dist/task/image/imageRasterCodecRegistry.d.ts +13 -0
- package/dist/task/image/imageRasterCodecRegistry.d.ts.map +1 -0
- package/dist/task/image/imageTaskIo.d.ts +12 -0
- package/dist/task/image/imageTaskIo.d.ts.map +1 -0
- package/dist/task/image/imageTaskTransport.d.ts +21 -0
- package/dist/task/image/imageTaskTransport.d.ts.map +1 -0
- package/dist/task/image/registerImageRasterCodec.browser.d.ts +7 -0
- package/dist/task/image/registerImageRasterCodec.browser.d.ts.map +1 -0
- package/dist/task/image/registerImageRasterCodec.node.d.ts +7 -0
- package/dist/task/image/registerImageRasterCodec.node.d.ts.map +1 -0
- package/dist/util/SafeFetch.d.ts +51 -0
- package/dist/util/SafeFetch.d.ts.map +1 -0
- package/dist/util/SafeFetch.server.d.ts +22 -0
- package/dist/util/SafeFetch.server.d.ts.map +1 -0
- package/dist/util/UrlClassifier.d.ts +64 -0
- package/dist/util/UrlClassifier.d.ts.map +1 -0
- package/package.json +18 -11
|
@@ -123,7 +123,20 @@ export declare class FetchUrlTask<Input extends FetchUrlTaskInput = FetchUrlTask
|
|
|
123
123
|
static title: string;
|
|
124
124
|
static description: string;
|
|
125
125
|
static hasDynamicSchemas: boolean;
|
|
126
|
+
static hasDynamicEntitlements: boolean;
|
|
126
127
|
static entitlements(): TaskEntitlements;
|
|
128
|
+
/**
|
|
129
|
+
* Dynamic entitlement check: when the configured URL targets a private or
|
|
130
|
+
* loopback host the task additionally requires `network:private`, scoped
|
|
131
|
+
* via the URL's origin so grants can be resource-limited (e.g. a dev-mode
|
|
132
|
+
* grant for `http://localhost:*`). The graph runner evaluates this before
|
|
133
|
+
* `execute()` runs, so a denied private URL never issues a network call.
|
|
134
|
+
*
|
|
135
|
+
* Root-task input may not yet be applied when entitlements are evaluated.
|
|
136
|
+
* If the URL is not available at this point, fail closed and require the
|
|
137
|
+
* private-network entitlement rather than under-declaring it.
|
|
138
|
+
*/
|
|
139
|
+
entitlements(): TaskEntitlements;
|
|
127
140
|
static configSchema(): DataPortSchema;
|
|
128
141
|
static inputSchema(): {
|
|
129
142
|
readonly type: "object";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FetchUrlTask.d.ts","sourceRoot":"","sources":["../../src/task/FetchUrlTask.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAEL,kBAAkB,EAClB,GAAG,EAGJ,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAAK,EACV,eAAe,EAEf,UAAU,EACV,gBAAgB,EACj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;yBACd,KAAK,EAAE,MAAM;yBACb,WAAW,EAAE,mBAAmB;;qBAElC,IAAI;yBACF,KAAK,EAAE,MAAM;yBACb,WAAW,EAAE,mBAAmB;;qBAElC,WAAW;yBACT,KAAK,EAAE,aAAa;yBACpB,WAAW,EAAE,0BAA0B;;qBAEzC,QAAQ;yBACN,IAAI,EAAE,QAAQ;yBACd,UAAU;6BACR,WAAW;iCAAI,IAAI,EAAE,QAAQ;;6BAC7B,OAAO;iCAAI,IAAI,EAAE,QAAQ;iCAAE,oBAAoB;qCAAI,IAAI,EAAE,QAAQ;;;;yBAEnE,oBAAoB;yBACpB,KAAK,EAAE,mBAAmB;yBAC1B,WAAW,EAAE,2DAA2D;;;;MA+R3E;IAED;;;;OAIG;IACa,YAAY,IAAI,cAAc,CA+C7C;IAED;;;;OAIG;IACY,OAAO,CACpB,KAAK,EAAE,iBAAiB,EACxB,cAAc,EAAE,eAAe,GAC9B,OAAO,CAAC,MAAM,CAAC,CAiFjB;YAEa,oBAAoB;IAuClC;;;OAGG;IACa,QAAQ,CAAC,KAAK,EAAE,OAAO,CAAC,KAAK,CAAC,GAAG,IAAI,CA0BpD;YAEa,mBAAmB;CAgBlC;AAED,eAAO,MAAM,QAAQ,UACZ,iBAAiB,WAChB,kBAAkB,KACzB,OAAO,CAAC,kBAAkB,CAG5B,CAAC;AAEF,OAAO,QAAQ,sBAAsB,CAAC,CAAC;IACrC,UAAU,QAAQ;QAChB,KAAK,EAAE,cAAc,CAAC,iBAAiB,EAAE,kBAAkB,EAAE,kBAAkB,CAAC,CAAC;KAClF;CACF"}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Copyright 2025 Steven Roussey <sroussey@gmail.com>
|
|
4
4
|
* SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
*/
|
|
6
|
-
import { CreateWorkflow, IExecuteContext,
|
|
6
|
+
import { CreateWorkflow, IExecuteContext, Task, TaskConfig } from "@workglow/task-graph";
|
|
7
7
|
import { DataPortSchema, FromSchema } from "@workglow/util/schema";
|
|
8
8
|
import { FetchUrlTaskOutput } from "./FetchUrlTask";
|
|
9
9
|
declare const inputSchema: {
|
|
@@ -109,7 +109,7 @@ export declare class FileLoaderTask extends Task<FileLoaderTaskInput, FileLoader
|
|
|
109
109
|
/**
|
|
110
110
|
* Parse CSV content into array of objects
|
|
111
111
|
*/
|
|
112
|
-
protected parseCsvContent(content: string): Array<Record<string, string
|
|
112
|
+
protected parseCsvContent(content: string): Promise<Array<Record<string, string>>>;
|
|
113
113
|
/**
|
|
114
114
|
* Parse YAML frontmatter from markdown/MDX content.
|
|
115
115
|
* Supports common frontmatter patterns: strings, numbers, booleans, arrays, and nested objects.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FileLoaderTask.d.ts","sourceRoot":"","sources":["../../src/task/FileLoaderTask.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EACL,cAAc,EACd,eAAe,EACf,
|
|
1
|
+
{"version":3,"file":"FileLoaderTask.d.ts","sourceRoot":"","sources":["../../src/task/FileLoaderTask.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EACL,cAAc,EACd,eAAe,EACf,IAAI,EAEJ,UAAU,EAEX,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACnE,OAAO,EAAgB,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AAmBlE,QAAA,MAAM,WAAW;mBACT,QAAQ;;iBAEZ,GAAG;qBACD,IAAI,EAAE,QAAQ;qBACd,KAAK,EAAE,KAAK;qBACZ,WAAW,EAAE,+CAA+C;qBAC5D,MAAM,EAAE,KAAK;;iBAEf,MAAM;qBACJ,IAAI,EAAE,QAAQ;qBACd,IAAI;qBACJ,KAAK,EAAE,QAAQ;qBACf,WAAW,EAAE,gDAAgD;qBAC7D,OAAO,EAAE,MAAM;;;;;CAKc,CAAC;AAEpC,QAAA,MAAM,Y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|
|
1
|
+
{"version":3,"file":"FileLoaderTask.server.d.ts","sourceRoot":"","sources":["../../src/task/FileLoaderTask.server.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EACL,cAAc,EACd,eAAe,EAEf,UAAU,EAEX,MAAM,sBAAsB,CAAC;AAG9B,OAAO,EACL,cAAc,IAAI,kBAAkB,EACpC,mBAAmB,EACnB,oBAAoB,EACrB,MAAM,kBAAkB,CAAC;AAE1B,YAAY,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,CAAC;AAE1D;;;;;;GAMG;AACH,qBAAa,cAAe,SAAQ,kBAAkB;IACrC,OAAO,CACpB,KAAK,EAAE,mBAAmB,EAC1B,OAAO,EAAE,eAAe,GACvB,OAAO,CAAC,oBAAoB,CAAC,CAyM/B;CACF;AAED,eAAO,MAAM,UAAU,UAAW,mBAAmB,WAAW,UAAU;;;;;;;;;;;;;;;;EAEzE,CAAC;AAEF,OAAO,QAAQ,sBAAsB,CAAC,CAAC;IACrC,UAAU,QAAQ;QAChB,UAAU,EAAE,cAAc,CAAC,mBAAmB,EAAE,oBAAoB,EAAE,UAAU,CAAC,CAAC;KACnF;CACF"}
|
|
@@ -9,111 +9,7 @@ declare const inputSchema: {
|
|
|
9
9
|
readonly type: "object";
|
|
10
10
|
readonly properties: {
|
|
11
11
|
readonly image: {
|
|
12
|
-
readonly
|
|
13
|
-
readonly properties: {
|
|
14
|
-
readonly data: {
|
|
15
|
-
readonly type: "array";
|
|
16
|
-
readonly items: {
|
|
17
|
-
readonly type: "number";
|
|
18
|
-
readonly format: "Uint8Clamped";
|
|
19
|
-
};
|
|
20
|
-
readonly format: "Uint8ClampedArray";
|
|
21
|
-
readonly title: "Data";
|
|
22
|
-
readonly description: "Pixel data of the image";
|
|
23
|
-
};
|
|
24
|
-
readonly width: {
|
|
25
|
-
readonly type: "integer";
|
|
26
|
-
readonly minimum: 1;
|
|
27
|
-
readonly title: "Width";
|
|
28
|
-
readonly description: "Width in pixels";
|
|
29
|
-
};
|
|
30
|
-
readonly height: {
|
|
31
|
-
readonly type: "integer";
|
|
32
|
-
readonly minimum: 1;
|
|
33
|
-
readonly title: "Height";
|
|
34
|
-
readonly description: "Height in pixels";
|
|
35
|
-
};
|
|
36
|
-
readonly channels: {
|
|
37
|
-
readonly type: "integer";
|
|
38
|
-
readonly enum: readonly [1, 3, 4];
|
|
39
|
-
readonly title: "Channels";
|
|
40
|
-
readonly description: "1 (gray), 3 (RGB), or 4 (RGBA)";
|
|
41
|
-
};
|
|
42
|
-
};
|
|
43
|
-
readonly additionalProperties: false;
|
|
44
|
-
readonly required: readonly ["data", "width", "height", "channels"];
|
|
45
|
-
readonly format: "image:ImageBinary";
|
|
46
|
-
readonly title: "Image";
|
|
47
|
-
readonly description: "Raw pixel image data";
|
|
48
|
-
};
|
|
49
|
-
readonly radius: {
|
|
50
|
-
readonly type: "integer";
|
|
51
|
-
readonly title: "Radius";
|
|
52
|
-
readonly description: "Blur radius (1-10)";
|
|
53
|
-
readonly minimum: 1;
|
|
54
|
-
readonly maximum: 10;
|
|
55
|
-
readonly default: 1;
|
|
56
|
-
};
|
|
57
|
-
};
|
|
58
|
-
readonly required: readonly ["image"];
|
|
59
|
-
readonly additionalProperties: false;
|
|
60
|
-
};
|
|
61
|
-
declare const outputSchema: {
|
|
62
|
-
readonly type: "object";
|
|
63
|
-
readonly properties: {
|
|
64
|
-
readonly image: {
|
|
65
|
-
readonly type: "object";
|
|
66
|
-
readonly properties: {
|
|
67
|
-
readonly data: {
|
|
68
|
-
readonly type: "array";
|
|
69
|
-
readonly items: {
|
|
70
|
-
readonly type: "number";
|
|
71
|
-
readonly format: "Uint8Clamped";
|
|
72
|
-
};
|
|
73
|
-
readonly format: "Uint8ClampedArray";
|
|
74
|
-
readonly title: "Data";
|
|
75
|
-
readonly description: "Pixel data of the image";
|
|
76
|
-
};
|
|
77
|
-
readonly width: {
|
|
78
|
-
readonly type: "integer";
|
|
79
|
-
readonly minimum: 1;
|
|
80
|
-
readonly title: "Width";
|
|
81
|
-
readonly description: "Width in pixels";
|
|
82
|
-
};
|
|
83
|
-
readonly height: {
|
|
84
|
-
readonly type: "integer";
|
|
85
|
-
readonly minimum: 1;
|
|
86
|
-
readonly title: "Height";
|
|
87
|
-
readonly description: "Height in pixels";
|
|
88
|
-
};
|
|
89
|
-
readonly channels: {
|
|
90
|
-
readonly type: "integer";
|
|
91
|
-
readonly enum: readonly [1, 3, 4];
|
|
92
|
-
readonly title: "Channels";
|
|
93
|
-
readonly description: "1 (gray), 3 (RGB), or 4 (RGBA)";
|
|
94
|
-
};
|
|
95
|
-
};
|
|
96
|
-
readonly additionalProperties: false;
|
|
97
|
-
readonly required: readonly ["data", "width", "height", "channels"];
|
|
98
|
-
readonly format: "image:ImageBinary";
|
|
99
|
-
readonly title: "Image";
|
|
100
|
-
readonly description: "Raw pixel image data";
|
|
101
|
-
};
|
|
102
|
-
};
|
|
103
|
-
readonly required: readonly ["image"];
|
|
104
|
-
readonly additionalProperties: false;
|
|
105
|
-
};
|
|
106
|
-
export type ImageBlurTaskInput = ImageFromSchema<typeof inputSchema>;
|
|
107
|
-
export type ImageBlurTaskOutput = ImageFromSchema<typeof outputSchema>;
|
|
108
|
-
export declare class ImageBlurTask<Input extends ImageBlurTaskInput = ImageBlurTaskInput, Output extends ImageBlurTaskOutput = ImageBlurTaskOutput, Config extends TaskConfig = TaskConfig> extends Task<Input, Output, Config> {
|
|
109
|
-
static readonly type = "ImageBlurTask";
|
|
110
|
-
static readonly category = "Image";
|
|
111
|
-
static title: string;
|
|
112
|
-
static description: string;
|
|
113
|
-
static inputSchema(): {
|
|
114
|
-
readonly type: "object";
|
|
115
|
-
readonly properties: {
|
|
116
|
-
readonly image: {
|
|
12
|
+
readonly oneOf: readonly [{
|
|
117
13
|
readonly type: "object";
|
|
118
14
|
readonly properties: {
|
|
119
15
|
readonly data: {
|
|
@@ -150,23 +46,30 @@ export declare class ImageBlurTask<Input extends ImageBlurTaskInput = ImageBlurT
|
|
|
150
46
|
readonly format: "image:ImageBinary";
|
|
151
47
|
readonly title: "Image";
|
|
152
48
|
readonly description: "Raw pixel image data";
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
readonly
|
|
156
|
-
readonly title:
|
|
157
|
-
readonly description:
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
49
|
+
}, {
|
|
50
|
+
readonly type: "string";
|
|
51
|
+
readonly format: "image:data-uri";
|
|
52
|
+
readonly title: string;
|
|
53
|
+
readonly description: string;
|
|
54
|
+
}];
|
|
55
|
+
};
|
|
56
|
+
readonly radius: {
|
|
57
|
+
readonly type: "integer";
|
|
58
|
+
readonly title: "Radius";
|
|
59
|
+
readonly description: "Blur radius (1-10)";
|
|
60
|
+
readonly minimum: 1;
|
|
61
|
+
readonly maximum: 10;
|
|
62
|
+
readonly default: 1;
|
|
162
63
|
};
|
|
163
|
-
readonly required: readonly ["image"];
|
|
164
|
-
readonly additionalProperties: false;
|
|
165
64
|
};
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
65
|
+
readonly required: readonly ["image"];
|
|
66
|
+
readonly additionalProperties: false;
|
|
67
|
+
};
|
|
68
|
+
declare const outputSchema: {
|
|
69
|
+
readonly type: "object";
|
|
70
|
+
readonly properties: {
|
|
71
|
+
readonly image: {
|
|
72
|
+
readonly oneOf: readonly [{
|
|
170
73
|
readonly type: "object";
|
|
171
74
|
readonly properties: {
|
|
172
75
|
readonly data: {
|
|
@@ -203,6 +106,131 @@ export declare class ImageBlurTask<Input extends ImageBlurTaskInput = ImageBlurT
|
|
|
203
106
|
readonly format: "image:ImageBinary";
|
|
204
107
|
readonly title: "Image";
|
|
205
108
|
readonly description: "Raw pixel image data";
|
|
109
|
+
}, {
|
|
110
|
+
readonly type: "string";
|
|
111
|
+
readonly format: "image:data-uri";
|
|
112
|
+
readonly title: string;
|
|
113
|
+
readonly description: string;
|
|
114
|
+
}];
|
|
115
|
+
};
|
|
116
|
+
};
|
|
117
|
+
readonly required: readonly ["image"];
|
|
118
|
+
readonly additionalProperties: false;
|
|
119
|
+
};
|
|
120
|
+
export type ImageBlurTaskInput = ImageFromSchema<typeof inputSchema>;
|
|
121
|
+
export type ImageBlurTaskOutput = ImageFromSchema<typeof outputSchema>;
|
|
122
|
+
export declare class ImageBlurTask<Input extends ImageBlurTaskInput = ImageBlurTaskInput, Output extends ImageBlurTaskOutput = ImageBlurTaskOutput, Config extends TaskConfig = TaskConfig> extends Task<Input, Output, Config> {
|
|
123
|
+
static readonly type = "ImageBlurTask";
|
|
124
|
+
static readonly category = "Image";
|
|
125
|
+
static title: string;
|
|
126
|
+
static description: string;
|
|
127
|
+
static inputSchema(): {
|
|
128
|
+
readonly type: "object";
|
|
129
|
+
readonly properties: {
|
|
130
|
+
readonly image: {
|
|
131
|
+
readonly oneOf: readonly [{
|
|
132
|
+
readonly type: "object";
|
|
133
|
+
readonly properties: {
|
|
134
|
+
readonly data: {
|
|
135
|
+
readonly type: "array";
|
|
136
|
+
readonly items: {
|
|
137
|
+
readonly type: "number";
|
|
138
|
+
readonly format: "Uint8Clamped";
|
|
139
|
+
};
|
|
140
|
+
readonly format: "Uint8ClampedArray";
|
|
141
|
+
readonly title: "Data";
|
|
142
|
+
readonly description: "Pixel data of the image";
|
|
143
|
+
};
|
|
144
|
+
readonly width: {
|
|
145
|
+
readonly type: "integer";
|
|
146
|
+
readonly minimum: 1;
|
|
147
|
+
readonly title: "Width";
|
|
148
|
+
readonly description: "Width in pixels";
|
|
149
|
+
};
|
|
150
|
+
readonly height: {
|
|
151
|
+
readonly type: "integer";
|
|
152
|
+
readonly minimum: 1;
|
|
153
|
+
readonly title: "Height";
|
|
154
|
+
readonly description: "Height in pixels";
|
|
155
|
+
};
|
|
156
|
+
readonly channels: {
|
|
157
|
+
readonly type: "integer";
|
|
158
|
+
readonly enum: readonly [1, 3, 4];
|
|
159
|
+
readonly title: "Channels";
|
|
160
|
+
readonly description: "1 (gray), 3 (RGB), or 4 (RGBA)";
|
|
161
|
+
};
|
|
162
|
+
};
|
|
163
|
+
readonly additionalProperties: false;
|
|
164
|
+
readonly required: readonly ["data", "width", "height", "channels"];
|
|
165
|
+
readonly format: "image:ImageBinary";
|
|
166
|
+
readonly title: "Image";
|
|
167
|
+
readonly description: "Raw pixel image data";
|
|
168
|
+
}, {
|
|
169
|
+
readonly type: "string";
|
|
170
|
+
readonly format: "image:data-uri";
|
|
171
|
+
readonly title: string;
|
|
172
|
+
readonly description: string;
|
|
173
|
+
}];
|
|
174
|
+
};
|
|
175
|
+
readonly radius: {
|
|
176
|
+
readonly type: "integer";
|
|
177
|
+
readonly title: "Radius";
|
|
178
|
+
readonly description: "Blur radius (1-10)";
|
|
179
|
+
readonly minimum: 1;
|
|
180
|
+
readonly maximum: 10;
|
|
181
|
+
readonly default: 1;
|
|
182
|
+
};
|
|
183
|
+
};
|
|
184
|
+
readonly required: readonly ["image"];
|
|
185
|
+
readonly additionalProperties: false;
|
|
186
|
+
};
|
|
187
|
+
static outputSchema(): {
|
|
188
|
+
readonly type: "object";
|
|
189
|
+
readonly properties: {
|
|
190
|
+
readonly image: {
|
|
191
|
+
readonly oneOf: readonly [{
|
|
192
|
+
readonly type: "object";
|
|
193
|
+
readonly properties: {
|
|
194
|
+
readonly data: {
|
|
195
|
+
readonly type: "array";
|
|
196
|
+
readonly items: {
|
|
197
|
+
readonly type: "number";
|
|
198
|
+
readonly format: "Uint8Clamped";
|
|
199
|
+
};
|
|
200
|
+
readonly format: "Uint8ClampedArray";
|
|
201
|
+
readonly title: "Data";
|
|
202
|
+
readonly description: "Pixel data of the image";
|
|
203
|
+
};
|
|
204
|
+
readonly width: {
|
|
205
|
+
readonly type: "integer";
|
|
206
|
+
readonly minimum: 1;
|
|
207
|
+
readonly title: "Width";
|
|
208
|
+
readonly description: "Width in pixels";
|
|
209
|
+
};
|
|
210
|
+
readonly height: {
|
|
211
|
+
readonly type: "integer";
|
|
212
|
+
readonly minimum: 1;
|
|
213
|
+
readonly title: "Height";
|
|
214
|
+
readonly description: "Height in pixels";
|
|
215
|
+
};
|
|
216
|
+
readonly channels: {
|
|
217
|
+
readonly type: "integer";
|
|
218
|
+
readonly enum: readonly [1, 3, 4];
|
|
219
|
+
readonly title: "Channels";
|
|
220
|
+
readonly description: "1 (gray), 3 (RGB), or 4 (RGBA)";
|
|
221
|
+
};
|
|
222
|
+
};
|
|
223
|
+
readonly additionalProperties: false;
|
|
224
|
+
readonly required: readonly ["data", "width", "height", "channels"];
|
|
225
|
+
readonly format: "image:ImageBinary";
|
|
226
|
+
readonly title: "Image";
|
|
227
|
+
readonly description: "Raw pixel image data";
|
|
228
|
+
}, {
|
|
229
|
+
readonly type: "string";
|
|
230
|
+
readonly format: "image:data-uri";
|
|
231
|
+
readonly title: string;
|
|
232
|
+
readonly description: string;
|
|
233
|
+
}];
|
|
206
234
|
};
|
|
207
235
|
};
|
|
208
236
|
readonly required: readonly ["image"];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ImageBlurTask.d.ts","sourceRoot":"","sources":["../../../src/task/image/ImageBlurTask.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EACL,cAAc,EACd,uBAAuB,EACvB,IAAI,EACJ,UAAU,EAEX,MAAM,sBAAsB,CAAC;AAE9B,OAAO,
|
|
1
|
+
{"version":3,"file":"ImageBlurTask.d.ts","sourceRoot":"","sources":["../../../src/task/image/ImageBlurTask.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EACL,cAAc,EACd,uBAAuB,EACvB,IAAI,EACJ,UAAU,EAEX,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EAA8B,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAG7E,QAAA,MAAM,WAAW;mBACT,QAAQ;;iBAEZ,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBACL,MAAM;qBACJ,IAAI,EAAE,SAAS;qBACf,KAAK,EAAE,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