mastra
Version:
cli for mastra
17 lines • 870 B
TypeScript
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>;
}
export declare function requestApi(options: ApiRequestOptions): Promise<unknown>;
export declare function buildUrl(baseUrl: string, path: string, pathParams: Record<string, string>, input?: Record<string, unknown>): 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): Promise<any>;
//# sourceMappingURL=client.d.ts.map