@withmarfa/client 0.0.11 → 0.0.13

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 +1100 -105
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -17,7 +17,7 @@ interface paths {
17
17
  };
18
18
  /**
19
19
  * Describe the instance
20
- * @description Describes the instance: its `instance_id`, the build it runs, the contract version it speaks and the features it serves. Needs no credential.
20
+ * @description Describes the instance: its display name, `instance_id`, the build it runs, the contract version it speaks and the features it serves. Needs no credential.
21
21
  */
22
22
  get: operations["getInstance"];
23
23
  put?: never;
@@ -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;
@@ -1357,7 +1357,7 @@ interface paths {
1357
1357
  };
1358
1358
  /**
1359
1359
  * Get the configuration
1360
- * @description Returns the instance configuration: its enforcement levers and retention settings, with its `instance_id`. A setting nobody has set is left out. Requires `config.manage`.
1360
+ * @description Returns the instance configuration: its display name, enforcement levers and retention settings, with its `instance_id`. A setting nobody has set is left out. Requires `config.manage`.
1361
1361
  */
1362
1362
  get: operations["getConfig"];
1363
1363
  /**
@@ -1453,7 +1453,11 @@ interface paths {
1453
1453
  delete?: never;
1454
1454
  options?: never;
1455
1455
  head?: never;
1456
- patch?: never;
1456
+ /**
1457
+ * Update the owner
1458
+ * @description Updates the owner's email or name and returns the owner. Requires a direct owner sign-in within five minutes or private machine authority. Changing email needs no confirmation; credentials, sessions, and grants keep their identity.
1459
+ */
1460
+ patch: operations["updateOwner"];
1457
1461
  trace?: never;
1458
1462
  };
1459
1463
  "/owner/sign-ins": {
@@ -1500,6 +1504,70 @@ interface paths {
1500
1504
  patch: operations["updateSignIn"];
1501
1505
  trace?: never;
1502
1506
  };
1507
+ "/owner/passkeys": {
1508
+ parameters: {
1509
+ query?: never;
1510
+ header?: never;
1511
+ path?: never;
1512
+ cookie?: never;
1513
+ };
1514
+ /**
1515
+ * List passkeys
1516
+ * @description Returns every registered owner passkey, oldest first. Requires the owner's browser session or private local authority.
1517
+ */
1518
+ get: operations["listOwnerPasskeys"];
1519
+ put?: never;
1520
+ post?: never;
1521
+ delete?: never;
1522
+ options?: never;
1523
+ head?: never;
1524
+ patch?: never;
1525
+ trace?: never;
1526
+ };
1527
+ "/owner/passkeys/{id}": {
1528
+ parameters: {
1529
+ query?: never;
1530
+ header?: never;
1531
+ path?: never;
1532
+ cookie?: never;
1533
+ };
1534
+ get?: never;
1535
+ put?: never;
1536
+ post?: never;
1537
+ /**
1538
+ * Remove a passkey
1539
+ * @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.
1540
+ */
1541
+ delete: operations["removeOwnerPasskey"];
1542
+ options?: never;
1543
+ head?: never;
1544
+ /**
1545
+ * Rename a passkey
1546
+ * @description Renames the passkey and returns its public details. Requires the owner's browser session authenticated within five minutes or private local authority.
1547
+ */
1548
+ patch: operations["updateOwnerPasskey"];
1549
+ trace?: never;
1550
+ };
1551
+ "/profile": {
1552
+ parameters: {
1553
+ query?: never;
1554
+ header?: never;
1555
+ path?: never;
1556
+ cookie?: never;
1557
+ };
1558
+ get?: never;
1559
+ put?: never;
1560
+ post?: never;
1561
+ delete?: never;
1562
+ options?: never;
1563
+ head?: never;
1564
+ /**
1565
+ * Update the profile
1566
+ * @description Updates the owner's name or avatar and returns `ok: true`. Requires profile write permission for every submitted field; email cannot be changed here. All fields commit together.
1567
+ */
1568
+ patch: operations["updateProfile"];
1569
+ trace?: never;
1570
+ };
1503
1571
  "/export": {
1504
1572
  parameters: {
1505
1573
  query?: never;
@@ -1509,7 +1577,7 @@ interface paths {
1509
1577
  };
1510
1578
  /**
1511
1579
  * 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.
1580
+ * @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
1581
  */
1514
1582
  get: operations["exportData"];
1515
1583
  put?: never;
@@ -1776,6 +1844,38 @@ interface components {
1776
1844
  source_allowlist?: components["schemas"]["TypeAndSourceLever"] & unknown;
1777
1845
  source_filter?: components["schemas"]["TypeAndSourceLever"] & unknown;
1778
1846
  };
1847
+ /** @description Profile field permissions. Only the owner can change email. */
1848
+ ProfilePermissions: {
1849
+ /**
1850
+ * @description Access to every profile field. write changes only name and avatar.
1851
+ * @enum {string}
1852
+ */
1853
+ "*"?: "read" | "write";
1854
+ /**
1855
+ * @description Access to the owner's name.
1856
+ * @enum {string}
1857
+ */
1858
+ name?: "read" | "write";
1859
+ /**
1860
+ * @description Read access to the owner's email address.
1861
+ * @enum {string}
1862
+ */
1863
+ email?: "read";
1864
+ /**
1865
+ * @description Access to the owner's avatar URL.
1866
+ * @enum {string}
1867
+ */
1868
+ avatar?: "read" | "write";
1869
+ };
1870
+ /** @description Stored profile levels by field. Only name and avatar permit writes. */
1871
+ StoredProfilePermissions: {
1872
+ [key: string]: components["schemas"]["PermissionLevel"];
1873
+ };
1874
+ /**
1875
+ * @description What a key may do with an entry: `read` it, or `write` it (which includes reading). A name no entry covers is denied.
1876
+ * @enum {string}
1877
+ */
1878
+ PermissionLevel: "read" | "write";
1779
1879
  /**
1780
1880
  * @description An item's lifecycle state. `active`: in use, and what a listing returns by default. `archived`: kept and readable by ID, but left out of a default listing. `trashed`: in the trash until restored or purged. `revoked`: retired for good, on `system.*` items only.
1781
1881
  * @enum {string}
@@ -2081,11 +2181,8 @@ interface components {
2081
2181
  };
2082
2182
  /** @description An instance: its identity, build, contract version and features. */
2083
2183
  InstanceDescription: {
2084
- /**
2085
- * @description Always `marfa`.
2086
- * @enum {string}
2087
- */
2088
- name: "marfa";
2184
+ /** @description The instance's display name. Defaults to `Marfa`. */
2185
+ name: string;
2089
2186
  /** @description The build the instance runs. */
2090
2187
  version: string;
2091
2188
  /** @description Unique identifier for the instance. `GET /config` and an archive's manifest show the same value. */
@@ -3960,10 +4057,7 @@ interface components {
3960
4057
  metadata_permissions: {
3961
4058
  [key: string]: components["schemas"]["PermissionLevel"];
3962
4059
  };
3963
- /** @description What the key may `read` or `write` of the owner's profile: `name`, `email` or `avatar`, or `*` for all of it. */
3964
- profile_permissions: {
3965
- [key: string]: components["schemas"]["PermissionLevel"];
3966
- };
4060
+ profile_permissions: components["schemas"]["StoredProfilePermissions"] & unknown;
3967
4061
  enforcement_override?: components["schemas"]["EnforcementOverride"] & unknown;
3968
4062
  /** @description When the key was created, in UTC. */
3969
4063
  created_at: string;
@@ -3982,11 +4076,6 @@ interface components {
3982
4076
  * @enum {string}
3983
4077
  */
3984
4078
  TypePermissionLevel: "read" | "write" | "none";
3985
- /**
3986
- * @description What a key may do with an entry: `read` it, or `write` it (which includes reading). A name no entry covers is denied.
3987
- * @enum {string}
3988
- */
3989
- PermissionLevel: "read" | "write";
3990
4079
  /** @description A page holding every key you can reach. */
3991
4080
  ApiKeyPage: {
3992
4081
  /** @description Every key you can reach. */
@@ -4025,10 +4114,7 @@ interface components {
4025
4114
  metadata_permissions: {
4026
4115
  [key: string]: components["schemas"]["PermissionLevel"];
4027
4116
  };
4028
- /** @description What the key may `read` or `write` of the owner's profile: `name`, `email` or `avatar`, or `*` for all of it. */
4029
- profile_permissions: {
4030
- [key: string]: components["schemas"]["PermissionLevel"];
4031
- };
4117
+ profile_permissions: components["schemas"]["StoredProfilePermissions"] & unknown;
4032
4118
  enforcement_override?: components["schemas"]["EnforcementOverride"] & unknown;
4033
4119
  /** @description When the key was created, in UTC. */
4034
4120
  created_at: string;
@@ -4054,10 +4140,12 @@ interface components {
4054
4140
  };
4055
4141
  };
4056
4142
  };
4057
- /** @description The instance configuration: its enforcement levers and retention settings, with the instance's ID. */
4143
+ /** @description The instance configuration: its display name, enforcement levers and retention settings, with the instance's ID. */
4058
4144
  InstanceConfig: {
4059
4145
  /** @description Unique identifier for the instance, the same value `GET /` returns. */
4060
4146
  instance_id: string;
4147
+ /** @description The instance's display name, without control or bidirectional formatting characters. Spaces at each end are trimmed. Absent: `Marfa`. */
4148
+ name?: string;
4061
4149
  /** @description The instance's enforcement levers. Each applies to every credential that doesn't set the same lever itself. Absent: no lever is on. */
4062
4150
  enforcement?: {
4063
4151
  strict_mode?: components["schemas"]["TypeLever"] & unknown;
@@ -4291,6 +4379,45 @@ interface components {
4291
4379
  };
4292
4380
  };
4293
4381
  };
4382
+ /** @description Every registered owner passkey. */
4383
+ OwnerPasskeyList: {
4384
+ /** @description Every registered owner passkey, oldest first. */
4385
+ data: components["schemas"]["OwnerPasskey"][];
4386
+ /** @description Always `null`: every passkey is returned in one page. */
4387
+ next_cursor: null;
4388
+ };
4389
+ /** @description An owner's registered passkey, without credential material. */
4390
+ OwnerPasskey: {
4391
+ /**
4392
+ * @description Unique identifier for the passkey.
4393
+ * @example Q2xYvR8mKp4TnW6aBc0dEf1gHi3jKl5M
4394
+ */
4395
+ id: string;
4396
+ /** @description The owner's name for the passkey, or `null` when unnamed. */
4397
+ name: string | null;
4398
+ /**
4399
+ * @description When the passkey was registered, in UTC.
4400
+ * @example 2026-10-03T09:30:00.000Z
4401
+ */
4402
+ created_at: string;
4403
+ };
4404
+ /** @description An error response. */
4405
+ PasskeyNotFoundRefusal: {
4406
+ /** @description What went wrong. */
4407
+ error: {
4408
+ /**
4409
+ * @description A machine-readable code for the error. Use it in your logic.
4410
+ * @enum {string}
4411
+ */
4412
+ code: "passkey_not_found";
4413
+ /** @description A description of the error for a person to read. It can change, so don't match on it. */
4414
+ message: string;
4415
+ /** @description More about the error, such as the field it concerns. Each code defines its own details. */
4416
+ details?: {
4417
+ [key: string]: unknown;
4418
+ };
4419
+ };
4420
+ };
4294
4421
  /** @description An OAuth client: its app metadata and the grants it uses. */
4295
4422
  OAuthClientRegistration: {
4296
4423
  /** @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]`. */
@@ -19939,10 +20066,7 @@ interface operations {
19939
20066
  metadata_permissions?: {
19940
20067
  [key: string]: components["schemas"]["PermissionLevel"];
19941
20068
  };
19942
- /** @description What the key may `read` or `write` of the owner's profile: `name`, `email` or `avatar`, or `*` for all of it. */
19943
- profile_permissions?: {
19944
- [key: string]: components["schemas"]["PermissionLevel"];
19945
- };
20069
+ profile_permissions?: components["schemas"]["ProfilePermissions"] & unknown;
19946
20070
  enforcement_override?: components["schemas"]["EnforcementOverride"] & unknown;
19947
20071
  /** @description When the key stops working, as an ISO 8601 date and time in the future. Leave it out for a key that never expires, or, if your own key expires, for one that expires when yours does. It can't be later than your own key's `expires_at`. */
19948
20072
  expires_at?: string;
@@ -20469,10 +20593,7 @@ interface operations {
20469
20593
  metadata_permissions?: {
20470
20594
  [key: string]: components["schemas"]["PermissionLevel"];
20471
20595
  };
20472
- /** @description What the key may `read` or `write` of the owner's profile: `name`, `email` or `avatar`, or `*` for all of it. */
20473
- profile_permissions?: {
20474
- [key: string]: components["schemas"]["PermissionLevel"];
20475
- };
20596
+ profile_permissions?: components["schemas"]["ProfilePermissions"] & unknown;
20476
20597
  /** @description The permissions the key holds, such as `audit.read`. */
20477
20598
  permissions?: components["schemas"]["Permission"][];
20478
20599
  /** @description Replaces the key's enforcement levers whole. `null` clears them. */
@@ -20798,6 +20919,8 @@ interface operations {
20798
20919
  "application/json": {
20799
20920
  /** @description This instance's ID, accepted so you can send back what `GET /config` returned. It sets nothing. */
20800
20921
  instance_id?: string;
20922
+ /** @description The instance's display name, without control or bidirectional formatting characters. Spaces at each end are trimmed. Absent: `Marfa`. */
20923
+ name?: string;
20801
20924
  /** @description The instance's enforcement levers. Each applies to every credential that doesn't set the same lever itself. Absent: no lever is on. */
20802
20925
  enforcement?: {
20803
20926
  strict_mode?: components["schemas"]["TypeLeverStrict"] & unknown;
@@ -20834,7 +20957,7 @@ interface operations {
20834
20957
  };
20835
20958
  /**
20836
20959
  * @description - `missing_required_field`: a lever lacks `types` or `sources`.
20837
- * - `validation_error`: the body names a setting Marfa doesn't know, a retention value is out of range, or `instance_id` names a different instance.
20960
+ * - `validation_error`: the body names a setting Marfa doesn't know, a retention value is out of range, the name is invalid, or `instance_id` names a different instance.
20838
20961
  */
20839
20962
  400: {
20840
20963
  headers: {
@@ -21755,16 +21878,31 @@ interface operations {
21755
21878
  };
21756
21879
  };
21757
21880
  };
21758
- listSignIns: {
21881
+ updateOwner: {
21759
21882
  parameters: {
21760
21883
  query?: never;
21761
- header?: never;
21884
+ header?: {
21885
+ /** @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. */
21886
+ "X-Marfa-Instance-Id"?: string;
21887
+ };
21762
21888
  path?: never;
21763
21889
  cookie?: never;
21764
21890
  };
21765
- requestBody?: never;
21891
+ requestBody: {
21892
+ content: {
21893
+ "application/json": {
21894
+ /**
21895
+ * Format: email
21896
+ * @description Email address used to sign in. Stored in lowercase; changing it clears email verification.
21897
+ */
21898
+ email?: string;
21899
+ /** @description Display name, without control or bidirectional formatting characters. Spaces at each end are trimmed. */
21900
+ name?: string;
21901
+ };
21902
+ };
21903
+ };
21766
21904
  responses: {
21767
- /** @description Returns every live sign-in. */
21905
+ /** @description The updated owner. */
21768
21906
  200: {
21769
21907
  headers: {
21770
21908
  "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
@@ -21775,10 +21913,10 @@ interface operations {
21775
21913
  [name: string]: unknown;
21776
21914
  };
21777
21915
  content: {
21778
- "application/json": components["schemas"]["SignInList"];
21916
+ "application/json": components["schemas"]["Owner"];
21779
21917
  };
21780
21918
  };
21781
- /** @description - `validation_error`: the query has a parameter this endpoint doesn't take. */
21919
+ /** @description The body is empty, has an unknown field, or a field is invalid. */
21782
21920
  400: {
21783
21921
  headers: {
21784
21922
  "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
@@ -21790,7 +21928,7 @@ interface operations {
21790
21928
  [name: string]: unknown;
21791
21929
  };
21792
21930
  content: {
21793
- "application/json": components["schemas"]["ValidationErrorRefusal"];
21931
+ "application/json": components["schemas"]["MissingRequiredFieldOrValidationErrorRefusal"];
21794
21932
  };
21795
21933
  };
21796
21934
  /** @description `unauthorized`: the request has no credential, or its credential is not valid. */
@@ -21808,7 +21946,7 @@ interface operations {
21808
21946
  "application/json": components["schemas"]["UnauthorizedRefusal"];
21809
21947
  };
21810
21948
  };
21811
- /** @description - `forbidden`: the request carries a key or an app's token rather than the owner's browser session or the local command's authority. */
21949
+ /** @description The request needs private machine authority or direct owner authentication within five minutes. */
21812
21950
  403: {
21813
21951
  headers: {
21814
21952
  "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
@@ -21823,8 +21961,8 @@ interface operations {
21823
21961
  "application/json": components["schemas"]["ForbiddenRefusal"];
21824
21962
  };
21825
21963
  };
21826
- /** @description `rate_limited`: you sent too many requests. Wait for the number of seconds in `Retry-After`, then try again. */
21827
- 429: {
21964
+ /** @description The owner is unavailable. */
21965
+ 404: {
21828
21966
  headers: {
21829
21967
  "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
21830
21968
  "X-Request-ID": components["headers"]["X-Request-ID"];
@@ -21832,15 +21970,14 @@ interface operations {
21832
21970
  "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
21833
21971
  "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
21834
21972
  "X-Error-Code": components["headers"]["X-Error-Code"];
21835
- "Retry-After": components["headers"]["Retry-After"];
21836
21973
  [name: string]: unknown;
21837
21974
  };
21838
21975
  content: {
21839
- "application/json": components["schemas"]["RateLimitedRefusal"];
21976
+ "application/json": components["schemas"]["OwnerNotFoundRefusal"];
21840
21977
  };
21841
21978
  };
21842
- /** @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. */
21843
- 500: {
21979
+ /** @description `instance_changed`: `X-Marfa-Instance-Id` names another instance. Nothing is written. Rebuild the working copy from the instance at this address. */
21980
+ 409: {
21844
21981
  headers: {
21845
21982
  "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
21846
21983
  "X-Request-ID": components["headers"]["X-Request-ID"];
@@ -21851,26 +21988,23 @@ interface operations {
21851
21988
  [name: string]: unknown;
21852
21989
  };
21853
21990
  content: {
21854
- "application/json": components["schemas"]["InternalErrorRefusal"];
21991
+ "application/json": components["schemas"]["InstanceChangedRefusal"];
21855
21992
  };
21856
21993
  };
21857
- /** @description `write_contention`: the database was busy, and Marfa couldn't complete the request in time. Nothing changed. Try the request again. */
21858
- 503: {
21994
+ /** @description `request_too_large`: the request body is larger than this instance accepts. */
21995
+ 413: {
21859
21996
  headers: {
21860
21997
  "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
21861
21998
  "X-Request-ID": components["headers"]["X-Request-ID"];
21862
- "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
21863
- "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
21864
- "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
21865
21999
  "X-Error-Code": components["headers"]["X-Error-Code"];
21866
22000
  [name: string]: unknown;
21867
22001
  };
21868
22002
  content: {
21869
- "application/json": components["schemas"]["WriteContentionRefusal"];
22003
+ "application/json": components["schemas"]["RequestTooLargeRefusal"];
21870
22004
  };
21871
22005
  };
21872
- /** @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. */
21873
- 507: {
22006
+ /** @description `rate_limited`: you sent too many requests. Wait for the number of seconds in `Retry-After`, then try again. */
22007
+ 429: {
21874
22008
  headers: {
21875
22009
  "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
21876
22010
  "X-Request-ID": components["headers"]["X-Request-ID"];
@@ -21878,48 +22012,30 @@ interface operations {
21878
22012
  "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
21879
22013
  "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
21880
22014
  "X-Error-Code": components["headers"]["X-Error-Code"];
22015
+ "Retry-After": components["headers"]["Retry-After"];
21881
22016
  [name: string]: unknown;
21882
22017
  };
21883
22018
  content: {
21884
- "application/json": components["schemas"]["InsufficientStorageRefusal"];
22019
+ "application/json": components["schemas"]["RateLimitedRefusal"];
21885
22020
  };
21886
22021
  };
21887
- };
21888
- };
21889
- endSignIn: {
21890
- parameters: {
21891
- query?: {
21892
- /** @description For an app, also revoke every key it minted, as its `minted_by` rows show. Only an app takes it. */
21893
- revoke_keys?: "true" | "false";
21894
- };
21895
- header?: {
21896
- /** @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. */
21897
- "X-Marfa-Instance-Id"?: string;
21898
- };
21899
- path: {
21900
- /** @description The ID of the sign-in. */
21901
- id: string;
21902
- };
21903
- cookie?: never;
21904
- };
21905
- requestBody?: never;
21906
- responses: {
21907
- /** @description Returns `ok: true`. The sign-in has ended. */
21908
- 200: {
22022
+ /** @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. */
22023
+ 500: {
21909
22024
  headers: {
21910
22025
  "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
21911
22026
  "X-Request-ID": components["headers"]["X-Request-ID"];
21912
22027
  "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
21913
22028
  "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
21914
22029
  "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
22030
+ "X-Error-Code": components["headers"]["X-Error-Code"];
21915
22031
  [name: string]: unknown;
21916
22032
  };
21917
22033
  content: {
21918
- "application/json": components["schemas"]["Ok"];
22034
+ "application/json": components["schemas"]["InternalErrorRefusal"];
21919
22035
  };
21920
22036
  };
21921
- /** @description - `validation_error`: `revoke_keys` is `true` and the ID names a browser or a key. */
21922
- 400: {
22037
+ /** @description `write_contention`: the database was busy, and Marfa couldn't complete the request in time. Nothing changed. Try the request again. */
22038
+ 503: {
21923
22039
  headers: {
21924
22040
  "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
21925
22041
  "X-Request-ID": components["headers"]["X-Request-ID"];
@@ -21930,11 +22046,11 @@ interface operations {
21930
22046
  [name: string]: unknown;
21931
22047
  };
21932
22048
  content: {
21933
- "application/json": components["schemas"]["ValidationErrorRefusal"];
22049
+ "application/json": components["schemas"]["WriteContentionRefusal"];
21934
22050
  };
21935
22051
  };
21936
- /** @description `unauthorized`: the request has no credential, or its credential is not valid. */
21937
- 401: {
22052
+ /** @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. */
22053
+ 507: {
21938
22054
  headers: {
21939
22055
  "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
21940
22056
  "X-Request-ID": components["headers"]["X-Request-ID"];
@@ -21945,26 +22061,36 @@ interface operations {
21945
22061
  [name: string]: unknown;
21946
22062
  };
21947
22063
  content: {
21948
- "application/json": components["schemas"]["UnauthorizedRefusal"];
22064
+ "application/json": components["schemas"]["InsufficientStorageRefusal"];
21949
22065
  };
21950
22066
  };
21951
- /** @description - `forbidden`: the request carries a key or an app's token rather than the owner's browser session or the local command's authority, or the browser signed in more than five minutes ago. */
21952
- 403: {
22067
+ };
22068
+ };
22069
+ listSignIns: {
22070
+ parameters: {
22071
+ query?: never;
22072
+ header?: never;
22073
+ path?: never;
22074
+ cookie?: never;
22075
+ };
22076
+ requestBody?: never;
22077
+ responses: {
22078
+ /** @description Returns every live sign-in. */
22079
+ 200: {
21953
22080
  headers: {
21954
22081
  "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
21955
22082
  "X-Request-ID": components["headers"]["X-Request-ID"];
21956
22083
  "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
21957
22084
  "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
21958
22085
  "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
21959
- "X-Error-Code": components["headers"]["X-Error-Code"];
21960
22086
  [name: string]: unknown;
21961
22087
  };
21962
22088
  content: {
21963
- "application/json": components["schemas"]["ForbiddenRefusal"];
22089
+ "application/json": components["schemas"]["SignInList"];
21964
22090
  };
21965
22091
  };
21966
- /** @description - `sign_in_not_found`: no live sign-in of the owner has this ID. It may have ended or expired. */
21967
- 404: {
22092
+ /** @description - `validation_error`: the query has a parameter this endpoint doesn't take. */
22093
+ 400: {
21968
22094
  headers: {
21969
22095
  "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
21970
22096
  "X-Request-ID": components["headers"]["X-Request-ID"];
@@ -21975,11 +22101,11 @@ interface operations {
21975
22101
  [name: string]: unknown;
21976
22102
  };
21977
22103
  content: {
21978
- "application/json": components["schemas"]["SignInNotFoundRefusal"];
22104
+ "application/json": components["schemas"]["ValidationErrorRefusal"];
21979
22105
  };
21980
22106
  };
21981
- /** @description `instance_changed`: `X-Marfa-Instance-Id` names another instance. Nothing is written. Rebuild the working copy from the instance at this address. */
21982
- 409: {
22107
+ /** @description `unauthorized`: the request has no credential, or its credential is not valid. */
22108
+ 401: {
21983
22109
  headers: {
21984
22110
  "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
21985
22111
  "X-Request-ID": components["headers"]["X-Request-ID"];
@@ -21990,19 +22116,22 @@ interface operations {
21990
22116
  [name: string]: unknown;
21991
22117
  };
21992
22118
  content: {
21993
- "application/json": components["schemas"]["InstanceChangedRefusal"];
22119
+ "application/json": components["schemas"]["UnauthorizedRefusal"];
21994
22120
  };
21995
22121
  };
21996
- /** @description `request_too_large`: the request body is larger than this instance accepts. */
21997
- 413: {
22122
+ /** @description - `forbidden`: the request carries a key or an app's token rather than the owner's browser session or the local command's authority. */
22123
+ 403: {
21998
22124
  headers: {
21999
22125
  "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
22000
22126
  "X-Request-ID": components["headers"]["X-Request-ID"];
22127
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
22128
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
22129
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
22001
22130
  "X-Error-Code": components["headers"]["X-Error-Code"];
22002
22131
  [name: string]: unknown;
22003
22132
  };
22004
22133
  content: {
22005
- "application/json": components["schemas"]["RequestTooLargeRefusal"];
22134
+ "application/json": components["schemas"]["ForbiddenRefusal"];
22006
22135
  };
22007
22136
  };
22008
22137
  /** @description `rate_limited`: you sent too many requests. Wait for the number of seconds in `Retry-After`, then try again. */
@@ -22068,9 +22197,12 @@ interface operations {
22068
22197
  };
22069
22198
  };
22070
22199
  };
22071
- updateSignIn: {
22200
+ endSignIn: {
22072
22201
  parameters: {
22073
- query?: never;
22202
+ query?: {
22203
+ /** @description For an app, also revoke every key it minted, as its `minted_by` rows show. Only an app takes it. */
22204
+ revoke_keys?: "true" | "false";
22205
+ };
22074
22206
  header?: {
22075
22207
  /** @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. */
22076
22208
  "X-Marfa-Instance-Id"?: string;
@@ -22081,10 +22213,189 @@ interface operations {
22081
22213
  };
22082
22214
  cookie?: never;
22083
22215
  };
22084
- requestBody: {
22085
- content: {
22086
- "application/json": {
22087
- /**
22216
+ requestBody?: never;
22217
+ responses: {
22218
+ /** @description Returns `ok: true`. The sign-in has ended. */
22219
+ 200: {
22220
+ headers: {
22221
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
22222
+ "X-Request-ID": components["headers"]["X-Request-ID"];
22223
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
22224
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
22225
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
22226
+ [name: string]: unknown;
22227
+ };
22228
+ content: {
22229
+ "application/json": components["schemas"]["Ok"];
22230
+ };
22231
+ };
22232
+ /** @description - `validation_error`: `revoke_keys` is `true` and the ID names a browser or a key. */
22233
+ 400: {
22234
+ headers: {
22235
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
22236
+ "X-Request-ID": components["headers"]["X-Request-ID"];
22237
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
22238
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
22239
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
22240
+ "X-Error-Code": components["headers"]["X-Error-Code"];
22241
+ [name: string]: unknown;
22242
+ };
22243
+ content: {
22244
+ "application/json": components["schemas"]["ValidationErrorRefusal"];
22245
+ };
22246
+ };
22247
+ /** @description `unauthorized`: the request has no credential, or its credential is not valid. */
22248
+ 401: {
22249
+ headers: {
22250
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
22251
+ "X-Request-ID": components["headers"]["X-Request-ID"];
22252
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
22253
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
22254
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
22255
+ "X-Error-Code": components["headers"]["X-Error-Code"];
22256
+ [name: string]: unknown;
22257
+ };
22258
+ content: {
22259
+ "application/json": components["schemas"]["UnauthorizedRefusal"];
22260
+ };
22261
+ };
22262
+ /** @description - `forbidden`: the request carries a key or an app's token rather than the owner's browser session or the local command's authority, or the browser signed in more than five minutes ago. */
22263
+ 403: {
22264
+ headers: {
22265
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
22266
+ "X-Request-ID": components["headers"]["X-Request-ID"];
22267
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
22268
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
22269
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
22270
+ "X-Error-Code": components["headers"]["X-Error-Code"];
22271
+ [name: string]: unknown;
22272
+ };
22273
+ content: {
22274
+ "application/json": components["schemas"]["ForbiddenRefusal"];
22275
+ };
22276
+ };
22277
+ /** @description - `sign_in_not_found`: no live sign-in of the owner has this ID. It may have ended or expired. */
22278
+ 404: {
22279
+ headers: {
22280
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
22281
+ "X-Request-ID": components["headers"]["X-Request-ID"];
22282
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
22283
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
22284
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
22285
+ "X-Error-Code": components["headers"]["X-Error-Code"];
22286
+ [name: string]: unknown;
22287
+ };
22288
+ content: {
22289
+ "application/json": components["schemas"]["SignInNotFoundRefusal"];
22290
+ };
22291
+ };
22292
+ /** @description `instance_changed`: `X-Marfa-Instance-Id` names another instance. Nothing is written. Rebuild the working copy from the instance at this address. */
22293
+ 409: {
22294
+ headers: {
22295
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
22296
+ "X-Request-ID": components["headers"]["X-Request-ID"];
22297
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
22298
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
22299
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
22300
+ "X-Error-Code": components["headers"]["X-Error-Code"];
22301
+ [name: string]: unknown;
22302
+ };
22303
+ content: {
22304
+ "application/json": components["schemas"]["InstanceChangedRefusal"];
22305
+ };
22306
+ };
22307
+ /** @description `request_too_large`: the request body is larger than this instance accepts. */
22308
+ 413: {
22309
+ headers: {
22310
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
22311
+ "X-Request-ID": components["headers"]["X-Request-ID"];
22312
+ "X-Error-Code": components["headers"]["X-Error-Code"];
22313
+ [name: string]: unknown;
22314
+ };
22315
+ content: {
22316
+ "application/json": components["schemas"]["RequestTooLargeRefusal"];
22317
+ };
22318
+ };
22319
+ /** @description `rate_limited`: you sent too many requests. Wait for the number of seconds in `Retry-After`, then try again. */
22320
+ 429: {
22321
+ headers: {
22322
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
22323
+ "X-Request-ID": components["headers"]["X-Request-ID"];
22324
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
22325
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
22326
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
22327
+ "X-Error-Code": components["headers"]["X-Error-Code"];
22328
+ "Retry-After": components["headers"]["Retry-After"];
22329
+ [name: string]: unknown;
22330
+ };
22331
+ content: {
22332
+ "application/json": components["schemas"]["RateLimitedRefusal"];
22333
+ };
22334
+ };
22335
+ /** @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. */
22336
+ 500: {
22337
+ headers: {
22338
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
22339
+ "X-Request-ID": components["headers"]["X-Request-ID"];
22340
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
22341
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
22342
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
22343
+ "X-Error-Code": components["headers"]["X-Error-Code"];
22344
+ [name: string]: unknown;
22345
+ };
22346
+ content: {
22347
+ "application/json": components["schemas"]["InternalErrorRefusal"];
22348
+ };
22349
+ };
22350
+ /** @description `write_contention`: the database was busy, and Marfa couldn't complete the request in time. Nothing changed. Try the request again. */
22351
+ 503: {
22352
+ headers: {
22353
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
22354
+ "X-Request-ID": components["headers"]["X-Request-ID"];
22355
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
22356
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
22357
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
22358
+ "X-Error-Code": components["headers"]["X-Error-Code"];
22359
+ [name: string]: unknown;
22360
+ };
22361
+ content: {
22362
+ "application/json": components["schemas"]["WriteContentionRefusal"];
22363
+ };
22364
+ };
22365
+ /** @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. */
22366
+ 507: {
22367
+ headers: {
22368
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
22369
+ "X-Request-ID": components["headers"]["X-Request-ID"];
22370
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
22371
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
22372
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
22373
+ "X-Error-Code": components["headers"]["X-Error-Code"];
22374
+ [name: string]: unknown;
22375
+ };
22376
+ content: {
22377
+ "application/json": components["schemas"]["InsufficientStorageRefusal"];
22378
+ };
22379
+ };
22380
+ };
22381
+ };
22382
+ updateSignIn: {
22383
+ parameters: {
22384
+ query?: never;
22385
+ header?: {
22386
+ /** @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. */
22387
+ "X-Marfa-Instance-Id"?: string;
22388
+ };
22389
+ path: {
22390
+ /** @description The ID of the sign-in. */
22391
+ id: string;
22392
+ };
22393
+ cookie?: never;
22394
+ };
22395
+ requestBody: {
22396
+ content: {
22397
+ "application/json": {
22398
+ /**
22088
22399
  * @description The sign-in's new name. Marfa trims spaces from each end.
22089
22400
  * @example Marfa app on the studio laptop
22090
22401
  */
@@ -22260,6 +22571,690 @@ interface operations {
22260
22571
  };
22261
22572
  };
22262
22573
  };
22574
+ listOwnerPasskeys: {
22575
+ parameters: {
22576
+ query?: never;
22577
+ header?: never;
22578
+ path?: never;
22579
+ cookie?: never;
22580
+ };
22581
+ requestBody?: never;
22582
+ responses: {
22583
+ /** @description Returns every registered owner passkey. */
22584
+ 200: {
22585
+ headers: {
22586
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
22587
+ "X-Request-ID": components["headers"]["X-Request-ID"];
22588
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
22589
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
22590
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
22591
+ [name: string]: unknown;
22592
+ };
22593
+ content: {
22594
+ "application/json": components["schemas"]["OwnerPasskeyList"];
22595
+ };
22596
+ };
22597
+ /** @description - `validation_error`: the query has a parameter this endpoint doesn't take. */
22598
+ 400: {
22599
+ headers: {
22600
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
22601
+ "X-Request-ID": components["headers"]["X-Request-ID"];
22602
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
22603
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
22604
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
22605
+ "X-Error-Code": components["headers"]["X-Error-Code"];
22606
+ [name: string]: unknown;
22607
+ };
22608
+ content: {
22609
+ "application/json": components["schemas"]["ValidationErrorRefusal"];
22610
+ };
22611
+ };
22612
+ /** @description `unauthorized`: the request has no credential, or its credential is not valid. */
22613
+ 401: {
22614
+ headers: {
22615
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
22616
+ "X-Request-ID": components["headers"]["X-Request-ID"];
22617
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
22618
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
22619
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
22620
+ "X-Error-Code": components["headers"]["X-Error-Code"];
22621
+ [name: string]: unknown;
22622
+ };
22623
+ content: {
22624
+ "application/json": components["schemas"]["UnauthorizedRefusal"];
22625
+ };
22626
+ };
22627
+ /** @description Requires direct owner or local authority. Mutations require an owner sign-in within five minutes. */
22628
+ 403: {
22629
+ headers: {
22630
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
22631
+ "X-Request-ID": components["headers"]["X-Request-ID"];
22632
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
22633
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
22634
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
22635
+ "X-Error-Code": components["headers"]["X-Error-Code"];
22636
+ [name: string]: unknown;
22637
+ };
22638
+ content: {
22639
+ "application/json": components["schemas"]["ForbiddenRefusal"];
22640
+ };
22641
+ };
22642
+ /** @description `rate_limited`: you sent too many requests. Wait for the number of seconds in `Retry-After`, then try again. */
22643
+ 429: {
22644
+ headers: {
22645
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
22646
+ "X-Request-ID": components["headers"]["X-Request-ID"];
22647
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
22648
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
22649
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
22650
+ "X-Error-Code": components["headers"]["X-Error-Code"];
22651
+ "Retry-After": components["headers"]["Retry-After"];
22652
+ [name: string]: unknown;
22653
+ };
22654
+ content: {
22655
+ "application/json": components["schemas"]["RateLimitedRefusal"];
22656
+ };
22657
+ };
22658
+ /** @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. */
22659
+ 500: {
22660
+ headers: {
22661
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
22662
+ "X-Request-ID": components["headers"]["X-Request-ID"];
22663
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
22664
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
22665
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
22666
+ "X-Error-Code": components["headers"]["X-Error-Code"];
22667
+ [name: string]: unknown;
22668
+ };
22669
+ content: {
22670
+ "application/json": components["schemas"]["InternalErrorRefusal"];
22671
+ };
22672
+ };
22673
+ /** @description `write_contention`: the database was busy, and Marfa couldn't complete the request in time. Nothing changed. Try the request again. */
22674
+ 503: {
22675
+ headers: {
22676
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
22677
+ "X-Request-ID": components["headers"]["X-Request-ID"];
22678
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
22679
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
22680
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
22681
+ "X-Error-Code": components["headers"]["X-Error-Code"];
22682
+ [name: string]: unknown;
22683
+ };
22684
+ content: {
22685
+ "application/json": components["schemas"]["WriteContentionRefusal"];
22686
+ };
22687
+ };
22688
+ /** @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. */
22689
+ 507: {
22690
+ headers: {
22691
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
22692
+ "X-Request-ID": components["headers"]["X-Request-ID"];
22693
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
22694
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
22695
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
22696
+ "X-Error-Code": components["headers"]["X-Error-Code"];
22697
+ [name: string]: unknown;
22698
+ };
22699
+ content: {
22700
+ "application/json": components["schemas"]["InsufficientStorageRefusal"];
22701
+ };
22702
+ };
22703
+ };
22704
+ };
22705
+ removeOwnerPasskey: {
22706
+ parameters: {
22707
+ query?: never;
22708
+ header?: {
22709
+ /** @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. */
22710
+ "X-Marfa-Instance-Id"?: string;
22711
+ };
22712
+ path: {
22713
+ /** @description The ID of the passkey. */
22714
+ id: string;
22715
+ };
22716
+ cookie?: never;
22717
+ };
22718
+ requestBody?: never;
22719
+ responses: {
22720
+ /** @description Returns `ok: true`. The passkey was removed. */
22721
+ 200: {
22722
+ headers: {
22723
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
22724
+ "X-Request-ID": components["headers"]["X-Request-ID"];
22725
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
22726
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
22727
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
22728
+ [name: string]: unknown;
22729
+ };
22730
+ content: {
22731
+ "application/json": components["schemas"]["Ok"];
22732
+ };
22733
+ };
22734
+ /** @description - `validation_error`: the query has a parameter this endpoint doesn't take. */
22735
+ 400: {
22736
+ headers: {
22737
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
22738
+ "X-Request-ID": components["headers"]["X-Request-ID"];
22739
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
22740
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
22741
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
22742
+ "X-Error-Code": components["headers"]["X-Error-Code"];
22743
+ [name: string]: unknown;
22744
+ };
22745
+ content: {
22746
+ "application/json": components["schemas"]["ValidationErrorRefusal"];
22747
+ };
22748
+ };
22749
+ /** @description `unauthorized`: the request has no credential, or its credential is not valid. */
22750
+ 401: {
22751
+ headers: {
22752
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
22753
+ "X-Request-ID": components["headers"]["X-Request-ID"];
22754
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
22755
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
22756
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
22757
+ "X-Error-Code": components["headers"]["X-Error-Code"];
22758
+ [name: string]: unknown;
22759
+ };
22760
+ content: {
22761
+ "application/json": components["schemas"]["UnauthorizedRefusal"];
22762
+ };
22763
+ };
22764
+ /** @description Requires direct owner or local authority. Mutations require an owner sign-in within five minutes. */
22765
+ 403: {
22766
+ headers: {
22767
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
22768
+ "X-Request-ID": components["headers"]["X-Request-ID"];
22769
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
22770
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
22771
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
22772
+ "X-Error-Code": components["headers"]["X-Error-Code"];
22773
+ [name: string]: unknown;
22774
+ };
22775
+ content: {
22776
+ "application/json": components["schemas"]["ForbiddenRefusal"];
22777
+ };
22778
+ };
22779
+ /** @description No registered passkey of the owner has this ID. */
22780
+ 404: {
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
+ [name: string]: unknown;
22789
+ };
22790
+ content: {
22791
+ "application/json": components["schemas"]["PasskeyNotFoundRefusal"];
22792
+ };
22793
+ };
22794
+ /** @description `instance_changed`: `X-Marfa-Instance-Id` names another instance. Nothing is written. Rebuild the working copy from the instance at this address. */
22795
+ 409: {
22796
+ headers: {
22797
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
22798
+ "X-Request-ID": components["headers"]["X-Request-ID"];
22799
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
22800
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
22801
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
22802
+ "X-Error-Code": components["headers"]["X-Error-Code"];
22803
+ [name: string]: unknown;
22804
+ };
22805
+ content: {
22806
+ "application/json": components["schemas"]["InstanceChangedRefusal"];
22807
+ };
22808
+ };
22809
+ /** @description `request_too_large`: the request body is larger than this instance accepts. */
22810
+ 413: {
22811
+ headers: {
22812
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
22813
+ "X-Request-ID": components["headers"]["X-Request-ID"];
22814
+ "X-Error-Code": components["headers"]["X-Error-Code"];
22815
+ [name: string]: unknown;
22816
+ };
22817
+ content: {
22818
+ "application/json": components["schemas"]["RequestTooLargeRefusal"];
22819
+ };
22820
+ };
22821
+ /** @description `rate_limited`: you sent too many requests. Wait for the number of seconds in `Retry-After`, then try again. */
22822
+ 429: {
22823
+ headers: {
22824
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
22825
+ "X-Request-ID": components["headers"]["X-Request-ID"];
22826
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
22827
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
22828
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
22829
+ "X-Error-Code": components["headers"]["X-Error-Code"];
22830
+ "Retry-After": components["headers"]["Retry-After"];
22831
+ [name: string]: unknown;
22832
+ };
22833
+ content: {
22834
+ "application/json": components["schemas"]["RateLimitedRefusal"];
22835
+ };
22836
+ };
22837
+ /** @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. */
22838
+ 500: {
22839
+ headers: {
22840
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
22841
+ "X-Request-ID": components["headers"]["X-Request-ID"];
22842
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
22843
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
22844
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
22845
+ "X-Error-Code": components["headers"]["X-Error-Code"];
22846
+ [name: string]: unknown;
22847
+ };
22848
+ content: {
22849
+ "application/json": components["schemas"]["InternalErrorRefusal"];
22850
+ };
22851
+ };
22852
+ /** @description `write_contention`: the database was busy, and Marfa couldn't complete the request in time. Nothing changed. Try the request again. */
22853
+ 503: {
22854
+ headers: {
22855
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
22856
+ "X-Request-ID": components["headers"]["X-Request-ID"];
22857
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
22858
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
22859
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
22860
+ "X-Error-Code": components["headers"]["X-Error-Code"];
22861
+ [name: string]: unknown;
22862
+ };
22863
+ content: {
22864
+ "application/json": components["schemas"]["WriteContentionRefusal"];
22865
+ };
22866
+ };
22867
+ /** @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. */
22868
+ 507: {
22869
+ headers: {
22870
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
22871
+ "X-Request-ID": components["headers"]["X-Request-ID"];
22872
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
22873
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
22874
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
22875
+ "X-Error-Code": components["headers"]["X-Error-Code"];
22876
+ [name: string]: unknown;
22877
+ };
22878
+ content: {
22879
+ "application/json": components["schemas"]["InsufficientStorageRefusal"];
22880
+ };
22881
+ };
22882
+ };
22883
+ };
22884
+ updateOwnerPasskey: {
22885
+ parameters: {
22886
+ query?: never;
22887
+ header?: {
22888
+ /** @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. */
22889
+ "X-Marfa-Instance-Id"?: string;
22890
+ };
22891
+ path: {
22892
+ /** @description The ID of the passkey. */
22893
+ id: string;
22894
+ };
22895
+ cookie?: never;
22896
+ };
22897
+ requestBody: {
22898
+ content: {
22899
+ "application/json": {
22900
+ /** @description The new name. Marfa trims spaces from each end. */
22901
+ name: string;
22902
+ };
22903
+ };
22904
+ };
22905
+ responses: {
22906
+ /** @description Returns the renamed passkey. */
22907
+ 200: {
22908
+ headers: {
22909
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
22910
+ "X-Request-ID": components["headers"]["X-Request-ID"];
22911
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
22912
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
22913
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
22914
+ [name: string]: unknown;
22915
+ };
22916
+ content: {
22917
+ "application/json": components["schemas"]["OwnerPasskey"];
22918
+ };
22919
+ };
22920
+ /** @description The name is missing, empty, too long, or holds a control or bidirectional character, or the body contains another field. */
22921
+ 400: {
22922
+ headers: {
22923
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
22924
+ "X-Request-ID": components["headers"]["X-Request-ID"];
22925
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
22926
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
22927
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
22928
+ "X-Error-Code": components["headers"]["X-Error-Code"];
22929
+ [name: string]: unknown;
22930
+ };
22931
+ content: {
22932
+ "application/json": components["schemas"]["MissingRequiredFieldOrValidationErrorRefusal"];
22933
+ };
22934
+ };
22935
+ /** @description `unauthorized`: the request has no credential, or its credential is not valid. */
22936
+ 401: {
22937
+ headers: {
22938
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
22939
+ "X-Request-ID": components["headers"]["X-Request-ID"];
22940
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
22941
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
22942
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
22943
+ "X-Error-Code": components["headers"]["X-Error-Code"];
22944
+ [name: string]: unknown;
22945
+ };
22946
+ content: {
22947
+ "application/json": components["schemas"]["UnauthorizedRefusal"];
22948
+ };
22949
+ };
22950
+ /** @description Requires direct owner or local authority. Mutations require an owner sign-in within five minutes. */
22951
+ 403: {
22952
+ headers: {
22953
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
22954
+ "X-Request-ID": components["headers"]["X-Request-ID"];
22955
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
22956
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
22957
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
22958
+ "X-Error-Code": components["headers"]["X-Error-Code"];
22959
+ [name: string]: unknown;
22960
+ };
22961
+ content: {
22962
+ "application/json": components["schemas"]["ForbiddenRefusal"];
22963
+ };
22964
+ };
22965
+ /** @description No registered passkey of the owner has this ID. */
22966
+ 404: {
22967
+ headers: {
22968
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
22969
+ "X-Request-ID": components["headers"]["X-Request-ID"];
22970
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
22971
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
22972
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
22973
+ "X-Error-Code": components["headers"]["X-Error-Code"];
22974
+ [name: string]: unknown;
22975
+ };
22976
+ content: {
22977
+ "application/json": components["schemas"]["PasskeyNotFoundRefusal"];
22978
+ };
22979
+ };
22980
+ /** @description `instance_changed`: `X-Marfa-Instance-Id` names another instance. Nothing is written. Rebuild the working copy from the instance at this address. */
22981
+ 409: {
22982
+ headers: {
22983
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
22984
+ "X-Request-ID": components["headers"]["X-Request-ID"];
22985
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
22986
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
22987
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
22988
+ "X-Error-Code": components["headers"]["X-Error-Code"];
22989
+ [name: string]: unknown;
22990
+ };
22991
+ content: {
22992
+ "application/json": components["schemas"]["InstanceChangedRefusal"];
22993
+ };
22994
+ };
22995
+ /** @description `request_too_large`: the request body is larger than this instance accepts. */
22996
+ 413: {
22997
+ headers: {
22998
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
22999
+ "X-Request-ID": components["headers"]["X-Request-ID"];
23000
+ "X-Error-Code": components["headers"]["X-Error-Code"];
23001
+ [name: string]: unknown;
23002
+ };
23003
+ content: {
23004
+ "application/json": components["schemas"]["RequestTooLargeRefusal"];
23005
+ };
23006
+ };
23007
+ /** @description `rate_limited`: you sent too many requests. Wait for the number of seconds in `Retry-After`, then try again. */
23008
+ 429: {
23009
+ headers: {
23010
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
23011
+ "X-Request-ID": components["headers"]["X-Request-ID"];
23012
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
23013
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
23014
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
23015
+ "X-Error-Code": components["headers"]["X-Error-Code"];
23016
+ "Retry-After": components["headers"]["Retry-After"];
23017
+ [name: string]: unknown;
23018
+ };
23019
+ content: {
23020
+ "application/json": components["schemas"]["RateLimitedRefusal"];
23021
+ };
23022
+ };
23023
+ /** @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. */
23024
+ 500: {
23025
+ headers: {
23026
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
23027
+ "X-Request-ID": components["headers"]["X-Request-ID"];
23028
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
23029
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
23030
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
23031
+ "X-Error-Code": components["headers"]["X-Error-Code"];
23032
+ [name: string]: unknown;
23033
+ };
23034
+ content: {
23035
+ "application/json": components["schemas"]["InternalErrorRefusal"];
23036
+ };
23037
+ };
23038
+ /** @description `write_contention`: the database was busy, and Marfa couldn't complete the request in time. Nothing changed. Try the request again. */
23039
+ 503: {
23040
+ headers: {
23041
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
23042
+ "X-Request-ID": components["headers"]["X-Request-ID"];
23043
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
23044
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
23045
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
23046
+ "X-Error-Code": components["headers"]["X-Error-Code"];
23047
+ [name: string]: unknown;
23048
+ };
23049
+ content: {
23050
+ "application/json": components["schemas"]["WriteContentionRefusal"];
23051
+ };
23052
+ };
23053
+ /** @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. */
23054
+ 507: {
23055
+ headers: {
23056
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
23057
+ "X-Request-ID": components["headers"]["X-Request-ID"];
23058
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
23059
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
23060
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
23061
+ "X-Error-Code": components["headers"]["X-Error-Code"];
23062
+ [name: string]: unknown;
23063
+ };
23064
+ content: {
23065
+ "application/json": components["schemas"]["InsufficientStorageRefusal"];
23066
+ };
23067
+ };
23068
+ };
23069
+ };
23070
+ updateProfile: {
23071
+ parameters: {
23072
+ query?: never;
23073
+ header?: {
23074
+ /** @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. */
23075
+ "X-Marfa-Instance-Id"?: string;
23076
+ };
23077
+ path?: never;
23078
+ cookie?: never;
23079
+ };
23080
+ requestBody: {
23081
+ content: {
23082
+ "application/json": {
23083
+ /** @description Display name, without control or bidirectional formatting characters. Spaces at each end are trimmed. */
23084
+ name?: string;
23085
+ /**
23086
+ * Format: uri
23087
+ * @description HTTP or HTTPS avatar URL, at most 2048 characters. null clears it. Marfa does not fetch the URL.
23088
+ */
23089
+ avatar?: string | null;
23090
+ };
23091
+ };
23092
+ };
23093
+ responses: {
23094
+ /** @description Returns ok: true. The profile was updated. */
23095
+ 200: {
23096
+ headers: {
23097
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
23098
+ "X-Request-ID": components["headers"]["X-Request-ID"];
23099
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
23100
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
23101
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
23102
+ [name: string]: unknown;
23103
+ };
23104
+ content: {
23105
+ "application/json": components["schemas"]["Ok"];
23106
+ };
23107
+ };
23108
+ /** @description The body is empty, contains an unknown field, or a field is invalid. */
23109
+ 400: {
23110
+ headers: {
23111
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
23112
+ "X-Request-ID": components["headers"]["X-Request-ID"];
23113
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
23114
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
23115
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
23116
+ "X-Error-Code": components["headers"]["X-Error-Code"];
23117
+ [name: string]: unknown;
23118
+ };
23119
+ content: {
23120
+ "application/json": components["schemas"]["MissingRequiredFieldOrValidationErrorRefusal"];
23121
+ };
23122
+ };
23123
+ /** @description `unauthorized`: the request has no credential, or its credential is not valid. */
23124
+ 401: {
23125
+ headers: {
23126
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
23127
+ "X-Request-ID": components["headers"]["X-Request-ID"];
23128
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
23129
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
23130
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
23131
+ "X-Error-Code": components["headers"]["X-Error-Code"];
23132
+ [name: string]: unknown;
23133
+ };
23134
+ content: {
23135
+ "application/json": components["schemas"]["UnauthorizedRefusal"];
23136
+ };
23137
+ };
23138
+ /** @description The credential lacks profile write permission for a submitted field. */
23139
+ 403: {
23140
+ headers: {
23141
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
23142
+ "X-Request-ID": components["headers"]["X-Request-ID"];
23143
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
23144
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
23145
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
23146
+ "X-Error-Code": components["headers"]["X-Error-Code"];
23147
+ [name: string]: unknown;
23148
+ };
23149
+ content: {
23150
+ "application/json": components["schemas"]["ForbiddenRefusal"];
23151
+ };
23152
+ };
23153
+ /** @description The owner is unavailable. */
23154
+ 404: {
23155
+ headers: {
23156
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
23157
+ "X-Request-ID": components["headers"]["X-Request-ID"];
23158
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
23159
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
23160
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
23161
+ "X-Error-Code": components["headers"]["X-Error-Code"];
23162
+ [name: string]: unknown;
23163
+ };
23164
+ content: {
23165
+ "application/json": components["schemas"]["OwnerNotFoundRefusal"];
23166
+ };
23167
+ };
23168
+ /** @description `instance_changed`: `X-Marfa-Instance-Id` names another instance. Nothing is written. Rebuild the working copy from the instance at this address. */
23169
+ 409: {
23170
+ headers: {
23171
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
23172
+ "X-Request-ID": components["headers"]["X-Request-ID"];
23173
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
23174
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
23175
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
23176
+ "X-Error-Code": components["headers"]["X-Error-Code"];
23177
+ [name: string]: unknown;
23178
+ };
23179
+ content: {
23180
+ "application/json": components["schemas"]["InstanceChangedRefusal"];
23181
+ };
23182
+ };
23183
+ /** @description `request_too_large`: the request body is larger than this instance accepts. */
23184
+ 413: {
23185
+ headers: {
23186
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
23187
+ "X-Request-ID": components["headers"]["X-Request-ID"];
23188
+ "X-Error-Code": components["headers"]["X-Error-Code"];
23189
+ [name: string]: unknown;
23190
+ };
23191
+ content: {
23192
+ "application/json": components["schemas"]["RequestTooLargeRefusal"];
23193
+ };
23194
+ };
23195
+ /** @description `rate_limited`: you sent too many requests. Wait for the number of seconds in `Retry-After`, then try again. */
23196
+ 429: {
23197
+ headers: {
23198
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
23199
+ "X-Request-ID": components["headers"]["X-Request-ID"];
23200
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
23201
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
23202
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
23203
+ "X-Error-Code": components["headers"]["X-Error-Code"];
23204
+ "Retry-After": components["headers"]["Retry-After"];
23205
+ [name: string]: unknown;
23206
+ };
23207
+ content: {
23208
+ "application/json": components["schemas"]["RateLimitedRefusal"];
23209
+ };
23210
+ };
23211
+ /** @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. */
23212
+ 500: {
23213
+ headers: {
23214
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
23215
+ "X-Request-ID": components["headers"]["X-Request-ID"];
23216
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
23217
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
23218
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
23219
+ "X-Error-Code": components["headers"]["X-Error-Code"];
23220
+ [name: string]: unknown;
23221
+ };
23222
+ content: {
23223
+ "application/json": components["schemas"]["InternalErrorRefusal"];
23224
+ };
23225
+ };
23226
+ /** @description `write_contention`: the database was busy, and Marfa couldn't complete the request in time. Nothing changed. Try the request again. */
23227
+ 503: {
23228
+ headers: {
23229
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
23230
+ "X-Request-ID": components["headers"]["X-Request-ID"];
23231
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
23232
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
23233
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
23234
+ "X-Error-Code": components["headers"]["X-Error-Code"];
23235
+ [name: string]: unknown;
23236
+ };
23237
+ content: {
23238
+ "application/json": components["schemas"]["WriteContentionRefusal"];
23239
+ };
23240
+ };
23241
+ /** @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. */
23242
+ 507: {
23243
+ headers: {
23244
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
23245
+ "X-Request-ID": components["headers"]["X-Request-ID"];
23246
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
23247
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
23248
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
23249
+ "X-Error-Code": components["headers"]["X-Error-Code"];
23250
+ [name: string]: unknown;
23251
+ };
23252
+ content: {
23253
+ "application/json": components["schemas"]["InsufficientStorageRefusal"];
23254
+ };
23255
+ };
23256
+ };
23257
+ };
22263
23258
  exportData: {
22264
23259
  parameters: {
22265
23260
  query?: {