/** * #app_version_info.ts * * Code generated by ts-proto. DO NOT EDIT. * @packageDocumentation */ import type { NutritionCategory } from "../../nutrition/nutrition.js"; export declare enum VersionVisibility { PUBLIC = 0, PRIVATE = 1, UNLISTED = 2, UNRECOGNIZED = -1 } export declare enum BuildStatus { BUILDING = 0, READY = 1, FAILED = 2, UNRECOGNIZED = -1 } export declare enum InstallationType { USER = 0, SUBREDDIT = 1, SUBREDDIT_GLOBAL = 2, UNRECOGNIZED = -1 } export declare enum ComputePool { LOW = 0, /** @deprecated */ MEDIUM = 1, HIGH = 2, RESTRICTED = 3, INTERNAL = 4, BETA = 5, UNRECOGNIZED = -1 } export type OptionalVersionVisibility = { value: VersionVisibility; }; /** Contains the details of an app version. For field documentation, refer to the Prisma schema. */ export type AppVersionInfo = { id: string; visibility: VersionVisibility; validInstallTypes: InstallationType[]; majorVersion: number; minorVersion: number; patchVersion: number; prereleaseVersion?: number | undefined; uploadedAt?: string | undefined; buildStatus: BuildStatus; builtAt?: string | undefined; about: string; hasCustomSettings: boolean; pool: ComputePool; /** Abstract plugin capabilities used by the target app version */ appCapabilities: NutritionCategory[]; /** Devvit API version of this app version (e.g. "1.0.0") */ publicApiVersion?: string | undefined; marketingInfo?: AppVersionMarketingInfo | undefined; /** Indicates whether the app version has a devvit.json file. */ hasDevvitJson: boolean; /** Contains any information. */ sourceUploadInfo?: SourceUploadInfo | undefined; }; export type SourceUploadInfo = { /** * The URL to upload the source code archive to. Only populated in response to * app version creation requests; will be omitted in all other contexts. */ uploadUrl?: string | undefined; /** * Any headers that need to be included in the upload request. Will be blank unless * upload_url is truthy. */ requiredHeaders: { [key: string]: string; }; /** * The S3 object key where the source code archive will be stored. Useful for * determining if a version should have a source code archive associated with it, * as well as for downloading it later. */ s3ObjectKey?: string | undefined; }; export type SourceUploadInfo_RequiredHeadersEntry = { key: string; value: string; }; /** Contains marketing information about an app version, such as its icon. */ export type AppVersionMarketingInfo = { /** * Reddit-hosted URL for the app version's icon, OR in the case of uploading a new app version, * the UUID of the media asset to use as the icon. */ icon?: string | undefined; }; //# sourceMappingURL=app_version_info.d.ts.map