UNPKG

@capgo/cli

Version:

A CLI to upload to capgo servers

19 lines (18 loc) 949 B
import type { UploadBundleResult } from '../schemas/bundle'; import type { OptionsUpload } from './upload_interface'; import { createSupabaseClient } from '../utils'; type SupabaseType = Awaited<ReturnType<typeof createSupabaseClient>>; export type { UploadBundleResult }; export declare function getDefaultUploadChannel(appId: string, supabase: SupabaseType, hostWeb: string): Promise<string | null>; export declare function uploadBundleInternal(preAppid: string, options: OptionsUpload, silent?: boolean): Promise<UploadBundleResult>; export declare function uploadBundle(appid: string, options: OptionsUpload): Promise<{ success: boolean; bundle: string; encryptionMethod: "none" | "v1" | "v2"; checksum?: string | null | undefined; sessionKey?: string | undefined; ivSessionKey?: string | null | undefined; storageProvider?: string | undefined; skipped?: boolean | undefined; reason?: string | undefined; }>;