@microsoft/teams.common package

Classes

Client
ConsoleLogger
EventEmitter
ListLocalStorage

An in-memory list storage.

LocalStorage

a storage container that can get/set/delete items by a unique key

String

Interfaces

IEventEmitter
IListStorage

a list storage container that can store/query iterable data

ILogger
ILoggerOptions
IStorage

a storage container that can get/set/delete items by a unique key

Type Aliases

ClientOptions
ErrorContext
ErrorInterceptor

A method called to intercept a request that failed

EventHandler
Interceptor
LocalStorageOptions
LogLevel
Middleware

HTTP middleware that wraps one outbound request.

Middleware is registered with client.use(...) and runs in insertion order: the first registered middleware is the outermost wrapper.

MiddlewareContext

Context for a single HTTP middleware invocation.

config is the single source of truth for the outbound request: it carries the method, URL, body (data), query params, headers, and SDK-local extensions. Middleware reads and mutates the request through config (e.g. context.config.headers, context.config.extensions); extensions is never copied into headers, query params, or the request body by the common client. log is available for diagnostics.

MiddlewareNext

Calls the next middleware in the chain, or the terminal HTTP transport.

RequestConfig
RequestContext
RequestInterceptor

A method called to intercept a successful request

ResponseContext
ResponseInterceptor

A method called to intercept a successful response

StringLike
Token
TokenFactory