@keystrokehq/payhere 0.1.0 → 0.1.3

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 (113) 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 +10 -10
  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 +10 -10
  10. package/dist/actions/create-hook.mjs.map +1 -1
  11. package/dist/actions/create-plan.cjs +2 -2
  12. package/dist/actions/create-plan.cjs.map +1 -1
  13. package/dist/actions/create-plan.d.cts +80 -3
  14. package/dist/actions/create-plan.d.cts.map +1 -1
  15. package/dist/actions/create-plan.d.mts +80 -3
  16. package/dist/actions/create-plan.d.mts.map +1 -1
  17. package/dist/actions/create-plan.mjs +2 -2
  18. package/dist/actions/create-plan.mjs.map +1 -1
  19. package/dist/actions/delete-hook.cjs +3 -3
  20. package/dist/actions/delete-hook.cjs.map +1 -1
  21. package/dist/actions/delete-hook.d.cts +10 -3
  22. package/dist/actions/delete-hook.d.cts.map +1 -1
  23. package/dist/actions/delete-hook.d.mts +10 -3
  24. package/dist/actions/delete-hook.d.mts.map +1 -1
  25. package/dist/actions/delete-hook.mjs +3 -3
  26. package/dist/actions/delete-hook.mjs.map +1 -1
  27. package/dist/actions/get-current-company-stats.cjs +7 -7
  28. package/dist/actions/get-current-company-stats.cjs.map +1 -1
  29. package/dist/actions/get-current-company-stats.d.cts +10 -3
  30. package/dist/actions/get-current-company-stats.d.cts.map +1 -1
  31. package/dist/actions/get-current-company-stats.d.mts +10 -3
  32. package/dist/actions/get-current-company-stats.d.mts.map +1 -1
  33. package/dist/actions/get-current-company-stats.mjs +7 -7
  34. package/dist/actions/get-current-company-stats.mjs.map +1 -1
  35. package/dist/actions/get-current-company.cjs +2 -2
  36. package/dist/actions/get-current-company.cjs.map +1 -1
  37. package/dist/actions/get-current-company.d.cts +26 -3
  38. package/dist/actions/get-current-company.d.cts.map +1 -1
  39. package/dist/actions/get-current-company.d.mts +26 -3
  40. package/dist/actions/get-current-company.d.mts.map +1 -1
  41. package/dist/actions/get-current-company.mjs +2 -2
  42. package/dist/actions/get-current-company.mjs.map +1 -1
  43. package/dist/actions/get-user.cjs +7 -7
  44. package/dist/actions/get-user.cjs.map +1 -1
  45. package/dist/actions/get-user.d.cts +10 -3
  46. package/dist/actions/get-user.d.cts.map +1 -1
  47. package/dist/actions/get-user.d.mts +10 -3
  48. package/dist/actions/get-user.d.mts.map +1 -1
  49. package/dist/actions/get-user.mjs +7 -7
  50. package/dist/actions/get-user.mjs.map +1 -1
  51. package/dist/actions/list-customers.cjs +13 -13
  52. package/dist/actions/list-customers.cjs.map +1 -1
  53. package/dist/actions/list-customers.d.cts +27 -3
  54. package/dist/actions/list-customers.d.cts.map +1 -1
  55. package/dist/actions/list-customers.d.mts +27 -3
  56. package/dist/actions/list-customers.d.mts.map +1 -1
  57. package/dist/actions/list-customers.mjs +13 -13
  58. package/dist/actions/list-customers.mjs.map +1 -1
  59. package/dist/actions/list-hooks.cjs +10 -10
  60. package/dist/actions/list-hooks.cjs.map +1 -1
  61. package/dist/actions/list-hooks.d.cts +14 -3
  62. package/dist/actions/list-hooks.d.cts.map +1 -1
  63. package/dist/actions/list-hooks.d.mts +14 -3
  64. package/dist/actions/list-hooks.d.mts.map +1 -1
  65. package/dist/actions/list-hooks.mjs +10 -10
  66. package/dist/actions/list-hooks.mjs.map +1 -1
  67. package/dist/actions/list-payments.cjs +23 -23
  68. package/dist/actions/list-payments.cjs.map +1 -1
  69. package/dist/actions/list-payments.d.cts +36 -3
  70. package/dist/actions/list-payments.d.cts.map +1 -1
  71. package/dist/actions/list-payments.d.mts +36 -3
  72. package/dist/actions/list-payments.d.mts.map +1 -1
  73. package/dist/actions/list-payments.mjs +23 -23
  74. package/dist/actions/list-payments.mjs.map +1 -1
  75. package/dist/actions/list-plans.cjs +22 -22
  76. package/dist/actions/list-plans.cjs.map +1 -1
  77. package/dist/actions/list-plans.d.cts +48 -3
  78. package/dist/actions/list-plans.d.cts.map +1 -1
  79. package/dist/actions/list-plans.d.mts +48 -3
  80. package/dist/actions/list-plans.d.mts.map +1 -1
  81. package/dist/actions/list-plans.mjs +22 -22
  82. package/dist/actions/list-plans.mjs.map +1 -1
  83. package/dist/actions/list-subscriptions.cjs +20 -20
  84. package/dist/actions/list-subscriptions.cjs.map +1 -1
  85. package/dist/actions/list-subscriptions.d.cts +44 -3
  86. package/dist/actions/list-subscriptions.d.cts.map +1 -1
  87. package/dist/actions/list-subscriptions.d.mts +44 -3
  88. package/dist/actions/list-subscriptions.d.mts.map +1 -1
  89. package/dist/actions/list-subscriptions.mjs +20 -20
  90. package/dist/actions/list-subscriptions.mjs.map +1 -1
  91. package/dist/actions/update-current-company.cjs +2 -2
  92. package/dist/actions/update-current-company.cjs.map +1 -1
  93. package/dist/actions/update-current-company.d.cts +52 -3
  94. package/dist/actions/update-current-company.d.cts.map +1 -1
  95. package/dist/actions/update-current-company.d.mts +52 -3
  96. package/dist/actions/update-current-company.d.mts.map +1 -1
  97. package/dist/actions/update-current-company.mjs +2 -2
  98. package/dist/actions/update-current-company.mjs.map +1 -1
  99. package/dist/actions/update-plan.cjs +1 -1
  100. package/dist/actions/update-plan.cjs.map +1 -1
  101. package/dist/actions/update-plan.d.cts +54 -3
  102. package/dist/actions/update-plan.d.cts.map +1 -1
  103. package/dist/actions/update-plan.d.mts +54 -3
  104. package/dist/actions/update-plan.d.mts.map +1 -1
  105. package/dist/actions/update-plan.mjs +1 -1
  106. package/dist/actions/update-plan.mjs.map +1 -1
  107. package/dist/catalog.cjs +14 -1
  108. package/dist/catalog.cjs.map +1 -1
  109. package/dist/catalog.d.cts +13 -0
  110. package/dist/catalog.d.mts +13 -0
  111. package/dist/catalog.mjs +14 -1
  112. package/dist/catalog.mjs.map +1 -1
  113. package/package.json +2 -2
@@ -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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esContent":["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}).passthrough().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}).passthrough().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}).passthrough().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,OA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,uCAAuC;AAMjE,MAAa,sBAAsB,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAVuC,EAAE,OAAO;EAChD,MAAM,EAAE,MAAM,qCAAqC,CAAC,CAAC,SAAS,sEAAsE;EACpI,MAAM,yCAAyC,SAAS;CAC1D,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+DAOhB;AACV,CAAC"}
@@ -6,47 +6,47 @@ const PayhereListPlansInput = 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
- 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."),
29
+ custom_fields: zod.z.array(zod.z.record(zod.z.string(), zod.z.unknown())).describe("Custom form fields.").nullable().optional(),
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
- }).describe("Represents a single plan object in the response.");
38
+ }).passthrough().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.")
45
- }).describe("Pagination metadata for the response.");
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
+ }).passthrough().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."),
48
48
  meta: PayhereListPlans_PaginationMetaSchema.nullable()
49
- }).describe("Response model for listing plans.");
49
+ }).passthrough().describe("Response model for listing plans.");
50
50
  const payhereListPlans = require_action.action("PAYHERE_LIST_PLANS", {
51
51
  slug: "payhere-list-plans",
52
52
  name: "List Plans",
@@ -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,IAAI,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;AAC3G,CAAC,CAAC,CAAC,SAAS,0DAA0D;AACtE,MAAM,kCAAgDA,IAAAA,EAAE,OAAO;CAC7D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iCAAiC;CAC/D,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB;CAC7C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B;CACzD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,YAAY;CACtC,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B;CACrD,QAAQA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,8CAA8C;CAC3E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AC,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.record(z.string(), z.unknown())).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}).passthrough().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}).passthrough().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}).passthrough().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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AC,IAAI,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;AAC3E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uCAAuC;AACjE,MAAa,yBAAyBA,IAAAA,EAAE,OAAO;CAC7C,MAAMA,IAAAA,EAAE,MAAM,+BAA+B,CAAC,CAAC,SAAS,6BAA6B;CACrF,MAAM,sCAAsC,SAAS;AACvD,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mCAAmC;AAE7D,MAAa,mBAAmBC,eAAAA,OAAO,sBAAsB;CAC3D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,54 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/list-plans.d.ts
4
- declare const PayhereListPlansInput: z.ZodTypeAny;
5
- declare const PayhereListPlansOutput: z.ZodTypeAny;
6
- declare const payhereListPlans: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const PayhereListPlansInput: z.ZodObject<{
5
+ page: z.ZodOptional<z.ZodNumber>;
6
+ per_page: z.ZodOptional<z.ZodNumber>;
7
+ }, z.core.$strip>;
8
+ declare const PayhereListPlansOutput: z.ZodObject<{
9
+ data: z.ZodArray<z.ZodObject<{
10
+ id: z.ZodNullable<z.ZodNumber>;
11
+ qty: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
12
+ name: z.ZodNullable<z.ZodString>;
13
+ slug: z.ZodNullable<z.ZodString>;
14
+ type: z.ZodNullable<z.ZodString>;
15
+ price: z.ZodNullable<z.ZodNumber>;
16
+ hidden: z.ZodNullable<z.ZodBoolean>;
17
+ currency: z.ZodNullable<z.ZodString>;
18
+ show_qty: z.ZodNullable<z.ZodBoolean>;
19
+ setup_fee: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
20
+ created_at: z.ZodNullable<z.ZodString>;
21
+ updated_at: z.ZodNullable<z.ZodString>;
22
+ billing_day: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
23
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
24
+ limited_qty: z.ZodNullable<z.ZodBoolean>;
25
+ success_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
26
+ webhook_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
27
+ cancel_after: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
28
+ payment_type: z.ZodNullable<z.ZodString>;
29
+ receipt_text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
30
+ custom_fields: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
31
+ has_setup_fee: z.ZodNullable<z.ZodBoolean>;
32
+ price_in_cents: z.ZodNullable<z.ZodNumber>;
33
+ pay_button_text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
34
+ billing_interval: z.ZodOptional<z.ZodNullable<z.ZodString>>;
35
+ trial_period_days: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
36
+ min_billing_cycles: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
37
+ user_selects_amount: z.ZodNullable<z.ZodBoolean>;
38
+ billing_interval_count: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
39
+ }, z.core.$loose>>;
40
+ meta: z.ZodNullable<z.ZodObject<{
41
+ next_page: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
42
+ prev_page: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
43
+ total_count: z.ZodNullable<z.ZodNumber>;
44
+ total_pages: z.ZodNullable<z.ZodNumber>;
45
+ current_page: z.ZodNullable<z.ZodNumber>;
46
+ }, z.core.$loose>>;
47
+ }, z.core.$loose>;
48
+ declare const payhereListPlans: import("@keystrokehq/action").WorkflowActionDefinition<{
49
+ page?: number | undefined;
50
+ per_page?: number | undefined;
51
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
52
  //#endregion
8
53
  export { payhereListPlans };
9
54
  //# sourceMappingURL=list-plans.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-plans.d.cts","names":[],"sources":["../../src/actions/list-plans.ts"],"mappings":";;;cAIa,qBAAA,EAAuB,CAAA,CAAE,UAGiC;AAAA,cAuC1D,sBAAA,EAAwB,CAAA,CAAE,UAGS;AAAA,cAEnC,gBAAA,gCAAgB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"list-plans.d.cts","names":[],"sources":["../../src/actions/list-plans.ts"],"mappings":";;;cAIa,qBAAA,EAAqB,CAAA,CAAA,SAAA;;;;cA0CrB,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAKtB,gBAAA,gCAAgB,wBAAA"}
@@ -1,9 +1,54 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/list-plans.d.ts
4
- declare const PayhereListPlansInput: z.ZodTypeAny;
5
- declare const PayhereListPlansOutput: z.ZodTypeAny;
6
- declare const payhereListPlans: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const PayhereListPlansInput: z.ZodObject<{
5
+ page: z.ZodOptional<z.ZodNumber>;
6
+ per_page: z.ZodOptional<z.ZodNumber>;
7
+ }, z.core.$strip>;
8
+ declare const PayhereListPlansOutput: z.ZodObject<{
9
+ data: z.ZodArray<z.ZodObject<{
10
+ id: z.ZodNullable<z.ZodNumber>;
11
+ qty: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
12
+ name: z.ZodNullable<z.ZodString>;
13
+ slug: z.ZodNullable<z.ZodString>;
14
+ type: z.ZodNullable<z.ZodString>;
15
+ price: z.ZodNullable<z.ZodNumber>;
16
+ hidden: z.ZodNullable<z.ZodBoolean>;
17
+ currency: z.ZodNullable<z.ZodString>;
18
+ show_qty: z.ZodNullable<z.ZodBoolean>;
19
+ setup_fee: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
20
+ created_at: z.ZodNullable<z.ZodString>;
21
+ updated_at: z.ZodNullable<z.ZodString>;
22
+ billing_day: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
23
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
24
+ limited_qty: z.ZodNullable<z.ZodBoolean>;
25
+ success_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
26
+ webhook_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
27
+ cancel_after: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
28
+ payment_type: z.ZodNullable<z.ZodString>;
29
+ receipt_text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
30
+ custom_fields: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
31
+ has_setup_fee: z.ZodNullable<z.ZodBoolean>;
32
+ price_in_cents: z.ZodNullable<z.ZodNumber>;
33
+ pay_button_text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
34
+ billing_interval: z.ZodOptional<z.ZodNullable<z.ZodString>>;
35
+ trial_period_days: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
36
+ min_billing_cycles: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
37
+ user_selects_amount: z.ZodNullable<z.ZodBoolean>;
38
+ billing_interval_count: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
39
+ }, z.core.$loose>>;
40
+ meta: z.ZodNullable<z.ZodObject<{
41
+ next_page: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
42
+ prev_page: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
43
+ total_count: z.ZodNullable<z.ZodNumber>;
44
+ total_pages: z.ZodNullable<z.ZodNumber>;
45
+ current_page: z.ZodNullable<z.ZodNumber>;
46
+ }, z.core.$loose>>;
47
+ }, z.core.$loose>;
48
+ declare const payhereListPlans: import("@keystrokehq/action").WorkflowActionDefinition<{
49
+ page?: number | undefined;
50
+ per_page?: number | undefined;
51
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
52
  //#endregion
8
53
  export { payhereListPlans };
9
54
  //# sourceMappingURL=list-plans.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-plans.d.mts","names":[],"sources":["../../src/actions/list-plans.ts"],"mappings":";;;cAIa,qBAAA,EAAuB,CAAA,CAAE,UAGiC;AAAA,cAuC1D,sBAAA,EAAwB,CAAA,CAAE,UAGS;AAAA,cAEnC,gBAAA,gCAAgB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"list-plans.d.mts","names":[],"sources":["../../src/actions/list-plans.ts"],"mappings":";;;cAIa,qBAAA,EAAqB,CAAA,CAAA,SAAA;;;;cA0CrB,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAKtB,gBAAA,gCAAgB,wBAAA"}
@@ -6,43 +6,43 @@ const PayhereListPlansInput = z.object({
6
6
  per_page: 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 = z.object({
9
- id: z.number().int().describe("Unique identifier for the plan."),
9
+ id: z.number().int().describe("Unique identifier for the plan.").nullable(),
10
10
  qty: z.number().int().describe("Available quantity if limited.").nullable().optional(),
11
- name: z.string().describe("Name of the plan."),
12
- slug: z.string().describe("URL-friendly plan identifier."),
13
- type: z.string().describe("Plan type."),
14
- price: z.number().describe("Price in decimal format."),
15
- hidden: z.boolean().describe("Whether the plan is hidden from public view."),
16
- currency: z.string().describe("Currency code (e.g., USD, EUR)."),
17
- show_qty: z.boolean().describe("Display quantity selector."),
11
+ name: z.string().describe("Name of the plan.").nullable(),
12
+ slug: z.string().describe("URL-friendly plan identifier.").nullable(),
13
+ type: z.string().describe("Plan type.").nullable(),
14
+ price: z.number().describe("Price in decimal format.").nullable(),
15
+ hidden: z.boolean().describe("Whether the plan is hidden from public view.").nullable(),
16
+ currency: z.string().describe("Currency code (e.g., USD, EUR).").nullable(),
17
+ show_qty: z.boolean().describe("Display quantity selector.").nullable(),
18
18
  setup_fee: z.number().describe("One-time setup fee.").nullable().optional(),
19
- created_at: z.string().describe("ISO 8601 timestamp of creation."),
20
- updated_at: z.string().describe("ISO 8601 timestamp of last update."),
19
+ created_at: z.string().describe("ISO 8601 timestamp of creation.").nullable(),
20
+ updated_at: z.string().describe("ISO 8601 timestamp of last update.").nullable(),
21
21
  billing_day: z.number().int().describe("Day of month for billing.").nullable().optional(),
22
22
  description: z.string().describe("Description of the plan.").nullable().optional(),
23
- limited_qty: z.boolean().describe("Whether plan has limited quantity."),
23
+ limited_qty: z.boolean().describe("Whether plan has limited quantity.").nullable(),
24
24
  success_url: z.string().describe("Redirect URL after successful payment.").nullable().optional(),
25
25
  webhook_url: z.string().describe("Webhook URL for notifications.").nullable().optional(),
26
26
  cancel_after: z.number().int().describe("Auto-cancel subscription after N cycles.").nullable().optional(),
27
- payment_type: z.string().describe("Type of payment (one-time or recurring)."),
27
+ payment_type: z.string().describe("Type of payment (one-time or recurring).").nullable(),
28
28
  receipt_text: z.string().describe("Custom receipt text.").nullable().optional(),
29
- custom_fields: z.array(z.object({})).describe("Custom form fields.").nullable().optional(),
30
- has_setup_fee: z.boolean().describe("Whether setup fee is enabled."),
31
- price_in_cents: z.number().int().describe("Price in cents."),
29
+ custom_fields: z.array(z.record(z.string(), z.unknown())).describe("Custom form fields.").nullable().optional(),
30
+ has_setup_fee: z.boolean().describe("Whether setup fee is enabled.").nullable(),
31
+ price_in_cents: z.number().int().describe("Price in cents.").nullable(),
32
32
  pay_button_text: z.string().describe("Custom text for payment button.").nullable().optional(),
33
33
  billing_interval: z.string().describe("Billing cycle interval (day, week, month, year).").nullable().optional(),
34
34
  trial_period_days: z.number().int().describe("Number of trial days.").nullable().optional(),
35
35
  min_billing_cycles: z.number().int().describe("Minimum number of billing cycles.").nullable().optional(),
36
- user_selects_amount: z.boolean().describe("Allow user to select amount."),
36
+ user_selects_amount: z.boolean().describe("Allow user to select amount.").nullable(),
37
37
  billing_interval_count: z.number().int().describe("Number of intervals between billings.").nullable().optional()
38
- }).describe("Represents a single plan object in the response.");
38
+ }).passthrough().describe("Represents a single plan object in the response.");
39
39
  const PayhereListPlans_PaginationMetaSchema = z.object({
40
40
  next_page: z.number().int().describe("Next page number or null if last page.").nullable().optional(),
41
41
  prev_page: z.number().int().describe("Previous page number or null if first page.").nullable().optional(),
42
- total_count: z.number().int().describe("Total number of plans."),
43
- total_pages: z.number().int().describe("Total number of pages."),
44
- current_page: z.number().int().describe("Current page number.")
45
- }).describe("Pagination metadata for the response.");
42
+ total_count: z.number().int().describe("Total number of plans.").nullable(),
43
+ total_pages: z.number().int().describe("Total number of pages.").nullable(),
44
+ current_page: z.number().int().describe("Current page number.").nullable()
45
+ }).passthrough().describe("Pagination metadata for the response.");
46
46
  const payhereListPlans = action("PAYHERE_LIST_PLANS", {
47
47
  slug: "payhere-list-plans",
48
48
  name: "List Plans",
@@ -51,7 +51,7 @@ const payhereListPlans = action("PAYHERE_LIST_PLANS", {
51
51
  output: z.object({
52
52
  data: z.array(PayhereListPlans_PlanItemSchema).describe("Collection of plan objects."),
53
53
  meta: PayhereListPlans_PaginationMetaSchema.nullable()
54
- }).describe("Response model for listing plans.")
54
+ }).passthrough().describe("Response model for listing plans.")
55
55
  });
56
56
  //#endregion
57
57
  export { payhereListPlans };
@@ -1 +1 @@
1
- {"version":3,"file":"list-plans.mjs","names":[],"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,wBAAsC,EAAE,OAAO;CAC1D,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CACtF,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;AAC3G,CAAC,CAAC,CAAC,SAAS,0DAA0D;AACtE,MAAM,kCAAgD,EAAE,OAAO;CAC7D,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iCAAiC;CAC/D,KAAK,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,S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AAS,wBAAwB;CAC/D,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sBAAsB;AAChE,CAAC,CAAC,CAAC,SAAS,uCAAuC;AAMnD,MAAa,mBAAmB,OAAO,sBAAsB;CAC3D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAVkD,EAAE,OAAO;EAC3D,MAAM,EAAE,MAAM,+BAA+B,CAAC,CAAC,SAAS,6BAA6B;EACrF,MAAM,sCAAsC,SAAS;CACvD,CAAC,CAAC,CAAC,SAAS,mCAOF;AACV,CAAC"}
1
+ {"version":3,"file":"list-plans.mjs","names":[],"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.record(z.string(), z.unknown())).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}).passthrough().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}).passthrough().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}).passthrough().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,wBAAwB,EAAE,OAAO;CAC5C,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CACtF,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;AAC3G,CAAC,CAAC,CAAC,SAAS,0DAA0D;AACtE,MAAM,kCAAkC,EAAE,OAAO;CAC/C,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CAC1E,KAAK,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS;CACxD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CACpE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,YAAY,CAAC,CAAC,SAAS;CACjD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;CAChE,QAAQ,EAAE,QAAQ,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CACtF,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CAC1E,UAAU,EAAE,QAAQ,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CACtE,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1E,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CAC5E,YAAY,EAAE,OAAO,CAA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,CAAC,SAAS,mCAOhB;AACV,CAAC"}
@@ -6,45 +6,45 @@ const PayhereListSubscriptionsInput = zod.z.object({
6
6
  per_page: zod.z.number().int().describe("Number of records returned per page. Defaults to 20 if not specified. Maximum value is 100.").optional()
7
7
  });
8
8
  const PayhereListSubscriptions_MembershipPlanSchema = zod.z.object({
9
- id: zod.z.number().int().describe("Membership plan identifier"),
9
+ id: zod.z.number().int().describe("Membership plan identifier").nullable(),
10
10
  name: zod.z.string().describe("Membership plan name").nullable().optional(),
11
11
  description: zod.z.string().describe("Plan description").nullable().optional()
12
- });
12
+ }).passthrough();
13
13
  const PayhereListSubscriptions_CustomerSchema = zod.z.object({
14
- id: zod.z.number().int().describe("Customer identifier"),
14
+ id: zod.z.number().int().describe("Customer identifier").nullable(),
15
15
  name: zod.z.string().describe("Customer name").nullable().optional(),
16
16
  email: zod.z.string().describe("Customer email address").nullable().optional()
17
- });
17
+ }).passthrough();
18
18
  const PayhereListSubscriptions_SubscriptionSchema = zod.z.object({
19
- id: zod.z.number().int().describe("Subscription identifier"),
19
+ id: zod.z.number().int().describe("Subscription identifier").nullable(),
20
20
  plan: PayhereListSubscriptions_MembershipPlanSchema.nullable().optional(),
21
- status: zod.z.string().describe("Current state (e.g., 'active', 'canceled')"),
21
+ status: zod.z.string().describe("Current state (e.g., 'active', 'canceled')").nullable(),
22
22
  customer: PayhereListSubscriptions_CustomerSchema.nullable().optional(),
23
- metadata: zod.z.object({}).describe("Custom key-value data").nullable().optional(),
24
- provider: zod.z.string().describe("Payment processor name"),
25
- created_at: zod.z.string().describe("Record creation timestamp in ISO 8601 format"),
26
- updated_at: zod.z.string().describe("Last modification timestamp in ISO 8601 format"),
27
- customer_id: zod.z.number().int().describe("Associated customer ID"),
23
+ metadata: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Custom key-value data").nullable().optional(),
24
+ provider: zod.z.string().describe("Payment processor name").nullable(),
25
+ created_at: zod.z.string().describe("Record creation timestamp in ISO 8601 format").nullable(),
26
+ updated_at: zod.z.string().describe("Last modification timestamp in ISO 8601 format").nullable(),
27
+ customer_id: zod.z.number().int().describe("Associated customer ID").nullable(),
28
28
  last_charged: zod.z.string().describe("Most recent charge timestamp in ISO 8601 format").nullable().optional(),
29
29
  next_charge_at: zod.z.string().describe("Scheduled next billing date in ISO 8601 format").nullable().optional(),
30
30
  stripe_plan_id: zod.z.string().describe("External Stripe plan reference").nullable().optional(),
31
- billing_interval: zod.z.string().describe("Frequency unit (e.g., 'month', 'year')"),
32
- membership_plan_id: zod.z.number().int().describe("Associated plan ID"),
31
+ billing_interval: zod.z.string().describe("Frequency unit (e.g., 'month', 'year')").nullable(),
32
+ membership_plan_id: zod.z.number().int().describe("Associated plan ID").nullable(),
33
33
  min_billing_cycles: zod.z.number().int().describe("Minimum billing periods").nullable().optional(),
34
- billing_interval_count: zod.z.number().int().describe("Number of intervals between charges"),
34
+ billing_interval_count: zod.z.number().int().describe("Number of intervals between charges").nullable(),
35
35
  stripe_subscription_id: zod.z.string().describe("External Stripe subscription reference").nullable().optional()
36
- });
36
+ }).passthrough();
37
37
  const PayhereListSubscriptions_PaginationMetaSchema = zod.z.object({
38
38
  next_page: zod.z.number().int().describe("Following page or null").nullable().optional(),
39
39
  prev_page: zod.z.number().int().describe("Previous page or null").nullable().optional(),
40
- total_count: zod.z.number().int().describe("Total subscription count"),
41
- total_pages: zod.z.number().int().describe("Total available pages"),
42
- current_page: zod.z.number().int().describe("Active page number")
43
- });
40
+ total_count: zod.z.number().int().describe("Total subscription count").nullable(),
41
+ total_pages: zod.z.number().int().describe("Total available pages").nullable(),
42
+ current_page: zod.z.number().int().describe("Active page number").nullable()
43
+ }).passthrough();
44
44
  const PayhereListSubscriptionsOutput = zod.z.object({
45
45
  data: zod.z.array(PayhereListSubscriptions_SubscriptionSchema).describe("Collection of subscription objects"),
46
46
  meta: PayhereListSubscriptions_PaginationMetaSchema.nullable()
47
- });
47
+ }).passthrough();
48
48
  const payhereListSubscriptions = require_action.action("PAYHERE_LIST_SUBSCRIPTIONS", {
49
49
  slug: "payhere-list-subscriptions",
50
50
  name: "List subscriptions",
@@ -1 +1 @@
1
- {"version":3,"file":"list-subscriptions.cjs","names":["z","action"],"sources":["../../src/actions/list-subscriptions.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PayhereListSubscriptionsInput: z.ZodTypeAny = z.object({\n page: z.number().int().describe(\"Page number for pagination. Defaults to 1 if not specified.\").optional(),\n per_page: z.number().int().describe(\"Number of records returned per page. Defaults to 20 if not specified. Maximum value is 100.\").optional(),\n});\nconst PayhereListSubscriptions_MembershipPlanSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Membership plan identifier\"),\n name: z.string().describe(\"Membership plan name\").nullable().optional(),\n description: z.string().describe(\"Plan description\").nullable().optional(),\n});\nconst PayhereListSubscriptions_CustomerSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Customer identifier\"),\n name: z.string().describe(\"Customer name\").nullable().optional(),\n email: z.string().describe(\"Customer email address\").nullable().optional(),\n});\nconst PayhereListSubscriptions_SubscriptionSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Subscription identifier\"),\n plan: PayhereListSubscriptions_MembershipPlanSchema.nullable().optional(),\n status: z.string().describe(\"Current state (e.g., 'active', 'canceled')\"),\n customer: PayhereListSubscriptions_CustomerSchema.nullable().optional(),\n metadata: z.object({}).describe(\"Custom key-value data\").nullable().optional(),\n provider: z.string().describe(\"Payment processor name\"),\n created_at: z.string().describe(\"Record creation timestamp in ISO 8601 format\"),\n updated_at: z.string().describe(\"Last modification timestamp in ISO 8601 format\"),\n customer_id: z.number().int().describe(\"Associated customer ID\"),\n last_charged: z.string().describe(\"Most recent charge timestamp in ISO 8601 format\").nullable().optional(),\n next_charge_at: z.string().describe(\"Scheduled next billing date in ISO 8601 format\").nullable().optional(),\n stripe_plan_id: z.string().describe(\"External Stripe plan reference\").nullable().optional(),\n billing_interval: z.string().describe(\"Frequency unit (e.g., 'month', 'year')\"),\n membership_plan_id: z.number().int().describe(\"Associated plan ID\"),\n min_billing_cycles: z.number().int().describe(\"Minimum billing periods\").nullable().optional(),\n billing_interval_count: z.number().int().describe(\"Number of intervals between charges\"),\n stripe_subscription_id: z.string().describe(\"External Stripe subscription reference\").nullable().optional(),\n});\nconst PayhereListSubscriptions_PaginationMetaSchema: z.ZodTypeAny = z.object({\n next_page: z.number().int().describe(\"Following page or null\").nullable().optional(),\n prev_page: z.number().int().describe(\"Previous page or null\").nullable().optional(),\n total_count: z.number().int().describe(\"Total subscription count\"),\n total_pages: z.number().int().describe(\"Total available pages\"),\n current_page: z.number().int().describe(\"Active page number\"),\n});\nexport const PayhereListSubscriptionsOutput: z.ZodTypeAny = z.object({\n data: z.array(PayhereListSubscriptions_SubscriptionSchema).describe(\"Collection of subscription objects\"),\n meta: PayhereListSubscriptions_PaginationMetaSchema.nullable(),\n});\n\nexport const payhereListSubscriptions = action(\"PAYHERE_LIST_SUBSCRIPTIONS\", {\n slug: \"payhere-list-subscriptions\",\n name: \"List subscriptions\",\n description: \"Tool to list all subscriptions ordered chronologically by most recent payment first. Use when you need to retrieve subscription data with customer and plan details.\",\n input: PayhereListSubscriptionsInput,\n output: PayhereListSubscriptionsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAA8CA,IAAAA,EAAE,OAAO;CAClE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS;CACxG,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6FAA6F,CAAC,CAAC,SAAS;AAC9I,CAAC;AACD,MAAM,gDAA8DA,IAAAA,EAAE,OAAO;CAC3E,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4BAA4B;CAC1D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,S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S;AAC/D,CAAC;AAED,MAAa,2BAA2BC,eAAAA,OAAO,8BAA8B;CAC3E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"list-subscriptions.cjs","names":["z","action"],"sources":["../../src/actions/list-subscriptions.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PayhereListSubscriptionsInput = z.object({\n page: z.number().int().describe(\"Page number for pagination. Defaults to 1 if not specified.\").optional(),\n per_page: z.number().int().describe(\"Number of records returned per page. Defaults to 20 if not specified. Maximum value is 100.\").optional(),\n});\nconst PayhereListSubscriptions_MembershipPlanSchema = z.object({\n id: z.number().int().describe(\"Membership plan identifier\").nullable(),\n name: z.string().describe(\"Membership plan name\").nullable().optional(),\n description: z.string().describe(\"Plan description\").nullable().optional(),\n}).passthrough();\nconst PayhereListSubscriptions_CustomerSchema = z.object({\n id: z.number().int().describe(\"Customer identifier\").nullable(),\n name: z.string().describe(\"Customer name\").nullable().optional(),\n email: z.string().describe(\"Customer email address\").nullable().optional(),\n}).passthrough();\nconst PayhereListSubscriptions_SubscriptionSchema = z.object({\n id: z.number().int().describe(\"Subscription identifier\").nullable(),\n plan: PayhereListSubscriptions_MembershipPlanSchema.nullable().optional(),\n status: z.string().describe(\"Current state (e.g., 'active', 'canceled')\").nullable(),\n customer: PayhereListSubscriptions_CustomerSchema.nullable().optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Custom key-value data\").nullable().optional(),\n provider: z.string().describe(\"Payment processor name\").nullable(),\n created_at: z.string().describe(\"Record creation timestamp in ISO 8601 format\").nullable(),\n updated_at: z.string().describe(\"Last modification timestamp in ISO 8601 format\").nullable(),\n customer_id: z.number().int().describe(\"Associated customer ID\").nullable(),\n last_charged: z.string().describe(\"Most recent charge timestamp in ISO 8601 format\").nullable().optional(),\n next_charge_at: z.string().describe(\"Scheduled next billing date in ISO 8601 format\").nullable().optional(),\n stripe_plan_id: z.string().describe(\"External Stripe plan reference\").nullable().optional(),\n billing_interval: z.string().describe(\"Frequency unit (e.g., 'month', 'year')\").nullable(),\n membership_plan_id: z.number().int().describe(\"Associated plan ID\").nullable(),\n min_billing_cycles: z.number().int().describe(\"Minimum billing periods\").nullable().optional(),\n billing_interval_count: z.number().int().describe(\"Number of intervals between charges\").nullable(),\n stripe_subscription_id: z.string().describe(\"External Stripe subscription reference\").nullable().optional(),\n}).passthrough();\nconst PayhereListSubscriptions_PaginationMetaSchema = z.object({\n next_page: z.number().int().describe(\"Following page or null\").nullable().optional(),\n prev_page: z.number().int().describe(\"Previous page or null\").nullable().optional(),\n total_count: z.number().int().describe(\"Total subscription count\").nullable(),\n total_pages: z.number().int().describe(\"Total available pages\").nullable(),\n current_page: z.number().int().describe(\"Active page number\").nullable(),\n}).passthrough();\nexport const PayhereListSubscriptionsOutput = z.object({\n data: z.array(PayhereListSubscriptions_SubscriptionSchema).describe(\"Collection of subscription objects\"),\n meta: PayhereListSubscriptions_PaginationMetaSchema.nullable(),\n}).passthrough();\n\nexport const payhereListSubscriptions = action(\"PAYHERE_LIST_SUBSCRIPTIONS\", {\n slug: \"payhere-list-subscriptions\",\n name: \"List subscriptions\",\n description: \"Tool to list all subscriptions ordered chronologically by most recent payment first. Use when you need to retrieve subscription data with customer and plan details.\",\n input: PayhereListSubscriptionsInput,\n output: PayhereListSubscriptionsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAAgCA,IAAAA,EAAE,OAAO;CACpD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS;CACxG,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6FAA6F,CAAC,CAAC,SAAS;AAC9I,CAAC;AACD,MAAM,gDAAgDA,IAAAA,EAAE,OAAO;CAC7D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS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;CAClF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;CAC5E,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;CACzE,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS;AACzE,CAAC,CAAC,CAAC,YAAY;AACf,MAAa,iCAAiCA,IAAAA,EAAE,OAAO;CACrD,MAAMA,IAAAA,EAAE,MAAM,2CAA2C,CAAC,CAAC,SAAS,oCAAoC;CACxG,MAAM,8CAA8C,SAAS;AAC/D,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,2BAA2BC,eAAAA,OAAO,8BAA8B;CAC3E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,50 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/list-subscriptions.d.ts
4
- declare const PayhereListSubscriptionsInput: z.ZodTypeAny;
5
- declare const PayhereListSubscriptionsOutput: z.ZodTypeAny;
6
- declare const payhereListSubscriptions: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const PayhereListSubscriptionsInput: z.ZodObject<{
5
+ page: z.ZodOptional<z.ZodNumber>;
6
+ per_page: z.ZodOptional<z.ZodNumber>;
7
+ }, z.core.$strip>;
8
+ declare const PayhereListSubscriptionsOutput: z.ZodObject<{
9
+ data: z.ZodArray<z.ZodObject<{
10
+ id: z.ZodNullable<z.ZodNumber>;
11
+ plan: z.ZodOptional<z.ZodNullable<z.ZodObject<{
12
+ id: z.ZodNullable<z.ZodNumber>;
13
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15
+ }, z.core.$loose>>>;
16
+ status: z.ZodNullable<z.ZodString>;
17
+ customer: z.ZodOptional<z.ZodNullable<z.ZodObject<{
18
+ id: z.ZodNullable<z.ZodNumber>;
19
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20
+ email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
21
+ }, z.core.$loose>>>;
22
+ metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
23
+ provider: z.ZodNullable<z.ZodString>;
24
+ created_at: z.ZodNullable<z.ZodString>;
25
+ updated_at: z.ZodNullable<z.ZodString>;
26
+ customer_id: z.ZodNullable<z.ZodNumber>;
27
+ last_charged: z.ZodOptional<z.ZodNullable<z.ZodString>>;
28
+ next_charge_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
29
+ stripe_plan_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
30
+ billing_interval: z.ZodNullable<z.ZodString>;
31
+ membership_plan_id: z.ZodNullable<z.ZodNumber>;
32
+ min_billing_cycles: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
33
+ billing_interval_count: z.ZodNullable<z.ZodNumber>;
34
+ stripe_subscription_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
35
+ }, z.core.$loose>>;
36
+ meta: z.ZodNullable<z.ZodObject<{
37
+ next_page: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
38
+ prev_page: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
39
+ total_count: z.ZodNullable<z.ZodNumber>;
40
+ total_pages: z.ZodNullable<z.ZodNumber>;
41
+ current_page: z.ZodNullable<z.ZodNumber>;
42
+ }, z.core.$loose>>;
43
+ }, z.core.$loose>;
44
+ declare const payhereListSubscriptions: import("@keystrokehq/action").WorkflowActionDefinition<{
45
+ page?: number | undefined;
46
+ per_page?: number | undefined;
47
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
48
  //#endregion
8
49
  export { payhereListSubscriptions };
9
50
  //# sourceMappingURL=list-subscriptions.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-subscriptions.d.cts","names":[],"sources":["../../src/actions/list-subscriptions.ts"],"mappings":";;;cAIa,6BAAA,EAA+B,CAAA,CAAE,UAG5C;AAAA,cAqCW,8BAAA,EAAgC,CAAA,CAAE,UAG7C;AAAA,cAEW,wBAAA,gCAAwB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"list-subscriptions.d.cts","names":[],"sources":["../../src/actions/list-subscriptions.ts"],"mappings":";;;cAIa,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;cAwC7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAK9B,wBAAA,gCAAwB,wBAAA"}