MCPcopy
hub / github.com/ginobefun/BestBlogs / ApiEnvelope

Interface ApiEnvelope

cli/src/api/client.ts:14–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12import { getConfig } from '../config.js'
13
14export interface ApiEnvelope<T = unknown> {
15 success: boolean
16 code?: string | null
17 message?: string | null
18 requestId?: string | null
19 data: T
20}
21
22export class CliApiError extends Error {
23 readonly kind = 'api' as const

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected