/** Node-only helpers to adopt the org your wallet's agent owns. */ import type { Run402 } from "../index.js"; import type { AdoptResult } from "../namespaces/org.js"; export interface SignOrgAdoptOptions { apiBase?: string; walletPath?: string; /** SIWX chain id; defaults to `eip155:84532`. Not pinned by the gateway (only the nonce is action-bound). */ chainId?: string; issuedAt?: string; expirationTime?: string; } /** * Build the `SIGN-IN-WITH-X` wallet proof for an org adopt: a fresh CAIP-122 * SIWX message carrying the challenge `nonce`, signed by the local wallet. * The gateway binds the action/wallet/org/expiry server-side via the nonce, so * there is no canonical statement to match (simpler than `signCiDelegation`). */ export declare function signOrgAdopt(nonce: string, opts?: SignOrgAdoptOptions): string; export interface AdoptOrgOptions { /** * The wallet (0x EVM address) whose agent-owned org to adopt. Defaults to the * active wallet address — the proof is always signed by the active wallet, * so an override must match the active wallet (select it via `--wallet`). */ wallet?: string; /** Org id to adopt — supply only on the second round, after a `select_org` result. */ orgId?: string; /** Optional label to set on the adopted org. `null`/`""` clears. */ displayName?: string | null; /** Override the control-plane session bearer (default: the local live session cache). */ token?: string; apiBase?: string; walletPath?: string; controlPlaneSessionPath?: string; chainId?: string; } /** * Run the full org adopt dance (Node): resolve the human's write-capable * control-plane session from the local cache, request a challenge, sign the * nonce with the active wallet, and submit both proofs. Returns the * discriminated {@link AdoptResult} — a `select_org` result is returned, not * thrown; re-invoke with `{ orgId }` to adopt a specific org (this re-runs a * fresh challenge + signature, which is fine: the nonce is adopt-scoped). * * Does NOT drive the WebAuthn step-up: a stale session surfaces * `StepUpRequiredError` for the caller (CLI) to handle. */ export declare function adoptOrg(r: Run402, opts?: AdoptOrgOptions): Promise; //# sourceMappingURL=org-adopt.d.ts.map