@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,6 +8,7 @@ import type { AgentRemoveAppParams } from "./AgentRemoveAppParams";
|
|
|
8
8
|
import type { AgentRevokeTokenParams } from "./AgentRevokeTokenParams";
|
|
9
9
|
import type { AgentSignature } from "./AgentSignature";
|
|
10
10
|
import type { AgentStatus } from "./AgentStatus";
|
|
11
|
+
import type { AgentsByDidsRequest } from "./AgentsByDidsRequest";
|
|
11
12
|
import type { AiAddModelParams } from "./AiAddModelParams";
|
|
12
13
|
import type { AiAddTaskParams } from "./AiAddTaskParams";
|
|
13
14
|
import type { AiDiscoverModelsParams } from "./AiDiscoverModelsParams";
|
|
@@ -21,6 +22,7 @@ import type { AiUpdateModelParams } from "./AiUpdateModelParams";
|
|
|
21
22
|
import type { AiUpdateTaskParams } from "./AiUpdateTaskParams";
|
|
22
23
|
import type { ApplyTemplateRequest } from "./ApplyTemplateRequest";
|
|
23
24
|
import type { Apps } from "./Apps";
|
|
25
|
+
import type { CallSessionInfo } from "./CallSessionInfo";
|
|
24
26
|
import type { ComputeLogEntry } from "./ComputeLogEntry";
|
|
25
27
|
import type { CreateExpressionRequest } from "./CreateExpressionRequest";
|
|
26
28
|
import type { CreatePerspectiveRequest } from "./CreatePerspectiveRequest";
|
|
@@ -38,6 +40,7 @@ import type { ExpressionManyRequest } from "./ExpressionManyRequest";
|
|
|
38
40
|
import type { ExpressionRendered } from "./ExpressionRendered";
|
|
39
41
|
import type { ExpressionUrlRequest } from "./ExpressionUrlRequest";
|
|
40
42
|
import type { FireOutcome } from "./FireOutcome";
|
|
43
|
+
import type { FlowStateEntry } from "./FlowStateEntry";
|
|
41
44
|
import type { FriendsListRequest } from "./FriendsListRequest";
|
|
42
45
|
import type { GenerateAgentRequest } from "./GenerateAgentRequest";
|
|
43
46
|
import type { GenerateJwtRequest } from "./GenerateJwtRequest";
|
|
@@ -77,12 +80,16 @@ import type { PerspectiveAddSdnaParams } from "./PerspectiveAddSdnaParams";
|
|
|
77
80
|
import type { PerspectiveAddSdnaResult } from "./PerspectiveAddSdnaResult";
|
|
78
81
|
import type { PerspectiveCommitBatchParams } from "./PerspectiveCommitBatchParams";
|
|
79
82
|
import type { PerspectiveCreateSubjectParams } from "./PerspectiveCreateSubjectParams";
|
|
83
|
+
import type { PerspectiveDiscardBatchParams } from "./PerspectiveDiscardBatchParams";
|
|
80
84
|
import type { PerspectiveEvaluateGettersParams } from "./PerspectiveEvaluateGettersParams";
|
|
81
85
|
import type { PerspectiveExecuteCommandsParams } from "./PerspectiveExecuteCommandsParams";
|
|
82
86
|
import type { PerspectiveExpression } from "./PerspectiveExpression";
|
|
87
|
+
import type { PerspectiveFlowFiredParams } from "./PerspectiveFlowFiredParams";
|
|
83
88
|
import type { PerspectiveFlowProposalParams } from "./PerspectiveFlowProposalParams";
|
|
84
89
|
import type { PerspectiveFlowReceiptVerdict } from "./PerspectiveFlowReceiptVerdict";
|
|
90
|
+
import type { PerspectiveFlowStatesParams } from "./PerspectiveFlowStatesParams";
|
|
85
91
|
import type { PerspectiveFlowValidOutputsParams } from "./PerspectiveFlowValidOutputsParams";
|
|
92
|
+
import type { PerspectiveGetAllShaclParams } from "./PerspectiveGetAllShaclParams";
|
|
86
93
|
import type { PerspectiveGetSubjectDataParams } from "./PerspectiveGetSubjectDataParams";
|
|
87
94
|
import type { PerspectiveHandle } from "./PerspectiveHandle";
|
|
88
95
|
import type { PerspectiveLinkDiff } from "./PerspectiveLinkDiff";
|
|
@@ -90,7 +97,6 @@ import type { PerspectiveLinkMutationsParams } from "./PerspectiveLinkMutationsP
|
|
|
90
97
|
import type { PerspectiveMintFlowReceiptParams } from "./PerspectiveMintFlowReceiptParams";
|
|
91
98
|
import type { PerspectiveMintFlowReceiptResult } from "./PerspectiveMintFlowReceiptResult";
|
|
92
99
|
import type { PerspectiveModelQueryParams } from "./PerspectiveModelQueryParams";
|
|
93
|
-
import type { PerspectiveModelSubscribeResult } from "./PerspectiveModelSubscribeResult";
|
|
94
100
|
import type { PerspectiveNamedShacl } from "./PerspectiveNamedShacl";
|
|
95
101
|
import type { PerspectiveProposeFlowTransitionParams } from "./PerspectiveProposeFlowTransitionParams";
|
|
96
102
|
import type { PerspectiveQueryLinksParams } from "./PerspectiveQueryLinksParams";
|
|
@@ -99,15 +105,18 @@ import type { PerspectiveRejectFlowProposalResult } from "./PerspectiveRejectFlo
|
|
|
99
105
|
import type { PerspectiveRemoveAutoProcessorParams } from "./PerspectiveRemoveAutoProcessorParams";
|
|
100
106
|
import type { PerspectiveRemoveLinkParams } from "./PerspectiveRemoveLinkParams";
|
|
101
107
|
import type { PerspectiveRemoveLinksParams } from "./PerspectiveRemoveLinksParams";
|
|
108
|
+
import type { PerspectiveRemoveSubjectParams } from "./PerspectiveRemoveSubjectParams";
|
|
102
109
|
import type { PerspectiveResolveInterpretationParams } from "./PerspectiveResolveInterpretationParams";
|
|
110
|
+
import type { PerspectiveResynced } from "./PerspectiveResynced";
|
|
103
111
|
import type { PerspectiveShacl } from "./PerspectiveShacl";
|
|
104
112
|
import type { PerspectiveShaclNameParams } from "./PerspectiveShaclNameParams";
|
|
105
113
|
import type { PerspectiveSparqlParams } from "./PerspectiveSparqlParams";
|
|
106
114
|
import type { PerspectiveSubjectClassesOfParams } from "./PerspectiveSubjectClassesOfParams";
|
|
107
|
-
import type {
|
|
115
|
+
import type { PerspectiveSubscribed } from "./PerspectiveSubscribed";
|
|
108
116
|
import type { PerspectiveSubscriptionParams } from "./PerspectiveSubscriptionParams";
|
|
109
117
|
import type { PerspectiveUpdateLinkParams } from "./PerspectiveUpdateLinkParams";
|
|
110
118
|
import type { PerspectiveUpdateParams } from "./PerspectiveUpdateParams";
|
|
119
|
+
import type { PerspectiveUpdateSubjectParams } from "./PerspectiveUpdateSubjectParams";
|
|
111
120
|
import type { PerspectiveUuidParams } from "./PerspectiveUuidParams";
|
|
112
121
|
import type { PerspectiveVerifyFlowReceiptParams } from "./PerspectiveVerifyFlowReceiptParams";
|
|
113
122
|
import type { PromptRequest } from "./PromptRequest";
|
|
@@ -136,6 +145,21 @@ import type { SetMultiUserRequest } from "./SetMultiUserRequest";
|
|
|
136
145
|
import type { SetStatusRequest } from "./SetStatusRequest";
|
|
137
146
|
import type { SetUnytMembraneProofRequest } from "./SetUnytMembraneProofRequest";
|
|
138
147
|
import type { SetUserFreeAccessRequest } from "./SetUserFreeAccessRequest";
|
|
148
|
+
import type { SfuAddIceCandidateParams } from "./SfuAddIceCandidateParams";
|
|
149
|
+
import type { SfuAnswerServerOfferParams } from "./SfuAnswerServerOfferParams";
|
|
150
|
+
import type { SfuCallJoinParams } from "./SfuCallJoinParams";
|
|
151
|
+
import type { SfuCascadeStatus } from "./SfuCascadeStatus";
|
|
152
|
+
import type { SfuConfig } from "./SfuConfig";
|
|
153
|
+
import type { SfuEnsureMembershipParams } from "./SfuEnsureMembershipParams";
|
|
154
|
+
import type { SfuNeighbourhoodParams } from "./SfuNeighbourhoodParams";
|
|
155
|
+
import type { SfuParticipantQualityPreference } from "./SfuParticipantQualityPreference";
|
|
156
|
+
import type { SfuPerspectiveParams } from "./SfuPerspectiveParams";
|
|
157
|
+
import type { SfuQualityPreferenceParams } from "./SfuQualityPreferenceParams";
|
|
158
|
+
import type { SfuRoomInfo } from "./SfuRoomInfo";
|
|
159
|
+
import type { SfuRoomParams } from "./SfuRoomParams";
|
|
160
|
+
import type { SfuSendDataParams } from "./SfuSendDataParams";
|
|
161
|
+
import type { SfuSetConfigParams } from "./SfuSetConfigParams";
|
|
162
|
+
import type { SfuStatus } from "./SfuStatus";
|
|
139
163
|
import type { SignMessageRequest } from "./SignMessageRequest";
|
|
140
164
|
import type { TrustedAgentsWrapper } from "./TrustedAgentsWrapper";
|
|
141
165
|
import type { UnlockAgentRequest } from "./UnlockAgentRequest";
|
|
@@ -163,6 +187,10 @@ export interface RpcMethods {
|
|
|
163
187
|
params: TrustedAgentsWrapper;
|
|
164
188
|
result: Array<string>;
|
|
165
189
|
};
|
|
190
|
+
"agent.byDIDs": {
|
|
191
|
+
params: AgentsByDidsRequest;
|
|
192
|
+
result: Array<Agent | null>;
|
|
193
|
+
};
|
|
166
194
|
"agent.byDid": {
|
|
167
195
|
params: AgentByDidParams;
|
|
168
196
|
result: Agent | null;
|
|
@@ -411,6 +439,10 @@ export interface RpcMethods {
|
|
|
411
439
|
params: NeighbourhoodUuidParams;
|
|
412
440
|
result: Array<string>;
|
|
413
441
|
};
|
|
442
|
+
"neighbourhood.ownOnlineStatus": {
|
|
443
|
+
params: NeighbourhoodUuidParams;
|
|
444
|
+
result: PerspectiveExpression | null;
|
|
445
|
+
};
|
|
414
446
|
"neighbourhood.publish": {
|
|
415
447
|
params: PublishNeighbourhoodRequest;
|
|
416
448
|
result: string;
|
|
@@ -475,6 +507,10 @@ export interface RpcMethods {
|
|
|
475
507
|
params: PerspectiveCreateSubjectParams;
|
|
476
508
|
result: boolean;
|
|
477
509
|
};
|
|
510
|
+
"perspective.discardBatch": {
|
|
511
|
+
params: PerspectiveDiscardBatchParams;
|
|
512
|
+
result: boolean;
|
|
513
|
+
};
|
|
478
514
|
"perspective.disposeQuery": {
|
|
479
515
|
params: PerspectiveSubscriptionParams;
|
|
480
516
|
result: boolean;
|
|
@@ -491,6 +527,14 @@ export interface RpcMethods {
|
|
|
491
527
|
params: PerspectiveExecuteCommandsParams;
|
|
492
528
|
result: null;
|
|
493
529
|
};
|
|
530
|
+
"perspective.flowFired": {
|
|
531
|
+
params: PerspectiveFlowFiredParams;
|
|
532
|
+
result: Array<string>;
|
|
533
|
+
};
|
|
534
|
+
"perspective.flowStates": {
|
|
535
|
+
params: PerspectiveFlowStatesParams;
|
|
536
|
+
result: Array<FlowStateEntry>;
|
|
537
|
+
};
|
|
494
538
|
"perspective.flowValidOutputs": {
|
|
495
539
|
params: PerspectiveFlowValidOutputsParams;
|
|
496
540
|
result: Array<ValidOutput>;
|
|
@@ -500,7 +544,7 @@ export interface RpcMethods {
|
|
|
500
544
|
result: PerspectiveHandle | null;
|
|
501
545
|
};
|
|
502
546
|
"perspective.getAllShacl": {
|
|
503
|
-
params:
|
|
547
|
+
params: PerspectiveGetAllShaclParams;
|
|
504
548
|
result: Array<PerspectiveNamedShacl>;
|
|
505
549
|
};
|
|
506
550
|
"perspective.getShacl": {
|
|
@@ -523,14 +567,6 @@ export interface RpcMethods {
|
|
|
523
567
|
params: PerspectiveUuidParams;
|
|
524
568
|
result: Array<OverlayView>;
|
|
525
569
|
};
|
|
526
|
-
"perspective.keepAliveQuery": {
|
|
527
|
-
params: PerspectiveSubscriptionParams;
|
|
528
|
-
result: boolean;
|
|
529
|
-
};
|
|
530
|
-
"perspective.keepAliveSparql": {
|
|
531
|
-
params: PerspectiveSubscriptionParams;
|
|
532
|
-
result: boolean;
|
|
533
|
-
};
|
|
534
570
|
"perspective.linkMutations": {
|
|
535
571
|
params: PerspectiveLinkMutationsParams;
|
|
536
572
|
result: PerspectiveLinkDiff;
|
|
@@ -545,7 +581,7 @@ export interface RpcMethods {
|
|
|
545
581
|
};
|
|
546
582
|
"perspective.modelSubscribe": {
|
|
547
583
|
params: PerspectiveModelQueryParams;
|
|
548
|
-
result:
|
|
584
|
+
result: PerspectiveSubscribed;
|
|
549
585
|
};
|
|
550
586
|
"perspective.proposeFlowTransition": {
|
|
551
587
|
params: PerspectiveProposeFlowTransitionParams;
|
|
@@ -591,6 +627,14 @@ export interface RpcMethods {
|
|
|
591
627
|
params: PerspectiveRemoveLinksParams;
|
|
592
628
|
result: Array<DecoratedLinkExpression>;
|
|
593
629
|
};
|
|
630
|
+
"perspective.removeSubject": {
|
|
631
|
+
params: PerspectiveRemoveSubjectParams;
|
|
632
|
+
result: boolean;
|
|
633
|
+
};
|
|
634
|
+
"perspective.resyncSubscription": {
|
|
635
|
+
params: PerspectiveSubscriptionParams;
|
|
636
|
+
result: PerspectiveResynced;
|
|
637
|
+
};
|
|
594
638
|
"perspective.runInterpretation": {
|
|
595
639
|
params: RunInterpretationRequest;
|
|
596
640
|
result: Array<string>;
|
|
@@ -611,11 +655,11 @@ export interface RpcMethods {
|
|
|
611
655
|
};
|
|
612
656
|
"perspective.subscribeQuery": {
|
|
613
657
|
params: PerspectiveQueryParams;
|
|
614
|
-
result:
|
|
658
|
+
result: PerspectiveSubscribed;
|
|
615
659
|
};
|
|
616
660
|
"perspective.subscribeSparql": {
|
|
617
661
|
params: PerspectiveQueryParams;
|
|
618
|
-
result:
|
|
662
|
+
result: PerspectiveSubscribed;
|
|
619
663
|
};
|
|
620
664
|
"perspective.update": {
|
|
621
665
|
params: PerspectiveUpdateParams;
|
|
@@ -625,6 +669,10 @@ export interface RpcMethods {
|
|
|
625
669
|
params: PerspectiveUpdateLinkParams;
|
|
626
670
|
result: DecoratedLinkExpression;
|
|
627
671
|
};
|
|
672
|
+
"perspective.updateSubject": {
|
|
673
|
+
params: PerspectiveUpdateSubjectParams;
|
|
674
|
+
result: boolean;
|
|
675
|
+
};
|
|
628
676
|
"perspective.verifyFlowReceipt": {
|
|
629
677
|
params: PerspectiveVerifyFlowReceiptParams;
|
|
630
678
|
result: PerspectiveFlowReceiptVerdict;
|
|
@@ -789,6 +837,78 @@ export interface RpcMethods {
|
|
|
789
837
|
params: VerifySignatureRequest;
|
|
790
838
|
result: boolean;
|
|
791
839
|
};
|
|
840
|
+
"sfu.addIceCandidate": {
|
|
841
|
+
params: SfuAddIceCandidateParams;
|
|
842
|
+
result: boolean;
|
|
843
|
+
};
|
|
844
|
+
"sfu.callAnswerServerOffer": {
|
|
845
|
+
params: SfuAnswerServerOfferParams;
|
|
846
|
+
result: boolean;
|
|
847
|
+
};
|
|
848
|
+
"sfu.callJoin": {
|
|
849
|
+
params: SfuCallJoinParams;
|
|
850
|
+
result: CallSessionInfo;
|
|
851
|
+
};
|
|
852
|
+
"sfu.callLeave": {
|
|
853
|
+
params: SfuRoomParams;
|
|
854
|
+
result: boolean;
|
|
855
|
+
};
|
|
856
|
+
"sfu.callSetQualityPreference": {
|
|
857
|
+
params: SfuQualityPreferenceParams;
|
|
858
|
+
result: boolean;
|
|
859
|
+
};
|
|
860
|
+
"sfu.cascadeStatus": {
|
|
861
|
+
params: Record<string, never>;
|
|
862
|
+
result: SfuCascadeStatus;
|
|
863
|
+
};
|
|
864
|
+
"sfu.ensureMembership": {
|
|
865
|
+
params: SfuEnsureMembershipParams;
|
|
866
|
+
result: boolean;
|
|
867
|
+
};
|
|
868
|
+
"sfu.getConfig": {
|
|
869
|
+
params: SfuNeighbourhoodParams;
|
|
870
|
+
result: SfuConfig;
|
|
871
|
+
};
|
|
872
|
+
"sfu.listRooms": {
|
|
873
|
+
params: Record<string, never>;
|
|
874
|
+
result: Array<SfuRoomInfo>;
|
|
875
|
+
};
|
|
876
|
+
"sfu.qualityPreferences": {
|
|
877
|
+
params: Record<string, never>;
|
|
878
|
+
result: Array<SfuParticipantQualityPreference>;
|
|
879
|
+
};
|
|
880
|
+
"sfu.sendData": {
|
|
881
|
+
params: SfuSendDataParams;
|
|
882
|
+
result: boolean;
|
|
883
|
+
};
|
|
884
|
+
"sfu.servesAllMembers": {
|
|
885
|
+
params: SfuPerspectiveParams;
|
|
886
|
+
result: boolean;
|
|
887
|
+
};
|
|
888
|
+
"sfu.setConfig": {
|
|
889
|
+
params: SfuSetConfigParams;
|
|
890
|
+
result: boolean;
|
|
891
|
+
};
|
|
892
|
+
"sfu.sfuPeerForNeighbourhood": {
|
|
893
|
+
params: SfuNeighbourhoodParams;
|
|
894
|
+
result: string | null;
|
|
895
|
+
};
|
|
896
|
+
"sfu.sfuPeersForNeighbourhood": {
|
|
897
|
+
params: SfuNeighbourhoodParams;
|
|
898
|
+
result: Array<string>;
|
|
899
|
+
};
|
|
900
|
+
"sfu.startRoom": {
|
|
901
|
+
params: SfuRoomParams;
|
|
902
|
+
result: SfuRoomInfo;
|
|
903
|
+
};
|
|
904
|
+
"sfu.status": {
|
|
905
|
+
params: Record<string, never>;
|
|
906
|
+
result: SfuStatus;
|
|
907
|
+
};
|
|
908
|
+
"sfu.stopRoom": {
|
|
909
|
+
params: SfuRoomParams;
|
|
910
|
+
result: boolean;
|
|
911
|
+
};
|
|
792
912
|
"user.create": {
|
|
793
913
|
params: CreateUserRequest;
|
|
794
914
|
result: UserCreationResult;
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
// Do NOT edit manually — regenerate with: pnpm run generate:api-types
|
|
3
3
|
/** Idempotent reads: the client resends one once after a reconnect. */
|
|
4
4
|
export const READ_METHODS = new Set([
|
|
5
|
+
"agent.byDIDs",
|
|
5
6
|
"agent.byDid",
|
|
6
7
|
"agent.entanglementProofPreflight",
|
|
7
8
|
"agent.get",
|
|
@@ -29,8 +30,11 @@ export const READ_METHODS = new Set([
|
|
|
29
30
|
"neighbourhood.hasTelepresence",
|
|
30
31
|
"neighbourhood.onlineAgents",
|
|
31
32
|
"neighbourhood.otherAgents",
|
|
33
|
+
"neighbourhood.ownOnlineStatus",
|
|
32
34
|
"perspective.all",
|
|
33
35
|
"perspective.evaluateGetters",
|
|
36
|
+
"perspective.flowFired",
|
|
37
|
+
"perspective.flowStates",
|
|
34
38
|
"perspective.flowValidOutputs",
|
|
35
39
|
"perspective.get",
|
|
36
40
|
"perspective.getAllShacl",
|
|
@@ -65,6 +69,14 @@ export const READ_METHODS = new Set([
|
|
|
65
69
|
"runtime.unytWalletBalance",
|
|
66
70
|
"runtime.unytWalletHistory",
|
|
67
71
|
"runtime.verifySignature",
|
|
72
|
+
"sfu.cascadeStatus",
|
|
73
|
+
"sfu.getConfig",
|
|
74
|
+
"sfu.listRooms",
|
|
75
|
+
"sfu.qualityPreferences",
|
|
76
|
+
"sfu.servesAllMembers",
|
|
77
|
+
"sfu.sfuPeerForNeighbourhood",
|
|
78
|
+
"sfu.sfuPeersForNeighbourhood",
|
|
79
|
+
"sfu.status",
|
|
68
80
|
"user.list",
|
|
69
81
|
"user.multiUserEnabled",
|
|
70
82
|
"user.wallet",
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export type SfuCallJoinParams = {
|
|
2
|
+
neighbourhoodUrl: string;
|
|
3
|
+
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;
|
|
14
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { TrackMapEntry } from "./TrackMapEntry";
|
|
2
|
+
/**
|
|
3
|
+
* Server-pushed SDP offer delivered to one specific participant when
|
|
4
|
+
* the SFU needs them to renegotiate — typically because a new peer
|
|
5
|
+
* joined the same room and the relay now has additional outbound
|
|
6
|
+
* tracks to forward. The client applies this as a remote offer,
|
|
7
|
+
* generates an answer, and posts the answer via
|
|
8
|
+
* `sfu.callAnswerServerOffer`.
|
|
9
|
+
*/
|
|
10
|
+
export type SfuCallRenegotiationOffer = {
|
|
11
|
+
/**
|
|
12
|
+
* DID of the participant this offer is addressed to. Used by the
|
|
13
|
+
* events_ws fanout to filter per-user.
|
|
14
|
+
*/
|
|
15
|
+
targetDid: string;
|
|
16
|
+
neighbourhoodUrl: string;
|
|
17
|
+
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>;
|
|
30
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import type { IceServer } from "./IceServer";
|
|
2
|
+
/**
|
|
3
|
+
* A neighbourhood's call configuration. Only `mode` and
|
|
4
|
+
* `maxMeshParticipants` are stored in the neighbourhood (see
|
|
5
|
+
* `sfu::config_store`); `sfu.getConfig` fills the node fields from the
|
|
6
|
+
* executor, and `sfu.setConfig` refuses them and `iceServers`.
|
|
7
|
+
*/
|
|
8
|
+
export type SfuConfig = {
|
|
9
|
+
/**
|
|
10
|
+
* `"mesh"` | `"designated"` | `"gateway"` | `"cascaded"`
|
|
11
|
+
*/
|
|
12
|
+
mode: "mesh" | "designated" | "gateway" | "cascaded";
|
|
13
|
+
/**
|
|
14
|
+
* Not stored, and `sfu.setConfig` refuses it: a client always joins
|
|
15
|
+
* its own executor's SFU.
|
|
16
|
+
*/
|
|
17
|
+
designatedPeer?: string;
|
|
18
|
+
/**
|
|
19
|
+
* Fallback mode when SFU is unavailable.
|
|
20
|
+
*/
|
|
21
|
+
fallback: "mesh" | "designated" | "gateway" | "cascaded";
|
|
22
|
+
/**
|
|
23
|
+
* Maximum participants before mesh is degraded.
|
|
24
|
+
*/
|
|
25
|
+
maxMeshParticipants: number;
|
|
26
|
+
/**
|
|
27
|
+
* This node's cascade peers (`--sfu-cascade-peers`), as
|
|
28
|
+
* `sfu.getConfig` reports them. Not stored in the neighbourhood.
|
|
29
|
+
*/
|
|
30
|
+
sfuPeers?: Array<string>;
|
|
31
|
+
/**
|
|
32
|
+
* This node's capacity in a cascade (`--sfu-max-participants-per-node`),
|
|
33
|
+
* as `sfu.getConfig` reports it. Not stored in the neighbourhood.
|
|
34
|
+
*/
|
|
35
|
+
maxParticipantsPerNode?: number;
|
|
36
|
+
/**
|
|
37
|
+
* The cascade node that takes redirected joins first
|
|
38
|
+
* (`--sfu-preferred-node`); overflow spills to other nodes only when
|
|
39
|
+
* it reaches capacity. Useful when a powerful hosted multi-user node
|
|
40
|
+
* serves most participants and lighter personal executors act as
|
|
41
|
+
* fallbacks. As `sfu.getConfig` reports it; not stored in the
|
|
42
|
+
* neighbourhood.
|
|
43
|
+
*/
|
|
44
|
+
preferredSfuDid?: string;
|
|
45
|
+
/**
|
|
46
|
+
* ICE servers (STUN + TURN) for the SFU path, when an app passes this
|
|
47
|
+
* config to `createSession`. Never stored in the neighbourhood, where
|
|
48
|
+
* every member would sync every credential: `sfu.setConfig` refuses
|
|
49
|
+
* it and `sfu.getConfig` leaves it empty.
|
|
50
|
+
*/
|
|
51
|
+
iceServers?: Array<IceServer>;
|
|
52
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Data channel message relayed through the SFU, published on the
|
|
3
|
+
* `sfu-data` event to the room's members.
|
|
4
|
+
*/
|
|
5
|
+
export type SfuDataMessage = {
|
|
6
|
+
/**
|
|
7
|
+
* DID of the participant who sent the data.
|
|
8
|
+
*/
|
|
9
|
+
senderDid: string;
|
|
10
|
+
neighbourhoodUrl: string;
|
|
11
|
+
roomName: string;
|
|
12
|
+
/**
|
|
13
|
+
* Label of the data channel.
|
|
14
|
+
*/
|
|
15
|
+
channelLabel: string;
|
|
16
|
+
/**
|
|
17
|
+
* True when the payload is binary (base64-encoded in `data`).
|
|
18
|
+
*/
|
|
19
|
+
binary: boolean;
|
|
20
|
+
/**
|
|
21
|
+
* The payload — UTF-8 text or base64-encoded binary.
|
|
22
|
+
*/
|
|
23
|
+
data: string;
|
|
24
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Server-pushed event telling a participant to leave their current
|
|
3
|
+
* SFU node and rejoin on `target_did`. The cascade rebalancer
|
|
4
|
+
* publishes this when it detects a significant load imbalance across
|
|
5
|
+
* the cluster. The client should call `leave()`, set the connected
|
|
6
|
+
* node DID to `target_did`, then call `join()` — the same flow as
|
|
7
|
+
* cascade failover.
|
|
8
|
+
*/
|
|
9
|
+
export type SfuMigrateEvent = {
|
|
10
|
+
/**
|
|
11
|
+
* DID of the participant being migrated. Used by the events_ws
|
|
12
|
+
* fanout to filter per-user.
|
|
13
|
+
*/
|
|
14
|
+
targetDid: string;
|
|
15
|
+
neighbourhoodUrl: string;
|
|
16
|
+
roomName: string;
|
|
17
|
+
/**
|
|
18
|
+
* DID of the SFU node the participant should reconnect to.
|
|
19
|
+
*/
|
|
20
|
+
migrateToDid: string;
|
|
21
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { SfuRoomParticipantInfo } from "./SfuRoomParticipantInfo";
|
|
2
|
+
/**
|
|
3
|
+
* Snapshot of an SFU room, exposed over the WS RPC API.
|
|
4
|
+
*/
|
|
5
|
+
export type SfuRoomInfo = {
|
|
6
|
+
neighbourhoodUrl: string;
|
|
7
|
+
roomName: string;
|
|
8
|
+
participantCount: number;
|
|
9
|
+
participants: Array<SfuRoomParticipantInfo>;
|
|
10
|
+
createdAtMs: number;
|
|
11
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* One participant of an [`SfuRoomInfo`]. The SDK names it
|
|
3
|
+
* `SfuRoomParticipantInfo`: its `SfuParticipantInfo` carries a live
|
|
4
|
+
* `MediaStream`.
|
|
5
|
+
*/
|
|
6
|
+
export type SfuRoomParticipantInfo = {
|
|
7
|
+
agentDid: string;
|
|
8
|
+
hasAudio: boolean;
|
|
9
|
+
hasVideo: boolean;
|
|
10
|
+
isActiveSpeaker: boolean;
|
|
11
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Who is in a call room now. Published whenever the room's participants
|
|
3
|
+
* change, and delivered to each of them, so a client knows who joined and
|
|
4
|
+
* who left without waiting on media.
|
|
5
|
+
*/
|
|
6
|
+
export type SfuRoomRoster = {
|
|
7
|
+
neighbourhoodUrl: string;
|
|
8
|
+
roomName: string;
|
|
9
|
+
/**
|
|
10
|
+
* DIDs of the room's participants on this node, sorted.
|
|
11
|
+
*/
|
|
12
|
+
participants: Array<string>;
|
|
13
|
+
};
|