@archildata/api-types 0.0.95 → 0.0.97

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 +94 -2
  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;
@@ -676,6 +684,26 @@ export interface paths {
676
684
  patch?: never;
677
685
  trace?: never;
678
686
  };
687
+ "/api/disks/{id}/revoke-all-delegations": {
688
+ parameters: {
689
+ query?: never;
690
+ header?: never;
691
+ path?: never;
692
+ cookie?: never;
693
+ };
694
+ get?: never;
695
+ put?: never;
696
+ /**
697
+ * Revoke all delegations
698
+ * @description Forcibly revokes all delegations on a disk, skipping pending delegations.
699
+ */
700
+ post: operations["revokeAllDelegations"];
701
+ delete?: never;
702
+ options?: never;
703
+ head?: never;
704
+ patch?: never;
705
+ trace?: never;
706
+ };
679
707
  "/api/disks/{id}/prefetch": {
680
708
  parameters: {
681
709
  query?: never;
@@ -4668,7 +4696,12 @@ export interface operations {
4668
4696
  };
4669
4697
  deleteDisk: {
4670
4698
  parameters: {
4671
- query?: never;
4699
+ query?: {
4700
+ /** @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. */
4701
+ waitForFlush?: boolean;
4702
+ /** @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`. */
4703
+ discardWrites?: boolean;
4704
+ };
4672
4705
  header?: never;
4673
4706
  path: {
4674
4707
  /** @description Disk ID (format `dsk-{16 hex chars}`) */
@@ -4690,7 +4723,33 @@ export interface operations {
4690
4723
  400: components["responses"]["ValidationError"];
4691
4724
  401: components["responses"]["Unauthorized"];
4692
4725
  404: components["responses"]["NotFound"];
4726
+ /**
4727
+ * @description Only with `waitForFlush`: the disk is deleted and has stopped writing
4728
+ * to its bucket, but some writes did not reach the bucket within a
4729
+ * minute and were dropped. Retrying does not change this.
4730
+ */
4731
+ 409: {
4732
+ headers: {
4733
+ [name: string]: unknown;
4734
+ };
4735
+ content: {
4736
+ "application/json": components["schemas"]["ApiResponse_Empty"];
4737
+ };
4738
+ };
4693
4739
  500: components["responses"]["InternalError"];
4740
+ /**
4741
+ * @description Only with `waitForFlush` or `discardWrites`: the disk is marked for
4742
+ * deletion but has not yet confirmed what the flag asked for. Retry the
4743
+ * request with the same flag to keep waiting.
4744
+ */
4745
+ 503: {
4746
+ headers: {
4747
+ [name: string]: unknown;
4748
+ };
4749
+ content: {
4750
+ "application/json": components["schemas"]["ApiResponse_Empty"];
4751
+ };
4752
+ };
4694
4753
  };
4695
4754
  };
4696
4755
  listBranches: {
@@ -5128,6 +5187,39 @@ export interface operations {
5128
5187
  500: components["responses"]["InternalError"];
5129
5188
  };
5130
5189
  };
5190
+ revokeAllDelegations: {
5191
+ parameters: {
5192
+ query?: never;
5193
+ header?: never;
5194
+ path: {
5195
+ /** @description Disk ID (format `dsk-{16 hex chars}`) */
5196
+ id: components["parameters"]["DiskId"];
5197
+ };
5198
+ cookie?: never;
5199
+ };
5200
+ requestBody?: never;
5201
+ responses: {
5202
+ /** @description Delegations revoked */
5203
+ 200: {
5204
+ headers: {
5205
+ [name: string]: unknown;
5206
+ };
5207
+ content: {
5208
+ "application/json": {
5209
+ success: boolean;
5210
+ data: {
5211
+ revokedCount: number;
5212
+ skippedPendingCount: number;
5213
+ };
5214
+ };
5215
+ };
5216
+ };
5217
+ 400: components["responses"]["ValidationError"];
5218
+ 401: components["responses"]["Unauthorized"];
5219
+ 404: components["responses"]["NotFound"];
5220
+ 500: components["responses"]["InternalError"];
5221
+ };
5222
+ };
5131
5223
  prefetchDisk: {
5132
5224
  parameters: {
5133
5225
  query?: never;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@archildata/api-types",
3
- "version": "0.0.95",
3
+ "version": "0.0.97",
4
4
  "description": "Public API types for Archil",
5
5
  "type": "module",
6
6
  "types": "index.d.ts",