Storage
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?β
optionallastActiveTimestamp: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?β
optionalhistory: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?β
optionalcurrentHandler:Handler
Defined in: packages/stentor-models/src/Storage/Storage.ts:35
The current handler of intents & events.
previousHandler?β
optionalpreviousHandler:Handler
Defined in: packages/stentor-models/src/Storage/Storage.ts:39
The previous handler before the current
previousIntent?β
optionalpreviousIntent:Intent
Defined in: packages/stentor-models/src/Storage/Storage.ts:43
The previous intent before the current
previousResponse?β
optionalpreviousResponse:Response
Defined in: packages/stentor-models/src/Storage/Storage.ts:47
The previous response given to the user.
unknownInputs?β
optionalunknownInputs:number
Defined in: packages/stentor-models/src/Storage/Storage.ts:51
Number of consecutive InputUnknown requests received from the user
currentAudioHandler?β
optionalcurrentAudioHandler:Handler
Defined in: packages/stentor-models/src/Storage/Storage.ts:55
The current handler that is playing audio.
sessionStore?β
optionalsessionStore:SessionStoreData
Defined in: packages/stentor-models/src/Storage/Storage.ts:59
Session raw data that is used to create the session store
piiToken?β
optionalpiiToken:string
Defined in: packages/stentor-models/src/Storage/Storage.ts:67
The PII information key (pii token)