@keystrokehq/shortpixel 0.1.2 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/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 +1 -1
- package/dist/actions/add-cdn-domain.d.mts +1 -1
- 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 +1 -1
- package/dist/actions/bulk-purge-storage.d.mts +1 -1
- 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 +2 -2
- package/dist/actions/check-image-status.d.mts +2 -2
- 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 +2 -2
- package/dist/actions/clean-up-image.d.mts +2 -2
- 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 +4 -4
- package/dist/actions/get-adaptive-image-cdn.d.mts +4 -4
- 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 +2 -2
- package/dist/actions/get-api-status.d.mts +2 -2
- 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 +3 -3
- package/dist/actions/get-cdn-usage.d.mts +3 -3
- 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 +7 -7
- package/dist/actions/optimize-images-by-url.d.mts +7 -7
- 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 +1 -1
- package/dist/actions/read-cdn-domain.d.mts +1 -1
- package/dist/actions/read-cdn-domain.mjs +1 -1
- package/dist/actions/read-cdn-domain.mjs.map +1 -1
- package/dist/actions/revoke-cdn-domain.cjs +1 -1
- package/dist/actions/revoke-cdn-domain.cjs.map +1 -1
- package/dist/actions/revoke-cdn-domain.d.cts +1 -1
- package/dist/actions/revoke-cdn-domain.d.mts +1 -1
- 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 +1 -1
- package/dist/actions/set-cdn-domain.d.mts +1 -1
- 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 +5 -5
- package/dist/actions/upload-and-optimize-images.d.mts +5 -5
- package/dist/actions/upload-and-optimize-images.mjs +3 -3
- package/dist/actions/upload-and-optimize-images.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -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,C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B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnF,qBAAqBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChG,qBAAqBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC7G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wGAAwG;AAElI,MAAa,wBAAwBC,eAAAA,OAAO,4BAA4B;CACtE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -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,7 +20,7 @@ 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
26
|
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
@@ -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,7 +20,7 @@ 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
26
|
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
@@ -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: ShortpixelGetCdnUsageOut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AC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1G,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvF,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAClF,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACnF,qBAAqB,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChG,qBAAqB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wGAOhB;AACV,CAAC"}
|
|
@@ -26,7 +26,7 @@ const ShortpixelOptimizeImagesByUrlInput = zod.z.object({
|
|
|
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,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wGAAwG,CAAC,CAAC,SAAS;CACtJ,SAASA,IAAAA,EAAE,KAAK;EAAC;EAAQ;EAAM;EAAM;CAAI,CAAC,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;CACzF,SAASA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,kGAAkG;CACxI,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oFAAoF,CAAC,CAAC,SAAS;CACnI,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2JAA2J,CAAC,CAAC,SAAS;CACrM,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kMAAkM,CAAC,CAAC,SAAS;CAC5O,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC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BAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7F,kBAAkBA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,GAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9E,kBAAkBA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,GAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAChF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6CAA6C;AACvE,MAAa,sCAAsCA,IAAAA,EAAE,OAAO,EAC1D,SAASA,IAAAA,EAAE,MAAM,kDAAkD,CAAC,CAAC,SAAS,mFAAmF,EACnK,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qDAAqD;AAE/E,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,7 +66,7 @@ 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;
|
|
@@ -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,7 +66,7 @@ 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;
|
|
@@ -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.
|
|
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.
|
|
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,SAA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dn-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;
|
|
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,7 +6,7 @@ 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.$
|
|
9
|
+
}, z.core.$loose>;
|
|
10
10
|
declare const shortpixelReadCdnDomain: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
11
11
|
domain: string;
|
|
12
12
|
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
@@ -6,7 +6,7 @@ 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.$
|
|
9
|
+
}, z.core.$loose>;
|
|
10
10
|
declare const shortpixelReadCdnDomain: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
11
11
|
domain: string;
|
|
12
12
|
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
@@ -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,
|
|
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;
|
|
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,7 +7,7 @@ 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.$
|
|
10
|
+
}, z.core.$loose>;
|
|
11
11
|
declare const shortpixelRevokeCdnDomain: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
12
12
|
domain: string;
|
|
13
13
|
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
@@ -7,7 +7,7 @@ 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.$
|
|
10
|
+
}, z.core.$loose>;
|
|
11
11
|
declare const shortpixelRevokeCdnDomain: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
12
12
|
domain: string;
|
|
13
13
|
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
@@ -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,
|
|
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;
|
|
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,7 +7,7 @@ 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.$
|
|
10
|
+
}, z.core.$loose>;
|
|
11
11
|
declare const shortpixelSetCdnDomain: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
12
12
|
domain: string;
|
|
13
13
|
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|