SDK reference
Generated reference for @atmosphere-money/app-node exports, client methods, errors, and event helpers.
Compatible with the closed-beta ATM app APIs and versioned ATM event headers. Check atm-api-version on every webhook or XRPC receiver event.
Generated source
Generated from packages/app-node/src/index.ts. The App Node SDK is server-side, dependency-free at runtime, and MIT licensed as a package.
- Package
- @atmosphere-money/app-node
- Runtime
- Node 22+, ESM, TypeScript declarations from dist/index.d.ts.
- License
- MIT for the package only. The ATM monorepo and hosted platform remain private.
- Package browser
- https://npmx.dev/package/@atmosphere-money/app-node
- Generated exports
- 246
- Generated client methods
- 42
Install shape
Install the pinned native build supplied for your integration and keep its integrity hash in your lockfile. Older npm betas may not include the native checkout helpers listed below.
# For example, a supplied package tarball:
npm install ./atmosphere-money-app-node-<version>.tgzClient methods
Client methods are grouped by the app surface they help with. For checkout, use createCheckout and getCheckoutStatus, ideally through createAtmCheckoutAttempts. Methods marked legacy remain only for older integrations; do not use them in new code. Tickets methods are for scarce inventory and scanner flows.
| Group | Method | Purpose |
|---|---|---|
| tickets | archiveTicketType | Archive a ticket type while preserving purchase history. |
| tickets | checkInTicket | Idempotently check in a verified ticket token. |
| tickets | claimFreeTicket | Issue a limited free ticket with app auth plus buyer assertion. |
| tickets | createTicketEvent | ATM App Node client method. |
| tickets | createTicketHold | Reserve scarce ticket capacity and return a stable app statusToken plus a separately rotatable ATM browser token/url. |
| tickets | createTicketType | Create an organizer-owned ticket type for an event. |
| tickets | getTicketAvailability | Read private ATM ticket availability derived from holds and issued tickets. |
| tickets | listBuyerTickets | List app-scoped tickets for a buyer or payment. |
| tickets | listOrganizerTickets | List tickets for an organizer or event. |
| tickets | releaseTicketHold | Release an unused ticket hold. |
| tickets | setEventCapacity | ATM App Node client method. |
| tickets | updateTicketEvent | ATM App Node client method. |
| tickets | updateTicketType | Update organizer-owned ticket type fields. |
| tickets | verifyTicket | Verify an opaque QR/pass ticket token without checking in. |
| payments | auditFeeDistributions | ATM App Node client method. |
| payments | configureInventory | ATM App Node client method. |
| payments | createCheckout | Native test integration; use only capabilities admitted for your app. Create native checkout by POST with a persisted request and idempotency key. |
| payments | createPledge | ATM App Node client method. |
| payments | createProduct | ATM App Node client method. |
| payments | createProgram | ATM App Node client method. |
| payments | createTier | ATM App Node client method. |
| payments | getAppConfig | ATM App Node client method. |
| payments | getCheckoutStatus | Native test integration; use only capabilities admitted for your app. Read native checkout status by POST with the original status capability in JSON and fresh exact-method service-auth. |
| payments | getInventory | ATM App Node client method. |
| payments | getOrder | ATM App Node client method. |
| payments | getPaymentStatus | Legacy-only status; new integrations use native getCheckoutStatus by POST. |
| payments | getPayoutStatus | Check if a recipient DID can currently receive payments before showing checkout. |
| profiles | getProfile | Read an ATM profile through the AppView. |
| payments | getRecipientApproval | ATM App Node client method. |
| payments | initiatePayment | Legacy-only initiation; new integrations use native createCheckout. |
| payments | listEvents | ATM App Node client method. |
| payments | listOrders | ATM App Node client method. |
| payments | refundPayment | ATM App Node client method. |
| payments | registerAppLink | ATM App Node client method. |
| payments | replacePrice | ATM App Node client method. |
| payments | requestRecipientApproval | ATM App Node client method. |
| payments | updateAppConfig | ATM App Node client method. |
| payments | updateOrderFulfillment | ATM App Node client method. |
| payments | updateProduct | ATM App Node client method. |
| payments | updateProgram | ATM App Node client method. |
| payments | updateTier | ATM App Node client method. |
| payments | upsertAppFeeTier | ATM App Node client method. |
Exported helpers
The export list follows the package source. Large shared type sections are collapsed by default; checkout, webhook, receiver, and ticket helpers stay near the top.
core checkout29 exports
| Export | Kind | Description |
|---|---|---|
| AtmCheckoutAttempt | type | Versioned private app/broker/environment/request binding, integrity digest and saved checkout response/status; stored operations retain their recovery contract. |
| AtmCheckoutCadence | type | Native test integration; use only capabilities admitted for your app. Billing-cadence type for checkout-v1. |
| AtmCheckoutEnvelope | type | Server-only checkout envelope input. May contain private session context. |
| AtmCheckoutItem | type | Exported TypeScript contract for ATM app integrations. |
| AtmCheckoutPayer | type | Native test integration; use only capabilities admitted for your app. Authoritative-payer snapshot for checkout-v1 status. |
| AtmCheckoutPayerAuth | type | Exported TypeScript contract for ATM app integrations. |
| AtmCheckoutPayerBinding | type | Exported TypeScript contract for ATM app integrations. |
| AtmCheckoutPublicRecords | type | Exported TypeScript contract for ATM app integrations. |
| AtmCheckoutReconciliation | type | Canonical purchase action and an idempotent effect key; does not apply fulfillment or prove a subscription invoice. |
| AtmCheckoutStatus | type | Native test integration; use only capabilities admitted for your app. Checkout-v1 status and fulfillment contract; use terminal-only stopping and canonical fulfillment. |
| AtmCheckoutStrongRef | type | Native test integration; use only capabilities admitted for your app. StrongRef type for checkout-v1 inputs and status evidence. |
| AtmCheckoutSubscriptionPolicy | type | Exported TypeScript contract for ATM app integrations. |
| AtmCreateCheckoutInput | type | Native test integration; use only capabilities admitted for your app. Input contract for createCheckout. |
| AtmCreateCheckoutResult | type | Native test integration; use only capabilities admitted for your app. CreateCheckout response, with separate browser and app-status capabilities. |
| AtmGetCheckoutStatusInput | type | Native test integration; use only capabilities admitted for your app. Exact-originator status-capability input for getCheckoutStatus. |
| AtmInitiatePaymentResult | type | Exported TypeScript contract for ATM app integrations. |
| AtmInventoryCheckoutMode | type | Exported TypeScript contract for ATM app integrations. |
| AtmPaymentStatus | type | Canonical payment status used by durable backend reconciliation. |
| AtmPaymentSummary | type | App-visible payment summary used in events and status responses. |
| AtmPaymentType | type | ATM payment classification used for dashboard, events, and app policy. |
| AtmPayoutStatus | type | Payability response used before showing checkout buttons. |
| AtmProfile | type | ATM profile summary returned by the public AppView profile lookup. |
| AtmPublicRecordPaymentPolicy | type | Exported TypeScript contract for ATM app integrations. |
| AtmRefundPaymentInput | type | Exported TypeScript contract for ATM app integrations. |
| AtmRefundPaymentResult | type | Exported TypeScript contract for ATM app integrations. |
| createAtmAppClient | function | Create a server-side ATM client for app XRPC methods, checkout, status, profile, and Tickets calls. |
| createAtmCheckoutAttempts | function | Capture immutable test checkout attempts before I/O, replay original requests and reconcile canonical status without replacement operations. |
| createAtmCheckoutProduct | function | Build the private atm.checkout.v1 envelope used by strict attested.network initiation. |
| createPaymentInitiateBody | function | Build the strict { product } request body for network.attested.payment.initiate. |
webhooks and events56 exports
| Export | Kind | Description |
|---|---|---|
| AtmAppWebhookEventSetting | type | Exported TypeScript contract for ATM app integrations. |
| AtmAttestationUpdatedEventData | type | Exported TypeScript contract for ATM app integrations. |
| AtmCloudflareWorkerWebhookHandler | type | Exported TypeScript contract for ATM app integrations. |
| AtmEventDataByType | type | Map from known ATM event type to typed event data shape. |
| AtmEventDataFor | type | Conditional type that resolves event data for a known ATM event type. |
| AtmExpressWebhookHandlerOptions | type | Options for creating Express-style webhook handlers. |
| AtmInvoicePaidEventData | type | Exported TypeScript contract for ATM app integrations. |
| AtmLegacyXrpcMethod | type | Exported TypeScript contract for ATM app integrations. |
| AtmLexiconTypedEventData | type | Exported TypeScript contract for ATM app integrations. |
| AtmListEventsParams | type | Exported TypeScript contract for ATM app integrations. |
| AtmListEventsResult | type | Exported TypeScript contract for ATM app integrations. |
| AtmOrderFulfillmentEvent | type | Exported TypeScript contract for ATM app integrations. |
| AtmOrderUpdatedEventData | type | Exported TypeScript contract for ATM app integrations. |
| AtmPayerClaimedEventData | type | Exported TypeScript contract for ATM app integrations. |
| AtmPaymentCompletedEvent | type | Exported TypeScript contract for ATM app integrations. |
| AtmPaymentDisputeClosedEventData | type | Exported TypeScript contract for ATM app integrations. |
| AtmPaymentDisputedEventData | type | Exported TypeScript contract for ATM app integrations. |
| AtmPaymentEventData | type | Event data shape for payment events. |
| AtmPledgeConversionFailedEventData | type | Exported TypeScript contract for ATM app integrations. |
| AtmPledgeConvertedEventData | type | Exported TypeScript contract for ATM app integrations. |
| AtmPledgeEventData | type | Exported TypeScript contract for ATM app integrations. |
| AtmProductEventData | type | Event data shape for product/catalog events. |
| AtmRecipientAuthorizationEventData | type | Exported TypeScript contract for ATM app integrations. |
| AtmReconciliationEvent | type | Exported TypeScript contract for ATM app integrations. |
| AtmSegmentMessageEventData | type | Exported TypeScript contract for ATM app integrations. |
| AtmStoredXrpcReceiverMethod | type | Exported TypeScript contract for ATM app integrations. |
| AtmSubscriptionChangeEventData | type | Exported TypeScript contract for ATM app integrations. |
| AtmSubscriptionEventData | type | Event data shape for subscription events. |
| AtmTypedEvent | type | Typed ATM event envelope for a known event type. |
| AtmTypedWebhookEnvelope | type | Exported TypeScript contract for ATM app integrations. |
| AtmWebhookDeliveryClaimResult | type | Exported TypeScript contract for ATM app integrations. |
| AtmWebhookDeliveryStore | type | Exported TypeScript contract for ATM app integrations. |
| AtmWebhookEnvelope | type | Canonical ATM event envelope used by HTTP webhooks and optional XRPC receivers. |
| AtmWebhookEventType | type | Known ATM event type union for typed webhook and XRPC receiver events. |
| AtmWebhookHandlerEvent | type | Event type passed into middleware-style webhook handlers. |
| AtmWebhookHandlerOptions | type | Options for creating Request/Response webhook handlers. |
| AtmWebhookHandlerResult | type | Return shape for middleware-style webhook handlers. |
| AtmWebhookHeaders | type | Headers required to verify an ATM HTTP webhook. |
| AtmXrpcMethod | type | Exported TypeScript contract for ATM app integrations. |
| AtmXrpcReceiverHeaders | type | Headers used by optional ATM-to-app XRPC receiver delivery. |
| AtmXrpcReceiverMethod | type | Exported TypeScript contract for ATM app integrations. |
| constructAtmWebhookEvent | function | Verify an HTTP webhook signature over the raw body and parse the ATM event envelope. |
| ConstructAtmWebhookOptions | type | Options for verifying and parsing an ATM HTTP webhook event. |
| constructAtmXrpcReceiverEvent | function | Verify optional XRPC receiver service-auth and parse the ATM event envelope. |
| ConstructAtmXrpcReceiverOptions | type | Options for verifying and parsing optional ATM XRPC receiver events. |
| constructTypedAtmWebhookEvent | function | Verify an HTTP webhook and narrow event.data for a known ATM event type. |
| constructTypedAtmXrpcReceiverEvent | function | Verify an XRPC receiver event and narrow event.data for a known ATM event type. |
| createAtmXrpcReceiverAudience | function | Build the service-auth audience for an app-hosted ATM XRPC receiver service. |
| createCloudflareWorkerWebhookHandler | function | Exported App Node SDK helper. |
| createExpressWebhookHandler | function | Create an Express-style ATM webhook handler with raw-body verification. |
| createHonoWebhookHandler | function | Exported App Node SDK helper. |
| createNextWebhookRoute | const | Alias for Request/Response ATM webhook route handlers in Next route handlers. |
| createNodeWebhookHandler | function | Create a Request/Response ATM webhook route handler for Node-compatible runtimes. |
| signAtmWebhookPayload | function | Create a local ATM webhook signature for tests and fixture generation. |
| VerifyAtmWebhookOptions | type | Options for raw ATM webhook HMAC verification. |
| verifyAtmWebhookSignature | function | Check an ATM HTTP webhook HMAC signature with timestamp tolerance and secret rotation support. |
tickets40 exports
| Export | Kind | Description |
|---|---|---|
| AtmArchiveTicketTypeInput | type | Input for archiving a ticket type. |
| AtmArchiveTicketTypeResult | type | Exported TypeScript contract for ATM app integrations. |
| AtmCreateTicketEventInput | type | Exported TypeScript contract for ATM app integrations. |
| AtmCreateTicketTypeInput | type | Input for creating an organizer-owned ticket type for an event. |
| AtmFreeTicketClaimInput | type | Input for claiming a limited free ticket without checkout. |
| AtmFreeTicketClaimResult | type | Result from claiming a limited free ticket without checkout. |
| AtmListBuyerTicketsParams | type | Query parameters for app-scoped buyer ticket lists. |
| AtmListOrganizerTicketsParams | type | Query parameters for organizer or event ticket lists. |
| AtmListTicketsResult | type | Exported TypeScript contract for ATM app integrations. |
| AtmReleaseTicketHoldInput | type | Input for releasing an unused ticket hold. |
| AtmReleaseTicketHoldResult | type | Exported TypeScript contract for ATM app integrations. |
| AtmSetEventCapacityInput | type | Exported TypeScript contract for ATM app integrations. |
| AtmSetEventCapacityResult | type | Exported TypeScript contract for ATM app integrations. |
| AtmTicketAvailability | type | Availability response derived from private ATM holds and issued tickets. |
| AtmTicketAvailabilityParams | type | Query parameters for reading organizer-owned ticket availability visible to the app. |
| AtmTicketCheckedInEvent | type | Exported TypeScript contract for ATM app integrations. |
| AtmTicketCheckInInput | type | Input for idempotent ticket check-in by opaque scan token. |
| AtmTicketCheckInResult | type | Check-in result for scanner apps. |
| AtmTicketEventData | type | Event data shape for ticket hold, issuance, refund, void, and check-in events. |
| AtmTicketEventInput | type | Event metadata supplied by a ticketing app when configuring organizer-owned ticket types or capacity. |
| AtmTicketEventResult | type | Exported TypeScript contract for ATM app integrations. |
| AtmTicketEventStatus | type | Exported TypeScript contract for ATM app integrations. |
| AtmTicketEventSummary | type | Exported TypeScript contract for ATM app integrations. |
| AtmTicketFailedRefundReviewEventData | type | Exported TypeScript contract for ATM app integrations. |
| AtmTicketHoldInput | type | Input for creating a paid ticket hold before checkout. |
| AtmTicketHoldItem | type | Exported TypeScript contract for ATM app integrations. |
| AtmTicketHoldResult | type | Result from creating a ticket hold, with a stable app-only statusToken separate from the rotatable browser token and url. |
| AtmTicketItemRequest | type | Exported TypeScript contract for ATM app integrations. |
| AtmTicketPartialRefundReviewEventData | type | Exported TypeScript contract for ATM app integrations. |
| AtmTicketsIssuedEvent | type | Exported TypeScript contract for ATM app integrations. |
| AtmTicketSummary | type | Exported TypeScript contract for ATM app integrations. |
| AtmTicketTypeResult | type | Exported TypeScript contract for ATM app integrations. |
| AtmTicketTypeSummary | type | Exported TypeScript contract for ATM app integrations. |
| AtmTicketWaitlistEventData | type | Exported TypeScript contract for ATM app integrations. |
| AtmUpdateTicketEventInput | type | Exported TypeScript contract for ATM app integrations. |
| AtmUpdateTicketTypeInput | type | Input for updating organizer-owned ticket type fields. |
| AtmVerifyTicketInput | type | Input for verifying an opaque ticket token without mutating check-in state. |
| AtmVerifyTicketResult | type | Verification result for QR/pass ticket presentation. |
| createFreeTicketClaimBody | function | Exported App Node SDK helper. |
| createTicketHoldBody | function | Exported App Node SDK helper. |
errors4 exports
| Export | Kind | Description |
|---|---|---|
| AtmApiError | class | Structured ATM request error with code, HTTP status, and parsed response body. |
| AtmCheckoutContractError | class | Native test integration; use only capabilities admitted for your app. Local validation error for the native checkout request and response shapes. |
| AtmWebhookSignatureError | class | Error thrown when HTTP webhook signature or event-header validation fails. |
| AtmXrpcReceiverAuthError | class | Error thrown when optional XRPC receiver auth or envelope validation fails. |
constants17 exports
| Export | Kind | Description |
|---|---|---|
| ATM_BROKER_DID | const | ATM broker DID used for broker service-auth and attested.network context. |
| ATM_BROKER_SERVICE_AUDIENCE | const | Default service-auth audience for ATM broker XRPC methods. |
| ATM_CHECKOUT_PRODUCT_PREFIX | const | Prefix for ATM's launch checkout envelope token. |
| ATM_CHECKOUT_SERVICE_AUDIENCE | const | Native test integration; use only capabilities admitted for your app. Exact-service audience for the checkout-v1 methods; this constant does not enable an auth path. |
| ATM_EVENT_RECEIVE_EVENT_NSID | const | Exported App Node SDK helper. |
| ATM_EVENT_RECEIVE_NSID | const | Deprecated source alias that resolves to the canonical ATM event receiver NSID. |
| ATM_IDEMPOTENCY_KEY_MAX_LENGTH | const | Exported App Node SDK helper. |
| ATM_IDEMPOTENCY_KEY_PATTERN | const | Exported App Node SDK helper. |
| ATM_LEGACY_XRPC_METHODS | const | Temporary old-wire NSIDs for explicitly pinned one-release migration bridges. |
| ATM_XRPC_METHODS | const | Grouped NSID constants for ATM app-facing XRPC methods. A constant does not establish capability admission for an app or environment. |
| DEFAULT_ATM_APPVIEW_URL | const | Default production AppView XRPC base URL. |
| DEFAULT_ATM_BROKER_URL | const | Default production broker and checkout XRPC base URL. |
| DEFAULT_ATM_WEBHOOK_MAX_BODY_BYTES | const | Default 1 MiB UTF-8 body limit for ATM HTTP webhook verification. |
| DEFAULT_ATM_WEBHOOK_MAX_SIGNATURE_HEADER_BYTES | const | Default 8 KiB limit for the Atm-Signature header. |
| DEFAULT_ATM_WEBHOOK_MAX_SIGNATURES | const | Default maximum number of v1 webhook signatures accepted during secret rotation. |
| DEFAULT_ATM_WEBHOOK_TOLERANCE_SECONDS | const | Default timestamp tolerance for verifying ATM HTTP webhook signatures. |
| DEFAULT_ATM_XRPC_RECEIVER_SERVICE | const | Default DID service id for app-hosted ATM event receivers. |
shared types100 exports
| Export | Kind | Description |
|---|---|---|
| AtmAppClientOptions | type | Exported TypeScript contract for ATM app integrations. |
| AtmAppConfig | type | Exported TypeScript contract for ATM app integrations. |
| AtmAppFeeTier | type | Exported TypeScript contract for ATM app integrations. |
| AtmAssignableProductKind | type | Exported TypeScript contract for ATM app integrations. |
| AtmAttestation | type | Exported TypeScript contract for ATM app integrations. |
| AtmAttestationProofRef | type | Exported TypeScript contract for ATM app integrations. |
| AtmAttestationRefInspection | type | Exported TypeScript contract for ATM app integrations. |
| AtmAttestationTier | type | Exported TypeScript contract for ATM app integrations. |
| AtmAuditFeeDistributionsParams | type | Exported TypeScript contract for ATM app integrations. |
| AtmCatalogCustomUnitAmountInput | type | Exported TypeScript contract for ATM app integrations. |
| AtmCatalogPriceInput | type | Exported TypeScript contract for ATM app integrations. |
| AtmCatalogPriceTierInput | type | Exported TypeScript contract for ATM app integrations. |
| AtmCatalogRecurringPriceInput | type | Exported TypeScript contract for ATM app integrations. |
| AtmCommerceOrderFinancialStatus | type | Exported TypeScript contract for ATM app integrations. |
| AtmCommerceOrderFulfillmentStateCause | type | Exported TypeScript contract for ATM app integrations. |
| AtmCommerceOrderFulfillmentStatus | type | Exported TypeScript contract for ATM app integrations. |
| AtmCommerceOrderRouting | type | Exported TypeScript contract for ATM app integrations. |
| AtmCommerceOrderSummary | type | Exported TypeScript contract for ATM app integrations. |
| AtmConfigureInventoryInput | type | Exported TypeScript contract for ATM app integrations. |
| AtmCreateMembershipProgramInput | type | Exported TypeScript contract for ATM app integrations. |
| AtmCreateMembershipTierInput | type | Exported TypeScript contract for ATM app integrations. |
| AtmCreatePledgeInput | type | Exported TypeScript contract for ATM app integrations. |
| AtmCreatePledgeResult | type | Exported TypeScript contract for ATM app integrations. |
| AtmCreateProductInput | type | Exported TypeScript contract for ATM app integrations. |
| AtmDurableRow | type | Exported TypeScript contract for ATM app integrations. |
| AtmDurableStore | type | Exported TypeScript contract for ATM app integrations. |
| AtmEnvironment | type | ATM app environment selector: test or live. |
| AtmExpressLikeRequest | type | Minimal Express-compatible request shape used by the SDK without depending on Express. |
| AtmExpressLikeResponse | type | Minimal Express-compatible response shape used by the SDK without depending on Express. |
| AtmFeeDistribution | type | Exported TypeScript contract for ATM app integrations. |
| AtmFeeDistributionsResult | type | Exported TypeScript contract for ATM app integrations. |
| AtmFeeDistributionStatus | type | Exported TypeScript contract for ATM app integrations. |
| AtmGetInventoryInput | type | Exported TypeScript contract for ATM app integrations. |
| AtmGetOrderParams | type | Exported TypeScript contract for ATM app integrations. |
| AtmGetRecipientApprovalInput | type | Exported TypeScript contract for ATM app integrations. |
| AtmGetRecipientApprovalResult | type | Exported TypeScript contract for ATM app integrations. |
| AtmHonoLikeContext | type | Exported TypeScript contract for ATM app integrations. |
| AtmInventoryPolicy | type | Exported TypeScript contract for ATM app integrations. |
| AtmInventoryResult | type | Exported TypeScript contract for ATM app integrations. |
| AtmInventoryStatus | type | Exported TypeScript contract for ATM app integrations. |
| AtmInventoryView | type | Exported TypeScript contract for ATM app integrations. |
| AtmInvoiceSummary | type | Exported TypeScript contract for ATM app integrations. |
| AtmLegacySubscriptionChangeStatus | type | Deprecated queued subscription-change status spellings accepted during the beta.6 drain. |
| AtmListOrdersParams | type | Exported TypeScript contract for ATM app integrations. |
| AtmListOrdersResult | type | Exported TypeScript contract for ATM app integrations. |
| AtmMembershipProgramWriteResult | type | Exported TypeScript contract for ATM app integrations. |
| AtmMembershipTierWriteResult | type | Exported TypeScript contract for ATM app integrations. |
| AtmOrder | type | Exported TypeScript contract for ATM app integrations. |
| AtmOrderFulfillmentTarget | type | Exported TypeScript contract for ATM app integrations. |
| AtmOrderItem | type | Exported TypeScript contract for ATM app integrations. |
| AtmOrderTracking | type | Exported TypeScript contract for ATM app integrations. |
| AtmPledgeSummary | type | Exported TypeScript contract for ATM app integrations. |
| AtmProductAppLinkRole | type | Exported TypeScript contract for ATM app integrations. |
| AtmProductAppLinkStatus | type | Exported TypeScript contract for ATM app integrations. |
| AtmProductAppRef | type | Exported TypeScript contract for ATM app integrations. |
| AtmProductCustomUnitAmount | type | Exported TypeScript contract for ATM app integrations. |
| AtmProductInventoryInput | type | Exported TypeScript contract for ATM app integrations. |
| AtmProductKind | type | Exported TypeScript contract for ATM app integrations. |
| AtmProductPriceInput | type | Exported TypeScript contract for ATM app integrations. |
| AtmProductPriceTier | type | Exported TypeScript contract for ATM app integrations. |
| AtmProductRecurringPrice | type | Exported TypeScript contract for ATM app integrations. |
| AtmProductWriteResult | type | Exported TypeScript contract for ATM app integrations. |
| AtmPublicRecordsPolicy | type | Exported TypeScript contract for ATM app integrations. |
| AtmPublicRecordVisibility | type | Exported TypeScript contract for ATM app integrations. |
| AtmReceiverServiceAuthVerifier | type | Callback type for app code that verifies ATM service-auth JWT signatures. |
| AtmRecipientApprovalStatus | type | Exported TypeScript contract for ATM app integrations. |
| AtmRegisterAppLinkInput | type | Exported TypeScript contract for ATM app integrations. |
| AtmRegisterAppLinkResult | type | Exported TypeScript contract for ATM app integrations. |
| AtmReplacePriceInput | type | Exported TypeScript contract for ATM app integrations. |
| AtmReplacePriceResult | type | Exported TypeScript contract for ATM app integrations. |
| AtmRequestRecipientApprovalInput | type | Exported TypeScript contract for ATM app integrations. |
| AtmRequestRecipientApprovalResult | type | Exported TypeScript contract for ATM app integrations. |
| AtmServiceAuthTokenProvider | type | Exported TypeScript contract for ATM app integrations. |
| AtmStrongRef | type | AT Protocol strongRef shape for public catalog and entitlement references. |
| AtmSubscriptionActiveLimit | type | Exported TypeScript contract for ATM app integrations. |
| AtmSubscriptionChange | type | Exported TypeScript contract for ATM app integrations. |
| AtmSubscriptionChangeDirection | type | Exported TypeScript contract for ATM app integrations. |
| AtmSubscriptionChangeOffer | type | Exported TypeScript contract for ATM app integrations. |
| AtmSubscriptionChangeProjection | type | Exported TypeScript contract for ATM app integrations. |
| AtmSubscriptionChangeStatus | type | Exported TypeScript contract for ATM app integrations. |
| AtmSubscriptionCurrentTerms | type | Exported TypeScript contract for ATM app integrations. |
| AtmSubscriptionInvoice | type | Exported TypeScript contract for ATM app integrations. |
| AtmSubscriptionInvoices | type | Exported TypeScript contract for ATM app integrations. |
| AtmSubscriptionInvoicesInput | type | Exported TypeScript contract for ATM app integrations. |
| AtmSubscriptionMembershipTerms | type | Exported TypeScript contract for ATM app integrations. |
| AtmSubscriptionSummary | type | Exported TypeScript contract for ATM app integrations. |
| AtmUpdateAppConfigInput | type | Exported TypeScript contract for ATM app integrations. |
| AtmUpdateMembershipProgramInput | type | Exported TypeScript contract for ATM app integrations. |
| AtmUpdateMembershipTierInput | type | Exported TypeScript contract for ATM app integrations. |
| AtmUpdateOrderFulfillmentInput | type | Exported TypeScript contract for ATM app integrations. |
| AtmUpdateOrderFulfillmentResult | type | Exported TypeScript contract for ATM app integrations. |
| AtmUpdateProductInput | type | Exported TypeScript contract for ATM app integrations. |
| AtmUpsertAppFeeTierInput | type | Exported TypeScript contract for ATM app integrations. |
| AtmVerifiedServiceAuthClaims | type | Minimal verified service-auth claims ATM receiver helpers need after JWT verification. |
| createAtmFileStore | function | Create a private persistent local POSIX JSON store with fsync and exclusive revision CAS. Use a shared database adapter for a fleet. |
| inspectAtmAttestationRefs | function | Exported App Node SDK helper. |
| LEGACY_ATM_EVENT_RECEIVE_NSID | const | Temporary old-wire receiver NSID for an existing pinned configuration only. |
| verifyAtmReceiverServiceAuthClaims | function | Validate iss, aud, and lxm claims for an ATM-to-app XRPC receiver JWT after signature verification. |
| verifyServiceAuthRequest | function | Exported App Node SDK helper. |
| VerifyServiceAuthRequestOptions | type | Exported TypeScript contract for ATM app integrations. |
Errors
| AtmApiError | Thrown when an ATM XRPC/API response is non-2xx. Carries code, status, and parsed body. |
|---|---|
| AtmWebhookSignatureError | Thrown when webhook signature, delivery id, event type, API version, or environment validation fails. |
| AtmXrpcReceiverAuthError | Thrown when XRPC receiver authorization or event envelope validation fails. |
| AtmCheckoutContractError | Thrown when a native checkout input, stored attempt or response breaks the contract. |
import { AtmApiError, AtmCheckoutContractError } from "@atmosphere-money/app-node";
try {
await attempts.recover("order_123_attempt_1");
} catch (error) {
if (error instanceof AtmApiError && error.code === "RecipientNotPayable") {
showSetupRequiredState();
} else if (error instanceof AtmCheckoutContractError) {
throw error; // a local bug or a changed stored attempt: never resend different bytes
}
// Anything else: keep the attempt and retry later with the same attempt ID.
}Updating the SDK
- Read the package changelog before updating; breaking changes are listed there and on Versioning.
- Keep the lockfile integrity hash so an update is always deliberate.
- Re-run your restart, retry and duplicate-delivery tests after every update.
- Stored attempts keep their storage version. A newer SDK replays them with the contract they were captured under.
- The copy-friendly single-file mirror at docs/developer/sdk/atm-app.ts matches the package source.