@undefineds.co/xpod 0.1.0-local.202602081751
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/LICENSE +22 -0
- package/README.md +146 -0
- package/components/components.jsonld +72 -0
- package/components/context.jsonld +1635 -0
- package/config/bun.json +90 -0
- package/config/cli.json +260 -0
- package/config/cloud.json +469 -0
- package/config/extensions.local.initializer.json +23 -0
- package/config/local.json +261 -0
- package/config/logging/configurable.json +18 -0
- package/config/main.json +200 -0
- package/config/main.vanilla.json +6 -0
- package/config/resolver.json +347 -0
- package/config/search.json +66 -0
- package/config/seed.dev.json +29 -0
- package/config/seeds/admin.example.json +11 -0
- package/config/seeds/test.json +11 -0
- package/config/terminal.json +22 -0
- package/config/vector.json +35 -0
- package/config/xpod.base.json +155 -0
- package/config/xpod.cluster.json +419 -0
- package/config/xpod.json +233 -0
- package/dist/agents/AgentExecutorFactory.d.ts +67 -0
- package/dist/agents/AgentExecutorFactory.js +193 -0
- package/dist/agents/AgentExecutorFactory.js.map +1 -0
- package/dist/agents/AgentManager.d.ts +114 -0
- package/dist/agents/AgentManager.js +289 -0
- package/dist/agents/AgentManager.js.map +1 -0
- package/dist/agents/BaseAgentExecutor.d.ts +67 -0
- package/dist/agents/BaseAgentExecutor.js +101 -0
- package/dist/agents/BaseAgentExecutor.js.map +1 -0
- package/dist/agents/ClaudeExecutor.d.ts +63 -0
- package/dist/agents/ClaudeExecutor.js +335 -0
- package/dist/agents/ClaudeExecutor.js.map +1 -0
- package/dist/agents/CodeBuddyExecutor.d.ts +54 -0
- package/dist/agents/CodeBuddyExecutor.js +273 -0
- package/dist/agents/CodeBuddyExecutor.js.map +1 -0
- package/dist/agents/IndexAgent.d.ts +70 -0
- package/dist/agents/IndexAgent.js +417 -0
- package/dist/agents/IndexAgent.js.map +1 -0
- package/dist/agents/index.d.ts +22 -0
- package/dist/agents/index.js +48 -0
- package/dist/agents/index.js.map +1 -0
- package/dist/agents/schema/agent-config.d.ts +58 -0
- package/dist/agents/schema/agent-config.js +74 -0
- package/dist/agents/schema/agent-config.js.map +1 -0
- package/dist/agents/schema/tables.d.ts +46 -0
- package/dist/agents/schema/tables.js +64 -0
- package/dist/agents/schema/tables.js.map +1 -0
- package/dist/agents/types.d.ts +266 -0
- package/dist/agents/types.js +9 -0
- package/dist/agents/types.js.map +1 -0
- package/dist/ai/index.d.ts +5 -0
- package/dist/ai/index.js +22 -0
- package/dist/ai/index.js.map +1 -0
- package/dist/ai/schema/config.d.ts +27 -0
- package/dist/ai/schema/config.js +36 -0
- package/dist/ai/schema/config.js.map +1 -0
- package/dist/ai/schema/index.d.ts +8 -0
- package/dist/ai/schema/index.js +27 -0
- package/dist/ai/schema/index.js.map +1 -0
- package/dist/ai/schema/model.d.ts +40 -0
- package/dist/ai/schema/model.js +60 -0
- package/dist/ai/schema/model.js.map +1 -0
- package/dist/ai/schema/provider.d.ts +21 -0
- package/dist/ai/schema/provider.js +30 -0
- package/dist/ai/schema/provider.js.map +1 -0
- package/dist/ai/schema/types.d.ts +52 -0
- package/dist/ai/schema/types.js +62 -0
- package/dist/ai/schema/types.js.map +1 -0
- package/dist/ai/schema/vector-store.d.ts +53 -0
- package/dist/ai/schema/vector-store.js +65 -0
- package/dist/ai/schema/vector-store.js.map +1 -0
- package/dist/ai/service/CredentialReader.d.ts +7 -0
- package/dist/ai/service/CredentialReader.js +10 -0
- package/dist/ai/service/CredentialReader.js.map +1 -0
- package/dist/ai/service/CredentialReaderImpl.d.ts +6 -0
- package/dist/ai/service/CredentialReaderImpl.js +55 -0
- package/dist/ai/service/CredentialReaderImpl.js.map +1 -0
- package/dist/ai/service/EmbeddingService.d.ts +8 -0
- package/dist/ai/service/EmbeddingService.js +10 -0
- package/dist/ai/service/EmbeddingService.js.map +1 -0
- package/dist/ai/service/EmbeddingServiceImpl.d.ts +11 -0
- package/dist/ai/service/EmbeddingServiceImpl.js +73 -0
- package/dist/ai/service/EmbeddingServiceImpl.js.map +1 -0
- package/dist/ai/service/ProviderRegistry.d.ts +26 -0
- package/dist/ai/service/ProviderRegistry.js +10 -0
- package/dist/ai/service/ProviderRegistry.js.map +1 -0
- package/dist/ai/service/ProviderRegistryImpl.d.ts +14 -0
- package/dist/ai/service/ProviderRegistryImpl.js +112 -0
- package/dist/ai/service/ProviderRegistryImpl.js.map +1 -0
- package/dist/ai/service/index.d.ts +10 -0
- package/dist/ai/service/index.js +29 -0
- package/dist/ai/service/index.js.map +1 -0
- package/dist/ai/service/types.d.ts +12 -0
- package/dist/ai/service/types.js +6 -0
- package/dist/ai/service/types.js.map +1 -0
- package/dist/api/ApiServer.d.ts +77 -0
- package/dist/api/ApiServer.js +191 -0
- package/dist/api/ApiServer.js.map +1 -0
- package/dist/api/auth/AuthContext.d.ts +41 -0
- package/dist/api/auth/AuthContext.js +44 -0
- package/dist/api/auth/AuthContext.js.map +1 -0
- package/dist/api/auth/Authenticator.d.ts +23 -0
- package/dist/api/auth/Authenticator.js +3 -0
- package/dist/api/auth/Authenticator.js.map +1 -0
- package/dist/api/auth/ClientCredentialsAuthenticator.d.ts +56 -0
- package/dist/api/auth/ClientCredentialsAuthenticator.js +191 -0
- package/dist/api/auth/ClientCredentialsAuthenticator.js.map +1 -0
- package/dist/api/auth/MultiAuthenticator.d.ts +15 -0
- package/dist/api/auth/MultiAuthenticator.js +36 -0
- package/dist/api/auth/MultiAuthenticator.js.map +1 -0
- package/dist/api/auth/NodeTokenAuthenticator.d.ts +21 -0
- package/dist/api/auth/NodeTokenAuthenticator.js +124 -0
- package/dist/api/auth/NodeTokenAuthenticator.js.map +1 -0
- package/dist/api/auth/SolidTokenAuthenticator.d.ts +27 -0
- package/dist/api/auth/SolidTokenAuthenticator.js +144 -0
- package/dist/api/auth/SolidTokenAuthenticator.js.map +1 -0
- package/dist/api/auth/index.d.ts +5 -0
- package/dist/api/auth/index.js +23 -0
- package/dist/api/auth/index.js.map +1 -0
- package/dist/api/chatkit/ai-provider.d.ts +44 -0
- package/dist/api/chatkit/ai-provider.js +157 -0
- package/dist/api/chatkit/ai-provider.js.map +1 -0
- package/dist/api/chatkit/index.d.ts +11 -0
- package/dist/api/chatkit/index.js +44 -0
- package/dist/api/chatkit/index.js.map +1 -0
- package/dist/api/chatkit/pod-store.d.ts +154 -0
- package/dist/api/chatkit/pod-store.js +794 -0
- package/dist/api/chatkit/pod-store.js.map +1 -0
- package/dist/api/chatkit/schema.d.ts +139 -0
- package/dist/api/chatkit/schema.js +168 -0
- package/dist/api/chatkit/schema.js.map +1 -0
- package/dist/api/chatkit/service.d.ts +143 -0
- package/dist/api/chatkit/service.js +442 -0
- package/dist/api/chatkit/service.js.map +1 -0
- package/dist/api/chatkit/store.d.ts +63 -0
- package/dist/api/chatkit/store.js +178 -0
- package/dist/api/chatkit/store.js.map +1 -0
- package/dist/api/chatkit/types.d.ts +461 -0
- package/dist/api/chatkit/types.js +50 -0
- package/dist/api/chatkit/types.js.map +1 -0
- package/dist/api/container/cloud.d.ts +12 -0
- package/dist/api/container/cloud.js +97 -0
- package/dist/api/container/cloud.js.map +1 -0
- package/dist/api/container/common.d.ts +11 -0
- package/dist/api/container/common.js +82 -0
- package/dist/api/container/common.js.map +1 -0
- package/dist/api/container/index.d.ts +16 -0
- package/dist/api/container/index.js +90 -0
- package/dist/api/container/index.js.map +1 -0
- package/dist/api/container/local.d.ts +13 -0
- package/dist/api/container/local.js +197 -0
- package/dist/api/container/local.js.map +1 -0
- package/dist/api/container/routes.d.ts +11 -0
- package/dist/api/container/routes.js +129 -0
- package/dist/api/container/routes.js.map +1 -0
- package/dist/api/container/types.d.ts +92 -0
- package/dist/api/container/types.js +8 -0
- package/dist/api/container/types.js.map +1 -0
- package/dist/api/handlers/AdminHandler.d.ts +6 -0
- package/dist/api/handlers/AdminHandler.js +330 -0
- package/dist/api/handlers/AdminHandler.js.map +1 -0
- package/dist/api/handlers/ApiKeyHandler.d.ts +15 -0
- package/dist/api/handlers/ApiKeyHandler.js +159 -0
- package/dist/api/handlers/ApiKeyHandler.js.map +1 -0
- package/dist/api/handlers/ChatHandler.d.ts +60 -0
- package/dist/api/handlers/ChatHandler.js +230 -0
- package/dist/api/handlers/ChatHandler.js.map +1 -0
- package/dist/api/handlers/ChatKitHandler.d.ts +18 -0
- package/dist/api/handlers/ChatKitHandler.js +151 -0
- package/dist/api/handlers/ChatKitHandler.js.map +1 -0
- package/dist/api/handlers/DashboardHandler.d.ts +14 -0
- package/dist/api/handlers/DashboardHandler.js +117 -0
- package/dist/api/handlers/DashboardHandler.js.map +1 -0
- package/dist/api/handlers/DdnsHandler.d.ts +19 -0
- package/dist/api/handlers/DdnsHandler.js +306 -0
- package/dist/api/handlers/DdnsHandler.js.map +1 -0
- package/dist/api/handlers/DevHandler.d.ts +18 -0
- package/dist/api/handlers/DevHandler.js +276 -0
- package/dist/api/handlers/DevHandler.js.map +1 -0
- package/dist/api/handlers/NodeHandler.d.ts +16 -0
- package/dist/api/handlers/NodeHandler.js +190 -0
- package/dist/api/handlers/NodeHandler.js.map +1 -0
- package/dist/api/handlers/PodManagementHandler.d.ts +39 -0
- package/dist/api/handlers/PodManagementHandler.js +294 -0
- package/dist/api/handlers/PodManagementHandler.js.map +1 -0
- package/dist/api/handlers/QuotaHandler.d.ts +21 -0
- package/dist/api/handlers/QuotaHandler.js +209 -0
- package/dist/api/handlers/QuotaHandler.js.map +1 -0
- package/dist/api/handlers/SignalHandler.d.ts +13 -0
- package/dist/api/handlers/SignalHandler.js +122 -0
- package/dist/api/handlers/SignalHandler.js.map +1 -0
- package/dist/api/handlers/SubdomainClientHandler.d.ts +24 -0
- package/dist/api/handlers/SubdomainClientHandler.js +169 -0
- package/dist/api/handlers/SubdomainClientHandler.js.map +1 -0
- package/dist/api/handlers/SubdomainHandler.d.ts +17 -0
- package/dist/api/handlers/SubdomainHandler.js +312 -0
- package/dist/api/handlers/SubdomainHandler.js.map +1 -0
- package/dist/api/handlers/VectorHandler.d.ts +15 -0
- package/dist/api/handlers/VectorHandler.js +293 -0
- package/dist/api/handlers/VectorHandler.js.map +1 -0
- package/dist/api/handlers/VectorStoreHandler.d.ts +20 -0
- package/dist/api/handlers/VectorStoreHandler.js +348 -0
- package/dist/api/handlers/VectorStoreHandler.js.map +1 -0
- package/dist/api/handlers/VectorStoreWebhookHandler.d.ts +74 -0
- package/dist/api/handlers/VectorStoreWebhookHandler.js +121 -0
- package/dist/api/handlers/VectorStoreWebhookHandler.js.map +1 -0
- package/dist/api/handlers/WebIdProfileHandler.d.ts +14 -0
- package/dist/api/handlers/WebIdProfileHandler.js +204 -0
- package/dist/api/handlers/WebIdProfileHandler.js.map +1 -0
- package/dist/api/handlers/index.d.ts +11 -0
- package/dist/api/handlers/index.js +28 -0
- package/dist/api/handlers/index.js.map +1 -0
- package/dist/api/index.d.ts +12 -0
- package/dist/api/index.js +29 -0
- package/dist/api/index.js.map +1 -0
- package/dist/api/main.d.ts +14 -0
- package/dist/api/main.js +106 -0
- package/dist/api/main.js.map +1 -0
- package/dist/api/middleware/AuthMiddleware.d.ts +35 -0
- package/dist/api/middleware/AuthMiddleware.js +51 -0
- package/dist/api/middleware/AuthMiddleware.js.map +1 -0
- package/dist/api/middleware/index.d.ts +1 -0
- package/dist/api/middleware/index.js +18 -0
- package/dist/api/middleware/index.js.map +1 -0
- package/dist/api/models/model-provider.schema.d.ts +12 -0
- package/dist/api/models/model-provider.schema.js +21 -0
- package/dist/api/models/model-provider.schema.js.map +1 -0
- package/dist/api/models/namespaces.d.ts +9 -0
- package/dist/api/models/namespaces.js +34 -0
- package/dist/api/models/namespaces.js.map +1 -0
- package/dist/api/service/InternalPodService.d.ts +19 -0
- package/dist/api/service/InternalPodService.js +82 -0
- package/dist/api/service/InternalPodService.js.map +1 -0
- package/dist/api/service/VectorService.d.ts +156 -0
- package/dist/api/service/VectorService.js +202 -0
- package/dist/api/service/VectorService.js.map +1 -0
- package/dist/api/service/VectorStoreService.d.ts +262 -0
- package/dist/api/service/VectorStoreService.js +985 -0
- package/dist/api/service/VectorStoreService.js.map +1 -0
- package/dist/api/service/VercelChatService.d.ts +28 -0
- package/dist/api/service/VercelChatService.js +289 -0
- package/dist/api/service/VercelChatService.js.map +1 -0
- package/dist/api/store/DrizzleClientCredentialsStore.d.ts +56 -0
- package/dist/api/store/DrizzleClientCredentialsStore.js +145 -0
- package/dist/api/store/DrizzleClientCredentialsStore.js.map +1 -0
- package/dist/api/store/index.d.ts +1 -0
- package/dist/api/store/index.js +18 -0
- package/dist/api/store/index.js.map +1 -0
- package/dist/components/components.jsonld +88 -0
- package/dist/components/context.jsonld +1962 -0
- package/dist/credential/index.d.ts +1 -0
- package/dist/credential/index.js +18 -0
- package/dist/credential/index.js.map +1 -0
- package/dist/credential/schema/index.d.ts +2 -0
- package/dist/credential/schema/index.js +19 -0
- package/dist/credential/schema/index.js.map +1 -0
- package/dist/credential/schema/tables.d.ts +31 -0
- package/dist/credential/schema/tables.js +42 -0
- package/dist/credential/schema/tables.js.map +1 -0
- package/dist/credential/schema/types.d.ts +20 -0
- package/dist/credential/schema/types.js +26 -0
- package/dist/credential/schema/types.js.map +1 -0
- package/dist/dns/DnsProvider.d.ts +46 -0
- package/dist/dns/DnsProvider.js +3 -0
- package/dist/dns/DnsProvider.js.map +1 -0
- package/dist/dns/DnsProvider.jsonld +161 -0
- package/dist/dns/cloudflare/CloudflareDnsProvider.d.ts +51 -0
- package/dist/dns/cloudflare/CloudflareDnsProvider.js +227 -0
- package/dist/dns/cloudflare/CloudflareDnsProvider.js.map +1 -0
- package/dist/dns/cloudflare/index.d.ts +1 -0
- package/dist/dns/cloudflare/index.js +18 -0
- package/dist/dns/cloudflare/index.js.map +1 -0
- package/dist/dns/tencent/TencentDnsProvider.d.ts +42 -0
- package/dist/dns/tencent/TencentDnsProvider.js +221 -0
- package/dist/dns/tencent/TencentDnsProvider.js.map +1 -0
- package/dist/dns/tencent/TencentDnsProvider.jsonld +239 -0
- package/dist/document/Chunker.d.ts +64 -0
- package/dist/document/Chunker.js +8 -0
- package/dist/document/Chunker.js.map +1 -0
- package/dist/document/DocumentParser.d.ts +58 -0
- package/dist/document/DocumentParser.js +8 -0
- package/dist/document/DocumentParser.js.map +1 -0
- package/dist/document/HeadingChunker.d.ts +34 -0
- package/dist/document/HeadingChunker.js +182 -0
- package/dist/document/HeadingChunker.js.map +1 -0
- package/dist/document/JinaDocumentParser.d.ts +40 -0
- package/dist/document/JinaDocumentParser.js +129 -0
- package/dist/document/JinaDocumentParser.js.map +1 -0
- package/dist/document/index.d.ts +7 -0
- package/dist/document/index.js +26 -0
- package/dist/document/index.js.map +1 -0
- package/dist/edge/DdnsManager.d.ts +53 -0
- package/dist/edge/DdnsManager.js +153 -0
- package/dist/edge/DdnsManager.js.map +1 -0
- package/dist/edge/Dns01CertificateProvisioner.d.ts +27 -0
- package/dist/edge/Dns01CertificateProvisioner.js +160 -0
- package/dist/edge/Dns01CertificateProvisioner.js.map +1 -0
- package/dist/edge/Dns01CertificateProvisioner.jsonld +148 -0
- package/dist/edge/EdgeNodeAgent.d.ts +56 -0
- package/dist/edge/EdgeNodeAgent.js +230 -0
- package/dist/edge/EdgeNodeAgent.js.map +1 -0
- package/dist/edge/EdgeNodeAgent.jsonld +89 -0
- package/dist/edge/EdgeNodeAgentInitializer.d.ts +25 -0
- package/dist/edge/EdgeNodeAgentInitializer.js +64 -0
- package/dist/edge/EdgeNodeAgentInitializer.js.map +1 -0
- package/dist/edge/EdgeNodeCapabilityDetector.d.ts +98 -0
- package/dist/edge/EdgeNodeCapabilityDetector.js +425 -0
- package/dist/edge/EdgeNodeCapabilityDetector.js.map +1 -0
- package/dist/edge/EdgeNodeCertificateProvisioner.d.ts +3 -0
- package/dist/edge/EdgeNodeCertificateProvisioner.js +3 -0
- package/dist/edge/EdgeNodeCertificateProvisioner.js.map +1 -0
- package/dist/edge/EdgeNodeCertificateProvisioner.jsonld +21 -0
- package/dist/edge/EdgeNodeDnsCoordinator.d.ts +38 -0
- package/dist/edge/EdgeNodeDnsCoordinator.js +201 -0
- package/dist/edge/EdgeNodeDnsCoordinator.js.map +1 -0
- package/dist/edge/EdgeNodeDnsCoordinator.jsonld +212 -0
- package/dist/edge/EdgeNodeHealthProbeService.d.ts +25 -0
- package/dist/edge/EdgeNodeHealthProbeService.js +208 -0
- package/dist/edge/EdgeNodeHealthProbeService.js.map +1 -0
- package/dist/edge/EdgeNodeHealthProbeService.jsonld +176 -0
- package/dist/edge/EdgeNodeModeDetector.d.ts +50 -0
- package/dist/edge/EdgeNodeModeDetector.js +194 -0
- package/dist/edge/EdgeNodeModeDetector.js.map +1 -0
- package/dist/edge/EdgeNodeModeDetector.jsonld +114 -0
- package/dist/edge/EdgeNodeTunnelManager.d.ts +23 -0
- package/dist/edge/EdgeNodeTunnelManager.js +99 -0
- package/dist/edge/EdgeNodeTunnelManager.js.map +1 -0
- package/dist/edge/EdgeNodeTunnelManager.jsonld +128 -0
- package/dist/edge/FrpTunnelManager.d.ts +30 -0
- package/dist/edge/FrpTunnelManager.js +151 -0
- package/dist/edge/FrpTunnelManager.js.map +1 -0
- package/dist/edge/FrpTunnelManager.jsonld +192 -0
- package/dist/edge/LocalNetworkManager.d.ts +41 -0
- package/dist/edge/LocalNetworkManager.js +115 -0
- package/dist/edge/LocalNetworkManager.js.map +1 -0
- package/dist/edge/acme/AcmeCertificateManager.d.ts +65 -0
- package/dist/edge/acme/AcmeCertificateManager.js +233 -0
- package/dist/edge/acme/AcmeCertificateManager.js.map +1 -0
- package/dist/edge/acme/AcmeCertificateManager.jsonld +373 -0
- package/dist/edge/acme/ClusterCertificateManager.d.ts +40 -0
- package/dist/edge/acme/ClusterCertificateManager.js +184 -0
- package/dist/edge/acme/ClusterCertificateManager.js.map +1 -0
- package/dist/edge/acme/DnsChallengeClient.d.ts +15 -0
- package/dist/edge/acme/DnsChallengeClient.js +40 -0
- package/dist/edge/acme/DnsChallengeClient.js.map +1 -0
- package/dist/edge/acme/utils.d.ts +4 -0
- package/dist/edge/acme/utils.js +17 -0
- package/dist/edge/acme/utils.js.map +1 -0
- package/dist/edge/frp/FrpRelay.d.ts +11 -0
- package/dist/edge/frp/FrpRelay.js +29 -0
- package/dist/edge/frp/FrpRelay.js.map +1 -0
- package/dist/edge/frp/FrpcProcessManager.d.ts +51 -0
- package/dist/edge/frp/FrpcProcessManager.js +174 -0
- package/dist/edge/frp/FrpcProcessManager.js.map +1 -0
- package/dist/edge/interfaces/EdgeNodeTunnelManager.d.ts +6 -0
- package/dist/edge/interfaces/EdgeNodeTunnelManager.js +3 -0
- package/dist/edge/interfaces/EdgeNodeTunnelManager.js.map +1 -0
- package/dist/edge/interfaces/EdgeNodeTunnelManager.jsonld +21 -0
- package/dist/embedding/CredentialReader.d.ts +7 -0
- package/dist/embedding/CredentialReader.js +10 -0
- package/dist/embedding/CredentialReader.js.map +1 -0
- package/dist/embedding/CredentialReader.jsonld +22 -0
- package/dist/embedding/CredentialReaderImpl.d.ts +6 -0
- package/dist/embedding/CredentialReaderImpl.js +55 -0
- package/dist/embedding/CredentialReaderImpl.js.map +1 -0
- package/dist/embedding/CredentialReaderImpl.jsonld +31 -0
- package/dist/embedding/EmbeddingService.d.ts +8 -0
- package/dist/embedding/EmbeddingService.js +10 -0
- package/dist/embedding/EmbeddingService.js.map +1 -0
- package/dist/embedding/EmbeddingService.jsonld +26 -0
- package/dist/embedding/EmbeddingServiceImpl.d.ts +11 -0
- package/dist/embedding/EmbeddingServiceImpl.js +73 -0
- package/dist/embedding/EmbeddingServiceImpl.js.map +1 -0
- package/dist/embedding/EmbeddingServiceImpl.jsonld +53 -0
- package/dist/embedding/ProviderRegistry.d.ts +26 -0
- package/dist/embedding/ProviderRegistry.js +10 -0
- package/dist/embedding/ProviderRegistry.js.map +1 -0
- package/dist/embedding/ProviderRegistry.jsonld +30 -0
- package/dist/embedding/ProviderRegistryImpl.d.ts +14 -0
- package/dist/embedding/ProviderRegistryImpl.js +112 -0
- package/dist/embedding/ProviderRegistryImpl.js.map +1 -0
- package/dist/embedding/ProviderRegistryImpl.jsonld +40 -0
- package/dist/embedding/index.d.ts +5 -0
- package/dist/embedding/index.js +22 -0
- package/dist/embedding/index.js.map +1 -0
- package/dist/embedding/schema/index.d.ts +1 -0
- package/dist/embedding/schema/index.js +18 -0
- package/dist/embedding/schema/index.js.map +1 -0
- package/dist/embedding/schema/tables.d.ts +70 -0
- package/dist/embedding/schema/tables.js +102 -0
- package/dist/embedding/schema/tables.js.map +1 -0
- package/dist/embedding/types.d.ts +12 -0
- package/dist/embedding/types.js +6 -0
- package/dist/embedding/types.js.map +1 -0
- package/dist/gateway/port-finder.d.ts +4 -0
- package/dist/gateway/port-finder.js +15 -0
- package/dist/gateway/port-finder.js.map +1 -0
- package/dist/gateway/proxy.d.ts +22 -0
- package/dist/gateway/proxy.js +149 -0
- package/dist/gateway/proxy.js.map +1 -0
- package/dist/gateway/supervisor.d.ts +2 -0
- package/dist/gateway/supervisor.js +7 -0
- package/dist/gateway/supervisor.js.map +1 -0
- package/dist/gateway/types.d.ts +1 -0
- package/dist/gateway/types.js +3 -0
- package/dist/gateway/types.js.map +1 -0
- package/dist/http/AppStaticAssetHandler.d.ts +8 -0
- package/dist/http/AppStaticAssetHandler.js +27 -0
- package/dist/http/AppStaticAssetHandler.js.map +1 -0
- package/dist/http/AppStaticAssetHandler.jsonld +26 -0
- package/dist/http/ClusterIngressRouter.d.ts +93 -0
- package/dist/http/ClusterIngressRouter.js +355 -0
- package/dist/http/ClusterIngressRouter.js.map +1 -0
- package/dist/http/ClusterIngressRouter.jsonld +227 -0
- package/dist/http/ClusterWebSocketConfigurator.d.ts +59 -0
- package/dist/http/ClusterWebSocketConfigurator.js +226 -0
- package/dist/http/ClusterWebSocketConfigurator.js.map +1 -0
- package/dist/http/ClusterWebSocketConfigurator.jsonld +145 -0
- package/dist/http/EdgeNodeDirectDebugHttpHandler.d.ts +25 -0
- package/dist/http/EdgeNodeDirectDebugHttpHandler.js +126 -0
- package/dist/http/EdgeNodeDirectDebugHttpHandler.js.map +1 -0
- package/dist/http/EdgeNodeDirectDebugHttpHandler.jsonld +151 -0
- package/dist/http/EdgeNodeProxyHttpHandler.d.ts +28 -0
- package/dist/http/EdgeNodeProxyHttpHandler.js +190 -0
- package/dist/http/EdgeNodeProxyHttpHandler.js.map +1 -0
- package/dist/http/EdgeNodeProxyHttpHandler.jsonld +162 -0
- package/dist/http/PodRoutingHttpHandler.d.ts +64 -0
- package/dist/http/PodRoutingHttpHandler.js +233 -0
- package/dist/http/PodRoutingHttpHandler.js.map +1 -0
- package/dist/http/PodRoutingHttpHandler.jsonld +171 -0
- package/dist/http/RequestIdHttpHandler.d.ts +15 -0
- package/dist/http/RequestIdHttpHandler.js +59 -0
- package/dist/http/RequestIdHttpHandler.js.map +1 -0
- package/dist/http/RouterHttpHandler.d.ts +21 -0
- package/dist/http/RouterHttpHandler.js +49 -0
- package/dist/http/RouterHttpHandler.js.map +1 -0
- package/dist/http/RouterHttpHandler.jsonld +80 -0
- package/dist/http/RouterHttpRoute.d.ts +6 -0
- package/dist/http/RouterHttpRoute.js +11 -0
- package/dist/http/RouterHttpRoute.js.map +1 -0
- package/dist/http/RouterHttpRoute.jsonld +48 -0
- package/dist/http/SignalInterceptHttpHandler.d.ts +24 -0
- package/dist/http/SignalInterceptHttpHandler.js +47 -0
- package/dist/http/SignalInterceptHttpHandler.js.map +1 -0
- package/dist/http/SignalInterceptHttpHandler.jsonld +103 -0
- package/dist/http/SubgraphSparqlHttpHandler.d.ts +70 -0
- package/dist/http/SubgraphSparqlHttpHandler.js +640 -0
- package/dist/http/SubgraphSparqlHttpHandler.js.map +1 -0
- package/dist/http/SubgraphSparqlHttpHandler.jsonld +363 -0
- package/dist/http/TracingHandler.d.ts +19 -0
- package/dist/http/TracingHandler.js +60 -0
- package/dist/http/TracingHandler.js.map +1 -0
- package/dist/http/TracingHandler.jsonld +37 -0
- package/dist/http/admin/EdgeNodeAdminHttpHandler.d.ts +45 -0
- package/dist/http/admin/EdgeNodeAdminHttpHandler.js +292 -0
- package/dist/http/admin/EdgeNodeAdminHttpHandler.js.map +1 -0
- package/dist/http/admin/EdgeNodeCertificateHttpHandler.d.ts +33 -0
- package/dist/http/admin/EdgeNodeCertificateHttpHandler.js +172 -0
- package/dist/http/admin/EdgeNodeCertificateHttpHandler.js.map +1 -0
- package/dist/http/admin/EdgeNodeCertificateHttpHandler.jsonld +182 -0
- package/dist/http/admin/EdgeNodeSignalHttpHandler.d.ts +71 -0
- package/dist/http/admin/EdgeNodeSignalHttpHandler.js +674 -0
- package/dist/http/admin/EdgeNodeSignalHttpHandler.js.map +1 -0
- package/dist/http/admin/EdgeNodeSignalHttpHandler.jsonld +406 -0
- package/dist/http/cluster/PodMigrationHttpHandler.d.ts +52 -0
- package/dist/http/cluster/PodMigrationHttpHandler.js +208 -0
- package/dist/http/cluster/PodMigrationHttpHandler.js.map +1 -0
- package/dist/http/cluster/PodMigrationHttpHandler.jsonld +169 -0
- package/dist/http/quota/QuotaAdminHttpHandler.d.ts +34 -0
- package/dist/http/quota/QuotaAdminHttpHandler.js +241 -0
- package/dist/http/quota/QuotaAdminHttpHandler.js.map +1 -0
- package/dist/http/quota/QuotaAdminHttpHandler.jsonld +171 -0
- package/dist/http/search/SearchHttpHandler.d.ts +59 -0
- package/dist/http/search/SearchHttpHandler.js +312 -0
- package/dist/http/search/SearchHttpHandler.js.map +1 -0
- package/dist/http/search/index.d.ts +1 -0
- package/dist/http/search/index.js +18 -0
- package/dist/http/search/index.js.map +1 -0
- package/dist/http/terminal/TerminalHttpHandler.d.ts +45 -0
- package/dist/http/terminal/TerminalHttpHandler.js +306 -0
- package/dist/http/terminal/TerminalHttpHandler.js.map +1 -0
- package/dist/http/terminal/TerminalHttpHandler.jsonld +232 -0
- package/dist/http/terminal/index.d.ts +1 -0
- package/dist/http/terminal/index.js +18 -0
- package/dist/http/terminal/index.js.map +1 -0
- package/dist/http/vector/VectorHttpHandler.d.ts +42 -0
- package/dist/http/vector/VectorHttpHandler.js +301 -0
- package/dist/http/vector/VectorHttpHandler.js.map +1 -0
- package/dist/http/vector/VectorHttpHandler.jsonld +157 -0
- package/dist/http/vector/index.d.ts +1 -0
- package/dist/http/vector/index.js +18 -0
- package/dist/http/vector/index.js.map +1 -0
- package/dist/ice/IceServerProvider.d.ts +85 -0
- package/dist/ice/IceServerProvider.js +122 -0
- package/dist/ice/IceServerProvider.js.map +1 -0
- package/dist/ice/index.d.ts +8 -0
- package/dist/ice/index.js +25 -0
- package/dist/ice/index.js.map +1 -0
- package/dist/identity/CenterNodeRegistrationService.d.ts +102 -0
- package/dist/identity/CenterNodeRegistrationService.js +266 -0
- package/dist/identity/CenterNodeRegistrationService.js.map +1 -0
- package/dist/identity/CenterNodeRegistrationService.jsonld +251 -0
- package/dist/identity/ReactAppViewHandler.d.ts +31 -0
- package/dist/identity/ReactAppViewHandler.js +79 -0
- package/dist/identity/ReactAppViewHandler.js.map +1 -0
- package/dist/identity/ReactAppViewHandler.jsonld +99 -0
- package/dist/identity/drizzle/AccountRepository.d.ts +31 -0
- package/dist/identity/drizzle/AccountRepository.js +130 -0
- package/dist/identity/drizzle/AccountRepository.js.map +1 -0
- package/dist/identity/drizzle/AccountRoleRepository.d.ts +23 -0
- package/dist/identity/drizzle/AccountRoleRepository.js +233 -0
- package/dist/identity/drizzle/AccountRoleRepository.js.map +1 -0
- package/dist/identity/drizzle/DdnsRepository.d.ts +87 -0
- package/dist/identity/drizzle/DdnsRepository.js +284 -0
- package/dist/identity/drizzle/DdnsRepository.js.map +1 -0
- package/dist/identity/drizzle/DrizzleIndexedStorage.d.ts +26 -0
- package/dist/identity/drizzle/DrizzleIndexedStorage.js +159 -0
- package/dist/identity/drizzle/DrizzleIndexedStorage.js.map +1 -0
- package/dist/identity/drizzle/DrizzleIndexedStorage.jsonld +130 -0
- package/dist/identity/drizzle/EdgeNodeRepository.d.ts +155 -0
- package/dist/identity/drizzle/EdgeNodeRepository.js +555 -0
- package/dist/identity/drizzle/EdgeNodeRepository.js.map +1 -0
- package/dist/identity/drizzle/PodLookupRepository.d.ts +59 -0
- package/dist/identity/drizzle/PodLookupRepository.js +153 -0
- package/dist/identity/drizzle/PodLookupRepository.js.map +1 -0
- package/dist/identity/drizzle/WebIdProfileRepository.d.ts +58 -0
- package/dist/identity/drizzle/WebIdProfileRepository.js +157 -0
- package/dist/identity/drizzle/WebIdProfileRepository.js.map +1 -0
- package/dist/identity/drizzle/db.d.ts +60 -0
- package/dist/identity/drizzle/db.js +269 -0
- package/dist/identity/drizzle/db.js.map +1 -0
- package/dist/identity/drizzle/schema.d.ts +1 -0
- package/dist/identity/drizzle/schema.js +20 -0
- package/dist/identity/drizzle/schema.js.map +1 -0
- package/dist/identity/drizzle/schema.pg.d.ts +20 -0
- package/dist/identity/drizzle/schema.pg.js +103 -0
- package/dist/identity/drizzle/schema.pg.js.map +1 -0
- package/dist/identity/drizzle/schema.sqlite.d.ts +872 -0
- package/dist/identity/drizzle/schema.sqlite.js +100 -0
- package/dist/identity/drizzle/schema.sqlite.js.map +1 -0
- package/dist/identity/oidc/AutoDetectIdentityProviderHandler.d.ts +43 -0
- package/dist/identity/oidc/AutoDetectIdentityProviderHandler.js +92 -0
- package/dist/identity/oidc/AutoDetectIdentityProviderHandler.js.map +1 -0
- package/dist/identity/oidc/AutoDetectIdentityProviderHandler.jsonld +122 -0
- package/dist/identity/oidc/AutoDetectOidcHandler.d.ts +55 -0
- package/dist/identity/oidc/AutoDetectOidcHandler.js +137 -0
- package/dist/identity/oidc/AutoDetectOidcHandler.js.map +1 -0
- package/dist/identity/oidc/AutoDetectOidcHandler.jsonld +138 -0
- package/dist/identity/oidc/DisabledIdentityProviderHandler.d.ts +51 -0
- package/dist/identity/oidc/DisabledIdentityProviderHandler.js +104 -0
- package/dist/identity/oidc/DisabledIdentityProviderHandler.js.map +1 -0
- package/dist/identity/oidc/DisabledIdentityProviderHandler.jsonld +111 -0
- package/dist/identity/oidc/DisabledOidcHandler.d.ts +55 -0
- package/dist/identity/oidc/DisabledOidcHandler.js +132 -0
- package/dist/identity/oidc/DisabledOidcHandler.js.map +1 -0
- package/dist/identity/oidc/DisabledOidcHandler.jsonld +157 -0
- package/dist/index.d.ts +80 -0
- package/dist/index.js +155 -0
- package/dist/index.js.map +1 -0
- package/dist/legacy/DrizzleClientCredentialsStore.d.ts +51 -0
- package/dist/legacy/DrizzleClientCredentialsStore.js +142 -0
- package/dist/legacy/DrizzleClientCredentialsStore.js.map +1 -0
- package/dist/legacy/DrizzleIndexedStorage.d.ts +26 -0
- package/dist/legacy/DrizzleIndexedStorage.js +159 -0
- package/dist/legacy/DrizzleIndexedStorage.js.map +1 -0
- package/dist/legacy/DrizzleQuotaService.d.ts +16 -0
- package/dist/legacy/DrizzleQuotaService.js +37 -0
- package/dist/legacy/DrizzleQuotaService.js.map +1 -0
- package/dist/libs/backends/index.d.ts +6 -0
- package/dist/libs/backends/index.js +31 -0
- package/dist/libs/backends/index.js.map +1 -0
- package/dist/libs/backends/sqlup.d.ts +44 -0
- package/dist/libs/backends/sqlup.js +437 -0
- package/dist/libs/backends/sqlup.js.map +1 -0
- package/dist/logging/ConfigurableLoggerFactory.d.ts +24 -0
- package/dist/logging/ConfigurableLoggerFactory.js +77 -0
- package/dist/logging/ConfigurableLoggerFactory.js.map +1 -0
- package/dist/logging/ConfigurableLoggerFactory.jsonld +169 -0
- package/dist/logging/LogContext.d.ts +5 -0
- package/dist/logging/LogContext.js +6 -0
- package/dist/logging/LogContext.js.map +1 -0
- package/dist/main.d.ts +2 -0
- package/dist/main.js +148 -0
- package/dist/main.js.map +1 -0
- package/dist/network/LocalNetworkDetector.d.ts +65 -0
- package/dist/network/LocalNetworkDetector.js +185 -0
- package/dist/network/LocalNetworkDetector.js.map +1 -0
- package/dist/network/index.d.ts +4 -0
- package/dist/network/index.js +21 -0
- package/dist/network/index.js.map +1 -0
- package/dist/pods/ReservedSuffixIdentifierGenerator.d.ts +13 -0
- package/dist/pods/ReservedSuffixIdentifierGenerator.js +26 -0
- package/dist/pods/ReservedSuffixIdentifierGenerator.js.map +1 -0
- package/dist/pods/ReservedSuffixIdentifierGenerator.jsonld +75 -0
- package/dist/quota/DefaultQuotaService.d.ts +16 -0
- package/dist/quota/DefaultQuotaService.js +37 -0
- package/dist/quota/DefaultQuotaService.js.map +1 -0
- package/dist/quota/DefaultQuotaService.jsonld +85 -0
- package/dist/quota/DrizzleQuotaService.d.ts +16 -0
- package/dist/quota/DrizzleQuotaService.js +37 -0
- package/dist/quota/DrizzleQuotaService.js.map +1 -0
- package/dist/quota/DrizzleQuotaService.jsonld +87 -0
- package/dist/quota/NoopQuotaService.d.ts +7 -0
- package/dist/quota/NoopQuotaService.js +15 -0
- package/dist/quota/NoopQuotaService.js.map +1 -0
- package/dist/quota/NoopQuotaService.jsonld +36 -0
- package/dist/quota/QuotaService.d.ts +6 -0
- package/dist/quota/QuotaService.js +3 -0
- package/dist/quota/QuotaService.js.map +1 -0
- package/dist/quota/QuotaService.jsonld +33 -0
- package/dist/sdk/SignalingClientAdapter.d.ts +38 -0
- package/dist/sdk/SignalingClientAdapter.js +99 -0
- package/dist/sdk/SignalingClientAdapter.js.map +1 -0
- package/dist/sdk/createFetch.d.ts +23 -0
- package/dist/sdk/createFetch.js +258 -0
- package/dist/sdk/createFetch.js.map +1 -0
- package/dist/sdk/index.d.ts +29 -0
- package/dist/sdk/index.js +34 -0
- package/dist/sdk/index.js.map +1 -0
- package/dist/sdk/xpodFetch.d.ts +112 -0
- package/dist/sdk/xpodFetch.js +251 -0
- package/dist/sdk/xpodFetch.js.map +1 -0
- package/dist/service/EdgeNodeCertificateService.d.ts +45 -0
- package/dist/service/EdgeNodeCertificateService.js +164 -0
- package/dist/service/EdgeNodeCertificateService.js.map +1 -0
- package/dist/service/EdgeNodeCertificateService.jsonld +216 -0
- package/dist/service/EdgeNodeHeartbeatService.d.ts +68 -0
- package/dist/service/EdgeNodeHeartbeatService.js +262 -0
- package/dist/service/EdgeNodeHeartbeatService.js.map +1 -0
- package/dist/service/PodMigrationService.d.ts +43 -0
- package/dist/service/PodMigrationService.js +72 -0
- package/dist/service/PodMigrationService.js.map +1 -0
- package/dist/service/PodMigrationService.jsonld +76 -0
- package/dist/signaling/SignalingClient.d.ts +142 -0
- package/dist/signaling/SignalingClient.js +305 -0
- package/dist/signaling/SignalingClient.js.map +1 -0
- package/dist/signaling/SignalingService.d.ts +104 -0
- package/dist/signaling/SignalingService.js +440 -0
- package/dist/signaling/SignalingService.js.map +1 -0
- package/dist/signaling/index.d.ts +11 -0
- package/dist/signaling/index.js +28 -0
- package/dist/signaling/index.js.map +1 -0
- package/dist/signaling/types.d.ts +237 -0
- package/dist/signaling/types.js +18 -0
- package/dist/signaling/types.js.map +1 -0
- package/dist/storage/DrizzleCompat.d.ts +15 -0
- package/dist/storage/DrizzleCompat.js +60 -0
- package/dist/storage/DrizzleCompat.js.map +1 -0
- package/dist/storage/LockingResourceStore.d.ts +8 -0
- package/dist/storage/LockingResourceStore.js +68 -0
- package/dist/storage/LockingResourceStore.js.map +1 -0
- package/dist/storage/MigratableDataAccessor.d.ts +63 -0
- package/dist/storage/MigratableDataAccessor.js +11 -0
- package/dist/storage/MigratableDataAccessor.js.map +1 -0
- package/dist/storage/MigratableDataAccessor.jsonld +60 -0
- package/dist/storage/ObservableResourceStore.d.ts +89 -0
- package/dist/storage/ObservableResourceStore.js +125 -0
- package/dist/storage/ObservableResourceStore.js.map +1 -0
- package/dist/storage/RepresentationPartialConvertingStore.d.ts +22 -0
- package/dist/storage/RepresentationPartialConvertingStore.js +94 -0
- package/dist/storage/RepresentationPartialConvertingStore.js.map +1 -0
- package/dist/storage/RepresentationPartialConvertingStore.jsonld +332 -0
- package/dist/storage/SparqlUpdateResourceStore.d.ts +30 -0
- package/dist/storage/SparqlUpdateResourceStore.js +292 -0
- package/dist/storage/SparqlUpdateResourceStore.js.map +1 -0
- package/dist/storage/SparqlUpdateResourceStore.jsonld +112 -0
- package/dist/storage/SqliteCompat.d.ts +60 -0
- package/dist/storage/SqliteCompat.js +158 -0
- package/dist/storage/SqliteCompat.js.map +1 -0
- package/dist/storage/accessors/MinioDataAccessor.d.ts +127 -0
- package/dist/storage/accessors/MinioDataAccessor.js +249 -0
- package/dist/storage/accessors/MinioDataAccessor.js.map +1 -0
- package/dist/storage/accessors/MinioDataAccessor.jsonld +138 -0
- package/dist/storage/accessors/MixDataAccessor.d.ts +43 -0
- package/dist/storage/accessors/MixDataAccessor.js +130 -0
- package/dist/storage/accessors/MixDataAccessor.js.map +1 -0
- package/dist/storage/accessors/MixDataAccessor.jsonld +101 -0
- package/dist/storage/accessors/QuadstoreSparqlDataAccessor.d.ts +146 -0
- package/dist/storage/accessors/QuadstoreSparqlDataAccessor.js +415 -0
- package/dist/storage/accessors/QuadstoreSparqlDataAccessor.js.map +1 -0
- package/dist/storage/accessors/QuadstoreSparqlDataAccessor.jsonld +180 -0
- package/dist/storage/accessors/QuintStoreSparqlDataAccessor.d.ts +95 -0
- package/dist/storage/accessors/QuintStoreSparqlDataAccessor.js +376 -0
- package/dist/storage/accessors/QuintStoreSparqlDataAccessor.js.map +1 -0
- package/dist/storage/accessors/QuintStoreSparqlDataAccessor.jsonld +168 -0
- package/dist/storage/accessors/TieredMinioDataAccessor.d.ts +150 -0
- package/dist/storage/accessors/TieredMinioDataAccessor.js +582 -0
- package/dist/storage/accessors/TieredMinioDataAccessor.js.map +1 -0
- package/dist/storage/accessors/TieredMinioDataAccessor.jsonld +333 -0
- package/dist/storage/database/PostgresPoolManager.d.ts +56 -0
- package/dist/storage/database/PostgresPoolManager.js +117 -0
- package/dist/storage/database/PostgresPoolManager.js.map +1 -0
- package/dist/storage/keyvalue/PostgresKeyValueStorage.d.ts +34 -0
- package/dist/storage/keyvalue/PostgresKeyValueStorage.js +146 -0
- package/dist/storage/keyvalue/PostgresKeyValueStorage.js.map +1 -0
- package/dist/storage/keyvalue/PostgresKeyValueStorage.jsonld +192 -0
- package/dist/storage/keyvalue/RedisKeyValueStorage.d.ts +30 -0
- package/dist/storage/keyvalue/RedisKeyValueStorage.js +133 -0
- package/dist/storage/keyvalue/RedisKeyValueStorage.js.map +1 -0
- package/dist/storage/keyvalue/RedisKeyValueStorage.jsonld +237 -0
- package/dist/storage/keyvalue/SqliteKeyValueStorage.d.ts +30 -0
- package/dist/storage/keyvalue/SqliteKeyValueStorage.js +164 -0
- package/dist/storage/keyvalue/SqliteKeyValueStorage.js.map +1 -0
- package/dist/storage/keyvalue/SqliteKeyValueStorage.jsonld +167 -0
- package/dist/storage/quint/BaseQuintStore.d.ts +80 -0
- package/dist/storage/quint/BaseQuintStore.js +535 -0
- package/dist/storage/quint/BaseQuintStore.js.map +1 -0
- package/dist/storage/quint/BaseQuintStore.jsonld +175 -0
- package/dist/storage/quint/PgQuintStore.d.ts +61 -0
- package/dist/storage/quint/PgQuintStore.drizzle.d.ts +45 -0
- package/dist/storage/quint/PgQuintStore.drizzle.js +327 -0
- package/dist/storage/quint/PgQuintStore.drizzle.js.map +1 -0
- package/dist/storage/quint/PgQuintStore.js +275 -0
- package/dist/storage/quint/PgQuintStore.js.map +1 -0
- package/dist/storage/quint/PgQuintStore.jsonld +258 -0
- package/dist/storage/quint/SqliteQuintStore.d.ts +55 -0
- package/dist/storage/quint/SqliteQuintStore.js +630 -0
- package/dist/storage/quint/SqliteQuintStore.js.map +1 -0
- package/dist/storage/quint/SqliteQuintStore.jsonld +157 -0
- package/dist/storage/quint/index.d.ts +11 -0
- package/dist/storage/quint/index.js +30 -0
- package/dist/storage/quint/index.js.map +1 -0
- package/dist/storage/quint/schema.d.ts +82 -0
- package/dist/storage/quint/schema.js +33 -0
- package/dist/storage/quint/schema.js.map +1 -0
- package/dist/storage/quint/serialization.d.ts +56 -0
- package/dist/storage/quint/serialization.js +198 -0
- package/dist/storage/quint/serialization.js.map +1 -0
- package/dist/storage/quint/types.d.ts +152 -0
- package/dist/storage/quint/types.js +27 -0
- package/dist/storage/quint/types.js.map +1 -0
- package/dist/storage/quint/types.jsonld +78 -0
- package/dist/storage/quota/PerAccountQuotaStrategy.d.ts +19 -0
- package/dist/storage/quota/PerAccountQuotaStrategy.js +63 -0
- package/dist/storage/quota/PerAccountQuotaStrategy.js.map +1 -0
- package/dist/storage/quota/PerAccountQuotaStrategy.jsonld +113 -0
- package/dist/storage/quota/UsageRepository.d.ts +46 -0
- package/dist/storage/quota/UsageRepository.js +278 -0
- package/dist/storage/quota/UsageRepository.js.map +1 -0
- package/dist/storage/quota/UsageTrackingStore.d.ts +37 -0
- package/dist/storage/quota/UsageTrackingStore.js +355 -0
- package/dist/storage/quota/UsageTrackingStore.js.map +1 -0
- package/dist/storage/quota/UsageTrackingStore.jsonld +193 -0
- package/dist/storage/sparql/AlgebraUtils.d.ts +48 -0
- package/dist/storage/sparql/AlgebraUtils.js +118 -0
- package/dist/storage/sparql/AlgebraUtils.js.map +1 -0
- package/dist/storage/sparql/ComunicaOptimizedEngine.d.ts +59 -0
- package/dist/storage/sparql/ComunicaOptimizedEngine.js +254 -0
- package/dist/storage/sparql/ComunicaOptimizedEngine.js.map +1 -0
- package/dist/storage/sparql/ComunicaQuintEngine.d.ts +134 -0
- package/dist/storage/sparql/ComunicaQuintEngine.js +727 -0
- package/dist/storage/sparql/ComunicaQuintEngine.js.map +1 -0
- package/dist/storage/sparql/ExpressionEvaluator.d.ts +54 -0
- package/dist/storage/sparql/ExpressionEvaluator.js +340 -0
- package/dist/storage/sparql/ExpressionEvaluator.js.map +1 -0
- package/dist/storage/sparql/FilterPushdownExtractor.d.ts +74 -0
- package/dist/storage/sparql/FilterPushdownExtractor.js +409 -0
- package/dist/storage/sparql/FilterPushdownExtractor.js.map +1 -0
- package/dist/storage/sparql/OptimizedQuadstoreEngine.d.ts +65 -0
- package/dist/storage/sparql/OptimizedQuadstoreEngine.js +327 -0
- package/dist/storage/sparql/OptimizedQuadstoreEngine.js.map +1 -0
- package/dist/storage/sparql/OptimizedQuadstoreSource.d.ts +46 -0
- package/dist/storage/sparql/OptimizedQuadstoreSource.js +118 -0
- package/dist/storage/sparql/OptimizedQuadstoreSource.js.map +1 -0
- package/dist/storage/sparql/PatternBuilder.d.ts +41 -0
- package/dist/storage/sparql/PatternBuilder.js +118 -0
- package/dist/storage/sparql/PatternBuilder.js.map +1 -0
- package/dist/storage/sparql/QueryOptimizer.d.ts +125 -0
- package/dist/storage/sparql/QueryOptimizer.js +363 -0
- package/dist/storage/sparql/QueryOptimizer.js.map +1 -0
- package/dist/storage/sparql/QuintEngine.d.ts +92 -0
- package/dist/storage/sparql/QuintEngine.js +150 -0
- package/dist/storage/sparql/QuintEngine.js.map +1 -0
- package/dist/storage/sparql/QuintQuerySource.d.ts +227 -0
- package/dist/storage/sparql/QuintQuerySource.js +918 -0
- package/dist/storage/sparql/QuintQuerySource.js.map +1 -0
- package/dist/storage/sparql/SimpleSparqlExecutor.d.ts +40 -0
- package/dist/storage/sparql/SimpleSparqlExecutor.js +131 -0
- package/dist/storage/sparql/SimpleSparqlExecutor.js.map +1 -0
- package/dist/storage/sparql/SubgraphQueryEngine.d.ts +74 -0
- package/dist/storage/sparql/SubgraphQueryEngine.js +248 -0
- package/dist/storage/sparql/SubgraphQueryEngine.js.map +1 -0
- package/dist/storage/sparql/SubgraphQueryEngine.jsonld +250 -0
- package/dist/storage/vector/PostgresVectorStore.d.ts +46 -0
- package/dist/storage/vector/PostgresVectorStore.js +291 -0
- package/dist/storage/vector/PostgresVectorStore.js.map +1 -0
- package/dist/storage/vector/PostgresVectorStore.jsonld +142 -0
- package/dist/storage/vector/SqliteVectorStore.d.ts +44 -0
- package/dist/storage/vector/SqliteVectorStore.js +282 -0
- package/dist/storage/vector/SqliteVectorStore.js.map +1 -0
- package/dist/storage/vector/SqliteVectorStore.jsonld +137 -0
- package/dist/storage/vector/VectorIndexingListener.d.ts +114 -0
- package/dist/storage/vector/VectorIndexingListener.js +351 -0
- package/dist/storage/vector/VectorIndexingListener.js.map +1 -0
- package/dist/storage/vector/VectorStore.d.ts +42 -0
- package/dist/storage/vector/VectorStore.js +50 -0
- package/dist/storage/vector/VectorStore.js.map +1 -0
- package/dist/storage/vector/VectorStore.jsonld +87 -0
- package/dist/storage/vector/VectorStoreInit.d.ts +28 -0
- package/dist/storage/vector/VectorStoreInit.js +104 -0
- package/dist/storage/vector/VectorStoreInit.js.map +1 -0
- package/dist/storage/vector/index.d.ts +5 -0
- package/dist/storage/vector/index.js +22 -0
- package/dist/storage/vector/index.js.map +1 -0
- package/dist/storage/vector/types.d.ts +39 -0
- package/dist/storage/vector/types.js +8 -0
- package/dist/storage/vector/types.js.map +1 -0
- package/dist/subdomain/SubdomainClient.d.ts +156 -0
- package/dist/subdomain/SubdomainClient.js +220 -0
- package/dist/subdomain/SubdomainClient.js.map +1 -0
- package/dist/subdomain/SubdomainService.d.ts +114 -0
- package/dist/subdomain/SubdomainService.js +212 -0
- package/dist/subdomain/SubdomainService.js.map +1 -0
- package/dist/subdomain/SubdomainService.jsonld +261 -0
- package/dist/subdomain/index.d.ts +2 -0
- package/dist/subdomain/index.js +9 -0
- package/dist/subdomain/index.js.map +1 -0
- package/dist/supervisor/Supervisor.d.ts +20 -0
- package/dist/supervisor/Supervisor.js +174 -0
- package/dist/supervisor/Supervisor.js.map +1 -0
- package/dist/supervisor/index.d.ts +2 -0
- package/dist/supervisor/index.js +6 -0
- package/dist/supervisor/index.js.map +1 -0
- package/dist/supervisor/types.d.ts +19 -0
- package/dist/supervisor/types.js +3 -0
- package/dist/supervisor/types.js.map +1 -0
- package/dist/task/DrizzleTaskQueue.d.ts +60 -0
- package/dist/task/DrizzleTaskQueue.js +171 -0
- package/dist/task/DrizzleTaskQueue.js.map +1 -0
- package/dist/task/TaskExecutor.d.ts +82 -0
- package/dist/task/TaskExecutor.js +198 -0
- package/dist/task/TaskExecutor.js.map +1 -0
- package/dist/task/index.d.ts +10 -0
- package/dist/task/index.js +20 -0
- package/dist/task/index.js.map +1 -0
- package/dist/task/schema.d.ts +53 -0
- package/dist/task/schema.js +71 -0
- package/dist/task/schema.js.map +1 -0
- package/dist/task/types.d.ts +186 -0
- package/dist/task/types.js +12 -0
- package/dist/task/types.js.map +1 -0
- package/dist/terminal/AclPermissionService.d.ts +28 -0
- package/dist/terminal/AclPermissionService.js +141 -0
- package/dist/terminal/AclPermissionService.js.map +1 -0
- package/dist/terminal/BubblewrapSandbox.d.ts +51 -0
- package/dist/terminal/BubblewrapSandbox.js +147 -0
- package/dist/terminal/BubblewrapSandbox.js.map +1 -0
- package/dist/terminal/TerminalSession.d.ts +33 -0
- package/dist/terminal/TerminalSession.js +164 -0
- package/dist/terminal/TerminalSession.js.map +1 -0
- package/dist/terminal/TerminalSessionManager.d.ts +69 -0
- package/dist/terminal/TerminalSessionManager.js +196 -0
- package/dist/terminal/TerminalSessionManager.js.map +1 -0
- package/dist/terminal/index.d.ts +5 -0
- package/dist/terminal/index.js +22 -0
- package/dist/terminal/index.js.map +1 -0
- package/dist/terminal/sandbox/BubblewrapSandbox.d.ts +8 -0
- package/dist/terminal/sandbox/BubblewrapSandbox.js +105 -0
- package/dist/terminal/sandbox/BubblewrapSandbox.js.map +1 -0
- package/dist/terminal/sandbox/MacOSSandbox.d.ts +19 -0
- package/dist/terminal/sandbox/MacOSSandbox.js +120 -0
- package/dist/terminal/sandbox/MacOSSandbox.js.map +1 -0
- package/dist/terminal/sandbox/index.d.ts +29 -0
- package/dist/terminal/sandbox/index.js +113 -0
- package/dist/terminal/sandbox/index.js.map +1 -0
- package/dist/terminal/sandbox/types.d.ts +38 -0
- package/dist/terminal/sandbox/types.js +3 -0
- package/dist/terminal/sandbox/types.js.map +1 -0
- package/dist/terminal/types.d.ts +80 -0
- package/dist/terminal/types.js +16 -0
- package/dist/terminal/types.js.map +1 -0
- package/dist/tunnel/CloudflareTunnelProvider.d.ts +120 -0
- package/dist/tunnel/CloudflareTunnelProvider.js +376 -0
- package/dist/tunnel/CloudflareTunnelProvider.js.map +1 -0
- package/dist/tunnel/CloudflareTunnelProvider.jsonld +204 -0
- package/dist/tunnel/LocalTunnelProvider.d.ts +85 -0
- package/dist/tunnel/LocalTunnelProvider.js +295 -0
- package/dist/tunnel/LocalTunnelProvider.js.map +1 -0
- package/dist/tunnel/LocalTunnelProvider.jsonld +142 -0
- package/dist/tunnel/SakuraFrpTunnelProvider.d.ts +59 -0
- package/dist/tunnel/SakuraFrpTunnelProvider.js +207 -0
- package/dist/tunnel/SakuraFrpTunnelProvider.js.map +1 -0
- package/dist/tunnel/TunnelProvider.d.ts +91 -0
- package/dist/tunnel/TunnelProvider.js +10 -0
- package/dist/tunnel/TunnelProvider.js.map +1 -0
- package/dist/tunnel/TunnelProvider.jsonld +144 -0
- package/dist/tunnel/index.d.ts +3 -0
- package/dist/tunnel/index.js +8 -0
- package/dist/tunnel/index.js.map +1 -0
- package/dist/util/LockContext.d.ts +3 -0
- package/dist/util/LockContext.js +6 -0
- package/dist/util/LockContext.js.map +1 -0
- package/dist/util/ResourceStoreFetch.d.ts +11 -0
- package/dist/util/ResourceStoreFetch.js +147 -0
- package/dist/util/ResourceStoreFetch.js.map +1 -0
- package/dist/util/database/DatabaseMaintenance.d.ts +23 -0
- package/dist/util/database/DatabaseMaintenance.js +82 -0
- package/dist/util/database/DatabaseMaintenance.js.map +1 -0
- package/dist/util/identifiers/ClusterIdentifierStrategy.d.ts +23 -0
- package/dist/util/identifiers/ClusterIdentifierStrategy.js +73 -0
- package/dist/util/identifiers/ClusterIdentifierStrategy.js.map +1 -0
- package/dist/util/identifiers/ClusterIdentifierStrategy.jsonld +90 -0
- package/dist/util/identifiers/MultiDomainIdentifierStrategy.d.ts +40 -0
- package/dist/util/identifiers/MultiDomainIdentifierStrategy.js +73 -0
- package/dist/util/identifiers/MultiDomainIdentifierStrategy.js.map +1 -0
- package/dist/util/identifiers/MultiDomainIdentifierStrategy.jsonld +90 -0
- package/dist/util/identifiers/PathBasedPodIdentifierStrategy.d.ts +78 -0
- package/dist/util/identifiers/PathBasedPodIdentifierStrategy.js +182 -0
- package/dist/util/identifiers/PathBasedPodIdentifierStrategy.js.map +1 -0
- package/dist/util/identifiers/PathBasedPodIdentifierStrategy.jsonld +88 -0
- package/dist/util/identifiers/SubdomainPodIdentifierStrategy.d.ts +68 -0
- package/dist/util/identifiers/SubdomainPodIdentifierStrategy.js +149 -0
- package/dist/util/identifiers/SubdomainPodIdentifierStrategy.js.map +1 -0
- package/dist/util/identifiers/SubdomainPodIdentifierStrategy.jsonld +84 -0
- package/dist/util/locking/DebugRedisLocker.d.ts +8 -0
- package/dist/util/locking/DebugRedisLocker.js +33 -0
- package/dist/util/locking/DebugRedisLocker.js.map +1 -0
- package/dist/util/logger.d.ts +13 -0
- package/dist/util/logger.js +36 -0
- package/dist/util/logger.js.map +1 -0
- package/dist/util/stream/BandwidthThrottleTransform.d.ts +8 -0
- package/dist/util/stream/BandwidthThrottleTransform.js +55 -0
- package/dist/util/stream/BandwidthThrottleTransform.js.map +1 -0
- package/dist/vocab/external.d.ts +216 -0
- package/dist/vocab/external.js +276 -0
- package/dist/vocab/external.js.map +1 -0
- package/dist/vocab/index.d.ts +26 -0
- package/dist/vocab/index.js +46 -0
- package/dist/vocab/index.js.map +1 -0
- package/dist/vocab/udfs.d.ts +184 -0
- package/dist/vocab/udfs.js +217 -0
- package/dist/vocab/udfs.js.map +1 -0
- package/dist/webrtc/WebRTCClient.d.ts +109 -0
- package/dist/webrtc/WebRTCClient.js +344 -0
- package/dist/webrtc/WebRTCClient.js.map +1 -0
- package/dist/webrtc/WebRTCPeerManager.d.ts +112 -0
- package/dist/webrtc/WebRTCPeerManager.js +289 -0
- package/dist/webrtc/WebRTCPeerManager.js.map +1 -0
- package/dist/webrtc/WeriftPeerConnectionFactory.d.ts +13 -0
- package/dist/webrtc/WeriftPeerConnectionFactory.js +255 -0
- package/dist/webrtc/WeriftPeerConnectionFactory.js.map +1 -0
- package/dist/webrtc/index.d.ts +13 -0
- package/dist/webrtc/index.js +30 -0
- package/dist/webrtc/index.js.map +1 -0
- package/dist/webrtc/types.d.ts +169 -0
- package/dist/webrtc/types.js +6 -0
- package/dist/webrtc/types.js.map +1 -0
- package/dist/xpod.single.cjs +826 -0
- package/dist/xpod.single.cjs.map +7 -0
- package/package.json +173 -0
- package/static/app/assets/index.css +1 -0
- package/static/app/assets/main.js +11 -0
- package/static/app/auth.html +21 -0
- package/static/app/index.html +14 -0
- package/static/app/vite.svg +1 -0
- package/static/dashboard/assets/dashboard-G96F8267.js +52 -0
- package/static/dashboard/assets/dashboard-PJyGDppf.css +1 -0
- package/static/dashboard/auth.html +21 -0
- package/static/dashboard/index.html +13 -0
- package/static/dashboard/vite.svg +1 -0
- package/static/landing/index.html +165 -0
- package/templates/identity/index.html.ejs +12 -0
- package/templates/identity/login.html.ejs +49 -0
- package/templates/identity/oidc/consent.html.ejs +103 -0
- package/templates/identity/password/forgot.html.ejs +49 -0
- package/templates/identity/password/login.html.ejs +58 -0
- package/templates/identity/password/register.html.ejs +65 -0
- package/templates/main.html.ejs +1 -0
|
@@ -0,0 +1,332 @@
|
|
|
1
|
+
{
|
|
2
|
+
"@context": [
|
|
3
|
+
"https://linkedsoftwaredependencies.org/bundles/npm/@undefineds.co/xpod/^0.0.0/components/context.jsonld",
|
|
4
|
+
"https://linkedsoftwaredependencies.org/bundles/npm/@solid/community-server/^8.0.0/components/context.jsonld"
|
|
5
|
+
],
|
|
6
|
+
"@id": "npmd:@undefineds.co/xpod",
|
|
7
|
+
"components": [
|
|
8
|
+
{
|
|
9
|
+
"@id": "undefineds:dist/storage/RepresentationPartialConvertingStore.jsonld#RepresentationPartialConvertingStore",
|
|
10
|
+
"@type": "Class",
|
|
11
|
+
"requireElement": "RepresentationPartialConvertingStore",
|
|
12
|
+
"extends": [
|
|
13
|
+
{
|
|
14
|
+
"@type": "GenericComponentExtension",
|
|
15
|
+
"component": "css:dist/storage/PassthroughStore.jsonld#PassthroughStore",
|
|
16
|
+
"genericTypeInstances": [
|
|
17
|
+
{
|
|
18
|
+
"@type": "ParameterRangeGenericTypeReference",
|
|
19
|
+
"parameterRangeGenericType": "undefineds:dist/storage/RepresentationPartialConvertingStore.jsonld#RepresentationPartialConvertingStore__generic_T"
|
|
20
|
+
}
|
|
21
|
+
]
|
|
22
|
+
}
|
|
23
|
+
],
|
|
24
|
+
"comment": "A store that converts representations based on their content type.",
|
|
25
|
+
"genericTypeParameters": [
|
|
26
|
+
{
|
|
27
|
+
"@id": "undefineds:dist/storage/RepresentationPartialConvertingStore.jsonld#RepresentationPartialConvertingStore__generic_T",
|
|
28
|
+
"range": "css:dist/storage/ResourceStore.jsonld#ResourceStore",
|
|
29
|
+
"default": "css:dist/storage/ResourceStore.jsonld#ResourceStore"
|
|
30
|
+
}
|
|
31
|
+
],
|
|
32
|
+
"parameters": [
|
|
33
|
+
{
|
|
34
|
+
"@id": "undefineds:dist/storage/RepresentationPartialConvertingStore.jsonld#RepresentationPartialConvertingStore_source",
|
|
35
|
+
"range": {
|
|
36
|
+
"@type": "ParameterRangeGenericTypeReference",
|
|
37
|
+
"parameterRangeGenericType": "undefineds:dist/storage/RepresentationPartialConvertingStore.jsonld#RepresentationPartialConvertingStore__generic_T"
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"@id": "undefineds:dist/storage/RepresentationPartialConvertingStore.jsonld#RepresentationPartialConvertingStore_metadataStrategy",
|
|
42
|
+
"range": "css:dist/http/auxiliary/AuxiliaryStrategy.jsonld#AuxiliaryStrategy"
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"@id": "undefineds:dist/storage/RepresentationPartialConvertingStore.jsonld#RepresentationPartialConvertingStore_options_outConverter",
|
|
46
|
+
"range": {
|
|
47
|
+
"@type": "ParameterRangeUnion",
|
|
48
|
+
"parameterRangeElements": [
|
|
49
|
+
"css:dist/storage/conversion/RepresentationConverter.jsonld#RepresentationConverter",
|
|
50
|
+
{
|
|
51
|
+
"@type": "ParameterRangeUndefined"
|
|
52
|
+
}
|
|
53
|
+
]
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"@id": "undefineds:dist/storage/RepresentationPartialConvertingStore.jsonld#RepresentationPartialConvertingStore_options_inConverter",
|
|
58
|
+
"range": {
|
|
59
|
+
"@type": "ParameterRangeUnion",
|
|
60
|
+
"parameterRangeElements": [
|
|
61
|
+
"css:dist/storage/conversion/RepresentationConverter.jsonld#RepresentationConverter",
|
|
62
|
+
{
|
|
63
|
+
"@type": "ParameterRangeUndefined"
|
|
64
|
+
}
|
|
65
|
+
]
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"@id": "undefineds:dist/storage/RepresentationPartialConvertingStore.jsonld#RepresentationPartialConvertingStore_options_inPreferences_type",
|
|
70
|
+
"range": {
|
|
71
|
+
"@type": "ParameterRangeCollectEntries",
|
|
72
|
+
"parameterRangeCollectEntriesParameters": [
|
|
73
|
+
{
|
|
74
|
+
"@id": "undefineds:dist/storage/RepresentationPartialConvertingStore.jsonld#RepresentationPartialConvertingStore_options_inPreferences_type_key"
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"@id": "undefineds:dist/storage/RepresentationPartialConvertingStore.jsonld#RepresentationPartialConvertingStore_options_inPreferences_type_value",
|
|
78
|
+
"range": "xsd:number"
|
|
79
|
+
}
|
|
80
|
+
]
|
|
81
|
+
}
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
"@id": "undefineds:dist/storage/RepresentationPartialConvertingStore.jsonld#RepresentationPartialConvertingStore_options_inPreferences_charset",
|
|
85
|
+
"range": {
|
|
86
|
+
"@type": "ParameterRangeCollectEntries",
|
|
87
|
+
"parameterRangeCollectEntriesParameters": [
|
|
88
|
+
{
|
|
89
|
+
"@id": "undefineds:dist/storage/RepresentationPartialConvertingStore.jsonld#RepresentationPartialConvertingStore_options_inPreferences_charset_key"
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
"@id": "undefineds:dist/storage/RepresentationPartialConvertingStore.jsonld#RepresentationPartialConvertingStore_options_inPreferences_charset_value",
|
|
93
|
+
"range": "xsd:number"
|
|
94
|
+
}
|
|
95
|
+
]
|
|
96
|
+
}
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
"@id": "undefineds:dist/storage/RepresentationPartialConvertingStore.jsonld#RepresentationPartialConvertingStore_options_inPreferences_datetime",
|
|
100
|
+
"range": {
|
|
101
|
+
"@type": "ParameterRangeCollectEntries",
|
|
102
|
+
"parameterRangeCollectEntriesParameters": [
|
|
103
|
+
{
|
|
104
|
+
"@id": "undefineds:dist/storage/RepresentationPartialConvertingStore.jsonld#RepresentationPartialConvertingStore_options_inPreferences_datetime_key"
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
"@id": "undefineds:dist/storage/RepresentationPartialConvertingStore.jsonld#RepresentationPartialConvertingStore_options_inPreferences_datetime_value",
|
|
108
|
+
"range": "xsd:number"
|
|
109
|
+
}
|
|
110
|
+
]
|
|
111
|
+
}
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
"@id": "undefineds:dist/storage/RepresentationPartialConvertingStore.jsonld#RepresentationPartialConvertingStore_options_inPreferences_encoding",
|
|
115
|
+
"range": {
|
|
116
|
+
"@type": "ParameterRangeCollectEntries",
|
|
117
|
+
"parameterRangeCollectEntriesParameters": [
|
|
118
|
+
{
|
|
119
|
+
"@id": "undefineds:dist/storage/RepresentationPartialConvertingStore.jsonld#RepresentationPartialConvertingStore_options_inPreferences_encoding_key"
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
"@id": "undefineds:dist/storage/RepresentationPartialConvertingStore.jsonld#RepresentationPartialConvertingStore_options_inPreferences_encoding_value",
|
|
123
|
+
"range": "xsd:number"
|
|
124
|
+
}
|
|
125
|
+
]
|
|
126
|
+
}
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
"@id": "undefineds:dist/storage/RepresentationPartialConvertingStore.jsonld#RepresentationPartialConvertingStore_options_inPreferences_language",
|
|
130
|
+
"range": {
|
|
131
|
+
"@type": "ParameterRangeCollectEntries",
|
|
132
|
+
"parameterRangeCollectEntriesParameters": [
|
|
133
|
+
{
|
|
134
|
+
"@id": "undefineds:dist/storage/RepresentationPartialConvertingStore.jsonld#RepresentationPartialConvertingStore_options_inPreferences_language_key"
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
"@id": "undefineds:dist/storage/RepresentationPartialConvertingStore.jsonld#RepresentationPartialConvertingStore_options_inPreferences_language_value",
|
|
138
|
+
"range": "xsd:number"
|
|
139
|
+
}
|
|
140
|
+
]
|
|
141
|
+
}
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
"@id": "undefineds:dist/storage/RepresentationPartialConvertingStore.jsonld#RepresentationPartialConvertingStore_options_inPreferences_range_unit",
|
|
145
|
+
"range": "xsd:string"
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
"@id": "undefineds:dist/storage/RepresentationPartialConvertingStore.jsonld#RepresentationPartialConvertingStore_options_inPreferences_range_parts",
|
|
149
|
+
"range": {
|
|
150
|
+
"@type": "ParameterRangeArray",
|
|
151
|
+
"parameterRangeValue": {
|
|
152
|
+
"@type": "ParameterRangeWildcard"
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
],
|
|
157
|
+
"memberFields": [
|
|
158
|
+
{
|
|
159
|
+
"@id": "undefineds:dist/storage/RepresentationPartialConvertingStore.jsonld#RepresentationPartialConvertingStore__member_logger",
|
|
160
|
+
"memberFieldName": "logger",
|
|
161
|
+
"range": {
|
|
162
|
+
"@type": "ParameterRangeWildcard"
|
|
163
|
+
}
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
"@id": "undefineds:dist/storage/RepresentationPartialConvertingStore.jsonld#RepresentationPartialConvertingStore__member_metadataStrategy",
|
|
167
|
+
"memberFieldName": "metadataStrategy"
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
"@id": "undefineds:dist/storage/RepresentationPartialConvertingStore.jsonld#RepresentationPartialConvertingStore__member_inConverter",
|
|
171
|
+
"memberFieldName": "inConverter"
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
"@id": "undefineds:dist/storage/RepresentationPartialConvertingStore.jsonld#RepresentationPartialConvertingStore__member_outConverter",
|
|
175
|
+
"memberFieldName": "outConverter"
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
"@id": "undefineds:dist/storage/RepresentationPartialConvertingStore.jsonld#RepresentationPartialConvertingStore__member_inPreferences",
|
|
179
|
+
"memberFieldName": "inPreferences"
|
|
180
|
+
},
|
|
181
|
+
{
|
|
182
|
+
"@id": "undefineds:dist/storage/RepresentationPartialConvertingStore.jsonld#RepresentationPartialConvertingStore__member_constructor",
|
|
183
|
+
"memberFieldName": "constructor"
|
|
184
|
+
},
|
|
185
|
+
{
|
|
186
|
+
"@id": "undefineds:dist/storage/RepresentationPartialConvertingStore.jsonld#RepresentationPartialConvertingStore__member_shouldConvert",
|
|
187
|
+
"memberFieldName": "shouldConvert"
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
"@id": "undefineds:dist/storage/RepresentationPartialConvertingStore.jsonld#RepresentationPartialConvertingStore__member_getRepresentation",
|
|
191
|
+
"memberFieldName": "getRepresentation"
|
|
192
|
+
},
|
|
193
|
+
{
|
|
194
|
+
"@id": "undefineds:dist/storage/RepresentationPartialConvertingStore.jsonld#RepresentationPartialConvertingStore__member_addResource",
|
|
195
|
+
"memberFieldName": "addResource"
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
"@id": "undefineds:dist/storage/RepresentationPartialConvertingStore.jsonld#RepresentationPartialConvertingStore__member_setRepresentation",
|
|
199
|
+
"memberFieldName": "setRepresentation"
|
|
200
|
+
}
|
|
201
|
+
],
|
|
202
|
+
"constructorArguments": [
|
|
203
|
+
{
|
|
204
|
+
"@id": "undefineds:dist/storage/RepresentationPartialConvertingStore.jsonld#RepresentationPartialConvertingStore_source"
|
|
205
|
+
},
|
|
206
|
+
{
|
|
207
|
+
"@id": "undefineds:dist/storage/RepresentationPartialConvertingStore.jsonld#RepresentationPartialConvertingStore_metadataStrategy"
|
|
208
|
+
},
|
|
209
|
+
{
|
|
210
|
+
"@id": "undefineds:dist/storage/RepresentationPartialConvertingStore.jsonld#RepresentationPartialConvertingStore_options__constructorArgument",
|
|
211
|
+
"fields": [
|
|
212
|
+
{
|
|
213
|
+
"keyRaw": "outConverter",
|
|
214
|
+
"value": {
|
|
215
|
+
"@id": "undefineds:dist/storage/RepresentationPartialConvertingStore.jsonld#RepresentationPartialConvertingStore_options_outConverter"
|
|
216
|
+
}
|
|
217
|
+
},
|
|
218
|
+
{
|
|
219
|
+
"keyRaw": "inConverter",
|
|
220
|
+
"value": {
|
|
221
|
+
"@id": "undefineds:dist/storage/RepresentationPartialConvertingStore.jsonld#RepresentationPartialConvertingStore_options_inConverter"
|
|
222
|
+
}
|
|
223
|
+
},
|
|
224
|
+
{
|
|
225
|
+
"keyRaw": "inPreferences",
|
|
226
|
+
"value": {
|
|
227
|
+
"@id": "undefineds:dist/storage/RepresentationPartialConvertingStore.jsonld#RepresentationPartialConvertingStore_options_inPreferences__constructorArgument",
|
|
228
|
+
"fields": [
|
|
229
|
+
{
|
|
230
|
+
"keyRaw": "type",
|
|
231
|
+
"value": {
|
|
232
|
+
"@id": "undefineds:dist/storage/RepresentationPartialConvertingStore.jsonld#RepresentationPartialConvertingStore_options_inPreferences_type__constructorArgument",
|
|
233
|
+
"fields": [
|
|
234
|
+
{
|
|
235
|
+
"collectEntries": "undefineds:dist/storage/RepresentationPartialConvertingStore.jsonld#RepresentationPartialConvertingStore_options_inPreferences_type",
|
|
236
|
+
"key": "undefineds:dist/storage/RepresentationPartialConvertingStore.jsonld#RepresentationPartialConvertingStore_options_inPreferences_type_key",
|
|
237
|
+
"value": {
|
|
238
|
+
"@id": "undefineds:dist/storage/RepresentationPartialConvertingStore.jsonld#RepresentationPartialConvertingStore_options_inPreferences_type_value"
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
]
|
|
242
|
+
}
|
|
243
|
+
},
|
|
244
|
+
{
|
|
245
|
+
"keyRaw": "charset",
|
|
246
|
+
"value": {
|
|
247
|
+
"@id": "undefineds:dist/storage/RepresentationPartialConvertingStore.jsonld#RepresentationPartialConvertingStore_options_inPreferences_charset__constructorArgument",
|
|
248
|
+
"fields": [
|
|
249
|
+
{
|
|
250
|
+
"collectEntries": "undefineds:dist/storage/RepresentationPartialConvertingStore.jsonld#RepresentationPartialConvertingStore_options_inPreferences_charset",
|
|
251
|
+
"key": "undefineds:dist/storage/RepresentationPartialConvertingStore.jsonld#RepresentationPartialConvertingStore_options_inPreferences_charset_key",
|
|
252
|
+
"value": {
|
|
253
|
+
"@id": "undefineds:dist/storage/RepresentationPartialConvertingStore.jsonld#RepresentationPartialConvertingStore_options_inPreferences_charset_value"
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
]
|
|
257
|
+
}
|
|
258
|
+
},
|
|
259
|
+
{
|
|
260
|
+
"keyRaw": "datetime",
|
|
261
|
+
"value": {
|
|
262
|
+
"@id": "undefineds:dist/storage/RepresentationPartialConvertingStore.jsonld#RepresentationPartialConvertingStore_options_inPreferences_datetime__constructorArgument",
|
|
263
|
+
"fields": [
|
|
264
|
+
{
|
|
265
|
+
"collectEntries": "undefineds:dist/storage/RepresentationPartialConvertingStore.jsonld#RepresentationPartialConvertingStore_options_inPreferences_datetime",
|
|
266
|
+
"key": "undefineds:dist/storage/RepresentationPartialConvertingStore.jsonld#RepresentationPartialConvertingStore_options_inPreferences_datetime_key",
|
|
267
|
+
"value": {
|
|
268
|
+
"@id": "undefineds:dist/storage/RepresentationPartialConvertingStore.jsonld#RepresentationPartialConvertingStore_options_inPreferences_datetime_value"
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
]
|
|
272
|
+
}
|
|
273
|
+
},
|
|
274
|
+
{
|
|
275
|
+
"keyRaw": "encoding",
|
|
276
|
+
"value": {
|
|
277
|
+
"@id": "undefineds:dist/storage/RepresentationPartialConvertingStore.jsonld#RepresentationPartialConvertingStore_options_inPreferences_encoding__constructorArgument",
|
|
278
|
+
"fields": [
|
|
279
|
+
{
|
|
280
|
+
"collectEntries": "undefineds:dist/storage/RepresentationPartialConvertingStore.jsonld#RepresentationPartialConvertingStore_options_inPreferences_encoding",
|
|
281
|
+
"key": "undefineds:dist/storage/RepresentationPartialConvertingStore.jsonld#RepresentationPartialConvertingStore_options_inPreferences_encoding_key",
|
|
282
|
+
"value": {
|
|
283
|
+
"@id": "undefineds:dist/storage/RepresentationPartialConvertingStore.jsonld#RepresentationPartialConvertingStore_options_inPreferences_encoding_value"
|
|
284
|
+
}
|
|
285
|
+
}
|
|
286
|
+
]
|
|
287
|
+
}
|
|
288
|
+
},
|
|
289
|
+
{
|
|
290
|
+
"keyRaw": "language",
|
|
291
|
+
"value": {
|
|
292
|
+
"@id": "undefineds:dist/storage/RepresentationPartialConvertingStore.jsonld#RepresentationPartialConvertingStore_options_inPreferences_language__constructorArgument",
|
|
293
|
+
"fields": [
|
|
294
|
+
{
|
|
295
|
+
"collectEntries": "undefineds:dist/storage/RepresentationPartialConvertingStore.jsonld#RepresentationPartialConvertingStore_options_inPreferences_language",
|
|
296
|
+
"key": "undefineds:dist/storage/RepresentationPartialConvertingStore.jsonld#RepresentationPartialConvertingStore_options_inPreferences_language_key",
|
|
297
|
+
"value": {
|
|
298
|
+
"@id": "undefineds:dist/storage/RepresentationPartialConvertingStore.jsonld#RepresentationPartialConvertingStore_options_inPreferences_language_value"
|
|
299
|
+
}
|
|
300
|
+
}
|
|
301
|
+
]
|
|
302
|
+
}
|
|
303
|
+
},
|
|
304
|
+
{
|
|
305
|
+
"keyRaw": "range",
|
|
306
|
+
"value": {
|
|
307
|
+
"@id": "undefineds:dist/storage/RepresentationPartialConvertingStore.jsonld#RepresentationPartialConvertingStore_options_inPreferences_range__constructorArgument",
|
|
308
|
+
"fields": [
|
|
309
|
+
{
|
|
310
|
+
"keyRaw": "unit",
|
|
311
|
+
"value": {
|
|
312
|
+
"@id": "undefineds:dist/storage/RepresentationPartialConvertingStore.jsonld#RepresentationPartialConvertingStore_options_inPreferences_range_unit"
|
|
313
|
+
}
|
|
314
|
+
},
|
|
315
|
+
{
|
|
316
|
+
"keyRaw": "parts",
|
|
317
|
+
"value": {
|
|
318
|
+
"@id": "undefineds:dist/storage/RepresentationPartialConvertingStore.jsonld#RepresentationPartialConvertingStore_options_inPreferences_range_parts"
|
|
319
|
+
}
|
|
320
|
+
}
|
|
321
|
+
]
|
|
322
|
+
}
|
|
323
|
+
}
|
|
324
|
+
]
|
|
325
|
+
}
|
|
326
|
+
}
|
|
327
|
+
]
|
|
328
|
+
}
|
|
329
|
+
]
|
|
330
|
+
}
|
|
331
|
+
]
|
|
332
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { DataAccessorBasedStore, type ChangeMap, type ResourceIdentifier, type Patch, type Conditions, type DataAccessor, type IdentifierStrategy, type AuxiliaryStrategy, type Representation } from '@solid/community-server';
|
|
2
|
+
export interface SparqlUpdateResourceStoreOptions {
|
|
3
|
+
accessor: DataAccessor;
|
|
4
|
+
identifierStrategy: IdentifierStrategy;
|
|
5
|
+
auxiliaryStrategy: AuxiliaryStrategy;
|
|
6
|
+
metadataStrategy: AuxiliaryStrategy;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* ResourceStore that short-circuits PATCH into direct SPARQL UPDATE
|
|
10
|
+
* when the underlying DataAccessor supports it.
|
|
11
|
+
*/
|
|
12
|
+
export declare class SparqlUpdateResourceStore extends DataAccessorBasedStore {
|
|
13
|
+
private readonly generator;
|
|
14
|
+
private readonly parser;
|
|
15
|
+
protected readonly logger: import("global-logger-factory").Logger<unknown>;
|
|
16
|
+
constructor(options: SparqlUpdateResourceStoreOptions);
|
|
17
|
+
modifyResource(identifier: ResourceIdentifier, patch: Patch, conditions?: Conditions): Promise<ChangeMap>;
|
|
18
|
+
/**
|
|
19
|
+
* 只处理 SPARQL UPDATE (application/sparql-update)。
|
|
20
|
+
* N3 Patch 和其他类型返回 undefined,让 CSS PatchingStore 回退到 get-patch-set 逻辑。
|
|
21
|
+
*/
|
|
22
|
+
private toSparqlUpdate;
|
|
23
|
+
/**
|
|
24
|
+
* Ensure SPARQL UPDATE targets the resource graph (CSS stores documents in named graphs).
|
|
25
|
+
*/
|
|
26
|
+
private normalizeGraphs;
|
|
27
|
+
private isSparqlUpdatePatch;
|
|
28
|
+
private isSparqlCapable;
|
|
29
|
+
setRepresentation(identifier: ResourceIdentifier, representation: Representation, conditions?: Conditions): Promise<ChangeMap>;
|
|
30
|
+
}
|
|
@@ -0,0 +1,292 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SparqlUpdateResourceStore = void 0;
|
|
4
|
+
const n3_1 = require("n3");
|
|
5
|
+
const sparqljs_1 = require("sparqljs");
|
|
6
|
+
const community_server_1 = require("@solid/community-server");
|
|
7
|
+
const StreamUtil_1 = require("@solid/community-server/dist/util/StreamUtil");
|
|
8
|
+
const global_logger_factory_1 = require("global-logger-factory");
|
|
9
|
+
/**
|
|
10
|
+
* ResourceStore that short-circuits PATCH into direct SPARQL UPDATE
|
|
11
|
+
* when the underlying DataAccessor supports it.
|
|
12
|
+
*/
|
|
13
|
+
class SparqlUpdateResourceStore extends community_server_1.DataAccessorBasedStore {
|
|
14
|
+
constructor(options) {
|
|
15
|
+
super(options.accessor, options.identifierStrategy, options.auxiliaryStrategy, options.metadataStrategy);
|
|
16
|
+
this.generator = new sparqljs_1.Generator();
|
|
17
|
+
this.parser = new sparqljs_1.Parser();
|
|
18
|
+
this.logger = (0, global_logger_factory_1.getLoggerFor)(this);
|
|
19
|
+
// Check if identifierStrategy has baseUrl property (SingleRootIdentifierStrategy)
|
|
20
|
+
const strategy = options.identifierStrategy;
|
|
21
|
+
this.logger.info(`SparqlUpdateResourceStore initialized with identifierStrategy: ${options.identifierStrategy.constructor.name}, baseUrl: ${strategy.baseUrl ?? 'N/A'}`);
|
|
22
|
+
}
|
|
23
|
+
// @ts-expect-error Upstream signature returns never; we return ChangeMap for successful PATCH.
|
|
24
|
+
async modifyResource(identifier, patch, conditions) {
|
|
25
|
+
this.logger.debug(`SparqlUpdateResourceStore.modifyResource called for ${identifier.path}`);
|
|
26
|
+
this.logger.debug(`Patch has algebra: ${typeof patch.algebra === 'object'}, metadata.contentType: ${patch.metadata?.contentType}`);
|
|
27
|
+
const accessor = this.accessor;
|
|
28
|
+
if (!this.isSparqlCapable(accessor)) {
|
|
29
|
+
this.logger.debug('Accessor is not SPARQL capable');
|
|
30
|
+
throw new community_server_1.NotImplementedHttpError('SPARQL UPDATE not supported by this accessor');
|
|
31
|
+
}
|
|
32
|
+
// Keep the default condition validation semantics
|
|
33
|
+
if (conditions) {
|
|
34
|
+
let metadata;
|
|
35
|
+
try {
|
|
36
|
+
metadata = await accessor.getMetadata(identifier);
|
|
37
|
+
}
|
|
38
|
+
catch (error) {
|
|
39
|
+
if (!community_server_1.NotFoundHttpError.isInstance(error)) {
|
|
40
|
+
throw error;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
this.validateConditions(conditions, metadata);
|
|
44
|
+
}
|
|
45
|
+
const sparqlUpdate = await this.toSparqlUpdate(patch, identifier);
|
|
46
|
+
if (!sparqlUpdate) {
|
|
47
|
+
this.logger.debug(`toSparqlUpdate returned undefined for ${identifier.path}, falling back to CSS handler`);
|
|
48
|
+
throw new community_server_1.NotImplementedHttpError('Unsupported PATCH payload for SPARQL conversion');
|
|
49
|
+
}
|
|
50
|
+
this.logger.debug(`Applying SPARQL PATCH to ${identifier.path}: ${sparqlUpdate}`);
|
|
51
|
+
await accessor.executeSparqlUpdate(sparqlUpdate, identifier.path);
|
|
52
|
+
// PATCH does not affect containment; mark the target resource as updated.
|
|
53
|
+
const changes = new community_server_1.IdentifierMap();
|
|
54
|
+
changes.set(identifier, new community_server_1.RepresentationMetadata(identifier, { [community_server_1.SOLID_AS.activity]: community_server_1.AS.terms.Update }));
|
|
55
|
+
return changes;
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* 只处理 SPARQL UPDATE (application/sparql-update)。
|
|
59
|
+
* N3 Patch 和其他类型返回 undefined,让 CSS PatchingStore 回退到 get-patch-set 逻辑。
|
|
60
|
+
*/
|
|
61
|
+
async toSparqlUpdate(patch, identifier) {
|
|
62
|
+
// 只处理 SPARQL UPDATE,其他类型(包括 N3 Patch)回退到 CSS 默认处理
|
|
63
|
+
if (!this.isSparqlUpdatePatch(patch)) {
|
|
64
|
+
return undefined;
|
|
65
|
+
}
|
|
66
|
+
const updateText = await (0, StreamUtil_1.readableToString)(patch.data);
|
|
67
|
+
return this.normalizeGraphs(updateText, identifier);
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* Ensure SPARQL UPDATE targets the resource graph (CSS stores documents in named graphs).
|
|
71
|
+
*/
|
|
72
|
+
normalizeGraphs(updateText, identifier) {
|
|
73
|
+
const graph = n3_1.DataFactory.namedNode(identifier.path);
|
|
74
|
+
const identifierStrategy = this.identifierStrategy;
|
|
75
|
+
const assertGraphAllowed = (value) => {
|
|
76
|
+
if (!value || typeof value !== 'object') {
|
|
77
|
+
return;
|
|
78
|
+
}
|
|
79
|
+
const term = value;
|
|
80
|
+
if (term.termType === 'NamedNode' && term.value && !identifierStrategy.supportsIdentifier({ path: term.value })) {
|
|
81
|
+
throw new community_server_1.BadRequestHttpError(`GRAPH ${term.value} is outside the configured identifier space.`);
|
|
82
|
+
}
|
|
83
|
+
};
|
|
84
|
+
const wrapDefaultGraph = (text) => {
|
|
85
|
+
const insert = /INSERT\s+DATA\s*{\s*([^}]*)}/is;
|
|
86
|
+
const del = /DELETE\s+DATA\s*{\s*([^}]*)}/is;
|
|
87
|
+
const rewrite = (regex, label, input) => input.replace(regex, (_match, body) => `${label} { GRAPH <${graph.value}> { ${body} } }`);
|
|
88
|
+
let out = text;
|
|
89
|
+
if (insert.test(out)) {
|
|
90
|
+
out = rewrite(insert, 'INSERT DATA', out);
|
|
91
|
+
}
|
|
92
|
+
if (del.test(out)) {
|
|
93
|
+
out = rewrite(del, 'DELETE DATA', out);
|
|
94
|
+
}
|
|
95
|
+
return out;
|
|
96
|
+
};
|
|
97
|
+
const rewriteTriples = (triples, targetGraph = graph) => {
|
|
98
|
+
if (!triples)
|
|
99
|
+
return [];
|
|
100
|
+
return triples.map((triple) => ({
|
|
101
|
+
...triple,
|
|
102
|
+
graph: (!triple.graph || triple.graph.termType === 'DefaultGraph') ? targetGraph : triple.graph,
|
|
103
|
+
}));
|
|
104
|
+
};
|
|
105
|
+
const rewritePattern = (pattern) => {
|
|
106
|
+
if (pattern.type === 'bgp') {
|
|
107
|
+
return { ...pattern, triples: rewriteTriples(pattern.triples) };
|
|
108
|
+
}
|
|
109
|
+
if (pattern.type === 'graph') {
|
|
110
|
+
return { ...pattern, patterns: pattern.patterns?.map(rewritePattern) ?? [] };
|
|
111
|
+
}
|
|
112
|
+
if (pattern.type === 'group') {
|
|
113
|
+
return { ...pattern, patterns: pattern.patterns?.map(rewritePattern) ?? [] };
|
|
114
|
+
}
|
|
115
|
+
if (pattern.type === 'optional') {
|
|
116
|
+
return { ...pattern, patterns: pattern.patterns?.map(rewritePattern) ?? [] };
|
|
117
|
+
}
|
|
118
|
+
if (pattern.type === 'union') {
|
|
119
|
+
return { ...pattern, patterns: pattern.patterns?.map(rewritePattern) ?? [] };
|
|
120
|
+
}
|
|
121
|
+
if (pattern.type === 'minus') {
|
|
122
|
+
return { ...pattern, patterns: pattern.patterns?.map(rewritePattern) ?? [] };
|
|
123
|
+
}
|
|
124
|
+
if (pattern.type === 'filter') {
|
|
125
|
+
return pattern; // FILTER doesn't contain triples, pass through
|
|
126
|
+
}
|
|
127
|
+
if (pattern.type === 'bind') {
|
|
128
|
+
return pattern; // BIND doesn't contain triples, pass through
|
|
129
|
+
}
|
|
130
|
+
if (pattern.type === 'values') {
|
|
131
|
+
return pattern; // VALUES doesn't contain triples, pass through
|
|
132
|
+
}
|
|
133
|
+
if (pattern.type === 'service') {
|
|
134
|
+
return { ...pattern, patterns: pattern.patterns?.map(rewritePattern) ?? [] };
|
|
135
|
+
}
|
|
136
|
+
return pattern;
|
|
137
|
+
};
|
|
138
|
+
const toGraphQuads = (items) => {
|
|
139
|
+
if (!items)
|
|
140
|
+
return items;
|
|
141
|
+
return items.map((item) => {
|
|
142
|
+
if (item?.type === 'graph') {
|
|
143
|
+
assertGraphAllowed(item.name);
|
|
144
|
+
return {
|
|
145
|
+
...item,
|
|
146
|
+
name: item.name ?? graph,
|
|
147
|
+
triples: rewriteTriples(item.triples, item.name ?? graph),
|
|
148
|
+
};
|
|
149
|
+
}
|
|
150
|
+
// Treat as plain quad
|
|
151
|
+
return {
|
|
152
|
+
type: 'graph',
|
|
153
|
+
name: graph,
|
|
154
|
+
triples: rewriteTriples([item], graph),
|
|
155
|
+
};
|
|
156
|
+
});
|
|
157
|
+
};
|
|
158
|
+
try {
|
|
159
|
+
console.log(`[normalizeGraphs] Input SPARQL (first 500 chars): ${updateText.slice(0, 500)}`);
|
|
160
|
+
const parsed = this.parser.parse(updateText);
|
|
161
|
+
// Explicitly reject SPARQL Queries (SELECT, ASK, CONSTRUCT) in PATCH
|
|
162
|
+
if (parsed.type === 'query') {
|
|
163
|
+
this.logger.warn(`Received SPARQL Query in PATCH request for ${identifier.path}. SPARQL PATCH only supports UPDATE operations.`);
|
|
164
|
+
return undefined;
|
|
165
|
+
}
|
|
166
|
+
const collect = (ops, key) => ops.flatMap((op) => {
|
|
167
|
+
const entries = op[key];
|
|
168
|
+
if (!entries)
|
|
169
|
+
return [];
|
|
170
|
+
if (Array.isArray(entries)) {
|
|
171
|
+
return entries.flatMap((entry) => entry.triples ? entry.triples : (entry.quads ?? []));
|
|
172
|
+
}
|
|
173
|
+
return [];
|
|
174
|
+
});
|
|
175
|
+
const deleteTriples = collect(parsed.updates, 'delete');
|
|
176
|
+
const insertTriples = collect(parsed.updates, 'insert');
|
|
177
|
+
const hasVariables = [...deleteTriples, ...insertTriples].some((t) => t.subject?.termType === 'Variable' || t.predicate?.termType === 'Variable' || t.object?.termType === 'Variable');
|
|
178
|
+
const simpleOps = parsed.updates.every((op) => ['delete', 'insert', 'insertdelete', 'deleteinsert'].includes(op.updateType) &&
|
|
179
|
+
(!op.where || op.where.length === 0) &&
|
|
180
|
+
!hasVariables);
|
|
181
|
+
this.logger.debug(`[normalizeGraphs] simpleOps=${simpleOps}, hasVariables=${hasVariables}, deleteTriples=${deleteTriples.length}, insertTriples=${insertTriples.length}`);
|
|
182
|
+
this.logger.debug(`[normalizeGraphs] updateTypes: ${parsed.updates.map((op) => op.updateType).join(', ')}`);
|
|
183
|
+
if (simpleOps && deleteTriples.length + insertTriples.length > 0) {
|
|
184
|
+
const termToString = (term) => {
|
|
185
|
+
if (term.termType === 'NamedNode') {
|
|
186
|
+
return `<${term.value}>`;
|
|
187
|
+
}
|
|
188
|
+
if (term.termType === 'Literal') {
|
|
189
|
+
// Escape special characters in literal values
|
|
190
|
+
const hasQuotes = term.value.includes('"');
|
|
191
|
+
const hasNewlines = term.value.includes('\n') || term.value.includes('\r');
|
|
192
|
+
let escaped;
|
|
193
|
+
let useTripleQuotes = false;
|
|
194
|
+
if (hasQuotes || hasNewlines) {
|
|
195
|
+
// Use triple-quoted strings for values with quotes or newlines
|
|
196
|
+
useTripleQuotes = true;
|
|
197
|
+
escaped = term.value;
|
|
198
|
+
// Escape triple-quote sequences
|
|
199
|
+
escaped = escaped.replace(/"""/g, '"\\"\\""');
|
|
200
|
+
// Escape trailing quotes to avoid """content"""" sequences
|
|
201
|
+
if (escaped.endsWith('"')) {
|
|
202
|
+
const match = escaped.match(/"*$/);
|
|
203
|
+
const trailingQuotes = match ? match[0].length : 0;
|
|
204
|
+
if (trailingQuotes > 0) {
|
|
205
|
+
escaped = escaped.slice(0, -trailingQuotes) + '\\"'.repeat(trailingQuotes);
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
else {
|
|
210
|
+
// Regular escaping for simple strings
|
|
211
|
+
escaped = term.value.replace(/\\/g, '\\\\').replace(/"/g, '\\"');
|
|
212
|
+
}
|
|
213
|
+
const quote = useTripleQuotes ? '"""' : '"';
|
|
214
|
+
// Handle language tags and datatypes
|
|
215
|
+
if (term.language) {
|
|
216
|
+
return `${quote}${escaped}${quote}@${term.language}`;
|
|
217
|
+
}
|
|
218
|
+
if (term.datatype && term.datatype.value !== 'http://www.w3.org/2001/XMLSchema#string') {
|
|
219
|
+
return `${quote}${escaped}${quote}^^<${term.datatype.value}>`;
|
|
220
|
+
}
|
|
221
|
+
return `${quote}${escaped}${quote}`;
|
|
222
|
+
}
|
|
223
|
+
if (term.termType === 'BlankNode') {
|
|
224
|
+
return `_:${term.value}`;
|
|
225
|
+
}
|
|
226
|
+
// Fallback for unknown term types
|
|
227
|
+
return `<${term.value}>`;
|
|
228
|
+
};
|
|
229
|
+
const toTripleStr = (triples) => triples.map((t) => `${termToString(t.subject)} ${termToString(t.predicate)} ${termToString(t.object)} .`).join(' ');
|
|
230
|
+
let parts = [];
|
|
231
|
+
if (deleteTriples.length > 0) {
|
|
232
|
+
parts.push(`DELETE DATA { GRAPH <${graph.value}> { ${toTripleStr(deleteTriples)} } }`);
|
|
233
|
+
}
|
|
234
|
+
if (insertTriples.length > 0) {
|
|
235
|
+
parts.push(`INSERT DATA { GRAPH <${graph.value}> { ${toTripleStr(insertTriples)} } }`);
|
|
236
|
+
}
|
|
237
|
+
const normalizedSimple = parts.join(';\n');
|
|
238
|
+
this.logger.verbose(`Normalized SPARQL UPDATE for ${identifier.path}: ${normalizedSimple}`);
|
|
239
|
+
return normalizedSimple;
|
|
240
|
+
}
|
|
241
|
+
parsed.updates = parsed.updates.map((op) => {
|
|
242
|
+
switch (op.updateType) {
|
|
243
|
+
case 'deleteinsert':
|
|
244
|
+
case 'insertdelete':
|
|
245
|
+
return {
|
|
246
|
+
...op,
|
|
247
|
+
delete: toGraphQuads(op.delete),
|
|
248
|
+
insert: toGraphQuads(op.insert),
|
|
249
|
+
where: op.where && op.where.length > 0 ? [{ type: 'graph', name: graph, patterns: op.where.map(rewritePattern) }] : [],
|
|
250
|
+
};
|
|
251
|
+
case 'delete':
|
|
252
|
+
case 'insert': {
|
|
253
|
+
const deleteQuads = toGraphQuads(op.delete) ?? [];
|
|
254
|
+
const insertQuads = toGraphQuads(op.insert) ?? [];
|
|
255
|
+
return {
|
|
256
|
+
updateType: 'insertdelete',
|
|
257
|
+
delete: deleteQuads,
|
|
258
|
+
insert: insertQuads,
|
|
259
|
+
where: op.where && op.where.length > 0 ? [{ type: 'graph', name: graph, patterns: op.where.map(rewritePattern) }] : [],
|
|
260
|
+
};
|
|
261
|
+
}
|
|
262
|
+
default:
|
|
263
|
+
return op;
|
|
264
|
+
}
|
|
265
|
+
});
|
|
266
|
+
const normalized = this.generator.stringify(parsed);
|
|
267
|
+
this.logger.verbose(`Normalized SPARQL UPDATE for ${identifier.path}: ${normalized}`);
|
|
268
|
+
return normalized;
|
|
269
|
+
}
|
|
270
|
+
catch (error) {
|
|
271
|
+
console.log(`[normalizeGraphs] Parse FAILED for ${identifier.path}: ${error}`);
|
|
272
|
+
console.log(`[normalizeGraphs] Input was: ${updateText.slice(0, 300)}`);
|
|
273
|
+
const fallbackResult = wrapDefaultGraph(updateText);
|
|
274
|
+
console.log(`[normalizeGraphs] Fallback result: ${fallbackResult.slice(0, 300)}`);
|
|
275
|
+
return fallbackResult;
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
isSparqlUpdatePatch(patch) {
|
|
279
|
+
return typeof patch.algebra === 'object';
|
|
280
|
+
}
|
|
281
|
+
isSparqlCapable(accessor) {
|
|
282
|
+
return typeof accessor === 'object' &&
|
|
283
|
+
accessor !== null &&
|
|
284
|
+
typeof accessor.executeSparqlUpdate === 'function' &&
|
|
285
|
+
typeof accessor.getMetadata === 'function';
|
|
286
|
+
}
|
|
287
|
+
async setRepresentation(identifier, representation, conditions) {
|
|
288
|
+
return super.setRepresentation(identifier, representation, conditions);
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
exports.SparqlUpdateResourceStore = SparqlUpdateResourceStore;
|
|
292
|
+
//# sourceMappingURL=SparqlUpdateResourceStore.js.map
|