@keystrokehq/payhere 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (138) hide show
  1. package/README.md +17 -0
  2. package/dist/action.cjs +21 -0
  3. package/dist/action.cjs.map +1 -0
  4. package/dist/action.mjs +21 -0
  5. package/dist/action.mjs.map +1 -0
  6. package/dist/actions/create-hook.cjs +34 -0
  7. package/dist/actions/create-hook.cjs.map +1 -0
  8. package/dist/actions/create-hook.d.cts +9 -0
  9. package/dist/actions/create-hook.d.cts.map +1 -0
  10. package/dist/actions/create-hook.d.mts +9 -0
  11. package/dist/actions/create-hook.d.mts.map +1 -0
  12. package/dist/actions/create-hook.mjs +33 -0
  13. package/dist/actions/create-hook.mjs.map +1 -0
  14. package/dist/actions/create-plan.cjs +73 -0
  15. package/dist/actions/create-plan.cjs.map +1 -0
  16. package/dist/actions/create-plan.d.cts +9 -0
  17. package/dist/actions/create-plan.d.cts.map +1 -0
  18. package/dist/actions/create-plan.d.mts +9 -0
  19. package/dist/actions/create-plan.d.mts.map +1 -0
  20. package/dist/actions/create-plan.mjs +72 -0
  21. package/dist/actions/create-plan.mjs.map +1 -0
  22. package/dist/actions/delete-hook.cjs +19 -0
  23. package/dist/actions/delete-hook.cjs.map +1 -0
  24. package/dist/actions/delete-hook.d.cts +9 -0
  25. package/dist/actions/delete-hook.d.cts.map +1 -0
  26. package/dist/actions/delete-hook.d.mts +9 -0
  27. package/dist/actions/delete-hook.d.mts.map +1 -0
  28. package/dist/actions/delete-hook.mjs +16 -0
  29. package/dist/actions/delete-hook.mjs.map +1 -0
  30. package/dist/actions/get-current-company-stats.cjs +23 -0
  31. package/dist/actions/get-current-company-stats.cjs.map +1 -0
  32. package/dist/actions/get-current-company-stats.d.cts +9 -0
  33. package/dist/actions/get-current-company-stats.d.cts.map +1 -0
  34. package/dist/actions/get-current-company-stats.d.mts +9 -0
  35. package/dist/actions/get-current-company-stats.d.mts.map +1 -0
  36. package/dist/actions/get-current-company-stats.mjs +20 -0
  37. package/dist/actions/get-current-company-stats.mjs.map +1 -0
  38. package/dist/actions/get-current-company.cjs +40 -0
  39. package/dist/actions/get-current-company.cjs.map +1 -0
  40. package/dist/actions/get-current-company.d.cts +9 -0
  41. package/dist/actions/get-current-company.d.cts.map +1 -0
  42. package/dist/actions/get-current-company.d.mts +9 -0
  43. package/dist/actions/get-current-company.d.mts.map +1 -0
  44. package/dist/actions/get-current-company.mjs +39 -0
  45. package/dist/actions/get-current-company.mjs.map +1 -0
  46. package/dist/actions/get-user.cjs +23 -0
  47. package/dist/actions/get-user.cjs.map +1 -0
  48. package/dist/actions/get-user.d.cts +9 -0
  49. package/dist/actions/get-user.d.cts.map +1 -0
  50. package/dist/actions/get-user.d.mts +9 -0
  51. package/dist/actions/get-user.d.mts.map +1 -0
  52. package/dist/actions/get-user.mjs +20 -0
  53. package/dist/actions/get-user.mjs.map +1 -0
  54. package/dist/actions/index.cjs +27 -0
  55. package/dist/actions/index.d.cts +14 -0
  56. package/dist/actions/index.d.mts +14 -0
  57. package/dist/actions/index.mjs +14 -0
  58. package/dist/actions/list-customers.cjs +40 -0
  59. package/dist/actions/list-customers.cjs.map +1 -0
  60. package/dist/actions/list-customers.d.cts +9 -0
  61. package/dist/actions/list-customers.d.cts.map +1 -0
  62. package/dist/actions/list-customers.d.mts +9 -0
  63. package/dist/actions/list-customers.d.mts.map +1 -0
  64. package/dist/actions/list-customers.mjs +39 -0
  65. package/dist/actions/list-customers.mjs.map +1 -0
  66. package/dist/actions/list-hooks.cjs +26 -0
  67. package/dist/actions/list-hooks.cjs.map +1 -0
  68. package/dist/actions/list-hooks.d.cts +9 -0
  69. package/dist/actions/list-hooks.d.cts.map +1 -0
  70. package/dist/actions/list-hooks.d.mts +9 -0
  71. package/dist/actions/list-hooks.d.mts.map +1 -0
  72. package/dist/actions/list-hooks.mjs +25 -0
  73. package/dist/actions/list-hooks.mjs.map +1 -0
  74. package/dist/actions/list-payments.cjs +48 -0
  75. package/dist/actions/list-payments.cjs.map +1 -0
  76. package/dist/actions/list-payments.d.cts +9 -0
  77. package/dist/actions/list-payments.d.cts.map +1 -0
  78. package/dist/actions/list-payments.d.mts +9 -0
  79. package/dist/actions/list-payments.d.mts.map +1 -0
  80. package/dist/actions/list-payments.mjs +47 -0
  81. package/dist/actions/list-payments.mjs.map +1 -0
  82. package/dist/actions/list-plans.cjs +60 -0
  83. package/dist/actions/list-plans.cjs.map +1 -0
  84. package/dist/actions/list-plans.d.cts +9 -0
  85. package/dist/actions/list-plans.d.cts.map +1 -0
  86. package/dist/actions/list-plans.d.mts +9 -0
  87. package/dist/actions/list-plans.d.mts.map +1 -0
  88. package/dist/actions/list-plans.mjs +59 -0
  89. package/dist/actions/list-plans.mjs.map +1 -0
  90. package/dist/actions/list-subscriptions.cjs +58 -0
  91. package/dist/actions/list-subscriptions.cjs.map +1 -0
  92. package/dist/actions/list-subscriptions.d.cts +9 -0
  93. package/dist/actions/list-subscriptions.d.cts.map +1 -0
  94. package/dist/actions/list-subscriptions.d.mts +9 -0
  95. package/dist/actions/list-subscriptions.d.mts.map +1 -0
  96. package/dist/actions/list-subscriptions.mjs +57 -0
  97. package/dist/actions/list-subscriptions.mjs.map +1 -0
  98. package/dist/actions/update-current-company.cjs +53 -0
  99. package/dist/actions/update-current-company.cjs.map +1 -0
  100. package/dist/actions/update-current-company.d.cts +9 -0
  101. package/dist/actions/update-current-company.d.cts.map +1 -0
  102. package/dist/actions/update-current-company.d.mts +9 -0
  103. package/dist/actions/update-current-company.d.mts.map +1 -0
  104. package/dist/actions/update-current-company.mjs +52 -0
  105. package/dist/actions/update-current-company.mjs.map +1 -0
  106. package/dist/actions/update-plan.cjs +51 -0
  107. package/dist/actions/update-plan.cjs.map +1 -0
  108. package/dist/actions/update-plan.d.cts +9 -0
  109. package/dist/actions/update-plan.d.cts.map +1 -0
  110. package/dist/actions/update-plan.d.mts +9 -0
  111. package/dist/actions/update-plan.d.mts.map +1 -0
  112. package/dist/actions/update-plan.mjs +48 -0
  113. package/dist/actions/update-plan.mjs.map +1 -0
  114. package/dist/app.cjs +9 -0
  115. package/dist/app.cjs.map +1 -0
  116. package/dist/app.d.cts +5 -0
  117. package/dist/app.d.cts.map +1 -0
  118. package/dist/app.d.mts +5 -0
  119. package/dist/app.d.mts.map +1 -0
  120. package/dist/app.mjs +10 -0
  121. package/dist/app.mjs.map +1 -0
  122. package/dist/catalog.cjs +15 -0
  123. package/dist/catalog.cjs.map +1 -0
  124. package/dist/catalog.d.cts +14 -0
  125. package/dist/catalog.d.cts.map +1 -0
  126. package/dist/catalog.d.mts +14 -0
  127. package/dist/catalog.d.mts.map +1 -0
  128. package/dist/catalog.mjs +15 -0
  129. package/dist/catalog.mjs.map +1 -0
  130. package/dist/execute.cjs +18 -0
  131. package/dist/execute.cjs.map +1 -0
  132. package/dist/execute.mjs +18 -0
  133. package/dist/execute.mjs.map +1 -0
  134. package/dist/index.cjs +32 -0
  135. package/dist/index.d.cts +16 -0
  136. package/dist/index.d.mts +16 -0
  137. package/dist/index.mjs +17 -0
  138. package/package.json +49 -0
@@ -0,0 +1,40 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/get-current-company.ts
4
+ const PayhereGetCurrentCompanyInput = zod.z.object({}).describe("Request model for retrieving current company information. No parameters are required.");
5
+ const PayhereGetCurrentCompany_UserSchema = zod.z.object({
6
+ id: zod.z.number().int().describe("User identifier.").nullable().optional(),
7
+ role: zod.z.string().describe("User's role in the company.").nullable().optional(),
8
+ email: zod.z.string().describe("User's email address.").nullable().optional(),
9
+ display_name: zod.z.string().describe("User's display name.").nullable().optional()
10
+ }).describe("User account associated with the company.");
11
+ const PayhereGetCurrentCompanyOutput = zod.z.object({
12
+ id: zod.z.number().int().describe("Company identifier.").nullable().optional(),
13
+ name: zod.z.string().describe("Company display name.").nullable().optional(),
14
+ plan: zod.z.string().describe("Subscription plan type.").nullable().optional(),
15
+ role: zod.z.string().describe("Account role (e.g., 'testing').").nullable().optional(),
16
+ slug: zod.z.string().describe("URL-friendly identifier.").nullable().optional(),
17
+ ready: zod.z.boolean().describe("Operational status.").nullable().optional(),
18
+ users: zod.z.array(PayhereGetCurrentCompany_UserSchema).describe("Associated user accounts.").nullable().optional(),
19
+ currency: zod.z.string().describe("ISO currency code.").nullable().optional(),
20
+ vat_rate: zod.z.string().describe("VAT percentage.").nullable().optional(),
21
+ legal_name: zod.z.string().describe("Registered legal name.").nullable().optional(),
22
+ button_text: zod.z.string().describe("Text color setting.").nullable().optional(),
23
+ button_color: zod.z.string().describe("Hex color value.").nullable().optional(),
24
+ country_code: zod.z.string().describe("ISO country code.").nullable().optional(),
25
+ vat_registered: zod.z.boolean().describe("VAT registration status.").nullable().optional(),
26
+ stripe_connected: zod.z.boolean().describe("Stripe integration status.").nullable().optional(),
27
+ subscription_status: zod.z.string().describe("Current subscription state.").nullable().optional(),
28
+ gocardless_connected: zod.z.boolean().describe("GoCardless integration status.").nullable().optional()
29
+ }).describe("Response model for company information.");
30
+ const payhereGetCurrentCompany = require_action.action("PAYHERE_GET_CURRENT_COMPANY", {
31
+ slug: "payhere-get-current-company",
32
+ name: "Get Current Company",
33
+ 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.",
34
+ input: PayhereGetCurrentCompanyInput,
35
+ output: PayhereGetCurrentCompanyOutput
36
+ });
37
+ //#endregion
38
+ exports.payhereGetCurrentCompany = payhereGetCurrentCompany;
39
+
40
+ //# sourceMappingURL=get-current-company.cjs.map
@@ -0,0 +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.ZodTypeAny = z.object({}).describe(\"Request model for retrieving current company information. No parameters are required.\");\nconst PayhereGetCurrentCompany_UserSchema: z.ZodTypeAny = 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.ZodTypeAny = 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,gCAA8CA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,uFA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ayhereGetCurrentCompanyOutput: z.ZodTypeAny;
6
+ declare const payhereGetCurrentCompany: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { payhereGetCurrentCompany };
9
+ //# sourceMappingURL=get-current-company.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-current-company.d.cts","names":[],"sources":["../../src/actions/get-current-company.ts"],"mappings":";;;cAIa,6BAAA,EAA+B,CAAA,CAAE,UAA2H;AAAA,cAO5J,8BAAA,EAAgC,CAAA,CAAE,UAkBO;AAAA,cAEzC,wBAAA,gCAAwB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/get-current-company.d.ts
4
+ declare const PayhereGetCurrentCompanyInput: z.ZodTypeAny;
5
+ declare const PayhereGetCurrentCompanyOutput: z.ZodTypeAny;
6
+ declare const payhereGetCurrentCompany: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { payhereGetCurrentCompany };
9
+ //# sourceMappingURL=get-current-company.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-current-company.d.mts","names":[],"sources":["../../src/actions/get-current-company.ts"],"mappings":";;;cAIa,6BAAA,EAA+B,CAAA,CAAE,UAA2H;AAAA,cAO5J,8BAAA,EAAgC,CAAA,CAAE,UAkBO;AAAA,cAEzC,wBAAA,gCAAwB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,39 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ //#region src/actions/get-current-company.ts
4
+ const PayhereGetCurrentCompanyInput = z.object({}).describe("Request model for retrieving current company information. No parameters are required.");
5
+ const PayhereGetCurrentCompany_UserSchema = z.object({
6
+ id: z.number().int().describe("User identifier.").nullable().optional(),
7
+ role: z.string().describe("User's role in the company.").nullable().optional(),
8
+ email: z.string().describe("User's email address.").nullable().optional(),
9
+ display_name: z.string().describe("User's display name.").nullable().optional()
10
+ }).describe("User account associated with the company.");
11
+ const payhereGetCurrentCompany = action("PAYHERE_GET_CURRENT_COMPANY", {
12
+ slug: "payhere-get-current-company",
13
+ name: "Get Current Company",
14
+ 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.",
15
+ input: PayhereGetCurrentCompanyInput,
16
+ output: z.object({
17
+ id: z.number().int().describe("Company identifier.").nullable().optional(),
18
+ name: z.string().describe("Company display name.").nullable().optional(),
19
+ plan: z.string().describe("Subscription plan type.").nullable().optional(),
20
+ role: z.string().describe("Account role (e.g., 'testing').").nullable().optional(),
21
+ slug: z.string().describe("URL-friendly identifier.").nullable().optional(),
22
+ ready: z.boolean().describe("Operational status.").nullable().optional(),
23
+ users: z.array(PayhereGetCurrentCompany_UserSchema).describe("Associated user accounts.").nullable().optional(),
24
+ currency: z.string().describe("ISO currency code.").nullable().optional(),
25
+ vat_rate: z.string().describe("VAT percentage.").nullable().optional(),
26
+ legal_name: z.string().describe("Registered legal name.").nullable().optional(),
27
+ button_text: z.string().describe("Text color setting.").nullable().optional(),
28
+ button_color: z.string().describe("Hex color value.").nullable().optional(),
29
+ country_code: z.string().describe("ISO country code.").nullable().optional(),
30
+ vat_registered: z.boolean().describe("VAT registration status.").nullable().optional(),
31
+ stripe_connected: z.boolean().describe("Stripe integration status.").nullable().optional(),
32
+ subscription_status: z.string().describe("Current subscription state.").nullable().optional(),
33
+ gocardless_connected: z.boolean().describe("GoCardless integration status.").nullable().optional()
34
+ }).describe("Response model for company information.")
35
+ });
36
+ //#endregion
37
+ export { payhereGetCurrentCompany };
38
+
39
+ //# sourceMappingURL=get-current-company.mjs.map
@@ -0,0 +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.ZodTypeAny = z.object({}).describe(\"Request model for retrieving current company information. No parameters are required.\");\nconst PayhereGetCurrentCompany_UserSchema: z.ZodTypeAny = 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.ZodTypeAny = 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,gCAA8C,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,uFAAuF;AACxK,MAAM,sCAAoD,EAAE,OAAO;CACjE,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;AAqBvD,MAAa,2BAA2B,OAAO,+BAA+B;CAC5E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAzB0D,EAAE,OAAO;EACnE,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACzE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACzE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjF,MAAM,EAAE,OAAO,CAAC,CAAC,SA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 //#region src/actions/get-user.ts
4
+ const PayhereGetUserInput = zod.z.object({}).describe("Request model for retrieving the currently authenticated user information.\nNo parameters are required.");
5
+ const PayhereGetUserOutput = zod.z.object({
6
+ id: zod.z.number().int().describe("The unique identifier for the user."),
7
+ type: zod.z.string().describe("Resource type identifier (typically 'users')."),
8
+ email: zod.z.string().describe("The user's email address."),
9
+ created_at: zod.z.string().describe("ISO 8601 timestamp when the user account was created."),
10
+ updated_at: zod.z.string().describe("ISO 8601 timestamp of last update to the user account."),
11
+ display_name: zod.z.string().describe("The user's display name.")
12
+ }).describe("Response model for the authenticated user details.");
13
+ const payhereGetUser = require_action.action("PAYHERE_GET_USER", {
14
+ slug: "payhere-get-user",
15
+ name: "Get User",
16
+ description: "Tool to fetch information on the currently authenticated user. Use when you need to retrieve details about the logged-in user.",
17
+ input: PayhereGetUserInput,
18
+ output: PayhereGetUserOutput
19
+ });
20
+ //#endregion
21
+ exports.payhereGetUser = payhereGetUser;
22
+
23
+ //# sourceMappingURL=get-user.cjs.map
@@ -0,0 +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.ZodTypeAny = z.object({}).describe(\"Request model for retrieving the currently authenticated user information.\\nNo parameters are required.\");\nexport const PayhereGetUserOutput: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"The unique identifier for the user.\"),\n type: z.string().describe(\"Resource type identifier (typically 'users').\"),\n email: z.string().describe(\"The user's email address.\"),\n created_at: z.string().describe(\"ISO 8601 timestamp when the user account was created.\"),\n updated_at: z.string().describe(\"ISO 8601 timestamp of last update to the user account.\"),\n display_name: z.string().describe(\"The user's display name.\"),\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,sBAAoCA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,yGAAyG;AAChL,MAAa,uBAAqCA,IAAAA,EAAE,OAAO;CACzD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC;CACnE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C;CACzE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B;CACtD,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD;CACvF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD;CACxF,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B;AAC9D,CAAC,CAAC,CAAC,SAAS,oDAAoD;AAEhE,MAAa,iBAAiBC,eAAAA,OAAO,oBAAoB;CACvD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/get-user.d.ts
4
+ declare const PayhereGetUserInput: z.ZodTypeAny;
5
+ declare const PayhereGetUserOutput: z.ZodTypeAny;
6
+ declare const payhereGetUser: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { payhereGetUser };
9
+ //# sourceMappingURL=get-user.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-user.d.cts","names":[],"sources":["../../src/actions/get-user.ts"],"mappings":";;;cAIa,mBAAA,EAAqB,CAAA,CAAE,UAA6I;AAAA,cACpK,oBAAA,EAAsB,CAAA,CAAE,UAO4B;AAAA,cAEpD,cAAA,gCAAc,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/get-user.d.ts
4
+ declare const PayhereGetUserInput: z.ZodTypeAny;
5
+ declare const PayhereGetUserOutput: z.ZodTypeAny;
6
+ declare const payhereGetUser: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { payhereGetUser };
9
+ //# sourceMappingURL=get-user.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-user.d.mts","names":[],"sources":["../../src/actions/get-user.ts"],"mappings":";;;cAIa,mBAAA,EAAqB,CAAA,CAAE,UAA6I;AAAA,cACpK,oBAAA,EAAsB,CAAA,CAAE,UAO4B;AAAA,cAEpD,cAAA,gCAAc,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,20 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ const payhereGetUser = action("PAYHERE_GET_USER", {
4
+ slug: "payhere-get-user",
5
+ name: "Get User",
6
+ description: "Tool to fetch information on the currently authenticated user. Use when you need to retrieve details about the logged-in user.",
7
+ input: z.object({}).describe("Request model for retrieving the currently authenticated user information.\nNo parameters are required."),
8
+ output: z.object({
9
+ id: z.number().int().describe("The unique identifier for the user."),
10
+ type: z.string().describe("Resource type identifier (typically 'users')."),
11
+ email: z.string().describe("The user's email address."),
12
+ created_at: z.string().describe("ISO 8601 timestamp when the user account was created."),
13
+ updated_at: z.string().describe("ISO 8601 timestamp of last update to the user account."),
14
+ display_name: z.string().describe("The user's display name.")
15
+ }).describe("Response model for the authenticated user details.")
16
+ });
17
+ //#endregion
18
+ export { payhereGetUser };
19
+
20
+ //# sourceMappingURL=get-user.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-user.mjs","names":[],"sources":["../../src/actions/get-user.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PayhereGetUserInput: z.ZodTypeAny = z.object({}).describe(\"Request model for retrieving the currently authenticated user information.\\nNo parameters are required.\");\nexport const PayhereGetUserOutput: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"The unique identifier for the user.\"),\n type: z.string().describe(\"Resource type identifier (typically 'users').\"),\n email: z.string().describe(\"The user's email address.\"),\n created_at: z.string().describe(\"ISO 8601 timestamp when the user account was created.\"),\n updated_at: z.string().describe(\"ISO 8601 timestamp of last update to the user account.\"),\n display_name: z.string().describe(\"The user's display name.\"),\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":";;AAcA,MAAa,iBAAiB,OAAO,oBAAoB;CACvD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAd+C,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,yGAc9D;CACP,QAdgD,EAAE,OAAO;EACzD,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC;EACnE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C;EACzE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B;EACtD,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD;EACvF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD;EACxF,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B;CAC9D,CAAC,CAAC,CAAC,SAAS,oDAOF;AACV,CAAC"}
@@ -0,0 +1,27 @@
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
+ const require_create_hook = require("./create-hook.cjs");
3
+ const require_create_plan = require("./create-plan.cjs");
4
+ const require_delete_hook = require("./delete-hook.cjs");
5
+ const require_get_current_company = require("./get-current-company.cjs");
6
+ const require_get_current_company_stats = require("./get-current-company-stats.cjs");
7
+ const require_get_user = require("./get-user.cjs");
8
+ const require_list_customers = require("./list-customers.cjs");
9
+ const require_list_hooks = require("./list-hooks.cjs");
10
+ const require_list_payments = require("./list-payments.cjs");
11
+ const require_list_plans = require("./list-plans.cjs");
12
+ const require_list_subscriptions = require("./list-subscriptions.cjs");
13
+ const require_update_current_company = require("./update-current-company.cjs");
14
+ const require_update_plan = require("./update-plan.cjs");
15
+ exports.payhereCreateHook = require_create_hook.payhereCreateHook;
16
+ exports.payhereCreatePlan = require_create_plan.payhereCreatePlan;
17
+ exports.payhereDeleteHook = require_delete_hook.payhereDeleteHook;
18
+ exports.payhereGetCurrentCompany = require_get_current_company.payhereGetCurrentCompany;
19
+ exports.payhereGetCurrentCompanyStats = require_get_current_company_stats.payhereGetCurrentCompanyStats;
20
+ exports.payhereGetUser = require_get_user.payhereGetUser;
21
+ exports.payhereListCustomers = require_list_customers.payhereListCustomers;
22
+ exports.payhereListHooks = require_list_hooks.payhereListHooks;
23
+ exports.payhereListPayments = require_list_payments.payhereListPayments;
24
+ exports.payhereListPlans = require_list_plans.payhereListPlans;
25
+ exports.payhereListSubscriptions = require_list_subscriptions.payhereListSubscriptions;
26
+ exports.payhereUpdateCurrentCompany = require_update_current_company.payhereUpdateCurrentCompany;
27
+ exports.payhereUpdatePlan = require_update_plan.payhereUpdatePlan;
@@ -0,0 +1,14 @@
1
+ import { payhereCreateHook } from "./create-hook.cjs";
2
+ import { payhereCreatePlan } from "./create-plan.cjs";
3
+ import { payhereDeleteHook } from "./delete-hook.cjs";
4
+ import { payhereGetCurrentCompany } from "./get-current-company.cjs";
5
+ import { payhereGetCurrentCompanyStats } from "./get-current-company-stats.cjs";
6
+ import { payhereGetUser } from "./get-user.cjs";
7
+ import { payhereListCustomers } from "./list-customers.cjs";
8
+ import { payhereListHooks } from "./list-hooks.cjs";
9
+ import { payhereListPayments } from "./list-payments.cjs";
10
+ import { payhereListPlans } from "./list-plans.cjs";
11
+ import { payhereListSubscriptions } from "./list-subscriptions.cjs";
12
+ import { payhereUpdateCurrentCompany } from "./update-current-company.cjs";
13
+ import { payhereUpdatePlan } from "./update-plan.cjs";
14
+ export { payhereCreateHook, payhereCreatePlan, payhereDeleteHook, payhereGetCurrentCompany, payhereGetCurrentCompanyStats, payhereGetUser, payhereListCustomers, payhereListHooks, payhereListPayments, payhereListPlans, payhereListSubscriptions, payhereUpdateCurrentCompany, payhereUpdatePlan };
@@ -0,0 +1,14 @@
1
+ import { payhereCreateHook } from "./create-hook.mjs";
2
+ import { payhereCreatePlan } from "./create-plan.mjs";
3
+ import { payhereDeleteHook } from "./delete-hook.mjs";
4
+ import { payhereGetCurrentCompany } from "./get-current-company.mjs";
5
+ import { payhereGetCurrentCompanyStats } from "./get-current-company-stats.mjs";
6
+ import { payhereGetUser } from "./get-user.mjs";
7
+ import { payhereListCustomers } from "./list-customers.mjs";
8
+ import { payhereListHooks } from "./list-hooks.mjs";
9
+ import { payhereListPayments } from "./list-payments.mjs";
10
+ import { payhereListPlans } from "./list-plans.mjs";
11
+ import { payhereListSubscriptions } from "./list-subscriptions.mjs";
12
+ import { payhereUpdateCurrentCompany } from "./update-current-company.mjs";
13
+ import { payhereUpdatePlan } from "./update-plan.mjs";
14
+ export { payhereCreateHook, payhereCreatePlan, payhereDeleteHook, payhereGetCurrentCompany, payhereGetCurrentCompanyStats, payhereGetUser, payhereListCustomers, payhereListHooks, payhereListPayments, payhereListPlans, payhereListSubscriptions, payhereUpdateCurrentCompany, payhereUpdatePlan };
@@ -0,0 +1,14 @@
1
+ import { payhereCreateHook } from "./create-hook.mjs";
2
+ import { payhereCreatePlan } from "./create-plan.mjs";
3
+ import { payhereDeleteHook } from "./delete-hook.mjs";
4
+ import { payhereGetCurrentCompany } from "./get-current-company.mjs";
5
+ import { payhereGetCurrentCompanyStats } from "./get-current-company-stats.mjs";
6
+ import { payhereGetUser } from "./get-user.mjs";
7
+ import { payhereListCustomers } from "./list-customers.mjs";
8
+ import { payhereListHooks } from "./list-hooks.mjs";
9
+ import { payhereListPayments } from "./list-payments.mjs";
10
+ import { payhereListPlans } from "./list-plans.mjs";
11
+ import { payhereListSubscriptions } from "./list-subscriptions.mjs";
12
+ import { payhereUpdateCurrentCompany } from "./update-current-company.mjs";
13
+ import { payhereUpdatePlan } from "./update-plan.mjs";
14
+ export { payhereCreateHook, payhereCreatePlan, payhereDeleteHook, payhereGetCurrentCompany, payhereGetCurrentCompanyStats, payhereGetUser, payhereListCustomers, payhereListHooks, payhereListPayments, payhereListPlans, payhereListSubscriptions, payhereUpdateCurrentCompany, payhereUpdatePlan };
@@ -0,0 +1,40 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/list-customers.ts
4
+ const PayhereListCustomersInput = zod.z.object({
5
+ page: zod.z.number().int().describe("Page number for pagination. Use to navigate through paginated results.").optional(),
6
+ per_page: zod.z.number().int().describe("Records per page. Default is 20, maximum is 100.").optional()
7
+ }).describe("Request model for listing customers with pagination options.");
8
+ const PayhereListCustomers_CustomerLocationSchema = zod.z.object({}).describe("Location information for a customer.");
9
+ const PayhereListCustomers_CustomerSchema = zod.z.object({
10
+ id: zod.z.number().int().describe("Unique customer identifier."),
11
+ name: zod.z.string().describe("Customer name."),
12
+ type: zod.z.string().describe("Resource type, always 'customers'."),
13
+ email: zod.z.string().describe("Customer email address."),
14
+ location: PayhereListCustomers_CustomerLocationSchema.nullable().optional(),
15
+ created_at: zod.z.string().describe("ISO 8601 timestamp when customer was created."),
16
+ ip_address: zod.z.string().describe("IP address of customer if available.").nullable().optional(),
17
+ updated_at: zod.z.string().describe("ISO 8601 timestamp when customer was last updated.")
18
+ }).describe("Individual customer record.");
19
+ const PayhereListCustomers_ListCustomersMetaSchema = zod.z.object({
20
+ next_page: zod.z.number().int().describe("Next page number if available.").nullable().optional(),
21
+ prev_page: zod.z.number().int().describe("Previous page number if available.").nullable().optional(),
22
+ total_count: zod.z.number().int().describe("Total number of customers."),
23
+ total_pages: zod.z.number().int().describe("Total number of pages."),
24
+ current_page: zod.z.number().int().describe("Current page number.")
25
+ }).describe("Pagination metadata for the list customers response.");
26
+ const PayhereListCustomersOutput = zod.z.object({
27
+ data: zod.z.array(PayhereListCustomers_CustomerSchema).describe("List of customers ordered chronologically, most recent first."),
28
+ meta: PayhereListCustomers_ListCustomersMetaSchema.nullable()
29
+ }).describe("Response model for listing customers.");
30
+ const payhereListCustomers = require_action.action("PAYHERE_LIST_CUSTOMERS", {
31
+ slug: "payhere-list-customers",
32
+ name: "List Customers",
33
+ description: "Tool to list all customers from Payhere, ordered chronologically with most recent first. Use when you need to retrieve customer records, browse customers, or access customer information. Supports pagination via page and per_page parameters.",
34
+ input: PayhereListCustomersInput,
35
+ output: PayhereListCustomersOutput
36
+ });
37
+ //#endregion
38
+ exports.payhereListCustomers = payhereListCustomers;
39
+
40
+ //# sourceMappingURL=list-customers.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-customers.cjs","names":["z","action"],"sources":["../../src/actions/list-customers.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PayhereListCustomersInput: z.ZodTypeAny = z.object({\n page: z.number().int().describe(\"Page number for pagination. Use to navigate through paginated results.\").optional(),\n per_page: z.number().int().describe(\"Records per page. Default is 20, maximum is 100.\").optional(),\n}).describe(\"Request model for listing customers with pagination options.\");\nconst PayhereListCustomers_CustomerLocationSchema: z.ZodTypeAny = z.object({}).describe(\"Location information for a customer.\");\nconst PayhereListCustomers_CustomerSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique customer identifier.\"),\n name: z.string().describe(\"Customer name.\"),\n type: z.string().describe(\"Resource type, always 'customers'.\"),\n email: z.string().describe(\"Customer email address.\"),\n location: PayhereListCustomers_CustomerLocationSchema.nullable().optional(),\n created_at: z.string().describe(\"ISO 8601 timestamp when customer was created.\"),\n ip_address: z.string().describe(\"IP address of customer if available.\").nullable().optional(),\n updated_at: z.string().describe(\"ISO 8601 timestamp when customer was last updated.\"),\n}).describe(\"Individual customer record.\");\nconst PayhereListCustomers_ListCustomersMetaSchema: z.ZodTypeAny = z.object({\n next_page: z.number().int().describe(\"Next page number if available.\").nullable().optional(),\n prev_page: z.number().int().describe(\"Previous page number if available.\").nullable().optional(),\n total_count: z.number().int().describe(\"Total number of customers.\"),\n total_pages: z.number().int().describe(\"Total number of pages.\"),\n current_page: z.number().int().describe(\"Current page number.\"),\n}).describe(\"Pagination metadata for the list customers response.\");\nexport const PayhereListCustomersOutput: z.ZodTypeAny = z.object({\n data: z.array(PayhereListCustomers_CustomerSchema).describe(\"List of customers ordered chronologically, most recent first.\"),\n meta: PayhereListCustomers_ListCustomersMetaSchema.nullable(),\n}).describe(\"Response model for listing customers.\");\n\nexport const payhereListCustomers = action(\"PAYHERE_LIST_CUSTOMERS\", {\n slug: \"payhere-list-customers\",\n name: \"List Customers\",\n description: \"Tool to list all customers from Payhere, ordered chronologically with most recent first. Use when you need to retrieve customer records, browse customers, or access customer information. Supports pagination via page and per_page parameters.\",\n input: PayhereListCustomersInput,\n output: PayhereListCustomersOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA0CA,IAAAA,EAAE,OAAO;CAC9D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,SAAS;CACnH,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;AACnG,CAAC,CAAC,CAAC,SAAS,8DAA8D;AAC1E,MAAM,8CAA4DA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,sCAAsC;AAC9H,MAAM,sCAAoDA,IAAA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AM,6CAA6C,SAAS;AAC9D,CAAC,CAAC,CAAC,SAAS,uCAAuC;AAEnD,MAAa,uBAAuBC,eAAAA,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/list-customers.d.ts
4
+ declare const PayhereListCustomersInput: z.ZodTypeAny;
5
+ declare const PayhereListCustomersOutput: z.ZodTypeAny;
6
+ declare const payhereListCustomers: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { payhereListCustomers };
9
+ //# sourceMappingURL=list-customers.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-customers.d.cts","names":[],"sources":["../../src/actions/list-customers.ts"],"mappings":";;;cAIa,yBAAA,EAA2B,CAAA,CAAE,UAGiC;AAAA,cAmB9D,0BAAA,EAA4B,CAAA,CAAE,UAGS;AAAA,cAEvC,oBAAA,gCAAoB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/list-customers.d.ts
4
+ declare const PayhereListCustomersInput: z.ZodTypeAny;
5
+ declare const PayhereListCustomersOutput: z.ZodTypeAny;
6
+ declare const payhereListCustomers: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { payhereListCustomers };
9
+ //# sourceMappingURL=list-customers.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-customers.d.mts","names":[],"sources":["../../src/actions/list-customers.ts"],"mappings":";;;cAIa,yBAAA,EAA2B,CAAA,CAAE,UAGiC;AAAA,cAmB9D,0BAAA,EAA4B,CAAA,CAAE,UAGS;AAAA,cAEvC,oBAAA,gCAAoB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,39 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ //#region src/actions/list-customers.ts
4
+ const PayhereListCustomersInput = z.object({
5
+ page: z.number().int().describe("Page number for pagination. Use to navigate through paginated results.").optional(),
6
+ per_page: z.number().int().describe("Records per page. Default is 20, maximum is 100.").optional()
7
+ }).describe("Request model for listing customers with pagination options.");
8
+ const PayhereListCustomers_CustomerLocationSchema = z.object({}).describe("Location information for a customer.");
9
+ const PayhereListCustomers_CustomerSchema = z.object({
10
+ id: z.number().int().describe("Unique customer identifier."),
11
+ name: z.string().describe("Customer name."),
12
+ type: z.string().describe("Resource type, always 'customers'."),
13
+ email: z.string().describe("Customer email address."),
14
+ location: PayhereListCustomers_CustomerLocationSchema.nullable().optional(),
15
+ created_at: z.string().describe("ISO 8601 timestamp when customer was created."),
16
+ ip_address: z.string().describe("IP address of customer if available.").nullable().optional(),
17
+ updated_at: z.string().describe("ISO 8601 timestamp when customer was last updated.")
18
+ }).describe("Individual customer record.");
19
+ const PayhereListCustomers_ListCustomersMetaSchema = z.object({
20
+ next_page: z.number().int().describe("Next page number if available.").nullable().optional(),
21
+ prev_page: z.number().int().describe("Previous page number if available.").nullable().optional(),
22
+ total_count: z.number().int().describe("Total number of customers."),
23
+ total_pages: z.number().int().describe("Total number of pages."),
24
+ current_page: z.number().int().describe("Current page number.")
25
+ }).describe("Pagination metadata for the list customers response.");
26
+ const payhereListCustomers = action("PAYHERE_LIST_CUSTOMERS", {
27
+ slug: "payhere-list-customers",
28
+ name: "List Customers",
29
+ description: "Tool to list all customers from Payhere, ordered chronologically with most recent first. Use when you need to retrieve customer records, browse customers, or access customer information. Supports pagination via page and per_page parameters.",
30
+ input: PayhereListCustomersInput,
31
+ output: z.object({
32
+ data: z.array(PayhereListCustomers_CustomerSchema).describe("List of customers ordered chronologically, most recent first."),
33
+ meta: PayhereListCustomers_ListCustomersMetaSchema.nullable()
34
+ }).describe("Response model for listing customers.")
35
+ });
36
+ //#endregion
37
+ export { payhereListCustomers };
38
+
39
+ //# sourceMappingURL=list-customers.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-customers.mjs","names":[],"sources":["../../src/actions/list-customers.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PayhereListCustomersInput: z.ZodTypeAny = z.object({\n page: z.number().int().describe(\"Page number for pagination. Use to navigate through paginated results.\").optional(),\n per_page: z.number().int().describe(\"Records per page. Default is 20, maximum is 100.\").optional(),\n}).describe(\"Request model for listing customers with pagination options.\");\nconst PayhereListCustomers_CustomerLocationSchema: z.ZodTypeAny = z.object({}).describe(\"Location information for a customer.\");\nconst PayhereListCustomers_CustomerSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique customer identifier.\"),\n name: z.string().describe(\"Customer name.\"),\n type: z.string().describe(\"Resource type, always 'customers'.\"),\n email: z.string().describe(\"Customer email address.\"),\n location: PayhereListCustomers_CustomerLocationSchema.nullable().optional(),\n created_at: z.string().describe(\"ISO 8601 timestamp when customer was created.\"),\n ip_address: z.string().describe(\"IP address of customer if available.\").nullable().optional(),\n updated_at: z.string().describe(\"ISO 8601 timestamp when customer was last updated.\"),\n}).describe(\"Individual customer record.\");\nconst PayhereListCustomers_ListCustomersMetaSchema: z.ZodTypeAny = z.object({\n next_page: z.number().int().describe(\"Next page number if available.\").nullable().optional(),\n prev_page: z.number().int().describe(\"Previous page number if available.\").nullable().optional(),\n total_count: z.number().int().describe(\"Total number of customers.\"),\n total_pages: z.number().int().describe(\"Total number of pages.\"),\n current_page: z.number().int().describe(\"Current page number.\"),\n}).describe(\"Pagination metadata for the list customers response.\");\nexport const PayhereListCustomersOutput: z.ZodTypeAny = z.object({\n data: z.array(PayhereListCustomers_CustomerSchema).describe(\"List of customers ordered chronologically, most recent first.\"),\n meta: PayhereListCustomers_ListCustomersMetaSchema.nullable(),\n}).describe(\"Response model for listing customers.\");\n\nexport const payhereListCustomers = action(\"PAYHERE_LIST_CUSTOMERS\", {\n slug: \"payhere-list-customers\",\n name: \"List Customers\",\n description: \"Tool to list all customers from Payhere, ordered chronologically with most recent first. Use when you need to retrieve customer records, browse customers, or access customer information. Supports pagination via page and per_page parameters.\",\n input: PayhereListCustomersInput,\n output: PayhereListCustomersOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA0C,EAAE,OAAO;CAC9D,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,SAAS;CACnH,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;AACnG,CAAC,CAAC,CAAC,SAAS,8DAA8D;AAC1E,MAAM,8CAA4D,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,sCAAsC;AAC9H,MAAM,sCAAoD,EAAE,OAAO;CACjE,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6BAA6B;CAC3D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB;CAC1C,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC;CAC9D,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB;CACpD,UAAU,4CAA4C,SAAS,CAAC,CAAC,SAAS;CAC1E,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C;CAC/E,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5F,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD;AACtF,CAAC,CAAC,CAAC,SAAS,6BAA6B;AACzC,MAAM,+CAA6D,EAAE,OAAO;CAC1E,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3F,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/F,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4BAA4B;CACnE,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wBAAwB;CAC/D,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sBAAsB;AAChE,CAAC,CAAC,CAAC,SAAS,sDAAsD;AAMlE,MAAa,uBAAuB,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAVsD,EAAE,OAAO;EAC/D,MAAM,EAAE,MAAM,mCAAmC,CAAC,CAAC,SAAS,+DAA+D;EAC3H,MAAM,6CAA6C,SAAS;CAC9D,CAAC,CAAC,CAAC,SAAS,uCAOF;AACV,CAAC"}
@@ -0,0 +1,26 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/list-hooks.ts
4
+ const PayhereListHooksInput = zod.z.object({}).describe("Request model for listing all active REST hooks subscriptions.");
5
+ const PayhereListHooks_HookSchema = zod.z.object({
6
+ id: zod.z.number().int().describe("Unique identifier for the hook subscription."),
7
+ type: zod.z.string().describe("Hook type, value: 'rest_hooks'."),
8
+ post_url: zod.z.string().describe("Target URL where webhook events will be sent."),
9
+ resource: zod.z.string().describe("Event type being monitored. Possible values: 'payment_received', 'subscription_cancelled', 'subscription_created'."),
10
+ company_id: zod.z.number().int().describe("ID of the company that owns this hook."),
11
+ created_at: zod.z.string().describe("ISO 8601 timestamp of when the hook was created."),
12
+ updated_at: zod.z.string().describe("ISO 8601 timestamp of when the hook was last updated."),
13
+ integration: zod.z.string().describe("Integration identifier.")
14
+ }).describe("Represents a REST hook subscription.");
15
+ const PayhereListHooksOutput = zod.z.object({ data: zod.z.array(PayhereListHooks_HookSchema).describe("List of active REST hook subscriptions.") }).describe("Response model for listing all active REST hooks subscriptions.");
16
+ const payhereListHooks = require_action.action("PAYHERE_LIST_HOOKS", {
17
+ slug: "payhere-list-hooks",
18
+ name: "List REST Hooks",
19
+ description: "Tool to list all active REST hooks subscriptions for the authenticated company. Use when you need to view all currently registered webhook listeners for your PayHere account.",
20
+ input: PayhereListHooksInput,
21
+ output: PayhereListHooksOutput
22
+ });
23
+ //#endregion
24
+ exports.payhereListHooks = payhereListHooks;
25
+
26
+ //# sourceMappingURL=list-hooks.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-hooks.cjs","names":["z","action"],"sources":["../../src/actions/list-hooks.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PayhereListHooksInput: z.ZodTypeAny = z.object({}).describe(\"Request model for listing all active REST hooks subscriptions.\");\nconst PayhereListHooks_HookSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique identifier for the hook subscription.\"),\n type: z.string().describe(\"Hook type, value: 'rest_hooks'.\"),\n post_url: z.string().describe(\"Target URL where webhook events will be sent.\"),\n resource: z.string().describe(\"Event type being monitored. Possible values: 'payment_received', 'subscription_cancelled', 'subscription_created'.\"),\n company_id: z.number().int().describe(\"ID of the company that owns this hook.\"),\n created_at: z.string().describe(\"ISO 8601 timestamp of when the hook was created.\"),\n updated_at: z.string().describe(\"ISO 8601 timestamp of when the hook was last updated.\"),\n integration: z.string().describe(\"Integration identifier.\"),\n}).describe(\"Represents a REST hook subscription.\");\nexport const PayhereListHooksOutput: z.ZodTypeAny = z.object({\n data: z.array(PayhereListHooks_HookSchema).describe(\"List of active REST hook subscriptions.\"),\n}).describe(\"Response model for listing all active REST hooks subscriptions.\");\n\nexport const payhereListHooks = action(\"PAYHERE_LIST_HOOKS\", {\n slug: \"payhere-list-hooks\",\n name: \"List REST Hooks\",\n description: \"Tool to list all active REST hooks subscriptions for the authenticated company. Use when you need to view all currently registered webhook listeners for your PayHere account.\",\n input: PayhereListHooksInput,\n output: PayhereListHooksOutput,\n});\n"],"mappings":";;;AAIA,MAAa,wBAAsCA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,gEAAgE;AACzI,MAAM,8BAA4CA,IAAAA,EAAE,OAAO;CACzD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8CAA8C;CAC5E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC;CAC3D,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C;CAC7E,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oHAAoH;CAClJ,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wCAAwC;CAC9E,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD;CAClF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD;CACvF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB;AAC5D,CAAC,CAAC,CAAC,SAAS,sCAAsC;AAClD,MAAa,yBAAuCA,IAAAA,EAAE,OAAO,EAC3D,MAAMA,IAAAA,EAAE,MAAM,2BAA2B,CAAC,CAAC,SAAS,yCAAyC,EAC/F,CAAC,CAAC,CAAC,SAAS,iEAAiE;AAE7E,MAAa,mBAAmBC,eAAAA,OAAO,sBAAsB;CAC3D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/list-hooks.d.ts
4
+ declare const PayhereListHooksInput: z.ZodTypeAny;
5
+ declare const PayhereListHooksOutput: z.ZodTypeAny;
6
+ declare const payhereListHooks: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { payhereListHooks };
9
+ //# sourceMappingURL=list-hooks.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-hooks.d.cts","names":[],"sources":["../../src/actions/list-hooks.ts"],"mappings":";;;cAIa,qBAAA,EAAuB,CAAA,CAAE,UAAoG;AAAA,cAW7H,sBAAA,EAAwB,CAAA,CAAE,UAEuC;AAAA,cAEjE,gBAAA,gCAAgB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/list-hooks.d.ts
4
+ declare const PayhereListHooksInput: z.ZodTypeAny;
5
+ declare const PayhereListHooksOutput: z.ZodTypeAny;
6
+ declare const payhereListHooks: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { payhereListHooks };
9
+ //# sourceMappingURL=list-hooks.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-hooks.d.mts","names":[],"sources":["../../src/actions/list-hooks.ts"],"mappings":";;;cAIa,qBAAA,EAAuB,CAAA,CAAE,UAAoG;AAAA,cAW7H,sBAAA,EAAwB,CAAA,CAAE,UAEuC;AAAA,cAEjE,gBAAA,gCAAgB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,25 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ //#region src/actions/list-hooks.ts
4
+ const PayhereListHooksInput = z.object({}).describe("Request model for listing all active REST hooks subscriptions.");
5
+ const PayhereListHooks_HookSchema = z.object({
6
+ id: z.number().int().describe("Unique identifier for the hook subscription."),
7
+ type: z.string().describe("Hook type, value: 'rest_hooks'."),
8
+ post_url: z.string().describe("Target URL where webhook events will be sent."),
9
+ resource: z.string().describe("Event type being monitored. Possible values: 'payment_received', 'subscription_cancelled', 'subscription_created'."),
10
+ company_id: z.number().int().describe("ID of the company that owns this hook."),
11
+ created_at: z.string().describe("ISO 8601 timestamp of when the hook was created."),
12
+ updated_at: z.string().describe("ISO 8601 timestamp of when the hook was last updated."),
13
+ integration: z.string().describe("Integration identifier.")
14
+ }).describe("Represents a REST hook subscription.");
15
+ const payhereListHooks = action("PAYHERE_LIST_HOOKS", {
16
+ slug: "payhere-list-hooks",
17
+ name: "List REST Hooks",
18
+ description: "Tool to list all active REST hooks subscriptions for the authenticated company. Use when you need to view all currently registered webhook listeners for your PayHere account.",
19
+ input: PayhereListHooksInput,
20
+ output: z.object({ data: z.array(PayhereListHooks_HookSchema).describe("List of active REST hook subscriptions.") }).describe("Response model for listing all active REST hooks subscriptions.")
21
+ });
22
+ //#endregion
23
+ export { payhereListHooks };
24
+
25
+ //# sourceMappingURL=list-hooks.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-hooks.mjs","names":[],"sources":["../../src/actions/list-hooks.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PayhereListHooksInput: z.ZodTypeAny = z.object({}).describe(\"Request model for listing all active REST hooks subscriptions.\");\nconst PayhereListHooks_HookSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique identifier for the hook subscription.\"),\n type: z.string().describe(\"Hook type, value: 'rest_hooks'.\"),\n post_url: z.string().describe(\"Target URL where webhook events will be sent.\"),\n resource: z.string().describe(\"Event type being monitored. Possible values: 'payment_received', 'subscription_cancelled', 'subscription_created'.\"),\n company_id: z.number().int().describe(\"ID of the company that owns this hook.\"),\n created_at: z.string().describe(\"ISO 8601 timestamp of when the hook was created.\"),\n updated_at: z.string().describe(\"ISO 8601 timestamp of when the hook was last updated.\"),\n integration: z.string().describe(\"Integration identifier.\"),\n}).describe(\"Represents a REST hook subscription.\");\nexport const PayhereListHooksOutput: z.ZodTypeAny = z.object({\n data: z.array(PayhereListHooks_HookSchema).describe(\"List of active REST hook subscriptions.\"),\n}).describe(\"Response model for listing all active REST hooks subscriptions.\");\n\nexport const payhereListHooks = action(\"PAYHERE_LIST_HOOKS\", {\n slug: \"payhere-list-hooks\",\n name: \"List REST Hooks\",\n description: \"Tool to list all active REST hooks subscriptions for the authenticated company. Use when you need to view all currently registered webhook listeners for your PayHere account.\",\n input: PayhereListHooksInput,\n output: PayhereListHooksOutput,\n});\n"],"mappings":";;;AAIA,MAAa,wBAAsC,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,gEAAgE;AACzI,MAAM,8BAA4C,EAAE,OAAO;CACzD,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8CAA8C;CAC5E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC;CAC3D,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C;CAC7E,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,oHAAoH;CAClJ,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wCAAwC;CAC9E,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD;CAClF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD;CACvF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB;AAC5D,CAAC,CAAC,CAAC,SAAS,sCAAsC;AAKlD,MAAa,mBAAmB,OAAO,sBAAsB;CAC3D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATkD,EAAE,OAAO,EAC3D,MAAM,EAAE,MAAM,2BAA2B,CAAC,CAAC,SAAS,yCAAyC,EAC/F,CAAC,CAAC,CAAC,SAAS,iEAOF;AACV,CAAC"}
@@ -0,0 +1,48 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/list-payments.ts
4
+ const PayhereListPaymentsInput = zod.z.object({
5
+ page: zod.z.number().int().describe("Page number for pagination.").optional(),
6
+ per_page: zod.z.number().int().describe("Number of records per page (default: 20, maximum: 100).").optional()
7
+ }).describe("Request model for listing payments with pagination options.");
8
+ const PayhereListPayments_PaymentItemSchema = zod.z.object({
9
+ id: zod.z.number().int().describe("Unique payment identifier."),
10
+ type: zod.z.string().describe("Resource type identifier."),
11
+ amount: zod.z.number().describe("Payment amount as a number."),
12
+ hashid: zod.z.string().describe("Hashed payment ID."),
13
+ status: zod.z.string().describe("Payment status (e.g., 'success', 'part_refund', 'failed')."),
14
+ success: zod.z.boolean().describe("Whether payment succeeded."),
15
+ currency: zod.z.string().describe("Currency code (e.g., 'gbp', 'usd')."),
16
+ reference: zod.z.string().describe("Payment reference number."),
17
+ card_brand: zod.z.string().describe("Card type (e.g., 'visa', 'mastercard')."),
18
+ card_last4: zod.z.string().describe("Last 4 digits of card number."),
19
+ company_id: zod.z.number().int().describe("Associated company identifier."),
20
+ created_at: zod.z.string().describe("Creation timestamp."),
21
+ updated_at: zod.z.string().describe("Last update timestamp."),
22
+ amount_paid: zod.z.number().describe("Net amount paid after refunds."),
23
+ secure_token: zod.z.string().describe("Security token for the payment."),
24
+ refund_amount: zod.z.number().describe("Amount refunded."),
25
+ formatted_amount: zod.z.string().describe("Amount with currency symbol formatted as string.")
26
+ }).describe("Individual payment object with all relevant details.");
27
+ const PayhereListPayments_PaginationMetaSchema = zod.z.object({
28
+ next_page: zod.z.number().int().describe("Next page number if available.").nullable().optional(),
29
+ prev_page: zod.z.number().int().describe("Previous page number if available.").nullable().optional(),
30
+ total_count: zod.z.number().int().describe("Total number of records."),
31
+ total_pages: zod.z.number().int().describe("Total number of pages."),
32
+ current_page: zod.z.number().int().describe("Current page number.")
33
+ }).describe("Pagination metadata for the response.");
34
+ const PayhereListPaymentsOutput = zod.z.object({
35
+ data: zod.z.array(PayhereListPayments_PaymentItemSchema).describe("Array of payment objects ordered chronologically, most recent first."),
36
+ meta: PayhereListPayments_PaginationMetaSchema.nullable()
37
+ }).describe("Response model for listing payments with pagination metadata.");
38
+ const payhereListPayments = require_action.action("PAYHERE_LIST_PAYMENTS", {
39
+ slug: "payhere-list-payments",
40
+ name: "List Payments",
41
+ description: "Tool to list all payments ordered chronologically, most recent first. Use when you need to retrieve payment history or check payment statuses. Supports pagination with page and per_page parameters.",
42
+ input: PayhereListPaymentsInput,
43
+ output: PayhereListPaymentsOutput
44
+ });
45
+ //#endregion
46
+ exports.payhereListPayments = payhereListPayments;
47
+
48
+ //# sourceMappingURL=list-payments.cjs.map