@coasys/ad4m 0.13.0-test-3 → 0.13.0-test-5

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 (337) hide show
  1. package/README.md +2 -25
  2. package/jest-setup.ts +1 -1
  3. package/lib/index.cjs +6717 -15519
  4. package/lib/index.js +4811 -13662
  5. package/lib/src/Ad4mClient.d.ts +7 -3
  6. package/lib/src/Ad4mClient.js +39 -13
  7. package/lib/src/agent/Agent.js +26 -272
  8. package/lib/src/agent/AgentClient.d.ts +10 -21
  9. package/lib/src/agent/AgentClient.js +75 -427
  10. package/lib/src/agent/AgentStatus.js +2 -37
  11. package/lib/src/ai/AIClient.d.ts +12 -4
  12. package/lib/src/ai/AIClient.js +81 -285
  13. package/lib/src/ai/AITypes.d.ts +55 -0
  14. package/lib/src/ai/AITypes.js +18 -0
  15. package/lib/src/ai/Tasks.js +10 -133
  16. package/lib/src/apiClient.d.ts +52 -0
  17. package/lib/src/apiClient.js +231 -0
  18. package/lib/src/expression/Expression.d.ts +1 -1
  19. package/lib/src/expression/Expression.js +13 -122
  20. package/lib/src/expression/ExpressionClient.d.ts +3 -3
  21. package/lib/src/expression/ExpressionClient.js +13 -76
  22. package/lib/src/expression/ExpressionRef.js +2 -25
  23. package/lib/src/generated/api/AIModelLoadingStatus.d.ts +7 -0
  24. package/lib/src/generated/api/AIModelLoadingStatus.js +2 -0
  25. package/lib/src/generated/api/AddLinkExpressionRequest.d.ts +6 -0
  26. package/lib/src/generated/api/AddLinkExpressionRequest.js +1 -0
  27. package/lib/src/generated/api/AddLinkRequest.d.ts +6 -0
  28. package/lib/src/generated/api/AddLinkRequest.js +1 -0
  29. package/lib/src/generated/api/AddLinksBulkRequest.d.ts +6 -0
  30. package/lib/src/generated/api/AddLinksBulkRequest.js +1 -0
  31. package/lib/src/generated/api/AddSdnaRequest.d.ts +6 -0
  32. package/lib/src/generated/api/AddSdnaRequest.js +2 -0
  33. package/lib/src/generated/api/ApplyTemplateRequest.d.ts +4 -0
  34. package/lib/src/generated/api/ApplyTemplateRequest.js +2 -0
  35. package/lib/src/generated/api/AuthInfoInput.d.ts +10 -0
  36. package/lib/src/generated/api/AuthInfoInput.js +1 -0
  37. package/lib/src/generated/api/CapabilityInput.d.ts +5 -0
  38. package/lib/src/generated/api/CapabilityInput.js +1 -0
  39. package/lib/src/generated/api/CommitBatchRequest.d.ts +3 -0
  40. package/lib/src/generated/api/CommitBatchRequest.js +2 -0
  41. package/lib/src/generated/api/ComputeLogEntry.d.ts +9 -0
  42. package/lib/src/generated/api/ComputeLogEntry.js +2 -0
  43. package/lib/src/generated/api/CreateExpressionRequest.d.ts +4 -0
  44. package/lib/src/generated/api/CreateExpressionRequest.js +2 -0
  45. package/lib/src/generated/api/CreatePerspectiveRequest.d.ts +3 -0
  46. package/lib/src/generated/api/CreatePerspectiveRequest.js +2 -0
  47. package/lib/src/generated/api/CreateSubjectRequest.d.ts +6 -0
  48. package/lib/src/generated/api/CreateSubjectRequest.js +2 -0
  49. package/lib/src/generated/api/EmbedRequest.d.ts +4 -0
  50. package/lib/src/generated/api/EmbedRequest.js +2 -0
  51. package/lib/src/generated/api/EntanglementProofInput.d.ts +6 -0
  52. package/lib/src/generated/api/EntanglementProofInput.js +2 -0
  53. package/lib/src/generated/api/ExecuteCommandsRequest.d.ts +4 -0
  54. package/lib/src/generated/api/ExecuteCommandsRequest.js +2 -0
  55. package/lib/src/generated/api/ExportRequest.d.ts +5 -0
  56. package/lib/src/generated/api/ExportRequest.js +2 -0
  57. package/lib/src/generated/api/ExpressionManyRequest.d.ts +3 -0
  58. package/lib/src/generated/api/ExpressionManyRequest.js +2 -0
  59. package/lib/src/generated/api/ExpressionProof.d.ts +4 -0
  60. package/lib/src/generated/api/ExpressionProof.js +2 -0
  61. package/lib/src/generated/api/ExpressionProofInput.d.ts +6 -0
  62. package/lib/src/generated/api/ExpressionProofInput.js +2 -0
  63. package/lib/src/generated/api/FriendSendMessageRequest.d.ts +3 -0
  64. package/lib/src/generated/api/FriendSendMessageRequest.js +2 -0
  65. package/lib/src/generated/api/FriendsListRequest.d.ts +3 -0
  66. package/lib/src/generated/api/FriendsListRequest.js +2 -0
  67. package/lib/src/generated/api/GenerateAgentRequest.d.ts +3 -0
  68. package/lib/src/generated/api/GenerateAgentRequest.js +2 -0
  69. package/lib/src/generated/api/GenerateJwtRequest.d.ts +4 -0
  70. package/lib/src/generated/api/GenerateJwtRequest.js +2 -0
  71. package/lib/src/generated/api/GetSubjectDataRequest.d.ts +4 -0
  72. package/lib/src/generated/api/GetSubjectDataRequest.js +2 -0
  73. package/lib/src/generated/api/ImportAgentRequest.d.ts +6 -0
  74. package/lib/src/generated/api/ImportAgentRequest.js +2 -0
  75. package/lib/src/generated/api/ImportRequest.d.ts +4 -0
  76. package/lib/src/generated/api/ImportRequest.js +2 -0
  77. package/lib/src/generated/api/JoinNeighbourhoodRequest.d.ts +3 -0
  78. package/lib/src/generated/api/JoinNeighbourhoodRequest.js +2 -0
  79. package/lib/src/generated/api/LanguageMetaInput.d.ts +6 -0
  80. package/lib/src/generated/api/LanguageMetaInput.js +2 -0
  81. package/lib/src/generated/api/Link.d.ts +5 -0
  82. package/lib/src/generated/api/Link.js +2 -0
  83. package/lib/src/generated/api/LinkExpression.d.ts +10 -0
  84. package/lib/src/generated/api/LinkExpression.js +1 -0
  85. package/lib/src/generated/api/LinkExpressionInput.d.ts +10 -0
  86. package/lib/src/generated/api/LinkExpressionInput.js +1 -0
  87. package/lib/src/generated/api/LinkInput.d.ts +5 -0
  88. package/lib/src/generated/api/LinkInput.js +2 -0
  89. package/lib/src/generated/api/LinkLanguageTemplatesRequest.d.ts +3 -0
  90. package/lib/src/generated/api/LinkLanguageTemplatesRequest.js +2 -0
  91. package/lib/src/generated/api/LinkMutations.d.ts +6 -0
  92. package/lib/src/generated/api/LinkMutations.js +1 -0
  93. package/lib/src/generated/api/LinkStatus.d.ts +1 -0
  94. package/lib/src/generated/api/LinkStatus.js +2 -0
  95. package/lib/src/generated/api/LockAgentRequest.d.ts +3 -0
  96. package/lib/src/generated/api/LockAgentRequest.js +2 -0
  97. package/lib/src/generated/api/ModelType.d.ts +1 -0
  98. package/lib/src/generated/api/ModelType.js +2 -0
  99. package/lib/src/generated/api/NotificationInput.d.ts +10 -0
  100. package/lib/src/generated/api/NotificationInput.js +2 -0
  101. package/lib/src/generated/api/OpenLinkRequest.d.ts +3 -0
  102. package/lib/src/generated/api/OpenLinkRequest.js +2 -0
  103. package/lib/src/generated/api/PermitCapabilityRequest.d.ts +3 -0
  104. package/lib/src/generated/api/PermitCapabilityRequest.js +2 -0
  105. package/lib/src/generated/api/PerspectiveInput.d.ts +4 -0
  106. package/lib/src/generated/api/PerspectiveInput.js +1 -0
  107. package/lib/src/generated/api/PromptRequest.d.ts +4 -0
  108. package/lib/src/generated/api/PromptRequest.js +2 -0
  109. package/lib/src/generated/api/PublishLanguageRequest.d.ts +5 -0
  110. package/lib/src/generated/api/PublishLanguageRequest.js +1 -0
  111. package/lib/src/generated/api/PublishNeighbourhoodRequest.d.ts +6 -0
  112. package/lib/src/generated/api/PublishNeighbourhoodRequest.js +1 -0
  113. package/lib/src/generated/api/QueryRequest.d.ts +7 -0
  114. package/lib/src/generated/api/QueryRequest.js +2 -0
  115. package/lib/src/generated/api/RemoveLinkRequest.d.ts +5 -0
  116. package/lib/src/generated/api/RemoveLinkRequest.js +1 -0
  117. package/lib/src/generated/api/RemoveLinksBulkRequest.d.ts +5 -0
  118. package/lib/src/generated/api/RemoveLinksBulkRequest.js +1 -0
  119. package/lib/src/generated/api/ResourceInput.d.ts +4 -0
  120. package/lib/src/generated/api/ResourceInput.js +2 -0
  121. package/lib/src/generated/api/SetDefaultModelRequest.d.ts +4 -0
  122. package/lib/src/generated/api/SetDefaultModelRequest.js +1 -0
  123. package/lib/src/generated/api/SetFreeHostingEnabledRequest.d.ts +3 -0
  124. package/lib/src/generated/api/SetFreeHostingEnabledRequest.js +2 -0
  125. package/lib/src/generated/api/SetMultiUserRequest.d.ts +3 -0
  126. package/lib/src/generated/api/SetMultiUserRequest.js +2 -0
  127. package/lib/src/generated/api/SetStatusRequest.d.ts +3 -0
  128. package/lib/src/generated/api/SetStatusRequest.js +2 -0
  129. package/lib/src/generated/api/SignMessageRequest.d.ts +3 -0
  130. package/lib/src/generated/api/SignMessageRequest.js +2 -0
  131. package/lib/src/generated/api/TrustedAgentsRequest.d.ts +3 -0
  132. package/lib/src/generated/api/TrustedAgentsRequest.js +2 -0
  133. package/lib/src/generated/api/UnlockAgentRequest.d.ts +4 -0
  134. package/lib/src/generated/api/UnlockAgentRequest.js +2 -0
  135. package/lib/src/generated/api/UpdateLinkRequest.d.ts +7 -0
  136. package/lib/src/generated/api/UpdateLinkRequest.js +1 -0
  137. package/lib/src/generated/api/UpdatePerspectiveRequest.d.ts +3 -0
  138. package/lib/src/generated/api/UpdatePerspectiveRequest.js +2 -0
  139. package/lib/src/generated/api/UserStatistics.d.ts +9 -0
  140. package/lib/src/generated/api/UserStatistics.js +2 -0
  141. package/lib/src/generated/api/VerificationRequestResult.d.ts +6 -0
  142. package/lib/src/generated/api/VerificationRequestResult.js +2 -0
  143. package/lib/src/generated/api/VerifySignatureRequest.d.ts +5 -0
  144. package/lib/src/generated/api/VerifySignatureRequest.js +2 -0
  145. package/lib/src/generated/api/WriteSettingsRequest.d.ts +3 -0
  146. package/lib/src/generated/api/WriteSettingsRequest.js +2 -0
  147. package/lib/src/generated/api/index.d.ts +42 -0
  148. package/lib/src/generated/api/index.js +7 -0
  149. package/lib/src/index.d.ts +6 -1
  150. package/lib/src/index.js +6 -1
  151. package/lib/src/jestSetup.d.ts +0 -1
  152. package/lib/src/jestSetup.js +1 -1
  153. package/lib/src/language/Icon.js +2 -21
  154. package/lib/src/language/Language.d.ts +1 -1
  155. package/lib/src/language/Language.js +10 -76
  156. package/lib/src/language/LanguageClient.d.ts +2 -2
  157. package/lib/src/language/LanguageClient.js +15 -105
  158. package/lib/src/language/LanguageHandle.js +2 -41
  159. package/lib/src/language/LanguageMeta.js +4 -75
  160. package/lib/src/language/LanguageRef.js +2 -25
  161. package/lib/src/links/Links.js +14 -111
  162. package/lib/src/model/Ad4mModel.d.ts +76 -44
  163. package/lib/src/model/Ad4mModel.js +635 -479
  164. package/lib/src/model/Ad4mModel.test.js +371 -815
  165. package/lib/src/model/ModelQueryBuilder.d.ts +15 -27
  166. package/lib/src/model/ModelQueryBuilder.js +163 -224
  167. package/lib/src/model/decorators.d.ts +22 -0
  168. package/lib/src/model/decorators.js +7 -0
  169. package/lib/src/model/hydration.d.ts +3 -93
  170. package/lib/src/model/hydration.js +3 -970
  171. package/lib/src/model/index.d.ts +0 -4
  172. package/lib/src/model/index.js +0 -4
  173. package/lib/src/model/model-manifest.d.ts +41 -0
  174. package/lib/src/model/model-manifest.js +11 -0
  175. package/lib/src/model/query-sparql.d.ts +4 -67
  176. package/lib/src/model/query-sparql.js +26 -322
  177. package/lib/src/model/query-sparql.test.js +35 -218
  178. package/lib/src/model/query-utils.d.ts +1 -0
  179. package/lib/src/model/query-utils.js +46 -1
  180. package/lib/src/model/shacl-gen.js +4 -0
  181. package/lib/src/model/types.d.ts +51 -43
  182. package/lib/src/model/types.js +4 -1
  183. package/lib/src/neighbourhood/Neighbourhood.js +4 -32
  184. package/lib/src/neighbourhood/NeighbourhoodClient.d.ts +3 -3
  185. package/lib/src/neighbourhood/NeighbourhoodClient.js +40 -203
  186. package/lib/src/perspectives/LinkQuery.js +2 -42
  187. package/lib/src/perspectives/Perspective.d.ts +1 -1
  188. package/lib/src/perspectives/Perspective.js +10 -52
  189. package/lib/src/perspectives/PerspectiveClient.d.ts +13 -17
  190. package/lib/src/perspectives/PerspectiveClient.js +179 -429
  191. package/lib/src/perspectives/PerspectiveClient.test.js +55 -0
  192. package/lib/src/perspectives/PerspectiveDiff.js +4 -31
  193. package/lib/src/perspectives/PerspectiveHandle.js +3 -43
  194. package/lib/src/perspectives/PerspectiveProxy.d.ts +106 -71
  195. package/lib/src/perspectives/PerspectiveProxy.js +289 -310
  196. package/lib/src/runtime/RuntimeClient.d.ts +6 -6
  197. package/lib/src/runtime/RuntimeClient.js +93 -467
  198. package/lib/src/runtime/RuntimeTypes.d.ts +101 -0
  199. package/lib/src/runtime/RuntimeTypes.js +45 -0
  200. package/lib/src/shacl/SHACLShape.d.ts +7 -0
  201. package/lib/src/shacl/SHACLShape.js +19 -0
  202. package/lib/src/shacl/SHACLShape.test.js +82 -0
  203. package/lib/src/typeDefs.js +3 -628
  204. package/package.json +6 -18
  205. package/rollup.config.js +0 -7
  206. package/src/Ad4mClient.test.ts +1179 -1340
  207. package/src/Ad4mClient.ts +40 -15
  208. package/src/agent/Agent.ts +0 -99
  209. package/src/agent/AgentClient.ts +112 -526
  210. package/src/agent/AgentStatus.ts +0 -12
  211. package/src/ai/AIClient.ts +96 -296
  212. package/src/ai/AITypes.ts +66 -0
  213. package/src/ai/Tasks.ts +0 -52
  214. package/src/apiClient.ts +283 -0
  215. package/src/expression/Expression.ts +3 -43
  216. package/src/expression/ExpressionClient.ts +14 -77
  217. package/src/expression/ExpressionRef.ts +0 -6
  218. package/src/generated/api/AIModelLoadingStatus.ts +3 -0
  219. package/src/generated/api/AddLinkExpressionRequest.ts +4 -0
  220. package/src/generated/api/AddLinkRequest.ts +4 -0
  221. package/src/generated/api/AddLinksBulkRequest.ts +4 -0
  222. package/src/generated/api/AddSdnaRequest.ts +3 -0
  223. package/src/generated/api/ApplyTemplateRequest.ts +3 -0
  224. package/src/generated/api/AuthInfoInput.ts +4 -0
  225. package/src/generated/api/CapabilityInput.ts +4 -0
  226. package/src/generated/api/CommitBatchRequest.ts +3 -0
  227. package/src/generated/api/ComputeLogEntry.ts +3 -0
  228. package/src/generated/api/CreateExpressionRequest.ts +3 -0
  229. package/src/generated/api/CreatePerspectiveRequest.ts +3 -0
  230. package/src/generated/api/CreateSubjectRequest.ts +3 -0
  231. package/src/generated/api/EmbedRequest.ts +3 -0
  232. package/src/generated/api/EntanglementProofInput.ts +3 -0
  233. package/src/generated/api/ExecuteCommandsRequest.ts +3 -0
  234. package/src/generated/api/ExportRequest.ts +3 -0
  235. package/src/generated/api/ExpressionManyRequest.ts +3 -0
  236. package/src/generated/api/ExpressionProof.ts +3 -0
  237. package/src/generated/api/ExpressionProofInput.ts +3 -0
  238. package/src/generated/api/FriendSendMessageRequest.ts +3 -0
  239. package/src/generated/api/FriendsListRequest.ts +3 -0
  240. package/src/generated/api/GenerateAgentRequest.ts +3 -0
  241. package/src/generated/api/GenerateJwtRequest.ts +3 -0
  242. package/src/generated/api/GetSubjectDataRequest.ts +3 -0
  243. package/src/generated/api/ImportAgentRequest.ts +3 -0
  244. package/src/generated/api/ImportRequest.ts +3 -0
  245. package/src/generated/api/JoinNeighbourhoodRequest.ts +3 -0
  246. package/src/generated/api/LanguageMetaInput.ts +3 -0
  247. package/src/generated/api/Link.ts +3 -0
  248. package/src/generated/api/LinkExpression.ts +6 -0
  249. package/src/generated/api/LinkExpressionInput.ts +6 -0
  250. package/src/generated/api/LinkInput.ts +3 -0
  251. package/src/generated/api/LinkLanguageTemplatesRequest.ts +3 -0
  252. package/src/generated/api/LinkMutations.ts +5 -0
  253. package/src/generated/api/LinkStatus.ts +3 -0
  254. package/src/generated/api/LockAgentRequest.ts +3 -0
  255. package/src/generated/api/ModelType.ts +3 -0
  256. package/src/generated/api/NotificationInput.ts +3 -0
  257. package/src/generated/api/OpenLinkRequest.ts +3 -0
  258. package/src/generated/api/PermitCapabilityRequest.ts +3 -0
  259. package/src/generated/api/PerspectiveInput.ts +4 -0
  260. package/src/generated/api/PromptRequest.ts +3 -0
  261. package/src/generated/api/PublishLanguageRequest.ts +4 -0
  262. package/src/generated/api/PublishNeighbourhoodRequest.ts +4 -0
  263. package/src/generated/api/QueryRequest.ts +6 -0
  264. package/src/generated/api/RemoveLinkRequest.ts +4 -0
  265. package/src/generated/api/RemoveLinksBulkRequest.ts +4 -0
  266. package/src/generated/api/ResourceInput.ts +3 -0
  267. package/src/generated/api/SetDefaultModelRequest.ts +4 -0
  268. package/src/generated/api/SetFreeHostingEnabledRequest.ts +3 -0
  269. package/src/generated/api/SetMultiUserRequest.ts +3 -0
  270. package/src/generated/api/SetStatusRequest.ts +3 -0
  271. package/src/generated/api/SignMessageRequest.ts +3 -0
  272. package/src/generated/api/TrustedAgentsRequest.ts +3 -0
  273. package/src/generated/api/UnlockAgentRequest.ts +3 -0
  274. package/src/generated/api/UpdateLinkRequest.ts +5 -0
  275. package/src/generated/api/UpdatePerspectiveRequest.ts +3 -0
  276. package/src/generated/api/UserStatistics.ts +3 -0
  277. package/src/generated/api/VerificationRequestResult.ts +3 -0
  278. package/src/generated/api/VerifySignatureRequest.ts +3 -0
  279. package/src/generated/api/WriteSettingsRequest.ts +3 -0
  280. package/src/generated/api/index.ts +49 -0
  281. package/src/index.ts +6 -1
  282. package/src/jestSetup.ts +1 -1
  283. package/src/language/Icon.ts +0 -4
  284. package/src/language/Language.ts +2 -23
  285. package/src/language/LanguageClient.ts +21 -132
  286. package/src/language/LanguageHandle.ts +0 -14
  287. package/src/language/LanguageMeta.ts +0 -29
  288. package/src/language/LanguageRef.ts +0 -7
  289. package/src/links/Links.ts +0 -37
  290. package/src/model/Ad4mModel.test.ts +766 -1173
  291. package/src/model/Ad4mModel.ts +664 -529
  292. package/src/model/ModelQueryBuilder.ts +203 -251
  293. package/src/model/decorators.ts +29 -0
  294. package/src/model/hydration.ts +3 -1037
  295. package/src/model/index.ts +0 -4
  296. package/src/model/query-sparql.test.ts +34 -242
  297. package/src/model/query-sparql.ts +27 -337
  298. package/src/model/query-utils.ts +47 -2
  299. package/src/model/shacl-gen.ts +5 -0
  300. package/src/model/types.ts +55 -44
  301. package/src/neighbourhood/Neighbourhood.ts +0 -9
  302. package/src/neighbourhood/NeighbourhoodClient.ts +42 -207
  303. package/src/neighbourhood/NeighbourhoodProxy.test.ts +34 -36
  304. package/src/perspectives/LinkQuery.ts +0 -15
  305. package/src/perspectives/Perspective.ts +1 -12
  306. package/src/perspectives/PerspectiveClient.test.ts +206 -148
  307. package/src/perspectives/PerspectiveClient.ts +247 -442
  308. package/src/perspectives/PerspectiveDiff.ts +0 -8
  309. package/src/perspectives/PerspectiveHandle.ts +1 -12
  310. package/src/perspectives/PerspectiveProxy.test.ts +41 -0
  311. package/src/perspectives/PerspectiveProxy.ts +331 -348
  312. package/src/runtime/RuntimeClient.ts +112 -474
  313. package/src/runtime/RuntimeTypes.ts +144 -0
  314. package/src/shacl/SHACLShape.test.ts +94 -0
  315. package/src/shacl/SHACLShape.ts +27 -0
  316. package/src/typeDefs.ts +3 -5
  317. package/tsconfig.json +3 -7
  318. package/shims/reflect-metadata.ts +0 -0
  319. package/shims/type-graphql.ts +0 -75
  320. package/src/PubSub.ts +0 -17
  321. package/src/agent/AgentResolver.ts +0 -263
  322. package/src/ai/AIResolver.ts +0 -372
  323. package/src/buildSchema.ts +0 -43
  324. package/src/expression/ExpressionResolver.ts +0 -64
  325. package/src/language/LanguageResolver.ts +0 -98
  326. package/src/model/Subject.ts +0 -159
  327. package/src/model/hydration-batch.ts +0 -205
  328. package/src/model/hydration-batching.test.ts +0 -563
  329. package/src/model/prolog-facts.ts +0 -145
  330. package/src/model/query-prolog.ts +0 -148
  331. package/src/model/query-sparql-batch.ts +0 -301
  332. package/src/model/subscription-delta.test.ts +0 -207
  333. package/src/model/subscription-pool.ts +0 -211
  334. package/src/neighbourhood/NeighbourhoodResolver.ts +0 -100
  335. package/src/perspectives/PerspectiveResolver.ts +0 -364
  336. package/src/runtime/RuntimeResolver.ts +0 -749
  337. package/src/unwrapApolloResult.ts +0 -16
@@ -0,0 +1,3 @@
1
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
+
3
+ export type LanguageMetaInput = { description: string, name: string, possibleTemplateParams: Array<string> | null, sourceCodeLink: string | null, };
@@ -0,0 +1,3 @@
1
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
+
3
+ export type Link = { predicate: string | null, source: string, target: string, };
@@ -0,0 +1,6 @@
1
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
+ import type { ExpressionProof } from "./ExpressionProof";
3
+ import type { Link } from "./Link";
4
+ import type { LinkStatus } from "./LinkStatus";
5
+
6
+ export type LinkExpression = { author: string, timestamp: string, data: Link, proof: ExpressionProof, status: LinkStatus | null, };
@@ -0,0 +1,6 @@
1
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
+ import type { ExpressionProofInput } from "./ExpressionProofInput";
3
+ import type { LinkInput } from "./LinkInput";
4
+ import type { LinkStatus } from "./LinkStatus";
5
+
6
+ export type LinkExpressionInput = { author: string, data: LinkInput, proof: ExpressionProofInput, timestamp: string, status: LinkStatus | null, };
@@ -0,0 +1,3 @@
1
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
+
3
+ export type LinkInput = { predicate: string | null, source: string, target: string, };
@@ -0,0 +1,3 @@
1
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
+
3
+ export type LinkLanguageTemplatesRequest = { addresses: Array<string>, };
@@ -0,0 +1,5 @@
1
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
+ import type { LinkExpressionInput } from "./LinkExpressionInput";
3
+ import type { LinkInput } from "./LinkInput";
4
+
5
+ export type LinkMutations = { additions: Array<LinkInput>, removals: Array<LinkExpressionInput>, };
@@ -0,0 +1,3 @@
1
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
+
3
+ export type LinkStatus = "shared" | "local";
@@ -0,0 +1,3 @@
1
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
+
3
+ export type LockAgentRequest = { passphrase: string, };
@@ -0,0 +1,3 @@
1
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
+
3
+ export type ModelType = "llm" | "embedding" | "transcription";
@@ -0,0 +1,3 @@
1
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
+
3
+ export type NotificationInput = { description: string, appName: string, appUrl: string, appIconPath: string | null, trigger: string, perspectiveIds: Array<string>, webhookUrl: string, webhookAuth: string, };
@@ -0,0 +1,3 @@
1
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
+
3
+ export type OpenLinkRequest = { url: string, };
@@ -0,0 +1,3 @@
1
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
+
3
+ export type PermitCapabilityRequest = { auth: string, };
@@ -0,0 +1,4 @@
1
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
+ import type { LinkInput } from "./LinkInput";
3
+
4
+ export type PerspectiveInput = { links: Array<LinkInput>, };
@@ -0,0 +1,3 @@
1
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
+
3
+ export type PromptRequest = { taskId: string, prompt: string, };
@@ -0,0 +1,4 @@
1
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
+ import type { LanguageMetaInput } from "./LanguageMetaInput";
3
+
4
+ export type PublishLanguageRequest = { languagePath: string, languageMeta: LanguageMetaInput, };
@@ -0,0 +1,4 @@
1
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
+ import type { PerspectiveInput } from "./PerspectiveInput";
3
+
4
+ export type PublishNeighbourhoodRequest = { perspectiveUuid: string, linkLanguage: string, meta: PerspectiveInput, };
@@ -0,0 +1,6 @@
1
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
+
3
+ /**
4
+ * Unified query request (harmonised: engine + query in one).
5
+ */
6
+ export type QueryRequest = { engine: string, query: string, };
@@ -0,0 +1,4 @@
1
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
+ import type { LinkExpressionInput } from "./LinkExpressionInput";
3
+
4
+ export type RemoveLinkRequest = { link: LinkExpressionInput, batchId: string | null, };
@@ -0,0 +1,4 @@
1
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
+ import type { LinkExpressionInput } from "./LinkExpressionInput";
3
+
4
+ export type RemoveLinksBulkRequest = { links: Array<LinkExpressionInput>, batchId: string | null, };
@@ -0,0 +1,3 @@
1
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
+
3
+ export type ResourceInput = { domain: string, pointers: Array<string>, };
@@ -0,0 +1,4 @@
1
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
+ import type { ModelType } from "./ModelType";
3
+
4
+ export type SetDefaultModelRequest = { modelType: ModelType, };
@@ -0,0 +1,3 @@
1
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
+
3
+ export type SetFreeHostingEnabledRequest = { enabled: boolean, };
@@ -0,0 +1,3 @@
1
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
+
3
+ export type SetMultiUserRequest = { enabled: boolean, };
@@ -0,0 +1,3 @@
1
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
+
3
+ export type SetStatusRequest = { status: any, };
@@ -0,0 +1,3 @@
1
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
+
3
+ export type SignMessageRequest = { message: string, };
@@ -0,0 +1,3 @@
1
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
+
3
+ export type TrustedAgentsRequest = { agents: Array<string>, };
@@ -0,0 +1,3 @@
1
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
+
3
+ export type UnlockAgentRequest = { passphrase: string, holochain: boolean | null, };
@@ -0,0 +1,5 @@
1
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
+ import type { LinkExpressionInput } from "./LinkExpressionInput";
3
+ import type { LinkInput } from "./LinkInput";
4
+
5
+ export type UpdateLinkRequest = { oldLink: LinkExpressionInput, newLink: LinkInput, batchId: string | null, };
@@ -0,0 +1,3 @@
1
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
+
3
+ export type UpdatePerspectiveRequest = { name: string, };
@@ -0,0 +1,3 @@
1
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
+
3
+ export type UserStatistics = { email: string, did: string, lastSeen: string | null, perspectiveCount: number, remainingCredits: string, freeAccess: boolean, hotWalletAddress: string | null, };
@@ -0,0 +1,3 @@
1
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
+
3
+ export type VerificationRequestResult = { success: boolean, message: string, requiresPassword: boolean, isExistingUser: boolean, };
@@ -0,0 +1,3 @@
1
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
+
3
+ export type VerifySignatureRequest = { did: string, data: string, signedData: string, };
@@ -0,0 +1,3 @@
1
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
+
3
+ export type WriteSettingsRequest = { settings: string, };
@@ -0,0 +1,49 @@
1
+ // Auto-generated WS-RPC request/response types from Rust via ts-rs
2
+ // Do NOT edit manually — regenerate with: pnpm run generate:rest-types
3
+ //
4
+ // Note: Domain types (Link, LinkInput, LinkExpression, etc.) are NOT re-exported
5
+ // here to avoid conflicts with the hand-written domain classes in the SDK.
6
+ // Only request/response types are exported.
7
+
8
+ export type { AddLinkExpressionRequest } from "./AddLinkExpressionRequest";
9
+ export type { AddLinkRequest } from "./AddLinkRequest";
10
+ export type { AddLinksBulkRequest } from "./AddLinksBulkRequest";
11
+ export type { AddSdnaRequest } from "./AddSdnaRequest";
12
+ export type { ApplyTemplateRequest } from "./ApplyTemplateRequest";
13
+ export type { CommitBatchRequest } from "./CommitBatchRequest";
14
+ export type { CreateExpressionRequest } from "./CreateExpressionRequest";
15
+ export type { CreatePerspectiveRequest } from "./CreatePerspectiveRequest";
16
+ export type { CreateSubjectRequest } from "./CreateSubjectRequest";
17
+ export type { EmbedRequest } from "./EmbedRequest";
18
+ export type { ExecuteCommandsRequest } from "./ExecuteCommandsRequest";
19
+ export type { ExportRequest } from "./ExportRequest";
20
+ export type { ExpressionManyRequest } from "./ExpressionManyRequest";
21
+ export type { FriendSendMessageRequest } from "./FriendSendMessageRequest";
22
+ export type { FriendsListRequest } from "./FriendsListRequest";
23
+ export type { GenerateAgentRequest } from "./GenerateAgentRequest";
24
+ export type { GenerateJwtRequest } from "./GenerateJwtRequest";
25
+ export type { GetSubjectDataRequest } from "./GetSubjectDataRequest";
26
+ export type { ImportAgentRequest } from "./ImportAgentRequest";
27
+ export type { ImportRequest } from "./ImportRequest";
28
+ export type { JoinNeighbourhoodRequest } from "./JoinNeighbourhoodRequest";
29
+ export type { LinkLanguageTemplatesRequest } from "./LinkLanguageTemplatesRequest";
30
+ export type { LockAgentRequest } from "./LockAgentRequest";
31
+ export type { OpenLinkRequest } from "./OpenLinkRequest";
32
+ export type { PermitCapabilityRequest } from "./PermitCapabilityRequest";
33
+ export type { PromptRequest } from "./PromptRequest";
34
+ export type { PublishLanguageRequest } from "./PublishLanguageRequest";
35
+ export type { PublishNeighbourhoodRequest } from "./PublishNeighbourhoodRequest";
36
+ export type { QueryRequest } from "./QueryRequest";
37
+ export type { RemoveLinkRequest } from "./RemoveLinkRequest";
38
+ export type { RemoveLinksBulkRequest } from "./RemoveLinksBulkRequest";
39
+ export type { SetDefaultModelRequest } from "./SetDefaultModelRequest";
40
+ export type { SetFreeHostingEnabledRequest } from "./SetFreeHostingEnabledRequest";
41
+ export type { SetMultiUserRequest } from "./SetMultiUserRequest";
42
+ export type { SetStatusRequest } from "./SetStatusRequest";
43
+ export type { SignMessageRequest } from "./SignMessageRequest";
44
+ export type { TrustedAgentsRequest } from "./TrustedAgentsRequest";
45
+ export type { UnlockAgentRequest } from "./UnlockAgentRequest";
46
+ export type { UpdateLinkRequest } from "./UpdateLinkRequest";
47
+ export type { UpdatePerspectiveRequest } from "./UpdatePerspectiveRequest";
48
+ export type { VerifySignatureRequest } from "./VerifySignatureRequest";
49
+ export type { WriteSettingsRequest } from "./WriteSettingsRequest";
package/src/index.ts CHANGED
@@ -28,6 +28,11 @@ export * from "./utils";
28
28
  export * from "./agent/AgentClient";
29
29
  export * from "./ai/AIClient"
30
30
  export * from "./ai/Tasks"
31
- export * from "./runtime/RuntimeResolver"
31
+ export * from "./runtime/RuntimeTypes"
32
+ export { Model as AIModel, ModelApi, TokenizerSource, LocalModel, ModelType, ModelApiInput, TokenizerSourceInput, LocalModelInput, ModelInput, VoiceActivityParamsInput } from "./ai/AITypes"
32
33
  export * from './shacl/SHACLShape'
33
34
  export { SHACLFlow, FlowState, FlowTransition, LinkPattern, FlowableCondition } from './shacl/SHACLFlow'
35
+ export * from "./generated/api";
36
+ export { RpcError } from "./apiClient";
37
+ /** @deprecated Use `RpcError` instead. */
38
+ export { RpcError as RestError } from "./apiClient";
package/src/jestSetup.ts CHANGED
@@ -1 +1 @@
1
- import 'reflect-metadata'
1
+ // Jest setup
@@ -1,8 +1,4 @@
1
- import { Field, ObjectType } from "type-graphql";
2
-
3
- @ObjectType()
4
1
  export class Icon {
5
- @Field()
6
2
  code: string
7
3
 
8
4
  constructor(code: string) {
@@ -1,11 +1,10 @@
1
1
  import { DID } from "../DID";
2
2
  import { PerspectiveExpression } from "../perspectives/Perspective";
3
- import { InputType, Field, ObjectType } from "type-graphql";
4
3
 
5
4
  /**
6
5
  * # AD4M Language — client-side types
7
6
  *
8
- * This file only contains the client-visible types that the AD4M GraphQL
7
+ * This file only contains the client-visible types that the AD4M REST
9
8
  * API exposes on top of a running Language — interaction metadata, online
10
9
  * agent records, and the telepresence-signal callback shape.
11
10
  *
@@ -25,28 +24,16 @@ import { InputType, Field, ObjectType } from "type-graphql";
25
24
  //
26
25
  // Languages optionally publish a list of user-invocable actions per
27
26
  // Expression ("interactions"). The runtime surfaces these to UIs via
28
- // GraphQL, which is why `InteractionParameter` / `InteractionMeta` /
29
- // `InteractionCall` need the type-graphql decorators — they cross the
30
- // GraphQL boundary as first-class objects.
27
+ // the API as first-class objects.
31
28
 
32
- @ObjectType()
33
29
  export class InteractionParameter {
34
- @Field()
35
30
  name: string;
36
-
37
- @Field()
38
31
  type: string;
39
32
  }
40
33
 
41
- @ObjectType()
42
34
  export class InteractionMeta {
43
- @Field()
44
35
  label: string;
45
-
46
- @Field()
47
36
  name: string;
48
-
49
- @Field(() => [InteractionParameter])
50
37
  parameters: InteractionParameter[];
51
38
  }
52
39
 
@@ -63,12 +50,8 @@ export interface Interaction {
63
50
  execute(parameters: object): Promise<string | null>;
64
51
  }
65
52
 
66
- @InputType()
67
53
  export class InteractionCall {
68
- @Field()
69
54
  name: string;
70
-
71
- @Field()
72
55
  parametersStringified: string;
73
56
 
74
57
  public get parameters(): object {
@@ -83,12 +66,8 @@ export class InteractionCall {
83
66
 
84
67
  // ----- Telepresence ----------------------------------------------------------
85
68
 
86
- @ObjectType()
87
69
  export class OnlineAgent {
88
- @Field()
89
70
  did: DID;
90
-
91
- @Field()
92
71
  status: PerspectiveExpression;
93
72
  }
94
73
 
@@ -1,160 +1,49 @@
1
- import { ApolloClient, gql } from "@apollo/client/core"
2
- import unwrapApolloResult from "../unwrapApolloResult"
1
+ import { ApiClient } from "../apiClient"
3
2
  import { LanguageHandle } from "./LanguageHandle"
4
3
  import { LanguageMeta, LanguageMetaInput } from "./LanguageMeta"
5
4
  import { LanguageRef } from "./LanguageRef"
6
-
7
- const LANGUAGE_COMPLETE = `
8
- name
9
- address
10
- settings
11
- icon { code }
12
- constructorIcon { code }
13
- settingsIcon { code }
14
- `
15
-
16
- const LANGUAGE_META = `
17
- name
18
- address
19
- description
20
- author
21
- templated
22
- templateSourceLanguageAddress
23
- templateAppliedParams
24
- possibleTemplateParams
25
- sourceCodeLink
26
- `
5
+ import type { ApplyTemplateRequest, PublishLanguageRequest, WriteSettingsRequest } from "../generated/api"
27
6
 
28
7
  export class LanguageClient {
29
- #apolloClient: ApolloClient<any>
8
+ #apiClient: ApiClient
30
9
 
31
- constructor(apolloClient: ApolloClient<any>) {
32
- this.#apolloClient = apolloClient
10
+ constructor(baseUrl: string, token?: string, sharedApiClient?: ApiClient) {
11
+ this.#apiClient = sharedApiClient || new ApiClient(baseUrl, token)
33
12
  }
34
13
 
35
14
  async byAddress(address: string): Promise<LanguageHandle> {
36
- const { language } = unwrapApolloResult(await this.#apolloClient.query({
37
- query: gql`query byAddress($address: String!) {
38
- language(address: $address) {
39
- ${LANGUAGE_COMPLETE}
40
- }
41
- }`,
42
- variables: { address }
43
- }))
44
- return language
15
+ return this.#apiClient.call<LanguageHandle>('language.get', { address })
45
16
  }
46
17
 
47
18
  async byFilter(filter: string): Promise<LanguageHandle[]> {
48
- const { languages } = unwrapApolloResult(await this.#apolloClient.query({
49
- query: gql`query byFilter($filter: String!) {
50
- languages(filter: $filter) {
51
- ${LANGUAGE_COMPLETE}
52
- }
53
- }`,
54
- variables: { filter }
55
- }))
56
- return languages
19
+ return this.#apiClient.call<LanguageHandle[]>('language.all', { filter })
57
20
  }
58
21
 
59
22
  async all(): Promise<LanguageHandle[]> {
60
- return this.byFilter('')
23
+ return this.#apiClient.call<LanguageHandle[]>('language.all')
61
24
  }
62
25
 
63
- async writeSettings(
64
- languageAddress: string,
65
- settings: string
66
- ): Promise<Boolean> {
67
- const { languageWriteSettings } = unwrapApolloResult(await this.#apolloClient.mutate({
68
- mutation: gql`mutation writeSettings($languageAddress: String!, $settings: String!) {
69
- languageWriteSettings(languageAddress: $languageAddress, settings: $settings)
70
- }`,
71
- variables: { languageAddress, settings }
72
- }))
73
- return languageWriteSettings
26
+ async writeSettings(languageAddress: string, settings: string): Promise<Boolean> {
27
+ return this.#apiClient.call<Boolean>('language.writeSettings', { address: languageAddress, settings })
74
28
  }
75
29
 
76
- async applyTemplateAndPublish(
77
- sourceLanguageHash: string,
78
- templateData: string
79
- ): Promise<LanguageRef> {
80
- const { languageApplyTemplateAndPublish } = unwrapApolloResult(await this.#apolloClient.mutate({
81
- mutation: gql`mutation languageApplyTemplateAndPublish(
82
- $sourceLanguageHash: String!,
83
- $templateData: String!,
84
- ) {
85
- languageApplyTemplateAndPublish(sourceLanguageHash: $sourceLanguageHash, templateData: $templateData) {
86
- name, address
87
- }
88
- }`,
89
- variables: { sourceLanguageHash, templateData }
90
- }))
91
-
92
- return languageApplyTemplateAndPublish
30
+ async applyTemplateAndPublish(sourceLanguageHash: string, templateData: string): Promise<LanguageRef> {
31
+ return this.#apiClient.call<LanguageRef>('language.applyTemplate', { sourceLanguageHash, templateData })
93
32
  }
94
33
 
95
- async publish(
96
- languagePath: string,
97
- languageMeta: LanguageMetaInput
98
- ): Promise<LanguageMeta> {
99
- const { languagePublish } = unwrapApolloResult(await this.#apolloClient.mutate({
100
- mutation: gql`mutation languagePublish(
101
- $languagePath: String!,
102
- $languageMeta: LanguageMetaInput!,
103
- ) {
104
- languagePublish(languagePath: $languagePath, languageMeta: $languageMeta) {
105
- ${LANGUAGE_META}
106
- }
107
- }`,
108
- variables: { languagePath, languageMeta }
109
- }))
110
-
111
- return languagePublish
34
+ async publish(languagePath: string, languageMeta: LanguageMetaInput): Promise<LanguageMeta> {
35
+ return this.#apiClient.call<LanguageMeta>('language.publish', { languagePath, languageMeta })
112
36
  }
113
37
 
114
- async meta(
115
- address: string,
116
- ): Promise<LanguageMeta> {
117
- const { languageMeta } = unwrapApolloResult(await this.#apolloClient.query({
118
- query: gql`query languageMeta(
119
- $address: String!,
120
- ) {
121
- languageMeta(address: $address) {
122
- ${LANGUAGE_META}
123
- }
124
- }`,
125
- variables: { address }
126
- }))
127
-
128
- return languageMeta
38
+ async meta(address: string): Promise<LanguageMeta> {
39
+ return this.#apiClient.call<LanguageMeta>('language.meta', { address })
129
40
  }
130
41
 
131
- async source(
132
- address: string,
133
- ): Promise<string> {
134
- const { languageSource } = unwrapApolloResult(await this.#apolloClient.query({
135
- query: gql`query languageSource(
136
- $address: String!,
137
- ) {
138
- languageSource(address: $address)
139
- }`,
140
- variables: { address }
141
- }))
142
-
143
- return languageSource
42
+ async source(address: string): Promise<string> {
43
+ return this.#apiClient.call<string>('language.source', { address })
144
44
  }
145
45
 
146
- async remove(
147
- address: string
148
- ): Promise<Boolean> {
149
- const { languageRemove } = unwrapApolloResult(await this.#apolloClient.mutate({
150
- mutation: gql`mutation languageRemove(
151
- $address: String!,
152
- ) {
153
- languageRemove(address: $address)
154
- }`,
155
- variables: { address }
156
- }))
157
-
158
- return languageRemove
46
+ async remove(address: string): Promise<Boolean> {
47
+ return this.#apiClient.call<Boolean>('language.remove', { address })
159
48
  }
160
- }
49
+ }
@@ -1,23 +1,9 @@
1
- import { Field, ObjectType } from "type-graphql";
2
1
  import { Icon } from "./Icon";
3
-
4
- @ObjectType()
5
2
  export class LanguageHandle {
6
- @Field()
7
3
  name: string;
8
-
9
- @Field()
10
4
  address: string;
11
-
12
- @Field({nullable: true})
13
5
  settings?: string;
14
-
15
- @Field({nullable: true})
16
6
  icon?: Icon;
17
-
18
- @Field({nullable: true})
19
7
  constructorIcon?: Icon;
20
-
21
- @Field({nullable: true})
22
8
  settingsIcon?: Icon;
23
9
  }
@@ -1,48 +1,19 @@
1
- import { Field, InputType, ObjectType } from "type-graphql";
2
1
  import { ExpressionGeneric } from "../expression/Expression";
3
-
4
- @ObjectType()
5
2
  export class LanguageMeta {
6
- @Field()
7
3
  name: string;
8
-
9
- @Field()
10
4
  address: string;
11
-
12
- @Field({nullable: true})
13
5
  description: string;
14
-
15
- @Field()
16
6
  author: string;
17
-
18
- @Field({nullable: true})
19
7
  templated: boolean
20
-
21
- @Field({nullable: true})
22
8
  templateSourceLanguageAddress?: string;
23
-
24
- @Field({nullable: true})
25
9
  templateAppliedParams?: string;
26
-
27
- @Field(type => [String], {nullable: true})
28
10
  possibleTemplateParams?: string[];
29
-
30
- @Field({nullable: true})
31
11
  sourceCodeLink?: string;
32
12
  }
33
-
34
- @InputType()
35
13
  export class LanguageMetaInput {
36
- @Field()
37
14
  name: string;
38
-
39
- @Field()
40
15
  description: string;
41
-
42
- @Field(type => [String], {nullable: true})
43
16
  possibleTemplateParams?: string[];
44
-
45
- @Field({nullable: true})
46
17
  sourceCodeLink?: string;
47
18
 
48
19
  constructor(name?: string, description?: string) {
@@ -1,14 +1,7 @@
1
1
  import type { Address } from '../Address'
2
- import { Field, ObjectType } from "type-graphql";
3
-
4
-
5
2
  // Unique Language ID with option type
6
- @ObjectType()
7
3
  export class LanguageRef {
8
- @Field()
9
4
  address: Address;
10
-
11
- @Field()
12
5
  name: string;
13
6
 
14
7
  constructor(address?: Address, name?: string) {