Skip to main content

Storage

Stentor API Reference


Stentor API Reference / stentor-models/src / Storage

Interface: Storage

Defined in: packages/stentor-models/src/Storage/Storage.ts:9

Extends​

Indexable​

[keys: string]: any

Properties​

createdTimestamp​

createdTimestamp: number

Defined in: packages/stentor-models/src/Storage/Storage.ts:16

When the storage was created. This can be used to keep track of when we first met the user.

Time is stored as number of milliseconds elapsed since the UNIX epoch.


lastActiveTimestamp?​

optional lastActiveTimestamp: number

Defined in: packages/stentor-models/src/Storage/Storage.ts:23

When the last time we updated the storage was. This can be used to keep track of when we last saw the user.

Time is stored as number of milliseconds elapsed since the UNIX epoch.


history?​

optional history: History

Defined in: packages/stentor-models/src/Storage/Storage.ts:31

Limited history for the user, used to store media they are in the middle of listening to.

Can be used to store other historical data in the future, such as previous responses they have heard.

NOTE: We might want to make history required on storage.


currentHandler?​

optional currentHandler: Handler

Defined in: packages/stentor-models/src/Storage/Storage.ts:35

The current handler of intents & events.


previousHandler?​

optional previousHandler: Handler

Defined in: packages/stentor-models/src/Storage/Storage.ts:39

The previous handler before the current


previousIntent?​

optional previousIntent: Intent

Defined in: packages/stentor-models/src/Storage/Storage.ts:43

The previous intent before the current


previousResponse?​

optional previousResponse: Response

Defined in: packages/stentor-models/src/Storage/Storage.ts:47

The previous response given to the user.


unknownInputs?​

optional unknownInputs: number

Defined in: packages/stentor-models/src/Storage/Storage.ts:51

Number of consecutive InputUnknown requests received from the user


currentAudioHandler?​

optional currentAudioHandler: Handler

Defined in: packages/stentor-models/src/Storage/Storage.ts:55

The current handler that is playing audio.


sessionStore?​

optional sessionStore: SessionStoreData

Defined in: packages/stentor-models/src/Storage/Storage.ts:59

Session raw data that is used to create the session store


piiToken?​

optional piiToken: string

Defined in: packages/stentor-models/src/Storage/Storage.ts:67

The PII information key (pii token)