TypeScript Logging and Errors
Reference for @band-ai/sdk 1.0.0.
Logging
A Logger is any object with debug, info, warn and error methods of type (message: string, context?: Record<string, unknown>) => void.
Errors
Exported from @band-ai/sdk/core. All extend BandSdkError.
Platform HTTP errors, such as UnauthorizedError for a 401, come from the generated REST client and carry the status code and response body.