@keystrokehq/moonclerk 0.1.2 → 0.1.4

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 (37) hide show
  1. package/dist/actions/list-customers.cjs +2 -2
  2. package/dist/actions/list-customers.cjs.map +1 -1
  3. package/dist/actions/list-customers.d.cts +2 -2
  4. package/dist/actions/list-customers.d.mts +2 -2
  5. package/dist/actions/list-customers.mjs +2 -2
  6. package/dist/actions/list-customers.mjs.map +1 -1
  7. package/dist/actions/list-discounts.cjs +1 -1
  8. package/dist/actions/list-discounts.cjs.map +1 -1
  9. package/dist/actions/list-discounts.d.cts +1 -1
  10. package/dist/actions/list-discounts.d.mts +1 -1
  11. package/dist/actions/list-discounts.mjs +1 -1
  12. package/dist/actions/list-discounts.mjs.map +1 -1
  13. package/dist/actions/list-forms.cjs +1 -1
  14. package/dist/actions/list-forms.cjs.map +1 -1
  15. package/dist/actions/list-forms.d.cts +1 -1
  16. package/dist/actions/list-forms.d.mts +1 -1
  17. package/dist/actions/list-forms.mjs +1 -1
  18. package/dist/actions/list-forms.mjs.map +1 -1
  19. package/dist/actions/list-payments.cjs +2 -2
  20. package/dist/actions/list-payments.cjs.map +1 -1
  21. package/dist/actions/list-payments.d.cts +2 -2
  22. package/dist/actions/list-payments.d.mts +2 -2
  23. package/dist/actions/list-payments.mjs +2 -2
  24. package/dist/actions/list-payments.mjs.map +1 -1
  25. package/dist/actions/list-subscriptions.cjs +1 -1
  26. package/dist/actions/list-subscriptions.cjs.map +1 -1
  27. package/dist/actions/list-subscriptions.d.cts +1 -1
  28. package/dist/actions/list-subscriptions.d.mts +1 -1
  29. package/dist/actions/list-subscriptions.mjs +1 -1
  30. package/dist/actions/list-subscriptions.mjs.map +1 -1
  31. package/dist/catalog.cjs +1 -1
  32. package/dist/catalog.cjs.map +1 -1
  33. package/dist/catalog.d.cts +1 -1
  34. package/dist/catalog.d.mts +1 -1
  35. package/dist/catalog.mjs +1 -1
  36. package/dist/catalog.mjs.map +1 -1
  37. package/package.json +1 -1
@@ -74,7 +74,7 @@ const MoonclerkListCustomersOutput = zod.z.object({ customers: zod.z.array(zod.z
74
74
  first_payment_attempt: zod.z.string().describe("First payment attempt timestamp (ISO 8601).").nullable(),
75
75
  subscription_reference: zod.z.string().describe("Subscription reference ID.").nullable()
76
76
  }).describe("Subscription details for the customer.").nullable().optional(),
77
- custom_fields: zod.z.object({}).describe("Custom field responses keyed by field name.").nullable().optional(),
77
+ custom_fields: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Custom field responses keyed by field name.").nullable().optional(),
78
78
  management_url: zod.z.string().describe("URL for managing the subscription in MoonClerk UI.").nullable().optional(),
79
79
  payment_method: zod.z.object({
80
80
  type: zod.z.string().describe("Payment method type, e.g., 'card'.").nullable(),
@@ -85,7 +85,7 @@ const MoonclerkListCustomersOutput = zod.z.object({ customers: zod.z.array(zod.z
85
85
  }).describe("Payment method details.").nullable().optional(),
86
86
  account_balance: zod.z.number().int().describe("Account balance in cents.").nullable(),
87
87
  customer_reference: zod.z.string().describe("Stripe customer ID reference.").nullable().optional()
88
- }).describe("Customer object representing a MoonClerk customer (Plan in UI).")).describe("List of customer objects.") }).describe("Data from the action execution");
88
+ }).passthrough().describe("Customer object representing a MoonClerk customer (Plan in UI).")).describe("List of customer objects.") }).describe("Data from the action execution");
89
89
  const moonclerkListCustomers = require_action.action("MOONCLERK_LIST_CUSTOMERS", {
90
90
  slug: "moonclerk-list-customers",
91
91
  name: "List Customers",
@@ -1 +1 @@
1
- {"version":3,"file":"list-customers.cjs","names":["z","action"],"sources":["../../src/actions/list-customers.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoonclerkListCustomersInput = z.object({\n status: z.enum([\"active\", \"canceled\", \"expired\", \"past_due\", \"pending\", \"unpaid\"]).describe(\"Filter by subscription status.\").optional(),\n form_id: z.number().int().describe(\"The associated MoonClerk form ID to filter customers.\").optional(),\n checkout_to: z.string().describe(\"Customers created on or before this date (YYYY-MM-DD).\").optional(),\n checkout_from: z.string().describe(\"Customers created on or after this date (YYYY-MM-DD).\").optional(),\n next_payment_to: z.string().describe(\"Subscriptions due to bill on or before this date (YYYY-MM-DD).\").optional(),\n next_payment_from: z.string().describe(\"Subscriptions due to bill on or after this date (YYYY-MM-DD).\").optional(),\n}).describe(\"Request parameters for listing customers with optional filters.\");\nexport const MoonclerkListCustomersOutput = z.object({\n customers: z.array(z.object({\n id: z.number().int().describe(\"Customer ID.\").nullable(),\n name: z.string().describe(\"Customer name.\").nullable(),\n email: z.string().describe(\"Customer email address.\").nullable(),\n form_id: z.number().int().describe(\"Associated form ID.\").nullable(),\n checkout: z.object({\n fee: z.number().int().describe(\"Fee amount in cents.\").nullable(),\n date: z.string().describe(\"Checkout timestamp (ISO 8601).\").nullable(),\n token: z.string().describe(\"Checkout token.\").nullable(),\n total: z.number().int().describe(\"Total amount in cents.\").nullable(),\n subtotal: z.number().int().describe(\"Subtotal in cents.\").nullable(),\n amount_due: z.number().int().describe(\"Amount due in cents.\").nullable(),\n coupon_code: z.string().describe(\"Applied coupon code.\").nullable().optional(),\n coupon_amount: z.number().int().describe(\"Coupon amount in cents.\").nullable(),\n upfront_amount: z.number().int().describe(\"Upfront amount charged in cents.\").nullable().optional(),\n trial_period_days: z.number().int().describe(\"Trial period days if trial is applied.\").nullable().optional(),\n}).describe(\"Checkout details for the customer.\"),\n discount: z.object({\n coupon: z.object({\n code: z.string().describe(\"Coupon code.\").nullable(),\n currency: z.string().describe(\"Currency for the amount_off, e.g., 'USD'.\").nullable().optional(),\n duration: z.string().describe(\"Duration of the coupon, e.g., 'once'.\").nullable(),\n redeem_by: z.string().describe(\"ISO 8601 date when the coupon expires.\").nullable().optional(),\n amount_off: z.number().int().describe(\"Amount off in cents.\").nullable().optional(),\n percent_off: z.number().int().describe(\"Percent off for the coupon.\").nullable().optional(),\n max_redemptions: z.number().int().describe(\"Maximum number of redemptions allowed by the coupon.\").nullable().optional(),\n duration_in_months: z.number().int().describe(\"Number of months the coupon is valid for (if applicable).\").nullable().optional(),\n}).describe(\"Coupon applied to the customer.\"),\n ends_at: z.string().describe(\"Discount end date (ISO 8601).\").nullable().optional(),\n starts_at: z.string().describe(\"Discount start date (ISO 8601).\").nullable().optional(),\n}).describe(\"Discount details including coupon and validity.\").nullable().optional(),\n custom_id: z.string().describe(\"Custom ID set via integration.\").nullable().optional(),\n delinquent: z.boolean().describe(\"Whether the customer is delinquent.\").nullable(),\n subscription: z.object({\n id: z.number().int().describe(\"Subscription ID.\").nullable(),\n plan: z.object({\n id: z.number().int().describe(\"Plan ID.\").nullable(),\n amount: z.number().int().describe(\"Amount in cents.\").nullable(),\n currency: z.string().describe(\"Currency code, e.g., 'USD'.\").nullable(),\n interval: z.string().describe(\"Billing interval, e.g., 'month'.\").nullable(),\n interval_count: z.number().int().describe(\"Interval count, e.g., 1 for monthly.\").nullable(),\n plan_reference: z.string().describe(\"Plan reference ID.\").nullable(),\n amount_description: z.string().describe(\"Description of the amount option.\").nullable(),\n}).describe(\"Associated plan details.\"),\n start: z.string().describe(\"Subscription start timestamp (ISO 8601).\").nullable(),\n status: z.string().describe(\"Subscription status.\").nullable(),\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).\").nullable(),\n current_period_start: z.string().describe(\"Start of current period (ISO 8601).\").nullable(),\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).\").nullable(),\n subscription_reference: z.string().describe(\"Subscription reference ID.\").nullable(),\n}).describe(\"Subscription details for the customer.\").nullable().optional(),\n custom_fields: z.object({}).describe(\"Custom field responses keyed by field name.\").nullable().optional(),\n management_url: z.string().describe(\"URL for managing the subscription in MoonClerk UI.\").nullable().optional(),\n payment_method: z.object({\n type: z.string().describe(\"Payment method type, e.g., 'card'.\").nullable(),\n brand: z.string().describe(\"Card brand, e.g., 'Visa'.\").nullable(),\n last4: z.string().describe(\"Last 4 digits of the card.\").nullable(),\n exp_year: z.number().int().describe(\"Card expiration year.\").nullable(),\n exp_month: z.number().int().describe(\"Card expiration month.\").nullable(),\n}).describe(\"Payment method details.\").nullable().optional(),\n account_balance: z.number().int().describe(\"Account balance in cents.\").nullable(),\n customer_reference: z.string().describe(\"Stripe customer ID reference.\").nullable().optional(),\n}).describe(\"Customer object representing a MoonClerk customer (Plan in UI).\")).describe(\"List of customer objects.\"),\n}).describe(\"Data from the action execution\");\n\nexport const moonclerkListCustomers = action(\"MOONCLERK_LIST_CUSTOMERS\", {\n slug: \"moonclerk-list-customers\",\n name: \"List Customers\",\n description: \"Tool to list customers (plans) from MoonClerk. Use when you need to retrieve customer data with optional filters. Use after authenticating API credentials.\",\n input: MoonclerkListCustomersInput,\n output: MoonclerkListCustomersOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,QAAQA,IAAAA,EAAE,KAAK;EAAC;EAAU;EAAY;EAAW;EAAY;EAAW;CAAQ,CAAC,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CACvI,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;CACrG,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;CACpG,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;CACrG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N,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"list-customers.cjs","names":["z","action"],"sources":["../../src/actions/list-customers.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoonclerkListCustomersInput = z.object({\n status: z.enum([\"active\", \"canceled\", \"expired\", \"past_due\", \"pending\", \"unpaid\"]).describe(\"Filter by subscription status.\").optional(),\n form_id: z.number().int().describe(\"The associated MoonClerk form ID to filter customers.\").optional(),\n checkout_to: z.string().describe(\"Customers created on or before this date (YYYY-MM-DD).\").optional(),\n checkout_from: z.string().describe(\"Customers created on or after this date (YYYY-MM-DD).\").optional(),\n next_payment_to: z.string().describe(\"Subscriptions due to bill on or before this date (YYYY-MM-DD).\").optional(),\n next_payment_from: z.string().describe(\"Subscriptions due to bill on or after this date (YYYY-MM-DD).\").optional(),\n}).describe(\"Request parameters for listing customers with optional filters.\");\nexport const MoonclerkListCustomersOutput = z.object({\n customers: z.array(z.object({\n id: z.number().int().describe(\"Customer ID.\").nullable(),\n name: z.string().describe(\"Customer name.\").nullable(),\n email: z.string().describe(\"Customer email address.\").nullable(),\n form_id: z.number().int().describe(\"Associated form ID.\").nullable(),\n checkout: z.object({\n fee: z.number().int().describe(\"Fee amount in cents.\").nullable(),\n date: z.string().describe(\"Checkout timestamp (ISO 8601).\").nullable(),\n token: z.string().describe(\"Checkout token.\").nullable(),\n total: z.number().int().describe(\"Total amount in cents.\").nullable(),\n subtotal: z.number().int().describe(\"Subtotal in cents.\").nullable(),\n amount_due: z.number().int().describe(\"Amount due in cents.\").nullable(),\n coupon_code: z.string().describe(\"Applied coupon code.\").nullable().optional(),\n coupon_amount: z.number().int().describe(\"Coupon amount in cents.\").nullable(),\n upfront_amount: z.number().int().describe(\"Upfront amount charged in cents.\").nullable().optional(),\n trial_period_days: z.number().int().describe(\"Trial period days if trial is applied.\").nullable().optional(),\n}).describe(\"Checkout details for the customer.\"),\n discount: z.object({\n coupon: z.object({\n code: z.string().describe(\"Coupon code.\").nullable(),\n currency: z.string().describe(\"Currency for the amount_off, e.g., 'USD'.\").nullable().optional(),\n duration: z.string().describe(\"Duration of the coupon, e.g., 'once'.\").nullable(),\n redeem_by: z.string().describe(\"ISO 8601 date when the coupon expires.\").nullable().optional(),\n amount_off: z.number().int().describe(\"Amount off in cents.\").nullable().optional(),\n percent_off: z.number().int().describe(\"Percent off for the coupon.\").nullable().optional(),\n max_redemptions: z.number().int().describe(\"Maximum number of redemptions allowed by the coupon.\").nullable().optional(),\n duration_in_months: z.number().int().describe(\"Number of months the coupon is valid for (if applicable).\").nullable().optional(),\n}).describe(\"Coupon applied to the customer.\"),\n ends_at: z.string().describe(\"Discount end date (ISO 8601).\").nullable().optional(),\n starts_at: z.string().describe(\"Discount start date (ISO 8601).\").nullable().optional(),\n}).describe(\"Discount details including coupon and validity.\").nullable().optional(),\n custom_id: z.string().describe(\"Custom ID set via integration.\").nullable().optional(),\n delinquent: z.boolean().describe(\"Whether the customer is delinquent.\").nullable(),\n subscription: z.object({\n id: z.number().int().describe(\"Subscription ID.\").nullable(),\n plan: z.object({\n id: z.number().int().describe(\"Plan ID.\").nullable(),\n amount: z.number().int().describe(\"Amount in cents.\").nullable(),\n currency: z.string().describe(\"Currency code, e.g., 'USD'.\").nullable(),\n interval: z.string().describe(\"Billing interval, e.g., 'month'.\").nullable(),\n interval_count: z.number().int().describe(\"Interval count, e.g., 1 for monthly.\").nullable(),\n plan_reference: z.string().describe(\"Plan reference ID.\").nullable(),\n amount_description: z.string().describe(\"Description of the amount option.\").nullable(),\n}).describe(\"Associated plan details.\"),\n start: z.string().describe(\"Subscription start timestamp (ISO 8601).\").nullable(),\n status: z.string().describe(\"Subscription status.\").nullable(),\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).\").nullable(),\n current_period_start: z.string().describe(\"Start of current period (ISO 8601).\").nullable(),\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).\").nullable(),\n subscription_reference: z.string().describe(\"Subscription reference ID.\").nullable(),\n}).describe(\"Subscription details for the customer.\").nullable().optional(),\n custom_fields: z.record(z.string(), z.unknown()).describe(\"Custom field responses keyed by field name.\").nullable().optional(),\n management_url: z.string().describe(\"URL for managing the subscription in MoonClerk UI.\").nullable().optional(),\n payment_method: z.object({\n type: z.string().describe(\"Payment method type, e.g., 'card'.\").nullable(),\n brand: z.string().describe(\"Card brand, e.g., 'Visa'.\").nullable(),\n last4: z.string().describe(\"Last 4 digits of the card.\").nullable(),\n exp_year: z.number().int().describe(\"Card expiration year.\").nullable(),\n exp_month: z.number().int().describe(\"Card expiration month.\").nullable(),\n}).describe(\"Payment method details.\").nullable().optional(),\n account_balance: z.number().int().describe(\"Account balance in cents.\").nullable(),\n customer_reference: z.string().describe(\"Stripe customer ID reference.\").nullable().optional(),\n}).passthrough().describe(\"Customer object representing a MoonClerk customer (Plan in UI).\")).describe(\"List of customer objects.\"),\n}).describe(\"Data from the action execution\");\n\nexport const moonclerkListCustomers = action(\"MOONCLERK_LIST_CUSTOMERS\", {\n slug: \"moonclerk-list-customers\",\n name: \"List Customers\",\n description: \"Tool to list customers (plans) from MoonClerk. Use when you need to retrieve customer data with optional filters. Use after authenticating API credentials.\",\n input: MoonclerkListCustomersInput,\n output: MoonclerkListCustomersOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,QAAQA,IAAAA,EAAE,KAAK;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C,CAAC,SAAS;CACzD,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CACjF,oBAAoBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC/F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,CAAC,SAAS,2BAA2B,EAClI,CAAC,CAAC,CAAC,SAAS,gCAAgC;AAE5C,MAAa,yBAAyBC,eAAAA,OAAO,4BAA4B;CACvE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -75,7 +75,7 @@ declare const MoonclerkListCustomersOutput: z.ZodObject<{
75
75
  first_payment_attempt: z.ZodNullable<z.ZodString>;
76
76
  subscription_reference: z.ZodNullable<z.ZodString>;
77
77
  }, z.core.$strip>>>;
78
- custom_fields: z.ZodOptional<z.ZodNullable<z.ZodObject<{}, z.core.$strip>>>;
78
+ custom_fields: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
79
79
  management_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
80
80
  payment_method: z.ZodOptional<z.ZodNullable<z.ZodObject<{
81
81
  type: z.ZodNullable<z.ZodString>;
@@ -86,7 +86,7 @@ declare const MoonclerkListCustomersOutput: z.ZodObject<{
86
86
  }, z.core.$strip>>>;
87
87
  account_balance: z.ZodNullable<z.ZodNumber>;
88
88
  customer_reference: z.ZodOptional<z.ZodNullable<z.ZodString>>;
89
- }, z.core.$strip>>;
89
+ }, z.core.$loose>>;
90
90
  }, z.core.$strip>;
91
91
  declare const moonclerkListCustomers: import("@keystrokehq/action").WorkflowActionDefinition<{
92
92
  status?: "active" | "canceled" | "expired" | "past_due" | "pending" | "unpaid" | undefined;
@@ -75,7 +75,7 @@ declare const MoonclerkListCustomersOutput: z.ZodObject<{
75
75
  first_payment_attempt: z.ZodNullable<z.ZodString>;
76
76
  subscription_reference: z.ZodNullable<z.ZodString>;
77
77
  }, z.core.$strip>>>;
78
- custom_fields: z.ZodOptional<z.ZodNullable<z.ZodObject<{}, z.core.$strip>>>;
78
+ custom_fields: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
79
79
  management_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
80
80
  payment_method: z.ZodOptional<z.ZodNullable<z.ZodObject<{
81
81
  type: z.ZodNullable<z.ZodString>;
@@ -86,7 +86,7 @@ declare const MoonclerkListCustomersOutput: z.ZodObject<{
86
86
  }, z.core.$strip>>>;
87
87
  account_balance: z.ZodNullable<z.ZodNumber>;
88
88
  customer_reference: z.ZodOptional<z.ZodNullable<z.ZodString>>;
89
- }, z.core.$strip>>;
89
+ }, z.core.$loose>>;
90
90
  }, z.core.$strip>;
91
91
  declare const moonclerkListCustomers: import("@keystrokehq/action").WorkflowActionDefinition<{
92
92
  status?: "active" | "canceled" | "expired" | "past_due" | "pending" | "unpaid" | undefined;
@@ -77,7 +77,7 @@ const moonclerkListCustomers = action("MOONCLERK_LIST_CUSTOMERS", {
77
77
  first_payment_attempt: z.string().describe("First payment attempt timestamp (ISO 8601).").nullable(),
78
78
  subscription_reference: z.string().describe("Subscription reference ID.").nullable()
79
79
  }).describe("Subscription details for the customer.").nullable().optional(),
80
- custom_fields: z.object({}).describe("Custom field responses keyed by field name.").nullable().optional(),
80
+ custom_fields: z.record(z.string(), z.unknown()).describe("Custom field responses keyed by field name.").nullable().optional(),
81
81
  management_url: z.string().describe("URL for managing the subscription in MoonClerk UI.").nullable().optional(),
82
82
  payment_method: z.object({
83
83
  type: z.string().describe("Payment method type, e.g., 'card'.").nullable(),
@@ -88,7 +88,7 @@ const moonclerkListCustomers = action("MOONCLERK_LIST_CUSTOMERS", {
88
88
  }).describe("Payment method details.").nullable().optional(),
89
89
  account_balance: z.number().int().describe("Account balance in cents.").nullable(),
90
90
  customer_reference: z.string().describe("Stripe customer ID reference.").nullable().optional()
91
- }).describe("Customer object representing a MoonClerk customer (Plan in UI).")).describe("List of customer objects.") }).describe("Data from the action execution")
91
+ }).passthrough().describe("Customer object representing a MoonClerk customer (Plan in UI).")).describe("List of customer objects.") }).describe("Data from the action execution")
92
92
  });
93
93
  //#endregion
94
94
  export { moonclerkListCustomers };
@@ -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 MoonclerkListCustomersInput = z.object({\n status: z.enum([\"active\", \"canceled\", \"expired\", \"past_due\", \"pending\", \"unpaid\"]).describe(\"Filter by subscription status.\").optional(),\n form_id: z.number().int().describe(\"The associated MoonClerk form ID to filter customers.\").optional(),\n checkout_to: z.string().describe(\"Customers created on or before this date (YYYY-MM-DD).\").optional(),\n checkout_from: z.string().describe(\"Customers created on or after this date (YYYY-MM-DD).\").optional(),\n next_payment_to: z.string().describe(\"Subscriptions due to bill on or before this date (YYYY-MM-DD).\").optional(),\n next_payment_from: z.string().describe(\"Subscriptions due to bill on or after this date (YYYY-MM-DD).\").optional(),\n}).describe(\"Request parameters for listing customers with optional filters.\");\nexport const MoonclerkListCustomersOutput = z.object({\n customers: z.array(z.object({\n id: z.number().int().describe(\"Customer ID.\").nullable(),\n name: z.string().describe(\"Customer name.\").nullable(),\n email: z.string().describe(\"Customer email address.\").nullable(),\n form_id: z.number().int().describe(\"Associated form ID.\").nullable(),\n checkout: z.object({\n fee: z.number().int().describe(\"Fee amount in cents.\").nullable(),\n date: z.string().describe(\"Checkout timestamp (ISO 8601).\").nullable(),\n token: z.string().describe(\"Checkout token.\").nullable(),\n total: z.number().int().describe(\"Total amount in cents.\").nullable(),\n subtotal: z.number().int().describe(\"Subtotal in cents.\").nullable(),\n amount_due: z.number().int().describe(\"Amount due in cents.\").nullable(),\n coupon_code: z.string().describe(\"Applied coupon code.\").nullable().optional(),\n coupon_amount: z.number().int().describe(\"Coupon amount in cents.\").nullable(),\n upfront_amount: z.number().int().describe(\"Upfront amount charged in cents.\").nullable().optional(),\n trial_period_days: z.number().int().describe(\"Trial period days if trial is applied.\").nullable().optional(),\n}).describe(\"Checkout details for the customer.\"),\n discount: z.object({\n coupon: z.object({\n code: z.string().describe(\"Coupon code.\").nullable(),\n currency: z.string().describe(\"Currency for the amount_off, e.g., 'USD'.\").nullable().optional(),\n duration: z.string().describe(\"Duration of the coupon, e.g., 'once'.\").nullable(),\n redeem_by: z.string().describe(\"ISO 8601 date when the coupon expires.\").nullable().optional(),\n amount_off: z.number().int().describe(\"Amount off in cents.\").nullable().optional(),\n percent_off: z.number().int().describe(\"Percent off for the coupon.\").nullable().optional(),\n max_redemptions: z.number().int().describe(\"Maximum number of redemptions allowed by the coupon.\").nullable().optional(),\n duration_in_months: z.number().int().describe(\"Number of months the coupon is valid for (if applicable).\").nullable().optional(),\n}).describe(\"Coupon applied to the customer.\"),\n ends_at: z.string().describe(\"Discount end date (ISO 8601).\").nullable().optional(),\n starts_at: z.string().describe(\"Discount start date (ISO 8601).\").nullable().optional(),\n}).describe(\"Discount details including coupon and validity.\").nullable().optional(),\n custom_id: z.string().describe(\"Custom ID set via integration.\").nullable().optional(),\n delinquent: z.boolean().describe(\"Whether the customer is delinquent.\").nullable(),\n subscription: z.object({\n id: z.number().int().describe(\"Subscription ID.\").nullable(),\n plan: z.object({\n id: z.number().int().describe(\"Plan ID.\").nullable(),\n amount: z.number().int().describe(\"Amount in cents.\").nullable(),\n currency: z.string().describe(\"Currency code, e.g., 'USD'.\").nullable(),\n interval: z.string().describe(\"Billing interval, e.g., 'month'.\").nullable(),\n interval_count: z.number().int().describe(\"Interval count, e.g., 1 for monthly.\").nullable(),\n plan_reference: z.string().describe(\"Plan reference ID.\").nullable(),\n amount_description: z.string().describe(\"Description of the amount option.\").nullable(),\n}).describe(\"Associated plan details.\"),\n start: z.string().describe(\"Subscription start timestamp (ISO 8601).\").nullable(),\n status: z.string().describe(\"Subscription status.\").nullable(),\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).\").nullable(),\n current_period_start: z.string().describe(\"Start of current period (ISO 8601).\").nullable(),\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).\").nullable(),\n subscription_reference: z.string().describe(\"Subscription reference ID.\").nullable(),\n}).describe(\"Subscription details for the customer.\").nullable().optional(),\n custom_fields: z.object({}).describe(\"Custom field responses keyed by field name.\").nullable().optional(),\n management_url: z.string().describe(\"URL for managing the subscription in MoonClerk UI.\").nullable().optional(),\n payment_method: z.object({\n type: z.string().describe(\"Payment method type, e.g., 'card'.\").nullable(),\n brand: z.string().describe(\"Card brand, e.g., 'Visa'.\").nullable(),\n last4: z.string().describe(\"Last 4 digits of the card.\").nullable(),\n exp_year: z.number().int().describe(\"Card expiration year.\").nullable(),\n exp_month: z.number().int().describe(\"Card expiration month.\").nullable(),\n}).describe(\"Payment method details.\").nullable().optional(),\n account_balance: z.number().int().describe(\"Account balance in cents.\").nullable(),\n customer_reference: z.string().describe(\"Stripe customer ID reference.\").nullable().optional(),\n}).describe(\"Customer object representing a MoonClerk customer (Plan in UI).\")).describe(\"List of customer objects.\"),\n}).describe(\"Data from the action execution\");\n\nexport const moonclerkListCustomers = action(\"MOONCLERK_LIST_CUSTOMERS\", {\n slug: \"moonclerk-list-customers\",\n name: \"List Customers\",\n description: \"Tool to list customers (plans) from MoonClerk. Use when you need to retrieve customer data with optional filters. Use after authenticating API credentials.\",\n input: MoonclerkListCustomersInput,\n output: MoonclerkListCustomersOutput,\n});\n"],"mappings":";;AAqFA,MAAa,yBAAyB,OAAO,4BAA4B;CACvE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OArFyC,EAAE,OAAO;EAClD,QAAQ,EAAE,KAAK;GAAC;GAAU;GAAY;GAAW;GAAY;GAAW;EAAQ,CAAC,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;EACvI,SAAS,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;EACrG,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;EACpG,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;EACrG,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS;EAChH,mBAAmB,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS;CACnH,CAAC,CAAC,CAAC,SAAS,iEA8EH;CACP,QA9E0C,EAAE,OAAO,EACnD,WAAW,EAAE,MAAM,EAAE,OAAO;EAC5B,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,cAAc,CAAC,CAAC,SAAS;EACvD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB,CAAC,CAAC,SAAS;EACrD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;EAC/D,SAAS,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;EACnE,UAAU,EAAE,OAAO;GACnB,KAAK,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;GAChE,MAAM,EAAE,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import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoonclerkListCustomersInput = z.object({\n status: z.enum([\"active\", \"canceled\", \"expired\", \"past_due\", \"pending\", \"unpaid\"]).describe(\"Filter by subscription status.\").optional(),\n form_id: z.number().int().describe(\"The associated MoonClerk form ID to filter customers.\").optional(),\n checkout_to: z.string().describe(\"Customers created on or before this date (YYYY-MM-DD).\").optional(),\n checkout_from: z.string().describe(\"Customers created on or after this date (YYYY-MM-DD).\").optional(),\n next_payment_to: z.string().describe(\"Subscriptions due to bill on or before this date (YYYY-MM-DD).\").optional(),\n next_payment_from: z.string().describe(\"Subscriptions due to bill on or after this date (YYYY-MM-DD).\").optional(),\n}).describe(\"Request parameters for listing customers with optional filters.\");\nexport const MoonclerkListCustomersOutput = z.object({\n customers: z.array(z.object({\n id: z.number().int().describe(\"Customer ID.\").nullable(),\n name: z.string().describe(\"Customer name.\").nullable(),\n email: z.string().describe(\"Customer email address.\").nullable(),\n form_id: z.number().int().describe(\"Associated form ID.\").nullable(),\n checkout: z.object({\n fee: z.number().int().describe(\"Fee amount in cents.\").nullable(),\n date: z.string().describe(\"Checkout timestamp (ISO 8601).\").nullable(),\n token: z.string().describe(\"Checkout token.\").nullable(),\n total: z.number().int().describe(\"Total amount in cents.\").nullable(),\n subtotal: z.number().int().describe(\"Subtotal in cents.\").nullable(),\n amount_due: z.number().int().describe(\"Amount due in cents.\").nullable(),\n coupon_code: z.string().describe(\"Applied coupon code.\").nullable().optional(),\n coupon_amount: z.number().int().describe(\"Coupon amount in cents.\").nullable(),\n upfront_amount: z.number().int().describe(\"Upfront amount charged in cents.\").nullable().optional(),\n trial_period_days: z.number().int().describe(\"Trial period days if trial is applied.\").nullable().optional(),\n}).describe(\"Checkout details for the customer.\"),\n discount: z.object({\n coupon: z.object({\n code: z.string().describe(\"Coupon code.\").nullable(),\n currency: z.string().describe(\"Currency for the amount_off, e.g., 'USD'.\").nullable().optional(),\n duration: z.string().describe(\"Duration of the coupon, e.g., 'once'.\").nullable(),\n redeem_by: z.string().describe(\"ISO 8601 date when the coupon expires.\").nullable().optional(),\n amount_off: z.number().int().describe(\"Amount off in cents.\").nullable().optional(),\n percent_off: z.number().int().describe(\"Percent off for the coupon.\").nullable().optional(),\n max_redemptions: z.number().int().describe(\"Maximum number of redemptions allowed by the coupon.\").nullable().optional(),\n duration_in_months: z.number().int().describe(\"Number of months the coupon is valid for (if applicable).\").nullable().optional(),\n}).describe(\"Coupon applied to the customer.\"),\n ends_at: z.string().describe(\"Discount end date (ISO 8601).\").nullable().optional(),\n starts_at: z.string().describe(\"Discount start date (ISO 8601).\").nullable().optional(),\n}).describe(\"Discount details including coupon and validity.\").nullable().optional(),\n custom_id: z.string().describe(\"Custom ID set via integration.\").nullable().optional(),\n delinquent: z.boolean().describe(\"Whether the customer is delinquent.\").nullable(),\n subscription: z.object({\n id: z.number().int().describe(\"Subscription ID.\").nullable(),\n plan: z.object({\n id: z.number().int().describe(\"Plan ID.\").nullable(),\n amount: z.number().int().describe(\"Amount in cents.\").nullable(),\n currency: z.string().describe(\"Currency code, e.g., 'USD'.\").nullable(),\n interval: z.string().describe(\"Billing interval, e.g., 'month'.\").nullable(),\n interval_count: z.number().int().describe(\"Interval count, e.g., 1 for monthly.\").nullable(),\n plan_reference: z.string().describe(\"Plan reference ID.\").nullable(),\n amount_description: z.string().describe(\"Description of the amount option.\").nullable(),\n}).describe(\"Associated plan details.\"),\n start: z.string().describe(\"Subscription start timestamp (ISO 8601).\").nullable(),\n status: z.string().describe(\"Subscription status.\").nullable(),\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).\").nullable(),\n current_period_start: z.string().describe(\"Start of current period (ISO 8601).\").nullable(),\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).\").nullable(),\n subscription_reference: z.string().describe(\"Subscription reference ID.\").nullable(),\n}).describe(\"Subscription details for the customer.\").nullable().optional(),\n custom_fields: z.record(z.string(), z.unknown()).describe(\"Custom field responses keyed by field name.\").nullable().optional(),\n management_url: z.string().describe(\"URL for managing the subscription in MoonClerk UI.\").nullable().optional(),\n payment_method: z.object({\n type: z.string().describe(\"Payment method type, e.g., 'card'.\").nullable(),\n brand: z.string().describe(\"Card brand, e.g., 'Visa'.\").nullable(),\n last4: z.string().describe(\"Last 4 digits of the card.\").nullable(),\n exp_year: z.number().int().describe(\"Card expiration year.\").nullable(),\n exp_month: z.number().int().describe(\"Card expiration month.\").nullable(),\n}).describe(\"Payment method details.\").nullable().optional(),\n account_balance: z.number().int().describe(\"Account balance in cents.\").nullable(),\n customer_reference: z.string().describe(\"Stripe customer ID reference.\").nullable().optional(),\n}).passthrough().describe(\"Customer object representing a MoonClerk customer (Plan in UI).\")).describe(\"List of customer objects.\"),\n}).describe(\"Data from the action execution\");\n\nexport const moonclerkListCustomers = action(\"MOONCLERK_LIST_CUSTOMERS\", {\n slug: \"moonclerk-list-customers\",\n name: \"List Customers\",\n description: \"Tool to list customers (plans) from MoonClerk. Use when you need to retrieve customer data with optional filters. Use after authenticating API credentials.\",\n input: MoonclerkListCustomersInput,\n output: MoonclerkListCustomersOutput,\n});\n"],"mappings":";;AAqFA,MAAa,yBAAyB,OAAO,4BAA4B;CACvE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OArFyC,EAAE,OAAO;EAClD,QAAQ,EAAE,KAAK;GAAC;GAAU;GAAY;GAAW;GAAY;GAAW;EAAQ,CAAC,CAAC,CAAC,SAAS,gCAAg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AC,SAAS;EAC7H,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC9G,gBAAgB,EAAE,OAAO;GACzB,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;GACzE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;GACjE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;GAClE,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;GACtE,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;EAC1E,CAAC,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACzD,iBAAiB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;EACjF,oBAAoB,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,CAAC,SAAS,2BAA2B,EAClI,CAAC,CAAC,CAAC,SAAS,gCAOF;AACV,CAAC"}
@@ -30,7 +30,7 @@ const MoonclerkListDiscountsOutput = zod.z.object({ discounts: zod.z.array(zod.z
30
30
  ends_at: zod.z.string().describe("ISO 8601 timestamp when the discount ends.").nullable().optional(),
31
31
  starts_at: zod.z.string().describe("ISO 8601 timestamp when the discount starts.").nullable().optional(),
32
32
  customer_id: zod.z.number().int().describe("ID of the customer with this discount.").nullable()
33
- }).describe("Represents a discount applied to a customer.")).describe("List of discount entries.") }).describe("Data from the action execution");
33
+ }).passthrough().describe("Represents a discount applied to a customer.")).describe("List of discount entries.") }).describe("Data from the action execution");
34
34
  const moonclerkListDiscounts = require_action.action("MOONCLERK_LIST_DISCOUNTS", {
35
35
  slug: "moonclerk-list-discounts",
36
36
  name: "List Discounts",
@@ -1 +1 @@
1
- {"version":3,"file":"list-discounts.cjs","names":["z","action"],"sources":["../../src/actions/list-discounts.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoonclerkListDiscountsInput = z.object({\n status: z.enum([\"active\", \"canceled\", \"expired\", \"past_due\", \"pending\", \"unpaid\"]).describe(\"Filter by subscription status.\").optional(),\n form_id: z.number().int().describe(\"Filter discounts by associated MoonClerk form ID.\").optional(),\n checkout_to: z.string().describe(\"Filter customers created on or before this date (YYYY-MM-DD).\").optional(),\n checkout_from: z.string().describe(\"Filter customers created on or after this date (YYYY-MM-DD).\").optional(),\n next_payment_to: z.string().describe(\"Filter subscriptions due to bill on or before this date (YYYY-MM-DD).\").optional(),\n next_payment_from: z.string().describe(\"Filter subscriptions due to bill on or after this date (YYYY-MM-DD).\").optional(),\n}).describe(\"Optional filters for listing discounts via customers endpoint.\");\nexport const MoonclerkListDiscountsOutput = z.object({\n discounts: z.array(z.object({\n coupon: z.object({\n code: z.string().describe(\"Coupon code.\").nullable(),\n currency: z.string().describe(\"Currency code for amount_off, e.g., 'USD'.\").nullable().optional(),\n duration: z.string().describe(\"Duration of the coupon, e.g., 'once' or 'repeating'.\").nullable(),\n redeem_by: z.string().describe(\"ISO 8601 date by which the coupon must be redeemed.\").nullable().optional(),\n amount_off: z.number().int().describe(\"Amount off in cents (nullable if percent_off is used).\").nullable().optional(),\n percent_off: z.number().int().describe(\"Percentage off for the coupon (nullable if amount_off is used).\").nullable().optional(),\n max_redemptions: z.number().int().describe(\"Maximum number of redemptions allowed by the coupon.\").nullable().optional(),\n duration_in_months: z.number().int().describe(\"Number of months the coupon is valid for (for repeating coupons).\").nullable().optional(),\n}).describe(\"Details of the coupon applied.\"),\n ends_at: z.string().describe(\"ISO 8601 timestamp when the discount ends.\").nullable().optional(),\n starts_at: z.string().describe(\"ISO 8601 timestamp when the discount starts.\").nullable().optional(),\n customer_id: z.number().int().describe(\"ID of the customer with this discount.\").nullable(),\n}).describe(\"Represents a discount applied to a customer.\")).describe(\"List of discount entries.\"),\n}).describe(\"Data from the action execution\");\n\nexport const moonclerkListDiscounts = action(\"MOONCLERK_LIST_DISCOUNTS\", {\n slug: \"moonclerk-list-discounts\",\n name: \"List Discounts\",\n description: \"Tool to retrieve a list of all discounts applied to customers. Use after authenticating API credentials.\",\n input: MoonclerkListDiscountsInput,\n output: MoonclerkListDiscountsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,QAAQA,IAAAA,EAAE,KAAK;EAAC;EAAU;EAAY;EAAW;EAAY;EAAW;CAAQ,CAAC,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CACvI,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;CACjG,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS;CAC3G,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;CAC5G,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,gEAAgE;AAC5E,MAAa,+BAA+BA,IAAAA,EAAE,OAAO,EACnD,WAAWA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;CAC5B,QAAQA,IAAAA,EAAE,OAAO;EACjB,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,cAAc,CAAC,CAAC,SAAS;EACnD,UAAU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ACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"list-discounts.cjs","names":["z","action"],"sources":["../../src/actions/list-discounts.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoonclerkListDiscountsInput = z.object({\n status: z.enum([\"active\", \"canceled\", \"expired\", \"past_due\", \"pending\", \"unpaid\"]).describe(\"Filter by subscription status.\").optional(),\n form_id: z.number().int().describe(\"Filter discounts by associated MoonClerk form ID.\").optional(),\n checkout_to: z.string().describe(\"Filter customers created on or before this date (YYYY-MM-DD).\").optional(),\n checkout_from: z.string().describe(\"Filter customers created on or after this date (YYYY-MM-DD).\").optional(),\n next_payment_to: z.string().describe(\"Filter subscriptions due to bill on or before this date (YYYY-MM-DD).\").optional(),\n next_payment_from: z.string().describe(\"Filter subscriptions due to bill on or after this date (YYYY-MM-DD).\").optional(),\n}).describe(\"Optional filters for listing discounts via customers endpoint.\");\nexport const MoonclerkListDiscountsOutput = z.object({\n discounts: z.array(z.object({\n coupon: z.object({\n code: z.string().describe(\"Coupon code.\").nullable(),\n currency: z.string().describe(\"Currency code for amount_off, e.g., 'USD'.\").nullable().optional(),\n duration: z.string().describe(\"Duration of the coupon, e.g., 'once' or 'repeating'.\").nullable(),\n redeem_by: z.string().describe(\"ISO 8601 date by which the coupon must be redeemed.\").nullable().optional(),\n amount_off: z.number().int().describe(\"Amount off in cents (nullable if percent_off is used).\").nullable().optional(),\n percent_off: z.number().int().describe(\"Percentage off for the coupon (nullable if amount_off is used).\").nullable().optional(),\n max_redemptions: z.number().int().describe(\"Maximum number of redemptions allowed by the coupon.\").nullable().optional(),\n duration_in_months: z.number().int().describe(\"Number of months the coupon is valid for (for repeating coupons).\").nullable().optional(),\n}).describe(\"Details of the coupon applied.\"),\n ends_at: z.string().describe(\"ISO 8601 timestamp when the discount ends.\").nullable().optional(),\n starts_at: z.string().describe(\"ISO 8601 timestamp when the discount starts.\").nullable().optional(),\n customer_id: z.number().int().describe(\"ID of the customer with this discount.\").nullable(),\n}).passthrough().describe(\"Represents a discount applied to a customer.\")).describe(\"List of discount entries.\"),\n}).describe(\"Data from the action execution\");\n\nexport const moonclerkListDiscounts = action(\"MOONCLERK_LIST_DISCOUNTS\", {\n slug: \"moonclerk-list-discounts\",\n name: \"List Discounts\",\n description: \"Tool to retrieve a list of all discounts applied to customers. Use after authenticating API credentials.\",\n input: MoonclerkListDiscountsInput,\n output: MoonclerkListDiscountsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,QAAQA,IAAAA,EAAE,KAAK;EAAC;EAAU;EAAY;EAAW;EAAY;EAAW;CAAQ,CAAC,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CACvI,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;CACjG,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS;CAC3G,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;CAC5G,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,gEAAgE;AAC5E,MAAa,+BAA+BA,IAAAA,EAAE,OAAO,EACnD,WAAWA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;CAC5B,QAAQA,IAAAA,EAAE,OAAO;EACjB,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,cAAc,CAAC,CAAC,SAAS;EACnD,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChG,UAAUA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z.ZodObject<{
31
31
  ends_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
32
32
  starts_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
33
33
  customer_id: z.ZodNullable<z.ZodNumber>;
34
- }, z.core.$strip>>;
34
+ }, z.core.$loose>>;
35
35
  }, z.core.$strip>;
36
36
  declare const moonclerkListDiscounts: import("@keystrokehq/action").WorkflowActionDefinition<{
37
37
  status?: "active" | "canceled" | "expired" | "past_due" | "pending" | "unpaid" | undefined;
@@ -31,7 +31,7 @@ declare const MoonclerkListDiscountsOutput: z.ZodObject<{
31
31
  ends_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
32
32
  starts_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
33
33
  customer_id: z.ZodNullable<z.ZodNumber>;
34
- }, z.core.$strip>>;
34
+ }, z.core.$loose>>;
35
35
  }, z.core.$strip>;
36
36
  declare const moonclerkListDiscounts: import("@keystrokehq/action").WorkflowActionDefinition<{
37
37
  status?: "active" | "canceled" | "expired" | "past_due" | "pending" | "unpaid" | undefined;
@@ -33,7 +33,7 @@ const moonclerkListDiscounts = action("MOONCLERK_LIST_DISCOUNTS", {
33
33
  ends_at: z.string().describe("ISO 8601 timestamp when the discount ends.").nullable().optional(),
34
34
  starts_at: z.string().describe("ISO 8601 timestamp when the discount starts.").nullable().optional(),
35
35
  customer_id: z.number().int().describe("ID of the customer with this discount.").nullable()
36
- }).describe("Represents a discount applied to a customer.")).describe("List of discount entries.") }).describe("Data from the action execution")
36
+ }).passthrough().describe("Represents a discount applied to a customer.")).describe("List of discount entries.") }).describe("Data from the action execution")
37
37
  });
38
38
  //#endregion
39
39
  export { moonclerkListDiscounts };
@@ -1 +1 @@
1
- {"version":3,"file":"list-discounts.mjs","names":[],"sources":["../../src/actions/list-discounts.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoonclerkListDiscountsInput = z.object({\n status: z.enum([\"active\", \"canceled\", \"expired\", \"past_due\", \"pending\", \"unpaid\"]).describe(\"Filter by subscription status.\").optional(),\n form_id: z.number().int().describe(\"Filter discounts by associated MoonClerk form ID.\").optional(),\n checkout_to: z.string().describe(\"Filter customers created on or before this date (YYYY-MM-DD).\").optional(),\n checkout_from: z.string().describe(\"Filter customers created on or after this date (YYYY-MM-DD).\").optional(),\n next_payment_to: z.string().describe(\"Filter subscriptions due to bill on or before this date (YYYY-MM-DD).\").optional(),\n next_payment_from: z.string().describe(\"Filter subscriptions due to bill on or after this date (YYYY-MM-DD).\").optional(),\n}).describe(\"Optional filters for listing discounts via customers endpoint.\");\nexport const MoonclerkListDiscountsOutput = z.object({\n discounts: z.array(z.object({\n coupon: z.object({\n code: z.string().describe(\"Coupon code.\").nullable(),\n currency: z.string().describe(\"Currency code for amount_off, e.g., 'USD'.\").nullable().optional(),\n duration: z.string().describe(\"Duration of the coupon, e.g., 'once' or 'repeating'.\").nullable(),\n redeem_by: z.string().describe(\"ISO 8601 date by which the coupon must be redeemed.\").nullable().optional(),\n amount_off: z.number().int().describe(\"Amount off in cents (nullable if percent_off is used).\").nullable().optional(),\n percent_off: z.number().int().describe(\"Percentage off for the coupon (nullable if amount_off is used).\").nullable().optional(),\n max_redemptions: z.number().int().describe(\"Maximum number of redemptions allowed by the coupon.\").nullable().optional(),\n duration_in_months: z.number().int().describe(\"Number of months the coupon is valid for (for repeating coupons).\").nullable().optional(),\n}).describe(\"Details of the coupon applied.\"),\n ends_at: z.string().describe(\"ISO 8601 timestamp when the discount ends.\").nullable().optional(),\n starts_at: z.string().describe(\"ISO 8601 timestamp when the discount starts.\").nullable().optional(),\n customer_id: z.number().int().describe(\"ID of the customer with this discount.\").nullable(),\n}).describe(\"Represents a discount applied to a customer.\")).describe(\"List of discount entries.\"),\n}).describe(\"Data from the action execution\");\n\nexport const moonclerkListDiscounts = action(\"MOONCLERK_LIST_DISCOUNTS\", {\n slug: \"moonclerk-list-discounts\",\n name: \"List Discounts\",\n description: \"Tool to retrieve a list of all discounts applied to customers. Use after authenticating API credentials.\",\n input: MoonclerkListDiscountsInput,\n output: MoonclerkListDiscountsOutput,\n});\n"],"mappings":";;AA8BA,MAAa,yBAAyB,OAAO,4BAA4B;CACvE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OA9ByC,EAAE,OAAO;EAClD,QAAQ,EAAE,KAAK;GAAC;GAAU;GAAY;GAAW;GAAY;GAAW;EAAQ,CAAC,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;EACvI,SAAS,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;EACjG,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS;EAC3G,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;EAC5G,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,gEAuBH;CACP,QAvB0C,EAAE,OAAO,EACnD,WAAW,EAAE,MAAM,EAAE,OAAO;EAC5B,QAAQ,EAAE,OAAO;GACjB,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,cAAc,CAAC,CAAC,SAAS;GACnD,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;GAChG,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;GAC/F,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;GAC1G,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;GACpH,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;GAC9H,iBAAiB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;GACvH,oBAAoB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACzI,CAAC,CAAC,CAAC,SAAS,gCAAgC;EAC1C,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC/F,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACnG,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CAC5F,CAAC,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,CAAC,SAAS,2BAA2B,EACjG,CAAC,CAAC,CAAC,SAAS,gCAOF;AACV,CAAC"}
1
+ {"version":3,"file":"list-discounts.mjs","names":[],"sources":["../../src/actions/list-discounts.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoonclerkListDiscountsInput = z.object({\n status: z.enum([\"active\", \"canceled\", \"expired\", \"past_due\", \"pending\", \"unpaid\"]).describe(\"Filter by subscription status.\").optional(),\n form_id: z.number().int().describe(\"Filter discounts by associated MoonClerk form ID.\").optional(),\n checkout_to: z.string().describe(\"Filter customers created on or before this date (YYYY-MM-DD).\").optional(),\n checkout_from: z.string().describe(\"Filter customers created on or after this date (YYYY-MM-DD).\").optional(),\n next_payment_to: z.string().describe(\"Filter subscriptions due to bill on or before this date (YYYY-MM-DD).\").optional(),\n next_payment_from: z.string().describe(\"Filter subscriptions due to bill on or after this date (YYYY-MM-DD).\").optional(),\n}).describe(\"Optional filters for listing discounts via customers endpoint.\");\nexport const MoonclerkListDiscountsOutput = z.object({\n discounts: z.array(z.object({\n coupon: z.object({\n code: z.string().describe(\"Coupon code.\").nullable(),\n currency: z.string().describe(\"Currency code for amount_off, e.g., 'USD'.\").nullable().optional(),\n duration: z.string().describe(\"Duration of the coupon, e.g., 'once' or 'repeating'.\").nullable(),\n redeem_by: z.string().describe(\"ISO 8601 date by which the coupon must be redeemed.\").nullable().optional(),\n amount_off: z.number().int().describe(\"Amount off in cents (nullable if percent_off is used).\").nullable().optional(),\n percent_off: z.number().int().describe(\"Percentage off for the coupon (nullable if amount_off is used).\").nullable().optional(),\n max_redemptions: z.number().int().describe(\"Maximum number of redemptions allowed by the coupon.\").nullable().optional(),\n duration_in_months: z.number().int().describe(\"Number of months the coupon is valid for (for repeating coupons).\").nullable().optional(),\n}).describe(\"Details of the coupon applied.\"),\n ends_at: z.string().describe(\"ISO 8601 timestamp when the discount ends.\").nullable().optional(),\n starts_at: z.string().describe(\"ISO 8601 timestamp when the discount starts.\").nullable().optional(),\n customer_id: z.number().int().describe(\"ID of the customer with this discount.\").nullable(),\n}).passthrough().describe(\"Represents a discount applied to a customer.\")).describe(\"List of discount entries.\"),\n}).describe(\"Data from the action execution\");\n\nexport const moonclerkListDiscounts = action(\"MOONCLERK_LIST_DISCOUNTS\", {\n slug: \"moonclerk-list-discounts\",\n name: \"List Discounts\",\n description: \"Tool to retrieve a list of all discounts applied to customers. Use after authenticating API credentials.\",\n input: MoonclerkListDiscountsInput,\n output: MoonclerkListDiscountsOutput,\n});\n"],"mappings":";;AA8BA,MAAa,yBAAyB,OAAO,4BAA4B;CACvE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OA9ByC,EAAE,OAAO;EAClD,QAAQ,EAAE,KAAK;GAAC;GAAU;GAAY;GAAW;GAAY;GAAW;EAAQ,CAAC,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;EACvI,SAAS,EAAE,OAAO,CAAC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gCAAgC;EAC1C,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC/F,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACnG,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CAC5F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,CAAC,SAAS,2BAA2B,EAC/G,CAAC,CAAC,CAAC,SAAS,gCAOF;AACV,CAAC"}
@@ -17,7 +17,7 @@ const MoonclerkListFormsOutput = zod.z.object({
17
17
  name: zod.z.string().describe("Name of the form").nullable(),
18
18
  created_at: zod.z.string().describe("Timestamp when the form was created").nullable(),
19
19
  updated_at: zod.z.string().describe("Timestamp when the form was last updated").nullable()
20
- }).describe("A representation of a MoonClerk payment form.")).describe("List of payment forms returned from MoonClerk API")
20
+ }).passthrough().describe("A representation of a MoonClerk payment form.")).describe("List of payment forms returned from MoonClerk API")
21
21
  }).describe("Data from the action execution");
22
22
  const moonclerkListForms = require_action.action("MOONCLERK_LIST_FORMS", {
23
23
  slug: "moonclerk-list-forms",
@@ -1 +1 @@
1
- {"version":3,"file":"list-forms.cjs","names":["z","action"],"sources":["../../src/actions/list-forms.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoonclerkListFormsInput = 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.object({\n meta: z.object({\n per_page: z.number().int().describe(\"Number of forms returned per page\").nullable(),\n total_count: z.number().int().describe(\"Total number of forms available\").nullable(),\n total_pages: z.number().int().describe(\"Total number of pages\").nullable(),\n current_page: z.number().int().describe(\"Current page number\").nullable(),\n}).describe(\"Pagination details for a paged list response.\").nullable().optional(),\n forms: z.array(z.object({\n id: z.string().describe(\"Unique identifier for the form\").nullable(),\n name: z.string().describe(\"Name of the form\").nullable(),\n created_at: z.string().describe(\"Timestamp when the form was created\").nullable(),\n updated_at: z.string().describe(\"Timestamp when the form was last updated\").nullable(),\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":";;;AAIA,MAAa,0BAA0BA,IAAAA,EAAE,OAAO;CAC9C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CACnF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;AAC3E,CAAC,CAAC,CAAC,SAAS,+CAA+C;AAC3D,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,MAAMA,IAAAA,EAAE,OAAO;EACf,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;EAClF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;EACnF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;EACzE,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;CAC1E,CAAC,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/E,OAAOA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;EACxB,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;EACnE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS;EACvD,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;EAChF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CACvF,CAAC,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,CAAC,SAAS,mDAAmD;AAC1H,CAAC,CAAC,CAAC,SAAS,gCAAgC;AAE5C,MAAa,qBAAqBC,eAAAA,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"list-forms.cjs","names":["z","action"],"sources":["../../src/actions/list-forms.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoonclerkListFormsInput = 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.object({\n meta: z.object({\n per_page: z.number().int().describe(\"Number of forms returned per page\").nullable(),\n total_count: z.number().int().describe(\"Total number of forms available\").nullable(),\n total_pages: z.number().int().describe(\"Total number of pages\").nullable(),\n current_page: z.number().int().describe(\"Current page number\").nullable(),\n}).describe(\"Pagination details for a paged list response.\").nullable().optional(),\n forms: z.array(z.object({\n id: z.string().describe(\"Unique identifier for the form\").nullable(),\n name: z.string().describe(\"Name of the form\").nullable(),\n created_at: z.string().describe(\"Timestamp when the form was created\").nullable(),\n updated_at: z.string().describe(\"Timestamp when the form was last updated\").nullable(),\n}).passthrough().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":";;;AAIA,MAAa,0BAA0BA,IAAAA,EAAE,OAAO;CAC9C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CACnF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;AAC3E,CAAC,CAAC,CAAC,SAAS,+CAA+C;AAC3D,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,MAAMA,IAAAA,EAAE,OAAO;EACf,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;EAClF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;EACnF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;EACzE,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;CAC1E,CAAC,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/E,OAAOA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;EACxB,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;EACnE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS;EACvD,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;EAChF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CACvF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,CAAC,SAAS,mDAAmD;AACxI,CAAC,CAAC,CAAC,SAAS,gCAAgC;AAE5C,MAAa,qBAAqBC,eAAAA,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -17,7 +17,7 @@ declare const MoonclerkListFormsOutput: z.ZodObject<{
17
17
  name: z.ZodNullable<z.ZodString>;
18
18
  created_at: z.ZodNullable<z.ZodString>;
19
19
  updated_at: z.ZodNullable<z.ZodString>;
20
- }, z.core.$strip>>;
20
+ }, z.core.$loose>>;
21
21
  }, z.core.$strip>;
22
22
  declare const moonclerkListForms: import("@keystrokehq/action").WorkflowActionDefinition<{
23
23
  page?: number | undefined;
@@ -17,7 +17,7 @@ declare const MoonclerkListFormsOutput: z.ZodObject<{
17
17
  name: z.ZodNullable<z.ZodString>;
18
18
  created_at: z.ZodNullable<z.ZodString>;
19
19
  updated_at: z.ZodNullable<z.ZodString>;
20
- }, z.core.$strip>>;
20
+ }, z.core.$loose>>;
21
21
  }, z.core.$strip>;
22
22
  declare const moonclerkListForms: import("@keystrokehq/action").WorkflowActionDefinition<{
23
23
  page?: number | undefined;
@@ -20,7 +20,7 @@ const moonclerkListForms = action("MOONCLERK_LIST_FORMS", {
20
20
  name: z.string().describe("Name of the form").nullable(),
21
21
  created_at: z.string().describe("Timestamp when the form was created").nullable(),
22
22
  updated_at: z.string().describe("Timestamp when the form was last updated").nullable()
23
- }).describe("A representation of a MoonClerk payment form.")).describe("List of payment forms returned from MoonClerk API")
23
+ }).passthrough().describe("A representation of a MoonClerk payment form.")).describe("List of payment forms returned from MoonClerk API")
24
24
  }).describe("Data from the action execution")
25
25
  });
26
26
  //#endregion
@@ -1 +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.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.object({\n meta: z.object({\n per_page: z.number().int().describe(\"Number of forms returned per page\").nullable(),\n total_count: z.number().int().describe(\"Total number of forms available\").nullable(),\n total_pages: z.number().int().describe(\"Total number of pages\").nullable(),\n current_page: z.number().int().describe(\"Current page number\").nullable(),\n}).describe(\"Pagination details for a paged list response.\").nullable().optional(),\n forms: z.array(z.object({\n id: z.string().describe(\"Unique identifier for the form\").nullable(),\n name: z.string().describe(\"Name of the form\").nullable(),\n created_at: z.string().describe(\"Timestamp when the form was created\").nullable(),\n updated_at: z.string().describe(\"Timestamp when the form was last updated\").nullable(),\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,OAvBqC,EAAE,OAAO;EAC9C,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,QApBsC,EAAE,OAAO;EAC/C,MAAM,EAAE,OAAO;GACf,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;GAClF,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;GACnF,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;GACzE,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;EAC1E,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,CAAC,CAAC,SAAS;GACnE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS;GACvD,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;GAChF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;EACvF,CAAC,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,CAAC,SAAS,mDAAmD;CAC1H,CAAC,CAAC,CAAC,SAAS,gCAOF;AACV,CAAC"}
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.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.object({\n meta: z.object({\n per_page: z.number().int().describe(\"Number of forms returned per page\").nullable(),\n total_count: z.number().int().describe(\"Total number of forms available\").nullable(),\n total_pages: z.number().int().describe(\"Total number of pages\").nullable(),\n current_page: z.number().int().describe(\"Current page number\").nullable(),\n}).describe(\"Pagination details for a paged list response.\").nullable().optional(),\n forms: z.array(z.object({\n id: z.string().describe(\"Unique identifier for the form\").nullable(),\n name: z.string().describe(\"Name of the form\").nullable(),\n created_at: z.string().describe(\"Timestamp when the form was created\").nullable(),\n updated_at: z.string().describe(\"Timestamp when the form was last updated\").nullable(),\n}).passthrough().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,OAvBqC,EAAE,OAAO;EAC9C,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,QApBsC,EAAE,OAAO;EAC/C,MAAM,EAAE,OAAO;GACf,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;GAClF,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;GACnF,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;GACzE,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;EAC1E,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,CAAC,CAAC,SAAS;GACnE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS;GACvD,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;GAChF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;EACvF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,CAAC,SAAS,mDAAmD;CACxI,CAAC,CAAC,CAAC,SAAS,gCAOF;AACV,CAAC"}
@@ -50,7 +50,7 @@ const MoonclerkListPaymentsOutput = zod.z.object({ payments: zod.z.array(zod.z.o
50
50
  currency: zod.z.string().describe("Currency code, e.g., USD").nullable(),
51
51
  custom_id: zod.z.string().describe("Custom identifier passed during integration").nullable().optional(),
52
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(),
53
+ custom_fields: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Mapping of custom field keys to values").nullable().optional(),
54
54
  payment_method: zod.z.object({
55
55
  type: zod.z.string().describe("Payment method type, e.g., card").nullable(),
56
56
  brand: zod.z.string().describe("Brand of the card, e.g., Visa").nullable(),
@@ -61,7 +61,7 @@ const MoonclerkListPaymentsOutput = zod.z.object({ payments: zod.z.array(zod.z.o
61
61
  invoice_reference: zod.z.string().describe("Stripe invoice reference if applicable").nullable().optional(),
62
62
  amount_description: zod.z.string().describe("Description of the payment amount option").nullable().optional(),
63
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");
64
+ }).passthrough()).describe("List of payments matching the filters") }).describe("Data from the action execution");
65
65
  const moonclerkListPayments = require_action.action("MOONCLERK_LIST_PAYMENTS", {
66
66
  slug: "moonclerk-list-payments",
67
67
  name: "List Payments",
@@ -1 +1 @@
1
- {"version":3,"file":"list-payments.cjs","names":["z","action"],"sources":["../../src/actions/list-payments.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoonclerkListPaymentsInput = 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.object({\n payments: z.array(z.object({\n id: z.number().int().describe(\"Unique payment identifier\").nullable(),\n fee: z.number().int().describe(\"Stripe fee in cents\").nullable(),\n date: z.string().describe(\"Payment date in UTC ISO 8601 format\").nullable(),\n name: z.string().describe(\"Payer's name\").nullable(),\n email: z.string().describe(\"Payer's email address\").nullable(),\n amount: z.number().int().describe(\"Payment amount in cents\").nullable(),\n coupon: z.object({\n code: z.string().describe(\"Coupon code\").nullable(),\n currency: z.string().describe(\"Currency of the coupon\").nullable(),\n duration: z.string().describe(\"Duration of the coupon, e.g., once\").nullable(),\n redeem_by: z.string().describe(\"Coupon redemption deadline (UTC date)\").nullable().optional(),\n amount_off: z.number().int().describe(\"Amount off in cents\").nullable(),\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\").nullable().optional(),\n status: z.enum([\"successful\", \"refunded\", \"failed\"]).describe(\"Payment status\").nullable(),\n form_id: z.number().int().describe(\"MoonClerk form ID that generated the payment\").nullable(),\n checkout: z.object({\n fee: z.number().int().describe(\"Stripe fee in cents\").nullable(),\n date: z.string().describe(\"Checkout date in UTC ISO 8601 format\").nullable(),\n token: z.string().describe(\"Checkout token\").nullable(),\n total: z.number().int().describe(\"Total amount in cents\").nullable(),\n subtotal: z.number().int().describe(\"Subtotal in cents before fees and coupons\").nullable(),\n amount_due: z.number().int().describe(\"Amount due in cents\").nullable(),\n coupon_code: z.string().describe(\"Applied coupon code\").nullable(),\n coupon_amount: z.number().int().describe(\"Coupon amount in cents\").nullable(),\n upfront_amount: z.number().int().describe(\"Upfront amount in cents\").nullable(),\n trial_period_days: z.number().int().describe(\"Number of trial days if applicable\").nullable().optional(),\n}).describe(\"Checkout details for one-time checkouts\").nullable().optional(),\n currency: z.string().describe(\"Currency code, e.g., USD\").nullable(),\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\").nullable(),\n brand: z.string().describe(\"Brand of the card, e.g., Visa\").nullable(),\n last4: z.string().describe(\"Last 4 digits of the card\").nullable(),\n}).describe(\"Payment method details\"),\n amount_refunded: z.number().int().describe(\"Total refunded amount in cents\").nullable(),\n charge_reference: z.string().describe(\"Stripe charge reference\").nullable(),\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,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,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,8BAA8BA,IAAAA,EAAE,OAAO,EAClD,UAAUA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;CAC3B,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CACpE,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;CAC/D,MAAMA,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eAAAA,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"list-payments.cjs","names":["z","action"],"sources":["../../src/actions/list-payments.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoonclerkListPaymentsInput = 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.object({\n payments: z.array(z.object({\n id: z.number().int().describe(\"Unique payment identifier\").nullable(),\n fee: z.number().int().describe(\"Stripe fee in cents\").nullable(),\n date: z.string().describe(\"Payment date in UTC ISO 8601 format\").nullable(),\n name: z.string().describe(\"Payer's name\").nullable(),\n email: z.string().describe(\"Payer's email address\").nullable(),\n amount: z.number().int().describe(\"Payment amount in cents\").nullable(),\n coupon: z.object({\n code: z.string().describe(\"Coupon code\").nullable(),\n currency: z.string().describe(\"Currency of the coupon\").nullable(),\n duration: z.string().describe(\"Duration of the coupon, e.g., once\").nullable(),\n redeem_by: z.string().describe(\"Coupon redemption deadline (UTC date)\").nullable().optional(),\n amount_off: z.number().int().describe(\"Amount off in cents\").nullable(),\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\").nullable().optional(),\n status: z.enum([\"successful\", \"refunded\", \"failed\"]).describe(\"Payment status\").nullable(),\n form_id: z.number().int().describe(\"MoonClerk form ID that generated the payment\").nullable(),\n checkout: z.object({\n fee: z.number().int().describe(\"Stripe fee in cents\").nullable(),\n date: z.string().describe(\"Checkout date in UTC ISO 8601 format\").nullable(),\n token: z.string().describe(\"Checkout token\").nullable(),\n total: z.number().int().describe(\"Total amount in cents\").nullable(),\n subtotal: z.number().int().describe(\"Subtotal in cents before fees and coupons\").nullable(),\n amount_due: z.number().int().describe(\"Amount due in cents\").nullable(),\n coupon_code: z.string().describe(\"Applied coupon code\").nullable(),\n coupon_amount: z.number().int().describe(\"Coupon amount in cents\").nullable(),\n upfront_amount: z.number().int().describe(\"Upfront amount in cents\").nullable(),\n trial_period_days: z.number().int().describe(\"Number of trial days if applicable\").nullable().optional(),\n}).describe(\"Checkout details for one-time checkouts\").nullable().optional(),\n currency: z.string().describe(\"Currency code, e.g., USD\").nullable(),\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.record(z.string(), z.unknown()).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\").nullable(),\n brand: z.string().describe(\"Brand of the card, e.g., Visa\").nullable(),\n last4: z.string().describe(\"Last 4 digits of the card\").nullable(),\n}).describe(\"Payment method details\"),\n amount_refunded: z.number().int().describe(\"Total refunded amount in cents\").nullable(),\n charge_reference: z.string().describe(\"Stripe charge reference\").nullable(),\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}).passthrough()).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,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,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,8BAA8BA,IAAAA,EAAE,OAAO,EAClD,UAAUA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;CAC3B,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CACpE,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;CAC/D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CAC1E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,cAAc,CAAC,CAAC,SAAS;CACnD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;CAC7D,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAA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Nullable<z.ZodString>>;
53
53
  customer_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
54
- custom_fields: z.ZodOptional<z.ZodNullable<z.ZodObject<{}, z.core.$strip>>>;
54
+ custom_fields: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
55
55
  payment_method: z.ZodObject<{
56
56
  type: z.ZodNullable<z.ZodString>;
57
57
  brand: z.ZodNullable<z.ZodString>;
@@ -62,7 +62,7 @@ declare const MoonclerkListPaymentsOutput: z.ZodObject<{
62
62
  invoice_reference: z.ZodOptional<z.ZodNullable<z.ZodString>>;
63
63
  amount_description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
64
64
  customer_reference: z.ZodOptional<z.ZodNullable<z.ZodString>>;
65
- }, z.core.$strip>>;
65
+ }, z.core.$loose>>;
66
66
  }, z.core.$strip>;
67
67
  declare const moonclerkListPayments: import("@keystrokehq/action").WorkflowActionDefinition<{
68
68
  status?: "successful" | "refunded" | "failed" | undefined;
@@ -51,7 +51,7 @@ declare const MoonclerkListPaymentsOutput: z.ZodObject<{
51
51
  currency: z.ZodNullable<z.ZodString>;
52
52
  custom_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
53
53
  customer_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
54
- custom_fields: z.ZodOptional<z.ZodNullable<z.ZodObject<{}, z.core.$strip>>>;
54
+ custom_fields: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
55
55
  payment_method: z.ZodObject<{
56
56
  type: z.ZodNullable<z.ZodString>;
57
57
  brand: z.ZodNullable<z.ZodString>;
@@ -62,7 +62,7 @@ declare const MoonclerkListPaymentsOutput: z.ZodObject<{
62
62
  invoice_reference: z.ZodOptional<z.ZodNullable<z.ZodString>>;
63
63
  amount_description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
64
64
  customer_reference: z.ZodOptional<z.ZodNullable<z.ZodString>>;
65
- }, z.core.$strip>>;
65
+ }, z.core.$loose>>;
66
66
  }, z.core.$strip>;
67
67
  declare const moonclerkListPayments: import("@keystrokehq/action").WorkflowActionDefinition<{
68
68
  status?: "successful" | "refunded" | "failed" | undefined;
@@ -53,7 +53,7 @@ const moonclerkListPayments = action("MOONCLERK_LIST_PAYMENTS", {
53
53
  currency: z.string().describe("Currency code, e.g., USD").nullable(),
54
54
  custom_id: z.string().describe("Custom identifier passed during integration").nullable().optional(),
55
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(),
56
+ custom_fields: z.record(z.string(), z.unknown()).describe("Mapping of custom field keys to values").nullable().optional(),
57
57
  payment_method: z.object({
58
58
  type: z.string().describe("Payment method type, e.g., card").nullable(),
59
59
  brand: z.string().describe("Brand of the card, e.g., Visa").nullable(),
@@ -64,7 +64,7 @@ const moonclerkListPayments = action("MOONCLERK_LIST_PAYMENTS", {
64
64
  invoice_reference: z.string().describe("Stripe invoice reference if applicable").nullable().optional(),
65
65
  amount_description: z.string().describe("Description of the payment amount option").nullable().optional(),
66
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")
67
+ }).passthrough()).describe("List of payments matching the filters") }).describe("Data from the action execution")
68
68
  });
69
69
  //#endregion
70
70
  export { moonclerkListPayments };
@@ -1 +1 @@
1
- {"version":3,"file":"list-payments.mjs","names":[],"sources":["../../src/actions/list-payments.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoonclerkListPaymentsInput = 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.object({\n payments: z.array(z.object({\n id: z.number().int().describe(\"Unique payment identifier\").nullable(),\n fee: z.number().int().describe(\"Stripe fee in cents\").nullable(),\n date: z.string().describe(\"Payment date in UTC ISO 8601 format\").nullable(),\n name: z.string().describe(\"Payer's name\").nullable(),\n email: z.string().describe(\"Payer's email address\").nullable(),\n amount: z.number().int().describe(\"Payment amount in cents\").nullable(),\n coupon: z.object({\n code: z.string().describe(\"Coupon code\").nullable(),\n currency: z.string().describe(\"Currency of the coupon\").nullable(),\n duration: z.string().describe(\"Duration of the coupon, e.g., once\").nullable(),\n redeem_by: z.string().describe(\"Coupon redemption deadline (UTC date)\").nullable().optional(),\n amount_off: z.number().int().describe(\"Amount off in cents\").nullable(),\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\").nullable().optional(),\n status: z.enum([\"successful\", \"refunded\", \"failed\"]).describe(\"Payment status\").nullable(),\n form_id: z.number().int().describe(\"MoonClerk form ID that generated the payment\").nullable(),\n checkout: z.object({\n fee: z.number().int().describe(\"Stripe fee in cents\").nullable(),\n date: z.string().describe(\"Checkout date in UTC ISO 8601 format\").nullable(),\n token: z.string().describe(\"Checkout token\").nullable(),\n total: z.number().int().describe(\"Total amount in cents\").nullable(),\n subtotal: z.number().int().describe(\"Subtotal in cents before fees and coupons\").nullable(),\n amount_due: z.number().int().describe(\"Amount due in cents\").nullable(),\n coupon_code: z.string().describe(\"Applied coupon code\").nullable(),\n coupon_amount: z.number().int().describe(\"Coupon amount in cents\").nullable(),\n upfront_amount: z.number().int().describe(\"Upfront amount in cents\").nullable(),\n trial_period_days: z.number().int().describe(\"Number of trial days if applicable\").nullable().optional(),\n}).describe(\"Checkout details for one-time checkouts\").nullable().optional(),\n currency: z.string().describe(\"Currency code, e.g., USD\").nullable(),\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\").nullable(),\n brand: z.string().describe(\"Brand of the card, e.g., Visa\").nullable(),\n last4: z.string().describe(\"Last 4 digits of the card\").nullable(),\n}).describe(\"Payment method details\"),\n amount_refunded: z.number().int().describe(\"Total refunded amount in cents\").nullable(),\n charge_reference: z.string().describe(\"Stripe charge reference\").nullable(),\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,OA5DwC,EAAE,OAAO;EACjD,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,m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AyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzG,CAAC,CAAC,CAAC,CAAC,SAAS,uCAAuC,EACpD,CAAC,CAAC,CAAC,SAAS,gCAOF;AACV,CAAC"}
1
+ {"version":3,"file":"list-payments.mjs","names":[],"sources":["../../src/actions/list-payments.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoonclerkListPaymentsInput = 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.object({\n payments: z.array(z.object({\n id: z.number().int().describe(\"Unique payment identifier\").nullable(),\n fee: z.number().int().describe(\"Stripe fee in cents\").nullable(),\n date: z.string().describe(\"Payment date in UTC ISO 8601 format\").nullable(),\n name: z.string().describe(\"Payer's name\").nullable(),\n email: z.string().describe(\"Payer's email address\").nullable(),\n amount: z.number().int().describe(\"Payment amount in cents\").nullable(),\n coupon: z.object({\n code: z.string().describe(\"Coupon code\").nullable(),\n currency: z.string().describe(\"Currency of the coupon\").nullable(),\n duration: z.string().describe(\"Duration of the coupon, e.g., once\").nullable(),\n redeem_by: z.string().describe(\"Coupon redemption deadline (UTC date)\").nullable().optional(),\n amount_off: z.number().int().describe(\"Amount off in cents\").nullable(),\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\").nullable().optional(),\n status: z.enum([\"successful\", \"refunded\", \"failed\"]).describe(\"Payment status\").nullable(),\n form_id: z.number().int().describe(\"MoonClerk form ID that generated the payment\").nullable(),\n checkout: z.object({\n fee: z.number().int().describe(\"Stripe fee in cents\").nullable(),\n date: z.string().describe(\"Checkout date in UTC ISO 8601 format\").nullable(),\n token: z.string().describe(\"Checkout token\").nullable(),\n total: z.number().int().describe(\"Total amount in cents\").nullable(),\n subtotal: z.number().int().describe(\"Subtotal in cents before fees and coupons\").nullable(),\n amount_due: z.number().int().describe(\"Amount due in cents\").nullable(),\n coupon_code: z.string().describe(\"Applied coupon code\").nullable(),\n coupon_amount: z.number().int().describe(\"Coupon amount in cents\").nullable(),\n upfront_amount: z.number().int().describe(\"Upfront amount in cents\").nullable(),\n trial_period_days: z.number().int().describe(\"Number of trial days if applicable\").nullable().optional(),\n}).describe(\"Checkout details for one-time checkouts\").nullable().optional(),\n currency: z.string().describe(\"Currency code, e.g., USD\").nullable(),\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.record(z.string(), z.unknown()).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\").nullable(),\n brand: z.string().describe(\"Brand of the card, e.g., Visa\").nullable(),\n last4: z.string().describe(\"Last 4 digits of the card\").nullable(),\n}).describe(\"Payment method details\"),\n amount_refunded: z.number().int().describe(\"Total refunded amount in cents\").nullable(),\n charge_reference: z.string().describe(\"Stripe charge reference\").nullable(),\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}).passthrough()).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,OA5DwC,EAAE,OAAO;EACjD,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,QAtDyC,EAAE,OAAO,EAClD,UAAU,EAAE,MAAM,EAAE,OAAO;EAC3B,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;EACpE,KAAK,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;EAC/D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;EAC1E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,cAAc,CAAC,CAAC,SAAS;EACnD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;EAC7D,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yBAAyB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AAS,+BAA+B,CAAC,CAAC,SAAS;GACrE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;EACnE,CAAC,CAAC,CAAC,SAAS,wBAAwB;EAClC,iBAAiB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;EACtF,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;EAC1E,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,YAAY,CAAC,CAAC,CAAC,SAAS,uCAAuC,EAClE,CAAC,CAAC,CAAC,SAAS,gCAOF;AACV,CAAC"}
@@ -38,7 +38,7 @@ const MoonclerkListSubscriptionsOutput = zod.z.object({ subscriptions: zod.z.arr
38
38
  next_payment_attempt: zod.z.string().describe("Next payment attempt timestamp (ISO 8601).").nullable().optional(),
39
39
  first_payment_attempt: zod.z.string().describe("First payment attempt timestamp (ISO 8601).").nullable(),
40
40
  subscription_reference: zod.z.string().describe("Subscription reference ID.").nullable()
41
- }).describe("Subscription details.")).describe("List of subscription objects.") }).describe("Data from the action execution");
41
+ }).passthrough().describe("Subscription details.")).describe("List of subscription objects.") }).describe("Data from the action execution");
42
42
  const moonclerkListSubscriptions = require_action.action("MOONCLERK_LIST_SUBSCRIPTIONS", {
43
43
  slug: "moonclerk-list-subscriptions",
44
44
  name: "List Subscriptions",
@@ -1 +1 @@
1
- {"version":3,"file":"list-subscriptions.cjs","names":["z","action"],"sources":["../../src/actions/list-subscriptions.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoonclerkListSubscriptionsInput = 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.object({\n subscriptions: z.array(z.object({\n id: z.number().int().describe(\"Subscription ID.\").nullable(),\n plan: z.object({\n id: z.number().int().describe(\"Plan ID.\").nullable(),\n amount: z.number().int().describe(\"Amount in cents.\").nullable(),\n currency: z.string().describe(\"Currency code, e.g., USD.\").nullable(),\n interval: z.string().describe(\"Billing interval, e.g., month.\").nullable(),\n interval_count: z.number().int().describe(\"Interval count, e.g., 1 for monthly.\").nullable(),\n plan_reference: z.string().describe(\"Plan reference ID.\").nullable(),\n amount_description: z.string().describe(\"Description of the amount option.\").nullable(),\n}).describe(\"Associated plan details.\"),\n start: z.string().describe(\"Subscription start timestamp (ISO 8601).\").nullable(),\n status: z.string().describe(\"Subscription status.\").nullable(),\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).\").nullable(),\n current_period_start: z.string().describe(\"Start of current period (ISO 8601).\").nullable(),\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).\").nullable(),\n subscription_reference: z.string().describe(\"Subscription reference ID.\").nullable(),\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,kCAAkCA,IAAAA,EAAE,OAAO;CACtD,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,mCAAmCA,IAAAA,EAAE,OAAO,EACvD,eAAeA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;CAChC,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS;CAC3D,MAAMA,IAAAA,EAAE,OAAO;EACf,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,UAAU,CAAC,CAAC,SAAS;EACnD,QAAQA,IAAAA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qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxG,oBAAoBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CACtF,sBAAsBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CAC1F,sBAAsBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5G,uBAAuBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CACnG,wBAAwBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;AACrF,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"}
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.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.object({\n subscriptions: z.array(z.object({\n id: z.number().int().describe(\"Subscription ID.\").nullable(),\n plan: z.object({\n id: z.number().int().describe(\"Plan ID.\").nullable(),\n amount: z.number().int().describe(\"Amount in cents.\").nullable(),\n currency: z.string().describe(\"Currency code, e.g., USD.\").nullable(),\n interval: z.string().describe(\"Billing interval, e.g., month.\").nullable(),\n interval_count: z.number().int().describe(\"Interval count, e.g., 1 for monthly.\").nullable(),\n plan_reference: z.string().describe(\"Plan reference ID.\").nullable(),\n amount_description: z.string().describe(\"Description of the amount option.\").nullable(),\n}).describe(\"Associated plan details.\"),\n start: z.string().describe(\"Subscription start timestamp (ISO 8601).\").nullable(),\n status: z.string().describe(\"Subscription status.\").nullable(),\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).\").nullable(),\n current_period_start: z.string().describe(\"Start of current period (ISO 8601).\").nullable(),\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).\").nullable(),\n subscription_reference: z.string().describe(\"Subscription reference ID.\").nullable(),\n}).passthrough().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":";;;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,SAAS;AACrF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,CAAC,SAAS,+BAA+B,EAC5F,CAAC,CAAC,CAAC,SAAS,gCAAgC;AAE5C,MAAa,6BAA6BC,eAAAA,OAAO,gCAAgC;CAC/E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -39,7 +39,7 @@ declare const MoonclerkListSubscriptionsOutput: z.ZodObject<{
39
39
  next_payment_attempt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
40
40
  first_payment_attempt: z.ZodNullable<z.ZodString>;
41
41
  subscription_reference: z.ZodNullable<z.ZodString>;
42
- }, z.core.$strip>>;
42
+ }, z.core.$loose>>;
43
43
  }, z.core.$strip>;
44
44
  declare const moonclerkListSubscriptions: import("@keystrokehq/action").WorkflowActionDefinition<{
45
45
  status?: "active" | "canceled" | "expired" | "past_due" | "pending" | "unpaid" | undefined;
@@ -39,7 +39,7 @@ declare const MoonclerkListSubscriptionsOutput: z.ZodObject<{
39
39
  next_payment_attempt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
40
40
  first_payment_attempt: z.ZodNullable<z.ZodString>;
41
41
  subscription_reference: z.ZodNullable<z.ZodString>;
42
- }, z.core.$strip>>;
42
+ }, z.core.$loose>>;
43
43
  }, z.core.$strip>;
44
44
  declare const moonclerkListSubscriptions: import("@keystrokehq/action").WorkflowActionDefinition<{
45
45
  status?: "active" | "canceled" | "expired" | "past_due" | "pending" | "unpaid" | undefined;
@@ -41,7 +41,7 @@ const moonclerkListSubscriptions = action("MOONCLERK_LIST_SUBSCRIPTIONS", {
41
41
  next_payment_attempt: z.string().describe("Next payment attempt timestamp (ISO 8601).").nullable().optional(),
42
42
  first_payment_attempt: z.string().describe("First payment attempt timestamp (ISO 8601).").nullable(),
43
43
  subscription_reference: z.string().describe("Subscription reference ID.").nullable()
44
- }).describe("Subscription details.")).describe("List of subscription objects.") }).describe("Data from the action execution")
44
+ }).passthrough().describe("Subscription details.")).describe("List of subscription objects.") }).describe("Data from the action execution")
45
45
  });
46
46
  //#endregion
47
47
  export { moonclerkListSubscriptions };
@@ -1 +1 @@
1
- {"version":3,"file":"list-subscriptions.mjs","names":[],"sources":["../../src/actions/list-subscriptions.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoonclerkListSubscriptionsInput = 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.object({\n subscriptions: z.array(z.object({\n id: z.number().int().describe(\"Subscription ID.\").nullable(),\n plan: z.object({\n id: z.number().int().describe(\"Plan ID.\").nullable(),\n amount: z.number().int().describe(\"Amount in cents.\").nullable(),\n currency: z.string().describe(\"Currency code, e.g., USD.\").nullable(),\n interval: z.string().describe(\"Billing interval, e.g., month.\").nullable(),\n interval_count: z.number().int().describe(\"Interval count, e.g., 1 for monthly.\").nullable(),\n plan_reference: z.string().describe(\"Plan reference ID.\").nullable(),\n amount_description: z.string().describe(\"Description of the amount option.\").nullable(),\n}).describe(\"Associated plan details.\"),\n start: z.string().describe(\"Subscription start timestamp (ISO 8601).\").nullable(),\n status: z.string().describe(\"Subscription status.\").nullable(),\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).\").nullable(),\n current_period_start: z.string().describe(\"Start of current period (ISO 8601).\").nullable(),\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).\").nullable(),\n subscription_reference: z.string().describe(\"Subscription reference ID.\").nullable(),\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,OAtC6C,EAAE,OAAO;EACtD,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,QAjC8C,EAAE,OAAO,EACvD,eAAe,EAAE,MAAM,EAAE,OAAO;EAChC,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,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B,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACxG,oBAAoB,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;EACtF,sBAAsB,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;EAC1F,sBAAsB,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC5G,uBAAuB,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;EACnG,wBAAwB,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CACrF,CAAC,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,CAAC,SAAS,+BAA+B,EAC9E,CAAC,CAAC,CAAC,SAAS,gCAOF;AACV,CAAC"}
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.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.object({\n subscriptions: z.array(z.object({\n id: z.number().int().describe(\"Subscription ID.\").nullable(),\n plan: z.object({\n id: z.number().int().describe(\"Plan ID.\").nullable(),\n amount: z.number().int().describe(\"Amount in cents.\").nullable(),\n currency: z.string().describe(\"Currency code, e.g., USD.\").nullable(),\n interval: z.string().describe(\"Billing interval, e.g., month.\").nullable(),\n interval_count: z.number().int().describe(\"Interval count, e.g., 1 for monthly.\").nullable(),\n plan_reference: z.string().describe(\"Plan reference ID.\").nullable(),\n amount_description: z.string().describe(\"Description of the amount option.\").nullable(),\n}).describe(\"Associated plan details.\"),\n start: z.string().describe(\"Subscription start timestamp (ISO 8601).\").nullable(),\n status: z.string().describe(\"Subscription status.\").nullable(),\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).\").nullable(),\n current_period_start: z.string().describe(\"Start of current period (ISO 8601).\").nullable(),\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).\").nullable(),\n subscription_reference: z.string().describe(\"Subscription reference ID.\").nullable(),\n}).passthrough().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,OAtC6C,EAAE,OAAO;EACtD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sBAAsB,CAAC,CAAC,SAAS;EAC7D,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1F,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACzF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACpF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC9F,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC7F,mBAAmB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACxG,oBAAoB,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;EACtF,sBAAsB,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;EAC1F,sBAAsB,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC5G,uBAAuB,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;EACnG,wBAAwB,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CACrF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,CAAC,SAAS,+BAA+B,EAC5F,CAAC,CAAC,CAAC,SAAS,gCAOF;AACV,CAAC"}
package/dist/catalog.cjs CHANGED
@@ -8,7 +8,7 @@ const moonclerkCatalog = {
8
8
  "logo": "https://logos.composio.dev/api/moonclerk",
9
9
  "authKind": "keystroke",
10
10
  "oauthScopes": [],
11
- "credentialFields": { "api_key": {
11
+ "credentialFields": { "generic_api_key": {
12
12
  "label": "MoonClerk API Key",
13
13
  "secret": true,
14
14
  "description": "The API key used for authenticating requests to the MoonClerk API."
@@ -1 +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 \"credentialFields\": {\n \"api_key\": {\n \"label\": \"MoonClerk API Key\",\n \"secret\": true,\n \"description\": \"The API key used for authenticating requests to the MoonClerk API.\"\n }\n },\n \"credentialScheme\": \"API_KEY\"\n} as const;\n"],"mappings":";;AACA,MAAa,mBAAmB;CAC9B,QAAQ;CACR,QAAQ;CACR,eAAe;CACf,YAAY;CACZ,QAAQ;CACR,YAAY;CACZ,eAAe,CAAC;CAChB,oBAAoB,EAClB,WAAW;EACT,SAAS;EACT,UAAU;EACV,eAAe;CACjB,EACF;CACA,oBAAoB;AACtB"}
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 \"credentialFields\": {\n \"generic_api_key\": {\n \"label\": \"MoonClerk API Key\",\n \"secret\": true,\n \"description\": \"The API key used for authenticating requests to the MoonClerk API.\"\n }\n },\n \"credentialScheme\": \"API_KEY\"\n} as const;\n"],"mappings":";;AACA,MAAa,mBAAmB;CAC9B,QAAQ;CACR,QAAQ;CACR,eAAe;CACf,YAAY;CACZ,QAAQ;CACR,YAAY;CACZ,eAAe,CAAC;CAChB,oBAAoB,EAClB,mBAAmB;EACjB,SAAS;EACT,UAAU;EACV,eAAe;CACjB,EACF;CACA,oBAAoB;AACtB"}
@@ -9,7 +9,7 @@ declare const moonclerkCatalog: {
9
9
  readonly authKind: "keystroke";
10
10
  readonly oauthScopes: readonly [];
11
11
  readonly credentialFields: {
12
- readonly api_key: {
12
+ readonly generic_api_key: {
13
13
  readonly label: "MoonClerk API Key";
14
14
  readonly secret: true;
15
15
  readonly description: "The API key used for authenticating requests to the MoonClerk API.";
@@ -9,7 +9,7 @@ declare const moonclerkCatalog: {
9
9
  readonly authKind: "keystroke";
10
10
  readonly oauthScopes: readonly [];
11
11
  readonly credentialFields: {
12
- readonly api_key: {
12
+ readonly generic_api_key: {
13
13
  readonly label: "MoonClerk API Key";
14
14
  readonly secret: true;
15
15
  readonly description: "The API key used for authenticating requests to the MoonClerk API.";
package/dist/catalog.mjs CHANGED
@@ -8,7 +8,7 @@ const moonclerkCatalog = {
8
8
  "logo": "https://logos.composio.dev/api/moonclerk",
9
9
  "authKind": "keystroke",
10
10
  "oauthScopes": [],
11
- "credentialFields": { "api_key": {
11
+ "credentialFields": { "generic_api_key": {
12
12
  "label": "MoonClerk API Key",
13
13
  "secret": true,
14
14
  "description": "The API key used for authenticating requests to the MoonClerk API."
@@ -1 +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 \"credentialFields\": {\n \"api_key\": {\n \"label\": \"MoonClerk API Key\",\n \"secret\": true,\n \"description\": \"The API key used for authenticating requests to the MoonClerk API.\"\n }\n },\n \"credentialScheme\": \"API_KEY\"\n} as const;\n"],"mappings":";;AACA,MAAa,mBAAmB;CAC9B,QAAQ;CACR,QAAQ;CACR,eAAe;CACf,YAAY;CACZ,QAAQ;CACR,YAAY;CACZ,eAAe,CAAC;CAChB,oBAAoB,EAClB,WAAW;EACT,SAAS;EACT,UAAU;EACV,eAAe;CACjB,EACF;CACA,oBAAoB;AACtB"}
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 \"credentialFields\": {\n \"generic_api_key\": {\n \"label\": \"MoonClerk API Key\",\n \"secret\": true,\n \"description\": \"The API key used for authenticating requests to the MoonClerk API.\"\n }\n },\n \"credentialScheme\": \"API_KEY\"\n} as const;\n"],"mappings":";;AACA,MAAa,mBAAmB;CAC9B,QAAQ;CACR,QAAQ;CACR,eAAe;CACf,YAAY;CACZ,QAAQ;CACR,YAAY;CACZ,eAAe,CAAC;CAChB,oBAAoB,EAClB,mBAAmB;EACjB,SAAS;EACT,UAAU;EACV,eAAe;CACjB,EACF;CACA,oBAAoB;AACtB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@keystrokehq/moonclerk",
3
- "version": "0.1.2",
3
+ "version": "0.1.4",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "registry": "https://registry.npmjs.org"