@myko/core 4.4.0-canary.2 → 4.4.0-canary.3
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/package.json +1 -1
- package/src/generated/CancelSubscription.ts +6 -0
- package/src/generated/ChildEntities.ts +6 -0
- package/src/generated/ChildEntitiesAllTime.ts +6 -0
- package/src/generated/ClearClientWindbackTime.ts +7 -0
- package/src/generated/ClearClientWindbackTimeArgs.ts +3 -0
- package/src/generated/Client.ts +10 -0
- package/src/generated/ClientCount.ts +3 -0
- package/src/generated/ClientId.ts +3 -0
- package/src/generated/ClientStatus.ts +7 -0
- package/src/generated/ClientStatusOutput.ts +3 -0
- package/src/generated/CommandError.ts +3 -0
- package/src/generated/CommandResponse.ts +4 -0
- package/src/generated/CountAllClients.ts +3 -0
- package/src/generated/CountAllServers.ts +3 -0
- package/src/generated/CountClients.ts +4 -0
- package/src/generated/CountServers.ts +4 -0
- package/src/generated/DeleteClient.ts +7 -0
- package/src/generated/DeleteClientArgs.ts +4 -0
- package/src/generated/DeleteClientResult.ts +6 -0
- package/src/generated/DeleteClients.ts +7 -0
- package/src/generated/DeleteClientsArgs.ts +4 -0
- package/src/generated/DeleteClientsResult.ts +6 -0
- package/src/generated/DeleteServer.ts +7 -0
- package/src/generated/DeleteServerArgs.ts +4 -0
- package/src/generated/DeleteServerResult.ts +6 -0
- package/src/generated/DeleteServers.ts +7 -0
- package/src/generated/DeleteServersArgs.ts +4 -0
- package/src/generated/DeleteServersResult.ts +6 -0
- package/src/generated/EntitySearch.ts +21 -0
- package/src/generated/EntitySearchResult.ts +10 -0
- package/src/generated/EntitySnapshotDifference.ts +6 -0
- package/src/generated/EntitySnapshotDifferenceData.ts +7 -0
- package/src/generated/EntityTreeExport.ts +27 -0
- package/src/generated/EventContainer.ts +7 -0
- package/src/generated/EventOptions.ts +21 -0
- package/src/generated/EventsForTransaction.ts +6 -0
- package/src/generated/ExportEntityTree.ts +24 -0
- package/src/generated/ExportedEntity.ts +15 -0
- package/src/generated/FullChildEntities.ts +6 -0
- package/src/generated/GetAllClients.ts +3 -0
- package/src/generated/GetAllServers.ts +3 -0
- package/src/generated/GetClientById.ts +4 -0
- package/src/generated/GetClientsByIds.ts +4 -0
- package/src/generated/GetClientsByQuery.ts +4 -0
- package/src/generated/GetConnectedServer.ts +3 -0
- package/src/generated/GetItemsByTypeAndIds.ts +14 -0
- package/src/generated/GetPeerServers.ts +3 -0
- package/src/generated/GetPersistHealth.ts +8 -0
- package/src/generated/GetServerById.ts +4 -0
- package/src/generated/GetServersByIds.ts +4 -0
- package/src/generated/GetServersByQuery.ts +4 -0
- package/src/generated/ImportItems.ts +19 -0
- package/src/generated/ImportItemsArgs.ts +13 -0
- package/src/generated/ItemStub.ts +7 -0
- package/src/generated/LogLevel.ts +6 -0
- package/src/generated/Loggers.ts +6 -0
- package/src/generated/MEvent.ts +10 -0
- package/src/generated/MEventType.ts +3 -0
- package/src/generated/MykoMessage.ts +19 -0
- package/src/generated/PartialClient.ts +10 -0
- package/src/generated/PartialServer.ts +4 -0
- package/src/generated/PeerAlive.ts +7 -0
- package/src/generated/PersistHealthStatus.ts +34 -0
- package/src/generated/PingData.ts +14 -0
- package/src/generated/QueryError.ts +3 -0
- package/src/generated/QueryWindow.ts +3 -0
- package/src/generated/QueryWindowUpdate.ts +4 -0
- package/src/generated/ReportError.ts +3 -0
- package/src/generated/ReportResponse.ts +4 -0
- package/src/generated/Server.ts +4 -0
- package/src/generated/ServerCount.ts +3 -0
- package/src/generated/ServerId.ts +3 -0
- package/src/generated/ServerLogLevel.ts +6 -0
- package/src/generated/ServerStats.ts +27 -0
- package/src/generated/ServerStatsOutput.ts +20 -0
- package/src/generated/SetClientWindbackTime.ts +11 -0
- package/src/generated/SetClientWindbackTimeArgs.ts +7 -0
- package/src/generated/SetLogLevel.ts +7 -0
- package/src/generated/SetLogLevelArgs.ts +4 -0
- package/src/generated/ViewError.ts +3 -0
- package/src/generated/ViewWindowUpdate.ts +4 -0
- package/src/generated/WindbackStatus.ts +3 -0
- package/src/generated/WindbackStatusOutput.ts +11 -0
- package/src/generated/WrappedCommand.ts +4 -0
- package/src/generated/WrappedItem.ts +7 -0
- package/src/generated/WrappedQuery.ts +5 -0
- package/src/generated/WrappedReport.ts +4 -0
- package/src/generated/WrappedView.ts +5 -0
- package/src/generated/index.ts +580 -0
- package/src/generated/serde_json/JsonValue.ts +3 -0
- package/tsconfig.json +0 -17
package/package.json
CHANGED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Report that fetches all-time child entities (including deleted).
|
|
5
|
+
*/
|
|
6
|
+
export type ChildEntitiesAllTime = { parentType: string, parentId: string, };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Command to clear the windback time for the current client.
|
|
5
|
+
* Returns the client to viewing live state.
|
|
6
|
+
*/
|
|
7
|
+
export type ClearClientWindbackTime = Record<string, never>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
|
2
|
+
import type { ClientId } from "./ClientId";
|
|
3
|
+
import type { ServerId } from "./ServerId";
|
|
4
|
+
|
|
5
|
+
export type Client = { serverId: ServerId,
|
|
6
|
+
/**
|
|
7
|
+
* ISO timestamp for windback mode. When set, the client sees historical state
|
|
8
|
+
* as of this timestamp instead of live state.
|
|
9
|
+
*/
|
|
10
|
+
windback: string | null, id: ClientId, };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
|
2
|
+
import type { ClientId } from "./ClientId";
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Report that returns whether a client is currently connected
|
|
6
|
+
*/
|
|
7
|
+
export type ClientStatus = { clientId: ClientId, };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
|
2
|
+
import type { ClientId } from "./ClientId";
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Command to delete multiple entities by ID
|
|
6
|
+
*/
|
|
7
|
+
export type DeleteClients = { ids: Array<ClientId>, };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
|
2
|
+
import type { ServerId } from "./ServerId";
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Command to delete multiple entities by ID
|
|
6
|
+
*/
|
|
7
|
+
export type DeleteServers = { ids: Array<ServerId>, };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Search for entities by full-text query.
|
|
5
|
+
*
|
|
6
|
+
* Returns matching entity IDs up to the specified limit.
|
|
7
|
+
* If the entity type is not indexed for search, returns an empty result.
|
|
8
|
+
*/
|
|
9
|
+
export type EntitySearch = {
|
|
10
|
+
/**
|
|
11
|
+
* Entity type to search (e.g., "Target", "Scene")
|
|
12
|
+
*/
|
|
13
|
+
entityType: string,
|
|
14
|
+
/**
|
|
15
|
+
* Search query string
|
|
16
|
+
*/
|
|
17
|
+
query: string,
|
|
18
|
+
/**
|
|
19
|
+
* Maximum number of results to return (default: 100)
|
|
20
|
+
*/
|
|
21
|
+
limit: number, };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Result of an entity search.
|
|
5
|
+
*/
|
|
6
|
+
export type EntitySearchResult = {
|
|
7
|
+
/**
|
|
8
|
+
* IDs of entities matching the search query
|
|
9
|
+
*/
|
|
10
|
+
ids: Array<string>, };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Report that computes the difference between entity snapshots.
|
|
5
|
+
*/
|
|
6
|
+
export type EntitySnapshotDifference = { parentType: string, parentId: string, };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
|
2
|
+
import type { ItemStub } from "./ItemStub";
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Data returned by EntitySnapshotDifference report.
|
|
6
|
+
*/
|
|
7
|
+
export type EntitySnapshotDifferenceData = { changed: Array<ItemStub>, added: Array<ItemStub>, removed: Array<ItemStub>, };
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
|
2
|
+
import type { ExportedEntity } from "./ExportedEntity";
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* The complete tree export containing all entities reachable from the root.
|
|
6
|
+
*/
|
|
7
|
+
export type EntityTreeExport = {
|
|
8
|
+
/**
|
|
9
|
+
* Export format version.
|
|
10
|
+
*/
|
|
11
|
+
version: number,
|
|
12
|
+
/**
|
|
13
|
+
* Entity type of the root (e.g., "Project").
|
|
14
|
+
*/
|
|
15
|
+
rootType: string,
|
|
16
|
+
/**
|
|
17
|
+
* ID of the root entity.
|
|
18
|
+
*/
|
|
19
|
+
rootId: string,
|
|
20
|
+
/**
|
|
21
|
+
* ISO 8601 timestamp of when the export was created.
|
|
22
|
+
*/
|
|
23
|
+
exportedAt: string,
|
|
24
|
+
/**
|
|
25
|
+
* All entities in the tree, flattened.
|
|
26
|
+
*/
|
|
27
|
+
entities: Array<ExportedEntity>, };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
|
2
|
+
import type { MEvent } from "./MEvent";
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Container for an event with associated metadata.
|
|
6
|
+
*/
|
|
7
|
+
export type EventContainer = { id: string, event: MEvent, };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Options that can be attached to an event
|
|
5
|
+
*/
|
|
6
|
+
export type EventOptions = {
|
|
7
|
+
/**
|
|
8
|
+
* When true, relationship cascades are skipped for this event.
|
|
9
|
+
* Used to prevent infinite loops during cascade processing.
|
|
10
|
+
*/
|
|
11
|
+
preventRelationshipUpdates: boolean,
|
|
12
|
+
/**
|
|
13
|
+
* When true, the event is not persisted to durable backend.
|
|
14
|
+
* Used for events from durable backend (to avoid re-publishing).
|
|
15
|
+
*/
|
|
16
|
+
preventPersist: boolean,
|
|
17
|
+
/**
|
|
18
|
+
* When true, this event was replicated from a peer server.
|
|
19
|
+
* Used to prevent re-broadcasting to peers and avoid cascade loops.
|
|
20
|
+
*/
|
|
21
|
+
fromPeer: boolean | null, };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Export the full entity tree rooted at a given entity.
|
|
5
|
+
*
|
|
6
|
+
* Performs a BFS walk over the relationship graph, collecting every
|
|
7
|
+
* reachable descendant. Respects `exclude_from_tree` on `BelongsTo`
|
|
8
|
+
* relations and follows `EnsureFor` on a single-axis basis to prevent
|
|
9
|
+
* Cartesian explosion.
|
|
10
|
+
*/
|
|
11
|
+
export type ExportEntityTree = {
|
|
12
|
+
/**
|
|
13
|
+
* Entity type of the root (e.g., "Project").
|
|
14
|
+
*/
|
|
15
|
+
rootType: string,
|
|
16
|
+
/**
|
|
17
|
+
* ID of the root entity.
|
|
18
|
+
*/
|
|
19
|
+
rootId: string,
|
|
20
|
+
/**
|
|
21
|
+
* ISO 8601 timestamp — when set, replays events up to this time
|
|
22
|
+
* into a temporary store and exports from that instead of the live store.
|
|
23
|
+
*/
|
|
24
|
+
asOf?: string | null, };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
|
2
|
+
import type { JsonValue } from "./serde_json/JsonValue";
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* A single exported entity within the tree.
|
|
6
|
+
*/
|
|
7
|
+
export type ExportedEntity = {
|
|
8
|
+
/**
|
|
9
|
+
* The entity type name (e.g., "Scene", "Binding").
|
|
10
|
+
*/
|
|
11
|
+
entityType: string,
|
|
12
|
+
/**
|
|
13
|
+
* The full serialized entity data.
|
|
14
|
+
*/
|
|
15
|
+
data: JsonValue, };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Report that fetches all items by type and IDs.
|
|
5
|
+
*/
|
|
6
|
+
export type GetItemsByTypeAndIds = {
|
|
7
|
+
/**
|
|
8
|
+
* The entity type name (e.g., "Scene", "Target")
|
|
9
|
+
*/
|
|
10
|
+
type: string,
|
|
11
|
+
/**
|
|
12
|
+
* List of entity IDs to fetch
|
|
13
|
+
*/
|
|
14
|
+
ids: Array<string>, };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Report that returns the current health of the persist subsystem.
|
|
5
|
+
* Polls every 500ms and deduplicates, so subscribers only receive updates
|
|
6
|
+
* when values actually change.
|
|
7
|
+
*/
|
|
8
|
+
export type GetPersistHealth = Record<string, never>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
|
2
|
+
import type { WrappedItem } from "./WrappedItem";
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Command to import items into the system as SET events, and optionally
|
|
6
|
+
* delete items as DEL events. Returns the total number of events applied.
|
|
7
|
+
*
|
|
8
|
+
* Used by the entity tree import/export system to apply diffs.
|
|
9
|
+
*/
|
|
10
|
+
export type ImportItems = {
|
|
11
|
+
/**
|
|
12
|
+
* Items to SET (add or update).
|
|
13
|
+
*/
|
|
14
|
+
items: Array<WrappedItem>,
|
|
15
|
+
/**
|
|
16
|
+
* Items to DEL (remove). Only the shallowest removed entities should be
|
|
17
|
+
* included — the relationship manager cascades deletions to children.
|
|
18
|
+
*/
|
|
19
|
+
deleteItems: Array<WrappedItem>, };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
|
2
|
+
import type { WrappedItem } from "./WrappedItem";
|
|
3
|
+
|
|
4
|
+
export type ImportItemsArgs = {
|
|
5
|
+
/**
|
|
6
|
+
* Items to SET (add or update).
|
|
7
|
+
*/
|
|
8
|
+
items: Array<WrappedItem>,
|
|
9
|
+
/**
|
|
10
|
+
* Items to DEL (remove). Only the shallowest removed entities should be
|
|
11
|
+
* included — the relationship manager cascades deletions to children.
|
|
12
|
+
*/
|
|
13
|
+
deleteItems: Array<WrappedItem>, };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Stub representation of an entity for tree traversal.
|
|
5
|
+
* Contains minimal identifying information without full entity data.
|
|
6
|
+
*/
|
|
7
|
+
export type ItemStub = { id: string, itemType: string, name: string | null, };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
|
2
|
+
import type { EventOptions } from "./EventOptions";
|
|
3
|
+
import type { MEventType } from "./MEventType";
|
|
4
|
+
import type { JsonValue } from "./serde_json/JsonValue";
|
|
5
|
+
|
|
6
|
+
export type MEvent = { item: JsonValue, changeType: MEventType, itemType: string, createdAt: string, tx: string, sourceId: string | null,
|
|
7
|
+
/**
|
|
8
|
+
* Optional event options (e.g., prevent_relationship_updates)
|
|
9
|
+
*/
|
|
10
|
+
options?: EventOptions | null, };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
|
2
|
+
import type { CancelSubscription } from "./CancelSubscription";
|
|
3
|
+
import type { CommandError } from "./CommandError";
|
|
4
|
+
import type { CommandResponse } from "./CommandResponse";
|
|
5
|
+
import type { MEvent } from "./MEvent";
|
|
6
|
+
import type { PingData } from "./PingData";
|
|
7
|
+
import type { QueryError } from "./QueryError";
|
|
8
|
+
import type { QueryWindowUpdate } from "./QueryWindowUpdate";
|
|
9
|
+
import type { ReportError } from "./ReportError";
|
|
10
|
+
import type { ReportResponse } from "./ReportResponse";
|
|
11
|
+
import type { ViewError } from "./ViewError";
|
|
12
|
+
import type { ViewWindowUpdate } from "./ViewWindowUpdate";
|
|
13
|
+
import type { WrappedCommand } from "./WrappedCommand";
|
|
14
|
+
import type { WrappedQuery } from "./WrappedQuery";
|
|
15
|
+
import type { WrappedReport } from "./WrappedReport";
|
|
16
|
+
import type { WrappedView } from "./WrappedView";
|
|
17
|
+
import type { JsonValue } from "./serde_json/JsonValue";
|
|
18
|
+
|
|
19
|
+
export type MykoMessage = { "event": "ws:m:query", "data": WrappedQuery } | { "event": "ws:m:query-response", "data": any } | { "event": "ws:m:query-cancel", "data": CancelSubscription } | { "event": "ws:m:query-window", "data": QueryWindowUpdate } | { "event": "ws:m:view", "data": WrappedView } | { "event": "ws:m:view-response", "data": any } | { "event": "ws:m:view-cancel", "data": CancelSubscription } | { "event": "ws:m:view-window", "data": ViewWindowUpdate } | { "event": "ws:m:report", "data": WrappedReport } | { "event": "ws:m:report-response", "data": ReportResponse } | { "event": "ws:m:report-cancel", "data": CancelSubscription } | { "event": "ws:m:report-error", "data": ReportError } | { "event": "ws:m:query-error", "data": QueryError } | { "event": "ws:m:view-error", "data": ViewError } | { "event": "ws:m:event", "data": MEvent } | { "event": "ws:m:event-batch", "data": Array<MEvent> } | { "event": "ws:m:command", "data": WrappedCommand } | { "event": "ws:m:command-response", "data": CommandResponse } | { "event": "ws:m:command-error", "data": CommandError } | { "event": "ws:m:ping", "data": PingData } | { "event": "ws:m:benchmark", "data": JsonValue } | { "event": "ws:m:protocol-switch", "data": { protocol: string, } };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
|
2
|
+
import type { ClientId } from "./ClientId";
|
|
3
|
+
import type { ServerId } from "./ServerId";
|
|
4
|
+
|
|
5
|
+
export type PartialClient = { serverId?: ServerId,
|
|
6
|
+
/**
|
|
7
|
+
* ISO timestamp for windback mode. When set, the client sees historical state
|
|
8
|
+
* as of this timestamp instead of live state.
|
|
9
|
+
*/
|
|
10
|
+
windback?: string | null, id?: ClientId, };
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
|
2
|
+
import type { ServerId } from "./ServerId";
|
|
3
|
+
|
|
4
|
+
export type PartialServer = { version?: string, address?: string, port?: number, startedAt?: string, id?: ServerId, };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Report that checks whether a peer server client is currently connected.
|
|
5
|
+
* Returns ping in milliseconds when available, otherwise `-1`.
|
|
6
|
+
*/
|
|
7
|
+
export type PeerAlive = { peerId: string, };
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Health snapshot for the persist subsystem.
|
|
5
|
+
*/
|
|
6
|
+
export type PersistHealthStatus = {
|
|
7
|
+
/**
|
|
8
|
+
* Events queued but not yet written.
|
|
9
|
+
*/
|
|
10
|
+
queued: bigint,
|
|
11
|
+
/**
|
|
12
|
+
* Lifetime successful writes.
|
|
13
|
+
*/
|
|
14
|
+
totalPersisted: bigint,
|
|
15
|
+
/**
|
|
16
|
+
* Lifetime failed writes.
|
|
17
|
+
*/
|
|
18
|
+
totalErrors: bigint,
|
|
19
|
+
/**
|
|
20
|
+
* Consecutive failures since last success.
|
|
21
|
+
*/
|
|
22
|
+
consecutiveErrors: bigint,
|
|
23
|
+
/**
|
|
24
|
+
* Most recent error message, if any.
|
|
25
|
+
*/
|
|
26
|
+
lastError?: string | null,
|
|
27
|
+
/**
|
|
28
|
+
* Whether the persister is currently healthy (no consecutive errors).
|
|
29
|
+
*/
|
|
30
|
+
healthy: boolean,
|
|
31
|
+
/**
|
|
32
|
+
* Writes per second over a sliding window.
|
|
33
|
+
*/
|
|
34
|
+
writesPerSecond: number, };
|