@graphty/graphty-element / ai / PersistenceConfig
Interface: PersistenceConfig ​
Defined in: graphty-element/src/ai/keys/ApiKeyManager.ts:16
Configuration options for enabling persistence. Every field is optional.
Properties ​
encryptionKey? ​
optionalencryptionKey?:string
Defined in: graphty-element/src/ai/keys/ApiKeyManager.ts:23
Encryption key used to encrypt stored API keys (minimum 10 characters). Default: a built-in key, which keeps keys out of plain text at rest but does not protect them from anyone who can run script on the page. A custom key is remembered in sessionStorage for the rest of the tab's life, so persistence survives a reload and ends when the tab closes.
prefix? ​
optionalprefix?:string
Defined in: graphty-element/src/ai/keys/ApiKeyManager.ts:27
Prefix for storage keys (default: the constructor's, which defaults to "@graphty-ai-keys")
storage? ​
optionalstorage?:StorageType
Defined in: graphty-element/src/ai/keys/ApiKeyManager.ts:25
Storage type (default: the constructor's, which defaults to "localStorage")