UNPKG

mastra

Version:
19 lines 1.02 kB
import type { ApiCommandDescriptor } from './types.js'; export interface ApiRequestOptions { baseUrl: string; headers: Record<string, string>; timeoutMs: number; descriptor: ApiCommandDescriptor; pathParams: Record<string, string>; input?: Record<string, unknown>; /** Server API route prefix (e.g. `/api/mastra-studio`). Defaults to `/api`. */ apiPrefix?: string; } export declare function requestApi(options: ApiRequestOptions): Promise<unknown>; export declare function buildUrl(baseUrl: string, path: string, pathParams: Record<string, string>, input?: Record<string, unknown>, apiPrefix?: string): string; export declare function splitInput(descriptor: ApiCommandDescriptor, input?: Record<string, unknown>): { queryInput?: Record<string, unknown>; bodyInput?: Record<string, unknown>; }; export declare function fetchSchemaManifest(baseUrl: string, headers: Record<string, string>, timeoutMs: number, apiPrefix?: string): Promise<any>; //# sourceMappingURL=client.d.ts.map