@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
|
@@ -9,110 +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 opacity: {
|
|
50
|
-
readonly type: "number";
|
|
51
|
-
readonly title: "Opacity";
|
|
52
|
-
readonly description: "Opacity level (0.0 = fully transparent, 1.0 = fully opaque)";
|
|
53
|
-
readonly minimum: 0;
|
|
54
|
-
readonly maximum: 1;
|
|
55
|
-
};
|
|
56
|
-
};
|
|
57
|
-
readonly required: readonly ["image", "opacity"];
|
|
58
|
-
readonly additionalProperties: false;
|
|
59
|
-
};
|
|
60
|
-
declare const outputSchema: {
|
|
61
|
-
readonly type: "object";
|
|
62
|
-
readonly properties: {
|
|
63
|
-
readonly image: {
|
|
64
|
-
readonly type: "object";
|
|
65
|
-
readonly properties: {
|
|
66
|
-
readonly data: {
|
|
67
|
-
readonly type: "array";
|
|
68
|
-
readonly items: {
|
|
69
|
-
readonly type: "number";
|
|
70
|
-
readonly format: "Uint8Clamped";
|
|
71
|
-
};
|
|
72
|
-
readonly format: "Uint8ClampedArray";
|
|
73
|
-
readonly title: "Data";
|
|
74
|
-
readonly description: "Pixel data of the image";
|
|
75
|
-
};
|
|
76
|
-
readonly width: {
|
|
77
|
-
readonly type: "integer";
|
|
78
|
-
readonly minimum: 1;
|
|
79
|
-
readonly title: "Width";
|
|
80
|
-
readonly description: "Width in pixels";
|
|
81
|
-
};
|
|
82
|
-
readonly height: {
|
|
83
|
-
readonly type: "integer";
|
|
84
|
-
readonly minimum: 1;
|
|
85
|
-
readonly title: "Height";
|
|
86
|
-
readonly description: "Height in pixels";
|
|
87
|
-
};
|
|
88
|
-
readonly channels: {
|
|
89
|
-
readonly type: "integer";
|
|
90
|
-
readonly enum: readonly [1, 3, 4];
|
|
91
|
-
readonly title: "Channels";
|
|
92
|
-
readonly description: "1 (gray), 3 (RGB), or 4 (RGBA)";
|
|
93
|
-
};
|
|
94
|
-
};
|
|
95
|
-
readonly additionalProperties: false;
|
|
96
|
-
readonly required: readonly ["data", "width", "height", "channels"];
|
|
97
|
-
readonly format: "image:ImageBinary";
|
|
98
|
-
readonly title: "Image";
|
|
99
|
-
readonly description: "Raw pixel image data";
|
|
100
|
-
};
|
|
101
|
-
};
|
|
102
|
-
readonly required: readonly ["image"];
|
|
103
|
-
readonly additionalProperties: false;
|
|
104
|
-
};
|
|
105
|
-
export type ImageTransparencyTaskInput = ImageFromSchema<typeof inputSchema>;
|
|
106
|
-
export type ImageTransparencyTaskOutput = ImageFromSchema<typeof outputSchema>;
|
|
107
|
-
export declare class ImageTransparencyTask<Input extends ImageTransparencyTaskInput = ImageTransparencyTaskInput, Output extends ImageTransparencyTaskOutput = ImageTransparencyTaskOutput, Config extends TaskConfig = TaskConfig> extends Task<Input, Output, Config> {
|
|
108
|
-
static readonly type = "ImageTransparencyTask";
|
|
109
|
-
static readonly category = "Image";
|
|
110
|
-
static title: string;
|
|
111
|
-
static description: string;
|
|
112
|
-
static inputSchema(): {
|
|
113
|
-
readonly type: "object";
|
|
114
|
-
readonly properties: {
|
|
115
|
-
readonly image: {
|
|
12
|
+
readonly oneOf: readonly [{
|
|
116
13
|
readonly type: "object";
|
|
117
14
|
readonly properties: {
|
|
118
15
|
readonly data: {
|
|
@@ -149,22 +46,29 @@ export declare class ImageTransparencyTask<Input extends ImageTransparencyTaskIn
|
|
|
149
46
|
readonly format: "image:ImageBinary";
|
|
150
47
|
readonly title: "Image";
|
|
151
48
|
readonly description: "Raw pixel image data";
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
readonly
|
|
155
|
-
readonly title:
|
|
156
|
-
readonly description:
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
49
|
+
}, {
|
|
50
|
+
readonly type: "string";
|
|
51
|
+
readonly format: "image:data-uri";
|
|
52
|
+
readonly title: string;
|
|
53
|
+
readonly description: string;
|
|
54
|
+
}];
|
|
55
|
+
};
|
|
56
|
+
readonly opacity: {
|
|
57
|
+
readonly type: "number";
|
|
58
|
+
readonly title: "Opacity";
|
|
59
|
+
readonly description: "Opacity level (0.0 = fully transparent, 1.0 = fully opaque)";
|
|
60
|
+
readonly minimum: 0;
|
|
61
|
+
readonly maximum: 1;
|
|
160
62
|
};
|
|
161
|
-
readonly required: readonly ["image", "opacity"];
|
|
162
|
-
readonly additionalProperties: false;
|
|
163
63
|
};
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
64
|
+
readonly required: readonly ["image", "opacity"];
|
|
65
|
+
readonly additionalProperties: false;
|
|
66
|
+
};
|
|
67
|
+
declare const outputSchema: {
|
|
68
|
+
readonly type: "object";
|
|
69
|
+
readonly properties: {
|
|
70
|
+
readonly image: {
|
|
71
|
+
readonly oneOf: readonly [{
|
|
168
72
|
readonly type: "object";
|
|
169
73
|
readonly properties: {
|
|
170
74
|
readonly data: {
|
|
@@ -201,6 +105,130 @@ export declare class ImageTransparencyTask<Input extends ImageTransparencyTaskIn
|
|
|
201
105
|
readonly format: "image:ImageBinary";
|
|
202
106
|
readonly title: "Image";
|
|
203
107
|
readonly description: "Raw pixel image data";
|
|
108
|
+
}, {
|
|
109
|
+
readonly type: "string";
|
|
110
|
+
readonly format: "image:data-uri";
|
|
111
|
+
readonly title: string;
|
|
112
|
+
readonly description: string;
|
|
113
|
+
}];
|
|
114
|
+
};
|
|
115
|
+
};
|
|
116
|
+
readonly required: readonly ["image"];
|
|
117
|
+
readonly additionalProperties: false;
|
|
118
|
+
};
|
|
119
|
+
export type ImageTransparencyTaskInput = ImageFromSchema<typeof inputSchema>;
|
|
120
|
+
export type ImageTransparencyTaskOutput = ImageFromSchema<typeof outputSchema>;
|
|
121
|
+
export declare class ImageTransparencyTask<Input extends ImageTransparencyTaskInput = ImageTransparencyTaskInput, Output extends ImageTransparencyTaskOutput = ImageTransparencyTaskOutput, Config extends TaskConfig = TaskConfig> extends Task<Input, Output, Config> {
|
|
122
|
+
static readonly type = "ImageTransparencyTask";
|
|
123
|
+
static readonly category = "Image";
|
|
124
|
+
static title: string;
|
|
125
|
+
static description: string;
|
|
126
|
+
static inputSchema(): {
|
|
127
|
+
readonly type: "object";
|
|
128
|
+
readonly properties: {
|
|
129
|
+
readonly image: {
|
|
130
|
+
readonly oneOf: readonly [{
|
|
131
|
+
readonly type: "object";
|
|
132
|
+
readonly properties: {
|
|
133
|
+
readonly data: {
|
|
134
|
+
readonly type: "array";
|
|
135
|
+
readonly items: {
|
|
136
|
+
readonly type: "number";
|
|
137
|
+
readonly format: "Uint8Clamped";
|
|
138
|
+
};
|
|
139
|
+
readonly format: "Uint8ClampedArray";
|
|
140
|
+
readonly title: "Data";
|
|
141
|
+
readonly description: "Pixel data of the image";
|
|
142
|
+
};
|
|
143
|
+
readonly width: {
|
|
144
|
+
readonly type: "integer";
|
|
145
|
+
readonly minimum: 1;
|
|
146
|
+
readonly title: "Width";
|
|
147
|
+
readonly description: "Width in pixels";
|
|
148
|
+
};
|
|
149
|
+
readonly height: {
|
|
150
|
+
readonly type: "integer";
|
|
151
|
+
readonly minimum: 1;
|
|
152
|
+
readonly title: "Height";
|
|
153
|
+
readonly description: "Height in pixels";
|
|
154
|
+
};
|
|
155
|
+
readonly channels: {
|
|
156
|
+
readonly type: "integer";
|
|
157
|
+
readonly enum: readonly [1, 3, 4];
|
|
158
|
+
readonly title: "Channels";
|
|
159
|
+
readonly description: "1 (gray), 3 (RGB), or 4 (RGBA)";
|
|
160
|
+
};
|
|
161
|
+
};
|
|
162
|
+
readonly additionalProperties: false;
|
|
163
|
+
readonly required: readonly ["data", "width", "height", "channels"];
|
|
164
|
+
readonly format: "image:ImageBinary";
|
|
165
|
+
readonly title: "Image";
|
|
166
|
+
readonly description: "Raw pixel image data";
|
|
167
|
+
}, {
|
|
168
|
+
readonly type: "string";
|
|
169
|
+
readonly format: "image:data-uri";
|
|
170
|
+
readonly title: string;
|
|
171
|
+
readonly description: string;
|
|
172
|
+
}];
|
|
173
|
+
};
|
|
174
|
+
readonly opacity: {
|
|
175
|
+
readonly type: "number";
|
|
176
|
+
readonly title: "Opacity";
|
|
177
|
+
readonly description: "Opacity level (0.0 = fully transparent, 1.0 = fully opaque)";
|
|
178
|
+
readonly minimum: 0;
|
|
179
|
+
readonly maximum: 1;
|
|
180
|
+
};
|
|
181
|
+
};
|
|
182
|
+
readonly required: readonly ["image", "opacity"];
|
|
183
|
+
readonly additionalProperties: false;
|
|
184
|
+
};
|
|
185
|
+
static outputSchema(): {
|
|
186
|
+
readonly type: "object";
|
|
187
|
+
readonly properties: {
|
|
188
|
+
readonly image: {
|
|
189
|
+
readonly oneOf: readonly [{
|
|
190
|
+
readonly type: "object";
|
|
191
|
+
readonly properties: {
|
|
192
|
+
readonly data: {
|
|
193
|
+
readonly type: "array";
|
|
194
|
+
readonly items: {
|
|
195
|
+
readonly type: "number";
|
|
196
|
+
readonly format: "Uint8Clamped";
|
|
197
|
+
};
|
|
198
|
+
readonly format: "Uint8ClampedArray";
|
|
199
|
+
readonly title: "Data";
|
|
200
|
+
readonly description: "Pixel data of the image";
|
|
201
|
+
};
|
|
202
|
+
readonly width: {
|
|
203
|
+
readonly type: "integer";
|
|
204
|
+
readonly minimum: 1;
|
|
205
|
+
readonly title: "Width";
|
|
206
|
+
readonly description: "Width in pixels";
|
|
207
|
+
};
|
|
208
|
+
readonly height: {
|
|
209
|
+
readonly type: "integer";
|
|
210
|
+
readonly minimum: 1;
|
|
211
|
+
readonly title: "Height";
|
|
212
|
+
readonly description: "Height in pixels";
|
|
213
|
+
};
|
|
214
|
+
readonly channels: {
|
|
215
|
+
readonly type: "integer";
|
|
216
|
+
readonly enum: readonly [1, 3, 4];
|
|
217
|
+
readonly title: "Channels";
|
|
218
|
+
readonly description: "1 (gray), 3 (RGB), or 4 (RGBA)";
|
|
219
|
+
};
|
|
220
|
+
};
|
|
221
|
+
readonly additionalProperties: false;
|
|
222
|
+
readonly required: readonly ["data", "width", "height", "channels"];
|
|
223
|
+
readonly format: "image:ImageBinary";
|
|
224
|
+
readonly title: "Image";
|
|
225
|
+
readonly description: "Raw pixel image data";
|
|
226
|
+
}, {
|
|
227
|
+
readonly type: "string";
|
|
228
|
+
readonly format: "image:data-uri";
|
|
229
|
+
readonly title: string;
|
|
230
|
+
readonly description: string;
|
|
231
|
+
}];
|
|
204
232
|
};
|
|
205
233
|
};
|
|
206
234
|
readonly required: readonly ["image"];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ImageTransparencyTask.d.ts","sourceRoot":"","sources":["../../../src/task/image/ImageTransparencyTask.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":"ImageTransparencyTask.d.ts","sourceRoot":"","sources":["../../../src/task/image/ImageTransparencyTask.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,OAAO;qBACL,IAAI,EAAE,QAAQ;qBACd,KAAK,EAAE,SAAS;qBAChB,WAAW,EAAE,6DAA6D;qBAC1E,OAAO,EAAE,CAAC;qBACV,OAAO,EAAE,CAAC;;;;;CAKmB,CAAC;AAEpC,QAAA,MAAM,YAAY;mBACV,QAAQ;;iBAEZ,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAO0B,CAAC;AAEpC,MAAM,MAAM,0BAA0B,GAAG,eAAe,CAAC,OAAO,WAAW,CAAC,CAAC;AAC7E,MAAM,MAAM,2BAA2B,GAAG,eAAe,CAAC,OAAO,YAAY,CAAC,CAAC;AAE/E,qBAAa,qBAAqB,CAChC,KAAK,SAAS,0BAA0B,GAAG,0BAA0B,EACrE,MAAM,SAAS,2BAA2B,GAAG,2BAA2B,EACxE,MAAM,SAAS,UAAU,GAAG,UAAU,CACtC,SAAQ,IAAI,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,CAAC;IACnC,gBAAyB,IAAI,2BAA2B;IACxD,gBAAyB,QAAQ,WAAW;IAC5C,OAAuB,KAAK,SAAsB;IAClD,OAAuB,WAAW,SAAqC;IAEvE,OAAgB,WAAW;uBAxCrB,QAAQ;;qBAEZ,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBACL,OAAO;yBACL,IAAI,EAAE,QAAQ;yBACd,KAAK,EAAE,SAAS;yBAChB,WAAW,EAAE,6DAA6D;yBAC1E,OAAO,EAAE,CAAC;yBACV,OAAO,EAAE,CAAC;;;;;MAkCb;IAED,OAAgB,YAAY;uBA5BtB,QAAQ;;qBAEZ,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MA4BN;IAEc,eAAe,CAC5B,KAAK,EAAE,KAAK,EACZ,OAAO,EAAE,MAAM,EACf,QAAQ,EAAE,uBAAuB,GAChC,OAAO,CAAC,MAAM,CAAC,CAqBjB;CACF;AAED,OAAO,QAAQ,sBAAsB,CAAC,CAAC;IACrC,UAAU,QAAQ;QAChB,iBAAiB,EAAE,cAAc,CAC/B,0BAA0B,EAC1B,2BAA2B,EAC3B,UAAU,CACX,CAAC;KACH;CACF"}
|
|
@@ -9,42 +9,49 @@ declare const inputSchema: {
|
|
|
9
9
|
readonly type: "object";
|
|
10
10
|
readonly properties: {
|
|
11
11
|
readonly image: {
|
|
12
|
-
readonly
|
|
13
|
-
|
|
14
|
-
readonly
|
|
15
|
-
readonly
|
|
16
|
-
|
|
17
|
-
readonly
|
|
18
|
-
|
|
12
|
+
readonly oneOf: readonly [{
|
|
13
|
+
readonly type: "object";
|
|
14
|
+
readonly properties: {
|
|
15
|
+
readonly data: {
|
|
16
|
+
readonly type: "array";
|
|
17
|
+
readonly items: {
|
|
18
|
+
readonly type: "number";
|
|
19
|
+
readonly format: "Uint8Clamped";
|
|
20
|
+
};
|
|
21
|
+
readonly format: "Uint8ClampedArray";
|
|
22
|
+
readonly title: "Data";
|
|
23
|
+
readonly description: "Pixel data of the image";
|
|
24
|
+
};
|
|
25
|
+
readonly width: {
|
|
26
|
+
readonly type: "integer";
|
|
27
|
+
readonly minimum: 1;
|
|
28
|
+
readonly title: "Width";
|
|
29
|
+
readonly description: "Width in pixels";
|
|
30
|
+
};
|
|
31
|
+
readonly height: {
|
|
32
|
+
readonly type: "integer";
|
|
33
|
+
readonly minimum: 1;
|
|
34
|
+
readonly title: "Height";
|
|
35
|
+
readonly description: "Height in pixels";
|
|
36
|
+
};
|
|
37
|
+
readonly channels: {
|
|
38
|
+
readonly type: "integer";
|
|
39
|
+
readonly enum: readonly [1, 3, 4];
|
|
40
|
+
readonly title: "Channels";
|
|
41
|
+
readonly description: "1 (gray), 3 (RGB), or 4 (RGBA)";
|
|
19
42
|
};
|
|
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
43
|
};
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
44
|
+
readonly additionalProperties: false;
|
|
45
|
+
readonly required: readonly ["data", "width", "height", "channels"];
|
|
46
|
+
readonly format: "image:ImageBinary";
|
|
47
|
+
readonly title: "Image";
|
|
48
|
+
readonly description: "Raw pixel image data";
|
|
49
|
+
}, {
|
|
50
|
+
readonly type: "string";
|
|
51
|
+
readonly format: "image:data-uri";
|
|
52
|
+
readonly title: string;
|
|
53
|
+
readonly description: string;
|
|
54
|
+
}];
|
|
48
55
|
};
|
|
49
56
|
readonly spacing: {
|
|
50
57
|
readonly type: "integer";
|
|
@@ -76,58 +83,7 @@ declare const outputSchema: {
|
|
|
76
83
|
readonly type: "object";
|
|
77
84
|
readonly properties: {
|
|
78
85
|
readonly image: {
|
|
79
|
-
readonly
|
|
80
|
-
readonly properties: {
|
|
81
|
-
readonly data: {
|
|
82
|
-
readonly type: "array";
|
|
83
|
-
readonly items: {
|
|
84
|
-
readonly type: "number";
|
|
85
|
-
readonly format: "Uint8Clamped";
|
|
86
|
-
};
|
|
87
|
-
readonly format: "Uint8ClampedArray";
|
|
88
|
-
readonly title: "Data";
|
|
89
|
-
readonly description: "Pixel data of the image";
|
|
90
|
-
};
|
|
91
|
-
readonly width: {
|
|
92
|
-
readonly type: "integer";
|
|
93
|
-
readonly minimum: 1;
|
|
94
|
-
readonly title: "Width";
|
|
95
|
-
readonly description: "Width in pixels";
|
|
96
|
-
};
|
|
97
|
-
readonly height: {
|
|
98
|
-
readonly type: "integer";
|
|
99
|
-
readonly minimum: 1;
|
|
100
|
-
readonly title: "Height";
|
|
101
|
-
readonly description: "Height in pixels";
|
|
102
|
-
};
|
|
103
|
-
readonly channels: {
|
|
104
|
-
readonly type: "integer";
|
|
105
|
-
readonly enum: readonly [1, 3, 4];
|
|
106
|
-
readonly title: "Channels";
|
|
107
|
-
readonly description: "1 (gray), 3 (RGB), or 4 (RGBA)";
|
|
108
|
-
};
|
|
109
|
-
};
|
|
110
|
-
readonly additionalProperties: false;
|
|
111
|
-
readonly required: readonly ["data", "width", "height", "channels"];
|
|
112
|
-
readonly format: "image:ImageBinary";
|
|
113
|
-
readonly title: "Image";
|
|
114
|
-
readonly description: "Raw pixel image data";
|
|
115
|
-
};
|
|
116
|
-
};
|
|
117
|
-
readonly required: readonly ["image"];
|
|
118
|
-
readonly additionalProperties: false;
|
|
119
|
-
};
|
|
120
|
-
export type ImageWatermarkTaskInput = ImageFromSchema<typeof inputSchema>;
|
|
121
|
-
export type ImageWatermarkTaskOutput = ImageFromSchema<typeof outputSchema>;
|
|
122
|
-
export declare class ImageWatermarkTask<Input extends ImageWatermarkTaskInput = ImageWatermarkTaskInput, Output extends ImageWatermarkTaskOutput = ImageWatermarkTaskOutput, Config extends TaskConfig = TaskConfig> extends Task<Input, Output, Config> {
|
|
123
|
-
static readonly type = "ImageWatermarkTask";
|
|
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: {
|
|
86
|
+
readonly oneOf: readonly [{
|
|
131
87
|
readonly type: "object";
|
|
132
88
|
readonly properties: {
|
|
133
89
|
readonly data: {
|
|
@@ -164,6 +120,71 @@ export declare class ImageWatermarkTask<Input extends ImageWatermarkTaskInput =
|
|
|
164
120
|
readonly format: "image:ImageBinary";
|
|
165
121
|
readonly title: "Image";
|
|
166
122
|
readonly description: "Raw pixel image data";
|
|
123
|
+
}, {
|
|
124
|
+
readonly type: "string";
|
|
125
|
+
readonly format: "image:data-uri";
|
|
126
|
+
readonly title: string;
|
|
127
|
+
readonly description: string;
|
|
128
|
+
}];
|
|
129
|
+
};
|
|
130
|
+
};
|
|
131
|
+
readonly required: readonly ["image"];
|
|
132
|
+
readonly additionalProperties: false;
|
|
133
|
+
};
|
|
134
|
+
export type ImageWatermarkTaskInput = ImageFromSchema<typeof inputSchema>;
|
|
135
|
+
export type ImageWatermarkTaskOutput = ImageFromSchema<typeof outputSchema>;
|
|
136
|
+
export declare class ImageWatermarkTask<Input extends ImageWatermarkTaskInput = ImageWatermarkTaskInput, Output extends ImageWatermarkTaskOutput = ImageWatermarkTaskOutput, Config extends TaskConfig = TaskConfig> extends Task<Input, Output, Config> {
|
|
137
|
+
static readonly type = "ImageWatermarkTask";
|
|
138
|
+
static readonly category = "Image";
|
|
139
|
+
static title: string;
|
|
140
|
+
static description: string;
|
|
141
|
+
static inputSchema(): {
|
|
142
|
+
readonly type: "object";
|
|
143
|
+
readonly properties: {
|
|
144
|
+
readonly image: {
|
|
145
|
+
readonly oneOf: readonly [{
|
|
146
|
+
readonly type: "object";
|
|
147
|
+
readonly properties: {
|
|
148
|
+
readonly data: {
|
|
149
|
+
readonly type: "array";
|
|
150
|
+
readonly items: {
|
|
151
|
+
readonly type: "number";
|
|
152
|
+
readonly format: "Uint8Clamped";
|
|
153
|
+
};
|
|
154
|
+
readonly format: "Uint8ClampedArray";
|
|
155
|
+
readonly title: "Data";
|
|
156
|
+
readonly description: "Pixel data of the image";
|
|
157
|
+
};
|
|
158
|
+
readonly width: {
|
|
159
|
+
readonly type: "integer";
|
|
160
|
+
readonly minimum: 1;
|
|
161
|
+
readonly title: "Width";
|
|
162
|
+
readonly description: "Width in pixels";
|
|
163
|
+
};
|
|
164
|
+
readonly height: {
|
|
165
|
+
readonly type: "integer";
|
|
166
|
+
readonly minimum: 1;
|
|
167
|
+
readonly title: "Height";
|
|
168
|
+
readonly description: "Height in pixels";
|
|
169
|
+
};
|
|
170
|
+
readonly channels: {
|
|
171
|
+
readonly type: "integer";
|
|
172
|
+
readonly enum: readonly [1, 3, 4];
|
|
173
|
+
readonly title: "Channels";
|
|
174
|
+
readonly description: "1 (gray), 3 (RGB), or 4 (RGBA)";
|
|
175
|
+
};
|
|
176
|
+
};
|
|
177
|
+
readonly additionalProperties: false;
|
|
178
|
+
readonly required: readonly ["data", "width", "height", "channels"];
|
|
179
|
+
readonly format: "image:ImageBinary";
|
|
180
|
+
readonly title: "Image";
|
|
181
|
+
readonly description: "Raw pixel image data";
|
|
182
|
+
}, {
|
|
183
|
+
readonly type: "string";
|
|
184
|
+
readonly format: "image:data-uri";
|
|
185
|
+
readonly title: string;
|
|
186
|
+
readonly description: string;
|
|
187
|
+
}];
|
|
167
188
|
};
|
|
168
189
|
readonly spacing: {
|
|
169
190
|
readonly type: "integer";
|
|
@@ -195,42 +216,49 @@ export declare class ImageWatermarkTask<Input extends ImageWatermarkTaskInput =
|
|
|
195
216
|
readonly type: "object";
|
|
196
217
|
readonly properties: {
|
|
197
218
|
readonly image: {
|
|
198
|
-
readonly
|
|
199
|
-
|
|
200
|
-
readonly
|
|
201
|
-
readonly
|
|
202
|
-
|
|
203
|
-
readonly
|
|
204
|
-
|
|
219
|
+
readonly oneOf: readonly [{
|
|
220
|
+
readonly type: "object";
|
|
221
|
+
readonly properties: {
|
|
222
|
+
readonly data: {
|
|
223
|
+
readonly type: "array";
|
|
224
|
+
readonly items: {
|
|
225
|
+
readonly type: "number";
|
|
226
|
+
readonly format: "Uint8Clamped";
|
|
227
|
+
};
|
|
228
|
+
readonly format: "Uint8ClampedArray";
|
|
229
|
+
readonly title: "Data";
|
|
230
|
+
readonly description: "Pixel data of the image";
|
|
231
|
+
};
|
|
232
|
+
readonly width: {
|
|
233
|
+
readonly type: "integer";
|
|
234
|
+
readonly minimum: 1;
|
|
235
|
+
readonly title: "Width";
|
|
236
|
+
readonly description: "Width in pixels";
|
|
237
|
+
};
|
|
238
|
+
readonly height: {
|
|
239
|
+
readonly type: "integer";
|
|
240
|
+
readonly minimum: 1;
|
|
241
|
+
readonly title: "Height";
|
|
242
|
+
readonly description: "Height in pixels";
|
|
243
|
+
};
|
|
244
|
+
readonly channels: {
|
|
245
|
+
readonly type: "integer";
|
|
246
|
+
readonly enum: readonly [1, 3, 4];
|
|
247
|
+
readonly title: "Channels";
|
|
248
|
+
readonly description: "1 (gray), 3 (RGB), or 4 (RGBA)";
|
|
205
249
|
};
|
|
206
|
-
readonly format: "Uint8ClampedArray";
|
|
207
|
-
readonly title: "Data";
|
|
208
|
-
readonly description: "Pixel data of the image";
|
|
209
|
-
};
|
|
210
|
-
readonly width: {
|
|
211
|
-
readonly type: "integer";
|
|
212
|
-
readonly minimum: 1;
|
|
213
|
-
readonly title: "Width";
|
|
214
|
-
readonly description: "Width in pixels";
|
|
215
|
-
};
|
|
216
|
-
readonly height: {
|
|
217
|
-
readonly type: "integer";
|
|
218
|
-
readonly minimum: 1;
|
|
219
|
-
readonly title: "Height";
|
|
220
|
-
readonly description: "Height in pixels";
|
|
221
|
-
};
|
|
222
|
-
readonly channels: {
|
|
223
|
-
readonly type: "integer";
|
|
224
|
-
readonly enum: readonly [1, 3, 4];
|
|
225
|
-
readonly title: "Channels";
|
|
226
|
-
readonly description: "1 (gray), 3 (RGB), or 4 (RGBA)";
|
|
227
250
|
};
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
251
|
+
readonly additionalProperties: false;
|
|
252
|
+
readonly required: readonly ["data", "width", "height", "channels"];
|
|
253
|
+
readonly format: "image:ImageBinary";
|
|
254
|
+
readonly title: "Image";
|
|
255
|
+
readonly description: "Raw pixel image data";
|
|
256
|
+
}, {
|
|
257
|
+
readonly type: "string";
|
|
258
|
+
readonly format: "image:data-uri";
|
|
259
|
+
readonly title: string;
|
|
260
|
+
readonly description: string;
|
|
261
|
+
}];
|
|
234
262
|
};
|
|
235
263
|
};
|
|
236
264
|
readonly required: readonly ["image"];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ImageWatermarkTask.d.ts","sourceRoot":"","sources":["../../../src/task/image/ImageWatermarkTask.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EACL,cAAc,EACd,uBAAuB,EACvB,IAAI,EACJ,UAAU,EAEX,MAAM,sBA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