@dxos/plugin-client 0.8.4-main.4a85c3132b → 0.8.4-main.51f1e5ca51

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 (369) hide show
  1. package/dist/lib/browser/chunk-J5LGTIGS.mjs +10 -0
  2. package/dist/lib/browser/chunk-J5LGTIGS.mjs.map +7 -0
  3. package/dist/lib/browser/chunk-M37DHX5L.mjs +131 -0
  4. package/dist/lib/browser/chunk-M37DHX5L.mjs.map +7 -0
  5. package/dist/lib/browser/chunk-RPMM5NKJ.mjs +175 -0
  6. package/dist/lib/browser/chunk-RPMM5NKJ.mjs.map +7 -0
  7. package/dist/lib/browser/chunk-VAIJSQYA.mjs +12 -0
  8. package/dist/lib/browser/chunk-VAIJSQYA.mjs.map +7 -0
  9. package/dist/lib/browser/cli/index.mjs +70 -94
  10. package/dist/lib/browser/cli/index.mjs.map +3 -3
  11. package/dist/lib/browser/create-agent-JV3EM3TV.mjs +26 -0
  12. package/dist/lib/browser/create-agent-JV3EM3TV.mjs.map +7 -0
  13. package/dist/lib/browser/create-identity-ZITQKEVZ.mjs +30 -0
  14. package/dist/lib/browser/create-identity-ZITQKEVZ.mjs.map +7 -0
  15. package/dist/lib/browser/create-passkey-NCP4XA7C.mjs +81 -0
  16. package/dist/lib/browser/create-passkey-NCP4XA7C.mjs.map +7 -0
  17. package/dist/lib/browser/create-recovery-code-L5LA3GAP.mjs +36 -0
  18. package/dist/lib/browser/create-recovery-code-L5LA3GAP.mjs.map +7 -0
  19. package/dist/lib/browser/index.mjs +29 -105
  20. package/dist/lib/browser/index.mjs.map +4 -4
  21. package/dist/lib/browser/join-identity-3W6PJLKN.mjs +27 -0
  22. package/dist/lib/browser/join-identity-3W6PJLKN.mjs.map +7 -0
  23. package/dist/lib/browser/meta.json +1 -1
  24. package/dist/lib/browser/operations/index.mjs +13 -0
  25. package/dist/lib/browser/operations/index.mjs.map +7 -0
  26. package/dist/lib/browser/recover-identity-KL6QY4GI.mjs +26 -0
  27. package/dist/lib/browser/recover-identity-KL6QY4GI.mjs.map +7 -0
  28. package/dist/lib/browser/redeem-passkey-NDEWSJTM.mjs +66 -0
  29. package/dist/lib/browser/redeem-passkey-NDEWSJTM.mjs.map +7 -0
  30. package/dist/lib/browser/redeem-token-YLWAVFXD.mjs +29 -0
  31. package/dist/lib/browser/redeem-token-YLWAVFXD.mjs.map +7 -0
  32. package/dist/lib/browser/reset-storage-OBHEGA6Z.mjs +26 -0
  33. package/dist/lib/browser/reset-storage-OBHEGA6Z.mjs.map +7 -0
  34. package/dist/lib/browser/share-identity-FTFHFSZQ.mjs +31 -0
  35. package/dist/lib/browser/share-identity-FTFHFSZQ.mjs.map +7 -0
  36. package/dist/lib/browser/testing/index.mjs +22 -0
  37. package/dist/lib/browser/testing/index.mjs.map +7 -0
  38. package/dist/lib/browser/translations.mjs +74 -0
  39. package/dist/lib/browser/translations.mjs.map +7 -0
  40. package/dist/lib/browser/types/index.mjs +4 -6
  41. package/dist/lib/node-esm/chunk-G77YYPR6.mjs +176 -0
  42. package/dist/lib/node-esm/chunk-G77YYPR6.mjs.map +7 -0
  43. package/dist/lib/node-esm/chunk-HSLMI22Q.mjs +11 -0
  44. package/dist/lib/node-esm/chunk-HSLMI22Q.mjs.map +7 -0
  45. package/dist/lib/node-esm/chunk-OHKM7GJW.mjs +14 -0
  46. package/dist/lib/node-esm/chunk-OHKM7GJW.mjs.map +7 -0
  47. package/dist/lib/node-esm/chunk-UBY7FBQ7.mjs +133 -0
  48. package/dist/lib/node-esm/chunk-UBY7FBQ7.mjs.map +7 -0
  49. package/dist/lib/node-esm/cli/index.mjs +70 -94
  50. package/dist/lib/node-esm/cli/index.mjs.map +3 -3
  51. package/dist/lib/node-esm/create-agent-Y4BPVDV7.mjs +27 -0
  52. package/dist/lib/node-esm/create-agent-Y4BPVDV7.mjs.map +7 -0
  53. package/dist/lib/node-esm/create-identity-367SQSX6.mjs +31 -0
  54. package/dist/lib/node-esm/create-identity-367SQSX6.mjs.map +7 -0
  55. package/dist/lib/node-esm/create-passkey-WMWK2ETT.mjs +82 -0
  56. package/dist/lib/node-esm/create-passkey-WMWK2ETT.mjs.map +7 -0
  57. package/dist/lib/node-esm/create-recovery-code-VJGE5HJL.mjs +37 -0
  58. package/dist/lib/node-esm/create-recovery-code-VJGE5HJL.mjs.map +7 -0
  59. package/dist/lib/node-esm/index.mjs +29 -105
  60. package/dist/lib/node-esm/index.mjs.map +4 -4
  61. package/dist/lib/node-esm/join-identity-IRIRO2VT.mjs +28 -0
  62. package/dist/lib/node-esm/join-identity-IRIRO2VT.mjs.map +7 -0
  63. package/dist/lib/node-esm/meta.json +1 -1
  64. package/dist/lib/node-esm/operations/index.mjs +14 -0
  65. package/dist/lib/node-esm/operations/index.mjs.map +7 -0
  66. package/dist/lib/node-esm/recover-identity-LJCY4BCJ.mjs +27 -0
  67. package/dist/lib/node-esm/recover-identity-LJCY4BCJ.mjs.map +7 -0
  68. package/dist/lib/node-esm/redeem-passkey-PT7QWFJE.mjs +67 -0
  69. package/dist/lib/node-esm/redeem-passkey-PT7QWFJE.mjs.map +7 -0
  70. package/dist/lib/node-esm/redeem-token-BHKHEXJM.mjs +30 -0
  71. package/dist/lib/node-esm/redeem-token-BHKHEXJM.mjs.map +7 -0
  72. package/dist/lib/node-esm/reset-storage-VPUZJOUV.mjs +27 -0
  73. package/dist/lib/node-esm/reset-storage-VPUZJOUV.mjs.map +7 -0
  74. package/dist/lib/node-esm/share-identity-SZ3REIRC.mjs +32 -0
  75. package/dist/lib/node-esm/share-identity-SZ3REIRC.mjs.map +7 -0
  76. package/dist/lib/node-esm/testing/index.mjs +23 -0
  77. package/dist/lib/node-esm/testing/index.mjs.map +7 -0
  78. package/dist/lib/node-esm/translations.mjs +75 -0
  79. package/dist/lib/node-esm/translations.mjs.map +7 -0
  80. package/dist/lib/node-esm/types/index.mjs +4 -6
  81. package/dist/types/src/ClientPlugin.d.ts +1 -1
  82. package/dist/types/src/ClientPlugin.d.ts.map +1 -1
  83. package/dist/types/src/capabilities/app-graph-builder.d.ts.map +1 -0
  84. package/dist/types/src/capabilities/{client/client.d.ts → client.d.ts} +2 -2
  85. package/dist/types/src/capabilities/client.d.ts.map +1 -0
  86. package/dist/types/src/capabilities/index.d.ts +32 -7
  87. package/dist/types/src/capabilities/index.d.ts.map +1 -1
  88. package/dist/types/src/capabilities/migrations.d.ts.map +1 -0
  89. package/dist/types/src/capabilities/navigation-handler/index.d.ts +4 -0
  90. package/dist/types/src/capabilities/navigation-handler/index.d.ts.map +1 -0
  91. package/dist/types/src/capabilities/navigation-handler/navigation-handler.d.ts +15 -0
  92. package/dist/types/src/capabilities/navigation-handler/navigation-handler.d.ts.map +1 -0
  93. package/dist/types/src/capabilities/node.d.ts +21 -0
  94. package/dist/types/src/capabilities/node.d.ts.map +1 -0
  95. package/dist/types/src/capabilities/operation-handler.d.ts +6 -0
  96. package/dist/types/src/capabilities/operation-handler.d.ts.map +1 -0
  97. package/dist/types/src/capabilities/react-context.d.ts.map +1 -0
  98. package/dist/types/src/capabilities/{react-surface/react-surface.d.ts → react-surface.d.ts} +1 -1
  99. package/dist/types/src/capabilities/react-surface.d.ts.map +1 -0
  100. package/dist/types/src/capabilities/schema-defs.d.ts.map +1 -0
  101. package/dist/types/src/cli/commands/config/index.d.ts +1 -1
  102. package/dist/types/src/cli/commands/config/view.d.ts +1 -1
  103. package/dist/types/src/cli/commands/config/view.d.ts.map +1 -1
  104. package/dist/types/src/cli/commands/device/info/info.d.ts +2 -2
  105. package/dist/types/src/cli/commands/device/info/info.d.ts.map +1 -1
  106. package/dist/types/src/cli/commands/device/list/list.d.ts +2 -2
  107. package/dist/types/src/cli/commands/device/list/list.d.ts.map +1 -1
  108. package/dist/types/src/cli/commands/device/update/update.d.ts.map +1 -1
  109. package/dist/types/src/cli/commands/device/util.d.ts.map +1 -1
  110. package/dist/types/src/cli/commands/edge/status.d.ts.map +1 -1
  111. package/dist/types/src/cli/commands/halo/create/create.d.ts +2 -2
  112. package/dist/types/src/cli/commands/halo/create/create.d.ts.map +1 -1
  113. package/dist/types/src/cli/commands/halo/credential/list/list.d.ts +3 -3
  114. package/dist/types/src/cli/commands/halo/credential/list/list.d.ts.map +1 -1
  115. package/dist/types/src/cli/commands/halo/identity/identity.d.ts +2 -2
  116. package/dist/types/src/cli/commands/halo/identity/identity.d.ts.map +1 -1
  117. package/dist/types/src/cli/commands/halo/join/join.d.ts +1 -1
  118. package/dist/types/src/cli/commands/halo/keys/keys.d.ts +2 -2
  119. package/dist/types/src/cli/commands/halo/keys/keys.d.ts.map +1 -1
  120. package/dist/types/src/cli/commands/halo/seed/seed.d.ts.map +1 -1
  121. package/dist/types/src/cli/commands/halo/update/update.d.ts.map +1 -1
  122. package/dist/types/src/cli/commands/halo/util.d.ts.map +1 -1
  123. package/dist/types/src/cli/commands/profile/create.d.ts +3 -2
  124. package/dist/types/src/cli/commands/profile/create.d.ts.map +1 -1
  125. package/dist/types/src/cli/commands/profile/delete.d.ts +1 -1
  126. package/dist/types/src/cli/commands/profile/delete.d.ts.map +1 -1
  127. package/dist/types/src/cli/commands/profile/import.d.ts +2 -2
  128. package/dist/types/src/cli/commands/profile/index.d.ts +6 -6
  129. package/dist/types/src/cli/commands/profile/list.d.ts.map +1 -1
  130. package/dist/types/src/cli/commands/profile/reset.d.ts +1 -1
  131. package/dist/types/src/cli/commands/profile/util.d.ts.map +1 -1
  132. package/dist/types/src/cli/plugin.d.ts +1 -1
  133. package/dist/types/src/cli/plugin.d.ts.map +1 -1
  134. package/dist/types/src/cli/testing/test-console.d.ts.map +1 -1
  135. package/dist/types/src/containers/DevicesContainer/DevicesContainer.d.ts.map +1 -1
  136. package/dist/types/src/containers/DevicesContainer/DevicesContainer.stories.d.ts +166 -165
  137. package/dist/types/src/containers/DevicesContainer/DevicesContainer.stories.d.ts.map +1 -1
  138. package/dist/types/src/containers/DevicesContainer/index.d.ts +1 -2
  139. package/dist/types/src/containers/DevicesContainer/index.d.ts.map +1 -1
  140. package/dist/types/src/containers/JoinDialog/JoinDialog.d.ts.map +1 -1
  141. package/dist/types/src/containers/JoinDialog/JoinDialog.stories.d.ts +15 -0
  142. package/dist/types/src/containers/JoinDialog/JoinDialog.stories.d.ts.map +1 -0
  143. package/dist/types/src/containers/JoinDialog/index.d.ts +1 -2
  144. package/dist/types/src/containers/JoinDialog/index.d.ts.map +1 -1
  145. package/dist/types/src/containers/ProfileContainer/ProfileContainer.stories.d.ts.map +1 -1
  146. package/dist/types/src/containers/ProfileContainer/index.d.ts +1 -2
  147. package/dist/types/src/containers/ProfileContainer/index.d.ts.map +1 -1
  148. package/dist/types/src/containers/RecoveryCodeDialog/RecoveryCodeDialog.d.ts.map +1 -1
  149. package/dist/types/src/containers/RecoveryCodeDialog/RecoveryCodeDialog.stories.d.ts.map +1 -1
  150. package/dist/types/src/containers/RecoveryCodeDialog/index.d.ts.map +1 -1
  151. package/dist/types/src/containers/RecoveryCredentialsContainer/RecoveryCredentialsContainer.d.ts.map +1 -1
  152. package/dist/types/src/containers/RecoveryCredentialsContainer/RecoveryCredentialsContainer.stories.d.ts.map +1 -1
  153. package/dist/types/src/containers/RecoveryCredentialsContainer/index.d.ts +1 -2
  154. package/dist/types/src/containers/RecoveryCredentialsContainer/index.d.ts.map +1 -1
  155. package/dist/types/src/containers/ResetDialog/ResetDialog.d.ts +1 -1
  156. package/dist/types/src/containers/ResetDialog/ResetDialog.d.ts.map +1 -1
  157. package/dist/types/src/containers/ResetDialog/ResetDialog.stories.d.ts +1 -1
  158. package/dist/types/src/containers/ResetDialog/ResetDialog.stories.d.ts.map +1 -1
  159. package/dist/types/src/containers/ResetDialog/index.d.ts.map +1 -1
  160. package/dist/types/src/index.d.ts +2 -4
  161. package/dist/types/src/index.d.ts.map +1 -1
  162. package/dist/types/src/operations/create-agent.d.ts +5 -0
  163. package/dist/types/src/operations/create-agent.d.ts.map +1 -0
  164. package/dist/types/src/operations/create-identity.d.ts +5 -0
  165. package/dist/types/src/operations/create-identity.d.ts.map +1 -0
  166. package/dist/types/src/operations/create-passkey.d.ts +5 -0
  167. package/dist/types/src/operations/create-passkey.d.ts.map +1 -0
  168. package/dist/types/src/operations/create-recovery-code.d.ts +5 -0
  169. package/dist/types/src/operations/create-recovery-code.d.ts.map +1 -0
  170. package/dist/types/src/operations/definitions.d.ts +36 -0
  171. package/dist/types/src/operations/definitions.d.ts.map +1 -0
  172. package/dist/types/src/operations/index.d.ts +4 -0
  173. package/dist/types/src/operations/index.d.ts.map +1 -0
  174. package/dist/types/src/operations/join-identity.d.ts +5 -0
  175. package/dist/types/src/operations/join-identity.d.ts.map +1 -0
  176. package/dist/types/src/operations/recover-identity.d.ts +5 -0
  177. package/dist/types/src/operations/recover-identity.d.ts.map +1 -0
  178. package/dist/types/src/operations/redeem-passkey.d.ts +5 -0
  179. package/dist/types/src/operations/redeem-passkey.d.ts.map +1 -0
  180. package/dist/types/src/operations/redeem-token.d.ts +5 -0
  181. package/dist/types/src/operations/redeem-token.d.ts.map +1 -0
  182. package/dist/types/src/operations/reset-storage.d.ts +5 -0
  183. package/dist/types/src/operations/reset-storage.d.ts.map +1 -0
  184. package/dist/types/src/operations/share-identity.d.ts +5 -0
  185. package/dist/types/src/operations/share-identity.d.ts.map +1 -0
  186. package/dist/types/src/testing/index.d.ts +2 -0
  187. package/dist/types/src/testing/index.d.ts.map +1 -0
  188. package/dist/types/src/testing/initializeIdentity.d.ts +13 -0
  189. package/dist/types/src/testing/initializeIdentity.d.ts.map +1 -0
  190. package/dist/types/src/translations.d.ts.map +1 -1
  191. package/dist/types/src/types/capabilities.d.ts +1 -2
  192. package/dist/types/src/types/capabilities.d.ts.map +1 -1
  193. package/dist/types/src/types/events.d.ts.map +1 -1
  194. package/dist/types/src/types/schema.d.ts +20 -173
  195. package/dist/types/src/types/schema.d.ts.map +1 -1
  196. package/dist/types/tsconfig.tsbuildinfo +1 -1
  197. package/package.json +68 -39
  198. package/src/ClientPlugin.ts +14 -10
  199. package/src/capabilities/{app-graph-builder/app-graph-builder.ts → app-graph-builder.ts} +20 -19
  200. package/src/capabilities/{client/client.ts → client.ts} +9 -7
  201. package/src/capabilities/index.ts +15 -7
  202. package/src/capabilities/{migrations/migrations.ts → migrations.ts} +1 -1
  203. package/src/capabilities/navigation-handler/index.ts +9 -0
  204. package/src/capabilities/navigation-handler/navigation-handler.ts +64 -0
  205. package/src/capabilities/node.ts +13 -0
  206. package/src/capabilities/operation-handler.ts +16 -0
  207. package/src/capabilities/{react-context/react-context.tsx → react-context.tsx} +4 -4
  208. package/src/capabilities/{react-surface/react-surface.tsx → react-surface.tsx} +18 -22
  209. package/src/capabilities/{schema-defs/schema-defs.ts → schema-defs.ts} +1 -1
  210. package/src/cli/commands/config/view.ts +4 -1
  211. package/src/cli/commands/device/info/info.test.ts +0 -1
  212. package/src/cli/commands/device/info/info.ts +0 -2
  213. package/src/cli/commands/device/list/list.test.ts +0 -1
  214. package/src/cli/commands/device/list/list.ts +0 -2
  215. package/src/cli/commands/device/update/update.ts +0 -2
  216. package/src/cli/commands/edge/status.ts +2 -1
  217. package/src/cli/commands/halo/create/create.test.ts +0 -1
  218. package/src/cli/commands/halo/create/create.ts +11 -4
  219. package/src/cli/commands/halo/credential/list/list.test.ts +0 -1
  220. package/src/cli/commands/halo/credential/list/list.ts +4 -7
  221. package/src/cli/commands/halo/identity/identity.ts +0 -1
  222. package/src/cli/commands/halo/keys/keys.ts +0 -2
  223. package/src/cli/commands/halo/seed/seed.ts +0 -2
  224. package/src/cli/commands/halo/update/update.test.ts +0 -1
  225. package/src/cli/commands/halo/update/update.ts +0 -2
  226. package/src/cli/commands/profile/create.ts +9 -6
  227. package/src/cli/commands/profile/delete.ts +5 -2
  228. package/src/cli/commands/profile/list.ts +12 -11
  229. package/src/cli/plugin.ts +7 -10
  230. package/src/cli/testing/test-console.ts +1 -2
  231. package/src/constants.ts +4 -4
  232. package/src/containers/DevicesContainer/DevicesContainer.stories.tsx +4 -3
  233. package/src/containers/DevicesContainer/DevicesContainer.tsx +49 -48
  234. package/src/containers/DevicesContainer/index.ts +1 -3
  235. package/src/containers/JoinDialog/JoinDialog.stories.tsx +43 -0
  236. package/src/containers/JoinDialog/JoinDialog.tsx +15 -12
  237. package/src/containers/JoinDialog/index.ts +1 -3
  238. package/src/containers/ProfileContainer/ProfileContainer.stories.tsx +1 -1
  239. package/src/containers/ProfileContainer/ProfileContainer.tsx +12 -12
  240. package/src/containers/ProfileContainer/index.ts +1 -3
  241. package/src/containers/RecoveryCodeDialog/RecoveryCodeDialog.stories.tsx +1 -1
  242. package/src/containers/RecoveryCodeDialog/RecoveryCodeDialog.tsx +7 -7
  243. package/src/containers/RecoveryCredentialsContainer/RecoveryCredentialsContainer.stories.tsx +4 -3
  244. package/src/containers/RecoveryCredentialsContainer/RecoveryCredentialsContainer.tsx +25 -27
  245. package/src/containers/RecoveryCredentialsContainer/index.ts +1 -3
  246. package/src/containers/ResetDialog/ResetDialog.stories.tsx +4 -4
  247. package/src/containers/ResetDialog/ResetDialog.tsx +7 -5
  248. package/src/index.ts +2 -5
  249. package/src/meta.ts +1 -1
  250. package/src/operations/create-agent.ts +26 -0
  251. package/src/operations/create-identity.ts +29 -0
  252. package/src/operations/create-passkey.ts +88 -0
  253. package/src/operations/create-recovery-code.ts +34 -0
  254. package/src/operations/definitions.ts +107 -0
  255. package/src/operations/index.ts +20 -0
  256. package/src/operations/join-identity.ts +28 -0
  257. package/src/operations/recover-identity.ts +28 -0
  258. package/src/operations/redeem-passkey.ts +85 -0
  259. package/src/operations/redeem-token.ts +31 -0
  260. package/src/operations/reset-storage.ts +27 -0
  261. package/src/operations/share-identity.ts +26 -0
  262. package/src/testing/index.ts +5 -0
  263. package/src/testing/initializeIdentity.ts +24 -0
  264. package/src/translations.ts +53 -43
  265. package/src/types/capabilities.ts +4 -4
  266. package/src/types/events.ts +6 -6
  267. package/src/types/schema.ts +11 -121
  268. package/dist/lib/browser/DevicesContainer-46MEG3F5.mjs +0 -268
  269. package/dist/lib/browser/DevicesContainer-46MEG3F5.mjs.map +0 -7
  270. package/dist/lib/browser/JoinDialog-2RCYK4O5.mjs +0 -59
  271. package/dist/lib/browser/JoinDialog-2RCYK4O5.mjs.map +0 -7
  272. package/dist/lib/browser/ProfileContainer-XYRCOQ5I.mjs +0 -171
  273. package/dist/lib/browser/ProfileContainer-XYRCOQ5I.mjs.map +0 -7
  274. package/dist/lib/browser/RecoveryCodeDialog-EX2CLFND.mjs +0 -60
  275. package/dist/lib/browser/RecoveryCodeDialog-EX2CLFND.mjs.map +0 -7
  276. package/dist/lib/browser/RecoveryCredentialsContainer-RWTEIHOB.mjs +0 -57
  277. package/dist/lib/browser/RecoveryCredentialsContainer-RWTEIHOB.mjs.map +0 -7
  278. package/dist/lib/browser/ResetDialog-W24FOWBQ.mjs +0 -52
  279. package/dist/lib/browser/ResetDialog-W24FOWBQ.mjs.map +0 -7
  280. package/dist/lib/browser/app-graph-builder-QJWFLYZE.mjs +0 -121
  281. package/dist/lib/browser/app-graph-builder-QJWFLYZE.mjs.map +0 -7
  282. package/dist/lib/browser/chunk-4XYOOXAH.mjs +0 -18
  283. package/dist/lib/browser/chunk-4XYOOXAH.mjs.map +0 -7
  284. package/dist/lib/browser/chunk-DPAXDXMK.mjs +0 -283
  285. package/dist/lib/browser/chunk-DPAXDXMK.mjs.map +0 -7
  286. package/dist/lib/browser/chunk-N2GMSVDQ.mjs +0 -15
  287. package/dist/lib/browser/chunk-N2GMSVDQ.mjs.map +0 -7
  288. package/dist/lib/browser/chunk-VYX3ROUX.mjs +0 -15
  289. package/dist/lib/browser/chunk-VYX3ROUX.mjs.map +0 -7
  290. package/dist/lib/browser/client-Z25GQ5YC.mjs +0 -86
  291. package/dist/lib/browser/client-Z25GQ5YC.mjs.map +0 -7
  292. package/dist/lib/browser/migrations-HLHRMOW6.mjs +0 -25
  293. package/dist/lib/browser/migrations-HLHRMOW6.mjs.map +0 -7
  294. package/dist/lib/browser/operation-resolver-6QW3BKA5.mjs +0 -299
  295. package/dist/lib/browser/operation-resolver-6QW3BKA5.mjs.map +0 -7
  296. package/dist/lib/browser/react-context-E7TAJMDK.mjs +0 -26
  297. package/dist/lib/browser/react-context-E7TAJMDK.mjs.map +0 -7
  298. package/dist/lib/browser/react-surface-L5A2LBFE.mjs +0 -77
  299. package/dist/lib/browser/react-surface-L5A2LBFE.mjs.map +0 -7
  300. package/dist/lib/browser/schema-defs-5WDZWVEI.mjs +0 -28
  301. package/dist/lib/browser/schema-defs-5WDZWVEI.mjs.map +0 -7
  302. package/dist/lib/node-esm/DevicesContainer-WQ3DQA45.mjs +0 -269
  303. package/dist/lib/node-esm/DevicesContainer-WQ3DQA45.mjs.map +0 -7
  304. package/dist/lib/node-esm/JoinDialog-KLTNJY5F.mjs +0 -60
  305. package/dist/lib/node-esm/JoinDialog-KLTNJY5F.mjs.map +0 -7
  306. package/dist/lib/node-esm/ProfileContainer-XI425QK5.mjs +0 -172
  307. package/dist/lib/node-esm/ProfileContainer-XI425QK5.mjs.map +0 -7
  308. package/dist/lib/node-esm/RecoveryCodeDialog-AISRNJUM.mjs +0 -61
  309. package/dist/lib/node-esm/RecoveryCodeDialog-AISRNJUM.mjs.map +0 -7
  310. package/dist/lib/node-esm/RecoveryCredentialsContainer-3TKQRPQK.mjs +0 -58
  311. package/dist/lib/node-esm/RecoveryCredentialsContainer-3TKQRPQK.mjs.map +0 -7
  312. package/dist/lib/node-esm/ResetDialog-GGBWSQZO.mjs +0 -54
  313. package/dist/lib/node-esm/ResetDialog-GGBWSQZO.mjs.map +0 -7
  314. package/dist/lib/node-esm/app-graph-builder-6JD6BZAI.mjs +0 -122
  315. package/dist/lib/node-esm/app-graph-builder-6JD6BZAI.mjs.map +0 -7
  316. package/dist/lib/node-esm/chunk-H2CCMM4Z.mjs +0 -20
  317. package/dist/lib/node-esm/chunk-H2CCMM4Z.mjs.map +0 -7
  318. package/dist/lib/node-esm/chunk-HKSNTZF5.mjs +0 -16
  319. package/dist/lib/node-esm/chunk-HKSNTZF5.mjs.map +0 -7
  320. package/dist/lib/node-esm/chunk-RGULICLJ.mjs +0 -17
  321. package/dist/lib/node-esm/chunk-RGULICLJ.mjs.map +0 -7
  322. package/dist/lib/node-esm/chunk-VEUNEDN5.mjs +0 -284
  323. package/dist/lib/node-esm/chunk-VEUNEDN5.mjs.map +0 -7
  324. package/dist/lib/node-esm/client-5AIPYSBT.mjs +0 -87
  325. package/dist/lib/node-esm/client-5AIPYSBT.mjs.map +0 -7
  326. package/dist/lib/node-esm/migrations-O5KG2GGN.mjs +0 -26
  327. package/dist/lib/node-esm/migrations-O5KG2GGN.mjs.map +0 -7
  328. package/dist/lib/node-esm/operation-resolver-GSH7AOTZ.mjs +0 -300
  329. package/dist/lib/node-esm/operation-resolver-GSH7AOTZ.mjs.map +0 -7
  330. package/dist/lib/node-esm/react-context-OMJSBS23.mjs +0 -27
  331. package/dist/lib/node-esm/react-context-OMJSBS23.mjs.map +0 -7
  332. package/dist/lib/node-esm/react-surface-N3BSPMMX.mjs +0 -78
  333. package/dist/lib/node-esm/react-surface-N3BSPMMX.mjs.map +0 -7
  334. package/dist/lib/node-esm/schema-defs-ENOYSDP3.mjs +0 -29
  335. package/dist/lib/node-esm/schema-defs-ENOYSDP3.mjs.map +0 -7
  336. package/dist/types/src/capabilities/app-graph-builder/app-graph-builder.d.ts.map +0 -1
  337. package/dist/types/src/capabilities/app-graph-builder/index.d.ts +0 -3
  338. package/dist/types/src/capabilities/app-graph-builder/index.d.ts.map +0 -1
  339. package/dist/types/src/capabilities/client/client.d.ts.map +0 -1
  340. package/dist/types/src/capabilities/client/index.d.ts +0 -18
  341. package/dist/types/src/capabilities/client/index.d.ts.map +0 -1
  342. package/dist/types/src/capabilities/migrations/index.d.ts +0 -3
  343. package/dist/types/src/capabilities/migrations/index.d.ts.map +0 -1
  344. package/dist/types/src/capabilities/migrations/migrations.d.ts.map +0 -1
  345. package/dist/types/src/capabilities/operation-resolver/index.d.ts +0 -5
  346. package/dist/types/src/capabilities/operation-resolver/index.d.ts.map +0 -1
  347. package/dist/types/src/capabilities/operation-resolver/operation-resolver.d.ts +0 -8
  348. package/dist/types/src/capabilities/operation-resolver/operation-resolver.d.ts.map +0 -1
  349. package/dist/types/src/capabilities/react-context/index.d.ts +0 -7
  350. package/dist/types/src/capabilities/react-context/index.d.ts.map +0 -1
  351. package/dist/types/src/capabilities/react-context/react-context.d.ts.map +0 -1
  352. package/dist/types/src/capabilities/react-surface/index.d.ts +0 -5
  353. package/dist/types/src/capabilities/react-surface/index.d.ts.map +0 -1
  354. package/dist/types/src/capabilities/react-surface/react-surface.d.ts.map +0 -1
  355. package/dist/types/src/capabilities/schema-defs/index.d.ts +0 -3
  356. package/dist/types/src/capabilities/schema-defs/index.d.ts.map +0 -1
  357. package/dist/types/src/capabilities/schema-defs/schema-defs.d.ts.map +0 -1
  358. package/src/capabilities/app-graph-builder/index.ts +0 -7
  359. package/src/capabilities/client/index.ts +0 -7
  360. package/src/capabilities/migrations/index.ts +0 -7
  361. package/src/capabilities/operation-resolver/index.ts +0 -7
  362. package/src/capabilities/operation-resolver/operation-resolver.ts +0 -247
  363. package/src/capabilities/react-context/index.ts +0 -7
  364. package/src/capabilities/react-surface/index.ts +0 -7
  365. package/src/capabilities/schema-defs/index.ts +0 -7
  366. /package/dist/types/src/capabilities/{app-graph-builder/app-graph-builder.d.ts → app-graph-builder.d.ts} +0 -0
  367. /package/dist/types/src/capabilities/{migrations/migrations.d.ts → migrations.d.ts} +0 -0
  368. /package/dist/types/src/capabilities/{react-context/react-context.d.ts → react-context.d.ts} +0 -0
  369. /package/dist/types/src/capabilities/{schema-defs/schema-defs.d.ts → schema-defs.d.ts} +0 -0
@@ -0,0 +1,66 @@
1
+ import {
2
+ RedeemPasskey
3
+ } from "./chunk-RPMM5NKJ.mjs";
4
+ import {
5
+ ClientCapabilities
6
+ } from "./chunk-M37DHX5L.mjs";
7
+ import "./chunk-J5LGTIGS.mjs";
8
+
9
+ // src/operations/redeem-passkey.ts
10
+ import * as Effect from "effect/Effect";
11
+ import * as Match from "effect/Match";
12
+ import { Capability } from "@dxos/app-framework";
13
+ import { decodeUrlSafeBase64, supportsNativePasskeys, loginNativePasskey } from "@dxos/app-toolkit";
14
+ import { PublicKey } from "@dxos/client";
15
+ import { Operation } from "@dxos/compute";
16
+ import { invariant } from "@dxos/invariant";
17
+ var __dxlog_file = "/__w/dxos/dxos/packages/plugins/plugin-client/src/operations/redeem-passkey.ts";
18
+ var handler = RedeemPasskey.pipe(Operation.withHandler(Effect.fnUntraced(function* () {
19
+ const client = yield* Capability.get(ClientCapabilities.Client);
20
+ invariant(client.services.services.IdentityService, "IdentityService not available", { "~LogMeta": "~LogMeta", F: __dxlog_file, L: 15, S: this, A: ["client.services.services.IdentityService", "'IdentityService not available'"] });
21
+ const { deviceKey, controlFeedKey, challenge } = yield* Effect.promise(() => client.services.services.IdentityService.requestRecoveryChallenge());
22
+ const { lookupKey, signature, clientDataJson, authenticatorData } = yield* Match.value(supportsNativePasskeys()).pipe(Match.when(true, () => Effect.gen(function* () {
23
+ const result = yield* Effect.promise(() => loginNativePasskey({
24
+ challenge: Uint8Array.from(Buffer.from(challenge, "base64"))
25
+ }));
26
+ invariant(result, "Native passkey login returned no result", { "~LogMeta": "~LogMeta", F: __dxlog_file, L: 21, S: this, A: ["result", "'Native passkey login returned no result'"] });
27
+ return {
28
+ lookupKey: PublicKey.from(decodeUrlSafeBase64(result.user_handle)),
29
+ signature: Buffer.from(decodeUrlSafeBase64(result.signature)),
30
+ clientDataJson: Buffer.from(decodeUrlSafeBase64(result.client_data_json)),
31
+ authenticatorData: Buffer.from(decodeUrlSafeBase64(result.authenticator_data))
32
+ };
33
+ })), Match.orElse(() => Effect.gen(function* () {
34
+ const credential = yield* Effect.promise(() => navigator.credentials.get({
35
+ publicKey: {
36
+ challenge: Buffer.from(challenge, "base64"),
37
+ rpId: location.hostname,
38
+ userVerification: "required"
39
+ }
40
+ }));
41
+ return {
42
+ lookupKey: PublicKey.from(new Uint8Array(credential.response.userHandle)),
43
+ signature: Buffer.from(credential.response.signature),
44
+ clientDataJson: Buffer.from(credential.response.clientDataJSON),
45
+ authenticatorData: Buffer.from(credential.response.authenticatorData)
46
+ };
47
+ })));
48
+ yield* Effect.promise(() => client.services.services.IdentityService.recoverIdentity({
49
+ external: {
50
+ lookupKey,
51
+ deviceKey,
52
+ controlFeedKey,
53
+ signature,
54
+ clientDataJson,
55
+ authenticatorData
56
+ }
57
+ }, {
58
+ timeout: RECOVER_IDENTITY_RPC_TIMEOUT
59
+ }));
60
+ })));
61
+ var redeem_passkey_default = handler;
62
+ var RECOVER_IDENTITY_RPC_TIMEOUT = 2e4;
63
+ export {
64
+ redeem_passkey_default as default
65
+ };
66
+ //# sourceMappingURL=redeem-passkey-NDEWSJTM.mjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/operations/redeem-passkey.ts"],
4
+ "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\nimport * as Match from 'effect/Match';\n\nimport { Capability } from '@dxos/app-framework';\nimport { decodeUrlSafeBase64, supportsNativePasskeys, loginNativePasskey } from '@dxos/app-toolkit';\nimport { PublicKey } from '@dxos/client';\nimport { Operation } from '@dxos/compute';\nimport { invariant } from '@dxos/invariant';\n\nimport { ClientCapabilities } from '../types';\nimport { RedeemPasskey } from './definitions';\n\nconst handler: Operation.WithHandler<typeof RedeemPasskey> = RedeemPasskey.pipe(\n Operation.withHandler(\n Effect.fnUntraced(function* () {\n const client = yield* Capability.get(ClientCapabilities.Client);\n invariant(client.services.services.IdentityService, 'IdentityService not available');\n const { deviceKey, controlFeedKey, challenge } = yield* Effect.promise(() =>\n client.services.services.IdentityService!.requestRecoveryChallenge(),\n );\n\n const { lookupKey, signature, clientDataJson, authenticatorData } = yield* Match.value(\n supportsNativePasskeys(),\n ).pipe(\n Match.when(true, () =>\n Effect.gen(function* () {\n const result = yield* Effect.promise(() =>\n loginNativePasskey({ challenge: Uint8Array.from(Buffer.from(challenge, 'base64')) }),\n );\n invariant(result, 'Native passkey login returned no result');\n return {\n lookupKey: PublicKey.from(decodeUrlSafeBase64(result.user_handle)),\n signature: Buffer.from(decodeUrlSafeBase64(result.signature)),\n clientDataJson: Buffer.from(decodeUrlSafeBase64(result.client_data_json)),\n authenticatorData: Buffer.from(decodeUrlSafeBase64(result.authenticator_data)),\n };\n }),\n ),\n Match.orElse(() =>\n Effect.gen(function* () {\n const credential = yield* Effect.promise(() =>\n navigator.credentials.get({\n publicKey: {\n challenge: Buffer.from(challenge, 'base64'),\n rpId: location.hostname,\n userVerification: 'required',\n },\n }),\n );\n return {\n lookupKey: PublicKey.from(new Uint8Array((credential as any).response.userHandle)),\n signature: Buffer.from((credential as any).response.signature),\n clientDataJson: Buffer.from((credential as any).response.clientDataJSON),\n authenticatorData: Buffer.from((credential as any).response.authenticatorData),\n };\n }),\n ),\n );\n\n yield* Effect.promise(() =>\n client.services.services.IdentityService!.recoverIdentity(\n {\n external: {\n lookupKey,\n deviceKey,\n controlFeedKey,\n signature,\n clientDataJson,\n authenticatorData,\n },\n },\n { timeout: RECOVER_IDENTITY_RPC_TIMEOUT },\n ),\n );\n }),\n ),\n);\n\nexport default handler;\n\nconst RECOVER_IDENTITY_RPC_TIMEOUT = 20_000;\n"],
5
+ "mappings": ";;;;;;;;;AAIA,YAAYA,YAAY;AACxB,YAAYC,WAAW;AAEvB,SAASC,kBAAkB;AAC3B,SAASC,qBAAqBC,wBAAwBC,0BAA0B;AAChF,SAASC,iBAAiB;AAC1B,SAASC,iBAAiB;AAC1B,SAASC,iBAAiB;AAK1B,IAAA,eAA6DC;IAIvDC,UAAUC,cAAgBC,KAAAA,UAASC,YAAiB,kBAAA,aAAA;AACpD,QAAM,SAAEC,OAAWC,WAAc,IAAEC,mBAAqBC,MAAAA;AAIxD,YAAQC,OAAS,SAAEC,SAAWC,iBAAgBC,iCAAmCC,EAAAA,YAC/EC,YAAAA,GAAAA,cAEAC,GAAMC,IAAAA,GAAK,MAAA,GAAM,CAAA,4CACJ,iCAAA,EAAA,CAAA;UACT,WAAMC,gBAAgBT,UAAe,IACnCU,OAAAA,eAAmB,MAAA,OAAA,SAAA,SAAA,gBAAA,yBAAA,CAAA;qBAAEX,WAAWY,gBAAgBC,kBAAYb,IAAW,OAAA,YAAA,uBAAA,CAAA,EAAA,KAAA,WAAA,MAAA,MAAA,WAAA,aAAA;UAAW,SAAA,OAAA,eAAA,MAAA,mBAAA;MAEpFN,WAAkB,WAAA,KAAA,OAAA,KAAA,WAAA,QAAA,CAAA;IAClB,CAAA,CAAA;cACEQ,QAAWY,2CAA0CC,EAAAA,YAAW,YAAA,GAAA,cAAA,GAAA,IAAA,GAAA,MAAA,GAAA,CAAA,UAAA,2CAAA,EAAA,CAAA;WAChEZ;MACAC,WAAAA,UAAgBS,KAAOG,oBAAKC,OAAoBP,WAAOQ,CAAAA;MACvDb,WAAAA,OAAAA,KAAmBQ,oBAAYI,OAAAA,SAA2BE,CAAAA;MAC5D,gBAAA,OAAA,KAAA,oBAAA,OAAA,gBAAA,CAAA;MAGJX,mBACEP,OAAW,KAAA,oBAAA,OAAA,kBAAA,CAAA;IACT;oBAEImB,MAAW,WAAA,aAAA;uBACTpB,OAAkBgB,eAAKhB,MAAAA,UAAW,YAAA,IAAA;iBAC5BqB;QACNC,WAAAA,OAAkB,KAAA,WAAA,QAAA;QACpB,MAAA,SAAA;QACF,kBAAA;MAEK;IACLpB,CAAAA,CAAAA;WACAC;MACAC,WAAAA,UAAgBS,KAAOG,IAAMO,WAAmBC,WAASC,SAAAA,UAAc,CAAA;MACvEpB,WAAAA,OAAAA,KAAmBQ,WAAaU,SAAmBC,SAASnB;MAC9D,gBAAA,OAAA,KAAA,WAAA,SAAA,cAAA;MACF,mBAAA,OAAA,KAAA,WAAA,SAAA,iBAAA;IAIGJ;;SAICC,eAAAA,MAAAA,OAAAA,SAAAA,SAAAA,gBAAAA,gBAAAA;cACAJ;MACAC;MACAI;MACAC;MACAC;MACF;MAEF;IAAEqB;EAAsC,GAAA;IAG9C,SAAA;EAIJ,CAAA,CAAA;AAEA,CAAA,CAAA,CAAA;;;",
6
+ "names": ["Effect", "Match", "Capability", "decodeUrlSafeBase64", "supportsNativePasskeys", "loginNativePasskey", "PublicKey", "Operation", "invariant", "RedeemPasskey", "invariant", "client", "services", "IdentityService", "deviceKey", "controlFeedKey", "challenge", "Effect", "lookupKey", "signature", "clientDataJson", "authenticatorData", "value", "supportsNativePasskeys", "Match", "when", "result", "loginNativePasskey", "Uint8Array", "Buffer", "PublicKey", "user_handle", "from", "decodeUrlSafeBase64", "client_data_json", "authenticator_data", "publicKey", "location", "userVerification", "credential", "response", "clientDataJSON", "timeout"]
7
+ }
@@ -0,0 +1,29 @@
1
+ import {
2
+ RedeemToken
3
+ } from "./chunk-RPMM5NKJ.mjs";
4
+ import {
5
+ ClientCapabilities
6
+ } from "./chunk-M37DHX5L.mjs";
7
+ import "./chunk-J5LGTIGS.mjs";
8
+
9
+ // src/operations/redeem-token.ts
10
+ import * as Effect from "effect/Effect";
11
+ import { Capability } from "@dxos/app-framework";
12
+ import { Operation } from "@dxos/compute";
13
+ import { invariant } from "@dxos/invariant";
14
+ var __dxlog_file = "/__w/dxos/dxos/packages/plugins/plugin-client/src/operations/redeem-token.ts";
15
+ var handler = RedeemToken.pipe(Operation.withHandler(Effect.fnUntraced(function* (data) {
16
+ const client = yield* Capability.get(ClientCapabilities.Client);
17
+ invariant(client.services.services.IdentityService, "IdentityService not available", { "~LogMeta": "~LogMeta", F: __dxlog_file, L: 12, S: this, A: ["client.services.services.IdentityService", "'IdentityService not available'"] });
18
+ yield* Effect.promise(() => client.services.services.IdentityService.recoverIdentity({
19
+ token: data.token
20
+ }, {
21
+ timeout: RECOVER_IDENTITY_RPC_TIMEOUT
22
+ }));
23
+ })));
24
+ var redeem_token_default = handler;
25
+ var RECOVER_IDENTITY_RPC_TIMEOUT = 2e4;
26
+ export {
27
+ redeem_token_default as default
28
+ };
29
+ //# sourceMappingURL=redeem-token-YLWAVFXD.mjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/operations/redeem-token.ts"],
4
+ "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\n\nimport { Capability } from '@dxos/app-framework';\nimport { Operation } from '@dxos/compute';\nimport { invariant } from '@dxos/invariant';\n\nimport { ClientCapabilities } from '../types';\nimport { RedeemToken } from './definitions';\n\nconst handler: Operation.WithHandler<typeof RedeemToken> = RedeemToken.pipe(\n Operation.withHandler(\n Effect.fnUntraced(function* (data) {\n const client = yield* Capability.get(ClientCapabilities.Client);\n invariant(client.services.services.IdentityService, 'IdentityService not available');\n yield* Effect.promise(() =>\n client.services.services.IdentityService!.recoverIdentity(\n { token: data.token },\n { timeout: RECOVER_IDENTITY_RPC_TIMEOUT },\n ),\n );\n }),\n ),\n);\n\nexport default handler;\n\nconst RECOVER_IDENTITY_RPC_TIMEOUT = 20_000;\n"],
5
+ "mappings": ";;;;;;;;;AAIA,YAAYA,YAAY;AAExB,SAASC,kBAAkB;AAC3B,SAASC,iBAAiB;AAC1B,SAASC,iBAAiB;AAK1B,IAAA,eAA2DC;IAIrDC,UAAUC,YAAOC,KAASA,UAASC,YAAiB,kBAAA,WAAA,MAAA;AACpD,QAAA,SAAcC,OAAQ,WACbF,IAAAA,mBAAkBC,MAAAA;YACrBE,OAAOC,SAAU,SAAA,iBAAA,iCAAA,EAAA,YAAA,YAAA,GAAA,cAAA,GAAA,IAAA,GAAA,MAAA,GAAA,CAAA,4CAAA,iCAAA,EAAA,CAAA;SACnB,eAAA,MAAA,OAAA,SAAA,SAAA,gBAAA,gBAAA;IAAEC,OAAAA,KAASC;EAA6B,GAAA;IAG9C,SAAA;EAIJ,CAAA,CAAA;AAEA,CAAA,CAAA,CAAA;;;",
6
+ "names": ["Effect", "Capability", "Operation", "invariant", "RedeemToken", "invariant", "client", "services", "IdentityService", "promise", "token", "data", "timeout", "RECOVER_IDENTITY_RPC_TIMEOUT"]
7
+ }
@@ -0,0 +1,26 @@
1
+ import {
2
+ RESET_DIALOG
3
+ } from "./chunk-VAIJSQYA.mjs";
4
+ import {
5
+ ResetStorage
6
+ } from "./chunk-RPMM5NKJ.mjs";
7
+ import "./chunk-J5LGTIGS.mjs";
8
+
9
+ // src/operations/reset-storage.ts
10
+ import * as Effect from "effect/Effect";
11
+ import { LayoutOperation } from "@dxos/app-toolkit";
12
+ import { Operation } from "@dxos/compute";
13
+ var handler = ResetStorage.pipe(Operation.withHandler(Effect.fnUntraced(function* (data) {
14
+ yield* Operation.invoke(LayoutOperation.UpdateDialog, {
15
+ subject: RESET_DIALOG,
16
+ blockAlign: "start",
17
+ props: {
18
+ mode: data.mode ?? "reset-storage"
19
+ }
20
+ });
21
+ })));
22
+ var reset_storage_default = handler;
23
+ export {
24
+ reset_storage_default as default
25
+ };
26
+ //# sourceMappingURL=reset-storage-OBHEGA6Z.mjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/operations/reset-storage.ts"],
4
+ "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\n\nimport { LayoutOperation } from '@dxos/app-toolkit';\nimport { Operation } from '@dxos/compute';\n\nimport { RESET_DIALOG } from '../constants';\nimport { ResetStorage } from './definitions';\n\nconst handler: Operation.WithHandler<typeof ResetStorage> = ResetStorage.pipe(\n Operation.withHandler(\n Effect.fnUntraced(function* (data) {\n yield* Operation.invoke(LayoutOperation.UpdateDialog, {\n subject: RESET_DIALOG,\n blockAlign: 'start',\n props: {\n mode: data.mode ?? 'reset-storage',\n },\n });\n }),\n ),\n);\n\nexport default handler;\n"],
5
+ "mappings": ";;;;;;;;;AAIA,YAAYA,YAAY;AAExB,SAASC,uBAAuB;AAChC,SAASC,iBAAiB;AAK1B,IAAMC,UAAsDC,aAAaC,KACvEC,UAAUC,YACDC,kBAAW,WAAWC,MAAI;AAC/B,SAAOH,UAAUI,OAAOC,gBAAgBC,cAAc;IACpDC,SAASC;IACTC,YAAY;IACZC,OAAO;MACLC,MAAMR,KAAKQ,QAAQ;IACrB;EACF,CAAA;AACF,CAAA,CAAA,CAAA;AAIJ,IAAA,wBAAed;",
6
+ "names": ["Effect", "LayoutOperation", "Operation", "handler", "ResetStorage", "pipe", "Operation", "withHandler", "fnUntraced", "data", "invoke", "LayoutOperation", "UpdateDialog", "subject", "RESET_DIALOG", "blockAlign", "props", "mode"]
7
+ }
@@ -0,0 +1,31 @@
1
+ import {
2
+ ShareIdentity
3
+ } from "./chunk-RPMM5NKJ.mjs";
4
+ import {
5
+ Account
6
+ } from "./chunk-M37DHX5L.mjs";
7
+ import "./chunk-J5LGTIGS.mjs";
8
+
9
+ // src/operations/share-identity.ts
10
+ import * as Effect from "effect/Effect";
11
+ import { LayoutOperation, getSpacePath } from "@dxos/app-toolkit";
12
+ import { Operation } from "@dxos/compute";
13
+ import { ObservabilityOperation } from "@dxos/plugin-observability/operations";
14
+ var handler = ShareIdentity.pipe(Operation.withHandler(Effect.fnUntraced(function* () {
15
+ yield* Operation.invoke(LayoutOperation.SwitchWorkspace, {
16
+ subject: getSpacePath(Account.id)
17
+ });
18
+ yield* Operation.invoke(LayoutOperation.Open, {
19
+ subject: [
20
+ `${getSpacePath(Account.id)}/${Account.Profile}`
21
+ ]
22
+ });
23
+ yield* Operation.schedule(ObservabilityOperation.SendEvent, {
24
+ name: "identity.share"
25
+ });
26
+ })));
27
+ var share_identity_default = handler;
28
+ export {
29
+ share_identity_default as default
30
+ };
31
+ //# sourceMappingURL=share-identity-FTFHFSZQ.mjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/operations/share-identity.ts"],
4
+ "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\n\nimport { LayoutOperation, getSpacePath } from '@dxos/app-toolkit';\nimport { Operation } from '@dxos/compute';\nimport { ObservabilityOperation } from '@dxos/plugin-observability/operations';\n\nimport { Account } from '../types';\nimport { ShareIdentity } from './definitions';\n\nconst handler: Operation.WithHandler<typeof ShareIdentity> = ShareIdentity.pipe(\n Operation.withHandler(\n Effect.fnUntraced(function* () {\n yield* Operation.invoke(LayoutOperation.SwitchWorkspace, { subject: getSpacePath(Account.id) });\n yield* Operation.invoke(LayoutOperation.Open, {\n subject: [`${getSpacePath(Account.id)}/${Account.Profile}`],\n });\n yield* Operation.schedule(ObservabilityOperation.SendEvent, { name: 'identity.share' });\n }),\n ),\n);\n\nexport default handler;\n"],
5
+ "mappings": ";;;;;;;;;AAIA,YAAYA,YAAY;AAExB,SAASC,iBAAiBC,oBAAoB;AAC9C,SAASC,iBAAiB;AAC1B,SAASC,8BAA8B;AAKvC,IAAMC,UAAuDC,cAAcC,KACzEC,UAAUC,YACDC,kBAAW,aAAA;AAChB,SAAOF,UAAUG,OAAOC,gBAAgBC,iBAAiB;IAAEC,SAASC,aAAaC,QAAQC,EAAE;EAAE,CAAA;AAC7F,SAAOT,UAAUG,OAAOC,gBAAgBM,MAAM;IAC5CJ,SAAS;MAAC,GAAGC,aAAaC,QAAQC,EAAE,CAAA,IAAKD,QAAQG,OAAO;;EAC1D,CAAA;AACA,SAAOX,UAAUY,SAASC,uBAAuBC,WAAW;IAAEC,MAAM;EAAiB,CAAA;AACvF,CAAA,CAAA,CAAA;AAIJ,IAAA,yBAAelB;",
6
+ "names": ["Effect", "LayoutOperation", "getSpacePath", "Operation", "ObservabilityOperation", "handler", "ShareIdentity", "pipe", "Operation", "withHandler", "fnUntraced", "invoke", "LayoutOperation", "SwitchWorkspace", "subject", "getSpacePath", "Account", "id", "Open", "Profile", "schedule", "ObservabilityOperation", "SendEvent", "name"]
7
+ }
@@ -0,0 +1,22 @@
1
+ import "../chunk-J5LGTIGS.mjs";
2
+
3
+ // src/testing/initializeIdentity.ts
4
+ import * as Effect from "effect/Effect";
5
+ import { PERSONAL_SPACE_TAG } from "@dxos/app-toolkit";
6
+ var initializeIdentity = (client) => Effect.gen(function* () {
7
+ const identity = yield* Effect.promise(() => client.halo.createIdentity());
8
+ const personalSpace = yield* Effect.promise(() => client.spaces.create({}, {
9
+ tags: [
10
+ PERSONAL_SPACE_TAG
11
+ ]
12
+ }));
13
+ yield* Effect.promise(() => personalSpace.waitUntilReady());
14
+ return {
15
+ identity,
16
+ personalSpace
17
+ };
18
+ });
19
+ export {
20
+ initializeIdentity
21
+ };
22
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../src/testing/initializeIdentity.ts"],
4
+ "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\n\nimport { PERSONAL_SPACE_TAG } from '@dxos/app-toolkit';\nimport { type Client } from '@dxos/client';\nimport { type Space } from '@dxos/client-protocol';\nimport { type Identity } from '@dxos/protocols/proto/dxos/client/services';\n\n/**\n * Create an identity and a personal space.\n * Returns the identity and space for further setup.\n */\nexport const initializeIdentity = (\n client: Client,\n): Effect.Effect<{ identity: Identity; personalSpace: Space }, never, never> =>\n Effect.gen(function* () {\n const identity = yield* Effect.promise(() => client.halo.createIdentity());\n const personalSpace = yield* Effect.promise(() => client.spaces.create({}, { tags: [PERSONAL_SPACE_TAG] }));\n yield* Effect.promise(() => personalSpace.waitUntilReady());\n return { identity, personalSpace };\n });\n"],
5
+ "mappings": ";;;AAIA,YAAYA,YAAY;AAExB,SAASC,0BAA0B;AAS5B,IAAMC,qBAAqB,CAChCC,WAEOC,WAAI,aAAA;AACT,QAAMC,WAAW,OAAcC,eAAQ,MAAMH,OAAOI,KAAKC,eAAc,CAAA;AACvE,QAAMC,gBAAgB,OAAcH,eAAQ,MAAMH,OAAOO,OAAOC,OAAO,CAAC,GAAG;IAAEC,MAAM;MAACX;;EAAoB,CAAA,CAAA;AACxG,SAAcK,eAAQ,MAAMG,cAAcI,eAAc,CAAA;AACxD,SAAO;IAAER;IAAUI;EAAc;AACnC,CAAA;",
6
+ "names": ["Effect", "PERSONAL_SPACE_TAG", "initializeIdentity", "client", "gen", "identity", "promise", "halo", "createIdentity", "personalSpace", "spaces", "create", "tags", "waitUntilReady"]
7
+ }
@@ -0,0 +1,74 @@
1
+ import "./chunk-J5LGTIGS.mjs";
2
+
3
+ // src/translations.ts
4
+ import { translations as shellTranslations } from "@dxos/shell/react";
5
+ import { meta } from "#meta";
6
+ var pluginTranslations = [
7
+ {
8
+ "en-US": {
9
+ [meta.id]: {
10
+ "account.label": "User profile",
11
+ "profile.label": "Profile",
12
+ "profile.description": "User profile and account settings.",
13
+ "devices.label": "Devices",
14
+ "add-device.label": "Add device",
15
+ "devices-verbose.label": "Manage devices",
16
+ "add-device.description": "Authenticating another device is a two-step process. To get started, create a code using the button below.",
17
+ "devices.description": "Devices, cloud agents, and account access for this identity.",
18
+ "create-device-invitation.label": "Create code",
19
+ "qr-code.description": "Scan this QR code using the device you want to log in to, or copy the URL and share it with the new device.",
20
+ "security.label": "Security",
21
+ "reset-device.description": "Log out from this device, erasing all the data on this\xA0device.",
22
+ "join-new-identity.description": "Log out from this device, erasing all the data currently on this device, and use a QR code or URL to log\xA0in.",
23
+ "recover-identity.description": "Log out from this device, erasing all the data currently on this device, and use a passkey or recovery code to log\xA0in.",
24
+ "danger-zone.title": "Log out",
25
+ "danger-zone.description": "Because Composer is decentralized, logging out entails erasing all the data on this device. If you have any data on this device that you\u2019d like to keep, you can log in on a separate device using a passkey or complete a peer-to-peer\xA0device invitation above.",
26
+ "display-name.label": "Display name",
27
+ "display-name.description": "Your name as it appears in the app.",
28
+ "display-name-input.placeholder": "Enter a name",
29
+ "icon.label": "Avatar",
30
+ "icon.description": "The emoji used to represent the user.",
31
+ "hue.label": "Color",
32
+ "hue.description": "The color used to represent you in the app, including as your avatar\u2019s background, your cursor as it appears to others, and the messages you send in group threads.",
33
+ "did.label": "DID",
34
+ "did.description": "Your unique ID.",
35
+ "open-user-account.label": "Open user account",
36
+ "manage-credentials-dialog.title": "Manage Account Recovery",
37
+ "credentials-list.label": "Recovery credentials",
38
+ "no-credentials.title": "WARNING: There is currently no way to recover your account.",
39
+ "no-credentials.message": "Create a recovery credential above to secure your\xA0account.",
40
+ "recovery-setup-dialog.title": "Account Security",
41
+ "recovery-setup-dialog.description": "In order to maintain access to your account you need to register a recovery credential. Passkeys are the recommended way to do this, they can be stored in your browser or in a password\xA0manager.",
42
+ "create-passkey.label": "Create Passkey",
43
+ // TODO(wittjosiah): At link to user-focused passkey information.
44
+ // Something like https://www.tomsguide.com/news/what-are-passkeys.
45
+ "create-passkey.description": "A passkey is a secure and easy to use credential that can be used to recover your\xA0account.",
46
+ "create-recovery-code.label": "Create Recovery Code",
47
+ "create-recovery-code.description": "A recovery code is 12 word phrase representing a private\xA0key.",
48
+ "recovery-code-dialog.title": "Recovery Code",
49
+ "recovery-code-dialog.description": "This is your identity recovery code, store it in a safe place. You can use it to recover your identity if you ever lose access to your\xA0devices.",
50
+ "recovery-code-dialog-warning-1.message": "NOTE: This code will not be displayed\xA0again.",
51
+ "recovery-code-dialog-warning-2.message": "It is your private key for recovering DXOS data. Anyone with this key will be able to gain access to your\xA0account.",
52
+ "recovery-code-confirmation.label": "Please confirm you have saved the\xA0code.",
53
+ "continue.label": "Continue",
54
+ "auth-code.message": "Authorization code",
55
+ "auth-other-device-emoji.message": "Authorization icon",
56
+ "cancel.label": "Cancel",
57
+ "join-new-identity.label": "Join an existing identity",
58
+ "qr.label": "QR Code",
59
+ "recover-identity.label": "Use a recovery code",
60
+ "reset-device.label": "Reset storage",
61
+ "reset-dialog.description": "Reset storage",
62
+ "reset-dialog.title": "Reset storage"
63
+ }
64
+ }
65
+ }
66
+ ];
67
+ var translations = [
68
+ ...pluginTranslations,
69
+ ...shellTranslations
70
+ ];
71
+ export {
72
+ translations
73
+ };
74
+ //# sourceMappingURL=translations.mjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/translations.ts"],
4
+ "sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport { type Resource } from '@dxos/react-ui';\nimport { translations as shellTranslations } from '@dxos/shell/react';\n\nimport { meta } from '#meta';\n\n// TODO(burdon): Disambiguate with sdk/shell\nconst pluginTranslations = [\n {\n 'en-US': {\n [meta.id]: {\n 'account.label': 'User profile',\n 'profile.label': 'Profile',\n 'profile.description': 'User profile and account settings.',\n 'devices.label': 'Devices',\n 'add-device.label': 'Add device',\n 'devices-verbose.label': 'Manage devices',\n 'add-device.description':\n 'Authenticating another device is a two-step process. To get started, create a code using the button below.',\n 'devices.description': 'Devices, cloud agents, and account access for this identity.',\n 'create-device-invitation.label': 'Create code',\n 'qr-code.description':\n 'Scan this QR code using the device you want to log in to, or copy the URL and share it with the new device.',\n 'security.label': 'Security',\n 'reset-device.description': 'Log out from this device, erasing all the data on this device.',\n 'join-new-identity.description':\n 'Log out from this device, erasing all the data currently on this device, and use a QR code or URL to log in.',\n 'recover-identity.description':\n 'Log out from this device, erasing all the data currently on this device, and use a passkey or recovery code to log in.',\n 'danger-zone.title': 'Log out',\n 'danger-zone.description':\n 'Because Composer is decentralized, logging out entails erasing all the data on this device. If you have any data on this device that you’d like to keep, you can log in on a separate device using a passkey or complete a peer-to-peer device invitation above.',\n 'display-name.label': 'Display name',\n 'display-name.description': 'Your name as it appears in the app.',\n 'display-name-input.placeholder': 'Enter a name',\n 'icon.label': 'Avatar',\n 'icon.description': 'The emoji used to represent the user.',\n 'hue.label': 'Color',\n 'hue.description':\n 'The color used to represent you in the app, including as your avatar’s background, your cursor as it appears to others, and the messages you send in group threads.',\n 'did.label': 'DID',\n 'did.description': 'Your unique ID.',\n 'open-user-account.label': 'Open user account',\n 'manage-credentials-dialog.title': 'Manage Account Recovery',\n 'credentials-list.label': 'Recovery credentials',\n 'no-credentials.title': 'WARNING: There is currently no way to recover your account.',\n 'no-credentials.message': 'Create a recovery credential above to secure your account.',\n 'recovery-setup-dialog.title': 'Account Security',\n 'recovery-setup-dialog.description':\n 'In order to maintain access to your account you need to register a recovery credential. Passkeys are the recommended way to do this, they can be stored in your browser or in a password manager.',\n 'create-passkey.label': 'Create Passkey',\n // TODO(wittjosiah): At link to user-focused passkey information.\n // Something like https://www.tomsguide.com/news/what-are-passkeys.\n 'create-passkey.description':\n 'A passkey is a secure and easy to use credential that can be used to recover your account.',\n 'create-recovery-code.label': 'Create Recovery Code',\n 'create-recovery-code.description': 'A recovery code is 12 word phrase representing a private key.',\n 'recovery-code-dialog.title': 'Recovery Code',\n 'recovery-code-dialog.description':\n 'This is your identity recovery code, store it in a safe place. You can use it to recover your identity if you ever lose access to your devices.',\n 'recovery-code-dialog-warning-1.message': 'NOTE: This code will not be displayed again.',\n 'recovery-code-dialog-warning-2.message':\n 'It is your private key for recovering DXOS data. Anyone with this key will be able to gain access to your account.',\n 'recovery-code-confirmation.label': 'Please confirm you have saved the code.',\n 'continue.label': 'Continue',\n 'auth-code.message': 'Authorization code',\n 'auth-other-device-emoji.message': 'Authorization icon',\n 'cancel.label': 'Cancel',\n 'join-new-identity.label': 'Join an existing identity',\n 'qr.label': 'QR Code',\n 'recover-identity.label': 'Use a recovery code',\n 'reset-device.label': 'Reset storage',\n 'reset-dialog.description': 'Reset storage',\n 'reset-dialog.title': 'Reset storage',\n },\n },\n },\n] as const satisfies Resource[];\n\nexport const translations: Resource[] = [...pluginTranslations, ...shellTranslations];\n"],
5
+ "mappings": ";;;AAKA,SAASA,gBAAgBC,yBAAyB;AAElD,SAASC,YAAY;AAGrB,IAAMC,qBAAqB;EACzB;IACE,SAAS;MACP,CAACD,KAAKE,EAAE,GAAG;QACT,iBAAiB;QACjB,iBAAiB;QACjB,uBAAuB;QACvB,iBAAiB;QACjB,oBAAoB;QACpB,yBAAyB;QACzB,0BACE;QACF,uBAAuB;QACvB,kCAAkC;QAClC,uBACE;QACF,kBAAkB;QAClB,4BAA4B;QAC5B,iCACE;QACF,gCACE;QACF,qBAAqB;QACrB,2BACE;QACF,sBAAsB;QACtB,4BAA4B;QAC5B,kCAAkC;QAClC,cAAc;QACd,oBAAoB;QACpB,aAAa;QACb,mBACE;QACF,aAAa;QACb,mBAAmB;QACnB,2BAA2B;QAC3B,mCAAmC;QACnC,0BAA0B;QAC1B,wBAAwB;QACxB,0BAA0B;QAC1B,+BAA+B;QAC/B,qCACE;QACF,wBAAwB;;;QAGxB,8BACE;QACF,8BAA8B;QAC9B,oCAAoC;QACpC,8BAA8B;QAC9B,oCACE;QACF,0CAA0C;QAC1C,0CACE;QACF,oCAAoC;QACpC,kBAAkB;QAClB,qBAAqB;QACrB,mCAAmC;QACnC,gBAAgB;QAChB,2BAA2B;QAC3B,YAAY;QACZ,0BAA0B;QAC1B,sBAAsB;QACtB,4BAA4B;QAC5B,sBAAsB;MACxB;IACF;EACF;;AAGK,IAAMJ,eAA2B;KAAIG;KAAuBF;;",
6
+ "names": ["translations", "shellTranslations", "meta", "pluginTranslations", "id"]
7
+ }
@@ -2,15 +2,13 @@ import {
2
2
  Account,
3
3
  ClientAction,
4
4
  ClientCapabilities,
5
- ClientEvents,
6
- ClientOperation
7
- } from "../chunk-DPAXDXMK.mjs";
8
- import "../chunk-N2GMSVDQ.mjs";
5
+ ClientEvents
6
+ } from "../chunk-M37DHX5L.mjs";
7
+ import "../chunk-J5LGTIGS.mjs";
9
8
  export {
10
9
  Account,
11
10
  ClientAction,
12
11
  ClientCapabilities,
13
- ClientEvents,
14
- ClientOperation
12
+ ClientEvents
15
13
  };
16
14
  //# sourceMappingURL=index.mjs.map
@@ -0,0 +1,176 @@
1
+ import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
2
+ import {
3
+ __export
4
+ } from "./chunk-HSLMI22Q.mjs";
5
+
6
+ // src/operations/definitions.ts
7
+ var definitions_exports = {};
8
+ __export(definitions_exports, {
9
+ CreateAgent: () => CreateAgent,
10
+ CreateIdentity: () => CreateIdentity,
11
+ CreatePasskey: () => CreatePasskey,
12
+ CreateRecoveryCode: () => CreateRecoveryCode,
13
+ JoinIdentity: () => JoinIdentity,
14
+ RecoverIdentity: () => RecoverIdentity,
15
+ RedeemPasskey: () => RedeemPasskey,
16
+ RedeemToken: () => RedeemToken,
17
+ ResetStorage: () => ResetStorage,
18
+ ShareIdentity: () => ShareIdentity
19
+ });
20
+ import * as Schema from "effect/Schema";
21
+ import { Capability } from "@dxos/app-framework";
22
+ import { PublicKey } from "@dxos/client";
23
+ import { Operation } from "@dxos/compute";
24
+ import { meta } from "#meta";
25
+ var CLIENT_OPERATION = `${meta.id}.operation`;
26
+ var IdentitySchema = Schema.Struct({
27
+ identityKey: Schema.instanceOf(PublicKey),
28
+ spaceKey: Schema.optional(Schema.instanceOf(PublicKey)),
29
+ profile: Schema.optional(Schema.Struct({
30
+ displayName: Schema.optional(Schema.String),
31
+ avatarCid: Schema.optional(Schema.String),
32
+ data: Schema.optional(Schema.Record({
33
+ key: Schema.String,
34
+ value: Schema.Any
35
+ }))
36
+ }))
37
+ });
38
+ var ProfileSchema = Schema.Struct({
39
+ displayName: Schema.optional(Schema.String),
40
+ avatarCid: Schema.optional(Schema.String),
41
+ data: Schema.optional(Schema.Record({
42
+ key: Schema.String,
43
+ value: Schema.Any
44
+ }))
45
+ });
46
+ var CreateIdentity = Operation.make({
47
+ meta: {
48
+ key: `${CLIENT_OPERATION}.create-identity`,
49
+ name: "Create Identity"
50
+ },
51
+ services: [
52
+ Capability.Service
53
+ ],
54
+ input: ProfileSchema,
55
+ output: IdentitySchema
56
+ });
57
+ var JoinIdentity = Operation.make({
58
+ meta: {
59
+ key: `${CLIENT_OPERATION}.join-identity`,
60
+ name: "Join Identity"
61
+ },
62
+ services: [
63
+ Capability.Service
64
+ ],
65
+ input: Schema.Struct({
66
+ invitationCode: Schema.optional(Schema.String)
67
+ }),
68
+ output: Schema.Void
69
+ });
70
+ var ShareIdentity = Operation.make({
71
+ meta: {
72
+ key: `${CLIENT_OPERATION}.share-identity`,
73
+ name: "Share Identity"
74
+ },
75
+ services: [
76
+ Capability.Service
77
+ ],
78
+ input: Schema.Void,
79
+ output: Schema.Void
80
+ });
81
+ var RecoverIdentity = Operation.make({
82
+ meta: {
83
+ key: `${CLIENT_OPERATION}.recover-identity`,
84
+ name: "Recover Identity"
85
+ },
86
+ services: [
87
+ Capability.Service
88
+ ],
89
+ input: Schema.Void,
90
+ output: Schema.Void
91
+ });
92
+ var ResetStorage = Operation.make({
93
+ meta: {
94
+ key: `${CLIENT_OPERATION}.reset-storage`,
95
+ name: "Reset Storage"
96
+ },
97
+ services: [
98
+ Capability.Service
99
+ ],
100
+ input: Schema.Struct({
101
+ mode: Schema.optional(Schema.String)
102
+ }),
103
+ output: Schema.Void
104
+ });
105
+ var CreateAgent = Operation.make({
106
+ meta: {
107
+ key: `${CLIENT_OPERATION}.create-agent`,
108
+ name: "Create Agent"
109
+ },
110
+ services: [
111
+ Capability.Service
112
+ ],
113
+ input: Schema.Void,
114
+ output: Schema.Void
115
+ });
116
+ var CreateRecoveryCode = Operation.make({
117
+ meta: {
118
+ key: `${CLIENT_OPERATION}.create-recovery-code`,
119
+ name: "Create Recovery Code"
120
+ },
121
+ services: [
122
+ Capability.Service
123
+ ],
124
+ input: Schema.Void,
125
+ output: Schema.Void
126
+ });
127
+ var CreatePasskey = Operation.make({
128
+ meta: {
129
+ key: `${CLIENT_OPERATION}.create-passkey`,
130
+ name: "Create Passkey"
131
+ },
132
+ services: [
133
+ Capability.Service
134
+ ],
135
+ input: Schema.Void,
136
+ output: Schema.Void
137
+ });
138
+ var RedeemPasskey = Operation.make({
139
+ meta: {
140
+ key: `${CLIENT_OPERATION}.redeem-passkey`,
141
+ name: "Redeem Passkey"
142
+ },
143
+ services: [
144
+ Capability.Service
145
+ ],
146
+ input: Schema.Void,
147
+ output: Schema.Void
148
+ });
149
+ var RedeemToken = Operation.make({
150
+ meta: {
151
+ key: `${CLIENT_OPERATION}.redeem-token`,
152
+ name: "Redeem Token"
153
+ },
154
+ services: [
155
+ Capability.Service
156
+ ],
157
+ input: Schema.Struct({
158
+ token: Schema.String
159
+ }),
160
+ output: Schema.Void
161
+ });
162
+
163
+ export {
164
+ CreateIdentity,
165
+ JoinIdentity,
166
+ ShareIdentity,
167
+ RecoverIdentity,
168
+ ResetStorage,
169
+ CreateAgent,
170
+ CreateRecoveryCode,
171
+ CreatePasskey,
172
+ RedeemPasskey,
173
+ RedeemToken,
174
+ definitions_exports
175
+ };
176
+ //# sourceMappingURL=chunk-G77YYPR6.mjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/operations/definitions.ts"],
4
+ "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Schema from 'effect/Schema';\n\nimport { Capability } from '@dxos/app-framework';\nimport { PublicKey } from '@dxos/client';\nimport { Operation } from '@dxos/compute';\n\nimport { meta } from '#meta';\n\nconst CLIENT_OPERATION = `${meta.id}.operation`;\n\nconst IdentitySchema = Schema.Struct({\n identityKey: Schema.instanceOf(PublicKey),\n spaceKey: Schema.optional(Schema.instanceOf(PublicKey)),\n profile: Schema.optional(\n Schema.Struct({\n displayName: Schema.optional(Schema.String),\n avatarCid: Schema.optional(Schema.String),\n data: Schema.optional(Schema.Record({ key: Schema.String, value: Schema.Any })),\n }),\n ),\n});\n\nconst ProfileSchema = Schema.Struct({\n displayName: Schema.optional(Schema.String),\n avatarCid: Schema.optional(Schema.String),\n data: Schema.optional(Schema.Record({ key: Schema.String, value: Schema.Any })),\n});\n\nexport const CreateIdentity = Operation.make({\n meta: { key: `${CLIENT_OPERATION}.create-identity`, name: 'Create Identity' },\n services: [Capability.Service],\n input: ProfileSchema,\n output: IdentitySchema,\n});\n\nexport const JoinIdentity = Operation.make({\n meta: { key: `${CLIENT_OPERATION}.join-identity`, name: 'Join Identity' },\n services: [Capability.Service],\n input: Schema.Struct({\n invitationCode: Schema.optional(Schema.String),\n }),\n output: Schema.Void,\n});\n\nexport const ShareIdentity = Operation.make({\n meta: { key: `${CLIENT_OPERATION}.share-identity`, name: 'Share Identity' },\n services: [Capability.Service],\n input: Schema.Void,\n output: Schema.Void,\n});\n\nexport const RecoverIdentity = Operation.make({\n meta: { key: `${CLIENT_OPERATION}.recover-identity`, name: 'Recover Identity' },\n services: [Capability.Service],\n input: Schema.Void,\n output: Schema.Void,\n});\n\nexport const ResetStorage = Operation.make({\n meta: { key: `${CLIENT_OPERATION}.reset-storage`, name: 'Reset Storage' },\n services: [Capability.Service],\n input: Schema.Struct({\n mode: Schema.optional(Schema.String),\n }),\n output: Schema.Void,\n});\n\nexport const CreateAgent = Operation.make({\n meta: { key: `${CLIENT_OPERATION}.create-agent`, name: 'Create Agent' },\n services: [Capability.Service],\n input: Schema.Void,\n output: Schema.Void,\n});\n\nexport const CreateRecoveryCode = Operation.make({\n meta: { key: `${CLIENT_OPERATION}.create-recovery-code`, name: 'Create Recovery Code' },\n services: [Capability.Service],\n input: Schema.Void,\n output: Schema.Void,\n});\n\nexport const CreatePasskey = Operation.make({\n meta: { key: `${CLIENT_OPERATION}.create-passkey`, name: 'Create Passkey' },\n services: [Capability.Service],\n input: Schema.Void,\n output: Schema.Void,\n});\n\nexport const RedeemPasskey = Operation.make({\n meta: { key: `${CLIENT_OPERATION}.redeem-passkey`, name: 'Redeem Passkey' },\n services: [Capability.Service],\n input: Schema.Void,\n output: Schema.Void,\n});\n\nexport const RedeemToken = Operation.make({\n meta: { key: `${CLIENT_OPERATION}.redeem-token`, name: 'Redeem Token' },\n services: [Capability.Service],\n input: Schema.Struct({\n token: Schema.String,\n }),\n output: Schema.Void,\n});\n"],
5
+ "mappings": ";;;;;;AAAA;;;;;;;;;;;;;AAIA,YAAYA,YAAY;AAExB,SAASC,kBAAkB;AAC3B,SAASC,iBAAiB;AAC1B,SAASC,iBAAiB;AAE1B,SAASC,YAAY;AAErB,IAAMC,mBAAmB,GAAGD,KAAKE,EAAE;AAEnC,IAAMC,iBAAwBC,cAAO;EACnCC,aAAoBC,kBAAWR,SAAAA;EAC/BS,UAAiBC,gBAAgBF,kBAAWR,SAAAA,CAAAA;EAC5CW,SAAgBD,gBACPJ,cAAO;IACZM,aAAoBF,gBAAgBG,aAAM;IAC1CC,WAAkBJ,gBAAgBG,aAAM;IACxCE,MAAaL,gBAAgBM,cAAO;MAAEC,KAAYJ;MAAQK,OAAcC;IAAI,CAAA,CAAA;EAC9E,CAAA,CAAA;AAEJ,CAAA;AAEA,IAAMC,gBAAuBd,cAAO;EAClCM,aAAoBF,gBAAgBG,aAAM;EAC1CC,WAAkBJ,gBAAgBG,aAAM;EACxCE,MAAaL,gBAAgBM,cAAO;IAAEC,KAAYJ;IAAQK,OAAcC;EAAI,CAAA,CAAA;AAC9E,CAAA;AAEO,IAAME,iBAAiBpB,UAAUqB,KAAK;EAC3CpB,MAAM;IAAEe,KAAK,GAAGd,gBAAAA;IAAoCoB,MAAM;EAAkB;EAC5EC,UAAU;IAACzB,WAAW0B;;EACtBC,OAAON;EACPO,QAAQtB;AACV,CAAA;AAEO,IAAMuB,eAAe3B,UAAUqB,KAAK;EACzCpB,MAAM;IAAEe,KAAK,GAAGd,gBAAAA;IAAkCoB,MAAM;EAAgB;EACxEC,UAAU;IAACzB,WAAW0B;;EACtBC,OAAcpB,cAAO;IACnBuB,gBAAuBnB,gBAAgBG,aAAM;EAC/C,CAAA;EACAc,QAAeG;AACjB,CAAA;AAEO,IAAMC,gBAAgB9B,UAAUqB,KAAK;EAC1CpB,MAAM;IAAEe,KAAK,GAAGd,gBAAAA;IAAmCoB,MAAM;EAAiB;EAC1EC,UAAU;IAACzB,WAAW0B;;EACtBC,OAAcI;EACdH,QAAeG;AACjB,CAAA;AAEO,IAAME,kBAAkB/B,UAAUqB,KAAK;EAC5CpB,MAAM;IAAEe,KAAK,GAAGd,gBAAAA;IAAqCoB,MAAM;EAAmB;EAC9EC,UAAU;IAACzB,WAAW0B;;EACtBC,OAAcI;EACdH,QAAeG;AACjB,CAAA;AAEO,IAAMG,eAAehC,UAAUqB,KAAK;EACzCpB,MAAM;IAAEe,KAAK,GAAGd,gBAAAA;IAAkCoB,MAAM;EAAgB;EACxEC,UAAU;IAACzB,WAAW0B;;EACtBC,OAAcpB,cAAO;IACnB4B,MAAaxB,gBAAgBG,aAAM;EACrC,CAAA;EACAc,QAAeG;AACjB,CAAA;AAEO,IAAMK,cAAclC,UAAUqB,KAAK;EACxCpB,MAAM;IAAEe,KAAK,GAAGd,gBAAAA;IAAiCoB,MAAM;EAAe;EACtEC,UAAU;IAACzB,WAAW0B;;EACtBC,OAAcI;EACdH,QAAeG;AACjB,CAAA;AAEO,IAAMM,qBAAqBnC,UAAUqB,KAAK;EAC/CpB,MAAM;IAAEe,KAAK,GAAGd,gBAAAA;IAAyCoB,MAAM;EAAuB;EACtFC,UAAU;IAACzB,WAAW0B;;EACtBC,OAAcI;EACdH,QAAeG;AACjB,CAAA;AAEO,IAAMO,gBAAgBpC,UAAUqB,KAAK;EAC1CpB,MAAM;IAAEe,KAAK,GAAGd,gBAAAA;IAAmCoB,MAAM;EAAiB;EAC1EC,UAAU;IAACzB,WAAW0B;;EACtBC,OAAcI;EACdH,QAAeG;AACjB,CAAA;AAEO,IAAMQ,gBAAgBrC,UAAUqB,KAAK;EAC1CpB,MAAM;IAAEe,KAAK,GAAGd,gBAAAA;IAAmCoB,MAAM;EAAiB;EAC1EC,UAAU;IAACzB,WAAW0B;;EACtBC,OAAcI;EACdH,QAAeG;AACjB,CAAA;AAEO,IAAMS,cAActC,UAAUqB,KAAK;EACxCpB,MAAM;IAAEe,KAAK,GAAGd,gBAAAA;IAAiCoB,MAAM;EAAe;EACtEC,UAAU;IAACzB,WAAW0B;;EACtBC,OAAcpB,cAAO;IACnBkC,OAAc3B;EAChB,CAAA;EACAc,QAAeG;AACjB,CAAA;",
6
+ "names": ["Schema", "Capability", "PublicKey", "Operation", "meta", "CLIENT_OPERATION", "id", "IdentitySchema", "Struct", "identityKey", "instanceOf", "spaceKey", "optional", "profile", "displayName", "String", "avatarCid", "data", "Record", "key", "value", "Any", "ProfileSchema", "CreateIdentity", "make", "name", "services", "Service", "input", "output", "JoinIdentity", "invitationCode", "Void", "ShareIdentity", "RecoverIdentity", "ResetStorage", "mode", "CreateAgent", "CreateRecoveryCode", "CreatePasskey", "RedeemPasskey", "RedeemToken", "token"]
7
+ }
@@ -0,0 +1,11 @@
1
+ import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
2
+ var __defProp = Object.defineProperty;
3
+ var __export = (target, all) => {
4
+ for (var name in all)
5
+ __defProp(target, name, { get: all[name], enumerable: true });
6
+ };
7
+
8
+ export {
9
+ __export
10
+ };
11
+ //# sourceMappingURL=chunk-HSLMI22Q.mjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": [],
4
+ "sourcesContent": [],
5
+ "mappings": "",
6
+ "names": []
7
+ }
@@ -0,0 +1,14 @@
1
+ import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
2
+
3
+ // src/constants.ts
4
+ import { meta } from "#meta";
5
+ var JOIN_DIALOG = `${meta.id}.JoinDialog`;
6
+ var RECOVERY_CODE_DIALOG = `${meta.id}.RecoveryCodeDialog`;
7
+ var RESET_DIALOG = `${meta.id}.ResetDialog`;
8
+
9
+ export {
10
+ JOIN_DIALOG,
11
+ RECOVERY_CODE_DIALOG,
12
+ RESET_DIALOG
13
+ };
14
+ //# sourceMappingURL=chunk-OHKM7GJW.mjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/constants.ts"],
4
+ "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport { meta } from '#meta';\n\nexport const JOIN_DIALOG = `${meta.id}.JoinDialog`;\nexport const RECOVERY_CODE_DIALOG = `${meta.id}.RecoveryCodeDialog`;\nexport const RESET_DIALOG = `${meta.id}.ResetDialog`;\n"],
5
+ "mappings": ";;;AAIA,SAASA,YAAY;AAEd,IAAMC,cAAc,GAAGD,KAAKE,EAAE;AAC9B,IAAMC,uBAAuB,GAAGH,KAAKE,EAAE;AACvC,IAAME,eAAe,GAAGJ,KAAKE,EAAE;",
6
+ "names": ["meta", "JOIN_DIALOG", "id", "RECOVERY_CODE_DIALOG", "RESET_DIALOG"]
7
+ }