External dependencies, deployment boundaries, routing, notification delivery, merchant recovery, and release checks for self-hosted Grantex prepaid wallets and x402 v2.
Use this checklist before enabling prepaid-wallet or x402 traffic in a
self-hosted environment. Repository tests prove the Grantex authorization and
sandbox_ledger paths; they do not provision a custody provider, merchant
recovery store, notification channel, or regulatory approval for the operator.
Dependency matrix
The source checkout includes a specific Base USDC adapter.
It requires migration 094, operator-provisioned keys, a trusted Base RPC,
verified funding and reconciliation monitoring. Python 0.7.2 and Go v0.4.3
publish the response and reconciliation APIs; published TypeScript 0.8.2 and
x402 0.4.1 support opt-in automatic Base payment retries. Other external
providers still need their own adapter.
Signed EVM holds are not released on a wallet block or a local timeout alone.
Dependency
Required when
Current repository behavior
Operator action
PostgreSQL migrations 091_agent_prepaid_wallets.sql and 092_layered_wallet_spend_controls.sql
Always
Startup applies ordered migrations automatically
Back up PostgreSQL, deploy the exact repository migration set, and verify startup completed before sending traffic
Public HTTPS routing
The issuer or wallet resource uses a public host
DPoP tokens bind the exact /v1/prepaid-wallets audience
Route the exact public wallet and OAuth paths to the auth service; do not rewrite them to static HTML
@grantex/sdk@0.8.2 and @grantex/x402@0.4.1
Applications install managed-wallet clients from npm
Both exact versions are published and registry verified
Pin these exact versions and complete the dependencies below
External custody adapter
Real bank, card, on-chain, or provider-held funds
Configured base_usdc supports native Base USDC; other/unconfigured providers fail closed
Follow the Base custody guide or implement and independently test the selected provider’s funding, reservation, settlement, reconciliation and recovery
Principal notification bridge
A human must receive reload alerts outside the Grantex UI
Wallet reload events are emitted to the event bus; no built-in email/SMS/chat delivery is claimed
Consume SSE/WebSocket events and deliver through an approved channel, or separately extend and test webhook registration for wallet events
Merchant idempotency store
A paid request has side effects
Grantex makes reservation and settlement retries idempotent
Atomically store the merchant’s business result under the caller’s HTTP Idempotency-Key
Independent security, provider, and legal review
Real-money or regulated use
The repository makes no certification or stored-value claim
sandbox_ledger is complete local/off-chain accounting with PostgreSQL as the
system of record. It is suitable for development, deterministic integration
tests, and deployments that explicitly intend to operate an internal ledger.
It is not a bank account, prepaid card, on-chain balance, proof of external
funds, or a regulated stored-value product.external requires provider-specific verification. The included base_usdc
adapter verifies finalized native USDC funding and settlement through RPC and
retains outstanding signed exposure through blocks and provider outages. It
requires explicit operator provisioning; installation alone does not enable it.
Other providers remain unavailable. Do not turn arbitrary provider references
into balance. A production adapter must, at minimum:
authenticate signed provider webhooks and reject stale or replayed events;
deduplicate funding and settlement references transactionally;
reconcile Grantex available/reserved amounts with provider state;
reserve and settle through provider-supported atomic or compensating flows;
persist provider transaction and evidence references without exposing
credentials to agents;
define timeout, partial failure, reversal, dispute, and restart recovery;
fail closed when provider state is unavailable or ambiguous.
Route the public resource
Set JWT_ISSUER to the exact issuer URL used in tokens and
PUBLIC_BASE_URL to the browser-reachable origin. In a normal reverse-proxy
deployment, route the entire API origin to the auth service. If a static host
and API share one domain, explicitly forward at least:
The OAuth resource and access-token audience must be the same exact URL, for
example https://auth.example.com/v1/prepaid-wallets. TLS is required outside
loopback development. A static-host 404 at this path means the agent cannot
list wallets, request reloads, or authorize a payment even if Cloud Run or the
origin service itself is healthy.After deployment, unauthenticated probes should reach the auth service and fail
with structured authentication errors, not HTML:
$Base = 'https://auth.example.com'$List = Invoke-WebRequest "$Base/v1/prepaid-wallets" ` -Method Get -SkipHttpErrorCheck$Authorize = Invoke-WebRequest "$Base/v1/prepaid-wallets/authorizations" ` -Method Post -ContentType 'application/json' -Body '{}' -SkipHttpErrorCheckif ($List.StatusCode -ne 401 -or $List.Content -notmatch 'INVALID_TOKEN') { throw 'The prepaid-wallet base route does not reach the auth service.'}if ($Authorize.StatusCode -ne 401 -or $Authorize.Content -notmatch 'INVALID_TOKEN') { throw 'The prepaid-wallet wildcard route does not reach the auth service.'}
take and restore-test backups before and after migration;
run every auth-service instance against the same authoritative database;
monitor migration completion before marking a new instance ready;
retain ledger and audit records according to an approved policy;
never repair balances by deleting ledger or reservation rows;
reconcile available_amount, reserved_amount, ledger entries, and any
provider evidence before reopening a blocked wallet.
Migration 134_commerce_ledger.sql makes the ledger tamper-evident. Each entry
carries chain_seq (its position in its wallet’s chain, from 1), prev_hash
and entry_hash (lowercase hex SHA-256 over the entry’s columns and
prev_hash), computed by a database trigger on every insert under a per-wallet
lock, so concurrent writes cannot fork a chain. The migration chains existing
entries per wallet in (created_at, id) order; on a large ledger it holds an
exclusive lock on wallet_ledger_entries while it does, so run it in a
maintenance window. To check a wallet, call
GET /v1/admin/prepaid-wallets/{walletId}/ledger/verification (service
administrator) or GET /v1/principal/prepaid-wallets/{walletId}/ledger/verification
(wallet owner): valid: false lists every edited, deleted, inserted or
reordered entry. The chain cannot show that the newest entries were removed
from the top on its own; record head_seq and head_hash from time to time
and compare them with later answers.Redis is required for the service and real-time event delivery, but PostgreSQL
remains the wallet system of record.
Deliver reload notifications
The service emits wallet.low_balance, wallet.reload.requested,
wallet.reload.approved, wallet.reload.rejected, wallet.reloaded,
wallet.payment.denied, wallet.payment.approval_required,
wallet.payment.approval_approved, wallet.payment.approval_rejected, and
wallet.spend_policy.changed events. Agents can request a reload but cannot
approve or fund it.There is no built-in promise that a reload request reaches email, SMS, Slack,
WhatsApp, or another human channel. The current public webhook-registration API
accepts only its documented grant/token event allowlist. For wallet alerts,
operate an authenticated SSE/WebSocket consumer and bridge events to the
principal’s approved channel, or implement a separately reviewed webhook
extension. The bridge must deduplicate by event ID, retry durably, protect
principal contact data, and expose delivery failures to operators.Do not auto-approve or auto-fund merely because a notification was delivered.
The principal decision and funding calls remain separate authenticated actions.
Make merchant work recoverable
For a side-effecting paid request, the resource server must use this order:
Validate the x402 request and call /v1/x402/verify.
Complete /v1/x402/settle successfully.
Atomically create or retrieve the protected business result under the
caller’s HTTP Idempotency-Key.
Return the cached result on an identical retry.
The SDK idempotencyKey recovers a Grantex reservation response lost before
settlement. The HTTP Idempotency-Key recovers merchant work lost after
settlement. They should contain the same durable logical operation ID, but one
does not replace the other.
Registry availability
Server deployment and npm publication are independent. A self-hosted server can
run repository source while its application consumers still resolve older npm
packages. Check the registry before deployment:
npm view '@grantex/sdk' versionnpm view '@grantex/x402' version
Published and registry verified: SDK 0.8.2 and x402 0.4.1 on
September 7, 2026. Registry publication is not inferred from the source tree, so treat
the registry as authoritative and verify exact versions before each deployment.
See Release
Status for the public artifact matrix.
Maintainer-only PowerShell publication
Publishing is irreversible for an already consumed version. Run this only as
an npm maintainer of the @grantex scope, from a reviewed and clean main.
Direct publication requires npm publishing permission and either account 2FA or
an appropriately restricted publishing credential.
1. Verify repository and registry state
Set-Location 'C:\path\to\grantex'git fetch originif (git status --porcelain) { throw 'Working tree must be clean before publishing.'}if ((git rev-parse HEAD) -ne (git rev-parse origin/main)) { throw 'HEAD must exactly match origin/main.'}npm login --registry='https://registry.npmjs.org/'npm whoaminpm owner ls '@grantex/sdk'npm owner ls '@grantex/x402'$SdkTarget = (Get-Content packages/sdk-ts/package.json | ConvertFrom-Json).version$X402Target = (Get-Content packages/x402/package.json | ConvertFrom-Json).versionnpm view '@grantex/sdk' versionnpm view '@grantex/x402' version$SdkExisting = npm view "@grantex/sdk@$SdkTarget" version 2>$nullif ($LASTEXITCODE -eq 0) { throw "@grantex/sdk@$SdkTarget already exists: $SdkExisting"}$X402Existing = npm view "@grantex/x402@$X402Target" version 2>$nullif ($LASTEXITCODE -eq 0) { throw "@grantex/x402@$X402Target already exists: $X402Existing"}
Stop if either target version already exists. npm will not let a version be
overwritten, and changing tags is not a substitute for a new version.
2. Build, test, audit, and inspect both packages
npm ci --prefix packages/sdk-tsnpm run typecheck --prefix packages/sdk-tsnpm test --prefix packages/sdk-tsnpm run build --prefix packages/sdk-tsnpm audit --prefix packages/sdk-ts --omit=devnpm ci --prefix packages/x402npm run typecheck --prefix packages/x402npm test --prefix packages/x402npm run build --prefix packages/x402npm audit --prefix packages/x402 --omit=devPush-Location packages/sdk-tstry { npm pack --dry-run } finally { Pop-Location }Push-Location packages/x402try { npm pack --dry-run } finally { Pop-Location }
Review the npm pack --dry-run file lists. Each package should contain its
compiled dist output, README.md, package metadata, and no keys, credentials,
environment files, test fixtures, or unrelated repository content.
3. Publish in dependency order
Publish the SDK first. Let npm prompt for the one-time code instead of placing
an OTP in shell history.
Push-Location packages/sdk-tstry { npm publish --access public --tag latest } finally { Pop-Location }npm view "@grantex/sdk@$SdkTarget" version dist.integrity dist.tarball --jsonPush-Location packages/x402try { npm publish --access public --tag latest } finally { Pop-Location }npm view "@grantex/x402@$X402Target" version dist.integrity dist.tarball --json
Do not continue to x402 if SDK publication or registry verification fails.
After registry smoke passes, tag the exact reviewed commit and update
release-status.json, web/release-status.json, COMPATIBILITY.md, the root
README, release documentation, and public website notices in one release PR.
Do not describe the packages as published until the exact registry queries
above succeed.
Python and Go publication
Python 0.5.1 passed source import, Ruff, strict Mypy, Pytest (623 tests on
Python 3.12 and 3.9), distribution build, and Twine metadata checks before
upload:
The Go module path is a separate repository,
github.com/mishrasanjeev/grantex-go. Publishing a future version requires
copying the reviewed packages/go-sdk tree to that repository, rerunning
go test ./..., committing the exact source, and pushing an annotated new
version tag. A tag in the Grantex monorepo does not publish that module.Python 0.5.0 and Go v0.3.0 were published on 7 September 2026 and verified
from clean public-registry consumers. Python 0.5.1 was published on
15 September 2026; its installed PyPI wheel passed all 623 tests in a clean
environment. The steps remain here as the release runbook; they are not
instructions to overwrite those immutable versions.The guarded Publish primary
SDKs
workflow tests and builds the TypeScript SDK, x402 package, Python SDK, and Go
SDK once, uploads immutable distributions, and makes publication jobs consume
those exact artifacts. TypeScript and x402 publication are independently
selectable, so an unchanged x402 release is never republished just to ship a
new TypeScript SDK. Before the first run:
Create the GitHub sdk-release environment and require a human reviewer.
On npm, configure trusted-publisher records for both @grantex/sdk and
@grantex/x402 using repository mishrasanjeev/grantex, workflow
publish-primary-sdks.yml, environment sdk-release, and the npm publish
action. Do not add a long-lived npm token fallback.
On PyPI, configure the grantex project’s trusted publisher with the same
repository, workflow filename, and sdk-release environment.
Add GRANTEX_GO_RELEASE_TOKEN to the environment with write access limited
to mishrasanjeev/grantex-go; do not use a broadly scoped account token.
Protect main and the publication workflow through review and required CI.
Run the workflow only from reviewed main, type RELEASE_PRIMARY_SDKS, and
select only the packages with new, unpublished versions. The workflow fails
closed when trusted publishing or the Go credential is absent; a version bump
is not evidence that a registry release exists.TypeScript 0.7.1, x402 0.4.1, Python 0.6.1, and Go v0.4.1 were
separately published and verified on September 27, 2026. After publication,
verify from empty temporary projects rather than importing
the monorepo checkout:
npm view '@grantex/sdk@0.7.1' version dist.integrity --jsonnpm view '@grantex/x402@0.4.1' version dist.integrity --jsonpython -m pip download --index-url https://pypi.org/simple --no-deps --dest $env:TEMP 'grantex==0.6.1'go list -m -json 'github.com/mishrasanjeev/grantex-go@v0.4.1'
The workflow uses npm trusted publishing with OIDC and provenance instead of a
long-lived npm token. See npm’s official scoped public package
publishing
and trusted publishing
documentation before changing the release mechanism.
Go-live checklist
Exact repository commit and npm package versions are recorded.
Migrations 091_agent_prepaid_wallets.sql and 092_layered_wallet_spend_controls.sql completed and backup restore was tested.
Public OAuth, wallet, principal, and x402 routes reach the auth service over TLS.
DPoP tokens use the exact public wallet audience.
sandbox_ledger or external custody behavior is described accurately to users.
External custody remains disabled unless the provider adapter and reconciliation runbook passed review.
Reload alerts have a monitored consumer and delivery-failure path.
Merchant handlers persist results by HTTP Idempotency-Key after settlement.
Security, privacy, financial, and regulatory owners approved the intended production use.
Last modified on October 20, 2026
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Grantex","description":"Documentation and API reference for Grantex AI agent authorization, delegated OAuth grants, agent identity, scoped permissions, MCP authorization, verification, and audit. Grantex is owned by Orchestrum Technologies LLP; inventor and owner: Sanjeev Kumar.","colors":{"primary":"#3fb950","light":"#58a6ff","dark":"#2ea043"},"logo":{"light":"https://mintcdn.com/grantex/fh2nVWzV0WTpAhmk/logo/light.svg?fit=max\u0026auto=format\u0026n=fh2nVWzV0WTpAhmk\u0026q=85\u0026s=45b5032cb19c05941960c4bb4239c8cd","dark":"https://mintcdn.com/grantex/fh2nVWzV0WTpAhmk/logo/dark.svg?fit=max\u0026auto=format\u0026n=fh2nVWzV0WTpAhmk\u0026q=85\u0026s=4f8e48fcb123c40e9a32121a5b6e542a"},"favicon":"https://mintcdn.com/grantex/fjShexQIs6R8ZYjW/favicon.svg?fit=max\u0026auto=format\u0026n=fjShexQIs6R8ZYjW\u0026q=85\u0026s=7d1fea44a19ae98fb8b6d9c6732dd38a","navbar":{"links":[{"href":"https://github.com/mishrasanjeev/grantex","type":"github"}]},"search":{"prompt":"Search Grantex docs..."},"seo":{"metatags":{"robots":"index, follow, max-image-preview:large, max-snippet:-1, max-video-preview:-1","og:site_name":"Grantex Documentation","twitter:card":"summary_large_image","twitter:site":"@grantex_dev"},"indexing":"navigable"},"metadata":{"timestamp":true},"styling":{"latex":true},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"grantex","hasAudioNarration":false,"actualSubdomain":"grantex","customDomains":["docs.grantex.dev"],"gitSource":{"type":"github","owner":"mishrasanjeev","repo":"grantex","deployBranch":"main","contentDirectory":"docs","isPrivate":true,"mountPath":"","label":""},"entitlements":{},"buildId":"6b057012b4d87969a79267f5","clientVersion":"0.0.4344","searchFilterCounts":[{"language":"default","tag":"API Reference","count":155},{"language":"default","tag":"Documentation","count":141},{"language":"default","tag":"Resources","count":60},{"language":"default","tag":"Guides","count":41},{"language":"default","tag":"Integrations","count":31},{"language":"default","tag":"Python SDK","count":27},{"language":"default","tag":"TypeScript SDK","count":27},{"language":"default","tag":"Go SDK","count":26},{"language":"default","tag":"Blog","count":25},{"language":"default","tag":"Posts","count":25}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"guides/prepaid-wallet-production","slug":"/guides/prepaid-wallet-production","pageMetadata":{"title":"Prepaid Wallet Production Readiness","sidebarTitle":"Wallet Production Readiness","description":"External dependencies, deployment boundaries, routing, notification delivery, merchant recovery, and release checks for self-hosted Grantex prepaid wallets and x402 v2.","href":"/guides/prepaid-wallet-production"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"External dependencies, deployment boundaries, routing, notification delivery, merchant recovery, and release checks for self-hosted Grantex prepaid wallets and x402 v2.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,input:`input`,li:`li`,ol:`ol`,p:`p`,pre:`pre`,span:`span`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,Table}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Table)_missingMdxReference(`Table`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Use this checklist before enabling prepaid-wallet or x402 traffic in a\nself-hosted environment. Repository tests prove the Grantex authorization and\n`,_jsx(_components.code,{children:`sandbox_ledger`}),` paths; they do not provision a custody provider, merchant\nrecovery store, notification channel, or regulatory approval for the operator.`]}),`\n`,_jsx(Heading,{level:`2`,id:`dependency-matrix`,children:`Dependency matrix`}),`\n`,_jsxs(_components.p,{children:[`The source checkout includes a specific `,_jsx(_components.a,{href:`/guides/base-usdc-custody`,children:`Base USDC adapter`}),`.\nIt requires migration `,_jsx(_components.code,{children:`094`}),`, operator-provisioned keys, a trusted Base RPC,\nverified funding and reconciliation monitoring. Python `,_jsx(_components.code,{children:`0.7.2`}),` and Go `,_jsx(_components.code,{children:`v0.4.3`}),`\npublish the response and reconciliation APIs; published TypeScript `,_jsx(_components.code,{children:`0.8.2`}),` and\nx402 `,_jsx(_components.code,{children:`0.4.1`}),` support opt-in automatic Base payment retries. Other external\nproviders still need their own adapter.\nSigned EVM holds are not released on a wallet block or a local timeout alone.`]}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Dependency`}),_jsx(_components.th,{children:`Required when`}),_jsx(_components.th,{children:`Current repository behavior`}),_jsx(_components.th,{children:`Operator action`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[`PostgreSQL migrations `,_jsx(_components.code,{children:`091_agent_prepaid_wallets.sql`}),` and `,_jsx(_components.code,{children:`092_layered_wallet_spend_controls.sql`})]}),_jsx(_components.td,{children:`Always`}),_jsx(_components.td,{children:`Startup applies ordered migrations automatically`}),_jsx(_components.td,{children:`Back up PostgreSQL, deploy the exact repository migration set, and verify startup completed before sending traffic`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Public HTTPS routing`}),_jsx(_components.td,{children:`The issuer or wallet resource uses a public host`}),_jsxs(_components.td,{children:[`DPoP tokens bind the exact `,_jsx(_components.code,{children:`/v1/prepaid-wallets`}),` audience`]}),_jsx(_components.td,{children:`Route the exact public wallet and OAuth paths to the auth service; do not rewrite them to static HTML`})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[_jsx(_components.code,{children:`@grantex/sdk@0.8.2`}),` and `,_jsx(_components.code,{children:`@grantex/x402@0.4.1`})]}),_jsx(_components.td,{children:`Applications install managed-wallet clients from npm`}),_jsx(_components.td,{children:`Both exact versions are published and registry verified`}),_jsx(_components.td,{children:`Pin these exact versions and complete the dependencies below`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`External custody adapter`}),_jsx(_components.td,{children:`Real bank, card, on-chain, or provider-held funds`}),_jsxs(_components.td,{children:[`Configured `,_jsx(_components.code,{children:`base_usdc`}),` supports native Base USDC; other/unconfigured providers fail closed`]}),_jsx(_components.td,{children:`Follow the Base custody guide or implement and independently test the selected provider’s funding, reservation, settlement, reconciliation and recovery`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Principal notification bridge`}),_jsx(_components.td,{children:`A human must receive reload alerts outside the Grantex UI`}),_jsx(_components.td,{children:`Wallet reload events are emitted to the event bus; no built-in email/SMS/chat delivery is claimed`}),_jsx(_components.td,{children:`Consume SSE/WebSocket events and deliver through an approved channel, or separately extend and test webhook registration for wallet events`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Merchant idempotency store`}),_jsx(_components.td,{children:`A paid request has side effects`}),_jsx(_components.td,{children:`Grantex makes reservation and settlement retries idempotent`}),_jsxs(_components.td,{children:[`Atomically store the merchant’s business result under the caller’s HTTP `,_jsx(_components.code,{children:`Idempotency-Key`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Independent security, provider, and legal review`}),_jsx(_components.td,{children:`Real-money or regulated use`}),_jsx(_components.td,{children:`The repository makes no certification or stored-value claim`}),_jsx(_components.td,{children:`Complete threat review, penetration testing, provider approval, reconciliation sign-off, incident runbooks, and applicable legal/regulatory review`})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`choose-the-custody-mode-honestly`,children:`Choose the custody mode honestly`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`sandbox_ledger`}),` is complete local/off-chain accounting with PostgreSQL as the\nsystem of record. It is suitable for development, deterministic integration\ntests, and deployments that explicitly intend to operate an internal ledger.\nIt is not a bank account, prepaid card, on-chain balance, proof of external\nfunds, or a regulated stored-value product.`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`external`}),` requires provider-specific verification. The included `,_jsx(_components.code,{children:`base_usdc`}),`\nadapter verifies finalized native USDC funding and settlement through RPC and\nretains outstanding signed exposure through blocks and provider outages. It\nrequires explicit operator provisioning; installation alone does not enable it.\nOther providers remain unavailable. Do not turn arbitrary provider references\ninto balance. A production adapter must, at minimum:`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`authenticate signed provider webhooks and reject stale or replayed events;`}),`\n`,_jsx(_components.li,{children:`deduplicate funding and settlement references transactionally;`}),`\n`,_jsx(_components.li,{children:`reconcile Grantex available/reserved amounts with provider state;`}),`\n`,_jsx(_components.li,{children:`reserve and settle through provider-supported atomic or compensating flows;`}),`\n`,_jsx(_components.li,{children:`persist provider transaction and evidence references without exposing\ncredentials to agents;`}),`\n`,_jsx(_components.li,{children:`define timeout, partial failure, reversal, dispute, and restart recovery;`}),`\n`,_jsx(_components.li,{children:`fail closed when provider state is unavailable or ambiguous.`}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`route-the-public-resource`,children:`Route the public resource`}),`\n`,_jsxs(_components.p,{children:[`Set `,_jsx(_components.code,{children:`JWT_ISSUER`}),` to the exact issuer URL used in tokens and\n`,_jsx(_components.code,{children:`PUBLIC_BASE_URL`}),` to the browser-reachable origin. In a normal reverse-proxy\ndeployment, route the entire API origin to the auth service. If a static host\nand API share one domain, explicitly forward at least:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`22`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`22`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`/.well-known/oauth-authorization-server`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`/.well-known/jwks.json`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`/oauth/**`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`/consent`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`/v1/consent/**`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`/v1/webauthn/**`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`/v1/prepaid-wallets`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`/v1/prepaid-wallets/**`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`/v1/principal-sessions`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`/v1/principal/prepaid-wallets`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`/v1/principal/prepaid-wallets/**`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`/v1/principal/prepaid-wallet-assignments/**`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`/v1/principal/prepaid-wallet-agents/**`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`/v1/principal/prepaid-wallet-reload-requests/**`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`/v1/principal/prepaid-wallet-reservations/**`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`/v1/principal/prepaid-wallet-spend-policies/**`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`/v1/principal/prepaid-wallet-payment-approvals/**`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`/v1/prepaid-wallet-spend-policies/**`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`/v1/x402/supported`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`/v1/x402/verify`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`/v1/x402/settle`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsxs(_components.p,{children:[`The OAuth resource and access-token audience must be the same exact URL, for\nexample `,_jsx(_components.code,{children:`https://auth.example.com/v1/prepaid-wallets`}),`. TLS is required outside\nloopback development. A static-host `,_jsx(_components.code,{children:`404`}),` at this path means the agent cannot\nlist wallets, request reloads, or authorize a payment even if Cloud Run or the\norigin service itself is healthy.`]}),`\n`,_jsx(_components.p,{children:`After deployment, unauthenticated probes should reach the auth service and fail\nwith structured authentication errors, not HTML:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`13`,language:`powershell`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`powershell`,children:_jsxs(_components.code,{language:`powershell`,numberOfLines:`13`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$Base`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'https://auth.example.com'`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$List`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` Invoke-WebRequest`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$Base`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`/v1/prepaid-wallets\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:\" `\"})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` -`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`Method Get `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`-`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`SkipHttpErrorCheck`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$Authorize`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` Invoke-WebRequest`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$Base`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`/v1/prepaid-wallets/authorizations\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:\" `\"})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` -`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`Method Post `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`-`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`ContentType `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'application/json'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` -`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`Body `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'{}'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` -`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`SkipHttpErrorCheck`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$List`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#DCDCAA`},children:`.StatusCode`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` -ne`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 401`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` -or`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` $List`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#DCDCAA`},children:`.Content`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` -notmatch`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'INVALID_TOKEN'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` throw`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'The prepaid-wallet base route does not reach the auth service.'`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$Authorize`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#DCDCAA`},children:`.StatusCode`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` -ne`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 401`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` -or`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` $Authorize`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#DCDCAA`},children:`.Content`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` -notmatch`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'INVALID_TOKEN'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` throw`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'The prepaid-wallet wildcard route does not reach the auth service.'`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`preserve-the-financial-evidence-store`,children:`Preserve the financial evidence store`}),`\n`,_jsxs(_components.p,{children:[`Migration `,_jsx(_components.code,{children:`091_agent_prepaid_wallets.sql`}),` creates wallet, assignment,\nreservation, reload, control, and append-only ledger structures. Migration\n`,_jsx(_components.code,{children:`092_layered_wallet_spend_controls.sql`}),` adds safe assignment defaults, reload\nvelocity controls, layered policy, exact payment approval, semantic reservation\ncontext, and append-only policy decisions. Treat PostgreSQL as durable financial\nevidence:`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`take and restore-test backups before and after migration;`}),`\n`,_jsx(_components.li,{children:`run every auth-service instance against the same authoritative database;`}),`\n`,_jsx(_components.li,{children:`monitor migration completion before marking a new instance ready;`}),`\n`,_jsx(_components.li,{children:`retain ledger and audit records according to an approved policy;`}),`\n`,_jsx(_components.li,{children:`never repair balances by deleting ledger or reservation rows;`}),`\n`,_jsxs(_components.li,{children:[`reconcile `,_jsx(_components.code,{children:`available_amount`}),`, `,_jsx(_components.code,{children:`reserved_amount`}),`, ledger entries, and any\nprovider evidence before reopening a blocked wallet.`]}),`\n`]}),`\n`,_jsxs(_components.p,{children:[`Migration `,_jsx(_components.code,{children:`134_commerce_ledger.sql`}),` makes the ledger tamper-evident. Each entry\ncarries `,_jsx(_components.code,{children:`chain_seq`}),` (its position in its wallet’s chain, from 1), `,_jsx(_components.code,{children:`prev_hash`}),`\nand `,_jsx(_components.code,{children:`entry_hash`}),` (lowercase hex SHA-256 over the entry’s columns and\n`,_jsx(_components.code,{children:`prev_hash`}),`), computed by a database trigger on every insert under a per-wallet\nlock, so concurrent writes cannot fork a chain. The migration chains existing\nentries per wallet in `,_jsx(_components.code,{children:`(created_at, id)`}),` order; on a large ledger it holds an\nexclusive lock on `,_jsx(_components.code,{children:`wallet_ledger_entries`}),` while it does, so run it in a\nmaintenance window. To check a wallet, call\n`,_jsx(_components.code,{children:`GET /v1/admin/prepaid-wallets/{walletId}/ledger/verification`}),` (service\nadministrator) or `,_jsx(_components.code,{children:`GET /v1/principal/prepaid-wallets/{walletId}/ledger/verification`}),`\n(wallet owner): `,_jsx(_components.code,{children:`valid: false`}),` lists every edited, deleted, inserted or\nreordered entry. The chain cannot show that the newest entries were removed\nfrom the top on its own; record `,_jsx(_components.code,{children:`head_seq`}),` and `,_jsx(_components.code,{children:`head_hash`}),` from time to time\nand compare them with later answers.`]}),`\n`,_jsx(_components.p,{children:`Redis is required for the service and real-time event delivery, but PostgreSQL\nremains the wallet system of record.`}),`\n`,_jsx(Heading,{level:`2`,id:`deliver-reload-notifications`,children:`Deliver reload notifications`}),`\n`,_jsxs(_components.p,{children:[`The service emits `,_jsx(_components.code,{children:`wallet.low_balance`}),`, `,_jsx(_components.code,{children:`wallet.reload.requested`}),`,\n`,_jsx(_components.code,{children:`wallet.reload.approved`}),`, `,_jsx(_components.code,{children:`wallet.reload.rejected`}),`, `,_jsx(_components.code,{children:`wallet.reloaded`}),`,\n`,_jsx(_components.code,{children:`wallet.payment.denied`}),`, `,_jsx(_components.code,{children:`wallet.payment.approval_required`}),`,\n`,_jsx(_components.code,{children:`wallet.payment.approval_approved`}),`, `,_jsx(_components.code,{children:`wallet.payment.approval_rejected`}),`, and\n`,_jsx(_components.code,{children:`wallet.spend_policy.changed`}),` events. Agents can request a reload but cannot\napprove or fund it.`]}),`\n`,_jsx(_components.p,{children:`There is no built-in promise that a reload request reaches email, SMS, Slack,\nWhatsApp, or another human channel. The current public webhook-registration API\naccepts only its documented grant/token event allowlist. For wallet alerts,\noperate an authenticated SSE/WebSocket consumer and bridge events to the\nprincipal’s approved channel, or implement a separately reviewed webhook\nextension. The bridge must deduplicate by event ID, retry durably, protect\nprincipal contact data, and expose delivery failures to operators.`}),`\n`,_jsx(_components.p,{children:`Do not auto-approve or auto-fund merely because a notification was delivered.\nThe principal decision and funding calls remain separate authenticated actions.`}),`\n`,_jsx(Heading,{level:`2`,id:`make-merchant-work-recoverable`,children:`Make merchant work recoverable`}),`\n`,_jsx(_components.p,{children:`For a side-effecting paid request, the resource server must use this order:`}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`Validate the x402 request and call `,_jsx(_components.code,{children:`/v1/x402/verify`}),`.`]}),`\n`,_jsxs(_components.li,{children:[`Complete `,_jsx(_components.code,{children:`/v1/x402/settle`}),` successfully.`]}),`\n`,_jsxs(_components.li,{children:[`Atomically create or retrieve the protected business result under the\ncaller’s HTTP `,_jsx(_components.code,{children:`Idempotency-Key`}),`.`]}),`\n`,_jsx(_components.li,{children:`Return the cached result on an identical retry.`}),`\n`]}),`\n`,_jsxs(_components.p,{children:[`The SDK `,_jsx(_components.code,{children:`idempotencyKey`}),` recovers a Grantex reservation response lost before\nsettlement. The HTTP `,_jsx(_components.code,{children:`Idempotency-Key`}),` recovers merchant work lost after\nsettlement. They should contain the same durable logical operation ID, but one\ndoes not replace the other.`]}),`\n`,_jsx(Heading,{level:`2`,id:`registry-availability`,children:`Registry availability`}),`\n`,_jsx(_components.p,{children:`Server deployment and npm publication are independent. A self-hosted server can\nrun repository source while its application consumers still resolve older npm\npackages. Check the registry before deployment:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`powershell`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`powershell`,children:_jsxs(_components.code,{language:`powershell`,numberOfLines:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`npm view `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'@grantex/sdk'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` version`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`npm view `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'@grantex/x402'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` version`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`Published and registry verified: SDK `,_jsx(_components.code,{children:`0.8.2`}),` and x402 `,_jsx(_components.code,{children:`0.4.1`}),` on\nSeptember 7, 2026. Registry publication is not inferred from the source tree, so treat\nthe registry as authoritative and verify exact versions before each deployment.\nSee `,_jsx(_components.a,{href:`/release-status`,children:`Release\nStatus`}),` for the public artifact matrix.`]}),`\n`,_jsx(Heading,{level:`2`,id:`maintainer-only-powershell-publication`,children:`Maintainer-only PowerShell publication`}),`\n`,_jsxs(_components.p,{children:[`Publishing is irreversible for an already consumed version. Run this only as\nan npm maintainer of the `,_jsx(_components.code,{children:`@grantex`}),` scope, from a reviewed and clean `,_jsx(_components.code,{children:`main`}),`.\nDirect publication requires npm publishing permission and either account 2FA or\nan appropriately restricted publishing credential.`]}),`\n`,_jsx(Heading,{level:`3`,id:`1-verify-repository-and-registry-state`,children:`1. Verify repository and registry state`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`30`,language:`powershell`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`powershell`,children:_jsxs(_components.code,{language:`powershell`,numberOfLines:`30`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`Set-Location`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'C:\\\\path\\\\to\\\\grantex'`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`git fetch origin`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (git status `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`--`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`porcelain) {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` throw`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'Working tree must be clean before publishing.'`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ((git rev`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`-`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`parse HEAD) `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`-ne`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (git rev`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`-`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`parse origin`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`/`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`main)) {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` throw`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'HEAD must exactly match origin/main.'`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`npm login `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`--`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`registry`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'https://registry.npmjs.org/'`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`npm whoami`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`npm owner ls `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'@grantex/sdk'`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`npm owner ls `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'@grantex/x402'`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$SdkTarget`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`Get-Content`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` packages`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`/`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`sdk`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`-`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`ts`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`/`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`package.json `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`|`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` ConvertFrom-Json`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`).version`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$X402Target`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`Get-Content`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` packages`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`/`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`x402`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`/`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`package.json `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`|`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` ConvertFrom-Json`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`).version`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`npm view `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'@grantex/sdk'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` version`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`npm view `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'@grantex/x402'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` version`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$SdkExisting`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` npm view `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"@grantex/sdk@`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$SdkTarget`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` version `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`2>`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`$null`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:`$LASTEXITCODE`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` -eq`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 0`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` throw`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"@grantex/sdk@`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$SdkTarget`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` already exists: `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$SdkExisting`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$X402Existing`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` npm view `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"@grantex/x402@`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$X402Target`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` version `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`2>`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`$null`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:`$LASTEXITCODE`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` -eq`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 0`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` throw`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"@grantex/x402@`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$X402Target`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` already exists: `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$X402Existing`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`Stop if either target version already exists. npm will not let a version be\noverwritten, and changing tags is not a substitute for a new version.`}),`\n`,_jsx(Heading,{level:`3`,id:`2-build-test-audit-and-inspect-both-packages`,children:`2. Build, test, audit, and inspect both packages`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`17`,language:`powershell`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`powershell`,children:_jsxs(_components.code,{language:`powershell`,numberOfLines:`17`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`npm ci `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`--`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`prefix packages`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`/`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`sdk`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`-`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`ts`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`npm run typecheck `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`--`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`prefix packages`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`/`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`sdk`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`-`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`ts`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`npm test `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`--`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`prefix packages`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`/`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`sdk`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`-`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`ts`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`npm run build `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`--`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`prefix packages`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`/`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`sdk`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`-`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`ts`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`npm audit `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`--`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`prefix packages`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`/`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`sdk`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`-`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`ts `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`--`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`omit`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`dev`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`npm ci `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`--`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`prefix packages`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`/`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`x402`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`npm run typecheck `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`--`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`prefix packages`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`/`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`x402`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`npm test `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`--`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`prefix packages`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`/`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`x402`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`npm run build `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`--`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`prefix packages`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`/`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`x402`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`npm audit `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`--`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`prefix packages`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`/`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`x402 `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`--`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`omit`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`dev`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`Push-Location`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` packages`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`/`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`sdk`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`-`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`ts`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`try`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { npm pack `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`--`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`dry`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`-`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`run } `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`finally`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`Pop-Location`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`Push-Location`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` packages`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`/`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`x402`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`try`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { npm pack `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`--`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`dry`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`-`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`run } `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`finally`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`Pop-Location`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`Review the `,_jsx(_components.code,{children:`npm pack --dry-run`}),` file lists. Each package should contain its\ncompiled `,_jsx(_components.code,{children:`dist`}),` output, `,_jsx(_components.code,{children:`README.md`}),`, package metadata, and no keys, credentials,\nenvironment files, test fixtures, or unrelated repository content.`]}),`\n`,_jsx(Heading,{level:`3`,id:`3-publish-in-dependency-order`,children:`3. Publish in dependency order`}),`\n`,_jsx(_components.p,{children:`Publish the SDK first. Let npm prompt for the one-time code instead of placing\nan OTP in shell history.`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`9`,language:`powershell`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`powershell`,children:_jsxs(_components.code,{language:`powershell`,numberOfLines:`9`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`Push-Location`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` packages`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`/`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`sdk`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`-`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`ts`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`try`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { npm publish `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`--`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`access public `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`--`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`tag latest } `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`finally`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`Pop-Location`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`npm view `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"@grantex/sdk@`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$SdkTarget`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` version dist.integrity dist.tarball `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`--`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`json`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`Push-Location`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` packages`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`/`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`x402`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`try`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { npm publish `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`--`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`access public `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`--`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`tag latest } `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`finally`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`Pop-Location`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`npm view `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"@grantex/x402@`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$X402Target`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` version dist.integrity dist.tarball `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`--`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`json`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`Do not continue to x402 if SDK publication or registry verification fails.`}),`\n`,_jsx(Heading,{level:`3`,id:`4-test-the-registry-artifacts`,children:`4. Test the registry artifacts`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`13`,language:`powershell`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`powershell`,children:_jsxs(_components.code,{language:`powershell`,numberOfLines:`13`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$Smoke`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` Join-Path`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` $`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:`env:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`TEMP`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"grantex-npm-smoke-`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`$(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#D4D4D4`},children:`[`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`guid`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#D4D4D4`},children:`]::NewGuid()`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`)`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`New-Item`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` -`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`ItemType Directory `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`-`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`Path `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$Smoke`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` |`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` Out-Null`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`npm init `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`--`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`yes `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`--`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`prefix `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$Smoke`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` |`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` Out-Null`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`npm install `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`--`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`prefix `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$Smoke`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` --`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`save-exact`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:\" `\"})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"@grantex/sdk@`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$SdkTarget`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"@grantex/x402@`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$X402Target`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`Push-Location`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` $Smoke`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`try`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` node `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`--`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`input`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`-`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`type`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`module `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`-`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`e `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:\"`\"})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"import { PrepaidWalletAgentClient } from '@grantex/sdk'; import { createX402Agent } from '@grantex/x402'; if (!PrepaidWalletAgentClient || !createX402Agent) process.exit(1); console.log('registry smoke: pass')\"`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`} `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`finally`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` Pop-Location`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`After registry smoke passes, tag the exact reviewed commit and update\n`,_jsx(_components.code,{children:`release-status.json`}),`, `,_jsx(_components.code,{children:`web/release-status.json`}),`, `,_jsx(_components.code,{children:`COMPATIBILITY.md`}),`, the root\nREADME, release documentation, and public website notices in one release PR.\nDo not describe the packages as published until the exact registry queries\nabove succeed.`]}),`\n`,_jsx(Heading,{level:`2`,id:`python-and-go-publication`,children:`Python and Go publication`}),`\n`,_jsxs(_components.p,{children:[`Python `,_jsx(_components.code,{children:`0.5.1`}),` passed source import, Ruff, strict Mypy, Pytest (623 tests on\nPython 3.12 and 3.9), distribution build, and Twine metadata checks before\nupload:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`11`,language:`powershell`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`powershell`,children:_jsxs(_components.code,{language:`powershell`,numberOfLines:`11`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:`env:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`PYTHONPATH`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`Resolve-Path`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` packages`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`/`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`sdk`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`-`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`py`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`/`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`src).Path`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`python `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`-`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`m pip install `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`--`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`upgrade build twine`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`python `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`-`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`m ruff check packages`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`/`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`sdk`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`-`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`py`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`/`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`src packages`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`/`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`sdk`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`-`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`py`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`/`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`tests`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`python `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`-`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`m mypy packages`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`/`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`sdk`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`-`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`py`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`/`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`src`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`/`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`grantex`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`python `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`-`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`m pytest packages`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`/`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`sdk`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`-`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`py`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`/`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`tests`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`python `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`-`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`m build packages`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`/`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`sdk`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`-`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`py`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`python `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`-`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`m twine check packages`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`/`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`sdk`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`-`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`py`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`/`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`dist`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`/*`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`python `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`-`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`m twine upload packages`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`/`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`sdk`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`-`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`py`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`/`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`dist`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`/*`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$PyPI`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` Invoke-RestMethod`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'https://pypi.org/pypi/grantex/0.5.1/json'`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$PyPI`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#DCDCAA`},children:`.info.version`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` -ne`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '0.5.1'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) { `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`throw`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'PyPI verification failed.'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`The Go module path is a separate repository,\n`,_jsx(_components.code,{children:`github.com/mishrasanjeev/grantex-go`}),`. Publishing a future version requires\ncopying the reviewed `,_jsx(_components.code,{children:`packages/go-sdk`}),` tree to that repository, rerunning\n`,_jsx(_components.code,{children:`go test ./...`}),`, committing the exact source, and pushing an annotated new\nversion tag. A tag in the Grantex monorepo does not publish that module.`]}),`\n`,_jsxs(_components.p,{children:[`Python `,_jsx(_components.code,{children:`0.5.0`}),` and Go `,_jsx(_components.code,{children:`v0.3.0`}),` were published on 7 September 2026 and verified\nfrom clean public-registry consumers. Python `,_jsx(_components.code,{children:`0.5.1`}),` was published on\n15 September 2026; its installed PyPI wheel passed all 623 tests in a clean\nenvironment. The steps remain here as the release runbook; they are not\ninstructions to overwrite those immutable versions.`]}),`\n`,_jsxs(_components.p,{children:[`The guarded `,_jsx(_components.a,{href:`https://github.com/mishrasanjeev/grantex/actions/workflows/publish-primary-sdks.yml`,children:`Publish primary\nSDKs`}),`\nworkflow tests and builds the TypeScript SDK, x402 package, Python SDK, and Go\nSDK once, uploads immutable distributions, and makes publication jobs consume\nthose exact artifacts. TypeScript and x402 publication are independently\nselectable, so an unchanged x402 release is never republished just to ship a\nnew TypeScript SDK. Before the first run:`]}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`Create the GitHub `,_jsx(_components.code,{children:`sdk-release`}),` environment and require a human reviewer.`]}),`\n`,_jsxs(_components.li,{children:[`On npm, configure trusted-publisher records for both `,_jsx(_components.code,{children:`@grantex/sdk`}),` and\n`,_jsx(_components.code,{children:`@grantex/x402`}),` using repository `,_jsx(_components.code,{children:`mishrasanjeev/grantex`}),`, workflow\n`,_jsx(_components.code,{children:`publish-primary-sdks.yml`}),`, environment `,_jsx(_components.code,{children:`sdk-release`}),`, and the npm publish\naction. Do not add a long-lived npm token fallback.`]}),`\n`,_jsxs(_components.li,{children:[`On PyPI, configure the `,_jsx(_components.code,{children:`grantex`}),` project’s trusted publisher with the same\nrepository, workflow filename, and `,_jsx(_components.code,{children:`sdk-release`}),` environment.`]}),`\n`,_jsxs(_components.li,{children:[`Add `,_jsx(_components.code,{children:`GRANTEX_GO_RELEASE_TOKEN`}),` to the environment with write access limited\nto `,_jsx(_components.code,{children:`mishrasanjeev/grantex-go`}),`; do not use a broadly scoped account token.`]}),`\n`,_jsxs(_components.li,{children:[`Protect `,_jsx(_components.code,{children:`main`}),` and the publication workflow through review and required CI.`]}),`\n`]}),`\n`,_jsxs(_components.p,{children:[`Run the workflow only from reviewed `,_jsx(_components.code,{children:`main`}),`, type `,_jsx(_components.code,{children:`RELEASE_PRIMARY_SDKS`}),`, and\nselect only the packages with new, unpublished versions. The workflow fails\nclosed when trusted publishing or the Go credential is absent; a version bump\nis not evidence that a registry release exists.`]}),`\n`,_jsxs(_components.p,{children:[`TypeScript `,_jsx(_components.code,{children:`0.7.1`}),`, x402 `,_jsx(_components.code,{children:`0.4.1`}),`, Python `,_jsx(_components.code,{children:`0.6.1`}),`, and Go `,_jsx(_components.code,{children:`v0.4.1`}),` were\nseparately published and verified on September 27, 2026. After publication,\nverify from empty temporary projects rather than importing\nthe monorepo checkout:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`4`,language:`powershell`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`powershell`,children:_jsxs(_components.code,{language:`powershell`,numberOfLines:`4`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`npm view `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'@grantex/sdk@0.7.1'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` version dist.integrity `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`--`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`json`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`npm view `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'@grantex/x402@0.4.1'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` version dist.integrity `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`--`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`json`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`python `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`-`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`m pip download `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`--`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`index`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`-`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`url https:`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`//`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`pypi.org`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`/`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`simple `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`--`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`no`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`-`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`deps `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`--`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`dest `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:`env:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`TEMP`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'grantex==0.6.1'`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`go list `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`-`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`m `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`-`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`json `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'github.com/mishrasanjeev/grantex-go@v0.4.1'`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`The workflow uses npm trusted publishing with OIDC and provenance instead of a\nlong-lived npm token. See npm’s official `,_jsx(_components.a,{href:`https://docs.npmjs.com/creating-and-publishing-scoped-public-packages/`,children:`scoped public package\npublishing`}),`\nand `,_jsx(_components.a,{href:`https://docs.npmjs.com/trusted-publishers/`,children:`trusted publishing`}),`\ndocumentation before changing the release mechanism.`]}),`\n`,_jsx(Heading,{level:`2`,id:`go-live-checklist`,children:`Go-live checklist`}),`\n`,_jsxs(_components.ul,{className:`contains-task-list`,children:[`\n`,_jsxs(_components.li,{className:`task-list-item`,children:[_jsx(_components.input,{type:`checkbox`,disabled:true}),` `,`Exact repository commit and npm package versions are recorded.`]}),`\n`,_jsxs(_components.li,{className:`task-list-item`,children:[_jsx(_components.input,{type:`checkbox`,disabled:true}),` `,`Migrations `,_jsx(_components.code,{children:`091_agent_prepaid_wallets.sql`}),` and `,_jsx(_components.code,{children:`092_layered_wallet_spend_controls.sql`}),` completed and backup restore was tested.`]}),`\n`,_jsxs(_components.li,{className:`task-list-item`,children:[_jsx(_components.input,{type:`checkbox`,disabled:true}),` `,`Public OAuth, wallet, principal, and x402 routes reach the auth service over TLS.`]}),`\n`,_jsxs(_components.li,{className:`task-list-item`,children:[_jsx(_components.input,{type:`checkbox`,disabled:true}),` `,`DPoP tokens use the exact public wallet audience.`]}),`\n`,_jsxs(_components.li,{className:`task-list-item`,children:[_jsx(_components.input,{type:`checkbox`,disabled:true}),` `,_jsx(_components.code,{children:`sandbox_ledger`}),` or `,_jsx(_components.code,{children:`external`}),` custody behavior is described accurately to users.`]}),`\n`,_jsxs(_components.li,{className:`task-list-item`,children:[_jsx(_components.input,{type:`checkbox`,disabled:true}),` `,`External custody remains disabled unless the provider adapter and reconciliation runbook passed review.`]}),`\n`,_jsxs(_components.li,{className:`task-list-item`,children:[_jsx(_components.input,{type:`checkbox`,disabled:true}),` `,`Reload alerts have a monitored consumer and delivery-failure path.`]}),`\n`,_jsxs(_components.li,{className:`task-list-item`,children:[_jsx(_components.input,{type:`checkbox`,disabled:true}),` `,`Merchant handlers persist results by HTTP `,_jsx(_components.code,{children:`Idempotency-Key`}),` after settlement.`]}),`\n`,_jsxs(_components.li,{className:`task-list-item`,children:[_jsx(_components.input,{type:`checkbox`,disabled:true}),` `,`Wallet blocking, reservation release, reload approval, restart recovery, and provider outage drills passed.`]}),`\n`,_jsxs(_components.li,{className:`task-list-item`,children:[_jsx(_components.input,{type:`checkbox`,disabled:true}),` `,`Security, privacy, financial, and regulatory owners approved the intended production use.`]}),`\n`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Prepaid Wallet Production Readiness","sidebarTitle":"Wallet Production Readiness","description":"External dependencies, deployment boundaries, routing, notification delivery, merchant recovery, and release checks for self-hosted Grantex prepaid wallets and x402 v2.","href":"/guides/prepaid-wallet-production"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Dependency matrix","slug":"dependency-matrix","depth":2,"children":[]},{"title":"Choose the custody mode honestly","slug":"choose-the-custody-mode-honestly","depth":2,"children":[]},{"title":"Route the public resource","slug":"route-the-public-resource","depth":2,"children":[]},{"title":"Preserve the financial evidence store","slug":"preserve-the-financial-evidence-store","depth":2,"children":[]},{"title":"Deliver reload notifications","slug":"deliver-reload-notifications","depth":2,"children":[]},{"title":"Make merchant work recoverable","slug":"make-merchant-work-recoverable","depth":2,"children":[]},{"title":"Registry availability","slug":"registry-availability","depth":2,"children":[]},{"title":"Maintainer-only PowerShell publication","slug":"maintainer-only-powershell-publication","depth":2,"children":[{"title":"1. Verify repository and registry state","slug":"1-verify-repository-and-registry-state","depth":3,"children":[]},{"title":"2. Build, test, audit, and inspect both packages","slug":"2-build-test-audit-and-inspect-both-packages","depth":3,"children":[]},{"title":"3. Publish in dependency order","slug":"3-publish-in-dependency-order","depth":3,"children":[]},{"title":"4. Test the registry artifacts","slug":"4-test-the-registry-artifacts","depth":3,"children":[]}]},{"title":"Python and Go publication","slug":"python-and-go-publication","depth":2,"children":[]},{"title":"Go-live checklist","slug":"go-live-checklist","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"grantex","siteName":"Grantex","title":"Prepaid Wallet Production Readiness - Grantex","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-24T11:08:14.946Z","gitLastModified":"2026-10-20T04:58:41.000Z","originalFileLocation":"guides/prepaid-wallet-production.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"External dependencies, deployment boundaries, routing, notification delivery, merchant recovery, and release checks for self-hosted Grantex prepaid wallets and x402 v2.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Grantex\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003cmeta data-mint-head name=\"robots\" content=\"index, follow, max-image-preview:large, max-snippet:-1, max-video-preview:-1\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/grantex/8bJAlEutDRbcOOje/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/grantex/8bJAlEutDRbcOOje/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/grantex/8bJAlEutDRbcOOje/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/grantex/8bJAlEutDRbcOOje/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/grantex/8bJAlEutDRbcOOje/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/grantex/8bJAlEutDRbcOOje/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/grantex/8bJAlEutDRbcOOje/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/grantex/8bJAlEutDRbcOOje/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/grantex/8bJAlEutDRbcOOje/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Prepaid Wallet Production Readiness - Grantex\">\u003cmeta data-mint-head property=\"og:description\" content=\"External dependencies, deployment boundaries, routing, notification delivery, merchant recovery, and release checks for self-hosted Grantex prepaid wallets and x402 v2.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Grantex Documentation\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.grantex.dev/guides/prepaid-wallet-production\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://grantex.mintlify.site/_mintlify/api/og/v2?division=x402+Payment+Protocol\u0026amp;title=Prepaid+Wallet+Production+Readiness\u0026amp;description=External+dependencies%2C+deployment+boundaries%2C+routing%2C+notification+delivery%2C+merchant+recovery%2C+and+release+checks+for+self-hosted+Grantex+prepaid+wallets+and+\u0026amp;theme=615165a2998a6d8eb9253191\u0026amp;signature=9ad2f597e2176a70ceca4f3b9a0660ee568eac2083816765840234c4fe47ade6\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Prepaid Wallet Production Readiness - Grantex\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"External dependencies, deployment boundaries, routing, notification delivery, merchant recovery, and release checks for self-hosted Grantex prepaid wallets and x402 v2.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://grantex.mintlify.site/_mintlify/api/og/v2?division=x402+Payment+Protocol\u0026amp;title=Prepaid+Wallet+Production+Readiness\u0026amp;description=External+dependencies%2C+deployment+boundaries%2C+routing%2C+notification+delivery%2C+merchant+recovery%2C+and+release+checks+for+self-hosted+Grantex+prepaid+wallets+and+\u0026amp;theme=615165a2998a6d8eb9253191\u0026amp;signature=9ad2f597e2176a70ceca4f3b9a0660ee568eac2083816765840234c4fe47ade6\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/grantex/8bJAlEutDRbcOOje/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Grantex\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#3fb950\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.grantex.dev/guides/prepaid-wallet-production\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/guides/prepaid-wallet-production.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.grantex.dev/#organization\",\"name\":\"Grantex\",\"url\":\"https://docs.grantex.dev\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/grantex/fh2nVWzV0WTpAhmk/logo/light.svg?fit=max\u0026auto=format\u0026n=fh2nVWzV0WTpAhmk\u0026q=85\u0026s=45b5032cb19c05941960c4bb4239c8cd\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.grantex.dev#website\",\"name\":\"Grantex\",\"url\":\"https://docs.grantex.dev\",\"publisher\":{\"@id\":\"https://docs.grantex.dev/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.grantex.dev/guides/prepaid-wallet-production#webpage\",\"url\":\"https://docs.grantex.dev/guides/prepaid-wallet-production\",\"name\":\"Prepaid Wallet Production Readiness\",\"description\":\"External dependencies, deployment boundaries, routing, notification delivery, merchant recovery, and release checks for self-hosted Grantex prepaid wallets and x402 v2.\",\"dateModified\":\"2026-10-20T04:58:41.000Z\",\"isPartOf\":{\"@id\":\"https://docs.grantex.dev#website\"},\"breadcrumb\":{\"@id\":\"https://docs.grantex.dev/guides/prepaid-wallet-production#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.grantex.dev/guides/prepaid-wallet-production#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"x402 Payment Protocol\",\"item\":\"https://docs.grantex.dev/features/prepaid-wallets\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Prepaid Wallet Production Readiness\",\"item\":\"https://docs.grantex.dev/guides/prepaid-wallet-production\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.grantex.dev/guides/prepaid-wallet-production#article\",\"headline\":\"Prepaid Wallet Production Readiness\",\"name\":\"Prepaid Wallet Production Readiness\",\"description\":\"External dependencies, deployment boundaries, routing, notification delivery, merchant recovery, and release checks for self-hosted Grantex prepaid wallets and x402 v2.\",\"url\":\"https://docs.grantex.dev/guides/prepaid-wallet-production\",\"mainEntityOfPage\":{\"@id\":\"https://docs.grantex.dev/guides/prepaid-wallet-production#webpage\"},\"dateModified\":\"2026-10-20T04:58:41.000Z\",\"publisher\":{\"@id\":\"https://docs.grantex.dev/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.grantex.dev#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Grantex\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Grantex\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/guides/prepaid-wallet-production.md","siteName":"Grantex","nav":{"global":null,"tabs":[{"tab":"Documentation","groups":[{"group":"Getting Started","pages":[{"title":"Grantex AI Agent Authorization","sidebarTitle":"Introduction","href":"/introduction"},{"title":"Ownership","sidebarTitle":"Ownership","href":"/ownership"},{"title":"Licence","sidebarTitle":"Licence","href":"/license"},{"title":"AI Agent Authorization Quickstart","sidebarTitle":"Quickstart","href":"/quickstart"},{"title":"Release Status","sidebarTitle":"Release Status","href":"/release-status"},{"title":"Migrating to Grantex 0.6","href":"/migration-0.6"},{"title":"Enforcement SDK migration","href":"/migration-enforcement"},{"title":"Local Development","sidebarTitle":"Local Development","href":"/local-development"}]},{"group":"Core Concepts","pages":[{"title":"How It Works","sidebarTitle":"How It Works","href":"/concepts/how-it-works"},{"title":"Grant Token","sidebarTitle":"Grant Token","href":"/concepts/grant-token"},{"title":"Scopes","sidebarTitle":"Scopes","href":"/concepts/scopes"},{"title":"Scope Registry","sidebarTitle":"Scope Registry","href":"/concepts/scope-registry"},{"title":"Multi-Agent Delegation","sidebarTitle":"Delegation","href":"/concepts/delegation"},{"title":"Grantex vs OAuth 2.0","sidebarTitle":"Grantex vs OAuth","href":"/concepts/vs-oauth"},{"title":"Tool Manifests","sidebarTitle":"Tool Manifests","href":"/concepts/tool-manifests"},{"title":"Purpose-Bound Grants","sidebarTitle":"Purpose-Bound Grants","href":"/concepts/purpose-bound-grants"},{"title":"Agent Passport and Grant","sidebarTitle":"Passport vs Grant","href":"/concepts/passport-vs-grant"},{"title":"Grantex and AgenticOrg Governed Cases","sidebarTitle":"AgenticOrg Governed Cases","href":"/guides/agenticorg-governed-cases"},{"title":"Decision Grants","sidebarTitle":"Decision Grants","href":"/concepts/decision-grants"},{"title":"Caps and Metering","sidebarTitle":"Caps and Metering","href":"/concepts/caps-and-metering"},{"title":"Evidence and Verification","sidebarTitle":"Evidence and Verification","href":"/concepts/evidence-and-verification"},{"title":"Event Bridge and Revocation","sidebarTitle":"Event Bridge and Revocation","href":"/concepts/event-bridge-and-revocation"}]},{"group":"Trust \u0026 Identity","pages":[{"title":"Trust Registry","sidebarTitle":"Trust Registry","href":"/features/trust-registry"},{"title":"Becoming an Accredited Issuer","sidebarTitle":"Accredited Issuers","href":"/issuers/becoming-an-accredited-issuer"},{"title":"Running the Mock Issuer","sidebarTitle":"Mock Issuer","href":"/issuers/running-the-mock-issuer"},{"title":"Implementing an Issuer Adapter","sidebarTitle":"Issuer Adapters","href":"/issuers/implementing-an-issuer-adapter"},{"title":"Registering Agents and Their Keys","sidebarTitle":"Registering Agents","href":"/providers/registering-agents"},{"title":"Verifying agents with the registry","href":"/relying-parties/verifying-agents"},{"title":"FIDO2 / WebAuthn","sidebarTitle":"FIDO2 / WebAuthn","href":"/features/fido-webauthn"},{"title":"Verifiable Credentials","sidebarTitle":"Verifiable Credentials","href":"/features/verifiable-credentials"},{"title":"SD-JWT (Selective Disclosure)","sidebarTitle":"SD-JWT","href":"/features/sd-jwt"},{"title":"DID Infrastructure","sidebarTitle":"DID Infrastructure","href":"/features/did-infrastructure"},{"title":"MPP Agent Passport","sidebarTitle":"MPP Agent Passport","href":"/features/mpp-agent-passport"},{"title":"Irregularity Detection","sidebarTitle":"Irregularity Detection","href":"/features/anomaly-detection"}]},{"group":"Offline Authorization","pages":[{"title":"Offline Authorization","sidebarTitle":"Offline Authorization","href":"/features/offline-authorization"},{"title":"Consent Bundles","sidebarTitle":"Consent Bundles","href":"/features/consent-bundles"}]},{"group":"x402 Payment Protocol","pages":[{"title":"Agent Prepaid Wallets","href":"/features/prepaid-wallets"},{"title":"Agent Wallet Governance","description":"Responsibility boundaries, layered spend controls, exact payment approvals, reload governance, and deployment gaps for AI-agent prepaid wallets.","href":"/guides/agent-wallet-governance"},{"title":"Prepaid Wallet Production Readiness","sidebarTitle":"Wallet Production Readiness","href":"/guides/prepaid-wallet-production"},{"title":"Base USDC Custody","description":"Governed x402 EIP-3009 signing, verified funding, safe retries and finalized-chain reconciliation.","href":"/guides/base-usdc-custody"},{"title":"x402 Architecture","sidebarTitle":"x402 Architecture","href":"/features/x402-architecture"},{"title":"GDT Specification","sidebarTitle":"GDT Spec","href":"/features/x402-gdt-spec"}]},{"group":"MCP Authorization","pages":[{"title":"MCP Auth Server","href":"/features/mcp-auth-server"},{"title":"MCP Auth 4.0: authenticated human consent","href":"/mcp-auth"}]},{"group":"OACP Authority","pages":[{"title":"OACP Authority Overview","href":"/guides/oacp/overview"},{"title":"OACP Truth Inventory","href":"/guides/oacp/truth-inventory"},{"title":"OACP Architecture","href":"/guides/oacp/architecture"},{"title":"OACP Artifact Authority","href":"/guides/oacp/artifact-authority"},{"title":"OACP Merchant Self-Service Config Boundary","href":"/guides/oacp/merchant-self-service-config"},{"title":"OACP Protocol Adapter Authority","href":"/guides/oacp/protocol-adapter"},{"title":"OACP Policy And Governance","href":"/guides/oacp/policy-governance"},{"title":"OACP Merchant Source Of Record","href":"/guides/oacp/merchant-source-of-record"},{"title":"OACP Buyer Safety And Freshness","href":"/guides/oacp/buyer-safety-freshness"},{"title":"OACP Provider And Payment Boundary","href":"/guides/oacp/provider-payment-boundary"},{"title":"Agent Network Identity","href":"/guides/oacp/agent-network-identity"},{"title":"OACP Offline POS Bridge Boundary","href":"/guides/oacp/pos-bridge-boundary"},{"title":"OACP Integration Guide For AgenticOrg","href":"/guides/oacp/agenticorg-integration"},{"title":"OACP Operator Runbook","href":"/guides/oacp/operator-runbook"},{"title":"OACP Launch Readiness","href":"/guides/oacp/launch-readiness"},{"title":"OACP Library Helper Decision","href":"/guides/oacp/library-helper-decision"},{"title":"OACP Mandates Decision","href":"/guides/oacp/mandates-decision"},{"title":"Move Your Shopify Store To Agentic Commerce","href":"/guides/oacp/explainers/shopify-to-agentic-commerce"},{"title":"How Buyer Agents Shop Safely With OACP","href":"/guides/oacp/explainers/buyer-agent-safety"},{"title":"Build Against OACP Artifacts And Bridges","href":"/guides/oacp/explainers/developer-artifacts-bridges"},{"title":"How OACP Maps To Schema.org, UCP, ACP, AP2, A2A, And MCP","href":"/guides/oacp/explainers/protocol-partner-mappings"},{"title":"Provider-Owned Mandate And Payment Evidence In OACP","href":"/guides/oacp/explainers/provider-owned-payment-evidence"},{"title":"Launch And Rollback Runbook","href":"/guides/oacp/explainers/launch-rollback-runbook"}]},{"group":"Agentic Commerce V1 (Historical)","pages":[{"title":"Commerce V1 Overview","href":"/guides/commerce-v1-overview"},{"title":"Agentic Commerce PRD","href":"/guides/commerce-v1-agentic-commerce-prd"},{"title":"Agentic Commerce Implementation PRD","href":"/guides/commerce-v1-agentic-commerce-implementation-prd"},{"title":"End-To-End Agentic Commerce Flow","href":"/guides/commerce-v1-end-to-end-agentic-commerce-flow"},{"title":"Merchant Guide To Agentic Commerce","href":"/guides/commerce-v1-merchant-agentic-commerce-user-guide"},{"title":"Commerce V1 Developer Guide","href":"/guides/commerce-v1-developer-guide"},{"title":"Commerce V1 Merchant And Operator Guide","href":"/guides/commerce-v1-merchant-operator-guide"},{"title":"Commerce V1 Operations","href":"/guides/commerce-v1-operations"}]},{"group":"Compliance","pages":[{"title":"DPDP \u0026 GDPR Evidence Module","sidebarTitle":"DPDP Compliance","href":"/features/dpdp-compliance"},{"title":"DPDP Act 2023 and DPDP Rules 2025","sidebarTitle":"DPDP Act 2023","href":"/compliance/dpdp-act-2023"},{"title":"EU AI Act","sidebarTitle":"EU AI Act","href":"/compliance/eu-ai-act"},{"title":"Sub-processor Disclosure","href":"/compliance/sub-processors"},{"title":"Data Residency Statement","href":"/compliance/data-residency"},{"title":"BFSI platform baseline","href":"/compliance/bfsi-platform-baseline"},{"title":"Data Processing Addendum (Template)","href":"/compliance/dpa"},{"title":"Privacy Policy (Draft)","href":"/compliance/privacy-policy"},{"title":"Terms of Service (Draft)","href":"/compliance/terms-of-service"},{"title":"Commercial licensing","href":"/compliance/licensing"},{"title":"Cookie Policy (Draft)","href":"/compliance/cookie-policy"}]},{"group":"Guides","pages":[{"title":"Rate Limits","sidebarTitle":"Rate Limits","href":"/guides/rate-limits"},{"title":"Webhooks","sidebarTitle":"Webhooks","href":"/guides/webhooks"},{"title":"Self-Hosting","sidebarTitle":"Self-Hosting","href":"/guides/self-hosting"},{"title":"Dependency Updates and Validation","href":"/guides/dependency-updates"},{"title":"Security Hardening","sidebarTitle":"Security Hardening","href":"/guides/security-hardening"},{"title":"CERT-In Agent Security Deployment Guide","href":"/guides/cert-in-agent-security"},{"title":"Supply Chain and License Security","sidebarTitle":"Supply Chain Security","href":"/guides/supply-chain-security"},{"title":"OAuth Agent Grants Profile","sidebarTitle":"OAuth Agent Grants","href":"/guides/oauth-agent-grants"},{"title":"Operations","sidebarTitle":"Operations","href":"/guides/operations"},{"title":"Security Best Practices","sidebarTitle":"Security Best Practices","href":"/guides/security-best-practices"},{"title":"Token Verification Strategy","sidebarTitle":"Token Verification","href":"/guides/token-verification"},{"title":"SDK Execution Authority","href":"/guides/sdk-execution-authority"},{"title":"Troubleshooting","sidebarTitle":"Troubleshooting","href":"/guides/troubleshooting"},{"title":"End-User Permission Dashboard","sidebarTitle":"End-User Permissions","href":"/guides/end-user-permissions"},{"title":"Migration Guide","sidebarTitle":"Migration","href":"/guides/migration"},{"title":"Metrics \u0026 Observability","sidebarTitle":"Metrics \u0026 Observability","href":"/guides/metrics-observability"},{"title":"OpenTelemetry Tracing","sidebarTitle":"OpenTelemetry","href":"/guides/opentelemetry"},{"title":"Event Streaming","href":"/guides/event-streaming"},{"title":"Datadog Integration","href":"/guides/siem-datadog"},{"title":"Splunk Integration","href":"/guides/siem-splunk"},{"title":"S3 \u0026 BigQuery Archival","href":"/guides/siem-s3-bigquery"},{"title":"Budget \u0026 Spending Controls","href":"/guides/budget-controls"},{"title":"Terraform Provider","href":"/guides/terraform"},{"title":"Pulumi","href":"/guides/pulumi"},{"title":"Interactive Playground","href":"/guides/playground"},{"title":"OPA Integration","href":"/guides/opa-integration"},{"title":"Cedar Integration","href":"/guides/cedar-integration"},{"title":"Policy-as-Code","href":"/guides/policy-as-code"},{"title":"Usage Metering","href":"/guides/usage-metering"},{"title":"Custom Domains","href":"/guides/custom-domains"},{"title":"Trust Registry Setup","sidebarTitle":"Trust Registry Setup","href":"/guides/trust-registry-setup"},{"title":"MPP Integration Guide","sidebarTitle":"MPP Integration","href":"/guides/mpp-integration"},{"title":"MCP Certification Applications","sidebarTitle":"MCP Certification","href":"/guides/mcp-certification"},{"title":"Enterprise SSO","sidebarTitle":"Enterprise SSO","href":"/guides/enterprise-sso"},{"title":"Compliance Matrix","href":"/guides/compliance-matrix"},{"title":"Irregularity Detection Setup","sidebarTitle":"Irregularity Setup","href":"/guides/anomaly-detection-setup"},{"title":"Raspberry Pi Guide","sidebarTitle":"Raspberry Pi","href":"/guides/raspberry-pi"},{"title":"Android + Gemma 4 Guide","sidebarTitle":"Android","href":"/guides/android-gemma4"},{"title":"iOS + Gemma 4 Guide","sidebarTitle":"iOS","href":"/guides/ios-gemma4"},{"title":"Scope Enforcement","sidebarTitle":"Scope Enforcement","href":"/guides/scope-enforcement"},{"title":"Custom Manifests","sidebarTitle":"Custom Manifests","href":"/guides/custom-manifests"}]},{"group":"Case Studies","pages":[{"title":"AgenticOrg Case Study","sidebarTitle":"AgenticOrg","href":"/case-studies/agenticorg"}]},{"group":"Examples","pages":[{"title":"Quickstart (TypeScript)","sidebarTitle":"Quickstart (TS)","href":"/examples/quickstart-ts"},{"title":"Quickstart (Python)","sidebarTitle":"Quickstart (PY)","href":"/examples/quickstart-py"},{"title":"Next.js Starter","sidebarTitle":"Next.js Starter","href":"/examples/nextjs-starter"},{"title":"LangChain Agent","sidebarTitle":"LangChain","href":"/examples/langchain-agent"},{"title":"Vercel AI Chatbot","sidebarTitle":"Vercel AI","href":"/examples/vercel-ai-chatbot"},{"title":"CrewAI Agent","sidebarTitle":"CrewAI","href":"/examples/crewai-agent"},{"title":"OpenAI Agents SDK","sidebarTitle":"OpenAI Agents","href":"/examples/openai-agents"},{"title":"Google ADK","sidebarTitle":"Google ADK","href":"/examples/google-adk"},{"title":"Anthropic SDK Tool Use","sidebarTitle":"Anthropic","href":"/examples/anthropic-tool-use"},{"title":"Multi-Agent Email Flow","sidebarTitle":"Email Flow","href":"/examples/multi-agent-email-flow"},{"title":"Token Refresh \u0026 Rotation","sidebarTitle":"Token Refresh","href":"/examples/token-expiry-refresh"},{"title":"Audit Dashboard","sidebarTitle":"Audit Dashboard","href":"/examples/audit-dashboard"},{"title":"Quickstart: Gemma 4 Offline Auth","sidebarTitle":"Quickstart (Gemma 4)","href":"/examples/quickstart-gemma"}]}]},{"tab":"TypeScript SDK","pages":[{"title":"TypeScript SDK","href":"/sdks/typescript/overview"}]},{"tab":"Python SDK","pages":[{"title":"Python SDK","href":"/sdks/python/overview"}]},{"tab":"Go SDK","pages":[{"title":"Go SDK","href":"/sdks/go/overview"}]},{"tab":"Integrations","pages":[{"title":"Integrations","href":"/integrations/overview"}]},{"tab":"API Reference","pages":[{"title":"API Reference","href":"/api-reference/introduction"}]},{"tab":"Protocol","pages":[{"title":"Protocol","href":"/protocol/specification"}]},{"tab":"Blog","pages":[{"title":"Blog","href":"/blog/oacp-one-trust-layer-under-ucp-acp-ap2"}]}]},"basePath":"","title":"Prepaid Wallet Production Readiness - Grantex","deploymentId":"dpl_EwfxjeKENdVkfzdag8rM6mKzcTUJ","buildId":"dpl_EwfxjeKENdVkfzdag8rM6mKzcTUJ","dynamics":[],"chunks":[]}