@keystrokehq/shortpixel 0.1.4 → 0.1.5

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 (109) hide show
  1. package/dist/action.cjs.map +1 -1
  2. package/dist/action.mjs.map +1 -1
  3. package/dist/actions/add-cdn-domain.cjs +1 -0
  4. package/dist/actions/add-cdn-domain.cjs.map +1 -1
  5. package/dist/actions/add-cdn-domain.d.cts +3 -15
  6. package/dist/actions/add-cdn-domain.d.cts.map +1 -1
  7. package/dist/actions/add-cdn-domain.d.mts +3 -15
  8. package/dist/actions/add-cdn-domain.d.mts.map +1 -1
  9. package/dist/actions/add-cdn-domain.mjs +1 -0
  10. package/dist/actions/add-cdn-domain.mjs.map +1 -1
  11. package/dist/actions/bulk-purge-storage.cjs +1 -0
  12. package/dist/actions/bulk-purge-storage.cjs.map +1 -1
  13. package/dist/actions/bulk-purge-storage.d.cts +3 -15
  14. package/dist/actions/bulk-purge-storage.d.cts.map +1 -1
  15. package/dist/actions/bulk-purge-storage.d.mts +3 -15
  16. package/dist/actions/bulk-purge-storage.d.mts.map +1 -1
  17. package/dist/actions/bulk-purge-storage.mjs +1 -0
  18. package/dist/actions/bulk-purge-storage.mjs.map +1 -1
  19. package/dist/actions/check-image-status.cjs +1 -0
  20. package/dist/actions/check-image-status.cjs.map +1 -1
  21. package/dist/actions/check-image-status.d.cts +3 -15
  22. package/dist/actions/check-image-status.d.cts.map +1 -1
  23. package/dist/actions/check-image-status.d.mts +3 -15
  24. package/dist/actions/check-image-status.d.mts.map +1 -1
  25. package/dist/actions/check-image-status.mjs +1 -0
  26. package/dist/actions/check-image-status.mjs.map +1 -1
  27. package/dist/actions/clean-up-image.cjs +1 -0
  28. package/dist/actions/clean-up-image.cjs.map +1 -1
  29. package/dist/actions/clean-up-image.d.cts +3 -15
  30. package/dist/actions/clean-up-image.d.cts.map +1 -1
  31. package/dist/actions/clean-up-image.d.mts +3 -15
  32. package/dist/actions/clean-up-image.d.mts.map +1 -1
  33. package/dist/actions/clean-up-image.mjs +1 -0
  34. package/dist/actions/clean-up-image.mjs.map +1 -1
  35. package/dist/actions/get-adaptive-image-cdn.cjs +1 -0
  36. package/dist/actions/get-adaptive-image-cdn.cjs.map +1 -1
  37. package/dist/actions/get-adaptive-image-cdn.d.cts +3 -22
  38. package/dist/actions/get-adaptive-image-cdn.d.cts.map +1 -1
  39. package/dist/actions/get-adaptive-image-cdn.d.mts +3 -22
  40. package/dist/actions/get-adaptive-image-cdn.d.mts.map +1 -1
  41. package/dist/actions/get-adaptive-image-cdn.mjs +1 -0
  42. package/dist/actions/get-adaptive-image-cdn.mjs.map +1 -1
  43. package/dist/actions/get-api-status.cjs +1 -0
  44. package/dist/actions/get-api-status.cjs.map +1 -1
  45. package/dist/actions/get-api-status.d.cts +3 -13
  46. package/dist/actions/get-api-status.d.cts.map +1 -1
  47. package/dist/actions/get-api-status.d.mts +3 -13
  48. package/dist/actions/get-api-status.d.mts.map +1 -1
  49. package/dist/actions/get-api-status.mjs +1 -0
  50. package/dist/actions/get-api-status.mjs.map +1 -1
  51. package/dist/actions/get-cdn-usage.cjs +1 -0
  52. package/dist/actions/get-cdn-usage.cjs.map +1 -1
  53. package/dist/actions/get-cdn-usage.d.cts +3 -15
  54. package/dist/actions/get-cdn-usage.d.cts.map +1 -1
  55. package/dist/actions/get-cdn-usage.d.mts +3 -15
  56. package/dist/actions/get-cdn-usage.d.mts.map +1 -1
  57. package/dist/actions/get-cdn-usage.mjs +1 -0
  58. package/dist/actions/get-cdn-usage.mjs.map +1 -1
  59. package/dist/actions/optimize-images-by-url.cjs +1 -0
  60. package/dist/actions/optimize-images-by-url.cjs.map +1 -1
  61. package/dist/actions/optimize-images-by-url.d.cts +3 -29
  62. package/dist/actions/optimize-images-by-url.d.cts.map +1 -1
  63. package/dist/actions/optimize-images-by-url.d.mts +3 -29
  64. package/dist/actions/optimize-images-by-url.d.mts.map +1 -1
  65. package/dist/actions/optimize-images-by-url.mjs +1 -0
  66. package/dist/actions/optimize-images-by-url.mjs.map +1 -1
  67. package/dist/actions/read-cdn-domain.cjs +1 -0
  68. package/dist/actions/read-cdn-domain.cjs.map +1 -1
  69. package/dist/actions/read-cdn-domain.d.cts +3 -15
  70. package/dist/actions/read-cdn-domain.d.cts.map +1 -1
  71. package/dist/actions/read-cdn-domain.d.mts +3 -15
  72. package/dist/actions/read-cdn-domain.d.mts.map +1 -1
  73. package/dist/actions/read-cdn-domain.mjs +1 -0
  74. package/dist/actions/read-cdn-domain.mjs.map +1 -1
  75. package/dist/actions/revoke-cdn-domain.cjs +1 -0
  76. package/dist/actions/revoke-cdn-domain.cjs.map +1 -1
  77. package/dist/actions/revoke-cdn-domain.d.cts +3 -15
  78. package/dist/actions/revoke-cdn-domain.d.cts.map +1 -1
  79. package/dist/actions/revoke-cdn-domain.d.mts +3 -15
  80. package/dist/actions/revoke-cdn-domain.d.mts.map +1 -1
  81. package/dist/actions/revoke-cdn-domain.mjs +1 -0
  82. package/dist/actions/revoke-cdn-domain.mjs.map +1 -1
  83. package/dist/actions/set-cdn-domain.cjs +1 -0
  84. package/dist/actions/set-cdn-domain.cjs.map +1 -1
  85. package/dist/actions/set-cdn-domain.d.cts +3 -15
  86. package/dist/actions/set-cdn-domain.d.cts.map +1 -1
  87. package/dist/actions/set-cdn-domain.d.mts +3 -15
  88. package/dist/actions/set-cdn-domain.d.mts.map +1 -1
  89. package/dist/actions/set-cdn-domain.mjs +1 -0
  90. package/dist/actions/set-cdn-domain.mjs.map +1 -1
  91. package/dist/actions/upload-and-optimize-images.cjs +1 -0
  92. package/dist/actions/upload-and-optimize-images.cjs.map +1 -1
  93. package/dist/actions/upload-and-optimize-images.d.cts +3 -28
  94. package/dist/actions/upload-and-optimize-images.d.cts.map +1 -1
  95. package/dist/actions/upload-and-optimize-images.d.mts +3 -28
  96. package/dist/actions/upload-and-optimize-images.d.mts.map +1 -1
  97. package/dist/actions/upload-and-optimize-images.mjs +1 -0
  98. package/dist/actions/upload-and-optimize-images.mjs.map +1 -1
  99. package/dist/app.cjs +2 -2
  100. package/dist/app.cjs.map +1 -1
  101. package/dist/app.d.cts +4 -6
  102. package/dist/app.d.cts.map +1 -1
  103. package/dist/app.d.mts +4 -6
  104. package/dist/app.d.mts.map +1 -1
  105. package/dist/app.mjs +0 -1
  106. package/dist/app.mjs.map +1 -1
  107. package/dist/index.d.cts +1 -1
  108. package/dist/index.d.mts +1 -1
  109. package/package.json +2 -2
@@ -1 +1 @@
1
- {"version":3,"file":"revoke-cdn-domain.cjs","names":["z","action"],"sources":["../../src/actions/revoke-cdn-domain.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ShortpixelRevokeCdnDomainInput = z.object({\n domain: z.string().describe(\"Domain name to revoke from ShortPixel CDN (e.g., example.com)\"),\n}).describe(\"Request model for revoking a domain association from ShortPixel CDN.\");\nexport const ShortpixelRevokeCdnDomainOutput = z.object({\n Status: z.number().int().describe(\"Status code returned by the API (1=success, other values indicate issues or insufficient rights)\").nullable(),\n Message: z.string().describe(\"Details on the result of the revoke operation\").nullable(),\n}).passthrough().describe(\"Response model for revoking a CDN domain association.\");\n\nexport const shortpixelRevokeCdnDomain = action(\"SHORTPIXEL_REVOKE_CDN_DOMAIN\", {\n slug: \"shortpixel-revoke-cdn-domain\",\n name: \"Revoke CDN Domain\",\n description: \"Tool to revoke a domain association from ShortPixel CDN. Only works if the API key belongs to the current domain owner. Use when you need to remove the association between a domain and the user account.\",\n input: ShortpixelRevokeCdnDomainInput,\n output: ShortpixelRevokeCdnDomainOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAAiCA,IAAAA,EAAE,OAAO,EACrD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,EAC7F,CAAC,CAAC,CAAC,SAAS,sEAAsE;AAClF,MAAa,kCAAkCA,IAAAA,EAAE,OAAO;CACtD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kGAAkG,CAAC,CAAC,SAAS;CAC/I,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;AACzF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uDAAuD;AAEjF,MAAa,4BAA4BC,eAAAA,OAAO,gCAAgC;CAC9E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"revoke-cdn-domain.cjs","names":["z","action"],"sources":["../../src/actions/revoke-cdn-domain.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { shortpixel } from \"../app\";\n\nexport const ShortpixelRevokeCdnDomainInput = z.object({\n domain: z.string().describe(\"Domain name to revoke from ShortPixel CDN (e.g., example.com)\"),\n}).describe(\"Request model for revoking a domain association from ShortPixel CDN.\");\nexport const ShortpixelRevokeCdnDomainOutput = z.object({\n Status: z.number().int().describe(\"Status code returned by the API (1=success, other values indicate issues or insufficient rights)\").nullable(),\n Message: z.string().describe(\"Details on the result of the revoke operation\").nullable(),\n}).passthrough().describe(\"Response model for revoking a CDN domain association.\");\n\nexport const shortpixelRevokeCdnDomain: AppAction<\n typeof ShortpixelRevokeCdnDomainInput,\n typeof ShortpixelRevokeCdnDomainOutput,\n typeof shortpixel.credential\n> = 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":";;;;AAMA,MAAa,iCAAiCA,IAAAA,EAAE,OAAO,EACrD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,EAC7F,CAAC,CAAC,CAAC,SAAS,sEAAsE;AAClF,MAAa,kCAAkCA,IAAAA,EAAE,OAAO;CACtD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kGAAkG,CAAC,CAAC,SAAS;CAC/I,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;AACzF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uDAAuD;AAEjF,MAAa,4BAITC,eAAAA,OAAO,gCAAgC;CACzC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { shortpixel } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/revoke-cdn-domain.d.ts
@@ -8,21 +10,7 @@ declare const ShortpixelRevokeCdnDomainOutput: z.ZodObject<{
8
10
  Status: z.ZodNullable<z.ZodNumber>;
9
11
  Message: z.ZodNullable<z.ZodString>;
10
12
  }, z.core.$loose>;
11
- declare const shortpixelRevokeCdnDomain: import("@keystrokehq/action").WorkflowActionDefinition<{
12
- domain: string;
13
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"shortpixel", z.ZodObject<{
14
- connectionId: z.ZodString;
15
- entityId: z.ZodString;
16
- instanceId: z.ZodString;
17
- }, z.core.$strip>, z.ZodObject<{
18
- generic_key: z.ZodString;
19
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"shortpixel", z.ZodObject<{
20
- connectionId: z.ZodString;
21
- entityId: z.ZodString;
22
- instanceId: z.ZodString;
23
- }, z.core.$strip>, z.ZodObject<{
24
- generic_key: z.ZodString;
25
- }, z.core.$strip>>]>;
13
+ declare const shortpixelRevokeCdnDomain: AppAction<typeof ShortpixelRevokeCdnDomainInput, typeof ShortpixelRevokeCdnDomainOutput, typeof shortpixel.credential>;
26
14
  //#endregion
27
15
  export { shortpixelRevokeCdnDomain };
28
16
  //# sourceMappingURL=revoke-cdn-domain.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"revoke-cdn-domain.d.cts","names":[],"sources":["../../src/actions/revoke-cdn-domain.ts"],"mappings":";;;cAIa,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;cAG9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;cAK/B,yBAAA,gCAAyB,wBAAA"}
1
+ {"version":3,"file":"revoke-cdn-domain.d.cts","names":[],"sources":["../../src/actions/revoke-cdn-domain.ts"],"mappings":";;;;;cAMa,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;cAG9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;cAK/B,yBAAA,EAA2B,SAAA,QAC/B,8BAAA,SACA,+BAAA,SACA,UAAA,CAAW,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { shortpixel } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/revoke-cdn-domain.d.ts
@@ -8,21 +10,7 @@ declare const ShortpixelRevokeCdnDomainOutput: z.ZodObject<{
8
10
  Status: z.ZodNullable<z.ZodNumber>;
9
11
  Message: z.ZodNullable<z.ZodString>;
10
12
  }, z.core.$loose>;
11
- declare const shortpixelRevokeCdnDomain: import("@keystrokehq/action").WorkflowActionDefinition<{
12
- domain: string;
13
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"shortpixel", z.ZodObject<{
14
- connectionId: z.ZodString;
15
- entityId: z.ZodString;
16
- instanceId: z.ZodString;
17
- }, z.core.$strip>, z.ZodObject<{
18
- generic_key: z.ZodString;
19
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"shortpixel", z.ZodObject<{
20
- connectionId: z.ZodString;
21
- entityId: z.ZodString;
22
- instanceId: z.ZodString;
23
- }, z.core.$strip>, z.ZodObject<{
24
- generic_key: z.ZodString;
25
- }, z.core.$strip>>]>;
13
+ declare const shortpixelRevokeCdnDomain: AppAction<typeof ShortpixelRevokeCdnDomainInput, typeof ShortpixelRevokeCdnDomainOutput, typeof shortpixel.credential>;
26
14
  //#endregion
27
15
  export { shortpixelRevokeCdnDomain };
28
16
  //# sourceMappingURL=revoke-cdn-domain.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"revoke-cdn-domain.d.mts","names":[],"sources":["../../src/actions/revoke-cdn-domain.ts"],"mappings":";;;cAIa,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;cAG9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;cAK/B,yBAAA,gCAAyB,wBAAA"}
1
+ {"version":3,"file":"revoke-cdn-domain.d.mts","names":[],"sources":["../../src/actions/revoke-cdn-domain.ts"],"mappings":";;;;;cAMa,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;cAG9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;cAK/B,yBAAA,EAA2B,SAAA,QAC/B,8BAAA,SACA,+BAAA,SACA,UAAA,CAAW,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  const shortpixelRevokeCdnDomain = action("SHORTPIXEL_REVOKE_CDN_DOMAIN", {
@@ -1 +1 @@
1
- {"version":3,"file":"revoke-cdn-domain.mjs","names":[],"sources":["../../src/actions/revoke-cdn-domain.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ShortpixelRevokeCdnDomainInput = z.object({\n domain: z.string().describe(\"Domain name to revoke from ShortPixel CDN (e.g., example.com)\"),\n}).describe(\"Request model for revoking a domain association from ShortPixel CDN.\");\nexport const ShortpixelRevokeCdnDomainOutput = z.object({\n Status: z.number().int().describe(\"Status code returned by the API (1=success, other values indicate issues or insufficient rights)\").nullable(),\n Message: z.string().describe(\"Details on the result of the revoke operation\").nullable(),\n}).passthrough().describe(\"Response model for revoking a CDN domain association.\");\n\nexport const shortpixelRevokeCdnDomain = action(\"SHORTPIXEL_REVOKE_CDN_DOMAIN\", {\n slug: \"shortpixel-revoke-cdn-domain\",\n name: \"Revoke CDN Domain\",\n description: \"Tool to revoke a domain association from ShortPixel CDN. Only works if the API key belongs to the current domain owner. Use when you need to remove the association between a domain and the user account.\",\n input: ShortpixelRevokeCdnDomainInput,\n output: ShortpixelRevokeCdnDomainOutput,\n});\n"],"mappings":";;AAYA,MAAa,4BAA4B,OAAO,gCAAgC;CAC9E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAZ4C,EAAE,OAAO,EACrD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,EAC7F,CAAC,CAAC,CAAC,SAAS,sEAUH;CACP,QAV6C,EAAE,OAAO;EACtD,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kGAAkG,CAAC,CAAC,SAAS;EAC/I,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CACzF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uDAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"revoke-cdn-domain.mjs","names":[],"sources":["../../src/actions/revoke-cdn-domain.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { shortpixel } from \"../app\";\n\nexport const ShortpixelRevokeCdnDomainInput = z.object({\n domain: z.string().describe(\"Domain name to revoke from ShortPixel CDN (e.g., example.com)\"),\n}).describe(\"Request model for revoking a domain association from ShortPixel CDN.\");\nexport const ShortpixelRevokeCdnDomainOutput = z.object({\n Status: z.number().int().describe(\"Status code returned by the API (1=success, other values indicate issues or insufficient rights)\").nullable(),\n Message: z.string().describe(\"Details on the result of the revoke operation\").nullable(),\n}).passthrough().describe(\"Response model for revoking a CDN domain association.\");\n\nexport const shortpixelRevokeCdnDomain: AppAction<\n typeof ShortpixelRevokeCdnDomainInput,\n typeof ShortpixelRevokeCdnDomainOutput,\n typeof shortpixel.credential\n> = 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":";;;AAcA,MAAa,4BAIT,OAAO,gCAAgC;CACzC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAhB4C,EAAE,OAAO,EACrD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,EAC7F,CAAC,CAAC,CAAC,SAAS,sEAcH;CACP,QAd6C,EAAE,OAAO;EACtD,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kGAAkG,CAAC,CAAC,SAAS;EAC/I,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CACzF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uDAWhB;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/set-cdn-domain.ts
@@ -1 +1 @@
1
- {"version":3,"file":"set-cdn-domain.cjs","names":["z","action"],"sources":["../../src/actions/set-cdn-domain.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ShortpixelSetCdnDomainInput = z.object({\n domain: z.string().describe(\"Domain name to associate with the API key (e.g., example.com)\"),\n}).describe(\"Request model for associating an API key with an existing domain.\");\nexport const ShortpixelSetCdnDomainOutput = z.object({\n Status: z.number().int().describe(\"Status code returned by the API (1=success, other values indicate issues)\").nullable(),\n Message: z.string().describe(\"Details on the result of the set domain operation\").nullable(),\n}).passthrough().describe(\"Response model for set CDN domain action.\");\n\nexport const shortpixelSetCdnDomain = action(\"SHORTPIXEL_SET_CDN_DOMAIN\", {\n slug: \"shortpixel-set-cdn-domain\",\n name: \"Set CDN Domain\",\n description: \"Tool to associate an API key with an existing domain. Unlike add-domain, this does not create a new domain - it only associates a user ID if not already associated. Use when you need to claim unassociated domains.\",\n input: ShortpixelSetCdnDomainInput,\n output: ShortpixelSetCdnDomainOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO,EAClD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,EAC7F,CAAC,CAAC,CAAC,SAAS,mEAAmE;AAC/E,MAAa,+BAA+BA,IAAAA,EAAE,OAAO;CACnD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2EAA2E,CAAC,CAAC,SAAS;CACxH,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;AAC7F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2CAA2C;AAErE,MAAa,yBAAyBC,eAAAA,OAAO,6BAA6B;CACxE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"set-cdn-domain.cjs","names":["z","action"],"sources":["../../src/actions/set-cdn-domain.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { shortpixel } from \"../app\";\n\nexport const ShortpixelSetCdnDomainInput = z.object({\n domain: z.string().describe(\"Domain name to associate with the API key (e.g., example.com)\"),\n}).describe(\"Request model for associating an API key with an existing domain.\");\nexport const ShortpixelSetCdnDomainOutput = z.object({\n Status: z.number().int().describe(\"Status code returned by the API (1=success, other values indicate issues)\").nullable(),\n Message: z.string().describe(\"Details on the result of the set domain operation\").nullable(),\n}).passthrough().describe(\"Response model for set CDN domain action.\");\n\nexport const shortpixelSetCdnDomain: AppAction<\n typeof ShortpixelSetCdnDomainInput,\n typeof ShortpixelSetCdnDomainOutput,\n typeof shortpixel.credential\n> = 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":";;;;AAMA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO,EAClD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,EAC7F,CAAC,CAAC,CAAC,SAAS,mEAAmE;AAC/E,MAAa,+BAA+BA,IAAAA,EAAE,OAAO;CACnD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2EAA2E,CAAC,CAAC,SAAS;CACxH,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;AAC7F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2CAA2C;AAErE,MAAa,yBAITC,eAAAA,OAAO,6BAA6B;CACtC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { shortpixel } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/set-cdn-domain.d.ts
@@ -8,21 +10,7 @@ declare const ShortpixelSetCdnDomainOutput: z.ZodObject<{
8
10
  Status: z.ZodNullable<z.ZodNumber>;
9
11
  Message: z.ZodNullable<z.ZodString>;
10
12
  }, z.core.$loose>;
11
- declare const shortpixelSetCdnDomain: import("@keystrokehq/action").WorkflowActionDefinition<{
12
- domain: string;
13
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"shortpixel", z.ZodObject<{
14
- connectionId: z.ZodString;
15
- entityId: z.ZodString;
16
- instanceId: z.ZodString;
17
- }, z.core.$strip>, z.ZodObject<{
18
- generic_key: z.ZodString;
19
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"shortpixel", z.ZodObject<{
20
- connectionId: z.ZodString;
21
- entityId: z.ZodString;
22
- instanceId: z.ZodString;
23
- }, z.core.$strip>, z.ZodObject<{
24
- generic_key: z.ZodString;
25
- }, z.core.$strip>>]>;
13
+ declare const shortpixelSetCdnDomain: AppAction<typeof ShortpixelSetCdnDomainInput, typeof ShortpixelSetCdnDomainOutput, typeof shortpixel.credential>;
26
14
  //#endregion
27
15
  export { shortpixelSetCdnDomain };
28
16
  //# sourceMappingURL=set-cdn-domain.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"set-cdn-domain.d.cts","names":[],"sources":["../../src/actions/set-cdn-domain.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;cAG3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;cAK5B,sBAAA,gCAAsB,wBAAA"}
1
+ {"version":3,"file":"set-cdn-domain.d.cts","names":[],"sources":["../../src/actions/set-cdn-domain.ts"],"mappings":";;;;;cAMa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;cAG3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;cAK5B,sBAAA,EAAwB,SAAA,QAC5B,2BAAA,SACA,4BAAA,SACA,UAAA,CAAW,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { shortpixel } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/set-cdn-domain.d.ts
@@ -8,21 +10,7 @@ declare const ShortpixelSetCdnDomainOutput: z.ZodObject<{
8
10
  Status: z.ZodNullable<z.ZodNumber>;
9
11
  Message: z.ZodNullable<z.ZodString>;
10
12
  }, z.core.$loose>;
11
- declare const shortpixelSetCdnDomain: import("@keystrokehq/action").WorkflowActionDefinition<{
12
- domain: string;
13
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"shortpixel", z.ZodObject<{
14
- connectionId: z.ZodString;
15
- entityId: z.ZodString;
16
- instanceId: z.ZodString;
17
- }, z.core.$strip>, z.ZodObject<{
18
- generic_key: z.ZodString;
19
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"shortpixel", z.ZodObject<{
20
- connectionId: z.ZodString;
21
- entityId: z.ZodString;
22
- instanceId: z.ZodString;
23
- }, z.core.$strip>, z.ZodObject<{
24
- generic_key: z.ZodString;
25
- }, z.core.$strip>>]>;
13
+ declare const shortpixelSetCdnDomain: AppAction<typeof ShortpixelSetCdnDomainInput, typeof ShortpixelSetCdnDomainOutput, typeof shortpixel.credential>;
26
14
  //#endregion
27
15
  export { shortpixelSetCdnDomain };
28
16
  //# sourceMappingURL=set-cdn-domain.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"set-cdn-domain.d.mts","names":[],"sources":["../../src/actions/set-cdn-domain.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;cAG3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;cAK5B,sBAAA,gCAAsB,wBAAA"}
1
+ {"version":3,"file":"set-cdn-domain.d.mts","names":[],"sources":["../../src/actions/set-cdn-domain.ts"],"mappings":";;;;;cAMa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;cAG3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;cAK5B,sBAAA,EAAwB,SAAA,QAC5B,2BAAA,SACA,4BAAA,SACA,UAAA,CAAW,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  const shortpixelSetCdnDomain = action("SHORTPIXEL_SET_CDN_DOMAIN", {
@@ -1 +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.object({\n domain: z.string().describe(\"Domain name to associate with the API key (e.g., example.com)\"),\n}).describe(\"Request model for associating an API key with an existing domain.\");\nexport const ShortpixelSetCdnDomainOutput = z.object({\n Status: z.number().int().describe(\"Status code returned by the API (1=success, other values indicate issues)\").nullable(),\n Message: z.string().describe(\"Details on the result of the set domain operation\").nullable(),\n}).passthrough().describe(\"Response model for set CDN domain action.\");\n\nexport const shortpixelSetCdnDomain = action(\"SHORTPIXEL_SET_CDN_DOMAIN\", {\n slug: \"shortpixel-set-cdn-domain\",\n name: \"Set CDN Domain\",\n description: \"Tool to associate an API key with an existing domain. Unlike add-domain, this does not create a new domain - it only associates a user ID if not already associated. Use when you need to claim unassociated domains.\",\n input: ShortpixelSetCdnDomainInput,\n output: ShortpixelSetCdnDomainOutput,\n});\n"],"mappings":";;AAYA,MAAa,yBAAyB,OAAO,6BAA6B;CACxE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAZyC,EAAE,OAAO,EAClD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,EAC7F,CAAC,CAAC,CAAC,SAAS,mEAUH;CACP,QAV0C,EAAE,OAAO;EACnD,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2EAA2E,CAAC,CAAC,SAAS;EACxH,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;CAC7F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2CAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"set-cdn-domain.mjs","names":[],"sources":["../../src/actions/set-cdn-domain.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { shortpixel } from \"../app\";\n\nexport const ShortpixelSetCdnDomainInput = z.object({\n domain: z.string().describe(\"Domain name to associate with the API key (e.g., example.com)\"),\n}).describe(\"Request model for associating an API key with an existing domain.\");\nexport const ShortpixelSetCdnDomainOutput = z.object({\n Status: z.number().int().describe(\"Status code returned by the API (1=success, other values indicate issues)\").nullable(),\n Message: z.string().describe(\"Details on the result of the set domain operation\").nullable(),\n}).passthrough().describe(\"Response model for set CDN domain action.\");\n\nexport const shortpixelSetCdnDomain: AppAction<\n typeof ShortpixelSetCdnDomainInput,\n typeof ShortpixelSetCdnDomainOutput,\n typeof shortpixel.credential\n> = 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":";;;AAcA,MAAa,yBAIT,OAAO,6BAA6B;CACtC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAhByC,EAAE,OAAO,EAClD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,EAC7F,CAAC,CAAC,CAAC,SAAS,mEAcH;CACP,QAd0C,EAAE,OAAO;EACnD,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2EAA2E,CAAC,CAAC,SAAS;EACxH,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;CAC7F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2CAWhB;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/upload-and-optimize-images.ts
@@ -1 +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.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.object({\n Code: z.number().int().describe(\"Status code: 1=scheduled, 2=ready, negative values indicate errors\").nullable(),\n Message: z.string().describe(\"Human-readable status message\").nullable(),\n}).passthrough().describe(\"Status information for an optimized image.\");\nconst ShortpixelUploadAndOptimizeImages_OptimizedImageSchema = 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}).passthrough().describe(\"Information about an optimized image.\");\nexport const ShortpixelUploadAndOptimizeImagesOutput = z.object({\n results: z.array(ShortpixelUploadAndOptimizeImages_OptimizedImageSchema).describe(\"List of optimized image results\"),\n}).passthrough().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,yCAAyCA,IAAAA,EAAE,OAAO;CAC7D,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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C,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,YAAY,CAAC,CAAC,SAAS,uCAAuC;AACjE,MAAa,0CAA0CA,IAAAA,EAAE,OAAO,EAC9D,SAASA,IAAAA,EAAE,MAAM,sDAAsD,CAAC,CAAC,SAAS,iCAAiC,EACrH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mGAAmG;AAE7H,MAAa,oCAAoCC,eAAAA,OAAO,yCAAyC;CAC/F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"upload-and-optimize-images.cjs","names":["z","action"],"sources":["../../src/actions/upload-and-optimize-images.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { shortpixel } from \"../app\";\n\nexport const ShortpixelUploadAndOptimizeImagesInput = 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.object({\n Code: z.number().int().describe(\"Status code: 1=scheduled, 2=ready, negative values indicate errors\").nullable(),\n Message: z.string().describe(\"Human-readable status message\").nullable(),\n}).passthrough().describe(\"Status information for an optimized image.\");\nconst ShortpixelUploadAndOptimizeImages_OptimizedImageSchema = 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}).passthrough().describe(\"Information about an optimized image.\");\nexport const ShortpixelUploadAndOptimizeImagesOutput = z.object({\n results: z.array(ShortpixelUploadAndOptimizeImages_OptimizedImageSchema).describe(\"List of optimized image results\"),\n}).passthrough().describe(\"Response model for upload and optimize images action.\\nReturns a list of optimized image results.\");\n\nexport const shortpixelUploadAndOptimizeImages: AppAction<\n typeof ShortpixelUploadAndOptimizeImagesInput,\n typeof ShortpixelUploadAndOptimizeImagesOutput,\n typeof shortpixel.credential\n> = 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 con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AC"}
@@ -1,3 +1,5 @@
1
+ import { shortpixel } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/upload-and-optimize-images.d.ts
@@ -30,34 +32,7 @@ declare const ShortpixelUploadAndOptimizeImagesOutput: z.ZodObject<{
30
32
  OriginalSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
31
33
  }, z.core.$loose>>;
32
34
  }, z.core.$loose>;
33
- declare const shortpixelUploadAndOptimizeImages: import("@keystrokehq/action").WorkflowActionDefinition<{
34
- file1: {
35
- name: string;
36
- s3key: string;
37
- mimetype: string;
38
- };
39
- file2?: {
40
- name: string;
41
- s3key: string;
42
- mimetype: string;
43
- } | undefined;
44
- lossy?: 0 | 1 | 2 | undefined;
45
- resize?: 0 | 1 | 3 | 4 | undefined;
46
- convertto?: string | undefined;
47
- plugin_version?: string | undefined;
48
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"shortpixel", z.ZodObject<{
49
- connectionId: z.ZodString;
50
- entityId: z.ZodString;
51
- instanceId: z.ZodString;
52
- }, z.core.$strip>, z.ZodObject<{
53
- generic_key: z.ZodString;
54
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"shortpixel", z.ZodObject<{
55
- connectionId: z.ZodString;
56
- entityId: z.ZodString;
57
- instanceId: z.ZodString;
58
- }, z.core.$strip>, z.ZodObject<{
59
- generic_key: z.ZodString;
60
- }, z.core.$strip>>]>;
35
+ declare const shortpixelUploadAndOptimizeImages: AppAction<typeof ShortpixelUploadAndOptimizeImagesInput, typeof ShortpixelUploadAndOptimizeImagesOutput, typeof shortpixel.credential>;
61
36
  //#endregion
62
37
  export { shortpixelUploadAndOptimizeImages };
63
38
  //# sourceMappingURL=upload-and-optimize-images.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"upload-and-optimize-images.d.cts","names":[],"sources":["../../src/actions/upload-and-optimize-images.ts"],"mappings":";;;cAIa,sCAAA,EAAsC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;cA4BtC,uCAAA,EAAuC,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAIvC,iCAAA,gCAAiC,wBAAA"}
1
+ {"version":3,"file":"upload-and-optimize-images.d.cts","names":[],"sources":["../../src/actions/upload-and-optimize-images.ts"],"mappings":";;;;;cAMa,sCAAA,EAAsC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;cA4BtC,uCAAA,EAAuC,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAIvC,iCAAA,EAAmC,SAAA,QACvC,sCAAA,SACA,uCAAA,SACA,UAAA,CAAW,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { shortpixel } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/upload-and-optimize-images.d.ts
@@ -30,34 +32,7 @@ declare const ShortpixelUploadAndOptimizeImagesOutput: z.ZodObject<{
30
32
  OriginalSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
31
33
  }, z.core.$loose>>;
32
34
  }, z.core.$loose>;
33
- declare const shortpixelUploadAndOptimizeImages: import("@keystrokehq/action").WorkflowActionDefinition<{
34
- file1: {
35
- name: string;
36
- s3key: string;
37
- mimetype: string;
38
- };
39
- file2?: {
40
- name: string;
41
- s3key: string;
42
- mimetype: string;
43
- } | undefined;
44
- lossy?: 0 | 1 | 2 | undefined;
45
- resize?: 0 | 1 | 3 | 4 | undefined;
46
- convertto?: string | undefined;
47
- plugin_version?: string | undefined;
48
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"shortpixel", z.ZodObject<{
49
- connectionId: z.ZodString;
50
- entityId: z.ZodString;
51
- instanceId: z.ZodString;
52
- }, z.core.$strip>, z.ZodObject<{
53
- generic_key: z.ZodString;
54
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"shortpixel", z.ZodObject<{
55
- connectionId: z.ZodString;
56
- entityId: z.ZodString;
57
- instanceId: z.ZodString;
58
- }, z.core.$strip>, z.ZodObject<{
59
- generic_key: z.ZodString;
60
- }, z.core.$strip>>]>;
35
+ declare const shortpixelUploadAndOptimizeImages: AppAction<typeof ShortpixelUploadAndOptimizeImagesInput, typeof ShortpixelUploadAndOptimizeImagesOutput, typeof shortpixel.credential>;
61
36
  //#endregion
62
37
  export { shortpixelUploadAndOptimizeImages };
63
38
  //# sourceMappingURL=upload-and-optimize-images.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"upload-and-optimize-images.d.mts","names":[],"sources":["../../src/actions/upload-and-optimize-images.ts"],"mappings":";;;cAIa,sCAAA,EAAsC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;cA4BtC,uCAAA,EAAuC,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAIvC,iCAAA,gCAAiC,wBAAA"}
1
+ {"version":3,"file":"upload-and-optimize-images.d.mts","names":[],"sources":["../../src/actions/upload-and-optimize-images.ts"],"mappings":";;;;;cAMa,sCAAA,EAAsC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;cA4BtC,uCAAA,EAAuC,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAIvC,iCAAA,EAAmC,SAAA,QACvC,sCAAA,SACA,uCAAA,SACA,UAAA,CAAW,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  //#region src/actions/upload-and-optimize-images.ts
@@ -1 +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.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.object({\n Code: z.number().int().describe(\"Status code: 1=scheduled, 2=ready, negative values indicate errors\").nullable(),\n Message: z.string().describe(\"Human-readable status message\").nullable(),\n}).passthrough().describe(\"Status information for an optimized image.\");\nconst ShortpixelUploadAndOptimizeImages_OptimizedImageSchema = 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}).passthrough().describe(\"Information about an optimized image.\");\nexport const ShortpixelUploadAndOptimizeImagesOutput = z.object({\n results: z.array(ShortpixelUploadAndOptimizeImages_OptimizedImageSchema).describe(\"List of optimized image results\"),\n}).passthrough().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,yCAAyC,EAAE,OAAO;CAC7D,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,CAA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load-and-optimize-images.mjs","names":[],"sources":["../../src/actions/upload-and-optimize-images.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { shortpixel } from \"../app\";\n\nexport const ShortpixelUploadAndOptimizeImagesInput = 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.object({\n Code: z.number().int().describe(\"Status code: 1=scheduled, 2=ready, negative values indicate errors\").nullable(),\n Message: z.string().describe(\"Human-readable status message\").nullable(),\n}).passthrough().describe(\"Status information for an optimized image.\");\nconst ShortpixelUploadAndOptimizeImages_OptimizedImageSchema = 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}).passthrough().describe(\"Information about an optimized image.\");\nexport const ShortpixelUploadAndOptimizeImagesOutput = z.object({\n results: z.array(ShortpixelUploadAndOptimizeImages_OptimizedImageSchema).describe(\"List of optimized image results\"),\n}).passthrough().describe(\"Response model for upload and optimize images action.\\nReturns a list of optimized image results.\");\n\nexport const shortpixelUploadAndOptimizeImages: AppAction<\n typeof ShortpixelUploadAndOptimizeImagesInput,\n typeof ShortpixelUploadAndOptimizeImagesOutput,\n typeof shortpixel.credential\n> = 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":";;;;AAMA,MAAa,yCAAyC,EAAE,OAAO;CAC7D,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;EA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CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC9F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uCAAuC;AAKjE,MAAa,oCAIT,OAAO,yCAAyC;CAClD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAbqD,EAAE,OAAO,EAC9D,SAAS,EAAE,MAAM,sDAAsD,CAAC,CAAC,SAAS,iCAAiC,EACrH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mGAWhB;AACV,CAAC"}
package/dist/app.cjs CHANGED
@@ -1,10 +1,10 @@
1
1
  let _keystrokehq_keystroke_app = require("@keystrokehq/keystroke/app");
2
- let zod = require("zod");
3
2
  //#region src/app.ts
3
+ const credential = { generic_key: require("zod").z.string() };
4
4
  const shortpixel = (0, _keystrokehq_keystroke_app.defineApp)({
5
5
  slug: "shortpixel",
6
6
  auth: "keystroke",
7
- credential: { generic_key: zod.z.string() }
7
+ credential
8
8
  });
9
9
  //#endregion
10
10
  exports.shortpixel = shortpixel;
package/dist/app.cjs.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"app.cjs","names":["z"],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nexport const shortpixel = defineApp({\n slug: \"shortpixel\",\n auth: \"keystroke\",\n credential: {\n generic_key: z.string(),\n },\n});\n"],"mappings":";;;AAGA,MAAa,cAAA,GAAA,2BAAA,UAAA,CAAuB;CAClC,MAAM;CACN,MAAM;CACN,YAAY,EACV,aAAaA,IAAAA,EAAE,OAAO,EACxB;AACF,CAAC"}
1
+ {"version":3,"file":"app.cjs","names":["z"],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp, type KeystrokeApp } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nconst credential = {\n generic_key: z.string(),\n};\n\nexport const shortpixel: KeystrokeApp<\"shortpixel\", typeof credential> = defineApp({\n slug: \"shortpixel\",\n auth: \"keystroke\",\n credential,\n});\n"],"mappings":";;AAGA,MAAM,aAAa,EACjB,0BAAaA,CAAAA,CAAAA,EAAE,OAAO,EACxB;AAEA,MAAa,cAAA,GAAA,2BAAA,UAAA,CAAsE;CACjF,MAAM;CACN,MAAM;CACN;AACF,CAAC"}
package/dist/app.d.cts CHANGED
@@ -1,13 +1,11 @@
1
+ import { KeystrokeApp } from "@keystrokehq/keystroke/app";
1
2
  import { z } from "zod";
2
3
 
3
4
  //#region src/app.d.ts
4
- declare const shortpixel: import("@keystrokehq/app").App<import("@keystrokehq/shared").Credential<"shortpixel", z.ZodObject<{
5
- connectionId: z.ZodString;
6
- entityId: z.ZodString;
7
- instanceId: z.ZodString;
8
- }, z.core.$strip>, z.ZodObject<{
5
+ declare const credential: {
9
6
  generic_key: z.ZodString;
10
- }, z.core.$strip>>>;
7
+ };
8
+ declare const shortpixel: KeystrokeApp<"shortpixel", typeof credential>;
11
9
  //#endregion
12
10
  export { shortpixel };
13
11
  //# sourceMappingURL=app.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"app.d.cts","names":[],"sources":["../src/app.ts"],"mappings":";;;cAGa,UAAA,6BAAU,GAAA,+BAAA,UAAA,eAAA,CAAA,CAAA,SAAA"}
1
+ {"version":3,"file":"app.d.cts","names":[],"sources":["../src/app.ts"],"mappings":";;;;cAGM,UAAA;eAEL,CAAA,CAAA,SAAA;AAAA;AAAA,cAEY,UAAA,EAAY,YAAY,sBAAsB,UAAA"}
package/dist/app.d.mts CHANGED
@@ -1,13 +1,11 @@
1
+ import { KeystrokeApp } from "@keystrokehq/keystroke/app";
1
2
  import { z } from "zod";
2
3
 
3
4
  //#region src/app.d.ts
4
- declare const shortpixel: import("@keystrokehq/app").App<import("@keystrokehq/shared").Credential<"shortpixel", z.ZodObject<{
5
- connectionId: z.ZodString;
6
- entityId: z.ZodString;
7
- instanceId: z.ZodString;
8
- }, z.core.$strip>, z.ZodObject<{
5
+ declare const credential: {
9
6
  generic_key: z.ZodString;
10
- }, z.core.$strip>>>;
7
+ };
8
+ declare const shortpixel: KeystrokeApp<"shortpixel", typeof credential>;
11
9
  //#endregion
12
10
  export { shortpixel };
13
11
  //# sourceMappingURL=app.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"app.d.mts","names":[],"sources":["../src/app.ts"],"mappings":";;;cAGa,UAAA,6BAAU,GAAA,+BAAA,UAAA,eAAA,CAAA,CAAA,SAAA"}
1
+ {"version":3,"file":"app.d.mts","names":[],"sources":["../src/app.ts"],"mappings":";;;;cAGM,UAAA;eAEL,CAAA,CAAA,SAAA;AAAA;AAAA,cAEY,UAAA,EAAY,YAAY,sBAAsB,UAAA"}
package/dist/app.mjs CHANGED
@@ -1,6 +1,5 @@
1
1
  import { defineApp } from "@keystrokehq/keystroke/app";
2
2
  import { z } from "zod";
3
- //#region src/app.ts
4
3
  const shortpixel = defineApp({
5
4
  slug: "shortpixel",
6
5
  auth: "keystroke",
package/dist/app.mjs.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"app.mjs","names":[],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nexport const shortpixel = defineApp({\n slug: \"shortpixel\",\n auth: \"keystroke\",\n credential: {\n generic_key: z.string(),\n },\n});\n"],"mappings":";;;AAGA,MAAa,aAAa,UAAU;CAClC,MAAM;CACN,MAAM;CACN,YAAY,EACV,aAAa,EAAE,OAAO,EACxB;AACF,CAAC"}
1
+ {"version":3,"file":"app.mjs","names":[],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp, type KeystrokeApp } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nconst credential = {\n generic_key: z.string(),\n};\n\nexport const shortpixel: KeystrokeApp<\"shortpixel\", typeof credential> = defineApp({\n slug: \"shortpixel\",\n auth: \"keystroke\",\n credential,\n});\n"],"mappings":";;AAOA,MAAa,aAA4D,UAAU;CACjF,MAAM;CACN,MAAM;CACN,cANA,aAAa,EAAE,OAAO,EAMtB;AACF,CAAC"}
package/dist/index.d.cts CHANGED
@@ -1,3 +1,4 @@
1
+ import { shortpixel } from "./app.cjs";
1
2
  import { shortpixelAddCdnDomain } from "./actions/add-cdn-domain.cjs";
2
3
  import { shortpixelBulkPurgeStorage } from "./actions/bulk-purge-storage.cjs";
3
4
  import { shortpixelCheckImageStatus } from "./actions/check-image-status.cjs";
@@ -10,6 +11,5 @@ import { shortpixelReadCdnDomain } from "./actions/read-cdn-domain.cjs";
10
11
  import { shortpixelRevokeCdnDomain } from "./actions/revoke-cdn-domain.cjs";
11
12
  import { shortpixelSetCdnDomain } from "./actions/set-cdn-domain.cjs";
12
13
  import { shortpixelUploadAndOptimizeImages } from "./actions/upload-and-optimize-images.cjs";
13
- import { shortpixel } from "./app.cjs";
14
14
  import { shortpixelCatalog } from "./catalog.cjs";
15
15
  export { shortpixel, shortpixelAddCdnDomain, shortpixelBulkPurgeStorage, shortpixelCatalog, shortpixelCheckImageStatus, shortpixelCleanUpImage, shortpixelGetAdaptiveImageCdn, shortpixelGetApiStatus, shortpixelGetCdnUsage, shortpixelOptimizeImagesByUrl, shortpixelReadCdnDomain, shortpixelRevokeCdnDomain, shortpixelSetCdnDomain, shortpixelUploadAndOptimizeImages };
package/dist/index.d.mts CHANGED
@@ -1,3 +1,4 @@
1
+ import { shortpixel } from "./app.mjs";
1
2
  import { shortpixelAddCdnDomain } from "./actions/add-cdn-domain.mjs";
2
3
  import { shortpixelBulkPurgeStorage } from "./actions/bulk-purge-storage.mjs";
3
4
  import { shortpixelCheckImageStatus } from "./actions/check-image-status.mjs";
@@ -10,6 +11,5 @@ import { shortpixelReadCdnDomain } from "./actions/read-cdn-domain.mjs";
10
11
  import { shortpixelRevokeCdnDomain } from "./actions/revoke-cdn-domain.mjs";
11
12
  import { shortpixelSetCdnDomain } from "./actions/set-cdn-domain.mjs";
12
13
  import { shortpixelUploadAndOptimizeImages } from "./actions/upload-and-optimize-images.mjs";
13
- import { shortpixel } from "./app.mjs";
14
14
  import { shortpixelCatalog } from "./catalog.mjs";
15
15
  export { shortpixel, shortpixelAddCdnDomain, shortpixelBulkPurgeStorage, shortpixelCatalog, shortpixelCheckImageStatus, shortpixelCleanUpImage, shortpixelGetAdaptiveImageCdn, shortpixelGetApiStatus, shortpixelGetCdnUsage, shortpixelOptimizeImagesByUrl, shortpixelReadCdnDomain, shortpixelRevokeCdnDomain, shortpixelSetCdnDomain, shortpixelUploadAndOptimizeImages };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@keystrokehq/shortpixel",
3
- "version": "0.1.4",
3
+ "version": "0.1.5",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "registry": "https://registry.npmjs.org"
@@ -31,7 +31,7 @@
31
31
  }
32
32
  },
33
33
  "peerDependencies": {
34
- "@keystrokehq/keystroke": ">=0.1.4",
34
+ "@keystrokehq/keystroke": ">=0.1.104",
35
35
  "zod": "^4.4.3"
36
36
  },
37
37
  "devDependencies": {