@archildata/api-types 0.0.94 → 0.0.96

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 +42 -3
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -483,7 +483,15 @@ export interface paths {
483
483
  post?: never;
484
484
  /**
485
485
  * Delete a disk
486
- * @description Deletes a disk and all associated resources.
486
+ * @description Deletes a disk and all associated resources. By default the request
487
+ * returns right away and writes that have not reached the bucket yet are
488
+ * uploaded in the background for up to a minute, so the bucket may keep
489
+ * receiving them after the call succeeds. To modify or remove the bucket
490
+ * right after deleting, pass either `waitForFlush=true` (the request
491
+ * returns once every write has reached the bucket and the disk has stopped
492
+ * writing to it) or `discardWrites=true` (writes that have not reached the
493
+ * bucket are discarded and the request returns once the disk has stopped
494
+ * writing to it).
487
495
  */
488
496
  delete: operations["deleteDisk"];
489
497
  options?: never;
@@ -1503,7 +1511,7 @@ export interface components {
1503
1511
  lines: components["schemas"]["BillingLine"][];
1504
1512
  /** @description What the period invoices, or would if it ended now; the lines' sum, to the cent. */
1505
1513
  billedCost: number;
1506
- /** @description The grants the account still draws on, on the current period only: each with something left or that will refill. A spent one-time grant and an expired one are not listed; a past period lists none (its `credit` lines show the draw). This is a grant's standing, not a charge: a `credit` line in `lines` is what a grant took off this period's bill, in money, and the two need not pair up. A grant nothing has drawn from yet has no line; an included quantity (tool calls, disks) is spent without one, since billing invoices only the usage past it; and several grants on one feature draw as one line. */
1514
+ /** @description The grants the account draws on, on the current period only: each that hasn't expired. A spent one-time grant is listed with `remaining` 0; an expired one is not; a past period lists none (its `credit` lines show the draw). This is a grant's standing, not a charge: a `credit` line in `lines` is what a grant took off this period's bill, in money, and the two need not pair up. A grant nothing has drawn from yet has no line; an included quantity (tool calls, disks) is spent without one, since billing invoices only the usage past it; and several grants on one feature draw as one line. */
1507
1515
  credits: components["schemas"]["BillingCreditGrant"][];
1508
1516
  /** @description The period end at the recent daily pace; absent for a past period, a plan that prices no usage, or without an elapsed day of usage. */
1509
1517
  projected?: components["schemas"]["BillingSummaryProjection"];
@@ -4668,7 +4676,12 @@ export interface operations {
4668
4676
  };
4669
4677
  deleteDisk: {
4670
4678
  parameters: {
4671
- query?: never;
4679
+ query?: {
4680
+ /** @description Return only once every write the disk accepted has reached its bucket. Cannot be combined with `discardWrites`. A request retried after the disk's deletion has completed cannot confirm the upload: it returns 404, or 200 if it races the final cleanup. */
4681
+ waitForFlush?: boolean;
4682
+ /** @description Discard writes that have not reached the bucket yet, and return once the disk has stopped writing to it. Cannot be combined with `waitForFlush`. */
4683
+ discardWrites?: boolean;
4684
+ };
4672
4685
  header?: never;
4673
4686
  path: {
4674
4687
  /** @description Disk ID (format `dsk-{16 hex chars}`) */
@@ -4690,7 +4703,33 @@ export interface operations {
4690
4703
  400: components["responses"]["ValidationError"];
4691
4704
  401: components["responses"]["Unauthorized"];
4692
4705
  404: components["responses"]["NotFound"];
4706
+ /**
4707
+ * @description Only with `waitForFlush`: the disk is deleted and has stopped writing
4708
+ * to its bucket, but some writes did not reach the bucket within a
4709
+ * minute and were dropped. Retrying does not change this.
4710
+ */
4711
+ 409: {
4712
+ headers: {
4713
+ [name: string]: unknown;
4714
+ };
4715
+ content: {
4716
+ "application/json": components["schemas"]["ApiResponse_Empty"];
4717
+ };
4718
+ };
4693
4719
  500: components["responses"]["InternalError"];
4720
+ /**
4721
+ * @description Only with `waitForFlush` or `discardWrites`: the disk is marked for
4722
+ * deletion but has not yet confirmed what the flag asked for. Retry the
4723
+ * request with the same flag to keep waiting.
4724
+ */
4725
+ 503: {
4726
+ headers: {
4727
+ [name: string]: unknown;
4728
+ };
4729
+ content: {
4730
+ "application/json": components["schemas"]["ApiResponse_Empty"];
4731
+ };
4732
+ };
4694
4733
  };
4695
4734
  };
4696
4735
  listBranches: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@archildata/api-types",
3
- "version": "0.0.94",
3
+ "version": "0.0.96",
4
4
  "description": "Public API types for Archil",
5
5
  "type": "module",
6
6
  "types": "index.d.ts",