@keystrokehq/more_trees 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.
Files changed (45) hide show
  1. package/dist/action.cjs.map +1 -1
  2. package/dist/action.mjs.map +1 -1
  3. package/dist/actions/create-user.cjs +1 -0
  4. package/dist/actions/create-user.cjs.map +1 -1
  5. package/dist/actions/create-user.d.cts +3 -10
  6. package/dist/actions/create-user.d.cts.map +1 -1
  7. package/dist/actions/create-user.d.mts +3 -10
  8. package/dist/actions/create-user.d.mts.map +1 -1
  9. package/dist/actions/create-user.mjs +1 -0
  10. package/dist/actions/create-user.mjs.map +1 -1
  11. package/dist/actions/get-marketing-preferences.cjs +1 -0
  12. package/dist/actions/get-marketing-preferences.cjs.map +1 -1
  13. package/dist/actions/get-marketing-preferences.d.cts +3 -1
  14. package/dist/actions/get-marketing-preferences.d.cts.map +1 -1
  15. package/dist/actions/get-marketing-preferences.d.mts +3 -1
  16. package/dist/actions/get-marketing-preferences.d.mts.map +1 -1
  17. package/dist/actions/get-marketing-preferences.mjs +1 -0
  18. package/dist/actions/get-marketing-preferences.mjs.map +1 -1
  19. package/dist/actions/get-total-carbon-offset.cjs +1 -0
  20. package/dist/actions/get-total-carbon-offset.cjs.map +1 -1
  21. package/dist/actions/get-total-carbon-offset.d.cts +3 -3
  22. package/dist/actions/get-total-carbon-offset.d.cts.map +1 -1
  23. package/dist/actions/get-total-carbon-offset.d.mts +3 -3
  24. package/dist/actions/get-total-carbon-offset.d.mts.map +1 -1
  25. package/dist/actions/get-total-carbon-offset.mjs +1 -0
  26. package/dist/actions/get-total-carbon-offset.mjs.map +1 -1
  27. package/dist/actions/list-projects.cjs +1 -0
  28. package/dist/actions/list-projects.cjs.map +1 -1
  29. package/dist/actions/list-projects.d.cts +3 -1
  30. package/dist/actions/list-projects.d.cts.map +1 -1
  31. package/dist/actions/list-projects.d.mts +3 -1
  32. package/dist/actions/list-projects.d.mts.map +1 -1
  33. package/dist/actions/list-projects.mjs +1 -0
  34. package/dist/actions/list-projects.mjs.map +1 -1
  35. package/dist/app.cjs +9 -2
  36. package/dist/app.cjs.map +1 -1
  37. package/dist/app.d.cts +8 -1
  38. package/dist/app.d.cts.map +1 -1
  39. package/dist/app.d.mts +8 -1
  40. package/dist/app.d.mts.map +1 -1
  41. package/dist/app.mjs +6 -2
  42. package/dist/app.mjs.map +1 -1
  43. package/dist/index.d.cts +1 -1
  44. package/dist/index.d.mts +1 -1
  45. package/package.json +2 -2
@@ -1 +1 @@
1
- {"version":3,"file":"action.cjs","names":["moreTrees","executeMoreTreesTool"],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { moreTrees } from \"./app\";\nimport { executeMoreTreesTool } 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 moreTrees.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 executeMoreTreesTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAOA,YAAAA,UAAU,OAAO;EACtB,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,qBAAqB,MAAM,KAAgC,CAAC;EAC5F;CACF,CAAC;AACH"}
1
+ {"version":3,"file":"action.cjs","names":["moreTrees","executeMoreTreesTool"],"sources":["../src/action.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { moreTrees } from \"./app\";\nimport { executeMoreTreesTool } 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 moreTrees.credential> {\n return moreTrees.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 executeMoreTreesTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAOA,SAAgB,OACd,MACA,KAOyD;CACzD,OAAOA,YAAAA,UAAU,OAAO;EACtB,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,qBAAqB,MAAM,KAAgC,CAAC;EAC5F;CACF,CAAC;AACH"}
@@ -1 +1 @@
1
- {"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { moreTrees } from \"./app\";\nimport { executeMoreTreesTool } 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 moreTrees.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 executeMoreTreesTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAO,UAAU,OAAO;EACtB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAM,qBAAqB,MAAM,KAAgC,CAAC;EAC5F;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 { moreTrees } from \"./app\";\nimport { executeMoreTreesTool } 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 moreTrees.credential> {\n return moreTrees.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 executeMoreTreesTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAOA,SAAgB,OACd,MACA,KAOyD;CACzD,OAAO,UAAU,OAAO;EACtB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAM,qBAAqB,MAAM,KAAgC,CAAC;EAC5F;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/create-user.ts
@@ -1 +1 @@
1
- {"version":3,"file":"create-user.cjs","names":["z","action"],"sources":["../../src/actions/create-user.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoreTreesCreateUserInput = z.object({\n status: z.enum([\"ACTIVE\", \"INACTIVE\"]).describe(\"Status of the user account.\").optional(),\n is_agreed: z.boolean().describe(\"Whether the user has agreed to the terms and conditions. Must be true to create a user.\"),\n last_name: z.string().describe(\"Last name of the user.\"),\n first_name: z.string().describe(\"First name of the user.\"),\n phone_number: z.string().describe(\"Phone number of the user. Should include country code if applicable.\").optional(),\n email_address: z.string().describe(\"Email address of the user. Must be a valid email format and unique within the system.\"),\n referral_code: z.string().describe(\"Referral code if the user was referred by another user or campaign.\").optional(),\n marketing_preference_id: z.number().int().describe(\"Marketing preference identifier for the user's communication preferences.\").optional(),\n});\nexport const MoreTreesCreateUserOutput = z.object({\n id: z.number().int().describe(\"Unique identifier assigned to the newly created user.\").nullable().optional(),\n status: z.string().describe(\"Current status of the user account (e.g., ACTIVE, INACTIVE).\").nullable().optional(),\n is_agreed: z.boolean().describe(\"Whether the user has agreed to the terms and conditions.\").nullable().optional(),\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 phone_number: z.string().describe(\"Phone number of the user.\").nullable().optional(),\n email_address: z.string().describe(\"Email address of the user.\").nullable().optional(),\n referral_code: z.string().describe(\"Referral code associated with the user.\").nullable().optional(),\n marketing_preference_id: z.number().int().describe(\"Marketing preference identifier for the user.\").nullable().optional(),\n}).passthrough();\n\nexport const moreTreesCreateUser = action(\"MORE_TREES_CREATE_USER\", {\n slug: \"more_trees-create-user\",\n name: \"Create User\",\n description: \"Creates a new user that can be assigned to a plantation account. Use this when you need to onboard a new user to the More Trees platform. The user must agree to terms and conditions (is_agreed=true). Returns the created user details including a unique user ID.\",\n input: MoreTreesCreateUserInput,\n output: MoreTreesCreateUserOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,QAAQA,IAAAA,EAAE,KAAK,CAAC,UAAU,UAAU,CAAC,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CACxF,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,yFAAyF;CACzH,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB;CACvD,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB;CACzD,cAAcA,IAAA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,CAAC,SAAS;AAC1H,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,sBAAsBC,eAAAA,OAAO,0BAA0B;CAClE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"create-user.cjs","names":["z","action"],"sources":["../../src/actions/create-user.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { moreTrees } from \"../app\";\n\nexport const MoreTreesCreateUserInput = z.object({\n status: z.enum([\"ACTIVE\", \"INACTIVE\"]).describe(\"Status of the user account.\").optional(),\n is_agreed: z.boolean().describe(\"Whether the user has agreed to the terms and conditions. Must be true to create a user.\"),\n last_name: z.string().describe(\"Last name of the user.\"),\n first_name: z.string().describe(\"First name of the user.\"),\n phone_number: z.string().describe(\"Phone number of the user. Should include country code if applicable.\").optional(),\n email_address: z.string().describe(\"Email address of the user. Must be a valid email format and unique within the system.\"),\n referral_code: z.string().describe(\"Referral code if the user was referred by another user or campaign.\").optional(),\n marketing_preference_id: z.number().int().describe(\"Marketing preference identifier for the user's communication preferences.\").optional(),\n});\nexport const MoreTreesCreateUserOutput = z.object({\n id: z.number().int().describe(\"Unique identifier assigned to the newly created user.\").nullable().optional(),\n status: z.string().describe(\"Current status of the user account (e.g., ACTIVE, INACTIVE).\").nullable().optional(),\n is_agreed: z.boolean().describe(\"Whether the user has agreed to the terms and conditions.\").nullable().optional(),\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 phone_number: z.string().describe(\"Phone number of the user.\").nullable().optional(),\n email_address: z.string().describe(\"Email address of the user.\").nullable().optional(),\n referral_code: z.string().describe(\"Referral code associated with the user.\").nullable().optional(),\n marketing_preference_id: z.number().int().describe(\"Marketing preference identifier for the user.\").nullable().optional(),\n}).passthrough();\n\nexport const moreTreesCreateUser: AppAction<\n typeof MoreTreesCreateUserInput,\n typeof MoreTreesCreateUserOutput,\n typeof moreTrees.credential\n> = action(\"MORE_TREES_CREATE_USER\", {\n slug: \"more_trees-create-user\",\n name: \"Create User\",\n description: \"Creates a new user that can be assigned to a plantation account. Use this when you need to onboard a new user to the More Trees platform. The user must agree to terms and conditions (is_agreed=true). Returns the created user details including a unique user ID.\",\n input: MoreTreesCreateUserInput,\n output: MoreTreesCreateUserOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,QAAQA,IAAAA,EAAE,KAAK,CAAC,UAAU,UAAU,CAAC,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CACxF,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,yFAAyF;CACzH,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB;CACvD,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB;CACzD,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS;CACnH,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uFAAuF;CAC1H,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS;CACnH,yBAAyBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2EAA2E,CAAC,CAAC,SAAS;AAC3I,CAAC;AACD,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3G,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChH,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChH,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7E,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/E,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnF,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrF,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClG,yBAAyBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC1H,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,sBAITC,eAAAA,OAAO,0BAA0B;CACnC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { moreTrees } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/create-user.d.ts
@@ -25,16 +27,7 @@ declare const MoreTreesCreateUserOutput: z.ZodObject<{
25
27
  referral_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
26
28
  marketing_preference_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
27
29
  }, z.core.$loose>;
28
- declare const moreTreesCreateUser: import("@keystrokehq/action").WorkflowActionDefinition<{
29
- is_agreed: boolean;
30
- last_name: string;
31
- first_name: string;
32
- email_address: string;
33
- status?: "ACTIVE" | "INACTIVE" | undefined;
34
- phone_number?: string | undefined;
35
- referral_code?: string | undefined;
36
- marketing_preference_id?: number | undefined;
37
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
30
+ declare const moreTreesCreateUser: AppAction<typeof MoreTreesCreateUserInput, typeof MoreTreesCreateUserOutput, typeof moreTrees.credential>;
38
31
  //#endregion
39
32
  export { moreTreesCreateUser };
40
33
  //# sourceMappingURL=create-user.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-user.d.cts","names":[],"sources":["../../src/actions/create-user.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAUxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;cAYzB,mBAAA,gCAAmB,wBAAA"}
1
+ {"version":3,"file":"create-user.d.cts","names":[],"sources":["../../src/actions/create-user.ts"],"mappings":";;;;;cAMa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAUxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;cAYzB,mBAAA,EAAqB,SAAA,QACzB,wBAAA,SACA,yBAAA,SACA,SAAA,CAAU,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { moreTrees } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/create-user.d.ts
@@ -25,16 +27,7 @@ declare const MoreTreesCreateUserOutput: z.ZodObject<{
25
27
  referral_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
26
28
  marketing_preference_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
27
29
  }, z.core.$loose>;
28
- declare const moreTreesCreateUser: import("@keystrokehq/action").WorkflowActionDefinition<{
29
- is_agreed: boolean;
30
- last_name: string;
31
- first_name: string;
32
- email_address: string;
33
- status?: "ACTIVE" | "INACTIVE" | undefined;
34
- phone_number?: string | undefined;
35
- referral_code?: string | undefined;
36
- marketing_preference_id?: number | undefined;
37
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
30
+ declare const moreTreesCreateUser: AppAction<typeof MoreTreesCreateUserInput, typeof MoreTreesCreateUserOutput, typeof moreTrees.credential>;
38
31
  //#endregion
39
32
  export { moreTreesCreateUser };
40
33
  //# sourceMappingURL=create-user.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-user.d.mts","names":[],"sources":["../../src/actions/create-user.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAUxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;cAYzB,mBAAA,gCAAmB,wBAAA"}
1
+ {"version":3,"file":"create-user.d.mts","names":[],"sources":["../../src/actions/create-user.ts"],"mappings":";;;;;cAMa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAUxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;cAYzB,mBAAA,EAAqB,SAAA,QACzB,wBAAA,SACA,yBAAA,SACA,SAAA,CAAU,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 moreTreesCreateUser = action("MORE_TREES_CREATE_USER", {
@@ -1 +1 @@
1
- {"version":3,"file":"create-user.mjs","names":[],"sources":["../../src/actions/create-user.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoreTreesCreateUserInput = z.object({\n status: z.enum([\"ACTIVE\", \"INACTIVE\"]).describe(\"Status of the user account.\").optional(),\n is_agreed: z.boolean().describe(\"Whether the user has agreed to the terms and conditions. Must be true to create a user.\"),\n last_name: z.string().describe(\"Last name of the user.\"),\n first_name: z.string().describe(\"First name of the user.\"),\n phone_number: z.string().describe(\"Phone number of the user. Should include country code if applicable.\").optional(),\n email_address: z.string().describe(\"Email address of the user. Must be a valid email format and unique within the system.\"),\n referral_code: z.string().describe(\"Referral code if the user was referred by another user or campaign.\").optional(),\n marketing_preference_id: z.number().int().describe(\"Marketing preference identifier for the user's communication preferences.\").optional(),\n});\nexport const MoreTreesCreateUserOutput = z.object({\n id: z.number().int().describe(\"Unique identifier assigned to the newly created user.\").nullable().optional(),\n status: z.string().describe(\"Current status of the user account (e.g., ACTIVE, INACTIVE).\").nullable().optional(),\n is_agreed: z.boolean().describe(\"Whether the user has agreed to the terms and conditions.\").nullable().optional(),\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 phone_number: z.string().describe(\"Phone number of the user.\").nullable().optional(),\n email_address: z.string().describe(\"Email address of the user.\").nullable().optional(),\n referral_code: z.string().describe(\"Referral code associated with the user.\").nullable().optional(),\n marketing_preference_id: z.number().int().describe(\"Marketing preference identifier for the user.\").nullable().optional(),\n}).passthrough();\n\nexport const moreTreesCreateUser = action(\"MORE_TREES_CREATE_USER\", {\n slug: \"more_trees-create-user\",\n name: \"Create User\",\n description: \"Creates a new user that can be assigned to a plantation account. Use this when you need to onboard a new user to the More Trees platform. The user must agree to terms and conditions (is_agreed=true). Returns the created user details including a unique user ID.\",\n input: MoreTreesCreateUserInput,\n output: MoreTreesCreateUserOutput,\n});\n"],"mappings":";;AA0BA,MAAa,sBAAsB,OAAO,0BAA0B;CAClE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OA1BsC,EAAE,OAAO;EAC/C,QAAQ,EAAE,KAAK,CAAC,UAAU,UAAU,CAAC,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;EACxF,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS,yFAAyF;EACzH,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB;EACvD,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB;EACzD,cAAc,EAAE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ent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { moreTrees } from \"../app\";\n\nexport const MoreTreesCreateUserInput = z.object({\n status: z.enum([\"ACTIVE\", \"INACTIVE\"]).describe(\"Status of the user account.\").optional(),\n is_agreed: z.boolean().describe(\"Whether the user has agreed to the terms and conditions. Must be true to create a user.\"),\n last_name: z.string().describe(\"Last name of the user.\"),\n first_name: z.string().describe(\"First name of the user.\"),\n phone_number: z.string().describe(\"Phone number of the user. Should include country code if applicable.\").optional(),\n email_address: z.string().describe(\"Email address of the user. Must be a valid email format and unique within the system.\"),\n referral_code: z.string().describe(\"Referral code if the user was referred by another user or campaign.\").optional(),\n marketing_preference_id: z.number().int().describe(\"Marketing preference identifier for the user's communication preferences.\").optional(),\n});\nexport const MoreTreesCreateUserOutput = z.object({\n id: z.number().int().describe(\"Unique identifier assigned to the newly created user.\").nullable().optional(),\n status: z.string().describe(\"Current status of the user account (e.g., ACTIVE, INACTIVE).\").nullable().optional(),\n is_agreed: z.boolean().describe(\"Whether the user has agreed to the terms and conditions.\").nullable().optional(),\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 phone_number: z.string().describe(\"Phone number of the user.\").nullable().optional(),\n email_address: z.string().describe(\"Email address of the user.\").nullable().optional(),\n referral_code: z.string().describe(\"Referral code associated with the user.\").nullable().optional(),\n marketing_preference_id: z.number().int().describe(\"Marketing preference identifier for the user.\").nullable().optional(),\n}).passthrough();\n\nexport const moreTreesCreateUser: AppAction<\n typeof MoreTreesCreateUserInput,\n typeof MoreTreesCreateUserOutput,\n typeof moreTrees.credential\n> = action(\"MORE_TREES_CREATE_USER\", {\n slug: \"more_trees-create-user\",\n name: \"Create User\",\n description: \"Creates a new user that can be assigned to a plantation account. Use this when you need to onboard a new user to the More Trees platform. The user must agree to terms and conditions (is_agreed=true). Returns the created user details including a unique user ID.\",\n input: MoreTrees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S,CAAC,CAAC,SAAS;EACnF,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACrF,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAClG,yBAAyB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1H,CAAC,CAAC,CAAC,YAWO;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/get-marketing-preferences.ts
@@ -1 +1 @@
1
- {"version":3,"file":"get-marketing-preferences.cjs","names":["z","action"],"sources":["../../src/actions/get-marketing-preferences.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoreTreesGetMarketingPreferencesInput = z.object({});\nconst MoreTreesGetMarketingPreferences_MarketingPreferenceSchema = z.object({\n id: z.string().describe(\"Unique identifier for the marketing preference\").nullable(),\n name: z.string().describe(\"Display name of the marketing preference\").nullable(),\n}).passthrough();\nexport const MoreTreesGetMarketingPreferencesOutput = z.object({\n preferences: z.array(MoreTreesGetMarketingPreferences_MarketingPreferenceSchema).describe(\"List of available marketing preferences\"),\n}).passthrough();\n\nexport const moreTreesGetMarketingPreferences = action(\"MORE_TREES_GET_MARKETING_PREFERENCES\", {\n slug: \"more_trees-get-marketing-preferences\",\n name: \"Get Marketing Preferences\",\n description: \"Tool to retrieve available marketing preferences. Use when you need to get the list of marketing preference options that users can select.\",\n input: MoreTreesGetMarketingPreferencesInput,\n output: MoreTreesGetMarketingPreferencesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,wCAAwCA,IAAAA,EAAE,OAAO,CAAC,CAAC;AAChE,MAAM,6DAA6DA,IAAAA,EAAE,OAAO;CAC1E,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CACnF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;AACjF,CAAC,CAAC,CAAC,YAAY;AACf,MAAa,yCAAyCA,IAAAA,EAAE,OAAO,EAC7D,aAAaA,IAAAA,EAAE,MAAM,0DAA0D,CAAC,CAAC,SAAS,yCAAyC,EACrI,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,mCAAmCC,eAAAA,OAAO,wCAAwC;CAC7F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"get-marketing-preferences.cjs","names":["z","action"],"sources":["../../src/actions/get-marketing-preferences.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { moreTrees } from \"../app\";\n\nexport const MoreTreesGetMarketingPreferencesInput = z.object({});\nconst MoreTreesGetMarketingPreferences_MarketingPreferenceSchema = z.object({\n id: z.string().describe(\"Unique identifier for the marketing preference\").nullable(),\n name: z.string().describe(\"Display name of the marketing preference\").nullable(),\n}).passthrough();\nexport const MoreTreesGetMarketingPreferencesOutput = z.object({\n preferences: z.array(MoreTreesGetMarketingPreferences_MarketingPreferenceSchema).describe(\"List of available marketing preferences\"),\n}).passthrough();\n\nexport const moreTreesGetMarketingPreferences: AppAction<\n typeof MoreTreesGetMarketingPreferencesInput,\n typeof MoreTreesGetMarketingPreferencesOutput,\n typeof moreTrees.credential\n> = action(\"MORE_TREES_GET_MARKETING_PREFERENCES\", {\n slug: \"more_trees-get-marketing-preferences\",\n name: \"Get Marketing Preferences\",\n description: \"Tool to retrieve available marketing preferences. Use when you need to get the list of marketing preference options that users can select.\",\n input: MoreTreesGetMarketingPreferencesInput,\n output: MoreTreesGetMarketingPreferencesOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,wCAAwCA,IAAAA,EAAE,OAAO,CAAC,CAAC;AAChE,MAAM,6DAA6DA,IAAAA,EAAE,OAAO;CAC1E,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CACnF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;AACjF,CAAC,CAAC,CAAC,YAAY;AACf,MAAa,yCAAyCA,IAAAA,EAAE,OAAO,EAC7D,aAAaA,IAAAA,EAAE,MAAM,0DAA0D,CAAC,CAAC,SAAS,yCAAyC,EACrI,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,mCAITC,eAAAA,OAAO,wCAAwC;CACjD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { moreTrees } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/get-marketing-preferences.d.ts
@@ -8,7 +10,7 @@ declare const MoreTreesGetMarketingPreferencesOutput: z.ZodObject<{
8
10
  name: z.ZodNullable<z.ZodString>;
9
11
  }, z.core.$loose>>;
10
12
  }, z.core.$loose>;
11
- declare const moreTreesGetMarketingPreferences: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
13
+ declare const moreTreesGetMarketingPreferences: AppAction<typeof MoreTreesGetMarketingPreferencesInput, typeof MoreTreesGetMarketingPreferencesOutput, typeof moreTrees.credential>;
12
14
  //#endregion
13
15
  export { moreTreesGetMarketingPreferences };
14
16
  //# sourceMappingURL=get-marketing-preferences.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-marketing-preferences.d.cts","names":[],"sources":["../../src/actions/get-marketing-preferences.ts"],"mappings":";;;cAIa,qCAAA,EAAqC,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAKrC,sCAAA,EAAsC,CAAA,CAAA,SAAA;;;;;;cAItC,gCAAA,gCAAgC,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"get-marketing-preferences.d.cts","names":[],"sources":["../../src/actions/get-marketing-preferences.ts"],"mappings":";;;;;cAMa,qCAAA,EAAqC,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAKrC,sCAAA,EAAsC,CAAA,CAAA,SAAA;;;;;;cAItC,gCAAA,EAAkC,SAAA,QACtC,qCAAA,SACA,sCAAA,SACA,SAAA,CAAU,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { moreTrees } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/get-marketing-preferences.d.ts
@@ -8,7 +10,7 @@ declare const MoreTreesGetMarketingPreferencesOutput: z.ZodObject<{
8
10
  name: z.ZodNullable<z.ZodString>;
9
11
  }, z.core.$loose>>;
10
12
  }, z.core.$loose>;
11
- declare const moreTreesGetMarketingPreferences: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
13
+ declare const moreTreesGetMarketingPreferences: AppAction<typeof MoreTreesGetMarketingPreferencesInput, typeof MoreTreesGetMarketingPreferencesOutput, typeof moreTrees.credential>;
12
14
  //#endregion
13
15
  export { moreTreesGetMarketingPreferences };
14
16
  //# sourceMappingURL=get-marketing-preferences.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-marketing-preferences.d.mts","names":[],"sources":["../../src/actions/get-marketing-preferences.ts"],"mappings":";;;cAIa,qCAAA,EAAqC,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAKrC,sCAAA,EAAsC,CAAA,CAAA,SAAA;;;;;;cAItC,gCAAA,gCAAgC,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"get-marketing-preferences.d.mts","names":[],"sources":["../../src/actions/get-marketing-preferences.ts"],"mappings":";;;;;cAMa,qCAAA,EAAqC,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAKrC,sCAAA,EAAsC,CAAA,CAAA,SAAA;;;;;;cAItC,gCAAA,EAAkC,SAAA,QACtC,qCAAA,SACA,sCAAA,SACA,SAAA,CAAU,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-marketing-preferences.ts
@@ -1 +1 @@
1
- {"version":3,"file":"get-marketing-preferences.mjs","names":[],"sources":["../../src/actions/get-marketing-preferences.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoreTreesGetMarketingPreferencesInput = z.object({});\nconst MoreTreesGetMarketingPreferences_MarketingPreferenceSchema = z.object({\n id: z.string().describe(\"Unique identifier for the marketing preference\").nullable(),\n name: z.string().describe(\"Display name of the marketing preference\").nullable(),\n}).passthrough();\nexport const MoreTreesGetMarketingPreferencesOutput = z.object({\n preferences: z.array(MoreTreesGetMarketingPreferences_MarketingPreferenceSchema).describe(\"List of available marketing preferences\"),\n}).passthrough();\n\nexport const moreTreesGetMarketingPreferences = action(\"MORE_TREES_GET_MARKETING_PREFERENCES\", {\n slug: \"more_trees-get-marketing-preferences\",\n name: \"Get Marketing Preferences\",\n description: \"Tool to retrieve available marketing preferences. Use when you need to get the list of marketing preference options that users can select.\",\n input: MoreTreesGetMarketingPreferencesInput,\n output: MoreTreesGetMarketingPreferencesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,wCAAwC,EAAE,OAAO,CAAC,CAAC;AAChE,MAAM,6DAA6D,EAAE,OAAO;CAC1E,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CACnF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;AACjF,CAAC,CAAC,CAAC,YAAY;AAKf,MAAa,mCAAmC,OAAO,wCAAwC;CAC7F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAToD,EAAE,OAAO,EAC7D,aAAa,EAAE,MAAM,0DAA0D,CAAC,CAAC,SAAS,yCAAyC,EACrI,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
1
+ {"version":3,"file":"get-marketing-preferences.mjs","names":[],"sources":["../../src/actions/get-marketing-preferences.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { moreTrees } from \"../app\";\n\nexport const MoreTreesGetMarketingPreferencesInput = z.object({});\nconst MoreTreesGetMarketingPreferences_MarketingPreferenceSchema = z.object({\n id: z.string().describe(\"Unique identifier for the marketing preference\").nullable(),\n name: z.string().describe(\"Display name of the marketing preference\").nullable(),\n}).passthrough();\nexport const MoreTreesGetMarketingPreferencesOutput = z.object({\n preferences: z.array(MoreTreesGetMarketingPreferences_MarketingPreferenceSchema).describe(\"List of available marketing preferences\"),\n}).passthrough();\n\nexport const moreTreesGetMarketingPreferences: AppAction<\n typeof MoreTreesGetMarketingPreferencesInput,\n typeof MoreTreesGetMarketingPreferencesOutput,\n typeof moreTrees.credential\n> = action(\"MORE_TREES_GET_MARKETING_PREFERENCES\", {\n slug: \"more_trees-get-marketing-preferences\",\n name: \"Get Marketing Preferences\",\n description: \"Tool to retrieve available marketing preferences. Use when you need to get the list of marketing preference options that users can select.\",\n input: MoreTreesGetMarketingPreferencesInput,\n output: MoreTreesGetMarketingPreferencesOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,wCAAwC,EAAE,OAAO,CAAC,CAAC;AAChE,MAAM,6DAA6D,EAAE,OAAO;CAC1E,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CACnF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;AACjF,CAAC,CAAC,CAAC,YAAY;AAKf,MAAa,mCAIT,OAAO,wCAAwC;CACjD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAboD,EAAE,OAAO,EAC7D,aAAa,EAAE,MAAM,0DAA0D,CAAC,CAAC,SAAS,yCAAyC,EACrI,CAAC,CAAC,CAAC,YAWO;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/get-total-carbon-offset.ts
@@ -1 +1 @@
1
- {"version":3,"file":"get-total-carbon-offset.cjs","names":["z","action"],"sources":["../../src/actions/get-total-carbon-offset.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoreTreesGetTotalCarbonOffsetInput = z.object({\n forest_slug_or_account_code: z.string().describe(\"The unique identifier for the forest. This can be either a forest slug (e.g., 'my-company-forest') or an account code. Find this value in your More Trees account under Settings > Account Settings.\"),\n});\nconst MoreTreesGetTotalCarbonOffset_ForestTotalsSchema = z.object({\n co2_captured: z.number().describe(\"Total amount of CO2 captured in kg\").nullable(),\n trees_gifted: z.number().int().describe(\"Total number of trees gifted to others\").nullable(),\n trees_planted: z.number().int().describe(\"Total number of trees planted in this forest\").nullable(),\n trees_received: z.number().int().describe(\"Total number of trees received as gifts\").nullable(),\n projects_supported: z.number().int().describe(\"Total number of tree planting projects supported\").nullable(),\n}).passthrough();\nexport const MoreTreesGetTotalCarbonOffsetOutput = z.object({\n totals: MoreTreesGetTotalCarbonOffset_ForestTotalsSchema.nullable(),\n logo_url: z.string().describe(\"URL of the forest's logo image\").nullable(),\n brand_color: z.string().describe(\"Brand color in hexadecimal format (e.g., '#000000')\").nullable(),\n forest_name: z.string().describe(\"Display name of the forest\").nullable(),\n}).passthrough();\n\nexport const moreTreesGetTotalCarbonOffset = action(\"MORE_TREES_GET_TOTAL_CARBON_OFFSET\", {\n slug: \"more_trees-get-total-carbon-offset\",\n name: \"Get Total Carbon Offset\",\n description: \"Retrieves the total carbon offset and forest statistics for a specified forest. Returns comprehensive data about a forest including: - Forest branding (name, logo, color) - Total CO2 captured - Number of trees planted, gifted, and received - Number of tree planting projects supported The forest_slug_or_account_code parameter is required and can be found in the More Trees platform at Settings > Account Settings.\",\n input: MoreTreesGetTotalCarbonOffsetInput,\n output: MoreTreesGetTotalCarbonOffsetOutput,\n});\n"],"mappings":";;;AAIA,MAAa,qCAAqCA,IAAAA,EAAE,OAAO,EACzD,6BAA6BA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sMAAsM,EACzP,CAAC;AACD,MAAM,mDAAmDA,IAAAA,EAAE,OAAO;CAChE,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CACjF,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CAC3F,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CAClG,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CAC9F,oBAAoBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;AAC7G,CAAC,CAAC,CAAC,YAAY;AACf,MAAa,sCAAsCA,IAAAA,EAAE,OAAO;CAC1D,QAAQ,iDAAiD,SAAS;CAClE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CACzE,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;CACjG,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;AAC1E,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,gCAAgCC,eAAAA,OAAO,sCAAsC;CACxF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"get-total-carbon-offset.cjs","names":["z","action"],"sources":["../../src/actions/get-total-carbon-offset.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { moreTrees } from \"../app\";\n\nexport const MoreTreesGetTotalCarbonOffsetInput = z.object({\n forest_slug_or_account_code: z.string().describe(\"The unique identifier for the forest. This can be either a forest slug (e.g., 'my-company-forest') or an account code. Find this value in your More Trees account under Settings > Account Settings.\"),\n});\nconst MoreTreesGetTotalCarbonOffset_ForestTotalsSchema = z.object({\n co2_captured: z.number().describe(\"Total amount of CO2 captured in kg\").nullable(),\n trees_gifted: z.number().int().describe(\"Total number of trees gifted to others\").nullable(),\n trees_planted: z.number().int().describe(\"Total number of trees planted in this forest\").nullable(),\n trees_received: z.number().int().describe(\"Total number of trees received as gifts\").nullable(),\n projects_supported: z.number().int().describe(\"Total number of tree planting projects supported\").nullable(),\n}).passthrough();\nexport const MoreTreesGetTotalCarbonOffsetOutput = z.object({\n totals: MoreTreesGetTotalCarbonOffset_ForestTotalsSchema.nullable(),\n logo_url: z.string().describe(\"URL of the forest's logo image\").nullable(),\n brand_color: z.string().describe(\"Brand color in hexadecimal format (e.g., '#000000')\").nullable(),\n forest_name: z.string().describe(\"Display name of the forest\").nullable(),\n}).passthrough();\n\nexport const moreTreesGetTotalCarbonOffset: AppAction<\n typeof MoreTreesGetTotalCarbonOffsetInput,\n typeof MoreTreesGetTotalCarbonOffsetOutput,\n typeof moreTrees.credential\n> = action(\"MORE_TREES_GET_TOTAL_CARBON_OFFSET\", {\n slug: \"more_trees-get-total-carbon-offset\",\n name: \"Get Total Carbon Offset\",\n description: \"Retrieves the total carbon offset and forest statistics for a specified forest. Returns comprehensive data about a forest including: - Forest branding (name, logo, color) - Total CO2 captured - Number of trees planted, gifted, and received - Number of tree planting projects supported The forest_slug_or_account_code parameter is required and can be found in the More Trees platform at Settings > Account Settings.\",\n input: MoreTreesGetTotalCarbonOffsetInput,\n output: MoreTreesGetTotalCarbonOffsetOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,qCAAqCA,IAAAA,EAAE,OAAO,EACzD,6BAA6BA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sMAAsM,EACzP,CAAC;AACD,MAAM,mDAAmDA,IAAAA,EAAE,OAAO;CAChE,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CACjF,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CAC3F,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CAClG,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CAC9F,oBAAoBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;AAC7G,CAAC,CAAC,CAAC,YAAY;AACf,MAAa,sCAAsCA,IAAAA,EAAE,OAAO;CAC1D,QAAQ,iDAAiD,SAAS;CAClE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CACzE,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;CACjG,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;AAC1E,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,gCAITC,eAAAA,OAAO,sCAAsC;CAC/C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { moreTrees } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/get-total-carbon-offset.d.ts
@@ -16,9 +18,7 @@ declare const MoreTreesGetTotalCarbonOffsetOutput: z.ZodObject<{
16
18
  brand_color: z.ZodNullable<z.ZodString>;
17
19
  forest_name: z.ZodNullable<z.ZodString>;
18
20
  }, z.core.$loose>;
19
- declare const moreTreesGetTotalCarbonOffset: import("@keystrokehq/action").WorkflowActionDefinition<{
20
- forest_slug_or_account_code: string;
21
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
21
+ declare const moreTreesGetTotalCarbonOffset: AppAction<typeof MoreTreesGetTotalCarbonOffsetInput, typeof MoreTreesGetTotalCarbonOffsetOutput, typeof moreTrees.credential>;
22
22
  //#endregion
23
23
  export { moreTreesGetTotalCarbonOffset };
24
24
  //# sourceMappingURL=get-total-carbon-offset.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-total-carbon-offset.d.cts","names":[],"sources":["../../src/actions/get-total-carbon-offset.ts"],"mappings":";;;cAIa,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;cAUlC,mCAAA,EAAmC,CAAA,CAAA,SAAA;;;;;;;;;;;;cAOnC,6BAAA,gCAA6B,wBAAA"}
1
+ {"version":3,"file":"get-total-carbon-offset.d.cts","names":[],"sources":["../../src/actions/get-total-carbon-offset.ts"],"mappings":";;;;;cAMa,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;cAUlC,mCAAA,EAAmC,CAAA,CAAA,SAAA;;;;;;;;;;;;cAOnC,6BAAA,EAA+B,SAAA,QACnC,kCAAA,SACA,mCAAA,SACA,SAAA,CAAU,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { moreTrees } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/get-total-carbon-offset.d.ts
@@ -16,9 +18,7 @@ declare const MoreTreesGetTotalCarbonOffsetOutput: z.ZodObject<{
16
18
  brand_color: z.ZodNullable<z.ZodString>;
17
19
  forest_name: z.ZodNullable<z.ZodString>;
18
20
  }, z.core.$loose>;
19
- declare const moreTreesGetTotalCarbonOffset: import("@keystrokehq/action").WorkflowActionDefinition<{
20
- forest_slug_or_account_code: string;
21
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
21
+ declare const moreTreesGetTotalCarbonOffset: AppAction<typeof MoreTreesGetTotalCarbonOffsetInput, typeof MoreTreesGetTotalCarbonOffsetOutput, typeof moreTrees.credential>;
22
22
  //#endregion
23
23
  export { moreTreesGetTotalCarbonOffset };
24
24
  //# sourceMappingURL=get-total-carbon-offset.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-total-carbon-offset.d.mts","names":[],"sources":["../../src/actions/get-total-carbon-offset.ts"],"mappings":";;;cAIa,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;cAUlC,mCAAA,EAAmC,CAAA,CAAA,SAAA;;;;;;;;;;;;cAOnC,6BAAA,gCAA6B,wBAAA"}
1
+ {"version":3,"file":"get-total-carbon-offset.d.mts","names":[],"sources":["../../src/actions/get-total-carbon-offset.ts"],"mappings":";;;;;cAMa,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;cAUlC,mCAAA,EAAmC,CAAA,CAAA,SAAA;;;;;;;;;;;;cAOnC,6BAAA,EAA+B,SAAA,QACnC,kCAAA,SACA,mCAAA,SACA,SAAA,CAAU,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-total-carbon-offset.ts
@@ -1 +1 @@
1
- {"version":3,"file":"get-total-carbon-offset.mjs","names":[],"sources":["../../src/actions/get-total-carbon-offset.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoreTreesGetTotalCarbonOffsetInput = z.object({\n forest_slug_or_account_code: z.string().describe(\"The unique identifier for the forest. This can be either a forest slug (e.g., 'my-company-forest') or an account code. Find this value in your More Trees account under Settings > Account Settings.\"),\n});\nconst MoreTreesGetTotalCarbonOffset_ForestTotalsSchema = z.object({\n co2_captured: z.number().describe(\"Total amount of CO2 captured in kg\").nullable(),\n trees_gifted: z.number().int().describe(\"Total number of trees gifted to others\").nullable(),\n trees_planted: z.number().int().describe(\"Total number of trees planted in this forest\").nullable(),\n trees_received: z.number().int().describe(\"Total number of trees received as gifts\").nullable(),\n projects_supported: z.number().int().describe(\"Total number of tree planting projects supported\").nullable(),\n}).passthrough();\nexport const MoreTreesGetTotalCarbonOffsetOutput = z.object({\n totals: MoreTreesGetTotalCarbonOffset_ForestTotalsSchema.nullable(),\n logo_url: z.string().describe(\"URL of the forest's logo image\").nullable(),\n brand_color: z.string().describe(\"Brand color in hexadecimal format (e.g., '#000000')\").nullable(),\n forest_name: z.string().describe(\"Display name of the forest\").nullable(),\n}).passthrough();\n\nexport const moreTreesGetTotalCarbonOffset = action(\"MORE_TREES_GET_TOTAL_CARBON_OFFSET\", {\n slug: \"more_trees-get-total-carbon-offset\",\n name: \"Get Total Carbon Offset\",\n description: \"Retrieves the total carbon offset and forest statistics for a specified forest. Returns comprehensive data about a forest including: - Forest branding (name, logo, color) - Total CO2 captured - Number of trees planted, gifted, and received - Number of tree planting projects supported The forest_slug_or_account_code parameter is required and can be found in the More Trees platform at Settings > Account Settings.\",\n input: MoreTreesGetTotalCarbonOffsetInput,\n output: MoreTreesGetTotalCarbonOffsetOutput,\n});\n"],"mappings":";;;AAIA,MAAa,qCAAqC,EAAE,OAAO,EACzD,6BAA6B,EAAE,OAAO,CAAC,CAAC,SAAS,sMAAsM,EACzP,CAAC;AACD,MAAM,mDAAmD,EAAE,OAAO;CAChE,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CACjF,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CAC3F,eAAe,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CAClG,gBAAgB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CAC9F,oBAAoB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;AAC7G,CAAC,CAAC,CAAC,YAAY;AAQf,MAAa,gCAAgC,OAAO,sCAAsC;CACxF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAZiD,EAAE,OAAO;EAC1D,QAAQ,iDAAiD,SAAS;EAClE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;EACzE,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;EACjG,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CAC1E,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
1
+ {"version":3,"file":"get-total-carbon-offset.mjs","names":[],"sources":["../../src/actions/get-total-carbon-offset.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { moreTrees } from \"../app\";\n\nexport const MoreTreesGetTotalCarbonOffsetInput = z.object({\n forest_slug_or_account_code: z.string().describe(\"The unique identifier for the forest. This can be either a forest slug (e.g., 'my-company-forest') or an account code. Find this value in your More Trees account under Settings > Account Settings.\"),\n});\nconst MoreTreesGetTotalCarbonOffset_ForestTotalsSchema = z.object({\n co2_captured: z.number().describe(\"Total amount of CO2 captured in kg\").nullable(),\n trees_gifted: z.number().int().describe(\"Total number of trees gifted to others\").nullable(),\n trees_planted: z.number().int().describe(\"Total number of trees planted in this forest\").nullable(),\n trees_received: z.number().int().describe(\"Total number of trees received as gifts\").nullable(),\n projects_supported: z.number().int().describe(\"Total number of tree planting projects supported\").nullable(),\n}).passthrough();\nexport const MoreTreesGetTotalCarbonOffsetOutput = z.object({\n totals: MoreTreesGetTotalCarbonOffset_ForestTotalsSchema.nullable(),\n logo_url: z.string().describe(\"URL of the forest's logo image\").nullable(),\n brand_color: z.string().describe(\"Brand color in hexadecimal format (e.g., '#000000')\").nullable(),\n forest_name: z.string().describe(\"Display name of the forest\").nullable(),\n}).passthrough();\n\nexport const moreTreesGetTotalCarbonOffset: AppAction<\n typeof MoreTreesGetTotalCarbonOffsetInput,\n typeof MoreTreesGetTotalCarbonOffsetOutput,\n typeof moreTrees.credential\n> = action(\"MORE_TREES_GET_TOTAL_CARBON_OFFSET\", {\n slug: \"more_trees-get-total-carbon-offset\",\n name: \"Get Total Carbon Offset\",\n description: \"Retrieves the total carbon offset and forest statistics for a specified forest. Returns comprehensive data about a forest including: - Forest branding (name, logo, color) - Total CO2 captured - Number of trees planted, gifted, and received - Number of tree planting projects supported The forest_slug_or_account_code parameter is required and can be found in the More Trees platform at Settings > Account Settings.\",\n input: MoreTreesGetTotalCarbonOffsetInput,\n output: MoreTreesGetTotalCarbonOffsetOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,qCAAqC,EAAE,OAAO,EACzD,6BAA6B,EAAE,OAAO,CAAC,CAAC,SAAS,sMAAsM,EACzP,CAAC;AACD,MAAM,mDAAmD,EAAE,OAAO;CAChE,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CACjF,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CAC3F,eAAe,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CAClG,gBAAgB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CAC9F,oBAAoB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;AAC7G,CAAC,CAAC,CAAC,YAAY;AAQf,MAAa,gCAIT,OAAO,sCAAsC;CAC/C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAhBiD,EAAE,OAAO;EAC1D,QAAQ,iDAAiD,SAAS;EAClE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;EACzE,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;EACjG,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CAC1E,CAAC,CAAC,CAAC,YAWO;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-projects.ts
@@ -1 +1 @@
1
- {"version":3,"file":"list-projects.cjs","names":["z","action"],"sources":["../../src/actions/list-projects.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoreTreesListProjectsInput = z.object({});\nconst MoreTreesListProjects_TreeSchema = z.object({\n id: z.number().int().describe(\"Unique identifier for the tree species\").nullable(),\n name: z.string().describe(\"Name of the tree species\").nullable(),\n \"default\": z.boolean().describe(\"Whether this is the default tree for the project\").nullable(),\n tonnes_co2: z.number().describe(\"Amount of CO2 captured by this tree in tonnes\").nullable(),\n tree_image: z.string().describe(\"URL of the tree species image\").nullable(),\n description: z.string().describe(\"Description of the tree species\").nullable().optional(),\n credits_required: z.number().describe(\"Number of credits required to plant this tree\").nullable(),\n}).passthrough();\nconst MoreTreesListProjects_ProjectSchema = z.object({\n id: z.number().int().describe(\"Unique identifier for the project\").nullable(),\n name: z.string().describe(\"Name of the project\").nullable(),\n trees: z.array(MoreTreesListProjects_TreeSchema).describe(\"List of tree species available for planting in this project\"),\n country: z.string().describe(\"Country where the project is located\").nullable(),\n \"default\": z.boolean().describe(\"Whether this is the default project\").nullable(),\n description: z.string().describe(\"Description of the project\").nullable(),\n project_type: z.string().describe(\"Type of the project (e.g., reforestation, conservation)\").nullable(),\n project_image: z.string().describe(\"URL of the project image\").nullable(),\n supplier_name: z.string().describe(\"Name of the project supplier or partner organization\").nullable(),\n}).passthrough();\nexport const MoreTreesListProjectsOutput = z.object({\n data: z.array(MoreTreesListProjects_ProjectSchema).describe(\"List of all active projects with their details\"),\n total: z.number().int().describe(\"Total number of projects returned\").nullable(),\n}).passthrough();\n\nexport const moreTreesListProjects = action(\"MORE_TREES_LIST_PROJECTS\", {\n slug: \"more_trees-list-projects\",\n name: \"List Projects\",\n description: \"Retrieves all active tree planting projects with comprehensive details. Returns project information including name, ID, description, country, project type, supplier name, and available tree species for each project. Use this action to discover available projects and their tree planting options.\",\n input: MoreTreesListProjectsInput,\n output: MoreTreesListProjectsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6BA,IAAAA,EAAE,OAAO,CAAC,CAAC;AACrD,MAAM,mCAAmCA,IAAAA,EAAE,OAAO;CAChD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CACjF,MA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AsD,CAAC,CAAC,SAAS;AACtG,CAAC,CAAC,CAAC,YAAY;AACf,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,MAAMA,IAAAA,EAAE,MAAM,mCAAmC,CAAC,CAAC,SAAS,gDAAgD;CAC5G,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;AACjF,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,wBAAwBC,eAAAA,OAAO,4BAA4B;CACtE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"list-projects.cjs","names":["z","action"],"sources":["../../src/actions/list-projects.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { moreTrees } from \"../app\";\n\nexport const MoreTreesListProjectsInput = z.object({});\nconst MoreTreesListProjects_TreeSchema = z.object({\n id: z.number().int().describe(\"Unique identifier for the tree species\").nullable(),\n name: z.string().describe(\"Name of the tree species\").nullable(),\n \"default\": z.boolean().describe(\"Whether this is the default tree for the project\").nullable(),\n tonnes_co2: z.number().describe(\"Amount of CO2 captured by this tree in tonnes\").nullable(),\n tree_image: z.string().describe(\"URL of the tree species image\").nullable(),\n description: z.string().describe(\"Description of the tree species\").nullable().optional(),\n credits_required: z.number().describe(\"Number of credits required to plant this tree\").nullable(),\n}).passthrough();\nconst MoreTreesListProjects_ProjectSchema = z.object({\n id: z.number().int().describe(\"Unique identifier for the project\").nullable(),\n name: z.string().describe(\"Name of the project\").nullable(),\n trees: z.array(MoreTreesListProjects_TreeSchema).describe(\"List of tree species available for planting in this project\"),\n country: z.string().describe(\"Country where the project is located\").nullable(),\n \"default\": z.boolean().describe(\"Whether this is the default project\").nullable(),\n description: z.string().describe(\"Description of the project\").nullable(),\n project_type: z.string().describe(\"Type of the project (e.g., reforestation, conservation)\").nullable(),\n project_image: z.string().describe(\"URL of the project image\").nullable(),\n supplier_name: z.string().describe(\"Name of the project supplier or partner organization\").nullable(),\n}).passthrough();\nexport const MoreTreesListProjectsOutput = z.object({\n data: z.array(MoreTreesListProjects_ProjectSchema).describe(\"List of all active projects with their details\"),\n total: z.number().int().describe(\"Total number of projects returned\").nullable(),\n}).passthrough();\n\nexport const moreTreesListProjects: AppAction<\n typeof MoreTreesListProjectsInput,\n typeof MoreTreesListProjectsOutput,\n typeof moreTrees.credential\n> = action(\"MORE_TREES_LIST_PROJECTS\", {\n slug: \"more_trees-list-projects\",\n name: \"List Projects\",\n description: \"Retrieves all active tree planting projects with comprehensive details. Returns project information including name, ID, description, country, project type, supplier name, and available tree species for each project. Use this action to discover available projects and their tree planting options.\",\n input: MoreTreesListProjectsInput,\n output: MoreTreesListProjectsOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,6BAA6BA,IAAAA,EAAE,OAAO,CAAC,CAAC;AACrD,MAAM,mCAAmCA,IAAAA,EAAE,OAAO;CAChD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CACjF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;CAC/D,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;CAC7F,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CAC1F,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CAC1E,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxF,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;AAClG,CAAC,CAAC,C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
 
3
5
  //#region src/actions/list-projects.d.ts
@@ -24,7 +26,7 @@ declare const MoreTreesListProjectsOutput: z.ZodObject<{
24
26
  }, z.core.$loose>>;
25
27
  total: z.ZodNullable<z.ZodNumber>;
26
28
  }, z.core.$loose>;
27
- declare const moreTreesListProjects: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
29
+ declare const moreTreesListProjects: AppAction<typeof MoreTreesListProjectsInput, typeof MoreTreesListProjectsOutput, typeof moreTrees.credential>;
28
30
  //#endregion
29
31
  export { moreTreesListProjects };
30
32
  //# sourceMappingURL=list-projects.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-projects.d.cts","names":[],"sources":["../../src/actions/list-projects.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAqB1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;cAK3B,qBAAA,gCAAqB,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"list-projects.d.cts","names":[],"sources":["../../src/actions/list-projects.ts"],"mappings":";;;;;cAMa,0BAAA,EAA0B,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAqB1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;cAK3B,qBAAA,EAAuB,SAAA,QAC3B,0BAAA,SACA,2BAAA,SACA,SAAA,CAAU,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { moreTrees } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/list-projects.d.ts
@@ -24,7 +26,7 @@ declare const MoreTreesListProjectsOutput: z.ZodObject<{
24
26
  }, z.core.$loose>>;
25
27
  total: z.ZodNullable<z.ZodNumber>;
26
28
  }, z.core.$loose>;
27
- declare const moreTreesListProjects: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
29
+ declare const moreTreesListProjects: AppAction<typeof MoreTreesListProjectsInput, typeof MoreTreesListProjectsOutput, typeof moreTrees.credential>;
28
30
  //#endregion
29
31
  export { moreTreesListProjects };
30
32
  //# sourceMappingURL=list-projects.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-projects.d.mts","names":[],"sources":["../../src/actions/list-projects.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAqB1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;cAK3B,qBAAA,gCAAqB,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"list-projects.d.mts","names":[],"sources":["../../src/actions/list-projects.ts"],"mappings":";;;;;cAMa,0BAAA,EAA0B,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAqB1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;cAK3B,qBAAA,EAAuB,SAAA,QAC3B,0BAAA,SACA,2BAAA,SACA,SAAA,CAAU,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/list-projects.ts
@@ -1 +1 @@
1
- {"version":3,"file":"list-projects.mjs","names":[],"sources":["../../src/actions/list-projects.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoreTreesListProjectsInput = z.object({});\nconst MoreTreesListProjects_TreeSchema = z.object({\n id: z.number().int().describe(\"Unique identifier for the tree species\").nullable(),\n name: z.string().describe(\"Name of the tree species\").nullable(),\n \"default\": z.boolean().describe(\"Whether this is the default tree for the project\").nullable(),\n tonnes_co2: z.number().describe(\"Amount of CO2 captured by this tree in tonnes\").nullable(),\n tree_image: z.string().describe(\"URL of the tree species image\").nullable(),\n description: z.string().describe(\"Description of the tree species\").nullable().optional(),\n credits_required: z.number().describe(\"Number of credits required to plant this tree\").nullable(),\n}).passthrough();\nconst MoreTreesListProjects_ProjectSchema = z.object({\n id: z.number().int().describe(\"Unique identifier for the project\").nullable(),\n name: z.string().describe(\"Name of the project\").nullable(),\n trees: z.array(MoreTreesListProjects_TreeSchema).describe(\"List of tree species available for planting in this project\"),\n country: z.string().describe(\"Country where the project is located\").nullable(),\n \"default\": z.boolean().describe(\"Whether this is the default project\").nullable(),\n description: z.string().describe(\"Description of the project\").nullable(),\n project_type: z.string().describe(\"Type of the project (e.g., reforestation, conservation)\").nullable(),\n project_image: z.string().describe(\"URL of the project image\").nullable(),\n supplier_name: z.string().describe(\"Name of the project supplier or partner organization\").nullable(),\n}).passthrough();\nexport const MoreTreesListProjectsOutput = z.object({\n data: z.array(MoreTreesListProjects_ProjectSchema).describe(\"List of all active projects with their details\"),\n total: z.number().int().describe(\"Total number of projects returned\").nullable(),\n}).passthrough();\n\nexport const moreTreesListProjects = action(\"MORE_TREES_LIST_PROJECTS\", {\n slug: \"more_trees-list-projects\",\n name: \"List Projects\",\n description: \"Retrieves all active tree planting projects with comprehensive details. Returns project information including name, ID, description, country, project type, supplier name, and available tree species for each project. Use this action to discover available projects and their tree planting options.\",\n input: MoreTreesListProjectsInput,\n output: MoreTreesListProjectsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6B,EAAE,OAAO,CAAC,CAAC;AACrD,MAAM,mCAAmC,EAAE,OAAO;CAChD,IAAI,EAAE,OAAO,CAAC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AAwB,OAAO,4BAA4B;CACtE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAVyC,EAAE,OAAO;EAClD,MAAM,EAAE,MAAM,mCAAmC,CAAC,CAAC,SAAS,gDAAgD;EAC5G,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CACjF,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
1
+ {"version":3,"file":"list-projects.mjs","names":[],"sources":["../../src/actions/list-projects.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { moreTrees } from \"../app\";\n\nexport const MoreTreesListProjectsInput = z.object({});\nconst MoreTreesListProjects_TreeSchema = z.object({\n id: z.number().int().describe(\"Unique identifier for the tree species\").nullable(),\n name: z.string().describe(\"Name of the tree species\").nullable(),\n \"default\": z.boolean().describe(\"Whether this is the default tree for the project\").nullable(),\n tonnes_co2: z.number().describe(\"Amount of CO2 captured by this tree in tonnes\").nullable(),\n tree_image: z.string().describe(\"URL of the tree species image\").nullable(),\n description: z.string().describe(\"Description of the tree species\").nullable().optional(),\n credits_required: z.number().describe(\"Number of credits required to plant this tree\").nullable(),\n}).passthrough();\nconst MoreTreesListProjects_ProjectSchema = z.object({\n id: z.number().int().describe(\"Unique identifier for the project\").nullable(),\n name: z.string().describe(\"Name of the project\").nullable(),\n trees: z.array(MoreTreesListProjects_TreeSchema).describe(\"List of tree species available for planting in this project\"),\n country: z.string().describe(\"Country where the project is located\").nullable(),\n \"default\": z.boolean().describe(\"Whether this is the default project\").nullable(),\n description: z.string().describe(\"Description of the project\").nullable(),\n project_type: z.string().describe(\"Type of the project (e.g., reforestation, conservation)\").nullable(),\n project_image: z.string().describe(\"URL of the project image\").nullable(),\n supplier_name: z.string().describe(\"Name of the project supplier or partner organization\").nullable(),\n}).passthrough();\nexport const MoreTreesListProjectsOutput = z.object({\n data: z.array(MoreTreesListProjects_ProjectSchema).describe(\"List of all active projects with their details\"),\n total: z.number().int().describe(\"Total number of projects returned\").nullable(),\n}).passthrough();\n\nexport const moreTreesListProjects: AppAction<\n typeof MoreTreesListProjectsInput,\n typeof MoreTreesListProjectsOutput,\n typeof moreTrees.credential\n> = action(\"MORE_TREES_LIST_PROJECTS\", {\n slug: \"more_trees-list-projects\",\n name: \"List Projects\",\n description: \"Retrieves all active tree planting projects with comprehensive details. Returns project information including name, ID, description, country, project type, supplier name, and available tree species for each project. Use this action to discover available projects and their tree planting options.\",\n input: MoreTreesListProjectsInput,\n output: MoreTreesListProjectsOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,6BAA6B,EAAE,OAAO,CAAC,CAAC;AACrD,MAAM,mCAAmC,EAAE,OAAO;CAChD,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CACjF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;CAC/D,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;CAC7F,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CAC1F,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CAC1E,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxF,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;AAClG,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,sCAAsC,EAAE,OAAO;CACnD,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CAC5E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;CAC1D,OAAO,EAAE,MAAM,gCAAgC,CAAC,CAAC,SAAS,6DAA6D;CACvH,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CAC9E,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CAChF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CACxE,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;CACtG,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;CACxE,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;AACtG,CAAC,CAAC,CAAC,YAAY;AAMf,MAAa,wBAIT,OAAO,4BAA4B;CACrC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAdyC,EAAE,OAAO;EAClD,MAAM,EAAE,MAAM,mCAAmC,CAAC,CAAC,SAAS,gDAAgD;EAC5G,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CACjF,CAAC,CAAC,CAAC,YAWO;AACV,CAAC"}
package/dist/app.cjs CHANGED
@@ -1,7 +1,14 @@
1
+ let _keystrokehq_keystroke_app = require("@keystrokehq/keystroke/app");
2
+ let zod = require("zod");
1
3
  //#region src/app.ts
2
- const moreTrees = (0, require("@keystrokehq/keystroke/app").defineApp)({
4
+ const credential = {
5
+ generic_api_key: zod.z.string(),
6
+ generic_id: zod.z.string()
7
+ };
8
+ const moreTrees = (0, _keystrokehq_keystroke_app.defineApp)({
3
9
  slug: "more_trees",
4
- auth: "keystroke"
10
+ auth: "keystroke",
11
+ credential
5
12
  });
6
13
  //#endregion
7
14
  exports.moreTrees = moreTrees;
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 moreTrees = defineApp({\n slug: \"more_trees\",\n auth: \"keystroke\",\n});\n"],"mappings":";AAEA,MAAa,aAAA,uCAAA,CAAA,CAAA,UAAA,CAAsB;CACjC,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 generic_id: z.string(),\n};\n\nexport const moreTrees: KeystrokeApp<\"more_trees\", typeof credential> = defineApp({\n slug: \"more_trees\",\n auth: \"keystroke\",\n credential,\n});\n"],"mappings":";;;AAGA,MAAM,aAAa;CACjB,iBAAiBA,IAAAA,EAAE,OAAO;CAC1B,YAAYA,IAAAA,EAAE,OAAO;AACvB;AAEA,MAAa,aAAA,GAAA,2BAAA,UAAA,CAAqE;CAChF,MAAM;CACN,MAAM;CACN;AACF,CAAC"}
package/dist/app.d.cts CHANGED
@@ -1,5 +1,12 @@
1
+ import { KeystrokeApp } from "@keystrokehq/keystroke/app";
2
+ import { z } from "zod";
3
+
1
4
  //#region src/app.d.ts
2
- declare const moreTrees: import("@keystrokehq/app").App<import("@keystrokehq/shared").Credential>;
5
+ declare const credential: {
6
+ generic_api_key: z.ZodString;
7
+ generic_id: z.ZodString;
8
+ };
9
+ declare const moreTrees: KeystrokeApp<"more_trees", typeof credential>;
3
10
  //#endregion
4
11
  export { moreTrees };
5
12
  //# sourceMappingURL=app.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"app.d.cts","names":[],"sources":["../src/app.ts"],"mappings":";cAEa,SAAA,6BAAS,GAAA,+BAAA,UAAA"}
1
+ {"version":3,"file":"app.d.cts","names":[],"sources":["../src/app.ts"],"mappings":";;;;cAGM,UAAA;mBAGL,CAAA,CAAA,SAAA;cAAA,CAAA,CAAA,SAAA;AAAA;AAAA,cAEY,SAAA,EAAW,YAAY,sBAAsB,UAAA"}
package/dist/app.d.mts CHANGED
@@ -1,5 +1,12 @@
1
+ import { KeystrokeApp } from "@keystrokehq/keystroke/app";
2
+ import { z } from "zod";
3
+
1
4
  //#region src/app.d.ts
2
- declare const moreTrees: import("@keystrokehq/app").App<import("@keystrokehq/shared").Credential>;
5
+ declare const credential: {
6
+ generic_api_key: z.ZodString;
7
+ generic_id: z.ZodString;
8
+ };
9
+ declare const moreTrees: KeystrokeApp<"more_trees", typeof credential>;
3
10
  //#endregion
4
11
  export { moreTrees };
5
12
  //# sourceMappingURL=app.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"app.d.mts","names":[],"sources":["../src/app.ts"],"mappings":";cAEa,SAAA,6BAAS,GAAA,+BAAA,UAAA"}
1
+ {"version":3,"file":"app.d.mts","names":[],"sources":["../src/app.ts"],"mappings":";;;;cAGM,UAAA;mBAGL,CAAA,CAAA,SAAA;cAAA,CAAA,CAAA,SAAA;AAAA;AAAA,cAEY,SAAA,EAAW,YAAY,sBAAsB,UAAA"}
package/dist/app.mjs CHANGED
@@ -1,8 +1,12 @@
1
1
  import { defineApp } from "@keystrokehq/keystroke/app";
2
- //#region src/app.ts
2
+ import { z } from "zod";
3
3
  const moreTrees = defineApp({
4
4
  slug: "more_trees",
5
- auth: "keystroke"
5
+ auth: "keystroke",
6
+ credential: {
7
+ generic_api_key: z.string(),
8
+ generic_id: z.string()
9
+ }
6
10
  });
7
11
  //#endregion
8
12
  export { moreTrees };
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 moreTrees = defineApp({\n slug: \"more_trees\",\n auth: \"keystroke\",\n});\n"],"mappings":";;AAEA,MAAa,YAAY,UAAU;CACjC,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 generic_id: z.string(),\n};\n\nexport const moreTrees: KeystrokeApp<\"more_trees\", typeof credential> = defineApp({\n slug: \"more_trees\",\n auth: \"keystroke\",\n credential,\n});\n"],"mappings":";;AAQA,MAAa,YAA2D,UAAU;CAChF,MAAM;CACN,MAAM;CACN;EAPA,iBAAiB,EAAE,OAAO;EAC1B,YAAY,EAAE,OAAO;CAMrB;AACF,CAAC"}
package/dist/index.d.cts CHANGED
@@ -1,7 +1,7 @@
1
+ import { moreTrees } from "./app.cjs";
1
2
  import { moreTreesCreateUser } from "./actions/create-user.cjs";
2
3
  import { moreTreesGetMarketingPreferences } from "./actions/get-marketing-preferences.cjs";
3
4
  import { moreTreesGetTotalCarbonOffset } from "./actions/get-total-carbon-offset.cjs";
4
5
  import { moreTreesListProjects } from "./actions/list-projects.cjs";
5
- import { moreTrees } from "./app.cjs";
6
6
  import { moreTreesCatalog } from "./catalog.cjs";
7
7
  export { moreTrees, moreTreesCatalog, moreTreesCreateUser, moreTreesGetMarketingPreferences, moreTreesGetTotalCarbonOffset, moreTreesListProjects };
package/dist/index.d.mts CHANGED
@@ -1,7 +1,7 @@
1
+ import { moreTrees } from "./app.mjs";
1
2
  import { moreTreesCreateUser } from "./actions/create-user.mjs";
2
3
  import { moreTreesGetMarketingPreferences } from "./actions/get-marketing-preferences.mjs";
3
4
  import { moreTreesGetTotalCarbonOffset } from "./actions/get-total-carbon-offset.mjs";
4
5
  import { moreTreesListProjects } from "./actions/list-projects.mjs";
5
- import { moreTrees } from "./app.mjs";
6
6
  import { moreTreesCatalog } from "./catalog.mjs";
7
7
  export { moreTrees, moreTreesCatalog, moreTreesCreateUser, moreTreesGetMarketingPreferences, moreTreesGetTotalCarbonOffset, moreTreesListProjects };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@keystrokehq/more_trees",
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": {