@withmarfa/client 0.0.44 → 0.0.46
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 +1405 -154
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -60,6 +60,46 @@ interface paths {
|
|
|
60
60
|
patch: operations["updateItem"];
|
|
61
61
|
trace?: never;
|
|
62
62
|
};
|
|
63
|
+
"/items/trash-preview": {
|
|
64
|
+
parameters: {
|
|
65
|
+
query?: never;
|
|
66
|
+
header?: never;
|
|
67
|
+
path?: never;
|
|
68
|
+
cookie?: never;
|
|
69
|
+
};
|
|
70
|
+
get?: never;
|
|
71
|
+
put?: never;
|
|
72
|
+
/**
|
|
73
|
+
* Preview trashing items
|
|
74
|
+
* @description Returns what `POST /items/trash` would move to the trash for the same `ids`: each item and every item you can read that a cascading edge such as `parent-of` would take with it. Nothing changes.
|
|
75
|
+
*/
|
|
76
|
+
post: operations["previewItemTrash"];
|
|
77
|
+
delete?: never;
|
|
78
|
+
options?: never;
|
|
79
|
+
head?: never;
|
|
80
|
+
patch?: never;
|
|
81
|
+
trace?: never;
|
|
82
|
+
};
|
|
83
|
+
"/items/trash": {
|
|
84
|
+
parameters: {
|
|
85
|
+
query?: never;
|
|
86
|
+
header?: never;
|
|
87
|
+
path?: never;
|
|
88
|
+
cookie?: never;
|
|
89
|
+
};
|
|
90
|
+
get?: never;
|
|
91
|
+
put?: never;
|
|
92
|
+
/**
|
|
93
|
+
* Trash items
|
|
94
|
+
* @description Moves the items, and every item a cascading edge such as `parent-of` reaches from them, to the trash in one step, all of them or none of them. You can restore them until the retention window ends. Marfa then purges them.
|
|
95
|
+
*/
|
|
96
|
+
post: operations["trashItems"];
|
|
97
|
+
delete?: never;
|
|
98
|
+
options?: never;
|
|
99
|
+
head?: never;
|
|
100
|
+
patch?: never;
|
|
101
|
+
trace?: never;
|
|
102
|
+
};
|
|
63
103
|
"/items/{id}/restore": {
|
|
64
104
|
parameters: {
|
|
65
105
|
query?: never;
|
|
@@ -693,7 +733,7 @@ interface paths {
|
|
|
693
733
|
};
|
|
694
734
|
/**
|
|
695
735
|
* Search items
|
|
696
|
-
* @description Returns a page of the items you can read whose text properties or tags match `q`,
|
|
736
|
+
* @description Returns a page of the items you can read whose text properties or tags match `q`, best match first unless you give a `sort`. Items that tie come in ID order.
|
|
697
737
|
*/
|
|
698
738
|
get: operations["searchItems"];
|
|
699
739
|
put?: never;
|
|
@@ -1224,6 +1264,26 @@ interface paths {
|
|
|
1224
1264
|
patch?: never;
|
|
1225
1265
|
trace?: never;
|
|
1226
1266
|
};
|
|
1267
|
+
"/views/{id}/items": {
|
|
1268
|
+
parameters: {
|
|
1269
|
+
query?: never;
|
|
1270
|
+
header?: never;
|
|
1271
|
+
path?: never;
|
|
1272
|
+
cookie?: never;
|
|
1273
|
+
};
|
|
1274
|
+
/**
|
|
1275
|
+
* List a view's items
|
|
1276
|
+
* @description Returns a page of the items a view lists, in the view's sort order. Items of types you can't read are left out. A view's grouping isn't applied.
|
|
1277
|
+
*/
|
|
1278
|
+
get: operations["listViewItems"];
|
|
1279
|
+
put?: never;
|
|
1280
|
+
post?: never;
|
|
1281
|
+
delete?: never;
|
|
1282
|
+
options?: never;
|
|
1283
|
+
head?: never;
|
|
1284
|
+
patch?: never;
|
|
1285
|
+
trace?: never;
|
|
1286
|
+
};
|
|
1227
1287
|
"/views/{id}": {
|
|
1228
1288
|
parameters: {
|
|
1229
1289
|
query?: never;
|
|
@@ -1872,6 +1932,26 @@ interface paths {
|
|
|
1872
1932
|
patch?: never;
|
|
1873
1933
|
trace?: never;
|
|
1874
1934
|
};
|
|
1935
|
+
"/overview": {
|
|
1936
|
+
parameters: {
|
|
1937
|
+
query?: never;
|
|
1938
|
+
header?: never;
|
|
1939
|
+
path?: never;
|
|
1940
|
+
cookie?: never;
|
|
1941
|
+
};
|
|
1942
|
+
/**
|
|
1943
|
+
* Get an overview
|
|
1944
|
+
* @description Returns what the instance holds that your credential can reach: types with item counts, edge types, top tags, views and folders, and what your credential may do. Every list is capped. Needs no type access.
|
|
1945
|
+
*/
|
|
1946
|
+
get: operations["getOverview"];
|
|
1947
|
+
put?: never;
|
|
1948
|
+
post?: never;
|
|
1949
|
+
delete?: never;
|
|
1950
|
+
options?: never;
|
|
1951
|
+
head?: never;
|
|
1952
|
+
patch?: never;
|
|
1953
|
+
trace?: never;
|
|
1954
|
+
};
|
|
1875
1955
|
"/config": {
|
|
1876
1956
|
parameters: {
|
|
1877
1957
|
query?: never;
|
|
@@ -1900,6 +1980,26 @@ interface paths {
|
|
|
1900
1980
|
patch: operations["updateConfig"];
|
|
1901
1981
|
trace?: never;
|
|
1902
1982
|
};
|
|
1983
|
+
"/health": {
|
|
1984
|
+
parameters: {
|
|
1985
|
+
query?: never;
|
|
1986
|
+
header?: never;
|
|
1987
|
+
path?: never;
|
|
1988
|
+
cookie?: never;
|
|
1989
|
+
};
|
|
1990
|
+
/**
|
|
1991
|
+
* Get the instance's health
|
|
1992
|
+
* @description Returns whether the instance is serving and the state of each component it depends on. Needs no credential.
|
|
1993
|
+
*/
|
|
1994
|
+
get: operations["getHealth"];
|
|
1995
|
+
put?: never;
|
|
1996
|
+
post?: never;
|
|
1997
|
+
delete?: never;
|
|
1998
|
+
options?: never;
|
|
1999
|
+
head?: never;
|
|
2000
|
+
patch?: never;
|
|
2001
|
+
trace?: never;
|
|
2002
|
+
};
|
|
1903
2003
|
"/attention": {
|
|
1904
2004
|
parameters: {
|
|
1905
2005
|
query?: never;
|
|
@@ -1949,7 +2049,7 @@ interface paths {
|
|
|
1949
2049
|
};
|
|
1950
2050
|
/**
|
|
1951
2051
|
* List audit log entries
|
|
1952
|
-
* @description Returns audit log entries, newest first. Marfa records changes, sign-ins and
|
|
2052
|
+
* @description Returns audit log entries, newest first. Marfa records changes, sign-ins, exports and the files MCP tools fetch from the web here, not other reads. Requires `audit.read`.
|
|
1953
2053
|
*/
|
|
1954
2054
|
get: operations["listAuditLog"];
|
|
1955
2055
|
put?: never;
|
|
@@ -2624,6 +2724,118 @@ interface components {
|
|
|
2624
2724
|
};
|
|
2625
2725
|
};
|
|
2626
2726
|
};
|
|
2727
|
+
/**
|
|
2728
|
+
* @description The instance's health: the worst state of its components, and each one's state.
|
|
2729
|
+
* @example {
|
|
2730
|
+
* "status": "ok",
|
|
2731
|
+
* "components": {
|
|
2732
|
+
* "database": {
|
|
2733
|
+
* "status": "ok",
|
|
2734
|
+
* "latency_ms": 1
|
|
2735
|
+
* },
|
|
2736
|
+
* "database_write": {
|
|
2737
|
+
* "status": "ok",
|
|
2738
|
+
* "latency_ms": 2
|
|
2739
|
+
* },
|
|
2740
|
+
* "disk": {
|
|
2741
|
+
* "status": "ok",
|
|
2742
|
+
* "latency_ms": 0
|
|
2743
|
+
* },
|
|
2744
|
+
* "blob_storage": {
|
|
2745
|
+
* "status": "ok",
|
|
2746
|
+
* "latency_ms": 0
|
|
2747
|
+
* }
|
|
2748
|
+
* },
|
|
2749
|
+
* "platform_types": {
|
|
2750
|
+
* "retired": 0
|
|
2751
|
+
* },
|
|
2752
|
+
* "unrecognized_stored_values": {
|
|
2753
|
+
* "rows": 0,
|
|
2754
|
+
* "scanned": true
|
|
2755
|
+
* }
|
|
2756
|
+
* }
|
|
2757
|
+
*/
|
|
2758
|
+
Health: {
|
|
2759
|
+
/**
|
|
2760
|
+
* @description `ok`: serving normally. `degraded`: serving, but something is slow, low or unknown. `down`: something refused.
|
|
2761
|
+
* @enum {string}
|
|
2762
|
+
*/
|
|
2763
|
+
status: "ok" | "degraded" | "down";
|
|
2764
|
+
/** @description Each component checked: reading and writing the database, free disk space and the blob store. */
|
|
2765
|
+
components: {
|
|
2766
|
+
/** @description Whether the database answers a read. */
|
|
2767
|
+
database: {
|
|
2768
|
+
/**
|
|
2769
|
+
* @description `ok`: serving normally. `degraded`: serving, but something is slow, low or unknown. `down`: something refused.
|
|
2770
|
+
* @enum {string}
|
|
2771
|
+
*/
|
|
2772
|
+
status: "ok" | "degraded" | "down";
|
|
2773
|
+
/** @description How long the check took, in milliseconds. */
|
|
2774
|
+
latency_ms?: number;
|
|
2775
|
+
/** @description What went wrong. Present only for a caller that holds `instance.read`. */
|
|
2776
|
+
error?: string;
|
|
2777
|
+
};
|
|
2778
|
+
/** @description Whether the database commits a write. */
|
|
2779
|
+
database_write: {
|
|
2780
|
+
/**
|
|
2781
|
+
* @description `ok`: serving normally. `degraded`: serving, but something is slow, low or unknown. `down`: something refused.
|
|
2782
|
+
* @enum {string}
|
|
2783
|
+
*/
|
|
2784
|
+
status: "ok" | "degraded" | "down";
|
|
2785
|
+
/** @description How long the check took, in milliseconds. */
|
|
2786
|
+
latency_ms?: number;
|
|
2787
|
+
/** @description What went wrong. Present only for a caller that holds `instance.read`. */
|
|
2788
|
+
error?: string;
|
|
2789
|
+
};
|
|
2790
|
+
/** @description Whether the disk has room to write. */
|
|
2791
|
+
disk: {
|
|
2792
|
+
/**
|
|
2793
|
+
* @description `ok`: serving normally. `degraded`: serving, but something is slow, low or unknown. `down`: something refused.
|
|
2794
|
+
* @enum {string}
|
|
2795
|
+
*/
|
|
2796
|
+
status: "ok" | "degraded" | "down";
|
|
2797
|
+
/** @description How long the check took, in milliseconds. */
|
|
2798
|
+
latency_ms?: number;
|
|
2799
|
+
/** @description What went wrong. Present only for a caller that holds `instance.read`. */
|
|
2800
|
+
error?: string;
|
|
2801
|
+
};
|
|
2802
|
+
/** @description Whether the blob store on disk answers. */
|
|
2803
|
+
blob_storage: {
|
|
2804
|
+
/**
|
|
2805
|
+
* @description `ok`: serving normally. `degraded`: serving, but something is slow, low or unknown. `down`: something refused.
|
|
2806
|
+
* @enum {string}
|
|
2807
|
+
*/
|
|
2808
|
+
status: "ok" | "degraded" | "down";
|
|
2809
|
+
/** @description How long the check took, in milliseconds. */
|
|
2810
|
+
latency_ms?: number;
|
|
2811
|
+
/** @description What went wrong. Present only for a caller that holds `instance.read`. */
|
|
2812
|
+
error?: string;
|
|
2813
|
+
};
|
|
2814
|
+
};
|
|
2815
|
+
/** @description The platform types this build no longer ships. */
|
|
2816
|
+
platform_types: {
|
|
2817
|
+
/** @description How many platform types the instance holds that this build no longer ships. */
|
|
2818
|
+
retired: number;
|
|
2819
|
+
};
|
|
2820
|
+
/** @description Stored values this build does not recognize. */
|
|
2821
|
+
unrecognized_stored_values: {
|
|
2822
|
+
/** @description How many stored rows hold a value this build does not recognize. */
|
|
2823
|
+
rows: number;
|
|
2824
|
+
/** @description `true` if the scan for such rows ran. `false` means `rows` is unknown. */
|
|
2825
|
+
scanned: boolean;
|
|
2826
|
+
};
|
|
2827
|
+
/** @description Where the server runs. Present only when it is configured. */
|
|
2828
|
+
placement?: {
|
|
2829
|
+
/** @description The region the server runs in. */
|
|
2830
|
+
region?: string;
|
|
2831
|
+
/** @description The location the server runs in. */
|
|
2832
|
+
location?: string;
|
|
2833
|
+
/** @description The country the server runs in. */
|
|
2834
|
+
country?: string;
|
|
2835
|
+
};
|
|
2836
|
+
/** @description The build the instance runs, when it is known. */
|
|
2837
|
+
version?: string;
|
|
2838
|
+
};
|
|
2627
2839
|
/** @description A page of trashed item summaries. */
|
|
2628
2840
|
TrashPage: components["schemas"]["TrashSummaryPage"] & {
|
|
2629
2841
|
/** @description How many days after deletion an item becomes eligible for automatic expiry; zero disables expiry. */
|
|
@@ -2864,14 +3076,14 @@ interface components {
|
|
|
2864
3076
|
requested_version: number;
|
|
2865
3077
|
};
|
|
2866
3078
|
/** @description An error response. */
|
|
2867
|
-
|
|
3079
|
+
ConflictOrIdReusedOrItemExistsOrLinkTakenOrTypeMismatchRefusal: {
|
|
2868
3080
|
/** @description What went wrong. */
|
|
2869
3081
|
error: {
|
|
2870
3082
|
/**
|
|
2871
3083
|
* @description A machine-readable code for the error. Use it in your logic.
|
|
2872
3084
|
* @enum {string}
|
|
2873
3085
|
*/
|
|
2874
|
-
code: "conflict" | "id_reused" | "link_taken" | "type_mismatch";
|
|
3086
|
+
code: "conflict" | "id_reused" | "item_exists" | "link_taken" | "type_mismatch";
|
|
2875
3087
|
/** @description A description of the error for a person to read. It can change, so don't match on it. */
|
|
2876
3088
|
message: string;
|
|
2877
3089
|
/** @description More about the error, such as the field it concerns. Each code defines its own details. */
|
|
@@ -3083,6 +3295,112 @@ interface components {
|
|
|
3083
3295
|
};
|
|
3084
3296
|
};
|
|
3085
3297
|
};
|
|
3298
|
+
/**
|
|
3299
|
+
* @description What trashing items would move to the trash. Items you can't read are taken too and aren't listed or counted.
|
|
3300
|
+
* @example {
|
|
3301
|
+
* "items": [
|
|
3302
|
+
* {
|
|
3303
|
+
* "id": "019537a0-7b80-7000-8000-000000000001",
|
|
3304
|
+
* "type": "core.project",
|
|
3305
|
+
* "version": 4,
|
|
3306
|
+
* "takes": [
|
|
3307
|
+
* {
|
|
3308
|
+
* "id": "019537a0-7b80-7000-8000-000000000002",
|
|
3309
|
+
* "type": "core.task",
|
|
3310
|
+
* "version": 2
|
|
3311
|
+
* }
|
|
3312
|
+
* ],
|
|
3313
|
+
* "count": 2
|
|
3314
|
+
* }
|
|
3315
|
+
* ],
|
|
3316
|
+
* "count": 2,
|
|
3317
|
+
* "digest": "9f2c1d3b5a7e4f60b8c9d0e1f2a3b4c5d6e7f8091a2b3c4d5e6f708192a3b4c5"
|
|
3318
|
+
* }
|
|
3319
|
+
*/
|
|
3320
|
+
TrashPreview: {
|
|
3321
|
+
/** @description Each item you named, once, in the order you named them. */
|
|
3322
|
+
items: components["schemas"]["TrashPreviewItem"][];
|
|
3323
|
+
/** @description How many items you can read that trashing the named items would move to the trash, each counted once, the named items included. */
|
|
3324
|
+
count: number;
|
|
3325
|
+
/**
|
|
3326
|
+
* @description A SHA-256 hash, in hex, of every item `count` counts with its version, listed or not. It changes if any of them changes, joins or leaves. Pass it to `POST /items/trash` with the same `ids` to trash only what it covers.
|
|
3327
|
+
* @example 9f2c1d3b5a7e4f60b8c9d0e1f2a3b4c5d6e7f8091a2b3c4d5e6f708192a3b4c5
|
|
3328
|
+
*/
|
|
3329
|
+
digest: string;
|
|
3330
|
+
};
|
|
3331
|
+
/** @description An item you named and what trashing it would take with it. */
|
|
3332
|
+
TrashPreviewItem: {
|
|
3333
|
+
/**
|
|
3334
|
+
* @description The ID of an item you named.
|
|
3335
|
+
* @example 019537a0-7b80-7000-8000-000000000001
|
|
3336
|
+
*/
|
|
3337
|
+
id: string;
|
|
3338
|
+
/**
|
|
3339
|
+
* @description The item's type.
|
|
3340
|
+
* @example core.project
|
|
3341
|
+
*/
|
|
3342
|
+
type: string;
|
|
3343
|
+
/** @description The item's version. */
|
|
3344
|
+
version: number;
|
|
3345
|
+
/** @description The other items you can read that a cascading edge such as `parent-of` would take into the trash with this item, leaves first, at most 100. */
|
|
3346
|
+
takes: components["schemas"]["TrashPreviewEntry"][];
|
|
3347
|
+
/** @description How many items you can read that trashing this item would move to the trash, the item itself included. */
|
|
3348
|
+
count: number;
|
|
3349
|
+
/**
|
|
3350
|
+
* @description `true` if `takes` was cut at its limit. Absent when it lists every item.
|
|
3351
|
+
* @enum {boolean}
|
|
3352
|
+
*/
|
|
3353
|
+
truncated?: true;
|
|
3354
|
+
};
|
|
3355
|
+
/** @description An item that trashing another item would take with it. */
|
|
3356
|
+
TrashPreviewEntry: {
|
|
3357
|
+
/**
|
|
3358
|
+
* @description Unique identifier for the item.
|
|
3359
|
+
* @example 019537a0-7b80-7000-8000-000000000002
|
|
3360
|
+
*/
|
|
3361
|
+
id: string;
|
|
3362
|
+
/**
|
|
3363
|
+
* @description The item's type.
|
|
3364
|
+
* @example core.task
|
|
3365
|
+
*/
|
|
3366
|
+
type: string;
|
|
3367
|
+
/** @description The item's version. */
|
|
3368
|
+
version: number;
|
|
3369
|
+
};
|
|
3370
|
+
/** @description An error response. */
|
|
3371
|
+
EdgeConstraintViolationOrInvalidIdOrMissingRequiredFieldOrValidationErrorRefusal: {
|
|
3372
|
+
/** @description What went wrong. */
|
|
3373
|
+
error: {
|
|
3374
|
+
/**
|
|
3375
|
+
* @description A machine-readable code for the error. Use it in your logic.
|
|
3376
|
+
* @enum {string}
|
|
3377
|
+
*/
|
|
3378
|
+
code: "edge_constraint_violation" | "invalid_id" | "missing_required_field" | "validation_error";
|
|
3379
|
+
/** @description A description of the error for a person to read. It can change, so don't match on it. */
|
|
3380
|
+
message: string;
|
|
3381
|
+
/** @description More about the error, such as the field it concerns. Each code defines its own details. */
|
|
3382
|
+
details?: {
|
|
3383
|
+
[key: string]: unknown;
|
|
3384
|
+
};
|
|
3385
|
+
};
|
|
3386
|
+
};
|
|
3387
|
+
/** @description An error response. */
|
|
3388
|
+
TrashPlanChangedRefusal: {
|
|
3389
|
+
/** @description What went wrong. */
|
|
3390
|
+
error: {
|
|
3391
|
+
/**
|
|
3392
|
+
* @description A machine-readable code for the error. Use it in your logic.
|
|
3393
|
+
* @enum {string}
|
|
3394
|
+
*/
|
|
3395
|
+
code: "trash_plan_changed";
|
|
3396
|
+
/** @description A description of the error for a person to read. It can change, so don't match on it. */
|
|
3397
|
+
message: string;
|
|
3398
|
+
/** @description More about the error, such as the field it concerns. Each code defines its own details. */
|
|
3399
|
+
details?: {
|
|
3400
|
+
[key: string]: unknown;
|
|
3401
|
+
};
|
|
3402
|
+
};
|
|
3403
|
+
};
|
|
3086
3404
|
/** @description An error response. */
|
|
3087
3405
|
InvalidIdOrInvalidTransitionOrValidationErrorRefusal: {
|
|
3088
3406
|
/** @description What went wrong. */
|
|
@@ -3600,13 +3918,14 @@ interface components {
|
|
|
3600
3918
|
/** @description A page holding every type. */
|
|
3601
3919
|
TypeDefinitionPage: {
|
|
3602
3920
|
/** @description Every type. */
|
|
3603
|
-
data: components["schemas"]["
|
|
3921
|
+
data: components["schemas"]["ListedType"][];
|
|
3604
3922
|
/** @description Always `null`: Marfa returns every type in one page. */
|
|
3605
3923
|
next_cursor: string | null;
|
|
3606
3924
|
};
|
|
3607
|
-
/** @description A type
|
|
3608
|
-
|
|
3609
|
-
|
|
3925
|
+
/** @description A type in the list of types: its own definition, with the roles it declares and the roles it plays. */
|
|
3926
|
+
ListedType: components["schemas"]["RegisteredType"] & {
|
|
3927
|
+
/** @description The structural roles the type declares itself, without those it only inherits. Empty if it declares none. */
|
|
3928
|
+
own_roles: components["schemas"]["TypeRole"][];
|
|
3610
3929
|
};
|
|
3611
3930
|
/**
|
|
3612
3931
|
* @description A structural role a type plays. `container`: the type can be the target of an `in-collection` edge.
|
|
@@ -3643,6 +3962,10 @@ interface components {
|
|
|
3643
3962
|
[key: string]: unknown;
|
|
3644
3963
|
};
|
|
3645
3964
|
/** @description A type says which fields the items of that type hold, and what else Marfa does for them. */
|
|
3965
|
+
RegisteredType: components["schemas"]["TypeDefinition"] & {
|
|
3966
|
+
provenance: components["schemas"]["TypeProvenance"] & unknown;
|
|
3967
|
+
};
|
|
3968
|
+
/** @description A type says which fields the items of that type hold, and what else Marfa does for them. */
|
|
3646
3969
|
TypeDefinition: {
|
|
3647
3970
|
/** @description Unique identifier for the type. */
|
|
3648
3971
|
id: string;
|
|
@@ -3983,7 +4306,7 @@ interface components {
|
|
|
3983
4306
|
};
|
|
3984
4307
|
/** @description One page of search results. */
|
|
3985
4308
|
SearchResultPage: {
|
|
3986
|
-
/** @description The results,
|
|
4309
|
+
/** @description The results, in the order of `sort`. */
|
|
3987
4310
|
data: components["schemas"]["SearchResult"][];
|
|
3988
4311
|
/** @description Pass as `cursor` for the next page; `null` on the last. A page can be short, or empty, with a cursor still to follow, so a walk stops on `null` and never on a short page. */
|
|
3989
4312
|
next_cursor: string | null;
|
|
@@ -4067,6 +4390,155 @@ interface components {
|
|
|
4067
4390
|
/** @description How many active items you can read carry the tag. */
|
|
4068
4391
|
count: number;
|
|
4069
4392
|
};
|
|
4393
|
+
/**
|
|
4394
|
+
* @description A summary of what this instance holds and what your credential may reach.
|
|
4395
|
+
* @example {
|
|
4396
|
+
* "instance": {
|
|
4397
|
+
* "name": "Marfa",
|
|
4398
|
+
* "version": "dev"
|
|
4399
|
+
* },
|
|
4400
|
+
* "credential": {
|
|
4401
|
+
* "kind": "key",
|
|
4402
|
+
* "label": "Notes agent",
|
|
4403
|
+
* "type_permissions": {
|
|
4404
|
+
* "write": [
|
|
4405
|
+
* "core.note"
|
|
4406
|
+
* ],
|
|
4407
|
+
* "read": [
|
|
4408
|
+
* "*"
|
|
4409
|
+
* ]
|
|
4410
|
+
* },
|
|
4411
|
+
* "permissions": [
|
|
4412
|
+
* "audit.read"
|
|
4413
|
+
* ]
|
|
4414
|
+
* },
|
|
4415
|
+
* "types": [
|
|
4416
|
+
* {
|
|
4417
|
+
* "id": "core.note",
|
|
4418
|
+
* "description": "A piece of writing.",
|
|
4419
|
+
* "count": 128
|
|
4420
|
+
* }
|
|
4421
|
+
* ],
|
|
4422
|
+
* "total": 128,
|
|
4423
|
+
* "edge_types": [
|
|
4424
|
+
* {
|
|
4425
|
+
* "id": "references",
|
|
4426
|
+
* "access": "write"
|
|
4427
|
+
* }
|
|
4428
|
+
* ],
|
|
4429
|
+
* "tags": [
|
|
4430
|
+
* {
|
|
4431
|
+
* "tag": "work",
|
|
4432
|
+
* "count": 40
|
|
4433
|
+
* }
|
|
4434
|
+
* ],
|
|
4435
|
+
* "views": [
|
|
4436
|
+
* {
|
|
4437
|
+
* "id": "019537a0-7b80-7000-8000-000000000000",
|
|
4438
|
+
* "title": "Reading list"
|
|
4439
|
+
* }
|
|
4440
|
+
* ]
|
|
4441
|
+
* }
|
|
4442
|
+
*/
|
|
4443
|
+
Overview: {
|
|
4444
|
+
/** @description The instance's name and the build it runs. */
|
|
4445
|
+
instance: {
|
|
4446
|
+
/** @description The instance's display name. */
|
|
4447
|
+
name: string;
|
|
4448
|
+
/** @description The build the instance runs. */
|
|
4449
|
+
version: string;
|
|
4450
|
+
/** @description The release the build was made as. Absent for a build that is not a release. */
|
|
4451
|
+
release?: string;
|
|
4452
|
+
};
|
|
4453
|
+
/** @description The credential that sent the request, and what it may do. */
|
|
4454
|
+
credential: {
|
|
4455
|
+
/**
|
|
4456
|
+
* @description `key` for an API key, `app` for a signed-in app's token.
|
|
4457
|
+
* @enum {string}
|
|
4458
|
+
*/
|
|
4459
|
+
kind: "key" | "app";
|
|
4460
|
+
/** @description The key's label. Absent for an app. */
|
|
4461
|
+
label?: string;
|
|
4462
|
+
/** @description Your type map by level, each list sorted and cut at 30 patterns. Absent when the map is empty. */
|
|
4463
|
+
type_permissions?: {
|
|
4464
|
+
/** @description Type patterns you can read and write, such as `core.*`. Absent when none. */
|
|
4465
|
+
write?: string[];
|
|
4466
|
+
/** @description Type patterns you can only read. Absent when none. */
|
|
4467
|
+
read?: string[];
|
|
4468
|
+
/** @description Type patterns denied even where a wider pattern grants access. Absent when none. */
|
|
4469
|
+
none?: string[];
|
|
4470
|
+
};
|
|
4471
|
+
/** @description The permissions you hold. Absent when you hold none. */
|
|
4472
|
+
permissions?: components["schemas"]["Permission"][];
|
|
4473
|
+
};
|
|
4474
|
+
/** @description The types you can read, most items first, then by identifier, at most 50. Types in the `system` namespace are left out. Absent when you can read none. */
|
|
4475
|
+
types?: components["schemas"]["OverviewType"][];
|
|
4476
|
+
/**
|
|
4477
|
+
* @description How many active items you can read across every type `types` would list before its cut. Absent when `types` is.
|
|
4478
|
+
* @example 128
|
|
4479
|
+
*/
|
|
4480
|
+
total?: number;
|
|
4481
|
+
/** @description The edge types you can read or write, sorted by identifier, at most 50. Absent when you can read no type or can use no edge type. */
|
|
4482
|
+
edge_types?: components["schemas"]["OverviewEdgeType"][];
|
|
4483
|
+
/** @description The most used tags on items you can read, at most 30. Absent when there are none. */
|
|
4484
|
+
tags?: components["schemas"]["TagCount"][];
|
|
4485
|
+
/** @description The views you can read, sorted by title, at most 30. Absent when there are none. */
|
|
4486
|
+
views?: components["schemas"]["OverviewView"][];
|
|
4487
|
+
/** @description The folders you can read, sorted by title, at most 30. Absent when there are none. */
|
|
4488
|
+
folders?: components["schemas"]["OverviewFolder"][];
|
|
4489
|
+
/** @description Each list that was cut, with how many entries it held before the cut. Names are `types`, `edge_types`, `tags`, `views`, `folders` and `credential.type_permissions.<level>`. Absent when nothing was cut. */
|
|
4490
|
+
truncated?: {
|
|
4491
|
+
[key: string]: number;
|
|
4492
|
+
};
|
|
4493
|
+
};
|
|
4494
|
+
/**
|
|
4495
|
+
* @description A permission a credential can hold, for an operation the type, edge, extension, metadata and profile maps don't cover. `schema.write` replaces and deletes types and edge types; `keys.mint` mints keys and lists, changes and revokes those within the caller's reach; `keys.manage` lists and revokes every key and changes one without widening it; `items.purge` purges trashed items; `webhooks.manage` manages webhooks; `config.manage` reads and replaces `/config`; `audit.read` reads the audit log; `grants.manage` lists and revokes other apps' access; `instance.read` reads health, metrics, housekeeping, retired platform types, blob storage reports and every bulk job's status; `instance.maintain` runs housekeeping, resets platform type definitions and cancels bulk jobs; `connectors.manage` administers connector registrations and their endpoints, and clears their retained state; and `blobs.manage` manages every blob.
|
|
4496
|
+
* @enum {string}
|
|
4497
|
+
*/
|
|
4498
|
+
Permission: "webhooks.manage" | "schema.write" | "config.manage" | "audit.read" | "items.purge" | "keys.mint" | "grants.manage" | "instance.read" | "instance.maintain" | "connectors.manage" | "blobs.manage" | "keys.manage";
|
|
4499
|
+
/** @description A type you can read, and how many active items it has. */
|
|
4500
|
+
OverviewType: {
|
|
4501
|
+
/**
|
|
4502
|
+
* @description The type's identifier.
|
|
4503
|
+
* @example core.note
|
|
4504
|
+
*/
|
|
4505
|
+
id: string;
|
|
4506
|
+
/** @description What the type holds, cut at 100 characters. Absent when the type has none. */
|
|
4507
|
+
description?: string;
|
|
4508
|
+
/** @description How many active items of the type you can read. */
|
|
4509
|
+
count: number;
|
|
4510
|
+
};
|
|
4511
|
+
/** @description An edge type your edge permissions cover, and at which level. */
|
|
4512
|
+
OverviewEdgeType: {
|
|
4513
|
+
/**
|
|
4514
|
+
* @description The edge type's identifier.
|
|
4515
|
+
* @example parent-of
|
|
4516
|
+
*/
|
|
4517
|
+
id: string;
|
|
4518
|
+
/** @description What the edge type means, cut at 100 characters. Absent when it has none. */
|
|
4519
|
+
description?: string;
|
|
4520
|
+
access: components["schemas"]["PermissionLevel"] & unknown;
|
|
4521
|
+
};
|
|
4522
|
+
/** @description A view you can read. */
|
|
4523
|
+
OverviewView: {
|
|
4524
|
+
/**
|
|
4525
|
+
* @description The ID of the view.
|
|
4526
|
+
* @example 019537a0-7b80-7000-8000-000000000000
|
|
4527
|
+
*/
|
|
4528
|
+
id: string;
|
|
4529
|
+
/** @description The view's title, cut at 100 characters. */
|
|
4530
|
+
title: string;
|
|
4531
|
+
};
|
|
4532
|
+
/** @description A folder you can read. */
|
|
4533
|
+
OverviewFolder: {
|
|
4534
|
+
/**
|
|
4535
|
+
* @description The ID of the folder.
|
|
4536
|
+
* @example 019537a0-7b80-7000-8000-000000000000
|
|
4537
|
+
*/
|
|
4538
|
+
id: string;
|
|
4539
|
+
/** @description The folder's title, cut at 100 characters. */
|
|
4540
|
+
title: string;
|
|
4541
|
+
};
|
|
4070
4542
|
/** @description An error response. */
|
|
4071
4543
|
RequestTimeoutRefusal: {
|
|
4072
4544
|
/** @description What went wrong. */
|
|
@@ -4830,6 +5302,13 @@ interface components {
|
|
|
4830
5302
|
/** @description An item ID. The view lists that item and everything under it by `parent-of`, at any depth. */
|
|
4831
5303
|
beneath?: string;
|
|
4832
5304
|
};
|
|
5305
|
+
/** @description A page of the items a view lists. */
|
|
5306
|
+
ViewItemPage: {
|
|
5307
|
+
/** @description The items on this page, in the view's sort order. */
|
|
5308
|
+
data: components["schemas"]["Item"][];
|
|
5309
|
+
/** @description Pass as `cursor` for the next page; `null` on the last. A page can be short, or empty, with a cursor still to follow, so a walk stops on `null` and never on a short page. */
|
|
5310
|
+
next_cursor: string | null;
|
|
5311
|
+
};
|
|
4833
5312
|
/** @description An error response. */
|
|
4834
5313
|
InvalidIdOrInvalidTransitionOrMissingRequiredFieldOrUnknownTypeOrValidationErrorRefusal: {
|
|
4835
5314
|
/** @description What went wrong. */
|
|
@@ -4889,11 +5368,6 @@ interface components {
|
|
|
4889
5368
|
/** @description When the key's use was last recorded, in UTC, or `null` if none is recorded. Marfa records usage asynchronously at most once an hour; a busy or unavailable store can delay or drop a record. */
|
|
4890
5369
|
last_used_at: string | null;
|
|
4891
5370
|
};
|
|
4892
|
-
/**
|
|
4893
|
-
* @description A permission a credential can hold, for an operation the type, edge, extension, metadata and profile maps don't cover. `schema.write` replaces and deletes types and edge types; `keys.mint` mints keys and lists, changes and revokes those within the caller's reach; `keys.manage` lists and revokes every key and changes one without widening it; `items.purge` purges trashed items; `webhooks.manage` manages webhooks; `config.manage` reads and replaces `/config`; `audit.read` reads the audit log; `grants.manage` lists and revokes other apps' access; `instance.read` reads health, metrics, housekeeping, retired platform types, blob storage reports and every bulk job's status; `instance.maintain` runs housekeeping, resets platform type definitions and cancels bulk jobs; `connectors.manage` administers connector registrations and their endpoints, and clears their retained state; and `blobs.manage` manages every blob.
|
|
4894
|
-
* @enum {string}
|
|
4895
|
-
*/
|
|
4896
|
-
Permission: "webhooks.manage" | "schema.write" | "config.manage" | "audit.read" | "items.purge" | "keys.mint" | "grants.manage" | "instance.read" | "instance.maintain" | "connectors.manage" | "blobs.manage" | "keys.manage";
|
|
4897
5371
|
/**
|
|
4898
5372
|
* @description What a key may do with a type: `read` it, `write` it (which includes reading), or `none`, which denies a type a wildcard entry would reach.
|
|
4899
5373
|
* @enum {string}
|
|
@@ -6130,6 +6604,11 @@ interface operations {
|
|
|
6130
6604
|
source?: string;
|
|
6131
6605
|
/** @description The item's identifier at its source, such as a vendor's row ID. With `source`, it is the item's natural key: creating with a key that exists updates that item. */
|
|
6132
6606
|
source_id?: string;
|
|
6607
|
+
/**
|
|
6608
|
+
* @description `upsert` (the default) updates the item `source_id` matches. `create_only` writes nothing when an item already holds the `source_id` under the source, or the `id`, in any state, and answers `item_exists` (409) with `details.existing_id`.
|
|
6609
|
+
* @enum {string}
|
|
6610
|
+
*/
|
|
6611
|
+
mode?: "upsert" | "create_only";
|
|
6133
6612
|
/** @description The version you read. Used only when `source_id` matches a live item: the update then applies only if the item is still at this version. Ignored otherwise. */
|
|
6134
6613
|
version?: number;
|
|
6135
6614
|
tier?: components["schemas"]["Tier"] & unknown;
|
|
@@ -6260,7 +6739,8 @@ interface operations {
|
|
|
6260
6739
|
};
|
|
6261
6740
|
};
|
|
6262
6741
|
/**
|
|
6263
|
-
* @description - `
|
|
6742
|
+
* @description - `item_exists`: `create_only` found an item holding the `source_id` or `id`.
|
|
6743
|
+
* - `id_reused`: `id` names an item of another type.
|
|
6264
6744
|
* - `conflict`: `id` names an item you can't read.
|
|
6265
6745
|
* - `link_taken`: another item of the type holds this link. `details.existing_id` names it.
|
|
6266
6746
|
* - `type_mismatch`: `source_id` matches an item of another type.
|
|
@@ -6278,7 +6758,7 @@ interface operations {
|
|
|
6278
6758
|
[name: string]: unknown;
|
|
6279
6759
|
};
|
|
6280
6760
|
content: {
|
|
6281
|
-
"application/json": components["schemas"]["ItemVersionConflict"] | components["schemas"]["ItemAncestorUnavailable"] | components["schemas"]["
|
|
6761
|
+
"application/json": components["schemas"]["ItemVersionConflict"] | components["schemas"]["ItemAncestorUnavailable"] | components["schemas"]["ConflictOrIdReusedOrItemExistsOrLinkTakenOrTypeMismatchRefusal"] | components["schemas"]["InstanceChangedRefusal"] | components["schemas"]["IdempotencyKeyInFlightRefusal"];
|
|
6282
6762
|
};
|
|
6283
6763
|
};
|
|
6284
6764
|
/** @description `request_too_large`: the request body is larger than this instance accepts. */
|
|
@@ -6671,11 +7151,503 @@ interface operations {
|
|
|
6671
7151
|
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
6672
7152
|
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
6673
7153
|
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
6674
|
-
"Idempotency-Replayed": components["headers"]["Idempotency-Replayed"];
|
|
7154
|
+
"Idempotency-Replayed": components["headers"]["Idempotency-Replayed"];
|
|
7155
|
+
[name: string]: unknown;
|
|
7156
|
+
};
|
|
7157
|
+
content: {
|
|
7158
|
+
"application/json": components["schemas"]["ItemStaleVersion"] | components["schemas"]["InstanceChangedRefusal"] | components["schemas"]["IdempotencyKeyInFlightRefusal"];
|
|
7159
|
+
};
|
|
7160
|
+
};
|
|
7161
|
+
/** @description `request_too_large`: the request body is larger than this instance accepts. */
|
|
7162
|
+
413: {
|
|
7163
|
+
headers: {
|
|
7164
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
7165
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
7166
|
+
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
7167
|
+
[name: string]: unknown;
|
|
7168
|
+
};
|
|
7169
|
+
content: {
|
|
7170
|
+
"application/json": components["schemas"]["RequestTooLargeRefusal"];
|
|
7171
|
+
};
|
|
7172
|
+
};
|
|
7173
|
+
/**
|
|
7174
|
+
* @description - `idempotency_key_reused`: the key was first used for a different request. Nothing is written.
|
|
7175
|
+
* - `idempotency_result_not_retained`: the first response was too large to keep, so Marfa can't replay it. The write isn't repeated.
|
|
7176
|
+
*/
|
|
7177
|
+
422: {
|
|
7178
|
+
headers: {
|
|
7179
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
7180
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
7181
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
7182
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
7183
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
7184
|
+
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
7185
|
+
"Idempotency-Replayed": components["headers"]["Idempotency-Replayed"];
|
|
7186
|
+
[name: string]: unknown;
|
|
7187
|
+
};
|
|
7188
|
+
content: {
|
|
7189
|
+
"application/json": components["schemas"]["IdempotencyKeyReusedOrIdempotencyResultNotRetainedRefusal"];
|
|
7190
|
+
};
|
|
7191
|
+
};
|
|
7192
|
+
/** @description `rate_limited`: you sent too many requests. Wait for the number of seconds in `Retry-After`, then try again. */
|
|
7193
|
+
429: {
|
|
7194
|
+
headers: {
|
|
7195
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
7196
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
7197
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
7198
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
7199
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
7200
|
+
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
7201
|
+
"Retry-After": components["headers"]["Retry-After"];
|
|
7202
|
+
"Idempotency-Replayed": components["headers"]["Idempotency-Replayed"];
|
|
7203
|
+
[name: string]: unknown;
|
|
7204
|
+
};
|
|
7205
|
+
content: {
|
|
7206
|
+
"application/json": components["schemas"]["RateLimitedRefusal"];
|
|
7207
|
+
};
|
|
7208
|
+
};
|
|
7209
|
+
/** @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. */
|
|
7210
|
+
500: {
|
|
7211
|
+
headers: {
|
|
7212
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
7213
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
7214
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
7215
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
7216
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
7217
|
+
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
7218
|
+
"Idempotency-Replayed": components["headers"]["Idempotency-Replayed"];
|
|
7219
|
+
[name: string]: unknown;
|
|
7220
|
+
};
|
|
7221
|
+
content: {
|
|
7222
|
+
"application/json": components["schemas"]["InternalErrorRefusal"];
|
|
7223
|
+
};
|
|
7224
|
+
};
|
|
7225
|
+
/** @description `write_contention`: the database was busy, and Marfa couldn't complete the request in time. Nothing changed. Try the request again. */
|
|
7226
|
+
503: {
|
|
7227
|
+
headers: {
|
|
7228
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
7229
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
7230
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
7231
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
7232
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
7233
|
+
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
7234
|
+
"Idempotency-Replayed": components["headers"]["Idempotency-Replayed"];
|
|
7235
|
+
[name: string]: unknown;
|
|
7236
|
+
};
|
|
7237
|
+
content: {
|
|
7238
|
+
"application/json": components["schemas"]["WriteContentionRefusal"];
|
|
7239
|
+
};
|
|
7240
|
+
};
|
|
7241
|
+
/** @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. */
|
|
7242
|
+
507: {
|
|
7243
|
+
headers: {
|
|
7244
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
7245
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
7246
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
7247
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
7248
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
7249
|
+
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
7250
|
+
"Idempotency-Replayed": components["headers"]["Idempotency-Replayed"];
|
|
7251
|
+
[name: string]: unknown;
|
|
7252
|
+
};
|
|
7253
|
+
content: {
|
|
7254
|
+
"application/json": components["schemas"]["InsufficientStorageRefusal"];
|
|
7255
|
+
};
|
|
7256
|
+
};
|
|
7257
|
+
};
|
|
7258
|
+
};
|
|
7259
|
+
updateItem: {
|
|
7260
|
+
parameters: {
|
|
7261
|
+
query?: {
|
|
7262
|
+
/** @description Who resolves a version conflict. `auto` has Marfa resolve it by the type's merge policy. `manual` and `callback` return the conflict for you to resolve. Defaults to `manual`. */
|
|
7263
|
+
conflict?: components["schemas"]["ConflictMode"];
|
|
7264
|
+
};
|
|
7265
|
+
header?: {
|
|
7266
|
+
/** @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. */
|
|
7267
|
+
"Idempotency-Key"?: string;
|
|
7268
|
+
/** @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. */
|
|
7269
|
+
"X-Marfa-Instance-Id"?: string;
|
|
7270
|
+
};
|
|
7271
|
+
path: {
|
|
7272
|
+
/** @description The ID of the item. */
|
|
7273
|
+
id: string;
|
|
7274
|
+
};
|
|
7275
|
+
cookie?: never;
|
|
7276
|
+
};
|
|
7277
|
+
requestBody: {
|
|
7278
|
+
content: {
|
|
7279
|
+
"application/json": {
|
|
7280
|
+
/** @description The properties to write. They lay over the item's properties, or become all of them when `properties_mode` is `replace`. As in `POST /items`, strict mode refuses an undeclared property, and a whole number whose digits a 64-bit float doesn't keep is refused. */
|
|
7281
|
+
properties?: {
|
|
7282
|
+
[key: string]: unknown;
|
|
7283
|
+
};
|
|
7284
|
+
/** @description The item's type. It must match the item's current type unless `retype` is `true`. */
|
|
7285
|
+
type?: string;
|
|
7286
|
+
/**
|
|
7287
|
+
* @description How `properties` applies. `merge` (the default) lays them over the item's properties. `replace` takes them as the whole set, so a property you leave out is cleared.
|
|
7288
|
+
* @enum {string}
|
|
7289
|
+
*/
|
|
7290
|
+
properties_mode?: "merge" | "replace";
|
|
7291
|
+
/** @description `true` moves the item to `type`. You need write on both types, and the properties the item ends up with must fit the new type. Naming the item's current type changes nothing. */
|
|
7292
|
+
retype?: boolean;
|
|
7293
|
+
/** @description The version of the item you read, which this update is based on. */
|
|
7294
|
+
version: number;
|
|
7295
|
+
/**
|
|
7296
|
+
* @description `exact` requires the item to still hold `version`, even if the fields changed do not collide. If omitted, a stale write can merge over changes to other fields.
|
|
7297
|
+
* @enum {string}
|
|
7298
|
+
*/
|
|
7299
|
+
version_match?: "exact";
|
|
7300
|
+
tier?: components["schemas"]["Tier"] & unknown;
|
|
7301
|
+
/** @description When the item occurred, as an ISO 8601 time. */
|
|
7302
|
+
occurred_at?: string;
|
|
7303
|
+
/** @description The item's new `source_id`. Marfa moves its natural key under the item's own `source`, which never changes. */
|
|
7304
|
+
source_id?: string;
|
|
7305
|
+
/** @description Edge types to replace, each mapped to the item IDs it should now point to. An empty list removes every edge of that type. Types you don't name are untouched. An edge made this way carries no properties, so an edge type that requires one refuses the write. */
|
|
7306
|
+
edges?: {
|
|
7307
|
+
[key: string]: string[];
|
|
7308
|
+
};
|
|
7309
|
+
};
|
|
7310
|
+
};
|
|
7311
|
+
};
|
|
7312
|
+
responses: {
|
|
7313
|
+
/** @description Returns the updated item and its metadata. If `conflict=auto` resolved a collision, `conflict_resolution` lists the fields and strategies. A `keep_both_copies` field keeps the current value and puts yours on a new sibling tagged `conflicted-copy`, with a `derived-from` edge to this item. */
|
|
7314
|
+
200: {
|
|
7315
|
+
headers: {
|
|
7316
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
7317
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
7318
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
7319
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
7320
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
7321
|
+
"Idempotency-Replayed": components["headers"]["Idempotency-Replayed"];
|
|
7322
|
+
[name: string]: unknown;
|
|
7323
|
+
};
|
|
7324
|
+
content: {
|
|
7325
|
+
"application/json": components["schemas"]["ItemWithMetadata"] & {
|
|
7326
|
+
/** @description What Marfa did to resolve a conflict. Present only when `conflict=auto` resolved one. `conflicted_copy_id` is the ID of the sibling item that holds the losing values, which has a `derived-from` edge to this item. */
|
|
7327
|
+
conflict_resolution?: {
|
|
7328
|
+
fields: string[];
|
|
7329
|
+
strategy: {
|
|
7330
|
+
[key: string]: components["schemas"]["MergeStrategy"];
|
|
7331
|
+
};
|
|
7332
|
+
conflicted_copy_id?: string;
|
|
7333
|
+
};
|
|
7334
|
+
};
|
|
7335
|
+
};
|
|
7336
|
+
};
|
|
7337
|
+
/**
|
|
7338
|
+
* @description - `missing_required_field`: `version` is missing.
|
|
7339
|
+
* - `validation_error`: the body is malformed or changes nothing.
|
|
7340
|
+
* - `invalid_id`: the ID or a target isn't valid.
|
|
7341
|
+
* - `invalid_properties`: the properties don't fit the type, or an inline edge lacks a property its type requires.
|
|
7342
|
+
* - `unknown_type`: `type` isn't registered.
|
|
7343
|
+
* - `edge_constraint_violation`, `edge_cycle`: an edge breaks its type's rules.
|
|
7344
|
+
*/
|
|
7345
|
+
400: {
|
|
7346
|
+
headers: {
|
|
7347
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
7348
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
7349
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
7350
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
7351
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
7352
|
+
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
7353
|
+
"Idempotency-Replayed": components["headers"]["Idempotency-Replayed"];
|
|
7354
|
+
[name: string]: unknown;
|
|
7355
|
+
};
|
|
7356
|
+
content: {
|
|
7357
|
+
"application/json": components["schemas"]["EdgeConstraintViolationOrEdgeCycleOrInvalidIdOrInvalidPropertiesOrMissingRequiredFieldOrUnknownTypeOrValidationErrorRefusal"];
|
|
7358
|
+
};
|
|
7359
|
+
};
|
|
7360
|
+
/** @description `unauthorized`: the request has no credential, or its credential is not valid. */
|
|
7361
|
+
401: {
|
|
7362
|
+
headers: {
|
|
7363
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
7364
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
7365
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
7366
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
7367
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
7368
|
+
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
7369
|
+
[name: string]: unknown;
|
|
7370
|
+
};
|
|
7371
|
+
content: {
|
|
7372
|
+
"application/json": components["schemas"]["UnauthorizedRefusal"];
|
|
7373
|
+
};
|
|
7374
|
+
};
|
|
7375
|
+
/**
|
|
7376
|
+
* @description - `type_not_permitted`: you can read the item's type but don't have write on it (or on the type `retype` enters), or your credential reaches no type.
|
|
7377
|
+
* - `edge_permission_denied`: you don't have write on an edge type in `edges`.
|
|
7378
|
+
* - `forbidden`: you changed `source_id` on an item whose source your key doesn't write under or claim. `details.source` names it.
|
|
7379
|
+
*/
|
|
7380
|
+
403: {
|
|
7381
|
+
headers: {
|
|
7382
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
7383
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
7384
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
7385
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
7386
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
7387
|
+
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
7388
|
+
[name: string]: unknown;
|
|
7389
|
+
};
|
|
7390
|
+
content: {
|
|
7391
|
+
"application/json": components["schemas"]["EdgePermissionDeniedOrForbiddenOrTypeNotPermittedRefusal"];
|
|
7392
|
+
};
|
|
7393
|
+
};
|
|
7394
|
+
/**
|
|
7395
|
+
* @description - `item_not_found`: no item you can read has this ID or an edge target's ID. For a trashed item, `details.trashed` is `true` if you can read its type.
|
|
7396
|
+
* - `edge_type_not_found`: an edge names an edge type that doesn't exist.
|
|
7397
|
+
* - `edge_not_found`: a repeat under the `Idempotency-Key` would show an edge you can't read now.
|
|
7398
|
+
* - `blob_not_found`: `blob_ref` names bytes you didn't upload and can't read.
|
|
7399
|
+
*/
|
|
7400
|
+
404: {
|
|
7401
|
+
headers: {
|
|
7402
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
7403
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
7404
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
7405
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
7406
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
7407
|
+
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
7408
|
+
"Idempotency-Replayed": components["headers"]["Idempotency-Replayed"];
|
|
7409
|
+
[name: string]: unknown;
|
|
7410
|
+
};
|
|
7411
|
+
content: {
|
|
7412
|
+
"application/json": components["schemas"]["BlobNotFoundOrEdgeNotFoundOrEdgeTypeNotFoundOrItemNotFoundRefusal"];
|
|
7413
|
+
};
|
|
7414
|
+
};
|
|
7415
|
+
/**
|
|
7416
|
+
* @description - `version_conflict`: stale exact precondition, colliding change, or stale edges-only write. `current` is the item now.
|
|
7417
|
+
* - `ancestor_unavailable`: no readable snapshot of `version`.
|
|
7418
|
+
* - `source_id_conflict`: another item under the source holds `source_id`.
|
|
7419
|
+
* - `link_taken`: another item of the type holds the link.
|
|
7420
|
+
* - `type_mismatch`: `type` differs without `retype: true`.
|
|
7421
|
+
*/
|
|
7422
|
+
409: {
|
|
7423
|
+
headers: {
|
|
7424
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
7425
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
7426
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
7427
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
7428
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
7429
|
+
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
7430
|
+
"Idempotency-Replayed": components["headers"]["Idempotency-Replayed"];
|
|
7431
|
+
[name: string]: unknown;
|
|
7432
|
+
};
|
|
7433
|
+
content: {
|
|
7434
|
+
"application/json": components["schemas"]["ItemVersionConflict"] | components["schemas"]["ItemStaleVersion"] | components["schemas"]["ItemAncestorUnavailable"] | components["schemas"]["LinkTakenOrSourceIdConflictOrTypeMismatchRefusal"] | components["schemas"]["InstanceChangedRefusal"] | components["schemas"]["IdempotencyKeyInFlightRefusal"];
|
|
7435
|
+
};
|
|
7436
|
+
};
|
|
7437
|
+
/** @description `request_too_large`: the request body is larger than this instance accepts. */
|
|
7438
|
+
413: {
|
|
7439
|
+
headers: {
|
|
7440
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
7441
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
7442
|
+
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
7443
|
+
[name: string]: unknown;
|
|
7444
|
+
};
|
|
7445
|
+
content: {
|
|
7446
|
+
"application/json": components["schemas"]["RequestTooLargeRefusal"];
|
|
7447
|
+
};
|
|
7448
|
+
};
|
|
7449
|
+
/**
|
|
7450
|
+
* @description - `idempotency_key_reused`: the key was first used for a different request. Nothing is written.
|
|
7451
|
+
* - `idempotency_result_not_retained`: the first response was too large to keep, so Marfa can't replay it. The write isn't repeated.
|
|
7452
|
+
*/
|
|
7453
|
+
422: {
|
|
7454
|
+
headers: {
|
|
7455
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
7456
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
7457
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
7458
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
7459
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
7460
|
+
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
7461
|
+
"Idempotency-Replayed": components["headers"]["Idempotency-Replayed"];
|
|
7462
|
+
[name: string]: unknown;
|
|
7463
|
+
};
|
|
7464
|
+
content: {
|
|
7465
|
+
"application/json": components["schemas"]["IdempotencyKeyReusedOrIdempotencyResultNotRetainedRefusal"];
|
|
7466
|
+
};
|
|
7467
|
+
};
|
|
7468
|
+
/** @description `rate_limited`: you sent too many requests. Wait for the number of seconds in `Retry-After`, then try again. */
|
|
7469
|
+
429: {
|
|
7470
|
+
headers: {
|
|
7471
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
7472
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
7473
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
7474
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
7475
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
7476
|
+
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
7477
|
+
"Retry-After": components["headers"]["Retry-After"];
|
|
7478
|
+
"Idempotency-Replayed": components["headers"]["Idempotency-Replayed"];
|
|
7479
|
+
[name: string]: unknown;
|
|
7480
|
+
};
|
|
7481
|
+
content: {
|
|
7482
|
+
"application/json": components["schemas"]["RateLimitedRefusal"];
|
|
7483
|
+
};
|
|
7484
|
+
};
|
|
7485
|
+
/** @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. */
|
|
7486
|
+
500: {
|
|
7487
|
+
headers: {
|
|
7488
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
7489
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
7490
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
7491
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
7492
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
7493
|
+
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
7494
|
+
"Idempotency-Replayed": components["headers"]["Idempotency-Replayed"];
|
|
7495
|
+
[name: string]: unknown;
|
|
7496
|
+
};
|
|
7497
|
+
content: {
|
|
7498
|
+
"application/json": components["schemas"]["InternalErrorRefusal"];
|
|
7499
|
+
};
|
|
7500
|
+
};
|
|
7501
|
+
/** @description `write_contention`: the database was busy, and Marfa couldn't complete the request in time. Nothing changed. Try the request again. */
|
|
7502
|
+
503: {
|
|
7503
|
+
headers: {
|
|
7504
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
7505
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
7506
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
7507
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
7508
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
7509
|
+
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
7510
|
+
"Idempotency-Replayed": components["headers"]["Idempotency-Replayed"];
|
|
7511
|
+
[name: string]: unknown;
|
|
7512
|
+
};
|
|
7513
|
+
content: {
|
|
7514
|
+
"application/json": components["schemas"]["WriteContentionRefusal"];
|
|
7515
|
+
};
|
|
7516
|
+
};
|
|
7517
|
+
/** @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. */
|
|
7518
|
+
507: {
|
|
7519
|
+
headers: {
|
|
7520
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
7521
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
7522
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
7523
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
7524
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
7525
|
+
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
7526
|
+
"Idempotency-Replayed": components["headers"]["Idempotency-Replayed"];
|
|
7527
|
+
[name: string]: unknown;
|
|
7528
|
+
};
|
|
7529
|
+
content: {
|
|
7530
|
+
"application/json": components["schemas"]["InsufficientStorageRefusal"];
|
|
7531
|
+
};
|
|
7532
|
+
};
|
|
7533
|
+
};
|
|
7534
|
+
};
|
|
7535
|
+
previewItemTrash: {
|
|
7536
|
+
parameters: {
|
|
7537
|
+
query?: never;
|
|
7538
|
+
header?: {
|
|
7539
|
+
/** @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. */
|
|
7540
|
+
"X-Marfa-Instance-Id"?: string;
|
|
7541
|
+
};
|
|
7542
|
+
path?: never;
|
|
7543
|
+
cookie?: never;
|
|
7544
|
+
};
|
|
7545
|
+
requestBody: {
|
|
7546
|
+
content: {
|
|
7547
|
+
"application/json": {
|
|
7548
|
+
/**
|
|
7549
|
+
* @description The IDs of the items you would trash, at most 20.
|
|
7550
|
+
* @example [
|
|
7551
|
+
* "019537a0-7b80-7000-8000-000000000001"
|
|
7552
|
+
* ]
|
|
7553
|
+
*/
|
|
7554
|
+
ids: string[];
|
|
7555
|
+
};
|
|
7556
|
+
};
|
|
7557
|
+
};
|
|
7558
|
+
responses: {
|
|
7559
|
+
/** @description Returns the items and what their trash would take. */
|
|
7560
|
+
200: {
|
|
7561
|
+
headers: {
|
|
7562
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
7563
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
7564
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
7565
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
7566
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
7567
|
+
[name: string]: unknown;
|
|
7568
|
+
};
|
|
7569
|
+
content: {
|
|
7570
|
+
"application/json": components["schemas"]["TrashPreview"];
|
|
7571
|
+
};
|
|
7572
|
+
};
|
|
7573
|
+
/**
|
|
7574
|
+
* @description - `invalid_id`: an ID in `ids` is not an item ID.
|
|
7575
|
+
* - `missing_required_field`: `ids` is missing.
|
|
7576
|
+
* - `edge_constraint_violation`: a `cascade_on_delete: block` edge holds a named item or one its trash would take.
|
|
7577
|
+
* - `validation_error`: a named item is a live `system.connection`, `ids` is empty or has over 20 IDs, or the body has a field this endpoint doesn't take.
|
|
7578
|
+
*/
|
|
7579
|
+
400: {
|
|
7580
|
+
headers: {
|
|
7581
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
7582
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
7583
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
7584
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
7585
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
7586
|
+
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
7587
|
+
[name: string]: unknown;
|
|
7588
|
+
};
|
|
7589
|
+
content: {
|
|
7590
|
+
"application/json": components["schemas"]["EdgeConstraintViolationOrInvalidIdOrMissingRequiredFieldOrValidationErrorRefusal"];
|
|
7591
|
+
};
|
|
7592
|
+
};
|
|
7593
|
+
/** @description `unauthorized`: the request has no credential, or its credential is not valid. */
|
|
7594
|
+
401: {
|
|
7595
|
+
headers: {
|
|
7596
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
7597
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
7598
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
7599
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
7600
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
7601
|
+
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
7602
|
+
[name: string]: unknown;
|
|
7603
|
+
};
|
|
7604
|
+
content: {
|
|
7605
|
+
"application/json": components["schemas"]["UnauthorizedRefusal"];
|
|
7606
|
+
};
|
|
7607
|
+
};
|
|
7608
|
+
/** @description - `type_not_permitted`: you can read the item's type but don't have write on it, or your credential reaches no type. `details.grant` names the missing grant. */
|
|
7609
|
+
403: {
|
|
7610
|
+
headers: {
|
|
7611
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
7612
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
7613
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
7614
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
7615
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
7616
|
+
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
7617
|
+
[name: string]: unknown;
|
|
7618
|
+
};
|
|
7619
|
+
content: {
|
|
7620
|
+
"application/json": components["schemas"]["TypeNotPermittedRefusal"];
|
|
7621
|
+
};
|
|
7622
|
+
};
|
|
7623
|
+
/** @description - `item_not_found`: an ID in `ids` names no item, or names an item whose type you can't read. If that item is in the trash and you can read its type, `details.trashed` is `true`. */
|
|
7624
|
+
404: {
|
|
7625
|
+
headers: {
|
|
7626
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
7627
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
7628
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
7629
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
7630
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
7631
|
+
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
7632
|
+
[name: string]: unknown;
|
|
7633
|
+
};
|
|
7634
|
+
content: {
|
|
7635
|
+
"application/json": components["schemas"]["ItemNotFoundRefusal"];
|
|
7636
|
+
};
|
|
7637
|
+
};
|
|
7638
|
+
/** @description `instance_changed`: `X-Marfa-Instance-Id` names another instance. Nothing is written. Rebuild the working copy from the instance at this address. */
|
|
7639
|
+
409: {
|
|
7640
|
+
headers: {
|
|
7641
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
7642
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
7643
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
7644
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
7645
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
7646
|
+
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
6675
7647
|
[name: string]: unknown;
|
|
6676
7648
|
};
|
|
6677
7649
|
content: {
|
|
6678
|
-
"application/json": components["schemas"]["
|
|
7650
|
+
"application/json": components["schemas"]["InstanceChangedRefusal"];
|
|
6679
7651
|
};
|
|
6680
7652
|
};
|
|
6681
7653
|
/** @description `request_too_large`: the request body is larger than this instance accepts. */
|
|
@@ -6690,25 +7662,6 @@ interface operations {
|
|
|
6690
7662
|
"application/json": components["schemas"]["RequestTooLargeRefusal"];
|
|
6691
7663
|
};
|
|
6692
7664
|
};
|
|
6693
|
-
/**
|
|
6694
|
-
* @description - `idempotency_key_reused`: the key was first used for a different request. Nothing is written.
|
|
6695
|
-
* - `idempotency_result_not_retained`: the first response was too large to keep, so Marfa can't replay it. The write isn't repeated.
|
|
6696
|
-
*/
|
|
6697
|
-
422: {
|
|
6698
|
-
headers: {
|
|
6699
|
-
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
6700
|
-
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
6701
|
-
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
6702
|
-
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
6703
|
-
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
6704
|
-
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
6705
|
-
"Idempotency-Replayed": components["headers"]["Idempotency-Replayed"];
|
|
6706
|
-
[name: string]: unknown;
|
|
6707
|
-
};
|
|
6708
|
-
content: {
|
|
6709
|
-
"application/json": components["schemas"]["IdempotencyKeyReusedOrIdempotencyResultNotRetainedRefusal"];
|
|
6710
|
-
};
|
|
6711
|
-
};
|
|
6712
7665
|
/** @description `rate_limited`: you sent too many requests. Wait for the number of seconds in `Retry-After`, then try again. */
|
|
6713
7666
|
429: {
|
|
6714
7667
|
headers: {
|
|
@@ -6719,7 +7672,6 @@ interface operations {
|
|
|
6719
7672
|
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
6720
7673
|
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
6721
7674
|
"Retry-After": components["headers"]["Retry-After"];
|
|
6722
|
-
"Idempotency-Replayed": components["headers"]["Idempotency-Replayed"];
|
|
6723
7675
|
[name: string]: unknown;
|
|
6724
7676
|
};
|
|
6725
7677
|
content: {
|
|
@@ -6735,7 +7687,6 @@ interface operations {
|
|
|
6735
7687
|
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
6736
7688
|
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
6737
7689
|
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
6738
|
-
"Idempotency-Replayed": components["headers"]["Idempotency-Replayed"];
|
|
6739
7690
|
[name: string]: unknown;
|
|
6740
7691
|
};
|
|
6741
7692
|
content: {
|
|
@@ -6751,7 +7702,6 @@ interface operations {
|
|
|
6751
7702
|
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
6752
7703
|
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
6753
7704
|
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
6754
|
-
"Idempotency-Replayed": components["headers"]["Idempotency-Replayed"];
|
|
6755
7705
|
[name: string]: unknown;
|
|
6756
7706
|
};
|
|
6757
7707
|
content: {
|
|
@@ -6767,7 +7717,6 @@ interface operations {
|
|
|
6767
7717
|
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
6768
7718
|
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
6769
7719
|
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
6770
|
-
"Idempotency-Replayed": components["headers"]["Idempotency-Replayed"];
|
|
6771
7720
|
[name: string]: unknown;
|
|
6772
7721
|
};
|
|
6773
7722
|
content: {
|
|
@@ -6776,61 +7725,38 @@ interface operations {
|
|
|
6776
7725
|
};
|
|
6777
7726
|
};
|
|
6778
7727
|
};
|
|
6779
|
-
|
|
7728
|
+
trashItems: {
|
|
6780
7729
|
parameters: {
|
|
6781
|
-
query?:
|
|
6782
|
-
/** @description Who resolves a version conflict. `auto` has Marfa resolve it by the type's merge policy. `manual` and `callback` return the conflict for you to resolve. Defaults to `manual`. */
|
|
6783
|
-
conflict?: components["schemas"]["ConflictMode"];
|
|
6784
|
-
};
|
|
7730
|
+
query?: never;
|
|
6785
7731
|
header?: {
|
|
6786
7732
|
/** @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. */
|
|
6787
7733
|
"Idempotency-Key"?: string;
|
|
6788
7734
|
/** @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. */
|
|
6789
7735
|
"X-Marfa-Instance-Id"?: string;
|
|
6790
7736
|
};
|
|
6791
|
-
path
|
|
6792
|
-
/** @description The ID of the item. */
|
|
6793
|
-
id: string;
|
|
6794
|
-
};
|
|
7737
|
+
path?: never;
|
|
6795
7738
|
cookie?: never;
|
|
6796
7739
|
};
|
|
6797
7740
|
requestBody: {
|
|
6798
7741
|
content: {
|
|
6799
7742
|
"application/json": {
|
|
6800
|
-
/** @description The properties to write. They lay over the item's properties, or become all of them when `properties_mode` is `replace`. As in `POST /items`, strict mode refuses an undeclared property, and a whole number whose digits a 64-bit float doesn't keep is refused. */
|
|
6801
|
-
properties?: {
|
|
6802
|
-
[key: string]: unknown;
|
|
6803
|
-
};
|
|
6804
|
-
/** @description The item's type. It must match the item's current type unless `retype` is `true`. */
|
|
6805
|
-
type?: string;
|
|
6806
7743
|
/**
|
|
6807
|
-
* @description
|
|
6808
|
-
* @
|
|
7744
|
+
* @description The IDs of the items to trash, at most 20.
|
|
7745
|
+
* @example [
|
|
7746
|
+
* "019537a0-7b80-7000-8000-000000000001"
|
|
7747
|
+
* ]
|
|
6809
7748
|
*/
|
|
6810
|
-
|
|
6811
|
-
/** @description `true` moves the item to `type`. You need write on both types, and the properties the item ends up with must fit the new type. Naming the item's current type changes nothing. */
|
|
6812
|
-
retype?: boolean;
|
|
6813
|
-
/** @description The version of the item you read, which this update is based on. */
|
|
6814
|
-
version: number;
|
|
7749
|
+
ids: string[];
|
|
6815
7750
|
/**
|
|
6816
|
-
* @description `
|
|
6817
|
-
* @
|
|
7751
|
+
* @description The `digest` from `POST /items/trash-preview` for the same `ids`. If what the trash would take has changed since, nothing is trashed. Leave it out to trash what the items take now.
|
|
7752
|
+
* @example 9f2c1d3b5a7e4f60b8c9d0e1f2a3b4c5d6e7f8091a2b3c4d5e6f708192a3b4c5
|
|
6818
7753
|
*/
|
|
6819
|
-
|
|
6820
|
-
tier?: components["schemas"]["Tier"] & unknown;
|
|
6821
|
-
/** @description When the item occurred, as an ISO 8601 time. */
|
|
6822
|
-
occurred_at?: string;
|
|
6823
|
-
/** @description The item's new `source_id`. Marfa moves its natural key under the item's own `source`, which never changes. */
|
|
6824
|
-
source_id?: string;
|
|
6825
|
-
/** @description Edge types to replace, each mapped to the item IDs it should now point to. An empty list removes every edge of that type. Types you don't name are untouched. An edge made this way carries no properties, so an edge type that requires one refuses the write. */
|
|
6826
|
-
edges?: {
|
|
6827
|
-
[key: string]: string[];
|
|
6828
|
-
};
|
|
7754
|
+
digest?: string;
|
|
6829
7755
|
};
|
|
6830
7756
|
};
|
|
6831
7757
|
};
|
|
6832
7758
|
responses: {
|
|
6833
|
-
/** @description Returns
|
|
7759
|
+
/** @description Returns `{ "ok": true }`. An item that a cascading edge took into the trash has `trashed_by_cascade`, and `trashed_with` names the named item that took it if you can read its type. */
|
|
6834
7760
|
200: {
|
|
6835
7761
|
headers: {
|
|
6836
7762
|
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
@@ -6842,25 +7768,14 @@ interface operations {
|
|
|
6842
7768
|
[name: string]: unknown;
|
|
6843
7769
|
};
|
|
6844
7770
|
content: {
|
|
6845
|
-
"application/json": components["schemas"]["
|
|
6846
|
-
/** @description What Marfa did to resolve a conflict. Present only when `conflict=auto` resolved one. `conflicted_copy_id` is the ID of the sibling item that holds the losing values, which has a `derived-from` edge to this item. */
|
|
6847
|
-
conflict_resolution?: {
|
|
6848
|
-
fields: string[];
|
|
6849
|
-
strategy: {
|
|
6850
|
-
[key: string]: components["schemas"]["MergeStrategy"];
|
|
6851
|
-
};
|
|
6852
|
-
conflicted_copy_id?: string;
|
|
6853
|
-
};
|
|
6854
|
-
};
|
|
7771
|
+
"application/json": components["schemas"]["Ok"];
|
|
6855
7772
|
};
|
|
6856
7773
|
};
|
|
6857
7774
|
/**
|
|
6858
|
-
* @description - `
|
|
6859
|
-
* - `
|
|
6860
|
-
* - `
|
|
6861
|
-
* - `
|
|
6862
|
-
* - `unknown_type`: `type` isn't registered.
|
|
6863
|
-
* - `edge_constraint_violation`, `edge_cycle`: an edge breaks its type's rules.
|
|
7775
|
+
* @description - `invalid_id`: an ID in `ids` is not an item ID.
|
|
7776
|
+
* - `missing_required_field`: `ids` is missing.
|
|
7777
|
+
* - `edge_constraint_violation`: a `cascade_on_delete: block` edge holds a named item or one its trash would take.
|
|
7778
|
+
* - `validation_error`: a named item is a live `system.connection`, `ids` is empty or has over 20 IDs, `digest` is not a SHA-256 hash in hex, or the body has a field this endpoint doesn't take.
|
|
6864
7779
|
*/
|
|
6865
7780
|
400: {
|
|
6866
7781
|
headers: {
|
|
@@ -6874,7 +7789,7 @@ interface operations {
|
|
|
6874
7789
|
[name: string]: unknown;
|
|
6875
7790
|
};
|
|
6876
7791
|
content: {
|
|
6877
|
-
"application/json": components["schemas"]["
|
|
7792
|
+
"application/json": components["schemas"]["EdgeConstraintViolationOrInvalidIdOrMissingRequiredFieldOrValidationErrorRefusal"];
|
|
6878
7793
|
};
|
|
6879
7794
|
};
|
|
6880
7795
|
/** @description `unauthorized`: the request has no credential, or its credential is not valid. */
|
|
@@ -6892,11 +7807,7 @@ interface operations {
|
|
|
6892
7807
|
"application/json": components["schemas"]["UnauthorizedRefusal"];
|
|
6893
7808
|
};
|
|
6894
7809
|
};
|
|
6895
|
-
/**
|
|
6896
|
-
* @description - `type_not_permitted`: you can read the item's type but don't have write on it (or on the type `retype` enters), or your credential reaches no type.
|
|
6897
|
-
* - `edge_permission_denied`: you don't have write on an edge type in `edges`.
|
|
6898
|
-
* - `forbidden`: you changed `source_id` on an item whose source your key doesn't write under or claim. `details.source` names it.
|
|
6899
|
-
*/
|
|
7810
|
+
/** @description - `type_not_permitted`: you can read the item's type but don't have write on it, or your credential reaches no type. `details.grant` names the missing grant. */
|
|
6900
7811
|
403: {
|
|
6901
7812
|
headers: {
|
|
6902
7813
|
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
@@ -6908,15 +7819,10 @@ interface operations {
|
|
|
6908
7819
|
[name: string]: unknown;
|
|
6909
7820
|
};
|
|
6910
7821
|
content: {
|
|
6911
|
-
"application/json": components["schemas"]["
|
|
7822
|
+
"application/json": components["schemas"]["TypeNotPermittedRefusal"];
|
|
6912
7823
|
};
|
|
6913
7824
|
};
|
|
6914
|
-
/**
|
|
6915
|
-
* @description - `item_not_found`: no item you can read has this ID or an edge target's ID. For a trashed item, `details.trashed` is `true` if you can read its type.
|
|
6916
|
-
* - `edge_type_not_found`: an edge names an edge type that doesn't exist.
|
|
6917
|
-
* - `edge_not_found`: a repeat under the `Idempotency-Key` would show an edge you can't read now.
|
|
6918
|
-
* - `blob_not_found`: `blob_ref` names bytes you didn't upload and can't read.
|
|
6919
|
-
*/
|
|
7825
|
+
/** @description - `item_not_found`: an ID in `ids` names no item, or names an item whose type you can't read. If that item is in the trash and you can read its type, `details.trashed` is `true`. */
|
|
6920
7826
|
404: {
|
|
6921
7827
|
headers: {
|
|
6922
7828
|
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
@@ -6929,16 +7835,10 @@ interface operations {
|
|
|
6929
7835
|
[name: string]: unknown;
|
|
6930
7836
|
};
|
|
6931
7837
|
content: {
|
|
6932
|
-
"application/json": components["schemas"]["
|
|
7838
|
+
"application/json": components["schemas"]["ItemNotFoundRefusal"];
|
|
6933
7839
|
};
|
|
6934
7840
|
};
|
|
6935
|
-
/**
|
|
6936
|
-
* @description - `version_conflict`: stale exact precondition, colliding change, or stale edges-only write. `current` is the item now.
|
|
6937
|
-
* - `ancestor_unavailable`: no readable snapshot of `version`.
|
|
6938
|
-
* - `source_id_conflict`: another item under the source holds `source_id`.
|
|
6939
|
-
* - `link_taken`: another item of the type holds the link.
|
|
6940
|
-
* - `type_mismatch`: `type` differs without `retype: true`.
|
|
6941
|
-
*/
|
|
7841
|
+
/** @description - `trash_plan_changed`: what the trash would take no longer matches `digest`. `details.digest` is the digest now, and nothing is trashed. */
|
|
6942
7842
|
409: {
|
|
6943
7843
|
headers: {
|
|
6944
7844
|
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
@@ -6951,7 +7851,7 @@ interface operations {
|
|
|
6951
7851
|
[name: string]: unknown;
|
|
6952
7852
|
};
|
|
6953
7853
|
content: {
|
|
6954
|
-
"application/json": components["schemas"]["
|
|
7854
|
+
"application/json": components["schemas"]["TrashPlanChangedRefusal"] | components["schemas"]["InstanceChangedRefusal"] | components["schemas"]["IdempotencyKeyInFlightRefusal"];
|
|
6955
7855
|
};
|
|
6956
7856
|
};
|
|
6957
7857
|
/** @description `request_too_large`: the request body is larger than this instance accepts. */
|
|
@@ -10994,7 +11894,10 @@ interface operations {
|
|
|
10994
11894
|
};
|
|
10995
11895
|
addItemTags: {
|
|
10996
11896
|
parameters: {
|
|
10997
|
-
query?:
|
|
11897
|
+
query?: {
|
|
11898
|
+
/** @description The item version you read. If it differs, no tag changes. Leave it out to change the tags of the item as it is. */
|
|
11899
|
+
version?: number;
|
|
11900
|
+
};
|
|
10998
11901
|
header?: {
|
|
10999
11902
|
/** @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. */
|
|
11000
11903
|
"Idempotency-Key"?: string;
|
|
@@ -11097,7 +12000,7 @@ interface operations {
|
|
|
11097
12000
|
"application/json": components["schemas"]["ItemNotFoundRefusal"];
|
|
11098
12001
|
};
|
|
11099
12002
|
};
|
|
11100
|
-
/** @description `
|
|
12003
|
+
/** @description `version_conflict`: `version` differs from the item. `current` is the item now; no tag changed. */
|
|
11101
12004
|
409: {
|
|
11102
12005
|
headers: {
|
|
11103
12006
|
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
@@ -11110,7 +12013,7 @@ interface operations {
|
|
|
11110
12013
|
[name: string]: unknown;
|
|
11111
12014
|
};
|
|
11112
12015
|
content: {
|
|
11113
|
-
"application/json": components["schemas"]["InstanceChangedRefusal"] | components["schemas"]["IdempotencyKeyInFlightRefusal"];
|
|
12016
|
+
"application/json": components["schemas"]["ItemStaleVersion"] | components["schemas"]["InstanceChangedRefusal"] | components["schemas"]["IdempotencyKeyInFlightRefusal"];
|
|
11114
12017
|
};
|
|
11115
12018
|
};
|
|
11116
12019
|
/** @description `request_too_large`: the request body is larger than this instance accepts. */
|
|
@@ -11213,7 +12116,10 @@ interface operations {
|
|
|
11213
12116
|
};
|
|
11214
12117
|
removeItemTag: {
|
|
11215
12118
|
parameters: {
|
|
11216
|
-
query?:
|
|
12119
|
+
query?: {
|
|
12120
|
+
/** @description The item version you read. If it differs, no tag changes. Leave it out to change the tags of the item as it is. */
|
|
12121
|
+
version?: number;
|
|
12122
|
+
};
|
|
11217
12123
|
header?: {
|
|
11218
12124
|
/** @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. */
|
|
11219
12125
|
"Idempotency-Key"?: string;
|
|
@@ -11310,7 +12216,7 @@ interface operations {
|
|
|
11310
12216
|
"application/json": components["schemas"]["ItemNotFoundRefusal"];
|
|
11311
12217
|
};
|
|
11312
12218
|
};
|
|
11313
|
-
/** @description `
|
|
12219
|
+
/** @description `version_conflict`: `version` differs from the item. `current` is the item now; no tag changed. */
|
|
11314
12220
|
409: {
|
|
11315
12221
|
headers: {
|
|
11316
12222
|
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
@@ -11323,7 +12229,7 @@ interface operations {
|
|
|
11323
12229
|
[name: string]: unknown;
|
|
11324
12230
|
};
|
|
11325
12231
|
content: {
|
|
11326
|
-
"application/json": components["schemas"]["InstanceChangedRefusal"] | components["schemas"]["IdempotencyKeyInFlightRefusal"];
|
|
12232
|
+
"application/json": components["schemas"]["ItemStaleVersion"] | components["schemas"]["InstanceChangedRefusal"] | components["schemas"]["IdempotencyKeyInFlightRefusal"];
|
|
11327
12233
|
};
|
|
11328
12234
|
};
|
|
11329
12235
|
/** @description `request_too_large`: the request body is larger than this instance accepts. */
|
|
@@ -13910,6 +14816,8 @@ interface operations {
|
|
|
13910
14816
|
type?: string;
|
|
13911
14817
|
/** @description Only return items in this lifecycle state. Without it, you get `active` items. `any` searches every state, but trashed items are never searchable. */
|
|
13912
14818
|
state?: string;
|
|
14819
|
+
/** @description Only return items stamped with this source. */
|
|
14820
|
+
source?: string;
|
|
13913
14821
|
/** @description Only return items in this tier. Omit it or send `all` for both tiers. */
|
|
13914
14822
|
tier?: "library" | "feed" | "all";
|
|
13915
14823
|
/** @description Comma-separated extras. `system` also returns `system.*` items, which are left out by default. A `system.` type filter does the same. */
|
|
@@ -13922,10 +14830,18 @@ interface operations {
|
|
|
13922
14830
|
cursor?: string;
|
|
13923
14831
|
/** @description A filter expression, as on `GET /items`. A term naming an edge type, `edge[<type>]` or `backref[<type>]`, matches by relationship and needs read on that edge type. */
|
|
13924
14832
|
filter?: string;
|
|
13925
|
-
/** @description
|
|
14833
|
+
/** @description How to order the results: `relevance` (the default), `created_at`, `updated_at`, `occurred_at` or `properties.<field>`, such as `properties.due_at`. Items without a value for a property come last. */
|
|
14834
|
+
sort?: string;
|
|
14835
|
+
/** @description Sort direction. Defaults to `desc`: best match first under `relevance`, newest or largest first otherwise. Under `relevance`, `asc` puts the worst match first. */
|
|
14836
|
+
direction?: "asc" | "desc";
|
|
14837
|
+
/** @description Only return items whose own time (`occurred_at`, else `created_at`) is after this time. For the modification time, use `updated_after`. */
|
|
13926
14838
|
occurred_after?: string;
|
|
13927
|
-
/** @description Only return items whose own time (`occurred_at`, else `created_at`) is before this
|
|
14839
|
+
/** @description Only return items whose own time (`occurred_at`, else `created_at`) is before this time. */
|
|
13928
14840
|
occurred_before?: string;
|
|
14841
|
+
/** @description Only return items changed at or after this time. Items can share an instant, so the bound includes it. It doesn't change the ordering, so it works with any `sort`. */
|
|
14842
|
+
updated_after?: string;
|
|
14843
|
+
/** @description Only return items changed before this time. It doesn't change the ordering, so it works with any `sort`. */
|
|
14844
|
+
updated_before?: string;
|
|
13929
14845
|
};
|
|
13930
14846
|
header?: never;
|
|
13931
14847
|
path?: never;
|
|
@@ -13949,7 +14865,7 @@ interface operations {
|
|
|
13949
14865
|
};
|
|
13950
14866
|
/**
|
|
13951
14867
|
* @description - `missing_required_field`: `q` is missing.
|
|
13952
|
-
* - `validation_error`: a parameter is unknown or invalid, such as a `state` that isn't a lifecycle state or `any`, a time that isn't an instant, or a `cursor` from another search.
|
|
14868
|
+
* - `validation_error`: a parameter is unknown or invalid, such as a `state` that isn't a lifecycle state or `any`, a time that isn't an instant, or a `cursor` from another search or sort.
|
|
13953
14869
|
* - `unknown_type`: `type` is a concrete type that nothing registers.
|
|
13954
14870
|
*/
|
|
13955
14871
|
400: {
|
|
@@ -19917,15 +20833,141 @@ interface operations {
|
|
|
19917
20833
|
[name: string]: unknown;
|
|
19918
20834
|
};
|
|
19919
20835
|
content: {
|
|
19920
|
-
"application/json": components["schemas"]["ItemWithMetadata"];
|
|
20836
|
+
"application/json": components["schemas"]["ItemWithMetadata"];
|
|
20837
|
+
};
|
|
20838
|
+
};
|
|
20839
|
+
/**
|
|
20840
|
+
* @description - `validation_error`: a setting is malformed or undeclared, `details.errors[0].path` or `details.unknown_body_fields` names it.
|
|
20841
|
+
* - `missing_required_field`: `title` is missing. `details.field` names it.
|
|
20842
|
+
* - `unknown_type`: `query.types` names a type that isn't registered.
|
|
20843
|
+
*/
|
|
20844
|
+
400: {
|
|
20845
|
+
headers: {
|
|
20846
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
20847
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
20848
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
20849
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
20850
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
20851
|
+
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
20852
|
+
"Idempotency-Replayed": components["headers"]["Idempotency-Replayed"];
|
|
20853
|
+
[name: string]: unknown;
|
|
20854
|
+
};
|
|
20855
|
+
content: {
|
|
20856
|
+
"application/json": components["schemas"]["MissingRequiredFieldOrUnknownTypeOrValidationErrorRefusal"];
|
|
20857
|
+
};
|
|
20858
|
+
};
|
|
20859
|
+
/** @description `unauthorized`: the request has no credential, or its credential is not valid. */
|
|
20860
|
+
401: {
|
|
20861
|
+
headers: {
|
|
20862
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
20863
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
20864
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
20865
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
20866
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
20867
|
+
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
20868
|
+
[name: string]: unknown;
|
|
20869
|
+
};
|
|
20870
|
+
content: {
|
|
20871
|
+
"application/json": components["schemas"]["UnauthorizedRefusal"];
|
|
20872
|
+
};
|
|
20873
|
+
};
|
|
20874
|
+
/** @description - `type_not_permitted`: you don't have write on `system.view`. */
|
|
20875
|
+
403: {
|
|
20876
|
+
headers: {
|
|
20877
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
20878
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
20879
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
20880
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
20881
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
20882
|
+
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
20883
|
+
[name: string]: unknown;
|
|
20884
|
+
};
|
|
20885
|
+
content: {
|
|
20886
|
+
"application/json": components["schemas"]["TypeNotPermittedRefusal"];
|
|
20887
|
+
};
|
|
20888
|
+
};
|
|
20889
|
+
/** @description `instance_changed`: `X-Marfa-Instance-Id` names another instance. Nothing is written. Rebuild the working copy from the instance at this address. */
|
|
20890
|
+
409: {
|
|
20891
|
+
headers: {
|
|
20892
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
20893
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
20894
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
20895
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
20896
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
20897
|
+
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
20898
|
+
"Idempotency-Replayed": components["headers"]["Idempotency-Replayed"];
|
|
20899
|
+
[name: string]: unknown;
|
|
20900
|
+
};
|
|
20901
|
+
content: {
|
|
20902
|
+
"application/json": components["schemas"]["InstanceChangedRefusal"] | components["schemas"]["IdempotencyKeyInFlightRefusal"];
|
|
20903
|
+
};
|
|
20904
|
+
};
|
|
20905
|
+
/** @description `request_too_large`: the request body is larger than this instance accepts. */
|
|
20906
|
+
413: {
|
|
20907
|
+
headers: {
|
|
20908
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
20909
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
20910
|
+
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
20911
|
+
[name: string]: unknown;
|
|
20912
|
+
};
|
|
20913
|
+
content: {
|
|
20914
|
+
"application/json": components["schemas"]["RequestTooLargeRefusal"];
|
|
20915
|
+
};
|
|
20916
|
+
};
|
|
20917
|
+
/**
|
|
20918
|
+
* @description - `idempotency_key_reused`: the key was first used for a different request. Nothing is written.
|
|
20919
|
+
* - `idempotency_result_not_retained`: the first response was too large to keep, so Marfa can't replay it. The write isn't repeated.
|
|
20920
|
+
*/
|
|
20921
|
+
422: {
|
|
20922
|
+
headers: {
|
|
20923
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
20924
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
20925
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
20926
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
20927
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
20928
|
+
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
20929
|
+
"Idempotency-Replayed": components["headers"]["Idempotency-Replayed"];
|
|
20930
|
+
[name: string]: unknown;
|
|
20931
|
+
};
|
|
20932
|
+
content: {
|
|
20933
|
+
"application/json": components["schemas"]["IdempotencyKeyReusedOrIdempotencyResultNotRetainedRefusal"];
|
|
20934
|
+
};
|
|
20935
|
+
};
|
|
20936
|
+
/** @description `rate_limited`: you sent too many requests. Wait for the number of seconds in `Retry-After`, then try again. */
|
|
20937
|
+
429: {
|
|
20938
|
+
headers: {
|
|
20939
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
20940
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
20941
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
20942
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
20943
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
20944
|
+
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
20945
|
+
"Retry-After": components["headers"]["Retry-After"];
|
|
20946
|
+
"Idempotency-Replayed": components["headers"]["Idempotency-Replayed"];
|
|
20947
|
+
[name: string]: unknown;
|
|
20948
|
+
};
|
|
20949
|
+
content: {
|
|
20950
|
+
"application/json": components["schemas"]["RateLimitedRefusal"];
|
|
20951
|
+
};
|
|
20952
|
+
};
|
|
20953
|
+
/** @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. */
|
|
20954
|
+
500: {
|
|
20955
|
+
headers: {
|
|
20956
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
20957
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
20958
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
20959
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
20960
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
20961
|
+
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
20962
|
+
"Idempotency-Replayed": components["headers"]["Idempotency-Replayed"];
|
|
20963
|
+
[name: string]: unknown;
|
|
20964
|
+
};
|
|
20965
|
+
content: {
|
|
20966
|
+
"application/json": components["schemas"]["InternalErrorRefusal"];
|
|
19921
20967
|
};
|
|
19922
20968
|
};
|
|
19923
|
-
/**
|
|
19924
|
-
|
|
19925
|
-
* - `missing_required_field`: `title` is missing. `details.field` names it.
|
|
19926
|
-
* - `unknown_type`: `query.types` names a type that isn't registered.
|
|
19927
|
-
*/
|
|
19928
|
-
400: {
|
|
20969
|
+
/** @description `write_contention`: the database was busy, and Marfa couldn't complete the request in time. Nothing changed. Try the request again. */
|
|
20970
|
+
503: {
|
|
19929
20971
|
headers: {
|
|
19930
20972
|
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
19931
20973
|
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
@@ -19937,11 +20979,11 @@ interface operations {
|
|
|
19937
20979
|
[name: string]: unknown;
|
|
19938
20980
|
};
|
|
19939
20981
|
content: {
|
|
19940
|
-
"application/json": components["schemas"]["
|
|
20982
|
+
"application/json": components["schemas"]["WriteContentionRefusal"];
|
|
19941
20983
|
};
|
|
19942
20984
|
};
|
|
19943
|
-
/** @description `
|
|
19944
|
-
|
|
20985
|
+
/** @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. */
|
|
20986
|
+
507: {
|
|
19945
20987
|
headers: {
|
|
19946
20988
|
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
19947
20989
|
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
@@ -19949,29 +20991,52 @@ interface operations {
|
|
|
19949
20991
|
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
19950
20992
|
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
19951
20993
|
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
20994
|
+
"Idempotency-Replayed": components["headers"]["Idempotency-Replayed"];
|
|
19952
20995
|
[name: string]: unknown;
|
|
19953
20996
|
};
|
|
19954
20997
|
content: {
|
|
19955
|
-
"application/json": components["schemas"]["
|
|
20998
|
+
"application/json": components["schemas"]["InsufficientStorageRefusal"];
|
|
19956
20999
|
};
|
|
19957
21000
|
};
|
|
19958
|
-
|
|
19959
|
-
|
|
21001
|
+
};
|
|
21002
|
+
};
|
|
21003
|
+
listViewItems: {
|
|
21004
|
+
parameters: {
|
|
21005
|
+
query?: {
|
|
21006
|
+
/** @description The maximum number of results to return. */
|
|
21007
|
+
limit?: number;
|
|
21008
|
+
/** @description The `next_cursor` from the previous page. Leave it out to get the first page. */
|
|
21009
|
+
cursor?: string;
|
|
21010
|
+
};
|
|
21011
|
+
header?: never;
|
|
21012
|
+
path: {
|
|
21013
|
+
/** @description The ID of the view. */
|
|
21014
|
+
id: string;
|
|
21015
|
+
};
|
|
21016
|
+
cookie?: never;
|
|
21017
|
+
};
|
|
21018
|
+
requestBody?: never;
|
|
21019
|
+
responses: {
|
|
21020
|
+
/** @description Returns a page of items. */
|
|
21021
|
+
200: {
|
|
19960
21022
|
headers: {
|
|
19961
21023
|
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
19962
21024
|
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
19963
21025
|
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
19964
21026
|
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
19965
21027
|
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
19966
|
-
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
19967
21028
|
[name: string]: unknown;
|
|
19968
21029
|
};
|
|
19969
21030
|
content: {
|
|
19970
|
-
"application/json": components["schemas"]["
|
|
21031
|
+
"application/json": components["schemas"]["ViewItemPage"];
|
|
19971
21032
|
};
|
|
19972
21033
|
};
|
|
19973
|
-
/**
|
|
19974
|
-
|
|
21034
|
+
/**
|
|
21035
|
+
* @description - `validation_error`: `limit` is out of range, `cursor` came from another view or an earlier version of it, or the view holds a setting that can't be listed.
|
|
21036
|
+
* - `invalid_id`: the ID is invalid.
|
|
21037
|
+
* - `invalid_transition`: the view is revoked.
|
|
21038
|
+
*/
|
|
21039
|
+
400: {
|
|
19975
21040
|
headers: {
|
|
19976
21041
|
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
19977
21042
|
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
@@ -19979,30 +21044,32 @@ interface operations {
|
|
|
19979
21044
|
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
19980
21045
|
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
19981
21046
|
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
19982
|
-
"Idempotency-Replayed": components["headers"]["Idempotency-Replayed"];
|
|
19983
21047
|
[name: string]: unknown;
|
|
19984
21048
|
};
|
|
19985
21049
|
content: {
|
|
19986
|
-
"application/json": components["schemas"]["
|
|
21050
|
+
"application/json": components["schemas"]["InvalidIdOrInvalidTransitionOrValidationErrorRefusal"];
|
|
19987
21051
|
};
|
|
19988
21052
|
};
|
|
19989
|
-
/** @description `
|
|
19990
|
-
|
|
21053
|
+
/** @description `unauthorized`: the request has no credential, or its credential is not valid. */
|
|
21054
|
+
401: {
|
|
19991
21055
|
headers: {
|
|
19992
21056
|
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
19993
21057
|
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
21058
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
21059
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
21060
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
19994
21061
|
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
19995
21062
|
[name: string]: unknown;
|
|
19996
21063
|
};
|
|
19997
21064
|
content: {
|
|
19998
|
-
"application/json": components["schemas"]["
|
|
21065
|
+
"application/json": components["schemas"]["UnauthorizedRefusal"];
|
|
19999
21066
|
};
|
|
20000
21067
|
};
|
|
20001
21068
|
/**
|
|
20002
|
-
* @description - `
|
|
20003
|
-
* - `
|
|
21069
|
+
* @description - `type_not_permitted`: your credential reaches no type.
|
|
21070
|
+
* - `edge_permission_denied`: the view's filter names an edge type, or its `beneath` needs `parent-of`, that you can't read.
|
|
20004
21071
|
*/
|
|
20005
|
-
|
|
21072
|
+
403: {
|
|
20006
21073
|
headers: {
|
|
20007
21074
|
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
20008
21075
|
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
@@ -20010,11 +21077,25 @@ interface operations {
|
|
|
20010
21077
|
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
20011
21078
|
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
20012
21079
|
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
20013
|
-
"Idempotency-Replayed": components["headers"]["Idempotency-Replayed"];
|
|
20014
21080
|
[name: string]: unknown;
|
|
20015
21081
|
};
|
|
20016
21082
|
content: {
|
|
20017
|
-
"application/json": components["schemas"]["
|
|
21083
|
+
"application/json": components["schemas"]["EdgePermissionDeniedOrTypeNotPermittedRefusal"];
|
|
21084
|
+
};
|
|
21085
|
+
};
|
|
21086
|
+
/** @description - `item_not_found`: no `system.view` you can read has this ID. */
|
|
21087
|
+
404: {
|
|
21088
|
+
headers: {
|
|
21089
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
21090
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
21091
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
21092
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
21093
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
21094
|
+
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
21095
|
+
[name: string]: unknown;
|
|
21096
|
+
};
|
|
21097
|
+
content: {
|
|
21098
|
+
"application/json": components["schemas"]["ItemNotFoundRefusal"];
|
|
20018
21099
|
};
|
|
20019
21100
|
};
|
|
20020
21101
|
/** @description `rate_limited`: you sent too many requests. Wait for the number of seconds in `Retry-After`, then try again. */
|
|
@@ -20027,7 +21108,6 @@ interface operations {
|
|
|
20027
21108
|
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
20028
21109
|
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
20029
21110
|
"Retry-After": components["headers"]["Retry-After"];
|
|
20030
|
-
"Idempotency-Replayed": components["headers"]["Idempotency-Replayed"];
|
|
20031
21111
|
[name: string]: unknown;
|
|
20032
21112
|
};
|
|
20033
21113
|
content: {
|
|
@@ -20043,7 +21123,6 @@ interface operations {
|
|
|
20043
21123
|
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
20044
21124
|
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
20045
21125
|
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
20046
|
-
"Idempotency-Replayed": components["headers"]["Idempotency-Replayed"];
|
|
20047
21126
|
[name: string]: unknown;
|
|
20048
21127
|
};
|
|
20049
21128
|
content: {
|
|
@@ -20059,7 +21138,6 @@ interface operations {
|
|
|
20059
21138
|
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
20060
21139
|
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
20061
21140
|
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
20062
|
-
"Idempotency-Replayed": components["headers"]["Idempotency-Replayed"];
|
|
20063
21141
|
[name: string]: unknown;
|
|
20064
21142
|
};
|
|
20065
21143
|
content: {
|
|
@@ -20075,7 +21153,6 @@ interface operations {
|
|
|
20075
21153
|
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
20076
21154
|
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
20077
21155
|
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
20078
|
-
"Idempotency-Replayed": components["headers"]["Idempotency-Replayed"];
|
|
20079
21156
|
[name: string]: unknown;
|
|
20080
21157
|
};
|
|
20081
21158
|
content: {
|
|
@@ -27965,6 +29042,122 @@ interface operations {
|
|
|
27965
29042
|
};
|
|
27966
29043
|
};
|
|
27967
29044
|
};
|
|
29045
|
+
getOverview: {
|
|
29046
|
+
parameters: {
|
|
29047
|
+
query?: never;
|
|
29048
|
+
header?: never;
|
|
29049
|
+
path?: never;
|
|
29050
|
+
cookie?: never;
|
|
29051
|
+
};
|
|
29052
|
+
requestBody?: never;
|
|
29053
|
+
responses: {
|
|
29054
|
+
/** @description Returns the overview. A credential that reaches nothing gets the instance and credential only. */
|
|
29055
|
+
200: {
|
|
29056
|
+
headers: {
|
|
29057
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
29058
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
29059
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
29060
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
29061
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
29062
|
+
[name: string]: unknown;
|
|
29063
|
+
};
|
|
29064
|
+
content: {
|
|
29065
|
+
"application/json": components["schemas"]["Overview"];
|
|
29066
|
+
};
|
|
29067
|
+
};
|
|
29068
|
+
/** @description - `validation_error`: the query has a parameter this endpoint doesn't take. */
|
|
29069
|
+
400: {
|
|
29070
|
+
headers: {
|
|
29071
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
29072
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
29073
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
29074
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
29075
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
29076
|
+
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
29077
|
+
[name: string]: unknown;
|
|
29078
|
+
};
|
|
29079
|
+
content: {
|
|
29080
|
+
"application/json": components["schemas"]["ValidationErrorRefusal"];
|
|
29081
|
+
};
|
|
29082
|
+
};
|
|
29083
|
+
/** @description `unauthorized`: the request has no credential, or its credential is not valid. */
|
|
29084
|
+
401: {
|
|
29085
|
+
headers: {
|
|
29086
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
29087
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
29088
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
29089
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
29090
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
29091
|
+
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
29092
|
+
[name: string]: unknown;
|
|
29093
|
+
};
|
|
29094
|
+
content: {
|
|
29095
|
+
"application/json": components["schemas"]["UnauthorizedRefusal"];
|
|
29096
|
+
};
|
|
29097
|
+
};
|
|
29098
|
+
/** @description `rate_limited`: you sent too many requests. Wait for the number of seconds in `Retry-After`, then try again. */
|
|
29099
|
+
429: {
|
|
29100
|
+
headers: {
|
|
29101
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
29102
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
29103
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
29104
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
29105
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
29106
|
+
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
29107
|
+
"Retry-After": components["headers"]["Retry-After"];
|
|
29108
|
+
[name: string]: unknown;
|
|
29109
|
+
};
|
|
29110
|
+
content: {
|
|
29111
|
+
"application/json": components["schemas"]["RateLimitedRefusal"];
|
|
29112
|
+
};
|
|
29113
|
+
};
|
|
29114
|
+
/** @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. */
|
|
29115
|
+
500: {
|
|
29116
|
+
headers: {
|
|
29117
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
29118
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
29119
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
29120
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
29121
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
29122
|
+
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
29123
|
+
[name: string]: unknown;
|
|
29124
|
+
};
|
|
29125
|
+
content: {
|
|
29126
|
+
"application/json": components["schemas"]["InternalErrorRefusal"];
|
|
29127
|
+
};
|
|
29128
|
+
};
|
|
29129
|
+
/** @description `write_contention`: the database was busy, and Marfa couldn't complete the request in time. Nothing changed. Try the request again. */
|
|
29130
|
+
503: {
|
|
29131
|
+
headers: {
|
|
29132
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
29133
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
29134
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
29135
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
29136
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
29137
|
+
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
29138
|
+
[name: string]: unknown;
|
|
29139
|
+
};
|
|
29140
|
+
content: {
|
|
29141
|
+
"application/json": components["schemas"]["WriteContentionRefusal"];
|
|
29142
|
+
};
|
|
29143
|
+
};
|
|
29144
|
+
/** @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. */
|
|
29145
|
+
507: {
|
|
29146
|
+
headers: {
|
|
29147
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
29148
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
29149
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
29150
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
29151
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
29152
|
+
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
29153
|
+
[name: string]: unknown;
|
|
29154
|
+
};
|
|
29155
|
+
content: {
|
|
29156
|
+
"application/json": components["schemas"]["InsufficientStorageRefusal"];
|
|
29157
|
+
};
|
|
29158
|
+
};
|
|
29159
|
+
};
|
|
29160
|
+
};
|
|
27968
29161
|
getConfig: {
|
|
27969
29162
|
parameters: {
|
|
27970
29163
|
query?: never;
|
|
@@ -28510,6 +29703,64 @@ interface operations {
|
|
|
28510
29703
|
};
|
|
28511
29704
|
};
|
|
28512
29705
|
};
|
|
29706
|
+
getHealth: {
|
|
29707
|
+
parameters: {
|
|
29708
|
+
query?: never;
|
|
29709
|
+
header?: never;
|
|
29710
|
+
path?: never;
|
|
29711
|
+
cookie?: never;
|
|
29712
|
+
};
|
|
29713
|
+
requestBody?: never;
|
|
29714
|
+
responses: {
|
|
29715
|
+
/** @description Returns the health. `status` is `ok` or `degraded`. */
|
|
29716
|
+
200: {
|
|
29717
|
+
headers: {
|
|
29718
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
29719
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
29720
|
+
[name: string]: unknown;
|
|
29721
|
+
};
|
|
29722
|
+
content: {
|
|
29723
|
+
"application/json": components["schemas"]["Health"];
|
|
29724
|
+
};
|
|
29725
|
+
};
|
|
29726
|
+
/** @description - `validation_error`: the query has a parameter this endpoint doesn't take. */
|
|
29727
|
+
400: {
|
|
29728
|
+
headers: {
|
|
29729
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
29730
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
29731
|
+
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
29732
|
+
[name: string]: unknown;
|
|
29733
|
+
};
|
|
29734
|
+
content: {
|
|
29735
|
+
"application/json": components["schemas"]["ValidationErrorRefusal"];
|
|
29736
|
+
};
|
|
29737
|
+
};
|
|
29738
|
+
/** @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. */
|
|
29739
|
+
500: {
|
|
29740
|
+
headers: {
|
|
29741
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
29742
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
29743
|
+
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
29744
|
+
[name: string]: unknown;
|
|
29745
|
+
};
|
|
29746
|
+
content: {
|
|
29747
|
+
"application/json": components["schemas"]["InternalErrorRefusal"];
|
|
29748
|
+
};
|
|
29749
|
+
};
|
|
29750
|
+
/** @description Returns the health when `status` is `down`: a component refused. */
|
|
29751
|
+
503: {
|
|
29752
|
+
headers: {
|
|
29753
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
29754
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
29755
|
+
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
29756
|
+
[name: string]: unknown;
|
|
29757
|
+
};
|
|
29758
|
+
content: {
|
|
29759
|
+
"application/json": components["schemas"]["Health"];
|
|
29760
|
+
};
|
|
29761
|
+
};
|
|
29762
|
+
};
|
|
29763
|
+
};
|
|
28513
29764
|
listAttention: {
|
|
28514
29765
|
parameters: {
|
|
28515
29766
|
query?: never;
|