@keystrokehq/shortpixel 0.1.0 → 0.1.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/action.cjs.map +1 -1
- package/dist/action.mjs.map +1 -1
- package/dist/actions/add-cdn-domain.cjs +3 -3
- package/dist/actions/add-cdn-domain.cjs.map +1 -1
- package/dist/actions/add-cdn-domain.d.cts +10 -3
- package/dist/actions/add-cdn-domain.d.cts.map +1 -1
- package/dist/actions/add-cdn-domain.d.mts +10 -3
- package/dist/actions/add-cdn-domain.d.mts.map +1 -1
- package/dist/actions/add-cdn-domain.mjs +3 -3
- package/dist/actions/add-cdn-domain.mjs.map +1 -1
- package/dist/actions/bulk-purge-storage.cjs +3 -3
- package/dist/actions/bulk-purge-storage.cjs.map +1 -1
- package/dist/actions/bulk-purge-storage.d.cts +10 -3
- package/dist/actions/bulk-purge-storage.d.cts.map +1 -1
- package/dist/actions/bulk-purge-storage.d.mts +10 -3
- package/dist/actions/bulk-purge-storage.d.mts.map +1 -1
- package/dist/actions/bulk-purge-storage.mjs +3 -3
- package/dist/actions/bulk-purge-storage.mjs.map +1 -1
- package/dist/actions/check-image-status.cjs +3 -3
- package/dist/actions/check-image-status.cjs.map +1 -1
- package/dist/actions/check-image-status.d.cts +28 -3
- package/dist/actions/check-image-status.d.cts.map +1 -1
- package/dist/actions/check-image-status.d.mts +28 -3
- package/dist/actions/check-image-status.d.mts.map +1 -1
- package/dist/actions/check-image-status.mjs +3 -3
- package/dist/actions/check-image-status.mjs.map +1 -1
- package/dist/actions/clean-up-image.cjs +4 -4
- package/dist/actions/clean-up-image.cjs.map +1 -1
- package/dist/actions/clean-up-image.d.cts +12 -3
- package/dist/actions/clean-up-image.d.cts.map +1 -1
- package/dist/actions/clean-up-image.d.mts +12 -3
- package/dist/actions/clean-up-image.d.mts.map +1 -1
- package/dist/actions/clean-up-image.mjs +4 -4
- package/dist/actions/clean-up-image.mjs.map +1 -1
- package/dist/actions/get-adaptive-image-cdn.cjs +5 -5
- package/dist/actions/get-adaptive-image-cdn.cjs.map +1 -1
- package/dist/actions/get-adaptive-image-cdn.d.cts +51 -3
- package/dist/actions/get-adaptive-image-cdn.d.cts.map +1 -1
- package/dist/actions/get-adaptive-image-cdn.d.mts +51 -3
- package/dist/actions/get-adaptive-image-cdn.d.mts.map +1 -1
- package/dist/actions/get-adaptive-image-cdn.mjs +5 -5
- package/dist/actions/get-adaptive-image-cdn.mjs.map +1 -1
- package/dist/actions/get-api-status.cjs +11 -11
- package/dist/actions/get-api-status.cjs.map +1 -1
- package/dist/actions/get-api-status.d.cts +16 -3
- package/dist/actions/get-api-status.d.cts.map +1 -1
- package/dist/actions/get-api-status.d.mts +16 -3
- package/dist/actions/get-api-status.d.mts.map +1 -1
- package/dist/actions/get-api-status.mjs +11 -11
- package/dist/actions/get-api-status.mjs.map +1 -1
- package/dist/actions/get-cdn-usage.cjs +3 -3
- package/dist/actions/get-cdn-usage.cjs.map +1 -1
- package/dist/actions/get-cdn-usage.d.cts +23 -3
- package/dist/actions/get-cdn-usage.d.cts.map +1 -1
- package/dist/actions/get-cdn-usage.d.mts +23 -3
- package/dist/actions/get-cdn-usage.d.mts.map +1 -1
- package/dist/actions/get-cdn-usage.mjs +3 -3
- package/dist/actions/get-cdn-usage.mjs.map +1 -1
- package/dist/actions/optimize-images-by-url.cjs +6 -6
- package/dist/actions/optimize-images-by-url.cjs.map +1 -1
- package/dist/actions/optimize-images-by-url.d.cts +71 -3
- package/dist/actions/optimize-images-by-url.d.cts.map +1 -1
- package/dist/actions/optimize-images-by-url.d.mts +71 -3
- package/dist/actions/optimize-images-by-url.d.mts.map +1 -1
- package/dist/actions/optimize-images-by-url.mjs +6 -6
- package/dist/actions/optimize-images-by-url.mjs.map +1 -1
- package/dist/actions/read-cdn-domain.cjs +1 -1
- package/dist/actions/read-cdn-domain.cjs.map +1 -1
- package/dist/actions/read-cdn-domain.d.cts +9 -3
- package/dist/actions/read-cdn-domain.d.cts.map +1 -1
- package/dist/actions/read-cdn-domain.d.mts +9 -3
- package/dist/actions/read-cdn-domain.d.mts.map +1 -1
- package/dist/actions/read-cdn-domain.mjs +1 -1
- package/dist/actions/read-cdn-domain.mjs.map +1 -1
- package/dist/actions/revoke-cdn-domain.cjs +3 -3
- package/dist/actions/revoke-cdn-domain.cjs.map +1 -1
- package/dist/actions/revoke-cdn-domain.d.cts +10 -3
- package/dist/actions/revoke-cdn-domain.d.cts.map +1 -1
- package/dist/actions/revoke-cdn-domain.d.mts +10 -3
- package/dist/actions/revoke-cdn-domain.d.mts.map +1 -1
- package/dist/actions/revoke-cdn-domain.mjs +3 -3
- package/dist/actions/revoke-cdn-domain.mjs.map +1 -1
- package/dist/actions/set-cdn-domain.cjs +3 -3
- package/dist/actions/set-cdn-domain.cjs.map +1 -1
- package/dist/actions/set-cdn-domain.d.cts +10 -3
- package/dist/actions/set-cdn-domain.d.cts.map +1 -1
- package/dist/actions/set-cdn-domain.d.mts +10 -3
- package/dist/actions/set-cdn-domain.d.mts.map +1 -1
- package/dist/actions/set-cdn-domain.mjs +3 -3
- package/dist/actions/set-cdn-domain.mjs.map +1 -1
- package/dist/actions/upload-and-optimize-images.cjs +5 -5
- package/dist/actions/upload-and-optimize-images.cjs.map +1 -1
- package/dist/actions/upload-and-optimize-images.d.cts +45 -3
- package/dist/actions/upload-and-optimize-images.d.cts.map +1 -1
- package/dist/actions/upload-and-optimize-images.d.mts +45 -3
- package/dist/actions/upload-and-optimize-images.d.mts.map +1 -1
- package/dist/actions/upload-and-optimize-images.mjs +5 -5
- package/dist/actions/upload-and-optimize-images.mjs.map +1 -1
- package/dist/catalog.cjs +7 -1
- package/dist/catalog.cjs.map +1 -1
- package/dist/catalog.d.cts +8 -0
- package/dist/catalog.d.mts +8 -0
- package/dist/catalog.mjs +7 -1
- package/dist/catalog.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"optimize-images-by-url.cjs","names":["z","action"],"sources":["../../src/actions/optimize-images-by-url.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ShortpixelOptimizeImagesByUrlInput
|
|
1
|
+
{"version":3,"file":"optimize-images-by-url.cjs","names":["z","action"],"sources":["../../src/actions/optimize-images-by-url.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ShortpixelOptimizeImagesByUrlInput = z.object({\n wait: z.number().int().describe(\"Wait time in seconds (0-30) for optimization before returning. Use 0 to return immediately with scheduled status. Higher values wait for completion.\").optional(),\n lossy: z.enum([\"lossless\", \"lossy\", \"glossy\"]).describe(\"Image compression type.\").optional(),\n resize: z.enum([\"none\", \"outer\", \"inner\", \"smart_crop_ai\"]).describe(\"Image resize type.\").optional(),\n refresh: z.number().int().describe(\"Re-fetch and re-optimize image from source URL: 0 to use cached version, 1 to force fresh optimization\").optional(),\n upscale: z.enum([\"none\", \"2x\", \"3x\", \"4x\"]).describe(\"Image upscaling factor.\").optional(),\n urllist: z.array(z.string()).describe(\"Array of image URLs to optimize. Images must be accessible online. Maximum 100 URLs per request.\"),\n cmyk2rgb: z.number().int().describe(\"Convert CMYK color space to RGB: 0 to skip conversion, 1 to convert (default is 1)\").optional(),\n bg_remove: z.string().describe(\"Background removal options: '1' for transparent background, URL for custom background image, '#rrggbbxx' for color with transparency (xx is alpha in hex)\").optional(),\n convertto: z.string().describe(\"Format conversion options: '+webp' (add WebP version), '+avif' (add AVIF version), '+webp|+avif' (add both), 'webp|avif' (replace with first available), 'jpg', 'png', 'gif' (convert to format)\").optional(),\n keep_exif: z.number().int().describe(\"Preserve EXIF metadata in optimized images: 0 to remove (default), 1 to keep\").optional(),\n paramlist: z.array(z.record(z.string(), z.unknown())).describe(\"Array of custom optimization parameters for each URL, allowing per-image settings. Must match urllist length if provided.\").optional(),\n resize_width: z.number().int().describe(\"Target width in pixels for resizing. Required if resize is specified.\").optional(),\n resize_height: z.number().int().describe(\"Target height in pixels for resizing. Required if resize is specified.\").optional(),\n plugin_version: z.string().describe(\"5-character max alphanumeric code identifying your API client\").optional(),\n returndatalist: z.array(z.union([z.string(), z.number().int(), z.number(), z.boolean(), z.record(z.string(), z.unknown())])).describe(\"Any array to be returned unchanged in the API response for tracking purposes\").optional(),\n}).describe(\"Request model for optimizing images by URL with ShortPixel.\");\nconst ShortpixelOptimizeImagesByUrl_OptimizationStatusSchema = z.object({\n Code: z.number().int().describe(\"Status code: 1 = scheduled for optimization, 2 = ready/completed, negative values indicate errors\").nullable(),\n Message: z.string().describe(\"Human-readable status message describing the optimization result\").nullable(),\n}).passthrough().describe(\"Status information for an optimized image.\");\nconst ShortpixelOptimizeImagesByUrl_OptimizedImageSchema = z.object({\n Status: ShortpixelOptimizeImagesByUrl_OptimizationStatusSchema.nullable(),\n LossyURL: z.string().describe(\"URL of the lossy compressed version\").nullable().optional(),\n LossySize: z.number().int().describe(\"Size of lossy compressed image in bytes\").nullable().optional(),\n Timestamp: z.string().describe(\"Timestamp of when the optimization was processed\").nullable().optional(),\n LosslessURL: z.string().describe(\"URL of the lossless compressed version\").nullable().optional(),\n OriginalURL: z.string().describe(\"URL of the original source image\").nullable().optional(),\n AVIFLossyURL: z.string().describe(\"URL of the AVIF lossy version\").nullable().optional(),\n LoselessSize: z.number().int().describe(\"Size of lossless compressed image in bytes\").nullable().optional(),\n OriginalSize: z.number().int().describe(\"Size of original image in bytes\").nullable().optional(),\n WebPLossyURL: z.string().describe(\"URL of the WebP lossy version\").nullable().optional(),\n WebPLossySize: z.union([z.number().int(), z.string()]).nullable().optional(),\n AVIFPLossySize: z.union([z.number().int(), z.string()]).nullable().optional(),\n AVIFLosslessURL: z.string().describe(\"URL of the AVIF lossless version\").nullable().optional(),\n WebPLosslessURL: z.string().describe(\"URL of the WebP lossless version\").nullable().optional(),\n AVIFLoselessSize: z.union([z.number().int(), z.string()]).nullable().optional(),\n WebPLoselessSize: z.union([z.number().int(), z.string()]).nullable().optional(),\n}).passthrough().describe(\"Response data for a single optimized image.\");\nexport const ShortpixelOptimizeImagesByUrlOutput = z.object({\n results: z.array(ShortpixelOptimizeImagesByUrl_OptimizedImageSchema).describe(\"Array of optimization results, one per input URL in the same order as the request\"),\n}).passthrough().describe(\"Response model for batch image optimization by URL.\");\n\nexport const shortpixelOptimizeImagesByUrl = action(\"SHORTPIXEL_OPTIMIZE_IMAGES_BY_URL\", {\n slug: \"shortpixel-optimize-images-by-url\",\n name: \"Optimize Images by URL\",\n description: \"Tool to optimize images by providing their URLs. Supports batch processing of up to 100 URLs per request with options for lossy, glossy, or lossless compression, resizing, format conversion (WebP/AVIF), and background removal. Use when you need to compress and optimize images accessible online.\",\n input: ShortpixelOptimizeImagesByUrlInput,\n output: ShortpixelOptimizeImagesByUrlOutput,\n});\n"],"mappings":";;;AAIA,MAAa,qCAAqCA,IAAAA,EAAE,OAAO;CACzD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sJAAsJ,CAAC,CAAC,SAAS;CACjM,OAAOA,IAAAA,EAAE,KAAK;EAAC;EAAY;EAAS;CAAQ,CAAC,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;CAC5F,QAAQA,IAAAA,EAAE,KAAK;EAAC;EAAQ;EAAS;EAAS;CAAe,CAAC,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS;CACpG,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wGAAwG,CAAC,CAAC,SAAS;CACtJ,SAASA,IAAAA,EAAE,KAAK;EAAC;EAAQ;EAAM;EAAM;CAAI,CAAC,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;CACzF,SAASA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,kGAAkG;CACxI,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oFAAoF,CAAC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E,gBAAgBA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,GAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5E,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7F,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7F,kBAAkBA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,GAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9E,kBAAkBA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,GAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAChF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6CAA6C;AACvE,MAAa,sCAAsCA,IAAAA,EAAE,OAAO,EAC1D,SAASA,IAAAA,EAAE,MAAM,kDAAkD,CAAC,CAAC,SAAS,mFAAmF,EACnK,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qDAAqD;AAE/E,MAAa,gCAAgCC,eAAAA,OAAO,qCAAqC;CACvF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,77 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/optimize-images-by-url.d.ts
|
|
4
|
-
declare const ShortpixelOptimizeImagesByUrlInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const ShortpixelOptimizeImagesByUrlInput: z.ZodObject<{
|
|
5
|
+
wait: z.ZodOptional<z.ZodNumber>;
|
|
6
|
+
lossy: z.ZodOptional<z.ZodEnum<{
|
|
7
|
+
lossless: "lossless";
|
|
8
|
+
glossy: "glossy";
|
|
9
|
+
lossy: "lossy";
|
|
10
|
+
}>>;
|
|
11
|
+
resize: z.ZodOptional<z.ZodEnum<{
|
|
12
|
+
none: "none";
|
|
13
|
+
outer: "outer";
|
|
14
|
+
inner: "inner";
|
|
15
|
+
smart_crop_ai: "smart_crop_ai";
|
|
16
|
+
}>>;
|
|
17
|
+
refresh: z.ZodOptional<z.ZodNumber>;
|
|
18
|
+
upscale: z.ZodOptional<z.ZodEnum<{
|
|
19
|
+
none: "none";
|
|
20
|
+
"2x": "2x";
|
|
21
|
+
"3x": "3x";
|
|
22
|
+
"4x": "4x";
|
|
23
|
+
}>>;
|
|
24
|
+
urllist: z.ZodArray<z.ZodString>;
|
|
25
|
+
cmyk2rgb: z.ZodOptional<z.ZodNumber>;
|
|
26
|
+
bg_remove: z.ZodOptional<z.ZodString>;
|
|
27
|
+
convertto: z.ZodOptional<z.ZodString>;
|
|
28
|
+
keep_exif: z.ZodOptional<z.ZodNumber>;
|
|
29
|
+
paramlist: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
30
|
+
resize_width: z.ZodOptional<z.ZodNumber>;
|
|
31
|
+
resize_height: z.ZodOptional<z.ZodNumber>;
|
|
32
|
+
plugin_version: z.ZodOptional<z.ZodString>;
|
|
33
|
+
returndatalist: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodNumber, z.ZodBoolean, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>>;
|
|
34
|
+
}, z.core.$strip>;
|
|
35
|
+
declare const ShortpixelOptimizeImagesByUrlOutput: z.ZodObject<{
|
|
36
|
+
results: z.ZodArray<z.ZodObject<{
|
|
37
|
+
Status: z.ZodNullable<z.ZodObject<{
|
|
38
|
+
Code: z.ZodNullable<z.ZodNumber>;
|
|
39
|
+
Message: z.ZodNullable<z.ZodString>;
|
|
40
|
+
}, z.core.$loose>>;
|
|
41
|
+
LossyURL: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
42
|
+
LossySize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
43
|
+
Timestamp: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
44
|
+
LosslessURL: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
45
|
+
OriginalURL: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
46
|
+
AVIFLossyURL: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
47
|
+
LoselessSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
48
|
+
OriginalSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
49
|
+
WebPLossyURL: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
50
|
+
WebPLossySize: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
|
|
51
|
+
AVIFPLossySize: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
|
|
52
|
+
AVIFLosslessURL: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
53
|
+
WebPLosslessURL: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
54
|
+
AVIFLoselessSize: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
|
|
55
|
+
WebPLoselessSize: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
|
|
56
|
+
}, z.core.$loose>>;
|
|
57
|
+
}, z.core.$loose>;
|
|
58
|
+
declare const shortpixelOptimizeImagesByUrl: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
59
|
+
urllist: string[];
|
|
60
|
+
wait?: number | undefined;
|
|
61
|
+
lossy?: "lossless" | "glossy" | "lossy" | undefined;
|
|
62
|
+
resize?: "none" | "outer" | "inner" | "smart_crop_ai" | undefined;
|
|
63
|
+
refresh?: number | undefined;
|
|
64
|
+
upscale?: "none" | "2x" | "3x" | "4x" | undefined;
|
|
65
|
+
cmyk2rgb?: number | undefined;
|
|
66
|
+
bg_remove?: string | undefined;
|
|
67
|
+
convertto?: string | undefined;
|
|
68
|
+
keep_exif?: number | undefined;
|
|
69
|
+
paramlist?: Record<string, unknown>[] | undefined;
|
|
70
|
+
resize_width?: number | undefined;
|
|
71
|
+
resize_height?: number | undefined;
|
|
72
|
+
plugin_version?: string | undefined;
|
|
73
|
+
returndatalist?: (string | number | boolean | Record<string, unknown>)[] | undefined;
|
|
74
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
75
|
//#endregion
|
|
8
76
|
export { shortpixelOptimizeImagesByUrl };
|
|
9
77
|
//# sourceMappingURL=optimize-images-by-url.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"optimize-images-by-url.d.cts","names":[],"sources":["../../src/actions/optimize-images-by-url.ts"],"mappings":";;;cAIa,kCAAA,
|
|
1
|
+
{"version":3,"file":"optimize-images-by-url.d.cts","names":[],"sources":["../../src/actions/optimize-images-by-url.ts"],"mappings":";;;cAIa,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAuClC,mCAAA,EAAmC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;cAInC,6BAAA,gCAA6B,wBAAA;;;;;;;;;;;cAMxC,MAAA;;;;gDAAA,MAAA;AAAA"}
|
|
@@ -1,9 +1,77 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/optimize-images-by-url.d.ts
|
|
4
|
-
declare const ShortpixelOptimizeImagesByUrlInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const ShortpixelOptimizeImagesByUrlInput: z.ZodObject<{
|
|
5
|
+
wait: z.ZodOptional<z.ZodNumber>;
|
|
6
|
+
lossy: z.ZodOptional<z.ZodEnum<{
|
|
7
|
+
lossless: "lossless";
|
|
8
|
+
glossy: "glossy";
|
|
9
|
+
lossy: "lossy";
|
|
10
|
+
}>>;
|
|
11
|
+
resize: z.ZodOptional<z.ZodEnum<{
|
|
12
|
+
none: "none";
|
|
13
|
+
outer: "outer";
|
|
14
|
+
inner: "inner";
|
|
15
|
+
smart_crop_ai: "smart_crop_ai";
|
|
16
|
+
}>>;
|
|
17
|
+
refresh: z.ZodOptional<z.ZodNumber>;
|
|
18
|
+
upscale: z.ZodOptional<z.ZodEnum<{
|
|
19
|
+
none: "none";
|
|
20
|
+
"2x": "2x";
|
|
21
|
+
"3x": "3x";
|
|
22
|
+
"4x": "4x";
|
|
23
|
+
}>>;
|
|
24
|
+
urllist: z.ZodArray<z.ZodString>;
|
|
25
|
+
cmyk2rgb: z.ZodOptional<z.ZodNumber>;
|
|
26
|
+
bg_remove: z.ZodOptional<z.ZodString>;
|
|
27
|
+
convertto: z.ZodOptional<z.ZodString>;
|
|
28
|
+
keep_exif: z.ZodOptional<z.ZodNumber>;
|
|
29
|
+
paramlist: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
30
|
+
resize_width: z.ZodOptional<z.ZodNumber>;
|
|
31
|
+
resize_height: z.ZodOptional<z.ZodNumber>;
|
|
32
|
+
plugin_version: z.ZodOptional<z.ZodString>;
|
|
33
|
+
returndatalist: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodNumber, z.ZodBoolean, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>>;
|
|
34
|
+
}, z.core.$strip>;
|
|
35
|
+
declare const ShortpixelOptimizeImagesByUrlOutput: z.ZodObject<{
|
|
36
|
+
results: z.ZodArray<z.ZodObject<{
|
|
37
|
+
Status: z.ZodNullable<z.ZodObject<{
|
|
38
|
+
Code: z.ZodNullable<z.ZodNumber>;
|
|
39
|
+
Message: z.ZodNullable<z.ZodString>;
|
|
40
|
+
}, z.core.$loose>>;
|
|
41
|
+
LossyURL: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
42
|
+
LossySize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
43
|
+
Timestamp: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
44
|
+
LosslessURL: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
45
|
+
OriginalURL: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
46
|
+
AVIFLossyURL: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
47
|
+
LoselessSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
48
|
+
OriginalSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
49
|
+
WebPLossyURL: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
50
|
+
WebPLossySize: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
|
|
51
|
+
AVIFPLossySize: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
|
|
52
|
+
AVIFLosslessURL: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
53
|
+
WebPLosslessURL: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
54
|
+
AVIFLoselessSize: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
|
|
55
|
+
WebPLoselessSize: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
|
|
56
|
+
}, z.core.$loose>>;
|
|
57
|
+
}, z.core.$loose>;
|
|
58
|
+
declare const shortpixelOptimizeImagesByUrl: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
59
|
+
urllist: string[];
|
|
60
|
+
wait?: number | undefined;
|
|
61
|
+
lossy?: "lossless" | "glossy" | "lossy" | undefined;
|
|
62
|
+
resize?: "none" | "outer" | "inner" | "smart_crop_ai" | undefined;
|
|
63
|
+
refresh?: number | undefined;
|
|
64
|
+
upscale?: "none" | "2x" | "3x" | "4x" | undefined;
|
|
65
|
+
cmyk2rgb?: number | undefined;
|
|
66
|
+
bg_remove?: string | undefined;
|
|
67
|
+
convertto?: string | undefined;
|
|
68
|
+
keep_exif?: number | undefined;
|
|
69
|
+
paramlist?: Record<string, unknown>[] | undefined;
|
|
70
|
+
resize_width?: number | undefined;
|
|
71
|
+
resize_height?: number | undefined;
|
|
72
|
+
plugin_version?: string | undefined;
|
|
73
|
+
returndatalist?: (string | number | boolean | Record<string, unknown>)[] | undefined;
|
|
74
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
75
|
//#endregion
|
|
8
76
|
export { shortpixelOptimizeImagesByUrl };
|
|
9
77
|
//# sourceMappingURL=optimize-images-by-url.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"optimize-images-by-url.d.mts","names":[],"sources":["../../src/actions/optimize-images-by-url.ts"],"mappings":";;;cAIa,kCAAA,
|
|
1
|
+
{"version":3,"file":"optimize-images-by-url.d.mts","names":[],"sources":["../../src/actions/optimize-images-by-url.ts"],"mappings":";;;cAIa,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAuClC,mCAAA,EAAmC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;cAInC,6BAAA,gCAA6B,wBAAA;;;;;;;;;;;cAMxC,MAAA;;;;gDAAA,MAAA;AAAA"}
|
|
@@ -26,7 +26,7 @@ const ShortpixelOptimizeImagesByUrlInput = z.object({
|
|
|
26
26
|
bg_remove: z.string().describe("Background removal options: '1' for transparent background, URL for custom background image, '#rrggbbxx' for color with transparency (xx is alpha in hex)").optional(),
|
|
27
27
|
convertto: z.string().describe("Format conversion options: '+webp' (add WebP version), '+avif' (add AVIF version), '+webp|+avif' (add both), 'webp|avif' (replace with first available), 'jpg', 'png', 'gif' (convert to format)").optional(),
|
|
28
28
|
keep_exif: z.number().int().describe("Preserve EXIF metadata in optimized images: 0 to remove (default), 1 to keep").optional(),
|
|
29
|
-
paramlist: z.array(z.
|
|
29
|
+
paramlist: z.array(z.record(z.string(), z.unknown())).describe("Array of custom optimization parameters for each URL, allowing per-image settings. Must match urllist length if provided.").optional(),
|
|
30
30
|
resize_width: z.number().int().describe("Target width in pixels for resizing. Required if resize is specified.").optional(),
|
|
31
31
|
resize_height: z.number().int().describe("Target height in pixels for resizing. Required if resize is specified.").optional(),
|
|
32
32
|
plugin_version: z.string().describe("5-character max alphanumeric code identifying your API client").optional(),
|
|
@@ -39,9 +39,9 @@ const ShortpixelOptimizeImagesByUrlInput = z.object({
|
|
|
39
39
|
])).describe("Any array to be returned unchanged in the API response for tracking purposes").optional()
|
|
40
40
|
}).describe("Request model for optimizing images by URL with ShortPixel.");
|
|
41
41
|
const ShortpixelOptimizeImagesByUrl_OptimizationStatusSchema = z.object({
|
|
42
|
-
Code: z.number().int().describe("Status code: 1 = scheduled for optimization, 2 = ready/completed, negative values indicate errors"),
|
|
43
|
-
Message: z.string().describe("Human-readable status message describing the optimization result")
|
|
44
|
-
}).describe("Status information for an optimized image.");
|
|
42
|
+
Code: z.number().int().describe("Status code: 1 = scheduled for optimization, 2 = ready/completed, negative values indicate errors").nullable(),
|
|
43
|
+
Message: z.string().describe("Human-readable status message describing the optimization result").nullable()
|
|
44
|
+
}).passthrough().describe("Status information for an optimized image.");
|
|
45
45
|
const ShortpixelOptimizeImagesByUrl_OptimizedImageSchema = z.object({
|
|
46
46
|
Status: ShortpixelOptimizeImagesByUrl_OptimizationStatusSchema.nullable(),
|
|
47
47
|
LossyURL: z.string().describe("URL of the lossy compressed version").nullable().optional(),
|
|
@@ -59,13 +59,13 @@ const ShortpixelOptimizeImagesByUrl_OptimizedImageSchema = z.object({
|
|
|
59
59
|
WebPLosslessURL: z.string().describe("URL of the WebP lossless version").nullable().optional(),
|
|
60
60
|
AVIFLoselessSize: z.union([z.number().int(), z.string()]).nullable().optional(),
|
|
61
61
|
WebPLoselessSize: z.union([z.number().int(), z.string()]).nullable().optional()
|
|
62
|
-
}).describe("Response data for a single optimized image.");
|
|
62
|
+
}).passthrough().describe("Response data for a single optimized image.");
|
|
63
63
|
const shortpixelOptimizeImagesByUrl = action("SHORTPIXEL_OPTIMIZE_IMAGES_BY_URL", {
|
|
64
64
|
slug: "shortpixel-optimize-images-by-url",
|
|
65
65
|
name: "Optimize Images by URL",
|
|
66
66
|
description: "Tool to optimize images by providing their URLs. Supports batch processing of up to 100 URLs per request with options for lossy, glossy, or lossless compression, resizing, format conversion (WebP/AVIF), and background removal. Use when you need to compress and optimize images accessible online.",
|
|
67
67
|
input: ShortpixelOptimizeImagesByUrlInput,
|
|
68
|
-
output: z.object({ results: z.array(ShortpixelOptimizeImagesByUrl_OptimizedImageSchema).describe("Array of optimization results, one per input URL in the same order as the request") }).describe("Response model for batch image optimization by URL.")
|
|
68
|
+
output: z.object({ results: z.array(ShortpixelOptimizeImagesByUrl_OptimizedImageSchema).describe("Array of optimization results, one per input URL in the same order as the request") }).passthrough().describe("Response model for batch image optimization by URL.")
|
|
69
69
|
});
|
|
70
70
|
//#endregion
|
|
71
71
|
export { shortpixelOptimizeImagesByUrl };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"optimize-images-by-url.mjs","names":[],"sources":["../../src/actions/optimize-images-by-url.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ShortpixelOptimizeImagesByUrlInput
|
|
1
|
+
{"version":3,"file":"optimize-images-by-url.mjs","names":[],"sources":["../../src/actions/optimize-images-by-url.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ShortpixelOptimizeImagesByUrlInput = z.object({\n wait: z.number().int().describe(\"Wait time in seconds (0-30) for optimization before returning. Use 0 to return immediately with scheduled status. Higher values wait for completion.\").optional(),\n lossy: z.enum([\"lossless\", \"lossy\", \"glossy\"]).describe(\"Image compression type.\").optional(),\n resize: z.enum([\"none\", \"outer\", \"inner\", \"smart_crop_ai\"]).describe(\"Image resize type.\").optional(),\n refresh: z.number().int().describe(\"Re-fetch and re-optimize image from source URL: 0 to use cached version, 1 to force fresh optimization\").optional(),\n upscale: z.enum([\"none\", \"2x\", \"3x\", \"4x\"]).describe(\"Image upscaling factor.\").optional(),\n urllist: z.array(z.string()).describe(\"Array of image URLs to optimize. Images must be accessible online. Maximum 100 URLs per request.\"),\n cmyk2rgb: z.number().int().describe(\"Convert CMYK color space to RGB: 0 to skip conversion, 1 to convert (default is 1)\").optional(),\n bg_remove: z.string().describe(\"Background removal options: '1' for transparent background, URL for custom background image, '#rrggbbxx' for color with transparency (xx is alpha in hex)\").optional(),\n convertto: z.string().describe(\"Format conversion options: '+webp' (add WebP version), '+avif' (add AVIF version), '+webp|+avif' (add both), 'webp|avif' (replace with first available), 'jpg', 'png', 'gif' (convert to format)\").optional(),\n keep_exif: z.number().int().describe(\"Preserve EXIF metadata in optimized images: 0 to remove (default), 1 to keep\").optional(),\n paramlist: z.array(z.record(z.string(), z.unknown())).describe(\"Array of custom optimization parameters for each URL, allowing per-image settings. Must match urllist length if provided.\").optional(),\n resize_width: z.number().int().describe(\"Target width in pixels for resizing. Required if resize is specified.\").optional(),\n resize_height: z.number().int().describe(\"Target height in pixels for resizing. Required if resize is specified.\").optional(),\n plugin_version: z.string().describe(\"5-character max alphanumeric code identifying your API client\").optional(),\n returndatalist: z.array(z.union([z.string(), z.number().int(), z.number(), z.boolean(), z.record(z.string(), z.unknown())])).describe(\"Any array to be returned unchanged in the API response for tracking purposes\").optional(),\n}).describe(\"Request model for optimizing images by URL with ShortPixel.\");\nconst ShortpixelOptimizeImagesByUrl_OptimizationStatusSchema = z.object({\n Code: z.number().int().describe(\"Status code: 1 = scheduled for optimization, 2 = ready/completed, negative values indicate errors\").nullable(),\n Message: z.string().describe(\"Human-readable status message describing the optimization result\").nullable(),\n}).passthrough().describe(\"Status information for an optimized image.\");\nconst ShortpixelOptimizeImagesByUrl_OptimizedImageSchema = z.object({\n Status: ShortpixelOptimizeImagesByUrl_OptimizationStatusSchema.nullable(),\n LossyURL: z.string().describe(\"URL of the lossy compressed version\").nullable().optional(),\n LossySize: z.number().int().describe(\"Size of lossy compressed image in bytes\").nullable().optional(),\n Timestamp: z.string().describe(\"Timestamp of when the optimization was processed\").nullable().optional(),\n LosslessURL: z.string().describe(\"URL of the lossless compressed version\").nullable().optional(),\n OriginalURL: z.string().describe(\"URL of the original source image\").nullable().optional(),\n AVIFLossyURL: z.string().describe(\"URL of the AVIF lossy version\").nullable().optional(),\n LoselessSize: z.number().int().describe(\"Size of lossless compressed image in bytes\").nullable().optional(),\n OriginalSize: z.number().int().describe(\"Size of original image in bytes\").nullable().optional(),\n WebPLossyURL: z.string().describe(\"URL of the WebP lossy version\").nullable().optional(),\n WebPLossySize: z.union([z.number().int(), z.string()]).nullable().optional(),\n AVIFPLossySize: z.union([z.number().int(), z.string()]).nullable().optional(),\n AVIFLosslessURL: z.string().describe(\"URL of the AVIF lossless version\").nullable().optional(),\n WebPLosslessURL: z.string().describe(\"URL of the WebP lossless version\").nullable().optional(),\n AVIFLoselessSize: z.union([z.number().int(), z.string()]).nullable().optional(),\n WebPLoselessSize: z.union([z.number().int(), z.string()]).nullable().optional(),\n}).passthrough().describe(\"Response data for a single optimized image.\");\nexport const ShortpixelOptimizeImagesByUrlOutput = z.object({\n results: z.array(ShortpixelOptimizeImagesByUrl_OptimizedImageSchema).describe(\"Array of optimization results, one per input URL in the same order as the request\"),\n}).passthrough().describe(\"Response model for batch image optimization by URL.\");\n\nexport const shortpixelOptimizeImagesByUrl = action(\"SHORTPIXEL_OPTIMIZE_IMAGES_BY_URL\", {\n slug: \"shortpixel-optimize-images-by-url\",\n name: \"Optimize Images by URL\",\n description: \"Tool to optimize images by providing their URLs. Supports batch processing of up to 100 URLs per request with options for lossy, glossy, or lossless compression, resizing, format conversion (WebP/AVIF), and background removal. Use when you need to compress and optimize images accessible online.\",\n input: ShortpixelOptimizeImagesByUrlInput,\n output: ShortpixelOptimizeImagesByUrlOutput,\n});\n"],"mappings":";;;AAIA,MAAa,qCAAqC,EAAE,OAAO;CACzD,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sJAAsJ,CAAC,CAAC,SAAS;CACjM,OAAO,EAAE,KAAK;EAAC;EAAY;EAAS;CAAQ,CAAC,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;CAC5F,QAAQ,EAAE,KAAK;EAAC;EAAQ;EAAS;EAAS;CAAe,CAAC,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS;CACpG,SAAS,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wGAAwG,CAAC,CAAC,SAAS;CACtJ,SAAS,EAAE,KAAK;EAAC;EAAQ;EAAM;EAAM;CAAI,CAAC,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;CACzF,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,kGAAkG;CACxI,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oFAAoF,CAAC,CAAC,SAAS;CACnI,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,2JAA2J,CAAC,CAAC,SAAS;CACrM,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,kMAAkM,CAAC,CAAC,SAAS;CAC5O,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS;CAC9H,WAAW,EAAE,MAAM,EAAE,OAAO,EAA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,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6CAA6C;AAKvE,MAAa,gCAAgC,OAAO,qCAAqC;CACvF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATiD,EAAE,OAAO,EAC1D,SAAS,EAAE,MAAM,kDAAkD,CAAC,CAAC,SAAS,mFAAmF,EACnK,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qDAOhB;AACV,CAAC"}
|
|
@@ -2,7 +2,7 @@ const require_action = require("../action.cjs");
|
|
|
2
2
|
let zod = require("zod");
|
|
3
3
|
//#region src/actions/read-cdn-domain.ts
|
|
4
4
|
const ShortpixelReadCdnDomainInput = zod.z.object({ domain: zod.z.string().describe("Domain name to check CDN status and quota (e.g., example.com)") }).describe("Request model for checking the status of a domain and its CDN quota on ShortPixel.");
|
|
5
|
-
const ShortpixelReadCdnDomainOutput = zod.z.object({ Status: zod.z.number().int().describe("Status code: 2=OK (credits available), 1=credits almost exhausted, -1=credits exhausted, -2=credits used up some time ago, -3=domain not reachable") }).describe("Response model for reading CDN domain status and quota information.");
|
|
5
|
+
const ShortpixelReadCdnDomainOutput = zod.z.object({ Status: zod.z.number().int().describe("Status code: 2=OK (credits available), 1=credits almost exhausted, -1=credits exhausted, -2=credits used up some time ago, -3=domain not reachable").nullable() }).passthrough().describe("Response model for reading CDN domain status and quota information.");
|
|
6
6
|
const shortpixelReadCdnDomain = require_action.action("SHORTPIXEL_READ_CDN_DOMAIN", {
|
|
7
7
|
slug: "shortpixel-read-cdn-domain",
|
|
8
8
|
name: "Read CDN Domain Status",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"read-cdn-domain.cjs","names":["z","action"],"sources":["../../src/actions/read-cdn-domain.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ShortpixelReadCdnDomainInput
|
|
1
|
+
{"version":3,"file":"read-cdn-domain.cjs","names":["z","action"],"sources":["../../src/actions/read-cdn-domain.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ShortpixelReadCdnDomainInput = z.object({\n domain: z.string().describe(\"Domain name to check CDN status and quota (e.g., example.com)\"),\n}).describe(\"Request model for checking the status of a domain and its CDN quota on ShortPixel.\");\nexport const ShortpixelReadCdnDomainOutput = z.object({\n Status: z.number().int().describe(\"Status code: 2=OK (credits available), 1=credits almost exhausted, -1=credits exhausted, -2=credits used up some time ago, -3=domain not reachable\").nullable(),\n}).passthrough().describe(\"Response model for reading CDN domain status and quota information.\");\n\nexport const shortpixelReadCdnDomain = action(\"SHORTPIXEL_READ_CDN_DOMAIN\", {\n slug: \"shortpixel-read-cdn-domain\",\n name: \"Read CDN Domain Status\",\n description: \"Tool to check the status of a domain and its CDN quota on ShortPixel. Returns a status code indicating credit availability. Use when you need to verify domain accessibility and quota status.\",\n input: ShortpixelReadCdnDomainInput,\n output: ShortpixelReadCdnDomainOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA+BA,IAAAA,EAAE,OAAO,EACnD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,EAC7F,CAAC,CAAC,CAAC,SAAS,oFAAoF;AAChG,MAAa,gCAAgCA,IAAAA,EAAE,OAAO,EACpD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oJAAoJ,CAAC,CAAC,SAAS,EACnM,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qEAAqE;AAE/F,MAAa,0BAA0BC,eAAAA,OAAO,8BAA8B;CAC1E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,15 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/read-cdn-domain.d.ts
|
|
4
|
-
declare const ShortpixelReadCdnDomainInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const ShortpixelReadCdnDomainInput: z.ZodObject<{
|
|
5
|
+
domain: z.ZodString;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
declare const ShortpixelReadCdnDomainOutput: z.ZodObject<{
|
|
8
|
+
Status: z.ZodNullable<z.ZodNumber>;
|
|
9
|
+
}, z.core.$loose>;
|
|
10
|
+
declare const shortpixelReadCdnDomain: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
11
|
+
domain: string;
|
|
12
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
13
|
//#endregion
|
|
8
14
|
export { shortpixelReadCdnDomain };
|
|
9
15
|
//# sourceMappingURL=read-cdn-domain.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"read-cdn-domain.d.cts","names":[],"sources":["../../src/actions/read-cdn-domain.ts"],"mappings":";;;cAIa,4BAAA,
|
|
1
|
+
{"version":3,"file":"read-cdn-domain.d.cts","names":[],"sources":["../../src/actions/read-cdn-domain.ts"],"mappings":";;;cAIa,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;cAG5B,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;cAI7B,uBAAA,gCAAuB,wBAAA"}
|
|
@@ -1,9 +1,15 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/read-cdn-domain.d.ts
|
|
4
|
-
declare const ShortpixelReadCdnDomainInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const ShortpixelReadCdnDomainInput: z.ZodObject<{
|
|
5
|
+
domain: z.ZodString;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
declare const ShortpixelReadCdnDomainOutput: z.ZodObject<{
|
|
8
|
+
Status: z.ZodNullable<z.ZodNumber>;
|
|
9
|
+
}, z.core.$loose>;
|
|
10
|
+
declare const shortpixelReadCdnDomain: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
11
|
+
domain: string;
|
|
12
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
13
|
//#endregion
|
|
8
14
|
export { shortpixelReadCdnDomain };
|
|
9
15
|
//# sourceMappingURL=read-cdn-domain.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"read-cdn-domain.d.mts","names":[],"sources":["../../src/actions/read-cdn-domain.ts"],"mappings":";;;cAIa,4BAAA,
|
|
1
|
+
{"version":3,"file":"read-cdn-domain.d.mts","names":[],"sources":["../../src/actions/read-cdn-domain.ts"],"mappings":";;;cAIa,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;cAG5B,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;cAI7B,uBAAA,gCAAuB,wBAAA"}
|
|
@@ -5,7 +5,7 @@ const shortpixelReadCdnDomain = action("SHORTPIXEL_READ_CDN_DOMAIN", {
|
|
|
5
5
|
name: "Read CDN Domain Status",
|
|
6
6
|
description: "Tool to check the status of a domain and its CDN quota on ShortPixel. Returns a status code indicating credit availability. Use when you need to verify domain accessibility and quota status.",
|
|
7
7
|
input: z.object({ domain: z.string().describe("Domain name to check CDN status and quota (e.g., example.com)") }).describe("Request model for checking the status of a domain and its CDN quota on ShortPixel."),
|
|
8
|
-
output: z.object({ Status: z.number().int().describe("Status code: 2=OK (credits available), 1=credits almost exhausted, -1=credits exhausted, -2=credits used up some time ago, -3=domain not reachable") }).describe("Response model for reading CDN domain status and quota information.")
|
|
8
|
+
output: z.object({ Status: z.number().int().describe("Status code: 2=OK (credits available), 1=credits almost exhausted, -1=credits exhausted, -2=credits used up some time ago, -3=domain not reachable").nullable() }).passthrough().describe("Response model for reading CDN domain status and quota information.")
|
|
9
9
|
});
|
|
10
10
|
//#endregion
|
|
11
11
|
export { shortpixelReadCdnDomain };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"read-cdn-domain.mjs","names":[],"sources":["../../src/actions/read-cdn-domain.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ShortpixelReadCdnDomainInput
|
|
1
|
+
{"version":3,"file":"read-cdn-domain.mjs","names":[],"sources":["../../src/actions/read-cdn-domain.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ShortpixelReadCdnDomainInput = z.object({\n domain: z.string().describe(\"Domain name to check CDN status and quota (e.g., example.com)\"),\n}).describe(\"Request model for checking the status of a domain and its CDN quota on ShortPixel.\");\nexport const ShortpixelReadCdnDomainOutput = z.object({\n Status: z.number().int().describe(\"Status code: 2=OK (credits available), 1=credits almost exhausted, -1=credits exhausted, -2=credits used up some time ago, -3=domain not reachable\").nullable(),\n}).passthrough().describe(\"Response model for reading CDN domain status and quota information.\");\n\nexport const shortpixelReadCdnDomain = action(\"SHORTPIXEL_READ_CDN_DOMAIN\", {\n slug: \"shortpixel-read-cdn-domain\",\n name: \"Read CDN Domain Status\",\n description: \"Tool to check the status of a domain and its CDN quota on ShortPixel. Returns a status code indicating credit availability. Use when you need to verify domain accessibility and quota status.\",\n input: ShortpixelReadCdnDomainInput,\n output: ShortpixelReadCdnDomainOutput,\n});\n"],"mappings":";;AAWA,MAAa,0BAA0B,OAAO,8BAA8B;CAC1E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAX0C,EAAE,OAAO,EACnD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,EAC7F,CAAC,CAAC,CAAC,SAAS,oFASH;CACP,QAT2C,EAAE,OAAO,EACpD,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oJAAoJ,CAAC,CAAC,SAAS,EACnM,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qEAOhB;AACV,CAAC"}
|
|
@@ -3,9 +3,9 @@ let zod = require("zod");
|
|
|
3
3
|
//#region src/actions/revoke-cdn-domain.ts
|
|
4
4
|
const ShortpixelRevokeCdnDomainInput = zod.z.object({ domain: zod.z.string().describe("Domain name to revoke from ShortPixel CDN (e.g., example.com)") }).describe("Request model for revoking a domain association from ShortPixel CDN.");
|
|
5
5
|
const ShortpixelRevokeCdnDomainOutput = zod.z.object({
|
|
6
|
-
Status: zod.z.number().int().describe("Status code returned by the API (1=success, other values indicate issues or insufficient rights)"),
|
|
7
|
-
Message: zod.z.string().describe("Details on the result of the revoke operation")
|
|
8
|
-
}).describe("Response model for revoking a CDN domain association.");
|
|
6
|
+
Status: zod.z.number().int().describe("Status code returned by the API (1=success, other values indicate issues or insufficient rights)").nullable(),
|
|
7
|
+
Message: zod.z.string().describe("Details on the result of the revoke operation").nullable()
|
|
8
|
+
}).passthrough().describe("Response model for revoking a CDN domain association.");
|
|
9
9
|
const shortpixelRevokeCdnDomain = require_action.action("SHORTPIXEL_REVOKE_CDN_DOMAIN", {
|
|
10
10
|
slug: "shortpixel-revoke-cdn-domain",
|
|
11
11
|
name: "Revoke CDN Domain",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"revoke-cdn-domain.cjs","names":["z","action"],"sources":["../../src/actions/revoke-cdn-domain.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ShortpixelRevokeCdnDomainInput
|
|
1
|
+
{"version":3,"file":"revoke-cdn-domain.cjs","names":["z","action"],"sources":["../../src/actions/revoke-cdn-domain.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ShortpixelRevokeCdnDomainInput = z.object({\n domain: z.string().describe(\"Domain name to revoke from ShortPixel CDN (e.g., example.com)\"),\n}).describe(\"Request model for revoking a domain association from ShortPixel CDN.\");\nexport const ShortpixelRevokeCdnDomainOutput = z.object({\n Status: z.number().int().describe(\"Status code returned by the API (1=success, other values indicate issues or insufficient rights)\").nullable(),\n Message: z.string().describe(\"Details on the result of the revoke operation\").nullable(),\n}).passthrough().describe(\"Response model for revoking a CDN domain association.\");\n\nexport const shortpixelRevokeCdnDomain = action(\"SHORTPIXEL_REVOKE_CDN_DOMAIN\", {\n slug: \"shortpixel-revoke-cdn-domain\",\n name: \"Revoke CDN Domain\",\n description: \"Tool to revoke a domain association from ShortPixel CDN. Only works if the API key belongs to the current domain owner. Use when you need to remove the association between a domain and the user account.\",\n input: ShortpixelRevokeCdnDomainInput,\n output: ShortpixelRevokeCdnDomainOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAAiCA,IAAAA,EAAE,OAAO,EACrD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,EAC7F,CAAC,CAAC,CAAC,SAAS,sEAAsE;AAClF,MAAa,kCAAkCA,IAAAA,EAAE,OAAO;CACtD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kGAAkG,CAAC,CAAC,SAAS;CAC/I,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;AACzF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uDAAuD;AAEjF,MAAa,4BAA4BC,eAAAA,OAAO,gCAAgC;CAC9E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,16 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/revoke-cdn-domain.d.ts
|
|
4
|
-
declare const ShortpixelRevokeCdnDomainInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const ShortpixelRevokeCdnDomainInput: z.ZodObject<{
|
|
5
|
+
domain: z.ZodString;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
declare const ShortpixelRevokeCdnDomainOutput: z.ZodObject<{
|
|
8
|
+
Status: z.ZodNullable<z.ZodNumber>;
|
|
9
|
+
Message: z.ZodNullable<z.ZodString>;
|
|
10
|
+
}, z.core.$loose>;
|
|
11
|
+
declare const shortpixelRevokeCdnDomain: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
12
|
+
domain: string;
|
|
13
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
14
|
//#endregion
|
|
8
15
|
export { shortpixelRevokeCdnDomain };
|
|
9
16
|
//# sourceMappingURL=revoke-cdn-domain.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"revoke-cdn-domain.d.cts","names":[],"sources":["../../src/actions/revoke-cdn-domain.ts"],"mappings":";;;cAIa,8BAAA,
|
|
1
|
+
{"version":3,"file":"revoke-cdn-domain.d.cts","names":[],"sources":["../../src/actions/revoke-cdn-domain.ts"],"mappings":";;;cAIa,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;cAG9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;cAK/B,yBAAA,gCAAyB,wBAAA"}
|
|
@@ -1,9 +1,16 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/revoke-cdn-domain.d.ts
|
|
4
|
-
declare const ShortpixelRevokeCdnDomainInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const ShortpixelRevokeCdnDomainInput: z.ZodObject<{
|
|
5
|
+
domain: z.ZodString;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
declare const ShortpixelRevokeCdnDomainOutput: z.ZodObject<{
|
|
8
|
+
Status: z.ZodNullable<z.ZodNumber>;
|
|
9
|
+
Message: z.ZodNullable<z.ZodString>;
|
|
10
|
+
}, z.core.$loose>;
|
|
11
|
+
declare const shortpixelRevokeCdnDomain: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
12
|
+
domain: string;
|
|
13
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
14
|
//#endregion
|
|
8
15
|
export { shortpixelRevokeCdnDomain };
|
|
9
16
|
//# sourceMappingURL=revoke-cdn-domain.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"revoke-cdn-domain.d.mts","names":[],"sources":["../../src/actions/revoke-cdn-domain.ts"],"mappings":";;;cAIa,8BAAA,
|
|
1
|
+
{"version":3,"file":"revoke-cdn-domain.d.mts","names":[],"sources":["../../src/actions/revoke-cdn-domain.ts"],"mappings":";;;cAIa,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;cAG9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;cAK/B,yBAAA,gCAAyB,wBAAA"}
|
|
@@ -6,9 +6,9 @@ const shortpixelRevokeCdnDomain = action("SHORTPIXEL_REVOKE_CDN_DOMAIN", {
|
|
|
6
6
|
description: "Tool to revoke a domain association from ShortPixel CDN. Only works if the API key belongs to the current domain owner. Use when you need to remove the association between a domain and the user account.",
|
|
7
7
|
input: z.object({ domain: z.string().describe("Domain name to revoke from ShortPixel CDN (e.g., example.com)") }).describe("Request model for revoking a domain association from ShortPixel CDN."),
|
|
8
8
|
output: z.object({
|
|
9
|
-
Status: z.number().int().describe("Status code returned by the API (1=success, other values indicate issues or insufficient rights)"),
|
|
10
|
-
Message: z.string().describe("Details on the result of the revoke operation")
|
|
11
|
-
}).describe("Response model for revoking a CDN domain association.")
|
|
9
|
+
Status: z.number().int().describe("Status code returned by the API (1=success, other values indicate issues or insufficient rights)").nullable(),
|
|
10
|
+
Message: z.string().describe("Details on the result of the revoke operation").nullable()
|
|
11
|
+
}).passthrough().describe("Response model for revoking a CDN domain association.")
|
|
12
12
|
});
|
|
13
13
|
//#endregion
|
|
14
14
|
export { shortpixelRevokeCdnDomain };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"revoke-cdn-domain.mjs","names":[],"sources":["../../src/actions/revoke-cdn-domain.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ShortpixelRevokeCdnDomainInput
|
|
1
|
+
{"version":3,"file":"revoke-cdn-domain.mjs","names":[],"sources":["../../src/actions/revoke-cdn-domain.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ShortpixelRevokeCdnDomainInput = z.object({\n domain: z.string().describe(\"Domain name to revoke from ShortPixel CDN (e.g., example.com)\"),\n}).describe(\"Request model for revoking a domain association from ShortPixel CDN.\");\nexport const ShortpixelRevokeCdnDomainOutput = z.object({\n Status: z.number().int().describe(\"Status code returned by the API (1=success, other values indicate issues or insufficient rights)\").nullable(),\n Message: z.string().describe(\"Details on the result of the revoke operation\").nullable(),\n}).passthrough().describe(\"Response model for revoking a CDN domain association.\");\n\nexport const shortpixelRevokeCdnDomain = action(\"SHORTPIXEL_REVOKE_CDN_DOMAIN\", {\n slug: \"shortpixel-revoke-cdn-domain\",\n name: \"Revoke CDN Domain\",\n description: \"Tool to revoke a domain association from ShortPixel CDN. Only works if the API key belongs to the current domain owner. Use when you need to remove the association between a domain and the user account.\",\n input: ShortpixelRevokeCdnDomainInput,\n output: ShortpixelRevokeCdnDomainOutput,\n});\n"],"mappings":";;AAYA,MAAa,4BAA4B,OAAO,gCAAgC;CAC9E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAZ4C,EAAE,OAAO,EACrD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,EAC7F,CAAC,CAAC,CAAC,SAAS,sEAUH;CACP,QAV6C,EAAE,OAAO;EACtD,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kGAAkG,CAAC,CAAC,SAAS;EAC/I,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CACzF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uDAOhB;AACV,CAAC"}
|
|
@@ -3,9 +3,9 @@ let zod = require("zod");
|
|
|
3
3
|
//#region src/actions/set-cdn-domain.ts
|
|
4
4
|
const ShortpixelSetCdnDomainInput = zod.z.object({ domain: zod.z.string().describe("Domain name to associate with the API key (e.g., example.com)") }).describe("Request model for associating an API key with an existing domain.");
|
|
5
5
|
const ShortpixelSetCdnDomainOutput = zod.z.object({
|
|
6
|
-
Status: zod.z.number().int().describe("Status code returned by the API (1=success, other values indicate issues)"),
|
|
7
|
-
Message: zod.z.string().describe("Details on the result of the set domain operation")
|
|
8
|
-
}).describe("Response model for set CDN domain action.");
|
|
6
|
+
Status: zod.z.number().int().describe("Status code returned by the API (1=success, other values indicate issues)").nullable(),
|
|
7
|
+
Message: zod.z.string().describe("Details on the result of the set domain operation").nullable()
|
|
8
|
+
}).passthrough().describe("Response model for set CDN domain action.");
|
|
9
9
|
const shortpixelSetCdnDomain = require_action.action("SHORTPIXEL_SET_CDN_DOMAIN", {
|
|
10
10
|
slug: "shortpixel-set-cdn-domain",
|
|
11
11
|
name: "Set CDN Domain",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"set-cdn-domain.cjs","names":["z","action"],"sources":["../../src/actions/set-cdn-domain.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ShortpixelSetCdnDomainInput
|
|
1
|
+
{"version":3,"file":"set-cdn-domain.cjs","names":["z","action"],"sources":["../../src/actions/set-cdn-domain.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ShortpixelSetCdnDomainInput = z.object({\n domain: z.string().describe(\"Domain name to associate with the API key (e.g., example.com)\"),\n}).describe(\"Request model for associating an API key with an existing domain.\");\nexport const ShortpixelSetCdnDomainOutput = z.object({\n Status: z.number().int().describe(\"Status code returned by the API (1=success, other values indicate issues)\").nullable(),\n Message: z.string().describe(\"Details on the result of the set domain operation\").nullable(),\n}).passthrough().describe(\"Response model for set CDN domain action.\");\n\nexport const shortpixelSetCdnDomain = action(\"SHORTPIXEL_SET_CDN_DOMAIN\", {\n slug: \"shortpixel-set-cdn-domain\",\n name: \"Set CDN Domain\",\n description: \"Tool to associate an API key with an existing domain. Unlike add-domain, this does not create a new domain - it only associates a user ID if not already associated. Use when you need to claim unassociated domains.\",\n input: ShortpixelSetCdnDomainInput,\n output: ShortpixelSetCdnDomainOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO,EAClD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,EAC7F,CAAC,CAAC,CAAC,SAAS,mEAAmE;AAC/E,MAAa,+BAA+BA,IAAAA,EAAE,OAAO;CACnD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2EAA2E,CAAC,CAAC,SAAS;CACxH,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;AAC7F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2CAA2C;AAErE,MAAa,yBAAyBC,eAAAA,OAAO,6BAA6B;CACxE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,16 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/set-cdn-domain.d.ts
|
|
4
|
-
declare const ShortpixelSetCdnDomainInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const ShortpixelSetCdnDomainInput: z.ZodObject<{
|
|
5
|
+
domain: z.ZodString;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
declare const ShortpixelSetCdnDomainOutput: z.ZodObject<{
|
|
8
|
+
Status: z.ZodNullable<z.ZodNumber>;
|
|
9
|
+
Message: z.ZodNullable<z.ZodString>;
|
|
10
|
+
}, z.core.$loose>;
|
|
11
|
+
declare const shortpixelSetCdnDomain: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
12
|
+
domain: string;
|
|
13
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
14
|
//#endregion
|
|
8
15
|
export { shortpixelSetCdnDomain };
|
|
9
16
|
//# sourceMappingURL=set-cdn-domain.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"set-cdn-domain.d.cts","names":[],"sources":["../../src/actions/set-cdn-domain.ts"],"mappings":";;;cAIa,2BAAA,
|
|
1
|
+
{"version":3,"file":"set-cdn-domain.d.cts","names":[],"sources":["../../src/actions/set-cdn-domain.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;cAG3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;cAK5B,sBAAA,gCAAsB,wBAAA"}
|
|
@@ -1,9 +1,16 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/set-cdn-domain.d.ts
|
|
4
|
-
declare const ShortpixelSetCdnDomainInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const ShortpixelSetCdnDomainInput: z.ZodObject<{
|
|
5
|
+
domain: z.ZodString;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
declare const ShortpixelSetCdnDomainOutput: z.ZodObject<{
|
|
8
|
+
Status: z.ZodNullable<z.ZodNumber>;
|
|
9
|
+
Message: z.ZodNullable<z.ZodString>;
|
|
10
|
+
}, z.core.$loose>;
|
|
11
|
+
declare const shortpixelSetCdnDomain: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
12
|
+
domain: string;
|
|
13
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
14
|
//#endregion
|
|
8
15
|
export { shortpixelSetCdnDomain };
|
|
9
16
|
//# sourceMappingURL=set-cdn-domain.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"set-cdn-domain.d.mts","names":[],"sources":["../../src/actions/set-cdn-domain.ts"],"mappings":";;;cAIa,2BAAA,
|
|
1
|
+
{"version":3,"file":"set-cdn-domain.d.mts","names":[],"sources":["../../src/actions/set-cdn-domain.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;cAG3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;cAK5B,sBAAA,gCAAsB,wBAAA"}
|