@keystrokehq/ritekit 0.1.0 → 0.1.2
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/action.cjs.map +1 -1
- package/dist/action.mjs.map +1 -1
- package/dist/actions/auto-hashtag.cjs +1 -1
- package/dist/actions/auto-hashtag.cjs.map +1 -1
- package/dist/actions/auto-hashtag.d.cts +16 -3
- package/dist/actions/auto-hashtag.d.cts.map +1 -1
- package/dist/actions/auto-hashtag.d.mts +16 -3
- package/dist/actions/auto-hashtag.d.mts.map +1 -1
- package/dist/actions/auto-hashtag.mjs +1 -1
- package/dist/actions/auto-hashtag.mjs.map +1 -1
- package/dist/actions/banned-instagram-hashtags.cjs.map +1 -1
- package/dist/actions/banned-instagram-hashtags.d.cts +14 -3
- package/dist/actions/banned-instagram-hashtags.d.cts.map +1 -1
- package/dist/actions/banned-instagram-hashtags.d.mts +14 -3
- package/dist/actions/banned-instagram-hashtags.d.mts.map +1 -1
- package/dist/actions/banned-instagram-hashtags.mjs.map +1 -1
- package/dist/actions/detect-disposable-email.cjs +1 -1
- package/dist/actions/detect-disposable-email.cjs.map +1 -1
- package/dist/actions/detect-disposable-email.d.cts +9 -3
- package/dist/actions/detect-disposable-email.d.cts.map +1 -1
- package/dist/actions/detect-disposable-email.d.mts +9 -3
- package/dist/actions/detect-disposable-email.d.mts.map +1 -1
- package/dist/actions/detect-disposable-email.mjs +1 -1
- package/dist/actions/detect-disposable-email.mjs.map +1 -1
- package/dist/actions/detect-email-typo.cjs.map +1 -1
- package/dist/actions/detect-email-typo.d.cts +11 -3
- package/dist/actions/detect-email-typo.d.cts.map +1 -1
- package/dist/actions/detect-email-typo.d.mts +11 -3
- package/dist/actions/detect-email-typo.d.mts.map +1 -1
- package/dist/actions/detect-email-typo.mjs.map +1 -1
- package/dist/actions/freemail-detection.cjs +1 -1
- package/dist/actions/freemail-detection.cjs.map +1 -1
- package/dist/actions/freemail-detection.d.cts +9 -3
- package/dist/actions/freemail-detection.d.cts.map +1 -1
- package/dist/actions/freemail-detection.d.mts +9 -3
- package/dist/actions/freemail-detection.d.mts.map +1 -1
- package/dist/actions/freemail-detection.mjs +1 -1
- package/dist/actions/freemail-detection.mjs.map +1 -1
- package/dist/actions/get-access-token.cjs +1 -1
- package/dist/actions/get-access-token.cjs.map +1 -1
- package/dist/actions/get-access-token.d.cts +16 -3
- package/dist/actions/get-access-token.d.cts.map +1 -1
- package/dist/actions/get-access-token.d.mts +16 -3
- package/dist/actions/get-access-token.d.mts.map +1 -1
- package/dist/actions/get-access-token.mjs +1 -1
- package/dist/actions/get-access-token.mjs.map +1 -1
- package/dist/actions/get-client-id.cjs +1 -1
- package/dist/actions/get-client-id.cjs.map +1 -1
- package/dist/actions/get-client-id.d.cts +9 -3
- package/dist/actions/get-client-id.d.cts.map +1 -1
- package/dist/actions/get-client-id.d.mts +9 -3
- package/dist/actions/get-client-id.d.mts.map +1 -1
- package/dist/actions/get-client-id.mjs +1 -1
- package/dist/actions/get-client-id.mjs.map +1 -1
- package/dist/actions/get-client-secret.cjs +1 -1
- package/dist/actions/get-client-secret.cjs.map +1 -1
- package/dist/actions/get-client-secret.d.cts +9 -3
- package/dist/actions/get-client-secret.d.cts.map +1 -1
- package/dist/actions/get-client-secret.d.mts +9 -3
- package/dist/actions/get-client-secret.d.mts.map +1 -1
- package/dist/actions/get-client-secret.mjs +1 -1
- package/dist/actions/get-client-secret.mjs.map +1 -1
- package/dist/actions/get-full-email-insights.cjs.map +1 -1
- package/dist/actions/get-full-email-insights.d.cts +19 -3
- package/dist/actions/get-full-email-insights.d.cts.map +1 -1
- package/dist/actions/get-full-email-insights.d.mts +19 -3
- package/dist/actions/get-full-email-insights.d.mts.map +1 -1
- package/dist/actions/get-full-email-insights.mjs.map +1 -1
- package/dist/actions/hashtag-suggestions.cjs +2 -2
- package/dist/actions/hashtag-suggestions.cjs.map +1 -1
- package/dist/actions/hashtag-suggestions.d.cts +16 -3
- package/dist/actions/hashtag-suggestions.d.cts.map +1 -1
- package/dist/actions/hashtag-suggestions.d.mts +16 -3
- package/dist/actions/hashtag-suggestions.d.mts.map +1 -1
- package/dist/actions/hashtag-suggestions.mjs +2 -2
- package/dist/actions/hashtag-suggestions.mjs.map +1 -1
- package/dist/actions/link-ad-delete.cjs +1 -1
- package/dist/actions/link-ad-delete.cjs.map +1 -1
- package/dist/actions/link-ad-delete.d.cts +10 -3
- package/dist/actions/link-ad-delete.d.cts.map +1 -1
- package/dist/actions/link-ad-delete.d.mts +10 -3
- package/dist/actions/link-ad-delete.d.mts.map +1 -1
- package/dist/actions/link-ad-delete.mjs +1 -1
- package/dist/actions/link-ad-delete.mjs.map +1 -1
- package/dist/actions/list-link-ads.cjs.map +1 -1
- package/dist/actions/list-link-ads.d.cts +16 -3
- package/dist/actions/list-link-ads.d.cts.map +1 -1
- package/dist/actions/list-link-ads.d.mts +16 -3
- package/dist/actions/list-link-ads.d.mts.map +1 -1
- package/dist/actions/list-link-ads.mjs.map +1 -1
- package/dist/actions/shorten-link.cjs.map +1 -1
- package/dist/actions/shorten-link.d.cts +19 -3
- package/dist/actions/shorten-link.d.cts.map +1 -1
- package/dist/actions/shorten-link.d.mts +19 -3
- package/dist/actions/shorten-link.d.mts.map +1 -1
- package/dist/actions/shorten-link.mjs.map +1 -1
- package/dist/actions/text-to-image.cjs +1 -1
- package/dist/actions/text-to-image.cjs.map +1 -1
- package/dist/actions/text-to-image.d.cts +54 -3
- package/dist/actions/text-to-image.d.cts.map +1 -1
- package/dist/actions/text-to-image.d.mts +54 -3
- package/dist/actions/text-to-image.d.mts.map +1 -1
- package/dist/actions/text-to-image.mjs +1 -1
- package/dist/actions/text-to-image.mjs.map +1 -1
- package/dist/catalog.cjs +7 -1
- package/dist/catalog.cjs.map +1 -1
- package/dist/catalog.d.cts +8 -0
- package/dist/catalog.d.mts +8 -0
- package/dist/catalog.mjs +7 -1
- package/dist/catalog.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -1,9 +1,22 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/list-link-ads.d.ts
|
|
4
|
-
declare const RitekitListLinkAdsInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const RitekitListLinkAdsInput: z.ZodObject<{
|
|
5
|
+
client_id: z.ZodOptional<z.ZodString>;
|
|
6
|
+
access_token: z.ZodOptional<z.ZodString>;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
declare const RitekitListLinkAdsOutput: z.ZodObject<{
|
|
9
|
+
link_ads: z.ZodArray<z.ZodObject<{
|
|
10
|
+
id: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
|
|
11
|
+
code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13
|
+
default: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
14
|
+
}, z.core.$strip>>;
|
|
15
|
+
}, z.core.$strip>;
|
|
16
|
+
declare const ritekitListLinkAds: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
17
|
+
client_id?: string | undefined;
|
|
18
|
+
access_token?: string | undefined;
|
|
19
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
20
|
//#endregion
|
|
8
21
|
export { ritekitListLinkAds };
|
|
9
22
|
//# sourceMappingURL=list-link-ads.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-link-ads.d.cts","names":[],"sources":["../../src/actions/list-link-ads.ts"],"mappings":";;;cAIa,uBAAA,
|
|
1
|
+
{"version":3,"file":"list-link-ads.d.cts","names":[],"sources":["../../src/actions/list-link-ads.ts"],"mappings":";;;cAIa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;cAUvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;cAIxB,kBAAA,gCAAkB,wBAAA"}
|
|
@@ -1,9 +1,22 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/list-link-ads.d.ts
|
|
4
|
-
declare const RitekitListLinkAdsInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const RitekitListLinkAdsInput: z.ZodObject<{
|
|
5
|
+
client_id: z.ZodOptional<z.ZodString>;
|
|
6
|
+
access_token: z.ZodOptional<z.ZodString>;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
declare const RitekitListLinkAdsOutput: z.ZodObject<{
|
|
9
|
+
link_ads: z.ZodArray<z.ZodObject<{
|
|
10
|
+
id: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
|
|
11
|
+
code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13
|
+
default: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
14
|
+
}, z.core.$strip>>;
|
|
15
|
+
}, z.core.$strip>;
|
|
16
|
+
declare const ritekitListLinkAds: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
17
|
+
client_id?: string | undefined;
|
|
18
|
+
access_token?: string | undefined;
|
|
19
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
20
|
//#endregion
|
|
8
21
|
export { ritekitListLinkAds };
|
|
9
22
|
//# sourceMappingURL=list-link-ads.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-link-ads.d.mts","names":[],"sources":["../../src/actions/list-link-ads.ts"],"mappings":";;;cAIa,uBAAA,
|
|
1
|
+
{"version":3,"file":"list-link-ads.d.mts","names":[],"sources":["../../src/actions/list-link-ads.ts"],"mappings":";;;cAIa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;cAUvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;cAIxB,kBAAA,gCAAkB,wBAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-link-ads.mjs","names":[],"sources":["../../src/actions/list-link-ads.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RitekitListLinkAdsInput
|
|
1
|
+
{"version":3,"file":"list-link-ads.mjs","names":[],"sources":["../../src/actions/list-link-ads.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RitekitListLinkAdsInput = z.object({\n client_id: z.string().describe(\"RiteKit API client ID; optional if using OAuth access_token\").optional(),\n access_token: z.string().describe(\"OAuth2 access token; optional if using client_id\").optional(),\n}).describe(\"Request model for listing link ads.\\n\\nAuthentication on RiteKit is typically provided via query string parameters.\\nWe support optional client_id or access_token to be passed explicitly.\\nIf neither is provided, we will attempt to extract a Bearer token from the\\nmetadata headers and pass it as access_token in the query string.\");\nconst RitekitListLinkAds_LinkAdItemSchema = z.object({\n id: z.union([z.string(), z.number().int()]),\n code: z.string().describe(\"Short code or identifier\").nullable().optional(),\n name: z.string().describe(\"Display name of the link ad\").nullable().optional(),\n \"default\": z.number().int().describe(\"Whether this is the default ad (1 or 0)\").nullable().optional(),\n});\nexport const RitekitListLinkAdsOutput = z.object({\n link_ads: z.array(RitekitListLinkAds_LinkAdItemSchema).describe(\"List of link ads for the authenticated user\"),\n}).describe(\"Response model for list of link ads.\");\n\nexport const ritekitListLinkAds = action(\"RITEKIT_LIST_LINK_ADS\", {\n slug: \"ritekit-list-link-ads\",\n name: \"List Link Ads\",\n description: \"Tool to retrieve a list of link ads. Use after authenticating to fetch all link ads for the user.\",\n input: RitekitListLinkAdsInput,\n output: RitekitListLinkAdsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAA0B,EAAE,OAAO;CAC9C,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS;CACvG,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;AACjG,CAAC,CAAC,CAAC,SAAS,4UAA4U;AACxV,MAAM,sCAAsC,EAAE,OAAO;CACnD,IAAI,EAAE,MAAM,CAAC,EAAE,OAAO,GAAG,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC;CAC1C,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7E,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACtG,CAAC;AAKD,MAAa,qBAAqB,OAAO,yBAAyB;CAChE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATsC,EAAE,OAAO,EAC/C,UAAU,EAAE,MAAM,mCAAmC,CAAC,CAAC,SAAS,6CAA6C,EAC/G,CAAC,CAAC,CAAC,SAAS,sCAOF;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shorten-link.cjs","names":["z","action"],"sources":["../../src/actions/shorten-link.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RitekitShortenLinkInput
|
|
1
|
+
{"version":3,"file":"shorten-link.cjs","names":["z","action"],"sources":["../../src/actions/shorten-link.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RitekitShortenLinkInput = z.object({\n cta: z.number().int().describe(\"ID of the call-to-action to attach to the shortened link\"),\n url: z.string().describe(\"URL to be shortened\"),\n}).describe(\"Request model for RiteKit Shorten Link API.\");\nconst RitekitShortenLink_LimitInfoSchema = z.object({\n remaining: z.number().int().describe(\"Number of remaining API calls\").nullable().optional(),\n}).describe(\"API rate limit information.\");\nexport const RitekitShortenLinkOutput = z.object({\n url: z.string().describe(\"Generated shortened URL with the specified CTA\").nullable().optional(),\n ctaId: z.string().describe(\"CTA ID attached to the link\").nullable().optional(),\n limit: RitekitShortenLink_LimitInfoSchema.nullable().optional(),\n result: z.boolean().describe(\"Whether the operation succeeded\").nullable().optional(),\n service: z.string().describe(\"Link shortening service used (e.g., rite.link)\").nullable().optional(),\n original: z.string().describe(\"Original URL that was shortened\").nullable().optional(),\n short_url: z.string().describe(\"Alternative field for shortened URL\").nullable().optional(),\n}).describe(\"Response model for RiteKit Shorten Link API.\");\n\nexport const ritekitShortenLink = action(\"RITEKIT_SHORTEN_LINK\", {\n slug: \"ritekit-shorten-link\",\n name: \"Shorten Link\",\n description: \"Tool to shorten a URL with a specified CTA. Use when you need to generate a call-to-action-enabled short link.\",\n input: RitekitShortenLinkInput,\n output: RitekitShortenLinkOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAA0BA,IAAAA,EAAE,OAAO;CAC9C,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0DAA0D;CACzF,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB;AAChD,CAAC,CAAC,CAAC,SAAS,6CAA6C;AACzD,MAAM,qCAAqCA,IAAAA,EAAE,OAAO,EAClD,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EAC5F,CAAC,CAAC,CAAC,SAAS,6BAA6B;AACzC,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/F,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9E,OAAO,mCAAmC,SAAS,CAAC,CAAC,SAAS;CAC9D,QAAQA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpF,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnG,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrF,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC5F,CAAC,CAAC,CAAC,SAAS,8CAA8C;AAE1D,MAAa,qBAAqBC,eAAAA,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,25 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/shorten-link.d.ts
|
|
4
|
-
declare const RitekitShortenLinkInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const RitekitShortenLinkInput: z.ZodObject<{
|
|
5
|
+
cta: z.ZodNumber;
|
|
6
|
+
url: z.ZodString;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
declare const RitekitShortenLinkOutput: z.ZodObject<{
|
|
9
|
+
url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
10
|
+
ctaId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
11
|
+
limit: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
12
|
+
remaining: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
13
|
+
}, z.core.$strip>>>;
|
|
14
|
+
result: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
15
|
+
service: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
|
+
original: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
|
+
short_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
18
|
+
}, z.core.$strip>;
|
|
19
|
+
declare const ritekitShortenLink: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
20
|
+
cta: number;
|
|
21
|
+
url: string;
|
|
22
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
23
|
//#endregion
|
|
8
24
|
export { ritekitShortenLink };
|
|
9
25
|
//# sourceMappingURL=shorten-link.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shorten-link.d.cts","names":[],"sources":["../../src/actions/shorten-link.ts"],"mappings":";;;cAIa,uBAAA,
|
|
1
|
+
{"version":3,"file":"shorten-link.d.cts","names":[],"sources":["../../src/actions/shorten-link.ts"],"mappings":";;;cAIa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;cAOvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;cAUxB,kBAAA,gCAAkB,wBAAA"}
|
|
@@ -1,9 +1,25 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/shorten-link.d.ts
|
|
4
|
-
declare const RitekitShortenLinkInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const RitekitShortenLinkInput: z.ZodObject<{
|
|
5
|
+
cta: z.ZodNumber;
|
|
6
|
+
url: z.ZodString;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
declare const RitekitShortenLinkOutput: z.ZodObject<{
|
|
9
|
+
url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
10
|
+
ctaId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
11
|
+
limit: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
12
|
+
remaining: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
13
|
+
}, z.core.$strip>>>;
|
|
14
|
+
result: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
15
|
+
service: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
|
+
original: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
|
+
short_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
18
|
+
}, z.core.$strip>;
|
|
19
|
+
declare const ritekitShortenLink: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
20
|
+
cta: number;
|
|
21
|
+
url: string;
|
|
22
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
23
|
//#endregion
|
|
8
24
|
export { ritekitShortenLink };
|
|
9
25
|
//# sourceMappingURL=shorten-link.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shorten-link.d.mts","names":[],"sources":["../../src/actions/shorten-link.ts"],"mappings":";;;cAIa,uBAAA,
|
|
1
|
+
{"version":3,"file":"shorten-link.d.mts","names":[],"sources":["../../src/actions/shorten-link.ts"],"mappings":";;;cAIa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;cAOvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;cAUxB,kBAAA,gCAAkB,wBAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shorten-link.mjs","names":[],"sources":["../../src/actions/shorten-link.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RitekitShortenLinkInput
|
|
1
|
+
{"version":3,"file":"shorten-link.mjs","names":[],"sources":["../../src/actions/shorten-link.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RitekitShortenLinkInput = z.object({\n cta: z.number().int().describe(\"ID of the call-to-action to attach to the shortened link\"),\n url: z.string().describe(\"URL to be shortened\"),\n}).describe(\"Request model for RiteKit Shorten Link API.\");\nconst RitekitShortenLink_LimitInfoSchema = z.object({\n remaining: z.number().int().describe(\"Number of remaining API calls\").nullable().optional(),\n}).describe(\"API rate limit information.\");\nexport const RitekitShortenLinkOutput = z.object({\n url: z.string().describe(\"Generated shortened URL with the specified CTA\").nullable().optional(),\n ctaId: z.string().describe(\"CTA ID attached to the link\").nullable().optional(),\n limit: RitekitShortenLink_LimitInfoSchema.nullable().optional(),\n result: z.boolean().describe(\"Whether the operation succeeded\").nullable().optional(),\n service: z.string().describe(\"Link shortening service used (e.g., rite.link)\").nullable().optional(),\n original: z.string().describe(\"Original URL that was shortened\").nullable().optional(),\n short_url: z.string().describe(\"Alternative field for shortened URL\").nullable().optional(),\n}).describe(\"Response model for RiteKit Shorten Link API.\");\n\nexport const ritekitShortenLink = action(\"RITEKIT_SHORTEN_LINK\", {\n slug: \"ritekit-shorten-link\",\n name: \"Shorten Link\",\n description: \"Tool to shorten a URL with a specified CTA. Use when you need to generate a call-to-action-enabled short link.\",\n input: RitekitShortenLinkInput,\n output: RitekitShortenLinkOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAA0B,EAAE,OAAO;CAC9C,KAAK,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0DAA0D;CACzF,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB;AAChD,CAAC,CAAC,CAAC,SAAS,6CAA6C;AACzD,MAAM,qCAAqC,EAAE,OAAO,EAClD,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EAC5F,CAAC,CAAC,CAAC,SAAS,6BAA6B;AAWzC,MAAa,qBAAqB,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAfsC,EAAE,OAAO;EAC/C,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC/F,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC9E,OAAO,mCAAmC,SAAS,CAAC,CAAC,SAAS;EAC9D,QAAQ,EAAE,QAAQ,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACpF,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACnG,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACrF,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5F,CAAC,CAAC,CAAC,SAAS,8CAOF;AACV,CAAC"}
|
|
@@ -26,7 +26,7 @@ const RitekitTextToImageInput = zod.z.object({
|
|
|
26
26
|
backgroundColor: zod.z.string().describe("Background color for solid type").optional(),
|
|
27
27
|
enableHighlight: zod.z.union([zod.z.literal(0), zod.z.literal(1)]).describe("Highlight behind quote text (1 = yes, 0 = no)").optional()
|
|
28
28
|
}).describe("Request parameters for generating an image from text. Use when you have quote text and optional styling.");
|
|
29
|
-
const RitekitTextToImageOutput = zod.z.object({ url: zod.z.string().describe("URL of the generated image") }).describe("Response containing the URL of the generated image.");
|
|
29
|
+
const RitekitTextToImageOutput = zod.z.object({ url: zod.z.string().describe("URL of the generated image").nullable() }).describe("Response containing the URL of the generated image.");
|
|
30
30
|
const ritekitTextToImage = require_action.action("RITEKIT_TEXT_TO_IMAGE", {
|
|
31
31
|
slug: "ritekit-text-to-image",
|
|
32
32
|
name: "Convert Text to Image",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"text-to-image.cjs","names":["z","action"],"sources":["../../src/actions/text-to-image.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RitekitTextToImageInput
|
|
1
|
+
{"version":3,"file":"text-to-image.cjs","names":["z","action"],"sources":["../../src/actions/text-to-image.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RitekitTextToImageInput = z.object({\n quote: z.string().describe(\"Text of the quote to render as an image\"),\n author: z.string().describe(\"Name of the author or source of the quote\").optional(),\n bgType: z.enum([\"solid\", \"gradient\"]).describe(\"Background type: 'solid' or 'gradient'\").optional(),\n fontSize: z.number().int().describe(\"Font size for the quote text (px, between 8 and 144)\").optional(),\n animation: z.enum([\"none\", \"rays\", \"glint\", \"circle\"]).describe(\"Animation effect: none, rays, glint, or circle\").optional(),\n brandLogo: z.string().describe(\"URL of a brand logo to include\").optional(),\n client_id: z.string().describe(\"Optional RiteKit API client ID. If not provided, the action attempts to read from connection metadata\").optional(),\n quoteFont: z.string().describe(\"Font family for the quote text\").optional(),\n authorFont: z.string().describe(\"Font family for the author text\").optional(),\n gradientType: z.enum([\"linear\", \"radial\"]).describe(\"Gradient type when bgType is 'gradient'\").optional(),\n showQuoteMark: z.union([z.literal(0), z.literal(1)]).describe(\"Display quote mark (1 = yes, 0 = no)\").optional(),\n gradientColor1: z.string().describe(\"First color for gradient background\").optional(),\n gradientColor2: z.string().describe(\"Second color for gradient background\").optional(),\n highlightColor: z.string().describe(\"Color (hex or name) for highlight\").optional(),\n quoteFontColor: z.string().describe(\"Color (hex or name) for the quote text\").optional(),\n authorFontColor: z.string().describe(\"Color (hex or name) for the author text\").optional(),\n backgroundColor: z.string().describe(\"Background color for solid type\").optional(),\n enableHighlight: z.union([z.literal(0), z.literal(1)]).describe(\"Highlight behind quote text (1 = yes, 0 = no)\").optional(),\n}).describe(\"Request parameters for generating an image from text. Use when you have quote text and optional styling.\");\nexport const RitekitTextToImageOutput = z.object({\n url: z.string().describe(\"URL of the generated image\").nullable(),\n}).describe(\"Response containing the URL of the generated image.\");\n\nexport const ritekitTextToImage = action(\"RITEKIT_TEXT_TO_IMAGE\", {\n slug: \"ritekit-text-to-image\",\n name: \"Convert Text to Image\",\n description: \"Tool to convert a quote into a styled image. Use after preparing quote text and style options.\",\n input: RitekitTextToImageInput,\n output: RitekitTextToImageOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAA0BA,IAAAA,EAAE,OAAO;CAC9C,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC;CACpE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CAClF,QAAQA,IAAAA,EAAE,KAAK,CAAC,SAAS,UAAU,CAAC,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CAClG,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;CACrG,WAAWA,IAAAA,EAAE,KAAK;EAAC;EAAQ;EAAQ;EAAS;CAAQ,CAAC,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CAC3H,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CAC1E,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uGAAuG,CAAC,CAAC,SAAS;CACjJ,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CAC1E,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CAC5E,cAAcA,IAAAA,EAAE,KAAK,CAAC,UAAU,QAAQ,CAAC,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CACxG,eAAeA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,QAAQ,CAAC,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CAC/G,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CACpF,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CACrF,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CAClF,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CACvF,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CACzF,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CACjF,iBAAiBA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,QAAQ,CAAC,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;AAC5H,CAAC,CAAC,CAAC,SAAS,0GAA0G;AACtH,MAAa,2BAA2BA,IAAAA,EAAE,OAAO,EAC/C,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,EAClE,CAAC,CAAC,CAAC,SAAS,qDAAqD;AAEjE,MAAa,qBAAqBC,eAAAA,OAAO,yBAAyB;CAChE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,60 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/text-to-image.d.ts
|
|
4
|
-
declare const RitekitTextToImageInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const RitekitTextToImageInput: z.ZodObject<{
|
|
5
|
+
quote: z.ZodString;
|
|
6
|
+
author: z.ZodOptional<z.ZodString>;
|
|
7
|
+
bgType: z.ZodOptional<z.ZodEnum<{
|
|
8
|
+
solid: "solid";
|
|
9
|
+
gradient: "gradient";
|
|
10
|
+
}>>;
|
|
11
|
+
fontSize: z.ZodOptional<z.ZodNumber>;
|
|
12
|
+
animation: z.ZodOptional<z.ZodEnum<{
|
|
13
|
+
none: "none";
|
|
14
|
+
rays: "rays";
|
|
15
|
+
glint: "glint";
|
|
16
|
+
circle: "circle";
|
|
17
|
+
}>>;
|
|
18
|
+
brandLogo: z.ZodOptional<z.ZodString>;
|
|
19
|
+
client_id: z.ZodOptional<z.ZodString>;
|
|
20
|
+
quoteFont: z.ZodOptional<z.ZodString>;
|
|
21
|
+
authorFont: z.ZodOptional<z.ZodString>;
|
|
22
|
+
gradientType: z.ZodOptional<z.ZodEnum<{
|
|
23
|
+
linear: "linear";
|
|
24
|
+
radial: "radial";
|
|
25
|
+
}>>;
|
|
26
|
+
showQuoteMark: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<1>]>>;
|
|
27
|
+
gradientColor1: z.ZodOptional<z.ZodString>;
|
|
28
|
+
gradientColor2: z.ZodOptional<z.ZodString>;
|
|
29
|
+
highlightColor: z.ZodOptional<z.ZodString>;
|
|
30
|
+
quoteFontColor: z.ZodOptional<z.ZodString>;
|
|
31
|
+
authorFontColor: z.ZodOptional<z.ZodString>;
|
|
32
|
+
backgroundColor: z.ZodOptional<z.ZodString>;
|
|
33
|
+
enableHighlight: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<1>]>>;
|
|
34
|
+
}, z.core.$strip>;
|
|
35
|
+
declare const RitekitTextToImageOutput: z.ZodObject<{
|
|
36
|
+
url: z.ZodNullable<z.ZodString>;
|
|
37
|
+
}, z.core.$strip>;
|
|
38
|
+
declare const ritekitTextToImage: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
39
|
+
quote: string;
|
|
40
|
+
author?: string | undefined;
|
|
41
|
+
bgType?: "solid" | "gradient" | undefined;
|
|
42
|
+
fontSize?: number | undefined;
|
|
43
|
+
animation?: "none" | "rays" | "glint" | "circle" | undefined;
|
|
44
|
+
brandLogo?: string | undefined;
|
|
45
|
+
client_id?: string | undefined;
|
|
46
|
+
quoteFont?: string | undefined;
|
|
47
|
+
authorFont?: string | undefined;
|
|
48
|
+
gradientType?: "linear" | "radial" | undefined;
|
|
49
|
+
showQuoteMark?: 0 | 1 | undefined;
|
|
50
|
+
gradientColor1?: string | undefined;
|
|
51
|
+
gradientColor2?: string | undefined;
|
|
52
|
+
highlightColor?: string | undefined;
|
|
53
|
+
quoteFontColor?: string | undefined;
|
|
54
|
+
authorFontColor?: string | undefined;
|
|
55
|
+
backgroundColor?: string | undefined;
|
|
56
|
+
enableHighlight?: 0 | 1 | undefined;
|
|
57
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
58
|
//#endregion
|
|
8
59
|
export { ritekitTextToImage };
|
|
9
60
|
//# sourceMappingURL=text-to-image.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"text-to-image.d.cts","names":[],"sources":["../../src/actions/text-to-image.ts"],"mappings":";;;cAIa,uBAAA,
|
|
1
|
+
{"version":3,"file":"text-to-image.d.cts","names":[],"sources":["../../src/actions/text-to-image.ts"],"mappings":";;;cAIa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAoBvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;cAIxB,kBAAA,gCAAkB,wBAAA"}
|
|
@@ -1,9 +1,60 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/text-to-image.d.ts
|
|
4
|
-
declare const RitekitTextToImageInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const RitekitTextToImageInput: z.ZodObject<{
|
|
5
|
+
quote: z.ZodString;
|
|
6
|
+
author: z.ZodOptional<z.ZodString>;
|
|
7
|
+
bgType: z.ZodOptional<z.ZodEnum<{
|
|
8
|
+
solid: "solid";
|
|
9
|
+
gradient: "gradient";
|
|
10
|
+
}>>;
|
|
11
|
+
fontSize: z.ZodOptional<z.ZodNumber>;
|
|
12
|
+
animation: z.ZodOptional<z.ZodEnum<{
|
|
13
|
+
none: "none";
|
|
14
|
+
rays: "rays";
|
|
15
|
+
glint: "glint";
|
|
16
|
+
circle: "circle";
|
|
17
|
+
}>>;
|
|
18
|
+
brandLogo: z.ZodOptional<z.ZodString>;
|
|
19
|
+
client_id: z.ZodOptional<z.ZodString>;
|
|
20
|
+
quoteFont: z.ZodOptional<z.ZodString>;
|
|
21
|
+
authorFont: z.ZodOptional<z.ZodString>;
|
|
22
|
+
gradientType: z.ZodOptional<z.ZodEnum<{
|
|
23
|
+
linear: "linear";
|
|
24
|
+
radial: "radial";
|
|
25
|
+
}>>;
|
|
26
|
+
showQuoteMark: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<1>]>>;
|
|
27
|
+
gradientColor1: z.ZodOptional<z.ZodString>;
|
|
28
|
+
gradientColor2: z.ZodOptional<z.ZodString>;
|
|
29
|
+
highlightColor: z.ZodOptional<z.ZodString>;
|
|
30
|
+
quoteFontColor: z.ZodOptional<z.ZodString>;
|
|
31
|
+
authorFontColor: z.ZodOptional<z.ZodString>;
|
|
32
|
+
backgroundColor: z.ZodOptional<z.ZodString>;
|
|
33
|
+
enableHighlight: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<1>]>>;
|
|
34
|
+
}, z.core.$strip>;
|
|
35
|
+
declare const RitekitTextToImageOutput: z.ZodObject<{
|
|
36
|
+
url: z.ZodNullable<z.ZodString>;
|
|
37
|
+
}, z.core.$strip>;
|
|
38
|
+
declare const ritekitTextToImage: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
39
|
+
quote: string;
|
|
40
|
+
author?: string | undefined;
|
|
41
|
+
bgType?: "solid" | "gradient" | undefined;
|
|
42
|
+
fontSize?: number | undefined;
|
|
43
|
+
animation?: "none" | "rays" | "glint" | "circle" | undefined;
|
|
44
|
+
brandLogo?: string | undefined;
|
|
45
|
+
client_id?: string | undefined;
|
|
46
|
+
quoteFont?: string | undefined;
|
|
47
|
+
authorFont?: string | undefined;
|
|
48
|
+
gradientType?: "linear" | "radial" | undefined;
|
|
49
|
+
showQuoteMark?: 0 | 1 | undefined;
|
|
50
|
+
gradientColor1?: string | undefined;
|
|
51
|
+
gradientColor2?: string | undefined;
|
|
52
|
+
highlightColor?: string | undefined;
|
|
53
|
+
quoteFontColor?: string | undefined;
|
|
54
|
+
authorFontColor?: string | undefined;
|
|
55
|
+
backgroundColor?: string | undefined;
|
|
56
|
+
enableHighlight?: 0 | 1 | undefined;
|
|
57
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
58
|
//#endregion
|
|
8
59
|
export { ritekitTextToImage };
|
|
9
60
|
//# sourceMappingURL=text-to-image.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"text-to-image.d.mts","names":[],"sources":["../../src/actions/text-to-image.ts"],"mappings":";;;cAIa,uBAAA,
|
|
1
|
+
{"version":3,"file":"text-to-image.d.mts","names":[],"sources":["../../src/actions/text-to-image.ts"],"mappings":";;;cAIa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAoBvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;cAIxB,kBAAA,gCAAkB,wBAAA"}
|
|
@@ -29,7 +29,7 @@ const ritekitTextToImage = action("RITEKIT_TEXT_TO_IMAGE", {
|
|
|
29
29
|
backgroundColor: z.string().describe("Background color for solid type").optional(),
|
|
30
30
|
enableHighlight: z.union([z.literal(0), z.literal(1)]).describe("Highlight behind quote text (1 = yes, 0 = no)").optional()
|
|
31
31
|
}).describe("Request parameters for generating an image from text. Use when you have quote text and optional styling."),
|
|
32
|
-
output: z.object({ url: z.string().describe("URL of the generated image") }).describe("Response containing the URL of the generated image.")
|
|
32
|
+
output: z.object({ url: z.string().describe("URL of the generated image").nullable() }).describe("Response containing the URL of the generated image.")
|
|
33
33
|
});
|
|
34
34
|
//#endregion
|
|
35
35
|
export { ritekitTextToImage };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"text-to-image.mjs","names":[],"sources":["../../src/actions/text-to-image.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RitekitTextToImageInput
|
|
1
|
+
{"version":3,"file":"text-to-image.mjs","names":[],"sources":["../../src/actions/text-to-image.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RitekitTextToImageInput = z.object({\n quote: z.string().describe(\"Text of the quote to render as an image\"),\n author: z.string().describe(\"Name of the author or source of the quote\").optional(),\n bgType: z.enum([\"solid\", \"gradient\"]).describe(\"Background type: 'solid' or 'gradient'\").optional(),\n fontSize: z.number().int().describe(\"Font size for the quote text (px, between 8 and 144)\").optional(),\n animation: z.enum([\"none\", \"rays\", \"glint\", \"circle\"]).describe(\"Animation effect: none, rays, glint, or circle\").optional(),\n brandLogo: z.string().describe(\"URL of a brand logo to include\").optional(),\n client_id: z.string().describe(\"Optional RiteKit API client ID. If not provided, the action attempts to read from connection metadata\").optional(),\n quoteFont: z.string().describe(\"Font family for the quote text\").optional(),\n authorFont: z.string().describe(\"Font family for the author text\").optional(),\n gradientType: z.enum([\"linear\", \"radial\"]).describe(\"Gradient type when bgType is 'gradient'\").optional(),\n showQuoteMark: z.union([z.literal(0), z.literal(1)]).describe(\"Display quote mark (1 = yes, 0 = no)\").optional(),\n gradientColor1: z.string().describe(\"First color for gradient background\").optional(),\n gradientColor2: z.string().describe(\"Second color for gradient background\").optional(),\n highlightColor: z.string().describe(\"Color (hex or name) for highlight\").optional(),\n quoteFontColor: z.string().describe(\"Color (hex or name) for the quote text\").optional(),\n authorFontColor: z.string().describe(\"Color (hex or name) for the author text\").optional(),\n backgroundColor: z.string().describe(\"Background color for solid type\").optional(),\n enableHighlight: z.union([z.literal(0), z.literal(1)]).describe(\"Highlight behind quote text (1 = yes, 0 = no)\").optional(),\n}).describe(\"Request parameters for generating an image from text. Use when you have quote text and optional styling.\");\nexport const RitekitTextToImageOutput = z.object({\n url: z.string().describe(\"URL of the generated image\").nullable(),\n}).describe(\"Response containing the URL of the generated image.\");\n\nexport const ritekitTextToImage = action(\"RITEKIT_TEXT_TO_IMAGE\", {\n slug: \"ritekit-text-to-image\",\n name: \"Convert Text to Image\",\n description: \"Tool to convert a quote into a styled image. Use after preparing quote text and style options.\",\n input: RitekitTextToImageInput,\n output: RitekitTextToImageOutput,\n});\n"],"mappings":";;AA4BA,MAAa,qBAAqB,OAAO,yBAAyB;CAChE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OA5BqC,EAAE,OAAO;EAC9C,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC;EACpE,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;EAClF,QAAQ,EAAE,KAAK,CAAC,SAAS,UAAU,CAAC,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;EAClG,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;EACrG,WAAW,EAAE,KAAK;GAAC;GAAQ;GAAQ;GAAS;EAAQ,CAAC,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;EAC3H,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;EAC1E,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,uGAAuG,CAAC,CAAC,SAAS;EACjJ,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;EAC1E,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;EAC5E,cAAc,EAAE,KAAK,CAAC,UAAU,QAAQ,CAAC,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;EACxG,eAAe,EAAE,MAAM,CAAC,EAAE,QAAQ,CAAC,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;EAC/G,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;EACpF,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;EACrF,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;EAClF,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;EACvF,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;EACzF,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;EACjF,iBAAiB,EAAE,MAAM,CAAC,EAAE,QAAQ,CAAC,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CAC5H,CAAC,CAAC,CAAC,SAAS,0GASH;CACP,QATsC,EAAE,OAAO,EAC/C,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,EAClE,CAAC,CAAC,CAAC,SAAS,qDAOF;AACV,CAAC"}
|
package/dist/catalog.cjs
CHANGED
|
@@ -7,7 +7,13 @@ const ritekitCatalog = {
|
|
|
7
7
|
"category": "Social Media Marketing",
|
|
8
8
|
"logo": "https://logos.composio.dev/api/ritekit",
|
|
9
9
|
"authKind": "keystroke",
|
|
10
|
-
"oauthScopes": []
|
|
10
|
+
"oauthScopes": [],
|
|
11
|
+
"credentialFields": { "api_key": {
|
|
12
|
+
"label": "RiteKit Client ID",
|
|
13
|
+
"secret": true,
|
|
14
|
+
"description": "The Client ID obtained from the RiteKit Developer Dashboard."
|
|
15
|
+
} },
|
|
16
|
+
"credentialScheme": "API_KEY"
|
|
11
17
|
};
|
|
12
18
|
//#endregion
|
|
13
19
|
exports.ritekitCatalog = ritekitCatalog;
|
package/dist/catalog.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"catalog.cjs","names":[],"sources":["../src/catalog.ts"],"sourcesContent":["/** Generated — kept in sync with src/app.ts. */\nexport const ritekitCatalog = {\n \"slug\": \"ritekit\",\n \"name\": \"Ritekit\",\n \"description\": \"RiteKit offers a suite of APIs designed to enhance social media engagement by providing tools for hashtag generation, link shortening, and content analysis.\",\n \"category\": \"Social Media Marketing\",\n \"logo\": \"https://logos.composio.dev/api/ritekit\",\n \"authKind\": \"keystroke\",\n \"oauthScopes\": []\n} as const;\n"],"mappings":";;AACA,MAAa,iBAAiB;CAC5B,QAAQ;CACR,QAAQ;CACR,eAAe;CACf,YAAY;CACZ,QAAQ;CACR,YAAY;CACZ,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"catalog.cjs","names":[],"sources":["../src/catalog.ts"],"sourcesContent":["/** Generated — kept in sync with src/app.ts. */\nexport const ritekitCatalog = {\n \"slug\": \"ritekit\",\n \"name\": \"Ritekit\",\n \"description\": \"RiteKit offers a suite of APIs designed to enhance social media engagement by providing tools for hashtag generation, link shortening, and content analysis.\",\n \"category\": \"Social Media Marketing\",\n \"logo\": \"https://logos.composio.dev/api/ritekit\",\n \"authKind\": \"keystroke\",\n \"oauthScopes\": [],\n \"credentialFields\": {\n \"api_key\": {\n \"label\": \"RiteKit Client ID\",\n \"secret\": true,\n \"description\": \"The Client ID obtained from the RiteKit Developer Dashboard.\"\n }\n },\n \"credentialScheme\": \"API_KEY\"\n} as const;\n"],"mappings":";;AACA,MAAa,iBAAiB;CAC5B,QAAQ;CACR,QAAQ;CACR,eAAe;CACf,YAAY;CACZ,QAAQ;CACR,YAAY;CACZ,eAAe,CAAC;CAChB,oBAAoB,EAClB,WAAW;EACT,SAAS;EACT,UAAU;EACV,eAAe;CACjB,EACF;CACA,oBAAoB;AACtB"}
|
package/dist/catalog.d.cts
CHANGED
|
@@ -8,6 +8,14 @@ declare const ritekitCatalog: {
|
|
|
8
8
|
readonly logo: "https://logos.composio.dev/api/ritekit";
|
|
9
9
|
readonly authKind: "keystroke";
|
|
10
10
|
readonly oauthScopes: readonly [];
|
|
11
|
+
readonly credentialFields: {
|
|
12
|
+
readonly api_key: {
|
|
13
|
+
readonly label: "RiteKit Client ID";
|
|
14
|
+
readonly secret: true;
|
|
15
|
+
readonly description: "The Client ID obtained from the RiteKit Developer Dashboard.";
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
readonly credentialScheme: "API_KEY";
|
|
11
19
|
};
|
|
12
20
|
//#endregion
|
|
13
21
|
export { ritekitCatalog };
|
package/dist/catalog.d.mts
CHANGED
|
@@ -8,6 +8,14 @@ declare const ritekitCatalog: {
|
|
|
8
8
|
readonly logo: "https://logos.composio.dev/api/ritekit";
|
|
9
9
|
readonly authKind: "keystroke";
|
|
10
10
|
readonly oauthScopes: readonly [];
|
|
11
|
+
readonly credentialFields: {
|
|
12
|
+
readonly api_key: {
|
|
13
|
+
readonly label: "RiteKit Client ID";
|
|
14
|
+
readonly secret: true;
|
|
15
|
+
readonly description: "The Client ID obtained from the RiteKit Developer Dashboard.";
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
readonly credentialScheme: "API_KEY";
|
|
11
19
|
};
|
|
12
20
|
//#endregion
|
|
13
21
|
export { ritekitCatalog };
|
package/dist/catalog.mjs
CHANGED
|
@@ -7,7 +7,13 @@ const ritekitCatalog = {
|
|
|
7
7
|
"category": "Social Media Marketing",
|
|
8
8
|
"logo": "https://logos.composio.dev/api/ritekit",
|
|
9
9
|
"authKind": "keystroke",
|
|
10
|
-
"oauthScopes": []
|
|
10
|
+
"oauthScopes": [],
|
|
11
|
+
"credentialFields": { "api_key": {
|
|
12
|
+
"label": "RiteKit Client ID",
|
|
13
|
+
"secret": true,
|
|
14
|
+
"description": "The Client ID obtained from the RiteKit Developer Dashboard."
|
|
15
|
+
} },
|
|
16
|
+
"credentialScheme": "API_KEY"
|
|
11
17
|
};
|
|
12
18
|
//#endregion
|
|
13
19
|
export { ritekitCatalog };
|
package/dist/catalog.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"catalog.mjs","names":[],"sources":["../src/catalog.ts"],"sourcesContent":["/** Generated — kept in sync with src/app.ts. */\nexport const ritekitCatalog = {\n \"slug\": \"ritekit\",\n \"name\": \"Ritekit\",\n \"description\": \"RiteKit offers a suite of APIs designed to enhance social media engagement by providing tools for hashtag generation, link shortening, and content analysis.\",\n \"category\": \"Social Media Marketing\",\n \"logo\": \"https://logos.composio.dev/api/ritekit\",\n \"authKind\": \"keystroke\",\n \"oauthScopes\": []\n} as const;\n"],"mappings":";;AACA,MAAa,iBAAiB;CAC5B,QAAQ;CACR,QAAQ;CACR,eAAe;CACf,YAAY;CACZ,QAAQ;CACR,YAAY;CACZ,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"catalog.mjs","names":[],"sources":["../src/catalog.ts"],"sourcesContent":["/** Generated — kept in sync with src/app.ts. */\nexport const ritekitCatalog = {\n \"slug\": \"ritekit\",\n \"name\": \"Ritekit\",\n \"description\": \"RiteKit offers a suite of APIs designed to enhance social media engagement by providing tools for hashtag generation, link shortening, and content analysis.\",\n \"category\": \"Social Media Marketing\",\n \"logo\": \"https://logos.composio.dev/api/ritekit\",\n \"authKind\": \"keystroke\",\n \"oauthScopes\": [],\n \"credentialFields\": {\n \"api_key\": {\n \"label\": \"RiteKit Client ID\",\n \"secret\": true,\n \"description\": \"The Client ID obtained from the RiteKit Developer Dashboard.\"\n }\n },\n \"credentialScheme\": \"API_KEY\"\n} as const;\n"],"mappings":";;AACA,MAAa,iBAAiB;CAC5B,QAAQ;CACR,QAAQ;CACR,eAAe;CACf,YAAY;CACZ,QAAQ;CACR,YAAY;CACZ,eAAe,CAAC;CAChB,oBAAoB,EAClB,WAAW;EACT,SAAS;EACT,UAAU;EACV,eAAe;CACjB,EACF;CACA,oBAAoB;AACtB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@keystrokehq/ritekit",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public",
|
|
6
6
|
"registry": "https://registry.npmjs.org"
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
}
|
|
32
32
|
},
|
|
33
33
|
"peerDependencies": {
|
|
34
|
-
"@keystrokehq/keystroke": "
|
|
34
|
+
"@keystrokehq/keystroke": ">=0.1.4",
|
|
35
35
|
"zod": "^4.4.3"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|