Type Aliases
This document contains the documentation for the type aliases available in the Toolbelt.
BaseSDE
BaseSDE =
object
Properties
type
type:
sdetypes|string
CachedSecret
CachedSecret =
object
This type is used internally
Properties
key
key:
string
Key of the secret made of chars that match [A-z0-9-_] and limited to 100 chars,
value
value:
string
The stringified Value of the secret which is limited to 16384 chars.
CacheSettings
CacheSettings =
object
Properties
ttl?
optionalttl:number
ClientTLS
ClientTLS =
object
Properties
ca?
optionalca:string|Buffer
Certificate of the CA, this is relevant when endpoint that is called has an self-signed certificate. The certificate needs to be in PEM format.
cert
cert:
string|Buffer
CLient Certificate in PEM format.
key
key:
string|Buffer
Client Key in PEM format.
Conversation
Conversation =
object
Properties
_metadata
_metadata:
object
conversationHistoryRecords
conversationHistoryRecords:
ConversationRecord[]
ConversationRecord
ConversationRecord =
object&Record<string,unknown>
Type Declaration
agentParticipants?
optionalagentParticipants:unknown
campaign?
optionalcampaign:unknown
coBrowseSessions?
optionalcoBrowseSessions:unknown
consumerParticipants?
optionalconsumerParticipants:unknown
conversationSurveys?
optionalconversationSurveys:unknown
dialogs?
optionaldialogs:unknown
info?
optionalinfo:unknown
intents?
optionalintents:unknown
interactions?
optionalinteractions:unknown
messageRecords?
optionalmessageRecords:MessageRecord[]
messageScores?
optionalmessageScores:unknown
messageStatuses?
optionalmessageStatuses:unknown
responseTime?
optionalresponseTime:unknown
sdes?
optionalsdes:unknown
skillChanges?
optionalskillChanges:unknown
summary?
optionalsummary:unknown
transfers?
optionaltransfers:unknown
unAuthSdes?
optionalunAuthSdes:unknown
uniqueIntents?
optionaluniqueIntents:unknown
ConversationSDEs
ConversationSDEs =
object
Properties
sdes?
optionalsdes:SDEsResponse
unAuthSdes?
optionalunAuthSdes:SDEsResponse
FilesReplaced
FilesReplaced =
string[]
ILpClient()
ILpClient = (
service,path,options?) =>Promise<Response>
Parameters
| Name | Type |
|---|---|
service |
LpServices | string
|
path |
string |
options? |
ILpClientOptions |
Returns
Promise<Response>
ILpClientOptions
ILpClientOptions =
object&RequestInit
Type Declaration
appKeySecretName?
optionalappKeySecretName:string
KeywordScannerResult
KeywordScannerResult =
object
Properties
message
message:
string
sentBy
sentBy:
string
sentTimestamp
sentTimestamp:
number
tag
tag:
string
LPMtlsOptions
LPMtlsOptions =
object
Options specific to MTLS requests.
Properties
json?
optionaljson:boolean
Set this flag to true, to automatically stringify body + set correct content header. And parse response to json.
timeout?
optionaltimeout:number
Time in ms until request should timeout. Please be aware that MTLS call take longer then regular http calls.
LPMtlsResponse
LPMtlsResponse =
object
Properties
body
body:
unknown
headers
headers:
Record<string,string>
statusCode
statusCode:
number
MessageRecord
MessageRecord =
object
Properties
messageData
messageData:
object
file?
optionalfile:object
| Name | Type |
|---|---|
file.caption |
string |
file.relativePath? |
string |
msg?
optionalmsg:object
| Name | Type |
|---|---|
msg.text |
string |
sentBy
sentBy:
string
timeL
timeL:
number
type
type:
string
MTLSOptions
MTLSOptions =
object
Options specific to MTLS requests.
Properties
allowSelfSigned?
optionalallowSelfSigned:boolean
To ignore errors raised by self-signed certificates on the called endpoint. Alternative to this is providing the ca-cert as part of the clientTLS config.
json?
optionaljson:boolean
Set this flag to true, to automatically stringify body + set correct content header. And parse response to json.
timeout?
optionaltimeout:number
Time in ms until request should timeout. Please be aware that MTLS call take longer then regular http calls.
MTLSResponse
MTLSResponse =
object
Properties
body?
optionalbody:unknown
Body if present. This usually is a string, when not using json flag. If the json flag is true, it will attempt to JSON.parse it. If that fails the original body will returned in string format.
headers
headers:
Record<string,string>
Response Headers.
statusCode
statusCode:
number
Status Code returned by Server.
ObjectStoreCredentials
ObjectStoreCredentials =
object
Properties
password
password:
string
username
username:
string
OrchestratorInvocation
OrchestratorInvocation =
object
Properties
headers?
optionalheaders:Record<string,string>
Invocation headers
payload
payload:
unknown
Invocation Payload
retries?
optionalretries:number
Default 3
retryFunction?
optionalretryFunction:RetryFunction
This function is used to determine if a received status code/error should be retried or aborted. The default tactic is to retry on 429 and 5xx. This excludes retries on errors raised by the function.
uuid
uuid:
string
function UUID
OrchestratorOptions
OrchestratorOptions =
object
Properties
errorStrategy?
optionalerrorStrategy:ErrorStrategy
Defines the strategy to follow in case on error.
invokeParallel?
optionalinvokeParallel:boolean
If true, it will execute all invocations in parallel
json?
optionaljson:boolean
Set this flag to true, to automatically stringify response body to json.
timeout?
optionaltimeout:number
Request timeout for each invocation
OrchestratorResponse
OrchestratorResponse =
object
Properties
body?
optionalbody:unknown
Response body, should be a JSON object or string
error?
optionalerror:object
If present will contain error code and message
| Name | Type |
|---|---|
code |
string |
message |
string |
headers?
optionalheaders:Record<string,string>
Response headers
statusCode?
optionalstatusCode:number
Status Code returned by the invoked function.
uuid
uuid:
string
function UUID that was invoked
ReplacementFile
ReplacementFile =
object
Properties
body
body:
Buffer
contentType
contentType:
string
ReplacePredicate()
ReplacePredicate = (
path) =>boolean
Parameters
| Name | Type |
|---|---|
path |
string |
Returns
boolean
RetryFunction()
RetryFunction = (
statusCode?,error?) =>boolean
Parameters
| Name | Type |
|---|---|
statusCode? |
number |
error? |
unknown |
Returns
boolean
SDE
SDE =
BaseSDE&Record<string,unknown>
SDEevent
SDEevent =
object&Record<string,unknown>
Type Declaration
serverTimeStamp
serverTimeStamp:
string
SDEsResponse
SDEsResponse =
object
Properties
events
events:
SDEevent[]
SecretClientOptions
SecretClientOptions =
object
Properties
cache
cache:
CacheSettings
SecretEntry
SecretEntry =
object
Properties
key
key:
string
Key of the secret made of chars that match [A-z0-9-_] and limited to 100 chars,
value
value:
unknown
Value of the secret which is limited to 16384 chars. IF the value cannot be parsed it will be string.
SecretRequestOptions
SecretRequestOptions =
object
Properties
timeout
timeout:
number
timeout for request in ms, default: 5 minutes
useCache
useCache:
boolean
use cache for