@withmarfa/client 0.0.47 → 0.0.49
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 +107 -41
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -782,7 +782,7 @@ interface paths {
|
|
|
782
782
|
get: operations["getType"];
|
|
783
783
|
/**
|
|
784
784
|
* Replace a type
|
|
785
|
-
* @description Replaces a
|
|
785
|
+
* @description Replaces a type's whole schema and returns it. A field left out is removed; items keep their values. `metadata.types:write` alone can add optional fields and change labels, descriptions, `plural`, `display_hints` and `version`.
|
|
786
786
|
*/
|
|
787
787
|
put: operations["replaceType"];
|
|
788
788
|
post?: never;
|
|
@@ -2220,10 +2220,14 @@ interface components {
|
|
|
2220
2220
|
written_at: "source" | "target" | "none";
|
|
2221
2221
|
/** @description `true` if Marfa ships the edge type: it exists on every instance, and you can't register or delete it. `false` for one registered through `POST /edge-types`. */
|
|
2222
2222
|
shipped: boolean;
|
|
2223
|
+
/** @description `true` if the server refuses an edge of this type that closes a cycle through other edges of the type. Every edge type refuses an edge from an item to itself. */
|
|
2224
|
+
acyclic: boolean;
|
|
2225
|
+
/** @description `true` if the server refuses an edge of this type whose source type its `target_type_constraints` admit, so an item that can be a target is never a source. */
|
|
2226
|
+
flat: boolean;
|
|
2223
2227
|
};
|
|
2224
2228
|
/** @description One property an edge of an edge type can carry. */
|
|
2225
2229
|
EdgePropertyDefinition: {
|
|
2226
|
-
/** @description The property's type: one of the field types a type's `fields` take, except `thumbnail`. */
|
|
2230
|
+
/** @description The property's type: one of the field types a type's `fields` take, except `thumbnail` and `status`. */
|
|
2227
2231
|
type: string;
|
|
2228
2232
|
/** @description What the property holds. */
|
|
2229
2233
|
description?: string;
|
|
@@ -2233,7 +2237,7 @@ interface components {
|
|
|
2233
2237
|
enum_values?: string[];
|
|
2234
2238
|
/** @description The type of each element of an `array` property. A write is refused if an element is not a value of that type. It can't be `thumbnail`. */
|
|
2235
2239
|
items_type?: string;
|
|
2236
|
-
/** @description A refinement of a `string` property. `url`, `email`, `date` and `datetime` store it as that type. `bcp47` and `iso3166` only label it. It can't be `thumbnail`. */
|
|
2240
|
+
/** @description A refinement of a `string` property. `url`, `email`, `date` and `datetime` store it as that type. `bcp47` and `iso3166` only label it, and `currency` limits it to three capital letters. It can't be `thumbnail`. */
|
|
2237
2241
|
format?: string;
|
|
2238
2242
|
};
|
|
2239
2243
|
/** @description A lever that applies to the types it names. */
|
|
@@ -2359,6 +2363,8 @@ interface components {
|
|
|
2359
2363
|
created_at: string;
|
|
2360
2364
|
/** @description When the item was last written, in UTC. A tag or extension write moves it too. */
|
|
2361
2365
|
updated_at: string;
|
|
2366
|
+
/** @description When the item went to the trash, in UTC, or when a `system.*` item was revoked. A later write to the item leaves it as it is, and a restore clears it. `null` for an item outside the trash, and for one an archive restored to the trash without a time. */
|
|
2367
|
+
trashed_at: string | null;
|
|
2362
2368
|
/** @description Always `true` where present: the item went to the trash with another item, through a cascading edge such as `parent-of`. Present while it stays in the trash. Absent on an item trashed on its own. */
|
|
2363
2369
|
trashed_by_cascade?: boolean;
|
|
2364
2370
|
/** @description The ID of the item whose trash took this one into the trash, beside `trashed_by_cascade`, whatever became of that item since. Present only if you can read that item's type. */
|
|
@@ -2537,7 +2543,7 @@ interface components {
|
|
|
2537
2543
|
title_field?: string;
|
|
2538
2544
|
/** @description The field that holds an item's body for display. The field holds Markdown. */
|
|
2539
2545
|
body_field?: string;
|
|
2540
|
-
/** @description The icon
|
|
2546
|
+
/** @description The type's icon, as an Iconify ID, `<set>:<name>`, from a pinned version of `lucide` or `simple-icons`, such as `lucide:calendar-days`. On a type read back, the owner's own choice replaces the author's. */
|
|
2541
2547
|
icon?: string;
|
|
2542
2548
|
} & {
|
|
2543
2549
|
[key: string]: unknown;
|
|
@@ -3923,7 +3929,8 @@ interface components {
|
|
|
3923
3929
|
next_cursor: string | null;
|
|
3924
3930
|
};
|
|
3925
3931
|
/** @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"]["
|
|
3932
|
+
ListedType: components["schemas"]["TypeDefinition"] & {
|
|
3933
|
+
provenance: components["schemas"]["TypeProvenance"] & unknown;
|
|
3927
3934
|
/** @description The structural roles the type declares itself, without those it only inherits. Empty if it declares none. */
|
|
3928
3935
|
own_roles: components["schemas"]["TypeRole"][];
|
|
3929
3936
|
};
|
|
@@ -3935,35 +3942,82 @@ interface components {
|
|
|
3935
3942
|
/** @description One field of a type: its type, and how items may fill it. */
|
|
3936
3943
|
FieldDefinition: {
|
|
3937
3944
|
/**
|
|
3938
|
-
* @description The field's type. A `thumbnail`
|
|
3945
|
+
* @description The field's type. A `thumbnail` is a base64 `data:` URI of a PNG, JPEG or WebP image up to 16 KiB, never `title`, `body`, `description` or `name`; a `status` is a word from `status_values`. A type has at most one of each, never as `items_type`.
|
|
3939
3946
|
* @enum {string}
|
|
3940
3947
|
*/
|
|
3941
|
-
type: "string" | "number" | "integer" | "boolean" | "url" | "email" | "datetime" | "date" | "enum" | "array" | "object" | "thumbnail";
|
|
3948
|
+
type: "string" | "number" | "integer" | "boolean" | "url" | "email" | "datetime" | "date" | "enum" | "array" | "object" | "thumbnail" | "status";
|
|
3949
|
+
/** @description A name for people to read, up to 100 characters. Leave it out and a type read answers the nearest one a type above names, else one made from the field's name, such as `Due At` for `due_at`. The type list answers only the declared label. */
|
|
3950
|
+
label?: string;
|
|
3942
3951
|
/** @description What the field holds. */
|
|
3943
3952
|
description?: string;
|
|
3944
3953
|
/** @description `true` if an item of the type must have a value for it. */
|
|
3945
3954
|
required?: boolean;
|
|
3946
3955
|
/** @description The values an `enum` field allows. */
|
|
3947
3956
|
enum_values?: string[];
|
|
3957
|
+
/** @description The words a `status` field takes, each in a group: `not_started`, `in_progress`, `completed` or `canceled`. A subtype lists only the words it adds. A type read answers every word, inherited first; the type list answers the type's own. */
|
|
3958
|
+
status_values?: components["schemas"]["StatusValue"][];
|
|
3948
3959
|
/** @description The type of each element of an `array` field. A write is refused if an element is not a value of that type. */
|
|
3949
3960
|
items_type?: string;
|
|
3961
|
+
/** @description The members of each entry of an `array` field whose `items_type` is `object`, by name. A write is refused if an entry has another member, lacks a required one, holds a value a member does not take, or has none. */
|
|
3962
|
+
items_fields?: {
|
|
3963
|
+
[key: string]: components["schemas"]["EntryMember"];
|
|
3964
|
+
};
|
|
3950
3965
|
/**
|
|
3951
|
-
* @description
|
|
3966
|
+
* @description Refines a `string` field or an array of strings. `url`, `email`, `datetime`, `date` and `thumbnail` become the `type` or `items_type`. `bcp47`, `iso3166`, `currency` and `phone` stay as `format`; a `currency` is three capital letters, such as `GBP`.
|
|
3952
3967
|
* @enum {string}
|
|
3953
3968
|
*/
|
|
3954
|
-
format?: "url" | "email" | "datetime" | "date" | "thumbnail" | "bcp47" | "iso3166";
|
|
3969
|
+
format?: "url" | "email" | "datetime" | "date" | "thumbnail" | "bcp47" | "iso3166" | "currency" | "phone";
|
|
3955
3970
|
/** @description `false` if full-text search should skip the field. Items still return it. */
|
|
3956
3971
|
searchable?: boolean;
|
|
3957
3972
|
/** @description The longest value a `string` or `enum` field allows. */
|
|
3958
3973
|
maxLength?: number;
|
|
3959
3974
|
/** @description The most elements an `array` field allows. */
|
|
3960
3975
|
maxItems?: number;
|
|
3976
|
+
/** @description The lowest value the field allows, itself included. Only a `number` or `integer` field takes it. A subtype may raise it, never lower or drop it. */
|
|
3977
|
+
minimum?: number;
|
|
3978
|
+
/** @description The highest value the field allows, itself included. Only a `number` or `integer` field takes it. A subtype may lower it, never raise or drop it. */
|
|
3979
|
+
maximum?: number;
|
|
3961
3980
|
} & {
|
|
3962
3981
|
[key: string]: unknown;
|
|
3963
3982
|
};
|
|
3964
|
-
/** @description
|
|
3965
|
-
|
|
3966
|
-
|
|
3983
|
+
/** @description One word a `status` field takes, with its group. */
|
|
3984
|
+
StatusValue: {
|
|
3985
|
+
/** @description The word, such as `in_review`: a lowercase letter, then up to 63 lowercase letters, digits and underscores. */
|
|
3986
|
+
value: string;
|
|
3987
|
+
/**
|
|
3988
|
+
* @description The group the word belongs to.
|
|
3989
|
+
* @enum {string}
|
|
3990
|
+
*/
|
|
3991
|
+
group: "not_started" | "in_progress" | "completed" | "canceled";
|
|
3992
|
+
};
|
|
3993
|
+
/** @description One member of the entries of an `array` field. */
|
|
3994
|
+
EntryMember: {
|
|
3995
|
+
/**
|
|
3996
|
+
* @description The member's type: `string`, `email`, `url`, `enum`, `boolean`, `integer`, `number`, `date` or `datetime`.
|
|
3997
|
+
* @enum {string}
|
|
3998
|
+
*/
|
|
3999
|
+
type: "string" | "number" | "integer" | "boolean" | "url" | "email" | "datetime" | "date" | "enum" | "array" | "object" | "thumbnail" | "status";
|
|
4000
|
+
/** @description A name for people to read, up to 100 characters. Leave it out and a type read answers the nearest one a type above names, else one made from the member's name, such as `Due At` for `due_at`. The type list answers only the declared label. */
|
|
4001
|
+
label?: string;
|
|
4002
|
+
/** @description What the member holds. */
|
|
4003
|
+
description?: string;
|
|
4004
|
+
/** @description `true` if every entry must have the member. */
|
|
4005
|
+
required?: boolean;
|
|
4006
|
+
/** @description The values an `enum` member allows. */
|
|
4007
|
+
enum_values?: string[];
|
|
4008
|
+
/**
|
|
4009
|
+
* @description A refinement of a `string` member, as a field's `format`.
|
|
4010
|
+
* @enum {string}
|
|
4011
|
+
*/
|
|
4012
|
+
format?: "url" | "email" | "datetime" | "date" | "thumbnail" | "bcp47" | "iso3166" | "currency" | "phone";
|
|
4013
|
+
/** @description The longest value a `string` or `enum` member allows. */
|
|
4014
|
+
maxLength?: number;
|
|
4015
|
+
/** @description The lowest value the member allows, itself included. Only a `number` or `integer` member takes it. */
|
|
4016
|
+
minimum?: number;
|
|
4017
|
+
/** @description The highest value the member allows, itself included. Only a `number` or `integer` member takes it. */
|
|
4018
|
+
maximum?: number;
|
|
4019
|
+
} & {
|
|
4020
|
+
[key: string]: unknown;
|
|
3967
4021
|
};
|
|
3968
4022
|
/** @description A type says which fields the items of that type hold, and what else Marfa does for them. */
|
|
3969
4023
|
TypeDefinition: {
|
|
@@ -3971,6 +4025,8 @@ interface components {
|
|
|
3971
4025
|
id: string;
|
|
3972
4026
|
/** @description The type's name for people to read. */
|
|
3973
4027
|
label?: string;
|
|
4028
|
+
/** @description The type's plural name for people to read, such as `People`. Never inherited. Left out of the list of types where the type declares none. */
|
|
4029
|
+
plural?: string;
|
|
3974
4030
|
/** @description What the type is for. */
|
|
3975
4031
|
description?: string;
|
|
3976
4032
|
/** @description The identifier of the type this one inherits from. */
|
|
@@ -3992,6 +4048,12 @@ interface components {
|
|
|
3992
4048
|
merge_policy?: components["schemas"]["MergePolicy"] & unknown;
|
|
3993
4049
|
retention_policy?: components["schemas"]["RetentionPolicy"] & unknown;
|
|
3994
4050
|
};
|
|
4051
|
+
/** @description A type says which fields the items of that type hold, and what else Marfa does for them. */
|
|
4052
|
+
RegisteredType: components["schemas"]["TypeDefinition"] & {
|
|
4053
|
+
/** @description The type's plural name for people to read, such as `People`: the one the type declares, else one made from its label. Never inherited. */
|
|
4054
|
+
plural: string;
|
|
4055
|
+
provenance: components["schemas"]["TypeProvenance"] & unknown;
|
|
4056
|
+
};
|
|
3995
4057
|
/** @description An error response. */
|
|
3996
4058
|
TypeNotFoundRefusal: {
|
|
3997
4059
|
/** @description What went wrong. */
|
|
@@ -4078,8 +4140,10 @@ interface components {
|
|
|
4078
4140
|
version?: number;
|
|
4079
4141
|
/** @description The identifier of the type this one inherits from. To set or change it, you need write on it, unless Marfa ships it. Leave it out for a type with no parent. */
|
|
4080
4142
|
parent?: string;
|
|
4081
|
-
/** @description A name for people to read. Leave it out and Marfa derives one from the last segment of the identifier. */
|
|
4143
|
+
/** @description A name for people to read, up to 100 characters. Leave it out and Marfa derives one from the last segment of the identifier. */
|
|
4082
4144
|
label?: string;
|
|
4145
|
+
/** @description The label's plural, up to 100 characters, such as `People`. Leave it out and Marfa adds `s`, `es` or `ies` to the label by the regular English rule. */
|
|
4146
|
+
plural?: string;
|
|
4083
4147
|
/** @description What the type is for. */
|
|
4084
4148
|
description?: string;
|
|
4085
4149
|
/** @description The structural roles the type plays: `container`. An edge type's `role:<name>` constraint matches types by role. */
|
|
@@ -4162,8 +4226,10 @@ interface components {
|
|
|
4162
4226
|
version?: number;
|
|
4163
4227
|
/** @description The identifier of the type this one inherits from. To set or change it, you need write on it, unless Marfa ships it. Leave it out for a type with no parent. */
|
|
4164
4228
|
parent?: string;
|
|
4165
|
-
/** @description A name for people to read. Leave it out and Marfa derives one from the last segment of the identifier. */
|
|
4229
|
+
/** @description A name for people to read, up to 100 characters. Leave it out and Marfa derives one from the last segment of the identifier. */
|
|
4166
4230
|
label?: string;
|
|
4231
|
+
/** @description The label's plural, up to 100 characters, such as `People`. Leave it out and Marfa adds `s`, `es` or `ies` to the label by the regular English rule. */
|
|
4232
|
+
plural?: string;
|
|
4167
4233
|
/** @description What the type is for. */
|
|
4168
4234
|
description?: string;
|
|
4169
4235
|
/** @description The structural roles the type plays: `container`. An edge type's `role:<name>` constraint matches types by role. */
|
|
@@ -4201,7 +4267,7 @@ interface components {
|
|
|
4201
4267
|
};
|
|
4202
4268
|
/** @description The icon to show for a type. */
|
|
4203
4269
|
TypeIconRequest: {
|
|
4204
|
-
/** @description
|
|
4270
|
+
/** @description An Iconify ID, `<set>:<name>`, from a set and version Marfa pins: `lucide` or `simple-icons`, such as `lucide:calendar-days` or `simple-icons:github`. */
|
|
4205
4271
|
icon: string;
|
|
4206
4272
|
};
|
|
4207
4273
|
/** @description An error response. */
|
|
@@ -4492,7 +4558,7 @@ interface components {
|
|
|
4492
4558
|
};
|
|
4493
4559
|
};
|
|
4494
4560
|
/**
|
|
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,
|
|
4561
|
+
* @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, removes retired platform types and cancels bulk jobs; `connectors.manage` administers connector registrations and their endpoints, and clears their retained state; and `blobs.manage` manages every blob.
|
|
4496
4562
|
* @enum {string}
|
|
4497
4563
|
*/
|
|
4498
4564
|
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";
|
|
@@ -6388,9 +6454,9 @@ interface operations {
|
|
|
6388
6454
|
listItems: {
|
|
6389
6455
|
parameters: {
|
|
6390
6456
|
query?: {
|
|
6391
|
-
/** @description Only return items of
|
|
6457
|
+
/** @description Only return items of these types and their subtypes: a comma-separated list of up to 10, such as `core.note,app.*`. A wildcard such as `core.*` matches every type under that prefix. */
|
|
6392
6458
|
type?: string;
|
|
6393
|
-
/** @description Only return items in
|
|
6459
|
+
/** @description Only return items in these lifecycle states: one state or a comma-separated list, such as `active,archived`. Without it, you get `active` items. Send `any` on its own to get every state. */
|
|
6394
6460
|
state?: string;
|
|
6395
6461
|
/** @description Only return items stamped with this source. */
|
|
6396
6462
|
source?: string;
|
|
@@ -6398,11 +6464,11 @@ interface operations {
|
|
|
6398
6464
|
tier?: "library" | "feed" | "all";
|
|
6399
6465
|
/** @description Comma-separated tags. Only return items that carry all of them. */
|
|
6400
6466
|
tags?: string;
|
|
6401
|
-
/** @description A filter expression. A term naming an edge type, `edge[<type>]` or `backref[<type>]`,
|
|
6467
|
+
/** @description A filter expression. A term naming an edge type, `edge[<type>]` or `backref[<type>]`, needs read on it; `edge[<type>]=<id>` also works as a query parameter. `status_group` matches by status group; `properties.<field>.<member>`, by a list entry. */
|
|
6402
6468
|
filter?: string;
|
|
6403
|
-
/** @description Field to sort by: `created_at`, `updated_at`, `occurred_at` or `properties.<field
|
|
6469
|
+
/** @description Field to sort by: `created_at`, `updated_at`, `occurred_at` or `properties.<field>`. Properties sort by stored value: an enum sorts alphabetically. Defaults to `created_at`, or for `state=trashed` alone the trash time, which you can't name here. */
|
|
6404
6470
|
sort?: string;
|
|
6405
|
-
/** @description Sort direction */
|
|
6471
|
+
/** @description Sort direction. Defaults to `desc`. */
|
|
6406
6472
|
direction?: "asc" | "desc";
|
|
6407
6473
|
/** @description Only return items whose own time (`occurred_at`, else `created_at`) is after this time. For the modification time, use `updated_after`. */
|
|
6408
6474
|
occurred_after?: string;
|
|
@@ -6412,7 +6478,7 @@ interface operations {
|
|
|
6412
6478
|
updated_after?: string;
|
|
6413
6479
|
/** @description Only return items changed before this time. It doesn't change the ordering, so it works with any `sort`. */
|
|
6414
6480
|
updated_before?: string;
|
|
6415
|
-
/** @description The maximum number of results to return. */
|
|
6481
|
+
/** @description The maximum number of results to return. Up to 500; a larger value is read as 500. */
|
|
6416
6482
|
limit?: number;
|
|
6417
6483
|
/** @description The `next_cursor` from the previous page. Leave it out to get the first page. */
|
|
6418
6484
|
cursor?: string;
|
|
@@ -6618,7 +6684,7 @@ interface operations {
|
|
|
6618
6684
|
capture_longitude?: number;
|
|
6619
6685
|
/** @description Tags to put on the item: at most 100, each up to 128 characters. */
|
|
6620
6686
|
tags?: string[];
|
|
6621
|
-
/** @description Edges to create with the item, as edge type to a list of target item IDs. The new item is the source. Marfa creates the item and all its edges, or none.
|
|
6687
|
+
/** @description Edges to create with the item, as edge type to a list of target item IDs. The new item is the source. Marfa creates the item and all its edges, or none. When the request lands on an item by its natural key, each type you name replaces that item's edges of the type, and an edge to an ID you still list stays as it is. A new edge made this way carries no properties, so an edge type that requires one refuses the write. */
|
|
6622
6688
|
edges?: {
|
|
6623
6689
|
[key: string]: string[];
|
|
6624
6690
|
};
|
|
@@ -7302,7 +7368,7 @@ interface operations {
|
|
|
7302
7368
|
occurred_at?: string;
|
|
7303
7369
|
/** @description The item's new `source_id`. Marfa moves its natural key under the item's own `source`, which never changes. */
|
|
7304
7370
|
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.
|
|
7371
|
+
/** @description Edge types to replace, each mapped to the item IDs it should now point to. An edge to an ID you still list stays as it is, with its properties. An empty list removes every edge of that type. Types you don't name are untouched. A new edge made this way carries no properties, so an edge type that requires one refuses the write. */
|
|
7306
7372
|
edges?: {
|
|
7307
7373
|
[key: string]: string[];
|
|
7308
7374
|
};
|
|
@@ -9184,7 +9250,7 @@ interface operations {
|
|
|
9184
9250
|
version?: number;
|
|
9185
9251
|
/** @description Tags to put on the item: at most 100, each up to 128 characters. */
|
|
9186
9252
|
tags?: string[];
|
|
9187
|
-
/** @description Edge types to set, each mapped to the target item IDs the item should now point to. Types you don't name are untouched.
|
|
9253
|
+
/** @description Edge types to set, each mapped to the target item IDs the item should now point to. An edge to an ID you still list stays as it is, with its properties. Types you don't name are untouched. A new edge made this way carries no properties, so an edge type that requires one refuses the write. */
|
|
9188
9254
|
edges?: {
|
|
9189
9255
|
[key: string]: string[];
|
|
9190
9256
|
};
|
|
@@ -9382,9 +9448,9 @@ interface operations {
|
|
|
9382
9448
|
query?: {
|
|
9383
9449
|
/** @description Grouping axis. Defaults to `state`. */
|
|
9384
9450
|
by?: "state" | "type";
|
|
9385
|
-
/** @description Only return items of
|
|
9451
|
+
/** @description Only return items of these types and their subtypes: a comma-separated list of up to 10, such as `core.note,app.*`. A wildcard such as `core.*` matches every type under that prefix. */
|
|
9386
9452
|
type?: string;
|
|
9387
|
-
/** @description Only count items in
|
|
9453
|
+
/** @description Only count items in these lifecycle states: one state or a comma-separated list, such as `active,archived`. Without it, every state is counted, as with `any`. */
|
|
9388
9454
|
state?: string;
|
|
9389
9455
|
/** @description Only return items stamped with this source. */
|
|
9390
9456
|
source?: string;
|
|
@@ -9392,7 +9458,7 @@ interface operations {
|
|
|
9392
9458
|
tier?: "library" | "feed" | "all";
|
|
9393
9459
|
/** @description Comma-separated tags. Only return items that carry all of them. */
|
|
9394
9460
|
tags?: string;
|
|
9395
|
-
/** @description A filter expression. A term naming an edge type, `edge[<type>]` or `backref[<type>]`,
|
|
9461
|
+
/** @description A filter expression. A term naming an edge type, `edge[<type>]` or `backref[<type>]`, needs read on it; `edge[<type>]=<id>` also works as a query parameter. `status_group` matches by status group; `properties.<field>.<member>`, by a list entry. */
|
|
9396
9462
|
filter?: string;
|
|
9397
9463
|
/** @description Only return items whose own time (`occurred_at`, else `created_at`) is after this time. For the modification time, use `updated_after`. */
|
|
9398
9464
|
occurred_after?: string;
|
|
@@ -9699,9 +9765,9 @@ interface operations {
|
|
|
9699
9765
|
listOccurrences: {
|
|
9700
9766
|
parameters: {
|
|
9701
9767
|
query: {
|
|
9702
|
-
/** @description Window start, ISO 8601. An event overlaps
|
|
9768
|
+
/** @description Window start, ISO 8601. No zone means UTC; a date is its UTC midnight. An event overlaps if it starts before `to` and ends after this. Its end is `ends_at`, else start plus `duration`. A whole-day event fills whole days in its `timezone`, else UTC. */
|
|
9703
9769
|
from: string;
|
|
9704
|
-
/** @description Window end, ISO 8601. The window can span at most 400 days. An event with no length is in the window if it starts at or after `from` and before this time. */
|
|
9770
|
+
/** @description Window end, ISO 8601, read as `from` is. The window can span at most 400 days. An event with no length is in the window if it starts at or after `from` and before this time. */
|
|
9705
9771
|
to: string;
|
|
9706
9772
|
/** @description Only return events of this type, or of the event types a wildcard matches. */
|
|
9707
9773
|
type?: string;
|
|
@@ -13223,7 +13289,7 @@ interface operations {
|
|
|
13223
13289
|
updated_after?: string;
|
|
13224
13290
|
/** @description Only return edges that changed before this RFC 3339 time. It doesn't change the order. */
|
|
13225
13291
|
updated_before?: string;
|
|
13226
|
-
/** @description The maximum number of results to return. */
|
|
13292
|
+
/** @description The maximum number of results to return. Up to 500; a larger value is read as 500. */
|
|
13227
13293
|
limit?: number;
|
|
13228
13294
|
/** @description The `next_cursor` from the previous page. Leave it out to get the first page. */
|
|
13229
13295
|
cursor?: string;
|
|
@@ -14473,7 +14539,7 @@ interface operations {
|
|
|
14473
14539
|
query?: {
|
|
14474
14540
|
/** @description Only return edges of these edge types, comma-separated, up to 10. */
|
|
14475
14541
|
edge_type?: string;
|
|
14476
|
-
/** @description The maximum number of results to return. */
|
|
14542
|
+
/** @description The maximum number of results to return. Up to 500; a larger value is read as 500. */
|
|
14477
14543
|
limit?: number;
|
|
14478
14544
|
/** @description The `next_cursor` from the previous page. Leave it out to get the first page. */
|
|
14479
14545
|
cursor?: string;
|
|
@@ -14653,7 +14719,7 @@ interface operations {
|
|
|
14653
14719
|
query?: {
|
|
14654
14720
|
/** @description Only return edges of these edge types, comma-separated, up to 10. */
|
|
14655
14721
|
edge_type?: string;
|
|
14656
|
-
/** @description The maximum number of results to return. */
|
|
14722
|
+
/** @description The maximum number of results to return. Up to 500; a larger value is read as 500. */
|
|
14657
14723
|
limit?: number;
|
|
14658
14724
|
/** @description The `next_cursor` from the previous page. Leave it out to get the first page. */
|
|
14659
14725
|
cursor?: string;
|
|
@@ -14812,9 +14878,9 @@ interface operations {
|
|
|
14812
14878
|
query: {
|
|
14813
14879
|
/** @description The text to search for. Marfa matches every word by its stem, in any order, and the last word as the start of a word. Wrap the query in double quotes to match a phrase. */
|
|
14814
14880
|
q: string;
|
|
14815
|
-
/** @description Only return items of
|
|
14881
|
+
/** @description Only return items of these types and their subtypes: a comma-separated list of up to 10, such as `core.note,app.*`. A wildcard such as `core.*` matches every type under that prefix. */
|
|
14816
14882
|
type?: string;
|
|
14817
|
-
/** @description Only return items in
|
|
14883
|
+
/** @description Only return items in these lifecycle states: one state or a comma-separated list, such as `active,archived`. Without it, you get `active` items. `any` on its own searches every state. Trashed items are never searchable. */
|
|
14818
14884
|
state?: string;
|
|
14819
14885
|
/** @description Only return items stamped with this source. */
|
|
14820
14886
|
source?: string;
|
|
@@ -16285,7 +16351,7 @@ interface operations {
|
|
|
16285
16351
|
};
|
|
16286
16352
|
};
|
|
16287
16353
|
/**
|
|
16288
|
-
* @description `invalid_schema`: `icon` isn't the
|
|
16354
|
+
* @description `invalid_schema`: `icon` isn't the ID of an icon in a pinned set (`details.errors` names it).
|
|
16289
16355
|
* - `validation_error`: the query has a parameter this endpoint doesn't take.
|
|
16290
16356
|
*/
|
|
16291
16357
|
400: {
|
|
@@ -19796,7 +19862,7 @@ interface operations {
|
|
|
19796
19862
|
};
|
|
19797
19863
|
};
|
|
19798
19864
|
/**
|
|
19799
|
-
* @description - `validation_error`: a setting is malformed or undeclared, such as a `system.*` type or a `
|
|
19865
|
+
* @description - `validation_error`: a setting is malformed or undeclared, such as a `system.*` type, a `..` placement or a `backref` filter. `details.errors[0].path` or `details.unknown_body_fields` names it.
|
|
19800
19866
|
* - `missing_required_field`: `title` is missing.
|
|
19801
19867
|
* - `unknown_type`: a setting's type is unknown.
|
|
19802
19868
|
* - `invalid_properties`: `defaults.properties` has a whole number a 64-bit float can't keep.
|
|
@@ -30833,9 +30899,9 @@ interface operations {
|
|
|
30833
30899
|
exportArchive: {
|
|
30834
30900
|
parameters: {
|
|
30835
30901
|
query?: {
|
|
30836
|
-
/** @description Only export items of
|
|
30902
|
+
/** @description Only export items of these types and their subtypes: a comma-separated list of up to 10, such as `core.note,app.*`. A wildcard such as `core.*` matches every type under that prefix. */
|
|
30837
30903
|
type?: string;
|
|
30838
|
-
/** @description Only export items in
|
|
30904
|
+
/** @description Only export items in these lifecycle states: one state or a comma-separated list, such as `active,archived`. Without it, you get every state but `trashed`. Send `any` on its own to include trashed items too. */
|
|
30839
30905
|
state?: string;
|
|
30840
30906
|
/** @description Only export items stamped with this source. */
|
|
30841
30907
|
source?: string;
|
|
@@ -31056,7 +31122,7 @@ interface operations {
|
|
|
31056
31122
|
type_icons_added: number;
|
|
31057
31123
|
/** @description How many of the owner's type icons Marfa skipped. */
|
|
31058
31124
|
type_icons_skipped: number;
|
|
31059
|
-
/** @description How many of the owner's type icons Marfa skipped for each reason: `already_set` when the instance already has an owner icon for the type, `unknown_icon` when the
|
|
31125
|
+
/** @description How many of the owner's type icons Marfa skipped for each reason: `already_set` when the instance already has an owner icon for the type, `unknown_icon` when the icon isn't the ID of an icon in a set Marfa pins. */
|
|
31060
31126
|
type_icons_skipped_reasons: {
|
|
31061
31127
|
[key: string]: number;
|
|
31062
31128
|
};
|
|
@@ -31065,7 +31131,7 @@ interface operations {
|
|
|
31065
31131
|
};
|
|
31066
31132
|
/**
|
|
31067
31133
|
* @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.
|
|
31068
|
-
* - `invalid_properties`: a `core` or `system` item breaks its type
|
|
31134
|
+
* - `invalid_properties`: a `core` or `system` item breaks its type or its schedule can't unfold, or `strict_mode` refuses a property.
|
|
31069
31135
|
* - `invalid_schema`: an archived type is invalid or has an unknown key.
|
|
31070
31136
|
*/
|
|
31071
31137
|
400: {
|