@keystrokehq/shortpixel 0.1.0

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.
Files changed (130) hide show
  1. package/README.md +17 -0
  2. package/dist/action.cjs +21 -0
  3. package/dist/action.cjs.map +1 -0
  4. package/dist/action.mjs +21 -0
  5. package/dist/action.mjs.map +1 -0
  6. package/dist/actions/add-cdn-domain.cjs +19 -0
  7. package/dist/actions/add-cdn-domain.cjs.map +1 -0
  8. package/dist/actions/add-cdn-domain.d.cts +9 -0
  9. package/dist/actions/add-cdn-domain.d.cts.map +1 -0
  10. package/dist/actions/add-cdn-domain.d.mts +9 -0
  11. package/dist/actions/add-cdn-domain.d.mts.map +1 -0
  12. package/dist/actions/add-cdn-domain.mjs +16 -0
  13. package/dist/actions/add-cdn-domain.mjs.map +1 -0
  14. package/dist/actions/bulk-purge-storage.cjs +19 -0
  15. package/dist/actions/bulk-purge-storage.cjs.map +1 -0
  16. package/dist/actions/bulk-purge-storage.d.cts +9 -0
  17. package/dist/actions/bulk-purge-storage.d.cts.map +1 -0
  18. package/dist/actions/bulk-purge-storage.d.mts +9 -0
  19. package/dist/actions/bulk-purge-storage.d.mts.map +1 -0
  20. package/dist/actions/bulk-purge-storage.mjs +16 -0
  21. package/dist/actions/bulk-purge-storage.mjs.map +1 -0
  22. package/dist/actions/check-image-status.cjs +42 -0
  23. package/dist/actions/check-image-status.cjs.map +1 -0
  24. package/dist/actions/check-image-status.d.cts +9 -0
  25. package/dist/actions/check-image-status.d.cts.map +1 -0
  26. package/dist/actions/check-image-status.d.mts +9 -0
  27. package/dist/actions/check-image-status.d.mts.map +1 -0
  28. package/dist/actions/check-image-status.mjs +41 -0
  29. package/dist/actions/check-image-status.mjs.map +1 -0
  30. package/dist/actions/clean-up-image.cjs +20 -0
  31. package/dist/actions/clean-up-image.cjs.map +1 -0
  32. package/dist/actions/clean-up-image.d.cts +9 -0
  33. package/dist/actions/clean-up-image.d.cts.map +1 -0
  34. package/dist/actions/clean-up-image.d.mts +9 -0
  35. package/dist/actions/clean-up-image.d.mts.map +1 -0
  36. package/dist/actions/clean-up-image.mjs +19 -0
  37. package/dist/actions/clean-up-image.mjs.map +1 -0
  38. package/dist/actions/get-adaptive-image-cdn.cjs +54 -0
  39. package/dist/actions/get-adaptive-image-cdn.cjs.map +1 -0
  40. package/dist/actions/get-adaptive-image-cdn.d.cts +9 -0
  41. package/dist/actions/get-adaptive-image-cdn.d.cts.map +1 -0
  42. package/dist/actions/get-adaptive-image-cdn.d.mts +9 -0
  43. package/dist/actions/get-adaptive-image-cdn.d.mts.map +1 -0
  44. package/dist/actions/get-adaptive-image-cdn.mjs +53 -0
  45. package/dist/actions/get-adaptive-image-cdn.mjs.map +1 -0
  46. package/dist/actions/get-api-status.cjs +30 -0
  47. package/dist/actions/get-api-status.cjs.map +1 -0
  48. package/dist/actions/get-api-status.d.cts +9 -0
  49. package/dist/actions/get-api-status.d.cts.map +1 -0
  50. package/dist/actions/get-api-status.d.mts +9 -0
  51. package/dist/actions/get-api-status.d.mts.map +1 -0
  52. package/dist/actions/get-api-status.mjs +29 -0
  53. package/dist/actions/get-api-status.mjs.map +1 -0
  54. package/dist/actions/get-cdn-usage.cjs +32 -0
  55. package/dist/actions/get-cdn-usage.cjs.map +1 -0
  56. package/dist/actions/get-cdn-usage.d.cts +9 -0
  57. package/dist/actions/get-cdn-usage.d.cts.map +1 -0
  58. package/dist/actions/get-cdn-usage.d.mts +9 -0
  59. package/dist/actions/get-cdn-usage.d.mts.map +1 -0
  60. package/dist/actions/get-cdn-usage.mjs +29 -0
  61. package/dist/actions/get-cdn-usage.mjs.map +1 -0
  62. package/dist/actions/index.cjs +25 -0
  63. package/dist/actions/index.d.cts +13 -0
  64. package/dist/actions/index.d.mts +13 -0
  65. package/dist/actions/index.mjs +13 -0
  66. package/dist/actions/optimize-images-by-url.cjs +74 -0
  67. package/dist/actions/optimize-images-by-url.cjs.map +1 -0
  68. package/dist/actions/optimize-images-by-url.d.cts +9 -0
  69. package/dist/actions/optimize-images-by-url.d.cts.map +1 -0
  70. package/dist/actions/optimize-images-by-url.d.mts +9 -0
  71. package/dist/actions/optimize-images-by-url.d.mts.map +1 -0
  72. package/dist/actions/optimize-images-by-url.mjs +73 -0
  73. package/dist/actions/optimize-images-by-url.mjs.map +1 -0
  74. package/dist/actions/read-cdn-domain.cjs +16 -0
  75. package/dist/actions/read-cdn-domain.cjs.map +1 -0
  76. package/dist/actions/read-cdn-domain.d.cts +9 -0
  77. package/dist/actions/read-cdn-domain.d.cts.map +1 -0
  78. package/dist/actions/read-cdn-domain.d.mts +9 -0
  79. package/dist/actions/read-cdn-domain.d.mts.map +1 -0
  80. package/dist/actions/read-cdn-domain.mjs +13 -0
  81. package/dist/actions/read-cdn-domain.mjs.map +1 -0
  82. package/dist/actions/revoke-cdn-domain.cjs +19 -0
  83. package/dist/actions/revoke-cdn-domain.cjs.map +1 -0
  84. package/dist/actions/revoke-cdn-domain.d.cts +9 -0
  85. package/dist/actions/revoke-cdn-domain.d.cts.map +1 -0
  86. package/dist/actions/revoke-cdn-domain.d.mts +9 -0
  87. package/dist/actions/revoke-cdn-domain.d.mts.map +1 -0
  88. package/dist/actions/revoke-cdn-domain.mjs +16 -0
  89. package/dist/actions/revoke-cdn-domain.mjs.map +1 -0
  90. package/dist/actions/set-cdn-domain.cjs +19 -0
  91. package/dist/actions/set-cdn-domain.cjs.map +1 -0
  92. package/dist/actions/set-cdn-domain.d.cts +9 -0
  93. package/dist/actions/set-cdn-domain.d.cts.map +1 -0
  94. package/dist/actions/set-cdn-domain.d.mts +9 -0
  95. package/dist/actions/set-cdn-domain.d.mts.map +1 -0
  96. package/dist/actions/set-cdn-domain.mjs +16 -0
  97. package/dist/actions/set-cdn-domain.mjs.map +1 -0
  98. package/dist/actions/upload-and-optimize-images.cjs +52 -0
  99. package/dist/actions/upload-and-optimize-images.cjs.map +1 -0
  100. package/dist/actions/upload-and-optimize-images.d.cts +9 -0
  101. package/dist/actions/upload-and-optimize-images.d.cts.map +1 -0
  102. package/dist/actions/upload-and-optimize-images.d.mts +9 -0
  103. package/dist/actions/upload-and-optimize-images.d.mts.map +1 -0
  104. package/dist/actions/upload-and-optimize-images.mjs +51 -0
  105. package/dist/actions/upload-and-optimize-images.mjs.map +1 -0
  106. package/dist/app.cjs +9 -0
  107. package/dist/app.cjs.map +1 -0
  108. package/dist/app.d.cts +5 -0
  109. package/dist/app.d.cts.map +1 -0
  110. package/dist/app.d.mts +5 -0
  111. package/dist/app.d.mts.map +1 -0
  112. package/dist/app.mjs +10 -0
  113. package/dist/app.mjs.map +1 -0
  114. package/dist/catalog.cjs +15 -0
  115. package/dist/catalog.cjs.map +1 -0
  116. package/dist/catalog.d.cts +14 -0
  117. package/dist/catalog.d.cts.map +1 -0
  118. package/dist/catalog.d.mts +14 -0
  119. package/dist/catalog.d.mts.map +1 -0
  120. package/dist/catalog.mjs +15 -0
  121. package/dist/catalog.mjs.map +1 -0
  122. package/dist/execute.cjs +18 -0
  123. package/dist/execute.cjs.map +1 -0
  124. package/dist/execute.mjs +18 -0
  125. package/dist/execute.mjs.map +1 -0
  126. package/dist/index.cjs +30 -0
  127. package/dist/index.d.cts +15 -0
  128. package/dist/index.d.mts +15 -0
  129. package/dist/index.mjs +16 -0
  130. package/package.json +49 -0
@@ -0,0 +1,16 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/read-cdn-domain.ts
4
+ const ShortpixelReadCdnDomainInput = zod.z.object({ domain: zod.z.string().describe("Domain name to check CDN status and quota (e.g., example.com)") }).describe("Request model for checking the status of a domain and its CDN quota on ShortPixel.");
5
+ const ShortpixelReadCdnDomainOutput = zod.z.object({ Status: zod.z.number().int().describe("Status code: 2=OK (credits available), 1=credits almost exhausted, -1=credits exhausted, -2=credits used up some time ago, -3=domain not reachable") }).describe("Response model for reading CDN domain status and quota information.");
6
+ const shortpixelReadCdnDomain = require_action.action("SHORTPIXEL_READ_CDN_DOMAIN", {
7
+ slug: "shortpixel-read-cdn-domain",
8
+ name: "Read CDN Domain Status",
9
+ description: "Tool to check the status of a domain and its CDN quota on ShortPixel. Returns a status code indicating credit availability. Use when you need to verify domain accessibility and quota status.",
10
+ input: ShortpixelReadCdnDomainInput,
11
+ output: ShortpixelReadCdnDomainOutput
12
+ });
13
+ //#endregion
14
+ exports.shortpixelReadCdnDomain = shortpixelReadCdnDomain;
15
+
16
+ //# sourceMappingURL=read-cdn-domain.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"read-cdn-domain.cjs","names":["z","action"],"sources":["../../src/actions/read-cdn-domain.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ShortpixelReadCdnDomainInput: z.ZodTypeAny = z.object({\n domain: z.string().describe(\"Domain name to check CDN status and quota (e.g., example.com)\"),\n}).describe(\"Request model for checking the status of a domain and its CDN quota on ShortPixel.\");\nexport const ShortpixelReadCdnDomainOutput: z.ZodTypeAny = z.object({\n Status: z.number().int().describe(\"Status code: 2=OK (credits available), 1=credits almost exhausted, -1=credits exhausted, -2=credits used up some time ago, -3=domain not reachable\"),\n}).describe(\"Response model for reading CDN domain status and quota information.\");\n\nexport const shortpixelReadCdnDomain = action(\"SHORTPIXEL_READ_CDN_DOMAIN\", {\n slug: \"shortpixel-read-cdn-domain\",\n name: \"Read CDN Domain Status\",\n description: \"Tool to check the status of a domain and its CDN quota on ShortPixel. Returns a status code indicating credit availability. Use when you need to verify domain accessibility and quota status.\",\n input: ShortpixelReadCdnDomainInput,\n output: ShortpixelReadCdnDomainOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA6CA,IAAAA,EAAE,OAAO,EACjE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,EAC7F,CAAC,CAAC,CAAC,SAAS,oFAAoF;AAChG,MAAa,gCAA8CA,IAAAA,EAAE,OAAO,EAClE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oJAAoJ,EACxL,CAAC,CAAC,CAAC,SAAS,qEAAqE;AAEjF,MAAa,0BAA0BC,eAAAA,OAAO,8BAA8B;CAC1E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/read-cdn-domain.d.ts
4
+ declare const ShortpixelReadCdnDomainInput: z.ZodTypeAny;
5
+ declare const ShortpixelReadCdnDomainOutput: z.ZodTypeAny;
6
+ declare const shortpixelReadCdnDomain: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { shortpixelReadCdnDomain };
9
+ //# sourceMappingURL=read-cdn-domain.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"read-cdn-domain.d.cts","names":[],"sources":["../../src/actions/read-cdn-domain.ts"],"mappings":";;;cAIa,4BAAA,EAA8B,CAAA,CAAE,UAEoD;AAAA,cACpF,6BAAA,EAA+B,CAAA,CAAE,UAEoC;AAAA,cAErE,uBAAA,gCAAuB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/read-cdn-domain.d.ts
4
+ declare const ShortpixelReadCdnDomainInput: z.ZodTypeAny;
5
+ declare const ShortpixelReadCdnDomainOutput: z.ZodTypeAny;
6
+ declare const shortpixelReadCdnDomain: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { shortpixelReadCdnDomain };
9
+ //# sourceMappingURL=read-cdn-domain.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"read-cdn-domain.d.mts","names":[],"sources":["../../src/actions/read-cdn-domain.ts"],"mappings":";;;cAIa,4BAAA,EAA8B,CAAA,CAAE,UAEoD;AAAA,cACpF,6BAAA,EAA+B,CAAA,CAAE,UAEoC;AAAA,cAErE,uBAAA,gCAAuB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,13 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ const shortpixelReadCdnDomain = action("SHORTPIXEL_READ_CDN_DOMAIN", {
4
+ slug: "shortpixel-read-cdn-domain",
5
+ name: "Read CDN Domain Status",
6
+ description: "Tool to check the status of a domain and its CDN quota on ShortPixel. Returns a status code indicating credit availability. Use when you need to verify domain accessibility and quota status.",
7
+ input: z.object({ domain: z.string().describe("Domain name to check CDN status and quota (e.g., example.com)") }).describe("Request model for checking the status of a domain and its CDN quota on ShortPixel."),
8
+ output: z.object({ Status: z.number().int().describe("Status code: 2=OK (credits available), 1=credits almost exhausted, -1=credits exhausted, -2=credits used up some time ago, -3=domain not reachable") }).describe("Response model for reading CDN domain status and quota information.")
9
+ });
10
+ //#endregion
11
+ export { shortpixelReadCdnDomain };
12
+
13
+ //# sourceMappingURL=read-cdn-domain.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"read-cdn-domain.mjs","names":[],"sources":["../../src/actions/read-cdn-domain.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ShortpixelReadCdnDomainInput: z.ZodTypeAny = z.object({\n domain: z.string().describe(\"Domain name to check CDN status and quota (e.g., example.com)\"),\n}).describe(\"Request model for checking the status of a domain and its CDN quota on ShortPixel.\");\nexport const ShortpixelReadCdnDomainOutput: z.ZodTypeAny = z.object({\n Status: z.number().int().describe(\"Status code: 2=OK (credits available), 1=credits almost exhausted, -1=credits exhausted, -2=credits used up some time ago, -3=domain not reachable\"),\n}).describe(\"Response model for reading CDN domain status and quota information.\");\n\nexport const shortpixelReadCdnDomain = action(\"SHORTPIXEL_READ_CDN_DOMAIN\", {\n slug: \"shortpixel-read-cdn-domain\",\n name: \"Read CDN Domain Status\",\n description: \"Tool to check the status of a domain and its CDN quota on ShortPixel. Returns a status code indicating credit availability. Use when you need to verify domain accessibility and quota status.\",\n input: ShortpixelReadCdnDomainInput,\n output: ShortpixelReadCdnDomainOutput,\n});\n"],"mappings":";;AAWA,MAAa,0BAA0B,OAAO,8BAA8B;CAC1E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAXwD,EAAE,OAAO,EACjE,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,EAC7F,CAAC,CAAC,CAAC,SAAS,oFASH;CACP,QATyD,EAAE,OAAO,EAClE,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oJAAoJ,EACxL,CAAC,CAAC,CAAC,SAAS,qEAOF;AACV,CAAC"}
@@ -0,0 +1,19 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/revoke-cdn-domain.ts
4
+ const ShortpixelRevokeCdnDomainInput = zod.z.object({ domain: zod.z.string().describe("Domain name to revoke from ShortPixel CDN (e.g., example.com)") }).describe("Request model for revoking a domain association from ShortPixel CDN.");
5
+ const ShortpixelRevokeCdnDomainOutput = zod.z.object({
6
+ Status: zod.z.number().int().describe("Status code returned by the API (1=success, other values indicate issues or insufficient rights)"),
7
+ Message: zod.z.string().describe("Details on the result of the revoke operation")
8
+ }).describe("Response model for revoking a CDN domain association.");
9
+ const shortpixelRevokeCdnDomain = require_action.action("SHORTPIXEL_REVOKE_CDN_DOMAIN", {
10
+ slug: "shortpixel-revoke-cdn-domain",
11
+ name: "Revoke CDN Domain",
12
+ description: "Tool to revoke a domain association from ShortPixel CDN. Only works if the API key belongs to the current domain owner. Use when you need to remove the association between a domain and the user account.",
13
+ input: ShortpixelRevokeCdnDomainInput,
14
+ output: ShortpixelRevokeCdnDomainOutput
15
+ });
16
+ //#endregion
17
+ exports.shortpixelRevokeCdnDomain = shortpixelRevokeCdnDomain;
18
+
19
+ //# sourceMappingURL=revoke-cdn-domain.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"revoke-cdn-domain.cjs","names":["z","action"],"sources":["../../src/actions/revoke-cdn-domain.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ShortpixelRevokeCdnDomainInput: z.ZodTypeAny = z.object({\n domain: z.string().describe(\"Domain name to revoke from ShortPixel CDN (e.g., example.com)\"),\n}).describe(\"Request model for revoking a domain association from ShortPixel CDN.\");\nexport const ShortpixelRevokeCdnDomainOutput: z.ZodTypeAny = z.object({\n Status: z.number().int().describe(\"Status code returned by the API (1=success, other values indicate issues or insufficient rights)\"),\n Message: z.string().describe(\"Details on the result of the revoke operation\"),\n}).describe(\"Response model for revoking a CDN domain association.\");\n\nexport const shortpixelRevokeCdnDomain = action(\"SHORTPIXEL_REVOKE_CDN_DOMAIN\", {\n slug: \"shortpixel-revoke-cdn-domain\",\n name: \"Revoke CDN Domain\",\n description: \"Tool to revoke a domain association from ShortPixel CDN. Only works if the API key belongs to the current domain owner. Use when you need to remove the association between a domain and the user account.\",\n input: ShortpixelRevokeCdnDomainInput,\n output: ShortpixelRevokeCdnDomainOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAA+CA,IAAAA,EAAE,OAAO,EACnE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,EAC7F,CAAC,CAAC,CAAC,SAAS,sEAAsE;AAClF,MAAa,kCAAgDA,IAAAA,EAAE,OAAO;CACpE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kGAAkG;CACpI,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C;AAC9E,CAAC,CAAC,CAAC,SAAS,uDAAuD;AAEnE,MAAa,4BAA4BC,eAAAA,OAAO,gCAAgC;CAC9E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/revoke-cdn-domain.d.ts
4
+ declare const ShortpixelRevokeCdnDomainInput: z.ZodTypeAny;
5
+ declare const ShortpixelRevokeCdnDomainOutput: z.ZodTypeAny;
6
+ declare const shortpixelRevokeCdnDomain: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { shortpixelRevokeCdnDomain };
9
+ //# sourceMappingURL=revoke-cdn-domain.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"revoke-cdn-domain.d.cts","names":[],"sources":["../../src/actions/revoke-cdn-domain.ts"],"mappings":";;;cAIa,8BAAA,EAAgC,CAAA,CAAE,UAEoC;AAAA,cACtE,+BAAA,EAAiC,CAAA,CAAE,UAGoB;AAAA,cAEvD,yBAAA,gCAAyB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/revoke-cdn-domain.d.ts
4
+ declare const ShortpixelRevokeCdnDomainInput: z.ZodTypeAny;
5
+ declare const ShortpixelRevokeCdnDomainOutput: z.ZodTypeAny;
6
+ declare const shortpixelRevokeCdnDomain: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { shortpixelRevokeCdnDomain };
9
+ //# sourceMappingURL=revoke-cdn-domain.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"revoke-cdn-domain.d.mts","names":[],"sources":["../../src/actions/revoke-cdn-domain.ts"],"mappings":";;;cAIa,8BAAA,EAAgC,CAAA,CAAE,UAEoC;AAAA,cACtE,+BAAA,EAAiC,CAAA,CAAE,UAGoB;AAAA,cAEvD,yBAAA,gCAAyB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,16 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ const shortpixelRevokeCdnDomain = action("SHORTPIXEL_REVOKE_CDN_DOMAIN", {
4
+ slug: "shortpixel-revoke-cdn-domain",
5
+ name: "Revoke CDN Domain",
6
+ description: "Tool to revoke a domain association from ShortPixel CDN. Only works if the API key belongs to the current domain owner. Use when you need to remove the association between a domain and the user account.",
7
+ input: z.object({ domain: z.string().describe("Domain name to revoke from ShortPixel CDN (e.g., example.com)") }).describe("Request model for revoking a domain association from ShortPixel CDN."),
8
+ output: z.object({
9
+ Status: z.number().int().describe("Status code returned by the API (1=success, other values indicate issues or insufficient rights)"),
10
+ Message: z.string().describe("Details on the result of the revoke operation")
11
+ }).describe("Response model for revoking a CDN domain association.")
12
+ });
13
+ //#endregion
14
+ export { shortpixelRevokeCdnDomain };
15
+
16
+ //# sourceMappingURL=revoke-cdn-domain.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"revoke-cdn-domain.mjs","names":[],"sources":["../../src/actions/revoke-cdn-domain.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ShortpixelRevokeCdnDomainInput: z.ZodTypeAny = z.object({\n domain: z.string().describe(\"Domain name to revoke from ShortPixel CDN (e.g., example.com)\"),\n}).describe(\"Request model for revoking a domain association from ShortPixel CDN.\");\nexport const ShortpixelRevokeCdnDomainOutput: z.ZodTypeAny = z.object({\n Status: z.number().int().describe(\"Status code returned by the API (1=success, other values indicate issues or insufficient rights)\"),\n Message: z.string().describe(\"Details on the result of the revoke operation\"),\n}).describe(\"Response model for revoking a CDN domain association.\");\n\nexport const shortpixelRevokeCdnDomain = action(\"SHORTPIXEL_REVOKE_CDN_DOMAIN\", {\n slug: \"shortpixel-revoke-cdn-domain\",\n name: \"Revoke CDN Domain\",\n description: \"Tool to revoke a domain association from ShortPixel CDN. Only works if the API key belongs to the current domain owner. Use when you need to remove the association between a domain and the user account.\",\n input: ShortpixelRevokeCdnDomainInput,\n output: ShortpixelRevokeCdnDomainOutput,\n});\n"],"mappings":";;AAYA,MAAa,4BAA4B,OAAO,gCAAgC;CAC9E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAZ0D,EAAE,OAAO,EACnE,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,EAC7F,CAAC,CAAC,CAAC,SAAS,sEAUH;CACP,QAV2D,EAAE,OAAO;EACpE,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kGAAkG;EACpI,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C;CAC9E,CAAC,CAAC,CAAC,SAAS,uDAOF;AACV,CAAC"}
@@ -0,0 +1,19 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/set-cdn-domain.ts
4
+ const ShortpixelSetCdnDomainInput = zod.z.object({ domain: zod.z.string().describe("Domain name to associate with the API key (e.g., example.com)") }).describe("Request model for associating an API key with an existing domain.");
5
+ const ShortpixelSetCdnDomainOutput = zod.z.object({
6
+ Status: zod.z.number().int().describe("Status code returned by the API (1=success, other values indicate issues)"),
7
+ Message: zod.z.string().describe("Details on the result of the set domain operation")
8
+ }).describe("Response model for set CDN domain action.");
9
+ const shortpixelSetCdnDomain = require_action.action("SHORTPIXEL_SET_CDN_DOMAIN", {
10
+ slug: "shortpixel-set-cdn-domain",
11
+ name: "Set CDN Domain",
12
+ description: "Tool to associate an API key with an existing domain. Unlike add-domain, this does not create a new domain - it only associates a user ID if not already associated. Use when you need to claim unassociated domains.",
13
+ input: ShortpixelSetCdnDomainInput,
14
+ output: ShortpixelSetCdnDomainOutput
15
+ });
16
+ //#endregion
17
+ exports.shortpixelSetCdnDomain = shortpixelSetCdnDomain;
18
+
19
+ //# sourceMappingURL=set-cdn-domain.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"set-cdn-domain.cjs","names":["z","action"],"sources":["../../src/actions/set-cdn-domain.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ShortpixelSetCdnDomainInput: z.ZodTypeAny = z.object({\n domain: z.string().describe(\"Domain name to associate with the API key (e.g., example.com)\"),\n}).describe(\"Request model for associating an API key with an existing domain.\");\nexport const ShortpixelSetCdnDomainOutput: z.ZodTypeAny = z.object({\n Status: z.number().int().describe(\"Status code returned by the API (1=success, other values indicate issues)\"),\n Message: z.string().describe(\"Details on the result of the set domain operation\"),\n}).describe(\"Response model for set CDN domain action.\");\n\nexport const shortpixelSetCdnDomain = action(\"SHORTPIXEL_SET_CDN_DOMAIN\", {\n slug: \"shortpixel-set-cdn-domain\",\n name: \"Set CDN Domain\",\n description: \"Tool to associate an API key with an existing domain. Unlike add-domain, this does not create a new domain - it only associates a user ID if not already associated. Use when you need to claim unassociated domains.\",\n input: ShortpixelSetCdnDomainInput,\n output: ShortpixelSetCdnDomainOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA4CA,IAAAA,EAAE,OAAO,EAChE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,EAC7F,CAAC,CAAC,CAAC,SAAS,mEAAmE;AAC/E,MAAa,+BAA6CA,IAAAA,EAAE,OAAO;CACjE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2EAA2E;CAC7G,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD;AAClF,CAAC,CAAC,CAAC,SAAS,2CAA2C;AAEvD,MAAa,yBAAyBC,eAAAA,OAAO,6BAA6B;CACxE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/set-cdn-domain.d.ts
4
+ declare const ShortpixelSetCdnDomainInput: z.ZodTypeAny;
5
+ declare const ShortpixelSetCdnDomainOutput: z.ZodTypeAny;
6
+ declare const shortpixelSetCdnDomain: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { shortpixelSetCdnDomain };
9
+ //# sourceMappingURL=set-cdn-domain.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"set-cdn-domain.d.cts","names":[],"sources":["../../src/actions/set-cdn-domain.ts"],"mappings":";;;cAIa,2BAAA,EAA6B,CAAA,CAAE,UAEoC;AAAA,cACnE,4BAAA,EAA8B,CAAA,CAAE,UAGW;AAAA,cAE3C,sBAAA,gCAAsB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/set-cdn-domain.d.ts
4
+ declare const ShortpixelSetCdnDomainInput: z.ZodTypeAny;
5
+ declare const ShortpixelSetCdnDomainOutput: z.ZodTypeAny;
6
+ declare const shortpixelSetCdnDomain: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { shortpixelSetCdnDomain };
9
+ //# sourceMappingURL=set-cdn-domain.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"set-cdn-domain.d.mts","names":[],"sources":["../../src/actions/set-cdn-domain.ts"],"mappings":";;;cAIa,2BAAA,EAA6B,CAAA,CAAE,UAEoC;AAAA,cACnE,4BAAA,EAA8B,CAAA,CAAE,UAGW;AAAA,cAE3C,sBAAA,gCAAsB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,16 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ const shortpixelSetCdnDomain = action("SHORTPIXEL_SET_CDN_DOMAIN", {
4
+ slug: "shortpixel-set-cdn-domain",
5
+ name: "Set CDN Domain",
6
+ description: "Tool to associate an API key with an existing domain. Unlike add-domain, this does not create a new domain - it only associates a user ID if not already associated. Use when you need to claim unassociated domains.",
7
+ input: z.object({ domain: z.string().describe("Domain name to associate with the API key (e.g., example.com)") }).describe("Request model for associating an API key with an existing domain."),
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 set domain operation")
11
+ }).describe("Response model for set CDN domain action.")
12
+ });
13
+ //#endregion
14
+ export { shortpixelSetCdnDomain };
15
+
16
+ //# sourceMappingURL=set-cdn-domain.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"set-cdn-domain.mjs","names":[],"sources":["../../src/actions/set-cdn-domain.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ShortpixelSetCdnDomainInput: z.ZodTypeAny = z.object({\n domain: z.string().describe(\"Domain name to associate with the API key (e.g., example.com)\"),\n}).describe(\"Request model for associating an API key with an existing domain.\");\nexport const ShortpixelSetCdnDomainOutput: z.ZodTypeAny = z.object({\n Status: z.number().int().describe(\"Status code returned by the API (1=success, other values indicate issues)\"),\n Message: z.string().describe(\"Details on the result of the set domain operation\"),\n}).describe(\"Response model for set CDN domain action.\");\n\nexport const shortpixelSetCdnDomain = action(\"SHORTPIXEL_SET_CDN_DOMAIN\", {\n slug: \"shortpixel-set-cdn-domain\",\n name: \"Set CDN Domain\",\n description: \"Tool to associate an API key with an existing domain. Unlike add-domain, this does not create a new domain - it only associates a user ID if not already associated. Use when you need to claim unassociated domains.\",\n input: ShortpixelSetCdnDomainInput,\n output: ShortpixelSetCdnDomainOutput,\n});\n"],"mappings":";;AAYA,MAAa,yBAAyB,OAAO,6BAA6B;CACxE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAZuD,EAAE,OAAO,EAChE,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,EAC7F,CAAC,CAAC,CAAC,SAAS,mEAUH;CACP,QAVwD,EAAE,OAAO;EACjE,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2EAA2E;EAC7G,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD;CAClF,CAAC,CAAC,CAAC,SAAS,2CAOF;AACV,CAAC"}
@@ -0,0 +1,52 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/upload-and-optimize-images.ts
4
+ const ShortpixelUploadAndOptimizeImagesInput = zod.z.object({
5
+ file1: zod.z.object({
6
+ name: zod.z.string().describe("The filename that will be used when uploading the file to the destination service"),
7
+ s3key: zod.z.string().describe("The S3 key of a publicly accessible file, typically returned from a previous download action that stored the file in S3. This key references an existing file that can be uploaded to another service."),
8
+ mimetype: zod.z.string().describe("The MIME type of the file")
9
+ }).describe("First image file to upload and optimize."),
10
+ file2: zod.z.object({
11
+ name: zod.z.string().describe("The filename that will be used when uploading the file to the destination service"),
12
+ s3key: zod.z.string().describe("The S3 key of a publicly accessible file, typically returned from a previous download action that stored the file in S3. This key references an existing file that can be uploaded to another service."),
13
+ mimetype: zod.z.string().describe("The MIME type of the file")
14
+ }).describe("Second image file to upload and optimize (optional).").optional(),
15
+ lossy: zod.z.union([
16
+ zod.z.literal(0),
17
+ zod.z.literal(1),
18
+ zod.z.literal(2)
19
+ ]).default(1).describe("Compression type for image optimization.").optional(),
20
+ resize: zod.z.union([
21
+ zod.z.literal(0),
22
+ zod.z.literal(1),
23
+ zod.z.literal(3),
24
+ zod.z.literal(4)
25
+ ]).describe("Resize type for image resizing.").optional(),
26
+ convertto: zod.z.string().describe("Format conversion options: +webp, +avif, or +webp|+avif").optional(),
27
+ plugin_version: zod.z.string().describe("5 character max alphanumeric code for your API client identifier").optional()
28
+ }).describe("Request model for uploading and optimizing images on ShortPixel.");
29
+ const ShortpixelUploadAndOptimizeImages_StatusInfoSchema = zod.z.object({
30
+ Code: zod.z.number().int().describe("Status code: 1=scheduled, 2=ready, negative values indicate errors"),
31
+ Message: zod.z.string().describe("Human-readable status message")
32
+ }).describe("Status information for an optimized image.");
33
+ const ShortpixelUploadAndOptimizeImages_OptimizedImageSchema = zod.z.object({
34
+ Status: ShortpixelUploadAndOptimizeImages_StatusInfoSchema.nullable(),
35
+ LossyURL: zod.z.string().describe("URL to download the lossy optimized image").nullable().optional(),
36
+ LossySize: zod.z.number().int().describe("Lossy optimized image size in bytes").nullable().optional(),
37
+ LosslessURL: zod.z.string().describe("URL to download the lossless optimized image").nullable().optional(),
38
+ OriginalURL: zod.z.string().describe("Temporary URL for tracking pending optimization").nullable().optional(),
39
+ OriginalSize: zod.z.number().int().describe("Original image size in bytes").nullable().optional()
40
+ }).describe("Information about an optimized image.");
41
+ const ShortpixelUploadAndOptimizeImagesOutput = zod.z.object({ results: zod.z.array(ShortpixelUploadAndOptimizeImages_OptimizedImageSchema).describe("List of optimized image results") }).describe("Response model for upload and optimize images action.\nReturns a list of optimized image results.");
42
+ const shortpixelUploadAndOptimizeImages = require_action.action("SHORTPIXEL_UPLOAD_AND_OPTIMIZE_IMAGES", {
43
+ slug: "shortpixel-upload-and-optimize-images",
44
+ name: "Upload and Optimize Images",
45
+ description: "Tool to upload and optimize images that are not accessible online. Uses multipart form data to upload files directly and applies optimization parameters like compression type, resize options, and format conversion.",
46
+ input: ShortpixelUploadAndOptimizeImagesInput,
47
+ output: ShortpixelUploadAndOptimizeImagesOutput
48
+ });
49
+ //#endregion
50
+ exports.shortpixelUploadAndOptimizeImages = shortpixelUploadAndOptimizeImages;
51
+
52
+ //# sourceMappingURL=upload-and-optimize-images.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"upload-and-optimize-images.cjs","names":["z","action"],"sources":["../../src/actions/upload-and-optimize-images.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ShortpixelUploadAndOptimizeImagesInput: z.ZodTypeAny = z.object({\n file1: z.object({\n name: z.string().describe(\"The filename that will be used when uploading the file to the destination service\"),\n s3key: z.string().describe(\"The S3 key of a publicly accessible file, typically returned from a previous download action that stored the file in S3. This key references an existing file that can be uploaded to another service.\"),\n mimetype: z.string().describe(\"The MIME type of the file\"),\n}).describe(\"First image file to upload and optimize.\"),\n file2: z.object({\n name: z.string().describe(\"The filename that will be used when uploading the file to the destination service\"),\n s3key: z.string().describe(\"The S3 key of a publicly accessible file, typically returned from a previous download action that stored the file in S3. This key references an existing file that can be uploaded to another service.\"),\n mimetype: z.string().describe(\"The MIME type of the file\"),\n}).describe(\"Second image file to upload and optimize (optional).\").optional(),\n lossy: z.union([z.literal(0), z.literal(1), z.literal(2)]).default(1).describe(\"Compression type for image optimization.\").optional(),\n resize: z.union([z.literal(0), z.literal(1), z.literal(3), z.literal(4)]).describe(\"Resize type for image resizing.\").optional(),\n convertto: z.string().describe(\"Format conversion options: +webp, +avif, or +webp|+avif\").optional(),\n plugin_version: z.string().describe(\"5 character max alphanumeric code for your API client identifier\").optional(),\n}).describe(\"Request model for uploading and optimizing images on ShortPixel.\");\nconst ShortpixelUploadAndOptimizeImages_StatusInfoSchema: z.ZodTypeAny = z.object({\n Code: z.number().int().describe(\"Status code: 1=scheduled, 2=ready, negative values indicate errors\"),\n Message: z.string().describe(\"Human-readable status message\"),\n}).describe(\"Status information for an optimized image.\");\nconst ShortpixelUploadAndOptimizeImages_OptimizedImageSchema: z.ZodTypeAny = z.object({\n Status: ShortpixelUploadAndOptimizeImages_StatusInfoSchema.nullable(),\n LossyURL: z.string().describe(\"URL to download the lossy optimized image\").nullable().optional(),\n LossySize: z.number().int().describe(\"Lossy optimized image size in bytes\").nullable().optional(),\n LosslessURL: z.string().describe(\"URL to download the lossless optimized image\").nullable().optional(),\n OriginalURL: z.string().describe(\"Temporary URL for tracking pending optimization\").nullable().optional(),\n OriginalSize: z.number().int().describe(\"Original image size in bytes\").nullable().optional(),\n}).describe(\"Information about an optimized image.\");\nexport const ShortpixelUploadAndOptimizeImagesOutput: z.ZodTypeAny = z.object({\n results: z.array(ShortpixelUploadAndOptimizeImages_OptimizedImageSchema).describe(\"List of optimized image results\"),\n}).describe(\"Response model for upload and optimize images action.\\nReturns a list of optimized image results.\");\n\nexport const shortpixelUploadAndOptimizeImages = action(\"SHORTPIXEL_UPLOAD_AND_OPTIMIZE_IMAGES\", {\n slug: \"shortpixel-upload-and-optimize-images\",\n name: \"Upload and Optimize Images\",\n description: \"Tool to upload and optimize images that are not accessible online. Uses multipart form data to upload files directly and applies optimization parameters like compression type, resize options, and format conversion.\",\n input: ShortpixelUploadAndOptimizeImagesInput,\n output: ShortpixelUploadAndOptimizeImagesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yCAAuDA,IAAAA,EAAE,OAAO;CAC3E,OAAOA,IAAAA,EAAE,OAAO;EAChB,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mFAAmF;EAC7G,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wMAAwM;EACnO,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B;CAC3D,CAAC,CAAC,CAAC,SAAS,0CAA0C;CACpD,OAAOA,IAAAA,EAAE,OAAO;EAChB,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mFAAmF;EAC7G,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wMAAwM;EACnO,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B;CAC3D,CAAC,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;CAC3E,OAAOA,IAAAA,EAAE,MAAM;EAACA,IAAAA,EAAE,QAAQ,CAAC;EAAGA,IAAAA,EAAE,QAAQ,CAAC;EAAGA,IAAAA,EAAE,QAAQ,CAAC;CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CACpI,QAAQA,IAAAA,EAAE,MAAM;EAACA,IAAAA,EAAE,QAAQ,CAAC;EAAGA,IAAAA,EAAE,QAAQ,CAAC;EAAGA,IAAAA,EAAE,QAAQ,CAAC;EAAGA,IAAAA,EAAE,QAAQ,CAAC;CAAC,CAAC,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CAC/H,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;CACnG,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS;AACnH,CAAC,CAAC,CAAC,SAAS,kEAAkE;AAC9E,MAAM,qDAAmEA,IAAAA,EAAE,OAAO;CAChF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oEAAoE;CACpG,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B;AAC9D,CAAC,CAAC,CAAC,SAAS,4CAA4C;AACxD,MAAM,yDAAuEA,IAAAA,EAAE,OAAO;CACpF,QAAQ,mDAAmD,SAAS;CACpE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/F,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChG,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrG,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxG,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC9F,CAAC,CAAC,CAAC,SAAS,uCAAuC;AACnD,MAAa,0CAAwDA,IAAAA,EAAE,OAAO,EAC5E,SAASA,IAAAA,EAAE,MAAM,sDAAsD,CAAC,CAAC,SAAS,iCAAiC,EACrH,CAAC,CAAC,CAAC,SAAS,mGAAmG;AAE/G,MAAa,oCAAoCC,eAAAA,OAAO,yCAAyC;CAC/F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/upload-and-optimize-images.d.ts
4
+ declare const ShortpixelUploadAndOptimizeImagesInput: z.ZodTypeAny;
5
+ declare const ShortpixelUploadAndOptimizeImagesOutput: z.ZodTypeAny;
6
+ declare const shortpixelUploadAndOptimizeImages: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { shortpixelUploadAndOptimizeImages };
9
+ //# sourceMappingURL=upload-and-optimize-images.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"upload-and-optimize-images.d.cts","names":[],"sources":["../../src/actions/upload-and-optimize-images.ts"],"mappings":";;;cAIa,sCAAA,EAAwC,CAAA,CAAE,UAewB;AAAA,cAalE,uCAAA,EAAyC,CAAA,CAAE,UAEwD;AAAA,cAEnG,iCAAA,gCAAiC,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/upload-and-optimize-images.d.ts
4
+ declare const ShortpixelUploadAndOptimizeImagesInput: z.ZodTypeAny;
5
+ declare const ShortpixelUploadAndOptimizeImagesOutput: z.ZodTypeAny;
6
+ declare const shortpixelUploadAndOptimizeImages: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { shortpixelUploadAndOptimizeImages };
9
+ //# sourceMappingURL=upload-and-optimize-images.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"upload-and-optimize-images.d.mts","names":[],"sources":["../../src/actions/upload-and-optimize-images.ts"],"mappings":";;;cAIa,sCAAA,EAAwC,CAAA,CAAE,UAewB;AAAA,cAalE,uCAAA,EAAyC,CAAA,CAAE,UAEwD;AAAA,cAEnG,iCAAA,gCAAiC,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,51 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ //#region src/actions/upload-and-optimize-images.ts
4
+ const ShortpixelUploadAndOptimizeImagesInput = z.object({
5
+ file1: z.object({
6
+ name: z.string().describe("The filename that will be used when uploading the file to the destination service"),
7
+ s3key: z.string().describe("The S3 key of a publicly accessible file, typically returned from a previous download action that stored the file in S3. This key references an existing file that can be uploaded to another service."),
8
+ mimetype: z.string().describe("The MIME type of the file")
9
+ }).describe("First image file to upload and optimize."),
10
+ file2: z.object({
11
+ name: z.string().describe("The filename that will be used when uploading the file to the destination service"),
12
+ s3key: z.string().describe("The S3 key of a publicly accessible file, typically returned from a previous download action that stored the file in S3. This key references an existing file that can be uploaded to another service."),
13
+ mimetype: z.string().describe("The MIME type of the file")
14
+ }).describe("Second image file to upload and optimize (optional).").optional(),
15
+ lossy: z.union([
16
+ z.literal(0),
17
+ z.literal(1),
18
+ z.literal(2)
19
+ ]).default(1).describe("Compression type for image optimization.").optional(),
20
+ resize: z.union([
21
+ z.literal(0),
22
+ z.literal(1),
23
+ z.literal(3),
24
+ z.literal(4)
25
+ ]).describe("Resize type for image resizing.").optional(),
26
+ convertto: z.string().describe("Format conversion options: +webp, +avif, or +webp|+avif").optional(),
27
+ plugin_version: z.string().describe("5 character max alphanumeric code for your API client identifier").optional()
28
+ }).describe("Request model for uploading and optimizing images on ShortPixel.");
29
+ const ShortpixelUploadAndOptimizeImages_StatusInfoSchema = z.object({
30
+ Code: z.number().int().describe("Status code: 1=scheduled, 2=ready, negative values indicate errors"),
31
+ Message: z.string().describe("Human-readable status message")
32
+ }).describe("Status information for an optimized image.");
33
+ const ShortpixelUploadAndOptimizeImages_OptimizedImageSchema = z.object({
34
+ Status: ShortpixelUploadAndOptimizeImages_StatusInfoSchema.nullable(),
35
+ LossyURL: z.string().describe("URL to download the lossy optimized image").nullable().optional(),
36
+ LossySize: z.number().int().describe("Lossy optimized image size in bytes").nullable().optional(),
37
+ LosslessURL: z.string().describe("URL to download the lossless optimized image").nullable().optional(),
38
+ OriginalURL: z.string().describe("Temporary URL for tracking pending optimization").nullable().optional(),
39
+ OriginalSize: z.number().int().describe("Original image size in bytes").nullable().optional()
40
+ }).describe("Information about an optimized image.");
41
+ const shortpixelUploadAndOptimizeImages = action("SHORTPIXEL_UPLOAD_AND_OPTIMIZE_IMAGES", {
42
+ slug: "shortpixel-upload-and-optimize-images",
43
+ name: "Upload and Optimize Images",
44
+ description: "Tool to upload and optimize images that are not accessible online. Uses multipart form data to upload files directly and applies optimization parameters like compression type, resize options, and format conversion.",
45
+ input: ShortpixelUploadAndOptimizeImagesInput,
46
+ output: z.object({ results: z.array(ShortpixelUploadAndOptimizeImages_OptimizedImageSchema).describe("List of optimized image results") }).describe("Response model for upload and optimize images action.\nReturns a list of optimized image results.")
47
+ });
48
+ //#endregion
49
+ export { shortpixelUploadAndOptimizeImages };
50
+
51
+ //# sourceMappingURL=upload-and-optimize-images.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"upload-and-optimize-images.mjs","names":[],"sources":["../../src/actions/upload-and-optimize-images.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ShortpixelUploadAndOptimizeImagesInput: z.ZodTypeAny = z.object({\n file1: z.object({\n name: z.string().describe(\"The filename that will be used when uploading the file to the destination service\"),\n s3key: z.string().describe(\"The S3 key of a publicly accessible file, typically returned from a previous download action that stored the file in S3. This key references an existing file that can be uploaded to another service.\"),\n mimetype: z.string().describe(\"The MIME type of the file\"),\n}).describe(\"First image file to upload and optimize.\"),\n file2: z.object({\n name: z.string().describe(\"The filename that will be used when uploading the file to the destination service\"),\n s3key: z.string().describe(\"The S3 key of a publicly accessible file, typically returned from a previous download action that stored the file in S3. This key references an existing file that can be uploaded to another service.\"),\n mimetype: z.string().describe(\"The MIME type of the file\"),\n}).describe(\"Second image file to upload and optimize (optional).\").optional(),\n lossy: z.union([z.literal(0), z.literal(1), z.literal(2)]).default(1).describe(\"Compression type for image optimization.\").optional(),\n resize: z.union([z.literal(0), z.literal(1), z.literal(3), z.literal(4)]).describe(\"Resize type for image resizing.\").optional(),\n convertto: z.string().describe(\"Format conversion options: +webp, +avif, or +webp|+avif\").optional(),\n plugin_version: z.string().describe(\"5 character max alphanumeric code for your API client identifier\").optional(),\n}).describe(\"Request model for uploading and optimizing images on ShortPixel.\");\nconst ShortpixelUploadAndOptimizeImages_StatusInfoSchema: z.ZodTypeAny = z.object({\n Code: z.number().int().describe(\"Status code: 1=scheduled, 2=ready, negative values indicate errors\"),\n Message: z.string().describe(\"Human-readable status message\"),\n}).describe(\"Status information for an optimized image.\");\nconst ShortpixelUploadAndOptimizeImages_OptimizedImageSchema: z.ZodTypeAny = z.object({\n Status: ShortpixelUploadAndOptimizeImages_StatusInfoSchema.nullable(),\n LossyURL: z.string().describe(\"URL to download the lossy optimized image\").nullable().optional(),\n LossySize: z.number().int().describe(\"Lossy optimized image size in bytes\").nullable().optional(),\n LosslessURL: z.string().describe(\"URL to download the lossless optimized image\").nullable().optional(),\n OriginalURL: z.string().describe(\"Temporary URL for tracking pending optimization\").nullable().optional(),\n OriginalSize: z.number().int().describe(\"Original image size in bytes\").nullable().optional(),\n}).describe(\"Information about an optimized image.\");\nexport const ShortpixelUploadAndOptimizeImagesOutput: z.ZodTypeAny = z.object({\n results: z.array(ShortpixelUploadAndOptimizeImages_OptimizedImageSchema).describe(\"List of optimized image results\"),\n}).describe(\"Response model for upload and optimize images action.\\nReturns a list of optimized image results.\");\n\nexport const shortpixelUploadAndOptimizeImages = action(\"SHORTPIXEL_UPLOAD_AND_OPTIMIZE_IMAGES\", {\n slug: \"shortpixel-upload-and-optimize-images\",\n name: \"Upload and Optimize Images\",\n description: \"Tool to upload and optimize images that are not accessible online. Uses multipart form data to upload files directly and applies optimization parameters like compression type, resize options, and format conversion.\",\n input: ShortpixelUploadAndOptimizeImagesInput,\n output: ShortpixelUploadAndOptimizeImagesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yCAAuD,EAAE,OAAO;CAC3E,OAAO,EAAE,OAAO;EAChB,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mFAAmF;EAC7G,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,wMAAwM;EACnO,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B;CAC3D,CAAC,CAAC,CAAC,SAAS,0CAA0C;CACpD,OAAO,EAAE,OAAO;EAChB,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mFAAmF;EAC7G,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,wMAAwM;EACnO,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B;CAC3D,CAAC,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;CAC3E,OAAO,EAAE,MAAM;EAAC,EAAE,QAAQ,CAAC;EAAG,EAAE,QAAQ,CAAC;EAAG,EAAE,QAAQ,CAAC;CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CACpI,QAAQ,EAAE,MAAM;EAAC,EAAE,QAAQ,CAAC;EAAG,EAAE,QAAQ,CAAC;EAAG,EAAE,QAAQ,CAAC;EAAG,EAAE,QAAQ,CAAC;CAAC,CAAC,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CAC/H,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;CACnG,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS;AACnH,CAAC,CAAC,CAAC,SAAS,kEAAkE;AAC9E,MAAM,qDAAmE,EAAE,OAAO;CAChF,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oEAAoE;CACpG,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B;AAC9D,CAAC,CAAC,CAAC,SAAS,4CAA4C;AACxD,MAAM,yDAAuE,EAAE,OAAO;CACpF,QAAQ,mDAAmD,SAAS;CACpE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/F,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChG,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrG,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxG,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC9F,CAAC,CAAC,CAAC,SAAS,uCAAuC;AAKnD,MAAa,oCAAoC,OAAO,yCAAyC;CAC/F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATmE,EAAE,OAAO,EAC5E,SAAS,EAAE,MAAM,sDAAsD,CAAC,CAAC,SAAS,iCAAiC,EACrH,CAAC,CAAC,CAAC,SAAS,mGAOF;AACV,CAAC"}
package/dist/app.cjs ADDED
@@ -0,0 +1,9 @@
1
+ //#region src/app.ts
2
+ const shortpixel = (0, require("@keystrokehq/keystroke/app").defineApp)({
3
+ slug: "shortpixel",
4
+ auth: "keystroke"
5
+ });
6
+ //#endregion
7
+ exports.shortpixel = shortpixel;
8
+
9
+ //# sourceMappingURL=app.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"app.cjs","names":[],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp } from \"@keystrokehq/keystroke/app\";\n\nexport const shortpixel = defineApp({\n slug: \"shortpixel\",\n auth: \"keystroke\",\n});\n"],"mappings":";AAEA,MAAa,cAAA,uCAAA,CAAA,CAAA,UAAA,CAAuB;CAClC,MAAM;CACN,MAAM;AACR,CAAC"}
package/dist/app.d.cts ADDED
@@ -0,0 +1,5 @@
1
+ //#region src/app.d.ts
2
+ declare const shortpixel: import("@keystrokehq/app").App<import("@keystrokehq/shared").Credential>;
3
+ //#endregion
4
+ export { shortpixel };
5
+ //# sourceMappingURL=app.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"app.d.cts","names":[],"sources":["../src/app.ts"],"mappings":";cAEa,UAAA,6BAAU,GAAA,+BAAA,UAAA"}
package/dist/app.d.mts ADDED
@@ -0,0 +1,5 @@
1
+ //#region src/app.d.ts
2
+ declare const shortpixel: import("@keystrokehq/app").App<import("@keystrokehq/shared").Credential>;
3
+ //#endregion
4
+ export { shortpixel };
5
+ //# sourceMappingURL=app.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"app.d.mts","names":[],"sources":["../src/app.ts"],"mappings":";cAEa,UAAA,6BAAU,GAAA,+BAAA,UAAA"}
package/dist/app.mjs ADDED
@@ -0,0 +1,10 @@
1
+ import { defineApp } from "@keystrokehq/keystroke/app";
2
+ //#region src/app.ts
3
+ const shortpixel = defineApp({
4
+ slug: "shortpixel",
5
+ auth: "keystroke"
6
+ });
7
+ //#endregion
8
+ export { shortpixel };
9
+
10
+ //# sourceMappingURL=app.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"app.mjs","names":[],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp } from \"@keystrokehq/keystroke/app\";\n\nexport const shortpixel = defineApp({\n slug: \"shortpixel\",\n auth: \"keystroke\",\n});\n"],"mappings":";;AAEA,MAAa,aAAa,UAAU;CAClC,MAAM;CACN,MAAM;AACR,CAAC"}
@@ -0,0 +1,15 @@
1
+ //#region src/catalog.ts
2
+ /** Generated — kept in sync with src/app.ts. */
3
+ const shortpixelCatalog = {
4
+ "slug": "shortpixel",
5
+ "name": "Shortpixel",
6
+ "description": "ShortPixel is an image optimization and compression service that offers APIs and plugins to enhance website performance by reducing image sizes without compromising quality.",
7
+ "category": "Images & Design",
8
+ "logo": "https://logos.composio.dev/api/shortpixel",
9
+ "authKind": "keystroke",
10
+ "oauthScopes": []
11
+ };
12
+ //#endregion
13
+ exports.shortpixelCatalog = shortpixelCatalog;
14
+
15
+ //# sourceMappingURL=catalog.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"catalog.cjs","names":[],"sources":["../src/catalog.ts"],"sourcesContent":["/** Generated — kept in sync with src/app.ts. */\nexport const shortpixelCatalog = {\n \"slug\": \"shortpixel\",\n \"name\": \"Shortpixel\",\n \"description\": \"ShortPixel is an image optimization and compression service that offers APIs and plugins to enhance website performance by reducing image sizes without compromising quality.\",\n \"category\": \"Images & Design\",\n \"logo\": \"https://logos.composio.dev/api/shortpixel\",\n \"authKind\": \"keystroke\",\n \"oauthScopes\": []\n} as const;\n"],"mappings":";;AACA,MAAa,oBAAoB;CAC/B,QAAQ;CACR,QAAQ;CACR,eAAe;CACf,YAAY;CACZ,QAAQ;CACR,YAAY;CACZ,eAAe,CAAC;AAClB"}
@@ -0,0 +1,14 @@
1
+ //#region src/catalog.d.ts
2
+ /** Generated — kept in sync with src/app.ts. */
3
+ declare const shortpixelCatalog: {
4
+ readonly slug: "shortpixel";
5
+ readonly name: "Shortpixel";
6
+ readonly description: "ShortPixel is an image optimization and compression service that offers APIs and plugins to enhance website performance by reducing image sizes without compromising quality.";
7
+ readonly category: "Images & Design";
8
+ readonly logo: "https://logos.composio.dev/api/shortpixel";
9
+ readonly authKind: "keystroke";
10
+ readonly oauthScopes: readonly [];
11
+ };
12
+ //#endregion
13
+ export { shortpixelCatalog };
14
+ //# sourceMappingURL=catalog.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"catalog.d.cts","names":[],"sources":["../src/catalog.ts"],"mappings":";;cACa,iBAAA;EAAA"}
@@ -0,0 +1,14 @@
1
+ //#region src/catalog.d.ts
2
+ /** Generated — kept in sync with src/app.ts. */
3
+ declare const shortpixelCatalog: {
4
+ readonly slug: "shortpixel";
5
+ readonly name: "Shortpixel";
6
+ readonly description: "ShortPixel is an image optimization and compression service that offers APIs and plugins to enhance website performance by reducing image sizes without compromising quality.";
7
+ readonly category: "Images & Design";
8
+ readonly logo: "https://logos.composio.dev/api/shortpixel";
9
+ readonly authKind: "keystroke";
10
+ readonly oauthScopes: readonly [];
11
+ };
12
+ //#endregion
13
+ export { shortpixelCatalog };
14
+ //# sourceMappingURL=catalog.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"catalog.d.mts","names":[],"sources":["../src/catalog.ts"],"mappings":";;cACa,iBAAA;EAAA"}
@@ -0,0 +1,15 @@
1
+ //#region src/catalog.ts
2
+ /** Generated — kept in sync with src/app.ts. */
3
+ const shortpixelCatalog = {
4
+ "slug": "shortpixel",
5
+ "name": "Shortpixel",
6
+ "description": "ShortPixel is an image optimization and compression service that offers APIs and plugins to enhance website performance by reducing image sizes without compromising quality.",
7
+ "category": "Images & Design",
8
+ "logo": "https://logos.composio.dev/api/shortpixel",
9
+ "authKind": "keystroke",
10
+ "oauthScopes": []
11
+ };
12
+ //#endregion
13
+ export { shortpixelCatalog };
14
+
15
+ //# sourceMappingURL=catalog.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"catalog.mjs","names":[],"sources":["../src/catalog.ts"],"sourcesContent":["/** Generated — kept in sync with src/app.ts. */\nexport const shortpixelCatalog = {\n \"slug\": \"shortpixel\",\n \"name\": \"Shortpixel\",\n \"description\": \"ShortPixel is an image optimization and compression service that offers APIs and plugins to enhance website performance by reducing image sizes without compromising quality.\",\n \"category\": \"Images & Design\",\n \"logo\": \"https://logos.composio.dev/api/shortpixel\",\n \"authKind\": \"keystroke\",\n \"oauthScopes\": []\n} as const;\n"],"mappings":";;AACA,MAAa,oBAAoB;CAC/B,QAAQ;CACR,QAAQ;CACR,eAAe;CACf,YAAY;CACZ,QAAQ;CACR,YAAY;CACZ,eAAe,CAAC;AAClB"}
@@ -0,0 +1,18 @@
1
+ let _keystrokehq_keystroke_client = require("@keystrokehq/keystroke/client");
2
+ //#region src/execute.ts
3
+ const APP_SLUG = "shortpixel";
4
+ /** Pinned app version — updated on regeneration. */
5
+ const APP_VERSION = "20260615_00";
6
+ async function executeShortpixelTool(tool, args) {
7
+ const { result } = await (0, _keystrokehq_keystroke_client.createKeystrokeClient)().tools.execute({
8
+ app: APP_SLUG,
9
+ tool,
10
+ arguments: args,
11
+ version: APP_VERSION
12
+ });
13
+ return result;
14
+ }
15
+ //#endregion
16
+ exports.executeShortpixelTool = executeShortpixelTool;
17
+
18
+ //# sourceMappingURL=execute.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"execute.cjs","names":[],"sources":["../src/execute.ts"],"sourcesContent":["import { createKeystrokeClient } from \"@keystrokehq/keystroke/client\";\n\nconst APP_SLUG = \"shortpixel\";\n/** Pinned app version — updated on regeneration. */\nconst APP_VERSION = \"20260615_00\";\n\nexport async function executeShortpixelTool(\n tool: string,\n args: Record<string, unknown>,\n): Promise<unknown> {\n const { result } = await createKeystrokeClient().tools.execute({\n app: APP_SLUG,\n tool,\n arguments: args,\n version: APP_VERSION,\n });\n return result;\n}\n"],"mappings":";;AAEA,MAAM,WAAW;;AAEjB,MAAM,cAAc;AAEpB,eAAsB,sBACpB,MACA,MACkB;CAClB,MAAM,EAAE,WAAW,OAAA,GAAA,8BAAA,sBAAA,CAA4B,CAAC,CAAC,MAAM,QAAQ;EAC7D,KAAK;EACL;EACA,WAAW;EACX,SAAS;CACX,CAAC;CACD,OAAO;AACT"}
@@ -0,0 +1,18 @@
1
+ import { createKeystrokeClient } from "@keystrokehq/keystroke/client";
2
+ //#region src/execute.ts
3
+ const APP_SLUG = "shortpixel";
4
+ /** Pinned app version — updated on regeneration. */
5
+ const APP_VERSION = "20260615_00";
6
+ async function executeShortpixelTool(tool, args) {
7
+ const { result } = await createKeystrokeClient().tools.execute({
8
+ app: APP_SLUG,
9
+ tool,
10
+ arguments: args,
11
+ version: APP_VERSION
12
+ });
13
+ return result;
14
+ }
15
+ //#endregion
16
+ export { executeShortpixelTool };
17
+
18
+ //# sourceMappingURL=execute.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"execute.mjs","names":[],"sources":["../src/execute.ts"],"sourcesContent":["import { createKeystrokeClient } from \"@keystrokehq/keystroke/client\";\n\nconst APP_SLUG = \"shortpixel\";\n/** Pinned app version — updated on regeneration. */\nconst APP_VERSION = \"20260615_00\";\n\nexport async function executeShortpixelTool(\n tool: string,\n args: Record<string, unknown>,\n): Promise<unknown> {\n const { result } = await createKeystrokeClient().tools.execute({\n app: APP_SLUG,\n tool,\n arguments: args,\n version: APP_VERSION,\n });\n return result;\n}\n"],"mappings":";;AAEA,MAAM,WAAW;;AAEjB,MAAM,cAAc;AAEpB,eAAsB,sBACpB,MACA,MACkB;CAClB,MAAM,EAAE,WAAW,MAAM,sBAAsB,CAAC,CAAC,MAAM,QAAQ;EAC7D,KAAK;EACL;EACA,WAAW;EACX,SAAS;CACX,CAAC;CACD,OAAO;AACT"}