@keystrokehq/payhere 0.1.5 → 0.1.6

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 (117) 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 +1 -0
  4. package/dist/actions/create-hook.cjs.map +1 -1
  5. package/dist/actions/create-hook.d.cts +3 -19
  6. package/dist/actions/create-hook.d.cts.map +1 -1
  7. package/dist/actions/create-hook.d.mts +3 -19
  8. package/dist/actions/create-hook.d.mts.map +1 -1
  9. package/dist/actions/create-hook.mjs +1 -0
  10. package/dist/actions/create-hook.mjs.map +1 -1
  11. package/dist/actions/create-plan.cjs +1 -0
  12. package/dist/actions/create-plan.cjs.map +1 -1
  13. package/dist/actions/create-plan.d.cts +3 -33
  14. package/dist/actions/create-plan.d.cts.map +1 -1
  15. package/dist/actions/create-plan.d.mts +3 -33
  16. package/dist/actions/create-plan.d.mts.map +1 -1
  17. package/dist/actions/create-plan.mjs +1 -0
  18. package/dist/actions/create-plan.mjs.map +1 -1
  19. package/dist/actions/delete-hook.cjs +1 -0
  20. package/dist/actions/delete-hook.cjs.map +1 -1
  21. package/dist/actions/delete-hook.d.cts +3 -17
  22. package/dist/actions/delete-hook.d.cts.map +1 -1
  23. package/dist/actions/delete-hook.d.mts +3 -17
  24. package/dist/actions/delete-hook.d.mts.map +1 -1
  25. package/dist/actions/delete-hook.mjs +1 -0
  26. package/dist/actions/delete-hook.mjs.map +1 -1
  27. package/dist/actions/get-current-company-stats.cjs +1 -0
  28. package/dist/actions/get-current-company-stats.cjs.map +1 -1
  29. package/dist/actions/get-current-company-stats.d.cts +3 -15
  30. package/dist/actions/get-current-company-stats.d.cts.map +1 -1
  31. package/dist/actions/get-current-company-stats.d.mts +3 -15
  32. package/dist/actions/get-current-company-stats.d.mts.map +1 -1
  33. package/dist/actions/get-current-company-stats.mjs +1 -0
  34. package/dist/actions/get-current-company-stats.mjs.map +1 -1
  35. package/dist/actions/get-current-company.cjs +1 -0
  36. package/dist/actions/get-current-company.cjs.map +1 -1
  37. package/dist/actions/get-current-company.d.cts +3 -15
  38. package/dist/actions/get-current-company.d.cts.map +1 -1
  39. package/dist/actions/get-current-company.d.mts +3 -15
  40. package/dist/actions/get-current-company.d.mts.map +1 -1
  41. package/dist/actions/get-current-company.mjs +1 -0
  42. package/dist/actions/get-current-company.mjs.map +1 -1
  43. package/dist/actions/get-user.cjs +1 -0
  44. package/dist/actions/get-user.cjs.map +1 -1
  45. package/dist/actions/get-user.d.cts +3 -15
  46. package/dist/actions/get-user.d.cts.map +1 -1
  47. package/dist/actions/get-user.d.mts +3 -15
  48. package/dist/actions/get-user.d.mts.map +1 -1
  49. package/dist/actions/get-user.mjs +1 -0
  50. package/dist/actions/get-user.mjs.map +1 -1
  51. package/dist/actions/list-customers.cjs +1 -0
  52. package/dist/actions/list-customers.cjs.map +1 -1
  53. package/dist/actions/list-customers.d.cts +3 -18
  54. package/dist/actions/list-customers.d.cts.map +1 -1
  55. package/dist/actions/list-customers.d.mts +3 -18
  56. package/dist/actions/list-customers.d.mts.map +1 -1
  57. package/dist/actions/list-customers.mjs +1 -0
  58. package/dist/actions/list-customers.mjs.map +1 -1
  59. package/dist/actions/list-hooks.cjs +1 -0
  60. package/dist/actions/list-hooks.cjs.map +1 -1
  61. package/dist/actions/list-hooks.d.cts +3 -15
  62. package/dist/actions/list-hooks.d.cts.map +1 -1
  63. package/dist/actions/list-hooks.d.mts +3 -15
  64. package/dist/actions/list-hooks.d.mts.map +1 -1
  65. package/dist/actions/list-hooks.mjs +1 -0
  66. package/dist/actions/list-hooks.mjs.map +1 -1
  67. package/dist/actions/list-payments.cjs +1 -0
  68. package/dist/actions/list-payments.cjs.map +1 -1
  69. package/dist/actions/list-payments.d.cts +3 -18
  70. package/dist/actions/list-payments.d.cts.map +1 -1
  71. package/dist/actions/list-payments.d.mts +3 -18
  72. package/dist/actions/list-payments.d.mts.map +1 -1
  73. package/dist/actions/list-payments.mjs +1 -0
  74. package/dist/actions/list-payments.mjs.map +1 -1
  75. package/dist/actions/list-plans.cjs +1 -0
  76. package/dist/actions/list-plans.cjs.map +1 -1
  77. package/dist/actions/list-plans.d.cts +3 -18
  78. package/dist/actions/list-plans.d.cts.map +1 -1
  79. package/dist/actions/list-plans.d.mts +3 -18
  80. package/dist/actions/list-plans.d.mts.map +1 -1
  81. package/dist/actions/list-plans.mjs +1 -0
  82. package/dist/actions/list-plans.mjs.map +1 -1
  83. package/dist/actions/list-subscriptions.cjs +1 -0
  84. package/dist/actions/list-subscriptions.cjs.map +1 -1
  85. package/dist/actions/list-subscriptions.d.cts +3 -18
  86. package/dist/actions/list-subscriptions.d.cts.map +1 -1
  87. package/dist/actions/list-subscriptions.d.mts +3 -18
  88. package/dist/actions/list-subscriptions.d.mts.map +1 -1
  89. package/dist/actions/list-subscriptions.mjs +1 -0
  90. package/dist/actions/list-subscriptions.mjs.map +1 -1
  91. package/dist/actions/update-current-company.cjs +1 -0
  92. package/dist/actions/update-current-company.cjs.map +1 -1
  93. package/dist/actions/update-current-company.d.cts +3 -28
  94. package/dist/actions/update-current-company.d.cts.map +1 -1
  95. package/dist/actions/update-current-company.d.mts +3 -28
  96. package/dist/actions/update-current-company.d.mts.map +1 -1
  97. package/dist/actions/update-current-company.mjs +1 -0
  98. package/dist/actions/update-current-company.mjs.map +1 -1
  99. package/dist/actions/update-plan.cjs +1 -0
  100. package/dist/actions/update-plan.cjs.map +1 -1
  101. package/dist/actions/update-plan.d.cts +3 -31
  102. package/dist/actions/update-plan.d.cts.map +1 -1
  103. package/dist/actions/update-plan.d.mts +3 -31
  104. package/dist/actions/update-plan.d.mts.map +1 -1
  105. package/dist/actions/update-plan.mjs +1 -0
  106. package/dist/actions/update-plan.mjs.map +1 -1
  107. package/dist/app.cjs +5 -4
  108. package/dist/app.cjs.map +1 -1
  109. package/dist/app.d.cts +4 -6
  110. package/dist/app.d.cts.map +1 -1
  111. package/dist/app.d.mts +4 -6
  112. package/dist/app.d.mts.map +1 -1
  113. package/dist/app.mjs +0 -1
  114. package/dist/app.mjs.map +1 -1
  115. package/dist/index.d.cts +1 -1
  116. package/dist/index.d.mts +1 -1
  117. package/package.json +2 -2
@@ -1,3 +1,5 @@
1
+ import { payhere } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/list-payments.d.ts
@@ -33,24 +35,7 @@ declare const PayhereListPaymentsOutput: z.ZodObject<{
33
35
  current_page: z.ZodNullable<z.ZodNumber>;
34
36
  }, z.core.$loose>>;
35
37
  }, z.core.$loose>;
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<"payhere", z.ZodObject<{
40
- connectionId: z.ZodString;
41
- entityId: z.ZodString;
42
- instanceId: z.ZodString;
43
- }, z.core.$strip>, z.ZodObject<{
44
- subdomain: z.ZodString;
45
- generic_api_key: z.ZodString;
46
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"payhere", z.ZodObject<{
47
- connectionId: z.ZodString;
48
- entityId: z.ZodString;
49
- instanceId: z.ZodString;
50
- }, z.core.$strip>, z.ZodObject<{
51
- subdomain: z.ZodString;
52
- generic_api_key: z.ZodString;
53
- }, z.core.$strip>>]>;
38
+ declare const payhereListPayments: AppAction<typeof PayhereListPaymentsInput, typeof PayhereListPaymentsOutput, typeof payhere.credential>;
54
39
  //#endregion
55
40
  export { payhereListPayments };
56
41
  //# 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,EAAwB,CAAA,CAAA,SAAA;;;;cA8BxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAKzB,mBAAA,gCAAmB,wBAAA"}
1
+ {"version":3,"file":"list-payments.d.mts","names":[],"sources":["../../src/actions/list-payments.ts"],"mappings":";;;;;cAMa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;cA8BxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAKzB,mBAAA,EAAqB,SAAA,QACzB,wBAAA,SACA,yBAAA,SACA,OAAA,CAAQ,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  //#region src/actions/list-payments.ts
@@ -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.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;CACr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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,CAAC,CAAC,SAAS;CAC5E,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,YAAY,CAAC,CAAC,SAAS,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"}
1
+ {"version":3,"file":"list-payments.mjs","names":[],"sources":["../../src/actions/list-payments.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { payhere } from \"../app\";\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: AppAction<\n typeof PayhereListPaymentsInput,\n typeof PayhereListPaymentsOutput,\n typeof payhere.credential\n> = 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":";;;;AAMA,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,SAAS,qBAAqB,CAAC,CAAC,SA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@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/list-plans.ts
@@ -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.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,wBAAwBA,IAAAA,EAAE,OAAO;CAC5C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CACtF,UAAUA,IA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M,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
+ {"version":3,"file":"list-plans.cjs","names":["z","action"],"sources":["../../src/actions/list-plans.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { payhere } from \"../app\";\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: AppAction<\n typeof PayhereListPlansInput,\n typeof PayhereListPlansOutput,\n typeof payhere.credential\n> = 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: PayhereListPlansIn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AAC,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,mBAITC,eAAAA,OAAO,sBAAsB;CAC/B,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { payhere } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/list-plans.d.ts
@@ -45,24 +47,7 @@ declare const PayhereListPlansOutput: z.ZodObject<{
45
47
  current_page: z.ZodNullable<z.ZodNumber>;
46
48
  }, z.core.$loose>>;
47
49
  }, 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<"payhere", z.ZodObject<{
52
- connectionId: z.ZodString;
53
- entityId: z.ZodString;
54
- instanceId: z.ZodString;
55
- }, z.core.$strip>, z.ZodObject<{
56
- subdomain: z.ZodString;
57
- generic_api_key: z.ZodString;
58
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"payhere", z.ZodObject<{
59
- connectionId: z.ZodString;
60
- entityId: z.ZodString;
61
- instanceId: z.ZodString;
62
- }, z.core.$strip>, z.ZodObject<{
63
- subdomain: z.ZodString;
64
- generic_api_key: z.ZodString;
65
- }, z.core.$strip>>]>;
50
+ declare const payhereListPlans: AppAction<typeof PayhereListPlansInput, typeof PayhereListPlansOutput, typeof payhere.credential>;
66
51
  //#endregion
67
52
  export { payhereListPlans };
68
53
  //# 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,EAAqB,CAAA,CAAA,SAAA;;;;cA0CrB,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAKtB,gBAAA,gCAAgB,wBAAA"}
1
+ {"version":3,"file":"list-plans.d.cts","names":[],"sources":["../../src/actions/list-plans.ts"],"mappings":";;;;;cAMa,qBAAA,EAAqB,CAAA,CAAA,SAAA;;;;cA0CrB,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAKtB,gBAAA,EAAkB,SAAA,QACtB,qBAAA,SACA,sBAAA,SACA,OAAA,CAAQ,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { payhere } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/list-plans.d.ts
@@ -45,24 +47,7 @@ declare const PayhereListPlansOutput: z.ZodObject<{
45
47
  current_page: z.ZodNullable<z.ZodNumber>;
46
48
  }, z.core.$loose>>;
47
49
  }, 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<"payhere", z.ZodObject<{
52
- connectionId: z.ZodString;
53
- entityId: z.ZodString;
54
- instanceId: z.ZodString;
55
- }, z.core.$strip>, z.ZodObject<{
56
- subdomain: z.ZodString;
57
- generic_api_key: z.ZodString;
58
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"payhere", z.ZodObject<{
59
- connectionId: z.ZodString;
60
- entityId: z.ZodString;
61
- instanceId: z.ZodString;
62
- }, z.core.$strip>, z.ZodObject<{
63
- subdomain: z.ZodString;
64
- generic_api_key: z.ZodString;
65
- }, z.core.$strip>>]>;
50
+ declare const payhereListPlans: AppAction<typeof PayhereListPlansInput, typeof PayhereListPlansOutput, typeof payhere.credential>;
66
51
  //#endregion
67
52
  export { payhereListPlans };
68
53
  //# 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,EAAqB,CAAA,CAAA,SAAA;;;;cA0CrB,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAKtB,gBAAA,gCAAgB,wBAAA"}
1
+ {"version":3,"file":"list-plans.d.mts","names":[],"sources":["../../src/actions/list-plans.ts"],"mappings":";;;;;cAMa,qBAAA,EAAqB,CAAA,CAAA,SAAA;;;;cA0CrB,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAKtB,gBAAA,EAAkB,SAAA,QACtB,qBAAA,SACA,sBAAA,SACA,OAAA,CAAQ,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  //#region src/actions/list-plans.ts
@@ -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.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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C,IAAI,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;CAC1E,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,YAAY,CAAC,CAAC,SAAS,uCAAuC;AAMjE,MAAa,mBAAmB,OAAO,sBAAsB;CAC3D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAVoC,EAAE,OAAO;EAC7C,MAAM,EAAE,MAAM,+BAA+B,CAAC,CAAC,SAAS,6BAA6B;EACrF,MAAM,sCAAsC,SAAS;CACvD,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mCAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"list-plans.mjs","names":[],"sources":["../../src/actions/list-plans.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { payhere } from \"../app\";\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: AppAction<\n typeof PayhereListPlansInput,\n typeof PayhereListPlansOutput,\n typeof payhere.credential\n> = 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":";;;;AAMA,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,OA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,CAAC,CAAC,SAAS;AAC3E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uCAAuC;AAMjE,MAAa,mBAIT,OAAO,sBAAsB;CAC/B,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAdoC,EAAE,OAAO;EAC7C,MAAM,EAAE,MAAM,+BAA+B,CAAC,CAAC,SAAS,6BAA6B;EACrF,MAAM,sCAAsC,SAAS;CACvD,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mCAWhB;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/list-subscriptions.ts
@@ -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.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,I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C,CAAC,SAAS,CAAC,CAAC,SAAS;AAC5G,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,gDAAgDA,IAAAA,EAAE,OAAO;CAC7D,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnF,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;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
+ {"version":3,"file":"list-subscriptions.cjs","names":["z","action"],"sources":["../../src/actions/list-subscriptions.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { payhere } from \"../app\";\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: AppAction<\n typeof PayhereListSubscriptionsInput,\n typeof PayhereListSubscriptionsOutput,\n typeof payhere.credential\n> = 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":";;;;AAMA,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,4BAA4B,CAAC,CAAC,SAAS;CACrE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtE,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC3E,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,0CAA0CA,IAAAA,EAAE,OAAO;CACvD,IAAIA,IA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,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,2BAITC,eAAAA,OAAO,8BAA8B;CACvC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { payhere } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/list-subscriptions.d.ts
@@ -41,24 +43,7 @@ declare const PayhereListSubscriptionsOutput: z.ZodObject<{
41
43
  current_page: z.ZodNullable<z.ZodNumber>;
42
44
  }, z.core.$loose>>;
43
45
  }, 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<"payhere", z.ZodObject<{
48
- connectionId: z.ZodString;
49
- entityId: z.ZodString;
50
- instanceId: z.ZodString;
51
- }, z.core.$strip>, z.ZodObject<{
52
- subdomain: z.ZodString;
53
- generic_api_key: z.ZodString;
54
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"payhere", z.ZodObject<{
55
- connectionId: z.ZodString;
56
- entityId: z.ZodString;
57
- instanceId: z.ZodString;
58
- }, z.core.$strip>, z.ZodObject<{
59
- subdomain: z.ZodString;
60
- generic_api_key: z.ZodString;
61
- }, z.core.$strip>>]>;
46
+ declare const payhereListSubscriptions: AppAction<typeof PayhereListSubscriptionsInput, typeof PayhereListSubscriptionsOutput, typeof payhere.credential>;
62
47
  //#endregion
63
48
  export { payhereListSubscriptions };
64
49
  //# 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,EAA6B,CAAA,CAAA,SAAA;;;;cAwC7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAK9B,wBAAA,gCAAwB,wBAAA"}
1
+ {"version":3,"file":"list-subscriptions.d.cts","names":[],"sources":["../../src/actions/list-subscriptions.ts"],"mappings":";;;;;cAMa,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;cAwC7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAK9B,wBAAA,EAA0B,SAAA,QAC9B,6BAAA,SACA,8BAAA,SACA,OAAA,CAAQ,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { payhere } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/list-subscriptions.d.ts
@@ -41,24 +43,7 @@ declare const PayhereListSubscriptionsOutput: z.ZodObject<{
41
43
  current_page: z.ZodNullable<z.ZodNumber>;
42
44
  }, z.core.$loose>>;
43
45
  }, 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<"payhere", z.ZodObject<{
48
- connectionId: z.ZodString;
49
- entityId: z.ZodString;
50
- instanceId: z.ZodString;
51
- }, z.core.$strip>, z.ZodObject<{
52
- subdomain: z.ZodString;
53
- generic_api_key: z.ZodString;
54
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"payhere", z.ZodObject<{
55
- connectionId: z.ZodString;
56
- entityId: z.ZodString;
57
- instanceId: z.ZodString;
58
- }, z.core.$strip>, z.ZodObject<{
59
- subdomain: z.ZodString;
60
- generic_api_key: z.ZodString;
61
- }, z.core.$strip>>]>;
46
+ declare const payhereListSubscriptions: AppAction<typeof PayhereListSubscriptionsInput, typeof PayhereListSubscriptionsOutput, typeof payhere.credential>;
62
47
  //#endregion
63
48
  export { payhereListSubscriptions };
64
49
  //# sourceMappingURL=list-subscriptions.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-subscriptions.d.mts","names":[],"sources":["../../src/actions/list-subscriptions.ts"],"mappings":";;;cAIa,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;cAwC7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAK9B,wBAAA,gCAAwB,wBAAA"}
1
+ {"version":3,"file":"list-subscriptions.d.mts","names":[],"sources":["../../src/actions/list-subscriptions.ts"],"mappings":";;;;;cAMa,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;cAwC7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAK9B,wBAAA,EAA0B,SAAA,QAC9B,6BAAA,SACA,8BAAA,SACA,OAAA,CAAQ,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  //#region src/actions/list-subscriptions.ts
@@ -1 +1 @@
1
- {"version":3,"file":"list-subscriptions.mjs","names":[],"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,gCAAgC,EAAE,OAAO;CACpD,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS;CACxG,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6FAA6F,CAAC,CAAC,SAAS;AAC9I,CAAC;AACD,MAAM,gDAAgD,EAAE,OAAO;CAC7D,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CACrE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtE,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC3E,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,0CAA0C,EAAE,OAAO;CACvD,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;CAC9D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,eAAe,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/D,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC3E,CAAC,CAA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C,CAAC,SAAS;CAC7F,wBAAwB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CAClG,wBAAwB,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC5G,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,gDAAgD,EAAE,OAAO;CAC7D,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnF,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClF,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;CAC5E,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;CACzE,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS;AACzE,CAAC,CAAC,CAAC,YAAY;AAMf,MAAa,2BAA2B,OAAO,8BAA8B;CAC3E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAV4C,EAAE,OAAO;EACrD,MAAM,EAAE,MAAM,2CAA2C,CAAC,CAAC,SAAS,oCAAoC;EACxG,MAAM,8CAA8C,SAAS;CAC/D,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
1
+ {"version":3,"file":"list-subscriptions.mjs","names":[],"sources":["../../src/actions/list-subscriptions.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { payhere } from \"../app\";\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: AppAction<\n typeof PayhereListSubscriptionsInput,\n typeof PayhereListSubscriptionsOutput,\n typeof payhere.credential\n> = 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":";;;;AAMA,MAAa,gCAAgC,EAAE,OAAO;CACpD,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS;CACxG,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6FAA6F,CAAC,CAAC,SAAS;AAC9I,CAAC;AACD,MAAM,gDAAgD,EAAE,OAAO;CAC7D,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CACrE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtE,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC3E,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,0CAA0C,EAAE,OAAO;CACvD,IAAI,EAAE,OAA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AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/update-current-company.ts
@@ -1 +1 @@
1
- {"version":3,"file":"update-current-company.cjs","names":["z","action"],"sources":["../../src/actions/update-current-company.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PayhereUpdateCurrentCompanyInput = z.object({\n logo: z.object({\n name: z.string().describe(\"The filename that will be used when uploading the file to the destination service\"),\n s3key: z.string().describe(\"The S3 key of a publicly accessible file, typically returned from a previous download action that stored the file in S3. This key references an existing file that can be uploaded to another service.\"),\n mimetype: z.string().describe(\"The MIME type of the file\"),\n}).describe(\"Logo image for the company.\").optional(),\n name: z.string().describe(\"Display name of the company\").optional(),\n address: z.string().describe(\"Company address for receipt display\").optional(),\n website: z.string().describe(\"Company website shown in receipts\").optional(),\n legal_name: z.string().describe(\"Legal name shown on receipts\").optional(),\n button_text: z.string().describe(\"Text color: empty (auto), 'white', or 'black'\").optional(),\n button_color: z.string().describe(\"Hex color for pay button (e.g., #ff6600)\").optional(),\n support_email: z.string().describe(\"Support email displayed in receipts\").optional(),\n});\nconst PayhereUpdateCurrentCompany_CompanyUserSchema = z.object({\n id: z.number().int().describe(\"User ID\").nullable().optional(),\n name: z.string().describe(\"User name\").nullable().optional(),\n role: z.string().describe(\"User role\").nullable().optional(),\n email: z.string().describe(\"User email address\").nullable().optional(),\n}).passthrough();\nexport const PayhereUpdateCurrentCompanyOutput = z.object({\n id: z.number().int().describe(\"Company identifier\").nullable().optional(),\n name: z.string().describe(\"Display name of the company\").nullable().optional(),\n plan: z.string().describe(\"Current subscription plan\").nullable().optional(),\n slug: z.string().describe(\"URL-friendly company identifier\").nullable().optional(),\n users: z.array(PayhereUpdateCurrentCompany_CompanyUserSchema).describe(\"Associated users with their details\").nullable().optional(),\n address: z.string().describe(\"Company address\").nullable().optional(),\n website: z.string().describe(\"Company website URL\").nullable().optional(),\n currency: z.string().describe(\"Company currency\").nullable().optional(),\n vat_rate: z.number().describe(\"VAT rate percentage\").nullable().optional(),\n legal_name: z.string().describe(\"Legal name shown on receipts\").nullable().optional(),\n button_text: z.string().describe(\"Text color setting\").nullable().optional(),\n button_color: z.string().describe(\"Hex color for pay button\").nullable().optional(),\n country_code: z.string().describe(\"Country code for the company\").nullable().optional(),\n custom_domain: z.string().describe(\"Custom domain if configured\").nullable().optional(),\n support_email: z.string().describe(\"Support email address\").nullable().optional(),\n vat_registered: z.boolean().describe(\"VAT registration status\").nullable().optional(),\n subscription_status: z.string().describe(\"Current subscription status\").nullable().optional(),\n}).passthrough();\n\nexport const payhereUpdateCurrentCompany = action(\"PAYHERE_UPDATE_CURRENT_COMPANY\", {\n slug: \"payhere-update-current-company\",\n name: \"Update Current Company\",\n description: \"Tool to update the company information for the currently authenticated user. Use when modifying company details such as name, legal name, address, logo, support email, website, or branding preferences (button color and text color).\",\n input: PayhereUpdateCurrentCompanyInput,\n output: PayhereUpdateCurrentCompanyOutput,\n});\n"],"mappings":";;;AAIA,MAAa,mCAAmCA,IAAAA,EAAE,OAAO;CACvD,MAAMA,IAAAA,EAAE,OAAO;EACf,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mFAAmF;EAC7G,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wMAAwM;EACnO,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B;CAC3D,CAAC,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CAClD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CAClE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CAC7E,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CAC3E,YAAYA,IAAAA,EAAE,OAAO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CAAC,YAAY;AAEf,MAAa,8BAA8BC,eAAAA,OAAO,kCAAkC;CAClF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"update-current-company.cjs","names":["z","action"],"sources":["../../src/actions/update-current-company.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { payhere } from \"../app\";\n\nexport const PayhereUpdateCurrentCompanyInput = z.object({\n logo: z.object({\n name: z.string().describe(\"The filename that will be used when uploading the file to the destination service\"),\n s3key: z.string().describe(\"The S3 key of a publicly accessible file, typically returned from a previous download action that stored the file in S3. This key references an existing file that can be uploaded to another service.\"),\n mimetype: z.string().describe(\"The MIME type of the file\"),\n}).describe(\"Logo image for the company.\").optional(),\n name: z.string().describe(\"Display name of the company\").optional(),\n address: z.string().describe(\"Company address for receipt display\").optional(),\n website: z.string().describe(\"Company website shown in receipts\").optional(),\n legal_name: z.string().describe(\"Legal name shown on receipts\").optional(),\n button_text: z.string().describe(\"Text color: empty (auto), 'white', or 'black'\").optional(),\n button_color: z.string().describe(\"Hex color for pay button (e.g., #ff6600)\").optional(),\n support_email: z.string().describe(\"Support email displayed in receipts\").optional(),\n});\nconst PayhereUpdateCurrentCompany_CompanyUserSchema = z.object({\n id: z.number().int().describe(\"User ID\").nullable().optional(),\n name: z.string().describe(\"User name\").nullable().optional(),\n role: z.string().describe(\"User role\").nullable().optional(),\n email: z.string().describe(\"User email address\").nullable().optional(),\n}).passthrough();\nexport const PayhereUpdateCurrentCompanyOutput = z.object({\n id: z.number().int().describe(\"Company identifier\").nullable().optional(),\n name: z.string().describe(\"Display name of the company\").nullable().optional(),\n plan: z.string().describe(\"Current subscription plan\").nullable().optional(),\n slug: z.string().describe(\"URL-friendly company identifier\").nullable().optional(),\n users: z.array(PayhereUpdateCurrentCompany_CompanyUserSchema).describe(\"Associated users with their details\").nullable().optional(),\n address: z.string().describe(\"Company address\").nullable().optional(),\n website: z.string().describe(\"Company website URL\").nullable().optional(),\n currency: z.string().describe(\"Company currency\").nullable().optional(),\n vat_rate: z.number().describe(\"VAT rate percentage\").nullable().optional(),\n legal_name: z.string().describe(\"Legal name shown on receipts\").nullable().optional(),\n button_text: z.string().describe(\"Text color setting\").nullable().optional(),\n button_color: z.string().describe(\"Hex color for pay button\").nullable().optional(),\n country_code: z.string().describe(\"Country code for the company\").nullable().optional(),\n custom_domain: z.string().describe(\"Custom domain if configured\").nullable().optional(),\n support_email: z.string().describe(\"Support email address\").nullable().optional(),\n vat_registered: z.boolean().describe(\"VAT registration status\").nullable().optional(),\n subscription_status: z.string().describe(\"Current subscription status\").nullable().optional(),\n}).passthrough();\n\nexport const payhereUpdateCurrentCompany: AppAction<\n typeof PayhereUpdateCurrentCompanyInput,\n typeof PayhereUpdateCurrentCompanyOutput,\n typeof payhere.credential\n> = action(\"PAYHERE_UPDATE_CURRENT_COMPANY\", {\n slug: \"payhere-update-current-company\",\n name: \"Update Current Company\",\n description: \"Tool to update the company information for the currently authenticated user. Use when modifying company details such as name, legal name, address, logo, support email, website, or branding preferences (button color and text color).\",\n input: PayhereUpdateCurrentCompanyInput,\n output: PayhereUpdateCurrentCompanyOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,mCAAmCA,IAAAA,EAAE,OAAO;CACvD,MAAMA,IAAAA,EAAE,OAAO;EACf,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mFAAmF;EAC7G,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wMAAwM;EACnO,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B;CAC3D,CAAC,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CAClD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CAClE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qC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AAC,CAAC,SAAS;CACpF,qBAAqBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC9F,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,8BAITC,eAAAA,OAAO,kCAAkC;CAC3C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { payhere } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/update-current-company.d.ts
@@ -39,34 +41,7 @@ declare const PayhereUpdateCurrentCompanyOutput: z.ZodObject<{
39
41
  vat_registered: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
40
42
  subscription_status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
41
43
  }, z.core.$loose>;
42
- declare const payhereUpdateCurrentCompany: import("@keystrokehq/action").WorkflowActionDefinition<{
43
- logo?: {
44
- name: string;
45
- s3key: string;
46
- mimetype: string;
47
- } | undefined;
48
- name?: string | undefined;
49
- address?: string | undefined;
50
- website?: string | undefined;
51
- legal_name?: string | undefined;
52
- button_text?: string | undefined;
53
- button_color?: string | undefined;
54
- support_email?: string | undefined;
55
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"payhere", z.ZodObject<{
56
- connectionId: z.ZodString;
57
- entityId: z.ZodString;
58
- instanceId: z.ZodString;
59
- }, z.core.$strip>, z.ZodObject<{
60
- subdomain: z.ZodString;
61
- generic_api_key: z.ZodString;
62
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"payhere", z.ZodObject<{
63
- connectionId: z.ZodString;
64
- entityId: z.ZodString;
65
- instanceId: z.ZodString;
66
- }, z.core.$strip>, z.ZodObject<{
67
- subdomain: z.ZodString;
68
- generic_api_key: z.ZodString;
69
- }, z.core.$strip>>]>;
44
+ declare const payhereUpdateCurrentCompany: AppAction<typeof PayhereUpdateCurrentCompanyInput, typeof PayhereUpdateCurrentCompanyOutput, typeof payhere.credential>;
70
45
  //#endregion
71
46
  export { payhereUpdateCurrentCompany };
72
47
  //# sourceMappingURL=update-current-company.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"update-current-company.d.cts","names":[],"sources":["../../src/actions/update-current-company.ts"],"mappings":";;;cAIa,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;cAoBhC,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;cAoBjC,2BAAA,gCAA2B,wBAAA"}
1
+ {"version":3,"file":"update-current-company.d.cts","names":[],"sources":["../../src/actions/update-current-company.ts"],"mappings":";;;;;cAMa,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;cAoBhC,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;cAoBjC,2BAAA,EAA6B,SAAA,QACjC,gCAAA,SACA,iCAAA,SACA,OAAA,CAAQ,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { payhere } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/update-current-company.d.ts
@@ -39,34 +41,7 @@ declare const PayhereUpdateCurrentCompanyOutput: z.ZodObject<{
39
41
  vat_registered: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
40
42
  subscription_status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
41
43
  }, z.core.$loose>;
42
- declare const payhereUpdateCurrentCompany: import("@keystrokehq/action").WorkflowActionDefinition<{
43
- logo?: {
44
- name: string;
45
- s3key: string;
46
- mimetype: string;
47
- } | undefined;
48
- name?: string | undefined;
49
- address?: string | undefined;
50
- website?: string | undefined;
51
- legal_name?: string | undefined;
52
- button_text?: string | undefined;
53
- button_color?: string | undefined;
54
- support_email?: string | undefined;
55
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"payhere", z.ZodObject<{
56
- connectionId: z.ZodString;
57
- entityId: z.ZodString;
58
- instanceId: z.ZodString;
59
- }, z.core.$strip>, z.ZodObject<{
60
- subdomain: z.ZodString;
61
- generic_api_key: z.ZodString;
62
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"payhere", z.ZodObject<{
63
- connectionId: z.ZodString;
64
- entityId: z.ZodString;
65
- instanceId: z.ZodString;
66
- }, z.core.$strip>, z.ZodObject<{
67
- subdomain: z.ZodString;
68
- generic_api_key: z.ZodString;
69
- }, z.core.$strip>>]>;
44
+ declare const payhereUpdateCurrentCompany: AppAction<typeof PayhereUpdateCurrentCompanyInput, typeof PayhereUpdateCurrentCompanyOutput, typeof payhere.credential>;
70
45
  //#endregion
71
46
  export { payhereUpdateCurrentCompany };
72
47
  //# sourceMappingURL=update-current-company.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"update-current-company.d.mts","names":[],"sources":["../../src/actions/update-current-company.ts"],"mappings":";;;cAIa,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;cAoBhC,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;cAoBjC,2BAAA,gCAA2B,wBAAA"}
1
+ {"version":3,"file":"update-current-company.d.mts","names":[],"sources":["../../src/actions/update-current-company.ts"],"mappings":";;;;;cAMa,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;cAoBhC,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;cAoBjC,2BAAA,EAA6B,SAAA,QACjC,gCAAA,SACA,iCAAA,SACA,OAAA,CAAQ,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  //#region src/actions/update-current-company.ts
@@ -1 +1 @@
1
- {"version":3,"file":"update-current-company.mjs","names":[],"sources":["../../src/actions/update-current-company.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PayhereUpdateCurrentCompanyInput = z.object({\n logo: z.object({\n name: z.string().describe(\"The filename that will be used when uploading the file to the destination service\"),\n s3key: z.string().describe(\"The S3 key of a publicly accessible file, typically returned from a previous download action that stored the file in S3. This key references an existing file that can be uploaded to another service.\"),\n mimetype: z.string().describe(\"The MIME type of the file\"),\n}).describe(\"Logo image for the company.\").optional(),\n name: z.string().describe(\"Display name of the company\").optional(),\n address: z.string().describe(\"Company address for receipt display\").optional(),\n website: z.string().describe(\"Company website shown in receipts\").optional(),\n legal_name: z.string().describe(\"Legal name shown on receipts\").optional(),\n button_text: z.string().describe(\"Text color: empty (auto), 'white', or 'black'\").optional(),\n button_color: z.string().describe(\"Hex color for pay button (e.g., #ff6600)\").optional(),\n support_email: z.string().describe(\"Support email displayed in receipts\").optional(),\n});\nconst PayhereUpdateCurrentCompany_CompanyUserSchema = z.object({\n id: z.number().int().describe(\"User ID\").nullable().optional(),\n name: z.string().describe(\"User name\").nullable().optional(),\n role: z.string().describe(\"User role\").nullable().optional(),\n email: z.string().describe(\"User email address\").nullable().optional(),\n}).passthrough();\nexport const PayhereUpdateCurrentCompanyOutput = z.object({\n id: z.number().int().describe(\"Company identifier\").nullable().optional(),\n name: z.string().describe(\"Display name of the company\").nullable().optional(),\n plan: z.string().describe(\"Current subscription plan\").nullable().optional(),\n slug: z.string().describe(\"URL-friendly company identifier\").nullable().optional(),\n users: z.array(PayhereUpdateCurrentCompany_CompanyUserSchema).describe(\"Associated users with their details\").nullable().optional(),\n address: z.string().describe(\"Company address\").nullable().optional(),\n website: z.string().describe(\"Company website URL\").nullable().optional(),\n currency: z.string().describe(\"Company currency\").nullable().optional(),\n vat_rate: z.number().describe(\"VAT rate percentage\").nullable().optional(),\n legal_name: z.string().describe(\"Legal name shown on receipts\").nullable().optional(),\n button_text: z.string().describe(\"Text color setting\").nullable().optional(),\n button_color: z.string().describe(\"Hex color for pay button\").nullable().optional(),\n country_code: z.string().describe(\"Country code for the company\").nullable().optional(),\n custom_domain: z.string().describe(\"Custom domain if configured\").nullable().optional(),\n support_email: z.string().describe(\"Support email address\").nullable().optional(),\n vat_registered: z.boolean().describe(\"VAT registration status\").nullable().optional(),\n subscription_status: z.string().describe(\"Current subscription status\").nullable().optional(),\n}).passthrough();\n\nexport const payhereUpdateCurrentCompany = action(\"PAYHERE_UPDATE_CURRENT_COMPANY\", {\n slug: \"payhere-update-current-company\",\n name: \"Update Current Company\",\n description: \"Tool to update the company information for the currently authenticated user. Use when modifying company details such as name, legal name, address, logo, support email, website, or branding preferences (button color and text color).\",\n input: PayhereUpdateCurrentCompanyInput,\n output: PayhereUpdateCurrentCompanyOutput,\n});\n"],"mappings":";;;AAIA,MAAa,mCAAmC,EAAE,OAAO;CACvD,MAAM,EAAE,OAAO;EACf,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mFAAmF;EAC7G,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,wMAAwM;EACnO,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B;CAC3D,CAAC,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CAClD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CAClE,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CAC7E,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CAC3E,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CACzE,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CAC3F,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CACvF,eAAe,EAAE,OAAO,CAAC,C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OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACzE,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACpF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3E,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAClF,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtF,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtF,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChF,gBAAgB,EAAE,QAAQ,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACpF,qBAAqB,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9F,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
1
+ {"version":3,"file":"update-current-company.mjs","names":[],"sources":["../../src/actions/update-current-company.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { payhere } from \"../app\";\n\nexport const PayhereUpdateCurrentCompanyInput = z.object({\n logo: z.object({\n name: z.string().describe(\"The filename that will be used when uploading the file to the destination service\"),\n s3key: z.string().describe(\"The S3 key of a publicly accessible file, typically returned from a previous download action that stored the file in S3. This key references an existing file that can be uploaded to another service.\"),\n mimetype: z.string().describe(\"The MIME type of the file\"),\n}).describe(\"Logo image for the company.\").optional(),\n name: z.string().describe(\"Display name of the company\").optional(),\n address: z.string().describe(\"Company address for receipt display\").optional(),\n website: z.string().describe(\"Company website shown in receipts\").optional(),\n legal_name: z.string().describe(\"Legal name shown on receipts\").optional(),\n button_text: z.string().describe(\"Text color: empty (auto), 'white', or 'black'\").optional(),\n button_color: z.string().describe(\"Hex color for pay button (e.g., #ff6600)\").optional(),\n support_email: z.string().describe(\"Support email displayed in receipts\").optional(),\n});\nconst PayhereUpdateCurrentCompany_CompanyUserSchema = z.object({\n id: z.number().int().describe(\"User ID\").nullable().optional(),\n name: z.string().describe(\"User name\").nullable().optional(),\n role: z.string().describe(\"User role\").nullable().optional(),\n email: z.string().describe(\"User email address\").nullable().optional(),\n}).passthrough();\nexport const PayhereUpdateCurrentCompanyOutput = z.object({\n id: z.number().int().describe(\"Company identifier\").nullable().optional(),\n name: z.string().describe(\"Display name of the company\").nullable().optional(),\n plan: z.string().describe(\"Current subscription plan\").nullable().optional(),\n slug: z.string().describe(\"URL-friendly company identifier\").nullable().optional(),\n users: z.array(PayhereUpdateCurrentCompany_CompanyUserSchema).describe(\"Associated users with their details\").nullable().optional(),\n address: z.string().describe(\"Company address\").nullable().optional(),\n website: z.string().describe(\"Company website URL\").nullable().optional(),\n currency: z.string().describe(\"Company currency\").nullable().optional(),\n vat_rate: z.number().describe(\"VAT rate percentage\").nullable().optional(),\n legal_name: z.string().describe(\"Legal name shown on receipts\").nullable().optional(),\n button_text: z.string().describe(\"Text color setting\").nullable().optional(),\n button_color: z.string().describe(\"Hex color for pay button\").nullable().optional(),\n country_code: z.string().describe(\"Country code for the company\").nullable().optional(),\n custom_domain: z.string().describe(\"Custom domain if configured\").nullable().optional(),\n support_email: z.string().describe(\"Support email address\").nullable().optional(),\n vat_registered: z.boolean().describe(\"VAT registration status\").nullable().optional(),\n subscription_status: z.string().describe(\"Current subscription status\").nullable().optional(),\n}).passthrough();\n\nexport const payhereUpdateCurrentCompany: AppAction<\n typeof PayhereUpdateCurrentCompanyInput,\n typeof PayhereUpdateCurrentCompanyOutput,\n typeof payhere.credential\n> = action(\"PAYHERE_UPDATE_CURRENT_COMPANY\", {\n slug: \"payhere-update-current-company\",\n name: \"Update Current Company\",\n description: \"Tool to update the company information for the currently authenticated user. Use when modifying company details such as name, legal name, address, logo, support email, website, or branding preferences (button color and text color).\",\n input: PayhereUpdateCurrentCompanyInput,\n output: PayhereUpdateCurrentCompanyOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,mCAAmC,EAAE,OAAO;CACvD,MAAM,EAAE,OAAO;EACf,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mFAAmF;EAC7G,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,wMAAwM;EACnO,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B;CAC3D,CAAC,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CAClD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CAClE,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CAC7E,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CAC3E,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CACzE,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CAC3F,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CACvF,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;AACrF,CAAC;AACD,MAAM,gDAAgD,EAAE,OAAO;CAC7D,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,SAAS,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CA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