npm.io
1.1.1 • Published 2 weeks ago

@cef-ai/wallet-api-client

Licence
MIT
Version
1.1.1
Deps
0
Size
66 kB
Vulns
0
Weekly
0

@cef-ai/wallet-api-client

The npm package name is @cef-ai/wallet-api-client but the workspace directory is packages/wallet-api-client/ for historical reasons.

A typed REST client for the wallet-api passkey, applications, and delegations endpoints. Workspace-internal: consumed by @cef-ai/wallet-identity and @cef-ai/wallet. Not published to npm.

Quick start

import { ApiClient } from '@cef-ai/wallet-api-client';

const api = new ApiClient({ baseUrl: 'https://wallet-api.example.com' });
const start = await api.passkey.registerStart({ addresses, label: 'my-device' });

Endpoint groups

  • passkey — WebAuthn registration & authentication challenge endpoints.
  • applications — host-app context records (save / find).
  • delegations — scoped delegation tokens issued via the consent flow.
  • jwks — JWKS endpoint for verifying delegation JWTs.
  • session — cookie-credentialed session resume (refresh) and teardown (logout) using the wallet-origin refresh cookie; no Authorization header.

Errors

Endpoint methods throw WalletError (re-exported from this package) on RFC 7807 problem responses. The error code is normalized to one of WALLET_ERROR_CODES.

Status

Workspace-internal — not published to npm. See the embed-sdk README.md for the publish-prep plan.