General options for the application service
Members
string
# aliasPrefix Optional
If provided, use this as the alias prefix rather than calculating from the namespace.
IAppserviceCryptoStorageProvider
# cryptoStorage Optional
The storage provider to use for setting up encryption. Encryption will be
disabled for all intents and the appservice if not configured.
object
# intentOptions Optional
Options for how Intents are handled.
Properties:
| Name | Type | Attributes | Description |
|---|---|---|---|
maxCached |
number
|
<optional> |
The maximum number of intents to keep cached. Defaults to 10 thousand. |
maxAgeMs |
number
|
<optional> |
The maximum age in milliseconds to keep an Intent around for, provided, the maximum number of intents has been reached. Defaults to 60 minutes. |
encryption |
boolean
|
<optional> |
If false (default), crypto will not be automatically set up for all intent, instances - it will need to be manually enabled with, `await intent.enableEncryption()`., , If true, crypto will be automatically set up., , Note that the appservice bot account is considered an intent. |
enableContentScanner |
boolean
|
<optional> |
Enable the content scanner API when creating new intents. This means, that all media requests will be proxied through the scanner. |
IAppserviceStorageProvider
# storage Optional
The storage provider to use for this application service.
string
# userPrefix Optional
If provided, use this as the user prefix rather than calculating from the namespace.