@keystrokehq/more_trees 0.1.0

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 (66) hide show
  1. package/README.md +17 -0
  2. package/dist/action.cjs +21 -0
  3. package/dist/action.cjs.map +1 -0
  4. package/dist/action.mjs +21 -0
  5. package/dist/action.mjs.map +1 -0
  6. package/dist/actions/create-user.cjs +35 -0
  7. package/dist/actions/create-user.cjs.map +1 -0
  8. package/dist/actions/create-user.d.cts +9 -0
  9. package/dist/actions/create-user.d.cts.map +1 -0
  10. package/dist/actions/create-user.d.mts +9 -0
  11. package/dist/actions/create-user.d.mts.map +1 -0
  12. package/dist/actions/create-user.mjs +32 -0
  13. package/dist/actions/create-user.mjs.map +1 -0
  14. package/dist/actions/get-marketing-preferences.cjs +20 -0
  15. package/dist/actions/get-marketing-preferences.cjs.map +1 -0
  16. package/dist/actions/get-marketing-preferences.d.cts +9 -0
  17. package/dist/actions/get-marketing-preferences.d.cts.map +1 -0
  18. package/dist/actions/get-marketing-preferences.d.mts +9 -0
  19. package/dist/actions/get-marketing-preferences.d.mts.map +1 -0
  20. package/dist/actions/get-marketing-preferences.mjs +19 -0
  21. package/dist/actions/get-marketing-preferences.mjs.map +1 -0
  22. package/dist/actions/get-total-carbon-offset.cjs +28 -0
  23. package/dist/actions/get-total-carbon-offset.cjs.map +1 -0
  24. package/dist/actions/get-total-carbon-offset.d.cts +9 -0
  25. package/dist/actions/get-total-carbon-offset.d.cts.map +1 -0
  26. package/dist/actions/get-total-carbon-offset.d.mts +9 -0
  27. package/dist/actions/get-total-carbon-offset.d.mts.map +1 -0
  28. package/dist/actions/get-total-carbon-offset.mjs +27 -0
  29. package/dist/actions/get-total-carbon-offset.mjs.map +1 -0
  30. package/dist/actions/index.cjs +9 -0
  31. package/dist/actions/index.d.cts +5 -0
  32. package/dist/actions/index.d.mts +5 -0
  33. package/dist/actions/index.mjs +5 -0
  34. package/dist/actions/list-projects.cjs +39 -0
  35. package/dist/actions/list-projects.cjs.map +1 -0
  36. package/dist/actions/list-projects.d.cts +9 -0
  37. package/dist/actions/list-projects.d.cts.map +1 -0
  38. package/dist/actions/list-projects.d.mts +9 -0
  39. package/dist/actions/list-projects.d.mts.map +1 -0
  40. package/dist/actions/list-projects.mjs +38 -0
  41. package/dist/actions/list-projects.mjs.map +1 -0
  42. package/dist/app.cjs +9 -0
  43. package/dist/app.cjs.map +1 -0
  44. package/dist/app.d.cts +5 -0
  45. package/dist/app.d.cts.map +1 -0
  46. package/dist/app.d.mts +5 -0
  47. package/dist/app.d.mts.map +1 -0
  48. package/dist/app.mjs +10 -0
  49. package/dist/app.mjs.map +1 -0
  50. package/dist/catalog.cjs +15 -0
  51. package/dist/catalog.cjs.map +1 -0
  52. package/dist/catalog.d.cts +14 -0
  53. package/dist/catalog.d.cts.map +1 -0
  54. package/dist/catalog.d.mts +14 -0
  55. package/dist/catalog.d.mts.map +1 -0
  56. package/dist/catalog.mjs +15 -0
  57. package/dist/catalog.mjs.map +1 -0
  58. package/dist/execute.cjs +18 -0
  59. package/dist/execute.cjs.map +1 -0
  60. package/dist/execute.mjs +18 -0
  61. package/dist/execute.mjs.map +1 -0
  62. package/dist/index.cjs +14 -0
  63. package/dist/index.d.cts +7 -0
  64. package/dist/index.d.mts +7 -0
  65. package/dist/index.mjs +8 -0
  66. package/package.json +49 -0
package/README.md ADDED
@@ -0,0 +1,17 @@
1
+ # @keystrokehq/more_trees
2
+
3
+ Keystroke-managed integration.
4
+
5
+ **App:** `more_trees`
6
+ **Version:** `20260615_00`
7
+ **Actions:** 4
8
+
9
+ ```ts
10
+ import { defineAgent } from "@keystrokehq/keystroke/agent";
11
+ import { moreTreesCreateUser } from "@keystrokehq/more_trees/actions";
12
+
13
+ export default defineAgent({
14
+ key: "more_trees-agent",
15
+ tools: [moreTreesCreateUser],
16
+ });
17
+ ```
@@ -0,0 +1,21 @@
1
+ const require_app = require("./app.cjs");
2
+ const require_execute = require("./execute.cjs");
3
+ require("zod");
4
+ //#region src/action.ts
5
+ /** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */
6
+ function action(tool, def) {
7
+ return require_app.moreTrees.action({
8
+ slug: def.slug,
9
+ name: def.name,
10
+ description: def.description,
11
+ input: def.input,
12
+ output: def.output,
13
+ async run(input) {
14
+ return def.output.parse(await require_execute.executeMoreTreesTool(tool, input));
15
+ }
16
+ });
17
+ }
18
+ //#endregion
19
+ exports.action = action;
20
+
21
+ //# sourceMappingURL=action.cjs.map
@@ -0,0 +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(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: z.ZodTypeAny;\n output: z.ZodTypeAny;\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,\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"}
@@ -0,0 +1,21 @@
1
+ import { moreTrees } from "./app.mjs";
2
+ import { executeMoreTreesTool } from "./execute.mjs";
3
+ import "zod";
4
+ //#region src/action.ts
5
+ /** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */
6
+ function action(tool, def) {
7
+ return moreTrees.action({
8
+ slug: def.slug,
9
+ name: def.name,
10
+ description: def.description,
11
+ input: def.input,
12
+ output: def.output,
13
+ async run(input) {
14
+ return def.output.parse(await executeMoreTreesTool(tool, input));
15
+ }
16
+ });
17
+ }
18
+ //#endregion
19
+ export { action };
20
+
21
+ //# sourceMappingURL=action.mjs.map
@@ -0,0 +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(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: z.ZodTypeAny;\n output: z.ZodTypeAny;\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,\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"}
@@ -0,0 +1,35 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/create-user.ts
4
+ const MoreTreesCreateUserInput = zod.z.object({
5
+ status: zod.z.enum(["ACTIVE", "INACTIVE"]).describe("Status of the user account.").optional(),
6
+ is_agreed: zod.z.boolean().describe("Whether the user has agreed to the terms and conditions. Must be true to create a user."),
7
+ last_name: zod.z.string().describe("Last name of the user."),
8
+ first_name: zod.z.string().describe("First name of the user."),
9
+ phone_number: zod.z.string().describe("Phone number of the user. Should include country code if applicable.").optional(),
10
+ email_address: zod.z.string().describe("Email address of the user. Must be a valid email format and unique within the system."),
11
+ referral_code: zod.z.string().describe("Referral code if the user was referred by another user or campaign.").optional(),
12
+ marketing_preference_id: zod.z.number().int().describe("Marketing preference identifier for the user's communication preferences.").optional()
13
+ });
14
+ const MoreTreesCreateUserOutput = zod.z.object({
15
+ id: zod.z.number().int().describe("Unique identifier assigned to the newly created user.").nullable().optional(),
16
+ status: zod.z.string().describe("Current status of the user account (e.g., ACTIVE, INACTIVE).").nullable().optional(),
17
+ is_agreed: zod.z.boolean().describe("Whether the user has agreed to the terms and conditions.").nullable().optional(),
18
+ last_name: zod.z.string().describe("Last name of the user.").nullable().optional(),
19
+ first_name: zod.z.string().describe("First name of the user.").nullable().optional(),
20
+ phone_number: zod.z.string().describe("Phone number of the user.").nullable().optional(),
21
+ email_address: zod.z.string().describe("Email address of the user.").nullable().optional(),
22
+ referral_code: zod.z.string().describe("Referral code associated with the user.").nullable().optional(),
23
+ marketing_preference_id: zod.z.number().int().describe("Marketing preference identifier for the user.").nullable().optional()
24
+ });
25
+ const moreTreesCreateUser = require_action.action("MORE_TREES_CREATE_USER", {
26
+ slug: "more_trees-create-user",
27
+ name: "Create User",
28
+ 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.",
29
+ input: MoreTreesCreateUserInput,
30
+ output: MoreTreesCreateUserOutput
31
+ });
32
+ //#endregion
33
+ exports.moreTreesCreateUser = moreTreesCreateUser;
34
+
35
+ //# sourceMappingURL=create-user.cjs.map
@@ -0,0 +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.ZodTypeAny = 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.ZodTypeAny = 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});\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,2BAAyCA,IAAAA,EAAE,OAAO;CAC7D,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,4BAA0CA,IAAAA,EAAE,OAAO;CAC9D,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;AAED,MAAa,sBAAsBC,eAAAA,OAAO,0BAA0B;CAClE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/create-user.d.ts
4
+ declare const MoreTreesCreateUserInput: z.ZodTypeAny;
5
+ declare const MoreTreesCreateUserOutput: z.ZodTypeAny;
6
+ declare const moreTreesCreateUser: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { moreTreesCreateUser };
9
+ //# sourceMappingURL=create-user.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-user.d.cts","names":[],"sources":["../../src/actions/create-user.ts"],"mappings":";;;cAIa,wBAAA,EAA0B,CAAA,CAAE,UASvC;AAAA,cACW,yBAAA,EAA2B,CAAA,CAAE,UAUxC;AAAA,cAEW,mBAAA,gCAAmB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/create-user.d.ts
4
+ declare const MoreTreesCreateUserInput: z.ZodTypeAny;
5
+ declare const MoreTreesCreateUserOutput: z.ZodTypeAny;
6
+ declare const moreTreesCreateUser: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { moreTreesCreateUser };
9
+ //# sourceMappingURL=create-user.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-user.d.mts","names":[],"sources":["../../src/actions/create-user.ts"],"mappings":";;;cAIa,wBAAA,EAA0B,CAAA,CAAE,UASvC;AAAA,cACW,yBAAA,EAA2B,CAAA,CAAE,UAUxC;AAAA,cAEW,mBAAA,gCAAmB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,32 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ const moreTreesCreateUser = action("MORE_TREES_CREATE_USER", {
4
+ slug: "more_trees-create-user",
5
+ name: "Create User",
6
+ 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.",
7
+ input: z.object({
8
+ status: z.enum(["ACTIVE", "INACTIVE"]).describe("Status of the user account.").optional(),
9
+ is_agreed: z.boolean().describe("Whether the user has agreed to the terms and conditions. Must be true to create a user."),
10
+ last_name: z.string().describe("Last name of the user."),
11
+ first_name: z.string().describe("First name of the user."),
12
+ phone_number: z.string().describe("Phone number of the user. Should include country code if applicable.").optional(),
13
+ email_address: z.string().describe("Email address of the user. Must be a valid email format and unique within the system."),
14
+ referral_code: z.string().describe("Referral code if the user was referred by another user or campaign.").optional(),
15
+ marketing_preference_id: z.number().int().describe("Marketing preference identifier for the user's communication preferences.").optional()
16
+ }),
17
+ output: z.object({
18
+ id: z.number().int().describe("Unique identifier assigned to the newly created user.").nullable().optional(),
19
+ status: z.string().describe("Current status of the user account (e.g., ACTIVE, INACTIVE).").nullable().optional(),
20
+ is_agreed: z.boolean().describe("Whether the user has agreed to the terms and conditions.").nullable().optional(),
21
+ last_name: z.string().describe("Last name of the user.").nullable().optional(),
22
+ first_name: z.string().describe("First name of the user.").nullable().optional(),
23
+ phone_number: z.string().describe("Phone number of the user.").nullable().optional(),
24
+ email_address: z.string().describe("Email address of the user.").nullable().optional(),
25
+ referral_code: z.string().describe("Referral code associated with the user.").nullable().optional(),
26
+ marketing_preference_id: z.number().int().describe("Marketing preference identifier for the user.").nullable().optional()
27
+ })
28
+ });
29
+ //#endregion
30
+ export { moreTreesCreateUser };
31
+
32
+ //# sourceMappingURL=create-user.mjs.map
@@ -0,0 +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.ZodTypeAny = 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.ZodTypeAny = 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});\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,OA1BoD,EAAE,OAAO;EAC7D,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,OAAO,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS;EACnH,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,uFAAuF;EAC1H,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS;EACnH,yBAAyB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2EAA2E,CAAC,CAAC,SAAS;CAC3I,CAiBS;CACP,QAjBqD,EAAE,OAAO;EAC9D,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3G,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChH,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChH,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC7E,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC/E,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,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,CAOU;AACV,CAAC"}
@@ -0,0 +1,20 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/get-marketing-preferences.ts
4
+ const MoreTreesGetMarketingPreferencesInput = zod.z.object({});
5
+ const MoreTreesGetMarketingPreferences_MarketingPreferenceSchema = zod.z.object({
6
+ id: zod.z.string().describe("Unique identifier for the marketing preference"),
7
+ name: zod.z.string().describe("Display name of the marketing preference")
8
+ });
9
+ const MoreTreesGetMarketingPreferencesOutput = zod.z.object({ preferences: zod.z.array(MoreTreesGetMarketingPreferences_MarketingPreferenceSchema).describe("List of available marketing preferences") });
10
+ const moreTreesGetMarketingPreferences = require_action.action("MORE_TREES_GET_MARKETING_PREFERENCES", {
11
+ slug: "more_trees-get-marketing-preferences",
12
+ name: "Get Marketing Preferences",
13
+ description: "Tool to retrieve available marketing preferences. Use when you need to get the list of marketing preference options that users can select.",
14
+ input: MoreTreesGetMarketingPreferencesInput,
15
+ output: MoreTreesGetMarketingPreferencesOutput
16
+ });
17
+ //#endregion
18
+ exports.moreTreesGetMarketingPreferences = moreTreesGetMarketingPreferences;
19
+
20
+ //# sourceMappingURL=get-marketing-preferences.cjs.map
@@ -0,0 +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.ZodTypeAny = z.object({});\nconst MoreTreesGetMarketingPreferences_MarketingPreferenceSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier for the marketing preference\"),\n name: z.string().describe(\"Display name of the marketing preference\"),\n});\nexport const MoreTreesGetMarketingPreferencesOutput: z.ZodTypeAny = z.object({\n preferences: z.array(MoreTreesGetMarketingPreferences_MarketingPreferenceSchema).describe(\"List of available marketing preferences\"),\n});\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,wCAAsDA,IAAAA,EAAE,OAAO,CAAC,CAAC;AAC9E,MAAM,6DAA2EA,IAAAA,EAAE,OAAO;CACxF,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD;CACxE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C;AACtE,CAAC;AACD,MAAa,yCAAuDA,IAAAA,EAAE,OAAO,EAC3E,aAAaA,IAAAA,EAAE,MAAM,0DAA0D,CAAC,CAAC,SAAS,yCAAyC,EACrI,CAAC;AAED,MAAa,mCAAmCC,eAAAA,OAAO,wCAAwC;CAC7F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/get-marketing-preferences.d.ts
4
+ declare const MoreTreesGetMarketingPreferencesInput: z.ZodTypeAny;
5
+ declare const MoreTreesGetMarketingPreferencesOutput: z.ZodTypeAny;
6
+ declare const moreTreesGetMarketingPreferences: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { moreTreesGetMarketingPreferences };
9
+ //# sourceMappingURL=get-marketing-preferences.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-marketing-preferences.d.cts","names":[],"sources":["../../src/actions/get-marketing-preferences.ts"],"mappings":";;;cAIa,qCAAA,EAAuC,CAAA,CAAE,UAAyB;AAAA,cAKlE,sCAAA,EAAwC,CAAA,CAAE,UAErD;AAAA,cAEW,gCAAA,gCAAgC,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/get-marketing-preferences.d.ts
4
+ declare const MoreTreesGetMarketingPreferencesInput: z.ZodTypeAny;
5
+ declare const MoreTreesGetMarketingPreferencesOutput: z.ZodTypeAny;
6
+ declare const moreTreesGetMarketingPreferences: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { moreTreesGetMarketingPreferences };
9
+ //# sourceMappingURL=get-marketing-preferences.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-marketing-preferences.d.mts","names":[],"sources":["../../src/actions/get-marketing-preferences.ts"],"mappings":";;;cAIa,qCAAA,EAAuC,CAAA,CAAE,UAAyB;AAAA,cAKlE,sCAAA,EAAwC,CAAA,CAAE,UAErD;AAAA,cAEW,gCAAA,gCAAgC,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,19 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ //#region src/actions/get-marketing-preferences.ts
4
+ const MoreTreesGetMarketingPreferencesInput = z.object({});
5
+ const MoreTreesGetMarketingPreferences_MarketingPreferenceSchema = z.object({
6
+ id: z.string().describe("Unique identifier for the marketing preference"),
7
+ name: z.string().describe("Display name of the marketing preference")
8
+ });
9
+ const moreTreesGetMarketingPreferences = action("MORE_TREES_GET_MARKETING_PREFERENCES", {
10
+ slug: "more_trees-get-marketing-preferences",
11
+ name: "Get Marketing Preferences",
12
+ description: "Tool to retrieve available marketing preferences. Use when you need to get the list of marketing preference options that users can select.",
13
+ input: MoreTreesGetMarketingPreferencesInput,
14
+ output: z.object({ preferences: z.array(MoreTreesGetMarketingPreferences_MarketingPreferenceSchema).describe("List of available marketing preferences") })
15
+ });
16
+ //#endregion
17
+ export { moreTreesGetMarketingPreferences };
18
+
19
+ //# sourceMappingURL=get-marketing-preferences.mjs.map
@@ -0,0 +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.ZodTypeAny = z.object({});\nconst MoreTreesGetMarketingPreferences_MarketingPreferenceSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier for the marketing preference\"),\n name: z.string().describe(\"Display name of the marketing preference\"),\n});\nexport const MoreTreesGetMarketingPreferencesOutput: z.ZodTypeAny = z.object({\n preferences: z.array(MoreTreesGetMarketingPreferences_MarketingPreferenceSchema).describe(\"List of available marketing preferences\"),\n});\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,wCAAsD,EAAE,OAAO,CAAC,CAAC;AAC9E,MAAM,6DAA2E,EAAE,OAAO;CACxF,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD;CACxE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C;AACtE,CAAC;AAKD,MAAa,mCAAmC,OAAO,wCAAwC;CAC7F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATkE,EAAE,OAAO,EAC3E,aAAa,EAAE,MAAM,0DAA0D,CAAC,CAAC,SAAS,yCAAyC,EACrI,CAOU;AACV,CAAC"}
@@ -0,0 +1,28 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/get-total-carbon-offset.ts
4
+ const MoreTreesGetTotalCarbonOffsetInput = zod.z.object({ forest_slug_or_account_code: zod.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.") });
5
+ const MoreTreesGetTotalCarbonOffset_ForestTotalsSchema = zod.z.object({
6
+ co2_captured: zod.z.number().describe("Total amount of CO2 captured in kg"),
7
+ trees_gifted: zod.z.number().int().describe("Total number of trees gifted to others"),
8
+ trees_planted: zod.z.number().int().describe("Total number of trees planted in this forest"),
9
+ trees_received: zod.z.number().int().describe("Total number of trees received as gifts"),
10
+ projects_supported: zod.z.number().int().describe("Total number of tree planting projects supported")
11
+ });
12
+ const MoreTreesGetTotalCarbonOffsetOutput = zod.z.object({
13
+ totals: MoreTreesGetTotalCarbonOffset_ForestTotalsSchema.nullable(),
14
+ logo_url: zod.z.string().describe("URL of the forest's logo image"),
15
+ brand_color: zod.z.string().describe("Brand color in hexadecimal format (e.g., '#000000')"),
16
+ forest_name: zod.z.string().describe("Display name of the forest")
17
+ });
18
+ const moreTreesGetTotalCarbonOffset = require_action.action("MORE_TREES_GET_TOTAL_CARBON_OFFSET", {
19
+ slug: "more_trees-get-total-carbon-offset",
20
+ name: "Get Total Carbon Offset",
21
+ 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.",
22
+ input: MoreTreesGetTotalCarbonOffsetInput,
23
+ output: MoreTreesGetTotalCarbonOffsetOutput
24
+ });
25
+ //#endregion
26
+ exports.moreTreesGetTotalCarbonOffset = moreTreesGetTotalCarbonOffset;
27
+
28
+ //# sourceMappingURL=get-total-carbon-offset.cjs.map
@@ -0,0 +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.ZodTypeAny = 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.ZodTypeAny = z.object({\n co2_captured: z.number().describe(\"Total amount of CO2 captured in kg\"),\n trees_gifted: z.number().int().describe(\"Total number of trees gifted to others\"),\n trees_planted: z.number().int().describe(\"Total number of trees planted in this forest\"),\n trees_received: z.number().int().describe(\"Total number of trees received as gifts\"),\n projects_supported: z.number().int().describe(\"Total number of tree planting projects supported\"),\n});\nexport const MoreTreesGetTotalCarbonOffsetOutput: z.ZodTypeAny = z.object({\n totals: MoreTreesGetTotalCarbonOffset_ForestTotalsSchema.nullable(),\n logo_url: z.string().describe(\"URL of the forest's logo image\"),\n brand_color: z.string().describe(\"Brand color in hexadecimal format (e.g., '#000000')\"),\n forest_name: z.string().describe(\"Display name of the forest\"),\n});\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,qCAAmDA,IAAAA,EAAE,OAAO,EACvE,6BAA6BA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sMAAsM,EACzP,CAAC;AACD,MAAM,mDAAiEA,IAAAA,EAAE,OAAO;CAC9E,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC;CACtE,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wCAAwC;CAChF,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8CAA8C;CACvF,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yCAAyC;CACnF,oBAAoBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kDAAkD;AAClG,CAAC;AACD,MAAa,sCAAoDA,IAAAA,EAAE,OAAO;CACxE,QAAQ,iDAAiD,SAAS;CAClE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC;CAC9D,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD;CACtF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B;AAC/D,CAAC;AAED,MAAa,gCAAgCC,eAAAA,OAAO,sCAAsC;CACxF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/get-total-carbon-offset.d.ts
4
+ declare const MoreTreesGetTotalCarbonOffsetInput: z.ZodTypeAny;
5
+ declare const MoreTreesGetTotalCarbonOffsetOutput: z.ZodTypeAny;
6
+ declare const moreTreesGetTotalCarbonOffset: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { moreTreesGetTotalCarbonOffset };
9
+ //# sourceMappingURL=get-total-carbon-offset.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-total-carbon-offset.d.cts","names":[],"sources":["../../src/actions/get-total-carbon-offset.ts"],"mappings":";;;cAIa,kCAAA,EAAoC,CAAA,CAAE,UAEjD;AAAA,cAQW,mCAAA,EAAqC,CAAA,CAAE,UAKlD;AAAA,cAEW,6BAAA,gCAA6B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/get-total-carbon-offset.d.ts
4
+ declare const MoreTreesGetTotalCarbonOffsetInput: z.ZodTypeAny;
5
+ declare const MoreTreesGetTotalCarbonOffsetOutput: z.ZodTypeAny;
6
+ declare const moreTreesGetTotalCarbonOffset: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { moreTreesGetTotalCarbonOffset };
9
+ //# sourceMappingURL=get-total-carbon-offset.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-total-carbon-offset.d.mts","names":[],"sources":["../../src/actions/get-total-carbon-offset.ts"],"mappings":";;;cAIa,kCAAA,EAAoC,CAAA,CAAE,UAEjD;AAAA,cAQW,mCAAA,EAAqC,CAAA,CAAE,UAKlD;AAAA,cAEW,6BAAA,gCAA6B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,27 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ //#region src/actions/get-total-carbon-offset.ts
4
+ const MoreTreesGetTotalCarbonOffsetInput = z.object({ 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.") });
5
+ const MoreTreesGetTotalCarbonOffset_ForestTotalsSchema = z.object({
6
+ co2_captured: z.number().describe("Total amount of CO2 captured in kg"),
7
+ trees_gifted: z.number().int().describe("Total number of trees gifted to others"),
8
+ trees_planted: z.number().int().describe("Total number of trees planted in this forest"),
9
+ trees_received: z.number().int().describe("Total number of trees received as gifts"),
10
+ projects_supported: z.number().int().describe("Total number of tree planting projects supported")
11
+ });
12
+ const moreTreesGetTotalCarbonOffset = action("MORE_TREES_GET_TOTAL_CARBON_OFFSET", {
13
+ slug: "more_trees-get-total-carbon-offset",
14
+ name: "Get Total Carbon Offset",
15
+ 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.",
16
+ input: MoreTreesGetTotalCarbonOffsetInput,
17
+ output: z.object({
18
+ totals: MoreTreesGetTotalCarbonOffset_ForestTotalsSchema.nullable(),
19
+ logo_url: z.string().describe("URL of the forest's logo image"),
20
+ brand_color: z.string().describe("Brand color in hexadecimal format (e.g., '#000000')"),
21
+ forest_name: z.string().describe("Display name of the forest")
22
+ })
23
+ });
24
+ //#endregion
25
+ export { moreTreesGetTotalCarbonOffset };
26
+
27
+ //# sourceMappingURL=get-total-carbon-offset.mjs.map
@@ -0,0 +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.ZodTypeAny = 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.ZodTypeAny = z.object({\n co2_captured: z.number().describe(\"Total amount of CO2 captured in kg\"),\n trees_gifted: z.number().int().describe(\"Total number of trees gifted to others\"),\n trees_planted: z.number().int().describe(\"Total number of trees planted in this forest\"),\n trees_received: z.number().int().describe(\"Total number of trees received as gifts\"),\n projects_supported: z.number().int().describe(\"Total number of tree planting projects supported\"),\n});\nexport const MoreTreesGetTotalCarbonOffsetOutput: z.ZodTypeAny = z.object({\n totals: MoreTreesGetTotalCarbonOffset_ForestTotalsSchema.nullable(),\n logo_url: z.string().describe(\"URL of the forest's logo image\"),\n brand_color: z.string().describe(\"Brand color in hexadecimal format (e.g., '#000000')\"),\n forest_name: z.string().describe(\"Display name of the forest\"),\n});\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,qCAAmD,EAAE,OAAO,EACvE,6BAA6B,EAAE,OAAO,CAAC,CAAC,SAAS,sMAAsM,EACzP,CAAC;AACD,MAAM,mDAAiE,EAAE,OAAO;CAC9E,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC;CACtE,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wCAAwC;CAChF,eAAe,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8CAA8C;CACvF,gBAAgB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yCAAyC;CACnF,oBAAoB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kDAAkD;AAClG,CAAC;AAQD,MAAa,gCAAgC,OAAO,sCAAsC;CACxF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAZ+D,EAAE,OAAO;EACxE,QAAQ,iDAAiD,SAAS;EAClE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC;EAC9D,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD;EACtF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B;CAC/D,CAOU;AACV,CAAC"}
@@ -0,0 +1,9 @@
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
+ const require_create_user = require("./create-user.cjs");
3
+ const require_get_marketing_preferences = require("./get-marketing-preferences.cjs");
4
+ const require_get_total_carbon_offset = require("./get-total-carbon-offset.cjs");
5
+ const require_list_projects = require("./list-projects.cjs");
6
+ exports.moreTreesCreateUser = require_create_user.moreTreesCreateUser;
7
+ exports.moreTreesGetMarketingPreferences = require_get_marketing_preferences.moreTreesGetMarketingPreferences;
8
+ exports.moreTreesGetTotalCarbonOffset = require_get_total_carbon_offset.moreTreesGetTotalCarbonOffset;
9
+ exports.moreTreesListProjects = require_list_projects.moreTreesListProjects;
@@ -0,0 +1,5 @@
1
+ import { moreTreesCreateUser } from "./create-user.cjs";
2
+ import { moreTreesGetMarketingPreferences } from "./get-marketing-preferences.cjs";
3
+ import { moreTreesGetTotalCarbonOffset } from "./get-total-carbon-offset.cjs";
4
+ import { moreTreesListProjects } from "./list-projects.cjs";
5
+ export { moreTreesCreateUser, moreTreesGetMarketingPreferences, moreTreesGetTotalCarbonOffset, moreTreesListProjects };
@@ -0,0 +1,5 @@
1
+ import { moreTreesCreateUser } from "./create-user.mjs";
2
+ import { moreTreesGetMarketingPreferences } from "./get-marketing-preferences.mjs";
3
+ import { moreTreesGetTotalCarbonOffset } from "./get-total-carbon-offset.mjs";
4
+ import { moreTreesListProjects } from "./list-projects.mjs";
5
+ export { moreTreesCreateUser, moreTreesGetMarketingPreferences, moreTreesGetTotalCarbonOffset, moreTreesListProjects };
@@ -0,0 +1,5 @@
1
+ import { moreTreesCreateUser } from "./create-user.mjs";
2
+ import { moreTreesGetMarketingPreferences } from "./get-marketing-preferences.mjs";
3
+ import { moreTreesGetTotalCarbonOffset } from "./get-total-carbon-offset.mjs";
4
+ import { moreTreesListProjects } from "./list-projects.mjs";
5
+ export { moreTreesCreateUser, moreTreesGetMarketingPreferences, moreTreesGetTotalCarbonOffset, moreTreesListProjects };
@@ -0,0 +1,39 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/list-projects.ts
4
+ const MoreTreesListProjectsInput = zod.z.object({});
5
+ const MoreTreesListProjects_TreeSchema = zod.z.object({
6
+ id: zod.z.number().int().describe("Unique identifier for the tree species"),
7
+ name: zod.z.string().describe("Name of the tree species"),
8
+ "default": zod.z.boolean().describe("Whether this is the default tree for the project"),
9
+ tonnes_co2: zod.z.number().describe("Amount of CO2 captured by this tree in tonnes"),
10
+ tree_image: zod.z.string().describe("URL of the tree species image"),
11
+ description: zod.z.string().describe("Description of the tree species").nullable().optional(),
12
+ credits_required: zod.z.number().describe("Number of credits required to plant this tree")
13
+ });
14
+ const MoreTreesListProjects_ProjectSchema = zod.z.object({
15
+ id: zod.z.number().int().describe("Unique identifier for the project"),
16
+ name: zod.z.string().describe("Name of the project"),
17
+ trees: zod.z.array(MoreTreesListProjects_TreeSchema).describe("List of tree species available for planting in this project"),
18
+ country: zod.z.string().describe("Country where the project is located"),
19
+ "default": zod.z.boolean().describe("Whether this is the default project"),
20
+ description: zod.z.string().describe("Description of the project"),
21
+ project_type: zod.z.string().describe("Type of the project (e.g., reforestation, conservation)"),
22
+ project_image: zod.z.string().describe("URL of the project image"),
23
+ supplier_name: zod.z.string().describe("Name of the project supplier or partner organization")
24
+ });
25
+ const MoreTreesListProjectsOutput = zod.z.object({
26
+ data: zod.z.array(MoreTreesListProjects_ProjectSchema).describe("List of all active projects with their details"),
27
+ total: zod.z.number().int().describe("Total number of projects returned")
28
+ });
29
+ const moreTreesListProjects = require_action.action("MORE_TREES_LIST_PROJECTS", {
30
+ slug: "more_trees-list-projects",
31
+ name: "List Projects",
32
+ 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.",
33
+ input: MoreTreesListProjectsInput,
34
+ output: MoreTreesListProjectsOutput
35
+ });
36
+ //#endregion
37
+ exports.moreTreesListProjects = moreTreesListProjects;
38
+
39
+ //# sourceMappingURL=list-projects.cjs.map
@@ -0,0 +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.ZodTypeAny = z.object({});\nconst MoreTreesListProjects_TreeSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique identifier for the tree species\"),\n name: z.string().describe(\"Name of the tree species\"),\n \"default\": z.boolean().describe(\"Whether this is the default tree for the project\"),\n tonnes_co2: z.number().describe(\"Amount of CO2 captured by this tree in tonnes\"),\n tree_image: z.string().describe(\"URL of the tree species image\"),\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\"),\n});\nconst MoreTreesListProjects_ProjectSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique identifier for the project\"),\n name: z.string().describe(\"Name of the project\"),\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\"),\n \"default\": z.boolean().describe(\"Whether this is the default project\"),\n description: z.string().describe(\"Description of the project\"),\n project_type: z.string().describe(\"Type of the project (e.g., reforestation, conservation)\"),\n project_image: z.string().describe(\"URL of the project image\"),\n supplier_name: z.string().describe(\"Name of the project supplier or partner organization\"),\n});\nexport const MoreTreesListProjectsOutput: z.ZodTypeAny = 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\"),\n});\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,6BAA2CA,IAAAA,EAAE,OAAO,CAAC,CAAC;AACnE,MAAM,mCAAiDA,IAAAA,EAAE,OAAO;CAC9D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wCAAwC;CACtE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B;CACpD,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,kDAAkD;CAClF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C;CAC/E,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B;CAC/D,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxF,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C;AACvF,CAAC;AACD,MAAM,sCAAoDA,IAAAA,EAAE,OAAO;CACjE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mCAAmC;CACjE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB;CAC/C,OAAOA,IAAAA,EAAE,MAAM,gCAAgC,CAAC,CAAC,SAAS,6DAA6D;CACvH,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC;CACnE,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,qCAAqC;CACrE,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B;CAC7D,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD;CAC3F,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B;CAC7D,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD;AAC3F,CAAC;AACD,MAAa,8BAA4CA,IAAAA,EAAE,OAAO;CAChE,MAAMA,IAAAA,EAAE,MAAM,mCAAmC,CAAC,CAAC,SAAS,gDAAgD;CAC5G,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mCAAmC;AACtE,CAAC;AAED,MAAa,wBAAwBC,eAAAA,OAAO,4BAA4B;CACtE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/list-projects.d.ts
4
+ declare const MoreTreesListProjectsInput: z.ZodTypeAny;
5
+ declare const MoreTreesListProjectsOutput: z.ZodTypeAny;
6
+ declare const moreTreesListProjects: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { moreTreesListProjects };
9
+ //# sourceMappingURL=list-projects.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-projects.d.cts","names":[],"sources":["../../src/actions/list-projects.ts"],"mappings":";;;cAIa,0BAAA,EAA4B,CAAA,CAAE,UAAyB;AAAA,cAqBvD,2BAAA,EAA6B,CAAA,CAAE,UAG1C;AAAA,cAEW,qBAAA,gCAAqB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/list-projects.d.ts
4
+ declare const MoreTreesListProjectsInput: z.ZodTypeAny;
5
+ declare const MoreTreesListProjectsOutput: z.ZodTypeAny;
6
+ declare const moreTreesListProjects: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { moreTreesListProjects };
9
+ //# sourceMappingURL=list-projects.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-projects.d.mts","names":[],"sources":["../../src/actions/list-projects.ts"],"mappings":";;;cAIa,0BAAA,EAA4B,CAAA,CAAE,UAAyB;AAAA,cAqBvD,2BAAA,EAA6B,CAAA,CAAE,UAG1C;AAAA,cAEW,qBAAA,gCAAqB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,38 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ //#region src/actions/list-projects.ts
4
+ const MoreTreesListProjectsInput = z.object({});
5
+ const MoreTreesListProjects_TreeSchema = z.object({
6
+ id: z.number().int().describe("Unique identifier for the tree species"),
7
+ name: z.string().describe("Name of the tree species"),
8
+ "default": z.boolean().describe("Whether this is the default tree for the project"),
9
+ tonnes_co2: z.number().describe("Amount of CO2 captured by this tree in tonnes"),
10
+ tree_image: z.string().describe("URL of the tree species image"),
11
+ description: z.string().describe("Description of the tree species").nullable().optional(),
12
+ credits_required: z.number().describe("Number of credits required to plant this tree")
13
+ });
14
+ const MoreTreesListProjects_ProjectSchema = z.object({
15
+ id: z.number().int().describe("Unique identifier for the project"),
16
+ name: z.string().describe("Name of the project"),
17
+ trees: z.array(MoreTreesListProjects_TreeSchema).describe("List of tree species available for planting in this project"),
18
+ country: z.string().describe("Country where the project is located"),
19
+ "default": z.boolean().describe("Whether this is the default project"),
20
+ description: z.string().describe("Description of the project"),
21
+ project_type: z.string().describe("Type of the project (e.g., reforestation, conservation)"),
22
+ project_image: z.string().describe("URL of the project image"),
23
+ supplier_name: z.string().describe("Name of the project supplier or partner organization")
24
+ });
25
+ const moreTreesListProjects = action("MORE_TREES_LIST_PROJECTS", {
26
+ slug: "more_trees-list-projects",
27
+ name: "List Projects",
28
+ 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.",
29
+ input: MoreTreesListProjectsInput,
30
+ output: z.object({
31
+ data: z.array(MoreTreesListProjects_ProjectSchema).describe("List of all active projects with their details"),
32
+ total: z.number().int().describe("Total number of projects returned")
33
+ })
34
+ });
35
+ //#endregion
36
+ export { moreTreesListProjects };
37
+
38
+ //# sourceMappingURL=list-projects.mjs.map
@@ -0,0 +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.ZodTypeAny = z.object({});\nconst MoreTreesListProjects_TreeSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique identifier for the tree species\"),\n name: z.string().describe(\"Name of the tree species\"),\n \"default\": z.boolean().describe(\"Whether this is the default tree for the project\"),\n tonnes_co2: z.number().describe(\"Amount of CO2 captured by this tree in tonnes\"),\n tree_image: z.string().describe(\"URL of the tree species image\"),\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\"),\n});\nconst MoreTreesListProjects_ProjectSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique identifier for the project\"),\n name: z.string().describe(\"Name of the project\"),\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\"),\n \"default\": z.boolean().describe(\"Whether this is the default project\"),\n description: z.string().describe(\"Description of the project\"),\n project_type: z.string().describe(\"Type of the project (e.g., reforestation, conservation)\"),\n project_image: z.string().describe(\"URL of the project image\"),\n supplier_name: z.string().describe(\"Name of the project supplier or partner organization\"),\n});\nexport const MoreTreesListProjectsOutput: z.ZodTypeAny = 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\"),\n});\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,6BAA2C,EAAE,OAAO,CAAC,CAAC;AACnE,MAAM,mCAAiD,EAAE,OAAO;CAC9D,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wCAAwC;CACtE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B;CACpD,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS,kDAAkD;CAClF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C;CAC/E,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B;CAC/D,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxF,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C;AACvF,CAAC;AACD,MAAM,sCAAoD,EAAE,OAAO;CACjE,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mCAAmC;CACjE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB;CAC/C,OAAO,EAAE,MAAM,gCAAgC,CAAC,CAAC,SAAS,6DAA6D;CACvH,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC;CACnE,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS,qCAAqC;CACrE,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B;CAC7D,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD;CAC3F,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B;CAC7D,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD;AAC3F,CAAC;AAMD,MAAa,wBAAwB,OAAO,4BAA4B;CACtE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAVuD,EAAE,OAAO;EAChE,MAAM,EAAE,MAAM,mCAAmC,CAAC,CAAC,SAAS,gDAAgD;EAC5G,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mCAAmC;CACtE,CAOU;AACV,CAAC"}
package/dist/app.cjs ADDED
@@ -0,0 +1,9 @@
1
+ //#region src/app.ts
2
+ const moreTrees = (0, require("@keystrokehq/keystroke/app").defineApp)({
3
+ slug: "more_trees",
4
+ auth: "keystroke"
5
+ });
6
+ //#endregion
7
+ exports.moreTrees = moreTrees;
8
+
9
+ //# sourceMappingURL=app.cjs.map
@@ -0,0 +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"}
package/dist/app.d.cts ADDED
@@ -0,0 +1,5 @@
1
+ //#region src/app.d.ts
2
+ declare const moreTrees: import("@keystrokehq/app").App<import("@keystrokehq/shared").Credential>;
3
+ //#endregion
4
+ export { moreTrees };
5
+ //# sourceMappingURL=app.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"app.d.cts","names":[],"sources":["../src/app.ts"],"mappings":";cAEa,SAAA,6BAAS,GAAA,+BAAA,UAAA"}
package/dist/app.d.mts ADDED
@@ -0,0 +1,5 @@
1
+ //#region src/app.d.ts
2
+ declare const moreTrees: import("@keystrokehq/app").App<import("@keystrokehq/shared").Credential>;
3
+ //#endregion
4
+ export { moreTrees };
5
+ //# sourceMappingURL=app.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"app.d.mts","names":[],"sources":["../src/app.ts"],"mappings":";cAEa,SAAA,6BAAS,GAAA,+BAAA,UAAA"}
package/dist/app.mjs ADDED
@@ -0,0 +1,10 @@
1
+ import { defineApp } from "@keystrokehq/keystroke/app";
2
+ //#region src/app.ts
3
+ const moreTrees = defineApp({
4
+ slug: "more_trees",
5
+ auth: "keystroke"
6
+ });
7
+ //#endregion
8
+ export { moreTrees };
9
+
10
+ //# sourceMappingURL=app.mjs.map
@@ -0,0 +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"}
@@ -0,0 +1,15 @@
1
+ //#region src/catalog.ts
2
+ /** Generated — kept in sync with src/app.ts. */
3
+ const moreTreesCatalog = {
4
+ "slug": "more_trees",
5
+ "name": "More Trees",
6
+ "description": "More Trees is a sustainability-focused platform planting trees on behalf of individuals or businesses aiming to offset carbon footprints and support reforestation",
7
+ "category": "News & Lifestyle",
8
+ "logo": "https://logos.composio.dev/api/more_trees",
9
+ "authKind": "keystroke",
10
+ "oauthScopes": []
11
+ };
12
+ //#endregion
13
+ exports.moreTreesCatalog = moreTreesCatalog;
14
+
15
+ //# sourceMappingURL=catalog.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"catalog.cjs","names":[],"sources":["../src/catalog.ts"],"sourcesContent":["/** Generated — kept in sync with src/app.ts. */\nexport const moreTreesCatalog = {\n \"slug\": \"more_trees\",\n \"name\": \"More Trees\",\n \"description\": \"More Trees is a sustainability-focused platform planting trees on behalf of individuals or businesses aiming to offset carbon footprints and support reforestation\",\n \"category\": \"News & Lifestyle\",\n \"logo\": \"https://logos.composio.dev/api/more_trees\",\n \"authKind\": \"keystroke\",\n \"oauthScopes\": []\n} as const;\n"],"mappings":";;AACA,MAAa,mBAAmB;CAC9B,QAAQ;CACR,QAAQ;CACR,eAAe;CACf,YAAY;CACZ,QAAQ;CACR,YAAY;CACZ,eAAe,CAAC;AAClB"}
@@ -0,0 +1,14 @@
1
+ //#region src/catalog.d.ts
2
+ /** Generated — kept in sync with src/app.ts. */
3
+ declare const moreTreesCatalog: {
4
+ readonly slug: "more_trees";
5
+ readonly name: "More Trees";
6
+ readonly description: "More Trees is a sustainability-focused platform planting trees on behalf of individuals or businesses aiming to offset carbon footprints and support reforestation";
7
+ readonly category: "News & Lifestyle";
8
+ readonly logo: "https://logos.composio.dev/api/more_trees";
9
+ readonly authKind: "keystroke";
10
+ readonly oauthScopes: readonly [];
11
+ };
12
+ //#endregion
13
+ export { moreTreesCatalog };
14
+ //# sourceMappingURL=catalog.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"catalog.d.cts","names":[],"sources":["../src/catalog.ts"],"mappings":";;cACa,gBAAA;EAAA"}
@@ -0,0 +1,14 @@
1
+ //#region src/catalog.d.ts
2
+ /** Generated — kept in sync with src/app.ts. */
3
+ declare const moreTreesCatalog: {
4
+ readonly slug: "more_trees";
5
+ readonly name: "More Trees";
6
+ readonly description: "More Trees is a sustainability-focused platform planting trees on behalf of individuals or businesses aiming to offset carbon footprints and support reforestation";
7
+ readonly category: "News & Lifestyle";
8
+ readonly logo: "https://logos.composio.dev/api/more_trees";
9
+ readonly authKind: "keystroke";
10
+ readonly oauthScopes: readonly [];
11
+ };
12
+ //#endregion
13
+ export { moreTreesCatalog };
14
+ //# sourceMappingURL=catalog.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"catalog.d.mts","names":[],"sources":["../src/catalog.ts"],"mappings":";;cACa,gBAAA;EAAA"}
@@ -0,0 +1,15 @@
1
+ //#region src/catalog.ts
2
+ /** Generated — kept in sync with src/app.ts. */
3
+ const moreTreesCatalog = {
4
+ "slug": "more_trees",
5
+ "name": "More Trees",
6
+ "description": "More Trees is a sustainability-focused platform planting trees on behalf of individuals or businesses aiming to offset carbon footprints and support reforestation",
7
+ "category": "News & Lifestyle",
8
+ "logo": "https://logos.composio.dev/api/more_trees",
9
+ "authKind": "keystroke",
10
+ "oauthScopes": []
11
+ };
12
+ //#endregion
13
+ export { moreTreesCatalog };
14
+
15
+ //# sourceMappingURL=catalog.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"catalog.mjs","names":[],"sources":["../src/catalog.ts"],"sourcesContent":["/** Generated — kept in sync with src/app.ts. */\nexport const moreTreesCatalog = {\n \"slug\": \"more_trees\",\n \"name\": \"More Trees\",\n \"description\": \"More Trees is a sustainability-focused platform planting trees on behalf of individuals or businesses aiming to offset carbon footprints and support reforestation\",\n \"category\": \"News & Lifestyle\",\n \"logo\": \"https://logos.composio.dev/api/more_trees\",\n \"authKind\": \"keystroke\",\n \"oauthScopes\": []\n} as const;\n"],"mappings":";;AACA,MAAa,mBAAmB;CAC9B,QAAQ;CACR,QAAQ;CACR,eAAe;CACf,YAAY;CACZ,QAAQ;CACR,YAAY;CACZ,eAAe,CAAC;AAClB"}
@@ -0,0 +1,18 @@
1
+ let _keystrokehq_keystroke_client = require("@keystrokehq/keystroke/client");
2
+ //#region src/execute.ts
3
+ const APP_SLUG = "more_trees";
4
+ /** Pinned app version — updated on regeneration. */
5
+ const APP_VERSION = "20260615_00";
6
+ async function executeMoreTreesTool(tool, args) {
7
+ const { result } = await (0, _keystrokehq_keystroke_client.createKeystrokeClient)().tools.execute({
8
+ app: APP_SLUG,
9
+ tool,
10
+ arguments: args,
11
+ version: APP_VERSION
12
+ });
13
+ return result;
14
+ }
15
+ //#endregion
16
+ exports.executeMoreTreesTool = executeMoreTreesTool;
17
+
18
+ //# sourceMappingURL=execute.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"execute.cjs","names":[],"sources":["../src/execute.ts"],"sourcesContent":["import { createKeystrokeClient } from \"@keystrokehq/keystroke/client\";\n\nconst APP_SLUG = \"more_trees\";\n/** Pinned app version — updated on regeneration. */\nconst APP_VERSION = \"20260615_00\";\n\nexport async function executeMoreTreesTool(\n tool: string,\n args: Record<string, unknown>,\n): Promise<unknown> {\n const { result } = await createKeystrokeClient().tools.execute({\n app: APP_SLUG,\n tool,\n arguments: args,\n version: APP_VERSION,\n });\n return result;\n}\n"],"mappings":";;AAEA,MAAM,WAAW;;AAEjB,MAAM,cAAc;AAEpB,eAAsB,qBACpB,MACA,MACkB;CAClB,MAAM,EAAE,WAAW,OAAA,GAAA,8BAAA,sBAAA,CAA4B,CAAC,CAAC,MAAM,QAAQ;EAC7D,KAAK;EACL;EACA,WAAW;EACX,SAAS;CACX,CAAC;CACD,OAAO;AACT"}
@@ -0,0 +1,18 @@
1
+ import { createKeystrokeClient } from "@keystrokehq/keystroke/client";
2
+ //#region src/execute.ts
3
+ const APP_SLUG = "more_trees";
4
+ /** Pinned app version — updated on regeneration. */
5
+ const APP_VERSION = "20260615_00";
6
+ async function executeMoreTreesTool(tool, args) {
7
+ const { result } = await createKeystrokeClient().tools.execute({
8
+ app: APP_SLUG,
9
+ tool,
10
+ arguments: args,
11
+ version: APP_VERSION
12
+ });
13
+ return result;
14
+ }
15
+ //#endregion
16
+ export { executeMoreTreesTool };
17
+
18
+ //# sourceMappingURL=execute.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"execute.mjs","names":[],"sources":["../src/execute.ts"],"sourcesContent":["import { createKeystrokeClient } from \"@keystrokehq/keystroke/client\";\n\nconst APP_SLUG = \"more_trees\";\n/** Pinned app version — updated on regeneration. */\nconst APP_VERSION = \"20260615_00\";\n\nexport async function executeMoreTreesTool(\n tool: string,\n args: Record<string, unknown>,\n): Promise<unknown> {\n const { result } = await createKeystrokeClient().tools.execute({\n app: APP_SLUG,\n tool,\n arguments: args,\n version: APP_VERSION,\n });\n return result;\n}\n"],"mappings":";;AAEA,MAAM,WAAW;;AAEjB,MAAM,cAAc;AAEpB,eAAsB,qBACpB,MACA,MACkB;CAClB,MAAM,EAAE,WAAW,MAAM,sBAAsB,CAAC,CAAC,MAAM,QAAQ;EAC7D,KAAK;EACL;EACA,WAAW;EACX,SAAS;CACX,CAAC;CACD,OAAO;AACT"}
package/dist/index.cjs ADDED
@@ -0,0 +1,14 @@
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
+ const require_app = require("./app.cjs");
3
+ const require_catalog = require("./catalog.cjs");
4
+ const require_create_user = require("./actions/create-user.cjs");
5
+ const require_get_marketing_preferences = require("./actions/get-marketing-preferences.cjs");
6
+ const require_get_total_carbon_offset = require("./actions/get-total-carbon-offset.cjs");
7
+ const require_list_projects = require("./actions/list-projects.cjs");
8
+ require("./actions/index.cjs");
9
+ exports.moreTrees = require_app.moreTrees;
10
+ exports.moreTreesCatalog = require_catalog.moreTreesCatalog;
11
+ exports.moreTreesCreateUser = require_create_user.moreTreesCreateUser;
12
+ exports.moreTreesGetMarketingPreferences = require_get_marketing_preferences.moreTreesGetMarketingPreferences;
13
+ exports.moreTreesGetTotalCarbonOffset = require_get_total_carbon_offset.moreTreesGetTotalCarbonOffset;
14
+ exports.moreTreesListProjects = require_list_projects.moreTreesListProjects;
@@ -0,0 +1,7 @@
1
+ import { moreTreesCreateUser } from "./actions/create-user.cjs";
2
+ import { moreTreesGetMarketingPreferences } from "./actions/get-marketing-preferences.cjs";
3
+ import { moreTreesGetTotalCarbonOffset } from "./actions/get-total-carbon-offset.cjs";
4
+ import { moreTreesListProjects } from "./actions/list-projects.cjs";
5
+ import { moreTrees } from "./app.cjs";
6
+ import { moreTreesCatalog } from "./catalog.cjs";
7
+ export { moreTrees, moreTreesCatalog, moreTreesCreateUser, moreTreesGetMarketingPreferences, moreTreesGetTotalCarbonOffset, moreTreesListProjects };
@@ -0,0 +1,7 @@
1
+ import { moreTreesCreateUser } from "./actions/create-user.mjs";
2
+ import { moreTreesGetMarketingPreferences } from "./actions/get-marketing-preferences.mjs";
3
+ import { moreTreesGetTotalCarbonOffset } from "./actions/get-total-carbon-offset.mjs";
4
+ import { moreTreesListProjects } from "./actions/list-projects.mjs";
5
+ import { moreTrees } from "./app.mjs";
6
+ import { moreTreesCatalog } from "./catalog.mjs";
7
+ export { moreTrees, moreTreesCatalog, moreTreesCreateUser, moreTreesGetMarketingPreferences, moreTreesGetTotalCarbonOffset, moreTreesListProjects };
package/dist/index.mjs ADDED
@@ -0,0 +1,8 @@
1
+ import { moreTrees } from "./app.mjs";
2
+ import { moreTreesCatalog } from "./catalog.mjs";
3
+ import { moreTreesCreateUser } from "./actions/create-user.mjs";
4
+ import { moreTreesGetMarketingPreferences } from "./actions/get-marketing-preferences.mjs";
5
+ import { moreTreesGetTotalCarbonOffset } from "./actions/get-total-carbon-offset.mjs";
6
+ import { moreTreesListProjects } from "./actions/list-projects.mjs";
7
+ import "./actions/index.mjs";
8
+ export { moreTrees, moreTreesCatalog, moreTreesCreateUser, moreTreesGetMarketingPreferences, moreTreesGetTotalCarbonOffset, moreTreesListProjects };
package/package.json ADDED
@@ -0,0 +1,49 @@
1
+ {
2
+ "name": "@keystrokehq/more_trees",
3
+ "version": "0.1.0",
4
+ "publishConfig": {
5
+ "access": "public",
6
+ "registry": "https://registry.npmjs.org"
7
+ },
8
+ "repository": {
9
+ "type": "git",
10
+ "url": "git+https://github.com/keystrokehq/keystroke.git",
11
+ "directory": "packages/integrations/more_trees"
12
+ },
13
+ "files": [
14
+ "dist"
15
+ ],
16
+ "sideEffects": false,
17
+ "type": "module",
18
+ "main": "./dist/index.cjs",
19
+ "module": "./dist/index.mjs",
20
+ "types": "./dist/index.d.mts",
21
+ "exports": {
22
+ ".": {
23
+ "types": "./dist/index.d.mts",
24
+ "import": "./dist/index.mjs",
25
+ "require": "./dist/index.cjs"
26
+ },
27
+ "./actions": {
28
+ "types": "./dist/actions/index.d.mts",
29
+ "import": "./dist/actions/index.mjs",
30
+ "require": "./dist/actions/index.cjs"
31
+ }
32
+ },
33
+ "peerDependencies": {
34
+ "@keystrokehq/keystroke": "^0.1.4",
35
+ "zod": "^4.4.3"
36
+ },
37
+ "devDependencies": {
38
+ "@keystrokehq/keystroke": "link:../../keystroke",
39
+ "@types/node": "^25.9.1",
40
+ "tsdown": "^0.22.0",
41
+ "typescript": "^6.0.3",
42
+ "zod": "^4.4.3"
43
+ },
44
+ "scripts": {
45
+ "build": "tsdown",
46
+ "dev": "tsdown --watch --no-clean",
47
+ "typecheck": "tsc --noEmit"
48
+ }
49
+ }