@withmarfa/client 0.0.29 → 0.0.31
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 +794 -4
- 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`. */
|
|
@@ -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. */
|
|
@@ -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;
|