@keystrokehq/rafflys 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/get-current-user.cjs +4 -4
- package/dist/actions/get-current-user.cjs.map +1 -1
- package/dist/actions/get-current-user.d.cts +13 -3
- package/dist/actions/get-current-user.d.cts.map +1 -1
- package/dist/actions/get-current-user.d.mts +13 -3
- package/dist/actions/get-current-user.d.mts.map +1 -1
- package/dist/actions/get-current-user.mjs +4 -4
- package/dist/actions/get-current-user.mjs.map +1 -1
- package/dist/actions/list-promotions.cjs.map +1 -1
- package/dist/actions/list-promotions.d.cts +11 -3
- package/dist/actions/list-promotions.d.cts.map +1 -1
- package/dist/actions/list-promotions.d.mts +11 -3
- package/dist/actions/list-promotions.d.mts.map +1 -1
- package/dist/actions/list-promotions.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
package/dist/action.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"action.cjs","names":["rafflys","executeRafflysTool"],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { rafflys } from \"./app\";\nimport { executeRafflysTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input:
|
|
1
|
+
{"version":3,"file":"action.cjs","names":["rafflys","executeRafflysTool"],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { rafflys } from \"./app\";\nimport { executeRafflysTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: z.ZodType;\n },\n) {\n return rafflys.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output as z.ZodTypeAny,\n async run(input) {\n return def.output.parse(await executeRafflysTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAOA,YAAAA,QAAQ,OAAO;EACpB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAMC,gBAAAA,mBAAmB,MAAM,KAAgC,CAAC;EAC1F;CACF,CAAC;AACH"}
|
package/dist/action.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { rafflys } from \"./app\";\nimport { executeRafflysTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input:
|
|
1
|
+
{"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { rafflys } from \"./app\";\nimport { executeRafflysTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: z.ZodType;\n },\n) {\n return rafflys.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output as z.ZodTypeAny,\n async run(input) {\n return def.output.parse(await executeRafflysTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAO,QAAQ,OAAO;EACpB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAM,mBAAmB,MAAM,KAAgC,CAAC;EAC1F;CACF,CAAC;AACH"}
|
|
@@ -3,16 +3,16 @@ let zod = require("zod");
|
|
|
3
3
|
//#region src/actions/get-current-user.ts
|
|
4
4
|
const RafflysGetCurrentUserInput = zod.z.object({}).describe("Request model for retrieving the current authenticated user.\nNo parameters are required.");
|
|
5
5
|
const RafflysGetCurrentUser_UserDataSchema = zod.z.object({
|
|
6
|
-
id: zod.z.number().int().describe("Unique identifier of the user"),
|
|
6
|
+
id: zod.z.number().int().describe("Unique identifier of the user").nullable(),
|
|
7
7
|
lang: zod.z.string().describe("Language preference of the user").nullable().optional(),
|
|
8
|
-
name: zod.z.string().describe("Full name of the user"),
|
|
9
|
-
email: zod.z.string().describe("Email address of the user"),
|
|
8
|
+
name: zod.z.string().describe("Full name of the user").nullable(),
|
|
9
|
+
email: zod.z.string().describe("Email address of the user").nullable(),
|
|
10
10
|
last_name: zod.z.string().describe("Last name of the user").nullable().optional(),
|
|
11
11
|
first_name: zod.z.string().describe("First name of the user").nullable().optional()
|
|
12
12
|
}).describe("User details returned by the API.");
|
|
13
13
|
const RafflysGetCurrentUserOutput = zod.z.object({
|
|
14
14
|
data: RafflysGetCurrentUser_UserDataSchema.nullable(),
|
|
15
|
-
success: zod.z.boolean().describe("Whether the request was successful")
|
|
15
|
+
success: zod.z.boolean().describe("Whether the request was successful").nullable()
|
|
16
16
|
}).describe("Response model for the authenticated user details.");
|
|
17
17
|
const rafflysGetCurrentUser = require_action.action("RAFFLYS_GET_CURRENT_USER", {
|
|
18
18
|
slug: "rafflys-get-current-user",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-current-user.cjs","names":["z","action"],"sources":["../../src/actions/get-current-user.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RafflysGetCurrentUserInput
|
|
1
|
+
{"version":3,"file":"get-current-user.cjs","names":["z","action"],"sources":["../../src/actions/get-current-user.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RafflysGetCurrentUserInput = z.object({}).describe(\"Request model for retrieving the current authenticated user.\\nNo parameters are required.\");\nconst RafflysGetCurrentUser_UserDataSchema = z.object({\n id: z.number().int().describe(\"Unique identifier of the user\").nullable(),\n lang: z.string().describe(\"Language preference of the user\").nullable().optional(),\n name: z.string().describe(\"Full name of the user\").nullable(),\n email: z.string().describe(\"Email address of the user\").nullable(),\n last_name: z.string().describe(\"Last name of the user\").nullable().optional(),\n first_name: z.string().describe(\"First name of the user\").nullable().optional(),\n}).describe(\"User details returned by the API.\");\nexport const RafflysGetCurrentUserOutput = z.object({\n data: RafflysGetCurrentUser_UserDataSchema.nullable(),\n success: z.boolean().describe(\"Whether the request was successful\").nullable(),\n}).describe(\"Response model for the authenticated user details.\");\n\nexport const rafflysGetCurrentUser = action(\"RAFFLYS_GET_CURRENT_USER\", {\n slug: \"rafflys-get-current-user\",\n name: \"Get Current User\",\n description: \"Tool to retrieve details of the authenticated user. Use when confirming your current account information.\",\n input: RafflysGetCurrentUserInput,\n output: RafflysGetCurrentUserOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6BA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,2FAA2F;AAC3J,MAAM,uCAAuCA,IAAAA,EAAE,OAAO;CACpD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CACxE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;CAC5D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CACjE,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5E,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAChF,CAAC,CAAC,CAAC,SAAS,mCAAmC;AAC/C,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,MAAM,qCAAqC,SAAS;CACpD,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;AAC/E,CAAC,CAAC,CAAC,SAAS,oDAAoD;AAEhE,MAAa,wBAAwBC,eAAAA,OAAO,4BAA4B;CACtE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,19 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/get-current-user.d.ts
|
|
4
|
-
declare const RafflysGetCurrentUserInput: z.
|
|
5
|
-
declare const RafflysGetCurrentUserOutput: z.
|
|
6
|
-
|
|
4
|
+
declare const RafflysGetCurrentUserInput: z.ZodObject<{}, z.core.$strip>;
|
|
5
|
+
declare const RafflysGetCurrentUserOutput: z.ZodObject<{
|
|
6
|
+
data: z.ZodNullable<z.ZodObject<{
|
|
7
|
+
id: z.ZodNullable<z.ZodNumber>;
|
|
8
|
+
lang: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
9
|
+
name: z.ZodNullable<z.ZodString>;
|
|
10
|
+
email: z.ZodNullable<z.ZodString>;
|
|
11
|
+
last_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12
|
+
first_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13
|
+
}, z.core.$strip>>;
|
|
14
|
+
success: z.ZodNullable<z.ZodBoolean>;
|
|
15
|
+
}, z.core.$strip>;
|
|
16
|
+
declare const rafflysGetCurrentUser: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
17
|
//#endregion
|
|
8
18
|
export { rafflysGetCurrentUser };
|
|
9
19
|
//# sourceMappingURL=get-current-user.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-current-user.d.cts","names":[],"sources":["../../src/actions/get-current-user.ts"],"mappings":";;;cAIa,0BAAA,
|
|
1
|
+
{"version":3,"file":"get-current-user.d.cts","names":[],"sources":["../../src/actions/get-current-user.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAS1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;cAK3B,qBAAA,gCAAqB,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -1,9 +1,19 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/get-current-user.d.ts
|
|
4
|
-
declare const RafflysGetCurrentUserInput: z.
|
|
5
|
-
declare const RafflysGetCurrentUserOutput: z.
|
|
6
|
-
|
|
4
|
+
declare const RafflysGetCurrentUserInput: z.ZodObject<{}, z.core.$strip>;
|
|
5
|
+
declare const RafflysGetCurrentUserOutput: z.ZodObject<{
|
|
6
|
+
data: z.ZodNullable<z.ZodObject<{
|
|
7
|
+
id: z.ZodNullable<z.ZodNumber>;
|
|
8
|
+
lang: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
9
|
+
name: z.ZodNullable<z.ZodString>;
|
|
10
|
+
email: z.ZodNullable<z.ZodString>;
|
|
11
|
+
last_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12
|
+
first_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13
|
+
}, z.core.$strip>>;
|
|
14
|
+
success: z.ZodNullable<z.ZodBoolean>;
|
|
15
|
+
}, z.core.$strip>;
|
|
16
|
+
declare const rafflysGetCurrentUser: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
17
|
//#endregion
|
|
8
18
|
export { rafflysGetCurrentUser };
|
|
9
19
|
//# sourceMappingURL=get-current-user.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-current-user.d.mts","names":[],"sources":["../../src/actions/get-current-user.ts"],"mappings":";;;cAIa,0BAAA,
|
|
1
|
+
{"version":3,"file":"get-current-user.d.mts","names":[],"sources":["../../src/actions/get-current-user.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAS1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;cAK3B,qBAAA,gCAAqB,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -3,10 +3,10 @@ import { z } from "zod";
|
|
|
3
3
|
//#region src/actions/get-current-user.ts
|
|
4
4
|
const RafflysGetCurrentUserInput = z.object({}).describe("Request model for retrieving the current authenticated user.\nNo parameters are required.");
|
|
5
5
|
const RafflysGetCurrentUser_UserDataSchema = z.object({
|
|
6
|
-
id: z.number().int().describe("Unique identifier of the user"),
|
|
6
|
+
id: z.number().int().describe("Unique identifier of the user").nullable(),
|
|
7
7
|
lang: z.string().describe("Language preference of the user").nullable().optional(),
|
|
8
|
-
name: z.string().describe("Full name of the user"),
|
|
9
|
-
email: z.string().describe("Email address of the user"),
|
|
8
|
+
name: z.string().describe("Full name of the user").nullable(),
|
|
9
|
+
email: z.string().describe("Email address of the user").nullable(),
|
|
10
10
|
last_name: z.string().describe("Last name of the user").nullable().optional(),
|
|
11
11
|
first_name: z.string().describe("First name of the user").nullable().optional()
|
|
12
12
|
}).describe("User details returned by the API.");
|
|
@@ -17,7 +17,7 @@ const rafflysGetCurrentUser = action("RAFFLYS_GET_CURRENT_USER", {
|
|
|
17
17
|
input: RafflysGetCurrentUserInput,
|
|
18
18
|
output: z.object({
|
|
19
19
|
data: RafflysGetCurrentUser_UserDataSchema.nullable(),
|
|
20
|
-
success: z.boolean().describe("Whether the request was successful")
|
|
20
|
+
success: z.boolean().describe("Whether the request was successful").nullable()
|
|
21
21
|
}).describe("Response model for the authenticated user details.")
|
|
22
22
|
});
|
|
23
23
|
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-current-user.mjs","names":[],"sources":["../../src/actions/get-current-user.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RafflysGetCurrentUserInput
|
|
1
|
+
{"version":3,"file":"get-current-user.mjs","names":[],"sources":["../../src/actions/get-current-user.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RafflysGetCurrentUserInput = z.object({}).describe(\"Request model for retrieving the current authenticated user.\\nNo parameters are required.\");\nconst RafflysGetCurrentUser_UserDataSchema = z.object({\n id: z.number().int().describe(\"Unique identifier of the user\").nullable(),\n lang: z.string().describe(\"Language preference of the user\").nullable().optional(),\n name: z.string().describe(\"Full name of the user\").nullable(),\n email: z.string().describe(\"Email address of the user\").nullable(),\n last_name: z.string().describe(\"Last name of the user\").nullable().optional(),\n first_name: z.string().describe(\"First name of the user\").nullable().optional(),\n}).describe(\"User details returned by the API.\");\nexport const RafflysGetCurrentUserOutput = z.object({\n data: RafflysGetCurrentUser_UserDataSchema.nullable(),\n success: z.boolean().describe(\"Whether the request was successful\").nullable(),\n}).describe(\"Response model for the authenticated user details.\");\n\nexport const rafflysGetCurrentUser = action(\"RAFFLYS_GET_CURRENT_USER\", {\n slug: \"rafflys-get-current-user\",\n name: \"Get Current User\",\n description: \"Tool to retrieve details of the authenticated user. Use when confirming your current account information.\",\n input: RafflysGetCurrentUserInput,\n output: RafflysGetCurrentUserOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6B,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,2FAA2F;AAC3J,MAAM,uCAAuC,EAAE,OAAO;CACpD,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CACxE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;CAC5D,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CACjE,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5E,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAChF,CAAC,CAAC,CAAC,SAAS,mCAAmC;AAM/C,MAAa,wBAAwB,OAAO,4BAA4B;CACtE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAVyC,EAAE,OAAO;EAClD,MAAM,qCAAqC,SAAS;EACpD,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CAC/E,CAAC,CAAC,CAAC,SAAS,oDAOF;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-promotions.cjs","names":["z","action"],"sources":["../../src/actions/list-promotions.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RafflysListPromotionsInput
|
|
1
|
+
{"version":3,"file":"list-promotions.cjs","names":["z","action"],"sources":["../../src/actions/list-promotions.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RafflysListPromotionsInput = z.object({\n page: z.number().int().default(1).describe(\"Page number for pagination (default is 1)\").optional(),\n per_page: z.number().int().default(50).describe(\"Number of items per page (1-100, default is 50)\").optional(),\n});\nexport const RafflysListPromotionsOutput = z.object({\n promotions: z.array(z.record(z.string(), z.unknown())).describe(\"List of promotion objects returned by the API\"),\n});\n\nexport const rafflysListPromotions = action(\"RAFFLYS_LIST_PROMOTIONS\", {\n slug: \"rafflys-list-promotions\",\n name: \"List Promotions\",\n description: \"Tool to list all promotions. Use when you need to retrieve available promotions for display or reporting.\",\n input: RafflysListPromotionsInput,\n output: RafflysListPromotionsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CACjG,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;AAC9G,CAAC;AACD,MAAa,8BAA8BA,IAAAA,EAAE,OAAO,EAClD,YAAYA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,+CAA+C,EACjH,CAAC;AAED,MAAa,wBAAwBC,eAAAA,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,17 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/list-promotions.d.ts
|
|
4
|
-
declare const RafflysListPromotionsInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const RafflysListPromotionsInput: z.ZodObject<{
|
|
5
|
+
page: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
6
|
+
per_page: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
declare const RafflysListPromotionsOutput: z.ZodObject<{
|
|
9
|
+
promotions: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
10
|
+
}, z.core.$strip>;
|
|
11
|
+
declare const rafflysListPromotions: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
12
|
+
page?: number | undefined;
|
|
13
|
+
per_page?: number | undefined;
|
|
14
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
15
|
//#endregion
|
|
8
16
|
export { rafflysListPromotions };
|
|
9
17
|
//# sourceMappingURL=list-promotions.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-promotions.d.cts","names":[],"sources":["../../src/actions/list-promotions.ts"],"mappings":";;;cAIa,0BAAA,
|
|
1
|
+
{"version":3,"file":"list-promotions.d.cts","names":[],"sources":["../../src/actions/list-promotions.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;cAI1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;cAI3B,qBAAA,gCAAqB,wBAAA"}
|
|
@@ -1,9 +1,17 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/list-promotions.d.ts
|
|
4
|
-
declare const RafflysListPromotionsInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const RafflysListPromotionsInput: z.ZodObject<{
|
|
5
|
+
page: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
6
|
+
per_page: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
declare const RafflysListPromotionsOutput: z.ZodObject<{
|
|
9
|
+
promotions: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
10
|
+
}, z.core.$strip>;
|
|
11
|
+
declare const rafflysListPromotions: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
12
|
+
page?: number | undefined;
|
|
13
|
+
per_page?: number | undefined;
|
|
14
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
15
|
//#endregion
|
|
8
16
|
export { rafflysListPromotions };
|
|
9
17
|
//# sourceMappingURL=list-promotions.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-promotions.d.mts","names":[],"sources":["../../src/actions/list-promotions.ts"],"mappings":";;;cAIa,0BAAA,
|
|
1
|
+
{"version":3,"file":"list-promotions.d.mts","names":[],"sources":["../../src/actions/list-promotions.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;cAI1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;cAI3B,qBAAA,gCAAqB,wBAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-promotions.mjs","names":[],"sources":["../../src/actions/list-promotions.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RafflysListPromotionsInput
|
|
1
|
+
{"version":3,"file":"list-promotions.mjs","names":[],"sources":["../../src/actions/list-promotions.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RafflysListPromotionsInput = z.object({\n page: z.number().int().default(1).describe(\"Page number for pagination (default is 1)\").optional(),\n per_page: z.number().int().default(50).describe(\"Number of items per page (1-100, default is 50)\").optional(),\n});\nexport const RafflysListPromotionsOutput = z.object({\n promotions: z.array(z.record(z.string(), z.unknown())).describe(\"List of promotion objects returned by the API\"),\n});\n\nexport const rafflysListPromotions = action(\"RAFFLYS_LIST_PROMOTIONS\", {\n slug: \"rafflys-list-promotions\",\n name: \"List Promotions\",\n description: \"Tool to list all promotions. Use when you need to retrieve available promotions for display or reporting.\",\n input: RafflysListPromotionsInput,\n output: RafflysListPromotionsOutput,\n});\n"],"mappings":";;AAYA,MAAa,wBAAwB,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAZwC,EAAE,OAAO;EACjD,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;EACjG,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;CAC9G,CASS;CACP,QATyC,EAAE,OAAO,EAClD,YAAY,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,+CAA+C,EACjH,CAOU;AACV,CAAC"}
|
package/dist/catalog.cjs
CHANGED
|
@@ -7,7 +7,13 @@ const rafflysCatalog = {
|
|
|
7
7
|
"category": "Social Media Marketing",
|
|
8
8
|
"logo": "https://logos.composio.dev/api/rafflys",
|
|
9
9
|
"authKind": "keystroke",
|
|
10
|
-
"oauthScopes": []
|
|
10
|
+
"oauthScopes": [],
|
|
11
|
+
"credentialFields": { "apiKey": {
|
|
12
|
+
"label": "API Key",
|
|
13
|
+
"secret": true,
|
|
14
|
+
"description": "You can find your API key in your project settings."
|
|
15
|
+
} },
|
|
16
|
+
"credentialScheme": "API_KEY"
|
|
11
17
|
};
|
|
12
18
|
//#endregion
|
|
13
19
|
exports.rafflysCatalog = rafflysCatalog;
|
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 rafflysCatalog = {\n \"slug\": \"rafflys\",\n \"name\": \"Rafflys\",\n \"description\": \"Rafflys hosts giveaways and contests, enabling brands to engage audiences, grow social reach, and reward participants with automated selection processes\",\n \"category\": \"Social Media Marketing\",\n \"logo\": \"https://logos.composio.dev/api/rafflys\",\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 rafflysCatalog = {\n \"slug\": \"rafflys\",\n \"name\": \"Rafflys\",\n \"description\": \"Rafflys hosts giveaways and contests, enabling brands to engage audiences, grow social reach, and reward participants with automated selection processes\",\n \"category\": \"Social Media Marketing\",\n \"logo\": \"https://logos.composio.dev/api/rafflys\",\n \"authKind\": \"keystroke\",\n \"oauthScopes\": [],\n \"credentialFields\": {\n \"apiKey\": {\n \"label\": \"API Key\",\n \"secret\": true,\n \"description\": \"You can find your API key in your project settings.\"\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,UAAU;EACR,SAAS;EACT,UAAU;EACV,eAAe;CACjB,EACF;CACA,oBAAoB;AACtB"}
|
package/dist/catalog.d.cts
CHANGED
|
@@ -8,6 +8,14 @@ declare const rafflysCatalog: {
|
|
|
8
8
|
readonly logo: "https://logos.composio.dev/api/rafflys";
|
|
9
9
|
readonly authKind: "keystroke";
|
|
10
10
|
readonly oauthScopes: readonly [];
|
|
11
|
+
readonly credentialFields: {
|
|
12
|
+
readonly apiKey: {
|
|
13
|
+
readonly label: "API Key";
|
|
14
|
+
readonly secret: true;
|
|
15
|
+
readonly description: "You can find your API key in your project settings.";
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
readonly credentialScheme: "API_KEY";
|
|
11
19
|
};
|
|
12
20
|
//#endregion
|
|
13
21
|
export { rafflysCatalog };
|
package/dist/catalog.d.mts
CHANGED
|
@@ -8,6 +8,14 @@ declare const rafflysCatalog: {
|
|
|
8
8
|
readonly logo: "https://logos.composio.dev/api/rafflys";
|
|
9
9
|
readonly authKind: "keystroke";
|
|
10
10
|
readonly oauthScopes: readonly [];
|
|
11
|
+
readonly credentialFields: {
|
|
12
|
+
readonly apiKey: {
|
|
13
|
+
readonly label: "API Key";
|
|
14
|
+
readonly secret: true;
|
|
15
|
+
readonly description: "You can find your API key in your project settings.";
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
readonly credentialScheme: "API_KEY";
|
|
11
19
|
};
|
|
12
20
|
//#endregion
|
|
13
21
|
export { rafflysCatalog };
|
package/dist/catalog.mjs
CHANGED
|
@@ -7,7 +7,13 @@ const rafflysCatalog = {
|
|
|
7
7
|
"category": "Social Media Marketing",
|
|
8
8
|
"logo": "https://logos.composio.dev/api/rafflys",
|
|
9
9
|
"authKind": "keystroke",
|
|
10
|
-
"oauthScopes": []
|
|
10
|
+
"oauthScopes": [],
|
|
11
|
+
"credentialFields": { "apiKey": {
|
|
12
|
+
"label": "API Key",
|
|
13
|
+
"secret": true,
|
|
14
|
+
"description": "You can find your API key in your project settings."
|
|
15
|
+
} },
|
|
16
|
+
"credentialScheme": "API_KEY"
|
|
11
17
|
};
|
|
12
18
|
//#endregion
|
|
13
19
|
export { rafflysCatalog };
|
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 rafflysCatalog = {\n \"slug\": \"rafflys\",\n \"name\": \"Rafflys\",\n \"description\": \"Rafflys hosts giveaways and contests, enabling brands to engage audiences, grow social reach, and reward participants with automated selection processes\",\n \"category\": \"Social Media Marketing\",\n \"logo\": \"https://logos.composio.dev/api/rafflys\",\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 rafflysCatalog = {\n \"slug\": \"rafflys\",\n \"name\": \"Rafflys\",\n \"description\": \"Rafflys hosts giveaways and contests, enabling brands to engage audiences, grow social reach, and reward participants with automated selection processes\",\n \"category\": \"Social Media Marketing\",\n \"logo\": \"https://logos.composio.dev/api/rafflys\",\n \"authKind\": \"keystroke\",\n \"oauthScopes\": [],\n \"credentialFields\": {\n \"apiKey\": {\n \"label\": \"API Key\",\n \"secret\": true,\n \"description\": \"You can find your API key in your project settings.\"\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,UAAU;EACR,SAAS;EACT,UAAU;EACV,eAAe;CACjB,EACF;CACA,oBAAoB;AACtB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@keystrokehq/rafflys",
|
|
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": {
|