ServerResponse
Standard response envelope used by all API endpoints.ServerResponseError
Error details returned whensuccess is false.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
CollabKit is currently in Beta. APIs and features may change.
Standard response envelope and error types used by all API endpoints.
import type { ServerResponse, ServerResponseError } from '@collab-kit/utils';
interface ServerResponse<T extends object = Record<string, never>> {
type: string;
success: boolean;
description: string;
data: T;
error: ServerResponseError | null;
requestId?: string;
}
success is false.
interface ServerResponseError {
module: Module;
code: ResponseCode;
message: string;
}