@coasys/ad4m 0.13.0-test-8-profile-cache-fix → 0.13.0-test-9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.cjs +136 -18
- package/lib/index.js +136 -18
- package/lib/src/generated/rest/AIModelLoadingStatus.d.ts +7 -0
- package/lib/src/generated/rest/AIModelLoadingStatus.js +2 -0
- package/lib/src/generated/rest/AddAgentInfosRequest.d.ts +3 -0
- package/lib/src/generated/rest/AddAgentInfosRequest.js +2 -0
- package/lib/src/generated/rest/AddLinkExpressionRequest.d.ts +6 -0
- package/lib/src/generated/rest/AddLinkExpressionRequest.js +1 -0
- package/lib/src/generated/rest/AddLinkRequest.d.ts +6 -0
- package/lib/src/generated/rest/AddLinkRequest.js +1 -0
- package/lib/src/generated/rest/AddLinksBulkRequest.d.ts +6 -0
- package/lib/src/generated/rest/AddLinksBulkRequest.js +1 -0
- package/lib/src/generated/rest/AddSdnaRequest.d.ts +6 -0
- package/lib/src/generated/rest/AddSdnaRequest.js +2 -0
- package/lib/src/generated/rest/ApplyTemplateRequest.d.ts +4 -0
- package/lib/src/generated/rest/ApplyTemplateRequest.js +2 -0
- package/lib/src/generated/rest/AuthInfoInput.d.ts +10 -0
- package/lib/src/generated/rest/AuthInfoInput.js +1 -0
- package/lib/src/generated/rest/BroadcastRequest.d.ts +6 -0
- package/lib/src/generated/rest/BroadcastRequest.js +1 -0
- package/lib/src/generated/rest/CapabilityInput.d.ts +5 -0
- package/lib/src/generated/rest/CapabilityInput.js +1 -0
- package/lib/src/generated/rest/CommitBatchRequest.d.ts +3 -0
- package/lib/src/generated/rest/CommitBatchRequest.js +2 -0
- package/lib/src/generated/rest/ComputeLogEntry.d.ts +9 -0
- package/lib/src/generated/rest/ComputeLogEntry.js +2 -0
- package/lib/src/generated/rest/CreateExpressionRequest.d.ts +4 -0
- package/lib/src/generated/rest/CreateExpressionRequest.js +2 -0
- package/lib/src/generated/rest/CreatePerspectiveRequest.d.ts +3 -0
- package/lib/src/generated/rest/CreatePerspectiveRequest.js +2 -0
- package/lib/src/generated/rest/CreateSubjectRequest.d.ts +6 -0
- package/lib/src/generated/rest/CreateSubjectRequest.js +2 -0
- package/lib/src/generated/rest/CreateUserRequest.d.ts +4 -0
- package/lib/src/generated/rest/CreateUserRequest.js +2 -0
- package/lib/src/generated/rest/CreateUserResponse.d.ts +5 -0
- package/lib/src/generated/rest/CreateUserResponse.js +2 -0
- package/lib/src/generated/rest/DecoratedExpressionProof.d.ts +6 -0
- package/lib/src/generated/rest/DecoratedExpressionProof.js +2 -0
- package/lib/src/generated/rest/DecoratedLinkExpression.d.ts +10 -0
- package/lib/src/generated/rest/DecoratedLinkExpression.js +1 -0
- package/lib/src/generated/rest/DisposeQueryRequest.d.ts +3 -0
- package/lib/src/generated/rest/DisposeQueryRequest.js +2 -0
- package/lib/src/generated/rest/EmailTestRequest.d.ts +6 -0
- package/lib/src/generated/rest/EmailTestRequest.js +2 -0
- package/lib/src/generated/rest/EmbedRequest.d.ts +4 -0
- package/lib/src/generated/rest/EmbedRequest.js +2 -0
- package/lib/src/generated/rest/EntanglementProofInput.d.ts +6 -0
- package/lib/src/generated/rest/EntanglementProofInput.js +2 -0
- package/lib/src/generated/rest/EntanglementProofPreflightRequest.d.ts +4 -0
- package/lib/src/generated/rest/EntanglementProofPreflightRequest.js +2 -0
- package/lib/src/generated/rest/ExecuteCommandsRequest.d.ts +4 -0
- package/lib/src/generated/rest/ExecuteCommandsRequest.js +2 -0
- package/lib/src/generated/rest/ExportRequest.d.ts +5 -0
- package/lib/src/generated/rest/ExportRequest.js +2 -0
- package/lib/src/generated/rest/ExpressionManyRequest.d.ts +3 -0
- package/lib/src/generated/rest/ExpressionManyRequest.js +2 -0
- package/lib/src/generated/rest/ExpressionProof.d.ts +4 -0
- package/lib/src/generated/rest/ExpressionProof.js +2 -0
- package/lib/src/generated/rest/ExpressionProofInput.d.ts +6 -0
- package/lib/src/generated/rest/ExpressionProofInput.js +2 -0
- package/lib/src/generated/rest/FriendSendMessageRequest.d.ts +3 -0
- package/lib/src/generated/rest/FriendSendMessageRequest.js +2 -0
- package/lib/src/generated/rest/FriendsListRequest.d.ts +3 -0
- package/lib/src/generated/rest/FriendsListRequest.js +2 -0
- package/lib/src/generated/rest/GenerateAgentRequest.d.ts +3 -0
- package/lib/src/generated/rest/GenerateAgentRequest.js +2 -0
- package/lib/src/generated/rest/GenerateJwtRequest.d.ts +4 -0
- package/lib/src/generated/rest/GenerateJwtRequest.js +2 -0
- package/lib/src/generated/rest/GetSubjectDataRequest.d.ts +4 -0
- package/lib/src/generated/rest/GetSubjectDataRequest.js +2 -0
- package/lib/src/generated/rest/HostingInfoResponse.d.ts +5 -0
- package/lib/src/generated/rest/HostingInfoResponse.js +2 -0
- package/lib/src/generated/rest/HostingWalletResponse.d.ts +4 -0
- package/lib/src/generated/rest/HostingWalletResponse.js +2 -0
- package/lib/src/generated/rest/ImportAgentRequest.d.ts +6 -0
- package/lib/src/generated/rest/ImportAgentRequest.js +2 -0
- package/lib/src/generated/rest/ImportRequest.d.ts +4 -0
- package/lib/src/generated/rest/ImportRequest.js +2 -0
- package/lib/src/generated/rest/JoinNeighbourhoodRequest.d.ts +3 -0
- package/lib/src/generated/rest/JoinNeighbourhoodRequest.js +2 -0
- package/lib/src/generated/rest/KeepAliveQueryRequest.d.ts +3 -0
- package/lib/src/generated/rest/KeepAliveQueryRequest.js +2 -0
- package/lib/src/generated/rest/LanguageMetaInput.d.ts +6 -0
- package/lib/src/generated/rest/LanguageMetaInput.js +2 -0
- package/lib/src/generated/rest/Link.d.ts +5 -0
- package/lib/src/generated/rest/Link.js +2 -0
- package/lib/src/generated/rest/LinkExpression.d.ts +10 -0
- package/lib/src/generated/rest/LinkExpression.js +1 -0
- package/lib/src/generated/rest/LinkExpressionInput.d.ts +10 -0
- package/lib/src/generated/rest/LinkExpressionInput.js +1 -0
- package/lib/src/generated/rest/LinkInput.d.ts +5 -0
- package/lib/src/generated/rest/LinkInput.js +2 -0
- package/lib/src/generated/rest/LinkLanguageTemplatesRequest.d.ts +3 -0
- package/lib/src/generated/rest/LinkLanguageTemplatesRequest.js +2 -0
- package/lib/src/generated/rest/LinkMutationRequest.d.ts +12 -0
- package/lib/src/generated/rest/LinkMutationRequest.js +1 -0
- package/lib/src/generated/rest/LinkMutationResponse.d.ts +9 -0
- package/lib/src/generated/rest/LinkMutationResponse.js +1 -0
- package/lib/src/generated/rest/LinkMutations.d.ts +6 -0
- package/lib/src/generated/rest/LinkMutations.js +1 -0
- package/lib/src/generated/rest/LinkMutationsRequest.d.ts +5 -0
- package/lib/src/generated/rest/LinkMutationsRequest.js +1 -0
- package/lib/src/generated/rest/LinkStatus.d.ts +1 -0
- package/lib/src/generated/rest/LinkStatus.js +2 -0
- package/lib/src/generated/rest/LinkUpdateInput.d.ts +5 -0
- package/lib/src/generated/rest/LinkUpdateInput.js +1 -0
- package/lib/src/generated/rest/LockAgentRequest.d.ts +3 -0
- package/lib/src/generated/rest/LockAgentRequest.js +2 -0
- package/lib/src/generated/rest/LoginUserRequest.d.ts +5 -0
- package/lib/src/generated/rest/LoginUserRequest.js +2 -0
- package/lib/src/generated/rest/ModelType.d.ts +1 -0
- package/lib/src/generated/rest/ModelType.js +2 -0
- package/lib/src/generated/rest/NotificationGrantRequest.d.ts +3 -0
- package/lib/src/generated/rest/NotificationGrantRequest.js +2 -0
- package/lib/src/generated/rest/NotificationInput.d.ts +10 -0
- package/lib/src/generated/rest/NotificationInput.js +2 -0
- package/lib/src/generated/rest/OpenLinkRequest.d.ts +3 -0
- package/lib/src/generated/rest/OpenLinkRequest.js +2 -0
- package/lib/src/generated/rest/PermitCapabilityRequest.d.ts +3 -0
- package/lib/src/generated/rest/PermitCapabilityRequest.js +2 -0
- package/lib/src/generated/rest/PerspectiveInput.d.ts +4 -0
- package/lib/src/generated/rest/PerspectiveInput.js +1 -0
- package/lib/src/generated/rest/PromptRequest.d.ts +4 -0
- package/lib/src/generated/rest/PromptRequest.js +2 -0
- package/lib/src/generated/rest/PublicPerspectiveInput.d.ts +4 -0
- package/lib/src/generated/rest/PublicPerspectiveInput.js +1 -0
- package/lib/src/generated/rest/PublishLanguageRequest.d.ts +5 -0
- package/lib/src/generated/rest/PublishLanguageRequest.js +1 -0
- package/lib/src/generated/rest/PublishNeighbourhoodRequest.d.ts +6 -0
- package/lib/src/generated/rest/PublishNeighbourhoodRequest.js +1 -0
- package/lib/src/generated/rest/QueryRequest.d.ts +7 -0
- package/lib/src/generated/rest/QueryRequest.js +2 -0
- package/lib/src/generated/rest/RemoveLinkRequest.d.ts +5 -0
- package/lib/src/generated/rest/RemoveLinkRequest.js +1 -0
- package/lib/src/generated/rest/RemoveLinksBulkRequest.d.ts +5 -0
- package/lib/src/generated/rest/RemoveLinksBulkRequest.js +1 -0
- package/lib/src/generated/rest/RequestCapabilityRequest.d.ts +4 -0
- package/lib/src/generated/rest/RequestCapabilityRequest.js +1 -0
- package/lib/src/generated/rest/RequestPaymentRequest.d.ts +3 -0
- package/lib/src/generated/rest/RequestPaymentRequest.js +2 -0
- package/lib/src/generated/rest/RequestVerificationRequest.d.ts +4 -0
- package/lib/src/generated/rest/RequestVerificationRequest.js +2 -0
- package/lib/src/generated/rest/ResourceInput.d.ts +4 -0
- package/lib/src/generated/rest/ResourceInput.js +2 -0
- package/lib/src/generated/rest/SetDefaultModelRequest.d.ts +4 -0
- package/lib/src/generated/rest/SetDefaultModelRequest.js +1 -0
- package/lib/src/generated/rest/SetFreeHostingEnabledRequest.d.ts +3 -0
- package/lib/src/generated/rest/SetFreeHostingEnabledRequest.js +2 -0
- package/lib/src/generated/rest/SetHotWalletAddressRequest.d.ts +3 -0
- package/lib/src/generated/rest/SetHotWalletAddressRequest.js +2 -0
- package/lib/src/generated/rest/SetMultiUserRequest.d.ts +3 -0
- package/lib/src/generated/rest/SetMultiUserRequest.js +2 -0
- package/lib/src/generated/rest/SetOnlineStatusRequest.d.ts +5 -0
- package/lib/src/generated/rest/SetOnlineStatusRequest.js +1 -0
- package/lib/src/generated/rest/SetStatusRequest.d.ts +3 -0
- package/lib/src/generated/rest/SetStatusRequest.js +2 -0
- package/lib/src/generated/rest/SetUserFreeAccessRequest.d.ts +4 -0
- package/lib/src/generated/rest/SetUserFreeAccessRequest.js +2 -0
- package/lib/src/generated/rest/SignMessageRequest.d.ts +3 -0
- package/lib/src/generated/rest/SignMessageRequest.js +2 -0
- package/lib/src/generated/rest/SignalRequest.d.ts +6 -0
- package/lib/src/generated/rest/SignalRequest.js +1 -0
- package/lib/src/generated/rest/SubscribeQueryRequest.d.ts +3 -0
- package/lib/src/generated/rest/SubscribeQueryRequest.js +2 -0
- package/lib/src/generated/rest/SubscribeQueryResponse.d.ts +4 -0
- package/lib/src/generated/rest/SubscribeQueryResponse.js +2 -0
- package/lib/src/generated/rest/TrustedAgentsRequest.d.ts +3 -0
- package/lib/src/generated/rest/TrustedAgentsRequest.js +2 -0
- package/lib/src/generated/rest/UnlockAgentRequest.d.ts +4 -0
- package/lib/src/generated/rest/UnlockAgentRequest.js +2 -0
- package/lib/src/generated/rest/UpdateLinkRequest.d.ts +7 -0
- package/lib/src/generated/rest/UpdateLinkRequest.js +1 -0
- package/lib/src/generated/rest/UpdatePerspectiveRequest.d.ts +3 -0
- package/lib/src/generated/rest/UpdatePerspectiveRequest.js +2 -0
- package/lib/src/generated/rest/UpdateProfileRequest.d.ts +5 -0
- package/lib/src/generated/rest/UpdateProfileRequest.js +1 -0
- package/lib/src/generated/rest/UserStatistics.d.ts +9 -0
- package/lib/src/generated/rest/UserStatistics.js +2 -0
- package/lib/src/generated/rest/VerificationRequestResult.d.ts +6 -0
- package/lib/src/generated/rest/VerificationRequestResult.js +2 -0
- package/lib/src/generated/rest/VerifyEmailRequest.d.ts +6 -0
- package/lib/src/generated/rest/VerifyEmailRequest.js +2 -0
- package/lib/src/generated/rest/VerifySignatureRequest.d.ts +5 -0
- package/lib/src/generated/rest/VerifySignatureRequest.js +2 -0
- package/lib/src/generated/rest/WriteSettingsRequest.d.ts +3 -0
- package/lib/src/generated/rest/WriteSettingsRequest.js +2 -0
- package/lib/src/generated/rest/index.d.ts +73 -0
- package/lib/src/generated/rest/index.js +8 -0
- package/lib/src/generated/rest/routes.d.ts +587 -0
- package/lib/src/generated/rest/routes.js +3 -0
- package/lib/src/model/Ad4mModel.test.js +735 -480
- package/lib/src/model/decorators.d.ts +20 -1
- package/lib/src/model/decorators.js +33 -2
- package/lib/src/model/query-sparql.d.ts +1 -0
- package/lib/src/model/query-sparql.js +13 -0
- package/lib/src/model/query-sparql.test.js +10 -92
- package/lib/src/model/query-surreal.d.ts +44 -0
- package/lib/src/model/query-surreal.js +249 -0
- package/lib/src/model/shacl-gen.d.ts +15 -1
- package/lib/src/model/shacl-gen.js +23 -1
- package/lib/src/model/surreal-utils.d.ts +42 -0
- package/lib/src/model/surreal-utils.js +128 -0
- package/lib/src/model/types.d.ts +14 -3
- package/lib/src/neighbourhood/NeighbourhoodProxy.test.js +33 -33
- package/lib/src/perspectives/PerspectiveProxy.d.ts +17 -0
- package/lib/src/perspectives/PerspectiveProxy.js +67 -15
- package/lib/src/perspectives/PerspectiveProxy.test.d.ts +1 -0
- package/lib/src/perspectives/PerspectiveProxy.test.js +34 -0
- package/lib/src/restClient.d.ts +52 -0
- package/lib/src/restClient.js +227 -0
- package/lib/src/shacl/SHACLShape.test.js +0 -82
- package/package.json +11 -8
- package/src/model/Ad4mModel.test.ts +103 -0
- package/src/model/decorators.ts +37 -3
- package/src/model/query-sparql.test.ts +148 -0
- package/src/model/query-sparql.ts +15 -0
- package/src/model/shacl-gen.ts +23 -0
- package/src/model/types.ts +28 -6
- package/src/perspectives/PerspectiveProxy.ts +73 -20
- package/lib/src/model/model-manifest.d.ts +0 -41
- package/lib/src/model/model-manifest.js +0 -11
package/lib/index.cjs
CHANGED
|
@@ -1790,7 +1790,18 @@ class SHACLShape {
|
|
|
1790
1790
|
* @param conformanceFilterFn - Injected conformance-filter builder
|
|
1791
1791
|
* (avoids circular dependency back into decorators.ts)
|
|
1792
1792
|
*/
|
|
1793
|
-
function buildSHACL(subjectName, target, properties, allRelationsMeta, conformanceFilterFn
|
|
1793
|
+
function buildSHACL(subjectName, target, properties, allRelationsMeta, conformanceFilterFn,
|
|
1794
|
+
/**
|
|
1795
|
+
* Optional early-cache seeding callback. When invoked with a
|
|
1796
|
+
* partial `{ shape, name }`, any re-entrant `generateSHACL()`
|
|
1797
|
+
* call on the same target — which happens when a relation's
|
|
1798
|
+
* `target: () => SameClass` points at us, directly or
|
|
1799
|
+
* transitively — observes the in-progress shape rather than
|
|
1800
|
+
* re-entering this function infinitely. Provided by `@Model` via
|
|
1801
|
+
* `getMemoizedSHACL`; safe to omit when calling `buildSHACL`
|
|
1802
|
+
* directly (e.g. from a one-off SDNA build tool).
|
|
1803
|
+
*/
|
|
1804
|
+
seedCache) {
|
|
1794
1805
|
const obj = target.prototype;
|
|
1795
1806
|
// ── Determine namespace from first property or relation ─────────────
|
|
1796
1807
|
let namespace = "ad4m://";
|
|
@@ -1818,6 +1829,17 @@ function buildSHACL(subjectName, target, properties, allRelationsMeta, conforman
|
|
|
1818
1829
|
const shapeUri = `${namespace}${subjectName}Shape`;
|
|
1819
1830
|
const targetClass = `${namespace}${subjectName}`;
|
|
1820
1831
|
const shape = new SHACLShape(shapeUri, targetClass);
|
|
1832
|
+
// ── Seed the memoisation cache while we keep building ──────────────
|
|
1833
|
+
// Any subsequent `target.generateSHACL()` call from inside this
|
|
1834
|
+
// function (typically when walking a self-referential or
|
|
1835
|
+
// mutually-recursive relation target) will now observe the
|
|
1836
|
+
// already-allocated `shape` rather than re-entering `buildSHACL`
|
|
1837
|
+
// and overflowing the stack. The shape is mutated in place as we
|
|
1838
|
+
// populate it below, so the eventual cached value and the value
|
|
1839
|
+
// recursive callers see are the same object.
|
|
1840
|
+
if (seedCache) {
|
|
1841
|
+
seedCache({ shape, name: subjectName });
|
|
1842
|
+
}
|
|
1821
1843
|
// Detect @Model inheritance — if the parent class also has
|
|
1822
1844
|
// generateSHACL it is itself a @Model and we reference its shape
|
|
1823
1845
|
// via sh:node so SHACL validators can walk the hierarchy.
|
|
@@ -2229,12 +2251,43 @@ function getRelationsMetadata(ctor) {
|
|
|
2229
2251
|
}
|
|
2230
2252
|
/**
|
|
2231
2253
|
* Get or compute memoised SHACL for a class. Used by @Model decorator.
|
|
2254
|
+
*
|
|
2255
|
+
* The `compute` callback receives a `seed(partial)` function: calling
|
|
2256
|
+
* it stores `partial` in the cache *before* `compute` returns, so any
|
|
2257
|
+
* re-entrant `getMemoizedSHACL(target, …)` call from inside `compute`
|
|
2258
|
+
* observes the in-progress shape instead of re-entering `compute`
|
|
2259
|
+
* infinitely.
|
|
2260
|
+
*
|
|
2261
|
+
* This matters for self-referential models — e.g.
|
|
2262
|
+
*
|
|
2263
|
+
* @Model({ name: "Channel" })
|
|
2264
|
+
* class Channel extends Ad4mModel {
|
|
2265
|
+
* @HasMany({ predicate: "…/child", target: () => Channel })
|
|
2266
|
+
* childChannels!: Channel[];
|
|
2267
|
+
* }
|
|
2268
|
+
*
|
|
2269
|
+
* Without the seed, building the SHACL shape for `Channel` invokes
|
|
2270
|
+
* `Channel.generateSHACL()` while walking the `childChannels`
|
|
2271
|
+
* relation's target (shacl-gen.ts ~line 327), which re-enters this
|
|
2272
|
+
* function with an empty cache, blowing the stack.
|
|
2232
2273
|
*/
|
|
2233
2274
|
function getMemoizedSHACL(target, compute) {
|
|
2234
2275
|
const cached = shaclCache.get(target);
|
|
2235
2276
|
if (cached)
|
|
2236
2277
|
return cached;
|
|
2237
|
-
const
|
|
2278
|
+
const seed = (partial) => {
|
|
2279
|
+
shaclCache.set(target, partial);
|
|
2280
|
+
};
|
|
2281
|
+
let result;
|
|
2282
|
+
try {
|
|
2283
|
+
result = compute(seed);
|
|
2284
|
+
}
|
|
2285
|
+
catch (e) {
|
|
2286
|
+
// If compute throws after seeding, evict the half-built entry
|
|
2287
|
+
// so a later retry can rebuild from scratch.
|
|
2288
|
+
shaclCache.delete(target);
|
|
2289
|
+
throw e;
|
|
2290
|
+
}
|
|
2238
2291
|
shaclCache.set(target, result);
|
|
2239
2292
|
return result;
|
|
2240
2293
|
}
|
|
@@ -2506,7 +2559,7 @@ function Model$1(opts) {
|
|
|
2506
2559
|
return buildSDNA(opts.name, target.prototype, getPropertiesMetadata(target), getRelationsMetadata(target));
|
|
2507
2560
|
};
|
|
2508
2561
|
target.generateSHACL = function () {
|
|
2509
|
-
return getMemoizedSHACL(target, () => buildSHACL(opts.name, target, getPropertiesMetadata(target), getRelationsMetadata(target), buildConformanceFilter));
|
|
2562
|
+
return getMemoizedSHACL(target, (seed) => buildSHACL(opts.name, target, getPropertiesMetadata(target), getRelationsMetadata(target), buildConformanceFilter, seed));
|
|
2510
2563
|
};
|
|
2511
2564
|
Object.defineProperty(target, 'type', { configurable: true });
|
|
2512
2565
|
};
|
|
@@ -4437,12 +4490,26 @@ class PerspectiveProxy {
|
|
|
4437
4490
|
source: shapeUri,
|
|
4438
4491
|
predicate: "sh://property"
|
|
4439
4492
|
}));
|
|
4440
|
-
// Fetch all links from the shape and its property shapes
|
|
4493
|
+
// Fetch all links from the shape and its property shapes. These reads are
|
|
4494
|
+
// independent of each other, so fire them concurrently rather than one RPC
|
|
4495
|
+
// round trip at a time — over a remote (non-loopback) connection, a shape with
|
|
4496
|
+
// a dozen properties otherwise pays a dozen sequential round trips just to load.
|
|
4441
4497
|
const sourceUris = [shapeUri, ...propertyLinks.map(l => l.data.target)];
|
|
4498
|
+
const linksByUri = await Promise.all(sourceUris.map(uri => this.get(new LinkQuery({ source: uri }))));
|
|
4499
|
+
// Dedupe by (source, predicate, target): a perspective that's accumulated duplicate
|
|
4500
|
+
// SDNA links (e.g. from repeated registration attempts, or executor-side sync bugs)
|
|
4501
|
+
// would otherwise feed the same triple into SHACLShape.fromLinks more than once —
|
|
4502
|
+
// harmless for scalar fields like targetClass (first match wins) but can surface as
|
|
4503
|
+
// visibly duplicated properties for repeated sh://property links. Cheap: this is an
|
|
4504
|
+
// in-memory pass over data already fetched, no extra round trips.
|
|
4505
|
+
const seenLinks = new Set();
|
|
4442
4506
|
const allLinks = [];
|
|
4443
|
-
for (const
|
|
4444
|
-
const links = await this.get(new LinkQuery({ source: uri }));
|
|
4507
|
+
for (const links of linksByUri) {
|
|
4445
4508
|
for (const l of links) {
|
|
4509
|
+
const key = `${l.data.source} ${l.data.predicate} ${l.data.target}`;
|
|
4510
|
+
if (seenLinks.has(key))
|
|
4511
|
+
continue;
|
|
4512
|
+
seenLinks.add(key);
|
|
4446
4513
|
allLinks.push({
|
|
4447
4514
|
source: l.data.source,
|
|
4448
4515
|
predicate: l.data.predicate,
|
|
@@ -4454,24 +4521,62 @@ class PerspectiveProxy {
|
|
|
4454
4521
|
return SHACLShape.fromLinks(shapeLinks, shapeUri);
|
|
4455
4522
|
}
|
|
4456
4523
|
/**
|
|
4457
|
-
*
|
|
4524
|
+
* List the names of every SHACL shape stored in this Perspective, without fetching
|
|
4525
|
+
* each shape's full definition (properties, target class, etc.) — just the cheap
|
|
4526
|
+
* `ad4m://has_shacl` enumeration, one round trip regardless of how many shapes exist.
|
|
4527
|
+
* Use this to check which shapes are actually worth resolving via `getShacl()` before
|
|
4528
|
+
* paying for each one's full (multi-round-trip) fetch.
|
|
4458
4529
|
*/
|
|
4459
|
-
async
|
|
4530
|
+
async getShaclNames() {
|
|
4460
4531
|
const nameLinks = await this.get(new LinkQuery({
|
|
4461
4532
|
source: "ad4m://self",
|
|
4462
4533
|
predicate: "ad4m://has_shacl"
|
|
4463
4534
|
}));
|
|
4464
|
-
|
|
4465
|
-
|
|
4466
|
-
|
|
4467
|
-
|
|
4468
|
-
const
|
|
4469
|
-
|
|
4470
|
-
|
|
4471
|
-
|
|
4472
|
-
|
|
4535
|
+
// Dedupe: a perspective with duplicate `has_shacl` links (see the dedup note in
|
|
4536
|
+
// getShacl()) would otherwise report the same name more than once, causing callers
|
|
4537
|
+
// to redundantly resolve (or redundantly disambiguate) it multiple times.
|
|
4538
|
+
const names = nameLinks.map((nameLink) => {
|
|
4539
|
+
const name = Literal.fromUrl(nameLink.data.target).get();
|
|
4540
|
+
return name.replace('shacl://', '');
|
|
4541
|
+
});
|
|
4542
|
+
return [...new Set(names)];
|
|
4543
|
+
}
|
|
4544
|
+
/**
|
|
4545
|
+
* Resolve just a shape's `sh:targetClass` by name, without fetching its properties —
|
|
4546
|
+
* two round trips (name → shapeUri, then shapeUri's own direct triples) instead of
|
|
4547
|
+
* `getShacl()`'s full walk (which also fetches every property sub-shape). Use this to
|
|
4548
|
+
* disambiguate a shape name that collides with another app's `@Model({ name })` string
|
|
4549
|
+
* (the bare `shacl://{name}` mapping ad4m-core uses is namespace-blind — see
|
|
4550
|
+
* `getShaclNames()` callers for why that matters) before paying for a full fetch.
|
|
4551
|
+
*/
|
|
4552
|
+
async getShaclTargetClass(name) {
|
|
4553
|
+
const nameMapping = Literal.fromUrl(`literal:string:shacl://${name}`);
|
|
4554
|
+
const shapeUriLinks = await this.get(new LinkQuery({
|
|
4555
|
+
source: nameMapping.toUrl(),
|
|
4556
|
+
predicate: "ad4m://shacl_shape_uri"
|
|
4557
|
+
}));
|
|
4558
|
+
if (shapeUriLinks.length === 0) {
|
|
4559
|
+
return undefined;
|
|
4473
4560
|
}
|
|
4474
|
-
|
|
4561
|
+
const shapeUri = shapeUriLinks[0].data.target;
|
|
4562
|
+
const shapeOwnLinks = await this.get(new LinkQuery({ source: shapeUri }));
|
|
4563
|
+
return shapeOwnLinks.find(l => l.data.predicate === "sh://targetClass")?.data.target;
|
|
4564
|
+
}
|
|
4565
|
+
/**
|
|
4566
|
+
* Get all SHACL shapes stored in this Perspective
|
|
4567
|
+
*/
|
|
4568
|
+
async getAllShacl() {
|
|
4569
|
+
const shapeNames = await this.getShaclNames();
|
|
4570
|
+
// Each shape is fetched independently of the others — resolve them concurrently.
|
|
4571
|
+
// Sequentially awaiting getShacl() per shape means a perspective with N SDNA
|
|
4572
|
+
// models pays N times getShacl()'s own multi-round-trip cost one after another;
|
|
4573
|
+
// over a remote connection with real per-call latency that compounds into the
|
|
4574
|
+
// dominant cost of switching into a perspective at all.
|
|
4575
|
+
const results = await Promise.all(shapeNames.map(async (shapeName) => {
|
|
4576
|
+
const shape = await this.getShacl(shapeName);
|
|
4577
|
+
return shape ? { name: shapeName, shape } : null;
|
|
4578
|
+
}));
|
|
4579
|
+
return results.filter((s) => s !== null);
|
|
4475
4580
|
}
|
|
4476
4581
|
/**
|
|
4477
4582
|
* **Recommended way to add Flow definitions.**
|
|
@@ -14278,6 +14383,7 @@ function buildModelFromJSONSchema(BaseClass, schema, options) {
|
|
|
14278
14383
|
* - Literal-stored properties (equality, comparison, contains, etc.)
|
|
14279
14384
|
* - Reverse relations (belongsToOne / belongsToMany)
|
|
14280
14385
|
* - author / timestamp filters (skipped by buildSPARQLWhereFilters)
|
|
14386
|
+
* - OR / AND / NOT combinators (skipped by buildSPARQLWhereFilters — see below)
|
|
14281
14387
|
*
|
|
14282
14388
|
* When JS-only filters exist, SPARQL-level LIMIT/OFFSET must NOT be applied
|
|
14283
14389
|
* because the database would cap the candidate set before JS filters run,
|
|
@@ -14289,6 +14395,14 @@ function hasJsOnlyWhereFilters(metadata, allRelationsMetadata, where) {
|
|
|
14289
14395
|
for (const [propertyName, condition] of Object.entries(where)) {
|
|
14290
14396
|
if (propertyName === "base" || propertyName === "id")
|
|
14291
14397
|
continue;
|
|
14398
|
+
// OR/AND/NOT: buildSPARQLWhereFilters never emits a SPARQL translation
|
|
14399
|
+
// for these regardless of what their branches contain, so their mere
|
|
14400
|
+
// presence — not just JS-only conditions within a branch — must block
|
|
14401
|
+
// SPARQL-level pagination. Otherwise LIMIT/OFFSET would be applied
|
|
14402
|
+
// before the (Rust-side, post-hydration) combinator filter ever runs.
|
|
14403
|
+
if (propertyName === "OR" || propertyName === "AND" || propertyName === "NOT") {
|
|
14404
|
+
return true;
|
|
14405
|
+
}
|
|
14292
14406
|
// author/timestamp filters are handled in JS
|
|
14293
14407
|
if (propertyName === "author" || propertyName === "timestamp")
|
|
14294
14408
|
return true;
|
|
@@ -14572,6 +14686,10 @@ function buildSPARQLWhereFilters(metadata, _allRelationsMetadata, where) {
|
|
|
14572
14686
|
const joins = [];
|
|
14573
14687
|
const filters = [];
|
|
14574
14688
|
for (const [propertyName, condition] of Object.entries(where)) {
|
|
14689
|
+
// OR/AND/NOT are evaluated Rust-side after hydration; no SPARQL emission needed.
|
|
14690
|
+
if (propertyName === "OR" || propertyName === "AND" || propertyName === "NOT") {
|
|
14691
|
+
continue;
|
|
14692
|
+
}
|
|
14575
14693
|
// 'base' maps to ?source
|
|
14576
14694
|
if (propertyName === "base" || propertyName === "id") {
|
|
14577
14695
|
if (Array.isArray(condition)) {
|
package/lib/index.js
CHANGED
|
@@ -1786,7 +1786,18 @@ class SHACLShape {
|
|
|
1786
1786
|
* @param conformanceFilterFn - Injected conformance-filter builder
|
|
1787
1787
|
* (avoids circular dependency back into decorators.ts)
|
|
1788
1788
|
*/
|
|
1789
|
-
function buildSHACL(subjectName, target, properties, allRelationsMeta, conformanceFilterFn
|
|
1789
|
+
function buildSHACL(subjectName, target, properties, allRelationsMeta, conformanceFilterFn,
|
|
1790
|
+
/**
|
|
1791
|
+
* Optional early-cache seeding callback. When invoked with a
|
|
1792
|
+
* partial `{ shape, name }`, any re-entrant `generateSHACL()`
|
|
1793
|
+
* call on the same target — which happens when a relation's
|
|
1794
|
+
* `target: () => SameClass` points at us, directly or
|
|
1795
|
+
* transitively — observes the in-progress shape rather than
|
|
1796
|
+
* re-entering this function infinitely. Provided by `@Model` via
|
|
1797
|
+
* `getMemoizedSHACL`; safe to omit when calling `buildSHACL`
|
|
1798
|
+
* directly (e.g. from a one-off SDNA build tool).
|
|
1799
|
+
*/
|
|
1800
|
+
seedCache) {
|
|
1790
1801
|
const obj = target.prototype;
|
|
1791
1802
|
// ── Determine namespace from first property or relation ─────────────
|
|
1792
1803
|
let namespace = "ad4m://";
|
|
@@ -1814,6 +1825,17 @@ function buildSHACL(subjectName, target, properties, allRelationsMeta, conforman
|
|
|
1814
1825
|
const shapeUri = `${namespace}${subjectName}Shape`;
|
|
1815
1826
|
const targetClass = `${namespace}${subjectName}`;
|
|
1816
1827
|
const shape = new SHACLShape(shapeUri, targetClass);
|
|
1828
|
+
// ── Seed the memoisation cache while we keep building ──────────────
|
|
1829
|
+
// Any subsequent `target.generateSHACL()` call from inside this
|
|
1830
|
+
// function (typically when walking a self-referential or
|
|
1831
|
+
// mutually-recursive relation target) will now observe the
|
|
1832
|
+
// already-allocated `shape` rather than re-entering `buildSHACL`
|
|
1833
|
+
// and overflowing the stack. The shape is mutated in place as we
|
|
1834
|
+
// populate it below, so the eventual cached value and the value
|
|
1835
|
+
// recursive callers see are the same object.
|
|
1836
|
+
if (seedCache) {
|
|
1837
|
+
seedCache({ shape, name: subjectName });
|
|
1838
|
+
}
|
|
1817
1839
|
// Detect @Model inheritance — if the parent class also has
|
|
1818
1840
|
// generateSHACL it is itself a @Model and we reference its shape
|
|
1819
1841
|
// via sh:node so SHACL validators can walk the hierarchy.
|
|
@@ -2225,12 +2247,43 @@ function getRelationsMetadata(ctor) {
|
|
|
2225
2247
|
}
|
|
2226
2248
|
/**
|
|
2227
2249
|
* Get or compute memoised SHACL for a class. Used by @Model decorator.
|
|
2250
|
+
*
|
|
2251
|
+
* The `compute` callback receives a `seed(partial)` function: calling
|
|
2252
|
+
* it stores `partial` in the cache *before* `compute` returns, so any
|
|
2253
|
+
* re-entrant `getMemoizedSHACL(target, …)` call from inside `compute`
|
|
2254
|
+
* observes the in-progress shape instead of re-entering `compute`
|
|
2255
|
+
* infinitely.
|
|
2256
|
+
*
|
|
2257
|
+
* This matters for self-referential models — e.g.
|
|
2258
|
+
*
|
|
2259
|
+
* @Model({ name: "Channel" })
|
|
2260
|
+
* class Channel extends Ad4mModel {
|
|
2261
|
+
* @HasMany({ predicate: "…/child", target: () => Channel })
|
|
2262
|
+
* childChannels!: Channel[];
|
|
2263
|
+
* }
|
|
2264
|
+
*
|
|
2265
|
+
* Without the seed, building the SHACL shape for `Channel` invokes
|
|
2266
|
+
* `Channel.generateSHACL()` while walking the `childChannels`
|
|
2267
|
+
* relation's target (shacl-gen.ts ~line 327), which re-enters this
|
|
2268
|
+
* function with an empty cache, blowing the stack.
|
|
2228
2269
|
*/
|
|
2229
2270
|
function getMemoizedSHACL(target, compute) {
|
|
2230
2271
|
const cached = shaclCache.get(target);
|
|
2231
2272
|
if (cached)
|
|
2232
2273
|
return cached;
|
|
2233
|
-
const
|
|
2274
|
+
const seed = (partial) => {
|
|
2275
|
+
shaclCache.set(target, partial);
|
|
2276
|
+
};
|
|
2277
|
+
let result;
|
|
2278
|
+
try {
|
|
2279
|
+
result = compute(seed);
|
|
2280
|
+
}
|
|
2281
|
+
catch (e) {
|
|
2282
|
+
// If compute throws after seeding, evict the half-built entry
|
|
2283
|
+
// so a later retry can rebuild from scratch.
|
|
2284
|
+
shaclCache.delete(target);
|
|
2285
|
+
throw e;
|
|
2286
|
+
}
|
|
2234
2287
|
shaclCache.set(target, result);
|
|
2235
2288
|
return result;
|
|
2236
2289
|
}
|
|
@@ -2502,7 +2555,7 @@ function Model$1(opts) {
|
|
|
2502
2555
|
return buildSDNA(opts.name, target.prototype, getPropertiesMetadata(target), getRelationsMetadata(target));
|
|
2503
2556
|
};
|
|
2504
2557
|
target.generateSHACL = function () {
|
|
2505
|
-
return getMemoizedSHACL(target, () => buildSHACL(opts.name, target, getPropertiesMetadata(target), getRelationsMetadata(target), buildConformanceFilter));
|
|
2558
|
+
return getMemoizedSHACL(target, (seed) => buildSHACL(opts.name, target, getPropertiesMetadata(target), getRelationsMetadata(target), buildConformanceFilter, seed));
|
|
2506
2559
|
};
|
|
2507
2560
|
Object.defineProperty(target, 'type', { configurable: true });
|
|
2508
2561
|
};
|
|
@@ -4433,12 +4486,26 @@ class PerspectiveProxy {
|
|
|
4433
4486
|
source: shapeUri,
|
|
4434
4487
|
predicate: "sh://property"
|
|
4435
4488
|
}));
|
|
4436
|
-
// Fetch all links from the shape and its property shapes
|
|
4489
|
+
// Fetch all links from the shape and its property shapes. These reads are
|
|
4490
|
+
// independent of each other, so fire them concurrently rather than one RPC
|
|
4491
|
+
// round trip at a time — over a remote (non-loopback) connection, a shape with
|
|
4492
|
+
// a dozen properties otherwise pays a dozen sequential round trips just to load.
|
|
4437
4493
|
const sourceUris = [shapeUri, ...propertyLinks.map(l => l.data.target)];
|
|
4494
|
+
const linksByUri = await Promise.all(sourceUris.map(uri => this.get(new LinkQuery({ source: uri }))));
|
|
4495
|
+
// Dedupe by (source, predicate, target): a perspective that's accumulated duplicate
|
|
4496
|
+
// SDNA links (e.g. from repeated registration attempts, or executor-side sync bugs)
|
|
4497
|
+
// would otherwise feed the same triple into SHACLShape.fromLinks more than once —
|
|
4498
|
+
// harmless for scalar fields like targetClass (first match wins) but can surface as
|
|
4499
|
+
// visibly duplicated properties for repeated sh://property links. Cheap: this is an
|
|
4500
|
+
// in-memory pass over data already fetched, no extra round trips.
|
|
4501
|
+
const seenLinks = new Set();
|
|
4438
4502
|
const allLinks = [];
|
|
4439
|
-
for (const
|
|
4440
|
-
const links = await this.get(new LinkQuery({ source: uri }));
|
|
4503
|
+
for (const links of linksByUri) {
|
|
4441
4504
|
for (const l of links) {
|
|
4505
|
+
const key = `${l.data.source} ${l.data.predicate} ${l.data.target}`;
|
|
4506
|
+
if (seenLinks.has(key))
|
|
4507
|
+
continue;
|
|
4508
|
+
seenLinks.add(key);
|
|
4442
4509
|
allLinks.push({
|
|
4443
4510
|
source: l.data.source,
|
|
4444
4511
|
predicate: l.data.predicate,
|
|
@@ -4450,24 +4517,62 @@ class PerspectiveProxy {
|
|
|
4450
4517
|
return SHACLShape.fromLinks(shapeLinks, shapeUri);
|
|
4451
4518
|
}
|
|
4452
4519
|
/**
|
|
4453
|
-
*
|
|
4520
|
+
* List the names of every SHACL shape stored in this Perspective, without fetching
|
|
4521
|
+
* each shape's full definition (properties, target class, etc.) — just the cheap
|
|
4522
|
+
* `ad4m://has_shacl` enumeration, one round trip regardless of how many shapes exist.
|
|
4523
|
+
* Use this to check which shapes are actually worth resolving via `getShacl()` before
|
|
4524
|
+
* paying for each one's full (multi-round-trip) fetch.
|
|
4454
4525
|
*/
|
|
4455
|
-
async
|
|
4526
|
+
async getShaclNames() {
|
|
4456
4527
|
const nameLinks = await this.get(new LinkQuery({
|
|
4457
4528
|
source: "ad4m://self",
|
|
4458
4529
|
predicate: "ad4m://has_shacl"
|
|
4459
4530
|
}));
|
|
4460
|
-
|
|
4461
|
-
|
|
4462
|
-
|
|
4463
|
-
|
|
4464
|
-
const
|
|
4465
|
-
|
|
4466
|
-
|
|
4467
|
-
|
|
4468
|
-
|
|
4531
|
+
// Dedupe: a perspective with duplicate `has_shacl` links (see the dedup note in
|
|
4532
|
+
// getShacl()) would otherwise report the same name more than once, causing callers
|
|
4533
|
+
// to redundantly resolve (or redundantly disambiguate) it multiple times.
|
|
4534
|
+
const names = nameLinks.map((nameLink) => {
|
|
4535
|
+
const name = Literal.fromUrl(nameLink.data.target).get();
|
|
4536
|
+
return name.replace('shacl://', '');
|
|
4537
|
+
});
|
|
4538
|
+
return [...new Set(names)];
|
|
4539
|
+
}
|
|
4540
|
+
/**
|
|
4541
|
+
* Resolve just a shape's `sh:targetClass` by name, without fetching its properties —
|
|
4542
|
+
* two round trips (name → shapeUri, then shapeUri's own direct triples) instead of
|
|
4543
|
+
* `getShacl()`'s full walk (which also fetches every property sub-shape). Use this to
|
|
4544
|
+
* disambiguate a shape name that collides with another app's `@Model({ name })` string
|
|
4545
|
+
* (the bare `shacl://{name}` mapping ad4m-core uses is namespace-blind — see
|
|
4546
|
+
* `getShaclNames()` callers for why that matters) before paying for a full fetch.
|
|
4547
|
+
*/
|
|
4548
|
+
async getShaclTargetClass(name) {
|
|
4549
|
+
const nameMapping = Literal.fromUrl(`literal:string:shacl://${name}`);
|
|
4550
|
+
const shapeUriLinks = await this.get(new LinkQuery({
|
|
4551
|
+
source: nameMapping.toUrl(),
|
|
4552
|
+
predicate: "ad4m://shacl_shape_uri"
|
|
4553
|
+
}));
|
|
4554
|
+
if (shapeUriLinks.length === 0) {
|
|
4555
|
+
return undefined;
|
|
4469
4556
|
}
|
|
4470
|
-
|
|
4557
|
+
const shapeUri = shapeUriLinks[0].data.target;
|
|
4558
|
+
const shapeOwnLinks = await this.get(new LinkQuery({ source: shapeUri }));
|
|
4559
|
+
return shapeOwnLinks.find(l => l.data.predicate === "sh://targetClass")?.data.target;
|
|
4560
|
+
}
|
|
4561
|
+
/**
|
|
4562
|
+
* Get all SHACL shapes stored in this Perspective
|
|
4563
|
+
*/
|
|
4564
|
+
async getAllShacl() {
|
|
4565
|
+
const shapeNames = await this.getShaclNames();
|
|
4566
|
+
// Each shape is fetched independently of the others — resolve them concurrently.
|
|
4567
|
+
// Sequentially awaiting getShacl() per shape means a perspective with N SDNA
|
|
4568
|
+
// models pays N times getShacl()'s own multi-round-trip cost one after another;
|
|
4569
|
+
// over a remote connection with real per-call latency that compounds into the
|
|
4570
|
+
// dominant cost of switching into a perspective at all.
|
|
4571
|
+
const results = await Promise.all(shapeNames.map(async (shapeName) => {
|
|
4572
|
+
const shape = await this.getShacl(shapeName);
|
|
4573
|
+
return shape ? { name: shapeName, shape } : null;
|
|
4574
|
+
}));
|
|
4575
|
+
return results.filter((s) => s !== null);
|
|
4471
4576
|
}
|
|
4472
4577
|
/**
|
|
4473
4578
|
* **Recommended way to add Flow definitions.**
|
|
@@ -14274,6 +14379,7 @@ function buildModelFromJSONSchema(BaseClass, schema, options) {
|
|
|
14274
14379
|
* - Literal-stored properties (equality, comparison, contains, etc.)
|
|
14275
14380
|
* - Reverse relations (belongsToOne / belongsToMany)
|
|
14276
14381
|
* - author / timestamp filters (skipped by buildSPARQLWhereFilters)
|
|
14382
|
+
* - OR / AND / NOT combinators (skipped by buildSPARQLWhereFilters — see below)
|
|
14277
14383
|
*
|
|
14278
14384
|
* When JS-only filters exist, SPARQL-level LIMIT/OFFSET must NOT be applied
|
|
14279
14385
|
* because the database would cap the candidate set before JS filters run,
|
|
@@ -14285,6 +14391,14 @@ function hasJsOnlyWhereFilters(metadata, allRelationsMetadata, where) {
|
|
|
14285
14391
|
for (const [propertyName, condition] of Object.entries(where)) {
|
|
14286
14392
|
if (propertyName === "base" || propertyName === "id")
|
|
14287
14393
|
continue;
|
|
14394
|
+
// OR/AND/NOT: buildSPARQLWhereFilters never emits a SPARQL translation
|
|
14395
|
+
// for these regardless of what their branches contain, so their mere
|
|
14396
|
+
// presence — not just JS-only conditions within a branch — must block
|
|
14397
|
+
// SPARQL-level pagination. Otherwise LIMIT/OFFSET would be applied
|
|
14398
|
+
// before the (Rust-side, post-hydration) combinator filter ever runs.
|
|
14399
|
+
if (propertyName === "OR" || propertyName === "AND" || propertyName === "NOT") {
|
|
14400
|
+
return true;
|
|
14401
|
+
}
|
|
14288
14402
|
// author/timestamp filters are handled in JS
|
|
14289
14403
|
if (propertyName === "author" || propertyName === "timestamp")
|
|
14290
14404
|
return true;
|
|
@@ -14568,6 +14682,10 @@ function buildSPARQLWhereFilters(metadata, _allRelationsMetadata, where) {
|
|
|
14568
14682
|
const joins = [];
|
|
14569
14683
|
const filters = [];
|
|
14570
14684
|
for (const [propertyName, condition] of Object.entries(where)) {
|
|
14685
|
+
// OR/AND/NOT are evaluated Rust-side after hydration; no SPARQL emission needed.
|
|
14686
|
+
if (propertyName === "OR" || propertyName === "AND" || propertyName === "NOT") {
|
|
14687
|
+
continue;
|
|
14688
|
+
}
|
|
14571
14689
|
// 'base' maps to ?source
|
|
14572
14690
|
if (propertyName === "base" || propertyName === "id") {
|
|
14573
14691
|
if (Array.isArray(condition)) {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { CapabilityInput } from "./CapabilityInput";
|
|
2
|
+
export type AuthInfoInput = {
|
|
3
|
+
appDesc: string;
|
|
4
|
+
appDomain: string;
|
|
5
|
+
appIconPath: string | null;
|
|
6
|
+
appName: string;
|
|
7
|
+
appUrl: string | null;
|
|
8
|
+
capabilities: Array<CapabilityInput> | null;
|
|
9
|
+
userDid: string | null;
|
|
10
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|