Everything you need to know to use Payman with TypeScript
.env
file in your project root:
onMessage
for real-time updates, long-running tasks, or
progress monitoring. Streaming is ideal for workflows where you want to
process results as they arrive.sessionId
.payman.ask()
.sessionId
when initializing the client:
withToken
method:
withCredentials(config)
withAuthCode(config, code)
withToken(config, tokenInfo)
ask(text, options?)
getAccessToken()
getRefreshToken()
isAccessTokenExpired()
getSessionId()
getClientName()