@shipstatic/ship 3.1.0 → 3.2.0-beta.1

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.
@@ -5,7 +5,7 @@ Their copyright notices travel with that copy, and are reproduced here in
5
5
  full. This file is GENERATED from the build's own metafile — edit the
6
6
  bundle, not this list.
7
7
 
8
- ## @shipstatic/types 3.1.0
8
+ ## @shipstatic/types 3.2.0-beta.1
9
9
 
10
10
  License: MIT
11
11
 
package/dist/browser.d.ts CHANGED
@@ -780,12 +780,10 @@ interface Account {
780
780
  /** User profile picture URL, null if not set */
781
781
  readonly picture: string | null;
782
782
  /**
783
- * The tier the account stands at. A sponsored account is Pro that nobody
784
- * bills, so it reports `pro` here with {@link billed} false; the grant
785
- * itself is the operator's fact, seen on the operator's surfaces and never
786
- * here. A console therefore treats a sponsored account exactly as a Pro one
787
- * everywhere, and the one difference it can see is the one that is real:
788
- * there is no Subscription.
783
+ * The plan the account is on, by its own name. A granted plan names
784
+ * itself: a sponsored account reports `sponsored` and a scale one `scale`,
785
+ * each with {@link billed} false. So a billed plan's name is a promise:
786
+ * `pro` or `team` here always means a Subscription bills the account.
789
787
  */
790
788
  readonly plan: AccountPlanType;
791
789
  /**
@@ -852,10 +850,12 @@ interface Account {
852
850
  readonly billed: boolean;
853
851
  /**
854
852
  * The next plan up the ladder this account could move to, or `null` when
855
- * there is none: the top billed tier, a plan sold by conversation, and any
856
- * plan not on the menu answer `null`. One server-side fact so that no surface derives "can this account
857
- * upgrade, and to what" from the menu — a grandfathered row has no menu
858
- * price to compare, and a conversation plan must never be sent to Checkout.
853
+ * there is none: the top billed tier and a plan sold by conversation answer
854
+ * `null`, and a plan below the ladder (free, sponsored) is offered its
855
+ * first sold row. One server-side fact so that no surface derives "can this
856
+ * account upgrade, and to what" from the menu — a grandfathered row has no
857
+ * menu price to compare, and a conversation plan must never be sent to
858
+ * Checkout.
859
859
  */
860
860
  readonly upgrade: AccountPlanType | null;
861
861
  /**
@@ -2364,6 +2364,13 @@ interface BillingPortalSession {
2364
2364
  */
2365
2365
  interface BillingSyncResponse {
2366
2366
  readonly plan: AccountPlanType;
2367
+ /**
2368
+ * Does Stripe bill that plan? The same fact as {@link Account.billed}, for
2369
+ * the plan named beside it. A purchase lands on a billed plan, so this is
2370
+ * what tells a Checkout arrival that the payment has landed: a plan that is
2371
+ * paid but granted (sponsored) is where the buyer stood before paying.
2372
+ */
2373
+ readonly billed: boolean;
2367
2374
  }
2368
2375
  /**
2369
2376
  * All activity event types logged in the system.