@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
package/dist/action.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"action.cjs","names":["shortpixel","executeShortpixelTool"],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { shortpixel } from \"./app\";\nimport { executeShortpixelTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input:
|
|
1
|
+
{"version":3,"file":"action.cjs","names":["shortpixel","executeShortpixelTool"],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { shortpixel } from \"./app\";\nimport { executeShortpixelTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: z.ZodType;\n },\n) {\n return shortpixel.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output as z.ZodTypeAny,\n async run(input) {\n return def.output.parse(await executeShortpixelTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAOA,YAAAA,WAAW,OAAO;EACvB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAMC,gBAAAA,sBAAsB,MAAM,KAAgC,CAAC;EAC7F;CACF,CAAC;AACH"}
|
package/dist/action.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { shortpixel } from \"./app\";\nimport { executeShortpixelTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input:
|
|
1
|
+
{"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { shortpixel } from \"./app\";\nimport { executeShortpixelTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: z.ZodType;\n },\n) {\n return shortpixel.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output as z.ZodTypeAny,\n async run(input) {\n return def.output.parse(await executeShortpixelTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAO,WAAW,OAAO;EACvB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAM,sBAAsB,MAAM,KAAgC,CAAC;EAC7F;CACF,CAAC;AACH"}
|
|
@@ -3,9 +3,9 @@ let zod = require("zod");
|
|
|
3
3
|
//#region src/actions/add-cdn-domain.ts
|
|
4
4
|
const ShortpixelAddCdnDomainInput = zod.z.object({ domain: zod.z.string().describe("Domain name to add to the CDN (e.g., example.com or test-domain-example.com)") }).describe("Request model for adding a domain to ShortPixel CDN.");
|
|
5
5
|
const ShortpixelAddCdnDomainOutput = zod.z.object({
|
|
6
|
-
Status: zod.z.number().int().describe("Status code returned by the API (2=OK, 3=error)"),
|
|
7
|
-
Message: zod.z.string().describe("Human-readable message about the operation result")
|
|
8
|
-
}).describe("Response model for adding a domain to ShortPixel CDN.");
|
|
6
|
+
Status: zod.z.number().int().describe("Status code returned by the API (2=OK, 3=error)").nullable(),
|
|
7
|
+
Message: zod.z.string().describe("Human-readable message about the operation result").nullable()
|
|
8
|
+
}).passthrough().describe("Response model for adding a domain to ShortPixel CDN.");
|
|
9
9
|
const shortpixelAddCdnDomain = require_action.action("SHORTPIXEL_ADD_CDN_DOMAIN", {
|
|
10
10
|
slug: "shortpixel-add-cdn-domain",
|
|
11
11
|
name: "Add CDN Domain",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"add-cdn-domain.cjs","names":["z","action"],"sources":["../../src/actions/add-cdn-domain.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ShortpixelAddCdnDomainInput
|
|
1
|
+
{"version":3,"file":"add-cdn-domain.cjs","names":["z","action"],"sources":["../../src/actions/add-cdn-domain.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ShortpixelAddCdnDomainInput = z.object({\n domain: z.string().describe(\"Domain name to add to the CDN (e.g., example.com or test-domain-example.com)\"),\n}).describe(\"Request model for adding a domain to ShortPixel CDN.\");\nexport const ShortpixelAddCdnDomainOutput = z.object({\n Status: z.number().int().describe(\"Status code returned by the API (2=OK, 3=error)\").nullable(),\n Message: z.string().describe(\"Human-readable message about the operation result\").nullable(),\n}).passthrough().describe(\"Response model for adding a domain to ShortPixel CDN.\");\n\nexport const shortpixelAddCdnDomain = action(\"SHORTPIXEL_ADD_CDN_DOMAIN\", {\n slug: \"shortpixel-add-cdn-domain\",\n name: \"Add CDN Domain\",\n description: \"Tool to add a new domain to the ShortPixel CDN system and associate it with your API key. Use when you need to register a domain for CDN services. If the domain already exists without a user, it will be associated with your API key.\",\n input: ShortpixelAddCdnDomainInput,\n output: ShortpixelAddCdnDomainOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO,EAClD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8EAA8E,EAC5G,CAAC,CAAC,CAAC,SAAS,sDAAsD;AAClE,MAAa,+BAA+BA,IAAAA,EAAE,OAAO;CACnD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;CAC9F,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;AAC7F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uDAAuD;AAEjF,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/add-cdn-domain.d.ts
|
|
4
|
-
declare const ShortpixelAddCdnDomainInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const ShortpixelAddCdnDomainInput: z.ZodObject<{
|
|
5
|
+
domain: z.ZodString;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
declare const ShortpixelAddCdnDomainOutput: z.ZodObject<{
|
|
8
|
+
Status: z.ZodNullable<z.ZodNumber>;
|
|
9
|
+
Message: z.ZodNullable<z.ZodString>;
|
|
10
|
+
}, z.core.$loose>;
|
|
11
|
+
declare const shortpixelAddCdnDomain: 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 { shortpixelAddCdnDomain };
|
|
9
16
|
//# sourceMappingURL=add-cdn-domain.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"add-cdn-domain.d.cts","names":[],"sources":["../../src/actions/add-cdn-domain.ts"],"mappings":";;;cAIa,2BAAA,
|
|
1
|
+
{"version":3,"file":"add-cdn-domain.d.cts","names":[],"sources":["../../src/actions/add-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/add-cdn-domain.d.ts
|
|
4
|
-
declare const ShortpixelAddCdnDomainInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const ShortpixelAddCdnDomainInput: z.ZodObject<{
|
|
5
|
+
domain: z.ZodString;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
declare const ShortpixelAddCdnDomainOutput: z.ZodObject<{
|
|
8
|
+
Status: z.ZodNullable<z.ZodNumber>;
|
|
9
|
+
Message: z.ZodNullable<z.ZodString>;
|
|
10
|
+
}, z.core.$loose>;
|
|
11
|
+
declare const shortpixelAddCdnDomain: 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 { shortpixelAddCdnDomain };
|
|
9
16
|
//# sourceMappingURL=add-cdn-domain.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"add-cdn-domain.d.mts","names":[],"sources":["../../src/actions/add-cdn-domain.ts"],"mappings":";;;cAIa,2BAAA,
|
|
1
|
+
{"version":3,"file":"add-cdn-domain.d.mts","names":[],"sources":["../../src/actions/add-cdn-domain.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;cAG3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;cAK5B,sBAAA,gCAAsB,wBAAA"}
|
|
@@ -6,9 +6,9 @@ const shortpixelAddCdnDomain = action("SHORTPIXEL_ADD_CDN_DOMAIN", {
|
|
|
6
6
|
description: "Tool to add a new domain to the ShortPixel CDN system and associate it with your API key. Use when you need to register a domain for CDN services. If the domain already exists without a user, it will be associated with your API key.",
|
|
7
7
|
input: z.object({ domain: z.string().describe("Domain name to add to the CDN (e.g., example.com or test-domain-example.com)") }).describe("Request model for adding a domain to ShortPixel CDN."),
|
|
8
8
|
output: z.object({
|
|
9
|
-
Status: z.number().int().describe("Status code returned by the API (2=OK, 3=error)"),
|
|
10
|
-
Message: z.string().describe("Human-readable message about the operation result")
|
|
11
|
-
}).describe("Response model for adding a domain to ShortPixel CDN.")
|
|
9
|
+
Status: z.number().int().describe("Status code returned by the API (2=OK, 3=error)").nullable(),
|
|
10
|
+
Message: z.string().describe("Human-readable message about the operation result").nullable()
|
|
11
|
+
}).passthrough().describe("Response model for adding a domain to ShortPixel CDN.")
|
|
12
12
|
});
|
|
13
13
|
//#endregion
|
|
14
14
|
export { shortpixelAddCdnDomain };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"add-cdn-domain.mjs","names":[],"sources":["../../src/actions/add-cdn-domain.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ShortpixelAddCdnDomainInput
|
|
1
|
+
{"version":3,"file":"add-cdn-domain.mjs","names":[],"sources":["../../src/actions/add-cdn-domain.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ShortpixelAddCdnDomainInput = z.object({\n domain: z.string().describe(\"Domain name to add to the CDN (e.g., example.com or test-domain-example.com)\"),\n}).describe(\"Request model for adding a domain to ShortPixel CDN.\");\nexport const ShortpixelAddCdnDomainOutput = z.object({\n Status: z.number().int().describe(\"Status code returned by the API (2=OK, 3=error)\").nullable(),\n Message: z.string().describe(\"Human-readable message about the operation result\").nullable(),\n}).passthrough().describe(\"Response model for adding a domain to ShortPixel CDN.\");\n\nexport const shortpixelAddCdnDomain = action(\"SHORTPIXEL_ADD_CDN_DOMAIN\", {\n slug: \"shortpixel-add-cdn-domain\",\n name: \"Add CDN Domain\",\n description: \"Tool to add a new domain to the ShortPixel CDN system and associate it with your API key. Use when you need to register a domain for CDN services. If the domain already exists without a user, it will be associated with your API key.\",\n input: ShortpixelAddCdnDomainInput,\n output: ShortpixelAddCdnDomainOutput,\n});\n"],"mappings":";;AAYA,MAAa,yBAAyB,OAAO,6BAA6B;CACxE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAZyC,EAAE,OAAO,EAClD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,8EAA8E,EAC5G,CAAC,CAAC,CAAC,SAAS,sDAUH;CACP,QAV0C,EAAE,OAAO;EACnD,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;EAC9F,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;CAC7F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uDAOhB;AACV,CAAC"}
|
|
@@ -3,9 +3,9 @@ let zod = require("zod");
|
|
|
3
3
|
//#region src/actions/bulk-purge-storage.ts
|
|
4
4
|
const ShortpixelBulkPurgeStorageInput = zod.z.object({ domain: zod.z.string().describe("The domain whose files will be purged from ShortPixel storage") }).describe("Request model for bulk purging storage of a domain on ShortPixel.");
|
|
5
5
|
const ShortpixelBulkPurgeStorageOutput = 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 purge operation")
|
|
8
|
-
}).describe("Response model for bulk purge storage 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 purge operation").nullable()
|
|
8
|
+
}).passthrough().describe("Response model for bulk purge storage action.");
|
|
9
9
|
const shortpixelBulkPurgeStorage = require_action.action("SHORTPIXEL_BULK_PURGE_STORAGE", {
|
|
10
10
|
slug: "shortpixel-bulk-purge-storage",
|
|
11
11
|
name: "Bulk Purge ShortPixel Storage",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bulk-purge-storage.cjs","names":["z","action"],"sources":["../../src/actions/bulk-purge-storage.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ShortpixelBulkPurgeStorageInput
|
|
1
|
+
{"version":3,"file":"bulk-purge-storage.cjs","names":["z","action"],"sources":["../../src/actions/bulk-purge-storage.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ShortpixelBulkPurgeStorageInput = z.object({\n domain: z.string().describe(\"The domain whose files will be purged from ShortPixel storage\"),\n}).describe(\"Request model for bulk purging storage of a domain on ShortPixel.\");\nexport const ShortpixelBulkPurgeStorageOutput = 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 purge operation\").nullable(),\n}).passthrough().describe(\"Response model for bulk purge storage action.\");\n\nexport const shortpixelBulkPurgeStorage = action(\"SHORTPIXEL_BULK_PURGE_STORAGE\", {\n slug: \"shortpixel-bulk-purge-storage\",\n name: \"Bulk Purge ShortPixel Storage\",\n description: \"Tool to purge all files stored on ShortPixel storage servers for a domain. Use when you need to remove all stored files for a site in bulk.\",\n input: ShortpixelBulkPurgeStorageInput,\n output: ShortpixelBulkPurgeStorageOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAkCA,IAAAA,EAAE,OAAO,EACtD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,EAC7F,CAAC,CAAC,CAAC,SAAS,mEAAmE;AAC/E,MAAa,mCAAmCA,IAAAA,EAAE,OAAO;CACvD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2EAA2E,CAAC,CAAC,SAAS;CACxH,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;AACxF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+CAA+C;AAEzE,MAAa,6BAA6BC,eAAAA,OAAO,iCAAiC;CAChF,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/bulk-purge-storage.d.ts
|
|
4
|
-
declare const ShortpixelBulkPurgeStorageInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const ShortpixelBulkPurgeStorageInput: z.ZodObject<{
|
|
5
|
+
domain: z.ZodString;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
declare const ShortpixelBulkPurgeStorageOutput: z.ZodObject<{
|
|
8
|
+
Status: z.ZodNullable<z.ZodNumber>;
|
|
9
|
+
Message: z.ZodNullable<z.ZodString>;
|
|
10
|
+
}, z.core.$loose>;
|
|
11
|
+
declare const shortpixelBulkPurgeStorage: 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 { shortpixelBulkPurgeStorage };
|
|
9
16
|
//# sourceMappingURL=bulk-purge-storage.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bulk-purge-storage.d.cts","names":[],"sources":["../../src/actions/bulk-purge-storage.ts"],"mappings":";;;cAIa,+BAAA,
|
|
1
|
+
{"version":3,"file":"bulk-purge-storage.d.cts","names":[],"sources":["../../src/actions/bulk-purge-storage.ts"],"mappings":";;;cAIa,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;cAG/B,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;cAKhC,0BAAA,gCAA0B,wBAAA"}
|
|
@@ -1,9 +1,16 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/bulk-purge-storage.d.ts
|
|
4
|
-
declare const ShortpixelBulkPurgeStorageInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const ShortpixelBulkPurgeStorageInput: z.ZodObject<{
|
|
5
|
+
domain: z.ZodString;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
declare const ShortpixelBulkPurgeStorageOutput: z.ZodObject<{
|
|
8
|
+
Status: z.ZodNullable<z.ZodNumber>;
|
|
9
|
+
Message: z.ZodNullable<z.ZodString>;
|
|
10
|
+
}, z.core.$loose>;
|
|
11
|
+
declare const shortpixelBulkPurgeStorage: 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 { shortpixelBulkPurgeStorage };
|
|
9
16
|
//# sourceMappingURL=bulk-purge-storage.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bulk-purge-storage.d.mts","names":[],"sources":["../../src/actions/bulk-purge-storage.ts"],"mappings":";;;cAIa,+BAAA,
|
|
1
|
+
{"version":3,"file":"bulk-purge-storage.d.mts","names":[],"sources":["../../src/actions/bulk-purge-storage.ts"],"mappings":";;;cAIa,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;cAG/B,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;cAKhC,0BAAA,gCAA0B,wBAAA"}
|
|
@@ -6,9 +6,9 @@ const shortpixelBulkPurgeStorage = action("SHORTPIXEL_BULK_PURGE_STORAGE", {
|
|
|
6
6
|
description: "Tool to purge all files stored on ShortPixel storage servers for a domain. Use when you need to remove all stored files for a site in bulk.",
|
|
7
7
|
input: z.object({ domain: z.string().describe("The domain whose files will be purged from ShortPixel storage") }).describe("Request model for bulk purging storage of a domain on ShortPixel."),
|
|
8
8
|
output: z.object({
|
|
9
|
-
Status: z.number().int().describe("Status code returned by the API (1=success, other values indicate issues)"),
|
|
10
|
-
Message: z.string().describe("Details on the result of the purge operation")
|
|
11
|
-
}).describe("Response model for bulk purge storage action.")
|
|
9
|
+
Status: z.number().int().describe("Status code returned by the API (1=success, other values indicate issues)").nullable(),
|
|
10
|
+
Message: z.string().describe("Details on the result of the purge operation").nullable()
|
|
11
|
+
}).passthrough().describe("Response model for bulk purge storage action.")
|
|
12
12
|
});
|
|
13
13
|
//#endregion
|
|
14
14
|
export { shortpixelBulkPurgeStorage };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bulk-purge-storage.mjs","names":[],"sources":["../../src/actions/bulk-purge-storage.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ShortpixelBulkPurgeStorageInput
|
|
1
|
+
{"version":3,"file":"bulk-purge-storage.mjs","names":[],"sources":["../../src/actions/bulk-purge-storage.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ShortpixelBulkPurgeStorageInput = z.object({\n domain: z.string().describe(\"The domain whose files will be purged from ShortPixel storage\"),\n}).describe(\"Request model for bulk purging storage of a domain on ShortPixel.\");\nexport const ShortpixelBulkPurgeStorageOutput = 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 purge operation\").nullable(),\n}).passthrough().describe(\"Response model for bulk purge storage action.\");\n\nexport const shortpixelBulkPurgeStorage = action(\"SHORTPIXEL_BULK_PURGE_STORAGE\", {\n slug: \"shortpixel-bulk-purge-storage\",\n name: \"Bulk Purge ShortPixel Storage\",\n description: \"Tool to purge all files stored on ShortPixel storage servers for a domain. Use when you need to remove all stored files for a site in bulk.\",\n input: ShortpixelBulkPurgeStorageInput,\n output: ShortpixelBulkPurgeStorageOutput,\n});\n"],"mappings":";;AAYA,MAAa,6BAA6B,OAAO,iCAAiC;CAChF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAZ6C,EAAE,OAAO,EACtD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,EAC7F,CAAC,CAAC,CAAC,SAAS,mEAUH;CACP,QAV8C,EAAE,OAAO;EACvD,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2EAA2E,CAAC,CAAC,SAAS;EACxH,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CACxF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+CAOhB;AACV,CAAC"}
|
|
@@ -4,8 +4,8 @@ let zod = require("zod");
|
|
|
4
4
|
const ShortpixelCheckImageStatusInput = zod.z.object({ url: zod.z.string().describe("URL of the image to check status for") }).describe("Request model for checking the optimization status of an image being processed by ShortPixel.");
|
|
5
5
|
const ShortpixelCheckImageStatus_StatusInfoSchema = zod.z.object({
|
|
6
6
|
Code: zod.z.union([zod.z.number().int(), zod.z.string()]),
|
|
7
|
-
Message: zod.z.string().describe("Human-readable message about the image status")
|
|
8
|
-
}).describe("Status information returned by the API.");
|
|
7
|
+
Message: zod.z.string().describe("Human-readable message about the image status").nullable()
|
|
8
|
+
}).passthrough().describe("Status information returned by the API.");
|
|
9
9
|
const ShortpixelCheckImageStatusOutput = zod.z.object({
|
|
10
10
|
Status: ShortpixelCheckImageStatus_StatusInfoSchema.nullable(),
|
|
11
11
|
LossyURL: zod.z.string().describe("URL of the lossy optimized image").nullable().optional(),
|
|
@@ -28,7 +28,7 @@ const ShortpixelCheckImageStatusOutput = zod.z.object({
|
|
|
28
28
|
zod.z.number(),
|
|
29
29
|
zod.z.string()
|
|
30
30
|
]).nullable().optional()
|
|
31
|
-
}).describe("Response model for ShortPixel image status check, including optimization results and URLs.");
|
|
31
|
+
}).passthrough().describe("Response model for ShortPixel image status check, including optimization results and URLs.");
|
|
32
32
|
const shortpixelCheckImageStatus = require_action.action("SHORTPIXEL_CHECK_IMAGE_STATUS", {
|
|
33
33
|
slug: "shortpixel-check-image-status",
|
|
34
34
|
name: "Check Image Status",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"check-image-status.cjs","names":["z","action"],"sources":["../../src/actions/check-image-status.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ShortpixelCheckImageStatusInput
|
|
1
|
+
{"version":3,"file":"check-image-status.cjs","names":["z","action"],"sources":["../../src/actions/check-image-status.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ShortpixelCheckImageStatusInput = z.object({\n url: z.string().describe(\"URL of the image to check status for\"),\n}).describe(\"Request model for checking the optimization status of an image being processed by ShortPixel.\");\nconst ShortpixelCheckImageStatus_StatusInfoSchema = z.object({\n Code: z.union([z.number().int(), z.string()]),\n Message: z.string().describe(\"Human-readable message about the image status\").nullable(),\n}).passthrough().describe(\"Status information returned by the API.\");\nexport const ShortpixelCheckImageStatusOutput = z.object({\n Status: ShortpixelCheckImageStatus_StatusInfoSchema.nullable(),\n LossyURL: z.string().describe(\"URL of the lossy optimized image\").nullable().optional(),\n BackupURL: z.string().describe(\"URL of the backup copy of the original image\").nullable().optional(),\n LossySize: z.number().int().describe(\"Size of the lossy optimized image in bytes\").nullable().optional(),\n LosslessURL: z.string().describe(\"URL of the lossless optimized image\").nullable().optional(),\n OriginalURL: z.string().describe(\"URL of the original image\").nullable().optional(),\n AVIFLossyURL: z.string().describe(\"URL of the AVIF lossy format image\").nullable().optional(),\n LosslessSize: z.number().int().describe(\"Size of the lossless optimized image in bytes\").nullable().optional(),\n OriginalSize: z.number().int().describe(\"Size of the original image in bytes\").nullable().optional(),\n WebPLossyURL: z.string().describe(\"URL of the WebP lossy format image\").nullable().optional(),\n AVIFLossySize: z.number().int().describe(\"Size of the AVIF lossy format image in bytes\").nullable().optional(),\n WebPLossySize: z.number().int().describe(\"Size of the WebP lossy format image in bytes\").nullable().optional(),\n AVIFLosslessURL: z.string().describe(\"URL of the AVIF lossless format image\").nullable().optional(),\n WebPLosslessURL: z.string().describe(\"URL of the WebP lossless format image\").nullable().optional(),\n AVIFLosslessSize: z.number().int().describe(\"Size of the AVIF lossless format image in bytes\").nullable().optional(),\n WebPLosslessSize: z.number().int().describe(\"Size of the WebP lossless format image in bytes\").nullable().optional(),\n PercentImprovement: z.union([z.number().int(), z.number(), z.string()]).nullable().optional(),\n}).passthrough().describe(\"Response model for ShortPixel image status check, including optimization results and URLs.\");\n\nexport const shortpixelCheckImageStatus = action(\"SHORTPIXEL_CHECK_IMAGE_STATUS\", {\n slug: \"shortpixel-check-image-status\",\n name: \"Check Image Status\",\n description: \"Tool to check the optimization status of an image being processed by ShortPixel. Returns current status of queued images including URLs and size information.\",\n input: ShortpixelCheckImageStatusInput,\n output: ShortpixelCheckImageStatusOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAkCA,IAAAA,EAAE,OAAO,EACtD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,EACjE,CAAC,CAAC,CAAC,SAAS,+FAA+F;AAC3G,MAAM,8CAA8CA,IAAAA,EAAE,OAAO;CAC3D,MAAMA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,GAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC;CAC5C,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;AACzF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yCAAyC;AACnE,MAAa,mCAAmCA,IAAAA,EAAE,OAAO;CACvD,QAAQ,4CAA4C,SAAS;CAC7D,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtF,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnG,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvG,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5F,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClF,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5F,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7G,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnG,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5F,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7G,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7G,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClG,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClG,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnH,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnH,oBAAoBA,IAAAA,EAAE,MAAM;EAACA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI;EAAGA,IAAAA,EAAE,OAAO;EAAGA,IAAAA,EAAE,OAAO;CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC9F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4FAA4F;AAEtH,MAAa,6BAA6BC,eAAAA,OAAO,iCAAiC;CAChF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,34 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/check-image-status.d.ts
|
|
4
|
-
declare const ShortpixelCheckImageStatusInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const ShortpixelCheckImageStatusInput: z.ZodObject<{
|
|
5
|
+
url: z.ZodString;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
declare const ShortpixelCheckImageStatusOutput: z.ZodObject<{
|
|
8
|
+
Status: z.ZodNullable<z.ZodObject<{
|
|
9
|
+
Code: z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>;
|
|
10
|
+
Message: z.ZodNullable<z.ZodString>;
|
|
11
|
+
}, z.core.$loose>>;
|
|
12
|
+
LossyURL: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13
|
+
BackupURL: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14
|
+
LossySize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
15
|
+
LosslessURL: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
|
+
OriginalURL: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
|
+
AVIFLossyURL: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
18
|
+
LosslessSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
19
|
+
OriginalSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
20
|
+
WebPLossyURL: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
21
|
+
AVIFLossySize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
22
|
+
WebPLossySize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
23
|
+
AVIFLosslessURL: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
24
|
+
WebPLosslessURL: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
25
|
+
AVIFLosslessSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
26
|
+
WebPLosslessSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
27
|
+
PercentImprovement: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodNumber, z.ZodString]>>>;
|
|
28
|
+
}, z.core.$loose>;
|
|
29
|
+
declare const shortpixelCheckImageStatus: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
30
|
+
url: string;
|
|
31
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
32
|
//#endregion
|
|
8
33
|
export { shortpixelCheckImageStatus };
|
|
9
34
|
//# sourceMappingURL=check-image-status.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"check-image-status.d.cts","names":[],"sources":["../../src/actions/check-image-status.ts"],"mappings":";;;cAIa,+BAAA,
|
|
1
|
+
{"version":3,"file":"check-image-status.d.cts","names":[],"sources":["../../src/actions/check-image-status.ts"],"mappings":";;;cAIa,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;cAO/B,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;cAoBhC,0BAAA,gCAA0B,wBAAA"}
|
|
@@ -1,9 +1,34 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/check-image-status.d.ts
|
|
4
|
-
declare const ShortpixelCheckImageStatusInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const ShortpixelCheckImageStatusInput: z.ZodObject<{
|
|
5
|
+
url: z.ZodString;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
declare const ShortpixelCheckImageStatusOutput: z.ZodObject<{
|
|
8
|
+
Status: z.ZodNullable<z.ZodObject<{
|
|
9
|
+
Code: z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>;
|
|
10
|
+
Message: z.ZodNullable<z.ZodString>;
|
|
11
|
+
}, z.core.$loose>>;
|
|
12
|
+
LossyURL: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13
|
+
BackupURL: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14
|
+
LossySize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
15
|
+
LosslessURL: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
|
+
OriginalURL: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
|
+
AVIFLossyURL: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
18
|
+
LosslessSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
19
|
+
OriginalSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
20
|
+
WebPLossyURL: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
21
|
+
AVIFLossySize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
22
|
+
WebPLossySize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
23
|
+
AVIFLosslessURL: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
24
|
+
WebPLosslessURL: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
25
|
+
AVIFLosslessSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
26
|
+
WebPLosslessSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
27
|
+
PercentImprovement: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodNumber, z.ZodString]>>>;
|
|
28
|
+
}, z.core.$loose>;
|
|
29
|
+
declare const shortpixelCheckImageStatus: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
30
|
+
url: string;
|
|
31
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
32
|
//#endregion
|
|
8
33
|
export { shortpixelCheckImageStatus };
|
|
9
34
|
//# sourceMappingURL=check-image-status.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"check-image-status.d.mts","names":[],"sources":["../../src/actions/check-image-status.ts"],"mappings":";;;cAIa,+BAAA,
|
|
1
|
+
{"version":3,"file":"check-image-status.d.mts","names":[],"sources":["../../src/actions/check-image-status.ts"],"mappings":";;;cAIa,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;cAO/B,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;cAoBhC,0BAAA,gCAA0B,wBAAA"}
|
|
@@ -4,8 +4,8 @@ import { z } from "zod";
|
|
|
4
4
|
const ShortpixelCheckImageStatusInput = z.object({ url: z.string().describe("URL of the image to check status for") }).describe("Request model for checking the optimization status of an image being processed by ShortPixel.");
|
|
5
5
|
const ShortpixelCheckImageStatus_StatusInfoSchema = z.object({
|
|
6
6
|
Code: z.union([z.number().int(), z.string()]),
|
|
7
|
-
Message: z.string().describe("Human-readable message about the image status")
|
|
8
|
-
}).describe("Status information returned by the API.");
|
|
7
|
+
Message: z.string().describe("Human-readable message about the image status").nullable()
|
|
8
|
+
}).passthrough().describe("Status information returned by the API.");
|
|
9
9
|
const shortpixelCheckImageStatus = action("SHORTPIXEL_CHECK_IMAGE_STATUS", {
|
|
10
10
|
slug: "shortpixel-check-image-status",
|
|
11
11
|
name: "Check Image Status",
|
|
@@ -33,7 +33,7 @@ const shortpixelCheckImageStatus = action("SHORTPIXEL_CHECK_IMAGE_STATUS", {
|
|
|
33
33
|
z.number(),
|
|
34
34
|
z.string()
|
|
35
35
|
]).nullable().optional()
|
|
36
|
-
}).describe("Response model for ShortPixel image status check, including optimization results and URLs.")
|
|
36
|
+
}).passthrough().describe("Response model for ShortPixel image status check, including optimization results and URLs.")
|
|
37
37
|
});
|
|
38
38
|
//#endregion
|
|
39
39
|
export { shortpixelCheckImageStatus };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"check-image-status.mjs","names":[],"sources":["../../src/actions/check-image-status.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ShortpixelCheckImageStatusInput
|
|
1
|
+
{"version":3,"file":"check-image-status.mjs","names":[],"sources":["../../src/actions/check-image-status.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ShortpixelCheckImageStatusInput = z.object({\n url: z.string().describe(\"URL of the image to check status for\"),\n}).describe(\"Request model for checking the optimization status of an image being processed by ShortPixel.\");\nconst ShortpixelCheckImageStatus_StatusInfoSchema = z.object({\n Code: z.union([z.number().int(), z.string()]),\n Message: z.string().describe(\"Human-readable message about the image status\").nullable(),\n}).passthrough().describe(\"Status information returned by the API.\");\nexport const ShortpixelCheckImageStatusOutput = z.object({\n Status: ShortpixelCheckImageStatus_StatusInfoSchema.nullable(),\n LossyURL: z.string().describe(\"URL of the lossy optimized image\").nullable().optional(),\n BackupURL: z.string().describe(\"URL of the backup copy of the original image\").nullable().optional(),\n LossySize: z.number().int().describe(\"Size of the lossy optimized image in bytes\").nullable().optional(),\n LosslessURL: z.string().describe(\"URL of the lossless optimized image\").nullable().optional(),\n OriginalURL: z.string().describe(\"URL of the original image\").nullable().optional(),\n AVIFLossyURL: z.string().describe(\"URL of the AVIF lossy format image\").nullable().optional(),\n LosslessSize: z.number().int().describe(\"Size of the lossless optimized image in bytes\").nullable().optional(),\n OriginalSize: z.number().int().describe(\"Size of the original image in bytes\").nullable().optional(),\n WebPLossyURL: z.string().describe(\"URL of the WebP lossy format image\").nullable().optional(),\n AVIFLossySize: z.number().int().describe(\"Size of the AVIF lossy format image in bytes\").nullable().optional(),\n WebPLossySize: z.number().int().describe(\"Size of the WebP lossy format image in bytes\").nullable().optional(),\n AVIFLosslessURL: z.string().describe(\"URL of the AVIF lossless format image\").nullable().optional(),\n WebPLosslessURL: z.string().describe(\"URL of the WebP lossless format image\").nullable().optional(),\n AVIFLosslessSize: z.number().int().describe(\"Size of the AVIF lossless format image in bytes\").nullable().optional(),\n WebPLosslessSize: z.number().int().describe(\"Size of the WebP lossless format image in bytes\").nullable().optional(),\n PercentImprovement: z.union([z.number().int(), z.number(), z.string()]).nullable().optional(),\n}).passthrough().describe(\"Response model for ShortPixel image status check, including optimization results and URLs.\");\n\nexport const shortpixelCheckImageStatus = action(\"SHORTPIXEL_CHECK_IMAGE_STATUS\", {\n slug: \"shortpixel-check-image-status\",\n name: \"Check Image Status\",\n description: \"Tool to check the optimization status of an image being processed by ShortPixel. Returns current status of queued images including URLs and size information.\",\n input: ShortpixelCheckImageStatusInput,\n output: ShortpixelCheckImageStatusOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAkC,EAAE,OAAO,EACtD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,EACjE,CAAC,CAAC,CAAC,SAAS,+FAA+F;AAC3G,MAAM,8CAA8C,EAAE,OAAO;CAC3D,MAAM,EAAE,MAAM,CAAC,EAAE,OAAO,CAAC,CAAC,IAAI,GAAG,EAAE,OAAO,CAAC,CAAC;CAC5C,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;AACzF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yCAAyC;AAqBnE,MAAa,6BAA6B,OAAO,iCAAiC;CAChF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAzB8C,EAAE,OAAO;EACvD,QAAQ,4CAA4C,SAAS;EAC7D,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtF,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACnG,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvG,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC5F,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAClF,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC5F,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC7G,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACnG,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC5F,eAAe,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC7G,eAAe,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC7G,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAClG,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAClG,kBAAkB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACnH,kBAAkB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACnH,oBAAoB,EAAE,MAAM;GAAC,EAAE,OAAO,CAAC,CAAC,IAAI;GAAG,EAAE,OAAO;GAAG,EAAE,OAAO;EAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4FAOhB;AACV,CAAC"}
|
|
@@ -3,10 +3,10 @@ let zod = require("zod");
|
|
|
3
3
|
//#region src/actions/clean-up-image.ts
|
|
4
4
|
const ShortpixelCleanUpImageInput = zod.z.object({ urllist: zod.z.array(zod.z.string()).describe("List of image URLs to remove from the processing queue") }).describe("Request model for cleaning up images from the ShortPixel processing queue.");
|
|
5
5
|
const ShortpixelCleanUpImage_StatusInfoSchema = zod.z.object({
|
|
6
|
-
Code: zod.z.number().int().describe("Status code returned by the API (negative values indicate errors)"),
|
|
7
|
-
Message: zod.z.string().describe("Human-readable message about the operation result")
|
|
8
|
-
}).describe("Status information returned by the API.");
|
|
9
|
-
const ShortpixelCleanUpImageOutput = zod.z.object({ Status: ShortpixelCleanUpImage_StatusInfoSchema.nullable() }).describe("Response model for cleanup image action.");
|
|
6
|
+
Code: zod.z.number().int().describe("Status code returned by the API (negative values indicate errors)").nullable(),
|
|
7
|
+
Message: zod.z.string().describe("Human-readable message about the operation result").nullable()
|
|
8
|
+
}).passthrough().describe("Status information returned by the API.");
|
|
9
|
+
const ShortpixelCleanUpImageOutput = zod.z.object({ Status: ShortpixelCleanUpImage_StatusInfoSchema.nullable() }).passthrough().describe("Response model for cleanup image action.");
|
|
10
10
|
const shortpixelCleanUpImage = require_action.action("SHORTPIXEL_CLEAN_UP_IMAGE", {
|
|
11
11
|
slug: "shortpixel-clean-up-image",
|
|
12
12
|
name: "Clean Up Image",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"clean-up-image.cjs","names":["z","action"],"sources":["../../src/actions/clean-up-image.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ShortpixelCleanUpImageInput
|
|
1
|
+
{"version":3,"file":"clean-up-image.cjs","names":["z","action"],"sources":["../../src/actions/clean-up-image.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ShortpixelCleanUpImageInput = z.object({\n urllist: z.array(z.string()).describe(\"List of image URLs to remove from the processing queue\"),\n}).describe(\"Request model for cleaning up images from the ShortPixel processing queue.\");\nconst ShortpixelCleanUpImage_StatusInfoSchema = z.object({\n Code: z.number().int().describe(\"Status code returned by the API (negative values indicate errors)\").nullable(),\n Message: z.string().describe(\"Human-readable message about the operation result\").nullable(),\n}).passthrough().describe(\"Status information returned by the API.\");\nexport const ShortpixelCleanUpImageOutput = z.object({\n Status: ShortpixelCleanUpImage_StatusInfoSchema.nullable(),\n}).passthrough().describe(\"Response model for cleanup image action.\");\n\nexport const shortpixelCleanUpImage = action(\"SHORTPIXEL_CLEAN_UP_IMAGE\", {\n slug: \"shortpixel-clean-up-image\",\n name: \"Clean Up Image\",\n description: \"Tool to remove images from the processing queue. Use when you need to optimize another image with the same URL but different contents within the next hour.\",\n input: ShortpixelCleanUpImageInput,\n output: ShortpixelCleanUpImageOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO,EAClD,SAASA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,wDAAwD,EAChG,CAAC,CAAC,CAAC,SAAS,4EAA4E;AACxF,MAAM,0CAA0CA,IAAAA,EAAE,OAAO;CACvD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS;CAC9G,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;AAC7F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yCAAyC;AACnE,MAAa,+BAA+BA,IAAAA,EAAE,OAAO,EACnD,QAAQ,wCAAwC,SAAS,EAC3D,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0CAA0C;AAEpE,MAAa,yBAAyBC,eAAAA,OAAO,6BAA6B;CACxE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,18 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/clean-up-image.d.ts
|
|
4
|
-
declare const ShortpixelCleanUpImageInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const ShortpixelCleanUpImageInput: z.ZodObject<{
|
|
5
|
+
urllist: z.ZodArray<z.ZodString>;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
declare const ShortpixelCleanUpImageOutput: z.ZodObject<{
|
|
8
|
+
Status: z.ZodNullable<z.ZodObject<{
|
|
9
|
+
Code: z.ZodNullable<z.ZodNumber>;
|
|
10
|
+
Message: z.ZodNullable<z.ZodString>;
|
|
11
|
+
}, z.core.$loose>>;
|
|
12
|
+
}, z.core.$loose>;
|
|
13
|
+
declare const shortpixelCleanUpImage: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
14
|
+
urllist: string[];
|
|
15
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
16
|
//#endregion
|
|
8
17
|
export { shortpixelCleanUpImage };
|
|
9
18
|
//# sourceMappingURL=clean-up-image.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"clean-up-image.d.cts","names":[],"sources":["../../src/actions/clean-up-image.ts"],"mappings":";;;cAIa,2BAAA,
|
|
1
|
+
{"version":3,"file":"clean-up-image.d.cts","names":[],"sources":["../../src/actions/clean-up-image.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;cAO3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;cAI5B,sBAAA,gCAAsB,wBAAA"}
|
|
@@ -1,9 +1,18 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/clean-up-image.d.ts
|
|
4
|
-
declare const ShortpixelCleanUpImageInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const ShortpixelCleanUpImageInput: z.ZodObject<{
|
|
5
|
+
urllist: z.ZodArray<z.ZodString>;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
declare const ShortpixelCleanUpImageOutput: z.ZodObject<{
|
|
8
|
+
Status: z.ZodNullable<z.ZodObject<{
|
|
9
|
+
Code: z.ZodNullable<z.ZodNumber>;
|
|
10
|
+
Message: z.ZodNullable<z.ZodString>;
|
|
11
|
+
}, z.core.$loose>>;
|
|
12
|
+
}, z.core.$loose>;
|
|
13
|
+
declare const shortpixelCleanUpImage: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
14
|
+
urllist: string[];
|
|
15
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
16
|
//#endregion
|
|
8
17
|
export { shortpixelCleanUpImage };
|
|
9
18
|
//# sourceMappingURL=clean-up-image.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"clean-up-image.d.mts","names":[],"sources":["../../src/actions/clean-up-image.ts"],"mappings":";;;cAIa,2BAAA,
|
|
1
|
+
{"version":3,"file":"clean-up-image.d.mts","names":[],"sources":["../../src/actions/clean-up-image.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;cAO3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;cAI5B,sBAAA,gCAAsB,wBAAA"}
|
|
@@ -3,15 +3,15 @@ import { z } from "zod";
|
|
|
3
3
|
//#region src/actions/clean-up-image.ts
|
|
4
4
|
const ShortpixelCleanUpImageInput = z.object({ urllist: z.array(z.string()).describe("List of image URLs to remove from the processing queue") }).describe("Request model for cleaning up images from the ShortPixel processing queue.");
|
|
5
5
|
const ShortpixelCleanUpImage_StatusInfoSchema = z.object({
|
|
6
|
-
Code: z.number().int().describe("Status code returned by the API (negative values indicate errors)"),
|
|
7
|
-
Message: z.string().describe("Human-readable message about the operation result")
|
|
8
|
-
}).describe("Status information returned by the API.");
|
|
6
|
+
Code: z.number().int().describe("Status code returned by the API (negative values indicate errors)").nullable(),
|
|
7
|
+
Message: z.string().describe("Human-readable message about the operation result").nullable()
|
|
8
|
+
}).passthrough().describe("Status information returned by the API.");
|
|
9
9
|
const shortpixelCleanUpImage = action("SHORTPIXEL_CLEAN_UP_IMAGE", {
|
|
10
10
|
slug: "shortpixel-clean-up-image",
|
|
11
11
|
name: "Clean Up Image",
|
|
12
12
|
description: "Tool to remove images from the processing queue. Use when you need to optimize another image with the same URL but different contents within the next hour.",
|
|
13
13
|
input: ShortpixelCleanUpImageInput,
|
|
14
|
-
output: z.object({ Status: ShortpixelCleanUpImage_StatusInfoSchema.nullable() }).describe("Response model for cleanup image action.")
|
|
14
|
+
output: z.object({ Status: ShortpixelCleanUpImage_StatusInfoSchema.nullable() }).passthrough().describe("Response model for cleanup image action.")
|
|
15
15
|
});
|
|
16
16
|
//#endregion
|
|
17
17
|
export { shortpixelCleanUpImage };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"clean-up-image.mjs","names":[],"sources":["../../src/actions/clean-up-image.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ShortpixelCleanUpImageInput
|
|
1
|
+
{"version":3,"file":"clean-up-image.mjs","names":[],"sources":["../../src/actions/clean-up-image.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ShortpixelCleanUpImageInput = z.object({\n urllist: z.array(z.string()).describe(\"List of image URLs to remove from the processing queue\"),\n}).describe(\"Request model for cleaning up images from the ShortPixel processing queue.\");\nconst ShortpixelCleanUpImage_StatusInfoSchema = z.object({\n Code: z.number().int().describe(\"Status code returned by the API (negative values indicate errors)\").nullable(),\n Message: z.string().describe(\"Human-readable message about the operation result\").nullable(),\n}).passthrough().describe(\"Status information returned by the API.\");\nexport const ShortpixelCleanUpImageOutput = z.object({\n Status: ShortpixelCleanUpImage_StatusInfoSchema.nullable(),\n}).passthrough().describe(\"Response model for cleanup image action.\");\n\nexport const shortpixelCleanUpImage = action(\"SHORTPIXEL_CLEAN_UP_IMAGE\", {\n slug: \"shortpixel-clean-up-image\",\n name: \"Clean Up Image\",\n description: \"Tool to remove images from the processing queue. Use when you need to optimize another image with the same URL but different contents within the next hour.\",\n input: ShortpixelCleanUpImageInput,\n output: ShortpixelCleanUpImageOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8B,EAAE,OAAO,EAClD,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,wDAAwD,EAChG,CAAC,CAAC,CAAC,SAAS,4EAA4E;AACxF,MAAM,0CAA0C,EAAE,OAAO;CACvD,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS;CAC9G,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;AAC7F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yCAAyC;AAKnE,MAAa,yBAAyB,OAAO,6BAA6B;CACxE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAT0C,EAAE,OAAO,EACnD,QAAQ,wCAAwC,SAAS,EAC3D,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0CAOhB;AACV,CAAC"}
|
|
@@ -36,11 +36,11 @@ const ShortpixelGetAdaptiveImageCdnInput = zod.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 = zod.z.object({
|
|
39
|
-
name: zod.z.string().describe("Name of the file"),
|
|
40
|
-
s3url: zod.z.string().describe("S3 URL of the downloaded file."),
|
|
41
|
-
mimetype: zod.z.string().describe("Mime type of the file.")
|
|
42
|
-
});
|
|
43
|
-
const ShortpixelGetAdaptiveImageCdnOutput = zod.z.object({ image: ShortpixelGetAdaptiveImageCdn_FileDownloadableSchema.nullable() }).describe("Response model for ShortPixel Adaptive Image CDN optimization.");
|
|
39
|
+
name: zod.z.string().describe("Name of the file").nullable(),
|
|
40
|
+
s3url: zod.z.string().describe("S3 URL of the downloaded file.").nullable(),
|
|
41
|
+
mimetype: zod.z.string().describe("Mime type of the file.").nullable()
|
|
42
|
+
}).passthrough();
|
|
43
|
+
const ShortpixelGetAdaptiveImageCdnOutput = zod.z.object({ image: ShortpixelGetAdaptiveImageCdn_FileDownloadableSchema.nullable() }).passthrough().describe("Response model for ShortPixel Adaptive Image CDN optimization.");
|
|
44
44
|
const shortpixelGetAdaptiveImageCdn = require_action.action("SHORTPIXEL_GET_ADAPTIVE_IMAGE_CDN", {
|
|
45
45
|
slug: "shortpixel-get-adaptive-image-cdn",
|
|
46
46
|
name: "Get Adaptive Image via CDN",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-adaptive-image-cdn.cjs","names":["z","action"],"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.cjs","names":["z","action"],"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,qCAAqCA,IAAAA,EAAE,OAAO;CACzD,MAAMA,IAAAA,EAAE,KAAK;EAAC;EAAS;EAAU;EAAS;EAAS;EAAQ;EAAQ;EAAa;EAAa;EAAa;CAAW,CAAC,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;CACjK,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;CAC7F,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;CAC/F,SAASA,IAAAA,EAAE,KAAK;EAAC;EAAQ;EAAY;EAAU;CAAO,CAAC,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CACvH,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wFAAwF;CACvH,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,qGAAqG,CAAC,CAAC,SAAS;CAChJ,WAAWA,IAAAA,EAAE,KAAK;EAAC;EAAQ;EAAQ;CAAM,CAAC,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CACnG,aAAaA,IAAAA,EAAE,KAAK;EAAC;EAAS;EAAO;CAAM,CAAC,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;AAC9F,CAAC,CAAC,CAAC,SAAS,+DAA+D;AAC3E,MAAM,uDAAuDA,IAAAA,EAAE,OAAO;CACpE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS;CACvD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CACtE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;AACnE,CAAC,CAAC,CAAC,YAAY;AACf,MAAa,sCAAsCA,IAAAA,EAAE,OAAO,EAC1D,OAAO,qDAAqD,SAAS,EACvE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gEAAgE;AAE1F,MAAa,gCAAgCC,eAAAA,OAAO,qCAAqC;CACvF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|