@keystrokehq/more_trees 0.1.2 → 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/actions/create-user.cjs +1 -1
- package/dist/actions/create-user.cjs.map +1 -1
- package/dist/actions/create-user.d.cts +1 -1
- package/dist/actions/create-user.d.mts +1 -1
- package/dist/actions/create-user.mjs +1 -1
- package/dist/actions/create-user.mjs.map +1 -1
- package/dist/actions/get-marketing-preferences.cjs +2 -2
- package/dist/actions/get-marketing-preferences.cjs.map +1 -1
- package/dist/actions/get-marketing-preferences.d.cts +2 -2
- package/dist/actions/get-marketing-preferences.d.mts +2 -2
- package/dist/actions/get-marketing-preferences.mjs +2 -2
- package/dist/actions/get-marketing-preferences.mjs.map +1 -1
- package/dist/actions/get-total-carbon-offset.cjs +2 -2
- package/dist/actions/get-total-carbon-offset.cjs.map +1 -1
- package/dist/actions/get-total-carbon-offset.d.cts +2 -2
- package/dist/actions/get-total-carbon-offset.d.mts +2 -2
- package/dist/actions/get-total-carbon-offset.mjs +2 -2
- package/dist/actions/get-total-carbon-offset.mjs.map +1 -1
- package/dist/actions/list-projects.cjs +3 -3
- package/dist/actions/list-projects.cjs.map +1 -1
- package/dist/actions/list-projects.d.cts +3 -3
- package/dist/actions/list-projects.d.mts +3 -3
- package/dist/actions/list-projects.mjs +3 -3
- package/dist/actions/list-projects.mjs.map +1 -1
- package/dist/catalog.cjs +1 -1
- package/dist/catalog.cjs.map +1 -1
- package/dist/catalog.d.cts +1 -1
- package/dist/catalog.d.mts +1 -1
- package/dist/catalog.mjs +1 -1
- package/dist/catalog.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -21,7 +21,7 @@ const MoreTreesCreateUserOutput = zod.z.object({
|
|
|
21
21
|
email_address: zod.z.string().describe("Email address of the user.").nullable().optional(),
|
|
22
22
|
referral_code: zod.z.string().describe("Referral code associated with the user.").nullable().optional(),
|
|
23
23
|
marketing_preference_id: zod.z.number().int().describe("Marketing preference identifier for the user.").nullable().optional()
|
|
24
|
-
});
|
|
24
|
+
}).passthrough();
|
|
25
25
|
const moreTreesCreateUser = require_action.action("MORE_TREES_CREATE_USER", {
|
|
26
26
|
slug: "more_trees-create-user",
|
|
27
27
|
name: "Create User",
|
|
@@ -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});\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,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;
|
|
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,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,sBAAsBC,eAAAA,OAAO,0BAA0B;CAClE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -24,7 +24,7 @@ declare const MoreTreesCreateUserOutput: z.ZodObject<{
|
|
|
24
24
|
email_address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
25
25
|
referral_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
26
26
|
marketing_preference_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
27
|
-
}, z.core.$
|
|
27
|
+
}, z.core.$loose>;
|
|
28
28
|
declare const moreTreesCreateUser: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
29
29
|
is_agreed: boolean;
|
|
30
30
|
last_name: string;
|
|
@@ -24,7 +24,7 @@ declare const MoreTreesCreateUserOutput: z.ZodObject<{
|
|
|
24
24
|
email_address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
25
25
|
referral_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
26
26
|
marketing_preference_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
27
|
-
}, z.core.$
|
|
27
|
+
}, z.core.$loose>;
|
|
28
28
|
declare const moreTreesCreateUser: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
29
29
|
is_agreed: boolean;
|
|
30
30
|
last_name: string;
|
|
@@ -24,7 +24,7 @@ const moreTreesCreateUser = action("MORE_TREES_CREATE_USER", {
|
|
|
24
24
|
email_address: z.string().describe("Email address of the user.").nullable().optional(),
|
|
25
25
|
referral_code: z.string().describe("Referral code associated with the user.").nullable().optional(),
|
|
26
26
|
marketing_preference_id: z.number().int().describe("Marketing preference identifier for the user.").nullable().optional()
|
|
27
|
-
})
|
|
27
|
+
}).passthrough()
|
|
28
28
|
});
|
|
29
29
|
//#endregion
|
|
30
30
|
export { moreTreesCreateUser };
|
|
@@ -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});\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,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,QAjBuC,EAAE,OAAO;EAChD,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,
|
|
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,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,QAjBuC,EAAE,OAAO;EAChD,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,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
|
|
@@ -5,8 +5,8 @@ const MoreTreesGetMarketingPreferencesInput = zod.z.object({});
|
|
|
5
5
|
const MoreTreesGetMarketingPreferences_MarketingPreferenceSchema = zod.z.object({
|
|
6
6
|
id: zod.z.string().describe("Unique identifier for the marketing preference").nullable(),
|
|
7
7
|
name: zod.z.string().describe("Display name of the marketing preference").nullable()
|
|
8
|
-
});
|
|
9
|
-
const MoreTreesGetMarketingPreferencesOutput = zod.z.object({ preferences: zod.z.array(MoreTreesGetMarketingPreferences_MarketingPreferenceSchema).describe("List of available marketing preferences") });
|
|
8
|
+
}).passthrough();
|
|
9
|
+
const MoreTreesGetMarketingPreferencesOutput = zod.z.object({ preferences: zod.z.array(MoreTreesGetMarketingPreferences_MarketingPreferenceSchema).describe("List of available marketing preferences") }).passthrough();
|
|
10
10
|
const moreTreesGetMarketingPreferences = require_action.action("MORE_TREES_GET_MARKETING_PREFERENCES", {
|
|
11
11
|
slug: "more_trees-get-marketing-preferences",
|
|
12
12
|
name: "Get Marketing Preferences",
|
|
@@ -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});\nexport const MoreTreesGetMarketingPreferencesOutput = 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,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;
|
|
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"}
|
|
@@ -6,8 +6,8 @@ declare const MoreTreesGetMarketingPreferencesOutput: z.ZodObject<{
|
|
|
6
6
|
preferences: z.ZodArray<z.ZodObject<{
|
|
7
7
|
id: z.ZodNullable<z.ZodString>;
|
|
8
8
|
name: z.ZodNullable<z.ZodString>;
|
|
9
|
-
}, z.core.$
|
|
10
|
-
}, z.core.$
|
|
9
|
+
}, z.core.$loose>>;
|
|
10
|
+
}, z.core.$loose>;
|
|
11
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]>;
|
|
12
12
|
//#endregion
|
|
13
13
|
export { moreTreesGetMarketingPreferences };
|
|
@@ -6,8 +6,8 @@ declare const MoreTreesGetMarketingPreferencesOutput: z.ZodObject<{
|
|
|
6
6
|
preferences: z.ZodArray<z.ZodObject<{
|
|
7
7
|
id: z.ZodNullable<z.ZodString>;
|
|
8
8
|
name: z.ZodNullable<z.ZodString>;
|
|
9
|
-
}, z.core.$
|
|
10
|
-
}, z.core.$
|
|
9
|
+
}, z.core.$loose>>;
|
|
10
|
+
}, z.core.$loose>;
|
|
11
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]>;
|
|
12
12
|
//#endregion
|
|
13
13
|
export { moreTreesGetMarketingPreferences };
|
|
@@ -5,13 +5,13 @@ const MoreTreesGetMarketingPreferencesInput = z.object({});
|
|
|
5
5
|
const MoreTreesGetMarketingPreferences_MarketingPreferenceSchema = z.object({
|
|
6
6
|
id: z.string().describe("Unique identifier for the marketing preference").nullable(),
|
|
7
7
|
name: z.string().describe("Display name of the marketing preference").nullable()
|
|
8
|
-
});
|
|
8
|
+
}).passthrough();
|
|
9
9
|
const moreTreesGetMarketingPreferences = action("MORE_TREES_GET_MARKETING_PREFERENCES", {
|
|
10
10
|
slug: "more_trees-get-marketing-preferences",
|
|
11
11
|
name: "Get Marketing Preferences",
|
|
12
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
13
|
input: MoreTreesGetMarketingPreferencesInput,
|
|
14
|
-
output: z.object({ preferences: z.array(MoreTreesGetMarketingPreferences_MarketingPreferenceSchema).describe("List of available marketing preferences") })
|
|
14
|
+
output: z.object({ preferences: z.array(MoreTreesGetMarketingPreferences_MarketingPreferenceSchema).describe("List of available marketing preferences") }).passthrough()
|
|
15
15
|
});
|
|
16
16
|
//#endregion
|
|
17
17
|
export { moreTreesGetMarketingPreferences };
|
|
@@ -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});\nexport const MoreTreesGetMarketingPreferencesOutput = 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,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;
|
|
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"}
|
|
@@ -8,13 +8,13 @@ const MoreTreesGetTotalCarbonOffset_ForestTotalsSchema = zod.z.object({
|
|
|
8
8
|
trees_planted: zod.z.number().int().describe("Total number of trees planted in this forest").nullable(),
|
|
9
9
|
trees_received: zod.z.number().int().describe("Total number of trees received as gifts").nullable(),
|
|
10
10
|
projects_supported: zod.z.number().int().describe("Total number of tree planting projects supported").nullable()
|
|
11
|
-
});
|
|
11
|
+
}).passthrough();
|
|
12
12
|
const MoreTreesGetTotalCarbonOffsetOutput = zod.z.object({
|
|
13
13
|
totals: MoreTreesGetTotalCarbonOffset_ForestTotalsSchema.nullable(),
|
|
14
14
|
logo_url: zod.z.string().describe("URL of the forest's logo image").nullable(),
|
|
15
15
|
brand_color: zod.z.string().describe("Brand color in hexadecimal format (e.g., '#000000')").nullable(),
|
|
16
16
|
forest_name: zod.z.string().describe("Display name of the forest").nullable()
|
|
17
|
-
});
|
|
17
|
+
}).passthrough();
|
|
18
18
|
const moreTreesGetTotalCarbonOffset = require_action.action("MORE_TREES_GET_TOTAL_CARBON_OFFSET", {
|
|
19
19
|
slug: "more_trees-get-total-carbon-offset",
|
|
20
20
|
name: "Get Total Carbon Offset",
|
|
@@ -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});\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});\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;
|
|
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"}
|
|
@@ -11,11 +11,11 @@ declare const MoreTreesGetTotalCarbonOffsetOutput: z.ZodObject<{
|
|
|
11
11
|
trees_planted: z.ZodNullable<z.ZodNumber>;
|
|
12
12
|
trees_received: z.ZodNullable<z.ZodNumber>;
|
|
13
13
|
projects_supported: z.ZodNullable<z.ZodNumber>;
|
|
14
|
-
}, z.core.$
|
|
14
|
+
}, z.core.$loose>>;
|
|
15
15
|
logo_url: z.ZodNullable<z.ZodString>;
|
|
16
16
|
brand_color: z.ZodNullable<z.ZodString>;
|
|
17
17
|
forest_name: z.ZodNullable<z.ZodString>;
|
|
18
|
-
}, z.core.$
|
|
18
|
+
}, z.core.$loose>;
|
|
19
19
|
declare const moreTreesGetTotalCarbonOffset: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
20
20
|
forest_slug_or_account_code: string;
|
|
21
21
|
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
@@ -11,11 +11,11 @@ declare const MoreTreesGetTotalCarbonOffsetOutput: z.ZodObject<{
|
|
|
11
11
|
trees_planted: z.ZodNullable<z.ZodNumber>;
|
|
12
12
|
trees_received: z.ZodNullable<z.ZodNumber>;
|
|
13
13
|
projects_supported: z.ZodNullable<z.ZodNumber>;
|
|
14
|
-
}, z.core.$
|
|
14
|
+
}, z.core.$loose>>;
|
|
15
15
|
logo_url: z.ZodNullable<z.ZodString>;
|
|
16
16
|
brand_color: z.ZodNullable<z.ZodString>;
|
|
17
17
|
forest_name: z.ZodNullable<z.ZodString>;
|
|
18
|
-
}, z.core.$
|
|
18
|
+
}, z.core.$loose>;
|
|
19
19
|
declare const moreTreesGetTotalCarbonOffset: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
20
20
|
forest_slug_or_account_code: string;
|
|
21
21
|
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
@@ -8,7 +8,7 @@ const MoreTreesGetTotalCarbonOffset_ForestTotalsSchema = z.object({
|
|
|
8
8
|
trees_planted: z.number().int().describe("Total number of trees planted in this forest").nullable(),
|
|
9
9
|
trees_received: z.number().int().describe("Total number of trees received as gifts").nullable(),
|
|
10
10
|
projects_supported: z.number().int().describe("Total number of tree planting projects supported").nullable()
|
|
11
|
-
});
|
|
11
|
+
}).passthrough();
|
|
12
12
|
const moreTreesGetTotalCarbonOffset = action("MORE_TREES_GET_TOTAL_CARBON_OFFSET", {
|
|
13
13
|
slug: "more_trees-get-total-carbon-offset",
|
|
14
14
|
name: "Get Total Carbon Offset",
|
|
@@ -19,7 +19,7 @@ const moreTreesGetTotalCarbonOffset = action("MORE_TREES_GET_TOTAL_CARBON_OFFSET
|
|
|
19
19
|
logo_url: z.string().describe("URL of the forest's logo image").nullable(),
|
|
20
20
|
brand_color: z.string().describe("Brand color in hexadecimal format (e.g., '#000000')").nullable(),
|
|
21
21
|
forest_name: z.string().describe("Display name of the forest").nullable()
|
|
22
|
-
})
|
|
22
|
+
}).passthrough()
|
|
23
23
|
});
|
|
24
24
|
//#endregion
|
|
25
25
|
export { moreTreesGetTotalCarbonOffset };
|
|
@@ -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});\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});\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;
|
|
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"}
|
|
@@ -10,7 +10,7 @@ const MoreTreesListProjects_TreeSchema = zod.z.object({
|
|
|
10
10
|
tree_image: zod.z.string().describe("URL of the tree species image").nullable(),
|
|
11
11
|
description: zod.z.string().describe("Description of the tree species").nullable().optional(),
|
|
12
12
|
credits_required: zod.z.number().describe("Number of credits required to plant this tree").nullable()
|
|
13
|
-
});
|
|
13
|
+
}).passthrough();
|
|
14
14
|
const MoreTreesListProjects_ProjectSchema = zod.z.object({
|
|
15
15
|
id: zod.z.number().int().describe("Unique identifier for the project").nullable(),
|
|
16
16
|
name: zod.z.string().describe("Name of the project").nullable(),
|
|
@@ -21,11 +21,11 @@ const MoreTreesListProjects_ProjectSchema = zod.z.object({
|
|
|
21
21
|
project_type: zod.z.string().describe("Type of the project (e.g., reforestation, conservation)").nullable(),
|
|
22
22
|
project_image: zod.z.string().describe("URL of the project image").nullable(),
|
|
23
23
|
supplier_name: zod.z.string().describe("Name of the project supplier or partner organization").nullable()
|
|
24
|
-
});
|
|
24
|
+
}).passthrough();
|
|
25
25
|
const MoreTreesListProjectsOutput = zod.z.object({
|
|
26
26
|
data: zod.z.array(MoreTreesListProjects_ProjectSchema).describe("List of all active projects with their details"),
|
|
27
27
|
total: zod.z.number().int().describe("Total number of projects returned").nullable()
|
|
28
|
-
});
|
|
28
|
+
}).passthrough();
|
|
29
29
|
const moreTreesListProjects = require_action.action("MORE_TREES_LIST_PROJECTS", {
|
|
30
30
|
slug: "more_trees-list-projects",
|
|
31
31
|
name: "List Projects",
|
|
@@ -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});\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});\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});\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,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;
|
|
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,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,CAAC,YAAY;AACf,MAAM,sCAAsCA,IAAAA,EAAE,OAAO;CACnD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CAC5E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;CAC1D,OAAOA,IAAAA,EAAE,MAAM,gCAAgC,CAAC,CAAC,SAAS,6DAA6D;CACvH,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CAC9E,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CAChF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CACxE,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;CACtG,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;CACxE,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,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"}
|
|
@@ -14,16 +14,16 @@ declare const MoreTreesListProjectsOutput: z.ZodObject<{
|
|
|
14
14
|
tree_image: z.ZodNullable<z.ZodString>;
|
|
15
15
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
16
|
credits_required: z.ZodNullable<z.ZodNumber>;
|
|
17
|
-
}, z.core.$
|
|
17
|
+
}, z.core.$loose>>;
|
|
18
18
|
country: z.ZodNullable<z.ZodString>;
|
|
19
19
|
default: z.ZodNullable<z.ZodBoolean>;
|
|
20
20
|
description: z.ZodNullable<z.ZodString>;
|
|
21
21
|
project_type: z.ZodNullable<z.ZodString>;
|
|
22
22
|
project_image: z.ZodNullable<z.ZodString>;
|
|
23
23
|
supplier_name: z.ZodNullable<z.ZodString>;
|
|
24
|
-
}, z.core.$
|
|
24
|
+
}, z.core.$loose>>;
|
|
25
25
|
total: z.ZodNullable<z.ZodNumber>;
|
|
26
|
-
}, z.core.$
|
|
26
|
+
}, z.core.$loose>;
|
|
27
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]>;
|
|
28
28
|
//#endregion
|
|
29
29
|
export { moreTreesListProjects };
|
|
@@ -14,16 +14,16 @@ declare const MoreTreesListProjectsOutput: z.ZodObject<{
|
|
|
14
14
|
tree_image: z.ZodNullable<z.ZodString>;
|
|
15
15
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
16
|
credits_required: z.ZodNullable<z.ZodNumber>;
|
|
17
|
-
}, z.core.$
|
|
17
|
+
}, z.core.$loose>>;
|
|
18
18
|
country: z.ZodNullable<z.ZodString>;
|
|
19
19
|
default: z.ZodNullable<z.ZodBoolean>;
|
|
20
20
|
description: z.ZodNullable<z.ZodString>;
|
|
21
21
|
project_type: z.ZodNullable<z.ZodString>;
|
|
22
22
|
project_image: z.ZodNullable<z.ZodString>;
|
|
23
23
|
supplier_name: z.ZodNullable<z.ZodString>;
|
|
24
|
-
}, z.core.$
|
|
24
|
+
}, z.core.$loose>>;
|
|
25
25
|
total: z.ZodNullable<z.ZodNumber>;
|
|
26
|
-
}, z.core.$
|
|
26
|
+
}, z.core.$loose>;
|
|
27
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]>;
|
|
28
28
|
//#endregion
|
|
29
29
|
export { moreTreesListProjects };
|
|
@@ -10,7 +10,7 @@ const MoreTreesListProjects_TreeSchema = z.object({
|
|
|
10
10
|
tree_image: z.string().describe("URL of the tree species image").nullable(),
|
|
11
11
|
description: z.string().describe("Description of the tree species").nullable().optional(),
|
|
12
12
|
credits_required: z.number().describe("Number of credits required to plant this tree").nullable()
|
|
13
|
-
});
|
|
13
|
+
}).passthrough();
|
|
14
14
|
const MoreTreesListProjects_ProjectSchema = z.object({
|
|
15
15
|
id: z.number().int().describe("Unique identifier for the project").nullable(),
|
|
16
16
|
name: z.string().describe("Name of the project").nullable(),
|
|
@@ -21,7 +21,7 @@ const MoreTreesListProjects_ProjectSchema = z.object({
|
|
|
21
21
|
project_type: z.string().describe("Type of the project (e.g., reforestation, conservation)").nullable(),
|
|
22
22
|
project_image: z.string().describe("URL of the project image").nullable(),
|
|
23
23
|
supplier_name: z.string().describe("Name of the project supplier or partner organization").nullable()
|
|
24
|
-
});
|
|
24
|
+
}).passthrough();
|
|
25
25
|
const moreTreesListProjects = action("MORE_TREES_LIST_PROJECTS", {
|
|
26
26
|
slug: "more_trees-list-projects",
|
|
27
27
|
name: "List Projects",
|
|
@@ -30,7 +30,7 @@ const moreTreesListProjects = action("MORE_TREES_LIST_PROJECTS", {
|
|
|
30
30
|
output: z.object({
|
|
31
31
|
data: z.array(MoreTreesListProjects_ProjectSchema).describe("List of all active projects with their details"),
|
|
32
32
|
total: z.number().int().describe("Total number of projects returned").nullable()
|
|
33
|
-
})
|
|
33
|
+
}).passthrough()
|
|
34
34
|
});
|
|
35
35
|
//#endregion
|
|
36
36
|
export { moreTreesListProjects };
|
|
@@ -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});\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});\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});\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,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;
|
|
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,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,wBAAwB,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"}
|
package/dist/catalog.cjs
CHANGED
|
@@ -9,7 +9,7 @@ const moreTreesCatalog = {
|
|
|
9
9
|
"authKind": "keystroke",
|
|
10
10
|
"oauthScopes": [],
|
|
11
11
|
"credentialFields": {
|
|
12
|
-
"
|
|
12
|
+
"generic_api_key": {
|
|
13
13
|
"label": "API Key",
|
|
14
14
|
"secret": true,
|
|
15
15
|
"description": "Your More Trees API key. Find it under Settings → Account Settings on the platform."
|
package/dist/catalog.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"catalog.cjs","names":[],"sources":["../src/catalog.ts"],"sourcesContent":["/** Generated — kept in sync with src/app.ts. */\nexport const 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 \"credentialFields\": {\n \"
|
|
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 \"credentialFields\": {\n \"generic_api_key\": {\n \"label\": \"API Key\",\n \"secret\": true,\n \"description\": \"Your More Trees API key. Find it under Settings → Account Settings on the platform.\"\n },\n \"generic_id\": {\n \"label\": \"Account Code\",\n \"description\": \"Your More Trees account code. Find it under Settings → Account Settings on the platform.\"\n }\n },\n \"credentialScheme\": \"API_KEY\"\n} as const;\n"],"mappings":";;AACA,MAAa,mBAAmB;CAC9B,QAAQ;CACR,QAAQ;CACR,eAAe;CACf,YAAY;CACZ,QAAQ;CACR,YAAY;CACZ,eAAe,CAAC;CAChB,oBAAoB;EAClB,mBAAmB;GACjB,SAAS;GACT,UAAU;GACV,eAAe;EACjB;EACA,cAAc;GACZ,SAAS;GACT,eAAe;EACjB;CACF;CACA,oBAAoB;AACtB"}
|
package/dist/catalog.d.cts
CHANGED
|
@@ -9,7 +9,7 @@ declare const moreTreesCatalog: {
|
|
|
9
9
|
readonly authKind: "keystroke";
|
|
10
10
|
readonly oauthScopes: readonly [];
|
|
11
11
|
readonly credentialFields: {
|
|
12
|
-
readonly
|
|
12
|
+
readonly generic_api_key: {
|
|
13
13
|
readonly label: "API Key";
|
|
14
14
|
readonly secret: true;
|
|
15
15
|
readonly description: "Your More Trees API key. Find it under Settings → Account Settings on the platform.";
|
package/dist/catalog.d.mts
CHANGED
|
@@ -9,7 +9,7 @@ declare const moreTreesCatalog: {
|
|
|
9
9
|
readonly authKind: "keystroke";
|
|
10
10
|
readonly oauthScopes: readonly [];
|
|
11
11
|
readonly credentialFields: {
|
|
12
|
-
readonly
|
|
12
|
+
readonly generic_api_key: {
|
|
13
13
|
readonly label: "API Key";
|
|
14
14
|
readonly secret: true;
|
|
15
15
|
readonly description: "Your More Trees API key. Find it under Settings → Account Settings on the platform.";
|
package/dist/catalog.mjs
CHANGED
|
@@ -9,7 +9,7 @@ const moreTreesCatalog = {
|
|
|
9
9
|
"authKind": "keystroke",
|
|
10
10
|
"oauthScopes": [],
|
|
11
11
|
"credentialFields": {
|
|
12
|
-
"
|
|
12
|
+
"generic_api_key": {
|
|
13
13
|
"label": "API Key",
|
|
14
14
|
"secret": true,
|
|
15
15
|
"description": "Your More Trees API key. Find it under Settings → Account Settings on the platform."
|
package/dist/catalog.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"catalog.mjs","names":[],"sources":["../src/catalog.ts"],"sourcesContent":["/** Generated — kept in sync with src/app.ts. */\nexport const 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 \"credentialFields\": {\n \"
|
|
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 \"credentialFields\": {\n \"generic_api_key\": {\n \"label\": \"API Key\",\n \"secret\": true,\n \"description\": \"Your More Trees API key. Find it under Settings → Account Settings on the platform.\"\n },\n \"generic_id\": {\n \"label\": \"Account Code\",\n \"description\": \"Your More Trees account code. Find it under Settings → Account Settings on the platform.\"\n }\n },\n \"credentialScheme\": \"API_KEY\"\n} as const;\n"],"mappings":";;AACA,MAAa,mBAAmB;CAC9B,QAAQ;CACR,QAAQ;CACR,eAAe;CACf,YAAY;CACZ,QAAQ;CACR,YAAY;CACZ,eAAe,CAAC;CAChB,oBAAoB;EAClB,mBAAmB;GACjB,SAAS;GACT,UAAU;GACV,eAAe;EACjB;EACA,cAAc;GACZ,SAAS;GACT,eAAe;EACjB;CACF;CACA,oBAAoB;AACtB"}
|