@dxos/plugin-client 0.8.4-main.bc674ce → 0.8.4-main.bcb3aa67d6
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.
- package/dist/lib/browser/chunk-ELAYKIQU.mjs +12 -0
- package/dist/lib/browser/chunk-ELAYKIQU.mjs.map +7 -0
- package/dist/lib/browser/chunk-J5LGTIGS.mjs +10 -0
- package/dist/lib/browser/chunk-J5LGTIGS.mjs.map +7 -0
- package/dist/lib/browser/chunk-M43LJQ5U.mjs +175 -0
- package/dist/lib/browser/chunk-M43LJQ5U.mjs.map +7 -0
- package/dist/lib/browser/chunk-WNJRYPGG.mjs +131 -0
- package/dist/lib/browser/chunk-WNJRYPGG.mjs.map +7 -0
- package/dist/lib/browser/cli/index.mjs +92 -80
- package/dist/lib/browser/cli/index.mjs.map +3 -3
- package/dist/lib/browser/create-agent-WXBNGUBQ.mjs +34 -0
- package/dist/lib/browser/create-agent-WXBNGUBQ.mjs.map +7 -0
- package/dist/lib/browser/create-identity-LIE4RCXJ.mjs +30 -0
- package/dist/lib/browser/create-identity-LIE4RCXJ.mjs.map +7 -0
- package/dist/lib/browser/create-passkey-PYZ47DJT.mjs +105 -0
- package/dist/lib/browser/create-passkey-PYZ47DJT.mjs.map +7 -0
- package/dist/lib/browser/create-recovery-code-NSRU3QDJ.mjs +44 -0
- package/dist/lib/browser/create-recovery-code-NSRU3QDJ.mjs.map +7 -0
- package/dist/lib/browser/index.mjs +90 -93
- package/dist/lib/browser/index.mjs.map +4 -4
- package/dist/lib/browser/join-identity-B6DC2VW7.mjs +27 -0
- package/dist/lib/browser/join-identity-B6DC2VW7.mjs.map +7 -0
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/operations/index.mjs +13 -0
- package/dist/lib/browser/operations/index.mjs.map +7 -0
- package/dist/lib/browser/recover-identity-Z3H4GJ3L.mjs +26 -0
- package/dist/lib/browser/recover-identity-Z3H4GJ3L.mjs.map +7 -0
- package/dist/lib/browser/redeem-passkey-ODK47PIR.mjs +82 -0
- package/dist/lib/browser/redeem-passkey-ODK47PIR.mjs.map +7 -0
- package/dist/lib/browser/redeem-token-OYXEFDM3.mjs +37 -0
- package/dist/lib/browser/redeem-token-OYXEFDM3.mjs.map +7 -0
- package/dist/lib/browser/reset-storage-JAU4CS2U.mjs +26 -0
- package/dist/lib/browser/reset-storage-JAU4CS2U.mjs.map +7 -0
- package/dist/lib/browser/share-identity-H2JNYYCP.mjs +31 -0
- package/dist/lib/browser/share-identity-H2JNYYCP.mjs.map +7 -0
- package/dist/lib/browser/testing/index.mjs +22 -0
- package/dist/lib/browser/testing/index.mjs.map +7 -0
- package/dist/lib/browser/types/index.mjs +4 -5
- package/dist/lib/node-esm/chunk-HSLMI22Q.mjs +11 -0
- package/dist/lib/node-esm/chunk-HSLMI22Q.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-IT5LAIV3.mjs +133 -0
- package/dist/lib/node-esm/chunk-IT5LAIV3.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-J5RWSQT6.mjs +14 -0
- package/dist/lib/node-esm/chunk-J5RWSQT6.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-SJ6FDER5.mjs +176 -0
- package/dist/lib/node-esm/chunk-SJ6FDER5.mjs.map +7 -0
- package/dist/lib/node-esm/cli/index.mjs +92 -80
- package/dist/lib/node-esm/cli/index.mjs.map +3 -3
- package/dist/lib/node-esm/create-agent-I7VGTH7O.mjs +35 -0
- package/dist/lib/node-esm/create-agent-I7VGTH7O.mjs.map +7 -0
- package/dist/lib/node-esm/create-identity-NWY3YT5C.mjs +31 -0
- package/dist/lib/node-esm/create-identity-NWY3YT5C.mjs.map +7 -0
- package/dist/lib/node-esm/create-passkey-2LQEEIAN.mjs +106 -0
- package/dist/lib/node-esm/create-passkey-2LQEEIAN.mjs.map +7 -0
- package/dist/lib/node-esm/create-recovery-code-2MVK5CVE.mjs +45 -0
- package/dist/lib/node-esm/create-recovery-code-2MVK5CVE.mjs.map +7 -0
- package/dist/lib/node-esm/index.mjs +90 -93
- package/dist/lib/node-esm/index.mjs.map +4 -4
- package/dist/lib/node-esm/join-identity-6NT75FSO.mjs +28 -0
- package/dist/lib/node-esm/join-identity-6NT75FSO.mjs.map +7 -0
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/lib/node-esm/operations/index.mjs +14 -0
- package/dist/lib/node-esm/operations/index.mjs.map +7 -0
- package/dist/lib/node-esm/recover-identity-3UKCQ2M4.mjs +27 -0
- package/dist/lib/node-esm/recover-identity-3UKCQ2M4.mjs.map +7 -0
- package/dist/lib/node-esm/redeem-passkey-TDNEMVJJ.mjs +83 -0
- package/dist/lib/node-esm/redeem-passkey-TDNEMVJJ.mjs.map +7 -0
- package/dist/lib/node-esm/redeem-token-ZBYMFFKM.mjs +38 -0
- package/dist/lib/node-esm/redeem-token-ZBYMFFKM.mjs.map +7 -0
- package/dist/lib/node-esm/reset-storage-NY3ALG72.mjs +27 -0
- package/dist/lib/node-esm/reset-storage-NY3ALG72.mjs.map +7 -0
- package/dist/lib/node-esm/share-identity-FDIZWTDG.mjs +32 -0
- package/dist/lib/node-esm/share-identity-FDIZWTDG.mjs.map +7 -0
- package/dist/lib/node-esm/testing/index.mjs +23 -0
- package/dist/lib/node-esm/testing/index.mjs.map +7 -0
- package/dist/lib/node-esm/types/index.mjs +4 -5
- package/dist/types/src/ClientPlugin.d.ts +1 -1
- package/dist/types/src/ClientPlugin.d.ts.map +1 -1
- package/dist/types/src/capabilities/app-graph-builder.d.ts +6 -0
- package/dist/types/src/capabilities/app-graph-builder.d.ts.map +1 -0
- package/dist/types/src/capabilities/client.d.ts +8 -0
- package/dist/types/src/capabilities/client.d.ts.map +1 -0
- package/dist/types/src/capabilities/index.d.ts +32 -7
- package/dist/types/src/capabilities/index.d.ts.map +1 -1
- package/dist/types/src/capabilities/migrations.d.ts +5 -0
- package/dist/types/src/capabilities/migrations.d.ts.map +1 -0
- package/dist/types/src/capabilities/navigation-handler/index.d.ts +4 -0
- package/dist/types/src/capabilities/navigation-handler/index.d.ts.map +1 -0
- package/dist/types/src/capabilities/navigation-handler/navigation-handler.d.ts +15 -0
- package/dist/types/src/capabilities/navigation-handler/navigation-handler.d.ts.map +1 -0
- package/dist/types/src/capabilities/{client/index.d.ts → node.d.ts} +7 -3
- package/dist/types/src/capabilities/node.d.ts.map +1 -0
- package/dist/types/src/capabilities/operation-handler.d.ts +6 -0
- package/dist/types/src/capabilities/operation-handler.d.ts.map +1 -0
- package/dist/types/src/capabilities/{react-context/react-context.d.ts → react-context.d.ts} +1 -1
- package/dist/types/src/capabilities/react-context.d.ts.map +1 -0
- package/dist/types/src/capabilities/react-surface.d.ts +9 -0
- package/dist/types/src/capabilities/react-surface.d.ts.map +1 -0
- package/dist/types/src/capabilities/schema-defs.d.ts +5 -0
- package/dist/types/src/capabilities/schema-defs.d.ts.map +1 -0
- package/dist/types/src/cli/commands/config/view.d.ts.map +1 -1
- package/dist/types/src/cli/commands/device/info/info.d.ts +2 -2
- package/dist/types/src/cli/commands/device/info/info.d.ts.map +1 -1
- package/dist/types/src/cli/commands/device/list/list.d.ts +2 -2
- package/dist/types/src/cli/commands/device/list/list.d.ts.map +1 -1
- package/dist/types/src/cli/commands/device/update/update.d.ts.map +1 -1
- package/dist/types/src/cli/commands/edge/status.d.ts.map +1 -1
- package/dist/types/src/cli/commands/halo/create/create.d.ts +2 -2
- package/dist/types/src/cli/commands/halo/create/create.d.ts.map +1 -1
- package/dist/types/src/cli/commands/halo/credential/list/list.d.ts +1 -1
- package/dist/types/src/cli/commands/halo/credential/list/list.d.ts.map +1 -1
- package/dist/types/src/cli/commands/halo/identity/identity.d.ts +2 -2
- package/dist/types/src/cli/commands/halo/identity/identity.d.ts.map +1 -1
- package/dist/types/src/cli/commands/halo/keys/keys.d.ts +2 -2
- package/dist/types/src/cli/commands/halo/keys/keys.d.ts.map +1 -1
- package/dist/types/src/cli/commands/halo/seed/seed.d.ts.map +1 -1
- package/dist/types/src/cli/commands/halo/update/update.d.ts.map +1 -1
- package/dist/types/src/cli/commands/profile/create.d.ts +2 -1
- package/dist/types/src/cli/commands/profile/create.d.ts.map +1 -1
- package/dist/types/src/cli/commands/profile/delete.d.ts +1 -1
- package/dist/types/src/cli/commands/profile/delete.d.ts.map +1 -1
- package/dist/types/src/cli/commands/profile/list.d.ts.map +1 -1
- package/dist/types/src/cli/plugin.d.ts +1 -1
- package/dist/types/src/cli/plugin.d.ts.map +1 -1
- package/dist/types/src/components/index.d.ts +0 -6
- package/dist/types/src/components/index.d.ts.map +1 -1
- package/dist/types/src/containers/DevicesContainer/DevicesContainer.d.ts.map +1 -0
- package/dist/types/src/containers/DevicesContainer/DevicesContainer.stories.d.ts +184 -0
- package/dist/types/src/containers/DevicesContainer/DevicesContainer.stories.d.ts.map +1 -0
- package/dist/types/src/containers/DevicesContainer/index.d.ts +3 -0
- package/dist/types/src/containers/DevicesContainer/index.d.ts.map +1 -0
- package/dist/types/src/containers/JoinDialog/JoinDialog.d.ts.map +1 -0
- package/dist/types/src/containers/JoinDialog/JoinDialog.stories.d.ts +15 -0
- package/dist/types/src/containers/JoinDialog/JoinDialog.stories.d.ts.map +1 -0
- package/dist/types/src/containers/JoinDialog/index.d.ts +3 -0
- package/dist/types/src/containers/JoinDialog/index.d.ts.map +1 -0
- package/dist/types/src/containers/ProfileContainer/ProfileContainer.d.ts.map +1 -0
- package/dist/types/src/containers/ProfileContainer/ProfileContainer.stories.d.ts.map +1 -0
- package/dist/types/src/containers/ProfileContainer/index.d.ts +3 -0
- package/dist/types/src/containers/ProfileContainer/index.d.ts.map +1 -0
- package/dist/types/src/containers/RecoveryCodeDialog/RecoveryCodeDialog.d.ts.map +1 -0
- package/dist/types/src/containers/RecoveryCodeDialog/RecoveryCodeDialog.stories.d.ts.map +1 -0
- package/dist/types/src/containers/RecoveryCodeDialog/index.d.ts +4 -0
- package/dist/types/src/containers/RecoveryCodeDialog/index.d.ts.map +1 -0
- package/dist/types/src/containers/RecoveryCredentialsContainer/RecoveryCredentialsContainer.d.ts.map +1 -0
- package/dist/types/src/containers/RecoveryCredentialsContainer/RecoveryCredentialsContainer.stories.d.ts.map +1 -0
- package/dist/types/src/containers/RecoveryCredentialsContainer/index.d.ts +3 -0
- package/dist/types/src/containers/RecoveryCredentialsContainer/index.d.ts.map +1 -0
- package/dist/types/src/{components → containers/ResetDialog}/ResetDialog.d.ts +1 -1
- package/dist/types/src/containers/ResetDialog/ResetDialog.d.ts.map +1 -0
- package/dist/types/src/{components → containers/ResetDialog}/ResetDialog.stories.d.ts +1 -1
- package/dist/types/src/containers/ResetDialog/ResetDialog.stories.d.ts.map +1 -0
- package/dist/types/src/containers/ResetDialog/index.d.ts +4 -0
- package/dist/types/src/containers/ResetDialog/index.d.ts.map +1 -0
- package/dist/types/src/containers/index.d.ts +10 -0
- package/dist/types/src/containers/index.d.ts.map +1 -0
- package/dist/types/src/index.d.ts +2 -4
- package/dist/types/src/index.d.ts.map +1 -1
- package/dist/types/src/operations/create-agent.d.ts +5 -0
- package/dist/types/src/operations/create-agent.d.ts.map +1 -0
- package/dist/types/src/operations/create-identity.d.ts +5 -0
- package/dist/types/src/operations/create-identity.d.ts.map +1 -0
- package/dist/types/src/operations/create-passkey.d.ts +5 -0
- package/dist/types/src/operations/create-passkey.d.ts.map +1 -0
- package/dist/types/src/operations/create-recovery-code.d.ts +5 -0
- package/dist/types/src/operations/create-recovery-code.d.ts.map +1 -0
- package/dist/types/src/operations/definitions.d.ts +36 -0
- package/dist/types/src/operations/definitions.d.ts.map +1 -0
- package/dist/types/src/operations/index.d.ts +4 -0
- package/dist/types/src/operations/index.d.ts.map +1 -0
- package/dist/types/src/operations/join-identity.d.ts +5 -0
- package/dist/types/src/operations/join-identity.d.ts.map +1 -0
- package/dist/types/src/operations/recover-identity.d.ts +5 -0
- package/dist/types/src/operations/recover-identity.d.ts.map +1 -0
- package/dist/types/src/operations/redeem-passkey.d.ts +5 -0
- package/dist/types/src/operations/redeem-passkey.d.ts.map +1 -0
- package/dist/types/src/operations/redeem-token.d.ts +5 -0
- package/dist/types/src/operations/redeem-token.d.ts.map +1 -0
- package/dist/types/src/operations/reset-storage.d.ts +5 -0
- package/dist/types/src/operations/reset-storage.d.ts.map +1 -0
- package/dist/types/src/operations/share-identity.d.ts +5 -0
- package/dist/types/src/operations/share-identity.d.ts.map +1 -0
- package/dist/types/src/testing/index.d.ts +2 -0
- package/dist/types/src/testing/index.d.ts.map +1 -0
- package/dist/types/src/testing/initializeIdentity.d.ts +13 -0
- package/dist/types/src/testing/initializeIdentity.d.ts.map +1 -0
- package/dist/types/src/translations.d.ts.map +1 -1
- package/dist/types/src/types/capabilities.d.ts +1 -1
- package/dist/types/src/types/capabilities.d.ts.map +1 -1
- package/dist/types/src/types/schema.d.ts +26 -175
- package/dist/types/src/types/schema.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +72 -36
- package/src/ClientPlugin.ts +38 -25
- package/src/capabilities/{app-graph-builder/app-graph-builder.ts → app-graph-builder.ts} +21 -19
- package/src/capabilities/{client/client.ts → client.ts} +16 -12
- package/src/capabilities/index.ts +15 -7
- package/src/capabilities/{migrations/migrations.ts → migrations.ts} +4 -4
- package/src/capabilities/navigation-handler/index.ts +9 -0
- package/src/capabilities/navigation-handler/navigation-handler.ts +64 -0
- package/src/capabilities/node.ts +13 -0
- package/src/capabilities/operation-handler.ts +16 -0
- package/src/capabilities/{react-context/react-context.tsx → react-context.tsx} +7 -7
- package/src/capabilities/{react-surface/react-surface.tsx → react-surface.tsx} +13 -13
- package/src/capabilities/{schema-defs/schema-defs.ts → schema-defs.ts} +8 -7
- package/src/cli/commands/config/view.ts +4 -1
- package/src/cli/commands/device/info/info.test.ts +0 -1
- package/src/cli/commands/device/info/info.ts +0 -2
- package/src/cli/commands/device/list/list.test.ts +0 -1
- package/src/cli/commands/device/list/list.ts +0 -2
- package/src/cli/commands/device/update/update.ts +0 -2
- package/src/cli/commands/edge/status.ts +3 -2
- package/src/cli/commands/halo/create/create.ts +13 -6
- package/src/cli/commands/halo/credential/list/list.test.ts +0 -1
- package/src/cli/commands/halo/credential/list/list.ts +4 -7
- package/src/cli/commands/halo/identity/identity.ts +0 -1
- package/src/cli/commands/halo/keys/keys.ts +0 -2
- package/src/cli/commands/halo/seed/seed.ts +0 -2
- package/src/cli/commands/halo/update/update.test.ts +0 -1
- package/src/cli/commands/halo/update/update.ts +0 -2
- package/src/cli/commands/profile/create.ts +9 -6
- package/src/cli/commands/profile/delete.ts +5 -2
- package/src/cli/commands/profile/list.ts +12 -11
- package/src/cli/plugin.ts +12 -13
- package/src/components/index.ts +0 -7
- package/src/constants.ts +4 -4
- package/src/{components → containers/DevicesContainer}/DevicesContainer.stories.tsx +10 -7
- package/src/{components → containers/DevicesContainer}/DevicesContainer.tsx +76 -83
- package/src/containers/DevicesContainer/index.ts +7 -0
- package/src/containers/JoinDialog/JoinDialog.stories.tsx +43 -0
- package/src/{components → containers/JoinDialog}/JoinDialog.tsx +20 -15
- package/src/containers/JoinDialog/index.ts +7 -0
- package/src/{components → containers/ProfileContainer}/ProfileContainer.stories.tsx +4 -4
- package/src/{components → containers/ProfileContainer}/ProfileContainer.tsx +21 -29
- package/src/containers/ProfileContainer/index.ts +7 -0
- package/src/{components → containers/RecoveryCodeDialog}/RecoveryCodeDialog.stories.tsx +4 -4
- package/src/{components → containers/RecoveryCodeDialog}/RecoveryCodeDialog.tsx +29 -26
- package/src/containers/RecoveryCodeDialog/index.ts +8 -0
- package/src/{components → containers/RecoveryCredentialsContainer}/RecoveryCredentialsContainer.stories.tsx +10 -7
- package/src/containers/RecoveryCredentialsContainer/RecoveryCredentialsContainer.tsx +66 -0
- package/src/containers/RecoveryCredentialsContainer/index.ts +7 -0
- package/src/{components → containers/ResetDialog}/ResetDialog.stories.tsx +27 -14
- package/src/{components → containers/ResetDialog}/ResetDialog.tsx +11 -11
- package/src/containers/ResetDialog/index.ts +8 -0
- package/src/containers/index.ts +15 -0
- package/src/index.ts +2 -5
- package/src/meta.ts +1 -1
- package/src/operations/create-agent.ts +27 -0
- package/src/operations/create-identity.ts +30 -0
- package/src/operations/create-passkey.ts +89 -0
- package/src/operations/create-recovery-code.ts +35 -0
- package/src/operations/definitions.ts +107 -0
- package/src/operations/index.ts +20 -0
- package/src/operations/join-identity.ts +29 -0
- package/src/operations/recover-identity.ts +29 -0
- package/src/operations/redeem-passkey.ts +86 -0
- package/src/operations/redeem-token.ts +32 -0
- package/src/operations/reset-storage.ts +28 -0
- package/src/operations/share-identity.ts +27 -0
- package/src/testing/index.ts +5 -0
- package/src/testing/initializeIdentity.ts +24 -0
- package/src/translations.ts +53 -42
- package/src/types/capabilities.ts +4 -4
- package/src/types/events.ts +6 -6
- package/src/types/schema.ts +18 -123
- package/dist/lib/browser/app-graph-builder-3FGBMLTF.mjs +0 -118
- package/dist/lib/browser/app-graph-builder-3FGBMLTF.mjs.map +0 -7
- package/dist/lib/browser/chunk-4BZGRIFS.mjs +0 -293
- package/dist/lib/browser/chunk-4BZGRIFS.mjs.map +0 -7
- package/dist/lib/browser/chunk-F7H2Y3Z2.mjs +0 -18
- package/dist/lib/browser/chunk-F7H2Y3Z2.mjs.map +0 -7
- package/dist/lib/browser/chunk-G7C3S2BE.mjs +0 -15
- package/dist/lib/browser/chunk-G7C3S2BE.mjs.map +0 -7
- package/dist/lib/browser/client-IX5LMWV4.mjs +0 -86
- package/dist/lib/browser/client-IX5LMWV4.mjs.map +0 -7
- package/dist/lib/browser/migrations-3EBTAW3N.mjs +0 -24
- package/dist/lib/browser/migrations-3EBTAW3N.mjs.map +0 -7
- package/dist/lib/browser/operation-resolver-2NT3ISVP.mjs +0 -298
- package/dist/lib/browser/operation-resolver-2NT3ISVP.mjs.map +0 -7
- package/dist/lib/browser/react-context-4UABG3GP.mjs +0 -24
- package/dist/lib/browser/react-context-4UABG3GP.mjs.map +0 -7
- package/dist/lib/browser/react-surface-RSQ74XCT.mjs +0 -675
- package/dist/lib/browser/react-surface-RSQ74XCT.mjs.map +0 -7
- package/dist/lib/browser/schema-defs-O7VLP745.mjs +0 -26
- package/dist/lib/browser/schema-defs-O7VLP745.mjs.map +0 -7
- package/dist/lib/node-esm/app-graph-builder-2PIYVUNC.mjs +0 -119
- package/dist/lib/node-esm/app-graph-builder-2PIYVUNC.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-BCELGXRI.mjs +0 -20
- package/dist/lib/node-esm/chunk-BCELGXRI.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-JAF64TFQ.mjs +0 -295
- package/dist/lib/node-esm/chunk-JAF64TFQ.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-PRAFFO54.mjs +0 -16
- package/dist/lib/node-esm/chunk-PRAFFO54.mjs.map +0 -7
- package/dist/lib/node-esm/client-FFPK5UFP.mjs +0 -87
- package/dist/lib/node-esm/client-FFPK5UFP.mjs.map +0 -7
- package/dist/lib/node-esm/migrations-WSZSFGDK.mjs +0 -25
- package/dist/lib/node-esm/migrations-WSZSFGDK.mjs.map +0 -7
- package/dist/lib/node-esm/operation-resolver-VW5R2BE4.mjs +0 -299
- package/dist/lib/node-esm/operation-resolver-VW5R2BE4.mjs.map +0 -7
- package/dist/lib/node-esm/react-context-UVXMGPW4.mjs +0 -25
- package/dist/lib/node-esm/react-context-UVXMGPW4.mjs.map +0 -7
- package/dist/lib/node-esm/react-surface-KBHANGGC.mjs +0 -676
- package/dist/lib/node-esm/react-surface-KBHANGGC.mjs.map +0 -7
- package/dist/lib/node-esm/schema-defs-QLRGBIKY.mjs +0 -27
- package/dist/lib/node-esm/schema-defs-QLRGBIKY.mjs.map +0 -7
- package/dist/types/src/capabilities/app-graph-builder/app-graph-builder.d.ts +0 -6
- package/dist/types/src/capabilities/app-graph-builder/app-graph-builder.d.ts.map +0 -1
- package/dist/types/src/capabilities/app-graph-builder/index.d.ts +0 -3
- package/dist/types/src/capabilities/app-graph-builder/index.d.ts.map +0 -1
- package/dist/types/src/capabilities/client/client.d.ts +0 -8
- package/dist/types/src/capabilities/client/client.d.ts.map +0 -1
- package/dist/types/src/capabilities/client/index.d.ts.map +0 -1
- package/dist/types/src/capabilities/migrations/index.d.ts +0 -3
- package/dist/types/src/capabilities/migrations/index.d.ts.map +0 -1
- package/dist/types/src/capabilities/migrations/migrations.d.ts +0 -5
- package/dist/types/src/capabilities/migrations/migrations.d.ts.map +0 -1
- package/dist/types/src/capabilities/operation-resolver/index.d.ts +0 -5
- package/dist/types/src/capabilities/operation-resolver/index.d.ts.map +0 -1
- package/dist/types/src/capabilities/operation-resolver/operation-resolver.d.ts +0 -8
- package/dist/types/src/capabilities/operation-resolver/operation-resolver.d.ts.map +0 -1
- package/dist/types/src/capabilities/react-context/index.d.ts +0 -7
- package/dist/types/src/capabilities/react-context/index.d.ts.map +0 -1
- package/dist/types/src/capabilities/react-context/react-context.d.ts.map +0 -1
- package/dist/types/src/capabilities/react-surface/index.d.ts +0 -5
- package/dist/types/src/capabilities/react-surface/index.d.ts.map +0 -1
- package/dist/types/src/capabilities/react-surface/react-surface.d.ts +0 -9
- package/dist/types/src/capabilities/react-surface/react-surface.d.ts.map +0 -1
- package/dist/types/src/capabilities/schema-defs/index.d.ts +0 -3
- package/dist/types/src/capabilities/schema-defs/index.d.ts.map +0 -1
- package/dist/types/src/capabilities/schema-defs/schema-defs.d.ts +0 -5
- package/dist/types/src/capabilities/schema-defs/schema-defs.d.ts.map +0 -1
- package/dist/types/src/components/DevicesContainer.d.ts.map +0 -1
- package/dist/types/src/components/DevicesContainer.stories.d.ts +0 -181
- package/dist/types/src/components/DevicesContainer.stories.d.ts.map +0 -1
- package/dist/types/src/components/JoinDialog.d.ts.map +0 -1
- package/dist/types/src/components/ProfileContainer.d.ts.map +0 -1
- package/dist/types/src/components/ProfileContainer.stories.d.ts.map +0 -1
- package/dist/types/src/components/RecoveryCodeDialog.d.ts.map +0 -1
- package/dist/types/src/components/RecoveryCodeDialog.stories.d.ts.map +0 -1
- package/dist/types/src/components/RecoveryCredentialsContainer.d.ts.map +0 -1
- package/dist/types/src/components/RecoveryCredentialsContainer.stories.d.ts.map +0 -1
- package/dist/types/src/components/ResetDialog.d.ts.map +0 -1
- package/dist/types/src/components/ResetDialog.stories.d.ts.map +0 -1
- package/src/capabilities/app-graph-builder/index.ts +0 -7
- package/src/capabilities/client/index.ts +0 -7
- package/src/capabilities/migrations/index.ts +0 -7
- package/src/capabilities/operation-resolver/index.ts +0 -7
- package/src/capabilities/operation-resolver/operation-resolver.ts +0 -248
- package/src/capabilities/react-context/index.ts +0 -7
- package/src/capabilities/react-surface/index.ts +0 -7
- package/src/capabilities/schema-defs/index.ts +0 -7
- package/src/components/RecoveryCredentialsContainer.tsx +0 -68
- /package/dist/types/src/{components → containers/DevicesContainer}/DevicesContainer.d.ts +0 -0
- /package/dist/types/src/{components → containers/JoinDialog}/JoinDialog.d.ts +0 -0
- /package/dist/types/src/{components → containers/ProfileContainer}/ProfileContainer.d.ts +0 -0
- /package/dist/types/src/{components → containers/ProfileContainer}/ProfileContainer.stories.d.ts +0 -0
- /package/dist/types/src/{components → containers/RecoveryCodeDialog}/RecoveryCodeDialog.d.ts +0 -0
- /package/dist/types/src/{components → containers/RecoveryCodeDialog}/RecoveryCodeDialog.stories.d.ts +0 -0
- /package/dist/types/src/{components → containers/RecoveryCredentialsContainer}/RecoveryCredentialsContainer.d.ts +0 -0
- /package/dist/types/src/{components → containers/RecoveryCredentialsContainer}/RecoveryCredentialsContainer.stories.d.ts +0 -0
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import {
|
|
2
|
+
RedeemPasskey
|
|
3
|
+
} from "./chunk-M43LJQ5U.mjs";
|
|
4
|
+
import {
|
|
5
|
+
ClientCapabilities
|
|
6
|
+
} from "./chunk-WNJRYPGG.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 { invariant } from "@dxos/invariant";
|
|
16
|
+
import { Operation } from "@dxos/operation";
|
|
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", {
|
|
21
|
+
F: __dxlog_file,
|
|
22
|
+
L: 22,
|
|
23
|
+
S: this,
|
|
24
|
+
A: [
|
|
25
|
+
"client.services.services.IdentityService",
|
|
26
|
+
"'IdentityService not available'"
|
|
27
|
+
]
|
|
28
|
+
});
|
|
29
|
+
const { deviceKey, controlFeedKey, challenge } = yield* Effect.promise(() => client.services.services.IdentityService.requestRecoveryChallenge());
|
|
30
|
+
const { lookupKey, signature, clientDataJson, authenticatorData } = yield* Match.value(supportsNativePasskeys()).pipe(Match.when(true, () => Effect.gen(function* () {
|
|
31
|
+
const result = yield* Effect.promise(() => loginNativePasskey({
|
|
32
|
+
challenge: Uint8Array.from(Buffer.from(challenge, "base64"))
|
|
33
|
+
}));
|
|
34
|
+
invariant(result, "Native passkey login returned no result", {
|
|
35
|
+
F: __dxlog_file,
|
|
36
|
+
L: 35,
|
|
37
|
+
S: this,
|
|
38
|
+
A: [
|
|
39
|
+
"result",
|
|
40
|
+
"'Native passkey login returned no result'"
|
|
41
|
+
]
|
|
42
|
+
});
|
|
43
|
+
return {
|
|
44
|
+
lookupKey: PublicKey.from(decodeUrlSafeBase64(result.user_handle)),
|
|
45
|
+
signature: Buffer.from(decodeUrlSafeBase64(result.signature)),
|
|
46
|
+
clientDataJson: Buffer.from(decodeUrlSafeBase64(result.client_data_json)),
|
|
47
|
+
authenticatorData: Buffer.from(decodeUrlSafeBase64(result.authenticator_data))
|
|
48
|
+
};
|
|
49
|
+
})), Match.orElse(() => Effect.gen(function* () {
|
|
50
|
+
const credential = yield* Effect.promise(() => navigator.credentials.get({
|
|
51
|
+
publicKey: {
|
|
52
|
+
challenge: Buffer.from(challenge, "base64"),
|
|
53
|
+
rpId: location.hostname,
|
|
54
|
+
userVerification: "required"
|
|
55
|
+
}
|
|
56
|
+
}));
|
|
57
|
+
return {
|
|
58
|
+
lookupKey: PublicKey.from(new Uint8Array(credential.response.userHandle)),
|
|
59
|
+
signature: Buffer.from(credential.response.signature),
|
|
60
|
+
clientDataJson: Buffer.from(credential.response.clientDataJSON),
|
|
61
|
+
authenticatorData: Buffer.from(credential.response.authenticatorData)
|
|
62
|
+
};
|
|
63
|
+
})));
|
|
64
|
+
yield* Effect.promise(() => client.services.services.IdentityService.recoverIdentity({
|
|
65
|
+
external: {
|
|
66
|
+
lookupKey,
|
|
67
|
+
deviceKey,
|
|
68
|
+
controlFeedKey,
|
|
69
|
+
signature,
|
|
70
|
+
clientDataJson,
|
|
71
|
+
authenticatorData
|
|
72
|
+
}
|
|
73
|
+
}, {
|
|
74
|
+
timeout: RECOVER_IDENTITY_RPC_TIMEOUT
|
|
75
|
+
}));
|
|
76
|
+
})));
|
|
77
|
+
var redeem_passkey_default = handler;
|
|
78
|
+
var RECOVER_IDENTITY_RPC_TIMEOUT = 2e4;
|
|
79
|
+
export {
|
|
80
|
+
redeem_passkey_default as default
|
|
81
|
+
};
|
|
82
|
+
//# sourceMappingURL=redeem-passkey-ODK47PIR.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 { invariant } from '@dxos/invariant';\nimport { Operation } from '@dxos/operation';\n\nimport { RedeemPasskey } from './definitions';\n\nimport { ClientCapabilities } from '../types';\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;;AAM1B,IAAMC,UAAuDC,cAAcC,KACzEC,UAAUC,YACDC,kBAAW,aAAA;AAChB,QAAMC,SAAS,OAAOC,WAAWC,IAAIC,mBAAmBC,MAAM;AAC9DC,YAAUL,OAAOM,SAASA,SAASC,iBAAiB,iCAAA;;;;;;;;;AACpD,QAAM,EAAEC,WAAWC,gBAAgBC,UAAS,IAAK,OAAcC,eAAQ,MACrEX,OAAOM,SAASA,SAASC,gBAAiBK,yBAAwB,CAAA;AAGpE,QAAM,EAAEC,WAAWC,WAAWC,gBAAgBC,kBAAiB,IAAK,OAAaC,YAC/EC,uBAAAA,CAAAA,EACAtB,KACMuB,WAAK,MAAM,MACRC,WAAI,aAAA;AACT,UAAMC,SAAS,OAAcV,eAAQ,MACnCW,mBAAmB;MAAEZ,WAAWa,WAAWC,KAAKC,OAAOD,KAAKd,WAAW,QAAA,CAAA;IAAW,CAAA,CAAA;AAEpFL,cAAUgB,QAAQ,2CAAA;;;;;;;;;AAClB,WAAO;MACLR,WAAWa,UAAUF,KAAKG,oBAAoBN,OAAOO,WAAW,CAAA;MAChEd,WAAWW,OAAOD,KAAKG,oBAAoBN,OAAOP,SAAS,CAAA;MAC3DC,gBAAgBU,OAAOD,KAAKG,oBAAoBN,OAAOQ,gBAAgB,CAAA;MACvEb,mBAAmBS,OAAOD,KAAKG,oBAAoBN,OAAOS,kBAAkB,CAAA;IAC9E;EACF,CAAA,CAAA,GAEIC,aAAO,MACJX,WAAI,aAAA;AACT,UAAMY,aAAa,OAAcrB,eAAQ,MACvCsB,UAAUC,YAAYhC,IAAI;MACxBiC,WAAW;QACTzB,WAAWe,OAAOD,KAAKd,WAAW,QAAA;QAClC0B,MAAMC,SAASC;QACfC,kBAAkB;MACpB;IACF,CAAA,CAAA;AAEF,WAAO;MACL1B,WAAWa,UAAUF,KAAK,IAAID,WAAYS,WAAmBQ,SAASC,UAAU,CAAA;MAChF3B,WAAWW,OAAOD,KAAMQ,WAAmBQ,SAAS1B,SAAS;MAC7DC,gBAAgBU,OAAOD,KAAMQ,WAAmBQ,SAASE,cAAc;MACvE1B,mBAAmBS,OAAOD,KAAMQ,WAAmBQ,SAASxB,iBAAiB;IAC/E;EACF,CAAA,CAAA,CAAA;AAIJ,SAAcL,eAAQ,MACpBX,OAAOM,SAASA,SAASC,gBAAiBoC,gBACxC;IACEC,UAAU;MACR/B;MACAL;MACAC;MACAK;MACAC;MACAC;IACF;EACF,GACA;IAAE6B,SAASC;EAA6B,CAAA,CAAA;AAG9C,CAAA,CAAA,CAAA;AAIJ,IAAA,yBAAepD;AAEf,IAAMoD,+BAA+B;",
|
|
6
|
+
"names": ["Effect", "Match", "Capability", "decodeUrlSafeBase64", "supportsNativePasskeys", "loginNativePasskey", "PublicKey", "invariant", "Operation", "handler", "RedeemPasskey", "pipe", "Operation", "withHandler", "fnUntraced", "client", "Capability", "get", "ClientCapabilities", "Client", "invariant", "services", "IdentityService", "deviceKey", "controlFeedKey", "challenge", "promise", "requestRecoveryChallenge", "lookupKey", "signature", "clientDataJson", "authenticatorData", "value", "supportsNativePasskeys", "when", "gen", "result", "loginNativePasskey", "Uint8Array", "from", "Buffer", "PublicKey", "decodeUrlSafeBase64", "user_handle", "client_data_json", "authenticator_data", "orElse", "credential", "navigator", "credentials", "publicKey", "rpId", "location", "hostname", "userVerification", "response", "userHandle", "clientDataJSON", "recoverIdentity", "external", "timeout", "RECOVER_IDENTITY_RPC_TIMEOUT"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import {
|
|
2
|
+
RedeemToken
|
|
3
|
+
} from "./chunk-M43LJQ5U.mjs";
|
|
4
|
+
import {
|
|
5
|
+
ClientCapabilities
|
|
6
|
+
} from "./chunk-WNJRYPGG.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 { invariant } from "@dxos/invariant";
|
|
13
|
+
import { Operation } from "@dxos/operation";
|
|
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", {
|
|
18
|
+
F: __dxlog_file,
|
|
19
|
+
L: 19,
|
|
20
|
+
S: this,
|
|
21
|
+
A: [
|
|
22
|
+
"client.services.services.IdentityService",
|
|
23
|
+
"'IdentityService not available'"
|
|
24
|
+
]
|
|
25
|
+
});
|
|
26
|
+
yield* Effect.promise(() => client.services.services.IdentityService.recoverIdentity({
|
|
27
|
+
token: data.token
|
|
28
|
+
}, {
|
|
29
|
+
timeout: RECOVER_IDENTITY_RPC_TIMEOUT
|
|
30
|
+
}));
|
|
31
|
+
})));
|
|
32
|
+
var redeem_token_default = handler;
|
|
33
|
+
var RECOVER_IDENTITY_RPC_TIMEOUT = 2e4;
|
|
34
|
+
export {
|
|
35
|
+
redeem_token_default as default
|
|
36
|
+
};
|
|
37
|
+
//# sourceMappingURL=redeem-token-OYXEFDM3.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 { invariant } from '@dxos/invariant';\nimport { Operation } from '@dxos/operation';\n\nimport { RedeemToken } from './definitions';\n\nimport { ClientCapabilities } from '../types';\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;;AAM1B,IAAMC,UAAqDC,YAAYC,KACrEC,UAAUC,YACDC,kBAAW,WAAWC,MAAI;AAC/B,QAAMC,SAAS,OAAOC,WAAWC,IAAIC,mBAAmBC,MAAM;AAC9DC,YAAUL,OAAOM,SAASA,SAASC,iBAAiB,iCAAA;;;;;;;;;AACpD,SAAcC,eAAQ,MACpBR,OAAOM,SAASA,SAASC,gBAAiBE,gBACxC;IAAEC,OAAOX,KAAKW;EAAM,GACpB;IAAEC,SAASC;EAA6B,CAAA,CAAA;AAG9C,CAAA,CAAA,CAAA;AAIJ,IAAA,uBAAenB;AAEf,IAAMmB,+BAA+B;",
|
|
6
|
+
"names": ["Effect", "Capability", "invariant", "Operation", "handler", "RedeemToken", "pipe", "Operation", "withHandler", "fnUntraced", "data", "client", "Capability", "get", "ClientCapabilities", "Client", "invariant", "services", "IdentityService", "promise", "recoverIdentity", "token", "timeout", "RECOVER_IDENTITY_RPC_TIMEOUT"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import {
|
|
2
|
+
RESET_DIALOG
|
|
3
|
+
} from "./chunk-ELAYKIQU.mjs";
|
|
4
|
+
import {
|
|
5
|
+
ResetStorage
|
|
6
|
+
} from "./chunk-M43LJQ5U.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/operation";
|
|
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-JAU4CS2U.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/operation';\n\nimport { ResetStorage } from './definitions';\n\nimport { RESET_DIALOG } from '../constants';\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;AAM1B,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-M43LJQ5U.mjs";
|
|
4
|
+
import {
|
|
5
|
+
Account
|
|
6
|
+
} from "./chunk-WNJRYPGG.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/operation";
|
|
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-H2JNYYCP.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/operation';\nimport { ObservabilityOperation } from '@dxos/plugin-observability/operations';\n\nimport { ShareIdentity } from './definitions';\n\nimport { Account } from '../types';\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;AAMvC,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;MAACC;;EAAoB,CAAA,CAAA;AACxG,SAAcP,eAAQ,MAAMG,cAAcK,eAAc,CAAA;AACxD,SAAO;IAAET;IAAUI;EAAc;AACnC,CAAA;",
|
|
6
|
+
"names": ["Effect", "PERSONAL_SPACE_TAG", "initializeIdentity", "client", "gen", "identity", "promise", "halo", "createIdentity", "personalSpace", "spaces", "create", "tags", "PERSONAL_SPACE_TAG", "waitUntilReady"]
|
|
7
|
+
}
|
|
@@ -2,14 +2,13 @@ import {
|
|
|
2
2
|
Account,
|
|
3
3
|
ClientAction,
|
|
4
4
|
ClientCapabilities,
|
|
5
|
-
ClientEvents
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
ClientEvents
|
|
6
|
+
} from "../chunk-WNJRYPGG.mjs";
|
|
7
|
+
import "../chunk-J5LGTIGS.mjs";
|
|
8
8
|
export {
|
|
9
9
|
Account,
|
|
10
10
|
ClientAction,
|
|
11
11
|
ClientCapabilities,
|
|
12
|
-
ClientEvents
|
|
13
|
-
ClientOperation
|
|
12
|
+
ClientEvents
|
|
14
13
|
};
|
|
15
14
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -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,133 @@
|
|
|
1
|
+
import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
|
|
2
|
+
|
|
3
|
+
// src/types/capabilities.ts
|
|
4
|
+
import { Capability } from "@dxos/app-framework";
|
|
5
|
+
import { meta } from "#meta";
|
|
6
|
+
(function(ClientCapabilities2) {
|
|
7
|
+
ClientCapabilities2.Client = Capability.make(`${meta.id}.capability.client`);
|
|
8
|
+
ClientCapabilities2.Schema = Capability.make(`${meta.id}.capability.schema`);
|
|
9
|
+
ClientCapabilities2.Migration = Capability.make(`${meta.id}.capability.migration`);
|
|
10
|
+
})(ClientCapabilities || (ClientCapabilities = {}));
|
|
11
|
+
var ClientCapabilities;
|
|
12
|
+
|
|
13
|
+
// src/types/events.ts
|
|
14
|
+
import { ActivationEvent } from "@dxos/app-framework";
|
|
15
|
+
import { meta as meta2 } from "#meta";
|
|
16
|
+
(function(ClientEvents2) {
|
|
17
|
+
ClientEvents2.ClientReady = ActivationEvent.make(`${meta2.id}.event.client-ready`);
|
|
18
|
+
ClientEvents2.SetupSchema = ActivationEvent.make(`${meta2.id}.event.setup-schema`);
|
|
19
|
+
ClientEvents2.SetupMigration = ActivationEvent.make(`${meta2.id}.event.setup-migration`);
|
|
20
|
+
ClientEvents2.IdentityCreated = ActivationEvent.make(`${meta2.id}.event.identity-created`);
|
|
21
|
+
ClientEvents2.SpacesReady = ActivationEvent.make(`${meta2.id}.event.spaces-ready`);
|
|
22
|
+
})(ClientEvents || (ClientEvents = {}));
|
|
23
|
+
var ClientEvents;
|
|
24
|
+
|
|
25
|
+
// src/types/schema.ts
|
|
26
|
+
import * as Schema from "effect/Schema";
|
|
27
|
+
import { PublicKey } from "@dxos/client";
|
|
28
|
+
import { meta as meta3 } from "#meta";
|
|
29
|
+
var IdentitySchema = Schema.Struct({
|
|
30
|
+
identityKey: Schema.instanceOf(PublicKey),
|
|
31
|
+
spaceKey: Schema.optional(Schema.instanceOf(PublicKey)),
|
|
32
|
+
profile: Schema.optional(Schema.Struct({
|
|
33
|
+
displayName: Schema.optional(Schema.String),
|
|
34
|
+
avatarCid: Schema.optional(Schema.String),
|
|
35
|
+
data: Schema.optional(Schema.Record({
|
|
36
|
+
key: Schema.String,
|
|
37
|
+
value: Schema.Any
|
|
38
|
+
}))
|
|
39
|
+
}))
|
|
40
|
+
});
|
|
41
|
+
(function(ClientAction2) {
|
|
42
|
+
const ProfileSchema = Schema.Struct({
|
|
43
|
+
displayName: Schema.optional(Schema.String),
|
|
44
|
+
avatarCid: Schema.optional(Schema.String),
|
|
45
|
+
data: Schema.optional(Schema.Record({
|
|
46
|
+
key: Schema.String,
|
|
47
|
+
value: Schema.Any
|
|
48
|
+
}))
|
|
49
|
+
});
|
|
50
|
+
class CreateIdentity extends Schema.TaggedClass()(`${meta3.id}.action.create-identity`, {
|
|
51
|
+
input: ProfileSchema,
|
|
52
|
+
output: IdentitySchema
|
|
53
|
+
}) {
|
|
54
|
+
}
|
|
55
|
+
ClientAction2.CreateIdentity = CreateIdentity;
|
|
56
|
+
class JoinIdentity extends Schema.TaggedClass()(`${meta3.id}.action.join-identity`, {
|
|
57
|
+
input: Schema.Struct({
|
|
58
|
+
invitationCode: Schema.optional(Schema.String)
|
|
59
|
+
}),
|
|
60
|
+
output: Schema.Void
|
|
61
|
+
}) {
|
|
62
|
+
}
|
|
63
|
+
ClientAction2.JoinIdentity = JoinIdentity;
|
|
64
|
+
class ShareIdentity extends Schema.TaggedClass()(`${meta3.id}.action.share-identity`, {
|
|
65
|
+
input: Schema.Void,
|
|
66
|
+
output: Schema.Void
|
|
67
|
+
}) {
|
|
68
|
+
}
|
|
69
|
+
ClientAction2.ShareIdentity = ShareIdentity;
|
|
70
|
+
class RecoverIdentity extends Schema.TaggedClass()(`${meta3.id}.action.recover-identity`, {
|
|
71
|
+
input: Schema.Void,
|
|
72
|
+
output: Schema.Void
|
|
73
|
+
}) {
|
|
74
|
+
}
|
|
75
|
+
ClientAction2.RecoverIdentity = RecoverIdentity;
|
|
76
|
+
class ResetStorage extends Schema.TaggedClass()(`${meta3.id}.action.reset-storage`, {
|
|
77
|
+
input: Schema.Struct({
|
|
78
|
+
mode: Schema.optional(Schema.String)
|
|
79
|
+
}),
|
|
80
|
+
output: Schema.Void
|
|
81
|
+
}) {
|
|
82
|
+
}
|
|
83
|
+
ClientAction2.ResetStorage = ResetStorage;
|
|
84
|
+
class CreateAgent extends Schema.TaggedClass()(`${meta3.id}.action.create-agent`, {
|
|
85
|
+
input: Schema.Void,
|
|
86
|
+
output: Schema.Void
|
|
87
|
+
}) {
|
|
88
|
+
}
|
|
89
|
+
ClientAction2.CreateAgent = CreateAgent;
|
|
90
|
+
class CreateRecoveryCode extends Schema.TaggedClass()(`${meta3.id}.action.create-recovery-code`, {
|
|
91
|
+
input: Schema.Void,
|
|
92
|
+
output: Schema.Void
|
|
93
|
+
}) {
|
|
94
|
+
}
|
|
95
|
+
ClientAction2.CreateRecoveryCode = CreateRecoveryCode;
|
|
96
|
+
class CreatePasskey extends Schema.TaggedClass()(`${meta3.id}.action.create-passkey`, {
|
|
97
|
+
input: Schema.Void,
|
|
98
|
+
output: Schema.Void
|
|
99
|
+
}) {
|
|
100
|
+
}
|
|
101
|
+
ClientAction2.CreatePasskey = CreatePasskey;
|
|
102
|
+
class RedeemPasskey extends Schema.TaggedClass()(`${meta3.id}.action.redeem-passkey`, {
|
|
103
|
+
input: Schema.Void,
|
|
104
|
+
output: Schema.Void
|
|
105
|
+
}) {
|
|
106
|
+
}
|
|
107
|
+
ClientAction2.RedeemPasskey = RedeemPasskey;
|
|
108
|
+
class RedeemToken extends Schema.TaggedClass()(`${meta3.id}.action.redeem-token`, {
|
|
109
|
+
input: Schema.Struct({
|
|
110
|
+
token: Schema.String
|
|
111
|
+
}),
|
|
112
|
+
output: Schema.Void
|
|
113
|
+
}) {
|
|
114
|
+
}
|
|
115
|
+
ClientAction2.RedeemToken = RedeemToken;
|
|
116
|
+
})(ClientAction || (ClientAction = {}));
|
|
117
|
+
(function(Account2) {
|
|
118
|
+
const _id = "dxos.org.plugin.client.account";
|
|
119
|
+
Account2.id = `!${_id}`;
|
|
120
|
+
Account2.Profile = `${_id}.profile`;
|
|
121
|
+
Account2.Devices = `${_id}.devices`;
|
|
122
|
+
Account2.Security = `${_id}.security`;
|
|
123
|
+
})(Account || (Account = {}));
|
|
124
|
+
var ClientAction;
|
|
125
|
+
var Account;
|
|
126
|
+
|
|
127
|
+
export {
|
|
128
|
+
ClientCapabilities,
|
|
129
|
+
ClientEvents,
|
|
130
|
+
ClientAction,
|
|
131
|
+
Account
|
|
132
|
+
};
|
|
133
|
+
//# sourceMappingURL=chunk-IT5LAIV3.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/types/capabilities.ts", "../../../src/types/events.ts", "../../../src/types/schema.ts"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport { Capability } from '@dxos/app-framework';\nimport { type Client } from '@dxos/client';\nimport { type ObjectMigration } from '@dxos/client/echo';\nimport { type Type } from '@dxos/echo';\n\nimport { meta } from '#meta';\n\nexport namespace ClientCapabilities {\n export const Client = Capability.make<Client>(`${meta.id}.capability.client`);\n export const Schema = Capability.make<Type.AnyEntity[]>(`${meta.id}.capability.schema`);\n export const Migration = Capability.make<ObjectMigration[]>(`${meta.id}.capability.migration`);\n}\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport { ActivationEvent } from '@dxos/app-framework';\n\nimport { meta } from '#meta';\n\nexport namespace ClientEvents {\n export const ClientReady = ActivationEvent.make(`${meta.id}.event.client-ready`);\n export const SetupSchema = ActivationEvent.make(`${meta.id}.event.setup-schema`);\n export const SetupMigration = ActivationEvent.make(`${meta.id}.event.setup-migration`);\n export const IdentityCreated = ActivationEvent.make(`${meta.id}.event.identity-created`);\n export const SpacesReady = ActivationEvent.make(`${meta.id}.event.spaces-ready`);\n}\n", "//\n// Copyright 2024 DXOS.org\n//\n\nimport type * as Effect from 'effect/Effect';\nimport * as Schema from 'effect/Schema';\n\nimport { Capability } from '@dxos/app-framework';\nimport { type Client, type ClientOptions, PublicKey } from '@dxos/client';\n\nimport { meta } from '#meta';\n\n// TODO(wittjosiah): Factor out. Generate?\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\nexport namespace ClientAction {\n const 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\n export class CreateIdentity extends Schema.TaggedClass<CreateIdentity>()(`${meta.id}.action.create-identity`, {\n input: ProfileSchema,\n output: IdentitySchema,\n }) {}\n\n export class JoinIdentity extends Schema.TaggedClass<JoinIdentity>()(`${meta.id}.action.join-identity`, {\n input: Schema.Struct({\n invitationCode: Schema.optional(Schema.String),\n }),\n output: Schema.Void,\n }) {}\n\n export class ShareIdentity extends Schema.TaggedClass<ShareIdentity>()(`${meta.id}.action.share-identity`, {\n input: Schema.Void,\n output: Schema.Void,\n }) {}\n\n export class RecoverIdentity extends Schema.TaggedClass<RecoverIdentity>()(`${meta.id}.action.recover-identity`, {\n input: Schema.Void,\n output: Schema.Void,\n }) {}\n\n export class ResetStorage extends Schema.TaggedClass<ResetStorage>()(`${meta.id}.action.reset-storage`, {\n input: Schema.Struct({\n mode: Schema.optional(Schema.String),\n }),\n output: Schema.Void,\n }) {}\n\n export class CreateAgent extends Schema.TaggedClass<CreateAgent>()(`${meta.id}.action.create-agent`, {\n input: Schema.Void,\n output: Schema.Void,\n }) {}\n\n export class CreateRecoveryCode extends Schema.TaggedClass<CreateRecoveryCode>()(\n `${meta.id}.action.create-recovery-code`,\n {\n input: Schema.Void,\n output: Schema.Void,\n },\n ) {}\n\n export class CreatePasskey extends Schema.TaggedClass<CreatePasskey>()(`${meta.id}.action.create-passkey`, {\n input: Schema.Void,\n output: Schema.Void,\n }) {}\n\n export class RedeemPasskey extends Schema.TaggedClass<RedeemPasskey>()(`${meta.id}.action.redeem-passkey`, {\n input: Schema.Void,\n output: Schema.Void,\n }) {}\n\n export class RedeemToken extends Schema.TaggedClass<RedeemToken>()(`${meta.id}.action.redeem-token`, {\n input: Schema.Struct({\n token: Schema.String,\n }),\n output: Schema.Void,\n }) {}\n}\n\nexport type ClientPluginOptions = ClientOptions & {\n /**\n * Base origin for the invitation link.\n */\n shareableLinkOrigin?: string;\n\n /**\n * Path for the invitation link.\n */\n invitationPath?: string;\n\n /**\n * Query parameter for the invitation code.\n */\n invitationProp?: string;\n\n /**\n * Run after the client has been initialized.\n * Plugin context is provided so capabilities are accessible.\n */\n onClientInitialized?: (params: { client: Client }) => Effect.Effect<void, Error | never, Capability.Service | never>;\n\n /**\n * Called when spaces are ready.\n * Plugin context is provided so capabilities are accessible.\n */\n onSpacesReady?: (params: { client: Client }) => Effect.Effect<void, Error | never, Capability.Service | never>;\n\n /**\n * Called when the client is reset.\n * Plugin context is provided so capabilities are accessible.\n */\n onReset?: (params: { target?: string }) => Effect.Effect<void, Error | never, Capability.Service | never>;\n};\n\nexport namespace Account {\n // TODO(wittjosiah): Cannot use slashes in ids until we have a router which decouples ids from url paths.\n const _id = 'dxos.org.plugin.client.account';\n // TODO(wittjosiah): This is a hack to prevent the previous deck from being set for pinned items.\n // Ideally this should be worked into the data model in a generic way.\n export const id = `!${_id}`;\n\n export const Profile = `${_id}.profile`;\n export const Devices = `${_id}.devices`;\n export const Security = `${_id}.security`;\n}\n"],
|
|
5
|
+
"mappings": "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",
|
|
6
|
+
"names": ["Capability", "meta", "ClientCapabilities", "Client", "Capability", "make", "meta", "id", "Schema", "Migration", "ActivationEvent", "meta", "ClientEvents", "ClientReady", "ActivationEvent", "make", "meta", "id", "SetupSchema", "SetupMigration", "IdentityCreated", "SpacesReady", "Schema", "PublicKey", "meta", "IdentitySchema", "Struct", "identityKey", "instanceOf", "PublicKey", "spaceKey", "optional", "profile", "displayName", "String", "avatarCid", "data", "Record", "key", "value", "Any", "ClientAction", "ProfileSchema", "CreateIdentity", "TaggedClass", "meta", "id", "input", "output", "JoinIdentity", "invitationCode", "Void", "ShareIdentity", "RecoverIdentity", "ResetStorage", "mode", "CreateAgent", "CreateRecoveryCode", "CreatePasskey", "RedeemPasskey", "RedeemToken", "token", "Account", "_id", "Profile", "Devices", "Security"]
|
|
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-J5RWSQT6.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,GAAGC,KAAKC,EAAE;AAC9B,IAAMC,uBAAuB,GAAGF,KAAKC,EAAE;AACvC,IAAME,eAAe,GAAGH,KAAKC,EAAE;",
|
|
6
|
+
"names": ["meta", "JOIN_DIALOG", "meta", "id", "RECOVERY_CODE_DIALOG", "RESET_DIALOG"]
|
|
7
|
+
}
|