@dxos/client-services 0.1.13 → 0.1.14

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 (316) hide show
  1. package/dist/lib/browser/index.mjs +2747 -0
  2. package/dist/lib/browser/index.mjs.map +7 -0
  3. package/dist/lib/browser/meta.json +1 -0
  4. package/dist/lib/node/index.cjs +2823 -0
  5. package/dist/lib/node/index.cjs.map +7 -0
  6. package/dist/lib/node/meta.json +1 -0
  7. package/dist/{src → types/src}/index.d.ts +0 -0
  8. package/dist/types/src/index.d.ts.map +1 -0
  9. package/dist/{src → types/src}/packlets/deprecated/index.d.ts +0 -0
  10. package/dist/types/src/packlets/deprecated/index.d.ts.map +1 -0
  11. package/dist/{src → types/src}/packlets/deprecated/invitations.d.ts +4 -4
  12. package/dist/types/src/packlets/deprecated/invitations.d.ts.map +1 -0
  13. package/dist/{src → types/src}/packlets/deprecated/profile.d.ts +0 -0
  14. package/dist/types/src/packlets/deprecated/profile.d.ts.map +1 -0
  15. package/dist/{src → types/src}/packlets/deprecated/space.d.ts +0 -0
  16. package/dist/types/src/packlets/deprecated/space.d.ts.map +1 -0
  17. package/dist/{src → types/src}/packlets/deprecated/system.d.ts +0 -0
  18. package/dist/types/src/packlets/deprecated/system.d.ts.map +1 -0
  19. package/dist/{src → types/src}/packlets/deprecated/tracing.d.ts +0 -0
  20. package/dist/types/src/packlets/deprecated/tracing.d.ts.map +1 -0
  21. package/dist/{src → types/src}/packlets/devtools/devtools.d.ts +1 -1
  22. package/dist/types/src/packlets/devtools/devtools.d.ts.map +1 -0
  23. package/dist/{src → types/src}/packlets/devtools/feeds.d.ts +0 -0
  24. package/dist/types/src/packlets/devtools/feeds.d.ts.map +1 -0
  25. package/dist/{src → types/src}/packlets/devtools/index.d.ts +0 -0
  26. package/dist/types/src/packlets/devtools/index.d.ts.map +1 -0
  27. package/dist/types/src/packlets/devtools/keys.d.ts +7 -0
  28. package/dist/types/src/packlets/devtools/keys.d.ts.map +1 -0
  29. package/dist/{src → types/src}/packlets/devtools/network.d.ts +0 -0
  30. package/dist/types/src/packlets/devtools/network.d.ts.map +1 -0
  31. package/dist/{src → types/src}/packlets/devtools/spaces.d.ts +0 -0
  32. package/dist/types/src/packlets/devtools/spaces.d.ts.map +1 -0
  33. package/dist/{src → types/src}/packlets/identity/authenticator.d.ts +0 -0
  34. package/dist/types/src/packlets/identity/authenticator.d.ts.map +1 -0
  35. package/dist/{src → types/src}/packlets/identity/authenticator.test.d.ts +0 -0
  36. package/dist/types/src/packlets/identity/authenticator.test.d.ts.map +1 -0
  37. package/dist/{src → types/src}/packlets/identity/devices-service-impl.d.ts +0 -0
  38. package/dist/types/src/packlets/identity/devices-service-impl.d.ts.map +1 -0
  39. package/dist/{src → types/src}/packlets/identity/identity-manager.d.ts +3 -3
  40. package/dist/types/src/packlets/identity/identity-manager.d.ts.map +1 -0
  41. package/dist/{src → types/src}/packlets/identity/identity-manager.test.d.ts +0 -0
  42. package/dist/types/src/packlets/identity/identity-manager.test.d.ts.map +1 -0
  43. package/dist/{src → types/src}/packlets/identity/identity.d.ts +2 -2
  44. package/dist/types/src/packlets/identity/identity.d.ts.map +1 -0
  45. package/dist/{src → types/src}/packlets/identity/identity.test.d.ts +0 -0
  46. package/dist/types/src/packlets/identity/identity.test.d.ts.map +1 -0
  47. package/dist/{src → types/src}/packlets/identity/index.d.ts +0 -0
  48. package/dist/types/src/packlets/identity/index.d.ts.map +1 -0
  49. package/dist/{src → types/src}/packlets/invitations/encoder.d.ts +0 -0
  50. package/dist/types/src/packlets/invitations/encoder.d.ts.map +1 -0
  51. package/dist/{src → types/src}/packlets/invitations/encoder.test.d.ts +0 -0
  52. package/dist/types/src/packlets/invitations/encoder.test.d.ts.map +1 -0
  53. package/dist/{src → types/src}/packlets/invitations/halo-invitations-handler.d.ts +0 -0
  54. package/dist/types/src/packlets/invitations/halo-invitations-handler.d.ts.map +1 -0
  55. package/dist/{src → types/src}/packlets/invitations/halo-invitations-handler.test.d.ts +0 -0
  56. package/dist/types/src/packlets/invitations/halo-invitations-handler.test.d.ts.map +1 -0
  57. package/dist/{src → types/src}/packlets/invitations/halo-invitations-proxy.d.ts +0 -0
  58. package/dist/types/src/packlets/invitations/halo-invitations-proxy.d.ts.map +1 -0
  59. package/dist/{src → types/src}/packlets/invitations/halo-invitations-service.d.ts +0 -0
  60. package/dist/types/src/packlets/invitations/halo-invitations-service.d.ts.map +1 -0
  61. package/dist/{src → types/src}/packlets/invitations/halo-invitations-service.test.d.ts +0 -0
  62. package/dist/types/src/packlets/invitations/halo-invitations-service.test.d.ts.map +1 -0
  63. package/dist/{src → types/src}/packlets/invitations/index.d.ts +0 -0
  64. package/dist/types/src/packlets/invitations/index.d.ts.map +1 -0
  65. package/dist/{src → types/src}/packlets/invitations/invitations-handler.d.ts +10 -10
  66. package/dist/types/src/packlets/invitations/invitations-handler.d.ts.map +1 -0
  67. package/dist/{src → types/src}/packlets/invitations/invitations-proxy.d.ts +0 -0
  68. package/dist/types/src/packlets/invitations/invitations-proxy.d.ts.map +1 -0
  69. package/dist/{src → types/src}/packlets/invitations/invitations-service.d.ts +0 -0
  70. package/dist/types/src/packlets/invitations/invitations-service.d.ts.map +1 -0
  71. package/dist/{src → types/src}/packlets/invitations/invitations.d.ts +0 -0
  72. package/dist/types/src/packlets/invitations/invitations.d.ts.map +1 -0
  73. package/dist/types/src/packlets/invitations/rpc-extension.d.ts +17 -0
  74. package/dist/types/src/packlets/invitations/rpc-extension.d.ts.map +1 -0
  75. package/dist/{src → types/src}/packlets/invitations/space-invitations-handler.d.ts +3 -1
  76. package/dist/types/src/packlets/invitations/space-invitations-handler.d.ts.map +1 -0
  77. package/dist/{src → types/src}/packlets/invitations/space-invitations-handler.test.d.ts +0 -0
  78. package/dist/types/src/packlets/invitations/space-invitations-handler.test.d.ts.map +1 -0
  79. package/dist/{src → types/src}/packlets/invitations/space-invitations-proxy.d.ts +0 -0
  80. package/dist/types/src/packlets/invitations/space-invitations-proxy.d.ts.map +1 -0
  81. package/dist/{src → types/src}/packlets/invitations/space-invitations-service.d.ts +0 -0
  82. package/dist/types/src/packlets/invitations/space-invitations-service.d.ts.map +1 -0
  83. package/dist/{src → types/src}/packlets/invitations/space-invitations-service.test.d.ts +0 -0
  84. package/dist/types/src/packlets/invitations/space-invitations-service.test.d.ts.map +1 -0
  85. package/dist/{src → types/src}/packlets/services/index.d.ts +0 -0
  86. package/dist/types/src/packlets/services/index.d.ts.map +1 -0
  87. package/dist/{src → types/src}/packlets/services/service-context.d.ts +0 -0
  88. package/dist/types/src/packlets/services/service-context.d.ts.map +1 -0
  89. package/dist/{src → types/src}/packlets/services/service-definitions.d.ts +1 -1
  90. package/dist/types/src/packlets/services/service-definitions.d.ts.map +1 -0
  91. package/dist/{src → types/src}/packlets/services/service-host.d.ts +1 -1
  92. package/dist/types/src/packlets/services/service-host.d.ts.map +1 -0
  93. package/dist/{src → types/src}/packlets/services/service-proxy.d.ts +0 -0
  94. package/dist/types/src/packlets/services/service-proxy.d.ts.map +1 -0
  95. package/dist/{src → types/src}/packlets/services/service-registry.d.ts +0 -0
  96. package/dist/types/src/packlets/services/service-registry.d.ts.map +1 -0
  97. package/dist/{src → types/src}/packlets/services/service-registry.test.d.ts +0 -0
  98. package/dist/types/src/packlets/services/service-registry.test.d.ts.map +1 -0
  99. package/dist/{src → types/src}/packlets/services/signer.d.ts +0 -0
  100. package/dist/types/src/packlets/services/signer.d.ts.map +1 -0
  101. package/dist/{src → types/src}/packlets/spaces/index.d.ts +0 -0
  102. package/dist/types/src/packlets/spaces/index.d.ts.map +1 -0
  103. package/dist/{src → types/src}/packlets/spaces/spaces-service.d.ts +0 -0
  104. package/dist/types/src/packlets/spaces/spaces-service.d.ts.map +1 -0
  105. package/dist/{src → types/src}/packlets/storage/index.d.ts +0 -0
  106. package/dist/types/src/packlets/storage/index.d.ts.map +1 -0
  107. package/dist/{src → types/src}/packlets/storage/storage.d.ts +1 -1
  108. package/dist/types/src/packlets/storage/storage.d.ts.map +1 -0
  109. package/dist/{src → types/src}/packlets/testing/index.d.ts +0 -0
  110. package/dist/types/src/packlets/testing/index.d.ts.map +1 -0
  111. package/dist/{src → types/src}/packlets/testing/test-builder.d.ts +0 -0
  112. package/dist/types/src/packlets/testing/test-builder.d.ts.map +1 -0
  113. package/dist/{src → types/src}/packlets/vault/iframe-runtime.d.ts +1 -1
  114. package/dist/types/src/packlets/vault/iframe-runtime.d.ts.map +1 -0
  115. package/dist/{src → types/src}/packlets/vault/index.d.ts +0 -0
  116. package/dist/types/src/packlets/vault/index.d.ts.map +1 -0
  117. package/dist/{src → types/src}/packlets/vault/services.d.ts +2 -2
  118. package/dist/types/src/packlets/vault/services.d.ts.map +1 -0
  119. package/dist/{src → types/src}/packlets/vault/worker-runtime.d.ts +1 -1
  120. package/dist/types/src/packlets/vault/worker-runtime.d.ts.map +1 -0
  121. package/dist/{src → types/src}/packlets/vault/worker-session.d.ts +1 -1
  122. package/dist/types/src/packlets/vault/worker-session.d.ts.map +1 -0
  123. package/package.json +32 -30
  124. package/src/packlets/devtools/devtools.ts +2 -1
  125. package/src/packlets/devtools/keys.ts +19 -0
  126. package/src/packlets/identity/authenticator.test.ts +5 -8
  127. package/src/packlets/identity/identity-manager.test.ts +5 -5
  128. package/src/packlets/identity/identity-manager.ts +6 -4
  129. package/src/packlets/identity/identity.test.ts +4 -4
  130. package/src/packlets/identity/identity.ts +1 -1
  131. package/src/packlets/invitations/encoder.test.ts +3 -2
  132. package/src/packlets/invitations/halo-invitations-handler.test.ts +5 -5
  133. package/src/packlets/invitations/halo-invitations-handler.ts +232 -135
  134. package/src/packlets/invitations/halo-invitations-service.test.ts +4 -4
  135. package/src/packlets/invitations/invitations-handler.ts +9 -9
  136. package/src/packlets/invitations/invitations-proxy.ts +1 -1
  137. package/src/packlets/invitations/invitations-service.ts +1 -1
  138. package/src/packlets/invitations/invitations.ts +1 -1
  139. package/src/packlets/invitations/rpc-extension.ts +56 -0
  140. package/src/packlets/invitations/space-invitations-handler.test.ts +15 -9
  141. package/src/packlets/invitations/space-invitations-handler.ts +293 -152
  142. package/src/packlets/invitations/space-invitations-service.test.ts +5 -5
  143. package/src/packlets/invitations/space-invitations-service.ts +1 -1
  144. package/src/packlets/services/service-context.ts +6 -1
  145. package/src/packlets/services/service-registry.test.ts +4 -3
  146. package/src/packlets/vault/worker-session.ts +8 -3
  147. package/testing.d.ts +1 -1
  148. package/testing.js +1 -1
  149. package/dist/src/index.d.ts.map +0 -1
  150. package/dist/src/index.js +0 -27
  151. package/dist/src/index.js.map +0 -1
  152. package/dist/src/packlets/deprecated/index.d.ts.map +0 -1
  153. package/dist/src/packlets/deprecated/index.js +0 -24
  154. package/dist/src/packlets/deprecated/index.js.map +0 -1
  155. package/dist/src/packlets/deprecated/invitations.d.ts.map +0 -1
  156. package/dist/src/packlets/deprecated/invitations.js +0 -12
  157. package/dist/src/packlets/deprecated/invitations.js.map +0 -1
  158. package/dist/src/packlets/deprecated/profile.d.ts.map +0 -1
  159. package/dist/src/packlets/deprecated/profile.js +0 -60
  160. package/dist/src/packlets/deprecated/profile.js.map +0 -1
  161. package/dist/src/packlets/deprecated/space.d.ts.map +0 -1
  162. package/dist/src/packlets/deprecated/space.js +0 -209
  163. package/dist/src/packlets/deprecated/space.js.map +0 -1
  164. package/dist/src/packlets/deprecated/system.d.ts.map +0 -1
  165. package/dist/src/packlets/deprecated/system.js +0 -33
  166. package/dist/src/packlets/deprecated/system.js.map +0 -1
  167. package/dist/src/packlets/deprecated/tracing.d.ts.map +0 -1
  168. package/dist/src/packlets/deprecated/tracing.js +0 -22
  169. package/dist/src/packlets/deprecated/tracing.js.map +0 -1
  170. package/dist/src/packlets/devtools/devtools.d.ts.map +0 -1
  171. package/dist/src/packlets/devtools/devtools.js +0 -88
  172. package/dist/src/packlets/devtools/devtools.js.map +0 -1
  173. package/dist/src/packlets/devtools/feeds.d.ts.map +0 -1
  174. package/dist/src/packlets/devtools/feeds.js +0 -77
  175. package/dist/src/packlets/devtools/feeds.js.map +0 -1
  176. package/dist/src/packlets/devtools/index.d.ts.map +0 -1
  177. package/dist/src/packlets/devtools/index.js +0 -24
  178. package/dist/src/packlets/devtools/index.js.map +0 -1
  179. package/dist/src/packlets/devtools/network.d.ts.map +0 -1
  180. package/dist/src/packlets/devtools/network.js +0 -79
  181. package/dist/src/packlets/devtools/network.js.map +0 -1
  182. package/dist/src/packlets/devtools/spaces.d.ts.map +0 -1
  183. package/dist/src/packlets/devtools/spaces.js +0 -39
  184. package/dist/src/packlets/devtools/spaces.js.map +0 -1
  185. package/dist/src/packlets/identity/authenticator.d.ts.map +0 -1
  186. package/dist/src/packlets/identity/authenticator.js +0 -40
  187. package/dist/src/packlets/identity/authenticator.js.map +0 -1
  188. package/dist/src/packlets/identity/authenticator.test.d.ts.map +0 -1
  189. package/dist/src/packlets/identity/authenticator.test.js +0 -32
  190. package/dist/src/packlets/identity/authenticator.test.js.map +0 -1
  191. package/dist/src/packlets/identity/devices-service-impl.d.ts.map +0 -1
  192. package/dist/src/packlets/identity/devices-service-impl.js +0 -47
  193. package/dist/src/packlets/identity/devices-service-impl.js.map +0 -1
  194. package/dist/src/packlets/identity/identity-manager.d.ts.map +0 -1
  195. package/dist/src/packlets/identity/identity-manager.js +0 -156
  196. package/dist/src/packlets/identity/identity-manager.js.map +0 -1
  197. package/dist/src/packlets/identity/identity-manager.test.d.ts.map +0 -1
  198. package/dist/src/packlets/identity/identity-manager.test.js +0 -88
  199. package/dist/src/packlets/identity/identity-manager.test.js.map +0 -1
  200. package/dist/src/packlets/identity/identity.d.ts.map +0 -1
  201. package/dist/src/packlets/identity/identity.js +0 -133
  202. package/dist/src/packlets/identity/identity.js.map +0 -1
  203. package/dist/src/packlets/identity/identity.test.d.ts.map +0 -1
  204. package/dist/src/packlets/identity/identity.test.js +0 -257
  205. package/dist/src/packlets/identity/identity.test.js.map +0 -1
  206. package/dist/src/packlets/identity/index.d.ts.map +0 -1
  207. package/dist/src/packlets/identity/index.js +0 -23
  208. package/dist/src/packlets/identity/index.js.map +0 -1
  209. package/dist/src/packlets/invitations/encoder.d.ts.map +0 -1
  210. package/dist/src/packlets/invitations/encoder.js +0 -27
  211. package/dist/src/packlets/invitations/encoder.js.map +0 -1
  212. package/dist/src/packlets/invitations/encoder.test.d.ts.map +0 -1
  213. package/dist/src/packlets/invitations/encoder.test.js +0 -19
  214. package/dist/src/packlets/invitations/encoder.test.js.map +0 -1
  215. package/dist/src/packlets/invitations/halo-invitations-handler.d.ts.map +0 -1
  216. package/dist/src/packlets/invitations/halo-invitations-handler.js +0 -231
  217. package/dist/src/packlets/invitations/halo-invitations-handler.js.map +0 -1
  218. package/dist/src/packlets/invitations/halo-invitations-handler.test.d.ts.map +0 -1
  219. package/dist/src/packlets/invitations/halo-invitations-handler.test.js +0 -69
  220. package/dist/src/packlets/invitations/halo-invitations-handler.test.js.map +0 -1
  221. package/dist/src/packlets/invitations/halo-invitations-proxy.d.ts.map +0 -1
  222. package/dist/src/packlets/invitations/halo-invitations-proxy.js +0 -17
  223. package/dist/src/packlets/invitations/halo-invitations-proxy.js.map +0 -1
  224. package/dist/src/packlets/invitations/halo-invitations-service.d.ts.map +0 -1
  225. package/dist/src/packlets/invitations/halo-invitations-service.js +0 -20
  226. package/dist/src/packlets/invitations/halo-invitations-service.js.map +0 -1
  227. package/dist/src/packlets/invitations/halo-invitations-service.test.d.ts.map +0 -1
  228. package/dist/src/packlets/invitations/halo-invitations-service.test.js +0 -83
  229. package/dist/src/packlets/invitations/halo-invitations-service.test.js.map +0 -1
  230. package/dist/src/packlets/invitations/index.d.ts.map +0 -1
  231. package/dist/src/packlets/invitations/index.js +0 -31
  232. package/dist/src/packlets/invitations/index.js.map +0 -1
  233. package/dist/src/packlets/invitations/invitations-handler.d.ts.map +0 -1
  234. package/dist/src/packlets/invitations/invitations-handler.js +0 -18
  235. package/dist/src/packlets/invitations/invitations-handler.js.map +0 -1
  236. package/dist/src/packlets/invitations/invitations-proxy.d.ts.map +0 -1
  237. package/dist/src/packlets/invitations/invitations-proxy.js +0 -121
  238. package/dist/src/packlets/invitations/invitations-proxy.js.map +0 -1
  239. package/dist/src/packlets/invitations/invitations-service.d.ts.map +0 -1
  240. package/dist/src/packlets/invitations/invitations-service.js +0 -174
  241. package/dist/src/packlets/invitations/invitations-service.js.map +0 -1
  242. package/dist/src/packlets/invitations/invitations.d.ts.map +0 -1
  243. package/dist/src/packlets/invitations/invitations.js +0 -59
  244. package/dist/src/packlets/invitations/invitations.js.map +0 -1
  245. package/dist/src/packlets/invitations/space-invitations-handler.d.ts.map +0 -1
  246. package/dist/src/packlets/invitations/space-invitations-handler.js +0 -239
  247. package/dist/src/packlets/invitations/space-invitations-handler.js.map +0 -1
  248. package/dist/src/packlets/invitations/space-invitations-handler.test.d.ts.map +0 -1
  249. package/dist/src/packlets/invitations/space-invitations-handler.test.js +0 -131
  250. package/dist/src/packlets/invitations/space-invitations-handler.test.js.map +0 -1
  251. package/dist/src/packlets/invitations/space-invitations-proxy.d.ts.map +0 -1
  252. package/dist/src/packlets/invitations/space-invitations-proxy.js +0 -17
  253. package/dist/src/packlets/invitations/space-invitations-proxy.js.map +0 -1
  254. package/dist/src/packlets/invitations/space-invitations-service.d.ts.map +0 -1
  255. package/dist/src/packlets/invitations/space-invitations-service.js +0 -31
  256. package/dist/src/packlets/invitations/space-invitations-service.js.map +0 -1
  257. package/dist/src/packlets/invitations/space-invitations-service.test.d.ts.map +0 -1
  258. package/dist/src/packlets/invitations/space-invitations-service.test.js +0 -100
  259. package/dist/src/packlets/invitations/space-invitations-service.test.js.map +0 -1
  260. package/dist/src/packlets/services/index.d.ts.map +0 -1
  261. package/dist/src/packlets/services/index.js +0 -26
  262. package/dist/src/packlets/services/index.js.map +0 -1
  263. package/dist/src/packlets/services/service-context.d.ts.map +0 -1
  264. package/dist/src/packlets/services/service-context.js +0 -103
  265. package/dist/src/packlets/services/service-context.js.map +0 -1
  266. package/dist/src/packlets/services/service-definitions.d.ts.map +0 -1
  267. package/dist/src/packlets/services/service-definitions.js +0 -25
  268. package/dist/src/packlets/services/service-definitions.js.map +0 -1
  269. package/dist/src/packlets/services/service-host.d.ts.map +0 -1
  270. package/dist/src/packlets/services/service-host.js +0 -88
  271. package/dist/src/packlets/services/service-host.js.map +0 -1
  272. package/dist/src/packlets/services/service-proxy.d.ts.map +0 -1
  273. package/dist/src/packlets/services/service-proxy.js +0 -48
  274. package/dist/src/packlets/services/service-proxy.js.map +0 -1
  275. package/dist/src/packlets/services/service-registry.d.ts.map +0 -1
  276. package/dist/src/packlets/services/service-registry.js +0 -24
  277. package/dist/src/packlets/services/service-registry.js.map +0 -1
  278. package/dist/src/packlets/services/service-registry.test.d.ts.map +0 -1
  279. package/dist/src/packlets/services/service-registry.test.js +0 -75
  280. package/dist/src/packlets/services/service-registry.test.js.map +0 -1
  281. package/dist/src/packlets/services/signer.d.ts.map +0 -1
  282. package/dist/src/packlets/services/signer.js +0 -6
  283. package/dist/src/packlets/services/signer.js.map +0 -1
  284. package/dist/src/packlets/spaces/index.d.ts.map +0 -1
  285. package/dist/src/packlets/spaces/index.js +0 -21
  286. package/dist/src/packlets/spaces/index.js.map +0 -1
  287. package/dist/src/packlets/spaces/spaces-service.d.ts.map +0 -1
  288. package/dist/src/packlets/spaces/spaces-service.js +0 -22
  289. package/dist/src/packlets/spaces/spaces-service.js.map +0 -1
  290. package/dist/src/packlets/storage/index.d.ts.map +0 -1
  291. package/dist/src/packlets/storage/index.js +0 -21
  292. package/dist/src/packlets/storage/index.js.map +0 -1
  293. package/dist/src/packlets/storage/storage.d.ts.map +0 -1
  294. package/dist/src/packlets/storage/storage.js +0 -89
  295. package/dist/src/packlets/storage/storage.js.map +0 -1
  296. package/dist/src/packlets/testing/index.d.ts.map +0 -1
  297. package/dist/src/packlets/testing/index.js +0 -21
  298. package/dist/src/packlets/testing/index.js.map +0 -1
  299. package/dist/src/packlets/testing/test-builder.d.ts.map +0 -1
  300. package/dist/src/packlets/testing/test-builder.js +0 -66
  301. package/dist/src/packlets/testing/test-builder.js.map +0 -1
  302. package/dist/src/packlets/vault/iframe-runtime.d.ts.map +0 -1
  303. package/dist/src/packlets/vault/iframe-runtime.js +0 -46
  304. package/dist/src/packlets/vault/iframe-runtime.js.map +0 -1
  305. package/dist/src/packlets/vault/index.d.ts.map +0 -1
  306. package/dist/src/packlets/vault/index.js +0 -23
  307. package/dist/src/packlets/vault/index.js.map +0 -1
  308. package/dist/src/packlets/vault/services.d.ts.map +0 -1
  309. package/dist/src/packlets/vault/services.js +0 -15
  310. package/dist/src/packlets/vault/services.js.map +0 -1
  311. package/dist/src/packlets/vault/worker-runtime.d.ts.map +0 -1
  312. package/dist/src/packlets/vault/worker-runtime.js +0 -99
  313. package/dist/src/packlets/vault/worker-runtime.js.map +0 -1
  314. package/dist/src/packlets/vault/worker-session.d.ts.map +0 -1
  315. package/dist/src/packlets/vault/worker-session.js +0 -106
  316. package/dist/src/packlets/vault/worker-session.js.map +0 -1
@@ -1,156 +0,0 @@
1
- "use strict";
2
- //
3
- // Copyright 2022 DXOS.org
4
- //
5
- var __importDefault = (this && this.__importDefault) || function (mod) {
6
- return (mod && mod.__esModule) ? mod : { "default": mod };
7
- };
8
- Object.defineProperty(exports, "__esModule", { value: true });
9
- exports.IdentityManager = void 0;
10
- const assert_1 = __importDefault(require("assert"));
11
- const async_1 = require("@dxos/async");
12
- const credentials_1 = require("@dxos/credentials");
13
- const echo_db_1 = require("@dxos/echo-db");
14
- const log_1 = require("@dxos/log");
15
- const credentials_2 = require("@dxos/protocols/proto/dxos/halo/credentials");
16
- const identity_1 = require("../identity");
17
- // TODO(dmaretskyi): Rename: represents the peer's state machine.
18
- class IdentityManager {
19
- // TODO(burdon): IdentityManagerParams.
20
- // TODO(dmaretskyi): Perhaps this should take/generate the peerKey outside of an initialized identity.
21
- constructor(_metadataStore, _feedStore, _keyring, _networkManager, _modelFactory) {
22
- this._metadataStore = _metadataStore;
23
- this._feedStore = _feedStore;
24
- this._keyring = _keyring;
25
- this._networkManager = _networkManager;
26
- this._modelFactory = _modelFactory;
27
- this.stateUpdate = new async_1.Event();
28
- }
29
- get identity() {
30
- return this._identity;
31
- }
32
- async open() {
33
- await this._metadataStore.load();
34
- const identityRecord = this._metadataStore.getIdentityRecord();
35
- if (identityRecord) {
36
- this._identity = await this._constructIdentity(identityRecord);
37
- await this._identity.open();
38
- await this._identity.ready();
39
- this.stateUpdate.emit();
40
- }
41
- }
42
- async close() {
43
- var _a;
44
- await ((_a = this._identity) === null || _a === void 0 ? void 0 : _a.close());
45
- }
46
- async createIdentity({ displayName } = {}) {
47
- (0, assert_1.default)(!this._identity, 'Identity already exists.');
48
- (0, log_1.log)('creating identity...', {}, { file: "packages/sdk/client-services/src/packlets/identity/identity-manager.ts", line: 83, scope: this, bugcheck: "If you see this message then it means that the source code preprocessor for @dxos/log is broken. It probably has misinterpreted an unrelated call for a logger invocation.", callSite: (fn, args) => fn(...args) });
49
- const controlFeedKey = await this._keyring.createKey();
50
- const identityRecord = {
51
- identityKey: await this._keyring.createKey(),
52
- deviceKey: await this._keyring.createKey(),
53
- haloSpace: {
54
- spaceKey: await this._keyring.createKey(),
55
- genesisFeedKey: controlFeedKey,
56
- writeControlFeedKey: controlFeedKey,
57
- writeDataFeedKey: await this._keyring.createKey()
58
- }
59
- };
60
- const identity = await this._constructIdentity(identityRecord);
61
- await identity.open();
62
- {
63
- const generator = new credentials_1.CredentialGenerator(this._keyring, identityRecord.identityKey, identityRecord.deviceKey);
64
- const credentials = [
65
- // Space genesis.
66
- ...(await generator.createSpaceGenesis(identityRecord.haloSpace.spaceKey, identityRecord.haloSpace.genesisFeedKey)),
67
- // Feed admission.
68
- await generator.createFeedAdmission(identityRecord.haloSpace.spaceKey, identityRecord.haloSpace.writeDataFeedKey, credentials_2.AdmittedFeed.Designation.DATA)
69
- ];
70
- if (displayName) {
71
- credentials.push(await generator.createProfileCredential({ displayName }));
72
- }
73
- // Device authorization (writes device chain).
74
- // NOTE: This credential is written last. This is a hack to make sure that display name is set before identity is "ready".
75
- credentials.push(await generator.createDeviceAuthorization(identityRecord.deviceKey));
76
- for (const credential of credentials) {
77
- await identity.controlPipeline.writer.write({
78
- '@type': 'dxos.echo.feed.CredentialsMessage',
79
- credential
80
- });
81
- }
82
- }
83
- // TODO(burdon): ???
84
- // await this._keyring.deleteKey(identityRecord.identity_key);
85
- // await this._keyring.deleteKey(identityRecord.halo_space.space_key);
86
- await this._metadataStore.setIdentityRecord(identityRecord);
87
- this._identity = identity;
88
- await this._identity.ready();
89
- this.stateUpdate.emit();
90
- (0, log_1.log)('created identity', { identityKey: identity.identityKey, deviceKey: identity.deviceKey }, { file: "packages/sdk/client-services/src/packlets/identity/identity-manager.ts", line: 142, scope: this, bugcheck: "If you see this message then it means that the source code preprocessor for @dxos/log is broken. It probably has misinterpreted an unrelated call for a logger invocation.", callSite: (fn, args) => fn(...args) });
91
- return identity;
92
- }
93
- /**
94
- * Accept an existing identity. Expects it's device key to be authorized.
95
- */
96
- async acceptIdentity(params) {
97
- (0, log_1.log)('accepting identity', { params }, { file: "packages/sdk/client-services/src/packlets/identity/identity-manager.ts", line: 150, scope: this, bugcheck: "If you see this message then it means that the source code preprocessor for @dxos/log is broken. It probably has misinterpreted an unrelated call for a logger invocation.", callSite: (fn, args) => fn(...args) });
98
- (0, assert_1.default)(!this._identity, 'Identity already exists.');
99
- const identity = await this._constructIdentity({
100
- identityKey: params.identityKey,
101
- deviceKey: await this._keyring.createKey(),
102
- haloSpace: {
103
- spaceKey: params.haloSpaceKey,
104
- genesisFeedKey: params.haloGenesisFeedKey,
105
- writeControlFeedKey: await this._keyring.createKey(),
106
- writeDataFeedKey: await this._keyring.createKey()
107
- }
108
- });
109
- await identity.open();
110
- this._identity = identity;
111
- this.stateUpdate.emit();
112
- return identity;
113
- }
114
- async _constructIdentity(identityRecord) {
115
- (0, assert_1.default)(!this._identity);
116
- (0, log_1.log)('constructing identity', { identityRecord }, { file: "packages/sdk/client-services/src/packlets/identity/identity-manager.ts", line: 172, scope: this, bugcheck: "If you see this message then it means that the source code preprocessor for @dxos/log is broken. It probably has misinterpreted an unrelated call for a logger invocation.", callSite: (fn, args) => fn(...args) });
117
- const space = await this._constructSpace({
118
- spaceRecord: identityRecord.haloSpace,
119
- swarmIdentity: {
120
- peerKey: identityRecord.deviceKey,
121
- credentialProvider: echo_db_1.MOCK_AUTH_PROVIDER,
122
- credentialAuthenticator: echo_db_1.MOCK_AUTH_VERIFIER
123
- }
124
- });
125
- (0, log_1.log)('done', { identityKey: identityRecord.identityKey }, { file: "packages/sdk/client-services/src/packlets/identity/identity-manager.ts", line: 183, scope: this, bugcheck: "If you see this message then it means that the source code preprocessor for @dxos/log is broken. It probably has misinterpreted an unrelated call for a logger invocation.", callSite: (fn, args) => fn(...args) });
126
- return new identity_1.Identity({
127
- space,
128
- signer: this._keyring,
129
- identityKey: identityRecord.identityKey,
130
- deviceKey: identityRecord.deviceKey
131
- });
132
- }
133
- async _constructSpace({ spaceRecord, swarmIdentity }) {
134
- const controlFeed = await this._feedStore.openFeed(spaceRecord.writeControlFeedKey, { writable: true });
135
- const dataFeed = await this._feedStore.openFeed(spaceRecord.writeDataFeedKey, { writable: true });
136
- // The genesis feed will be the same as the control feed if the space was created by the local agent.
137
- // NOTE: Must be initialized after writable feeds so that it is in a writable state.
138
- const genesisFeed = await this._feedStore.openFeed(spaceRecord.genesisFeedKey);
139
- const protocol = new echo_db_1.SpaceProtocol({
140
- topic: spaceRecord.spaceKey,
141
- identity: swarmIdentity,
142
- networkManager: this._networkManager
143
- });
144
- return new echo_db_1.Space({
145
- spaceKey: spaceRecord.spaceKey,
146
- protocol,
147
- genesisFeed,
148
- controlFeed,
149
- dataFeed,
150
- feedProvider: (feedKey) => this._feedStore.openFeed(feedKey),
151
- databaseFactory: async ({ databaseBackend }) => new echo_db_1.Database(this._modelFactory, databaseBackend, swarmIdentity.peerKey)
152
- });
153
- }
154
- }
155
- exports.IdentityManager = IdentityManager;
156
- //# sourceMappingURL=identity-manager.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"identity-manager.js","sourceRoot":"","sources":["../../../../src/packlets/identity/identity-manager.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;;;;;;AAEF,oDAA4B;AAE5B,uCAAoC;AACpC,mDAAwD;AACxD,2CAQuB;AAIvB,mCAAgC;AAIhC,6EAAwG;AAExG,0CAAuC;AAkBvC,iEAAiE;AACjE,MAAa,eAAe;IAK1B,uCAAuC;IACvC,sGAAsG;IACtG,YACmB,cAA6B,EAC7B,UAAkC,EAClC,QAAiB,EACjB,eAA+B,EAC/B,aAA2B;QAJ3B,mBAAc,GAAd,cAAc,CAAe;QAC7B,eAAU,GAAV,UAAU,CAAwB;QAClC,aAAQ,GAAR,QAAQ,CAAS;QACjB,oBAAe,GAAf,eAAe,CAAgB;QAC/B,kBAAa,GAAb,aAAa,CAAc;QAXrC,gBAAW,GAAG,IAAI,aAAK,EAAE,CAAC;IAYhC,CAAC;IAEJ,IAAI,QAAQ;QACV,OAAO,IAAI,CAAC,SAAS,CAAC;IACxB,CAAC;IAED,KAAK,CAAC,IAAI;QACR,MAAM,IAAI,CAAC,cAAc,CAAC,IAAI,EAAE,CAAC;QAEjC,MAAM,cAAc,GAAG,IAAI,CAAC,cAAc,CAAC,iBAAiB,EAAE,CAAC;QAC/D,IAAI,cAAc,EAAE;YAClB,IAAI,CAAC,SAAS,GAAG,MAAM,IAAI,CAAC,kBAAkB,CAAC,cAAc,CAAC,CAAC;YAC/D,MAAM,IAAI,CAAC,SAAS,CAAC,IAAI,EAAE,CAAC;YAC5B,MAAM,IAAI,CAAC,SAAS,CAAC,KAAK,EAAE,CAAC;YAC7B,IAAI,CAAC,WAAW,CAAC,IAAI,EAAE,CAAC;SACzB;IACH,CAAC;IAED,KAAK,CAAC,KAAK;;QACT,MAAM,CAAA,MAAA,IAAI,CAAC,SAAS,0CAAE,KAAK,EAAE,CAAA,CAAC;IAChC,CAAC;IAED,KAAK,CAAC,cAAc,CAA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,EAAE,CAAC,CAAC;QACxG,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,WAAW,CAAC,gBAAgB,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC;QAElG,qGAAqG;QACrG,oFAAoF;QACpF,MAAM,WAAW,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,WAAW,CAAC,cAAc,CAAC,CAAC;QAE/E,MAAM,QAAQ,GAAG,IAAI,uBAAa,CAAC;YACjC,KAAK,EAAE,WAAW,CAAC,QAAQ;YAC3B,QAAQ,EAAE,aAAa;YACvB,cAAc,EAAE,IAAI,CAAC,eAAe;SACrC,CAAC,CAAC;QAEH,OAAO,IAAI,eAAK,CAAC;YACf,QAAQ,EAAE,WAAW,CAAC,QAAQ;YAC9B,QAAQ;YACR,WAAW;YACX,WAAW;YACX,QAAQ;YACR,YAAY,EAAE,CAAC,OAAO,EAAE,EAAE,CAAC,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,OAAO,CAAC;YAC5D,eAAe,EAAE,KAAK,EAAE,EAAE,eAAe,EAAE,EAAE,EAAE,CAC7C,IAAI,kBAAQ,CAAC,IAAI,CAAC,aAAa,EAAE,eAAe,EAAE,aAAa,CAAC,OAAO,CAAC;SAC3E,CAAC,CAAC;IACL,CAAC;CACF;AA3KD,0CA2KC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"identity-manager.test.d.ts","sourceRoot":"","sources":["../../../../src/packlets/identity/identity-manager.test.ts"],"names":[],"mappings":""}
@@ -1,88 +0,0 @@
1
- "use strict";
2
- //
3
- // Copyright 2022 DXOS.org
4
- //
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- const chai_1 = require("chai");
7
- const echo_db_1 = require("@dxos/echo-db");
8
- const feed_store_1 = require("@dxos/feed-store");
9
- const keyring_1 = require("@dxos/keyring");
10
- const messaging_1 = require("@dxos/messaging");
11
- const network_manager_1 = require("@dxos/network-manager");
12
- const random_access_storage_1 = require("@dxos/random-access-storage");
13
- const testutils_1 = require("@dxos/testutils");
14
- const services_1 = require("../services");
15
- const identity_manager_1 = require("./identity-manager");
16
- describe('identity/identity-manager', function () {
17
- const setupPeer = async ({ signalContext = new messaging_1.MemorySignalManagerContext(), storage = (0, random_access_storage_1.createStorage)({ type: random_access_storage_1.StorageType.RAM }) } = {}) => {
18
- const metadataStore = new echo_db_1.MetadataStore(storage.createDirectory('metadata'));
19
- const keyring = new keyring_1.Keyring(storage.createDirectory('keyring'));
20
- const feedStore = new feed_store_1.FeedStore({
21
- factory: new feed_store_1.FeedFactory({
22
- root: storage.createDirectory('feeds'),
23
- signer: keyring,
24
- hypercore: {
25
- valueEncoding: echo_db_1.valueEncoding
26
- }
27
- })
28
- });
29
- (0, testutils_1.afterTest)(() => feedStore.close());
30
- const networkManager = new network_manager_1.NetworkManager({
31
- signalManager: new messaging_1.MemorySignalManager(signalContext),
32
- transportFactory: network_manager_1.MemoryTransportFactory
33
- });
34
- const identityManager = new identity_manager_1.IdentityManager(metadataStore, feedStore, keyring, networkManager, (0, services_1.createDefaultModelFactory)());
35
- return {
36
- identityManager,
37
- feedStore
38
- };
39
- };
40
- it('creates identity', async function () {
41
- const { identityManager } = await setupPeer();
42
- await identityManager.open();
43
- (0, testutils_1.afterTest)(() => identityManager.close());
44
- const identity = await identityManager.createIdentity();
45
- (0, chai_1.expect)(identity).to.exist;
46
- });
47
- it('reload from storage', async function () {
48
- const storage = (0, random_access_storage_1.createStorage)({ type: random_access_storage_1.StorageType.RAM });
49
- const peer1 = await setupPeer({ storage });
50
- await peer1.identityManager.open();
51
- const identity1 = await peer1.identityManager.createIdentity();
52
- await peer1.identityManager.close();
53
- await peer1.feedStore.close();
54
- const peer2 = await setupPeer({ storage });
55
- await peer2.identityManager.open();
56
- (0, chai_1.expect)(peer2.identityManager.identity).to.exist;
57
- (0, chai_1.expect)(peer2.identityManager.identity.identityKey).to.deep.eq(identity1.identityKey);
58
- (0, chai_1.expect)(peer2.identityManager.identity.deviceKey).to.deep.eq(identity1.deviceKey);
59
- // TODO(dmaretskyi): Check that identity is "alive" (space is working and can write mutations).
60
- });
61
- it('admit another device', async function () {
62
- const signalContext = new messaging_1.MemorySignalManagerContext();
63
- const peer1 = await setupPeer({ signalContext });
64
- const identity1 = await peer1.identityManager.createIdentity();
65
- const peer2 = await setupPeer({ signalContext });
66
- // Identity2 is not yet ready at this point. Peer1 needs to admit peer2 device key and feed keys.
67
- const identity2 = await peer2.identityManager.acceptIdentity({
68
- identityKey: identity1.identityKey,
69
- haloSpaceKey: identity1.haloSpaceKey,
70
- haloGenesisFeedKey: identity1.haloGenesisFeedKey
71
- });
72
- await identity1.controlPipeline.writer.write({
73
- '@type': 'dxos.echo.feed.CredentialsMessage',
74
- credential: await identity1.getIdentityCredentialSigner().createCredential({
75
- subject: identity2.deviceKey,
76
- assertion: {
77
- '@type': 'dxos.halo.credentials.AuthorizedDevice',
78
- identityKey: identity2.identityKey,
79
- deviceKey: identity2.deviceKey
80
- }
81
- })
82
- });
83
- // TODO(dmaretskyi): We'd also need to admit device2's feeds otherwise messages from them won't be processed by the pipeline.
84
- // This would mean that peer2 has replicated it's device credential chain from peer1 and is ready to issue credentials.
85
- await identity2.ready();
86
- });
87
- });
88
- //# sourceMappingURL=identity-manager.test.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"identity-manager.test.js","sourceRoot":"","sources":["../../../../src/packlets/identity/identity-manager.test.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;;AAEF,+BAA8B;AAE9B,2CAA6D;AAC7D,iDAA0D;AAC1D,2CAAwC;AACxC,+CAAkF;AAClF,2DAA+E;AAE/E,uEAAkF;AAClF,+CAA4C;AAE5C,0CAAwD;AACxD,yDAAqD;AAErD,QAAQ,CAAC,2BAA2B,EAAE;IACpC,MAAM,SAAS,GAAG,KAAK,EAAE,EACvB,aAAa,GAAG,IAAI,sCAA0B,EAAE,EAChD,OAAO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) || function (mod) {
6
- return (mod && mod.__esModule) ? mod : { "default": mod };
7
- };
8
- Object.defineProperty(exports, "__esModule", { value: true });
9
- exports.Identity = void 0;
10
- const assert_1 = __importDefault(require("assert"));
11
- const async_1 = require("@dxos/async");
12
- const credentials_1 = require("@dxos/credentials");
13
- const debug_1 = require("@dxos/debug");
14
- const feed_store_1 = require("@dxos/feed-store");
15
- const log_1 = require("@dxos/log");
16
- const credentials_2 = require("@dxos/protocols/proto/dxos/halo/credentials");
17
- /**
18
- * Agent identity manager, which includes the agent's Halo space.
19
- */
20
- class Identity {
21
- constructor({ space, signer, identityKey, deviceKey }) {
22
- this.stateUpdate = new async_1.Event();
23
- this._space = space;
24
- this._signer = signer;
25
- this.identityKey = identityKey;
26
- this.deviceKey = deviceKey;
27
- this._deviceStateMachine = new credentials_1.DeviceStateMachine(this.identityKey, this.deviceKey);
28
- this._profileStateMachine = new credentials_1.ProfileStateMachine(this.identityKey);
29
- // Process halo-specific credentials.
30
- this._space.onCredentialProcessed.set(async (credential) => {
31
- // Save device keychain credential when processed by the space state machine.
32
- await this._deviceStateMachine.process(credential);
33
- await this._profileStateMachine.process(credential);
34
- this.stateUpdate.emit();
35
- });
36
- }
37
- // TODO(burdon): Expose state object?
38
- get authorizedDeviceKeys() {
39
- return this._deviceStateMachine.authorizedDeviceKeys;
40
- }
41
- async open() {
42
- await this._space.open();
43
- }
44
- async close() {
45
- await this._space.close();
46
- }
47
- async ready() {
48
- await this._deviceStateMachine.deviceChainReady.wait();
49
- // TODO(dmaretskyi): Should we also wait for our feeds to be admitted?
50
- }
51
- get profileDocument() {
52
- return this._profileStateMachine.profile;
53
- }
54
- /**
55
- * @test-only
56
- */
57
- get controlPipeline() {
58
- return this._space.controlPipeline;
59
- }
60
- get haloSpaceKey() {
61
- return this._space.key;
62
- }
63
- get haloGenesisFeedKey() {
64
- return this._space.genesisFeedKey;
65
- }
66
- get haloDatabase() {
67
- var _a;
68
- return (_a = this._space.database) !== null && _a !== void 0 ? _a : (0, debug_1.failUndefined)();
69
- }
70
- getAdmissionCredentials() {
71
- return {
72
- deviceKey: this.deviceKey,
73
- controlFeedKey: this._space.controlFeedKey,
74
- dataFeedKey: this._space.dataFeedKey
75
- };
76
- }
77
- /**
78
- * Issues credentials as identity.
79
- * Requires identity to be ready.
80
- */
81
- getIdentityCredentialSigner() {
82
- (0, assert_1.default)(this._deviceStateMachine.deviceCredentialChain, 'Device credential chain is not ready.');
83
- return (0, credentials_1.createCredentialSignerWithChain)(this._signer, this._deviceStateMachine.deviceCredentialChain, this.deviceKey);
84
- }
85
- /**
86
- * Issues credentials as device.
87
- */
88
- getDeviceCredentialSigner() {
89
- return (0, credentials_1.createCredentialSignerWithKey)(this._signer, this.deviceKey);
90
- }
91
- async admitDevice({ deviceKey, controlFeedKey, dataFeedKey }) {
92
- (0, log_1.log)('Admitting device:', {
93
- identityKey: this.identityKey,
94
- hostDevice: this.deviceKey,
95
- deviceKey,
96
- controlFeedKey,
97
- dataFeedKey
98
- }, { file: "packages/sdk/client-services/src/packlets/identity/identity.ts", line: 137, scope: this, bugcheck: "If you see this message then it means that the source code preprocessor for @dxos/log is broken. It probably has misinterpreted an unrelated call for a logger invocation.", callSite: (fn, args) => fn(...args) });
99
- const signer = this.getIdentityCredentialSigner();
100
- await (0, feed_store_1.writeMessages)(this.controlPipeline.writer, [
101
- await signer.createCredential({
102
- subject: deviceKey,
103
- assertion: {
104
- '@type': 'dxos.halo.credentials.AuthorizedDevice',
105
- identityKey: this.identityKey,
106
- deviceKey
107
- }
108
- }),
109
- await signer.createCredential({
110
- subject: controlFeedKey,
111
- assertion: {
112
- '@type': 'dxos.halo.credentials.AdmittedFeed',
113
- spaceKey: this.haloSpaceKey,
114
- deviceKey,
115
- identityKey: this.identityKey,
116
- designation: credentials_2.AdmittedFeed.Designation.CONTROL
117
- }
118
- }),
119
- await signer.createCredential({
120
- subject: dataFeedKey,
121
- assertion: {
122
- '@type': 'dxos.halo.credentials.AdmittedFeed',
123
- spaceKey: this.haloSpaceKey,
124
- deviceKey,
125
- identityKey: this.identityKey,
126
- designation: credentials_2.AdmittedFeed.Designation.DATA
127
- }
128
- })
129
- ].map((credential) => ({ '@type': 'dxos.echo.feed.CredentialsMessage', credential })));
130
- }
131
- }
132
- exports.Identity = Identity;
133
- //# sourceMappingURL=identity.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"identity.js","sourceRoot":"","sources":["../../../../src/packlets/identity/identity.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;;;;;;AAEF,oDAA4B;AAE5B,uCAAoC;AACpC,mDAM2B;AAE3B,uCAA4C;AAE5C,iDAAiD;AAEjD,mCAAgC;AAEhC,6EAA4F;AAW5F;;GAEG;AACH,MAAa,QAAQ;IAWnB,YAAY,EAAE,KAAK,EAAE,MAAM,EAAE,WAAW,EAAE,SAAS,EAAkB;QAFrD,gBAAW,GAAG,IAAI,aAAK,EAAE,CAAC;QAGxC,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC;QACpB,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC;QAEtB,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;QAC/B,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAE3B,IAAI,CAAC,mBAAmB,GAAG,IAAI,gCAAkB,CAAC,IAAI,CAAC,WAAW,EAAE,IAAI,CAAC,SAAS,CAAC,CAAC;QACpF,IAAI,CAAC,oBAAoB,GAAG,IAAI,iCAAmB,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;QAEtE,qCAAqC;QACrC,IAAI,CAAC,MAAM,CAAC,qBAAqB,CAAC,GAAG,CAAC,KAAK,EAAE,UAAU,EAAE,EAAE;YACzD,6EAA6E;YAC7E,MAAM,IAAI,CAAC,mBAAmB,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC;YACnD,MAAM,IAAI,CAAC,oBAAoB,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC;YACpD,IAAI,CAAC,WAAW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BAC7B,WAAW,EAAE,0BAAY,CAAC,WAAW,CAAC,IAAI;iBAC3C;aACF,CAAC;SACH,CAAC,GAAG,CAAC,CAAC,UAAU,EAAgB,EAAE,CAAC,CAAC,EAAE,OAAO,EAAE,mCAAmC,EAAE,UAAU,EAAE,CAAC,CAAC,CACpG,CAAC;IACJ,CAAC;CACF;AA/ID,4BA+IC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"identity.test.d.ts","sourceRoot":"","sources":["../../../../src/packlets/identity/identity.test.ts"],"names":[],"mappings":""}