@withmarfa/client 0.0.89 → 0.0.92
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 +2172 -715
- package/dist/index.d.ts +2172 -715
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -17,7 +17,7 @@ interface paths {
|
|
|
17
17
|
};
|
|
18
18
|
/**
|
|
19
19
|
* List items
|
|
20
|
-
* @description Returns a page of the items you can read that match the filters.
|
|
20
|
+
* @description Returns a page of the items you can read that match the filters. Hidden items (`system.*` and `app.*`) are left out unless you ask for them with `include=hidden`. Use `include` to add edges, metadata or extensions to each item.
|
|
21
21
|
*/
|
|
22
22
|
get: operations["listItems"];
|
|
23
23
|
put?: never;
|
|
@@ -211,7 +211,7 @@ interface paths {
|
|
|
211
211
|
put?: never;
|
|
212
212
|
/**
|
|
213
213
|
* Find items by title
|
|
214
|
-
* @description Finds the active and archived items titled by each of up to 200 names, matched without regard to case, Unicode form or the white space around a name. `system.*` items and items you can't read are left out.
|
|
214
|
+
* @description Finds the active and archived items titled by each of up to 200 names, matched without regard to case, Unicode form or the white space around a name. `system.*` and `app.*` items and items you can't read are left out.
|
|
215
215
|
*/
|
|
216
216
|
post: operations["findItemsByTitle"];
|
|
217
217
|
delete?: never;
|
|
@@ -309,7 +309,7 @@ interface paths {
|
|
|
309
309
|
};
|
|
310
310
|
/**
|
|
311
311
|
* List item summaries
|
|
312
|
-
* @description Returns item names, types, versions, sources and creation times, newest first, of the types you can read. Trashed and
|
|
312
|
+
* @description Returns item names, types, versions, sources and creation times, newest first, of the types you can read. Trashed and hidden items (`system.*` and `app.*`) are excluded.
|
|
313
313
|
*/
|
|
314
314
|
get: operations["listItemSummaries"];
|
|
315
315
|
put?: never;
|
|
@@ -828,6 +828,54 @@ interface paths {
|
|
|
828
828
|
patch?: never;
|
|
829
829
|
trace?: never;
|
|
830
830
|
};
|
|
831
|
+
"/plugins": {
|
|
832
|
+
parameters: {
|
|
833
|
+
query?: never;
|
|
834
|
+
header?: never;
|
|
835
|
+
path?: never;
|
|
836
|
+
cookie?: never;
|
|
837
|
+
};
|
|
838
|
+
/**
|
|
839
|
+
* List plugins
|
|
840
|
+
* @description Returns every installed plugin, by name, with the types it installed.
|
|
841
|
+
*/
|
|
842
|
+
get: operations["listPlugins"];
|
|
843
|
+
put?: never;
|
|
844
|
+
/**
|
|
845
|
+
* Install a plugin
|
|
846
|
+
* @description Installs a plugin's bundle in one write and records the plugin on each type. Needs `schema.write`, write on each type and edge type name, and `connectors.manage` for a `connector`. An app can't install guidance.
|
|
847
|
+
*/
|
|
848
|
+
post: operations["installPlugin"];
|
|
849
|
+
delete?: never;
|
|
850
|
+
options?: never;
|
|
851
|
+
head?: never;
|
|
852
|
+
patch?: never;
|
|
853
|
+
trace?: never;
|
|
854
|
+
};
|
|
855
|
+
"/plugins/{name}": {
|
|
856
|
+
parameters: {
|
|
857
|
+
query?: never;
|
|
858
|
+
header?: never;
|
|
859
|
+
path?: never;
|
|
860
|
+
cookie?: never;
|
|
861
|
+
};
|
|
862
|
+
/**
|
|
863
|
+
* Get a plugin
|
|
864
|
+
* @description Returns an installed plugin, with the types it installed.
|
|
865
|
+
*/
|
|
866
|
+
get: operations["getPlugin"];
|
|
867
|
+
put?: never;
|
|
868
|
+
post?: never;
|
|
869
|
+
/**
|
|
870
|
+
* Remove a plugin
|
|
871
|
+
* @description Removes a plugin's install record. Its types and edge types stay, with their items, edges and provenance; delete a type with `DELETE /types/{id}`. Needs `schema.write`.
|
|
872
|
+
*/
|
|
873
|
+
delete: operations["removePlugin"];
|
|
874
|
+
options?: never;
|
|
875
|
+
head?: never;
|
|
876
|
+
patch?: never;
|
|
877
|
+
trace?: never;
|
|
878
|
+
};
|
|
831
879
|
"/types": {
|
|
832
880
|
parameters: {
|
|
833
881
|
query?: never;
|
|
@@ -843,7 +891,7 @@ interface paths {
|
|
|
843
891
|
put?: never;
|
|
844
892
|
/**
|
|
845
893
|
* Register a type
|
|
846
|
-
* @description Registers a type under the `app.*`, `user.*` or `<publisher>.*` namespace and returns it. Name a `parent` to inherit its fields.
|
|
894
|
+
* @description Registers a type under the `app.*`, `user.*` or `<publisher>.*` namespace and returns it. Name a `parent` to inherit its fields. The first type under an `app.<vendor>` namespace gives that namespace to the app that registered it.
|
|
847
895
|
*/
|
|
848
896
|
post: operations["registerType"];
|
|
849
897
|
delete?: never;
|
|
@@ -861,7 +909,7 @@ interface paths {
|
|
|
861
909
|
};
|
|
862
910
|
/**
|
|
863
911
|
* 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.
|
|
912
|
+
* @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
913
|
*/
|
|
866
914
|
get: operations["getType"];
|
|
867
915
|
/**
|
|
@@ -1161,13 +1209,13 @@ interface paths {
|
|
|
1161
1209
|
};
|
|
1162
1210
|
/**
|
|
1163
1211
|
* List webhooks
|
|
1164
|
-
* @description Returns webhooks and their makers, with secrets redacted.
|
|
1212
|
+
* @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
1213
|
*/
|
|
1166
1214
|
get: operations["listWebhooks"];
|
|
1167
1215
|
put?: never;
|
|
1168
1216
|
/**
|
|
1169
1217
|
* 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
|
|
1218
|
+
* @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
1219
|
*/
|
|
1172
1220
|
post: operations["createWebhook"];
|
|
1173
1221
|
delete?: never;
|
|
@@ -1185,21 +1233,21 @@ interface paths {
|
|
|
1185
1233
|
};
|
|
1186
1234
|
/**
|
|
1187
1235
|
* Get a webhook
|
|
1188
|
-
* @description Returns a webhook and its maker, with its secret redacted.
|
|
1236
|
+
* @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
1237
|
*/
|
|
1190
1238
|
get: operations["getWebhook"];
|
|
1191
1239
|
put?: never;
|
|
1192
1240
|
post?: never;
|
|
1193
1241
|
/**
|
|
1194
1242
|
* Delete a webhook
|
|
1195
|
-
* @description Deletes a webhook and cancels its pending deliveries.
|
|
1243
|
+
* @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
1244
|
*/
|
|
1197
1245
|
delete: operations["deleteWebhook"];
|
|
1198
1246
|
options?: never;
|
|
1199
1247
|
head?: never;
|
|
1200
1248
|
/**
|
|
1201
1249
|
* Update a webhook
|
|
1202
|
-
* @description Updates
|
|
1250
|
+
* @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
1251
|
*/
|
|
1204
1252
|
patch: operations["updateWebhook"];
|
|
1205
1253
|
trace?: never;
|
|
@@ -1213,7 +1261,7 @@ interface paths {
|
|
|
1213
1261
|
};
|
|
1214
1262
|
/**
|
|
1215
1263
|
* List webhook deliveries
|
|
1216
|
-
* @description Returns delivery metadata without event payloads, newest first.
|
|
1264
|
+
* @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
1265
|
*/
|
|
1218
1266
|
get: operations["listWebhookDeliveries"];
|
|
1219
1267
|
put?: never;
|
|
@@ -1235,7 +1283,7 @@ interface paths {
|
|
|
1235
1283
|
put?: never;
|
|
1236
1284
|
/**
|
|
1237
1285
|
* Redeliver a webhook delivery
|
|
1238
|
-
* @description Redelivers a failed delivery, queuing it again at the current URL.
|
|
1286
|
+
* @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
1287
|
*/
|
|
1240
1288
|
post: operations["redeliverWebhookDelivery"];
|
|
1241
1289
|
delete?: never;
|
|
@@ -1795,7 +1843,7 @@ interface paths {
|
|
|
1795
1843
|
head?: never;
|
|
1796
1844
|
/**
|
|
1797
1845
|
* 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.
|
|
1846
|
+
* @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
1847
|
*/
|
|
1800
1848
|
patch: operations["updateKey"];
|
|
1801
1849
|
trace?: never;
|
|
@@ -1864,6 +1912,46 @@ interface paths {
|
|
|
1864
1912
|
patch: operations["narrowAppGrant"];
|
|
1865
1913
|
trace?: never;
|
|
1866
1914
|
};
|
|
1915
|
+
"/app-vendors": {
|
|
1916
|
+
parameters: {
|
|
1917
|
+
query?: never;
|
|
1918
|
+
header?: never;
|
|
1919
|
+
path?: never;
|
|
1920
|
+
cookie?: never;
|
|
1921
|
+
};
|
|
1922
|
+
/**
|
|
1923
|
+
* List app vendors
|
|
1924
|
+
* @description Returns each `app.<vendor>` namespace and who holds it, in one page: the app that registered its first type, or the owner until they give it to an app. Requires the owner's browser session or `grants.manage`.
|
|
1925
|
+
*/
|
|
1926
|
+
get: operations["listAppVendors"];
|
|
1927
|
+
put?: never;
|
|
1928
|
+
post?: never;
|
|
1929
|
+
delete?: never;
|
|
1930
|
+
options?: never;
|
|
1931
|
+
head?: never;
|
|
1932
|
+
patch?: never;
|
|
1933
|
+
trace?: never;
|
|
1934
|
+
};
|
|
1935
|
+
"/app-vendors/{vendor}": {
|
|
1936
|
+
parameters: {
|
|
1937
|
+
query?: never;
|
|
1938
|
+
header?: never;
|
|
1939
|
+
path?: never;
|
|
1940
|
+
cookie?: never;
|
|
1941
|
+
};
|
|
1942
|
+
get?: never;
|
|
1943
|
+
/**
|
|
1944
|
+
* Give a vendor to an app
|
|
1945
|
+
* @description Gives an `app.<vendor>` namespace to the app you name by client ID, which then registers types under it and reaches its items. Use it when an app's client ID changes. Requires the owner's browser session, or `grants.manage` on a key the owner made.
|
|
1946
|
+
*/
|
|
1947
|
+
put: operations["giveAppVendor"];
|
|
1948
|
+
post?: never;
|
|
1949
|
+
delete?: never;
|
|
1950
|
+
options?: never;
|
|
1951
|
+
head?: never;
|
|
1952
|
+
patch?: never;
|
|
1953
|
+
trace?: never;
|
|
1954
|
+
};
|
|
1867
1955
|
"/oauth/authorize": {
|
|
1868
1956
|
parameters: {
|
|
1869
1957
|
query?: never;
|
|
@@ -2443,7 +2531,7 @@ interface paths {
|
|
|
2443
2531
|
put?: never;
|
|
2444
2532
|
/**
|
|
2445
2533
|
* Restore from an archive
|
|
2446
|
-
* @description Restores an
|
|
2534
|
+
* @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
2535
|
*/
|
|
2448
2536
|
post: operations["restoreArchive"];
|
|
2449
2537
|
delete?: never;
|
|
@@ -2507,7 +2595,7 @@ interface paths {
|
|
|
2507
2595
|
put?: never;
|
|
2508
2596
|
/**
|
|
2509
2597
|
* Restore a backup
|
|
2510
|
-
* @description Restores a backup from the backup folder or object store
|
|
2598
|
+
* @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
2599
|
*/
|
|
2512
2600
|
post: operations["restoreBackup"];
|
|
2513
2601
|
delete?: never;
|
|
@@ -2942,7 +3030,7 @@ interface components {
|
|
|
2942
3030
|
DisplayHints: {
|
|
2943
3031
|
/** @description The field that holds an item's title for display. */
|
|
2944
3032
|
title_field?: string;
|
|
2945
|
-
/** @description The field that holds an item's body for display. The field holds Markdown, and a `string` field named here holds up to 1,000,000
|
|
3033
|
+
/** @description The field that holds an item's body for display. The field holds Markdown, and a `string` field named here holds up to 1,000,000 Unicode characters unless its `max_length` says otherwise. */
|
|
2946
3034
|
body_field?: string;
|
|
2947
3035
|
/** @description Whether an item with no title is named by the first line of its body. `false` where the body is not a name, such as a highlight's passage: such an item is named after what it comes from, or `Untitled`. Defaults to `true`. */
|
|
2948
3036
|
name_from_body?: boolean;
|
|
@@ -2971,13 +3059,26 @@ interface components {
|
|
|
2971
3059
|
} & {
|
|
2972
3060
|
[key: string]: unknown;
|
|
2973
3061
|
};
|
|
2974
|
-
/** @description
|
|
3062
|
+
/** @description Where the type came from, the plugin that installed it, and the sign-in that first registered it when known. */
|
|
2975
3063
|
TypeProvenance: {
|
|
2976
3064
|
/**
|
|
2977
|
-
* @description Where the type came from: shipped by Marfa, registered by a
|
|
3065
|
+
* @description Where the type came from: shipped by Marfa, registered through `POST /types` or a restore, installed by a plugin, or unknown.
|
|
2978
3066
|
* @enum {string}
|
|
2979
3067
|
*/
|
|
2980
|
-
origin: "platform" | "
|
|
3068
|
+
origin: "platform" | "registered" | "plugin" | "unknown";
|
|
3069
|
+
/** @description The plugin that installed the type, or `null` for a type no plugin installed. It stays after the plugin is removed. */
|
|
3070
|
+
plugin: {
|
|
3071
|
+
/**
|
|
3072
|
+
* @description The plugin's name.
|
|
3073
|
+
* @example tickets
|
|
3074
|
+
*/
|
|
3075
|
+
name: string;
|
|
3076
|
+
/**
|
|
3077
|
+
* @description The version of the plugin that last installed the type.
|
|
3078
|
+
* @example 1.2.0
|
|
3079
|
+
*/
|
|
3080
|
+
version: string;
|
|
3081
|
+
} | null;
|
|
2981
3082
|
/** @description The sign-in that first registered the type, or null when none is recorded. */
|
|
2982
3083
|
created_by: {
|
|
2983
3084
|
/**
|
|
@@ -3701,7 +3802,7 @@ interface components {
|
|
|
3701
3802
|
};
|
|
3702
3803
|
/** @description `true` if listings show you this item, `false` if `source_filter` leaves it out of them and you can read it only by ID. Present only when you send `X-Marfa-Reach`. */
|
|
3703
3804
|
listed?: boolean;
|
|
3704
|
-
/** @description The items you can read at the far end of `item.edges`, and of `backrefs` if you asked for both, with their metadata. Leaves out `system.*` items without counting them in `neighbors_omitted`. Present with `include=neighbors`. */
|
|
3805
|
+
/** @description The items you can read at the far end of `item.edges`, and of `backrefs` if you asked for both, with their metadata. Leaves out `system.*` and `app.*` items without counting them in `neighbors_omitted`. Present with `include=neighbors`. */
|
|
3705
3806
|
neighbors?: components["schemas"]["ItemReadWithMetadata"][];
|
|
3706
3807
|
/** @description `true` if this answer's edges reach more than 100 items, so `neighbors` leaves some out. Page `GET /items/{id}/edges` and `GET /items/{id}/backrefs` for the rest. Present with `include=neighbors`. */
|
|
3707
3808
|
neighbors_truncated?: boolean;
|
|
@@ -4561,7 +4662,7 @@ interface components {
|
|
|
4561
4662
|
type: "string" | "number" | "integer" | "boolean" | "url" | "email" | "datetime" | "date" | "enum" | "array" | "object" | "thumbnail" | "status";
|
|
4562
4663
|
/** @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
4664
|
label?: string;
|
|
4564
|
-
/** @description What the field holds. */
|
|
4665
|
+
/** @description What the field holds. Registration, replacement, and normalization accept up to 300 Unicode code points. */
|
|
4565
4666
|
description?: string;
|
|
4566
4667
|
/** @description `true` if an item of the type must have a value for it. */
|
|
4567
4668
|
required?: boolean;
|
|
@@ -4582,7 +4683,7 @@ interface components {
|
|
|
4582
4683
|
format?: "url" | "email" | "date" | "thumbnail" | "bcp47" | "iso3166" | "currency" | "phone";
|
|
4583
4684
|
/** @description `false` if full-text search should skip the field. Items still return it. */
|
|
4584
4685
|
searchable?: boolean;
|
|
4585
|
-
/** @description The longest
|
|
4686
|
+
/** @description The longest `string` value, in Unicode characters, not UTF-16 code units. Defaults to 1,000,000 on the field `display_hints.body_field` names, and to 100,000 on any other. Ignored on `enum` fields. */
|
|
4586
4687
|
max_length?: number;
|
|
4587
4688
|
/** @description The most elements an `array` field allows. */
|
|
4588
4689
|
max_items?: number;
|
|
@@ -4593,7 +4694,7 @@ interface components {
|
|
|
4593
4694
|
} & {
|
|
4594
4695
|
[key: string]: unknown;
|
|
4595
4696
|
};
|
|
4596
|
-
/** @description One word a `status` field takes, with its group. */
|
|
4697
|
+
/** @description One word a `status` field takes, with its group and, optionally, what it means. */
|
|
4597
4698
|
StatusValue: {
|
|
4598
4699
|
/** @description The word, such as `in_review`: a lowercase letter, then up to 63 lowercase letters, digits and underscores. */
|
|
4599
4700
|
value: string;
|
|
@@ -4602,6 +4703,8 @@ interface components {
|
|
|
4602
4703
|
* @enum {string}
|
|
4603
4704
|
*/
|
|
4604
4705
|
group: "not_started" | "in_progress" | "completed" | "canceled";
|
|
4706
|
+
/** @description What the word means. Registration, replacement, and normalization accept up to 120 Unicode code points. */
|
|
4707
|
+
description?: string;
|
|
4605
4708
|
};
|
|
4606
4709
|
/** @description One member of the entries of an `array` field. */
|
|
4607
4710
|
EntryMember: {
|
|
@@ -4612,7 +4715,7 @@ interface components {
|
|
|
4612
4715
|
type: "string" | "number" | "integer" | "boolean" | "url" | "email" | "datetime" | "date" | "enum" | "array" | "object" | "thumbnail" | "status";
|
|
4613
4716
|
/** @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
4717
|
label?: string;
|
|
4615
|
-
/** @description What the member holds. */
|
|
4718
|
+
/** @description What the member holds. Registration, replacement, and normalization accept up to 300 Unicode code points. */
|
|
4616
4719
|
description?: string;
|
|
4617
4720
|
/** @description `true` if every entry must have the member. */
|
|
4618
4721
|
required?: boolean;
|
|
@@ -4656,12 +4759,12 @@ interface components {
|
|
|
4656
4759
|
label?: string;
|
|
4657
4760
|
/** @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
4761
|
plural?: string;
|
|
4659
|
-
/** @description What the type is for. */
|
|
4762
|
+
/** @description What the type is for. Registration, replacement, and normalization accept up to 200 Unicode code points. */
|
|
4660
4763
|
description?: string;
|
|
4764
|
+
/** @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. */
|
|
4765
|
+
guidance?: string;
|
|
4661
4766
|
/** @description The identifier of the type this one inherits from. */
|
|
4662
4767
|
parent?: string;
|
|
4663
|
-
/** @description The types this one is a structural superset of. */
|
|
4664
|
-
compatible_with?: string[];
|
|
4665
4768
|
/** @description The structural roles the type plays, including those it inherits. */
|
|
4666
4769
|
roles?: components["schemas"]["TypeRole"][];
|
|
4667
4770
|
/** @description The type's own fields, by name. `GET /types/{id}` adds the fields it inherits. */
|
|
@@ -4686,6 +4789,18 @@ interface components {
|
|
|
4686
4789
|
/** @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
4790
|
plural: string;
|
|
4688
4791
|
provenance: components["schemas"]["TypeProvenance"] & unknown;
|
|
4792
|
+
/** @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`. */
|
|
4793
|
+
ancestor_guidance?: components["schemas"]["TypeGuidance"][];
|
|
4794
|
+
};
|
|
4795
|
+
/** @description One type's guidance, as read for a type below it. */
|
|
4796
|
+
TypeGuidance: {
|
|
4797
|
+
/**
|
|
4798
|
+
* @description The identifier of the type that carries the guidance.
|
|
4799
|
+
* @example user.order
|
|
4800
|
+
*/
|
|
4801
|
+
type: string;
|
|
4802
|
+
/** @description That type's own guidance. */
|
|
4803
|
+
guidance: string;
|
|
4689
4804
|
};
|
|
4690
4805
|
/** @description An error response. */
|
|
4691
4806
|
TypeNotFoundRefusal: {
|
|
@@ -4746,23 +4861,6 @@ interface components {
|
|
|
4746
4861
|
};
|
|
4747
4862
|
};
|
|
4748
4863
|
};
|
|
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
4864
|
/** @description A declared item type. */
|
|
4767
4865
|
TypeDefinitionInput: {
|
|
4768
4866
|
/** @description The type's own fields, by name. */
|
|
@@ -4781,14 +4879,14 @@ interface components {
|
|
|
4781
4879
|
label?: string;
|
|
4782
4880
|
/** @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
4881
|
plural?: string;
|
|
4784
|
-
/** @description
|
|
4882
|
+
/** @description A sentence saying what the type is for, up to 200 Unicode code points. */
|
|
4785
4883
|
description?: string;
|
|
4884
|
+
/** @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. */
|
|
4885
|
+
guidance?: string;
|
|
4786
4886
|
/** @description The structural roles the type plays: `container`. An edge type's `role:<name>` constraint matches types by role. */
|
|
4787
4887
|
roles?: string[];
|
|
4788
4888
|
/** @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
4889
|
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
4890
|
display_hints?: components["schemas"]["DisplayHints"] & unknown;
|
|
4793
4891
|
/** @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
4892
|
link_field?: string;
|
|
@@ -4870,14 +4968,14 @@ interface components {
|
|
|
4870
4968
|
label?: string;
|
|
4871
4969
|
/** @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
4970
|
plural?: string;
|
|
4873
|
-
/** @description
|
|
4971
|
+
/** @description A sentence saying what the type is for, up to 200 Unicode code points. */
|
|
4874
4972
|
description?: string;
|
|
4973
|
+
/** @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. */
|
|
4974
|
+
guidance?: string;
|
|
4875
4975
|
/** @description The structural roles the type plays: `container`. An edge type's `role:<name>` constraint matches types by role. */
|
|
4876
4976
|
roles?: string[];
|
|
4877
4977
|
/** @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
4978
|
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
4979
|
display_hints?: components["schemas"]["DisplayHints"] & unknown;
|
|
4882
4980
|
/** @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
4981
|
link_field?: string;
|
|
@@ -4890,6 +4988,8 @@ interface components {
|
|
|
4890
4988
|
* @example acme.deal
|
|
4891
4989
|
*/
|
|
4892
4990
|
id?: string;
|
|
4991
|
+
/** @description The guidance of the types above, accepted when replacing a read response. This field changes nothing. */
|
|
4992
|
+
ancestor_guidance?: components["schemas"]["TypeGuidance"][];
|
|
4893
4993
|
};
|
|
4894
4994
|
/** @description An error response. */
|
|
4895
4995
|
InvalidSchemaOrValidationErrorRefusal: {
|
|
@@ -5937,7 +6037,7 @@ interface components {
|
|
|
5937
6037
|
};
|
|
5938
6038
|
/** @description Which items the folder holds. */
|
|
5939
6039
|
FolderQuery: {
|
|
5940
|
-
/** @description The types the folder holds, each with its subtypes. Empty or absent holds every type the machine's key can read, except `system.*`. */
|
|
6040
|
+
/** @description The types the folder holds, each with its subtypes. Empty or absent holds every type the machine's key can read, except `system.*` and `app.*`. */
|
|
5941
6041
|
types?: string[];
|
|
5942
6042
|
/**
|
|
5943
6043
|
* @description The tiers the folder holds: `library`, `feed`, or `all` for both. Absent means `library`.
|
|
@@ -6129,9 +6229,9 @@ interface components {
|
|
|
6129
6229
|
/** @description The whole seconds since receipt, measured by the server; it does not show whether the copy is online. */
|
|
6130
6230
|
age_seconds: number;
|
|
6131
6231
|
};
|
|
6132
|
-
/** @description Which items the view lists. Absent lists every item the reading key can read, except `system.*`. */
|
|
6232
|
+
/** @description Which items the view lists. Absent lists every item the reading key can read, except `system.*` and `app.*`. */
|
|
6133
6233
|
ViewQuery: {
|
|
6134
|
-
/** @description The types the view lists, each with its subtypes. Empty or absent lists every type the reading key can read, except `system.*`. */
|
|
6234
|
+
/** @description The types the view lists, each with its subtypes. Empty or absent lists every type the reading key can read, except `system.*` and `app.*`. */
|
|
6135
6235
|
types?: string[];
|
|
6136
6236
|
tier?: components["schemas"]["ViewTier"] & unknown;
|
|
6137
6237
|
/** @description The states the view lists. Absent means both. */
|
|
@@ -8463,6 +8563,338 @@ interface components {
|
|
|
8463
8563
|
/** @description What the owner does next, in order. */
|
|
8464
8564
|
next_steps: components["schemas"]["AddressNextStep"][];
|
|
8465
8565
|
};
|
|
8566
|
+
/** @description A plugin's bundle, `<name>.plugin.json`: its identity, version, types and edge types. */
|
|
8567
|
+
PluginBundle: {
|
|
8568
|
+
/**
|
|
8569
|
+
* @description The bundle format.
|
|
8570
|
+
* @enum {integer}
|
|
8571
|
+
*/
|
|
8572
|
+
format: 1;
|
|
8573
|
+
/**
|
|
8574
|
+
* @description The plugin's name: lowercase words and numbers joined by hyphens.
|
|
8575
|
+
* @example tickets
|
|
8576
|
+
*/
|
|
8577
|
+
name: string;
|
|
8578
|
+
/**
|
|
8579
|
+
* @description The name people see for the plugin.
|
|
8580
|
+
* @example Tickets
|
|
8581
|
+
*/
|
|
8582
|
+
title: string;
|
|
8583
|
+
/**
|
|
8584
|
+
* @description What the plugin adds, in a sentence.
|
|
8585
|
+
* @example Tickets for tracking work.
|
|
8586
|
+
*/
|
|
8587
|
+
description: string;
|
|
8588
|
+
/**
|
|
8589
|
+
* @description The icon the plugin is shown by, an Iconify icon ID.
|
|
8590
|
+
* @example lucide:ticket
|
|
8591
|
+
*/
|
|
8592
|
+
mark: string;
|
|
8593
|
+
/**
|
|
8594
|
+
* @description Who made the plugin.
|
|
8595
|
+
* @example Marfa
|
|
8596
|
+
*/
|
|
8597
|
+
maker: string;
|
|
8598
|
+
/**
|
|
8599
|
+
* @description The oldest Marfa release the plugin works with.
|
|
8600
|
+
* @example 0.0.90
|
|
8601
|
+
*/
|
|
8602
|
+
marfa: string;
|
|
8603
|
+
/**
|
|
8604
|
+
* @description The plugin's version. `0.0.0` is a bundle built from a source folder with no version.
|
|
8605
|
+
* @example 1.2.0
|
|
8606
|
+
*/
|
|
8607
|
+
version: string;
|
|
8608
|
+
/** @description The type definitions the plugin installs, each as `POST /types` takes it, with its `guidance`. */
|
|
8609
|
+
types: {
|
|
8610
|
+
[key: string]: unknown;
|
|
8611
|
+
}[];
|
|
8612
|
+
/** @description The edge types the plugin installs, each as `POST /edge-types` takes it. */
|
|
8613
|
+
edge_types: {
|
|
8614
|
+
[key: string]: unknown;
|
|
8615
|
+
}[];
|
|
8616
|
+
/** @description The plugin's connector. Marfa keeps it with the install record as it is. */
|
|
8617
|
+
connector?: {
|
|
8618
|
+
[key: string]: unknown;
|
|
8619
|
+
};
|
|
8620
|
+
};
|
|
8621
|
+
/** @description An installed plugin. */
|
|
8622
|
+
Plugin: {
|
|
8623
|
+
/**
|
|
8624
|
+
* @description The plugin's name: lowercase words and numbers joined by hyphens.
|
|
8625
|
+
* @example tickets
|
|
8626
|
+
*/
|
|
8627
|
+
name: string;
|
|
8628
|
+
/**
|
|
8629
|
+
* @description The name people see for the plugin.
|
|
8630
|
+
* @example Tickets
|
|
8631
|
+
*/
|
|
8632
|
+
title: string;
|
|
8633
|
+
/**
|
|
8634
|
+
* @description What the plugin adds, in a sentence.
|
|
8635
|
+
* @example Tickets for tracking work.
|
|
8636
|
+
*/
|
|
8637
|
+
description: string;
|
|
8638
|
+
/**
|
|
8639
|
+
* @description The icon the plugin is shown by, an Iconify icon ID.
|
|
8640
|
+
* @example lucide:ticket
|
|
8641
|
+
*/
|
|
8642
|
+
mark: string;
|
|
8643
|
+
/**
|
|
8644
|
+
* @description Who made the plugin.
|
|
8645
|
+
* @example Marfa
|
|
8646
|
+
*/
|
|
8647
|
+
maker: string;
|
|
8648
|
+
/**
|
|
8649
|
+
* @description The oldest Marfa release the plugin works with.
|
|
8650
|
+
* @example 0.0.90
|
|
8651
|
+
*/
|
|
8652
|
+
marfa: string;
|
|
8653
|
+
/**
|
|
8654
|
+
* @description The plugin's version. `0.0.0` is a bundle built from a source folder with no version.
|
|
8655
|
+
* @example 1.2.0
|
|
8656
|
+
*/
|
|
8657
|
+
version: string;
|
|
8658
|
+
/** @description The IDs of the types the plugin installed, at any version. */
|
|
8659
|
+
types: string[];
|
|
8660
|
+
/** @description The IDs of the edge types any installed version of the plugin brought that the instance still holds. */
|
|
8661
|
+
edge_types: string[];
|
|
8662
|
+
/** @description The installed version's connector, as its bundle gave it, or `null`. */
|
|
8663
|
+
connector: {
|
|
8664
|
+
[key: string]: unknown;
|
|
8665
|
+
} | null;
|
|
8666
|
+
/**
|
|
8667
|
+
* @description The SHA-256 of the bundle's bytes as the install that wrote this version received them, in lowercase hexadecimal.
|
|
8668
|
+
* @example 9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08
|
|
8669
|
+
*/
|
|
8670
|
+
fingerprint: string;
|
|
8671
|
+
/**
|
|
8672
|
+
* Format: date-time
|
|
8673
|
+
* @description When the plugin was first installed.
|
|
8674
|
+
* @example 2026-11-21T10:00:00.000Z
|
|
8675
|
+
*/
|
|
8676
|
+
installed_at: string;
|
|
8677
|
+
/** @description The sign-in that first installed the plugin, or `null` when it is not known. */
|
|
8678
|
+
installed_by: components["schemas"]["PluginInstaller"] | null;
|
|
8679
|
+
/**
|
|
8680
|
+
* Format: date-time
|
|
8681
|
+
* @description When the installed version last changed.
|
|
8682
|
+
* @example 2026-11-21T12:00:00.000Z
|
|
8683
|
+
*/
|
|
8684
|
+
updated_at: string;
|
|
8685
|
+
};
|
|
8686
|
+
/** @description The installed plugin, and what installing did. */
|
|
8687
|
+
PluginInstalled: {
|
|
8688
|
+
/**
|
|
8689
|
+
* @description The plugin's name: lowercase words and numbers joined by hyphens.
|
|
8690
|
+
* @example tickets
|
|
8691
|
+
*/
|
|
8692
|
+
name: string;
|
|
8693
|
+
/**
|
|
8694
|
+
* @description The name people see for the plugin.
|
|
8695
|
+
* @example Tickets
|
|
8696
|
+
*/
|
|
8697
|
+
title: string;
|
|
8698
|
+
/**
|
|
8699
|
+
* @description What the plugin adds, in a sentence.
|
|
8700
|
+
* @example Tickets for tracking work.
|
|
8701
|
+
*/
|
|
8702
|
+
description: string;
|
|
8703
|
+
/**
|
|
8704
|
+
* @description The icon the plugin is shown by, an Iconify icon ID.
|
|
8705
|
+
* @example lucide:ticket
|
|
8706
|
+
*/
|
|
8707
|
+
mark: string;
|
|
8708
|
+
/**
|
|
8709
|
+
* @description Who made the plugin.
|
|
8710
|
+
* @example Marfa
|
|
8711
|
+
*/
|
|
8712
|
+
maker: string;
|
|
8713
|
+
/**
|
|
8714
|
+
* @description The oldest Marfa release the plugin works with.
|
|
8715
|
+
* @example 0.0.90
|
|
8716
|
+
*/
|
|
8717
|
+
marfa: string;
|
|
8718
|
+
/**
|
|
8719
|
+
* @description The plugin's version. `0.0.0` is a bundle built from a source folder with no version.
|
|
8720
|
+
* @example 1.2.0
|
|
8721
|
+
*/
|
|
8722
|
+
version: string;
|
|
8723
|
+
/** @description The IDs of the types the plugin installed, at any version. */
|
|
8724
|
+
types: string[];
|
|
8725
|
+
/** @description The IDs of the edge types any installed version of the plugin brought that the instance still holds. */
|
|
8726
|
+
edge_types: string[];
|
|
8727
|
+
/** @description The installed version's connector, as its bundle gave it, or `null`. */
|
|
8728
|
+
connector: {
|
|
8729
|
+
[key: string]: unknown;
|
|
8730
|
+
} | null;
|
|
8731
|
+
/**
|
|
8732
|
+
* @description The SHA-256 of the bundle's bytes as the install that wrote this version received them, in lowercase hexadecimal.
|
|
8733
|
+
* @example 9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08
|
|
8734
|
+
*/
|
|
8735
|
+
fingerprint: string;
|
|
8736
|
+
/**
|
|
8737
|
+
* Format: date-time
|
|
8738
|
+
* @description When the plugin was first installed.
|
|
8739
|
+
* @example 2026-11-21T10:00:00.000Z
|
|
8740
|
+
*/
|
|
8741
|
+
installed_at: string;
|
|
8742
|
+
/** @description The sign-in that first installed the plugin, or `null` when it is not known. */
|
|
8743
|
+
installed_by: components["schemas"]["PluginInstaller"] | null;
|
|
8744
|
+
/**
|
|
8745
|
+
* Format: date-time
|
|
8746
|
+
* @description When the installed version last changed.
|
|
8747
|
+
* @example 2026-11-21T12:00:00.000Z
|
|
8748
|
+
*/
|
|
8749
|
+
updated_at: string;
|
|
8750
|
+
/**
|
|
8751
|
+
* @description `installed` for a new plugin, `updated` for a newer version, or `unchanged` when this version is already installed.
|
|
8752
|
+
* @enum {string}
|
|
8753
|
+
*/
|
|
8754
|
+
outcome: "installed" | "updated" | "unchanged";
|
|
8755
|
+
};
|
|
8756
|
+
/** @description What removing the plugin removed, and what it kept. */
|
|
8757
|
+
PluginRemoved: {
|
|
8758
|
+
/** @description The install record Marfa removed. */
|
|
8759
|
+
removed: {
|
|
8760
|
+
/**
|
|
8761
|
+
* @description The plugin's name: lowercase words and numbers joined by hyphens.
|
|
8762
|
+
* @example tickets
|
|
8763
|
+
*/
|
|
8764
|
+
name: string;
|
|
8765
|
+
/**
|
|
8766
|
+
* @description The plugin's version. `0.0.0` is a bundle built from a source folder with no version.
|
|
8767
|
+
* @example 1.2.0
|
|
8768
|
+
*/
|
|
8769
|
+
version: string;
|
|
8770
|
+
};
|
|
8771
|
+
/** @description What stays. */
|
|
8772
|
+
kept: {
|
|
8773
|
+
/** @description The types the plugin installed that the instance still holds, which stay with their items and provenance. */
|
|
8774
|
+
types: string[];
|
|
8775
|
+
/** @description The edge types any installed version of the plugin brought that the instance still holds, which stay with their edges. */
|
|
8776
|
+
edge_types: string[];
|
|
8777
|
+
};
|
|
8778
|
+
};
|
|
8779
|
+
/** @description An error response. */
|
|
8780
|
+
PluginNotFoundRefusal: {
|
|
8781
|
+
/** @description What went wrong. */
|
|
8782
|
+
error: {
|
|
8783
|
+
/**
|
|
8784
|
+
* @description A machine-readable code for the error. Use it in your logic.
|
|
8785
|
+
* @enum {string}
|
|
8786
|
+
*/
|
|
8787
|
+
code: "plugin_not_found";
|
|
8788
|
+
/** @description A description of the error for a person to read. It can change, so don't match on it. */
|
|
8789
|
+
message: string;
|
|
8790
|
+
/** @description More about the error, such as the field it concerns. Each code defines its own details. */
|
|
8791
|
+
details?: {
|
|
8792
|
+
[key: string]: unknown;
|
|
8793
|
+
};
|
|
8794
|
+
};
|
|
8795
|
+
};
|
|
8796
|
+
/** @description An error response. */
|
|
8797
|
+
PluginBundleRefusal: {
|
|
8798
|
+
/** @description What went wrong. */
|
|
8799
|
+
error: {
|
|
8800
|
+
/**
|
|
8801
|
+
* @description A machine-readable code for the error. Use it in your logic.
|
|
8802
|
+
* @enum {string}
|
|
8803
|
+
*/
|
|
8804
|
+
code: "validation_error" | "missing_required_field" | "invalid_schema" | "inheritance_violation" | "property_shadows_field";
|
|
8805
|
+
/** @description A description of the error for a person to read. It can change, so don't match on it. */
|
|
8806
|
+
message: string;
|
|
8807
|
+
/** @description More about the error, such as the field it concerns. Each code defines its own details. */
|
|
8808
|
+
details?: {
|
|
8809
|
+
[key: string]: unknown;
|
|
8810
|
+
};
|
|
8811
|
+
};
|
|
8812
|
+
};
|
|
8813
|
+
/** @description An error response. */
|
|
8814
|
+
PluginInstallForbiddenRefusal: {
|
|
8815
|
+
/** @description What went wrong. */
|
|
8816
|
+
error: {
|
|
8817
|
+
/**
|
|
8818
|
+
* @description A machine-readable code for the error. Use it in your logic.
|
|
8819
|
+
* @enum {string}
|
|
8820
|
+
*/
|
|
8821
|
+
code: "forbidden" | "type_not_permitted" | "edge_type_not_permitted";
|
|
8822
|
+
/** @description A description of the error for a person to read. It can change, so don't match on it. */
|
|
8823
|
+
message: string;
|
|
8824
|
+
/** @description More about the error, such as the field it concerns. Each code defines its own details. */
|
|
8825
|
+
details?: {
|
|
8826
|
+
[key: string]: unknown;
|
|
8827
|
+
};
|
|
8828
|
+
};
|
|
8829
|
+
};
|
|
8830
|
+
/** @description An error response. */
|
|
8831
|
+
PluginInstallConflictRefusal: {
|
|
8832
|
+
/** @description What went wrong. */
|
|
8833
|
+
error: {
|
|
8834
|
+
/**
|
|
8835
|
+
* @description A machine-readable code for the error. Use it in your logic.
|
|
8836
|
+
* @enum {string}
|
|
8837
|
+
*/
|
|
8838
|
+
code: "conflict" | "type_exists" | "plugin_child_conflict" | "plugin_narrows" | "plugin_needs_newer_server" | "plugin_version_older" | "instance_changed";
|
|
8839
|
+
/** @description A description of the error for a person to read. It can change, so don't match on it. */
|
|
8840
|
+
message: string;
|
|
8841
|
+
/** @description More about the error, such as the field it concerns. Each code defines its own details. */
|
|
8842
|
+
details?: {
|
|
8843
|
+
[key: string]: unknown;
|
|
8844
|
+
};
|
|
8845
|
+
};
|
|
8846
|
+
};
|
|
8847
|
+
/** @description The sign-in that first installed a plugin. */
|
|
8848
|
+
PluginInstaller: {
|
|
8849
|
+
/**
|
|
8850
|
+
* @description The recorded sign-in kind. `browser`: the owner's browser. `app`: an app the owner approved. `key`: an API key. `local`: the local command on the server's machine.
|
|
8851
|
+
* @enum {string}
|
|
8852
|
+
*/
|
|
8853
|
+
kind: "browser" | "app" | "key" | "local";
|
|
8854
|
+
/**
|
|
8855
|
+
* @description The ID the sign-in has in `GET /owner/sign-ins`, `local` for the local command, or an app's client ID if its sign-in was already gone. It stays the same after the sign-in ends.
|
|
8856
|
+
* @example 01a1011b-b5e5-7be6-8f3b-77492475b5a4
|
|
8857
|
+
*/
|
|
8858
|
+
id: string;
|
|
8859
|
+
/**
|
|
8860
|
+
* @description The sign-in's name when the action happened, as `GET /owner/sign-ins` showed it. At most 200 characters.
|
|
8861
|
+
* @example Safari on macOS
|
|
8862
|
+
*/
|
|
8863
|
+
name: string;
|
|
8864
|
+
};
|
|
8865
|
+
/** @description A page holding every installed plugin. */
|
|
8866
|
+
PluginPage: {
|
|
8867
|
+
/** @description Every installed plugin, by name. */
|
|
8868
|
+
data: components["schemas"]["Plugin"][];
|
|
8869
|
+
/** @description Always `null`: Marfa returns every installed plugin in one page. */
|
|
8870
|
+
next_cursor: string | null;
|
|
8871
|
+
};
|
|
8872
|
+
/** @description An `app.<vendor>` namespace and who holds it. Only the app that holds it registers types under it, and that app reaches the namespace's items without a scope that names them. While the owner holds it, no app does until the owner gives it to one. */
|
|
8873
|
+
AppVendor: {
|
|
8874
|
+
/**
|
|
8875
|
+
* @description The namespace, as `app.<vendor>`.
|
|
8876
|
+
* @example app.acme
|
|
8877
|
+
*/
|
|
8878
|
+
vendor: string;
|
|
8879
|
+
/**
|
|
8880
|
+
* @description The OAuth client ID of the app that holds the namespace, or `null` while the owner holds it because no one app is known to have made its types.
|
|
8881
|
+
* @example 01a10127-d974-7c54-8cc4-5c5581d45c4c
|
|
8882
|
+
*/
|
|
8883
|
+
client_id: string | null;
|
|
8884
|
+
/**
|
|
8885
|
+
* Format: date-time
|
|
8886
|
+
* @description When the namespace was first held, or when it was given to the app that holds it.
|
|
8887
|
+
* @example 2026-11-21T09:30:00.000Z
|
|
8888
|
+
*/
|
|
8889
|
+
claimed_at: string;
|
|
8890
|
+
};
|
|
8891
|
+
/** @description A page holding every held `app.<vendor>` namespace. */
|
|
8892
|
+
AppVendorPage: {
|
|
8893
|
+
/** @description Every held namespace, by name. */
|
|
8894
|
+
data: components["schemas"]["AppVendor"][];
|
|
8895
|
+
/** @description Always `null`: every binding comes in one page. */
|
|
8896
|
+
next_cursor: null;
|
|
8897
|
+
};
|
|
8466
8898
|
};
|
|
8467
8899
|
responses: never;
|
|
8468
8900
|
parameters: never;
|
|
@@ -8519,7 +8951,7 @@ interface operations {
|
|
|
8519
8951
|
limit?: number;
|
|
8520
8952
|
/** @description The `next_cursor` from the previous page. Leave it out to get the first page. */
|
|
8521
8953
|
cursor?: string;
|
|
8522
|
-
/** @description Comma-separated extras. `edges`, `metadata` and `extensions` add that data to each item. `
|
|
8954
|
+
/** @description Comma-separated extras. `edges`, `metadata` and `extensions` add that data to each item. `hidden` also returns `system.*` and `app.*` items, which are left out by default; a type filter naming one does the same. */
|
|
8523
8955
|
include?: string;
|
|
8524
8956
|
};
|
|
8525
8957
|
header?: {
|
|
@@ -11133,7 +11565,7 @@ interface operations {
|
|
|
11133
11565
|
* }
|
|
11134
11566
|
*/
|
|
11135
11567
|
"application/json": {
|
|
11136
|
-
/** @description The items found, in any state, in the order the request named their keys, each once. Items you can't read, and `system.*` items, are left out. */
|
|
11568
|
+
/** @description The items found, in any state, in the order the request named their keys, each once. Items you can't read, and `system.*` and `app.*` items, are left out. */
|
|
11137
11569
|
data: components["schemas"]["Item"][];
|
|
11138
11570
|
/** @description The tombstones under `type` for the keys named, in the order named. Empty when you look up by `ids`. */
|
|
11139
11571
|
tombstones: components["schemas"]["Tombstone"][];
|
|
@@ -11294,7 +11726,7 @@ interface operations {
|
|
|
11294
11726
|
requestBody: {
|
|
11295
11727
|
content: {
|
|
11296
11728
|
"application/json": {
|
|
11297
|
-
/** @description The titles to look for, at most 200, each at most
|
|
11729
|
+
/** @description The titles to look for, at most 200, each at most 1,000 Unicode characters, not UTF-16 code units. Case, Unicode form and surrounding white space do not matter. */
|
|
11298
11730
|
names: string[];
|
|
11299
11731
|
};
|
|
11300
11732
|
};
|
|
@@ -11341,7 +11773,7 @@ interface operations {
|
|
|
11341
11773
|
};
|
|
11342
11774
|
/**
|
|
11343
11775
|
* @description - `missing_required_field`: `names` is missing.
|
|
11344
|
-
* - `validation_error`: `names` is not a list of strings, has more than 200 names, has a name longer than 1,000
|
|
11776
|
+
* - `validation_error`: `names` is not a list of strings, has more than 200 names, has a name longer than 1,000 Unicode characters, or the body has a field this endpoint doesn't take.
|
|
11345
11777
|
*/
|
|
11346
11778
|
400: {
|
|
11347
11779
|
headers: {
|
|
@@ -11495,8 +11927,8 @@ interface operations {
|
|
|
11495
11927
|
"application/json": {
|
|
11496
11928
|
/** @description The IDs of the items to read, at most 100. */
|
|
11497
11929
|
ids: string[];
|
|
11498
|
-
/** @description `edges`, `metadata` and `extensions` add that data to each item. `
|
|
11499
|
-
include?: ("edges" | "metadata" | "extensions" | "
|
|
11930
|
+
/** @description `edges`, `metadata` and `extensions` add that data to each item. `hidden` also returns `system.*` and `app.*` items, which are left out by default. */
|
|
11931
|
+
include?: ("edges" | "metadata" | "extensions" | "hidden")[];
|
|
11500
11932
|
};
|
|
11501
11933
|
};
|
|
11502
11934
|
};
|
|
@@ -12247,8 +12679,8 @@ interface operations {
|
|
|
12247
12679
|
updated_after?: string;
|
|
12248
12680
|
/** @description Only return items changed before this time. It doesn't change the ordering, so it works with any `sort`. */
|
|
12249
12681
|
updated_before?: string;
|
|
12250
|
-
/** @description `
|
|
12251
|
-
include?: "
|
|
12682
|
+
/** @description `hidden` counts `system.*` and `app.*` items too, which are left out by default. A `type` filter naming one opts in on its own. */
|
|
12683
|
+
include?: "hidden";
|
|
12252
12684
|
};
|
|
12253
12685
|
header?: never;
|
|
12254
12686
|
path?: never;
|
|
@@ -18386,7 +18818,7 @@ interface operations {
|
|
|
18386
18818
|
source?: string;
|
|
18387
18819
|
/** @description Only return items in this tier. Omit it or send `all` for both tiers. */
|
|
18388
18820
|
tier?: "library" | "feed" | "all";
|
|
18389
|
-
/** @description Comma-separated extras. `
|
|
18821
|
+
/** @description Comma-separated extras. `hidden` also returns `system.*` and `app.*` items, which are left out by default. A type filter naming one does the same. */
|
|
18390
18822
|
include?: string;
|
|
18391
18823
|
/** @description Comma-separated tags. Only return items that carry all of them. At most 100 distinct tags, each at most 128 characters. */
|
|
18392
18824
|
tags?: string;
|
|
@@ -18572,24 +19004,20 @@ interface operations {
|
|
|
18572
19004
|
};
|
|
18573
19005
|
};
|
|
18574
19006
|
};
|
|
18575
|
-
|
|
19007
|
+
listPlugins: {
|
|
18576
19008
|
parameters: {
|
|
18577
19009
|
query?: never;
|
|
18578
|
-
header?:
|
|
18579
|
-
/** @description The reach from a copy stream, for a working copy. Marfa reads the current data and checks the reach in one snapshot, and returns `409 reach_changed` if it has changed. Leave it out for an ordinary read. */
|
|
18580
|
-
"X-Marfa-Reach"?: string;
|
|
18581
|
-
};
|
|
19010
|
+
header?: never;
|
|
18582
19011
|
path?: never;
|
|
18583
19012
|
cookie?: never;
|
|
18584
19013
|
};
|
|
18585
19014
|
requestBody?: never;
|
|
18586
19015
|
responses: {
|
|
18587
|
-
/** @description Returns
|
|
19016
|
+
/** @description Returns the installed plugins. */
|
|
18588
19017
|
200: {
|
|
18589
19018
|
headers: {
|
|
18590
19019
|
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
18591
19020
|
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
18592
|
-
"X-Marfa-Reach": components["headers"]["X-Marfa-Reach"];
|
|
18593
19021
|
[name: string]: unknown;
|
|
18594
19022
|
};
|
|
18595
19023
|
content: {
|
|
@@ -18597,74 +19025,35 @@ interface operations {
|
|
|
18597
19025
|
* @example {
|
|
18598
19026
|
* "data": [
|
|
18599
19027
|
* {
|
|
18600
|
-
* "
|
|
18601
|
-
* "
|
|
18602
|
-
* "
|
|
18603
|
-
* "
|
|
18604
|
-
*
|
|
18605
|
-
*
|
|
18606
|
-
*
|
|
18607
|
-
*
|
|
18608
|
-
*
|
|
18609
|
-
*
|
|
18610
|
-
*
|
|
18611
|
-
*
|
|
18612
|
-
*
|
|
18613
|
-
*
|
|
18614
|
-
* "
|
|
18615
|
-
* "
|
|
18616
|
-
*
|
|
18617
|
-
*
|
|
18618
|
-
*
|
|
18619
|
-
*
|
|
18620
|
-
*
|
|
18621
|
-
* }
|
|
18622
|
-
* }
|
|
18623
|
-
* },
|
|
18624
|
-
* {
|
|
18625
|
-
* "id": "acme.deal",
|
|
18626
|
-
* "label": "Deal",
|
|
18627
|
-
* "version": 0,
|
|
18628
|
-
* "fields": {
|
|
18629
|
-
* "name": {
|
|
18630
|
-
* "type": "string",
|
|
18631
|
-
* "label": "Name",
|
|
18632
|
-
* "required": true
|
|
18633
|
-
* },
|
|
18634
|
-
* "amount": {
|
|
18635
|
-
* "type": "number",
|
|
18636
|
-
* "label": "Amount"
|
|
18637
|
-
* },
|
|
18638
|
-
* "stage": {
|
|
18639
|
-
* "type": "enum",
|
|
18640
|
-
* "label": "Stage",
|
|
18641
|
-
* "enum_values": [
|
|
18642
|
-
* "lead",
|
|
18643
|
-
* "won",
|
|
18644
|
-
* "lost"
|
|
18645
|
-
* ]
|
|
18646
|
-
* }
|
|
18647
|
-
* },
|
|
18648
|
-
* "display_hints": {
|
|
18649
|
-
* "title_field": "name"
|
|
19028
|
+
* "name": "tickets",
|
|
19029
|
+
* "title": "Tickets",
|
|
19030
|
+
* "description": "Tickets for tracking work.",
|
|
19031
|
+
* "mark": "lucide:ticket",
|
|
19032
|
+
* "maker": "Marfa",
|
|
19033
|
+
* "marfa": "0.0.90",
|
|
19034
|
+
* "version": "1.2.0",
|
|
19035
|
+
* "types": [
|
|
19036
|
+
* "common.ticket",
|
|
19037
|
+
* "common.ticket.spike"
|
|
19038
|
+
* ],
|
|
19039
|
+
* "edge_types": [
|
|
19040
|
+
* "blocks"
|
|
19041
|
+
* ],
|
|
19042
|
+
* "connector": null,
|
|
19043
|
+
* "fingerprint": "9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08",
|
|
19044
|
+
* "installed_at": "2026-11-21T10:00:00.000Z",
|
|
19045
|
+
* "installed_by": {
|
|
19046
|
+
* "kind": "key",
|
|
19047
|
+
* "id": "01a1011b-b5e5-7be6-8f3b-77492475b5a4",
|
|
19048
|
+
* "name": "laptop"
|
|
18650
19049
|
* },
|
|
18651
|
-
* "
|
|
18652
|
-
* "plural": "Deals",
|
|
18653
|
-
* "own_roles": [],
|
|
18654
|
-
* "provenance": {
|
|
18655
|
-
* "origin": "user",
|
|
18656
|
-
* "created_by": {
|
|
18657
|
-
* "kind": "key",
|
|
18658
|
-
* "id": "01a1011b-b5e5-7be6-8f3b-77492475b5a4",
|
|
18659
|
-
* "name": "CRM sync"
|
|
18660
|
-
* }
|
|
18661
|
-
* }
|
|
19050
|
+
* "updated_at": "2026-11-21T12:00:00.000Z"
|
|
18662
19051
|
* }
|
|
18663
19052
|
* ],
|
|
18664
19053
|
* "next_cursor": null
|
|
18665
19054
|
* }
|
|
18666
19055
|
*/
|
|
18667
|
-
"application/json": components["schemas"]["
|
|
19056
|
+
"application/json": components["schemas"]["PluginPage"];
|
|
18668
19057
|
};
|
|
18669
19058
|
};
|
|
18670
19059
|
/** @description - `validation_error`: the query has a parameter this endpoint doesn't take. */
|
|
@@ -18767,7 +19156,7 @@ interface operations {
|
|
|
18767
19156
|
};
|
|
18768
19157
|
};
|
|
18769
19158
|
};
|
|
18770
|
-
|
|
19159
|
+
installPlugin: {
|
|
18771
19160
|
parameters: {
|
|
18772
19161
|
query?: never;
|
|
18773
19162
|
header?: {
|
|
@@ -18779,12 +19168,12 @@ interface operations {
|
|
|
18779
19168
|
};
|
|
18780
19169
|
requestBody: {
|
|
18781
19170
|
content: {
|
|
18782
|
-
"application/json": components["schemas"]["
|
|
19171
|
+
"application/json": components["schemas"]["PluginBundle"];
|
|
18783
19172
|
};
|
|
18784
19173
|
};
|
|
18785
19174
|
responses: {
|
|
18786
|
-
/** @description Returns the
|
|
18787
|
-
|
|
19175
|
+
/** @description Returns the plugin after a newer version only added to it, or as it is when this version is already installed. */
|
|
19176
|
+
200: {
|
|
18788
19177
|
headers: {
|
|
18789
19178
|
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
18790
19179
|
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
@@ -18793,39 +19182,77 @@ interface operations {
|
|
|
18793
19182
|
content: {
|
|
18794
19183
|
/**
|
|
18795
19184
|
* @example {
|
|
18796
|
-
* "
|
|
18797
|
-
* "
|
|
18798
|
-
* "
|
|
18799
|
-
* "
|
|
18800
|
-
*
|
|
18801
|
-
*
|
|
18802
|
-
*
|
|
18803
|
-
*
|
|
18804
|
-
*
|
|
19185
|
+
* "name": "tickets",
|
|
19186
|
+
* "title": "Tickets",
|
|
19187
|
+
* "description": "Tickets for tracking work.",
|
|
19188
|
+
* "mark": "lucide:ticket",
|
|
19189
|
+
* "maker": "Marfa",
|
|
19190
|
+
* "marfa": "0.0.90",
|
|
19191
|
+
* "version": "1.2.0",
|
|
19192
|
+
* "types": [
|
|
19193
|
+
* "common.ticket",
|
|
19194
|
+
* "common.ticket.spike"
|
|
19195
|
+
* ],
|
|
19196
|
+
* "edge_types": [
|
|
19197
|
+
* "blocks"
|
|
19198
|
+
* ],
|
|
19199
|
+
* "connector": null,
|
|
19200
|
+
* "fingerprint": "9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08",
|
|
19201
|
+
* "installed_at": "2026-11-21T10:00:00.000Z",
|
|
19202
|
+
* "installed_by": {
|
|
19203
|
+
* "kind": "key",
|
|
19204
|
+
* "id": "01a1011b-b5e5-7be6-8f3b-77492475b5a4",
|
|
19205
|
+
* "name": "laptop"
|
|
18805
19206
|
* },
|
|
18806
|
-
* "
|
|
18807
|
-
* "
|
|
18808
|
-
*
|
|
19207
|
+
* "updated_at": "2026-11-21T12:00:00.000Z",
|
|
19208
|
+
* "outcome": "updated"
|
|
19209
|
+
* }
|
|
19210
|
+
*/
|
|
19211
|
+
"application/json": components["schemas"]["PluginInstalled"];
|
|
19212
|
+
};
|
|
19213
|
+
};
|
|
19214
|
+
/** @description Returns the newly installed plugin. */
|
|
19215
|
+
201: {
|
|
19216
|
+
headers: {
|
|
19217
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
19218
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
19219
|
+
[name: string]: unknown;
|
|
19220
|
+
};
|
|
19221
|
+
content: {
|
|
19222
|
+
/**
|
|
19223
|
+
* @example {
|
|
19224
|
+
* "name": "tickets",
|
|
19225
|
+
* "title": "Tickets",
|
|
19226
|
+
* "description": "Tickets for tracking work.",
|
|
19227
|
+
* "mark": "lucide:ticket",
|
|
19228
|
+
* "maker": "Marfa",
|
|
19229
|
+
* "marfa": "0.0.90",
|
|
19230
|
+
* "version": "1.0.0",
|
|
19231
|
+
* "types": [
|
|
19232
|
+
* "common.ticket",
|
|
19233
|
+
* "common.ticket.spike"
|
|
19234
|
+
* ],
|
|
19235
|
+
* "edge_types": [
|
|
19236
|
+
* "blocks"
|
|
19237
|
+
* ],
|
|
19238
|
+
* "connector": null,
|
|
19239
|
+
* "fingerprint": "9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08",
|
|
19240
|
+
* "installed_at": "2026-11-21T10:00:00.000Z",
|
|
19241
|
+
* "installed_by": {
|
|
19242
|
+
* "kind": "key",
|
|
19243
|
+
* "id": "01a1011b-b5e5-7be6-8f3b-77492475b5a4",
|
|
19244
|
+
* "name": "laptop"
|
|
18809
19245
|
* },
|
|
18810
|
-
* "
|
|
18811
|
-
*
|
|
18812
|
-
* "created_by": {
|
|
18813
|
-
* "kind": "key",
|
|
18814
|
-
* "id": "01a1011b-b5e5-7be6-8f3b-77492475b5a4",
|
|
18815
|
-
* "name": "CRM sync"
|
|
18816
|
-
* }
|
|
18817
|
-
* }
|
|
19246
|
+
* "updated_at": "2026-11-21T10:00:00.000Z",
|
|
19247
|
+
* "outcome": "installed"
|
|
18818
19248
|
* }
|
|
18819
19249
|
*/
|
|
18820
|
-
"application/json": components["schemas"]["
|
|
19250
|
+
"application/json": components["schemas"]["PluginInstalled"];
|
|
18821
19251
|
};
|
|
18822
19252
|
};
|
|
18823
19253
|
/**
|
|
18824
|
-
* @description - `
|
|
18825
|
-
* - `
|
|
18826
|
-
* - `invalid_schema`: the schema is invalid or has a key it doesn't define (`details.errors` names each path).
|
|
18827
|
-
* - `property_shadows_field`: a field is named like one every item has.
|
|
18828
|
-
* - `inheritance_violation`: the type reshapes an inherited field.
|
|
19254
|
+
* @description - `validation_error`: the bundle has a key it does not hold, a field of the wrong shape, an ID named twice, or an edge type the rules refuse. `details.errors` names each.
|
|
19255
|
+
* - `missing_required_field`, `invalid_schema`, `inheritance_violation`, `property_shadows_field`: a type is refused as `POST /types` refuses it. `details.type_id` names it.
|
|
18829
19256
|
*/
|
|
18830
19257
|
400: {
|
|
18831
19258
|
headers: {
|
|
@@ -18835,7 +19262,7 @@ interface operations {
|
|
|
18835
19262
|
[name: string]: unknown;
|
|
18836
19263
|
};
|
|
18837
19264
|
content: {
|
|
18838
|
-
"application/json": components["schemas"]["
|
|
19265
|
+
"application/json": components["schemas"]["PluginBundleRefusal"];
|
|
18839
19266
|
};
|
|
18840
19267
|
};
|
|
18841
19268
|
/** @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. */
|
|
@@ -18851,8 +19278,9 @@ interface operations {
|
|
|
18851
19278
|
};
|
|
18852
19279
|
};
|
|
18853
19280
|
/**
|
|
18854
|
-
* @description - `forbidden`:
|
|
18855
|
-
* - `type_not_permitted`:
|
|
19281
|
+
* @description - `forbidden`: no `schema.write`, no `connectors.manage` for a `connector` (`details.required_scope`), a type under `core`, `system`, `marfa`, `app` or `user` (`details.namespace`), or app guidance.
|
|
19282
|
+
* - `type_not_permitted`: no write on a type of the bundle, or on a parent outside it that isn't shipped or under `common`.
|
|
19283
|
+
* - `edge_type_not_permitted`: no write on an edge type name of the bundle.
|
|
18856
19284
|
*/
|
|
18857
19285
|
403: {
|
|
18858
19286
|
headers: {
|
|
@@ -18862,7 +19290,7 @@ interface operations {
|
|
|
18862
19290
|
[name: string]: unknown;
|
|
18863
19291
|
};
|
|
18864
19292
|
content: {
|
|
18865
|
-
"application/json": components["schemas"]["
|
|
19293
|
+
"application/json": components["schemas"]["PluginInstallForbiddenRefusal"];
|
|
18866
19294
|
};
|
|
18867
19295
|
};
|
|
18868
19296
|
/** @description `request_timeout`: the request body didn't arrive whole within 180 seconds. Nothing changed, and Marfa closed the connection. Send the request again. A body larger than about 21 MiB can't arrive in that time over a 1 Mbit/s link, so send it in smaller requests. */
|
|
@@ -18878,8 +19306,12 @@ interface operations {
|
|
|
18878
19306
|
};
|
|
18879
19307
|
};
|
|
18880
19308
|
/**
|
|
18881
|
-
* @description - `
|
|
18882
|
-
* - `
|
|
19309
|
+
* @description - `plugin_needs_newer_server`: the bundle needs a later Marfa.
|
|
19310
|
+
* - `plugin_version_older`: a later version is installed.
|
|
19311
|
+
* - `type_exists`: a type exists that the plugin did not install.
|
|
19312
|
+
* - `plugin_narrows`: a type loses or narrows a member. See `details.changes`.
|
|
19313
|
+
* - `plugin_child_conflict`: a type below clashes. See `details.conflicts`.
|
|
19314
|
+
* - `conflict`: an edge type is held in another shape.
|
|
18883
19315
|
*/
|
|
18884
19316
|
409: {
|
|
18885
19317
|
headers: {
|
|
@@ -18889,7 +19321,7 @@ interface operations {
|
|
|
18889
19321
|
[name: string]: unknown;
|
|
18890
19322
|
};
|
|
18891
19323
|
content: {
|
|
18892
|
-
"application/json": components["schemas"]["
|
|
19324
|
+
"application/json": components["schemas"]["PluginInstallConflictRefusal"];
|
|
18893
19325
|
};
|
|
18894
19326
|
};
|
|
18895
19327
|
/** @description `contract_mismatch`: `X-Marfa-Contract` names another contract version than this instance speaks, or is not a whole number. Nothing was done. */
|
|
@@ -18916,18 +19348,6 @@ interface operations {
|
|
|
18916
19348
|
"application/json": components["schemas"]["RequestTooLargeRefusal"];
|
|
18917
19349
|
};
|
|
18918
19350
|
};
|
|
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
19351
|
/** @description `rate_limited`: you sent too many requests. Wait for the number of seconds in `Retry-After`, then try again. */
|
|
18932
19352
|
429: {
|
|
18933
19353
|
headers: {
|
|
@@ -18980,19 +19400,19 @@ interface operations {
|
|
|
18980
19400
|
};
|
|
18981
19401
|
};
|
|
18982
19402
|
};
|
|
18983
|
-
|
|
19403
|
+
getPlugin: {
|
|
18984
19404
|
parameters: {
|
|
18985
19405
|
query?: never;
|
|
18986
19406
|
header?: never;
|
|
18987
19407
|
path: {
|
|
18988
|
-
/** @description The
|
|
18989
|
-
|
|
19408
|
+
/** @description The plugin's name. */
|
|
19409
|
+
name: string;
|
|
18990
19410
|
};
|
|
18991
19411
|
cookie?: never;
|
|
18992
19412
|
};
|
|
18993
19413
|
requestBody?: never;
|
|
18994
19414
|
responses: {
|
|
18995
|
-
/** @description Returns the
|
|
19415
|
+
/** @description Returns the plugin. */
|
|
18996
19416
|
200: {
|
|
18997
19417
|
headers: {
|
|
18998
19418
|
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
@@ -19002,45 +19422,32 @@ interface operations {
|
|
|
19002
19422
|
content: {
|
|
19003
19423
|
/**
|
|
19004
19424
|
* @example {
|
|
19005
|
-
* "
|
|
19006
|
-
* "
|
|
19007
|
-
* "
|
|
19008
|
-
*
|
|
19009
|
-
*
|
|
19010
|
-
*
|
|
19011
|
-
*
|
|
19012
|
-
*
|
|
19013
|
-
* "
|
|
19014
|
-
*
|
|
19015
|
-
*
|
|
19016
|
-
*
|
|
19017
|
-
* "
|
|
19018
|
-
*
|
|
19019
|
-
*
|
|
19020
|
-
*
|
|
19021
|
-
*
|
|
19022
|
-
*
|
|
19023
|
-
*
|
|
19024
|
-
*
|
|
19025
|
-
*
|
|
19026
|
-
* },
|
|
19027
|
-
* "label": "Deal",
|
|
19028
|
-
* "plural": "Deals",
|
|
19029
|
-
* "description": "A sales deal.",
|
|
19030
|
-
* "display_hints": {
|
|
19031
|
-
* "title_field": "name"
|
|
19425
|
+
* "name": "tickets",
|
|
19426
|
+
* "title": "Tickets",
|
|
19427
|
+
* "description": "Tickets for tracking work.",
|
|
19428
|
+
* "mark": "lucide:ticket",
|
|
19429
|
+
* "maker": "Marfa",
|
|
19430
|
+
* "marfa": "0.0.90",
|
|
19431
|
+
* "version": "1.2.0",
|
|
19432
|
+
* "types": [
|
|
19433
|
+
* "common.ticket",
|
|
19434
|
+
* "common.ticket.spike"
|
|
19435
|
+
* ],
|
|
19436
|
+
* "edge_types": [
|
|
19437
|
+
* "blocks"
|
|
19438
|
+
* ],
|
|
19439
|
+
* "connector": null,
|
|
19440
|
+
* "fingerprint": "9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08",
|
|
19441
|
+
* "installed_at": "2026-11-21T10:00:00.000Z",
|
|
19442
|
+
* "installed_by": {
|
|
19443
|
+
* "kind": "key",
|
|
19444
|
+
* "id": "01a1011b-b5e5-7be6-8f3b-77492475b5a4",
|
|
19445
|
+
* "name": "laptop"
|
|
19032
19446
|
* },
|
|
19033
|
-
* "
|
|
19034
|
-
* "origin": "user",
|
|
19035
|
-
* "created_by": {
|
|
19036
|
-
* "kind": "key",
|
|
19037
|
-
* "id": "01a1011b-b5e5-7be6-8f3b-77492475b5a4",
|
|
19038
|
-
* "name": "CRM sync"
|
|
19039
|
-
* }
|
|
19040
|
-
* }
|
|
19447
|
+
* "updated_at": "2026-11-21T12:00:00.000Z"
|
|
19041
19448
|
* }
|
|
19042
19449
|
*/
|
|
19043
|
-
"application/json": components["schemas"]["
|
|
19450
|
+
"application/json": components["schemas"]["Plugin"];
|
|
19044
19451
|
};
|
|
19045
19452
|
};
|
|
19046
19453
|
/** @description - `validation_error`: the query has a parameter this endpoint doesn't take. */
|
|
@@ -19067,7 +19474,7 @@ interface operations {
|
|
|
19067
19474
|
"application/json": components["schemas"]["UnauthorizedRefusal"];
|
|
19068
19475
|
};
|
|
19069
19476
|
};
|
|
19070
|
-
/** @description `
|
|
19477
|
+
/** @description `plugin_not_found`: no plugin of this name is installed. */
|
|
19071
19478
|
404: {
|
|
19072
19479
|
headers: {
|
|
19073
19480
|
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
@@ -19076,10 +19483,10 @@ interface operations {
|
|
|
19076
19483
|
[name: string]: unknown;
|
|
19077
19484
|
};
|
|
19078
19485
|
content: {
|
|
19079
|
-
"application/json": components["schemas"]["
|
|
19486
|
+
"application/json": components["schemas"]["PluginNotFoundRefusal"];
|
|
19080
19487
|
};
|
|
19081
19488
|
};
|
|
19082
|
-
/** @description `
|
|
19489
|
+
/** @description `reach_changed`: the reach in `X-Marfa-Reach` has changed. Rebuild the working copy. */
|
|
19083
19490
|
409: {
|
|
19084
19491
|
headers: {
|
|
19085
19492
|
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
@@ -19088,7 +19495,7 @@ interface operations {
|
|
|
19088
19495
|
[name: string]: unknown;
|
|
19089
19496
|
};
|
|
19090
19497
|
content: {
|
|
19091
|
-
"application/json": components["schemas"]["
|
|
19498
|
+
"application/json": components["schemas"]["ReachChangedRefusal"];
|
|
19092
19499
|
};
|
|
19093
19500
|
};
|
|
19094
19501
|
/** @description `contract_mismatch`: `X-Marfa-Contract` names another contract version than this instance speaks, or is not a whole number. Nothing was done. */
|
|
@@ -19155,29 +19562,22 @@ interface operations {
|
|
|
19155
19562
|
};
|
|
19156
19563
|
};
|
|
19157
19564
|
};
|
|
19158
|
-
|
|
19565
|
+
removePlugin: {
|
|
19159
19566
|
parameters: {
|
|
19160
|
-
query?:
|
|
19161
|
-
/** @description `true` to keep the rows and values of tables and columns the replacement removes or retypes, instead of refusing it. */
|
|
19162
|
-
force?: boolean;
|
|
19163
|
-
};
|
|
19567
|
+
query?: never;
|
|
19164
19568
|
header?: {
|
|
19165
19569
|
/** @description The ID of the instance you expect, as `GET /` returns it. If another instance answers at this address, Marfa returns `409 instance_changed` and doesn't write. Leave it out to send the request to whichever instance answers. */
|
|
19166
19570
|
"X-Marfa-Instance-Id"?: string;
|
|
19167
19571
|
};
|
|
19168
19572
|
path: {
|
|
19169
|
-
/** @description The
|
|
19170
|
-
|
|
19573
|
+
/** @description The plugin's name. */
|
|
19574
|
+
name: string;
|
|
19171
19575
|
};
|
|
19172
19576
|
cookie?: never;
|
|
19173
19577
|
};
|
|
19174
|
-
requestBody
|
|
19175
|
-
content: {
|
|
19176
|
-
"application/json": components["schemas"]["TypeDefinitionUpdate"];
|
|
19177
|
-
};
|
|
19178
|
-
};
|
|
19578
|
+
requestBody?: never;
|
|
19179
19579
|
responses: {
|
|
19180
|
-
/** @description Returns
|
|
19580
|
+
/** @description Returns what Marfa removed and what it kept. */
|
|
19181
19581
|
200: {
|
|
19182
19582
|
headers: {
|
|
19183
19583
|
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
@@ -19187,54 +19587,25 @@ interface operations {
|
|
|
19187
19587
|
content: {
|
|
19188
19588
|
/**
|
|
19189
19589
|
* @example {
|
|
19190
|
-
* "
|
|
19191
|
-
*
|
|
19192
|
-
*
|
|
19193
|
-
* "fields": {
|
|
19194
|
-
* "name": {
|
|
19195
|
-
* "type": "string",
|
|
19196
|
-
* "label": "Name",
|
|
19197
|
-
* "required": true
|
|
19198
|
-
* },
|
|
19199
|
-
* "amount": {
|
|
19200
|
-
* "type": "number",
|
|
19201
|
-
* "label": "Amount"
|
|
19202
|
-
* },
|
|
19203
|
-
* "stage": {
|
|
19204
|
-
* "type": "enum",
|
|
19205
|
-
* "label": "Stage",
|
|
19206
|
-
* "enum_values": [
|
|
19207
|
-
* "lead",
|
|
19208
|
-
* "won",
|
|
19209
|
-
* "lost"
|
|
19210
|
-
* ]
|
|
19211
|
-
* }
|
|
19590
|
+
* "removed": {
|
|
19591
|
+
* "name": "tickets",
|
|
19592
|
+
* "version": "1.2.0"
|
|
19212
19593
|
* },
|
|
19213
|
-
* "
|
|
19214
|
-
*
|
|
19215
|
-
*
|
|
19216
|
-
*
|
|
19217
|
-
*
|
|
19218
|
-
*
|
|
19219
|
-
*
|
|
19220
|
-
*
|
|
19221
|
-
* "kind": "key",
|
|
19222
|
-
* "id": "01a1011b-b5e5-7be6-8f3b-77492475b5a4",
|
|
19223
|
-
* "name": "CRM sync"
|
|
19224
|
-
* }
|
|
19594
|
+
* "kept": {
|
|
19595
|
+
* "types": [
|
|
19596
|
+
* "common.ticket",
|
|
19597
|
+
* "common.ticket.spike"
|
|
19598
|
+
* ],
|
|
19599
|
+
* "edge_types": [
|
|
19600
|
+
* "blocks"
|
|
19601
|
+
* ]
|
|
19225
19602
|
* }
|
|
19226
19603
|
* }
|
|
19227
19604
|
*/
|
|
19228
|
-
"application/json": components["schemas"]["
|
|
19605
|
+
"application/json": components["schemas"]["PluginRemoved"];
|
|
19229
19606
|
};
|
|
19230
19607
|
};
|
|
19231
|
-
/**
|
|
19232
|
-
* @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).
|
|
19235
|
-
* - `property_shadows_field`: a field has the name of one every item has.
|
|
19236
|
-
* - `inheritance_violation`: a field's shape differs in a parent or subtype.
|
|
19237
|
-
*/
|
|
19608
|
+
/** @description - `validation_error`: the query has a parameter this endpoint doesn't take. */
|
|
19238
19609
|
400: {
|
|
19239
19610
|
headers: {
|
|
19240
19611
|
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
@@ -19243,7 +19614,7 @@ interface operations {
|
|
|
19243
19614
|
[name: string]: unknown;
|
|
19244
19615
|
};
|
|
19245
19616
|
content: {
|
|
19246
|
-
"application/json": components["schemas"]["
|
|
19617
|
+
"application/json": components["schemas"]["ValidationErrorRefusal"];
|
|
19247
19618
|
};
|
|
19248
19619
|
};
|
|
19249
19620
|
/** @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. */
|
|
@@ -19258,11 +19629,7 @@ interface operations {
|
|
|
19258
19629
|
"application/json": components["schemas"]["UnauthorizedRefusal"];
|
|
19259
19630
|
};
|
|
19260
19631
|
};
|
|
19261
|
-
/**
|
|
19262
|
-
* @description - `forbidden`: you lack `schema.write` and `metadata.types:write`, or `details.changes` names changes needing `schema.write`.
|
|
19263
|
-
* - `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).
|
|
19265
|
-
*/
|
|
19632
|
+
/** @description `forbidden`: you don't have `schema.write`. */
|
|
19266
19633
|
403: {
|
|
19267
19634
|
headers: {
|
|
19268
19635
|
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
@@ -19271,10 +19638,10 @@ interface operations {
|
|
|
19271
19638
|
[name: string]: unknown;
|
|
19272
19639
|
};
|
|
19273
19640
|
content: {
|
|
19274
|
-
"application/json": components["schemas"]["
|
|
19641
|
+
"application/json": components["schemas"]["ForbiddenRefusal"];
|
|
19275
19642
|
};
|
|
19276
19643
|
};
|
|
19277
|
-
/** @description `
|
|
19644
|
+
/** @description `plugin_not_found`: no plugin of this name is installed. */
|
|
19278
19645
|
404: {
|
|
19279
19646
|
headers: {
|
|
19280
19647
|
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
@@ -19283,25 +19650,10 @@ interface operations {
|
|
|
19283
19650
|
[name: string]: unknown;
|
|
19284
19651
|
};
|
|
19285
19652
|
content: {
|
|
19286
|
-
"application/json": components["schemas"]["
|
|
19287
|
-
};
|
|
19288
|
-
};
|
|
19289
|
-
/** @description `request_timeout`: the request body didn't arrive whole within 180 seconds. Nothing changed, and Marfa closed the connection. Send the request again. A body larger than about 21 MiB can't arrive in that time over a 1 Mbit/s link, so send it in smaller requests. */
|
|
19290
|
-
408: {
|
|
19291
|
-
headers: {
|
|
19292
|
-
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
19293
|
-
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
19294
|
-
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
19295
|
-
[name: string]: unknown;
|
|
19296
|
-
};
|
|
19297
|
-
content: {
|
|
19298
|
-
"application/json": components["schemas"]["RequestTimeoutRefusal"];
|
|
19653
|
+
"application/json": components["schemas"]["PluginNotFoundRefusal"];
|
|
19299
19654
|
};
|
|
19300
19655
|
};
|
|
19301
|
-
/**
|
|
19302
|
-
* @description - `link_taken`: the replacement names a `link_field` in which two items of the type, in any state, hold the same value.
|
|
19303
|
-
* - `type_in_use`: rows hold a table or column the replacement removes, or a column whose `type` it changes, and `force` isn't `true`. `details.tables` names each.
|
|
19304
|
-
*/
|
|
19656
|
+
/** @description `instance_changed`: another instance answers at this address. */
|
|
19305
19657
|
409: {
|
|
19306
19658
|
headers: {
|
|
19307
19659
|
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
@@ -19310,7 +19662,7 @@ interface operations {
|
|
|
19310
19662
|
[name: string]: unknown;
|
|
19311
19663
|
};
|
|
19312
19664
|
content: {
|
|
19313
|
-
"application/json": components["schemas"]["
|
|
19665
|
+
"application/json": components["schemas"]["InstanceChangedRefusal"];
|
|
19314
19666
|
};
|
|
19315
19667
|
};
|
|
19316
19668
|
/** @description `contract_mismatch`: `X-Marfa-Contract` names another contract version than this instance speaks, or is not a whole number. Nothing was done. */
|
|
@@ -19337,8 +19689,193 @@ interface operations {
|
|
|
19337
19689
|
"application/json": components["schemas"]["RequestTooLargeRefusal"];
|
|
19338
19690
|
};
|
|
19339
19691
|
};
|
|
19340
|
-
/** @description `
|
|
19341
|
-
|
|
19692
|
+
/** @description `rate_limited`: you sent too many requests. Wait for the number of seconds in `Retry-After`, then try again. */
|
|
19693
|
+
429: {
|
|
19694
|
+
headers: {
|
|
19695
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
19696
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
19697
|
+
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
19698
|
+
"Retry-After": components["headers"]["Retry-After"];
|
|
19699
|
+
[name: string]: unknown;
|
|
19700
|
+
};
|
|
19701
|
+
content: {
|
|
19702
|
+
"application/json": components["schemas"]["RateLimitedRefusal"];
|
|
19703
|
+
};
|
|
19704
|
+
};
|
|
19705
|
+
/** @description `internal_error`: Marfa failed in a way it didn't expect, and the request may not have completed. Read what you changed before you repeat a write. */
|
|
19706
|
+
500: {
|
|
19707
|
+
headers: {
|
|
19708
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
19709
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
19710
|
+
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
19711
|
+
[name: string]: unknown;
|
|
19712
|
+
};
|
|
19713
|
+
content: {
|
|
19714
|
+
"application/json": components["schemas"]["InternalErrorRefusal"];
|
|
19715
|
+
};
|
|
19716
|
+
};
|
|
19717
|
+
/** @description `write_contention`: the database was busy, and Marfa couldn't complete the request in time. Nothing changed. Try the request again. While a restore runs, `details.reason` is `restore_running`. */
|
|
19718
|
+
503: {
|
|
19719
|
+
headers: {
|
|
19720
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
19721
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
19722
|
+
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
19723
|
+
"Retry-After": components["headers"]["Retry-After"];
|
|
19724
|
+
[name: string]: unknown;
|
|
19725
|
+
};
|
|
19726
|
+
content: {
|
|
19727
|
+
"application/json": components["schemas"]["WriteContentionRefusal"];
|
|
19728
|
+
};
|
|
19729
|
+
};
|
|
19730
|
+
/** @description `insufficient_storage`: the disk that holds the instance's data has no room for the request, or the request would leave less free than the instance keeps in reserve. Nothing changed, unless `details.write_outcome` is `unknown`, which means the write may have landed: read what you changed before you repeat it. Free space on the disk, then try the request again. */
|
|
19731
|
+
507: {
|
|
19732
|
+
headers: {
|
|
19733
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
19734
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
19735
|
+
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
19736
|
+
[name: string]: unknown;
|
|
19737
|
+
};
|
|
19738
|
+
content: {
|
|
19739
|
+
"application/json": components["schemas"]["InsufficientStorageRefusal"];
|
|
19740
|
+
};
|
|
19741
|
+
};
|
|
19742
|
+
};
|
|
19743
|
+
};
|
|
19744
|
+
listTypes: {
|
|
19745
|
+
parameters: {
|
|
19746
|
+
query?: never;
|
|
19747
|
+
header?: {
|
|
19748
|
+
/** @description The reach from a copy stream, for a working copy. Marfa reads the current data and checks the reach in one snapshot, and returns `409 reach_changed` if it has changed. Leave it out for an ordinary read. */
|
|
19749
|
+
"X-Marfa-Reach"?: string;
|
|
19750
|
+
};
|
|
19751
|
+
path?: never;
|
|
19752
|
+
cookie?: never;
|
|
19753
|
+
};
|
|
19754
|
+
requestBody?: never;
|
|
19755
|
+
responses: {
|
|
19756
|
+
/** @description Returns every type. A type lists only its own fields, so resolve the rest through `parent`. */
|
|
19757
|
+
200: {
|
|
19758
|
+
headers: {
|
|
19759
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
19760
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
19761
|
+
"X-Marfa-Reach": components["headers"]["X-Marfa-Reach"];
|
|
19762
|
+
[name: string]: unknown;
|
|
19763
|
+
};
|
|
19764
|
+
content: {
|
|
19765
|
+
/**
|
|
19766
|
+
* @example {
|
|
19767
|
+
* "data": [
|
|
19768
|
+
* {
|
|
19769
|
+
* "id": "acme.contact",
|
|
19770
|
+
* "label": "Contact",
|
|
19771
|
+
* "version": 0,
|
|
19772
|
+
* "fields": {
|
|
19773
|
+
* "name": {
|
|
19774
|
+
* "type": "string",
|
|
19775
|
+
* "label": "Name",
|
|
19776
|
+
* "required": true
|
|
19777
|
+
* }
|
|
19778
|
+
* },
|
|
19779
|
+
* "display_hints": {
|
|
19780
|
+
* "title_field": "name"
|
|
19781
|
+
* },
|
|
19782
|
+
* "plural": "Contacts",
|
|
19783
|
+
* "own_roles": [],
|
|
19784
|
+
* "provenance": {
|
|
19785
|
+
* "origin": "registered",
|
|
19786
|
+
* "plugin": null,
|
|
19787
|
+
* "created_by": {
|
|
19788
|
+
* "kind": "key",
|
|
19789
|
+
* "id": "01a1011b-b5e5-7be6-8f3b-77492475b5a4",
|
|
19790
|
+
* "name": "CRM sync"
|
|
19791
|
+
* }
|
|
19792
|
+
* }
|
|
19793
|
+
* },
|
|
19794
|
+
* {
|
|
19795
|
+
* "id": "acme.deal",
|
|
19796
|
+
* "label": "Deal",
|
|
19797
|
+
* "version": 0,
|
|
19798
|
+
* "fields": {
|
|
19799
|
+
* "name": {
|
|
19800
|
+
* "type": "string",
|
|
19801
|
+
* "label": "Name",
|
|
19802
|
+
* "required": true
|
|
19803
|
+
* },
|
|
19804
|
+
* "amount": {
|
|
19805
|
+
* "type": "number",
|
|
19806
|
+
* "label": "Amount"
|
|
19807
|
+
* },
|
|
19808
|
+
* "stage": {
|
|
19809
|
+
* "type": "enum",
|
|
19810
|
+
* "label": "Stage",
|
|
19811
|
+
* "enum_values": [
|
|
19812
|
+
* "lead",
|
|
19813
|
+
* "won",
|
|
19814
|
+
* "lost"
|
|
19815
|
+
* ]
|
|
19816
|
+
* }
|
|
19817
|
+
* },
|
|
19818
|
+
* "display_hints": {
|
|
19819
|
+
* "title_field": "name"
|
|
19820
|
+
* },
|
|
19821
|
+
* "description": "A sales deal.",
|
|
19822
|
+
* "plural": "Deals",
|
|
19823
|
+
* "own_roles": [],
|
|
19824
|
+
* "provenance": {
|
|
19825
|
+
* "origin": "registered",
|
|
19826
|
+
* "plugin": null,
|
|
19827
|
+
* "created_by": {
|
|
19828
|
+
* "kind": "key",
|
|
19829
|
+
* "id": "01a1011b-b5e5-7be6-8f3b-77492475b5a4",
|
|
19830
|
+
* "name": "CRM sync"
|
|
19831
|
+
* }
|
|
19832
|
+
* }
|
|
19833
|
+
* }
|
|
19834
|
+
* ],
|
|
19835
|
+
* "next_cursor": null
|
|
19836
|
+
* }
|
|
19837
|
+
*/
|
|
19838
|
+
"application/json": components["schemas"]["TypeDefinitionPage"];
|
|
19839
|
+
};
|
|
19840
|
+
};
|
|
19841
|
+
/** @description - `validation_error`: the query has a parameter this endpoint doesn't take. */
|
|
19842
|
+
400: {
|
|
19843
|
+
headers: {
|
|
19844
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
19845
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
19846
|
+
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
19847
|
+
[name: string]: unknown;
|
|
19848
|
+
};
|
|
19849
|
+
content: {
|
|
19850
|
+
"application/json": components["schemas"]["ValidationErrorRefusal"];
|
|
19851
|
+
};
|
|
19852
|
+
};
|
|
19853
|
+
/** @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. */
|
|
19854
|
+
401: {
|
|
19855
|
+
headers: {
|
|
19856
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
19857
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
19858
|
+
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
19859
|
+
[name: string]: unknown;
|
|
19860
|
+
};
|
|
19861
|
+
content: {
|
|
19862
|
+
"application/json": components["schemas"]["UnauthorizedRefusal"];
|
|
19863
|
+
};
|
|
19864
|
+
};
|
|
19865
|
+
/** @description `reach_changed`: the reach in `X-Marfa-Reach` has changed. Rebuild the working copy. */
|
|
19866
|
+
409: {
|
|
19867
|
+
headers: {
|
|
19868
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
19869
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
19870
|
+
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
19871
|
+
[name: string]: unknown;
|
|
19872
|
+
};
|
|
19873
|
+
content: {
|
|
19874
|
+
"application/json": components["schemas"]["ReachChangedRefusal"];
|
|
19875
|
+
};
|
|
19876
|
+
};
|
|
19877
|
+
/** @description `contract_mismatch`: `X-Marfa-Contract` names another contract version than this instance speaks, or is not a whole number. Nothing was done. */
|
|
19878
|
+
412: {
|
|
19342
19879
|
headers: {
|
|
19343
19880
|
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
19344
19881
|
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
@@ -19346,7 +19883,7 @@ interface operations {
|
|
|
19346
19883
|
[name: string]: unknown;
|
|
19347
19884
|
};
|
|
19348
19885
|
content: {
|
|
19349
|
-
"application/json": components["schemas"]["
|
|
19886
|
+
"application/json": components["schemas"]["ContractMismatchRefusal"];
|
|
19350
19887
|
};
|
|
19351
19888
|
};
|
|
19352
19889
|
/** @description `rate_limited`: you sent too many requests. Wait for the number of seconds in `Retry-After`, then try again. */
|
|
@@ -19401,10 +19938,388 @@ interface operations {
|
|
|
19401
19938
|
};
|
|
19402
19939
|
};
|
|
19403
19940
|
};
|
|
19404
|
-
|
|
19941
|
+
registerType: {
|
|
19942
|
+
parameters: {
|
|
19943
|
+
query?: never;
|
|
19944
|
+
header?: {
|
|
19945
|
+
/** @description The ID of the instance you expect, as `GET /` returns it. If another instance answers at this address, Marfa returns `409 instance_changed` and doesn't write. Leave it out to send the request to whichever instance answers. */
|
|
19946
|
+
"X-Marfa-Instance-Id"?: string;
|
|
19947
|
+
};
|
|
19948
|
+
path?: never;
|
|
19949
|
+
cookie?: never;
|
|
19950
|
+
};
|
|
19951
|
+
requestBody: {
|
|
19952
|
+
content: {
|
|
19953
|
+
"application/json": components["schemas"]["TypeDefinitionInput"];
|
|
19954
|
+
};
|
|
19955
|
+
};
|
|
19956
|
+
responses: {
|
|
19957
|
+
/** @description Returns the new type. */
|
|
19958
|
+
201: {
|
|
19959
|
+
headers: {
|
|
19960
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
19961
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
19962
|
+
[name: string]: unknown;
|
|
19963
|
+
};
|
|
19964
|
+
content: {
|
|
19965
|
+
/**
|
|
19966
|
+
* @example {
|
|
19967
|
+
* "id": "acme.contact",
|
|
19968
|
+
* "label": "Contact",
|
|
19969
|
+
* "version": 0,
|
|
19970
|
+
* "fields": {
|
|
19971
|
+
* "name": {
|
|
19972
|
+
* "type": "string",
|
|
19973
|
+
* "label": "Name",
|
|
19974
|
+
* "required": true
|
|
19975
|
+
* }
|
|
19976
|
+
* },
|
|
19977
|
+
* "plural": "Contacts",
|
|
19978
|
+
* "display_hints": {
|
|
19979
|
+
* "title_field": "name"
|
|
19980
|
+
* },
|
|
19981
|
+
* "provenance": {
|
|
19982
|
+
* "origin": "registered",
|
|
19983
|
+
* "plugin": null,
|
|
19984
|
+
* "created_by": {
|
|
19985
|
+
* "kind": "key",
|
|
19986
|
+
* "id": "01a1011b-b5e5-7be6-8f3b-77492475b5a4",
|
|
19987
|
+
* "name": "CRM sync"
|
|
19988
|
+
* }
|
|
19989
|
+
* }
|
|
19990
|
+
* }
|
|
19991
|
+
*/
|
|
19992
|
+
"application/json": components["schemas"]["RegisteredType"];
|
|
19993
|
+
};
|
|
19994
|
+
};
|
|
19995
|
+
/**
|
|
19996
|
+
* @description - `missing_required_field`: `fields` is missing.
|
|
19997
|
+
* - `validation_error`: `id` is malformed, or `parent` isn't registered or makes too deep a chain.
|
|
19998
|
+
* - `invalid_schema`: the schema is invalid, or has an unknown key or overlong text (`details.errors` names each path).
|
|
19999
|
+
* - `property_shadows_field`: a field is named like one every item has.
|
|
20000
|
+
* - `inheritance_violation`: the type reshapes an inherited field.
|
|
20001
|
+
*/
|
|
20002
|
+
400: {
|
|
20003
|
+
headers: {
|
|
20004
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
20005
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
20006
|
+
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
20007
|
+
[name: string]: unknown;
|
|
20008
|
+
};
|
|
20009
|
+
content: {
|
|
20010
|
+
"application/json": components["schemas"]["InheritanceViolationOrInvalidSchemaOrMissingRequiredFieldOrPropertyShadowsFieldOrValidationErrorRefusal"];
|
|
20011
|
+
};
|
|
20012
|
+
};
|
|
20013
|
+
/** @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. */
|
|
20014
|
+
401: {
|
|
20015
|
+
headers: {
|
|
20016
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
20017
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
20018
|
+
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
20019
|
+
[name: string]: unknown;
|
|
20020
|
+
};
|
|
20021
|
+
content: {
|
|
20022
|
+
"application/json": components["schemas"]["UnauthorizedRefusal"];
|
|
20023
|
+
};
|
|
20024
|
+
};
|
|
20025
|
+
/**
|
|
20026
|
+
* @description - `forbidden`: you lack `metadata.types:write`, guidance needs `schema.write`, the identifier is under `core.*`, `system.*`, `marfa.*` or `common.*` (install its plugin), or you are an app and another app or the owner holds its `app.<vendor>` namespace (`details.namespace`).
|
|
20027
|
+
* - `type_not_permitted`: your type map lacks write on the identifier or a non-platform `parent` (`details.grant` names it).
|
|
20028
|
+
*/
|
|
20029
|
+
403: {
|
|
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"]["ForbiddenOrTypeNotPermittedRefusal"];
|
|
20038
|
+
};
|
|
20039
|
+
};
|
|
20040
|
+
/** @description `request_timeout`: the request body didn't arrive whole within 180 seconds. Nothing changed, and Marfa closed the connection. Send the request again. A body larger than about 21 MiB can't arrive in that time over a 1 Mbit/s link, so send it in smaller requests. */
|
|
20041
|
+
408: {
|
|
20042
|
+
headers: {
|
|
20043
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
20044
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
20045
|
+
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
20046
|
+
[name: string]: unknown;
|
|
20047
|
+
};
|
|
20048
|
+
content: {
|
|
20049
|
+
"application/json": components["schemas"]["RequestTimeoutRefusal"];
|
|
20050
|
+
};
|
|
20051
|
+
};
|
|
20052
|
+
/**
|
|
20053
|
+
* @description - `type_exists`: a type has this identifier.
|
|
20054
|
+
* - `link_taken`: two items that a forced delete left under this identifier hold the same value in the `link_field`.
|
|
20055
|
+
*/
|
|
20056
|
+
409: {
|
|
20057
|
+
headers: {
|
|
20058
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
20059
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
20060
|
+
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
20061
|
+
[name: string]: unknown;
|
|
20062
|
+
};
|
|
20063
|
+
content: {
|
|
20064
|
+
"application/json": components["schemas"]["LinkTakenOrTypeAlreadyExistsRefusal"] | components["schemas"]["InstanceChangedRefusal"];
|
|
20065
|
+
};
|
|
20066
|
+
};
|
|
20067
|
+
/** @description `contract_mismatch`: `X-Marfa-Contract` names another contract version than this instance speaks, or is not a whole number. Nothing was done. */
|
|
20068
|
+
412: {
|
|
20069
|
+
headers: {
|
|
20070
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
20071
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
20072
|
+
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
20073
|
+
[name: string]: unknown;
|
|
20074
|
+
};
|
|
20075
|
+
content: {
|
|
20076
|
+
"application/json": components["schemas"]["ContractMismatchRefusal"];
|
|
20077
|
+
};
|
|
20078
|
+
};
|
|
20079
|
+
/** @description `request_too_large`: the request body is larger than this instance accepts. */
|
|
20080
|
+
413: {
|
|
20081
|
+
headers: {
|
|
20082
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
20083
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
20084
|
+
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
20085
|
+
[name: string]: unknown;
|
|
20086
|
+
};
|
|
20087
|
+
content: {
|
|
20088
|
+
"application/json": components["schemas"]["RequestTooLargeRefusal"];
|
|
20089
|
+
};
|
|
20090
|
+
};
|
|
20091
|
+
/** @description `rate_limited`: you sent too many requests. Wait for the number of seconds in `Retry-After`, then try again. */
|
|
20092
|
+
429: {
|
|
20093
|
+
headers: {
|
|
20094
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
20095
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
20096
|
+
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
20097
|
+
"Retry-After": components["headers"]["Retry-After"];
|
|
20098
|
+
[name: string]: unknown;
|
|
20099
|
+
};
|
|
20100
|
+
content: {
|
|
20101
|
+
"application/json": components["schemas"]["RateLimitedRefusal"];
|
|
20102
|
+
};
|
|
20103
|
+
};
|
|
20104
|
+
/** @description `internal_error`: Marfa failed in a way it didn't expect, and the request may not have completed. Read what you changed before you repeat a write. */
|
|
20105
|
+
500: {
|
|
20106
|
+
headers: {
|
|
20107
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
20108
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
20109
|
+
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
20110
|
+
[name: string]: unknown;
|
|
20111
|
+
};
|
|
20112
|
+
content: {
|
|
20113
|
+
"application/json": components["schemas"]["InternalErrorRefusal"];
|
|
20114
|
+
};
|
|
20115
|
+
};
|
|
20116
|
+
/** @description `write_contention`: the database was busy, and Marfa couldn't complete the request in time. Nothing changed. Try the request again. While a restore runs, `details.reason` is `restore_running`. */
|
|
20117
|
+
503: {
|
|
20118
|
+
headers: {
|
|
20119
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
20120
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
20121
|
+
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
20122
|
+
"Retry-After": components["headers"]["Retry-After"];
|
|
20123
|
+
[name: string]: unknown;
|
|
20124
|
+
};
|
|
20125
|
+
content: {
|
|
20126
|
+
"application/json": components["schemas"]["WriteContentionRefusal"];
|
|
20127
|
+
};
|
|
20128
|
+
};
|
|
20129
|
+
/** @description `insufficient_storage`: the disk that holds the instance's data has no room for the request, or the request would leave less free than the instance keeps in reserve. Nothing changed, unless `details.write_outcome` is `unknown`, which means the write may have landed: read what you changed before you repeat it. Free space on the disk, then try the request again. */
|
|
20130
|
+
507: {
|
|
20131
|
+
headers: {
|
|
20132
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
20133
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
20134
|
+
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
20135
|
+
[name: string]: unknown;
|
|
20136
|
+
};
|
|
20137
|
+
content: {
|
|
20138
|
+
"application/json": components["schemas"]["InsufficientStorageRefusal"];
|
|
20139
|
+
};
|
|
20140
|
+
};
|
|
20141
|
+
};
|
|
20142
|
+
};
|
|
20143
|
+
getType: {
|
|
20144
|
+
parameters: {
|
|
20145
|
+
query?: never;
|
|
20146
|
+
header?: never;
|
|
20147
|
+
path: {
|
|
20148
|
+
/** @description The identifier of the type, such as `core.note`. */
|
|
20149
|
+
id: string;
|
|
20150
|
+
};
|
|
20151
|
+
cookie?: never;
|
|
20152
|
+
};
|
|
20153
|
+
requestBody?: never;
|
|
20154
|
+
responses: {
|
|
20155
|
+
/** @description Returns the type. */
|
|
20156
|
+
200: {
|
|
20157
|
+
headers: {
|
|
20158
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
20159
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
20160
|
+
[name: string]: unknown;
|
|
20161
|
+
};
|
|
20162
|
+
content: {
|
|
20163
|
+
/**
|
|
20164
|
+
* @example {
|
|
20165
|
+
* "id": "acme.deal",
|
|
20166
|
+
* "version": 0,
|
|
20167
|
+
* "fields": {
|
|
20168
|
+
* "name": {
|
|
20169
|
+
* "type": "string",
|
|
20170
|
+
* "label": "Name",
|
|
20171
|
+
* "required": true
|
|
20172
|
+
* },
|
|
20173
|
+
* "amount": {
|
|
20174
|
+
* "type": "number",
|
|
20175
|
+
* "label": "Amount"
|
|
20176
|
+
* },
|
|
20177
|
+
* "stage": {
|
|
20178
|
+
* "type": "enum",
|
|
20179
|
+
* "label": "Stage",
|
|
20180
|
+
* "enum_values": [
|
|
20181
|
+
* "lead",
|
|
20182
|
+
* "won",
|
|
20183
|
+
* "lost"
|
|
20184
|
+
* ]
|
|
20185
|
+
* }
|
|
20186
|
+
* },
|
|
20187
|
+
* "label": "Deal",
|
|
20188
|
+
* "plural": "Deals",
|
|
20189
|
+
* "description": "A sales deal.",
|
|
20190
|
+
* "display_hints": {
|
|
20191
|
+
* "title_field": "name"
|
|
20192
|
+
* },
|
|
20193
|
+
* "provenance": {
|
|
20194
|
+
* "origin": "registered",
|
|
20195
|
+
* "plugin": null,
|
|
20196
|
+
* "created_by": {
|
|
20197
|
+
* "kind": "key",
|
|
20198
|
+
* "id": "01a1011b-b5e5-7be6-8f3b-77492475b5a4",
|
|
20199
|
+
* "name": "CRM sync"
|
|
20200
|
+
* }
|
|
20201
|
+
* }
|
|
20202
|
+
* }
|
|
20203
|
+
*/
|
|
20204
|
+
"application/json": components["schemas"]["RegisteredType"];
|
|
20205
|
+
};
|
|
20206
|
+
};
|
|
20207
|
+
/** @description - `validation_error`: the query has a parameter this endpoint doesn't take. */
|
|
20208
|
+
400: {
|
|
20209
|
+
headers: {
|
|
20210
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
20211
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
20212
|
+
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
20213
|
+
[name: string]: unknown;
|
|
20214
|
+
};
|
|
20215
|
+
content: {
|
|
20216
|
+
"application/json": components["schemas"]["ValidationErrorRefusal"];
|
|
20217
|
+
};
|
|
20218
|
+
};
|
|
20219
|
+
/** @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. */
|
|
20220
|
+
401: {
|
|
20221
|
+
headers: {
|
|
20222
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
20223
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
20224
|
+
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
20225
|
+
[name: string]: unknown;
|
|
20226
|
+
};
|
|
20227
|
+
content: {
|
|
20228
|
+
"application/json": components["schemas"]["UnauthorizedRefusal"];
|
|
20229
|
+
};
|
|
20230
|
+
};
|
|
20231
|
+
/** @description `type_not_found`: no type has this identifier. */
|
|
20232
|
+
404: {
|
|
20233
|
+
headers: {
|
|
20234
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
20235
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
20236
|
+
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
20237
|
+
[name: string]: unknown;
|
|
20238
|
+
};
|
|
20239
|
+
content: {
|
|
20240
|
+
"application/json": components["schemas"]["TypeNotFoundRefusal"];
|
|
20241
|
+
};
|
|
20242
|
+
};
|
|
20243
|
+
/** @description `type_chain_unresolvable`: the type's stored definition does not read. `PUT /types/{id}` can correct it. */
|
|
20244
|
+
409: {
|
|
20245
|
+
headers: {
|
|
20246
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
20247
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
20248
|
+
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
20249
|
+
[name: string]: unknown;
|
|
20250
|
+
};
|
|
20251
|
+
content: {
|
|
20252
|
+
"application/json": components["schemas"]["TypeChainUnresolvableRefusal"];
|
|
20253
|
+
};
|
|
20254
|
+
};
|
|
20255
|
+
/** @description `contract_mismatch`: `X-Marfa-Contract` names another contract version than this instance speaks, or is not a whole number. Nothing was done. */
|
|
20256
|
+
412: {
|
|
20257
|
+
headers: {
|
|
20258
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
20259
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
20260
|
+
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
20261
|
+
[name: string]: unknown;
|
|
20262
|
+
};
|
|
20263
|
+
content: {
|
|
20264
|
+
"application/json": components["schemas"]["ContractMismatchRefusal"];
|
|
20265
|
+
};
|
|
20266
|
+
};
|
|
20267
|
+
/** @description `rate_limited`: you sent too many requests. Wait for the number of seconds in `Retry-After`, then try again. */
|
|
20268
|
+
429: {
|
|
20269
|
+
headers: {
|
|
20270
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
20271
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
20272
|
+
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
20273
|
+
"Retry-After": components["headers"]["Retry-After"];
|
|
20274
|
+
[name: string]: unknown;
|
|
20275
|
+
};
|
|
20276
|
+
content: {
|
|
20277
|
+
"application/json": components["schemas"]["RateLimitedRefusal"];
|
|
20278
|
+
};
|
|
20279
|
+
};
|
|
20280
|
+
/** @description `internal_error`: Marfa failed in a way it didn't expect, and the request may not have completed. Read what you changed before you repeat a write. */
|
|
20281
|
+
500: {
|
|
20282
|
+
headers: {
|
|
20283
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
20284
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
20285
|
+
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
20286
|
+
[name: string]: unknown;
|
|
20287
|
+
};
|
|
20288
|
+
content: {
|
|
20289
|
+
"application/json": components["schemas"]["InternalErrorRefusal"];
|
|
20290
|
+
};
|
|
20291
|
+
};
|
|
20292
|
+
/** @description `write_contention`: the database was busy, and Marfa couldn't complete the request in time. Nothing changed. Try the request again. While a restore runs, `details.reason` is `restore_running`. */
|
|
20293
|
+
503: {
|
|
20294
|
+
headers: {
|
|
20295
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
20296
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
20297
|
+
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
20298
|
+
"Retry-After": components["headers"]["Retry-After"];
|
|
20299
|
+
[name: string]: unknown;
|
|
20300
|
+
};
|
|
20301
|
+
content: {
|
|
20302
|
+
"application/json": components["schemas"]["WriteContentionRefusal"];
|
|
20303
|
+
};
|
|
20304
|
+
};
|
|
20305
|
+
/** @description `insufficient_storage`: the disk that holds the instance's data has no room for the request, or the request would leave less free than the instance keeps in reserve. Nothing changed, unless `details.write_outcome` is `unknown`, which means the write may have landed: read what you changed before you repeat it. Free space on the disk, then try the request again. */
|
|
20306
|
+
507: {
|
|
20307
|
+
headers: {
|
|
20308
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
20309
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
20310
|
+
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
20311
|
+
[name: string]: unknown;
|
|
20312
|
+
};
|
|
20313
|
+
content: {
|
|
20314
|
+
"application/json": components["schemas"]["InsufficientStorageRefusal"];
|
|
20315
|
+
};
|
|
20316
|
+
};
|
|
20317
|
+
};
|
|
20318
|
+
};
|
|
20319
|
+
replaceType: {
|
|
19405
20320
|
parameters: {
|
|
19406
20321
|
query?: {
|
|
19407
|
-
/** @description
|
|
20322
|
+
/** @description `true` to keep the rows and values of tables and columns the replacement removes or retypes, instead of refusing it. */
|
|
19408
20323
|
force?: boolean;
|
|
19409
20324
|
};
|
|
19410
20325
|
header?: {
|
|
@@ -19417,9 +20332,13 @@ interface operations {
|
|
|
19417
20332
|
};
|
|
19418
20333
|
cookie?: never;
|
|
19419
20334
|
};
|
|
19420
|
-
requestBody
|
|
20335
|
+
requestBody: {
|
|
20336
|
+
content: {
|
|
20337
|
+
"application/json": components["schemas"]["TypeDefinitionUpdate"];
|
|
20338
|
+
};
|
|
20339
|
+
};
|
|
19421
20340
|
responses: {
|
|
19422
|
-
/** @description Returns
|
|
20341
|
+
/** @description Returns the replaced type. */
|
|
19423
20342
|
200: {
|
|
19424
20343
|
headers: {
|
|
19425
20344
|
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
@@ -19429,13 +20348,55 @@ interface operations {
|
|
|
19429
20348
|
content: {
|
|
19430
20349
|
/**
|
|
19431
20350
|
* @example {
|
|
19432
|
-
* "
|
|
20351
|
+
* "id": "acme.deal",
|
|
20352
|
+
* "label": "Deal",
|
|
20353
|
+
* "version": 1,
|
|
20354
|
+
* "fields": {
|
|
20355
|
+
* "name": {
|
|
20356
|
+
* "type": "string",
|
|
20357
|
+
* "label": "Name",
|
|
20358
|
+
* "required": true
|
|
20359
|
+
* },
|
|
20360
|
+
* "amount": {
|
|
20361
|
+
* "type": "number",
|
|
20362
|
+
* "label": "Amount"
|
|
20363
|
+
* },
|
|
20364
|
+
* "stage": {
|
|
20365
|
+
* "type": "enum",
|
|
20366
|
+
* "label": "Stage",
|
|
20367
|
+
* "enum_values": [
|
|
20368
|
+
* "lead",
|
|
20369
|
+
* "won",
|
|
20370
|
+
* "lost"
|
|
20371
|
+
* ]
|
|
20372
|
+
* }
|
|
20373
|
+
* },
|
|
20374
|
+
* "plural": "Deals",
|
|
20375
|
+
* "description": "A sales deal.",
|
|
20376
|
+
* "display_hints": {
|
|
20377
|
+
* "title_field": "name"
|
|
20378
|
+
* },
|
|
20379
|
+
* "provenance": {
|
|
20380
|
+
* "origin": "registered",
|
|
20381
|
+
* "plugin": null,
|
|
20382
|
+
* "created_by": {
|
|
20383
|
+
* "kind": "key",
|
|
20384
|
+
* "id": "01a1011b-b5e5-7be6-8f3b-77492475b5a4",
|
|
20385
|
+
* "name": "CRM sync"
|
|
20386
|
+
* }
|
|
20387
|
+
* }
|
|
19433
20388
|
* }
|
|
19434
20389
|
*/
|
|
19435
|
-
"application/json": components["schemas"]["
|
|
20390
|
+
"application/json": components["schemas"]["RegisteredType"];
|
|
19436
20391
|
};
|
|
19437
20392
|
};
|
|
19438
|
-
/**
|
|
20393
|
+
/**
|
|
20394
|
+
* @description - `missing_required_field`: `fields` is missing.
|
|
20395
|
+
* - `validation_error`: `id` is malformed, or `parent` isn't registered or chains badly.
|
|
20396
|
+
* - `invalid_schema`: the schema is invalid, or has an unknown key or overlong text (`details.errors` names each path).
|
|
20397
|
+
* - `property_shadows_field`: a field has the name of one every item has.
|
|
20398
|
+
* - `inheritance_violation`: a field's shape differs in a parent or subtype.
|
|
20399
|
+
*/
|
|
19439
20400
|
400: {
|
|
19440
20401
|
headers: {
|
|
19441
20402
|
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
@@ -19444,7 +20405,7 @@ interface operations {
|
|
|
19444
20405
|
[name: string]: unknown;
|
|
19445
20406
|
};
|
|
19446
20407
|
content: {
|
|
19447
|
-
"application/json": components["schemas"]["
|
|
20408
|
+
"application/json": components["schemas"]["InheritanceViolationOrInvalidSchemaOrMissingRequiredFieldOrPropertyShadowsFieldOrValidationErrorRefusal"];
|
|
19448
20409
|
};
|
|
19449
20410
|
};
|
|
19450
20411
|
/** @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. */
|
|
@@ -19460,9 +20421,9 @@ interface operations {
|
|
|
19460
20421
|
};
|
|
19461
20422
|
};
|
|
19462
20423
|
/**
|
|
19463
|
-
* @description - `forbidden`: you lack `schema.write`, or
|
|
19464
|
-
* - `core_type_immutable`: Marfa ships this type
|
|
19465
|
-
* - `type_not_permitted`: your type map
|
|
20424
|
+
* @description - `forbidden`: you lack `schema.write` and `metadata.types:write`, or `details.changes` names changes needing `schema.write`.
|
|
20425
|
+
* - `core_type_immutable`: Marfa ships this type.
|
|
20426
|
+
* - `type_not_permitted`: your type map lacks write on the type or a new non-platform `parent` (`details.grant` names it).
|
|
19466
20427
|
*/
|
|
19467
20428
|
403: {
|
|
19468
20429
|
headers: {
|
|
@@ -19487,9 +20448,21 @@ interface operations {
|
|
|
19487
20448
|
"application/json": components["schemas"]["TypeNotFoundRefusal"];
|
|
19488
20449
|
};
|
|
19489
20450
|
};
|
|
20451
|
+
/** @description `request_timeout`: the request body didn't arrive whole within 180 seconds. Nothing changed, and Marfa closed the connection. Send the request again. A body larger than about 21 MiB can't arrive in that time over a 1 Mbit/s link, so send it in smaller requests. */
|
|
20452
|
+
408: {
|
|
20453
|
+
headers: {
|
|
20454
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
20455
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
20456
|
+
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
20457
|
+
[name: string]: unknown;
|
|
20458
|
+
};
|
|
20459
|
+
content: {
|
|
20460
|
+
"application/json": components["schemas"]["RequestTimeoutRefusal"];
|
|
20461
|
+
};
|
|
20462
|
+
};
|
|
19490
20463
|
/**
|
|
19491
|
-
* @description - `
|
|
19492
|
-
* - `type_in_use`:
|
|
20464
|
+
* @description - `link_taken`: the replacement names a `link_field` in which two items of the type, in any state, hold the same value.
|
|
20465
|
+
* - `type_in_use`: rows hold a table or column the replacement removes, or a column whose `type` it changes, and `force` isn't `true`. `details.tables` names each.
|
|
19493
20466
|
*/
|
|
19494
20467
|
409: {
|
|
19495
20468
|
headers: {
|
|
@@ -19499,7 +20472,7 @@ interface operations {
|
|
|
19499
20472
|
[name: string]: unknown;
|
|
19500
20473
|
};
|
|
19501
20474
|
content: {
|
|
19502
|
-
"application/json": components["schemas"]["
|
|
20475
|
+
"application/json": components["schemas"]["LinkTakenRefusal"] | components["schemas"]["TypeInUseRefusal"] | components["schemas"]["InstanceChangedRefusal"];
|
|
19503
20476
|
};
|
|
19504
20477
|
};
|
|
19505
20478
|
/** @description `contract_mismatch`: `X-Marfa-Contract` names another contract version than this instance speaks, or is not a whole number. Nothing was done. */
|
|
@@ -19526,8 +20499,149 @@ interface operations {
|
|
|
19526
20499
|
"application/json": components["schemas"]["RequestTooLargeRefusal"];
|
|
19527
20500
|
};
|
|
19528
20501
|
};
|
|
19529
|
-
/** @description `
|
|
19530
|
-
|
|
20502
|
+
/** @description `rate_limited`: you sent too many requests. Wait for the number of seconds in `Retry-After`, then try again. */
|
|
20503
|
+
429: {
|
|
20504
|
+
headers: {
|
|
20505
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
20506
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
20507
|
+
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
20508
|
+
"Retry-After": components["headers"]["Retry-After"];
|
|
20509
|
+
[name: string]: unknown;
|
|
20510
|
+
};
|
|
20511
|
+
content: {
|
|
20512
|
+
"application/json": components["schemas"]["RateLimitedRefusal"];
|
|
20513
|
+
};
|
|
20514
|
+
};
|
|
20515
|
+
/** @description `internal_error`: Marfa failed in a way it didn't expect, and the request may not have completed. Read what you changed before you repeat a write. */
|
|
20516
|
+
500: {
|
|
20517
|
+
headers: {
|
|
20518
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
20519
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
20520
|
+
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
20521
|
+
[name: string]: unknown;
|
|
20522
|
+
};
|
|
20523
|
+
content: {
|
|
20524
|
+
"application/json": components["schemas"]["InternalErrorRefusal"];
|
|
20525
|
+
};
|
|
20526
|
+
};
|
|
20527
|
+
/** @description `write_contention`: the database was busy, and Marfa couldn't complete the request in time. Nothing changed. Try the request again. While a restore runs, `details.reason` is `restore_running`. */
|
|
20528
|
+
503: {
|
|
20529
|
+
headers: {
|
|
20530
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
20531
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
20532
|
+
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
20533
|
+
"Retry-After": components["headers"]["Retry-After"];
|
|
20534
|
+
[name: string]: unknown;
|
|
20535
|
+
};
|
|
20536
|
+
content: {
|
|
20537
|
+
"application/json": components["schemas"]["WriteContentionRefusal"];
|
|
20538
|
+
};
|
|
20539
|
+
};
|
|
20540
|
+
/** @description `insufficient_storage`: the disk that holds the instance's data has no room for the request, or the request would leave less free than the instance keeps in reserve. Nothing changed, unless `details.write_outcome` is `unknown`, which means the write may have landed: read what you changed before you repeat it. Free space on the disk, then try the request again. */
|
|
20541
|
+
507: {
|
|
20542
|
+
headers: {
|
|
20543
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
20544
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
20545
|
+
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
20546
|
+
[name: string]: unknown;
|
|
20547
|
+
};
|
|
20548
|
+
content: {
|
|
20549
|
+
"application/json": components["schemas"]["InsufficientStorageRefusal"];
|
|
20550
|
+
};
|
|
20551
|
+
};
|
|
20552
|
+
};
|
|
20553
|
+
};
|
|
20554
|
+
deleteType: {
|
|
20555
|
+
parameters: {
|
|
20556
|
+
query?: {
|
|
20557
|
+
/** @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. */
|
|
20558
|
+
force?: boolean;
|
|
20559
|
+
};
|
|
20560
|
+
header?: {
|
|
20561
|
+
/** @description The ID of the instance you expect, as `GET /` returns it. If another instance answers at this address, Marfa returns `409 instance_changed` and doesn't write. Leave it out to send the request to whichever instance answers. */
|
|
20562
|
+
"X-Marfa-Instance-Id"?: string;
|
|
20563
|
+
};
|
|
20564
|
+
path: {
|
|
20565
|
+
/** @description The identifier of the type, such as `acme.deal`. */
|
|
20566
|
+
id: string;
|
|
20567
|
+
};
|
|
20568
|
+
cookie?: never;
|
|
20569
|
+
};
|
|
20570
|
+
requestBody?: never;
|
|
20571
|
+
responses: {
|
|
20572
|
+
/** @description Returns `ok: true`. */
|
|
20573
|
+
200: {
|
|
20574
|
+
headers: {
|
|
20575
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
20576
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
20577
|
+
[name: string]: unknown;
|
|
20578
|
+
};
|
|
20579
|
+
content: {
|
|
20580
|
+
/**
|
|
20581
|
+
* @example {
|
|
20582
|
+
* "ok": true
|
|
20583
|
+
* }
|
|
20584
|
+
*/
|
|
20585
|
+
"application/json": components["schemas"]["Ok"];
|
|
20586
|
+
};
|
|
20587
|
+
};
|
|
20588
|
+
/** @description - `validation_error`: the query has a parameter this endpoint doesn't take. */
|
|
20589
|
+
400: {
|
|
20590
|
+
headers: {
|
|
20591
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
20592
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
20593
|
+
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
20594
|
+
[name: string]: unknown;
|
|
20595
|
+
};
|
|
20596
|
+
content: {
|
|
20597
|
+
"application/json": components["schemas"]["ValidationErrorRefusal"];
|
|
20598
|
+
};
|
|
20599
|
+
};
|
|
20600
|
+
/** @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. */
|
|
20601
|
+
401: {
|
|
20602
|
+
headers: {
|
|
20603
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
20604
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
20605
|
+
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
20606
|
+
[name: string]: unknown;
|
|
20607
|
+
};
|
|
20608
|
+
content: {
|
|
20609
|
+
"application/json": components["schemas"]["UnauthorizedRefusal"];
|
|
20610
|
+
};
|
|
20611
|
+
};
|
|
20612
|
+
/**
|
|
20613
|
+
* @description - `forbidden`: you lack `schema.write`, or the local command requested `force=true`.
|
|
20614
|
+
* - `core_type_immutable`: Marfa ships this type, and no credential can delete it.
|
|
20615
|
+
* - `type_not_permitted`: your type map doesn't grant write on the type.
|
|
20616
|
+
*/
|
|
20617
|
+
403: {
|
|
20618
|
+
headers: {
|
|
20619
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
20620
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
20621
|
+
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
20622
|
+
[name: string]: unknown;
|
|
20623
|
+
};
|
|
20624
|
+
content: {
|
|
20625
|
+
"application/json": components["schemas"]["CoreTypeImmutableOrForbiddenOrTypeNotPermittedRefusal"];
|
|
20626
|
+
};
|
|
20627
|
+
};
|
|
20628
|
+
/** @description `type_not_found`: no type has this identifier. */
|
|
20629
|
+
404: {
|
|
20630
|
+
headers: {
|
|
20631
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
20632
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
20633
|
+
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
20634
|
+
[name: string]: unknown;
|
|
20635
|
+
};
|
|
20636
|
+
content: {
|
|
20637
|
+
"application/json": components["schemas"]["TypeNotFoundRefusal"];
|
|
20638
|
+
};
|
|
20639
|
+
};
|
|
20640
|
+
/**
|
|
20641
|
+
* @description - `type_has_subtypes`: other types name this one as their `parent` (`details.subtype_ids` lists them). Delete them, or give them another parent with `PUT /types/{id}`.
|
|
20642
|
+
* - `type_in_use`: an item of the type exists, in any state, or a folder, view, webhook or column names it, and `force` isn't `true`. `details` lists them. Move them with `POST /types/{id}/move`.
|
|
20643
|
+
*/
|
|
20644
|
+
409: {
|
|
19531
20645
|
headers: {
|
|
19532
20646
|
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
19533
20647
|
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
@@ -19535,7 +20649,31 @@ interface operations {
|
|
|
19535
20649
|
[name: string]: unknown;
|
|
19536
20650
|
};
|
|
19537
20651
|
content: {
|
|
19538
|
-
"application/json": components["schemas"]["
|
|
20652
|
+
"application/json": components["schemas"]["TypeHasSubtypesOrTypeInUseRefusal"] | components["schemas"]["InstanceChangedRefusal"];
|
|
20653
|
+
};
|
|
20654
|
+
};
|
|
20655
|
+
/** @description `contract_mismatch`: `X-Marfa-Contract` names another contract version than this instance speaks, or is not a whole number. Nothing was done. */
|
|
20656
|
+
412: {
|
|
20657
|
+
headers: {
|
|
20658
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
20659
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
20660
|
+
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
20661
|
+
[name: string]: unknown;
|
|
20662
|
+
};
|
|
20663
|
+
content: {
|
|
20664
|
+
"application/json": components["schemas"]["ContractMismatchRefusal"];
|
|
20665
|
+
};
|
|
20666
|
+
};
|
|
20667
|
+
/** @description `request_too_large`: the request body is larger than this instance accepts. */
|
|
20668
|
+
413: {
|
|
20669
|
+
headers: {
|
|
20670
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
20671
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
20672
|
+
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
20673
|
+
[name: string]: unknown;
|
|
20674
|
+
};
|
|
20675
|
+
content: {
|
|
20676
|
+
"application/json": components["schemas"]["RequestTooLargeRefusal"];
|
|
19539
20677
|
};
|
|
19540
20678
|
};
|
|
19541
20679
|
/** @description `rate_limited`: you sent too many requests. Wait for the number of seconds in `Retry-After`, then try again. */
|
|
@@ -19950,7 +21088,7 @@ interface operations {
|
|
|
19950
21088
|
/**
|
|
19951
21089
|
* @description - `missing_required_field`: `fields` is missing.
|
|
19952
21090
|
* - `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
|
|
21091
|
+
* - `invalid_schema`: the schema is invalid, or has an unknown key or overlong text (`details.errors` names each path).
|
|
19954
21092
|
* - `property_shadows_field`: a field is named like one every item has.
|
|
19955
21093
|
* - `inheritance_violation`: the type reshapes an inherited field.
|
|
19956
21094
|
*/
|
|
@@ -20025,18 +21163,6 @@ interface operations {
|
|
|
20025
21163
|
"application/json": components["schemas"]["RequestTooLargeRefusal"];
|
|
20026
21164
|
};
|
|
20027
21165
|
};
|
|
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
21166
|
/** @description `rate_limited`: you sent too many requests. Wait for the number of seconds in `Retry-After`, then try again. */
|
|
20041
21167
|
429: {
|
|
20042
21168
|
headers: {
|
|
@@ -20148,7 +21274,8 @@ interface operations {
|
|
|
20148
21274
|
* "icon": "simple-icons:github"
|
|
20149
21275
|
* },
|
|
20150
21276
|
* "provenance": {
|
|
20151
|
-
* "origin": "
|
|
21277
|
+
* "origin": "registered",
|
|
21278
|
+
* "plugin": null,
|
|
20152
21279
|
* "created_by": {
|
|
20153
21280
|
* "kind": "key",
|
|
20154
21281
|
* "id": "01a1011b-b5e5-7be6-8f3b-77492475b5a4",
|
|
@@ -20369,7 +21496,8 @@ interface operations {
|
|
|
20369
21496
|
* "title_field": "name"
|
|
20370
21497
|
* },
|
|
20371
21498
|
* "provenance": {
|
|
20372
|
-
* "origin": "
|
|
21499
|
+
* "origin": "registered",
|
|
21500
|
+
* "plugin": null,
|
|
20373
21501
|
* "created_by": {
|
|
20374
21502
|
* "kind": "key",
|
|
20375
21503
|
* "id": "01a1011b-b5e5-7be6-8f3b-77492475b5a4",
|
|
@@ -22744,190 +23872,8 @@ interface operations {
|
|
|
22744
23872
|
"application/json": components["schemas"]["ForbiddenRefusal"];
|
|
22745
23873
|
};
|
|
22746
23874
|
};
|
|
22747
|
-
/** @description `request_timeout`: the request body didn't arrive whole within 180 seconds. Nothing changed, and Marfa closed the connection. Send the request again. A body larger than about 21 MiB can't arrive in that time over a 1 Mbit/s link, so send it in smaller requests. */
|
|
22748
|
-
408: {
|
|
22749
|
-
headers: {
|
|
22750
|
-
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
22751
|
-
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
22752
|
-
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
22753
|
-
[name: string]: unknown;
|
|
22754
|
-
};
|
|
22755
|
-
content: {
|
|
22756
|
-
"application/json": components["schemas"]["RequestTimeoutRefusal"];
|
|
22757
|
-
};
|
|
22758
|
-
};
|
|
22759
|
-
/**
|
|
22760
|
-
* @description - `conflict`: You already hold 100 webhooks. Delete one, then register this one. `details.reason` is `webhook_cap` and `details.cap` is `100`.
|
|
22761
|
-
* - `instance_changed`: `X-Marfa-Instance-Id` names another instance. Nothing is written. Rebuild the working copy from the instance at this address.
|
|
22762
|
-
*/
|
|
22763
|
-
409: {
|
|
22764
|
-
headers: {
|
|
22765
|
-
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
22766
|
-
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
22767
|
-
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
22768
|
-
[name: string]: unknown;
|
|
22769
|
-
};
|
|
22770
|
-
content: {
|
|
22771
|
-
"application/json": components["schemas"]["ConflictRefusal"] | components["schemas"]["InstanceChangedRefusal"];
|
|
22772
|
-
};
|
|
22773
|
-
};
|
|
22774
|
-
/** @description `contract_mismatch`: `X-Marfa-Contract` names another contract version than this instance speaks, or is not a whole number. Nothing was done. */
|
|
22775
|
-
412: {
|
|
22776
|
-
headers: {
|
|
22777
|
-
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
22778
|
-
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
22779
|
-
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
22780
|
-
[name: string]: unknown;
|
|
22781
|
-
};
|
|
22782
|
-
content: {
|
|
22783
|
-
"application/json": components["schemas"]["ContractMismatchRefusal"];
|
|
22784
|
-
};
|
|
22785
|
-
};
|
|
22786
|
-
/** @description `request_too_large`: the request body is larger than this instance accepts. */
|
|
22787
|
-
413: {
|
|
22788
|
-
headers: {
|
|
22789
|
-
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
22790
|
-
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
22791
|
-
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
22792
|
-
[name: string]: unknown;
|
|
22793
|
-
};
|
|
22794
|
-
content: {
|
|
22795
|
-
"application/json": components["schemas"]["RequestTooLargeRefusal"];
|
|
22796
|
-
};
|
|
22797
|
-
};
|
|
22798
|
-
/** @description `rate_limited`: you sent too many requests. Wait for the number of seconds in `Retry-After`, then try again. */
|
|
22799
|
-
429: {
|
|
22800
|
-
headers: {
|
|
22801
|
-
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
22802
|
-
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
22803
|
-
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
22804
|
-
"Retry-After": components["headers"]["Retry-After"];
|
|
22805
|
-
[name: string]: unknown;
|
|
22806
|
-
};
|
|
22807
|
-
content: {
|
|
22808
|
-
"application/json": components["schemas"]["RateLimitedRefusal"];
|
|
22809
|
-
};
|
|
22810
|
-
};
|
|
22811
|
-
/** @description `internal_error`: Marfa failed in a way it didn't expect, and the request may not have completed. Read what you changed before you repeat a write. */
|
|
22812
|
-
500: {
|
|
22813
|
-
headers: {
|
|
22814
|
-
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
22815
|
-
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
22816
|
-
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
22817
|
-
[name: string]: unknown;
|
|
22818
|
-
};
|
|
22819
|
-
content: {
|
|
22820
|
-
"application/json": components["schemas"]["InternalErrorRefusal"];
|
|
22821
|
-
};
|
|
22822
|
-
};
|
|
22823
|
-
/** @description `write_contention`: the database was busy, and Marfa couldn't complete the request in time. Nothing changed. Try the request again. While a restore runs, `details.reason` is `restore_running`. */
|
|
22824
|
-
503: {
|
|
22825
|
-
headers: {
|
|
22826
|
-
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
22827
|
-
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
22828
|
-
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
22829
|
-
"Retry-After": components["headers"]["Retry-After"];
|
|
22830
|
-
[name: string]: unknown;
|
|
22831
|
-
};
|
|
22832
|
-
content: {
|
|
22833
|
-
"application/json": components["schemas"]["WriteContentionRefusal"];
|
|
22834
|
-
};
|
|
22835
|
-
};
|
|
22836
|
-
/** @description `insufficient_storage`: the disk that holds the instance's data has no room for the request, or the request would leave less free than the instance keeps in reserve. Nothing changed, unless `details.write_outcome` is `unknown`, which means the write may have landed: read what you changed before you repeat it. Free space on the disk, then try the request again. */
|
|
22837
|
-
507: {
|
|
22838
|
-
headers: {
|
|
22839
|
-
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
22840
|
-
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
22841
|
-
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
22842
|
-
[name: string]: unknown;
|
|
22843
|
-
};
|
|
22844
|
-
content: {
|
|
22845
|
-
"application/json": components["schemas"]["InsufficientStorageRefusal"];
|
|
22846
|
-
};
|
|
22847
|
-
};
|
|
22848
|
-
};
|
|
22849
|
-
};
|
|
22850
|
-
getWebhook: {
|
|
22851
|
-
parameters: {
|
|
22852
|
-
query?: never;
|
|
22853
|
-
header?: never;
|
|
22854
|
-
path: {
|
|
22855
|
-
/** @description The ID of the webhook. */
|
|
22856
|
-
id: string;
|
|
22857
|
-
};
|
|
22858
|
-
cookie?: never;
|
|
22859
|
-
};
|
|
22860
|
-
requestBody?: never;
|
|
22861
|
-
responses: {
|
|
22862
|
-
/** @description Returns the webhook. */
|
|
22863
|
-
200: {
|
|
22864
|
-
headers: {
|
|
22865
|
-
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
22866
|
-
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
22867
|
-
[name: string]: unknown;
|
|
22868
|
-
};
|
|
22869
|
-
content: {
|
|
22870
|
-
/**
|
|
22871
|
-
* @example {
|
|
22872
|
-
* "id": "01a1011f-f8a6-7d27-8213-d126f553409e",
|
|
22873
|
-
* "url": "https://hooks.example.com/marfa",
|
|
22874
|
-
* "events": [
|
|
22875
|
-
* "item.created",
|
|
22876
|
-
* "item.updated"
|
|
22877
|
-
* ],
|
|
22878
|
-
* "type_filter": "acme.deal",
|
|
22879
|
-
* "secret": "****deb0",
|
|
22880
|
-
* "active": true,
|
|
22881
|
-
* "created_at": "2026-10-03T09:56:05.889Z",
|
|
22882
|
-
* "updated_at": "2026-10-03T09:56:05.889Z",
|
|
22883
|
-
* "maker": {
|
|
22884
|
-
* "kind": "key",
|
|
22885
|
-
* "id": "01a1011b-b5e5-7be6-8f3b-77492475b5a4",
|
|
22886
|
-
* "name": "CRM sync"
|
|
22887
|
-
* }
|
|
22888
|
-
* }
|
|
22889
|
-
*/
|
|
22890
|
-
"application/json": components["schemas"]["WebhookRead"];
|
|
22891
|
-
};
|
|
22892
|
-
};
|
|
22893
|
-
/** @description - `validation_error`: the query has a parameter this endpoint doesn't take. */
|
|
22894
|
-
400: {
|
|
22895
|
-
headers: {
|
|
22896
|
-
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
22897
|
-
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
22898
|
-
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
22899
|
-
[name: string]: unknown;
|
|
22900
|
-
};
|
|
22901
|
-
content: {
|
|
22902
|
-
"application/json": components["schemas"]["ValidationErrorRefusal"];
|
|
22903
|
-
};
|
|
22904
|
-
};
|
|
22905
|
-
/** @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. */
|
|
22906
|
-
401: {
|
|
22907
|
-
headers: {
|
|
22908
|
-
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
22909
|
-
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
22910
|
-
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
22911
|
-
[name: string]: unknown;
|
|
22912
|
-
};
|
|
22913
|
-
content: {
|
|
22914
|
-
"application/json": components["schemas"]["UnauthorizedRefusal"];
|
|
22915
|
-
};
|
|
22916
|
-
};
|
|
22917
|
-
/** @description - `forbidden`: you don't have `webhooks.manage`. */
|
|
22918
|
-
403: {
|
|
22919
|
-
headers: {
|
|
22920
|
-
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
22921
|
-
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
22922
|
-
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
22923
|
-
[name: string]: unknown;
|
|
22924
|
-
};
|
|
22925
|
-
content: {
|
|
22926
|
-
"application/json": components["schemas"]["ForbiddenRefusal"];
|
|
22927
|
-
};
|
|
22928
|
-
};
|
|
22929
|
-
/** @description - `webhook_not_found`: no webhook of yours has this ID. */
|
|
22930
|
-
404: {
|
|
23875
|
+
/** @description `request_timeout`: the request body didn't arrive whole within 180 seconds. Nothing changed, and Marfa closed the connection. Send the request again. A body larger than about 21 MiB can't arrive in that time over a 1 Mbit/s link, so send it in smaller requests. */
|
|
23876
|
+
408: {
|
|
22931
23877
|
headers: {
|
|
22932
23878
|
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
22933
23879
|
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
@@ -22935,7 +23881,22 @@ interface operations {
|
|
|
22935
23881
|
[name: string]: unknown;
|
|
22936
23882
|
};
|
|
22937
23883
|
content: {
|
|
22938
|
-
"application/json": components["schemas"]["
|
|
23884
|
+
"application/json": components["schemas"]["RequestTimeoutRefusal"];
|
|
23885
|
+
};
|
|
23886
|
+
};
|
|
23887
|
+
/**
|
|
23888
|
+
* @description - `conflict`: You already hold 100 webhooks. Delete one, then register this one. `details.reason` is `webhook_cap` and `details.cap` is `100`.
|
|
23889
|
+
* - `instance_changed`: `X-Marfa-Instance-Id` names another instance. Nothing is written. Rebuild the working copy from the instance at this address.
|
|
23890
|
+
*/
|
|
23891
|
+
409: {
|
|
23892
|
+
headers: {
|
|
23893
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
23894
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
23895
|
+
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
23896
|
+
[name: string]: unknown;
|
|
23897
|
+
};
|
|
23898
|
+
content: {
|
|
23899
|
+
"application/json": components["schemas"]["ConflictRefusal"] | components["schemas"]["InstanceChangedRefusal"];
|
|
22939
23900
|
};
|
|
22940
23901
|
};
|
|
22941
23902
|
/** @description `contract_mismatch`: `X-Marfa-Contract` names another contract version than this instance speaks, or is not a whole number. Nothing was done. */
|
|
@@ -22950,6 +23911,18 @@ interface operations {
|
|
|
22950
23911
|
"application/json": components["schemas"]["ContractMismatchRefusal"];
|
|
22951
23912
|
};
|
|
22952
23913
|
};
|
|
23914
|
+
/** @description `request_too_large`: the request body is larger than this instance accepts. */
|
|
23915
|
+
413: {
|
|
23916
|
+
headers: {
|
|
23917
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
23918
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
23919
|
+
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
23920
|
+
[name: string]: unknown;
|
|
23921
|
+
};
|
|
23922
|
+
content: {
|
|
23923
|
+
"application/json": components["schemas"]["RequestTooLargeRefusal"];
|
|
23924
|
+
};
|
|
23925
|
+
};
|
|
22953
23926
|
/** @description `rate_limited`: you sent too many requests. Wait for the number of seconds in `Retry-After`, then try again. */
|
|
22954
23927
|
429: {
|
|
22955
23928
|
headers: {
|
|
@@ -23002,13 +23975,10 @@ interface operations {
|
|
|
23002
23975
|
};
|
|
23003
23976
|
};
|
|
23004
23977
|
};
|
|
23005
|
-
|
|
23978
|
+
getWebhook: {
|
|
23006
23979
|
parameters: {
|
|
23007
23980
|
query?: never;
|
|
23008
|
-
header?:
|
|
23009
|
-
/** @description The ID of the instance you expect, as `GET /` returns it. If another instance answers at this address, Marfa returns `409 instance_changed` and doesn't write. Leave it out to send the request to whichever instance answers. */
|
|
23010
|
-
"X-Marfa-Instance-Id"?: string;
|
|
23011
|
-
};
|
|
23981
|
+
header?: never;
|
|
23012
23982
|
path: {
|
|
23013
23983
|
/** @description The ID of the webhook. */
|
|
23014
23984
|
id: string;
|
|
@@ -23017,7 +23987,7 @@ interface operations {
|
|
|
23017
23987
|
};
|
|
23018
23988
|
requestBody?: never;
|
|
23019
23989
|
responses: {
|
|
23020
|
-
/** @description Returns
|
|
23990
|
+
/** @description Returns the webhook. */
|
|
23021
23991
|
200: {
|
|
23022
23992
|
headers: {
|
|
23023
23993
|
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
@@ -23027,10 +23997,25 @@ interface operations {
|
|
|
23027
23997
|
content: {
|
|
23028
23998
|
/**
|
|
23029
23999
|
* @example {
|
|
23030
|
-
* "
|
|
24000
|
+
* "id": "01a1011f-f8a6-7d27-8213-d126f553409e",
|
|
24001
|
+
* "url": "https://hooks.example.com/marfa",
|
|
24002
|
+
* "events": [
|
|
24003
|
+
* "item.created",
|
|
24004
|
+
* "item.updated"
|
|
24005
|
+
* ],
|
|
24006
|
+
* "type_filter": "acme.deal",
|
|
24007
|
+
* "secret": "****deb0",
|
|
24008
|
+
* "active": true,
|
|
24009
|
+
* "created_at": "2026-10-03T09:56:05.889Z",
|
|
24010
|
+
* "updated_at": "2026-10-03T09:56:05.889Z",
|
|
24011
|
+
* "maker": {
|
|
24012
|
+
* "kind": "key",
|
|
24013
|
+
* "id": "01a1011b-b5e5-7be6-8f3b-77492475b5a4",
|
|
24014
|
+
* "name": "CRM sync"
|
|
24015
|
+
* }
|
|
23031
24016
|
* }
|
|
23032
24017
|
*/
|
|
23033
|
-
"application/json": components["schemas"]["
|
|
24018
|
+
"application/json": components["schemas"]["WebhookRead"];
|
|
23034
24019
|
};
|
|
23035
24020
|
};
|
|
23036
24021
|
/** @description - `validation_error`: the query has a parameter this endpoint doesn't take. */
|
|
@@ -23069,7 +24054,7 @@ interface operations {
|
|
|
23069
24054
|
"application/json": components["schemas"]["ForbiddenRefusal"];
|
|
23070
24055
|
};
|
|
23071
24056
|
};
|
|
23072
|
-
/** @description - `webhook_not_found`: no webhook
|
|
24057
|
+
/** @description - `webhook_not_found`: no webhook you can reach has this ID. */
|
|
23073
24058
|
404: {
|
|
23074
24059
|
headers: {
|
|
23075
24060
|
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
@@ -23081,18 +24066,6 @@ interface operations {
|
|
|
23081
24066
|
"application/json": components["schemas"]["WebhookNotFoundRefusal"];
|
|
23082
24067
|
};
|
|
23083
24068
|
};
|
|
23084
|
-
/** @description `instance_changed`: `X-Marfa-Instance-Id` names another instance. Nothing is written. Rebuild the working copy from the instance at this address. */
|
|
23085
|
-
409: {
|
|
23086
|
-
headers: {
|
|
23087
|
-
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
23088
|
-
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
23089
|
-
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
23090
|
-
[name: string]: unknown;
|
|
23091
|
-
};
|
|
23092
|
-
content: {
|
|
23093
|
-
"application/json": components["schemas"]["InstanceChangedRefusal"];
|
|
23094
|
-
};
|
|
23095
|
-
};
|
|
23096
24069
|
/** @description `contract_mismatch`: `X-Marfa-Contract` names another contract version than this instance speaks, or is not a whole number. Nothing was done. */
|
|
23097
24070
|
412: {
|
|
23098
24071
|
headers: {
|
|
@@ -23105,18 +24078,6 @@ interface operations {
|
|
|
23105
24078
|
"application/json": components["schemas"]["ContractMismatchRefusal"];
|
|
23106
24079
|
};
|
|
23107
24080
|
};
|
|
23108
|
-
/** @description `request_too_large`: the request body is larger than this instance accepts. */
|
|
23109
|
-
413: {
|
|
23110
|
-
headers: {
|
|
23111
|
-
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
23112
|
-
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
23113
|
-
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
23114
|
-
[name: string]: unknown;
|
|
23115
|
-
};
|
|
23116
|
-
content: {
|
|
23117
|
-
"application/json": components["schemas"]["RequestTooLargeRefusal"];
|
|
23118
|
-
};
|
|
23119
|
-
};
|
|
23120
24081
|
/** @description `rate_limited`: you sent too many requests. Wait for the number of seconds in `Retry-After`, then try again. */
|
|
23121
24082
|
429: {
|
|
23122
24083
|
headers: {
|
|
@@ -23169,7 +24130,7 @@ interface operations {
|
|
|
23169
24130
|
};
|
|
23170
24131
|
};
|
|
23171
24132
|
};
|
|
23172
|
-
|
|
24133
|
+
deleteWebhook: {
|
|
23173
24134
|
parameters: {
|
|
23174
24135
|
query?: never;
|
|
23175
24136
|
header?: {
|
|
@@ -23182,22 +24143,9 @@ interface operations {
|
|
|
23182
24143
|
};
|
|
23183
24144
|
cookie?: never;
|
|
23184
24145
|
};
|
|
23185
|
-
requestBody
|
|
23186
|
-
content: {
|
|
23187
|
-
"application/json": {
|
|
23188
|
-
/** @description The URL Marfa posts events to: `http` or `https`, with no user name or password. Unless the instance allows private addresses, it must reach a public address: Marfa refuses a URL whose host resolves to a private one, and checks again at each delivery. */
|
|
23189
|
-
url?: string;
|
|
23190
|
-
/** @description The events to send. Name each one: there's no wildcard. */
|
|
23191
|
-
events?: ("item.created" | "item.updated" | "item.trashed" | "item.restored" | "item.purged" | "item.state_changed" | "metadata.changed" | "rows.changed" | "edge.created" | "edge.updated" | "edge.deleted" | "attention.raised")[];
|
|
23192
|
-
/** @description Send item events only for this type and its subtypes, such as `core.media`, or for every type a pattern such as `app.*` matches. The type needn't be registered. Edge events aren't filtered. Blank or `null` removes it. */
|
|
23193
|
-
type_filter?: string | null;
|
|
23194
|
-
/** @description `false` stops sending events and cancels pending deliveries. `true` starts again. */
|
|
23195
|
-
active?: boolean;
|
|
23196
|
-
};
|
|
23197
|
-
};
|
|
23198
|
-
};
|
|
24146
|
+
requestBody?: never;
|
|
23199
24147
|
responses: {
|
|
23200
|
-
/** @description Returns
|
|
24148
|
+
/** @description Returns `ok: true`. */
|
|
23201
24149
|
200: {
|
|
23202
24150
|
headers: {
|
|
23203
24151
|
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
@@ -23207,23 +24155,13 @@ interface operations {
|
|
|
23207
24155
|
content: {
|
|
23208
24156
|
/**
|
|
23209
24157
|
* @example {
|
|
23210
|
-
* "
|
|
23211
|
-
* "url": "https://hooks.example.com/marfa",
|
|
23212
|
-
* "events": [
|
|
23213
|
-
* "item.created",
|
|
23214
|
-
* "item.updated"
|
|
23215
|
-
* ],
|
|
23216
|
-
* "type_filter": "acme.deal",
|
|
23217
|
-
* "secret": "****deb0",
|
|
23218
|
-
* "active": true,
|
|
23219
|
-
* "created_at": "2026-10-03T09:56:05.889Z",
|
|
23220
|
-
* "updated_at": "2026-10-03T09:56:30.354Z"
|
|
24158
|
+
* "ok": true
|
|
23221
24159
|
* }
|
|
23222
24160
|
*/
|
|
23223
|
-
"application/json": components["schemas"]["
|
|
24161
|
+
"application/json": components["schemas"]["Ok"];
|
|
23224
24162
|
};
|
|
23225
24163
|
};
|
|
23226
|
-
/** @description - `validation_error`:
|
|
24164
|
+
/** @description - `validation_error`: the query has a parameter this endpoint doesn't take. */
|
|
23227
24165
|
400: {
|
|
23228
24166
|
headers: {
|
|
23229
24167
|
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
@@ -23259,7 +24197,7 @@ interface operations {
|
|
|
23259
24197
|
"application/json": components["schemas"]["ForbiddenRefusal"];
|
|
23260
24198
|
};
|
|
23261
24199
|
};
|
|
23262
|
-
/** @description - `webhook_not_found`: no webhook
|
|
24200
|
+
/** @description - `webhook_not_found`: no webhook you can reach has this ID. */
|
|
23263
24201
|
404: {
|
|
23264
24202
|
headers: {
|
|
23265
24203
|
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
@@ -23271,18 +24209,6 @@ interface operations {
|
|
|
23271
24209
|
"application/json": components["schemas"]["WebhookNotFoundRefusal"];
|
|
23272
24210
|
};
|
|
23273
24211
|
};
|
|
23274
|
-
/** @description `request_timeout`: the request body didn't arrive whole within 180 seconds. Nothing changed, and Marfa closed the connection. Send the request again. A body larger than about 21 MiB can't arrive in that time over a 1 Mbit/s link, so send it in smaller requests. */
|
|
23275
|
-
408: {
|
|
23276
|
-
headers: {
|
|
23277
|
-
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
23278
|
-
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
23279
|
-
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
23280
|
-
[name: string]: unknown;
|
|
23281
|
-
};
|
|
23282
|
-
content: {
|
|
23283
|
-
"application/json": components["schemas"]["RequestTimeoutRefusal"];
|
|
23284
|
-
};
|
|
23285
|
-
};
|
|
23286
24212
|
/** @description `instance_changed`: `X-Marfa-Instance-Id` names another instance. Nothing is written. Rebuild the working copy from the instance at this address. */
|
|
23287
24213
|
409: {
|
|
23288
24214
|
headers: {
|
|
@@ -23371,24 +24297,35 @@ interface operations {
|
|
|
23371
24297
|
};
|
|
23372
24298
|
};
|
|
23373
24299
|
};
|
|
23374
|
-
|
|
24300
|
+
updateWebhook: {
|
|
23375
24301
|
parameters: {
|
|
23376
|
-
query?:
|
|
23377
|
-
|
|
23378
|
-
|
|
23379
|
-
|
|
23380
|
-
cursor?: string;
|
|
24302
|
+
query?: never;
|
|
24303
|
+
header?: {
|
|
24304
|
+
/** @description The ID of the instance you expect, as `GET /` returns it. If another instance answers at this address, Marfa returns `409 instance_changed` and doesn't write. Leave it out to send the request to whichever instance answers. */
|
|
24305
|
+
"X-Marfa-Instance-Id"?: string;
|
|
23381
24306
|
};
|
|
23382
|
-
header?: never;
|
|
23383
24307
|
path: {
|
|
23384
24308
|
/** @description The ID of the webhook. */
|
|
23385
24309
|
id: string;
|
|
23386
24310
|
};
|
|
23387
24311
|
cookie?: never;
|
|
23388
24312
|
};
|
|
23389
|
-
requestBody
|
|
24313
|
+
requestBody: {
|
|
24314
|
+
content: {
|
|
24315
|
+
"application/json": {
|
|
24316
|
+
/** @description The URL Marfa posts events to: `http` or `https`, with no user name or password. Unless the instance allows private addresses, it must reach a public address: Marfa refuses a URL whose host resolves to a private one, and checks again at each delivery. */
|
|
24317
|
+
url?: string;
|
|
24318
|
+
/** @description The events to send. Name each one: there's no wildcard. */
|
|
24319
|
+
events?: ("item.created" | "item.updated" | "item.trashed" | "item.restored" | "item.purged" | "item.state_changed" | "metadata.changed" | "rows.changed" | "edge.created" | "edge.updated" | "edge.deleted" | "attention.raised")[];
|
|
24320
|
+
/** @description Send item events only for this type and its subtypes, such as `core.media`, or for every type a pattern such as `app.*` matches. The type needn't be registered. Edge events aren't filtered. Blank or `null` removes it. */
|
|
24321
|
+
type_filter?: string | null;
|
|
24322
|
+
/** @description `false` stops sending events and cancels pending deliveries. `true` starts again. */
|
|
24323
|
+
active?: boolean;
|
|
24324
|
+
};
|
|
24325
|
+
};
|
|
24326
|
+
};
|
|
23390
24327
|
responses: {
|
|
23391
|
-
/** @description Returns
|
|
24328
|
+
/** @description Returns the updated webhook. */
|
|
23392
24329
|
200: {
|
|
23393
24330
|
headers: {
|
|
23394
24331
|
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
@@ -23398,26 +24335,23 @@ interface operations {
|
|
|
23398
24335
|
content: {
|
|
23399
24336
|
/**
|
|
23400
24337
|
* @example {
|
|
23401
|
-
* "
|
|
23402
|
-
*
|
|
23403
|
-
*
|
|
23404
|
-
*
|
|
23405
|
-
*
|
|
23406
|
-
* "event_type": "item.created",
|
|
23407
|
-
* "status_code": 200,
|
|
23408
|
-
* "attempt": 1,
|
|
23409
|
-
* "succeeded": true,
|
|
23410
|
-
* "error": null,
|
|
23411
|
-
* "created_at": "2026-10-03T10:15:10.251Z"
|
|
23412
|
-
* }
|
|
24338
|
+
* "id": "01a1011f-f8a6-7d27-8213-d126f553409e",
|
|
24339
|
+
* "url": "https://hooks.example.com/marfa",
|
|
24340
|
+
* "events": [
|
|
24341
|
+
* "item.created",
|
|
24342
|
+
* "item.updated"
|
|
23413
24343
|
* ],
|
|
23414
|
-
* "
|
|
24344
|
+
* "type_filter": "acme.deal",
|
|
24345
|
+
* "secret": "****deb0",
|
|
24346
|
+
* "active": true,
|
|
24347
|
+
* "created_at": "2026-10-03T09:56:05.889Z",
|
|
24348
|
+
* "updated_at": "2026-10-03T09:56:30.354Z"
|
|
23415
24349
|
* }
|
|
23416
24350
|
*/
|
|
23417
|
-
"application/json": components["schemas"]["
|
|
24351
|
+
"application/json": components["schemas"]["Webhook"];
|
|
23418
24352
|
};
|
|
23419
24353
|
};
|
|
23420
|
-
/** @description - `validation_error`: the
|
|
24354
|
+
/** @description - `validation_error`: a field is invalid. For example, `url` isn't `http` or `https`, carries a user name or password, or names an IP address that isn't public; `events` is empty or names an unknown event or `*`; or `type_filter` is `*`, malformed or a list; or the body has a field this endpoint doesn't take. */
|
|
23421
24355
|
400: {
|
|
23422
24356
|
headers: {
|
|
23423
24357
|
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
@@ -23441,7 +24375,7 @@ interface operations {
|
|
|
23441
24375
|
"application/json": components["schemas"]["UnauthorizedRefusal"];
|
|
23442
24376
|
};
|
|
23443
24377
|
};
|
|
23444
|
-
/** @description - `forbidden`: you don't have `webhooks.manage
|
|
24378
|
+
/** @description - `forbidden`: you don't have `webhooks.manage`, or you hold `keys.manage` and another key or app registered the webhook. */
|
|
23445
24379
|
403: {
|
|
23446
24380
|
headers: {
|
|
23447
24381
|
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
@@ -23453,7 +24387,7 @@ interface operations {
|
|
|
23453
24387
|
"application/json": components["schemas"]["ForbiddenRefusal"];
|
|
23454
24388
|
};
|
|
23455
24389
|
};
|
|
23456
|
-
/** @description - `webhook_not_found`: no webhook
|
|
24390
|
+
/** @description - `webhook_not_found`: no webhook you can reach has this ID. */
|
|
23457
24391
|
404: {
|
|
23458
24392
|
headers: {
|
|
23459
24393
|
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
@@ -23465,6 +24399,30 @@ interface operations {
|
|
|
23465
24399
|
"application/json": components["schemas"]["WebhookNotFoundRefusal"];
|
|
23466
24400
|
};
|
|
23467
24401
|
};
|
|
24402
|
+
/** @description `request_timeout`: the request body didn't arrive whole within 180 seconds. Nothing changed, and Marfa closed the connection. Send the request again. A body larger than about 21 MiB can't arrive in that time over a 1 Mbit/s link, so send it in smaller requests. */
|
|
24403
|
+
408: {
|
|
24404
|
+
headers: {
|
|
24405
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
24406
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
24407
|
+
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
24408
|
+
[name: string]: unknown;
|
|
24409
|
+
};
|
|
24410
|
+
content: {
|
|
24411
|
+
"application/json": components["schemas"]["RequestTimeoutRefusal"];
|
|
24412
|
+
};
|
|
24413
|
+
};
|
|
24414
|
+
/** @description `instance_changed`: `X-Marfa-Instance-Id` names another instance. Nothing is written. Rebuild the working copy from the instance at this address. */
|
|
24415
|
+
409: {
|
|
24416
|
+
headers: {
|
|
24417
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
24418
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
24419
|
+
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
24420
|
+
[name: string]: unknown;
|
|
24421
|
+
};
|
|
24422
|
+
content: {
|
|
24423
|
+
"application/json": components["schemas"]["InstanceChangedRefusal"];
|
|
24424
|
+
};
|
|
24425
|
+
};
|
|
23468
24426
|
/** @description `contract_mismatch`: `X-Marfa-Contract` names another contract version than this instance speaks, or is not a whole number. Nothing was done. */
|
|
23469
24427
|
412: {
|
|
23470
24428
|
headers: {
|
|
@@ -23477,6 +24435,18 @@ interface operations {
|
|
|
23477
24435
|
"application/json": components["schemas"]["ContractMismatchRefusal"];
|
|
23478
24436
|
};
|
|
23479
24437
|
};
|
|
24438
|
+
/** @description `request_too_large`: the request body is larger than this instance accepts. */
|
|
24439
|
+
413: {
|
|
24440
|
+
headers: {
|
|
24441
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
24442
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
24443
|
+
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
24444
|
+
[name: string]: unknown;
|
|
24445
|
+
};
|
|
24446
|
+
content: {
|
|
24447
|
+
"application/json": components["schemas"]["RequestTooLargeRefusal"];
|
|
24448
|
+
};
|
|
24449
|
+
};
|
|
23480
24450
|
/** @description `rate_limited`: you sent too many requests. Wait for the number of seconds in `Retry-After`, then try again. */
|
|
23481
24451
|
429: {
|
|
23482
24452
|
headers: {
|
|
@@ -23529,25 +24499,25 @@ interface operations {
|
|
|
23529
24499
|
};
|
|
23530
24500
|
};
|
|
23531
24501
|
};
|
|
23532
|
-
|
|
24502
|
+
listWebhookDeliveries: {
|
|
23533
24503
|
parameters: {
|
|
23534
|
-
query?:
|
|
23535
|
-
|
|
23536
|
-
|
|
23537
|
-
|
|
24504
|
+
query?: {
|
|
24505
|
+
/** @description The maximum number of results to return. */
|
|
24506
|
+
limit?: number;
|
|
24507
|
+
/** @description The `next_cursor` from the previous page. Leave it out to get the first page. */
|
|
24508
|
+
cursor?: string;
|
|
23538
24509
|
};
|
|
24510
|
+
header?: never;
|
|
23539
24511
|
path: {
|
|
23540
24512
|
/** @description The ID of the webhook. */
|
|
23541
24513
|
id: string;
|
|
23542
|
-
/** @description The ID of the delivery. */
|
|
23543
|
-
delivery_id: string;
|
|
23544
24514
|
};
|
|
23545
24515
|
cookie?: never;
|
|
23546
24516
|
};
|
|
23547
24517
|
requestBody?: never;
|
|
23548
24518
|
responses: {
|
|
23549
|
-
/** @description Returns
|
|
23550
|
-
|
|
24519
|
+
/** @description Returns a page of deliveries. Marfa deletes settled deliveries older than the instance's audit retention. */
|
|
24520
|
+
200: {
|
|
23551
24521
|
headers: {
|
|
23552
24522
|
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
23553
24523
|
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
@@ -23556,18 +24526,23 @@ interface operations {
|
|
|
23556
24526
|
content: {
|
|
23557
24527
|
/**
|
|
23558
24528
|
* @example {
|
|
23559
|
-
* "
|
|
23560
|
-
*
|
|
23561
|
-
*
|
|
23562
|
-
*
|
|
23563
|
-
*
|
|
23564
|
-
*
|
|
23565
|
-
*
|
|
23566
|
-
*
|
|
23567
|
-
*
|
|
24529
|
+
* "data": [
|
|
24530
|
+
* {
|
|
24531
|
+
* "id": "01a10120-6e5f-7348-9e02-4dea7451f0a3",
|
|
24532
|
+
* "status": "succeeded",
|
|
24533
|
+
* "webhook_id": "01a10120-e800-7cc5-be50-9a7ccdf00013",
|
|
24534
|
+
* "event_type": "item.created",
|
|
24535
|
+
* "status_code": 200,
|
|
24536
|
+
* "attempt": 1,
|
|
24537
|
+
* "succeeded": true,
|
|
24538
|
+
* "error": null,
|
|
24539
|
+
* "created_at": "2026-10-03T10:15:10.251Z"
|
|
24540
|
+
* }
|
|
24541
|
+
* ],
|
|
24542
|
+
* "next_cursor": null
|
|
23568
24543
|
* }
|
|
23569
24544
|
*/
|
|
23570
|
-
"application/json": components["schemas"]["
|
|
24545
|
+
"application/json": components["schemas"]["WebhookDeliveryPage"];
|
|
23571
24546
|
};
|
|
23572
24547
|
};
|
|
23573
24548
|
/** @description - `validation_error`: the query has a parameter this endpoint doesn't take. */
|
|
@@ -23606,7 +24581,160 @@ interface operations {
|
|
|
23606
24581
|
"application/json": components["schemas"]["ForbiddenRefusal"];
|
|
23607
24582
|
};
|
|
23608
24583
|
};
|
|
23609
|
-
/** @description - `webhook_not_found`: no webhook
|
|
24584
|
+
/** @description - `webhook_not_found`: no webhook you can reach has this ID. */
|
|
24585
|
+
404: {
|
|
24586
|
+
headers: {
|
|
24587
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
24588
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
24589
|
+
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
24590
|
+
[name: string]: unknown;
|
|
24591
|
+
};
|
|
24592
|
+
content: {
|
|
24593
|
+
"application/json": components["schemas"]["WebhookNotFoundRefusal"];
|
|
24594
|
+
};
|
|
24595
|
+
};
|
|
24596
|
+
/** @description `contract_mismatch`: `X-Marfa-Contract` names another contract version than this instance speaks, or is not a whole number. Nothing was done. */
|
|
24597
|
+
412: {
|
|
24598
|
+
headers: {
|
|
24599
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
24600
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
24601
|
+
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
24602
|
+
[name: string]: unknown;
|
|
24603
|
+
};
|
|
24604
|
+
content: {
|
|
24605
|
+
"application/json": components["schemas"]["ContractMismatchRefusal"];
|
|
24606
|
+
};
|
|
24607
|
+
};
|
|
24608
|
+
/** @description `rate_limited`: you sent too many requests. Wait for the number of seconds in `Retry-After`, then try again. */
|
|
24609
|
+
429: {
|
|
24610
|
+
headers: {
|
|
24611
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
24612
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
24613
|
+
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
24614
|
+
"Retry-After": components["headers"]["Retry-After"];
|
|
24615
|
+
[name: string]: unknown;
|
|
24616
|
+
};
|
|
24617
|
+
content: {
|
|
24618
|
+
"application/json": components["schemas"]["RateLimitedRefusal"];
|
|
24619
|
+
};
|
|
24620
|
+
};
|
|
24621
|
+
/** @description `internal_error`: Marfa failed in a way it didn't expect, and the request may not have completed. Read what you changed before you repeat a write. */
|
|
24622
|
+
500: {
|
|
24623
|
+
headers: {
|
|
24624
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
24625
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
24626
|
+
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
24627
|
+
[name: string]: unknown;
|
|
24628
|
+
};
|
|
24629
|
+
content: {
|
|
24630
|
+
"application/json": components["schemas"]["InternalErrorRefusal"];
|
|
24631
|
+
};
|
|
24632
|
+
};
|
|
24633
|
+
/** @description `write_contention`: the database was busy, and Marfa couldn't complete the request in time. Nothing changed. Try the request again. While a restore runs, `details.reason` is `restore_running`. */
|
|
24634
|
+
503: {
|
|
24635
|
+
headers: {
|
|
24636
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
24637
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
24638
|
+
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
24639
|
+
"Retry-After": components["headers"]["Retry-After"];
|
|
24640
|
+
[name: string]: unknown;
|
|
24641
|
+
};
|
|
24642
|
+
content: {
|
|
24643
|
+
"application/json": components["schemas"]["WriteContentionRefusal"];
|
|
24644
|
+
};
|
|
24645
|
+
};
|
|
24646
|
+
/** @description `insufficient_storage`: the disk that holds the instance's data has no room for the request, or the request would leave less free than the instance keeps in reserve. Nothing changed, unless `details.write_outcome` is `unknown`, which means the write may have landed: read what you changed before you repeat it. Free space on the disk, then try the request again. */
|
|
24647
|
+
507: {
|
|
24648
|
+
headers: {
|
|
24649
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
24650
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
24651
|
+
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
24652
|
+
[name: string]: unknown;
|
|
24653
|
+
};
|
|
24654
|
+
content: {
|
|
24655
|
+
"application/json": components["schemas"]["InsufficientStorageRefusal"];
|
|
24656
|
+
};
|
|
24657
|
+
};
|
|
24658
|
+
};
|
|
24659
|
+
};
|
|
24660
|
+
redeliverWebhookDelivery: {
|
|
24661
|
+
parameters: {
|
|
24662
|
+
query?: never;
|
|
24663
|
+
header?: {
|
|
24664
|
+
/** @description The ID of the instance you expect, as `GET /` returns it. If another instance answers at this address, Marfa returns `409 instance_changed` and doesn't write. Leave it out to send the request to whichever instance answers. */
|
|
24665
|
+
"X-Marfa-Instance-Id"?: string;
|
|
24666
|
+
};
|
|
24667
|
+
path: {
|
|
24668
|
+
/** @description The ID of the webhook. */
|
|
24669
|
+
id: string;
|
|
24670
|
+
/** @description The ID of the delivery. */
|
|
24671
|
+
delivery_id: string;
|
|
24672
|
+
};
|
|
24673
|
+
cookie?: never;
|
|
24674
|
+
};
|
|
24675
|
+
requestBody?: never;
|
|
24676
|
+
responses: {
|
|
24677
|
+
/** @description Returns the delivery as `pending`, keeping its ID. Marfa makes up to 8 more attempts. Its `status_code`, `error` and `attempt` keep their values until the next attempt records an outcome. */
|
|
24678
|
+
202: {
|
|
24679
|
+
headers: {
|
|
24680
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
24681
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
24682
|
+
[name: string]: unknown;
|
|
24683
|
+
};
|
|
24684
|
+
content: {
|
|
24685
|
+
/**
|
|
24686
|
+
* @example {
|
|
24687
|
+
* "id": "01a10121-61a1-7847-8af0-5f766cf979ef",
|
|
24688
|
+
* "status": "pending",
|
|
24689
|
+
* "webhook_id": "01a10121-db42-7a25-8f9b-94f271d09cd6",
|
|
24690
|
+
* "event_type": "item.created",
|
|
24691
|
+
* "status_code": 400,
|
|
24692
|
+
* "attempt": 1,
|
|
24693
|
+
* "succeeded": false,
|
|
24694
|
+
* "error": "HTTP 400",
|
|
24695
|
+
* "created_at": "2026-10-03T10:17:10.910Z"
|
|
24696
|
+
* }
|
|
24697
|
+
*/
|
|
24698
|
+
"application/json": components["schemas"]["WebhookDelivery"];
|
|
24699
|
+
};
|
|
24700
|
+
};
|
|
24701
|
+
/** @description - `validation_error`: the query has a parameter this endpoint doesn't take. */
|
|
24702
|
+
400: {
|
|
24703
|
+
headers: {
|
|
24704
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
24705
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
24706
|
+
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
24707
|
+
[name: string]: unknown;
|
|
24708
|
+
};
|
|
24709
|
+
content: {
|
|
24710
|
+
"application/json": components["schemas"]["ValidationErrorRefusal"];
|
|
24711
|
+
};
|
|
24712
|
+
};
|
|
24713
|
+
/** @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. */
|
|
24714
|
+
401: {
|
|
24715
|
+
headers: {
|
|
24716
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
24717
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
24718
|
+
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
24719
|
+
[name: string]: unknown;
|
|
24720
|
+
};
|
|
24721
|
+
content: {
|
|
24722
|
+
"application/json": components["schemas"]["UnauthorizedRefusal"];
|
|
24723
|
+
};
|
|
24724
|
+
};
|
|
24725
|
+
/** @description - `forbidden`: you don't have `webhooks.manage`, or you hold `keys.manage` and another key or app registered the webhook. */
|
|
24726
|
+
403: {
|
|
24727
|
+
headers: {
|
|
24728
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
24729
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
24730
|
+
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
24731
|
+
[name: string]: unknown;
|
|
24732
|
+
};
|
|
24733
|
+
content: {
|
|
24734
|
+
"application/json": components["schemas"]["ForbiddenRefusal"];
|
|
24735
|
+
};
|
|
24736
|
+
};
|
|
24737
|
+
/** @description - `webhook_not_found`: no webhook you can reach has this ID, or it has no delivery with this `delivery_id`. */
|
|
23610
24738
|
404: {
|
|
23611
24739
|
headers: {
|
|
23612
24740
|
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
@@ -23931,7 +25059,7 @@ interface operations {
|
|
|
23931
25059
|
};
|
|
23932
25060
|
};
|
|
23933
25061
|
/**
|
|
23934
|
-
* @description - `validation_error`: a setting is malformed or undeclared, such as a `system.*` type, a `..` placement or a `backref` filter. `details.errors[0].path` or `details.unknown_body_fields` names it.
|
|
25062
|
+
* @description - `validation_error`: a setting is malformed or undeclared, such as a `system.*` or `app.*` type, a `..` placement or a `backref` filter. `details.errors[0].path` or `details.unknown_body_fields` names it.
|
|
23935
25063
|
* - `missing_required_field`: `title` is missing.
|
|
23936
25064
|
* - `unknown_type`: a setting's type is unknown.
|
|
23937
25065
|
* - `invalid_properties`: `defaults.properties` has a whole number a 64-bit float can't keep.
|
|
@@ -30828,7 +31956,7 @@ interface operations {
|
|
|
30828
31956
|
/** @description Replaces the key's enforcement levers whole. `null` clears them. */
|
|
30829
31957
|
enforcement_override?: components["schemas"]["EnforcementOverride"] | null;
|
|
30830
31958
|
/**
|
|
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
|
|
31959
|
+
* @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
31960
|
* @example 2027-01-01T00:00:00.000Z
|
|
30833
31961
|
*/
|
|
30834
31962
|
expires_at?: string | null;
|
|
@@ -30900,7 +32028,7 @@ interface operations {
|
|
|
30900
32028
|
"application/json": components["schemas"]["UnauthorizedRefusal"];
|
|
30901
32029
|
};
|
|
30902
32030
|
};
|
|
30903
|
-
/** @description - `forbidden`: you hold neither `keys.mint` nor `keys.manage
|
|
32031
|
+
/** @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
32032
|
403: {
|
|
30905
32033
|
headers: {
|
|
30906
32034
|
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
@@ -31383,12 +32511,164 @@ interface operations {
|
|
|
31383
32511
|
};
|
|
31384
32512
|
};
|
|
31385
32513
|
};
|
|
31386
|
-
revokeAppGrant: {
|
|
32514
|
+
revokeAppGrant: {
|
|
32515
|
+
parameters: {
|
|
32516
|
+
query?: {
|
|
32517
|
+
/** @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. */
|
|
32518
|
+
revoke_keys?: boolean;
|
|
32519
|
+
};
|
|
32520
|
+
header?: never;
|
|
32521
|
+
path: {
|
|
32522
|
+
/** @description The ID of the app's grant. */
|
|
32523
|
+
id: string;
|
|
32524
|
+
};
|
|
32525
|
+
cookie?: never;
|
|
32526
|
+
};
|
|
32527
|
+
requestBody?: never;
|
|
32528
|
+
responses: {
|
|
32529
|
+
/** @description Returns `ok: true`. The app's grant is revoked. */
|
|
32530
|
+
200: {
|
|
32531
|
+
headers: {
|
|
32532
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
32533
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
32534
|
+
[name: string]: unknown;
|
|
32535
|
+
};
|
|
32536
|
+
content: {
|
|
32537
|
+
/**
|
|
32538
|
+
* @example {
|
|
32539
|
+
* "ok": true
|
|
32540
|
+
* }
|
|
32541
|
+
*/
|
|
32542
|
+
"application/json": components["schemas"]["Ok"];
|
|
32543
|
+
};
|
|
32544
|
+
};
|
|
32545
|
+
/** @description - `validation_error`: the query has a parameter this endpoint doesn't take, or `revoke_keys` is neither `true` nor `false`, or is named more than once. Nothing is revoked. */
|
|
32546
|
+
400: {
|
|
32547
|
+
headers: {
|
|
32548
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
32549
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
32550
|
+
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
32551
|
+
[name: string]: unknown;
|
|
32552
|
+
};
|
|
32553
|
+
content: {
|
|
32554
|
+
"application/json": components["schemas"]["ValidationErrorRefusal"];
|
|
32555
|
+
};
|
|
32556
|
+
};
|
|
32557
|
+
/** @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. */
|
|
32558
|
+
401: {
|
|
32559
|
+
headers: {
|
|
32560
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
32561
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
32562
|
+
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
32563
|
+
[name: string]: unknown;
|
|
32564
|
+
};
|
|
32565
|
+
content: {
|
|
32566
|
+
"application/json": components["schemas"]["UnauthorizedRefusal"];
|
|
32567
|
+
};
|
|
32568
|
+
};
|
|
32569
|
+
/** @description - `forbidden`: the credential lacks `grants.manage`. */
|
|
32570
|
+
403: {
|
|
32571
|
+
headers: {
|
|
32572
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
32573
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
32574
|
+
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
32575
|
+
[name: string]: unknown;
|
|
32576
|
+
};
|
|
32577
|
+
content: {
|
|
32578
|
+
"application/json": components["schemas"]["ForbiddenRefusal"];
|
|
32579
|
+
};
|
|
32580
|
+
};
|
|
32581
|
+
/** @description - `grant_not_found`: the ID does not name an app grant. */
|
|
32582
|
+
404: {
|
|
32583
|
+
headers: {
|
|
32584
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
32585
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
32586
|
+
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
32587
|
+
[name: string]: unknown;
|
|
32588
|
+
};
|
|
32589
|
+
content: {
|
|
32590
|
+
"application/json": components["schemas"]["GrantNotFoundRefusal"];
|
|
32591
|
+
};
|
|
32592
|
+
};
|
|
32593
|
+
/** @description `contract_mismatch`: `X-Marfa-Contract` names another contract version than this instance speaks, or is not a whole number. Nothing was done. */
|
|
32594
|
+
412: {
|
|
32595
|
+
headers: {
|
|
32596
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
32597
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
32598
|
+
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
32599
|
+
[name: string]: unknown;
|
|
32600
|
+
};
|
|
32601
|
+
content: {
|
|
32602
|
+
"application/json": components["schemas"]["ContractMismatchRefusal"];
|
|
32603
|
+
};
|
|
32604
|
+
};
|
|
32605
|
+
/** @description `request_too_large`: the request body is larger than this instance accepts. */
|
|
32606
|
+
413: {
|
|
32607
|
+
headers: {
|
|
32608
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
32609
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
32610
|
+
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
32611
|
+
[name: string]: unknown;
|
|
32612
|
+
};
|
|
32613
|
+
content: {
|
|
32614
|
+
"application/json": components["schemas"]["RequestTooLargeRefusal"];
|
|
32615
|
+
};
|
|
32616
|
+
};
|
|
32617
|
+
/** @description `rate_limited`: you sent too many requests. Wait for the number of seconds in `Retry-After`, then try again. */
|
|
32618
|
+
429: {
|
|
32619
|
+
headers: {
|
|
32620
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
32621
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
32622
|
+
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
32623
|
+
"Retry-After": components["headers"]["Retry-After"];
|
|
32624
|
+
[name: string]: unknown;
|
|
32625
|
+
};
|
|
32626
|
+
content: {
|
|
32627
|
+
"application/json": components["schemas"]["RateLimitedRefusal"];
|
|
32628
|
+
};
|
|
32629
|
+
};
|
|
32630
|
+
/** @description `internal_error`: Marfa failed in a way it didn't expect, and the request may not have completed. Read what you changed before you repeat a write. */
|
|
32631
|
+
500: {
|
|
32632
|
+
headers: {
|
|
32633
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
32634
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
32635
|
+
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
32636
|
+
[name: string]: unknown;
|
|
32637
|
+
};
|
|
32638
|
+
content: {
|
|
32639
|
+
"application/json": components["schemas"]["InternalErrorRefusal"];
|
|
32640
|
+
};
|
|
32641
|
+
};
|
|
32642
|
+
/** @description `write_contention`: the database was busy, and Marfa couldn't complete the request in time. Nothing changed. Try the request again. While a restore runs, `details.reason` is `restore_running`. */
|
|
32643
|
+
503: {
|
|
32644
|
+
headers: {
|
|
32645
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
32646
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
32647
|
+
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
32648
|
+
"Retry-After": components["headers"]["Retry-After"];
|
|
32649
|
+
[name: string]: unknown;
|
|
32650
|
+
};
|
|
32651
|
+
content: {
|
|
32652
|
+
"application/json": components["schemas"]["WriteContentionRefusal"];
|
|
32653
|
+
};
|
|
32654
|
+
};
|
|
32655
|
+
/** @description `insufficient_storage`: the disk that holds the instance's data has no room for the request, or the request would leave less free than the instance keeps in reserve. Nothing changed, unless `details.write_outcome` is `unknown`, which means the write may have landed: read what you changed before you repeat it. Free space on the disk, then try the request again. */
|
|
32656
|
+
507: {
|
|
32657
|
+
headers: {
|
|
32658
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
32659
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
32660
|
+
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
32661
|
+
[name: string]: unknown;
|
|
32662
|
+
};
|
|
32663
|
+
content: {
|
|
32664
|
+
"application/json": components["schemas"]["InsufficientStorageRefusal"];
|
|
32665
|
+
};
|
|
32666
|
+
};
|
|
32667
|
+
};
|
|
32668
|
+
};
|
|
32669
|
+
narrowAppGrant: {
|
|
31387
32670
|
parameters: {
|
|
31388
|
-
query?:
|
|
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. */
|
|
31390
|
-
revoke_keys?: boolean;
|
|
31391
|
-
};
|
|
32671
|
+
query?: never;
|
|
31392
32672
|
header?: never;
|
|
31393
32673
|
path: {
|
|
31394
32674
|
/** @description The ID of the app's grant. */
|
|
@@ -31396,9 +32676,18 @@ interface operations {
|
|
|
31396
32676
|
};
|
|
31397
32677
|
cookie?: never;
|
|
31398
32678
|
};
|
|
31399
|
-
requestBody
|
|
32679
|
+
requestBody: {
|
|
32680
|
+
content: {
|
|
32681
|
+
"application/json": {
|
|
32682
|
+
/** @description The complete resulting scope set, no wider than the current grant. */
|
|
32683
|
+
scopes: string[];
|
|
32684
|
+
/** @description The complete scope set last read from the grant. A changed grant refuses the update. */
|
|
32685
|
+
expected_scopes: string[];
|
|
32686
|
+
};
|
|
32687
|
+
};
|
|
32688
|
+
};
|
|
31400
32689
|
responses: {
|
|
31401
|
-
/** @description Returns
|
|
32690
|
+
/** @description Returns the app's narrowed access. */
|
|
31402
32691
|
200: {
|
|
31403
32692
|
headers: {
|
|
31404
32693
|
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
@@ -31408,13 +32697,19 @@ interface operations {
|
|
|
31408
32697
|
content: {
|
|
31409
32698
|
/**
|
|
31410
32699
|
* @example {
|
|
31411
|
-
* "
|
|
32700
|
+
* "scopes": [
|
|
32701
|
+
* "core.note:read"
|
|
32702
|
+
* ],
|
|
32703
|
+
* "revoked_keys": 1
|
|
31412
32704
|
* }
|
|
31413
32705
|
*/
|
|
31414
|
-
"application/json": components["schemas"]["
|
|
32706
|
+
"application/json": components["schemas"]["NarrowedAppGrant"];
|
|
31415
32707
|
};
|
|
31416
32708
|
};
|
|
31417
|
-
/**
|
|
32709
|
+
/**
|
|
32710
|
+
* @description - `validation_error`: the body has an invalid or unknown field.
|
|
32711
|
+
* - `missing_required_field`: a required field is absent.
|
|
32712
|
+
*/
|
|
31418
32713
|
400: {
|
|
31419
32714
|
headers: {
|
|
31420
32715
|
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
@@ -31423,7 +32718,7 @@ interface operations {
|
|
|
31423
32718
|
[name: string]: unknown;
|
|
31424
32719
|
};
|
|
31425
32720
|
content: {
|
|
31426
|
-
"application/json": components["schemas"]["
|
|
32721
|
+
"application/json": components["schemas"]["MissingRequiredFieldOrValidationErrorRefusal"];
|
|
31427
32722
|
};
|
|
31428
32723
|
};
|
|
31429
32724
|
/** @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. */
|
|
@@ -31438,7 +32733,7 @@ interface operations {
|
|
|
31438
32733
|
"application/json": components["schemas"]["UnauthorizedRefusal"];
|
|
31439
32734
|
};
|
|
31440
32735
|
};
|
|
31441
|
-
/** @description - `forbidden`: the credential lacks `grants.manage
|
|
32736
|
+
/** @description - `forbidden`: the credential lacks `grants.manage`, and `details.required_scope` names it, or the requested scopes widen access. */
|
|
31442
32737
|
403: {
|
|
31443
32738
|
headers: {
|
|
31444
32739
|
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
@@ -31450,7 +32745,7 @@ interface operations {
|
|
|
31450
32745
|
"application/json": components["schemas"]["ForbiddenRefusal"];
|
|
31451
32746
|
};
|
|
31452
32747
|
};
|
|
31453
|
-
/** @description - `grant_not_found`: the ID does not name
|
|
32748
|
+
/** @description - `grant_not_found`: the ID does not name a live app grant. */
|
|
31454
32749
|
404: {
|
|
31455
32750
|
headers: {
|
|
31456
32751
|
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
@@ -31462,6 +32757,30 @@ interface operations {
|
|
|
31462
32757
|
"application/json": components["schemas"]["GrantNotFoundRefusal"];
|
|
31463
32758
|
};
|
|
31464
32759
|
};
|
|
32760
|
+
/** @description `request_timeout`: the request body didn't arrive whole within 180 seconds. Nothing changed, and Marfa closed the connection. Send the request again. A body larger than about 21 MiB can't arrive in that time over a 1 Mbit/s link, so send it in smaller requests. */
|
|
32761
|
+
408: {
|
|
32762
|
+
headers: {
|
|
32763
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
32764
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
32765
|
+
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
32766
|
+
[name: string]: unknown;
|
|
32767
|
+
};
|
|
32768
|
+
content: {
|
|
32769
|
+
"application/json": components["schemas"]["RequestTimeoutRefusal"];
|
|
32770
|
+
};
|
|
32771
|
+
};
|
|
32772
|
+
/** @description - `conflict`: the grant's scopes changed; read them again before submitting. */
|
|
32773
|
+
409: {
|
|
32774
|
+
headers: {
|
|
32775
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
32776
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
32777
|
+
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
32778
|
+
[name: string]: unknown;
|
|
32779
|
+
};
|
|
32780
|
+
content: {
|
|
32781
|
+
"application/json": components["schemas"]["ConflictRefusal"];
|
|
32782
|
+
};
|
|
32783
|
+
};
|
|
31465
32784
|
/** @description `contract_mismatch`: `X-Marfa-Contract` names another contract version than this instance speaks, or is not a whole number. Nothing was done. */
|
|
31466
32785
|
412: {
|
|
31467
32786
|
headers: {
|
|
@@ -31538,28 +32857,164 @@ interface operations {
|
|
|
31538
32857
|
};
|
|
31539
32858
|
};
|
|
31540
32859
|
};
|
|
31541
|
-
|
|
32860
|
+
listAppVendors: {
|
|
31542
32861
|
parameters: {
|
|
31543
32862
|
query?: never;
|
|
31544
32863
|
header?: never;
|
|
32864
|
+
path?: never;
|
|
32865
|
+
cookie?: never;
|
|
32866
|
+
};
|
|
32867
|
+
requestBody?: never;
|
|
32868
|
+
responses: {
|
|
32869
|
+
/** @description Returns every vendor binding, ordered by vendor. */
|
|
32870
|
+
200: {
|
|
32871
|
+
headers: {
|
|
32872
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
32873
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
32874
|
+
[name: string]: unknown;
|
|
32875
|
+
};
|
|
32876
|
+
content: {
|
|
32877
|
+
/**
|
|
32878
|
+
* @example {
|
|
32879
|
+
* "data": [
|
|
32880
|
+
* {
|
|
32881
|
+
* "vendor": "app.acme",
|
|
32882
|
+
* "client_id": "01a10127-d974-7c54-8cc4-5b1e0f3c2a10",
|
|
32883
|
+
* "claimed_at": "2026-11-20T09:30:00.000Z"
|
|
32884
|
+
* }
|
|
32885
|
+
* ],
|
|
32886
|
+
* "next_cursor": null
|
|
32887
|
+
* }
|
|
32888
|
+
*/
|
|
32889
|
+
"application/json": components["schemas"]["AppVendorPage"];
|
|
32890
|
+
};
|
|
32891
|
+
};
|
|
32892
|
+
/** @description - `validation_error`: the query has a parameter this endpoint doesn't take. */
|
|
32893
|
+
400: {
|
|
32894
|
+
headers: {
|
|
32895
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
32896
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
32897
|
+
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
32898
|
+
[name: string]: unknown;
|
|
32899
|
+
};
|
|
32900
|
+
content: {
|
|
32901
|
+
"application/json": components["schemas"]["ValidationErrorRefusal"];
|
|
32902
|
+
};
|
|
32903
|
+
};
|
|
32904
|
+
/** @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. */
|
|
32905
|
+
401: {
|
|
32906
|
+
headers: {
|
|
32907
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
32908
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
32909
|
+
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
32910
|
+
[name: string]: unknown;
|
|
32911
|
+
};
|
|
32912
|
+
content: {
|
|
32913
|
+
"application/json": components["schemas"]["UnauthorizedRefusal"];
|
|
32914
|
+
};
|
|
32915
|
+
};
|
|
32916
|
+
/** @description - `forbidden`: the credential lacks `grants.manage`, and `details.required_scope` names it. */
|
|
32917
|
+
403: {
|
|
32918
|
+
headers: {
|
|
32919
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
32920
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
32921
|
+
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
32922
|
+
[name: string]: unknown;
|
|
32923
|
+
};
|
|
32924
|
+
content: {
|
|
32925
|
+
"application/json": components["schemas"]["ForbiddenRefusal"];
|
|
32926
|
+
};
|
|
32927
|
+
};
|
|
32928
|
+
/** @description `contract_mismatch`: `X-Marfa-Contract` names another contract version than this instance speaks, or is not a whole number. Nothing was done. */
|
|
32929
|
+
412: {
|
|
32930
|
+
headers: {
|
|
32931
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
32932
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
32933
|
+
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
32934
|
+
[name: string]: unknown;
|
|
32935
|
+
};
|
|
32936
|
+
content: {
|
|
32937
|
+
"application/json": components["schemas"]["ContractMismatchRefusal"];
|
|
32938
|
+
};
|
|
32939
|
+
};
|
|
32940
|
+
/** @description `rate_limited`: you sent too many requests. Wait for the number of seconds in `Retry-After`, then try again. */
|
|
32941
|
+
429: {
|
|
32942
|
+
headers: {
|
|
32943
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
32944
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
32945
|
+
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
32946
|
+
"Retry-After": components["headers"]["Retry-After"];
|
|
32947
|
+
[name: string]: unknown;
|
|
32948
|
+
};
|
|
32949
|
+
content: {
|
|
32950
|
+
"application/json": components["schemas"]["RateLimitedRefusal"];
|
|
32951
|
+
};
|
|
32952
|
+
};
|
|
32953
|
+
/** @description `internal_error`: Marfa failed in a way it didn't expect, and the request may not have completed. Read what you changed before you repeat a write. */
|
|
32954
|
+
500: {
|
|
32955
|
+
headers: {
|
|
32956
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
32957
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
32958
|
+
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
32959
|
+
[name: string]: unknown;
|
|
32960
|
+
};
|
|
32961
|
+
content: {
|
|
32962
|
+
"application/json": components["schemas"]["InternalErrorRefusal"];
|
|
32963
|
+
};
|
|
32964
|
+
};
|
|
32965
|
+
/** @description `write_contention`: the database was busy, and Marfa couldn't complete the request in time. Nothing changed. Try the request again. While a restore runs, `details.reason` is `restore_running`. */
|
|
32966
|
+
503: {
|
|
32967
|
+
headers: {
|
|
32968
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
32969
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
32970
|
+
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
32971
|
+
"Retry-After": components["headers"]["Retry-After"];
|
|
32972
|
+
[name: string]: unknown;
|
|
32973
|
+
};
|
|
32974
|
+
content: {
|
|
32975
|
+
"application/json": components["schemas"]["WriteContentionRefusal"];
|
|
32976
|
+
};
|
|
32977
|
+
};
|
|
32978
|
+
/** @description `insufficient_storage`: the disk that holds the instance's data has no room for the request, or the request would leave less free than the instance keeps in reserve. Nothing changed, unless `details.write_outcome` is `unknown`, which means the write may have landed: read what you changed before you repeat it. Free space on the disk, then try the request again. */
|
|
32979
|
+
507: {
|
|
32980
|
+
headers: {
|
|
32981
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
32982
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
32983
|
+
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
32984
|
+
[name: string]: unknown;
|
|
32985
|
+
};
|
|
32986
|
+
content: {
|
|
32987
|
+
"application/json": components["schemas"]["InsufficientStorageRefusal"];
|
|
32988
|
+
};
|
|
32989
|
+
};
|
|
32990
|
+
};
|
|
32991
|
+
};
|
|
32992
|
+
giveAppVendor: {
|
|
32993
|
+
parameters: {
|
|
32994
|
+
query?: never;
|
|
32995
|
+
header?: {
|
|
32996
|
+
/** @description The ID of the instance you expect, as `GET /` returns it. If another instance answers at this address, Marfa returns `409 instance_changed` and doesn't write. Leave it out to send the request to whichever instance answers. */
|
|
32997
|
+
"X-Marfa-Instance-Id"?: string;
|
|
32998
|
+
};
|
|
31545
32999
|
path: {
|
|
31546
|
-
/** @description The
|
|
31547
|
-
|
|
33000
|
+
/** @description The namespace, as `app.<vendor>`. */
|
|
33001
|
+
vendor: string;
|
|
31548
33002
|
};
|
|
31549
33003
|
cookie?: never;
|
|
31550
33004
|
};
|
|
31551
33005
|
requestBody: {
|
|
31552
33006
|
content: {
|
|
31553
33007
|
"application/json": {
|
|
31554
|
-
/**
|
|
31555
|
-
|
|
31556
|
-
|
|
31557
|
-
|
|
33008
|
+
/**
|
|
33009
|
+
* @description The OAuth client ID of the app to give the namespace to. `GET /grants` lists each app's `client_id`.
|
|
33010
|
+
* @example 01a10127-d974-7c54-8cc4-5c5581d45c4c
|
|
33011
|
+
*/
|
|
33012
|
+
client_id: string;
|
|
31558
33013
|
};
|
|
31559
33014
|
};
|
|
31560
33015
|
};
|
|
31561
33016
|
responses: {
|
|
31562
|
-
/** @description Returns the
|
|
33017
|
+
/** @description Returns the vendor binding as it now reads. */
|
|
31563
33018
|
200: {
|
|
31564
33019
|
headers: {
|
|
31565
33020
|
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
@@ -31569,18 +33024,17 @@ interface operations {
|
|
|
31569
33024
|
content: {
|
|
31570
33025
|
/**
|
|
31571
33026
|
* @example {
|
|
31572
|
-
* "
|
|
31573
|
-
*
|
|
31574
|
-
*
|
|
31575
|
-
* "revoked_keys": 1
|
|
33027
|
+
* "vendor": "app.acme",
|
|
33028
|
+
* "client_id": "01a10127-d974-7c54-8cc4-5b1e0f3c2a10",
|
|
33029
|
+
* "claimed_at": "2026-11-20T09:30:00.000Z"
|
|
31576
33030
|
* }
|
|
31577
33031
|
*/
|
|
31578
|
-
"application/json": components["schemas"]["
|
|
33032
|
+
"application/json": components["schemas"]["AppVendor"];
|
|
31579
33033
|
};
|
|
31580
33034
|
};
|
|
31581
33035
|
/**
|
|
31582
|
-
* @description - `validation_error`: the body has
|
|
31583
|
-
* - `missing_required_field`:
|
|
33036
|
+
* @description - `validation_error`: the vendor is not an `app.<vendor>` namespace, the body is malformed, `client_id` is not a string, the body has a field this endpoint doesn't take, or the query has a parameter it doesn't take.
|
|
33037
|
+
* - `missing_required_field`: `client_id` is missing.
|
|
31584
33038
|
*/
|
|
31585
33039
|
400: {
|
|
31586
33040
|
headers: {
|
|
@@ -31605,7 +33059,7 @@ interface operations {
|
|
|
31605
33059
|
"application/json": components["schemas"]["UnauthorizedRefusal"];
|
|
31606
33060
|
};
|
|
31607
33061
|
};
|
|
31608
|
-
/** @description - `forbidden`: the credential lacks `grants.manage`, and `details.required_scope` names it, or
|
|
33062
|
+
/** @description - `forbidden`: the credential lacks `grants.manage`, and `details.required_scope` names it, or it is an app's sign-in or a key an app made, which never gives a namespace to an app. */
|
|
31609
33063
|
403: {
|
|
31610
33064
|
headers: {
|
|
31611
33065
|
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
@@ -31617,7 +33071,7 @@ interface operations {
|
|
|
31617
33071
|
"application/json": components["schemas"]["ForbiddenRefusal"];
|
|
31618
33072
|
};
|
|
31619
33073
|
};
|
|
31620
|
-
/** @description - `
|
|
33074
|
+
/** @description - `not_found`: no app with that client ID has registered on this instance, and `details.client_id` names it. */
|
|
31621
33075
|
404: {
|
|
31622
33076
|
headers: {
|
|
31623
33077
|
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
@@ -31626,7 +33080,7 @@ interface operations {
|
|
|
31626
33080
|
[name: string]: unknown;
|
|
31627
33081
|
};
|
|
31628
33082
|
content: {
|
|
31629
|
-
"application/json": components["schemas"]["
|
|
33083
|
+
"application/json": components["schemas"]["NotFoundRefusal"];
|
|
31630
33084
|
};
|
|
31631
33085
|
};
|
|
31632
33086
|
/** @description `request_timeout`: the request body didn't arrive whole within 180 seconds. Nothing changed, and Marfa closed the connection. Send the request again. A body larger than about 21 MiB can't arrive in that time over a 1 Mbit/s link, so send it in smaller requests. */
|
|
@@ -31641,7 +33095,7 @@ interface operations {
|
|
|
31641
33095
|
"application/json": components["schemas"]["RequestTimeoutRefusal"];
|
|
31642
33096
|
};
|
|
31643
33097
|
};
|
|
31644
|
-
/** @description
|
|
33098
|
+
/** @description `instance_changed`: `X-Marfa-Instance-Id` names another instance. Nothing is written. Rebuild the working copy from the instance at this address. */
|
|
31645
33099
|
409: {
|
|
31646
33100
|
headers: {
|
|
31647
33101
|
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
@@ -31650,7 +33104,7 @@ interface operations {
|
|
|
31650
33104
|
[name: string]: unknown;
|
|
31651
33105
|
};
|
|
31652
33106
|
content: {
|
|
31653
|
-
"application/json": components["schemas"]["
|
|
33107
|
+
"application/json": components["schemas"]["InstanceChangedRefusal"];
|
|
31654
33108
|
};
|
|
31655
33109
|
};
|
|
31656
33110
|
/** @description `contract_mismatch`: `X-Marfa-Contract` names another contract version than this instance speaks, or is not a whole number. Nothing was done. */
|
|
@@ -32412,9 +33866,9 @@ interface operations {
|
|
|
32412
33866
|
name?: string;
|
|
32413
33867
|
/**
|
|
32414
33868
|
* Format: email
|
|
32415
|
-
* @description The owner's email address
|
|
33869
|
+
* @description The owner's email address, which plays no part in signing in. Marfa stores it in lowercase, with spaces at each end trimmed. Leave it out or send `null` to set none.
|
|
32416
33870
|
*/
|
|
32417
|
-
email?: string;
|
|
33871
|
+
email?: string | null;
|
|
32418
33872
|
/** @description Machine-issued setup code. Omit when using a setup-only browser session. */
|
|
32419
33873
|
code?: string;
|
|
32420
33874
|
};
|
|
@@ -36607,7 +38061,8 @@ interface operations {
|
|
|
36607
38061
|
* },
|
|
36608
38062
|
* "types": {
|
|
36609
38063
|
* "core": 29,
|
|
36610
|
-
* "registered": 3
|
|
38064
|
+
* "registered": 3,
|
|
38065
|
+
* "plugin": 0
|
|
36611
38066
|
* },
|
|
36612
38067
|
* "keys": {
|
|
36613
38068
|
* "total": 1
|
|
@@ -36652,12 +38107,14 @@ interface operations {
|
|
|
36652
38107
|
/** @description Total size of stored blobs, in bytes. */
|
|
36653
38108
|
total_bytes: number;
|
|
36654
38109
|
};
|
|
36655
|
-
/** @description Built-in and
|
|
38110
|
+
/** @description Built-in, registered and plugin type counts. */
|
|
36656
38111
|
types: {
|
|
36657
38112
|
/** @description Number of built-in types. */
|
|
36658
38113
|
core: number;
|
|
36659
|
-
/** @description Number of registered types. */
|
|
38114
|
+
/** @description Number of types registered through `POST /types` or a restore. */
|
|
36660
38115
|
registered: number;
|
|
38116
|
+
/** @description Number of types a plugin installed. */
|
|
38117
|
+
plugin: number;
|
|
36661
38118
|
};
|
|
36662
38119
|
keys: components["schemas"]["MetricCount"];
|
|
36663
38120
|
webhooks: components["schemas"]["MetricCount"] & unknown;
|
|
@@ -37960,6 +39417,8 @@ interface operations {
|
|
|
37960
39417
|
* "sources_skipped_reasons": {
|
|
37961
39418
|
* "already_set": 1
|
|
37962
39419
|
* },
|
|
39420
|
+
* "plugins_added": 0,
|
|
39421
|
+
* "plugins_skipped": 0,
|
|
37963
39422
|
* "settings_added": 0,
|
|
37964
39423
|
* "settings_skipped": 0,
|
|
37965
39424
|
* "settings_dropped": [],
|
|
@@ -37970,6 +39429,8 @@ interface operations {
|
|
|
37970
39429
|
* "connector_states_skipped": 0,
|
|
37971
39430
|
* "connector_agreements_added": 0,
|
|
37972
39431
|
* "connector_agreements_skipped": 0,
|
|
39432
|
+
* "app_vendors_added": 0,
|
|
39433
|
+
* "app_vendors_skipped": 0,
|
|
37973
39434
|
* "rows_imported": 0,
|
|
37974
39435
|
* "rows_skipped": 0,
|
|
37975
39436
|
* "entries_skipped": [],
|
|
@@ -38042,6 +39503,10 @@ interface operations {
|
|
|
38042
39503
|
sources_skipped_reasons: {
|
|
38043
39504
|
[key: string]: number;
|
|
38044
39505
|
};
|
|
39506
|
+
/** @description Plugin install records the restore added. */
|
|
39507
|
+
plugins_added: number;
|
|
39508
|
+
/** @description Plugin install records the restore left as this instance holds them. */
|
|
39509
|
+
plugins_skipped: number;
|
|
38045
39510
|
/** @description How many settings Marfa stored, for settings the instance had not stored. */
|
|
38046
39511
|
settings_added: number;
|
|
38047
39512
|
/** @description How many settings Marfa skipped because the instance already stores them. */
|
|
@@ -38062,6 +39527,10 @@ interface operations {
|
|
|
38062
39527
|
connector_agreements_added: number;
|
|
38063
39528
|
/** @description How many connector agreements Marfa skipped because the instance holds no such item or already holds an agreement for it. */
|
|
38064
39529
|
connector_agreements_skipped: number;
|
|
39530
|
+
/** @description How many vendor bindings Marfa stored, each giving an `app.<vendor>` namespace to the app that holds it. */
|
|
39531
|
+
app_vendors_added: number;
|
|
39532
|
+
/** @description How many vendor bindings Marfa skipped: the namespace was already held here, or an app's sign-in or a key an app made sent the restore. */
|
|
39533
|
+
app_vendors_skipped: number;
|
|
38065
39534
|
/** @description How many table rows Marfa wrote. */
|
|
38066
39535
|
rows_imported: number;
|
|
38067
39536
|
/** @description How many table rows Marfa skipped because their item was counted as a duplicate. */
|
|
@@ -38107,8 +39576,8 @@ interface operations {
|
|
|
38107
39576
|
};
|
|
38108
39577
|
};
|
|
38109
39578
|
/**
|
|
38110
|
-
* @description - `forbidden`:
|
|
38111
|
-
* - `app_sign_in_required`: you are an API key.
|
|
39579
|
+
* @description - `forbidden`: `details.required_scope` names the missing permission. `details.settings` lists settings for `config.manage`, and `details.changes` lists `guidance` for `schema.write`.
|
|
39580
|
+
* - `app_sign_in_required`: you are using an API key. Use an app you signed in to or the private local command.
|
|
38112
39581
|
*/
|
|
38113
39582
|
403: {
|
|
38114
39583
|
headers: {
|
|
@@ -38172,18 +39641,6 @@ interface operations {
|
|
|
38172
39641
|
"application/json": components["schemas"]["RequestTooLargeRefusal"];
|
|
38173
39642
|
};
|
|
38174
39643
|
};
|
|
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
39644
|
/** @description `rate_limited`: you sent too many requests. Wait for the number of seconds in `Retry-After`, then try again. */
|
|
38188
39645
|
429: {
|
|
38189
39646
|
headers: {
|
|
@@ -38762,6 +40219,8 @@ interface operations {
|
|
|
38762
40219
|
* "sources_added": 0,
|
|
38763
40220
|
* "sources_skipped": 0,
|
|
38764
40221
|
* "sources_skipped_reasons": {},
|
|
40222
|
+
* "plugins_added": 0,
|
|
40223
|
+
* "plugins_skipped": 0,
|
|
38765
40224
|
* "settings_added": 0,
|
|
38766
40225
|
* "settings_skipped": 0,
|
|
38767
40226
|
* "settings_dropped": [],
|
|
@@ -38772,6 +40231,8 @@ interface operations {
|
|
|
38772
40231
|
* "connector_states_skipped": 0,
|
|
38773
40232
|
* "connector_agreements_added": 0,
|
|
38774
40233
|
* "connector_agreements_skipped": 0,
|
|
40234
|
+
* "app_vendors_added": 0,
|
|
40235
|
+
* "app_vendors_skipped": 0,
|
|
38775
40236
|
* "rows_imported": 0,
|
|
38776
40237
|
* "rows_skipped": 0,
|
|
38777
40238
|
* "entries_skipped": [],
|
|
@@ -38838,6 +40299,10 @@ interface operations {
|
|
|
38838
40299
|
sources_skipped_reasons: {
|
|
38839
40300
|
[key: string]: number;
|
|
38840
40301
|
};
|
|
40302
|
+
/** @description Plugin install records the restore added. */
|
|
40303
|
+
plugins_added: number;
|
|
40304
|
+
/** @description Plugin install records the restore left as this instance holds them. */
|
|
40305
|
+
plugins_skipped: number;
|
|
38841
40306
|
/** @description How many settings Marfa stored, for settings the instance had not stored. */
|
|
38842
40307
|
settings_added: number;
|
|
38843
40308
|
/** @description How many settings Marfa skipped because the instance already stores them. */
|
|
@@ -38858,6 +40323,10 @@ interface operations {
|
|
|
38858
40323
|
connector_agreements_added: number;
|
|
38859
40324
|
/** @description How many connector agreements Marfa skipped because the instance holds no such item or already holds an agreement for it. */
|
|
38860
40325
|
connector_agreements_skipped: number;
|
|
40326
|
+
/** @description How many vendor bindings Marfa stored, each giving an `app.<vendor>` namespace to the app that holds it. */
|
|
40327
|
+
app_vendors_added: number;
|
|
40328
|
+
/** @description How many vendor bindings Marfa skipped: the namespace was already held here, or an app's sign-in or a key an app made sent the restore. */
|
|
40329
|
+
app_vendors_skipped: number;
|
|
38861
40330
|
/** @description How many table rows Marfa wrote. */
|
|
38862
40331
|
rows_imported: number;
|
|
38863
40332
|
/** @description How many table rows Marfa skipped because their item was counted as a duplicate. */
|
|
@@ -38914,8 +40383,8 @@ interface operations {
|
|
|
38914
40383
|
};
|
|
38915
40384
|
};
|
|
38916
40385
|
/**
|
|
38917
|
-
* @description - `forbidden`:
|
|
38918
|
-
* - `app_sign_in_required`: you are an API key.
|
|
40386
|
+
* @description - `forbidden`: `details.required_scope` names the missing permission. `details.settings` lists settings for `config.manage`, and `details.changes` lists `guidance` for `schema.write`.
|
|
40387
|
+
* - `app_sign_in_required`: you are using an API key. Use an app you signed in to or the private local command.
|
|
38919
40388
|
*/
|
|
38920
40389
|
403: {
|
|
38921
40390
|
headers: {
|
|
@@ -38981,18 +40450,6 @@ interface operations {
|
|
|
38981
40450
|
"application/json": components["schemas"]["RequestTooLargeRefusal"];
|
|
38982
40451
|
};
|
|
38983
40452
|
};
|
|
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
40453
|
/** @description `rate_limited`: you sent too many requests. Wait for the number of seconds in `Retry-After`, then try again. */
|
|
38997
40454
|
429: {
|
|
38998
40455
|
headers: {
|