@calimero-network/mero-js 26.10.0 → 27.0.0
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/README.md +73 -288
- package/dist/cloud-v2/attestation.d.ts +91 -0
- package/dist/cloud-v2/attestation.js +135 -0
- package/dist/cloud-v2/capabilities.d.ts +30 -0
- package/dist/cloud-v2/capabilities.js +31 -0
- package/dist/cloud-v2/client.d.ts +426 -0
- package/dist/cloud-v2/client.js +646 -0
- package/dist/cloud-v2/errors.d.ts +98 -0
- package/dist/cloud-v2/errors.js +165 -0
- package/dist/cloud-v2/index.d.ts +10 -0
- package/dist/cloud-v2/index.js +5 -0
- package/dist/cloud-v2/passkey.d.ts +27 -0
- package/dist/cloud-v2/passkey.js +73 -0
- package/dist/crypto/internal.d.ts +3 -37
- package/dist/crypto/internal.js +3 -72
- package/dist/index.browser.mjs +4 -2
- package/dist/index.browser.mjs.map +4 -4
- package/dist/index.cjs +1750 -12767
- package/dist/index.cjs.map +4 -4
- package/dist/index.d.ts +3 -56
- package/dist/index.js +14 -75
- package/dist/index.mjs +1750 -12767
- package/dist/index.mjs.map +4 -4
- package/dist/sealed/index.d.ts +4 -4
- package/dist/sealed/index.js +2 -2
- package/dist/sealed/release.d.ts +21 -76
- package/dist/sealed/release.js +24 -108
- package/dist/sealed/sealed.d.ts +8 -56
- package/dist/sealed/sealed.js +11 -89
- package/dist/sealed/verify.d.ts +7 -13
- package/dist/sealed/verify.js +3 -7
- package/package.json +8 -13
- package/dist/account/account-admin.d.ts +0 -80
- package/dist/account/account-admin.js +0 -346
- package/dist/account/account.d.ts +0 -196
- package/dist/account/account.js +0 -269
- package/dist/account/application-id.d.ts +0 -50
- package/dist/account/application-id.js +0 -83
- package/dist/account/bootstrap-from-invitation.d.ts +0 -110
- package/dist/account/bootstrap-from-invitation.js +0 -80
- package/dist/account/create-context.d.ts +0 -103
- package/dist/account/create-context.js +0 -267
- package/dist/account/govern.d.ts +0 -24
- package/dist/account/govern.js +0 -50
- package/dist/account/index.d.ts +0 -26
- package/dist/account/index.js +0 -15
- package/dist/account/join-as-account.d.ts +0 -23
- package/dist/account/join-as-account.js +0 -34
- package/dist/account/join-with-node.d.ts +0 -115
- package/dist/account/join-with-node.js +0 -161
- package/dist/account/node-admin.d.ts +0 -20
- package/dist/account/node-admin.js +0 -33
- package/dist/account/relay-from-invitation.d.ts +0 -137
- package/dist/account/relay-from-invitation.js +0 -180
- package/dist/account/relay-login-error.d.ts +0 -32
- package/dist/account/relay-login-error.js +0 -34
- package/dist/account/session.d.ts +0 -266
- package/dist/account/session.js +0 -915
- package/dist/account/wordlist.d.ts +0 -16
- package/dist/account/wordlist.js +0 -273
- package/dist/admin-api/admin-client.d.ts +0 -686
- package/dist/admin-api/admin-client.js +0 -1225
- package/dist/admin-api/admin-factory.d.ts +0 -14
- package/dist/admin-api/admin-factory.js +0 -22
- package/dist/admin-api/admin-types.d.ts +0 -2041
- package/dist/admin-api/admin-types.js +0 -12
- package/dist/admin-api/index.d.ts +0 -4
- package/dist/admin-api/index.js +0 -5
- package/dist/admin-api/redeem-invitation.d.ts +0 -101
- package/dist/admin-api/redeem-invitation.js +0 -200
- package/dist/auth/index.d.ts +0 -34
- package/dist/auth/index.js +0 -67
- package/dist/auth-api/auth-client.d.ts +0 -31
- package/dist/auth-api/auth-client.js +0 -117
- package/dist/auth-api/auth-factory.d.ts +0 -7
- package/dist/auth-api/auth-factory.js +0 -41
- package/dist/auth-api/auth-types.d.ts +0 -130
- package/dist/auth-api/auth-types.js +0 -2
- package/dist/auth-api/index.d.ts +0 -3
- package/dist/auth-api/index.js +0 -4
- package/dist/capabilities.d.ts +0 -84
- package/dist/capabilities.js +0 -117
- package/dist/cloud/account-ownership.d.ts +0 -63
- package/dist/cloud/account-ownership.js +0 -87
- package/dist/cloud/cloud-client.d.ts +0 -949
- package/dist/cloud/cloud-client.js +0 -1068
- package/dist/cloud/connect.d.ts +0 -213
- package/dist/cloud/connect.js +0 -260
- package/dist/cloud/enrol-redirect.d.ts +0 -181
- package/dist/cloud/enrol-redirect.js +0 -244
- package/dist/cloud/index.d.ts +0 -12
- package/dist/cloud/index.js +0 -10
- package/dist/cloud/link-redirect.d.ts +0 -95
- package/dist/cloud/link-redirect.js +0 -121
- package/dist/cloud/link-state.d.ts +0 -36
- package/dist/cloud/link-state.js +0 -104
- package/dist/cloud/routing-proof.d.ts +0 -113
- package/dist/cloud/routing-proof.js +0 -96
- package/dist/device-cert/device-cert.d.ts +0 -189
- package/dist/device-cert/device-cert.js +0 -239
- package/dist/device-cert/device-scope.d.ts +0 -58
- package/dist/device-cert/device-scope.js +0 -76
- package/dist/device-cert/index.d.ts +0 -4
- package/dist/device-cert/index.js +0 -3
- package/dist/ephemeral/codec.d.ts +0 -4
- package/dist/ephemeral/codec.js +0 -12
- package/dist/ephemeral/index.d.ts +0 -57
- package/dist/ephemeral/index.js +0 -101
- package/dist/ephemeral/types.d.ts +0 -27
- package/dist/ephemeral/types.js +0 -1
- package/dist/errors/classify.d.ts +0 -65
- package/dist/errors/classify.js +0 -117
- package/dist/errors/index.d.ts +0 -2
- package/dist/errors/index.js +0 -1
- package/dist/events/group.d.ts +0 -95
- package/dist/events/group.js +0 -10
- package/dist/events/index.d.ts +0 -5
- package/dist/events/index.js +0 -2
- package/dist/events/sse.d.ts +0 -127
- package/dist/events/sse.js +0 -469
- package/dist/events/ws.d.ts +0 -57
- package/dist/events/ws.js +0 -212
- package/dist/http-client/api-response.d.ts +0 -15
- package/dist/http-client/api-response.js +0 -1
- package/dist/http-client/http-factory.d.ts +0 -71
- package/dist/http-client/http-factory.js +0 -68
- package/dist/http-client/http-types.d.ts +0 -87
- package/dist/http-client/http-types.js +0 -1
- package/dist/http-client/index.d.ts +0 -7
- package/dist/http-client/index.js +0 -11
- package/dist/http-client/path-segment.d.ts +0 -1
- package/dist/http-client/path-segment.js +0 -8
- package/dist/http-client/retry.d.ts +0 -5
- package/dist/http-client/retry.js +0 -82
- package/dist/http-client/signal-utils.d.ts +0 -2
- package/dist/http-client/signal-utils.js +0 -41
- package/dist/http-client/web-client.d.ts +0 -80
- package/dist/http-client/web-client.js +0 -557
- package/dist/invitation/index.d.ts +0 -2
- package/dist/invitation/index.js +0 -2
- package/dist/invitation/invitation.d.ts +0 -106
- package/dist/invitation/invitation.js +0 -104
- package/dist/login/index.d.ts +0 -4
- package/dist/login/index.js +0 -3
- package/dist/login/login.d.ts +0 -111
- package/dist/login/login.js +0 -110
- package/dist/login/session.d.ts +0 -124
- package/dist/login/session.js +0 -141
- package/dist/mero-js.d.ts +0 -231
- package/dist/mero-js.js +0 -469
- package/dist/namespace-op/index.d.ts +0 -2
- package/dist/namespace-op/index.js +0 -3
- package/dist/namespace-op/namespace-op.d.ts +0 -150
- package/dist/namespace-op/namespace-op.js +0 -191
- package/dist/nodeDiscovery.d.ts +0 -47
- package/dist/nodeDiscovery.js +0 -101
- package/dist/owner-op/index.d.ts +0 -2
- package/dist/owner-op/index.js +0 -3
- package/dist/owner-op/owner-op.d.ts +0 -119
- package/dist/owner-op/owner-op.js +0 -214
- package/dist/presence/relay-presence.d.ts +0 -56
- package/dist/presence/relay-presence.js +0 -107
- package/dist/presence/statement.d.ts +0 -12
- package/dist/presence/statement.js +0 -17
- package/dist/relay/index.d.ts +0 -4
- package/dist/relay/index.js +0 -2
- package/dist/relay/nonce-source.d.ts +0 -72
- package/dist/relay/nonce-source.js +0 -111
- package/dist/relay/relay-client.d.ts +0 -472
- package/dist/relay/relay-client.js +0 -518
- package/dist/relay-attestation/attest-node-key.d.ts +0 -66
- package/dist/relay-attestation/attest-node-key.js +0 -110
- package/dist/relay-attestation/index.d.ts +0 -1
- package/dist/relay-attestation/index.js +0 -1
- package/dist/request/caller-proof.d.ts +0 -43
- package/dist/request/caller-proof.js +0 -36
- package/dist/request/index.d.ts +0 -3
- package/dist/request/index.js +0 -3
- package/dist/request/proof-signer.d.ts +0 -49
- package/dist/request/proof-signer.js +0 -59
- package/dist/request/request-sig.d.ts +0 -99
- package/dist/request/request-sig.js +0 -95
- package/dist/request-proof/authorizer.d.ts +0 -41
- package/dist/request-proof/authorizer.js +0 -60
- package/dist/request-proof/index.d.ts +0 -4
- package/dist/request-proof/index.js +0 -2
- package/dist/request-proof/request-proof.d.ts +0 -53
- package/dist/request-proof/request-proof.js +0 -95
- package/dist/rpc/index.d.ts +0 -64
- package/dist/rpc/index.js +0 -78
- package/dist/signer/index.d.ts +0 -2
- package/dist/signer/index.js +0 -3
- package/dist/signer/signer.d.ts +0 -92
- package/dist/signer/signer.js +0 -147
- package/dist/token-store/index.d.ts +0 -27
- package/dist/token-store/index.js +0 -62
- package/dist/transport/index.d.ts +0 -6
- package/dist/transport/index.js +0 -3
- package/dist/transport/mero-client.d.ts +0 -294
- package/dist/transport/mero-client.js +0 -386
- package/dist/transport/relay-observer.d.ts +0 -152
- package/dist/transport/relay-observer.js +0 -173
- package/dist/transport/relay-transport.d.ts +0 -73
- package/dist/transport/relay-transport.js +0 -94
- package/dist/transport/types.d.ts +0 -100
- package/dist/transport/types.js +0 -32
- package/dist/types/api-response.d.ts +0 -15
- package/dist/types/api-response.js +0 -1
- package/dist/types/index.d.ts +0 -1
- package/dist/types/index.js +0 -1
- package/dist/warrant/creation-warrant.d.ts +0 -163
- package/dist/warrant/creation-warrant.js +0 -194
- package/dist/warrant/governance-op.d.ts +0 -202
- package/dist/warrant/governance-op.js +0 -355
- package/dist/warrant/governance-warrant.d.ts +0 -124
- package/dist/warrant/governance-warrant.js +0 -164
- package/dist/warrant/index.d.ts +0 -8
- package/dist/warrant/index.js +0 -5
- package/dist/warrant/warrant.d.ts +0 -188
- package/dist/warrant/warrant.js +0 -202
package/dist/index.d.ts
CHANGED
|
@@ -1,56 +1,3 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
3
|
-
export * from
|
|
4
|
-
export * from "./auth-api/index.js";
|
|
5
|
-
export * from "./admin-api/index.js";
|
|
6
|
-
export * from "./errors/index.js";
|
|
7
|
-
export { parseAuthCallback, buildAuthLoginUrl } from "./auth/index.js";
|
|
8
|
-
export type { AuthCallbackResult, AuthLoginOptions, ParseAuthCallbackOptions, } from "./auth/index.js";
|
|
9
|
-
export { MemoryTokenStore, LocalStorageTokenStore, } from "./token-store/index.js";
|
|
10
|
-
export type { TokenStore } from "./token-store/index.js";
|
|
11
|
-
export { RpcClient, RpcError } from "./rpc/index.js";
|
|
12
|
-
export type { MigrateMyEntriesSummary } from "./rpc/index.js";
|
|
13
|
-
export type { ExecuteParams } from "./rpc/index.js";
|
|
14
|
-
export { MeroClient, createMeroClient, RelayTransport, RelayObserver, defaultAudience, } from './transport/index.js';
|
|
15
|
-
export type { MeroClientConfig, NodeTransportConfig, RelayTransportConfig, RelayObserveConfig, ExecuteTransport, ExecuteResult, TransportKind, } from './transport/index.js';
|
|
16
|
-
export { SseClient, WsClient } from "./events/index.js";
|
|
17
|
-
export type { SseEventData, WsEventData, AppVersionChangedEvent, GroupMembershipEventData, GroupMigrationEventData, MigrationStartedData, MigrationProgressData, CascadeProgressData, MigrationCompletedData, } from "./events/index.js";
|
|
18
|
-
export { EphemeralClient, jsonCodec, subscribePresence } from "./ephemeral/index.js";
|
|
19
|
-
export { RelayPresenceClient } from "./presence/relay-presence.js";
|
|
20
|
-
export { presenceStatementBytes, stateHash, PRESENCE_DOMAIN } from "./presence/statement.js";
|
|
21
|
-
export type { Codec, EphemeralEntry } from "./ephemeral/index.js";
|
|
22
|
-
export * from "./cloud/index.js";
|
|
23
|
-
export * from "./sealed/index.js";
|
|
24
|
-
export * from "./relay/index.js";
|
|
25
|
-
export * from "./request-proof/index.js";
|
|
26
|
-
export { signWarrant, intentHash, signCreationWarrant, parseCreationWarrant, creationInitHash, signGovernanceWarrant, parseGovernanceWarrant, governanceOpHash, memberAddedOp, memberRemovedOp, memberLeftOp, memberRoleSetOp, groupCreatedOp, createdSubgroupId, subgroupCreation, groupReparentedOp, groupDeletedOp, memberCapabilitySetOp, contextDetachedOp, subgroupVisibilitySetOp, groupMetadataSetOp, memberMetadataSetOp, contextMetadataSetOp, contextCapabilityGrantedOp, contextCapabilityRevokedOp, memberJoinedOpenOp, namespaceCreatedOp, defaultCapabilitiesSetOp, targetApplicationSetOp, foundedNamespaceId, } from "./warrant/index.js";
|
|
27
|
-
export { signerFromSecret, signerFromCryptoKey } from "./signer/index.js";
|
|
28
|
-
export type { Signer } from "./signer/index.js";
|
|
29
|
-
export { generateAccountRoot, accountRootFromPhrase, accountRootFromSecret, createAccountRootSigner, accountRootSignerFromPhrase, signAccountLink, signAccountLogin, resolveRoot, resolveRootPair, } from "./account/index.js";
|
|
30
|
-
export type { AccountRoot, RecoverableAccountRoot, AccountRootSigner, NewAccountRootSigner, AccountLinkInput, AccountLoginInput, RootSource, ResolvedRoot, } from "./account/index.js";
|
|
31
|
-
export { readDelegatedSession, saveDelegatedSession, clearDelegatedSession, readDelegatedCredential, saveDelegatedCredential, clearDelegatedCredential, persistedNonces, markContextNonceSpent, pinRelayNodeKey, readPinnedRelayNodeKey, attemptRelayNodeKey, resolveRelayNodeKey, learnRelayNodeKey, RELAY_NODE_KEY_RETRY_MS, forgetMethodKinds, forgetRelaySealing, relayTransportFetch, buildDelegatedClient, readRelayMap, rememberRelay, relayForContext, carryExecutorAccount, knownRelays, listDelegatedContexts, listDelegatedNamespaces, RelaysUnavailableError, resolveRelayFromInvitation, normaliseAccount, joinWithNode, bootstrapFromInvitation, joinAsAccount, createDelegatedContext, createDelegatedPrivateContext, foundDelegatedNamespace, delegatedGovernance, latestPublishedVersion, HA_ACCOUNT_NOT_LINKED_MESSAGE, HA_REFUSAL_MESSAGES, governGroup, governRoot, namespaceOfGroup, rememberGroupNamespace, applicationIdForBundle, fetchRegistryBundles, resolveApplicationIdFromRegistry, selectLatestBundle, createAccountAdmin, InvitationNotClaimableError, NoRelayError, NotForAccountError, RelayLoginError, createNodeAdmin, } from "./account/index.js";
|
|
32
|
-
export type { DelegatedCredential, DelegatedAccountSession, RelayMap, RelayNodeKeyAttempt, RelayLoginFailureKind, RelayListingFailure, RelayResolutionStep, RelayResolutionFailure, ResolvedInvitationRelay, ResolveRelayResult, ResolveRelayFromInvitationInput, JoinWithNodeInput, JoinWithNodeResult, JoinWithNodeSuccess, JoinWithNodeFailure, JoinWithNodeStep, BootstrapStep, BootstrapResult, BootstrapSuccess, BootstrapFailure, BootstrapFromInvitationInput, CreateDelegatedContextRequest, FoundedDelegatedNamespace, RegistryBundle, ResolvedApplication, AccountAdminDeps, NodeAdminDeps, } from "./account/index.js";
|
|
33
|
-
export { signDeviceCert, mintDeviceId, deviceCertPayload, accountForRoot, accountForRootPublicKey, parseDeviceCredential, verifyDeviceCredential, } from "./device-cert/index.js";
|
|
34
|
-
export type { DeviceCertInput, DeviceCredential } from "./device-cert/index.js";
|
|
35
|
-
export { signDeviceScope, deviceScopePayload } from "./device-cert/index.js";
|
|
36
|
-
export type { DeviceScopeInput } from "./device-cert/index.js";
|
|
37
|
-
export { signGroupInvitation, encodeGroupInvitation, groupInvitationHash, defaultAdmitters, MAX_INVITATION_VALIDITY_SECS, INVITED_ROLE, } from "./invitation/index.js";
|
|
38
|
-
export type { GroupInvitationInput } from "./invitation/index.js";
|
|
39
|
-
export { signMemberJoinOp, encodeSignedInvitation, SIGNED_NAMESPACE_OP_SCHEMA_VERSION, } from "./namespace-op/index.js";
|
|
40
|
-
export type { SignMemberJoinInput } from "./namespace-op/index.js";
|
|
41
|
-
export { OWNER_OP_KIND, transferOwnershipOp, groupDeleteOp, adminChangedOp, teeAuthoringPolicyOp, teeAdmissionPolicyOp, teeReleaseAdmissionPolicyOp, ownerOpDigest, ownerOpSigningPayload, signOwnerOpProof, rootGuardedOpBytes, } from "./owner-op/index.js";
|
|
42
|
-
export type { OwnerOp, OwnerOpKind, OwnerOpPlane, OwnerOpProofInput, TeeAdmissionPolicyOpInput, TeeReleaseAdmissionPolicyOpInput, } from "./owner-op/index.js";
|
|
43
|
-
export type { WarrantInput, CreationWarrantInput, CreationWarrantFields, SignedCreationWarrant, GovernanceWarrantInput, GovernanceWarrantFields, GovernanceOp, GovernanceOpKind, GovernanceMemberRole, GroupCreatedInput, SubgroupCreation, NamespaceCreatedInput, } from "./warrant/index.js";
|
|
44
|
-
export { requestBodyHash, signRequest, callerProof, createProofSigner, } from "./request/index.js";
|
|
45
|
-
export type { CallerProofInput, ProofRequest, ProofSignerOptions, } from "./request/index.js";
|
|
46
|
-
export type { RequestSigInput } from "./request/index.js";
|
|
47
|
-
export { signLoginStatement } from "./login/index.js";
|
|
48
|
-
export type { Audience, LoginStatementInput } from "./login/index.js";
|
|
49
|
-
export { login, generateSessionKey } from "./login/index.js";
|
|
50
|
-
export type { LoginConfig, DelegatedSession, SessionKeyPair, } from "./login/index.js";
|
|
51
|
-
export * from "./capabilities.js";
|
|
52
|
-
export { DEFAULT_LOCAL_NODE_PORTS, localNodeUrl, nodeEndpoint, probeNodeHealth, discoverLocalNodes, } from "./nodeDiscovery.js";
|
|
53
|
-
export type { DiscoverLocalNodesOptions } from "./nodeDiscovery.js";
|
|
54
|
-
export * from "./agent-gate/index.js";
|
|
55
|
-
export { attestRelayNodeKey, attestKeyBinding, reportDataOf } from "./relay-attestation/index.js";
|
|
56
|
-
export type { AttestedNodeKey, AttestRelayNodeKeyOptions } from "./relay-attestation/index.js";
|
|
1
|
+
export * from './cloud-v2/index.js';
|
|
2
|
+
export * from './sealed/index.js';
|
|
3
|
+
export * from './agent-gate/index.js';
|
package/dist/index.js
CHANGED
|
@@ -1,75 +1,14 @@
|
|
|
1
|
-
// Mero.js
|
|
2
|
-
//
|
|
3
|
-
//
|
|
4
|
-
|
|
5
|
-
//
|
|
6
|
-
|
|
7
|
-
//
|
|
8
|
-
export * from
|
|
9
|
-
//
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
//
|
|
14
|
-
export
|
|
15
|
-
// Token store
|
|
16
|
-
export { MemoryTokenStore, LocalStorageTokenStore, } from "./token-store/index.js";
|
|
17
|
-
// RPC client
|
|
18
|
-
export { RpcClient, RpcError } from "./rpc/index.js";
|
|
19
|
-
// Transport — one client, two write paths, chosen at construction (node by default)
|
|
20
|
-
export { MeroClient, createMeroClient, RelayTransport,
|
|
21
|
-
// A relay is a node: given its signing key, a relay-transport client
|
|
22
|
-
// subscribes over the same `/sse` and `/ws` a node client uses.
|
|
23
|
-
RelayObserver, defaultAudience, } from './transport/index.js';
|
|
24
|
-
// Events (SSE / WebSocket)
|
|
25
|
-
export { SseClient, WsClient } from "./events/index.js";
|
|
26
|
-
// Ephemeral presence (cursors / typing / online)
|
|
27
|
-
export { EphemeralClient, jsonCodec, subscribePresence } from "./ephemeral/index.js";
|
|
28
|
-
export { RelayPresenceClient } from "./presence/relay-presence.js";
|
|
29
|
-
export { presenceStatementBytes, stateHash, PRESENCE_DOMAIN } from "./presence/statement.js";
|
|
30
|
-
// Cloud client — namespaces, relays, HA, and the cloud sign-in path
|
|
31
|
-
export * from "./cloud/index.js";
|
|
32
|
-
// Sealed transport — requests encrypted to a TEE node's attested key
|
|
33
|
-
export * from "./sealed/index.js";
|
|
34
|
-
// Relay client — write through delegated execution, holding only a signing key
|
|
35
|
-
export * from "./relay/index.js";
|
|
36
|
-
// Request proofs — a caller's identity on the request itself, no session needed
|
|
37
|
-
export * from "./request-proof/index.js";
|
|
38
|
-
// Warrant signing — mint the author's consent for a relay to run one intent
|
|
39
|
-
export { signWarrant, intentHash, signCreationWarrant, parseCreationWarrant, creationInitHash, signGovernanceWarrant, parseGovernanceWarrant, governanceOpHash, memberAddedOp, memberRemovedOp, memberLeftOp, memberRoleSetOp, groupCreatedOp, createdSubgroupId, subgroupCreation, groupReparentedOp, groupDeletedOp, memberCapabilitySetOp, contextDetachedOp, subgroupVisibilitySetOp, groupMetadataSetOp, memberMetadataSetOp, contextMetadataSetOp, contextCapabilityGrantedOp, contextCapabilityRevokedOp, memberJoinedOpenOp, namespaceCreatedOp, defaultCapabilitiesSetOp, targetApplicationSetOp, foundedNamespaceId, } from "./warrant/index.js";
|
|
40
|
-
// Who signs — a key's capability, separated from its material, so a
|
|
41
|
-
// non-extractable key can be used wherever a hex secret could.
|
|
42
|
-
export { signerFromSecret, signerFromCryptoKey } from "./signer/index.js";
|
|
43
|
-
// Account roots — mint one with a recovery phrase, or prove you hold one
|
|
44
|
-
export { generateAccountRoot, accountRootFromPhrase, accountRootFromSecret, createAccountRootSigner, accountRootSignerFromPhrase, signAccountLink, signAccountLogin,
|
|
45
|
-
// The two forms a root may be held in, and what resolves either. Exported
|
|
46
|
-
// because `RootSource` is already the parameter type of every cloud entry
|
|
47
|
-
// point that takes a root — a consumer writing a wrapper around one could
|
|
48
|
-
// name it in a signature only by re-declaring it.
|
|
49
|
-
resolveRoot, resolveRootPair, } from "./account/index.js";
|
|
50
|
-
// The delegated account layer — an account with no node of its own, writing
|
|
51
|
-
// through a hosted relay it attested, or through a node, over one admin shape.
|
|
52
|
-
// Framework-free; mero-react re-exports every one of these under the same name
|
|
53
|
-
// (its `DelegatedSession` is `DelegatedAccountSession` here: the login module
|
|
54
|
-
// already owns the bare name for the session `login()` mints).
|
|
55
|
-
export { readDelegatedSession, saveDelegatedSession, clearDelegatedSession, readDelegatedCredential, saveDelegatedCredential, clearDelegatedCredential, persistedNonces, markContextNonceSpent, pinRelayNodeKey, readPinnedRelayNodeKey, attemptRelayNodeKey, resolveRelayNodeKey, learnRelayNodeKey, RELAY_NODE_KEY_RETRY_MS, forgetMethodKinds, forgetRelaySealing, relayTransportFetch, buildDelegatedClient, readRelayMap, rememberRelay, relayForContext, carryExecutorAccount, knownRelays, listDelegatedContexts, listDelegatedNamespaces, RelaysUnavailableError, resolveRelayFromInvitation, normaliseAccount, joinWithNode, bootstrapFromInvitation, joinAsAccount, createDelegatedContext, createDelegatedPrivateContext, foundDelegatedNamespace, delegatedGovernance, latestPublishedVersion, HA_ACCOUNT_NOT_LINKED_MESSAGE, HA_REFUSAL_MESSAGES, governGroup, governRoot, namespaceOfGroup, rememberGroupNamespace, applicationIdForBundle, fetchRegistryBundles, resolveApplicationIdFromRegistry, selectLatestBundle, createAccountAdmin, InvitationNotClaimableError, NoRelayError, NotForAccountError, RelayLoginError, createNodeAdmin, } from "./account/index.js";
|
|
56
|
-
export { signDeviceCert, mintDeviceId, deviceCertPayload, accountForRoot, accountForRootPublicKey, parseDeviceCredential, verifyDeviceCredential, } from "./device-cert/index.js";
|
|
57
|
-
// A device's scope — signed by the root beside its certificate, and what a relay
|
|
58
|
-
// needs with it to bind the device of an account that has no node.
|
|
59
|
-
export { signDeviceScope, deviceScopePayload } from "./device-cert/index.js";
|
|
60
|
-
// Invitations minted off-node, signed by a bound device key.
|
|
61
|
-
export { signGroupInvitation, encodeGroupInvitation, groupInvitationHash, defaultAdmitters, MAX_INVITATION_VALIDITY_SECS, INVITED_ROLE, } from "./invitation/index.js";
|
|
62
|
-
export { signMemberJoinOp, encodeSignedInvitation, SIGNED_NAMESPACE_OP_SCHEMA_VERSION, } from "./namespace-op/index.js";
|
|
63
|
-
export { OWNER_OP_KIND, transferOwnershipOp, groupDeleteOp, adminChangedOp, teeAuthoringPolicyOp, teeAdmissionPolicyOp, teeReleaseAdmissionPolicyOp, ownerOpDigest, ownerOpSigningPayload, signOwnerOpProof, rootGuardedOpBytes, } from "./owner-op/index.js";
|
|
64
|
-
// Login-statement signing — the device's half of a password-free session
|
|
65
|
-
export { requestBodyHash, signRequest, callerProof, createProofSigner, } from "./request/index.js";
|
|
66
|
-
export { signLoginStatement } from "./login/index.js";
|
|
67
|
-
export { login, generateSessionKey } from "./login/index.js";
|
|
68
|
-
// Member capability bitmask constants & helpers
|
|
69
|
-
export * from "./capabilities.js";
|
|
70
|
-
// Utilities
|
|
71
|
-
export { DEFAULT_LOCAL_NODE_PORTS, localNodeUrl, nodeEndpoint, probeNodeHealth, discoverLocalNodes, } from "./nodeDiscovery.js";
|
|
72
|
-
// Private agents: attest one, claim it with your key, give it its secrets sealed to its TD.
|
|
73
|
-
export * from "./agent-gate/index.js";
|
|
74
|
-
// A relay's node key, learned from its TEE attestation rather than pasted in.
|
|
75
|
-
export { attestRelayNodeKey, attestKeyBinding, reportDataOf } from "./relay-attestation/index.js";
|
|
1
|
+
// Mero.js: the JavaScript client for Calimero 1.0, the confidential cloud.
|
|
2
|
+
//
|
|
3
|
+
// `CalimeroClient` verifies a node's TDX attestation, seals every request to
|
|
4
|
+
// it, and signs people in with passkeys and machines with API keys. Everything
|
|
5
|
+
// below it is the pieces it is built from, exported for callers who need one
|
|
6
|
+
// on its own.
|
|
7
|
+
// The client, its errors and its types
|
|
8
|
+
export * from './cloud-v2/index.js';
|
|
9
|
+
// Sealed transport: requests encrypted end to end to a TEE node's attested key,
|
|
10
|
+
// and the checks that decide whether a quote is trusted.
|
|
11
|
+
export * from './sealed/index.js';
|
|
12
|
+
// Private agents (mero-tee's agent gate): attest one, claim it with your key,
|
|
13
|
+
// give it its secrets sealed to its TD.
|
|
14
|
+
export * from './agent-gate/index.js';
|