/** * Generated webhook event types. * * Do not edit by hand. Run `bun run tools/scripts/generate-webhook-events-sdk.ts`. * * @module */ export declare namespace Webhook { const MANIFEST_VERSION = "2026-05-07"; type LifecycleState = "pending" | "provisional" | "final" | "retracted" | "recalled"; type SupersedingLifecycleState = Extract; /** * Adds `supersedes` only to lifecycle states that can authoritatively replace * an earlier event. * * @see ../../kit/docs/content/events/idempotency-and-on-chain-outcome.mdx */ type SupersedesAccessor = TState extends SupersedingLifecycleState ? { readonly supersedes: string; } : { readonly supersedes?: undefined; }; type EventEnvelope = { readonly type: TType; readonly version: TVersion; readonly evt_id: string; readonly lifecycle_state: TState; readonly payload: TPayload; readonly related: Readonly>; readonly request?: { readonly idempotency_key?: string; }; readonly is_replay?: boolean; } & SupersedesAccessor; type AccessControlRoleGrantedProvisionalV1 = EventEnvelope<"access-control.role-granted.provisional", 1, "provisional", { readonly accessManagerAddress: string; readonly accountAddress: string; readonly blockNumber: string; readonly chainId: number; readonly roleId: string; readonly sender: string; readonly systemAddress: string; readonly transactionHash: string; }>; type AccessControlRoleRevokedProvisionalV1 = EventEnvelope<"access-control.role-revoked.provisional", 1, "provisional", { readonly accessManagerAddress: string; readonly accountAddress: string; readonly blockNumber: string; readonly chainId: number; readonly roleId: string; readonly sender: string; readonly systemAddress: string; readonly transactionHash: string; }>; type AssetIssuanceProvisionalV1 = EventEnvelope<"asset.issuance.provisional", 1, "provisional", { readonly assetAddress: string; readonly chainId: number; readonly issuer: string; readonly quantity: string; readonly transactionHash: string; }>; type ComplianceFreezeRecalledV1 = EventEnvelope<"compliance.freeze.recalled", 1, "recalled", { readonly chainId: number; readonly reasonCode: string; readonly recalledBy: string; readonly subjectAddress: string; readonly supersedes: string; readonly tokenAddress: string; }>; type IdentityRegistrationProvisionalV1 = EventEnvelope<"identity.registration.provisional", 1, "provisional", { readonly accountAddress: string; readonly blockNumber: string; readonly chainId: number; readonly country: number; readonly identityAddress: string; readonly registryAddress: string; readonly status: string; readonly transactionHash: string; }>; type SettlementTransferRetractedV1 = EventEnvelope<"settlement.transfer.retracted", 1, "retracted", { readonly chainId: number; readonly reorgBlockNumber: number; readonly settlementId: string; readonly supersedes: string; readonly transactionHash: string; }>; type TokenTransferFinalV1 = EventEnvelope<"token.transfer.final", 1, "final", { readonly amount: string; readonly blockNumber: number; readonly chainId: number; readonly from: string; readonly logIndex: number; readonly to: string; readonly tokenAddress: string; readonly transactionHash: string; }>; type TokenTransferPendingV1 = EventEnvelope<"token.transfer.pending", 1, "pending", { readonly amount: string; readonly chainId: number; readonly from: string; readonly to: string; readonly tokenAddress: string; readonly transactionHash: string; }>; type AnyEvent = AccessControlRoleGrantedProvisionalV1 | AccessControlRoleRevokedProvisionalV1 | AssetIssuanceProvisionalV1 | ComplianceFreezeRecalledV1 | IdentityRegistrationProvisionalV1 | SettlementTransferRetractedV1 | TokenTransferFinalV1 | TokenTransferPendingV1; type EventType = AnyEvent["type"]; type Event = Extract; } /** * AsyncAPI manifest version used to generate this SDK's webhook event union. * * Consumer code should include a `default` branch when exhaustively switching * on `Webhook.Event["type"]`; newer DALP deployments may add event types * without breaking older SDK versions. */ export declare const WEBHOOK_MANIFEST_VERSION = "2026-05-07"; //# sourceMappingURL=webhook-events.d.ts.map