@keystrokehq/payhere 0.1.0 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (113) hide show
  1. package/dist/action.cjs.map +1 -1
  2. package/dist/action.mjs.map +1 -1
  3. package/dist/actions/create-hook.cjs +10 -10
  4. package/dist/actions/create-hook.cjs.map +1 -1
  5. package/dist/actions/create-hook.d.cts +26 -3
  6. package/dist/actions/create-hook.d.cts.map +1 -1
  7. package/dist/actions/create-hook.d.mts +26 -3
  8. package/dist/actions/create-hook.d.mts.map +1 -1
  9. package/dist/actions/create-hook.mjs +10 -10
  10. package/dist/actions/create-hook.mjs.map +1 -1
  11. package/dist/actions/create-plan.cjs +2 -2
  12. package/dist/actions/create-plan.cjs.map +1 -1
  13. package/dist/actions/create-plan.d.cts +80 -3
  14. package/dist/actions/create-plan.d.cts.map +1 -1
  15. package/dist/actions/create-plan.d.mts +80 -3
  16. package/dist/actions/create-plan.d.mts.map +1 -1
  17. package/dist/actions/create-plan.mjs +2 -2
  18. package/dist/actions/create-plan.mjs.map +1 -1
  19. package/dist/actions/delete-hook.cjs +3 -3
  20. package/dist/actions/delete-hook.cjs.map +1 -1
  21. package/dist/actions/delete-hook.d.cts +10 -3
  22. package/dist/actions/delete-hook.d.cts.map +1 -1
  23. package/dist/actions/delete-hook.d.mts +10 -3
  24. package/dist/actions/delete-hook.d.mts.map +1 -1
  25. package/dist/actions/delete-hook.mjs +3 -3
  26. package/dist/actions/delete-hook.mjs.map +1 -1
  27. package/dist/actions/get-current-company-stats.cjs +7 -7
  28. package/dist/actions/get-current-company-stats.cjs.map +1 -1
  29. package/dist/actions/get-current-company-stats.d.cts +10 -3
  30. package/dist/actions/get-current-company-stats.d.cts.map +1 -1
  31. package/dist/actions/get-current-company-stats.d.mts +10 -3
  32. package/dist/actions/get-current-company-stats.d.mts.map +1 -1
  33. package/dist/actions/get-current-company-stats.mjs +7 -7
  34. package/dist/actions/get-current-company-stats.mjs.map +1 -1
  35. package/dist/actions/get-current-company.cjs +2 -2
  36. package/dist/actions/get-current-company.cjs.map +1 -1
  37. package/dist/actions/get-current-company.d.cts +26 -3
  38. package/dist/actions/get-current-company.d.cts.map +1 -1
  39. package/dist/actions/get-current-company.d.mts +26 -3
  40. package/dist/actions/get-current-company.d.mts.map +1 -1
  41. package/dist/actions/get-current-company.mjs +2 -2
  42. package/dist/actions/get-current-company.mjs.map +1 -1
  43. package/dist/actions/get-user.cjs +7 -7
  44. package/dist/actions/get-user.cjs.map +1 -1
  45. package/dist/actions/get-user.d.cts +10 -3
  46. package/dist/actions/get-user.d.cts.map +1 -1
  47. package/dist/actions/get-user.d.mts +10 -3
  48. package/dist/actions/get-user.d.mts.map +1 -1
  49. package/dist/actions/get-user.mjs +7 -7
  50. package/dist/actions/get-user.mjs.map +1 -1
  51. package/dist/actions/list-customers.cjs +13 -13
  52. package/dist/actions/list-customers.cjs.map +1 -1
  53. package/dist/actions/list-customers.d.cts +27 -3
  54. package/dist/actions/list-customers.d.cts.map +1 -1
  55. package/dist/actions/list-customers.d.mts +27 -3
  56. package/dist/actions/list-customers.d.mts.map +1 -1
  57. package/dist/actions/list-customers.mjs +13 -13
  58. package/dist/actions/list-customers.mjs.map +1 -1
  59. package/dist/actions/list-hooks.cjs +10 -10
  60. package/dist/actions/list-hooks.cjs.map +1 -1
  61. package/dist/actions/list-hooks.d.cts +14 -3
  62. package/dist/actions/list-hooks.d.cts.map +1 -1
  63. package/dist/actions/list-hooks.d.mts +14 -3
  64. package/dist/actions/list-hooks.d.mts.map +1 -1
  65. package/dist/actions/list-hooks.mjs +10 -10
  66. package/dist/actions/list-hooks.mjs.map +1 -1
  67. package/dist/actions/list-payments.cjs +23 -23
  68. package/dist/actions/list-payments.cjs.map +1 -1
  69. package/dist/actions/list-payments.d.cts +36 -3
  70. package/dist/actions/list-payments.d.cts.map +1 -1
  71. package/dist/actions/list-payments.d.mts +36 -3
  72. package/dist/actions/list-payments.d.mts.map +1 -1
  73. package/dist/actions/list-payments.mjs +23 -23
  74. package/dist/actions/list-payments.mjs.map +1 -1
  75. package/dist/actions/list-plans.cjs +22 -22
  76. package/dist/actions/list-plans.cjs.map +1 -1
  77. package/dist/actions/list-plans.d.cts +48 -3
  78. package/dist/actions/list-plans.d.cts.map +1 -1
  79. package/dist/actions/list-plans.d.mts +48 -3
  80. package/dist/actions/list-plans.d.mts.map +1 -1
  81. package/dist/actions/list-plans.mjs +22 -22
  82. package/dist/actions/list-plans.mjs.map +1 -1
  83. package/dist/actions/list-subscriptions.cjs +20 -20
  84. package/dist/actions/list-subscriptions.cjs.map +1 -1
  85. package/dist/actions/list-subscriptions.d.cts +44 -3
  86. package/dist/actions/list-subscriptions.d.cts.map +1 -1
  87. package/dist/actions/list-subscriptions.d.mts +44 -3
  88. package/dist/actions/list-subscriptions.d.mts.map +1 -1
  89. package/dist/actions/list-subscriptions.mjs +20 -20
  90. package/dist/actions/list-subscriptions.mjs.map +1 -1
  91. package/dist/actions/update-current-company.cjs +2 -2
  92. package/dist/actions/update-current-company.cjs.map +1 -1
  93. package/dist/actions/update-current-company.d.cts +52 -3
  94. package/dist/actions/update-current-company.d.cts.map +1 -1
  95. package/dist/actions/update-current-company.d.mts +52 -3
  96. package/dist/actions/update-current-company.d.mts.map +1 -1
  97. package/dist/actions/update-current-company.mjs +2 -2
  98. package/dist/actions/update-current-company.mjs.map +1 -1
  99. package/dist/actions/update-plan.cjs +1 -1
  100. package/dist/actions/update-plan.cjs.map +1 -1
  101. package/dist/actions/update-plan.d.cts +54 -3
  102. package/dist/actions/update-plan.d.cts.map +1 -1
  103. package/dist/actions/update-plan.d.mts +54 -3
  104. package/dist/actions/update-plan.d.mts.map +1 -1
  105. package/dist/actions/update-plan.mjs +1 -1
  106. package/dist/actions/update-plan.mjs.map +1 -1
  107. package/dist/catalog.cjs +14 -1
  108. package/dist/catalog.cjs.map +1 -1
  109. package/dist/catalog.d.cts +13 -0
  110. package/dist/catalog.d.mts +13 -0
  111. package/dist/catalog.mjs +14 -1
  112. package/dist/catalog.mjs.map +1 -1
  113. package/package.json +2 -2
@@ -1,9 +1,33 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/list-customers.d.ts
4
- declare const PayhereListCustomersInput: z.ZodTypeAny;
5
- declare const PayhereListCustomersOutput: z.ZodTypeAny;
6
- declare const payhereListCustomers: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const PayhereListCustomersInput: z.ZodObject<{
5
+ page: z.ZodOptional<z.ZodNumber>;
6
+ per_page: z.ZodOptional<z.ZodNumber>;
7
+ }, z.core.$strip>;
8
+ declare const PayhereListCustomersOutput: z.ZodObject<{
9
+ data: z.ZodArray<z.ZodObject<{
10
+ id: z.ZodNullable<z.ZodNumber>;
11
+ name: z.ZodNullable<z.ZodString>;
12
+ type: z.ZodNullable<z.ZodString>;
13
+ email: z.ZodNullable<z.ZodString>;
14
+ location: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
15
+ created_at: z.ZodNullable<z.ZodString>;
16
+ ip_address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17
+ updated_at: z.ZodNullable<z.ZodString>;
18
+ }, z.core.$loose>>;
19
+ meta: z.ZodNullable<z.ZodObject<{
20
+ next_page: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
21
+ prev_page: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
22
+ total_count: z.ZodNullable<z.ZodNumber>;
23
+ total_pages: z.ZodNullable<z.ZodNumber>;
24
+ current_page: z.ZodNullable<z.ZodNumber>;
25
+ }, z.core.$loose>>;
26
+ }, z.core.$loose>;
27
+ declare const payhereListCustomers: import("@keystrokehq/action").WorkflowActionDefinition<{
28
+ page?: number | undefined;
29
+ per_page?: number | undefined;
30
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
31
  //#endregion
8
32
  export { payhereListCustomers };
9
33
  //# sourceMappingURL=list-customers.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-customers.d.cts","names":[],"sources":["../../src/actions/list-customers.ts"],"mappings":";;;cAIa,yBAAA,EAA2B,CAAA,CAAE,UAGiC;AAAA,cAmB9D,0BAAA,EAA4B,CAAA,CAAE,UAGS;AAAA,cAEvC,oBAAA,gCAAoB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"list-customers.d.cts","names":[],"sources":["../../src/actions/list-customers.ts"],"mappings":";;;cAIa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;cAsBzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;cAK1B,oBAAA,gCAAoB,wBAAA"}
@@ -1,9 +1,33 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/list-customers.d.ts
4
- declare const PayhereListCustomersInput: z.ZodTypeAny;
5
- declare const PayhereListCustomersOutput: z.ZodTypeAny;
6
- declare const payhereListCustomers: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const PayhereListCustomersInput: z.ZodObject<{
5
+ page: z.ZodOptional<z.ZodNumber>;
6
+ per_page: z.ZodOptional<z.ZodNumber>;
7
+ }, z.core.$strip>;
8
+ declare const PayhereListCustomersOutput: z.ZodObject<{
9
+ data: z.ZodArray<z.ZodObject<{
10
+ id: z.ZodNullable<z.ZodNumber>;
11
+ name: z.ZodNullable<z.ZodString>;
12
+ type: z.ZodNullable<z.ZodString>;
13
+ email: z.ZodNullable<z.ZodString>;
14
+ location: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
15
+ created_at: z.ZodNullable<z.ZodString>;
16
+ ip_address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17
+ updated_at: z.ZodNullable<z.ZodString>;
18
+ }, z.core.$loose>>;
19
+ meta: z.ZodNullable<z.ZodObject<{
20
+ next_page: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
21
+ prev_page: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
22
+ total_count: z.ZodNullable<z.ZodNumber>;
23
+ total_pages: z.ZodNullable<z.ZodNumber>;
24
+ current_page: z.ZodNullable<z.ZodNumber>;
25
+ }, z.core.$loose>>;
26
+ }, z.core.$loose>;
27
+ declare const payhereListCustomers: import("@keystrokehq/action").WorkflowActionDefinition<{
28
+ page?: number | undefined;
29
+ per_page?: number | undefined;
30
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
31
  //#endregion
8
32
  export { payhereListCustomers };
9
33
  //# sourceMappingURL=list-customers.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-customers.d.mts","names":[],"sources":["../../src/actions/list-customers.ts"],"mappings":";;;cAIa,yBAAA,EAA2B,CAAA,CAAE,UAGiC;AAAA,cAmB9D,0BAAA,EAA4B,CAAA,CAAE,UAGS;AAAA,cAEvC,oBAAA,gCAAoB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"list-customers.d.mts","names":[],"sources":["../../src/actions/list-customers.ts"],"mappings":";;;cAIa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;cAsBzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;cAK1B,oBAAA,gCAAoB,wBAAA"}
@@ -5,24 +5,24 @@ const PayhereListCustomersInput = z.object({
5
5
  page: z.number().int().describe("Page number for pagination. Use to navigate through paginated results.").optional(),
6
6
  per_page: z.number().int().describe("Records per page. Default is 20, maximum is 100.").optional()
7
7
  }).describe("Request model for listing customers with pagination options.");
8
- const PayhereListCustomers_CustomerLocationSchema = z.object({}).describe("Location information for a customer.");
8
+ const PayhereListCustomers_CustomerLocationSchema = z.record(z.string(), z.unknown()).describe("Location information for a customer.");
9
9
  const PayhereListCustomers_CustomerSchema = z.object({
10
- id: z.number().int().describe("Unique customer identifier."),
11
- name: z.string().describe("Customer name."),
12
- type: z.string().describe("Resource type, always 'customers'."),
13
- email: z.string().describe("Customer email address."),
10
+ id: z.number().int().describe("Unique customer identifier.").nullable(),
11
+ name: z.string().describe("Customer name.").nullable(),
12
+ type: z.string().describe("Resource type, always 'customers'.").nullable(),
13
+ email: z.string().describe("Customer email address.").nullable(),
14
14
  location: PayhereListCustomers_CustomerLocationSchema.nullable().optional(),
15
- created_at: z.string().describe("ISO 8601 timestamp when customer was created."),
15
+ created_at: z.string().describe("ISO 8601 timestamp when customer was created.").nullable(),
16
16
  ip_address: z.string().describe("IP address of customer if available.").nullable().optional(),
17
- updated_at: z.string().describe("ISO 8601 timestamp when customer was last updated.")
18
- }).describe("Individual customer record.");
17
+ updated_at: z.string().describe("ISO 8601 timestamp when customer was last updated.").nullable()
18
+ }).passthrough().describe("Individual customer record.");
19
19
  const PayhereListCustomers_ListCustomersMetaSchema = z.object({
20
20
  next_page: z.number().int().describe("Next page number if available.").nullable().optional(),
21
21
  prev_page: z.number().int().describe("Previous page number if available.").nullable().optional(),
22
- total_count: z.number().int().describe("Total number of customers."),
23
- total_pages: z.number().int().describe("Total number of pages."),
24
- current_page: z.number().int().describe("Current page number.")
25
- }).describe("Pagination metadata for the list customers response.");
22
+ total_count: z.number().int().describe("Total number of customers.").nullable(),
23
+ total_pages: z.number().int().describe("Total number of pages.").nullable(),
24
+ current_page: z.number().int().describe("Current page number.").nullable()
25
+ }).passthrough().describe("Pagination metadata for the list customers response.");
26
26
  const payhereListCustomers = action("PAYHERE_LIST_CUSTOMERS", {
27
27
  slug: "payhere-list-customers",
28
28
  name: "List Customers",
@@ -31,7 +31,7 @@ const payhereListCustomers = action("PAYHERE_LIST_CUSTOMERS", {
31
31
  output: z.object({
32
32
  data: z.array(PayhereListCustomers_CustomerSchema).describe("List of customers ordered chronologically, most recent first."),
33
33
  meta: PayhereListCustomers_ListCustomersMetaSchema.nullable()
34
- }).describe("Response model for listing customers.")
34
+ }).passthrough().describe("Response model for listing customers.")
35
35
  });
36
36
  //#endregion
37
37
  export { payhereListCustomers };
@@ -1 +1 @@
1
- {"version":3,"file":"list-customers.mjs","names":[],"sources":["../../src/actions/list-customers.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PayhereListCustomersInput: z.ZodTypeAny = z.object({\n page: z.number().int().describe(\"Page number for pagination. Use to navigate through paginated results.\").optional(),\n per_page: z.number().int().describe(\"Records per page. Default is 20, maximum is 100.\").optional(),\n}).describe(\"Request model for listing customers with pagination options.\");\nconst PayhereListCustomers_CustomerLocationSchema: z.ZodTypeAny = z.object({}).describe(\"Location information for a customer.\");\nconst PayhereListCustomers_CustomerSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique customer identifier.\"),\n name: z.string().describe(\"Customer name.\"),\n type: z.string().describe(\"Resource type, always 'customers'.\"),\n email: z.string().describe(\"Customer email address.\"),\n location: PayhereListCustomers_CustomerLocationSchema.nullable().optional(),\n created_at: z.string().describe(\"ISO 8601 timestamp when customer was created.\"),\n ip_address: z.string().describe(\"IP address of customer if available.\").nullable().optional(),\n updated_at: z.string().describe(\"ISO 8601 timestamp when customer was last updated.\"),\n}).describe(\"Individual customer record.\");\nconst PayhereListCustomers_ListCustomersMetaSchema: z.ZodTypeAny = z.object({\n next_page: z.number().int().describe(\"Next page number if available.\").nullable().optional(),\n prev_page: z.number().int().describe(\"Previous page number if available.\").nullable().optional(),\n total_count: z.number().int().describe(\"Total number of customers.\"),\n total_pages: z.number().int().describe(\"Total number of pages.\"),\n current_page: z.number().int().describe(\"Current page number.\"),\n}).describe(\"Pagination metadata for the list customers response.\");\nexport const PayhereListCustomersOutput: z.ZodTypeAny = z.object({\n data: z.array(PayhereListCustomers_CustomerSchema).describe(\"List of customers ordered chronologically, most recent first.\"),\n meta: PayhereListCustomers_ListCustomersMetaSchema.nullable(),\n}).describe(\"Response model for listing customers.\");\n\nexport const payhereListCustomers = action(\"PAYHERE_LIST_CUSTOMERS\", {\n slug: \"payhere-list-customers\",\n name: \"List Customers\",\n description: \"Tool to list all customers from Payhere, ordered chronologically with most recent first. Use when you need to retrieve customer records, browse customers, or access customer information. Supports pagination via page and per_page parameters.\",\n input: PayhereListCustomersInput,\n output: PayhereListCustomersOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA0C,EAAE,OAAO;CAC9D,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,SAAS;CACnH,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;AACnG,CAAC,CAAC,CAAC,SAAS,8DAA8D;AAC1E,MAAM,8CAA4D,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,sCAAsC;AAC9H,MAAM,sCAAoD,EAAE,OAAO;CACjE,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6BAA6B;CAC3D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB;CAC1C,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC;CAC9D,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB;CACpD,UAAU,4CAA4C,SAAS,CAAC,CAAC,SAAS;CAC1E,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C;CAC/E,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5F,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD;AACtF,CAAC,CAAC,CAAC,SAAS,6BAA6B;AACzC,MAAM,+CAA6D,EAAE,OAAO;CAC1E,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3F,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/F,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4BAA4B;CACnE,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wBAAwB;CAC/D,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sBAAsB;AAChE,CAAC,CAAC,CAAC,SAAS,sDAAsD;AAMlE,MAAa,uBAAuB,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAVsD,EAAE,OAAO;EAC/D,MAAM,EAAE,MAAM,mCAAmC,CAAC,CAAC,SAAS,+DAA+D;EAC3H,MAAM,6CAA6C,SAAS;CAC9D,CAAC,CAAC,CAAC,SAAS,uCAOF;AACV,CAAC"}
1
+ {"version":3,"file":"list-customers.mjs","names":[],"sources":["../../src/actions/list-customers.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PayhereListCustomersInput = z.object({\n page: z.number().int().describe(\"Page number for pagination. Use to navigate through paginated results.\").optional(),\n per_page: z.number().int().describe(\"Records per page. Default is 20, maximum is 100.\").optional(),\n}).describe(\"Request model for listing customers with pagination options.\");\nconst PayhereListCustomers_CustomerLocationSchema = z.record(z.string(), z.unknown()).describe(\"Location information for a customer.\");\nconst PayhereListCustomers_CustomerSchema = z.object({\n id: z.number().int().describe(\"Unique customer identifier.\").nullable(),\n name: z.string().describe(\"Customer name.\").nullable(),\n type: z.string().describe(\"Resource type, always 'customers'.\").nullable(),\n email: z.string().describe(\"Customer email address.\").nullable(),\n location: PayhereListCustomers_CustomerLocationSchema.nullable().optional(),\n created_at: z.string().describe(\"ISO 8601 timestamp when customer was created.\").nullable(),\n ip_address: z.string().describe(\"IP address of customer if available.\").nullable().optional(),\n updated_at: z.string().describe(\"ISO 8601 timestamp when customer was last updated.\").nullable(),\n}).passthrough().describe(\"Individual customer record.\");\nconst PayhereListCustomers_ListCustomersMetaSchema = z.object({\n next_page: z.number().int().describe(\"Next page number if available.\").nullable().optional(),\n prev_page: z.number().int().describe(\"Previous page number if available.\").nullable().optional(),\n total_count: z.number().int().describe(\"Total number of customers.\").nullable(),\n total_pages: z.number().int().describe(\"Total number of pages.\").nullable(),\n current_page: z.number().int().describe(\"Current page number.\").nullable(),\n}).passthrough().describe(\"Pagination metadata for the list customers response.\");\nexport const PayhereListCustomersOutput = z.object({\n data: z.array(PayhereListCustomers_CustomerSchema).describe(\"List of customers ordered chronologically, most recent first.\"),\n meta: PayhereListCustomers_ListCustomersMetaSchema.nullable(),\n}).passthrough().describe(\"Response model for listing customers.\");\n\nexport const payhereListCustomers = action(\"PAYHERE_LIST_CUSTOMERS\", {\n slug: \"payhere-list-customers\",\n name: \"List Customers\",\n description: \"Tool to list all customers from Payhere, ordered chronologically with most recent first. Use when you need to retrieve customer records, browse customers, or access customer information. Supports pagination via page and per_page parameters.\",\n input: PayhereListCustomersInput,\n output: PayhereListCustomersOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4B,EAAE,OAAO;CAChD,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,SAAS;CACnH,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;AACnG,CAAC,CAAC,CAAC,SAAS,8DAA8D;AAC1E,MAAM,8CAA8C,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,sCAAsC;AACrI,MAAM,sCAAsC,EAAE,OAAO;CACnD,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CACtE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB,CAAC,CAAC,SAAS;CACrD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CACzE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;CAC/D,UAAU,4CAA4C,SAAS,CAAC,CAAC,SAAS;CAC1E,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CAC1F,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5F,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;AACjG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6BAA6B;AACvD,MAAM,+CAA+C,EAAE,OAAO;CAC5D,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3F,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/F,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CAC9E,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;CAC1E,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;AAC3E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sDAAsD;AAMhF,MAAa,uBAAuB,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAVwC,EAAE,OAAO;EACjD,MAAM,EAAE,MAAM,mCAAmC,CAAC,CAAC,SAAS,+DAA+D;EAC3H,MAAM,6CAA6C,SAAS;CAC9D,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uCAOhB;AACV,CAAC"}
@@ -3,16 +3,16 @@ let zod = require("zod");
3
3
  //#region src/actions/list-hooks.ts
4
4
  const PayhereListHooksInput = zod.z.object({}).describe("Request model for listing all active REST hooks subscriptions.");
5
5
  const PayhereListHooks_HookSchema = zod.z.object({
6
- id: zod.z.number().int().describe("Unique identifier for the hook subscription."),
7
- type: zod.z.string().describe("Hook type, value: 'rest_hooks'."),
8
- post_url: zod.z.string().describe("Target URL where webhook events will be sent."),
9
- resource: zod.z.string().describe("Event type being monitored. Possible values: 'payment_received', 'subscription_cancelled', 'subscription_created'."),
10
- company_id: zod.z.number().int().describe("ID of the company that owns this hook."),
11
- created_at: zod.z.string().describe("ISO 8601 timestamp of when the hook was created."),
12
- updated_at: zod.z.string().describe("ISO 8601 timestamp of when the hook was last updated."),
13
- integration: zod.z.string().describe("Integration identifier.")
14
- }).describe("Represents a REST hook subscription.");
15
- const PayhereListHooksOutput = zod.z.object({ data: zod.z.array(PayhereListHooks_HookSchema).describe("List of active REST hook subscriptions.") }).describe("Response model for listing all active REST hooks subscriptions.");
6
+ id: zod.z.number().int().describe("Unique identifier for the hook subscription.").nullable(),
7
+ type: zod.z.string().describe("Hook type, value: 'rest_hooks'.").nullable(),
8
+ post_url: zod.z.string().describe("Target URL where webhook events will be sent.").nullable(),
9
+ resource: zod.z.string().describe("Event type being monitored. Possible values: 'payment_received', 'subscription_cancelled', 'subscription_created'.").nullable(),
10
+ company_id: zod.z.number().int().describe("ID of the company that owns this hook.").nullable(),
11
+ created_at: zod.z.string().describe("ISO 8601 timestamp of when the hook was created.").nullable(),
12
+ updated_at: zod.z.string().describe("ISO 8601 timestamp of when the hook was last updated.").nullable(),
13
+ integration: zod.z.string().describe("Integration identifier.").nullable()
14
+ }).passthrough().describe("Represents a REST hook subscription.");
15
+ const PayhereListHooksOutput = zod.z.object({ data: zod.z.array(PayhereListHooks_HookSchema).describe("List of active REST hook subscriptions.") }).passthrough().describe("Response model for listing all active REST hooks subscriptions.");
16
16
  const payhereListHooks = require_action.action("PAYHERE_LIST_HOOKS", {
17
17
  slug: "payhere-list-hooks",
18
18
  name: "List REST Hooks",
@@ -1 +1 @@
1
- {"version":3,"file":"list-hooks.cjs","names":["z","action"],"sources":["../../src/actions/list-hooks.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PayhereListHooksInput: z.ZodTypeAny = z.object({}).describe(\"Request model for listing all active REST hooks subscriptions.\");\nconst PayhereListHooks_HookSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique identifier for the hook subscription.\"),\n type: z.string().describe(\"Hook type, value: 'rest_hooks'.\"),\n post_url: z.string().describe(\"Target URL where webhook events will be sent.\"),\n resource: z.string().describe(\"Event type being monitored. Possible values: 'payment_received', 'subscription_cancelled', 'subscription_created'.\"),\n company_id: z.number().int().describe(\"ID of the company that owns this hook.\"),\n created_at: z.string().describe(\"ISO 8601 timestamp of when the hook was created.\"),\n updated_at: z.string().describe(\"ISO 8601 timestamp of when the hook was last updated.\"),\n integration: z.string().describe(\"Integration identifier.\"),\n}).describe(\"Represents a REST hook subscription.\");\nexport const PayhereListHooksOutput: z.ZodTypeAny = z.object({\n data: z.array(PayhereListHooks_HookSchema).describe(\"List of active REST hook subscriptions.\"),\n}).describe(\"Response model for listing all active REST hooks subscriptions.\");\n\nexport const payhereListHooks = action(\"PAYHERE_LIST_HOOKS\", {\n slug: \"payhere-list-hooks\",\n name: \"List REST Hooks\",\n description: \"Tool to list all active REST hooks subscriptions for the authenticated company. Use when you need to view all currently registered webhook listeners for your PayHere account.\",\n input: PayhereListHooksInput,\n output: PayhereListHooksOutput,\n});\n"],"mappings":";;;AAIA,MAAa,wBAAsCA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,gEAAgE;AACzI,MAAM,8BAA4CA,IAAAA,EAAE,OAAO;CACzD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8CAA8C;CAC5E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC;CAC3D,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C;CAC7E,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oHAAoH;CAClJ,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wCAAwC;CAC9E,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD;CAClF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD;CACvF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB;AAC5D,CAAC,CAAC,CAAC,SAAS,sCAAsC;AAClD,MAAa,yBAAuCA,IAAAA,EAAE,OAAO,EAC3D,MAAMA,IAAAA,EAAE,MAAM,2BAA2B,CAAC,CAAC,SAAS,yCAAyC,EAC/F,CAAC,CAAC,CAAC,SAAS,iEAAiE;AAE7E,MAAa,mBAAmBC,eAAAA,OAAO,sBAAsB;CAC3D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"list-hooks.cjs","names":["z","action"],"sources":["../../src/actions/list-hooks.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PayhereListHooksInput = z.object({}).describe(\"Request model for listing all active REST hooks subscriptions.\");\nconst PayhereListHooks_HookSchema = z.object({\n id: z.number().int().describe(\"Unique identifier for the hook subscription.\").nullable(),\n type: z.string().describe(\"Hook type, value: 'rest_hooks'.\").nullable(),\n post_url: z.string().describe(\"Target URL where webhook events will be sent.\").nullable(),\n resource: z.string().describe(\"Event type being monitored. Possible values: 'payment_received', 'subscription_cancelled', 'subscription_created'.\").nullable(),\n company_id: z.number().int().describe(\"ID of the company that owns this hook.\").nullable(),\n created_at: z.string().describe(\"ISO 8601 timestamp of when the hook was created.\").nullable(),\n updated_at: z.string().describe(\"ISO 8601 timestamp of when the hook was last updated.\").nullable(),\n integration: z.string().describe(\"Integration identifier.\").nullable(),\n}).passthrough().describe(\"Represents a REST hook subscription.\");\nexport const PayhereListHooksOutput = z.object({\n data: z.array(PayhereListHooks_HookSchema).describe(\"List of active REST hook subscriptions.\"),\n}).passthrough().describe(\"Response model for listing all active REST hooks subscriptions.\");\n\nexport const payhereListHooks = action(\"PAYHERE_LIST_HOOKS\", {\n slug: \"payhere-list-hooks\",\n name: \"List REST Hooks\",\n description: \"Tool to list all active REST hooks subscriptions for the authenticated company. Use when you need to view all currently registered webhook listeners for your PayHere account.\",\n input: PayhereListHooksInput,\n output: PayhereListHooksOutput,\n});\n"],"mappings":";;;AAIA,MAAa,wBAAwBA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,gEAAgE;AAC3H,MAAM,8BAA8BA,IAAAA,EAAE,OAAO;CAC3C,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CACvF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CACtE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CACxF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oHAAoH,CAAC,CAAC,SAAS;CAC7J,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CACzF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;CAC7F,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;CAClG,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;AACvE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sCAAsC;AAChE,MAAa,yBAAyBA,IAAAA,EAAE,OAAO,EAC7C,MAAMA,IAAAA,EAAE,MAAM,2BAA2B,CAAC,CAAC,SAAS,yCAAyC,EAC/F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iEAAiE;AAE3F,MAAa,mBAAmBC,eAAAA,OAAO,sBAAsB;CAC3D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,20 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/list-hooks.d.ts
4
- declare const PayhereListHooksInput: z.ZodTypeAny;
5
- declare const PayhereListHooksOutput: z.ZodTypeAny;
6
- declare const payhereListHooks: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const PayhereListHooksInput: z.ZodObject<{}, z.core.$strip>;
5
+ declare const PayhereListHooksOutput: z.ZodObject<{
6
+ data: z.ZodArray<z.ZodObject<{
7
+ id: z.ZodNullable<z.ZodNumber>;
8
+ type: z.ZodNullable<z.ZodString>;
9
+ post_url: z.ZodNullable<z.ZodString>;
10
+ resource: z.ZodNullable<z.ZodString>;
11
+ company_id: z.ZodNullable<z.ZodNumber>;
12
+ created_at: z.ZodNullable<z.ZodString>;
13
+ updated_at: z.ZodNullable<z.ZodString>;
14
+ integration: z.ZodNullable<z.ZodString>;
15
+ }, z.core.$loose>>;
16
+ }, z.core.$loose>;
17
+ declare const payhereListHooks: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
18
  //#endregion
8
19
  export { payhereListHooks };
9
20
  //# sourceMappingURL=list-hooks.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-hooks.d.cts","names":[],"sources":["../../src/actions/list-hooks.ts"],"mappings":";;;cAIa,qBAAA,EAAuB,CAAA,CAAE,UAAoG;AAAA,cAW7H,sBAAA,EAAwB,CAAA,CAAE,UAEuC;AAAA,cAEjE,gBAAA,gCAAgB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"list-hooks.d.cts","names":[],"sources":["../../src/actions/list-hooks.ts"],"mappings":";;;cAIa,qBAAA,EAAqB,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAWrB,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;;;;;;;;cAItB,gBAAA,gCAAgB,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -1,9 +1,20 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/list-hooks.d.ts
4
- declare const PayhereListHooksInput: z.ZodTypeAny;
5
- declare const PayhereListHooksOutput: z.ZodTypeAny;
6
- declare const payhereListHooks: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const PayhereListHooksInput: z.ZodObject<{}, z.core.$strip>;
5
+ declare const PayhereListHooksOutput: z.ZodObject<{
6
+ data: z.ZodArray<z.ZodObject<{
7
+ id: z.ZodNullable<z.ZodNumber>;
8
+ type: z.ZodNullable<z.ZodString>;
9
+ post_url: z.ZodNullable<z.ZodString>;
10
+ resource: z.ZodNullable<z.ZodString>;
11
+ company_id: z.ZodNullable<z.ZodNumber>;
12
+ created_at: z.ZodNullable<z.ZodString>;
13
+ updated_at: z.ZodNullable<z.ZodString>;
14
+ integration: z.ZodNullable<z.ZodString>;
15
+ }, z.core.$loose>>;
16
+ }, z.core.$loose>;
17
+ declare const payhereListHooks: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
18
  //#endregion
8
19
  export { payhereListHooks };
9
20
  //# sourceMappingURL=list-hooks.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-hooks.d.mts","names":[],"sources":["../../src/actions/list-hooks.ts"],"mappings":";;;cAIa,qBAAA,EAAuB,CAAA,CAAE,UAAoG;AAAA,cAW7H,sBAAA,EAAwB,CAAA,CAAE,UAEuC;AAAA,cAEjE,gBAAA,gCAAgB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"list-hooks.d.mts","names":[],"sources":["../../src/actions/list-hooks.ts"],"mappings":";;;cAIa,qBAAA,EAAqB,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAWrB,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;;;;;;;;cAItB,gBAAA,gCAAgB,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -3,21 +3,21 @@ import { z } from "zod";
3
3
  //#region src/actions/list-hooks.ts
4
4
  const PayhereListHooksInput = z.object({}).describe("Request model for listing all active REST hooks subscriptions.");
5
5
  const PayhereListHooks_HookSchema = z.object({
6
- id: z.number().int().describe("Unique identifier for the hook subscription."),
7
- type: z.string().describe("Hook type, value: 'rest_hooks'."),
8
- post_url: z.string().describe("Target URL where webhook events will be sent."),
9
- resource: z.string().describe("Event type being monitored. Possible values: 'payment_received', 'subscription_cancelled', 'subscription_created'."),
10
- company_id: z.number().int().describe("ID of the company that owns this hook."),
11
- created_at: z.string().describe("ISO 8601 timestamp of when the hook was created."),
12
- updated_at: z.string().describe("ISO 8601 timestamp of when the hook was last updated."),
13
- integration: z.string().describe("Integration identifier.")
14
- }).describe("Represents a REST hook subscription.");
6
+ id: z.number().int().describe("Unique identifier for the hook subscription.").nullable(),
7
+ type: z.string().describe("Hook type, value: 'rest_hooks'.").nullable(),
8
+ post_url: z.string().describe("Target URL where webhook events will be sent.").nullable(),
9
+ resource: z.string().describe("Event type being monitored. Possible values: 'payment_received', 'subscription_cancelled', 'subscription_created'.").nullable(),
10
+ company_id: z.number().int().describe("ID of the company that owns this hook.").nullable(),
11
+ created_at: z.string().describe("ISO 8601 timestamp of when the hook was created.").nullable(),
12
+ updated_at: z.string().describe("ISO 8601 timestamp of when the hook was last updated.").nullable(),
13
+ integration: z.string().describe("Integration identifier.").nullable()
14
+ }).passthrough().describe("Represents a REST hook subscription.");
15
15
  const payhereListHooks = action("PAYHERE_LIST_HOOKS", {
16
16
  slug: "payhere-list-hooks",
17
17
  name: "List REST Hooks",
18
18
  description: "Tool to list all active REST hooks subscriptions for the authenticated company. Use when you need to view all currently registered webhook listeners for your PayHere account.",
19
19
  input: PayhereListHooksInput,
20
- output: z.object({ data: z.array(PayhereListHooks_HookSchema).describe("List of active REST hook subscriptions.") }).describe("Response model for listing all active REST hooks subscriptions.")
20
+ output: z.object({ data: z.array(PayhereListHooks_HookSchema).describe("List of active REST hook subscriptions.") }).passthrough().describe("Response model for listing all active REST hooks subscriptions.")
21
21
  });
22
22
  //#endregion
23
23
  export { payhereListHooks };
@@ -1 +1 @@
1
- {"version":3,"file":"list-hooks.mjs","names":[],"sources":["../../src/actions/list-hooks.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PayhereListHooksInput: z.ZodTypeAny = z.object({}).describe(\"Request model for listing all active REST hooks subscriptions.\");\nconst PayhereListHooks_HookSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique identifier for the hook subscription.\"),\n type: z.string().describe(\"Hook type, value: 'rest_hooks'.\"),\n post_url: z.string().describe(\"Target URL where webhook events will be sent.\"),\n resource: z.string().describe(\"Event type being monitored. Possible values: 'payment_received', 'subscription_cancelled', 'subscription_created'.\"),\n company_id: z.number().int().describe(\"ID of the company that owns this hook.\"),\n created_at: z.string().describe(\"ISO 8601 timestamp of when the hook was created.\"),\n updated_at: z.string().describe(\"ISO 8601 timestamp of when the hook was last updated.\"),\n integration: z.string().describe(\"Integration identifier.\"),\n}).describe(\"Represents a REST hook subscription.\");\nexport const PayhereListHooksOutput: z.ZodTypeAny = z.object({\n data: z.array(PayhereListHooks_HookSchema).describe(\"List of active REST hook subscriptions.\"),\n}).describe(\"Response model for listing all active REST hooks subscriptions.\");\n\nexport const payhereListHooks = action(\"PAYHERE_LIST_HOOKS\", {\n slug: \"payhere-list-hooks\",\n name: \"List REST Hooks\",\n description: \"Tool to list all active REST hooks subscriptions for the authenticated company. Use when you need to view all currently registered webhook listeners for your PayHere account.\",\n input: PayhereListHooksInput,\n output: PayhereListHooksOutput,\n});\n"],"mappings":";;;AAIA,MAAa,wBAAsC,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,gEAAgE;AACzI,MAAM,8BAA4C,EAAE,OAAO;CACzD,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8CAA8C;CAC5E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC;CAC3D,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C;CAC7E,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,oHAAoH;CAClJ,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wCAAwC;CAC9E,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD;CAClF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD;CACvF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB;AAC5D,CAAC,CAAC,CAAC,SAAS,sCAAsC;AAKlD,MAAa,mBAAmB,OAAO,sBAAsB;CAC3D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATkD,EAAE,OAAO,EAC3D,MAAM,EAAE,MAAM,2BAA2B,CAAC,CAAC,SAAS,yCAAyC,EAC/F,CAAC,CAAC,CAAC,SAAS,iEAOF;AACV,CAAC"}
1
+ {"version":3,"file":"list-hooks.mjs","names":[],"sources":["../../src/actions/list-hooks.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PayhereListHooksInput = z.object({}).describe(\"Request model for listing all active REST hooks subscriptions.\");\nconst PayhereListHooks_HookSchema = z.object({\n id: z.number().int().describe(\"Unique identifier for the hook subscription.\").nullable(),\n type: z.string().describe(\"Hook type, value: 'rest_hooks'.\").nullable(),\n post_url: z.string().describe(\"Target URL where webhook events will be sent.\").nullable(),\n resource: z.string().describe(\"Event type being monitored. Possible values: 'payment_received', 'subscription_cancelled', 'subscription_created'.\").nullable(),\n company_id: z.number().int().describe(\"ID of the company that owns this hook.\").nullable(),\n created_at: z.string().describe(\"ISO 8601 timestamp of when the hook was created.\").nullable(),\n updated_at: z.string().describe(\"ISO 8601 timestamp of when the hook was last updated.\").nullable(),\n integration: z.string().describe(\"Integration identifier.\").nullable(),\n}).passthrough().describe(\"Represents a REST hook subscription.\");\nexport const PayhereListHooksOutput = z.object({\n data: z.array(PayhereListHooks_HookSchema).describe(\"List of active REST hook subscriptions.\"),\n}).passthrough().describe(\"Response model for listing all active REST hooks subscriptions.\");\n\nexport const payhereListHooks = action(\"PAYHERE_LIST_HOOKS\", {\n slug: \"payhere-list-hooks\",\n name: \"List REST Hooks\",\n description: \"Tool to list all active REST hooks subscriptions for the authenticated company. Use when you need to view all currently registered webhook listeners for your PayHere account.\",\n input: PayhereListHooksInput,\n output: PayhereListHooksOutput,\n});\n"],"mappings":";;;AAIA,MAAa,wBAAwB,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,gEAAgE;AAC3H,MAAM,8BAA8B,EAAE,OAAO;CAC3C,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CACvF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CACtE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CACxF,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,oHAAoH,CAAC,CAAC,SAAS;CAC7J,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CACzF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;CAC7F,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;CAClG,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;AACvE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sCAAsC;AAKhE,MAAa,mBAAmB,OAAO,sBAAsB;CAC3D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAToC,EAAE,OAAO,EAC7C,MAAM,EAAE,MAAM,2BAA2B,CAAC,CAAC,SAAS,yCAAyC,EAC/F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iEAOhB;AACV,CAAC"}
@@ -6,35 +6,35 @@ const PayhereListPaymentsInput = zod.z.object({
6
6
  per_page: zod.z.number().int().describe("Number of records per page (default: 20, maximum: 100).").optional()
7
7
  }).describe("Request model for listing payments with pagination options.");
8
8
  const PayhereListPayments_PaymentItemSchema = zod.z.object({
9
- id: zod.z.number().int().describe("Unique payment identifier."),
10
- type: zod.z.string().describe("Resource type identifier."),
11
- amount: zod.z.number().describe("Payment amount as a number."),
12
- hashid: zod.z.string().describe("Hashed payment ID."),
13
- status: zod.z.string().describe("Payment status (e.g., 'success', 'part_refund', 'failed')."),
14
- success: zod.z.boolean().describe("Whether payment succeeded."),
15
- currency: zod.z.string().describe("Currency code (e.g., 'gbp', 'usd')."),
16
- reference: zod.z.string().describe("Payment reference number."),
17
- card_brand: zod.z.string().describe("Card type (e.g., 'visa', 'mastercard')."),
18
- card_last4: zod.z.string().describe("Last 4 digits of card number."),
19
- company_id: zod.z.number().int().describe("Associated company identifier."),
20
- created_at: zod.z.string().describe("Creation timestamp."),
21
- updated_at: zod.z.string().describe("Last update timestamp."),
22
- amount_paid: zod.z.number().describe("Net amount paid after refunds."),
23
- secure_token: zod.z.string().describe("Security token for the payment."),
24
- refund_amount: zod.z.number().describe("Amount refunded."),
25
- formatted_amount: zod.z.string().describe("Amount with currency symbol formatted as string.")
26
- }).describe("Individual payment object with all relevant details.");
9
+ id: zod.z.number().int().describe("Unique payment identifier.").nullable(),
10
+ type: zod.z.string().describe("Resource type identifier.").nullable(),
11
+ amount: zod.z.number().describe("Payment amount as a number.").nullable(),
12
+ hashid: zod.z.string().describe("Hashed payment ID.").nullable(),
13
+ status: zod.z.string().describe("Payment status (e.g., 'success', 'part_refund', 'failed').").nullable(),
14
+ success: zod.z.boolean().describe("Whether payment succeeded.").nullable(),
15
+ currency: zod.z.string().describe("Currency code (e.g., 'gbp', 'usd').").nullable(),
16
+ reference: zod.z.string().describe("Payment reference number.").nullable(),
17
+ card_brand: zod.z.string().describe("Card type (e.g., 'visa', 'mastercard').").nullable(),
18
+ card_last4: zod.z.string().describe("Last 4 digits of card number.").nullable(),
19
+ company_id: zod.z.number().int().describe("Associated company identifier.").nullable(),
20
+ created_at: zod.z.string().describe("Creation timestamp.").nullable(),
21
+ updated_at: zod.z.string().describe("Last update timestamp.").nullable(),
22
+ amount_paid: zod.z.number().describe("Net amount paid after refunds.").nullable(),
23
+ secure_token: zod.z.string().describe("Security token for the payment.").nullable(),
24
+ refund_amount: zod.z.number().describe("Amount refunded.").nullable(),
25
+ formatted_amount: zod.z.string().describe("Amount with currency symbol formatted as string.").nullable()
26
+ }).passthrough().describe("Individual payment object with all relevant details.");
27
27
  const PayhereListPayments_PaginationMetaSchema = zod.z.object({
28
28
  next_page: zod.z.number().int().describe("Next page number if available.").nullable().optional(),
29
29
  prev_page: zod.z.number().int().describe("Previous page number if available.").nullable().optional(),
30
- total_count: zod.z.number().int().describe("Total number of records."),
31
- total_pages: zod.z.number().int().describe("Total number of pages."),
32
- current_page: zod.z.number().int().describe("Current page number.")
33
- }).describe("Pagination metadata for the response.");
30
+ total_count: zod.z.number().int().describe("Total number of records.").nullable(),
31
+ total_pages: zod.z.number().int().describe("Total number of pages.").nullable(),
32
+ current_page: zod.z.number().int().describe("Current page number.").nullable()
33
+ }).passthrough().describe("Pagination metadata for the response.");
34
34
  const PayhereListPaymentsOutput = zod.z.object({
35
35
  data: zod.z.array(PayhereListPayments_PaymentItemSchema).describe("Array of payment objects ordered chronologically, most recent first."),
36
36
  meta: PayhereListPayments_PaginationMetaSchema.nullable()
37
- }).describe("Response model for listing payments with pagination metadata.");
37
+ }).passthrough().describe("Response model for listing payments with pagination metadata.");
38
38
  const payhereListPayments = require_action.action("PAYHERE_LIST_PAYMENTS", {
39
39
  slug: "payhere-list-payments",
40
40
  name: "List Payments",
@@ -1 +1 @@
1
- {"version":3,"file":"list-payments.cjs","names":["z","action"],"sources":["../../src/actions/list-payments.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PayhereListPaymentsInput: z.ZodTypeAny = z.object({\n page: z.number().int().describe(\"Page number for pagination.\").optional(),\n per_page: z.number().int().describe(\"Number of records per page (default: 20, maximum: 100).\").optional(),\n}).describe(\"Request model for listing payments with pagination options.\");\nconst PayhereListPayments_PaymentItemSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique payment identifier.\"),\n type: z.string().describe(\"Resource type identifier.\"),\n amount: z.number().describe(\"Payment amount as a number.\"),\n hashid: z.string().describe(\"Hashed payment ID.\"),\n status: z.string().describe(\"Payment status (e.g., 'success', 'part_refund', 'failed').\"),\n success: z.boolean().describe(\"Whether payment succeeded.\"),\n currency: z.string().describe(\"Currency code (e.g., 'gbp', 'usd').\"),\n reference: z.string().describe(\"Payment reference number.\"),\n card_brand: z.string().describe(\"Card type (e.g., 'visa', 'mastercard').\"),\n card_last4: z.string().describe(\"Last 4 digits of card number.\"),\n company_id: z.number().int().describe(\"Associated company identifier.\"),\n created_at: z.string().describe(\"Creation timestamp.\"),\n updated_at: z.string().describe(\"Last update timestamp.\"),\n amount_paid: z.number().describe(\"Net amount paid after refunds.\"),\n secure_token: z.string().describe(\"Security token for the payment.\"),\n refund_amount: z.number().describe(\"Amount refunded.\"),\n formatted_amount: z.string().describe(\"Amount with currency symbol formatted as string.\"),\n}).describe(\"Individual payment object with all relevant details.\");\nconst PayhereListPayments_PaginationMetaSchema: z.ZodTypeAny = z.object({\n next_page: z.number().int().describe(\"Next page number if available.\").nullable().optional(),\n prev_page: z.number().int().describe(\"Previous page number if available.\").nullable().optional(),\n total_count: z.number().int().describe(\"Total number of records.\"),\n total_pages: z.number().int().describe(\"Total number of pages.\"),\n current_page: z.number().int().describe(\"Current page number.\"),\n}).describe(\"Pagination metadata for the response.\");\nexport const PayhereListPaymentsOutput: z.ZodTypeAny = z.object({\n data: z.array(PayhereListPayments_PaymentItemSchema).describe(\"Array of payment objects ordered chronologically, most recent first.\"),\n meta: PayhereListPayments_PaginationMetaSchema.nullable(),\n}).describe(\"Response model for listing payments with pagination metadata.\");\n\nexport const payhereListPayments = action(\"PAYHERE_LIST_PAYMENTS\", {\n slug: \"payhere-list-payments\",\n name: \"List Payments\",\n description: \"Tool to list all payments ordered chronologically, most recent first. Use when you need to retrieve payment history or check payment statuses. Supports pagination with page and per_page parameters.\",\n input: PayhereListPaymentsInput,\n output: PayhereListPaymentsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAAyCA,IAAAA,EAAE,OAAO;CAC7D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CACxE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;AAC1G,CAAC,CAAC,CAAC,SAAS,6DAA6D;AACzE,MAAM,wCAAsDA,IAAAA,EAAE,OAAO;CACnE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4BAA4B;CAC1D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B;CACrD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B;CACzD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB;CAChD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D;CACxF,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,4BAA4B;CAC1D,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC;CACnE,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B;CAC1D,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC;CACzE,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B;CAC/D,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gCAAgC;CACtE,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB;CACrD,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB;CACxD,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC;CACjE,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC;CACnE,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB;CACrD,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD;AAC1F,CAAC,CAAC,CAAC,SAAS,sDAAsD;AAClE,MAAM,2CAAyDA,IAAAA,EAAE,OAAO;CACtE,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3F,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/F,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0BAA0B;CACjE,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wBAAwB;CAC/D,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sBAAsB;AAChE,CAAC,CAAC,CAAC,SAAS,uCAAuC;AACnD,MAAa,4BAA0CA,IAAAA,EAAE,OAAO;CAC9D,MAAMA,IAAAA,EAAE,MAAM,qCAAqC,CAAC,CAAC,SAAS,sEAAsE;CACpI,MAAM,yCAAyC,SAAS;AAC1D,CAAC,CAAC,CAAC,SAAS,+DAA+D;AAE3E,MAAa,sBAAsBC,eAAAA,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"list-payments.cjs","names":["z","action"],"sources":["../../src/actions/list-payments.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PayhereListPaymentsInput = z.object({\n page: z.number().int().describe(\"Page number for pagination.\").optional(),\n per_page: z.number().int().describe(\"Number of records per page (default: 20, maximum: 100).\").optional(),\n}).describe(\"Request model for listing payments with pagination options.\");\nconst PayhereListPayments_PaymentItemSchema = z.object({\n id: z.number().int().describe(\"Unique payment identifier.\").nullable(),\n type: z.string().describe(\"Resource type identifier.\").nullable(),\n amount: z.number().describe(\"Payment amount as a number.\").nullable(),\n hashid: z.string().describe(\"Hashed payment ID.\").nullable(),\n status: z.string().describe(\"Payment status (e.g., 'success', 'part_refund', 'failed').\").nullable(),\n success: z.boolean().describe(\"Whether payment succeeded.\").nullable(),\n currency: z.string().describe(\"Currency code (e.g., 'gbp', 'usd').\").nullable(),\n reference: z.string().describe(\"Payment reference number.\").nullable(),\n card_brand: z.string().describe(\"Card type (e.g., 'visa', 'mastercard').\").nullable(),\n card_last4: z.string().describe(\"Last 4 digits of card number.\").nullable(),\n company_id: z.number().int().describe(\"Associated company identifier.\").nullable(),\n created_at: z.string().describe(\"Creation timestamp.\").nullable(),\n updated_at: z.string().describe(\"Last update timestamp.\").nullable(),\n amount_paid: z.number().describe(\"Net amount paid after refunds.\").nullable(),\n secure_token: z.string().describe(\"Security token for the payment.\").nullable(),\n refund_amount: z.number().describe(\"Amount refunded.\").nullable(),\n formatted_amount: z.string().describe(\"Amount with currency symbol formatted as string.\").nullable(),\n}).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,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CACxE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;AAC1G,CAAC,CAAC,CAAC,SAAS,6DAA6D;AACzE,MAAM,wCAAwCA,IAAAA,EAAE,OAAO;CACrD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CACrE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CAChE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CACpE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS;CAC3D,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;CACnG,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CACrE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CAC9E,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CACrE,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CACpF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CAC1E,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CACjF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;CAChE,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;CACnE,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CAC5E,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CAC9E,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS;CAChE,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;AACrG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sDAAsD;AAChF,MAAM,2CAA2CA,IAAAA,EAAE,OAAO;CACxD,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3F,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/F,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;CAC5E,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;CAC1E,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;AAC3E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uCAAuC;AACjE,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,MAAMA,IAAAA,EAAE,MAAM,qCAAqC,CAAC,CAAC,SAAS,sEAAsE;CACpI,MAAM,yCAAyC,SAAS;AAC1D,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+DAA+D;AAEzF,MAAa,sBAAsBC,eAAAA,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,42 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/list-payments.d.ts
4
- declare const PayhereListPaymentsInput: z.ZodTypeAny;
5
- declare const PayhereListPaymentsOutput: z.ZodTypeAny;
6
- declare const payhereListPayments: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const PayhereListPaymentsInput: z.ZodObject<{
5
+ page: z.ZodOptional<z.ZodNumber>;
6
+ per_page: z.ZodOptional<z.ZodNumber>;
7
+ }, z.core.$strip>;
8
+ declare const PayhereListPaymentsOutput: z.ZodObject<{
9
+ data: z.ZodArray<z.ZodObject<{
10
+ id: z.ZodNullable<z.ZodNumber>;
11
+ type: z.ZodNullable<z.ZodString>;
12
+ amount: z.ZodNullable<z.ZodNumber>;
13
+ hashid: z.ZodNullable<z.ZodString>;
14
+ status: z.ZodNullable<z.ZodString>;
15
+ success: z.ZodNullable<z.ZodBoolean>;
16
+ currency: z.ZodNullable<z.ZodString>;
17
+ reference: z.ZodNullable<z.ZodString>;
18
+ card_brand: z.ZodNullable<z.ZodString>;
19
+ card_last4: z.ZodNullable<z.ZodString>;
20
+ company_id: z.ZodNullable<z.ZodNumber>;
21
+ created_at: z.ZodNullable<z.ZodString>;
22
+ updated_at: z.ZodNullable<z.ZodString>;
23
+ amount_paid: z.ZodNullable<z.ZodNumber>;
24
+ secure_token: z.ZodNullable<z.ZodString>;
25
+ refund_amount: z.ZodNullable<z.ZodNumber>;
26
+ formatted_amount: z.ZodNullable<z.ZodString>;
27
+ }, z.core.$loose>>;
28
+ meta: z.ZodNullable<z.ZodObject<{
29
+ next_page: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
30
+ prev_page: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
31
+ total_count: z.ZodNullable<z.ZodNumber>;
32
+ total_pages: z.ZodNullable<z.ZodNumber>;
33
+ current_page: z.ZodNullable<z.ZodNumber>;
34
+ }, z.core.$loose>>;
35
+ }, 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]>, readonly [import("@keystrokehq/shared").Credential]>;
7
40
  //#endregion
8
41
  export { payhereListPayments };
9
42
  //# sourceMappingURL=list-payments.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-payments.d.cts","names":[],"sources":["../../src/actions/list-payments.ts"],"mappings":";;;cAIa,wBAAA,EAA0B,CAAA,CAAE,UAGiC;AAAA,cA2B7D,yBAAA,EAA2B,CAAA,CAAE,UAGkC;AAAA,cAE/D,mBAAA,gCAAmB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"list-payments.d.cts","names":[],"sources":["../../src/actions/list-payments.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;cA8BxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAKzB,mBAAA,gCAAmB,wBAAA"}
@@ -1,9 +1,42 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/list-payments.d.ts
4
- declare const PayhereListPaymentsInput: z.ZodTypeAny;
5
- declare const PayhereListPaymentsOutput: z.ZodTypeAny;
6
- declare const payhereListPayments: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const PayhereListPaymentsInput: z.ZodObject<{
5
+ page: z.ZodOptional<z.ZodNumber>;
6
+ per_page: z.ZodOptional<z.ZodNumber>;
7
+ }, z.core.$strip>;
8
+ declare const PayhereListPaymentsOutput: z.ZodObject<{
9
+ data: z.ZodArray<z.ZodObject<{
10
+ id: z.ZodNullable<z.ZodNumber>;
11
+ type: z.ZodNullable<z.ZodString>;
12
+ amount: z.ZodNullable<z.ZodNumber>;
13
+ hashid: z.ZodNullable<z.ZodString>;
14
+ status: z.ZodNullable<z.ZodString>;
15
+ success: z.ZodNullable<z.ZodBoolean>;
16
+ currency: z.ZodNullable<z.ZodString>;
17
+ reference: z.ZodNullable<z.ZodString>;
18
+ card_brand: z.ZodNullable<z.ZodString>;
19
+ card_last4: z.ZodNullable<z.ZodString>;
20
+ company_id: z.ZodNullable<z.ZodNumber>;
21
+ created_at: z.ZodNullable<z.ZodString>;
22
+ updated_at: z.ZodNullable<z.ZodString>;
23
+ amount_paid: z.ZodNullable<z.ZodNumber>;
24
+ secure_token: z.ZodNullable<z.ZodString>;
25
+ refund_amount: z.ZodNullable<z.ZodNumber>;
26
+ formatted_amount: z.ZodNullable<z.ZodString>;
27
+ }, z.core.$loose>>;
28
+ meta: z.ZodNullable<z.ZodObject<{
29
+ next_page: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
30
+ prev_page: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
31
+ total_count: z.ZodNullable<z.ZodNumber>;
32
+ total_pages: z.ZodNullable<z.ZodNumber>;
33
+ current_page: z.ZodNullable<z.ZodNumber>;
34
+ }, z.core.$loose>>;
35
+ }, 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]>, readonly [import("@keystrokehq/shared").Credential]>;
7
40
  //#endregion
8
41
  export { payhereListPayments };
9
42
  //# sourceMappingURL=list-payments.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-payments.d.mts","names":[],"sources":["../../src/actions/list-payments.ts"],"mappings":";;;cAIa,wBAAA,EAA0B,CAAA,CAAE,UAGiC;AAAA,cA2B7D,yBAAA,EAA2B,CAAA,CAAE,UAGkC;AAAA,cAE/D,mBAAA,gCAAmB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"list-payments.d.mts","names":[],"sources":["../../src/actions/list-payments.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;cA8BxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAKzB,mBAAA,gCAAmB,wBAAA"}
@@ -6,31 +6,31 @@ const PayhereListPaymentsInput = z.object({
6
6
  per_page: z.number().int().describe("Number of records per page (default: 20, maximum: 100).").optional()
7
7
  }).describe("Request model for listing payments with pagination options.");
8
8
  const PayhereListPayments_PaymentItemSchema = z.object({
9
- id: z.number().int().describe("Unique payment identifier."),
10
- type: z.string().describe("Resource type identifier."),
11
- amount: z.number().describe("Payment amount as a number."),
12
- hashid: z.string().describe("Hashed payment ID."),
13
- status: z.string().describe("Payment status (e.g., 'success', 'part_refund', 'failed')."),
14
- success: z.boolean().describe("Whether payment succeeded."),
15
- currency: z.string().describe("Currency code (e.g., 'gbp', 'usd')."),
16
- reference: z.string().describe("Payment reference number."),
17
- card_brand: z.string().describe("Card type (e.g., 'visa', 'mastercard')."),
18
- card_last4: z.string().describe("Last 4 digits of card number."),
19
- company_id: z.number().int().describe("Associated company identifier."),
20
- created_at: z.string().describe("Creation timestamp."),
21
- updated_at: z.string().describe("Last update timestamp."),
22
- amount_paid: z.number().describe("Net amount paid after refunds."),
23
- secure_token: z.string().describe("Security token for the payment."),
24
- refund_amount: z.number().describe("Amount refunded."),
25
- formatted_amount: z.string().describe("Amount with currency symbol formatted as string.")
26
- }).describe("Individual payment object with all relevant details.");
9
+ id: z.number().int().describe("Unique payment identifier.").nullable(),
10
+ type: z.string().describe("Resource type identifier.").nullable(),
11
+ amount: z.number().describe("Payment amount as a number.").nullable(),
12
+ hashid: z.string().describe("Hashed payment ID.").nullable(),
13
+ status: z.string().describe("Payment status (e.g., 'success', 'part_refund', 'failed').").nullable(),
14
+ success: z.boolean().describe("Whether payment succeeded.").nullable(),
15
+ currency: z.string().describe("Currency code (e.g., 'gbp', 'usd').").nullable(),
16
+ reference: z.string().describe("Payment reference number.").nullable(),
17
+ card_brand: z.string().describe("Card type (e.g., 'visa', 'mastercard').").nullable(),
18
+ card_last4: z.string().describe("Last 4 digits of card number.").nullable(),
19
+ company_id: z.number().int().describe("Associated company identifier.").nullable(),
20
+ created_at: z.string().describe("Creation timestamp.").nullable(),
21
+ updated_at: z.string().describe("Last update timestamp.").nullable(),
22
+ amount_paid: z.number().describe("Net amount paid after refunds.").nullable(),
23
+ secure_token: z.string().describe("Security token for the payment.").nullable(),
24
+ refund_amount: z.number().describe("Amount refunded.").nullable(),
25
+ formatted_amount: z.string().describe("Amount with currency symbol formatted as string.").nullable()
26
+ }).passthrough().describe("Individual payment object with all relevant details.");
27
27
  const PayhereListPayments_PaginationMetaSchema = z.object({
28
28
  next_page: z.number().int().describe("Next page number if available.").nullable().optional(),
29
29
  prev_page: z.number().int().describe("Previous page number if available.").nullable().optional(),
30
- total_count: z.number().int().describe("Total number of records."),
31
- total_pages: z.number().int().describe("Total number of pages."),
32
- current_page: z.number().int().describe("Current page number.")
33
- }).describe("Pagination metadata for the response.");
30
+ total_count: z.number().int().describe("Total number of records.").nullable(),
31
+ total_pages: z.number().int().describe("Total number of pages.").nullable(),
32
+ current_page: z.number().int().describe("Current page number.").nullable()
33
+ }).passthrough().describe("Pagination metadata for the response.");
34
34
  const payhereListPayments = action("PAYHERE_LIST_PAYMENTS", {
35
35
  slug: "payhere-list-payments",
36
36
  name: "List Payments",
@@ -39,7 +39,7 @@ const payhereListPayments = action("PAYHERE_LIST_PAYMENTS", {
39
39
  output: z.object({
40
40
  data: z.array(PayhereListPayments_PaymentItemSchema).describe("Array of payment objects ordered chronologically, most recent first."),
41
41
  meta: PayhereListPayments_PaginationMetaSchema.nullable()
42
- }).describe("Response model for listing payments with pagination metadata.")
42
+ }).passthrough().describe("Response model for listing payments with pagination metadata.")
43
43
  });
44
44
  //#endregion
45
45
  export { payhereListPayments };