/** * @example * { * attachment: {}, * checksum: "xxxxxxxxxxxxxxx", * platform: "ios" * } */ export interface CreateAppBuildsRequest { /** The app to create the build for, prefixed `app_`. Defaults to the app behind the presented credential. */ app_id?: string; /** The uploaded build file: pass `id` for an existing file or `direct_upload_id` for a completed direct upload. iOS and Android builds take a .zip bundle; web builds take a JavaScript file or a .zip archive of the hosted site. */ attachment: CreateAppBuildsRequest.Attachment; /** A client-generated checksum of the build file, used to verify file integrity when unpacked. */ checksum: string; /** The target platform for the build. */ platform: CreateAppBuildsRequest.Platform; /** An optional compressed archive (.zip or .gz) of the source code that produced this build, stored alongside the build so it can be downloaded later. Referenced like `attachment`, and must be a different file. */ source_attachment?: CreateAppBuildsRequest.SourceAttachment; /** The view types this build supports. Only list the ones its code implements. */ supported_app_view_types?: CreateAppBuildsRequest.SupportedAppViewTypes.Item[]; } export declare namespace CreateAppBuildsRequest { /** * The uploaded build file: pass `id` for an existing file or `direct_upload_id` for a completed direct upload. iOS and Android builds take a .zip bundle; web builds take a JavaScript file or a .zip archive of the hosted site. */ interface Attachment { /** The signed id of a completed direct upload. */ direct_upload_id?: string | undefined; /** The tag of an already-uploaded file. */ id?: string | undefined; } /** The target platform for the build. */ const Platform: { readonly Ios: "ios"; readonly Android: "android"; readonly Web: "web"; }; type Platform = (typeof Platform)[keyof typeof Platform]; /** * An optional compressed archive (.zip or .gz) of the source code that produced this build, stored alongside the build so it can be downloaded later. Referenced like `attachment`, and must be a different file. */ interface SourceAttachment { /** The signed id of a completed direct upload. */ direct_upload_id?: string | undefined; /** The tag of an already-uploaded file. */ id?: string | undefined; } type SupportedAppViewTypes = SupportedAppViewTypes.Item[]; namespace SupportedAppViewTypes { const Item: { readonly Hub: "hub"; readonly Discover: "discover"; readonly Dash: "dash"; readonly Dashboard: "dashboard"; readonly Analytics: "analytics"; readonly Skills: "skills"; readonly Openapi: "openapi"; }; type Item = (typeof Item)[keyof typeof Item]; } }