diff --git a/docs/agents/agent-delegation.mdx b/docs/agents/agent-delegation.mdx index c53eca52..3d7ba798 100644 --- a/docs/agents/agent-delegation.mdx +++ b/docs/agents/agent-delegation.mdx @@ -6,7 +6,7 @@ icon: handshake Use `agent-delegation` so an account can **approve what an agent is allowed to do**. Registration (`agent-identity`) alone does not grant those permissions. -In API payloads, the field name stays **`controllerWallet`** — that value is the **approving account** wallet (who signs this step). See [Agent concepts](./concepts). +In API payloads, the field name is **`controllerWallet`**. It represents the **approving account** wallet (the account that signs this step). See [Agent concepts](./concepts). **Verifier ID:** `agent-delegation` diff --git a/docs/agents/agent-verification-flow.mdx b/docs/agents/agent-verification-flow.mdx index d144360a..36635ead 100644 --- a/docs/agents/agent-verification-flow.mdx +++ b/docs/agents/agent-verification-flow.mdx @@ -50,7 +50,7 @@ When `neus_agent_link` (MCP) returns `status: "link_required"`, the default path 2. Finish the guided browser flow. 3. Call `neus_agent_link` again to confirm identity and access approval are both on file. -You do not need to build or manage the hosted URL yourself for the normal MCP path. The tool name is legacy; it checks **readiness**, not wallet linking. +You do not need to build or manage the hosted URL yourself for the normal MCP path. This tool is a **readiness check** (identity + permissions), not a wallet-linking flow. ## Related pages diff --git a/docs/cookbook/hub-integrator.mdx b/docs/cookbook/hub-integrator.mdx index 7a58af9b..f6c7eb2e 100644 --- a/docs/cookbook/hub-integrator.mdx +++ b/docs/cookbook/hub-integrator.mdx @@ -5,7 +5,7 @@ icon: building --- - **First time?** Complete **[Get started](../get-started)** (platform profile, **Apps** → Link app, credits, `appId`, sponsor). The sections below cover domain, org, VerifyGate, and sponsor grants in detail. + **First time?** Complete **[Get started](../get-started)** first. This guide then covers domain trust, organization checks, app attribution, VerifyGate, and sponsor grants in production. Use this guide when you are connecting a website, community, app, team, or partner flow to NEUS. After **[Get started](../get-started)**, you will use hosted verify, save proof receipt IDs, and reuse them across profile trust, gating, and attribution. @@ -104,18 +104,18 @@ You typically do not need your own Google or Microsoft OAuth app to use the host ## 3. Link the app or site on the platform -Link your integration domain on the **NEUS platform** to receive attribution, usage tracking, and credit controls: +Link your integration domain on the **NEUS platform** so usage, attribution, and billing controls stay attached to the correct product: | Step | Action | |------|--------| -| 1 | Go to the [NEUS platform](https://neus.network/hub) → Profile → Apps | +| 1 | Open the [NEUS platform](https://neus.network/hub) and start app linking | | 2 | Enter app domain, for example `app.example.com` or `https://app.example.com` | | 3 | Set daily credit cap | | 4 | Use `*` for any origin only in development | | 5 | Send `X-Neus-App` and `Origin` headers from your approved domain | - Explorer, profile tabs, and identity management. + Profile, app attribution, credits, and proof visibility. ## 4. App Attribution (API) @@ -146,17 +146,17 @@ You can combine these capabilities into one portable verified profile: - public, private, and unlisted proof visibility - proof pages and your platform profile -On the platform, the most common flows are: +Typical platform tasks include: | Flow | Where | Notes | |------|-------|------| -| Domain | Profile -> Identity -> Domains | Add DNS TXT at `_neus.` first | -| Organization | Profile -> Identity -> Organizations | Hosted NEUS verify for Google Workspace or Microsoft 365 | -| Username | Profile / Claim flows | Portable handle and namespace claims | -| Linked wallets | Profile identity flows | Multiple wallets as one linked identity | +| Domain | Identity settings | Add DNS TXT at `_neus.` first | +| Organization | Identity settings | Hosted NEUS verify for Google Workspace or Microsoft 365 | +| Username | Claim flows | Portable handle and namespace claims | +| Linked wallets | Identity settings | Multiple wallets as one linked identity | | Privacy | Per proof | Public, private, or unlisted proof visibility | -Link the app first in Profile -> Apps, then connect whichever trust signals your product actually needs. +Link the app first, then connect only the trust signals your product needs. ## 6. Hosted Verify for Interactive Flows diff --git a/docs/cookbook/mcp.mdx b/docs/cookbook/mcp.mdx index a8751629..e49c81e7 100644 --- a/docs/cookbook/mcp.mdx +++ b/docs/cookbook/mcp.mdx @@ -1,13 +1,14 @@ --- title: MCP Server -description: Hosted NEUS MCP — connect AI clients to verification tools. +description: Connect AI clients to NEUS verification tools and hosted verification flows. icon: plug --- -- **[Get started](../get-started)** — platform + billing before heavy MCP use -- **[Overview](../mcp/overview)** — default flow (hosted links first) -- **[Setup](../mcp/setup)** — one JSON block -- **[Tools](../mcp/tools)** — parameter names -- **[Auth](../mcp/auth)** — Bearer when you need sign-in +This entry point has moved to the MCP section: + +- **[MCP overview](../mcp/overview)** — end-to-end flow +- **[Setup](../mcp/setup)** — connection config +- **[Tools](../mcp/tools)** — tool selection and fields +- **[Auth](../mcp/auth)** — signed-in and public access patterns Also: [API authentication](../api/authentication) · [VerifyGate](../widgets/verifygate) · [Verifiable agents](./verifiable-agents) diff --git a/docs/docs.json b/docs/docs.json index 3d79b10a..a4f0244a 100644 --- a/docs/docs.json +++ b/docs/docs.json @@ -160,7 +160,7 @@ "pages": ["api/overview", "api/authentication", "api/errors"] }, { - "group": "Operations", + "group": "Production", "pages": [ "platform/billing", "platform/environments", diff --git a/docs/ecosystems/overview.mdx b/docs/ecosystems/overview.mdx index abd77c82..c6de8f45 100644 --- a/docs/ecosystems/overview.mdx +++ b/docs/ecosystems/overview.mdx @@ -1,10 +1,10 @@ --- -title: Apps & Ecosystems -description: Build websites, communities, apps, partner flows, and agents on the same NEUS proof receipt model. +title: Ecosystems +description: Integration entry points for websites, communities, apps, partners, and agents. icon: blocks --- -Integration docs for public apps, partner flows, communities, and agents. +This section maps common ecosystem integration goals to the right documentation path. ## Core Docs @@ -13,7 +13,7 @@ Integration docs for public apps, partner flows, communities, and agents. Match your use case to the right integration path. - Domain, app, and rollout setup for public integrations. + Production setup for apps, teams, and partner flows. Review the full capability catalog. diff --git a/docs/ecosystems/verifiers.mdx b/docs/ecosystems/verifiers.mdx index dc9a3f20..e189594f 100644 --- a/docs/ecosystems/verifiers.mdx +++ b/docs/ecosystems/verifiers.mdx @@ -1,31 +1,31 @@ --- title: Ecosystem Capability Index -description: Main public entry points for NEUS capabilities, partner onboarding, and ecosystem integrations. +description: Choose the right capability and guide for ecosystem integrations. icon: diagram-project --- -Core entry points for verifier selection, partner setup, proof receipts, and integration guides. +Use this page to choose the right reference page for your integration outcome. -## Core Pages +## Choose by goal - Capability list with use cases and completion types. + Select verifier IDs and required inputs by capability. - Production onboarding for websites, communities, apps, teams, and partner flows. + Production onboarding for apps, communities, and partner programs. - Learn what to save, how to reuse proof receipts, and what to show in your UI. + Learn what to store, what to display, and how to reuse proof receipts safely. - Implementation guides for gating, onboarding, agents, and portability. + Implementation guides for access, onboarding, and agent workflows. -## Use Each Page For +## When to open each page -- Use Verifier Catalog to choose the right capability for your product. -- Use Partner Setup when connecting a website, app, team, or community flow. -- Use Proof Receipts when you need to store and reuse verification results. -- Use Use Cases for step-by-step implementation guides. +- Open **Verifier Catalog** when you need the right verifier IDs and payload fields. +- Open **Partner Setup** when you are preparing production onboarding and billing. +- Open **Proof Receipts** when you need a storage and lifecycle strategy. +- Open **Use Cases** when you want a guided implementation pattern. diff --git a/docs/get-started.mdx b/docs/get-started.mdx index 00efb701..eaab6473 100644 --- a/docs/get-started.mdx +++ b/docs/get-started.mdx @@ -1,51 +1,52 @@ --- title: Get started -description: NEUS platform profile, app linking, credits, sponsor grants, and your first integration. +description: Set up your NEUS account, app attribution, billing model, and first production integration. icon: book --- -Follow this checklist when **shipping a product** that uses NEUS for verification, gating, or login. If you are **experimenting solo** with your own wallet, start with **[Quickstart](./quickstart)** and add platform setup when you publish an app. +Use this checklist when you are shipping a product that relies on NEUS for verification, gating, or login. +If you are experimenting with your own wallet, start with **[Quickstart](./quickstart)** and return here before production launch. -## 1. Create your NEUS profile +## 1. Create your account -1. Open the **[NEUS platform](https://neus.network/hub)** and sign in (passkey or wallet). -2. You will use **Profile** for app linking, **Credits** for balance, and **Identity** when you need domains or org proofs later. +1. Sign in to the **[NEUS platform](https://neus.network/hub)** with passkey or wallet. +2. Confirm the wallet that should own your integration and billing setup. -## 2. Link your app (Apps tab) +## 2. Register your integration and capture `appId` -This follows the **Link app** flow: domain, daily cap, and wallet signature. +Register the domain(s) your product will use, choose a daily credit cap, and complete the ownership signature step. -1. Go to **`https://neus.network/profile?tab=apps`** (Profile → **Apps**). -2. Open **Link app** / **Manage app**. -3. Enter your **app domain** (e.g. `acme.com` or `https://app.acme.com`). -4. Set a **daily credit cap** (protects you from runaway usage). -5. Complete the steps in the modal (wallet sign-in as needed). +When registration succeeds, NEUS issues an **`appId`** for that integration. Send it as **`X-Neus-App`** on API traffic (the SDK maps this automatically). -When linking succeeds, you get an **`appId`** to send as **`X-Neus-App`** on API traffic from that integration. The SDK maps this automatically: +Direct URL for the app registration surface: + +`https://neus.network/profile?tab=apps` + +SDK example: ```javascript import { NeusClient } from '@neus/sdk'; const client = new NeusClient({ - appId: 'your-app-id', // same value as X-Neus-App + appId: 'your-app-id', // same value sent as X-Neus-App }); ``` - **`appId`** is for **attribution** (which product called NEUS). It does **not** by itself move every bill to your org. To **pay for users** from your balance, add a **sponsor grant** (step 4). + **`appId`** is an attribution identifier (which product made the request). + It does **not** by itself move charges to your organization wallet. Use sponsor grants when you want to pay on behalf of users. -## 3. Add credits (Credits tab) +## 3. Fund the wallet that will pay -1. On the platform, open **Credits** and keep a balance on the **wallet that should pay** for your integration. -2. If you only use **user self-pay** (each end user’s wallet pays), you still need credits on **their** side when they sign requests—see **[Billing](./platform/billing)**. +1. Keep credits on the wallet that should pay for your integration. +2. If users self-pay, they need their own credits for signed paid calls. See **[Billing](./platform/billing)**. -## 4. Sponsor users +## 4. Decide your billing model (`sponsorGrant` if you pay) -For products where end users should **not** manage NEUS credits: +If your product should pay verification costs for end users, issue short-lived sponsor grants and pass them to the SDK as **`sponsorGrant`** (maps to **`X-Sponsor-Grant`**). -1. Keep your org wallet funded (step 3). -2. Issue **short-lived sponsor grants** and pass them to the SDK as **`sponsorGrant`** (sends **`X-Sponsor-Grant`**). +If users should self-pay, do not send sponsor grants. ```javascript const client = new NeusClient({ @@ -54,9 +55,9 @@ const client = new NeusClient({ }); ``` -Grant issuance and caps: **[Partner setup](./cookbook/hub-integrator)** (sponsor section) and **[Billing](./platform/billing)**. +Grant issuance and caps: **[Partner setup](./cookbook/hub-integrator)** and **[Billing](./platform/billing)**. -## 5. Choose an integration +## 5. Choose your integration path | Option | When | Next step | |---------|------|-----------| @@ -68,17 +69,18 @@ Grant issuance and caps: **[Partner setup](./cookbook/hub-integrator)** (sponsor Not sure? **[Choose an integration path](./choose-an-integration-path)**. -## 6. Production checklist +## 6. Production readiness checklist -- [ ] App linked on the platform with a realistic **daily cap** -- [ ] **Credits** on the wallet that should pay (you or users, per your model) -- [ ] **`appId`** on the client; **`sponsorGrant`** if **you** pay for metered calls -- [ ] **[Billing](./platform/billing)** understood (visibility vs who pays) -- [ ] If you see **402**, see **[x402](./platform/x402)** for pay-per-use retries +- [ ] Integration domain is registered with a realistic daily cap +- [ ] Paying wallet has credits (yours or users', based on your model) +- [ ] Client sends **`appId`** and uses **`sponsorGrant`** only when sponsoring +- [ ] Team understands **[Billing](./platform/billing)** and **[x402](./platform/x402)** behavior +- [ ] Verification receipts are stored and reused in your product logic ## Without a linked app -Use **[Quickstart](./quickstart)** and **[Hosted Verify](./cookbook/auth-hosted-verify)**. Add **Apps** and **sponsor grants** on the platform when you publish an app that should pay for others. +Use **[Quickstart](./quickstart)** and **[Hosted Verify](./cookbook/auth-hosted-verify)** for early testing. +Before launch, register your integration and add sponsor grants if your app will cover user costs. ## Related diff --git a/docs/index.mdx b/docs/index.mdx index c3d6263f..f80b4d2f 100644 --- a/docs/index.mdx +++ b/docs/index.mdx @@ -9,30 +9,15 @@ icon: house Verify once, get a portable proof receipt, reuse it everywhere — gate access, attach proof to content, register agents, share results without exposing raw data. Private by default. - -## How it works - -1. **Verify** — User completes verification (hosted UI, wallet, or social). -2. **Save** — You store the proof receipt ID. -3. **Reuse** — Same proof for login, gating, policy, and agents. - - + + First proof in 5 minutes. + Builders: platform, app link, billing, first integration. Pick Hosted Verify, Widgets, SDK, API, or MCP. - - First proof in 5 minutes. - First proof with code. - - - No-code verification UI. - - - Platform, billing, app setup. - ## How it works diff --git a/docs/mcp/agent-link.mdx b/docs/mcp/agent-link.mdx index 09cc12b9..708ac760 100644 --- a/docs/mcp/agent-link.mdx +++ b/docs/mcp/agent-link.mdx @@ -1,10 +1,10 @@ --- title: Agent readiness (`neus_agent_link`) -description: Check agent wallet has identity + approved access (legacy tool name). +description: Check whether an agent wallet has identity + approved access. icon: robot --- -**Readiness check** for **`agentWallet`**: identity and delegation on file? +`neus_agent_link` is a **readiness check** for **`agentWallet`**: are identity and delegation already on file? - **`linked: true`** (compat) → treat as **ready**. - **`link_required`** → open **`hostedVerifyUrl`** / follow **`nextSteps`**. diff --git a/docs/mcp/auth.mdx b/docs/mcp/auth.mdx index e349ab37..09cf9c7f 100644 --- a/docs/mcp/auth.mdx +++ b/docs/mcp/auth.mdx @@ -4,9 +4,9 @@ description: When you need sign-in and what stays public. icon: lock --- -**No API key** for the hosted MCP. **Hosted links** and **public lookups** cover the usual case. **`neus_me`** and **private** proof reads need the user **signed in**. +**No API key** for the hosted MCP. **Hosted verification links** and **public lookups** cover most use cases. **`neus_me`** and **private proof reads** require a signed-in session. -**URL-only MCP:** tools may return **`https://neus.network/verify`** — the user opens it. That does **not** sign the IDE into NEUS by itself. +If you connect using only the MCP URL, tools can still return **`https://neus.network/verify`** links for browser completion. That browser step does not automatically sign your IDE session into NEUS. **Your app already has a NEUS session:** if the client supports headers, send the same **`Authorization: Bearer `** you use for the API ([SDK Authentication](../sdks/authentication)) on MCP requests. Call **`neus_me`** to confirm. diff --git a/docs/mcp/me.mdx b/docs/mcp/me.mdx index 83530171..9357bf40 100644 --- a/docs/mcp/me.mdx +++ b/docs/mcp/me.mdx @@ -4,7 +4,7 @@ description: Signed-in NEUS user when MCP sends a session. icon: user-circle --- -Needs **`Authorization: Bearer`** on the MCP connection ([Auth](./auth)). **URL-only** MCP → **`auth_required`** (expected). +Needs **`Authorization: Bearer`** on the MCP connection ([Auth](./auth)). If your MCP connection only includes the URL, the tool returns **`auth_required`** (expected). For “verify me” without a session: **`neus_verify_or_guide`** + hosted link; lookups: **`neus_proofs_get`** when you have an id. diff --git a/docs/mcp/overview.mdx b/docs/mcp/overview.mdx index 3cd1d73c..da9b7a38 100644 --- a/docs/mcp/overview.mdx +++ b/docs/mcp/overview.mdx @@ -8,7 +8,7 @@ icon: plug **Connection URL:** `https://mcp.neus.network/mcp` -Add it **once** in your MCP client—see **[Setup](./setup)** for the exact JSON. Nothing else is required to connect. +Add it **once** in your MCP client—see **[Setup](./setup)** for the configuration block. Nothing else is required to connect. ## Recommended workflow @@ -16,7 +16,7 @@ Add it **once** in your MCP client—see **[Setup](./setup)** for the exact JSON 2. **Your product already logs users into NEUS** — Use the same **`Authorization: Bearer`** session on the MCP connection as in [SDK Authentication](../sdks/authentication). Then **`neus_me`** and private reads work—**[Auth](./auth)**. 3. **Look up public proof history** — Only when you **already have** an address or id from NEUS (or the user pasted it), use **`neus_proofs_get`**. Field names differ by tool—see **[Tools](./tools)**. -The URL-only install does **not** sign the chat into NEUS by itself. +Connecting with only the MCP endpoint URL does **not** sign the chat session into NEUS by itself. | Goal | Tool | |------|------| @@ -36,7 +36,7 @@ Always **open** hosted URLs tools return—do not invent extra steps. ## Next - **[Get started](../get-started)** — platform + billing before scale -- **[Setup](./setup)** — one copy-paste config +- **[Setup](./setup)** — quick configuration block - **[Tools](./tools)** — parameter names - **[Auth](./auth)** — sessions and privacy - **[Hosted Verify](../cookbook/auth-hosted-verify)** — browser verification flow diff --git a/docs/mcp/setup.mdx b/docs/mcp/setup.mdx index 0eac710b..5869bb36 100644 --- a/docs/mcp/setup.mdx +++ b/docs/mcp/setup.mdx @@ -1,6 +1,6 @@ --- title: Setup -description: Copy-paste setup for the hosted NEUS MCP endpoint. +description: Quick setup for the hosted NEUS MCP endpoint. icon: code --- @@ -8,7 +8,7 @@ icon: code ## Connect -Paste this into your MCP settings (Cursor, Claude Desktop, VS Code, or any client that supports HTTP MCP). Use the URL **exactly** as shown, including `/mcp`. +Add this configuration to your MCP settings (Cursor, Claude Desktop, VS Code, or any client that supports HTTP MCP). Use the URL exactly as shown, including `/mcp`. ```json { @@ -22,7 +22,7 @@ Paste this into your MCP settings (Cursor, Claude Desktop, VS Code, or any clien } ``` -Reload the client if it asks. **No API key.** +Reload the client if prompted. **No API key is required.** **Self-hosted only:** `npx @neus/mcp-server` — most people use the hosted URL above. diff --git a/docs/mcp/tools.mdx b/docs/mcp/tools.mdx index 4a377a86..3f449839 100644 --- a/docs/mcp/tools.mdx +++ b/docs/mcp/tools.mdx @@ -4,7 +4,7 @@ description: Which NEUS tool to call for checks, verification, and agents. icon: wrench --- -**Platform + billing:** **[Get started](../get-started)**. **`neus_proofs_check`** accepts **`sponsorGrant`** for higher-limit / sponsored scans when your setup uses grants. +**Platform + billing:** **[Get started](../get-started)**. **`neus_proofs_check`** accepts **`sponsorGrant`** for sponsored or higher-limit scans when your setup uses grants. The **assistant** chooses tools; you mainly **open links** they return. For **“verify it’s me”**, prefer anything that hands you a **`neus.network/verify`** URL. diff --git a/docs/mcp/verifiers-catalog.mdx b/docs/mcp/verifiers-catalog.mdx index 7c6c27a5..be1c1f04 100644 --- a/docs/mcp/verifiers-catalog.mdx +++ b/docs/mcp/verifiers-catalog.mdx @@ -4,7 +4,7 @@ description: Live verifier IDs and metadata from NEUS. icon: table --- -Call before hardcoding **`verifierIds`** / policy — list is always current. +Call this before hardcoding **`verifierIds`** or policy rules so your integration stays aligned with the current catalog. ## Input @@ -14,4 +14,4 @@ Call before hardcoding **`verifierIds`** / policy — list is always current. ## Output -Array of verifiers (id, labels, flow hints, etc.) plus **`meta.count`**. Full shape comes from the tool schema on the wire. +An array of verifiers (id, labels, flow hints, and more) plus **`meta.count`**. The full response shape is defined by the tool schema. diff --git a/docs/openapi/public-api.json b/docs/openapi/public-api.json index 97ef04ab..af254962 100644 --- a/docs/openapi/public-api.json +++ b/docs/openapi/public-api.json @@ -3,7 +3,7 @@ "info": { "title": "NEUS Network — Public Integrator API", "version": "1.0.0", - "description": "Public HTTP API for NEUS integrators.\n\nDescribes request and response shapes for the product API. Use your deployment base URL (for example https://api.neus.network).\n\nSome verifiers require pro access. Administrative endpoints are not included in this specification.", + "description": "Public HTTP API for NEUS integrators.\n\nDescribes request and response shapes for the product API. Use your deployment base URL (for example https://api.neus.network).\n\nSome verifiers require Pro access.", "license": { "name": "Business Source License 1.1", "url": "https://mariadb.com/bsl11/" @@ -529,7 +529,7 @@ "contentHash": { "type": "string", "pattern": "^0x[a-fA-F0-9]{64}$", - "description": "Pre-computed verifier content hash (32-byte hex). Treated as the standardized verifierContentHash for ownership-basic; if content is also provided, the verifier integrity-checks that they match." + "description": "Pre-computed content hash (32-byte hex). If content is also provided, NEUS verifies that both values match." }, "contentType": { "type": "string", @@ -1085,7 +1085,7 @@ }, "agentChainRef": { "type": "string", - "description": "Required when using legacy agentWallet without agentAccountId.", + "description": "Required when using agentWallet with no agentAccountId.", "pattern": "^[a-z0-9]+:[a-zA-Z0-9._-]+$" }, "agentWallet": { @@ -1254,7 +1254,7 @@ }, "controllerChainRef": { "type": "string", - "description": "Required when using legacy controllerWallet without controllerAccountId.", + "description": "Required when using controllerWallet with no controllerAccountId.", "pattern": "^[a-z0-9]+:[a-zA-Z0-9._-]+$" }, "controllerWallet": { @@ -1268,7 +1268,7 @@ }, "agentChainRef": { "type": "string", - "description": "Required when using legacy agentWallet without agentAccountId.", + "description": "Required when using agentWallet with no agentAccountId.", "pattern": "^[a-z0-9]+:[a-zA-Z0-9._-]+$" }, "agentWallet": { diff --git a/docs/platform/how-verification-works.mdx b/docs/platform/how-verification-works.mdx index eed25419..4dbd3b26 100644 --- a/docs/platform/how-verification-works.mdx +++ b/docs/platform/how-verification-works.mdx @@ -1,20 +1,11 @@ --- title: How Verification Works -description: The request, signer, verifier, hosted interaction, and receipt model behind NEUS verification. +description: How requests become reusable proof receipts, from verification to reuse. icon: shield-check --- -Quick reference for the verification flow. - -## In Short - -- Your app starts a verification request. -- The user completes the required step, such as signing, linking an account, or finishing a hosted check. -- NEUS runs the verifier and returns a proof receipt ID. -- Your app saves that proof receipt ID for future checks, proof pages, and product access. - -## Read the Full Guide +This page has moved to the full guide: - Full explanation of hosted flows, signing, async checks, and proof receipts. + See the complete flow, lifecycle, and implementation details in one place. diff --git a/docs/platform/hub.mdx b/docs/platform/hub.mdx index ca71d645..8cdb5780 100644 --- a/docs/platform/hub.mdx +++ b/docs/platform/hub.mdx @@ -6,27 +6,27 @@ icon: user-circle The **NEUS platform** (sign in at `https://neus.network/hub`) is where you manage your profile, proofs, apps, and credits. -## Apps and organizations +## What to complete before launch -1. Open **Profile** → **Apps** (`https://neus.network/profile?tab=apps`). -2. Use **Link app** to register your domain, set a **daily credit cap**, and complete signing in the modal. -3. Top up **Credits** on the wallet that should pay for your integration. -4. Continue with the full checklist: **[Get started](../get-started)**. +1. Register each production domain used by your integration. +2. Set a daily credit cap that matches expected traffic. +3. Fund the wallet that should pay for verification requests. +4. Continue with the full onboarding checklist: **[Get started](../get-started)**. -**Apps** is where **`appId`** / **`X-Neus-App`** alignment and sponsor setup begin; see **[Billing](./billing)** for who pays. +Use your issued **`appId`** as **`X-Neus-App`** in API traffic. If you sponsor users, pair it with **`sponsorGrant`**. See **[Billing](./billing)** for payment models. --- -## Tabs and flows +## What you can manage -| Tab | Purpose | +| Area | Purpose | |-----|---------| -| **Dashboard** | Quick actions and proof summary | -| **Identity** | Domains, social proofs, and privacy settings | -| **Agents** | Agent registration and delegation | -| **Apps** | Domain linking and app attribution | -| **Credits** | Balance and top-ups | -| **Activity** | History and usage | +| **Dashboard** | Account snapshot and recent activity | +| **Identity** | Domain and account proofs with privacy controls | +| **Agents** | Agent registration and delegation management | +| **Apps** | Domain-linked app attribution and limits | +| **Credits** | Balance management and top-ups | +| **Activity** | Request and verification history | --- @@ -58,7 +58,7 @@ Shows: - Builder checklist on the platform. + Production onboarding checklist. What to save and reuse. diff --git a/docs/platform/presets.mdx b/docs/platform/presets.mdx index 14944ccd..88701af4 100644 --- a/docs/platform/presets.mdx +++ b/docs/platform/presets.mdx @@ -26,7 +26,7 @@ Optional params: `returnUrl`, `gateId`, `mode=popup`, `origin`. |-----------|-----------|----------| | `basic-pack` | Ownership and provenance | Publish a proof-backed claim, file, or artifact | | `human-pack` | Human verification | Add stronger anti-bot or uniqueness checks | -| `project-pack` | Project operator trust | Verify project legitimacy through operator and domain trust | +| `project-pack` | Project ownership trust | Verify project legitimacy through ownership and domain trust | | `creator-pack` | Content trust | Pair ownership and provenance with content safety review | | `agent-pack` | Agent setup | Register an agent, set permissions, and add a safety screen | | `holder-pack` | Holder access | Gate access by holdings with an added safety screen | diff --git a/docs/platform/signing-format.mdx b/docs/platform/signing-format.mdx index e023bda9..e2ded76f 100644 --- a/docs/platform/signing-format.mdx +++ b/docs/platform/signing-format.mdx @@ -1,19 +1,19 @@ --- -title: Signing Format -description: Why verification requests require a wallet signature and how to sign the deterministic message. +title: Signing requests +description: Signing requests for verification and where to find the complete technical reference. icon: file-code --- -Quick reference for NEUS signing. +Use this page to understand when signing is required and where to find implementation details. -## In Short +## Summary -- NEUS generates the exact message that must be signed. -- The wallet signs that exact message. -- Your app sends the signed request back to NEUS to create the proof receipt. +- NEUS generates a deterministic message for verification requests. +- The user signs that message with their wallet. +- Your app submits the signed request and receives a proof receipt ID. -## Read the Full Guide +## Full reference - - Full guide for hosted, SDK, and advanced HTTP signing flows. + + Complete signing reference for hosted, SDK, and advanced API integrations. diff --git a/docs/platform/verification-lifecycle.mdx b/docs/platform/verification-lifecycle.mdx index ea5eb6cf..1a7cf3d7 100644 --- a/docs/platform/verification-lifecycle.mdx +++ b/docs/platform/verification-lifecycle.mdx @@ -1,20 +1,28 @@ --- title: Verification Lifecycle -description: Creation, async processing, status polling, reuse policy, and revocation for NEUS proofs. +description: How proof receipts move from request to reusable verification state. icon: clock-rotate --- -Quick reference for proof creation, processing, reuse, and revocation. +Use this page when you need a quick production checklist for proof status, retries, reuse, and revocation. -## In Short +## Lifecycle at a glance -- A request is created. -- Some verifiers finish immediately and others move through async status updates. -- Your app can poll status when a flow is still processing. -- Completed proofs can be checked, reused, or revoked later. +1. **Submit a verification request** from hosted verify, SDK, or API. +2. **Track status** until the proof is complete for async verifiers. +3. **Store the proof receipt ID** (`proofId`) for future checks. +4. **Reuse the receipt** for access control and policy checks. +5. **Revoke only when needed** for policy or account changes. -## Read the Full Guide +## Status handling guidance - - Full lifecycle guide for statuses, polling, reuse, and revocation. +- Expect both immediate and asynchronous completions depending on verifier type. +- Poll status only while a flow is in progress. +- Use idempotent retry patterns for transient failures. +- Treat completed proof receipts as stable application records. + +## Full lifecycle reference + + + Detailed status model, polling behavior, reuse policy, and revocation semantics. diff --git a/docs/platform/verifiers.mdx b/docs/platform/verifiers.mdx index 83755055..39a67f51 100644 --- a/docs/platform/verifiers.mdx +++ b/docs/platform/verifiers.mdx @@ -1,19 +1,35 @@ --- title: Verifiers -description: How to choose the right NEUS capability for your product flow. +description: Choose the right verification capability and understand how to apply it in product flows. icon: tags --- -Quick reference for verifier selection. +Use this page when you need a practical decision guide before opening the full reference. -## In Short +## Start from the user outcome -- Identify the proof or policy outcome required. -- Match that outcome to the correct verifier. -- Save the proof receipt ID after completion so the result can be reused. +1. Define what must be true for access, trust, or compliance. +2. Select the verifier that proves that outcome. +3. Save the returned proof receipt ID and reuse it in checks, UI, and policy decisions. -## Open the Verifier Catalog +## Common goals + +| Goal | Typical verifier(s) | +|------|----------------------| +| Confirm a real person | `proof-of-human` | +| Check token or NFT access | `token-holding`, `nft-ownership` | +| Verify ownership of content or identity | `ownership-basic`, `ownership-social`, `ownership-org-oauth` | +| Confirm domain ownership | `ownership-dns-txt` | +| Register and delegate agents | `agent-identity`, `agent-delegation` | + +## Selection tips + +- Prefer the smallest verifier set that satisfies your policy. +- Use hosted verification for interactive steps such as social or organization checks. +- Use fresh proofs only for high-stakes operations; reuse existing receipts for routine checks. + +## Open the full catalog - Browse the full verifier list with use cases, inputs, and expected results. + Browse all verifiers with inputs, flow type, and integration guidance. diff --git a/docs/sdks/javascript.mdx b/docs/sdks/javascript.mdx index a0f7734a..2b4baa44 100644 --- a/docs/sdks/javascript.mdx +++ b/docs/sdks/javascript.mdx @@ -26,7 +26,8 @@ const res = await client.verify({ content: 'Hello NEUS' }); -// Proof ID (standard SDK field). HTTP paths may carry the same receipt as {qHash}. +// proofId is the primary SDK field for this receipt. +// In HTTP endpoints, the same identifier may appear as {qHash}. const proofId = res.proofId; const status = await client.getStatus(proofId); ``` diff --git a/docs/verification/contract-ownership.mdx b/docs/verification/contract-ownership.mdx index df18bae5..c0b19cbd 100644 --- a/docs/verification/contract-ownership.mdx +++ b/docs/verification/contract-ownership.mdx @@ -1,5 +1,5 @@ --- -title: Project Operator Verification +title: Contract Ownership Verification description: Prove that a wallet controls a smart contract through owner or admin authority. icon: file-contract --- @@ -35,4 +35,4 @@ Lookup. NEUS checks owner or admin authority on-chain. } ``` -This proof can be reused for project trust pages, operator onboarding, and app attribution workflows. +This proof can be reused for project trust pages, contributor onboarding, and app attribution workflows. diff --git a/docs/verification/verifiers.mdx b/docs/verification/verifiers.mdx index 699dfd2c..d2b3cf7a 100644 --- a/docs/verification/verifiers.mdx +++ b/docs/verification/verifiers.mdx @@ -50,7 +50,7 @@ Pick the verification that matches what you need to prove. | Verifier | What It Proves | |----------|----------------| | [ownership-basic](./ownership-basic) | Content or claim ownership | -| [contract-ownership](./contract-ownership) | Contract operator control | +| [contract-ownership](./contract-ownership) | Smart-contract ownership or admin control | ### Access & Monetization diff --git a/docs/verifiers/agent-delegation.md b/docs/verifiers/agent-delegation.md index 154cd2d2..15a42bf2 100644 --- a/docs/verifiers/agent-delegation.md +++ b/docs/verifiers/agent-delegation.md @@ -15,10 +15,10 @@ Delegates authority to an agent, ERC-8004 compatible ## Optional fields - `controllerAccountId` (`string format caip10-account`): Preferred canonical controller identity (CAIP-10). -- `controllerChainRef` (`string format caip2-chain`): Required when using legacy controllerWallet without controllerAccountId. +- `controllerChainRef` (`string format caip2-chain`): Required when using `controllerWallet` (instead of `controllerAccountId`). - `controllerWallet` (`string format universal-address`) - `agentAccountId` (`string format caip10-account`): Preferred canonical agent identity (CAIP-10). -- `agentChainRef` (`string format caip2-chain`): Required when using legacy agentWallet without agentAccountId. +- `agentChainRef` (`string format caip2-chain`): Required when using `agentWallet` (instead of `agentAccountId`). - `agentWallet` (`string format universal-address`) - `agentId` (`string max 128 min 1`) - `scope` (`string max 128`) diff --git a/docs/verifiers/agent-identity.md b/docs/verifiers/agent-identity.md index 1a331c8c..05f3797a 100644 --- a/docs/verifiers/agent-identity.md +++ b/docs/verifiers/agent-identity.md @@ -15,7 +15,7 @@ Portable agent identity, ERC-8004 compatible ## Optional fields - `agentAccountId` (`string format caip10-account`): Preferred canonical subject identity (CAIP-10). -- `agentChainRef` (`string format caip2-chain`): Required when using legacy agentWallet without agentAccountId. +- `agentChainRef` (`string format caip2-chain`): Required when using `agentWallet` without `agentAccountId`. - `agentWallet` (`string format universal-address`) - `agentLabel` (`string max 128`) - `agentType` (`string enum: ai, bot, service, automation, agent`) diff --git a/docs/verifiers/ownership-basic.md b/docs/verifiers/ownership-basic.md index 47bf08a1..f8785c0f 100644 --- a/docs/verifiers/ownership-basic.md +++ b/docs/verifiers/ownership-basic.md @@ -15,7 +15,7 @@ Content ownership verification with origin lock and optional provenance ## Optional fields - `content` (`string max 50000`): Content being claimed (max 50KB inline) -- `contentHash` (`string pattern ^0x[a-fA-F0-9]{64}$`): Pre-computed verifier content hash (32-byte hex). Treated as the standardized verifierContentHash for ownership-basic; if content is also provided, the verifier integrity-checks that they match. +- `contentHash` (`string pattern ^0x[a-fA-F0-9]{64}$`): Pre-computed 32-byte content hash. If `content` is also provided, NEUS verifies both values match. - `contentType` (`string max 100`): MIME type hint - `reference` (`object`) - `provenance` (`object`) diff --git a/docs/verifiers/ownership-org-oauth.md b/docs/verifiers/ownership-org-oauth.md index 74ae7ff0..ecd13d09 100644 --- a/docs/verifiers/ownership-org-oauth.md +++ b/docs/verifiers/ownership-org-oauth.md @@ -11,7 +11,7 @@ Organizational OAuth verification ## Required fields - `provider` (`string enum: google, microsoft`) -- `internalSocialToken` (`string`) — token from the NEUS-hosted OAuth step (request field name as shown) +- `internalSocialToken` (`string`) — OAuth session token returned by the hosted NEUS flow. This is the current public request field name. ## Optional fields @@ -27,7 +27,7 @@ await client.verify({ verifier: 'ownership-org-oauth', data: { "provider": "google", - "internalSocialToken": "org-token-example", + "internalSocialToken": "oauth-session-token-example", "walletAddress": "0x4444444444444444444444444444444444444444", "expectedOrgDomain": "example.com" } @@ -40,7 +40,7 @@ await client.verify({ ], "data": { "provider": "google", - "internalSocialToken": "org-token-example", + "internalSocialToken": "oauth-session-token-example", "walletAddress": "0x4444444444444444444444444444444444444444", "expectedOrgDomain": "example.com" }, diff --git a/docs/verifiers/ownership-social.md b/docs/verifiers/ownership-social.md index 4e3e2327..12d621da 100644 --- a/docs/verifiers/ownership-social.md +++ b/docs/verifiers/ownership-social.md @@ -11,7 +11,7 @@ Social media account ownership via OAuth ## Required fields - `provider` (`string enum: discord, github, facebook, x, farcaster, linkedin, telegram, coinbase`) -- `internalSocialToken` (`string`) — token from the NEUS-hosted OAuth step (request field name as shown) +- `internalSocialToken` (`string`) — social verification token returned by the NEUS-hosted OAuth step ## Optional fields @@ -26,7 +26,7 @@ await client.verify({ verifier: 'ownership-social', data: { "provider": "discord", - "internalSocialToken": "social-token-example", + "internalSocialToken": "", "walletAddress": "0x2222222222222222222222222222222222222222" } }); @@ -38,7 +38,7 @@ await client.verify({ ], "data": { "provider": "discord", - "internalSocialToken": "social-token-example", + "internalSocialToken": "", "walletAddress": "0x2222222222222222222222222222222222222222" }, "walletAddress": "0x1234567890abcdef1234567890abcdef12345678", diff --git a/docs/verifiers/schemas/agent-delegation.json b/docs/verifiers/schemas/agent-delegation.json index d65f5fd7..e718a7c7 100644 --- a/docs/verifiers/schemas/agent-delegation.json +++ b/docs/verifiers/schemas/agent-delegation.json @@ -25,7 +25,7 @@ "type": "string" }, "agentChainRef": { - "description": "Required when using legacy agentWallet without agentAccountId.", + "description": "Required when using agentWallet without agentAccountId.", "format": "caip2-chain", "type": "string" }, @@ -52,7 +52,7 @@ "type": "string" }, "controllerChainRef": { - "description": "Required when using legacy controllerWallet without controllerAccountId.", + "description": "Required when using controllerWallet without controllerAccountId.", "format": "caip2-chain", "type": "string" }, diff --git a/docs/verifiers/schemas/agent-identity.json b/docs/verifiers/schemas/agent-identity.json index e976a85b..3ede6861 100644 --- a/docs/verifiers/schemas/agent-identity.json +++ b/docs/verifiers/schemas/agent-identity.json @@ -22,7 +22,7 @@ "type": "string" }, "agentChainRef": { - "description": "Required when using legacy agentWallet without agentAccountId.", + "description": "Required when using agentWallet without agentAccountId.", "format": "caip2-chain", "type": "string" }, diff --git a/docs/verifiers/schemas/ownership-basic.json b/docs/verifiers/schemas/ownership-basic.json index bfbf248f..1046c44c 100644 --- a/docs/verifiers/schemas/ownership-basic.json +++ b/docs/verifiers/schemas/ownership-basic.json @@ -9,7 +9,7 @@ "type": "string" }, "contentHash": { - "description": "Pre-computed verifier content hash (32-byte hex). Treated as the standardized verifierContentHash for ownership-basic; if content is also provided, the verifier integrity-checks that they match.", + "description": "Pre-computed content hash (32-byte hex) for ownership-basic. If content is also provided, the verifier checks that both values match.", "pattern": "^0x[a-fA-F0-9]{64}$", "type": "string" }, diff --git a/docs/verifiers/schemas/ownership-org-oauth.json b/docs/verifiers/schemas/ownership-org-oauth.json index a40fcf0f..27dff584 100644 --- a/docs/verifiers/schemas/ownership-org-oauth.json +++ b/docs/verifiers/schemas/ownership-org-oauth.json @@ -1,13 +1,14 @@ { "$id": "https://neus.network/schemas/ownership-org-oauth.json", "$schema": "http://json-schema.org/draft-07/schema#", - "description": "Organizational OAuth verification", + "description": "Organization account verification through hosted OAuth completion.", "properties": { "expectedOrgDomain": { "format": "hostname", "type": "string" }, "internalSocialToken": { + "description": "OAuth session token returned by the hosted NEUS verification flow.", "type": "string" }, "provider": { diff --git a/docs/verifiers/schemas/ownership-social.json b/docs/verifiers/schemas/ownership-social.json index 1490b947..6a7cd978 100644 --- a/docs/verifiers/schemas/ownership-social.json +++ b/docs/verifiers/schemas/ownership-social.json @@ -1,9 +1,10 @@ { "$id": "https://neus.network/schemas/ownership-social.json", "$schema": "http://json-schema.org/draft-07/schema#", - "description": "Social media account ownership via OAuth", + "description": "Social account ownership via OAuth", "properties": { "internalSocialToken": { + "description": "OAuth session token returned by the hosted NEUS verification flow.", "type": "string" }, "provider": { diff --git a/docs/widgets/verifygate.mdx b/docs/widgets/verifygate.mdx index 0ba6c276..eb0b34bd 100644 --- a/docs/widgets/verifygate.mdx +++ b/docs/widgets/verifygate.mdx @@ -47,7 +47,7 @@ export function Page() { | `hostedCheckoutUrl` | Overrides the hosted verify URL when needed | -In raw HTTP contracts the same proof receipt ID may appear as `{qHash}`. +Some HTTP endpoints label the same proof receipt ID as `qHash`. ## Best Use Cases