Anchorage API reference
    Preparing search index...

    Hierarchy

    • NotificationsStorage
      • D1NotificationsStorage
    Index

    Constructors

    Methods

    • Parameters

      • input: CreateNotificationInput

      Returns Promise<NotificationRecord>

    • Clears all data from this storage domain. This is a destructive operation - use with caution. Primarily used for testing.

      Returns Promise<void>

    • Parameters

      • input: { id: string; threadId: string }

      Returns Promise<NotificationRecord | null>

    • Initialize the storage domain. This should create any necessary tables/collections. Default implementation is a no-op - override in adapters that need initialization.

      Returns Promise<void>

    • Due pending notifications across ALL threads/tenants, filtered only by the optional agentId/resourceId — GLOBALLY UNSCOPED by tenant, exactly like core's InMemory reference (a cron dispatcher's cross-thread sweep). It is a trusted-computing-base-only read (no client route reaches it), so this is not a leak here. The trusted dispatcher that drives delivery from this list must scope each dispatch by the row's tenant-salted resourceId (${tenantId}_…) / per-thread threadId before it acts, or a cross-tenant sweep would deliver one tenant's inbox into another's loop.

      Parameters

      • input: ListDueNotificationsInput

      Returns Promise<NotificationRecord[]>

    • Parameters

      • input: ListNotificationsInput

      Returns Promise<NotificationRecord[]>

    • Parameters

      • input: UpdateNotificationInput

      Returns Promise<NotificationRecord>