@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
package/lib/src/ai/AIResolver.js
DELETED
|
@@ -1,455 +0,0 @@
|
|
|
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
|
-
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
11
|
-
return function (target, key) { decorator(target, key, paramIndex); }
|
|
12
|
-
};
|
|
13
|
-
import { Query, Resolver, Mutation, Arg, InputType, Field, Subscription, Float, PubSub, ObjectType } from "type-graphql";
|
|
14
|
-
import { AIModelLoadingStatus, AITask, AITaskInput } from "./Tasks";
|
|
15
|
-
import pako from "pako";
|
|
16
|
-
import base64js from 'base64-js';
|
|
17
|
-
import { AI_TRANSCRIPTION_TEXT_TOPIC } from "../PubSub";
|
|
18
|
-
let createdAt = Date.now().toString();
|
|
19
|
-
let updatedAt = Date.now().toString();
|
|
20
|
-
let ModelApi = class ModelApi {
|
|
21
|
-
};
|
|
22
|
-
__decorate([
|
|
23
|
-
Field(),
|
|
24
|
-
__metadata("design:type", String)
|
|
25
|
-
], ModelApi.prototype, "baseUrl", void 0);
|
|
26
|
-
__decorate([
|
|
27
|
-
Field(),
|
|
28
|
-
__metadata("design:type", String)
|
|
29
|
-
], ModelApi.prototype, "apiKey", void 0);
|
|
30
|
-
__decorate([
|
|
31
|
-
Field(),
|
|
32
|
-
__metadata("design:type", String)
|
|
33
|
-
], ModelApi.prototype, "model", void 0);
|
|
34
|
-
__decorate([
|
|
35
|
-
Field(),
|
|
36
|
-
__metadata("design:type", String)
|
|
37
|
-
], ModelApi.prototype, "apiType", void 0);
|
|
38
|
-
ModelApi = __decorate([
|
|
39
|
-
ObjectType()
|
|
40
|
-
], ModelApi);
|
|
41
|
-
export { ModelApi };
|
|
42
|
-
let TokenizerSource = class TokenizerSource {
|
|
43
|
-
};
|
|
44
|
-
__decorate([
|
|
45
|
-
Field(),
|
|
46
|
-
__metadata("design:type", String)
|
|
47
|
-
], TokenizerSource.prototype, "repo", void 0);
|
|
48
|
-
__decorate([
|
|
49
|
-
Field(),
|
|
50
|
-
__metadata("design:type", String)
|
|
51
|
-
], TokenizerSource.prototype, "revision", void 0);
|
|
52
|
-
__decorate([
|
|
53
|
-
Field(),
|
|
54
|
-
__metadata("design:type", String)
|
|
55
|
-
], TokenizerSource.prototype, "fileName", void 0);
|
|
56
|
-
TokenizerSource = __decorate([
|
|
57
|
-
ObjectType()
|
|
58
|
-
], TokenizerSource);
|
|
59
|
-
export { TokenizerSource };
|
|
60
|
-
let LocalModel = class LocalModel {
|
|
61
|
-
};
|
|
62
|
-
__decorate([
|
|
63
|
-
Field(),
|
|
64
|
-
__metadata("design:type", String)
|
|
65
|
-
], LocalModel.prototype, "fileName", void 0);
|
|
66
|
-
__decorate([
|
|
67
|
-
Field({ nullable: true }),
|
|
68
|
-
__metadata("design:type", TokenizerSource)
|
|
69
|
-
], LocalModel.prototype, "tokenizerSource", void 0);
|
|
70
|
-
__decorate([
|
|
71
|
-
Field({ nullable: true }),
|
|
72
|
-
__metadata("design:type", String)
|
|
73
|
-
], LocalModel.prototype, "huggingfaceRepo", void 0);
|
|
74
|
-
__decorate([
|
|
75
|
-
Field({ nullable: true }),
|
|
76
|
-
__metadata("design:type", String)
|
|
77
|
-
], LocalModel.prototype, "revision", void 0);
|
|
78
|
-
LocalModel = __decorate([
|
|
79
|
-
ObjectType()
|
|
80
|
-
], LocalModel);
|
|
81
|
-
export { LocalModel };
|
|
82
|
-
let Model = class Model {
|
|
83
|
-
};
|
|
84
|
-
__decorate([
|
|
85
|
-
Field(),
|
|
86
|
-
__metadata("design:type", String)
|
|
87
|
-
], Model.prototype, "id", void 0);
|
|
88
|
-
__decorate([
|
|
89
|
-
Field(),
|
|
90
|
-
__metadata("design:type", String)
|
|
91
|
-
], Model.prototype, "name", void 0);
|
|
92
|
-
__decorate([
|
|
93
|
-
Field(type => ModelApi, { nullable: true }),
|
|
94
|
-
__metadata("design:type", ModelApi)
|
|
95
|
-
], Model.prototype, "api", void 0);
|
|
96
|
-
__decorate([
|
|
97
|
-
Field(type => LocalModel, { nullable: true }),
|
|
98
|
-
__metadata("design:type", LocalModel)
|
|
99
|
-
], Model.prototype, "local", void 0);
|
|
100
|
-
__decorate([
|
|
101
|
-
Field(),
|
|
102
|
-
__metadata("design:type", String)
|
|
103
|
-
], Model.prototype, "modelType", void 0);
|
|
104
|
-
Model = __decorate([
|
|
105
|
-
ObjectType()
|
|
106
|
-
], Model);
|
|
107
|
-
export { Model };
|
|
108
|
-
let ModelApiInput = class ModelApiInput {
|
|
109
|
-
};
|
|
110
|
-
__decorate([
|
|
111
|
-
Field(),
|
|
112
|
-
__metadata("design:type", String)
|
|
113
|
-
], ModelApiInput.prototype, "baseUrl", void 0);
|
|
114
|
-
__decorate([
|
|
115
|
-
Field(),
|
|
116
|
-
__metadata("design:type", String)
|
|
117
|
-
], ModelApiInput.prototype, "apiKey", void 0);
|
|
118
|
-
__decorate([
|
|
119
|
-
Field(),
|
|
120
|
-
__metadata("design:type", String)
|
|
121
|
-
], ModelApiInput.prototype, "model", void 0);
|
|
122
|
-
__decorate([
|
|
123
|
-
Field(),
|
|
124
|
-
__metadata("design:type", String)
|
|
125
|
-
], ModelApiInput.prototype, "apiType", void 0);
|
|
126
|
-
ModelApiInput = __decorate([
|
|
127
|
-
InputType()
|
|
128
|
-
], ModelApiInput);
|
|
129
|
-
export { ModelApiInput };
|
|
130
|
-
let TokenizerSourceInput = class TokenizerSourceInput {
|
|
131
|
-
};
|
|
132
|
-
__decorate([
|
|
133
|
-
Field(),
|
|
134
|
-
__metadata("design:type", String)
|
|
135
|
-
], TokenizerSourceInput.prototype, "repo", void 0);
|
|
136
|
-
__decorate([
|
|
137
|
-
Field(),
|
|
138
|
-
__metadata("design:type", String)
|
|
139
|
-
], TokenizerSourceInput.prototype, "revision", void 0);
|
|
140
|
-
__decorate([
|
|
141
|
-
Field(),
|
|
142
|
-
__metadata("design:type", String)
|
|
143
|
-
], TokenizerSourceInput.prototype, "fileName", void 0);
|
|
144
|
-
TokenizerSourceInput = __decorate([
|
|
145
|
-
InputType()
|
|
146
|
-
], TokenizerSourceInput);
|
|
147
|
-
export { TokenizerSourceInput };
|
|
148
|
-
let LocalModelInput = class LocalModelInput {
|
|
149
|
-
};
|
|
150
|
-
__decorate([
|
|
151
|
-
Field(),
|
|
152
|
-
__metadata("design:type", String)
|
|
153
|
-
], LocalModelInput.prototype, "fileName", void 0);
|
|
154
|
-
__decorate([
|
|
155
|
-
Field({ nullable: true }),
|
|
156
|
-
__metadata("design:type", TokenizerSourceInput)
|
|
157
|
-
], LocalModelInput.prototype, "tokenizerSource", void 0);
|
|
158
|
-
__decorate([
|
|
159
|
-
Field({ nullable: true }),
|
|
160
|
-
__metadata("design:type", String)
|
|
161
|
-
], LocalModelInput.prototype, "huggingfaceRepo", void 0);
|
|
162
|
-
__decorate([
|
|
163
|
-
Field({ nullable: true }),
|
|
164
|
-
__metadata("design:type", String)
|
|
165
|
-
], LocalModelInput.prototype, "revision", void 0);
|
|
166
|
-
LocalModelInput = __decorate([
|
|
167
|
-
InputType()
|
|
168
|
-
], LocalModelInput);
|
|
169
|
-
export { LocalModelInput };
|
|
170
|
-
let ModelInput = class ModelInput {
|
|
171
|
-
};
|
|
172
|
-
__decorate([
|
|
173
|
-
Field(),
|
|
174
|
-
__metadata("design:type", String)
|
|
175
|
-
], ModelInput.prototype, "name", void 0);
|
|
176
|
-
__decorate([
|
|
177
|
-
Field(type => ModelApiInput, { nullable: true }),
|
|
178
|
-
__metadata("design:type", ModelApiInput)
|
|
179
|
-
], ModelInput.prototype, "api", void 0);
|
|
180
|
-
__decorate([
|
|
181
|
-
Field(type => LocalModelInput, { nullable: true }),
|
|
182
|
-
__metadata("design:type", LocalModelInput)
|
|
183
|
-
], ModelInput.prototype, "local", void 0);
|
|
184
|
-
__decorate([
|
|
185
|
-
Field(),
|
|
186
|
-
__metadata("design:type", String)
|
|
187
|
-
], ModelInput.prototype, "modelType", void 0);
|
|
188
|
-
ModelInput = __decorate([
|
|
189
|
-
InputType()
|
|
190
|
-
], ModelInput);
|
|
191
|
-
export { ModelInput };
|
|
192
|
-
let VoiceActivityParamsInput = class VoiceActivityParamsInput {
|
|
193
|
-
};
|
|
194
|
-
__decorate([
|
|
195
|
-
Field(() => Float, { nullable: true }),
|
|
196
|
-
__metadata("design:type", Number)
|
|
197
|
-
], VoiceActivityParamsInput.prototype, "startThreshold", void 0);
|
|
198
|
-
__decorate([
|
|
199
|
-
Field(() => Float, { nullable: true }),
|
|
200
|
-
__metadata("design:type", Number)
|
|
201
|
-
], VoiceActivityParamsInput.prototype, "startWindow", void 0);
|
|
202
|
-
__decorate([
|
|
203
|
-
Field(() => Float, { nullable: true }),
|
|
204
|
-
__metadata("design:type", Number)
|
|
205
|
-
], VoiceActivityParamsInput.prototype, "endThreshold", void 0);
|
|
206
|
-
__decorate([
|
|
207
|
-
Field(() => Float, { nullable: true }),
|
|
208
|
-
__metadata("design:type", Number)
|
|
209
|
-
], VoiceActivityParamsInput.prototype, "endWindow", void 0);
|
|
210
|
-
__decorate([
|
|
211
|
-
Field(() => Float, { nullable: true }),
|
|
212
|
-
__metadata("design:type", Number)
|
|
213
|
-
], VoiceActivityParamsInput.prototype, "timeBeforeSpeech", void 0);
|
|
214
|
-
VoiceActivityParamsInput = __decorate([
|
|
215
|
-
InputType()
|
|
216
|
-
], VoiceActivityParamsInput);
|
|
217
|
-
export { VoiceActivityParamsInput };
|
|
218
|
-
let AIResolver = class AIResolver {
|
|
219
|
-
aiGetModels() {
|
|
220
|
-
return [
|
|
221
|
-
{
|
|
222
|
-
id: "test-id",
|
|
223
|
-
name: "Test Model",
|
|
224
|
-
api: {
|
|
225
|
-
baseUrl: "https://api.example.com",
|
|
226
|
-
apiKey: "test-api-key",
|
|
227
|
-
model: "gpt4o",
|
|
228
|
-
apiType: "OpenAi"
|
|
229
|
-
},
|
|
230
|
-
local: {
|
|
231
|
-
fileName: "test-model.bin",
|
|
232
|
-
tokenizerSource: {
|
|
233
|
-
repo: "test-repo",
|
|
234
|
-
revision: "main",
|
|
235
|
-
fileName: "tokenizer.json"
|
|
236
|
-
},
|
|
237
|
-
huggingfaceRepo: "test-repo",
|
|
238
|
-
revision: "main"
|
|
239
|
-
},
|
|
240
|
-
modelType: "LLM"
|
|
241
|
-
}
|
|
242
|
-
];
|
|
243
|
-
}
|
|
244
|
-
aiAddModel(model) {
|
|
245
|
-
// In a real implementation, this would add the model to storage
|
|
246
|
-
return "new-model-id";
|
|
247
|
-
}
|
|
248
|
-
aiUpdateModel(modelId, model) {
|
|
249
|
-
// In a real implementation, this would update the model in storage
|
|
250
|
-
return true;
|
|
251
|
-
}
|
|
252
|
-
aiRemoveModel(modelId) {
|
|
253
|
-
// In a real implementation, this would remove the model from storage
|
|
254
|
-
return true;
|
|
255
|
-
}
|
|
256
|
-
aiSetDefaultModel(modelType, modelId) {
|
|
257
|
-
// In a real implementation, this would set the default model
|
|
258
|
-
return true;
|
|
259
|
-
}
|
|
260
|
-
aiGetDefaultModel(modelType) {
|
|
261
|
-
// In a real implementation, this would get the default model for the given type
|
|
262
|
-
return {
|
|
263
|
-
id: "default-test-id",
|
|
264
|
-
name: "Default Test Model",
|
|
265
|
-
api: {
|
|
266
|
-
baseUrl: "https://api.example.com",
|
|
267
|
-
apiKey: "test-api-key",
|
|
268
|
-
model: "gpt4o",
|
|
269
|
-
apiType: "OpenAi"
|
|
270
|
-
},
|
|
271
|
-
local: {
|
|
272
|
-
fileName: "test-model.bin",
|
|
273
|
-
tokenizerSource: {
|
|
274
|
-
repo: "test-repo",
|
|
275
|
-
revision: "main",
|
|
276
|
-
fileName: "tokenizer.json"
|
|
277
|
-
},
|
|
278
|
-
huggingfaceRepo: "test-repo",
|
|
279
|
-
revision: "main"
|
|
280
|
-
},
|
|
281
|
-
modelType: modelType
|
|
282
|
-
};
|
|
283
|
-
}
|
|
284
|
-
aiTasks() {
|
|
285
|
-
return [new AITask("task1", "modelId", "task_id", "systemPrompt", [], undefined, createdAt, updatedAt),
|
|
286
|
-
new AITask("task2", "modelId", "task_id", "systemPrompt", [], undefined, createdAt, updatedAt)];
|
|
287
|
-
}
|
|
288
|
-
aiAddTask(task) {
|
|
289
|
-
return new AITask("task_name", task.modelId, "task_id", task.systemPrompt, task.promptExamples, undefined, createdAt, updatedAt);
|
|
290
|
-
}
|
|
291
|
-
aiRemoveTask(taskId) {
|
|
292
|
-
return new AITask("task_name", "model_id", taskId, "system prompt", [], undefined, createdAt, updatedAt);
|
|
293
|
-
}
|
|
294
|
-
aiUpdateTask(taskId, task) {
|
|
295
|
-
return new AITask(task.name, task.modelId, taskId, task.systemPrompt, task.promptExamples, undefined, createdAt, updatedAt);
|
|
296
|
-
}
|
|
297
|
-
aiModelLoadingStatus(model) {
|
|
298
|
-
return new AIModelLoadingStatus(model, "loaded", 100.0, true, true);
|
|
299
|
-
}
|
|
300
|
-
aiPrompt(taskId, input) {
|
|
301
|
-
return "output";
|
|
302
|
-
}
|
|
303
|
-
aiEmbed(modelId, text) {
|
|
304
|
-
const vec = [0, 10, 20, 30];
|
|
305
|
-
const vecString = JSON.stringify(vec);
|
|
306
|
-
const compressed = pako.deflate(vecString);
|
|
307
|
-
const compressedString = base64js.fromByteArray(compressed);
|
|
308
|
-
return compressedString;
|
|
309
|
-
}
|
|
310
|
-
aiOpenTranscriptionStream(modelId, params) {
|
|
311
|
-
return "streamId";
|
|
312
|
-
}
|
|
313
|
-
aiCloseTranscriptionStream(streamId) {
|
|
314
|
-
return true;
|
|
315
|
-
}
|
|
316
|
-
aiFeedTranscriptionStream(streamIds, audio, pubSub) {
|
|
317
|
-
// Publish for each stream ID
|
|
318
|
-
for (const streamId of streamIds) {
|
|
319
|
-
pubSub.publish(AI_TRANSCRIPTION_TEXT_TOPIC, { streamId });
|
|
320
|
-
}
|
|
321
|
-
return true;
|
|
322
|
-
}
|
|
323
|
-
aiTranscriptionText(streamId) {
|
|
324
|
-
return "transcription";
|
|
325
|
-
}
|
|
326
|
-
};
|
|
327
|
-
__decorate([
|
|
328
|
-
Query(returns => [Model]),
|
|
329
|
-
__metadata("design:type", Function),
|
|
330
|
-
__metadata("design:paramtypes", []),
|
|
331
|
-
__metadata("design:returntype", Array)
|
|
332
|
-
], AIResolver.prototype, "aiGetModels", null);
|
|
333
|
-
__decorate([
|
|
334
|
-
Mutation(returns => String),
|
|
335
|
-
__param(0, Arg("model", type => ModelInput)),
|
|
336
|
-
__metadata("design:type", Function),
|
|
337
|
-
__metadata("design:paramtypes", [ModelInput]),
|
|
338
|
-
__metadata("design:returntype", String)
|
|
339
|
-
], AIResolver.prototype, "aiAddModel", null);
|
|
340
|
-
__decorate([
|
|
341
|
-
Mutation(returns => Boolean),
|
|
342
|
-
__param(0, Arg("modelId", type => String)),
|
|
343
|
-
__param(1, Arg("model", type => ModelInput)),
|
|
344
|
-
__metadata("design:type", Function),
|
|
345
|
-
__metadata("design:paramtypes", [String, ModelInput]),
|
|
346
|
-
__metadata("design:returntype", Boolean)
|
|
347
|
-
], AIResolver.prototype, "aiUpdateModel", null);
|
|
348
|
-
__decorate([
|
|
349
|
-
Mutation(returns => Boolean),
|
|
350
|
-
__param(0, Arg("modelId", type => String)),
|
|
351
|
-
__metadata("design:type", Function),
|
|
352
|
-
__metadata("design:paramtypes", [String]),
|
|
353
|
-
__metadata("design:returntype", Boolean)
|
|
354
|
-
], AIResolver.prototype, "aiRemoveModel", null);
|
|
355
|
-
__decorate([
|
|
356
|
-
Mutation(returns => Boolean),
|
|
357
|
-
__param(0, Arg("modelType", type => String)),
|
|
358
|
-
__param(1, Arg("modelId", type => String)),
|
|
359
|
-
__metadata("design:type", Function),
|
|
360
|
-
__metadata("design:paramtypes", [String, String]),
|
|
361
|
-
__metadata("design:returntype", Boolean)
|
|
362
|
-
], AIResolver.prototype, "aiSetDefaultModel", null);
|
|
363
|
-
__decorate([
|
|
364
|
-
Query(returns => Model),
|
|
365
|
-
__param(0, Arg("modelType", type => String)),
|
|
366
|
-
__metadata("design:type", Function),
|
|
367
|
-
__metadata("design:paramtypes", [String]),
|
|
368
|
-
__metadata("design:returntype", Model)
|
|
369
|
-
], AIResolver.prototype, "aiGetDefaultModel", null);
|
|
370
|
-
__decorate([
|
|
371
|
-
Query(returns => [AITask]),
|
|
372
|
-
__metadata("design:type", Function),
|
|
373
|
-
__metadata("design:paramtypes", []),
|
|
374
|
-
__metadata("design:returntype", Array)
|
|
375
|
-
], AIResolver.prototype, "aiTasks", null);
|
|
376
|
-
__decorate([
|
|
377
|
-
Mutation(returns => AITask),
|
|
378
|
-
__param(0, Arg("task")),
|
|
379
|
-
__metadata("design:type", Function),
|
|
380
|
-
__metadata("design:paramtypes", [AITaskInput]),
|
|
381
|
-
__metadata("design:returntype", AITask)
|
|
382
|
-
], AIResolver.prototype, "aiAddTask", null);
|
|
383
|
-
__decorate([
|
|
384
|
-
Mutation(() => AITask),
|
|
385
|
-
__param(0, Arg("taskId")),
|
|
386
|
-
__metadata("design:type", Function),
|
|
387
|
-
__metadata("design:paramtypes", [String]),
|
|
388
|
-
__metadata("design:returntype", AITask)
|
|
389
|
-
], AIResolver.prototype, "aiRemoveTask", null);
|
|
390
|
-
__decorate([
|
|
391
|
-
Mutation(() => AITask),
|
|
392
|
-
__param(0, Arg("taskId")),
|
|
393
|
-
__param(1, Arg("task")),
|
|
394
|
-
__metadata("design:type", Function),
|
|
395
|
-
__metadata("design:paramtypes", [String, AITaskInput]),
|
|
396
|
-
__metadata("design:returntype", AITask)
|
|
397
|
-
], AIResolver.prototype, "aiUpdateTask", null);
|
|
398
|
-
__decorate([
|
|
399
|
-
Query(() => AIModelLoadingStatus),
|
|
400
|
-
__param(0, Arg("model")),
|
|
401
|
-
__metadata("design:type", Function),
|
|
402
|
-
__metadata("design:paramtypes", [String]),
|
|
403
|
-
__metadata("design:returntype", AIModelLoadingStatus)
|
|
404
|
-
], AIResolver.prototype, "aiModelLoadingStatus", null);
|
|
405
|
-
__decorate([
|
|
406
|
-
Mutation(() => String),
|
|
407
|
-
__param(0, Arg("taskId")),
|
|
408
|
-
__param(1, Arg("prompt")),
|
|
409
|
-
__metadata("design:type", Function),
|
|
410
|
-
__metadata("design:paramtypes", [String, String]),
|
|
411
|
-
__metadata("design:returntype", String)
|
|
412
|
-
], AIResolver.prototype, "aiPrompt", null);
|
|
413
|
-
__decorate([
|
|
414
|
-
Mutation(() => String),
|
|
415
|
-
__param(0, Arg("modelId")),
|
|
416
|
-
__param(1, Arg("text")),
|
|
417
|
-
__metadata("design:type", Function),
|
|
418
|
-
__metadata("design:paramtypes", [String, String]),
|
|
419
|
-
__metadata("design:returntype", String)
|
|
420
|
-
], AIResolver.prototype, "aiEmbed", null);
|
|
421
|
-
__decorate([
|
|
422
|
-
Mutation(() => String),
|
|
423
|
-
__param(0, Arg("modelId")),
|
|
424
|
-
__param(1, Arg("params", () => VoiceActivityParamsInput, { nullable: true })),
|
|
425
|
-
__metadata("design:type", Function),
|
|
426
|
-
__metadata("design:paramtypes", [String, VoiceActivityParamsInput]),
|
|
427
|
-
__metadata("design:returntype", String)
|
|
428
|
-
], AIResolver.prototype, "aiOpenTranscriptionStream", null);
|
|
429
|
-
__decorate([
|
|
430
|
-
Mutation(() => String),
|
|
431
|
-
__param(0, Arg("streamId")),
|
|
432
|
-
__metadata("design:type", Function),
|
|
433
|
-
__metadata("design:paramtypes", [String]),
|
|
434
|
-
__metadata("design:returntype", Boolean)
|
|
435
|
-
], AIResolver.prototype, "aiCloseTranscriptionStream", null);
|
|
436
|
-
__decorate([
|
|
437
|
-
Mutation(() => String),
|
|
438
|
-
__param(0, Arg("streamIds", type => [String])),
|
|
439
|
-
__param(1, Arg("audio", () => [Float])),
|
|
440
|
-
__param(2, PubSub()),
|
|
441
|
-
__metadata("design:type", Function),
|
|
442
|
-
__metadata("design:paramtypes", [Array, Array, Object]),
|
|
443
|
-
__metadata("design:returntype", Boolean)
|
|
444
|
-
], AIResolver.prototype, "aiFeedTranscriptionStream", null);
|
|
445
|
-
__decorate([
|
|
446
|
-
Subscription({ topics: AI_TRANSCRIPTION_TEXT_TOPIC, nullable: false }),
|
|
447
|
-
__param(0, Arg("streamId")),
|
|
448
|
-
__metadata("design:type", Function),
|
|
449
|
-
__metadata("design:paramtypes", [String]),
|
|
450
|
-
__metadata("design:returntype", String)
|
|
451
|
-
], AIResolver.prototype, "aiTranscriptionText", null);
|
|
452
|
-
AIResolver = __decorate([
|
|
453
|
-
Resolver()
|
|
454
|
-
], AIResolver);
|
|
455
|
-
export default AIResolver;
|
package/lib/src/buildSchema.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import "reflect-metadata";
|
package/lib/src/buildSchema.js
DELETED
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import "reflect-metadata";
|
|
2
|
-
import fs from 'fs';
|
|
3
|
-
import path from "path";
|
|
4
|
-
import { fileURLToPath } from 'url';
|
|
5
|
-
import { buildSchema } from "type-graphql";
|
|
6
|
-
import AgentResolver from "./agent/AgentResolver";
|
|
7
|
-
import ExpressionResolver from "./expression/ExpressionResolver";
|
|
8
|
-
import LanguageResolver from "./language/LanguageResolver";
|
|
9
|
-
import NeighbourhoodResolver from "./neighbourhood/NeighbourhoodResolver";
|
|
10
|
-
import PerspectiveResolver from "./perspectives/PerspectiveResolver";
|
|
11
|
-
import RuntimeResolver from "./runtime/RuntimeResolver";
|
|
12
|
-
import AIResolver from "./ai/AIResolver";
|
|
13
|
-
const __filename = fileURLToPath(import.meta.url);
|
|
14
|
-
const __dirname = path.dirname(__filename);
|
|
15
|
-
buildSchema({
|
|
16
|
-
resolvers: [
|
|
17
|
-
AgentResolver,
|
|
18
|
-
ExpressionResolver,
|
|
19
|
-
LanguageResolver,
|
|
20
|
-
NeighbourhoodResolver,
|
|
21
|
-
PerspectiveResolver,
|
|
22
|
-
RuntimeResolver,
|
|
23
|
-
AIResolver
|
|
24
|
-
],
|
|
25
|
-
emitSchemaFile: {
|
|
26
|
-
path: __dirname + '/schema.gql',
|
|
27
|
-
commentDescriptions: true
|
|
28
|
-
}
|
|
29
|
-
})
|
|
30
|
-
.then(() => {
|
|
31
|
-
const schemaFile = fs.readFileSync(__dirname + '/schema.gql');
|
|
32
|
-
const schemaFileWithoutComments = schemaFile.toString().split("\n").filter((line) => !line.startsWith('#')).join("\n");
|
|
33
|
-
const typeDefsFile = `
|
|
34
|
-
export const typeDefsString = \`${schemaFileWithoutComments}\`
|
|
35
|
-
`;
|
|
36
|
-
fs.writeFileSync(__dirname + '/typeDefs.js', typeDefsFile);
|
|
37
|
-
//fs.writeFileSync(__dirname+'/src/typeDefs.js', typeDefsFile)
|
|
38
|
-
});
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { ExpressionRendered } from "./Expression";
|
|
2
|
-
import { InteractionCall, InteractionMeta } from "../language/Language";
|
|
3
|
-
export default class ExpressionResolver {
|
|
4
|
-
expression(url: string): ExpressionRendered;
|
|
5
|
-
expressionMany(urls: string[]): (ExpressionRendered | null)[];
|
|
6
|
-
expressionRaw(url: string): string;
|
|
7
|
-
expressionCreate(content: string, languageAddress: string): string;
|
|
8
|
-
expressionInteractions(url: string): InteractionMeta[];
|
|
9
|
-
expressionInteract(url: string, interactionCall: InteractionCall): string | null;
|
|
10
|
-
}
|
|
@@ -1,106 +0,0 @@
|
|
|
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
|
-
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
11
|
-
return function (target, key) { decorator(target, key, paramIndex); }
|
|
12
|
-
};
|
|
13
|
-
import { Arg, Mutation, Query, Resolver } from "type-graphql";
|
|
14
|
-
import { LanguageRef } from "../language/LanguageRef";
|
|
15
|
-
import { ExpressionProof, ExpressionRendered } from "./Expression";
|
|
16
|
-
import { InteractionCall, InteractionMeta } from "../language/Language";
|
|
17
|
-
const e = new ExpressionRendered();
|
|
18
|
-
e.author = 'did:ad4m:test';
|
|
19
|
-
e.timestamp = Date.now().toString();
|
|
20
|
-
e.proof = new ExpressionProof('', '');
|
|
21
|
-
e.data = JSON.stringify({ type: 'test expression', content: 'test' });
|
|
22
|
-
e.language = new LanguageRef('test-language-address');
|
|
23
|
-
const testExpression = e;
|
|
24
|
-
let ExpressionResolver = class ExpressionResolver {
|
|
25
|
-
expression(url) {
|
|
26
|
-
if (url === 'neighbourhood://Qm123') {
|
|
27
|
-
return testExpression;
|
|
28
|
-
}
|
|
29
|
-
else {
|
|
30
|
-
return null;
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
expressionMany(urls) {
|
|
34
|
-
return [testExpression, null];
|
|
35
|
-
}
|
|
36
|
-
expressionRaw(url) {
|
|
37
|
-
if (url === 'neighbourhood://Qm123') {
|
|
38
|
-
return JSON.stringify(testExpression);
|
|
39
|
-
}
|
|
40
|
-
else {
|
|
41
|
-
return null;
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
expressionCreate(content, languageAddress) {
|
|
45
|
-
return "Qm1234";
|
|
46
|
-
}
|
|
47
|
-
expressionInteractions(url) {
|
|
48
|
-
const interaction = {
|
|
49
|
-
label: "Add a comment",
|
|
50
|
-
name: "add_comment",
|
|
51
|
-
parameters: [{ name: 'comment', type: 'string' }]
|
|
52
|
-
};
|
|
53
|
-
return [interaction];
|
|
54
|
-
}
|
|
55
|
-
expressionInteract(url, interactionCall) {
|
|
56
|
-
return "test result";
|
|
57
|
-
}
|
|
58
|
-
};
|
|
59
|
-
__decorate([
|
|
60
|
-
Query(returns => ExpressionRendered, { nullable: true }),
|
|
61
|
-
__param(0, Arg('url')),
|
|
62
|
-
__metadata("design:type", Function),
|
|
63
|
-
__metadata("design:paramtypes", [String]),
|
|
64
|
-
__metadata("design:returntype", ExpressionRendered)
|
|
65
|
-
], ExpressionResolver.prototype, "expression", null);
|
|
66
|
-
__decorate([
|
|
67
|
-
Query(returns => [ExpressionRendered], { nullable: "items" }),
|
|
68
|
-
__param(0, Arg('urls', type => [String])),
|
|
69
|
-
__metadata("design:type", Function),
|
|
70
|
-
__metadata("design:paramtypes", [Array]),
|
|
71
|
-
__metadata("design:returntype", Array)
|
|
72
|
-
], ExpressionResolver.prototype, "expressionMany", null);
|
|
73
|
-
__decorate([
|
|
74
|
-
Query(returns => String, { nullable: true }),
|
|
75
|
-
__param(0, Arg('url')),
|
|
76
|
-
__metadata("design:type", Function),
|
|
77
|
-
__metadata("design:paramtypes", [String]),
|
|
78
|
-
__metadata("design:returntype", String)
|
|
79
|
-
], ExpressionResolver.prototype, "expressionRaw", null);
|
|
80
|
-
__decorate([
|
|
81
|
-
Mutation(returns => String),
|
|
82
|
-
__param(0, Arg('content')),
|
|
83
|
-
__param(1, Arg('languageAddress')),
|
|
84
|
-
__metadata("design:type", Function),
|
|
85
|
-
__metadata("design:paramtypes", [String, String]),
|
|
86
|
-
__metadata("design:returntype", String)
|
|
87
|
-
], ExpressionResolver.prototype, "expressionCreate", null);
|
|
88
|
-
__decorate([
|
|
89
|
-
Query(returns => [InteractionMeta]),
|
|
90
|
-
__param(0, Arg('url')),
|
|
91
|
-
__metadata("design:type", Function),
|
|
92
|
-
__metadata("design:paramtypes", [String]),
|
|
93
|
-
__metadata("design:returntype", Array)
|
|
94
|
-
], ExpressionResolver.prototype, "expressionInteractions", null);
|
|
95
|
-
__decorate([
|
|
96
|
-
Mutation(returns => String, { nullable: true }),
|
|
97
|
-
__param(0, Arg('url')),
|
|
98
|
-
__param(1, Arg('interactionCall')),
|
|
99
|
-
__metadata("design:type", Function),
|
|
100
|
-
__metadata("design:paramtypes", [String, InteractionCall]),
|
|
101
|
-
__metadata("design:returntype", String)
|
|
102
|
-
], ExpressionResolver.prototype, "expressionInteract", null);
|
|
103
|
-
ExpressionResolver = __decorate([
|
|
104
|
-
Resolver()
|
|
105
|
-
], ExpressionResolver);
|
|
106
|
-
export default ExpressionResolver;
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
|
-
import type { AppSignalCb } from '@holochain/client';
|
|
3
|
-
import { Expression } from "../expression/Expression";
|
|
4
|
-
export interface AgentService {
|
|
5
|
-
readonly did: string;
|
|
6
|
-
createSignedExpression(data: any): Expression;
|
|
7
|
-
}
|
|
8
|
-
export interface SignaturesService {
|
|
9
|
-
verify(expr: Expression): boolean;
|
|
10
|
-
}
|
|
11
|
-
export interface LanguageContext {
|
|
12
|
-
agent: AgentService;
|
|
13
|
-
signatures: SignaturesService;
|
|
14
|
-
storageDirectory: string;
|
|
15
|
-
customSettings: object;
|
|
16
|
-
Holochain: HolochainLanguageDelegate | undefined;
|
|
17
|
-
ad4mSignal: Ad4mSignalCB;
|
|
18
|
-
}
|
|
19
|
-
export declare class Dna {
|
|
20
|
-
file: Buffer;
|
|
21
|
-
nick: string;
|
|
22
|
-
zomeCalls: [string, string][];
|
|
23
|
-
}
|
|
24
|
-
export interface HolochainLanguageDelegate {
|
|
25
|
-
/** Installs/registers a given DNA in the ad4m-executor */
|
|
26
|
-
registerDNAs(dnas: Dna[], holochainSignalCallback?: AppSignalCb): Promise<void>;
|
|
27
|
-
/** Makes a single call to a given holochain DNA. Underlying implementation puts these calls into a sync fifo queue */
|
|
28
|
-
call(dnaNick: string, zomeName: string, fnName: string, params: object | string): Promise<any>;
|
|
29
|
-
/** Makes all supplied calls in parallel to the provided holochain dna... Should only be called on read operations to avoid source chain async mutation errors */
|
|
30
|
-
callAsync(calls: {
|
|
31
|
-
dnaNick: string;
|
|
32
|
-
zomeName: string;
|
|
33
|
-
fnName: string;
|
|
34
|
-
params: object | string;
|
|
35
|
-
}[], timeoutMs?: number): Promise<any[]>;
|
|
36
|
-
}
|
|
37
|
-
export type Ad4mSignalCB = (signal: any) => void;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { LanguageHandle } from "./LanguageHandle";
|
|
2
|
-
import { LanguageMeta, LanguageMetaInput } from "./LanguageMeta";
|
|
3
|
-
import { LanguageRef } from "./LanguageRef";
|
|
4
|
-
/**
|
|
5
|
-
* Resolver classes are used here to define the GraphQL schema
|
|
6
|
-
* (through the type-graphql annotations)
|
|
7
|
-
* and are spawned in the client tests in Ad4mClient.test.ts.
|
|
8
|
-
* For the latter, they return test fixtures.
|
|
9
|
-
*/
|
|
10
|
-
export default class LanguageResolver {
|
|
11
|
-
language(address: string): LanguageHandle;
|
|
12
|
-
languages(filter: string): LanguageHandle[];
|
|
13
|
-
languageWriteSettings(languageAddress: string, settings: string): Boolean;
|
|
14
|
-
languageApplyTemplateAndPublish(sourceLanguageHash: string, templateData: string): LanguageRef;
|
|
15
|
-
languagePublish(languagePath: string, languageMeta: LanguageMetaInput): LanguageMeta;
|
|
16
|
-
languageMeta(address: string): LanguageMeta;
|
|
17
|
-
languageSource(address: string): string;
|
|
18
|
-
languageRemove(address: string): Boolean;
|
|
19
|
-
}
|