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

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 (334) hide show
  1. package/README.md +2 -25
  2. package/jest-setup.ts +1 -1
  3. package/lib/index.cjs +2406 -11070
  4. package/lib/index.js +2209 -10925
  5. package/lib/src/Ad4mClient.d.ts +7 -3
  6. package/lib/src/Ad4mClient.js +29 -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 +57 -38
  163. package/lib/src/model/Ad4mModel.js +594 -460
  164. package/lib/src/model/Ad4mModel.test.js +371 -815
  165. package/lib/src/model/ModelQueryBuilder.d.ts +9 -21
  166. package/lib/src/model/ModelQueryBuilder.js +138 -217
  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 +7 -60
  170. package/lib/src/model/hydration.js +7 -716
  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/shacl-gen.js +4 -0
  179. package/lib/src/model/types.d.ts +47 -38
  180. package/lib/src/model/types.js +4 -1
  181. package/lib/src/neighbourhood/Neighbourhood.js +4 -32
  182. package/lib/src/neighbourhood/NeighbourhoodClient.d.ts +3 -3
  183. package/lib/src/neighbourhood/NeighbourhoodClient.js +40 -203
  184. package/lib/src/perspectives/LinkQuery.js +2 -42
  185. package/lib/src/perspectives/Perspective.d.ts +1 -1
  186. package/lib/src/perspectives/Perspective.js +10 -52
  187. package/lib/src/perspectives/PerspectiveClient.d.ts +12 -17
  188. package/lib/src/perspectives/PerspectiveClient.js +169 -429
  189. package/lib/src/perspectives/PerspectiveClient.test.js +55 -0
  190. package/lib/src/perspectives/PerspectiveDiff.js +4 -31
  191. package/lib/src/perspectives/PerspectiveHandle.js +3 -43
  192. package/lib/src/perspectives/PerspectiveProxy.d.ts +92 -71
  193. package/lib/src/perspectives/PerspectiveProxy.js +273 -310
  194. package/lib/src/runtime/RuntimeClient.d.ts +6 -6
  195. package/lib/src/runtime/RuntimeClient.js +93 -467
  196. package/lib/src/runtime/RuntimeTypes.d.ts +101 -0
  197. package/lib/src/runtime/RuntimeTypes.js +45 -0
  198. package/lib/src/shacl/SHACLShape.d.ts +7 -0
  199. package/lib/src/shacl/SHACLShape.js +19 -0
  200. package/lib/src/shacl/SHACLShape.test.js +82 -0
  201. package/lib/src/typeDefs.js +3 -628
  202. package/package.json +9 -24
  203. package/rollup.config.js +0 -7
  204. package/src/Ad4mClient.test.ts +1179 -1340
  205. package/src/Ad4mClient.ts +30 -15
  206. package/src/agent/Agent.ts +0 -99
  207. package/src/agent/AgentClient.ts +112 -526
  208. package/src/agent/AgentStatus.ts +0 -12
  209. package/src/ai/AIClient.ts +96 -296
  210. package/src/ai/AITypes.ts +66 -0
  211. package/src/ai/Tasks.ts +0 -52
  212. package/src/apiClient.ts +283 -0
  213. package/src/expression/Expression.ts +3 -43
  214. package/src/expression/ExpressionClient.ts +14 -77
  215. package/src/expression/ExpressionRef.ts +0 -6
  216. package/src/generated/api/AIModelLoadingStatus.ts +3 -0
  217. package/src/generated/api/AddLinkExpressionRequest.ts +4 -0
  218. package/src/generated/api/AddLinkRequest.ts +4 -0
  219. package/src/generated/api/AddLinksBulkRequest.ts +4 -0
  220. package/src/generated/api/AddSdnaRequest.ts +3 -0
  221. package/src/generated/api/ApplyTemplateRequest.ts +3 -0
  222. package/src/generated/api/AuthInfoInput.ts +4 -0
  223. package/src/generated/api/CapabilityInput.ts +4 -0
  224. package/src/generated/api/CommitBatchRequest.ts +3 -0
  225. package/src/generated/api/ComputeLogEntry.ts +3 -0
  226. package/src/generated/api/CreateExpressionRequest.ts +3 -0
  227. package/src/generated/api/CreatePerspectiveRequest.ts +3 -0
  228. package/src/generated/api/CreateSubjectRequest.ts +3 -0
  229. package/src/generated/api/EmbedRequest.ts +3 -0
  230. package/src/generated/api/EntanglementProofInput.ts +3 -0
  231. package/src/generated/api/ExecuteCommandsRequest.ts +3 -0
  232. package/src/generated/api/ExportRequest.ts +3 -0
  233. package/src/generated/api/ExpressionManyRequest.ts +3 -0
  234. package/src/generated/api/ExpressionProof.ts +3 -0
  235. package/src/generated/api/ExpressionProofInput.ts +3 -0
  236. package/src/generated/api/FriendSendMessageRequest.ts +3 -0
  237. package/src/generated/api/FriendsListRequest.ts +3 -0
  238. package/src/generated/api/GenerateAgentRequest.ts +3 -0
  239. package/src/generated/api/GenerateJwtRequest.ts +3 -0
  240. package/src/generated/api/GetSubjectDataRequest.ts +3 -0
  241. package/src/generated/api/ImportAgentRequest.ts +3 -0
  242. package/src/generated/api/ImportRequest.ts +3 -0
  243. package/src/generated/api/JoinNeighbourhoodRequest.ts +3 -0
  244. package/src/generated/api/LanguageMetaInput.ts +3 -0
  245. package/src/generated/api/Link.ts +3 -0
  246. package/src/generated/api/LinkExpression.ts +6 -0
  247. package/src/generated/api/LinkExpressionInput.ts +6 -0
  248. package/src/generated/api/LinkInput.ts +3 -0
  249. package/src/generated/api/LinkLanguageTemplatesRequest.ts +3 -0
  250. package/src/generated/api/LinkMutations.ts +5 -0
  251. package/src/generated/api/LinkStatus.ts +3 -0
  252. package/src/generated/api/LockAgentRequest.ts +3 -0
  253. package/src/generated/api/ModelType.ts +3 -0
  254. package/src/generated/api/NotificationInput.ts +3 -0
  255. package/src/generated/api/OpenLinkRequest.ts +3 -0
  256. package/src/generated/api/PermitCapabilityRequest.ts +3 -0
  257. package/src/generated/api/PerspectiveInput.ts +4 -0
  258. package/src/generated/api/PromptRequest.ts +3 -0
  259. package/src/generated/api/PublishLanguageRequest.ts +4 -0
  260. package/src/generated/api/PublishNeighbourhoodRequest.ts +4 -0
  261. package/src/generated/api/QueryRequest.ts +6 -0
  262. package/src/generated/api/RemoveLinkRequest.ts +4 -0
  263. package/src/generated/api/RemoveLinksBulkRequest.ts +4 -0
  264. package/src/generated/api/ResourceInput.ts +3 -0
  265. package/src/generated/api/SetDefaultModelRequest.ts +4 -0
  266. package/src/generated/api/SetFreeHostingEnabledRequest.ts +3 -0
  267. package/src/generated/api/SetMultiUserRequest.ts +3 -0
  268. package/src/generated/api/SetStatusRequest.ts +3 -0
  269. package/src/generated/api/SignMessageRequest.ts +3 -0
  270. package/src/generated/api/TrustedAgentsRequest.ts +3 -0
  271. package/src/generated/api/UnlockAgentRequest.ts +3 -0
  272. package/src/generated/api/UpdateLinkRequest.ts +5 -0
  273. package/src/generated/api/UpdatePerspectiveRequest.ts +3 -0
  274. package/src/generated/api/UserStatistics.ts +3 -0
  275. package/src/generated/api/VerificationRequestResult.ts +3 -0
  276. package/src/generated/api/VerifySignatureRequest.ts +3 -0
  277. package/src/generated/api/WriteSettingsRequest.ts +3 -0
  278. package/src/generated/api/index.ts +49 -0
  279. package/src/index.ts +6 -1
  280. package/src/jestSetup.ts +1 -1
  281. package/src/language/Icon.ts +0 -4
  282. package/src/language/Language.ts +2 -23
  283. package/src/language/LanguageClient.ts +21 -132
  284. package/src/language/LanguageHandle.ts +0 -14
  285. package/src/language/LanguageMeta.ts +0 -29
  286. package/src/language/LanguageRef.ts +0 -7
  287. package/src/links/Links.ts +0 -37
  288. package/src/model/Ad4mModel.test.ts +708 -876
  289. package/src/model/Ad4mModel.ts +613 -508
  290. package/src/model/ModelQueryBuilder.ts +178 -244
  291. package/src/model/decorators.ts +29 -0
  292. package/src/model/hydration.ts +9 -766
  293. package/src/model/index.ts +0 -4
  294. package/src/model/query-sparql.test.ts +34 -242
  295. package/src/model/query-sparql.ts +27 -337
  296. package/src/model/shacl-gen.ts +5 -0
  297. package/src/model/types.ts +51 -39
  298. package/src/neighbourhood/Neighbourhood.ts +0 -9
  299. package/src/neighbourhood/NeighbourhoodClient.ts +42 -207
  300. package/src/neighbourhood/NeighbourhoodProxy.test.ts +34 -36
  301. package/src/perspectives/LinkQuery.ts +0 -15
  302. package/src/perspectives/Perspective.ts +1 -12
  303. package/src/perspectives/PerspectiveClient.test.ts +206 -148
  304. package/src/perspectives/PerspectiveClient.ts +228 -442
  305. package/src/perspectives/PerspectiveDiff.ts +0 -8
  306. package/src/perspectives/PerspectiveHandle.ts +1 -12
  307. package/src/perspectives/PerspectiveProxy.test.ts +41 -0
  308. package/src/perspectives/PerspectiveProxy.ts +307 -348
  309. package/src/runtime/RuntimeClient.ts +112 -474
  310. package/src/runtime/RuntimeTypes.ts +144 -0
  311. package/src/shacl/SHACLShape.test.ts +94 -0
  312. package/src/shacl/SHACLShape.ts +27 -0
  313. package/src/typeDefs.ts +3 -5
  314. package/tsconfig.json +3 -7
  315. package/shims/reflect-metadata.ts +0 -0
  316. package/shims/type-graphql.ts +0 -75
  317. package/src/PubSub.ts +0 -17
  318. package/src/agent/AgentResolver.ts +0 -263
  319. package/src/ai/AIResolver.ts +0 -372
  320. package/src/buildSchema.ts +0 -43
  321. package/src/expression/ExpressionResolver.ts +0 -64
  322. package/src/language/LanguageResolver.ts +0 -98
  323. package/src/model/Subject.ts +0 -159
  324. package/src/model/hydration-batch.ts +0 -205
  325. package/src/model/hydration-batching.test.ts +0 -563
  326. package/src/model/prolog-facts.ts +0 -145
  327. package/src/model/query-prolog.ts +0 -148
  328. package/src/model/query-sparql-batch.ts +0 -301
  329. package/src/model/subscription-delta.test.ts +0 -207
  330. package/src/model/subscription-pool.ts +0 -211
  331. package/src/neighbourhood/NeighbourhoodResolver.ts +0 -100
  332. package/src/perspectives/PerspectiveResolver.ts +0 -364
  333. package/src/runtime/RuntimeResolver.ts +0 -749
  334. package/src/unwrapApolloResult.ts +0 -16
@@ -0,0 +1,4 @@
1
+ export type PromptRequest = {
2
+ taskId: string;
3
+ prompt: 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,5 @@
1
+ import type { LanguageMetaInput } from "./LanguageMetaInput";
2
+ export type PublishLanguageRequest = {
3
+ languagePath: string;
4
+ languageMeta: LanguageMetaInput;
5
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,6 @@
1
+ import type { PerspectiveInput } from "./PerspectiveInput";
2
+ export type PublishNeighbourhoodRequest = {
3
+ perspectiveUuid: string;
4
+ linkLanguage: string;
5
+ meta: PerspectiveInput;
6
+ };
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Unified query request (harmonised: engine + query in one).
3
+ */
4
+ export type QueryRequest = {
5
+ engine: string;
6
+ query: string;
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,5 @@
1
+ import type { LinkExpressionInput } from "./LinkExpressionInput";
2
+ export type RemoveLinkRequest = {
3
+ link: LinkExpressionInput;
4
+ batchId: string | null;
5
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,5 @@
1
+ import type { LinkExpressionInput } from "./LinkExpressionInput";
2
+ export type RemoveLinksBulkRequest = {
3
+ links: Array<LinkExpressionInput>;
4
+ batchId: string | null;
5
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,4 @@
1
+ export type ResourceInput = {
2
+ domain: string;
3
+ pointers: Array<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,4 @@
1
+ import type { ModelType } from "./ModelType";
2
+ export type SetDefaultModelRequest = {
3
+ modelType: ModelType;
4
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,3 @@
1
+ export type SetFreeHostingEnabledRequest = {
2
+ enabled: boolean;
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,3 @@
1
+ export type SetMultiUserRequest = {
2
+ enabled: boolean;
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,3 @@
1
+ export type SetStatusRequest = {
2
+ status: any;
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,3 @@
1
+ export type SignMessageRequest = {
2
+ message: 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,3 @@
1
+ export type TrustedAgentsRequest = {
2
+ agents: 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,4 @@
1
+ export type UnlockAgentRequest = {
2
+ passphrase: string;
3
+ holochain: boolean | null;
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,7 @@
1
+ import type { LinkExpressionInput } from "./LinkExpressionInput";
2
+ import type { LinkInput } from "./LinkInput";
3
+ export type UpdateLinkRequest = {
4
+ oldLink: LinkExpressionInput;
5
+ newLink: LinkInput;
6
+ batchId: string | null;
7
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,3 @@
1
+ export type UpdatePerspectiveRequest = {
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,9 @@
1
+ export type UserStatistics = {
2
+ email: string;
3
+ did: string;
4
+ lastSeen: string | null;
5
+ perspectiveCount: number;
6
+ remainingCredits: string;
7
+ freeAccess: boolean;
8
+ hotWalletAddress: string | null;
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,6 @@
1
+ export type VerificationRequestResult = {
2
+ success: boolean;
3
+ message: string;
4
+ requiresPassword: boolean;
5
+ isExistingUser: boolean;
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,5 @@
1
+ export type VerifySignatureRequest = {
2
+ did: string;
3
+ data: string;
4
+ signedData: string;
5
+ };
@@ -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 WriteSettingsRequest = {
2
+ settings: 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,42 @@
1
+ export type { AddLinkExpressionRequest } from "./AddLinkExpressionRequest";
2
+ export type { AddLinkRequest } from "./AddLinkRequest";
3
+ export type { AddLinksBulkRequest } from "./AddLinksBulkRequest";
4
+ export type { AddSdnaRequest } from "./AddSdnaRequest";
5
+ export type { ApplyTemplateRequest } from "./ApplyTemplateRequest";
6
+ export type { CommitBatchRequest } from "./CommitBatchRequest";
7
+ export type { CreateExpressionRequest } from "./CreateExpressionRequest";
8
+ export type { CreatePerspectiveRequest } from "./CreatePerspectiveRequest";
9
+ export type { CreateSubjectRequest } from "./CreateSubjectRequest";
10
+ export type { EmbedRequest } from "./EmbedRequest";
11
+ export type { ExecuteCommandsRequest } from "./ExecuteCommandsRequest";
12
+ export type { ExportRequest } from "./ExportRequest";
13
+ export type { ExpressionManyRequest } from "./ExpressionManyRequest";
14
+ export type { FriendSendMessageRequest } from "./FriendSendMessageRequest";
15
+ export type { FriendsListRequest } from "./FriendsListRequest";
16
+ export type { GenerateAgentRequest } from "./GenerateAgentRequest";
17
+ export type { GenerateJwtRequest } from "./GenerateJwtRequest";
18
+ export type { GetSubjectDataRequest } from "./GetSubjectDataRequest";
19
+ export type { ImportAgentRequest } from "./ImportAgentRequest";
20
+ export type { ImportRequest } from "./ImportRequest";
21
+ export type { JoinNeighbourhoodRequest } from "./JoinNeighbourhoodRequest";
22
+ export type { LinkLanguageTemplatesRequest } from "./LinkLanguageTemplatesRequest";
23
+ export type { LockAgentRequest } from "./LockAgentRequest";
24
+ export type { OpenLinkRequest } from "./OpenLinkRequest";
25
+ export type { PermitCapabilityRequest } from "./PermitCapabilityRequest";
26
+ export type { PromptRequest } from "./PromptRequest";
27
+ export type { PublishLanguageRequest } from "./PublishLanguageRequest";
28
+ export type { PublishNeighbourhoodRequest } from "./PublishNeighbourhoodRequest";
29
+ export type { QueryRequest } from "./QueryRequest";
30
+ export type { RemoveLinkRequest } from "./RemoveLinkRequest";
31
+ export type { RemoveLinksBulkRequest } from "./RemoveLinksBulkRequest";
32
+ export type { SetDefaultModelRequest } from "./SetDefaultModelRequest";
33
+ export type { SetFreeHostingEnabledRequest } from "./SetFreeHostingEnabledRequest";
34
+ export type { SetMultiUserRequest } from "./SetMultiUserRequest";
35
+ export type { SetStatusRequest } from "./SetStatusRequest";
36
+ export type { SignMessageRequest } from "./SignMessageRequest";
37
+ export type { TrustedAgentsRequest } from "./TrustedAgentsRequest";
38
+ export type { UnlockAgentRequest } from "./UnlockAgentRequest";
39
+ export type { UpdateLinkRequest } from "./UpdateLinkRequest";
40
+ export type { UpdatePerspectiveRequest } from "./UpdatePerspectiveRequest";
41
+ export type { VerifySignatureRequest } from "./VerifySignatureRequest";
42
+ export type { WriteSettingsRequest } from "./WriteSettingsRequest";
@@ -0,0 +1,7 @@
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
+ export {};
@@ -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/lib/src/index.js 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, ModelApiInput, TokenizerSourceInput, LocalModelInput, ModelInput, VoiceActivityParamsInput } from "./ai/AITypes";
32
33
  export * from './shacl/SHACLShape';
33
34
  export { SHACLFlow } 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";
@@ -1 +0,0 @@
1
- import 'reflect-metadata';
@@ -1 +1 @@
1
- import 'reflect-metadata';
1
+ // Jest setup
@@ -1,24 +1,5 @@
1
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
- return c > 3 && r && Object.defineProperty(target, key, r), r;
6
- };
7
- var __metadata = (this && this.__metadata) || function (k, v) {
8
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
9
- };
10
- import { Field, ObjectType } from "type-graphql";
11
- let Icon = class Icon {
1
+ export class Icon {
12
2
  constructor(code) {
13
3
  this.code = code;
14
4
  }
15
- };
16
- __decorate([
17
- Field(),
18
- __metadata("design:type", String)
19
- ], Icon.prototype, "code", void 0);
20
- Icon = __decorate([
21
- ObjectType(),
22
- __metadata("design:paramtypes", [String])
23
- ], Icon);
24
- export { Icon };
5
+ }
@@ -3,7 +3,7 @@ import { PerspectiveExpression } from "../perspectives/Perspective";
3
3
  /**
4
4
  * # AD4M Language — client-side types
5
5
  *
6
- * This file only contains the client-visible types that the AD4M GraphQL
6
+ * This file only contains the client-visible types that the AD4M REST
7
7
  * API exposes on top of a running Language — interaction metadata, online
8
8
  * agent records, and the telepresence-signal callback shape.
9
9
  *
@@ -1,18 +1,7 @@
1
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
- return c > 3 && r && Object.defineProperty(target, key, r), r;
6
- };
7
- var __metadata = (this && this.__metadata) || function (k, v) {
8
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
9
- };
10
- import { PerspectiveExpression } from "../perspectives/Perspective";
11
- import { InputType, Field, ObjectType } from "type-graphql";
12
1
  /**
13
2
  * # AD4M Language — client-side types
14
3
  *
15
- * This file only contains the client-visible types that the AD4M GraphQL
4
+ * This file only contains the client-visible types that the AD4M REST
16
5
  * API exposes on top of a running Language — interaction metadata, online
17
6
  * agent records, and the telepresence-signal callback shape.
18
7
  *
@@ -31,42 +20,12 @@ import { InputType, Field, ObjectType } from "type-graphql";
31
20
  //
32
21
  // Languages optionally publish a list of user-invocable actions per
33
22
  // Expression ("interactions"). The runtime surfaces these to UIs via
34
- // GraphQL, which is why `InteractionParameter` / `InteractionMeta` /
35
- // `InteractionCall` need the type-graphql decorators — they cross the
36
- // GraphQL boundary as first-class objects.
37
- let InteractionParameter = class InteractionParameter {
38
- };
39
- __decorate([
40
- Field(),
41
- __metadata("design:type", String)
42
- ], InteractionParameter.prototype, "name", void 0);
43
- __decorate([
44
- Field(),
45
- __metadata("design:type", String)
46
- ], InteractionParameter.prototype, "type", void 0);
47
- InteractionParameter = __decorate([
48
- ObjectType()
49
- ], InteractionParameter);
50
- export { InteractionParameter };
51
- let InteractionMeta = class InteractionMeta {
52
- };
53
- __decorate([
54
- Field(),
55
- __metadata("design:type", String)
56
- ], InteractionMeta.prototype, "label", void 0);
57
- __decorate([
58
- Field(),
59
- __metadata("design:type", String)
60
- ], InteractionMeta.prototype, "name", void 0);
61
- __decorate([
62
- Field(() => [InteractionParameter]),
63
- __metadata("design:type", Array)
64
- ], InteractionMeta.prototype, "parameters", void 0);
65
- InteractionMeta = __decorate([
66
- ObjectType()
67
- ], InteractionMeta);
68
- export { InteractionMeta };
69
- let InteractionCall = class InteractionCall {
23
+ // the API as first-class objects.
24
+ export class InteractionParameter {
25
+ }
26
+ export class InteractionMeta {
27
+ }
28
+ export class InteractionCall {
70
29
  get parameters() {
71
30
  return JSON.parse(this.parametersStringified);
72
31
  }
@@ -74,32 +33,7 @@ let InteractionCall = class InteractionCall {
74
33
  this.name = name;
75
34
  this.parametersStringified = JSON.stringify(parameters);
76
35
  }
77
- };
78
- __decorate([
79
- Field(),
80
- __metadata("design:type", String)
81
- ], InteractionCall.prototype, "name", void 0);
82
- __decorate([
83
- Field(),
84
- __metadata("design:type", String)
85
- ], InteractionCall.prototype, "parametersStringified", void 0);
86
- InteractionCall = __decorate([
87
- InputType(),
88
- __metadata("design:paramtypes", [String, Object])
89
- ], InteractionCall);
90
- export { InteractionCall };
36
+ }
91
37
  // ----- Telepresence ----------------------------------------------------------
92
- let OnlineAgent = class OnlineAgent {
93
- };
94
- __decorate([
95
- Field(),
96
- __metadata("design:type", String)
97
- ], OnlineAgent.prototype, "did", void 0);
98
- __decorate([
99
- Field(),
100
- __metadata("design:type", PerspectiveExpression)
101
- ], OnlineAgent.prototype, "status", void 0);
102
- OnlineAgent = __decorate([
103
- ObjectType()
104
- ], OnlineAgent);
105
- export { OnlineAgent };
38
+ export class OnlineAgent {
39
+ }
@@ -1,10 +1,10 @@
1
- import { ApolloClient } from "@apollo/client/core";
1
+ import { ApiClient } from "../apiClient";
2
2
  import { LanguageHandle } from "./LanguageHandle";
3
3
  import { LanguageMeta, LanguageMetaInput } from "./LanguageMeta";
4
4
  import { LanguageRef } from "./LanguageRef";
5
5
  export declare class LanguageClient {
6
6
  #private;
7
- constructor(apolloClient: ApolloClient<any>);
7
+ constructor(baseUrl: string, token?: string, sharedApiClient?: ApiClient);
8
8
  byAddress(address: string): Promise<LanguageHandle>;
9
9
  byFilter(filter: string): Promise<LanguageHandle[]>;
10
10
  all(): Promise<LanguageHandle[]>;
@@ -9,129 +9,39 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
9
9
  if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
10
10
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
11
11
  };
12
- var _LanguageClient_apolloClient;
13
- import { gql } from "@apollo/client/core";
14
- import unwrapApolloResult from "../unwrapApolloResult";
15
- const LANGUAGE_COMPLETE = `
16
- name
17
- address
18
- settings
19
- icon { code }
20
- constructorIcon { code }
21
- settingsIcon { code }
22
- `;
23
- const LANGUAGE_META = `
24
- name
25
- address
26
- description
27
- author
28
- templated
29
- templateSourceLanguageAddress
30
- templateAppliedParams
31
- possibleTemplateParams
32
- sourceCodeLink
33
- `;
12
+ var _LanguageClient_apiClient;
13
+ import { ApiClient } from "../apiClient";
34
14
  export class LanguageClient {
35
- constructor(apolloClient) {
36
- _LanguageClient_apolloClient.set(this, void 0);
37
- __classPrivateFieldSet(this, _LanguageClient_apolloClient, apolloClient, "f");
15
+ constructor(baseUrl, token, sharedApiClient) {
16
+ _LanguageClient_apiClient.set(this, void 0);
17
+ __classPrivateFieldSet(this, _LanguageClient_apiClient, sharedApiClient || new ApiClient(baseUrl, token), "f");
38
18
  }
39
19
  async byAddress(address) {
40
- const { language } = unwrapApolloResult(await __classPrivateFieldGet(this, _LanguageClient_apolloClient, "f").query({
41
- query: gql `query byAddress($address: String!) {
42
- language(address: $address) {
43
- ${LANGUAGE_COMPLETE}
44
- }
45
- }`,
46
- variables: { address }
47
- }));
48
- return language;
20
+ return __classPrivateFieldGet(this, _LanguageClient_apiClient, "f").call('language.get', { address });
49
21
  }
50
22
  async byFilter(filter) {
51
- const { languages } = unwrapApolloResult(await __classPrivateFieldGet(this, _LanguageClient_apolloClient, "f").query({
52
- query: gql `query byFilter($filter: String!) {
53
- languages(filter: $filter) {
54
- ${LANGUAGE_COMPLETE}
55
- }
56
- }`,
57
- variables: { filter }
58
- }));
59
- return languages;
23
+ return __classPrivateFieldGet(this, _LanguageClient_apiClient, "f").call('language.all', { filter });
60
24
  }
61
25
  async all() {
62
- return this.byFilter('');
26
+ return __classPrivateFieldGet(this, _LanguageClient_apiClient, "f").call('language.all');
63
27
  }
64
28
  async writeSettings(languageAddress, settings) {
65
- const { languageWriteSettings } = unwrapApolloResult(await __classPrivateFieldGet(this, _LanguageClient_apolloClient, "f").mutate({
66
- mutation: gql `mutation writeSettings($languageAddress: String!, $settings: String!) {
67
- languageWriteSettings(languageAddress: $languageAddress, settings: $settings)
68
- }`,
69
- variables: { languageAddress, settings }
70
- }));
71
- return languageWriteSettings;
29
+ return __classPrivateFieldGet(this, _LanguageClient_apiClient, "f").call('language.writeSettings', { address: languageAddress, settings });
72
30
  }
73
31
  async applyTemplateAndPublish(sourceLanguageHash, templateData) {
74
- const { languageApplyTemplateAndPublish } = unwrapApolloResult(await __classPrivateFieldGet(this, _LanguageClient_apolloClient, "f").mutate({
75
- mutation: gql `mutation languageApplyTemplateAndPublish(
76
- $sourceLanguageHash: String!,
77
- $templateData: String!,
78
- ) {
79
- languageApplyTemplateAndPublish(sourceLanguageHash: $sourceLanguageHash, templateData: $templateData) {
80
- name, address
81
- }
82
- }`,
83
- variables: { sourceLanguageHash, templateData }
84
- }));
85
- return languageApplyTemplateAndPublish;
32
+ return __classPrivateFieldGet(this, _LanguageClient_apiClient, "f").call('language.applyTemplate', { sourceLanguageHash, templateData });
86
33
  }
87
34
  async publish(languagePath, languageMeta) {
88
- const { languagePublish } = unwrapApolloResult(await __classPrivateFieldGet(this, _LanguageClient_apolloClient, "f").mutate({
89
- mutation: gql `mutation languagePublish(
90
- $languagePath: String!,
91
- $languageMeta: LanguageMetaInput!,
92
- ) {
93
- languagePublish(languagePath: $languagePath, languageMeta: $languageMeta) {
94
- ${LANGUAGE_META}
95
- }
96
- }`,
97
- variables: { languagePath, languageMeta }
98
- }));
99
- return languagePublish;
35
+ return __classPrivateFieldGet(this, _LanguageClient_apiClient, "f").call('language.publish', { languagePath, languageMeta });
100
36
  }
101
37
  async meta(address) {
102
- const { languageMeta } = unwrapApolloResult(await __classPrivateFieldGet(this, _LanguageClient_apolloClient, "f").query({
103
- query: gql `query languageMeta(
104
- $address: String!,
105
- ) {
106
- languageMeta(address: $address) {
107
- ${LANGUAGE_META}
108
- }
109
- }`,
110
- variables: { address }
111
- }));
112
- return languageMeta;
38
+ return __classPrivateFieldGet(this, _LanguageClient_apiClient, "f").call('language.meta', { address });
113
39
  }
114
40
  async source(address) {
115
- const { languageSource } = unwrapApolloResult(await __classPrivateFieldGet(this, _LanguageClient_apolloClient, "f").query({
116
- query: gql `query languageSource(
117
- $address: String!,
118
- ) {
119
- languageSource(address: $address)
120
- }`,
121
- variables: { address }
122
- }));
123
- return languageSource;
41
+ return __classPrivateFieldGet(this, _LanguageClient_apiClient, "f").call('language.source', { address });
124
42
  }
125
43
  async remove(address) {
126
- const { languageRemove } = unwrapApolloResult(await __classPrivateFieldGet(this, _LanguageClient_apolloClient, "f").mutate({
127
- mutation: gql `mutation languageRemove(
128
- $address: String!,
129
- ) {
130
- languageRemove(address: $address)
131
- }`,
132
- variables: { address }
133
- }));
134
- return languageRemove;
44
+ return __classPrivateFieldGet(this, _LanguageClient_apiClient, "f").call('language.remove', { address });
135
45
  }
136
46
  }
137
- _LanguageClient_apolloClient = new WeakMap();
47
+ _LanguageClient_apiClient = new WeakMap();