open-ai-npc
Version:
Testing openAI's API, with a "dungeon master".
24 lines (23 loc) • 734 B
TypeScript
import { DbApi } from "@dobuki/data-client";
import { GithubApi } from "@the-brains/github-db";
import { Lock } from "@dobuki/code-lock";
export declare const OWNER = "jacklehamster";
export declare const REPO = "power-troll-levels";
interface Props {
owner?: string;
repo?: string;
lock?: Lock;
}
export declare class GithubDb implements DbApi {
githubApi: GithubApi;
lock: Lock;
constructor({ owner, repo, lock }: Props);
listKeys(keyprefix?: string, branch?: string, recursive?: boolean): Promise<any>;
getData(key: string): Promise<{
data: any;
type?: string;
sha: string | null;
}>;
setData(key: string, valueOrCall: any, options?: any): Promise<any>;
}
export {};