@keystrokehq/moonclerk 0.1.0

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 (74) hide show
  1. package/README.md +17 -0
  2. package/dist/action.cjs +21 -0
  3. package/dist/action.cjs.map +1 -0
  4. package/dist/action.mjs +21 -0
  5. package/dist/action.mjs.map +1 -0
  6. package/dist/actions/index.cjs +11 -0
  7. package/dist/actions/index.d.cts +6 -0
  8. package/dist/actions/index.d.mts +6 -0
  9. package/dist/actions/index.mjs +6 -0
  10. package/dist/actions/list-customers.cjs +99 -0
  11. package/dist/actions/list-customers.cjs.map +1 -0
  12. package/dist/actions/list-customers.d.cts +9 -0
  13. package/dist/actions/list-customers.d.cts.map +1 -0
  14. package/dist/actions/list-customers.d.mts +9 -0
  15. package/dist/actions/list-customers.d.mts.map +1 -0
  16. package/dist/actions/list-customers.mjs +96 -0
  17. package/dist/actions/list-customers.mjs.map +1 -0
  18. package/dist/actions/list-discounts.cjs +44 -0
  19. package/dist/actions/list-discounts.cjs.map +1 -0
  20. package/dist/actions/list-discounts.d.cts +9 -0
  21. package/dist/actions/list-discounts.d.cts.map +1 -0
  22. package/dist/actions/list-discounts.d.mts +9 -0
  23. package/dist/actions/list-discounts.d.mts.map +1 -0
  24. package/dist/actions/list-discounts.mjs +41 -0
  25. package/dist/actions/list-discounts.mjs.map +1 -0
  26. package/dist/actions/list-forms.cjs +32 -0
  27. package/dist/actions/list-forms.cjs.map +1 -0
  28. package/dist/actions/list-forms.d.cts +9 -0
  29. package/dist/actions/list-forms.d.cts.map +1 -0
  30. package/dist/actions/list-forms.d.mts +9 -0
  31. package/dist/actions/list-forms.d.mts.map +1 -0
  32. package/dist/actions/list-forms.mjs +29 -0
  33. package/dist/actions/list-forms.mjs.map +1 -0
  34. package/dist/actions/list-payments.cjs +75 -0
  35. package/dist/actions/list-payments.cjs.map +1 -0
  36. package/dist/actions/list-payments.d.cts +9 -0
  37. package/dist/actions/list-payments.d.cts.map +1 -0
  38. package/dist/actions/list-payments.d.mts +9 -0
  39. package/dist/actions/list-payments.d.mts.map +1 -0
  40. package/dist/actions/list-payments.mjs +72 -0
  41. package/dist/actions/list-payments.mjs.map +1 -0
  42. package/dist/actions/list-subscriptions.cjs +52 -0
  43. package/dist/actions/list-subscriptions.cjs.map +1 -0
  44. package/dist/actions/list-subscriptions.d.cts +9 -0
  45. package/dist/actions/list-subscriptions.d.cts.map +1 -0
  46. package/dist/actions/list-subscriptions.d.mts +9 -0
  47. package/dist/actions/list-subscriptions.d.mts.map +1 -0
  48. package/dist/actions/list-subscriptions.mjs +49 -0
  49. package/dist/actions/list-subscriptions.mjs.map +1 -0
  50. package/dist/app.cjs +9 -0
  51. package/dist/app.cjs.map +1 -0
  52. package/dist/app.d.cts +5 -0
  53. package/dist/app.d.cts.map +1 -0
  54. package/dist/app.d.mts +5 -0
  55. package/dist/app.d.mts.map +1 -0
  56. package/dist/app.mjs +10 -0
  57. package/dist/app.mjs.map +1 -0
  58. package/dist/catalog.cjs +15 -0
  59. package/dist/catalog.cjs.map +1 -0
  60. package/dist/catalog.d.cts +14 -0
  61. package/dist/catalog.d.cts.map +1 -0
  62. package/dist/catalog.d.mts +14 -0
  63. package/dist/catalog.d.mts.map +1 -0
  64. package/dist/catalog.mjs +15 -0
  65. package/dist/catalog.mjs.map +1 -0
  66. package/dist/execute.cjs +18 -0
  67. package/dist/execute.cjs.map +1 -0
  68. package/dist/execute.mjs +18 -0
  69. package/dist/execute.mjs.map +1 -0
  70. package/dist/index.cjs +16 -0
  71. package/dist/index.d.cts +8 -0
  72. package/dist/index.d.mts +8 -0
  73. package/dist/index.mjs +9 -0
  74. package/package.json +49 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-forms.d.mts","names":[],"sources":["../../src/actions/list-forms.ts"],"mappings":";;;cAIa,uBAAA,EAAyB,CAAA,CAAE,UAGoB;AAAA,cAC/C,wBAAA,EAA0B,CAAA,CAAE,UAaI;AAAA,cAEhC,kBAAA,gCAAkB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,29 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ const moonclerkListForms = action("MOONCLERK_LIST_FORMS", {
4
+ slug: "moonclerk-list-forms",
5
+ name: "List Payment Forms",
6
+ description: "Tool to retrieve a list of all payment forms. Use after authenticating to inspect available payment forms.",
7
+ input: z.object({
8
+ page: z.number().int().describe("Page number to retrieve, starting at 1").optional(),
9
+ per_page: z.number().int().describe("Number of forms per page").optional()
10
+ }).describe("Request parameters for listing payment forms."),
11
+ output: z.object({
12
+ meta: z.object({
13
+ per_page: z.number().int().describe("Number of forms returned per page"),
14
+ total_count: z.number().int().describe("Total number of forms available"),
15
+ total_pages: z.number().int().describe("Total number of pages"),
16
+ current_page: z.number().int().describe("Current page number")
17
+ }).describe("Pagination details for a paged list response.").nullable().optional(),
18
+ forms: z.array(z.object({
19
+ id: z.string().describe("Unique identifier for the form"),
20
+ name: z.string().describe("Name of the form"),
21
+ created_at: z.string().describe("Timestamp when the form was created"),
22
+ updated_at: z.string().describe("Timestamp when the form was last updated")
23
+ }).describe("A representation of a MoonClerk payment form.")).describe("List of payment forms returned from MoonClerk API")
24
+ }).describe("Data from the action execution")
25
+ });
26
+ //#endregion
27
+ export { moonclerkListForms };
28
+
29
+ //# sourceMappingURL=list-forms.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-forms.mjs","names":[],"sources":["../../src/actions/list-forms.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoonclerkListFormsInput: z.ZodTypeAny = z.object({\n page: z.number().int().describe(\"Page number to retrieve, starting at 1\").optional(),\n per_page: z.number().int().describe(\"Number of forms per page\").optional(),\n}).describe(\"Request parameters for listing payment forms.\");\nexport const MoonclerkListFormsOutput: z.ZodTypeAny = z.object({\n meta: z.object({\n per_page: z.number().int().describe(\"Number of forms returned per page\"),\n total_count: z.number().int().describe(\"Total number of forms available\"),\n total_pages: z.number().int().describe(\"Total number of pages\"),\n current_page: z.number().int().describe(\"Current page number\"),\n}).describe(\"Pagination details for a paged list response.\").nullable().optional(),\n forms: z.array(z.object({\n id: z.string().describe(\"Unique identifier for the form\"),\n name: z.string().describe(\"Name of the form\"),\n created_at: z.string().describe(\"Timestamp when the form was created\"),\n updated_at: z.string().describe(\"Timestamp when the form was last updated\"),\n}).describe(\"A representation of a MoonClerk payment form.\")).describe(\"List of payment forms returned from MoonClerk API\"),\n}).describe(\"Data from the action execution\");\n\nexport const moonclerkListForms = action(\"MOONCLERK_LIST_FORMS\", {\n slug: \"moonclerk-list-forms\",\n name: \"List Payment Forms\",\n description: \"Tool to retrieve a list of all payment forms. Use after authenticating to inspect available payment forms.\",\n input: MoonclerkListFormsInput,\n output: MoonclerkListFormsOutput,\n});\n"],"mappings":";;AAuBA,MAAa,qBAAqB,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAvBmD,EAAE,OAAO;EAC5D,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;EACnF,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;CAC3E,CAAC,CAAC,CAAC,SAAS,+CAoBH;CACP,QApBoD,EAAE,OAAO;EAC7D,MAAM,EAAE,OAAO;GACf,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mCAAmC;GACvE,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iCAAiC;GACxE,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uBAAuB;GAC9D,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qBAAqB;EAC/D,CAAC,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC/E,OAAO,EAAE,MAAM,EAAE,OAAO;GACxB,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC;GACxD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB;GAC5C,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC;GACrE,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C;EAC5E,CAAC,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,CAAC,SAAS,mDAAmD;CAC1H,CAAC,CAAC,CAAC,SAAS,gCAOF;AACV,CAAC"}
@@ -0,0 +1,75 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/list-payments.ts
4
+ const MoonclerkListPaymentsInput = zod.z.object({
5
+ status: zod.z.enum([
6
+ "successful",
7
+ "refunded",
8
+ "failed"
9
+ ]).describe("Filter payments by status. Valid values: successful, refunded, failed").optional(),
10
+ date_to: zod.z.string().describe("Include payments charged on or before this date (YYYY-MM-DD)").optional(),
11
+ form_id: zod.z.number().int().describe("MoonClerk form ID to filter payments (e.g., 5346)").optional(),
12
+ date_from: zod.z.string().describe("Include payments charged on or after this date (YYYY-MM-DD)").optional(),
13
+ customer_id: zod.z.number().int().describe("MoonClerk customer ID to filter payments (e.g., 12742)").optional()
14
+ }).describe("Parameters to filter the payments list.");
15
+ const MoonclerkListPaymentsOutput = zod.z.object({ payments: zod.z.array(zod.z.object({
16
+ id: zod.z.number().int().describe("Unique payment identifier"),
17
+ fee: zod.z.number().int().describe("Stripe fee in cents"),
18
+ date: zod.z.string().describe("Payment date in UTC ISO 8601 format"),
19
+ name: zod.z.string().describe("Payer's name"),
20
+ email: zod.z.string().describe("Payer's email address"),
21
+ amount: zod.z.number().int().describe("Payment amount in cents"),
22
+ coupon: zod.z.object({
23
+ code: zod.z.string().describe("Coupon code"),
24
+ currency: zod.z.string().describe("Currency of the coupon"),
25
+ duration: zod.z.string().describe("Duration of the coupon, e.g., once"),
26
+ redeem_by: zod.z.string().describe("Coupon redemption deadline (UTC date)").nullable().optional(),
27
+ amount_off: zod.z.number().int().describe("Amount off in cents"),
28
+ percent_off: zod.z.number().int().describe("Percentage off if applicable").nullable().optional(),
29
+ max_redemptions: zod.z.number().int().describe("Maximum number of redemptions allowed").nullable().optional(),
30
+ duration_in_months: zod.z.number().int().describe("Duration in months if applicable").nullable().optional()
31
+ }).describe("Applied coupon details if any").optional(),
32
+ status: zod.z.enum([
33
+ "successful",
34
+ "refunded",
35
+ "failed"
36
+ ]).describe("Payment status"),
37
+ form_id: zod.z.number().int().describe("MoonClerk form ID that generated the payment"),
38
+ checkout: zod.z.object({
39
+ fee: zod.z.number().int().describe("Stripe fee in cents"),
40
+ date: zod.z.string().describe("Checkout date in UTC ISO 8601 format"),
41
+ token: zod.z.string().describe("Checkout token"),
42
+ total: zod.z.number().int().describe("Total amount in cents"),
43
+ subtotal: zod.z.number().int().describe("Subtotal in cents before fees and coupons"),
44
+ amount_due: zod.z.number().int().describe("Amount due in cents"),
45
+ coupon_code: zod.z.string().describe("Applied coupon code"),
46
+ coupon_amount: zod.z.number().int().describe("Coupon amount in cents"),
47
+ upfront_amount: zod.z.number().int().describe("Upfront amount in cents"),
48
+ trial_period_days: zod.z.number().int().describe("Number of trial days if applicable").nullable().optional()
49
+ }).describe("Checkout details for one-time checkouts").optional(),
50
+ currency: zod.z.string().describe("Currency code, e.g., USD"),
51
+ custom_id: zod.z.string().describe("Custom identifier passed during integration").nullable().optional(),
52
+ customer_id: zod.z.number().int().describe("MoonClerk customer ID if part of recurring checkout").nullable().optional(),
53
+ custom_fields: zod.z.object({}).describe("Mapping of custom field keys to values").nullable().optional(),
54
+ payment_method: zod.z.object({
55
+ type: zod.z.string().describe("Payment method type, e.g., card"),
56
+ brand: zod.z.string().describe("Brand of the card, e.g., Visa"),
57
+ last4: zod.z.string().describe("Last 4 digits of the card")
58
+ }).describe("Payment method details"),
59
+ amount_refunded: zod.z.number().int().describe("Total refunded amount in cents"),
60
+ charge_reference: zod.z.string().describe("Stripe charge reference"),
61
+ invoice_reference: zod.z.string().describe("Stripe invoice reference if applicable").nullable().optional(),
62
+ amount_description: zod.z.string().describe("Description of the payment amount option").nullable().optional(),
63
+ customer_reference: zod.z.string().describe("Stripe customer reference if applicable").nullable().optional()
64
+ })).describe("List of payments matching the filters") }).describe("Data from the action execution");
65
+ const moonclerkListPayments = require_action.action("MOONCLERK_LIST_PAYMENTS", {
66
+ slug: "moonclerk-list-payments",
67
+ name: "List Payments",
68
+ description: "Tool to list payments. Use when you need to retrieve all payments or filter by form, customer, date range, or status after authenticating.",
69
+ input: MoonclerkListPaymentsInput,
70
+ output: MoonclerkListPaymentsOutput
71
+ });
72
+ //#endregion
73
+ exports.moonclerkListPayments = moonclerkListPayments;
74
+
75
+ //# sourceMappingURL=list-payments.cjs.map
@@ -0,0 +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 MoonclerkListPaymentsInput: z.ZodTypeAny = z.object({\n status: z.enum([\"successful\", \"refunded\", \"failed\"]).describe(\"Filter payments by status. Valid values: successful, refunded, failed\").optional(),\n date_to: z.string().describe(\"Include payments charged on or before this date (YYYY-MM-DD)\").optional(),\n form_id: z.number().int().describe(\"MoonClerk form ID to filter payments (e.g., 5346)\").optional(),\n date_from: z.string().describe(\"Include payments charged on or after this date (YYYY-MM-DD)\").optional(),\n customer_id: z.number().int().describe(\"MoonClerk customer ID to filter payments (e.g., 12742)\").optional(),\n}).describe(\"Parameters to filter the payments list.\");\nexport const MoonclerkListPaymentsOutput: z.ZodTypeAny = z.object({\n payments: z.array(z.object({\n id: z.number().int().describe(\"Unique payment identifier\"),\n fee: z.number().int().describe(\"Stripe fee in cents\"),\n date: z.string().describe(\"Payment date in UTC ISO 8601 format\"),\n name: z.string().describe(\"Payer's name\"),\n email: z.string().describe(\"Payer's email address\"),\n amount: z.number().int().describe(\"Payment amount in cents\"),\n coupon: z.object({\n code: z.string().describe(\"Coupon code\"),\n currency: z.string().describe(\"Currency of the coupon\"),\n duration: z.string().describe(\"Duration of the coupon, e.g., once\"),\n redeem_by: z.string().describe(\"Coupon redemption deadline (UTC date)\").nullable().optional(),\n amount_off: z.number().int().describe(\"Amount off in cents\"),\n percent_off: z.number().int().describe(\"Percentage off if applicable\").nullable().optional(),\n max_redemptions: z.number().int().describe(\"Maximum number of redemptions allowed\").nullable().optional(),\n duration_in_months: z.number().int().describe(\"Duration in months if applicable\").nullable().optional(),\n}).describe(\"Applied coupon details if any\").optional(),\n status: z.enum([\"successful\", \"refunded\", \"failed\"]).describe(\"Payment status\"),\n form_id: z.number().int().describe(\"MoonClerk form ID that generated the payment\"),\n checkout: z.object({\n fee: z.number().int().describe(\"Stripe fee in cents\"),\n date: z.string().describe(\"Checkout date in UTC ISO 8601 format\"),\n token: z.string().describe(\"Checkout token\"),\n total: z.number().int().describe(\"Total amount in cents\"),\n subtotal: z.number().int().describe(\"Subtotal in cents before fees and coupons\"),\n amount_due: z.number().int().describe(\"Amount due in cents\"),\n coupon_code: z.string().describe(\"Applied coupon code\"),\n coupon_amount: z.number().int().describe(\"Coupon amount in cents\"),\n upfront_amount: z.number().int().describe(\"Upfront amount in cents\"),\n trial_period_days: z.number().int().describe(\"Number of trial days if applicable\").nullable().optional(),\n}).describe(\"Checkout details for one-time checkouts\").optional(),\n currency: z.string().describe(\"Currency code, e.g., USD\"),\n custom_id: z.string().describe(\"Custom identifier passed during integration\").nullable().optional(),\n customer_id: z.number().int().describe(\"MoonClerk customer ID if part of recurring checkout\").nullable().optional(),\n custom_fields: z.object({}).describe(\"Mapping of custom field keys to values\").nullable().optional(),\n payment_method: z.object({\n type: z.string().describe(\"Payment method type, e.g., card\"),\n brand: z.string().describe(\"Brand of the card, e.g., Visa\"),\n last4: z.string().describe(\"Last 4 digits of the card\"),\n}).describe(\"Payment method details\"),\n amount_refunded: z.number().int().describe(\"Total refunded amount in cents\"),\n charge_reference: z.string().describe(\"Stripe charge reference\"),\n invoice_reference: z.string().describe(\"Stripe invoice reference if applicable\").nullable().optional(),\n amount_description: z.string().describe(\"Description of the payment amount option\").nullable().optional(),\n customer_reference: z.string().describe(\"Stripe customer reference if applicable\").nullable().optional(),\n})).describe(\"List of payments matching the filters\"),\n}).describe(\"Data from the action execution\");\n\nexport const moonclerkListPayments = action(\"MOONCLERK_LIST_PAYMENTS\", {\n slug: \"moonclerk-list-payments\",\n name: \"List Payments\",\n description: \"Tool to list payments. Use when you need to retrieve all payments or filter by form, customer, date range, or status after authenticating.\",\n input: MoonclerkListPaymentsInput,\n output: MoonclerkListPaymentsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA2CA,IAAAA,EAAE,OAAO;CAC/D,QAAQA,IAAAA,EAAE,KAAK;EAAC;EAAc;EAAY;CAAQ,CAAC,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS;CAChJ,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;CACtG,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;CACjG,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS;CACvG,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;AAC5G,CAAC,CAAC,CAAC,SAAS,yCAAyC;AACrD,MAAa,8BAA4CA,IAAAA,EAAE,OAAO,EAChE,UAAUA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;CAC3B,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2BAA2B;CACzD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC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A,IAAAA,EAAE,OAAO;EACzB,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC;EAC3D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B;EAC1D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B;CACxD,CAAC,CAAC,CAAC,SAAS,wBAAwB;CAClC,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gCAAgC;CAC3E,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB;CAC/D,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrG,oBAAoBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxG,oBAAoBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACzG,CAAC,CAAC,CAAC,CAAC,SAAS,uCAAuC,EACpD,CAAC,CAAC,CAAC,SAAS,gCAAgC;AAE5C,MAAa,wBAAwBC,eAAAA,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/list-payments.d.ts
4
+ declare const MoonclerkListPaymentsInput: z.ZodTypeAny;
5
+ declare const MoonclerkListPaymentsOutput: z.ZodTypeAny;
6
+ declare const moonclerkListPayments: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { moonclerkListPayments };
9
+ //# sourceMappingURL=list-payments.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-payments.d.cts","names":[],"sources":["../../src/actions/list-payments.ts"],"mappings":";;;cAIa,0BAAA,EAA4B,CAAA,CAAE,UAMW;AAAA,cACzC,2BAAA,EAA6B,CAAA,CAAE,UA+CC;AAAA,cAEhC,qBAAA,gCAAqB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/list-payments.d.ts
4
+ declare const MoonclerkListPaymentsInput: z.ZodTypeAny;
5
+ declare const MoonclerkListPaymentsOutput: z.ZodTypeAny;
6
+ declare const moonclerkListPayments: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { moonclerkListPayments };
9
+ //# sourceMappingURL=list-payments.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-payments.d.mts","names":[],"sources":["../../src/actions/list-payments.ts"],"mappings":";;;cAIa,0BAAA,EAA4B,CAAA,CAAE,UAMW;AAAA,cACzC,2BAAA,EAA6B,CAAA,CAAE,UA+CC;AAAA,cAEhC,qBAAA,gCAAqB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,72 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ const moonclerkListPayments = action("MOONCLERK_LIST_PAYMENTS", {
4
+ slug: "moonclerk-list-payments",
5
+ name: "List Payments",
6
+ description: "Tool to list payments. Use when you need to retrieve all payments or filter by form, customer, date range, or status after authenticating.",
7
+ input: z.object({
8
+ status: z.enum([
9
+ "successful",
10
+ "refunded",
11
+ "failed"
12
+ ]).describe("Filter payments by status. Valid values: successful, refunded, failed").optional(),
13
+ date_to: z.string().describe("Include payments charged on or before this date (YYYY-MM-DD)").optional(),
14
+ form_id: z.number().int().describe("MoonClerk form ID to filter payments (e.g., 5346)").optional(),
15
+ date_from: z.string().describe("Include payments charged on or after this date (YYYY-MM-DD)").optional(),
16
+ customer_id: z.number().int().describe("MoonClerk customer ID to filter payments (e.g., 12742)").optional()
17
+ }).describe("Parameters to filter the payments list."),
18
+ output: z.object({ payments: z.array(z.object({
19
+ id: z.number().int().describe("Unique payment identifier"),
20
+ fee: z.number().int().describe("Stripe fee in cents"),
21
+ date: z.string().describe("Payment date in UTC ISO 8601 format"),
22
+ name: z.string().describe("Payer's name"),
23
+ email: z.string().describe("Payer's email address"),
24
+ amount: z.number().int().describe("Payment amount in cents"),
25
+ coupon: z.object({
26
+ code: z.string().describe("Coupon code"),
27
+ currency: z.string().describe("Currency of the coupon"),
28
+ duration: z.string().describe("Duration of the coupon, e.g., once"),
29
+ redeem_by: z.string().describe("Coupon redemption deadline (UTC date)").nullable().optional(),
30
+ amount_off: z.number().int().describe("Amount off in cents"),
31
+ percent_off: z.number().int().describe("Percentage off if applicable").nullable().optional(),
32
+ max_redemptions: z.number().int().describe("Maximum number of redemptions allowed").nullable().optional(),
33
+ duration_in_months: z.number().int().describe("Duration in months if applicable").nullable().optional()
34
+ }).describe("Applied coupon details if any").optional(),
35
+ status: z.enum([
36
+ "successful",
37
+ "refunded",
38
+ "failed"
39
+ ]).describe("Payment status"),
40
+ form_id: z.number().int().describe("MoonClerk form ID that generated the payment"),
41
+ checkout: z.object({
42
+ fee: z.number().int().describe("Stripe fee in cents"),
43
+ date: z.string().describe("Checkout date in UTC ISO 8601 format"),
44
+ token: z.string().describe("Checkout token"),
45
+ total: z.number().int().describe("Total amount in cents"),
46
+ subtotal: z.number().int().describe("Subtotal in cents before fees and coupons"),
47
+ amount_due: z.number().int().describe("Amount due in cents"),
48
+ coupon_code: z.string().describe("Applied coupon code"),
49
+ coupon_amount: z.number().int().describe("Coupon amount in cents"),
50
+ upfront_amount: z.number().int().describe("Upfront amount in cents"),
51
+ trial_period_days: z.number().int().describe("Number of trial days if applicable").nullable().optional()
52
+ }).describe("Checkout details for one-time checkouts").optional(),
53
+ currency: z.string().describe("Currency code, e.g., USD"),
54
+ custom_id: z.string().describe("Custom identifier passed during integration").nullable().optional(),
55
+ customer_id: z.number().int().describe("MoonClerk customer ID if part of recurring checkout").nullable().optional(),
56
+ custom_fields: z.object({}).describe("Mapping of custom field keys to values").nullable().optional(),
57
+ payment_method: z.object({
58
+ type: z.string().describe("Payment method type, e.g., card"),
59
+ brand: z.string().describe("Brand of the card, e.g., Visa"),
60
+ last4: z.string().describe("Last 4 digits of the card")
61
+ }).describe("Payment method details"),
62
+ amount_refunded: z.number().int().describe("Total refunded amount in cents"),
63
+ charge_reference: z.string().describe("Stripe charge reference"),
64
+ invoice_reference: z.string().describe("Stripe invoice reference if applicable").nullable().optional(),
65
+ amount_description: z.string().describe("Description of the payment amount option").nullable().optional(),
66
+ customer_reference: z.string().describe("Stripe customer reference if applicable").nullable().optional()
67
+ })).describe("List of payments matching the filters") }).describe("Data from the action execution")
68
+ });
69
+ //#endregion
70
+ export { moonclerkListPayments };
71
+
72
+ //# sourceMappingURL=list-payments.mjs.map
@@ -0,0 +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 MoonclerkListPaymentsInput: z.ZodTypeAny = z.object({\n status: z.enum([\"successful\", \"refunded\", \"failed\"]).describe(\"Filter payments by status. Valid values: successful, refunded, failed\").optional(),\n date_to: z.string().describe(\"Include payments charged on or before this date (YYYY-MM-DD)\").optional(),\n form_id: z.number().int().describe(\"MoonClerk form ID to filter payments (e.g., 5346)\").optional(),\n date_from: z.string().describe(\"Include payments charged on or after this date (YYYY-MM-DD)\").optional(),\n customer_id: z.number().int().describe(\"MoonClerk customer ID to filter payments (e.g., 12742)\").optional(),\n}).describe(\"Parameters to filter the payments list.\");\nexport const MoonclerkListPaymentsOutput: z.ZodTypeAny = z.object({\n payments: z.array(z.object({\n id: z.number().int().describe(\"Unique payment identifier\"),\n fee: z.number().int().describe(\"Stripe fee in cents\"),\n date: z.string().describe(\"Payment date in UTC ISO 8601 format\"),\n name: z.string().describe(\"Payer's name\"),\n email: z.string().describe(\"Payer's email address\"),\n amount: z.number().int().describe(\"Payment amount in cents\"),\n coupon: z.object({\n code: z.string().describe(\"Coupon code\"),\n currency: z.string().describe(\"Currency of the coupon\"),\n duration: z.string().describe(\"Duration of the coupon, e.g., once\"),\n redeem_by: z.string().describe(\"Coupon redemption deadline (UTC date)\").nullable().optional(),\n amount_off: z.number().int().describe(\"Amount off in cents\"),\n percent_off: z.number().int().describe(\"Percentage off if applicable\").nullable().optional(),\n max_redemptions: z.number().int().describe(\"Maximum number of redemptions allowed\").nullable().optional(),\n duration_in_months: z.number().int().describe(\"Duration in months if applicable\").nullable().optional(),\n}).describe(\"Applied coupon details if any\").optional(),\n status: z.enum([\"successful\", \"refunded\", \"failed\"]).describe(\"Payment status\"),\n form_id: z.number().int().describe(\"MoonClerk form ID that generated the payment\"),\n checkout: z.object({\n fee: z.number().int().describe(\"Stripe fee in cents\"),\n date: z.string().describe(\"Checkout date in UTC ISO 8601 format\"),\n token: z.string().describe(\"Checkout token\"),\n total: z.number().int().describe(\"Total amount in cents\"),\n subtotal: z.number().int().describe(\"Subtotal in cents before fees and coupons\"),\n amount_due: z.number().int().describe(\"Amount due in cents\"),\n coupon_code: z.string().describe(\"Applied coupon code\"),\n coupon_amount: z.number().int().describe(\"Coupon amount in cents\"),\n upfront_amount: z.number().int().describe(\"Upfront amount in cents\"),\n trial_period_days: z.number().int().describe(\"Number of trial days if applicable\").nullable().optional(),\n}).describe(\"Checkout details for one-time checkouts\").optional(),\n currency: z.string().describe(\"Currency code, e.g., USD\"),\n custom_id: z.string().describe(\"Custom identifier passed during integration\").nullable().optional(),\n customer_id: z.number().int().describe(\"MoonClerk customer ID if part of recurring checkout\").nullable().optional(),\n custom_fields: z.object({}).describe(\"Mapping of custom field keys to values\").nullable().optional(),\n payment_method: z.object({\n type: z.string().describe(\"Payment method type, e.g., card\"),\n brand: z.string().describe(\"Brand of the card, e.g., Visa\"),\n last4: z.string().describe(\"Last 4 digits of the card\"),\n}).describe(\"Payment method details\"),\n amount_refunded: z.number().int().describe(\"Total refunded amount in cents\"),\n charge_reference: z.string().describe(\"Stripe charge reference\"),\n invoice_reference: z.string().describe(\"Stripe invoice reference if applicable\").nullable().optional(),\n amount_description: z.string().describe(\"Description of the payment amount option\").nullable().optional(),\n customer_reference: z.string().describe(\"Stripe customer reference if applicable\").nullable().optional(),\n})).describe(\"List of payments matching the filters\"),\n}).describe(\"Data from the action execution\");\n\nexport const moonclerkListPayments = action(\"MOONCLERK_LIST_PAYMENTS\", {\n slug: \"moonclerk-list-payments\",\n name: \"List Payments\",\n description: \"Tool to list payments. Use when you need to retrieve all payments or filter by form, customer, date range, or status after authenticating.\",\n input: MoonclerkListPaymentsInput,\n output: MoonclerkListPaymentsOutput,\n});\n"],"mappings":";;AA4DA,MAAa,wBAAwB,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OA5DsD,EAAE,OAAO;EAC/D,QAAQ,EAAE,KAAK;GAAC;GAAc;GAAY;EAAQ,CAAC,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS;EAChJ,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;EACtG,SAAS,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;EACjG,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS;EACvG,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;CAC5G,CAAC,CAAC,CAAC,SAAS,yCAsDH;CACP,QAtDuD,EAAE,OAAO,EAChE,UAAU,EAAE,MAAM,EAAE,OAAO;E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E,OAAO,CAAC,CAAC,SAAS,2BAA2B;EACxD,CAAC,CAAC,CAAC,SAAS,wBAAwB;EAClC,iBAAiB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gCAAgC;EAC3E,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB;EAC/D,mBAAmB,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACrG,oBAAoB,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACxG,oBAAoB,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzG,CAAC,CAAC,CAAC,CAAC,SAAS,uCAAuC,EACpD,CAAC,CAAC,CAAC,SAAS,gCAOF;AACV,CAAC"}
@@ -0,0 +1,52 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/list-subscriptions.ts
4
+ const MoonclerkListSubscriptionsInput = zod.z.object({
5
+ status: zod.z.enum([
6
+ "active",
7
+ "canceled",
8
+ "expired",
9
+ "past_due",
10
+ "pending",
11
+ "unpaid"
12
+ ]).describe("Filter subscriptions by status. Valid options: active, canceled, expired, past_due, pending, unpaid").optional(),
13
+ form_id: zod.z.string().describe("Filter subscriptions by the associated MoonClerk form ID (e.g., 5346)").optional(),
14
+ next_payment_to: zod.z.string().describe("Include subscriptions due to bill on or before this date (YYYY-MM-DD)").optional(),
15
+ next_payment_from: zod.z.string().describe("Include subscriptions due to bill on or after this date (YYYY-MM-DD)").optional()
16
+ }).describe("Request parameters for listing subscriptions with optional filters.");
17
+ const MoonclerkListSubscriptionsOutput = zod.z.object({ subscriptions: zod.z.array(zod.z.object({
18
+ id: zod.z.number().int().describe("Subscription ID."),
19
+ plan: zod.z.object({
20
+ id: zod.z.number().int().describe("Plan ID."),
21
+ amount: zod.z.number().int().describe("Amount in cents."),
22
+ currency: zod.z.string().describe("Currency code, e.g., USD."),
23
+ interval: zod.z.string().describe("Billing interval, e.g., month."),
24
+ interval_count: zod.z.number().int().describe("Interval count, e.g., 1 for monthly."),
25
+ plan_reference: zod.z.string().describe("Plan reference ID."),
26
+ amount_description: zod.z.string().describe("Description of the amount option.")
27
+ }).describe("Associated plan details."),
28
+ start: zod.z.string().describe("Subscription start timestamp (ISO 8601)."),
29
+ status: zod.z.string().describe("Subscription status."),
30
+ ended_at: zod.z.string().describe("End timestamp if subscription ended.").nullable().optional(),
31
+ trial_end: zod.z.string().describe("Trial end timestamp if applicable.").nullable().optional(),
32
+ expires_at: zod.z.string().describe("Expiration timestamp if set.").nullable().optional(),
33
+ canceled_at: zod.z.string().describe("Cancellation timestamp if applicable.").nullable().optional(),
34
+ trial_start: zod.z.string().describe("Trial start timestamp if applicable.").nullable().optional(),
35
+ trial_period_days: zod.z.number().int().describe("Number of trial days if applicable.").nullable().optional(),
36
+ current_period_end: zod.z.string().describe("End of current period (ISO 8601)."),
37
+ current_period_start: zod.z.string().describe("Start of current period (ISO 8601)."),
38
+ next_payment_attempt: zod.z.string().describe("Next payment attempt timestamp (ISO 8601).").nullable().optional(),
39
+ first_payment_attempt: zod.z.string().describe("First payment attempt timestamp (ISO 8601)."),
40
+ subscription_reference: zod.z.string().describe("Subscription reference ID.")
41
+ }).describe("Subscription details.")).describe("List of subscription objects.") }).describe("Data from the action execution");
42
+ const moonclerkListSubscriptions = require_action.action("MOONCLERK_LIST_SUBSCRIPTIONS", {
43
+ slug: "moonclerk-list-subscriptions",
44
+ name: "List Subscriptions",
45
+ description: "Tool to list subscriptions. Use when you need to retrieve all subscriptions after authenticating.",
46
+ input: MoonclerkListSubscriptionsInput,
47
+ output: MoonclerkListSubscriptionsOutput
48
+ });
49
+ //#endregion
50
+ exports.moonclerkListSubscriptions = moonclerkListSubscriptions;
51
+
52
+ //# sourceMappingURL=list-subscriptions.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-subscriptions.cjs","names":["z","action"],"sources":["../../src/actions/list-subscriptions.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoonclerkListSubscriptionsInput: z.ZodTypeAny = z.object({\n status: z.enum([\"active\", \"canceled\", \"expired\", \"past_due\", \"pending\", \"unpaid\"]).describe(\"Filter subscriptions by status. Valid options: active, canceled, expired, past_due, pending, unpaid\").optional(),\n form_id: z.string().describe(\"Filter subscriptions by the associated MoonClerk form ID (e.g., 5346)\").optional(),\n next_payment_to: z.string().describe(\"Include subscriptions due to bill on or before this date (YYYY-MM-DD)\").optional(),\n next_payment_from: z.string().describe(\"Include subscriptions due to bill on or after this date (YYYY-MM-DD)\").optional(),\n}).describe(\"Request parameters for listing subscriptions with optional filters.\");\nexport const MoonclerkListSubscriptionsOutput: z.ZodTypeAny = z.object({\n subscriptions: z.array(z.object({\n id: z.number().int().describe(\"Subscription ID.\"),\n plan: z.object({\n id: z.number().int().describe(\"Plan ID.\"),\n amount: z.number().int().describe(\"Amount in cents.\"),\n currency: z.string().describe(\"Currency code, e.g., USD.\"),\n interval: z.string().describe(\"Billing interval, e.g., month.\"),\n interval_count: z.number().int().describe(\"Interval count, e.g., 1 for monthly.\"),\n plan_reference: z.string().describe(\"Plan reference ID.\"),\n amount_description: z.string().describe(\"Description of the amount option.\"),\n}).describe(\"Associated plan details.\"),\n start: z.string().describe(\"Subscription start timestamp (ISO 8601).\"),\n status: z.string().describe(\"Subscription status.\"),\n ended_at: z.string().describe(\"End timestamp if subscription ended.\").nullable().optional(),\n trial_end: z.string().describe(\"Trial end timestamp if applicable.\").nullable().optional(),\n expires_at: z.string().describe(\"Expiration timestamp if set.\").nullable().optional(),\n canceled_at: z.string().describe(\"Cancellation timestamp if applicable.\").nullable().optional(),\n trial_start: z.string().describe(\"Trial start timestamp if applicable.\").nullable().optional(),\n trial_period_days: z.number().int().describe(\"Number of trial days if applicable.\").nullable().optional(),\n current_period_end: z.string().describe(\"End of current period (ISO 8601).\"),\n current_period_start: z.string().describe(\"Start of current period (ISO 8601).\"),\n next_payment_attempt: z.string().describe(\"Next payment attempt timestamp (ISO 8601).\").nullable().optional(),\n first_payment_attempt: z.string().describe(\"First payment attempt timestamp (ISO 8601).\"),\n subscription_reference: z.string().describe(\"Subscription reference ID.\"),\n}).describe(\"Subscription details.\")).describe(\"List of subscription objects.\"),\n}).describe(\"Data from the action execution\");\n\nexport const moonclerkListSubscriptions = action(\"MOONCLERK_LIST_SUBSCRIPTIONS\", {\n slug: \"moonclerk-list-subscriptions\",\n name: \"List Subscriptions\",\n description: \"Tool to list subscriptions. Use when you need to retrieve all subscriptions after authenticating.\",\n input: MoonclerkListSubscriptionsInput,\n output: MoonclerkListSubscriptionsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAgDA,IAAAA,EAAE,OAAO;CACpE,QAAQA,IAAAA,EAAE,KAAK;EAAC;EAAU;EAAY;EAAW;EAAY;EAAW;CAAQ,CAAC,CAAC,CAAC,SAAS,qGAAqG,CAAC,CAAC,SAAS;CAC5M,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS;CAC/G,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS;CACvH,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS;AAC1H,CAAC,CAAC,CAAC,SAAS,qEAAqE;AACjF,MAAa,mCAAiDA,IAAAA,EAAE,OAAO,EACrE,eAAeA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;CAChC,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kBAAkB;CAChD,MAAMA,IAAAA,EAAE,OAAO;EACf,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,UAAU;EACxC,QAAQA,IAAA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AC,CAAC,SAAS,qCAAqC;CAC/E,sBAAsBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5G,uBAAuBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C;CACxF,wBAAwBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B;AAC1E,CAAC,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,CAAC,SAAS,+BAA+B,EAC9E,CAAC,CAAC,CAAC,SAAS,gCAAgC;AAE5C,MAAa,6BAA6BC,eAAAA,OAAO,gCAAgC;CAC/E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/list-subscriptions.d.ts
4
+ declare const MoonclerkListSubscriptionsInput: z.ZodTypeAny;
5
+ declare const MoonclerkListSubscriptionsOutput: z.ZodTypeAny;
6
+ declare const moonclerkListSubscriptions: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { moonclerkListSubscriptions };
9
+ //# sourceMappingURL=list-subscriptions.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-subscriptions.d.cts","names":[],"sources":["../../src/actions/list-subscriptions.ts"],"mappings":";;;cAIa,+BAAA,EAAiC,CAAA,CAAE,UAKkC;AAAA,cACrE,gCAAA,EAAkC,CAAA,CAAE,UA0BJ;AAAA,cAEhC,0BAAA,gCAA0B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/list-subscriptions.d.ts
4
+ declare const MoonclerkListSubscriptionsInput: z.ZodTypeAny;
5
+ declare const MoonclerkListSubscriptionsOutput: z.ZodTypeAny;
6
+ declare const moonclerkListSubscriptions: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { moonclerkListSubscriptions };
9
+ //# sourceMappingURL=list-subscriptions.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-subscriptions.d.mts","names":[],"sources":["../../src/actions/list-subscriptions.ts"],"mappings":";;;cAIa,+BAAA,EAAiC,CAAA,CAAE,UAKkC;AAAA,cACrE,gCAAA,EAAkC,CAAA,CAAE,UA0BJ;AAAA,cAEhC,0BAAA,gCAA0B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,49 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ const moonclerkListSubscriptions = action("MOONCLERK_LIST_SUBSCRIPTIONS", {
4
+ slug: "moonclerk-list-subscriptions",
5
+ name: "List Subscriptions",
6
+ description: "Tool to list subscriptions. Use when you need to retrieve all subscriptions after authenticating.",
7
+ input: z.object({
8
+ status: z.enum([
9
+ "active",
10
+ "canceled",
11
+ "expired",
12
+ "past_due",
13
+ "pending",
14
+ "unpaid"
15
+ ]).describe("Filter subscriptions by status. Valid options: active, canceled, expired, past_due, pending, unpaid").optional(),
16
+ form_id: z.string().describe("Filter subscriptions by the associated MoonClerk form ID (e.g., 5346)").optional(),
17
+ next_payment_to: z.string().describe("Include subscriptions due to bill on or before this date (YYYY-MM-DD)").optional(),
18
+ next_payment_from: z.string().describe("Include subscriptions due to bill on or after this date (YYYY-MM-DD)").optional()
19
+ }).describe("Request parameters for listing subscriptions with optional filters."),
20
+ output: z.object({ subscriptions: z.array(z.object({
21
+ id: z.number().int().describe("Subscription ID."),
22
+ plan: z.object({
23
+ id: z.number().int().describe("Plan ID."),
24
+ amount: z.number().int().describe("Amount in cents."),
25
+ currency: z.string().describe("Currency code, e.g., USD."),
26
+ interval: z.string().describe("Billing interval, e.g., month."),
27
+ interval_count: z.number().int().describe("Interval count, e.g., 1 for monthly."),
28
+ plan_reference: z.string().describe("Plan reference ID."),
29
+ amount_description: z.string().describe("Description of the amount option.")
30
+ }).describe("Associated plan details."),
31
+ start: z.string().describe("Subscription start timestamp (ISO 8601)."),
32
+ status: z.string().describe("Subscription status."),
33
+ ended_at: z.string().describe("End timestamp if subscription ended.").nullable().optional(),
34
+ trial_end: z.string().describe("Trial end timestamp if applicable.").nullable().optional(),
35
+ expires_at: z.string().describe("Expiration timestamp if set.").nullable().optional(),
36
+ canceled_at: z.string().describe("Cancellation timestamp if applicable.").nullable().optional(),
37
+ trial_start: z.string().describe("Trial start timestamp if applicable.").nullable().optional(),
38
+ trial_period_days: z.number().int().describe("Number of trial days if applicable.").nullable().optional(),
39
+ current_period_end: z.string().describe("End of current period (ISO 8601)."),
40
+ current_period_start: z.string().describe("Start of current period (ISO 8601)."),
41
+ next_payment_attempt: z.string().describe("Next payment attempt timestamp (ISO 8601).").nullable().optional(),
42
+ first_payment_attempt: z.string().describe("First payment attempt timestamp (ISO 8601)."),
43
+ subscription_reference: z.string().describe("Subscription reference ID.")
44
+ }).describe("Subscription details.")).describe("List of subscription objects.") }).describe("Data from the action execution")
45
+ });
46
+ //#endregion
47
+ export { moonclerkListSubscriptions };
48
+
49
+ //# sourceMappingURL=list-subscriptions.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-subscriptions.mjs","names":[],"sources":["../../src/actions/list-subscriptions.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoonclerkListSubscriptionsInput: z.ZodTypeAny = z.object({\n status: z.enum([\"active\", \"canceled\", \"expired\", \"past_due\", \"pending\", \"unpaid\"]).describe(\"Filter subscriptions by status. Valid options: active, canceled, expired, past_due, pending, unpaid\").optional(),\n form_id: z.string().describe(\"Filter subscriptions by the associated MoonClerk form ID (e.g., 5346)\").optional(),\n next_payment_to: z.string().describe(\"Include subscriptions due to bill on or before this date (YYYY-MM-DD)\").optional(),\n next_payment_from: z.string().describe(\"Include subscriptions due to bill on or after this date (YYYY-MM-DD)\").optional(),\n}).describe(\"Request parameters for listing subscriptions with optional filters.\");\nexport const MoonclerkListSubscriptionsOutput: z.ZodTypeAny = z.object({\n subscriptions: z.array(z.object({\n id: z.number().int().describe(\"Subscription ID.\"),\n plan: z.object({\n id: z.number().int().describe(\"Plan ID.\"),\n amount: z.number().int().describe(\"Amount in cents.\"),\n currency: z.string().describe(\"Currency code, e.g., USD.\"),\n interval: z.string().describe(\"Billing interval, e.g., month.\"),\n interval_count: z.number().int().describe(\"Interval count, e.g., 1 for monthly.\"),\n plan_reference: z.string().describe(\"Plan reference ID.\"),\n amount_description: z.string().describe(\"Description of the amount option.\"),\n}).describe(\"Associated plan details.\"),\n start: z.string().describe(\"Subscription start timestamp (ISO 8601).\"),\n status: z.string().describe(\"Subscription status.\"),\n ended_at: z.string().describe(\"End timestamp if subscription ended.\").nullable().optional(),\n trial_end: z.string().describe(\"Trial end timestamp if applicable.\").nullable().optional(),\n expires_at: z.string().describe(\"Expiration timestamp if set.\").nullable().optional(),\n canceled_at: z.string().describe(\"Cancellation timestamp if applicable.\").nullable().optional(),\n trial_start: z.string().describe(\"Trial start timestamp if applicable.\").nullable().optional(),\n trial_period_days: z.number().int().describe(\"Number of trial days if applicable.\").nullable().optional(),\n current_period_end: z.string().describe(\"End of current period (ISO 8601).\"),\n current_period_start: z.string().describe(\"Start of current period (ISO 8601).\"),\n next_payment_attempt: z.string().describe(\"Next payment attempt timestamp (ISO 8601).\").nullable().optional(),\n first_payment_attempt: z.string().describe(\"First payment attempt timestamp (ISO 8601).\"),\n subscription_reference: z.string().describe(\"Subscription reference ID.\"),\n}).describe(\"Subscription details.\")).describe(\"List of subscription objects.\"),\n}).describe(\"Data from the action execution\");\n\nexport const moonclerkListSubscriptions = action(\"MOONCLERK_LIST_SUBSCRIPTIONS\", {\n slug: \"moonclerk-list-subscriptions\",\n name: \"List Subscriptions\",\n description: \"Tool to list subscriptions. Use when you need to retrieve all subscriptions after authenticating.\",\n input: MoonclerkListSubscriptionsInput,\n output: MoonclerkListSubscriptionsOutput,\n});\n"],"mappings":";;AAsCA,MAAa,6BAA6B,OAAO,gCAAgC;CAC/E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAtC2D,EAAE,OAAO;EACpE,QAAQ,EAAE,KAAK;GAAC;GAAU;GAAY;GAAW;GAAY;GAAW;EAAQ,CAAC,CAAC,CAAC,SAAS,qGAAqG,CAAC,CAAC,SAAS;EAC5M,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS;EAC/G,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS;EACvH,mBAAmB,EAAE,OAAO,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS;CAC1H,CAAC,CAAC,CAAC,SAAS,qEAiCH;CACP,QAjC4D,EAAE,OAAO,EACrE,eAAe,EAAE,MAAM,EAAE,OAAO;EAChC,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kBAAkB;EAChD,MAAM,EAAE,OAAO;GACf,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,UAAU;GACxC,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kBAAkB;GACpD,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B;GACzD,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC;GAC9D,gBAAgB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sCAAsC;GAChF,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB;GACxD,oBAAoB,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC;EAC7E,CAAC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roke"
5
+ });
6
+ //#endregion
7
+ exports.moonclerk = moonclerk;
8
+
9
+ //# sourceMappingURL=app.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"app.cjs","names":[],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp } from \"@keystrokehq/keystroke/app\";\n\nexport const moonclerk = defineApp({\n slug: \"moonclerk\",\n auth: \"keystroke\",\n});\n"],"mappings":";AAEA,MAAa,aAAA,uCAAA,CAAA,CAAA,UAAA,CAAsB;CACjC,MAAM;CACN,MAAM;AACR,CAAC"}
package/dist/app.d.cts ADDED
@@ -0,0 +1,5 @@
1
+ //#region src/app.d.ts
2
+ declare const moonclerk: import("@keystrokehq/app").App<import("@keystrokehq/shared").Credential>;
3
+ //#endregion
4
+ export { moonclerk };
5
+ //# sourceMappingURL=app.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"app.d.cts","names":[],"sources":["../src/app.ts"],"mappings":";cAEa,SAAA,6BAAS,GAAA,+BAAA,UAAA"}
package/dist/app.d.mts ADDED
@@ -0,0 +1,5 @@
1
+ //#region src/app.d.ts
2
+ declare const moonclerk: import("@keystrokehq/app").App<import("@keystrokehq/shared").Credential>;
3
+ //#endregion
4
+ export { moonclerk };
5
+ //# sourceMappingURL=app.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"app.d.mts","names":[],"sources":["../src/app.ts"],"mappings":";cAEa,SAAA,6BAAS,GAAA,+BAAA,UAAA"}
package/dist/app.mjs ADDED
@@ -0,0 +1,10 @@
1
+ import { defineApp } from "@keystrokehq/keystroke/app";
2
+ //#region src/app.ts
3
+ const moonclerk = defineApp({
4
+ slug: "moonclerk",
5
+ auth: "keystroke"
6
+ });
7
+ //#endregion
8
+ export { moonclerk };
9
+
10
+ //# sourceMappingURL=app.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"app.mjs","names":[],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp } from \"@keystrokehq/keystroke/app\";\n\nexport const moonclerk = defineApp({\n slug: \"moonclerk\",\n auth: \"keystroke\",\n});\n"],"mappings":";;AAEA,MAAa,YAAY,UAAU;CACjC,MAAM;CACN,MAAM;AACR,CAAC"}
@@ -0,0 +1,15 @@
1
+ //#region src/catalog.ts
2
+ /** Generated — kept in sync with src/app.ts. */
3
+ const moonclerkCatalog = {
4
+ "slug": "moonclerk",
5
+ "name": "Moonclerk",
6
+ "description": "MoonClerk is a platform that enables businesses to accept recurring and one-time online payments.",
7
+ "category": "Payment Processing",
8
+ "logo": "https://logos.composio.dev/api/moonclerk",
9
+ "authKind": "keystroke",
10
+ "oauthScopes": []
11
+ };
12
+ //#endregion
13
+ exports.moonclerkCatalog = moonclerkCatalog;
14
+
15
+ //# sourceMappingURL=catalog.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"catalog.cjs","names":[],"sources":["../src/catalog.ts"],"sourcesContent":["/** Generated — kept in sync with src/app.ts. */\nexport const moonclerkCatalog = {\n \"slug\": \"moonclerk\",\n \"name\": \"Moonclerk\",\n \"description\": \"MoonClerk is a platform that enables businesses to accept recurring and one-time online payments.\",\n \"category\": \"Payment Processing\",\n \"logo\": \"https://logos.composio.dev/api/moonclerk\",\n \"authKind\": \"keystroke\",\n \"oauthScopes\": []\n} as const;\n"],"mappings":";;AACA,MAAa,mBAAmB;CAC9B,QAAQ;CACR,QAAQ;CACR,eAAe;CACf,YAAY;CACZ,QAAQ;CACR,YAAY;CACZ,eAAe,CAAC;AAClB"}
@@ -0,0 +1,14 @@
1
+ //#region src/catalog.d.ts
2
+ /** Generated — kept in sync with src/app.ts. */
3
+ declare const moonclerkCatalog: {
4
+ readonly slug: "moonclerk";
5
+ readonly name: "Moonclerk";
6
+ readonly description: "MoonClerk is a platform that enables businesses to accept recurring and one-time online payments.";
7
+ readonly category: "Payment Processing";
8
+ readonly logo: "https://logos.composio.dev/api/moonclerk";
9
+ readonly authKind: "keystroke";
10
+ readonly oauthScopes: readonly [];
11
+ };
12
+ //#endregion
13
+ export { moonclerkCatalog };
14
+ //# sourceMappingURL=catalog.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"catalog.d.cts","names":[],"sources":["../src/catalog.ts"],"mappings":";;cACa,gBAAA;EAAA"}
@@ -0,0 +1,14 @@
1
+ //#region src/catalog.d.ts
2
+ /** Generated — kept in sync with src/app.ts. */
3
+ declare const moonclerkCatalog: {
4
+ readonly slug: "moonclerk";
5
+ readonly name: "Moonclerk";
6
+ readonly description: "MoonClerk is a platform that enables businesses to accept recurring and one-time online payments.";
7
+ readonly category: "Payment Processing";
8
+ readonly logo: "https://logos.composio.dev/api/moonclerk";
9
+ readonly authKind: "keystroke";
10
+ readonly oauthScopes: readonly [];
11
+ };
12
+ //#endregion
13
+ export { moonclerkCatalog };
14
+ //# sourceMappingURL=catalog.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"catalog.d.mts","names":[],"sources":["../src/catalog.ts"],"mappings":";;cACa,gBAAA;EAAA"}
@@ -0,0 +1,15 @@
1
+ //#region src/catalog.ts
2
+ /** Generated — kept in sync with src/app.ts. */
3
+ const moonclerkCatalog = {
4
+ "slug": "moonclerk",
5
+ "name": "Moonclerk",
6
+ "description": "MoonClerk is a platform that enables businesses to accept recurring and one-time online payments.",
7
+ "category": "Payment Processing",
8
+ "logo": "https://logos.composio.dev/api/moonclerk",
9
+ "authKind": "keystroke",
10
+ "oauthScopes": []
11
+ };
12
+ //#endregion
13
+ export { moonclerkCatalog };
14
+
15
+ //# sourceMappingURL=catalog.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"catalog.mjs","names":[],"sources":["../src/catalog.ts"],"sourcesContent":["/** Generated — kept in sync with src/app.ts. */\nexport const moonclerkCatalog = {\n \"slug\": \"moonclerk\",\n \"name\": \"Moonclerk\",\n \"description\": \"MoonClerk is a platform that enables businesses to accept recurring and one-time online payments.\",\n \"category\": \"Payment Processing\",\n \"logo\": \"https://logos.composio.dev/api/moonclerk\",\n \"authKind\": \"keystroke\",\n \"oauthScopes\": []\n} as const;\n"],"mappings":";;AACA,MAAa,mBAAmB;CAC9B,QAAQ;CACR,QAAQ;CACR,eAAe;CACf,YAAY;CACZ,QAAQ;CACR,YAAY;CACZ,eAAe,CAAC;AAClB"}
@@ -0,0 +1,18 @@
1
+ let _keystrokehq_keystroke_client = require("@keystrokehq/keystroke/client");
2
+ //#region src/execute.ts
3
+ const APP_SLUG = "moonclerk";
4
+ /** Pinned app version — updated on regeneration. */
5
+ const APP_VERSION = "20260227_00";
6
+ async function executeMoonclerkTool(tool, args) {
7
+ const { result } = await (0, _keystrokehq_keystroke_client.createKeystrokeClient)().tools.execute({
8
+ app: APP_SLUG,
9
+ tool,
10
+ arguments: args,
11
+ version: APP_VERSION
12
+ });
13
+ return result;
14
+ }
15
+ //#endregion
16
+ exports.executeMoonclerkTool = executeMoonclerkTool;
17
+
18
+ //# sourceMappingURL=execute.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"execute.cjs","names":[],"sources":["../src/execute.ts"],"sourcesContent":["import { createKeystrokeClient } from \"@keystrokehq/keystroke/client\";\n\nconst APP_SLUG = \"moonclerk\";\n/** Pinned app version — updated on regeneration. */\nconst APP_VERSION = \"20260227_00\";\n\nexport async function executeMoonclerkTool(\n tool: string,\n args: Record<string, unknown>,\n): Promise<unknown> {\n const { result } = await createKeystrokeClient().tools.execute({\n app: APP_SLUG,\n tool,\n arguments: args,\n version: APP_VERSION,\n });\n return result;\n}\n"],"mappings":";;AAEA,MAAM,WAAW;;AAEjB,MAAM,cAAc;AAEpB,eAAsB,qBACpB,MACA,MACkB;CAClB,MAAM,EAAE,WAAW,OAAA,GAAA,8BAAA,sBAAA,CAA4B,CAAC,CAAC,MAAM,QAAQ;EAC7D,KAAK;EACL;EACA,WAAW;EACX,SAAS;CACX,CAAC;CACD,OAAO;AACT"}
@@ -0,0 +1,18 @@
1
+ import { createKeystrokeClient } from "@keystrokehq/keystroke/client";
2
+ //#region src/execute.ts
3
+ const APP_SLUG = "moonclerk";
4
+ /** Pinned app version — updated on regeneration. */
5
+ const APP_VERSION = "20260227_00";
6
+ async function executeMoonclerkTool(tool, args) {
7
+ const { result } = await createKeystrokeClient().tools.execute({
8
+ app: APP_SLUG,
9
+ tool,
10
+ arguments: args,
11
+ version: APP_VERSION
12
+ });
13
+ return result;
14
+ }
15
+ //#endregion
16
+ export { executeMoonclerkTool };
17
+
18
+ //# sourceMappingURL=execute.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"execute.mjs","names":[],"sources":["../src/execute.ts"],"sourcesContent":["import { createKeystrokeClient } from \"@keystrokehq/keystroke/client\";\n\nconst APP_SLUG = \"moonclerk\";\n/** Pinned app version — updated on regeneration. */\nconst APP_VERSION = \"20260227_00\";\n\nexport async function executeMoonclerkTool(\n tool: string,\n args: Record<string, unknown>,\n): Promise<unknown> {\n const { result } = await createKeystrokeClient().tools.execute({\n app: APP_SLUG,\n tool,\n arguments: args,\n version: APP_VERSION,\n });\n return result;\n}\n"],"mappings":";;AAEA,MAAM,WAAW;;AAEjB,MAAM,cAAc;AAEpB,eAAsB,qBACpB,MACA,MACkB;CAClB,MAAM,EAAE,WAAW,MAAM,sBAAsB,CAAC,CAAC,MAAM,QAAQ;EAC7D,KAAK;EACL;EACA,WAAW;EACX,SAAS;CACX,CAAC;CACD,OAAO;AACT"}