@solvapay/server 2.4.1 → 2.5.0-preview-4dcf60c628500a6210ba69edbf7ae56ee47fbb3a

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.
@@ -814,6 +814,12 @@ interface components {
814
814
  /** @description Whether the grant was recorded */
815
815
  success: boolean;
816
816
  };
817
+ LimitAutoRechargeDto: {
818
+ /** @description Whether auto-recharge is enabled for this provider */
819
+ enabled: boolean;
820
+ /** @description Stored auto-recharge status when a config exists */
821
+ status?: string;
822
+ };
817
823
  LimitBalanceDto: {
818
824
  /** @description Credit balance in credits (100 credits = 1 minor currency unit) */
819
825
  creditBalance: number;
@@ -826,6 +832,8 @@ interface components {
826
832
  LimitPlanItemDto: {
827
833
  /** @description Derived billing cycle */
828
834
  billingCycle?: string;
835
+ /** @description Deep link that opens hosted checkout with this plan preselected. Present only when a checkout session was minted for this response. */
836
+ checkoutUrl?: string;
829
837
  /**
830
838
  * @deprecated
831
839
  * @description Deprecated alias of perUnitChargeMinor. Same minor-units value — not credits. Prefer perUnitChargeMinor.
@@ -855,6 +863,8 @@ interface components {
855
863
  LimitResponse: {
856
864
  /** @description True when the customer must activate a priced default plan before usage is allowed */
857
865
  activationRequired?: boolean;
866
+ /** @description Per-provider auto-recharge snapshot read off the customer document. Omitted when no config exists. */
867
+ autoRecharge?: components['schemas']['LimitAutoRechargeDto'];
858
868
  /** @description Prepaid usage balance context when the default plan is usage-based */
859
869
  balance?: components['schemas']['LimitBalanceDto'];
860
870
  /**
@@ -875,9 +885,7 @@ interface components {
875
885
  creditsPerUnit?: number;
876
886
  /** @description ISO 4217 currency code for credit fields */
877
887
  currency?: string;
878
- /**
879
- * The effective finite cap for this meter. Present only when the backend measured a finite cap.
880
- */
888
+ /** @description The effective finite cap for this meter. Present only when the backend measured a finite cap. */
881
889
  limit?: number;
882
890
  /**
883
891
  * The meter name to use when tracking usage events
@@ -890,10 +898,21 @@ interface components {
890
898
  needsUpgrade?: boolean;
891
899
  /** @description Access is granted and usage beyond the included cap accrues an overage charge — `onExceed: charge`. */
892
900
  overage?: boolean;
901
+ /**
902
+ * Authoritative paywall classification shared with Managed MCP. Present on denial responses only.
903
+ * @enum {string}
904
+ */
905
+ paywallReason?: 'activation_required' | 'topup_required' | 'payment_required';
906
+ /** @description Display name of the active or default plan */
907
+ planName?: string;
908
+ /** @description Active plan reference when the customer already holds a purchase */
909
+ planRef?: string;
893
910
  /** @description Active plans on the product available for activation or checkout */
894
911
  plans?: components['schemas']['LimitPlanItemDto'][];
895
912
  /** @description Product the limit check applies to */
896
913
  product?: components['schemas']['LimitProductBriefDto'];
914
+ /** @description Active purchase reference when the customer already holds a purchase */
915
+ purchaseRef?: string;
897
916
  /**
898
917
  * Remaining usage units before hitting the limit. `-1` means unlimited (no finite cap).
899
918
  * @example 997
@@ -903,9 +922,7 @@ interface components {
903
922
  throttled?: boolean;
904
923
  /** @description The customer was auto-upgraded to the target pricing to restore access — `onExceed: auto_upgrade` succeeded. */
905
924
  upgraded?: boolean;
906
- /**
907
- * Consumed usage units this period. Present only when the backend measured a finite cap.
908
- */
925
+ /** @description Consumed usage units this period. Present only when the backend measured a finite cap. */
909
926
  used?: number;
910
927
  /**
911
928
  * Whether the customer is within their usage limits
@@ -814,6 +814,12 @@ interface components {
814
814
  /** @description Whether the grant was recorded */
815
815
  success: boolean;
816
816
  };
817
+ LimitAutoRechargeDto: {
818
+ /** @description Whether auto-recharge is enabled for this provider */
819
+ enabled: boolean;
820
+ /** @description Stored auto-recharge status when a config exists */
821
+ status?: string;
822
+ };
817
823
  LimitBalanceDto: {
818
824
  /** @description Credit balance in credits (100 credits = 1 minor currency unit) */
819
825
  creditBalance: number;
@@ -826,6 +832,8 @@ interface components {
826
832
  LimitPlanItemDto: {
827
833
  /** @description Derived billing cycle */
828
834
  billingCycle?: string;
835
+ /** @description Deep link that opens hosted checkout with this plan preselected. Present only when a checkout session was minted for this response. */
836
+ checkoutUrl?: string;
829
837
  /**
830
838
  * @deprecated
831
839
  * @description Deprecated alias of perUnitChargeMinor. Same minor-units value — not credits. Prefer perUnitChargeMinor.
@@ -855,6 +863,8 @@ interface components {
855
863
  LimitResponse: {
856
864
  /** @description True when the customer must activate a priced default plan before usage is allowed */
857
865
  activationRequired?: boolean;
866
+ /** @description Per-provider auto-recharge snapshot read off the customer document. Omitted when no config exists. */
867
+ autoRecharge?: components['schemas']['LimitAutoRechargeDto'];
858
868
  /** @description Prepaid usage balance context when the default plan is usage-based */
859
869
  balance?: components['schemas']['LimitBalanceDto'];
860
870
  /**
@@ -875,9 +885,7 @@ interface components {
875
885
  creditsPerUnit?: number;
876
886
  /** @description ISO 4217 currency code for credit fields */
877
887
  currency?: string;
878
- /**
879
- * The effective finite cap for this meter. Present only when the backend measured a finite cap.
880
- */
888
+ /** @description The effective finite cap for this meter. Present only when the backend measured a finite cap. */
881
889
  limit?: number;
882
890
  /**
883
891
  * The meter name to use when tracking usage events
@@ -890,10 +898,21 @@ interface components {
890
898
  needsUpgrade?: boolean;
891
899
  /** @description Access is granted and usage beyond the included cap accrues an overage charge — `onExceed: charge`. */
892
900
  overage?: boolean;
901
+ /**
902
+ * Authoritative paywall classification shared with Managed MCP. Present on denial responses only.
903
+ * @enum {string}
904
+ */
905
+ paywallReason?: 'activation_required' | 'topup_required' | 'payment_required';
906
+ /** @description Display name of the active or default plan */
907
+ planName?: string;
908
+ /** @description Active plan reference when the customer already holds a purchase */
909
+ planRef?: string;
893
910
  /** @description Active plans on the product available for activation or checkout */
894
911
  plans?: components['schemas']['LimitPlanItemDto'][];
895
912
  /** @description Product the limit check applies to */
896
913
  product?: components['schemas']['LimitProductBriefDto'];
914
+ /** @description Active purchase reference when the customer already holds a purchase */
915
+ purchaseRef?: string;
897
916
  /**
898
917
  * Remaining usage units before hitting the limit. `-1` means unlimited (no finite cap).
899
918
  * @example 997
@@ -903,9 +922,7 @@ interface components {
903
922
  throttled?: boolean;
904
923
  /** @description The customer was auto-upgraded to the target pricing to restore access — `onExceed: auto_upgrade` succeeded. */
905
924
  upgraded?: boolean;
906
- /**
907
- * Consumed usage units this period. Present only when the backend measured a finite cap.
908
- */
925
+ /** @description Consumed usage units this period. Present only when the backend measured a finite cap. */
909
926
  used?: number;
910
927
  /**
911
928
  * Whether the customer is within their usage limits