@withmarfa/client 0.0.88 → 0.0.90

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.cts CHANGED
@@ -861,7 +861,7 @@ interface paths {
861
861
  };
862
862
  /**
863
863
  * Get a type
864
- * @description Returns a type's schema, with the fields and policies it inherits from its ancestors. Every credential reads any type, whatever its type map reaches.
864
+ * @description Returns a type's schema, with the fields and policies it inherits from its ancestors, and the guidance of its ancestors. Every credential reads any type, whatever its type map reaches.
865
865
  */
866
866
  get: operations["getType"];
867
867
  /**
@@ -1161,13 +1161,13 @@ interface paths {
1161
1161
  };
1162
1162
  /**
1163
1163
  * List webhooks
1164
- * @description Returns webhooks and their makers, with secrets redacted. The local command sees every subscription; keys and apps see only their own.
1164
+ * @description Returns webhooks and their makers, with secrets redacted. A key or app sees only its own, unless it also holds `keys.manage`: then, as the local command does, it sees every key's and app's.
1165
1165
  */
1166
1166
  get: operations["listWebhooks"];
1167
1167
  put?: never;
1168
1168
  /**
1169
1169
  * Create a webhook
1170
- * @description Creates a webhook that sends the events you name to `url`. It belongs to your key, or your app's grant: Marfa deletes it when that is revoked, and sends nothing while it lacks `webhooks.manage` or the key has expired.
1170
+ * @description Creates a webhook that sends the events you name to `url`. It belongs to your key, or your app's grant: Marfa deletes it when the grant is revoked, and sends nothing while its key or app is revoked, lacks `webhooks.manage` or has expired.
1171
1171
  */
1172
1172
  post: operations["createWebhook"];
1173
1173
  delete?: never;
@@ -1185,21 +1185,21 @@ interface paths {
1185
1185
  };
1186
1186
  /**
1187
1187
  * Get a webhook
1188
- * @description Returns a webhook and its maker, with its secret redacted. The local command can read any subscription; keys and apps can read only their own.
1188
+ * @description Returns a webhook and its maker, with its secret redacted. A key or app reads only its own, unless it also holds `keys.manage`: then, as the local command does, it reads any.
1189
1189
  */
1190
1190
  get: operations["getWebhook"];
1191
1191
  put?: never;
1192
1192
  post?: never;
1193
1193
  /**
1194
1194
  * Delete a webhook
1195
- * @description Deletes a webhook and cancels its pending deliveries.
1195
+ * @description Deletes a webhook and cancels its pending deliveries. A key or app deletes only its own, unless it also holds `keys.manage`: then, as the local command does, it deletes any, including one whose key was revoked or has expired.
1196
1196
  */
1197
1197
  delete: operations["deleteWebhook"];
1198
1198
  options?: never;
1199
1199
  head?: never;
1200
1200
  /**
1201
1201
  * Update a webhook
1202
- * @description Updates a webhook and returns it. Fields you leave out keep their values. Marfa cancels a pending delivery if you change `url`, set `active` to `false`, or change `events` or `type_filter` to exclude it. To change the secret, create a new webhook.
1202
+ * @description Updates your webhook and returns it. Fields you leave out keep their values. Marfa cancels a pending delivery if you change `url`, set `active` to `false`, or change `events` or `type_filter` to exclude it. To change the secret, create a new webhook.
1203
1203
  */
1204
1204
  patch: operations["updateWebhook"];
1205
1205
  trace?: never;
@@ -1213,7 +1213,7 @@ interface paths {
1213
1213
  };
1214
1214
  /**
1215
1215
  * List webhook deliveries
1216
- * @description Returns delivery metadata without event payloads, newest first. The local command can inspect any subscription; keys and apps can inspect only their own.
1216
+ * @description Returns delivery metadata without event payloads, newest first. A key or app inspects only its own webhooks, unless it also holds `keys.manage`: then, as the local command does, it inspects any.
1217
1217
  */
1218
1218
  get: operations["listWebhookDeliveries"];
1219
1219
  put?: never;
@@ -1235,7 +1235,7 @@ interface paths {
1235
1235
  put?: never;
1236
1236
  /**
1237
1237
  * Redeliver a webhook delivery
1238
- * @description Redelivers a failed delivery, queuing it again at the current URL. The local command can retry any subscription; keys and apps can retry only their own.
1238
+ * @description Redelivers a failed delivery, queuing it again at the current URL. A key or app retries only webhooks it registered; the local command can retry any.
1239
1239
  */
1240
1240
  post: operations["redeliverWebhookDelivery"];
1241
1241
  delete?: never;
@@ -1795,7 +1795,7 @@ interface paths {
1795
1795
  head?: never;
1796
1796
  /**
1797
1797
  * Update an API key
1798
- * @description Updates a key and returns it. Each supplied field replaces its value; omitted fields stay unchanged. Requires `keys.mint`, `keys.manage`, or local authority.
1798
+ * @description Updates a key and returns it, keeping its secret. Each supplied field replaces its value; omitted fields stay unchanged. Requires `keys.mint`, `keys.manage`, or local authority.
1799
1799
  */
1800
1800
  patch: operations["updateKey"];
1801
1801
  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 fifteen minutes.
2446
+ * @description Restores an archive atomically and returns write and skip counts. Marfa blocks other writes during the restore. Requires `backups.manage`, `config.manage` to add settings, and `schema.write` to register a type with guidance.
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 fifteen minutes.
2510
+ * @description Restores a backup from the backup folder or object store and returns write and skip counts. Requires `backups.manage`, `config.manage` to add settings, and `schema.write` to register a type with guidance.
2511
2511
  */
2512
2512
  post: operations["restoreBackup"];
2513
2513
  delete?: never;
@@ -4561,7 +4561,7 @@ interface components {
4561
4561
  type: "string" | "number" | "integer" | "boolean" | "url" | "email" | "datetime" | "date" | "enum" | "array" | "object" | "thumbnail" | "status";
4562
4562
  /** @description A name for people to read, up to 100 characters. Leave it out and a type read answers the nearest one a type above names, else one made from the field's name, such as `Due At` for `due_at`. The type list answers only the declared label. */
4563
4563
  label?: string;
4564
- /** @description What the field holds. */
4564
+ /** @description What the field holds. Registration, replacement, and normalization accept up to 300 Unicode code points. */
4565
4565
  description?: string;
4566
4566
  /** @description `true` if an item of the type must have a value for it. */
4567
4567
  required?: boolean;
@@ -4593,7 +4593,7 @@ interface components {
4593
4593
  } & {
4594
4594
  [key: string]: unknown;
4595
4595
  };
4596
- /** @description One word a `status` field takes, with its group. */
4596
+ /** @description One word a `status` field takes, with its group and, optionally, what it means. */
4597
4597
  StatusValue: {
4598
4598
  /** @description The word, such as `in_review`: a lowercase letter, then up to 63 lowercase letters, digits and underscores. */
4599
4599
  value: string;
@@ -4602,6 +4602,8 @@ interface components {
4602
4602
  * @enum {string}
4603
4603
  */
4604
4604
  group: "not_started" | "in_progress" | "completed" | "canceled";
4605
+ /** @description What the word means. Registration, replacement, and normalization accept up to 120 Unicode code points. */
4606
+ description?: string;
4605
4607
  };
4606
4608
  /** @description One member of the entries of an `array` field. */
4607
4609
  EntryMember: {
@@ -4612,7 +4614,7 @@ interface components {
4612
4614
  type: "string" | "number" | "integer" | "boolean" | "url" | "email" | "datetime" | "date" | "enum" | "array" | "object" | "thumbnail" | "status";
4613
4615
  /** @description A name for people to read, up to 100 characters. Leave it out and a type read answers the nearest one a type above names, else one made from the member's name, such as `Due At` for `due_at`. The type list answers only the declared label. */
4614
4616
  label?: string;
4615
- /** @description What the member holds. */
4617
+ /** @description What the member holds. Registration, replacement, and normalization accept up to 300 Unicode code points. */
4616
4618
  description?: string;
4617
4619
  /** @description `true` if every entry must have the member. */
4618
4620
  required?: boolean;
@@ -4656,12 +4658,12 @@ interface components {
4656
4658
  label?: string;
4657
4659
  /** @description The type's plural name for people to read, such as `People`. Never inherited. Left out of the list of types where the type declares none. */
4658
4660
  plural?: string;
4659
- /** @description What the type is for. */
4661
+ /** @description What the type is for. Registration, replacement, and normalization accept up to 200 Unicode code points. */
4660
4662
  description?: string;
4663
+ /** @description Markdown that tells an agent or an app builder how to use the type. Present only where the type carries some. `GET /types/{id}` also lists the guidance of its ancestors. */
4664
+ guidance?: string;
4661
4665
  /** @description The identifier of the type this one inherits from. */
4662
4666
  parent?: string;
4663
- /** @description The types this one is a structural superset of. */
4664
- compatible_with?: string[];
4665
4667
  /** @description The structural roles the type plays, including those it inherits. */
4666
4668
  roles?: components["schemas"]["TypeRole"][];
4667
4669
  /** @description The type's own fields, by name. `GET /types/{id}` adds the fields it inherits. */
@@ -4686,6 +4688,18 @@ interface components {
4686
4688
  /** @description The type's plural name for people to read, such as `People`: the one the type declares, else one made from its label. Never inherited. */
4687
4689
  plural: string;
4688
4690
  provenance: components["schemas"]["TypeProvenance"] & unknown;
4691
+ /** @description The guidance of the types above this one, nearest first. Present only where one of them carries some. The type's own guidance is `guidance`. */
4692
+ ancestor_guidance?: components["schemas"]["TypeGuidance"][];
4693
+ };
4694
+ /** @description One type's guidance, as read for a type below it. */
4695
+ TypeGuidance: {
4696
+ /**
4697
+ * @description The identifier of the type that carries the guidance.
4698
+ * @example user.order
4699
+ */
4700
+ type: string;
4701
+ /** @description That type's own guidance. */
4702
+ guidance: string;
4689
4703
  };
4690
4704
  /** @description An error response. */
4691
4705
  TypeNotFoundRefusal: {
@@ -4746,23 +4760,6 @@ interface components {
4746
4760
  };
4747
4761
  };
4748
4762
  };
4749
- /** @description An error response. */
4750
- CompatibleWithViolationRefusal: {
4751
- /** @description What went wrong. */
4752
- error: {
4753
- /**
4754
- * @description A machine-readable code for the error. Use it in your logic.
4755
- * @enum {string}
4756
- */
4757
- code: "compatible_with_violation";
4758
- /** @description A description of the error for a person to read. It can change, so don't match on it. */
4759
- message: string;
4760
- /** @description More about the error, such as the field it concerns. Each code defines its own details. */
4761
- details?: {
4762
- [key: string]: unknown;
4763
- };
4764
- };
4765
- };
4766
4763
  /** @description A declared item type. */
4767
4764
  TypeDefinitionInput: {
4768
4765
  /** @description The type's own fields, by name. */
@@ -4781,14 +4778,14 @@ interface components {
4781
4778
  label?: string;
4782
4779
  /** @description The label's plural, up to 100 characters, such as `People`. Leave it out and Marfa adds `s`, `es` or `ies` to the label by the regular English rule. */
4783
4780
  plural?: string;
4784
- /** @description What the type is for. */
4781
+ /** @description A sentence saying what the type is for, up to 200 Unicode code points. */
4785
4782
  description?: string;
4783
+ /** @description Markdown on how to use the type, up to 1,000 Unicode code points. For registration, non-empty guidance needs `schema.write`. Omit it or send an empty string for no guidance. An `app.*` type takes no guidance. */
4784
+ guidance?: string;
4786
4785
  /** @description The structural roles the type plays: `container`. An edge type's `role:<name>` constraint matches types by role. */
4787
4786
  roles?: string[];
4788
4787
  /** @description The names of the fields an item of the type must have. It means the same as `required: true` on each of them. */
4789
4788
  required?: string[];
4790
- /** @description The types this one is a structural superset of. Marfa checks the claim when you save the type. A bare string names one type. */
4791
- compatible_with?: string | string[];
4792
4789
  display_hints?: components["schemas"]["DisplayHints"] & unknown;
4793
4790
  /** @description The name of a string field, declared or inherited, that holds each item's own ID at the vendor that writes the type. No two items of the type, in any state, hold the same value. A subtype names its own link. The name has no `"` or `\`. */
4794
4791
  link_field?: string;
@@ -4870,14 +4867,14 @@ interface components {
4870
4867
  label?: string;
4871
4868
  /** @description The label's plural, up to 100 characters, such as `People`. Leave it out and Marfa adds `s`, `es` or `ies` to the label by the regular English rule. */
4872
4869
  plural?: string;
4873
- /** @description What the type is for. */
4870
+ /** @description A sentence saying what the type is for, up to 200 Unicode code points. */
4874
4871
  description?: string;
4872
+ /** @description Markdown on how to use the type, up to 1,000 Unicode code points. Omit it or send an empty string to clear it. Adding, changing, or removing it needs `schema.write`. An `app.*` type takes no guidance. */
4873
+ guidance?: string;
4875
4874
  /** @description The structural roles the type plays: `container`. An edge type's `role:<name>` constraint matches types by role. */
4876
4875
  roles?: string[];
4877
4876
  /** @description The names of the fields an item of the type must have. It means the same as `required: true` on each of them. */
4878
4877
  required?: string[];
4879
- /** @description The types this one is a structural superset of. Marfa checks the claim when you save the type. A bare string names one type. */
4880
- compatible_with?: string | string[];
4881
4878
  display_hints?: components["schemas"]["DisplayHints"] & unknown;
4882
4879
  /** @description The name of a string field, declared or inherited, that holds each item's own ID at the vendor that writes the type. No two items of the type, in any state, hold the same value. A subtype names its own link. The name has no `"` or `\`. */
4883
4880
  link_field?: string;
@@ -4890,6 +4887,8 @@ interface components {
4890
4887
  * @example acme.deal
4891
4888
  */
4892
4889
  id?: string;
4890
+ /** @description The guidance of the types above, accepted when replacing a read response. This field changes nothing. */
4891
+ ancestor_guidance?: components["schemas"]["TypeGuidance"][];
4893
4892
  };
4894
4893
  /** @description An error response. */
4895
4894
  InvalidSchemaOrValidationErrorRefusal: {
@@ -18823,7 +18822,7 @@ interface operations {
18823
18822
  /**
18824
18823
  * @description - `missing_required_field`: `fields` is missing.
18825
18824
  * - `validation_error`: `id` is malformed, or `parent` isn't registered or makes too deep a chain.
18826
- * - `invalid_schema`: the schema is invalid or has a key it doesn't define (`details.errors` names each path).
18825
+ * - `invalid_schema`: the schema is invalid, or has an unknown key or overlong text (`details.errors` names each path).
18827
18826
  * - `property_shadows_field`: a field is named like one every item has.
18828
18827
  * - `inheritance_violation`: the type reshapes an inherited field.
18829
18828
  */
@@ -18851,8 +18850,8 @@ interface operations {
18851
18850
  };
18852
18851
  };
18853
18852
  /**
18854
- * @description - `forbidden`: you don't have `metadata.types:write`, or the identifier is under `core.*`, `system.*` or `marfa.*`, which no credential can register.
18855
- * - `type_not_permitted`: your type map lacks write on the identifier or a non-platform `parent` or `compatible_with` target (`details.grant` names it).
18853
+ * @description - `forbidden`: you don't have `metadata.types:write`, the type has `guidance` and you lack `schema.write`, or the identifier is under `core.*`, `system.*` or `marfa.*`, which no credential can register.
18854
+ * - `type_not_permitted`: your type map lacks write on the identifier or a non-platform `parent` (`details.grant` names it).
18856
18855
  */
18857
18856
  403: {
18858
18857
  headers: {
@@ -18916,18 +18915,6 @@ interface operations {
18916
18915
  "application/json": components["schemas"]["RequestTooLargeRefusal"];
18917
18916
  };
18918
18917
  };
18919
- /** @description `compatible_with_violation`: `compatible_with` names a type this instance doesn't hold, or one the type doesn't satisfy. */
18920
- 422: {
18921
- headers: {
18922
- "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
18923
- "X-Request-ID": components["headers"]["X-Request-ID"];
18924
- "X-Error-Code": components["headers"]["X-Error-Code"];
18925
- [name: string]: unknown;
18926
- };
18927
- content: {
18928
- "application/json": components["schemas"]["CompatibleWithViolationRefusal"];
18929
- };
18930
- };
18931
18918
  /** @description `rate_limited`: you sent too many requests. Wait for the number of seconds in `Retry-After`, then try again. */
18932
18919
  429: {
18933
18920
  headers: {
@@ -19230,8 +19217,8 @@ interface operations {
19230
19217
  };
19231
19218
  /**
19232
19219
  * @description - `missing_required_field`: `fields` is missing.
19233
- * - `validation_error`: `id` is malformed, or `parent` isn't registered or makes a bad chain.
19234
- * - `invalid_schema`: the schema is invalid or has a key it doesn't define (`details.errors` names each path).
19220
+ * - `validation_error`: `id` is malformed, or `parent` isn't registered or chains badly.
19221
+ * - `invalid_schema`: the schema is invalid, or has an unknown key or overlong text (`details.errors` names each path).
19235
19222
  * - `property_shadows_field`: a field has the name of one every item has.
19236
19223
  * - `inheritance_violation`: a field's shape differs in a parent or subtype.
19237
19224
  */
@@ -19261,7 +19248,7 @@ interface operations {
19261
19248
  /**
19262
19249
  * @description - `forbidden`: you lack `schema.write` and `metadata.types:write`, or `details.changes` names changes needing `schema.write`.
19263
19250
  * - `core_type_immutable`: Marfa ships this type.
19264
- * - `type_not_permitted`: your type map lacks write on the type or a new non-platform `parent` or `compatible_with` target (`details.grant` names it).
19251
+ * - `type_not_permitted`: your type map lacks write on the type or a new non-platform `parent` (`details.grant` names it).
19265
19252
  */
19266
19253
  403: {
19267
19254
  headers: {
@@ -19337,18 +19324,6 @@ interface operations {
19337
19324
  "application/json": components["schemas"]["RequestTooLargeRefusal"];
19338
19325
  };
19339
19326
  };
19340
- /** @description `compatible_with_violation`: `compatible_with` names a type this instance doesn't hold, or one the type doesn't satisfy, or the change breaks another type's claim (`details.dependent_type_ids`). */
19341
- 422: {
19342
- headers: {
19343
- "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
19344
- "X-Request-ID": components["headers"]["X-Request-ID"];
19345
- "X-Error-Code": components["headers"]["X-Error-Code"];
19346
- [name: string]: unknown;
19347
- };
19348
- content: {
19349
- "application/json": components["schemas"]["CompatibleWithViolationRefusal"];
19350
- };
19351
- };
19352
19327
  /** @description `rate_limited`: you sent too many requests. Wait for the number of seconds in `Retry-After`, then try again. */
19353
19328
  429: {
19354
19329
  headers: {
@@ -19404,7 +19379,7 @@ interface operations {
19404
19379
  deleteType: {
19405
19380
  parameters: {
19406
19381
  query?: {
19407
- /** @description Delete the type even if items of it exist, in any state, or a folder, view or webhook names it. It doesn't cover subtypes or compatibility dependents. */
19382
+ /** @description Delete the type even if items of it exist, in any state, or a folder, view or webhook names it. It doesn't cover subtypes. */
19408
19383
  force?: boolean;
19409
19384
  };
19410
19385
  header?: {
@@ -19526,18 +19501,6 @@ interface operations {
19526
19501
  "application/json": components["schemas"]["RequestTooLargeRefusal"];
19527
19502
  };
19528
19503
  };
19529
- /** @description `compatible_with_violation`: other types name this type in `compatible_with`. `details.dependent_type_ids` lists them. Remove their claims before deleting the target; `force=true` does not bypass this check. */
19530
- 422: {
19531
- headers: {
19532
- "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
19533
- "X-Request-ID": components["headers"]["X-Request-ID"];
19534
- "X-Error-Code": components["headers"]["X-Error-Code"];
19535
- [name: string]: unknown;
19536
- };
19537
- content: {
19538
- "application/json": components["schemas"]["CompatibleWithViolationRefusal"];
19539
- };
19540
- };
19541
19504
  /** @description `rate_limited`: you sent too many requests. Wait for the number of seconds in `Retry-After`, then try again. */
19542
19505
  429: {
19543
19506
  headers: {
@@ -19950,7 +19913,7 @@ interface operations {
19950
19913
  /**
19951
19914
  * @description - `missing_required_field`: `fields` is missing.
19952
19915
  * - `validation_error`: `id` is malformed, or `parent` isn't registered or makes too deep a chain.
19953
- * - `invalid_schema`: the schema is invalid or has a key it doesn't define (`details.errors` names each path).
19916
+ * - `invalid_schema`: the schema is invalid, or has an unknown key or overlong text (`details.errors` names each path).
19954
19917
  * - `property_shadows_field`: a field is named like one every item has.
19955
19918
  * - `inheritance_violation`: the type reshapes an inherited field.
19956
19919
  */
@@ -20025,18 +19988,6 @@ interface operations {
20025
19988
  "application/json": components["schemas"]["RequestTooLargeRefusal"];
20026
19989
  };
20027
19990
  };
20028
- /** @description `compatible_with_violation`: `compatible_with` names a type this instance doesn't hold, or one the type doesn't satisfy. */
20029
- 422: {
20030
- headers: {
20031
- "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
20032
- "X-Request-ID": components["headers"]["X-Request-ID"];
20033
- "X-Error-Code": components["headers"]["X-Error-Code"];
20034
- [name: string]: unknown;
20035
- };
20036
- content: {
20037
- "application/json": components["schemas"]["CompatibleWithViolationRefusal"];
20038
- };
20039
- };
20040
19991
  /** @description `rate_limited`: you sent too many requests. Wait for the number of seconds in `Retry-After`, then try again. */
20041
19992
  429: {
20042
19993
  headers: {
@@ -22926,7 +22877,7 @@ interface operations {
22926
22877
  "application/json": components["schemas"]["ForbiddenRefusal"];
22927
22878
  };
22928
22879
  };
22929
- /** @description - `webhook_not_found`: no webhook of yours has this ID. */
22880
+ /** @description - `webhook_not_found`: no webhook you can reach has this ID. */
22930
22881
  404: {
22931
22882
  headers: {
22932
22883
  "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
@@ -23069,7 +23020,7 @@ interface operations {
23069
23020
  "application/json": components["schemas"]["ForbiddenRefusal"];
23070
23021
  };
23071
23022
  };
23072
- /** @description - `webhook_not_found`: no webhook of yours has this ID. */
23023
+ /** @description - `webhook_not_found`: no webhook you can reach has this ID. */
23073
23024
  404: {
23074
23025
  headers: {
23075
23026
  "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
@@ -23247,7 +23198,7 @@ interface operations {
23247
23198
  "application/json": components["schemas"]["UnauthorizedRefusal"];
23248
23199
  };
23249
23200
  };
23250
- /** @description - `forbidden`: you don't have `webhooks.manage`. */
23201
+ /** @description - `forbidden`: you don't have `webhooks.manage`, or you hold `keys.manage` and another key or app registered the webhook. */
23251
23202
  403: {
23252
23203
  headers: {
23253
23204
  "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
@@ -23259,7 +23210,7 @@ interface operations {
23259
23210
  "application/json": components["schemas"]["ForbiddenRefusal"];
23260
23211
  };
23261
23212
  };
23262
- /** @description - `webhook_not_found`: no webhook of yours has this ID. */
23213
+ /** @description - `webhook_not_found`: no webhook you can reach has this ID. */
23263
23214
  404: {
23264
23215
  headers: {
23265
23216
  "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
@@ -23453,7 +23404,7 @@ interface operations {
23453
23404
  "application/json": components["schemas"]["ForbiddenRefusal"];
23454
23405
  };
23455
23406
  };
23456
- /** @description - `webhook_not_found`: no webhook of yours has this ID. */
23407
+ /** @description - `webhook_not_found`: no webhook you can reach has this ID. */
23457
23408
  404: {
23458
23409
  headers: {
23459
23410
  "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
@@ -23594,7 +23545,7 @@ interface operations {
23594
23545
  "application/json": components["schemas"]["UnauthorizedRefusal"];
23595
23546
  };
23596
23547
  };
23597
- /** @description - `forbidden`: you don't have `webhooks.manage`. */
23548
+ /** @description - `forbidden`: you don't have `webhooks.manage`, or you hold `keys.manage` and another key or app registered the webhook. */
23598
23549
  403: {
23599
23550
  headers: {
23600
23551
  "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
@@ -23606,7 +23557,7 @@ interface operations {
23606
23557
  "application/json": components["schemas"]["ForbiddenRefusal"];
23607
23558
  };
23608
23559
  };
23609
- /** @description - `webhook_not_found`: no webhook of yours has this ID, or it has no delivery with this `delivery_id`. */
23560
+ /** @description - `webhook_not_found`: no webhook you can reach has this ID, or it has no delivery with this `delivery_id`. */
23610
23561
  404: {
23611
23562
  headers: {
23612
23563
  "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
@@ -30828,7 +30779,7 @@ interface operations {
30828
30779
  /** @description Replaces the key's enforcement levers whole. `null` clears them. */
30829
30780
  enforcement_override?: components["schemas"]["EnforcementOverride"] | null;
30830
30781
  /**
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.
30782
+ * @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 with `narrow_only`, or for a key an app made without `keys.manage`. 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.
30832
30783
  * @example 2027-01-01T00:00:00.000Z
30833
30784
  */
30834
30785
  expires_at?: string | null;
@@ -30900,7 +30851,7 @@ interface operations {
30900
30851
  "application/json": components["schemas"]["UnauthorizedRefusal"];
30901
30852
  };
30902
30853
  };
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`. */
30854
+ /** @description - `forbidden`: you hold neither `keys.mint` nor `keys.manage`; the update widens reach without `keys.mint`, beyond your access, or for an app's key; its expiry exceeds yours when widening or lengthening; it lengthens an app's key without `keys.manage`; `narrow_only` refuses wider reach, longer life or a changed override; or changing `enforcement_override` needs `config.manage`. */
30904
30855
  403: {
30905
30856
  headers: {
30906
30857
  "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
@@ -38107,8 +38058,8 @@ interface operations {
38107
38058
  };
38108
38059
  };
38109
38060
  /**
38110
- * @description - `forbidden`: you don't hold `backups.manage`, or the archive would store settings and you don't hold `config.manage`. `details.required_scope` names the missing permission. For `config.manage`, `details.settings` lists the settings.
38111
- * - `app_sign_in_required`: you are an API key. A person restores from an app they signed in to, or with the private local command.
38061
+ * @description - `forbidden`: `details.required_scope` names the missing permission. `details.settings` lists settings for `config.manage`, and `details.changes` lists `guidance` for `schema.write`.
38062
+ * - `app_sign_in_required`: you are using an API key. Use an app you signed in to or the private local command.
38112
38063
  */
38113
38064
  403: {
38114
38065
  headers: {
@@ -38172,18 +38123,6 @@ interface operations {
38172
38123
  "application/json": components["schemas"]["RequestTooLargeRefusal"];
38173
38124
  };
38174
38125
  };
38175
- /** @description `compatible_with_violation`: an archived type's `compatible_with` names a type neither the archive nor this instance holds, or one the type doesn't satisfy. */
38176
- 422: {
38177
- headers: {
38178
- "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
38179
- "X-Request-ID": components["headers"]["X-Request-ID"];
38180
- "X-Error-Code": components["headers"]["X-Error-Code"];
38181
- [name: string]: unknown;
38182
- };
38183
- content: {
38184
- "application/json": components["schemas"]["CompatibleWithViolationRefusal"];
38185
- };
38186
- };
38187
38126
  /** @description `rate_limited`: you sent too many requests. Wait for the number of seconds in `Retry-After`, then try again. */
38188
38127
  429: {
38189
38128
  headers: {
@@ -38914,8 +38853,8 @@ interface operations {
38914
38853
  };
38915
38854
  };
38916
38855
  /**
38917
- * @description - `forbidden`: you don't hold `backups.manage`, or the archive would store settings and you don't hold `config.manage`. `details.required_scope` names the missing permission. For `config.manage`, `details.settings` lists the settings.
38918
- * - `app_sign_in_required`: you are an API key. A person restores from an app they signed in to, or with the private local command.
38856
+ * @description - `forbidden`: `details.required_scope` names the missing permission. `details.settings` lists settings for `config.manage`, and `details.changes` lists `guidance` for `schema.write`.
38857
+ * - `app_sign_in_required`: you are using an API key. Use an app you signed in to or the private local command.
38919
38858
  */
38920
38859
  403: {
38921
38860
  headers: {
@@ -38981,18 +38920,6 @@ interface operations {
38981
38920
  "application/json": components["schemas"]["RequestTooLargeRefusal"];
38982
38921
  };
38983
38922
  };
38984
- /** @description `compatible_with_violation`: an archived type's `compatible_with` names a type neither the archive nor this instance holds, or one the type doesn't satisfy. */
38985
- 422: {
38986
- headers: {
38987
- "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
38988
- "X-Request-ID": components["headers"]["X-Request-ID"];
38989
- "X-Error-Code": components["headers"]["X-Error-Code"];
38990
- [name: string]: unknown;
38991
- };
38992
- content: {
38993
- "application/json": components["schemas"]["CompatibleWithViolationRefusal"];
38994
- };
38995
- };
38996
38923
  /** @description `rate_limited`: you sent too many requests. Wait for the number of seconds in `Retry-After`, then try again. */
38997
38924
  429: {
38998
38925
  headers: {
package/dist/index.d.ts CHANGED
@@ -861,7 +861,7 @@ interface paths {
861
861
  };
862
862
  /**
863
863
  * Get a type
864
- * @description Returns a type's schema, with the fields and policies it inherits from its ancestors. Every credential reads any type, whatever its type map reaches.
864
+ * @description Returns a type's schema, with the fields and policies it inherits from its ancestors, and the guidance of its ancestors. Every credential reads any type, whatever its type map reaches.
865
865
  */
866
866
  get: operations["getType"];
867
867
  /**
@@ -1161,13 +1161,13 @@ interface paths {
1161
1161
  };
1162
1162
  /**
1163
1163
  * List webhooks
1164
- * @description Returns webhooks and their makers, with secrets redacted. The local command sees every subscription; keys and apps see only their own.
1164
+ * @description Returns webhooks and their makers, with secrets redacted. A key or app sees only its own, unless it also holds `keys.manage`: then, as the local command does, it sees every key's and app's.
1165
1165
  */
1166
1166
  get: operations["listWebhooks"];
1167
1167
  put?: never;
1168
1168
  /**
1169
1169
  * Create a webhook
1170
- * @description Creates a webhook that sends the events you name to `url`. It belongs to your key, or your app's grant: Marfa deletes it when that is revoked, and sends nothing while it lacks `webhooks.manage` or the key has expired.
1170
+ * @description Creates a webhook that sends the events you name to `url`. It belongs to your key, or your app's grant: Marfa deletes it when the grant is revoked, and sends nothing while its key or app is revoked, lacks `webhooks.manage` or has expired.
1171
1171
  */
1172
1172
  post: operations["createWebhook"];
1173
1173
  delete?: never;
@@ -1185,21 +1185,21 @@ interface paths {
1185
1185
  };
1186
1186
  /**
1187
1187
  * Get a webhook
1188
- * @description Returns a webhook and its maker, with its secret redacted. The local command can read any subscription; keys and apps can read only their own.
1188
+ * @description Returns a webhook and its maker, with its secret redacted. A key or app reads only its own, unless it also holds `keys.manage`: then, as the local command does, it reads any.
1189
1189
  */
1190
1190
  get: operations["getWebhook"];
1191
1191
  put?: never;
1192
1192
  post?: never;
1193
1193
  /**
1194
1194
  * Delete a webhook
1195
- * @description Deletes a webhook and cancels its pending deliveries.
1195
+ * @description Deletes a webhook and cancels its pending deliveries. A key or app deletes only its own, unless it also holds `keys.manage`: then, as the local command does, it deletes any, including one whose key was revoked or has expired.
1196
1196
  */
1197
1197
  delete: operations["deleteWebhook"];
1198
1198
  options?: never;
1199
1199
  head?: never;
1200
1200
  /**
1201
1201
  * Update a webhook
1202
- * @description Updates a webhook and returns it. Fields you leave out keep their values. Marfa cancels a pending delivery if you change `url`, set `active` to `false`, or change `events` or `type_filter` to exclude it. To change the secret, create a new webhook.
1202
+ * @description Updates your webhook and returns it. Fields you leave out keep their values. Marfa cancels a pending delivery if you change `url`, set `active` to `false`, or change `events` or `type_filter` to exclude it. To change the secret, create a new webhook.
1203
1203
  */
1204
1204
  patch: operations["updateWebhook"];
1205
1205
  trace?: never;
@@ -1213,7 +1213,7 @@ interface paths {
1213
1213
  };
1214
1214
  /**
1215
1215
  * List webhook deliveries
1216
- * @description Returns delivery metadata without event payloads, newest first. The local command can inspect any subscription; keys and apps can inspect only their own.
1216
+ * @description Returns delivery metadata without event payloads, newest first. A key or app inspects only its own webhooks, unless it also holds `keys.manage`: then, as the local command does, it inspects any.
1217
1217
  */
1218
1218
  get: operations["listWebhookDeliveries"];
1219
1219
  put?: never;
@@ -1235,7 +1235,7 @@ interface paths {
1235
1235
  put?: never;
1236
1236
  /**
1237
1237
  * Redeliver a webhook delivery
1238
- * @description Redelivers a failed delivery, queuing it again at the current URL. The local command can retry any subscription; keys and apps can retry only their own.
1238
+ * @description Redelivers a failed delivery, queuing it again at the current URL. A key or app retries only webhooks it registered; the local command can retry any.
1239
1239
  */
1240
1240
  post: operations["redeliverWebhookDelivery"];
1241
1241
  delete?: never;
@@ -1795,7 +1795,7 @@ interface paths {
1795
1795
  head?: never;
1796
1796
  /**
1797
1797
  * Update an API key
1798
- * @description Updates a key and returns it. Each supplied field replaces its value; omitted fields stay unchanged. Requires `keys.mint`, `keys.manage`, or local authority.
1798
+ * @description Updates a key and returns it, keeping its secret. Each supplied field replaces its value; omitted fields stay unchanged. Requires `keys.mint`, `keys.manage`, or local authority.
1799
1799
  */
1800
1800
  patch: operations["updateKey"];
1801
1801
  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 fifteen minutes.
2446
+ * @description Restores an archive atomically and returns write and skip counts. Marfa blocks other writes during the restore. Requires `backups.manage`, `config.manage` to add settings, and `schema.write` to register a type with guidance.
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 fifteen minutes.
2510
+ * @description Restores a backup from the backup folder or object store and returns write and skip counts. Requires `backups.manage`, `config.manage` to add settings, and `schema.write` to register a type with guidance.
2511
2511
  */
2512
2512
  post: operations["restoreBackup"];
2513
2513
  delete?: never;
@@ -4561,7 +4561,7 @@ interface components {
4561
4561
  type: "string" | "number" | "integer" | "boolean" | "url" | "email" | "datetime" | "date" | "enum" | "array" | "object" | "thumbnail" | "status";
4562
4562
  /** @description A name for people to read, up to 100 characters. Leave it out and a type read answers the nearest one a type above names, else one made from the field's name, such as `Due At` for `due_at`. The type list answers only the declared label. */
4563
4563
  label?: string;
4564
- /** @description What the field holds. */
4564
+ /** @description What the field holds. Registration, replacement, and normalization accept up to 300 Unicode code points. */
4565
4565
  description?: string;
4566
4566
  /** @description `true` if an item of the type must have a value for it. */
4567
4567
  required?: boolean;
@@ -4593,7 +4593,7 @@ interface components {
4593
4593
  } & {
4594
4594
  [key: string]: unknown;
4595
4595
  };
4596
- /** @description One word a `status` field takes, with its group. */
4596
+ /** @description One word a `status` field takes, with its group and, optionally, what it means. */
4597
4597
  StatusValue: {
4598
4598
  /** @description The word, such as `in_review`: a lowercase letter, then up to 63 lowercase letters, digits and underscores. */
4599
4599
  value: string;
@@ -4602,6 +4602,8 @@ interface components {
4602
4602
  * @enum {string}
4603
4603
  */
4604
4604
  group: "not_started" | "in_progress" | "completed" | "canceled";
4605
+ /** @description What the word means. Registration, replacement, and normalization accept up to 120 Unicode code points. */
4606
+ description?: string;
4605
4607
  };
4606
4608
  /** @description One member of the entries of an `array` field. */
4607
4609
  EntryMember: {
@@ -4612,7 +4614,7 @@ interface components {
4612
4614
  type: "string" | "number" | "integer" | "boolean" | "url" | "email" | "datetime" | "date" | "enum" | "array" | "object" | "thumbnail" | "status";
4613
4615
  /** @description A name for people to read, up to 100 characters. Leave it out and a type read answers the nearest one a type above names, else one made from the member's name, such as `Due At` for `due_at`. The type list answers only the declared label. */
4614
4616
  label?: string;
4615
- /** @description What the member holds. */
4617
+ /** @description What the member holds. Registration, replacement, and normalization accept up to 300 Unicode code points. */
4616
4618
  description?: string;
4617
4619
  /** @description `true` if every entry must have the member. */
4618
4620
  required?: boolean;
@@ -4656,12 +4658,12 @@ interface components {
4656
4658
  label?: string;
4657
4659
  /** @description The type's plural name for people to read, such as `People`. Never inherited. Left out of the list of types where the type declares none. */
4658
4660
  plural?: string;
4659
- /** @description What the type is for. */
4661
+ /** @description What the type is for. Registration, replacement, and normalization accept up to 200 Unicode code points. */
4660
4662
  description?: string;
4663
+ /** @description Markdown that tells an agent or an app builder how to use the type. Present only where the type carries some. `GET /types/{id}` also lists the guidance of its ancestors. */
4664
+ guidance?: string;
4661
4665
  /** @description The identifier of the type this one inherits from. */
4662
4666
  parent?: string;
4663
- /** @description The types this one is a structural superset of. */
4664
- compatible_with?: string[];
4665
4667
  /** @description The structural roles the type plays, including those it inherits. */
4666
4668
  roles?: components["schemas"]["TypeRole"][];
4667
4669
  /** @description The type's own fields, by name. `GET /types/{id}` adds the fields it inherits. */
@@ -4686,6 +4688,18 @@ interface components {
4686
4688
  /** @description The type's plural name for people to read, such as `People`: the one the type declares, else one made from its label. Never inherited. */
4687
4689
  plural: string;
4688
4690
  provenance: components["schemas"]["TypeProvenance"] & unknown;
4691
+ /** @description The guidance of the types above this one, nearest first. Present only where one of them carries some. The type's own guidance is `guidance`. */
4692
+ ancestor_guidance?: components["schemas"]["TypeGuidance"][];
4693
+ };
4694
+ /** @description One type's guidance, as read for a type below it. */
4695
+ TypeGuidance: {
4696
+ /**
4697
+ * @description The identifier of the type that carries the guidance.
4698
+ * @example user.order
4699
+ */
4700
+ type: string;
4701
+ /** @description That type's own guidance. */
4702
+ guidance: string;
4689
4703
  };
4690
4704
  /** @description An error response. */
4691
4705
  TypeNotFoundRefusal: {
@@ -4746,23 +4760,6 @@ interface components {
4746
4760
  };
4747
4761
  };
4748
4762
  };
4749
- /** @description An error response. */
4750
- CompatibleWithViolationRefusal: {
4751
- /** @description What went wrong. */
4752
- error: {
4753
- /**
4754
- * @description A machine-readable code for the error. Use it in your logic.
4755
- * @enum {string}
4756
- */
4757
- code: "compatible_with_violation";
4758
- /** @description A description of the error for a person to read. It can change, so don't match on it. */
4759
- message: string;
4760
- /** @description More about the error, such as the field it concerns. Each code defines its own details. */
4761
- details?: {
4762
- [key: string]: unknown;
4763
- };
4764
- };
4765
- };
4766
4763
  /** @description A declared item type. */
4767
4764
  TypeDefinitionInput: {
4768
4765
  /** @description The type's own fields, by name. */
@@ -4781,14 +4778,14 @@ interface components {
4781
4778
  label?: string;
4782
4779
  /** @description The label's plural, up to 100 characters, such as `People`. Leave it out and Marfa adds `s`, `es` or `ies` to the label by the regular English rule. */
4783
4780
  plural?: string;
4784
- /** @description What the type is for. */
4781
+ /** @description A sentence saying what the type is for, up to 200 Unicode code points. */
4785
4782
  description?: string;
4783
+ /** @description Markdown on how to use the type, up to 1,000 Unicode code points. For registration, non-empty guidance needs `schema.write`. Omit it or send an empty string for no guidance. An `app.*` type takes no guidance. */
4784
+ guidance?: string;
4786
4785
  /** @description The structural roles the type plays: `container`. An edge type's `role:<name>` constraint matches types by role. */
4787
4786
  roles?: string[];
4788
4787
  /** @description The names of the fields an item of the type must have. It means the same as `required: true` on each of them. */
4789
4788
  required?: string[];
4790
- /** @description The types this one is a structural superset of. Marfa checks the claim when you save the type. A bare string names one type. */
4791
- compatible_with?: string | string[];
4792
4789
  display_hints?: components["schemas"]["DisplayHints"] & unknown;
4793
4790
  /** @description The name of a string field, declared or inherited, that holds each item's own ID at the vendor that writes the type. No two items of the type, in any state, hold the same value. A subtype names its own link. The name has no `"` or `\`. */
4794
4791
  link_field?: string;
@@ -4870,14 +4867,14 @@ interface components {
4870
4867
  label?: string;
4871
4868
  /** @description The label's plural, up to 100 characters, such as `People`. Leave it out and Marfa adds `s`, `es` or `ies` to the label by the regular English rule. */
4872
4869
  plural?: string;
4873
- /** @description What the type is for. */
4870
+ /** @description A sentence saying what the type is for, up to 200 Unicode code points. */
4874
4871
  description?: string;
4872
+ /** @description Markdown on how to use the type, up to 1,000 Unicode code points. Omit it or send an empty string to clear it. Adding, changing, or removing it needs `schema.write`. An `app.*` type takes no guidance. */
4873
+ guidance?: string;
4875
4874
  /** @description The structural roles the type plays: `container`. An edge type's `role:<name>` constraint matches types by role. */
4876
4875
  roles?: string[];
4877
4876
  /** @description The names of the fields an item of the type must have. It means the same as `required: true` on each of them. */
4878
4877
  required?: string[];
4879
- /** @description The types this one is a structural superset of. Marfa checks the claim when you save the type. A bare string names one type. */
4880
- compatible_with?: string | string[];
4881
4878
  display_hints?: components["schemas"]["DisplayHints"] & unknown;
4882
4879
  /** @description The name of a string field, declared or inherited, that holds each item's own ID at the vendor that writes the type. No two items of the type, in any state, hold the same value. A subtype names its own link. The name has no `"` or `\`. */
4883
4880
  link_field?: string;
@@ -4890,6 +4887,8 @@ interface components {
4890
4887
  * @example acme.deal
4891
4888
  */
4892
4889
  id?: string;
4890
+ /** @description The guidance of the types above, accepted when replacing a read response. This field changes nothing. */
4891
+ ancestor_guidance?: components["schemas"]["TypeGuidance"][];
4893
4892
  };
4894
4893
  /** @description An error response. */
4895
4894
  InvalidSchemaOrValidationErrorRefusal: {
@@ -18823,7 +18822,7 @@ interface operations {
18823
18822
  /**
18824
18823
  * @description - `missing_required_field`: `fields` is missing.
18825
18824
  * - `validation_error`: `id` is malformed, or `parent` isn't registered or makes too deep a chain.
18826
- * - `invalid_schema`: the schema is invalid or has a key it doesn't define (`details.errors` names each path).
18825
+ * - `invalid_schema`: the schema is invalid, or has an unknown key or overlong text (`details.errors` names each path).
18827
18826
  * - `property_shadows_field`: a field is named like one every item has.
18828
18827
  * - `inheritance_violation`: the type reshapes an inherited field.
18829
18828
  */
@@ -18851,8 +18850,8 @@ interface operations {
18851
18850
  };
18852
18851
  };
18853
18852
  /**
18854
- * @description - `forbidden`: you don't have `metadata.types:write`, or the identifier is under `core.*`, `system.*` or `marfa.*`, which no credential can register.
18855
- * - `type_not_permitted`: your type map lacks write on the identifier or a non-platform `parent` or `compatible_with` target (`details.grant` names it).
18853
+ * @description - `forbidden`: you don't have `metadata.types:write`, the type has `guidance` and you lack `schema.write`, or the identifier is under `core.*`, `system.*` or `marfa.*`, which no credential can register.
18854
+ * - `type_not_permitted`: your type map lacks write on the identifier or a non-platform `parent` (`details.grant` names it).
18856
18855
  */
18857
18856
  403: {
18858
18857
  headers: {
@@ -18916,18 +18915,6 @@ interface operations {
18916
18915
  "application/json": components["schemas"]["RequestTooLargeRefusal"];
18917
18916
  };
18918
18917
  };
18919
- /** @description `compatible_with_violation`: `compatible_with` names a type this instance doesn't hold, or one the type doesn't satisfy. */
18920
- 422: {
18921
- headers: {
18922
- "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
18923
- "X-Request-ID": components["headers"]["X-Request-ID"];
18924
- "X-Error-Code": components["headers"]["X-Error-Code"];
18925
- [name: string]: unknown;
18926
- };
18927
- content: {
18928
- "application/json": components["schemas"]["CompatibleWithViolationRefusal"];
18929
- };
18930
- };
18931
18918
  /** @description `rate_limited`: you sent too many requests. Wait for the number of seconds in `Retry-After`, then try again. */
18932
18919
  429: {
18933
18920
  headers: {
@@ -19230,8 +19217,8 @@ interface operations {
19230
19217
  };
19231
19218
  /**
19232
19219
  * @description - `missing_required_field`: `fields` is missing.
19233
- * - `validation_error`: `id` is malformed, or `parent` isn't registered or makes a bad chain.
19234
- * - `invalid_schema`: the schema is invalid or has a key it doesn't define (`details.errors` names each path).
19220
+ * - `validation_error`: `id` is malformed, or `parent` isn't registered or chains badly.
19221
+ * - `invalid_schema`: the schema is invalid, or has an unknown key or overlong text (`details.errors` names each path).
19235
19222
  * - `property_shadows_field`: a field has the name of one every item has.
19236
19223
  * - `inheritance_violation`: a field's shape differs in a parent or subtype.
19237
19224
  */
@@ -19261,7 +19248,7 @@ interface operations {
19261
19248
  /**
19262
19249
  * @description - `forbidden`: you lack `schema.write` and `metadata.types:write`, or `details.changes` names changes needing `schema.write`.
19263
19250
  * - `core_type_immutable`: Marfa ships this type.
19264
- * - `type_not_permitted`: your type map lacks write on the type or a new non-platform `parent` or `compatible_with` target (`details.grant` names it).
19251
+ * - `type_not_permitted`: your type map lacks write on the type or a new non-platform `parent` (`details.grant` names it).
19265
19252
  */
19266
19253
  403: {
19267
19254
  headers: {
@@ -19337,18 +19324,6 @@ interface operations {
19337
19324
  "application/json": components["schemas"]["RequestTooLargeRefusal"];
19338
19325
  };
19339
19326
  };
19340
- /** @description `compatible_with_violation`: `compatible_with` names a type this instance doesn't hold, or one the type doesn't satisfy, or the change breaks another type's claim (`details.dependent_type_ids`). */
19341
- 422: {
19342
- headers: {
19343
- "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
19344
- "X-Request-ID": components["headers"]["X-Request-ID"];
19345
- "X-Error-Code": components["headers"]["X-Error-Code"];
19346
- [name: string]: unknown;
19347
- };
19348
- content: {
19349
- "application/json": components["schemas"]["CompatibleWithViolationRefusal"];
19350
- };
19351
- };
19352
19327
  /** @description `rate_limited`: you sent too many requests. Wait for the number of seconds in `Retry-After`, then try again. */
19353
19328
  429: {
19354
19329
  headers: {
@@ -19404,7 +19379,7 @@ interface operations {
19404
19379
  deleteType: {
19405
19380
  parameters: {
19406
19381
  query?: {
19407
- /** @description Delete the type even if items of it exist, in any state, or a folder, view or webhook names it. It doesn't cover subtypes or compatibility dependents. */
19382
+ /** @description Delete the type even if items of it exist, in any state, or a folder, view or webhook names it. It doesn't cover subtypes. */
19408
19383
  force?: boolean;
19409
19384
  };
19410
19385
  header?: {
@@ -19526,18 +19501,6 @@ interface operations {
19526
19501
  "application/json": components["schemas"]["RequestTooLargeRefusal"];
19527
19502
  };
19528
19503
  };
19529
- /** @description `compatible_with_violation`: other types name this type in `compatible_with`. `details.dependent_type_ids` lists them. Remove their claims before deleting the target; `force=true` does not bypass this check. */
19530
- 422: {
19531
- headers: {
19532
- "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
19533
- "X-Request-ID": components["headers"]["X-Request-ID"];
19534
- "X-Error-Code": components["headers"]["X-Error-Code"];
19535
- [name: string]: unknown;
19536
- };
19537
- content: {
19538
- "application/json": components["schemas"]["CompatibleWithViolationRefusal"];
19539
- };
19540
- };
19541
19504
  /** @description `rate_limited`: you sent too many requests. Wait for the number of seconds in `Retry-After`, then try again. */
19542
19505
  429: {
19543
19506
  headers: {
@@ -19950,7 +19913,7 @@ interface operations {
19950
19913
  /**
19951
19914
  * @description - `missing_required_field`: `fields` is missing.
19952
19915
  * - `validation_error`: `id` is malformed, or `parent` isn't registered or makes too deep a chain.
19953
- * - `invalid_schema`: the schema is invalid or has a key it doesn't define (`details.errors` names each path).
19916
+ * - `invalid_schema`: the schema is invalid, or has an unknown key or overlong text (`details.errors` names each path).
19954
19917
  * - `property_shadows_field`: a field is named like one every item has.
19955
19918
  * - `inheritance_violation`: the type reshapes an inherited field.
19956
19919
  */
@@ -20025,18 +19988,6 @@ interface operations {
20025
19988
  "application/json": components["schemas"]["RequestTooLargeRefusal"];
20026
19989
  };
20027
19990
  };
20028
- /** @description `compatible_with_violation`: `compatible_with` names a type this instance doesn't hold, or one the type doesn't satisfy. */
20029
- 422: {
20030
- headers: {
20031
- "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
20032
- "X-Request-ID": components["headers"]["X-Request-ID"];
20033
- "X-Error-Code": components["headers"]["X-Error-Code"];
20034
- [name: string]: unknown;
20035
- };
20036
- content: {
20037
- "application/json": components["schemas"]["CompatibleWithViolationRefusal"];
20038
- };
20039
- };
20040
19991
  /** @description `rate_limited`: you sent too many requests. Wait for the number of seconds in `Retry-After`, then try again. */
20041
19992
  429: {
20042
19993
  headers: {
@@ -22926,7 +22877,7 @@ interface operations {
22926
22877
  "application/json": components["schemas"]["ForbiddenRefusal"];
22927
22878
  };
22928
22879
  };
22929
- /** @description - `webhook_not_found`: no webhook of yours has this ID. */
22880
+ /** @description - `webhook_not_found`: no webhook you can reach has this ID. */
22930
22881
  404: {
22931
22882
  headers: {
22932
22883
  "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
@@ -23069,7 +23020,7 @@ interface operations {
23069
23020
  "application/json": components["schemas"]["ForbiddenRefusal"];
23070
23021
  };
23071
23022
  };
23072
- /** @description - `webhook_not_found`: no webhook of yours has this ID. */
23023
+ /** @description - `webhook_not_found`: no webhook you can reach has this ID. */
23073
23024
  404: {
23074
23025
  headers: {
23075
23026
  "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
@@ -23247,7 +23198,7 @@ interface operations {
23247
23198
  "application/json": components["schemas"]["UnauthorizedRefusal"];
23248
23199
  };
23249
23200
  };
23250
- /** @description - `forbidden`: you don't have `webhooks.manage`. */
23201
+ /** @description - `forbidden`: you don't have `webhooks.manage`, or you hold `keys.manage` and another key or app registered the webhook. */
23251
23202
  403: {
23252
23203
  headers: {
23253
23204
  "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
@@ -23259,7 +23210,7 @@ interface operations {
23259
23210
  "application/json": components["schemas"]["ForbiddenRefusal"];
23260
23211
  };
23261
23212
  };
23262
- /** @description - `webhook_not_found`: no webhook of yours has this ID. */
23213
+ /** @description - `webhook_not_found`: no webhook you can reach has this ID. */
23263
23214
  404: {
23264
23215
  headers: {
23265
23216
  "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
@@ -23453,7 +23404,7 @@ interface operations {
23453
23404
  "application/json": components["schemas"]["ForbiddenRefusal"];
23454
23405
  };
23455
23406
  };
23456
- /** @description - `webhook_not_found`: no webhook of yours has this ID. */
23407
+ /** @description - `webhook_not_found`: no webhook you can reach has this ID. */
23457
23408
  404: {
23458
23409
  headers: {
23459
23410
  "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
@@ -23594,7 +23545,7 @@ interface operations {
23594
23545
  "application/json": components["schemas"]["UnauthorizedRefusal"];
23595
23546
  };
23596
23547
  };
23597
- /** @description - `forbidden`: you don't have `webhooks.manage`. */
23548
+ /** @description - `forbidden`: you don't have `webhooks.manage`, or you hold `keys.manage` and another key or app registered the webhook. */
23598
23549
  403: {
23599
23550
  headers: {
23600
23551
  "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
@@ -23606,7 +23557,7 @@ interface operations {
23606
23557
  "application/json": components["schemas"]["ForbiddenRefusal"];
23607
23558
  };
23608
23559
  };
23609
- /** @description - `webhook_not_found`: no webhook of yours has this ID, or it has no delivery with this `delivery_id`. */
23560
+ /** @description - `webhook_not_found`: no webhook you can reach has this ID, or it has no delivery with this `delivery_id`. */
23610
23561
  404: {
23611
23562
  headers: {
23612
23563
  "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
@@ -30828,7 +30779,7 @@ interface operations {
30828
30779
  /** @description Replaces the key's enforcement levers whole. `null` clears them. */
30829
30780
  enforcement_override?: components["schemas"]["EnforcementOverride"] | null;
30830
30781
  /**
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.
30782
+ * @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 with `narrow_only`, or for a key an app made without `keys.manage`. 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.
30832
30783
  * @example 2027-01-01T00:00:00.000Z
30833
30784
  */
30834
30785
  expires_at?: string | null;
@@ -30900,7 +30851,7 @@ interface operations {
30900
30851
  "application/json": components["schemas"]["UnauthorizedRefusal"];
30901
30852
  };
30902
30853
  };
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`. */
30854
+ /** @description - `forbidden`: you hold neither `keys.mint` nor `keys.manage`; the update widens reach without `keys.mint`, beyond your access, or for an app's key; its expiry exceeds yours when widening or lengthening; it lengthens an app's key without `keys.manage`; `narrow_only` refuses wider reach, longer life or a changed override; or changing `enforcement_override` needs `config.manage`. */
30904
30855
  403: {
30905
30856
  headers: {
30906
30857
  "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
@@ -38107,8 +38058,8 @@ interface operations {
38107
38058
  };
38108
38059
  };
38109
38060
  /**
38110
- * @description - `forbidden`: you don't hold `backups.manage`, or the archive would store settings and you don't hold `config.manage`. `details.required_scope` names the missing permission. For `config.manage`, `details.settings` lists the settings.
38111
- * - `app_sign_in_required`: you are an API key. A person restores from an app they signed in to, or with the private local command.
38061
+ * @description - `forbidden`: `details.required_scope` names the missing permission. `details.settings` lists settings for `config.manage`, and `details.changes` lists `guidance` for `schema.write`.
38062
+ * - `app_sign_in_required`: you are using an API key. Use an app you signed in to or the private local command.
38112
38063
  */
38113
38064
  403: {
38114
38065
  headers: {
@@ -38172,18 +38123,6 @@ interface operations {
38172
38123
  "application/json": components["schemas"]["RequestTooLargeRefusal"];
38173
38124
  };
38174
38125
  };
38175
- /** @description `compatible_with_violation`: an archived type's `compatible_with` names a type neither the archive nor this instance holds, or one the type doesn't satisfy. */
38176
- 422: {
38177
- headers: {
38178
- "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
38179
- "X-Request-ID": components["headers"]["X-Request-ID"];
38180
- "X-Error-Code": components["headers"]["X-Error-Code"];
38181
- [name: string]: unknown;
38182
- };
38183
- content: {
38184
- "application/json": components["schemas"]["CompatibleWithViolationRefusal"];
38185
- };
38186
- };
38187
38126
  /** @description `rate_limited`: you sent too many requests. Wait for the number of seconds in `Retry-After`, then try again. */
38188
38127
  429: {
38189
38128
  headers: {
@@ -38914,8 +38853,8 @@ interface operations {
38914
38853
  };
38915
38854
  };
38916
38855
  /**
38917
- * @description - `forbidden`: you don't hold `backups.manage`, or the archive would store settings and you don't hold `config.manage`. `details.required_scope` names the missing permission. For `config.manage`, `details.settings` lists the settings.
38918
- * - `app_sign_in_required`: you are an API key. A person restores from an app they signed in to, or with the private local command.
38856
+ * @description - `forbidden`: `details.required_scope` names the missing permission. `details.settings` lists settings for `config.manage`, and `details.changes` lists `guidance` for `schema.write`.
38857
+ * - `app_sign_in_required`: you are using an API key. Use an app you signed in to or the private local command.
38919
38858
  */
38920
38859
  403: {
38921
38860
  headers: {
@@ -38981,18 +38920,6 @@ interface operations {
38981
38920
  "application/json": components["schemas"]["RequestTooLargeRefusal"];
38982
38921
  };
38983
38922
  };
38984
- /** @description `compatible_with_violation`: an archived type's `compatible_with` names a type neither the archive nor this instance holds, or one the type doesn't satisfy. */
38985
- 422: {
38986
- headers: {
38987
- "X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
38988
- "X-Request-ID": components["headers"]["X-Request-ID"];
38989
- "X-Error-Code": components["headers"]["X-Error-Code"];
38990
- [name: string]: unknown;
38991
- };
38992
- content: {
38993
- "application/json": components["schemas"]["CompatibleWithViolationRefusal"];
38994
- };
38995
- };
38996
38923
  /** @description `rate_limited`: you sent too many requests. Wait for the number of seconds in `Retry-After`, then try again. */
38997
38924
  429: {
38998
38925
  headers: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@withmarfa/client",
3
- "version": "0.0.88",
3
+ "version": "0.0.90",
4
4
  "license": "Apache-2.0",
5
5
  "repository": {
6
6
  "type": "git",