@withmarfa/client 0.0.6 → 0.0.7

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 +2692 -224
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -277,7 +277,7 @@ interface paths {
277
277
  };
278
278
  /**
279
279
  * Get a bulk-action job
280
- * @description Returns a bulk-action job's status and counts, and its `result` once it has finished. Only the credential that queued the job, or the operator key, can read it.
280
+ * @description Returns a bulk-action job's status and counts, and its `result` once it has finished. Only the credential that queued the job, or the holder of instance.read, can read it.
281
281
  */
282
282
  get: operations["getBulkActionJob"];
283
283
  put?: never;
@@ -624,6 +624,26 @@ interface paths {
624
624
  patch?: never;
625
625
  trace?: never;
626
626
  };
627
+ "/types/normalize": {
628
+ parameters: {
629
+ query?: never;
630
+ header?: never;
631
+ path?: never;
632
+ cookie?: never;
633
+ };
634
+ get?: never;
635
+ put?: never;
636
+ /**
637
+ * Normalize a type
638
+ * @description Normalizes a candidate definition and returns its declared form, the registered declared definition and the registered resolved definition. It does not register or replace a type.
639
+ */
640
+ post: operations["normalizeType"];
641
+ delete?: never;
642
+ options?: never;
643
+ head?: never;
644
+ patch?: never;
645
+ trace?: never;
646
+ };
627
647
  "/search": {
628
648
  parameters: {
629
649
  query?: never;
@@ -713,7 +733,7 @@ interface paths {
713
733
  };
714
734
  /**
715
735
  * List orphaned blobs
716
- * @description Returns the blobs that nothing references, as the last run of the `blob-orphans` housekeeping job found them, oldest first. Requires the operator key.
736
+ * @description Returns the blobs that nothing references, as the last run of the `blob-orphans` housekeeping job found them, oldest first. Requires instance.read.
717
737
  */
718
738
  get: operations["listBlobOrphans"];
719
739
  put?: never;
@@ -733,7 +753,7 @@ interface paths {
733
753
  };
734
754
  /**
735
755
  * List blob stores
736
- * @description Returns every store the instance has attached, including any it has since detached, and `min_copies`, the fewest live copies Marfa keeps of a blob. Requires the operator key.
756
+ * @description Returns every store the instance has attached, including any it has since detached, and `min_copies`, the fewest live copies Marfa keeps of a blob. Requires instance.read.
737
757
  */
738
758
  get: operations["listBlobStores"];
739
759
  put?: never;
@@ -816,7 +836,7 @@ interface paths {
816
836
  post?: never;
817
837
  /**
818
838
  * Delete a blob's copy in a store
819
- * @description Deletes the copy of a blob that one store holds, and its row in the location log. Requires the operator key.
839
+ * @description Deletes the copy of a blob that one store holds, and its row in the location log. Requires blobs.manage.
820
840
  */
821
841
  delete: operations["deleteBlobLocation"];
822
842
  options?: never;
@@ -833,7 +853,7 @@ interface paths {
833
853
  };
834
854
  /**
835
855
  * List housekeeping jobs
836
- * @description Returns every housekeeping job Marfa runs: its interval, when it's next due, whether a run holds it, and what its last run did. A job turned off by a server setting isn't listed, unless `/config` can turn it back on. Requires the operator key.
856
+ * @description Returns every housekeeping job Marfa runs: its interval, when it's next due, whether a run holds it, and what its last run did. A job a server setting switches off isn't listed. Requires instance.read.
837
857
  */
838
858
  get: operations["listHousekeeping"];
839
859
  put?: never;
@@ -855,7 +875,7 @@ interface paths {
855
875
  put?: never;
856
876
  /**
857
877
  * Run a housekeeping job
858
- * @description Runs a housekeeping job now, waits for it to finish, and returns what the run did. A failed run still returns `200`, with the failure in `outcome` and `error`. Requires the operator key.
878
+ * @description Runs a housekeeping job now, waits for it to finish, and returns what the run did. A failed run still returns `200`, with the failure in `outcome` and `error`. Requires instance.maintain.
859
879
  */
860
880
  post: operations["runHousekeeping"];
861
881
  delete?: never;
@@ -873,7 +893,7 @@ interface paths {
873
893
  };
874
894
  /**
875
895
  * List connectors
876
- * @description Returns your registration, or every registration if you use the operator key, newest first.
896
+ * @description Returns your registration, or every registration if you hold connectors.manage, newest first.
877
897
  */
878
898
  get: operations["listConnectors"];
879
899
  put?: never;
@@ -1104,7 +1124,7 @@ interface paths {
1104
1124
  post?: never;
1105
1125
  /**
1106
1126
  * Delete the state document
1107
- * @description Deletes the state document and every agreement of the connector's source, which every registration of that source reads. No hold is needed.
1127
+ * @description Deletes the state document, current problems and every agreement of the connector's source, which every registration of that source reads. No hold is needed.
1108
1128
  */
1109
1129
  delete: operations["deleteConnectorState"];
1110
1130
  options?: never;
@@ -1225,7 +1245,7 @@ interface paths {
1225
1245
  };
1226
1246
  /**
1227
1247
  * List API keys
1228
- * @description Returns the API keys you could have created, your own included, without their plaintext. The operator key gets every key. Requires `keys.mint` or the operator key.
1248
+ * @description Returns key metadata without plaintext. `keys.manage` and direct owner or local authority list all keys; `keys.mint` lists keys within the caller's current reach. Requires `keys.mint`, `keys.manage`, or direct owner or local authority.
1229
1249
  */
1230
1250
  get: operations["listKeys"];
1231
1251
  put?: never;
@@ -1272,14 +1292,14 @@ interface paths {
1272
1292
  post?: never;
1273
1293
  /**
1274
1294
  * Revoke an API key
1275
- * @description Revokes an API key at once: Marfa stops accepting it, ends its open event streams and stops its queued bulk actions. You can revoke any key you could have created, your own included. Requires `keys.mint` or the operator key.
1295
+ * @description Revokes a key, ending its event streams and queued bulk actions. `keys.manage` or direct owner or local authority can revoke any key. A caller with only `keys.mint` can revoke keys within its current reach.
1276
1296
  */
1277
1297
  delete: operations["revokeKey"];
1278
1298
  options?: never;
1279
1299
  head?: never;
1280
1300
  /**
1281
1301
  * Update an API key
1282
- * @description Updates a key's label, default tier, permissions, maps, claimed `sources` or enforcement levers, and returns it. Each field you send replaces its old value, and a field you leave out stays. Requires `keys.mint` or the operator key.
1302
+ * @description Updates a key and returns it. Each supplied field replaces its value; omitted fields stay unchanged. Requires `keys.mint`, `keys.manage`, or direct owner or local authority.
1283
1303
  */
1284
1304
  patch: operations["updateKey"];
1285
1305
  trace?: never;
@@ -1319,7 +1339,7 @@ interface paths {
1319
1339
  put?: never;
1320
1340
  /**
1321
1341
  * Restore from an archive
1322
- * @description Restores an archive that `GET /export?format=archive` made, and returns counts of what it wrote and skipped. Everything it writes commits together, so a failed restore writes nothing. Other writes wait until it ends. Requires the operator key.
1342
+ * @description Restores an exported archive atomically and returns counts of written and skipped records. Other writes wait until it finishes. Requires local authority or the owner, authenticated within five minutes.
1323
1343
  */
1324
1344
  post: operations["restoreArchive"];
1325
1345
  delete?: never;
@@ -1337,7 +1357,7 @@ interface paths {
1337
1357
  };
1338
1358
  /**
1339
1359
  * List stale platform types
1340
- * @description Returns the platform types that this instance still carries but this build no longer ships, with how many items use each. They stay in `GET /types` until removed. Operator key only.
1360
+ * @description Returns the platform types that this instance still carries but this build no longer ships, with how many items use each. They stay in `GET /types` until removed. Requires instance.read.
1341
1361
  */
1342
1362
  get: operations["listPlatformTypeDrift"];
1343
1363
  put?: never;
@@ -1360,7 +1380,7 @@ interface paths {
1360
1380
  post?: never;
1361
1381
  /**
1362
1382
  * Delete a stale platform type
1363
- * @description Deletes one platform type that this build no longer ships. The type stops resolving at once. Operator key only.
1383
+ * @description Deletes one platform type that this build no longer ships. The type stops resolving at once. Requires instance.maintain.
1364
1384
  */
1365
1385
  delete: operations["deletePlatformType"];
1366
1386
  options?: never;
@@ -1377,13 +1397,13 @@ interface paths {
1377
1397
  };
1378
1398
  /**
1379
1399
  * Get the owner
1380
- * @description Returns the owner: the one account that can sign in to the instance and approve apps. A new instance has no owner until `POST /owner` creates one. Requires the operator key.
1400
+ * @description Returns the owner of the claimed instance. Requires a direct owner sign-in or local process authority.
1381
1401
  */
1382
1402
  get: operations["getOwner"];
1383
1403
  put?: never;
1384
1404
  /**
1385
- * Create the owner
1386
- * @description Creates the owner, the one account that can sign in to the instance, and returns it. The owner can sign in at once with the email address and password. No other route creates an account. Requires the operator key.
1405
+ * Claim the instance
1406
+ * @description Creates the one owner using a machine-issued setup code or setup-only browser session. The claim, consumed proof, and audit commit together. A claimed instance never reopens setup.
1387
1407
  */
1388
1408
  post: operations["createOwner"];
1389
1409
  delete?: never;
@@ -1392,6 +1412,50 @@ interface paths {
1392
1412
  patch?: never;
1393
1413
  trace?: never;
1394
1414
  };
1415
+ "/owner/sign-ins": {
1416
+ parameters: {
1417
+ query?: never;
1418
+ header?: never;
1419
+ path?: never;
1420
+ cookie?: never;
1421
+ };
1422
+ /**
1423
+ * List sign-ins
1424
+ * @description Returns every browser, app and key that can reach Marfa, marking the browser that sent the request. Requires the owner's browser session or the local command.
1425
+ */
1426
+ get: operations["listSignIns"];
1427
+ put?: never;
1428
+ post?: never;
1429
+ delete?: never;
1430
+ options?: never;
1431
+ head?: never;
1432
+ patch?: never;
1433
+ trace?: never;
1434
+ };
1435
+ "/owner/sign-ins/{id}": {
1436
+ parameters: {
1437
+ query?: never;
1438
+ header?: never;
1439
+ path?: never;
1440
+ cookie?: never;
1441
+ };
1442
+ get?: never;
1443
+ put?: never;
1444
+ post?: never;
1445
+ /**
1446
+ * End a sign-in
1447
+ * @description Ends a sign-in at once: it can't make another request, and an app can't refresh its tokens. The keys an app minted stay unless `revoke_keys` is `true`. Requires the owner's browser session, signed in within five minutes, or the local command.
1448
+ */
1449
+ delete: operations["endSignIn"];
1450
+ options?: never;
1451
+ head?: never;
1452
+ /**
1453
+ * Update a sign-in
1454
+ * @description Gives an app or a key a new name and returns the sign-in. A key's name is its `label`. Requires the owner's browser session, signed in within the last five minutes, or the local command.
1455
+ */
1456
+ patch: operations["updateSignIn"];
1457
+ trace?: never;
1458
+ };
1395
1459
  "/export": {
1396
1460
  parameters: {
1397
1461
  query?: never;
@@ -1524,6 +1588,26 @@ interface paths {
1524
1588
  patch?: never;
1525
1589
  trace?: never;
1526
1590
  };
1591
+ "/metrics": {
1592
+ parameters: {
1593
+ query?: never;
1594
+ header?: never;
1595
+ path?: never;
1596
+ cookie?: never;
1597
+ };
1598
+ /**
1599
+ * Get server metrics
1600
+ * @description Returns instance-wide counters and process uptime. Requires `instance.read`; the counters include records outside your content permissions.
1601
+ */
1602
+ get: operations["getServerMetrics"];
1603
+ put?: never;
1604
+ post?: never;
1605
+ delete?: never;
1606
+ options?: never;
1607
+ head?: never;
1608
+ patch?: never;
1609
+ trace?: never;
1610
+ };
1527
1611
  "/": {
1528
1612
  parameters: {
1529
1613
  query?: never;
@@ -1784,6 +1868,24 @@ interface components {
1784
1868
  occurred_at: string;
1785
1869
  /** @description The item's `source_id` at this version, or `null` if it had none. */
1786
1870
  source_id: string | null;
1871
+ /** @description The sign-in that wrote this version, named as it was then, even after it ends. Whoever can read the snapshot sees it, such as another app's name or a key's label. `null` if no sign-in wrote it, such as when Marfa reads a file's text. */
1872
+ writer: {
1873
+ /**
1874
+ * @description What wrote the version. `browser`: the owner's browser. `app`: an app the owner approved. `key`: an API key. `local`: the local command on the server's machine.
1875
+ * @enum {string}
1876
+ */
1877
+ kind: "browser" | "app" | "key" | "local";
1878
+ /**
1879
+ * @description The ID the sign-in has in `GET /owner/sign-ins`, `local` for the local command, or an app's client ID if its sign-in was already gone. It stays the same after the sign-in ends.
1880
+ * @example Q2xYvR8mKp4TnW6aBc0dEf1gHi3jKl5M
1881
+ */
1882
+ id: string;
1883
+ /**
1884
+ * @description The sign-in's name when it wrote the version, as `GET /owner/sign-ins` showed it. At most 200 characters.
1885
+ * @example Safari on macOS
1886
+ */
1887
+ name: string;
1888
+ } | null;
1787
1889
  /** @description When Marfa recorded the snapshot, in UTC. */
1788
1890
  created_at: string;
1789
1891
  };
@@ -1838,6 +1940,8 @@ interface components {
1838
1940
  title_field?: string;
1839
1941
  /** @description The field that holds an item's body for display. */
1840
1942
  body_field?: string;
1943
+ } & {
1944
+ [key: string]: unknown;
1841
1945
  };
1842
1946
  /** @description How long Marfa keeps the versions of a type's items. A field you leave out comes from the parent type, then from the instance defaults. */
1843
1947
  VersionPolicy: {
@@ -1852,6 +1956,10 @@ interface components {
1852
1956
  } & {
1853
1957
  [key: string]: unknown;
1854
1958
  };
1959
+ /** @description The source's current problems, by opaque key. Each message is at most 500 UTF-16 code units. The map has at most 200 entries and 512 KiB serialized as UTF-8. An empty map means no current problems. */
1960
+ ConnectorProblems: {
1961
+ [key: string]: string;
1962
+ };
1855
1963
  /**
1856
1964
  * @description Where a bulk-action job is. `queued`: waiting to run. `in_progress`: running. `completed`: it reached every matched item. `failed`: it stopped early, and `error` says why. `canceled`: it was canceled before it finished.
1857
1965
  * @enum {string}
@@ -2858,9 +2966,13 @@ interface components {
2858
2966
  };
2859
2967
  };
2860
2968
  };
2861
- /** @description One type. */
2862
- TypeResponse: {
2969
+ /** @description Canonical definitions from one registry view, with field defaults made explicit as `required: false` and `searchable: true`. */
2970
+ NormalizedType: {
2863
2971
  type: components["schemas"]["TypeDefinition"] & unknown;
2972
+ /** @description The canonical registered type's declared definition; `null` if its identifier is not registered. */
2973
+ registered_type: components["schemas"]["TypeDefinition"] | null;
2974
+ /** @description The canonical registered definition, with inherited fields, policies and roles resolved as on `GET /types/{id}`; `null` if its identifier is not registered. */
2975
+ resolved_type: components["schemas"]["TypeDefinition"] | null;
2864
2976
  };
2865
2977
  /** @description An error response. */
2866
2978
  InheritanceViolationOrInvalidSchemaOrMissingRequiredFieldOrPropertyShadowsFieldOrValidationErrorRefusal: {
@@ -2880,23 +2992,6 @@ interface components {
2880
2992
  };
2881
2993
  };
2882
2994
  /** @description An error response. */
2883
- LinkTakenOrTypeAlreadyExistsRefusal: {
2884
- /** @description What went wrong. */
2885
- error: {
2886
- /**
2887
- * @description A machine-readable code for the error. Use it in your logic.
2888
- * @enum {string}
2889
- */
2890
- code: "link_taken" | "type_already_exists";
2891
- /** @description A description of the error for a person to read. It can change, so don't match on it. */
2892
- message: string;
2893
- /** @description More about the error, such as the field it concerns. Each code defines its own details. */
2894
- details?: {
2895
- [key: string]: unknown;
2896
- };
2897
- };
2898
- };
2899
- /** @description An error response. */
2900
2995
  CompatibleWithViolationRefusal: {
2901
2996
  /** @description What went wrong. */
2902
2997
  error: {
@@ -2913,7 +3008,7 @@ interface components {
2913
3008
  };
2914
3009
  };
2915
3010
  };
2916
- /** @description A type to register. */
3011
+ /** @description A declared item type. */
2917
3012
  TypeDefinitionInput: {
2918
3013
  /** @description The type's own fields, by name. */
2919
3014
  fields: {
@@ -2923,7 +3018,7 @@ interface components {
2923
3018
  version?: number;
2924
3019
  /** @description The identifier of the type this one inherits from. To set or change it, you need write on it, unless Marfa ships it. Leave it out for a type with no parent. */
2925
3020
  parent?: string;
2926
- /** @description A name for people to read. Leave it out on `POST /types` and Marfa derives one from the last segment of the identifier. */
3021
+ /** @description A name for people to read. Leave it out and Marfa derives one from the last segment of the identifier. */
2927
3022
  label?: string;
2928
3023
  /** @description What the type is for. */
2929
3024
  description?: string;
@@ -2943,6 +3038,27 @@ interface components {
2943
3038
  } & {
2944
3039
  [key: string]: unknown;
2945
3040
  };
3041
+ /** @description One type. */
3042
+ TypeResponse: {
3043
+ type: components["schemas"]["TypeDefinition"] & unknown;
3044
+ };
3045
+ /** @description An error response. */
3046
+ LinkTakenOrTypeAlreadyExistsRefusal: {
3047
+ /** @description What went wrong. */
3048
+ error: {
3049
+ /**
3050
+ * @description A machine-readable code for the error. Use it in your logic.
3051
+ * @enum {string}
3052
+ */
3053
+ code: "link_taken" | "type_already_exists";
3054
+ /** @description A description of the error for a person to read. It can change, so don't match on it. */
3055
+ message: string;
3056
+ /** @description More about the error, such as the field it concerns. Each code defines its own details. */
3057
+ details?: {
3058
+ [key: string]: unknown;
3059
+ };
3060
+ };
3061
+ };
2946
3062
  /** @description An error response. */
2947
3063
  CoreTypeImmutableOrForbiddenOrTypeNotPermittedRefusal: {
2948
3064
  /** @description What went wrong. */
@@ -2987,7 +3103,7 @@ interface components {
2987
3103
  version?: number;
2988
3104
  /** @description The identifier of the type this one inherits from. To set or change it, you need write on it, unless Marfa ships it. Leave it out for a type with no parent. */
2989
3105
  parent?: string;
2990
- /** @description A name for people to read. Leave it out on `POST /types` and Marfa derives one from the last segment of the identifier. */
3106
+ /** @description A name for people to read. Leave it out and Marfa derives one from the last segment of the identifier. */
2991
3107
  label?: string;
2992
3108
  /** @description What the type is for. */
2993
3109
  description?: string;
@@ -3079,7 +3195,7 @@ interface components {
3079
3195
  }[];
3080
3196
  /** @description `true` when `series_errors` stops at `scan.max_series_errors` entries and leaves failures out. `scan.series_errors` has the total. Absent otherwise. */
3081
3197
  series_errors_truncated?: boolean;
3082
- /** @description `true` when a series' expansion didn't finish, so `data` may be missing its occurrences; `scan.series_unexpanded` counts those series. A narrower window doesn't help: narrow by `type` or fix the rules. Absent otherwise. */
3198
+ /** @description `true` when a series didn't finish expanding, so `data` may be missing occurrences; `scan.series_unexpanded` counts them. If a series has too many in the window, narrow the window; else narrow by `type` or fix the rules. Absent otherwise. */
3083
3199
  expansion_incomplete?: boolean;
3084
3200
  };
3085
3201
  /** @description One time an event happens. */
@@ -3351,6 +3467,7 @@ interface components {
3351
3467
  last_heartbeat_at: string | null;
3352
3468
  /** @description The connector's most recently reported run; `null` if it has reported none. */
3353
3469
  last_run: components["schemas"]["ConnectorRun"] | null;
3470
+ problems: components["schemas"]["ConnectorProblems"] & unknown;
3354
3471
  /** @description When the hold on the connector lapses; `null` if no process holds it or its hold has lapsed. */
3355
3472
  hold_expires_at: string | null;
3356
3473
  };
@@ -3547,6 +3664,7 @@ interface components {
3547
3664
  };
3548
3665
  /** @description A connector's state document: the JSON object it keeps on the instance to resume from. */
3549
3666
  ConnectorState: {
3667
+ problems: components["schemas"]["ConnectorProblems"] & unknown;
3550
3668
  /** @description The document as last written; `{}` if none was. */
3551
3669
  state: {
3552
3670
  [key: string]: unknown;
@@ -3634,22 +3752,20 @@ interface components {
3634
3752
  key: string;
3635
3753
  /** @description A name for the key, to tell it apart from your other keys. */
3636
3754
  label: string;
3637
- /** @description The key's own source, stamped on the rows it writes unless a write names a source it claims. No other unrevoked key has it as its own, and it can't change. */
3755
+ /** @description The key's own source, stamped on the rows it writes unless a write names a source it claims. No other key that hasn't been revoked or expired has it as its own, and it can't change. */
3638
3756
  source: string;
3639
3757
  /** @description Sources the key may also write under, besides its own `source`. Several keys may claim one source, so their writes share natural keys. Empty if the key claims none. */
3640
3758
  sources: string[];
3641
3759
  /** @description The permissions the key holds, such as `audit.read`. Empty if it holds none. */
3642
3760
  permissions: components["schemas"]["Permission"][];
3643
- /** @description The `client_id` of the app whose sign-in token created this key. Absent on every other key. */
3761
+ /** @description The app origin client ID, inherited by every descendant key. Absent when no app is in the key's origin. */
3644
3762
  oauth_client_id?: string;
3645
3763
  default_tier: components["schemas"]["Tier"] & unknown;
3646
- /** @description `true` if this is an operator key. An operator key opens the routes that run the instance, such as `/housekeeping`, and holds no permissions, so it reads and writes no items. */
3647
- is_operator: boolean;
3648
3764
  /** @description Item types the key may `read` or `write`, by type ID or a wildcard such as `core.*` or `*`. `none` denies a type a wildcard covers. */
3649
3765
  type_permissions: {
3650
3766
  [key: string]: components["schemas"]["TypePermissionLevel"];
3651
3767
  };
3652
- /** @description Extension namespaces the key may `read` or `write`, by namespace or `*`. A key can always read and write the namespace named by its own `label`. */
3768
+ /** @description Extension namespaces the key may `read` or `write`, by namespace or `*`. */
3653
3769
  extension_permissions: {
3654
3770
  [key: string]: components["schemas"]["PermissionLevel"];
3655
3771
  };
@@ -3668,14 +3784,16 @@ interface components {
3668
3784
  enforcement_override?: components["schemas"]["EnforcementOverride"] & unknown;
3669
3785
  /** @description When the key was created, in UTC. */
3670
3786
  created_at: string;
3787
+ /** @description When the key stops working, in UTC, or `null` if it doesn't expire. */
3788
+ expires_at: string | null;
3671
3789
  /** @description When the key was last used, in UTC, or `null` if never. Marfa updates it at most once an hour. */
3672
3790
  last_used_at: string | null;
3673
3791
  };
3674
3792
  /**
3675
- * @description A permission a credential can hold. `schema.write` replaces and deletes types and edge types, `keys.mint` creates and manages keys, `items.purge` purges trashed items, `webhooks.manage` manages webhooks, `config.manage` reads and replaces `/config`, `audit.read` reads the audit log, and `grants.manage` lists and revokes other apps' access.
3793
+ * @description A permission a credential can hold, for an operation the type, edge, extension, metadata and profile maps don't cover. `schema.write` replaces and deletes types and edge types; `keys.mint` mints keys and lists, changes and revokes those within the caller's reach; `keys.manage` lists and revokes every key and changes one without widening it; `items.purge` purges trashed items; `webhooks.manage` manages webhooks; `config.manage` reads and replaces `/config`; `audit.read` reads the audit log; `grants.manage` lists and revokes other apps' access; `instance.read` reads health, metrics, housekeeping, platform type drift, blob storage reports and every bulk job's status; `instance.maintain` runs housekeeping, resets platform type definitions and cancels bulk jobs; `connectors.manage` administers connector registrations and their endpoints, and clears their retained state; and `blobs.manage` manages every blob.
3676
3794
  * @enum {string}
3677
3795
  */
3678
- Permission: "webhooks.manage" | "schema.write" | "config.manage" | "audit.read" | "items.purge" | "keys.mint" | "grants.manage";
3796
+ Permission: "webhooks.manage" | "schema.write" | "config.manage" | "audit.read" | "items.purge" | "keys.mint" | "grants.manage" | "instance.read" | "instance.maintain" | "connectors.manage" | "blobs.manage" | "keys.manage";
3679
3797
  /**
3680
3798
  * @description What a key may do with a type: `read` it, `write` it (which includes reading), or `none`, which denies a type a wildcard entry would reach.
3681
3799
  * @enum {string}
@@ -3699,22 +3817,20 @@ interface components {
3699
3817
  id: string;
3700
3818
  /** @description A name for the key, to tell it apart from your other keys. */
3701
3819
  label: string;
3702
- /** @description The key's own source, stamped on the rows it writes unless a write names a source it claims. No other unrevoked key has it as its own, and it can't change. */
3820
+ /** @description The key's own source, stamped on the rows it writes unless a write names a source it claims. No other key that hasn't been revoked or expired has it as its own, and it can't change. */
3703
3821
  source: string;
3704
3822
  /** @description Sources the key may also write under, besides its own `source`. Several keys may claim one source, so their writes share natural keys. Empty if the key claims none. */
3705
3823
  sources: string[];
3706
3824
  /** @description The permissions the key holds, such as `audit.read`. Empty if it holds none. */
3707
3825
  permissions: components["schemas"]["Permission"][];
3708
- /** @description The `client_id` of the app whose sign-in token created this key. Absent on every other key. */
3826
+ /** @description The app origin client ID, inherited by every descendant key. Absent when no app is in the key's origin. */
3709
3827
  oauth_client_id?: string;
3710
3828
  default_tier: components["schemas"]["Tier"] & unknown;
3711
- /** @description `true` if this is an operator key. An operator key opens the routes that run the instance, such as `/housekeeping`, and holds no permissions, so it reads and writes no items. */
3712
- is_operator: boolean;
3713
3829
  /** @description Item types the key may `read` or `write`, by type ID or a wildcard such as `core.*` or `*`. `none` denies a type a wildcard covers. */
3714
3830
  type_permissions: {
3715
3831
  [key: string]: components["schemas"]["TypePermissionLevel"];
3716
3832
  };
3717
- /** @description Extension namespaces the key may `read` or `write`, by namespace or `*`. A key can always read and write the namespace named by its own `label`. */
3833
+ /** @description Extension namespaces the key may `read` or `write`, by namespace or `*`. */
3718
3834
  extension_permissions: {
3719
3835
  [key: string]: components["schemas"]["PermissionLevel"];
3720
3836
  };
@@ -3733,7 +3849,7 @@ interface components {
3733
3849
  enforcement_override?: components["schemas"]["EnforcementOverride"] & unknown;
3734
3850
  /** @description When the key was created, in UTC. */
3735
3851
  created_at: string;
3736
- /** @description When the key stops working, in UTC, or `null` if it doesn't expire. A key created through the API never expires. */
3852
+ /** @description When the key stops working, in UTC, or `null` if it doesn't expire. */
3737
3853
  expires_at: string | null;
3738
3854
  /** @description When the key was last used, in UTC, or `null` if never. Marfa updates it at most once an hour. */
3739
3855
  last_used_at: string | null;
@@ -3777,14 +3893,14 @@ interface components {
3777
3893
  inbound_pending_retention_days?: number;
3778
3894
  };
3779
3895
  /** @description An error response. */
3780
- InvalidPropertiesOrValidationErrorRefusal: {
3896
+ InvalidPropertiesOrInvalidSchemaOrValidationErrorRefusal: {
3781
3897
  /** @description What went wrong. */
3782
3898
  error: {
3783
3899
  /**
3784
3900
  * @description A machine-readable code for the error. Use it in your logic.
3785
3901
  * @enum {string}
3786
3902
  */
3787
- code: "invalid_properties" | "validation_error";
3903
+ code: "invalid_properties" | "invalid_schema" | "validation_error";
3788
3904
  /** @description A description of the error for a person to read. It can change, so don't match on it. */
3789
3905
  message: string;
3790
3906
  /** @description More about the error, such as the field it concerns. Each code defines its own details. */
@@ -3862,13 +3978,13 @@ interface components {
3862
3978
  };
3863
3979
  };
3864
3980
  };
3865
- /** @description The owner is the one person who can sign in to the instance. */
3981
+ /** @description The single owner of the instance. */
3866
3982
  Owner: {
3867
- /** @description Unique identifier for the owner's account. */
3983
+ /** @description Unique identifier for the owner. */
3868
3984
  id: string;
3869
- /** @description The owner's email address, in lowercase. */
3985
+ /** @description Email address used to sign in. */
3870
3986
  email: string;
3871
- /** @description The owner's name. */
3987
+ /** @description Display name of the owner. */
3872
3988
  name: string;
3873
3989
  /** @description When the owner was created, in UTC. */
3874
3990
  created_at: string;
@@ -3890,6 +4006,74 @@ interface components {
3890
4006
  };
3891
4007
  };
3892
4008
  };
4009
+ /** @description Every live sign-in of the owner. */
4010
+ SignInList: {
4011
+ /** @description The owner's live sign-ins, oldest first. */
4012
+ data: components["schemas"]["SignIn"][];
4013
+ /** @description Always `null`: Marfa returns every sign-in in one page. */
4014
+ next_cursor: string | null;
4015
+ };
4016
+ /** @description A sign-in is one way the owner's Marfa can be reached. */
4017
+ SignIn: {
4018
+ /**
4019
+ * @description Unique identifier for the sign-in.
4020
+ * @example Q2xYvR8mKp4TnW6aBc0dEf1gHi3jKl5M
4021
+ */
4022
+ id: string;
4023
+ /**
4024
+ * @description What signed in. `browser`: a browser signed in with the owner's password. `app`: an app the owner approved, for every device it signs in on with that approval. `key`: an API key.
4025
+ * @enum {string}
4026
+ */
4027
+ kind: "browser" | "app" | "key";
4028
+ /**
4029
+ * @description A readable name: a browser's from its `user_agent`, an app's the owner's name for it or else its registered name, a key's its `label`. A name with a control or bidirectional character, or over 200 characters, gives way to the ID.
4030
+ * @example Safari on macOS
4031
+ */
4032
+ name: string;
4033
+ /** @description `true` if this sign-in sent the request. */
4034
+ current: boolean;
4035
+ /**
4036
+ * @description When the sign-in was made, in UTC. For an app, when the owner last approved it.
4037
+ * @example 2026-10-03T09:30:00.000Z
4038
+ */
4039
+ created_at: string;
4040
+ /**
4041
+ * @description When the sign-in last made a request, in UTC, or `null` if it hasn't. Marfa records a browser's use at most once a minute and an app's or key's at most once an hour.
4042
+ * @example 2026-10-05T14:12:08.000Z
4043
+ */
4044
+ last_used_at: string | null;
4045
+ /**
4046
+ * @description When the sign-in ends unless something changes, in UTC. A browser's is seven days and one minute after `last_used_at`. `null` for an app, and for a key that doesn't expire.
4047
+ * @example 2026-10-12T14:13:08.000Z
4048
+ */
4049
+ expires_at: string | null;
4050
+ /**
4051
+ * @description The address a browser signed in from, or `null` for an app, a key, or a browser whose address Marfa could not tell.
4052
+ * @example 203.0.113.24
4053
+ */
4054
+ ip_address: string | null;
4055
+ /** @description The `User-Agent` a browser sent when it signed in, or `null` for an app, a key, or a browser that sent none. */
4056
+ user_agent: string | null;
4057
+ /** @description For a key an app minted, the ID of that app's sign-in while the app is signed in. `null` for a browser, an app, any other key, and a key whose app has ended. */
4058
+ minted_by: string | null;
4059
+ };
4060
+ /** @description An error response. */
4061
+ SignInNotFoundRefusal: {
4062
+ /** @description What went wrong. */
4063
+ error: {
4064
+ /**
4065
+ * @description A machine-readable code for the error. Use it in your logic.
4066
+ * @enum {string}
4067
+ */
4068
+ code: "sign_in_not_found";
4069
+ /** @description A description of the error for a person to read. It can change, so don't match on it. */
4070
+ message: string;
4071
+ /** @description More about the error, such as the field it concerns. Each code defines its own details. */
4072
+ details?: {
4073
+ [key: string]: unknown;
4074
+ };
4075
+ };
4076
+ };
3893
4077
  /** @description An error response. */
3894
4078
  OwnerExistsRefusal: {
3895
4079
  /** @description What went wrong. */
@@ -3907,6 +4091,23 @@ interface components {
3907
4091
  };
3908
4092
  };
3909
4093
  };
4094
+ /** @description An error response. */
4095
+ RateLimitedRefusal: {
4096
+ /** @description What went wrong. */
4097
+ error: {
4098
+ /**
4099
+ * @description A machine-readable code for the error. Use it in your logic.
4100
+ * @enum {string}
4101
+ */
4102
+ code: "rate_limited";
4103
+ /** @description A description of the error for a person to read. It can change, so don't match on it. */
4104
+ message: string;
4105
+ /** @description More about the error, such as the field it concerns. Each code defines its own details. */
4106
+ details?: {
4107
+ [key: string]: unknown;
4108
+ };
4109
+ };
4110
+ };
3910
4111
  /** @description A webhook sends the events you choose, as you can read them, to a URL. */
3911
4112
  Webhook: {
3912
4113
  /** @description Unique identifier for the webhook. */
@@ -3996,7 +4197,7 @@ interface components {
3996
4197
  created_at: string;
3997
4198
  /** @description The ID of the credential that acted, or `null` if the entry names none, as for Marfa's own housekeeping. */
3998
4199
  key_id: string | null;
3999
- /** @description What happened, such as `key.create` or `owner.created`. */
4200
+ /** @description What happened, such as `key.create` or `owner.claimed`. */
4000
4201
  action: string;
4001
4202
  /** @description The kind of resource acted on, such as `key`. */
4002
4203
  resource_type: string;
@@ -4009,15 +4210,20 @@ interface components {
4009
4210
  [key: string]: unknown;
4010
4211
  };
4011
4212
  };
4213
+ /** @description Number of keys that haven't been revoked or expired. */
4214
+ MetricCount: {
4215
+ /** @description Number of records. */
4216
+ total: number;
4217
+ };
4012
4218
  /** @description An error response. */
4013
- RateLimitedRefusal: {
4219
+ WriteContentionRefusal: {
4014
4220
  /** @description What went wrong. */
4015
4221
  error: {
4016
4222
  /**
4017
4223
  * @description A machine-readable code for the error. Use it in your logic.
4018
4224
  * @enum {string}
4019
4225
  */
4020
- code: "rate_limited";
4226
+ code: "write_contention";
4021
4227
  /** @description A description of the error for a person to read. It can change, so don't match on it. */
4022
4228
  message: string;
4023
4229
  /** @description More about the error, such as the field it concerns. Each code defines its own details. */
@@ -4027,14 +4233,14 @@ interface components {
4027
4233
  };
4028
4234
  };
4029
4235
  /** @description An error response. */
4030
- WriteContentionRefusal: {
4236
+ InsufficientStorageRefusal: {
4031
4237
  /** @description What went wrong. */
4032
4238
  error: {
4033
4239
  /**
4034
4240
  * @description A machine-readable code for the error. Use it in your logic.
4035
4241
  * @enum {string}
4036
4242
  */
4037
- code: "write_contention";
4243
+ code: "insufficient_storage";
4038
4244
  /** @description A description of the error for a person to read. It can change, so don't match on it. */
4039
4245
  message: string;
4040
4246
  /** @description More about the error, such as the field it concerns. Each code defines its own details. */
@@ -4451,6 +4657,21 @@ interface operations {
4451
4657
  "application/json": components["schemas"]["WriteContentionRefusal"];
4452
4658
  };
4453
4659
  };
4660
+ /** @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. */
4661
+ 507: {
4662
+ headers: {
4663
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
4664
+ "X-Request-ID": components["headers"]["X-Request-ID"];
4665
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
4666
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
4667
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
4668
+ "X-Error-Code": components["headers"]["X-Error-Code"];
4669
+ [name: string]: unknown;
4670
+ };
4671
+ content: {
4672
+ "application/json": components["schemas"]["InsufficientStorageRefusal"];
4673
+ };
4674
+ };
4454
4675
  };
4455
4676
  };
4456
4677
  createItem: {
@@ -4712,6 +4933,22 @@ interface operations {
4712
4933
  "application/json": components["schemas"]["WriteContentionRefusal"];
4713
4934
  };
4714
4935
  };
4936
+ /** @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. */
4937
+ 507: {
4938
+ headers: {
4939
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
4940
+ "X-Request-ID": components["headers"]["X-Request-ID"];
4941
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
4942
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
4943
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
4944
+ "X-Error-Code": components["headers"]["X-Error-Code"];
4945
+ "Idempotency-Replayed": components["headers"]["Idempotency-Replayed"];
4946
+ [name: string]: unknown;
4947
+ };
4948
+ content: {
4949
+ "application/json": components["schemas"]["InsufficientStorageRefusal"];
4950
+ };
4951
+ };
4715
4952
  };
4716
4953
  };
4717
4954
  getItemStats: {
@@ -4861,6 +5098,21 @@ interface operations {
4861
5098
  "application/json": components["schemas"]["WriteContentionRefusal"];
4862
5099
  };
4863
5100
  };
5101
+ /** @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. */
5102
+ 507: {
5103
+ headers: {
5104
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
5105
+ "X-Request-ID": components["headers"]["X-Request-ID"];
5106
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
5107
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
5108
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
5109
+ "X-Error-Code": components["headers"]["X-Error-Code"];
5110
+ [name: string]: unknown;
5111
+ };
5112
+ content: {
5113
+ "application/json": components["schemas"]["InsufficientStorageRefusal"];
5114
+ };
5115
+ };
4864
5116
  };
4865
5117
  };
4866
5118
  getItem: {
@@ -5022,6 +5274,21 @@ interface operations {
5022
5274
  "application/json": components["schemas"]["WriteContentionRefusal"];
5023
5275
  };
5024
5276
  };
5277
+ /** @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. */
5278
+ 507: {
5279
+ headers: {
5280
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
5281
+ "X-Request-ID": components["headers"]["X-Request-ID"];
5282
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
5283
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
5284
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
5285
+ "X-Error-Code": components["headers"]["X-Error-Code"];
5286
+ [name: string]: unknown;
5287
+ };
5288
+ content: {
5289
+ "application/json": components["schemas"]["InsufficientStorageRefusal"];
5290
+ };
5291
+ };
5025
5292
  };
5026
5293
  };
5027
5294
  deleteItem: {
@@ -5225,6 +5492,22 @@ interface operations {
5225
5492
  "application/json": components["schemas"]["WriteContentionRefusal"];
5226
5493
  };
5227
5494
  };
5495
+ /** @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. */
5496
+ 507: {
5497
+ headers: {
5498
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
5499
+ "X-Request-ID": components["headers"]["X-Request-ID"];
5500
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
5501
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
5502
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
5503
+ "X-Error-Code": components["headers"]["X-Error-Code"];
5504
+ "Idempotency-Replayed": components["headers"]["Idempotency-Replayed"];
5505
+ [name: string]: unknown;
5506
+ };
5507
+ content: {
5508
+ "application/json": components["schemas"]["InsufficientStorageRefusal"];
5509
+ };
5510
+ };
5228
5511
  };
5229
5512
  };
5230
5513
  updateItem: {
@@ -5477,6 +5760,22 @@ interface operations {
5477
5760
  "application/json": components["schemas"]["WriteContentionRefusal"];
5478
5761
  };
5479
5762
  };
5763
+ /** @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. */
5764
+ 507: {
5765
+ headers: {
5766
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
5767
+ "X-Request-ID": components["headers"]["X-Request-ID"];
5768
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
5769
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
5770
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
5771
+ "X-Error-Code": components["headers"]["X-Error-Code"];
5772
+ "Idempotency-Replayed": components["headers"]["Idempotency-Replayed"];
5773
+ [name: string]: unknown;
5774
+ };
5775
+ content: {
5776
+ "application/json": components["schemas"]["InsufficientStorageRefusal"];
5777
+ };
5778
+ };
5480
5779
  };
5481
5780
  };
5482
5781
  restoreItem: {
@@ -5671,6 +5970,22 @@ interface operations {
5671
5970
  "application/json": components["schemas"]["WriteContentionRefusal"];
5672
5971
  };
5673
5972
  };
5973
+ /** @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. */
5974
+ 507: {
5975
+ headers: {
5976
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
5977
+ "X-Request-ID": components["headers"]["X-Request-ID"];
5978
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
5979
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
5980
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
5981
+ "X-Error-Code": components["headers"]["X-Error-Code"];
5982
+ "Idempotency-Replayed": components["headers"]["Idempotency-Replayed"];
5983
+ [name: string]: unknown;
5984
+ };
5985
+ content: {
5986
+ "application/json": components["schemas"]["InsufficientStorageRefusal"];
5987
+ };
5988
+ };
5674
5989
  };
5675
5990
  };
5676
5991
  transitionItem: {
@@ -5880,6 +6195,22 @@ interface operations {
5880
6195
  "application/json": components["schemas"]["WriteContentionRefusal"];
5881
6196
  };
5882
6197
  };
6198
+ /** @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. */
6199
+ 507: {
6200
+ headers: {
6201
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
6202
+ "X-Request-ID": components["headers"]["X-Request-ID"];
6203
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
6204
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
6205
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
6206
+ "X-Error-Code": components["headers"]["X-Error-Code"];
6207
+ "Idempotency-Replayed": components["headers"]["Idempotency-Replayed"];
6208
+ [name: string]: unknown;
6209
+ };
6210
+ content: {
6211
+ "application/json": components["schemas"]["InsufficientStorageRefusal"];
6212
+ };
6213
+ };
5883
6214
  };
5884
6215
  };
5885
6216
  listItemVersions: {
@@ -6022,6 +6353,21 @@ interface operations {
6022
6353
  "application/json": components["schemas"]["WriteContentionRefusal"];
6023
6354
  };
6024
6355
  };
6356
+ /** @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. */
6357
+ 507: {
6358
+ headers: {
6359
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
6360
+ "X-Request-ID": components["headers"]["X-Request-ID"];
6361
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
6362
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
6363
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
6364
+ "X-Error-Code": components["headers"]["X-Error-Code"];
6365
+ [name: string]: unknown;
6366
+ };
6367
+ content: {
6368
+ "application/json": components["schemas"]["InsufficientStorageRefusal"];
6369
+ };
6370
+ };
6025
6371
  };
6026
6372
  };
6027
6373
  getItemMetadata: {
@@ -6159,6 +6505,21 @@ interface operations {
6159
6505
  "application/json": components["schemas"]["WriteContentionRefusal"];
6160
6506
  };
6161
6507
  };
6508
+ /** @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. */
6509
+ 507: {
6510
+ headers: {
6511
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
6512
+ "X-Request-ID": components["headers"]["X-Request-ID"];
6513
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
6514
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
6515
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
6516
+ "X-Error-Code": components["headers"]["X-Error-Code"];
6517
+ [name: string]: unknown;
6518
+ };
6519
+ content: {
6520
+ "application/json": components["schemas"]["InsufficientStorageRefusal"];
6521
+ };
6522
+ };
6162
6523
  };
6163
6524
  };
6164
6525
  replaceItemMetadata: {
@@ -6318,6 +6679,21 @@ interface operations {
6318
6679
  "application/json": components["schemas"]["WriteContentionRefusal"];
6319
6680
  };
6320
6681
  };
6682
+ /** @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. */
6683
+ 507: {
6684
+ headers: {
6685
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
6686
+ "X-Request-ID": components["headers"]["X-Request-ID"];
6687
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
6688
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
6689
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
6690
+ "X-Error-Code": components["headers"]["X-Error-Code"];
6691
+ [name: string]: unknown;
6692
+ };
6693
+ content: {
6694
+ "application/json": components["schemas"]["InsufficientStorageRefusal"];
6695
+ };
6696
+ };
6321
6697
  };
6322
6698
  };
6323
6699
  updateItemMetadata: {
@@ -6474,6 +6850,21 @@ interface operations {
6474
6850
  "application/json": components["schemas"]["WriteContentionRefusal"];
6475
6851
  };
6476
6852
  };
6853
+ /** @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. */
6854
+ 507: {
6855
+ headers: {
6856
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
6857
+ "X-Request-ID": components["headers"]["X-Request-ID"];
6858
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
6859
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
6860
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
6861
+ "X-Error-Code": components["headers"]["X-Error-Code"];
6862
+ [name: string]: unknown;
6863
+ };
6864
+ content: {
6865
+ "application/json": components["schemas"]["InsufficientStorageRefusal"];
6866
+ };
6867
+ };
6477
6868
  };
6478
6869
  };
6479
6870
  addItemTags: {
@@ -6631,6 +7022,21 @@ interface operations {
6631
7022
  "application/json": components["schemas"]["WriteContentionRefusal"];
6632
7023
  };
6633
7024
  };
7025
+ /** @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. */
7026
+ 507: {
7027
+ headers: {
7028
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
7029
+ "X-Request-ID": components["headers"]["X-Request-ID"];
7030
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
7031
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
7032
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
7033
+ "X-Error-Code": components["headers"]["X-Error-Code"];
7034
+ [name: string]: unknown;
7035
+ };
7036
+ content: {
7037
+ "application/json": components["schemas"]["InsufficientStorageRefusal"];
7038
+ };
7039
+ };
6634
7040
  };
6635
7041
  };
6636
7042
  purgeItem: {
@@ -6834,6 +7240,22 @@ interface operations {
6834
7240
  "application/json": components["schemas"]["WriteContentionRefusal"];
6835
7241
  };
6836
7242
  };
7243
+ /** @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. */
7244
+ 507: {
7245
+ headers: {
7246
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
7247
+ "X-Request-ID": components["headers"]["X-Request-ID"];
7248
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
7249
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
7250
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
7251
+ "X-Error-Code": components["headers"]["X-Error-Code"];
7252
+ "Idempotency-Replayed": components["headers"]["Idempotency-Replayed"];
7253
+ [name: string]: unknown;
7254
+ };
7255
+ content: {
7256
+ "application/json": components["schemas"]["InsufficientStorageRefusal"];
7257
+ };
7258
+ };
6837
7259
  };
6838
7260
  };
6839
7261
  removeItemTag: {
@@ -6985,6 +7407,21 @@ interface operations {
6985
7407
  "application/json": components["schemas"]["WriteContentionRefusal"];
6986
7408
  };
6987
7409
  };
7410
+ /** @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. */
7411
+ 507: {
7412
+ headers: {
7413
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
7414
+ "X-Request-ID": components["headers"]["X-Request-ID"];
7415
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
7416
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
7417
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
7418
+ "X-Error-Code": components["headers"]["X-Error-Code"];
7419
+ [name: string]: unknown;
7420
+ };
7421
+ content: {
7422
+ "application/json": components["schemas"]["InsufficientStorageRefusal"];
7423
+ };
7424
+ };
6988
7425
  };
6989
7426
  };
6990
7427
  bulkUpsertItems: {
@@ -7198,6 +7635,21 @@ interface operations {
7198
7635
  "application/json": components["schemas"]["WriteContentionRefusal"];
7199
7636
  };
7200
7637
  };
7638
+ /** @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. */
7639
+ 507: {
7640
+ headers: {
7641
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
7642
+ "X-Request-ID": components["headers"]["X-Request-ID"];
7643
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
7644
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
7645
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
7646
+ "X-Error-Code": components["headers"]["X-Error-Code"];
7647
+ [name: string]: unknown;
7648
+ };
7649
+ content: {
7650
+ "application/json": components["schemas"]["InsufficientStorageRefusal"];
7651
+ };
7652
+ };
7201
7653
  };
7202
7654
  };
7203
7655
  applyBulkAction: {
@@ -7308,7 +7760,7 @@ interface operations {
7308
7760
  };
7309
7761
  };
7310
7762
  /**
7311
- * @description - `validation_error`: the body or `filter` is malformed or has an undeclared key not starting with `_`, `update_tags` has neither `add` nor `remove`, or `expected_ids` is empty or not on a purge.
7763
+ * @description - `validation_error`: the body or `filter` is malformed or has an undeclared key or an empty field, `update_tags` has neither `add` nor `remove`, or `expected_ids` is empty or not on a purge.
7312
7764
  * - `missing_required_field`: a field the action needs is missing.
7313
7765
  * - `bulk_confirmation_required`: a purge without `confirm: "PURGE"`.
7314
7766
  * - `bulk_cap_exceeded`: more items match than `max_items` allows.
@@ -7458,6 +7910,22 @@ interface operations {
7458
7910
  "application/json": components["schemas"]["WriteContentionRefusal"];
7459
7911
  };
7460
7912
  };
7913
+ /** @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. */
7914
+ 507: {
7915
+ headers: {
7916
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
7917
+ "X-Request-ID": components["headers"]["X-Request-ID"];
7918
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
7919
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
7920
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
7921
+ "X-Error-Code": components["headers"]["X-Error-Code"];
7922
+ "Idempotency-Replayed": components["headers"]["Idempotency-Replayed"];
7923
+ [name: string]: unknown;
7924
+ };
7925
+ content: {
7926
+ "application/json": components["schemas"]["InsufficientStorageRefusal"];
7927
+ };
7928
+ };
7461
7929
  };
7462
7930
  };
7463
7931
  getBulkActionJob: {
@@ -7516,7 +7984,7 @@ interface operations {
7516
7984
  "application/json": components["schemas"]["UnauthorizedRefusal"];
7517
7985
  };
7518
7986
  };
7519
- /** @description - `forbidden`: another credential queued the job, and yours isn't the operator key. */
7987
+ /** @description - `forbidden`: another credential queued the job, and yours lacks instance.read. */
7520
7988
  403: {
7521
7989
  headers: {
7522
7990
  "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
@@ -7592,6 +8060,21 @@ interface operations {
7592
8060
  "application/json": components["schemas"]["WriteContentionRefusal"];
7593
8061
  };
7594
8062
  };
8063
+ /** @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. */
8064
+ 507: {
8065
+ headers: {
8066
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
8067
+ "X-Request-ID": components["headers"]["X-Request-ID"];
8068
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
8069
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
8070
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
8071
+ "X-Error-Code": components["headers"]["X-Error-Code"];
8072
+ [name: string]: unknown;
8073
+ };
8074
+ content: {
8075
+ "application/json": components["schemas"]["InsufficientStorageRefusal"];
8076
+ };
8077
+ };
7595
8078
  };
7596
8079
  };
7597
8080
  cancelBulkActionJob: {
@@ -7650,7 +8133,7 @@ interface operations {
7650
8133
  "application/json": components["schemas"]["UnauthorizedRefusal"];
7651
8134
  };
7652
8135
  };
7653
- /** @description - `forbidden`: another credential queued the job, and yours isn't the operator key. */
8136
+ /** @description - `forbidden`: another credential queued the job, and yours lacks instance.maintain. */
7654
8137
  403: {
7655
8138
  headers: {
7656
8139
  "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
@@ -7738,6 +8221,21 @@ interface operations {
7738
8221
  "application/json": components["schemas"]["WriteContentionRefusal"];
7739
8222
  };
7740
8223
  };
8224
+ /** @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. */
8225
+ 507: {
8226
+ headers: {
8227
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
8228
+ "X-Request-ID": components["headers"]["X-Request-ID"];
8229
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
8230
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
8231
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
8232
+ "X-Error-Code": components["headers"]["X-Error-Code"];
8233
+ [name: string]: unknown;
8234
+ };
8235
+ content: {
8236
+ "application/json": components["schemas"]["InsufficientStorageRefusal"];
8237
+ };
8238
+ };
7741
8239
  };
7742
8240
  };
7743
8241
  bulkGetItems: {
@@ -7884,6 +8382,21 @@ interface operations {
7884
8382
  "application/json": components["schemas"]["WriteContentionRefusal"];
7885
8383
  };
7886
8384
  };
8385
+ /** @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. */
8386
+ 507: {
8387
+ headers: {
8388
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
8389
+ "X-Request-ID": components["headers"]["X-Request-ID"];
8390
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
8391
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
8392
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
8393
+ "X-Error-Code": components["headers"]["X-Error-Code"];
8394
+ [name: string]: unknown;
8395
+ };
8396
+ content: {
8397
+ "application/json": components["schemas"]["InsufficientStorageRefusal"];
8398
+ };
8399
+ };
7887
8400
  };
7888
8401
  };
7889
8402
  lookupItems: {
@@ -8039,6 +8552,21 @@ interface operations {
8039
8552
  "application/json": components["schemas"]["WriteContentionRefusal"];
8040
8553
  };
8041
8554
  };
8555
+ /** @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. */
8556
+ 507: {
8557
+ headers: {
8558
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
8559
+ "X-Request-ID": components["headers"]["X-Request-ID"];
8560
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
8561
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
8562
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
8563
+ "X-Error-Code": components["headers"]["X-Error-Code"];
8564
+ [name: string]: unknown;
8565
+ };
8566
+ content: {
8567
+ "application/json": components["schemas"]["InsufficientStorageRefusal"];
8568
+ };
8569
+ };
8042
8570
  };
8043
8571
  };
8044
8572
  settleTombstones: {
@@ -8192,6 +8720,21 @@ interface operations {
8192
8720
  "application/json": components["schemas"]["WriteContentionRefusal"];
8193
8721
  };
8194
8722
  };
8723
+ /** @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. */
8724
+ 507: {
8725
+ headers: {
8726
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
8727
+ "X-Request-ID": components["headers"]["X-Request-ID"];
8728
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
8729
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
8730
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
8731
+ "X-Error-Code": components["headers"]["X-Error-Code"];
8732
+ [name: string]: unknown;
8733
+ };
8734
+ content: {
8735
+ "application/json": components["schemas"]["InsufficientStorageRefusal"];
8736
+ };
8737
+ };
8195
8738
  };
8196
8739
  };
8197
8740
  listItemExtensions: {
@@ -8329,6 +8872,21 @@ interface operations {
8329
8872
  "application/json": components["schemas"]["WriteContentionRefusal"];
8330
8873
  };
8331
8874
  };
8875
+ /** @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. */
8876
+ 507: {
8877
+ headers: {
8878
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
8879
+ "X-Request-ID": components["headers"]["X-Request-ID"];
8880
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
8881
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
8882
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
8883
+ "X-Error-Code": components["headers"]["X-Error-Code"];
8884
+ [name: string]: unknown;
8885
+ };
8886
+ content: {
8887
+ "application/json": components["schemas"]["InsufficientStorageRefusal"];
8888
+ };
8889
+ };
8332
8890
  };
8333
8891
  };
8334
8892
  getItemExtension: {
@@ -8476,6 +9034,21 @@ interface operations {
8476
9034
  "application/json": components["schemas"]["WriteContentionRefusal"];
8477
9035
  };
8478
9036
  };
9037
+ /** @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. */
9038
+ 507: {
9039
+ headers: {
9040
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
9041
+ "X-Request-ID": components["headers"]["X-Request-ID"];
9042
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
9043
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
9044
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
9045
+ "X-Error-Code": components["headers"]["X-Error-Code"];
9046
+ [name: string]: unknown;
9047
+ };
9048
+ content: {
9049
+ "application/json": components["schemas"]["InsufficientStorageRefusal"];
9050
+ };
9051
+ };
8479
9052
  };
8480
9053
  };
8481
9054
  replaceItemExtension: {
@@ -8636,6 +9209,21 @@ interface operations {
8636
9209
  "application/json": components["schemas"]["WriteContentionRefusal"];
8637
9210
  };
8638
9211
  };
9212
+ /** @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. */
9213
+ 507: {
9214
+ headers: {
9215
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
9216
+ "X-Request-ID": components["headers"]["X-Request-ID"];
9217
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
9218
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
9219
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
9220
+ "X-Error-Code": components["headers"]["X-Error-Code"];
9221
+ [name: string]: unknown;
9222
+ };
9223
+ content: {
9224
+ "application/json": components["schemas"]["InsufficientStorageRefusal"];
9225
+ };
9226
+ };
8639
9227
  };
8640
9228
  };
8641
9229
  deleteItemExtension: {
@@ -8790,6 +9378,21 @@ interface operations {
8790
9378
  "application/json": components["schemas"]["WriteContentionRefusal"];
8791
9379
  };
8792
9380
  };
9381
+ /** @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. */
9382
+ 507: {
9383
+ headers: {
9384
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
9385
+ "X-Request-ID": components["headers"]["X-Request-ID"];
9386
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
9387
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
9388
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
9389
+ "X-Error-Code": components["headers"]["X-Error-Code"];
9390
+ [name: string]: unknown;
9391
+ };
9392
+ content: {
9393
+ "application/json": components["schemas"]["InsufficientStorageRefusal"];
9394
+ };
9395
+ };
8793
9396
  };
8794
9397
  };
8795
9398
  listItemEdges: {
@@ -8955,6 +9558,21 @@ interface operations {
8955
9558
  "application/json": components["schemas"]["WriteContentionRefusal"];
8956
9559
  };
8957
9560
  };
9561
+ /** @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. */
9562
+ 507: {
9563
+ headers: {
9564
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
9565
+ "X-Request-ID": components["headers"]["X-Request-ID"];
9566
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
9567
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
9568
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
9569
+ "X-Error-Code": components["headers"]["X-Error-Code"];
9570
+ [name: string]: unknown;
9571
+ };
9572
+ content: {
9573
+ "application/json": components["schemas"]["InsufficientStorageRefusal"];
9574
+ };
9575
+ };
8958
9576
  };
8959
9577
  };
8960
9578
  listItemBackrefs: {
@@ -9099,6 +9717,21 @@ interface operations {
9099
9717
  "application/json": components["schemas"]["WriteContentionRefusal"];
9100
9718
  };
9101
9719
  };
9720
+ /** @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. */
9721
+ 507: {
9722
+ headers: {
9723
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
9724
+ "X-Request-ID": components["headers"]["X-Request-ID"];
9725
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
9726
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
9727
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
9728
+ "X-Error-Code": components["headers"]["X-Error-Code"];
9729
+ [name: string]: unknown;
9730
+ };
9731
+ content: {
9732
+ "application/json": components["schemas"]["InsufficientStorageRefusal"];
9733
+ };
9734
+ };
9102
9735
  };
9103
9736
  };
9104
9737
  listEdges: {
@@ -9246,6 +9879,21 @@ interface operations {
9246
9879
  "application/json": components["schemas"]["WriteContentionRefusal"];
9247
9880
  };
9248
9881
  };
9882
+ /** @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. */
9883
+ 507: {
9884
+ headers: {
9885
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
9886
+ "X-Request-ID": components["headers"]["X-Request-ID"];
9887
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
9888
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
9889
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
9890
+ "X-Error-Code": components["headers"]["X-Error-Code"];
9891
+ [name: string]: unknown;
9892
+ };
9893
+ content: {
9894
+ "application/json": components["schemas"]["InsufficientStorageRefusal"];
9895
+ };
9896
+ };
9249
9897
  };
9250
9898
  };
9251
9899
  createEdge: {
@@ -9481,6 +10129,22 @@ interface operations {
9481
10129
  "application/json": components["schemas"]["WriteContentionRefusal"];
9482
10130
  };
9483
10131
  };
10132
+ /** @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. */
10133
+ 507: {
10134
+ headers: {
10135
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
10136
+ "X-Request-ID": components["headers"]["X-Request-ID"];
10137
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
10138
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
10139
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
10140
+ "X-Error-Code": components["headers"]["X-Error-Code"];
10141
+ "Idempotency-Replayed": components["headers"]["Idempotency-Replayed"];
10142
+ [name: string]: unknown;
10143
+ };
10144
+ content: {
10145
+ "application/json": components["schemas"]["InsufficientStorageRefusal"];
10146
+ };
10147
+ };
9484
10148
  };
9485
10149
  };
9486
10150
  getEdge: {
@@ -9636,6 +10300,21 @@ interface operations {
9636
10300
  "application/json": components["schemas"]["WriteContentionRefusal"];
9637
10301
  };
9638
10302
  };
10303
+ /** @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. */
10304
+ 507: {
10305
+ headers: {
10306
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
10307
+ "X-Request-ID": components["headers"]["X-Request-ID"];
10308
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
10309
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
10310
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
10311
+ "X-Error-Code": components["headers"]["X-Error-Code"];
10312
+ [name: string]: unknown;
10313
+ };
10314
+ content: {
10315
+ "application/json": components["schemas"]["InsufficientStorageRefusal"];
10316
+ };
10317
+ };
9639
10318
  };
9640
10319
  };
9641
10320
  deleteEdge: {
@@ -9829,6 +10508,22 @@ interface operations {
9829
10508
  "application/json": components["schemas"]["WriteContentionRefusal"];
9830
10509
  };
9831
10510
  };
10511
+ /** @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. */
10512
+ 507: {
10513
+ headers: {
10514
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
10515
+ "X-Request-ID": components["headers"]["X-Request-ID"];
10516
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
10517
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
10518
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
10519
+ "X-Error-Code": components["headers"]["X-Error-Code"];
10520
+ "Idempotency-Replayed": components["headers"]["Idempotency-Replayed"];
10521
+ [name: string]: unknown;
10522
+ };
10523
+ content: {
10524
+ "application/json": components["schemas"]["InsufficientStorageRefusal"];
10525
+ };
10526
+ };
9832
10527
  };
9833
10528
  };
9834
10529
  updateEdge: {
@@ -10046,6 +10741,22 @@ interface operations {
10046
10741
  "application/json": components["schemas"]["WriteContentionRefusal"];
10047
10742
  };
10048
10743
  };
10744
+ /** @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. */
10745
+ 507: {
10746
+ headers: {
10747
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
10748
+ "X-Request-ID": components["headers"]["X-Request-ID"];
10749
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
10750
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
10751
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
10752
+ "X-Error-Code": components["headers"]["X-Error-Code"];
10753
+ "Idempotency-Replayed": components["headers"]["Idempotency-Replayed"];
10754
+ [name: string]: unknown;
10755
+ };
10756
+ content: {
10757
+ "application/json": components["schemas"]["InsufficientStorageRefusal"];
10758
+ };
10759
+ };
10049
10760
  };
10050
10761
  };
10051
10762
  bulkUpsertEdges: {
@@ -10242,6 +10953,21 @@ interface operations {
10242
10953
  "application/json": components["schemas"]["WriteContentionRefusal"];
10243
10954
  };
10244
10955
  };
10956
+ /** @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. */
10957
+ 507: {
10958
+ headers: {
10959
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
10960
+ "X-Request-ID": components["headers"]["X-Request-ID"];
10961
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
10962
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
10963
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
10964
+ "X-Error-Code": components["headers"]["X-Error-Code"];
10965
+ [name: string]: unknown;
10966
+ };
10967
+ content: {
10968
+ "application/json": components["schemas"]["InsufficientStorageRefusal"];
10969
+ };
10970
+ };
10245
10971
  };
10246
10972
  };
10247
10973
  listEdgeTypes: {
@@ -10362,6 +11088,21 @@ interface operations {
10362
11088
  "application/json": components["schemas"]["WriteContentionRefusal"];
10363
11089
  };
10364
11090
  };
11091
+ /** @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. */
11092
+ 507: {
11093
+ headers: {
11094
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
11095
+ "X-Request-ID": components["headers"]["X-Request-ID"];
11096
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
11097
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
11098
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
11099
+ "X-Error-Code": components["headers"]["X-Error-Code"];
11100
+ [name: string]: unknown;
11101
+ };
11102
+ content: {
11103
+ "application/json": components["schemas"]["InsufficientStorageRefusal"];
11104
+ };
11105
+ };
10365
11106
  };
10366
11107
  };
10367
11108
  registerEdgeType: {
@@ -10394,9 +11135,9 @@ interface operations {
10394
11135
  };
10395
11136
  };
10396
11137
  /**
10397
- * @description - `validation_error`: a field is invalid, such as an `id` or `reverse_name` that isn't a valid edge type identifier, a `role:` constraint naming no role, or `written_at: target` with no `reverse_name`; or the body names `extends`.
11138
+ * @description - `validation_error`: a field is invalid, such as a bad `id` or `reverse_name`, a `role:` naming no role, or `written_at: target` with no `reverse_name`, or `extends` is set.
10398
11139
  * - `missing_required_field`: `id` or `cardinality` is missing.
10399
- * - `invalid_schema`: a property's `type` isn't a field type.
11140
+ * - `invalid_schema`: a property's `type` isn't a field type, or the body has a key the schema doesn't define (`details.errors` names each path).
10400
11141
  */
10401
11142
  400: {
10402
11143
  headers: {
@@ -10518,6 +11259,21 @@ interface operations {
10518
11259
  "application/json": components["schemas"]["WriteContentionRefusal"];
10519
11260
  };
10520
11261
  };
11262
+ /** @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. */
11263
+ 507: {
11264
+ headers: {
11265
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
11266
+ "X-Request-ID": components["headers"]["X-Request-ID"];
11267
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
11268
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
11269
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
11270
+ "X-Error-Code": components["headers"]["X-Error-Code"];
11271
+ [name: string]: unknown;
11272
+ };
11273
+ content: {
11274
+ "application/json": components["schemas"]["InsufficientStorageRefusal"];
11275
+ };
11276
+ };
10521
11277
  };
10522
11278
  };
10523
11279
  deleteEdgeType: {
@@ -10685,6 +11441,21 @@ interface operations {
10685
11441
  "application/json": components["schemas"]["WriteContentionRefusal"];
10686
11442
  };
10687
11443
  };
11444
+ /** @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. */
11445
+ 507: {
11446
+ headers: {
11447
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
11448
+ "X-Request-ID": components["headers"]["X-Request-ID"];
11449
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
11450
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
11451
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
11452
+ "X-Error-Code": components["headers"]["X-Error-Code"];
11453
+ [name: string]: unknown;
11454
+ };
11455
+ content: {
11456
+ "application/json": components["schemas"]["InsufficientStorageRefusal"];
11457
+ };
11458
+ };
10688
11459
  };
10689
11460
  };
10690
11461
  listTypes: {
@@ -10805,6 +11576,21 @@ interface operations {
10805
11576
  "application/json": components["schemas"]["WriteContentionRefusal"];
10806
11577
  };
10807
11578
  };
11579
+ /** @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. */
11580
+ 507: {
11581
+ headers: {
11582
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
11583
+ "X-Request-ID": components["headers"]["X-Request-ID"];
11584
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
11585
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
11586
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
11587
+ "X-Error-Code": components["headers"]["X-Error-Code"];
11588
+ [name: string]: unknown;
11589
+ };
11590
+ content: {
11591
+ "application/json": components["schemas"]["InsufficientStorageRefusal"];
11592
+ };
11593
+ };
10808
11594
  };
10809
11595
  };
10810
11596
  registerType: {
@@ -10837,8 +11623,8 @@ interface operations {
10837
11623
  /**
10838
11624
  * @description - `missing_required_field`: `fields` is missing.
10839
11625
  * - `validation_error`: `id` is malformed, or `parent` isn't registered or makes too deep a chain.
10840
- * - `invalid_schema`: the schema is invalid, such as a `link_field` that isn't a string field.
10841
- * - `property_shadows_field`: a field is named like one every item has, such as `source_id`.
11626
+ * - `invalid_schema`: the schema is invalid or has a key it doesn't define (`details.errors` names each path).
11627
+ * - `property_shadows_field`: a field is named like one every item has.
10842
11628
  * - `inheritance_violation`: the type reshapes an inherited field.
10843
11629
  */
10844
11630
  400: {
@@ -10979,6 +11765,21 @@ interface operations {
10979
11765
  "application/json": components["schemas"]["WriteContentionRefusal"];
10980
11766
  };
10981
11767
  };
11768
+ /** @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. */
11769
+ 507: {
11770
+ headers: {
11771
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
11772
+ "X-Request-ID": components["headers"]["X-Request-ID"];
11773
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
11774
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
11775
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
11776
+ "X-Error-Code": components["headers"]["X-Error-Code"];
11777
+ [name: string]: unknown;
11778
+ };
11779
+ content: {
11780
+ "application/json": components["schemas"]["InsufficientStorageRefusal"];
11781
+ };
11782
+ };
10982
11783
  };
10983
11784
  };
10984
11785
  getType: {
@@ -11113,6 +11914,21 @@ interface operations {
11113
11914
  "application/json": components["schemas"]["WriteContentionRefusal"];
11114
11915
  };
11115
11916
  };
11917
+ /** @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. */
11918
+ 507: {
11919
+ headers: {
11920
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
11921
+ "X-Request-ID": components["headers"]["X-Request-ID"];
11922
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
11923
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
11924
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
11925
+ "X-Error-Code": components["headers"]["X-Error-Code"];
11926
+ [name: string]: unknown;
11927
+ };
11928
+ content: {
11929
+ "application/json": components["schemas"]["InsufficientStorageRefusal"];
11930
+ };
11931
+ };
11116
11932
  };
11117
11933
  };
11118
11934
  replaceType: {
@@ -11147,8 +11963,8 @@ interface operations {
11147
11963
  };
11148
11964
  /**
11149
11965
  * @description - `missing_required_field`: `fields` is missing.
11150
- * - `validation_error`: `id` is malformed, or `parent` isn't registered or makes a circular or too deep chain.
11151
- * - `invalid_schema`: the schema is invalid, such as a `link_field` that isn't a string field.
11966
+ * - `validation_error`: `id` is malformed, or `parent` isn't registered or makes a bad chain.
11967
+ * - `invalid_schema`: the schema is invalid or has a key it doesn't define (`details.errors` names each path).
11152
11968
  * - `property_shadows_field`: a field has the name of one every item has.
11153
11969
  * - `inheritance_violation`: a field's shape differs in a parent or subtype.
11154
11970
  */
@@ -11303,6 +12119,21 @@ interface operations {
11303
12119
  "application/json": components["schemas"]["WriteContentionRefusal"];
11304
12120
  };
11305
12121
  };
12122
+ /** @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. */
12123
+ 507: {
12124
+ headers: {
12125
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
12126
+ "X-Request-ID": components["headers"]["X-Request-ID"];
12127
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
12128
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
12129
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
12130
+ "X-Error-Code": components["headers"]["X-Error-Code"];
12131
+ [name: string]: unknown;
12132
+ };
12133
+ content: {
12134
+ "application/json": components["schemas"]["InsufficientStorageRefusal"];
12135
+ };
12136
+ };
11306
12137
  };
11307
12138
  };
11308
12139
  deleteType: {
@@ -11474,41 +12305,37 @@ interface operations {
11474
12305
  "application/json": components["schemas"]["WriteContentionRefusal"];
11475
12306
  };
11476
12307
  };
12308
+ /** @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. */
12309
+ 507: {
12310
+ headers: {
12311
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
12312
+ "X-Request-ID": components["headers"]["X-Request-ID"];
12313
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
12314
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
12315
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
12316
+ "X-Error-Code": components["headers"]["X-Error-Code"];
12317
+ [name: string]: unknown;
12318
+ };
12319
+ content: {
12320
+ "application/json": components["schemas"]["InsufficientStorageRefusal"];
12321
+ };
12322
+ };
11477
12323
  };
11478
12324
  };
11479
- searchItems: {
12325
+ normalizeType: {
11480
12326
  parameters: {
11481
- query: {
11482
- /** @description The text to search for. Marfa matches every word by its stem, in any order, and the last word as the start of a word. Wrap the query in double quotes to match a phrase. */
11483
- q: string;
11484
- /** @description Only return items of this type or a subtype. A wildcard such as `core.*` matches every type under that prefix. */
11485
- type?: string;
11486
- /** @description Only return items in this lifecycle state. Without it, you get `active` items. `any` searches every state, but trashed items are never searchable. */
11487
- state?: string;
11488
- /** @description Only return items in this tier. Omit it or send `all` for both tiers. */
11489
- tier?: "library" | "feed" | "all";
11490
- /** @description Comma-separated extras. `system` also returns `system.*` items, which are left out by default. A `system.` type filter does the same. */
11491
- include?: string;
11492
- /** @description Comma-separated tags. Only return items that carry all of them. */
11493
- tags?: string;
11494
- /** @description The maximum number of results to return. */
11495
- limit?: number;
11496
- /** @description The `next_cursor` from the previous page. Leave it out to get the first page. */
11497
- cursor?: string;
11498
- /** @description A filter expression, as on `GET /items`. A term naming an edge type, `edge[<type>]` or `backref[<type>]`, matches by relationship and needs read on that edge type. */
11499
- filter?: string;
11500
- /** @description Only return items whose own time (`occurred_at`, else `created_at`) is after this RFC 3339 time. */
11501
- occurred_after?: string;
11502
- /** @description Only return items whose own time (`occurred_at`, else `created_at`) is before this RFC 3339 time. */
11503
- occurred_before?: string;
11504
- };
12327
+ query?: never;
11505
12328
  header?: never;
11506
12329
  path?: never;
11507
12330
  cookie?: never;
11508
12331
  };
11509
- requestBody?: never;
12332
+ requestBody: {
12333
+ content: {
12334
+ "application/json": components["schemas"]["TypeDefinitionInput"];
12335
+ };
12336
+ };
11510
12337
  responses: {
11511
- /** @description Returns a page of results. Each page runs the search again, so a change between two pages can repeat or skip a result. Marfa reads at most 10,000 results deep: the page that reaches that depth has `next_cursor: null`. */
12338
+ /** @description Returns the normalized candidate and the registered definitions. */
11512
12339
  200: {
11513
12340
  headers: {
11514
12341
  "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
@@ -11519,13 +12346,15 @@ interface operations {
11519
12346
  [name: string]: unknown;
11520
12347
  };
11521
12348
  content: {
11522
- "application/json": components["schemas"]["SearchResultPage"];
12349
+ "application/json": components["schemas"]["NormalizedType"];
11523
12350
  };
11524
12351
  };
11525
12352
  /**
11526
- * @description - `missing_required_field`: `q` is missing.
11527
- * - `validation_error`: a parameter is unknown or invalid, such as a `state` that isn't a lifecycle state or `any`, a time that isn't an instant, or a `cursor` from another search.
11528
- * - `unknown_type`: `type` is a concrete type that nothing registers.
12353
+ * @description - `missing_required_field`: `fields` is missing.
12354
+ * - `validation_error`: `id` is malformed, or `parent` isn't registered or makes too deep a chain.
12355
+ * - `invalid_schema`: the schema is invalid or has a key it doesn't define (`details.errors` names each path).
12356
+ * - `property_shadows_field`: a field is named like one every item has.
12357
+ * - `inheritance_violation`: the type reshapes an inherited field.
11529
12358
  */
11530
12359
  400: {
11531
12360
  headers: {
@@ -11538,7 +12367,7 @@ interface operations {
11538
12367
  [name: string]: unknown;
11539
12368
  };
11540
12369
  content: {
11541
- "application/json": components["schemas"]["MissingRequiredFieldOrUnknownTypeOrValidationErrorRefusal"];
12370
+ "application/json": components["schemas"]["InheritanceViolationOrInvalidSchemaOrMissingRequiredFieldOrPropertyShadowsFieldOrValidationErrorRefusal"];
11542
12371
  };
11543
12372
  };
11544
12373
  /** @description `unauthorized`: the request has no credential, or its credential is not valid. */
@@ -11556,11 +12385,8 @@ interface operations {
11556
12385
  "application/json": components["schemas"]["UnauthorizedRefusal"];
11557
12386
  };
11558
12387
  };
11559
- /**
11560
- * @description - `type_not_permitted`: your credential reaches no type, or `type` names a type you can't read with none readable under it.
11561
- * - `edge_permission_denied`: the filter has an `edge` or `backref` term for an edge type you can't read.
11562
- */
11563
- 403: {
12388
+ /** @description `type_chain_unresolvable`: the type's parent chain is circular or too deep to resolve. `PUT /types/{id}` can correct it. */
12389
+ 409: {
11564
12390
  headers: {
11565
12391
  "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
11566
12392
  "X-Request-ID": components["headers"]["X-Request-ID"];
@@ -11571,27 +12397,23 @@ interface operations {
11571
12397
  [name: string]: unknown;
11572
12398
  };
11573
12399
  content: {
11574
- "application/json": components["schemas"]["EdgePermissionDeniedOrTypeNotPermittedRefusal"];
12400
+ "application/json": components["schemas"]["TypeChainUnresolvableRefusal"];
11575
12401
  };
11576
12402
  };
11577
- /** @description `rate_limited`: you sent too many requests. Wait for the number of seconds in `Retry-After`, then try again. */
11578
- 429: {
12403
+ /** @description `request_too_large`: the request body is larger than this instance accepts. */
12404
+ 413: {
11579
12405
  headers: {
11580
12406
  "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
11581
12407
  "X-Request-ID": components["headers"]["X-Request-ID"];
11582
- "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
11583
- "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
11584
- "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
11585
12408
  "X-Error-Code": components["headers"]["X-Error-Code"];
11586
- "Retry-After": components["headers"]["Retry-After"];
11587
12409
  [name: string]: unknown;
11588
12410
  };
11589
12411
  content: {
11590
- "application/json": components["schemas"]["RateLimitedRefusal"];
12412
+ "application/json": components["schemas"]["RequestTooLargeRefusal"];
11591
12413
  };
11592
12414
  };
11593
- /** @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. */
11594
- 500: {
12415
+ /** @description `compatible_with_violation`: `compatible_with` names a type this instance doesn't hold, or one the type doesn't satisfy. */
12416
+ 422: {
11595
12417
  headers: {
11596
12418
  "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
11597
12419
  "X-Request-ID": components["headers"]["X-Request-ID"];
@@ -11602,11 +12424,11 @@ interface operations {
11602
12424
  [name: string]: unknown;
11603
12425
  };
11604
12426
  content: {
11605
- "application/json": components["schemas"]["InternalErrorRefusal"];
12427
+ "application/json": components["schemas"]["CompatibleWithViolationRefusal"];
11606
12428
  };
11607
12429
  };
11608
- /** @description `write_contention`: the database was busy, and Marfa couldn't complete the request in time. Nothing changed. Try the request again. */
11609
- 503: {
12430
+ /** @description `rate_limited`: you sent too many requests. Wait for the number of seconds in `Retry-After`, then try again. */
12431
+ 429: {
11610
12432
  headers: {
11611
12433
  "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
11612
12434
  "X-Request-ID": components["headers"]["X-Request-ID"];
@@ -11614,10 +12436,217 @@ interface operations {
11614
12436
  "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
11615
12437
  "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
11616
12438
  "X-Error-Code": components["headers"]["X-Error-Code"];
12439
+ "Retry-After": components["headers"]["Retry-After"];
11617
12440
  [name: string]: unknown;
11618
12441
  };
11619
12442
  content: {
11620
- "application/json": components["schemas"]["WriteContentionRefusal"];
12443
+ "application/json": components["schemas"]["RateLimitedRefusal"];
12444
+ };
12445
+ };
12446
+ /** @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. */
12447
+ 500: {
12448
+ headers: {
12449
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
12450
+ "X-Request-ID": components["headers"]["X-Request-ID"];
12451
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
12452
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
12453
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
12454
+ "X-Error-Code": components["headers"]["X-Error-Code"];
12455
+ [name: string]: unknown;
12456
+ };
12457
+ content: {
12458
+ "application/json": components["schemas"]["InternalErrorRefusal"];
12459
+ };
12460
+ };
12461
+ /** @description `write_contention`: the database was busy, and Marfa couldn't complete the request in time. Nothing changed. Try the request again. */
12462
+ 503: {
12463
+ headers: {
12464
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
12465
+ "X-Request-ID": components["headers"]["X-Request-ID"];
12466
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
12467
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
12468
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
12469
+ "X-Error-Code": components["headers"]["X-Error-Code"];
12470
+ [name: string]: unknown;
12471
+ };
12472
+ content: {
12473
+ "application/json": components["schemas"]["WriteContentionRefusal"];
12474
+ };
12475
+ };
12476
+ /** @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. */
12477
+ 507: {
12478
+ headers: {
12479
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
12480
+ "X-Request-ID": components["headers"]["X-Request-ID"];
12481
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
12482
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
12483
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
12484
+ "X-Error-Code": components["headers"]["X-Error-Code"];
12485
+ [name: string]: unknown;
12486
+ };
12487
+ content: {
12488
+ "application/json": components["schemas"]["InsufficientStorageRefusal"];
12489
+ };
12490
+ };
12491
+ };
12492
+ };
12493
+ searchItems: {
12494
+ parameters: {
12495
+ query: {
12496
+ /** @description The text to search for. Marfa matches every word by its stem, in any order, and the last word as the start of a word. Wrap the query in double quotes to match a phrase. */
12497
+ q: string;
12498
+ /** @description Only return items of this type or a subtype. A wildcard such as `core.*` matches every type under that prefix. */
12499
+ type?: string;
12500
+ /** @description Only return items in this lifecycle state. Without it, you get `active` items. `any` searches every state, but trashed items are never searchable. */
12501
+ state?: string;
12502
+ /** @description Only return items in this tier. Omit it or send `all` for both tiers. */
12503
+ tier?: "library" | "feed" | "all";
12504
+ /** @description Comma-separated extras. `system` also returns `system.*` items, which are left out by default. A `system.` type filter does the same. */
12505
+ include?: string;
12506
+ /** @description Comma-separated tags. Only return items that carry all of them. */
12507
+ tags?: string;
12508
+ /** @description The maximum number of results to return. */
12509
+ limit?: number;
12510
+ /** @description The `next_cursor` from the previous page. Leave it out to get the first page. */
12511
+ cursor?: string;
12512
+ /** @description A filter expression, as on `GET /items`. A term naming an edge type, `edge[<type>]` or `backref[<type>]`, matches by relationship and needs read on that edge type. */
12513
+ filter?: string;
12514
+ /** @description Only return items whose own time (`occurred_at`, else `created_at`) is after this RFC 3339 time. */
12515
+ occurred_after?: string;
12516
+ /** @description Only return items whose own time (`occurred_at`, else `created_at`) is before this RFC 3339 time. */
12517
+ occurred_before?: string;
12518
+ };
12519
+ header?: never;
12520
+ path?: never;
12521
+ cookie?: never;
12522
+ };
12523
+ requestBody?: never;
12524
+ responses: {
12525
+ /** @description Returns a page of results. Each page runs the search again, so a change between two pages can repeat or skip a result. Marfa reads at most 10,000 results deep: the page that reaches that depth has `next_cursor: null`. */
12526
+ 200: {
12527
+ headers: {
12528
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
12529
+ "X-Request-ID": components["headers"]["X-Request-ID"];
12530
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
12531
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
12532
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
12533
+ [name: string]: unknown;
12534
+ };
12535
+ content: {
12536
+ "application/json": components["schemas"]["SearchResultPage"];
12537
+ };
12538
+ };
12539
+ /**
12540
+ * @description - `missing_required_field`: `q` is missing.
12541
+ * - `validation_error`: a parameter is unknown or invalid, such as a `state` that isn't a lifecycle state or `any`, a time that isn't an instant, or a `cursor` from another search.
12542
+ * - `unknown_type`: `type` is a concrete type that nothing registers.
12543
+ */
12544
+ 400: {
12545
+ headers: {
12546
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
12547
+ "X-Request-ID": components["headers"]["X-Request-ID"];
12548
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
12549
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
12550
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
12551
+ "X-Error-Code": components["headers"]["X-Error-Code"];
12552
+ [name: string]: unknown;
12553
+ };
12554
+ content: {
12555
+ "application/json": components["schemas"]["MissingRequiredFieldOrUnknownTypeOrValidationErrorRefusal"];
12556
+ };
12557
+ };
12558
+ /** @description `unauthorized`: the request has no credential, or its credential is not valid. */
12559
+ 401: {
12560
+ headers: {
12561
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
12562
+ "X-Request-ID": components["headers"]["X-Request-ID"];
12563
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
12564
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
12565
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
12566
+ "X-Error-Code": components["headers"]["X-Error-Code"];
12567
+ [name: string]: unknown;
12568
+ };
12569
+ content: {
12570
+ "application/json": components["schemas"]["UnauthorizedRefusal"];
12571
+ };
12572
+ };
12573
+ /**
12574
+ * @description - `type_not_permitted`: your credential reaches no type, or `type` names a type you can't read with none readable under it.
12575
+ * - `edge_permission_denied`: the filter has an `edge` or `backref` term for an edge type you can't read.
12576
+ */
12577
+ 403: {
12578
+ headers: {
12579
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
12580
+ "X-Request-ID": components["headers"]["X-Request-ID"];
12581
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
12582
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
12583
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
12584
+ "X-Error-Code": components["headers"]["X-Error-Code"];
12585
+ [name: string]: unknown;
12586
+ };
12587
+ content: {
12588
+ "application/json": components["schemas"]["EdgePermissionDeniedOrTypeNotPermittedRefusal"];
12589
+ };
12590
+ };
12591
+ /** @description `rate_limited`: you sent too many requests. Wait for the number of seconds in `Retry-After`, then try again. */
12592
+ 429: {
12593
+ headers: {
12594
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
12595
+ "X-Request-ID": components["headers"]["X-Request-ID"];
12596
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
12597
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
12598
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
12599
+ "X-Error-Code": components["headers"]["X-Error-Code"];
12600
+ "Retry-After": components["headers"]["Retry-After"];
12601
+ [name: string]: unknown;
12602
+ };
12603
+ content: {
12604
+ "application/json": components["schemas"]["RateLimitedRefusal"];
12605
+ };
12606
+ };
12607
+ /** @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. */
12608
+ 500: {
12609
+ headers: {
12610
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
12611
+ "X-Request-ID": components["headers"]["X-Request-ID"];
12612
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
12613
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
12614
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
12615
+ "X-Error-Code": components["headers"]["X-Error-Code"];
12616
+ [name: string]: unknown;
12617
+ };
12618
+ content: {
12619
+ "application/json": components["schemas"]["InternalErrorRefusal"];
12620
+ };
12621
+ };
12622
+ /** @description `write_contention`: the database was busy, and Marfa couldn't complete the request in time. Nothing changed. Try the request again. */
12623
+ 503: {
12624
+ headers: {
12625
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
12626
+ "X-Request-ID": components["headers"]["X-Request-ID"];
12627
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
12628
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
12629
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
12630
+ "X-Error-Code": components["headers"]["X-Error-Code"];
12631
+ [name: string]: unknown;
12632
+ };
12633
+ content: {
12634
+ "application/json": components["schemas"]["WriteContentionRefusal"];
12635
+ };
12636
+ };
12637
+ /** @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. */
12638
+ 507: {
12639
+ headers: {
12640
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
12641
+ "X-Request-ID": components["headers"]["X-Request-ID"];
12642
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
12643
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
12644
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
12645
+ "X-Error-Code": components["headers"]["X-Error-Code"];
12646
+ [name: string]: unknown;
12647
+ };
12648
+ content: {
12649
+ "application/json": components["schemas"]["InsufficientStorageRefusal"];
11621
12650
  };
11622
12651
  };
11623
12652
  };
@@ -11747,6 +12776,21 @@ interface operations {
11747
12776
  "application/json": components["schemas"]["WriteContentionRefusal"];
11748
12777
  };
11749
12778
  };
12779
+ /** @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. */
12780
+ 507: {
12781
+ headers: {
12782
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
12783
+ "X-Request-ID": components["headers"]["X-Request-ID"];
12784
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
12785
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
12786
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
12787
+ "X-Error-Code": components["headers"]["X-Error-Code"];
12788
+ [name: string]: unknown;
12789
+ };
12790
+ content: {
12791
+ "application/json": components["schemas"]["InsufficientStorageRefusal"];
12792
+ };
12793
+ };
11750
12794
  };
11751
12795
  };
11752
12796
  listTags: {
@@ -11863,6 +12907,21 @@ interface operations {
11863
12907
  "application/json": components["schemas"]["WriteContentionRefusal"];
11864
12908
  };
11865
12909
  };
12910
+ /** @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. */
12911
+ 507: {
12912
+ headers: {
12913
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
12914
+ "X-Request-ID": components["headers"]["X-Request-ID"];
12915
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
12916
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
12917
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
12918
+ "X-Error-Code": components["headers"]["X-Error-Code"];
12919
+ [name: string]: unknown;
12920
+ };
12921
+ content: {
12922
+ "application/json": components["schemas"]["InsufficientStorageRefusal"];
12923
+ };
12924
+ };
11866
12925
  };
11867
12926
  };
11868
12927
  uploadBlob: {
@@ -11991,6 +13050,21 @@ interface operations {
11991
13050
  "application/json": components["schemas"]["WriteContentionRefusal"];
11992
13051
  };
11993
13052
  };
13053
+ /** @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. */
13054
+ 507: {
13055
+ headers: {
13056
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
13057
+ "X-Request-ID": components["headers"]["X-Request-ID"];
13058
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
13059
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
13060
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
13061
+ "X-Error-Code": components["headers"]["X-Error-Code"];
13062
+ [name: string]: unknown;
13063
+ };
13064
+ content: {
13065
+ "application/json": components["schemas"]["InsufficientStorageRefusal"];
13066
+ };
13067
+ };
11994
13068
  };
11995
13069
  };
11996
13070
  listBlobOrphans: {
@@ -12046,7 +13120,7 @@ interface operations {
12046
13120
  "application/json": components["schemas"]["UnauthorizedRefusal"];
12047
13121
  };
12048
13122
  };
12049
- /** @description - `forbidden`: your key isn't an operator key. */
13123
+ /** @description Caller lacks the required management permission. */
12050
13124
  403: {
12051
13125
  headers: {
12052
13126
  "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
@@ -12107,6 +13181,21 @@ interface operations {
12107
13181
  "application/json": components["schemas"]["WriteContentionRefusal"];
12108
13182
  };
12109
13183
  };
13184
+ /** @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. */
13185
+ 507: {
13186
+ headers: {
13187
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
13188
+ "X-Request-ID": components["headers"]["X-Request-ID"];
13189
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
13190
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
13191
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
13192
+ "X-Error-Code": components["headers"]["X-Error-Code"];
13193
+ [name: string]: unknown;
13194
+ };
13195
+ content: {
13196
+ "application/json": components["schemas"]["InsufficientStorageRefusal"];
13197
+ };
13198
+ };
12110
13199
  };
12111
13200
  };
12112
13201
  listBlobStores: {
@@ -12162,7 +13251,7 @@ interface operations {
12162
13251
  "application/json": components["schemas"]["UnauthorizedRefusal"];
12163
13252
  };
12164
13253
  };
12165
- /** @description - `forbidden`: your key isn't an operator key. */
13254
+ /** @description Caller lacks the required management permission. */
12166
13255
  403: {
12167
13256
  headers: {
12168
13257
  "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
@@ -12223,14 +13312,29 @@ interface operations {
12223
13312
  "application/json": components["schemas"]["WriteContentionRefusal"];
12224
13313
  };
12225
13314
  };
12226
- };
12227
- };
12228
- downloadBlob: {
12229
- parameters: {
12230
- query?: never;
12231
- header?: never;
12232
- path: {
12233
- /** @description The blob's hash, `sha256:<hex>`. You can read a blob only if an item, edge or extension you can read references its hash, and whoever wrote that reference had uploaded the bytes or could read them. The operator key reads every blob. */
13315
+ /** @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. */
13316
+ 507: {
13317
+ headers: {
13318
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
13319
+ "X-Request-ID": components["headers"]["X-Request-ID"];
13320
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
13321
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
13322
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
13323
+ "X-Error-Code": components["headers"]["X-Error-Code"];
13324
+ [name: string]: unknown;
13325
+ };
13326
+ content: {
13327
+ "application/json": components["schemas"]["InsufficientStorageRefusal"];
13328
+ };
13329
+ };
13330
+ };
13331
+ };
13332
+ downloadBlob: {
13333
+ parameters: {
13334
+ query?: never;
13335
+ header?: never;
13336
+ path: {
13337
+ /** @description The blob's hash, `sha256:<hex>`. You can read a blob only if an item, edge or extension you can read references its hash, and whoever wrote that reference had uploaded the bytes or could read them. The blobs.manage permission reads every blob. */
12234
13338
  hash: string;
12235
13339
  };
12236
13340
  cookie?: never;
@@ -12406,6 +13510,21 @@ interface operations {
12406
13510
  "application/json": components["schemas"]["WriteContentionRefusal"];
12407
13511
  };
12408
13512
  };
13513
+ /** @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. */
13514
+ 507: {
13515
+ headers: {
13516
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
13517
+ "X-Request-ID": components["headers"]["X-Request-ID"];
13518
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
13519
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
13520
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
13521
+ "X-Error-Code": components["headers"]["X-Error-Code"];
13522
+ [name: string]: unknown;
13523
+ };
13524
+ content: {
13525
+ "application/json": components["schemas"]["InsufficientStorageRefusal"];
13526
+ };
13527
+ };
12409
13528
  };
12410
13529
  };
12411
13530
  getBlobUrl: {
@@ -12416,7 +13535,7 @@ interface operations {
12416
13535
  };
12417
13536
  header?: never;
12418
13537
  path: {
12419
- /** @description The blob's hash, `sha256:<hex>`. You can read a blob only if an item, edge or extension you can read references its hash, and whoever wrote that reference had uploaded the bytes or could read them. The operator key reads every blob. */
13538
+ /** @description The blob's hash, `sha256:<hex>`. You can read a blob only if an item, edge or extension you can read references its hash, and whoever wrote that reference had uploaded the bytes or could read them. The blobs.manage permission reads every blob. */
12420
13539
  hash: string;
12421
13540
  };
12422
13541
  cookie?: never;
@@ -12548,6 +13667,21 @@ interface operations {
12548
13667
  "application/json": components["schemas"]["WriteContentionRefusal"];
12549
13668
  };
12550
13669
  };
13670
+ /** @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. */
13671
+ 507: {
13672
+ headers: {
13673
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
13674
+ "X-Request-ID": components["headers"]["X-Request-ID"];
13675
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
13676
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
13677
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
13678
+ "X-Error-Code": components["headers"]["X-Error-Code"];
13679
+ [name: string]: unknown;
13680
+ };
13681
+ content: {
13682
+ "application/json": components["schemas"]["InsufficientStorageRefusal"];
13683
+ };
13684
+ };
12551
13685
  };
12552
13686
  };
12553
13687
  listBlobLocations: {
@@ -12555,7 +13689,7 @@ interface operations {
12555
13689
  query?: never;
12556
13690
  header?: never;
12557
13691
  path: {
12558
- /** @description The blob's hash, `sha256:<hex>`. You can read a blob only if an item, edge or extension you can read references its hash, and whoever wrote that reference had uploaded the bytes or could read them. The operator key reads every blob. */
13692
+ /** @description The blob's hash, `sha256:<hex>`. You can read a blob only if an item, edge or extension you can read references its hash, and whoever wrote that reference had uploaded the bytes or could read them. The blobs.manage permission reads every blob. */
12559
13693
  hash: string;
12560
13694
  };
12561
13695
  cookie?: never;
@@ -12682,6 +13816,21 @@ interface operations {
12682
13816
  "application/json": components["schemas"]["WriteContentionRefusal"];
12683
13817
  };
12684
13818
  };
13819
+ /** @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. */
13820
+ 507: {
13821
+ headers: {
13822
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
13823
+ "X-Request-ID": components["headers"]["X-Request-ID"];
13824
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
13825
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
13826
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
13827
+ "X-Error-Code": components["headers"]["X-Error-Code"];
13828
+ [name: string]: unknown;
13829
+ };
13830
+ content: {
13831
+ "application/json": components["schemas"]["InsufficientStorageRefusal"];
13832
+ };
13833
+ };
12685
13834
  };
12686
13835
  };
12687
13836
  deleteBlobLocation: {
@@ -12742,7 +13891,7 @@ interface operations {
12742
13891
  "application/json": components["schemas"]["UnauthorizedRefusal"];
12743
13892
  };
12744
13893
  };
12745
- /** @description - `forbidden`: your key isn't an operator key. */
13894
+ /** @description Caller lacks the required management permission. */
12746
13895
  403: {
12747
13896
  headers: {
12748
13897
  "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
@@ -12836,6 +13985,21 @@ interface operations {
12836
13985
  "application/json": components["schemas"]["WriteContentionRefusal"];
12837
13986
  };
12838
13987
  };
13988
+ /** @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. */
13989
+ 507: {
13990
+ headers: {
13991
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
13992
+ "X-Request-ID": components["headers"]["X-Request-ID"];
13993
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
13994
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
13995
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
13996
+ "X-Error-Code": components["headers"]["X-Error-Code"];
13997
+ [name: string]: unknown;
13998
+ };
13999
+ content: {
14000
+ "application/json": components["schemas"]["InsufficientStorageRefusal"];
14001
+ };
14002
+ };
12839
14003
  };
12840
14004
  };
12841
14005
  listHousekeeping: {
@@ -12891,7 +14055,7 @@ interface operations {
12891
14055
  "application/json": components["schemas"]["UnauthorizedRefusal"];
12892
14056
  };
12893
14057
  };
12894
- /** @description - `forbidden`: your key isn't an operator key. */
14058
+ /** @description Caller lacks the required management permission. */
12895
14059
  403: {
12896
14060
  headers: {
12897
14061
  "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
@@ -12952,6 +14116,21 @@ interface operations {
12952
14116
  "application/json": components["schemas"]["WriteContentionRefusal"];
12953
14117
  };
12954
14118
  };
14119
+ /** @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. */
14120
+ 507: {
14121
+ headers: {
14122
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
14123
+ "X-Request-ID": components["headers"]["X-Request-ID"];
14124
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
14125
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
14126
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
14127
+ "X-Error-Code": components["headers"]["X-Error-Code"];
14128
+ [name: string]: unknown;
14129
+ };
14130
+ content: {
14131
+ "application/json": components["schemas"]["InsufficientStorageRefusal"];
14132
+ };
14133
+ };
12955
14134
  };
12956
14135
  };
12957
14136
  runHousekeeping: {
@@ -13010,7 +14189,7 @@ interface operations {
13010
14189
  "application/json": components["schemas"]["UnauthorizedRefusal"];
13011
14190
  };
13012
14191
  };
13013
- /** @description - `forbidden`: your key isn't an operator key. */
14192
+ /** @description Caller lacks the required management permission. */
13014
14193
  403: {
13015
14194
  headers: {
13016
14195
  "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
@@ -13113,6 +14292,21 @@ interface operations {
13113
14292
  "application/json": components["schemas"]["WriteContentionRefusal"];
13114
14293
  };
13115
14294
  };
14295
+ /** @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. */
14296
+ 507: {
14297
+ headers: {
14298
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
14299
+ "X-Request-ID": components["headers"]["X-Request-ID"];
14300
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
14301
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
14302
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
14303
+ "X-Error-Code": components["headers"]["X-Error-Code"];
14304
+ [name: string]: unknown;
14305
+ };
14306
+ content: {
14307
+ "application/json": components["schemas"]["InsufficientStorageRefusal"];
14308
+ };
14309
+ };
13116
14310
  };
13117
14311
  };
13118
14312
  listConnectors: {
@@ -13214,6 +14408,21 @@ interface operations {
13214
14408
  "application/json": components["schemas"]["WriteContentionRefusal"];
13215
14409
  };
13216
14410
  };
14411
+ /** @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. */
14412
+ 507: {
14413
+ headers: {
14414
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
14415
+ "X-Request-ID": components["headers"]["X-Request-ID"];
14416
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
14417
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
14418
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
14419
+ "X-Error-Code": components["headers"]["X-Error-Code"];
14420
+ [name: string]: unknown;
14421
+ };
14422
+ content: {
14423
+ "application/json": components["schemas"]["InsufficientStorageRefusal"];
14424
+ };
14425
+ };
13217
14426
  };
13218
14427
  };
13219
14428
  registerConnector: {
@@ -13264,7 +14473,7 @@ interface operations {
13264
14473
  };
13265
14474
  /**
13266
14475
  * @description - `missing_required_field`: `name` is missing.
13267
- * - `validation_error`: `name` isn't 1 to 200 characters, or `description` is over 2,000 characters.
14476
+ * - `validation_error`: `name` isn't 1 to 200 characters, `description` is over 2,000 characters, or the body has a top-level field this endpoint doesn't take.
13268
14477
  */
13269
14478
  400: {
13270
14479
  headers: {
@@ -13295,7 +14504,7 @@ interface operations {
13295
14504
  "application/json": components["schemas"]["UnauthorizedRefusal"];
13296
14505
  };
13297
14506
  };
13298
- /** @description - `forbidden`: your credential is an app's session token, not a key, or the operator key, which runs the instance and can't register as a connector. */
14507
+ /** @description - `forbidden`: your credential is an app's access token, not a key, or direct owner or local authority. */
13299
14508
  403: {
13300
14509
  headers: {
13301
14510
  "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
@@ -13368,6 +14577,21 @@ interface operations {
13368
14577
  "application/json": components["schemas"]["WriteContentionRefusal"];
13369
14578
  };
13370
14579
  };
14580
+ /** @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. */
14581
+ 507: {
14582
+ headers: {
14583
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
14584
+ "X-Request-ID": components["headers"]["X-Request-ID"];
14585
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
14586
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
14587
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
14588
+ "X-Error-Code": components["headers"]["X-Error-Code"];
14589
+ [name: string]: unknown;
14590
+ };
14591
+ content: {
14592
+ "application/json": components["schemas"]["InsufficientStorageRefusal"];
14593
+ };
14594
+ };
13371
14595
  };
13372
14596
  };
13373
14597
  getConnector: {
@@ -13426,7 +14650,7 @@ interface operations {
13426
14650
  "application/json": components["schemas"]["UnauthorizedRefusal"];
13427
14651
  };
13428
14652
  };
13429
- /** @description - `connector_not_found`: no connector has this ID, or it is registered under another key and yours isn't the operator key. */
14653
+ /** @description - `connector_not_found`: no connector has this ID, or it is registered under another key and yours lacks connectors.manage. */
13430
14654
  404: {
13431
14655
  headers: {
13432
14656
  "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
@@ -13487,6 +14711,21 @@ interface operations {
13487
14711
  "application/json": components["schemas"]["WriteContentionRefusal"];
13488
14712
  };
13489
14713
  };
14714
+ /** @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. */
14715
+ 507: {
14716
+ headers: {
14717
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
14718
+ "X-Request-ID": components["headers"]["X-Request-ID"];
14719
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
14720
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
14721
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
14722
+ "X-Error-Code": components["headers"]["X-Error-Code"];
14723
+ [name: string]: unknown;
14724
+ };
14725
+ content: {
14726
+ "application/json": components["schemas"]["InsufficientStorageRefusal"];
14727
+ };
14728
+ };
13490
14729
  };
13491
14730
  };
13492
14731
  deleteConnector: {
@@ -13545,7 +14784,7 @@ interface operations {
13545
14784
  "application/json": components["schemas"]["UnauthorizedRefusal"];
13546
14785
  };
13547
14786
  };
13548
- /** @description - `forbidden`: your credential is neither the connector's own key nor the operator key. */
14787
+ /** @description - `forbidden`: your credential is neither the connector's own key nor a holder of connectors.manage. */
13549
14788
  403: {
13550
14789
  headers: {
13551
14790
  "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
@@ -13633,6 +14872,21 @@ interface operations {
13633
14872
  "application/json": components["schemas"]["WriteContentionRefusal"];
13634
14873
  };
13635
14874
  };
14875
+ /** @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. */
14876
+ 507: {
14877
+ headers: {
14878
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
14879
+ "X-Request-ID": components["headers"]["X-Request-ID"];
14880
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
14881
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
14882
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
14883
+ "X-Error-Code": components["headers"]["X-Error-Code"];
14884
+ [name: string]: unknown;
14885
+ };
14886
+ content: {
14887
+ "application/json": components["schemas"]["InsufficientStorageRefusal"];
14888
+ };
14889
+ };
13636
14890
  };
13637
14891
  };
13638
14892
  heartbeatConnector: {
@@ -13694,7 +14948,7 @@ interface operations {
13694
14948
  "application/json": components["schemas"]["UnauthorizedRefusal"];
13695
14949
  };
13696
14950
  };
13697
- /** @description - `forbidden`: your credential isn't the connector's own key. The operator key can't use this endpoint. */
14951
+ /** @description - `forbidden`: your credential isn't the connector's own key. Management permission does not authorize connector activity. */
13698
14952
  403: {
13699
14953
  headers: {
13700
14954
  "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
@@ -13782,6 +15036,21 @@ interface operations {
13782
15036
  "application/json": components["schemas"]["WriteContentionRefusal"];
13783
15037
  };
13784
15038
  };
15039
+ /** @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. */
15040
+ 507: {
15041
+ headers: {
15042
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
15043
+ "X-Request-ID": components["headers"]["X-Request-ID"];
15044
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
15045
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
15046
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
15047
+ "X-Error-Code": components["headers"]["X-Error-Code"];
15048
+ [name: string]: unknown;
15049
+ };
15050
+ content: {
15051
+ "application/json": components["schemas"]["InsufficientStorageRefusal"];
15052
+ };
15053
+ };
13785
15054
  };
13786
15055
  };
13787
15056
  listConnectorRuns: {
@@ -13845,7 +15114,7 @@ interface operations {
13845
15114
  "application/json": components["schemas"]["UnauthorizedRefusal"];
13846
15115
  };
13847
15116
  };
13848
- /** @description - `connector_not_found`: no connector has this ID, or it is registered under another key and yours isn't the operator key. */
15117
+ /** @description - `connector_not_found`: no connector has this ID, or it is registered under another key and yours lacks connectors.manage. */
13849
15118
  404: {
13850
15119
  headers: {
13851
15120
  "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
@@ -13906,6 +15175,21 @@ interface operations {
13906
15175
  "application/json": components["schemas"]["WriteContentionRefusal"];
13907
15176
  };
13908
15177
  };
15178
+ /** @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. */
15179
+ 507: {
15180
+ headers: {
15181
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
15182
+ "X-Request-ID": components["headers"]["X-Request-ID"];
15183
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
15184
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
15185
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
15186
+ "X-Error-Code": components["headers"]["X-Error-Code"];
15187
+ [name: string]: unknown;
15188
+ };
15189
+ content: {
15190
+ "application/json": components["schemas"]["InsufficientStorageRefusal"];
15191
+ };
15192
+ };
13909
15193
  };
13910
15194
  };
13911
15195
  reportConnectorRun: {
@@ -13954,7 +15238,7 @@ interface operations {
13954
15238
  };
13955
15239
  /**
13956
15240
  * @description - `missing_required_field`: `outcome`, `started_at` or `finished_at` is missing.
13957
- * - `validation_error`: `outcome` isn't `succeeded` or `failed`, a time isn't a timestamp, `finished_at` is before `started_at`, or `summary` or `error` is over 2,000 characters.
15241
+ * - `validation_error`: `outcome` isn't `succeeded` or `failed`, a time isn't a timestamp, `finished_at` is before `started_at`, `summary` or `error` is over 2,000 characters, or the body has a top-level field this endpoint doesn't take.
13958
15242
  */
13959
15243
  400: {
13960
15244
  headers: {
@@ -13985,7 +15269,7 @@ interface operations {
13985
15269
  "application/json": components["schemas"]["UnauthorizedRefusal"];
13986
15270
  };
13987
15271
  };
13988
- /** @description - `forbidden`: your credential isn't the connector's own key. The operator key can't use this endpoint. */
15272
+ /** @description - `forbidden`: your credential isn't the connector's own key. Management permission does not authorize connector activity. */
13989
15273
  403: {
13990
15274
  headers: {
13991
15275
  "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
@@ -14073,6 +15357,21 @@ interface operations {
14073
15357
  "application/json": components["schemas"]["WriteContentionRefusal"];
14074
15358
  };
14075
15359
  };
15360
+ /** @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. */
15361
+ 507: {
15362
+ headers: {
15363
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
15364
+ "X-Request-ID": components["headers"]["X-Request-ID"];
15365
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
15366
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
15367
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
15368
+ "X-Error-Code": components["headers"]["X-Error-Code"];
15369
+ [name: string]: unknown;
15370
+ };
15371
+ content: {
15372
+ "application/json": components["schemas"]["InsufficientStorageRefusal"];
15373
+ };
15374
+ };
14076
15375
  };
14077
15376
  };
14078
15377
  listInboundEndpoints: {
@@ -14131,7 +15430,7 @@ interface operations {
14131
15430
  "application/json": components["schemas"]["UnauthorizedRefusal"];
14132
15431
  };
14133
15432
  };
14134
- /** @description - `forbidden`: your credential is neither the connector's own key nor the operator key. */
15433
+ /** @description - `forbidden`: your credential is neither the connector's own key nor a holder of connectors.manage. */
14135
15434
  403: {
14136
15435
  headers: {
14137
15436
  "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
@@ -14207,6 +15506,21 @@ interface operations {
14207
15506
  "application/json": components["schemas"]["WriteContentionRefusal"];
14208
15507
  };
14209
15508
  };
15509
+ /** @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. */
15510
+ 507: {
15511
+ headers: {
15512
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
15513
+ "X-Request-ID": components["headers"]["X-Request-ID"];
15514
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
15515
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
15516
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
15517
+ "X-Error-Code": components["headers"]["X-Error-Code"];
15518
+ [name: string]: unknown;
15519
+ };
15520
+ content: {
15521
+ "application/json": components["schemas"]["InsufficientStorageRefusal"];
15522
+ };
15523
+ };
14210
15524
  };
14211
15525
  };
14212
15526
  createInboundEndpoint: {
@@ -14244,7 +15558,7 @@ interface operations {
14244
15558
  "application/json": components["schemas"]["InboundEndpoint"];
14245
15559
  };
14246
15560
  };
14247
- /** @description - `validation_error`: `label` isn't 1 to 200 characters, or `duplicate_header` isn't a valid header name. */
15561
+ /** @description - `validation_error`: `label` isn't 1 to 200 characters, `duplicate_header` isn't a valid header name, or the body has a top-level field this endpoint doesn't take. */
14248
15562
  400: {
14249
15563
  headers: {
14250
15564
  "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
@@ -14274,7 +15588,7 @@ interface operations {
14274
15588
  "application/json": components["schemas"]["UnauthorizedRefusal"];
14275
15589
  };
14276
15590
  };
14277
- /** @description - `forbidden`: your credential is neither the connector's own key nor the operator key. */
15591
+ /** @description - `forbidden`: your credential is neither the connector's own key nor a holder of connectors.manage. */
14278
15592
  403: {
14279
15593
  headers: {
14280
15594
  "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
@@ -14304,7 +15618,7 @@ interface operations {
14304
15618
  "application/json": components["schemas"]["ConnectorNotFoundRefusal"];
14305
15619
  };
14306
15620
  };
14307
- /** @description - `conflict`: the connector already has 10 live endpoints. Retire one first. */
15621
+ /** @description - `conflict`: the connector already has 10 live endpoints (retire one first), or its key is revoked or past its `expires_at`, so an address would never answer. */
14308
15622
  409: {
14309
15623
  headers: {
14310
15624
  "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
@@ -14377,6 +15691,21 @@ interface operations {
14377
15691
  "application/json": components["schemas"]["WriteContentionRefusal"];
14378
15692
  };
14379
15693
  };
15694
+ /** @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. */
15695
+ 507: {
15696
+ headers: {
15697
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
15698
+ "X-Request-ID": components["headers"]["X-Request-ID"];
15699
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
15700
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
15701
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
15702
+ "X-Error-Code": components["headers"]["X-Error-Code"];
15703
+ [name: string]: unknown;
15704
+ };
15705
+ content: {
15706
+ "application/json": components["schemas"]["InsufficientStorageRefusal"];
15707
+ };
15708
+ };
14380
15709
  };
14381
15710
  };
14382
15711
  retireInboundEndpoint: {
@@ -14437,7 +15766,7 @@ interface operations {
14437
15766
  "application/json": components["schemas"]["UnauthorizedRefusal"];
14438
15767
  };
14439
15768
  };
14440
- /** @description - `forbidden`: your credential is neither the connector's own key nor the operator key. */
15769
+ /** @description - `forbidden`: your credential is neither the connector's own key nor a holder of connectors.manage. */
14441
15770
  403: {
14442
15771
  headers: {
14443
15772
  "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
@@ -14528,6 +15857,21 @@ interface operations {
14528
15857
  "application/json": components["schemas"]["WriteContentionRefusal"];
14529
15858
  };
14530
15859
  };
15860
+ /** @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. */
15861
+ 507: {
15862
+ headers: {
15863
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
15864
+ "X-Request-ID": components["headers"]["X-Request-ID"];
15865
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
15866
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
15867
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
15868
+ "X-Error-Code": components["headers"]["X-Error-Code"];
15869
+ [name: string]: unknown;
15870
+ };
15871
+ content: {
15872
+ "application/json": components["schemas"]["InsufficientStorageRefusal"];
15873
+ };
15874
+ };
14531
15875
  };
14532
15876
  };
14533
15877
  listInboundDeliveries: {
@@ -14595,7 +15939,7 @@ interface operations {
14595
15939
  "application/json": components["schemas"]["UnauthorizedRefusal"];
14596
15940
  };
14597
15941
  };
14598
- /** @description - `forbidden`: your credential isn't the connector's own key. The operator key can't use this endpoint. */
15942
+ /** @description - `forbidden`: your credential isn't the connector's own key. Management permission does not authorize connector activity. */
14599
15943
  403: {
14600
15944
  headers: {
14601
15945
  "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
@@ -14671,6 +16015,21 @@ interface operations {
14671
16015
  "application/json": components["schemas"]["WriteContentionRefusal"];
14672
16016
  };
14673
16017
  };
16018
+ /** @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. */
16019
+ 507: {
16020
+ headers: {
16021
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
16022
+ "X-Request-ID": components["headers"]["X-Request-ID"];
16023
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
16024
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
16025
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
16026
+ "X-Error-Code": components["headers"]["X-Error-Code"];
16027
+ [name: string]: unknown;
16028
+ };
16029
+ content: {
16030
+ "application/json": components["schemas"]["InsufficientStorageRefusal"];
16031
+ };
16032
+ };
14674
16033
  };
14675
16034
  };
14676
16035
  getInboundDeliveryBody: {
@@ -14731,7 +16090,7 @@ interface operations {
14731
16090
  "application/json": components["schemas"]["UnauthorizedRefusal"];
14732
16091
  };
14733
16092
  };
14734
- /** @description - `forbidden`: your credential isn't the connector's own key. The operator key can't use this endpoint. */
16093
+ /** @description - `forbidden`: your credential isn't the connector's own key. Management permission does not authorize connector activity. */
14735
16094
  403: {
14736
16095
  headers: {
14737
16096
  "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
@@ -14810,6 +16169,21 @@ interface operations {
14810
16169
  "application/json": components["schemas"]["WriteContentionRefusal"];
14811
16170
  };
14812
16171
  };
16172
+ /** @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. */
16173
+ 507: {
16174
+ headers: {
16175
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
16176
+ "X-Request-ID": components["headers"]["X-Request-ID"];
16177
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
16178
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
16179
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
16180
+ "X-Error-Code": components["headers"]["X-Error-Code"];
16181
+ [name: string]: unknown;
16182
+ };
16183
+ content: {
16184
+ "application/json": components["schemas"]["InsufficientStorageRefusal"];
16185
+ };
16186
+ };
14813
16187
  };
14814
16188
  };
14815
16189
  markInboundDeliveriesHandled: {
@@ -14855,7 +16229,7 @@ interface operations {
14855
16229
  };
14856
16230
  /**
14857
16231
  * @description - `missing_required_field`: `ids` or `outcome` is missing.
14858
- * - `validation_error`: `ids` is empty or has more than 200 IDs, or `outcome` isn't `processed`, `duplicate` or `rejected`.
16232
+ * - `validation_error`: `ids` is empty or has more than 200 IDs, `outcome` isn't `processed`, `duplicate` or `rejected`, or the body has a top-level field this endpoint doesn't take.
14859
16233
  */
14860
16234
  400: {
14861
16235
  headers: {
@@ -14886,7 +16260,7 @@ interface operations {
14886
16260
  "application/json": components["schemas"]["UnauthorizedRefusal"];
14887
16261
  };
14888
16262
  };
14889
- /** @description - `forbidden`: your credential isn't the connector's own key. The operator key can't use this endpoint. */
16263
+ /** @description - `forbidden`: your credential isn't the connector's own key. Management permission does not authorize connector activity. */
14890
16264
  403: {
14891
16265
  headers: {
14892
16266
  "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
@@ -14977,6 +16351,21 @@ interface operations {
14977
16351
  "application/json": components["schemas"]["WriteContentionRefusal"];
14978
16352
  };
14979
16353
  };
16354
+ /** @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. */
16355
+ 507: {
16356
+ headers: {
16357
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
16358
+ "X-Request-ID": components["headers"]["X-Request-ID"];
16359
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
16360
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
16361
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
16362
+ "X-Error-Code": components["headers"]["X-Error-Code"];
16363
+ [name: string]: unknown;
16364
+ };
16365
+ content: {
16366
+ "application/json": components["schemas"]["InsufficientStorageRefusal"];
16367
+ };
16368
+ };
14980
16369
  };
14981
16370
  };
14982
16371
  holdConnector: {
@@ -15052,7 +16441,7 @@ interface operations {
15052
16441
  "application/json": components["schemas"]["UnauthorizedRefusal"];
15053
16442
  };
15054
16443
  };
15055
- /** @description - `forbidden`: your credential isn't the connector's own key. The operator key can't use this endpoint. */
16444
+ /** @description - `forbidden`: your credential isn't the connector's own key. Management permission does not authorize connector activity. */
15056
16445
  403: {
15057
16446
  headers: {
15058
16447
  "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
@@ -15155,15 +16544,30 @@ interface operations {
15155
16544
  "application/json": components["schemas"]["WriteContentionRefusal"];
15156
16545
  };
15157
16546
  };
15158
- };
15159
- };
15160
- releaseConnectorHold: {
15161
- parameters: {
15162
- query: {
15163
- /** @description The name the process took the connector's hold under. */
15164
- process: string;
15165
- };
15166
- header?: never;
16547
+ /** @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. */
16548
+ 507: {
16549
+ headers: {
16550
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
16551
+ "X-Request-ID": components["headers"]["X-Request-ID"];
16552
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
16553
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
16554
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
16555
+ "X-Error-Code": components["headers"]["X-Error-Code"];
16556
+ [name: string]: unknown;
16557
+ };
16558
+ content: {
16559
+ "application/json": components["schemas"]["InsufficientStorageRefusal"];
16560
+ };
16561
+ };
16562
+ };
16563
+ };
16564
+ releaseConnectorHold: {
16565
+ parameters: {
16566
+ query: {
16567
+ /** @description The name the process took the connector's hold under. */
16568
+ process: string;
16569
+ };
16570
+ header?: never;
15167
16571
  path: {
15168
16572
  /** @description The ID of the connector. */
15169
16573
  id: string;
@@ -15219,7 +16623,7 @@ interface operations {
15219
16623
  "application/json": components["schemas"]["UnauthorizedRefusal"];
15220
16624
  };
15221
16625
  };
15222
- /** @description - `forbidden`: your credential isn't the connector's own key. The operator key can't use this endpoint. */
16626
+ /** @description - `forbidden`: your credential isn't the connector's own key. Management permission does not authorize connector activity. */
15223
16627
  403: {
15224
16628
  headers: {
15225
16629
  "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
@@ -15307,6 +16711,21 @@ interface operations {
15307
16711
  "application/json": components["schemas"]["WriteContentionRefusal"];
15308
16712
  };
15309
16713
  };
16714
+ /** @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. */
16715
+ 507: {
16716
+ headers: {
16717
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
16718
+ "X-Request-ID": components["headers"]["X-Request-ID"];
16719
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
16720
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
16721
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
16722
+ "X-Error-Code": components["headers"]["X-Error-Code"];
16723
+ [name: string]: unknown;
16724
+ };
16725
+ content: {
16726
+ "application/json": components["schemas"]["InsufficientStorageRefusal"];
16727
+ };
16728
+ };
15310
16729
  };
15311
16730
  };
15312
16731
  getConnectorState: {
@@ -15365,7 +16784,7 @@ interface operations {
15365
16784
  "application/json": components["schemas"]["UnauthorizedRefusal"];
15366
16785
  };
15367
16786
  };
15368
- /** @description - `forbidden`: your credential isn't the connector's own key. The operator key can't use this endpoint. */
16787
+ /** @description - `forbidden`: your credential isn't the connector's own key. Management permission does not authorize connector activity. */
15369
16788
  403: {
15370
16789
  headers: {
15371
16790
  "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
@@ -15441,6 +16860,21 @@ interface operations {
15441
16860
  "application/json": components["schemas"]["WriteContentionRefusal"];
15442
16861
  };
15443
16862
  };
16863
+ /** @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. */
16864
+ 507: {
16865
+ headers: {
16866
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
16867
+ "X-Request-ID": components["headers"]["X-Request-ID"];
16868
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
16869
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
16870
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
16871
+ "X-Error-Code": components["headers"]["X-Error-Code"];
16872
+ [name: string]: unknown;
16873
+ };
16874
+ content: {
16875
+ "application/json": components["schemas"]["InsufficientStorageRefusal"];
16876
+ };
16877
+ };
15444
16878
  };
15445
16879
  };
15446
16880
  replaceConnectorState: {
@@ -15458,6 +16892,7 @@ interface operations {
15458
16892
  "application/json": {
15459
16893
  /** @description The name the process took the connector's hold under. */
15460
16894
  process: string;
16895
+ problems?: components["schemas"]["ConnectorProblems"] & unknown;
15461
16896
  /** @description The new document, a JSON object of at most 512 KiB serialized. It replaces the whole document. */
15462
16897
  state: {
15463
16898
  [key: string]: unknown;
@@ -15478,6 +16913,7 @@ interface operations {
15478
16913
  };
15479
16914
  content: {
15480
16915
  "application/json": {
16916
+ problems: components["schemas"]["ConnectorProblems"] & unknown;
15481
16917
  /** @description The document as written. */
15482
16918
  state: {
15483
16919
  [key: string]: unknown;
@@ -15489,7 +16925,7 @@ interface operations {
15489
16925
  };
15490
16926
  /**
15491
16927
  * @description - `missing_required_field`: `process` or `state` is missing.
15492
- * - `validation_error`: `process` isn't 1 to 100 characters, `state` isn't a JSON object or is over 512 KiB serialized, or the body has a top-level field this endpoint doesn't take.
16928
+ * - `validation_error`: `process` isn't 1 to 100 characters, `state` isn't a JSON object or is over 512 KiB serialized, a problems map is over its entry, message or serialized size limits, or the body has a top-level field this endpoint doesn't take.
15493
16929
  */
15494
16930
  400: {
15495
16931
  headers: {
@@ -15520,7 +16956,7 @@ interface operations {
15520
16956
  "application/json": components["schemas"]["UnauthorizedRefusal"];
15521
16957
  };
15522
16958
  };
15523
- /** @description - `forbidden`: your credential isn't the connector's own key. The operator key can't use this endpoint. */
16959
+ /** @description - `forbidden`: your credential isn't the connector's own key. Management permission does not authorize connector activity. */
15524
16960
  403: {
15525
16961
  headers: {
15526
16962
  "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
@@ -15623,6 +17059,21 @@ interface operations {
15623
17059
  "application/json": components["schemas"]["WriteContentionRefusal"];
15624
17060
  };
15625
17061
  };
17062
+ /** @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. */
17063
+ 507: {
17064
+ headers: {
17065
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
17066
+ "X-Request-ID": components["headers"]["X-Request-ID"];
17067
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
17068
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
17069
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
17070
+ "X-Error-Code": components["headers"]["X-Error-Code"];
17071
+ [name: string]: unknown;
17072
+ };
17073
+ content: {
17074
+ "application/json": components["schemas"]["InsufficientStorageRefusal"];
17075
+ };
17076
+ };
15626
17077
  };
15627
17078
  };
15628
17079
  deleteConnectorState: {
@@ -15681,7 +17132,7 @@ interface operations {
15681
17132
  "application/json": components["schemas"]["UnauthorizedRefusal"];
15682
17133
  };
15683
17134
  };
15684
- /** @description - `forbidden`: your credential is neither the connector's own key nor the operator key. */
17135
+ /** @description - `forbidden`: your credential is neither the connector's own key nor a holder of connectors.manage. */
15685
17136
  403: {
15686
17137
  headers: {
15687
17138
  "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
@@ -15769,6 +17220,21 @@ interface operations {
15769
17220
  "application/json": components["schemas"]["WriteContentionRefusal"];
15770
17221
  };
15771
17222
  };
17223
+ /** @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. */
17224
+ 507: {
17225
+ headers: {
17226
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
17227
+ "X-Request-ID": components["headers"]["X-Request-ID"];
17228
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
17229
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
17230
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
17231
+ "X-Error-Code": components["headers"]["X-Error-Code"];
17232
+ [name: string]: unknown;
17233
+ };
17234
+ content: {
17235
+ "application/json": components["schemas"]["InsufficientStorageRefusal"];
17236
+ };
17237
+ };
15772
17238
  };
15773
17239
  };
15774
17240
  listConnectorAgreements: {
@@ -15834,7 +17300,7 @@ interface operations {
15834
17300
  "application/json": components["schemas"]["UnauthorizedRefusal"];
15835
17301
  };
15836
17302
  };
15837
- /** @description - `forbidden`: your credential isn't the connector's own key. The operator key can't use this endpoint. */
17303
+ /** @description - `forbidden`: your credential isn't the connector's own key. Management permission does not authorize connector activity. */
15838
17304
  403: {
15839
17305
  headers: {
15840
17306
  "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
@@ -15910,6 +17376,21 @@ interface operations {
15910
17376
  "application/json": components["schemas"]["WriteContentionRefusal"];
15911
17377
  };
15912
17378
  };
17379
+ /** @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. */
17380
+ 507: {
17381
+ headers: {
17382
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
17383
+ "X-Request-ID": components["headers"]["X-Request-ID"];
17384
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
17385
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
17386
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
17387
+ "X-Error-Code": components["headers"]["X-Error-Code"];
17388
+ [name: string]: unknown;
17389
+ };
17390
+ content: {
17391
+ "application/json": components["schemas"]["InsufficientStorageRefusal"];
17392
+ };
17393
+ };
15913
17394
  };
15914
17395
  };
15915
17396
  writeConnectorAgreements: {
@@ -15998,7 +17479,7 @@ interface operations {
15998
17479
  "application/json": components["schemas"]["UnauthorizedRefusal"];
15999
17480
  };
16000
17481
  };
16001
- /** @description - `forbidden`: your credential isn't the connector's own key. The operator key can't use this endpoint. */
17482
+ /** @description - `forbidden`: your credential isn't the connector's own key. Management permission does not authorize connector activity. */
16002
17483
  403: {
16003
17484
  headers: {
16004
17485
  "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
@@ -16101,6 +17582,21 @@ interface operations {
16101
17582
  "application/json": components["schemas"]["WriteContentionRefusal"];
16102
17583
  };
16103
17584
  };
17585
+ /** @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. */
17586
+ 507: {
17587
+ headers: {
17588
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
17589
+ "X-Request-ID": components["headers"]["X-Request-ID"];
17590
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
17591
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
17592
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
17593
+ "X-Error-Code": components["headers"]["X-Error-Code"];
17594
+ [name: string]: unknown;
17595
+ };
17596
+ content: {
17597
+ "application/json": components["schemas"]["InsufficientStorageRefusal"];
17598
+ };
17599
+ };
16104
17600
  };
16105
17601
  };
16106
17602
  lookupConnectorAgreements: {
@@ -16172,7 +17668,7 @@ interface operations {
16172
17668
  "application/json": components["schemas"]["UnauthorizedRefusal"];
16173
17669
  };
16174
17670
  };
16175
- /** @description - `forbidden`: your credential isn't the connector's own key. The operator key can't use this endpoint. */
17671
+ /** @description - `forbidden`: your credential isn't the connector's own key. Management permission does not authorize connector activity. */
16176
17672
  403: {
16177
17673
  headers: {
16178
17674
  "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
@@ -16260,6 +17756,21 @@ interface operations {
16260
17756
  "application/json": components["schemas"]["WriteContentionRefusal"];
16261
17757
  };
16262
17758
  };
17759
+ /** @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. */
17760
+ 507: {
17761
+ headers: {
17762
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
17763
+ "X-Request-ID": components["headers"]["X-Request-ID"];
17764
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
17765
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
17766
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
17767
+ "X-Error-Code": components["headers"]["X-Error-Code"];
17768
+ [name: string]: unknown;
17769
+ };
17770
+ content: {
17771
+ "application/json": components["schemas"]["InsufficientStorageRefusal"];
17772
+ };
17773
+ };
16263
17774
  };
16264
17775
  };
16265
17776
  createFolder: {
@@ -16453,6 +17964,22 @@ interface operations {
16453
17964
  "application/json": components["schemas"]["WriteContentionRefusal"];
16454
17965
  };
16455
17966
  };
17967
+ /** @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. */
17968
+ 507: {
17969
+ headers: {
17970
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
17971
+ "X-Request-ID": components["headers"]["X-Request-ID"];
17972
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
17973
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
17974
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
17975
+ "X-Error-Code": components["headers"]["X-Error-Code"];
17976
+ "Idempotency-Replayed": components["headers"]["Idempotency-Replayed"];
17977
+ [name: string]: unknown;
17978
+ };
17979
+ content: {
17980
+ "application/json": components["schemas"]["InsufficientStorageRefusal"];
17981
+ };
17982
+ };
16456
17983
  };
16457
17984
  };
16458
17985
  updateFolder: {
@@ -16672,6 +18199,22 @@ interface operations {
16672
18199
  "application/json": components["schemas"]["WriteContentionRefusal"];
16673
18200
  };
16674
18201
  };
18202
+ /** @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. */
18203
+ 507: {
18204
+ headers: {
18205
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
18206
+ "X-Request-ID": components["headers"]["X-Request-ID"];
18207
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
18208
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
18209
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
18210
+ "X-Error-Code": components["headers"]["X-Error-Code"];
18211
+ "Idempotency-Replayed": components["headers"]["Idempotency-Replayed"];
18212
+ [name: string]: unknown;
18213
+ };
18214
+ content: {
18215
+ "application/json": components["schemas"]["InsufficientStorageRefusal"];
18216
+ };
18217
+ };
16675
18218
  };
16676
18219
  };
16677
18220
  revokeFolder: {
@@ -16866,6 +18409,22 @@ interface operations {
16866
18409
  "application/json": components["schemas"]["WriteContentionRefusal"];
16867
18410
  };
16868
18411
  };
18412
+ /** @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. */
18413
+ 507: {
18414
+ headers: {
18415
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
18416
+ "X-Request-ID": components["headers"]["X-Request-ID"];
18417
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
18418
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
18419
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
18420
+ "X-Error-Code": components["headers"]["X-Error-Code"];
18421
+ "Idempotency-Replayed": components["headers"]["Idempotency-Replayed"];
18422
+ [name: string]: unknown;
18423
+ };
18424
+ content: {
18425
+ "application/json": components["schemas"]["InsufficientStorageRefusal"];
18426
+ };
18427
+ };
16869
18428
  };
16870
18429
  };
16871
18430
  listKeys: {
@@ -16921,7 +18480,7 @@ interface operations {
16921
18480
  "application/json": components["schemas"]["UnauthorizedRefusal"];
16922
18481
  };
16923
18482
  };
16924
- /** @description - `forbidden`: you don't hold `keys.mint` and aren't the operator key. `details.required_scope` names it. */
18483
+ /** @description - `forbidden`: this operation requires its explicit permission or direct owner or local authority. `details.required_scope` names it. */
16925
18484
  403: {
16926
18485
  headers: {
16927
18486
  "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
@@ -16982,6 +18541,21 @@ interface operations {
16982
18541
  "application/json": components["schemas"]["WriteContentionRefusal"];
16983
18542
  };
16984
18543
  };
18544
+ /** @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. */
18545
+ 507: {
18546
+ headers: {
18547
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
18548
+ "X-Request-ID": components["headers"]["X-Request-ID"];
18549
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
18550
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
18551
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
18552
+ "X-Error-Code": components["headers"]["X-Error-Code"];
18553
+ [name: string]: unknown;
18554
+ };
18555
+ content: {
18556
+ "application/json": components["schemas"]["InsufficientStorageRefusal"];
18557
+ };
18558
+ };
16985
18559
  };
16986
18560
  };
16987
18561
  createKey: {
@@ -16996,20 +18570,18 @@ interface operations {
16996
18570
  "application/json": {
16997
18571
  /** @description A name for the key, to tell it apart from your other keys. */
16998
18572
  label: string;
16999
- /** @description The key's own source, stamped on the rows it writes unless a write names a source it claims. No other unrevoked key may have it as its own, and it can't change later. */
18573
+ /** @description The key's own source, stamped on the rows it writes unless a write names a source it claims. No other key that hasn't been revoked or expired may have it as its own, and it can't change later. */
17000
18574
  source: string;
17001
- /** @description Sources the key may also write under, besides its own `source`. Several keys may claim one source, so their writes share natural keys. You can grant only your own `source` and the sources you claim; the operator key can grant any. */
18575
+ /** @description Sources the key may also write under, besides its own `source`. Several keys may claim one source, so their writes share natural keys. You can grant only your own `source` and the sources you claim; the owner or local command can grant any. */
17002
18576
  sources?: string[];
17003
18577
  /** @description The permissions to give the key, such as `audit.read`. */
17004
18578
  permissions?: components["schemas"]["Permission"][];
17005
18579
  default_tier?: components["schemas"]["Tier"] & unknown;
17006
- /** @description `true` to create another operator key, which holds no permissions, maps or claimed sources. Only the operator key can create one. */
17007
- is_operator?: boolean;
17008
18580
  /** @description Item types the key may `read` or `write`, by type ID or a wildcard such as `core.*` or `*`. `none` denies a type a wildcard covers. */
17009
18581
  type_permissions?: {
17010
18582
  [key: string]: components["schemas"]["TypePermissionLevel"];
17011
18583
  };
17012
- /** @description Extension namespaces the key may `read` or `write`, by namespace or `*`. A key can always read and write the namespace named by its own `label`. */
18584
+ /** @description Extension namespaces the key may `read` or `write`, by namespace or `*`. */
17013
18585
  extension_permissions?: {
17014
18586
  [key: string]: components["schemas"]["PermissionLevel"];
17015
18587
  };
@@ -17026,11 +18598,13 @@ interface operations {
17026
18598
  [key: string]: components["schemas"]["PermissionLevel"];
17027
18599
  };
17028
18600
  enforcement_override?: components["schemas"]["EnforcementOverride"] & unknown;
18601
+ /** @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`. */
18602
+ expires_at?: string;
17029
18603
  };
17030
18604
  };
17031
18605
  };
17032
18606
  responses: {
17033
- /** @description Returns the new key with its plaintext `key`. When the operator key creates an ordinary key from a body naming no permission, map or `sources`, the key holds every permission and `*: write` on every map, and claims no source. On a new instance, the first request sends the one-time secret from the server's startup log as its bearer token, and returns the operator key, which reads no items. */
18607
+ /** @description Returns the new key with its plaintext `key`. When the owner or local command creates an ordinary key from a body naming no permission, map or `sources`, the key holds every permission and `*: write` on every map, and claims no source. */
17034
18608
  201: {
17035
18609
  headers: {
17036
18610
  "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
@@ -17046,7 +18620,7 @@ interface operations {
17046
18620
  };
17047
18621
  /**
17048
18622
  * @description - `missing_required_field`: `label` or `source` is missing, or a lever in `enforcement_override` lacks `types` or `sources`.
17049
- * - `validation_error`: a field is invalid, such as a permission level that doesn't exist or more than 1,000 `sources`, or `source` or a claimed source starts with `oauth:`.
18623
+ * - `validation_error`: a field is invalid, such as a permission level that doesn't exist, more than 1,000 `sources`, or an `expires_at` that isn't a time or isn't in the future, or `source` or a claimed source starts with `oauth:`.
17050
18624
  */
17051
18625
  400: {
17052
18626
  headers: {
@@ -17077,7 +18651,7 @@ interface operations {
17077
18651
  "application/json": components["schemas"]["UnauthorizedRefusal"];
17078
18652
  };
17079
18653
  };
17080
- /** @description - `forbidden`: you don't hold `keys.mint` and aren't the operator key; the body names a permission, map entry or source you don't hold, or a `source` another key claims that you can't grant; it gives an operator key any reach; or it asks for an operator key and you aren't one. `details.required_scope` or `details.source` names what you lack. */
18654
+ /** @description - `forbidden`: you don't hold `keys.mint` and aren't the owner or local command; the body names a permission, map entry or source you don't hold, or a `source` another key claims that you can't grant; it names an `expires_at` later than your own key's; or it names `enforcement_override` and you don't hold `config.manage`. `details.required_scope` or `details.source` names what you lack. */
17081
18655
  403: {
17082
18656
  headers: {
17083
18657
  "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
@@ -17092,7 +18666,7 @@ interface operations {
17092
18666
  "application/json": components["schemas"]["ForbiddenRefusal"];
17093
18667
  };
17094
18668
  };
17095
- /** @description - `conflict`: another unrevoked key already has this `source` as its own. `details.source` names it. To let two keys write under one source, claim it in `sources` instead. */
18669
+ /** @description - `conflict`: another key that hasn't been revoked or expired already has this `source` as its own. `details.source` names it. To let two keys write under one source, claim it in `sources` instead. */
17096
18670
  409: {
17097
18671
  headers: {
17098
18672
  "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
@@ -17165,6 +18739,21 @@ interface operations {
17165
18739
  "application/json": components["schemas"]["WriteContentionRefusal"];
17166
18740
  };
17167
18741
  };
18742
+ /** @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. */
18743
+ 507: {
18744
+ headers: {
18745
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
18746
+ "X-Request-ID": components["headers"]["X-Request-ID"];
18747
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
18748
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
18749
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
18750
+ "X-Error-Code": components["headers"]["X-Error-Code"];
18751
+ [name: string]: unknown;
18752
+ };
18753
+ content: {
18754
+ "application/json": components["schemas"]["InsufficientStorageRefusal"];
18755
+ };
18756
+ };
17168
18757
  };
17169
18758
  };
17170
18759
  getCurrentKey: {
@@ -17301,6 +18890,21 @@ interface operations {
17301
18890
  "application/json": components["schemas"]["WriteContentionRefusal"];
17302
18891
  };
17303
18892
  };
18893
+ /** @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. */
18894
+ 507: {
18895
+ headers: {
18896
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
18897
+ "X-Request-ID": components["headers"]["X-Request-ID"];
18898
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
18899
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
18900
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
18901
+ "X-Error-Code": components["headers"]["X-Error-Code"];
18902
+ [name: string]: unknown;
18903
+ };
18904
+ content: {
18905
+ "application/json": components["schemas"]["InsufficientStorageRefusal"];
18906
+ };
18907
+ };
17304
18908
  };
17305
18909
  };
17306
18910
  revokeKey: {
@@ -17359,7 +18963,7 @@ interface operations {
17359
18963
  "application/json": components["schemas"]["UnauthorizedRefusal"];
17360
18964
  };
17361
18965
  };
17362
- /** @description - `forbidden`: you don't hold `keys.mint` and aren't the operator key. `details.required_scope` names it. */
18966
+ /** @description - `forbidden`: this operation requires its explicit permission or direct owner or local authority. `details.required_scope` names it. */
17363
18967
  403: {
17364
18968
  headers: {
17365
18969
  "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
@@ -17374,7 +18978,7 @@ interface operations {
17374
18978
  "application/json": components["schemas"]["ForbiddenRefusal"];
17375
18979
  };
17376
18980
  };
17377
- /** @description - `api_key_not_found`: no key you could have created has this ID, or the key is revoked or past its `expires_at`. The operator key's message says when the key was already revoked. */
18981
+ /** @description - `api_key_not_found`: no key you could have created has this ID, or the key is revoked or past its `expires_at`. The owner or local command's message says when the key was already revoked. */
17378
18982
  404: {
17379
18983
  headers: {
17380
18984
  "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
@@ -17447,6 +19051,21 @@ interface operations {
17447
19051
  "application/json": components["schemas"]["WriteContentionRefusal"];
17448
19052
  };
17449
19053
  };
19054
+ /** @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. */
19055
+ 507: {
19056
+ headers: {
19057
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
19058
+ "X-Request-ID": components["headers"]["X-Request-ID"];
19059
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
19060
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
19061
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
19062
+ "X-Error-Code": components["headers"]["X-Error-Code"];
19063
+ [name: string]: unknown;
19064
+ };
19065
+ content: {
19066
+ "application/json": components["schemas"]["InsufficientStorageRefusal"];
19067
+ };
19068
+ };
17450
19069
  };
17451
19070
  };
17452
19071
  updateKey: {
@@ -17465,13 +19084,13 @@ interface operations {
17465
19084
  /** @description A name for the key, to tell it apart from your other keys. */
17466
19085
  label?: string;
17467
19086
  default_tier?: components["schemas"]["Tier"] & unknown;
17468
- /** @description Sources the key may also write under, besides its own `source`. Several keys may claim one source, so their writes share natural keys. You can grant only your own `source` and the sources you claim; the operator key can grant any. */
19087
+ /** @description Sources the key may also write under, besides its own `source`. Several keys may claim one source, so their writes share natural keys. You can grant only your own `source` and the sources you claim; the owner or local command can grant any. */
17469
19088
  sources?: string[];
17470
19089
  /** @description Item types the key may `read` or `write`, by type ID or a wildcard such as `core.*` or `*`. `none` denies a type a wildcard covers. */
17471
19090
  type_permissions?: {
17472
19091
  [key: string]: components["schemas"]["TypePermissionLevel"];
17473
19092
  };
17474
- /** @description Extension namespaces the key may `read` or `write`, by namespace or `*`. A key can always read and write the namespace named by its own `label`. */
19093
+ /** @description Extension namespaces the key may `read` or `write`, by namespace or `*`. */
17475
19094
  extension_permissions?: {
17476
19095
  [key: string]: components["schemas"]["PermissionLevel"];
17477
19096
  };
@@ -17491,6 +19110,8 @@ interface operations {
17491
19110
  permissions?: components["schemas"]["Permission"][];
17492
19111
  /** @description Replaces the key's enforcement levers whole. `null` clears them. */
17493
19112
  enforcement_override?: components["schemas"]["EnforcementOverride"] | null;
19113
+ /** @description Replaces when the key stops working, as an ISO 8601 date and time in the future. `null` clears it. Leave it out to keep it. It can't be later than your own key's `expires_at`, or the key's current one for a key an app made or through `keys.manage`. */
19114
+ expires_at?: string | null;
17494
19115
  /** @description Can't change. To give a key another source, create a new key and revoke this one. */
17495
19116
  source?: string;
17496
19117
  };
@@ -17513,7 +19134,7 @@ interface operations {
17513
19134
  };
17514
19135
  /**
17515
19136
  * @description - `missing_required_field`: a lever in `enforcement_override` lacks `types` or `sources`.
17516
- * - `validation_error`: `id` isn't a valid key ID, the body carries `source`, or a field is invalid, such as a claimed source that starts with `oauth:`.
19137
+ * - `validation_error`: `id` isn't a valid key ID, the body carries `source`, or a field is invalid, such as an `expires_at` that isn't a time or isn't in the future, or a claimed source that starts with `oauth:`.
17517
19138
  */
17518
19139
  400: {
17519
19140
  headers: {
@@ -17544,7 +19165,7 @@ interface operations {
17544
19165
  "application/json": components["schemas"]["UnauthorizedRefusal"];
17545
19166
  };
17546
19167
  };
17547
- /** @description - `forbidden`: you don't hold `keys.mint` and aren't the operator key; the body gives the key a permission, map entry or source you don't hold; it gives an operator key any reach; or it widens a key an app created, which only narrows. `details.required_scope` or `details.source` names what's missing. */
19168
+ /** @description - `forbidden`: you don't hold `keys.mint` and aren't the owner or local command; the body gives the key a permission, map entry or source you don't hold, or an `expires_at` later than yours; it widens a key an app created or, through `keys.manage`, any key; or it names `enforcement_override` and you don't hold `config.manage`. `details.required_scope` or `details.source` names what's missing. */
17548
19169
  403: {
17549
19170
  headers: {
17550
19171
  "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
@@ -17632,6 +19253,21 @@ interface operations {
17632
19253
  "application/json": components["schemas"]["WriteContentionRefusal"];
17633
19254
  };
17634
19255
  };
19256
+ /** @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. */
19257
+ 507: {
19258
+ headers: {
19259
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
19260
+ "X-Request-ID": components["headers"]["X-Request-ID"];
19261
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
19262
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
19263
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
19264
+ "X-Error-Code": components["headers"]["X-Error-Code"];
19265
+ [name: string]: unknown;
19266
+ };
19267
+ content: {
19268
+ "application/json": components["schemas"]["InsufficientStorageRefusal"];
19269
+ };
19270
+ };
17635
19271
  };
17636
19272
  };
17637
19273
  getConfig: {
@@ -17687,7 +19323,7 @@ interface operations {
17687
19323
  "application/json": components["schemas"]["UnauthorizedRefusal"];
17688
19324
  };
17689
19325
  };
17690
- /** @description - `forbidden`: you don't hold `config.manage`. The operator key doesn't hold it either. `details.required_scope` names it. */
19326
+ /** @description - `forbidden`: you don't hold `config.manage`. `details.required_scope` names it. */
17691
19327
  403: {
17692
19328
  headers: {
17693
19329
  "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
@@ -17748,6 +19384,21 @@ interface operations {
17748
19384
  "application/json": components["schemas"]["WriteContentionRefusal"];
17749
19385
  };
17750
19386
  };
19387
+ /** @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. */
19388
+ 507: {
19389
+ headers: {
19390
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
19391
+ "X-Request-ID": components["headers"]["X-Request-ID"];
19392
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
19393
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
19394
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
19395
+ "X-Error-Code": components["headers"]["X-Error-Code"];
19396
+ [name: string]: unknown;
19397
+ };
19398
+ content: {
19399
+ "application/json": components["schemas"]["InsufficientStorageRefusal"];
19400
+ };
19401
+ };
17751
19402
  };
17752
19403
  };
17753
19404
  replaceConfig: {
@@ -17829,7 +19480,7 @@ interface operations {
17829
19480
  "application/json": components["schemas"]["UnauthorizedRefusal"];
17830
19481
  };
17831
19482
  };
17832
- /** @description - `forbidden`: you don't hold `config.manage`. The operator key doesn't hold it either. `details.required_scope` names it. */
19483
+ /** @description - `forbidden`: you don't hold `config.manage`. `details.required_scope` names it. */
17833
19484
  403: {
17834
19485
  headers: {
17835
19486
  "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
@@ -17902,6 +19553,21 @@ interface operations {
17902
19553
  "application/json": components["schemas"]["WriteContentionRefusal"];
17903
19554
  };
17904
19555
  };
19556
+ /** @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. */
19557
+ 507: {
19558
+ headers: {
19559
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
19560
+ "X-Request-ID": components["headers"]["X-Request-ID"];
19561
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
19562
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
19563
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
19564
+ "X-Error-Code": components["headers"]["X-Error-Code"];
19565
+ [name: string]: unknown;
19566
+ };
19567
+ content: {
19568
+ "application/json": components["schemas"]["InsufficientStorageRefusal"];
19569
+ };
19570
+ };
17905
19571
  };
17906
19572
  };
17907
19573
  restoreArchive: {
@@ -17956,8 +19622,9 @@ interface operations {
17956
19622
  };
17957
19623
  };
17958
19624
  /**
17959
- * @description - `validation_error`: the body isn't a valid archive, or the archive is at another format version, carries an entry twice, has an invalid row, or has a `manifest.json`, `types.ndjson` or line of `items.ndjson` or `edges.ndjson` larger than 64 MiB.
19625
+ * @description - `validation_error`: the body isn't a valid archive, or is at another format version, repeats an entry, has an invalid row, or has a file over 64 MiB.
17960
19626
  * - `invalid_properties`: an item sets a property its type doesn't declare, and `strict_mode` names that type.
19627
+ * - `invalid_schema`: an archived type is invalid or carries a key the schema doesn't define.
17961
19628
  */
17962
19629
  400: {
17963
19630
  headers: {
@@ -17970,7 +19637,7 @@ interface operations {
17970
19637
  [name: string]: unknown;
17971
19638
  };
17972
19639
  content: {
17973
- "application/json": components["schemas"]["InvalidPropertiesOrValidationErrorRefusal"];
19640
+ "application/json": components["schemas"]["InvalidPropertiesOrInvalidSchemaOrValidationErrorRefusal"];
17974
19641
  };
17975
19642
  };
17976
19643
  /** @description `unauthorized`: the request has no credential, or its credential is not valid. */
@@ -17988,7 +19655,7 @@ interface operations {
17988
19655
  "application/json": components["schemas"]["UnauthorizedRefusal"];
17989
19656
  };
17990
19657
  };
17991
- /** @description - `forbidden`: your key isn't an operator key. */
19658
+ /** @description Requires direct owner or local authority and recent owner authentication. */
17992
19659
  403: {
17993
19660
  headers: {
17994
19661
  "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
@@ -18079,6 +19746,21 @@ interface operations {
18079
19746
  "application/json": components["schemas"]["WriteContentionRefusal"];
18080
19747
  };
18081
19748
  };
19749
+ /** @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. */
19750
+ 507: {
19751
+ headers: {
19752
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
19753
+ "X-Request-ID": components["headers"]["X-Request-ID"];
19754
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
19755
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
19756
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
19757
+ "X-Error-Code": components["headers"]["X-Error-Code"];
19758
+ [name: string]: unknown;
19759
+ };
19760
+ content: {
19761
+ "application/json": components["schemas"]["InsufficientStorageRefusal"];
19762
+ };
19763
+ };
18082
19764
  };
18083
19765
  };
18084
19766
  listPlatformTypeDrift: {
@@ -18134,7 +19816,7 @@ interface operations {
18134
19816
  "application/json": components["schemas"]["UnauthorizedRefusal"];
18135
19817
  };
18136
19818
  };
18137
- /** @description `forbidden`: you aren't using the operator key. */
19819
+ /** @description `forbidden`: you lack the required management permission. */
18138
19820
  403: {
18139
19821
  headers: {
18140
19822
  "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
@@ -18195,6 +19877,21 @@ interface operations {
18195
19877
  "application/json": components["schemas"]["WriteContentionRefusal"];
18196
19878
  };
18197
19879
  };
19880
+ /** @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. */
19881
+ 507: {
19882
+ headers: {
19883
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
19884
+ "X-Request-ID": components["headers"]["X-Request-ID"];
19885
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
19886
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
19887
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
19888
+ "X-Error-Code": components["headers"]["X-Error-Code"];
19889
+ [name: string]: unknown;
19890
+ };
19891
+ content: {
19892
+ "application/json": components["schemas"]["InsufficientStorageRefusal"];
19893
+ };
19894
+ };
18198
19895
  };
18199
19896
  };
18200
19897
  deletePlatformType: {
@@ -18257,7 +19954,7 @@ interface operations {
18257
19954
  "application/json": components["schemas"]["UnauthorizedRefusal"];
18258
19955
  };
18259
19956
  };
18260
- /** @description `forbidden`: you aren't using the operator key. */
19957
+ /** @description `forbidden`: you lack the required management permission. */
18261
19958
  403: {
18262
19959
  headers: {
18263
19960
  "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
@@ -18363,10 +20060,25 @@ interface operations {
18363
20060
  "application/json": components["schemas"]["WriteContentionRefusal"];
18364
20061
  };
18365
20062
  };
18366
- };
18367
- };
18368
- getOwner: {
18369
- parameters: {
20063
+ /** @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. */
20064
+ 507: {
20065
+ headers: {
20066
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
20067
+ "X-Request-ID": components["headers"]["X-Request-ID"];
20068
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
20069
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
20070
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
20071
+ "X-Error-Code": components["headers"]["X-Error-Code"];
20072
+ [name: string]: unknown;
20073
+ };
20074
+ content: {
20075
+ "application/json": components["schemas"]["InsufficientStorageRefusal"];
20076
+ };
20077
+ };
20078
+ };
20079
+ };
20080
+ getOwner: {
20081
+ parameters: {
18370
20082
  query?: never;
18371
20083
  header?: never;
18372
20084
  path?: never;
@@ -18374,7 +20086,7 @@ interface operations {
18374
20086
  };
18375
20087
  requestBody?: never;
18376
20088
  responses: {
18377
- /** @description Returns the owner. */
20089
+ /** @description The owner. */
18378
20090
  200: {
18379
20091
  headers: {
18380
20092
  "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
@@ -18418,7 +20130,7 @@ interface operations {
18418
20130
  "application/json": components["schemas"]["UnauthorizedRefusal"];
18419
20131
  };
18420
20132
  };
18421
- /** @description - `forbidden`: your key isn't an operator key. */
20133
+ /** @description This operation requires direct owner or local authority. */
18422
20134
  403: {
18423
20135
  headers: {
18424
20136
  "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
@@ -18433,7 +20145,7 @@ interface operations {
18433
20145
  "application/json": components["schemas"]["ForbiddenRefusal"];
18434
20146
  };
18435
20147
  };
18436
- /** @description - `owner_not_found`: the instance has no owner yet. */
20148
+ /** @description The owner is unavailable. */
18437
20149
  404: {
18438
20150
  headers: {
18439
20151
  "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
@@ -18494,6 +20206,21 @@ interface operations {
18494
20206
  "application/json": components["schemas"]["WriteContentionRefusal"];
18495
20207
  };
18496
20208
  };
20209
+ /** @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. */
20210
+ 507: {
20211
+ headers: {
20212
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
20213
+ "X-Request-ID": components["headers"]["X-Request-ID"];
20214
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
20215
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
20216
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
20217
+ "X-Error-Code": components["headers"]["X-Error-Code"];
20218
+ [name: string]: unknown;
20219
+ };
20220
+ content: {
20221
+ "application/json": components["schemas"]["InsufficientStorageRefusal"];
20222
+ };
20223
+ };
18497
20224
  };
18498
20225
  };
18499
20226
  createOwner: {
@@ -18508,19 +20235,128 @@ interface operations {
18508
20235
  "application/json": {
18509
20236
  /**
18510
20237
  * Format: email
18511
- * @description The owner's email address, which they sign in with. Marfa stores it in lowercase.
20238
+ * @description Email address the owner uses to sign in.
18512
20239
  */
18513
20240
  email: string;
18514
- /** @description The password the owner signs in with. */
20241
+ /** @description Password for the new owner. */
18515
20242
  password: string;
18516
- /** @description The owner's name. Leave it out or blank to use the part of `email` before the `@`. */
20243
+ /** @description Display name. Defaults to the part before @ in the email address when omitted or blank. */
18517
20244
  name?: string;
20245
+ /** @description Machine-issued setup code. Omit when using a setup-only browser session. */
20246
+ code?: string;
18518
20247
  };
18519
20248
  };
18520
20249
  };
18521
20250
  responses: {
18522
- /** @description Returns the new owner. */
20251
+ /** @description The new owner can sign in. */
18523
20252
  201: {
20253
+ headers: {
20254
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
20255
+ "X-Request-ID": components["headers"]["X-Request-ID"];
20256
+ [name: string]: unknown;
20257
+ };
20258
+ content: {
20259
+ "application/json": components["schemas"]["Owner"];
20260
+ };
20261
+ };
20262
+ /** @description Owner details are invalid. */
20263
+ 400: {
20264
+ headers: {
20265
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
20266
+ "X-Request-ID": components["headers"]["X-Request-ID"];
20267
+ "X-Error-Code": components["headers"]["X-Error-Code"];
20268
+ [name: string]: unknown;
20269
+ };
20270
+ content: {
20271
+ "application/json": components["schemas"]["MissingRequiredFieldOrValidationErrorRefusal"];
20272
+ };
20273
+ };
20274
+ /** @description Setup proof is invalid, expired, or replaced. */
20275
+ 401: {
20276
+ headers: {
20277
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
20278
+ "X-Request-ID": components["headers"]["X-Request-ID"];
20279
+ "X-Error-Code": components["headers"]["X-Error-Code"];
20280
+ [name: string]: unknown;
20281
+ };
20282
+ content: {
20283
+ "application/json": components["schemas"]["UnauthorizedRefusal"];
20284
+ };
20285
+ };
20286
+ /** @description The browser origin or transport is not permitted. */
20287
+ 403: {
20288
+ headers: {
20289
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
20290
+ "X-Request-ID": components["headers"]["X-Request-ID"];
20291
+ "X-Error-Code": components["headers"]["X-Error-Code"];
20292
+ [name: string]: unknown;
20293
+ };
20294
+ content: {
20295
+ "application/json": components["schemas"]["ForbiddenRefusal"];
20296
+ };
20297
+ };
20298
+ /** @description The instance has already been claimed. */
20299
+ 409: {
20300
+ headers: {
20301
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
20302
+ "X-Request-ID": components["headers"]["X-Request-ID"];
20303
+ "X-Error-Code": components["headers"]["X-Error-Code"];
20304
+ [name: string]: unknown;
20305
+ };
20306
+ content: {
20307
+ "application/json": components["schemas"]["OwnerExistsRefusal"];
20308
+ };
20309
+ };
20310
+ /** @description `request_too_large`: the request body is larger than this instance accepts. */
20311
+ 413: {
20312
+ headers: {
20313
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
20314
+ "X-Request-ID": components["headers"]["X-Request-ID"];
20315
+ "X-Error-Code": components["headers"]["X-Error-Code"];
20316
+ [name: string]: unknown;
20317
+ };
20318
+ content: {
20319
+ "application/json": components["schemas"]["RequestTooLargeRefusal"];
20320
+ };
20321
+ };
20322
+ /** @description The address has used its setup-code attempts. */
20323
+ 429: {
20324
+ headers: {
20325
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
20326
+ "X-Request-ID": components["headers"]["X-Request-ID"];
20327
+ "X-Error-Code": components["headers"]["X-Error-Code"];
20328
+ "Retry-After": components["headers"]["Retry-After"];
20329
+ [name: string]: unknown;
20330
+ };
20331
+ content: {
20332
+ "application/json": components["schemas"]["RateLimitedRefusal"];
20333
+ };
20334
+ };
20335
+ /** @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. */
20336
+ 500: {
20337
+ headers: {
20338
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
20339
+ "X-Request-ID": components["headers"]["X-Request-ID"];
20340
+ "X-Error-Code": components["headers"]["X-Error-Code"];
20341
+ [name: string]: unknown;
20342
+ };
20343
+ content: {
20344
+ "application/json": components["schemas"]["InternalErrorRefusal"];
20345
+ };
20346
+ };
20347
+ };
20348
+ };
20349
+ listSignIns: {
20350
+ parameters: {
20351
+ query?: never;
20352
+ header?: never;
20353
+ path?: never;
20354
+ cookie?: never;
20355
+ };
20356
+ requestBody?: never;
20357
+ responses: {
20358
+ /** @description Returns every live sign-in. */
20359
+ 200: {
18524
20360
  headers: {
18525
20361
  "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
18526
20362
  "X-Request-ID": components["headers"]["X-Request-ID"];
@@ -18530,12 +20366,320 @@ interface operations {
18530
20366
  [name: string]: unknown;
18531
20367
  };
18532
20368
  content: {
18533
- "application/json": components["schemas"]["Owner"];
20369
+ "application/json": components["schemas"]["SignInList"];
20370
+ };
20371
+ };
20372
+ /** @description - `validation_error`: the query has a parameter this endpoint doesn't take. */
20373
+ 400: {
20374
+ headers: {
20375
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
20376
+ "X-Request-ID": components["headers"]["X-Request-ID"];
20377
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
20378
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
20379
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
20380
+ "X-Error-Code": components["headers"]["X-Error-Code"];
20381
+ [name: string]: unknown;
20382
+ };
20383
+ content: {
20384
+ "application/json": components["schemas"]["ValidationErrorRefusal"];
20385
+ };
20386
+ };
20387
+ /** @description `unauthorized`: the request has no credential, or its credential is not valid. */
20388
+ 401: {
20389
+ headers: {
20390
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
20391
+ "X-Request-ID": components["headers"]["X-Request-ID"];
20392
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
20393
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
20394
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
20395
+ "X-Error-Code": components["headers"]["X-Error-Code"];
20396
+ [name: string]: unknown;
20397
+ };
20398
+ content: {
20399
+ "application/json": components["schemas"]["UnauthorizedRefusal"];
20400
+ };
20401
+ };
20402
+ /** @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. */
20403
+ 403: {
20404
+ headers: {
20405
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
20406
+ "X-Request-ID": components["headers"]["X-Request-ID"];
20407
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
20408
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
20409
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
20410
+ "X-Error-Code": components["headers"]["X-Error-Code"];
20411
+ [name: string]: unknown;
20412
+ };
20413
+ content: {
20414
+ "application/json": components["schemas"]["ForbiddenRefusal"];
20415
+ };
20416
+ };
20417
+ /** @description `rate_limited`: you sent too many requests. Wait for the number of seconds in `Retry-After`, then try again. */
20418
+ 429: {
20419
+ headers: {
20420
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
20421
+ "X-Request-ID": components["headers"]["X-Request-ID"];
20422
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
20423
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
20424
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
20425
+ "X-Error-Code": components["headers"]["X-Error-Code"];
20426
+ "Retry-After": components["headers"]["Retry-After"];
20427
+ [name: string]: unknown;
20428
+ };
20429
+ content: {
20430
+ "application/json": components["schemas"]["RateLimitedRefusal"];
20431
+ };
20432
+ };
20433
+ /** @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. */
20434
+ 500: {
20435
+ headers: {
20436
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
20437
+ "X-Request-ID": components["headers"]["X-Request-ID"];
20438
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
20439
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
20440
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
20441
+ "X-Error-Code": components["headers"]["X-Error-Code"];
20442
+ [name: string]: unknown;
20443
+ };
20444
+ content: {
20445
+ "application/json": components["schemas"]["InternalErrorRefusal"];
20446
+ };
20447
+ };
20448
+ /** @description `write_contention`: the database was busy, and Marfa couldn't complete the request in time. Nothing changed. Try the request again. */
20449
+ 503: {
20450
+ headers: {
20451
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
20452
+ "X-Request-ID": components["headers"]["X-Request-ID"];
20453
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
20454
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
20455
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
20456
+ "X-Error-Code": components["headers"]["X-Error-Code"];
20457
+ [name: string]: unknown;
20458
+ };
20459
+ content: {
20460
+ "application/json": components["schemas"]["WriteContentionRefusal"];
20461
+ };
20462
+ };
20463
+ /** @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. */
20464
+ 507: {
20465
+ headers: {
20466
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
20467
+ "X-Request-ID": components["headers"]["X-Request-ID"];
20468
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
20469
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
20470
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
20471
+ "X-Error-Code": components["headers"]["X-Error-Code"];
20472
+ [name: string]: unknown;
20473
+ };
20474
+ content: {
20475
+ "application/json": components["schemas"]["InsufficientStorageRefusal"];
20476
+ };
20477
+ };
20478
+ };
20479
+ };
20480
+ endSignIn: {
20481
+ parameters: {
20482
+ query?: {
20483
+ /** @description For an app, also revoke every key it minted, as its `minted_by` rows show. Only an app takes it. */
20484
+ revoke_keys?: "true" | "false";
20485
+ };
20486
+ header?: never;
20487
+ path: {
20488
+ /** @description The ID of the sign-in. */
20489
+ id: string;
20490
+ };
20491
+ cookie?: never;
20492
+ };
20493
+ requestBody?: never;
20494
+ responses: {
20495
+ /** @description Returns `ok: true`. The sign-in has ended. */
20496
+ 200: {
20497
+ headers: {
20498
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
20499
+ "X-Request-ID": components["headers"]["X-Request-ID"];
20500
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
20501
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
20502
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
20503
+ [name: string]: unknown;
20504
+ };
20505
+ content: {
20506
+ "application/json": components["schemas"]["Ok"];
20507
+ };
20508
+ };
20509
+ /** @description - `validation_error`: `revoke_keys` is `true` and the ID names a browser or a key. */
20510
+ 400: {
20511
+ headers: {
20512
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
20513
+ "X-Request-ID": components["headers"]["X-Request-ID"];
20514
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
20515
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
20516
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
20517
+ "X-Error-Code": components["headers"]["X-Error-Code"];
20518
+ [name: string]: unknown;
20519
+ };
20520
+ content: {
20521
+ "application/json": components["schemas"]["ValidationErrorRefusal"];
20522
+ };
20523
+ };
20524
+ /** @description `unauthorized`: the request has no credential, or its credential is not valid. */
20525
+ 401: {
20526
+ headers: {
20527
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
20528
+ "X-Request-ID": components["headers"]["X-Request-ID"];
20529
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
20530
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
20531
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
20532
+ "X-Error-Code": components["headers"]["X-Error-Code"];
20533
+ [name: string]: unknown;
20534
+ };
20535
+ content: {
20536
+ "application/json": components["schemas"]["UnauthorizedRefusal"];
20537
+ };
20538
+ };
20539
+ /** @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. */
20540
+ 403: {
20541
+ headers: {
20542
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
20543
+ "X-Request-ID": components["headers"]["X-Request-ID"];
20544
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
20545
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
20546
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
20547
+ "X-Error-Code": components["headers"]["X-Error-Code"];
20548
+ [name: string]: unknown;
20549
+ };
20550
+ content: {
20551
+ "application/json": components["schemas"]["ForbiddenRefusal"];
20552
+ };
20553
+ };
20554
+ /** @description - `sign_in_not_found`: no live sign-in of the owner has this ID. It may have ended or expired. */
20555
+ 404: {
20556
+ headers: {
20557
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
20558
+ "X-Request-ID": components["headers"]["X-Request-ID"];
20559
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
20560
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
20561
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
20562
+ "X-Error-Code": components["headers"]["X-Error-Code"];
20563
+ [name: string]: unknown;
20564
+ };
20565
+ content: {
20566
+ "application/json": components["schemas"]["SignInNotFoundRefusal"];
20567
+ };
20568
+ };
20569
+ /** @description `request_too_large`: the request body is larger than this instance accepts. */
20570
+ 413: {
20571
+ headers: {
20572
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
20573
+ "X-Request-ID": components["headers"]["X-Request-ID"];
20574
+ "X-Error-Code": components["headers"]["X-Error-Code"];
20575
+ [name: string]: unknown;
20576
+ };
20577
+ content: {
20578
+ "application/json": components["schemas"]["RequestTooLargeRefusal"];
20579
+ };
20580
+ };
20581
+ /** @description `rate_limited`: you sent too many requests. Wait for the number of seconds in `Retry-After`, then try again. */
20582
+ 429: {
20583
+ headers: {
20584
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
20585
+ "X-Request-ID": components["headers"]["X-Request-ID"];
20586
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
20587
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
20588
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
20589
+ "X-Error-Code": components["headers"]["X-Error-Code"];
20590
+ "Retry-After": components["headers"]["Retry-After"];
20591
+ [name: string]: unknown;
20592
+ };
20593
+ content: {
20594
+ "application/json": components["schemas"]["RateLimitedRefusal"];
20595
+ };
20596
+ };
20597
+ /** @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. */
20598
+ 500: {
20599
+ headers: {
20600
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
20601
+ "X-Request-ID": components["headers"]["X-Request-ID"];
20602
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
20603
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
20604
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
20605
+ "X-Error-Code": components["headers"]["X-Error-Code"];
20606
+ [name: string]: unknown;
20607
+ };
20608
+ content: {
20609
+ "application/json": components["schemas"]["InternalErrorRefusal"];
20610
+ };
20611
+ };
20612
+ /** @description `write_contention`: the database was busy, and Marfa couldn't complete the request in time. Nothing changed. Try the request again. */
20613
+ 503: {
20614
+ headers: {
20615
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
20616
+ "X-Request-ID": components["headers"]["X-Request-ID"];
20617
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
20618
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
20619
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
20620
+ "X-Error-Code": components["headers"]["X-Error-Code"];
20621
+ [name: string]: unknown;
20622
+ };
20623
+ content: {
20624
+ "application/json": components["schemas"]["WriteContentionRefusal"];
20625
+ };
20626
+ };
20627
+ /** @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. */
20628
+ 507: {
20629
+ headers: {
20630
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
20631
+ "X-Request-ID": components["headers"]["X-Request-ID"];
20632
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
20633
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
20634
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
20635
+ "X-Error-Code": components["headers"]["X-Error-Code"];
20636
+ [name: string]: unknown;
20637
+ };
20638
+ content: {
20639
+ "application/json": components["schemas"]["InsufficientStorageRefusal"];
20640
+ };
20641
+ };
20642
+ };
20643
+ };
20644
+ updateSignIn: {
20645
+ parameters: {
20646
+ query?: never;
20647
+ header?: never;
20648
+ path: {
20649
+ /** @description The ID of the sign-in. */
20650
+ id: string;
20651
+ };
20652
+ cookie?: never;
20653
+ };
20654
+ requestBody: {
20655
+ content: {
20656
+ "application/json": {
20657
+ /**
20658
+ * @description The sign-in's new name. Marfa trims spaces from each end.
20659
+ * @example Marfa app on the studio laptop
20660
+ */
20661
+ name: string;
20662
+ };
20663
+ };
20664
+ };
20665
+ responses: {
20666
+ /** @description Returns the renamed sign-in. */
20667
+ 200: {
20668
+ headers: {
20669
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
20670
+ "X-Request-ID": components["headers"]["X-Request-ID"];
20671
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
20672
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
20673
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
20674
+ [name: string]: unknown;
20675
+ };
20676
+ content: {
20677
+ "application/json": components["schemas"]["SignIn"];
18534
20678
  };
18535
20679
  };
18536
20680
  /**
18537
- * @description - `missing_required_field`: `email` or `password` is missing.
18538
- * - `validation_error`: a field is invalid, such as an `email` that isn't an email address or a `password` shorter or longer than sign-in allows. For `password`, the message names the limit.
20681
+ * @description - `missing_required_field`: `name` is missing.
20682
+ * - `validation_error`: `name` is empty, too long or holds a control or bidirectional formatting character, the body has another field, or the ID names a browser, whose name comes from the browser.
18539
20683
  */
18540
20684
  400: {
18541
20685
  headers: {
@@ -18566,7 +20710,7 @@ interface operations {
18566
20710
  "application/json": components["schemas"]["UnauthorizedRefusal"];
18567
20711
  };
18568
20712
  };
18569
- /** @description - `forbidden`: your key isn't an operator key. */
20713
+ /** @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. */
18570
20714
  403: {
18571
20715
  headers: {
18572
20716
  "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
@@ -18581,8 +20725,8 @@ interface operations {
18581
20725
  "application/json": components["schemas"]["ForbiddenRefusal"];
18582
20726
  };
18583
20727
  };
18584
- /** @description - `owner_exists`: the instance already has an owner. */
18585
- 409: {
20728
+ /** @description - `sign_in_not_found`: no live sign-in of the owner has this ID. It may have ended or expired. */
20729
+ 404: {
18586
20730
  headers: {
18587
20731
  "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
18588
20732
  "X-Request-ID": components["headers"]["X-Request-ID"];
@@ -18593,7 +20737,7 @@ interface operations {
18593
20737
  [name: string]: unknown;
18594
20738
  };
18595
20739
  content: {
18596
- "application/json": components["schemas"]["OwnerExistsRefusal"];
20740
+ "application/json": components["schemas"]["SignInNotFoundRefusal"];
18597
20741
  };
18598
20742
  };
18599
20743
  /** @description `request_too_large`: the request body is larger than this instance accepts. */
@@ -18639,8 +20783,23 @@ interface operations {
18639
20783
  "application/json": components["schemas"]["InternalErrorRefusal"];
18640
20784
  };
18641
20785
  };
18642
- /** @description `write_contention`: the database was busy, and Marfa couldn't complete the request in time. Nothing changed. Try the request again. */
18643
- 503: {
20786
+ /** @description `write_contention`: the database was busy, and Marfa couldn't complete the request in time. Nothing changed. Try the request again. */
20787
+ 503: {
20788
+ headers: {
20789
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
20790
+ "X-Request-ID": components["headers"]["X-Request-ID"];
20791
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
20792
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
20793
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
20794
+ "X-Error-Code": components["headers"]["X-Error-Code"];
20795
+ [name: string]: unknown;
20796
+ };
20797
+ content: {
20798
+ "application/json": components["schemas"]["WriteContentionRefusal"];
20799
+ };
20800
+ };
20801
+ /** @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. */
20802
+ 507: {
18644
20803
  headers: {
18645
20804
  "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
18646
20805
  "X-Request-ID": components["headers"]["X-Request-ID"];
@@ -18651,7 +20810,7 @@ interface operations {
18651
20810
  [name: string]: unknown;
18652
20811
  };
18653
20812
  content: {
18654
- "application/json": components["schemas"]["WriteContentionRefusal"];
20813
+ "application/json": components["schemas"]["InsufficientStorageRefusal"];
18655
20814
  };
18656
20815
  };
18657
20816
  };
@@ -18787,6 +20946,21 @@ interface operations {
18787
20946
  "application/json": components["schemas"]["WriteContentionRefusal"];
18788
20947
  };
18789
20948
  };
20949
+ /** @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. */
20950
+ 507: {
20951
+ headers: {
20952
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
20953
+ "X-Request-ID": components["headers"]["X-Request-ID"];
20954
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
20955
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
20956
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
20957
+ "X-Error-Code": components["headers"]["X-Error-Code"];
20958
+ [name: string]: unknown;
20959
+ };
20960
+ content: {
20961
+ "application/json": components["schemas"]["InsufficientStorageRefusal"];
20962
+ };
20963
+ };
18790
20964
  };
18791
20965
  };
18792
20966
  listWebhooks: {
@@ -18903,6 +21077,21 @@ interface operations {
18903
21077
  "application/json": components["schemas"]["WriteContentionRefusal"];
18904
21078
  };
18905
21079
  };
21080
+ /** @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. */
21081
+ 507: {
21082
+ headers: {
21083
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
21084
+ "X-Request-ID": components["headers"]["X-Request-ID"];
21085
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
21086
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
21087
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
21088
+ "X-Error-Code": components["headers"]["X-Error-Code"];
21089
+ [name: string]: unknown;
21090
+ };
21091
+ content: {
21092
+ "application/json": components["schemas"]["InsufficientStorageRefusal"];
21093
+ };
21094
+ };
18906
21095
  };
18907
21096
  };
18908
21097
  createWebhook: {
@@ -19047,6 +21236,21 @@ interface operations {
19047
21236
  "application/json": components["schemas"]["WriteContentionRefusal"];
19048
21237
  };
19049
21238
  };
21239
+ /** @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. */
21240
+ 507: {
21241
+ headers: {
21242
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
21243
+ "X-Request-ID": components["headers"]["X-Request-ID"];
21244
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
21245
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
21246
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
21247
+ "X-Error-Code": components["headers"]["X-Error-Code"];
21248
+ [name: string]: unknown;
21249
+ };
21250
+ content: {
21251
+ "application/json": components["schemas"]["InsufficientStorageRefusal"];
21252
+ };
21253
+ };
19050
21254
  };
19051
21255
  };
19052
21256
  getWebhook: {
@@ -19181,6 +21385,21 @@ interface operations {
19181
21385
  "application/json": components["schemas"]["WriteContentionRefusal"];
19182
21386
  };
19183
21387
  };
21388
+ /** @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. */
21389
+ 507: {
21390
+ headers: {
21391
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
21392
+ "X-Request-ID": components["headers"]["X-Request-ID"];
21393
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
21394
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
21395
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
21396
+ "X-Error-Code": components["headers"]["X-Error-Code"];
21397
+ [name: string]: unknown;
21398
+ };
21399
+ content: {
21400
+ "application/json": components["schemas"]["InsufficientStorageRefusal"];
21401
+ };
21402
+ };
19184
21403
  };
19185
21404
  };
19186
21405
  deleteWebhook: {
@@ -19327,6 +21546,21 @@ interface operations {
19327
21546
  "application/json": components["schemas"]["WriteContentionRefusal"];
19328
21547
  };
19329
21548
  };
21549
+ /** @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. */
21550
+ 507: {
21551
+ headers: {
21552
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
21553
+ "X-Request-ID": components["headers"]["X-Request-ID"];
21554
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
21555
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
21556
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
21557
+ "X-Error-Code": components["headers"]["X-Error-Code"];
21558
+ [name: string]: unknown;
21559
+ };
21560
+ content: {
21561
+ "application/json": components["schemas"]["InsufficientStorageRefusal"];
21562
+ };
21563
+ };
19330
21564
  };
19331
21565
  };
19332
21566
  updateWebhook: {
@@ -19486,6 +21720,21 @@ interface operations {
19486
21720
  "application/json": components["schemas"]["WriteContentionRefusal"];
19487
21721
  };
19488
21722
  };
21723
+ /** @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. */
21724
+ 507: {
21725
+ headers: {
21726
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
21727
+ "X-Request-ID": components["headers"]["X-Request-ID"];
21728
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
21729
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
21730
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
21731
+ "X-Error-Code": components["headers"]["X-Error-Code"];
21732
+ [name: string]: unknown;
21733
+ };
21734
+ content: {
21735
+ "application/json": components["schemas"]["InsufficientStorageRefusal"];
21736
+ };
21737
+ };
19489
21738
  };
19490
21739
  };
19491
21740
  listWebhookDeliveries: {
@@ -19625,6 +21874,21 @@ interface operations {
19625
21874
  "application/json": components["schemas"]["WriteContentionRefusal"];
19626
21875
  };
19627
21876
  };
21877
+ /** @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. */
21878
+ 507: {
21879
+ headers: {
21880
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
21881
+ "X-Request-ID": components["headers"]["X-Request-ID"];
21882
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
21883
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
21884
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
21885
+ "X-Error-Code": components["headers"]["X-Error-Code"];
21886
+ [name: string]: unknown;
21887
+ };
21888
+ content: {
21889
+ "application/json": components["schemas"]["InsufficientStorageRefusal"];
21890
+ };
21891
+ };
19628
21892
  };
19629
21893
  };
19630
21894
  redeliverWebhookDelivery: {
@@ -19788,6 +22052,21 @@ interface operations {
19788
22052
  "application/json": components["schemas"]["WriteContentionRefusal"];
19789
22053
  };
19790
22054
  };
22055
+ /** @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. */
22056
+ 507: {
22057
+ headers: {
22058
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
22059
+ "X-Request-ID": components["headers"]["X-Request-ID"];
22060
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
22061
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
22062
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
22063
+ "X-Error-Code": components["headers"]["X-Error-Code"];
22064
+ [name: string]: unknown;
22065
+ };
22066
+ content: {
22067
+ "application/json": components["schemas"]["InsufficientStorageRefusal"];
22068
+ };
22069
+ };
19791
22070
  };
19792
22071
  };
19793
22072
  listAuditLog: {
@@ -19858,7 +22137,168 @@ interface operations {
19858
22137
  "application/json": components["schemas"]["UnauthorizedRefusal"];
19859
22138
  };
19860
22139
  };
19861
- /** @description - `forbidden`: you don't hold `audit.read`. The operator key doesn't hold it either. `details.required_scope` names it. */
22140
+ /** @description - `forbidden`: you don't hold `audit.read`. `details.required_scope` names it. */
22141
+ 403: {
22142
+ headers: {
22143
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
22144
+ "X-Request-ID": components["headers"]["X-Request-ID"];
22145
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
22146
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
22147
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
22148
+ "X-Error-Code": components["headers"]["X-Error-Code"];
22149
+ [name: string]: unknown;
22150
+ };
22151
+ content: {
22152
+ "application/json": components["schemas"]["ForbiddenRefusal"];
22153
+ };
22154
+ };
22155
+ /** @description `rate_limited`: you sent too many requests. Wait for the number of seconds in `Retry-After`, then try again. */
22156
+ 429: {
22157
+ headers: {
22158
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
22159
+ "X-Request-ID": components["headers"]["X-Request-ID"];
22160
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
22161
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
22162
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
22163
+ "X-Error-Code": components["headers"]["X-Error-Code"];
22164
+ "Retry-After": components["headers"]["Retry-After"];
22165
+ [name: string]: unknown;
22166
+ };
22167
+ content: {
22168
+ "application/json": components["schemas"]["RateLimitedRefusal"];
22169
+ };
22170
+ };
22171
+ /** @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. */
22172
+ 500: {
22173
+ headers: {
22174
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
22175
+ "X-Request-ID": components["headers"]["X-Request-ID"];
22176
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
22177
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
22178
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
22179
+ "X-Error-Code": components["headers"]["X-Error-Code"];
22180
+ [name: string]: unknown;
22181
+ };
22182
+ content: {
22183
+ "application/json": components["schemas"]["InternalErrorRefusal"];
22184
+ };
22185
+ };
22186
+ /** @description `write_contention`: the database was busy, and Marfa couldn't complete the request in time. Nothing changed. Try the request again. */
22187
+ 503: {
22188
+ headers: {
22189
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
22190
+ "X-Request-ID": components["headers"]["X-Request-ID"];
22191
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
22192
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
22193
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
22194
+ "X-Error-Code": components["headers"]["X-Error-Code"];
22195
+ [name: string]: unknown;
22196
+ };
22197
+ content: {
22198
+ "application/json": components["schemas"]["WriteContentionRefusal"];
22199
+ };
22200
+ };
22201
+ /** @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. */
22202
+ 507: {
22203
+ headers: {
22204
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
22205
+ "X-Request-ID": components["headers"]["X-Request-ID"];
22206
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
22207
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
22208
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
22209
+ "X-Error-Code": components["headers"]["X-Error-Code"];
22210
+ [name: string]: unknown;
22211
+ };
22212
+ content: {
22213
+ "application/json": components["schemas"]["InsufficientStorageRefusal"];
22214
+ };
22215
+ };
22216
+ };
22217
+ };
22218
+ getServerMetrics: {
22219
+ parameters: {
22220
+ query?: never;
22221
+ header?: never;
22222
+ path?: never;
22223
+ cookie?: never;
22224
+ };
22225
+ requestBody?: never;
22226
+ responses: {
22227
+ /** @description Server metrics */
22228
+ 200: {
22229
+ headers: {
22230
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
22231
+ "X-Request-ID": components["headers"]["X-Request-ID"];
22232
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
22233
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
22234
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
22235
+ [name: string]: unknown;
22236
+ };
22237
+ content: {
22238
+ "application/json": {
22239
+ /** @description Instance-wide item counts. */
22240
+ items: {
22241
+ /** @description Number of items across all states. */
22242
+ total: number;
22243
+ /** @description Item counts by state. */
22244
+ by_state: {
22245
+ [key: string]: number;
22246
+ };
22247
+ };
22248
+ /** @description Stored blob counts and size. */
22249
+ blobs: {
22250
+ /** @description Number of stored blobs. */
22251
+ count: number;
22252
+ /** @description Total size of stored blobs, in bytes. */
22253
+ total_bytes: number;
22254
+ };
22255
+ /** @description Built-in and registered type counts. */
22256
+ types: {
22257
+ /** @description Number of built-in types. */
22258
+ core: number;
22259
+ /** @description Number of registered types. */
22260
+ registered: number;
22261
+ };
22262
+ keys: components["schemas"]["MetricCount"];
22263
+ webhooks: components["schemas"]["MetricCount"] & unknown;
22264
+ /** @description Seconds since this server process started. */
22265
+ uptime_seconds: number;
22266
+ /** @description When these counters were collected, in UTC. */
22267
+ cached_at: string;
22268
+ };
22269
+ };
22270
+ };
22271
+ /** @description - `validation_error`: the query has a parameter this endpoint doesn't take. */
22272
+ 400: {
22273
+ headers: {
22274
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
22275
+ "X-Request-ID": components["headers"]["X-Request-ID"];
22276
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
22277
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
22278
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
22279
+ "X-Error-Code": components["headers"]["X-Error-Code"];
22280
+ [name: string]: unknown;
22281
+ };
22282
+ content: {
22283
+ "application/json": components["schemas"]["ValidationErrorRefusal"];
22284
+ };
22285
+ };
22286
+ /** @description `unauthorized`: the request has no credential, or its credential is not valid. */
22287
+ 401: {
22288
+ headers: {
22289
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
22290
+ "X-Request-ID": components["headers"]["X-Request-ID"];
22291
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
22292
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
22293
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
22294
+ "X-Error-Code": components["headers"]["X-Error-Code"];
22295
+ [name: string]: unknown;
22296
+ };
22297
+ content: {
22298
+ "application/json": components["schemas"]["UnauthorizedRefusal"];
22299
+ };
22300
+ };
22301
+ /** @description Caller lacks instance.read */
19862
22302
  403: {
19863
22303
  headers: {
19864
22304
  "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
@@ -19919,6 +22359,21 @@ interface operations {
19919
22359
  "application/json": components["schemas"]["WriteContentionRefusal"];
19920
22360
  };
19921
22361
  };
22362
+ /** @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. */
22363
+ 507: {
22364
+ headers: {
22365
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
22366
+ "X-Request-ID": components["headers"]["X-Request-ID"];
22367
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
22368
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
22369
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
22370
+ "X-Error-Code": components["headers"]["X-Error-Code"];
22371
+ [name: string]: unknown;
22372
+ };
22373
+ content: {
22374
+ "application/json": components["schemas"]["InsufficientStorageRefusal"];
22375
+ };
22376
+ };
19922
22377
  };
19923
22378
  };
19924
22379
  getInstance: {
@@ -20147,6 +22602,21 @@ interface operations {
20147
22602
  "application/json": components["schemas"]["StreamCapacityExhaustedOrWriteContentionRefusal"];
20148
22603
  };
20149
22604
  };
22605
+ /** @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. */
22606
+ 507: {
22607
+ headers: {
22608
+ "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
22609
+ "X-Request-ID": components["headers"]["X-Request-ID"];
22610
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
22611
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
22612
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
22613
+ "X-Error-Code": components["headers"]["X-Error-Code"];
22614
+ [name: string]: unknown;
22615
+ };
22616
+ content: {
22617
+ "application/json": components["schemas"]["InsufficientStorageRefusal"];
22618
+ };
22619
+ };
20150
22620
  };
20151
22621
  };
20152
22622
  registerOAuthClient: {
@@ -20161,7 +22631,7 @@ interface operations {
20161
22631
  "application/json": {
20162
22632
  /** @description The addresses Marfa may send a person back to after authorization. Required for `authorization_code`. 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]`. */
20163
22633
  redirect_uris?: string[];
20164
- /** @description The grants the client uses: `authorization_code`, `refresh_token` or `urn:ietf:params:oauth:grant-type:device_code`. Defaults to `authorization_code`. */
22634
+ /** @description The grants the client uses: `authorization_code`, `refresh_token` or `urn:ietf:params:oauth:grant-type:device_code`. Defaults to `authorization_code`. Without `authorization_code`, add `refresh_token` to get a refresh token with `offline_access`. */
20165
22635
  grant_types?: string[];
20166
22636
  /** @description The response types the client uses. Defaults to `code` when `grant_types` includes `authorization_code`. */
20167
22637
  response_types?: string[];
@@ -20169,7 +22639,7 @@ interface operations {
20169
22639
  client_name?: string;
20170
22640
  /** @description `web` or `native`, which decides the redirect URIs the client may use. Defaults to `web`. */
20171
22641
  application_type?: string;
20172
- /** @description Space-separated scopes to register the client for. Leave it out to register it for every scope the instance allows. */
22642
+ /** @description Space-separated scopes to register the client for. `offline_access` needs `refresh_token` or `authorization_code` in `grant_types`. Leave it out to register the client for every scope the instance allows that it can use. */
20173
22643
  scope?: string;
20174
22644
  /** @description How the client proves itself at the token endpoint. Defaults to `client_secret_basic`. Send `none` for a public client, which gets no `client_secret`. */
20175
22645
  token_endpoint_auth_method?: string;
@@ -20195,7 +22665,7 @@ interface operations {
20195
22665
  client_secret?: string;
20196
22666
  /** @description When the client was registered, in seconds since the Unix epoch. */
20197
22667
  client_id_issued_at?: number;
20198
- /** @description Space-separated scopes the client is registered for: the ones you named, or every scope the instance allows. */
22668
+ /** @description Space-separated scopes the client is registered for: the ones you named, or every scope the instance allows, without `offline_access` for a client that can't use a refresh token. */
20199
22669
  scope?: string;
20200
22670
  /** @description The redirect URIs, as registered. */
20201
22671
  redirect_uris?: string[];
@@ -20255,7 +22725,6 @@ interface operations {
20255
22725
  "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
20256
22726
  "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
20257
22727
  "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
20258
- "X-Error-Code": components["headers"]["X-Error-Code"];
20259
22728
  [name: string]: unknown;
20260
22729
  };
20261
22730
  content: {
@@ -20289,7 +22758,6 @@ interface operations {
20289
22758
  "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
20290
22759
  "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
20291
22760
  "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
20292
- "X-Error-Code": components["headers"]["X-Error-Code"];
20293
22761
  [name: string]: unknown;
20294
22762
  };
20295
22763
  content: {