UNPKG

@veecode-platform/safira-cli

Version:

Generate a microservice project from your spec.

33 lines (32 loc) 1.02 kB
import { GithubCredential } from "../../vkpr/credentials/credentials-dto"; export declare class GithubContentService { private static _instance; private constructor(); uploadContent(params: GithubPutContentParams): Promise<GithubPutContentResponse>; getContent(githubCredential: GithubCredential, ownerAndRepository: string, branch: string, remoteFilePath: string): Promise<GithubGetContentResponse>; static get instance(): GithubContentService; } export interface GithubPutContentParams { githubCredential: GithubCredential; ownerAndRepository: string; fileContentBase64: string; remoteSHA?: string; remoteFilePath: string; commitMessage: string; branch: string; } export interface GithubPutContentResponse { sha: string; url: string; } export interface GithubGetContentResponse { name: string; path: string; sha: string; size: number; htmlUrl: string; downloadUrl: string; type: string; content: string; encoding: string; }