@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.
- package/README.md +32 -0
- package/dist/{chunk-SPEL4OGE.js → chunk-IQZWCG42.js} +581 -362
- package/dist/chunk-IQZWCG42.js.map +1 -0
- package/dist/index.cjs +522 -266
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +30 -3
- package/dist/index.d.ts +30 -3
- package/dist/index.js +518 -262
- package/dist/index.js.map +1 -1
- package/dist/ui/index.js +1 -1
- package/dist/ui/member/index.d.ts +12 -1
- package/dist/ui/member/index.js +1 -1
- package/dist/worker/index.cjs +1110 -616
- package/dist/worker/index.cjs.map +1 -1
- package/dist/worker/index.d.cts +22 -1
- package/dist/worker/index.d.ts +22 -1
- package/dist/worker/index.js +1103 -609
- package/dist/worker/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunk-SPEL4OGE.js.map +0 -1
package/dist/worker/index.d.cts
CHANGED
|
@@ -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
|
-
/**
|
|
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. */
|
package/dist/worker/index.d.ts
CHANGED
|
@@ -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
|
-
/**
|
|
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. */
|