@withmarfa/client 0.0.11 → 0.0.12

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 +581 -2
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -61,7 +61,7 @@ interface paths {
61
61
  };
62
62
  /**
63
63
  * Get item counts
64
- * @description Returns counts of the items you can read, grouped by state or by type. It takes the filters `GET /items` takes, but without `state` it counts every state, not only active items.
64
+ * @description Returns item counts by state or type using the filters of `GET /items`. Counts every state unless you name one. The owner can use their browser session.
65
65
  */
66
66
  get: operations["getItemStats"];
67
67
  put?: never;
@@ -1500,6 +1500,50 @@ interface paths {
1500
1500
  patch: operations["updateSignIn"];
1501
1501
  trace?: never;
1502
1502
  };
1503
+ "/owner/passkeys": {
1504
+ parameters: {
1505
+ query?: never;
1506
+ header?: never;
1507
+ path?: never;
1508
+ cookie?: never;
1509
+ };
1510
+ /**
1511
+ * List passkeys
1512
+ * @description Returns every registered owner passkey, oldest first. Requires the owner's browser session or private local authority.
1513
+ */
1514
+ get: operations["listOwnerPasskeys"];
1515
+ put?: never;
1516
+ post?: never;
1517
+ delete?: never;
1518
+ options?: never;
1519
+ head?: never;
1520
+ patch?: never;
1521
+ trace?: never;
1522
+ };
1523
+ "/owner/passkeys/{id}": {
1524
+ parameters: {
1525
+ query?: never;
1526
+ header?: never;
1527
+ path?: never;
1528
+ cookie?: never;
1529
+ };
1530
+ get?: never;
1531
+ put?: never;
1532
+ post?: never;
1533
+ /**
1534
+ * Remove a passkey
1535
+ * @description Removes one passkey so it cannot sign in again. Existing sign-ins remain usable. Requires the owner's browser session authenticated within five minutes or private local authority.
1536
+ */
1537
+ delete: operations["removeOwnerPasskey"];
1538
+ options?: never;
1539
+ head?: never;
1540
+ /**
1541
+ * Rename a passkey
1542
+ * @description Renames the passkey and returns its public details. Requires the owner's browser session authenticated within five minutes or private local authority.
1543
+ */
1544
+ patch: operations["updateOwnerPasskey"];
1545
+ trace?: never;
1546
+ };
1503
1547
  "/export": {
1504
1548
  parameters: {
1505
1549
  query?: never;
@@ -1509,7 +1553,7 @@ interface paths {
1509
1553
  };
1510
1554
  /**
1511
1555
  * Export items and edges
1512
- * @description Exports the items you can read, with their tags and readable extensions, followed by the edges between them. Without `state`, trashed items are left out. With `format=archive`, returns a file that `POST /restore` reads.
1556
+ * @description Exports readable items, metadata and edges, excluding trash unless requested. The owner can use their browser session. An archive can be read by `POST /restore`.
1513
1557
  */
1514
1558
  get: operations["exportData"];
1515
1559
  put?: never;
@@ -4291,6 +4335,45 @@ interface components {
4291
4335
  };
4292
4336
  };
4293
4337
  };
4338
+ /** @description Every registered owner passkey. */
4339
+ OwnerPasskeyList: {
4340
+ /** @description Every registered owner passkey, oldest first. */
4341
+ data: components["schemas"]["OwnerPasskey"][];
4342
+ /** @description Always `null`: every passkey is returned in one page. */
4343
+ next_cursor: null;
4344
+ };
4345
+ /** @description An owner's registered passkey, without credential material. */
4346
+ OwnerPasskey: {
4347
+ /**
4348
+ * @description Unique identifier for the passkey.
4349
+ * @example Q2xYvR8mKp4TnW6aBc0dEf1gHi3jKl5M
4350
+ */
4351
+ id: string;
4352
+ /** @description The owner's name for the passkey, or `null` when unnamed. */
4353
+ name: string | null;
4354
+ /**
4355
+ * @description When the passkey was registered, in UTC.
4356
+ * @example 2026-10-03T09:30:00.000Z
4357
+ */
4358
+ created_at: string;
4359
+ };
4360
+ /** @description An error response. */
4361
+ PasskeyNotFoundRefusal: {
4362
+ /** @description What went wrong. */
4363
+ error: {
4364
+ /**
4365
+ * @description A machine-readable code for the error. Use it in your logic.
4366
+ * @enum {string}
4367
+ */
4368
+ code: "passkey_not_found";
4369
+ /** @description A description of the error for a person to read. It can change, so don't match on it. */
4370
+ message: string;
4371
+ /** @description More about the error, such as the field it concerns. Each code defines its own details. */
4372
+ details?: {
4373
+ [key: string]: unknown;
4374
+ };
4375
+ };
4376
+ };
4294
4377
  /** @description An OAuth client: its app metadata and the grants it uses. */
4295
4378
  OAuthClientRegistration: {
4296
4379
  /** @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]`. */
@@ -22260,6 +22343,502 @@ interface operations {
22260
22343
  };
22261
22344
  };
22262
22345
  };
22346
+ listOwnerPasskeys: {
22347
+ parameters: {
22348
+ query?: never;
22349
+ header?: never;
22350
+ path?: never;
22351
+ cookie?: never;
22352
+ };
22353
+ requestBody?: never;
22354
+ responses: {
22355
+ /** @description Returns every registered owner passkey. */
22356
+ 200: {
22357
+ headers: {
22358
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
22359
+ "X-Request-ID": components["headers"]["X-Request-ID"];
22360
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
22361
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
22362
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
22363
+ [name: string]: unknown;
22364
+ };
22365
+ content: {
22366
+ "application/json": components["schemas"]["OwnerPasskeyList"];
22367
+ };
22368
+ };
22369
+ /** @description - `validation_error`: the query has a parameter this endpoint doesn't take. */
22370
+ 400: {
22371
+ headers: {
22372
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
22373
+ "X-Request-ID": components["headers"]["X-Request-ID"];
22374
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
22375
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
22376
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
22377
+ "X-Error-Code": components["headers"]["X-Error-Code"];
22378
+ [name: string]: unknown;
22379
+ };
22380
+ content: {
22381
+ "application/json": components["schemas"]["ValidationErrorRefusal"];
22382
+ };
22383
+ };
22384
+ /** @description `unauthorized`: the request has no credential, or its credential is not valid. */
22385
+ 401: {
22386
+ headers: {
22387
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
22388
+ "X-Request-ID": components["headers"]["X-Request-ID"];
22389
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
22390
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
22391
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
22392
+ "X-Error-Code": components["headers"]["X-Error-Code"];
22393
+ [name: string]: unknown;
22394
+ };
22395
+ content: {
22396
+ "application/json": components["schemas"]["UnauthorizedRefusal"];
22397
+ };
22398
+ };
22399
+ /** @description Requires direct owner or local authority. Mutations require an owner sign-in within five minutes. */
22400
+ 403: {
22401
+ headers: {
22402
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
22403
+ "X-Request-ID": components["headers"]["X-Request-ID"];
22404
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
22405
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
22406
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
22407
+ "X-Error-Code": components["headers"]["X-Error-Code"];
22408
+ [name: string]: unknown;
22409
+ };
22410
+ content: {
22411
+ "application/json": components["schemas"]["ForbiddenRefusal"];
22412
+ };
22413
+ };
22414
+ /** @description `rate_limited`: you sent too many requests. Wait for the number of seconds in `Retry-After`, then try again. */
22415
+ 429: {
22416
+ headers: {
22417
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
22418
+ "X-Request-ID": components["headers"]["X-Request-ID"];
22419
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
22420
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
22421
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
22422
+ "X-Error-Code": components["headers"]["X-Error-Code"];
22423
+ "Retry-After": components["headers"]["Retry-After"];
22424
+ [name: string]: unknown;
22425
+ };
22426
+ content: {
22427
+ "application/json": components["schemas"]["RateLimitedRefusal"];
22428
+ };
22429
+ };
22430
+ /** @description `internal_error`: Marfa failed in a way it didn't expect, and the request may not have completed. Read what you changed before you repeat a write. */
22431
+ 500: {
22432
+ headers: {
22433
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
22434
+ "X-Request-ID": components["headers"]["X-Request-ID"];
22435
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
22436
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
22437
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
22438
+ "X-Error-Code": components["headers"]["X-Error-Code"];
22439
+ [name: string]: unknown;
22440
+ };
22441
+ content: {
22442
+ "application/json": components["schemas"]["InternalErrorRefusal"];
22443
+ };
22444
+ };
22445
+ /** @description `write_contention`: the database was busy, and Marfa couldn't complete the request in time. Nothing changed. Try the request again. */
22446
+ 503: {
22447
+ headers: {
22448
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
22449
+ "X-Request-ID": components["headers"]["X-Request-ID"];
22450
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
22451
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
22452
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
22453
+ "X-Error-Code": components["headers"]["X-Error-Code"];
22454
+ [name: string]: unknown;
22455
+ };
22456
+ content: {
22457
+ "application/json": components["schemas"]["WriteContentionRefusal"];
22458
+ };
22459
+ };
22460
+ /** @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. */
22461
+ 507: {
22462
+ headers: {
22463
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
22464
+ "X-Request-ID": components["headers"]["X-Request-ID"];
22465
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
22466
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
22467
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
22468
+ "X-Error-Code": components["headers"]["X-Error-Code"];
22469
+ [name: string]: unknown;
22470
+ };
22471
+ content: {
22472
+ "application/json": components["schemas"]["InsufficientStorageRefusal"];
22473
+ };
22474
+ };
22475
+ };
22476
+ };
22477
+ removeOwnerPasskey: {
22478
+ parameters: {
22479
+ query?: never;
22480
+ header?: {
22481
+ /** @description The ID of the instance you expect, as `GET /` returns it. If another instance answers at this address, Marfa returns `409 instance_changed` and doesn't write. Leave it out to send the request to whichever instance answers. */
22482
+ "X-Marfa-Instance-Id"?: string;
22483
+ };
22484
+ path: {
22485
+ /** @description The ID of the passkey. */
22486
+ id: string;
22487
+ };
22488
+ cookie?: never;
22489
+ };
22490
+ requestBody?: never;
22491
+ responses: {
22492
+ /** @description Returns `ok: true`. The passkey was removed. */
22493
+ 200: {
22494
+ headers: {
22495
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
22496
+ "X-Request-ID": components["headers"]["X-Request-ID"];
22497
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
22498
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
22499
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
22500
+ [name: string]: unknown;
22501
+ };
22502
+ content: {
22503
+ "application/json": components["schemas"]["Ok"];
22504
+ };
22505
+ };
22506
+ /** @description - `validation_error`: the query has a parameter this endpoint doesn't take. */
22507
+ 400: {
22508
+ headers: {
22509
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
22510
+ "X-Request-ID": components["headers"]["X-Request-ID"];
22511
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
22512
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
22513
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
22514
+ "X-Error-Code": components["headers"]["X-Error-Code"];
22515
+ [name: string]: unknown;
22516
+ };
22517
+ content: {
22518
+ "application/json": components["schemas"]["ValidationErrorRefusal"];
22519
+ };
22520
+ };
22521
+ /** @description `unauthorized`: the request has no credential, or its credential is not valid. */
22522
+ 401: {
22523
+ headers: {
22524
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
22525
+ "X-Request-ID": components["headers"]["X-Request-ID"];
22526
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
22527
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
22528
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
22529
+ "X-Error-Code": components["headers"]["X-Error-Code"];
22530
+ [name: string]: unknown;
22531
+ };
22532
+ content: {
22533
+ "application/json": components["schemas"]["UnauthorizedRefusal"];
22534
+ };
22535
+ };
22536
+ /** @description Requires direct owner or local authority. Mutations require an owner sign-in within five minutes. */
22537
+ 403: {
22538
+ headers: {
22539
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
22540
+ "X-Request-ID": components["headers"]["X-Request-ID"];
22541
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
22542
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
22543
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
22544
+ "X-Error-Code": components["headers"]["X-Error-Code"];
22545
+ [name: string]: unknown;
22546
+ };
22547
+ content: {
22548
+ "application/json": components["schemas"]["ForbiddenRefusal"];
22549
+ };
22550
+ };
22551
+ /** @description No registered passkey of the owner has this ID. */
22552
+ 404: {
22553
+ headers: {
22554
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
22555
+ "X-Request-ID": components["headers"]["X-Request-ID"];
22556
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
22557
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
22558
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
22559
+ "X-Error-Code": components["headers"]["X-Error-Code"];
22560
+ [name: string]: unknown;
22561
+ };
22562
+ content: {
22563
+ "application/json": components["schemas"]["PasskeyNotFoundRefusal"];
22564
+ };
22565
+ };
22566
+ /** @description `instance_changed`: `X-Marfa-Instance-Id` names another instance. Nothing is written. Rebuild the working copy from the instance at this address. */
22567
+ 409: {
22568
+ headers: {
22569
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
22570
+ "X-Request-ID": components["headers"]["X-Request-ID"];
22571
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
22572
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
22573
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
22574
+ "X-Error-Code": components["headers"]["X-Error-Code"];
22575
+ [name: string]: unknown;
22576
+ };
22577
+ content: {
22578
+ "application/json": components["schemas"]["InstanceChangedRefusal"];
22579
+ };
22580
+ };
22581
+ /** @description `request_too_large`: the request body is larger than this instance accepts. */
22582
+ 413: {
22583
+ headers: {
22584
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
22585
+ "X-Request-ID": components["headers"]["X-Request-ID"];
22586
+ "X-Error-Code": components["headers"]["X-Error-Code"];
22587
+ [name: string]: unknown;
22588
+ };
22589
+ content: {
22590
+ "application/json": components["schemas"]["RequestTooLargeRefusal"];
22591
+ };
22592
+ };
22593
+ /** @description `rate_limited`: you sent too many requests. Wait for the number of seconds in `Retry-After`, then try again. */
22594
+ 429: {
22595
+ headers: {
22596
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
22597
+ "X-Request-ID": components["headers"]["X-Request-ID"];
22598
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
22599
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
22600
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
22601
+ "X-Error-Code": components["headers"]["X-Error-Code"];
22602
+ "Retry-After": components["headers"]["Retry-After"];
22603
+ [name: string]: unknown;
22604
+ };
22605
+ content: {
22606
+ "application/json": components["schemas"]["RateLimitedRefusal"];
22607
+ };
22608
+ };
22609
+ /** @description `internal_error`: Marfa failed in a way it didn't expect, and the request may not have completed. Read what you changed before you repeat a write. */
22610
+ 500: {
22611
+ headers: {
22612
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
22613
+ "X-Request-ID": components["headers"]["X-Request-ID"];
22614
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
22615
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
22616
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
22617
+ "X-Error-Code": components["headers"]["X-Error-Code"];
22618
+ [name: string]: unknown;
22619
+ };
22620
+ content: {
22621
+ "application/json": components["schemas"]["InternalErrorRefusal"];
22622
+ };
22623
+ };
22624
+ /** @description `write_contention`: the database was busy, and Marfa couldn't complete the request in time. Nothing changed. Try the request again. */
22625
+ 503: {
22626
+ headers: {
22627
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
22628
+ "X-Request-ID": components["headers"]["X-Request-ID"];
22629
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
22630
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
22631
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
22632
+ "X-Error-Code": components["headers"]["X-Error-Code"];
22633
+ [name: string]: unknown;
22634
+ };
22635
+ content: {
22636
+ "application/json": components["schemas"]["WriteContentionRefusal"];
22637
+ };
22638
+ };
22639
+ /** @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. */
22640
+ 507: {
22641
+ headers: {
22642
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
22643
+ "X-Request-ID": components["headers"]["X-Request-ID"];
22644
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
22645
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
22646
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
22647
+ "X-Error-Code": components["headers"]["X-Error-Code"];
22648
+ [name: string]: unknown;
22649
+ };
22650
+ content: {
22651
+ "application/json": components["schemas"]["InsufficientStorageRefusal"];
22652
+ };
22653
+ };
22654
+ };
22655
+ };
22656
+ updateOwnerPasskey: {
22657
+ parameters: {
22658
+ query?: never;
22659
+ header?: {
22660
+ /** @description The ID of the instance you expect, as `GET /` returns it. If another instance answers at this address, Marfa returns `409 instance_changed` and doesn't write. Leave it out to send the request to whichever instance answers. */
22661
+ "X-Marfa-Instance-Id"?: string;
22662
+ };
22663
+ path: {
22664
+ /** @description The ID of the passkey. */
22665
+ id: string;
22666
+ };
22667
+ cookie?: never;
22668
+ };
22669
+ requestBody: {
22670
+ content: {
22671
+ "application/json": {
22672
+ /** @description The new name. Marfa trims spaces from each end. */
22673
+ name: string;
22674
+ };
22675
+ };
22676
+ };
22677
+ responses: {
22678
+ /** @description Returns the renamed passkey. */
22679
+ 200: {
22680
+ headers: {
22681
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
22682
+ "X-Request-ID": components["headers"]["X-Request-ID"];
22683
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
22684
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
22685
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
22686
+ [name: string]: unknown;
22687
+ };
22688
+ content: {
22689
+ "application/json": components["schemas"]["OwnerPasskey"];
22690
+ };
22691
+ };
22692
+ /** @description The name is missing, empty, too long, or holds a control or bidirectional character, or the body contains another field. */
22693
+ 400: {
22694
+ headers: {
22695
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
22696
+ "X-Request-ID": components["headers"]["X-Request-ID"];
22697
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
22698
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
22699
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
22700
+ "X-Error-Code": components["headers"]["X-Error-Code"];
22701
+ [name: string]: unknown;
22702
+ };
22703
+ content: {
22704
+ "application/json": components["schemas"]["MissingRequiredFieldOrValidationErrorRefusal"];
22705
+ };
22706
+ };
22707
+ /** @description `unauthorized`: the request has no credential, or its credential is not valid. */
22708
+ 401: {
22709
+ headers: {
22710
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
22711
+ "X-Request-ID": components["headers"]["X-Request-ID"];
22712
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
22713
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
22714
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
22715
+ "X-Error-Code": components["headers"]["X-Error-Code"];
22716
+ [name: string]: unknown;
22717
+ };
22718
+ content: {
22719
+ "application/json": components["schemas"]["UnauthorizedRefusal"];
22720
+ };
22721
+ };
22722
+ /** @description Requires direct owner or local authority. Mutations require an owner sign-in within five minutes. */
22723
+ 403: {
22724
+ headers: {
22725
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
22726
+ "X-Request-ID": components["headers"]["X-Request-ID"];
22727
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
22728
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
22729
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
22730
+ "X-Error-Code": components["headers"]["X-Error-Code"];
22731
+ [name: string]: unknown;
22732
+ };
22733
+ content: {
22734
+ "application/json": components["schemas"]["ForbiddenRefusal"];
22735
+ };
22736
+ };
22737
+ /** @description No registered passkey of the owner has this ID. */
22738
+ 404: {
22739
+ headers: {
22740
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
22741
+ "X-Request-ID": components["headers"]["X-Request-ID"];
22742
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
22743
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
22744
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
22745
+ "X-Error-Code": components["headers"]["X-Error-Code"];
22746
+ [name: string]: unknown;
22747
+ };
22748
+ content: {
22749
+ "application/json": components["schemas"]["PasskeyNotFoundRefusal"];
22750
+ };
22751
+ };
22752
+ /** @description `instance_changed`: `X-Marfa-Instance-Id` names another instance. Nothing is written. Rebuild the working copy from the instance at this address. */
22753
+ 409: {
22754
+ headers: {
22755
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
22756
+ "X-Request-ID": components["headers"]["X-Request-ID"];
22757
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
22758
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
22759
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
22760
+ "X-Error-Code": components["headers"]["X-Error-Code"];
22761
+ [name: string]: unknown;
22762
+ };
22763
+ content: {
22764
+ "application/json": components["schemas"]["InstanceChangedRefusal"];
22765
+ };
22766
+ };
22767
+ /** @description `request_too_large`: the request body is larger than this instance accepts. */
22768
+ 413: {
22769
+ headers: {
22770
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
22771
+ "X-Request-ID": components["headers"]["X-Request-ID"];
22772
+ "X-Error-Code": components["headers"]["X-Error-Code"];
22773
+ [name: string]: unknown;
22774
+ };
22775
+ content: {
22776
+ "application/json": components["schemas"]["RequestTooLargeRefusal"];
22777
+ };
22778
+ };
22779
+ /** @description `rate_limited`: you sent too many requests. Wait for the number of seconds in `Retry-After`, then try again. */
22780
+ 429: {
22781
+ headers: {
22782
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
22783
+ "X-Request-ID": components["headers"]["X-Request-ID"];
22784
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
22785
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
22786
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
22787
+ "X-Error-Code": components["headers"]["X-Error-Code"];
22788
+ "Retry-After": components["headers"]["Retry-After"];
22789
+ [name: string]: unknown;
22790
+ };
22791
+ content: {
22792
+ "application/json": components["schemas"]["RateLimitedRefusal"];
22793
+ };
22794
+ };
22795
+ /** @description `internal_error`: Marfa failed in a way it didn't expect, and the request may not have completed. Read what you changed before you repeat a write. */
22796
+ 500: {
22797
+ headers: {
22798
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
22799
+ "X-Request-ID": components["headers"]["X-Request-ID"];
22800
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
22801
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
22802
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
22803
+ "X-Error-Code": components["headers"]["X-Error-Code"];
22804
+ [name: string]: unknown;
22805
+ };
22806
+ content: {
22807
+ "application/json": components["schemas"]["InternalErrorRefusal"];
22808
+ };
22809
+ };
22810
+ /** @description `write_contention`: the database was busy, and Marfa couldn't complete the request in time. Nothing changed. Try the request again. */
22811
+ 503: {
22812
+ headers: {
22813
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
22814
+ "X-Request-ID": components["headers"]["X-Request-ID"];
22815
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
22816
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
22817
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
22818
+ "X-Error-Code": components["headers"]["X-Error-Code"];
22819
+ [name: string]: unknown;
22820
+ };
22821
+ content: {
22822
+ "application/json": components["schemas"]["WriteContentionRefusal"];
22823
+ };
22824
+ };
22825
+ /** @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. */
22826
+ 507: {
22827
+ headers: {
22828
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
22829
+ "X-Request-ID": components["headers"]["X-Request-ID"];
22830
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
22831
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
22832
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
22833
+ "X-Error-Code": components["headers"]["X-Error-Code"];
22834
+ [name: string]: unknown;
22835
+ };
22836
+ content: {
22837
+ "application/json": components["schemas"]["InsufficientStorageRefusal"];
22838
+ };
22839
+ };
22840
+ };
22841
+ };
22263
22842
  exportData: {
22264
22843
  parameters: {
22265
22844
  query?: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@withmarfa/client",
3
- "version": "0.0.11",
3
+ "version": "0.0.12",
4
4
  "license": "Apache-2.0",
5
5
  "repository": {
6
6
  "type": "git",