@capgo/cli
Version:
A CLI to upload to capgo servers
405 lines (404 loc) • 17.2 kB
TypeScript
export declare const capacitorConfigOptionSchema: import("arktype/internal/variants/string.ts").StringType<string, {}>;
export interface SDKResult<T = void> {
success: boolean;
data?: T;
error?: string;
securityPolicyMessage?: string;
isSecurityPolicyError?: boolean;
warnings?: string[];
}
export declare const addAppOptionsSchema: import("arktype/internal/variants/object.ts").ObjectType<{
appId: string;
name?: string | undefined;
icon?: string | undefined;
apikey?: string | undefined;
supaHost?: string | undefined;
supaAnon?: string | undefined;
}, {}>;
export type AddAppOptions = typeof addAppOptionsSchema.infer;
export declare const updateAppOptionsSchema: import("arktype/internal/variants/object.ts").ObjectType<{
appId: string;
name?: string | undefined;
icon?: string | undefined;
retention?: number | undefined;
apikey?: string | undefined;
supaHost?: string | undefined;
supaAnon?: string | undefined;
}, {}>;
export type UpdateAppOptions = typeof updateAppOptionsSchema.infer;
export declare const appInfoSchema: import("arktype/internal/variants/object.ts").ObjectType<{
appId: string;
name: string;
createdAt: Date;
iconUrl?: string | undefined;
}, {}>;
export type AppInfo = typeof appInfoSchema.infer;
export declare const starRepoOptionsSchema: import("arktype/internal/variants/object.ts").ObjectType<{
repository?: string | undefined;
}, {}>;
export type StarRepoOptions = typeof starRepoOptionsSchema.infer;
export declare const starAllRepositoriesOptionsSchema: import("arktype/internal/variants/object.ts").ObjectType<{
repositories?: string[] | undefined;
minDelayMs?: number | undefined;
maxDelayMs?: number | undefined;
maxConcurrency?: number | undefined;
}, {}>;
export type StarAllRepositoriesOptions = typeof starAllRepositoriesOptionsSchema.infer;
export declare const uploadOptionsSchema: import("arktype/internal/variants/object.ts").ObjectType<{
appId: string;
path: string;
bundle?: string | undefined;
channel?: string | undefined;
rollout?: number | undefined;
rolloutPercentageBps?: number | undefined;
rolloutCacheTtlSeconds?: number | undefined;
apikey?: string | undefined;
external?: string | undefined;
encrypt?: boolean | undefined;
encryptionKey?: string | undefined;
supaHost?: string | undefined;
supaAnon?: string | undefined;
timeout?: number | undefined;
useTus?: boolean | undefined;
comment?: string | undefined;
minUpdateVersion?: string | undefined;
autoMinUpdateVersion?: boolean | undefined;
autoSetBundle?: boolean | undefined;
selfAssign?: boolean | undefined;
packageJsonPaths?: string | undefined;
ignoreCompatibilityCheck?: boolean | undefined;
disableCodeCheck?: boolean | undefined;
useZip?: boolean | undefined;
capacitorConfig?: string | undefined;
}, {}>;
export type UploadOptions = typeof uploadOptionsSchema.infer;
export declare const uploadResultSchema: import("arktype/internal/variants/object.ts").ObjectType<{
success: boolean;
bundleId?: string | undefined;
bundleUrl?: string | undefined;
checksum?: string | null | undefined;
encryptionMethod?: "none" | "v1" | "v2" | undefined;
sessionKey?: string | undefined;
ivSessionKey?: string | null | undefined;
storageProvider?: string | undefined;
skipped?: boolean | undefined;
reason?: string | undefined;
error?: string | undefined;
warnings?: string[] | undefined;
}, {}>;
export type UploadResult = typeof uploadResultSchema.infer;
export declare const bundleInfoSchema: import("arktype/internal/variants/object.ts").ObjectType<{
id: string;
version: string;
uploadedAt: Date;
size: number;
encrypted: boolean;
channel?: string | undefined;
}, {}>;
export type BundleInfo = typeof bundleInfoSchema.infer;
export declare const cleanupOptionsSchema: import("arktype/internal/variants/object.ts").ObjectType<{
appId: string;
keep?: number | undefined;
bundle?: string | undefined;
force?: boolean | undefined;
ignoreChannel?: boolean | undefined;
apikey?: string | undefined;
supaHost?: string | undefined;
supaAnon?: string | undefined;
}, {}>;
export type CleanupOptions = typeof cleanupOptionsSchema.infer;
export declare const generateKeyOptionsSchema: import("arktype/internal/variants/object.ts").ObjectType<{
force?: boolean | undefined;
setupChannel?: boolean | undefined;
capacitorConfig?: string | undefined;
}, {}>;
export type GenerateKeyOptions = typeof generateKeyOptionsSchema.infer;
export declare const saveKeyOptionsSchema: import("arktype/internal/variants/object.ts").ObjectType<{
keyPath?: string | undefined;
keyData?: string | undefined;
setupChannel?: boolean | undefined;
capacitorConfig?: string | undefined;
}, {}>;
export type SaveKeyOptions = typeof saveKeyOptionsSchema.infer;
export declare const deleteOldKeyOptionsSchema: import("arktype/internal/variants/object.ts").ObjectType<{
force?: boolean | undefined;
setupChannel?: boolean | undefined;
capacitorConfig?: string | undefined;
}, {}>;
export type DeleteOldKeyOptions = typeof deleteOldKeyOptionsSchema.infer;
export declare const addChannelOptionsSchema: import("arktype/internal/variants/object.ts").ObjectType<{
channelId: string;
appId: string;
default?: boolean | undefined;
selfAssign?: boolean | undefined;
apikey?: string | undefined;
supaHost?: string | undefined;
supaAnon?: string | undefined;
}, {}>;
export type AddChannelOptions = typeof addChannelOptionsSchema.infer;
export declare const updateChannelOptionsBaseSchema: import("arktype/internal/variants/object.ts").ObjectType<{
channelId: string;
appId: string;
bundle?: string | undefined;
state?: string | undefined;
downgrade?: boolean | undefined;
ios?: boolean | undefined;
android?: boolean | undefined;
selfAssign?: boolean | undefined;
disableAutoUpdate?: string | undefined;
dev?: boolean | undefined;
emulator?: boolean | undefined;
device?: boolean | undefined;
prod?: boolean | undefined;
rolloutBundle?: string | undefined;
rolloutPercentage?: number | undefined;
rolloutPercentageBps?: number | undefined;
rolloutEnable?: boolean | undefined;
rolloutDisable?: boolean | undefined;
rolloutPause?: boolean | undefined;
rolloutResume?: boolean | undefined;
rolloutRollback?: boolean | undefined;
rolloutPromote?: boolean | undefined;
rolloutCacheTtlSeconds?: number | undefined;
autoPauseEnabled?: boolean | undefined;
autoPauseDisabled?: boolean | undefined;
autoPauseWindowMinutes?: number | undefined;
autoPauseFailureRateBps?: number | null | undefined;
autoPauseConfidence?: number | undefined;
autoPauseMinAttempts?: number | null | undefined;
autoPauseMinFailures?: number | null | undefined;
autoPauseAction?: "pause" | "rollback" | "notify" | undefined;
autoPauseCooldownMinutes?: number | undefined;
apikey?: string | undefined;
supaHost?: string | undefined;
supaAnon?: string | undefined;
}, {}>;
export declare const updateChannelOptionsSchema: import("arktype/internal/variants/object.ts").ObjectType<{
channelId: string;
appId: string;
bundle?: string | undefined;
state?: string | undefined;
downgrade?: boolean | undefined;
ios?: boolean | undefined;
android?: boolean | undefined;
selfAssign?: boolean | undefined;
disableAutoUpdate?: string | undefined;
dev?: boolean | undefined;
emulator?: boolean | undefined;
device?: boolean | undefined;
prod?: boolean | undefined;
rolloutBundle?: string | undefined;
rolloutPercentage?: number | undefined;
rolloutPercentageBps?: number | undefined;
rolloutEnable?: boolean | undefined;
rolloutDisable?: boolean | undefined;
rolloutPause?: boolean | undefined;
rolloutResume?: boolean | undefined;
rolloutRollback?: boolean | undefined;
rolloutPromote?: boolean | undefined;
rolloutCacheTtlSeconds?: number | undefined;
autoPauseEnabled?: boolean | undefined;
autoPauseDisabled?: boolean | undefined;
autoPauseWindowMinutes?: number | undefined;
autoPauseFailureRateBps?: number | null | undefined;
autoPauseConfidence?: number | undefined;
autoPauseMinAttempts?: number | null | undefined;
autoPauseMinFailures?: number | null | undefined;
autoPauseAction?: "pause" | "rollback" | "notify" | undefined;
autoPauseCooldownMinutes?: number | undefined;
apikey?: string | undefined;
supaHost?: string | undefined;
supaAnon?: string | undefined;
}, {}>;
export type UpdateChannelOptions = typeof updateChannelOptionsSchema.infer;
export declare const accountIdOptionsSchema: import("arktype/internal/variants/object.ts").ObjectType<{
apikey?: string | undefined;
supaHost?: string | undefined;
supaAnon?: string | undefined;
}, {}>;
export type AccountIdOptions = typeof accountIdOptionsSchema.infer;
export declare const listOrganizationsOptionsSchema: import("arktype/internal/variants/object.ts").ObjectType<{
apikey?: string | undefined;
supaHost?: string | undefined;
supaAnon?: string | undefined;
}, {}>;
export type ListOrganizationsOptions = typeof listOrganizationsOptionsSchema.infer;
export declare const addOrganizationOptionsSchema: import("arktype/internal/variants/object.ts").ObjectType<{
apikey?: string | undefined;
supaHost?: string | undefined;
supaAnon?: string | undefined;
name: string;
email: string;
}, {}>;
export type AddOrganizationOptions = typeof addOrganizationOptionsSchema.infer;
export declare const updateOrganizationOptionsSchema: import("arktype/internal/variants/object.ts").ObjectType<{
apikey?: string | undefined;
supaHost?: string | undefined;
supaAnon?: string | undefined;
orgId: string;
name?: string | undefined;
email?: string | undefined;
}, {}>;
export type UpdateOrganizationOptions = typeof updateOrganizationOptionsSchema.infer;
export declare const organizationInfoSchema: import("arktype/internal/variants/object.ts").ObjectType<{
id: string;
name: string;
role?: string | undefined;
appCount?: number | undefined;
email?: string | undefined;
createdAt?: Date | undefined;
}, {}>;
export type OrganizationInfo = typeof organizationInfoSchema.infer;
export declare const deleteOrganizationOptionsSchema: import("arktype/internal/variants/object.ts").ObjectType<{
apikey?: string | undefined;
supaHost?: string | undefined;
supaAnon?: string | undefined;
autoConfirm?: boolean | undefined;
}, {}>;
export type DeleteOrganizationOptions = typeof deleteOrganizationOptionsSchema.infer;
export declare const loginOptionsSchema: import("arktype/internal/variants/object.ts").ObjectType<{
apikey: string;
local?: boolean | undefined;
supaHost?: string | undefined;
supaAnon?: string | undefined;
}, {}>;
export type LoginOptions = typeof loginOptionsSchema.infer;
export declare const doctorOptionsSchema: import("arktype/internal/variants/object.ts").ObjectType<{
packageJson?: string | undefined;
}, {}>;
export type DoctorOptions = typeof doctorOptionsSchema.infer;
export declare const bundleCompatibilityOptionsSchema: import("arktype/internal/variants/object.ts").ObjectType<{
appId: string;
channel: string;
packageJson?: string | undefined;
nodeModules?: string | undefined;
textOutput?: boolean | undefined;
apikey?: string | undefined;
supaHost?: string | undefined;
supaAnon?: string | undefined;
}, {}>;
export type BundleCompatibilityOptions = typeof bundleCompatibilityOptionsSchema.infer;
export declare const encryptBundleOptionsSchema: import("arktype/internal/variants/object.ts").ObjectType<{
zipPath: string;
checksum: string;
keyPath?: string | undefined;
keyData?: string | undefined;
json?: boolean | undefined;
packageJson?: string | undefined;
}, {}>;
export type EncryptBundleOptions = typeof encryptBundleOptionsSchema.infer;
export declare const decryptBundleOptionsSchema: import("arktype/internal/variants/object.ts").ObjectType<{
zipPath: string;
ivSessionKey: string;
keyPath?: string | undefined;
keyData?: string | undefined;
checksum?: string | undefined;
packageJson?: string | undefined;
}, {}>;
export type DecryptBundleOptions = typeof decryptBundleOptionsSchema.infer;
export declare const zipBundleOptionsSchema: import("arktype/internal/variants/object.ts").ObjectType<{
appId: string;
path: string;
bundle?: string | undefined;
name?: string | undefined;
codeCheck?: boolean | undefined;
json?: boolean | undefined;
keyV2?: boolean | undefined;
packageJson?: string | undefined;
}, {}>;
export type ZipBundleOptions = typeof zipBundleOptionsSchema.infer;
export declare const requestBuildOptionsSchema: import("arktype/internal/variants/object.ts").ObjectType<{
appId: string;
platform: "android" | "ios";
path?: string | undefined;
nodeModules?: string | undefined;
credentials?: {
[x: string]: string | undefined;
BUILD_CERTIFICATE_BASE64?: string | undefined;
BUILD_PROVISION_PROFILE_BASE64?: string | undefined;
P12_PASSWORD?: string | undefined;
APPLE_KEY_ID?: string | undefined;
APPLE_ISSUER_ID?: string | undefined;
APPLE_KEY_CONTENT?: string | undefined;
APP_STORE_CONNECT_TEAM_ID?: string | undefined;
FASTLANE_USER?: string | undefined;
FASTLANE_APPLE_APPLICATION_SPECIFIC_PASSWORD?: string | undefined;
APPLE_APP_ID?: string | undefined;
CAPGO_IOS_PROVISIONING_MAP?: string | undefined;
CAPGO_STORE_SUBMIT_REVIEW?: string | undefined;
CAPGO_STORE_RELEASE_NAME?: string | undefined;
CAPGO_STORE_RELEASE_NOTES?: string | undefined;
CAPGO_STORE_RELEASE_NOTES_LOCALIZED?: string | undefined;
CAPGO_IOS_TESTFLIGHT_GROUPS?: string | undefined;
CAPGO_IOS_AUTOMATIC_RELEASE?: string | undefined;
ANDROID_KEYSTORE_FILE?: string | undefined;
KEYSTORE_KEY_ALIAS?: string | undefined;
KEYSTORE_KEY_PASSWORD?: string | undefined;
KEYSTORE_STORE_PASSWORD?: string | undefined;
PLAY_CONFIG_JSON?: string | undefined;
PLAY_STORE_IN_APP_UPDATE_PRIORITY?: string | undefined;
} | undefined;
submitToStoreReview?: boolean | undefined;
storeReleaseName?: string | undefined;
storeReleaseNotes?: string | undefined;
storeReleaseNotesLocalized?: ((In: {
[x: string]: string;
}) => import("arktype").Out<false | Record<string, string>>) | undefined;
iosTestflightGroups?: string | undefined;
iosAutomaticRelease?: boolean | undefined;
userId?: string | undefined;
apikey?: string | undefined;
supaHost?: string | undefined;
supaAnon?: string | undefined;
prescan?: boolean | undefined;
prescanIgnoreFatal?: boolean | undefined;
}, {}>;
export type RequestBuildOptions = typeof requestBuildOptionsSchema.infer;
export declare const currentBundleOptionsSchema: import("arktype/internal/variants/object.ts").ObjectType<{
apikey?: string | undefined;
supaHost?: string | undefined;
supaAnon?: string | undefined;
}, {}>;
export type CurrentBundleOptions = typeof currentBundleOptionsSchema.infer;
export declare const setSettingOptionsSchema: import("arktype/internal/variants/object.ts").ObjectType<{
apikey?: string | undefined;
bool?: string | undefined;
string?: string | undefined;
capacitorConfig?: string | undefined;
}, {}>;
export type SetSettingOptions = typeof setSettingOptionsSchema.infer;
export declare const statsOrderSchema: import("arktype/internal/variants/object.ts").ObjectType<{
key: string;
sortable?: "asc" | "desc" | undefined;
}, {}>;
export type StatsOrder = typeof statsOrderSchema.infer;
export declare const getStatsOptionsSchema: import("arktype/internal/variants/object.ts").ObjectType<{
appId: string;
deviceIds?: string[] | undefined;
search?: string | undefined;
order?: {
key: string;
sortable?: "asc" | "desc" | undefined;
}[] | undefined;
rangeStart?: string | undefined;
rangeEnd?: string | undefined;
limit?: number | undefined;
after?: string | null | undefined;
apikey?: string | undefined;
supaHost?: string | undefined;
supaAnon?: string | undefined;
}, {}>;
export type GetStatsOptions = typeof getStatsOptionsSchema.infer;
export declare const deviceStatsSchema: import("arktype/internal/variants/object.ts").ObjectType<{
appId: string;
deviceId: string;
action: string;
versionId: number;
createdAt: string;
version?: number | undefined;
}, {}>;
export type DeviceStats = typeof deviceStatsSchema.infer;
export declare const probeOptionsSchema: import("arktype/internal/variants/object.ts").ObjectType<{
platform: "android" | "ios";
}, {}>;
export type ProbeOptions = typeof probeOptionsSchema.infer;