@archildata/api-types 0.0.91 → 0.0.93
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/index.d.ts +46 -0
- 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} */
|
|
@@ -2147,6 +2185,7 @@ export interface components {
|
|
|
2147
2185
|
sandbox_id: string;
|
|
2148
2186
|
/** @description Sandbox name. */
|
|
2149
2187
|
name: string;
|
|
2188
|
+
labels?: components["schemas"]["SandboxLabels"];
|
|
2150
2189
|
status: components["schemas"]["SandboxState"];
|
|
2151
2190
|
vcpu_count: number;
|
|
2152
2191
|
mem_size_mib: number;
|
|
@@ -2191,6 +2230,10 @@ export interface components {
|
|
|
2191
2230
|
*/
|
|
2192
2231
|
checkpoint?: string;
|
|
2193
2232
|
};
|
|
2233
|
+
/** @description Key-value labels set when the sandbox is created or forked, for finding it later. Keys and values are 1-63 letters, numbers, `.`, `_`, or `-`; keys starting with `archil.`, in any case, are reserved. */
|
|
2234
|
+
SandboxLabels: {
|
|
2235
|
+
[key: string]: string;
|
|
2236
|
+
};
|
|
2194
2237
|
SandboxMount: {
|
|
2195
2238
|
disk_id: string;
|
|
2196
2239
|
/** @description Absolute guest directory to mount at. Required when more than one disk is mounted; a sole mount defaults to /mnt/archil. Guest system directories (/usr, /etc, /var, /opt, ...) are reserved, and a disk can be mounted once per sandbox. */
|
|
@@ -2415,6 +2458,7 @@ export interface components {
|
|
|
2415
2458
|
env?: {
|
|
2416
2459
|
[key: string]: string;
|
|
2417
2460
|
};
|
|
2461
|
+
labels?: components["schemas"]["SandboxLabels"];
|
|
2418
2462
|
network?: components["schemas"]["SandboxNetwork"];
|
|
2419
2463
|
/** @description Archil disks mounted inside the guest for the first session; `start` can replace them for later sessions. Inherited by forks. A sandbox with mounts must be stopped before it can be forked. */
|
|
2420
2464
|
mounts?: components["schemas"]["SandboxMount"][];
|
|
@@ -2443,6 +2487,8 @@ export interface components {
|
|
|
2443
2487
|
ForkSandboxRequest: {
|
|
2444
2488
|
/** @description Name for the fork. A random word-list name is generated when omitted. */
|
|
2445
2489
|
name?: string;
|
|
2490
|
+
/** @description Labels for the fork. Omit to keep the source's labels; an empty object clears them. */
|
|
2491
|
+
labels?: components["schemas"]["SandboxLabels"];
|
|
2446
2492
|
/**
|
|
2447
2493
|
* @description Fork this checkpoint of the source, as returned by pause, stop, or
|
|
2448
2494
|
* describe, instead of the source's live state. The source is neither
|