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 deployment threads, filtered only by the optional agentId/resourceId, exactly like core's InMemory reference. It is a trusted-computing-base-only read (no client route reaches it). The dispatcher validates each row's thread/resource binding before addressing a Durable Object.

      Parameters

      • input: ListDueNotificationsInput

      Returns Promise<NotificationRecord[]>

    • Parameters

      • input: ListNotificationsInput

      Returns Promise<NotificationRecord[]>

    • Parameters

      • input: UpdateNotificationInput

      Returns Promise<NotificationRecord>