@withmarfa/client 0.0.15 → 0.0.16

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/dist/index.d.ts +54 -4
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -4471,6 +4471,40 @@ interface components {
4471
4471
  };
4472
4472
  };
4473
4473
  };
4474
+ /** @description An error response. */
4475
+ ExportRowsUnrestorableRefusal: {
4476
+ /** @description What went wrong. */
4477
+ error: {
4478
+ /**
4479
+ * @description A machine-readable code for the error. Use it in your logic.
4480
+ * @enum {string}
4481
+ */
4482
+ code: "export_rows_unrestorable";
4483
+ /** @description A description of the error for a person to read. It can change, so don't match on it. */
4484
+ message: string;
4485
+ /** @description More about the error, such as the field it concerns. Each code defines its own details. */
4486
+ details?: {
4487
+ [key: string]: unknown;
4488
+ };
4489
+ };
4490
+ };
4491
+ /** @description An error response. */
4492
+ BlobStoreUnavailableOrExportUnrestorableOrWriteContentionRefusal: {
4493
+ /** @description What went wrong. */
4494
+ error: {
4495
+ /**
4496
+ * @description A machine-readable code for the error. Use it in your logic.
4497
+ * @enum {string}
4498
+ */
4499
+ code: "blob_store_unavailable" | "export_unrestorable" | "write_contention";
4500
+ /** @description A description of the error for a person to read. It can change, so don't match on it. */
4501
+ message: string;
4502
+ /** @description More about the error, such as the field it concerns. Each code defines its own details. */
4503
+ details?: {
4504
+ [key: string]: unknown;
4505
+ };
4506
+ };
4507
+ };
4474
4508
  /** @description An OAuth client: its app metadata and the grants it uses. */
4475
4509
  OAuthClientRegistration: {
4476
4510
  /** @description The addresses Marfa may send a person back to after authorization. Required for `authorization_code`. At most 10. A `web` client's URIs must use `https` off the loopback; a `native` client may use `http` on `localhost`, `127.0.0.1` or `[::1]`. */
@@ -20506,7 +20540,7 @@ interface operations {
20506
20540
  "application/json": components["schemas"]["UnauthorizedRefusal"];
20507
20541
  };
20508
20542
  };
20509
- /** @description - `forbidden`: this operation requires its explicit permission or direct owner or local authority. `details.required_scope` names it. */
20543
+ /** @description - `forbidden`: you hold neither `keys.manage` nor `keys.mint` and aren't the owner or local command, or you're the owner and your browser session signed in more than five minutes ago. `details.required_scope` names a missing permission. */
20510
20544
  403: {
20511
20545
  headers: {
20512
20546
  "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
@@ -23415,6 +23449,21 @@ interface operations {
23415
23449
  "application/json": components["schemas"]["TypeNotPermittedRefusal"];
23416
23450
  };
23417
23451
  };
23452
+ /** @description - `export_rows_unrestorable`: with `format=archive`, Marfa read the selection twice, and both times a restore would refuse or skip the same row, which was unchanged between the reads, so no archive was sent. `details.row` names the row by `kind`, `id`, `type` and `field`, with the `code` a restore refuses it with or the reason it skips it. Correct the row or its type, then export again. */
23453
+ 409: {
23454
+ headers: {
23455
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
23456
+ "X-Request-ID": components["headers"]["X-Request-ID"];
23457
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
23458
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
23459
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
23460
+ "X-Error-Code": components["headers"]["X-Error-Code"];
23461
+ [name: string]: unknown;
23462
+ };
23463
+ content: {
23464
+ "application/json": components["schemas"]["ExportRowsUnrestorableRefusal"];
23465
+ };
23466
+ };
23418
23467
  /** @description `rate_limited`: you sent too many requests. Wait for the number of seconds in `Retry-After`, then try again. */
23419
23468
  429: {
23420
23469
  headers: {
@@ -23447,8 +23496,9 @@ interface operations {
23447
23496
  };
23448
23497
  };
23449
23498
  /**
23450
- * @description - `blob_store_unavailable`: a blob store failed, or didn't answer in time, while Marfa checked a blob's copy. Nothing was written. Try again later.
23451
- * - `write_contention`: the database was busy, and Marfa couldn't complete the request in time. Nothing changed. Try the request again.
23499
+ * @description - `blob_store_unavailable`: a blob store failed, or didn't answer in time, while Marfa checked a blob's copy. Try again later.
23500
+ * - `write_contention`: the database was busy. Nothing changed. Try the request again.
23501
+ * - `export_unrestorable`: with `format=archive`, writes changed a row that a restore would refuse, or its type, between two reads. No archive was sent. Retry the export.
23452
23502
  */
23453
23503
  503: {
23454
23504
  headers: {
@@ -23461,7 +23511,7 @@ interface operations {
23461
23511
  [name: string]: unknown;
23462
23512
  };
23463
23513
  content: {
23464
- "application/json": components["schemas"]["BlobStoreUnavailableOrWriteContentionRefusal"];
23514
+ "application/json": components["schemas"]["BlobStoreUnavailableOrExportUnrestorableOrWriteContentionRefusal"];
23465
23515
  };
23466
23516
  };
23467
23517
  /** @description `insufficient_storage`: the disk that holds the instance's data has no room for the request, or the request would leave less free than the instance keeps in reserve. Nothing changed, unless `details.write_outcome` is `unknown`, which means the write may have landed: read what you changed before you repeat it. Free space on the disk, then try the request again. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@withmarfa/client",
3
- "version": "0.0.15",
3
+ "version": "0.0.16",
4
4
  "license": "Apache-2.0",
5
5
  "repository": {
6
6
  "type": "git",