kawasekit
kawasekit — TypeScript SDK for stablecoin payments by AI agents.
This is the public API surface. The package root is the one allowed barrel file; it contains re-exports only — no logic. JSDoc lives on the original declarations.
Classes
- ChainNotSupportedError
- CoSignUnavailableError
- IdempotencyConfigError
- IdempotencyRecordParseError
- IdempotencyRecordVersionError
- JpycNotAvailableError
- PolicyGatedSignerConfigError
- SessionEnvelopeChainMismatchError
- SessionEnvelopeParseError
- SessionEnvelopeSignerMismatchError
- SessionEnvelopeVersionError
- SpendingPolicyConfigError
- TransferJpycInputError
- X402InvalidConfigError
- X402InvalidPayloadError
- X402PolicyRejectedError
Interfaces
- BuildPaymentRequiredResponseParams
- BuildPaymentRequirementsParams
- BuildRevokeSessionKeyCallParams
- CancelAuthorizationMessage
- CanonicalRequestIdentity
- CoSignConnection
- CoSignRequestAuthenticator
- CoSignRequestEnvelope
- CoSignTransport
- CreateBuyListPoliciesParams
- CreateHttpFacilitatorParams
- CreateIdempotencyKeyBuilderParams
- CreateInMemoryIdempotencyStoreParams
- CreateJpycDailyLimitPoliciesParams
- CreateLocalPolicyGatedSignerParams
- CreateSelfFacilitatorParams
- CreateSpendingPolicyParams
- CreateSponsoredKernelClientParams
- CreateX402HandlerParams
- Eip3009Domain
- Facilitator
- IdempotencyKeyBuilder
- IdempotencyLease
- IdempotencyRecord
- IdempotencyResponseSnapshot
- IdempotencyServerConfig
- IdempotencyStore
- JpycDeployment
- KawaseChain
- KawasekitSessionEnvelope
- KawasekitSessionPolicySummary
- KnownAssetDomain
- Mpc2pCoSignAgent
- Mpc2pSignerParams
- ObservabilityEventBase
- ObservabilityHooks
- PaymentAcceptedEvent
- PaymentIntent
- PaymentRequiredEvent
- PolicyGatedSigner
- PolicyRejection
- ResolvedAsset
- RestoreSessionAccountParams
- RevokeSessionKeyParams
- RevokeSessionKeyResult
- RotateSessionKeyParams
- RotateSessionKeyResult
- SignedAuthorization
- SignerDescription
- SignX402PaymentParams
- SpendingPolicy
- SpendState
- SponsoredKernelClientObservability
- TokenLimit
- TransferJpycParams
- TransferJpycResult
- TransferWithAuthorizationMessage
- WireIntent
- WrapFetchParams
- X402ExactEvmAuthorization
- X402ExactEvmExtra
- X402ExactEvmPayload
- X402HandlerContext
- X402PaymentPayload
- X402PaymentRequiredResponse
- X402PaymentRequirements
- X402PaymentSigner
- X402ResourceInfo
- X402SettlementResponse
- X402SupportedKind
- X402SupportedResponse
- X402TokenDomain
- X402VerifyRequest
- X402VerifyResponse
Type Aliases
- AgentOwner
- ClientPaymentEvent
- ConfiguredKernelClient
- CoSignFrame
- CreateAgentSmartAccountParams
CreateCoinbaseFacilitatorParams- CreateX402PaymentSignerParams
- EnforcementLevel
- HookCallback
- IdempotencyLookupResult
- IssueSessionKeyParams
- KawasekitIdempotencyRecordVersion
- KawasekitSessionEnvelopeVersion
- KnownAssetId
- Mpc2pStepOutcome
- NonBypassableEnforcement
- ObservabilityEvent
- PolicyDecision
- ReceiveWithAuthorizationMessage
- SettleEvent
- SignResult
- SupportedChainId
- VerifyEvent
- X402AssetParam
- X402AssetTransferMethod
- X402Fetch
- X402InnerHandler
- X402Network
- X402RequestHandler
- X402Scheme
- X402SettleRequest
- X402SettleResponse
- X402Version
Variables
- avalanche
- avalancheFuji
- cancelAuthorizationTypes
- ethereum
- JPYC_DECIMALS
- JPYC_EIP712_DOMAIN_HINT
- JPYC_V2_ADDRESS
- jpycAbi
- jpycDeployments
- kaia
- kairos
- KAWASEKIT_IDEMPOTENCY_RECORD_VERSION
- KAWASEKIT_SESSION_ENVELOPE_VERSION
- ONE_DAY_SECONDS
- polygon
- polygonAmoy
- receiveWithAuthorizationTypes
- sepolia
- supportedChains
- transferWithAuthorizationTypes
- WIRE_VERSION
- X402_DEFAULT_AUTHORIZATION_LIFETIME_SECONDS
- X402_DEFAULT_MAX_TIMEOUT_SECONDS
- X402_FACILITATOR_ERROR_CODES
- X402_HEADER_IDEMPOTENCY_KEY
- X402_HEADER_PAYMENT_REQUIRED
- X402_HEADER_PAYMENT_RESPONSE
- X402_HEADER_PAYMENT_SIGNATURE
- X402_VERSION
Functions
- assertNonBypassable
- authorizationDeadlineFromNow
- buildPaymentRequiredResponse
- buildPaymentRequirements
- buildRevokeSessionKeyCall
- canonicalRequestBytes
- chainIdToX402Network
- createAgentSmartAccount
- createBuyListPolicies
createCoinbaseFacilitator- createHttpFacilitator
- createIdempotencyKeyBuilder
- createInMemoryIdempotencyStore
- createJpycDailyLimitPolicies
- createLocalPolicyGatedSigner
- createMpc2pPolicyGatedSigner
- createSelfFacilitator
- createSpendingPolicy
- createSponsoredKernelClient
- createX402Handler
- createX402PaymentSigner
- decodePaymentRequiredHeader
- decodePaymentResponseHeader
- decodePaymentSignatureHeader
- deriveAuthorizationNonce
- deriveIdempotencyKey
- deriveReceiptTimeoutMs
- encodePaymentRequiredHeader
- encodePaymentResponseHeader
- encodePaymentSignatureHeader
- evaluateSpendingPolicy
- extractAcceptedNetworks
- generateAuthorizationNonce
- getChain
- getJpycAddress
- getKnownAssetDomain
- invokeHookSafely
- issueSessionKey
- isSupportedChainId
- isX402Network
- listKnownAssetIds
- mergeSpendState
- normalizeIntentText
- parseIdempotencyRecord
- parseSessionEnvelope
- requireNonBypassable
- resolvedAssetToEip3009Domain
- restoreSessionAccount
- revokeSessionKey
- rotateSessionKey
- serializeIdempotencyRecord
- serializeSessionEnvelope
- signCancelAuthorization
- signReceiveWithAuthorization
- signTransferWithAuthorization
- toWireIntent
- transferJpyc
- wrapFetch
- x402NetworkToChainId
- zerodevRpcUrl