@keystrokehq/payhere 0.1.5 → 0.1.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (117) hide show
  1. package/dist/action.cjs.map +1 -1
  2. package/dist/action.mjs.map +1 -1
  3. package/dist/actions/create-hook.cjs +1 -0
  4. package/dist/actions/create-hook.cjs.map +1 -1
  5. package/dist/actions/create-hook.d.cts +3 -19
  6. package/dist/actions/create-hook.d.cts.map +1 -1
  7. package/dist/actions/create-hook.d.mts +3 -19
  8. package/dist/actions/create-hook.d.mts.map +1 -1
  9. package/dist/actions/create-hook.mjs +1 -0
  10. package/dist/actions/create-hook.mjs.map +1 -1
  11. package/dist/actions/create-plan.cjs +1 -0
  12. package/dist/actions/create-plan.cjs.map +1 -1
  13. package/dist/actions/create-plan.d.cts +3 -33
  14. package/dist/actions/create-plan.d.cts.map +1 -1
  15. package/dist/actions/create-plan.d.mts +3 -33
  16. package/dist/actions/create-plan.d.mts.map +1 -1
  17. package/dist/actions/create-plan.mjs +1 -0
  18. package/dist/actions/create-plan.mjs.map +1 -1
  19. package/dist/actions/delete-hook.cjs +1 -0
  20. package/dist/actions/delete-hook.cjs.map +1 -1
  21. package/dist/actions/delete-hook.d.cts +3 -17
  22. package/dist/actions/delete-hook.d.cts.map +1 -1
  23. package/dist/actions/delete-hook.d.mts +3 -17
  24. package/dist/actions/delete-hook.d.mts.map +1 -1
  25. package/dist/actions/delete-hook.mjs +1 -0
  26. package/dist/actions/delete-hook.mjs.map +1 -1
  27. package/dist/actions/get-current-company-stats.cjs +1 -0
  28. package/dist/actions/get-current-company-stats.cjs.map +1 -1
  29. package/dist/actions/get-current-company-stats.d.cts +3 -15
  30. package/dist/actions/get-current-company-stats.d.cts.map +1 -1
  31. package/dist/actions/get-current-company-stats.d.mts +3 -15
  32. package/dist/actions/get-current-company-stats.d.mts.map +1 -1
  33. package/dist/actions/get-current-company-stats.mjs +1 -0
  34. package/dist/actions/get-current-company-stats.mjs.map +1 -1
  35. package/dist/actions/get-current-company.cjs +1 -0
  36. package/dist/actions/get-current-company.cjs.map +1 -1
  37. package/dist/actions/get-current-company.d.cts +3 -15
  38. package/dist/actions/get-current-company.d.cts.map +1 -1
  39. package/dist/actions/get-current-company.d.mts +3 -15
  40. package/dist/actions/get-current-company.d.mts.map +1 -1
  41. package/dist/actions/get-current-company.mjs +1 -0
  42. package/dist/actions/get-current-company.mjs.map +1 -1
  43. package/dist/actions/get-user.cjs +1 -0
  44. package/dist/actions/get-user.cjs.map +1 -1
  45. package/dist/actions/get-user.d.cts +3 -15
  46. package/dist/actions/get-user.d.cts.map +1 -1
  47. package/dist/actions/get-user.d.mts +3 -15
  48. package/dist/actions/get-user.d.mts.map +1 -1
  49. package/dist/actions/get-user.mjs +1 -0
  50. package/dist/actions/get-user.mjs.map +1 -1
  51. package/dist/actions/list-customers.cjs +1 -0
  52. package/dist/actions/list-customers.cjs.map +1 -1
  53. package/dist/actions/list-customers.d.cts +3 -18
  54. package/dist/actions/list-customers.d.cts.map +1 -1
  55. package/dist/actions/list-customers.d.mts +3 -18
  56. package/dist/actions/list-customers.d.mts.map +1 -1
  57. package/dist/actions/list-customers.mjs +1 -0
  58. package/dist/actions/list-customers.mjs.map +1 -1
  59. package/dist/actions/list-hooks.cjs +1 -0
  60. package/dist/actions/list-hooks.cjs.map +1 -1
  61. package/dist/actions/list-hooks.d.cts +3 -15
  62. package/dist/actions/list-hooks.d.cts.map +1 -1
  63. package/dist/actions/list-hooks.d.mts +3 -15
  64. package/dist/actions/list-hooks.d.mts.map +1 -1
  65. package/dist/actions/list-hooks.mjs +1 -0
  66. package/dist/actions/list-hooks.mjs.map +1 -1
  67. package/dist/actions/list-payments.cjs +1 -0
  68. package/dist/actions/list-payments.cjs.map +1 -1
  69. package/dist/actions/list-payments.d.cts +3 -18
  70. package/dist/actions/list-payments.d.cts.map +1 -1
  71. package/dist/actions/list-payments.d.mts +3 -18
  72. package/dist/actions/list-payments.d.mts.map +1 -1
  73. package/dist/actions/list-payments.mjs +1 -0
  74. package/dist/actions/list-payments.mjs.map +1 -1
  75. package/dist/actions/list-plans.cjs +1 -0
  76. package/dist/actions/list-plans.cjs.map +1 -1
  77. package/dist/actions/list-plans.d.cts +3 -18
  78. package/dist/actions/list-plans.d.cts.map +1 -1
  79. package/dist/actions/list-plans.d.mts +3 -18
  80. package/dist/actions/list-plans.d.mts.map +1 -1
  81. package/dist/actions/list-plans.mjs +1 -0
  82. package/dist/actions/list-plans.mjs.map +1 -1
  83. package/dist/actions/list-subscriptions.cjs +1 -0
  84. package/dist/actions/list-subscriptions.cjs.map +1 -1
  85. package/dist/actions/list-subscriptions.d.cts +3 -18
  86. package/dist/actions/list-subscriptions.d.cts.map +1 -1
  87. package/dist/actions/list-subscriptions.d.mts +3 -18
  88. package/dist/actions/list-subscriptions.d.mts.map +1 -1
  89. package/dist/actions/list-subscriptions.mjs +1 -0
  90. package/dist/actions/list-subscriptions.mjs.map +1 -1
  91. package/dist/actions/update-current-company.cjs +1 -0
  92. package/dist/actions/update-current-company.cjs.map +1 -1
  93. package/dist/actions/update-current-company.d.cts +3 -28
  94. package/dist/actions/update-current-company.d.cts.map +1 -1
  95. package/dist/actions/update-current-company.d.mts +3 -28
  96. package/dist/actions/update-current-company.d.mts.map +1 -1
  97. package/dist/actions/update-current-company.mjs +1 -0
  98. package/dist/actions/update-current-company.mjs.map +1 -1
  99. package/dist/actions/update-plan.cjs +1 -0
  100. package/dist/actions/update-plan.cjs.map +1 -1
  101. package/dist/actions/update-plan.d.cts +3 -31
  102. package/dist/actions/update-plan.d.cts.map +1 -1
  103. package/dist/actions/update-plan.d.mts +3 -31
  104. package/dist/actions/update-plan.d.mts.map +1 -1
  105. package/dist/actions/update-plan.mjs +1 -0
  106. package/dist/actions/update-plan.mjs.map +1 -1
  107. package/dist/app.cjs +5 -4
  108. package/dist/app.cjs.map +1 -1
  109. package/dist/app.d.cts +4 -6
  110. package/dist/app.d.cts.map +1 -1
  111. package/dist/app.d.mts +4 -6
  112. package/dist/app.d.mts.map +1 -1
  113. package/dist/app.mjs +0 -1
  114. package/dist/app.mjs.map +1 -1
  115. package/dist/index.d.cts +1 -1
  116. package/dist/index.d.mts +1 -1
  117. package/package.json +2 -2
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/get-current-company.ts
@@ -1 +1 @@
1
- {"version":3,"file":"get-current-company.cjs","names":["z","action"],"sources":["../../src/actions/get-current-company.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PayhereGetCurrentCompanyInput = z.object({}).describe(\"Request model for retrieving current company information. No parameters are required.\");\nconst PayhereGetCurrentCompany_UserSchema = z.object({\n id: z.number().int().describe(\"User identifier.\").nullable().optional(),\n role: z.string().describe(\"User's role in the company.\").nullable().optional(),\n email: z.string().describe(\"User's email address.\").nullable().optional(),\n display_name: z.string().describe(\"User's display name.\").nullable().optional(),\n}).passthrough().describe(\"User account associated with the company.\");\nexport const PayhereGetCurrentCompanyOutput = z.object({\n id: z.number().int().describe(\"Company identifier.\").nullable().optional(),\n name: z.string().describe(\"Company display name.\").nullable().optional(),\n plan: z.string().describe(\"Subscription plan type.\").nullable().optional(),\n role: z.string().describe(\"Account role (e.g., 'testing').\").nullable().optional(),\n slug: z.string().describe(\"URL-friendly identifier.\").nullable().optional(),\n ready: z.boolean().describe(\"Operational status.\").nullable().optional(),\n users: z.array(PayhereGetCurrentCompany_UserSchema).describe(\"Associated user accounts.\").nullable().optional(),\n currency: z.string().describe(\"ISO currency code.\").nullable().optional(),\n vat_rate: z.string().describe(\"VAT percentage.\").nullable().optional(),\n legal_name: z.string().describe(\"Registered legal name.\").nullable().optional(),\n button_text: z.string().describe(\"Text color setting.\").nullable().optional(),\n button_color: z.string().describe(\"Hex color value.\").nullable().optional(),\n country_code: z.string().describe(\"ISO country code.\").nullable().optional(),\n vat_registered: z.boolean().describe(\"VAT registration status.\").nullable().optional(),\n stripe_connected: z.boolean().describe(\"Stripe integration status.\").nullable().optional(),\n subscription_status: z.string().describe(\"Current subscription state.\").nullable().optional(),\n gocardless_connected: z.boolean().describe(\"GoCardless integration status.\").nullable().optional(),\n}).passthrough().describe(\"Response model for company information.\");\n\nexport const payhereGetCurrentCompany = action(\"PAYHERE_GET_CURRENT_COMPANY\", {\n slug: \"payhere-get-current-company\",\n name: \"Get Current Company\",\n description: \"Tool to fetch company information for the currently authenticated user. Use when you need to retrieve comprehensive company details including identity, configuration, integration status, and associated users.\",\n input: PayhereGetCurrentCompanyInput,\n output: PayhereGetCurrentCompanyOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAAgCA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,uFAAuF;AAC1J,MAAM,sCAAsCA,IAAAA,EAAE,OAAO;CACnD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7E,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxE,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAChF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2CAA2C;AACrE,MAAa,iCAAiCA,IAAAA,EAAE,OAAO;CACrD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,C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4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzF,qBAAqBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5F,sBAAsBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACnG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yCAAyC;AAEnE,MAAa,2BAA2BC,eAAAA,OAAO,+BAA+B;CAC5E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"get-current-company.cjs","names":["z","action"],"sources":["../../src/actions/get-current-company.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { payhere } from \"../app\";\n\nexport const PayhereGetCurrentCompanyInput = z.object({}).describe(\"Request model for retrieving current company information. No parameters are required.\");\nconst PayhereGetCurrentCompany_UserSchema = z.object({\n id: z.number().int().describe(\"User identifier.\").nullable().optional(),\n role: z.string().describe(\"User's role in the company.\").nullable().optional(),\n email: z.string().describe(\"User's email address.\").nullable().optional(),\n display_name: z.string().describe(\"User's display name.\").nullable().optional(),\n}).passthrough().describe(\"User account associated with the company.\");\nexport const PayhereGetCurrentCompanyOutput = z.object({\n id: z.number().int().describe(\"Company identifier.\").nullable().optional(),\n name: z.string().describe(\"Company display name.\").nullable().optional(),\n plan: z.string().describe(\"Subscription plan type.\").nullable().optional(),\n role: z.string().describe(\"Account role (e.g., 'testing').\").nullable().optional(),\n slug: z.string().describe(\"URL-friendly identifier.\").nullable().optional(),\n ready: z.boolean().describe(\"Operational status.\").nullable().optional(),\n users: z.array(PayhereGetCurrentCompany_UserSchema).describe(\"Associated user accounts.\").nullable().optional(),\n currency: z.string().describe(\"ISO currency code.\").nullable().optional(),\n vat_rate: z.string().describe(\"VAT percentage.\").nullable().optional(),\n legal_name: z.string().describe(\"Registered legal name.\").nullable().optional(),\n button_text: z.string().describe(\"Text color setting.\").nullable().optional(),\n button_color: z.string().describe(\"Hex color value.\").nullable().optional(),\n country_code: z.string().describe(\"ISO country code.\").nullable().optional(),\n vat_registered: z.boolean().describe(\"VAT registration status.\").nullable().optional(),\n stripe_connected: z.boolean().describe(\"Stripe integration status.\").nullable().optional(),\n subscription_status: z.string().describe(\"Current subscription state.\").nullable().optional(),\n gocardless_connected: z.boolean().describe(\"GoCardless integration status.\").nullable().optional(),\n}).passthrough().describe(\"Response model for company information.\");\n\nexport const payhereGetCurrentCompany: AppAction<\n typeof PayhereGetCurrentCompanyInput,\n typeof PayhereGetCurrentCompanyOutput,\n typeof payhere.credential\n> = action(\"PAYHERE_GET_CURRENT_COMPANY\", {\n slug: \"payhere-get-current-company\",\n name: \"Get Current Company\",\n description: \"Tool to fetch company information for the currently authenticated user. Use when you need to retrieve comprehensive company details including identity, configuration, integration status, and associated users.\",\n input: PayhereGetCurrentCompanyInput,\n output: PayhereGetCurrentCompanyOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,gCAAgCA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,uFAAuF;AAC1J,MAAM,sCAAsCA,IAAAA,EAAE,OAAO;CACnD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7E,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxE,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAChF,CAAC,CA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SAAS,CAAC,CAAC,SAAS;CAC1E,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3E,gBAAgBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrF,kBAAkBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzF,qBAAqBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5F,sBAAsBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACnG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yCAAyC;AAEnE,MAAa,2BAITC,eAAAA,OAAO,+BAA+B;CACxC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { payhere } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/get-current-company.d.ts
@@ -26,21 +28,7 @@ declare const PayhereGetCurrentCompanyOutput: z.ZodObject<{
26
28
  subscription_status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
27
29
  gocardless_connected: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
28
30
  }, z.core.$loose>;
29
- declare const payhereGetCurrentCompany: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"payhere", z.ZodObject<{
30
- connectionId: z.ZodString;
31
- entityId: z.ZodString;
32
- instanceId: z.ZodString;
33
- }, z.core.$strip>, z.ZodObject<{
34
- subdomain: z.ZodString;
35
- generic_api_key: z.ZodString;
36
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"payhere", z.ZodObject<{
37
- connectionId: z.ZodString;
38
- entityId: z.ZodString;
39
- instanceId: z.ZodString;
40
- }, z.core.$strip>, z.ZodObject<{
41
- subdomain: z.ZodString;
42
- generic_api_key: z.ZodString;
43
- }, z.core.$strip>>]>;
31
+ declare const payhereGetCurrentCompany: AppAction<typeof PayhereGetCurrentCompanyInput, typeof PayhereGetCurrentCompanyOutput, typeof payhere.credential>;
44
32
  //#endregion
45
33
  export { payhereGetCurrentCompany };
46
34
  //# sourceMappingURL=get-current-company.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-current-company.d.cts","names":[],"sources":["../../src/actions/get-current-company.ts"],"mappings":";;;cAIa,6BAAA,EAA6B,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAO7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;cAoB9B,wBAAA,gCAAwB,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,YAAA,CAAA,CAAA,SAAA"}
1
+ {"version":3,"file":"get-current-company.d.cts","names":[],"sources":["../../src/actions/get-current-company.ts"],"mappings":";;;;;cAMa,6BAAA,EAA6B,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAO7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;cAoB9B,wBAAA,EAA0B,SAAA,QAC9B,6BAAA,SACA,8BAAA,SACA,OAAA,CAAQ,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { payhere } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/get-current-company.d.ts
@@ -26,21 +28,7 @@ declare const PayhereGetCurrentCompanyOutput: z.ZodObject<{
26
28
  subscription_status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
27
29
  gocardless_connected: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
28
30
  }, z.core.$loose>;
29
- declare const payhereGetCurrentCompany: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"payhere", z.ZodObject<{
30
- connectionId: z.ZodString;
31
- entityId: z.ZodString;
32
- instanceId: z.ZodString;
33
- }, z.core.$strip>, z.ZodObject<{
34
- subdomain: z.ZodString;
35
- generic_api_key: z.ZodString;
36
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"payhere", z.ZodObject<{
37
- connectionId: z.ZodString;
38
- entityId: z.ZodString;
39
- instanceId: z.ZodString;
40
- }, z.core.$strip>, z.ZodObject<{
41
- subdomain: z.ZodString;
42
- generic_api_key: z.ZodString;
43
- }, z.core.$strip>>]>;
31
+ declare const payhereGetCurrentCompany: AppAction<typeof PayhereGetCurrentCompanyInput, typeof PayhereGetCurrentCompanyOutput, typeof payhere.credential>;
44
32
  //#endregion
45
33
  export { payhereGetCurrentCompany };
46
34
  //# sourceMappingURL=get-current-company.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-current-company.d.mts","names":[],"sources":["../../src/actions/get-current-company.ts"],"mappings":";;;cAIa,6BAAA,EAA6B,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAO7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;cAoB9B,wBAAA,gCAAwB,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,YAAA,CAAA,CAAA,SAAA"}
1
+ {"version":3,"file":"get-current-company.d.mts","names":[],"sources":["../../src/actions/get-current-company.ts"],"mappings":";;;;;cAMa,6BAAA,EAA6B,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAO7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;cAoB9B,wBAAA,EAA0B,SAAA,QAC9B,6BAAA,SACA,8BAAA,SACA,OAAA,CAAQ,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  //#region src/actions/get-current-company.ts
@@ -1 +1 @@
1
- {"version":3,"file":"get-current-company.mjs","names":[],"sources":["../../src/actions/get-current-company.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PayhereGetCurrentCompanyInput = z.object({}).describe(\"Request model for retrieving current company information. No parameters are required.\");\nconst PayhereGetCurrentCompany_UserSchema = z.object({\n id: z.number().int().describe(\"User identifier.\").nullable().optional(),\n role: z.string().describe(\"User's role in the company.\").nullable().optional(),\n email: z.string().describe(\"User's email address.\").nullable().optional(),\n display_name: z.string().describe(\"User's display name.\").nullable().optional(),\n}).passthrough().describe(\"User account associated with the company.\");\nexport const PayhereGetCurrentCompanyOutput = z.object({\n id: z.number().int().describe(\"Company identifier.\").nullable().optional(),\n name: z.string().describe(\"Company display name.\").nullable().optional(),\n plan: z.string().describe(\"Subscription plan type.\").nullable().optional(),\n role: z.string().describe(\"Account role (e.g., 'testing').\").nullable().optional(),\n slug: z.string().describe(\"URL-friendly identifier.\").nullable().optional(),\n ready: z.boolean().describe(\"Operational status.\").nullable().optional(),\n users: z.array(PayhereGetCurrentCompany_UserSchema).describe(\"Associated user accounts.\").nullable().optional(),\n currency: z.string().describe(\"ISO currency code.\").nullable().optional(),\n vat_rate: z.string().describe(\"VAT percentage.\").nullable().optional(),\n legal_name: z.string().describe(\"Registered legal name.\").nullable().optional(),\n button_text: z.string().describe(\"Text color setting.\").nullable().optional(),\n button_color: z.string().describe(\"Hex color value.\").nullable().optional(),\n country_code: z.string().describe(\"ISO country code.\").nullable().optional(),\n vat_registered: z.boolean().describe(\"VAT registration status.\").nullable().optional(),\n stripe_connected: z.boolean().describe(\"Stripe integration status.\").nullable().optional(),\n subscription_status: z.string().describe(\"Current subscription state.\").nullable().optional(),\n gocardless_connected: z.boolean().describe(\"GoCardless integration status.\").nullable().optional(),\n}).passthrough().describe(\"Response model for company information.\");\n\nexport const payhereGetCurrentCompany = action(\"PAYHERE_GET_CURRENT_COMPANY\", {\n slug: \"payhere-get-current-company\",\n name: \"Get Current Company\",\n description: \"Tool to fetch company information for the currently authenticated user. Use when you need to retrieve comprehensive company details including identity, configuration, integration status, and associated users.\",\n input: PayhereGetCurrentCompanyInput,\n output: PayhereGetCurrentCompanyOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAAgC,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,uFAAuF;AAC1J,MAAM,sCAAsC,EAAE,OAAO;CACnD,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7E,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxE,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAChF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2CAA2C;AAqBrE,MAAa,2BAA2B,OAAO,+BAA+B;CAC5E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAzB4C,EAAE,OAAO;EACrD,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACzE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,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,CAAC,CAAC,SAAS;EAC5F,sBAAsB,EAAE,QAAQ,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yCAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"get-current-company.mjs","names":[],"sources":["../../src/actions/get-current-company.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { payhere } from \"../app\";\n\nexport const PayhereGetCurrentCompanyInput = z.object({}).describe(\"Request model for retrieving current company information. No parameters are required.\");\nconst PayhereGetCurrentCompany_UserSchema = z.object({\n id: z.number().int().describe(\"User identifier.\").nullable().optional(),\n role: z.string().describe(\"User's role in the company.\").nullable().optional(),\n email: z.string().describe(\"User's email address.\").nullable().optional(),\n display_name: z.string().describe(\"User's display name.\").nullable().optional(),\n}).passthrough().describe(\"User account associated with the company.\");\nexport const PayhereGetCurrentCompanyOutput = z.object({\n id: z.number().int().describe(\"Company identifier.\").nullable().optional(),\n name: z.string().describe(\"Company display name.\").nullable().optional(),\n plan: z.string().describe(\"Subscription plan type.\").nullable().optional(),\n role: z.string().describe(\"Account role (e.g., 'testing').\").nullable().optional(),\n slug: z.string().describe(\"URL-friendly identifier.\").nullable().optional(),\n ready: z.boolean().describe(\"Operational status.\").nullable().optional(),\n users: z.array(PayhereGetCurrentCompany_UserSchema).describe(\"Associated user accounts.\").nullable().optional(),\n currency: z.string().describe(\"ISO currency code.\").nullable().optional(),\n vat_rate: z.string().describe(\"VAT percentage.\").nullable().optional(),\n legal_name: z.string().describe(\"Registered legal name.\").nullable().optional(),\n button_text: z.string().describe(\"Text color setting.\").nullable().optional(),\n button_color: z.string().describe(\"Hex color value.\").nullable().optional(),\n country_code: z.string().describe(\"ISO country code.\").nullable().optional(),\n vat_registered: z.boolean().describe(\"VAT registration status.\").nullable().optional(),\n stripe_connected: z.boolean().describe(\"Stripe integration status.\").nullable().optional(),\n subscription_status: z.string().describe(\"Current subscription state.\").nullable().optional(),\n gocardless_connected: z.boolean().describe(\"GoCardless integration status.\").nullable().optional(),\n}).passthrough().describe(\"Response model for company information.\");\n\nexport const payhereGetCurrentCompany: AppAction<\n typeof PayhereGetCurrentCompanyInput,\n typeof PayhereGetCurrentCompanyOutput,\n typeof payhere.credential\n> = action(\"PAYHERE_GET_CURRENT_COMPANY\", {\n slug: \"payhere-get-current-company\",\n name: \"Get Current Company\",\n description: \"Tool to fetch company information for the currently authenticated user. Use when you need to retrieve comprehensive company details including identity, configuration, integration status, and associated users.\",\n input: PayhereGetCurrentCompanyInput,\n output: PayhereGetCurrentCompanyOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,gCAAgC,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,uFAAuF;AAC1J,MAAM,sCAAsC,EAAE,OAAO;CACnD,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7E,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxE,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAChF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2CAA2C;AAqBrE,MAAa,2BAIT,OAAO,+BAA+B;CACxC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QA7B4C,EAAE,OAAO;EACrD,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACzE,MAAM,EAAE,OAAO,CAAC,CAAC,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,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC5F,sBAAsB,EAAE,QAAQ,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yCAWhB;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/get-user.ts
@@ -1 +1 @@
1
- {"version":3,"file":"get-user.cjs","names":["z","action"],"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":";;;AAIA,MAAa,sBAAsBA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,yGAAyG;AAClK,MAAa,uBAAuBA,IAAAA,EAAE,OAAO;CAC3C,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CAC9E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CACpF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CACjE,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;CAClG,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;CACnG,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;AACzE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oDAAoD;AAE9E,MAAa,iBAAiBC,eAAAA,OAAO,oBAAoB;CACvD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"get-user.cjs","names":["z","action"],"sources":["../../src/actions/get-user.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { payhere } from \"../app\";\n\nexport const 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: AppAction<\n typeof PayhereGetUserInput,\n typeof PayhereGetUserOutput,\n typeof payhere.credential\n> = 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":";;;;AAMA,MAAa,sBAAsBA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,yGAAyG;AAClK,MAAa,uBAAuBA,IAAAA,EAAE,OAAO;CAC3C,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CAC9E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CACpF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CACjE,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;CAClG,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;CACnG,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;AACzE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oDAAoD;AAE9E,MAAa,iBAITC,eAAAA,OAAO,oBAAoB;CAC7B,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { payhere } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/get-user.d.ts
@@ -10,21 +12,7 @@ declare const PayhereGetUserOutput: z.ZodObject<{
10
12
  updated_at: z.ZodNullable<z.ZodString>;
11
13
  display_name: z.ZodNullable<z.ZodString>;
12
14
  }, z.core.$loose>;
13
- declare const payhereGetUser: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"payhere", z.ZodObject<{
14
- connectionId: z.ZodString;
15
- entityId: z.ZodString;
16
- instanceId: z.ZodString;
17
- }, z.core.$strip>, z.ZodObject<{
18
- subdomain: z.ZodString;
19
- generic_api_key: z.ZodString;
20
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"payhere", z.ZodObject<{
21
- connectionId: z.ZodString;
22
- entityId: z.ZodString;
23
- instanceId: z.ZodString;
24
- }, z.core.$strip>, z.ZodObject<{
25
- subdomain: z.ZodString;
26
- generic_api_key: z.ZodString;
27
- }, z.core.$strip>>]>;
15
+ declare const payhereGetUser: AppAction<typeof PayhereGetUserInput, typeof PayhereGetUserOutput, typeof payhere.credential>;
28
16
  //#endregion
29
17
  export { payhereGetUser };
30
18
  //# sourceMappingURL=get-user.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-user.d.cts","names":[],"sources":["../../src/actions/get-user.ts"],"mappings":";;;cAIa,mBAAA,EAAmB,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cACnB,oBAAA,EAAoB,CAAA,CAAA,SAAA;;;;;;;;cASpB,cAAA,gCAAc,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,YAAA,CAAA,CAAA,SAAA"}
1
+ {"version":3,"file":"get-user.d.cts","names":[],"sources":["../../src/actions/get-user.ts"],"mappings":";;;;;cAMa,mBAAA,EAAmB,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cACnB,oBAAA,EAAoB,CAAA,CAAA,SAAA;;;;;;;;cASpB,cAAA,EAAgB,SAAA,QACpB,mBAAA,SACA,oBAAA,SACA,OAAA,CAAQ,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { payhere } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/get-user.d.ts
@@ -10,21 +12,7 @@ declare const PayhereGetUserOutput: z.ZodObject<{
10
12
  updated_at: z.ZodNullable<z.ZodString>;
11
13
  display_name: z.ZodNullable<z.ZodString>;
12
14
  }, z.core.$loose>;
13
- declare const payhereGetUser: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"payhere", z.ZodObject<{
14
- connectionId: z.ZodString;
15
- entityId: z.ZodString;
16
- instanceId: z.ZodString;
17
- }, z.core.$strip>, z.ZodObject<{
18
- subdomain: z.ZodString;
19
- generic_api_key: z.ZodString;
20
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"payhere", z.ZodObject<{
21
- connectionId: z.ZodString;
22
- entityId: z.ZodString;
23
- instanceId: z.ZodString;
24
- }, z.core.$strip>, z.ZodObject<{
25
- subdomain: z.ZodString;
26
- generic_api_key: z.ZodString;
27
- }, z.core.$strip>>]>;
15
+ declare const payhereGetUser: AppAction<typeof PayhereGetUserInput, typeof PayhereGetUserOutput, typeof payhere.credential>;
28
16
  //#endregion
29
17
  export { payhereGetUser };
30
18
  //# sourceMappingURL=get-user.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-user.d.mts","names":[],"sources":["../../src/actions/get-user.ts"],"mappings":";;;cAIa,mBAAA,EAAmB,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cACnB,oBAAA,EAAoB,CAAA,CAAA,SAAA;;;;;;;;cASpB,cAAA,gCAAc,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,YAAA,CAAA,CAAA,SAAA"}
1
+ {"version":3,"file":"get-user.d.mts","names":[],"sources":["../../src/actions/get-user.ts"],"mappings":";;;;;cAMa,mBAAA,EAAmB,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cACnB,oBAAA,EAAoB,CAAA,CAAA,SAAA;;;;;;;;cASpB,cAAA,EAAgB,SAAA,QACpB,mBAAA,SACA,oBAAA,SACA,OAAA,CAAQ,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  const payhereGetUser = action("PAYHERE_GET_USER", {
@@ -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}).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"}
1
+ {"version":3,"file":"get-user.mjs","names":[],"sources":["../../src/actions/get-user.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { payhere } from \"../app\";\n\nexport const 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: AppAction<\n typeof PayhereGetUserInput,\n typeof PayhereGetUserOutput,\n typeof payhere.credential\n> = 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":";;;AAgBA,MAAa,iBAIT,OAAO,oBAAoB;CAC7B,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAlBiC,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,yGAkBhD;CACP,QAlBkC,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,oDAWhB;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/list-customers.ts
@@ -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.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,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6BAA6B,CAAC,C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A,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"}
1
+ {"version":3,"file":"list-customers.cjs","names":["z","action"],"sources":["../../src/actions/list-customers.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { payhere } from \"../app\";\n\nexport const 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: AppAction<\n typeof PayhereListCustomersInput,\n typeof PayhereListCustomersOutput,\n typeof payhere.credential\n> = 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":";;;;AAMA,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,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CACtE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB,CAAC,CAAC,SAAS;CACrD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CACzE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AuC;AAEjE,MAAa,uBAITC,eAAAA,OAAO,0BAA0B;CACnC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { payhere } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/list-customers.d.ts
@@ -24,24 +26,7 @@ declare const PayhereListCustomersOutput: z.ZodObject<{
24
26
  current_page: z.ZodNullable<z.ZodNumber>;
25
27
  }, z.core.$loose>>;
26
28
  }, 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<"payhere", z.ZodObject<{
31
- connectionId: z.ZodString;
32
- entityId: z.ZodString;
33
- instanceId: z.ZodString;
34
- }, z.core.$strip>, z.ZodObject<{
35
- subdomain: z.ZodString;
36
- generic_api_key: z.ZodString;
37
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"payhere", z.ZodObject<{
38
- connectionId: z.ZodString;
39
- entityId: z.ZodString;
40
- instanceId: z.ZodString;
41
- }, z.core.$strip>, z.ZodObject<{
42
- subdomain: z.ZodString;
43
- generic_api_key: z.ZodString;
44
- }, z.core.$strip>>]>;
29
+ declare const payhereListCustomers: AppAction<typeof PayhereListCustomersInput, typeof PayhereListCustomersOutput, typeof payhere.credential>;
45
30
  //#endregion
46
31
  export { payhereListCustomers };
47
32
  //# 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,EAAyB,CAAA,CAAA,SAAA;;;;cAsBzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;cAK1B,oBAAA,gCAAoB,wBAAA"}
1
+ {"version":3,"file":"list-customers.d.cts","names":[],"sources":["../../src/actions/list-customers.ts"],"mappings":";;;;;cAMa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;cAsBzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;cAK1B,oBAAA,EAAsB,SAAA,QAC1B,yBAAA,SACA,0BAAA,SACA,OAAA,CAAQ,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { payhere } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/list-customers.d.ts
@@ -24,24 +26,7 @@ declare const PayhereListCustomersOutput: z.ZodObject<{
24
26
  current_page: z.ZodNullable<z.ZodNumber>;
25
27
  }, z.core.$loose>>;
26
28
  }, 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<"payhere", z.ZodObject<{
31
- connectionId: z.ZodString;
32
- entityId: z.ZodString;
33
- instanceId: z.ZodString;
34
- }, z.core.$strip>, z.ZodObject<{
35
- subdomain: z.ZodString;
36
- generic_api_key: z.ZodString;
37
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"payhere", z.ZodObject<{
38
- connectionId: z.ZodString;
39
- entityId: z.ZodString;
40
- instanceId: z.ZodString;
41
- }, z.core.$strip>, z.ZodObject<{
42
- subdomain: z.ZodString;
43
- generic_api_key: z.ZodString;
44
- }, z.core.$strip>>]>;
29
+ declare const payhereListCustomers: AppAction<typeof PayhereListCustomersInput, typeof PayhereListCustomersOutput, typeof payhere.credential>;
45
30
  //#endregion
46
31
  export { payhereListCustomers };
47
32
  //# 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,EAAyB,CAAA,CAAA,SAAA;;;;cAsBzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;cAK1B,oBAAA,gCAAoB,wBAAA"}
1
+ {"version":3,"file":"list-customers.d.mts","names":[],"sources":["../../src/actions/list-customers.ts"],"mappings":";;;;;cAMa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;cAsBzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;cAK1B,oBAAA,EAAsB,SAAA,QAC1B,yBAAA,SACA,0BAAA,SACA,OAAA,CAAQ,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  //#region src/actions/list-customers.ts
@@ -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.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,o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AOhB;AACV,CAAC"}
1
+ {"version":3,"file":"list-customers.mjs","names":[],"sources":["../../src/actions/list-customers.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { payhere } from \"../app\";\n\nexport const 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: AppAction<\n typeof PayhereListCustomersInput,\n typeof PayhereListCustomersOutput,\n typeof payhere.credential\n> = 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":";;;;AAMA,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,uBAIT,OAAO,0BAA0B;CACnC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAdwC,EAAE,OAAO;EACjD,MAAM,EAAE,MAAM,mCAAmC,CAAC,CAAC,SAAS,+DAA+D;EAC3H,MAAM,6CAA6C,SAAS;CAC9D,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uCAWhB;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/list-hooks.ts
@@ -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}).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
+ {"version":3,"file":"list-hooks.cjs","names":["z","action"],"sources":["../../src/actions/list-hooks.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { payhere } from \"../app\";\n\nexport const 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: AppAction<\n typeof PayhereListHooksInput,\n typeof PayhereListHooksOutput,\n typeof payhere.credential\n> = 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":";;;;AAMA,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,mBAITC,eAAAA,OAAO,sBAAsB;CAC/B,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { payhere } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/list-hooks.d.ts
@@ -14,21 +16,7 @@ declare const PayhereListHooksOutput: z.ZodObject<{
14
16
  integration: z.ZodNullable<z.ZodString>;
15
17
  }, z.core.$loose>>;
16
18
  }, z.core.$loose>;
17
- declare const payhereListHooks: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"payhere", z.ZodObject<{
18
- connectionId: z.ZodString;
19
- entityId: z.ZodString;
20
- instanceId: z.ZodString;
21
- }, z.core.$strip>, z.ZodObject<{
22
- subdomain: z.ZodString;
23
- generic_api_key: z.ZodString;
24
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"payhere", z.ZodObject<{
25
- connectionId: z.ZodString;
26
- entityId: z.ZodString;
27
- instanceId: z.ZodString;
28
- }, z.core.$strip>, z.ZodObject<{
29
- subdomain: z.ZodString;
30
- generic_api_key: z.ZodString;
31
- }, z.core.$strip>>]>;
19
+ declare const payhereListHooks: AppAction<typeof PayhereListHooksInput, typeof PayhereListHooksOutput, typeof payhere.credential>;
32
20
  //#endregion
33
21
  export { payhereListHooks };
34
22
  //# 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,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,YAAA,CAAA,CAAA,SAAA"}
1
+ {"version":3,"file":"list-hooks.d.cts","names":[],"sources":["../../src/actions/list-hooks.ts"],"mappings":";;;;;cAMa,qBAAA,EAAqB,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAWrB,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;;;;;;;;cAItB,gBAAA,EAAkB,SAAA,QACtB,qBAAA,SACA,sBAAA,SACA,OAAA,CAAQ,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { payhere } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/list-hooks.d.ts
@@ -14,21 +16,7 @@ declare const PayhereListHooksOutput: z.ZodObject<{
14
16
  integration: z.ZodNullable<z.ZodString>;
15
17
  }, z.core.$loose>>;
16
18
  }, z.core.$loose>;
17
- declare const payhereListHooks: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"payhere", z.ZodObject<{
18
- connectionId: z.ZodString;
19
- entityId: z.ZodString;
20
- instanceId: z.ZodString;
21
- }, z.core.$strip>, z.ZodObject<{
22
- subdomain: z.ZodString;
23
- generic_api_key: z.ZodString;
24
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"payhere", z.ZodObject<{
25
- connectionId: z.ZodString;
26
- entityId: z.ZodString;
27
- instanceId: z.ZodString;
28
- }, z.core.$strip>, z.ZodObject<{
29
- subdomain: z.ZodString;
30
- generic_api_key: z.ZodString;
31
- }, z.core.$strip>>]>;
19
+ declare const payhereListHooks: AppAction<typeof PayhereListHooksInput, typeof PayhereListHooksOutput, typeof payhere.credential>;
32
20
  //#endregion
33
21
  export { payhereListHooks };
34
22
  //# 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,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,YAAA,CAAA,CAAA,SAAA"}
1
+ {"version":3,"file":"list-hooks.d.mts","names":[],"sources":["../../src/actions/list-hooks.ts"],"mappings":";;;;;cAMa,qBAAA,EAAqB,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAWrB,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;;;;;;;;cAItB,gBAAA,EAAkB,SAAA,QACtB,qBAAA,SACA,sBAAA,SACA,OAAA,CAAQ,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  //#region src/actions/list-hooks.ts
@@ -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}).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"}
1
+ {"version":3,"file":"list-hooks.mjs","names":[],"sources":["../../src/actions/list-hooks.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { payhere } from \"../app\";\n\nexport const 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: AppAction<\n typeof PayhereListHooksInput,\n typeof PayhereListHooksOutput,\n typeof payhere.credential\n> = 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":";;;;AAMA,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,mBAIT,OAAO,sBAAsB;CAC/B,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAboC,EAAE,OAAO,EAC7C,MAAM,EAAE,MAAM,2BAA2B,CAAC,CAAC,SAAS,yCAAyC,EAC/F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iEAWhB;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/list-payments.ts
@@ -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}).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,4BAA4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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
+ {"version":3,"file":"list-payments.cjs","names":["z","action"],"sources":["../../src/actions/list-payments.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { payhere } from \"../app\";\n\nexport const PayhereListPaymentsInput = z.object({\n page: z.number().int().describe(\"Page number for pagination.\").optional(),\n per_page: z.number().int().describe(\"Number of records per page (default: 20, maximum: 100).\").optional(),\n}).describe(\"Request model for listing payments with pagination options.\");\nconst PayhereListPayments_PaymentItemSchema = z.object({\n id: z.number().int().describe(\"Unique payment identifier.\").nullable(),\n type: z.string().describe(\"Resource type identifier.\").nullable(),\n amount: z.number().describe(\"Payment amount as a number.\").nullable(),\n hashid: z.string().describe(\"Hashed payment ID.\").nullable(),\n status: z.string().describe(\"Payment status (e.g., 'success', 'part_refund', 'failed').\").nullable(),\n success: z.boolean().describe(\"Whether payment succeeded.\").nullable(),\n currency: z.string().describe(\"Currency code (e.g., 'gbp', 'usd').\").nullable(),\n reference: z.string().describe(\"Payment reference number.\").nullable(),\n card_brand: z.string().describe(\"Card type (e.g., 'visa', 'mastercard').\").nullable(),\n card_last4: z.string().describe(\"Last 4 digits of card number.\").nullable(),\n company_id: z.number().int().describe(\"Associated company identifier.\").nullable(),\n created_at: z.string().describe(\"Creation timestamp.\").nullable(),\n updated_at: z.string().describe(\"Last update timestamp.\").nullable(),\n amount_paid: z.number().describe(\"Net amount paid after refunds.\").nullable(),\n secure_token: z.string().describe(\"Security token for the payment.\").nullable(),\n refund_amount: z.number().describe(\"Amount refunded.\").nullable(),\n formatted_amount: z.string().describe(\"Amount with currency symbol formatted as string.\").nullable(),\n}).passthrough().describe(\"Individual payment object with all relevant details.\");\nconst PayhereListPayments_PaginationMetaSchema = z.object({\n next_page: z.number().int().describe(\"Next page number if available.\").nullable().optional(),\n prev_page: z.number().int().describe(\"Previous page number if available.\").nullable().optional(),\n total_count: z.number().int().describe(\"Total number of records.\").nullable(),\n total_pages: z.number().int().describe(\"Total number of pages.\").nullable(),\n current_page: z.number().int().describe(\"Current page number.\").nullable(),\n}).passthrough().describe(\"Pagination metadata for the response.\");\nexport const PayhereListPaymentsOutput = z.object({\n data: z.array(PayhereListPayments_PaymentItemSchema).describe(\"Array of payment objects ordered chronologically, most recent first.\"),\n meta: PayhereListPayments_PaginationMetaSchema.nullable(),\n}).passthrough().describe(\"Response model for listing payments with pagination metadata.\");\n\nexport const payhereListPayments: AppAction<\n typeof PayhereListPaymentsInput,\n typeof PayhereListPaymentsOutput,\n typeof payhere.credential\n> = action(\"PAYHERE_LIST_PAYMENTS\", {\n slug: \"payhere-list-payments\",\n name: \"List Payments\",\n description: \"Tool to list all payments ordered chronologically, most recent first. Use when you need to retrieve payment history or check payment statuses. Supports pagination with page and per_page parameters.\",\n input: PayhereListPaymentsInput,\n output: PayhereListPaymentsOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;C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AC,CAAC,SAAS,+DAA+D;AAEzF,MAAa,sBAITC,eAAAA,OAAO,yBAAyB;CAClC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { payhere } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/list-payments.d.ts
@@ -33,24 +35,7 @@ declare const PayhereListPaymentsOutput: z.ZodObject<{
33
35
  current_page: z.ZodNullable<z.ZodNumber>;
34
36
  }, z.core.$loose>>;
35
37
  }, z.core.$loose>;
36
- declare const payhereListPayments: import("@keystrokehq/action").WorkflowActionDefinition<{
37
- page?: number | undefined;
38
- per_page?: number | undefined;
39
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"payhere", z.ZodObject<{
40
- connectionId: z.ZodString;
41
- entityId: z.ZodString;
42
- instanceId: z.ZodString;
43
- }, z.core.$strip>, z.ZodObject<{
44
- subdomain: z.ZodString;
45
- generic_api_key: z.ZodString;
46
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"payhere", z.ZodObject<{
47
- connectionId: z.ZodString;
48
- entityId: z.ZodString;
49
- instanceId: z.ZodString;
50
- }, z.core.$strip>, z.ZodObject<{
51
- subdomain: z.ZodString;
52
- generic_api_key: z.ZodString;
53
- }, z.core.$strip>>]>;
38
+ declare const payhereListPayments: AppAction<typeof PayhereListPaymentsInput, typeof PayhereListPaymentsOutput, typeof payhere.credential>;
54
39
  //#endregion
55
40
  export { payhereListPayments };
56
41
  //# sourceMappingURL=list-payments.d.cts.map
@@ -1 +1 @@
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
+ {"version":3,"file":"list-payments.d.cts","names":[],"sources":["../../src/actions/list-payments.ts"],"mappings":";;;;;cAMa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;cA8BxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAKzB,mBAAA,EAAqB,SAAA,QACzB,wBAAA,SACA,yBAAA,SACA,OAAA,CAAQ,UAAA"}