Migrating from 0.x
Calimero 1.0 is a different node: no /admin-api, /jsonrpc, /ws, /sse, mero-auth or
/auth/token; no relays, delegated execution or authorProof; no /api/cloud/*. The SDK’s
0.x clients are gone with it.
| 0.x | 1.0 |
|---|---|
Mero, MeroConfig, AdminApi, AuthApi, RpcClient, SseClient, WsClient |
CalimeroClient |
username/password, /auth/token, JWT |
passkeys (PlatformPasskey, SoftPasskey), CalimeroSession |
CloudClient, wallet enrolment, DeviceCert |
signUp / signIn with a passkey on the cluster |
RelayClient, warrants, DelegatedClient |
none: the client talks to the cluster over the sealed channel |
| namespace / group / context / application | organization / team / app instance / package |
rpc.execute, /admin-api/contexts/{id}/query |
call (/intents), view (/views) |
/admin-api/tee/attest |
GET /attestation (fetchAttestedKey) |
| admin-dashboard approvals | the node’s consent page (client.consent.pageCreate, openConsentPage) |
MeroClient (compose), LoginSheet, invitation flows, state holders |
MeroAppSession, ConsentLauncher |
FakeNode, FakeCloud (testkit) |
InMemoryAppBackend |
App-facing breaks
Section titled “App-facing breaks”Apps on MeroAppSession / MeroAppBackend keep their method names; these changed:
MeroAppSession.create(context, packageName, callbackUrl, config, …):configis nowMeroAppConfig(nodeUrl, nodes, policy, httpClient)(requirednodeUrl);walletUrlis gone;callbackUrlis now where the consent page returns.MeroAppSession(client: CalimeroClient, packageName, callbackUrl, store, …);clientis aCalimeroClient.signIn(context)opens the passkey sheet (an Activity);signUp(context, name)andsignIn(passkey)/signUp(passkey, name)are new.createInvitationreturns, andjoinNamespacetakes, anOrgInvitation(wasSignedGroupOpenInvitation). Link payload:{"invitation":"inv_…","namespaceId":"<org>",…}.GovernanceMemberRolemoved tocom.calimero.mero.app.NoRelayException/NoRelayContextContract→SignedOutException/SignedOutContextContract(rename them: the deprecated aliases are removed).- Subgroup group ids are
"{orgId}/{teamId}";AppSubgroupgainedisPublic;AppContextEventgaineddataandid. hasRelayandcanSubscribearetruewhenever signed in;didJoinNamespace()only bumpsrevision;AppFoundedNamespace.haEnabledandAppJoinedNamespace.publishedare alwaystrue.