@keystrokehq/rafflys 0.1.4 → 0.1.6

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.
@@ -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<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"}
1
+ {"version":3,"file":"action.cjs","names":["rafflys","executeRafflysTool"],"sources":["../src/action.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { 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, TOutput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: TOutput;\n },\n): AppAction<TInput, TOutput, typeof rafflys.credential> {\n return rafflys.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output,\n async run(input) {\n return def.output.parse(await executeRafflysTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAOA,SAAgB,OACd,MACA,KAOuD;CACvD,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"}
@@ -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<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"}
1
+ {"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { 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, TOutput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: TOutput;\n },\n): AppAction<TInput, TOutput, typeof rafflys.credential> {\n return rafflys.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output,\n async run(input) {\n return def.output.parse(await executeRafflysTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAOA,SAAgB,OACd,MACA,KAOuD;CACvD,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"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/get-current-user.ts
@@ -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 = 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}).passthrough().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}).passthrough().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,YAAY,CAAC,CAAC,SAAS,mCAAmC;AAC7D,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,YAAY,CAAC,CAAC,SAAS,oDAAoD;AAE9E,MAAa,wBAAwBC,eAAAA,OAAO,4BAA4B;CACtE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"get-current-user.cjs","names":["z","action"],"sources":["../../src/actions/get-current-user.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { rafflys } from \"../app\";\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}).passthrough().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}).passthrough().describe(\"Response model for the authenticated user details.\");\n\nexport const rafflysGetCurrentUser: AppAction<\n typeof RafflysGetCurrentUserInput,\n typeof RafflysGetCurrentUserOutput,\n typeof rafflys.credential\n> = 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":";;;;AAMA,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,YAAY,CAAC,CAAC,SAAS,mCAAmC;AAC7D,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,YAAY,CAAC,CAAC,SAAS,oDAAoD;AAE9E,MAAa,wBAITC,eAAAA,OAAO,4BAA4B;CACrC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { rafflys } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/get-current-user.d.ts
@@ -13,7 +15,7 @@ declare const RafflysGetCurrentUserOutput: z.ZodObject<{
13
15
  }, z.core.$loose>>;
14
16
  success: z.ZodNullable<z.ZodBoolean>;
15
17
  }, z.core.$loose>;
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]>;
18
+ declare const rafflysGetCurrentUser: AppAction<typeof RafflysGetCurrentUserInput, typeof RafflysGetCurrentUserOutput, typeof rafflys.credential>;
17
19
  //#endregion
18
20
  export { rafflysGetCurrentUser };
19
21
  //# 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,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
+ {"version":3,"file":"get-current-user.d.cts","names":[],"sources":["../../src/actions/get-current-user.ts"],"mappings":";;;;;cAMa,0BAAA,EAA0B,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAS1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;cAK3B,qBAAA,EAAuB,SAAA,QAC3B,0BAAA,SACA,2BAAA,SACA,OAAA,CAAQ,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { rafflys } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/get-current-user.d.ts
@@ -13,7 +15,7 @@ declare const RafflysGetCurrentUserOutput: z.ZodObject<{
13
15
  }, z.core.$loose>>;
14
16
  success: z.ZodNullable<z.ZodBoolean>;
15
17
  }, z.core.$loose>;
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]>;
18
+ declare const rafflysGetCurrentUser: AppAction<typeof RafflysGetCurrentUserInput, typeof RafflysGetCurrentUserOutput, typeof rafflys.credential>;
17
19
  //#endregion
18
20
  export { rafflysGetCurrentUser };
19
21
  //# 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,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
+ {"version":3,"file":"get-current-user.d.mts","names":[],"sources":["../../src/actions/get-current-user.ts"],"mappings":";;;;;cAMa,0BAAA,EAA0B,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAS1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;cAK3B,qBAAA,EAAuB,SAAA,QAC3B,0BAAA,SACA,2BAAA,SACA,OAAA,CAAQ,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  //#region src/actions/get-current-user.ts
@@ -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 = 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}).passthrough().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}).passthrough().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,YAAY,CAAC,CAAC,SAAS,mCAAmC;AAM7D,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,YAAY,CAAC,CAAC,SAAS,oDAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"get-current-user.mjs","names":[],"sources":["../../src/actions/get-current-user.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { rafflys } from \"../app\";\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}).passthrough().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}).passthrough().describe(\"Response model for the authenticated user details.\");\n\nexport const rafflysGetCurrentUser: AppAction<\n typeof RafflysGetCurrentUserInput,\n typeof RafflysGetCurrentUserOutput,\n typeof rafflys.credential\n> = 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":";;;;AAMA,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,YAAY,CAAC,CAAC,SAAS,mCAAmC;AAM7D,MAAa,wBAIT,OAAO,4BAA4B;CACrC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAdyC,EAAE,OAAO;EAClD,MAAM,qCAAqC,SAAS;EACpD,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CAC/E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oDAWhB;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/list-promotions.ts
@@ -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 = 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}).passthrough();\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,CAAC,CAAC,YAAY;AAEf,MAAa,wBAAwBC,eAAAA,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"list-promotions.cjs","names":["z","action"],"sources":["../../src/actions/list-promotions.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { rafflys } from \"../app\";\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}).passthrough();\n\nexport const rafflysListPromotions: AppAction<\n typeof RafflysListPromotionsInput,\n typeof RafflysListPromotionsOutput,\n typeof rafflys.credential\n> = 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":";;;;AAMA,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,CAAC,CAAC,YAAY;AAEf,MAAa,wBAITC,eAAAA,OAAO,2BAA2B;CACpC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { rafflys } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/list-promotions.d.ts
@@ -8,10 +10,7 @@ declare const RafflysListPromotionsInput: z.ZodObject<{
8
10
  declare const RafflysListPromotionsOutput: z.ZodObject<{
9
11
  promotions: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
10
12
  }, z.core.$loose>;
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]>;
13
+ declare const rafflysListPromotions: AppAction<typeof RafflysListPromotionsInput, typeof RafflysListPromotionsOutput, typeof rafflys.credential>;
15
14
  //#endregion
16
15
  export { rafflysListPromotions };
17
16
  //# 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,EAA0B,CAAA,CAAA,SAAA;;;;cAI1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;cAI3B,qBAAA,gCAAqB,wBAAA"}
1
+ {"version":3,"file":"list-promotions.d.cts","names":[],"sources":["../../src/actions/list-promotions.ts"],"mappings":";;;;;cAMa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;cAI1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;cAI3B,qBAAA,EAAuB,SAAA,QAC3B,0BAAA,SACA,2BAAA,SACA,OAAA,CAAQ,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { rafflys } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/list-promotions.d.ts
@@ -8,10 +10,7 @@ declare const RafflysListPromotionsInput: z.ZodObject<{
8
10
  declare const RafflysListPromotionsOutput: z.ZodObject<{
9
11
  promotions: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
10
12
  }, z.core.$loose>;
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]>;
13
+ declare const rafflysListPromotions: AppAction<typeof RafflysListPromotionsInput, typeof RafflysListPromotionsOutput, typeof rafflys.credential>;
15
14
  //#endregion
16
15
  export { rafflysListPromotions };
17
16
  //# 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,EAA0B,CAAA,CAAA,SAAA;;;;cAI1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;cAI3B,qBAAA,gCAAqB,wBAAA"}
1
+ {"version":3,"file":"list-promotions.d.mts","names":[],"sources":["../../src/actions/list-promotions.ts"],"mappings":";;;;;cAMa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;cAI1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;cAI3B,qBAAA,EAAuB,SAAA,QAC3B,0BAAA,SACA,2BAAA,SACA,OAAA,CAAQ,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  const rafflysListPromotions = action("RAFFLYS_LIST_PROMOTIONS", {
@@ -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 = 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}).passthrough();\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,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
1
+ {"version":3,"file":"list-promotions.mjs","names":[],"sources":["../../src/actions/list-promotions.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { rafflys } from \"../app\";\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}).passthrough();\n\nexport const rafflysListPromotions: AppAction<\n typeof RafflysListPromotionsInput,\n typeof RafflysListPromotionsOutput,\n typeof rafflys.credential\n> = 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":";;;AAcA,MAAa,wBAIT,OAAO,2BAA2B;CACpC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAhBwC,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,CAaS;CACP,QAbyC,EAAE,OAAO,EAClD,YAAY,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,+CAA+C,EACjH,CAAC,CAAC,CAAC,YAWO;AACV,CAAC"}
package/dist/app.cjs CHANGED
@@ -1,7 +1,10 @@
1
+ let _keystrokehq_keystroke_app = require("@keystrokehq/keystroke/app");
1
2
  //#region src/app.ts
2
- const rafflys = (0, require("@keystrokehq/keystroke/app").defineApp)({
3
+ const credential = { generic_api_key: require("zod").z.string() };
4
+ const rafflys = (0, _keystrokehq_keystroke_app.defineApp)({
3
5
  slug: "rafflys",
4
- auth: "keystroke"
6
+ auth: "keystroke",
7
+ credential
5
8
  });
6
9
  //#endregion
7
10
  exports.rafflys = rafflys;
package/dist/app.cjs.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"app.cjs","names":[],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp } from \"@keystrokehq/keystroke/app\";\n\nexport const rafflys = defineApp({\n slug: \"rafflys\",\n auth: \"keystroke\",\n});\n"],"mappings":";AAEA,MAAa,WAAA,uCAAA,CAAA,CAAA,UAAA,CAAoB;CAC/B,MAAM;CACN,MAAM;AACR,CAAC"}
1
+ {"version":3,"file":"app.cjs","names":["z"],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp, type KeystrokeApp } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nconst credential = {\n generic_api_key: z.string(),\n};\n\nexport const rafflys: KeystrokeApp<\"rafflys\", typeof credential> = defineApp({\n slug: \"rafflys\",\n auth: \"keystroke\",\n credential,\n});\n"],"mappings":";;AAGA,MAAM,aAAa,EACjB,8BAAiBA,CAAAA,CAAAA,EAAE,OAAO,EAC5B;AAEA,MAAa,WAAA,GAAA,2BAAA,UAAA,CAAgE;CAC3E,MAAM;CACN,MAAM;CACN;AACF,CAAC"}
package/dist/app.d.cts CHANGED
@@ -1,5 +1,11 @@
1
+ import { KeystrokeApp } from "@keystrokehq/keystroke/app";
2
+ import { z } from "zod";
3
+
1
4
  //#region src/app.d.ts
2
- declare const rafflys: import("@keystrokehq/app").App<import("@keystrokehq/shared").Credential>;
5
+ declare const credential: {
6
+ generic_api_key: z.ZodString;
7
+ };
8
+ declare const rafflys: KeystrokeApp<"rafflys", typeof credential>;
3
9
  //#endregion
4
10
  export { rafflys };
5
11
  //# sourceMappingURL=app.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"app.d.cts","names":[],"sources":["../src/app.ts"],"mappings":";cAEa,OAAA,6BAAO,GAAA,+BAAA,UAAA"}
1
+ {"version":3,"file":"app.d.cts","names":[],"sources":["../src/app.ts"],"mappings":";;;;cAGM,UAAA;mBAEL,CAAA,CAAA,SAAA;AAAA;AAAA,cAEY,OAAA,EAAS,YAAY,mBAAmB,UAAA"}
package/dist/app.d.mts CHANGED
@@ -1,5 +1,11 @@
1
+ import { KeystrokeApp } from "@keystrokehq/keystroke/app";
2
+ import { z } from "zod";
3
+
1
4
  //#region src/app.d.ts
2
- declare const rafflys: import("@keystrokehq/app").App<import("@keystrokehq/shared").Credential>;
5
+ declare const credential: {
6
+ generic_api_key: z.ZodString;
7
+ };
8
+ declare const rafflys: KeystrokeApp<"rafflys", typeof credential>;
3
9
  //#endregion
4
10
  export { rafflys };
5
11
  //# sourceMappingURL=app.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"app.d.mts","names":[],"sources":["../src/app.ts"],"mappings":";cAEa,OAAA,6BAAO,GAAA,+BAAA,UAAA"}
1
+ {"version":3,"file":"app.d.mts","names":[],"sources":["../src/app.ts"],"mappings":";;;;cAGM,UAAA;mBAEL,CAAA,CAAA,SAAA;AAAA;AAAA,cAEY,OAAA,EAAS,YAAY,mBAAmB,UAAA"}
package/dist/app.mjs CHANGED
@@ -1,8 +1,9 @@
1
1
  import { defineApp } from "@keystrokehq/keystroke/app";
2
- //#region src/app.ts
2
+ import { z } from "zod";
3
3
  const rafflys = defineApp({
4
4
  slug: "rafflys",
5
- auth: "keystroke"
5
+ auth: "keystroke",
6
+ credential: { generic_api_key: z.string() }
6
7
  });
7
8
  //#endregion
8
9
  export { rafflys };
package/dist/app.mjs.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"app.mjs","names":[],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp } from \"@keystrokehq/keystroke/app\";\n\nexport const rafflys = defineApp({\n slug: \"rafflys\",\n auth: \"keystroke\",\n});\n"],"mappings":";;AAEA,MAAa,UAAU,UAAU;CAC/B,MAAM;CACN,MAAM;AACR,CAAC"}
1
+ {"version":3,"file":"app.mjs","names":[],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp, type KeystrokeApp } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nconst credential = {\n generic_api_key: z.string(),\n};\n\nexport const rafflys: KeystrokeApp<\"rafflys\", typeof credential> = defineApp({\n slug: \"rafflys\",\n auth: \"keystroke\",\n credential,\n});\n"],"mappings":";;AAOA,MAAa,UAAsD,UAAU;CAC3E,MAAM;CACN,MAAM;CACN,cANA,iBAAiB,EAAE,OAAO,EAM1B;AACF,CAAC"}
package/dist/index.d.cts CHANGED
@@ -1,5 +1,5 @@
1
+ import { rafflys } from "./app.cjs";
1
2
  import { rafflysGetCurrentUser } from "./actions/get-current-user.cjs";
2
3
  import { rafflysListPromotions } from "./actions/list-promotions.cjs";
3
- import { rafflys } from "./app.cjs";
4
4
  import { rafflysCatalog } from "./catalog.cjs";
5
5
  export { rafflys, rafflysCatalog, rafflysGetCurrentUser, rafflysListPromotions };
package/dist/index.d.mts CHANGED
@@ -1,5 +1,5 @@
1
+ import { rafflys } from "./app.mjs";
1
2
  import { rafflysGetCurrentUser } from "./actions/get-current-user.mjs";
2
3
  import { rafflysListPromotions } from "./actions/list-promotions.mjs";
3
- import { rafflys } from "./app.mjs";
4
4
  import { rafflysCatalog } from "./catalog.mjs";
5
5
  export { rafflys, rafflysCatalog, rafflysGetCurrentUser, rafflysListPromotions };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@keystrokehq/rafflys",
3
- "version": "0.1.4",
3
+ "version": "0.1.6",
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": ">=0.1.4",
34
+ "@keystrokehq/keystroke": ">=0.1.104",
35
35
  "zod": "^4.4.3"
36
36
  },
37
37
  "devDependencies": {