@withmarfa/client 0.0.28 → 0.0.29
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 +79 -79
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -2770,7 +2770,7 @@ interface components {
|
|
|
2770
2770
|
ItemListRow: components["schemas"]["Item"] | components["schemas"]["ItemReadWithMetadata"];
|
|
2771
2771
|
/** @description An item with its metadata, as a read returns it. */
|
|
2772
2772
|
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-
|
|
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-Reach`. */
|
|
2774
2774
|
listed?: boolean;
|
|
2775
2775
|
};
|
|
2776
2776
|
/** @description An error response. */
|
|
@@ -2798,7 +2798,7 @@ interface components {
|
|
|
2798
2798
|
backrefs?: {
|
|
2799
2799
|
[key: string]: components["schemas"]["EdgePage"];
|
|
2800
2800
|
};
|
|
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-
|
|
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-Reach`. */
|
|
2802
2802
|
listed?: boolean;
|
|
2803
2803
|
/** @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
2804
|
neighbors?: components["schemas"]["ItemReadWithMetadata"][];
|
|
@@ -5397,14 +5397,14 @@ interface components {
|
|
|
5397
5397
|
};
|
|
5398
5398
|
};
|
|
5399
5399
|
/** @description An error response. */
|
|
5400
|
-
|
|
5400
|
+
ReachChangedRefusal: {
|
|
5401
5401
|
/** @description What went wrong. */
|
|
5402
5402
|
error: {
|
|
5403
5403
|
/**
|
|
5404
5404
|
* @description A machine-readable code for the error. Use it in your logic.
|
|
5405
5405
|
* @enum {string}
|
|
5406
5406
|
*/
|
|
5407
|
-
code: "
|
|
5407
|
+
code: "reach_changed";
|
|
5408
5408
|
/** @description A description of the error for a person to read. It can change, so don't match on it. */
|
|
5409
5409
|
message: string;
|
|
5410
5410
|
/** @description More about the error, such as the field it concerns. Each code defines its own details. */
|
|
@@ -5503,8 +5503,8 @@ interface components {
|
|
|
5503
5503
|
cursor: string;
|
|
5504
5504
|
/** @description Only on a copy stream: the instance's ID, as `GET /` returns it. */
|
|
5505
5505
|
instance_id?: string;
|
|
5506
|
-
/** @description Only on a copy stream: the
|
|
5507
|
-
|
|
5506
|
+
/** @description Only on a copy stream: the reach to send as `X-Marfa-Reach`, to resume or to read the working copy's data. */
|
|
5507
|
+
reach?: string;
|
|
5508
5508
|
};
|
|
5509
5509
|
/** @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
5510
|
StreamLiveFrame: {
|
|
@@ -5517,8 +5517,8 @@ interface components {
|
|
|
5517
5517
|
cursor: string | null;
|
|
5518
5518
|
/** @description Only on a copy stream: the instance's ID, as `GET /` returns it. */
|
|
5519
5519
|
instance_id?: string;
|
|
5520
|
-
/** @description Only on a copy stream: the
|
|
5521
|
-
|
|
5520
|
+
/** @description Only on a copy stream: the reach to send as `X-Marfa-Reach`, to resume or to read the working copy's data. */
|
|
5521
|
+
reach?: string;
|
|
5522
5522
|
};
|
|
5523
5523
|
/** @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
5524
|
StreamIncompleteFrame: {
|
|
@@ -5559,16 +5559,16 @@ interface components {
|
|
|
5559
5559
|
/** @description The ID of the latest event in the log. */
|
|
5560
5560
|
head: string;
|
|
5561
5561
|
};
|
|
5562
|
-
/** @description The last frame of a copy stream, with no `id:`, when its
|
|
5563
|
-
|
|
5562
|
+
/** @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. */
|
|
5563
|
+
ReachChangedFrame: {
|
|
5564
5564
|
/**
|
|
5565
5565
|
* @description The frame's name, which is also its `event:`.
|
|
5566
5566
|
* @constant
|
|
5567
5567
|
*/
|
|
5568
|
-
event_type: "
|
|
5568
|
+
event_type: "reach_changed";
|
|
5569
5569
|
};
|
|
5570
5570
|
/** @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"]["
|
|
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"]["ReachChangedFrame"];
|
|
5572
5572
|
/** @description The body of a webhook delivery of an item event. */
|
|
5573
5573
|
WebhookItemEvent: components["schemas"]["ItemEventFrame"] & {
|
|
5574
5574
|
/** @description The event's ID in the log, the same as its `id:` on `GET /events`. */
|
|
@@ -5596,8 +5596,8 @@ interface components {
|
|
|
5596
5596
|
headers: {
|
|
5597
5597
|
/** @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
5598
|
"X-Marfa-Contract": number;
|
|
5599
|
-
/** @description
|
|
5600
|
-
"X-Marfa-
|
|
5599
|
+
/** @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. */
|
|
5600
|
+
"X-Marfa-Reach": string;
|
|
5601
5601
|
/** @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
5602
|
"X-Request-ID": string;
|
|
5603
5603
|
/** @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 +5651,8 @@ interface operations {
|
|
|
5651
5651
|
include?: string;
|
|
5652
5652
|
};
|
|
5653
5653
|
header?: {
|
|
5654
|
-
/** @description
|
|
5655
|
-
"X-Marfa-
|
|
5654
|
+
/** @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. */
|
|
5655
|
+
"X-Marfa-Reach"?: string;
|
|
5656
5656
|
};
|
|
5657
5657
|
path?: never;
|
|
5658
5658
|
cookie?: never;
|
|
@@ -5667,7 +5667,7 @@ interface operations {
|
|
|
5667
5667
|
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
5668
5668
|
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
5669
5669
|
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
5670
|
-
"X-Marfa-
|
|
5670
|
+
"X-Marfa-Reach": components["headers"]["X-Marfa-Reach"];
|
|
5671
5671
|
[name: string]: unknown;
|
|
5672
5672
|
};
|
|
5673
5673
|
content: {
|
|
@@ -5675,7 +5675,7 @@ interface operations {
|
|
|
5675
5675
|
};
|
|
5676
5676
|
};
|
|
5677
5677
|
/**
|
|
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-
|
|
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-Reach` comes without `include=metadata`.
|
|
5679
5679
|
* - `unknown_type`: `type` is a concrete type that nothing registers.
|
|
5680
5680
|
*/
|
|
5681
5681
|
400: {
|
|
@@ -5719,14 +5719,14 @@ interface operations {
|
|
|
5719
5719
|
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
5720
5720
|
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
5721
5721
|
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
5722
|
-
"X-Marfa-
|
|
5722
|
+
"X-Marfa-Reach": components["headers"]["X-Marfa-Reach"];
|
|
5723
5723
|
[name: string]: unknown;
|
|
5724
5724
|
};
|
|
5725
5725
|
content: {
|
|
5726
5726
|
"application/json": components["schemas"]["EdgePermissionDeniedOrTypeNotPermittedRefusal"];
|
|
5727
5727
|
};
|
|
5728
5728
|
};
|
|
5729
|
-
/** @description `
|
|
5729
|
+
/** @description `reach_changed`: the reach in `X-Marfa-Reach` has changed. Rebuild the working copy. */
|
|
5730
5730
|
409: {
|
|
5731
5731
|
headers: {
|
|
5732
5732
|
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
@@ -5738,7 +5738,7 @@ interface operations {
|
|
|
5738
5738
|
[name: string]: unknown;
|
|
5739
5739
|
};
|
|
5740
5740
|
content: {
|
|
5741
|
-
"application/json": components["schemas"]["
|
|
5741
|
+
"application/json": components["schemas"]["ReachChangedRefusal"];
|
|
5742
5742
|
};
|
|
5743
5743
|
};
|
|
5744
5744
|
/** @description `rate_limited`: you sent too many requests. Wait for the number of seconds in `Retry-After`, then try again. */
|
|
@@ -6091,8 +6091,8 @@ interface operations {
|
|
|
6091
6091
|
include?: string;
|
|
6092
6092
|
};
|
|
6093
6093
|
header?: {
|
|
6094
|
-
/** @description
|
|
6095
|
-
"X-Marfa-
|
|
6094
|
+
/** @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. */
|
|
6095
|
+
"X-Marfa-Reach"?: string;
|
|
6096
6096
|
};
|
|
6097
6097
|
path: {
|
|
6098
6098
|
/** @description The ID of the item. */
|
|
@@ -6110,7 +6110,7 @@ interface operations {
|
|
|
6110
6110
|
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
6111
6111
|
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
6112
6112
|
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
6113
|
-
"X-Marfa-
|
|
6113
|
+
"X-Marfa-Reach": components["headers"]["X-Marfa-Reach"];
|
|
6114
6114
|
[name: string]: unknown;
|
|
6115
6115
|
};
|
|
6116
6116
|
content: {
|
|
@@ -6159,7 +6159,7 @@ interface operations {
|
|
|
6159
6159
|
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
6160
6160
|
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
6161
6161
|
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
6162
|
-
"X-Marfa-
|
|
6162
|
+
"X-Marfa-Reach": components["headers"]["X-Marfa-Reach"];
|
|
6163
6163
|
[name: string]: unknown;
|
|
6164
6164
|
};
|
|
6165
6165
|
content: {
|
|
@@ -6175,14 +6175,14 @@ interface operations {
|
|
|
6175
6175
|
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
6176
6176
|
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
6177
6177
|
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
6178
|
-
"X-Marfa-
|
|
6178
|
+
"X-Marfa-Reach": components["headers"]["X-Marfa-Reach"];
|
|
6179
6179
|
[name: string]: unknown;
|
|
6180
6180
|
};
|
|
6181
6181
|
content: {
|
|
6182
6182
|
"application/json": components["schemas"]["ItemNotFoundRefusal"];
|
|
6183
6183
|
};
|
|
6184
6184
|
};
|
|
6185
|
-
/** @description `
|
|
6185
|
+
/** @description `reach_changed`: the reach in `X-Marfa-Reach` has changed. Rebuild the working copy. */
|
|
6186
6186
|
409: {
|
|
6187
6187
|
headers: {
|
|
6188
6188
|
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
@@ -6194,7 +6194,7 @@ interface operations {
|
|
|
6194
6194
|
[name: string]: unknown;
|
|
6195
6195
|
};
|
|
6196
6196
|
content: {
|
|
6197
|
-
"application/json": components["schemas"]["
|
|
6197
|
+
"application/json": components["schemas"]["ReachChangedRefusal"];
|
|
6198
6198
|
};
|
|
6199
6199
|
};
|
|
6200
6200
|
/** @description `rate_limited`: you sent too many requests. Wait for the number of seconds in `Retry-After`, then try again. */
|
|
@@ -7769,8 +7769,8 @@ interface operations {
|
|
|
7769
7769
|
parameters: {
|
|
7770
7770
|
query?: never;
|
|
7771
7771
|
header?: {
|
|
7772
|
-
/** @description
|
|
7773
|
-
"X-Marfa-
|
|
7772
|
+
/** @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. */
|
|
7773
|
+
"X-Marfa-Reach"?: string;
|
|
7774
7774
|
/** @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
7775
|
"X-Marfa-Instance-Id"?: string;
|
|
7776
7776
|
};
|
|
@@ -7788,7 +7788,7 @@ interface operations {
|
|
|
7788
7788
|
};
|
|
7789
7789
|
};
|
|
7790
7790
|
responses: {
|
|
7791
|
-
/** @description Returns the items you can read, `metadata` if you asked for it, and `listed` if you sent `X-Marfa-
|
|
7791
|
+
/** @description Returns the items you can read, `metadata` if you asked for it, and `listed` if you sent `X-Marfa-Reach`. */
|
|
7792
7792
|
200: {
|
|
7793
7793
|
headers: {
|
|
7794
7794
|
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
@@ -7796,7 +7796,7 @@ interface operations {
|
|
|
7796
7796
|
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
7797
7797
|
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
7798
7798
|
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
7799
|
-
"X-Marfa-
|
|
7799
|
+
"X-Marfa-Reach": components["headers"]["X-Marfa-Reach"];
|
|
7800
7800
|
[name: string]: unknown;
|
|
7801
7801
|
};
|
|
7802
7802
|
content: {
|
|
@@ -7805,7 +7805,7 @@ interface operations {
|
|
|
7805
7805
|
items: components["schemas"]["Item"][];
|
|
7806
7806
|
/** @description The metadata of each item returned, in the same order. Present only when `include` has `metadata`. */
|
|
7807
7807
|
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-
|
|
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-Reach`. */
|
|
7809
7809
|
listed?: boolean[];
|
|
7810
7810
|
};
|
|
7811
7811
|
};
|
|
@@ -7853,14 +7853,14 @@ interface operations {
|
|
|
7853
7853
|
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
7854
7854
|
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
7855
7855
|
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
7856
|
-
"X-Marfa-
|
|
7856
|
+
"X-Marfa-Reach": components["headers"]["X-Marfa-Reach"];
|
|
7857
7857
|
[name: string]: unknown;
|
|
7858
7858
|
};
|
|
7859
7859
|
content: {
|
|
7860
7860
|
"application/json": components["schemas"]["TypeNotPermittedRefusal"];
|
|
7861
7861
|
};
|
|
7862
7862
|
};
|
|
7863
|
-
/** @description `
|
|
7863
|
+
/** @description `reach_changed`: the reach in `X-Marfa-Reach` has changed. Rebuild the working copy. */
|
|
7864
7864
|
409: {
|
|
7865
7865
|
headers: {
|
|
7866
7866
|
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
@@ -7872,7 +7872,7 @@ interface operations {
|
|
|
7872
7872
|
[name: string]: unknown;
|
|
7873
7873
|
};
|
|
7874
7874
|
content: {
|
|
7875
|
-
"application/json": components["schemas"]["
|
|
7875
|
+
"application/json": components["schemas"]["ReachChangedRefusal"] | components["schemas"]["InstanceChangedRefusal"];
|
|
7876
7876
|
};
|
|
7877
7877
|
};
|
|
7878
7878
|
/** @description `request_too_large`: the request body is larger than this instance accepts. */
|
|
@@ -12028,8 +12028,8 @@ interface operations {
|
|
|
12028
12028
|
cursor?: string;
|
|
12029
12029
|
};
|
|
12030
12030
|
header?: {
|
|
12031
|
-
/** @description
|
|
12032
|
-
"X-Marfa-
|
|
12031
|
+
/** @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. */
|
|
12032
|
+
"X-Marfa-Reach"?: string;
|
|
12033
12033
|
};
|
|
12034
12034
|
path?: never;
|
|
12035
12035
|
cookie?: never;
|
|
@@ -12044,7 +12044,7 @@ interface operations {
|
|
|
12044
12044
|
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
12045
12045
|
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
12046
12046
|
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
12047
|
-
"X-Marfa-
|
|
12047
|
+
"X-Marfa-Reach": components["headers"]["X-Marfa-Reach"];
|
|
12048
12048
|
[name: string]: unknown;
|
|
12049
12049
|
};
|
|
12050
12050
|
content: {
|
|
@@ -12090,14 +12090,14 @@ interface operations {
|
|
|
12090
12090
|
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
12091
12091
|
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
12092
12092
|
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
12093
|
-
"X-Marfa-
|
|
12093
|
+
"X-Marfa-Reach": components["headers"]["X-Marfa-Reach"];
|
|
12094
12094
|
[name: string]: unknown;
|
|
12095
12095
|
};
|
|
12096
12096
|
content: {
|
|
12097
12097
|
"application/json": components["schemas"]["TypeNotPermittedRefusal"];
|
|
12098
12098
|
};
|
|
12099
12099
|
};
|
|
12100
|
-
/** @description `
|
|
12100
|
+
/** @description `reach_changed`: the reach in `X-Marfa-Reach` has changed. Rebuild the working copy. */
|
|
12101
12101
|
409: {
|
|
12102
12102
|
headers: {
|
|
12103
12103
|
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
@@ -12109,7 +12109,7 @@ interface operations {
|
|
|
12109
12109
|
[name: string]: unknown;
|
|
12110
12110
|
};
|
|
12111
12111
|
content: {
|
|
12112
|
-
"application/json": components["schemas"]["
|
|
12112
|
+
"application/json": components["schemas"]["ReachChangedRefusal"];
|
|
12113
12113
|
};
|
|
12114
12114
|
};
|
|
12115
12115
|
/** @description `rate_limited`: you sent too many requests. Wait for the number of seconds in `Retry-After`, then try again. */
|
|
@@ -12437,8 +12437,8 @@ interface operations {
|
|
|
12437
12437
|
parameters: {
|
|
12438
12438
|
query?: never;
|
|
12439
12439
|
header?: {
|
|
12440
|
-
/** @description
|
|
12441
|
-
"X-Marfa-
|
|
12440
|
+
/** @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. */
|
|
12441
|
+
"X-Marfa-Reach"?: string;
|
|
12442
12442
|
};
|
|
12443
12443
|
path: {
|
|
12444
12444
|
/** @description The ID of the edge. */
|
|
@@ -12456,7 +12456,7 @@ interface operations {
|
|
|
12456
12456
|
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
12457
12457
|
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
12458
12458
|
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
12459
|
-
"X-Marfa-
|
|
12459
|
+
"X-Marfa-Reach": components["headers"]["X-Marfa-Reach"];
|
|
12460
12460
|
[name: string]: unknown;
|
|
12461
12461
|
};
|
|
12462
12462
|
content: {
|
|
@@ -12502,7 +12502,7 @@ interface operations {
|
|
|
12502
12502
|
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
12503
12503
|
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
12504
12504
|
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
12505
|
-
"X-Marfa-
|
|
12505
|
+
"X-Marfa-Reach": components["headers"]["X-Marfa-Reach"];
|
|
12506
12506
|
[name: string]: unknown;
|
|
12507
12507
|
};
|
|
12508
12508
|
content: {
|
|
@@ -12518,14 +12518,14 @@ interface operations {
|
|
|
12518
12518
|
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
12519
12519
|
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
12520
12520
|
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
12521
|
-
"X-Marfa-
|
|
12521
|
+
"X-Marfa-Reach": components["headers"]["X-Marfa-Reach"];
|
|
12522
12522
|
[name: string]: unknown;
|
|
12523
12523
|
};
|
|
12524
12524
|
content: {
|
|
12525
12525
|
"application/json": components["schemas"]["EdgeNotFoundRefusal"];
|
|
12526
12526
|
};
|
|
12527
12527
|
};
|
|
12528
|
-
/** @description `
|
|
12528
|
+
/** @description `reach_changed`: the reach in `X-Marfa-Reach` has changed. Rebuild the working copy. */
|
|
12529
12529
|
409: {
|
|
12530
12530
|
headers: {
|
|
12531
12531
|
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
@@ -12537,7 +12537,7 @@ interface operations {
|
|
|
12537
12537
|
[name: string]: unknown;
|
|
12538
12538
|
};
|
|
12539
12539
|
content: {
|
|
12540
|
-
"application/json": components["schemas"]["
|
|
12540
|
+
"application/json": components["schemas"]["ReachChangedRefusal"];
|
|
12541
12541
|
};
|
|
12542
12542
|
};
|
|
12543
12543
|
/** @description `rate_limited`: you sent too many requests. Wait for the number of seconds in `Retry-After`, then try again. */
|
|
@@ -13278,8 +13278,8 @@ interface operations {
|
|
|
13278
13278
|
cursor?: string;
|
|
13279
13279
|
};
|
|
13280
13280
|
header?: {
|
|
13281
|
-
/** @description
|
|
13282
|
-
"X-Marfa-
|
|
13281
|
+
/** @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. */
|
|
13282
|
+
"X-Marfa-Reach"?: string;
|
|
13283
13283
|
};
|
|
13284
13284
|
path: {
|
|
13285
13285
|
/** @description The ID of the item. */
|
|
@@ -13297,7 +13297,7 @@ interface operations {
|
|
|
13297
13297
|
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
13298
13298
|
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
13299
13299
|
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
13300
|
-
"X-Marfa-
|
|
13300
|
+
"X-Marfa-Reach": components["headers"]["X-Marfa-Reach"];
|
|
13301
13301
|
[name: string]: unknown;
|
|
13302
13302
|
};
|
|
13303
13303
|
content: {
|
|
@@ -13346,7 +13346,7 @@ interface operations {
|
|
|
13346
13346
|
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
13347
13347
|
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
13348
13348
|
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
13349
|
-
"X-Marfa-
|
|
13349
|
+
"X-Marfa-Reach": components["headers"]["X-Marfa-Reach"];
|
|
13350
13350
|
[name: string]: unknown;
|
|
13351
13351
|
};
|
|
13352
13352
|
content: {
|
|
@@ -13362,14 +13362,14 @@ interface operations {
|
|
|
13362
13362
|
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
13363
13363
|
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
13364
13364
|
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
13365
|
-
"X-Marfa-
|
|
13365
|
+
"X-Marfa-Reach": components["headers"]["X-Marfa-Reach"];
|
|
13366
13366
|
[name: string]: unknown;
|
|
13367
13367
|
};
|
|
13368
13368
|
content: {
|
|
13369
13369
|
"application/json": components["schemas"]["ItemNotFoundRefusal"];
|
|
13370
13370
|
};
|
|
13371
13371
|
};
|
|
13372
|
-
/** @description `
|
|
13372
|
+
/** @description `reach_changed`: the reach in `X-Marfa-Reach` has changed. Rebuild the working copy. */
|
|
13373
13373
|
409: {
|
|
13374
13374
|
headers: {
|
|
13375
13375
|
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
@@ -13381,7 +13381,7 @@ interface operations {
|
|
|
13381
13381
|
[name: string]: unknown;
|
|
13382
13382
|
};
|
|
13383
13383
|
content: {
|
|
13384
|
-
"application/json": components["schemas"]["
|
|
13384
|
+
"application/json": components["schemas"]["ReachChangedRefusal"];
|
|
13385
13385
|
};
|
|
13386
13386
|
};
|
|
13387
13387
|
/** @description `rate_limited`: you sent too many requests. Wait for the number of seconds in `Retry-After`, then try again. */
|
|
@@ -13771,8 +13771,8 @@ interface operations {
|
|
|
13771
13771
|
parameters: {
|
|
13772
13772
|
query?: never;
|
|
13773
13773
|
header?: {
|
|
13774
|
-
/** @description
|
|
13775
|
-
"X-Marfa-
|
|
13774
|
+
/** @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. */
|
|
13775
|
+
"X-Marfa-Reach"?: string;
|
|
13776
13776
|
};
|
|
13777
13777
|
path?: never;
|
|
13778
13778
|
cookie?: never;
|
|
@@ -13787,7 +13787,7 @@ interface operations {
|
|
|
13787
13787
|
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
13788
13788
|
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
13789
13789
|
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
13790
|
-
"X-Marfa-
|
|
13790
|
+
"X-Marfa-Reach": components["headers"]["X-Marfa-Reach"];
|
|
13791
13791
|
[name: string]: unknown;
|
|
13792
13792
|
};
|
|
13793
13793
|
content: {
|
|
@@ -13824,7 +13824,7 @@ interface operations {
|
|
|
13824
13824
|
"application/json": components["schemas"]["UnauthorizedRefusal"];
|
|
13825
13825
|
};
|
|
13826
13826
|
};
|
|
13827
|
-
/** @description `
|
|
13827
|
+
/** @description `reach_changed`: the reach in `X-Marfa-Reach` has changed. Rebuild the working copy. */
|
|
13828
13828
|
409: {
|
|
13829
13829
|
headers: {
|
|
13830
13830
|
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
@@ -13836,7 +13836,7 @@ interface operations {
|
|
|
13836
13836
|
[name: string]: unknown;
|
|
13837
13837
|
};
|
|
13838
13838
|
content: {
|
|
13839
|
-
"application/json": components["schemas"]["
|
|
13839
|
+
"application/json": components["schemas"]["ReachChangedRefusal"];
|
|
13840
13840
|
};
|
|
13841
13841
|
};
|
|
13842
13842
|
/** @description `rate_limited`: you sent too many requests. Wait for the number of seconds in `Retry-After`, then try again. */
|
|
@@ -14830,8 +14830,8 @@ interface operations {
|
|
|
14830
14830
|
parameters: {
|
|
14831
14831
|
query?: never;
|
|
14832
14832
|
header?: {
|
|
14833
|
-
/** @description
|
|
14834
|
-
"X-Marfa-
|
|
14833
|
+
/** @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. */
|
|
14834
|
+
"X-Marfa-Reach"?: string;
|
|
14835
14835
|
};
|
|
14836
14836
|
path?: never;
|
|
14837
14837
|
cookie?: never;
|
|
@@ -14846,7 +14846,7 @@ interface operations {
|
|
|
14846
14846
|
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
14847
14847
|
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
14848
14848
|
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
14849
|
-
"X-Marfa-
|
|
14849
|
+
"X-Marfa-Reach": components["headers"]["X-Marfa-Reach"];
|
|
14850
14850
|
[name: string]: unknown;
|
|
14851
14851
|
};
|
|
14852
14852
|
content: {
|
|
@@ -14883,7 +14883,7 @@ interface operations {
|
|
|
14883
14883
|
"application/json": components["schemas"]["UnauthorizedRefusal"];
|
|
14884
14884
|
};
|
|
14885
14885
|
};
|
|
14886
|
-
/** @description `
|
|
14886
|
+
/** @description `reach_changed`: the reach in `X-Marfa-Reach` has changed. Rebuild the working copy. */
|
|
14887
14887
|
409: {
|
|
14888
14888
|
headers: {
|
|
14889
14889
|
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
@@ -14895,7 +14895,7 @@ interface operations {
|
|
|
14895
14895
|
[name: string]: unknown;
|
|
14896
14896
|
};
|
|
14897
14897
|
content: {
|
|
14898
|
-
"application/json": components["schemas"]["
|
|
14898
|
+
"application/json": components["schemas"]["ReachChangedRefusal"];
|
|
14899
14899
|
};
|
|
14900
14900
|
};
|
|
14901
14901
|
/** @description `rate_limited`: you sent too many requests. Wait for the number of seconds in `Retry-After`, then try again. */
|
|
@@ -16473,7 +16473,7 @@ interface operations {
|
|
|
16473
16473
|
streamEvents: {
|
|
16474
16474
|
parameters: {
|
|
16475
16475
|
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 `
|
|
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 `reach`, and its item frames carry `listed`. */
|
|
16477
16477
|
copy?: "1";
|
|
16478
16478
|
/** @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
16479
|
type?: string;
|
|
@@ -16481,8 +16481,8 @@ interface operations {
|
|
|
16481
16481
|
edges?: "all" | "none";
|
|
16482
16482
|
};
|
|
16483
16483
|
header?: {
|
|
16484
|
-
/** @description On a copy stream, the `
|
|
16485
|
-
"X-Marfa-
|
|
16484
|
+
/** @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. */
|
|
16485
|
+
"X-Marfa-Reach"?: string;
|
|
16486
16486
|
/** @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
16487
|
"Last-Event-ID"?: string;
|
|
16488
16488
|
};
|
|
@@ -16496,7 +16496,7 @@ interface operations {
|
|
|
16496
16496
|
* - `stream_cursor`: first, where the log stands.
|
|
16497
16497
|
* - An event, such as `item.created`, with its event ID as `id:`.
|
|
16498
16498
|
* - `stream_live`: once the catch-up is over.
|
|
16499
|
-
* - `stream_incomplete`, `catchup_too_old`, `cursor_ahead` or `
|
|
16499
|
+
* - `stream_incomplete`, `catchup_too_old`, `cursor_ahead` or `reach_changed`: last, before the stream closes.
|
|
16500
16500
|
*/
|
|
16501
16501
|
200: {
|
|
16502
16502
|
headers: {
|
|
@@ -16525,7 +16525,7 @@ interface operations {
|
|
|
16525
16525
|
};
|
|
16526
16526
|
};
|
|
16527
16527
|
/**
|
|
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-
|
|
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-Reach`.
|
|
16529
16529
|
* - `unknown_type`: a `type` entry isn't registered.
|
|
16530
16530
|
*/
|
|
16531
16531
|
400: {
|
|
@@ -16572,7 +16572,7 @@ interface operations {
|
|
|
16572
16572
|
"application/json": components["schemas"]["TypeNotPermittedRefusal"];
|
|
16573
16573
|
};
|
|
16574
16574
|
};
|
|
16575
|
-
/** @description `
|
|
16575
|
+
/** @description `reach_changed`: the reach in `X-Marfa-Reach` has changed. Rebuild the working copy. */
|
|
16576
16576
|
409: {
|
|
16577
16577
|
headers: {
|
|
16578
16578
|
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
@@ -16584,7 +16584,7 @@ interface operations {
|
|
|
16584
16584
|
[name: string]: unknown;
|
|
16585
16585
|
};
|
|
16586
16586
|
content: {
|
|
16587
|
-
"application/json": components["schemas"]["
|
|
16587
|
+
"application/json": components["schemas"]["ReachChangedRefusal"];
|
|
16588
16588
|
};
|
|
16589
16589
|
};
|
|
16590
16590
|
/** @description `rate_limited`: you sent too many requests. Wait for the number of seconds in `Retry-After`, then try again. */
|
|
@@ -22971,8 +22971,8 @@ interface operations {
|
|
|
22971
22971
|
parameters: {
|
|
22972
22972
|
query?: never;
|
|
22973
22973
|
header?: {
|
|
22974
|
-
/** @description
|
|
22975
|
-
"X-Marfa-
|
|
22974
|
+
/** @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. */
|
|
22975
|
+
"X-Marfa-Reach"?: string;
|
|
22976
22976
|
};
|
|
22977
22977
|
path?: never;
|
|
22978
22978
|
cookie?: never;
|
|
@@ -22987,7 +22987,7 @@ interface operations {
|
|
|
22987
22987
|
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
22988
22988
|
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
22989
22989
|
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
22990
|
-
"X-Marfa-
|
|
22990
|
+
"X-Marfa-Reach": components["headers"]["X-Marfa-Reach"];
|
|
22991
22991
|
[name: string]: unknown;
|
|
22992
22992
|
};
|
|
22993
22993
|
content: {
|
|
@@ -23033,14 +23033,14 @@ interface operations {
|
|
|
23033
23033
|
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
23034
23034
|
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
23035
23035
|
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
23036
|
-
"X-Marfa-
|
|
23036
|
+
"X-Marfa-Reach": components["headers"]["X-Marfa-Reach"];
|
|
23037
23037
|
[name: string]: unknown;
|
|
23038
23038
|
};
|
|
23039
23039
|
content: {
|
|
23040
23040
|
"application/json": components["schemas"]["ForbiddenRefusal"];
|
|
23041
23041
|
};
|
|
23042
23042
|
};
|
|
23043
|
-
/** @description `
|
|
23043
|
+
/** @description `reach_changed`: the reach in `X-Marfa-Reach` has changed. Rebuild the working copy. */
|
|
23044
23044
|
409: {
|
|
23045
23045
|
headers: {
|
|
23046
23046
|
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
@@ -23052,7 +23052,7 @@ interface operations {
|
|
|
23052
23052
|
[name: string]: unknown;
|
|
23053
23053
|
};
|
|
23054
23054
|
content: {
|
|
23055
|
-
"application/json": components["schemas"]["
|
|
23055
|
+
"application/json": components["schemas"]["ReachChangedRefusal"];
|
|
23056
23056
|
};
|
|
23057
23057
|
};
|
|
23058
23058
|
/** @description `rate_limited`: you sent too many requests. Wait for the number of seconds in `Retry-After`, then try again. */
|