logggai
Version:
AI-powered CLI for transforming your development work into professional content
44 lines • 1.32 kB
TypeScript
declare class ApiClient {
private baseURL;
constructor();
private getHeaders;
private handleApiError;
verifyAuth(sessionToken: string): Promise<any>;
refreshToken(sessionToken: string): Promise<any>;
createPost(data: {
title: string;
content: string;
tags?: string[];
useAI?: boolean;
promptId?: string;
}): Promise<any>;
getPosts(limit?: number, offset?: number): Promise<any>;
getPrompts(): Promise<any>;
getDefaultPrompt(): Promise<any>;
getIntegrations(): Promise<any>;
publishToSocial(articleId: string, platforms: string[]): Promise<any>;
createProject(data: {
name: string;
repo?: string;
contextType: string;
contextId?: string;
}): Promise<any>;
syncCommits(data: {
projectId: string;
commits: Array<{
hash: string;
message: string;
content: string;
useAI: boolean;
promptId?: string;
}>;
contextType: string;
contextId?: string;
}): Promise<any>;
getUserOrganizations(): Promise<any>;
getCurrentContext(): Promise<any>;
switchContext(organizationId?: string): Promise<any>;
}
export declare const apiClient: ApiClient;
export {};
//# sourceMappingURL=api.d.ts.map