@coasys/ad4m 0.13.1-staging.1 → 0.13.1-staging.2
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/lib/index.cjs +3789 -1192
- package/lib/index.js +3783 -1193
- package/lib/src/generated/api/AgentsByDidsRequest.d.ts +3 -0
- package/lib/src/generated/api/CallSessionInfo.d.ts +23 -0
- package/lib/src/generated/api/DiscardBatchRequest.d.ts +3 -0
- package/lib/src/generated/api/Events.d.ts +13 -3
- package/lib/src/generated/api/Events.js +1 -0
- package/lib/src/generated/api/FlowStateChangedEvent.d.ts +38 -0
- package/lib/src/generated/api/FlowStateEntry.d.ts +18 -0
- package/lib/src/generated/api/FlowStateEntry.js +2 -0
- package/lib/src/generated/api/IceServer.d.ts +18 -0
- package/lib/src/generated/api/IceServer.js +2 -0
- package/lib/src/generated/api/OnlineAgent.d.ts +4 -0
- package/lib/src/generated/api/PerspectiveDiscardBatchParams.d.ts +4 -0
- package/lib/src/generated/api/PerspectiveDiscardBatchParams.js +2 -0
- package/lib/src/generated/api/PerspectiveFlowFiredParams.d.ts +8 -0
- package/lib/src/generated/api/PerspectiveFlowFiredParams.js +2 -0
- package/lib/src/generated/api/PerspectiveFlowStatesParams.d.ts +11 -0
- package/lib/src/generated/api/PerspectiveFlowStatesParams.js +2 -0
- package/lib/src/generated/api/PerspectiveGetAllShaclParams.d.ts +7 -0
- package/lib/src/generated/api/PerspectiveGetAllShaclParams.js +2 -0
- package/lib/src/generated/api/PerspectiveModelQueryParams.d.ts +6 -1
- package/lib/src/generated/api/PerspectiveRemoveSubjectParams.d.ts +6 -0
- package/lib/src/generated/api/PerspectiveRemoveSubjectParams.js +2 -0
- package/lib/src/generated/api/PerspectiveResynced.d.ts +8 -0
- package/lib/src/generated/api/PerspectiveResynced.js +2 -0
- package/lib/src/generated/api/PerspectiveSubscribed.d.ts +10 -0
- package/lib/src/generated/api/PerspectiveSubscribed.js +2 -0
- package/lib/src/generated/api/PerspectiveUpdateSubjectParams.d.ts +10 -0
- package/lib/src/generated/api/PerspectiveUpdateSubjectParams.js +2 -0
- package/lib/src/generated/api/QuerySubscriptionUpdate.d.ts +19 -0
- package/lib/src/generated/api/QuerySubscriptionUpdate.js +2 -0
- package/lib/src/generated/api/QuerySubscriptionUpdateEvent.d.ts +7 -0
- package/lib/src/generated/api/QuerySubscriptionUpdateEvent.js +1 -0
- package/lib/src/generated/api/QueryUpdatesLagged.d.ts +7 -0
- package/lib/src/generated/api/QueryUpdatesLagged.js +2 -0
- package/lib/src/generated/api/RemoveSubjectRequest.d.ts +9 -0
- package/lib/src/generated/api/RemoveSubjectRequest.js +2 -0
- package/lib/src/generated/api/ResyncSubscriptionRequest.d.ts +3 -0
- package/lib/src/generated/api/ResyncSubscriptionRequest.js +2 -0
- package/lib/src/generated/api/RpcMethods.d.ts +134 -14
- package/lib/src/generated/api/RpcMethods.js +12 -0
- package/lib/src/generated/api/SfuAddIceCandidateParams.d.ts +8 -0
- package/lib/src/generated/api/SfuAddIceCandidateParams.js +2 -0
- package/lib/src/generated/api/SfuAnswerServerOfferParams.d.ts +8 -0
- package/lib/src/generated/api/SfuAnswerServerOfferParams.js +2 -0
- package/lib/src/generated/api/SfuCallJoinParams.d.ts +14 -0
- package/lib/src/generated/api/SfuCallJoinParams.js +2 -0
- package/lib/src/generated/api/SfuCallRenegotiationOffer.d.ts +30 -0
- package/lib/src/generated/api/SfuCallRenegotiationOffer.js +1 -0
- package/lib/src/generated/api/SfuCascadePipe.d.ts +4 -0
- package/lib/src/generated/api/SfuCascadePipe.js +2 -0
- package/lib/src/generated/api/SfuCascadeStatus.d.ts +8 -0
- package/lib/src/generated/api/SfuCascadeStatus.js +1 -0
- package/lib/src/generated/api/SfuConfig.d.ts +52 -0
- package/lib/src/generated/api/SfuConfig.js +1 -0
- package/lib/src/generated/api/SfuDataMessage.d.ts +24 -0
- package/lib/src/generated/api/SfuDataMessage.js +2 -0
- package/lib/src/generated/api/SfuEnsureMembershipParams.d.ts +4 -0
- package/lib/src/generated/api/SfuEnsureMembershipParams.js +2 -0
- package/lib/src/generated/api/SfuMigrateEvent.d.ts +21 -0
- package/lib/src/generated/api/SfuMigrateEvent.js +2 -0
- package/lib/src/generated/api/SfuNeighbourhoodParams.d.ts +3 -0
- package/lib/src/generated/api/SfuNeighbourhoodParams.js +2 -0
- package/lib/src/generated/api/SfuParticipantQualityPreference.d.ts +7 -0
- package/lib/src/generated/api/SfuParticipantQualityPreference.js +2 -0
- package/lib/src/generated/api/SfuPerspectiveParams.d.ts +6 -0
- package/lib/src/generated/api/SfuPerspectiveParams.js +2 -0
- package/lib/src/generated/api/SfuQualityPreferenceParams.d.ts +8 -0
- package/lib/src/generated/api/SfuQualityPreferenceParams.js +2 -0
- package/lib/src/generated/api/SfuRoomInfo.d.ts +11 -0
- package/lib/src/generated/api/SfuRoomInfo.js +1 -0
- package/lib/src/generated/api/SfuRoomParams.d.ts +4 -0
- package/lib/src/generated/api/SfuRoomParams.js +2 -0
- package/lib/src/generated/api/SfuRoomParticipantInfo.d.ts +11 -0
- package/lib/src/generated/api/SfuRoomParticipantInfo.js +2 -0
- package/lib/src/generated/api/SfuRoomRoster.d.ts +13 -0
- package/lib/src/generated/api/SfuRoomRoster.js +2 -0
- package/lib/src/generated/api/SfuSendDataParams.d.ts +10 -0
- package/lib/src/generated/api/SfuSendDataParams.js +2 -0
- package/lib/src/generated/api/SfuSetConfigParams.d.ts +5 -0
- package/lib/src/generated/api/SfuSetConfigParams.js +1 -0
- package/lib/src/generated/api/SfuStatus.d.ts +24 -0
- package/lib/src/generated/api/SfuStatus.js +2 -0
- package/lib/src/generated/api/TrackMapEntry.d.ts +17 -0
- package/lib/src/generated/api/TrackMapEntry.js +2 -0
- package/lib/src/generated/api/UpdateSubjectRequest.d.ts +12 -0
- package/lib/src/generated/api/UpdateSubjectRequest.js +2 -0
- package/lib/src/generated/api/index.d.ts +3 -0
- package/lib/src/index.d.ts +7 -0
- package/lib/src/index.js +4 -0
- package/lib/src/model/Ad4mModel.d.ts +84 -0
- package/lib/src/model/Ad4mModel.js +234 -4
- package/lib/src/model/ModelQueryBuilder.d.ts +16 -35
- package/lib/src/model/ModelQueryBuilder.js +88 -270
- package/lib/src/model/decorators.d.ts +32 -0
- package/lib/src/model/decorators.js +40 -1
- package/lib/src/model/shacl-gen.d.ts +3 -1
- package/lib/src/model/shacl-gen.js +13 -1
- package/lib/src/model/types.d.ts +7 -0
- package/lib/src/neighbourhood/MeshManager.d.ts +384 -0
- package/lib/src/neighbourhood/MeshManager.js +1144 -0
- package/lib/src/neighbourhood/NeighbourhoodClient.d.ts +91 -0
- package/lib/src/neighbourhood/NeighbourhoodClient.js +196 -0
- package/lib/src/neighbourhood/NeighbourhoodProxy.d.ts +55 -1
- package/lib/src/neighbourhood/NeighbourhoodProxy.js +170 -3
- package/lib/src/neighbourhood/Session.d.ts +105 -0
- package/lib/src/neighbourhood/Session.js +412 -0
- package/lib/src/neighbourhood/SfuManager.d.ts +174 -0
- package/lib/src/neighbourhood/SfuManager.js +619 -0
- package/lib/src/neighbourhood/SfuTypes.d.ts +35 -0
- package/lib/src/neighbourhood/SfuTypes.js +8 -0
- package/lib/src/perspectives/FlowInstance.d.ts +63 -24
- package/lib/src/perspectives/FlowInstance.js +74 -31
- package/lib/src/perspectives/FlowModels.d.ts +0 -16
- package/lib/src/perspectives/FlowModels.js +8 -16
- package/lib/src/perspectives/LiveQuery.d.ts +49 -0
- package/lib/src/perspectives/LiveQuery.js +169 -0
- package/lib/src/perspectives/PerspectiveClient.d.ts +24 -15
- package/lib/src/perspectives/PerspectiveClient.js +33 -36
- package/lib/src/perspectives/PerspectiveProxy.d.ts +67 -167
- package/lib/src/perspectives/PerspectiveProxy.js +121 -475
- package/lib/src/perspectives/TextContent.d.ts +31 -0
- package/lib/src/perspectives/TextContent.js +52 -0
- package/lib/src/perspectives/WakerSubscriptionManager.d.ts +23 -0
- package/lib/src/perspectives/WakerSubscriptionManager.js +58 -17
- package/lib/src/shacl/SHACLFlow.d.ts +7 -4
- package/lib/src/shacl/SHACLFlow.js +7 -4
- package/lib/src/shacl/SHACLShape.d.ts +9 -0
- package/lib/src/shacl/SHACLShape.js +37 -0
- package/package.json +2 -2
- package/pnpm-workspace.yaml +4 -1
- package/src/Ad4mClient.test.ts +89 -17
- package/src/generated/api/AgentsByDidsRequest.ts +3 -0
- package/src/generated/api/CallSessionInfo.ts +20 -0
- package/src/generated/api/DiscardBatchRequest.ts +3 -0
- package/src/generated/api/Events.ts +14 -3
- package/src/generated/api/FlowStateChangedEvent.ts +36 -0
- package/src/generated/api/FlowStateEntry.ts +18 -0
- package/src/generated/api/IceServer.ts +19 -0
- package/src/generated/api/OnlineAgent.ts +6 -1
- package/src/generated/api/PerspectiveDiscardBatchParams.ts +3 -0
- package/src/generated/api/PerspectiveFlowFiredParams.ts +7 -0
- package/src/generated/api/PerspectiveFlowStatesParams.ts +11 -0
- package/src/generated/api/PerspectiveGetAllShaclParams.ts +6 -0
- package/src/generated/api/PerspectiveModelQueryParams.ts +5 -1
- package/src/generated/api/PerspectiveRemoveSubjectParams.ts +3 -0
- package/src/generated/api/PerspectiveResynced.ts +7 -0
- package/src/generated/api/PerspectiveSubscribed.ts +8 -0
- package/src/generated/api/PerspectiveUpdateSubjectParams.ts +7 -0
- package/src/generated/api/QuerySubscriptionUpdate.ts +10 -0
- package/src/generated/api/QuerySubscriptionUpdateEvent.ts +9 -0
- package/src/generated/api/QueryUpdatesLagged.ts +7 -0
- package/src/generated/api/RemoveSubjectRequest.ts +7 -0
- package/src/generated/api/ResyncSubscriptionRequest.ts +3 -0
- package/src/generated/api/RpcMethods.ts +68 -8
- package/src/generated/api/SfuAddIceCandidateParams.ts +7 -0
- package/src/generated/api/SfuAnswerServerOfferParams.ts +7 -0
- package/src/generated/api/SfuCallJoinParams.ts +13 -0
- package/src/generated/api/SfuCallRenegotiationOffer.ts +29 -0
- package/src/generated/api/SfuCascadePipe.ts +3 -0
- package/src/generated/api/SfuCascadeStatus.ts +7 -0
- package/src/generated/api/SfuConfig.ts +53 -0
- package/src/generated/api/SfuDataMessage.ts +23 -0
- package/src/generated/api/SfuEnsureMembershipParams.ts +3 -0
- package/src/generated/api/SfuMigrateEvent.ts +20 -0
- package/src/generated/api/{KeepAliveQueryRequest.ts → SfuNeighbourhoodParams.ts} +1 -1
- package/src/generated/api/SfuParticipantQualityPreference.ts +6 -0
- package/src/generated/api/{PerspectiveSubscribeQueryResult.ts → SfuPerspectiveParams.ts} +4 -1
- package/src/generated/api/SfuQualityPreferenceParams.ts +7 -0
- package/src/generated/api/SfuRoomInfo.ts +7 -0
- package/src/generated/api/SfuRoomParams.ts +3 -0
- package/src/generated/api/SfuRoomParticipantInfo.ts +8 -0
- package/src/generated/api/SfuRoomRoster.ts +12 -0
- package/src/generated/api/SfuSendDataParams.ts +7 -0
- package/src/generated/api/SfuSetConfigParams.ts +4 -0
- package/src/generated/api/SfuStatus.ts +24 -0
- package/src/generated/api/TrackMapEntry.ts +18 -0
- package/src/generated/api/UpdateSubjectRequest.ts +10 -0
- package/src/generated/api/index.ts +3 -0
- package/src/index.ts +7 -0
- package/src/model/Ad4mModel.test.ts +255 -231
- package/src/model/Ad4mModel.ts +271 -4
- package/src/model/ModelQueryBuilder.ts +103 -310
- package/src/model/abstract-classes.test.ts +225 -0
- package/src/model/decorators.ts +81 -0
- package/src/model/shacl-gen.ts +13 -0
- package/src/model/types.ts +7 -0
- package/src/neighbourhood/MeshManager.test.ts +2640 -0
- package/src/neighbourhood/MeshManager.ts +1350 -0
- package/src/neighbourhood/NeighbourhoodClient.ts +271 -0
- package/src/neighbourhood/NeighbourhoodProxy.test.ts +23 -0
- package/src/neighbourhood/NeighbourhoodProxy.ts +247 -1
- package/src/neighbourhood/Session.test.ts +800 -0
- package/src/neighbourhood/Session.ts +525 -0
- package/src/neighbourhood/SfuManager.test.ts +677 -0
- package/src/neighbourhood/SfuManager.ts +803 -0
- package/src/neighbourhood/SfuTypes.ts +40 -0
- package/src/perspectives/FlowInstance.ts +108 -31
- package/src/perspectives/FlowModels.ts +8 -18
- package/src/perspectives/LiveQuery.test.ts +197 -0
- package/src/perspectives/LiveQuery.ts +189 -0
- package/src/perspectives/PerspectiveClient.ts +51 -51
- package/src/perspectives/PerspectiveProxy.test.ts +85 -401
- package/src/perspectives/PerspectiveProxy.ts +126 -536
- package/src/perspectives/TextContent.test.ts +123 -0
- package/src/perspectives/TextContent.ts +36 -0
- package/src/perspectives/WakerSubscriptionManager.test.ts +88 -6
- package/src/perspectives/WakerSubscriptionManager.ts +69 -18
- package/src/shacl/SHACLFlow.ts +7 -4
- package/src/shacl/SHACLShape.test.ts +2 -1
- package/src/shacl/SHACLShape.ts +49 -0
- package/lib/src/generated/api/KeepAliveQueryRequest.d.ts +0 -3
- package/lib/src/generated/api/PerspectiveModelSubscribeResult.d.ts +0 -7
- package/lib/src/generated/api/PerspectiveQuerySubscriptionFilter.d.ts +0 -6
- package/lib/src/generated/api/PerspectiveSubscribeQueryResult.d.ts +0 -4
- package/src/generated/api/PerspectiveModelSubscribeResult.ts +0 -6
- package/src/generated/api/PerspectiveQuerySubscriptionFilter.ts +0 -3
- /package/lib/src/generated/api/{KeepAliveQueryRequest.js → AgentsByDidsRequest.js} +0 -0
- /package/lib/src/generated/api/{PerspectiveModelSubscribeResult.js → CallSessionInfo.js} +0 -0
- /package/lib/src/generated/api/{PerspectiveQuerySubscriptionFilter.js → DiscardBatchRequest.js} +0 -0
- /package/lib/src/generated/api/{PerspectiveSubscribeQueryResult.js → FlowStateChangedEvent.js} +0 -0
|
@@ -8,16 +8,21 @@ import type { Apps } from "./Apps";
|
|
|
8
8
|
import type { AutoProcessorEvent } from "./AutoProcessorEvent";
|
|
9
9
|
import type { AutoProcessorNeighbourhoodState } from "./AutoProcessorNeighbourhoodState";
|
|
10
10
|
import type { ExceptionOccurredEvent } from "./ExceptionOccurredEvent";
|
|
11
|
+
import type { FlowStateChangedEvent } from "./FlowStateChangedEvent";
|
|
11
12
|
import type { HostingUserInfo } from "./HostingUserInfo";
|
|
12
13
|
import type { MessageReceivedEvent } from "./MessageReceivedEvent";
|
|
13
14
|
import type { NeighbourhoodSignalFilter } from "./NeighbourhoodSignalFilter";
|
|
14
15
|
import type { NotificationTriggeredEvent } from "./NotificationTriggeredEvent";
|
|
15
16
|
import type { PerspectiveLinkUpdatedWithOwner } from "./PerspectiveLinkUpdatedWithOwner";
|
|
16
17
|
import type { PerspectiveLinkWithOwner } from "./PerspectiveLinkWithOwner";
|
|
17
|
-
import type { PerspectiveQuerySubscriptionFilter } from "./PerspectiveQuerySubscriptionFilter";
|
|
18
18
|
import type { PerspectiveRemovedWithOwner } from "./PerspectiveRemovedWithOwner";
|
|
19
19
|
import type { PerspectiveStateFilter } from "./PerspectiveStateFilter";
|
|
20
20
|
import type { PerspectiveWithOwner } from "./PerspectiveWithOwner";
|
|
21
|
+
import type { QuerySubscriptionUpdateEvent } from "./QuerySubscriptionUpdateEvent";
|
|
22
|
+
import type { SfuCallRenegotiationOffer } from "./SfuCallRenegotiationOffer";
|
|
23
|
+
import type { SfuDataMessage } from "./SfuDataMessage";
|
|
24
|
+
import type { SfuMigrateEvent } from "./SfuMigrateEvent";
|
|
25
|
+
import type { SfuRoomRoster } from "./SfuRoomRoster";
|
|
21
26
|
import type { TranscriptionTextFilter } from "./TranscriptionTextFilter";
|
|
22
27
|
|
|
23
28
|
/** Every event the executor emits: its payload (the message without `type`). */
|
|
@@ -39,15 +44,20 @@ export interface EventMap {
|
|
|
39
44
|
"exception-occurred": ExceptionOccurredEvent;
|
|
40
45
|
"transcription-text": TranscriptionTextFilter;
|
|
41
46
|
"model-loading-status": AIModelLoadingStatus;
|
|
42
|
-
"query-subscription-update":
|
|
47
|
+
"query-subscription-update": QuerySubscriptionUpdateEvent;
|
|
43
48
|
"auto-processor-event": AutoProcessorEvent;
|
|
44
49
|
"auto-processor-neighbourhood-state": AutoProcessorNeighbourhoodState;
|
|
50
|
+
"sfu-call-renegotiation-offer": SfuCallRenegotiationOffer;
|
|
51
|
+
"sfu-migrate": SfuMigrateEvent;
|
|
52
|
+
"sfu-data": SfuDataMessage;
|
|
53
|
+
"sfu-room-roster": SfuRoomRoster;
|
|
54
|
+
"flow-state-changed": FlowStateChangedEvent;
|
|
45
55
|
}
|
|
46
56
|
|
|
47
57
|
export type EventName = keyof EventMap;
|
|
48
58
|
|
|
49
59
|
/** Events about one perspective: they carry `perspectiveUuid`. */
|
|
50
|
-
export type ScopedEventName = "perspective-added" | "perspective-removed" | "perspective-updated" | "sync-state-change" | "link-added" | "link-removed" | "link-updated" | "signal" | "notification-triggered" | "query-subscription-update" | "auto-processor-event" | "auto-processor-neighbourhood-state";
|
|
60
|
+
export type ScopedEventName = "perspective-added" | "perspective-removed" | "perspective-updated" | "sync-state-change" | "link-added" | "link-removed" | "link-updated" | "signal" | "notification-triggered" | "query-subscription-update" | "auto-processor-event" | "auto-processor-neighbourhood-state" | "flow-state-changed";
|
|
51
61
|
|
|
52
62
|
/** {@link ScopedEventName} as a set. */
|
|
53
63
|
export const SCOPED_EVENTS: ReadonlySet<EventName> = new Set<EventName>([
|
|
@@ -63,4 +73,5 @@ export const SCOPED_EVENTS: ReadonlySet<EventName> = new Set<EventName>([
|
|
|
63
73
|
"query-subscription-update",
|
|
64
74
|
"auto-processor-event",
|
|
65
75
|
"auto-processor-neighbourhood-state",
|
|
76
|
+
"flow-state-changed",
|
|
66
77
|
]);
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* An instance's derived state moved, or an edge settled, on one agent's
|
|
5
|
+
* replica. Published once per change by that agent's pass, and delivered
|
|
6
|
+
* only to that agent's sockets.
|
|
7
|
+
*
|
|
8
|
+
* A catch-up pass (this agent's first over an instance here) publishes one
|
|
9
|
+
* too, with `caught_up` set: it reports no settles — whatever settled
|
|
10
|
+
* before this replica watched is not news — but it is the first state this
|
|
11
|
+
* agent's clients can show, and the only signal they get of it.
|
|
12
|
+
*/
|
|
13
|
+
export type FlowStateChangedEvent = { perspectiveUuid: string,
|
|
14
|
+
/**
|
|
15
|
+
* The agent whose replica derived this. The delivery filter matches it
|
|
16
|
+
* against the socket's agent; nobody else receives the event.
|
|
17
|
+
*/
|
|
18
|
+
agentDid: string, instance: string,
|
|
19
|
+
/**
|
|
20
|
+
* The state this agent had recorded before; for a seeded row, the
|
|
21
|
+
* flow's first state. `None` exactly when `caught_up`: this agent had no
|
|
22
|
+
* row, so its clients had no state to show (`currentStateName` is
|
|
23
|
+
* `undefined`), and naming the first state would claim a move nobody saw.
|
|
24
|
+
*/
|
|
25
|
+
from: string | null, to: string,
|
|
26
|
+
/**
|
|
27
|
+
* Proposals this pass marked fired: the atoms of every edge that settled
|
|
28
|
+
* since the previous pass. Empty when the state moved without a new
|
|
29
|
+
* settle, e.g. back, after a vote was withdrawn — and on a catch-up,
|
|
30
|
+
* whose marks record history rather than report it.
|
|
31
|
+
*/
|
|
32
|
+
firedProposals: Array<string>,
|
|
33
|
+
/**
|
|
34
|
+
* This was the agent's first pass over the instance here.
|
|
35
|
+
*/
|
|
36
|
+
caughtUp: boolean, };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* One row of this agent's bookkeeping, as `perspective.flowStates` returns
|
|
5
|
+
* it. An instance with no entry is one this agent has neither derived nor
|
|
6
|
+
* minted here: a client must not guess its state.
|
|
7
|
+
*/
|
|
8
|
+
export type FlowStateEntry = { instance: string,
|
|
9
|
+
/**
|
|
10
|
+
* The state this agent's pass last derived. `None` for a row seeded at
|
|
11
|
+
* mint and not derived yet: the instance stands at its flow's first
|
|
12
|
+
* state, which only the flow definition names.
|
|
13
|
+
*/
|
|
14
|
+
currentState: string | null,
|
|
15
|
+
/**
|
|
16
|
+
* RFC 3339 time of the pass that last wrote this state; `None` with it.
|
|
17
|
+
*/
|
|
18
|
+
derivedAt: string | 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
|
+
|
|
3
|
+
/**
|
|
4
|
+
* One ICE server entry as understood by browser `RTCConfiguration` —
|
|
5
|
+
* mirrors the WebIDL shape so clients can pass it through unchanged.
|
|
6
|
+
*/
|
|
7
|
+
export type IceServer = {
|
|
8
|
+
/**
|
|
9
|
+
* One or more URLs (`stun:`, `turn:`, `turns:`).
|
|
10
|
+
*/
|
|
11
|
+
urls: Array<string>,
|
|
12
|
+
/**
|
|
13
|
+
* TURN username, when applicable.
|
|
14
|
+
*/
|
|
15
|
+
username?: string,
|
|
16
|
+
/**
|
|
17
|
+
* TURN long-term credential, when applicable.
|
|
18
|
+
*/
|
|
19
|
+
credential?: string, };
|
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
|
2
2
|
import type { PerspectiveExpression } from "./PerspectiveExpression";
|
|
3
3
|
|
|
4
|
-
export type OnlineAgent = { did: string,
|
|
4
|
+
export type OnlineAgent = { did: string,
|
|
5
|
+
/**
|
|
6
|
+
* Empty when the agent has not set a status: the link language reports
|
|
7
|
+
* such an agent with a `null` status.
|
|
8
|
+
*/
|
|
9
|
+
status: PerspectiveExpression, };
|
|
@@ -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
|
+
* `perspective.flowFired`: the proposals of `instance` the calling agent's
|
|
5
|
+
* pass has recorded as fired, sorted.
|
|
6
|
+
*/
|
|
7
|
+
export type PerspectiveFlowFiredParams = { uuid: string, instance: string, };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* `perspective.flowStates`: the calling agent's recorded state of each flow
|
|
5
|
+
* instance (#1424). Instances it has not derived yet are absent.
|
|
6
|
+
*/
|
|
7
|
+
export type PerspectiveFlowStatesParams = { uuid: string,
|
|
8
|
+
/**
|
|
9
|
+
* Narrow to these instance URIs; all of the agent's instances if absent.
|
|
10
|
+
*/
|
|
11
|
+
instances?: 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
|
+
* `names` restricts the reply to those shapes; unknown names are left out.
|
|
5
|
+
*/
|
|
6
|
+
export type PerspectiveGetAllShaclParams = { uuid: string, names?: Array<string>, };
|
|
@@ -2,5 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Wire names stay snake_case, as the handlers read them.
|
|
5
|
+
*
|
|
6
|
+
* Exactly one of `class_name` and `class_names`: one class, or one query over
|
|
7
|
+
* the union of several (#1238), whose rows carry `__subjectClass` and
|
|
8
|
+
* `__subjectClasses`.
|
|
5
9
|
*/
|
|
6
|
-
export type PerspectiveModelQueryParams = { uuid: string, class_name
|
|
10
|
+
export type PerspectiveModelQueryParams = { uuid: string, class_name?: string, class_names?: Array<string>, query_json: 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
|
+
* Reply to `perspective.resyncSubscription`: the subscription's current
|
|
5
|
+
* revision and the result it describes.
|
|
6
|
+
*/
|
|
7
|
+
export type PerspectiveResynced = { revision: number, result: any, };
|
|
@@ -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
|
+
* Reply to `perspective.subscribeQuery` / `perspective.modelSubscribe`:
|
|
5
|
+
* the first result, as JSON, at its revision (0 unless a change was
|
|
6
|
+
* published while it was computed).
|
|
7
|
+
*/
|
|
8
|
+
export type PerspectiveSubscribed = { subscriptionId: string, result: any, revision: number, };
|
|
@@ -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
|
+
export type PerspectiveUpdateSubjectParams = { uuid: string, subjectClass: string, expressionAddress: string,
|
|
4
|
+
/**
|
|
5
|
+
* A JSON object: property name → value.
|
|
6
|
+
*/
|
|
7
|
+
values: string, batchId?: 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
|
+
|
|
3
|
+
/**
|
|
4
|
+
* The change from revision `revision - 1` to `revision` (see
|
|
5
|
+
* `perspective_instance::subscriptions::result_delta`): model results
|
|
6
|
+
* carry `ids`, `upsert` and `totalCount`; query results carry `added` and
|
|
7
|
+
* `removed` rows; a result that could not be diffed comes whole as
|
|
8
|
+
* `result`.
|
|
9
|
+
*/
|
|
10
|
+
export type QuerySubscriptionUpdate = { perspectiveUuid: string, uuid: string, subscriptionId: string, revision: number, ids?: Array<string>, upsert?: Array<any>, totalCount?: number, added?: Array<any>, removed?: Array<any>, result?: any, };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
|
2
|
+
import type { QuerySubscriptionUpdate } from "./QuerySubscriptionUpdate";
|
|
3
|
+
import type { QueryUpdatesLagged } from "./QueryUpdatesLagged";
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* `query-subscription-update`: one change to a live query, delivered only
|
|
7
|
+
* to the connection that opened it, or [`QueryUpdatesLagged`].
|
|
8
|
+
*/
|
|
9
|
+
export type QuerySubscriptionUpdateEvent = QuerySubscriptionUpdate | QueryUpdatesLagged;
|
|
@@ -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
|
+
* The socket dropped updates, maybe for any of its live queries: every
|
|
5
|
+
* live query on it must resync.
|
|
6
|
+
*/
|
|
7
|
+
export type QueryUpdatesLagged = { lagged: true, };
|
|
@@ -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
|
+
* Runs the class's destructor; through an abstract class (#1435), that of
|
|
5
|
+
* each of the record's classes it reads.
|
|
6
|
+
*/
|
|
7
|
+
export type RemoveSubjectRequest = { subjectClass: string, expressionAddress: string, batchId?: string, };
|
|
@@ -11,6 +11,7 @@ import type { AgentRemoveAppParams } from "./AgentRemoveAppParams";
|
|
|
11
11
|
import type { AgentRevokeTokenParams } from "./AgentRevokeTokenParams";
|
|
12
12
|
import type { AgentSignature } from "./AgentSignature";
|
|
13
13
|
import type { AgentStatus } from "./AgentStatus";
|
|
14
|
+
import type { AgentsByDidsRequest } from "./AgentsByDidsRequest";
|
|
14
15
|
import type { AiAddModelParams } from "./AiAddModelParams";
|
|
15
16
|
import type { AiAddTaskParams } from "./AiAddTaskParams";
|
|
16
17
|
import type { AiDiscoverModelsParams } from "./AiDiscoverModelsParams";
|
|
@@ -24,6 +25,7 @@ import type { AiUpdateModelParams } from "./AiUpdateModelParams";
|
|
|
24
25
|
import type { AiUpdateTaskParams } from "./AiUpdateTaskParams";
|
|
25
26
|
import type { ApplyTemplateRequest } from "./ApplyTemplateRequest";
|
|
26
27
|
import type { Apps } from "./Apps";
|
|
28
|
+
import type { CallSessionInfo } from "./CallSessionInfo";
|
|
27
29
|
import type { ComputeLogEntry } from "./ComputeLogEntry";
|
|
28
30
|
import type { CreateExpressionRequest } from "./CreateExpressionRequest";
|
|
29
31
|
import type { CreatePerspectiveRequest } from "./CreatePerspectiveRequest";
|
|
@@ -41,6 +43,7 @@ import type { ExpressionManyRequest } from "./ExpressionManyRequest";
|
|
|
41
43
|
import type { ExpressionRendered } from "./ExpressionRendered";
|
|
42
44
|
import type { ExpressionUrlRequest } from "./ExpressionUrlRequest";
|
|
43
45
|
import type { FireOutcome } from "./FireOutcome";
|
|
46
|
+
import type { FlowStateEntry } from "./FlowStateEntry";
|
|
44
47
|
import type { FriendsListRequest } from "./FriendsListRequest";
|
|
45
48
|
import type { GenerateAgentRequest } from "./GenerateAgentRequest";
|
|
46
49
|
import type { GenerateJwtRequest } from "./GenerateJwtRequest";
|
|
@@ -80,12 +83,16 @@ import type { PerspectiveAddSdnaParams } from "./PerspectiveAddSdnaParams";
|
|
|
80
83
|
import type { PerspectiveAddSdnaResult } from "./PerspectiveAddSdnaResult";
|
|
81
84
|
import type { PerspectiveCommitBatchParams } from "./PerspectiveCommitBatchParams";
|
|
82
85
|
import type { PerspectiveCreateSubjectParams } from "./PerspectiveCreateSubjectParams";
|
|
86
|
+
import type { PerspectiveDiscardBatchParams } from "./PerspectiveDiscardBatchParams";
|
|
83
87
|
import type { PerspectiveEvaluateGettersParams } from "./PerspectiveEvaluateGettersParams";
|
|
84
88
|
import type { PerspectiveExecuteCommandsParams } from "./PerspectiveExecuteCommandsParams";
|
|
85
89
|
import type { PerspectiveExpression } from "./PerspectiveExpression";
|
|
90
|
+
import type { PerspectiveFlowFiredParams } from "./PerspectiveFlowFiredParams";
|
|
86
91
|
import type { PerspectiveFlowProposalParams } from "./PerspectiveFlowProposalParams";
|
|
87
92
|
import type { PerspectiveFlowReceiptVerdict } from "./PerspectiveFlowReceiptVerdict";
|
|
93
|
+
import type { PerspectiveFlowStatesParams } from "./PerspectiveFlowStatesParams";
|
|
88
94
|
import type { PerspectiveFlowValidOutputsParams } from "./PerspectiveFlowValidOutputsParams";
|
|
95
|
+
import type { PerspectiveGetAllShaclParams } from "./PerspectiveGetAllShaclParams";
|
|
89
96
|
import type { PerspectiveGetSubjectDataParams } from "./PerspectiveGetSubjectDataParams";
|
|
90
97
|
import type { PerspectiveHandle } from "./PerspectiveHandle";
|
|
91
98
|
import type { PerspectiveLinkDiff } from "./PerspectiveLinkDiff";
|
|
@@ -93,7 +100,6 @@ import type { PerspectiveLinkMutationsParams } from "./PerspectiveLinkMutationsP
|
|
|
93
100
|
import type { PerspectiveMintFlowReceiptParams } from "./PerspectiveMintFlowReceiptParams";
|
|
94
101
|
import type { PerspectiveMintFlowReceiptResult } from "./PerspectiveMintFlowReceiptResult";
|
|
95
102
|
import type { PerspectiveModelQueryParams } from "./PerspectiveModelQueryParams";
|
|
96
|
-
import type { PerspectiveModelSubscribeResult } from "./PerspectiveModelSubscribeResult";
|
|
97
103
|
import type { PerspectiveNamedShacl } from "./PerspectiveNamedShacl";
|
|
98
104
|
import type { PerspectiveProposeFlowTransitionParams } from "./PerspectiveProposeFlowTransitionParams";
|
|
99
105
|
import type { PerspectiveQueryLinksParams } from "./PerspectiveQueryLinksParams";
|
|
@@ -102,15 +108,18 @@ import type { PerspectiveRejectFlowProposalResult } from "./PerspectiveRejectFlo
|
|
|
102
108
|
import type { PerspectiveRemoveAutoProcessorParams } from "./PerspectiveRemoveAutoProcessorParams";
|
|
103
109
|
import type { PerspectiveRemoveLinkParams } from "./PerspectiveRemoveLinkParams";
|
|
104
110
|
import type { PerspectiveRemoveLinksParams } from "./PerspectiveRemoveLinksParams";
|
|
111
|
+
import type { PerspectiveRemoveSubjectParams } from "./PerspectiveRemoveSubjectParams";
|
|
105
112
|
import type { PerspectiveResolveInterpretationParams } from "./PerspectiveResolveInterpretationParams";
|
|
113
|
+
import type { PerspectiveResynced } from "./PerspectiveResynced";
|
|
106
114
|
import type { PerspectiveShacl } from "./PerspectiveShacl";
|
|
107
115
|
import type { PerspectiveShaclNameParams } from "./PerspectiveShaclNameParams";
|
|
108
116
|
import type { PerspectiveSparqlParams } from "./PerspectiveSparqlParams";
|
|
109
117
|
import type { PerspectiveSubjectClassesOfParams } from "./PerspectiveSubjectClassesOfParams";
|
|
110
|
-
import type {
|
|
118
|
+
import type { PerspectiveSubscribed } from "./PerspectiveSubscribed";
|
|
111
119
|
import type { PerspectiveSubscriptionParams } from "./PerspectiveSubscriptionParams";
|
|
112
120
|
import type { PerspectiveUpdateLinkParams } from "./PerspectiveUpdateLinkParams";
|
|
113
121
|
import type { PerspectiveUpdateParams } from "./PerspectiveUpdateParams";
|
|
122
|
+
import type { PerspectiveUpdateSubjectParams } from "./PerspectiveUpdateSubjectParams";
|
|
114
123
|
import type { PerspectiveUuidParams } from "./PerspectiveUuidParams";
|
|
115
124
|
import type { PerspectiveVerifyFlowReceiptParams } from "./PerspectiveVerifyFlowReceiptParams";
|
|
116
125
|
import type { PromptRequest } from "./PromptRequest";
|
|
@@ -139,6 +148,21 @@ import type { SetMultiUserRequest } from "./SetMultiUserRequest";
|
|
|
139
148
|
import type { SetStatusRequest } from "./SetStatusRequest";
|
|
140
149
|
import type { SetUnytMembraneProofRequest } from "./SetUnytMembraneProofRequest";
|
|
141
150
|
import type { SetUserFreeAccessRequest } from "./SetUserFreeAccessRequest";
|
|
151
|
+
import type { SfuAddIceCandidateParams } from "./SfuAddIceCandidateParams";
|
|
152
|
+
import type { SfuAnswerServerOfferParams } from "./SfuAnswerServerOfferParams";
|
|
153
|
+
import type { SfuCallJoinParams } from "./SfuCallJoinParams";
|
|
154
|
+
import type { SfuCascadeStatus } from "./SfuCascadeStatus";
|
|
155
|
+
import type { SfuConfig } from "./SfuConfig";
|
|
156
|
+
import type { SfuEnsureMembershipParams } from "./SfuEnsureMembershipParams";
|
|
157
|
+
import type { SfuNeighbourhoodParams } from "./SfuNeighbourhoodParams";
|
|
158
|
+
import type { SfuParticipantQualityPreference } from "./SfuParticipantQualityPreference";
|
|
159
|
+
import type { SfuPerspectiveParams } from "./SfuPerspectiveParams";
|
|
160
|
+
import type { SfuQualityPreferenceParams } from "./SfuQualityPreferenceParams";
|
|
161
|
+
import type { SfuRoomInfo } from "./SfuRoomInfo";
|
|
162
|
+
import type { SfuRoomParams } from "./SfuRoomParams";
|
|
163
|
+
import type { SfuSendDataParams } from "./SfuSendDataParams";
|
|
164
|
+
import type { SfuSetConfigParams } from "./SfuSetConfigParams";
|
|
165
|
+
import type { SfuStatus } from "./SfuStatus";
|
|
142
166
|
import type { SignMessageRequest } from "./SignMessageRequest";
|
|
143
167
|
import type { TrustedAgentsWrapper } from "./TrustedAgentsWrapper";
|
|
144
168
|
import type { UnlockAgentRequest } from "./UnlockAgentRequest";
|
|
@@ -161,6 +185,7 @@ import type { VerifySignatureRequest } from "./VerifySignatureRequest";
|
|
|
161
185
|
export interface RpcMethods {
|
|
162
186
|
"agent.addEntanglementProofs": { params: AgentAddEntanglementProofsParams; result: Array<EntanglementProof> };
|
|
163
187
|
"agent.addTrustedAgents": { params: TrustedAgentsWrapper; result: Array<string> };
|
|
188
|
+
"agent.byDIDs": { params: AgentsByDidsRequest; result: Array<Agent | null> };
|
|
164
189
|
"agent.byDid": { params: AgentByDidParams; result: Agent | null };
|
|
165
190
|
"agent.deleteEntanglementProofs": { params: EntanglementProofsWrapper; result: Array<EntanglementProof> };
|
|
166
191
|
"agent.deleteTrustedAgents": { params: TrustedAgentsWrapper; result: Array<string> };
|
|
@@ -223,6 +248,7 @@ export interface RpcMethods {
|
|
|
223
248
|
"neighbourhood.join": { params: JoinNeighbourhoodRequest; result: PerspectiveHandle };
|
|
224
249
|
"neighbourhood.onlineAgents": { params: NeighbourhoodUuidParams; result: Array<OnlineAgent> };
|
|
225
250
|
"neighbourhood.otherAgents": { params: NeighbourhoodUuidParams; result: Array<string> };
|
|
251
|
+
"neighbourhood.ownOnlineStatus": { params: NeighbourhoodUuidParams; result: PerspectiveExpression | null };
|
|
226
252
|
"neighbourhood.publish": { params: PublishNeighbourhoodRequest; result: string };
|
|
227
253
|
"neighbourhood.sendBroadcast": { params: NeighbourhoodBroadcastParams; result: boolean };
|
|
228
254
|
"neighbourhood.sendSignal": { params: NeighbourhoodSignalParams; result: boolean };
|
|
@@ -239,24 +265,25 @@ export interface RpcMethods {
|
|
|
239
265
|
"perspective.create": { params: CreatePerspectiveRequest; result: PerspectiveHandle };
|
|
240
266
|
"perspective.createBatch": { params: PerspectiveUuidParams; result: string };
|
|
241
267
|
"perspective.createSubject": { params: PerspectiveCreateSubjectParams; result: boolean };
|
|
268
|
+
"perspective.discardBatch": { params: PerspectiveDiscardBatchParams; result: boolean };
|
|
242
269
|
"perspective.disposeQuery": { params: PerspectiveSubscriptionParams; result: boolean };
|
|
243
270
|
"perspective.disposeSparql": { params: PerspectiveSubscriptionParams; result: boolean };
|
|
244
271
|
"perspective.evaluateGetters": { params: PerspectiveEvaluateGettersParams; result: string };
|
|
245
272
|
"perspective.executeCommands": { params: PerspectiveExecuteCommandsParams; result: null };
|
|
273
|
+
"perspective.flowFired": { params: PerspectiveFlowFiredParams; result: Array<string> };
|
|
274
|
+
"perspective.flowStates": { params: PerspectiveFlowStatesParams; result: Array<FlowStateEntry> };
|
|
246
275
|
"perspective.flowValidOutputs": { params: PerspectiveFlowValidOutputsParams; result: Array<ValidOutput> };
|
|
247
276
|
"perspective.get": { params: PerspectiveUuidParams; result: PerspectiveHandle | null };
|
|
248
|
-
"perspective.getAllShacl": { params:
|
|
277
|
+
"perspective.getAllShacl": { params: PerspectiveGetAllShaclParams; result: Array<PerspectiveNamedShacl> };
|
|
249
278
|
"perspective.getShacl": { params: PerspectiveShaclNameParams; result: PerspectiveShacl | null };
|
|
250
279
|
"perspective.getShaclNames": { params: PerspectiveUuidParams; result: Array<string> };
|
|
251
280
|
"perspective.getShaclTargetClass": { params: PerspectiveShaclNameParams; result: string | null };
|
|
252
281
|
"perspective.getSubjectData": { params: PerspectiveGetSubjectDataParams; result: string };
|
|
253
282
|
"perspective.interpretationOverlays": { params: PerspectiveUuidParams; result: Array<OverlayView> };
|
|
254
|
-
"perspective.keepAliveQuery": { params: PerspectiveSubscriptionParams; result: boolean };
|
|
255
|
-
"perspective.keepAliveSparql": { params: PerspectiveSubscriptionParams; result: boolean };
|
|
256
283
|
"perspective.linkMutations": { params: PerspectiveLinkMutationsParams; result: PerspectiveLinkDiff };
|
|
257
284
|
"perspective.mintFlowReceipt": { params: PerspectiveMintFlowReceiptParams; result: PerspectiveMintFlowReceiptResult };
|
|
258
285
|
"perspective.modelQuery": { params: PerspectiveModelQueryParams; result: string };
|
|
259
|
-
"perspective.modelSubscribe": { params: PerspectiveModelQueryParams; result:
|
|
286
|
+
"perspective.modelSubscribe": { params: PerspectiveModelQueryParams; result: PerspectiveSubscribed };
|
|
260
287
|
"perspective.proposeFlowTransition": { params: PerspectiveProposeFlowTransitionParams; result: ProposeOutcome };
|
|
261
288
|
"perspective.publishSnapshot": { params: PerspectiveUuidParams; result: string };
|
|
262
289
|
"perspective.queryLinks": { params: PerspectiveQueryLinksParams; result: Array<DecoratedLinkExpression> };
|
|
@@ -268,14 +295,17 @@ export interface RpcMethods {
|
|
|
268
295
|
"perspective.removeAutoProcessor": { params: PerspectiveRemoveAutoProcessorParams; result: boolean };
|
|
269
296
|
"perspective.removeLink": { params: PerspectiveRemoveLinkParams; result: boolean };
|
|
270
297
|
"perspective.removeLinks": { params: PerspectiveRemoveLinksParams; result: Array<DecoratedLinkExpression> };
|
|
298
|
+
"perspective.removeSubject": { params: PerspectiveRemoveSubjectParams; result: boolean };
|
|
299
|
+
"perspective.resyncSubscription": { params: PerspectiveSubscriptionParams; result: PerspectiveResynced };
|
|
271
300
|
"perspective.runInterpretation": { params: RunInterpretationRequest; result: Array<string> };
|
|
272
301
|
"perspective.runInterpretationWithHarness": { params: RunInterpretationWithHarnessRequest; result: Array<string> };
|
|
273
302
|
"perspective.snapshot": { params: PerspectiveUuidParams; result: DecoratedPerspective | null };
|
|
274
303
|
"perspective.subjectClassesOf": { params: PerspectiveSubjectClassesOfParams; result: { [key in string]: Array<string> } };
|
|
275
|
-
"perspective.subscribeQuery": { params: PerspectiveQueryParams; result:
|
|
276
|
-
"perspective.subscribeSparql": { params: PerspectiveQueryParams; result:
|
|
304
|
+
"perspective.subscribeQuery": { params: PerspectiveQueryParams; result: PerspectiveSubscribed };
|
|
305
|
+
"perspective.subscribeSparql": { params: PerspectiveQueryParams; result: PerspectiveSubscribed };
|
|
277
306
|
"perspective.update": { params: PerspectiveUpdateParams; result: PerspectiveHandle };
|
|
278
307
|
"perspective.updateLink": { params: PerspectiveUpdateLinkParams; result: DecoratedLinkExpression };
|
|
308
|
+
"perspective.updateSubject": { params: PerspectiveUpdateSubjectParams; result: boolean };
|
|
279
309
|
"perspective.verifyFlowReceipt": { params: PerspectiveVerifyFlowReceiptParams; result: PerspectiveFlowReceiptVerdict };
|
|
280
310
|
"runtime.addFriends": { params: FriendsListRequest; result: Array<string> };
|
|
281
311
|
"runtime.addHcAgentInfos": { params: AddAgentInfosRequest; result: boolean };
|
|
@@ -317,6 +347,24 @@ export interface RpcMethods {
|
|
|
317
347
|
"runtime.unytWalletHistory": { params: RuntimeUnytWalletHistoryParams; result: null };
|
|
318
348
|
"runtime.updateNotification": { params: RuntimeUpdateNotificationParams; result: boolean };
|
|
319
349
|
"runtime.verifySignature": { params: VerifySignatureRequest; result: boolean };
|
|
350
|
+
"sfu.addIceCandidate": { params: SfuAddIceCandidateParams; result: boolean };
|
|
351
|
+
"sfu.callAnswerServerOffer": { params: SfuAnswerServerOfferParams; result: boolean };
|
|
352
|
+
"sfu.callJoin": { params: SfuCallJoinParams; result: CallSessionInfo };
|
|
353
|
+
"sfu.callLeave": { params: SfuRoomParams; result: boolean };
|
|
354
|
+
"sfu.callSetQualityPreference": { params: SfuQualityPreferenceParams; result: boolean };
|
|
355
|
+
"sfu.cascadeStatus": { params: Record<string, never>; result: SfuCascadeStatus };
|
|
356
|
+
"sfu.ensureMembership": { params: SfuEnsureMembershipParams; result: boolean };
|
|
357
|
+
"sfu.getConfig": { params: SfuNeighbourhoodParams; result: SfuConfig };
|
|
358
|
+
"sfu.listRooms": { params: Record<string, never>; result: Array<SfuRoomInfo> };
|
|
359
|
+
"sfu.qualityPreferences": { params: Record<string, never>; result: Array<SfuParticipantQualityPreference> };
|
|
360
|
+
"sfu.sendData": { params: SfuSendDataParams; result: boolean };
|
|
361
|
+
"sfu.servesAllMembers": { params: SfuPerspectiveParams; result: boolean };
|
|
362
|
+
"sfu.setConfig": { params: SfuSetConfigParams; result: boolean };
|
|
363
|
+
"sfu.sfuPeerForNeighbourhood": { params: SfuNeighbourhoodParams; result: string | null };
|
|
364
|
+
"sfu.sfuPeersForNeighbourhood": { params: SfuNeighbourhoodParams; result: Array<string> };
|
|
365
|
+
"sfu.startRoom": { params: SfuRoomParams; result: SfuRoomInfo };
|
|
366
|
+
"sfu.status": { params: Record<string, never>; result: SfuStatus };
|
|
367
|
+
"sfu.stopRoom": { params: SfuRoomParams; result: boolean };
|
|
320
368
|
"user.create": { params: CreateUserRequest; result: UserCreationResult };
|
|
321
369
|
"user.credits": { params: UsersSetCreditsParams; result: boolean };
|
|
322
370
|
"user.emailTest": { params: UsersEmailTestParams; result: UsersEmailTestResult };
|
|
@@ -334,6 +382,7 @@ export type RpcMethod = keyof RpcMethods;
|
|
|
334
382
|
|
|
335
383
|
/** Idempotent reads: the client resends one once after a reconnect. */
|
|
336
384
|
export const READ_METHODS: ReadonlySet<RpcMethod> = new Set<RpcMethod>([
|
|
385
|
+
"agent.byDIDs",
|
|
337
386
|
"agent.byDid",
|
|
338
387
|
"agent.entanglementProofPreflight",
|
|
339
388
|
"agent.get",
|
|
@@ -361,8 +410,11 @@ export const READ_METHODS: ReadonlySet<RpcMethod> = new Set<RpcMethod>([
|
|
|
361
410
|
"neighbourhood.hasTelepresence",
|
|
362
411
|
"neighbourhood.onlineAgents",
|
|
363
412
|
"neighbourhood.otherAgents",
|
|
413
|
+
"neighbourhood.ownOnlineStatus",
|
|
364
414
|
"perspective.all",
|
|
365
415
|
"perspective.evaluateGetters",
|
|
416
|
+
"perspective.flowFired",
|
|
417
|
+
"perspective.flowStates",
|
|
366
418
|
"perspective.flowValidOutputs",
|
|
367
419
|
"perspective.get",
|
|
368
420
|
"perspective.getAllShacl",
|
|
@@ -397,6 +449,14 @@ export const READ_METHODS: ReadonlySet<RpcMethod> = new Set<RpcMethod>([
|
|
|
397
449
|
"runtime.unytWalletBalance",
|
|
398
450
|
"runtime.unytWalletHistory",
|
|
399
451
|
"runtime.verifySignature",
|
|
452
|
+
"sfu.cascadeStatus",
|
|
453
|
+
"sfu.getConfig",
|
|
454
|
+
"sfu.listRooms",
|
|
455
|
+
"sfu.qualityPreferences",
|
|
456
|
+
"sfu.servesAllMembers",
|
|
457
|
+
"sfu.sfuPeerForNeighbourhood",
|
|
458
|
+
"sfu.sfuPeersForNeighbourhood",
|
|
459
|
+
"sfu.status",
|
|
400
460
|
"user.list",
|
|
401
461
|
"user.multiUserEnabled",
|
|
402
462
|
"user.wallet",
|
|
@@ -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
|
+
export type SfuAddIceCandidateParams = { neighbourhoodUrl: string, roomName: string,
|
|
4
|
+
/**
|
|
5
|
+
* The candidate's SDP attribute line.
|
|
6
|
+
*/
|
|
7
|
+
candidate: 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
|
+
export type SfuAnswerServerOfferParams = { neighbourhoodUrl: string, roomName: string,
|
|
4
|
+
/**
|
|
5
|
+
* JSON-encoded `RTCSessionDescriptionInit`.
|
|
6
|
+
*/
|
|
7
|
+
sdpAnswer: string, };
|
|
@@ -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
|
+
|
|
3
|
+
export type SfuCallJoinParams = { neighbourhoodUrl: string, roomName: string,
|
|
4
|
+
/**
|
|
5
|
+
* JSON-encoded `RTCSessionDescriptionInit`.
|
|
6
|
+
*/
|
|
7
|
+
sdpOffer: string,
|
|
8
|
+
/**
|
|
9
|
+
* The caller can reach other cascade nodes, so a busy room may answer
|
|
10
|
+
* with `redirectTo` instead of a session. Off by default: an SDK client
|
|
11
|
+
* reaches only this executor.
|
|
12
|
+
*/
|
|
13
|
+
acceptRedirect?: boolean, };
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
|
2
|
+
import type { TrackMapEntry } from "./TrackMapEntry";
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Server-pushed SDP offer delivered to one specific participant when
|
|
6
|
+
* the SFU needs them to renegotiate — typically because a new peer
|
|
7
|
+
* joined the same room and the relay now has additional outbound
|
|
8
|
+
* tracks to forward. The client applies this as a remote offer,
|
|
9
|
+
* generates an answer, and posts the answer via
|
|
10
|
+
* `sfu.callAnswerServerOffer`.
|
|
11
|
+
*/
|
|
12
|
+
export type SfuCallRenegotiationOffer = {
|
|
13
|
+
/**
|
|
14
|
+
* DID of the participant this offer is addressed to. Used by the
|
|
15
|
+
* events_ws fanout to filter per-user.
|
|
16
|
+
*/
|
|
17
|
+
targetDid: string, neighbourhoodUrl: string, roomName: string,
|
|
18
|
+
/**
|
|
19
|
+
* JSON-encoded `RTCSessionDescriptionInit` for the new offer.
|
|
20
|
+
*/
|
|
21
|
+
sdpOffer: string,
|
|
22
|
+
/**
|
|
23
|
+
* Mid-to-DID attribution for newly added outbound m-lines in this
|
|
24
|
+
* offer. The client uses these to correlate incoming tracks to
|
|
25
|
+
* participant DIDs (arrival order alone cannot guarantee this —
|
|
26
|
+
* HashMap iteration order on the server makes both stream_mapping
|
|
27
|
+
* and m-line ordering non-deterministic).
|
|
28
|
+
*/
|
|
29
|
+
trackMapping?: Array<TrackMapEntry>, };
|
|
@@ -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 { SfuCascadePipe } from "./SfuCascadePipe";
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* `sfu.cascadeStatus`: the SFU↔SFU pipes that are fully established.
|
|
6
|
+
*/
|
|
7
|
+
export type SfuCascadeStatus = { establishedCount: number, pipes: Array<SfuCascadePipe>, };
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
|
2
|
+
import type { IceServer } from "./IceServer";
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* A neighbourhood's call configuration. Only `mode` and
|
|
6
|
+
* `maxMeshParticipants` are stored in the neighbourhood (see
|
|
7
|
+
* `sfu::config_store`); `sfu.getConfig` fills the node fields from the
|
|
8
|
+
* executor, and `sfu.setConfig` refuses them and `iceServers`.
|
|
9
|
+
*/
|
|
10
|
+
export type SfuConfig = {
|
|
11
|
+
/**
|
|
12
|
+
* `"mesh"` | `"designated"` | `"gateway"` | `"cascaded"`
|
|
13
|
+
*/
|
|
14
|
+
mode: "mesh" | "designated" | "gateway" | "cascaded",
|
|
15
|
+
/**
|
|
16
|
+
* Not stored, and `sfu.setConfig` refuses it: a client always joins
|
|
17
|
+
* its own executor's SFU.
|
|
18
|
+
*/
|
|
19
|
+
designatedPeer?: string,
|
|
20
|
+
/**
|
|
21
|
+
* Fallback mode when SFU is unavailable.
|
|
22
|
+
*/
|
|
23
|
+
fallback: "mesh" | "designated" | "gateway" | "cascaded",
|
|
24
|
+
/**
|
|
25
|
+
* Maximum participants before mesh is degraded.
|
|
26
|
+
*/
|
|
27
|
+
maxMeshParticipants: number,
|
|
28
|
+
/**
|
|
29
|
+
* This node's cascade peers (`--sfu-cascade-peers`), as
|
|
30
|
+
* `sfu.getConfig` reports them. Not stored in the neighbourhood.
|
|
31
|
+
*/
|
|
32
|
+
sfuPeers?: Array<string>,
|
|
33
|
+
/**
|
|
34
|
+
* This node's capacity in a cascade (`--sfu-max-participants-per-node`),
|
|
35
|
+
* as `sfu.getConfig` reports it. Not stored in the neighbourhood.
|
|
36
|
+
*/
|
|
37
|
+
maxParticipantsPerNode?: number,
|
|
38
|
+
/**
|
|
39
|
+
* The cascade node that takes redirected joins first
|
|
40
|
+
* (`--sfu-preferred-node`); overflow spills to other nodes only when
|
|
41
|
+
* it reaches capacity. Useful when a powerful hosted multi-user node
|
|
42
|
+
* serves most participants and lighter personal executors act as
|
|
43
|
+
* fallbacks. As `sfu.getConfig` reports it; not stored in the
|
|
44
|
+
* neighbourhood.
|
|
45
|
+
*/
|
|
46
|
+
preferredSfuDid?: string,
|
|
47
|
+
/**
|
|
48
|
+
* ICE servers (STUN + TURN) for the SFU path, when an app passes this
|
|
49
|
+
* config to `createSession`. Never stored in the neighbourhood, where
|
|
50
|
+
* every member would sync every credential: `sfu.setConfig` refuses
|
|
51
|
+
* it and `sfu.getConfig` leaves it empty.
|
|
52
|
+
*/
|
|
53
|
+
iceServers?: Array<IceServer>, };
|