/** * @example * { * name: "Shine Time Booking" * } */ export interface CreateAppsRequest { /** The account to create the app for (`biz_` tag). Defaults to the account behind the presented credential. */ account_id?: string; /** The type of app to create. Defaults to `b2c_app`. */ app_type?: CreateAppsRequest.AppType; /** The base production URL where the app is hosted, such as `https://myapp.example.com`. */ base_url?: string | null; /** A domain on the account (`dom_` tag) to serve the app at, such as a whop.site address claimed with `POST /domains`. Required with `template_id`. */ domain_id?: string | null; /** The icon image for the app in PNG, JPEG, or GIF format, referencing an uploaded file: `{ id }` for an existing attachment or `{ direct_upload_id }` for a new direct upload. */ icon?: CreateAppsRequest.Icon; /** The address of the existing website this app is imported from, such as `https://shop.example.com`. Must be an `http` or `https` URL. */ imported_from_url?: string | null; /** The display name for the app, shown to users on the app store and product pages. */ name: string; /** The whitelisted OAuth callback URLs that users are redirected to after authorizing the app. */ redirect_uris?: string[]; /** Deprecated: claim an address with `POST /domains` and pass `domain_id`. The subdomain route where the app's hosted web builds are served, such as `myapp` for myapp.whop.site. */ route?: string | null; } export declare namespace CreateAppsRequest { /** The type of app to create. Defaults to `b2c_app`. */ const AppType: { readonly B2BApp: "b2b_app"; readonly B2CApp: "b2c_app"; readonly CompanyApp: "company_app"; readonly Component: "component"; readonly Website: "website"; }; type AppType = (typeof AppType)[keyof typeof AppType]; /** * The icon image for the app in PNG, JPEG, or GIF format, referencing an uploaded file: `{ id }` for an existing attachment or `{ direct_upload_id }` for a new direct upload. */ interface Icon { /** The signed id of a completed direct upload. */ direct_upload_id?: string | undefined; /** The tag of an already-uploaded attachment. */ id?: string | undefined; } }