@withmarfa/client 0.0.97 → 0.0.99
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 +578 -18
- package/dist/index.d.ts +578 -18
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1989,7 +1989,7 @@ interface paths {
|
|
|
1989
1989
|
};
|
|
1990
1990
|
/**
|
|
1991
1991
|
* List connector agreements
|
|
1992
|
-
* @description Returns the agreements of the connector's source, the one written longest ago first. Items
|
|
1992
|
+
* @description Returns the agreements of the connector's source, the one written longest ago first. Items you can't read are left out, so a page can be short with more to follow.
|
|
1993
1993
|
*/
|
|
1994
1994
|
get: operations["listConnectorAgreements"];
|
|
1995
1995
|
put?: never;
|
|
@@ -2015,7 +2015,7 @@ interface paths {
|
|
|
2015
2015
|
put?: never;
|
|
2016
2016
|
/**
|
|
2017
2017
|
* Look up connector agreements
|
|
2018
|
-
* @description Looks up the agreements of the named items and returns those that exist, each item once, in the order you first named it. An item
|
|
2018
|
+
* @description Looks up the agreements of the named items and returns those that exist, each item once, in the order you first named it. An item you can't read is left out.
|
|
2019
2019
|
*/
|
|
2020
2020
|
post: operations["lookupConnectorAgreements"];
|
|
2021
2021
|
delete?: never;
|
|
@@ -2292,7 +2292,7 @@ interface paths {
|
|
|
2292
2292
|
post?: never;
|
|
2293
2293
|
/**
|
|
2294
2294
|
* Revoke an app grant
|
|
2295
|
-
* @description Revokes the app's tokens and consent. Requires `grants.manage`.
|
|
2295
|
+
* @description Revokes the app's tokens and consent. Its keys stay unless `revoke_keys` is `true`, and its data stays unless `remove_data` is `true`. Requires `grants.manage`.
|
|
2296
2296
|
*/
|
|
2297
2297
|
delete: operations["revokeAppGrant"];
|
|
2298
2298
|
options?: never;
|
|
@@ -2344,6 +2344,30 @@ interface paths {
|
|
|
2344
2344
|
patch?: never;
|
|
2345
2345
|
trace?: never;
|
|
2346
2346
|
};
|
|
2347
|
+
"/app-vendors/{vendor}/data": {
|
|
2348
|
+
parameters: {
|
|
2349
|
+
query?: never;
|
|
2350
|
+
header?: never;
|
|
2351
|
+
path?: never;
|
|
2352
|
+
cookie?: never;
|
|
2353
|
+
};
|
|
2354
|
+
/**
|
|
2355
|
+
* List an app's data
|
|
2356
|
+
* @description Returns each type under an `app.<vendor>` namespace, registered or held by an item, with its items counted by state, and a page of those items in every state. Requires the browser session or `grants.manage`; a key also needs read on those types.
|
|
2357
|
+
*/
|
|
2358
|
+
get: operations["listAppVendorData"];
|
|
2359
|
+
put?: never;
|
|
2360
|
+
post?: never;
|
|
2361
|
+
/**
|
|
2362
|
+
* Delete an app's data
|
|
2363
|
+
* @description Deletes for good up to 1,000 items under an `app.<vendor>` namespace, in every state, and its registered types once none is left. Needs `items.purge` and the browser session or `grants.manage`; a key also needs write on its types and `schema.write`.
|
|
2364
|
+
*/
|
|
2365
|
+
delete: operations["deleteAppVendorData"];
|
|
2366
|
+
options?: never;
|
|
2367
|
+
head?: never;
|
|
2368
|
+
patch?: never;
|
|
2369
|
+
trace?: never;
|
|
2370
|
+
};
|
|
2347
2371
|
"/oauth/authorize": {
|
|
2348
2372
|
parameters: {
|
|
2349
2373
|
query?: never;
|
|
@@ -2524,7 +2548,7 @@ interface paths {
|
|
|
2524
2548
|
post?: never;
|
|
2525
2549
|
/**
|
|
2526
2550
|
* End a sign-in
|
|
2527
|
-
* @description Ends a sign-in at once: it can't refresh or make another request, even when it is your own. An app's keys stay unless `revoke_keys` is `true`. Requires `sign_ins.manage`.
|
|
2551
|
+
* @description Ends a sign-in at once: it can't refresh or make another request, even when it is your own. An app's keys stay unless `revoke_keys` is `true`, and its data unless `remove_data` is `true`. Requires `sign_ins.manage`.
|
|
2528
2552
|
*/
|
|
2529
2553
|
delete: operations["endSignIn"];
|
|
2530
2554
|
options?: never;
|
|
@@ -7517,6 +7541,9 @@ interface components {
|
|
|
7517
7541
|
* "scopes": [
|
|
7518
7542
|
* "core.note:read"
|
|
7519
7543
|
* ],
|
|
7544
|
+
* "vendors": [
|
|
7545
|
+
* "app.reader"
|
|
7546
|
+
* ],
|
|
7520
7547
|
* "status": "active",
|
|
7521
7548
|
* "granted_at": "2026-10-03T09:30:00.000Z",
|
|
7522
7549
|
* "last_used_at": null
|
|
@@ -7542,6 +7569,9 @@ interface components {
|
|
|
7542
7569
|
* "scopes": [
|
|
7543
7570
|
* "core.note:read"
|
|
7544
7571
|
* ],
|
|
7572
|
+
* "vendors": [
|
|
7573
|
+
* "app.reader"
|
|
7574
|
+
* ],
|
|
7545
7575
|
* "status": "active",
|
|
7546
7576
|
* "granted_at": "2026-10-03T09:30:00.000Z",
|
|
7547
7577
|
* "last_used_at": null
|
|
@@ -7569,6 +7599,13 @@ interface components {
|
|
|
7569
7599
|
origins: string[];
|
|
7570
7600
|
/** @description The access the owner approved for the app. */
|
|
7571
7601
|
scopes: string[];
|
|
7602
|
+
/**
|
|
7603
|
+
* @description Each `app.<vendor>` namespace the app holds. `GET /app-vendors/{vendor}/data` lists what it keeps there.
|
|
7604
|
+
* @example [
|
|
7605
|
+
* "app.reader"
|
|
7606
|
+
* ]
|
|
7607
|
+
*/
|
|
7608
|
+
vendors: string[];
|
|
7572
7609
|
/** @description The grant's status. */
|
|
7573
7610
|
status: string;
|
|
7574
7611
|
/**
|
|
@@ -9558,6 +9595,11 @@ interface components {
|
|
|
9558
9595
|
* @example 01a10127-d974-7c54-8cc4-5c5581d45c4c
|
|
9559
9596
|
*/
|
|
9560
9597
|
client_id: string | null;
|
|
9598
|
+
/**
|
|
9599
|
+
* @description The name the app that holds the namespace registered, or `null` while the owner holds it or the app registered none.
|
|
9600
|
+
* @example Reader
|
|
9601
|
+
*/
|
|
9602
|
+
client_name: string | null;
|
|
9561
9603
|
/**
|
|
9562
9604
|
* Format: date-time
|
|
9563
9605
|
* @description When the namespace was first held, or when it was given to the app that holds it.
|
|
@@ -9652,8 +9694,27 @@ interface components {
|
|
|
9652
9694
|
*/
|
|
9653
9695
|
on: "host";
|
|
9654
9696
|
};
|
|
9697
|
+
/** @description Where a connector's code is: the address of its code file, the file's SHA-256 and its size. */
|
|
9698
|
+
PluginConnectorCode: {
|
|
9699
|
+
/**
|
|
9700
|
+
* Format: uri
|
|
9701
|
+
* @description The `https` address of the connector's code file, with no user name or password.
|
|
9702
|
+
* @example https://example.com/releases/v0.0.14/rss.connector.mjs
|
|
9703
|
+
*/
|
|
9704
|
+
url: string;
|
|
9705
|
+
/**
|
|
9706
|
+
* @description The SHA-256 of the code file, in lowercase hexadecimal. A connector host runs the file only when its digest matches.
|
|
9707
|
+
* @example 9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08
|
|
9708
|
+
*/
|
|
9709
|
+
sha256: string;
|
|
9710
|
+
/**
|
|
9711
|
+
* @description The size of the code file, in bytes. A connector host stops a fetch that passes it.
|
|
9712
|
+
* @example 524288
|
|
9713
|
+
*/
|
|
9714
|
+
size: number;
|
|
9715
|
+
};
|
|
9655
9716
|
/**
|
|
9656
|
-
* @description A plugin's connector: the source it writes under, the kinds it brings, the settings it reads, its sign-in and where
|
|
9717
|
+
* @description A plugin's connector: the source it writes under, the kinds it brings, the settings it reads, its sign-in, where it runs and where its code is.
|
|
9657
9718
|
* @example {
|
|
9658
9719
|
* "source": "rss",
|
|
9659
9720
|
* "source_name": "RSS",
|
|
@@ -9675,6 +9736,11 @@ interface components {
|
|
|
9675
9736
|
* ],
|
|
9676
9737
|
* "runs": {
|
|
9677
9738
|
* "on": "host"
|
|
9739
|
+
* },
|
|
9740
|
+
* "code": {
|
|
9741
|
+
* "url": "https://example.com/releases/v0.0.14/rss.connector.mjs",
|
|
9742
|
+
* "sha256": "9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08",
|
|
9743
|
+
* "size": 524288
|
|
9678
9744
|
* }
|
|
9679
9745
|
* }
|
|
9680
9746
|
*/
|
|
@@ -9709,6 +9775,8 @@ interface components {
|
|
|
9709
9775
|
sign_in?: components["schemas"]["PluginConnectorSignIn"];
|
|
9710
9776
|
/** @description Where the connector runs. */
|
|
9711
9777
|
runs: components["schemas"]["PluginConnectorRuns"];
|
|
9778
|
+
/** @description Where the connector's code is, so a connector host can fetch and check it. A later version of the plugin may change it. Present only when the bundle gives it. */
|
|
9779
|
+
code?: components["schemas"]["PluginConnectorCode"];
|
|
9712
9780
|
};
|
|
9713
9781
|
/**
|
|
9714
9782
|
* @description A connector host is one machine that runs connectors, linked to the instance once.
|
|
@@ -10168,7 +10236,7 @@ interface components {
|
|
|
10168
10236
|
/** @description Jinja text the connector renders. Fills only a field of type `string`. */
|
|
10169
10237
|
template: string;
|
|
10170
10238
|
};
|
|
10171
|
-
/** @description What one kind of the connector brings. An answer holds every member; a member a save leaves out takes its default. */
|
|
10239
|
+
/** @description What one kind of the connector brings. An answer holds every member; a member a save leaves out takes its default, except when `target_type` is not the kind's own type: `fields` left out are the fields both types declare, each `{ "from": <field> }`, and `status_overrides` left out are none. */
|
|
10172
10240
|
ConnectorMappingKind: {
|
|
10173
10241
|
/** @description Whether the kind comes in. */
|
|
10174
10242
|
enabled?: boolean;
|
|
@@ -10417,7 +10485,7 @@ interface components {
|
|
|
10417
10485
|
* @example 01a1fa41-9d8e-7f10-b2c3-4d5e6f708192
|
|
10418
10486
|
*/
|
|
10419
10487
|
item_id?: string;
|
|
10420
|
-
/** @description A draft of the kind's mapping, checked as a save checks it
|
|
10488
|
+
/** @description A draft of the kind's mapping, checked as a save checks it. A member you leave out takes the default a save gives it, as `ConnectorMappingKind` says, including when `target_type` is another type. Leave it out to preview the mapping in force. */
|
|
10421
10489
|
mapping?: components["schemas"]["ConnectorMappingKind"];
|
|
10422
10490
|
};
|
|
10423
10491
|
/** @description The connector's answer to a mapping preview: `result` or `error`, not both. */
|
|
@@ -10443,6 +10511,120 @@ interface components {
|
|
|
10443
10511
|
/** @description The ID of the item the connector rendered, or `null` if it rendered from its service. Present only if the connector sent it. */
|
|
10444
10512
|
source_item?: string | null;
|
|
10445
10513
|
};
|
|
10514
|
+
/** @description An error response. */
|
|
10515
|
+
InstanceChangedOrTypeHasSubtypesOrTypeInUseRefusal: {
|
|
10516
|
+
/** @description What went wrong. */
|
|
10517
|
+
error: {
|
|
10518
|
+
/**
|
|
10519
|
+
* @description A machine-readable code for the error. Use it in your logic.
|
|
10520
|
+
* @enum {string}
|
|
10521
|
+
*/
|
|
10522
|
+
code: "instance_changed" | "type_has_subtypes" | "type_in_use";
|
|
10523
|
+
/** @description A description of the error for a person to read. It can change, so don't match on it. */
|
|
10524
|
+
message: string;
|
|
10525
|
+
/** @description More about the error, such as the field it concerns. Each code defines its own details. */
|
|
10526
|
+
details?: {
|
|
10527
|
+
[key: string]: unknown;
|
|
10528
|
+
};
|
|
10529
|
+
};
|
|
10530
|
+
};
|
|
10531
|
+
/** @description An error response. */
|
|
10532
|
+
BulkCapExceededOrValidationErrorRefusal: {
|
|
10533
|
+
/** @description What went wrong. */
|
|
10534
|
+
error: {
|
|
10535
|
+
/**
|
|
10536
|
+
* @description A machine-readable code for the error. Use it in your logic.
|
|
10537
|
+
* @enum {string}
|
|
10538
|
+
*/
|
|
10539
|
+
code: "bulk_cap_exceeded" | "validation_error";
|
|
10540
|
+
/** @description A description of the error for a person to read. It can change, so don't match on it. */
|
|
10541
|
+
message: string;
|
|
10542
|
+
/** @description More about the error, such as the field it concerns. Each code defines its own details. */
|
|
10543
|
+
details?: {
|
|
10544
|
+
[key: string]: unknown;
|
|
10545
|
+
};
|
|
10546
|
+
};
|
|
10547
|
+
};
|
|
10548
|
+
/** @description A type registered under an `app.<vendor>` namespace, with how many items of it stand in each state. */
|
|
10549
|
+
AppVendorDataType: {
|
|
10550
|
+
/**
|
|
10551
|
+
* @description The type's identifier.
|
|
10552
|
+
* @example app.acme.setting
|
|
10553
|
+
*/
|
|
10554
|
+
type: string;
|
|
10555
|
+
/** @description How many of its items are active. */
|
|
10556
|
+
active: number;
|
|
10557
|
+
/** @description How many of its items are archived. */
|
|
10558
|
+
archived: number;
|
|
10559
|
+
/** @description How many of its items are in the trash. */
|
|
10560
|
+
trashed: number;
|
|
10561
|
+
};
|
|
10562
|
+
/** @description An item of a type under an `app.<vendor>` namespace, in any state. */
|
|
10563
|
+
AppVendorDataItem: {
|
|
10564
|
+
/**
|
|
10565
|
+
* @description Unique identifier for the item.
|
|
10566
|
+
* @example 019980d6-7612-7000-8000-000000000002
|
|
10567
|
+
*/
|
|
10568
|
+
id: string;
|
|
10569
|
+
/**
|
|
10570
|
+
* @description The item's type.
|
|
10571
|
+
* @example app.acme.setting
|
|
10572
|
+
*/
|
|
10573
|
+
type: string;
|
|
10574
|
+
/** @description The item's version. */
|
|
10575
|
+
version: number;
|
|
10576
|
+
/** @description The item's title, or a name Marfa gives an item without one. */
|
|
10577
|
+
name: string;
|
|
10578
|
+
/** @description The source that wrote the item. */
|
|
10579
|
+
source: string;
|
|
10580
|
+
/**
|
|
10581
|
+
* @description The item's state: `active`, `archived`, or `trashed` while it is in the trash.
|
|
10582
|
+
* @enum {string}
|
|
10583
|
+
*/
|
|
10584
|
+
state: "active" | "archived" | "trashed";
|
|
10585
|
+
/**
|
|
10586
|
+
* Format: date-time
|
|
10587
|
+
* @description When the item was created, in UTC.
|
|
10588
|
+
* @example 2026-11-21T09:30:00.000Z
|
|
10589
|
+
*/
|
|
10590
|
+
created_at: string;
|
|
10591
|
+
};
|
|
10592
|
+
/** @description What an app keeps under one `app.<vendor>` namespace: its types with counts, and a page of its items in every state. */
|
|
10593
|
+
AppVendorDataPage: {
|
|
10594
|
+
/**
|
|
10595
|
+
* @description The namespace, as `app.<vendor>`.
|
|
10596
|
+
* @example app.acme
|
|
10597
|
+
*/
|
|
10598
|
+
vendor: string;
|
|
10599
|
+
/**
|
|
10600
|
+
* @description The OAuth client ID of the app that holds the namespace, or `null` while the owner holds it.
|
|
10601
|
+
* @example 01a10127-d974-7c54-8cc4-5c5581d45c4c
|
|
10602
|
+
*/
|
|
10603
|
+
client_id: string | null;
|
|
10604
|
+
/** @description Every type registered under the namespace, by identifier, each in every page. */
|
|
10605
|
+
types: components["schemas"]["AppVendorDataType"][];
|
|
10606
|
+
/** @description A page of the namespace's items, oldest first. */
|
|
10607
|
+
data: components["schemas"]["AppVendorDataItem"][];
|
|
10608
|
+
/**
|
|
10609
|
+
* @description Send as `cursor` for the next page, or `null` on the last page.
|
|
10610
|
+
* @example null
|
|
10611
|
+
*/
|
|
10612
|
+
next_cursor: string | null;
|
|
10613
|
+
};
|
|
10614
|
+
/** @description What one removal of an `app.<vendor>` namespace's data deleted, and how many of its items are left. */
|
|
10615
|
+
AppVendorDataRemoval: {
|
|
10616
|
+
/**
|
|
10617
|
+
* @description The namespace, as `app.<vendor>`.
|
|
10618
|
+
* @example app.acme
|
|
10619
|
+
*/
|
|
10620
|
+
vendor: string;
|
|
10621
|
+
/** @description How many items this call deleted, at most 1,000. */
|
|
10622
|
+
removed_items: number;
|
|
10623
|
+
/** @description How many types this call deleted: every type under the namespace, in the call that leaves no item. */
|
|
10624
|
+
removed_types: number;
|
|
10625
|
+
/** @description How many items of the namespace are left. Call again until it is `0`. */
|
|
10626
|
+
remaining_items: number;
|
|
10627
|
+
};
|
|
10446
10628
|
};
|
|
10447
10629
|
responses: never;
|
|
10448
10630
|
parameters: never;
|
|
@@ -35568,7 +35750,7 @@ interface operations {
|
|
|
35568
35750
|
written: number;
|
|
35569
35751
|
/** @description How many agreements Marfa removed. */
|
|
35570
35752
|
cleared: number;
|
|
35571
|
-
/** @description The IDs Marfa skipped, in the order named, `set` first. An ID is skipped if no stored item has it or
|
|
35753
|
+
/** @description The IDs Marfa skipped, in the order named, `set` first. An ID is skipped if no stored item has it or it names an item you can't read. A trashed item counts as stored. */
|
|
35572
35754
|
skipped: string[];
|
|
35573
35755
|
};
|
|
35574
35756
|
};
|
|
@@ -38676,6 +38858,9 @@ interface operations {
|
|
|
38676
38858
|
* "scopes": [
|
|
38677
38859
|
* "core.note:read"
|
|
38678
38860
|
* ],
|
|
38861
|
+
* "vendors": [
|
|
38862
|
+
* "app.reader"
|
|
38863
|
+
* ],
|
|
38679
38864
|
* "status": "active",
|
|
38680
38865
|
* "granted_at": "2026-10-03T09:30:00.000Z",
|
|
38681
38866
|
* "last_used_at": null
|
|
@@ -38792,6 +38977,8 @@ interface operations {
|
|
|
38792
38977
|
query?: {
|
|
38793
38978
|
/** @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. */
|
|
38794
38979
|
revoke_keys?: boolean;
|
|
38980
|
+
/** @description For an app, also delete for good the items and types of every `app.<vendor>` namespace it holds, in the same write. Needs `items.purge`; a key also needs write on those types and `schema.write`. Omitting it, or `false`, keeps them. */
|
|
38981
|
+
remove_data?: boolean;
|
|
38795
38982
|
};
|
|
38796
38983
|
header?: never;
|
|
38797
38984
|
path: {
|
|
@@ -38818,7 +39005,10 @@ interface operations {
|
|
|
38818
39005
|
"application/json": components["schemas"]["Ok"];
|
|
38819
39006
|
};
|
|
38820
39007
|
};
|
|
38821
|
-
/**
|
|
39008
|
+
/**
|
|
39009
|
+
* @description - `validation_error`: the query has a parameter this endpoint doesn't take, or `revoke_keys` or `remove_data` is neither `true` nor `false`, or is named more than once. Nothing is revoked.
|
|
39010
|
+
* - `bulk_cap_exceeded`: with `remove_data`, the app holds more than 1,000 items. Nothing is revoked; delete them first with `DELETE /app-vendors/{vendor}/data`.
|
|
39011
|
+
*/
|
|
38822
39012
|
400: {
|
|
38823
39013
|
headers: {
|
|
38824
39014
|
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
@@ -38827,7 +39017,7 @@ interface operations {
|
|
|
38827
39017
|
[name: string]: unknown;
|
|
38828
39018
|
};
|
|
38829
39019
|
content: {
|
|
38830
|
-
"application/json": components["schemas"]["
|
|
39020
|
+
"application/json": components["schemas"]["BulkCapExceededOrValidationErrorRefusal"];
|
|
38831
39021
|
};
|
|
38832
39022
|
};
|
|
38833
39023
|
/** @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. */
|
|
@@ -38842,7 +39032,10 @@ interface operations {
|
|
|
38842
39032
|
"application/json": components["schemas"]["UnauthorizedRefusal"];
|
|
38843
39033
|
};
|
|
38844
39034
|
};
|
|
38845
|
-
/**
|
|
39035
|
+
/**
|
|
39036
|
+
* @description - `forbidden`: the credential lacks `grants.manage`, or with `remove_data` `items.purge` or `schema.write` (`details.required_scope`), or with `remove_data` it is an app's sign-in or a key an app made and the grant is another app's.
|
|
39037
|
+
* - `type_not_permitted`: a key or an app's sign-in lacks write on a type under the app's namespaces with `remove_data`. `details.grant` names `<vendor>.*`.
|
|
39038
|
+
*/
|
|
38846
39039
|
403: {
|
|
38847
39040
|
headers: {
|
|
38848
39041
|
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
@@ -38851,7 +39044,7 @@ interface operations {
|
|
|
38851
39044
|
[name: string]: unknown;
|
|
38852
39045
|
};
|
|
38853
39046
|
content: {
|
|
38854
|
-
"application/json": components["schemas"]["
|
|
39047
|
+
"application/json": components["schemas"]["ForbiddenOrTypeNotPermittedRefusal"];
|
|
38855
39048
|
};
|
|
38856
39049
|
};
|
|
38857
39050
|
/** @description - `grant_not_found`: the ID does not name an app grant. */
|
|
@@ -38866,6 +39059,21 @@ interface operations {
|
|
|
38866
39059
|
"application/json": components["schemas"]["GrantNotFoundRefusal"];
|
|
38867
39060
|
};
|
|
38868
39061
|
};
|
|
39062
|
+
/**
|
|
39063
|
+
* @description - `type_in_use`: with `remove_data`, a folder, view, webhook or table column outside the app's namespaces names one of its types. Nothing is revoked.
|
|
39064
|
+
* - `type_has_subtypes`: with `remove_data`, a type outside the app's namespaces inherits from one of its types. Nothing is revoked.
|
|
39065
|
+
*/
|
|
39066
|
+
409: {
|
|
39067
|
+
headers: {
|
|
39068
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
39069
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
39070
|
+
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
39071
|
+
[name: string]: unknown;
|
|
39072
|
+
};
|
|
39073
|
+
content: {
|
|
39074
|
+
"application/json": components["schemas"]["TypeHasSubtypesOrTypeInUseRefusal"];
|
|
39075
|
+
};
|
|
39076
|
+
};
|
|
38869
39077
|
/** @description `contract_mismatch`: `X-Marfa-Contract` names another contract version than this instance speaks, or is not a whole number. Nothing was done. */
|
|
38870
39078
|
412: {
|
|
38871
39079
|
headers: {
|
|
@@ -39156,6 +39364,7 @@ interface operations {
|
|
|
39156
39364
|
* {
|
|
39157
39365
|
* "vendor": "app.acme",
|
|
39158
39366
|
* "client_id": "01a10127-d974-7c54-8cc4-5b1e0f3c2a10",
|
|
39367
|
+
* "client_name": "Reader",
|
|
39159
39368
|
* "claimed_at": "2026-11-20T09:30:00.000Z"
|
|
39160
39369
|
* }
|
|
39161
39370
|
* ],
|
|
@@ -39302,6 +39511,7 @@ interface operations {
|
|
|
39302
39511
|
* @example {
|
|
39303
39512
|
* "vendor": "app.acme",
|
|
39304
39513
|
* "client_id": "01a10127-d974-7c54-8cc4-5b1e0f3c2a10",
|
|
39514
|
+
* "client_name": "Reader",
|
|
39305
39515
|
* "claimed_at": "2026-11-20T09:30:00.000Z"
|
|
39306
39516
|
* }
|
|
39307
39517
|
*/
|
|
@@ -39459,6 +39669,342 @@ interface operations {
|
|
|
39459
39669
|
};
|
|
39460
39670
|
};
|
|
39461
39671
|
};
|
|
39672
|
+
listAppVendorData: {
|
|
39673
|
+
parameters: {
|
|
39674
|
+
query?: {
|
|
39675
|
+
/** @description The maximum number of results to return. */
|
|
39676
|
+
limit?: number;
|
|
39677
|
+
/** @description The `next_cursor` from the previous page. Leave it out to get the first page. */
|
|
39678
|
+
cursor?: string;
|
|
39679
|
+
};
|
|
39680
|
+
header?: never;
|
|
39681
|
+
path: {
|
|
39682
|
+
/** @description The namespace, as `app.<vendor>`. */
|
|
39683
|
+
vendor: string;
|
|
39684
|
+
};
|
|
39685
|
+
cookie?: never;
|
|
39686
|
+
};
|
|
39687
|
+
requestBody?: never;
|
|
39688
|
+
responses: {
|
|
39689
|
+
/** @description Returns the namespace's types and a page of its items. */
|
|
39690
|
+
200: {
|
|
39691
|
+
headers: {
|
|
39692
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
39693
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
39694
|
+
[name: string]: unknown;
|
|
39695
|
+
};
|
|
39696
|
+
content: {
|
|
39697
|
+
/**
|
|
39698
|
+
* @example {
|
|
39699
|
+
* "vendor": "app.acme",
|
|
39700
|
+
* "client_id": "01a10127-d974-7c54-8cc4-5c5581d45c4c",
|
|
39701
|
+
* "types": [
|
|
39702
|
+
* {
|
|
39703
|
+
* "type": "app.acme.setting",
|
|
39704
|
+
* "active": 1,
|
|
39705
|
+
* "archived": 0,
|
|
39706
|
+
* "trashed": 1
|
|
39707
|
+
* }
|
|
39708
|
+
* ],
|
|
39709
|
+
* "data": [
|
|
39710
|
+
* {
|
|
39711
|
+
* "id": "019980d6-7612-7000-8000-000000000002",
|
|
39712
|
+
* "type": "app.acme.setting",
|
|
39713
|
+
* "version": 3,
|
|
39714
|
+
* "name": "Preferences",
|
|
39715
|
+
* "source": "oauth:01a10127-d974-7c54-8cc4-5c5581d45c4c",
|
|
39716
|
+
* "state": "active",
|
|
39717
|
+
* "created_at": "2026-11-21T09:30:00.000Z"
|
|
39718
|
+
* }
|
|
39719
|
+
* ],
|
|
39720
|
+
* "next_cursor": null
|
|
39721
|
+
* }
|
|
39722
|
+
*/
|
|
39723
|
+
"application/json": components["schemas"]["AppVendorDataPage"];
|
|
39724
|
+
};
|
|
39725
|
+
};
|
|
39726
|
+
/** @description - `validation_error`: the vendor is not an `app.<vendor>` namespace, `limit` is not a whole number from 1 to 200, `cursor` is not one this listing gave, or the query has a parameter this endpoint doesn't take. */
|
|
39727
|
+
400: {
|
|
39728
|
+
headers: {
|
|
39729
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
39730
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
39731
|
+
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
39732
|
+
[name: string]: unknown;
|
|
39733
|
+
};
|
|
39734
|
+
content: {
|
|
39735
|
+
"application/json": components["schemas"]["ValidationErrorRefusal"];
|
|
39736
|
+
};
|
|
39737
|
+
};
|
|
39738
|
+
/** @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. */
|
|
39739
|
+
401: {
|
|
39740
|
+
headers: {
|
|
39741
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
39742
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
39743
|
+
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
39744
|
+
[name: string]: unknown;
|
|
39745
|
+
};
|
|
39746
|
+
content: {
|
|
39747
|
+
"application/json": components["schemas"]["UnauthorizedRefusal"];
|
|
39748
|
+
};
|
|
39749
|
+
};
|
|
39750
|
+
/**
|
|
39751
|
+
* @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 and another app or the owner holds the namespace.
|
|
39752
|
+
* - `type_not_permitted`: a key or an app's sign-in lacks read on a type under the namespace. `details.grant` names `<vendor>.*`.
|
|
39753
|
+
*/
|
|
39754
|
+
403: {
|
|
39755
|
+
headers: {
|
|
39756
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
39757
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
39758
|
+
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
39759
|
+
[name: string]: unknown;
|
|
39760
|
+
};
|
|
39761
|
+
content: {
|
|
39762
|
+
"application/json": components["schemas"]["ForbiddenOrTypeNotPermittedRefusal"];
|
|
39763
|
+
};
|
|
39764
|
+
};
|
|
39765
|
+
/** @description - `not_found`: no app or owner holds the namespace, and `details.vendor` names it. */
|
|
39766
|
+
404: {
|
|
39767
|
+
headers: {
|
|
39768
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
39769
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
39770
|
+
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
39771
|
+
[name: string]: unknown;
|
|
39772
|
+
};
|
|
39773
|
+
content: {
|
|
39774
|
+
"application/json": components["schemas"]["NotFoundRefusal"];
|
|
39775
|
+
};
|
|
39776
|
+
};
|
|
39777
|
+
/** @description `contract_mismatch`: `X-Marfa-Contract` names another contract version than this instance speaks, or is not a whole number. Nothing was done. */
|
|
39778
|
+
412: {
|
|
39779
|
+
headers: {
|
|
39780
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
39781
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
39782
|
+
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
39783
|
+
[name: string]: unknown;
|
|
39784
|
+
};
|
|
39785
|
+
content: {
|
|
39786
|
+
"application/json": components["schemas"]["ContractMismatchRefusal"];
|
|
39787
|
+
};
|
|
39788
|
+
};
|
|
39789
|
+
/** @description `rate_limited`: you sent too many requests. Wait for the number of seconds in `Retry-After`, then try again. */
|
|
39790
|
+
429: {
|
|
39791
|
+
headers: {
|
|
39792
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
39793
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
39794
|
+
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
39795
|
+
"Retry-After": components["headers"]["Retry-After"];
|
|
39796
|
+
[name: string]: unknown;
|
|
39797
|
+
};
|
|
39798
|
+
content: {
|
|
39799
|
+
"application/json": components["schemas"]["RateLimitedRefusal"];
|
|
39800
|
+
};
|
|
39801
|
+
};
|
|
39802
|
+
/** @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. */
|
|
39803
|
+
500: {
|
|
39804
|
+
headers: {
|
|
39805
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
39806
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
39807
|
+
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
39808
|
+
[name: string]: unknown;
|
|
39809
|
+
};
|
|
39810
|
+
content: {
|
|
39811
|
+
"application/json": components["schemas"]["InternalErrorRefusal"];
|
|
39812
|
+
};
|
|
39813
|
+
};
|
|
39814
|
+
/** @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`. */
|
|
39815
|
+
503: {
|
|
39816
|
+
headers: {
|
|
39817
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
39818
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
39819
|
+
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
39820
|
+
"Retry-After": components["headers"]["Retry-After"];
|
|
39821
|
+
[name: string]: unknown;
|
|
39822
|
+
};
|
|
39823
|
+
content: {
|
|
39824
|
+
"application/json": components["schemas"]["WriteContentionRefusal"];
|
|
39825
|
+
};
|
|
39826
|
+
};
|
|
39827
|
+
/** @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. */
|
|
39828
|
+
507: {
|
|
39829
|
+
headers: {
|
|
39830
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
39831
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
39832
|
+
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
39833
|
+
[name: string]: unknown;
|
|
39834
|
+
};
|
|
39835
|
+
content: {
|
|
39836
|
+
"application/json": components["schemas"]["InsufficientStorageRefusal"];
|
|
39837
|
+
};
|
|
39838
|
+
};
|
|
39839
|
+
};
|
|
39840
|
+
};
|
|
39841
|
+
deleteAppVendorData: {
|
|
39842
|
+
parameters: {
|
|
39843
|
+
query?: never;
|
|
39844
|
+
header?: {
|
|
39845
|
+
/** @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. */
|
|
39846
|
+
"X-Marfa-Instance-Id"?: string;
|
|
39847
|
+
};
|
|
39848
|
+
path: {
|
|
39849
|
+
/** @description The namespace, as `app.<vendor>`. */
|
|
39850
|
+
vendor: string;
|
|
39851
|
+
};
|
|
39852
|
+
cookie?: never;
|
|
39853
|
+
};
|
|
39854
|
+
requestBody?: never;
|
|
39855
|
+
responses: {
|
|
39856
|
+
/** @description Returns what the call deleted and how many items are left. */
|
|
39857
|
+
200: {
|
|
39858
|
+
headers: {
|
|
39859
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
39860
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
39861
|
+
[name: string]: unknown;
|
|
39862
|
+
};
|
|
39863
|
+
content: {
|
|
39864
|
+
/**
|
|
39865
|
+
* @example {
|
|
39866
|
+
* "vendor": "app.acme",
|
|
39867
|
+
* "removed_items": 2,
|
|
39868
|
+
* "removed_types": 1,
|
|
39869
|
+
* "remaining_items": 0
|
|
39870
|
+
* }
|
|
39871
|
+
*/
|
|
39872
|
+
"application/json": components["schemas"]["AppVendorDataRemoval"];
|
|
39873
|
+
};
|
|
39874
|
+
};
|
|
39875
|
+
/** @description - `validation_error`: the vendor is not an `app.<vendor>` namespace, or the query has a parameter this endpoint doesn't take. */
|
|
39876
|
+
400: {
|
|
39877
|
+
headers: {
|
|
39878
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
39879
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
39880
|
+
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
39881
|
+
[name: string]: unknown;
|
|
39882
|
+
};
|
|
39883
|
+
content: {
|
|
39884
|
+
"application/json": components["schemas"]["ValidationErrorRefusal"];
|
|
39885
|
+
};
|
|
39886
|
+
};
|
|
39887
|
+
/** @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. */
|
|
39888
|
+
401: {
|
|
39889
|
+
headers: {
|
|
39890
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
39891
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
39892
|
+
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
39893
|
+
[name: string]: unknown;
|
|
39894
|
+
};
|
|
39895
|
+
content: {
|
|
39896
|
+
"application/json": components["schemas"]["UnauthorizedRefusal"];
|
|
39897
|
+
};
|
|
39898
|
+
};
|
|
39899
|
+
/**
|
|
39900
|
+
* @description - `forbidden`: the credential lacks `grants.manage`, `items.purge`, or `schema.write` while types are registered there (`details.required_scope`), or it is an app's sign-in or a key an app made and another app or the owner holds the namespace.
|
|
39901
|
+
* - `type_not_permitted`: a key or an app's sign-in lacks write on a type under the namespace. `details.grant` names `<vendor>.*`.
|
|
39902
|
+
*/
|
|
39903
|
+
403: {
|
|
39904
|
+
headers: {
|
|
39905
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
39906
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
39907
|
+
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
39908
|
+
[name: string]: unknown;
|
|
39909
|
+
};
|
|
39910
|
+
content: {
|
|
39911
|
+
"application/json": components["schemas"]["ForbiddenOrTypeNotPermittedRefusal"];
|
|
39912
|
+
};
|
|
39913
|
+
};
|
|
39914
|
+
/** @description - `not_found`: no app or owner holds the namespace, and `details.vendor` names it. */
|
|
39915
|
+
404: {
|
|
39916
|
+
headers: {
|
|
39917
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
39918
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
39919
|
+
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
39920
|
+
[name: string]: unknown;
|
|
39921
|
+
};
|
|
39922
|
+
content: {
|
|
39923
|
+
"application/json": components["schemas"]["NotFoundRefusal"];
|
|
39924
|
+
};
|
|
39925
|
+
};
|
|
39926
|
+
/**
|
|
39927
|
+
* @description - `instance_changed`: `X-Marfa-Instance-Id` names another instance.
|
|
39928
|
+
* - `type_in_use`: a folder, view, webhook or table column outside the namespace names one of its types; `details.settings` and `details.columns` name them.
|
|
39929
|
+
* - `type_has_subtypes`: a type outside the namespace inherits from one of its types.
|
|
39930
|
+
*
|
|
39931
|
+
* Nothing is deleted.
|
|
39932
|
+
*/
|
|
39933
|
+
409: {
|
|
39934
|
+
headers: {
|
|
39935
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
39936
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
39937
|
+
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
39938
|
+
[name: string]: unknown;
|
|
39939
|
+
};
|
|
39940
|
+
content: {
|
|
39941
|
+
"application/json": components["schemas"]["InstanceChangedOrTypeHasSubtypesOrTypeInUseRefusal"];
|
|
39942
|
+
};
|
|
39943
|
+
};
|
|
39944
|
+
/** @description `contract_mismatch`: `X-Marfa-Contract` names another contract version than this instance speaks, or is not a whole number. Nothing was done. */
|
|
39945
|
+
412: {
|
|
39946
|
+
headers: {
|
|
39947
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
39948
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
39949
|
+
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
39950
|
+
[name: string]: unknown;
|
|
39951
|
+
};
|
|
39952
|
+
content: {
|
|
39953
|
+
"application/json": components["schemas"]["ContractMismatchRefusal"];
|
|
39954
|
+
};
|
|
39955
|
+
};
|
|
39956
|
+
/** @description `rate_limited`: you sent too many requests. Wait for the number of seconds in `Retry-After`, then try again. */
|
|
39957
|
+
429: {
|
|
39958
|
+
headers: {
|
|
39959
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
39960
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
39961
|
+
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
39962
|
+
"Retry-After": components["headers"]["Retry-After"];
|
|
39963
|
+
[name: string]: unknown;
|
|
39964
|
+
};
|
|
39965
|
+
content: {
|
|
39966
|
+
"application/json": components["schemas"]["RateLimitedRefusal"];
|
|
39967
|
+
};
|
|
39968
|
+
};
|
|
39969
|
+
/** @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. */
|
|
39970
|
+
500: {
|
|
39971
|
+
headers: {
|
|
39972
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
39973
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
39974
|
+
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
39975
|
+
[name: string]: unknown;
|
|
39976
|
+
};
|
|
39977
|
+
content: {
|
|
39978
|
+
"application/json": components["schemas"]["InternalErrorRefusal"];
|
|
39979
|
+
};
|
|
39980
|
+
};
|
|
39981
|
+
/** @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`. */
|
|
39982
|
+
503: {
|
|
39983
|
+
headers: {
|
|
39984
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
39985
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
39986
|
+
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
39987
|
+
"Retry-After": components["headers"]["Retry-After"];
|
|
39988
|
+
[name: string]: unknown;
|
|
39989
|
+
};
|
|
39990
|
+
content: {
|
|
39991
|
+
"application/json": components["schemas"]["WriteContentionRefusal"];
|
|
39992
|
+
};
|
|
39993
|
+
};
|
|
39994
|
+
/** @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. */
|
|
39995
|
+
507: {
|
|
39996
|
+
headers: {
|
|
39997
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
39998
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
39999
|
+
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
40000
|
+
[name: string]: unknown;
|
|
40001
|
+
};
|
|
40002
|
+
content: {
|
|
40003
|
+
"application/json": components["schemas"]["InsufficientStorageRefusal"];
|
|
40004
|
+
};
|
|
40005
|
+
};
|
|
40006
|
+
};
|
|
40007
|
+
};
|
|
39462
40008
|
authorizeApp: {
|
|
39463
40009
|
parameters: {
|
|
39464
40010
|
query: {
|
|
@@ -41080,6 +41626,8 @@ interface operations {
|
|
|
41080
41626
|
query?: {
|
|
41081
41627
|
/** @description For an app, also revoke every key it minted but an owner's key (`owner_key`), as its `minted_by` entries show. Only an app takes it. */
|
|
41082
41628
|
revoke_keys?: boolean;
|
|
41629
|
+
/** @description For an app, also delete for good the items and types of every `app.<vendor>` namespace it holds, in the same write. Needs `items.purge`; a key also needs write on those types and `schema.write`. Omitting it, or `false`, keeps them. */
|
|
41630
|
+
remove_data?: boolean;
|
|
41083
41631
|
};
|
|
41084
41632
|
header?: {
|
|
41085
41633
|
/** @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. */
|
|
@@ -41109,7 +41657,10 @@ interface operations {
|
|
|
41109
41657
|
"application/json": components["schemas"]["Ok"];
|
|
41110
41658
|
};
|
|
41111
41659
|
};
|
|
41112
|
-
/**
|
|
41660
|
+
/**
|
|
41661
|
+
* @description - `validation_error`: `revoke_keys` or `remove_data` is neither `true` nor `false`, or is named more than once, or it is `true` and the ID names a browser or a key. Nothing ends.
|
|
41662
|
+
* - `bulk_cap_exceeded`: with `remove_data`, the app holds more than 1,000 items. Nothing ends; delete them first with `DELETE /app-vendors/{vendor}/data`.
|
|
41663
|
+
*/
|
|
41113
41664
|
400: {
|
|
41114
41665
|
headers: {
|
|
41115
41666
|
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
@@ -41118,7 +41669,7 @@ interface operations {
|
|
|
41118
41669
|
[name: string]: unknown;
|
|
41119
41670
|
};
|
|
41120
41671
|
content: {
|
|
41121
|
-
"application/json": components["schemas"]["
|
|
41672
|
+
"application/json": components["schemas"]["BulkCapExceededOrValidationErrorRefusal"];
|
|
41122
41673
|
};
|
|
41123
41674
|
};
|
|
41124
41675
|
/** @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. */
|
|
@@ -41133,7 +41684,10 @@ interface operations {
|
|
|
41133
41684
|
"application/json": components["schemas"]["UnauthorizedRefusal"];
|
|
41134
41685
|
};
|
|
41135
41686
|
};
|
|
41136
|
-
/**
|
|
41687
|
+
/**
|
|
41688
|
+
* @description - `forbidden`: the credential lacks `sign_ins.manage`, or with `remove_data` `items.purge` or `schema.write` (`details.required_scope`), or with `remove_data` it is an app's sign-in or a key an app made and the ID names another app.
|
|
41689
|
+
* - `type_not_permitted`: a key or an app's sign-in lacks write on a type under the app's namespaces with `remove_data`. `details.grant` names `<vendor>.*`.
|
|
41690
|
+
*/
|
|
41137
41691
|
403: {
|
|
41138
41692
|
headers: {
|
|
41139
41693
|
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
@@ -41142,7 +41696,7 @@ interface operations {
|
|
|
41142
41696
|
[name: string]: unknown;
|
|
41143
41697
|
};
|
|
41144
41698
|
content: {
|
|
41145
|
-
"application/json": components["schemas"]["
|
|
41699
|
+
"application/json": components["schemas"]["ForbiddenOrTypeNotPermittedRefusal"];
|
|
41146
41700
|
};
|
|
41147
41701
|
};
|
|
41148
41702
|
/** @description - `sign_in_not_found`: no live sign-in of the owner has this ID. It may have ended or expired. */
|
|
@@ -41157,7 +41711,13 @@ interface operations {
|
|
|
41157
41711
|
"application/json": components["schemas"]["SignInNotFoundRefusal"];
|
|
41158
41712
|
};
|
|
41159
41713
|
};
|
|
41160
|
-
/**
|
|
41714
|
+
/**
|
|
41715
|
+
* @description - `instance_changed`: `X-Marfa-Instance-Id` names another instance. Rebuild the working copy from the instance at this address.
|
|
41716
|
+
* - `type_in_use`: with `remove_data`, a folder, view, webhook or table column outside the app's namespaces names one of its types.
|
|
41717
|
+
* - `type_has_subtypes`: with `remove_data`, a type outside them inherits from one.
|
|
41718
|
+
*
|
|
41719
|
+
* Nothing ends.
|
|
41720
|
+
*/
|
|
41161
41721
|
409: {
|
|
41162
41722
|
headers: {
|
|
41163
41723
|
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
@@ -41166,7 +41726,7 @@ interface operations {
|
|
|
41166
41726
|
[name: string]: unknown;
|
|
41167
41727
|
};
|
|
41168
41728
|
content: {
|
|
41169
|
-
"application/json": components["schemas"]["
|
|
41729
|
+
"application/json": components["schemas"]["InstanceChangedOrTypeHasSubtypesOrTypeInUseRefusal"];
|
|
41170
41730
|
};
|
|
41171
41731
|
};
|
|
41172
41732
|
/** @description `contract_mismatch`: `X-Marfa-Contract` names another contract version than this instance speaks, or is not a whole number. Nothing was done. */
|