Skip to content

docs: sync api reference 2026-08-24 - #108

Open
JamesLawton wants to merge 1 commit into
mainfrom
docs/update-api-reference-2026-08-24
Open

docs: sync api reference 2026-08-24#108
JamesLawton wants to merge 1 commit into
mainfrom
docs/update-api-reference-2026-08-24

Conversation

@JamesLawton

Copy link
Copy Markdown
Collaborator

What changed

  • api-reference/trails-api.gen.yaml — sync from the trails-api release branch OpenAPI spec. Adds:
    • pausableSapientSignerAddress on the Chain schema (v1.5 execution gate).
    • initChainId, fillChainId, refundChainId on GetEdgeStatusResponse, so each transaction hash pairs with the exact chain it settled on.
    • ExecuteIntentEdgeRequest / ExecuteIntentEdgeResponse schemas and the /rpc/Trails/ExecuteIntentEdge path.
    • CommitIntent operation summary marks it deprecated for new integrations; behavior is unchanged.
  • api-reference/trails-api.gen.json and api-reference/before-annotations-trails-api.gen.json — regenerated from the synced YAML by .github/scripts/convert-yaml-to-json.js.
  • api-reference/endpoints/execute-intent-edge.mdxnew endpoint page for ExecuteIntentEdge, documenting when to arm an origin-mode edge intent, request/response shape, and how it fits into the send flow.
  • api-reference/endpoints/get-edge-status.mdx — document the new initChainId / fillChainId / refundChainId fields and clarify how each transaction hash pairs with them across ORIGIN and DESTINATION modes.
  • api-reference/endpoints/commit-intent.mdx — add a deprecation <Warning> pointing new integrations at ExecuteIntent / ExecuteIntentEdge; the endpoint itself remains behaviorally stable for existing callers.
  • docs.json — add execute-intent-edge under the Intents group.

Source of truth

Verification

  • Ran .github/scripts/convert-yaml-to-json.js locally after copying the trails-api release YAML; before-annotations-trails-api.gen.json is byte-for-byte the conversion output, and trails-api.gen.json matches it apart from the trailing newline convention. The Convert OpenAPI YAML to JSON GitHub Action will re-run on push.
  • Diffed the local vs. release YAML to confirm the only structural drift is the four additions listed above.
  • Cross-referenced the new endpoint page against the ridl definition and Go handler for arming semantics, error surface, and idempotency.

Generated by the Trails Docs weekly agent.


Generated by Claude Code

Sync the OpenAPI spec from trails-api release (0xsequence/trails-api HEAD)
and document the surface it exposes that had no docs yet.

New endpoint page:
- ExecuteIntentEdge — arm an origin-mode edge intent so the server-side
  monitor starts watching for the Relay fill. Called by the SDK send flow
  since 0xtrails@0.18.0 in place of CommitIntent for edge intents
  (see trails PR #1167 / trails-api #1031).

OpenAPI drift resolved:
- Add ExecuteIntentEdge request/response schemas and the
  /rpc/Trails/ExecuteIntentEdge path (missing from the local spec).
- Add pausableSapientSignerAddress to the Chain schema
  (trails-api #1028, "gate v1.5 intent execution behind pausable sapient
  signer").
- Add initChainId, fillChainId, refundChainId to GetEdgeStatusResponse so
  each transaction hash is paired with the exact chain it settled on.
- Mark CommitIntent as deprecated for new integrations in the endpoint
  summary while leaving its schema behaviorally stable for existing
  callers.

Docs updates:
- commit-intent.mdx: add a deprecation warning pointing new integrations
  at ExecuteIntent / ExecuteIntentEdge.
- get-edge-status.mdx: document the new chain-id fields and clarify how
  each transaction hash pairs with them across ORIGIN vs DESTINATION
  modes.
- docs.json: add ExecuteIntentEdge under the Intents group.

Regenerate before-annotations-trails-api.gen.json and trails-api.gen.json
from the synced YAML.

Generated by the Trails Docs weekly agent.

Co-Authored-By: Claude <noreply@anthropic.com>
@mintlify

mintlify Bot commented Aug 24, 2026

Copy link
Copy Markdown
Contributor

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
trails 🟢 Ready View Preview Aug 24, 2026, 9:23 AM

💡 Tip: Enable Workflows to automatically generate PRs for you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants