Anchorage API reference
    Preparing search index...

    The cron/webhook-only cross-tenant view. Deliberately NOT a TenantBoundSubscriptionStore ([SUBSCRIPTION_TENANT_BOUND]?: never) so it can never reach request-scoped code — the SystemApprovalStore posture.

    interface SystemSubscriptionStore {
        "[SUBSCRIPTION_TENANT_BOUND]"?: undefined;
        listByResource(
            providerId: string,
            externalResourceId: string,
        ): Promise<StoredSubscription[]>;
    }
    Index

    Properties

    "[SUBSCRIPTION_TENANT_BOUND]"?: undefined

    Methods

    • Every subscription to (providerId, externalResourceId) ACROSS tenants — each carries its own tenantId. The webhook's tenant-resolution authority: a webhook payload NEVER names a tenant; the matched row does.

      Parameters

      • providerId: string
      • externalResourceId: string

      Returns Promise<StoredSubscription[]>