@keystrokehq/payhere 0.1.2 → 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 (79) hide show
  1. package/dist/actions/create-hook.cjs +2 -2
  2. package/dist/actions/create-hook.cjs.map +1 -1
  3. package/dist/actions/create-hook.d.cts +2 -2
  4. package/dist/actions/create-hook.d.mts +2 -2
  5. package/dist/actions/create-hook.mjs +2 -2
  6. package/dist/actions/create-hook.mjs.map +1 -1
  7. package/dist/actions/create-plan.cjs +2 -2
  8. package/dist/actions/create-plan.cjs.map +1 -1
  9. package/dist/actions/create-plan.d.cts +2 -2
  10. package/dist/actions/create-plan.d.mts +2 -2
  11. package/dist/actions/create-plan.mjs +2 -2
  12. package/dist/actions/create-plan.mjs.map +1 -1
  13. package/dist/actions/delete-hook.cjs +1 -1
  14. package/dist/actions/delete-hook.cjs.map +1 -1
  15. package/dist/actions/delete-hook.d.cts +1 -1
  16. package/dist/actions/delete-hook.d.mts +1 -1
  17. package/dist/actions/delete-hook.mjs +1 -1
  18. package/dist/actions/delete-hook.mjs.map +1 -1
  19. package/dist/actions/get-current-company-stats.cjs +1 -1
  20. package/dist/actions/get-current-company-stats.cjs.map +1 -1
  21. package/dist/actions/get-current-company-stats.d.cts +1 -1
  22. package/dist/actions/get-current-company-stats.d.mts +1 -1
  23. package/dist/actions/get-current-company-stats.mjs +1 -1
  24. package/dist/actions/get-current-company-stats.mjs.map +1 -1
  25. package/dist/actions/get-current-company.cjs +2 -2
  26. package/dist/actions/get-current-company.cjs.map +1 -1
  27. package/dist/actions/get-current-company.d.cts +2 -2
  28. package/dist/actions/get-current-company.d.mts +2 -2
  29. package/dist/actions/get-current-company.mjs +2 -2
  30. package/dist/actions/get-current-company.mjs.map +1 -1
  31. package/dist/actions/get-user.cjs +1 -1
  32. package/dist/actions/get-user.cjs.map +1 -1
  33. package/dist/actions/get-user.d.cts +1 -1
  34. package/dist/actions/get-user.d.mts +1 -1
  35. package/dist/actions/get-user.mjs +1 -1
  36. package/dist/actions/get-user.mjs.map +1 -1
  37. package/dist/actions/list-customers.cjs +4 -4
  38. package/dist/actions/list-customers.cjs.map +1 -1
  39. package/dist/actions/list-customers.d.cts +4 -4
  40. package/dist/actions/list-customers.d.mts +4 -4
  41. package/dist/actions/list-customers.mjs +4 -4
  42. package/dist/actions/list-customers.mjs.map +1 -1
  43. package/dist/actions/list-hooks.cjs +2 -2
  44. package/dist/actions/list-hooks.cjs.map +1 -1
  45. package/dist/actions/list-hooks.d.cts +2 -2
  46. package/dist/actions/list-hooks.d.mts +2 -2
  47. package/dist/actions/list-hooks.mjs +2 -2
  48. package/dist/actions/list-hooks.mjs.map +1 -1
  49. package/dist/actions/list-payments.cjs +3 -3
  50. package/dist/actions/list-payments.cjs.map +1 -1
  51. package/dist/actions/list-payments.d.cts +3 -3
  52. package/dist/actions/list-payments.d.mts +3 -3
  53. package/dist/actions/list-payments.mjs +3 -3
  54. package/dist/actions/list-payments.mjs.map +1 -1
  55. package/dist/actions/list-plans.cjs +4 -4
  56. package/dist/actions/list-plans.cjs.map +1 -1
  57. package/dist/actions/list-plans.d.cts +4 -4
  58. package/dist/actions/list-plans.d.mts +4 -4
  59. package/dist/actions/list-plans.mjs +4 -4
  60. package/dist/actions/list-plans.mjs.map +1 -1
  61. package/dist/actions/list-subscriptions.cjs +6 -6
  62. package/dist/actions/list-subscriptions.cjs.map +1 -1
  63. package/dist/actions/list-subscriptions.d.cts +6 -6
  64. package/dist/actions/list-subscriptions.d.mts +6 -6
  65. package/dist/actions/list-subscriptions.mjs +6 -6
  66. package/dist/actions/list-subscriptions.mjs.map +1 -1
  67. package/dist/actions/update-current-company.cjs +2 -2
  68. package/dist/actions/update-current-company.cjs.map +1 -1
  69. package/dist/actions/update-current-company.d.cts +2 -2
  70. package/dist/actions/update-current-company.d.mts +2 -2
  71. package/dist/actions/update-current-company.mjs +2 -2
  72. package/dist/actions/update-current-company.mjs.map +1 -1
  73. package/dist/actions/update-plan.cjs +1 -1
  74. package/dist/actions/update-plan.cjs.map +1 -1
  75. package/dist/actions/update-plan.d.cts +1 -1
  76. package/dist/actions/update-plan.d.mts +1 -1
  77. package/dist/actions/update-plan.mjs +1 -1
  78. package/dist/actions/update-plan.mjs.map +1 -1
  79. package/package.json +1 -1
@@ -9,7 +9,7 @@ declare const PayhereGetUserOutput: z.ZodObject<{
9
9
  created_at: z.ZodNullable<z.ZodString>;
10
10
  updated_at: z.ZodNullable<z.ZodString>;
11
11
  display_name: z.ZodNullable<z.ZodString>;
12
- }, z.core.$strip>;
12
+ }, z.core.$loose>;
13
13
  declare const payhereGetUser: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
14
14
  //#endregion
15
15
  export { payhereGetUser };
@@ -12,7 +12,7 @@ const payhereGetUser = action("PAYHERE_GET_USER", {
12
12
  created_at: z.string().describe("ISO 8601 timestamp when the user account was created.").nullable(),
13
13
  updated_at: z.string().describe("ISO 8601 timestamp of last update to the user account.").nullable(),
14
14
  display_name: z.string().describe("The user's display name.").nullable()
15
- }).describe("Response model for the authenticated user details.")
15
+ }).passthrough().describe("Response model for the authenticated user details.")
16
16
  });
17
17
  //#endregion
18
18
  export { payhereGetUser };
@@ -1 +1 @@
1
- {"version":3,"file":"get-user.mjs","names":[],"sources":["../../src/actions/get-user.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PayhereGetUserInput = z.object({}).describe(\"Request model for retrieving the currently authenticated user information.\\nNo parameters are required.\");\nexport const PayhereGetUserOutput = z.object({\n id: z.number().int().describe(\"The unique identifier for the user.\").nullable(),\n type: z.string().describe(\"Resource type identifier (typically 'users').\").nullable(),\n email: z.string().describe(\"The user's email address.\").nullable(),\n created_at: z.string().describe(\"ISO 8601 timestamp when the user account was created.\").nullable(),\n updated_at: z.string().describe(\"ISO 8601 timestamp of last update to the user account.\").nullable(),\n display_name: z.string().describe(\"The user's display name.\").nullable(),\n}).describe(\"Response model for the authenticated user details.\");\n\nexport const payhereGetUser = action(\"PAYHERE_GET_USER\", {\n slug: \"payhere-get-user\",\n name: \"Get User\",\n description: \"Tool to fetch information on the currently authenticated user. Use when you need to retrieve details about the logged-in user.\",\n input: PayhereGetUserInput,\n output: PayhereGetUserOutput,\n});\n"],"mappings":";;AAcA,MAAa,iBAAiB,OAAO,oBAAoB;CACvD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAdiC,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,yGAchD;CACP,QAdkC,EAAE,OAAO;EAC3C,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;EAC9E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;EACpF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;EACjE,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;EAClG,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;EACnG,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;CACzE,CAAC,CAAC,CAAC,SAAS,oDAOF;AACV,CAAC"}
1
+ {"version":3,"file":"get-user.mjs","names":[],"sources":["../../src/actions/get-user.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PayhereGetUserInput = z.object({}).describe(\"Request model for retrieving the currently authenticated user information.\\nNo parameters are required.\");\nexport const PayhereGetUserOutput = z.object({\n id: z.number().int().describe(\"The unique identifier for the user.\").nullable(),\n type: z.string().describe(\"Resource type identifier (typically 'users').\").nullable(),\n email: z.string().describe(\"The user's email address.\").nullable(),\n created_at: z.string().describe(\"ISO 8601 timestamp when the user account was created.\").nullable(),\n updated_at: z.string().describe(\"ISO 8601 timestamp of last update to the user account.\").nullable(),\n display_name: z.string().describe(\"The user's display name.\").nullable(),\n}).passthrough().describe(\"Response model for the authenticated user details.\");\n\nexport const payhereGetUser = action(\"PAYHERE_GET_USER\", {\n slug: \"payhere-get-user\",\n name: \"Get User\",\n description: \"Tool to fetch information on the currently authenticated user. Use when you need to retrieve details about the logged-in user.\",\n input: PayhereGetUserInput,\n output: PayhereGetUserOutput,\n});\n"],"mappings":";;AAcA,MAAa,iBAAiB,OAAO,oBAAoB;CACvD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAdiC,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,yGAchD;CACP,QAdkC,EAAE,OAAO;EAC3C,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;EAC9E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;EACpF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;EACjE,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;EAClG,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;EACnG,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;CACzE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oDAOhB;AACV,CAAC"}
@@ -5,7 +5,7 @@ const PayhereListCustomersInput = zod.z.object({
5
5
  page: zod.z.number().int().describe("Page number for pagination. Use to navigate through paginated results.").optional(),
6
6
  per_page: zod.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 = zod.z.object({}).describe("Location information for a customer.");
8
+ const PayhereListCustomers_CustomerLocationSchema = zod.z.record(zod.z.string(), zod.z.unknown()).describe("Location information for a customer.");
9
9
  const PayhereListCustomers_CustomerSchema = zod.z.object({
10
10
  id: zod.z.number().int().describe("Unique customer identifier.").nullable(),
11
11
  name: zod.z.string().describe("Customer name.").nullable(),
@@ -15,18 +15,18 @@ const PayhereListCustomers_CustomerSchema = zod.z.object({
15
15
  created_at: zod.z.string().describe("ISO 8601 timestamp when customer was created.").nullable(),
16
16
  ip_address: zod.z.string().describe("IP address of customer if available.").nullable().optional(),
17
17
  updated_at: zod.z.string().describe("ISO 8601 timestamp when customer was last updated.").nullable()
18
- }).describe("Individual customer record.");
18
+ }).passthrough().describe("Individual customer record.");
19
19
  const PayhereListCustomers_ListCustomersMetaSchema = zod.z.object({
20
20
  next_page: zod.z.number().int().describe("Next page number if available.").nullable().optional(),
21
21
  prev_page: zod.z.number().int().describe("Previous page number if available.").nullable().optional(),
22
22
  total_count: zod.z.number().int().describe("Total number of customers.").nullable(),
23
23
  total_pages: zod.z.number().int().describe("Total number of pages.").nullable(),
24
24
  current_page: zod.z.number().int().describe("Current page number.").nullable()
25
- }).describe("Pagination metadata for the list customers response.");
25
+ }).passthrough().describe("Pagination metadata for the list customers response.");
26
26
  const PayhereListCustomersOutput = zod.z.object({
27
27
  data: zod.z.array(PayhereListCustomers_CustomerSchema).describe("List of customers ordered chronologically, most recent first."),
28
28
  meta: PayhereListCustomers_ListCustomersMetaSchema.nullable()
29
- }).describe("Response model for listing customers.");
29
+ }).passthrough().describe("Response model for listing customers.");
30
30
  const payhereListCustomers = require_action.action("PAYHERE_LIST_CUSTOMERS", {
31
31
  slug: "payhere-list-customers",
32
32
  name: "List Customers",
@@ -1 +1 @@
1
- {"version":3,"file":"list-customers.cjs","names":["z","action"],"sources":["../../src/actions/list-customers.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PayhereListCustomersInput = z.object({\n page: z.number().int().describe(\"Page number for pagination. Use to navigate through paginated results.\").optional(),\n per_page: z.number().int().describe(\"Records per page. Default is 20, maximum is 100.\").optional(),\n}).describe(\"Request model for listing customers with pagination options.\");\nconst PayhereListCustomers_CustomerLocationSchema = z.object({}).describe(\"Location information for a customer.\");\nconst PayhereListCustomers_CustomerSchema = z.object({\n id: z.number().int().describe(\"Unique customer identifier.\").nullable(),\n name: z.string().describe(\"Customer name.\").nullable(),\n type: z.string().describe(\"Resource type, always 'customers'.\").nullable(),\n email: z.string().describe(\"Customer email address.\").nullable(),\n location: PayhereListCustomers_CustomerLocationSchema.nullable().optional(),\n created_at: z.string().describe(\"ISO 8601 timestamp when customer was created.\").nullable(),\n ip_address: z.string().describe(\"IP address of customer if available.\").nullable().optional(),\n updated_at: z.string().describe(\"ISO 8601 timestamp when customer was last updated.\").nullable(),\n}).describe(\"Individual customer record.\");\nconst PayhereListCustomers_ListCustomersMetaSchema = z.object({\n next_page: z.number().int().describe(\"Next page number if available.\").nullable().optional(),\n prev_page: z.number().int().describe(\"Previous page number if available.\").nullable().optional(),\n total_count: z.number().int().describe(\"Total number of customers.\").nullable(),\n total_pages: z.number().int().describe(\"Total number of pages.\").nullable(),\n current_page: z.number().int().describe(\"Current page number.\").nullable(),\n}).describe(\"Pagination metadata for the list customers response.\");\nexport const PayhereListCustomersOutput = z.object({\n data: z.array(PayhereListCustomers_CustomerSchema).describe(\"List of customers ordered chronologically, most recent first.\"),\n meta: PayhereListCustomers_ListCustomersMetaSchema.nullable(),\n}).describe(\"Response model for listing customers.\");\n\nexport const payhereListCustomers = action(\"PAYHERE_LIST_CUSTOMERS\", {\n slug: \"payhere-list-customers\",\n name: \"List Customers\",\n description: \"Tool to list all customers from Payhere, ordered chronologically with most recent first. Use when you need to retrieve customer records, browse customers, or access customer information. Supports pagination via page and per_page parameters.\",\n input: PayhereListCustomersInput,\n output: PayhereListCustomersOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,MAAMA,IAAAA,E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AAC,SAAS,CAAC,CAAC,SAAS;CAC/F,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CAC9E,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,SAAS,sDAAsD;AAClE,MAAa,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,MAAMA,IAAAA,EAAE,MAAM,mCAAmC,CAAC,CAAC,SAAS,+DAA+D;CAC3H,MAAM,6CAA6C,SAAS;AAC9D,CAAC,CAAC,CAAC,SAAS,uCAAuC;AAEnD,MAAa,uBAAuBC,eAAAA,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"list-customers.cjs","names":["z","action"],"sources":["../../src/actions/list-customers.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PayhereListCustomersInput = z.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,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,SAAS;CACnH,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;AACnG,CAAC,CAAC,CAAC,SAAS,8DAA8D;AAC1E,MAAM,8CAA8CA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,sCAAsC;AACrI,MAAM,sCAAsCA,IAAAA,EAAE,OAAO;CACnD,IAAIA,IAAA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C,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sDAAsD;AAChF,MAAa,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,MAAMA,IAAAA,EAAE,MAAM,mCAAmC,CAAC,CAAC,SAAS,+DAA+D;CAC3H,MAAM,6CAA6C,SAAS;AAC9D,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uCAAuC;AAEjE,MAAa,uBAAuBC,eAAAA,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -11,19 +11,19 @@ declare const PayhereListCustomersOutput: z.ZodObject<{
11
11
  name: z.ZodNullable<z.ZodString>;
12
12
  type: z.ZodNullable<z.ZodString>;
13
13
  email: z.ZodNullable<z.ZodString>;
14
- location: z.ZodOptional<z.ZodNullable<z.ZodObject<{}, z.core.$strip>>>;
14
+ location: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
15
15
  created_at: z.ZodNullable<z.ZodString>;
16
16
  ip_address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17
17
  updated_at: z.ZodNullable<z.ZodString>;
18
- }, z.core.$strip>>;
18
+ }, z.core.$loose>>;
19
19
  meta: z.ZodNullable<z.ZodObject<{
20
20
  next_page: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
21
21
  prev_page: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
22
22
  total_count: z.ZodNullable<z.ZodNumber>;
23
23
  total_pages: z.ZodNullable<z.ZodNumber>;
24
24
  current_page: z.ZodNullable<z.ZodNumber>;
25
- }, z.core.$strip>>;
26
- }, z.core.$strip>;
25
+ }, z.core.$loose>>;
26
+ }, z.core.$loose>;
27
27
  declare const payhereListCustomers: import("@keystrokehq/action").WorkflowActionDefinition<{
28
28
  page?: number | undefined;
29
29
  per_page?: number | undefined;
@@ -11,19 +11,19 @@ declare const PayhereListCustomersOutput: z.ZodObject<{
11
11
  name: z.ZodNullable<z.ZodString>;
12
12
  type: z.ZodNullable<z.ZodString>;
13
13
  email: z.ZodNullable<z.ZodString>;
14
- location: z.ZodOptional<z.ZodNullable<z.ZodObject<{}, z.core.$strip>>>;
14
+ location: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
15
15
  created_at: z.ZodNullable<z.ZodString>;
16
16
  ip_address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17
17
  updated_at: z.ZodNullable<z.ZodString>;
18
- }, z.core.$strip>>;
18
+ }, z.core.$loose>>;
19
19
  meta: z.ZodNullable<z.ZodObject<{
20
20
  next_page: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
21
21
  prev_page: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
22
22
  total_count: z.ZodNullable<z.ZodNumber>;
23
23
  total_pages: z.ZodNullable<z.ZodNumber>;
24
24
  current_page: z.ZodNullable<z.ZodNumber>;
25
- }, z.core.$strip>>;
26
- }, z.core.$strip>;
25
+ }, z.core.$loose>>;
26
+ }, z.core.$loose>;
27
27
  declare const payhereListCustomers: import("@keystrokehq/action").WorkflowActionDefinition<{
28
28
  page?: number | undefined;
29
29
  per_page?: number | undefined;
@@ -5,7 +5,7 @@ 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
10
  id: z.number().int().describe("Unique customer identifier.").nullable(),
11
11
  name: z.string().describe("Customer name.").nullable(),
@@ -15,14 +15,14 @@ const PayhereListCustomers_CustomerSchema = z.object({
15
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
17
  updated_at: z.string().describe("ISO 8601 timestamp when customer was last updated.").nullable()
18
- }).describe("Individual customer record.");
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
22
  total_count: z.number().int().describe("Total number of customers.").nullable(),
23
23
  total_pages: z.number().int().describe("Total number of pages.").nullable(),
24
24
  current_page: z.number().int().describe("Current page number.").nullable()
25
- }).describe("Pagination metadata for the list customers response.");
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.object({\n page: z.number().int().describe(\"Page number for pagination. Use to navigate through paginated results.\").optional(),\n per_page: z.number().int().describe(\"Records per page. Default is 20, maximum is 100.\").optional(),\n}).describe(\"Request model for listing customers with pagination options.\");\nconst PayhereListCustomers_CustomerLocationSchema = z.object({}).describe(\"Location information for a customer.\");\nconst PayhereListCustomers_CustomerSchema = z.object({\n id: z.number().int().describe(\"Unique customer identifier.\").nullable(),\n name: z.string().describe(\"Customer name.\").nullable(),\n type: z.string().describe(\"Resource type, always 'customers'.\").nullable(),\n email: z.string().describe(\"Customer email address.\").nullable(),\n location: PayhereListCustomers_CustomerLocationSchema.nullable().optional(),\n created_at: z.string().describe(\"ISO 8601 timestamp when customer was created.\").nullable(),\n ip_address: z.string().describe(\"IP address of customer if available.\").nullable().optional(),\n updated_at: z.string().describe(\"ISO 8601 timestamp when customer was last updated.\").nullable(),\n}).describe(\"Individual customer record.\");\nconst PayhereListCustomers_ListCustomersMetaSchema = z.object({\n next_page: z.number().int().describe(\"Next page number if available.\").nullable().optional(),\n prev_page: z.number().int().describe(\"Previous page number if available.\").nullable().optional(),\n total_count: z.number().int().describe(\"Total number of customers.\").nullable(),\n total_pages: z.number().int().describe(\"Total number of pages.\").nullable(),\n current_page: z.number().int().describe(\"Current page number.\").nullable(),\n}).describe(\"Pagination metadata for the list customers response.\");\nexport const PayhereListCustomersOutput = z.object({\n data: z.array(PayhereListCustomers_CustomerSchema).describe(\"List of customers ordered chronologically, most recent first.\"),\n meta: PayhereListCustomers_ListCustomersMetaSchema.nullable(),\n}).describe(\"Response model for listing customers.\");\n\nexport const payhereListCustomers = action(\"PAYHERE_LIST_CUSTOMERS\", {\n slug: \"payhere-list-customers\",\n name: \"List Customers\",\n description: \"Tool to list all customers from Payhere, ordered chronologically with most recent first. Use when you need to retrieve customer records, browse customers, or access customer information. Supports pagination via page and per_page parameters.\",\n input: PayhereListCustomersInput,\n output: PayhereListCustomersOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4B,EAAE,OAAO;CAChD,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,SAAS;CACnH,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;AACnG,CAAC,CAAC,CAAC,SAAS,8DAA8D;AAC1E,MAAM,8CAA8C,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,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B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAVwC,EAAE,OAAO;EACjD,MAAM,EAAE,MAAM,mCAAmC,CAAC,CAAC,SAAS,+DAA+D;EAC3H,MAAM,6CAA6C,SAAS;CAC9D,CAAC,CAAC,CAAC,SAAS,uCAOF;AACV,CAAC"}
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"}
@@ -11,8 +11,8 @@ const PayhereListHooks_HookSchema = zod.z.object({
11
11
  created_at: zod.z.string().describe("ISO 8601 timestamp of when the hook was created.").nullable(),
12
12
  updated_at: zod.z.string().describe("ISO 8601 timestamp of when the hook was last updated.").nullable(),
13
13
  integration: zod.z.string().describe("Integration identifier.").nullable()
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.");
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.object({}).describe(\"Request model for listing all active REST hooks subscriptions.\");\nconst PayhereListHooks_HookSchema = z.object({\n id: z.number().int().describe(\"Unique identifier for the hook subscription.\").nullable(),\n type: z.string().describe(\"Hook type, value: 'rest_hooks'.\").nullable(),\n post_url: z.string().describe(\"Target URL where webhook events will be sent.\").nullable(),\n resource: z.string().describe(\"Event type being monitored. Possible values: 'payment_received', 'subscription_cancelled', 'subscription_created'.\").nullable(),\n company_id: z.number().int().describe(\"ID of the company that owns this hook.\").nullable(),\n created_at: z.string().describe(\"ISO 8601 timestamp of when the hook was created.\").nullable(),\n updated_at: z.string().describe(\"ISO 8601 timestamp of when the hook was last updated.\").nullable(),\n integration: z.string().describe(\"Integration identifier.\").nullable(),\n}).describe(\"Represents a REST hook subscription.\");\nexport const PayhereListHooksOutput = z.object({\n data: z.array(PayhereListHooks_HookSchema).describe(\"List of active REST hook subscriptions.\"),\n}).describe(\"Response model for listing all active REST hooks subscriptions.\");\n\nexport const payhereListHooks = action(\"PAYHERE_LIST_HOOKS\", {\n slug: \"payhere-list-hooks\",\n name: \"List REST Hooks\",\n description: \"Tool to list all active REST hooks subscriptions for the authenticated company. Use when you need to view all currently registered webhook listeners for your PayHere account.\",\n input: PayhereListHooksInput,\n output: PayhereListHooksOutput,\n});\n"],"mappings":";;;AAIA,MAAa,wBAAwBA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,gEAAgE;AAC3H,MAAM,8BAA8BA,IAAAA,EAAE,OAAO;CAC3C,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CACvF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CACtE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CACxF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oHAAoH,CAAC,CAAC,SAAS;CAC7J,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CACzF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;CAC7F,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;CAClG,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;AACvE,CAAC,CAAC,CAAC,SAAS,sCAAsC;AAClD,MAAa,yBAAyBA,IAAAA,EAAE,OAAO,EAC7C,MAAMA,IAAAA,EAAE,MAAM,2BAA2B,CAAC,CAAC,SAAS,yCAAyC,EAC/F,CAAC,CAAC,CAAC,SAAS,iEAAiE;AAE7E,MAAa,mBAAmBC,eAAAA,OAAO,sBAAsB;CAC3D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"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"}
@@ -12,8 +12,8 @@ declare const PayhereListHooksOutput: z.ZodObject<{
12
12
  created_at: z.ZodNullable<z.ZodString>;
13
13
  updated_at: z.ZodNullable<z.ZodString>;
14
14
  integration: z.ZodNullable<z.ZodString>;
15
- }, z.core.$strip>>;
16
- }, z.core.$strip>;
15
+ }, z.core.$loose>>;
16
+ }, z.core.$loose>;
17
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]>;
18
18
  //#endregion
19
19
  export { payhereListHooks };
@@ -12,8 +12,8 @@ declare const PayhereListHooksOutput: z.ZodObject<{
12
12
  created_at: z.ZodNullable<z.ZodString>;
13
13
  updated_at: z.ZodNullable<z.ZodString>;
14
14
  integration: z.ZodNullable<z.ZodString>;
15
- }, z.core.$strip>>;
16
- }, z.core.$strip>;
15
+ }, z.core.$loose>>;
16
+ }, z.core.$loose>;
17
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]>;
18
18
  //#endregion
19
19
  export { payhereListHooks };
@@ -11,13 +11,13 @@ const PayhereListHooks_HookSchema = z.object({
11
11
  created_at: z.string().describe("ISO 8601 timestamp of when the hook was created.").nullable(),
12
12
  updated_at: z.string().describe("ISO 8601 timestamp of when the hook was last updated.").nullable(),
13
13
  integration: z.string().describe("Integration identifier.").nullable()
14
- }).describe("Represents a REST hook subscription.");
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.object({}).describe(\"Request model for listing all active REST hooks subscriptions.\");\nconst PayhereListHooks_HookSchema = z.object({\n id: z.number().int().describe(\"Unique identifier for the hook subscription.\").nullable(),\n type: z.string().describe(\"Hook type, value: 'rest_hooks'.\").nullable(),\n post_url: z.string().describe(\"Target URL where webhook events will be sent.\").nullable(),\n resource: z.string().describe(\"Event type being monitored. Possible values: 'payment_received', 'subscription_cancelled', 'subscription_created'.\").nullable(),\n company_id: z.number().int().describe(\"ID of the company that owns this hook.\").nullable(),\n created_at: z.string().describe(\"ISO 8601 timestamp of when the hook was created.\").nullable(),\n updated_at: z.string().describe(\"ISO 8601 timestamp of when the hook was last updated.\").nullable(),\n integration: z.string().describe(\"Integration identifier.\").nullable(),\n}).describe(\"Represents a REST hook subscription.\");\nexport const PayhereListHooksOutput = z.object({\n data: z.array(PayhereListHooks_HookSchema).describe(\"List of active REST hook subscriptions.\"),\n}).describe(\"Response model for listing all active REST hooks subscriptions.\");\n\nexport const payhereListHooks = action(\"PAYHERE_LIST_HOOKS\", {\n slug: \"payhere-list-hooks\",\n name: \"List REST Hooks\",\n description: \"Tool to list all active REST hooks subscriptions for the authenticated company. Use when you need to view all currently registered webhook listeners for your PayHere account.\",\n input: PayhereListHooksInput,\n output: PayhereListHooksOutput,\n});\n"],"mappings":";;;AAIA,MAAa,wBAAwB,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,gEAAgE;AAC3H,MAAM,8BAA8B,EAAE,OAAO;CAC3C,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CACvF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CACtE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CACxF,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,oHAAoH,CAAC,CAAC,SAAS;CAC7J,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CACzF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;CAC7F,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;CAClG,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;AACvE,CAAC,CAAC,CAAC,SAAS,sCAAsC;AAKlD,MAAa,mBAAmB,OAAO,sBAAsB;CAC3D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAToC,EAAE,OAAO,EAC7C,MAAM,EAAE,MAAM,2BAA2B,CAAC,CAAC,SAAS,yCAAyC,EAC/F,CAAC,CAAC,CAAC,SAAS,iEAOF;AACV,CAAC"}
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"}
@@ -23,18 +23,18 @@ const PayhereListPayments_PaymentItemSchema = zod.z.object({
23
23
  secure_token: zod.z.string().describe("Security token for the payment.").nullable(),
24
24
  refund_amount: zod.z.number().describe("Amount refunded.").nullable(),
25
25
  formatted_amount: zod.z.string().describe("Amount with currency symbol formatted as string.").nullable()
26
- }).describe("Individual payment object with all relevant details.");
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
30
  total_count: zod.z.number().int().describe("Total number of records.").nullable(),
31
31
  total_pages: zod.z.number().int().describe("Total number of pages.").nullable(),
32
32
  current_page: zod.z.number().int().describe("Current page number.").nullable()
33
- }).describe("Pagination metadata for the response.");
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.object({\n page: z.number().int().describe(\"Page number for pagination.\").optional(),\n per_page: z.number().int().describe(\"Number of records per page (default: 20, maximum: 100).\").optional(),\n}).describe(\"Request model for listing payments with pagination options.\");\nconst PayhereListPayments_PaymentItemSchema = z.object({\n id: z.number().int().describe(\"Unique payment identifier.\").nullable(),\n type: z.string().describe(\"Resource type identifier.\").nullable(),\n amount: z.number().describe(\"Payment amount as a number.\").nullable(),\n hashid: z.string().describe(\"Hashed payment ID.\").nullable(),\n status: z.string().describe(\"Payment status (e.g., 'success', 'part_refund', 'failed').\").nullable(),\n success: z.boolean().describe(\"Whether payment succeeded.\").nullable(),\n currency: z.string().describe(\"Currency code (e.g., 'gbp', 'usd').\").nullable(),\n reference: z.string().describe(\"Payment reference number.\").nullable(),\n card_brand: z.string().describe(\"Card type (e.g., 'visa', 'mastercard').\").nullable(),\n card_last4: z.string().describe(\"Last 4 digits of card number.\").nullable(),\n company_id: z.number().int().describe(\"Associated company identifier.\").nullable(),\n created_at: z.string().describe(\"Creation timestamp.\").nullable(),\n updated_at: z.string().describe(\"Last update timestamp.\").nullable(),\n amount_paid: z.number().describe(\"Net amount paid after refunds.\").nullable(),\n secure_token: z.string().describe(\"Security token for the payment.\").nullable(),\n refund_amount: z.number().describe(\"Amount refunded.\").nullable(),\n formatted_amount: z.string().describe(\"Amount with currency symbol formatted as string.\").nullable(),\n}).describe(\"Individual payment object with all relevant details.\");\nconst PayhereListPayments_PaginationMetaSchema = z.object({\n next_page: z.number().int().describe(\"Next page number if available.\").nullable().optional(),\n prev_page: z.number().int().describe(\"Previous page number if available.\").nullable().optional(),\n total_count: z.number().int().describe(\"Total number of records.\").nullable(),\n total_pages: z.number().int().describe(\"Total number of pages.\").nullable(),\n current_page: z.number().int().describe(\"Current page number.\").nullable(),\n}).describe(\"Pagination metadata for the response.\");\nexport const PayhereListPaymentsOutput = z.object({\n data: z.array(PayhereListPayments_PaymentItemSchema).describe(\"Array of payment objects ordered chronologically, most recent first.\"),\n meta: PayhereListPayments_PaginationMetaSchema.nullable(),\n}).describe(\"Response model for listing payments with pagination metadata.\");\n\nexport const payhereListPayments = action(\"PAYHERE_LIST_PAYMENTS\", {\n slug: \"payhere-list-payments\",\n name: \"List Payments\",\n description: \"Tool to list all payments ordered chronologically, most recent first. Use when you need to retrieve payment history or check payment statuses. Supports pagination with page and per_page parameters.\",\n input: PayhereListPaymentsInput,\n output: PayhereListPaymentsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CACxE,UAAUA,IAAAA,EAA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"],"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,SA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C,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"}
@@ -24,15 +24,15 @@ declare const PayhereListPaymentsOutput: z.ZodObject<{
24
24
  secure_token: z.ZodNullable<z.ZodString>;
25
25
  refund_amount: z.ZodNullable<z.ZodNumber>;
26
26
  formatted_amount: z.ZodNullable<z.ZodString>;
27
- }, z.core.$strip>>;
27
+ }, z.core.$loose>>;
28
28
  meta: z.ZodNullable<z.ZodObject<{
29
29
  next_page: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
30
30
  prev_page: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
31
31
  total_count: z.ZodNullable<z.ZodNumber>;
32
32
  total_pages: z.ZodNullable<z.ZodNumber>;
33
33
  current_page: z.ZodNullable<z.ZodNumber>;
34
- }, z.core.$strip>>;
35
- }, z.core.$strip>;
34
+ }, z.core.$loose>>;
35
+ }, z.core.$loose>;
36
36
  declare const payhereListPayments: import("@keystrokehq/action").WorkflowActionDefinition<{
37
37
  page?: number | undefined;
38
38
  per_page?: number | undefined;
@@ -24,15 +24,15 @@ declare const PayhereListPaymentsOutput: z.ZodObject<{
24
24
  secure_token: z.ZodNullable<z.ZodString>;
25
25
  refund_amount: z.ZodNullable<z.ZodNumber>;
26
26
  formatted_amount: z.ZodNullable<z.ZodString>;
27
- }, z.core.$strip>>;
27
+ }, z.core.$loose>>;
28
28
  meta: z.ZodNullable<z.ZodObject<{
29
29
  next_page: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
30
30
  prev_page: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
31
31
  total_count: z.ZodNullable<z.ZodNumber>;
32
32
  total_pages: z.ZodNullable<z.ZodNumber>;
33
33
  current_page: z.ZodNullable<z.ZodNumber>;
34
- }, z.core.$strip>>;
35
- }, z.core.$strip>;
34
+ }, z.core.$loose>>;
35
+ }, z.core.$loose>;
36
36
  declare const payhereListPayments: import("@keystrokehq/action").WorkflowActionDefinition<{
37
37
  page?: number | undefined;
38
38
  per_page?: number | undefined;
@@ -23,14 +23,14 @@ const PayhereListPayments_PaymentItemSchema = z.object({
23
23
  secure_token: z.string().describe("Security token for the payment.").nullable(),
24
24
  refund_amount: z.number().describe("Amount refunded.").nullable(),
25
25
  formatted_amount: z.string().describe("Amount with currency symbol formatted as string.").nullable()
26
- }).describe("Individual payment object with all relevant details.");
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
30
  total_count: z.number().int().describe("Total number of records.").nullable(),
31
31
  total_pages: z.number().int().describe("Total number of pages.").nullable(),
32
32
  current_page: z.number().int().describe("Current page number.").nullable()
33
- }).describe("Pagination metadata for the response.");
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 };
@@ -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}).describe(\"Individual payment object with all relevant details.\");\nconst PayhereListPayments_PaginationMetaSchema = z.object({\n next_page: z.number().int().describe(\"Next page number if available.\").nullable().optional(),\n prev_page: z.number().int().describe(\"Previous page number if available.\").nullable().optional(),\n total_count: z.number().int().describe(\"Total number of records.\").nullable(),\n total_pages: z.number().int().describe(\"Total number of pages.\").nullable(),\n current_page: z.number().int().describe(\"Current page number.\").nullable(),\n}).describe(\"Pagination metadata for the response.\");\nexport const PayhereListPaymentsOutput = z.object({\n data: z.array(PayhereListPayments_PaymentItemSchema).describe(\"Array of payment objects ordered chronologically, most recent first.\"),\n meta: PayhereListPayments_PaginationMetaSchema.nullable(),\n}).describe(\"Response model for listing payments with pagination metadata.\");\n\nexport const payhereListPayments = action(\"PAYHERE_LIST_PAYMENTS\", {\n slug: \"payhere-list-payments\",\n name: \"List Payments\",\n description: \"Tool to list all payments ordered chronologically, most recent first. Use when you need to retrieve payment history or check payment statuses. Supports pagination with page and per_page parameters.\",\n input: PayhereListPaymentsInput,\n output: PayhereListPaymentsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2B,EAAE,OAAO;CAC/C,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CACxE,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;AAC1G,CAAC,CAAC,CAAC,SAAS,6DAA6D;AACzE,MAAM,wCAAwC,EAAE,OAAO;CACrD,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CACrE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CAChE,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CACpE,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS;CAC3D,QAAQ,EAAE,OAAO,CAAC,CA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A0B,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,SAAS,uCAAuC;AAMnD,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,SAAS,+DAOF;AACV,CAAC"}
1
+ {"version":3,"file":"list-payments.mjs","names":[],"sources":["../../src/actions/list-payments.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PayhereListPaymentsInput = z.object({\n page: z.number().int().describe(\"Page number for pagination.\").optional(),\n per_page: z.number().int().describe(\"Number of records per page (default: 20, maximum: 100).\").optional(),\n}).describe(\"Request model for listing payments with pagination options.\");\nconst PayhereListPayments_PaymentItemSchema = z.object({\n id: z.number().int().describe(\"Unique payment identifier.\").nullable(),\n type: z.string().describe(\"Resource type identifier.\").nullable(),\n amount: z.number().describe(\"Payment amount as a number.\").nullable(),\n hashid: z.string().describe(\"Hashed payment ID.\").nullable(),\n status: z.string().describe(\"Payment status (e.g., 'success', 'part_refund', 'failed').\").nullable(),\n success: z.boolean().describe(\"Whether payment succeeded.\").nullable(),\n currency: z.string().describe(\"Currency code (e.g., 'gbp', 'usd').\").nullable(),\n reference: z.string().describe(\"Payment reference number.\").nullable(),\n card_brand: z.string().describe(\"Card type (e.g., 'visa', 'mastercard').\").nullable(),\n card_last4: z.string().describe(\"Last 4 digits of card number.\").nullable(),\n company_id: z.number().int().describe(\"Associated company identifier.\").nullable(),\n created_at: z.string().describe(\"Creation timestamp.\").nullable(),\n updated_at: z.string().describe(\"Last update timestamp.\").nullable(),\n amount_paid: z.number().describe(\"Net amount paid after refunds.\").nullable(),\n secure_token: z.string().describe(\"Security token for the payment.\").nullable(),\n refund_amount: z.number().describe(\"Amount refunded.\").nullable(),\n formatted_amount: z.string().describe(\"Amount with currency symbol formatted as string.\").nullable(),\n}).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,CAA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2CAA2C,EAAE,OAAO;CACxD,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3F,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/F,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0BAA0B,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"}
@@ -26,7 +26,7 @@ const PayhereListPlans_PlanItemSchema = zod.z.object({
26
26
  cancel_after: zod.z.number().int().describe("Auto-cancel subscription after N cycles.").nullable().optional(),
27
27
  payment_type: zod.z.string().describe("Type of payment (one-time or recurring).").nullable(),
28
28
  receipt_text: zod.z.string().describe("Custom receipt text.").nullable().optional(),
29
- custom_fields: zod.z.array(zod.z.object({})).describe("Custom form fields.").nullable().optional(),
29
+ custom_fields: zod.z.array(zod.z.record(zod.z.string(), zod.z.unknown())).describe("Custom form fields.").nullable().optional(),
30
30
  has_setup_fee: zod.z.boolean().describe("Whether setup fee is enabled.").nullable(),
31
31
  price_in_cents: zod.z.number().int().describe("Price in cents.").nullable(),
32
32
  pay_button_text: zod.z.string().describe("Custom text for payment button.").nullable().optional(),
@@ -35,18 +35,18 @@ const PayhereListPlans_PlanItemSchema = zod.z.object({
35
35
  min_billing_cycles: zod.z.number().int().describe("Minimum number of billing cycles.").nullable().optional(),
36
36
  user_selects_amount: zod.z.boolean().describe("Allow user to select amount.").nullable(),
37
37
  billing_interval_count: zod.z.number().int().describe("Number of intervals between billings.").nullable().optional()
38
- }).describe("Represents a single plan object in the response.");
38
+ }).passthrough().describe("Represents a single plan object in the response.");
39
39
  const PayhereListPlans_PaginationMetaSchema = zod.z.object({
40
40
  next_page: zod.z.number().int().describe("Next page number or null if last page.").nullable().optional(),
41
41
  prev_page: zod.z.number().int().describe("Previous page number or null if first page.").nullable().optional(),
42
42
  total_count: zod.z.number().int().describe("Total number of plans.").nullable(),
43
43
  total_pages: zod.z.number().int().describe("Total number of pages.").nullable(),
44
44
  current_page: zod.z.number().int().describe("Current page number.").nullable()
45
- }).describe("Pagination metadata for the response.");
45
+ }).passthrough().describe("Pagination metadata for the response.");
46
46
  const PayhereListPlansOutput = zod.z.object({
47
47
  data: zod.z.array(PayhereListPlans_PlanItemSchema).describe("Collection of plan objects."),
48
48
  meta: PayhereListPlans_PaginationMetaSchema.nullable()
49
- }).describe("Response model for listing plans.");
49
+ }).passthrough().describe("Response model for listing plans.");
50
50
  const payhereListPlans = require_action.action("PAYHERE_LIST_PLANS", {
51
51
  slug: "payhere-list-plans",
52
52
  name: "List Plans",
@@ -1 +1 @@
1
- {"version":3,"file":"list-plans.cjs","names":["z","action"],"sources":["../../src/actions/list-plans.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PayhereListPlansInput = z.object({\n page: z.number().int().describe(\"Page number for pagination. Must be >= 1.\").optional(),\n per_page: z.number().int().describe(\"Number of plans per page. Default is 20, maximum is 100.\").optional(),\n}).describe(\"Request model for listing plans with pagination support.\");\nconst PayhereListPlans_PlanItemSchema = z.object({\n id: z.number().int().describe(\"Unique identifier for the plan.\").nullable(),\n qty: z.number().int().describe(\"Available quantity if limited.\").nullable().optional(),\n name: z.string().describe(\"Name of the plan.\").nullable(),\n slug: z.string().describe(\"URL-friendly plan identifier.\").nullable(),\n type: z.string().describe(\"Plan type.\").nullable(),\n price: z.number().describe(\"Price in decimal format.\").nullable(),\n hidden: z.boolean().describe(\"Whether the plan is hidden from public view.\").nullable(),\n currency: z.string().describe(\"Currency code (e.g., USD, EUR).\").nullable(),\n show_qty: z.boolean().describe(\"Display quantity selector.\").nullable(),\n setup_fee: z.number().describe(\"One-time setup fee.\").nullable().optional(),\n created_at: z.string().describe(\"ISO 8601 timestamp of creation.\").nullable(),\n updated_at: z.string().describe(\"ISO 8601 timestamp of last update.\").nullable(),\n billing_day: z.number().int().describe(\"Day of month for billing.\").nullable().optional(),\n description: z.string().describe(\"Description of the plan.\").nullable().optional(),\n limited_qty: z.boolean().describe(\"Whether plan has limited quantity.\").nullable(),\n success_url: z.string().describe(\"Redirect URL after successful payment.\").nullable().optional(),\n webhook_url: z.string().describe(\"Webhook URL for notifications.\").nullable().optional(),\n cancel_after: z.number().int().describe(\"Auto-cancel subscription after N cycles.\").nullable().optional(),\n payment_type: z.string().describe(\"Type of payment (one-time or recurring).\").nullable(),\n receipt_text: z.string().describe(\"Custom receipt text.\").nullable().optional(),\n custom_fields: z.array(z.object({})).describe(\"Custom form fields.\").nullable().optional(),\n has_setup_fee: z.boolean().describe(\"Whether setup fee is enabled.\").nullable(),\n price_in_cents: z.number().int().describe(\"Price in cents.\").nullable(),\n pay_button_text: z.string().describe(\"Custom text for payment button.\").nullable().optional(),\n billing_interval: z.string().describe(\"Billing cycle interval (day, week, month, year).\").nullable().optional(),\n trial_period_days: z.number().int().describe(\"Number of trial days.\").nullable().optional(),\n min_billing_cycles: z.number().int().describe(\"Minimum number of billing cycles.\").nullable().optional(),\n user_selects_amount: z.boolean().describe(\"Allow user to select amount.\").nullable(),\n billing_interval_count: z.number().int().describe(\"Number of intervals between billings.\").nullable().optional(),\n}).describe(\"Represents a single plan object in the response.\");\nconst PayhereListPlans_PaginationMetaSchema = z.object({\n next_page: z.number().int().describe(\"Next page number or null if last page.\").nullable().optional(),\n prev_page: z.number().int().describe(\"Previous page number or null if first page.\").nullable().optional(),\n total_count: z.number().int().describe(\"Total number of plans.\").nullable(),\n total_pages: z.number().int().describe(\"Total number of pages.\").nullable(),\n current_page: z.number().int().describe(\"Current page number.\").nullable(),\n}).describe(\"Pagination metadata for the response.\");\nexport const PayhereListPlansOutput = z.object({\n data: z.array(PayhereListPlans_PlanItemSchema).describe(\"Collection of plan objects.\"),\n meta: PayhereListPlans_PaginationMetaSchema.nullable(),\n}).describe(\"Response model for listing plans.\");\n\nexport const payhereListPlans = action(\"PAYHERE_LIST_PLANS\", {\n slug: \"payhere-list-plans\",\n name: \"List Plans\",\n description: \"Tool to list all plans in your PayHere account. Use when you need to retrieve and paginate through available plans.\",\n input: PayhereListPlansInput,\n output: PayhereListPlansOutput,\n});\n"],"mappings":";;;AAIA,MAAa,wBAAwBA,IAAAA,EAAE,OAAO;CAC5C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CACtF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;AAC3G,CAAC,CAAC,CAAC,SAAS,0DAA0D;AACtE,MAAM,kCAAkCA,IAAAA,EAAE,OAAO;CAC/C,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CAC1E,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC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C9D,MAAM,wCAAwCA,IAAAA,EAAE,OAAO;CACrD,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnG,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxG,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;CAC1E,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,SAAS,uCAAuC;AACnD,MAAa,yBAAyBA,IAAAA,EAAE,OAAO;CAC7C,MAAMA,IAAAA,EAAE,MAAM,+BAA+B,CAAC,CAAC,SAAS,6BAA6B;CACrF,MAAM,sCAAsC,SAAS;AACvD,CAAC,CAAC,CAAC,SAAS,mCAAmC;AAE/C,MAAa,mBAAmBC,eAAAA,OAAO,sBAAsB;CAC3D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"list-plans.cjs","names":["z","action"],"sources":["../../src/actions/list-plans.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PayhereListPlansInput = z.object({\n page: z.number().int().describe(\"Page number for pagination. Must be >= 1.\").optional(),\n per_page: z.number().int().describe(\"Number of plans per page. Default is 20, maximum is 100.\").optional(),\n}).describe(\"Request model for listing plans with pagination support.\");\nconst PayhereListPlans_PlanItemSchema = z.object({\n id: z.number().int().describe(\"Unique identifier for the plan.\").nullable(),\n qty: z.number().int().describe(\"Available quantity if limited.\").nullable().optional(),\n name: z.string().describe(\"Name of the plan.\").nullable(),\n slug: z.string().describe(\"URL-friendly plan identifier.\").nullable(),\n type: z.string().describe(\"Plan type.\").nullable(),\n price: z.number().describe(\"Price in decimal format.\").nullable(),\n hidden: z.boolean().describe(\"Whether the plan is hidden from public view.\").nullable(),\n currency: z.string().describe(\"Currency code (e.g., USD, EUR).\").nullable(),\n show_qty: z.boolean().describe(\"Display quantity selector.\").nullable(),\n setup_fee: z.number().describe(\"One-time setup fee.\").nullable().optional(),\n created_at: z.string().describe(\"ISO 8601 timestamp of creation.\").nullable(),\n updated_at: z.string().describe(\"ISO 8601 timestamp of last update.\").nullable(),\n billing_day: z.number().int().describe(\"Day of month for billing.\").nullable().optional(),\n description: z.string().describe(\"Description of the plan.\").nullable().optional(),\n limited_qty: z.boolean().describe(\"Whether plan has limited quantity.\").nullable(),\n success_url: z.string().describe(\"Redirect URL after successful payment.\").nullable().optional(),\n webhook_url: z.string().describe(\"Webhook URL for notifications.\").nullable().optional(),\n cancel_after: z.number().int().describe(\"Auto-cancel subscription after N cycles.\").nullable().optional(),\n payment_type: z.string().describe(\"Type of payment (one-time or recurring).\").nullable(),\n receipt_text: z.string().describe(\"Custom receipt text.\").nullable().optional(),\n custom_fields: z.array(z.record(z.string(), z.unknown())).describe(\"Custom form fields.\").nullable().optional(),\n has_setup_fee: z.boolean().describe(\"Whether setup fee is enabled.\").nullable(),\n price_in_cents: z.number().int().describe(\"Price in cents.\").nullable(),\n pay_button_text: z.string().describe(\"Custom text for payment button.\").nullable().optional(),\n billing_interval: z.string().describe(\"Billing cycle interval (day, week, month, year).\").nullable().optional(),\n trial_period_days: z.number().int().describe(\"Number of trial days.\").nullable().optional(),\n min_billing_cycles: z.number().int().describe(\"Minimum number of billing cycles.\").nullable().optional(),\n user_selects_amount: z.boolean().describe(\"Allow user to select amount.\").nullable(),\n billing_interval_count: z.number().int().describe(\"Number of intervals between billings.\").nullable().optional(),\n}).passthrough().describe(\"Represents a single plan object in the response.\");\nconst PayhereListPlans_PaginationMetaSchema = z.object({\n next_page: z.number().int().describe(\"Next page number or null if last page.\").nullable().optional(),\n prev_page: z.number().int().describe(\"Previous page number or null if first page.\").nullable().optional(),\n total_count: z.number().int().describe(\"Total number of plans.\").nullable(),\n total_pages: z.number().int().describe(\"Total number of pages.\").nullable(),\n current_page: z.number().int().describe(\"Current page number.\").nullable(),\n}).passthrough().describe(\"Pagination metadata for the response.\");\nexport const PayhereListPlansOutput = z.object({\n data: z.array(PayhereListPlans_PlanItemSchema).describe(\"Collection of plan objects.\"),\n meta: PayhereListPlans_PaginationMetaSchema.nullable(),\n}).passthrough().describe(\"Response model for listing plans.\");\n\nexport const payhereListPlans = action(\"PAYHERE_LIST_PLANS\", {\n slug: \"payhere-list-plans\",\n name: \"List Plans\",\n description: \"Tool to list all plans in your PayHere account. Use when you need to retrieve and paginate through available plans.\",\n input: PayhereListPlansInput,\n output: PayhereListPlansOutput,\n});\n"],"mappings":";;;AAIA,MAAa,wBAAwBA,IAAAA,EAAE,OAAO;CAC5C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CACtF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;AAC3G,CAAC,CAAC,CAAC,SAAS,0DAA0D;AACtE,MAAM,kCAAkCA,IAAAA,EAAE,OAAO;CAC/C,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CAC1E,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS;CACxD,MAAMA,IAA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C,YAAY,CAAC,CAAC,SAAS,kDAAkD;AAC5E,MAAM,wCAAwCA,IAAAA,EAAE,OAAO;CACrD,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnG,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxG,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;CAC1E,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,yBAAyBA,IAAAA,EAAE,OAAO;CAC7C,MAAMA,IAAAA,EAAE,MAAM,+BAA+B,CAAC,CAAC,SAAS,6BAA6B;CACrF,MAAM,sCAAsC,SAAS;AACvD,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mCAAmC;AAE7D,MAAa,mBAAmBC,eAAAA,OAAO,sBAAsB;CAC3D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -27,7 +27,7 @@ declare const PayhereListPlansOutput: z.ZodObject<{
27
27
  cancel_after: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
28
28
  payment_type: z.ZodNullable<z.ZodString>;
29
29
  receipt_text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
30
- custom_fields: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{}, z.core.$strip>>>>;
30
+ custom_fields: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
31
31
  has_setup_fee: z.ZodNullable<z.ZodBoolean>;
32
32
  price_in_cents: z.ZodNullable<z.ZodNumber>;
33
33
  pay_button_text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -36,15 +36,15 @@ declare const PayhereListPlansOutput: z.ZodObject<{
36
36
  min_billing_cycles: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
37
37
  user_selects_amount: z.ZodNullable<z.ZodBoolean>;
38
38
  billing_interval_count: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
39
- }, z.core.$strip>>;
39
+ }, z.core.$loose>>;
40
40
  meta: z.ZodNullable<z.ZodObject<{
41
41
  next_page: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
42
42
  prev_page: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
43
43
  total_count: z.ZodNullable<z.ZodNumber>;
44
44
  total_pages: z.ZodNullable<z.ZodNumber>;
45
45
  current_page: z.ZodNullable<z.ZodNumber>;
46
- }, z.core.$strip>>;
47
- }, z.core.$strip>;
46
+ }, z.core.$loose>>;
47
+ }, z.core.$loose>;
48
48
  declare const payhereListPlans: import("@keystrokehq/action").WorkflowActionDefinition<{
49
49
  page?: number | undefined;
50
50
  per_page?: number | undefined;
@@ -27,7 +27,7 @@ declare const PayhereListPlansOutput: z.ZodObject<{
27
27
  cancel_after: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
28
28
  payment_type: z.ZodNullable<z.ZodString>;
29
29
  receipt_text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
30
- custom_fields: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{}, z.core.$strip>>>>;
30
+ custom_fields: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
31
31
  has_setup_fee: z.ZodNullable<z.ZodBoolean>;
32
32
  price_in_cents: z.ZodNullable<z.ZodNumber>;
33
33
  pay_button_text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -36,15 +36,15 @@ declare const PayhereListPlansOutput: z.ZodObject<{
36
36
  min_billing_cycles: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
37
37
  user_selects_amount: z.ZodNullable<z.ZodBoolean>;
38
38
  billing_interval_count: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
39
- }, z.core.$strip>>;
39
+ }, z.core.$loose>>;
40
40
  meta: z.ZodNullable<z.ZodObject<{
41
41
  next_page: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
42
42
  prev_page: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
43
43
  total_count: z.ZodNullable<z.ZodNumber>;
44
44
  total_pages: z.ZodNullable<z.ZodNumber>;
45
45
  current_page: z.ZodNullable<z.ZodNumber>;
46
- }, z.core.$strip>>;
47
- }, z.core.$strip>;
46
+ }, z.core.$loose>>;
47
+ }, z.core.$loose>;
48
48
  declare const payhereListPlans: import("@keystrokehq/action").WorkflowActionDefinition<{
49
49
  page?: number | undefined;
50
50
  per_page?: number | undefined;