@adcp/sdk API Reference - v7.9.0
    Preparing search index...

    Function scopedStore

    • Return a session-scoped view of any AdcpStateStore.

      Prefers store.scoped(sessionKey) when the store defines it; otherwise wraps with createSessionedStore. Use this in SDK code and skills so custom store implementations work without requiring them to implement scoped themselves.

      import { scopedStore } from '@adcp/sdk/server';

      const sessionStore = scopedStore(ctx.store, ctx.sessionKey!);
      await sessionStore.put('media_buys', buyId, buy);
      const { items } = await sessionStore.list('media_buys');

      Parameters

      Returns AdcpStateStore