@keystrokehq/payhere 0.1.0 → 0.1.2

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 (105) hide show
  1. package/dist/action.cjs.map +1 -1
  2. package/dist/action.mjs.map +1 -1
  3. package/dist/actions/create-hook.cjs +8 -8
  4. package/dist/actions/create-hook.cjs.map +1 -1
  5. package/dist/actions/create-hook.d.cts +26 -3
  6. package/dist/actions/create-hook.d.cts.map +1 -1
  7. package/dist/actions/create-hook.d.mts +26 -3
  8. package/dist/actions/create-hook.d.mts.map +1 -1
  9. package/dist/actions/create-hook.mjs +8 -8
  10. package/dist/actions/create-hook.mjs.map +1 -1
  11. package/dist/actions/create-plan.cjs.map +1 -1
  12. package/dist/actions/create-plan.d.cts +80 -3
  13. package/dist/actions/create-plan.d.cts.map +1 -1
  14. package/dist/actions/create-plan.d.mts +80 -3
  15. package/dist/actions/create-plan.d.mts.map +1 -1
  16. package/dist/actions/create-plan.mjs.map +1 -1
  17. package/dist/actions/delete-hook.cjs +2 -2
  18. package/dist/actions/delete-hook.cjs.map +1 -1
  19. package/dist/actions/delete-hook.d.cts +10 -3
  20. package/dist/actions/delete-hook.d.cts.map +1 -1
  21. package/dist/actions/delete-hook.d.mts +10 -3
  22. package/dist/actions/delete-hook.d.mts.map +1 -1
  23. package/dist/actions/delete-hook.mjs +2 -2
  24. package/dist/actions/delete-hook.mjs.map +1 -1
  25. package/dist/actions/get-current-company-stats.cjs +6 -6
  26. package/dist/actions/get-current-company-stats.cjs.map +1 -1
  27. package/dist/actions/get-current-company-stats.d.cts +10 -3
  28. package/dist/actions/get-current-company-stats.d.cts.map +1 -1
  29. package/dist/actions/get-current-company-stats.d.mts +10 -3
  30. package/dist/actions/get-current-company-stats.d.mts.map +1 -1
  31. package/dist/actions/get-current-company-stats.mjs +6 -6
  32. package/dist/actions/get-current-company-stats.mjs.map +1 -1
  33. package/dist/actions/get-current-company.cjs.map +1 -1
  34. package/dist/actions/get-current-company.d.cts +26 -3
  35. package/dist/actions/get-current-company.d.cts.map +1 -1
  36. package/dist/actions/get-current-company.d.mts +26 -3
  37. package/dist/actions/get-current-company.d.mts.map +1 -1
  38. package/dist/actions/get-current-company.mjs.map +1 -1
  39. package/dist/actions/get-user.cjs +6 -6
  40. package/dist/actions/get-user.cjs.map +1 -1
  41. package/dist/actions/get-user.d.cts +10 -3
  42. package/dist/actions/get-user.d.cts.map +1 -1
  43. package/dist/actions/get-user.d.mts +10 -3
  44. package/dist/actions/get-user.d.mts.map +1 -1
  45. package/dist/actions/get-user.mjs +6 -6
  46. package/dist/actions/get-user.mjs.map +1 -1
  47. package/dist/actions/list-customers.cjs +9 -9
  48. package/dist/actions/list-customers.cjs.map +1 -1
  49. package/dist/actions/list-customers.d.cts +27 -3
  50. package/dist/actions/list-customers.d.cts.map +1 -1
  51. package/dist/actions/list-customers.d.mts +27 -3
  52. package/dist/actions/list-customers.d.mts.map +1 -1
  53. package/dist/actions/list-customers.mjs +9 -9
  54. package/dist/actions/list-customers.mjs.map +1 -1
  55. package/dist/actions/list-hooks.cjs +8 -8
  56. package/dist/actions/list-hooks.cjs.map +1 -1
  57. package/dist/actions/list-hooks.d.cts +14 -3
  58. package/dist/actions/list-hooks.d.cts.map +1 -1
  59. package/dist/actions/list-hooks.d.mts +14 -3
  60. package/dist/actions/list-hooks.d.mts.map +1 -1
  61. package/dist/actions/list-hooks.mjs +8 -8
  62. package/dist/actions/list-hooks.mjs.map +1 -1
  63. package/dist/actions/list-payments.cjs +20 -20
  64. package/dist/actions/list-payments.cjs.map +1 -1
  65. package/dist/actions/list-payments.d.cts +36 -3
  66. package/dist/actions/list-payments.d.cts.map +1 -1
  67. package/dist/actions/list-payments.d.mts +36 -3
  68. package/dist/actions/list-payments.d.mts.map +1 -1
  69. package/dist/actions/list-payments.mjs +20 -20
  70. package/dist/actions/list-payments.mjs.map +1 -1
  71. package/dist/actions/list-plans.cjs +18 -18
  72. package/dist/actions/list-plans.cjs.map +1 -1
  73. package/dist/actions/list-plans.d.cts +48 -3
  74. package/dist/actions/list-plans.d.cts.map +1 -1
  75. package/dist/actions/list-plans.d.mts +48 -3
  76. package/dist/actions/list-plans.d.mts.map +1 -1
  77. package/dist/actions/list-plans.mjs +18 -18
  78. package/dist/actions/list-plans.mjs.map +1 -1
  79. package/dist/actions/list-subscriptions.cjs +14 -14
  80. package/dist/actions/list-subscriptions.cjs.map +1 -1
  81. package/dist/actions/list-subscriptions.d.cts +44 -3
  82. package/dist/actions/list-subscriptions.d.cts.map +1 -1
  83. package/dist/actions/list-subscriptions.d.mts +44 -3
  84. package/dist/actions/list-subscriptions.d.mts.map +1 -1
  85. package/dist/actions/list-subscriptions.mjs +14 -14
  86. package/dist/actions/list-subscriptions.mjs.map +1 -1
  87. package/dist/actions/update-current-company.cjs.map +1 -1
  88. package/dist/actions/update-current-company.d.cts +52 -3
  89. package/dist/actions/update-current-company.d.cts.map +1 -1
  90. package/dist/actions/update-current-company.d.mts +52 -3
  91. package/dist/actions/update-current-company.d.mts.map +1 -1
  92. package/dist/actions/update-current-company.mjs.map +1 -1
  93. package/dist/actions/update-plan.cjs.map +1 -1
  94. package/dist/actions/update-plan.d.cts +54 -3
  95. package/dist/actions/update-plan.d.cts.map +1 -1
  96. package/dist/actions/update-plan.d.mts +54 -3
  97. package/dist/actions/update-plan.d.mts.map +1 -1
  98. package/dist/actions/update-plan.mjs.map +1 -1
  99. package/dist/catalog.cjs +14 -1
  100. package/dist/catalog.cjs.map +1 -1
  101. package/dist/catalog.d.cts +13 -0
  102. package/dist/catalog.d.mts +13 -0
  103. package/dist/catalog.mjs +14 -1
  104. package/dist/catalog.mjs.map +1 -1
  105. package/package.json +2 -2
@@ -1 +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,M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I,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"}
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.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.object({}).describe(\"Location information for a customer.\");\nconst PayhereListCustomers_CustomerSchema = z.object({\n id: z.number().int().describe(\"Unique customer identifier.\").nullable(),\n name: z.string().describe(\"Customer name.\").nullable(),\n type: z.string().describe(\"Resource type, always 'customers'.\").nullable(),\n email: z.string().describe(\"Customer email address.\").nullable(),\n location: PayhereListCustomers_CustomerLocationSchema.nullable().optional(),\n created_at: z.string().describe(\"ISO 8601 timestamp when customer was created.\").nullable(),\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.\").nullable(),\n}).describe(\"Individual customer record.\");\nconst PayhereListCustomers_ListCustomersMetaSchema = 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.\").nullable(),\n total_pages: z.number().int().describe(\"Total number of pages.\").nullable(),\n current_page: z.number().int().describe(\"Current page number.\").nullable(),\n}).describe(\"Pagination metadata for the list customers response.\");\nexport const PayhereListCustomersOutput = 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,4BAA4B,EAAE,OAAO;CAChD,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,8CAA8C,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,sCAAsC;AAChH,MAAM,sCAAsC,EAAE,OAAO;CACnD,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CACtE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB,CAAC,CAAC,SAAS;CACrD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CACzE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;CAC/D,UAAU,4CAA4C,SAAS,CAAC,CAAC,SAAS;CAC1E,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CAC1F,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5F,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;AACjG,CAAC,CAAC,CAAC,SAAS,6BAA6B;AACzC,MAAM,+CAA+C,EAAE,OAAO;CAC5D,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,CAAC,CAAC,SAAS;CAC9E,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;CAC1E,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;AAC3E,CAAC,CAAC,CAAC,SAAS,sDAAsD;AAMlE,MAAa,uBAAuB,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAVwC,EAAE,OAAO;EACjD,MAAM,EAAE,MAAM,mCAAmC,CAAC,CAAC,SAAS,+DAA+D;EAC3H,MAAM,6CAA6C,SAAS;CAC9D,CAAC,CAAC,CAAC,SAAS,uCAOF;AACV,CAAC"}
@@ -3,14 +3,14 @@ let zod = require("zod");
3
3
  //#region src/actions/list-hooks.ts
4
4
  const PayhereListHooksInput = zod.z.object({}).describe("Request model for listing all active REST hooks subscriptions.");
5
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.")
6
+ id: zod.z.number().int().describe("Unique identifier for the hook subscription.").nullable(),
7
+ type: zod.z.string().describe("Hook type, value: 'rest_hooks'.").nullable(),
8
+ post_url: zod.z.string().describe("Target URL where webhook events will be sent.").nullable(),
9
+ resource: zod.z.string().describe("Event type being monitored. Possible values: 'payment_received', 'subscription_cancelled', 'subscription_created'.").nullable(),
10
+ company_id: zod.z.number().int().describe("ID of the company that owns this hook.").nullable(),
11
+ created_at: zod.z.string().describe("ISO 8601 timestamp of when the hook was created.").nullable(),
12
+ updated_at: zod.z.string().describe("ISO 8601 timestamp of when the hook was last updated.").nullable(),
13
+ integration: zod.z.string().describe("Integration identifier.").nullable()
14
14
  }).describe("Represents a REST hook subscription.");
15
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
16
  const payhereListHooks = require_action.action("PAYHERE_LIST_HOOKS", {
@@ -1 +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"}
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.object({}).describe(\"Request model for listing all active REST hooks subscriptions.\");\nconst PayhereListHooks_HookSchema = z.object({\n id: z.number().int().describe(\"Unique identifier for the hook subscription.\").nullable(),\n type: z.string().describe(\"Hook type, value: 'rest_hooks'.\").nullable(),\n post_url: z.string().describe(\"Target URL where webhook events will be sent.\").nullable(),\n resource: z.string().describe(\"Event type being monitored. Possible values: 'payment_received', 'subscription_cancelled', 'subscription_created'.\").nullable(),\n company_id: z.number().int().describe(\"ID of the company that owns this hook.\").nullable(),\n created_at: z.string().describe(\"ISO 8601 timestamp of when the hook was created.\").nullable(),\n updated_at: z.string().describe(\"ISO 8601 timestamp of when the hook was last updated.\").nullable(),\n integration: z.string().describe(\"Integration identifier.\").nullable(),\n}).describe(\"Represents a REST hook subscription.\");\nexport const PayhereListHooksOutput = 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,wBAAwBA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,gEAAgE;AAC3H,MAAM,8BAA8BA,IAAAA,EAAE,OAAO;CAC3C,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CACvF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CACtE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CACxF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oHAAoH,CAAC,CAAC,SAAS;CAC7J,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CACzF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;CAC7F,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;CAClG,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;AACvE,CAAC,CAAC,CAAC,SAAS,sCAAsC;AAClD,MAAa,yBAAyBA,IAAAA,EAAE,OAAO,EAC7C,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"}
@@ -1,9 +1,20 @@
1
1
  import { z } from "zod";
2
2
 
3
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]>;
4
+ declare const PayhereListHooksInput: z.ZodObject<{}, z.core.$strip>;
5
+ declare const PayhereListHooksOutput: z.ZodObject<{
6
+ data: z.ZodArray<z.ZodObject<{
7
+ id: z.ZodNullable<z.ZodNumber>;
8
+ type: z.ZodNullable<z.ZodString>;
9
+ post_url: z.ZodNullable<z.ZodString>;
10
+ resource: z.ZodNullable<z.ZodString>;
11
+ company_id: z.ZodNullable<z.ZodNumber>;
12
+ created_at: z.ZodNullable<z.ZodString>;
13
+ updated_at: z.ZodNullable<z.ZodString>;
14
+ integration: z.ZodNullable<z.ZodString>;
15
+ }, z.core.$strip>>;
16
+ }, z.core.$strip>;
17
+ declare const payhereListHooks: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
18
  //#endregion
8
19
  export { payhereListHooks };
9
20
  //# sourceMappingURL=list-hooks.d.cts.map
@@ -1 +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"}
1
+ {"version":3,"file":"list-hooks.d.cts","names":[],"sources":["../../src/actions/list-hooks.ts"],"mappings":";;;cAIa,qBAAA,EAAqB,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAWrB,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;;;;;;;;cAItB,gBAAA,gCAAgB,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -1,9 +1,20 @@
1
1
  import { z } from "zod";
2
2
 
3
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]>;
4
+ declare const PayhereListHooksInput: z.ZodObject<{}, z.core.$strip>;
5
+ declare const PayhereListHooksOutput: z.ZodObject<{
6
+ data: z.ZodArray<z.ZodObject<{
7
+ id: z.ZodNullable<z.ZodNumber>;
8
+ type: z.ZodNullable<z.ZodString>;
9
+ post_url: z.ZodNullable<z.ZodString>;
10
+ resource: z.ZodNullable<z.ZodString>;
11
+ company_id: z.ZodNullable<z.ZodNumber>;
12
+ created_at: z.ZodNullable<z.ZodString>;
13
+ updated_at: z.ZodNullable<z.ZodString>;
14
+ integration: z.ZodNullable<z.ZodString>;
15
+ }, z.core.$strip>>;
16
+ }, z.core.$strip>;
17
+ declare const payhereListHooks: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
18
  //#endregion
8
19
  export { payhereListHooks };
9
20
  //# sourceMappingURL=list-hooks.d.mts.map
@@ -1 +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"}
1
+ {"version":3,"file":"list-hooks.d.mts","names":[],"sources":["../../src/actions/list-hooks.ts"],"mappings":";;;cAIa,qBAAA,EAAqB,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAWrB,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;;;;;;;;cAItB,gBAAA,gCAAgB,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -3,14 +3,14 @@ import { z } from "zod";
3
3
  //#region src/actions/list-hooks.ts
4
4
  const PayhereListHooksInput = z.object({}).describe("Request model for listing all active REST hooks subscriptions.");
5
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.")
6
+ id: z.number().int().describe("Unique identifier for the hook subscription.").nullable(),
7
+ type: z.string().describe("Hook type, value: 'rest_hooks'.").nullable(),
8
+ post_url: z.string().describe("Target URL where webhook events will be sent.").nullable(),
9
+ resource: z.string().describe("Event type being monitored. Possible values: 'payment_received', 'subscription_cancelled', 'subscription_created'.").nullable(),
10
+ company_id: z.number().int().describe("ID of the company that owns this hook.").nullable(),
11
+ created_at: z.string().describe("ISO 8601 timestamp of when the hook was created.").nullable(),
12
+ updated_at: z.string().describe("ISO 8601 timestamp of when the hook was last updated.").nullable(),
13
+ integration: z.string().describe("Integration identifier.").nullable()
14
14
  }).describe("Represents a REST hook subscription.");
15
15
  const payhereListHooks = action("PAYHERE_LIST_HOOKS", {
16
16
  slug: "payhere-list-hooks",
@@ -1 +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"}
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.object({}).describe(\"Request model for listing all active REST hooks subscriptions.\");\nconst PayhereListHooks_HookSchema = z.object({\n id: z.number().int().describe(\"Unique identifier for the hook subscription.\").nullable(),\n type: z.string().describe(\"Hook type, value: 'rest_hooks'.\").nullable(),\n post_url: z.string().describe(\"Target URL where webhook events will be sent.\").nullable(),\n resource: z.string().describe(\"Event type being monitored. Possible values: 'payment_received', 'subscription_cancelled', 'subscription_created'.\").nullable(),\n company_id: z.number().int().describe(\"ID of the company that owns this hook.\").nullable(),\n created_at: z.string().describe(\"ISO 8601 timestamp of when the hook was created.\").nullable(),\n updated_at: z.string().describe(\"ISO 8601 timestamp of when the hook was last updated.\").nullable(),\n integration: z.string().describe(\"Integration identifier.\").nullable(),\n}).describe(\"Represents a REST hook subscription.\");\nexport const PayhereListHooksOutput = 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,wBAAwB,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,gEAAgE;AAC3H,MAAM,8BAA8B,EAAE,OAAO;CAC3C,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CACvF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CACtE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CACxF,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,oHAAoH,CAAC,CAAC,SAAS;CAC7J,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CACzF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;CAC7F,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;CAClG,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;AACvE,CAAC,CAAC,CAAC,SAAS,sCAAsC;AAKlD,MAAa,mBAAmB,OAAO,sBAAsB;CAC3D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAToC,EAAE,OAAO,EAC7C,MAAM,EAAE,MAAM,2BAA2B,CAAC,CAAC,SAAS,yCAAyC,EAC/F,CAAC,CAAC,CAAC,SAAS,iEAOF;AACV,CAAC"}
@@ -6,30 +6,30 @@ const PayhereListPaymentsInput = zod.z.object({
6
6
  per_page: zod.z.number().int().describe("Number of records per page (default: 20, maximum: 100).").optional()
7
7
  }).describe("Request model for listing payments with pagination options.");
8
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.")
9
+ id: zod.z.number().int().describe("Unique payment identifier.").nullable(),
10
+ type: zod.z.string().describe("Resource type identifier.").nullable(),
11
+ amount: zod.z.number().describe("Payment amount as a number.").nullable(),
12
+ hashid: zod.z.string().describe("Hashed payment ID.").nullable(),
13
+ status: zod.z.string().describe("Payment status (e.g., 'success', 'part_refund', 'failed').").nullable(),
14
+ success: zod.z.boolean().describe("Whether payment succeeded.").nullable(),
15
+ currency: zod.z.string().describe("Currency code (e.g., 'gbp', 'usd').").nullable(),
16
+ reference: zod.z.string().describe("Payment reference number.").nullable(),
17
+ card_brand: zod.z.string().describe("Card type (e.g., 'visa', 'mastercard').").nullable(),
18
+ card_last4: zod.z.string().describe("Last 4 digits of card number.").nullable(),
19
+ company_id: zod.z.number().int().describe("Associated company identifier.").nullable(),
20
+ created_at: zod.z.string().describe("Creation timestamp.").nullable(),
21
+ updated_at: zod.z.string().describe("Last update timestamp.").nullable(),
22
+ amount_paid: zod.z.number().describe("Net amount paid after refunds.").nullable(),
23
+ secure_token: zod.z.string().describe("Security token for the payment.").nullable(),
24
+ refund_amount: zod.z.number().describe("Amount refunded.").nullable(),
25
+ formatted_amount: zod.z.string().describe("Amount with currency symbol formatted as string.").nullable()
26
26
  }).describe("Individual payment object with all relevant details.");
27
27
  const PayhereListPayments_PaginationMetaSchema = zod.z.object({
28
28
  next_page: zod.z.number().int().describe("Next page number if available.").nullable().optional(),
29
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.")
30
+ total_count: zod.z.number().int().describe("Total number of records.").nullable(),
31
+ total_pages: zod.z.number().int().describe("Total number of pages.").nullable(),
32
+ current_page: zod.z.number().int().describe("Current page number.").nullable()
33
33
  }).describe("Pagination metadata for the response.");
34
34
  const PayhereListPaymentsOutput = zod.z.object({
35
35
  data: zod.z.array(PayhereListPayments_PaymentItemSchema).describe("Array of payment objects ordered chronologically, most recent first."),
@@ -1 +1 @@
1
- {"version":3,"file":"list-payments.cjs","names":["z","action"],"sources":["../../src/actions/list-payments.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PayhereListPaymentsInput: z.ZodTypeAny = z.object({\n page: z.number().int().describe(\"Page number for pagination.\").optional(),\n per_page: z.number().int().describe(\"Number of records per page (default: 20, maximum: 100).\").optional(),\n}).describe(\"Request model for listing payments with pagination options.\");\nconst PayhereListPayments_PaymentItemSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique payment identifier.\"),\n type: z.string().describe(\"Resource type identifier.\"),\n amount: z.number().describe(\"Payment amount as a number.\"),\n hashid: z.string().describe(\"Hashed payment ID.\"),\n status: z.string().describe(\"Payment status (e.g., 'success', 'part_refund', 'failed').\"),\n success: z.boolean().describe(\"Whether payment succeeded.\"),\n currency: z.string().describe(\"Currency code (e.g., 'gbp', 'usd').\"),\n reference: z.string().describe(\"Payment reference number.\"),\n card_brand: z.string().describe(\"Card type (e.g., 'visa', 'mastercard').\"),\n card_last4: z.string().describe(\"Last 4 digits of card number.\"),\n company_id: z.number().int().describe(\"Associated company identifier.\"),\n created_at: z.string().describe(\"Creation timestamp.\"),\n updated_at: z.string().describe(\"Last update timestamp.\"),\n amount_paid: z.number().describe(\"Net amount paid after refunds.\"),\n secure_token: z.string().describe(\"Security token for the payment.\"),\n refund_amount: z.number().describe(\"Amount refunded.\"),\n formatted_amount: z.string().describe(\"Amount with currency symbol formatted as string.\"),\n}).describe(\"Individual payment object with all relevant details.\");\nconst PayhereListPayments_PaginationMetaSchema: 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 records.\"),\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 response.\");\nexport const PayhereListPaymentsOutput: z.ZodTypeAny = z.object({\n data: z.array(PayhereListPayments_PaymentItemSchema).describe(\"Array of payment objects ordered chronologically, most recent first.\"),\n meta: PayhereListPayments_PaginationMetaSchema.nullable(),\n}).describe(\"Response model for listing payments with pagination metadata.\");\n\nexport const payhereListPayments = action(\"PAYHERE_LIST_PAYMENTS\", {\n slug: \"payhere-list-payments\",\n name: \"List Payments\",\n 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.\",\n input: PayhereListPaymentsInput,\n output: PayhereListPaymentsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAAyCA,IAAAA,EAAE,OAAO;CAC7D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CACxE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAA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AE,OAAO;CACtE,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3F,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/F,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0BAA0B;CACjE,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wBAAwB;CAC/D,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sBAAsB;AAChE,CAAC,CAAC,CAAC,SAAS,uCAAuC;AACnD,MAAa,4BAA0CA,IAAAA,EAAE,OAAO;CAC9D,MAAMA,IAAAA,EAAE,MAAM,qCAAqC,CAAC,CAAC,SAAS,sEAAsE;CACpI,MAAM,yCAAyC,SAAS;AAC1D,CAAC,CAAC,CAAC,SAAS,+DAA+D;AAE3E,MAAa,sBAAsBC,eAAAA,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"list-payments.cjs","names":["z","action"],"sources":["../../src/actions/list-payments.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PayhereListPaymentsInput = z.object({\n page: z.number().int().describe(\"Page number for pagination.\").optional(),\n per_page: z.number().int().describe(\"Number of records per page (default: 20, maximum: 100).\").optional(),\n}).describe(\"Request model for listing payments with pagination options.\");\nconst PayhereListPayments_PaymentItemSchema = z.object({\n id: z.number().int().describe(\"Unique payment identifier.\").nullable(),\n type: z.string().describe(\"Resource type identifier.\").nullable(),\n amount: z.number().describe(\"Payment amount as a number.\").nullable(),\n hashid: z.string().describe(\"Hashed payment ID.\").nullable(),\n status: z.string().describe(\"Payment status (e.g., 'success', 'part_refund', 'failed').\").nullable(),\n success: z.boolean().describe(\"Whether payment succeeded.\").nullable(),\n currency: z.string().describe(\"Currency code (e.g., 'gbp', 'usd').\").nullable(),\n reference: z.string().describe(\"Payment reference number.\").nullable(),\n card_brand: z.string().describe(\"Card type (e.g., 'visa', 'mastercard').\").nullable(),\n card_last4: z.string().describe(\"Last 4 digits of card number.\").nullable(),\n company_id: z.number().int().describe(\"Associated company identifier.\").nullable(),\n created_at: z.string().describe(\"Creation timestamp.\").nullable(),\n updated_at: z.string().describe(\"Last update timestamp.\").nullable(),\n amount_paid: z.number().describe(\"Net amount paid after refunds.\").nullable(),\n secure_token: z.string().describe(\"Security token for the payment.\").nullable(),\n refund_amount: z.number().describe(\"Amount refunded.\").nullable(),\n formatted_amount: z.string().describe(\"Amount with currency symbol formatted as string.\").nullable(),\n}).describe(\"Individual payment object with all relevant details.\");\nconst PayhereListPayments_PaginationMetaSchema = 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 records.\").nullable(),\n total_pages: z.number().int().describe(\"Total number of pages.\").nullable(),\n current_page: z.number().int().describe(\"Current page number.\").nullable(),\n}).describe(\"Pagination metadata for the response.\");\nexport const PayhereListPaymentsOutput = z.object({\n data: z.array(PayhereListPayments_PaymentItemSchema).describe(\"Array of payment objects ordered chronologically, most recent first.\"),\n meta: PayhereListPayments_PaginationMetaSchema.nullable(),\n}).describe(\"Response model for listing payments with pagination metadata.\");\n\nexport const payhereListPayments = action(\"PAYHERE_LIST_PAYMENTS\", {\n slug: \"payhere-list-payments\",\n name: \"List Payments\",\n 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.\",\n input: PayhereListPaymentsInput,\n output: PayhereListPaymentsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2BA,IAA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sBAAsBC,eAAAA,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,42 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/list-payments.d.ts
4
- declare const PayhereListPaymentsInput: z.ZodTypeAny;
5
- declare const PayhereListPaymentsOutput: z.ZodTypeAny;
6
- declare const payhereListPayments: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const PayhereListPaymentsInput: z.ZodObject<{
5
+ page: z.ZodOptional<z.ZodNumber>;
6
+ per_page: z.ZodOptional<z.ZodNumber>;
7
+ }, z.core.$strip>;
8
+ declare const PayhereListPaymentsOutput: z.ZodObject<{
9
+ data: z.ZodArray<z.ZodObject<{
10
+ id: z.ZodNullable<z.ZodNumber>;
11
+ type: z.ZodNullable<z.ZodString>;
12
+ amount: z.ZodNullable<z.ZodNumber>;
13
+ hashid: z.ZodNullable<z.ZodString>;
14
+ status: z.ZodNullable<z.ZodString>;
15
+ success: z.ZodNullable<z.ZodBoolean>;
16
+ currency: z.ZodNullable<z.ZodString>;
17
+ reference: z.ZodNullable<z.ZodString>;
18
+ card_brand: z.ZodNullable<z.ZodString>;
19
+ card_last4: z.ZodNullable<z.ZodString>;
20
+ company_id: z.ZodNullable<z.ZodNumber>;
21
+ created_at: z.ZodNullable<z.ZodString>;
22
+ updated_at: z.ZodNullable<z.ZodString>;
23
+ amount_paid: z.ZodNullable<z.ZodNumber>;
24
+ secure_token: z.ZodNullable<z.ZodString>;
25
+ refund_amount: z.ZodNullable<z.ZodNumber>;
26
+ formatted_amount: z.ZodNullable<z.ZodString>;
27
+ }, z.core.$strip>>;
28
+ meta: z.ZodNullable<z.ZodObject<{
29
+ next_page: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
30
+ prev_page: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
31
+ total_count: z.ZodNullable<z.ZodNumber>;
32
+ total_pages: z.ZodNullable<z.ZodNumber>;
33
+ current_page: z.ZodNullable<z.ZodNumber>;
34
+ }, z.core.$strip>>;
35
+ }, z.core.$strip>;
36
+ declare const payhereListPayments: import("@keystrokehq/action").WorkflowActionDefinition<{
37
+ page?: number | undefined;
38
+ per_page?: number | undefined;
39
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
40
  //#endregion
8
41
  export { payhereListPayments };
9
42
  //# sourceMappingURL=list-payments.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-payments.d.cts","names":[],"sources":["../../src/actions/list-payments.ts"],"mappings":";;;cAIa,wBAAA,EAA0B,CAAA,CAAE,UAGiC;AAAA,cA2B7D,yBAAA,EAA2B,CAAA,CAAE,UAGkC;AAAA,cAE/D,mBAAA,gCAAmB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"list-payments.d.cts","names":[],"sources":["../../src/actions/list-payments.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;cA8BxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAKzB,mBAAA,gCAAmB,wBAAA"}
@@ -1,9 +1,42 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/list-payments.d.ts
4
- declare const PayhereListPaymentsInput: z.ZodTypeAny;
5
- declare const PayhereListPaymentsOutput: z.ZodTypeAny;
6
- declare const payhereListPayments: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const PayhereListPaymentsInput: z.ZodObject<{
5
+ page: z.ZodOptional<z.ZodNumber>;
6
+ per_page: z.ZodOptional<z.ZodNumber>;
7
+ }, z.core.$strip>;
8
+ declare const PayhereListPaymentsOutput: z.ZodObject<{
9
+ data: z.ZodArray<z.ZodObject<{
10
+ id: z.ZodNullable<z.ZodNumber>;
11
+ type: z.ZodNullable<z.ZodString>;
12
+ amount: z.ZodNullable<z.ZodNumber>;
13
+ hashid: z.ZodNullable<z.ZodString>;
14
+ status: z.ZodNullable<z.ZodString>;
15
+ success: z.ZodNullable<z.ZodBoolean>;
16
+ currency: z.ZodNullable<z.ZodString>;
17
+ reference: z.ZodNullable<z.ZodString>;
18
+ card_brand: z.ZodNullable<z.ZodString>;
19
+ card_last4: z.ZodNullable<z.ZodString>;
20
+ company_id: z.ZodNullable<z.ZodNumber>;
21
+ created_at: z.ZodNullable<z.ZodString>;
22
+ updated_at: z.ZodNullable<z.ZodString>;
23
+ amount_paid: z.ZodNullable<z.ZodNumber>;
24
+ secure_token: z.ZodNullable<z.ZodString>;
25
+ refund_amount: z.ZodNullable<z.ZodNumber>;
26
+ formatted_amount: z.ZodNullable<z.ZodString>;
27
+ }, z.core.$strip>>;
28
+ meta: z.ZodNullable<z.ZodObject<{
29
+ next_page: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
30
+ prev_page: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
31
+ total_count: z.ZodNullable<z.ZodNumber>;
32
+ total_pages: z.ZodNullable<z.ZodNumber>;
33
+ current_page: z.ZodNullable<z.ZodNumber>;
34
+ }, z.core.$strip>>;
35
+ }, z.core.$strip>;
36
+ declare const payhereListPayments: import("@keystrokehq/action").WorkflowActionDefinition<{
37
+ page?: number | undefined;
38
+ per_page?: number | undefined;
39
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
40
  //#endregion
8
41
  export { payhereListPayments };
9
42
  //# sourceMappingURL=list-payments.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-payments.d.mts","names":[],"sources":["../../src/actions/list-payments.ts"],"mappings":";;;cAIa,wBAAA,EAA0B,CAAA,CAAE,UAGiC;AAAA,cA2B7D,yBAAA,EAA2B,CAAA,CAAE,UAGkC;AAAA,cAE/D,mBAAA,gCAAmB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"list-payments.d.mts","names":[],"sources":["../../src/actions/list-payments.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;cA8BxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAKzB,mBAAA,gCAAmB,wBAAA"}
@@ -6,30 +6,30 @@ const PayhereListPaymentsInput = z.object({
6
6
  per_page: z.number().int().describe("Number of records per page (default: 20, maximum: 100).").optional()
7
7
  }).describe("Request model for listing payments with pagination options.");
8
8
  const PayhereListPayments_PaymentItemSchema = z.object({
9
- id: z.number().int().describe("Unique payment identifier."),
10
- type: z.string().describe("Resource type identifier."),
11
- amount: z.number().describe("Payment amount as a number."),
12
- hashid: z.string().describe("Hashed payment ID."),
13
- status: z.string().describe("Payment status (e.g., 'success', 'part_refund', 'failed')."),
14
- success: z.boolean().describe("Whether payment succeeded."),
15
- currency: z.string().describe("Currency code (e.g., 'gbp', 'usd')."),
16
- reference: z.string().describe("Payment reference number."),
17
- card_brand: z.string().describe("Card type (e.g., 'visa', 'mastercard')."),
18
- card_last4: z.string().describe("Last 4 digits of card number."),
19
- company_id: z.number().int().describe("Associated company identifier."),
20
- created_at: z.string().describe("Creation timestamp."),
21
- updated_at: z.string().describe("Last update timestamp."),
22
- amount_paid: z.number().describe("Net amount paid after refunds."),
23
- secure_token: z.string().describe("Security token for the payment."),
24
- refund_amount: z.number().describe("Amount refunded."),
25
- formatted_amount: z.string().describe("Amount with currency symbol formatted as string.")
9
+ id: z.number().int().describe("Unique payment identifier.").nullable(),
10
+ type: z.string().describe("Resource type identifier.").nullable(),
11
+ amount: z.number().describe("Payment amount as a number.").nullable(),
12
+ hashid: z.string().describe("Hashed payment ID.").nullable(),
13
+ status: z.string().describe("Payment status (e.g., 'success', 'part_refund', 'failed').").nullable(),
14
+ success: z.boolean().describe("Whether payment succeeded.").nullable(),
15
+ currency: z.string().describe("Currency code (e.g., 'gbp', 'usd').").nullable(),
16
+ reference: z.string().describe("Payment reference number.").nullable(),
17
+ card_brand: z.string().describe("Card type (e.g., 'visa', 'mastercard').").nullable(),
18
+ card_last4: z.string().describe("Last 4 digits of card number.").nullable(),
19
+ company_id: z.number().int().describe("Associated company identifier.").nullable(),
20
+ created_at: z.string().describe("Creation timestamp.").nullable(),
21
+ updated_at: z.string().describe("Last update timestamp.").nullable(),
22
+ amount_paid: z.number().describe("Net amount paid after refunds.").nullable(),
23
+ secure_token: z.string().describe("Security token for the payment.").nullable(),
24
+ refund_amount: z.number().describe("Amount refunded.").nullable(),
25
+ formatted_amount: z.string().describe("Amount with currency symbol formatted as string.").nullable()
26
26
  }).describe("Individual payment object with all relevant details.");
27
27
  const PayhereListPayments_PaginationMetaSchema = z.object({
28
28
  next_page: z.number().int().describe("Next page number if available.").nullable().optional(),
29
29
  prev_page: z.number().int().describe("Previous page number if available.").nullable().optional(),
30
- total_count: z.number().int().describe("Total number of records."),
31
- total_pages: z.number().int().describe("Total number of pages."),
32
- current_page: z.number().int().describe("Current page number.")
30
+ total_count: z.number().int().describe("Total number of records.").nullable(),
31
+ total_pages: z.number().int().describe("Total number of pages.").nullable(),
32
+ current_page: z.number().int().describe("Current page number.").nullable()
33
33
  }).describe("Pagination metadata for the response.");
34
34
  const payhereListPayments = action("PAYHERE_LIST_PAYMENTS", {
35
35
  slug: "payhere-list-payments",
@@ -1 +1 @@
1
- {"version":3,"file":"list-payments.mjs","names":[],"sources":["../../src/actions/list-payments.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PayhereListPaymentsInput: z.ZodTypeAny = z.object({\n page: z.number().int().describe(\"Page number for pagination.\").optional(),\n per_page: z.number().int().describe(\"Number of records per page (default: 20, maximum: 100).\").optional(),\n}).describe(\"Request model for listing payments with pagination options.\");\nconst PayhereListPayments_PaymentItemSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique payment identifier.\"),\n type: z.string().describe(\"Resource type identifier.\"),\n amount: z.number().describe(\"Payment amount as a number.\"),\n hashid: z.string().describe(\"Hashed payment ID.\"),\n status: z.string().describe(\"Payment status (e.g., 'success', 'part_refund', 'failed').\"),\n success: z.boolean().describe(\"Whether payment succeeded.\"),\n currency: z.string().describe(\"Currency code (e.g., 'gbp', 'usd').\"),\n reference: z.string().describe(\"Payment reference number.\"),\n card_brand: z.string().describe(\"Card type (e.g., 'visa', 'mastercard').\"),\n card_last4: z.string().describe(\"Last 4 digits of card number.\"),\n company_id: z.number().int().describe(\"Associated company identifier.\"),\n created_at: z.string().describe(\"Creation timestamp.\"),\n updated_at: z.string().describe(\"Last update timestamp.\"),\n amount_paid: z.number().describe(\"Net amount paid after refunds.\"),\n secure_token: z.string().describe(\"Security token for the payment.\"),\n refund_amount: z.number().describe(\"Amount refunded.\"),\n formatted_amount: z.string().describe(\"Amount with currency symbol formatted as string.\"),\n}).describe(\"Individual payment object with all relevant details.\");\nconst PayhereListPayments_PaginationMetaSchema: 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 records.\"),\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 response.\");\nexport const PayhereListPaymentsOutput: z.ZodTypeAny = z.object({\n data: z.array(PayhereListPayments_PaymentItemSchema).describe(\"Array of payment objects ordered chronologically, most recent first.\"),\n meta: PayhereListPayments_PaginationMetaSchema.nullable(),\n}).describe(\"Response model for listing payments with pagination metadata.\");\n\nexport const payhereListPayments = action(\"PAYHERE_LIST_PAYMENTS\", {\n slug: \"payhere-list-payments\",\n name: \"List Payments\",\n 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.\",\n input: PayhereListPaymentsInput,\n output: PayhereListPaymentsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAAyC,EAAE,OAAO;CAC7D,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CACxE,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;AAC1G,CAAC,CAAC,CAAC,SAAS,6DAA6D;AACzE,MAAM,wCAAsD,EAAE,OAAO;CACnE,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4BAA4B;CAC1D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B;CACrD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B;CACzD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB;CAChD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D;CACxF,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,4BAA4B;CAC1D,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC;CACnE,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B;CAC1D,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC;CACzE,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B;CAC/D,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gCAAgC;CACtE,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB;CACrD,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB;CACxD,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC;CACjE,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC;CACnE,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB;CACrD,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD;AAC1F,CAAC,CAAC,CAAC,SAAS,sDAAsD;AAClE,MAAM,2CAAyD,EAAE,OAAO;CACtE,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,0BAA0B;CACjE,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,uCAAuC;AAMnD,MAAa,sBAAsB,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAVqD,EAAE,OAAO;EAC9D,MAAM,EAAE,MAAM,qCAAqC,CAAC,CAAC,SAAS,sEAAsE;EACpI,MAAM,yCAAyC,SAAS;CAC1D,CAAC,CAAC,CAAC,SAAS,+DAOF;AACV,CAAC"}
1
+ {"version":3,"file":"list-payments.mjs","names":[],"sources":["../../src/actions/list-payments.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PayhereListPaymentsInput = z.object({\n page: z.number().int().describe(\"Page number for pagination.\").optional(),\n per_page: z.number().int().describe(\"Number of records per page (default: 20, maximum: 100).\").optional(),\n}).describe(\"Request model for listing payments with pagination options.\");\nconst PayhereListPayments_PaymentItemSchema = z.object({\n id: z.number().int().describe(\"Unique payment identifier.\").nullable(),\n type: z.string().describe(\"Resource type identifier.\").nullable(),\n amount: z.number().describe(\"Payment amount as a number.\").nullable(),\n hashid: z.string().describe(\"Hashed payment ID.\").nullable(),\n status: z.string().describe(\"Payment status (e.g., 'success', 'part_refund', 'failed').\").nullable(),\n success: z.boolean().describe(\"Whether payment succeeded.\").nullable(),\n currency: z.string().describe(\"Currency code (e.g., 'gbp', 'usd').\").nullable(),\n reference: z.string().describe(\"Payment reference number.\").nullable(),\n card_brand: z.string().describe(\"Card type (e.g., 'visa', 'mastercard').\").nullable(),\n card_last4: z.string().describe(\"Last 4 digits of card number.\").nullable(),\n company_id: z.number().int().describe(\"Associated company identifier.\").nullable(),\n created_at: z.string().describe(\"Creation timestamp.\").nullable(),\n updated_at: z.string().describe(\"Last update timestamp.\").nullable(),\n amount_paid: z.number().describe(\"Net amount paid after refunds.\").nullable(),\n secure_token: z.string().describe(\"Security token for the payment.\").nullable(),\n refund_amount: z.number().describe(\"Amount refunded.\").nullable(),\n formatted_amount: z.string().describe(\"Amount with currency symbol formatted as string.\").nullable(),\n}).describe(\"Individual payment object with all relevant details.\");\nconst PayhereListPayments_PaginationMetaSchema = 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 records.\").nullable(),\n total_pages: z.number().int().describe(\"Total number of pages.\").nullable(),\n current_page: z.number().int().describe(\"Current page number.\").nullable(),\n}).describe(\"Pagination metadata for the response.\");\nexport const PayhereListPaymentsOutput = z.object({\n data: z.array(PayhereListPayments_PaymentItemSchema).describe(\"Array of payment objects ordered chronologically, most recent first.\"),\n meta: PayhereListPayments_PaginationMetaSchema.nullable(),\n}).describe(\"Response model for listing payments with pagination metadata.\");\n\nexport const payhereListPayments = action(\"PAYHERE_LIST_PAYMENTS\", {\n slug: \"payhere-list-payments\",\n name: \"List Payments\",\n 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.\",\n input: PayhereListPaymentsInput,\n output: PayhereListPaymentsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2B,EAAE,OAAO;CAC/C,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CACxE,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;AAC1G,CAAC,CAAC,CAAC,SAAS,6DAA6D;AACzE,MAAM,wCAAwC,EAAE,OAAO;CACrD,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CACrE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CAChE,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CACpE,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS;CAC3D,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;CACnG,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CACrE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CAC9E,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CACrE,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CACpF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CAC1E,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CACjF,YAAY,EAAE,OAAO,CAAC,CAAC,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ListPlansInput = zod.z.object({
6
6
  per_page: zod.z.number().int().describe("Number of plans per page. Default is 20, maximum is 100.").optional()
7
7
  }).describe("Request model for listing plans with pagination support.");
8
8
  const PayhereListPlans_PlanItemSchema = zod.z.object({
9
- id: zod.z.number().int().describe("Unique identifier for the plan."),
9
+ id: zod.z.number().int().describe("Unique identifier for the plan.").nullable(),
10
10
  qty: zod.z.number().int().describe("Available quantity if limited.").nullable().optional(),
11
- name: zod.z.string().describe("Name of the plan."),
12
- slug: zod.z.string().describe("URL-friendly plan identifier."),
13
- type: zod.z.string().describe("Plan type."),
14
- price: zod.z.number().describe("Price in decimal format."),
15
- hidden: zod.z.boolean().describe("Whether the plan is hidden from public view."),
16
- currency: zod.z.string().describe("Currency code (e.g., USD, EUR)."),
17
- show_qty: zod.z.boolean().describe("Display quantity selector."),
11
+ name: zod.z.string().describe("Name of the plan.").nullable(),
12
+ slug: zod.z.string().describe("URL-friendly plan identifier.").nullable(),
13
+ type: zod.z.string().describe("Plan type.").nullable(),
14
+ price: zod.z.number().describe("Price in decimal format.").nullable(),
15
+ hidden: zod.z.boolean().describe("Whether the plan is hidden from public view.").nullable(),
16
+ currency: zod.z.string().describe("Currency code (e.g., USD, EUR).").nullable(),
17
+ show_qty: zod.z.boolean().describe("Display quantity selector.").nullable(),
18
18
  setup_fee: zod.z.number().describe("One-time setup fee.").nullable().optional(),
19
- created_at: zod.z.string().describe("ISO 8601 timestamp of creation."),
20
- updated_at: zod.z.string().describe("ISO 8601 timestamp of last update."),
19
+ created_at: zod.z.string().describe("ISO 8601 timestamp of creation.").nullable(),
20
+ updated_at: zod.z.string().describe("ISO 8601 timestamp of last update.").nullable(),
21
21
  billing_day: zod.z.number().int().describe("Day of month for billing.").nullable().optional(),
22
22
  description: zod.z.string().describe("Description of the plan.").nullable().optional(),
23
- limited_qty: zod.z.boolean().describe("Whether plan has limited quantity."),
23
+ limited_qty: zod.z.boolean().describe("Whether plan has limited quantity.").nullable(),
24
24
  success_url: zod.z.string().describe("Redirect URL after successful payment.").nullable().optional(),
25
25
  webhook_url: zod.z.string().describe("Webhook URL for notifications.").nullable().optional(),
26
26
  cancel_after: zod.z.number().int().describe("Auto-cancel subscription after N cycles.").nullable().optional(),
27
- payment_type: zod.z.string().describe("Type of payment (one-time or recurring)."),
27
+ payment_type: zod.z.string().describe("Type of payment (one-time or recurring).").nullable(),
28
28
  receipt_text: zod.z.string().describe("Custom receipt text.").nullable().optional(),
29
29
  custom_fields: zod.z.array(zod.z.object({})).describe("Custom form fields.").nullable().optional(),
30
- has_setup_fee: zod.z.boolean().describe("Whether setup fee is enabled."),
31
- price_in_cents: zod.z.number().int().describe("Price in cents."),
30
+ has_setup_fee: zod.z.boolean().describe("Whether setup fee is enabled.").nullable(),
31
+ price_in_cents: zod.z.number().int().describe("Price in cents.").nullable(),
32
32
  pay_button_text: zod.z.string().describe("Custom text for payment button.").nullable().optional(),
33
33
  billing_interval: zod.z.string().describe("Billing cycle interval (day, week, month, year).").nullable().optional(),
34
34
  trial_period_days: zod.z.number().int().describe("Number of trial days.").nullable().optional(),
35
35
  min_billing_cycles: zod.z.number().int().describe("Minimum number of billing cycles.").nullable().optional(),
36
- user_selects_amount: zod.z.boolean().describe("Allow user to select amount."),
36
+ user_selects_amount: zod.z.boolean().describe("Allow user to select amount.").nullable(),
37
37
  billing_interval_count: zod.z.number().int().describe("Number of intervals between billings.").nullable().optional()
38
38
  }).describe("Represents a single plan object in the response.");
39
39
  const PayhereListPlans_PaginationMetaSchema = zod.z.object({
40
40
  next_page: zod.z.number().int().describe("Next page number or null if last page.").nullable().optional(),
41
41
  prev_page: zod.z.number().int().describe("Previous page number or null if first page.").nullable().optional(),
42
- total_count: zod.z.number().int().describe("Total number of plans."),
43
- total_pages: zod.z.number().int().describe("Total number of pages."),
44
- current_page: zod.z.number().int().describe("Current page number.")
42
+ total_count: zod.z.number().int().describe("Total number of plans.").nullable(),
43
+ total_pages: zod.z.number().int().describe("Total number of pages.").nullable(),
44
+ current_page: zod.z.number().int().describe("Current page number.").nullable()
45
45
  }).describe("Pagination metadata for the response.");
46
46
  const PayhereListPlansOutput = zod.z.object({
47
47
  data: zod.z.array(PayhereListPlans_PlanItemSchema).describe("Collection of plan objects."),
@@ -1 +1 @@
1
- {"version":3,"file":"list-plans.cjs","names":["z","action"],"sources":["../../src/actions/list-plans.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PayhereListPlansInput: z.ZodTypeAny = z.object({\n page: z.number().int().describe(\"Page number for pagination. Must be >= 1.\").optional(),\n per_page: z.number().int().describe(\"Number of plans per page. Default is 20, maximum is 100.\").optional(),\n}).describe(\"Request model for listing plans with pagination support.\");\nconst PayhereListPlans_PlanItemSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique identifier for the plan.\"),\n qty: z.number().int().describe(\"Available quantity if limited.\").nullable().optional(),\n name: z.string().describe(\"Name of the plan.\"),\n slug: z.string().describe(\"URL-friendly plan identifier.\"),\n type: z.string().describe(\"Plan type.\"),\n price: z.number().describe(\"Price in decimal format.\"),\n hidden: z.boolean().describe(\"Whether the plan is hidden from public view.\"),\n currency: z.string().describe(\"Currency code (e.g., USD, EUR).\"),\n show_qty: z.boolean().describe(\"Display quantity selector.\"),\n setup_fee: z.number().describe(\"One-time setup fee.\").nullable().optional(),\n created_at: z.string().describe(\"ISO 8601 timestamp of creation.\"),\n updated_at: z.string().describe(\"ISO 8601 timestamp of last update.\"),\n billing_day: z.number().int().describe(\"Day of month for billing.\").nullable().optional(),\n description: z.string().describe(\"Description of the plan.\").nullable().optional(),\n limited_qty: z.boolean().describe(\"Whether plan has limited quantity.\"),\n success_url: z.string().describe(\"Redirect URL after successful payment.\").nullable().optional(),\n webhook_url: z.string().describe(\"Webhook URL for notifications.\").nullable().optional(),\n cancel_after: z.number().int().describe(\"Auto-cancel subscription after N cycles.\").nullable().optional(),\n payment_type: z.string().describe(\"Type of payment (one-time or recurring).\"),\n receipt_text: z.string().describe(\"Custom receipt text.\").nullable().optional(),\n custom_fields: z.array(z.object({})).describe(\"Custom form fields.\").nullable().optional(),\n has_setup_fee: z.boolean().describe(\"Whether setup fee is enabled.\"),\n price_in_cents: z.number().int().describe(\"Price in cents.\"),\n pay_button_text: z.string().describe(\"Custom text for payment button.\").nullable().optional(),\n billing_interval: z.string().describe(\"Billing cycle interval (day, week, month, year).\").nullable().optional(),\n trial_period_days: z.number().int().describe(\"Number of trial days.\").nullable().optional(),\n min_billing_cycles: z.number().int().describe(\"Minimum number of billing cycles.\").nullable().optional(),\n user_selects_amount: z.boolean().describe(\"Allow user to select amount.\"),\n billing_interval_count: z.number().int().describe(\"Number of intervals between billings.\").nullable().optional(),\n}).describe(\"Represents a single plan object in the response.\");\nconst PayhereListPlans_PaginationMetaSchema: z.ZodTypeAny = z.object({\n next_page: z.number().int().describe(\"Next page number or null if last page.\").nullable().optional(),\n prev_page: z.number().int().describe(\"Previous page number or null if first page.\").nullable().optional(),\n total_count: z.number().int().describe(\"Total number of plans.\"),\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 response.\");\nexport const PayhereListPlansOutput: z.ZodTypeAny = z.object({\n data: z.array(PayhereListPlans_PlanItemSchema).describe(\"Collection of plan objects.\"),\n meta: PayhereListPlans_PaginationMetaSchema.nullable(),\n}).describe(\"Response model for listing plans.\");\n\nexport const payhereListPlans = action(\"PAYHERE_LIST_PLANS\", {\n slug: \"payhere-list-plans\",\n name: \"List Plans\",\n description: \"Tool to list all plans in your PayHere account. Use when you need to retrieve and paginate through available plans.\",\n input: PayhereListPlansInput,\n output: PayhereListPlansOutput,\n});\n"],"mappings":";;;AAIA,MAAa,wBAAsCA,IAAAA,EAAE,OAAO;CAC1D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CACtF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,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A,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACjH,CAAC,CAAC,CAAC,SAAS,kDAAkD;AAC9D,MAAM,wCAAsDA,IAAAA,EAAE,OAAO;CACnE,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnG,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxG,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wBAAwB;CAC/D,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wBAAwB;CAC/D,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sBAAsB;AAChE,CAAC,CAAC,CAAC,SAAS,uCAAuC;AACnD,MAAa,yBAAuCA,IAAAA,EAAE,OAAO;CAC3D,MAAMA,IAAAA,EAAE,MAAM,+BAA+B,CAAC,CAAC,SAAS,6BAA6B;CACrF,MAAM,sCAAsC,SAAS;AACvD,CAAC,CAAC,CAAC,SAAS,mCAAmC;AAE/C,MAAa,mBAAmBC,eAAAA,OAAO,sBAAsB;CAC3D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"list-plans.cjs","names":["z","action"],"sources":["../../src/actions/list-plans.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PayhereListPlansInput = z.object({\n page: z.number().int().describe(\"Page number for pagination. Must be >= 1.\").optional(),\n per_page: z.number().int().describe(\"Number of plans per page. Default is 20, maximum is 100.\").optional(),\n}).describe(\"Request model for listing plans with pagination support.\");\nconst PayhereListPlans_PlanItemSchema = z.object({\n id: z.number().int().describe(\"Unique identifier for the plan.\").nullable(),\n qty: z.number().int().describe(\"Available quantity if limited.\").nullable().optional(),\n name: z.string().describe(\"Name of the plan.\").nullable(),\n slug: z.string().describe(\"URL-friendly plan identifier.\").nullable(),\n type: z.string().describe(\"Plan type.\").nullable(),\n price: z.number().describe(\"Price in decimal format.\").nullable(),\n hidden: z.boolean().describe(\"Whether the plan is hidden from public view.\").nullable(),\n currency: z.string().describe(\"Currency code (e.g., USD, EUR).\").nullable(),\n show_qty: z.boolean().describe(\"Display quantity selector.\").nullable(),\n setup_fee: z.number().describe(\"One-time setup fee.\").nullable().optional(),\n created_at: z.string().describe(\"ISO 8601 timestamp of creation.\").nullable(),\n updated_at: z.string().describe(\"ISO 8601 timestamp of last update.\").nullable(),\n billing_day: z.number().int().describe(\"Day of month for billing.\").nullable().optional(),\n description: z.string().describe(\"Description of the plan.\").nullable().optional(),\n limited_qty: z.boolean().describe(\"Whether plan has limited quantity.\").nullable(),\n success_url: z.string().describe(\"Redirect URL after successful payment.\").nullable().optional(),\n webhook_url: z.string().describe(\"Webhook URL for notifications.\").nullable().optional(),\n cancel_after: z.number().int().describe(\"Auto-cancel subscription after N cycles.\").nullable().optional(),\n payment_type: z.string().describe(\"Type of payment (one-time or recurring).\").nullable(),\n receipt_text: z.string().describe(\"Custom receipt text.\").nullable().optional(),\n custom_fields: z.array(z.object({})).describe(\"Custom form fields.\").nullable().optional(),\n has_setup_fee: z.boolean().describe(\"Whether setup fee is enabled.\").nullable(),\n price_in_cents: z.number().int().describe(\"Price in cents.\").nullable(),\n pay_button_text: z.string().describe(\"Custom text for payment button.\").nullable().optional(),\n billing_interval: z.string().describe(\"Billing cycle interval (day, week, month, year).\").nullable().optional(),\n trial_period_days: z.number().int().describe(\"Number of trial days.\").nullable().optional(),\n min_billing_cycles: z.number().int().describe(\"Minimum number of billing cycles.\").nullable().optional(),\n user_selects_amount: z.boolean().describe(\"Allow user to select amount.\").nullable(),\n billing_interval_count: z.number().int().describe(\"Number of intervals between billings.\").nullable().optional(),\n}).describe(\"Represents a single plan object in the response.\");\nconst PayhereListPlans_PaginationMetaSchema = z.object({\n next_page: z.number().int().describe(\"Next page number or null if last page.\").nullable().optional(),\n prev_page: z.number().int().describe(\"Previous page number or null if first page.\").nullable().optional(),\n total_count: z.number().int().describe(\"Total number of plans.\").nullable(),\n total_pages: z.number().int().describe(\"Total number of pages.\").nullable(),\n current_page: z.number().int().describe(\"Current page number.\").nullable(),\n}).describe(\"Pagination metadata for the response.\");\nexport const PayhereListPlansOutput = z.object({\n data: z.array(PayhereListPlans_PlanItemSchema).describe(\"Collection of plan objects.\"),\n meta: PayhereListPlans_PaginationMetaSchema.nullable(),\n}).describe(\"Response model for listing plans.\");\n\nexport const payhereListPlans = action(\"PAYHERE_LIST_PLANS\", {\n slug: \"payhere-list-plans\",\n name: \"List Plans\",\n description: \"Tool to list all plans in your PayHere account. Use when you need to retrieve and paginate through available plans.\",\n input: PayhereListPlansInput,\n output: PayhereListPlansOutput,\n});\n"],"mappings":";;;AAIA,MAAa,wBAAwBA,IAAAA,EAAE,OAAO;CAC5C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CACtF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;AAC3G,CAAC,CAAC,CAAC,SAAS,0DAA0D;AACtE,MAAM,kCAAkCA,IAAAA,EAAE,OAAO;CAC/C,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CAC1E,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrF,MAAMA,IAAAA,EAAE,OAAO,CAA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