@withmarfa/client 0.0.28 → 0.0.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +873 -83
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1160,6 +1160,50 @@ interface paths {
|
|
|
1160
1160
|
patch?: never;
|
|
1161
1161
|
trace?: never;
|
|
1162
1162
|
};
|
|
1163
|
+
"/views": {
|
|
1164
|
+
parameters: {
|
|
1165
|
+
query?: never;
|
|
1166
|
+
header?: never;
|
|
1167
|
+
path?: never;
|
|
1168
|
+
cookie?: never;
|
|
1169
|
+
};
|
|
1170
|
+
get?: never;
|
|
1171
|
+
put?: never;
|
|
1172
|
+
/**
|
|
1173
|
+
* Create a view
|
|
1174
|
+
* @description Creates a view: a `system.view` item whose properties say which items it lists and how its layouts show them. The item endpoints can't write one.
|
|
1175
|
+
*/
|
|
1176
|
+
post: operations["createView"];
|
|
1177
|
+
delete?: never;
|
|
1178
|
+
options?: never;
|
|
1179
|
+
head?: never;
|
|
1180
|
+
patch?: never;
|
|
1181
|
+
trace?: never;
|
|
1182
|
+
};
|
|
1183
|
+
"/views/{id}": {
|
|
1184
|
+
parameters: {
|
|
1185
|
+
query?: never;
|
|
1186
|
+
header?: never;
|
|
1187
|
+
path?: never;
|
|
1188
|
+
cookie?: never;
|
|
1189
|
+
};
|
|
1190
|
+
get?: never;
|
|
1191
|
+
put?: never;
|
|
1192
|
+
post?: never;
|
|
1193
|
+
/**
|
|
1194
|
+
* Delete a view
|
|
1195
|
+
* @description Deletes an active or revoked view permanently, with no trash. Marfa announces it as `item.purged`, so every app drops it. The items it listed don't change.
|
|
1196
|
+
*/
|
|
1197
|
+
delete: operations["deleteView"];
|
|
1198
|
+
options?: never;
|
|
1199
|
+
head?: never;
|
|
1200
|
+
/**
|
|
1201
|
+
* Update a view
|
|
1202
|
+
* @description Updates a view's title, query or layouts. Each one you send replaces the current value whole, and those you leave out stay as they are. Send the `version` you read.
|
|
1203
|
+
*/
|
|
1204
|
+
patch: operations["updateView"];
|
|
1205
|
+
trace?: never;
|
|
1206
|
+
};
|
|
1163
1207
|
"/connectors": {
|
|
1164
1208
|
parameters: {
|
|
1165
1209
|
query?: never;
|
|
@@ -2437,6 +2481,47 @@ interface components {
|
|
|
2437
2481
|
[key: string]: unknown;
|
|
2438
2482
|
};
|
|
2439
2483
|
};
|
|
2484
|
+
/**
|
|
2485
|
+
* @description A field: an own field (`title`, `created_at`, `updated_at`, `occurred_at`, `type`, `state`, `tier`, `tags`) or `properties.<name>`.
|
|
2486
|
+
* @example properties.status
|
|
2487
|
+
*/
|
|
2488
|
+
ViewField: string;
|
|
2489
|
+
/**
|
|
2490
|
+
* @description A tier: `library`, `feed`, or `all` for both.
|
|
2491
|
+
* @enum {string}
|
|
2492
|
+
*/
|
|
2493
|
+
ViewTier: "library" | "feed" | "all";
|
|
2494
|
+
/**
|
|
2495
|
+
* @description How a layout shows items. `list`: rows. `table`: rows with columns. `board`: columns by `group`. `gallery`: cards. `calendar`: on dates. `timeline`: as spans. `chart`: as a chart. `map`: on a map.
|
|
2496
|
+
* @enum {string}
|
|
2497
|
+
*/
|
|
2498
|
+
ViewLayoutKind: "list" | "table" | "board" | "gallery" | "calendar" | "timeline" | "chart" | "map";
|
|
2499
|
+
/** @description One key a layout sorts by. */
|
|
2500
|
+
ViewSort: {
|
|
2501
|
+
by: components["schemas"]["ViewField"] & unknown;
|
|
2502
|
+
/**
|
|
2503
|
+
* @description `asc` sorts smallest first, `desc` largest first.
|
|
2504
|
+
* @enum {string}
|
|
2505
|
+
*/
|
|
2506
|
+
direction: "asc" | "desc";
|
|
2507
|
+
};
|
|
2508
|
+
/** @description How a layout groups its items. */
|
|
2509
|
+
ViewGroup: {
|
|
2510
|
+
/**
|
|
2511
|
+
* @description The field to group by: a field, or `edge[<type>]` or `backref[<type>]` for the item an edge of that type joins.
|
|
2512
|
+
* @example properties.status
|
|
2513
|
+
*/
|
|
2514
|
+
by: string;
|
|
2515
|
+
/**
|
|
2516
|
+
* @description For a date field, the span each group covers. Absent groups by the value.
|
|
2517
|
+
* @enum {string}
|
|
2518
|
+
*/
|
|
2519
|
+
bucket?: "day" | "week" | "month" | "year";
|
|
2520
|
+
/** @description The values whose groups come first, in this order. Other groups follow. */
|
|
2521
|
+
order?: (string | number | boolean | null)[];
|
|
2522
|
+
/** @description The values whose groups the layout leaves out. */
|
|
2523
|
+
hidden?: (string | number | boolean | null)[];
|
|
2524
|
+
};
|
|
2440
2525
|
/** @description An instance: its identity, build, contract version and features. */
|
|
2441
2526
|
InstanceDescription: {
|
|
2442
2527
|
/** @description The instance's display name. Defaults to `Marfa`. */
|
|
@@ -2770,7 +2855,7 @@ interface components {
|
|
|
2770
2855
|
ItemListRow: components["schemas"]["Item"] | components["schemas"]["ItemReadWithMetadata"];
|
|
2771
2856
|
/** @description An item with its metadata, as a read returns it. */
|
|
2772
2857
|
ItemReadWithMetadata: components["schemas"]["ItemWithMetadata"] & {
|
|
2773
|
-
/** @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-
|
|
2858
|
+
/** @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`. */
|
|
2774
2859
|
listed?: boolean;
|
|
2775
2860
|
};
|
|
2776
2861
|
/** @description An error response. */
|
|
@@ -2798,7 +2883,7 @@ interface components {
|
|
|
2798
2883
|
backrefs?: {
|
|
2799
2884
|
[key: string]: components["schemas"]["EdgePage"];
|
|
2800
2885
|
};
|
|
2801
|
-
/** @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-
|
|
2886
|
+
/** @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`. */
|
|
2802
2887
|
listed?: boolean;
|
|
2803
2888
|
/** @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`. */
|
|
2804
2889
|
neighbors?: components["schemas"]["ItemReadWithMetadata"][];
|
|
@@ -4372,10 +4457,14 @@ interface components {
|
|
|
4372
4457
|
};
|
|
4373
4458
|
};
|
|
4374
4459
|
/** @description Which items the folder holds. */
|
|
4375
|
-
|
|
4460
|
+
FolderQuery: {
|
|
4376
4461
|
/** @description The types the folder holds, each with its subtypes. Empty or absent holds every type the machine's key can read, except `system.*`. */
|
|
4377
4462
|
types?: string[];
|
|
4378
|
-
|
|
4463
|
+
/**
|
|
4464
|
+
* @description The tiers the folder holds: `library`, `feed`, or `all` for both. Absent means `library`.
|
|
4465
|
+
* @enum {string}
|
|
4466
|
+
*/
|
|
4467
|
+
tier?: "library" | "feed" | "all";
|
|
4379
4468
|
/** @description The states the folder holds. Absent means both. */
|
|
4380
4469
|
state?: ("active" | "archived")[];
|
|
4381
4470
|
/** @description A filter expression, as on `GET /items`, that narrows what the folder holds. */
|
|
@@ -4552,6 +4641,64 @@ interface components {
|
|
|
4552
4641
|
/** @description The whole seconds since receipt, measured by the server; it does not show whether the copy is online. */
|
|
4553
4642
|
age_seconds: number;
|
|
4554
4643
|
};
|
|
4644
|
+
/** @description Which items the view lists. Absent lists every item the reading key can read, except `system.*`. */
|
|
4645
|
+
ViewQuery: {
|
|
4646
|
+
/** @description The types the view lists, each with its subtypes. Empty or absent lists every type the reading key can read, except `system.*`. */
|
|
4647
|
+
types?: string[];
|
|
4648
|
+
tier?: components["schemas"]["ViewTier"] & unknown;
|
|
4649
|
+
/** @description The states the view lists. Absent means both. */
|
|
4650
|
+
state?: ("active" | "archived")[];
|
|
4651
|
+
/** @description A filter expression, as on `GET /items`, that narrows what the view lists. */
|
|
4652
|
+
filter?: string;
|
|
4653
|
+
/** @description An item ID. The view lists that item and everything under it by `parent-of`, at any depth. */
|
|
4654
|
+
beneath?: string;
|
|
4655
|
+
};
|
|
4656
|
+
/** @description One way a view shows its items. A layout takes only the options its `kind` takes, and never narrows which items the view lists. */
|
|
4657
|
+
ViewLayout: {
|
|
4658
|
+
/** @description The layout's ID, unique in the view, which an app keeps to reopen it. */
|
|
4659
|
+
id: string;
|
|
4660
|
+
kind: components["schemas"]["ViewLayoutKind"] & unknown;
|
|
4661
|
+
/** @description The layout's name. Absent, an app names it by its kind. */
|
|
4662
|
+
title?: string;
|
|
4663
|
+
/** @description The keys the layout sorts by, first key first. */
|
|
4664
|
+
sort?: components["schemas"]["ViewSort"][];
|
|
4665
|
+
group?: components["schemas"]["ViewGroup"] & unknown;
|
|
4666
|
+
/** @description The fields the layout shows, in order. */
|
|
4667
|
+
shown?: components["schemas"]["ViewField"][];
|
|
4668
|
+
/** @description For a `gallery`, the property that holds each card's image. */
|
|
4669
|
+
image?: string;
|
|
4670
|
+
/** @description For a `calendar`, the date field that places each item. */
|
|
4671
|
+
date?: string;
|
|
4672
|
+
/** @description For a `timeline`, the date field each span starts at. Required for a `timeline`. */
|
|
4673
|
+
start?: string;
|
|
4674
|
+
/** @description For a `calendar` or `timeline`, the date field each span ends at. Required for a `timeline`. */
|
|
4675
|
+
end?: string;
|
|
4676
|
+
x?: components["schemas"]["ViewField"] & unknown;
|
|
4677
|
+
/** @description What a chart measures: `count` of items, or `{ "sum": "properties.<name>" }`. */
|
|
4678
|
+
y?: "count" | {
|
|
4679
|
+
/** @description The number property whose values are added up. */
|
|
4680
|
+
sum: string;
|
|
4681
|
+
};
|
|
4682
|
+
/** @description For a `map`, the property that holds each item's place. */
|
|
4683
|
+
location?: string;
|
|
4684
|
+
};
|
|
4685
|
+
/** @description An error response. */
|
|
4686
|
+
InvalidIdOrInvalidTransitionOrMissingRequiredFieldOrUnknownTypeOrValidationErrorRefusal: {
|
|
4687
|
+
/** @description What went wrong. */
|
|
4688
|
+
error: {
|
|
4689
|
+
/**
|
|
4690
|
+
* @description A machine-readable code for the error. Use it in your logic.
|
|
4691
|
+
* @enum {string}
|
|
4692
|
+
*/
|
|
4693
|
+
code: "invalid_id" | "invalid_transition" | "missing_required_field" | "unknown_type" | "validation_error";
|
|
4694
|
+
/** @description A description of the error for a person to read. It can change, so don't match on it. */
|
|
4695
|
+
message: string;
|
|
4696
|
+
/** @description More about the error, such as the field it concerns. Each code defines its own details. */
|
|
4697
|
+
details?: {
|
|
4698
|
+
[key: string]: unknown;
|
|
4699
|
+
};
|
|
4700
|
+
};
|
|
4701
|
+
};
|
|
4555
4702
|
/** @description A new API key, with its plaintext `key`. */
|
|
4556
4703
|
KeyResponse: {
|
|
4557
4704
|
/** @description Unique identifier for the key. */
|
|
@@ -5397,14 +5544,14 @@ interface components {
|
|
|
5397
5544
|
};
|
|
5398
5545
|
};
|
|
5399
5546
|
/** @description An error response. */
|
|
5400
|
-
|
|
5547
|
+
ReachChangedRefusal: {
|
|
5401
5548
|
/** @description What went wrong. */
|
|
5402
5549
|
error: {
|
|
5403
5550
|
/**
|
|
5404
5551
|
* @description A machine-readable code for the error. Use it in your logic.
|
|
5405
5552
|
* @enum {string}
|
|
5406
5553
|
*/
|
|
5407
|
-
code: "
|
|
5554
|
+
code: "reach_changed";
|
|
5408
5555
|
/** @description A description of the error for a person to read. It can change, so don't match on it. */
|
|
5409
5556
|
message: string;
|
|
5410
5557
|
/** @description More about the error, such as the field it concerns. Each code defines its own details. */
|
|
@@ -5503,8 +5650,8 @@ interface components {
|
|
|
5503
5650
|
cursor: string;
|
|
5504
5651
|
/** @description Only on a copy stream: the instance's ID, as `GET /` returns it. */
|
|
5505
5652
|
instance_id?: string;
|
|
5506
|
-
/** @description Only on a copy stream: the
|
|
5507
|
-
|
|
5653
|
+
/** @description Only on a copy stream: the reach to send as `X-Marfa-Reach`, to resume or to read the working copy's data. */
|
|
5654
|
+
reach?: string;
|
|
5508
5655
|
};
|
|
5509
5656
|
/** @description Sent once, with no `id:`, when the catch-up is over: everything up to `cursor` has been sent or withheld, and what follows is live. A stream that ends early never sends it. */
|
|
5510
5657
|
StreamLiveFrame: {
|
|
@@ -5517,8 +5664,8 @@ interface components {
|
|
|
5517
5664
|
cursor: string | null;
|
|
5518
5665
|
/** @description Only on a copy stream: the instance's ID, as `GET /` returns it. */
|
|
5519
5666
|
instance_id?: string;
|
|
5520
|
-
/** @description Only on a copy stream: the
|
|
5521
|
-
|
|
5667
|
+
/** @description Only on a copy stream: the reach to send as `X-Marfa-Reach`, to resume or to read the working copy's data. */
|
|
5668
|
+
reach?: string;
|
|
5522
5669
|
};
|
|
5523
5670
|
/** @description The last frame, with no `id:`, when the stream can no longer deliver what it opened with. Marfa sends nothing past the gap, so reconnect with the last `id:` you received. `reader_behind` comes when 4 MiB of frames wait unread, or when you take none for 30 seconds during the catch-up. */
|
|
5524
5671
|
StreamIncompleteFrame: {
|
|
@@ -5559,16 +5706,16 @@ interface components {
|
|
|
5559
5706
|
/** @description The ID of the latest event in the log. */
|
|
5560
5707
|
head: string;
|
|
5561
5708
|
};
|
|
5562
|
-
/** @description The last frame of a copy stream, with no `id:`, when its
|
|
5563
|
-
|
|
5709
|
+
/** @description The last frame of a copy stream, with no `id:`, when its reach changes, such as after a retype or a narrowed key. Rebuild the working copy. */
|
|
5710
|
+
ReachChangedFrame: {
|
|
5564
5711
|
/**
|
|
5565
5712
|
* @description The frame's name, which is also its `event:`.
|
|
5566
5713
|
* @constant
|
|
5567
5714
|
*/
|
|
5568
|
-
event_type: "
|
|
5715
|
+
event_type: "reach_changed";
|
|
5569
5716
|
};
|
|
5570
5717
|
/** @description One frame of `GET /events`. Its `event_type` is also its `event:`. */
|
|
5571
|
-
EventStreamFrame: components["schemas"]["StreamCursorFrame"] | components["schemas"]["ItemEventFrame"] | components["schemas"]["EdgeEventFrame"] | components["schemas"]["StreamLiveFrame"] | components["schemas"]["StreamIncompleteFrame"] | components["schemas"]["CatchupTooOldFrame"] | components["schemas"]["CursorAheadFrame"] | components["schemas"]["
|
|
5718
|
+
EventStreamFrame: components["schemas"]["StreamCursorFrame"] | components["schemas"]["ItemEventFrame"] | components["schemas"]["EdgeEventFrame"] | components["schemas"]["StreamLiveFrame"] | components["schemas"]["StreamIncompleteFrame"] | components["schemas"]["CatchupTooOldFrame"] | components["schemas"]["CursorAheadFrame"] | components["schemas"]["ReachChangedFrame"];
|
|
5572
5719
|
/** @description The body of a webhook delivery of an item event. */
|
|
5573
5720
|
WebhookItemEvent: components["schemas"]["ItemEventFrame"] & {
|
|
5574
5721
|
/** @description The event's ID in the log, the same as its `id:` on `GET /events`. */
|
|
@@ -5596,8 +5743,8 @@ interface components {
|
|
|
5596
5743
|
headers: {
|
|
5597
5744
|
/** @description The contract version this server speaks, the same integer as the document's `info.version` and the root's `contract`. Sent on every response the application gives, refusals included, so a client can check the answer it is about to read. A client generated for another number cannot trust the body. A request refused by the HTTP layer before it reaches the application, such as one with a malformed host, is answered without it. */
|
|
5598
5745
|
"X-Marfa-Contract": number;
|
|
5599
|
-
/** @description
|
|
5600
|
-
"X-Marfa-
|
|
5746
|
+
/** @description The matching opaque reach, supplied only after a conditional copy read and its snapshot have completed. Successful conditional reads and snapshot-attributed resource refusals carry it with Cache-Control: no-store. Ordinary reads and write receipts carry none. */
|
|
5747
|
+
"X-Marfa-Reach": string;
|
|
5601
5748
|
/** @description This request's identifier, the same one written to the server's request log. Echoes the caller's own `X-Request-ID` when it sends one matching `[A-Za-z0-9_-]{1,128}`, and is a generated UUIDv7 otherwise, so a client can either adopt the server's id or impose its own. Quote it when reporting a problem: it is the one value that finds the request again. */
|
|
5602
5749
|
"X-Request-ID": string;
|
|
5603
5750
|
/** @description The machine-readable error code, identical to `error.code` in the body and drawn from the same enum the response schema lists. Read it rather than matching on `error.message`, which is prose written for a person and may be reworded. Present on every error the server renders, including one served from an idempotency record. */
|
|
@@ -5651,8 +5798,8 @@ interface operations {
|
|
|
5651
5798
|
include?: string;
|
|
5652
5799
|
};
|
|
5653
5800
|
header?: {
|
|
5654
|
-
/** @description
|
|
5655
|
-
"X-Marfa-
|
|
5801
|
+
/** @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. */
|
|
5802
|
+
"X-Marfa-Reach"?: string;
|
|
5656
5803
|
};
|
|
5657
5804
|
path?: never;
|
|
5658
5805
|
cookie?: never;
|
|
@@ -5667,7 +5814,7 @@ interface operations {
|
|
|
5667
5814
|
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
5668
5815
|
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
5669
5816
|
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
5670
|
-
"X-Marfa-
|
|
5817
|
+
"X-Marfa-Reach": components["headers"]["X-Marfa-Reach"];
|
|
5671
5818
|
[name: string]: unknown;
|
|
5672
5819
|
};
|
|
5673
5820
|
content: {
|
|
@@ -5675,7 +5822,7 @@ interface operations {
|
|
|
5675
5822
|
};
|
|
5676
5823
|
};
|
|
5677
5824
|
/**
|
|
5678
|
-
* @description - `validation_error`: a query parameter is unknown or invalid, `updated_after` comes with a different `sort` or `direction`, `cursor` came from another ordering or listing, or `X-Marfa-
|
|
5825
|
+
* @description - `validation_error`: a query parameter is unknown or invalid, `updated_after` comes with a different `sort` or `direction`, `cursor` came from another ordering or listing, or `X-Marfa-Reach` comes without `include=metadata`.
|
|
5679
5826
|
* - `unknown_type`: `type` is a concrete type that nothing registers.
|
|
5680
5827
|
*/
|
|
5681
5828
|
400: {
|
|
@@ -5719,14 +5866,14 @@ interface operations {
|
|
|
5719
5866
|
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
5720
5867
|
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
5721
5868
|
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
5722
|
-
"X-Marfa-
|
|
5869
|
+
"X-Marfa-Reach": components["headers"]["X-Marfa-Reach"];
|
|
5723
5870
|
[name: string]: unknown;
|
|
5724
5871
|
};
|
|
5725
5872
|
content: {
|
|
5726
5873
|
"application/json": components["schemas"]["EdgePermissionDeniedOrTypeNotPermittedRefusal"];
|
|
5727
5874
|
};
|
|
5728
5875
|
};
|
|
5729
|
-
/** @description `
|
|
5876
|
+
/** @description `reach_changed`: the reach in `X-Marfa-Reach` has changed. Rebuild the working copy. */
|
|
5730
5877
|
409: {
|
|
5731
5878
|
headers: {
|
|
5732
5879
|
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
@@ -5738,7 +5885,7 @@ interface operations {
|
|
|
5738
5885
|
[name: string]: unknown;
|
|
5739
5886
|
};
|
|
5740
5887
|
content: {
|
|
5741
|
-
"application/json": components["schemas"]["
|
|
5888
|
+
"application/json": components["schemas"]["ReachChangedRefusal"];
|
|
5742
5889
|
};
|
|
5743
5890
|
};
|
|
5744
5891
|
/** @description `rate_limited`: you sent too many requests. Wait for the number of seconds in `Retry-After`, then try again. */
|
|
@@ -6091,8 +6238,8 @@ interface operations {
|
|
|
6091
6238
|
include?: string;
|
|
6092
6239
|
};
|
|
6093
6240
|
header?: {
|
|
6094
|
-
/** @description
|
|
6095
|
-
"X-Marfa-
|
|
6241
|
+
/** @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. */
|
|
6242
|
+
"X-Marfa-Reach"?: string;
|
|
6096
6243
|
};
|
|
6097
6244
|
path: {
|
|
6098
6245
|
/** @description The ID of the item. */
|
|
@@ -6110,7 +6257,7 @@ interface operations {
|
|
|
6110
6257
|
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
6111
6258
|
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
6112
6259
|
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
6113
|
-
"X-Marfa-
|
|
6260
|
+
"X-Marfa-Reach": components["headers"]["X-Marfa-Reach"];
|
|
6114
6261
|
[name: string]: unknown;
|
|
6115
6262
|
};
|
|
6116
6263
|
content: {
|
|
@@ -6159,7 +6306,7 @@ interface operations {
|
|
|
6159
6306
|
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
6160
6307
|
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
6161
6308
|
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
6162
|
-
"X-Marfa-
|
|
6309
|
+
"X-Marfa-Reach": components["headers"]["X-Marfa-Reach"];
|
|
6163
6310
|
[name: string]: unknown;
|
|
6164
6311
|
};
|
|
6165
6312
|
content: {
|
|
@@ -6175,14 +6322,14 @@ interface operations {
|
|
|
6175
6322
|
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
6176
6323
|
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
6177
6324
|
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
6178
|
-
"X-Marfa-
|
|
6325
|
+
"X-Marfa-Reach": components["headers"]["X-Marfa-Reach"];
|
|
6179
6326
|
[name: string]: unknown;
|
|
6180
6327
|
};
|
|
6181
6328
|
content: {
|
|
6182
6329
|
"application/json": components["schemas"]["ItemNotFoundRefusal"];
|
|
6183
6330
|
};
|
|
6184
6331
|
};
|
|
6185
|
-
/** @description `
|
|
6332
|
+
/** @description `reach_changed`: the reach in `X-Marfa-Reach` has changed. Rebuild the working copy. */
|
|
6186
6333
|
409: {
|
|
6187
6334
|
headers: {
|
|
6188
6335
|
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
@@ -6194,7 +6341,7 @@ interface operations {
|
|
|
6194
6341
|
[name: string]: unknown;
|
|
6195
6342
|
};
|
|
6196
6343
|
content: {
|
|
6197
|
-
"application/json": components["schemas"]["
|
|
6344
|
+
"application/json": components["schemas"]["ReachChangedRefusal"];
|
|
6198
6345
|
};
|
|
6199
6346
|
};
|
|
6200
6347
|
/** @description `rate_limited`: you sent too many requests. Wait for the number of seconds in `Retry-After`, then try again. */
|
|
@@ -7769,8 +7916,8 @@ interface operations {
|
|
|
7769
7916
|
parameters: {
|
|
7770
7917
|
query?: never;
|
|
7771
7918
|
header?: {
|
|
7772
|
-
/** @description
|
|
7773
|
-
"X-Marfa-
|
|
7919
|
+
/** @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. */
|
|
7920
|
+
"X-Marfa-Reach"?: string;
|
|
7774
7921
|
/** @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. */
|
|
7775
7922
|
"X-Marfa-Instance-Id"?: string;
|
|
7776
7923
|
};
|
|
@@ -7788,7 +7935,7 @@ interface operations {
|
|
|
7788
7935
|
};
|
|
7789
7936
|
};
|
|
7790
7937
|
responses: {
|
|
7791
|
-
/** @description Returns the items you can read, `metadata` if you asked for it, and `listed` if you sent `X-Marfa-
|
|
7938
|
+
/** @description Returns the items you can read, `metadata` if you asked for it, and `listed` if you sent `X-Marfa-Reach`. */
|
|
7792
7939
|
200: {
|
|
7793
7940
|
headers: {
|
|
7794
7941
|
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
@@ -7796,7 +7943,7 @@ interface operations {
|
|
|
7796
7943
|
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
7797
7944
|
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
7798
7945
|
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
7799
|
-
"X-Marfa-
|
|
7946
|
+
"X-Marfa-Reach": components["headers"]["X-Marfa-Reach"];
|
|
7800
7947
|
[name: string]: unknown;
|
|
7801
7948
|
};
|
|
7802
7949
|
content: {
|
|
@@ -7805,7 +7952,7 @@ interface operations {
|
|
|
7805
7952
|
items: components["schemas"]["Item"][];
|
|
7806
7953
|
/** @description The metadata of each item returned, in the same order. Present only when `include` has `metadata`. */
|
|
7807
7954
|
metadata?: components["schemas"]["Metadata"][];
|
|
7808
|
-
/** @description For each item returned, in the same order: `true` if listings show you the item, `false` if `source_filter` leaves it out of them. Present only when you send `X-Marfa-
|
|
7955
|
+
/** @description For each item returned, in the same order: `true` if listings show you the item, `false` if `source_filter` leaves it out of them. Present only when you send `X-Marfa-Reach`. */
|
|
7809
7956
|
listed?: boolean[];
|
|
7810
7957
|
};
|
|
7811
7958
|
};
|
|
@@ -7853,14 +8000,14 @@ interface operations {
|
|
|
7853
8000
|
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
7854
8001
|
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
7855
8002
|
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
7856
|
-
"X-Marfa-
|
|
8003
|
+
"X-Marfa-Reach": components["headers"]["X-Marfa-Reach"];
|
|
7857
8004
|
[name: string]: unknown;
|
|
7858
8005
|
};
|
|
7859
8006
|
content: {
|
|
7860
8007
|
"application/json": components["schemas"]["TypeNotPermittedRefusal"];
|
|
7861
8008
|
};
|
|
7862
8009
|
};
|
|
7863
|
-
/** @description `
|
|
8010
|
+
/** @description `reach_changed`: the reach in `X-Marfa-Reach` has changed. Rebuild the working copy. */
|
|
7864
8011
|
409: {
|
|
7865
8012
|
headers: {
|
|
7866
8013
|
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
@@ -7872,7 +8019,7 @@ interface operations {
|
|
|
7872
8019
|
[name: string]: unknown;
|
|
7873
8020
|
};
|
|
7874
8021
|
content: {
|
|
7875
|
-
"application/json": components["schemas"]["
|
|
8022
|
+
"application/json": components["schemas"]["ReachChangedRefusal"] | components["schemas"]["InstanceChangedRefusal"];
|
|
7876
8023
|
};
|
|
7877
8024
|
};
|
|
7878
8025
|
/** @description `request_too_large`: the request body is larger than this instance accepts. */
|
|
@@ -12028,8 +12175,8 @@ interface operations {
|
|
|
12028
12175
|
cursor?: string;
|
|
12029
12176
|
};
|
|
12030
12177
|
header?: {
|
|
12031
|
-
/** @description
|
|
12032
|
-
"X-Marfa-
|
|
12178
|
+
/** @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. */
|
|
12179
|
+
"X-Marfa-Reach"?: string;
|
|
12033
12180
|
};
|
|
12034
12181
|
path?: never;
|
|
12035
12182
|
cookie?: never;
|
|
@@ -12044,7 +12191,7 @@ interface operations {
|
|
|
12044
12191
|
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
12045
12192
|
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
12046
12193
|
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
12047
|
-
"X-Marfa-
|
|
12194
|
+
"X-Marfa-Reach": components["headers"]["X-Marfa-Reach"];
|
|
12048
12195
|
[name: string]: unknown;
|
|
12049
12196
|
};
|
|
12050
12197
|
content: {
|
|
@@ -12090,14 +12237,14 @@ interface operations {
|
|
|
12090
12237
|
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
12091
12238
|
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
12092
12239
|
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
12093
|
-
"X-Marfa-
|
|
12240
|
+
"X-Marfa-Reach": components["headers"]["X-Marfa-Reach"];
|
|
12094
12241
|
[name: string]: unknown;
|
|
12095
12242
|
};
|
|
12096
12243
|
content: {
|
|
12097
12244
|
"application/json": components["schemas"]["TypeNotPermittedRefusal"];
|
|
12098
12245
|
};
|
|
12099
12246
|
};
|
|
12100
|
-
/** @description `
|
|
12247
|
+
/** @description `reach_changed`: the reach in `X-Marfa-Reach` has changed. Rebuild the working copy. */
|
|
12101
12248
|
409: {
|
|
12102
12249
|
headers: {
|
|
12103
12250
|
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
@@ -12109,7 +12256,7 @@ interface operations {
|
|
|
12109
12256
|
[name: string]: unknown;
|
|
12110
12257
|
};
|
|
12111
12258
|
content: {
|
|
12112
|
-
"application/json": components["schemas"]["
|
|
12259
|
+
"application/json": components["schemas"]["ReachChangedRefusal"];
|
|
12113
12260
|
};
|
|
12114
12261
|
};
|
|
12115
12262
|
/** @description `rate_limited`: you sent too many requests. Wait for the number of seconds in `Retry-After`, then try again. */
|
|
@@ -12437,8 +12584,8 @@ interface operations {
|
|
|
12437
12584
|
parameters: {
|
|
12438
12585
|
query?: never;
|
|
12439
12586
|
header?: {
|
|
12440
|
-
/** @description
|
|
12441
|
-
"X-Marfa-
|
|
12587
|
+
/** @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. */
|
|
12588
|
+
"X-Marfa-Reach"?: string;
|
|
12442
12589
|
};
|
|
12443
12590
|
path: {
|
|
12444
12591
|
/** @description The ID of the edge. */
|
|
@@ -12456,7 +12603,7 @@ interface operations {
|
|
|
12456
12603
|
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
12457
12604
|
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
12458
12605
|
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
12459
|
-
"X-Marfa-
|
|
12606
|
+
"X-Marfa-Reach": components["headers"]["X-Marfa-Reach"];
|
|
12460
12607
|
[name: string]: unknown;
|
|
12461
12608
|
};
|
|
12462
12609
|
content: {
|
|
@@ -12502,7 +12649,7 @@ interface operations {
|
|
|
12502
12649
|
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
12503
12650
|
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
12504
12651
|
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
12505
|
-
"X-Marfa-
|
|
12652
|
+
"X-Marfa-Reach": components["headers"]["X-Marfa-Reach"];
|
|
12506
12653
|
[name: string]: unknown;
|
|
12507
12654
|
};
|
|
12508
12655
|
content: {
|
|
@@ -12518,14 +12665,14 @@ interface operations {
|
|
|
12518
12665
|
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
12519
12666
|
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
12520
12667
|
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
12521
|
-
"X-Marfa-
|
|
12668
|
+
"X-Marfa-Reach": components["headers"]["X-Marfa-Reach"];
|
|
12522
12669
|
[name: string]: unknown;
|
|
12523
12670
|
};
|
|
12524
12671
|
content: {
|
|
12525
12672
|
"application/json": components["schemas"]["EdgeNotFoundRefusal"];
|
|
12526
12673
|
};
|
|
12527
12674
|
};
|
|
12528
|
-
/** @description `
|
|
12675
|
+
/** @description `reach_changed`: the reach in `X-Marfa-Reach` has changed. Rebuild the working copy. */
|
|
12529
12676
|
409: {
|
|
12530
12677
|
headers: {
|
|
12531
12678
|
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
@@ -12537,7 +12684,7 @@ interface operations {
|
|
|
12537
12684
|
[name: string]: unknown;
|
|
12538
12685
|
};
|
|
12539
12686
|
content: {
|
|
12540
|
-
"application/json": components["schemas"]["
|
|
12687
|
+
"application/json": components["schemas"]["ReachChangedRefusal"];
|
|
12541
12688
|
};
|
|
12542
12689
|
};
|
|
12543
12690
|
/** @description `rate_limited`: you sent too many requests. Wait for the number of seconds in `Retry-After`, then try again. */
|
|
@@ -13278,8 +13425,8 @@ interface operations {
|
|
|
13278
13425
|
cursor?: string;
|
|
13279
13426
|
};
|
|
13280
13427
|
header?: {
|
|
13281
|
-
/** @description
|
|
13282
|
-
"X-Marfa-
|
|
13428
|
+
/** @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. */
|
|
13429
|
+
"X-Marfa-Reach"?: string;
|
|
13283
13430
|
};
|
|
13284
13431
|
path: {
|
|
13285
13432
|
/** @description The ID of the item. */
|
|
@@ -13297,7 +13444,7 @@ interface operations {
|
|
|
13297
13444
|
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
13298
13445
|
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
13299
13446
|
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
13300
|
-
"X-Marfa-
|
|
13447
|
+
"X-Marfa-Reach": components["headers"]["X-Marfa-Reach"];
|
|
13301
13448
|
[name: string]: unknown;
|
|
13302
13449
|
};
|
|
13303
13450
|
content: {
|
|
@@ -13346,7 +13493,7 @@ interface operations {
|
|
|
13346
13493
|
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
13347
13494
|
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
13348
13495
|
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
13349
|
-
"X-Marfa-
|
|
13496
|
+
"X-Marfa-Reach": components["headers"]["X-Marfa-Reach"];
|
|
13350
13497
|
[name: string]: unknown;
|
|
13351
13498
|
};
|
|
13352
13499
|
content: {
|
|
@@ -13362,14 +13509,14 @@ interface operations {
|
|
|
13362
13509
|
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
13363
13510
|
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
13364
13511
|
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
13365
|
-
"X-Marfa-
|
|
13512
|
+
"X-Marfa-Reach": components["headers"]["X-Marfa-Reach"];
|
|
13366
13513
|
[name: string]: unknown;
|
|
13367
13514
|
};
|
|
13368
13515
|
content: {
|
|
13369
13516
|
"application/json": components["schemas"]["ItemNotFoundRefusal"];
|
|
13370
13517
|
};
|
|
13371
13518
|
};
|
|
13372
|
-
/** @description `
|
|
13519
|
+
/** @description `reach_changed`: the reach in `X-Marfa-Reach` has changed. Rebuild the working copy. */
|
|
13373
13520
|
409: {
|
|
13374
13521
|
headers: {
|
|
13375
13522
|
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
@@ -13381,7 +13528,7 @@ interface operations {
|
|
|
13381
13528
|
[name: string]: unknown;
|
|
13382
13529
|
};
|
|
13383
13530
|
content: {
|
|
13384
|
-
"application/json": components["schemas"]["
|
|
13531
|
+
"application/json": components["schemas"]["ReachChangedRefusal"];
|
|
13385
13532
|
};
|
|
13386
13533
|
};
|
|
13387
13534
|
/** @description `rate_limited`: you sent too many requests. Wait for the number of seconds in `Retry-After`, then try again. */
|
|
@@ -13771,8 +13918,8 @@ interface operations {
|
|
|
13771
13918
|
parameters: {
|
|
13772
13919
|
query?: never;
|
|
13773
13920
|
header?: {
|
|
13774
|
-
/** @description
|
|
13775
|
-
"X-Marfa-
|
|
13921
|
+
/** @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. */
|
|
13922
|
+
"X-Marfa-Reach"?: string;
|
|
13776
13923
|
};
|
|
13777
13924
|
path?: never;
|
|
13778
13925
|
cookie?: never;
|
|
@@ -13787,7 +13934,7 @@ interface operations {
|
|
|
13787
13934
|
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
13788
13935
|
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
13789
13936
|
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
13790
|
-
"X-Marfa-
|
|
13937
|
+
"X-Marfa-Reach": components["headers"]["X-Marfa-Reach"];
|
|
13791
13938
|
[name: string]: unknown;
|
|
13792
13939
|
};
|
|
13793
13940
|
content: {
|
|
@@ -13824,7 +13971,7 @@ interface operations {
|
|
|
13824
13971
|
"application/json": components["schemas"]["UnauthorizedRefusal"];
|
|
13825
13972
|
};
|
|
13826
13973
|
};
|
|
13827
|
-
/** @description `
|
|
13974
|
+
/** @description `reach_changed`: the reach in `X-Marfa-Reach` has changed. Rebuild the working copy. */
|
|
13828
13975
|
409: {
|
|
13829
13976
|
headers: {
|
|
13830
13977
|
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
@@ -13836,7 +13983,7 @@ interface operations {
|
|
|
13836
13983
|
[name: string]: unknown;
|
|
13837
13984
|
};
|
|
13838
13985
|
content: {
|
|
13839
|
-
"application/json": components["schemas"]["
|
|
13986
|
+
"application/json": components["schemas"]["ReachChangedRefusal"];
|
|
13840
13987
|
};
|
|
13841
13988
|
};
|
|
13842
13989
|
/** @description `rate_limited`: you sent too many requests. Wait for the number of seconds in `Retry-After`, then try again. */
|
|
@@ -14830,8 +14977,8 @@ interface operations {
|
|
|
14830
14977
|
parameters: {
|
|
14831
14978
|
query?: never;
|
|
14832
14979
|
header?: {
|
|
14833
|
-
/** @description
|
|
14834
|
-
"X-Marfa-
|
|
14980
|
+
/** @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. */
|
|
14981
|
+
"X-Marfa-Reach"?: string;
|
|
14835
14982
|
};
|
|
14836
14983
|
path?: never;
|
|
14837
14984
|
cookie?: never;
|
|
@@ -14846,7 +14993,7 @@ interface operations {
|
|
|
14846
14993
|
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
14847
14994
|
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
14848
14995
|
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
14849
|
-
"X-Marfa-
|
|
14996
|
+
"X-Marfa-Reach": components["headers"]["X-Marfa-Reach"];
|
|
14850
14997
|
[name: string]: unknown;
|
|
14851
14998
|
};
|
|
14852
14999
|
content: {
|
|
@@ -14883,7 +15030,7 @@ interface operations {
|
|
|
14883
15030
|
"application/json": components["schemas"]["UnauthorizedRefusal"];
|
|
14884
15031
|
};
|
|
14885
15032
|
};
|
|
14886
|
-
/** @description `
|
|
15033
|
+
/** @description `reach_changed`: the reach in `X-Marfa-Reach` has changed. Rebuild the working copy. */
|
|
14887
15034
|
409: {
|
|
14888
15035
|
headers: {
|
|
14889
15036
|
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
@@ -14895,7 +15042,7 @@ interface operations {
|
|
|
14895
15042
|
[name: string]: unknown;
|
|
14896
15043
|
};
|
|
14897
15044
|
content: {
|
|
14898
|
-
"application/json": components["schemas"]["
|
|
15045
|
+
"application/json": components["schemas"]["ReachChangedRefusal"];
|
|
14899
15046
|
};
|
|
14900
15047
|
};
|
|
14901
15048
|
/** @description `rate_limited`: you sent too many requests. Wait for the number of seconds in `Retry-After`, then try again. */
|
|
@@ -16473,7 +16620,7 @@ interface operations {
|
|
|
16473
16620
|
streamEvents: {
|
|
16474
16621
|
parameters: {
|
|
16475
16622
|
query?: {
|
|
16476
|
-
/** @description Set to `1` for a copy stream, which a working copy follows. It takes `edges=all` and no other parameter. Its `stream_cursor` and `stream_live` carry `instance_id` and `
|
|
16623
|
+
/** @description Set to `1` for a copy stream, which a working copy follows. It takes `edges=all` and no other parameter. Its `stream_cursor` and `stream_live` carry `instance_id` and `reach`, and its item frames carry `listed`. */
|
|
16477
16624
|
copy?: "1";
|
|
16478
16625
|
/** @description Only send item events for these types and their subtypes: a comma-separated list of up to 10, such as `core.note,app.*`. A pattern matches the types you can read. Edge events aren't filtered. Leave it out for every type. */
|
|
16479
16626
|
type?: string;
|
|
@@ -16481,8 +16628,8 @@ interface operations {
|
|
|
16481
16628
|
edges?: "all" | "none";
|
|
16482
16629
|
};
|
|
16483
16630
|
header?: {
|
|
16484
|
-
/** @description On a copy stream, the `
|
|
16485
|
-
"X-Marfa-
|
|
16631
|
+
/** @description On a copy stream, the `reach` from the last `stream_cursor` or `stream_live` you received. Send it with `Last-Event-ID` to resume, and leave both out to start a new copy. */
|
|
16632
|
+
"X-Marfa-Reach"?: string;
|
|
16486
16633
|
/** @description The ID of the last event you received. Marfa replays every event after it that the log still holds, then goes live. Send it as the stream wrote it. Empty means none, except on a copy stream. */
|
|
16487
16634
|
"Last-Event-ID"?: string;
|
|
16488
16635
|
};
|
|
@@ -16496,7 +16643,7 @@ interface operations {
|
|
|
16496
16643
|
* - `stream_cursor`: first, where the log stands.
|
|
16497
16644
|
* - An event, such as `item.created`, with its event ID as `id:`.
|
|
16498
16645
|
* - `stream_live`: once the catch-up is over.
|
|
16499
|
-
* - `stream_incomplete`, `catchup_too_old`, `cursor_ahead` or `
|
|
16646
|
+
* - `stream_incomplete`, `catchup_too_old`, `cursor_ahead` or `reach_changed`: last, before the stream closes.
|
|
16500
16647
|
*/
|
|
16501
16648
|
200: {
|
|
16502
16649
|
headers: {
|
|
@@ -16525,7 +16672,7 @@ interface operations {
|
|
|
16525
16672
|
};
|
|
16526
16673
|
};
|
|
16527
16674
|
/**
|
|
16528
|
-
* @description - `validation_error`: a parameter or header is invalid, or not one this endpoint takes. For example, `type` has more than 10 entries or is `*`, or `Last-Event-ID` isn't an event ID. A copy stream takes only `copy=1` and `edges=all`, and both resume headers or neither; another stream takes no `X-Marfa-
|
|
16675
|
+
* @description - `validation_error`: a parameter or header is invalid, or not one this endpoint takes. For example, `type` has more than 10 entries or is `*`, or `Last-Event-ID` isn't an event ID. A copy stream takes only `copy=1` and `edges=all`, and both resume headers or neither; another stream takes no `X-Marfa-Reach`.
|
|
16529
16676
|
* - `unknown_type`: a `type` entry isn't registered.
|
|
16530
16677
|
*/
|
|
16531
16678
|
400: {
|
|
@@ -16572,7 +16719,7 @@ interface operations {
|
|
|
16572
16719
|
"application/json": components["schemas"]["TypeNotPermittedRefusal"];
|
|
16573
16720
|
};
|
|
16574
16721
|
};
|
|
16575
|
-
/** @description `
|
|
16722
|
+
/** @description `reach_changed`: the reach in `X-Marfa-Reach` has changed. Rebuild the working copy. */
|
|
16576
16723
|
409: {
|
|
16577
16724
|
headers: {
|
|
16578
16725
|
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
@@ -16584,7 +16731,7 @@ interface operations {
|
|
|
16584
16731
|
[name: string]: unknown;
|
|
16585
16732
|
};
|
|
16586
16733
|
content: {
|
|
16587
|
-
"application/json": components["schemas"]["
|
|
16734
|
+
"application/json": components["schemas"]["ReachChangedRefusal"];
|
|
16588
16735
|
};
|
|
16589
16736
|
};
|
|
16590
16737
|
/** @description `rate_limited`: you sent too many requests. Wait for the number of seconds in `Retry-After`, then try again. */
|
|
@@ -17969,7 +18116,7 @@ interface operations {
|
|
|
17969
18116
|
"application/json": {
|
|
17970
18117
|
/** @description The folder's title. */
|
|
17971
18118
|
title: string;
|
|
17972
|
-
|
|
18119
|
+
query?: components["schemas"]["FolderQuery"];
|
|
17973
18120
|
defaults?: components["schemas"]["FolderDefaults"];
|
|
17974
18121
|
/** @description Gitignore patterns, relative to the folder's root, for the paths the folder takes. Empty or absent takes every path. A dot-led name is taken only if a pattern names it. Secrets and files a machine or editor writes for itself are never taken. */
|
|
17975
18122
|
include?: string[];
|
|
@@ -18186,7 +18333,7 @@ interface operations {
|
|
|
18186
18333
|
version: number;
|
|
18187
18334
|
/** @description A new title for the folder. */
|
|
18188
18335
|
title?: string;
|
|
18189
|
-
|
|
18336
|
+
query?: components["schemas"]["FolderQuery"];
|
|
18190
18337
|
defaults?: components["schemas"]["FolderDefaults"];
|
|
18191
18338
|
/** @description Gitignore patterns, relative to the folder's root, for the paths the folder takes. Empty or absent takes every path. A dot-led name is taken only if a pattern names it. Secrets and files a machine or editor writes for itself are never taken. */
|
|
18192
18339
|
include?: string[];
|
|
@@ -19000,6 +19147,649 @@ interface operations {
|
|
|
19000
19147
|
};
|
|
19001
19148
|
};
|
|
19002
19149
|
};
|
|
19150
|
+
createView: {
|
|
19151
|
+
parameters: {
|
|
19152
|
+
query?: never;
|
|
19153
|
+
header?: {
|
|
19154
|
+
/** @description A unique key that makes the request safe to retry. If you send the same request with the same key again, Marfa returns the first response and doesn't write again. A key belongs to the credential that sends it. */
|
|
19155
|
+
"Idempotency-Key"?: string;
|
|
19156
|
+
/** @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. */
|
|
19157
|
+
"X-Marfa-Instance-Id"?: string;
|
|
19158
|
+
};
|
|
19159
|
+
path?: never;
|
|
19160
|
+
cookie?: never;
|
|
19161
|
+
};
|
|
19162
|
+
requestBody: {
|
|
19163
|
+
content: {
|
|
19164
|
+
"application/json": {
|
|
19165
|
+
/** @description The view's title. */
|
|
19166
|
+
title: string;
|
|
19167
|
+
query?: components["schemas"]["ViewQuery"];
|
|
19168
|
+
/** @description How the view shows its items, in order. At least one. */
|
|
19169
|
+
layouts: components["schemas"]["ViewLayout"][];
|
|
19170
|
+
};
|
|
19171
|
+
};
|
|
19172
|
+
};
|
|
19173
|
+
responses: {
|
|
19174
|
+
/** @description Returns the new view, a `system.view` item, and its metadata. */
|
|
19175
|
+
201: {
|
|
19176
|
+
headers: {
|
|
19177
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
19178
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
19179
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
19180
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
19181
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
19182
|
+
"Idempotency-Replayed": components["headers"]["Idempotency-Replayed"];
|
|
19183
|
+
[name: string]: unknown;
|
|
19184
|
+
};
|
|
19185
|
+
content: {
|
|
19186
|
+
"application/json": components["schemas"]["ItemWithMetadata"];
|
|
19187
|
+
};
|
|
19188
|
+
};
|
|
19189
|
+
/**
|
|
19190
|
+
* @description - `validation_error`: a setting is malformed or undeclared, such as a repeated layout `id`. `details.errors[0].path` or `details.unknown_body_fields` names it.
|
|
19191
|
+
* - `missing_required_field`: `title`, `layouts` or a part a layout requires is missing. `details.field` names it.
|
|
19192
|
+
* - `unknown_type`: `query.types` names a type that isn't registered.
|
|
19193
|
+
*/
|
|
19194
|
+
400: {
|
|
19195
|
+
headers: {
|
|
19196
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
19197
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
19198
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
19199
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
19200
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
19201
|
+
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
19202
|
+
"Idempotency-Replayed": components["headers"]["Idempotency-Replayed"];
|
|
19203
|
+
[name: string]: unknown;
|
|
19204
|
+
};
|
|
19205
|
+
content: {
|
|
19206
|
+
"application/json": components["schemas"]["MissingRequiredFieldOrUnknownTypeOrValidationErrorRefusal"];
|
|
19207
|
+
};
|
|
19208
|
+
};
|
|
19209
|
+
/** @description `unauthorized`: the request has no credential, or its credential is not valid. */
|
|
19210
|
+
401: {
|
|
19211
|
+
headers: {
|
|
19212
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
19213
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
19214
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
19215
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
19216
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
19217
|
+
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
19218
|
+
[name: string]: unknown;
|
|
19219
|
+
};
|
|
19220
|
+
content: {
|
|
19221
|
+
"application/json": components["schemas"]["UnauthorizedRefusal"];
|
|
19222
|
+
};
|
|
19223
|
+
};
|
|
19224
|
+
/** @description - `type_not_permitted`: you don't have write on `system.view`. */
|
|
19225
|
+
403: {
|
|
19226
|
+
headers: {
|
|
19227
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
19228
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
19229
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
19230
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
19231
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
19232
|
+
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
19233
|
+
[name: string]: unknown;
|
|
19234
|
+
};
|
|
19235
|
+
content: {
|
|
19236
|
+
"application/json": components["schemas"]["TypeNotPermittedRefusal"];
|
|
19237
|
+
};
|
|
19238
|
+
};
|
|
19239
|
+
/** @description `instance_changed`: `X-Marfa-Instance-Id` names another instance. Nothing is written. Rebuild the working copy from the instance at this address. */
|
|
19240
|
+
409: {
|
|
19241
|
+
headers: {
|
|
19242
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
19243
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
19244
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
19245
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
19246
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
19247
|
+
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
19248
|
+
"Idempotency-Replayed": components["headers"]["Idempotency-Replayed"];
|
|
19249
|
+
[name: string]: unknown;
|
|
19250
|
+
};
|
|
19251
|
+
content: {
|
|
19252
|
+
"application/json": components["schemas"]["InstanceChangedRefusal"] | components["schemas"]["IdempotencyKeyInFlightRefusal"];
|
|
19253
|
+
};
|
|
19254
|
+
};
|
|
19255
|
+
/** @description `request_too_large`: the request body is larger than this instance accepts. */
|
|
19256
|
+
413: {
|
|
19257
|
+
headers: {
|
|
19258
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
19259
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
19260
|
+
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
19261
|
+
[name: string]: unknown;
|
|
19262
|
+
};
|
|
19263
|
+
content: {
|
|
19264
|
+
"application/json": components["schemas"]["RequestTooLargeRefusal"];
|
|
19265
|
+
};
|
|
19266
|
+
};
|
|
19267
|
+
/**
|
|
19268
|
+
* @description - `idempotency_key_reused`: the key was first used for a different request. Nothing is written.
|
|
19269
|
+
* - `idempotency_result_not_retained`: the first response was too large to keep, so Marfa can't replay it. The write isn't repeated.
|
|
19270
|
+
*/
|
|
19271
|
+
422: {
|
|
19272
|
+
headers: {
|
|
19273
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
19274
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
19275
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
19276
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
19277
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
19278
|
+
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
19279
|
+
"Idempotency-Replayed": components["headers"]["Idempotency-Replayed"];
|
|
19280
|
+
[name: string]: unknown;
|
|
19281
|
+
};
|
|
19282
|
+
content: {
|
|
19283
|
+
"application/json": components["schemas"]["IdempotencyKeyReusedOrIdempotencyResultNotRetainedRefusal"];
|
|
19284
|
+
};
|
|
19285
|
+
};
|
|
19286
|
+
/** @description `rate_limited`: you sent too many requests. Wait for the number of seconds in `Retry-After`, then try again. */
|
|
19287
|
+
429: {
|
|
19288
|
+
headers: {
|
|
19289
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
19290
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
19291
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
19292
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
19293
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
19294
|
+
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
19295
|
+
"Retry-After": components["headers"]["Retry-After"];
|
|
19296
|
+
"Idempotency-Replayed": components["headers"]["Idempotency-Replayed"];
|
|
19297
|
+
[name: string]: unknown;
|
|
19298
|
+
};
|
|
19299
|
+
content: {
|
|
19300
|
+
"application/json": components["schemas"]["RateLimitedRefusal"];
|
|
19301
|
+
};
|
|
19302
|
+
};
|
|
19303
|
+
/** @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. */
|
|
19304
|
+
500: {
|
|
19305
|
+
headers: {
|
|
19306
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
19307
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
19308
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
19309
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
19310
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
19311
|
+
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
19312
|
+
"Idempotency-Replayed": components["headers"]["Idempotency-Replayed"];
|
|
19313
|
+
[name: string]: unknown;
|
|
19314
|
+
};
|
|
19315
|
+
content: {
|
|
19316
|
+
"application/json": components["schemas"]["InternalErrorRefusal"];
|
|
19317
|
+
};
|
|
19318
|
+
};
|
|
19319
|
+
/** @description `write_contention`: the database was busy, and Marfa couldn't complete the request in time. Nothing changed. Try the request again. */
|
|
19320
|
+
503: {
|
|
19321
|
+
headers: {
|
|
19322
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
19323
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
19324
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
19325
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
19326
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
19327
|
+
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
19328
|
+
"Idempotency-Replayed": components["headers"]["Idempotency-Replayed"];
|
|
19329
|
+
[name: string]: unknown;
|
|
19330
|
+
};
|
|
19331
|
+
content: {
|
|
19332
|
+
"application/json": components["schemas"]["WriteContentionRefusal"];
|
|
19333
|
+
};
|
|
19334
|
+
};
|
|
19335
|
+
/** @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. */
|
|
19336
|
+
507: {
|
|
19337
|
+
headers: {
|
|
19338
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
19339
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
19340
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
19341
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
19342
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
19343
|
+
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
19344
|
+
"Idempotency-Replayed": components["headers"]["Idempotency-Replayed"];
|
|
19345
|
+
[name: string]: unknown;
|
|
19346
|
+
};
|
|
19347
|
+
content: {
|
|
19348
|
+
"application/json": components["schemas"]["InsufficientStorageRefusal"];
|
|
19349
|
+
};
|
|
19350
|
+
};
|
|
19351
|
+
};
|
|
19352
|
+
};
|
|
19353
|
+
deleteView: {
|
|
19354
|
+
parameters: {
|
|
19355
|
+
query?: never;
|
|
19356
|
+
header?: {
|
|
19357
|
+
/** @description A unique key that makes the request safe to retry. If you send the same request with the same key again, Marfa returns the first response and doesn't write again. A key belongs to the credential that sends it. */
|
|
19358
|
+
"Idempotency-Key"?: string;
|
|
19359
|
+
/** @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. */
|
|
19360
|
+
"X-Marfa-Instance-Id"?: string;
|
|
19361
|
+
};
|
|
19362
|
+
path: {
|
|
19363
|
+
/** @description The ID of the view. */
|
|
19364
|
+
id: string;
|
|
19365
|
+
};
|
|
19366
|
+
cookie?: never;
|
|
19367
|
+
};
|
|
19368
|
+
requestBody?: never;
|
|
19369
|
+
responses: {
|
|
19370
|
+
/** @description Returns `ok: true`. */
|
|
19371
|
+
200: {
|
|
19372
|
+
headers: {
|
|
19373
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
19374
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
19375
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
19376
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
19377
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
19378
|
+
"Idempotency-Replayed": components["headers"]["Idempotency-Replayed"];
|
|
19379
|
+
[name: string]: unknown;
|
|
19380
|
+
};
|
|
19381
|
+
content: {
|
|
19382
|
+
"application/json": components["schemas"]["Ok"];
|
|
19383
|
+
};
|
|
19384
|
+
};
|
|
19385
|
+
/**
|
|
19386
|
+
* @description - `invalid_id`: the ID is malformed.
|
|
19387
|
+
* - `validation_error`: the query has a parameter this endpoint doesn't take.
|
|
19388
|
+
*/
|
|
19389
|
+
400: {
|
|
19390
|
+
headers: {
|
|
19391
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
19392
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
19393
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
19394
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
19395
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
19396
|
+
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
19397
|
+
"Idempotency-Replayed": components["headers"]["Idempotency-Replayed"];
|
|
19398
|
+
[name: string]: unknown;
|
|
19399
|
+
};
|
|
19400
|
+
content: {
|
|
19401
|
+
"application/json": components["schemas"]["InvalidIdOrValidationErrorRefusal"];
|
|
19402
|
+
};
|
|
19403
|
+
};
|
|
19404
|
+
/** @description `unauthorized`: the request has no credential, or its credential is not valid. */
|
|
19405
|
+
401: {
|
|
19406
|
+
headers: {
|
|
19407
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
19408
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
19409
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
19410
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
19411
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
19412
|
+
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
19413
|
+
[name: string]: unknown;
|
|
19414
|
+
};
|
|
19415
|
+
content: {
|
|
19416
|
+
"application/json": components["schemas"]["UnauthorizedRefusal"];
|
|
19417
|
+
};
|
|
19418
|
+
};
|
|
19419
|
+
/** @description - `type_not_permitted`: you don't have write on `system.view`. */
|
|
19420
|
+
403: {
|
|
19421
|
+
headers: {
|
|
19422
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
19423
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
19424
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
19425
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
19426
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
19427
|
+
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
19428
|
+
[name: string]: unknown;
|
|
19429
|
+
};
|
|
19430
|
+
content: {
|
|
19431
|
+
"application/json": components["schemas"]["TypeNotPermittedRefusal"];
|
|
19432
|
+
};
|
|
19433
|
+
};
|
|
19434
|
+
/** @description - `item_not_found`: no `system.view` has this ID. */
|
|
19435
|
+
404: {
|
|
19436
|
+
headers: {
|
|
19437
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
19438
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
19439
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
19440
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
19441
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
19442
|
+
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
19443
|
+
"Idempotency-Replayed": components["headers"]["Idempotency-Replayed"];
|
|
19444
|
+
[name: string]: unknown;
|
|
19445
|
+
};
|
|
19446
|
+
content: {
|
|
19447
|
+
"application/json": components["schemas"]["ItemNotFoundRefusal"];
|
|
19448
|
+
};
|
|
19449
|
+
};
|
|
19450
|
+
/** @description `instance_changed`: `X-Marfa-Instance-Id` names another instance. Nothing is written. Rebuild the working copy from the instance at this address. */
|
|
19451
|
+
409: {
|
|
19452
|
+
headers: {
|
|
19453
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
19454
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
19455
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
19456
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
19457
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
19458
|
+
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
19459
|
+
"Idempotency-Replayed": components["headers"]["Idempotency-Replayed"];
|
|
19460
|
+
[name: string]: unknown;
|
|
19461
|
+
};
|
|
19462
|
+
content: {
|
|
19463
|
+
"application/json": components["schemas"]["InstanceChangedRefusal"] | components["schemas"]["IdempotencyKeyInFlightRefusal"];
|
|
19464
|
+
};
|
|
19465
|
+
};
|
|
19466
|
+
/** @description `request_too_large`: the request body is larger than this instance accepts. */
|
|
19467
|
+
413: {
|
|
19468
|
+
headers: {
|
|
19469
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
19470
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
19471
|
+
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
19472
|
+
[name: string]: unknown;
|
|
19473
|
+
};
|
|
19474
|
+
content: {
|
|
19475
|
+
"application/json": components["schemas"]["RequestTooLargeRefusal"];
|
|
19476
|
+
};
|
|
19477
|
+
};
|
|
19478
|
+
/**
|
|
19479
|
+
* @description - `idempotency_key_reused`: the key was first used for a different request. Nothing is written.
|
|
19480
|
+
* - `idempotency_result_not_retained`: the first response was too large to keep, so Marfa can't replay it. The write isn't repeated.
|
|
19481
|
+
*/
|
|
19482
|
+
422: {
|
|
19483
|
+
headers: {
|
|
19484
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
19485
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
19486
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
19487
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
19488
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
19489
|
+
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
19490
|
+
"Idempotency-Replayed": components["headers"]["Idempotency-Replayed"];
|
|
19491
|
+
[name: string]: unknown;
|
|
19492
|
+
};
|
|
19493
|
+
content: {
|
|
19494
|
+
"application/json": components["schemas"]["IdempotencyKeyReusedOrIdempotencyResultNotRetainedRefusal"];
|
|
19495
|
+
};
|
|
19496
|
+
};
|
|
19497
|
+
/** @description `rate_limited`: you sent too many requests. Wait for the number of seconds in `Retry-After`, then try again. */
|
|
19498
|
+
429: {
|
|
19499
|
+
headers: {
|
|
19500
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
19501
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
19502
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
19503
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
19504
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
19505
|
+
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
19506
|
+
"Retry-After": components["headers"]["Retry-After"];
|
|
19507
|
+
"Idempotency-Replayed": components["headers"]["Idempotency-Replayed"];
|
|
19508
|
+
[name: string]: unknown;
|
|
19509
|
+
};
|
|
19510
|
+
content: {
|
|
19511
|
+
"application/json": components["schemas"]["RateLimitedRefusal"];
|
|
19512
|
+
};
|
|
19513
|
+
};
|
|
19514
|
+
/** @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. */
|
|
19515
|
+
500: {
|
|
19516
|
+
headers: {
|
|
19517
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
19518
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
19519
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
19520
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
19521
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
19522
|
+
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
19523
|
+
"Idempotency-Replayed": components["headers"]["Idempotency-Replayed"];
|
|
19524
|
+
[name: string]: unknown;
|
|
19525
|
+
};
|
|
19526
|
+
content: {
|
|
19527
|
+
"application/json": components["schemas"]["InternalErrorRefusal"];
|
|
19528
|
+
};
|
|
19529
|
+
};
|
|
19530
|
+
/** @description `write_contention`: the database was busy, and Marfa couldn't complete the request in time. Nothing changed. Try the request again. */
|
|
19531
|
+
503: {
|
|
19532
|
+
headers: {
|
|
19533
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
19534
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
19535
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
19536
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
19537
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
19538
|
+
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
19539
|
+
"Idempotency-Replayed": components["headers"]["Idempotency-Replayed"];
|
|
19540
|
+
[name: string]: unknown;
|
|
19541
|
+
};
|
|
19542
|
+
content: {
|
|
19543
|
+
"application/json": components["schemas"]["WriteContentionRefusal"];
|
|
19544
|
+
};
|
|
19545
|
+
};
|
|
19546
|
+
/** @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. */
|
|
19547
|
+
507: {
|
|
19548
|
+
headers: {
|
|
19549
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
19550
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
19551
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
19552
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
19553
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
19554
|
+
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
19555
|
+
"Idempotency-Replayed": components["headers"]["Idempotency-Replayed"];
|
|
19556
|
+
[name: string]: unknown;
|
|
19557
|
+
};
|
|
19558
|
+
content: {
|
|
19559
|
+
"application/json": components["schemas"]["InsufficientStorageRefusal"];
|
|
19560
|
+
};
|
|
19561
|
+
};
|
|
19562
|
+
};
|
|
19563
|
+
};
|
|
19564
|
+
updateView: {
|
|
19565
|
+
parameters: {
|
|
19566
|
+
query?: never;
|
|
19567
|
+
header?: {
|
|
19568
|
+
/** @description A unique key that makes the request safe to retry. If you send the same request with the same key again, Marfa returns the first response and doesn't write again. A key belongs to the credential that sends it. */
|
|
19569
|
+
"Idempotency-Key"?: string;
|
|
19570
|
+
/** @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. */
|
|
19571
|
+
"X-Marfa-Instance-Id"?: string;
|
|
19572
|
+
};
|
|
19573
|
+
path: {
|
|
19574
|
+
/** @description The ID of the view. */
|
|
19575
|
+
id: string;
|
|
19576
|
+
};
|
|
19577
|
+
cookie?: never;
|
|
19578
|
+
};
|
|
19579
|
+
requestBody: {
|
|
19580
|
+
content: {
|
|
19581
|
+
"application/json": {
|
|
19582
|
+
/** @description The version of the view you read. If the view has changed since, Marfa merges your change where nothing collides. */
|
|
19583
|
+
version: number;
|
|
19584
|
+
/** @description A new title for the view. */
|
|
19585
|
+
title?: string;
|
|
19586
|
+
query?: components["schemas"]["ViewQuery"] & unknown;
|
|
19587
|
+
/** @description New layouts, which replace the current ones whole. At least one. */
|
|
19588
|
+
layouts?: components["schemas"]["ViewLayout"][];
|
|
19589
|
+
};
|
|
19590
|
+
};
|
|
19591
|
+
};
|
|
19592
|
+
responses: {
|
|
19593
|
+
/** @description Returns the updated view and its metadata. */
|
|
19594
|
+
200: {
|
|
19595
|
+
headers: {
|
|
19596
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
19597
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
19598
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
19599
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
19600
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
19601
|
+
"Idempotency-Replayed": components["headers"]["Idempotency-Replayed"];
|
|
19602
|
+
[name: string]: unknown;
|
|
19603
|
+
};
|
|
19604
|
+
content: {
|
|
19605
|
+
"application/json": components["schemas"]["ItemWithMetadata"];
|
|
19606
|
+
};
|
|
19607
|
+
};
|
|
19608
|
+
/**
|
|
19609
|
+
* @description - `validation_error`: no setting, or a malformed or undeclared setting; `details` names it.
|
|
19610
|
+
* - `missing_required_field`: `version` or a required layout part is missing; `details.field` names it.
|
|
19611
|
+
* - `unknown_type`: `query.types` names a type that isn't registered.
|
|
19612
|
+
* - `invalid_id`: the ID is invalid.
|
|
19613
|
+
* - `invalid_transition`: the view is revoked.
|
|
19614
|
+
*/
|
|
19615
|
+
400: {
|
|
19616
|
+
headers: {
|
|
19617
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
19618
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
19619
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
19620
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
19621
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
19622
|
+
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
19623
|
+
"Idempotency-Replayed": components["headers"]["Idempotency-Replayed"];
|
|
19624
|
+
[name: string]: unknown;
|
|
19625
|
+
};
|
|
19626
|
+
content: {
|
|
19627
|
+
"application/json": components["schemas"]["InvalidIdOrInvalidTransitionOrMissingRequiredFieldOrUnknownTypeOrValidationErrorRefusal"];
|
|
19628
|
+
};
|
|
19629
|
+
};
|
|
19630
|
+
/** @description `unauthorized`: the request has no credential, or its credential is not valid. */
|
|
19631
|
+
401: {
|
|
19632
|
+
headers: {
|
|
19633
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
19634
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
19635
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
19636
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
19637
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
19638
|
+
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
19639
|
+
[name: string]: unknown;
|
|
19640
|
+
};
|
|
19641
|
+
content: {
|
|
19642
|
+
"application/json": components["schemas"]["UnauthorizedRefusal"];
|
|
19643
|
+
};
|
|
19644
|
+
};
|
|
19645
|
+
/** @description - `type_not_permitted`: you don't have write on `system.view`. */
|
|
19646
|
+
403: {
|
|
19647
|
+
headers: {
|
|
19648
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
19649
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
19650
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
19651
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
19652
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
19653
|
+
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
19654
|
+
[name: string]: unknown;
|
|
19655
|
+
};
|
|
19656
|
+
content: {
|
|
19657
|
+
"application/json": components["schemas"]["TypeNotPermittedRefusal"];
|
|
19658
|
+
};
|
|
19659
|
+
};
|
|
19660
|
+
/** @description - `item_not_found`: no `system.view` has this ID. */
|
|
19661
|
+
404: {
|
|
19662
|
+
headers: {
|
|
19663
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
19664
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
19665
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
19666
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
19667
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
19668
|
+
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
19669
|
+
"Idempotency-Replayed": components["headers"]["Idempotency-Replayed"];
|
|
19670
|
+
[name: string]: unknown;
|
|
19671
|
+
};
|
|
19672
|
+
content: {
|
|
19673
|
+
"application/json": components["schemas"]["ItemNotFoundRefusal"];
|
|
19674
|
+
};
|
|
19675
|
+
};
|
|
19676
|
+
/**
|
|
19677
|
+
* @description - `version_conflict`: a setting you sent has changed since `version`. `conflicting_fields` names it.
|
|
19678
|
+
* - `ancestor_unavailable`: Marfa holds no snapshot of `version` to merge from.
|
|
19679
|
+
*/
|
|
19680
|
+
409: {
|
|
19681
|
+
headers: {
|
|
19682
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
19683
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
19684
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
19685
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
19686
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
19687
|
+
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
19688
|
+
"Idempotency-Replayed": components["headers"]["Idempotency-Replayed"];
|
|
19689
|
+
[name: string]: unknown;
|
|
19690
|
+
};
|
|
19691
|
+
content: {
|
|
19692
|
+
"application/json": components["schemas"]["ItemVersionConflict"] | components["schemas"]["ItemAncestorUnavailable"] | components["schemas"]["InstanceChangedRefusal"] | components["schemas"]["IdempotencyKeyInFlightRefusal"];
|
|
19693
|
+
};
|
|
19694
|
+
};
|
|
19695
|
+
/** @description `request_too_large`: the request body is larger than this instance accepts. */
|
|
19696
|
+
413: {
|
|
19697
|
+
headers: {
|
|
19698
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
19699
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
19700
|
+
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
19701
|
+
[name: string]: unknown;
|
|
19702
|
+
};
|
|
19703
|
+
content: {
|
|
19704
|
+
"application/json": components["schemas"]["RequestTooLargeRefusal"];
|
|
19705
|
+
};
|
|
19706
|
+
};
|
|
19707
|
+
/**
|
|
19708
|
+
* @description - `idempotency_key_reused`: the key was first used for a different request. Nothing is written.
|
|
19709
|
+
* - `idempotency_result_not_retained`: the first response was too large to keep, so Marfa can't replay it. The write isn't repeated.
|
|
19710
|
+
*/
|
|
19711
|
+
422: {
|
|
19712
|
+
headers: {
|
|
19713
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
19714
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
19715
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
19716
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
19717
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
19718
|
+
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
19719
|
+
"Idempotency-Replayed": components["headers"]["Idempotency-Replayed"];
|
|
19720
|
+
[name: string]: unknown;
|
|
19721
|
+
};
|
|
19722
|
+
content: {
|
|
19723
|
+
"application/json": components["schemas"]["IdempotencyKeyReusedOrIdempotencyResultNotRetainedRefusal"];
|
|
19724
|
+
};
|
|
19725
|
+
};
|
|
19726
|
+
/** @description `rate_limited`: you sent too many requests. Wait for the number of seconds in `Retry-After`, then try again. */
|
|
19727
|
+
429: {
|
|
19728
|
+
headers: {
|
|
19729
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
19730
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
19731
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
19732
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
19733
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
19734
|
+
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
19735
|
+
"Retry-After": components["headers"]["Retry-After"];
|
|
19736
|
+
"Idempotency-Replayed": components["headers"]["Idempotency-Replayed"];
|
|
19737
|
+
[name: string]: unknown;
|
|
19738
|
+
};
|
|
19739
|
+
content: {
|
|
19740
|
+
"application/json": components["schemas"]["RateLimitedRefusal"];
|
|
19741
|
+
};
|
|
19742
|
+
};
|
|
19743
|
+
/** @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. */
|
|
19744
|
+
500: {
|
|
19745
|
+
headers: {
|
|
19746
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
19747
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
19748
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
19749
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
19750
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
19751
|
+
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
19752
|
+
"Idempotency-Replayed": components["headers"]["Idempotency-Replayed"];
|
|
19753
|
+
[name: string]: unknown;
|
|
19754
|
+
};
|
|
19755
|
+
content: {
|
|
19756
|
+
"application/json": components["schemas"]["InternalErrorRefusal"];
|
|
19757
|
+
};
|
|
19758
|
+
};
|
|
19759
|
+
/** @description `write_contention`: the database was busy, and Marfa couldn't complete the request in time. Nothing changed. Try the request again. */
|
|
19760
|
+
503: {
|
|
19761
|
+
headers: {
|
|
19762
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
19763
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
19764
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
19765
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
19766
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
19767
|
+
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
19768
|
+
"Idempotency-Replayed": components["headers"]["Idempotency-Replayed"];
|
|
19769
|
+
[name: string]: unknown;
|
|
19770
|
+
};
|
|
19771
|
+
content: {
|
|
19772
|
+
"application/json": components["schemas"]["WriteContentionRefusal"];
|
|
19773
|
+
};
|
|
19774
|
+
};
|
|
19775
|
+
/** @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. */
|
|
19776
|
+
507: {
|
|
19777
|
+
headers: {
|
|
19778
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
19779
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
19780
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
19781
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
19782
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
19783
|
+
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
19784
|
+
"Idempotency-Replayed": components["headers"]["Idempotency-Replayed"];
|
|
19785
|
+
[name: string]: unknown;
|
|
19786
|
+
};
|
|
19787
|
+
content: {
|
|
19788
|
+
"application/json": components["schemas"]["InsufficientStorageRefusal"];
|
|
19789
|
+
};
|
|
19790
|
+
};
|
|
19791
|
+
};
|
|
19792
|
+
};
|
|
19003
19793
|
listConnectors: {
|
|
19004
19794
|
parameters: {
|
|
19005
19795
|
query?: never;
|
|
@@ -22971,8 +23761,8 @@ interface operations {
|
|
|
22971
23761
|
parameters: {
|
|
22972
23762
|
query?: never;
|
|
22973
23763
|
header?: {
|
|
22974
|
-
/** @description
|
|
22975
|
-
"X-Marfa-
|
|
23764
|
+
/** @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. */
|
|
23765
|
+
"X-Marfa-Reach"?: string;
|
|
22976
23766
|
};
|
|
22977
23767
|
path?: never;
|
|
22978
23768
|
cookie?: never;
|
|
@@ -22987,7 +23777,7 @@ interface operations {
|
|
|
22987
23777
|
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
22988
23778
|
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
22989
23779
|
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
22990
|
-
"X-Marfa-
|
|
23780
|
+
"X-Marfa-Reach": components["headers"]["X-Marfa-Reach"];
|
|
22991
23781
|
[name: string]: unknown;
|
|
22992
23782
|
};
|
|
22993
23783
|
content: {
|
|
@@ -23033,14 +23823,14 @@ interface operations {
|
|
|
23033
23823
|
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
23034
23824
|
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
23035
23825
|
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
23036
|
-
"X-Marfa-
|
|
23826
|
+
"X-Marfa-Reach": components["headers"]["X-Marfa-Reach"];
|
|
23037
23827
|
[name: string]: unknown;
|
|
23038
23828
|
};
|
|
23039
23829
|
content: {
|
|
23040
23830
|
"application/json": components["schemas"]["ForbiddenRefusal"];
|
|
23041
23831
|
};
|
|
23042
23832
|
};
|
|
23043
|
-
/** @description `
|
|
23833
|
+
/** @description `reach_changed`: the reach in `X-Marfa-Reach` has changed. Rebuild the working copy. */
|
|
23044
23834
|
409: {
|
|
23045
23835
|
headers: {
|
|
23046
23836
|
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
@@ -23052,7 +23842,7 @@ interface operations {
|
|
|
23052
23842
|
[name: string]: unknown;
|
|
23053
23843
|
};
|
|
23054
23844
|
content: {
|
|
23055
|
-
"application/json": components["schemas"]["
|
|
23845
|
+
"application/json": components["schemas"]["ReachChangedRefusal"];
|
|
23056
23846
|
};
|
|
23057
23847
|
};
|
|
23058
23848
|
/** @description `rate_limited`: you sent too many requests. Wait for the number of seconds in `Retry-After`, then try again. */
|