@withmarfa/client 0.0.16 → 0.0.18
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 +158 -65
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1383,7 +1383,7 @@ interface paths {
|
|
|
1383
1383
|
put?: never;
|
|
1384
1384
|
/**
|
|
1385
1385
|
* Restore from an archive
|
|
1386
|
-
* @description Restores an exported archive atomically and returns counts of written and skipped records. Other writes wait until it finishes. Requires local authority or the owner, authenticated within five minutes.
|
|
1386
|
+
* @description Restores an exported archive atomically and returns counts of written and skipped records. Other writes wait until it finishes. Requires local authority or the owner, authenticated within five minutes before the request starts.
|
|
1387
1387
|
*/
|
|
1388
1388
|
post: operations["restoreArchive"];
|
|
1389
1389
|
delete?: never;
|
|
@@ -1447,7 +1447,7 @@ interface paths {
|
|
|
1447
1447
|
put?: never;
|
|
1448
1448
|
/**
|
|
1449
1449
|
* Claim the instance
|
|
1450
|
-
* @description Creates the one owner using a machine-issued setup code or setup-only browser session.
|
|
1450
|
+
* @description Creates the one owner using a machine-issued setup code or setup-only browser session. A claimed instance never reopens setup. A claim from the instance's own origin, which the setup page sends, also signs the owner in with a session cookie.
|
|
1451
1451
|
*/
|
|
1452
1452
|
post: operations["createOwner"];
|
|
1453
1453
|
delete?: never;
|
|
@@ -1492,7 +1492,7 @@ interface paths {
|
|
|
1492
1492
|
post?: never;
|
|
1493
1493
|
/**
|
|
1494
1494
|
* End a sign-in
|
|
1495
|
-
* @description Ends a sign-in at once: it can't make another request
|
|
1495
|
+
* @description Ends a sign-in at once: it can't refresh or make another request. An app's keys stay unless `revoke_keys` is `true`. Needs the owner's browser session or the local command. A browser over five minutes old can end only itself, without `revoke_keys`.
|
|
1496
1496
|
*/
|
|
1497
1497
|
delete: operations["endSignIn"];
|
|
1498
1498
|
options?: never;
|
|
@@ -1675,7 +1675,7 @@ interface paths {
|
|
|
1675
1675
|
head?: never;
|
|
1676
1676
|
/**
|
|
1677
1677
|
* Update a webhook
|
|
1678
|
-
* @description Updates a webhook and returns it. Fields you leave out keep their values.
|
|
1678
|
+
* @description Updates a webhook and returns it. Fields you leave out keep their values. Marfa cancels a pending delivery if you change `url`, set `active` to `false`, or change `events` or `type_filter` to exclude it. To change the secret, create a new webhook.
|
|
1679
1679
|
*/
|
|
1680
1680
|
patch: operations["updateWebhook"];
|
|
1681
1681
|
trace?: never;
|
|
@@ -2632,14 +2632,14 @@ interface components {
|
|
|
2632
2632
|
error?: components["schemas"]["BulkEntryError"] & unknown;
|
|
2633
2633
|
};
|
|
2634
2634
|
/** @description An error response. */
|
|
2635
|
-
|
|
2635
|
+
BulkAtomicRollbackOrInvalidPropertiesOrMissingRequiredFieldOrValidationErrorRefusal: {
|
|
2636
2636
|
/** @description What went wrong. */
|
|
2637
2637
|
error: {
|
|
2638
2638
|
/**
|
|
2639
2639
|
* @description A machine-readable code for the error. Use it in your logic.
|
|
2640
2640
|
* @enum {string}
|
|
2641
2641
|
*/
|
|
2642
|
-
code: "bulk_atomic_rollback" | "missing_required_field" | "validation_error";
|
|
2642
|
+
code: "bulk_atomic_rollback" | "invalid_properties" | "missing_required_field" | "validation_error";
|
|
2643
2643
|
/** @description A description of the error for a person to read. It can change, so don't match on it. */
|
|
2644
2644
|
message: string;
|
|
2645
2645
|
/** @description More about the error, such as the field it concerns. Each code defines its own details. */
|
|
@@ -2706,14 +2706,14 @@ interface components {
|
|
|
2706
2706
|
result?: components["schemas"]["BulkActionResult"] & unknown;
|
|
2707
2707
|
};
|
|
2708
2708
|
/** @description An error response. */
|
|
2709
|
-
|
|
2709
|
+
BulkCapExceededOrBulkConfirmationRequiredOrInvalidPropertiesOrMissingRequiredFieldOrValidationErrorRefusal: {
|
|
2710
2710
|
/** @description What went wrong. */
|
|
2711
2711
|
error: {
|
|
2712
2712
|
/**
|
|
2713
2713
|
* @description A machine-readable code for the error. Use it in your logic.
|
|
2714
2714
|
* @enum {string}
|
|
2715
2715
|
*/
|
|
2716
|
-
code: "bulk_cap_exceeded" | "bulk_confirmation_required" | "missing_required_field" | "validation_error";
|
|
2716
|
+
code: "bulk_cap_exceeded" | "bulk_confirmation_required" | "invalid_properties" | "missing_required_field" | "validation_error";
|
|
2717
2717
|
/** @description A description of the error for a person to read. It can change, so don't match on it. */
|
|
2718
2718
|
message: string;
|
|
2719
2719
|
/** @description More about the error, such as the field it concerns. Each code defines its own details. */
|
|
@@ -2808,6 +2808,23 @@ interface components {
|
|
|
2808
2808
|
};
|
|
2809
2809
|
};
|
|
2810
2810
|
};
|
|
2811
|
+
/** @description An error response. */
|
|
2812
|
+
InvalidIdOrInvalidPropertiesOrMissingRequiredFieldOrValidationErrorRefusal: {
|
|
2813
|
+
/** @description What went wrong. */
|
|
2814
|
+
error: {
|
|
2815
|
+
/**
|
|
2816
|
+
* @description A machine-readable code for the error. Use it in your logic.
|
|
2817
|
+
* @enum {string}
|
|
2818
|
+
*/
|
|
2819
|
+
code: "invalid_id" | "invalid_properties" | "missing_required_field" | "validation_error";
|
|
2820
|
+
/** @description A description of the error for a person to read. It can change, so don't match on it. */
|
|
2821
|
+
message: string;
|
|
2822
|
+
/** @description More about the error, such as the field it concerns. Each code defines its own details. */
|
|
2823
|
+
details?: {
|
|
2824
|
+
[key: string]: unknown;
|
|
2825
|
+
};
|
|
2826
|
+
};
|
|
2827
|
+
};
|
|
2811
2828
|
/** @description One edge. */
|
|
2812
2829
|
EdgeResponse: {
|
|
2813
2830
|
edge: components["schemas"]["Edge"] & unknown;
|
|
@@ -3411,6 +3428,23 @@ interface components {
|
|
|
3411
3428
|
/** @description How many active items you can read carry the tag. */
|
|
3412
3429
|
count: number;
|
|
3413
3430
|
};
|
|
3431
|
+
/** @description An error response. */
|
|
3432
|
+
RequestTimeoutRefusal: {
|
|
3433
|
+
/** @description What went wrong. */
|
|
3434
|
+
error: {
|
|
3435
|
+
/**
|
|
3436
|
+
* @description A machine-readable code for the error. Use it in your logic.
|
|
3437
|
+
* @enum {string}
|
|
3438
|
+
*/
|
|
3439
|
+
code: "request_timeout";
|
|
3440
|
+
/** @description A description of the error for a person to read. It can change, so don't match on it. */
|
|
3441
|
+
message: string;
|
|
3442
|
+
/** @description More about the error, such as the field it concerns. Each code defines its own details. */
|
|
3443
|
+
details?: {
|
|
3444
|
+
[key: string]: unknown;
|
|
3445
|
+
};
|
|
3446
|
+
};
|
|
3447
|
+
};
|
|
3414
3448
|
/** @description A page holding every orphan. */
|
|
3415
3449
|
BlobOrphanPage: {
|
|
3416
3450
|
/** @description Every orphan. */
|
|
@@ -3490,6 +3524,23 @@ interface components {
|
|
|
3490
3524
|
};
|
|
3491
3525
|
};
|
|
3492
3526
|
};
|
|
3527
|
+
/** @description An error response. */
|
|
3528
|
+
BlobStoreUnavailableOrWriteContentionRefusal: {
|
|
3529
|
+
/** @description What went wrong. */
|
|
3530
|
+
error: {
|
|
3531
|
+
/**
|
|
3532
|
+
* @description A machine-readable code for the error. Use it in your logic.
|
|
3533
|
+
* @enum {string}
|
|
3534
|
+
*/
|
|
3535
|
+
code: "blob_store_unavailable" | "write_contention";
|
|
3536
|
+
/** @description A description of the error for a person to read. It can change, so don't match on it. */
|
|
3537
|
+
message: string;
|
|
3538
|
+
/** @description More about the error, such as the field it concerns. Each code defines its own details. */
|
|
3539
|
+
details?: {
|
|
3540
|
+
[key: string]: unknown;
|
|
3541
|
+
};
|
|
3542
|
+
};
|
|
3543
|
+
};
|
|
3493
3544
|
/** @description A page holding every location. */
|
|
3494
3545
|
BlobLocationPage: {
|
|
3495
3546
|
/** @description Every location. */
|
|
@@ -3879,6 +3930,23 @@ interface components {
|
|
|
3879
3930
|
/** @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. */
|
|
3880
3931
|
next_cursor: string | null;
|
|
3881
3932
|
};
|
|
3933
|
+
/** @description An error response. */
|
|
3934
|
+
InvalidPropertiesOrMissingRequiredFieldOrUnknownTypeOrValidationErrorRefusal: {
|
|
3935
|
+
/** @description What went wrong. */
|
|
3936
|
+
error: {
|
|
3937
|
+
/**
|
|
3938
|
+
* @description A machine-readable code for the error. Use it in your logic.
|
|
3939
|
+
* @enum {string}
|
|
3940
|
+
*/
|
|
3941
|
+
code: "invalid_properties" | "missing_required_field" | "unknown_type" | "validation_error";
|
|
3942
|
+
/** @description A description of the error for a person to read. It can change, so don't match on it. */
|
|
3943
|
+
message: string;
|
|
3944
|
+
/** @description More about the error, such as the field it concerns. Each code defines its own details. */
|
|
3945
|
+
details?: {
|
|
3946
|
+
[key: string]: unknown;
|
|
3947
|
+
};
|
|
3948
|
+
};
|
|
3949
|
+
};
|
|
3882
3950
|
/** @description Which items the folder holds. */
|
|
3883
3951
|
FolderSearch: {
|
|
3884
3952
|
/** @description The types the folder holds, each with its subtypes. Empty or absent holds every type the machine's key can read, except `system.*`. */
|
|
@@ -3896,7 +3964,7 @@ interface components {
|
|
|
3896
3964
|
/** @description The type a new file becomes if its frontmatter names none. */
|
|
3897
3965
|
type?: string;
|
|
3898
3966
|
tier?: components["schemas"]["Tier"] & unknown;
|
|
3899
|
-
/** @description Properties a new file takes where its frontmatter doesn't set them. A default for the type's body field is never taken: the file's body is that property. */
|
|
3967
|
+
/** @description Properties a new file takes where its frontmatter doesn't set them. A default for the type's body field is never taken: the file's body is that property. A whole number whose digits a 64-bit float doesn't keep is refused. */
|
|
3900
3968
|
properties?: {
|
|
3901
3969
|
[key: string]: unknown;
|
|
3902
3970
|
};
|
|
@@ -3915,14 +3983,14 @@ interface components {
|
|
|
3915
3983
|
fraction?: number;
|
|
3916
3984
|
};
|
|
3917
3985
|
/** @description An error response. */
|
|
3918
|
-
|
|
3986
|
+
InvalidIdOrInvalidPropertiesOrInvalidTransitionOrMissingRequiredFieldOrUnknownTypeOrValidationErrorRefusal: {
|
|
3919
3987
|
/** @description What went wrong. */
|
|
3920
3988
|
error: {
|
|
3921
3989
|
/**
|
|
3922
3990
|
* @description A machine-readable code for the error. Use it in your logic.
|
|
3923
3991
|
* @enum {string}
|
|
3924
3992
|
*/
|
|
3925
|
-
code: "invalid_id" | "invalid_transition" | "missing_required_field" | "unknown_type" | "validation_error";
|
|
3993
|
+
code: "invalid_id" | "invalid_properties" | "invalid_transition" | "missing_required_field" | "unknown_type" | "validation_error";
|
|
3926
3994
|
/** @description A description of the error for a person to read. It can change, so don't match on it. */
|
|
3927
3995
|
message: string;
|
|
3928
3996
|
/** @description More about the error, such as the field it concerns. Each code defines its own details. */
|
|
@@ -4250,23 +4318,6 @@ interface components {
|
|
|
4250
4318
|
};
|
|
4251
4319
|
};
|
|
4252
4320
|
};
|
|
4253
|
-
/** @description An error response. */
|
|
4254
|
-
BlobStoreUnavailableOrWriteContentionRefusal: {
|
|
4255
|
-
/** @description What went wrong. */
|
|
4256
|
-
error: {
|
|
4257
|
-
/**
|
|
4258
|
-
* @description A machine-readable code for the error. Use it in your logic.
|
|
4259
|
-
* @enum {string}
|
|
4260
|
-
*/
|
|
4261
|
-
code: "blob_store_unavailable" | "write_contention";
|
|
4262
|
-
/** @description A description of the error for a person to read. It can change, so don't match on it. */
|
|
4263
|
-
message: string;
|
|
4264
|
-
/** @description More about the error, such as the field it concerns. Each code defines its own details. */
|
|
4265
|
-
details?: {
|
|
4266
|
-
[key: string]: unknown;
|
|
4267
|
-
};
|
|
4268
|
-
};
|
|
4269
|
-
};
|
|
4270
4321
|
/** @description A page holding every stale type. */
|
|
4271
4322
|
DriftedPlatformTypePage: {
|
|
4272
4323
|
/** @description Every stale type. */
|
|
@@ -5211,7 +5262,7 @@ interface operations {
|
|
|
5211
5262
|
"application/json": {
|
|
5212
5263
|
/** @description The item's type identifier, such as `core.note`. */
|
|
5213
5264
|
type: string;
|
|
5214
|
-
/** @description The item's properties, checked against the type's schema.
|
|
5265
|
+
/** @description The item's properties, checked against the type's schema. Strict mode refuses an undeclared property as `invalid_properties` (`details.code` `unknown_property`). A whole number whose digits a 64-bit float doesn't keep is refused: send it as a string. */
|
|
5215
5266
|
properties?: {
|
|
5216
5267
|
[key: string]: unknown;
|
|
5217
5268
|
};
|
|
@@ -6056,7 +6107,7 @@ interface operations {
|
|
|
6056
6107
|
requestBody: {
|
|
6057
6108
|
content: {
|
|
6058
6109
|
"application/json": {
|
|
6059
|
-
/** @description The properties to write. They lay over the item's properties, or become all of them when `properties_mode` is `replace`.
|
|
6110
|
+
/** @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. */
|
|
6060
6111
|
properties?: {
|
|
6061
6112
|
[key: string]: unknown;
|
|
6062
6113
|
};
|
|
@@ -8173,7 +8224,7 @@ interface operations {
|
|
|
8173
8224
|
id?: string;
|
|
8174
8225
|
/** @description The item's type identifier, such as `core.note`. */
|
|
8175
8226
|
type: string;
|
|
8176
|
-
/** @description The item's properties, checked against the type's schema.
|
|
8227
|
+
/** @description The item's properties, checked against the type's schema. Strict mode refuses an undeclared property as `invalid_properties` (`details.code` `unknown_property`). A whole number whose digits a 64-bit float doesn't keep is refused: send it as a string. */
|
|
8177
8228
|
properties?: {
|
|
8178
8229
|
[key: string]: unknown;
|
|
8179
8230
|
};
|
|
@@ -8228,9 +8279,10 @@ interface operations {
|
|
|
8228
8279
|
};
|
|
8229
8280
|
};
|
|
8230
8281
|
/**
|
|
8231
|
-
* @description - `validation_error`: the body is malformed, has
|
|
8282
|
+
* @description - `validation_error`: the body is malformed, has an undeclared key or has over 5,000 entries.
|
|
8232
8283
|
* - `missing_required_field`: a required field is missing.
|
|
8233
|
-
* - `
|
|
8284
|
+
* - `invalid_properties`: an entry's `properties` hold a whole number a 64-bit float can't keep.
|
|
8285
|
+
* - `bulk_atomic_rollback`: an `atomic` entry was refused and nothing was written (`details.code`, `details.index`). The status is the refusal's own.
|
|
8234
8286
|
*/
|
|
8235
8287
|
400: {
|
|
8236
8288
|
headers: {
|
|
@@ -8243,7 +8295,7 @@ interface operations {
|
|
|
8243
8295
|
[name: string]: unknown;
|
|
8244
8296
|
};
|
|
8245
8297
|
content: {
|
|
8246
|
-
"application/json": components["schemas"]["
|
|
8298
|
+
"application/json": components["schemas"]["BulkAtomicRollbackOrInvalidPropertiesOrMissingRequiredFieldOrValidationErrorRefusal"];
|
|
8247
8299
|
};
|
|
8248
8300
|
};
|
|
8249
8301
|
/** @description `unauthorized`: the request has no credential, or its credential is not valid. */
|
|
@@ -8448,6 +8500,7 @@ interface operations {
|
|
|
8448
8500
|
enable_fanout?: boolean;
|
|
8449
8501
|
/** @enum {string} */
|
|
8450
8502
|
action: "update_properties";
|
|
8503
|
+
/** @description The properties to lay over each item's properties. A whole number whose digits a 64-bit float doesn't keep is refused: send it as a string. */
|
|
8451
8504
|
patch: {
|
|
8452
8505
|
[key: string]: unknown;
|
|
8453
8506
|
};
|
|
@@ -8495,8 +8548,9 @@ interface operations {
|
|
|
8495
8548
|
};
|
|
8496
8549
|
};
|
|
8497
8550
|
/**
|
|
8498
|
-
* @description - `validation_error`: the body
|
|
8499
|
-
* - `missing_required_field`: a field
|
|
8551
|
+
* @description - `validation_error`: the body is malformed or has an undeclared or empty field, or `update_tags` has no `add` or `remove`.
|
|
8552
|
+
* - `missing_required_field`: a needed field is missing.
|
|
8553
|
+
* - `invalid_properties`: `patch` holds a whole number a 64-bit float cannot keep.
|
|
8500
8554
|
* - `bulk_confirmation_required`: a purge without `confirm: "PURGE"`.
|
|
8501
8555
|
* - `bulk_cap_exceeded`: more items match than `max_items` allows.
|
|
8502
8556
|
*/
|
|
@@ -8512,7 +8566,7 @@ interface operations {
|
|
|
8512
8566
|
[name: string]: unknown;
|
|
8513
8567
|
};
|
|
8514
8568
|
content: {
|
|
8515
|
-
"application/json": components["schemas"]["
|
|
8569
|
+
"application/json": components["schemas"]["BulkCapExceededOrBulkConfirmationRequiredOrInvalidPropertiesOrMissingRequiredFieldOrValidationErrorRefusal"];
|
|
8516
8570
|
};
|
|
8517
8571
|
};
|
|
8518
8572
|
/** @description `unauthorized`: the request has no credential, or its credential is not valid. */
|
|
@@ -9907,6 +9961,7 @@ interface operations {
|
|
|
9907
9961
|
/**
|
|
9908
9962
|
* @description - `validation_error`: the body is not a JSON object, or its JSON is longer than 102,400 characters.
|
|
9909
9963
|
* - `invalid_id`: the ID is not a valid item ID.
|
|
9964
|
+
* - `invalid_properties`: the body holds a whole number a 64-bit float can't keep.
|
|
9910
9965
|
*/
|
|
9911
9966
|
400: {
|
|
9912
9967
|
headers: {
|
|
@@ -9920,7 +9975,7 @@ interface operations {
|
|
|
9920
9975
|
[name: string]: unknown;
|
|
9921
9976
|
};
|
|
9922
9977
|
content: {
|
|
9923
|
-
"application/json": components["schemas"]["
|
|
9978
|
+
"application/json": components["schemas"]["InvalidIdOrInvalidPropertiesOrMissingRequiredFieldOrValidationErrorRefusal"];
|
|
9924
9979
|
};
|
|
9925
9980
|
};
|
|
9926
9981
|
/** @description `unauthorized`: the request has no credential, or its credential is not valid. */
|
|
@@ -10829,7 +10884,7 @@ interface operations {
|
|
|
10829
10884
|
target_id: string;
|
|
10830
10885
|
/** @description The identifier of the edge type, such as `parent-of`. */
|
|
10831
10886
|
edge_type: string;
|
|
10832
|
-
/** @description The edge's properties. Leave it out for none. */
|
|
10887
|
+
/** @description The edge's properties. Leave it out for none. A whole number whose digits a 64-bit float doesn't keep is refused: send it as a string. */
|
|
10833
10888
|
properties?: {
|
|
10834
10889
|
[key: string]: unknown;
|
|
10835
10890
|
};
|
|
@@ -11463,7 +11518,7 @@ interface operations {
|
|
|
11463
11518
|
requestBody: {
|
|
11464
11519
|
content: {
|
|
11465
11520
|
"application/json": {
|
|
11466
|
-
/** @description Properties to merge over the edge's. Required unless an end moves. */
|
|
11521
|
+
/** @description Properties to merge over the edge's. Required unless an end moves. A whole number whose digits a 64-bit float doesn't keep is refused: send it as a string. */
|
|
11467
11522
|
properties?: {
|
|
11468
11523
|
[key: string]: unknown;
|
|
11469
11524
|
};
|
|
@@ -11703,7 +11758,7 @@ interface operations {
|
|
|
11703
11758
|
target_id: string;
|
|
11704
11759
|
/** @description The identifier of the edge type, such as `parent-of`. */
|
|
11705
11760
|
edge_type: string;
|
|
11706
|
-
/** @description The edge's properties. On an existing edge they merge over its own. Leave it out for none. */
|
|
11761
|
+
/** @description The edge's properties. On an existing edge they merge over its own. Leave it out for none. A whole number whose digits a 64-bit float doesn't keep is refused: send it as a string. */
|
|
11707
11762
|
properties?: {
|
|
11708
11763
|
[key: string]: unknown;
|
|
11709
11764
|
};
|
|
@@ -11738,9 +11793,10 @@ interface operations {
|
|
|
11738
11793
|
};
|
|
11739
11794
|
};
|
|
11740
11795
|
/**
|
|
11741
|
-
* @description - `validation_error`: the body is malformed, has an undeclared key
|
|
11742
|
-
* - `missing_required_field`:
|
|
11743
|
-
* - `
|
|
11796
|
+
* @description - `validation_error`: the body is malformed, has an undeclared key or has over 5,000 entries.
|
|
11797
|
+
* - `missing_required_field`: a required field is missing.
|
|
11798
|
+
* - `invalid_properties`: an entry's `properties` hold a whole number a 64-bit float can't keep.
|
|
11799
|
+
* - `bulk_atomic_rollback`: an `atomic` entry was refused and nothing was written (`details.code`, `details.index`). The status is the refusal's own.
|
|
11744
11800
|
*/
|
|
11745
11801
|
400: {
|
|
11746
11802
|
headers: {
|
|
@@ -11753,7 +11809,7 @@ interface operations {
|
|
|
11753
11809
|
[name: string]: unknown;
|
|
11754
11810
|
};
|
|
11755
11811
|
content: {
|
|
11756
|
-
"application/json": components["schemas"]["
|
|
11812
|
+
"application/json": components["schemas"]["BulkAtomicRollbackOrInvalidPropertiesOrMissingRequiredFieldOrValidationErrorRefusal"];
|
|
11757
11813
|
};
|
|
11758
11814
|
};
|
|
11759
11815
|
/** @description `unauthorized`: the request has no credential, or its credential is not valid. */
|
|
@@ -13991,6 +14047,21 @@ interface operations {
|
|
|
13991
14047
|
"application/json": components["schemas"]["TypeNotPermittedRefusal"];
|
|
13992
14048
|
};
|
|
13993
14049
|
};
|
|
14050
|
+
/** @description - `request_timeout`: no bytes arrived for 60 seconds, or for the time `MARFA_UPLOAD_IDLE_TIMEOUT_MS` sets. Marfa stores nothing. An upload has no other time limit while bytes keep arriving. */
|
|
14051
|
+
408: {
|
|
14052
|
+
headers: {
|
|
14053
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
14054
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
14055
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
14056
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
14057
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
14058
|
+
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
14059
|
+
[name: string]: unknown;
|
|
14060
|
+
};
|
|
14061
|
+
content: {
|
|
14062
|
+
"application/json": components["schemas"]["RequestTimeoutRefusal"];
|
|
14063
|
+
};
|
|
14064
|
+
};
|
|
13994
14065
|
/** @description `instance_changed`: `X-Marfa-Instance-Id` names another instance. Nothing is written. Rebuild the working copy from the instance at this address. */
|
|
13995
14066
|
409: {
|
|
13996
14067
|
headers: {
|
|
@@ -14497,7 +14568,10 @@ interface operations {
|
|
|
14497
14568
|
"application/json": components["schemas"]["InternalErrorRefusal"];
|
|
14498
14569
|
};
|
|
14499
14570
|
};
|
|
14500
|
-
/**
|
|
14571
|
+
/**
|
|
14572
|
+
* @description - `blob_store_unavailable`: no store that holds this blob answered, so Marfa couldn't tell whether it still has the bytes. Try again later.
|
|
14573
|
+
* - `write_contention`: the database was busy, and Marfa couldn't complete the request in time. Nothing changed. Try the request again.
|
|
14574
|
+
*/
|
|
14501
14575
|
503: {
|
|
14502
14576
|
headers: {
|
|
14503
14577
|
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
@@ -14509,7 +14583,7 @@ interface operations {
|
|
|
14509
14583
|
[name: string]: unknown;
|
|
14510
14584
|
};
|
|
14511
14585
|
content: {
|
|
14512
|
-
"application/json": components["schemas"]["
|
|
14586
|
+
"application/json": components["schemas"]["BlobStoreUnavailableOrWriteContentionRefusal"];
|
|
14513
14587
|
};
|
|
14514
14588
|
};
|
|
14515
14589
|
/** @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. */
|
|
@@ -19003,9 +19077,10 @@ interface operations {
|
|
|
19003
19077
|
};
|
|
19004
19078
|
};
|
|
19005
19079
|
/**
|
|
19006
|
-
* @description - `validation_error`: a setting is malformed, such as a `system.*` type
|
|
19080
|
+
* @description - `validation_error`: a setting is malformed or undeclared, such as a `system.*` type or a `first_placement` outside the folder. `details.errors[0].path` or `details.unknown_body_fields` names it.
|
|
19007
19081
|
* - `missing_required_field`: `title` is missing.
|
|
19008
|
-
* - `unknown_type`: a setting
|
|
19082
|
+
* - `unknown_type`: a setting's type is unknown.
|
|
19083
|
+
* - `invalid_properties`: `defaults.properties` has a whole number a 64-bit float can't keep.
|
|
19009
19084
|
*/
|
|
19010
19085
|
400: {
|
|
19011
19086
|
headers: {
|
|
@@ -19019,7 +19094,7 @@ interface operations {
|
|
|
19019
19094
|
[name: string]: unknown;
|
|
19020
19095
|
};
|
|
19021
19096
|
content: {
|
|
19022
|
-
"application/json": components["schemas"]["
|
|
19097
|
+
"application/json": components["schemas"]["InvalidPropertiesOrMissingRequiredFieldOrUnknownTypeOrValidationErrorRefusal"];
|
|
19023
19098
|
};
|
|
19024
19099
|
};
|
|
19025
19100
|
/** @description `unauthorized`: the request has no credential, or its credential is not valid. */
|
|
@@ -19219,10 +19294,11 @@ interface operations {
|
|
|
19219
19294
|
};
|
|
19220
19295
|
};
|
|
19221
19296
|
/**
|
|
19222
|
-
* @description - `validation_error`: a setting is malformed (`details.errors[0].path`
|
|
19297
|
+
* @description - `validation_error`: a setting is malformed or undeclared (`details.errors[0].path` or `details.unknown_body_fields` names it).
|
|
19223
19298
|
* - `missing_required_field`: `version` is missing.
|
|
19224
|
-
* - `unknown_type`: a setting
|
|
19225
|
-
* - `
|
|
19299
|
+
* - `unknown_type`: a setting's type is unknown.
|
|
19300
|
+
* - `invalid_properties`: `defaults.properties` has a whole number a 64-bit float can't keep.
|
|
19301
|
+
* - `invalid_id`: the ID is invalid.
|
|
19226
19302
|
* - `invalid_transition`: the folder is revoked.
|
|
19227
19303
|
*/
|
|
19228
19304
|
400: {
|
|
@@ -19237,7 +19313,7 @@ interface operations {
|
|
|
19237
19313
|
[name: string]: unknown;
|
|
19238
19314
|
};
|
|
19239
19315
|
content: {
|
|
19240
|
-
"application/json": components["schemas"]["
|
|
19316
|
+
"application/json": components["schemas"]["InvalidIdOrInvalidPropertiesOrInvalidTransitionOrMissingRequiredFieldOrUnknownTypeOrValidationErrorRefusal"];
|
|
19241
19317
|
};
|
|
19242
19318
|
};
|
|
19243
19319
|
/** @description `unauthorized`: the request has no credential, or its credential is not valid. */
|
|
@@ -20702,10 +20778,12 @@ interface operations {
|
|
|
20702
20778
|
permissions?: components["schemas"]["Permission"][];
|
|
20703
20779
|
/** @description Replaces the key's enforcement levers whole. `null` clears them. */
|
|
20704
20780
|
enforcement_override?: components["schemas"]["EnforcementOverride"] | null;
|
|
20705
|
-
/** @description Replaces when the key stops working, as an ISO 8601 date and time in the future. `null` clears it. Leave it out to keep it. It can't be later than your own key's `expires_at`, or the key's current one for a key an app made
|
|
20781
|
+
/** @description Replaces when the key stops working, as an ISO 8601 date and time in the future. `null` clears it. Leave it out to keep it. It can't be later than your own key's `expires_at`, or the key's current one for a key an app made, through `keys.manage` or with `narrow_only`. */
|
|
20706
20782
|
expires_at?: string | null;
|
|
20707
20783
|
/** @description Can't change. To give a key another source, create a new key and revoke this one. */
|
|
20708
20784
|
source?: string;
|
|
20785
|
+
/** @description `true` to refuse the update if it would give the key more: a permission, map entry or claimed source it doesn't hold, a later `expires_at` or none, or an `enforcement_override` other than its own. Defaults to `false`. */
|
|
20786
|
+
narrow_only?: boolean;
|
|
20709
20787
|
};
|
|
20710
20788
|
};
|
|
20711
20789
|
};
|
|
@@ -20757,7 +20835,7 @@ interface operations {
|
|
|
20757
20835
|
"application/json": components["schemas"]["UnauthorizedRefusal"];
|
|
20758
20836
|
};
|
|
20759
20837
|
};
|
|
20760
|
-
/** @description - `forbidden`: you don't hold `keys.mint` and aren't the owner or local command; the body gives the key
|
|
20838
|
+
/** @description - `forbidden`: you don't hold `keys.mint` and aren't the owner or local command; the body gives the key more than you hold or an `expires_at` later than yours; it widens or lengthens an app's key, or any key through `keys.manage` or with `narrow_only`, which also refuses a changed `enforcement_override`; or it names `enforcement_override` without `config.manage`. `details` names what's missing. */
|
|
20761
20839
|
403: {
|
|
20762
20840
|
headers: {
|
|
20763
20841
|
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
@@ -21207,14 +21285,14 @@ interface operations {
|
|
|
21207
21285
|
path?: never;
|
|
21208
21286
|
cookie?: never;
|
|
21209
21287
|
};
|
|
21210
|
-
/** @description The archive file, as `GET /export?format=archive` returned it. Only the build that wrote an archive is sure to read it. */
|
|
21288
|
+
/** @description The archive file, as `GET /export?format=archive` returned it, with its `manifest.json`, `items.ndjson`, `edges.ndjson` and `types.ndjson`. Only the build that wrote an archive is sure to read it. */
|
|
21211
21289
|
requestBody: {
|
|
21212
21290
|
content: {
|
|
21213
21291
|
"application/gzip": Blob | ArrayBuffer | ArrayBufferView | ReadableStream<Uint8Array>;
|
|
21214
21292
|
};
|
|
21215
21293
|
};
|
|
21216
21294
|
responses: {
|
|
21217
|
-
/** @description Returns the counts. Items and edges keep their IDs, versions and dates, and items keep their tags, extensions and history. Marfa restores an edge
|
|
21295
|
+
/** @description Returns the counts. Items and edges keep their IDs, versions and dates, and items keep their tags, extensions and history. Marfa restores an edge, and an item of a type you registered, as archived, even if its type now refuses it or is gone. Marfa leaves an existing item as it is when an archived one has its ID, natural key or link. An archive holds no keys, webhooks, configuration or tombstones. */
|
|
21218
21296
|
200: {
|
|
21219
21297
|
headers: {
|
|
21220
21298
|
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
@@ -21254,9 +21332,9 @@ interface operations {
|
|
|
21254
21332
|
};
|
|
21255
21333
|
};
|
|
21256
21334
|
/**
|
|
21257
|
-
* @description - `validation_error`: the body isn't a valid archive,
|
|
21258
|
-
* - `invalid_properties`:
|
|
21259
|
-
* - `invalid_schema`: an archived type is invalid or
|
|
21335
|
+
* @description - `validation_error`: the body isn't a valid archive, lacks one of its four files (`details.entries`), repeats an entry, is at another version, has an invalid row, or has a file over 64 MiB.
|
|
21336
|
+
* - `invalid_properties`: a `core` or `system` item breaks its type, an event's schedule can't unfold, or `strict_mode` refuses a property.
|
|
21337
|
+
* - `invalid_schema`: an archived type is invalid or has an unknown key.
|
|
21260
21338
|
*/
|
|
21261
21339
|
400: {
|
|
21262
21340
|
headers: {
|
|
@@ -21287,7 +21365,7 @@ interface operations {
|
|
|
21287
21365
|
"application/json": components["schemas"]["UnauthorizedRefusal"];
|
|
21288
21366
|
};
|
|
21289
21367
|
};
|
|
21290
|
-
/** @description Requires direct owner or local authority and
|
|
21368
|
+
/** @description Requires direct owner or local authority, and an owner who signed in within five minutes before the request started, however long the upload takes. */
|
|
21291
21369
|
403: {
|
|
21292
21370
|
headers: {
|
|
21293
21371
|
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
@@ -21302,6 +21380,21 @@ interface operations {
|
|
|
21302
21380
|
"application/json": components["schemas"]["ForbiddenRefusal"];
|
|
21303
21381
|
};
|
|
21304
21382
|
};
|
|
21383
|
+
/** @description - `request_timeout`: no bytes of the archive arrived for 60 seconds, or for the time `MARFA_UPLOAD_IDLE_TIMEOUT_MS` sets. Nothing was written. An upload has no other time limit while bytes keep arriving. */
|
|
21384
|
+
408: {
|
|
21385
|
+
headers: {
|
|
21386
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
21387
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
21388
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
21389
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
21390
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
21391
|
+
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
21392
|
+
[name: string]: unknown;
|
|
21393
|
+
};
|
|
21394
|
+
content: {
|
|
21395
|
+
"application/json": components["schemas"]["RequestTimeoutRefusal"];
|
|
21396
|
+
};
|
|
21397
|
+
};
|
|
21305
21398
|
/**
|
|
21306
21399
|
* @description - `conflict`: the archive redefines a type this instance registers differently or registered while the restore ran, carries a core edge type, or carries a snapshot ID that already exists.
|
|
21307
21400
|
* - `link_taken`: the archive registers a type naming a `link_field` in which two rows a forced delete left share a value.
|
|
@@ -21889,7 +21982,7 @@ interface operations {
|
|
|
21889
21982
|
};
|
|
21890
21983
|
};
|
|
21891
21984
|
responses: {
|
|
21892
|
-
/** @description The new owner can sign in. */
|
|
21985
|
+
/** @description The new owner can sign in. A claim from the instance's own origin also sets the owner session cookie, unless the sign-in that follows the claim fails. A claim with no `Origin` header, such as a script's, sets none. */
|
|
21893
21986
|
201: {
|
|
21894
21987
|
headers: {
|
|
21895
21988
|
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
@@ -22368,7 +22461,7 @@ interface operations {
|
|
|
22368
22461
|
"application/json": components["schemas"]["UnauthorizedRefusal"];
|
|
22369
22462
|
};
|
|
22370
22463
|
};
|
|
22371
|
-
/** @description - `forbidden`: the request carries a key or an app's token rather than the owner's browser session or the local command's authority, or the browser signed in more than five minutes ago
|
|
22464
|
+
/** @description - `forbidden`: the request carries a key or an app's token rather than the owner's browser session or the local command's authority, or the browser signed in more than five minutes ago and the ID names another sign-in or `revoke_keys` is `true`. */
|
|
22372
22465
|
403: {
|
|
22373
22466
|
headers: {
|
|
22374
22467
|
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
@@ -23386,7 +23479,7 @@ interface operations {
|
|
|
23386
23479
|
};
|
|
23387
23480
|
requestBody?: never;
|
|
23388
23481
|
responses: {
|
|
23389
|
-
/** @description With `format=ndjson`, one JSON object per line: `item` and `metadata` for each item, then `edge` for each edge between them whose type you can read. With `format=archive`, a `.tar.gz` of the items
|
|
23482
|
+
/** @description With `format=ndjson`, one JSON object per line: `item` and `metadata` for each item, then `edge` for each edge between them whose type you can read. With `format=archive`, a `.tar.gz` of the items, history, edges, type registrations and blobs you can read. If the export fails partway or your credential ends or narrows below it, the connection ends early and an archive won't unpack. */
|
|
23390
23483
|
200: {
|
|
23391
23484
|
headers: {
|
|
23392
23485
|
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|