@archildata/api-types 0.0.90 → 0.0.92

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.
Files changed (2) hide show
  1. package/index.d.ts +44 -4
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -1575,6 +1575,34 @@ export interface components {
1575
1575
  hasPendingUpdate: boolean;
1576
1576
  paymentHealth: components["schemas"]["BillingPaymentHealth"];
1577
1577
  actions: components["schemas"]["BillingSubscriptionActions"];
1578
+ /** @description Coupons running on the plan, such as a deal's free year of Team, with when each ends. */
1579
+ discounts?: components["schemas"]["BillingActiveDiscount"][];
1580
+ };
1581
+ BillingDiscountTerms: {
1582
+ /** @enum {string} */
1583
+ type: "fixed" | "percentage";
1584
+ /** @description Currency units off each invoice for fixed, percent off for percentage. */
1585
+ value: number;
1586
+ duration: {
1587
+ /**
1588
+ * @description once is the first invoice only.
1589
+ * @enum {string}
1590
+ */
1591
+ type: "once" | "months" | "forever";
1592
+ /** @description How many monthly invoices it covers, for months. */
1593
+ months?: number;
1594
+ };
1595
+ /** @description The discount takes off the whole of the plan's base fee as Autumn prices it, so the plan costs nothing while it runs. */
1596
+ coversBaseFee: boolean;
1597
+ };
1598
+ BillingActiveDiscount: components["schemas"]["BillingDiscountTerms"] & {
1599
+ rewardId: string;
1600
+ name: string;
1601
+ /**
1602
+ * Format: int64
1603
+ * @description When the discount stops applying, in Unix seconds; absent when it never ends.
1604
+ */
1605
+ endsAt?: number;
1578
1606
  };
1579
1607
  ApiResponse_BillingSubscription: {
1580
1608
  /** @example true */
@@ -1778,6 +1806,8 @@ export interface components {
1778
1806
  timing?: "immediate" | "period_end";
1779
1807
  /** @description Preview the purchase with the intro offer, as BillingSubscribeRequest. */
1780
1808
  introOffer?: boolean;
1809
+ /** @description Preview the purchase with this promo code, as BillingSubscribeRequest. Spends nothing. */
1810
+ code?: string;
1781
1811
  };
1782
1812
  BillingRedeemRequest: {
1783
1813
  /** @description The promo code, exactly as issued. */
@@ -1803,6 +1833,12 @@ export interface components {
1803
1833
  };
1804
1834
  /** @description The grant includes workspaces, so it is redeemed in a team workspace. */
1805
1835
  requiresWorkspace: boolean;
1836
+ /** @description The self-serve plans a coupon's code can buy, as the coupon lists them, each with what it takes off that plan; absent for a grant. */
1837
+ plans?: {
1838
+ /** @enum {string} */
1839
+ plan: "developer" | "team";
1840
+ discount: components["schemas"]["BillingDiscountTerms"];
1841
+ }[];
1806
1842
  };
1807
1843
  };
1808
1844
  ApiResponse_BillingRedeemResult: {
@@ -1826,6 +1862,8 @@ export interface components {
1826
1862
  setupIntentId?: string;
1827
1863
  /** @description Start Team with half off its first month, the sign-up path for accounts asking for Enterprise. Team only. Refused with intro_offer_unavailable once the account has paid money on an invoice; a $0 invoice, such as a trial's first, does not count. */
1828
1864
  introOffer?: boolean;
1865
+ /** @description A promo code for a discount on the plan, such as a deal's free year of Team. The purchase spends one of the code's uses. Refused with invalid_code when no discount has the code, not_a_discount for a code that grants features (redeem it instead), code_not_for_plan when the coupon does not list the plan, code_used_up when its uses are spent, code_unavailable on anything but a purchase, and payment_method_required without a card: the discount covers the fee, not usage billed after it. */
1866
+ code?: string;
1829
1867
  };
1830
1868
  BillingChangeRequest: {
1831
1869
  /** @enum {string} */
@@ -3559,13 +3597,15 @@ export interface components {
3559
3597
  * minutes), `allowance_insufficient` (the session's vCPU-hours or
3560
3598
  * GiB-hours, allocation × timeout, exceed what is left of the month's
3561
3599
  * allowance; `data` carries `feature`, `limit`, `remaining`,
3562
- * `requested` and `nextResetAt`) or `allowance_exhausted` (an
3563
- * allowance is used up). A timeout the caller did not choose is
3600
+ * `requested` and `nextResetAt`), `allowance_exhausted` (an
3601
+ * allowance is used up) or `concurrent_sandbox_limit_reached` (the
3602
+ * account already has as many sandboxes pending or running as the
3603
+ * plan allows; paused and stopped sandboxes do not count, and
3604
+ * `data.limit` is the cap). A timeout the caller did not choose is
3564
3605
  * lowered to fit the plan rather than refused; a fork is judged as
3565
3606
  * one launch of the source's shape, and the fitted timeout applies to
3566
3607
  * the child and to the resumed source alike. `data.upgradeUrl` is the
3567
- * console's billing page, and `remaining` is never below zero. Paid
3568
- * plans are never refused.
3608
+ * console's billing page, and `remaining` is never below zero.
3569
3609
  */
3570
3610
  SandboxPlanLimit: {
3571
3611
  headers: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@archildata/api-types",
3
- "version": "0.0.90",
3
+ "version": "0.0.92",
4
4
  "description": "Public API types for Archil",
5
5
  "type": "module",
6
6
  "types": "index.d.ts",