MAP Docs
MOAT

SDKs

Rust, TypeScript and HTTP for MOAT.

Every operation on MOAT is reachable from every shipped SDK plus the raw HTTP wire.

Rust

use map_sdk::Client;
use serde_json::json;

let client = Client::from_env()?;
let resp = client
    .dispatch(
        "MOAT",
        "v1.0.0",
        "policy_evaluation",
        json!({
  "example": true
}),
    )
    .await?;
println!("{:#?}", resp);

TypeScript

import { MapClient } from '@l1fe/map';

const map = new MapClient({
  apiKey:   process.env.MAP_API_KEY!,
  agentDid: process.env.MAP_AGENT_DID!,
  tenantId: 'org_acme'
});

const resp = await map.dispatch({
  protocol:  'MOAT',
  version:   'v1.0.0',
  operation: 'policy_evaluation',
  input:     {
  "example": true
}
});

HTTP wire

POST /v1/dispatch HTTP/2
Host: api.multiagentic.dev
Authorization: Bearer $MAP_API_KEY
X-Agent-Did: $MAP_AGENT_DID
X-Tenant-Id: org_acme
Content-Type: application/json

{
  "protocol": "MOAT",
  "version": "v1.0.0",
  "operation": "policy_evaluation",
  "input": {
    "example": true
  },
  "tenant_id": "org_acme"
}

All operations

  • map.dispatch(...) with operation "policy_evaluation" — Evaluate a request against the active treaty envelope between two orgs.
  • map.dispatch(...) with operation "violation_detection" — Detect a treaty violation in the audit chain; surfaces to MOOT for arbitration.
  • map.dispatch(...) with operation "policy_update" — Update treaty policy under MACE ratification on both sides.
  • map.dispatch(...) with operation "compliance_query" — Query current compliance posture for a treaty.
  • map.dispatch(...) with operation "compliance_assertion" — Submit a compliance assertion with supporting attestations.

See SDKs for client construction, retry, trace propagation.

On this page