@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.
Files changed (221) hide show
  1. package/lib/index.cjs +136 -18
  2. package/lib/index.js +136 -18
  3. package/lib/src/generated/rest/AIModelLoadingStatus.d.ts +7 -0
  4. package/lib/src/generated/rest/AIModelLoadingStatus.js +2 -0
  5. package/lib/src/generated/rest/AddAgentInfosRequest.d.ts +3 -0
  6. package/lib/src/generated/rest/AddAgentInfosRequest.js +2 -0
  7. package/lib/src/generated/rest/AddLinkExpressionRequest.d.ts +6 -0
  8. package/lib/src/generated/rest/AddLinkExpressionRequest.js +1 -0
  9. package/lib/src/generated/rest/AddLinkRequest.d.ts +6 -0
  10. package/lib/src/generated/rest/AddLinkRequest.js +1 -0
  11. package/lib/src/generated/rest/AddLinksBulkRequest.d.ts +6 -0
  12. package/lib/src/generated/rest/AddLinksBulkRequest.js +1 -0
  13. package/lib/src/generated/rest/AddSdnaRequest.d.ts +6 -0
  14. package/lib/src/generated/rest/AddSdnaRequest.js +2 -0
  15. package/lib/src/generated/rest/ApplyTemplateRequest.d.ts +4 -0
  16. package/lib/src/generated/rest/ApplyTemplateRequest.js +2 -0
  17. package/lib/src/generated/rest/AuthInfoInput.d.ts +10 -0
  18. package/lib/src/generated/rest/AuthInfoInput.js +1 -0
  19. package/lib/src/generated/rest/BroadcastRequest.d.ts +6 -0
  20. package/lib/src/generated/rest/BroadcastRequest.js +1 -0
  21. package/lib/src/generated/rest/CapabilityInput.d.ts +5 -0
  22. package/lib/src/generated/rest/CapabilityInput.js +1 -0
  23. package/lib/src/generated/rest/CommitBatchRequest.d.ts +3 -0
  24. package/lib/src/generated/rest/CommitBatchRequest.js +2 -0
  25. package/lib/src/generated/rest/ComputeLogEntry.d.ts +9 -0
  26. package/lib/src/generated/rest/ComputeLogEntry.js +2 -0
  27. package/lib/src/generated/rest/CreateExpressionRequest.d.ts +4 -0
  28. package/lib/src/generated/rest/CreateExpressionRequest.js +2 -0
  29. package/lib/src/generated/rest/CreatePerspectiveRequest.d.ts +3 -0
  30. package/lib/src/generated/rest/CreatePerspectiveRequest.js +2 -0
  31. package/lib/src/generated/rest/CreateSubjectRequest.d.ts +6 -0
  32. package/lib/src/generated/rest/CreateSubjectRequest.js +2 -0
  33. package/lib/src/generated/rest/CreateUserRequest.d.ts +4 -0
  34. package/lib/src/generated/rest/CreateUserRequest.js +2 -0
  35. package/lib/src/generated/rest/CreateUserResponse.d.ts +5 -0
  36. package/lib/src/generated/rest/CreateUserResponse.js +2 -0
  37. package/lib/src/generated/rest/DecoratedExpressionProof.d.ts +6 -0
  38. package/lib/src/generated/rest/DecoratedExpressionProof.js +2 -0
  39. package/lib/src/generated/rest/DecoratedLinkExpression.d.ts +10 -0
  40. package/lib/src/generated/rest/DecoratedLinkExpression.js +1 -0
  41. package/lib/src/generated/rest/DisposeQueryRequest.d.ts +3 -0
  42. package/lib/src/generated/rest/DisposeQueryRequest.js +2 -0
  43. package/lib/src/generated/rest/EmailTestRequest.d.ts +6 -0
  44. package/lib/src/generated/rest/EmailTestRequest.js +2 -0
  45. package/lib/src/generated/rest/EmbedRequest.d.ts +4 -0
  46. package/lib/src/generated/rest/EmbedRequest.js +2 -0
  47. package/lib/src/generated/rest/EntanglementProofInput.d.ts +6 -0
  48. package/lib/src/generated/rest/EntanglementProofInput.js +2 -0
  49. package/lib/src/generated/rest/EntanglementProofPreflightRequest.d.ts +4 -0
  50. package/lib/src/generated/rest/EntanglementProofPreflightRequest.js +2 -0
  51. package/lib/src/generated/rest/ExecuteCommandsRequest.d.ts +4 -0
  52. package/lib/src/generated/rest/ExecuteCommandsRequest.js +2 -0
  53. package/lib/src/generated/rest/ExportRequest.d.ts +5 -0
  54. package/lib/src/generated/rest/ExportRequest.js +2 -0
  55. package/lib/src/generated/rest/ExpressionManyRequest.d.ts +3 -0
  56. package/lib/src/generated/rest/ExpressionManyRequest.js +2 -0
  57. package/lib/src/generated/rest/ExpressionProof.d.ts +4 -0
  58. package/lib/src/generated/rest/ExpressionProof.js +2 -0
  59. package/lib/src/generated/rest/ExpressionProofInput.d.ts +6 -0
  60. package/lib/src/generated/rest/ExpressionProofInput.js +2 -0
  61. package/lib/src/generated/rest/FriendSendMessageRequest.d.ts +3 -0
  62. package/lib/src/generated/rest/FriendSendMessageRequest.js +2 -0
  63. package/lib/src/generated/rest/FriendsListRequest.d.ts +3 -0
  64. package/lib/src/generated/rest/FriendsListRequest.js +2 -0
  65. package/lib/src/generated/rest/GenerateAgentRequest.d.ts +3 -0
  66. package/lib/src/generated/rest/GenerateAgentRequest.js +2 -0
  67. package/lib/src/generated/rest/GenerateJwtRequest.d.ts +4 -0
  68. package/lib/src/generated/rest/GenerateJwtRequest.js +2 -0
  69. package/lib/src/generated/rest/GetSubjectDataRequest.d.ts +4 -0
  70. package/lib/src/generated/rest/GetSubjectDataRequest.js +2 -0
  71. package/lib/src/generated/rest/HostingInfoResponse.d.ts +5 -0
  72. package/lib/src/generated/rest/HostingInfoResponse.js +2 -0
  73. package/lib/src/generated/rest/HostingWalletResponse.d.ts +4 -0
  74. package/lib/src/generated/rest/HostingWalletResponse.js +2 -0
  75. package/lib/src/generated/rest/ImportAgentRequest.d.ts +6 -0
  76. package/lib/src/generated/rest/ImportAgentRequest.js +2 -0
  77. package/lib/src/generated/rest/ImportRequest.d.ts +4 -0
  78. package/lib/src/generated/rest/ImportRequest.js +2 -0
  79. package/lib/src/generated/rest/JoinNeighbourhoodRequest.d.ts +3 -0
  80. package/lib/src/generated/rest/JoinNeighbourhoodRequest.js +2 -0
  81. package/lib/src/generated/rest/KeepAliveQueryRequest.d.ts +3 -0
  82. package/lib/src/generated/rest/KeepAliveQueryRequest.js +2 -0
  83. package/lib/src/generated/rest/LanguageMetaInput.d.ts +6 -0
  84. package/lib/src/generated/rest/LanguageMetaInput.js +2 -0
  85. package/lib/src/generated/rest/Link.d.ts +5 -0
  86. package/lib/src/generated/rest/Link.js +2 -0
  87. package/lib/src/generated/rest/LinkExpression.d.ts +10 -0
  88. package/lib/src/generated/rest/LinkExpression.js +1 -0
  89. package/lib/src/generated/rest/LinkExpressionInput.d.ts +10 -0
  90. package/lib/src/generated/rest/LinkExpressionInput.js +1 -0
  91. package/lib/src/generated/rest/LinkInput.d.ts +5 -0
  92. package/lib/src/generated/rest/LinkInput.js +2 -0
  93. package/lib/src/generated/rest/LinkLanguageTemplatesRequest.d.ts +3 -0
  94. package/lib/src/generated/rest/LinkLanguageTemplatesRequest.js +2 -0
  95. package/lib/src/generated/rest/LinkMutationRequest.d.ts +12 -0
  96. package/lib/src/generated/rest/LinkMutationRequest.js +1 -0
  97. package/lib/src/generated/rest/LinkMutationResponse.d.ts +9 -0
  98. package/lib/src/generated/rest/LinkMutationResponse.js +1 -0
  99. package/lib/src/generated/rest/LinkMutations.d.ts +6 -0
  100. package/lib/src/generated/rest/LinkMutations.js +1 -0
  101. package/lib/src/generated/rest/LinkMutationsRequest.d.ts +5 -0
  102. package/lib/src/generated/rest/LinkMutationsRequest.js +1 -0
  103. package/lib/src/generated/rest/LinkStatus.d.ts +1 -0
  104. package/lib/src/generated/rest/LinkStatus.js +2 -0
  105. package/lib/src/generated/rest/LinkUpdateInput.d.ts +5 -0
  106. package/lib/src/generated/rest/LinkUpdateInput.js +1 -0
  107. package/lib/src/generated/rest/LockAgentRequest.d.ts +3 -0
  108. package/lib/src/generated/rest/LockAgentRequest.js +2 -0
  109. package/lib/src/generated/rest/LoginUserRequest.d.ts +5 -0
  110. package/lib/src/generated/rest/LoginUserRequest.js +2 -0
  111. package/lib/src/generated/rest/ModelType.d.ts +1 -0
  112. package/lib/src/generated/rest/ModelType.js +2 -0
  113. package/lib/src/generated/rest/NotificationGrantRequest.d.ts +3 -0
  114. package/lib/src/generated/rest/NotificationGrantRequest.js +2 -0
  115. package/lib/src/generated/rest/NotificationInput.d.ts +10 -0
  116. package/lib/src/generated/rest/NotificationInput.js +2 -0
  117. package/lib/src/generated/rest/OpenLinkRequest.d.ts +3 -0
  118. package/lib/src/generated/rest/OpenLinkRequest.js +2 -0
  119. package/lib/src/generated/rest/PermitCapabilityRequest.d.ts +3 -0
  120. package/lib/src/generated/rest/PermitCapabilityRequest.js +2 -0
  121. package/lib/src/generated/rest/PerspectiveInput.d.ts +4 -0
  122. package/lib/src/generated/rest/PerspectiveInput.js +1 -0
  123. package/lib/src/generated/rest/PromptRequest.d.ts +4 -0
  124. package/lib/src/generated/rest/PromptRequest.js +2 -0
  125. package/lib/src/generated/rest/PublicPerspectiveInput.d.ts +4 -0
  126. package/lib/src/generated/rest/PublicPerspectiveInput.js +1 -0
  127. package/lib/src/generated/rest/PublishLanguageRequest.d.ts +5 -0
  128. package/lib/src/generated/rest/PublishLanguageRequest.js +1 -0
  129. package/lib/src/generated/rest/PublishNeighbourhoodRequest.d.ts +6 -0
  130. package/lib/src/generated/rest/PublishNeighbourhoodRequest.js +1 -0
  131. package/lib/src/generated/rest/QueryRequest.d.ts +7 -0
  132. package/lib/src/generated/rest/QueryRequest.js +2 -0
  133. package/lib/src/generated/rest/RemoveLinkRequest.d.ts +5 -0
  134. package/lib/src/generated/rest/RemoveLinkRequest.js +1 -0
  135. package/lib/src/generated/rest/RemoveLinksBulkRequest.d.ts +5 -0
  136. package/lib/src/generated/rest/RemoveLinksBulkRequest.js +1 -0
  137. package/lib/src/generated/rest/RequestCapabilityRequest.d.ts +4 -0
  138. package/lib/src/generated/rest/RequestCapabilityRequest.js +1 -0
  139. package/lib/src/generated/rest/RequestPaymentRequest.d.ts +3 -0
  140. package/lib/src/generated/rest/RequestPaymentRequest.js +2 -0
  141. package/lib/src/generated/rest/RequestVerificationRequest.d.ts +4 -0
  142. package/lib/src/generated/rest/RequestVerificationRequest.js +2 -0
  143. package/lib/src/generated/rest/ResourceInput.d.ts +4 -0
  144. package/lib/src/generated/rest/ResourceInput.js +2 -0
  145. package/lib/src/generated/rest/SetDefaultModelRequest.d.ts +4 -0
  146. package/lib/src/generated/rest/SetDefaultModelRequest.js +1 -0
  147. package/lib/src/generated/rest/SetFreeHostingEnabledRequest.d.ts +3 -0
  148. package/lib/src/generated/rest/SetFreeHostingEnabledRequest.js +2 -0
  149. package/lib/src/generated/rest/SetHotWalletAddressRequest.d.ts +3 -0
  150. package/lib/src/generated/rest/SetHotWalletAddressRequest.js +2 -0
  151. package/lib/src/generated/rest/SetMultiUserRequest.d.ts +3 -0
  152. package/lib/src/generated/rest/SetMultiUserRequest.js +2 -0
  153. package/lib/src/generated/rest/SetOnlineStatusRequest.d.ts +5 -0
  154. package/lib/src/generated/rest/SetOnlineStatusRequest.js +1 -0
  155. package/lib/src/generated/rest/SetStatusRequest.d.ts +3 -0
  156. package/lib/src/generated/rest/SetStatusRequest.js +2 -0
  157. package/lib/src/generated/rest/SetUserFreeAccessRequest.d.ts +4 -0
  158. package/lib/src/generated/rest/SetUserFreeAccessRequest.js +2 -0
  159. package/lib/src/generated/rest/SignMessageRequest.d.ts +3 -0
  160. package/lib/src/generated/rest/SignMessageRequest.js +2 -0
  161. package/lib/src/generated/rest/SignalRequest.d.ts +6 -0
  162. package/lib/src/generated/rest/SignalRequest.js +1 -0
  163. package/lib/src/generated/rest/SubscribeQueryRequest.d.ts +3 -0
  164. package/lib/src/generated/rest/SubscribeQueryRequest.js +2 -0
  165. package/lib/src/generated/rest/SubscribeQueryResponse.d.ts +4 -0
  166. package/lib/src/generated/rest/SubscribeQueryResponse.js +2 -0
  167. package/lib/src/generated/rest/TrustedAgentsRequest.d.ts +3 -0
  168. package/lib/src/generated/rest/TrustedAgentsRequest.js +2 -0
  169. package/lib/src/generated/rest/UnlockAgentRequest.d.ts +4 -0
  170. package/lib/src/generated/rest/UnlockAgentRequest.js +2 -0
  171. package/lib/src/generated/rest/UpdateLinkRequest.d.ts +7 -0
  172. package/lib/src/generated/rest/UpdateLinkRequest.js +1 -0
  173. package/lib/src/generated/rest/UpdatePerspectiveRequest.d.ts +3 -0
  174. package/lib/src/generated/rest/UpdatePerspectiveRequest.js +2 -0
  175. package/lib/src/generated/rest/UpdateProfileRequest.d.ts +5 -0
  176. package/lib/src/generated/rest/UpdateProfileRequest.js +1 -0
  177. package/lib/src/generated/rest/UserStatistics.d.ts +9 -0
  178. package/lib/src/generated/rest/UserStatistics.js +2 -0
  179. package/lib/src/generated/rest/VerificationRequestResult.d.ts +6 -0
  180. package/lib/src/generated/rest/VerificationRequestResult.js +2 -0
  181. package/lib/src/generated/rest/VerifyEmailRequest.d.ts +6 -0
  182. package/lib/src/generated/rest/VerifyEmailRequest.js +2 -0
  183. package/lib/src/generated/rest/VerifySignatureRequest.d.ts +5 -0
  184. package/lib/src/generated/rest/VerifySignatureRequest.js +2 -0
  185. package/lib/src/generated/rest/WriteSettingsRequest.d.ts +3 -0
  186. package/lib/src/generated/rest/WriteSettingsRequest.js +2 -0
  187. package/lib/src/generated/rest/index.d.ts +73 -0
  188. package/lib/src/generated/rest/index.js +8 -0
  189. package/lib/src/generated/rest/routes.d.ts +587 -0
  190. package/lib/src/generated/rest/routes.js +3 -0
  191. package/lib/src/model/Ad4mModel.test.js +735 -480
  192. package/lib/src/model/decorators.d.ts +20 -1
  193. package/lib/src/model/decorators.js +33 -2
  194. package/lib/src/model/query-sparql.d.ts +1 -0
  195. package/lib/src/model/query-sparql.js +13 -0
  196. package/lib/src/model/query-sparql.test.js +10 -92
  197. package/lib/src/model/query-surreal.d.ts +44 -0
  198. package/lib/src/model/query-surreal.js +249 -0
  199. package/lib/src/model/shacl-gen.d.ts +15 -1
  200. package/lib/src/model/shacl-gen.js +23 -1
  201. package/lib/src/model/surreal-utils.d.ts +42 -0
  202. package/lib/src/model/surreal-utils.js +128 -0
  203. package/lib/src/model/types.d.ts +14 -3
  204. package/lib/src/neighbourhood/NeighbourhoodProxy.test.js +33 -33
  205. package/lib/src/perspectives/PerspectiveProxy.d.ts +17 -0
  206. package/lib/src/perspectives/PerspectiveProxy.js +67 -15
  207. package/lib/src/perspectives/PerspectiveProxy.test.d.ts +1 -0
  208. package/lib/src/perspectives/PerspectiveProxy.test.js +34 -0
  209. package/lib/src/restClient.d.ts +52 -0
  210. package/lib/src/restClient.js +227 -0
  211. package/lib/src/shacl/SHACLShape.test.js +0 -82
  212. package/package.json +11 -8
  213. package/src/model/Ad4mModel.test.ts +103 -0
  214. package/src/model/decorators.ts +37 -3
  215. package/src/model/query-sparql.test.ts +148 -0
  216. package/src/model/query-sparql.ts +15 -0
  217. package/src/model/shacl-gen.ts +23 -0
  218. package/src/model/types.ts +28 -6
  219. package/src/perspectives/PerspectiveProxy.ts +73 -20
  220. package/lib/src/model/model-manifest.d.ts +0 -41
  221. 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 result = compute();
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 uri of sourceUris) {
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
- * Get all SHACL shapes stored in this Perspective
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 getAllShacl() {
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
- const shapes = [];
4465
- for (const nameLink of nameLinks) {
4466
- const nameUrl = nameLink.data.target;
4467
- const name = Literal.fromUrl(nameUrl).get();
4468
- const shapeName = name.replace('shacl://', '');
4469
- const shape = await this.getShacl(shapeName);
4470
- if (shape) {
4471
- shapes.push({ name: shapeName, shape });
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
- return shapes;
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 result = compute();
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 uri of sourceUris) {
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
- * Get all SHACL shapes stored in this Perspective
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 getAllShacl() {
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
- const shapes = [];
4461
- for (const nameLink of nameLinks) {
4462
- const nameUrl = nameLink.data.target;
4463
- const name = Literal.fromUrl(nameUrl).get();
4464
- const shapeName = name.replace('shacl://', '');
4465
- const shape = await this.getShacl(shapeName);
4466
- if (shape) {
4467
- shapes.push({ name: shapeName, shape });
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
- return shapes;
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,7 @@
1
+ export type AIModelLoadingStatus = {
2
+ model: string;
3
+ progress: number;
4
+ status: string;
5
+ downloaded: boolean;
6
+ loaded: boolean;
7
+ };
@@ -0,0 +1,2 @@
1
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
+ export {};
@@ -0,0 +1,3 @@
1
+ export type AddAgentInfosRequest = {
2
+ agentInfos: Array<string>;
3
+ };
@@ -0,0 +1,2 @@
1
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
+ export {};
@@ -0,0 +1,6 @@
1
+ import type { LinkExpression } from "./LinkExpression";
2
+ export type AddLinkExpressionRequest = {
3
+ link: LinkExpression;
4
+ status: string | null;
5
+ batchId: string | null;
6
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,6 @@
1
+ import type { LinkInput } from "./LinkInput";
2
+ export type AddLinkRequest = {
3
+ link: LinkInput;
4
+ status: string | null;
5
+ batchId: string | null;
6
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,6 @@
1
+ import type { LinkInput } from "./LinkInput";
2
+ export type AddLinksBulkRequest = {
3
+ links: Array<LinkInput>;
4
+ status: string | null;
5
+ batchId: string | null;
6
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,6 @@
1
+ export type AddSdnaRequest = {
2
+ name: string;
3
+ sdnaCode: string | null;
4
+ sdnaType: string;
5
+ shaclJson: string | null;
6
+ };
@@ -0,0 +1,2 @@
1
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
+ export {};
@@ -0,0 +1,4 @@
1
+ export type ApplyTemplateRequest = {
2
+ sourceLanguageHash: string;
3
+ templateData: string;
4
+ };
@@ -0,0 +1,2 @@
1
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
+ 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,6 @@
1
+ import type { PerspectiveInput } from "./PerspectiveInput";
2
+ export type BroadcastRequest = {
3
+ payload: PerspectiveInput;
4
+ signed: boolean | null;
5
+ loopback: boolean | null;
6
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,5 @@
1
+ import type { ResourceInput } from "./ResourceInput";
2
+ export type CapabilityInput = {
3
+ can: Array<string>;
4
+ with: ResourceInput;
5
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,3 @@
1
+ export type CommitBatchRequest = {
2
+ batchId: string;
3
+ };
@@ -0,0 +1,2 @@
1
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
+ export {};
@@ -0,0 +1,9 @@
1
+ export type ComputeLogEntry = {
2
+ id: number;
3
+ userEmail: string;
4
+ timestamp: string;
5
+ operation: string;
6
+ summary: string | null;
7
+ cost: number;
8
+ creditsAfter: number;
9
+ };
@@ -0,0 +1,2 @@
1
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
+ export {};
@@ -0,0 +1,4 @@
1
+ export type CreateExpressionRequest = {
2
+ content: string;
3
+ languageAddress: string;
4
+ };
@@ -0,0 +1,2 @@
1
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
+ export {};
@@ -0,0 +1,3 @@
1
+ export type CreatePerspectiveRequest = {
2
+ name: string;
3
+ };
@@ -0,0 +1,2 @@
1
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
+ export {};
@@ -0,0 +1,6 @@
1
+ export type CreateSubjectRequest = {
2
+ subjectClass: string;
3
+ expressionAddress: string;
4
+ initialValues: string | null;
5
+ batchId: string | null;
6
+ };
@@ -0,0 +1,2 @@
1
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
+ export {};
@@ -0,0 +1,4 @@
1
+ export type CreateUserRequest = {
2
+ email: string;
3
+ password: string;
4
+ };
@@ -0,0 +1,2 @@
1
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
+ export {};