@odla-ai/chapter 0.54.2 → 0.56.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.
@@ -835,6 +835,21 @@ interface SubscriptionBillingTerms {
835
835
  initialTermEndsAt?: number;
836
836
  }
837
837
 
838
+ /** The optional recipient selected before the applicant consents to payment. */
839
+ interface CheckoutNamedSeatSelection {
840
+ recipientName: string;
841
+ recipientEmail: string;
842
+ }
843
+ /** Authority-owned provider allocation for the seat on the initial subscription. */
844
+ interface CheckoutNamedSeat extends CheckoutNamedSeatSelection {
845
+ purchaserEmail: string;
846
+ seatId: string;
847
+ membershipId: string;
848
+ recipientClaimId: string;
849
+ priceId: string;
850
+ amountCents: number;
851
+ }
852
+
838
853
  /** Per-tier policy overrides prevent a chapter-wide price claim leaking into another SKU. */
839
854
  interface TierPaymentPolicy {
840
855
  refundPolicyText: string;
@@ -931,6 +946,8 @@ interface MembershipOfferPreview {
931
946
  renewalCents: number;
932
947
  discountDuration?: "first_term" | "while_active";
933
948
  initialTermEndsAt?: number;
949
+ /** Current additional-member price, including zero for an included member. */
950
+ seatPriceCents?: number;
934
951
  }
935
952
 
936
953
  /** Server-owned source identity; the browser never supplies an offer or its price. */
@@ -966,11 +983,15 @@ interface MembershipCheckoutBindingInput extends MembershipQuoteTarget {
966
983
  offerDigest: string;
967
984
  quoteDigest: string;
968
985
  priceId: string;
986
+ namedSeat?: CheckoutNamedSeatSelection & {
987
+ purchaserEmail: string;
988
+ };
969
989
  }
970
- /** Content-free authority receipt. It does not mean paid, approved, or entitled. */
990
+ /** Frozen authority receipt, including any named recipient. It does not mean paid, approved, or entitled. */
971
991
  interface MembershipCheckoutBinding extends MembershipCheckoutBindingInput {
972
992
  id: string;
973
993
  boundAt: number;
994
+ namedSeat?: CheckoutNamedSeat;
974
995
  }
975
996
 
976
997
  /** References only. Money facts must already exist in the verified network Stripe event log. */
@@ -835,6 +835,21 @@ interface SubscriptionBillingTerms {
835
835
  initialTermEndsAt?: number;
836
836
  }
837
837
 
838
+ /** The optional recipient selected before the applicant consents to payment. */
839
+ interface CheckoutNamedSeatSelection {
840
+ recipientName: string;
841
+ recipientEmail: string;
842
+ }
843
+ /** Authority-owned provider allocation for the seat on the initial subscription. */
844
+ interface CheckoutNamedSeat extends CheckoutNamedSeatSelection {
845
+ purchaserEmail: string;
846
+ seatId: string;
847
+ membershipId: string;
848
+ recipientClaimId: string;
849
+ priceId: string;
850
+ amountCents: number;
851
+ }
852
+
838
853
  /** Per-tier policy overrides prevent a chapter-wide price claim leaking into another SKU. */
839
854
  interface TierPaymentPolicy {
840
855
  refundPolicyText: string;
@@ -931,6 +946,8 @@ interface MembershipOfferPreview {
931
946
  renewalCents: number;
932
947
  discountDuration?: "first_term" | "while_active";
933
948
  initialTermEndsAt?: number;
949
+ /** Current additional-member price, including zero for an included member. */
950
+ seatPriceCents?: number;
934
951
  }
935
952
 
936
953
  /** Server-owned source identity; the browser never supplies an offer or its price. */
@@ -966,11 +983,15 @@ interface MembershipCheckoutBindingInput extends MembershipQuoteTarget {
966
983
  offerDigest: string;
967
984
  quoteDigest: string;
968
985
  priceId: string;
986
+ namedSeat?: CheckoutNamedSeatSelection & {
987
+ purchaserEmail: string;
988
+ };
969
989
  }
970
- /** Content-free authority receipt. It does not mean paid, approved, or entitled. */
990
+ /** Frozen authority receipt, including any named recipient. It does not mean paid, approved, or entitled. */
971
991
  interface MembershipCheckoutBinding extends MembershipCheckoutBindingInput {
972
992
  id: string;
973
993
  boundAt: number;
994
+ namedSeat?: CheckoutNamedSeat;
974
995
  }
975
996
 
976
997
  /** References only. Money facts must already exist in the verified network Stripe event log. */