@withmarfa/client 0.0.34 → 0.0.35
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 +372 -55
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -748,7 +748,7 @@ interface paths {
|
|
|
748
748
|
post?: never;
|
|
749
749
|
/**
|
|
750
750
|
* Delete a type
|
|
751
|
-
* @description Deletes
|
|
751
|
+
* @description Deletes a type no item holds and no folder, view or webhook names. With `force=true`, a key keeps the items without their type and leaves the settings as they are; new writes then fail until it's registered again.
|
|
752
752
|
*/
|
|
753
753
|
delete: operations["deleteType"];
|
|
754
754
|
options?: never;
|
|
@@ -756,6 +756,26 @@ interface paths {
|
|
|
756
756
|
patch?: never;
|
|
757
757
|
trace?: never;
|
|
758
758
|
};
|
|
759
|
+
"/types/{id}/move": {
|
|
760
|
+
parameters: {
|
|
761
|
+
query?: never;
|
|
762
|
+
header?: never;
|
|
763
|
+
path?: never;
|
|
764
|
+
cookie?: never;
|
|
765
|
+
};
|
|
766
|
+
get?: never;
|
|
767
|
+
put?: never;
|
|
768
|
+
/**
|
|
769
|
+
* Move items to another type
|
|
770
|
+
* @description Moves every item of the type you can see, in any state, to another type as a bulk-action job. Once none remains, it rewrites the folders, views and webhooks that name the type. `dry_run: true` returns what it would do.
|
|
771
|
+
*/
|
|
772
|
+
post: operations["moveType"];
|
|
773
|
+
delete?: never;
|
|
774
|
+
options?: never;
|
|
775
|
+
head?: never;
|
|
776
|
+
patch?: never;
|
|
777
|
+
trace?: never;
|
|
778
|
+
};
|
|
759
779
|
"/types/normalize": {
|
|
760
780
|
parameters: {
|
|
761
781
|
query?: never;
|
|
@@ -791,7 +811,7 @@ interface paths {
|
|
|
791
811
|
put?: never;
|
|
792
812
|
/**
|
|
793
813
|
* Register an edge type
|
|
794
|
-
* @description Registers an edge type and returns it. With `evolve_constraints: true`, widens a registered type's endpoint constraints without changing its edges. An edge type can't extend another.
|
|
814
|
+
* @description Registers an edge type and returns it. With `evolve_constraints: true`, widens a registered type's endpoint constraints and may rename its labels, without changing its edges. An edge type can't extend another.
|
|
795
815
|
*/
|
|
796
816
|
post: operations["registerEdgeType"];
|
|
797
817
|
delete?: never;
|
|
@@ -1171,7 +1191,7 @@ interface paths {
|
|
|
1171
1191
|
put?: never;
|
|
1172
1192
|
/**
|
|
1173
1193
|
* Create a view
|
|
1174
|
-
* @description Creates a view: a `system.view` item whose properties say which items it lists and how
|
|
1194
|
+
* @description Creates a view: a `system.view` item whose properties say which items it lists, in what order and how they group. The item endpoints can't write one.
|
|
1175
1195
|
*/
|
|
1176
1196
|
post: operations["createView"];
|
|
1177
1197
|
delete?: never;
|
|
@@ -1199,7 +1219,7 @@ interface paths {
|
|
|
1199
1219
|
head?: never;
|
|
1200
1220
|
/**
|
|
1201
1221
|
* Update a view
|
|
1202
|
-
* @description Updates a view's title, query or
|
|
1222
|
+
* @description Updates a view's title, query, sort or group. Each one you send replaces the current value whole, and those you leave out stay as they are. Send `group: null` to remove the grouping. Send the `version` you read.
|
|
1203
1223
|
*/
|
|
1204
1224
|
patch: operations["updateView"];
|
|
1205
1225
|
trace?: never;
|
|
@@ -2043,8 +2063,10 @@ interface components {
|
|
|
2043
2063
|
EdgeType: {
|
|
2044
2064
|
/** @description Unique identifier for the edge type. */
|
|
2045
2065
|
id: string;
|
|
2046
|
-
/** @description
|
|
2047
|
-
label
|
|
2066
|
+
/** @description The name an app shows on the source end of an edge of this type, such as `Children` on a parent. Not the `reverse_name`, which is the code name a file writes. */
|
|
2067
|
+
label: string;
|
|
2068
|
+
/** @description The name an app shows on the target end, such as `Parent` on a child. It is the same text as `label` when the relation is two-way, and an app then shows both directions as one list. */
|
|
2069
|
+
reverse_label: string;
|
|
2048
2070
|
/** @description What the edge type is for. */
|
|
2049
2071
|
description?: string;
|
|
2050
2072
|
/**
|
|
@@ -2467,6 +2489,14 @@ interface components {
|
|
|
2467
2489
|
errors?: components["schemas"]["BulkActionError"][];
|
|
2468
2490
|
/** @description On a purge job, how many distinct blobs the purged items referenced, whether or not anything still references them. Absent otherwise. */
|
|
2469
2491
|
blob_hashes_referenced?: number;
|
|
2492
|
+
/** @description On a type move, every folder, view and webhook setting that named the old type when the job finished. Absent otherwise. */
|
|
2493
|
+
settings?: components["schemas"]["TypeSetting"][];
|
|
2494
|
+
/** @description On a type move, how many items you can see are still of the old type when the job finished, in any state: those it left unchanged and any written since the move began. Absent otherwise. */
|
|
2495
|
+
remaining?: number;
|
|
2496
|
+
/** @description On a type move, `true` if items your source filter hides are still of the old type. A move takes only items you can see. Absent otherwise. */
|
|
2497
|
+
remaining_hidden?: boolean;
|
|
2498
|
+
/** @description On a type move, `true` if Marfa rewrote `settings` to name the new type. `false` if an item of the old type remains, counted in `remaining` or `remaining_hidden`, or a setting has a `reason`: Marfa then rewrote none of them. Absent otherwise. */
|
|
2499
|
+
settings_rewritten?: boolean;
|
|
2470
2500
|
};
|
|
2471
2501
|
/** @description An item a bulk action left unchanged, and why. */
|
|
2472
2502
|
BulkActionError: {
|
|
@@ -2481,6 +2511,25 @@ interface components {
|
|
|
2481
2511
|
[key: string]: unknown;
|
|
2482
2512
|
};
|
|
2483
2513
|
};
|
|
2514
|
+
/** @description A folder, view or webhook setting that names a type. */
|
|
2515
|
+
TypeSetting: {
|
|
2516
|
+
/**
|
|
2517
|
+
* @description What holds the setting.
|
|
2518
|
+
* @enum {string}
|
|
2519
|
+
*/
|
|
2520
|
+
kind: "folder" | "view" | "webhook";
|
|
2521
|
+
/** @description The ID of the folder, view or webhook. Absent when you can't read it. */
|
|
2522
|
+
id?: string;
|
|
2523
|
+
/** @description The setting that names the type: `query.types`, `query.filter`, `defaults.type`, `first_placement` or `type_filter`. */
|
|
2524
|
+
field: string;
|
|
2525
|
+
/**
|
|
2526
|
+
* @description Why a move can't rewrite the setting: `not_permitted`, you can't change it; `filter_term`, its filter can't be rewritten safely; `placement_conflict`, it places the types apart; `subtypes`, a webhook can't name both.
|
|
2527
|
+
* @enum {string}
|
|
2528
|
+
*/
|
|
2529
|
+
reason?: "not_permitted" | "filter_term" | "placement_conflict" | "subtypes";
|
|
2530
|
+
/** @description What to change before moving, for a person to read. Present with `reason`. */
|
|
2531
|
+
message?: string;
|
|
2532
|
+
};
|
|
2484
2533
|
/**
|
|
2485
2534
|
* @description A field: an own field (`title`, `created_at`, `updated_at`, `occurred_at`, `type`, `state`, `tier`, `tags`) or `properties.<name>`.
|
|
2486
2535
|
* @example properties.status
|
|
@@ -2491,12 +2540,7 @@ interface components {
|
|
|
2491
2540
|
* @enum {string}
|
|
2492
2541
|
*/
|
|
2493
2542
|
ViewTier: "library" | "feed" | "all";
|
|
2494
|
-
/**
|
|
2495
|
-
* @description How a layout shows items. `list`: rows. `table`: rows with columns. `board`: columns by `group`. `gallery`: cards. `calendar`: on dates. `timeline`: as spans. `chart`: as a chart. `map`: on a map.
|
|
2496
|
-
* @enum {string}
|
|
2497
|
-
*/
|
|
2498
|
-
ViewLayoutKind: "list" | "table" | "board" | "gallery" | "calendar" | "timeline" | "chart" | "map";
|
|
2499
|
-
/** @description One key a layout sorts by. */
|
|
2543
|
+
/** @description One key a view sorts by. */
|
|
2500
2544
|
ViewSort: {
|
|
2501
2545
|
by: components["schemas"]["ViewField"] & unknown;
|
|
2502
2546
|
/**
|
|
@@ -2505,7 +2549,7 @@ interface components {
|
|
|
2505
2549
|
*/
|
|
2506
2550
|
direction: "asc" | "desc";
|
|
2507
2551
|
};
|
|
2508
|
-
/** @description How a
|
|
2552
|
+
/** @description How a view groups its items. */
|
|
2509
2553
|
ViewGroup: {
|
|
2510
2554
|
/**
|
|
2511
2555
|
* @description The field to group by: a field, or `edge[<type>]` or `backref[<type>]` for the item an edge of that type joins.
|
|
@@ -2519,7 +2563,7 @@ interface components {
|
|
|
2519
2563
|
bucket?: "day" | "week" | "month" | "year";
|
|
2520
2564
|
/** @description The values whose groups come first, in this order. Other groups follow. */
|
|
2521
2565
|
order?: (string | number | boolean | null)[];
|
|
2522
|
-
/** @description The values whose groups the
|
|
2566
|
+
/** @description The values whose groups the view leaves out. */
|
|
2523
2567
|
hidden?: (string | number | boolean | null)[];
|
|
2524
2568
|
};
|
|
2525
2569
|
/** @description An instance: its identity, build, contract version and features. */
|
|
@@ -3469,8 +3513,10 @@ interface components {
|
|
|
3469
3513
|
EdgeTypeRegistrationRequest: {
|
|
3470
3514
|
/** @description The identifier of the edge type, such as `acme.list-member`. */
|
|
3471
3515
|
id: string;
|
|
3472
|
-
/** @description
|
|
3516
|
+
/** @description The name an app shows on the source end, such as `Children` on a parent. Leave it out and the last segment of the `id` makes it, such as `List Member`. On a change, leaving it out keeps the stored one. */
|
|
3473
3517
|
label?: string;
|
|
3518
|
+
/** @description The name an app shows on the target end, such as `Parent` on a child. Leave it out and `label` names both ends. On a change, leaving it out keeps the stored one; send the `label` to make a type two-way. */
|
|
3519
|
+
reverse_label?: string;
|
|
3474
3520
|
/** @description What the edge type is for. */
|
|
3475
3521
|
description?: string;
|
|
3476
3522
|
/**
|
|
@@ -3498,7 +3544,7 @@ interface components {
|
|
|
3498
3544
|
* @enum {string}
|
|
3499
3545
|
*/
|
|
3500
3546
|
written_at?: "source" | "target" | "none";
|
|
3501
|
-
/** @description `true`
|
|
3547
|
+
/** @description `true` updates a registered type in place: widen its endpoints (keep every constraint token, or allow all types with `[]` or `*`) and change its labels. Other members stay unchanged. Omit or `false` to register a new type. Not stored. */
|
|
3502
3548
|
evolve_constraints?: boolean;
|
|
3503
3549
|
};
|
|
3504
3550
|
/** @description A page holding every edge type. */
|
|
@@ -3804,6 +3850,89 @@ interface components {
|
|
|
3804
3850
|
};
|
|
3805
3851
|
};
|
|
3806
3852
|
};
|
|
3853
|
+
/** @description What a type move would do, written nowhere. */
|
|
3854
|
+
TypeMoveDryRun: {
|
|
3855
|
+
/**
|
|
3856
|
+
* @description Always `true`.
|
|
3857
|
+
* @enum {boolean}
|
|
3858
|
+
*/
|
|
3859
|
+
dry_run: true;
|
|
3860
|
+
/** @description The type the items are in now. */
|
|
3861
|
+
from: string;
|
|
3862
|
+
/** @description The type the items would move to. */
|
|
3863
|
+
to: string;
|
|
3864
|
+
/** @description How many items of `from` the move would take, in any state. Items your source filter hides aren't counted or moved. */
|
|
3865
|
+
matched: number;
|
|
3866
|
+
/** @description The IDs of those items. */
|
|
3867
|
+
ids: string[];
|
|
3868
|
+
/** @description Every folder, view and webhook setting that names `from`, which the move rewrites to name `to` once no item of `from` remains. */
|
|
3869
|
+
settings: components["schemas"]["TypeSetting"][];
|
|
3870
|
+
/** @description The keys and apps whose type map names `from`, which the move doesn't change. Keys are listed if you have `keys.manage`, and apps if you have `grants.manage`. */
|
|
3871
|
+
grants: components["schemas"]["TypeGrant"][];
|
|
3872
|
+
};
|
|
3873
|
+
/** @description A key or app whose type map names a type outright. */
|
|
3874
|
+
TypeGrant: {
|
|
3875
|
+
/**
|
|
3876
|
+
* @description `key` for an API key, `app` for an app someone signed in to.
|
|
3877
|
+
* @enum {string}
|
|
3878
|
+
*/
|
|
3879
|
+
kind: "key" | "app";
|
|
3880
|
+
/** @description The ID of the key, or the app's client ID. */
|
|
3881
|
+
id: string;
|
|
3882
|
+
/** @description The key's label. Absent for an app. */
|
|
3883
|
+
label?: string;
|
|
3884
|
+
};
|
|
3885
|
+
/** @description An error response. */
|
|
3886
|
+
BulkCapExceededOrMissingRequiredFieldOrUnknownTypeOrValidationErrorRefusal: {
|
|
3887
|
+
/** @description What went wrong. */
|
|
3888
|
+
error: {
|
|
3889
|
+
/**
|
|
3890
|
+
* @description A machine-readable code for the error. Use it in your logic.
|
|
3891
|
+
* @enum {string}
|
|
3892
|
+
*/
|
|
3893
|
+
code: "bulk_cap_exceeded" | "missing_required_field" | "unknown_type" | "validation_error";
|
|
3894
|
+
/** @description A description of the error for a person to read. It can change, so don't match on it. */
|
|
3895
|
+
message: string;
|
|
3896
|
+
/** @description More about the error, such as the field it concerns. Each code defines its own details. */
|
|
3897
|
+
details?: {
|
|
3898
|
+
[key: string]: unknown;
|
|
3899
|
+
};
|
|
3900
|
+
};
|
|
3901
|
+
};
|
|
3902
|
+
/** @description An error response. */
|
|
3903
|
+
CoreTypeImmutableOrTypeNotPermittedRefusal: {
|
|
3904
|
+
/** @description What went wrong. */
|
|
3905
|
+
error: {
|
|
3906
|
+
/**
|
|
3907
|
+
* @description A machine-readable code for the error. Use it in your logic.
|
|
3908
|
+
* @enum {string}
|
|
3909
|
+
*/
|
|
3910
|
+
code: "core_type_immutable" | "type_not_permitted";
|
|
3911
|
+
/** @description A description of the error for a person to read. It can change, so don't match on it. */
|
|
3912
|
+
message: string;
|
|
3913
|
+
/** @description More about the error, such as the field it concerns. Each code defines its own details. */
|
|
3914
|
+
details?: {
|
|
3915
|
+
[key: string]: unknown;
|
|
3916
|
+
};
|
|
3917
|
+
};
|
|
3918
|
+
};
|
|
3919
|
+
/** @description An error response. */
|
|
3920
|
+
TypeMoveBlockedRefusal: {
|
|
3921
|
+
/** @description What went wrong. */
|
|
3922
|
+
error: {
|
|
3923
|
+
/**
|
|
3924
|
+
* @description A machine-readable code for the error. Use it in your logic.
|
|
3925
|
+
* @enum {string}
|
|
3926
|
+
*/
|
|
3927
|
+
code: "type_move_blocked";
|
|
3928
|
+
/** @description A description of the error for a person to read. It can change, so don't match on it. */
|
|
3929
|
+
message: string;
|
|
3930
|
+
/** @description More about the error, such as the field it concerns. Each code defines its own details. */
|
|
3931
|
+
details?: {
|
|
3932
|
+
[key: string]: unknown;
|
|
3933
|
+
};
|
|
3934
|
+
};
|
|
3935
|
+
};
|
|
3807
3936
|
/** @description One page of search results. */
|
|
3808
3937
|
SearchResultPage: {
|
|
3809
3938
|
/** @description The results, best match first. */
|
|
@@ -4653,35 +4782,6 @@ interface components {
|
|
|
4653
4782
|
/** @description An item ID. The view lists that item and everything under it by `parent-of`, at any depth. */
|
|
4654
4783
|
beneath?: string;
|
|
4655
4784
|
};
|
|
4656
|
-
/** @description One way a view shows its items. A layout takes only the options its `kind` takes, and never narrows which items the view lists. */
|
|
4657
|
-
ViewLayout: {
|
|
4658
|
-
/** @description The layout's ID, unique in the view, which an app keeps to reopen it. */
|
|
4659
|
-
id: string;
|
|
4660
|
-
kind: components["schemas"]["ViewLayoutKind"] & unknown;
|
|
4661
|
-
/** @description The layout's name. Absent, an app names it by its kind. */
|
|
4662
|
-
title?: string;
|
|
4663
|
-
/** @description The keys the layout sorts by, first key first. */
|
|
4664
|
-
sort?: components["schemas"]["ViewSort"][];
|
|
4665
|
-
group?: components["schemas"]["ViewGroup"] & unknown;
|
|
4666
|
-
/** @description The fields the layout shows, in order. */
|
|
4667
|
-
shown?: components["schemas"]["ViewField"][];
|
|
4668
|
-
/** @description For a `gallery`, the property that holds each card's image. */
|
|
4669
|
-
image?: string;
|
|
4670
|
-
/** @description For a `calendar`, the date field that places each item. */
|
|
4671
|
-
date?: string;
|
|
4672
|
-
/** @description For a `timeline`, the date field each span starts at. Required for a `timeline`. */
|
|
4673
|
-
start?: string;
|
|
4674
|
-
/** @description For a `calendar` or `timeline`, the date field each span ends at. Required for a `timeline`. */
|
|
4675
|
-
end?: string;
|
|
4676
|
-
x?: components["schemas"]["ViewField"] & unknown;
|
|
4677
|
-
/** @description What a chart measures: `count` of items, or `{ "sum": "properties.<name>" }`. */
|
|
4678
|
-
y?: "count" | {
|
|
4679
|
-
/** @description The number property whose values are added up. */
|
|
4680
|
-
sum: string;
|
|
4681
|
-
};
|
|
4682
|
-
/** @description For a `map`, the property that holds each item's place. */
|
|
4683
|
-
location?: string;
|
|
4684
|
-
};
|
|
4685
4785
|
/** @description An error response. */
|
|
4686
4786
|
InvalidIdOrInvalidTransitionOrMissingRequiredFieldOrUnknownTypeOrValidationErrorRefusal: {
|
|
4687
4787
|
/** @description What went wrong. */
|
|
@@ -14601,7 +14701,7 @@ interface operations {
|
|
|
14601
14701
|
deleteType: {
|
|
14602
14702
|
parameters: {
|
|
14603
14703
|
query?: {
|
|
14604
|
-
/** @description Delete the type even if items of it exist, in any state. It doesn't cover subtypes or compatibility dependents. */
|
|
14704
|
+
/** @description Delete the type even if items of it exist, in any state, or a folder, view or webhook names it. It doesn't cover subtypes or compatibility dependents. */
|
|
14605
14705
|
force?: "true" | "false";
|
|
14606
14706
|
};
|
|
14607
14707
|
header?: {
|
|
@@ -14696,7 +14796,7 @@ interface operations {
|
|
|
14696
14796
|
};
|
|
14697
14797
|
/**
|
|
14698
14798
|
* @description - `type_has_subtypes`: other types name this one as their `parent` (`details.subtype_ids` lists them). Delete them, or give them another parent with `PUT /types/{id}`.
|
|
14699
|
-
* - `type_in_use`: an item of the type exists, in any state, and `force` isn't `true`.
|
|
14799
|
+
* - `type_in_use`: an item of the type exists, in any state, or a folder, view or webhook names it, and `force` isn't `true`. `details` counts the items and lists the settings. Move them with `POST /types/{id}/move`.
|
|
14700
14800
|
*/
|
|
14701
14801
|
409: {
|
|
14702
14802
|
headers: {
|
|
@@ -14802,6 +14902,220 @@ interface operations {
|
|
|
14802
14902
|
};
|
|
14803
14903
|
};
|
|
14804
14904
|
};
|
|
14905
|
+
moveType: {
|
|
14906
|
+
parameters: {
|
|
14907
|
+
query?: never;
|
|
14908
|
+
header?: {
|
|
14909
|
+
/** @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. */
|
|
14910
|
+
"X-Marfa-Instance-Id"?: string;
|
|
14911
|
+
};
|
|
14912
|
+
path: {
|
|
14913
|
+
/** @description The identifier of the type to move items out of, such as `acme.deal`. */
|
|
14914
|
+
id: string;
|
|
14915
|
+
};
|
|
14916
|
+
cookie?: never;
|
|
14917
|
+
};
|
|
14918
|
+
requestBody: {
|
|
14919
|
+
content: {
|
|
14920
|
+
"application/json": {
|
|
14921
|
+
/** @description The identifier of the type to move items to, such as `acme.contract`. It must be registered. */
|
|
14922
|
+
to: string;
|
|
14923
|
+
/** @description Properties to merge into every item as it moves, such as a field the new type requires. A `null` value removes a property. */
|
|
14924
|
+
properties?: {
|
|
14925
|
+
[key: string]: unknown;
|
|
14926
|
+
};
|
|
14927
|
+
/** @description `true` returns the items and settings the move would change and writes nothing. Defaults to `false`. */
|
|
14928
|
+
dry_run?: boolean;
|
|
14929
|
+
};
|
|
14930
|
+
};
|
|
14931
|
+
};
|
|
14932
|
+
responses: {
|
|
14933
|
+
/** @description With `dry_run: true`, returns what the move would do. */
|
|
14934
|
+
200: {
|
|
14935
|
+
headers: {
|
|
14936
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
14937
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
14938
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
14939
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
14940
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
14941
|
+
[name: string]: unknown;
|
|
14942
|
+
};
|
|
14943
|
+
content: {
|
|
14944
|
+
"application/json": components["schemas"]["TypeMoveDryRun"];
|
|
14945
|
+
};
|
|
14946
|
+
};
|
|
14947
|
+
/** @description Returns the queued job. Poll it with `GET /items/bulk-actions/jobs/{id}`. Its `result` lists the first 100 items it couldn't move in `errors`, counts the items of the type still left in `remaining` and `remaining_hidden`, and says in `settings_rewritten` whether it rewrote `settings`. Run the move again to move what remains. */
|
|
14948
|
+
202: {
|
|
14949
|
+
headers: {
|
|
14950
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
14951
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
14952
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
14953
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
14954
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
14955
|
+
[name: string]: unknown;
|
|
14956
|
+
};
|
|
14957
|
+
content: {
|
|
14958
|
+
"application/json": components["schemas"]["BulkActionJob"];
|
|
14959
|
+
};
|
|
14960
|
+
};
|
|
14961
|
+
/**
|
|
14962
|
+
* @description - `missing_required_field`: `to` is missing.
|
|
14963
|
+
* - `validation_error`: `to` is malformed or names the type itself.
|
|
14964
|
+
* - `unknown_type`: no type has the identifier `to`.
|
|
14965
|
+
* - `bulk_cap_exceeded`: the type holds over 50,000 items.
|
|
14966
|
+
*/
|
|
14967
|
+
400: {
|
|
14968
|
+
headers: {
|
|
14969
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
14970
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
14971
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
14972
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
14973
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
14974
|
+
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
14975
|
+
[name: string]: unknown;
|
|
14976
|
+
};
|
|
14977
|
+
content: {
|
|
14978
|
+
"application/json": components["schemas"]["BulkCapExceededOrMissingRequiredFieldOrUnknownTypeOrValidationErrorRefusal"];
|
|
14979
|
+
};
|
|
14980
|
+
};
|
|
14981
|
+
/** @description `unauthorized`: the request has no credential, or its credential is not valid. */
|
|
14982
|
+
401: {
|
|
14983
|
+
headers: {
|
|
14984
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
14985
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
14986
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
14987
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
14988
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
14989
|
+
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
14990
|
+
[name: string]: unknown;
|
|
14991
|
+
};
|
|
14992
|
+
content: {
|
|
14993
|
+
"application/json": components["schemas"]["UnauthorizedRefusal"];
|
|
14994
|
+
};
|
|
14995
|
+
};
|
|
14996
|
+
/**
|
|
14997
|
+
* @description - `core_type_immutable`: Marfa ships the type, and its items stay in it.
|
|
14998
|
+
* - `type_not_permitted`: your type map doesn't grant write on both types.
|
|
14999
|
+
*/
|
|
15000
|
+
403: {
|
|
15001
|
+
headers: {
|
|
15002
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
15003
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
15004
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
15005
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
15006
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
15007
|
+
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
15008
|
+
[name: string]: unknown;
|
|
15009
|
+
};
|
|
15010
|
+
content: {
|
|
15011
|
+
"application/json": components["schemas"]["CoreTypeImmutableOrTypeNotPermittedRefusal"];
|
|
15012
|
+
};
|
|
15013
|
+
};
|
|
15014
|
+
/** @description `type_not_found`: no type has this identifier. */
|
|
15015
|
+
404: {
|
|
15016
|
+
headers: {
|
|
15017
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
15018
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
15019
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
15020
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
15021
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
15022
|
+
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
15023
|
+
[name: string]: unknown;
|
|
15024
|
+
};
|
|
15025
|
+
content: {
|
|
15026
|
+
"application/json": components["schemas"]["TypeNotFoundRefusal"];
|
|
15027
|
+
};
|
|
15028
|
+
};
|
|
15029
|
+
/** @description `type_move_blocked`: a folder, view or webhook names the type in a way the move can't rewrite. `details.settings` lists each, with its `reason`. Change them, then move. */
|
|
15030
|
+
409: {
|
|
15031
|
+
headers: {
|
|
15032
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
15033
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
15034
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
15035
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
15036
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
15037
|
+
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
15038
|
+
[name: string]: unknown;
|
|
15039
|
+
};
|
|
15040
|
+
content: {
|
|
15041
|
+
"application/json": components["schemas"]["TypeMoveBlockedRefusal"] | components["schemas"]["InstanceChangedRefusal"];
|
|
15042
|
+
};
|
|
15043
|
+
};
|
|
15044
|
+
/** @description `request_too_large`: the request body is larger than this instance accepts. */
|
|
15045
|
+
413: {
|
|
15046
|
+
headers: {
|
|
15047
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
15048
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
15049
|
+
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
15050
|
+
[name: string]: unknown;
|
|
15051
|
+
};
|
|
15052
|
+
content: {
|
|
15053
|
+
"application/json": components["schemas"]["RequestTooLargeRefusal"];
|
|
15054
|
+
};
|
|
15055
|
+
};
|
|
15056
|
+
/** @description `rate_limited`: you sent too many requests. Wait for the number of seconds in `Retry-After`, then try again. */
|
|
15057
|
+
429: {
|
|
15058
|
+
headers: {
|
|
15059
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
15060
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
15061
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
15062
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
15063
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
15064
|
+
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
15065
|
+
"Retry-After": components["headers"]["Retry-After"];
|
|
15066
|
+
[name: string]: unknown;
|
|
15067
|
+
};
|
|
15068
|
+
content: {
|
|
15069
|
+
"application/json": components["schemas"]["RateLimitedRefusal"];
|
|
15070
|
+
};
|
|
15071
|
+
};
|
|
15072
|
+
/** @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. */
|
|
15073
|
+
500: {
|
|
15074
|
+
headers: {
|
|
15075
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
15076
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
15077
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
15078
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
15079
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
15080
|
+
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
15081
|
+
[name: string]: unknown;
|
|
15082
|
+
};
|
|
15083
|
+
content: {
|
|
15084
|
+
"application/json": components["schemas"]["InternalErrorRefusal"];
|
|
15085
|
+
};
|
|
15086
|
+
};
|
|
15087
|
+
/** @description `write_contention`: the database was busy, and Marfa couldn't complete the request in time. Nothing changed. Try the request again. */
|
|
15088
|
+
503: {
|
|
15089
|
+
headers: {
|
|
15090
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
15091
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
15092
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
15093
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
15094
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
15095
|
+
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
15096
|
+
[name: string]: unknown;
|
|
15097
|
+
};
|
|
15098
|
+
content: {
|
|
15099
|
+
"application/json": components["schemas"]["WriteContentionRefusal"];
|
|
15100
|
+
};
|
|
15101
|
+
};
|
|
15102
|
+
/** @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. */
|
|
15103
|
+
507: {
|
|
15104
|
+
headers: {
|
|
15105
|
+
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
15106
|
+
"X-Request-ID": components["headers"]["X-Request-ID"];
|
|
15107
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
15108
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
15109
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
15110
|
+
"X-Error-Code": components["headers"]["X-Error-Code"];
|
|
15111
|
+
[name: string]: unknown;
|
|
15112
|
+
};
|
|
15113
|
+
content: {
|
|
15114
|
+
"application/json": components["schemas"]["InsufficientStorageRefusal"];
|
|
15115
|
+
};
|
|
15116
|
+
};
|
|
15117
|
+
};
|
|
15118
|
+
};
|
|
14805
15119
|
normalizeType: {
|
|
14806
15120
|
parameters: {
|
|
14807
15121
|
query?: never;
|
|
@@ -15219,7 +15533,7 @@ interface operations {
|
|
|
15219
15533
|
"application/json": components["schemas"]["EdgeTypeNotFoundRefusal"];
|
|
15220
15534
|
};
|
|
15221
15535
|
};
|
|
15222
|
-
/** @description `conflict`: `id` is the name of an edge type Marfa ships, `id` or `reverse_name` is already the ID or reverse name of an edge type, or `reverse_name` equals `id`, or constraint evolution would remove a constraint token without allowing every type or change
|
|
15536
|
+
/** @description `conflict`: `id` is the name of an edge type Marfa ships, `id` or `reverse_name` is already the ID or reverse name of an edge type, or `reverse_name` equals `id`, or constraint evolution would remove a constraint token without allowing every type or change a definition member other than the labels. */
|
|
15223
15537
|
409: {
|
|
15224
15538
|
headers: {
|
|
15225
15539
|
"X-Marfa-Contract": components["headers"]["X-Marfa-Contract"];
|
|
@@ -19165,8 +19479,9 @@ interface operations {
|
|
|
19165
19479
|
/** @description The view's title. */
|
|
19166
19480
|
title: string;
|
|
19167
19481
|
query?: components["schemas"]["ViewQuery"];
|
|
19168
|
-
/** @description
|
|
19169
|
-
|
|
19482
|
+
/** @description The keys the view sorts by, first key first. */
|
|
19483
|
+
sort?: components["schemas"]["ViewSort"][];
|
|
19484
|
+
group?: components["schemas"]["ViewGroup"] & unknown;
|
|
19170
19485
|
};
|
|
19171
19486
|
};
|
|
19172
19487
|
};
|
|
@@ -19187,8 +19502,8 @@ interface operations {
|
|
|
19187
19502
|
};
|
|
19188
19503
|
};
|
|
19189
19504
|
/**
|
|
19190
|
-
* @description - `validation_error`: a setting is malformed or undeclared,
|
|
19191
|
-
* - `missing_required_field`: `title
|
|
19505
|
+
* @description - `validation_error`: a setting is malformed or undeclared, `details.errors[0].path` or `details.unknown_body_fields` names it.
|
|
19506
|
+
* - `missing_required_field`: `title` is missing. `details.field` names it.
|
|
19192
19507
|
* - `unknown_type`: `query.types` names a type that isn't registered.
|
|
19193
19508
|
*/
|
|
19194
19509
|
400: {
|
|
@@ -19584,8 +19899,10 @@ interface operations {
|
|
|
19584
19899
|
/** @description A new title for the view. */
|
|
19585
19900
|
title?: string;
|
|
19586
19901
|
query?: components["schemas"]["ViewQuery"] & unknown;
|
|
19587
|
-
/** @description
|
|
19588
|
-
|
|
19902
|
+
/** @description A new sort, which replaces the current one whole. */
|
|
19903
|
+
sort?: components["schemas"]["ViewSort"][];
|
|
19904
|
+
/** @description A new grouping, which replaces the current one whole. `null` removes the grouping. */
|
|
19905
|
+
group?: components["schemas"]["ViewGroup"] | null;
|
|
19589
19906
|
};
|
|
19590
19907
|
};
|
|
19591
19908
|
};
|
|
@@ -19607,7 +19924,7 @@ interface operations {
|
|
|
19607
19924
|
};
|
|
19608
19925
|
/**
|
|
19609
19926
|
* @description - `validation_error`: no setting, or a malformed or undeclared setting; `details` names it.
|
|
19610
|
-
* - `missing_required_field`: `version`
|
|
19927
|
+
* - `missing_required_field`: `version` is missing; `details.field` names it.
|
|
19611
19928
|
* - `unknown_type`: `query.types` names a type that isn't registered.
|
|
19612
19929
|
* - `invalid_id`: the ID is invalid.
|
|
19613
19930
|
* - `invalid_transition`: the view is revoked.
|