@withmarfa/client 0.0.61 → 0.0.63
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 +66 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -2093,7 +2093,7 @@ interface paths {
|
|
|
2093
2093
|
};
|
|
2094
2094
|
/**
|
|
2095
2095
|
* Get instance metrics
|
|
2096
|
-
* @description Returns instance-wide counters and process uptime. Requires `instance.read`; the counters include records outside your content permissions.
|
|
2096
|
+
* @description Returns instance-wide counters, how much memory, CPU and disk this server uses, and process uptime. Requires `instance.read`; the counters include records outside your content permissions.
|
|
2097
2097
|
*/
|
|
2098
2098
|
get: operations["getInstanceMetrics"];
|
|
2099
2099
|
put?: never;
|
|
@@ -5306,6 +5306,13 @@ interface components {
|
|
|
5306
5306
|
/** @description A removal waits to be confirmed only if it takes more than this fraction of the folder's files. Absent means 0.25. */
|
|
5307
5307
|
fraction?: number;
|
|
5308
5308
|
};
|
|
5309
|
+
/** @description New files wait to be confirmed when a scan would add more than `files` files and more than `fraction` of the folder's files. */
|
|
5310
|
+
FolderAdditionThreshold: {
|
|
5311
|
+
/** @description New files wait to be confirmed only if they number more than this. Absent means 50. */
|
|
5312
|
+
files?: number;
|
|
5313
|
+
/** @description New files wait to be confirmed only if they number more than this fraction of the folder's files. Absent means 0.25. */
|
|
5314
|
+
fraction?: number;
|
|
5315
|
+
};
|
|
5309
5316
|
/** @description An error response. */
|
|
5310
5317
|
InvalidIdOrInvalidPropertiesOrInvalidTransitionOrMissingRequiredFieldOrUnknownTypeOrValidationErrorRefusal: {
|
|
5311
5318
|
/** @description What went wrong. */
|
|
@@ -6614,6 +6621,8 @@ interface operations {
|
|
|
6614
6621
|
tags?: string;
|
|
6615
6622
|
/** @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. */
|
|
6616
6623
|
filter?: string;
|
|
6624
|
+
/** @description An item ID. Only return that item and the items under it by `parent-of` edges, at any depth, walking only through items you can read. Needs read on `parent-of` edges. */
|
|
6625
|
+
beneath?: string;
|
|
6617
6626
|
/** @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. */
|
|
6618
6627
|
sort?: string;
|
|
6619
6628
|
/** @description Sort direction. Defaults to `desc`. */
|
|
@@ -9791,6 +9800,8 @@ interface operations {
|
|
|
9791
9800
|
tags?: string;
|
|
9792
9801
|
/** @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. */
|
|
9793
9802
|
filter?: string;
|
|
9803
|
+
/** @description An item ID. Only return that item and the items under it by `parent-of` edges, at any depth, walking only through items you can read. Needs read on `parent-of` edges. */
|
|
9804
|
+
beneath?: string;
|
|
9794
9805
|
/** @description Only return items whose own time (`occurred_at`, else `created_at`) is after this time. For the modification time, use `updated_after`. */
|
|
9795
9806
|
occurred_after?: string;
|
|
9796
9807
|
/** @description Only return items whose own time (`occurred_at`, else `created_at`) is before this time. */
|
|
@@ -20173,6 +20184,14 @@ interface operations {
|
|
|
20173
20184
|
[key: string]: string;
|
|
20174
20185
|
};
|
|
20175
20186
|
removal_threshold?: components["schemas"]["FolderRemovalThreshold"];
|
|
20187
|
+
/** @description Seconds between the passes of a watch that read every file in the folder, in case the system missed a file event: 60 to 86400. Absent means 600. */
|
|
20188
|
+
full_pass_interval_seconds?: number;
|
|
20189
|
+
addition_threshold?: components["schemas"]["FolderAdditionThreshold"];
|
|
20190
|
+
/**
|
|
20191
|
+
* @description What a machine does with a new file whose item the query would not hold. `send` makes it an item and keeps it in the folder, flagged unmatched. `hold` leaves it on the disk, not sent and with no item, until it matches the query or the setting is `send`. A file that already has an item is never affected. Absent means `send`.
|
|
20192
|
+
* @enum {string}
|
|
20193
|
+
*/
|
|
20194
|
+
outside_query?: "send" | "hold";
|
|
20176
20195
|
};
|
|
20177
20196
|
};
|
|
20178
20197
|
};
|
|
@@ -20390,6 +20409,14 @@ interface operations {
|
|
|
20390
20409
|
[key: string]: string;
|
|
20391
20410
|
};
|
|
20392
20411
|
removal_threshold?: components["schemas"]["FolderRemovalThreshold"];
|
|
20412
|
+
/** @description Seconds between the passes of a watch that read every file in the folder, in case the system missed a file event: 60 to 86400. Absent means 600. */
|
|
20413
|
+
full_pass_interval_seconds?: number;
|
|
20414
|
+
addition_threshold?: components["schemas"]["FolderAdditionThreshold"];
|
|
20415
|
+
/**
|
|
20416
|
+
* @description What a machine does with a new file whose item the query would not hold. `send` makes it an item and keeps it in the folder, flagged unmatched. `hold` leaves it on the disk, not sent and with no item, until it matches the query or the setting is `send`. A file that already has an item is never affected. Absent means `send`.
|
|
20417
|
+
* @enum {string}
|
|
20418
|
+
*/
|
|
20419
|
+
outside_query?: "send" | "hold";
|
|
20393
20420
|
};
|
|
20394
20421
|
};
|
|
20395
20422
|
};
|
|
@@ -30775,7 +30802,44 @@ interface operations {
|
|
|
30775
30802
|
webhooks: components["schemas"]["MetricCount"] & unknown;
|
|
30776
30803
|
/** @description Seconds since this server process started. */
|
|
30777
30804
|
uptime_seconds: number;
|
|
30778
|
-
/** @description
|
|
30805
|
+
/** @description What this server process costs, since it started. */
|
|
30806
|
+
process: {
|
|
30807
|
+
/** @description The release this server runs. */
|
|
30808
|
+
release: string;
|
|
30809
|
+
/** @description Memory the server process holds in RAM, in bytes. `null` if it can't be read. */
|
|
30810
|
+
memory_rss_bytes: number | null;
|
|
30811
|
+
/** @description The most memory the process has held in RAM, in bytes. `null` if it can't be read. */
|
|
30812
|
+
memory_rss_peak_bytes: number | null;
|
|
30813
|
+
/** @description Memory the JavaScript engine uses for live objects, in bytes. `null` if it can't be read. */
|
|
30814
|
+
heap_used_bytes: number | null;
|
|
30815
|
+
/** @description Memory the JavaScript engine has reserved, in bytes. `null` if it can't be read. */
|
|
30816
|
+
heap_total_bytes: number | null;
|
|
30817
|
+
/** @description CPU seconds the process has spent on its own work since it started. `null` if it can't be read. */
|
|
30818
|
+
cpu_user_seconds: number | null;
|
|
30819
|
+
/** @description CPU seconds the process has spent in the operating system since it started. `null` if it can't be read. */
|
|
30820
|
+
cpu_system_seconds: number | null;
|
|
30821
|
+
};
|
|
30822
|
+
/** @description Database size and row counts. */
|
|
30823
|
+
storage: {
|
|
30824
|
+
/** @description Size of the database file, in bytes. `null` if it can't be read. */
|
|
30825
|
+
database_bytes: number | null;
|
|
30826
|
+
/** @description Size of the database's write-ahead log file, in bytes. 0 when there is none. `null` if it can't be read. */
|
|
30827
|
+
wal_bytes: number | null;
|
|
30828
|
+
/** @description Row counts of the largest tables, as of `counted_at`. `null` if a count can't be read, and all `null` until the first count finishes. */
|
|
30829
|
+
rows: {
|
|
30830
|
+
/** @description Number of items. */
|
|
30831
|
+
items: number | null;
|
|
30832
|
+
/** @description Number of stored item versions. */
|
|
30833
|
+
versions: number | null;
|
|
30834
|
+
/** @description Number of event log entries. */
|
|
30835
|
+
event_log: number | null;
|
|
30836
|
+
/** @description Number of audit log entries. */
|
|
30837
|
+
audit_log: number | null;
|
|
30838
|
+
};
|
|
30839
|
+
/** @description When the row counts were taken, in UTC. `null` until the first count finishes. A request never counts: when there is no count or it is over an hour old, Marfa starts one in the background. */
|
|
30840
|
+
counted_at: string | null;
|
|
30841
|
+
};
|
|
30842
|
+
/** @description When the item, blob, type, key and webhook counters were collected, in UTC. They are reused for up to a minute. The `process` and `storage` blocks are read on each request. */
|
|
30779
30843
|
cached_at: string;
|
|
30780
30844
|
};
|
|
30781
30845
|
};
|