MemoryPlatformStore
Defined in: packages/adapter-memory/src/index.ts:50
In-memory platform registry (seedable at construction). Implements the
writable MutablePlatformStore so Dynamic Registration works in dev/tests.
Implements
Section titled “Implements”MutablePlatformStore
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new MemoryPlatformStore(
platforms?):MemoryPlatformStore
Defined in: packages/adapter-memory/src/index.ts:54
Parameters
Section titled “Parameters”platforms?
Section titled “platforms?”Platform[] = []
Returns
Section titled “Returns”MemoryPlatformStore
Methods
Section titled “Methods”add(
platform):void
Defined in: packages/adapter-memory/src/index.ts:58
Parameters
Section titled “Parameters”platform
Section titled “platform”Platform
Returns
Section titled “Returns”void
find()
Section titled “find()”find(
iss,clientId?):Promise<Platform|null>
Defined in: packages/adapter-memory/src/index.ts:62
Resolve a platform by issuer, optionally disambiguated by clientId
(for multiple tools/registrations under one issuer). Return null if none.
Parameters
Section titled “Parameters”string
clientId?
Section titled “clientId?”string | null
Returns
Section titled “Returns”Promise<Platform | null>
Implementation of
Section titled “Implementation of”MutablePlatformStore.find
save()
Section titled “save()”save(
input):Promise<Platform>
Defined in: packages/adapter-memory/src/index.ts:69
Upsert on (issuer, clientId): update endpoints in place, or insert.
Parameters
Section titled “Parameters”PlatformInput
Returns
Section titled “Returns”Promise<Platform>
Implementation of
Section titled “Implementation of”MutablePlatformStore.save