@withmarfa/client 0.0.84 → 0.0.86

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.
package/dist/index.d.ts CHANGED
@@ -369,7 +369,7 @@ interface paths {
369
369
  };
370
370
  /**
371
371
  * List the trash
372
- * @description Returns a page of trash summaries, newest creation first, without item content, of the types you can read. Requires `items.purge`.
372
+ * @description Returns a page of trash summaries, newest creation first, without item content, of the types you can write. Requires `items.purge`.
373
373
  */
374
374
  get: operations["listTrash"];
375
375
  put?: never;
@@ -391,7 +391,7 @@ interface paths {
391
391
  put?: never;
392
392
  /**
393
393
  * Empty the trash
394
- * @description Empties one page of the trash: deletes up to 200 items of the types you can read permanently if their state and version still match. Returns partial results and a continuation cursor. Items trashed meanwhile may remain. Requires `items.purge`.
394
+ * @description Empties one page of the trash: deletes up to 200 items of the types you can write permanently if their state and version still match. Returns partial results and a continuation cursor. Items trashed meanwhile may remain. Requires `items.purge`.
395
395
  */
396
396
  post: operations["emptyTrash"];
397
397
  delete?: never;
@@ -470,7 +470,7 @@ interface paths {
470
470
  get?: never;
471
471
  /**
472
472
  * Replace an item's tags
473
- * @description Replaces the item's tags with the ones you send and returns them. An empty list clears all tags.
473
+ * @description Replaces the item's tags with the ones you send and returns them. An empty list clears all tags. Send `read_tags` to replace them only if the item still has the tags you read.
474
474
  */
475
475
  put: operations["replaceItemTags"];
476
476
  /**
@@ -1973,7 +1973,7 @@ interface paths {
1973
1973
  };
1974
1974
  /**
1975
1975
  * Get the owner's profile
1976
- * @description Returns the fields of the owner's profile that your credential can read: `name`, `email` and `avatar`, each only with profile read permission for that field. A field you can't read is left out, so a credential that can read none gets an empty object.
1976
+ * @description Returns the owner's profile fields that your credential can read: `name`, `username`, `email` and `avatar`, each with its own read permission. A field you can't read is left out, so a credential that can read none gets an empty object.
1977
1977
  */
1978
1978
  get: operations["getProfile"];
1979
1979
  put?: never;
@@ -1983,7 +1983,7 @@ interface paths {
1983
1983
  head?: never;
1984
1984
  /**
1985
1985
  * Update the owner's profile
1986
- * @description Updates the owner's email or name, or removes the avatar, and returns the profile fields you can read. Requires profile write permission for every submitted field. All fields commit together. Changing the email needs no confirmation.
1986
+ * @description Updates the owner's username, email or name, or removes the avatar, and returns the profile fields you can read. Requires profile write permission for every submitted field. All fields commit together. Changing the username needs no confirmation.
1987
1987
  */
1988
1988
  patch: operations["updateProfile"];
1989
1989
  trace?: never;
@@ -2108,14 +2108,14 @@ interface paths {
2108
2108
  post?: never;
2109
2109
  /**
2110
2110
  * Delete a passkey
2111
- * @description Deletes one passkey so it cannot sign in again. Existing sign-ins remain usable. Requires the owner's browser session, signed in within five minutes, or `sign_ins.manage`.
2111
+ * @description Deletes one passkey so it cannot sign in again. Existing sign-ins remain usable. Requires the owner's browser session, signed in within fifteen minutes, or `sign_ins.manage`.
2112
2112
  */
2113
2113
  delete: operations["deleteOwnerPasskey"];
2114
2114
  options?: never;
2115
2115
  head?: never;
2116
2116
  /**
2117
2117
  * Rename a passkey
2118
- * @description Renames the passkey and returns its public details. Requires the owner's browser session, signed in within five minutes, or `sign_ins.manage`.
2118
+ * @description Renames the passkey and returns its public details. Requires the owner's browser session, signed in within fifteen minutes, or `sign_ins.manage`.
2119
2119
  */
2120
2120
  patch: operations["renameOwnerPasskey"];
2121
2121
  trace?: never;
@@ -2443,7 +2443,7 @@ interface paths {
2443
2443
  put?: never;
2444
2444
  /**
2445
2445
  * Restore from an archive
2446
- * @description Restores an exported archive atomically and returns counts of written and skipped records. While it writes, Marfa turns other writes away. Requires `backups.manage`, `config.manage` to add settings, and a sign-in from the last five minutes.
2446
+ * @description Restores an exported archive atomically and returns counts of written and skipped records. While it writes, Marfa turns other writes away. Requires `backups.manage`, `config.manage` to add settings, and a sign-in from the last fifteen minutes.
2447
2447
  */
2448
2448
  post: operations["restoreArchive"];
2449
2449
  delete?: never;
@@ -2507,7 +2507,7 @@ interface paths {
2507
2507
  put?: never;
2508
2508
  /**
2509
2509
  * Restore a backup
2510
- * @description Restores a backup from the backup folder or object store, as `POST /restore` does, reading a folder's files from it. Requires `backups.manage`, `config.manage` to add settings, and a sign-in from the last five minutes.
2510
+ * @description Restores a backup from the backup folder or object store, as `POST /restore` does, reading a folder's files from it. Requires `backups.manage`, `config.manage` to add settings, and a sign-in from the last fifteen minutes.
2511
2511
  */
2512
2512
  post: operations["restoreBackup"];
2513
2513
  delete?: never;
@@ -2612,7 +2612,7 @@ interface components {
2612
2612
  /** @description Profile field permissions. */
2613
2613
  ProfilePermissions: {
2614
2614
  /**
2615
- * @description Access to every profile field, except that `write` changes only the name and the avatar. Changing the email address takes `email` at `write`.
2615
+ * @description Access to every profile field, except that `write` doesn't change the username. Changing the username takes `username` at `write`.
2616
2616
  * @enum {string}
2617
2617
  */
2618
2618
  "*"?: "read" | "write";
@@ -2622,7 +2622,12 @@ interface components {
2622
2622
  */
2623
2623
  name?: "read" | "write";
2624
2624
  /**
2625
- * @description Access to the owner's email address, which password sign-in matches. Only this entry at `write` lets a credential change it.
2625
+ * @description Access to the owner's username, which password sign-in matches. Only this entry at `write` lets a credential change it.
2626
+ * @enum {string}
2627
+ */
2628
+ username?: "read" | "write";
2629
+ /**
2630
+ * @description Access to the owner's email address, which plays no part in signing in.
2626
2631
  * @enum {string}
2627
2632
  */
2628
2633
  email?: "read" | "write";
@@ -3152,6 +3157,7 @@ interface components {
3152
3157
  * @description The instance's health: the worst state of its components, and each one's state.
3153
3158
  * @example {
3154
3159
  * "status": "ok",
3160
+ * "claimed": true,
3155
3161
  * "components": {
3156
3162
  * "database": {
3157
3163
  * "status": "ok",
@@ -3191,6 +3197,8 @@ interface components {
3191
3197
  * @enum {string}
3192
3198
  */
3193
3199
  status: "ok" | "degraded" | "down";
3200
+ /** @description `true` if the instance has an owner, `false` if it is waiting to be claimed with its setup code, and `null` if Marfa couldn't read its database to tell. */
3201
+ claimed: boolean | null;
3194
3202
  /** @description Each component checked: reading and writing the database, free disk space and the blob store. */
3195
3203
  components: {
3196
3204
  /** @description Whether the database answers a read. */
@@ -3261,7 +3269,7 @@ interface components {
3261
3269
  */
3262
3270
  status: "ok" | "incomplete" | "failing" | "off";
3263
3271
  /**
3264
- * @description Why backups are `off` or `failing`: `no_backup_destination` when no destination is set, `destination_unusable` when the one set can't be used, or `turned_off` when `backup_interval_seconds` is 0, also given beside `failing`.
3272
+ * @description Why backups are `off` or `failing`: `no_backup_destination` when no destination is set, `destination_unusable` when the one set can't be used, or `turned_off` when `backup_interval_seconds` is 0. `destination_unusable` wins if both apply.
3265
3273
  * @enum {string}
3266
3274
  */
3267
3275
  reason?: "no_backup_destination" | "turned_off" | "destination_unusable";
@@ -3752,7 +3760,7 @@ interface components {
3752
3760
  };
3753
3761
  };
3754
3762
  };
3755
- /** @description A failed exact version precondition: the error and the item now. */
3763
+ /** @description A failed precondition on the item: the error and the item now. */
3756
3764
  ItemStaleVersion: {
3757
3765
  error: components["schemas"]["VersionConflictError"] & unknown;
3758
3766
  current: components["schemas"]["ConflictSnapshot"] & unknown;
@@ -3791,11 +3799,13 @@ interface components {
3791
3799
  Profile: {
3792
3800
  /** @description The owner's name. Present with `profile.name:read`. */
3793
3801
  name?: string;
3802
+ /** @description The owner's username, which password sign-in matches. Present with `profile.username:read`. */
3803
+ username?: string;
3794
3804
  /**
3795
3805
  * Format: email
3796
- * @description The owner's sign-in email address. Present with `profile.email:read`.
3806
+ * @description The owner's email address, or `null` when none is set. Present with `profile.email:read`.
3797
3807
  */
3798
- email?: string;
3808
+ email?: string | null;
3799
3809
  /**
3800
3810
  * Format: uri
3801
3811
  * @description The address of the owner's avatar, or `null` when there is none. Present with `profile.avatar:read`. Fetch it with `GET /profile/avatar`.
@@ -5188,7 +5198,7 @@ interface components {
5188
5198
  };
5189
5199
  };
5190
5200
  /**
5191
- * @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` lists and empties the trash and purges trashed items; `webhooks.manage` manages webhooks; `config.manage` reads and replaces `/config`, which holds the stored settings; secret settings are never read back; `audit.read` reads the audit log; `grants.manage` lists, narrows and revokes other apps' access; `instance.read` reads health, what needs attention, metrics, housekeeping, blob storage reports and every bulk job's status; `instance.maintain` runs housekeeping, cancels bulk jobs, updates the server and confirms the clock; `connectors.manage` administers connector registrations and their endpoints, and clears their retained state; `blobs.manage` manages every blob; `backups.manage` lists, takes and adopts backups and restores a backup or an archive; and `sign_ins.manage` lists, renames and ends sign-ins, manages the owner's passkeys and changes the owner's password.
5201
+ * @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, changes one without widening it, and grants any source a key may claim; `items.purge` lists and empties the trash and purges trashed items; `webhooks.manage` manages webhooks; `config.manage` reads and replaces `/config`, which holds the stored settings; secret settings are never read back; `audit.read` reads the audit log; `grants.manage` lists, narrows and revokes other apps' access; `instance.read` reads health, what needs attention, metrics, housekeeping, blob storage reports and every bulk job's status; `instance.maintain` runs housekeeping, cancels bulk jobs, updates the server and confirms the clock; `connectors.manage` administers connector registrations and their endpoints, and clears their retained state; `blobs.manage` manages every blob; `backups.manage` lists, takes and adopts backups and restores a backup or an archive; and `sign_ins.manage` lists, renames and ends sign-ins, manages the owner's passkeys and changes the owner's password.
5192
5202
  * @enum {string}
5193
5203
  */
5194
5204
  Permission: "webhooks.manage" | "schema.write" | "config.manage" | "audit.read" | "items.purge" | "keys.mint" | "grants.manage" | "instance.read" | "instance.maintain" | "connectors.manage" | "blobs.manage" | "backups.manage" | "sign_ins.manage" | "keys.manage";
@@ -5323,6 +5333,11 @@ interface components {
5323
5333
  * @example 2026-10-03T09:30:00.000Z
5324
5334
  */
5325
5335
  detached_at: string | null;
5336
+ /**
5337
+ * @description Why the attached object store cannot be used while the address rules refuse the requests to it because `allow_private_addresses` is `false`, the same text as `backups.store_error` in `GET /health`, or `null`.
5338
+ * @example The object store cannot be used: the object store's address is not public, and allow_private_addresses is false. Until it can, no file is copied there, no backup is taken and no file is purged.
5339
+ */
5340
+ error: string | null;
5326
5341
  };
5327
5342
  /** @description An error response. */
5328
5343
  BlobNotFoundRefusal: {
@@ -5485,7 +5500,9 @@ interface components {
5485
5500
  HousekeepingOutcome: "succeeded" | "failed" | "held";
5486
5501
  /** @description What a run reports, under names its job chooses, such as `deleted`, `copied` or, for `trash-purge`, `passed_over`: the items it could not purge and left for the next run. */
5487
5502
  HousekeepingReport: {
5488
- [key: string]: number | boolean | string | null;
5503
+ [key: string]: number | boolean | string | null | {
5504
+ [key: string]: string;
5505
+ };
5489
5506
  };
5490
5507
  /** @description One run of a housekeeping job. */
5491
5508
  HousekeepingRun: {
@@ -5890,11 +5907,11 @@ interface components {
5890
5907
  */
5891
5908
  AttentionConcern: {
5892
5909
  /**
5893
- * @description health: degraded or down; job: last run failed; connector: failed, has problems, or quiet a day; folder: sync problems; key: expiring; backup: none kept, off or failing; setting: a secret to set again; clock: ahead or behind; unavailable: no answer.
5910
+ * @description health: degraded or down; job: last run failed; connector: failed, problems or quiet; folder: sync problems; key: expiring; backup: none, off or failing; setting: secret to set again; clock: ahead or behind; fault: met lately; unavailable: no answer.
5894
5911
  * @enum {string}
5895
5912
  */
5896
- kind: "health" | "job" | "connector" | "folder" | "key" | "backup" | "setting" | "clock" | "unavailable";
5897
- /** @description The component, job, connector, folder, or key ID, the check that couldn't answer, a backup concern such as `no_backup_destination`, `run` or `store`, a secret setting's key, or a clock concern `clock_ahead` or `clock_behind`. */
5913
+ kind: "health" | "job" | "connector" | "folder" | "key" | "backup" | "setting" | "clock" | "fault" | "unavailable";
5914
+ /** @description The component, job, connector, folder or key ID, the check that couldn't answer, a backup concern such as `store`, a secret setting's key, `clock_ahead` or `clock_behind`, or a fault's kind and place, such as `database:POST /items/{id}`, or `other`. */
5898
5915
  reference: string;
5899
5916
  /** @description A short name for the concern. */
5900
5917
  title: string;
@@ -5931,7 +5948,7 @@ interface components {
5931
5948
  state?: ("active" | "archived")[];
5932
5949
  /** @description A filter expression, as on `GET /items`, that narrows what the folder holds. */
5933
5950
  filter?: string;
5934
- /** @description An item ID. The folder holds that item and everything under it by `parent-of`, at any depth. */
5951
+ /** @description An item ID, or the path of one of the folder's own files, relative to its root, with `/`. The folder holds that item and everything beneath it by `parent-of`. A device replaces a path with its file's item ID once it has sent the file. */
5935
5952
  beneath?: string;
5936
5953
  };
5937
5954
  /** @description What a new file takes where its frontmatter leaves a blank. */
@@ -6166,7 +6183,7 @@ interface components {
6166
6183
  /** @description The permissions the key holds, such as `audit.read`. Empty if it holds none. */
6167
6184
  permissions: components["schemas"]["Permission"][];
6168
6185
  /**
6169
- * @description The app origin client ID, inherited by every descendant key. Absent when no app is in the key's origin.
6186
+ * @description The app origin client ID, inherited by every descendant key but an owner's key (`owner_key`). Absent when no app is in the key's origin, and on an owner's key.
6170
6187
  * @example 01a10127-d974-7c54-8cc4-5c5581d45c4c
6171
6188
  */
6172
6189
  oauth_client_id?: string;
@@ -6233,7 +6250,7 @@ interface components {
6233
6250
  /** @description The permissions the key holds, such as `audit.read`. Empty if it holds none. */
6234
6251
  permissions: components["schemas"]["Permission"][];
6235
6252
  /**
6236
- * @description The app origin client ID, inherited by every descendant key. Absent when no app is in the key's origin.
6253
+ * @description The app origin client ID, inherited by every descendant key but an owner's key (`owner_key`). Absent when no app is in the key's origin, and on an owner's key.
6237
6254
  * @example 01a10127-d974-7c54-8cc4-5c5581d45c4c
6238
6255
  */
6239
6256
  oauth_client_id?: string;
@@ -6379,10 +6396,27 @@ interface components {
6379
6396
  */
6380
6397
  enrichment_ocr_enabled: boolean;
6381
6398
  /**
6382
- * @description `true` if error alerts and exception reports are sent. Enabling requires `error_webhook_url`, or both `posthog_host` and `posthog_project_token`. Absent: the environment default applies.
6399
+ * @description `true` if exception reports are sent. Enabling requires both `posthog_host` and `posthog_project_token`. Absent: the environment default applies.
6383
6400
  * @default true
6384
6401
  */
6385
6402
  error_reporting_enabled: boolean;
6403
+ /**
6404
+ * @description `true` if Marfa sends telemetry about itself: traces, log records and metrics to the OTLP endpoints, and exception reports to `posthog_host`. `false` sends none of them and keeps every telemetry setting. Absent: `true`.
6405
+ * @default true
6406
+ */
6407
+ telemetry_enabled: boolean;
6408
+ /**
6409
+ * @description The share of traces Marfa exports, from 0 to 1. A trace that holds an error is exported whatever this says. Absent: `0.05`.
6410
+ * @default 0.05
6411
+ */
6412
+ otel_sample_ratio: number;
6413
+ /** @description The service name on everything Marfa exports, in place of a `service.name` in `otel_resource_attributes`. Absent: `marfa-server`. An archive doesn't carry it. */
6414
+ otel_service_name?: string;
6415
+ /**
6416
+ * @description Attributes Marfa adds to everything it exports, as comma-separated `key=value` pairs with percent-encoded values. One named here replaces Marfa's own of the same name, such as `service.version`. An archive doesn't carry it.
6417
+ * @example deployment.environment=staging
6418
+ */
6419
+ otel_resource_attributes?: string;
6386
6420
  /**
6387
6421
  * @description `true` if scheduled heartbeat requests are sent. Enabling requires `heartbeat_url`. Absent: the environment default applies.
6388
6422
  * @default true
@@ -6433,27 +6467,27 @@ interface components {
6433
6467
  addresses: string[];
6434
6468
  /** @description The address people sign in at, an origin with no path. Absent: this computer's own address. */
6435
6469
  sign_in_address?: string;
6436
- /** @description The absolute path of the folder Marfa backs itself up to and keeps a second copy of each file in, outside the data directory and the blob folder. Changing it needs a sign-in from the last five minutes. Absent: no backup folder. */
6470
+ /** @description The absolute path of the folder Marfa backs itself up to and keeps a second copy of each file in, outside the data directory and the blob folder. Changing it needs a sign-in from the last fifteen minutes. Absent: no backup folder. */
6437
6471
  backup_path?: string;
6438
- /** @description The bucket of an S3-compatible object store that also keeps each file and the backups: 1 to 255 ASCII letters, digits, `.`, `:`, `-` and `_`, other than `.` and `..`. Changing it needs a sign-in from the last five minutes. Absent: no object store. */
6472
+ /** @description The bucket of an S3-compatible object store that also keeps each file and the backups: 1 to 255 ASCII letters, digits, `.`, `:`, `-` and `_`, other than `.` and `..`. Changing it needs a sign-in from the last fifteen minutes. Absent: no object store. */
6439
6473
  object_store_bucket?: string;
6440
6474
  /**
6441
- * @description The region of the object store: a name of 1 to 63 ASCII letters, digits, hyphens and underscores that can be part of a host name, such as `us-east-1`, `eu-west-2` or `auto`. Changing it needs a sign-in from the last five minutes. Absent: `us-east-1`.
6475
+ * @description The region of the object store: a name of 1 to 63 ASCII letters, digits, hyphens and underscores that can be part of a host name, such as `us-east-1` or `auto`. Changing it needs a sign-in from the last fifteen minutes. Absent: `us-east-1`.
6442
6476
  * @default us-east-1
6443
6477
  */
6444
6478
  object_store_region: string;
6445
6479
  /**
6446
6480
  * Format: uri
6447
- * @description The endpoint of the object store, an `http` or `https` URL with no user name or password. Changing it needs a sign-in from the last five minutes. Absent: the store's provider chooses it.
6481
+ * @description The endpoint of the object store, an `http` or `https` URL with no user name or password. Changing it needs a sign-in from the last fifteen minutes. Absent: the store's provider chooses it.
6448
6482
  */
6449
6483
  object_store_endpoint?: string;
6450
6484
  /**
6451
- * @description `true` if the store at `object_store_endpoint` is addressed by path. `false` puts the bucket, as lowercase host labels, before the endpoint's host, a name without the bucket. Changing it needs a sign-in from the last five minutes. Absent: `true`.
6485
+ * @description `true` if the store at `object_store_endpoint` is addressed by path. `false` puts the bucket, as lowercase host labels, before the endpoint's host, a name without the bucket. Changing it needs a sign-in from the last fifteen minutes. Absent: `true`.
6452
6486
  * @default true
6453
6487
  */
6454
6488
  object_store_path_style: boolean;
6455
6489
  /**
6456
- * @description The folder in the bucket Marfa keeps files and backups under, as `/`-joined segments. Changing it needs a sign-in from the last five minutes. Absent: `marfa`.
6490
+ * @description The folder in the bucket Marfa keeps files and backups under, as `/`-joined segments. Changing it needs a sign-in from the last fifteen minutes. Absent: `marfa`.
6457
6491
  * @default marfa
6458
6492
  */
6459
6493
  object_store_prefix: string;
@@ -6463,7 +6497,7 @@ interface components {
6463
6497
  */
6464
6498
  object_store_access_key_id?: string;
6465
6499
  /**
6466
- * @description `true` if Marfa may send webhooks, the heartbeat, error notices, exception reports and object store requests to loopback, private and other addresses that aren't public. Changing it needs a sign-in from the last five minutes. Absent: `false`.
6500
+ * @description `true` if Marfa may send webhooks, the heartbeat, exception reports and object store requests to loopback, private and other addresses that aren't public. Changing it needs a sign-in from the last fifteen minutes. Absent: `false`.
6467
6501
  * @default false
6468
6502
  */
6469
6503
  allow_private_addresses: boolean;
@@ -6689,8 +6723,10 @@ interface components {
6689
6723
  * @example 01a10127-2109-7883-b687-be1e0823be15
6690
6724
  */
6691
6725
  id: string;
6692
- /** @description Email address used to sign in. */
6693
- email: string;
6726
+ /** @description The username the owner signs in with. */
6727
+ username: string;
6728
+ /** @description The owner's email address, or `null` when none is set. It plays no part in signing in. */
6729
+ email: string | null;
6694
6730
  /** @description Display name of the owner. */
6695
6731
  name: string;
6696
6732
  /** @description The address of the owner's avatar on this instance, or `null` when none is set. Fetch it with `GET /profile/avatar`. */
@@ -6764,7 +6800,7 @@ interface components {
6764
6800
  client_ip: string | null;
6765
6801
  /** @description The `User-Agent` a browser sent when it signed in, or `null` for an app, a key, or a browser that sent none. */
6766
6802
  user_agent: string | null;
6767
- /** @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. */
6803
+ /** @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, an owner's key (`owner_key`), any other key, and a key whose app has ended. */
6768
6804
  minted_by: string | null;
6769
6805
  };
6770
6806
  /** @description An error response. */
@@ -8146,10 +8182,10 @@ interface components {
8146
8182
  /** @description One kind of thing the archive doesn't hold, with what to do about it. */
8147
8183
  NotRestored: {
8148
8184
  /**
8149
- * @description What the archive doesn't hold. `enforcement` appears only when the instance that wrote the archive couldn't read its enforcement settings.
8185
+ * @description What the archive doesn't hold. `enforcement` appears only when the archive's instance couldn't read its enforcement settings, and `telemetry` only when `secrets_to_set` names a telemetry setting.
8150
8186
  * @enum {string}
8151
8187
  */
8152
- kind: "sign_in" | "keys" | "apps" | "webhooks" | "inbound_endpoints" | "connector_keys" | "addresses" | "name" | "logs" | "enforcement";
8188
+ kind: "sign_in" | "keys" | "apps" | "webhooks" | "inbound_endpoints" | "connector_keys" | "addresses" | "name" | "logs" | "enforcement" | "telemetry";
8153
8189
  /** @description A sentence saying that this kind is not restored and what to do about it. */
8154
8190
  message: string;
8155
8191
  };
@@ -8202,7 +8238,7 @@ interface components {
8202
8238
  */
8203
8239
  url: string;
8204
8240
  };
8205
- /** @description A new entry in what needs the owner's attention, sent once when a check first finds it. You receive it only with `instance.read`, and only on a stream that names no `type` and isn't a copy stream. */
8241
+ /** @description A new entry in what needs the owner's attention, sent once when a check first finds it or Marfa first meets a fault. You receive it only with `instance.read`, and only on a stream that names no `type` and isn't a copy stream. */
8206
8242
  AttentionEventFrame: {
8207
8243
  /**
8208
8244
  * @description The event, which is also the frame's `event:`.
@@ -8217,7 +8253,7 @@ interface components {
8217
8253
  * @description The entry's `kind`, as `GET /attention` lists it.
8218
8254
  * @enum {string}
8219
8255
  */
8220
- kind: "health" | "job" | "connector" | "folder" | "key" | "backup" | "clock" | "unavailable";
8256
+ kind: "health" | "job" | "connector" | "folder" | "key" | "backup" | "setting" | "clock" | "fault" | "unavailable";
8221
8257
  /** @description The entry's `reference`, as `GET /attention` lists it. */
8222
8258
  reference: string;
8223
8259
  /**
@@ -8227,7 +8263,23 @@ interface components {
8227
8263
  description: string;
8228
8264
  };
8229
8265
  /** @description The body of a webhook delivery of a new attention entry. */
8230
- WebhookAttentionEvent: components["schemas"]["AttentionEventFrame"] & components["schemas"]["WebhookDeliveryAttempt"];
8266
+ WebhookAttentionEvent: components["schemas"]["AttentionEventFrame"] & {
8267
+ /**
8268
+ * @description The event's ID in the log, the same as its `id:` on `GET /events`. Absent from a delivery of a fault sent while the database fails, which no log holds, no delivery list shows and nothing can redeliver.
8269
+ * @example 1042
8270
+ */
8271
+ event_id?: string;
8272
+ /**
8273
+ * @description The ID of the delivery, the same on every attempt. Use it to recognize a repeat.
8274
+ * @example 01a1011f-f893-7259-9825-8ff347398fef
8275
+ */
8276
+ delivery_id: string;
8277
+ /**
8278
+ * @description When Marfa sent this attempt, in UTC.
8279
+ * @example 2026-10-05T14:12:08.000Z
8280
+ */
8281
+ delivered_at: string;
8282
+ };
8231
8283
  /** @description The newest published release Marfa found. */
8232
8284
  UpdateLatest: {
8233
8285
  /**
@@ -8270,7 +8322,7 @@ interface components {
8270
8322
  /** @description How the latest update ended. */
8271
8323
  UpdateLast: {
8272
8324
  /**
8273
- * @description How the update ended. `succeeded`: the new release stayed up. `failed`: Marfa did not change the running release, or could not put the old one back. `rolled_back`: the new release did not stay up and Marfa put the old one back.
8325
+ * @description How the update ended. `succeeded`: the new release stayed up with both its programs in place. `failed`: Marfa did not change the running release, or could not put the old one back. `rolled_back`: Marfa put the old release back.
8274
8326
  * @enum {string}
8275
8327
  */
8276
8328
  outcome: "succeeded" | "failed" | "rolled_back";
@@ -8428,7 +8480,7 @@ interface components {
8428
8480
  "Retry-After": number;
8429
8481
  /** @description Sent as `true` when this response was served from the record of an earlier request carrying the same `Idempotency-Key`, rather than by performing the write. It is only ever sent on a replay and only with that value, so its absence means the write was performed. The status and body are the first attempt's, which is why the header can arrive on an error: a recorded 409 replays as a 409. Read a replayed response exactly as the original would have been read: the header says where the answer came from, not that anything went wrong. */
8430
8482
  "Idempotency-Replayed": "true";
8431
- /** @description The step-up challenge of RFC 9470, sent with `insufficient_user_authentication`: `Bearer error="insufficient_user_authentication", max_age="300"`, where `max_age` is how many seconds old the owner's sign-in may be. */
8483
+ /** @description The step-up challenge of RFC 9470, sent with `insufficient_user_authentication`: `Bearer error="insufficient_user_authentication", max_age="900"`, where `max_age` is how many seconds old the owner's sign-in may be. */
8432
8484
  "WWW-Authenticate": string;
8433
8485
  };
8434
8486
  pathItems: never;
@@ -12476,9 +12528,9 @@ interface operations {
12476
12528
  listOccurrences: {
12477
12529
  parameters: {
12478
12530
  query: {
12479
- /** @description Window start, ISO 8601. No zone means UTC; a date is its UTC midnight. An event overlaps if it starts before `to` and ends after this. Its end is `ends_at`, else start plus `duration`. A whole-day event fills whole days in its `timezone`, else UTC. */
12531
+ /** @description A date-time needs seconds and a zone or offset; a date is UTC midnight. An event overlaps if it starts before `to` and ends after this. Its end is `ends_at`, else start plus `duration`. A whole-day event fills whole days of its `timezone` or UTC. */
12480
12532
  from: string;
12481
- /** @description Window end, ISO 8601, read as `from` is. The window can span at most 400 days. An event with no length is in the window if it starts at or after `from` and before this time. */
12533
+ /** @description Window end, read as `from` is. The window can span at most 400 days. An event with no length is in the window if it starts at or after `from` and before this time. */
12482
12534
  to: string;
12483
12535
  /** @description Only return events of this type, or of the event types a wildcard matches. Names one type. */
12484
12536
  type?: string;
@@ -13850,6 +13902,8 @@ interface operations {
13850
13902
  * @default []
13851
13903
  */
13852
13904
  tags?: string[];
13905
+ /** @description The tags you read. If the item now has a different set of tags, no tag changes; order and repeats don't count. Leave it out to replace the tags as the item stands. */
13906
+ read_tags?: string[];
13853
13907
  };
13854
13908
  };
13855
13909
  };
@@ -13875,7 +13929,7 @@ interface operations {
13875
13929
  };
13876
13930
  };
13877
13931
  /**
13878
- * @description - `validation_error`: `tags` is not a list of valid tags or has more than 100, or the body has a field this endpoint doesn't take.
13932
+ * @description - `validation_error`: `tags` is not a list of valid tags or has more than 100, `read_tags` is not a list of strings, or the body has a field this endpoint doesn't take.
13879
13933
  * - `invalid_id`: the ID is not a valid item ID.
13880
13934
  */
13881
13935
  400: {
@@ -13939,7 +13993,10 @@ interface operations {
13939
13993
  "application/json": components["schemas"]["RequestTimeoutRefusal"];
13940
13994
  };
13941
13995
  };
13942
- /** @description `instance_changed`: `X-Marfa-Instance-Id` names another instance. Nothing is written. Rebuild the working copy from the instance at this address. */
13996
+ /**
13997
+ * @description - `version_conflict`: `read_tags` differs from the item's tags. `current` is the item now; no tag changed.
13998
+ * - `instance_changed`: `X-Marfa-Instance-Id` names another instance. Nothing is written. Rebuild the working copy from the instance at this address.
13999
+ */
13943
14000
  409: {
13944
14001
  headers: {
13945
14002
  "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
@@ -13949,7 +14006,7 @@ interface operations {
13949
14006
  [name: string]: unknown;
13950
14007
  };
13951
14008
  content: {
13952
- "application/json": components["schemas"]["InstanceChangedRefusal"] | components["schemas"]["IdempotencyKeyInFlightRefusal"];
14009
+ "application/json": components["schemas"]["ItemStaleVersion"] | components["schemas"]["InstanceChangedRefusal"] | components["schemas"]["IdempotencyKeyInFlightRefusal"];
13953
14010
  };
13954
14011
  };
13955
14012
  /** @description `contract_mismatch`: `X-Marfa-Contract` names another contract version than this instance speaks, or is not a whole number. Nothing was done. */
@@ -22041,7 +22098,8 @@ interface operations {
22041
22098
  * "kind": "disk",
22042
22099
  * "locator": "/var/lib/marfa/blobs",
22043
22100
  * "attached_at": "2026-10-03T09:34:00.198Z",
22044
- * "detached_at": null
22101
+ * "detached_at": null,
22102
+ * "error": null
22045
22103
  * }
22046
22104
  * ],
22047
22105
  * "next_cursor": null,
@@ -30172,7 +30230,7 @@ interface operations {
30172
30230
  label: string;
30173
30231
  /** @description The key's own source, stamped on the items 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. */
30174
30232
  source: string;
30175
- /** @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 local command can grant any. */
30233
+ /** @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 your own `source` and your claims, or with `keys.manage` any source; the local command can grant any. */
30176
30234
  sources?: string[];
30177
30235
  /** @description The permissions to give the key, such as `audit.read`. */
30178
30236
  permissions?: components["schemas"]["Permission"][];
@@ -30200,6 +30258,11 @@ interface operations {
30200
30258
  * @example 2027-01-01T00:00:00.000Z
30201
30259
  */
30202
30260
  expires_at?: string;
30261
+ /**
30262
+ * @description `true` if the key is the owner's, not the app's you act for: it carries no `oauth_client_id`, and disconnecting or narrowing that app leaves it working. From an app, or a key an app made, it needs `keys.manage`.
30263
+ * @default false
30264
+ */
30265
+ owner_key?: boolean;
30203
30266
  };
30204
30267
  };
30205
30268
  };
@@ -30240,7 +30303,7 @@ interface operations {
30240
30303
  };
30241
30304
  /**
30242
30305
  * @description - `missing_required_field`: `label` or `source` is missing, or a lever in `enforcement_override` lacks `types` or `sources`.
30243
- * - `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:`.
30306
+ * - `validation_error`: a field is invalid, such as an unknown permission level, more than 1,000 `sources`, an `expires_at` that isn't a future time, an `owner_key` that isn't `true` or `false`, or a `source` or claim starting `oauth:` or `restored:`.
30244
30307
  */
30245
30308
  400: {
30246
30309
  headers: {
@@ -30265,7 +30328,7 @@ interface operations {
30265
30328
  "application/json": components["schemas"]["UnauthorizedRefusal"];
30266
30329
  };
30267
30330
  };
30268
- /** @description - `forbidden`: you lack `keys.mint` and aren't the local command; the body names a permission, map entry or source you don't hold, a `source` another key claims that you can't grant, an own `source` a connector holds without `keys.manage`, an `expires_at` past your key's, or `enforcement_override` without `config.manage`. `details.required_scope` and `details.source` name what you lack. */
30331
+ /** @description - `forbidden`: you lack `keys.mint` and aren't the local command; the body names a permission or map entry you don't hold, a claim, or another key's claim as `source`, that you can't grant, an own `source` a connector holds without `keys.manage`, an `expires_at` past your key's, `owner_key` from an app without `keys.manage`, or `enforcement_override` without `config.manage`. `details` names it. */
30269
30332
  403: {
30270
30333
  headers: {
30271
30334
  "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
@@ -30741,7 +30804,7 @@ interface operations {
30741
30804
  /** @description A name for the key, to tell it apart from your other keys. */
30742
30805
  label?: string;
30743
30806
  default_tier?: components["schemas"]["Tier"] & unknown;
30744
- /** @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 local command can grant any. */
30807
+ /** @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 your own `source` and your claims, or with `keys.manage` any source; the local command can grant any. */
30745
30808
  sources?: string[];
30746
30809
  /** @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. */
30747
30810
  type_permissions?: {
@@ -30765,7 +30828,7 @@ interface operations {
30765
30828
  /** @description Replaces the key's enforcement levers whole. `null` clears them. */
30766
30829
  enforcement_override?: components["schemas"]["EnforcementOverride"] | null;
30767
30830
  /**
30768
- * @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, through `keys.manage` or with `narrow_only`.
30831
+ * @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 the key's current one for a key an app made, with `narrow_only`, or without `keys.mint`. It also can't be later than your own key's `expires_at`, unless you hold `keys.manage` and it isn't later than the key's current one.
30769
30832
  * @example 2027-01-01T00:00:00.000Z
30770
30833
  */
30771
30834
  expires_at?: string | null;
@@ -30837,7 +30900,7 @@ interface operations {
30837
30900
  "application/json": components["schemas"]["UnauthorizedRefusal"];
30838
30901
  };
30839
30902
  };
30840
- /** @description - `forbidden`: you don't hold `keys.mint` and aren't the local command; the body gives the key more than you hold or an `expires_at` later than yours; it widens or lengthens an app's key, or any key through `keys.manage` or with `narrow_only`, which also refuses a changed `enforcement_override`; or it names `enforcement_override` without `config.manage`. `details` names what's missing. */
30903
+ /** @description - `forbidden`: you hold neither `keys.mint` nor `keys.manage`, or only `keys.manage` and it widens or lengthens the key; it gives more than you hold or an `expires_at` later than yours, unless `keys.manage` narrows it; it widens or lengthens an app's key, or any key with `narrow_only`, which also refuses a changed `enforcement_override`; or it names `enforcement_override` without `config.manage`. */
30841
30904
  403: {
30842
30905
  headers: {
30843
30906
  "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
@@ -31323,7 +31386,7 @@ interface operations {
31323
31386
  revokeAppGrant: {
31324
31387
  parameters: {
31325
31388
  query?: {
31326
- /** @description Also revoke every key the app minted, and every key those keys minted. Omitting it, or `false`, leaves them working. */
31389
+ /** @description Also revoke every key the app minted, and every key those keys minted, but an owner's key (`owner_key`). Omitting it, or `false`, leaves them working. */
31327
31390
  revoke_keys?: boolean;
31328
31391
  };
31329
31392
  header?: never;
@@ -31714,7 +31777,6 @@ interface operations {
31714
31777
  * @description An RFC 6749 error, when Marfa can't send the browser back to the app:
31715
31778
  * - `invalid_request`: `client_id` is missing, or a parameter is repeated.
31716
31779
  * - `invalid_client` or `invalid_client_metadata`: the client ID metadata document is unreadable or invalid.
31717
- * - `invalid_scope`: a scope writes the owner's email.
31718
31780
  * - `invalid_target`: a resource isn't served here.
31719
31781
  *
31720
31782
  * `X-Marfa-Reach` gets `validation_error`.
@@ -32342,15 +32404,17 @@ interface operations {
32342
32404
  requestBody: {
32343
32405
  content: {
32344
32406
  "application/json": {
32345
- /**
32346
- * Format: email
32347
- * @description Email address the owner uses to sign in.
32348
- */
32349
- email: string;
32407
+ /** @description The username the owner signs in with: 1 to 64 letters a to z, numbers, dots, dashes and underscores. Marfa stores it in lowercase, with spaces at each end trimmed. */
32408
+ username: string;
32350
32409
  /** @description Password for the new owner. */
32351
32410
  password: string;
32352
- /** @description Display name. Defaults to the part before @ in the email address when omitted or blank. */
32411
+ /** @description Display name. Defaults to the username when omitted or blank. */
32353
32412
  name?: string;
32413
+ /**
32414
+ * Format: email
32415
+ * @description The owner's email address. It plays no part in signing in. Marfa stores it in lowercase, with spaces at each end trimmed.
32416
+ */
32417
+ email?: string;
32354
32418
  /** @description Machine-issued setup code. Omit when using a setup-only browser session. */
32355
32419
  code?: string;
32356
32420
  };
@@ -32368,6 +32432,7 @@ interface operations {
32368
32432
  /**
32369
32433
  * @example {
32370
32434
  * "id": "01926a3c-4b1d-7e52-9a8f-3c5d7e1b2a40",
32435
+ * "username": "alex",
32371
32436
  * "email": "alex@example.com",
32372
32437
  * "name": "Alex Example",
32373
32438
  * "avatar": null,
@@ -32508,6 +32573,7 @@ interface operations {
32508
32573
  /**
32509
32574
  * @example {
32510
32575
  * "name": "Alex Example",
32576
+ * "username": "alex",
32511
32577
  * "email": "alex@example.com",
32512
32578
  * "avatar": null
32513
32579
  * }
@@ -32628,11 +32694,13 @@ interface operations {
32628
32694
  requestBody: {
32629
32695
  content: {
32630
32696
  "application/json": {
32697
+ /** @description The username the owner signs in with: 1 to 64 letters a to z, numbers, dots, dashes and underscores. Marfa stores it in lowercase, with spaces at each end trimmed. Signing in with the old username stops at once. */
32698
+ username?: string;
32631
32699
  /**
32632
32700
  * Format: email
32633
- * @description The email address the owner signs in with. Marfa stores it in lowercase, with spaces at each end trimmed.
32701
+ * @description The owner's email address, which plays no part in signing in. Marfa stores it in lowercase, with spaces at each end trimmed. Set it to `null` to remove it.
32634
32702
  */
32635
- email?: string;
32703
+ email?: string | null;
32636
32704
  /** @description Display name, without control or bidirectional formatting characters. Spaces at each end are trimmed. */
32637
32705
  name?: string;
32638
32706
  /** @description Set `avatar` to `null` to remove the owner's avatar, or omit it to leave it unchanged. To set an avatar, send its bytes to `PUT /profile/avatar`. */
@@ -32652,6 +32720,7 @@ interface operations {
32652
32720
  /**
32653
32721
  * @example {
32654
32722
  * "name": "Alex Example",
32723
+ * "username": "alex",
32655
32724
  * "email": "alex@example.com",
32656
32725
  * "avatar": null
32657
32726
  * }
@@ -32982,6 +33051,7 @@ interface operations {
32982
33051
  /**
32983
33052
  * @example {
32984
33053
  * "name": "Alex Example",
33054
+ * "username": "alex",
32985
33055
  * "email": "alex@example.com",
32986
33056
  * "avatar": "https://marfa.example.com/profile/avatar"
32987
33057
  * }
@@ -33278,7 +33348,7 @@ interface operations {
33278
33348
  endSignIn: {
33279
33349
  parameters: {
33280
33350
  query?: {
33281
- /** @description For an app, also revoke every key it minted, as its `minted_by` entries show. Only an app takes it. */
33351
+ /** @description For an app, also revoke every key it minted but an owner's key (`owner_key`), as its `minted_by` entries show. Only an app takes it. */
33282
33352
  revoke_keys?: boolean;
33283
33353
  };
33284
33354
  header?: {
@@ -34003,7 +34073,7 @@ interface operations {
34003
34073
  "application/json": components["schemas"]["UnauthorizedRefusal"];
34004
34074
  };
34005
34075
  };
34006
- /** @description - `forbidden`: the credential lacks `sign_ins.manage`, and `details.required_scope` names it, or the owner's browser session signed in more than five minutes ago, and `details.needs` is `recent_sign_in`. */
34076
+ /** @description - `forbidden`: the credential lacks `sign_ins.manage`, and `details.required_scope` names it, or the owner's browser session signed in more than fifteen minutes ago, and `details.needs` is `recent_sign_in`. */
34007
34077
  403: {
34008
34078
  headers: {
34009
34079
  "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
@@ -34180,7 +34250,7 @@ interface operations {
34180
34250
  "application/json": components["schemas"]["UnauthorizedRefusal"];
34181
34251
  };
34182
34252
  };
34183
- /** @description - `forbidden`: the credential lacks `sign_ins.manage`, and `details.required_scope` names it, or the owner's browser session signed in more than five minutes ago, and `details.needs` is `recent_sign_in`. */
34253
+ /** @description - `forbidden`: the credential lacks `sign_ins.manage`, and `details.required_scope` names it, or the owner's browser session signed in more than fifteen minutes ago, and `details.needs` is `recent_sign_in`. */
34184
34254
  403: {
34185
34255
  headers: {
34186
34256
  "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
@@ -34880,7 +34950,7 @@ interface operations {
34880
34950
  */
34881
34951
  enrichment_ocr_enabled?: boolean;
34882
34952
  /**
34883
- * @description `true` if error alerts and exception reports are sent. Enabling requires `error_webhook_url`, or both `posthog_host` and `posthog_project_token`. Absent: the environment default applies.
34953
+ * @description `true` if exception reports are sent. Enabling requires both `posthog_host` and `posthog_project_token`. Absent: the environment default applies.
34884
34954
  * @default true
34885
34955
  */
34886
34956
  error_reporting_enabled?: boolean;
@@ -34938,27 +35008,27 @@ interface operations {
34938
35008
  confirm_sign_in_address_change?: boolean;
34939
35009
  /** @description `true` moves the sign-in address without first checking that it answers as this instance, for a host that answers only after the move. Only the private local command can send it. */
34940
35010
  skip_sign_in_address_check?: boolean;
34941
- /** @description The absolute path of the folder Marfa backs itself up to and keeps a second copy of each file in, outside the data directory and the blob folder. Changing it needs a sign-in from the last five minutes. Absent: no backup folder. */
35011
+ /** @description The absolute path of the folder Marfa backs itself up to and keeps a second copy of each file in, outside the data directory and the blob folder. Changing it needs a sign-in from the last fifteen minutes. Absent: no backup folder. */
34942
35012
  backup_path?: string;
34943
- /** @description The bucket of an S3-compatible object store that also keeps each file and the backups: 1 to 255 ASCII letters, digits, `.`, `:`, `-` and `_`, other than `.` and `..`. Changing it needs a sign-in from the last five minutes, and removes `object_store_secret_access_key` unless the same request sets it. Absent: no object store. */
35013
+ /** @description The bucket of an S3-compatible object store that also keeps each file and the backups: 1 to 255 ASCII letters, digits, `.`, `:`, `-` and `_`, other than `.` and `..`. Changing it needs a sign-in from the last fifteen minutes, and removes `object_store_secret_access_key` unless the same request sets it. Absent: no object store. */
34944
35014
  object_store_bucket?: string;
34945
35015
  /**
34946
- * @description The region of the object store: a name of 1 to 63 ASCII letters, digits, hyphens and underscores that can be part of a host name, such as `us-east-1`, `eu-west-2` or `auto`. Changing it needs a sign-in from the last five minutes. Absent: `us-east-1`.
35016
+ * @description The region of the object store: a name of 1 to 63 ASCII letters, digits, hyphens and underscores that can be part of a host name, such as `us-east-1` or `auto`. Changing it needs a sign-in from the last fifteen minutes. Absent: `us-east-1`.
34947
35017
  * @default us-east-1
34948
35018
  */
34949
35019
  object_store_region?: string;
34950
35020
  /**
34951
35021
  * Format: uri
34952
- * @description The endpoint of the object store, an `http` or `https` URL with no user name or password. Changing it needs a sign-in from the last five minutes, and removes `object_store_secret_access_key` unless the same request sets it. Absent: the store's provider chooses it.
35022
+ * @description The endpoint of the object store, an `http` or `https` URL with no user name or password. Changing it needs a sign-in from the last fifteen minutes, and removes `object_store_secret_access_key` unless the same request sets it. Absent: the store's provider chooses it.
34953
35023
  */
34954
35024
  object_store_endpoint?: string;
34955
35025
  /**
34956
- * @description `true` if the store at `object_store_endpoint` is addressed by path. `false` puts the bucket, as lowercase host labels, before the endpoint's host, a name without the bucket. Changing it needs a sign-in from the last five minutes. Absent: `true`.
35026
+ * @description `true` if the store at `object_store_endpoint` is addressed by path. `false` puts the bucket, as lowercase host labels, before the endpoint's host, a name without the bucket. Changing it needs a sign-in from the last fifteen minutes. Absent: `true`.
34957
35027
  * @default true
34958
35028
  */
34959
35029
  object_store_path_style?: boolean;
34960
35030
  /**
34961
- * @description The folder in the bucket Marfa keeps files and backups under, as `/`-joined segments. Changing it needs a sign-in from the last five minutes. Absent: `marfa`.
35031
+ * @description The folder in the bucket Marfa keeps files and backups under, as `/`-joined segments. Changing it needs a sign-in from the last fifteen minutes. Absent: `marfa`.
34962
35032
  * @default marfa
34963
35033
  */
34964
35034
  object_store_prefix?: string;
@@ -34968,7 +35038,7 @@ interface operations {
34968
35038
  */
34969
35039
  object_store_access_key_id?: string;
34970
35040
  /**
34971
- * @description `true` if Marfa may send webhooks, the heartbeat, error notices, exception reports and object store requests to loopback, private and other addresses that aren't public. Changing it needs a sign-in from the last five minutes. Absent: `false`.
35041
+ * @description `true` if Marfa may send webhooks, the heartbeat, exception reports and object store requests to loopback, private and other addresses that aren't public. Changing it needs a sign-in from the last fifteen minutes. Absent: `false`.
34972
35042
  * @default false
34973
35043
  */
34974
35044
  allow_private_addresses?: boolean;
@@ -34979,11 +35049,6 @@ interface operations {
34979
35049
  * @description The `http` or `https` URL Marfa requests on a schedule, so that something else can notice when the requests stop. Marfa never returns it. A `PUT` that leaves it out keeps it; `PATCH` with `null` removes it.
34980
35050
  */
34981
35051
  heartbeat_url?: string;
34982
- /**
34983
- * Format: uri
34984
- * @description The `http` or `https` URL Marfa posts a notice to when a request fails with a 500 error. Marfa never returns it. A `PUT` that leaves it out keeps it; `PATCH` with `null` removes it.
34985
- */
34986
- error_webhook_url?: string;
34987
35052
  /**
34988
35053
  * Format: uri
34989
35054
  * @description The PostHog host Marfa sends a report of each of its own faults to, for PostHog's error tracking. It must be an `https` URL, or an `http` URL on this machine, with no user name or password, and it needs `posthog_project_token` set too. Marfa never returns it. A `PUT` that leaves it out keeps it; `PATCH` with `null` removes it.
@@ -34992,6 +35057,55 @@ interface operations {
34992
35057
  posthog_host?: string;
34993
35058
  /** @description The PostHog project token Marfa sends its fault reports with, with no whitespace around it. It needs `posthog_host` set too. Marfa never returns it. A `PUT` that leaves it out keeps it; `PATCH` with `null` removes it. */
34994
35059
  posthog_project_token?: string;
35060
+ /**
35061
+ * @description `true` if Marfa sends telemetry about itself: traces, log records and metrics to the OTLP endpoints, and exception reports to `posthog_host`. `false` sends none of them and keeps every telemetry setting. Absent: `true`.
35062
+ * @default true
35063
+ */
35064
+ telemetry_enabled?: boolean;
35065
+ /**
35066
+ * Format: uri
35067
+ * @description The base URL of the OTLP receiver Marfa exports traces to, under `v1/traces`, log records to, under `v1/logs`, and metrics to, under `v1/metrics`, keeping its query. Marfa never returns it. A `PUT` that leaves it out keeps it; `PATCH` with `null` removes it.
35068
+ * @example https://collector.example:4318
35069
+ */
35070
+ otel_exporter_otlp_endpoint?: string;
35071
+ /**
35072
+ * Format: uri
35073
+ * @description The URL Marfa posts traces to, used as written, in place of the one under `otel_exporter_otlp_endpoint`, which must also be set. Marfa never returns it. A `PUT` that leaves it out keeps it; `PATCH` with `null` removes it.
35074
+ */
35075
+ otel_exporter_otlp_traces_endpoint?: string;
35076
+ /**
35077
+ * Format: uri
35078
+ * @description The URL Marfa posts log records to, used as written, in place of the one under `otel_exporter_otlp_endpoint`, which must also be set. Marfa never returns it. A `PUT` that leaves it out keeps it; `PATCH` with `null` removes it.
35079
+ */
35080
+ otel_exporter_otlp_logs_endpoint?: string;
35081
+ /**
35082
+ * Format: uri
35083
+ * @description The URL Marfa posts metrics to, used as written, in place of the one under `otel_exporter_otlp_endpoint`, which must also be set. Marfa never returns it. A `PUT` that leaves it out keeps it; `PATCH` with `null` removes it.
35084
+ */
35085
+ otel_exporter_otlp_metrics_endpoint?: string;
35086
+ /**
35087
+ * @description The headers Marfa sends with every OTLP export, as comma-separated `key=value` pairs with percent-encoded values and no whitespace around them. Marfa never returns it. A `PUT` that leaves it out keeps it; `PATCH` with `null` removes it.
35088
+ * @example authorization=Bearer%20token
35089
+ */
35090
+ otel_exporter_otlp_headers?: string;
35091
+ /** @description The headers Marfa sends with trace exports, as comma-separated `key=value` pairs with percent-encoded values. One here replaces the one of the same name in `otel_exporter_otlp_headers`. Marfa never returns it. A `PUT` that leaves it out keeps it; `PATCH` with `null` removes it. */
35092
+ otel_exporter_otlp_traces_headers?: string;
35093
+ /** @description The headers Marfa sends with log exports, as comma-separated `key=value` pairs with percent-encoded values. One here replaces the one of the same name in `otel_exporter_otlp_headers`. Marfa never returns it. A `PUT` that leaves it out keeps it; `PATCH` with `null` removes it. */
35094
+ otel_exporter_otlp_logs_headers?: string;
35095
+ /** @description The headers Marfa sends with metric exports, as comma-separated `key=value` pairs with percent-encoded values. One here replaces the one of the same name in `otel_exporter_otlp_headers`. Marfa never returns it. A `PUT` that leaves it out keeps it; `PATCH` with `null` removes it. */
35096
+ otel_exporter_otlp_metrics_headers?: string;
35097
+ /**
35098
+ * @description The share of traces Marfa exports, from 0 to 1. A trace that holds an error is exported whatever this says. Absent: `0.05`.
35099
+ * @default 0.05
35100
+ */
35101
+ otel_sample_ratio?: number;
35102
+ /** @description The service name on everything Marfa exports, in place of a `service.name` in `otel_resource_attributes`. Absent: `marfa-server`. An archive doesn't carry it. */
35103
+ otel_service_name?: string;
35104
+ /**
35105
+ * @description Attributes Marfa adds to everything it exports, as comma-separated `key=value` pairs with percent-encoded values. One named here replaces Marfa's own of the same name, such as `service.version`. An archive doesn't carry it.
35106
+ * @example deployment.environment=staging
35107
+ */
35108
+ otel_resource_attributes?: string;
34995
35109
  /** @description The secret settings `GET /config` says are set, accepted so you can send back what it returned. It sets nothing. */
34996
35110
  secrets_set?: string[];
34997
35111
  /**
@@ -35187,7 +35301,7 @@ interface operations {
35187
35301
  };
35188
35302
  /**
35189
35303
  * @description - `unauthorized`: the request has no credential, or its credential is not valid. For a key that has expired, `details.expired_at` says when it expired.
35190
- * - `insufficient_user_authentication`: your app's owner signed in more than five minutes ago. Send them through `GET /oauth/authorize` with `max_age`.
35304
+ * - `insufficient_user_authentication`: your app's owner signed in more than fifteen minutes ago. Send them through `GET /oauth/authorize` with `max_age`.
35191
35305
  */
35192
35306
  401: {
35193
35307
  headers: {
@@ -35370,7 +35484,7 @@ interface operations {
35370
35484
  */
35371
35485
  enrichment_ocr_enabled?: boolean | null;
35372
35486
  /**
35373
- * @description `true` if error alerts and exception reports are sent. Enabling requires `error_webhook_url`, or both `posthog_host` and `posthog_project_token`. Absent: the environment default applies. `null` removes it, so the server's default applies.
35487
+ * @description `true` if exception reports are sent. Enabling requires both `posthog_host` and `posthog_project_token`. Absent: the environment default applies. `null` removes it, so the server's default applies.
35374
35488
  * @default true
35375
35489
  */
35376
35490
  error_reporting_enabled?: boolean | null;
@@ -35433,27 +35547,27 @@ interface operations {
35433
35547
  confirm_sign_in_address_change?: boolean;
35434
35548
  /** @description `true` moves the sign-in address without first checking that it answers as this instance, for a host that answers only after the move. Only the private local command can send it. */
35435
35549
  skip_sign_in_address_check?: boolean;
35436
- /** @description The absolute path of the folder Marfa backs itself up to and keeps a second copy of each file in, outside the data directory and the blob folder. Changing it needs a sign-in from the last five minutes. Absent: no backup folder. `null` removes it, so the server's default applies. */
35550
+ /** @description The absolute path of the folder Marfa backs itself up to and keeps a second copy of each file in, outside the data directory and the blob folder. Changing it needs a sign-in from the last fifteen minutes. Absent: no backup folder. `null` removes it, so the server's default applies. */
35437
35551
  backup_path?: string | null;
35438
- /** @description The bucket of an S3-compatible object store that also keeps each file and the backups: 1 to 255 ASCII letters, digits, `.`, `:`, `-` and `_`, other than `.` and `..`. Changing it needs a sign-in from the last five minutes, and removes `object_store_secret_access_key` unless the same request sets it. Absent: no object store. `null` removes it, so the server's default applies. */
35552
+ /** @description The bucket of an S3-compatible object store that also keeps each file and the backups: 1 to 255 ASCII letters, digits, `.`, `:`, `-` and `_`, other than `.` and `..`. Changing it needs a sign-in from the last fifteen minutes, and removes `object_store_secret_access_key` unless the same request sets it. Absent: no object store. `null` removes it, so the server's default applies. */
35439
35553
  object_store_bucket?: string | null;
35440
35554
  /**
35441
- * @description The region of the object store: a name of 1 to 63 ASCII letters, digits, hyphens and underscores that can be part of a host name, such as `us-east-1`, `eu-west-2` or `auto`. Changing it needs a sign-in from the last five minutes. Absent: `us-east-1`. `null` removes it, so the server's default applies.
35555
+ * @description The region of the object store: a name of 1 to 63 ASCII letters, digits, hyphens and underscores that can be part of a host name, such as `us-east-1` or `auto`. Changing it needs a sign-in from the last fifteen minutes. Absent: `us-east-1`. `null` removes it, so the server's default applies.
35442
35556
  * @default us-east-1
35443
35557
  */
35444
35558
  object_store_region?: string | null;
35445
35559
  /**
35446
35560
  * Format: uri
35447
- * @description The endpoint of the object store, an `http` or `https` URL with no user name or password. Changing it needs a sign-in from the last five minutes, and removes `object_store_secret_access_key` unless the same request sets it. Absent: the store's provider chooses it. `null` removes it, so the server's default applies.
35561
+ * @description The endpoint of the object store, an `http` or `https` URL with no user name or password. Changing it needs a sign-in from the last fifteen minutes, and removes `object_store_secret_access_key` unless the same request sets it. Absent: the store's provider chooses it. `null` removes it, so the server's default applies.
35448
35562
  */
35449
35563
  object_store_endpoint?: string | null;
35450
35564
  /**
35451
- * @description `true` if the store at `object_store_endpoint` is addressed by path. `false` puts the bucket, as lowercase host labels, before the endpoint's host, a name without the bucket. Changing it needs a sign-in from the last five minutes. Absent: `true`. `null` removes it, so the server's default applies.
35565
+ * @description `true` if the store at `object_store_endpoint` is addressed by path. `false` puts the bucket, as lowercase host labels, before the endpoint's host, a name without the bucket. Changing it needs a sign-in from the last fifteen minutes. Absent: `true`. `null` removes it, so the server's default applies.
35452
35566
  * @default true
35453
35567
  */
35454
35568
  object_store_path_style?: boolean | null;
35455
35569
  /**
35456
- * @description The folder in the bucket Marfa keeps files and backups under, as `/`-joined segments. Changing it needs a sign-in from the last five minutes. Absent: `marfa`. `null` removes it, so the server's default applies.
35570
+ * @description The folder in the bucket Marfa keeps files and backups under, as `/`-joined segments. Changing it needs a sign-in from the last fifteen minutes. Absent: `marfa`. `null` removes it, so the server's default applies.
35457
35571
  * @default marfa
35458
35572
  */
35459
35573
  object_store_prefix?: string | null;
@@ -35463,7 +35577,7 @@ interface operations {
35463
35577
  */
35464
35578
  object_store_access_key_id?: string | null;
35465
35579
  /**
35466
- * @description `true` if Marfa may send webhooks, the heartbeat, error notices, exception reports and object store requests to loopback, private and other addresses that aren't public. Changing it needs a sign-in from the last five minutes. Absent: `false`. `null` removes it, so the server's default applies.
35580
+ * @description `true` if Marfa may send webhooks, the heartbeat, exception reports and object store requests to loopback, private and other addresses that aren't public. Changing it needs a sign-in from the last fifteen minutes. Absent: `false`. `null` removes it, so the server's default applies.
35467
35581
  * @default false
35468
35582
  */
35469
35583
  allow_private_addresses?: boolean | null;
@@ -35474,11 +35588,6 @@ interface operations {
35474
35588
  * @description The `http` or `https` URL Marfa requests on a schedule, so that something else can notice when the requests stop. Marfa never returns it. `null` or an empty string removes it.
35475
35589
  */
35476
35590
  heartbeat_url?: string | null;
35477
- /**
35478
- * Format: uri
35479
- * @description The `http` or `https` URL Marfa posts a notice to when a request fails with a 500 error. Marfa never returns it. `null` or an empty string removes it.
35480
- */
35481
- error_webhook_url?: string | null;
35482
35591
  /**
35483
35592
  * Format: uri
35484
35593
  * @description The PostHog host Marfa sends a report of each of its own faults to, for PostHog's error tracking. It must be an `https` URL, or an `http` URL on this machine, with no user name or password, and it needs `posthog_project_token` set too. Marfa never returns it. `null` or an empty string removes it.
@@ -35487,6 +35596,55 @@ interface operations {
35487
35596
  posthog_host?: string | null;
35488
35597
  /** @description The PostHog project token Marfa sends its fault reports with, with no whitespace around it. It needs `posthog_host` set too. Marfa never returns it. `null` or an empty string removes it. */
35489
35598
  posthog_project_token?: string | null;
35599
+ /**
35600
+ * @description `true` if Marfa sends telemetry about itself: traces, log records and metrics to the OTLP endpoints, and exception reports to `posthog_host`. `false` sends none of them and keeps every telemetry setting. Absent: `true`. `null` removes it, so the server's default applies.
35601
+ * @default true
35602
+ */
35603
+ telemetry_enabled?: boolean | null;
35604
+ /**
35605
+ * Format: uri
35606
+ * @description The base URL of the OTLP receiver Marfa exports traces to, under `v1/traces`, log records to, under `v1/logs`, and metrics to, under `v1/metrics`, keeping its query. Marfa never returns it. `null` or an empty string removes it.
35607
+ * @example https://collector.example:4318
35608
+ */
35609
+ otel_exporter_otlp_endpoint?: string | null;
35610
+ /**
35611
+ * Format: uri
35612
+ * @description The URL Marfa posts traces to, used as written, in place of the one under `otel_exporter_otlp_endpoint`, which must also be set. Marfa never returns it. `null` or an empty string removes it.
35613
+ */
35614
+ otel_exporter_otlp_traces_endpoint?: string | null;
35615
+ /**
35616
+ * Format: uri
35617
+ * @description The URL Marfa posts log records to, used as written, in place of the one under `otel_exporter_otlp_endpoint`, which must also be set. Marfa never returns it. `null` or an empty string removes it.
35618
+ */
35619
+ otel_exporter_otlp_logs_endpoint?: string | null;
35620
+ /**
35621
+ * Format: uri
35622
+ * @description The URL Marfa posts metrics to, used as written, in place of the one under `otel_exporter_otlp_endpoint`, which must also be set. Marfa never returns it. `null` or an empty string removes it.
35623
+ */
35624
+ otel_exporter_otlp_metrics_endpoint?: string | null;
35625
+ /**
35626
+ * @description The headers Marfa sends with every OTLP export, as comma-separated `key=value` pairs with percent-encoded values and no whitespace around them. Marfa never returns it. `null` or an empty string removes it.
35627
+ * @example authorization=Bearer%20token
35628
+ */
35629
+ otel_exporter_otlp_headers?: string | null;
35630
+ /** @description The headers Marfa sends with trace exports, as comma-separated `key=value` pairs with percent-encoded values. One here replaces the one of the same name in `otel_exporter_otlp_headers`. Marfa never returns it. `null` or an empty string removes it. */
35631
+ otel_exporter_otlp_traces_headers?: string | null;
35632
+ /** @description The headers Marfa sends with log exports, as comma-separated `key=value` pairs with percent-encoded values. One here replaces the one of the same name in `otel_exporter_otlp_headers`. Marfa never returns it. `null` or an empty string removes it. */
35633
+ otel_exporter_otlp_logs_headers?: string | null;
35634
+ /** @description The headers Marfa sends with metric exports, as comma-separated `key=value` pairs with percent-encoded values. One here replaces the one of the same name in `otel_exporter_otlp_headers`. Marfa never returns it. `null` or an empty string removes it. */
35635
+ otel_exporter_otlp_metrics_headers?: string | null;
35636
+ /**
35637
+ * @description The share of traces Marfa exports, from 0 to 1. A trace that holds an error is exported whatever this says. Absent: `0.05`. `null` removes it, so the server's default applies.
35638
+ * @default 0.05
35639
+ */
35640
+ otel_sample_ratio?: number | null;
35641
+ /** @description The service name on everything Marfa exports, in place of a `service.name` in `otel_resource_attributes`. Absent: `marfa-server`. An archive doesn't carry it. `null` removes it, so the server's default applies. */
35642
+ otel_service_name?: string | null;
35643
+ /**
35644
+ * @description Attributes Marfa adds to everything it exports, as comma-separated `key=value` pairs with percent-encoded values. One named here replaces Marfa's own of the same name, such as `service.version`. An archive doesn't carry it. `null` removes it, so the server's default applies.
35645
+ * @example deployment.environment=staging
35646
+ */
35647
+ otel_resource_attributes?: string | null;
35490
35648
  /** @description The secret settings `GET /config` says are set, accepted so you can send back what it returned. It sets nothing. */
35491
35649
  secrets_set?: string[];
35492
35650
  /**
@@ -35682,7 +35840,7 @@ interface operations {
35682
35840
  };
35683
35841
  /**
35684
35842
  * @description - `unauthorized`: the request has no credential, or its credential is not valid. For a key that has expired, `details.expired_at` says when it expired.
35685
- * - `insufficient_user_authentication`: your app's owner signed in more than five minutes ago. Send them through `GET /oauth/authorize` with `max_age`.
35843
+ * - `insufficient_user_authentication`: your app's owner signed in more than fifteen minutes ago. Send them through `GET /oauth/authorize` with `max_age`.
35686
35844
  */
35687
35845
  401: {
35688
35846
  headers: {
@@ -35869,7 +36027,7 @@ interface operations {
35869
36027
  * },
35870
36028
  * {
35871
36029
  * "name": "reporting_needs_a_receiver",
35872
- * "description": "Error reporting and the heartbeat can be turned from off to on only where a receiver is set: error_webhook_url, or posthog_host with posthog_project_token, and heartbeat_url.",
36030
+ * "description": "Error reporting and the heartbeat can be turned from off to on only where a receiver is set: posthog_host with posthog_project_token, and heartbeat_url.",
35873
36031
  * "keys": [
35874
36032
  * "error_reporting_enabled",
35875
36033
  * "heartbeat_enabled"
@@ -36211,6 +36369,7 @@ interface operations {
36211
36369
  /**
36212
36370
  * @example {
36213
36371
  * "status": "ok",
36372
+ * "claimed": true,
36214
36373
  * "components": {
36215
36374
  * "database": {
36216
36375
  * "status": "ok",
@@ -37933,7 +38092,7 @@ interface operations {
37933
38092
  };
37934
38093
  /**
37935
38094
  * @description - `unauthorized`: the request has no credential, or its credential is not valid. For a key that has expired, `details.expired_at` says when it expired.
37936
- * - `insufficient_user_authentication`: your app's owner signed in more than five minutes ago. Send them through `GET /oauth/authorize` with `max_age`.
38095
+ * - `insufficient_user_authentication`: your app's owner signed in more than fifteen minutes ago. Send them through `GET /oauth/authorize` with `max_age`.
37937
38096
  */
37938
38097
  401: {
37939
38098
  headers: {
@@ -38740,7 +38899,7 @@ interface operations {
38740
38899
  };
38741
38900
  /**
38742
38901
  * @description - `unauthorized`: the request has no credential, or its credential is not valid. For a key that has expired, `details.expired_at` says when it expired.
38743
- * - `insufficient_user_authentication`: your app's owner signed in more than five minutes ago. Send them through `GET /oauth/authorize` with `max_age`.
38902
+ * - `insufficient_user_authentication`: your app's owner signed in more than fifteen minutes ago. Send them through `GET /oauth/authorize` with `max_age`.
38744
38903
  */
38745
38904
  401: {
38746
38905
  headers: {