@coasys/ad4m 0.13.0-test-flows-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/README.md +1 -0
- package/lib/index.cjs +9613 -7069
- package/lib/index.js +7367 -4840
- package/lib/src/Ad4mClient.d.ts +12 -4
- package/lib/src/Ad4mClient.js +15 -11
- package/lib/src/Literal.js +3 -3
- package/lib/src/agent/Agent.d.ts +4 -1
- package/lib/src/agent/Agent.js +6 -0
- package/lib/src/agent/AgentClient.d.ts +9 -23
- package/lib/src/agent/AgentClient.js +68 -148
- package/lib/src/ai/AIClient.d.ts +10 -6
- package/lib/src/ai/AIClient.js +29 -27
- package/lib/src/apiClient.d.ts +54 -42
- package/lib/src/apiClient.js +279 -252
- package/lib/src/expression/Expression.d.ts +13 -4
- package/lib/src/expression/Expression.js +0 -1
- package/lib/src/expression/ExpressionClient.js +1 -1
- package/lib/src/generated/api/AIPromptExamples.d.ts +4 -0
- package/lib/src/generated/api/AIPromptExamples.js +2 -0
- package/lib/src/generated/api/AIPromptExamplesInput.d.ts +4 -0
- package/lib/src/generated/api/AIPromptExamplesInput.js +2 -0
- package/lib/src/generated/api/AITask.d.ts +11 -0
- package/lib/src/generated/api/AITaskInput.d.ts +8 -0
- package/lib/src/generated/api/AddAgentInfosRequest.d.ts +3 -0
- package/lib/src/generated/api/AddAgentInfosRequest.js +2 -0
- package/lib/src/generated/api/AddLinkExpressionRequest.d.ts +2 -2
- package/lib/src/generated/api/AddLinkRequest.d.ts +2 -2
- package/lib/src/generated/api/AddLinksBulkRequest.d.ts +2 -2
- package/lib/src/generated/api/AddSdnaRequest.d.ts +2 -2
- package/lib/src/generated/api/Agent.d.ts +6 -0
- package/lib/src/generated/api/AgentAddEntanglementProofsParams.d.ts +9 -0
- package/lib/src/generated/api/AgentByDidParams.d.ts +3 -0
- package/lib/src/generated/api/AgentByDidParams.js +2 -0
- package/lib/src/generated/api/AgentRemoveAppParams.d.ts +3 -0
- package/lib/src/generated/api/AgentRemoveAppParams.js +2 -0
- package/lib/src/generated/api/AgentRevokeTokenParams.d.ts +3 -0
- package/lib/src/generated/api/AgentRevokeTokenParams.js +2 -0
- package/lib/src/generated/api/AgentSignature.d.ts +4 -0
- package/lib/src/generated/api/AgentSignature.js +2 -0
- package/lib/src/generated/api/AgentStatus.d.ts +8 -0
- package/lib/src/generated/api/AgentStatusChangedEvent.d.ts +7 -0
- package/lib/src/generated/api/AgentUpdatedEvent.d.ts +7 -0
- package/lib/src/generated/api/AgentsByDidsRequest.d.ts +3 -0
- package/lib/src/generated/api/AgentsByDidsRequest.js +2 -0
- package/lib/src/generated/api/AiAddModelParams.d.ts +4 -0
- package/lib/src/generated/api/AiAddTaskParams.d.ts +4 -0
- package/lib/src/generated/api/AiDiscoverModelsParams.d.ts +8 -0
- package/lib/src/generated/api/AiDiscoverModelsParams.js +2 -0
- package/lib/src/generated/api/AiGetDefaultModelParams.d.ts +4 -0
- package/lib/src/generated/api/AiIdParams.d.ts +3 -0
- package/lib/src/generated/api/AiIdParams.js +2 -0
- package/lib/src/generated/api/AiModelLoadingStatusParams.d.ts +7 -0
- package/lib/src/generated/api/AiModelLoadingStatusParams.js +2 -0
- package/lib/src/generated/api/AiSetDefaultModelParams.d.ts +5 -0
- package/lib/src/generated/api/AiSetDefaultModelParams.js +1 -0
- package/lib/src/generated/api/AiTranscriptionCloseParams.d.ts +3 -0
- package/lib/src/generated/api/AiTranscriptionCloseParams.js +2 -0
- package/lib/src/generated/api/AiTranscriptionOpenParams.d.ts +5 -0
- package/lib/src/generated/api/AiTranscriptionOpenParams.js +1 -0
- package/lib/src/generated/api/AiUpdateModelParams.d.ts +5 -0
- package/lib/src/generated/api/AiUpdateModelParams.js +1 -0
- package/lib/src/generated/api/AiUpdateTaskParams.d.ts +4 -0
- package/lib/src/generated/api/AiUpdateTaskParams.js +1 -0
- package/lib/src/generated/api/Apps.d.ts +7 -0
- package/lib/src/generated/api/Apps.js +1 -0
- package/lib/src/generated/api/AuthInfo.d.ts +10 -0
- package/lib/src/generated/api/AuthInfo.js +1 -0
- package/lib/src/generated/api/AuthInfoInput.d.ts +4 -4
- package/lib/src/generated/api/AutoProcessorEvent.d.ts +89 -0
- package/lib/src/generated/api/AutoProcessorEvent.js +1 -0
- package/lib/src/generated/api/AutoProcessorNeighbourhoodState.d.ts +32 -0
- package/lib/src/generated/api/AutoProcessorNeighbourhoodState.js +1 -0
- package/lib/src/generated/api/AutoProcessorStep.d.ts +7 -0
- package/lib/src/generated/api/AutoProcessorStep.js +2 -0
- package/lib/src/generated/api/BroadcastRequest.d.ts +5 -0
- package/lib/src/generated/api/BroadcastRequest.js +2 -0
- package/lib/src/generated/api/CallSessionInfo.d.ts +23 -0
- package/lib/src/generated/api/CallSessionInfo.js +2 -0
- package/lib/src/generated/api/Capability.d.ts +5 -0
- package/lib/src/generated/api/Capability.js +1 -0
- package/lib/src/generated/api/CreateSubjectRequest.d.ts +2 -2
- package/lib/src/generated/api/CreateUserRequest.d.ts +4 -0
- package/lib/src/generated/api/CreateUserRequest.js +2 -0
- package/lib/src/generated/api/DateTime.d.ts +1 -0
- package/lib/src/generated/api/DateTime.js +2 -0
- package/lib/src/generated/api/DecoratedExpressionProof.d.ts +6 -0
- package/lib/src/generated/api/DecoratedExpressionProof.js +2 -0
- package/lib/src/generated/api/DecoratedLinkExpression.d.ts +10 -0
- package/lib/src/generated/api/DecoratedLinkExpression.js +1 -0
- package/lib/src/generated/api/DecoratedNeighbourhoodExpression.d.ts +8 -0
- package/lib/src/generated/api/DecoratedNeighbourhoodExpression.js +1 -0
- package/lib/src/generated/api/DecoratedPerspective.d.ts +4 -0
- package/lib/src/generated/api/DecoratedPerspective.js +1 -0
- package/lib/src/generated/api/DiscardBatchRequest.d.ts +3 -0
- package/lib/src/generated/api/DiscardBatchRequest.js +2 -0
- package/lib/src/generated/api/DisposeQueryRequest.d.ts +3 -0
- package/lib/src/generated/api/DisposeQueryRequest.js +2 -0
- package/lib/src/generated/api/EntanglementProof.d.ts +8 -0
- package/lib/src/generated/api/EntanglementProof.js +2 -0
- package/lib/src/generated/api/EntanglementProofInput.d.ts +1 -1
- package/lib/src/generated/api/EntanglementProofPreflightRequest.d.ts +4 -0
- package/lib/src/generated/api/EntanglementProofPreflightRequest.js +2 -0
- package/lib/src/generated/api/EntanglementProofsWrapper.d.ts +7 -0
- package/lib/src/generated/api/EntanglementProofsWrapper.js +1 -0
- package/lib/src/generated/api/Events.d.ts +56 -0
- package/lib/src/generated/api/Events.js +18 -0
- package/lib/src/generated/api/ExceptionInfo.d.ts +7 -0
- package/lib/src/generated/api/ExceptionInfo.js +1 -0
- package/lib/src/generated/api/ExceptionOccurredEvent.d.ts +7 -0
- package/lib/src/generated/api/ExceptionOccurredEvent.js +1 -0
- package/lib/src/generated/api/ExceptionType.d.ts +1 -0
- package/lib/src/generated/api/ExceptionType.js +2 -0
- package/lib/src/generated/api/ExecuteCommandsRequest.d.ts +4 -2
- package/lib/src/generated/api/ExportRequest.d.ts +1 -1
- package/lib/src/generated/api/ExpressionInteractRequest.d.ts +5 -0
- package/lib/src/generated/api/ExpressionInteractRequest.js +1 -0
- package/lib/src/generated/api/ExpressionProofInput.d.ts +4 -4
- package/lib/src/generated/api/ExpressionRendered.d.ts +11 -0
- package/lib/src/generated/api/ExpressionRendered.js +1 -0
- package/lib/src/generated/api/ExpressionUrlRequest.d.ts +3 -0
- package/lib/src/generated/api/ExpressionUrlRequest.js +2 -0
- package/lib/src/generated/api/FireOutcome.d.ts +14 -0
- package/lib/src/generated/api/FireOutcome.js +2 -0
- package/lib/src/generated/api/FlowStateChangedEvent.d.ts +38 -0
- package/lib/src/generated/api/FlowStateChangedEvent.js +2 -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/FriendSendMessageRequest.d.ts +1 -1
- package/lib/src/generated/api/HostRate.d.ts +7 -0
- package/lib/src/generated/api/HostRate.js +2 -0
- package/lib/src/generated/api/HostingInfoResult.d.ts +13 -0
- package/lib/src/generated/api/HostingInfoResult.js +1 -0
- package/lib/src/generated/api/HostingInfoUser.d.ts +9 -0
- package/lib/src/generated/api/HostingInfoUser.js +2 -0
- package/lib/src/generated/api/HostingRequestPaymentResult.d.ts +4 -0
- package/lib/src/generated/api/HostingRequestPaymentResult.js +2 -0
- package/lib/src/generated/api/HostingUserInfo.d.ts +6 -0
- package/lib/src/generated/api/HostingUserInfo.js +2 -0
- package/lib/src/generated/api/HostingVersionInfo.d.ts +7 -0
- package/lib/src/generated/api/HostingVersionInfo.js +2 -0
- package/lib/src/generated/api/HostingWalletResult.d.ts +8 -0
- package/lib/src/generated/api/HostingWalletResult.js +1 -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/Icon.d.ts +3 -0
- package/lib/src/generated/api/Icon.js +2 -0
- package/lib/src/generated/api/ImportResult.d.ts +15 -0
- package/lib/src/generated/api/ImportResult.js +1 -0
- package/lib/src/generated/api/ImportStats.d.ts +7 -0
- package/lib/src/generated/api/ImportStats.js +2 -0
- package/lib/src/generated/api/InteractionCall.d.ts +4 -0
- package/lib/src/generated/api/InteractionCall.js +2 -0
- package/lib/src/generated/api/InteractionCallWrapper.d.ts +6 -0
- package/lib/src/generated/api/InteractionCallWrapper.js +2 -0
- package/lib/src/generated/api/InteractionMeta.d.ts +6 -0
- package/lib/src/generated/api/InteractionMeta.js +1 -0
- package/lib/src/generated/api/InteractionParameter.d.ts +4 -0
- package/lib/src/generated/api/InteractionParameter.js +2 -0
- package/lib/src/generated/api/LanguageAddressParams.d.ts +3 -0
- package/lib/src/generated/api/LanguageAddressParams.js +2 -0
- package/lib/src/generated/api/LanguageHandle.d.ts +9 -0
- package/lib/src/generated/api/LanguageHandle.js +1 -0
- package/lib/src/generated/api/LanguageListParams.d.ts +3 -0
- package/lib/src/generated/api/LanguageListParams.js +2 -0
- package/lib/src/generated/api/LanguageMeta.d.ts +11 -0
- package/lib/src/generated/api/LanguageMeta.js +2 -0
- package/lib/src/generated/api/LanguageMetaInput.d.ts +2 -2
- package/lib/src/generated/api/LanguageRef.d.ts +4 -0
- package/lib/src/generated/api/LanguageRef.js +2 -0
- package/lib/src/generated/api/LanguageSettingsWrapper.d.ts +6 -0
- package/lib/src/generated/api/LanguageSettingsWrapper.js +2 -0
- package/lib/src/generated/api/LanguageWriteSettingsParams.d.ts +4 -0
- package/lib/src/generated/api/LanguageWriteSettingsParams.js +2 -0
- package/lib/src/generated/api/LinkExpressionInput.d.ts +1 -1
- package/lib/src/generated/api/LinkInput.d.ts +1 -1
- package/lib/src/generated/api/LinkMutationRequest.d.ts +12 -0
- package/lib/src/generated/api/LinkMutationRequest.js +1 -0
- package/lib/src/generated/api/LinkMutationsRequest.d.ts +5 -0
- package/lib/src/generated/api/LinkMutationsRequest.js +1 -0
- package/lib/src/generated/api/LinkStatus.d.ts +1 -1
- package/lib/src/generated/api/LinkUpdateInput.d.ts +5 -0
- package/lib/src/generated/api/LinkUpdateInput.js +1 -0
- package/lib/src/generated/api/LocalModel.d.ts +7 -0
- package/lib/src/generated/api/LocalModel.js +1 -0
- package/lib/src/generated/api/LocalModelInput.d.ts +7 -0
- package/lib/src/generated/api/LocalModelInput.js +1 -0
- package/lib/src/generated/api/MessageReceivedEvent.d.ts +7 -0
- package/lib/src/generated/api/MessageReceivedEvent.js +1 -0
- package/lib/src/generated/api/Model.d.ts +10 -0
- package/lib/src/generated/api/Model.js +1 -0
- package/lib/src/generated/api/ModelApi.d.ts +17 -0
- package/lib/src/generated/api/ModelApi.js +1 -0
- package/lib/src/generated/api/ModelApiInput.d.ts +11 -0
- package/lib/src/generated/api/ModelApiInput.js +2 -0
- package/lib/src/generated/api/ModelApiType.d.ts +1 -0
- package/lib/src/generated/api/ModelApiType.js +2 -0
- package/lib/src/generated/api/ModelInput.d.ts +9 -0
- package/lib/src/generated/api/ModelInput.js +1 -0
- package/lib/src/generated/api/ModelType.d.ts +1 -1
- package/lib/src/generated/api/Neighbourhood.d.ts +5 -0
- package/lib/src/generated/api/Neighbourhood.js +1 -0
- package/lib/src/generated/api/NeighbourhoodBroadcastParams.d.ts +7 -0
- package/lib/src/generated/api/NeighbourhoodBroadcastParams.js +1 -0
- package/lib/src/generated/api/NeighbourhoodOnlineStatusParams.d.ts +6 -0
- package/lib/src/generated/api/NeighbourhoodOnlineStatusParams.js +1 -0
- package/lib/src/generated/api/NeighbourhoodPerspectivePayload.d.ts +7 -0
- package/lib/src/generated/api/NeighbourhoodPerspectivePayload.js +1 -0
- package/lib/src/generated/api/NeighbourhoodPhase.d.ts +6 -0
- package/lib/src/generated/api/NeighbourhoodPhase.js +2 -0
- package/lib/src/generated/api/NeighbourhoodSignalFilter.d.ts +8 -0
- package/lib/src/generated/api/NeighbourhoodSignalFilter.js +1 -0
- package/lib/src/generated/api/NeighbourhoodSignalParams.d.ts +7 -0
- package/lib/src/generated/api/NeighbourhoodSignalParams.js +1 -0
- package/lib/src/generated/api/NeighbourhoodSignedPerspective.d.ts +8 -0
- package/lib/src/generated/api/NeighbourhoodSignedPerspective.js +1 -0
- package/lib/src/generated/api/NeighbourhoodUuidParams.d.ts +3 -0
- package/lib/src/generated/api/NeighbourhoodUuidParams.js +2 -0
- package/lib/src/generated/api/Notification.d.ts +16 -0
- package/lib/src/generated/api/Notification.js +2 -0
- package/lib/src/generated/api/NotificationGrantRequest.d.ts +6 -0
- package/lib/src/generated/api/NotificationGrantRequest.js +2 -0
- package/lib/src/generated/api/NotificationInput.d.ts +1 -1
- package/lib/src/generated/api/NotificationTriggeredEvent.d.ts +9 -0
- package/lib/src/generated/api/NotificationTriggeredEvent.js +1 -0
- package/lib/src/generated/api/OnlineAgent.d.ts +9 -0
- package/lib/src/generated/api/OnlineAgent.js +1 -0
- package/lib/src/generated/api/OutputRef.d.ts +12 -0
- package/lib/src/generated/api/OutputRef.js +2 -0
- package/lib/src/generated/api/OverlayView.d.ts +24 -0
- package/lib/src/generated/api/OverlayView.js +1 -0
- package/lib/src/generated/api/Perspective.d.ts +4 -0
- package/lib/src/generated/api/Perspective.js +1 -0
- package/lib/src/generated/api/PerspectiveAddAutoProcessorParams.d.ts +26 -0
- package/lib/src/generated/api/PerspectiveAddAutoProcessorParams.js +2 -0
- package/lib/src/generated/api/PerspectiveAddLinkExpressionParams.d.ts +7 -0
- package/lib/src/generated/api/PerspectiveAddLinkExpressionParams.js +1 -0
- package/lib/src/generated/api/PerspectiveAddLinkParams.d.ts +7 -0
- package/lib/src/generated/api/PerspectiveAddLinkParams.js +1 -0
- package/lib/src/generated/api/PerspectiveAddLinksParams.d.ts +7 -0
- package/lib/src/generated/api/PerspectiveAddLinksParams.js +1 -0
- package/lib/src/generated/api/PerspectiveAddSdnaParams.d.ts +14 -0
- package/lib/src/generated/api/PerspectiveAddSdnaParams.js +1 -0
- package/lib/src/generated/api/PerspectiveAddSdnaResult.d.ts +4 -0
- package/lib/src/generated/api/PerspectiveAddSdnaResult.js +2 -0
- package/lib/src/generated/api/PerspectiveCommitBatchParams.d.ts +4 -0
- package/lib/src/generated/api/PerspectiveCommitBatchParams.js +2 -0
- package/lib/src/generated/api/PerspectiveCreateSubjectParams.d.ts +7 -0
- package/lib/src/generated/api/PerspectiveCreateSubjectParams.js +2 -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/PerspectiveEvaluateGettersParams.d.ts +9 -0
- package/lib/src/generated/api/PerspectiveEvaluateGettersParams.js +2 -0
- package/lib/src/generated/api/PerspectiveExecuteCommandsParams.d.ts +7 -0
- package/lib/src/generated/api/PerspectiveExecuteCommandsParams.js +2 -0
- package/lib/src/generated/api/PerspectiveExpression.d.ts +8 -0
- package/lib/src/generated/api/PerspectiveExpression.js +1 -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/PerspectiveFlowProposalParams.d.ts +4 -0
- package/lib/src/generated/api/PerspectiveFlowProposalParams.js +2 -0
- package/lib/src/generated/api/PerspectiveFlowReceiptVerdict.d.ts +12 -0
- package/lib/src/generated/api/PerspectiveFlowReceiptVerdict.js +1 -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/PerspectiveFlowValidOutputsParams.d.ts +8 -0
- package/lib/src/generated/api/PerspectiveFlowValidOutputsParams.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/PerspectiveGetSubjectDataParams.d.ts +5 -0
- package/lib/src/generated/api/PerspectiveGetSubjectDataParams.js +2 -0
- package/lib/src/generated/api/PerspectiveHandle.d.ts +10 -0
- package/lib/src/generated/api/PerspectiveHandle.js +1 -0
- package/lib/src/generated/api/PerspectiveLinkDiff.d.ts +9 -0
- package/lib/src/generated/api/PerspectiveLinkDiff.js +1 -0
- package/lib/src/generated/api/PerspectiveLinkMutationsParams.d.ts +6 -0
- package/lib/src/generated/api/PerspectiveLinkMutationsParams.js +1 -0
- package/lib/src/generated/api/PerspectiveLinkUpdatedWithOwner.d.ts +7 -0
- package/lib/src/generated/api/PerspectiveLinkUpdatedWithOwner.js +1 -0
- package/lib/src/generated/api/PerspectiveLinkWithOwner.d.ts +6 -0
- package/lib/src/generated/api/PerspectiveLinkWithOwner.js +1 -0
- package/lib/src/generated/api/PerspectiveMintFlowReceiptParams.d.ts +4 -0
- package/lib/src/generated/api/PerspectiveMintFlowReceiptParams.js +2 -0
- package/lib/src/generated/api/PerspectiveMintFlowReceiptResult.d.ts +9 -0
- package/lib/src/generated/api/PerspectiveMintFlowReceiptResult.js +1 -0
- package/lib/src/generated/api/PerspectiveModelQueryParams.d.ts +13 -0
- package/lib/src/generated/api/PerspectiveModelQueryParams.js +2 -0
- package/lib/src/generated/api/PerspectiveNamedShacl.d.ts +6 -0
- package/lib/src/generated/api/PerspectiveNamedShacl.js +1 -0
- package/lib/src/generated/api/PerspectiveProposeFlowTransitionParams.d.ts +8 -0
- package/lib/src/generated/api/PerspectiveProposeFlowTransitionParams.js +1 -0
- package/lib/src/generated/api/PerspectiveQueryLinksParams.d.ts +15 -0
- package/lib/src/generated/api/PerspectiveQueryLinksParams.js +2 -0
- package/lib/src/generated/api/PerspectiveQueryParams.d.ts +4 -0
- package/lib/src/generated/api/PerspectiveQueryParams.js +2 -0
- package/lib/src/generated/api/PerspectiveReceiptOutcome.d.ts +1 -0
- package/lib/src/generated/api/PerspectiveReceiptOutcome.js +2 -0
- package/lib/src/generated/api/PerspectiveRejectFlowProposalResult.d.ts +3 -0
- package/lib/src/generated/api/PerspectiveRejectFlowProposalResult.js +2 -0
- package/lib/src/generated/api/PerspectiveRemoveAutoProcessorParams.d.ts +4 -0
- package/lib/src/generated/api/PerspectiveRemoveAutoProcessorParams.js +2 -0
- package/lib/src/generated/api/PerspectiveRemoveLinkParams.d.ts +6 -0
- package/lib/src/generated/api/PerspectiveRemoveLinkParams.js +1 -0
- package/lib/src/generated/api/PerspectiveRemoveLinksParams.d.ts +6 -0
- package/lib/src/generated/api/PerspectiveRemoveLinksParams.js +1 -0
- package/lib/src/generated/api/PerspectiveRemoveSubjectParams.d.ts +6 -0
- package/lib/src/generated/api/PerspectiveRemoveSubjectParams.js +2 -0
- package/lib/src/generated/api/PerspectiveRemovedWithOwner.d.ts +5 -0
- package/lib/src/generated/api/PerspectiveRemovedWithOwner.js +2 -0
- package/lib/src/generated/api/PerspectiveResolveInterpretationParams.d.ts +8 -0
- package/lib/src/generated/api/PerspectiveResolveInterpretationParams.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/PerspectiveShacl.d.ts +5 -0
- package/lib/src/generated/api/PerspectiveShacl.js +1 -0
- package/lib/src/generated/api/PerspectiveShaclNameParams.d.ts +4 -0
- package/lib/src/generated/api/PerspectiveShaclNameParams.js +2 -0
- package/lib/src/generated/api/PerspectiveSparqlParams.d.ts +8 -0
- package/lib/src/generated/api/PerspectiveSparqlParams.js +2 -0
- package/lib/src/generated/api/PerspectiveState.d.ts +1 -0
- package/lib/src/generated/api/PerspectiveState.js +2 -0
- package/lib/src/generated/api/PerspectiveStateFilter.d.ts +7 -0
- package/lib/src/generated/api/PerspectiveStateFilter.js +1 -0
- package/lib/src/generated/api/PerspectiveSubjectClassesOfParams.d.ts +4 -0
- package/lib/src/generated/api/PerspectiveSubjectClassesOfParams.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/PerspectiveSubscriptionParams.d.ts +4 -0
- package/lib/src/generated/api/PerspectiveSubscriptionParams.js +2 -0
- package/lib/src/generated/api/PerspectiveUnsignedInput.d.ts +4 -0
- package/lib/src/generated/api/PerspectiveUnsignedInput.js +1 -0
- package/lib/src/generated/api/PerspectiveUpdateLinkParams.d.ts +8 -0
- package/lib/src/generated/api/PerspectiveUpdateLinkParams.js +1 -0
- package/lib/src/generated/api/PerspectiveUpdateParams.d.ts +4 -0
- package/lib/src/generated/api/PerspectiveUpdateParams.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/PerspectiveUuidParams.d.ts +3 -0
- package/lib/src/generated/api/PerspectiveUuidParams.js +2 -0
- package/lib/src/generated/api/PerspectiveVerifyFlowReceiptParams.d.ts +9 -0
- package/lib/src/generated/api/PerspectiveVerifyFlowReceiptParams.js +1 -0
- package/lib/src/generated/api/PerspectiveWithOwner.d.ts +6 -0
- package/lib/src/generated/api/PerspectiveWithOwner.js +1 -0
- package/lib/src/generated/api/ProposeOutcome.d.ts +45 -0
- package/lib/src/generated/api/ProposeOutcome.js +1 -0
- package/lib/src/generated/api/PublicPerspectiveInput.d.ts +4 -0
- package/lib/src/generated/api/PublicPerspectiveInput.js +1 -0
- package/lib/src/generated/api/PublishNeighbourhoodRequest.d.ts +2 -2
- 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/RemoveLinkRequest.d.ts +1 -1
- package/lib/src/generated/api/RemoveLinksBulkRequest.d.ts +1 -1
- package/lib/src/generated/api/RemoveSubjectRequest.d.ts +9 -0
- package/lib/src/generated/api/RemoveSubjectRequest.js +2 -0
- package/lib/src/generated/api/RequestCapabilityRequest.d.ts +4 -0
- package/lib/src/generated/api/RequestCapabilityRequest.js +1 -0
- package/lib/src/generated/api/RequestPaymentRequest.d.ts +3 -0
- package/lib/src/generated/api/RequestPaymentRequest.js +2 -0
- package/lib/src/generated/api/Resource.d.ts +4 -0
- package/lib/src/generated/api/Resource.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 +961 -0
- package/lib/src/generated/api/RpcMethods.js +98 -0
- package/lib/src/generated/api/RunInterpretationRequest.d.ts +27 -1
- package/lib/src/generated/api/RunInterpretationWithHarnessRequest.d.ts +52 -0
- package/lib/src/generated/api/RunInterpretationWithHarnessRequest.js +1 -0
- package/lib/src/generated/api/RuntimeComputeLogParams.d.ts +14 -0
- package/lib/src/generated/api/RuntimeComputeLogParams.js +2 -0
- package/lib/src/generated/api/RuntimeFriendStatusParams.d.ts +3 -0
- package/lib/src/generated/api/RuntimeFriendStatusParams.js +2 -0
- package/lib/src/generated/api/RuntimeGrantNotificationParams.d.ts +4 -0
- package/lib/src/generated/api/RuntimeGrantNotificationParams.js +2 -0
- package/lib/src/generated/api/RuntimeImportPerspectiveResult.d.ts +4 -0
- package/lib/src/generated/api/RuntimeImportPerspectiveResult.js +2 -0
- package/lib/src/generated/api/RuntimeImportResult.d.ts +6 -0
- package/lib/src/generated/api/RuntimeImportResult.js +1 -0
- package/lib/src/generated/api/RuntimeInfo.d.ts +5 -0
- package/lib/src/generated/api/RuntimeInfo.js +2 -0
- package/lib/src/generated/api/RuntimeNotificationIdParams.d.ts +3 -0
- package/lib/src/generated/api/RuntimeNotificationIdParams.js +2 -0
- package/lib/src/generated/api/RuntimeSendFriendMessageParams.d.ts +8 -0
- package/lib/src/generated/api/RuntimeSendFriendMessageParams.js +1 -0
- package/lib/src/generated/api/RuntimeSetFreeHostingEnabledParams.d.ts +3 -0
- package/lib/src/generated/api/RuntimeSetFreeHostingEnabledParams.js +2 -0
- package/lib/src/generated/api/RuntimeUnytSendHotParams.d.ts +4 -0
- package/lib/src/generated/api/RuntimeUnytSendHotParams.js +2 -0
- package/lib/src/generated/api/RuntimeUnytWalletHistoryParams.d.ts +4 -0
- package/lib/src/generated/api/RuntimeUnytWalletHistoryParams.js +2 -0
- package/lib/src/generated/api/RuntimeUpdateNotificationParams.d.ts +11 -0
- package/lib/src/generated/api/RuntimeUpdateNotificationParams.js +2 -0
- package/lib/src/generated/api/SentMessage.d.ts +5 -0
- package/lib/src/generated/api/SentMessage.js +1 -0
- package/lib/src/generated/api/SetHostRatesRequest.d.ts +4 -0
- package/lib/src/generated/api/SetHostRatesRequest.js +1 -0
- package/lib/src/generated/api/SetHotWalletAddressRequest.d.ts +3 -0
- package/lib/src/generated/api/SetHotWalletAddressRequest.js +2 -0
- package/lib/src/generated/api/SetOnlineStatusRequest.d.ts +4 -0
- package/lib/src/generated/api/SetOnlineStatusRequest.js +2 -0
- package/lib/src/generated/api/SetUnytMembraneProofRequest.d.ts +6 -0
- package/lib/src/generated/api/SetUnytMembraneProofRequest.js +2 -0
- package/lib/src/generated/api/SetUserFreeAccessRequest.d.ts +4 -0
- package/lib/src/generated/api/SetUserFreeAccessRequest.js +2 -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/ShaclLinkTriple.d.ts +10 -0
- package/lib/src/generated/api/ShaclLinkTriple.js +2 -0
- package/lib/src/generated/api/SignalRequest.d.ts +5 -0
- package/lib/src/generated/api/SignalRequest.js +2 -0
- package/lib/src/generated/api/SubscribeQueryRequest.d.ts +3 -0
- package/lib/src/generated/api/SubscribeQueryRequest.js +2 -0
- package/lib/src/generated/api/TokenizerSource.d.ts +5 -0
- package/lib/src/generated/api/TokenizerSource.js +2 -0
- package/lib/src/generated/api/TokenizerSourceInput.d.ts +5 -0
- package/lib/src/generated/api/TokenizerSourceInput.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/TranscriptionTextFilter.d.ts +5 -0
- package/lib/src/generated/api/TranscriptionTextFilter.js +2 -0
- package/lib/src/generated/api/TriggeredNotification.d.ts +6 -0
- package/lib/src/generated/api/TriggeredNotification.js +1 -0
- package/lib/src/generated/api/TrustedAgentsWrapper.d.ts +6 -0
- package/lib/src/generated/api/TrustedAgentsWrapper.js +2 -0
- package/lib/src/generated/api/UnlockAgentRequest.d.ts +1 -1
- package/lib/src/generated/api/UnytVersionInfo.d.ts +19 -0
- package/lib/src/generated/api/UnytVersionInfo.js +2 -0
- package/lib/src/generated/api/UpdateLinkRequest.d.ts +1 -1
- package/lib/src/generated/api/UpdateProfileRequest.d.ts +5 -0
- package/lib/src/generated/api/UpdateProfileRequest.js +1 -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/UserCreationResult.d.ts +5 -0
- package/lib/src/generated/api/UserCreationResult.js +2 -0
- package/lib/src/generated/api/UserStatistics.d.ts +2 -1
- package/lib/src/generated/api/UserStatistics.js +0 -1
- package/lib/src/generated/api/UsersAppInfo.d.ts +6 -0
- package/lib/src/generated/api/UsersAppInfo.js +2 -0
- package/lib/src/generated/api/UsersEmailParams.d.ts +3 -0
- package/lib/src/generated/api/UsersEmailParams.js +2 -0
- package/lib/src/generated/api/UsersEmailTestAction.d.ts +1 -0
- package/lib/src/generated/api/UsersEmailTestAction.js +2 -0
- package/lib/src/generated/api/UsersEmailTestParams.d.ts +14 -0
- package/lib/src/generated/api/UsersEmailTestParams.js +1 -0
- package/lib/src/generated/api/UsersEmailTestResult.d.ts +5 -0
- package/lib/src/generated/api/UsersEmailTestResult.js +2 -0
- package/lib/src/generated/api/UsersLoginParams.d.ts +8 -0
- package/lib/src/generated/api/UsersLoginParams.js +2 -0
- package/lib/src/generated/api/UsersRequestVerificationParams.d.ts +5 -0
- package/lib/src/generated/api/UsersRequestVerificationParams.js +1 -0
- package/lib/src/generated/api/UsersSetCreditsParams.d.ts +4 -0
- package/lib/src/generated/api/UsersSetCreditsParams.js +2 -0
- package/lib/src/generated/api/UsersVerifyEmailParams.d.ts +12 -0
- package/lib/src/generated/api/UsersVerifyEmailParams.js +2 -0
- package/lib/src/generated/api/ValidOutput.d.ts +29 -0
- package/lib/src/generated/api/ValidOutput.js +1 -0
- package/lib/src/generated/api/VoiceActivityParamsInput.d.ts +7 -0
- package/lib/src/generated/api/VoiceActivityParamsInput.js +2 -0
- package/lib/src/generated/api/index.d.ts +11 -0
- package/lib/src/generated/api/index.js +5 -3
- package/lib/src/generated/api/serde_json/JsonValue.d.ts +3 -0
- package/lib/src/generated/api/serde_json/JsonValue.js +2 -0
- package/lib/src/index.d.ts +9 -3
- package/lib/src/index.js +5 -3
- package/lib/src/language/LanguageClient.d.ts +3 -3
- package/lib/src/language/LanguageClient.js +6 -6
- package/lib/src/language/LanguageMeta.d.ts +1 -1
- package/lib/src/links/Links.d.ts +16 -5
- package/lib/src/links/Links.js +34 -0
- package/lib/src/model/Ad4mModel.d.ts +84 -0
- package/lib/src/model/Ad4mModel.js +365 -72
- package/lib/src/model/ModelQueryBuilder.d.ts +15 -13
- package/lib/src/model/ModelQueryBuilder.js +78 -221
- package/lib/src/model/decorators.d.ts +52 -2
- package/lib/src/model/decorators.js +83 -8
- package/lib/src/model/query-sparql.js +2 -3
- package/lib/src/model/shacl-gen.d.ts +3 -1
- package/lib/src/model/shacl-gen.js +40 -10
- package/lib/src/model/types.d.ts +19 -0
- package/lib/src/neighbourhood/MeshManager.d.ts +384 -0
- package/lib/src/neighbourhood/MeshManager.js +1144 -0
- package/lib/src/neighbourhood/Neighbourhood.d.ts +1 -1
- package/lib/src/neighbourhood/NeighbourhoodClient.d.ts +96 -5
- package/lib/src/neighbourhood/NeighbourhoodClient.js +211 -15
- 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/notifyListeners.d.ts +2 -0
- package/lib/src/notifyListeners.js +12 -0
- package/lib/src/perspectives/AutoProcessor.d.ts +12 -80
- package/lib/src/perspectives/FlowInstance.d.ts +73 -26
- package/lib/src/perspectives/FlowInstance.js +96 -31
- package/lib/src/perspectives/FlowModels.d.ts +30 -9
- package/lib/src/perspectives/FlowModels.js +43 -14
- package/lib/src/perspectives/InterpretationModels.d.ts +2 -0
- package/lib/src/perspectives/InterpretationModels.js +6 -0
- package/lib/src/perspectives/LiveQuery.d.ts +49 -0
- package/lib/src/perspectives/LiveQuery.js +169 -0
- package/lib/src/perspectives/Perspective.d.ts +8 -1
- package/lib/src/perspectives/Perspective.js +11 -0
- package/lib/src/perspectives/PerspectiveClient.d.ts +38 -65
- package/lib/src/perspectives/PerspectiveClient.js +87 -257
- package/lib/src/perspectives/PerspectiveDiff.d.ts +1 -1
- package/lib/src/perspectives/PerspectiveHandle.d.ts +15 -8
- package/lib/src/perspectives/PerspectiveHandle.js +25 -9
- package/lib/src/perspectives/PerspectiveProxy.d.ts +102 -228
- package/lib/src/perspectives/PerspectiveProxy.js +247 -673
- 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 -21
- package/lib/src/runtime/RuntimeClient.d.ts +15 -27
- package/lib/src/runtime/RuntimeClient.js +57 -113
- package/lib/src/runtime/RuntimeTypes.d.ts +2 -2
- package/lib/src/runtime/RuntimeTypes.js +2 -2
- package/lib/src/shacl/SHACLFlow.d.ts +34 -6
- package/lib/src/shacl/SHACLFlow.js +62 -15
- package/lib/src/shacl/SHACLShape.d.ts +12 -0
- package/lib/src/shacl/SHACLShape.js +206 -321
- package/package.json +15 -16
- package/pnpm-workspace.yaml +4 -1
- package/src/Ad4mClient.test.ts +481 -144
- package/src/Ad4mClient.ts +16 -12
- package/src/Literal.test.ts +32 -0
- package/src/Literal.ts +3 -3
- package/src/agent/Agent.ts +8 -0
- package/src/agent/AgentClient.ts +87 -195
- package/src/agent/mutatePublicPerspective.test.ts +110 -0
- package/src/ai/AIClient.ts +40 -43
- package/src/ai/transcription-stream.test.ts +54 -0
- package/src/apiClient.test.ts +613 -185
- package/src/apiClient.ts +282 -288
- package/src/cache/cache.test.ts +7 -8
- package/src/expression/Expression.ts +12 -3
- package/src/expression/ExpressionClient.ts +6 -7
- package/src/generated/api/AIPromptExamples.ts +3 -0
- package/src/generated/api/AIPromptExamplesInput.ts +3 -0
- package/src/generated/api/AITask.ts +4 -0
- package/src/generated/api/AITaskInput.ts +4 -0
- package/src/generated/api/AddAgentInfosRequest.ts +3 -0
- package/src/generated/api/AddLinkExpressionRequest.ts +1 -1
- package/src/generated/api/AddLinkRequest.ts +1 -1
- package/src/generated/api/AddLinksBulkRequest.ts +1 -1
- package/src/generated/api/AddSdnaRequest.ts +1 -1
- package/src/generated/api/Agent.ts +4 -0
- package/src/generated/api/AgentAddEntanglementProofsParams.ts +8 -0
- package/src/generated/api/AgentByDidParams.ts +3 -0
- package/src/generated/api/AgentRemoveAppParams.ts +3 -0
- package/src/generated/api/AgentRevokeTokenParams.ts +3 -0
- package/src/generated/api/AgentSignature.ts +3 -0
- package/src/generated/api/AgentStatus.ts +4 -0
- package/src/generated/api/AgentStatusChangedEvent.ts +7 -0
- package/src/generated/api/AgentUpdatedEvent.ts +7 -0
- package/src/generated/api/AgentsByDidsRequest.ts +3 -0
- package/src/generated/api/AiAddModelParams.ts +4 -0
- package/src/generated/api/AiAddTaskParams.ts +4 -0
- package/src/generated/api/AiDiscoverModelsParams.ts +7 -0
- package/src/generated/api/AiGetDefaultModelParams.ts +4 -0
- package/src/generated/api/AiIdParams.ts +3 -0
- package/src/generated/api/AiModelLoadingStatusParams.ts +6 -0
- package/src/generated/api/AiSetDefaultModelParams.ts +4 -0
- package/src/generated/api/AiTranscriptionCloseParams.ts +3 -0
- package/src/generated/api/AiTranscriptionOpenParams.ts +4 -0
- package/src/generated/api/AiUpdateModelParams.ts +4 -0
- package/src/generated/api/AiUpdateTaskParams.ts +4 -0
- package/src/generated/api/Apps.ts +4 -0
- package/src/generated/api/AuthInfo.ts +4 -0
- package/src/generated/api/AuthInfoInput.ts +1 -1
- package/src/generated/api/AutoProcessorEvent.ts +90 -0
- package/src/generated/api/AutoProcessorNeighbourhoodState.ts +33 -0
- package/src/generated/api/AutoProcessorStep.ts +9 -0
- package/src/generated/api/BroadcastRequest.ts +3 -0
- package/src/generated/api/CallSessionInfo.ts +20 -0
- package/src/generated/api/Capability.ts +4 -0
- package/src/generated/api/CreateSubjectRequest.ts +1 -1
- package/src/generated/api/CreateUserRequest.ts +3 -0
- package/src/generated/api/DateTime.ts +3 -0
- package/src/generated/api/DecoratedExpressionProof.ts +3 -0
- package/src/generated/api/DecoratedLinkExpression.ts +6 -0
- package/src/generated/api/DecoratedNeighbourhoodExpression.ts +5 -0
- package/src/generated/api/DecoratedPerspective.ts +4 -0
- package/src/generated/api/DiscardBatchRequest.ts +3 -0
- package/src/generated/api/DisposeQueryRequest.ts +3 -0
- package/src/generated/api/EntanglementProof.ts +3 -0
- package/src/generated/api/EntanglementProofInput.ts +1 -1
- package/src/generated/api/EntanglementProofPreflightRequest.ts +3 -0
- package/src/generated/api/EntanglementProofsWrapper.ts +7 -0
- package/src/generated/api/Events.ts +77 -0
- package/src/generated/api/ExceptionInfo.ts +4 -0
- package/src/generated/api/ExceptionOccurredEvent.ts +7 -0
- package/src/generated/api/ExceptionType.ts +3 -0
- package/src/generated/api/ExecuteCommandsRequest.ts +1 -1
- package/src/generated/api/ExportRequest.ts +1 -1
- package/src/generated/api/ExpressionInteractRequest.ts +4 -0
- package/src/generated/api/ExpressionProofInput.ts +1 -1
- package/src/generated/api/ExpressionRendered.ts +6 -0
- package/src/generated/api/ExpressionUrlRequest.ts +3 -0
- package/src/generated/api/FireOutcome.ts +11 -0
- package/src/generated/api/FlowStateChangedEvent.ts +36 -0
- package/src/generated/api/FlowStateEntry.ts +18 -0
- package/src/generated/api/FriendSendMessageRequest.ts +1 -1
- package/src/generated/api/HostRate.ts +6 -0
- package/src/generated/api/HostingInfoResult.ts +13 -0
- package/src/generated/api/HostingInfoUser.ts +7 -0
- package/src/generated/api/HostingRequestPaymentResult.ts +3 -0
- package/src/generated/api/HostingUserInfo.ts +3 -0
- package/src/generated/api/HostingVersionInfo.ts +7 -0
- package/src/generated/api/HostingWalletResult.ts +8 -0
- package/src/generated/api/IceServer.ts +19 -0
- package/src/generated/api/Icon.ts +3 -0
- package/src/generated/api/ImportResult.ts +4 -0
- package/src/generated/api/ImportStats.ts +3 -0
- package/src/generated/api/InteractionCall.ts +3 -0
- package/src/generated/api/InteractionCallWrapper.ts +6 -0
- package/src/generated/api/InteractionMeta.ts +4 -0
- package/src/generated/api/InteractionParameter.ts +3 -0
- package/src/generated/api/LanguageAddressParams.ts +3 -0
- package/src/generated/api/LanguageHandle.ts +4 -0
- package/src/generated/api/LanguageListParams.ts +3 -0
- package/src/generated/api/LanguageMeta.ts +3 -0
- package/src/generated/api/LanguageMetaInput.ts +1 -1
- package/src/generated/api/LanguageRef.ts +3 -0
- package/src/generated/api/LanguageSettingsWrapper.ts +6 -0
- package/src/generated/api/LanguageWriteSettingsParams.ts +3 -0
- package/src/generated/api/LinkExpressionInput.ts +1 -1
- package/src/generated/api/LinkInput.ts +1 -1
- package/src/generated/api/LinkMutationRequest.ts +8 -0
- package/src/generated/api/LinkMutationsRequest.ts +4 -0
- package/src/generated/api/LinkStatus.ts +1 -1
- package/src/generated/api/LinkUpdateInput.ts +4 -0
- package/src/generated/api/LocalModel.ts +4 -0
- package/src/generated/api/LocalModelInput.ts +4 -0
- package/src/generated/api/MessageReceivedEvent.ts +7 -0
- package/src/generated/api/Model.ts +6 -0
- package/src/generated/api/ModelApi.ts +14 -0
- package/src/generated/api/ModelApiInput.ts +8 -0
- package/src/generated/api/ModelApiType.ts +3 -0
- package/src/generated/api/ModelInput.ts +6 -0
- package/src/generated/api/ModelType.ts +1 -1
- package/src/generated/api/Neighbourhood.ts +4 -0
- package/src/generated/api/NeighbourhoodBroadcastParams.ts +4 -0
- package/src/generated/api/NeighbourhoodOnlineStatusParams.ts +4 -0
- package/src/generated/api/NeighbourhoodPerspectivePayload.ts +9 -0
- package/src/generated/api/NeighbourhoodPhase.ts +8 -0
- package/src/generated/api/NeighbourhoodSignalFilter.ts +5 -0
- package/src/generated/api/NeighbourhoodSignalParams.ts +4 -0
- package/src/generated/api/NeighbourhoodSignedPerspective.ts +8 -0
- package/src/generated/api/NeighbourhoodUuidParams.ts +3 -0
- package/src/generated/api/Notification.ts +7 -0
- package/src/generated/api/NotificationGrantRequest.ts +6 -0
- package/src/generated/api/NotificationInput.ts +1 -1
- package/src/generated/api/NotificationTriggeredEvent.ts +8 -0
- package/src/generated/api/OnlineAgent.ts +9 -0
- package/src/generated/api/OutputRef.ts +11 -0
- package/src/generated/api/OverlayView.ts +25 -0
- package/src/generated/api/Perspective.ts +4 -0
- package/src/generated/api/PerspectiveAddAutoProcessorParams.ts +11 -0
- package/src/generated/api/PerspectiveAddLinkExpressionParams.ts +4 -0
- package/src/generated/api/PerspectiveAddLinkParams.ts +4 -0
- package/src/generated/api/PerspectiveAddLinksParams.ts +4 -0
- package/src/generated/api/PerspectiveAddSdnaParams.ts +7 -0
- package/src/generated/api/PerspectiveAddSdnaResult.ts +6 -0
- package/src/generated/api/PerspectiveCommitBatchParams.ts +3 -0
- package/src/generated/api/PerspectiveCreateSubjectParams.ts +3 -0
- package/src/generated/api/PerspectiveDiscardBatchParams.ts +3 -0
- package/src/generated/api/PerspectiveEvaluateGettersParams.ts +6 -0
- package/src/generated/api/PerspectiveExecuteCommandsParams.ts +3 -0
- package/src/generated/api/PerspectiveExpression.ts +5 -0
- package/src/generated/api/PerspectiveFlowFiredParams.ts +7 -0
- package/src/generated/api/PerspectiveFlowProposalParams.ts +3 -0
- package/src/generated/api/PerspectiveFlowReceiptVerdict.ts +8 -0
- package/src/generated/api/PerspectiveFlowStatesParams.ts +11 -0
- package/src/generated/api/PerspectiveFlowValidOutputsParams.ts +7 -0
- package/src/generated/api/PerspectiveGetAllShaclParams.ts +6 -0
- package/src/generated/api/PerspectiveGetSubjectDataParams.ts +3 -0
- package/src/generated/api/PerspectiveHandle.ts +5 -0
- package/src/generated/api/PerspectiveLinkDiff.ts +7 -0
- package/src/generated/api/PerspectiveLinkMutationsParams.ts +4 -0
- package/src/generated/api/PerspectiveLinkUpdatedWithOwner.ts +4 -0
- package/src/generated/api/PerspectiveLinkWithOwner.ts +4 -0
- package/src/generated/api/PerspectiveMintFlowReceiptParams.ts +3 -0
- package/src/generated/api/PerspectiveMintFlowReceiptResult.ts +9 -0
- package/src/generated/api/PerspectiveModelQueryParams.ts +10 -0
- package/src/generated/api/PerspectiveNamedShacl.ts +4 -0
- package/src/generated/api/PerspectiveProposeFlowTransitionParams.ts +4 -0
- package/src/generated/api/PerspectiveQueryLinksParams.ts +11 -0
- package/src/generated/api/PerspectiveQueryParams.ts +3 -0
- package/src/generated/api/PerspectiveReceiptOutcome.ts +3 -0
- package/src/generated/api/PerspectiveRejectFlowProposalResult.ts +3 -0
- package/src/generated/api/PerspectiveRemoveAutoProcessorParams.ts +3 -0
- package/src/generated/api/PerspectiveRemoveLinkParams.ts +4 -0
- package/src/generated/api/PerspectiveRemoveLinksParams.ts +4 -0
- package/src/generated/api/PerspectiveRemoveSubjectParams.ts +3 -0
- package/src/generated/api/PerspectiveRemovedWithOwner.ts +3 -0
- package/src/generated/api/PerspectiveResolveInterpretationParams.ts +6 -0
- package/src/generated/api/PerspectiveResynced.ts +7 -0
- package/src/generated/api/PerspectiveShacl.ts +4 -0
- package/src/generated/api/PerspectiveShaclNameParams.ts +3 -0
- package/src/generated/api/PerspectiveSparqlParams.ts +7 -0
- package/src/generated/api/PerspectiveState.ts +3 -0
- package/src/generated/api/PerspectiveStateFilter.ts +5 -0
- package/src/generated/api/PerspectiveSubjectClassesOfParams.ts +3 -0
- package/src/generated/api/PerspectiveSubscribed.ts +8 -0
- package/src/generated/api/PerspectiveSubscriptionParams.ts +3 -0
- package/src/generated/api/PerspectiveUnsignedInput.ts +4 -0
- package/src/generated/api/PerspectiveUpdateLinkParams.ts +5 -0
- package/src/generated/api/PerspectiveUpdateParams.ts +3 -0
- package/src/generated/api/PerspectiveUpdateSubjectParams.ts +7 -0
- package/src/generated/api/PerspectiveUuidParams.ts +3 -0
- package/src/generated/api/PerspectiveVerifyFlowReceiptParams.ts +9 -0
- package/src/generated/api/PerspectiveWithOwner.ts +4 -0
- package/src/generated/api/ProposeOutcome.ts +46 -0
- package/src/generated/api/PublicPerspectiveInput.ts +4 -0
- package/src/generated/api/PublishNeighbourhoodRequest.ts +2 -2
- 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/RemoveLinkRequest.ts +1 -1
- package/src/generated/api/RemoveLinksBulkRequest.ts +1 -1
- package/src/generated/api/RemoveSubjectRequest.ts +7 -0
- package/src/generated/api/RequestCapabilityRequest.ts +4 -0
- package/src/generated/api/RequestPaymentRequest.ts +3 -0
- package/src/generated/api/Resource.ts +3 -0
- package/src/generated/api/ResyncSubscriptionRequest.ts +3 -0
- package/src/generated/api/RpcMethods.ts +479 -0
- package/src/generated/api/RunInterpretationRequest.ts +28 -2
- package/src/generated/api/RunInterpretationWithHarnessRequest.ts +51 -0
- package/src/generated/api/RuntimeComputeLogParams.ts +15 -0
- package/src/generated/api/RuntimeFriendStatusParams.ts +3 -0
- package/src/generated/api/RuntimeGrantNotificationParams.ts +3 -0
- package/src/generated/api/RuntimeImportPerspectiveResult.ts +3 -0
- package/src/generated/api/RuntimeImportResult.ts +8 -0
- package/src/generated/api/RuntimeInfo.ts +3 -0
- package/src/generated/api/RuntimeNotificationIdParams.ts +3 -0
- package/src/generated/api/RuntimeSendFriendMessageParams.ts +8 -0
- package/src/generated/api/RuntimeSetFreeHostingEnabledParams.ts +3 -0
- package/src/generated/api/RuntimeUnytSendHotParams.ts +3 -0
- package/src/generated/api/RuntimeUnytWalletHistoryParams.ts +3 -0
- package/src/generated/api/RuntimeUpdateNotificationParams.ts +3 -0
- package/src/generated/api/SentMessage.ts +4 -0
- package/src/generated/api/SetHostRatesRequest.ts +4 -0
- package/src/generated/api/SetHotWalletAddressRequest.ts +3 -0
- package/src/generated/api/SetOnlineStatusRequest.ts +3 -0
- package/src/generated/api/SetUnytMembraneProofRequest.ts +7 -0
- package/src/generated/api/SetUserFreeAccessRequest.ts +3 -0
- 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/SfuNeighbourhoodParams.ts +3 -0
- package/src/generated/api/SfuParticipantQualityPreference.ts +6 -0
- package/src/generated/api/SfuPerspectiveParams.ts +6 -0
- 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/ShaclLinkTriple.ts +8 -0
- package/src/generated/api/SignalRequest.ts +3 -0
- package/src/generated/api/SubscribeQueryRequest.ts +3 -0
- package/src/generated/api/TokenizerSource.ts +3 -0
- package/src/generated/api/TokenizerSourceInput.ts +3 -0
- package/src/generated/api/TrackMapEntry.ts +18 -0
- package/src/generated/api/TranscriptionTextFilter.ts +3 -0
- package/src/generated/api/TriggeredNotification.ts +4 -0
- package/src/generated/api/TrustedAgentsWrapper.ts +6 -0
- package/src/generated/api/UnlockAgentRequest.ts +1 -1
- package/src/generated/api/UnytVersionInfo.ts +20 -0
- package/src/generated/api/UpdateLinkRequest.ts +1 -1
- package/src/generated/api/UpdateProfileRequest.ts +4 -0
- package/src/generated/api/UpdateSubjectRequest.ts +10 -0
- package/src/generated/api/UserCreationResult.ts +3 -0
- package/src/generated/api/UserStatistics.ts +2 -1
- package/src/generated/api/UsersAppInfo.ts +6 -0
- package/src/generated/api/UsersEmailParams.ts +3 -0
- package/src/generated/api/UsersEmailTestAction.ts +3 -0
- package/src/generated/api/UsersEmailTestParams.ts +12 -0
- package/src/generated/api/UsersEmailTestResult.ts +7 -0
- package/src/generated/api/UsersLoginParams.ts +7 -0
- package/src/generated/api/UsersRequestVerificationParams.ts +4 -0
- package/src/generated/api/UsersSetCreditsParams.ts +3 -0
- package/src/generated/api/UsersVerifyEmailParams.ts +11 -0
- package/src/generated/api/ValidOutput.ts +30 -0
- package/src/generated/api/VoiceActivityParamsInput.ts +3 -0
- package/src/generated/api/index.ts +14 -2
- package/src/generated/api/serde_json/JsonValue.ts +3 -0
- package/src/index.ts +9 -3
- package/src/language/LanguageClient.ts +12 -13
- package/src/links/Links.ts +49 -3
- package/src/model/Ad4mModel.test.ts +480 -173
- package/src/model/Ad4mModel.ts +407 -77
- package/src/model/ModelQueryBuilder.ts +95 -255
- package/src/model/abstract-classes.test.ts +225 -0
- package/src/model/decorators.ts +145 -9
- package/src/model/query-sparql.ts +2 -3
- package/src/model/relation-filtering.test.ts +191 -0
- package/src/model/shacl-gen.ts +32 -9
- package/src/model/shacl-roundtrip.test.ts +52 -0
- package/src/model/types.ts +19 -0
- package/src/neighbourhood/MeshManager.test.ts +2640 -0
- package/src/neighbourhood/MeshManager.ts +1350 -0
- package/src/neighbourhood/NeighbourhoodClient.test.ts +60 -0
- package/src/neighbourhood/NeighbourhoodClient.ts +298 -27
- package/src/neighbourhood/NeighbourhoodProxy.test.ts +37 -9
- 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/notifyListeners.test.ts +19 -0
- package/src/notifyListeners.ts +10 -0
- package/src/perspectives/AutoProcessor.ts +13 -82
- package/src/perspectives/FlowInstance.ts +136 -32
- package/src/perspectives/FlowModels.ts +46 -11
- package/src/perspectives/InterpretationModels.ts +4 -0
- package/src/perspectives/LiveQuery.test.ts +197 -0
- package/src/perspectives/LiveQuery.ts +189 -0
- package/src/perspectives/Perspective.ts +18 -2
- package/src/perspectives/PerspectiveClient.test.ts +122 -45
- package/src/perspectives/PerspectiveClient.ts +146 -343
- package/src/perspectives/PerspectiveHandle.ts +32 -9
- package/src/perspectives/PerspectiveProxy.test.ts +216 -528
- package/src/perspectives/PerspectiveProxy.ts +259 -736
- package/src/perspectives/TextContent.test.ts +123 -0
- package/src/perspectives/TextContent.ts +36 -0
- package/src/perspectives/WakerSubscriptionManager.test.ts +136 -1
- package/src/perspectives/WakerSubscriptionManager.ts +69 -22
- package/src/perspectives/link-updated-type.test.ts +55 -0
- package/src/perspectives/listener-leaks.test.ts +204 -0
- package/src/perspectives/shacl-rpc.test.ts +22 -27
- package/src/runtime/RuntimeClient.ts +75 -157
- package/src/runtime/RuntimeTypes.ts +3 -3
- package/src/shacl/SHACLFlow.test.ts +49 -1
- package/src/shacl/SHACLFlow.ts +73 -15
- package/src/shacl/SHACLShape.test.ts +161 -16
- package/src/shacl/SHACLShape.ts +210 -439
- package/lib/shims/reflect-metadata.d.ts +0 -0
- package/lib/shims/reflect-metadata.js +0 -0
- package/lib/shims/type-graphql.d.ts +0 -32
- package/lib/shims/type-graphql.js +0 -70
- package/lib/src/PubSub.d.ts +0 -17
- package/lib/src/PubSub.js +0 -17
- package/lib/src/agent/AgentResolver.d.ts +0 -30
- package/lib/src/agent/AgentResolver.js +0 -325
- package/lib/src/ai/AIResolver.d.ts +0 -75
- package/lib/src/ai/AIResolver.js +0 -455
- package/lib/src/buildSchema.d.ts +0 -1
- package/lib/src/buildSchema.js +0 -38
- package/lib/src/expression/ExpressionResolver.d.ts +0 -10
- package/lib/src/expression/ExpressionResolver.js +0 -106
- package/lib/src/language/LanguageContext.d.ts +0 -37
- package/lib/src/language/LanguageContext.js +0 -2
- package/lib/src/language/LanguageResolver.d.ts +0 -19
- package/lib/src/language/LanguageResolver.js +0 -143
- package/lib/src/links/Links.test.js +0 -33
- package/lib/src/model/Ad4mModel.test.js +0 -2055
- package/lib/src/model/Subject.d.ts +0 -25
- package/lib/src/model/Subject.js +0 -164
- package/lib/src/model/hydration-batch.d.ts +0 -34
- package/lib/src/model/hydration-batch.js +0 -147
- package/lib/src/model/hydration-batching.test.d.ts +0 -7
- package/lib/src/model/hydration-batching.test.js +0 -456
- package/lib/src/model/model-manifest.d.ts +0 -41
- package/lib/src/model/model-manifest.js +0 -11
- package/lib/src/model/prolog-facts.d.ts +0 -37
- package/lib/src/model/prolog-facts.js +0 -134
- package/lib/src/model/query-cache.test.js +0 -43
- package/lib/src/model/query-prolog.d.ts +0 -15
- package/lib/src/model/query-prolog.js +0 -140
- package/lib/src/model/query-sparql-batch.d.ts +0 -17
- package/lib/src/model/query-sparql-batch.js +0 -260
- package/lib/src/model/query-sparql.test.js +0 -312
- package/lib/src/model/relation-filtering.test.js +0 -838
- package/lib/src/model/subscription-delta.test.d.ts +0 -24
- package/lib/src/model/subscription-delta.test.js +0 -180
- package/lib/src/model/subscription-pool.d.ts +0 -39
- package/lib/src/model/subscription-pool.js +0 -165
- package/lib/src/neighbourhood/NeighbourhoodProxy.test.js +0 -73
- package/lib/src/neighbourhood/NeighbourhoodResolver.d.ts +0 -24
- package/lib/src/neighbourhood/NeighbourhoodResolver.js +0 -182
- package/lib/src/perspectives/Perspective.test.js +0 -20
- package/lib/src/perspectives/PerspectiveClient.test.js +0 -224
- package/lib/src/perspectives/PerspectiveResolver.d.ts +0 -56
- package/lib/src/perspectives/PerspectiveResolver.js +0 -519
- package/lib/src/runtime/RuntimeResolver.d.ts +0 -173
- package/lib/src/runtime/RuntimeResolver.js +0 -1122
- package/lib/src/schema.gql +0 -631
- package/lib/src/shacl/SHACLFlow.test.js +0 -205
- package/lib/src/shacl/SHACLShape.test.js +0 -418
- package/lib/src/unwrapApolloResult.d.ts +0 -2
- package/lib/src/unwrapApolloResult.js +0 -14
- /package/lib/src/{links/Links.test.d.ts → generated/api/AITask.js} +0 -0
- /package/lib/src/{model/Ad4mModel.test.d.ts → generated/api/AITaskInput.js} +0 -0
- /package/lib/src/{model/query-cache.test.d.ts → generated/api/Agent.js} +0 -0
- /package/lib/src/{model/query-sparql.test.d.ts → generated/api/AgentAddEntanglementProofsParams.js} +0 -0
- /package/lib/src/{model/relation-filtering.test.d.ts → generated/api/AgentStatus.js} +0 -0
- /package/lib/src/{neighbourhood/NeighbourhoodProxy.test.d.ts → generated/api/AgentStatusChangedEvent.js} +0 -0
- /package/lib/src/{perspectives/Perspective.test.d.ts → generated/api/AgentUpdatedEvent.js} +0 -0
- /package/lib/src/{perspectives/PerspectiveClient.test.d.ts → generated/api/AiAddModelParams.js} +0 -0
- /package/lib/src/{shacl/SHACLFlow.test.d.ts → generated/api/AiAddTaskParams.js} +0 -0
- /package/lib/src/{shacl/SHACLShape.test.d.ts → generated/api/AiGetDefaultModelParams.js} +0 -0
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { Ad4mModel } from "../model/Ad4mModel";
|
|
2
|
+
/**
|
|
3
|
+
* The built-in abstract class `TextContent { text }` (#1446): text a view or
|
|
4
|
+
* an LLM can read — a message, a note, a block of a document. `text` may
|
|
5
|
+
* contain HTML or Markdown.
|
|
6
|
+
*
|
|
7
|
+
* Querying it reads every class that has a `text` property, or a property
|
|
8
|
+
* aliased to `text`:
|
|
9
|
+
*
|
|
10
|
+
* ```typescript
|
|
11
|
+
* @Model({ name: "Message", implements: [TextContent] })
|
|
12
|
+
* class Message extends Ad4mModel {
|
|
13
|
+
* @Property({ through: "flux://body", alias: { TextContent: "text" } })
|
|
14
|
+
* body: string = "";
|
|
15
|
+
* }
|
|
16
|
+
*
|
|
17
|
+
* const everything = await TextContent.findAll(perspective, { parent: { id: channel } });
|
|
18
|
+
* ```
|
|
19
|
+
*
|
|
20
|
+
* Built in: the executor declares it (mirrors
|
|
21
|
+
* `rust-executor/src/perspectives/hardwired_sdna/text_content.json`) and
|
|
22
|
+
* reads it by its URI, `ad4m://TextContent`, so a perspective never stores it
|
|
23
|
+
* and an app class named `TextContent` does not replace it. `register()` on
|
|
24
|
+
* it writes nothing.
|
|
25
|
+
*/
|
|
26
|
+
export declare class TextContent extends Ad4mModel {
|
|
27
|
+
/** The URI the executor reads it by. */
|
|
28
|
+
static readonly builtinUri = "ad4m://TextContent";
|
|
29
|
+
/** The text. May contain HTML or Markdown. */
|
|
30
|
+
text: string;
|
|
31
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
|
+
};
|
|
10
|
+
import { Ad4mModel } from "../model/Ad4mModel";
|
|
11
|
+
import { Model, Property } from "../model/decorators";
|
|
12
|
+
/**
|
|
13
|
+
* The built-in abstract class `TextContent { text }` (#1446): text a view or
|
|
14
|
+
* an LLM can read — a message, a note, a block of a document. `text` may
|
|
15
|
+
* contain HTML or Markdown.
|
|
16
|
+
*
|
|
17
|
+
* Querying it reads every class that has a `text` property, or a property
|
|
18
|
+
* aliased to `text`:
|
|
19
|
+
*
|
|
20
|
+
* ```typescript
|
|
21
|
+
* @Model({ name: "Message", implements: [TextContent] })
|
|
22
|
+
* class Message extends Ad4mModel {
|
|
23
|
+
* @Property({ through: "flux://body", alias: { TextContent: "text" } })
|
|
24
|
+
* body: string = "";
|
|
25
|
+
* }
|
|
26
|
+
*
|
|
27
|
+
* const everything = await TextContent.findAll(perspective, { parent: { id: channel } });
|
|
28
|
+
* ```
|
|
29
|
+
*
|
|
30
|
+
* Built in: the executor declares it (mirrors
|
|
31
|
+
* `rust-executor/src/perspectives/hardwired_sdna/text_content.json`) and
|
|
32
|
+
* reads it by its URI, `ad4m://TextContent`, so a perspective never stores it
|
|
33
|
+
* and an app class named `TextContent` does not replace it. `register()` on
|
|
34
|
+
* it writes nothing.
|
|
35
|
+
*/
|
|
36
|
+
let TextContent = class TextContent extends Ad4mModel {
|
|
37
|
+
constructor() {
|
|
38
|
+
super(...arguments);
|
|
39
|
+
/** The text. May contain HTML or Markdown. */
|
|
40
|
+
this.text = "";
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
/** The URI the executor reads it by. */
|
|
44
|
+
TextContent.builtinUri = "ad4m://TextContent";
|
|
45
|
+
__decorate([
|
|
46
|
+
Property({ through: "ad4m://text" }),
|
|
47
|
+
__metadata("design:type", String)
|
|
48
|
+
], TextContent.prototype, "text", void 0);
|
|
49
|
+
TextContent = __decorate([
|
|
50
|
+
Model({ name: "TextContent", abstract: true })
|
|
51
|
+
], TextContent);
|
|
52
|
+
export { TextContent };
|
|
@@ -20,6 +20,12 @@ export interface MentionMessage {
|
|
|
20
20
|
address: string;
|
|
21
21
|
/** All parent addresses this message belongs to (channels, conversations, etc.). */
|
|
22
22
|
parents: string[];
|
|
23
|
+
/**
|
|
24
|
+
* Everything above the parents, nearest first: their parents, theirs, and so on up to the
|
|
25
|
+
* manager's `ancestorDepth`. Each address once, however many paths reach it. Empty when the
|
|
26
|
+
* parents have none, or the walk could not be made.
|
|
27
|
+
*/
|
|
28
|
+
ancestors: string[];
|
|
23
29
|
}
|
|
24
30
|
export interface WakerLogger {
|
|
25
31
|
info(msg: string): void;
|
|
@@ -34,6 +40,12 @@ export interface WakerSubscriptionManagerOptions {
|
|
|
34
40
|
logger: WakerLogger;
|
|
35
41
|
/** Debounce interval in ms before firing the wake callback (default 2000) */
|
|
36
42
|
debounceMs?: number;
|
|
43
|
+
/**
|
|
44
|
+
* How many levels above a mentioned item's parents to report as `ancestors` (default 3).
|
|
45
|
+
* Each level is one batched query, so the walk is bounded by this depth and by
|
|
46
|
+
* what the levels hold. 0 reports parents only.
|
|
47
|
+
*/
|
|
48
|
+
ancestorDepth?: number;
|
|
37
49
|
/** Called when a subscription fires (after debounce). Return value is ignored.
|
|
38
50
|
* For mention subs, `mentions` contains per-message parent info. */
|
|
39
51
|
onWake: (sub: WakerSubscription, result: any, mentions?: MentionMessage[]) => void;
|
|
@@ -66,6 +78,7 @@ export declare class WakerSubscriptionManager {
|
|
|
66
78
|
private perspectiveClient;
|
|
67
79
|
private logger;
|
|
68
80
|
private debounceMs;
|
|
81
|
+
private ancestorDepth;
|
|
69
82
|
private onWake;
|
|
70
83
|
private onPersist?;
|
|
71
84
|
private QuerySubscriptionProxyCtor;
|
|
@@ -125,5 +138,15 @@ export declare class WakerSubscriptionManager {
|
|
|
125
138
|
getActive(): WakerSubscription[];
|
|
126
139
|
/** Check if a subscription exists. */
|
|
127
140
|
has(id: string): boolean;
|
|
141
|
+
/** Resolve one containment level in one query; skip unsafe IRI tokens and treat failures as none. */
|
|
142
|
+
private parentsOf;
|
|
143
|
+
/**
|
|
144
|
+
* The chain above an item's parents, a level at a time, nearest first, up to `ancestorDepth`.
|
|
145
|
+
*
|
|
146
|
+
* Breadth-first with a visited set: containment is a graph, not a tree — an item can sit in two
|
|
147
|
+
* places, and nothing stops a cycle — so each address is reported once and the walk always ends.
|
|
148
|
+
* Each level uses one batched parent lookup, bounded by the depth.
|
|
149
|
+
*/
|
|
150
|
+
private ancestorsOf;
|
|
128
151
|
private persist;
|
|
129
152
|
}
|
|
@@ -75,6 +75,7 @@ export class WakerSubscriptionManager {
|
|
|
75
75
|
this.perspectiveClient = options.perspectiveClient;
|
|
76
76
|
this.logger = options.logger;
|
|
77
77
|
this.debounceMs = options.debounceMs ?? 2000;
|
|
78
|
+
this.ancestorDepth = options.ancestorDepth ?? 3;
|
|
78
79
|
this.onWake = options.onWake;
|
|
79
80
|
this.onPersist = options.onPersist;
|
|
80
81
|
this.QuerySubscriptionProxyCtor = options.QuerySubscriptionProxy ?? null;
|
|
@@ -107,7 +108,6 @@ export class WakerSubscriptionManager {
|
|
|
107
108
|
this.logger.info(`[waker] ${sub.id}: creating subscription (perspective=${sub.perspective}, type=${sub.type})`);
|
|
108
109
|
this.logger.info(`[waker] ${sub.id}: SPARQL query:\n${sub.query}`);
|
|
109
110
|
const proxy = new QuerySubscriptionProxy(sub.perspective, sub.query, this.perspectiveClient);
|
|
110
|
-
proxy.isSPARQL = true;
|
|
111
111
|
// Suppress unhandled rejection from proxy.initialized — QuerySubscriptionProxy
|
|
112
112
|
// rejects this promise internally when subscribe() fails, and if nobody catches
|
|
113
113
|
// it before the next microtask it crashes the process.
|
|
@@ -199,28 +199,15 @@ export class WakerSubscriptionManager {
|
|
|
199
199
|
return;
|
|
200
200
|
}
|
|
201
201
|
this.logger.info(`[waker] ${sub.id}: ${newMessages.length} new message(s) out of ${result.length} total`);
|
|
202
|
-
// Resolve parents per new message
|
|
202
|
+
// Resolve parents, and the chain above them, per new message
|
|
203
203
|
const mentions = [];
|
|
204
204
|
for (const msgAddr of newMessages) {
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
if (Array.isArray(bindings)) {
|
|
212
|
-
for (const binding of bindings) {
|
|
213
|
-
if (binding?.source?.value) {
|
|
214
|
-
parents.push(binding.source.value);
|
|
215
|
-
}
|
|
216
|
-
}
|
|
217
|
-
}
|
|
218
|
-
}
|
|
219
|
-
catch (err) {
|
|
220
|
-
this.logger.warn(`[waker] ${sub.id}: parent resolution failed for ${msgAddr} — ${err?.message ?? err}`);
|
|
221
|
-
}
|
|
222
|
-
this.logger.info(`[waker] ${sub.id}: message ${msgAddr} has ${parents.length} parent(s): ${parents.join(", ")}`);
|
|
223
|
-
mentions.push({ address: msgAddr, parents });
|
|
205
|
+
this.logger.info(`[waker] ${sub.id}: resolving parents for ${msgAddr}`);
|
|
206
|
+
const parents = await this.parentsOf(sub, [msgAddr]);
|
|
207
|
+
const ancestors = await this.ancestorsOf(sub, msgAddr, parents);
|
|
208
|
+
this.logger.info(`[waker] ${sub.id}: message ${msgAddr} has ${parents.length} parent(s): ${parents.join(", ")}` +
|
|
209
|
+
(ancestors.length ? `; ancestors: ${ancestors.join(", ")}` : ""));
|
|
210
|
+
mentions.push({ address: msgAddr, parents, ancestors });
|
|
224
211
|
}
|
|
225
212
|
// Mark all new messages as seen
|
|
226
213
|
for (const addr of newMessages) {
|
|
@@ -359,6 +346,56 @@ export class WakerSubscriptionManager {
|
|
|
359
346
|
has(id) {
|
|
360
347
|
return this.activeSubscriptions.has(id);
|
|
361
348
|
}
|
|
349
|
+
/** Resolve one containment level in one query; skip unsafe IRI tokens and treat failures as none. */
|
|
350
|
+
async parentsOf(sub, addresses) {
|
|
351
|
+
const safe = [...new Set(addresses)].filter((address) => {
|
|
352
|
+
if (/[<>"{}|^`\\\s\x00-\x20]/.test(address)) {
|
|
353
|
+
this.logger.warn(`[waker] ${sub.id}: skipping parent lookup for unsafe address ${JSON.stringify(address)}`);
|
|
354
|
+
return false;
|
|
355
|
+
}
|
|
356
|
+
return true;
|
|
357
|
+
});
|
|
358
|
+
if (!safe.length)
|
|
359
|
+
return [];
|
|
360
|
+
try {
|
|
361
|
+
const query = safe.length === 1
|
|
362
|
+
? `SELECT ?source WHERE { ?source <ad4m://has_child> <${safe[0]}> . }`
|
|
363
|
+
: `SELECT ?source WHERE { VALUES ?child { ${safe.map((address) => `<${address}>`).join(" ")} } ?source <ad4m://has_child> ?child . }`;
|
|
364
|
+
const rows = await this.perspectiveClient.querySparql(sub.perspective, query);
|
|
365
|
+
if (!Array.isArray(rows))
|
|
366
|
+
return [];
|
|
367
|
+
// A row omits a variable left unbound in its solution.
|
|
368
|
+
return rows.map((row) => row?.source).filter((source) => typeof source === "string");
|
|
369
|
+
}
|
|
370
|
+
catch (err) {
|
|
371
|
+
this.logger.warn(`[waker] ${sub.id}: parent resolution failed for ${JSON.stringify(safe)} — ${err?.message ?? err}`);
|
|
372
|
+
return [];
|
|
373
|
+
}
|
|
374
|
+
}
|
|
375
|
+
/**
|
|
376
|
+
* The chain above an item's parents, a level at a time, nearest first, up to `ancestorDepth`.
|
|
377
|
+
*
|
|
378
|
+
* Breadth-first with a visited set: containment is a graph, not a tree — an item can sit in two
|
|
379
|
+
* places, and nothing stops a cycle — so each address is reported once and the walk always ends.
|
|
380
|
+
* Each level uses one batched parent lookup, bounded by the depth.
|
|
381
|
+
*/
|
|
382
|
+
async ancestorsOf(sub, address, parents) {
|
|
383
|
+
const seen = new Set([address, ...parents]);
|
|
384
|
+
const ancestors = [];
|
|
385
|
+
let level = parents;
|
|
386
|
+
for (let depth = 0; depth < this.ancestorDepth && level.length; depth++) {
|
|
387
|
+
const next = [];
|
|
388
|
+
for (const parent of await this.parentsOf(sub, level)) {
|
|
389
|
+
if (seen.has(parent))
|
|
390
|
+
continue;
|
|
391
|
+
seen.add(parent);
|
|
392
|
+
next.push(parent);
|
|
393
|
+
}
|
|
394
|
+
ancestors.push(...next);
|
|
395
|
+
level = next;
|
|
396
|
+
}
|
|
397
|
+
return ancestors;
|
|
398
|
+
}
|
|
362
399
|
persist() {
|
|
363
400
|
if (this.onPersist) {
|
|
364
401
|
const seen = {};
|
|
@@ -1,13 +1,10 @@
|
|
|
1
|
-
import { ApiClient } from
|
|
1
|
+
import { ApiClient, CallOptions } from '../apiClient';
|
|
2
2
|
import { Perspective, PerspectiveExpression } from "../perspectives/Perspective";
|
|
3
|
-
import { RuntimeInfo,
|
|
4
|
-
|
|
5
|
-
export type ExceptionCallback = (info: ExceptionInfo) => null;
|
|
6
|
-
export type NotificationTriggeredCallback = (notification: TriggeredNotification) => null;
|
|
7
|
-
export type NotificationRequestedCallback = (notification: Notification) => null;
|
|
3
|
+
import { RuntimeInfo, SentMessage, NotificationInput, Notification, ImportResult, UserStatistics } from "./RuntimeTypes";
|
|
4
|
+
import type { HostRate, UnytVersionInfo } from "../generated/api";
|
|
8
5
|
export declare class RuntimeClient {
|
|
9
6
|
#private;
|
|
10
|
-
constructor(baseUrl: string, token?: string,
|
|
7
|
+
constructor(baseUrl: string, token?: string, sharedApiClient?: ApiClient);
|
|
11
8
|
info(): Promise<RuntimeInfo>;
|
|
12
9
|
tlsDomain(): Promise<string | null>;
|
|
13
10
|
quit(): Promise<Boolean>;
|
|
@@ -23,15 +20,15 @@ export declare class RuntimeClient {
|
|
|
23
20
|
friends(): Promise<string[]>;
|
|
24
21
|
hcAgentInfos(): Promise<string[]>;
|
|
25
22
|
getNetworkMetrics(): Promise<string>;
|
|
26
|
-
restartHolochain(): Promise<boolean>;
|
|
23
|
+
restartHolochain(options?: CallOptions): Promise<boolean>;
|
|
27
24
|
hcAddAgentInfos(agentInfos: string[]): Promise<boolean>;
|
|
28
25
|
verifyStringSignedByDid(did: string, didSigningKeyId: string, data: string, signedData: string): Promise<boolean>;
|
|
29
26
|
setStatus(perspective: Perspective): Promise<boolean>;
|
|
30
27
|
friendStatus(did: string): Promise<PerspectiveExpression>;
|
|
31
28
|
friendSendMessage(did: string, message: Perspective): Promise<boolean>;
|
|
32
|
-
messageInbox(
|
|
33
|
-
messageOutbox(
|
|
34
|
-
requestInstallNotification(notification: NotificationInput): Promise<
|
|
29
|
+
messageInbox(): Promise<PerspectiveExpression[]>;
|
|
30
|
+
messageOutbox(): Promise<SentMessage[]>;
|
|
31
|
+
requestInstallNotification(notification: NotificationInput): Promise<string>;
|
|
35
32
|
grantNotification(id: string): Promise<boolean>;
|
|
36
33
|
exportDb(filePath: string): Promise<boolean>;
|
|
37
34
|
importDb(filePath: string): Promise<ImportResult>;
|
|
@@ -55,11 +52,11 @@ export declare class RuntimeClient {
|
|
|
55
52
|
unytHotAgentPubkey(): Promise<string>;
|
|
56
53
|
unytWalletBalance(): Promise<string>;
|
|
57
54
|
unytWalletHistory(page?: number, perPage?: number): Promise<string>;
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
55
|
+
/** Installed and bundled DNA versions, and why the last install failed (`installError`). */
|
|
56
|
+
unytVersionInfo(): Promise<UnytVersionInfo>;
|
|
57
|
+
/** Stores the membrane proof (base64); the executor then installs the Unyt DNA in the
|
|
58
|
+
* background. Poll {@link unytVersionInfo} for the outcome. */
|
|
59
|
+
setUnytMembraneProof(proof: string): Promise<boolean>;
|
|
63
60
|
unytReinstallDna(): Promise<{
|
|
64
61
|
success: boolean;
|
|
65
62
|
message: string;
|
|
@@ -70,15 +67,6 @@ export declare class RuntimeClient {
|
|
|
70
67
|
}>;
|
|
71
68
|
setUserCredits(email: string, amount: number): Promise<boolean>;
|
|
72
69
|
setUserFreeAccess(email: string, enabled: boolean): Promise<boolean>;
|
|
73
|
-
setHostRates(
|
|
74
|
-
|
|
75
|
-
description: string;
|
|
76
|
-
priceInHOT: number;
|
|
77
|
-
}[]>;
|
|
78
|
-
addNotificationTriggeredCallback(cb: NotificationTriggeredCallback): void;
|
|
79
|
-
subscribeNotificationTriggered(): void;
|
|
80
|
-
addMessageCallback(cb: MessageCallback): void;
|
|
81
|
-
subscribeMessageReceived(): void;
|
|
82
|
-
addExceptionCallback(cb: ExceptionCallback): void;
|
|
83
|
-
subscribeExceptionOccurred(): void;
|
|
70
|
+
setHostRates(rates: HostRate[]): Promise<boolean>;
|
|
71
|
+
hostRates(): Promise<HostRate[]>;
|
|
84
72
|
}
|
|
@@ -9,45 +9,22 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
9
9
|
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
10
10
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
11
11
|
};
|
|
12
|
-
var _RuntimeClient_apiClient
|
|
13
|
-
import { ApiClient } from
|
|
14
|
-
|
|
15
|
-
if (typeof type !== 'string' || type === type.toUpperCase()) {
|
|
16
|
-
return type;
|
|
17
|
-
}
|
|
18
|
-
return type
|
|
19
|
-
.replace(/([a-z0-9])([A-Z])/g, '$1_$2')
|
|
20
|
-
.replace(/([A-Z])([A-Z][a-z])/g, '$1_$2')
|
|
21
|
-
.toUpperCase();
|
|
22
|
-
}
|
|
12
|
+
var _RuntimeClient_apiClient;
|
|
13
|
+
import { ApiClient } from '../apiClient';
|
|
14
|
+
import { Perspective, PerspectiveExpression } from "../perspectives/Perspective";
|
|
23
15
|
export class RuntimeClient {
|
|
24
|
-
constructor(baseUrl, token,
|
|
16
|
+
constructor(baseUrl, token, sharedApiClient) {
|
|
25
17
|
_RuntimeClient_apiClient.set(this, void 0);
|
|
26
|
-
_RuntimeClient_messageReceivedCallbacks.set(this, void 0);
|
|
27
|
-
_RuntimeClient_exceptionOccurredCallbacks.set(this, void 0);
|
|
28
|
-
_RuntimeClient_notificationTriggeredCallbacks.set(this, void 0);
|
|
29
|
-
_RuntimeClient_notificationRequestedCallbacks.set(this, void 0);
|
|
30
|
-
_RuntimeClient_unsubscribers.set(this, void 0);
|
|
31
18
|
__classPrivateFieldSet(this, _RuntimeClient_apiClient, sharedApiClient || new ApiClient(baseUrl, token), "f");
|
|
32
|
-
__classPrivateFieldSet(this, _RuntimeClient_messageReceivedCallbacks, [], "f");
|
|
33
|
-
__classPrivateFieldSet(this, _RuntimeClient_exceptionOccurredCallbacks, [], "f");
|
|
34
|
-
__classPrivateFieldSet(this, _RuntimeClient_notificationTriggeredCallbacks, [], "f");
|
|
35
|
-
__classPrivateFieldSet(this, _RuntimeClient_notificationRequestedCallbacks, [], "f");
|
|
36
|
-
__classPrivateFieldSet(this, _RuntimeClient_unsubscribers, [], "f");
|
|
37
|
-
if (subscribe) {
|
|
38
|
-
this.subscribeMessageReceived();
|
|
39
|
-
this.subscribeExceptionOccurred();
|
|
40
|
-
this.subscribeNotificationTriggered();
|
|
41
|
-
}
|
|
42
19
|
}
|
|
43
20
|
async info() {
|
|
44
|
-
return __classPrivateFieldGet(this, _RuntimeClient_apiClient, "f").call('runtime.info');
|
|
21
|
+
return __classPrivateFieldGet(this, _RuntimeClient_apiClient, "f").call('runtime.info', {});
|
|
45
22
|
}
|
|
46
23
|
async tlsDomain() {
|
|
47
|
-
return __classPrivateFieldGet(this, _RuntimeClient_apiClient, "f").call('runtime.tlsDomain');
|
|
24
|
+
return __classPrivateFieldGet(this, _RuntimeClient_apiClient, "f").call('runtime.tlsDomain', {});
|
|
48
25
|
}
|
|
49
26
|
async quit() {
|
|
50
|
-
return __classPrivateFieldGet(this, _RuntimeClient_apiClient, "f").call('runtime.quit');
|
|
27
|
+
return __classPrivateFieldGet(this, _RuntimeClient_apiClient, "f").call('runtime.quit', {});
|
|
51
28
|
}
|
|
52
29
|
async openLink(url) {
|
|
53
30
|
return __classPrivateFieldGet(this, _RuntimeClient_apiClient, "f").call('runtime.openLink', { url });
|
|
@@ -59,7 +36,7 @@ export class RuntimeClient {
|
|
|
59
36
|
return __classPrivateFieldGet(this, _RuntimeClient_apiClient, "f").call('agent.deleteTrustedAgents', { agents });
|
|
60
37
|
}
|
|
61
38
|
async getTrustedAgents() {
|
|
62
|
-
return __classPrivateFieldGet(this, _RuntimeClient_apiClient, "f").call('agent.getTrustedAgents');
|
|
39
|
+
return __classPrivateFieldGet(this, _RuntimeClient_apiClient, "f").call('agent.getTrustedAgents', {});
|
|
63
40
|
}
|
|
64
41
|
async addKnownLinkLanguageTemplates(addresses) {
|
|
65
42
|
return __classPrivateFieldGet(this, _RuntimeClient_apiClient, "f").call('runtime.addLinkLanguageTemplates', { addresses });
|
|
@@ -68,7 +45,7 @@ export class RuntimeClient {
|
|
|
68
45
|
return __classPrivateFieldGet(this, _RuntimeClient_apiClient, "f").call('runtime.removeLinkLanguageTemplates', { addresses });
|
|
69
46
|
}
|
|
70
47
|
async knownLinkLanguageTemplates() {
|
|
71
|
-
return __classPrivateFieldGet(this, _RuntimeClient_apiClient, "f").call('runtime.linkLanguageTemplates');
|
|
48
|
+
return __classPrivateFieldGet(this, _RuntimeClient_apiClient, "f").call('runtime.linkLanguageTemplates', {});
|
|
72
49
|
}
|
|
73
50
|
async addFriends(dids) {
|
|
74
51
|
return __classPrivateFieldGet(this, _RuntimeClient_apiClient, "f").call('runtime.addFriends', { dids });
|
|
@@ -77,37 +54,40 @@ export class RuntimeClient {
|
|
|
77
54
|
return __classPrivateFieldGet(this, _RuntimeClient_apiClient, "f").call('runtime.removeFriends', { dids });
|
|
78
55
|
}
|
|
79
56
|
async friends() {
|
|
80
|
-
return __classPrivateFieldGet(this, _RuntimeClient_apiClient, "f").call('runtime.friends');
|
|
57
|
+
return __classPrivateFieldGet(this, _RuntimeClient_apiClient, "f").call('runtime.friends', {});
|
|
81
58
|
}
|
|
82
59
|
async hcAgentInfos() {
|
|
83
|
-
return __classPrivateFieldGet(this, _RuntimeClient_apiClient, "f").call('runtime.hcAgentInfos');
|
|
60
|
+
return __classPrivateFieldGet(this, _RuntimeClient_apiClient, "f").call('runtime.hcAgentInfos', {});
|
|
84
61
|
}
|
|
85
62
|
async getNetworkMetrics() {
|
|
86
|
-
return __classPrivateFieldGet(this, _RuntimeClient_apiClient, "f").call('runtime.networkMetrics');
|
|
63
|
+
return __classPrivateFieldGet(this, _RuntimeClient_apiClient, "f").call('runtime.networkMetrics', {});
|
|
87
64
|
}
|
|
88
|
-
async restartHolochain() {
|
|
89
|
-
return __classPrivateFieldGet(this, _RuntimeClient_apiClient, "f").call('runtime.restartHolochain');
|
|
65
|
+
async restartHolochain(options) {
|
|
66
|
+
return __classPrivateFieldGet(this, _RuntimeClient_apiClient, "f").call('runtime.restartHolochain', {}, options);
|
|
90
67
|
}
|
|
91
68
|
async hcAddAgentInfos(agentInfos) {
|
|
92
69
|
return __classPrivateFieldGet(this, _RuntimeClient_apiClient, "f").call('runtime.addHcAgentInfos', { agentInfos });
|
|
93
70
|
}
|
|
94
71
|
async verifyStringSignedByDid(did, didSigningKeyId, data, signedData) {
|
|
95
|
-
|
|
72
|
+
// The executor resolves the key from the DID document; `didSigningKeyId` goes unused.
|
|
73
|
+
return __classPrivateFieldGet(this, _RuntimeClient_apiClient, "f").call('runtime.verifySignature', { did, data, signedData });
|
|
96
74
|
}
|
|
97
75
|
async setStatus(perspective) {
|
|
98
|
-
return __classPrivateFieldGet(this, _RuntimeClient_apiClient, "f").call('runtime.setStatus', { status: perspective });
|
|
76
|
+
return __classPrivateFieldGet(this, _RuntimeClient_apiClient, "f").call('runtime.setStatus', { status: Perspective.toWire(perspective) });
|
|
99
77
|
}
|
|
100
78
|
async friendStatus(did) {
|
|
101
|
-
|
|
79
|
+
const status = await __classPrivateFieldGet(this, _RuntimeClient_apiClient, "f").call('runtime.friendStatus', { did });
|
|
80
|
+
return status ? PerspectiveExpression.fromWire(status) : null;
|
|
102
81
|
}
|
|
103
82
|
async friendSendMessage(did, message) {
|
|
104
|
-
return __classPrivateFieldGet(this, _RuntimeClient_apiClient, "f").call('runtime.sendFriendMessage', { did, message });
|
|
83
|
+
return __classPrivateFieldGet(this, _RuntimeClient_apiClient, "f").call('runtime.sendFriendMessage', { did, message: Perspective.toWire(message) });
|
|
105
84
|
}
|
|
106
|
-
async messageInbox(
|
|
107
|
-
return __classPrivateFieldGet(this, _RuntimeClient_apiClient, "f").call('runtime.inbox', {
|
|
85
|
+
async messageInbox() {
|
|
86
|
+
return (await __classPrivateFieldGet(this, _RuntimeClient_apiClient, "f").call('runtime.inbox', {})).map(PerspectiveExpression.fromWire);
|
|
108
87
|
}
|
|
109
|
-
async messageOutbox(
|
|
110
|
-
|
|
88
|
+
async messageOutbox() {
|
|
89
|
+
const sent = await __classPrivateFieldGet(this, _RuntimeClient_apiClient, "f").call('runtime.outbox', {});
|
|
90
|
+
return sent.map(({ recipient, message }) => ({ recipient, message: PerspectiveExpression.fromWire(message) }));
|
|
111
91
|
}
|
|
112
92
|
async requestInstallNotification(notification) {
|
|
113
93
|
return __classPrivateFieldGet(this, _RuntimeClient_apiClient, "f").call('runtime.createNotification', { ...notification });
|
|
@@ -119,10 +99,13 @@ export class RuntimeClient {
|
|
|
119
99
|
return __classPrivateFieldGet(this, _RuntimeClient_apiClient, "f").call('runtime.exportData', { type: "db", filePath });
|
|
120
100
|
}
|
|
121
101
|
async importDb(filePath) {
|
|
122
|
-
|
|
102
|
+
const result = await __classPrivateFieldGet(this, _RuntimeClient_apiClient, "f").call('runtime.importData', { type: "db", filePath });
|
|
103
|
+
if ('success' in result)
|
|
104
|
+
throw new Error('runtime.importData answered a perspective import for type "db"');
|
|
105
|
+
return result;
|
|
123
106
|
}
|
|
124
107
|
async notifications() {
|
|
125
|
-
return __classPrivateFieldGet(this, _RuntimeClient_apiClient, "f").call('runtime.notifications');
|
|
108
|
+
return __classPrivateFieldGet(this, _RuntimeClient_apiClient, "f").call('runtime.notifications', {});
|
|
126
109
|
}
|
|
127
110
|
async updateNotification(id, notification) {
|
|
128
111
|
return __classPrivateFieldGet(this, _RuntimeClient_apiClient, "f").call('runtime.updateNotification', { ...notification, id });
|
|
@@ -134,62 +117,67 @@ export class RuntimeClient {
|
|
|
134
117
|
return __classPrivateFieldGet(this, _RuntimeClient_apiClient, "f").call('runtime.exportData', { type: "perspective", perspectiveUuid: uuid, filePath });
|
|
135
118
|
}
|
|
136
119
|
async importPerspective(filePath) {
|
|
137
|
-
|
|
120
|
+
const result = await __classPrivateFieldGet(this, _RuntimeClient_apiClient, "f").call('runtime.importData', { type: "perspective", filePath });
|
|
121
|
+
return 'success' in result && result.success;
|
|
138
122
|
}
|
|
139
123
|
async multiUserEnabled() {
|
|
140
|
-
return __classPrivateFieldGet(this, _RuntimeClient_apiClient, "f").call('user.multiUserEnabled');
|
|
124
|
+
return __classPrivateFieldGet(this, _RuntimeClient_apiClient, "f").call('user.multiUserEnabled', {});
|
|
141
125
|
}
|
|
142
126
|
async setMultiUserEnabled(enabled) {
|
|
143
127
|
return __classPrivateFieldGet(this, _RuntimeClient_apiClient, "f").call('user.setMultiUserEnabled', { enabled });
|
|
144
128
|
}
|
|
145
129
|
async freeHostingEnabled() {
|
|
146
|
-
return __classPrivateFieldGet(this, _RuntimeClient_apiClient, "f").call('runtime.freeHostingEnabled');
|
|
130
|
+
return __classPrivateFieldGet(this, _RuntimeClient_apiClient, "f").call('runtime.freeHostingEnabled', {});
|
|
147
131
|
}
|
|
148
132
|
async setFreeHostingEnabled(enabled) {
|
|
149
133
|
return __classPrivateFieldGet(this, _RuntimeClient_apiClient, "f").call('runtime.setFreeHostingEnabled', { enabled });
|
|
150
134
|
}
|
|
151
135
|
async listUsers() {
|
|
152
|
-
return __classPrivateFieldGet(this, _RuntimeClient_apiClient, "f").call('user.list');
|
|
136
|
+
return __classPrivateFieldGet(this, _RuntimeClient_apiClient, "f").call('user.list', {});
|
|
153
137
|
}
|
|
154
138
|
async userWalletAddress(email) {
|
|
155
139
|
return __classPrivateFieldGet(this, _RuntimeClient_apiClient, "f").call('user.wallet', { email });
|
|
156
140
|
}
|
|
157
141
|
async emailTestModeEnable() {
|
|
158
|
-
return __classPrivateFieldGet(this, _RuntimeClient_apiClient, "f").call('user.emailTest', { action: 'enable' });
|
|
142
|
+
return (await __classPrivateFieldGet(this, _RuntimeClient_apiClient, "f").call('user.emailTest', { action: 'enable' })) === true;
|
|
159
143
|
}
|
|
160
144
|
async emailTestModeDisable() {
|
|
161
|
-
return __classPrivateFieldGet(this, _RuntimeClient_apiClient, "f").call('user.emailTest', { action: 'disable' });
|
|
145
|
+
return (await __classPrivateFieldGet(this, _RuntimeClient_apiClient, "f").call('user.emailTest', { action: 'disable' })) === true;
|
|
162
146
|
}
|
|
163
147
|
async emailTestGetCode(email) {
|
|
164
|
-
|
|
148
|
+
const code = await __classPrivateFieldGet(this, _RuntimeClient_apiClient, "f").call('user.emailTest', { action: 'get-code', email });
|
|
149
|
+
return typeof code === 'string' ? code : null;
|
|
165
150
|
}
|
|
166
151
|
async emailTestClearCodes() {
|
|
167
|
-
return __classPrivateFieldGet(this, _RuntimeClient_apiClient, "f").call('user.emailTest', { action: 'clear-codes' });
|
|
152
|
+
return (await __classPrivateFieldGet(this, _RuntimeClient_apiClient, "f").call('user.emailTest', { action: 'clear-codes' })) === true;
|
|
168
153
|
}
|
|
169
154
|
async emailTestSetExpiry(email, verificationType, expiresAt) {
|
|
170
|
-
return __classPrivateFieldGet(this, _RuntimeClient_apiClient, "f").call('user.emailTest', { action: 'set-expiry', email, verificationType, expiresAt });
|
|
155
|
+
return (await __classPrivateFieldGet(this, _RuntimeClient_apiClient, "f").call('user.emailTest', { action: 'set-expiry', email, verificationType, expiresAt })) === true;
|
|
171
156
|
}
|
|
172
157
|
// ---- Unyt / mHOT methods ----
|
|
173
158
|
async unytAgentKey() {
|
|
174
|
-
return __classPrivateFieldGet(this, _RuntimeClient_apiClient, "f").call('runtime.unytAgentKey');
|
|
159
|
+
return __classPrivateFieldGet(this, _RuntimeClient_apiClient, "f").call('runtime.unytAgentKey', {});
|
|
175
160
|
}
|
|
176
161
|
async unytHotAgentPubkey() {
|
|
177
|
-
return __classPrivateFieldGet(this, _RuntimeClient_apiClient, "f").call('runtime.unytHotAgentPubkey');
|
|
162
|
+
return __classPrivateFieldGet(this, _RuntimeClient_apiClient, "f").call('runtime.unytHotAgentPubkey', {});
|
|
178
163
|
}
|
|
179
164
|
async unytWalletBalance() {
|
|
180
|
-
return __classPrivateFieldGet(this, _RuntimeClient_apiClient, "f").call('runtime.unytWalletBalance');
|
|
165
|
+
return __classPrivateFieldGet(this, _RuntimeClient_apiClient, "f").call('runtime.unytWalletBalance', {});
|
|
181
166
|
}
|
|
182
167
|
async unytWalletHistory(page, perPage) {
|
|
183
168
|
return __classPrivateFieldGet(this, _RuntimeClient_apiClient, "f").call('runtime.unytWalletHistory', { page, perPage });
|
|
184
169
|
}
|
|
170
|
+
/** Installed and bundled DNA versions, and why the last install failed (`installError`). */
|
|
185
171
|
async unytVersionInfo() {
|
|
186
|
-
return __classPrivateFieldGet(this, _RuntimeClient_apiClient, "f").call('runtime.unytVersionInfo');
|
|
172
|
+
return __classPrivateFieldGet(this, _RuntimeClient_apiClient, "f").call('runtime.unytVersionInfo', {});
|
|
187
173
|
}
|
|
188
|
-
|
|
189
|
-
|
|
174
|
+
/** Stores the membrane proof (base64); the executor then installs the Unyt DNA in the
|
|
175
|
+
* background. Poll {@link unytVersionInfo} for the outcome. */
|
|
176
|
+
async setUnytMembraneProof(proof) {
|
|
177
|
+
return __classPrivateFieldGet(this, _RuntimeClient_apiClient, "f").call('runtime.setUnytMembraneProof', { proof });
|
|
190
178
|
}
|
|
191
179
|
async unytReinstallDna() {
|
|
192
|
-
return __classPrivateFieldGet(this, _RuntimeClient_apiClient, "f").call('runtime.unytReinstallDna');
|
|
180
|
+
return __classPrivateFieldGet(this, _RuntimeClient_apiClient, "f").call('runtime.unytReinstallDna', {});
|
|
193
181
|
}
|
|
194
182
|
async unytSendHot(recipient, amount) {
|
|
195
183
|
return __classPrivateFieldGet(this, _RuntimeClient_apiClient, "f").call('runtime.unytSendHot', { recipient, amount });
|
|
@@ -200,55 +188,11 @@ export class RuntimeClient {
|
|
|
200
188
|
async setUserFreeAccess(email, enabled) {
|
|
201
189
|
return __classPrivateFieldGet(this, _RuntimeClient_apiClient, "f").call('user.freeAccess', { email, enabled });
|
|
202
190
|
}
|
|
203
|
-
async setHostRates(
|
|
204
|
-
return __classPrivateFieldGet(this, _RuntimeClient_apiClient, "f").call('runtime.setHostRates', {
|
|
205
|
-
}
|
|
206
|
-
async
|
|
207
|
-
|
|
208
|
-
try {
|
|
209
|
-
return JSON.parse(result);
|
|
210
|
-
}
|
|
211
|
-
catch {
|
|
212
|
-
return [];
|
|
213
|
-
}
|
|
214
|
-
}
|
|
215
|
-
addNotificationTriggeredCallback(cb) {
|
|
216
|
-
__classPrivateFieldGet(this, _RuntimeClient_notificationTriggeredCallbacks, "f").push(cb);
|
|
217
|
-
}
|
|
218
|
-
subscribeNotificationTriggered() {
|
|
219
|
-
const unsub = __classPrivateFieldGet(this, _RuntimeClient_apiClient, "f").subscribe((data) => {
|
|
220
|
-
if (data.type === 'notification-triggered') {
|
|
221
|
-
__classPrivateFieldGet(this, _RuntimeClient_notificationTriggeredCallbacks, "f").forEach(cb => cb(data.notification));
|
|
222
|
-
}
|
|
223
|
-
});
|
|
224
|
-
__classPrivateFieldGet(this, _RuntimeClient_unsubscribers, "f").push(unsub);
|
|
225
|
-
}
|
|
226
|
-
addMessageCallback(cb) {
|
|
227
|
-
__classPrivateFieldGet(this, _RuntimeClient_messageReceivedCallbacks, "f").push(cb);
|
|
228
|
-
}
|
|
229
|
-
subscribeMessageReceived() {
|
|
230
|
-
const unsub = __classPrivateFieldGet(this, _RuntimeClient_apiClient, "f").subscribe((data) => {
|
|
231
|
-
if (data.type === 'message-received') {
|
|
232
|
-
__classPrivateFieldGet(this, _RuntimeClient_messageReceivedCallbacks, "f").forEach(cb => cb(data.message));
|
|
233
|
-
}
|
|
234
|
-
});
|
|
235
|
-
__classPrivateFieldGet(this, _RuntimeClient_unsubscribers, "f").push(unsub);
|
|
236
|
-
}
|
|
237
|
-
addExceptionCallback(cb) {
|
|
238
|
-
__classPrivateFieldGet(this, _RuntimeClient_exceptionOccurredCallbacks, "f").push(cb);
|
|
239
|
-
}
|
|
240
|
-
subscribeExceptionOccurred() {
|
|
241
|
-
const unsub = __classPrivateFieldGet(this, _RuntimeClient_apiClient, "f").subscribe((data) => {
|
|
242
|
-
if (data.type === 'exception-occurred' && data.exception) {
|
|
243
|
-
const exception = data.exception;
|
|
244
|
-
const normalizedException = {
|
|
245
|
-
...exception,
|
|
246
|
-
type: normalizeExceptionType(exception.type),
|
|
247
|
-
};
|
|
248
|
-
__classPrivateFieldGet(this, _RuntimeClient_exceptionOccurredCallbacks, "f").forEach(cb => cb(normalizedException));
|
|
249
|
-
}
|
|
250
|
-
});
|
|
251
|
-
__classPrivateFieldGet(this, _RuntimeClient_unsubscribers, "f").push(unsub);
|
|
191
|
+
async setHostRates(rates) {
|
|
192
|
+
return __classPrivateFieldGet(this, _RuntimeClient_apiClient, "f").call('runtime.setHostRates', { rates });
|
|
193
|
+
}
|
|
194
|
+
async hostRates() {
|
|
195
|
+
return __classPrivateFieldGet(this, _RuntimeClient_apiClient, "f").call('runtime.hostRates', {});
|
|
252
196
|
}
|
|
253
197
|
}
|
|
254
|
-
_RuntimeClient_apiClient = new WeakMap()
|
|
198
|
+
_RuntimeClient_apiClient = new WeakMap();
|
|
@@ -86,8 +86,8 @@ export declare class HostingUserInfo {
|
|
|
86
86
|
}
|
|
87
87
|
export declare class PaymentRequestResult {
|
|
88
88
|
success: boolean;
|
|
89
|
-
|
|
90
|
-
constructor(success: boolean,
|
|
89
|
+
amountHOT: string;
|
|
90
|
+
constructor(success: boolean, amountHOT: string);
|
|
91
91
|
}
|
|
92
92
|
export declare class ComputeLogEntry {
|
|
93
93
|
id: number;
|
|
@@ -27,9 +27,9 @@ export class HostingUserInfo {
|
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
29
|
export class PaymentRequestResult {
|
|
30
|
-
constructor(success,
|
|
30
|
+
constructor(success, amountHOT) {
|
|
31
31
|
this.success = success;
|
|
32
|
-
this.
|
|
32
|
+
this.amountHOT = amountHOT;
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
35
|
export class ComputeLogEntry {
|