@usethrottle/mcp 0.3.0 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/mcp.js CHANGED
@@ -2679,7 +2679,9 @@ var LINE_RECURRING = {
2679
2679
  intervalUnit: S,
2680
2680
  intervalCount: S,
2681
2681
  totalPayments: S,
2682
- trialDays: S
2682
+ trialDays: S,
2683
+ // A custom installment schedule: amounts and gaps are numbers and unit tokens, no free text.
2684
+ schedule: [{ amount: S, intervalUnit: S, intervalCount: S }]
2683
2685
  };
2684
2686
  var LINE_ITEM = {
2685
2687
  id: S,
@@ -2691,7 +2693,7 @@ var LINE_ITEM = {
2691
2693
  taxAmount: S,
2692
2694
  total: S,
2693
2695
  // amount = renewal price on a trial line (whose unitPrice is 0); count = the old display mirror.
2694
- recurring: { ...LINE_RECURRING, amount: S, count: S },
2696
+ recurring: { ...LINE_RECURRING, amount: S, count: S, scheduleUnitTotal: S },
2695
2697
  subscriptionId: S
2696
2698
  };
2697
2699
  var ORDER = {
@@ -2798,6 +2800,18 @@ var SUBSCRIPTION = {
2798
2800
  pendingQuantity: S,
2799
2801
  pendingIntervalUnit: S,
2800
2802
  pendingIntervalCount: S,
2803
+ scheduleTotal: S,
2804
+ nextPaymentAmount: S,
2805
+ paymentSchedule: [{
2806
+ index: S,
2807
+ amount: S,
2808
+ discount: S,
2809
+ net: S,
2810
+ intervalUnit: S,
2811
+ intervalCount: S,
2812
+ status: S,
2813
+ dueAt: S
2814
+ }],
2801
2815
  createdAt: S
2802
2816
  };
2803
2817
  var QUOTE_SUMMARY = {
@@ -3020,7 +3034,9 @@ var OAUTH_PROJECTIONS = {
3020
3034
  trialDays: S,
3021
3035
  trialEndsAt: S,
3022
3036
  planChargedToday: S,
3023
- taxApplies: S
3037
+ taxApplies: S,
3038
+ scheduleGapUnits: [S],
3039
+ schedule: [{ net: S, dueAt: S }]
3024
3040
  }]
3025
3041
  },
3026
3042
  cart: section({
@@ -3162,7 +3178,7 @@ var OAUTH_PROJECTIONS = {
3162
3178
  };
3163
3179
 
3164
3180
  // src/server.ts
3165
- var VERSION = true ? "0.3.0" : "0.0.0-dev";
3181
+ var VERSION = true ? "0.4.0" : "0.0.0-dev";
3166
3182
  function registerableActions(policy) {
3167
3183
  const isProduction = policy.identity.environment.providerEnvironment === "production";
3168
3184
  return actionsForChannel("mcp").filter((action) => {