@keystrokehq/payhere 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-hook.cjs +2 -2
- package/dist/actions/create-hook.cjs.map +1 -1
- package/dist/actions/create-hook.d.cts +2 -2
- package/dist/actions/create-hook.d.mts +2 -2
- package/dist/actions/create-hook.mjs +2 -2
- package/dist/actions/create-hook.mjs.map +1 -1
- package/dist/actions/create-plan.cjs +2 -2
- package/dist/actions/create-plan.cjs.map +1 -1
- package/dist/actions/create-plan.d.cts +2 -2
- package/dist/actions/create-plan.d.mts +2 -2
- package/dist/actions/create-plan.mjs +2 -2
- package/dist/actions/create-plan.mjs.map +1 -1
- package/dist/actions/delete-hook.cjs +1 -1
- package/dist/actions/delete-hook.cjs.map +1 -1
- package/dist/actions/delete-hook.d.cts +1 -1
- package/dist/actions/delete-hook.d.mts +1 -1
- package/dist/actions/delete-hook.mjs +1 -1
- package/dist/actions/delete-hook.mjs.map +1 -1
- package/dist/actions/get-current-company-stats.cjs +1 -1
- package/dist/actions/get-current-company-stats.cjs.map +1 -1
- package/dist/actions/get-current-company-stats.d.cts +1 -1
- package/dist/actions/get-current-company-stats.d.mts +1 -1
- package/dist/actions/get-current-company-stats.mjs +1 -1
- package/dist/actions/get-current-company-stats.mjs.map +1 -1
- package/dist/actions/get-current-company.cjs +2 -2
- package/dist/actions/get-current-company.cjs.map +1 -1
- package/dist/actions/get-current-company.d.cts +2 -2
- package/dist/actions/get-current-company.d.mts +2 -2
- package/dist/actions/get-current-company.mjs +2 -2
- package/dist/actions/get-current-company.mjs.map +1 -1
- package/dist/actions/get-user.cjs +1 -1
- package/dist/actions/get-user.cjs.map +1 -1
- package/dist/actions/get-user.d.cts +1 -1
- package/dist/actions/get-user.d.mts +1 -1
- package/dist/actions/get-user.mjs +1 -1
- package/dist/actions/get-user.mjs.map +1 -1
- package/dist/actions/list-customers.cjs +4 -4
- package/dist/actions/list-customers.cjs.map +1 -1
- package/dist/actions/list-customers.d.cts +4 -4
- package/dist/actions/list-customers.d.mts +4 -4
- package/dist/actions/list-customers.mjs +4 -4
- package/dist/actions/list-customers.mjs.map +1 -1
- package/dist/actions/list-hooks.cjs +2 -2
- package/dist/actions/list-hooks.cjs.map +1 -1
- package/dist/actions/list-hooks.d.cts +2 -2
- package/dist/actions/list-hooks.d.mts +2 -2
- package/dist/actions/list-hooks.mjs +2 -2
- package/dist/actions/list-hooks.mjs.map +1 -1
- package/dist/actions/list-payments.cjs +3 -3
- package/dist/actions/list-payments.cjs.map +1 -1
- package/dist/actions/list-payments.d.cts +3 -3
- package/dist/actions/list-payments.d.mts +3 -3
- package/dist/actions/list-payments.mjs +3 -3
- package/dist/actions/list-payments.mjs.map +1 -1
- package/dist/actions/list-plans.cjs +4 -4
- package/dist/actions/list-plans.cjs.map +1 -1
- package/dist/actions/list-plans.d.cts +4 -4
- package/dist/actions/list-plans.d.mts +4 -4
- package/dist/actions/list-plans.mjs +4 -4
- package/dist/actions/list-plans.mjs.map +1 -1
- package/dist/actions/list-subscriptions.cjs +6 -6
- package/dist/actions/list-subscriptions.cjs.map +1 -1
- package/dist/actions/list-subscriptions.d.cts +6 -6
- package/dist/actions/list-subscriptions.d.mts +6 -6
- package/dist/actions/list-subscriptions.mjs +6 -6
- package/dist/actions/list-subscriptions.mjs.map +1 -1
- package/dist/actions/update-current-company.cjs +2 -2
- package/dist/actions/update-current-company.cjs.map +1 -1
- package/dist/actions/update-current-company.d.cts +2 -2
- package/dist/actions/update-current-company.d.mts +2 -2
- package/dist/actions/update-current-company.mjs +2 -2
- package/dist/actions/update-current-company.mjs.map +1 -1
- package/dist/actions/update-plan.cjs +1 -1
- package/dist/actions/update-plan.cjs.map +1 -1
- package/dist/actions/update-plan.d.cts +1 -1
- package/dist/actions/update-plan.d.mts +1 -1
- package/dist/actions/update-plan.mjs +1 -1
- package/dist/actions/update-plan.mjs.map +1 -1
- package/dist/catalog.cjs +2 -2
- package/dist/catalog.cjs.map +1 -1
- package/dist/catalog.d.cts +2 -2
- package/dist/catalog.d.mts +2 -2
- package/dist/catalog.mjs +2 -2
- package/dist/catalog.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -19,8 +19,8 @@ const PayhereCreateHook_HookDataSchema = zod.z.object({
|
|
|
19
19
|
created_at: zod.z.string().describe("Hook creation timestamp in ISO 8601 format.").nullable(),
|
|
20
20
|
updated_at: zod.z.string().describe("Last update timestamp in ISO 8601 format.").nullable(),
|
|
21
21
|
integration: zod.z.string().describe("The integration name.").nullable()
|
|
22
|
-
}).describe("Schema for the hook data returned in the response.");
|
|
23
|
-
const PayhereCreateHookOutput = zod.z.object({ data: PayhereCreateHook_HookDataSchema.nullable() }).describe("Response schema for creating a webhook subscription.");
|
|
22
|
+
}).passthrough().describe("Schema for the hook data returned in the response.");
|
|
23
|
+
const PayhereCreateHookOutput = zod.z.object({ data: PayhereCreateHook_HookDataSchema.nullable() }).passthrough().describe("Response schema for creating a webhook subscription.");
|
|
24
24
|
const payhereCreateHook = require_action.action("PAYHERE_CREATE_HOOK", {
|
|
25
25
|
slug: "payhere-create-hook",
|
|
26
26
|
name: "Create Hook",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-hook.cjs","names":["z","action"],"sources":["../../src/actions/create-hook.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PayhereCreateHookInput = z.object({\n post_url: z.string().describe(\"Your platform's endpoint URL that will receive POST requests when events trigger.\"),\n resource: z.enum([\"payment_received\", \"subscription_cancelled\", \"subscription_created\"]).describe(\"Event type to monitor. Must be one of: 'payment_received', 'subscription_cancelled', or 'subscription_created'.\"),\n integration: z.string().describe(\"Friendly name of your platform. Helps with metrics and debugging.\"),\n}).describe(\"Request model for creating a webhook subscription to receive real-time events from PayHere.\");\nconst PayhereCreateHook_HookDataSchema = z.object({\n id: z.number().int().describe(\"Unique identifier for the hook.\").nullable(),\n type: z.string().describe(\"Hook type, always 'rest_hooks'.\").nullable(),\n post_url: z.string().describe(\"The registered webhook URL.\").nullable(),\n resource: z.string().describe(\"The event type being monitored.\").nullable(),\n company_id: z.number().int().describe(\"Associated company identifier.\").nullable(),\n created_at: z.string().describe(\"Hook creation timestamp in ISO 8601 format.\").nullable(),\n updated_at: z.string().describe(\"Last update timestamp in ISO 8601 format.\").nullable(),\n integration: z.string().describe(\"The integration name.\").nullable(),\n}).describe(\"Schema for the hook data returned in the response.\");\nexport const PayhereCreateHookOutput = z.object({\n data: PayhereCreateHook_HookDataSchema.nullable(),\n}).describe(\"Response schema for creating a webhook subscription.\");\n\nexport const payhereCreateHook = action(\"PAYHERE_CREATE_HOOK\", {\n slug: \"payhere-create-hook\",\n name: \"Create Hook\",\n description: \"Tool to subscribe to a REST hook for receiving webhook events. Use when you need to register a webhook endpoint to receive real-time notifications for payment_received, subscription_cancelled, or subscription_created events.\",\n input: PayhereCreateHookInput,\n output: PayhereCreateHookOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yBAAyBA,IAAAA,EAAE,OAAO;CAC7C,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mFAAmF;CACjH,UAAUA,IAAAA,EAAE,KAAK;EAAC;EAAoB;EAA0B;CAAsB,CAAC,CAAC,CAAC,SAAS,iHAAiH;CACnN,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE;AACtG,CAAC,CAAC,CAAC,SAAS,6FAA6F;AACzG,MAAM,mCAAmCA,IAAAA,EAAE,OAAO;CAChD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CAC1E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CACtE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CACtE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CAC1E,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CACjF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CACxF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CACtF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;AACrE,CAAC,CAAC,CAAC,SAAS,oDAAoD;
|
|
1
|
+
{"version":3,"file":"create-hook.cjs","names":["z","action"],"sources":["../../src/actions/create-hook.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PayhereCreateHookInput = z.object({\n post_url: z.string().describe(\"Your platform's endpoint URL that will receive POST requests when events trigger.\"),\n resource: z.enum([\"payment_received\", \"subscription_cancelled\", \"subscription_created\"]).describe(\"Event type to monitor. Must be one of: 'payment_received', 'subscription_cancelled', or 'subscription_created'.\"),\n integration: z.string().describe(\"Friendly name of your platform. Helps with metrics and debugging.\"),\n}).describe(\"Request model for creating a webhook subscription to receive real-time events from PayHere.\");\nconst PayhereCreateHook_HookDataSchema = z.object({\n id: z.number().int().describe(\"Unique identifier for the hook.\").nullable(),\n type: z.string().describe(\"Hook type, always 'rest_hooks'.\").nullable(),\n post_url: z.string().describe(\"The registered webhook URL.\").nullable(),\n resource: z.string().describe(\"The event type being monitored.\").nullable(),\n company_id: z.number().int().describe(\"Associated company identifier.\").nullable(),\n created_at: z.string().describe(\"Hook creation timestamp in ISO 8601 format.\").nullable(),\n updated_at: z.string().describe(\"Last update timestamp in ISO 8601 format.\").nullable(),\n integration: z.string().describe(\"The integration name.\").nullable(),\n}).passthrough().describe(\"Schema for the hook data returned in the response.\");\nexport const PayhereCreateHookOutput = z.object({\n data: PayhereCreateHook_HookDataSchema.nullable(),\n}).passthrough().describe(\"Response schema for creating a webhook subscription.\");\n\nexport const payhereCreateHook = action(\"PAYHERE_CREATE_HOOK\", {\n slug: \"payhere-create-hook\",\n name: \"Create Hook\",\n description: \"Tool to subscribe to a REST hook for receiving webhook events. Use when you need to register a webhook endpoint to receive real-time notifications for payment_received, subscription_cancelled, or subscription_created events.\",\n input: PayhereCreateHookInput,\n output: PayhereCreateHookOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yBAAyBA,IAAAA,EAAE,OAAO;CAC7C,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mFAAmF;CACjH,UAAUA,IAAAA,EAAE,KAAK;EAAC;EAAoB;EAA0B;CAAsB,CAAC,CAAC,CAAC,SAAS,iHAAiH;CACnN,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE;AACtG,CAAC,CAAC,CAAC,SAAS,6FAA6F;AACzG,MAAM,mCAAmCA,IAAAA,EAAE,OAAO;CAChD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CAC1E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CACtE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CACtE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CAC1E,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CACjF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CACxF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CACtF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;AACrE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oDAAoD;AAC9E,MAAa,0BAA0BA,IAAAA,EAAE,OAAO,EAC9C,MAAM,iCAAiC,SAAS,EAClD,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sDAAsD;AAEhF,MAAa,oBAAoBC,eAAAA,OAAO,uBAAuB;CAC7D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -20,8 +20,8 @@ declare const PayhereCreateHookOutput: z.ZodObject<{
|
|
|
20
20
|
created_at: z.ZodNullable<z.ZodString>;
|
|
21
21
|
updated_at: z.ZodNullable<z.ZodString>;
|
|
22
22
|
integration: z.ZodNullable<z.ZodString>;
|
|
23
|
-
}, z.core.$
|
|
24
|
-
}, z.core.$
|
|
23
|
+
}, z.core.$loose>>;
|
|
24
|
+
}, z.core.$loose>;
|
|
25
25
|
declare const payhereCreateHook: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
26
26
|
post_url: string;
|
|
27
27
|
resource: "payment_received" | "subscription_cancelled" | "subscription_created";
|
|
@@ -20,8 +20,8 @@ declare const PayhereCreateHookOutput: z.ZodObject<{
|
|
|
20
20
|
created_at: z.ZodNullable<z.ZodString>;
|
|
21
21
|
updated_at: z.ZodNullable<z.ZodString>;
|
|
22
22
|
integration: z.ZodNullable<z.ZodString>;
|
|
23
|
-
}, z.core.$
|
|
24
|
-
}, z.core.$
|
|
23
|
+
}, z.core.$loose>>;
|
|
24
|
+
}, z.core.$loose>;
|
|
25
25
|
declare const payhereCreateHook: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
26
26
|
post_url: string;
|
|
27
27
|
resource: "payment_received" | "subscription_cancelled" | "subscription_created";
|
|
@@ -19,13 +19,13 @@ const PayhereCreateHook_HookDataSchema = z.object({
|
|
|
19
19
|
created_at: z.string().describe("Hook creation timestamp in ISO 8601 format.").nullable(),
|
|
20
20
|
updated_at: z.string().describe("Last update timestamp in ISO 8601 format.").nullable(),
|
|
21
21
|
integration: z.string().describe("The integration name.").nullable()
|
|
22
|
-
}).describe("Schema for the hook data returned in the response.");
|
|
22
|
+
}).passthrough().describe("Schema for the hook data returned in the response.");
|
|
23
23
|
const payhereCreateHook = action("PAYHERE_CREATE_HOOK", {
|
|
24
24
|
slug: "payhere-create-hook",
|
|
25
25
|
name: "Create Hook",
|
|
26
26
|
description: "Tool to subscribe to a REST hook for receiving webhook events. Use when you need to register a webhook endpoint to receive real-time notifications for payment_received, subscription_cancelled, or subscription_created events.",
|
|
27
27
|
input: PayhereCreateHookInput,
|
|
28
|
-
output: z.object({ data: PayhereCreateHook_HookDataSchema.nullable() }).describe("Response schema for creating a webhook subscription.")
|
|
28
|
+
output: z.object({ data: PayhereCreateHook_HookDataSchema.nullable() }).passthrough().describe("Response schema for creating a webhook subscription.")
|
|
29
29
|
});
|
|
30
30
|
//#endregion
|
|
31
31
|
export { payhereCreateHook };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-hook.mjs","names":[],"sources":["../../src/actions/create-hook.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PayhereCreateHookInput = z.object({\n post_url: z.string().describe(\"Your platform's endpoint URL that will receive POST requests when events trigger.\"),\n resource: z.enum([\"payment_received\", \"subscription_cancelled\", \"subscription_created\"]).describe(\"Event type to monitor. Must be one of: 'payment_received', 'subscription_cancelled', or 'subscription_created'.\"),\n integration: z.string().describe(\"Friendly name of your platform. Helps with metrics and debugging.\"),\n}).describe(\"Request model for creating a webhook subscription to receive real-time events from PayHere.\");\nconst PayhereCreateHook_HookDataSchema = z.object({\n id: z.number().int().describe(\"Unique identifier for the hook.\").nullable(),\n type: z.string().describe(\"Hook type, always 'rest_hooks'.\").nullable(),\n post_url: z.string().describe(\"The registered webhook URL.\").nullable(),\n resource: z.string().describe(\"The event type being monitored.\").nullable(),\n company_id: z.number().int().describe(\"Associated company identifier.\").nullable(),\n created_at: z.string().describe(\"Hook creation timestamp in ISO 8601 format.\").nullable(),\n updated_at: z.string().describe(\"Last update timestamp in ISO 8601 format.\").nullable(),\n integration: z.string().describe(\"The integration name.\").nullable(),\n}).describe(\"Schema for the hook data returned in the response.\");\nexport const PayhereCreateHookOutput = z.object({\n data: PayhereCreateHook_HookDataSchema.nullable(),\n}).describe(\"Response schema for creating a webhook subscription.\");\n\nexport const payhereCreateHook = action(\"PAYHERE_CREATE_HOOK\", {\n slug: \"payhere-create-hook\",\n name: \"Create Hook\",\n description: \"Tool to subscribe to a REST hook for receiving webhook events. Use when you need to register a webhook endpoint to receive real-time notifications for payment_received, subscription_cancelled, or subscription_created events.\",\n input: PayhereCreateHookInput,\n output: PayhereCreateHookOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yBAAyB,EAAE,OAAO;CAC7C,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,mFAAmF;CACjH,UAAU,EAAE,KAAK;EAAC;EAAoB;EAA0B;CAAsB,CAAC,CAAC,CAAC,SAAS,iHAAiH;CACnN,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE;AACtG,CAAC,CAAC,CAAC,SAAS,6FAA6F;AACzG,MAAM,mCAAmC,EAAE,OAAO;CAChD,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CAC1E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CACtE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CACtE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CAC1E,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CACjF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CACxF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CACtF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;AACrE,CAAC,CAAC,CAAC,SAAS,oDAAoD;
|
|
1
|
+
{"version":3,"file":"create-hook.mjs","names":[],"sources":["../../src/actions/create-hook.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PayhereCreateHookInput = z.object({\n post_url: z.string().describe(\"Your platform's endpoint URL that will receive POST requests when events trigger.\"),\n resource: z.enum([\"payment_received\", \"subscription_cancelled\", \"subscription_created\"]).describe(\"Event type to monitor. Must be one of: 'payment_received', 'subscription_cancelled', or 'subscription_created'.\"),\n integration: z.string().describe(\"Friendly name of your platform. Helps with metrics and debugging.\"),\n}).describe(\"Request model for creating a webhook subscription to receive real-time events from PayHere.\");\nconst PayhereCreateHook_HookDataSchema = z.object({\n id: z.number().int().describe(\"Unique identifier for the hook.\").nullable(),\n type: z.string().describe(\"Hook type, always 'rest_hooks'.\").nullable(),\n post_url: z.string().describe(\"The registered webhook URL.\").nullable(),\n resource: z.string().describe(\"The event type being monitored.\").nullable(),\n company_id: z.number().int().describe(\"Associated company identifier.\").nullable(),\n created_at: z.string().describe(\"Hook creation timestamp in ISO 8601 format.\").nullable(),\n updated_at: z.string().describe(\"Last update timestamp in ISO 8601 format.\").nullable(),\n integration: z.string().describe(\"The integration name.\").nullable(),\n}).passthrough().describe(\"Schema for the hook data returned in the response.\");\nexport const PayhereCreateHookOutput = z.object({\n data: PayhereCreateHook_HookDataSchema.nullable(),\n}).passthrough().describe(\"Response schema for creating a webhook subscription.\");\n\nexport const payhereCreateHook = action(\"PAYHERE_CREATE_HOOK\", {\n slug: \"payhere-create-hook\",\n name: \"Create Hook\",\n description: \"Tool to subscribe to a REST hook for receiving webhook events. Use when you need to register a webhook endpoint to receive real-time notifications for payment_received, subscription_cancelled, or subscription_created events.\",\n input: PayhereCreateHookInput,\n output: PayhereCreateHookOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yBAAyB,EAAE,OAAO;CAC7C,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,mFAAmF;CACjH,UAAU,EAAE,KAAK;EAAC;EAAoB;EAA0B;CAAsB,CAAC,CAAC,CAAC,SAAS,iHAAiH;CACnN,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE;AACtG,CAAC,CAAC,CAAC,SAAS,6FAA6F;AACzG,MAAM,mCAAmC,EAAE,OAAO;CAChD,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CAC1E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CACtE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CACtE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CAC1E,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CACjF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CACxF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CACtF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;AACrE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oDAAoD;AAK9E,MAAa,oBAAoB,OAAO,uBAAuB;CAC7D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATqC,EAAE,OAAO,EAC9C,MAAM,iCAAiC,SAAS,EAClD,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sDAOhB;AACV,CAAC"}
|
|
@@ -28,7 +28,7 @@ const PayhereCreatePlan_CustomFieldSchema = zod.z.object({
|
|
|
28
28
|
name: zod.z.string().describe("Name of the custom field.").nullable().optional(),
|
|
29
29
|
required: zod.z.boolean().describe("Whether the field is required.").nullable().optional(),
|
|
30
30
|
field_type: zod.z.string().describe("Type of the custom field.").nullable().optional()
|
|
31
|
-
}).describe("Custom form field definition.");
|
|
31
|
+
}).passthrough().describe("Custom form field definition.");
|
|
32
32
|
const PayhereCreatePlanOutput = zod.z.object({
|
|
33
33
|
id: zod.z.number().int().describe("Unique plan identifier.").nullable().optional(),
|
|
34
34
|
qty: zod.z.number().int().describe("Available quantity.").nullable().optional(),
|
|
@@ -59,7 +59,7 @@ const PayhereCreatePlanOutput = zod.z.object({
|
|
|
59
59
|
min_billing_cycles: zod.z.number().int().describe("Minimum billing cycles before cancellation allowed.").nullable().optional(),
|
|
60
60
|
user_selects_amount: zod.z.boolean().describe("Whether user selects the payment amount.").nullable().optional(),
|
|
61
61
|
billing_interval_count: zod.z.number().int().describe("Number of intervals between billings.").nullable().optional()
|
|
62
|
-
}).describe("Response schema for creating a new plan.");
|
|
62
|
+
}).passthrough().describe("Response schema for creating a new plan.");
|
|
63
63
|
const payhereCreatePlan = require_action.action("PAYHERE_CREATE_PLAN", {
|
|
64
64
|
slug: "payhere-create-plan",
|
|
65
65
|
name: "Create Plan",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-plan.cjs","names":["z","action"],"sources":["../../src/actions/create-plan.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PayhereCreatePlanInput = z.object({\n name: z.string().describe(\"Display name for the plan shown to customers.\"),\n price: z.number().describe(\"Plan pricing. Omit for donation plans where user_selects_amount is true.\").optional(),\n hidden: z.boolean().describe(\"Hide plan from landing page if true.\").optional(),\n currency: z.string().describe(\"Three-letter currency code (e.g., 'usd', 'gbp', 'eur').\"),\n show_qty: z.boolean().describe(\"Enable quantity selection field. Only applies to one-off plans.\").optional(),\n setup_fee: z.number().describe(\"Initial one-time charge amount for recurring plans.\").optional(),\n billing_day: z.number().int().describe(\"Day of month for monthly charges (1-31) for recurring plans.\").optional(),\n description: z.string().describe(\"Product or service description shown to customers.\").optional(),\n success_url: z.string().describe(\"URL to redirect customers after successful payment.\").optional(),\n webhook_url: z.string().describe(\"Endpoint URL for receiving payment status notifications.\").optional(),\n cancel_after: z.number().int().describe(\"Auto-cancel subscription after N payments for recurring plans.\").optional(),\n payment_type: z.enum([\"recurring\", \"one_off\"]).describe(\"Type of plan: \\\"recurring\\\" for subscriptions or \\\"one_off\\\" for one-time payments.\"),\n receipt_text: z.string().describe(\"Custom message displayed on payment receipts.\").optional(),\n pay_button_text: z.string().describe(\"Custom label for payment button. Defaults to \\\"Pay\\\".\").optional(),\n billing_interval: z.enum([\"week\", \"month\", \"year\"]).describe(\"Billing frequency for recurring plans: \\\"week\\\", \\\"month\\\", or \\\"year\\\". Required for recurring plans.\").optional(),\n min_billing_cycles: z.number().int().describe(\"Minimum billing cycles before cancellation is allowed for recurring plans.\").optional(),\n user_selects_amount: z.boolean().describe(\"Enable donation functionality where users choose the payment amount. When true, omit the price field.\").optional(),\n}).describe(\"Request model for creating a new plan in PayHere.\\n\\nRequired fields vary by plan type:\\n- For one_off plans: name, price, currency, payment_type\\n- For recurring plans: name, price, currency, payment_type, billing_interval\\n- For donation plans: name, currency, payment_type, user_selects_amount=true (price should be omitted)\\n\\nThe payment_type determines whether this is a recurring subscription or one-time payment.\");\nconst PayhereCreatePlan_CustomFieldSchema = z.object({\n name: z.string().describe(\"Name of the custom field.\").nullable().optional(),\n required: z.boolean().describe(\"Whether the field is required.\").nullable().optional(),\n field_type: z.string().describe(\"Type of the custom field.\").nullable().optional(),\n}).describe(\"Custom form field definition.\");\nexport const PayhereCreatePlanOutput = z.object({\n id: z.number().int().describe(\"Unique plan identifier.\").nullable().optional(),\n qty: z.number().int().describe(\"Available quantity.\").nullable().optional(),\n name: z.string().describe(\"Plan name.\").nullable().optional(),\n slug: z.string().describe(\"URL-friendly plan identifier.\").nullable().optional(),\n type: z.string().describe(\"Plan type.\").nullable().optional(),\n price: z.number().describe(\"Plan price.\").nullable().optional(),\n hidden: z.boolean().describe(\"Whether plan is hidden from landing page.\").nullable().optional(),\n currency: z.string().describe(\"Three-letter currency code (e.g., 'usd', 'gbp').\").nullable().optional(),\n show_qty: z.boolean().describe(\"Whether to show quantity selector.\").nullable().optional(),\n setup_fee: z.number().describe(\"Setup fee amount.\").nullable().optional(),\n created_at: z.string().describe(\"Creation timestamp.\").nullable().optional(),\n updated_at: z.string().describe(\"Last update timestamp.\").nullable().optional(),\n billing_day: z.number().int().describe(\"Day of month for billing.\").nullable().optional(),\n description: z.string().describe(\"Plan description.\").nullable().optional(),\n limited_qty: z.boolean().describe(\"Whether quantity is limited.\").nullable().optional(),\n success_url: z.string().describe(\"Success redirect URL.\").nullable().optional(),\n webhook_url: z.string().describe(\"Webhook URL.\").nullable().optional(),\n cancel_after: z.number().int().describe(\"Auto-cancel after N payments.\").nullable().optional(),\n payment_type: z.string().describe(\"Type of plan: \\\"recurring\\\" or \\\"one_off\\\".\").nullable().optional(),\n receipt_text: z.string().describe(\"Receipt text.\").nullable().optional(),\n custom_fields: z.array(PayhereCreatePlan_CustomFieldSchema).describe(\"Custom form fields.\").nullable().optional(),\n has_setup_fee: z.boolean().describe(\"Whether plan has setup fee.\").nullable().optional(),\n price_in_cents: z.number().int().describe(\"Price in smallest currency unit (e.g., cents).\").nullable().optional(),\n pay_button_text: z.string().describe(\"Payment button text.\").nullable().optional(),\n billing_interval: z.string().describe(\"Billing frequency for recurring plans.\").nullable().optional(),\n trial_period_days: z.number().int().describe(\"Trial period length in days.\").nullable().optional(),\n min_billing_cycles: z.number().int().describe(\"Minimum billing cycles before cancellation allowed.\").nullable().optional(),\n user_selects_amount: z.boolean().describe(\"Whether user selects the payment amount.\").nullable().optional(),\n billing_interval_count: z.number().int().describe(\"Number of intervals between billings.\").nullable().optional(),\n}).describe(\"Response schema for creating a new plan.\");\n\nexport const payhereCreatePlan = action(\"PAYHERE_CREATE_PLAN\", {\n slug: \"payhere-create-plan\",\n name: \"Create Plan\",\n description: \"Tool to create a new payment plan in PayHere. Use when you need to set up either a recurring subscription or one-off payment plan for accepting payments.\",\n input: PayhereCreatePlanInput,\n output: PayhereCreatePlanOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yBAAyBA,IAAAA,EAAE,OAAO;CAC7C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C;CACzE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS;CAChH,QAAQA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CAC9E,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD;CACvF,UAAUA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS;CAC3G,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;CAC/F,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;CAChH,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;CAChG,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;CACjG,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;CACtG,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS;CACnH,cAAcA,IAAAA,EAAE,KAAK,CAAC,aAAa,SAAS,CAAC,CAAC,CAAC,SAAS,qFAAqF;CAC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AC,CAAC,SAAS;CAC1G,wBAAwBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACjH,CAAC,CAAC,CAAC,SAAS,0CAA0C;AAEtD,MAAa,oBAAoBC,eAAAA,OAAO,uBAAuB;CAC7D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
1
|
+
{"version":3,"file":"create-plan.cjs","names":["z","action"],"sources":["../../src/actions/create-plan.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PayhereCreatePlanInput = z.object({\n name: z.string().describe(\"Display name for the plan shown to customers.\"),\n price: z.number().describe(\"Plan pricing. Omit for donation plans where user_selects_amount is true.\").optional(),\n hidden: z.boolean().describe(\"Hide plan from landing page if true.\").optional(),\n currency: z.string().describe(\"Three-letter currency code (e.g., 'usd', 'gbp', 'eur').\"),\n show_qty: z.boolean().describe(\"Enable quantity selection field. Only applies to one-off plans.\").optional(),\n setup_fee: z.number().describe(\"Initial one-time charge amount for recurring plans.\").optional(),\n billing_day: z.number().int().describe(\"Day of month for monthly charges (1-31) for recurring plans.\").optional(),\n description: z.string().describe(\"Product or service description shown to customers.\").optional(),\n success_url: z.string().describe(\"URL to redirect customers after successful payment.\").optional(),\n webhook_url: z.string().describe(\"Endpoint URL for receiving payment status notifications.\").optional(),\n cancel_after: z.number().int().describe(\"Auto-cancel subscription after N payments for recurring plans.\").optional(),\n payment_type: z.enum([\"recurring\", \"one_off\"]).describe(\"Type of plan: \\\"recurring\\\" for subscriptions or \\\"one_off\\\" for one-time payments.\"),\n receipt_text: z.string().describe(\"Custom message displayed on payment receipts.\").optional(),\n pay_button_text: z.string().describe(\"Custom label for payment button. Defaults to \\\"Pay\\\".\").optional(),\n billing_interval: z.enum([\"week\", \"month\", \"year\"]).describe(\"Billing frequency for recurring plans: \\\"week\\\", \\\"month\\\", or \\\"year\\\". Required for recurring plans.\").optional(),\n min_billing_cycles: z.number().int().describe(\"Minimum billing cycles before cancellation is allowed for recurring plans.\").optional(),\n user_selects_amount: z.boolean().describe(\"Enable donation functionality where users choose the payment amount. When true, omit the price field.\").optional(),\n}).describe(\"Request model for creating a new plan in PayHere.\\n\\nRequired fields vary by plan type:\\n- For one_off plans: name, price, currency, payment_type\\n- For recurring plans: name, price, currency, payment_type, billing_interval\\n- For donation plans: name, currency, payment_type, user_selects_amount=true (price should be omitted)\\n\\nThe payment_type determines whether this is a recurring subscription or one-time payment.\");\nconst PayhereCreatePlan_CustomFieldSchema = z.object({\n name: z.string().describe(\"Name of the custom field.\").nullable().optional(),\n required: z.boolean().describe(\"Whether the field is required.\").nullable().optional(),\n field_type: z.string().describe(\"Type of the custom field.\").nullable().optional(),\n}).passthrough().describe(\"Custom form field definition.\");\nexport const PayhereCreatePlanOutput = z.object({\n id: z.number().int().describe(\"Unique plan identifier.\").nullable().optional(),\n qty: z.number().int().describe(\"Available quantity.\").nullable().optional(),\n name: z.string().describe(\"Plan name.\").nullable().optional(),\n slug: z.string().describe(\"URL-friendly plan identifier.\").nullable().optional(),\n type: z.string().describe(\"Plan type.\").nullable().optional(),\n price: z.number().describe(\"Plan price.\").nullable().optional(),\n hidden: z.boolean().describe(\"Whether plan is hidden from landing page.\").nullable().optional(),\n currency: z.string().describe(\"Three-letter currency code (e.g., 'usd', 'gbp').\").nullable().optional(),\n show_qty: z.boolean().describe(\"Whether to show quantity selector.\").nullable().optional(),\n setup_fee: z.number().describe(\"Setup fee amount.\").nullable().optional(),\n created_at: z.string().describe(\"Creation timestamp.\").nullable().optional(),\n updated_at: z.string().describe(\"Last update timestamp.\").nullable().optional(),\n billing_day: z.number().int().describe(\"Day of month for billing.\").nullable().optional(),\n description: z.string().describe(\"Plan description.\").nullable().optional(),\n limited_qty: z.boolean().describe(\"Whether quantity is limited.\").nullable().optional(),\n success_url: z.string().describe(\"Success redirect URL.\").nullable().optional(),\n webhook_url: z.string().describe(\"Webhook URL.\").nullable().optional(),\n cancel_after: z.number().int().describe(\"Auto-cancel after N payments.\").nullable().optional(),\n payment_type: z.string().describe(\"Type of plan: \\\"recurring\\\" or \\\"one_off\\\".\").nullable().optional(),\n receipt_text: z.string().describe(\"Receipt text.\").nullable().optional(),\n custom_fields: z.array(PayhereCreatePlan_CustomFieldSchema).describe(\"Custom form fields.\").nullable().optional(),\n has_setup_fee: z.boolean().describe(\"Whether plan has setup fee.\").nullable().optional(),\n price_in_cents: z.number().int().describe(\"Price in smallest currency unit (e.g., cents).\").nullable().optional(),\n pay_button_text: z.string().describe(\"Payment button text.\").nullable().optional(),\n billing_interval: z.string().describe(\"Billing frequency for recurring plans.\").nullable().optional(),\n trial_period_days: z.number().int().describe(\"Trial period length in days.\").nullable().optional(),\n min_billing_cycles: z.number().int().describe(\"Minimum billing cycles before cancellation allowed.\").nullable().optional(),\n user_selects_amount: z.boolean().describe(\"Whether user selects the payment amount.\").nullable().optional(),\n billing_interval_count: z.number().int().describe(\"Number of intervals between billings.\").nullable().optional(),\n}).passthrough().describe(\"Response schema for creating a new plan.\");\n\nexport const payhereCreatePlan = action(\"PAYHERE_CREATE_PLAN\", {\n slug: \"payhere-create-plan\",\n name: \"Create Plan\",\n description: \"Tool to create a new payment plan in PayHere. Use when you need to set up either a recurring subscription or one-off payment plan for accepting payments.\",\n input: PayhereCreatePlanInput,\n output: PayhereCreatePlanOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yBAAyBA,IAAAA,EAAE,OAAO;CAC7C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C;CACzE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS;CAChH,QAAQA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CAC9E,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD;CACvF,U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SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvF,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChH,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpG,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjG,oBAAoBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzH,qBAAqBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1G,wBAAwBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACjH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0CAA0C;AAEpE,MAAa,oBAAoBC,eAAAA,OAAO,uBAAuB;CAC7D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -52,7 +52,7 @@ declare const PayhereCreatePlanOutput: z.ZodObject<{
|
|
|
52
52
|
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
53
53
|
required: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
54
54
|
field_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
55
|
-
}, z.core.$
|
|
55
|
+
}, z.core.$loose>>>>;
|
|
56
56
|
has_setup_fee: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
57
57
|
price_in_cents: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
58
58
|
pay_button_text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -61,7 +61,7 @@ declare const PayhereCreatePlanOutput: z.ZodObject<{
|
|
|
61
61
|
min_billing_cycles: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
62
62
|
user_selects_amount: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
63
63
|
billing_interval_count: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
64
|
-
}, z.core.$
|
|
64
|
+
}, z.core.$loose>;
|
|
65
65
|
declare const payhereCreatePlan: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
66
66
|
name: string;
|
|
67
67
|
currency: string;
|
|
@@ -52,7 +52,7 @@ declare const PayhereCreatePlanOutput: z.ZodObject<{
|
|
|
52
52
|
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
53
53
|
required: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
54
54
|
field_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
55
|
-
}, z.core.$
|
|
55
|
+
}, z.core.$loose>>>>;
|
|
56
56
|
has_setup_fee: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
57
57
|
price_in_cents: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
58
58
|
pay_button_text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -61,7 +61,7 @@ declare const PayhereCreatePlanOutput: z.ZodObject<{
|
|
|
61
61
|
min_billing_cycles: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
62
62
|
user_selects_amount: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
63
63
|
billing_interval_count: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
64
|
-
}, z.core.$
|
|
64
|
+
}, z.core.$loose>;
|
|
65
65
|
declare const payhereCreatePlan: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
66
66
|
name: string;
|
|
67
67
|
currency: string;
|
|
@@ -28,7 +28,7 @@ const PayhereCreatePlan_CustomFieldSchema = z.object({
|
|
|
28
28
|
name: z.string().describe("Name of the custom field.").nullable().optional(),
|
|
29
29
|
required: z.boolean().describe("Whether the field is required.").nullable().optional(),
|
|
30
30
|
field_type: z.string().describe("Type of the custom field.").nullable().optional()
|
|
31
|
-
}).describe("Custom form field definition.");
|
|
31
|
+
}).passthrough().describe("Custom form field definition.");
|
|
32
32
|
const payhereCreatePlan = action("PAYHERE_CREATE_PLAN", {
|
|
33
33
|
slug: "payhere-create-plan",
|
|
34
34
|
name: "Create Plan",
|
|
@@ -64,7 +64,7 @@ const payhereCreatePlan = action("PAYHERE_CREATE_PLAN", {
|
|
|
64
64
|
min_billing_cycles: z.number().int().describe("Minimum billing cycles before cancellation allowed.").nullable().optional(),
|
|
65
65
|
user_selects_amount: z.boolean().describe("Whether user selects the payment amount.").nullable().optional(),
|
|
66
66
|
billing_interval_count: z.number().int().describe("Number of intervals between billings.").nullable().optional()
|
|
67
|
-
}).describe("Response schema for creating a new plan.")
|
|
67
|
+
}).passthrough().describe("Response schema for creating a new plan.")
|
|
68
68
|
});
|
|
69
69
|
//#endregion
|
|
70
70
|
export { payhereCreatePlan };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-plan.mjs","names":[],"sources":["../../src/actions/create-plan.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PayhereCreatePlanInput = z.object({\n name: z.string().describe(\"Display name for the plan shown to customers.\"),\n price: z.number().describe(\"Plan pricing. Omit for donation plans where user_selects_amount is true.\").optional(),\n hidden: z.boolean().describe(\"Hide plan from landing page if true.\").optional(),\n currency: z.string().describe(\"Three-letter currency code (e.g., 'usd', 'gbp', 'eur').\"),\n show_qty: z.boolean().describe(\"Enable quantity selection field. Only applies to one-off plans.\").optional(),\n setup_fee: z.number().describe(\"Initial one-time charge amount for recurring plans.\").optional(),\n billing_day: z.number().int().describe(\"Day of month for monthly charges (1-31) for recurring plans.\").optional(),\n description: z.string().describe(\"Product or service description shown to customers.\").optional(),\n success_url: z.string().describe(\"URL to redirect customers after successful payment.\").optional(),\n webhook_url: z.string().describe(\"Endpoint URL for receiving payment status notifications.\").optional(),\n cancel_after: z.number().int().describe(\"Auto-cancel subscription after N payments for recurring plans.\").optional(),\n payment_type: z.enum([\"recurring\", \"one_off\"]).describe(\"Type of plan: \\\"recurring\\\" for subscriptions or \\\"one_off\\\" for one-time payments.\"),\n receipt_text: z.string().describe(\"Custom message displayed on payment receipts.\").optional(),\n pay_button_text: z.string().describe(\"Custom label for payment button. Defaults to \\\"Pay\\\".\").optional(),\n billing_interval: z.enum([\"week\", \"month\", \"year\"]).describe(\"Billing frequency for recurring plans: \\\"week\\\", \\\"month\\\", or \\\"year\\\". Required for recurring plans.\").optional(),\n min_billing_cycles: z.number().int().describe(\"Minimum billing cycles before cancellation is allowed for recurring plans.\").optional(),\n user_selects_amount: z.boolean().describe(\"Enable donation functionality where users choose the payment amount. When true, omit the price field.\").optional(),\n}).describe(\"Request model for creating a new plan in PayHere.\\n\\nRequired fields vary by plan type:\\n- For one_off plans: name, price, currency, payment_type\\n- For recurring plans: name, price, currency, payment_type, billing_interval\\n- For donation plans: name, currency, payment_type, user_selects_amount=true (price should be omitted)\\n\\nThe payment_type determines whether this is a recurring subscription or one-time payment.\");\nconst PayhereCreatePlan_CustomFieldSchema = z.object({\n name: z.string().describe(\"Name of the custom field.\").nullable().optional(),\n required: z.boolean().describe(\"Whether the field is required.\").nullable().optional(),\n field_type: z.string().describe(\"Type of the custom field.\").nullable().optional(),\n}).describe(\"Custom form field definition.\");\nexport const PayhereCreatePlanOutput = z.object({\n id: z.number().int().describe(\"Unique plan identifier.\").nullable().optional(),\n qty: z.number().int().describe(\"Available quantity.\").nullable().optional(),\n name: z.string().describe(\"Plan name.\").nullable().optional(),\n slug: z.string().describe(\"URL-friendly plan identifier.\").nullable().optional(),\n type: z.string().describe(\"Plan type.\").nullable().optional(),\n price: z.number().describe(\"Plan price.\").nullable().optional(),\n hidden: z.boolean().describe(\"Whether plan is hidden from landing page.\").nullable().optional(),\n currency: z.string().describe(\"Three-letter currency code (e.g., 'usd', 'gbp').\").nullable().optional(),\n show_qty: z.boolean().describe(\"Whether to show quantity selector.\").nullable().optional(),\n setup_fee: z.number().describe(\"Setup fee amount.\").nullable().optional(),\n created_at: z.string().describe(\"Creation timestamp.\").nullable().optional(),\n updated_at: z.string().describe(\"Last update timestamp.\").nullable().optional(),\n billing_day: z.number().int().describe(\"Day of month for billing.\").nullable().optional(),\n description: z.string().describe(\"Plan description.\").nullable().optional(),\n limited_qty: z.boolean().describe(\"Whether quantity is limited.\").nullable().optional(),\n success_url: z.string().describe(\"Success redirect URL.\").nullable().optional(),\n webhook_url: z.string().describe(\"Webhook URL.\").nullable().optional(),\n cancel_after: z.number().int().describe(\"Auto-cancel after N payments.\").nullable().optional(),\n payment_type: z.string().describe(\"Type of plan: \\\"recurring\\\" or \\\"one_off\\\".\").nullable().optional(),\n receipt_text: z.string().describe(\"Receipt text.\").nullable().optional(),\n custom_fields: z.array(PayhereCreatePlan_CustomFieldSchema).describe(\"Custom form fields.\").nullable().optional(),\n has_setup_fee: z.boolean().describe(\"Whether plan has setup fee.\").nullable().optional(),\n price_in_cents: z.number().int().describe(\"Price in smallest currency unit (e.g., cents).\").nullable().optional(),\n pay_button_text: z.string().describe(\"Payment button text.\").nullable().optional(),\n billing_interval: z.string().describe(\"Billing frequency for recurring plans.\").nullable().optional(),\n trial_period_days: z.number().int().describe(\"Trial period length in days.\").nullable().optional(),\n min_billing_cycles: z.number().int().describe(\"Minimum billing cycles before cancellation allowed.\").nullable().optional(),\n user_selects_amount: z.boolean().describe(\"Whether user selects the payment amount.\").nullable().optional(),\n billing_interval_count: z.number().int().describe(\"Number of intervals between billings.\").nullable().optional(),\n}).describe(\"Response schema for creating a new plan.\");\n\nexport const payhereCreatePlan = action(\"PAYHERE_CREATE_PLAN\", {\n slug: \"payhere-create-plan\",\n name: \"Create Plan\",\n description: \"Tool to create a new payment plan in PayHere. Use when you need to set up either a recurring subscription or one-off payment plan for accepting payments.\",\n input: PayhereCreatePlanInput,\n output: PayhereCreatePlanOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yBAAyB,EAAE,OAAO;CAC7C,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C;CACzE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS;CAChH,QAAQ,EAAE,QAAQ,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CAC9E,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD;CACvF,UAAU,EAAE,QAAQ,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS;CAC3G,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;CAC/F,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;CAChH,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;CAChG,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;CACjG,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;CACtG,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS;CACnH,cAAc,EAAE,KAAK,CAAC,aAAa,SAAS,CAAC,CAAC,CAAC,SAAS,qFAAqF;CAC7I,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CAC5F,iBAAi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AO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACrG,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,eAAe,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvE,eAAe,EAAE,MAAM,mCAAmC,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChH,eAAe,EAAE,QAAQ,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvF,gBAAgB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChH,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjF,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACpG,mBAAmB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjG,oBAAoB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACzH,qBAAqB,EAAE,QAAQ,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1G,wBAAwB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjH,CAAC,CAAC,CAAC,SAAS,0CAOF;AACV,CAAC"}
|
|
1
|
+
{"version":3,"file":"create-plan.mjs","names":[],"sources":["../../src/actions/create-plan.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PayhereCreatePlanInput = z.object({\n name: z.string().describe(\"Display name for the plan shown to customers.\"),\n price: z.number().describe(\"Plan pricing. Omit for donation plans where user_selects_amount is true.\").optional(),\n hidden: z.boolean().describe(\"Hide plan from landing page if true.\").optional(),\n currency: z.string().describe(\"Three-letter currency code (e.g., 'usd', 'gbp', 'eur').\"),\n show_qty: z.boolean().describe(\"Enable quantity selection field. Only applies to one-off plans.\").optional(),\n setup_fee: z.number().describe(\"Initial one-time charge amount for recurring plans.\").optional(),\n billing_day: z.number().int().describe(\"Day of month for monthly charges (1-31) for recurring plans.\").optional(),\n description: z.string().describe(\"Product or service description shown to customers.\").optional(),\n success_url: z.string().describe(\"URL to redirect customers after successful payment.\").optional(),\n webhook_url: z.string().describe(\"Endpoint URL for receiving payment status notifications.\").optional(),\n cancel_after: z.number().int().describe(\"Auto-cancel subscription after N payments for recurring plans.\").optional(),\n payment_type: z.enum([\"recurring\", \"one_off\"]).describe(\"Type of plan: \\\"recurring\\\" for subscriptions or \\\"one_off\\\" for one-time payments.\"),\n receipt_text: z.string().describe(\"Custom message displayed on payment receipts.\").optional(),\n pay_button_text: z.string().describe(\"Custom label for payment button. Defaults to \\\"Pay\\\".\").optional(),\n billing_interval: z.enum([\"week\", \"month\", \"year\"]).describe(\"Billing frequency for recurring plans: \\\"week\\\", \\\"month\\\", or \\\"year\\\". Required for recurring plans.\").optional(),\n min_billing_cycles: z.number().int().describe(\"Minimum billing cycles before cancellation is allowed for recurring plans.\").optional(),\n user_selects_amount: z.boolean().describe(\"Enable donation functionality where users choose the payment amount. When true, omit the price field.\").optional(),\n}).describe(\"Request model for creating a new plan in PayHere.\\n\\nRequired fields vary by plan type:\\n- For one_off plans: name, price, currency, payment_type\\n- For recurring plans: name, price, currency, payment_type, billing_interval\\n- For donation plans: name, currency, payment_type, user_selects_amount=true (price should be omitted)\\n\\nThe payment_type determines whether this is a recurring subscription or one-time payment.\");\nconst PayhereCreatePlan_CustomFieldSchema = z.object({\n name: z.string().describe(\"Name of the custom field.\").nullable().optional(),\n required: z.boolean().describe(\"Whether the field is required.\").nullable().optional(),\n field_type: z.string().describe(\"Type of the custom field.\").nullable().optional(),\n}).passthrough().describe(\"Custom form field definition.\");\nexport const PayhereCreatePlanOutput = z.object({\n id: z.number().int().describe(\"Unique plan identifier.\").nullable().optional(),\n qty: z.number().int().describe(\"Available quantity.\").nullable().optional(),\n name: z.string().describe(\"Plan name.\").nullable().optional(),\n slug: z.string().describe(\"URL-friendly plan identifier.\").nullable().optional(),\n type: z.string().describe(\"Plan type.\").nullable().optional(),\n price: z.number().describe(\"Plan price.\").nullable().optional(),\n hidden: z.boolean().describe(\"Whether plan is hidden from landing page.\").nullable().optional(),\n currency: z.string().describe(\"Three-letter currency code (e.g., 'usd', 'gbp').\").nullable().optional(),\n show_qty: z.boolean().describe(\"Whether to show quantity selector.\").nullable().optional(),\n setup_fee: z.number().describe(\"Setup fee amount.\").nullable().optional(),\n created_at: z.string().describe(\"Creation timestamp.\").nullable().optional(),\n updated_at: z.string().describe(\"Last update timestamp.\").nullable().optional(),\n billing_day: z.number().int().describe(\"Day of month for billing.\").nullable().optional(),\n description: z.string().describe(\"Plan description.\").nullable().optional(),\n limited_qty: z.boolean().describe(\"Whether quantity is limited.\").nullable().optional(),\n success_url: z.string().describe(\"Success redirect URL.\").nullable().optional(),\n webhook_url: z.string().describe(\"Webhook URL.\").nullable().optional(),\n cancel_after: z.number().int().describe(\"Auto-cancel after N payments.\").nullable().optional(),\n payment_type: z.string().describe(\"Type of plan: \\\"recurring\\\" or \\\"one_off\\\".\").nullable().optional(),\n receipt_text: z.string().describe(\"Receipt text.\").nullable().optional(),\n custom_fields: z.array(PayhereCreatePlan_CustomFieldSchema).describe(\"Custom form fields.\").nullable().optional(),\n has_setup_fee: z.boolean().describe(\"Whether plan has setup fee.\").nullable().optional(),\n price_in_cents: z.number().int().describe(\"Price in smallest currency unit (e.g., cents).\").nullable().optional(),\n pay_button_text: z.string().describe(\"Payment button text.\").nullable().optional(),\n billing_interval: z.string().describe(\"Billing frequency for recurring plans.\").nullable().optional(),\n trial_period_days: z.number().int().describe(\"Trial period length in days.\").nullable().optional(),\n min_billing_cycles: z.number().int().describe(\"Minimum billing cycles before cancellation allowed.\").nullable().optional(),\n user_selects_amount: z.boolean().describe(\"Whether user selects the payment amount.\").nullable().optional(),\n billing_interval_count: z.number().int().describe(\"Number of intervals between billings.\").nullable().optional(),\n}).passthrough().describe(\"Response schema for creating a new plan.\");\n\nexport const payhereCreatePlan = action(\"PAYHERE_CREATE_PLAN\", {\n slug: \"payhere-create-plan\",\n name: \"Create Plan\",\n description: \"Tool to create a new payment plan in PayHere. Use when you need to set up either a recurring subscription or one-off payment plan for accepting payments.\",\n input: PayhereCreatePlanInput,\n output: PayhereCreatePlanOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yBAAyB,EAAE,OAAO;CAC7C,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C;CACzE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS;CAChH,QAAQ,EAAE,QAAQ,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CAC9E,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD;CACvF,UAAU,EAAE,QAAQ,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS;CAC3G,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;CAC/F,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;CAChH,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;CAChG,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;CACjG,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;CACtG,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SA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AAS;CACjH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0CAOhB;AACV,CAAC"}
|
|
@@ -5,7 +5,7 @@ const PayhereDeleteHookInput = zod.z.object({ id: zod.z.number().int().describe(
|
|
|
5
5
|
const PayhereDeleteHookOutput = zod.z.object({
|
|
6
6
|
id: zod.z.number().int().describe("The identifier of the REST hook that was deleted").nullable(),
|
|
7
7
|
message: zod.z.string().describe("Confirmation message indicating the hook was successfully deleted").nullable()
|
|
8
|
-
}).describe("Response schema for deleting a REST hook.");
|
|
8
|
+
}).passthrough().describe("Response schema for deleting a REST hook.");
|
|
9
9
|
const payhereDeleteHook = require_action.action("PAYHERE_DELETE_HOOK", {
|
|
10
10
|
slug: "payhere-delete-hook",
|
|
11
11
|
name: "Delete Hook",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete-hook.cjs","names":["z","action"],"sources":["../../src/actions/delete-hook.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PayhereDeleteHookInput = z.object({\n id: z.number().int().describe(\"The unique identifier of the REST hook to delete\"),\n}).describe(\"Request parameters for deleting a REST hook listener.\");\nexport const PayhereDeleteHookOutput = z.object({\n id: z.number().int().describe(\"The identifier of the REST hook that was deleted\").nullable(),\n message: z.string().describe(\"Confirmation message indicating the hook was successfully deleted\").nullable(),\n}).describe(\"Response schema for deleting a REST hook.\");\n\nexport const payhereDeleteHook = action(\"PAYHERE_DELETE_HOOK\", {\n slug: \"payhere-delete-hook\",\n name: \"Delete Hook\",\n description: \"Tool to remove a REST hook listener subscription. Use when you need to stop receiving webhook events for a specific hook.\",\n input: PayhereDeleteHookInput,\n output: PayhereDeleteHookOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yBAAyBA,IAAAA,EAAE,OAAO,EAC7C,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kDAAkD,EAClF,CAAC,CAAC,CAAC,SAAS,uDAAuD;AACnE,MAAa,0BAA0BA,IAAAA,EAAE,OAAO;CAC9C,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;CAC3F,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS;AAC7G,CAAC,CAAC,CAAC,SAAS,2CAA2C;
|
|
1
|
+
{"version":3,"file":"delete-hook.cjs","names":["z","action"],"sources":["../../src/actions/delete-hook.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PayhereDeleteHookInput = z.object({\n id: z.number().int().describe(\"The unique identifier of the REST hook to delete\"),\n}).describe(\"Request parameters for deleting a REST hook listener.\");\nexport const PayhereDeleteHookOutput = z.object({\n id: z.number().int().describe(\"The identifier of the REST hook that was deleted\").nullable(),\n message: z.string().describe(\"Confirmation message indicating the hook was successfully deleted\").nullable(),\n}).passthrough().describe(\"Response schema for deleting a REST hook.\");\n\nexport const payhereDeleteHook = action(\"PAYHERE_DELETE_HOOK\", {\n slug: \"payhere-delete-hook\",\n name: \"Delete Hook\",\n description: \"Tool to remove a REST hook listener subscription. Use when you need to stop receiving webhook events for a specific hook.\",\n input: PayhereDeleteHookInput,\n output: PayhereDeleteHookOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yBAAyBA,IAAAA,EAAE,OAAO,EAC7C,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kDAAkD,EAClF,CAAC,CAAC,CAAC,SAAS,uDAAuD;AACnE,MAAa,0BAA0BA,IAAAA,EAAE,OAAO;CAC9C,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;CAC3F,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS;AAC7G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2CAA2C;AAErE,MAAa,oBAAoBC,eAAAA,OAAO,uBAAuB;CAC7D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -7,7 +7,7 @@ declare const PayhereDeleteHookInput: z.ZodObject<{
|
|
|
7
7
|
declare const PayhereDeleteHookOutput: z.ZodObject<{
|
|
8
8
|
id: z.ZodNullable<z.ZodNumber>;
|
|
9
9
|
message: z.ZodNullable<z.ZodString>;
|
|
10
|
-
}, z.core.$
|
|
10
|
+
}, z.core.$loose>;
|
|
11
11
|
declare const payhereDeleteHook: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
12
12
|
id: number;
|
|
13
13
|
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
@@ -7,7 +7,7 @@ declare const PayhereDeleteHookInput: z.ZodObject<{
|
|
|
7
7
|
declare const PayhereDeleteHookOutput: z.ZodObject<{
|
|
8
8
|
id: z.ZodNullable<z.ZodNumber>;
|
|
9
9
|
message: z.ZodNullable<z.ZodString>;
|
|
10
|
-
}, z.core.$
|
|
10
|
+
}, z.core.$loose>;
|
|
11
11
|
declare const payhereDeleteHook: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
12
12
|
id: number;
|
|
13
13
|
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
@@ -8,7 +8,7 @@ const payhereDeleteHook = action("PAYHERE_DELETE_HOOK", {
|
|
|
8
8
|
output: z.object({
|
|
9
9
|
id: z.number().int().describe("The identifier of the REST hook that was deleted").nullable(),
|
|
10
10
|
message: z.string().describe("Confirmation message indicating the hook was successfully deleted").nullable()
|
|
11
|
-
}).describe("Response schema for deleting a REST hook.")
|
|
11
|
+
}).passthrough().describe("Response schema for deleting a REST hook.")
|
|
12
12
|
});
|
|
13
13
|
//#endregion
|
|
14
14
|
export { payhereDeleteHook };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete-hook.mjs","names":[],"sources":["../../src/actions/delete-hook.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PayhereDeleteHookInput = z.object({\n id: z.number().int().describe(\"The unique identifier of the REST hook to delete\"),\n}).describe(\"Request parameters for deleting a REST hook listener.\");\nexport const PayhereDeleteHookOutput = z.object({\n id: z.number().int().describe(\"The identifier of the REST hook that was deleted\").nullable(),\n message: z.string().describe(\"Confirmation message indicating the hook was successfully deleted\").nullable(),\n}).describe(\"Response schema for deleting a REST hook.\");\n\nexport const payhereDeleteHook = action(\"PAYHERE_DELETE_HOOK\", {\n slug: \"payhere-delete-hook\",\n name: \"Delete Hook\",\n description: \"Tool to remove a REST hook listener subscription. Use when you need to stop receiving webhook events for a specific hook.\",\n input: PayhereDeleteHookInput,\n output: PayhereDeleteHookOutput,\n});\n"],"mappings":";;AAYA,MAAa,oBAAoB,OAAO,uBAAuB;CAC7D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAZoC,EAAE,OAAO,EAC7C,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kDAAkD,EAClF,CAAC,CAAC,CAAC,SAAS,uDAUH;CACP,QAVqC,EAAE,OAAO;EAC9C,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;EAC3F,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS;CAC7G,CAAC,CAAC,CAAC,SAAS,
|
|
1
|
+
{"version":3,"file":"delete-hook.mjs","names":[],"sources":["../../src/actions/delete-hook.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PayhereDeleteHookInput = z.object({\n id: z.number().int().describe(\"The unique identifier of the REST hook to delete\"),\n}).describe(\"Request parameters for deleting a REST hook listener.\");\nexport const PayhereDeleteHookOutput = z.object({\n id: z.number().int().describe(\"The identifier of the REST hook that was deleted\").nullable(),\n message: z.string().describe(\"Confirmation message indicating the hook was successfully deleted\").nullable(),\n}).passthrough().describe(\"Response schema for deleting a REST hook.\");\n\nexport const payhereDeleteHook = action(\"PAYHERE_DELETE_HOOK\", {\n slug: \"payhere-delete-hook\",\n name: \"Delete Hook\",\n description: \"Tool to remove a REST hook listener subscription. Use when you need to stop receiving webhook events for a specific hook.\",\n input: PayhereDeleteHookInput,\n output: PayhereDeleteHookOutput,\n});\n"],"mappings":";;AAYA,MAAa,oBAAoB,OAAO,uBAAuB;CAC7D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAZoC,EAAE,OAAO,EAC7C,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kDAAkD,EAClF,CAAC,CAAC,CAAC,SAAS,uDAUH;CACP,QAVqC,EAAE,OAAO;EAC9C,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;EAC3F,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS;CAC7G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2CAOhB;AACV,CAAC"}
|
|
@@ -9,7 +9,7 @@ const PayhereGetCurrentCompanyStatsOutput = zod.z.object({
|
|
|
9
9
|
payments_comparison: zod.z.number().describe("Total payment amount from 30-60 days prior, used for comparison.").nullable(),
|
|
10
10
|
subscribers_last_30: zod.z.number().int().describe("Number of new subscribers acquired in the last 30 days.").nullable(),
|
|
11
11
|
subscribers_comparison: zod.z.number().int().describe("Number of new subscribers from the preceding 30-day period (30-60 days ago).").nullable()
|
|
12
|
-
}).describe("Response model for company payment statistics from the last 30 days with comparison to the preceding 30-day period.");
|
|
12
|
+
}).passthrough().describe("Response model for company payment statistics from the last 30 days with comparison to the preceding 30-day period.");
|
|
13
13
|
const payhereGetCurrentCompanyStats = require_action.action("PAYHERE_GET_CURRENT_COMPANY_STATS", {
|
|
14
14
|
slug: "payhere-get-current-company-stats",
|
|
15
15
|
name: "Get Current Company Stats",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-current-company-stats.cjs","names":["z","action"],"sources":["../../src/actions/get-current-company-stats.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PayhereGetCurrentCompanyStatsInput = z.object({}).describe(\"Request model for retrieving current company payment statistics. No parameters are required.\");\nexport const PayhereGetCurrentCompanyStatsOutput = z.object({\n currency: z.string().describe(\"Currency code for all monetary amounts (e.g., 'gbp', 'usd').\").nullable(),\n payments_last_30: z.number().describe(\"Total payment amount received in the last 30 days.\").nullable(),\n payments_all_time: z.number().describe(\"Total payment amount received across all time.\").nullable(),\n payments_comparison: z.number().describe(\"Total payment amount from 30-60 days prior, used for comparison.\").nullable(),\n subscribers_last_30: z.number().int().describe(\"Number of new subscribers acquired in the last 30 days.\").nullable(),\n subscribers_comparison: z.number().int().describe(\"Number of new subscribers from the preceding 30-day period (30-60 days ago).\").nullable(),\n}).describe(\"Response model for company payment statistics from the last 30 days with comparison to the preceding 30-day period.\");\n\nexport const payhereGetCurrentCompanyStats = action(\"PAYHERE_GET_CURRENT_COMPANY_STATS\", {\n slug: \"payhere-get-current-company-stats\",\n name: \"Get Current Company Stats\",\n description: \"Tool to fetch payment statistics for the last 30 days with comparison data from the preceding 30-day period (30-60 days ago). Use when you need to analyze recent payment trends, subscriber growth, or compare current performance against the previous month.\",\n input: PayhereGetCurrentCompanyStatsInput,\n output: PayhereGetCurrentCompanyStatsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,qCAAqCA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,8FAA8F;AACtK,MAAa,sCAAsCA,IAAAA,EAAE,OAAO;CAC1D,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;CACvG,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;CACrG,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CAClG,qBAAqBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS;CACtH,qBAAqBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;CACnH,wBAAwBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS;AAC7I,CAAC,CAAC,CAAC,SAAS,qHAAqH;
|
|
1
|
+
{"version":3,"file":"get-current-company-stats.cjs","names":["z","action"],"sources":["../../src/actions/get-current-company-stats.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PayhereGetCurrentCompanyStatsInput = z.object({}).describe(\"Request model for retrieving current company payment statistics. No parameters are required.\");\nexport const PayhereGetCurrentCompanyStatsOutput = z.object({\n currency: z.string().describe(\"Currency code for all monetary amounts (e.g., 'gbp', 'usd').\").nullable(),\n payments_last_30: z.number().describe(\"Total payment amount received in the last 30 days.\").nullable(),\n payments_all_time: z.number().describe(\"Total payment amount received across all time.\").nullable(),\n payments_comparison: z.number().describe(\"Total payment amount from 30-60 days prior, used for comparison.\").nullable(),\n subscribers_last_30: z.number().int().describe(\"Number of new subscribers acquired in the last 30 days.\").nullable(),\n subscribers_comparison: z.number().int().describe(\"Number of new subscribers from the preceding 30-day period (30-60 days ago).\").nullable(),\n}).passthrough().describe(\"Response model for company payment statistics from the last 30 days with comparison to the preceding 30-day period.\");\n\nexport const payhereGetCurrentCompanyStats = action(\"PAYHERE_GET_CURRENT_COMPANY_STATS\", {\n slug: \"payhere-get-current-company-stats\",\n name: \"Get Current Company Stats\",\n description: \"Tool to fetch payment statistics for the last 30 days with comparison data from the preceding 30-day period (30-60 days ago). Use when you need to analyze recent payment trends, subscriber growth, or compare current performance against the previous month.\",\n input: PayhereGetCurrentCompanyStatsInput,\n output: PayhereGetCurrentCompanyStatsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,qCAAqCA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,8FAA8F;AACtK,MAAa,sCAAsCA,IAAAA,EAAE,OAAO;CAC1D,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;CACvG,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;CACrG,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CAClG,qBAAqBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS;CACtH,qBAAqBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;CACnH,wBAAwBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS;AAC7I,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qHAAqH;AAE/I,MAAa,gCAAgCC,eAAAA,OAAO,qCAAqC;CACvF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -9,7 +9,7 @@ declare const PayhereGetCurrentCompanyStatsOutput: z.ZodObject<{
|
|
|
9
9
|
payments_comparison: z.ZodNullable<z.ZodNumber>;
|
|
10
10
|
subscribers_last_30: z.ZodNullable<z.ZodNumber>;
|
|
11
11
|
subscribers_comparison: z.ZodNullable<z.ZodNumber>;
|
|
12
|
-
}, z.core.$
|
|
12
|
+
}, z.core.$loose>;
|
|
13
13
|
declare const payhereGetCurrentCompanyStats: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
14
14
|
//#endregion
|
|
15
15
|
export { payhereGetCurrentCompanyStats };
|
|
@@ -9,7 +9,7 @@ declare const PayhereGetCurrentCompanyStatsOutput: z.ZodObject<{
|
|
|
9
9
|
payments_comparison: z.ZodNullable<z.ZodNumber>;
|
|
10
10
|
subscribers_last_30: z.ZodNullable<z.ZodNumber>;
|
|
11
11
|
subscribers_comparison: z.ZodNullable<z.ZodNumber>;
|
|
12
|
-
}, z.core.$
|
|
12
|
+
}, z.core.$loose>;
|
|
13
13
|
declare const payhereGetCurrentCompanyStats: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
14
14
|
//#endregion
|
|
15
15
|
export { payhereGetCurrentCompanyStats };
|
|
@@ -12,7 +12,7 @@ const payhereGetCurrentCompanyStats = action("PAYHERE_GET_CURRENT_COMPANY_STATS"
|
|
|
12
12
|
payments_comparison: z.number().describe("Total payment amount from 30-60 days prior, used for comparison.").nullable(),
|
|
13
13
|
subscribers_last_30: z.number().int().describe("Number of new subscribers acquired in the last 30 days.").nullable(),
|
|
14
14
|
subscribers_comparison: z.number().int().describe("Number of new subscribers from the preceding 30-day period (30-60 days ago).").nullable()
|
|
15
|
-
}).describe("Response model for company payment statistics from the last 30 days with comparison to the preceding 30-day period.")
|
|
15
|
+
}).passthrough().describe("Response model for company payment statistics from the last 30 days with comparison to the preceding 30-day period.")
|
|
16
16
|
});
|
|
17
17
|
//#endregion
|
|
18
18
|
export { payhereGetCurrentCompanyStats };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-current-company-stats.mjs","names":[],"sources":["../../src/actions/get-current-company-stats.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PayhereGetCurrentCompanyStatsInput = z.object({}).describe(\"Request model for retrieving current company payment statistics. No parameters are required.\");\nexport const PayhereGetCurrentCompanyStatsOutput = z.object({\n currency: z.string().describe(\"Currency code for all monetary amounts (e.g., 'gbp', 'usd').\").nullable(),\n payments_last_30: z.number().describe(\"Total payment amount received in the last 30 days.\").nullable(),\n payments_all_time: z.number().describe(\"Total payment amount received across all time.\").nullable(),\n payments_comparison: z.number().describe(\"Total payment amount from 30-60 days prior, used for comparison.\").nullable(),\n subscribers_last_30: z.number().int().describe(\"Number of new subscribers acquired in the last 30 days.\").nullable(),\n subscribers_comparison: z.number().int().describe(\"Number of new subscribers from the preceding 30-day period (30-60 days ago).\").nullable(),\n}).describe(\"Response model for company payment statistics from the last 30 days with comparison to the preceding 30-day period.\");\n\nexport const payhereGetCurrentCompanyStats = action(\"PAYHERE_GET_CURRENT_COMPANY_STATS\", {\n slug: \"payhere-get-current-company-stats\",\n name: \"Get Current Company Stats\",\n description: \"Tool to fetch payment statistics for the last 30 days with comparison data from the preceding 30-day period (30-60 days ago). Use when you need to analyze recent payment trends, subscriber growth, or compare current performance against the previous month.\",\n input: PayhereGetCurrentCompanyStatsInput,\n output: PayhereGetCurrentCompanyStatsOutput,\n});\n"],"mappings":";;AAcA,MAAa,gCAAgC,OAAO,qCAAqC;CACvF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAdgD,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,8FAc/D;CACP,QAdiD,EAAE,OAAO;EAC1D,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;EACvG,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;EACrG,mBAAmB,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;EAClG,qBAAqB,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS;EACtH,qBAAqB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;EACnH,wBAAwB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS;CAC7I,CAAC,CAAC,CAAC,SAAS,
|
|
1
|
+
{"version":3,"file":"get-current-company-stats.mjs","names":[],"sources":["../../src/actions/get-current-company-stats.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PayhereGetCurrentCompanyStatsInput = z.object({}).describe(\"Request model for retrieving current company payment statistics. No parameters are required.\");\nexport const PayhereGetCurrentCompanyStatsOutput = z.object({\n currency: z.string().describe(\"Currency code for all monetary amounts (e.g., 'gbp', 'usd').\").nullable(),\n payments_last_30: z.number().describe(\"Total payment amount received in the last 30 days.\").nullable(),\n payments_all_time: z.number().describe(\"Total payment amount received across all time.\").nullable(),\n payments_comparison: z.number().describe(\"Total payment amount from 30-60 days prior, used for comparison.\").nullable(),\n subscribers_last_30: z.number().int().describe(\"Number of new subscribers acquired in the last 30 days.\").nullable(),\n subscribers_comparison: z.number().int().describe(\"Number of new subscribers from the preceding 30-day period (30-60 days ago).\").nullable(),\n}).passthrough().describe(\"Response model for company payment statistics from the last 30 days with comparison to the preceding 30-day period.\");\n\nexport const payhereGetCurrentCompanyStats = action(\"PAYHERE_GET_CURRENT_COMPANY_STATS\", {\n slug: \"payhere-get-current-company-stats\",\n name: \"Get Current Company Stats\",\n description: \"Tool to fetch payment statistics for the last 30 days with comparison data from the preceding 30-day period (30-60 days ago). Use when you need to analyze recent payment trends, subscriber growth, or compare current performance against the previous month.\",\n input: PayhereGetCurrentCompanyStatsInput,\n output: PayhereGetCurrentCompanyStatsOutput,\n});\n"],"mappings":";;AAcA,MAAa,gCAAgC,OAAO,qCAAqC;CACvF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAdgD,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,8FAc/D;CACP,QAdiD,EAAE,OAAO;EAC1D,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;EACvG,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;EACrG,mBAAmB,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;EAClG,qBAAqB,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS;EACtH,qBAAqB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;EACnH,wBAAwB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS;CAC7I,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qHAOhB;AACV,CAAC"}
|
|
@@ -7,7 +7,7 @@ const PayhereGetCurrentCompany_UserSchema = zod.z.object({
|
|
|
7
7
|
role: zod.z.string().describe("User's role in the company.").nullable().optional(),
|
|
8
8
|
email: zod.z.string().describe("User's email address.").nullable().optional(),
|
|
9
9
|
display_name: zod.z.string().describe("User's display name.").nullable().optional()
|
|
10
|
-
}).describe("User account associated with the company.");
|
|
10
|
+
}).passthrough().describe("User account associated with the company.");
|
|
11
11
|
const PayhereGetCurrentCompanyOutput = zod.z.object({
|
|
12
12
|
id: zod.z.number().int().describe("Company identifier.").nullable().optional(),
|
|
13
13
|
name: zod.z.string().describe("Company display name.").nullable().optional(),
|
|
@@ -26,7 +26,7 @@ const PayhereGetCurrentCompanyOutput = zod.z.object({
|
|
|
26
26
|
stripe_connected: zod.z.boolean().describe("Stripe integration status.").nullable().optional(),
|
|
27
27
|
subscription_status: zod.z.string().describe("Current subscription state.").nullable().optional(),
|
|
28
28
|
gocardless_connected: zod.z.boolean().describe("GoCardless integration status.").nullable().optional()
|
|
29
|
-
}).describe("Response model for company information.");
|
|
29
|
+
}).passthrough().describe("Response model for company information.");
|
|
30
30
|
const payhereGetCurrentCompany = require_action.action("PAYHERE_GET_CURRENT_COMPANY", {
|
|
31
31
|
slug: "payhere-get-current-company",
|
|
32
32
|
name: "Get Current Company",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-current-company.cjs","names":["z","action"],"sources":["../../src/actions/get-current-company.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PayhereGetCurrentCompanyInput = z.object({}).describe(\"Request model for retrieving current company information. No parameters are required.\");\nconst PayhereGetCurrentCompany_UserSchema = z.object({\n id: z.number().int().describe(\"User identifier.\").nullable().optional(),\n role: z.string().describe(\"User's role in the company.\").nullable().optional(),\n email: z.string().describe(\"User's email address.\").nullable().optional(),\n display_name: z.string().describe(\"User's display name.\").nullable().optional(),\n}).describe(\"User account associated with the company.\");\nexport const PayhereGetCurrentCompanyOutput = z.object({\n id: z.number().int().describe(\"Company identifier.\").nullable().optional(),\n name: z.string().describe(\"Company display name.\").nullable().optional(),\n plan: z.string().describe(\"Subscription plan type.\").nullable().optional(),\n role: z.string().describe(\"Account role (e.g., 'testing').\").nullable().optional(),\n slug: z.string().describe(\"URL-friendly identifier.\").nullable().optional(),\n ready: z.boolean().describe(\"Operational status.\").nullable().optional(),\n users: z.array(PayhereGetCurrentCompany_UserSchema).describe(\"Associated user accounts.\").nullable().optional(),\n currency: z.string().describe(\"ISO currency code.\").nullable().optional(),\n vat_rate: z.string().describe(\"VAT percentage.\").nullable().optional(),\n legal_name: z.string().describe(\"Registered legal name.\").nullable().optional(),\n button_text: z.string().describe(\"Text color setting.\").nullable().optional(),\n button_color: z.string().describe(\"Hex color value.\").nullable().optional(),\n country_code: z.string().describe(\"ISO country code.\").nullable().optional(),\n vat_registered: z.boolean().describe(\"VAT registration status.\").nullable().optional(),\n stripe_connected: z.boolean().describe(\"Stripe integration status.\").nullable().optional(),\n subscription_status: z.string().describe(\"Current subscription state.\").nullable().optional(),\n gocardless_connected: z.boolean().describe(\"GoCardless integration status.\").nullable().optional(),\n}).describe(\"Response model for company information.\");\n\nexport const payhereGetCurrentCompany = action(\"PAYHERE_GET_CURRENT_COMPANY\", {\n slug: \"payhere-get-current-company\",\n name: \"Get Current Company\",\n description: \"Tool to fetch company information for the currently authenticated user. Use when you need to retrieve comprehensive company details including identity, configuration, integration status, and associated users.\",\n input: PayhereGetCurrentCompanyInput,\n output: PayhereGetCurrentCompanyOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAAgCA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,uFAAuF;AAC1J,MAAM,sCAAsCA,IAAAA,EAAE,OAAO;CACnD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7E,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxE,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAChF,CAAC,CAAC,CAAC,SAAS,2CAA2C;
|
|
1
|
+
{"version":3,"file":"get-current-company.cjs","names":["z","action"],"sources":["../../src/actions/get-current-company.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PayhereGetCurrentCompanyInput = z.object({}).describe(\"Request model for retrieving current company information. No parameters are required.\");\nconst PayhereGetCurrentCompany_UserSchema = z.object({\n id: z.number().int().describe(\"User identifier.\").nullable().optional(),\n role: z.string().describe(\"User's role in the company.\").nullable().optional(),\n email: z.string().describe(\"User's email address.\").nullable().optional(),\n display_name: z.string().describe(\"User's display name.\").nullable().optional(),\n}).passthrough().describe(\"User account associated with the company.\");\nexport const PayhereGetCurrentCompanyOutput = z.object({\n id: z.number().int().describe(\"Company identifier.\").nullable().optional(),\n name: z.string().describe(\"Company display name.\").nullable().optional(),\n plan: z.string().describe(\"Subscription plan type.\").nullable().optional(),\n role: z.string().describe(\"Account role (e.g., 'testing').\").nullable().optional(),\n slug: z.string().describe(\"URL-friendly identifier.\").nullable().optional(),\n ready: z.boolean().describe(\"Operational status.\").nullable().optional(),\n users: z.array(PayhereGetCurrentCompany_UserSchema).describe(\"Associated user accounts.\").nullable().optional(),\n currency: z.string().describe(\"ISO currency code.\").nullable().optional(),\n vat_rate: z.string().describe(\"VAT percentage.\").nullable().optional(),\n legal_name: z.string().describe(\"Registered legal name.\").nullable().optional(),\n button_text: z.string().describe(\"Text color setting.\").nullable().optional(),\n button_color: z.string().describe(\"Hex color value.\").nullable().optional(),\n country_code: z.string().describe(\"ISO country code.\").nullable().optional(),\n vat_registered: z.boolean().describe(\"VAT registration status.\").nullable().optional(),\n stripe_connected: z.boolean().describe(\"Stripe integration status.\").nullable().optional(),\n subscription_status: z.string().describe(\"Current subscription state.\").nullable().optional(),\n gocardless_connected: z.boolean().describe(\"GoCardless integration status.\").nullable().optional(),\n}).passthrough().describe(\"Response model for company information.\");\n\nexport const payhereGetCurrentCompany = action(\"PAYHERE_GET_CURRENT_COMPANY\", {\n slug: \"payhere-get-current-company\",\n name: \"Get Current Company\",\n description: \"Tool to fetch company information for the currently authenticated user. Use when you need to retrieve comprehensive company details including identity, configuration, integration status, and associated users.\",\n input: PayhereGetCurrentCompanyInput,\n output: PayhereGetCurrentCompanyOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAAgCA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,uFAAuF;AAC1J,MAAM,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.ZodString>>;
|
|
15
15
|
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
16
|
display_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
|
-
}, z.core.$
|
|
17
|
+
}, z.core.$loose>>>>;
|
|
18
18
|
currency: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
19
19
|
vat_rate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
20
20
|
legal_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -25,7 +25,7 @@ declare const PayhereGetCurrentCompanyOutput: z.ZodObject<{
|
|
|
25
25
|
stripe_connected: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
26
26
|
subscription_status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
27
27
|
gocardless_connected: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
28
|
-
}, z.core.$
|
|
28
|
+
}, z.core.$loose>;
|
|
29
29
|
declare const payhereGetCurrentCompany: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
30
30
|
//#endregion
|
|
31
31
|
export { payhereGetCurrentCompany };
|
|
@@ -14,7 +14,7 @@ declare const PayhereGetCurrentCompanyOutput: z.ZodObject<{
|
|
|
14
14
|
role: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15
15
|
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
16
|
display_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
|
-
}, z.core.$
|
|
17
|
+
}, z.core.$loose>>>>;
|
|
18
18
|
currency: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
19
19
|
vat_rate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
20
20
|
legal_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -25,7 +25,7 @@ declare const PayhereGetCurrentCompanyOutput: z.ZodObject<{
|
|
|
25
25
|
stripe_connected: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
26
26
|
subscription_status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
27
27
|
gocardless_connected: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
28
|
-
}, z.core.$
|
|
28
|
+
}, z.core.$loose>;
|
|
29
29
|
declare const payhereGetCurrentCompany: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
30
30
|
//#endregion
|
|
31
31
|
export { payhereGetCurrentCompany };
|
|
@@ -7,7 +7,7 @@ const PayhereGetCurrentCompany_UserSchema = z.object({
|
|
|
7
7
|
role: z.string().describe("User's role in the company.").nullable().optional(),
|
|
8
8
|
email: z.string().describe("User's email address.").nullable().optional(),
|
|
9
9
|
display_name: z.string().describe("User's display name.").nullable().optional()
|
|
10
|
-
}).describe("User account associated with the company.");
|
|
10
|
+
}).passthrough().describe("User account associated with the company.");
|
|
11
11
|
const payhereGetCurrentCompany = action("PAYHERE_GET_CURRENT_COMPANY", {
|
|
12
12
|
slug: "payhere-get-current-company",
|
|
13
13
|
name: "Get Current Company",
|
|
@@ -31,7 +31,7 @@ const payhereGetCurrentCompany = action("PAYHERE_GET_CURRENT_COMPANY", {
|
|
|
31
31
|
stripe_connected: z.boolean().describe("Stripe integration status.").nullable().optional(),
|
|
32
32
|
subscription_status: z.string().describe("Current subscription state.").nullable().optional(),
|
|
33
33
|
gocardless_connected: z.boolean().describe("GoCardless integration status.").nullable().optional()
|
|
34
|
-
}).describe("Response model for company information.")
|
|
34
|
+
}).passthrough().describe("Response model for company information.")
|
|
35
35
|
});
|
|
36
36
|
//#endregion
|
|
37
37
|
export { payhereGetCurrentCompany };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-current-company.mjs","names":[],"sources":["../../src/actions/get-current-company.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PayhereGetCurrentCompanyInput = z.object({}).describe(\"Request model for retrieving current company information. No parameters are required.\");\nconst PayhereGetCurrentCompany_UserSchema = z.object({\n id: z.number().int().describe(\"User identifier.\").nullable().optional(),\n role: z.string().describe(\"User's role in the company.\").nullable().optional(),\n email: z.string().describe(\"User's email address.\").nullable().optional(),\n display_name: z.string().describe(\"User's display name.\").nullable().optional(),\n}).describe(\"User account associated with the company.\");\nexport const PayhereGetCurrentCompanyOutput = z.object({\n id: z.number().int().describe(\"Company identifier.\").nullable().optional(),\n name: z.string().describe(\"Company display name.\").nullable().optional(),\n plan: z.string().describe(\"Subscription plan type.\").nullable().optional(),\n role: z.string().describe(\"Account role (e.g., 'testing').\").nullable().optional(),\n slug: z.string().describe(\"URL-friendly identifier.\").nullable().optional(),\n ready: z.boolean().describe(\"Operational status.\").nullable().optional(),\n users: z.array(PayhereGetCurrentCompany_UserSchema).describe(\"Associated user accounts.\").nullable().optional(),\n currency: z.string().describe(\"ISO currency code.\").nullable().optional(),\n vat_rate: z.string().describe(\"VAT percentage.\").nullable().optional(),\n legal_name: z.string().describe(\"Registered legal name.\").nullable().optional(),\n button_text: z.string().describe(\"Text color setting.\").nullable().optional(),\n button_color: z.string().describe(\"Hex color value.\").nullable().optional(),\n country_code: z.string().describe(\"ISO country code.\").nullable().optional(),\n vat_registered: z.boolean().describe(\"VAT registration status.\").nullable().optional(),\n stripe_connected: z.boolean().describe(\"Stripe integration status.\").nullable().optional(),\n subscription_status: z.string().describe(\"Current subscription state.\").nullable().optional(),\n gocardless_connected: z.boolean().describe(\"GoCardless integration status.\").nullable().optional(),\n}).describe(\"Response model for company information.\");\n\nexport const payhereGetCurrentCompany = action(\"PAYHERE_GET_CURRENT_COMPANY\", {\n slug: \"payhere-get-current-company\",\n name: \"Get Current Company\",\n description: \"Tool to fetch company information for the currently authenticated user. Use when you need to retrieve comprehensive company details including identity, configuration, integration status, and associated users.\",\n input: PayhereGetCurrentCompanyInput,\n output: PayhereGetCurrentCompanyOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAAgC,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,uFAAuF;AAC1J,MAAM,sCAAsC,EAAE,OAAO;CACnD,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7E,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxE,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAChF,CAAC,CAAC,CAAC,SAAS,2CAA2C;
|
|
1
|
+
{"version":3,"file":"get-current-company.mjs","names":[],"sources":["../../src/actions/get-current-company.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PayhereGetCurrentCompanyInput = z.object({}).describe(\"Request model for retrieving current company information. No parameters are required.\");\nconst PayhereGetCurrentCompany_UserSchema = z.object({\n id: z.number().int().describe(\"User identifier.\").nullable().optional(),\n role: z.string().describe(\"User's role in the company.\").nullable().optional(),\n email: z.string().describe(\"User's email address.\").nullable().optional(),\n display_name: z.string().describe(\"User's display name.\").nullable().optional(),\n}).passthrough().describe(\"User account associated with the company.\");\nexport const PayhereGetCurrentCompanyOutput = z.object({\n id: z.number().int().describe(\"Company identifier.\").nullable().optional(),\n name: z.string().describe(\"Company display name.\").nullable().optional(),\n plan: z.string().describe(\"Subscription plan type.\").nullable().optional(),\n role: z.string().describe(\"Account role (e.g., 'testing').\").nullable().optional(),\n slug: z.string().describe(\"URL-friendly identifier.\").nullable().optional(),\n ready: z.boolean().describe(\"Operational status.\").nullable().optional(),\n users: z.array(PayhereGetCurrentCompany_UserSchema).describe(\"Associated user accounts.\").nullable().optional(),\n currency: z.string().describe(\"ISO currency code.\").nullable().optional(),\n vat_rate: z.string().describe(\"VAT percentage.\").nullable().optional(),\n legal_name: z.string().describe(\"Registered legal name.\").nullable().optional(),\n button_text: z.string().describe(\"Text color setting.\").nullable().optional(),\n button_color: z.string().describe(\"Hex color value.\").nullable().optional(),\n country_code: z.string().describe(\"ISO country code.\").nullable().optional(),\n vat_registered: z.boolean().describe(\"VAT registration status.\").nullable().optional(),\n stripe_connected: z.boolean().describe(\"Stripe integration status.\").nullable().optional(),\n subscription_status: z.string().describe(\"Current subscription state.\").nullable().optional(),\n gocardless_connected: z.boolean().describe(\"GoCardless integration status.\").nullable().optional(),\n}).passthrough().describe(\"Response model for company information.\");\n\nexport const payhereGetCurrentCompany = action(\"PAYHERE_GET_CURRENT_COMPANY\", {\n slug: \"payhere-get-current-company\",\n name: \"Get Current Company\",\n description: \"Tool to fetch company information for the currently authenticated user. Use when you need to retrieve comprehensive company details including identity, configuration, integration status, and associated users.\",\n input: PayhereGetCurrentCompanyInput,\n output: PayhereGetCurrentCompanyOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAAgC,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,uFAAuF;AAC1J,MAAM,sCAAsC,EAAE,OAAO;CACnD,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7E,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxE,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAA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,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1E,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3E,gBAAgB,EAAE,QAAQ,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACrF,kBAAkB,EAAE,QAAQ,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACzF,qBAAqB,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC5F,sBAAsB,EAAE,QAAQ,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yCAOhB;AACV,CAAC"}
|
|
@@ -9,7 +9,7 @@ const PayhereGetUserOutput = zod.z.object({
|
|
|
9
9
|
created_at: zod.z.string().describe("ISO 8601 timestamp when the user account was created.").nullable(),
|
|
10
10
|
updated_at: zod.z.string().describe("ISO 8601 timestamp of last update to the user account.").nullable(),
|
|
11
11
|
display_name: zod.z.string().describe("The user's display name.").nullable()
|
|
12
|
-
}).describe("Response model for the authenticated user details.");
|
|
12
|
+
}).passthrough().describe("Response model for the authenticated user details.");
|
|
13
13
|
const payhereGetUser = require_action.action("PAYHERE_GET_USER", {
|
|
14
14
|
slug: "payhere-get-user",
|
|
15
15
|
name: "Get User",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-user.cjs","names":["z","action"],"sources":["../../src/actions/get-user.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PayhereGetUserInput = z.object({}).describe(\"Request model for retrieving the currently authenticated user information.\\nNo parameters are required.\");\nexport const PayhereGetUserOutput = z.object({\n id: z.number().int().describe(\"The unique identifier for the user.\").nullable(),\n type: z.string().describe(\"Resource type identifier (typically 'users').\").nullable(),\n email: z.string().describe(\"The user's email address.\").nullable(),\n created_at: z.string().describe(\"ISO 8601 timestamp when the user account was created.\").nullable(),\n updated_at: z.string().describe(\"ISO 8601 timestamp of last update to the user account.\").nullable(),\n display_name: z.string().describe(\"The user's display name.\").nullable(),\n}).describe(\"Response model for the authenticated user details.\");\n\nexport const payhereGetUser = action(\"PAYHERE_GET_USER\", {\n slug: \"payhere-get-user\",\n name: \"Get User\",\n description: \"Tool to fetch information on the currently authenticated user. Use when you need to retrieve details about the logged-in user.\",\n input: PayhereGetUserInput,\n output: PayhereGetUserOutput,\n});\n"],"mappings":";;;AAIA,MAAa,sBAAsBA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,yGAAyG;AAClK,MAAa,uBAAuBA,IAAAA,EAAE,OAAO;CAC3C,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CAC9E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CACpF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CACjE,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;CAClG,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;CACnG,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;AACzE,CAAC,CAAC,CAAC,SAAS,oDAAoD;
|
|
1
|
+
{"version":3,"file":"get-user.cjs","names":["z","action"],"sources":["../../src/actions/get-user.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PayhereGetUserInput = z.object({}).describe(\"Request model for retrieving the currently authenticated user information.\\nNo parameters are required.\");\nexport const PayhereGetUserOutput = z.object({\n id: z.number().int().describe(\"The unique identifier for the user.\").nullable(),\n type: z.string().describe(\"Resource type identifier (typically 'users').\").nullable(),\n email: z.string().describe(\"The user's email address.\").nullable(),\n created_at: z.string().describe(\"ISO 8601 timestamp when the user account was created.\").nullable(),\n updated_at: z.string().describe(\"ISO 8601 timestamp of last update to the user account.\").nullable(),\n display_name: z.string().describe(\"The user's display name.\").nullable(),\n}).passthrough().describe(\"Response model for the authenticated user details.\");\n\nexport const payhereGetUser = action(\"PAYHERE_GET_USER\", {\n slug: \"payhere-get-user\",\n name: \"Get User\",\n description: \"Tool to fetch information on the currently authenticated user. Use when you need to retrieve details about the logged-in user.\",\n input: PayhereGetUserInput,\n output: PayhereGetUserOutput,\n});\n"],"mappings":";;;AAIA,MAAa,sBAAsBA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,yGAAyG;AAClK,MAAa,uBAAuBA,IAAAA,EAAE,OAAO;CAC3C,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CAC9E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CACpF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CACjE,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;CAClG,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;CACnG,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;AACzE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oDAAoD;AAE9E,MAAa,iBAAiBC,eAAAA,OAAO,oBAAoB;CACvD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -9,7 +9,7 @@ declare const PayhereGetUserOutput: z.ZodObject<{
|
|
|
9
9
|
created_at: z.ZodNullable<z.ZodString>;
|
|
10
10
|
updated_at: z.ZodNullable<z.ZodString>;
|
|
11
11
|
display_name: z.ZodNullable<z.ZodString>;
|
|
12
|
-
}, z.core.$
|
|
12
|
+
}, z.core.$loose>;
|
|
13
13
|
declare const payhereGetUser: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
14
14
|
//#endregion
|
|
15
15
|
export { payhereGetUser };
|