@dxos/plugin-client 0.8.4-main.c85a9c8dae → 0.8.4-main.d05673bc65
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/{DevicesContainer-46MEG3F5.mjs → DevicesContainer-3N7ANEJ7.mjs} +3 -3
- package/dist/lib/browser/{JoinDialog-2RCYK4O5.mjs → JoinDialog-VTTK7NHO.mjs} +3 -3
- package/dist/lib/browser/{ProfileContainer-XYRCOQ5I.mjs → ProfileContainer-XV7OXJC2.mjs} +2 -2
- package/dist/lib/browser/{RecoveryCodeDialog-EX2CLFND.mjs → RecoveryCodeDialog-WO34OZEJ.mjs} +2 -2
- package/dist/lib/browser/{RecoveryCredentialsContainer-RWTEIHOB.mjs → RecoveryCredentialsContainer-G22FSTIX.mjs} +4 -4
- package/dist/lib/browser/{RecoveryCredentialsContainer-RWTEIHOB.mjs.map → RecoveryCredentialsContainer-G22FSTIX.mjs.map} +1 -1
- package/dist/lib/browser/{app-graph-builder-QJWFLYZE.mjs → app-graph-builder-GGJKFY3X.mjs} +4 -4
- package/dist/lib/browser/{app-graph-builder-QJWFLYZE.mjs.map → app-graph-builder-GGJKFY3X.mjs.map} +1 -1
- package/dist/lib/browser/{chunk-DPAXDXMK.mjs → chunk-FVEKZBM7.mjs} +31 -31
- package/dist/lib/browser/{chunk-DPAXDXMK.mjs.map → chunk-FVEKZBM7.mjs.map} +1 -1
- package/dist/lib/browser/{chunk-4XYOOXAH.mjs → chunk-GSVYEYVS.mjs} +4 -4
- package/dist/lib/browser/chunk-HSFDKP5D.mjs +15 -0
- package/dist/lib/browser/{chunk-VYX3ROUX.mjs.map → chunk-HSFDKP5D.mjs.map} +1 -1
- package/dist/lib/browser/{chunk-N2GMSVDQ.mjs → chunk-JHSBBOCI.mjs} +2 -2
- package/dist/lib/browser/{chunk-N2GMSVDQ.mjs.map → chunk-JHSBBOCI.mjs.map} +1 -1
- package/dist/lib/browser/cli/index.mjs +35 -27
- package/dist/lib/browser/cli/index.mjs.map +3 -3
- package/dist/lib/browser/{client-Z25GQ5YC.mjs → client-BXCP3EUE.mjs} +3 -3
- package/dist/lib/browser/index.mjs +7 -7
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/{migrations-HLHRMOW6.mjs → migrations-GKUA2ARL.mjs} +3 -3
- package/dist/lib/browser/{operation-resolver-6QW3BKA5.mjs → operation-resolver-VSWA74RS.mjs} +14 -14
- package/dist/lib/browser/operation-resolver-VSWA74RS.mjs.map +7 -0
- package/dist/lib/browser/{react-context-E7TAJMDK.mjs → react-context-GZ3T5UON.mjs} +3 -3
- package/dist/lib/browser/{react-surface-L5A2LBFE.mjs → react-surface-5VZP34X3.mjs} +9 -9
- package/dist/lib/browser/{schema-defs-5WDZWVEI.mjs → schema-defs-KAG6HQMI.mjs} +3 -3
- package/dist/lib/browser/types/index.mjs +2 -2
- package/dist/lib/node-esm/{DevicesContainer-WQ3DQA45.mjs → DevicesContainer-V7HEUPO7.mjs} +3 -3
- package/dist/lib/node-esm/{JoinDialog-KLTNJY5F.mjs → JoinDialog-XVKW4SLT.mjs} +3 -3
- package/dist/lib/node-esm/{ProfileContainer-XI425QK5.mjs → ProfileContainer-B5LJ6TMU.mjs} +2 -2
- package/dist/lib/node-esm/{RecoveryCodeDialog-AISRNJUM.mjs → RecoveryCodeDialog-YIRGXM7N.mjs} +2 -2
- package/dist/lib/node-esm/{RecoveryCredentialsContainer-3TKQRPQK.mjs → RecoveryCredentialsContainer-MVJEFNXX.mjs} +4 -4
- package/dist/lib/node-esm/{RecoveryCredentialsContainer-3TKQRPQK.mjs.map → RecoveryCredentialsContainer-MVJEFNXX.mjs.map} +1 -1
- package/dist/lib/node-esm/{app-graph-builder-6JD6BZAI.mjs → app-graph-builder-PTNZ46NN.mjs} +4 -4
- package/dist/lib/node-esm/{app-graph-builder-6JD6BZAI.mjs.map → app-graph-builder-PTNZ46NN.mjs.map} +1 -1
- package/dist/lib/node-esm/{chunk-RGULICLJ.mjs → chunk-BOTJSPCT.mjs} +2 -2
- package/dist/lib/node-esm/{chunk-RGULICLJ.mjs.map → chunk-BOTJSPCT.mjs.map} +1 -1
- package/dist/lib/node-esm/{chunk-VEUNEDN5.mjs → chunk-DT2ZNOGU.mjs} +31 -31
- package/dist/lib/node-esm/{chunk-VEUNEDN5.mjs.map → chunk-DT2ZNOGU.mjs.map} +1 -1
- package/dist/lib/node-esm/{chunk-H2CCMM4Z.mjs → chunk-OFJUOKY7.mjs} +4 -4
- package/dist/lib/node-esm/chunk-VLNCZYIC.mjs +16 -0
- package/dist/lib/node-esm/{chunk-HKSNTZF5.mjs.map → chunk-VLNCZYIC.mjs.map} +1 -1
- package/dist/lib/node-esm/cli/index.mjs +35 -27
- package/dist/lib/node-esm/cli/index.mjs.map +3 -3
- package/dist/lib/node-esm/{client-5AIPYSBT.mjs → client-EGZHGRRC.mjs} +3 -3
- package/dist/lib/node-esm/index.mjs +7 -7
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/lib/node-esm/{migrations-O5KG2GGN.mjs → migrations-4NEKCBGU.mjs} +3 -3
- package/dist/lib/node-esm/{operation-resolver-GSH7AOTZ.mjs → operation-resolver-4GWB3YZG.mjs} +14 -14
- package/dist/lib/node-esm/operation-resolver-4GWB3YZG.mjs.map +7 -0
- package/dist/lib/node-esm/{react-context-OMJSBS23.mjs → react-context-T2ORT5CC.mjs} +3 -3
- package/dist/lib/node-esm/{react-surface-N3BSPMMX.mjs → react-surface-B65OUZYI.mjs} +9 -9
- package/dist/lib/node-esm/{schema-defs-ENOYSDP3.mjs → schema-defs-GXQ47JZN.mjs} +3 -3
- package/dist/lib/node-esm/types/index.mjs +2 -2
- package/dist/types/src/capabilities/operation-resolver/operation-resolver.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/containers/DevicesContainer/DevicesContainer.stories.d.ts +1 -1
- package/dist/types/src/types/schema.d.ts +30 -30
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +28 -28
- package/src/capabilities/app-graph-builder/app-graph-builder.ts +1 -1
- package/src/capabilities/operation-resolver/operation-resolver.ts +5 -3
- 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 +13 -11
- package/src/constants.ts +3 -3
- package/src/containers/RecoveryCredentialsContainer/RecoveryCredentialsContainer.tsx +1 -1
- package/src/meta.ts +1 -1
- package/src/types/capabilities.ts +3 -3
- package/src/types/events.ts +5 -5
- package/src/types/schema.ts +21 -21
- package/dist/lib/browser/chunk-VYX3ROUX.mjs +0 -15
- package/dist/lib/browser/operation-resolver-6QW3BKA5.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-HKSNTZF5.mjs +0 -16
- package/dist/lib/node-esm/operation-resolver-GSH7AOTZ.mjs.map +0 -7
- /package/dist/lib/browser/{DevicesContainer-46MEG3F5.mjs.map → DevicesContainer-3N7ANEJ7.mjs.map} +0 -0
- /package/dist/lib/browser/{JoinDialog-2RCYK4O5.mjs.map → JoinDialog-VTTK7NHO.mjs.map} +0 -0
- /package/dist/lib/browser/{ProfileContainer-XYRCOQ5I.mjs.map → ProfileContainer-XV7OXJC2.mjs.map} +0 -0
- /package/dist/lib/browser/{RecoveryCodeDialog-EX2CLFND.mjs.map → RecoveryCodeDialog-WO34OZEJ.mjs.map} +0 -0
- /package/dist/lib/browser/{chunk-4XYOOXAH.mjs.map → chunk-GSVYEYVS.mjs.map} +0 -0
- /package/dist/lib/browser/{client-Z25GQ5YC.mjs.map → client-BXCP3EUE.mjs.map} +0 -0
- /package/dist/lib/browser/{migrations-HLHRMOW6.mjs.map → migrations-GKUA2ARL.mjs.map} +0 -0
- /package/dist/lib/browser/{react-context-E7TAJMDK.mjs.map → react-context-GZ3T5UON.mjs.map} +0 -0
- /package/dist/lib/browser/{react-surface-L5A2LBFE.mjs.map → react-surface-5VZP34X3.mjs.map} +0 -0
- /package/dist/lib/browser/{schema-defs-5WDZWVEI.mjs.map → schema-defs-KAG6HQMI.mjs.map} +0 -0
- /package/dist/lib/node-esm/{DevicesContainer-WQ3DQA45.mjs.map → DevicesContainer-V7HEUPO7.mjs.map} +0 -0
- /package/dist/lib/node-esm/{JoinDialog-KLTNJY5F.mjs.map → JoinDialog-XVKW4SLT.mjs.map} +0 -0
- /package/dist/lib/node-esm/{ProfileContainer-XI425QK5.mjs.map → ProfileContainer-B5LJ6TMU.mjs.map} +0 -0
- /package/dist/lib/node-esm/{RecoveryCodeDialog-AISRNJUM.mjs.map → RecoveryCodeDialog-YIRGXM7N.mjs.map} +0 -0
- /package/dist/lib/node-esm/{chunk-H2CCMM4Z.mjs.map → chunk-OFJUOKY7.mjs.map} +0 -0
- /package/dist/lib/node-esm/{client-5AIPYSBT.mjs.map → client-EGZHGRRC.mjs.map} +0 -0
- /package/dist/lib/node-esm/{migrations-O5KG2GGN.mjs.map → migrations-4NEKCBGU.mjs.map} +0 -0
- /package/dist/lib/node-esm/{react-context-OMJSBS23.mjs.map → react-context-T2ORT5CC.mjs.map} +0 -0
- /package/dist/lib/node-esm/{react-surface-N3BSPMMX.mjs.map → react-surface-B65OUZYI.mjs.map} +0 -0
- /package/dist/lib/node-esm/{schema-defs-ENOYSDP3.mjs.map → schema-defs-GXQ47JZN.mjs.map} +0 -0
package/dist/lib/node-esm/{operation-resolver-GSH7AOTZ.mjs → operation-resolver-4GWB3YZG.mjs}
RENAMED
|
@@ -3,19 +3,19 @@ import {
|
|
|
3
3
|
JOIN_DIALOG,
|
|
4
4
|
RECOVERY_CODE_DIALOG,
|
|
5
5
|
RESET_DIALOG
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-VLNCZYIC.mjs";
|
|
7
7
|
import {
|
|
8
8
|
Account,
|
|
9
9
|
ClientCapabilities,
|
|
10
10
|
ClientEvents,
|
|
11
11
|
ClientOperation
|
|
12
|
-
} from "./chunk-
|
|
13
|
-
import "./chunk-
|
|
12
|
+
} from "./chunk-DT2ZNOGU.mjs";
|
|
13
|
+
import "./chunk-BOTJSPCT.mjs";
|
|
14
14
|
|
|
15
15
|
// src/capabilities/operation-resolver/operation-resolver.ts
|
|
16
16
|
import * as Effect from "effect/Effect";
|
|
17
17
|
import { Capabilities, Capability } from "@dxos/app-framework";
|
|
18
|
-
import { LayoutOperation } from "@dxos/app-toolkit";
|
|
18
|
+
import { LayoutOperation, getSpacePath } from "@dxos/app-toolkit";
|
|
19
19
|
import { PublicKey } from "@dxos/client";
|
|
20
20
|
import { runAndForwardErrors } from "@dxos/effect";
|
|
21
21
|
import { invariant } from "@dxos/invariant";
|
|
@@ -65,11 +65,11 @@ var operation_resolver_default = Capability.makeModule(Effect.fnUntraced(functio
|
|
|
65
65
|
operation: ClientOperation.ShareIdentity,
|
|
66
66
|
handler: Effect.fnUntraced(function* () {
|
|
67
67
|
yield* Operation.invoke(LayoutOperation.SwitchWorkspace, {
|
|
68
|
-
subject: Account.id
|
|
68
|
+
subject: getSpacePath(Account.id)
|
|
69
69
|
});
|
|
70
70
|
yield* Operation.invoke(LayoutOperation.Open, {
|
|
71
71
|
subject: [
|
|
72
|
-
Account.Profile
|
|
72
|
+
`${getSpacePath(Account.id)}/${Account.Profile}`
|
|
73
73
|
]
|
|
74
74
|
});
|
|
75
75
|
yield* Operation.schedule(ObservabilityOperation.SendEvent, {
|
|
@@ -116,7 +116,7 @@ var operation_resolver_default = Capability.makeModule(Effect.fnUntraced(functio
|
|
|
116
116
|
const client = yield* Capability.get(ClientCapabilities.Client);
|
|
117
117
|
invariant(client.services.services.EdgeAgentService, "Missing EdgeAgentService", {
|
|
118
118
|
F: __dxlog_file,
|
|
119
|
-
L:
|
|
119
|
+
L: 115,
|
|
120
120
|
S: this,
|
|
121
121
|
A: [
|
|
122
122
|
"client.services.services.EdgeAgentService",
|
|
@@ -137,7 +137,7 @@ var operation_resolver_default = Capability.makeModule(Effect.fnUntraced(functio
|
|
|
137
137
|
const client = yield* Capability.get(ClientCapabilities.Client);
|
|
138
138
|
invariant(client.services.services.IdentityService, "IdentityService not available", {
|
|
139
139
|
F: __dxlog_file,
|
|
140
|
-
L:
|
|
140
|
+
L: 129,
|
|
141
141
|
S: this,
|
|
142
142
|
A: [
|
|
143
143
|
"client.services.services.IdentityService",
|
|
@@ -165,7 +165,7 @@ var operation_resolver_default = Capability.makeModule(Effect.fnUntraced(functio
|
|
|
165
165
|
const identity = client.halo.identity.get();
|
|
166
166
|
invariant(identity, "Identity not available", {
|
|
167
167
|
F: __dxlog_file,
|
|
168
|
-
L:
|
|
168
|
+
L: 150,
|
|
169
169
|
S: this,
|
|
170
170
|
A: [
|
|
171
171
|
"identity",
|
|
@@ -203,7 +203,7 @@ var operation_resolver_default = Capability.makeModule(Effect.fnUntraced(functio
|
|
|
203
203
|
}));
|
|
204
204
|
invariant(credential, "Credential not available", {
|
|
205
205
|
F: __dxlog_file,
|
|
206
|
-
L:
|
|
206
|
+
L: 175,
|
|
207
207
|
S: this,
|
|
208
208
|
A: [
|
|
209
209
|
"credential",
|
|
@@ -214,7 +214,7 @@ var operation_resolver_default = Capability.makeModule(Effect.fnUntraced(functio
|
|
|
214
214
|
const algorithm = credential.response.getPublicKeyAlgorithm() === -7 ? "ES256" : "ED25519";
|
|
215
215
|
invariant(client.services.services.IdentityService, "IdentityService not available", {
|
|
216
216
|
F: __dxlog_file,
|
|
217
|
-
L:
|
|
217
|
+
L: 179,
|
|
218
218
|
S: this,
|
|
219
219
|
A: [
|
|
220
220
|
"client.services.services.IdentityService",
|
|
@@ -239,7 +239,7 @@ var operation_resolver_default = Capability.makeModule(Effect.fnUntraced(functio
|
|
|
239
239
|
const client = yield* Capability.get(ClientCapabilities.Client);
|
|
240
240
|
invariant(client.services.services.IdentityService, "IdentityService not available", {
|
|
241
241
|
F: __dxlog_file,
|
|
242
|
-
L:
|
|
242
|
+
L: 199,
|
|
243
243
|
S: this,
|
|
244
244
|
A: [
|
|
245
245
|
"client.services.services.IdentityService",
|
|
@@ -278,7 +278,7 @@ var operation_resolver_default = Capability.makeModule(Effect.fnUntraced(functio
|
|
|
278
278
|
const client = yield* Capability.get(ClientCapabilities.Client);
|
|
279
279
|
invariant(client.services.services.IdentityService, "IdentityService not available", {
|
|
280
280
|
F: __dxlog_file,
|
|
281
|
-
L:
|
|
281
|
+
L: 238,
|
|
282
282
|
S: this,
|
|
283
283
|
A: [
|
|
284
284
|
"client.services.services.IdentityService",
|
|
@@ -297,4 +297,4 @@ var operation_resolver_default = Capability.makeModule(Effect.fnUntraced(functio
|
|
|
297
297
|
export {
|
|
298
298
|
operation_resolver_default as default
|
|
299
299
|
};
|
|
300
|
-
//# sourceMappingURL=operation-resolver-
|
|
300
|
+
//# sourceMappingURL=operation-resolver-4GWB3YZG.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/capabilities/operation-resolver/operation-resolver.ts"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\n\nimport { Capabilities, Capability } from '@dxos/app-framework';\nimport { LayoutOperation, getSpacePath } from '@dxos/app-toolkit';\nimport { PublicKey } from '@dxos/client';\nimport { runAndForwardErrors } from '@dxos/effect';\nimport { invariant } from '@dxos/invariant';\nimport { OperationResolver } from '@dxos/operation';\nimport { Operation } from '@dxos/operation';\nimport { ObservabilityOperation } from '@dxos/plugin-observability/types';\nimport { type JoinPanelProps } from '@dxos/shell/react';\n\nimport { JOIN_DIALOG, RECOVERY_CODE_DIALOG, RESET_DIALOG } from '../../constants';\nimport { ClientEvents } from '../../types';\nimport { Account, ClientCapabilities, ClientOperation } from '../../types';\n\ntype OperationResolverOptions = {\n appName?: string;\n};\n\nconst RECOVER_IDENTITY_RPC_TIMEOUT = 20_000;\n\nexport default Capability.makeModule(\n Effect.fnUntraced(function* ({ appName = 'Composer' }: OperationResolverOptions = {}) {\n return Capability.contributes(Capabilities.OperationResolver, [\n //\n // CreateIdentity\n //\n OperationResolver.make({\n operation: ClientOperation.CreateIdentity,\n handler: Effect.fnUntraced(function* (profile) {\n const manager = yield* Capability.get(Capabilities.PluginManager);\n const client = yield* Capability.get(ClientCapabilities.Client);\n const data = yield* Effect.promise(() => client.halo.createIdentity(profile));\n yield* Effect.promise(() => runAndForwardErrors(manager.activate(ClientEvents.IdentityCreated)));\n yield* Operation.schedule(ObservabilityOperation.SendEvent, { name: 'identity.create' });\n return data;\n }),\n }),\n\n //\n // JoinIdentity\n //\n OperationResolver.make({\n operation: ClientOperation.JoinIdentity,\n handler: Effect.fnUntraced(function* (data) {\n yield* Operation.invoke(LayoutOperation.UpdateDialog, {\n subject: JOIN_DIALOG,\n blockAlign: 'start',\n props: {\n initialInvitationCode: data.invitationCode,\n initialDisposition: 'accept-halo-invitation',\n },\n });\n }),\n }),\n\n //\n // ShareIdentity\n //\n OperationResolver.make({\n operation: ClientOperation.ShareIdentity,\n handler: 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 //\n // RecoverIdentity\n //\n OperationResolver.make({\n operation: ClientOperation.RecoverIdentity,\n handler: Effect.fnUntraced(function* () {\n yield* Operation.invoke(LayoutOperation.UpdateDialog, {\n subject: JOIN_DIALOG,\n blockAlign: 'start',\n props: {\n initialDisposition: 'recover-identity',\n } satisfies Partial<JoinPanelProps>,\n });\n }),\n }),\n\n //\n // ResetStorage\n //\n OperationResolver.make({\n operation: ClientOperation.ResetStorage,\n handler: 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 //\n // CreateAgent\n //\n OperationResolver.make({\n operation: ClientOperation.CreateAgent,\n handler: Effect.fnUntraced(function* () {\n const client = yield* Capability.get(ClientCapabilities.Client);\n invariant(client.services.services.EdgeAgentService, 'Missing EdgeAgentService');\n yield* Effect.promise(() =>\n client.services.services.EdgeAgentService!.createAgent(undefined, { timeout: 10_000 }),\n );\n }),\n }),\n\n //\n // CreateRecoveryCode\n //\n OperationResolver.make({\n operation: ClientOperation.CreateRecoveryCode,\n handler: Effect.fnUntraced(function* () {\n const client = yield* Capability.get(ClientCapabilities.Client);\n invariant(client.services.services.IdentityService, 'IdentityService not available');\n const { recoveryCode } = yield* Effect.promise(() =>\n client.services.services.IdentityService!.createRecoveryCredential({}),\n );\n yield* Operation.invoke(LayoutOperation.UpdateDialog, {\n subject: RECOVERY_CODE_DIALOG,\n blockAlign: 'start',\n type: 'alert',\n props: { code: recoveryCode },\n });\n }),\n }),\n\n //\n // CreatePasskey\n //\n OperationResolver.make({\n operation: ClientOperation.CreatePasskey,\n handler: Effect.fnUntraced(function* () {\n const client = yield* Capability.get(ClientCapabilities.Client);\n const identity = client.halo.identity.get();\n invariant(identity, 'Identity not available');\n\n const lookupKey = PublicKey.random();\n const credential = yield* Effect.promise(() =>\n navigator.credentials.create({\n publicKey: {\n challenge: new Uint8Array(),\n rp: { id: location.hostname, name: appName },\n user: {\n id: lookupKey.asUint8Array() as Uint8Array<ArrayBuffer>,\n name: identity.did,\n displayName: identity.profile?.displayName ?? '',\n },\n pubKeyCredParams: [\n { type: 'public-key', alg: -8 }, // Ed25519 (not yet supported across all browsers)\n { type: 'public-key', alg: -7 }, // ES256\n ],\n authenticatorSelection: {\n residentKey: 'required',\n requireResidentKey: true,\n },\n },\n }),\n );\n\n invariant(credential, 'Credential not available');\n const recoveryKey = PublicKey.from(new Uint8Array((credential as any).response.getPublicKey()));\n const algorithm = (credential as any).response.getPublicKeyAlgorithm() === -7 ? 'ES256' : 'ED25519';\n\n invariant(client.services.services.IdentityService, 'IdentityService not available');\n yield* Effect.promise(() =>\n client.services.services.IdentityService!.createRecoveryCredential({\n data: {\n recoveryKey,\n algorithm,\n lookupKey,\n },\n }),\n );\n }),\n }),\n\n //\n // RedeemPasskey\n //\n OperationResolver.make({\n operation: ClientOperation.RedeemPasskey,\n handler: 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 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 const lookupKey = PublicKey.from(new Uint8Array((credential as any).response.userHandle));\n yield* Effect.promise(() =>\n client.services.services.IdentityService!.recoverIdentity(\n {\n external: {\n lookupKey,\n deviceKey,\n controlFeedKey,\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 { timeout: RECOVER_IDENTITY_RPC_TIMEOUT },\n ),\n );\n }),\n }),\n\n //\n // RedeemToken\n //\n OperationResolver.make({\n operation: ClientOperation.RedeemToken,\n handler: 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 }),\n);\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;AAIA,YAAYA,YA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AmBC,MAAM;AAC9DqC,kBAAUvC,OAAOwC,SAASA,SAASM,iBAAiB,iCAAA;;;;;;;;;AACpD,eAAc1C,eAAQ,MACpBJ,OAAOwC,SAASA,SAASM,gBAAiB4C,gBACxC;UAAEO,OAAO9F,KAAK8F;QAAM,GACpB;UAAErD,SAAS7D;QAA6B,CAAA,CAAA;MAG9C,CAAA;IACF,CAAA;GACD;AACH,CAAA,CAAA;",
|
|
6
|
+
"names": ["Effect", "Capabilities", "Capability", "LayoutOperation", "getSpacePath", "PublicKey", "runAndForwardErrors", "invariant", "OperationResolver", "Operation", "ObservabilityOperation", "RECOVER_IDENTITY_RPC_TIMEOUT", "Capability", "makeModule", "fnUntraced", "appName", "contributes", "Capabilities", "OperationResolver", "make", "operation", "ClientOperation", "CreateIdentity", "handler", "profile", "manager", "get", "PluginManager", "client", "ClientCapabilities", "Client", "data", "promise", "halo", "createIdentity", "runAndForwardErrors", "activate", "ClientEvents", "IdentityCreated", "Operation", "schedule", "ObservabilityOperation", "SendEvent", "name", "JoinIdentity", "invoke", "LayoutOperation", "UpdateDialog", "subject", "JOIN_DIALOG", "blockAlign", "props", "initialInvitationCode", "invitationCode", "initialDisposition", "ShareIdentity", "SwitchWorkspace", "getSpacePath", "Account", "id", "Open", "Profile", "RecoverIdentity", "ResetStorage", "RESET_DIALOG", "mode", "CreateAgent", "invariant", "services", "EdgeAgentService", "createAgent", "undefined", "timeout", "CreateRecoveryCode", "IdentityService", "recoveryCode", "createRecoveryCredential", "RECOVERY_CODE_DIALOG", "type", "code", "CreatePasskey", "identity", "lookupKey", "PublicKey", "random", "credential", "navigator", "credentials", "create", "publicKey", "challenge", "Uint8Array", "rp", "location", "hostname", "user", "asUint8Array", "did", "displayName", "pubKeyCredParams", "alg", "authenticatorSelection", "residentKey", "requireResidentKey", "recoveryKey", "from", "response", "getPublicKey", "algorithm", "getPublicKeyAlgorithm", "RedeemPasskey", "deviceKey", "controlFeedKey", "requestRecoveryChallenge", "Buffer", "rpId", "userVerification", "userHandle", "recoverIdentity", "external", "signature", "clientDataJson", "clientDataJSON", "authenticatorData", "RedeemToken", "token"]
|
|
7
|
+
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
ClientCapabilities
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-DT2ZNOGU.mjs";
|
|
5
5
|
import {
|
|
6
6
|
meta
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-BOTJSPCT.mjs";
|
|
8
8
|
|
|
9
9
|
// src/capabilities/react-context/react-context.tsx
|
|
10
10
|
import * as Effect from "effect/Effect";
|
|
@@ -24,4 +24,4 @@ var react_context_default = Capability.makeModule(() => Effect.succeed(Capabilit
|
|
|
24
24
|
export {
|
|
25
25
|
react_context_default as default
|
|
26
26
|
};
|
|
27
|
-
//# sourceMappingURL=react-context-
|
|
27
|
+
//# sourceMappingURL=react-context-T2ORT5CC.mjs.map
|
|
@@ -3,11 +3,11 @@ import {
|
|
|
3
3
|
JOIN_DIALOG,
|
|
4
4
|
RECOVERY_CODE_DIALOG,
|
|
5
5
|
RESET_DIALOG
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-VLNCZYIC.mjs";
|
|
7
7
|
import {
|
|
8
8
|
Account
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
9
|
+
} from "./chunk-DT2ZNOGU.mjs";
|
|
10
|
+
import "./chunk-BOTJSPCT.mjs";
|
|
11
11
|
|
|
12
12
|
// src/capabilities/react-surface/react-surface.tsx
|
|
13
13
|
import * as Effect from "effect/Effect";
|
|
@@ -17,11 +17,11 @@ import { Surface } from "@dxos/app-framework/ui";
|
|
|
17
17
|
|
|
18
18
|
// src/containers/index.ts
|
|
19
19
|
import { lazy } from "react";
|
|
20
|
-
var DevicesContainer = lazy(() => import("./DevicesContainer-
|
|
21
|
-
var JoinDialog = lazy(() => import("./JoinDialog-
|
|
22
|
-
var ProfileContainer = lazy(() => import("./ProfileContainer-
|
|
23
|
-
var RecoveryCodeDialog = lazy(() => import("./RecoveryCodeDialog-
|
|
24
|
-
var RecoveryCredentialsContainer = lazy(() => import("./RecoveryCredentialsContainer-
|
|
20
|
+
var DevicesContainer = lazy(() => import("./DevicesContainer-V7HEUPO7.mjs"));
|
|
21
|
+
var JoinDialog = lazy(() => import("./JoinDialog-XVKW4SLT.mjs"));
|
|
22
|
+
var ProfileContainer = lazy(() => import("./ProfileContainer-B5LJ6TMU.mjs"));
|
|
23
|
+
var RecoveryCodeDialog = lazy(() => import("./RecoveryCodeDialog-YIRGXM7N.mjs"));
|
|
24
|
+
var RecoveryCredentialsContainer = lazy(() => import("./RecoveryCredentialsContainer-MVJEFNXX.mjs"));
|
|
25
25
|
var ResetDialog = lazy(() => import("./ResetDialog-GGBWSQZO.mjs"));
|
|
26
26
|
|
|
27
27
|
// src/capabilities/react-surface/react-surface.tsx
|
|
@@ -75,4 +75,4 @@ var react_surface_default = Capability.makeModule(Effect.fnUntraced(function* ({
|
|
|
75
75
|
export {
|
|
76
76
|
react_surface_default as default
|
|
77
77
|
};
|
|
78
|
-
//# sourceMappingURL=react-surface-
|
|
78
|
+
//# sourceMappingURL=react-surface-B65OUZYI.mjs.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
ClientCapabilities
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-DT2ZNOGU.mjs";
|
|
5
|
+
import "./chunk-BOTJSPCT.mjs";
|
|
6
6
|
|
|
7
7
|
// src/capabilities/schema-defs/schema-defs.ts
|
|
8
8
|
import * as Effect from "effect/Effect";
|
|
@@ -26,4 +26,4 @@ var schema_defs_default = Capability.makeModule(Effect.fnUntraced(function* () {
|
|
|
26
26
|
export {
|
|
27
27
|
schema_defs_default as default
|
|
28
28
|
};
|
|
29
|
-
//# sourceMappingURL=schema-defs-
|
|
29
|
+
//# sourceMappingURL=schema-defs-GXQ47JZN.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"operation-resolver.d.ts","sourceRoot":"","sources":["../../../../../src/capabilities/operation-resolver/operation-resolver.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAc/D,KAAK,wBAAwB,GAAG;IAC9B,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;;AAIF,
|
|
1
|
+
{"version":3,"file":"operation-resolver.d.ts","sourceRoot":"","sources":["../../../../../src/capabilities/operation-resolver/operation-resolver.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAc/D,KAAK,wBAAwB,GAAG;IAC9B,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;;AAIF,wBA8NE"}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import * as Command from '@effect/cli/Command';
|
|
2
2
|
import * as FileSystem from '@effect/platform/FileSystem';
|
|
3
|
+
import * as Path from '@effect/platform/Path';
|
|
3
4
|
import * as Option from 'effect/Option';
|
|
4
5
|
import { CommandConfig } from '@dxos/cli-util';
|
|
5
|
-
export declare const create: Command.Command<"create", CommandConfig | FileSystem.FileSystem, import("@effect/platform/Error").PlatformError, {
|
|
6
|
+
export declare const create: Command.Command<"create", CommandConfig | FileSystem.FileSystem | Path.Path, import("@effect/platform/Error").PlatformError, {
|
|
6
7
|
readonly template: "default" | "main" | "local" | "dev";
|
|
7
8
|
readonly name: Option.Option<string>;
|
|
8
9
|
}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create.d.ts","sourceRoot":"","sources":["../../../../../../src/cli/commands/profile/create.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,OAAO,MAAM,qBAAqB,CAAC;AAE/C,OAAO,KAAK,UAAU,MAAM,6BAA6B,CAAC;
|
|
1
|
+
{"version":3,"file":"create.d.ts","sourceRoot":"","sources":["../../../../../../src/cli/commands/profile/create.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,OAAO,MAAM,qBAAqB,CAAC;AAE/C,OAAO,KAAK,UAAU,MAAM,6BAA6B,CAAC;AAC1D,OAAO,KAAK,IAAI,MAAM,uBAAuB,CAAC;AAG9C,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAGxC,OAAO,EAAE,aAAa,EAAS,MAAM,gBAAgB,CAAC;AAiDtD,eAAO,MAAM,MAAM;;;EA2BlB,CAAC"}
|
|
@@ -2,7 +2,7 @@ import * as Command from '@effect/cli/Command';
|
|
|
2
2
|
import * as FileSystem from '@effect/platform/FileSystem';
|
|
3
3
|
import * as Option from 'effect/Option';
|
|
4
4
|
import { CommandConfig } from '@dxos/cli-util';
|
|
5
|
-
export declare const del: Command.Command<"delete", CommandConfig | FileSystem.FileSystem,
|
|
5
|
+
export declare const del: Command.Command<"delete", CommandConfig | FileSystem.FileSystem, never, {
|
|
6
6
|
readonly name: Option.Option<string>;
|
|
7
7
|
}>;
|
|
8
8
|
//# sourceMappingURL=delete.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete.d.ts","sourceRoot":"","sources":["../../../../../../src/cli/commands/profile/delete.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,OAAO,MAAM,qBAAqB,CAAC;AAE/C,OAAO,KAAK,UAAU,MAAM,6BAA6B,CAAC;AAG1D,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAE,aAAa,EAAS,MAAM,gBAAgB,CAAC;AAKtD,eAAO,MAAM,GAAG;;
|
|
1
|
+
{"version":3,"file":"delete.d.ts","sourceRoot":"","sources":["../../../../../../src/cli/commands/profile/delete.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,OAAO,MAAM,qBAAqB,CAAC;AAE/C,OAAO,KAAK,UAAU,MAAM,6BAA6B,CAAC;AAG1D,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAE,aAAa,EAAS,MAAM,gBAAgB,CAAC;AAKtD,eAAO,MAAM,GAAG;;EAmBf,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../../../../src/cli/commands/profile/list.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,OAAO,MAAM,qBAAqB,CAAC;AAC/C,OAAO,KAAK,UAAU,MAAM,6BAA6B,CAAC;AAC1D,OAAO,KAAK,IAAI,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../../../../src/cli/commands/profile/list.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,OAAO,MAAM,qBAAqB,CAAC;AAC/C,OAAO,KAAK,UAAU,MAAM,6BAA6B,CAAC;AAC1D,OAAO,KAAK,IAAI,MAAM,uBAAuB,CAAC;AAM9C,OAAO,EAAE,aAAa,EAAa,MAAM,gBAAgB,CAAC;AAM1D,eAAO,MAAM,IAAI,gIAqChB,CAAC"}
|
|
@@ -7,7 +7,7 @@ declare const meta: {
|
|
|
7
7
|
layout: string;
|
|
8
8
|
translations: (import("i18next").Resource | {
|
|
9
9
|
readonly 'en-US': {
|
|
10
|
-
readonly "dxos.
|
|
10
|
+
readonly "org.dxos.i18n.shell": {
|
|
11
11
|
readonly "manage profile label": "Manage identity";
|
|
12
12
|
readonly "identity offline description": "Offline";
|
|
13
13
|
readonly "sidebar label": "DXOS sidebar";
|
|
@@ -3,8 +3,8 @@ import * as Schema from 'effect/Schema';
|
|
|
3
3
|
import { Capability } from '@dxos/app-framework';
|
|
4
4
|
import { type Client, type ClientOptions, PublicKey } from '@dxos/client';
|
|
5
5
|
export declare namespace ClientAction {
|
|
6
|
-
const CreateIdentity_base: Schema.TaggedClass<CreateIdentity, `${string}
|
|
7
|
-
readonly _tag: Schema.tag<`${string}
|
|
6
|
+
const CreateIdentity_base: Schema.TaggedClass<CreateIdentity, `${string}.action.create-identity`, {
|
|
7
|
+
readonly _tag: Schema.tag<`${string}.action.create-identity`>;
|
|
8
8
|
} & {
|
|
9
9
|
input: Schema.Struct<{
|
|
10
10
|
displayName: Schema.optional<typeof Schema.String>;
|
|
@@ -23,8 +23,8 @@ export declare namespace ClientAction {
|
|
|
23
23
|
}>;
|
|
24
24
|
export class CreateIdentity extends CreateIdentity_base {
|
|
25
25
|
}
|
|
26
|
-
const JoinIdentity_base: Schema.TaggedClass<JoinIdentity, `${string}
|
|
27
|
-
readonly _tag: Schema.tag<`${string}
|
|
26
|
+
const JoinIdentity_base: Schema.TaggedClass<JoinIdentity, `${string}.action.join-identity`, {
|
|
27
|
+
readonly _tag: Schema.tag<`${string}.action.join-identity`>;
|
|
28
28
|
} & {
|
|
29
29
|
input: Schema.Struct<{
|
|
30
30
|
invitationCode: Schema.optional<typeof Schema.String>;
|
|
@@ -33,24 +33,24 @@ export declare namespace ClientAction {
|
|
|
33
33
|
}>;
|
|
34
34
|
export class JoinIdentity extends JoinIdentity_base {
|
|
35
35
|
}
|
|
36
|
-
const ShareIdentity_base: Schema.TaggedClass<ShareIdentity, `${string}
|
|
37
|
-
readonly _tag: Schema.tag<`${string}
|
|
36
|
+
const ShareIdentity_base: Schema.TaggedClass<ShareIdentity, `${string}.action.share-identity`, {
|
|
37
|
+
readonly _tag: Schema.tag<`${string}.action.share-identity`>;
|
|
38
38
|
} & {
|
|
39
39
|
input: typeof Schema.Void;
|
|
40
40
|
output: typeof Schema.Void;
|
|
41
41
|
}>;
|
|
42
42
|
export class ShareIdentity extends ShareIdentity_base {
|
|
43
43
|
}
|
|
44
|
-
const RecoverIdentity_base: Schema.TaggedClass<RecoverIdentity, `${string}
|
|
45
|
-
readonly _tag: Schema.tag<`${string}
|
|
44
|
+
const RecoverIdentity_base: Schema.TaggedClass<RecoverIdentity, `${string}.action.recover-identity`, {
|
|
45
|
+
readonly _tag: Schema.tag<`${string}.action.recover-identity`>;
|
|
46
46
|
} & {
|
|
47
47
|
input: typeof Schema.Void;
|
|
48
48
|
output: typeof Schema.Void;
|
|
49
49
|
}>;
|
|
50
50
|
export class RecoverIdentity extends RecoverIdentity_base {
|
|
51
51
|
}
|
|
52
|
-
const ResetStorage_base: Schema.TaggedClass<ResetStorage, `${string}
|
|
53
|
-
readonly _tag: Schema.tag<`${string}
|
|
52
|
+
const ResetStorage_base: Schema.TaggedClass<ResetStorage, `${string}.action.reset-storage`, {
|
|
53
|
+
readonly _tag: Schema.tag<`${string}.action.reset-storage`>;
|
|
54
54
|
} & {
|
|
55
55
|
input: Schema.Struct<{
|
|
56
56
|
mode: Schema.optional<typeof Schema.String>;
|
|
@@ -59,40 +59,40 @@ export declare namespace ClientAction {
|
|
|
59
59
|
}>;
|
|
60
60
|
export class ResetStorage extends ResetStorage_base {
|
|
61
61
|
}
|
|
62
|
-
const CreateAgent_base: Schema.TaggedClass<CreateAgent, `${string}
|
|
63
|
-
readonly _tag: Schema.tag<`${string}
|
|
62
|
+
const CreateAgent_base: Schema.TaggedClass<CreateAgent, `${string}.action.create-agent`, {
|
|
63
|
+
readonly _tag: Schema.tag<`${string}.action.create-agent`>;
|
|
64
64
|
} & {
|
|
65
65
|
input: typeof Schema.Void;
|
|
66
66
|
output: typeof Schema.Void;
|
|
67
67
|
}>;
|
|
68
68
|
export class CreateAgent extends CreateAgent_base {
|
|
69
69
|
}
|
|
70
|
-
const CreateRecoveryCode_base: Schema.TaggedClass<CreateRecoveryCode, `${string}
|
|
71
|
-
readonly _tag: Schema.tag<`${string}
|
|
70
|
+
const CreateRecoveryCode_base: Schema.TaggedClass<CreateRecoveryCode, `${string}.action.create-recovery-code`, {
|
|
71
|
+
readonly _tag: Schema.tag<`${string}.action.create-recovery-code`>;
|
|
72
72
|
} & {
|
|
73
73
|
input: typeof Schema.Void;
|
|
74
74
|
output: typeof Schema.Void;
|
|
75
75
|
}>;
|
|
76
76
|
export class CreateRecoveryCode extends CreateRecoveryCode_base {
|
|
77
77
|
}
|
|
78
|
-
const CreatePasskey_base: Schema.TaggedClass<CreatePasskey, `${string}
|
|
79
|
-
readonly _tag: Schema.tag<`${string}
|
|
78
|
+
const CreatePasskey_base: Schema.TaggedClass<CreatePasskey, `${string}.action.create-passkey`, {
|
|
79
|
+
readonly _tag: Schema.tag<`${string}.action.create-passkey`>;
|
|
80
80
|
} & {
|
|
81
81
|
input: typeof Schema.Void;
|
|
82
82
|
output: typeof Schema.Void;
|
|
83
83
|
}>;
|
|
84
84
|
export class CreatePasskey extends CreatePasskey_base {
|
|
85
85
|
}
|
|
86
|
-
const RedeemPasskey_base: Schema.TaggedClass<RedeemPasskey, `${string}
|
|
87
|
-
readonly _tag: Schema.tag<`${string}
|
|
86
|
+
const RedeemPasskey_base: Schema.TaggedClass<RedeemPasskey, `${string}.action.redeem-passkey`, {
|
|
87
|
+
readonly _tag: Schema.tag<`${string}.action.redeem-passkey`>;
|
|
88
88
|
} & {
|
|
89
89
|
input: typeof Schema.Void;
|
|
90
90
|
output: typeof Schema.Void;
|
|
91
91
|
}>;
|
|
92
92
|
export class RedeemPasskey extends RedeemPasskey_base {
|
|
93
93
|
}
|
|
94
|
-
const RedeemToken_base: Schema.TaggedClass<RedeemToken, `${string}
|
|
95
|
-
readonly _tag: Schema.tag<`${string}
|
|
94
|
+
const RedeemToken_base: Schema.TaggedClass<RedeemToken, `${string}.action.redeem-token`, {
|
|
95
|
+
readonly _tag: Schema.tag<`${string}.action.redeem-token`>;
|
|
96
96
|
} & {
|
|
97
97
|
input: Schema.Struct<{
|
|
98
98
|
token: typeof Schema.String;
|
|
@@ -109,7 +109,7 @@ export declare namespace ClientAction {
|
|
|
109
109
|
export declare namespace ClientOperation {
|
|
110
110
|
const CreateIdentity: Omit<{
|
|
111
111
|
readonly meta: {
|
|
112
|
-
readonly key: `${string}
|
|
112
|
+
readonly key: `${string}.create-identity`;
|
|
113
113
|
readonly name: "Create Identity";
|
|
114
114
|
};
|
|
115
115
|
readonly services: readonly [typeof Capability.Service];
|
|
@@ -134,7 +134,7 @@ export declare namespace ClientOperation {
|
|
|
134
134
|
};
|
|
135
135
|
const JoinIdentity: Omit<{
|
|
136
136
|
readonly meta: {
|
|
137
|
-
readonly key: `${string}
|
|
137
|
+
readonly key: `${string}.join-identity`;
|
|
138
138
|
readonly name: "Join Identity";
|
|
139
139
|
};
|
|
140
140
|
readonly services: readonly [typeof Capability.Service];
|
|
@@ -149,7 +149,7 @@ export declare namespace ClientOperation {
|
|
|
149
149
|
};
|
|
150
150
|
const ShareIdentity: Omit<{
|
|
151
151
|
readonly meta: {
|
|
152
|
-
readonly key: `${string}
|
|
152
|
+
readonly key: `${string}.share-identity`;
|
|
153
153
|
readonly name: "Share Identity";
|
|
154
154
|
};
|
|
155
155
|
readonly services: readonly [typeof Capability.Service];
|
|
@@ -162,7 +162,7 @@ export declare namespace ClientOperation {
|
|
|
162
162
|
};
|
|
163
163
|
const RecoverIdentity: Omit<{
|
|
164
164
|
readonly meta: {
|
|
165
|
-
readonly key: `${string}
|
|
165
|
+
readonly key: `${string}.recover-identity`;
|
|
166
166
|
readonly name: "Recover Identity";
|
|
167
167
|
};
|
|
168
168
|
readonly services: readonly [typeof Capability.Service];
|
|
@@ -175,7 +175,7 @@ export declare namespace ClientOperation {
|
|
|
175
175
|
};
|
|
176
176
|
const ResetStorage: Omit<{
|
|
177
177
|
readonly meta: {
|
|
178
|
-
readonly key: `${string}
|
|
178
|
+
readonly key: `${string}.reset-storage`;
|
|
179
179
|
readonly name: "Reset Storage";
|
|
180
180
|
};
|
|
181
181
|
readonly services: readonly [typeof Capability.Service];
|
|
@@ -190,7 +190,7 @@ export declare namespace ClientOperation {
|
|
|
190
190
|
};
|
|
191
191
|
const CreateAgent: Omit<{
|
|
192
192
|
readonly meta: {
|
|
193
|
-
readonly key: `${string}
|
|
193
|
+
readonly key: `${string}.create-agent`;
|
|
194
194
|
readonly name: "Create Agent";
|
|
195
195
|
};
|
|
196
196
|
readonly services: readonly [typeof Capability.Service];
|
|
@@ -203,7 +203,7 @@ export declare namespace ClientOperation {
|
|
|
203
203
|
};
|
|
204
204
|
const CreateRecoveryCode: Omit<{
|
|
205
205
|
readonly meta: {
|
|
206
|
-
readonly key: `${string}
|
|
206
|
+
readonly key: `${string}.create-recovery-code`;
|
|
207
207
|
readonly name: "Create Recovery Code";
|
|
208
208
|
};
|
|
209
209
|
readonly services: readonly [typeof Capability.Service];
|
|
@@ -216,7 +216,7 @@ export declare namespace ClientOperation {
|
|
|
216
216
|
};
|
|
217
217
|
const CreatePasskey: Omit<{
|
|
218
218
|
readonly meta: {
|
|
219
|
-
readonly key: `${string}
|
|
219
|
+
readonly key: `${string}.create-passkey`;
|
|
220
220
|
readonly name: "Create Passkey";
|
|
221
221
|
};
|
|
222
222
|
readonly services: readonly [typeof Capability.Service];
|
|
@@ -229,7 +229,7 @@ export declare namespace ClientOperation {
|
|
|
229
229
|
};
|
|
230
230
|
const RedeemPasskey: Omit<{
|
|
231
231
|
readonly meta: {
|
|
232
|
-
readonly key: `${string}
|
|
232
|
+
readonly key: `${string}.redeem-passkey`;
|
|
233
233
|
readonly name: "Redeem Passkey";
|
|
234
234
|
};
|
|
235
235
|
readonly services: readonly [typeof Capability.Service];
|
|
@@ -242,7 +242,7 @@ export declare namespace ClientOperation {
|
|
|
242
242
|
};
|
|
243
243
|
const RedeemToken: Omit<{
|
|
244
244
|
readonly meta: {
|
|
245
|
-
readonly key: `${string}
|
|
245
|
+
readonly key: `${string}.redeem-token`;
|
|
246
246
|
readonly name: "Redeem Token";
|
|
247
247
|
};
|
|
248
248
|
readonly services: readonly [typeof Capability.Service];
|