@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,9 +1,57 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/get-adaptive-image-cdn.d.ts
|
|
4
|
-
declare const ShortpixelGetAdaptiveImageCdnInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const ShortpixelGetAdaptiveImageCdnInput: z.ZodObject<{
|
|
5
|
+
crop: z.ZodOptional<z.ZodEnum<{
|
|
6
|
+
smart: "smart";
|
|
7
|
+
center: "center";
|
|
8
|
+
north: "north";
|
|
9
|
+
south: "south";
|
|
10
|
+
east: "east";
|
|
11
|
+
west: "west";
|
|
12
|
+
northeast: "northeast";
|
|
13
|
+
northwest: "northwest";
|
|
14
|
+
southeast: "southeast";
|
|
15
|
+
southwest: "southwest";
|
|
16
|
+
}>>;
|
|
17
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
18
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
19
|
+
quality: z.ZodOptional<z.ZodEnum<{
|
|
20
|
+
lqip: "lqip";
|
|
21
|
+
lossless: "lossless";
|
|
22
|
+
glossy: "glossy";
|
|
23
|
+
lossy: "lossy";
|
|
24
|
+
}>>;
|
|
25
|
+
image_url: z.ZodString;
|
|
26
|
+
keep_exif: z.ZodOptional<z.ZodBoolean>;
|
|
27
|
+
to_format: z.ZodOptional<z.ZodEnum<{
|
|
28
|
+
webp: "webp";
|
|
29
|
+
avif: "avif";
|
|
30
|
+
auto: "auto";
|
|
31
|
+
}>>;
|
|
32
|
+
return_mode: z.ZodOptional<z.ZodEnum<{
|
|
33
|
+
blank: "blank";
|
|
34
|
+
img: "img";
|
|
35
|
+
wait: "wait";
|
|
36
|
+
}>>;
|
|
37
|
+
}, z.core.$strip>;
|
|
38
|
+
declare const ShortpixelGetAdaptiveImageCdnOutput: z.ZodObject<{
|
|
39
|
+
image: z.ZodNullable<z.ZodObject<{
|
|
40
|
+
name: z.ZodNullable<z.ZodString>;
|
|
41
|
+
s3url: z.ZodNullable<z.ZodString>;
|
|
42
|
+
mimetype: z.ZodNullable<z.ZodString>;
|
|
43
|
+
}, z.core.$loose>>;
|
|
44
|
+
}, z.core.$loose>;
|
|
45
|
+
declare const shortpixelGetAdaptiveImageCdn: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
46
|
+
image_url: string;
|
|
47
|
+
crop?: "smart" | "center" | "north" | "south" | "east" | "west" | "northeast" | "northwest" | "southeast" | "southwest" | undefined;
|
|
48
|
+
width?: number | undefined;
|
|
49
|
+
height?: number | undefined;
|
|
50
|
+
quality?: "lqip" | "lossless" | "glossy" | "lossy" | undefined;
|
|
51
|
+
keep_exif?: boolean | undefined;
|
|
52
|
+
to_format?: "webp" | "avif" | "auto" | undefined;
|
|
53
|
+
return_mode?: "blank" | "img" | "wait" | undefined;
|
|
54
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
55
|
//#endregion
|
|
8
56
|
export { shortpixelGetAdaptiveImageCdn };
|
|
9
57
|
//# sourceMappingURL=get-adaptive-image-cdn.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-adaptive-image-cdn.d.cts","names":[],"sources":["../../src/actions/get-adaptive-image-cdn.ts"],"mappings":";;;cAIa,kCAAA,
|
|
1
|
+
{"version":3,"file":"get-adaptive-image-cdn.d.cts","names":[],"sources":["../../src/actions/get-adaptive-image-cdn.ts"],"mappings":";;;cAIa,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAelC,mCAAA,EAAmC,CAAA,CAAA,SAAA;;;;;;;cAInC,6BAAA,gCAA6B,wBAAA"}
|
|
@@ -1,9 +1,57 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/get-adaptive-image-cdn.d.ts
|
|
4
|
-
declare const ShortpixelGetAdaptiveImageCdnInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const ShortpixelGetAdaptiveImageCdnInput: z.ZodObject<{
|
|
5
|
+
crop: z.ZodOptional<z.ZodEnum<{
|
|
6
|
+
smart: "smart";
|
|
7
|
+
center: "center";
|
|
8
|
+
north: "north";
|
|
9
|
+
south: "south";
|
|
10
|
+
east: "east";
|
|
11
|
+
west: "west";
|
|
12
|
+
northeast: "northeast";
|
|
13
|
+
northwest: "northwest";
|
|
14
|
+
southeast: "southeast";
|
|
15
|
+
southwest: "southwest";
|
|
16
|
+
}>>;
|
|
17
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
18
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
19
|
+
quality: z.ZodOptional<z.ZodEnum<{
|
|
20
|
+
lqip: "lqip";
|
|
21
|
+
lossless: "lossless";
|
|
22
|
+
glossy: "glossy";
|
|
23
|
+
lossy: "lossy";
|
|
24
|
+
}>>;
|
|
25
|
+
image_url: z.ZodString;
|
|
26
|
+
keep_exif: z.ZodOptional<z.ZodBoolean>;
|
|
27
|
+
to_format: z.ZodOptional<z.ZodEnum<{
|
|
28
|
+
webp: "webp";
|
|
29
|
+
avif: "avif";
|
|
30
|
+
auto: "auto";
|
|
31
|
+
}>>;
|
|
32
|
+
return_mode: z.ZodOptional<z.ZodEnum<{
|
|
33
|
+
blank: "blank";
|
|
34
|
+
img: "img";
|
|
35
|
+
wait: "wait";
|
|
36
|
+
}>>;
|
|
37
|
+
}, z.core.$strip>;
|
|
38
|
+
declare const ShortpixelGetAdaptiveImageCdnOutput: z.ZodObject<{
|
|
39
|
+
image: z.ZodNullable<z.ZodObject<{
|
|
40
|
+
name: z.ZodNullable<z.ZodString>;
|
|
41
|
+
s3url: z.ZodNullable<z.ZodString>;
|
|
42
|
+
mimetype: z.ZodNullable<z.ZodString>;
|
|
43
|
+
}, z.core.$loose>>;
|
|
44
|
+
}, z.core.$loose>;
|
|
45
|
+
declare const shortpixelGetAdaptiveImageCdn: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
46
|
+
image_url: string;
|
|
47
|
+
crop?: "smart" | "center" | "north" | "south" | "east" | "west" | "northeast" | "northwest" | "southeast" | "southwest" | undefined;
|
|
48
|
+
width?: number | undefined;
|
|
49
|
+
height?: number | undefined;
|
|
50
|
+
quality?: "lqip" | "lossless" | "glossy" | "lossy" | undefined;
|
|
51
|
+
keep_exif?: boolean | undefined;
|
|
52
|
+
to_format?: "webp" | "avif" | "auto" | undefined;
|
|
53
|
+
return_mode?: "blank" | "img" | "wait" | undefined;
|
|
54
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
55
|
//#endregion
|
|
8
56
|
export { shortpixelGetAdaptiveImageCdn };
|
|
9
57
|
//# sourceMappingURL=get-adaptive-image-cdn.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-adaptive-image-cdn.d.mts","names":[],"sources":["../../src/actions/get-adaptive-image-cdn.ts"],"mappings":";;;cAIa,kCAAA,
|
|
1
|
+
{"version":3,"file":"get-adaptive-image-cdn.d.mts","names":[],"sources":["../../src/actions/get-adaptive-image-cdn.ts"],"mappings":";;;cAIa,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAelC,mCAAA,EAAmC,CAAA,CAAA,SAAA;;;;;;;cAInC,6BAAA,gCAA6B,wBAAA"}
|
|
@@ -36,16 +36,16 @@ const ShortpixelGetAdaptiveImageCdnInput = z.object({
|
|
|
36
36
|
]).describe("Return behavior options.").optional()
|
|
37
37
|
}).describe("Request model for ShortPixel Adaptive Image CDN optimization.");
|
|
38
38
|
const ShortpixelGetAdaptiveImageCdn_FileDownloadableSchema = z.object({
|
|
39
|
-
name: z.string().describe("Name of the file"),
|
|
40
|
-
s3url: z.string().describe("S3 URL of the downloaded file."),
|
|
41
|
-
mimetype: z.string().describe("Mime type of the file.")
|
|
42
|
-
});
|
|
39
|
+
name: z.string().describe("Name of the file").nullable(),
|
|
40
|
+
s3url: z.string().describe("S3 URL of the downloaded file.").nullable(),
|
|
41
|
+
mimetype: z.string().describe("Mime type of the file.").nullable()
|
|
42
|
+
}).passthrough();
|
|
43
43
|
const shortpixelGetAdaptiveImageCdn = action("SHORTPIXEL_GET_ADAPTIVE_IMAGE_CDN", {
|
|
44
44
|
slug: "shortpixel-get-adaptive-image-cdn",
|
|
45
45
|
name: "Get Adaptive Image via CDN",
|
|
46
46
|
description: "Tool to optimize images on-the-fly via ShortPixel CDN. Transform images by URL with parameters for width, height, cropping, quality, and format conversion. Returns the optimized image directly without CDN caching.",
|
|
47
47
|
input: ShortpixelGetAdaptiveImageCdnInput,
|
|
48
|
-
output: z.object({ image: ShortpixelGetAdaptiveImageCdn_FileDownloadableSchema.nullable() }).describe("Response model for ShortPixel Adaptive Image CDN optimization.")
|
|
48
|
+
output: z.object({ image: ShortpixelGetAdaptiveImageCdn_FileDownloadableSchema.nullable() }).passthrough().describe("Response model for ShortPixel Adaptive Image CDN optimization.")
|
|
49
49
|
});
|
|
50
50
|
//#endregion
|
|
51
51
|
export { shortpixelGetAdaptiveImageCdn };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-adaptive-image-cdn.mjs","names":[],"sources":["../../src/actions/get-adaptive-image-cdn.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ShortpixelGetAdaptiveImageCdnInput
|
|
1
|
+
{"version":3,"file":"get-adaptive-image-cdn.mjs","names":[],"sources":["../../src/actions/get-adaptive-image-cdn.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ShortpixelGetAdaptiveImageCdnInput = z.object({\n crop: z.enum([\"smart\", \"center\", \"north\", \"south\", \"east\", \"west\", \"northeast\", \"northwest\", \"southeast\", \"southwest\"]).describe(\"Crop style options.\").optional(),\n width: z.number().int().describe(\"Desired width in pixels for the optimized image\").optional(),\n height: z.number().int().describe(\"Desired height in pixels for the optimized image\").optional(),\n quality: z.enum([\"lqip\", \"lossless\", \"glossy\", \"lossy\"]).describe(\"Image quality/compression level options.\").optional(),\n image_url: z.string().describe(\"Absolute URL of the original image to optimize (e.g., 'https://example.com/image.jpg')\"),\n keep_exif: z.boolean().describe(\"Whether to keep EXIF metadata in the optimized image. False removes metadata for smaller file size.\").optional(),\n to_format: z.enum([\"webp\", \"avif\", \"auto\"]).describe(\"Output format conversion options.\").optional(),\n return_mode: z.enum([\"blank\", \"img\", \"wait\"]).describe(\"Return behavior options.\").optional(),\n}).describe(\"Request model for ShortPixel Adaptive Image CDN optimization.\");\nconst ShortpixelGetAdaptiveImageCdn_FileDownloadableSchema = z.object({\n name: z.string().describe(\"Name of the file\").nullable(),\n s3url: z.string().describe(\"S3 URL of the downloaded file.\").nullable(),\n mimetype: z.string().describe(\"Mime type of the file.\").nullable(),\n}).passthrough();\nexport const ShortpixelGetAdaptiveImageCdnOutput = z.object({\n image: ShortpixelGetAdaptiveImageCdn_FileDownloadableSchema.nullable(),\n}).passthrough().describe(\"Response model for ShortPixel Adaptive Image CDN optimization.\");\n\nexport const shortpixelGetAdaptiveImageCdn = action(\"SHORTPIXEL_GET_ADAPTIVE_IMAGE_CDN\", {\n slug: \"shortpixel-get-adaptive-image-cdn\",\n name: \"Get Adaptive Image via CDN\",\n description: \"Tool to optimize images on-the-fly via ShortPixel CDN. Transform images by URL with parameters for width, height, cropping, quality, and format conversion. Returns the optimized image directly without CDN caching.\",\n input: ShortpixelGetAdaptiveImageCdnInput,\n output: ShortpixelGetAdaptiveImageCdnOutput,\n});\n"],"mappings":";;;AAIA,MAAa,qCAAqC,EAAE,OAAO;CACzD,MAAM,EAAE,KAAK;EAAC;EAAS;EAAU;EAAS;EAAS;EAAQ;EAAQ;EAAa;EAAa;EAAa;CAAW,CAAC,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;CACjK,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;CAC7F,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;CAC/F,SAAS,EAAE,KAAK;EAAC;EAAQ;EAAY;EAAU;CAAO,CAAC,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CACvH,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,wFAAwF;CACvH,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS,qGAAqG,CAAC,CAAC,SAAS;CAChJ,WAAW,EAAE,KAAK;EAAC;EAAQ;EAAQ;CAAM,CAAC,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CACnG,aAAa,EAAE,KAAK;EAAC;EAAS;EAAO;CAAM,CAAC,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;AAC9F,CAAC,CAAC,CAAC,SAAS,+DAA+D;AAC3E,MAAM,uDAAuD,EAAE,OAAO;CACpE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS;CACvD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CACtE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;AACnE,CAAC,CAAC,CAAC,YAAY;AAKf,MAAa,gCAAgC,OAAO,qCAAqC;CACvF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATiD,EAAE,OAAO,EAC1D,OAAO,qDAAqD,SAAS,EACvE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gEAOhB;AACV,CAAC"}
|
|
@@ -3,20 +3,20 @@ let zod = require("zod");
|
|
|
3
3
|
//#region src/actions/get-api-status.ts
|
|
4
4
|
const ShortpixelGetApiStatusInput = zod.z.object({}).describe("Empty request model for retrieving ShortPixel API status. Uses API key from metadata query parameters.");
|
|
5
5
|
const ShortpixelGetApiStatus_StatusInfoSchema = zod.z.object({
|
|
6
|
-
Code: zod.z.string().describe("Status code returned by the API (2=OK, 3=error, 9=over quota)"),
|
|
7
|
-
Message: zod.z.string().describe("Human-readable message about the API status")
|
|
8
|
-
}).describe("Status information returned by the API.");
|
|
6
|
+
Code: zod.z.string().describe("Status code returned by the API (2=OK, 3=error, 9=over quota)").nullable(),
|
|
7
|
+
Message: zod.z.string().describe("Human-readable message about the API status").nullable()
|
|
8
|
+
}).passthrough().describe("Status information returned by the API.");
|
|
9
9
|
const ShortpixelGetApiStatusOutput = zod.z.object({
|
|
10
10
|
Status: ShortpixelGetApiStatus_StatusInfoSchema.nullable(),
|
|
11
|
-
Unlimited: zod.z.boolean().describe("Whether the account has unlimited API calls"),
|
|
12
|
-
DomainCheck: zod.z.string().describe("Domain accessibility status"),
|
|
13
|
-
APICallsFree: zod.z.string().describe("Number of free API calls available (as decimal string)"),
|
|
14
|
-
APICallsMade: zod.z.string().describe("Number of API calls made (as decimal string)"),
|
|
11
|
+
Unlimited: zod.z.boolean().describe("Whether the account has unlimited API calls").nullable(),
|
|
12
|
+
DomainCheck: zod.z.string().describe("Domain accessibility status").nullable(),
|
|
13
|
+
APICallsFree: zod.z.string().describe("Number of free API calls available (as decimal string)").nullable(),
|
|
14
|
+
APICallsMade: zod.z.string().describe("Number of API calls made (as decimal string)").nullable(),
|
|
15
15
|
APICallsQuota: zod.z.union([zod.z.number().int(), zod.z.string()]),
|
|
16
|
-
DateSubscription: zod.z.string().describe("Subscription date in format 'YYYY-MM-DD HH:MM:SS'"),
|
|
17
|
-
APICallsMadeOneTime: zod.z.string().describe("One-time API calls made (as decimal string)"),
|
|
18
|
-
APICallsQuotaOneTime: zod.z.string().describe("One-time API calls quota (as decimal string)")
|
|
19
|
-
}).describe("Response model for ShortPixel API status, including status code, message, and usage details.");
|
|
16
|
+
DateSubscription: zod.z.string().describe("Subscription date in format 'YYYY-MM-DD HH:MM:SS'").nullable(),
|
|
17
|
+
APICallsMadeOneTime: zod.z.string().describe("One-time API calls made (as decimal string)").nullable(),
|
|
18
|
+
APICallsQuotaOneTime: zod.z.string().describe("One-time API calls quota (as decimal string)").nullable()
|
|
19
|
+
}).passthrough().describe("Response model for ShortPixel API status, including status code, message, and usage details.");
|
|
20
20
|
const shortpixelGetApiStatus = require_action.action("SHORTPIXEL_GET_API_STATUS", {
|
|
21
21
|
slug: "shortpixel-get-api-status",
|
|
22
22
|
name: "Get API Status",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-api-status.cjs","names":["z","action"],"sources":["../../src/actions/get-api-status.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ShortpixelGetApiStatusInput
|
|
1
|
+
{"version":3,"file":"get-api-status.cjs","names":["z","action"],"sources":["../../src/actions/get-api-status.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ShortpixelGetApiStatusInput = z.object({}).describe(\"Empty request model for retrieving ShortPixel API status. Uses API key from metadata query parameters.\");\nconst ShortpixelGetApiStatus_StatusInfoSchema = z.object({\n Code: z.string().describe(\"Status code returned by the API (2=OK, 3=error, 9=over quota)\").nullable(),\n Message: z.string().describe(\"Human-readable message about the API status\").nullable(),\n}).passthrough().describe(\"Status information returned by the API.\");\nexport const ShortpixelGetApiStatusOutput = z.object({\n Status: ShortpixelGetApiStatus_StatusInfoSchema.nullable(),\n Unlimited: z.boolean().describe(\"Whether the account has unlimited API calls\").nullable(),\n DomainCheck: z.string().describe(\"Domain accessibility status\").nullable(),\n APICallsFree: z.string().describe(\"Number of free API calls available (as decimal string)\").nullable(),\n APICallsMade: z.string().describe(\"Number of API calls made (as decimal string)\").nullable(),\n APICallsQuota: z.union([z.number().int(), z.string()]),\n DateSubscription: z.string().describe(\"Subscription date in format 'YYYY-MM-DD HH:MM:SS'\").nullable(),\n APICallsMadeOneTime: z.string().describe(\"One-time API calls made (as decimal string)\").nullable(),\n APICallsQuotaOneTime: z.string().describe(\"One-time API calls quota (as decimal string)\").nullable(),\n}).passthrough().describe(\"Response model for ShortPixel API status, including status code, message, and usage details.\");\n\nexport const shortpixelGetApiStatus = action(\"SHORTPIXEL_GET_API_STATUS\", {\n slug: \"shortpixel-get-api-status\",\n name: \"Get API Status\",\n description: \"Tool to retrieve the current status of your API key, including available credits. Use when you need to monitor your account usage before making additional API calls.\",\n input: ShortpixelGetApiStatusInput,\n output: ShortpixelGetApiStatusOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,wGAAwG;AACzK,MAAM,0CAA0CA,IAAAA,EAAE,OAAO;CACvD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS;CACpG,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;AACvF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yCAAyC;AACnE,MAAa,+BAA+BA,IAAAA,EAAE,OAAO;CACnD,QAAQ,wCAAwC,SAAS;CACzD,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CACxF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CACzE,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;CACrG,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CAC3F,eAAeA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,GAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC;CACrD,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;CACpG,qBAAqBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CACjG,sBAAsBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;AACrG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8FAA8F;AAExH,MAAa,yBAAyBC,eAAAA,OAAO,6BAA6B;CACxE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,22 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/get-api-status.d.ts
|
|
4
|
-
declare const ShortpixelGetApiStatusInput: z.
|
|
5
|
-
declare const ShortpixelGetApiStatusOutput: z.
|
|
6
|
-
|
|
4
|
+
declare const ShortpixelGetApiStatusInput: z.ZodObject<{}, z.core.$strip>;
|
|
5
|
+
declare const ShortpixelGetApiStatusOutput: z.ZodObject<{
|
|
6
|
+
Status: z.ZodNullable<z.ZodObject<{
|
|
7
|
+
Code: z.ZodNullable<z.ZodString>;
|
|
8
|
+
Message: z.ZodNullable<z.ZodString>;
|
|
9
|
+
}, z.core.$loose>>;
|
|
10
|
+
Unlimited: z.ZodNullable<z.ZodBoolean>;
|
|
11
|
+
DomainCheck: z.ZodNullable<z.ZodString>;
|
|
12
|
+
APICallsFree: z.ZodNullable<z.ZodString>;
|
|
13
|
+
APICallsMade: z.ZodNullable<z.ZodString>;
|
|
14
|
+
APICallsQuota: z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>;
|
|
15
|
+
DateSubscription: z.ZodNullable<z.ZodString>;
|
|
16
|
+
APICallsMadeOneTime: z.ZodNullable<z.ZodString>;
|
|
17
|
+
APICallsQuotaOneTime: z.ZodNullable<z.ZodString>;
|
|
18
|
+
}, z.core.$loose>;
|
|
19
|
+
declare const shortpixelGetApiStatus: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
20
|
//#endregion
|
|
8
21
|
export { shortpixelGetApiStatus };
|
|
9
22
|
//# sourceMappingURL=get-api-status.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-api-status.d.cts","names":[],"sources":["../../src/actions/get-api-status.ts"],"mappings":";;;cAIa,2BAAA,
|
|
1
|
+
{"version":3,"file":"get-api-status.d.cts","names":[],"sources":["../../src/actions/get-api-status.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAK3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;cAY5B,sBAAA,gCAAsB,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -1,9 +1,22 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/get-api-status.d.ts
|
|
4
|
-
declare const ShortpixelGetApiStatusInput: z.
|
|
5
|
-
declare const ShortpixelGetApiStatusOutput: z.
|
|
6
|
-
|
|
4
|
+
declare const ShortpixelGetApiStatusInput: z.ZodObject<{}, z.core.$strip>;
|
|
5
|
+
declare const ShortpixelGetApiStatusOutput: z.ZodObject<{
|
|
6
|
+
Status: z.ZodNullable<z.ZodObject<{
|
|
7
|
+
Code: z.ZodNullable<z.ZodString>;
|
|
8
|
+
Message: z.ZodNullable<z.ZodString>;
|
|
9
|
+
}, z.core.$loose>>;
|
|
10
|
+
Unlimited: z.ZodNullable<z.ZodBoolean>;
|
|
11
|
+
DomainCheck: z.ZodNullable<z.ZodString>;
|
|
12
|
+
APICallsFree: z.ZodNullable<z.ZodString>;
|
|
13
|
+
APICallsMade: z.ZodNullable<z.ZodString>;
|
|
14
|
+
APICallsQuota: z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>;
|
|
15
|
+
DateSubscription: z.ZodNullable<z.ZodString>;
|
|
16
|
+
APICallsMadeOneTime: z.ZodNullable<z.ZodString>;
|
|
17
|
+
APICallsQuotaOneTime: z.ZodNullable<z.ZodString>;
|
|
18
|
+
}, z.core.$loose>;
|
|
19
|
+
declare const shortpixelGetApiStatus: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
20
|
//#endregion
|
|
8
21
|
export { shortpixelGetApiStatus };
|
|
9
22
|
//# sourceMappingURL=get-api-status.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-api-status.d.mts","names":[],"sources":["../../src/actions/get-api-status.ts"],"mappings":";;;cAIa,2BAAA,
|
|
1
|
+
{"version":3,"file":"get-api-status.d.mts","names":[],"sources":["../../src/actions/get-api-status.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAK3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;cAY5B,sBAAA,gCAAsB,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -3,9 +3,9 @@ import { z } from "zod";
|
|
|
3
3
|
//#region src/actions/get-api-status.ts
|
|
4
4
|
const ShortpixelGetApiStatusInput = z.object({}).describe("Empty request model for retrieving ShortPixel API status. Uses API key from metadata query parameters.");
|
|
5
5
|
const ShortpixelGetApiStatus_StatusInfoSchema = z.object({
|
|
6
|
-
Code: z.string().describe("Status code returned by the API (2=OK, 3=error, 9=over quota)"),
|
|
7
|
-
Message: z.string().describe("Human-readable message about the API status")
|
|
8
|
-
}).describe("Status information returned by the API.");
|
|
6
|
+
Code: z.string().describe("Status code returned by the API (2=OK, 3=error, 9=over quota)").nullable(),
|
|
7
|
+
Message: z.string().describe("Human-readable message about the API status").nullable()
|
|
8
|
+
}).passthrough().describe("Status information returned by the API.");
|
|
9
9
|
const shortpixelGetApiStatus = action("SHORTPIXEL_GET_API_STATUS", {
|
|
10
10
|
slug: "shortpixel-get-api-status",
|
|
11
11
|
name: "Get API Status",
|
|
@@ -13,15 +13,15 @@ const shortpixelGetApiStatus = action("SHORTPIXEL_GET_API_STATUS", {
|
|
|
13
13
|
input: ShortpixelGetApiStatusInput,
|
|
14
14
|
output: z.object({
|
|
15
15
|
Status: ShortpixelGetApiStatus_StatusInfoSchema.nullable(),
|
|
16
|
-
Unlimited: z.boolean().describe("Whether the account has unlimited API calls"),
|
|
17
|
-
DomainCheck: z.string().describe("Domain accessibility status"),
|
|
18
|
-
APICallsFree: z.string().describe("Number of free API calls available (as decimal string)"),
|
|
19
|
-
APICallsMade: z.string().describe("Number of API calls made (as decimal string)"),
|
|
16
|
+
Unlimited: z.boolean().describe("Whether the account has unlimited API calls").nullable(),
|
|
17
|
+
DomainCheck: z.string().describe("Domain accessibility status").nullable(),
|
|
18
|
+
APICallsFree: z.string().describe("Number of free API calls available (as decimal string)").nullable(),
|
|
19
|
+
APICallsMade: z.string().describe("Number of API calls made (as decimal string)").nullable(),
|
|
20
20
|
APICallsQuota: z.union([z.number().int(), z.string()]),
|
|
21
|
-
DateSubscription: z.string().describe("Subscription date in format 'YYYY-MM-DD HH:MM:SS'"),
|
|
22
|
-
APICallsMadeOneTime: z.string().describe("One-time API calls made (as decimal string)"),
|
|
23
|
-
APICallsQuotaOneTime: z.string().describe("One-time API calls quota (as decimal string)")
|
|
24
|
-
}).describe("Response model for ShortPixel API status, including status code, message, and usage details.")
|
|
21
|
+
DateSubscription: z.string().describe("Subscription date in format 'YYYY-MM-DD HH:MM:SS'").nullable(),
|
|
22
|
+
APICallsMadeOneTime: z.string().describe("One-time API calls made (as decimal string)").nullable(),
|
|
23
|
+
APICallsQuotaOneTime: z.string().describe("One-time API calls quota (as decimal string)").nullable()
|
|
24
|
+
}).passthrough().describe("Response model for ShortPixel API status, including status code, message, and usage details.")
|
|
25
25
|
});
|
|
26
26
|
//#endregion
|
|
27
27
|
export { shortpixelGetApiStatus };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-api-status.mjs","names":[],"sources":["../../src/actions/get-api-status.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ShortpixelGetApiStatusInput
|
|
1
|
+
{"version":3,"file":"get-api-status.mjs","names":[],"sources":["../../src/actions/get-api-status.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ShortpixelGetApiStatusInput = z.object({}).describe(\"Empty request model for retrieving ShortPixel API status. Uses API key from metadata query parameters.\");\nconst ShortpixelGetApiStatus_StatusInfoSchema = z.object({\n Code: z.string().describe(\"Status code returned by the API (2=OK, 3=error, 9=over quota)\").nullable(),\n Message: z.string().describe(\"Human-readable message about the API status\").nullable(),\n}).passthrough().describe(\"Status information returned by the API.\");\nexport const ShortpixelGetApiStatusOutput = z.object({\n Status: ShortpixelGetApiStatus_StatusInfoSchema.nullable(),\n Unlimited: z.boolean().describe(\"Whether the account has unlimited API calls\").nullable(),\n DomainCheck: z.string().describe(\"Domain accessibility status\").nullable(),\n APICallsFree: z.string().describe(\"Number of free API calls available (as decimal string)\").nullable(),\n APICallsMade: z.string().describe(\"Number of API calls made (as decimal string)\").nullable(),\n APICallsQuota: z.union([z.number().int(), z.string()]),\n DateSubscription: z.string().describe(\"Subscription date in format 'YYYY-MM-DD HH:MM:SS'\").nullable(),\n APICallsMadeOneTime: z.string().describe(\"One-time API calls made (as decimal string)\").nullable(),\n APICallsQuotaOneTime: z.string().describe(\"One-time API calls quota (as decimal string)\").nullable(),\n}).passthrough().describe(\"Response model for ShortPixel API status, including status code, message, and usage details.\");\n\nexport const shortpixelGetApiStatus = action(\"SHORTPIXEL_GET_API_STATUS\", {\n slug: \"shortpixel-get-api-status\",\n name: \"Get API Status\",\n description: \"Tool to retrieve the current status of your API key, including available credits. Use when you need to monitor your account usage before making additional API calls.\",\n input: ShortpixelGetApiStatusInput,\n output: ShortpixelGetApiStatusOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8B,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,wGAAwG;AACzK,MAAM,0CAA0C,EAAE,OAAO;CACvD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS;CACpG,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;AACvF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yCAAyC;AAanE,MAAa,yBAAyB,OAAO,6BAA6B;CACxE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAjB0C,EAAE,OAAO;EACnD,QAAQ,wCAAwC,SAAS;EACzD,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;EACxF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;EACzE,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;EACrG,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;EAC3F,eAAe,EAAE,MAAM,CAAC,EAAE,OAAO,CAAC,CAAC,IAAI,GAAG,EAAE,OAAO,CAAC,CAAC;EACrD,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;EACpG,qBAAqB,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;EACjG,sBAAsB,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CACrG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8FAOhB;AACV,CAAC"}
|
|
@@ -5,12 +5,12 @@ const ShortpixelGetCdnUsageInput = zod.z.object({ domain: zod.z.string().describ
|
|
|
5
5
|
const ShortpixelGetCdnUsageOutput = zod.z.object({
|
|
6
6
|
Email: zod.z.string().describe("Email associated with the domain").nullable().optional(),
|
|
7
7
|
IsAlias: zod.z.number().int().describe("Whether this is an alias domain (0=no, 1=yes)").nullable().optional(),
|
|
8
|
-
UsedCDN: zod.z.
|
|
8
|
+
UsedCDN: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Daily CDN traffic breakdown by date (date -> traffic value)").nullable().optional(),
|
|
9
9
|
APIQuota: zod.z.number().int().describe("Monthly API quota").nullable().optional(),
|
|
10
10
|
CDNQuota: zod.z.number().int().describe("Total CDN quota in bytes").nullable().optional(),
|
|
11
11
|
Unlimited: zod.z.string().describe("Whether the account has unlimited usage").nullable().optional(),
|
|
12
12
|
DaysToReset: zod.z.number().int().describe("Days until monthly quota resets").nullable().optional(),
|
|
13
|
-
UsedCredits: zod.z.
|
|
13
|
+
UsedCredits: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Daily credits usage breakdown by date (date -> credits value)").nullable().optional(),
|
|
14
14
|
FreeAPICalls: zod.z.string().describe("Number of free API calls used").nullable().optional(),
|
|
15
15
|
IsSubaccount: zod.z.number().int().describe("Whether this is a subaccount (0=no, 1=yes)").nullable().optional(),
|
|
16
16
|
PaidAPICalls: zod.z.string().describe("Number of paid API calls used").nullable().optional(),
|
|
@@ -18,7 +18,7 @@ const ShortpixelGetCdnUsageOutput = zod.z.object({
|
|
|
18
18
|
APIQuotaOneTime: zod.z.string().describe("One-time credits quota").nullable().optional(),
|
|
19
19
|
PaidAPICallsOneTime: zod.z.string().describe("Number of one-time credits used").nullable().optional(),
|
|
20
20
|
RemainingCDNTraffic: zod.z.number().int().describe("Remaining CDN traffic quota in bytes").nullable().optional()
|
|
21
|
-
}).describe("Response model for CDN usage statistics including traffic, API calls, quota, and historical breakdown.");
|
|
21
|
+
}).passthrough().describe("Response model for CDN usage statistics including traffic, API calls, quota, and historical breakdown.");
|
|
22
22
|
const shortpixelGetCdnUsage = require_action.action("SHORTPIXEL_GET_CDN_USAGE", {
|
|
23
23
|
slug: "shortpixel-get-cdn-usage",
|
|
24
24
|
name: "Get CDN Usage Statistics",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-cdn-usage.cjs","names":["z","action"],"sources":["../../src/actions/get-cdn-usage.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ShortpixelGetCdnUsageInput
|
|
1
|
+
{"version":3,"file":"get-cdn-usage.cjs","names":["z","action"],"sources":["../../src/actions/get-cdn-usage.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ShortpixelGetCdnUsageInput = z.object({\n domain: z.string().describe(\"Domain name to get CDN usage statistics for (e.g., example.com)\"),\n}).describe(\"Request model for retrieving CDN usage statistics for a domain.\");\nexport const ShortpixelGetCdnUsageOutput = z.object({\n Email: z.string().describe(\"Email associated with the domain\").nullable().optional(),\n IsAlias: z.number().int().describe(\"Whether this is an alias domain (0=no, 1=yes)\").nullable().optional(),\n UsedCDN: z.record(z.string(), z.unknown()).describe(\"Daily CDN traffic breakdown by date (date -> traffic value)\").nullable().optional(),\n APIQuota: z.number().int().describe(\"Monthly API quota\").nullable().optional(),\n CDNQuota: z.number().int().describe(\"Total CDN quota in bytes\").nullable().optional(),\n Unlimited: z.string().describe(\"Whether the account has unlimited usage\").nullable().optional(),\n DaysToReset: z.number().int().describe(\"Days until monthly quota resets\").nullable().optional(),\n UsedCredits: z.record(z.string(), z.unknown()).describe(\"Daily credits usage breakdown by date (date -> credits value)\").nullable().optional(),\n FreeAPICalls: z.string().describe(\"Number of free API calls used\").nullable().optional(),\n IsSubaccount: z.number().int().describe(\"Whether this is a subaccount (0=no, 1=yes)\").nullable().optional(),\n PaidAPICalls: z.string().describe(\"Number of paid API calls used\").nullable().optional(),\n UsedCDNTraffic: z.string().describe(\"Total CDN traffic used\").nullable().optional(),\n APIQuotaOneTime: z.string().describe(\"One-time credits quota\").nullable().optional(),\n PaidAPICallsOneTime: z.string().describe(\"Number of one-time credits used\").nullable().optional(),\n RemainingCDNTraffic: z.number().int().describe(\"Remaining CDN traffic quota in bytes\").nullable().optional(),\n}).passthrough().describe(\"Response model for CDN usage statistics including traffic, API calls, quota, and historical breakdown.\");\n\nexport const shortpixelGetCdnUsage = action(\"SHORTPIXEL_GET_CDN_USAGE\", {\n slug: \"shortpixel-get-cdn-usage\",\n name: \"Get CDN Usage Statistics\",\n description: \"Tool to retrieve detailed CDN usage statistics for a domain including traffic, API calls, monthly quota, remaining credits, and historical usage breakdown by date. Use when you need to monitor CDN consumption or check quota status.\",\n input: ShortpixelGetCdnUsageInput,\n output: ShortpixelGetCdnUsageOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6BA,IAAAA,EAAE,OAAO,EACjD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE,EAC/F,CAAC,CAAC,CAAC,SAAS,iEAAiE;AAC7E,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnF,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxG,SAASA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvI,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7E,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpF,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9F,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9F,aAAaA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7I,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvF,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1G,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvF,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClF,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnF,qBAAqBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChG,qBAAqBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC7G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wGAAwG;AAElI,MAAa,wBAAwBC,eAAAA,OAAO,4BAA4B;CACtE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,29 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/get-cdn-usage.d.ts
|
|
4
|
-
declare const ShortpixelGetCdnUsageInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const ShortpixelGetCdnUsageInput: z.ZodObject<{
|
|
5
|
+
domain: z.ZodString;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
declare const ShortpixelGetCdnUsageOutput: z.ZodObject<{
|
|
8
|
+
Email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
9
|
+
IsAlias: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
10
|
+
UsedCDN: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
11
|
+
APIQuota: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
12
|
+
CDNQuota: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
13
|
+
Unlimited: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14
|
+
DaysToReset: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
15
|
+
UsedCredits: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
16
|
+
FreeAPICalls: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
|
+
IsSubaccount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
18
|
+
PaidAPICalls: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
19
|
+
UsedCDNTraffic: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
20
|
+
APIQuotaOneTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
21
|
+
PaidAPICallsOneTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
22
|
+
RemainingCDNTraffic: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
23
|
+
}, z.core.$loose>;
|
|
24
|
+
declare const shortpixelGetCdnUsage: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
25
|
+
domain: string;
|
|
26
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
27
|
//#endregion
|
|
8
28
|
export { shortpixelGetCdnUsage };
|
|
9
29
|
//# sourceMappingURL=get-cdn-usage.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-cdn-usage.d.cts","names":[],"sources":["../../src/actions/get-cdn-usage.ts"],"mappings":";;;cAIa,0BAAA,
|
|
1
|
+
{"version":3,"file":"get-cdn-usage.d.cts","names":[],"sources":["../../src/actions/get-cdn-usage.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;cAG1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;cAkB3B,qBAAA,gCAAqB,wBAAA"}
|
|
@@ -1,9 +1,29 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/get-cdn-usage.d.ts
|
|
4
|
-
declare const ShortpixelGetCdnUsageInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const ShortpixelGetCdnUsageInput: z.ZodObject<{
|
|
5
|
+
domain: z.ZodString;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
declare const ShortpixelGetCdnUsageOutput: z.ZodObject<{
|
|
8
|
+
Email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
9
|
+
IsAlias: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
10
|
+
UsedCDN: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
11
|
+
APIQuota: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
12
|
+
CDNQuota: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
13
|
+
Unlimited: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14
|
+
DaysToReset: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
15
|
+
UsedCredits: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
16
|
+
FreeAPICalls: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
|
+
IsSubaccount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
18
|
+
PaidAPICalls: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
19
|
+
UsedCDNTraffic: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
20
|
+
APIQuotaOneTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
21
|
+
PaidAPICallsOneTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
22
|
+
RemainingCDNTraffic: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
23
|
+
}, z.core.$loose>;
|
|
24
|
+
declare const shortpixelGetCdnUsage: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
25
|
+
domain: string;
|
|
26
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
27
|
//#endregion
|
|
8
28
|
export { shortpixelGetCdnUsage };
|
|
9
29
|
//# sourceMappingURL=get-cdn-usage.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-cdn-usage.d.mts","names":[],"sources":["../../src/actions/get-cdn-usage.ts"],"mappings":";;;cAIa,0BAAA,
|
|
1
|
+
{"version":3,"file":"get-cdn-usage.d.mts","names":[],"sources":["../../src/actions/get-cdn-usage.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;cAG1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;cAkB3B,qBAAA,gCAAqB,wBAAA"}
|
|
@@ -8,12 +8,12 @@ const shortpixelGetCdnUsage = action("SHORTPIXEL_GET_CDN_USAGE", {
|
|
|
8
8
|
output: z.object({
|
|
9
9
|
Email: z.string().describe("Email associated with the domain").nullable().optional(),
|
|
10
10
|
IsAlias: z.number().int().describe("Whether this is an alias domain (0=no, 1=yes)").nullable().optional(),
|
|
11
|
-
UsedCDN: z.
|
|
11
|
+
UsedCDN: z.record(z.string(), z.unknown()).describe("Daily CDN traffic breakdown by date (date -> traffic value)").nullable().optional(),
|
|
12
12
|
APIQuota: z.number().int().describe("Monthly API quota").nullable().optional(),
|
|
13
13
|
CDNQuota: z.number().int().describe("Total CDN quota in bytes").nullable().optional(),
|
|
14
14
|
Unlimited: z.string().describe("Whether the account has unlimited usage").nullable().optional(),
|
|
15
15
|
DaysToReset: z.number().int().describe("Days until monthly quota resets").nullable().optional(),
|
|
16
|
-
UsedCredits: z.
|
|
16
|
+
UsedCredits: z.record(z.string(), z.unknown()).describe("Daily credits usage breakdown by date (date -> credits value)").nullable().optional(),
|
|
17
17
|
FreeAPICalls: z.string().describe("Number of free API calls used").nullable().optional(),
|
|
18
18
|
IsSubaccount: z.number().int().describe("Whether this is a subaccount (0=no, 1=yes)").nullable().optional(),
|
|
19
19
|
PaidAPICalls: z.string().describe("Number of paid API calls used").nullable().optional(),
|
|
@@ -21,7 +21,7 @@ const shortpixelGetCdnUsage = action("SHORTPIXEL_GET_CDN_USAGE", {
|
|
|
21
21
|
APIQuotaOneTime: z.string().describe("One-time credits quota").nullable().optional(),
|
|
22
22
|
PaidAPICallsOneTime: z.string().describe("Number of one-time credits used").nullable().optional(),
|
|
23
23
|
RemainingCDNTraffic: z.number().int().describe("Remaining CDN traffic quota in bytes").nullable().optional()
|
|
24
|
-
}).describe("Response model for CDN usage statistics including traffic, API calls, quota, and historical breakdown.")
|
|
24
|
+
}).passthrough().describe("Response model for CDN usage statistics including traffic, API calls, quota, and historical breakdown.")
|
|
25
25
|
});
|
|
26
26
|
//#endregion
|
|
27
27
|
export { shortpixelGetCdnUsage };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-cdn-usage.mjs","names":[],"sources":["../../src/actions/get-cdn-usage.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ShortpixelGetCdnUsageInput
|
|
1
|
+
{"version":3,"file":"get-cdn-usage.mjs","names":[],"sources":["../../src/actions/get-cdn-usage.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ShortpixelGetCdnUsageInput = z.object({\n domain: z.string().describe(\"Domain name to get CDN usage statistics for (e.g., example.com)\"),\n}).describe(\"Request model for retrieving CDN usage statistics for a domain.\");\nexport const ShortpixelGetCdnUsageOutput = z.object({\n Email: z.string().describe(\"Email associated with the domain\").nullable().optional(),\n IsAlias: z.number().int().describe(\"Whether this is an alias domain (0=no, 1=yes)\").nullable().optional(),\n UsedCDN: z.record(z.string(), z.unknown()).describe(\"Daily CDN traffic breakdown by date (date -> traffic value)\").nullable().optional(),\n APIQuota: z.number().int().describe(\"Monthly API quota\").nullable().optional(),\n CDNQuota: z.number().int().describe(\"Total CDN quota in bytes\").nullable().optional(),\n Unlimited: z.string().describe(\"Whether the account has unlimited usage\").nullable().optional(),\n DaysToReset: z.number().int().describe(\"Days until monthly quota resets\").nullable().optional(),\n UsedCredits: z.record(z.string(), z.unknown()).describe(\"Daily credits usage breakdown by date (date -> credits value)\").nullable().optional(),\n FreeAPICalls: z.string().describe(\"Number of free API calls used\").nullable().optional(),\n IsSubaccount: z.number().int().describe(\"Whether this is a subaccount (0=no, 1=yes)\").nullable().optional(),\n PaidAPICalls: z.string().describe(\"Number of paid API calls used\").nullable().optional(),\n UsedCDNTraffic: z.string().describe(\"Total CDN traffic used\").nullable().optional(),\n APIQuotaOneTime: z.string().describe(\"One-time credits quota\").nullable().optional(),\n PaidAPICallsOneTime: z.string().describe(\"Number of one-time credits used\").nullable().optional(),\n RemainingCDNTraffic: z.number().int().describe(\"Remaining CDN traffic quota in bytes\").nullable().optional(),\n}).passthrough().describe(\"Response model for CDN usage statistics including traffic, API calls, quota, and historical breakdown.\");\n\nexport const shortpixelGetCdnUsage = action(\"SHORTPIXEL_GET_CDN_USAGE\", {\n slug: \"shortpixel-get-cdn-usage\",\n name: \"Get CDN Usage Statistics\",\n description: \"Tool to retrieve detailed CDN usage statistics for a domain including traffic, API calls, monthly quota, remaining credits, and historical usage breakdown by date. Use when you need to monitor CDN consumption or check quota status.\",\n input: ShortpixelGetCdnUsageInput,\n output: ShortpixelGetCdnUsageOutput,\n});\n"],"mappings":";;AAyBA,MAAa,wBAAwB,OAAO,4BAA4B;CACtE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAzBwC,EAAE,OAAO,EACjD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE,EAC/F,CAAC,CAAC,CAAC,SAAS,iEAuBH;CACP,QAvByC,EAAE,OAAO;EAClD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACnF,SAAS,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACxG,SAAS,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvI,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC7E,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACpF,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC9F,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC9F,aAAa,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC7I,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvF,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1G,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvF,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAClF,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACnF,qBAAqB,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChG,qBAAqB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wGAOhB;AACV,CAAC"}
|
|
@@ -26,7 +26,7 @@ const ShortpixelOptimizeImagesByUrlInput = zod.z.object({
|
|
|
26
26
|
bg_remove: zod.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: zod.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: zod.z.number().int().describe("Preserve EXIF metadata in optimized images: 0 to remove (default), 1 to keep").optional(),
|
|
29
|
-
paramlist: zod.z.array(zod.z.
|
|
29
|
+
paramlist: zod.z.array(zod.z.record(zod.z.string(), zod.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: zod.z.number().int().describe("Target width in pixels for resizing. Required if resize is specified.").optional(),
|
|
31
31
|
resize_height: zod.z.number().int().describe("Target height in pixels for resizing. Required if resize is specified.").optional(),
|
|
32
32
|
plugin_version: zod.z.string().describe("5-character max alphanumeric code identifying your API client").optional(),
|
|
@@ -39,9 +39,9 @@ const ShortpixelOptimizeImagesByUrlInput = zod.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 = zod.z.object({
|
|
42
|
-
Code: zod.z.number().int().describe("Status code: 1 = scheduled for optimization, 2 = ready/completed, negative values indicate errors"),
|
|
43
|
-
Message: zod.z.string().describe("Human-readable status message describing the optimization result")
|
|
44
|
-
}).describe("Status information for an optimized image.");
|
|
42
|
+
Code: zod.z.number().int().describe("Status code: 1 = scheduled for optimization, 2 = ready/completed, negative values indicate errors").nullable(),
|
|
43
|
+
Message: zod.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 = zod.z.object({
|
|
46
46
|
Status: ShortpixelOptimizeImagesByUrl_OptimizationStatusSchema.nullable(),
|
|
47
47
|
LossyURL: zod.z.string().describe("URL of the lossy compressed version").nullable().optional(),
|
|
@@ -59,8 +59,8 @@ const ShortpixelOptimizeImagesByUrl_OptimizedImageSchema = zod.z.object({
|
|
|
59
59
|
WebPLosslessURL: zod.z.string().describe("URL of the WebP lossless version").nullable().optional(),
|
|
60
60
|
AVIFLoselessSize: zod.z.union([zod.z.number().int(), zod.z.string()]).nullable().optional(),
|
|
61
61
|
WebPLoselessSize: zod.z.union([zod.z.number().int(), zod.z.string()]).nullable().optional()
|
|
62
|
-
}).describe("Response data for a single optimized image.");
|
|
63
|
-
const ShortpixelOptimizeImagesByUrlOutput = zod.z.object({ results: zod.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.");
|
|
62
|
+
}).passthrough().describe("Response data for a single optimized image.");
|
|
63
|
+
const ShortpixelOptimizeImagesByUrlOutput = zod.z.object({ results: zod.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.");
|
|
64
64
|
const shortpixelOptimizeImagesByUrl = require_action.action("SHORTPIXEL_OPTIMIZE_IMAGES_BY_URL", {
|
|
65
65
|
slug: "shortpixel-optimize-images-by-url",
|
|
66
66
|
name: "Optimize Images by URL",
|