Appearance
@talkline/server-sdk
@talkline/server-sdk — for a tenant's backend.
Access tokens, minted in your own process. No network call, and none is meant to be: a tenant already knows who its user is, and minting locally means a call still starts when Talkline's control plane is down. For any other language the claim set is the contract.
ts
const token = await mintToken({
apiKey, apiSecret,
identity: 'app:user:123',
grants: { roomJoin: true, room: 'RM_9f3a', canPublish: true, canSubscribe: true },
});The control API, typed (Talkline): rooms, calls, presence, identities and devices, queues, usage and credit, webhook endpoints. Its types are generated from the API's OpenAPI document, which is the contract.
Webhooks, verified (parseWebhook, verifySignature).
Installed from a release's tarballs, not a registry: Installing the SDKs.
Classes
Interfaces
- ApplicationsApi
- CallsApi
- CreditsApi
- Grants
- IdentitiesApi
- MintOptions
- Page
- PresenceApi
- QueuesApi
- RecordingsApi
- RoomsApi
- SendDataRequest
- TalklineOptions
- TokenClaims
- TokensApi
- UsageApi
- VerifyOptions
- WebhooksApi
Type Aliases
- AddQueueMemberRequest
- Application
- ApplicationKey
- ApplicationKeyCreated
- AuthErrorCode
- Call
- CallDetail
- CallEvent
- CreateApplicationKeyRequest
- CreateApplicationRequest
- CreateCallRequest
- CreateQueueRequest
- CreateRoomRequest
- CreateWebhookRequest
- CreditAccount
- CreditEntryRequest
- CreditEntryResult
- Delivery
- Device
- ErrorCode
- ExplainQueueQuery
- Health
- IdentitySettings
- Introspection
- Invite
- LedgerEntry
- ListCallsQuery
- ListDeliveriesQuery
- ListOnlineQuery
- ListParticipantsQuery
- ListQueueEntriesQuery
- ListRecordingsQuery
- ListRoomsQuery
- MintedToken
- MintTokenRequest
- Pageless
- PageQuery
- Participant
- PresenceEntry
- Problem
- Queue
- QueueEntry
- QueueExplanation
- QueueMember
- QueueSimulation
- QueueStats
- Recording
- RecordingFile
- RecordingUrls
- RecordingUrlsQuery
- RevokedApplicationKey
- Room
- RoomDetail
- SendDataResult
- SignatureCheck
- SimulateQueueQuery
- Track
- TrackSource
- UpdateApplicationRequest
- UpdateParticipantRequest
- UpdateQueueMemberRequest
- UpdateQueueRequest
- UpdateWebhookRequest
- UpsertDeviceRequest
- UpsertIdentityRequest
- UsageGroup
- UsagePage
- UsageQuery
- UsageRates
- WebhookDelivery
- WebhookEndpoint
- WebhookEndpointWithSecret
- WebhookEventName