@keystrokehq/shortpixel 0.1.2 → 0.1.4

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 (85) hide show
  1. package/dist/actions/add-cdn-domain.cjs +1 -1
  2. package/dist/actions/add-cdn-domain.cjs.map +1 -1
  3. package/dist/actions/add-cdn-domain.d.cts +14 -2
  4. package/dist/actions/add-cdn-domain.d.mts +14 -2
  5. package/dist/actions/add-cdn-domain.mjs +1 -1
  6. package/dist/actions/add-cdn-domain.mjs.map +1 -1
  7. package/dist/actions/bulk-purge-storage.cjs +1 -1
  8. package/dist/actions/bulk-purge-storage.cjs.map +1 -1
  9. package/dist/actions/bulk-purge-storage.d.cts +14 -2
  10. package/dist/actions/bulk-purge-storage.d.mts +14 -2
  11. package/dist/actions/bulk-purge-storage.mjs +1 -1
  12. package/dist/actions/bulk-purge-storage.mjs.map +1 -1
  13. package/dist/actions/check-image-status.cjs +2 -2
  14. package/dist/actions/check-image-status.cjs.map +1 -1
  15. package/dist/actions/check-image-status.d.cts +15 -3
  16. package/dist/actions/check-image-status.d.mts +15 -3
  17. package/dist/actions/check-image-status.mjs +2 -2
  18. package/dist/actions/check-image-status.mjs.map +1 -1
  19. package/dist/actions/clean-up-image.cjs +2 -2
  20. package/dist/actions/clean-up-image.cjs.map +1 -1
  21. package/dist/actions/clean-up-image.d.cts +15 -3
  22. package/dist/actions/clean-up-image.d.mts +15 -3
  23. package/dist/actions/clean-up-image.mjs +2 -2
  24. package/dist/actions/clean-up-image.mjs.map +1 -1
  25. package/dist/actions/get-adaptive-image-cdn.cjs +2 -2
  26. package/dist/actions/get-adaptive-image-cdn.cjs.map +1 -1
  27. package/dist/actions/get-adaptive-image-cdn.d.cts +17 -5
  28. package/dist/actions/get-adaptive-image-cdn.d.mts +17 -5
  29. package/dist/actions/get-adaptive-image-cdn.mjs +2 -2
  30. package/dist/actions/get-adaptive-image-cdn.mjs.map +1 -1
  31. package/dist/actions/get-api-status.cjs +2 -2
  32. package/dist/actions/get-api-status.cjs.map +1 -1
  33. package/dist/actions/get-api-status.d.cts +15 -3
  34. package/dist/actions/get-api-status.d.cts.map +1 -1
  35. package/dist/actions/get-api-status.d.mts +15 -3
  36. package/dist/actions/get-api-status.d.mts.map +1 -1
  37. package/dist/actions/get-api-status.mjs +2 -2
  38. package/dist/actions/get-api-status.mjs.map +1 -1
  39. package/dist/actions/get-cdn-usage.cjs +3 -3
  40. package/dist/actions/get-cdn-usage.cjs.map +1 -1
  41. package/dist/actions/get-cdn-usage.d.cts +16 -4
  42. package/dist/actions/get-cdn-usage.d.mts +16 -4
  43. package/dist/actions/get-cdn-usage.mjs +3 -3
  44. package/dist/actions/get-cdn-usage.mjs.map +1 -1
  45. package/dist/actions/optimize-images-by-url.cjs +4 -4
  46. package/dist/actions/optimize-images-by-url.cjs.map +1 -1
  47. package/dist/actions/optimize-images-by-url.d.cts +20 -8
  48. package/dist/actions/optimize-images-by-url.d.cts.map +1 -1
  49. package/dist/actions/optimize-images-by-url.d.mts +20 -8
  50. package/dist/actions/optimize-images-by-url.d.mts.map +1 -1
  51. package/dist/actions/optimize-images-by-url.mjs +4 -4
  52. package/dist/actions/optimize-images-by-url.mjs.map +1 -1
  53. package/dist/actions/read-cdn-domain.cjs +1 -1
  54. package/dist/actions/read-cdn-domain.cjs.map +1 -1
  55. package/dist/actions/read-cdn-domain.d.cts +14 -2
  56. package/dist/actions/read-cdn-domain.d.mts +14 -2
  57. package/dist/actions/read-cdn-domain.mjs +1 -1
  58. package/dist/actions/read-cdn-domain.mjs.map +1 -1
  59. package/dist/actions/revoke-cdn-domain.cjs +1 -1
  60. package/dist/actions/revoke-cdn-domain.cjs.map +1 -1
  61. package/dist/actions/revoke-cdn-domain.d.cts +14 -2
  62. package/dist/actions/revoke-cdn-domain.d.mts +14 -2
  63. package/dist/actions/revoke-cdn-domain.mjs +1 -1
  64. package/dist/actions/revoke-cdn-domain.mjs.map +1 -1
  65. package/dist/actions/set-cdn-domain.cjs +1 -1
  66. package/dist/actions/set-cdn-domain.cjs.map +1 -1
  67. package/dist/actions/set-cdn-domain.d.cts +14 -2
  68. package/dist/actions/set-cdn-domain.d.mts +14 -2
  69. package/dist/actions/set-cdn-domain.mjs +1 -1
  70. package/dist/actions/set-cdn-domain.mjs.map +1 -1
  71. package/dist/actions/upload-and-optimize-images.cjs +3 -3
  72. package/dist/actions/upload-and-optimize-images.cjs.map +1 -1
  73. package/dist/actions/upload-and-optimize-images.d.cts +18 -6
  74. package/dist/actions/upload-and-optimize-images.d.mts +18 -6
  75. package/dist/actions/upload-and-optimize-images.mjs +3 -3
  76. package/dist/actions/upload-and-optimize-images.mjs.map +1 -1
  77. package/dist/app.cjs +5 -2
  78. package/dist/app.cjs.map +1 -1
  79. package/dist/app.d.cts +9 -1
  80. package/dist/app.d.cts.map +1 -1
  81. package/dist/app.d.mts +9 -1
  82. package/dist/app.d.mts.map +1 -1
  83. package/dist/app.mjs +3 -1
  84. package/dist/app.mjs.map +1 -1
  85. package/package.json +1 -1
@@ -26,7 +26,7 @@ const ShortpixelOptimizeImagesByUrlInput = z.object({
26
26
  bg_remove: z.string().describe("Background removal options: '1' for transparent background, URL for custom background image, '#rrggbbxx' for color with transparency (xx is alpha in hex)").optional(),
27
27
  convertto: z.string().describe("Format conversion options: '+webp' (add WebP version), '+avif' (add AVIF version), '+webp|+avif' (add both), 'webp|avif' (replace with first available), 'jpg', 'png', 'gif' (convert to format)").optional(),
28
28
  keep_exif: z.number().int().describe("Preserve EXIF metadata in optimized images: 0 to remove (default), 1 to keep").optional(),
29
- paramlist: z.array(z.object({})).describe("Array of custom optimization parameters for each URL, allowing per-image settings. Must match urllist length if provided.").optional(),
29
+ paramlist: z.array(z.record(z.string(), z.unknown())).describe("Array of custom optimization parameters for each URL, allowing per-image settings. Must match urllist length if provided.").optional(),
30
30
  resize_width: z.number().int().describe("Target width in pixels for resizing. Required if resize is specified.").optional(),
31
31
  resize_height: z.number().int().describe("Target height in pixels for resizing. Required if resize is specified.").optional(),
32
32
  plugin_version: z.string().describe("5-character max alphanumeric code identifying your API client").optional(),
@@ -41,7 +41,7 @@ const ShortpixelOptimizeImagesByUrlInput = z.object({
41
41
  const ShortpixelOptimizeImagesByUrl_OptimizationStatusSchema = z.object({
42
42
  Code: z.number().int().describe("Status code: 1 = scheduled for optimization, 2 = ready/completed, negative values indicate errors").nullable(),
43
43
  Message: z.string().describe("Human-readable status message describing the optimization result").nullable()
44
- }).describe("Status information for an optimized image.");
44
+ }).passthrough().describe("Status information for an optimized image.");
45
45
  const ShortpixelOptimizeImagesByUrl_OptimizedImageSchema = z.object({
46
46
  Status: ShortpixelOptimizeImagesByUrl_OptimizationStatusSchema.nullable(),
47
47
  LossyURL: z.string().describe("URL of the lossy compressed version").nullable().optional(),
@@ -59,13 +59,13 @@ const ShortpixelOptimizeImagesByUrl_OptimizedImageSchema = z.object({
59
59
  WebPLosslessURL: z.string().describe("URL of the WebP lossless version").nullable().optional(),
60
60
  AVIFLoselessSize: z.union([z.number().int(), z.string()]).nullable().optional(),
61
61
  WebPLoselessSize: z.union([z.number().int(), z.string()]).nullable().optional()
62
- }).describe("Response data for a single optimized image.");
62
+ }).passthrough().describe("Response data for a single optimized image.");
63
63
  const shortpixelOptimizeImagesByUrl = action("SHORTPIXEL_OPTIMIZE_IMAGES_BY_URL", {
64
64
  slug: "shortpixel-optimize-images-by-url",
65
65
  name: "Optimize Images by URL",
66
66
  description: "Tool to optimize images by providing their URLs. Supports batch processing of up to 100 URLs per request with options for lossy, glossy, or lossless compression, resizing, format conversion (WebP/AVIF), and background removal. Use when you need to compress and optimize images accessible online.",
67
67
  input: ShortpixelOptimizeImagesByUrlInput,
68
- output: z.object({ results: z.array(ShortpixelOptimizeImagesByUrl_OptimizedImageSchema).describe("Array of optimization results, one per input URL in the same order as the request") }).describe("Response model for batch image optimization by URL.")
68
+ output: z.object({ results: z.array(ShortpixelOptimizeImagesByUrl_OptimizedImageSchema).describe("Array of optimization results, one per input URL in the same order as the request") }).passthrough().describe("Response model for batch image optimization by URL.")
69
69
  });
70
70
  //#endregion
71
71
  export { shortpixelOptimizeImagesByUrl };
@@ -1 +1 @@
1
- {"version":3,"file":"optimize-images-by-url.mjs","names":[],"sources":["../../src/actions/optimize-images-by-url.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ShortpixelOptimizeImagesByUrlInput = z.object({\n wait: z.number().int().describe(\"Wait time in seconds (0-30) for optimization before returning. Use 0 to return immediately with scheduled status. Higher values wait for completion.\").optional(),\n lossy: z.enum([\"lossless\", \"lossy\", \"glossy\"]).describe(\"Image compression type.\").optional(),\n resize: z.enum([\"none\", \"outer\", \"inner\", \"smart_crop_ai\"]).describe(\"Image resize type.\").optional(),\n refresh: z.number().int().describe(\"Re-fetch and re-optimize image from source URL: 0 to use cached version, 1 to force fresh optimization\").optional(),\n upscale: z.enum([\"none\", \"2x\", \"3x\", \"4x\"]).describe(\"Image upscaling factor.\").optional(),\n urllist: z.array(z.string()).describe(\"Array of image URLs to optimize. Images must be accessible online. Maximum 100 URLs per request.\"),\n cmyk2rgb: z.number().int().describe(\"Convert CMYK color space to RGB: 0 to skip conversion, 1 to convert (default is 1)\").optional(),\n bg_remove: z.string().describe(\"Background removal options: '1' for transparent background, URL for custom background image, '#rrggbbxx' for color with transparency (xx is alpha in hex)\").optional(),\n convertto: z.string().describe(\"Format conversion options: '+webp' (add WebP version), '+avif' (add AVIF version), '+webp|+avif' (add both), 'webp|avif' (replace with first available), 'jpg', 'png', 'gif' (convert to format)\").optional(),\n keep_exif: z.number().int().describe(\"Preserve EXIF metadata in optimized images: 0 to remove (default), 1 to keep\").optional(),\n paramlist: z.array(z.object({})).describe(\"Array of custom optimization parameters for each URL, allowing per-image settings. Must match urllist length if provided.\").optional(),\n resize_width: z.number().int().describe(\"Target width in pixels for resizing. Required if resize is specified.\").optional(),\n resize_height: z.number().int().describe(\"Target height in pixels for resizing. Required if resize is specified.\").optional(),\n plugin_version: z.string().describe(\"5-character max alphanumeric code identifying your API client\").optional(),\n returndatalist: z.array(z.union([z.string(), z.number().int(), z.number(), z.boolean(), z.record(z.string(), z.unknown())])).describe(\"Any array to be returned unchanged in the API response for tracking purposes\").optional(),\n}).describe(\"Request model for optimizing images by URL with ShortPixel.\");\nconst ShortpixelOptimizeImagesByUrl_OptimizationStatusSchema = z.object({\n Code: z.number().int().describe(\"Status code: 1 = scheduled for optimization, 2 = ready/completed, negative values indicate errors\").nullable(),\n Message: z.string().describe(\"Human-readable status message describing the optimization result\").nullable(),\n}).describe(\"Status information for an optimized image.\");\nconst ShortpixelOptimizeImagesByUrl_OptimizedImageSchema = z.object({\n Status: ShortpixelOptimizeImagesByUrl_OptimizationStatusSchema.nullable(),\n LossyURL: z.string().describe(\"URL of the lossy compressed version\").nullable().optional(),\n LossySize: z.number().int().describe(\"Size of lossy compressed image in bytes\").nullable().optional(),\n Timestamp: z.string().describe(\"Timestamp of when the optimization was processed\").nullable().optional(),\n LosslessURL: z.string().describe(\"URL of the lossless compressed version\").nullable().optional(),\n OriginalURL: z.string().describe(\"URL of the original source image\").nullable().optional(),\n AVIFLossyURL: z.string().describe(\"URL of the AVIF lossy version\").nullable().optional(),\n LoselessSize: z.number().int().describe(\"Size of lossless compressed image in bytes\").nullable().optional(),\n OriginalSize: z.number().int().describe(\"Size of original image in bytes\").nullable().optional(),\n WebPLossyURL: z.string().describe(\"URL of the WebP lossy version\").nullable().optional(),\n WebPLossySize: z.union([z.number().int(), z.string()]).nullable().optional(),\n AVIFPLossySize: z.union([z.number().int(), z.string()]).nullable().optional(),\n AVIFLosslessURL: z.string().describe(\"URL of the AVIF lossless version\").nullable().optional(),\n WebPLosslessURL: z.string().describe(\"URL of the WebP lossless version\").nullable().optional(),\n AVIFLoselessSize: z.union([z.number().int(), z.string()]).nullable().optional(),\n WebPLoselessSize: z.union([z.number().int(), z.string()]).nullable().optional(),\n}).describe(\"Response data for a single optimized image.\");\nexport const ShortpixelOptimizeImagesByUrlOutput = z.object({\n results: z.array(ShortpixelOptimizeImagesByUrl_OptimizedImageSchema).describe(\"Array of optimization results, one per input URL in the same order as the request\"),\n}).describe(\"Response model for batch image optimization by URL.\");\n\nexport const shortpixelOptimizeImagesByUrl = action(\"SHORTPIXEL_OPTIMIZE_IMAGES_BY_URL\", {\n slug: \"shortpixel-optimize-images-by-url\",\n name: \"Optimize Images by URL\",\n description: \"Tool to optimize images by providing their URLs. Supports batch processing of up to 100 URLs per request with options for lossy, glossy, or lossless compression, resizing, format conversion (WebP/AVIF), and background removal. Use when you need to compress and optimize images accessible online.\",\n input: ShortpixelOptimizeImagesByUrlInput,\n output: ShortpixelOptimizeImagesByUrlOutput,\n});\n"],"mappings":";;;AAIA,MAAa,qCAAqC,EAAE,OAAO;CACzD,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sJAAsJ,CAAC,CAAC,SAAS;CACjM,OAAO,EAAE,KAAK;EAAC;EAAY;EAAS;CAAQ,CAAC,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;CAC5F,QAAQ,EAAE,KAAK;EAAC;EAAQ;EAAS;EAAS;CAAe,CAAC,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS;CACpG,SAAS,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wGAAwG,CAAC,CAAC,SAAS;CACtJ,SAAS,EAAE,KAAK;EAAC;EAAQ;EAAM;EAAM;CAAI,CAAC,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;CACzF,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,kGAAkG;CACxI,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oFAAoF,CAAC,CAAC,SAAS;CACnI,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,2JAA2J,CAAC,CAAC,SAAS;CACrM,WAAW,EAAE,OAAO,CAAC,CAAC,SAA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,MAAM,CAAC,EAAE,OAAO,CAAC,CAAC,IAAI,GAAG,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAChF,CAAC,CAAC,CAAC,SAAS,6CAA6C;AAKzD,MAAa,gCAAgC,OAAO,qCAAqC;CACvF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATiD,EAAE,OAAO,EAC1D,SAAS,EAAE,MAAM,kDAAkD,CAAC,CAAC,SAAS,mFAAmF,EACnK,CAAC,CAAC,CAAC,SAAS,qDAOF;AACV,CAAC"}
1
+ {"version":3,"file":"optimize-images-by-url.mjs","names":[],"sources":["../../src/actions/optimize-images-by-url.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ShortpixelOptimizeImagesByUrlInput = z.object({\n wait: z.number().int().describe(\"Wait time in seconds (0-30) for optimization before returning. Use 0 to return immediately with scheduled status. Higher values wait for completion.\").optional(),\n lossy: z.enum([\"lossless\", \"lossy\", \"glossy\"]).describe(\"Image compression type.\").optional(),\n resize: z.enum([\"none\", \"outer\", \"inner\", \"smart_crop_ai\"]).describe(\"Image resize type.\").optional(),\n refresh: z.number().int().describe(\"Re-fetch and re-optimize image from source URL: 0 to use cached version, 1 to force fresh optimization\").optional(),\n upscale: z.enum([\"none\", \"2x\", \"3x\", \"4x\"]).describe(\"Image upscaling factor.\").optional(),\n urllist: z.array(z.string()).describe(\"Array of image URLs to optimize. Images must be accessible online. Maximum 100 URLs per request.\"),\n cmyk2rgb: z.number().int().describe(\"Convert CMYK color space to RGB: 0 to skip conversion, 1 to convert (default is 1)\").optional(),\n bg_remove: z.string().describe(\"Background removal options: '1' for transparent background, URL for custom background image, '#rrggbbxx' for color with transparency (xx is alpha in hex)\").optional(),\n convertto: z.string().describe(\"Format conversion options: '+webp' (add WebP version), '+avif' (add AVIF version), '+webp|+avif' (add both), 'webp|avif' (replace with first available), 'jpg', 'png', 'gif' (convert to format)\").optional(),\n keep_exif: z.number().int().describe(\"Preserve EXIF metadata in optimized images: 0 to remove (default), 1 to keep\").optional(),\n paramlist: z.array(z.record(z.string(), z.unknown())).describe(\"Array of custom optimization parameters for each URL, allowing per-image settings. Must match urllist length if provided.\").optional(),\n resize_width: z.number().int().describe(\"Target width in pixels for resizing. Required if resize is specified.\").optional(),\n resize_height: z.number().int().describe(\"Target height in pixels for resizing. Required if resize is specified.\").optional(),\n plugin_version: z.string().describe(\"5-character max alphanumeric code identifying your API client\").optional(),\n returndatalist: z.array(z.union([z.string(), z.number().int(), z.number(), z.boolean(), z.record(z.string(), z.unknown())])).describe(\"Any array to be returned unchanged in the API response for tracking purposes\").optional(),\n}).describe(\"Request model for optimizing images by URL with ShortPixel.\");\nconst ShortpixelOptimizeImagesByUrl_OptimizationStatusSchema = z.object({\n Code: z.number().int().describe(\"Status code: 1 = scheduled for optimization, 2 = ready/completed, negative values indicate errors\").nullable(),\n Message: z.string().describe(\"Human-readable status message describing the optimization result\").nullable(),\n}).passthrough().describe(\"Status information for an optimized image.\");\nconst ShortpixelOptimizeImagesByUrl_OptimizedImageSchema = z.object({\n Status: ShortpixelOptimizeImagesByUrl_OptimizationStatusSchema.nullable(),\n LossyURL: z.string().describe(\"URL of the lossy compressed version\").nullable().optional(),\n LossySize: z.number().int().describe(\"Size of lossy compressed image in bytes\").nullable().optional(),\n Timestamp: z.string().describe(\"Timestamp of when the optimization was processed\").nullable().optional(),\n LosslessURL: z.string().describe(\"URL of the lossless compressed version\").nullable().optional(),\n OriginalURL: z.string().describe(\"URL of the original source image\").nullable().optional(),\n AVIFLossyURL: z.string().describe(\"URL of the AVIF lossy version\").nullable().optional(),\n LoselessSize: z.number().int().describe(\"Size of lossless compressed image in bytes\").nullable().optional(),\n OriginalSize: z.number().int().describe(\"Size of original image in bytes\").nullable().optional(),\n WebPLossyURL: z.string().describe(\"URL of the WebP lossy version\").nullable().optional(),\n WebPLossySize: z.union([z.number().int(), z.string()]).nullable().optional(),\n AVIFPLossySize: z.union([z.number().int(), z.string()]).nullable().optional(),\n AVIFLosslessURL: z.string().describe(\"URL of the AVIF lossless version\").nullable().optional(),\n WebPLosslessURL: z.string().describe(\"URL of the WebP lossless version\").nullable().optional(),\n AVIFLoselessSize: z.union([z.number().int(), z.string()]).nullable().optional(),\n WebPLoselessSize: z.union([z.number().int(), z.string()]).nullable().optional(),\n}).passthrough().describe(\"Response data for a single optimized image.\");\nexport const ShortpixelOptimizeImagesByUrlOutput = z.object({\n results: z.array(ShortpixelOptimizeImagesByUrl_OptimizedImageSchema).describe(\"Array of optimization results, one per input URL in the same order as the request\"),\n}).passthrough().describe(\"Response model for batch image optimization by URL.\");\n\nexport const shortpixelOptimizeImagesByUrl = action(\"SHORTPIXEL_OPTIMIZE_IMAGES_BY_URL\", {\n slug: \"shortpixel-optimize-images-by-url\",\n name: \"Optimize Images by URL\",\n description: \"Tool to optimize images by providing their URLs. Supports batch processing of up to 100 URLs per request with options for lossy, glossy, or lossless compression, resizing, format conversion (WebP/AVIF), and background removal. Use when you need to compress and optimize images accessible online.\",\n input: ShortpixelOptimizeImagesByUrlInput,\n output: ShortpixelOptimizeImagesByUrlOutput,\n});\n"],"mappings":";;;AAIA,MAAa,qCAAqC,EAAE,OAAO;CACzD,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sJAAsJ,CAAC,CAAC,SAAS;CACjM,OAAO,EAAE,KAAK;EAAC;EAAY;EAAS;CAAQ,CAAC,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;CAC5F,QAAQ,EAAE,KAAK;EAAC;EAAQ;EAAS;EAAS;CAAe,CAAC,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS;CACpG,SAAS,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wGAAwG,CAAC,CAAC,SAAS;CACtJ,SAAS,EAAE,KAAK;EAAC;EAAQ;EAAM;EAAM;CAAI,CAAC,CAAC,CAAC,SAAS,yBA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AC5E,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7F,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7F,kBAAkB,EAAE,MAAM,CAAC,EAAE,OAAO,CAAC,CAAC,IAAI,GAAG,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9E,kBAAkB,EAAE,MAAM,CAAC,EAAE,OAAO,CAAC,CAAC,IAAI,GAAG,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAChF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6CAA6C;AAKvE,MAAa,gCAAgC,OAAO,qCAAqC;CACvF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATiD,EAAE,OAAO,EAC1D,SAAS,EAAE,MAAM,kDAAkD,CAAC,CAAC,SAAS,mFAAmF,EACnK,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qDAOhB;AACV,CAAC"}
@@ -2,7 +2,7 @@ const require_action = require("../action.cjs");
2
2
  let zod = require("zod");
3
3
  //#region src/actions/read-cdn-domain.ts
4
4
  const ShortpixelReadCdnDomainInput = zod.z.object({ domain: zod.z.string().describe("Domain name to check CDN status and quota (e.g., example.com)") }).describe("Request model for checking the status of a domain and its CDN quota on ShortPixel.");
5
- const ShortpixelReadCdnDomainOutput = zod.z.object({ Status: zod.z.number().int().describe("Status code: 2=OK (credits available), 1=credits almost exhausted, -1=credits exhausted, -2=credits used up some time ago, -3=domain not reachable").nullable() }).describe("Response model for reading CDN domain status and quota information.");
5
+ const ShortpixelReadCdnDomainOutput = zod.z.object({ Status: zod.z.number().int().describe("Status code: 2=OK (credits available), 1=credits almost exhausted, -1=credits exhausted, -2=credits used up some time ago, -3=domain not reachable").nullable() }).passthrough().describe("Response model for reading CDN domain status and quota information.");
6
6
  const shortpixelReadCdnDomain = require_action.action("SHORTPIXEL_READ_CDN_DOMAIN", {
7
7
  slug: "shortpixel-read-cdn-domain",
8
8
  name: "Read CDN Domain Status",
@@ -1 +1 @@
1
- {"version":3,"file":"read-cdn-domain.cjs","names":["z","action"],"sources":["../../src/actions/read-cdn-domain.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ShortpixelReadCdnDomainInput = z.object({\n domain: z.string().describe(\"Domain name to check CDN status and quota (e.g., example.com)\"),\n}).describe(\"Request model for checking the status of a domain and its CDN quota on ShortPixel.\");\nexport const ShortpixelReadCdnDomainOutput = z.object({\n Status: z.number().int().describe(\"Status code: 2=OK (credits available), 1=credits almost exhausted, -1=credits exhausted, -2=credits used up some time ago, -3=domain not reachable\").nullable(),\n}).describe(\"Response model for reading CDN domain status and quota information.\");\n\nexport const shortpixelReadCdnDomain = action(\"SHORTPIXEL_READ_CDN_DOMAIN\", {\n slug: \"shortpixel-read-cdn-domain\",\n name: \"Read CDN Domain Status\",\n description: \"Tool to check the status of a domain and its CDN quota on ShortPixel. Returns a status code indicating credit availability. Use when you need to verify domain accessibility and quota status.\",\n input: ShortpixelReadCdnDomainInput,\n output: ShortpixelReadCdnDomainOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA+BA,IAAAA,EAAE,OAAO,EACnD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,EAC7F,CAAC,CAAC,CAAC,SAAS,oFAAoF;AAChG,MAAa,gCAAgCA,IAAAA,EAAE,OAAO,EACpD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oJAAoJ,CAAC,CAAC,SAAS,EACnM,CAAC,CAAC,CAAC,SAAS,qEAAqE;AAEjF,MAAa,0BAA0BC,eAAAA,OAAO,8BAA8B;CAC1E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"read-cdn-domain.cjs","names":["z","action"],"sources":["../../src/actions/read-cdn-domain.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ShortpixelReadCdnDomainInput = z.object({\n domain: z.string().describe(\"Domain name to check CDN status and quota (e.g., example.com)\"),\n}).describe(\"Request model for checking the status of a domain and its CDN quota on ShortPixel.\");\nexport const ShortpixelReadCdnDomainOutput = z.object({\n Status: z.number().int().describe(\"Status code: 2=OK (credits available), 1=credits almost exhausted, -1=credits exhausted, -2=credits used up some time ago, -3=domain not reachable\").nullable(),\n}).passthrough().describe(\"Response model for reading CDN domain status and quota information.\");\n\nexport const shortpixelReadCdnDomain = action(\"SHORTPIXEL_READ_CDN_DOMAIN\", {\n slug: \"shortpixel-read-cdn-domain\",\n name: \"Read CDN Domain Status\",\n description: \"Tool to check the status of a domain and its CDN quota on ShortPixel. Returns a status code indicating credit availability. Use when you need to verify domain accessibility and quota status.\",\n input: ShortpixelReadCdnDomainInput,\n output: ShortpixelReadCdnDomainOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA+BA,IAAAA,EAAE,OAAO,EACnD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,EAC7F,CAAC,CAAC,CAAC,SAAS,oFAAoF;AAChG,MAAa,gCAAgCA,IAAAA,EAAE,OAAO,EACpD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oJAAoJ,CAAC,CAAC,SAAS,EACnM,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qEAAqE;AAE/F,MAAa,0BAA0BC,eAAAA,OAAO,8BAA8B;CAC1E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -6,10 +6,22 @@ declare const ShortpixelReadCdnDomainInput: z.ZodObject<{
6
6
  }, z.core.$strip>;
7
7
  declare const ShortpixelReadCdnDomainOutput: z.ZodObject<{
8
8
  Status: z.ZodNullable<z.ZodNumber>;
9
- }, z.core.$strip>;
9
+ }, z.core.$loose>;
10
10
  declare const shortpixelReadCdnDomain: import("@keystrokehq/action").WorkflowActionDefinition<{
11
11
  domain: string;
12
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
12
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"shortpixel", z.ZodObject<{
13
+ connectionId: z.ZodString;
14
+ entityId: z.ZodString;
15
+ instanceId: z.ZodString;
16
+ }, z.core.$strip>, z.ZodObject<{
17
+ generic_key: z.ZodString;
18
+ }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"shortpixel", z.ZodObject<{
19
+ connectionId: z.ZodString;
20
+ entityId: z.ZodString;
21
+ instanceId: z.ZodString;
22
+ }, z.core.$strip>, z.ZodObject<{
23
+ generic_key: z.ZodString;
24
+ }, z.core.$strip>>]>;
13
25
  //#endregion
14
26
  export { shortpixelReadCdnDomain };
15
27
  //# sourceMappingURL=read-cdn-domain.d.cts.map
@@ -6,10 +6,22 @@ declare const ShortpixelReadCdnDomainInput: z.ZodObject<{
6
6
  }, z.core.$strip>;
7
7
  declare const ShortpixelReadCdnDomainOutput: z.ZodObject<{
8
8
  Status: z.ZodNullable<z.ZodNumber>;
9
- }, z.core.$strip>;
9
+ }, z.core.$loose>;
10
10
  declare const shortpixelReadCdnDomain: import("@keystrokehq/action").WorkflowActionDefinition<{
11
11
  domain: string;
12
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
12
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"shortpixel", z.ZodObject<{
13
+ connectionId: z.ZodString;
14
+ entityId: z.ZodString;
15
+ instanceId: z.ZodString;
16
+ }, z.core.$strip>, z.ZodObject<{
17
+ generic_key: z.ZodString;
18
+ }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"shortpixel", z.ZodObject<{
19
+ connectionId: z.ZodString;
20
+ entityId: z.ZodString;
21
+ instanceId: z.ZodString;
22
+ }, z.core.$strip>, z.ZodObject<{
23
+ generic_key: z.ZodString;
24
+ }, z.core.$strip>>]>;
13
25
  //#endregion
14
26
  export { shortpixelReadCdnDomain };
15
27
  //# sourceMappingURL=read-cdn-domain.d.mts.map
@@ -5,7 +5,7 @@ const shortpixelReadCdnDomain = action("SHORTPIXEL_READ_CDN_DOMAIN", {
5
5
  name: "Read CDN Domain Status",
6
6
  description: "Tool to check the status of a domain and its CDN quota on ShortPixel. Returns a status code indicating credit availability. Use when you need to verify domain accessibility and quota status.",
7
7
  input: z.object({ domain: z.string().describe("Domain name to check CDN status and quota (e.g., example.com)") }).describe("Request model for checking the status of a domain and its CDN quota on ShortPixel."),
8
- output: z.object({ Status: z.number().int().describe("Status code: 2=OK (credits available), 1=credits almost exhausted, -1=credits exhausted, -2=credits used up some time ago, -3=domain not reachable").nullable() }).describe("Response model for reading CDN domain status and quota information.")
8
+ output: z.object({ Status: z.number().int().describe("Status code: 2=OK (credits available), 1=credits almost exhausted, -1=credits exhausted, -2=credits used up some time ago, -3=domain not reachable").nullable() }).passthrough().describe("Response model for reading CDN domain status and quota information.")
9
9
  });
10
10
  //#endregion
11
11
  export { shortpixelReadCdnDomain };
@@ -1 +1 @@
1
- {"version":3,"file":"read-cdn-domain.mjs","names":[],"sources":["../../src/actions/read-cdn-domain.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ShortpixelReadCdnDomainInput = z.object({\n domain: z.string().describe(\"Domain name to check CDN status and quota (e.g., example.com)\"),\n}).describe(\"Request model for checking the status of a domain and its CDN quota on ShortPixel.\");\nexport const ShortpixelReadCdnDomainOutput = z.object({\n Status: z.number().int().describe(\"Status code: 2=OK (credits available), 1=credits almost exhausted, -1=credits exhausted, -2=credits used up some time ago, -3=domain not reachable\").nullable(),\n}).describe(\"Response model for reading CDN domain status and quota information.\");\n\nexport const shortpixelReadCdnDomain = action(\"SHORTPIXEL_READ_CDN_DOMAIN\", {\n slug: \"shortpixel-read-cdn-domain\",\n name: \"Read CDN Domain Status\",\n description: \"Tool to check the status of a domain and its CDN quota on ShortPixel. Returns a status code indicating credit availability. Use when you need to verify domain accessibility and quota status.\",\n input: ShortpixelReadCdnDomainInput,\n output: ShortpixelReadCdnDomainOutput,\n});\n"],"mappings":";;AAWA,MAAa,0BAA0B,OAAO,8BAA8B;CAC1E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAX0C,EAAE,OAAO,EACnD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,EAC7F,CAAC,CAAC,CAAC,SAAS,oFASH;CACP,QAT2C,EAAE,OAAO,EACpD,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oJAAoJ,CAAC,CAAC,SAAS,EACnM,CAAC,CAAC,CAAC,SAAS,qEAOF;AACV,CAAC"}
1
+ {"version":3,"file":"read-cdn-domain.mjs","names":[],"sources":["../../src/actions/read-cdn-domain.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ShortpixelReadCdnDomainInput = z.object({\n domain: z.string().describe(\"Domain name to check CDN status and quota (e.g., example.com)\"),\n}).describe(\"Request model for checking the status of a domain and its CDN quota on ShortPixel.\");\nexport const ShortpixelReadCdnDomainOutput = z.object({\n Status: z.number().int().describe(\"Status code: 2=OK (credits available), 1=credits almost exhausted, -1=credits exhausted, -2=credits used up some time ago, -3=domain not reachable\").nullable(),\n}).passthrough().describe(\"Response model for reading CDN domain status and quota information.\");\n\nexport const shortpixelReadCdnDomain = action(\"SHORTPIXEL_READ_CDN_DOMAIN\", {\n slug: \"shortpixel-read-cdn-domain\",\n name: \"Read CDN Domain Status\",\n description: \"Tool to check the status of a domain and its CDN quota on ShortPixel. Returns a status code indicating credit availability. Use when you need to verify domain accessibility and quota status.\",\n input: ShortpixelReadCdnDomainInput,\n output: ShortpixelReadCdnDomainOutput,\n});\n"],"mappings":";;AAWA,MAAa,0BAA0B,OAAO,8BAA8B;CAC1E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAX0C,EAAE,OAAO,EACnD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,EAC7F,CAAC,CAAC,CAAC,SAAS,oFASH;CACP,QAT2C,EAAE,OAAO,EACpD,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oJAAoJ,CAAC,CAAC,SAAS,EACnM,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qEAOhB;AACV,CAAC"}
@@ -5,7 +5,7 @@ const ShortpixelRevokeCdnDomainInput = zod.z.object({ domain: zod.z.string().des
5
5
  const ShortpixelRevokeCdnDomainOutput = zod.z.object({
6
6
  Status: zod.z.number().int().describe("Status code returned by the API (1=success, other values indicate issues or insufficient rights)").nullable(),
7
7
  Message: zod.z.string().describe("Details on the result of the revoke operation").nullable()
8
- }).describe("Response model for revoking a CDN domain association.");
8
+ }).passthrough().describe("Response model for revoking a CDN domain association.");
9
9
  const shortpixelRevokeCdnDomain = require_action.action("SHORTPIXEL_REVOKE_CDN_DOMAIN", {
10
10
  slug: "shortpixel-revoke-cdn-domain",
11
11
  name: "Revoke CDN Domain",
@@ -1 +1 @@
1
- {"version":3,"file":"revoke-cdn-domain.cjs","names":["z","action"],"sources":["../../src/actions/revoke-cdn-domain.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ShortpixelRevokeCdnDomainInput = 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}).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,SAAS,uDAAuD;AAEnE,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 { 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"}
@@ -7,10 +7,22 @@ declare const ShortpixelRevokeCdnDomainInput: z.ZodObject<{
7
7
  declare const ShortpixelRevokeCdnDomainOutput: z.ZodObject<{
8
8
  Status: z.ZodNullable<z.ZodNumber>;
9
9
  Message: z.ZodNullable<z.ZodString>;
10
- }, z.core.$strip>;
10
+ }, z.core.$loose>;
11
11
  declare const shortpixelRevokeCdnDomain: import("@keystrokehq/action").WorkflowActionDefinition<{
12
12
  domain: string;
13
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
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>>]>;
14
26
  //#endregion
15
27
  export { shortpixelRevokeCdnDomain };
16
28
  //# sourceMappingURL=revoke-cdn-domain.d.cts.map
@@ -7,10 +7,22 @@ declare const ShortpixelRevokeCdnDomainInput: z.ZodObject<{
7
7
  declare const ShortpixelRevokeCdnDomainOutput: z.ZodObject<{
8
8
  Status: z.ZodNullable<z.ZodNumber>;
9
9
  Message: z.ZodNullable<z.ZodString>;
10
- }, z.core.$strip>;
10
+ }, z.core.$loose>;
11
11
  declare const shortpixelRevokeCdnDomain: import("@keystrokehq/action").WorkflowActionDefinition<{
12
12
  domain: string;
13
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
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>>]>;
14
26
  //#endregion
15
27
  export { shortpixelRevokeCdnDomain };
16
28
  //# sourceMappingURL=revoke-cdn-domain.d.mts.map
@@ -8,7 +8,7 @@ const shortpixelRevokeCdnDomain = action("SHORTPIXEL_REVOKE_CDN_DOMAIN", {
8
8
  output: z.object({
9
9
  Status: z.number().int().describe("Status code returned by the API (1=success, other values indicate issues or insufficient rights)").nullable(),
10
10
  Message: z.string().describe("Details on the result of the revoke operation").nullable()
11
- }).describe("Response model for revoking a CDN domain association.")
11
+ }).passthrough().describe("Response model for revoking a CDN domain association.")
12
12
  });
13
13
  //#endregion
14
14
  export { shortpixelRevokeCdnDomain };
@@ -1 +1 @@
1
- {"version":3,"file":"revoke-cdn-domain.mjs","names":[],"sources":["../../src/actions/revoke-cdn-domain.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ShortpixelRevokeCdnDomainInput = 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}).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,SAAS,uDAOF;AACV,CAAC"}
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"}
@@ -5,7 +5,7 @@ const ShortpixelSetCdnDomainInput = zod.z.object({ domain: zod.z.string().descri
5
5
  const ShortpixelSetCdnDomainOutput = zod.z.object({
6
6
  Status: zod.z.number().int().describe("Status code returned by the API (1=success, other values indicate issues)").nullable(),
7
7
  Message: zod.z.string().describe("Details on the result of the set domain operation").nullable()
8
- }).describe("Response model for set CDN domain action.");
8
+ }).passthrough().describe("Response model for set CDN domain action.");
9
9
  const shortpixelSetCdnDomain = require_action.action("SHORTPIXEL_SET_CDN_DOMAIN", {
10
10
  slug: "shortpixel-set-cdn-domain",
11
11
  name: "Set CDN Domain",
@@ -1 +1 @@
1
- {"version":3,"file":"set-cdn-domain.cjs","names":["z","action"],"sources":["../../src/actions/set-cdn-domain.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ShortpixelSetCdnDomainInput = 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}).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,SAAS,2CAA2C;AAEvD,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 { 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"}
@@ -7,10 +7,22 @@ declare const ShortpixelSetCdnDomainInput: z.ZodObject<{
7
7
  declare const ShortpixelSetCdnDomainOutput: z.ZodObject<{
8
8
  Status: z.ZodNullable<z.ZodNumber>;
9
9
  Message: z.ZodNullable<z.ZodString>;
10
- }, z.core.$strip>;
10
+ }, z.core.$loose>;
11
11
  declare const shortpixelSetCdnDomain: import("@keystrokehq/action").WorkflowActionDefinition<{
12
12
  domain: string;
13
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
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>>]>;
14
26
  //#endregion
15
27
  export { shortpixelSetCdnDomain };
16
28
  //# sourceMappingURL=set-cdn-domain.d.cts.map
@@ -7,10 +7,22 @@ declare const ShortpixelSetCdnDomainInput: z.ZodObject<{
7
7
  declare const ShortpixelSetCdnDomainOutput: z.ZodObject<{
8
8
  Status: z.ZodNullable<z.ZodNumber>;
9
9
  Message: z.ZodNullable<z.ZodString>;
10
- }, z.core.$strip>;
10
+ }, z.core.$loose>;
11
11
  declare const shortpixelSetCdnDomain: import("@keystrokehq/action").WorkflowActionDefinition<{
12
12
  domain: string;
13
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
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>>]>;
14
26
  //#endregion
15
27
  export { shortpixelSetCdnDomain };
16
28
  //# sourceMappingURL=set-cdn-domain.d.mts.map
@@ -8,7 +8,7 @@ const shortpixelSetCdnDomain = action("SHORTPIXEL_SET_CDN_DOMAIN", {
8
8
  output: z.object({
9
9
  Status: z.number().int().describe("Status code returned by the API (1=success, other values indicate issues)").nullable(),
10
10
  Message: z.string().describe("Details on the result of the set domain operation").nullable()
11
- }).describe("Response model for set CDN domain action.")
11
+ }).passthrough().describe("Response model for set CDN domain action.")
12
12
  });
13
13
  //#endregion
14
14
  export { shortpixelSetCdnDomain };
@@ -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}).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,SAAS,2CAOF;AACV,CAAC"}
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"}
@@ -29,7 +29,7 @@ const ShortpixelUploadAndOptimizeImagesInput = zod.z.object({
29
29
  const ShortpixelUploadAndOptimizeImages_StatusInfoSchema = zod.z.object({
30
30
  Code: zod.z.number().int().describe("Status code: 1=scheduled, 2=ready, negative values indicate errors").nullable(),
31
31
  Message: zod.z.string().describe("Human-readable status message").nullable()
32
- }).describe("Status information for an optimized image.");
32
+ }).passthrough().describe("Status information for an optimized image.");
33
33
  const ShortpixelUploadAndOptimizeImages_OptimizedImageSchema = zod.z.object({
34
34
  Status: ShortpixelUploadAndOptimizeImages_StatusInfoSchema.nullable(),
35
35
  LossyURL: zod.z.string().describe("URL to download the lossy optimized image").nullable().optional(),
@@ -37,8 +37,8 @@ const ShortpixelUploadAndOptimizeImages_OptimizedImageSchema = zod.z.object({
37
37
  LosslessURL: zod.z.string().describe("URL to download the lossless optimized image").nullable().optional(),
38
38
  OriginalURL: zod.z.string().describe("Temporary URL for tracking pending optimization").nullable().optional(),
39
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.");
40
+ }).passthrough().describe("Information about an optimized image.");
41
+ const ShortpixelUploadAndOptimizeImagesOutput = zod.z.object({ results: zod.z.array(ShortpixelUploadAndOptimizeImages_OptimizedImageSchema).describe("List of optimized image results") }).passthrough().describe("Response model for upload and optimize images action.\nReturns a list of optimized image results.");
42
42
  const shortpixelUploadAndOptimizeImages = require_action.action("SHORTPIXEL_UPLOAD_AND_OPTIMIZE_IMAGES", {
43
43
  slug: "shortpixel-upload-and-optimize-images",
44
44
  name: "Upload and Optimize Images",
@@ -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}).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}).describe(\"Information about an optimized image.\");\nexport const ShortpixelUploadAndOptimizeImagesOutput = 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,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,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,gBA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ACV,CAAC"}
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,IAAAA,EAAE,MAAM;EAACA,IAAAA,EAAE,QAAQ,CAAC;EA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AE,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"}
@@ -22,14 +22,14 @@ declare const ShortpixelUploadAndOptimizeImagesOutput: z.ZodObject<{
22
22
  Status: z.ZodNullable<z.ZodObject<{
23
23
  Code: z.ZodNullable<z.ZodNumber>;
24
24
  Message: z.ZodNullable<z.ZodString>;
25
- }, z.core.$strip>>;
25
+ }, z.core.$loose>>;
26
26
  LossyURL: z.ZodOptional<z.ZodNullable<z.ZodString>>;
27
27
  LossySize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
28
28
  LosslessURL: z.ZodOptional<z.ZodNullable<z.ZodString>>;
29
29
  OriginalURL: z.ZodOptional<z.ZodNullable<z.ZodString>>;
30
30
  OriginalSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
31
- }, z.core.$strip>>;
32
- }, z.core.$strip>;
31
+ }, z.core.$loose>>;
32
+ }, z.core.$loose>;
33
33
  declare const shortpixelUploadAndOptimizeImages: import("@keystrokehq/action").WorkflowActionDefinition<{
34
34
  file1: {
35
35
  name: string;
@@ -41,11 +41,23 @@ declare const shortpixelUploadAndOptimizeImages: import("@keystrokehq/action").W
41
41
  s3key: string;
42
42
  mimetype: string;
43
43
  } | undefined;
44
- lossy?: 0 | 2 | 1 | undefined;
45
- resize?: 0 | 1 | 4 | 3 | undefined;
44
+ lossy?: 0 | 1 | 2 | undefined;
45
+ resize?: 0 | 1 | 3 | 4 | undefined;
46
46
  convertto?: string | undefined;
47
47
  plugin_version?: string | undefined;
48
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
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>>]>;
49
61
  //#endregion
50
62
  export { shortpixelUploadAndOptimizeImages };
51
63
  //# sourceMappingURL=upload-and-optimize-images.d.cts.map
@@ -22,14 +22,14 @@ declare const ShortpixelUploadAndOptimizeImagesOutput: z.ZodObject<{
22
22
  Status: z.ZodNullable<z.ZodObject<{
23
23
  Code: z.ZodNullable<z.ZodNumber>;
24
24
  Message: z.ZodNullable<z.ZodString>;
25
- }, z.core.$strip>>;
25
+ }, z.core.$loose>>;
26
26
  LossyURL: z.ZodOptional<z.ZodNullable<z.ZodString>>;
27
27
  LossySize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
28
28
  LosslessURL: z.ZodOptional<z.ZodNullable<z.ZodString>>;
29
29
  OriginalURL: z.ZodOptional<z.ZodNullable<z.ZodString>>;
30
30
  OriginalSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
31
- }, z.core.$strip>>;
32
- }, z.core.$strip>;
31
+ }, z.core.$loose>>;
32
+ }, z.core.$loose>;
33
33
  declare const shortpixelUploadAndOptimizeImages: import("@keystrokehq/action").WorkflowActionDefinition<{
34
34
  file1: {
35
35
  name: string;
@@ -41,11 +41,23 @@ declare const shortpixelUploadAndOptimizeImages: import("@keystrokehq/action").W
41
41
  s3key: string;
42
42
  mimetype: string;
43
43
  } | undefined;
44
- lossy?: 0 | 2 | 1 | undefined;
45
- resize?: 0 | 1 | 4 | 3 | undefined;
44
+ lossy?: 0 | 1 | 2 | undefined;
45
+ resize?: 0 | 1 | 3 | 4 | undefined;
46
46
  convertto?: string | undefined;
47
47
  plugin_version?: string | undefined;
48
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
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>>]>;
49
61
  //#endregion
50
62
  export { shortpixelUploadAndOptimizeImages };
51
63
  //# sourceMappingURL=upload-and-optimize-images.d.mts.map
@@ -29,7 +29,7 @@ const ShortpixelUploadAndOptimizeImagesInput = z.object({
29
29
  const ShortpixelUploadAndOptimizeImages_StatusInfoSchema = z.object({
30
30
  Code: z.number().int().describe("Status code: 1=scheduled, 2=ready, negative values indicate errors").nullable(),
31
31
  Message: z.string().describe("Human-readable status message").nullable()
32
- }).describe("Status information for an optimized image.");
32
+ }).passthrough().describe("Status information for an optimized image.");
33
33
  const ShortpixelUploadAndOptimizeImages_OptimizedImageSchema = z.object({
34
34
  Status: ShortpixelUploadAndOptimizeImages_StatusInfoSchema.nullable(),
35
35
  LossyURL: z.string().describe("URL to download the lossy optimized image").nullable().optional(),
@@ -37,13 +37,13 @@ const ShortpixelUploadAndOptimizeImages_OptimizedImageSchema = z.object({
37
37
  LosslessURL: z.string().describe("URL to download the lossless optimized image").nullable().optional(),
38
38
  OriginalURL: z.string().describe("Temporary URL for tracking pending optimization").nullable().optional(),
39
39
  OriginalSize: z.number().int().describe("Original image size in bytes").nullable().optional()
40
- }).describe("Information about an optimized image.");
40
+ }).passthrough().describe("Information about an optimized image.");
41
41
  const shortpixelUploadAndOptimizeImages = action("SHORTPIXEL_UPLOAD_AND_OPTIMIZE_IMAGES", {
42
42
  slug: "shortpixel-upload-and-optimize-images",
43
43
  name: "Upload and Optimize Images",
44
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
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.")
46
+ output: z.object({ results: z.array(ShortpixelUploadAndOptimizeImages_OptimizedImageSchema).describe("List of optimized image results") }).passthrough().describe("Response model for upload and optimize images action.\nReturns a list of optimized image results.")
47
47
  });
48
48
  //#endregion
49
49
  export { shortpixelUploadAndOptimizeImages };
@@ -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}).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}).describe(\"Information about an optimized image.\");\nexport const ShortpixelUploadAndOptimizeImagesOutput = 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,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,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,qDAAqD,EAAE,OAAO;CAClE,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS;CAC/G,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;AACzE,CAAC,CAAC,CAAC,SAAS,4CAA4C;AACxD,MAAM,yDAAyD,EAAE,OAAO;CACtE,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,QATqD,EAAE,OAAO,EAC9D,SAAS,EAAE,MAAM,sDAAsD,CAAC,CAAC,SAAS,iCAAiC,EACrH,CAAC,CAAC,CAAC,SAAS,mGAOF;AACV,CAAC"}
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,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C,CAAC,SAAS,iCAAiC,EACrH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mGAOhB;AACV,CAAC"}
package/dist/app.cjs CHANGED
@@ -1,7 +1,10 @@
1
+ let _keystrokehq_keystroke_app = require("@keystrokehq/keystroke/app");
2
+ let zod = require("zod");
1
3
  //#region src/app.ts
2
- const shortpixel = (0, require("@keystrokehq/keystroke/app").defineApp)({
4
+ const shortpixel = (0, _keystrokehq_keystroke_app.defineApp)({
3
5
  slug: "shortpixel",
4
- auth: "keystroke"
6
+ auth: "keystroke",
7
+ credential: { generic_key: zod.z.string() }
5
8
  });
6
9
  //#endregion
7
10
  exports.shortpixel = shortpixel;
package/dist/app.cjs.map CHANGED
@@ -1 +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"}
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"}