@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.
- package/dist/actions/add-cdn-domain.cjs +1 -1
- package/dist/actions/add-cdn-domain.cjs.map +1 -1
- package/dist/actions/add-cdn-domain.d.cts +14 -2
- package/dist/actions/add-cdn-domain.d.mts +14 -2
- package/dist/actions/add-cdn-domain.mjs +1 -1
- package/dist/actions/add-cdn-domain.mjs.map +1 -1
- package/dist/actions/bulk-purge-storage.cjs +1 -1
- package/dist/actions/bulk-purge-storage.cjs.map +1 -1
- package/dist/actions/bulk-purge-storage.d.cts +14 -2
- package/dist/actions/bulk-purge-storage.d.mts +14 -2
- package/dist/actions/bulk-purge-storage.mjs +1 -1
- package/dist/actions/bulk-purge-storage.mjs.map +1 -1
- package/dist/actions/check-image-status.cjs +2 -2
- package/dist/actions/check-image-status.cjs.map +1 -1
- package/dist/actions/check-image-status.d.cts +15 -3
- package/dist/actions/check-image-status.d.mts +15 -3
- package/dist/actions/check-image-status.mjs +2 -2
- package/dist/actions/check-image-status.mjs.map +1 -1
- package/dist/actions/clean-up-image.cjs +2 -2
- package/dist/actions/clean-up-image.cjs.map +1 -1
- package/dist/actions/clean-up-image.d.cts +15 -3
- package/dist/actions/clean-up-image.d.mts +15 -3
- package/dist/actions/clean-up-image.mjs +2 -2
- package/dist/actions/clean-up-image.mjs.map +1 -1
- package/dist/actions/get-adaptive-image-cdn.cjs +2 -2
- package/dist/actions/get-adaptive-image-cdn.cjs.map +1 -1
- package/dist/actions/get-adaptive-image-cdn.d.cts +17 -5
- package/dist/actions/get-adaptive-image-cdn.d.mts +17 -5
- package/dist/actions/get-adaptive-image-cdn.mjs +2 -2
- package/dist/actions/get-adaptive-image-cdn.mjs.map +1 -1
- package/dist/actions/get-api-status.cjs +2 -2
- package/dist/actions/get-api-status.cjs.map +1 -1
- package/dist/actions/get-api-status.d.cts +15 -3
- package/dist/actions/get-api-status.d.cts.map +1 -1
- package/dist/actions/get-api-status.d.mts +15 -3
- package/dist/actions/get-api-status.d.mts.map +1 -1
- package/dist/actions/get-api-status.mjs +2 -2
- package/dist/actions/get-api-status.mjs.map +1 -1
- package/dist/actions/get-cdn-usage.cjs +3 -3
- package/dist/actions/get-cdn-usage.cjs.map +1 -1
- package/dist/actions/get-cdn-usage.d.cts +16 -4
- package/dist/actions/get-cdn-usage.d.mts +16 -4
- package/dist/actions/get-cdn-usage.mjs +3 -3
- package/dist/actions/get-cdn-usage.mjs.map +1 -1
- package/dist/actions/optimize-images-by-url.cjs +4 -4
- package/dist/actions/optimize-images-by-url.cjs.map +1 -1
- package/dist/actions/optimize-images-by-url.d.cts +20 -8
- package/dist/actions/optimize-images-by-url.d.cts.map +1 -1
- package/dist/actions/optimize-images-by-url.d.mts +20 -8
- package/dist/actions/optimize-images-by-url.d.mts.map +1 -1
- package/dist/actions/optimize-images-by-url.mjs +4 -4
- package/dist/actions/optimize-images-by-url.mjs.map +1 -1
- package/dist/actions/read-cdn-domain.cjs +1 -1
- package/dist/actions/read-cdn-domain.cjs.map +1 -1
- package/dist/actions/read-cdn-domain.d.cts +14 -2
- package/dist/actions/read-cdn-domain.d.mts +14 -2
- package/dist/actions/read-cdn-domain.mjs +1 -1
- package/dist/actions/read-cdn-domain.mjs.map +1 -1
- package/dist/actions/revoke-cdn-domain.cjs +1 -1
- package/dist/actions/revoke-cdn-domain.cjs.map +1 -1
- package/dist/actions/revoke-cdn-domain.d.cts +14 -2
- package/dist/actions/revoke-cdn-domain.d.mts +14 -2
- package/dist/actions/revoke-cdn-domain.mjs +1 -1
- package/dist/actions/revoke-cdn-domain.mjs.map +1 -1
- package/dist/actions/set-cdn-domain.cjs +1 -1
- package/dist/actions/set-cdn-domain.cjs.map +1 -1
- package/dist/actions/set-cdn-domain.d.cts +14 -2
- package/dist/actions/set-cdn-domain.d.mts +14 -2
- package/dist/actions/set-cdn-domain.mjs +1 -1
- package/dist/actions/set-cdn-domain.mjs.map +1 -1
- package/dist/actions/upload-and-optimize-images.cjs +3 -3
- package/dist/actions/upload-and-optimize-images.cjs.map +1 -1
- package/dist/actions/upload-and-optimize-images.d.cts +18 -6
- package/dist/actions/upload-and-optimize-images.d.mts +18 -6
- package/dist/actions/upload-and-optimize-images.mjs +3 -3
- package/dist/actions/upload-and-optimize-images.mjs.map +1 -1
- package/dist/app.cjs +5 -2
- package/dist/app.cjs.map +1 -1
- package/dist/app.d.cts +9 -1
- package/dist/app.d.cts.map +1 -1
- package/dist/app.d.mts +9 -1
- package/dist/app.d.mts.map +1 -1
- package/dist/app.mjs +3 -1
- package/dist/app.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -39,13 +39,13 @@ const ShortpixelGetAdaptiveImageCdn_FileDownloadableSchema = z.object({
|
|
|
39
39
|
name: z.string().describe("Name of the file").nullable(),
|
|
40
40
|
s3url: z.string().describe("S3 URL of the downloaded file.").nullable(),
|
|
41
41
|
mimetype: z.string().describe("Mime type of the file.").nullable()
|
|
42
|
-
});
|
|
42
|
+
}).passthrough();
|
|
43
43
|
const shortpixelGetAdaptiveImageCdn = action("SHORTPIXEL_GET_ADAPTIVE_IMAGE_CDN", {
|
|
44
44
|
slug: "shortpixel-get-adaptive-image-cdn",
|
|
45
45
|
name: "Get Adaptive Image via CDN",
|
|
46
46
|
description: "Tool to optimize images on-the-fly via ShortPixel CDN. Transform images by URL with parameters for width, height, cropping, quality, and format conversion. Returns the optimized image directly without CDN caching.",
|
|
47
47
|
input: ShortpixelGetAdaptiveImageCdnInput,
|
|
48
|
-
output: z.object({ image: ShortpixelGetAdaptiveImageCdn_FileDownloadableSchema.nullable() }).describe("Response model for ShortPixel Adaptive Image CDN optimization.")
|
|
48
|
+
output: z.object({ image: ShortpixelGetAdaptiveImageCdn_FileDownloadableSchema.nullable() }).passthrough().describe("Response model for ShortPixel Adaptive Image CDN optimization.")
|
|
49
49
|
});
|
|
50
50
|
//#endregion
|
|
51
51
|
export { shortpixelGetAdaptiveImageCdn };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-adaptive-image-cdn.mjs","names":[],"sources":["../../src/actions/get-adaptive-image-cdn.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ShortpixelGetAdaptiveImageCdnInput = z.object({\n crop: z.enum([\"smart\", \"center\", \"north\", \"south\", \"east\", \"west\", \"northeast\", \"northwest\", \"southeast\", \"southwest\"]).describe(\"Crop style options.\").optional(),\n width: z.number().int().describe(\"Desired width in pixels for the optimized image\").optional(),\n height: z.number().int().describe(\"Desired height in pixels for the optimized image\").optional(),\n quality: z.enum([\"lqip\", \"lossless\", \"glossy\", \"lossy\"]).describe(\"Image quality/compression level options.\").optional(),\n image_url: z.string().describe(\"Absolute URL of the original image to optimize (e.g., 'https://example.com/image.jpg')\"),\n keep_exif: z.boolean().describe(\"Whether to keep EXIF metadata in the optimized image. False removes metadata for smaller file size.\").optional(),\n to_format: z.enum([\"webp\", \"avif\", \"auto\"]).describe(\"Output format conversion options.\").optional(),\n return_mode: z.enum([\"blank\", \"img\", \"wait\"]).describe(\"Return behavior options.\").optional(),\n}).describe(\"Request model for ShortPixel Adaptive Image CDN optimization.\");\nconst ShortpixelGetAdaptiveImageCdn_FileDownloadableSchema = z.object({\n name: z.string().describe(\"Name of the file\").nullable(),\n s3url: z.string().describe(\"S3 URL of the downloaded file.\").nullable(),\n mimetype: z.string().describe(\"Mime type of the file.\").nullable(),\n});\nexport const ShortpixelGetAdaptiveImageCdnOutput = z.object({\n image: ShortpixelGetAdaptiveImageCdn_FileDownloadableSchema.nullable(),\n}).describe(\"Response model for ShortPixel Adaptive Image CDN optimization.\");\n\nexport const shortpixelGetAdaptiveImageCdn = action(\"SHORTPIXEL_GET_ADAPTIVE_IMAGE_CDN\", {\n slug: \"shortpixel-get-adaptive-image-cdn\",\n name: \"Get Adaptive Image via CDN\",\n description: \"Tool to optimize images on-the-fly via ShortPixel CDN. Transform images by URL with parameters for width, height, cropping, quality, and format conversion. Returns the optimized image directly without CDN caching.\",\n input: ShortpixelGetAdaptiveImageCdnInput,\n output: ShortpixelGetAdaptiveImageCdnOutput,\n});\n"],"mappings":";;;AAIA,MAAa,qCAAqC,EAAE,OAAO;CACzD,MAAM,EAAE,KAAK;EAAC;EAAS;EAAU;EAAS;EAAS;EAAQ;EAAQ;EAAa;EAAa;EAAa;CAAW,CAAC,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;CACjK,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;CAC7F,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;CAC/F,SAAS,EAAE,KAAK;EAAC;EAAQ;EAAY;EAAU;CAAO,CAAC,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CACvH,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,wFAAwF;CACvH,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS,qGAAqG,CAAC,CAAC,SAAS;CAChJ,WAAW,EAAE,KAAK;EAAC;EAAQ;EAAQ;CAAM,CAAC,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CACnG,aAAa,EAAE,KAAK;EAAC;EAAS;EAAO;CAAM,CAAC,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;AAC9F,CAAC,CAAC,CAAC,SAAS,+DAA+D;AAC3E,MAAM,uDAAuD,EAAE,OAAO;CACpE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS;CACvD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CACtE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;AACnE,CAAC;
|
|
1
|
+
{"version":3,"file":"get-adaptive-image-cdn.mjs","names":[],"sources":["../../src/actions/get-adaptive-image-cdn.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ShortpixelGetAdaptiveImageCdnInput = z.object({\n crop: z.enum([\"smart\", \"center\", \"north\", \"south\", \"east\", \"west\", \"northeast\", \"northwest\", \"southeast\", \"southwest\"]).describe(\"Crop style options.\").optional(),\n width: z.number().int().describe(\"Desired width in pixels for the optimized image\").optional(),\n height: z.number().int().describe(\"Desired height in pixels for the optimized image\").optional(),\n quality: z.enum([\"lqip\", \"lossless\", \"glossy\", \"lossy\"]).describe(\"Image quality/compression level options.\").optional(),\n image_url: z.string().describe(\"Absolute URL of the original image to optimize (e.g., 'https://example.com/image.jpg')\"),\n keep_exif: z.boolean().describe(\"Whether to keep EXIF metadata in the optimized image. False removes metadata for smaller file size.\").optional(),\n to_format: z.enum([\"webp\", \"avif\", \"auto\"]).describe(\"Output format conversion options.\").optional(),\n return_mode: z.enum([\"blank\", \"img\", \"wait\"]).describe(\"Return behavior options.\").optional(),\n}).describe(\"Request model for ShortPixel Adaptive Image CDN optimization.\");\nconst ShortpixelGetAdaptiveImageCdn_FileDownloadableSchema = z.object({\n name: z.string().describe(\"Name of the file\").nullable(),\n s3url: z.string().describe(\"S3 URL of the downloaded file.\").nullable(),\n mimetype: z.string().describe(\"Mime type of the file.\").nullable(),\n}).passthrough();\nexport const ShortpixelGetAdaptiveImageCdnOutput = z.object({\n image: ShortpixelGetAdaptiveImageCdn_FileDownloadableSchema.nullable(),\n}).passthrough().describe(\"Response model for ShortPixel Adaptive Image CDN optimization.\");\n\nexport const shortpixelGetAdaptiveImageCdn = action(\"SHORTPIXEL_GET_ADAPTIVE_IMAGE_CDN\", {\n slug: \"shortpixel-get-adaptive-image-cdn\",\n name: \"Get Adaptive Image via CDN\",\n description: \"Tool to optimize images on-the-fly via ShortPixel CDN. Transform images by URL with parameters for width, height, cropping, quality, and format conversion. Returns the optimized image directly without CDN caching.\",\n input: ShortpixelGet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AO;CACP,QATiD,EAAE,OAAO,EAC1D,OAAO,qDAAqD,SAAS,EACvE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gEAOhB;AACV,CAAC"}
|
|
@@ -5,7 +5,7 @@ const ShortpixelGetApiStatusInput = zod.z.object({}).describe("Empty request mod
|
|
|
5
5
|
const ShortpixelGetApiStatus_StatusInfoSchema = zod.z.object({
|
|
6
6
|
Code: zod.z.string().describe("Status code returned by the API (2=OK, 3=error, 9=over quota)").nullable(),
|
|
7
7
|
Message: zod.z.string().describe("Human-readable message about the API status").nullable()
|
|
8
|
-
}).describe("Status information returned by the API.");
|
|
8
|
+
}).passthrough().describe("Status information returned by the API.");
|
|
9
9
|
const ShortpixelGetApiStatusOutput = zod.z.object({
|
|
10
10
|
Status: ShortpixelGetApiStatus_StatusInfoSchema.nullable(),
|
|
11
11
|
Unlimited: zod.z.boolean().describe("Whether the account has unlimited API calls").nullable(),
|
|
@@ -16,7 +16,7 @@ const ShortpixelGetApiStatusOutput = zod.z.object({
|
|
|
16
16
|
DateSubscription: zod.z.string().describe("Subscription date in format 'YYYY-MM-DD HH:MM:SS'").nullable(),
|
|
17
17
|
APICallsMadeOneTime: zod.z.string().describe("One-time API calls made (as decimal string)").nullable(),
|
|
18
18
|
APICallsQuotaOneTime: zod.z.string().describe("One-time API calls quota (as decimal string)").nullable()
|
|
19
|
-
}).describe("Response model for ShortPixel API status, including status code, message, and usage details.");
|
|
19
|
+
}).passthrough().describe("Response model for ShortPixel API status, including status code, message, and usage details.");
|
|
20
20
|
const shortpixelGetApiStatus = require_action.action("SHORTPIXEL_GET_API_STATUS", {
|
|
21
21
|
slug: "shortpixel-get-api-status",
|
|
22
22
|
name: "Get API Status",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-api-status.cjs","names":["z","action"],"sources":["../../src/actions/get-api-status.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ShortpixelGetApiStatusInput = z.object({}).describe(\"Empty request model for retrieving ShortPixel API status. Uses API key from metadata query parameters.\");\nconst ShortpixelGetApiStatus_StatusInfoSchema = z.object({\n Code: z.string().describe(\"Status code returned by the API (2=OK, 3=error, 9=over quota)\").nullable(),\n Message: z.string().describe(\"Human-readable message about the API status\").nullable(),\n}).describe(\"Status information returned by the API.\");\nexport const ShortpixelGetApiStatusOutput = z.object({\n Status: ShortpixelGetApiStatus_StatusInfoSchema.nullable(),\n Unlimited: z.boolean().describe(\"Whether the account has unlimited API calls\").nullable(),\n DomainCheck: z.string().describe(\"Domain accessibility status\").nullable(),\n APICallsFree: z.string().describe(\"Number of free API calls available (as decimal string)\").nullable(),\n APICallsMade: z.string().describe(\"Number of API calls made (as decimal string)\").nullable(),\n APICallsQuota: z.union([z.number().int(), z.string()]),\n DateSubscription: z.string().describe(\"Subscription date in format 'YYYY-MM-DD HH:MM:SS'\").nullable(),\n APICallsMadeOneTime: z.string().describe(\"One-time API calls made (as decimal string)\").nullable(),\n APICallsQuotaOneTime: z.string().describe(\"One-time API calls quota (as decimal string)\").nullable(),\n}).describe(\"Response model for ShortPixel API status, including status code, message, and usage details.\");\n\nexport const shortpixelGetApiStatus = action(\"SHORTPIXEL_GET_API_STATUS\", {\n slug: \"shortpixel-get-api-status\",\n name: \"Get API Status\",\n description: \"Tool to retrieve the current status of your API key, including available credits. Use when you need to monitor your account usage before making additional API calls.\",\n input: ShortpixelGetApiStatusInput,\n output: ShortpixelGetApiStatusOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,wGAAwG;AACzK,MAAM,0CAA0CA,IAAAA,EAAE,OAAO;CACvD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS;CACpG,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;AACvF,CAAC,CAAC,CAAC,SAAS,yCAAyC;
|
|
1
|
+
{"version":3,"file":"get-api-status.cjs","names":["z","action"],"sources":["../../src/actions/get-api-status.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ShortpixelGetApiStatusInput = z.object({}).describe(\"Empty request model for retrieving ShortPixel API status. Uses API key from metadata query parameters.\");\nconst ShortpixelGetApiStatus_StatusInfoSchema = z.object({\n Code: z.string().describe(\"Status code returned by the API (2=OK, 3=error, 9=over quota)\").nullable(),\n Message: z.string().describe(\"Human-readable message about the API status\").nullable(),\n}).passthrough().describe(\"Status information returned by the API.\");\nexport const ShortpixelGetApiStatusOutput = z.object({\n Status: ShortpixelGetApiStatus_StatusInfoSchema.nullable(),\n Unlimited: z.boolean().describe(\"Whether the account has unlimited API calls\").nullable(),\n DomainCheck: z.string().describe(\"Domain accessibility status\").nullable(),\n APICallsFree: z.string().describe(\"Number of free API calls available (as decimal string)\").nullable(),\n APICallsMade: z.string().describe(\"Number of API calls made (as decimal string)\").nullable(),\n APICallsQuota: z.union([z.number().int(), z.string()]),\n DateSubscription: z.string().describe(\"Subscription date in format 'YYYY-MM-DD HH:MM:SS'\").nullable(),\n APICallsMadeOneTime: z.string().describe(\"One-time API calls made (as decimal string)\").nullable(),\n APICallsQuotaOneTime: z.string().describe(\"One-time API calls quota (as decimal string)\").nullable(),\n}).passthrough().describe(\"Response model for ShortPixel API status, including status code, message, and usage details.\");\n\nexport const shortpixelGetApiStatus = action(\"SHORTPIXEL_GET_API_STATUS\", {\n slug: \"shortpixel-get-api-status\",\n name: \"Get API Status\",\n description: \"Tool to retrieve the current status of your API key, including available credits. Use when you need to monitor your account usage before making additional API calls.\",\n input: ShortpixelGetApiStatusInput,\n output: ShortpixelGetApiStatusOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,wGAAwG;AACzK,MAAM,0CAA0CA,IAAAA,EAAE,OAAO;CACvD,M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.ZodString>;
|
|
8
8
|
Message: z.ZodNullable<z.ZodString>;
|
|
9
|
-
}, z.core.$
|
|
9
|
+
}, z.core.$loose>>;
|
|
10
10
|
Unlimited: z.ZodNullable<z.ZodBoolean>;
|
|
11
11
|
DomainCheck: z.ZodNullable<z.ZodString>;
|
|
12
12
|
APICallsFree: z.ZodNullable<z.ZodString>;
|
|
@@ -15,8 +15,20 @@ declare const ShortpixelGetApiStatusOutput: z.ZodObject<{
|
|
|
15
15
|
DateSubscription: z.ZodNullable<z.ZodString>;
|
|
16
16
|
APICallsMadeOneTime: z.ZodNullable<z.ZodString>;
|
|
17
17
|
APICallsQuotaOneTime: z.ZodNullable<z.ZodString>;
|
|
18
|
-
}, z.core.$
|
|
19
|
-
declare const shortpixelGetApiStatus: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential
|
|
18
|
+
}, z.core.$loose>;
|
|
19
|
+
declare const shortpixelGetApiStatus: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"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>>]>, readonly [import("@keystrokehq/shared").Credential<"shortpixel", z.ZodObject<{
|
|
26
|
+
connectionId: z.ZodString;
|
|
27
|
+
entityId: z.ZodString;
|
|
28
|
+
instanceId: z.ZodString;
|
|
29
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
30
|
+
generic_key: z.ZodString;
|
|
31
|
+
}, z.core.$strip>>]>;
|
|
20
32
|
//#endregion
|
|
21
33
|
export { shortpixelGetApiStatus };
|
|
22
34
|
//# sourceMappingURL=get-api-status.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-api-status.d.cts","names":[],"sources":["../../src/actions/get-api-status.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAK3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;cAY5B,sBAAA,gCAAsB,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,
|
|
1
|
+
{"version":3,"file":"get-api-status.d.cts","names":[],"sources":["../../src/actions/get-api-status.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAK3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;cAY5B,sBAAA,gCAAsB,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,eAAA,CAAA,CAAA,SAAA"}
|
|
@@ -6,7 +6,7 @@ declare const ShortpixelGetApiStatusOutput: z.ZodObject<{
|
|
|
6
6
|
Status: z.ZodNullable<z.ZodObject<{
|
|
7
7
|
Code: z.ZodNullable<z.ZodString>;
|
|
8
8
|
Message: z.ZodNullable<z.ZodString>;
|
|
9
|
-
}, z.core.$
|
|
9
|
+
}, z.core.$loose>>;
|
|
10
10
|
Unlimited: z.ZodNullable<z.ZodBoolean>;
|
|
11
11
|
DomainCheck: z.ZodNullable<z.ZodString>;
|
|
12
12
|
APICallsFree: z.ZodNullable<z.ZodString>;
|
|
@@ -15,8 +15,20 @@ declare const ShortpixelGetApiStatusOutput: z.ZodObject<{
|
|
|
15
15
|
DateSubscription: z.ZodNullable<z.ZodString>;
|
|
16
16
|
APICallsMadeOneTime: z.ZodNullable<z.ZodString>;
|
|
17
17
|
APICallsQuotaOneTime: z.ZodNullable<z.ZodString>;
|
|
18
|
-
}, z.core.$
|
|
19
|
-
declare const shortpixelGetApiStatus: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential
|
|
18
|
+
}, z.core.$loose>;
|
|
19
|
+
declare const shortpixelGetApiStatus: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"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>>]>, readonly [import("@keystrokehq/shared").Credential<"shortpixel", z.ZodObject<{
|
|
26
|
+
connectionId: z.ZodString;
|
|
27
|
+
entityId: z.ZodString;
|
|
28
|
+
instanceId: z.ZodString;
|
|
29
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
30
|
+
generic_key: z.ZodString;
|
|
31
|
+
}, z.core.$strip>>]>;
|
|
20
32
|
//#endregion
|
|
21
33
|
export { shortpixelGetApiStatus };
|
|
22
34
|
//# sourceMappingURL=get-api-status.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-api-status.d.mts","names":[],"sources":["../../src/actions/get-api-status.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAK3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;cAY5B,sBAAA,gCAAsB,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,
|
|
1
|
+
{"version":3,"file":"get-api-status.d.mts","names":[],"sources":["../../src/actions/get-api-status.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAK3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;cAY5B,sBAAA,gCAAsB,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,eAAA,CAAA,CAAA,SAAA"}
|
|
@@ -5,7 +5,7 @@ const ShortpixelGetApiStatusInput = z.object({}).describe("Empty request model f
|
|
|
5
5
|
const ShortpixelGetApiStatus_StatusInfoSchema = z.object({
|
|
6
6
|
Code: z.string().describe("Status code returned by the API (2=OK, 3=error, 9=over quota)").nullable(),
|
|
7
7
|
Message: z.string().describe("Human-readable message about the API status").nullable()
|
|
8
|
-
}).describe("Status information returned by the API.");
|
|
8
|
+
}).passthrough().describe("Status information returned by the API.");
|
|
9
9
|
const shortpixelGetApiStatus = action("SHORTPIXEL_GET_API_STATUS", {
|
|
10
10
|
slug: "shortpixel-get-api-status",
|
|
11
11
|
name: "Get API Status",
|
|
@@ -21,7 +21,7 @@ const shortpixelGetApiStatus = action("SHORTPIXEL_GET_API_STATUS", {
|
|
|
21
21
|
DateSubscription: z.string().describe("Subscription date in format 'YYYY-MM-DD HH:MM:SS'").nullable(),
|
|
22
22
|
APICallsMadeOneTime: z.string().describe("One-time API calls made (as decimal string)").nullable(),
|
|
23
23
|
APICallsQuotaOneTime: z.string().describe("One-time API calls quota (as decimal string)").nullable()
|
|
24
|
-
}).describe("Response model for ShortPixel API status, including status code, message, and usage details.")
|
|
24
|
+
}).passthrough().describe("Response model for ShortPixel API status, including status code, message, and usage details.")
|
|
25
25
|
});
|
|
26
26
|
//#endregion
|
|
27
27
|
export { shortpixelGetApiStatus };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-api-status.mjs","names":[],"sources":["../../src/actions/get-api-status.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ShortpixelGetApiStatusInput = z.object({}).describe(\"Empty request model for retrieving ShortPixel API status. Uses API key from metadata query parameters.\");\nconst ShortpixelGetApiStatus_StatusInfoSchema = z.object({\n Code: z.string().describe(\"Status code returned by the API (2=OK, 3=error, 9=over quota)\").nullable(),\n Message: z.string().describe(\"Human-readable message about the API status\").nullable(),\n}).describe(\"Status information returned by the API.\");\nexport const ShortpixelGetApiStatusOutput = z.object({\n Status: ShortpixelGetApiStatus_StatusInfoSchema.nullable(),\n Unlimited: z.boolean().describe(\"Whether the account has unlimited API calls\").nullable(),\n DomainCheck: z.string().describe(\"Domain accessibility status\").nullable(),\n APICallsFree: z.string().describe(\"Number of free API calls available (as decimal string)\").nullable(),\n APICallsMade: z.string().describe(\"Number of API calls made (as decimal string)\").nullable(),\n APICallsQuota: z.union([z.number().int(), z.string()]),\n DateSubscription: z.string().describe(\"Subscription date in format 'YYYY-MM-DD HH:MM:SS'\").nullable(),\n APICallsMadeOneTime: z.string().describe(\"One-time API calls made (as decimal string)\").nullable(),\n APICallsQuotaOneTime: z.string().describe(\"One-time API calls quota (as decimal string)\").nullable(),\n}).describe(\"Response model for ShortPixel API status, including status code, message, and usage details.\");\n\nexport const shortpixelGetApiStatus = action(\"SHORTPIXEL_GET_API_STATUS\", {\n slug: \"shortpixel-get-api-status\",\n name: \"Get API Status\",\n description: \"Tool to retrieve the current status of your API key, including available credits. Use when you need to monitor your account usage before making additional API calls.\",\n input: ShortpixelGetApiStatusInput,\n output: ShortpixelGetApiStatusOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8B,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,wGAAwG;AACzK,MAAM,0CAA0C,EAAE,OAAO;CACvD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS;CACpG,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;AACvF,CAAC,CAAC,CAAC,SAAS,yCAAyC;
|
|
1
|
+
{"version":3,"file":"get-api-status.mjs","names":[],"sources":["../../src/actions/get-api-status.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ShortpixelGetApiStatusInput = z.object({}).describe(\"Empty request model for retrieving ShortPixel API status. Uses API key from metadata query parameters.\");\nconst ShortpixelGetApiStatus_StatusInfoSchema = z.object({\n Code: z.string().describe(\"Status code returned by the API (2=OK, 3=error, 9=over quota)\").nullable(),\n Message: z.string().describe(\"Human-readable message about the API status\").nullable(),\n}).passthrough().describe(\"Status information returned by the API.\");\nexport const ShortpixelGetApiStatusOutput = z.object({\n Status: ShortpixelGetApiStatus_StatusInfoSchema.nullable(),\n Unlimited: z.boolean().describe(\"Whether the account has unlimited API calls\").nullable(),\n DomainCheck: z.string().describe(\"Domain accessibility status\").nullable(),\n APICallsFree: z.string().describe(\"Number of free API calls available (as decimal string)\").nullable(),\n APICallsMade: z.string().describe(\"Number of API calls made (as decimal string)\").nullable(),\n APICallsQuota: z.union([z.number().int(), z.string()]),\n DateSubscription: z.string().describe(\"Subscription date in format 'YYYY-MM-DD HH:MM:SS'\").nullable(),\n APICallsMadeOneTime: z.string().describe(\"One-time API calls made (as decimal string)\").nullable(),\n APICallsQuotaOneTime: z.string().describe(\"One-time API calls quota (as decimal string)\").nullable(),\n}).passthrough().describe(\"Response model for ShortPixel API status, including status code, message, and usage details.\");\n\nexport const shortpixelGetApiStatus = action(\"SHORTPIXEL_GET_API_STATUS\", {\n slug: \"shortpixel-get-api-status\",\n name: \"Get API Status\",\n description: \"Tool to retrieve the current status of your API key, including available credits. Use when you need to monitor your account usage before making additional API calls.\",\n input: ShortpixelGetApiStatusInput,\n output: ShortpixelGetApiStatusOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8B,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,wGAAwG;AACzK,MAAM,0CAA0C,EAAE,OAAO;CACvD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS;CACpG,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;AACvF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yCAAyC;AAanE,MAAa,yBAAyB,OAAO,6BAA6B;CACxE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAjB0C,EAAE,OAAO;EACnD,QAAQ,wCAAwC,SAAS;EACzD,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;EACxF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;EACzE,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;EACrG,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;EAC3F,eAAe,EAAE,MAAM,CAAC,EAAE,OAAO,CAAC,CAAC,IAAI,GAAG,EAAE,OAAO,CAAC,CAAC;EACrD,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;EACpG,qBAAqB,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;EACjG,sBAAsB,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CACrG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8FAOhB;AACV,CAAC"}
|
|
@@ -5,12 +5,12 @@ const ShortpixelGetCdnUsageInput = zod.z.object({ domain: zod.z.string().describ
|
|
|
5
5
|
const ShortpixelGetCdnUsageOutput = zod.z.object({
|
|
6
6
|
Email: zod.z.string().describe("Email associated with the domain").nullable().optional(),
|
|
7
7
|
IsAlias: zod.z.number().int().describe("Whether this is an alias domain (0=no, 1=yes)").nullable().optional(),
|
|
8
|
-
UsedCDN: zod.z.
|
|
8
|
+
UsedCDN: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Daily CDN traffic breakdown by date (date -> traffic value)").nullable().optional(),
|
|
9
9
|
APIQuota: zod.z.number().int().describe("Monthly API quota").nullable().optional(),
|
|
10
10
|
CDNQuota: zod.z.number().int().describe("Total CDN quota in bytes").nullable().optional(),
|
|
11
11
|
Unlimited: zod.z.string().describe("Whether the account has unlimited usage").nullable().optional(),
|
|
12
12
|
DaysToReset: zod.z.number().int().describe("Days until monthly quota resets").nullable().optional(),
|
|
13
|
-
UsedCredits: zod.z.
|
|
13
|
+
UsedCredits: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Daily credits usage breakdown by date (date -> credits value)").nullable().optional(),
|
|
14
14
|
FreeAPICalls: zod.z.string().describe("Number of free API calls used").nullable().optional(),
|
|
15
15
|
IsSubaccount: zod.z.number().int().describe("Whether this is a subaccount (0=no, 1=yes)").nullable().optional(),
|
|
16
16
|
PaidAPICalls: zod.z.string().describe("Number of paid API calls used").nullable().optional(),
|
|
@@ -18,7 +18,7 @@ const ShortpixelGetCdnUsageOutput = zod.z.object({
|
|
|
18
18
|
APIQuotaOneTime: zod.z.string().describe("One-time credits quota").nullable().optional(),
|
|
19
19
|
PaidAPICallsOneTime: zod.z.string().describe("Number of one-time credits used").nullable().optional(),
|
|
20
20
|
RemainingCDNTraffic: zod.z.number().int().describe("Remaining CDN traffic quota in bytes").nullable().optional()
|
|
21
|
-
}).describe("Response model for CDN usage statistics including traffic, API calls, quota, and historical breakdown.");
|
|
21
|
+
}).passthrough().describe("Response model for CDN usage statistics including traffic, API calls, quota, and historical breakdown.");
|
|
22
22
|
const shortpixelGetCdnUsage = require_action.action("SHORTPIXEL_GET_CDN_USAGE", {
|
|
23
23
|
slug: "shortpixel-get-cdn-usage",
|
|
24
24
|
name: "Get CDN Usage Statistics",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-cdn-usage.cjs","names":["z","action"],"sources":["../../src/actions/get-cdn-usage.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ShortpixelGetCdnUsageInput = z.object({\n domain: z.string().describe(\"Domain name to get CDN usage statistics for (e.g., example.com)\"),\n}).describe(\"Request model for retrieving CDN usage statistics for a domain.\");\nexport const ShortpixelGetCdnUsageOutput = z.object({\n Email: z.string().describe(\"Email associated with the domain\").nullable().optional(),\n IsAlias: z.number().int().describe(\"Whether this is an alias domain (0=no, 1=yes)\").nullable().optional(),\n UsedCDN: z.
|
|
1
|
+
{"version":3,"file":"get-cdn-usage.cjs","names":["z","action"],"sources":["../../src/actions/get-cdn-usage.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ShortpixelGetCdnUsageInput = z.object({\n domain: z.string().describe(\"Domain name to get CDN usage statistics for (e.g., example.com)\"),\n}).describe(\"Request model for retrieving CDN usage statistics for a domain.\");\nexport const ShortpixelGetCdnUsageOutput = z.object({\n Email: z.string().describe(\"Email associated with the domain\").nullable().optional(),\n IsAlias: z.number().int().describe(\"Whether this is an alias domain (0=no, 1=yes)\").nullable().optional(),\n UsedCDN: z.record(z.string(), z.unknown()).describe(\"Daily CDN traffic breakdown by date (date -> traffic value)\").nullable().optional(),\n APIQuota: z.number().int().describe(\"Monthly API quota\").nullable().optional(),\n CDNQuota: z.number().int().describe(\"Total CDN quota in bytes\").nullable().optional(),\n Unlimited: z.string().describe(\"Whether the account has unlimited usage\").nullable().optional(),\n DaysToReset: z.number().int().describe(\"Days until monthly quota resets\").nullable().optional(),\n UsedCredits: z.record(z.string(), z.unknown()).describe(\"Daily credits usage breakdown by date (date -> credits value)\").nullable().optional(),\n FreeAPICalls: z.string().describe(\"Number of free API calls used\").nullable().optional(),\n IsSubaccount: z.number().int().describe(\"Whether this is a subaccount (0=no, 1=yes)\").nullable().optional(),\n PaidAPICalls: z.string().describe(\"Number of paid API calls used\").nullable().optional(),\n UsedCDNTraffic: z.string().describe(\"Total CDN traffic used\").nullable().optional(),\n APIQuotaOneTime: z.string().describe(\"One-time credits quota\").nullable().optional(),\n PaidAPICallsOneTime: z.string().describe(\"Number of one-time credits used\").nullable().optional(),\n RemainingCDNTraffic: z.number().int().describe(\"Remaining CDN traffic quota in bytes\").nullable().optional(),\n}).passthrough().describe(\"Response model for CDN usage statistics including traffic, API calls, quota, and historical breakdown.\");\n\nexport const shortpixelGetCdnUsage = action(\"SHORTPIXEL_GET_CDN_USAGE\", {\n slug: \"shortpixel-get-cdn-usage\",\n name: \"Get CDN Usage Statistics\",\n description: \"Tool to retrieve detailed CDN usage statistics for a domain including traffic, API calls, monthly quota, remaining credits, and historical usage breakdown by date. Use when you need to monitor CDN consumption or check quota status.\",\n input: ShortpixelGetCdnUsageInput,\n output: ShortpixelGetCdnUsageOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6BA,IAAAA,EAAE,OAAO,EACjD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE,EAC/F,CAAC,CAAC,CAAC,SAAS,iEAAiE;AAC7E,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnF,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxG,SAASA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvI,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7E,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpF,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;C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elGetCdnUsageOutput: z.ZodObject<{
|
|
8
8
|
Email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
9
9
|
IsAlias: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
10
|
-
UsedCDN: z.ZodOptional<z.ZodNullable<z.
|
|
10
|
+
UsedCDN: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
11
11
|
APIQuota: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
12
12
|
CDNQuota: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
13
13
|
Unlimited: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14
14
|
DaysToReset: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
15
|
-
UsedCredits: z.ZodOptional<z.ZodNullable<z.
|
|
15
|
+
UsedCredits: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
16
16
|
FreeAPICalls: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
17
|
IsSubaccount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
18
18
|
PaidAPICalls: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -20,10 +20,22 @@ declare const ShortpixelGetCdnUsageOutput: z.ZodObject<{
|
|
|
20
20
|
APIQuotaOneTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
21
21
|
PaidAPICallsOneTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
22
22
|
RemainingCDNTraffic: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
23
|
-
}, z.core.$
|
|
23
|
+
}, z.core.$loose>;
|
|
24
24
|
declare const shortpixelGetCdnUsage: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
25
25
|
domain: string;
|
|
26
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential
|
|
26
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"shortpixel", z.ZodObject<{
|
|
27
|
+
connectionId: z.ZodString;
|
|
28
|
+
entityId: z.ZodString;
|
|
29
|
+
instanceId: z.ZodString;
|
|
30
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
31
|
+
generic_key: z.ZodString;
|
|
32
|
+
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"shortpixel", z.ZodObject<{
|
|
33
|
+
connectionId: z.ZodString;
|
|
34
|
+
entityId: z.ZodString;
|
|
35
|
+
instanceId: z.ZodString;
|
|
36
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
37
|
+
generic_key: z.ZodString;
|
|
38
|
+
}, z.core.$strip>>]>;
|
|
27
39
|
//#endregion
|
|
28
40
|
export { shortpixelGetCdnUsage };
|
|
29
41
|
//# sourceMappingURL=get-cdn-usage.d.cts.map
|
|
@@ -7,12 +7,12 @@ declare const ShortpixelGetCdnUsageInput: z.ZodObject<{
|
|
|
7
7
|
declare const ShortpixelGetCdnUsageOutput: z.ZodObject<{
|
|
8
8
|
Email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
9
9
|
IsAlias: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
10
|
-
UsedCDN: z.ZodOptional<z.ZodNullable<z.
|
|
10
|
+
UsedCDN: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
11
11
|
APIQuota: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
12
12
|
CDNQuota: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
13
13
|
Unlimited: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14
14
|
DaysToReset: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
15
|
-
UsedCredits: z.ZodOptional<z.ZodNullable<z.
|
|
15
|
+
UsedCredits: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
16
16
|
FreeAPICalls: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
17
|
IsSubaccount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
18
18
|
PaidAPICalls: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -20,10 +20,22 @@ declare const ShortpixelGetCdnUsageOutput: z.ZodObject<{
|
|
|
20
20
|
APIQuotaOneTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
21
21
|
PaidAPICallsOneTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
22
22
|
RemainingCDNTraffic: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
23
|
-
}, z.core.$
|
|
23
|
+
}, z.core.$loose>;
|
|
24
24
|
declare const shortpixelGetCdnUsage: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
25
25
|
domain: string;
|
|
26
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential
|
|
26
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"shortpixel", z.ZodObject<{
|
|
27
|
+
connectionId: z.ZodString;
|
|
28
|
+
entityId: z.ZodString;
|
|
29
|
+
instanceId: z.ZodString;
|
|
30
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
31
|
+
generic_key: z.ZodString;
|
|
32
|
+
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"shortpixel", z.ZodObject<{
|
|
33
|
+
connectionId: z.ZodString;
|
|
34
|
+
entityId: z.ZodString;
|
|
35
|
+
instanceId: z.ZodString;
|
|
36
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
37
|
+
generic_key: z.ZodString;
|
|
38
|
+
}, z.core.$strip>>]>;
|
|
27
39
|
//#endregion
|
|
28
40
|
export { shortpixelGetCdnUsage };
|
|
29
41
|
//# sourceMappingURL=get-cdn-usage.d.mts.map
|
|
@@ -8,12 +8,12 @@ const shortpixelGetCdnUsage = action("SHORTPIXEL_GET_CDN_USAGE", {
|
|
|
8
8
|
output: z.object({
|
|
9
9
|
Email: z.string().describe("Email associated with the domain").nullable().optional(),
|
|
10
10
|
IsAlias: z.number().int().describe("Whether this is an alias domain (0=no, 1=yes)").nullable().optional(),
|
|
11
|
-
UsedCDN: z.
|
|
11
|
+
UsedCDN: z.record(z.string(), z.unknown()).describe("Daily CDN traffic breakdown by date (date -> traffic value)").nullable().optional(),
|
|
12
12
|
APIQuota: z.number().int().describe("Monthly API quota").nullable().optional(),
|
|
13
13
|
CDNQuota: z.number().int().describe("Total CDN quota in bytes").nullable().optional(),
|
|
14
14
|
Unlimited: z.string().describe("Whether the account has unlimited usage").nullable().optional(),
|
|
15
15
|
DaysToReset: z.number().int().describe("Days until monthly quota resets").nullable().optional(),
|
|
16
|
-
UsedCredits: z.
|
|
16
|
+
UsedCredits: z.record(z.string(), z.unknown()).describe("Daily credits usage breakdown by date (date -> credits value)").nullable().optional(),
|
|
17
17
|
FreeAPICalls: z.string().describe("Number of free API calls used").nullable().optional(),
|
|
18
18
|
IsSubaccount: z.number().int().describe("Whether this is a subaccount (0=no, 1=yes)").nullable().optional(),
|
|
19
19
|
PaidAPICalls: z.string().describe("Number of paid API calls used").nullable().optional(),
|
|
@@ -21,7 +21,7 @@ const shortpixelGetCdnUsage = action("SHORTPIXEL_GET_CDN_USAGE", {
|
|
|
21
21
|
APIQuotaOneTime: z.string().describe("One-time credits quota").nullable().optional(),
|
|
22
22
|
PaidAPICallsOneTime: z.string().describe("Number of one-time credits used").nullable().optional(),
|
|
23
23
|
RemainingCDNTraffic: z.number().int().describe("Remaining CDN traffic quota in bytes").nullable().optional()
|
|
24
|
-
}).describe("Response model for CDN usage statistics including traffic, API calls, quota, and historical breakdown.")
|
|
24
|
+
}).passthrough().describe("Response model for CDN usage statistics including traffic, API calls, quota, and historical breakdown.")
|
|
25
25
|
});
|
|
26
26
|
//#endregion
|
|
27
27
|
export { shortpixelGetCdnUsage };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-cdn-usage.mjs","names":[],"sources":["../../src/actions/get-cdn-usage.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ShortpixelGetCdnUsageInput = z.object({\n domain: z.string().describe(\"Domain name to get CDN usage statistics for (e.g., example.com)\"),\n}).describe(\"Request model for retrieving CDN usage statistics for a domain.\");\nexport const ShortpixelGetCdnUsageOutput = z.object({\n Email: z.string().describe(\"Email associated with the domain\").nullable().optional(),\n IsAlias: z.number().int().describe(\"Whether this is an alias domain (0=no, 1=yes)\").nullable().optional(),\n UsedCDN: z.
|
|
1
|
+
{"version":3,"file":"get-cdn-usage.mjs","names":[],"sources":["../../src/actions/get-cdn-usage.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ShortpixelGetCdnUsageInput = z.object({\n domain: z.string().describe(\"Domain name to get CDN usage statistics for (e.g., example.com)\"),\n}).describe(\"Request model for retrieving CDN usage statistics for a domain.\");\nexport const ShortpixelGetCdnUsageOutput = z.object({\n Email: z.string().describe(\"Email associated with the domain\").nullable().optional(),\n IsAlias: z.number().int().describe(\"Whether this is an alias domain (0=no, 1=yes)\").nullable().optional(),\n UsedCDN: z.record(z.string(), z.unknown()).describe(\"Daily CDN traffic breakdown by date (date -> traffic value)\").nullable().optional(),\n APIQuota: z.number().int().describe(\"Monthly API quota\").nullable().optional(),\n CDNQuota: z.number().int().describe(\"Total CDN quota in bytes\").nullable().optional(),\n Unlimited: z.string().describe(\"Whether the account has unlimited usage\").nullable().optional(),\n DaysToReset: z.number().int().describe(\"Days until monthly quota resets\").nullable().optional(),\n UsedCredits: z.record(z.string(), z.unknown()).describe(\"Daily credits usage breakdown by date (date -> credits value)\").nullable().optional(),\n FreeAPICalls: z.string().describe(\"Number of free API calls used\").nullable().optional(),\n IsSubaccount: z.number().int().describe(\"Whether this is a subaccount (0=no, 1=yes)\").nullable().optional(),\n PaidAPICalls: z.string().describe(\"Number of paid API calls used\").nullable().optional(),\n UsedCDNTraffic: z.string().describe(\"Total CDN traffic used\").nullable().optional(),\n APIQuotaOneTime: z.string().describe(\"One-time credits quota\").nullable().optional(),\n PaidAPICallsOneTime: z.string().describe(\"Number of one-time credits used\").nullable().optional(),\n RemainingCDNTraffic: z.number().int().describe(\"Remaining CDN traffic quota in bytes\").nullable().optional(),\n}).passthrough().describe(\"Response model for CDN usage statistics including traffic, API calls, quota, and historical breakdown.\");\n\nexport const shortpixelGetCdnUsage = action(\"SHORTPIXEL_GET_CDN_USAGE\", {\n slug: \"shortpixel-get-cdn-usage\",\n name: \"Get CDN Usage Statistics\",\n description: \"Tool to retrieve detailed CDN usage statistics for a domain including traffic, API calls, monthly quota, remaining credits, and historical usage breakdown by date. Use when you need to monitor CDN consumption or check quota status.\",\n input: ShortpixelGetCdnUsageInput,\n output: ShortpixelGetCdnUsageOutput,\n});\n"],"mappings":";;AAyBA,MAAa,wBAAwB,OAAO,4BAA4B;CACtE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAzBwC,EAAE,OAAO,EACjD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE,EAC/F,CAAC,CAAC,CAAC,SAAS,iEAuBH;CACP,QAvByC,EAAE,OAAO;EAClD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACnF,SAAS,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACxG,SAAS,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvI,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,S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|
|
|
26
26
|
bg_remove: zod.z.string().describe("Background removal options: '1' for transparent background, URL for custom background image, '#rrggbbxx' for color with transparency (xx is alpha in hex)").optional(),
|
|
27
27
|
convertto: zod.z.string().describe("Format conversion options: '+webp' (add WebP version), '+avif' (add AVIF version), '+webp|+avif' (add both), 'webp|avif' (replace with first available), 'jpg', 'png', 'gif' (convert to format)").optional(),
|
|
28
28
|
keep_exif: zod.z.number().int().describe("Preserve EXIF metadata in optimized images: 0 to remove (default), 1 to keep").optional(),
|
|
29
|
-
paramlist: zod.z.array(zod.z.
|
|
29
|
+
paramlist: zod.z.array(zod.z.record(zod.z.string(), zod.z.unknown())).describe("Array of custom optimization parameters for each URL, allowing per-image settings. Must match urllist length if provided.").optional(),
|
|
30
30
|
resize_width: zod.z.number().int().describe("Target width in pixels for resizing. Required if resize is specified.").optional(),
|
|
31
31
|
resize_height: zod.z.number().int().describe("Target height in pixels for resizing. Required if resize is specified.").optional(),
|
|
32
32
|
plugin_version: zod.z.string().describe("5-character max alphanumeric code identifying your API client").optional(),
|
|
@@ -41,7 +41,7 @@ const ShortpixelOptimizeImagesByUrlInput = zod.z.object({
|
|
|
41
41
|
const ShortpixelOptimizeImagesByUrl_OptimizationStatusSchema = zod.z.object({
|
|
42
42
|
Code: zod.z.number().int().describe("Status code: 1 = scheduled for optimization, 2 = ready/completed, negative values indicate errors").nullable(),
|
|
43
43
|
Message: zod.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 = zod.z.object({
|
|
46
46
|
Status: ShortpixelOptimizeImagesByUrl_OptimizationStatusSchema.nullable(),
|
|
47
47
|
LossyURL: zod.z.string().describe("URL of the lossy compressed version").nullable().optional(),
|
|
@@ -59,8 +59,8 @@ const ShortpixelOptimizeImagesByUrl_OptimizedImageSchema = zod.z.object({
|
|
|
59
59
|
WebPLosslessURL: zod.z.string().describe("URL of the WebP lossless version").nullable().optional(),
|
|
60
60
|
AVIFLoselessSize: zod.z.union([zod.z.number().int(), zod.z.string()]).nullable().optional(),
|
|
61
61
|
WebPLoselessSize: zod.z.union([zod.z.number().int(), zod.z.string()]).nullable().optional()
|
|
62
|
-
}).describe("Response data for a single optimized image.");
|
|
63
|
-
const ShortpixelOptimizeImagesByUrlOutput = zod.z.object({ results: zod.z.array(ShortpixelOptimizeImagesByUrl_OptimizedImageSchema).describe("Array of optimization results, one per input URL in the same order as the request") }).describe("Response model for batch image optimization by URL.");
|
|
62
|
+
}).passthrough().describe("Response data for a single optimized image.");
|
|
63
|
+
const ShortpixelOptimizeImagesByUrlOutput = zod.z.object({ results: zod.z.array(ShortpixelOptimizeImagesByUrl_OptimizedImageSchema).describe("Array of optimization results, one per input URL in the same order as the request") }).passthrough().describe("Response model for batch image optimization by URL.");
|
|
64
64
|
const shortpixelOptimizeImagesByUrl = require_action.action("SHORTPIXEL_OPTIMIZE_IMAGES_BY_URL", {
|
|
65
65
|
slug: "shortpixel-optimize-images-by-url",
|
|
66
66
|
name: "Optimize Images by URL",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"optimize-images-by-url.cjs","names":["z","action"],"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.
|
|
1
|
+
{"version":3,"file":"optimize-images-by-url.cjs","names":["z","action"],"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,qCAAqCA,IAAAA,EAAE,OAAO;CACzD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sJAAsJ,CAAC,CAAC,SAAS;CACjM,OAAOA,IAAAA,EAAE,KAAK;EAAC;EAAY;EAAS;CAAQ,CAAC,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;CAC5F,QAAQA,IAAAA,EAAE,KAAK;EAAC;EAAQ;EAAS;EAAS;CAAe,CAAC,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS;CACpG,SAASA,IAAAA,EAAE,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MAAa,gCAAgCC,eAAAA,OAAO,qCAAqC;CACvF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -4,9 +4,9 @@ import { z } from "zod";
|
|
|
4
4
|
declare const ShortpixelOptimizeImagesByUrlInput: z.ZodObject<{
|
|
5
5
|
wait: z.ZodOptional<z.ZodNumber>;
|
|
6
6
|
lossy: z.ZodOptional<z.ZodEnum<{
|
|
7
|
-
lossy: "lossy";
|
|
8
7
|
lossless: "lossless";
|
|
9
8
|
glossy: "glossy";
|
|
9
|
+
lossy: "lossy";
|
|
10
10
|
}>>;
|
|
11
11
|
resize: z.ZodOptional<z.ZodEnum<{
|
|
12
12
|
none: "none";
|
|
@@ -26,7 +26,7 @@ declare const ShortpixelOptimizeImagesByUrlInput: z.ZodObject<{
|
|
|
26
26
|
bg_remove: z.ZodOptional<z.ZodString>;
|
|
27
27
|
convertto: z.ZodOptional<z.ZodString>;
|
|
28
28
|
keep_exif: z.ZodOptional<z.ZodNumber>;
|
|
29
|
-
paramlist: z.ZodOptional<z.ZodArray<z.
|
|
29
|
+
paramlist: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
30
30
|
resize_width: z.ZodOptional<z.ZodNumber>;
|
|
31
31
|
resize_height: z.ZodOptional<z.ZodNumber>;
|
|
32
32
|
plugin_version: z.ZodOptional<z.ZodString>;
|
|
@@ -37,7 +37,7 @@ declare const ShortpixelOptimizeImagesByUrlOutput: z.ZodObject<{
|
|
|
37
37
|
Status: z.ZodNullable<z.ZodObject<{
|
|
38
38
|
Code: z.ZodNullable<z.ZodNumber>;
|
|
39
39
|
Message: z.ZodNullable<z.ZodString>;
|
|
40
|
-
}, z.core.$
|
|
40
|
+
}, z.core.$loose>>;
|
|
41
41
|
LossyURL: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
42
42
|
LossySize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
43
43
|
Timestamp: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -53,12 +53,12 @@ declare const ShortpixelOptimizeImagesByUrlOutput: z.ZodObject<{
|
|
|
53
53
|
WebPLosslessURL: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
54
54
|
AVIFLoselessSize: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
|
|
55
55
|
WebPLoselessSize: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
|
|
56
|
-
}, z.core.$
|
|
57
|
-
}, z.core.$
|
|
56
|
+
}, z.core.$loose>>;
|
|
57
|
+
}, z.core.$loose>;
|
|
58
58
|
declare const shortpixelOptimizeImagesByUrl: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
59
59
|
urllist: string[];
|
|
60
60
|
wait?: number | undefined;
|
|
61
|
-
lossy?: "
|
|
61
|
+
lossy?: "lossless" | "glossy" | "lossy" | undefined;
|
|
62
62
|
resize?: "none" | "outer" | "inner" | "smart_crop_ai" | undefined;
|
|
63
63
|
refresh?: number | undefined;
|
|
64
64
|
upscale?: "none" | "2x" | "3x" | "4x" | undefined;
|
|
@@ -66,12 +66,24 @@ declare const shortpixelOptimizeImagesByUrl: import("@keystrokehq/action").Workf
|
|
|
66
66
|
bg_remove?: string | undefined;
|
|
67
67
|
convertto?: string | undefined;
|
|
68
68
|
keep_exif?: number | undefined;
|
|
69
|
-
paramlist?: Record<string,
|
|
69
|
+
paramlist?: Record<string, unknown>[] | undefined;
|
|
70
70
|
resize_width?: number | undefined;
|
|
71
71
|
resize_height?: number | undefined;
|
|
72
72
|
plugin_version?: string | undefined;
|
|
73
73
|
returndatalist?: (string | number | boolean | Record<string, unknown>)[] | undefined;
|
|
74
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential
|
|
74
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"shortpixel", z.ZodObject<{
|
|
75
|
+
connectionId: z.ZodString;
|
|
76
|
+
entityId: z.ZodString;
|
|
77
|
+
instanceId: z.ZodString;
|
|
78
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
79
|
+
generic_key: z.ZodString;
|
|
80
|
+
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"shortpixel", z.ZodObject<{
|
|
81
|
+
connectionId: z.ZodString;
|
|
82
|
+
entityId: z.ZodString;
|
|
83
|
+
instanceId: z.ZodString;
|
|
84
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
85
|
+
generic_key: z.ZodString;
|
|
86
|
+
}, z.core.$strip>>]>;
|
|
75
87
|
//#endregion
|
|
76
88
|
export { shortpixelOptimizeImagesByUrl };
|
|
77
89
|
//# sourceMappingURL=optimize-images-by-url.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"optimize-images-by-url.d.cts","names":[],"sources":["../../src/actions/optimize-images-by-url.ts"],"mappings":";;;cAIa,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAuClC,mCAAA,EAAmC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;cAInC,6BAAA,gCAA6B,wBAAA
|
|
1
|
+
{"version":3,"file":"optimize-images-by-url.d.cts","names":[],"sources":["../../src/actions/optimize-images-by-url.ts"],"mappings":";;;cAIa,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAuClC,mCAAA,EAAmC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;cAInC,6BAAA,gCAA6B,wBAAA"}
|
|
@@ -4,9 +4,9 @@ import { z } from "zod";
|
|
|
4
4
|
declare const ShortpixelOptimizeImagesByUrlInput: z.ZodObject<{
|
|
5
5
|
wait: z.ZodOptional<z.ZodNumber>;
|
|
6
6
|
lossy: z.ZodOptional<z.ZodEnum<{
|
|
7
|
-
lossy: "lossy";
|
|
8
7
|
lossless: "lossless";
|
|
9
8
|
glossy: "glossy";
|
|
9
|
+
lossy: "lossy";
|
|
10
10
|
}>>;
|
|
11
11
|
resize: z.ZodOptional<z.ZodEnum<{
|
|
12
12
|
none: "none";
|
|
@@ -26,7 +26,7 @@ declare const ShortpixelOptimizeImagesByUrlInput: z.ZodObject<{
|
|
|
26
26
|
bg_remove: z.ZodOptional<z.ZodString>;
|
|
27
27
|
convertto: z.ZodOptional<z.ZodString>;
|
|
28
28
|
keep_exif: z.ZodOptional<z.ZodNumber>;
|
|
29
|
-
paramlist: z.ZodOptional<z.ZodArray<z.
|
|
29
|
+
paramlist: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
30
30
|
resize_width: z.ZodOptional<z.ZodNumber>;
|
|
31
31
|
resize_height: z.ZodOptional<z.ZodNumber>;
|
|
32
32
|
plugin_version: z.ZodOptional<z.ZodString>;
|
|
@@ -37,7 +37,7 @@ declare const ShortpixelOptimizeImagesByUrlOutput: z.ZodObject<{
|
|
|
37
37
|
Status: z.ZodNullable<z.ZodObject<{
|
|
38
38
|
Code: z.ZodNullable<z.ZodNumber>;
|
|
39
39
|
Message: z.ZodNullable<z.ZodString>;
|
|
40
|
-
}, z.core.$
|
|
40
|
+
}, z.core.$loose>>;
|
|
41
41
|
LossyURL: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
42
42
|
LossySize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
43
43
|
Timestamp: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -53,12 +53,12 @@ declare const ShortpixelOptimizeImagesByUrlOutput: z.ZodObject<{
|
|
|
53
53
|
WebPLosslessURL: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
54
54
|
AVIFLoselessSize: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
|
|
55
55
|
WebPLoselessSize: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
|
|
56
|
-
}, z.core.$
|
|
57
|
-
}, z.core.$
|
|
56
|
+
}, z.core.$loose>>;
|
|
57
|
+
}, z.core.$loose>;
|
|
58
58
|
declare const shortpixelOptimizeImagesByUrl: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
59
59
|
urllist: string[];
|
|
60
60
|
wait?: number | undefined;
|
|
61
|
-
lossy?: "
|
|
61
|
+
lossy?: "lossless" | "glossy" | "lossy" | undefined;
|
|
62
62
|
resize?: "none" | "outer" | "inner" | "smart_crop_ai" | undefined;
|
|
63
63
|
refresh?: number | undefined;
|
|
64
64
|
upscale?: "none" | "2x" | "3x" | "4x" | undefined;
|
|
@@ -66,12 +66,24 @@ declare const shortpixelOptimizeImagesByUrl: import("@keystrokehq/action").Workf
|
|
|
66
66
|
bg_remove?: string | undefined;
|
|
67
67
|
convertto?: string | undefined;
|
|
68
68
|
keep_exif?: number | undefined;
|
|
69
|
-
paramlist?: Record<string,
|
|
69
|
+
paramlist?: Record<string, unknown>[] | undefined;
|
|
70
70
|
resize_width?: number | undefined;
|
|
71
71
|
resize_height?: number | undefined;
|
|
72
72
|
plugin_version?: string | undefined;
|
|
73
73
|
returndatalist?: (string | number | boolean | Record<string, unknown>)[] | undefined;
|
|
74
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential
|
|
74
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"shortpixel", z.ZodObject<{
|
|
75
|
+
connectionId: z.ZodString;
|
|
76
|
+
entityId: z.ZodString;
|
|
77
|
+
instanceId: z.ZodString;
|
|
78
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
79
|
+
generic_key: z.ZodString;
|
|
80
|
+
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"shortpixel", z.ZodObject<{
|
|
81
|
+
connectionId: z.ZodString;
|
|
82
|
+
entityId: z.ZodString;
|
|
83
|
+
instanceId: z.ZodString;
|
|
84
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
85
|
+
generic_key: z.ZodString;
|
|
86
|
+
}, z.core.$strip>>]>;
|
|
75
87
|
//#endregion
|
|
76
88
|
export { shortpixelOptimizeImagesByUrl };
|
|
77
89
|
//# sourceMappingURL=optimize-images-by-url.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"optimize-images-by-url.d.mts","names":[],"sources":["../../src/actions/optimize-images-by-url.ts"],"mappings":";;;cAIa,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAuClC,mCAAA,EAAmC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;cAInC,6BAAA,gCAA6B,wBAAA
|
|
1
|
+
{"version":3,"file":"optimize-images-by-url.d.mts","names":[],"sources":["../../src/actions/optimize-images-by-url.ts"],"mappings":";;;cAIa,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAuClC,mCAAA,EAAmC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;cAInC,6BAAA,gCAA6B,wBAAA"}
|