/* tslint:disable */ /** * This file was automatically generated by json-schema-to-typescript. * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, * and run json-schema-to-typescript to regenerate this file. */ /** * GitHub Codespaces unique partner name. */ export type PartnerName = string; /** * Where to redirect to in case the credentials expire. */ export type ManagementPortalUrl = string; /** * The expiration timestamp of the token. [UTC timestamp in milliseconds] */ export type Expiration = number; /** * The token to perform git operations. */ export type Token = string; /** * The host of the token. [https://www.git-scm.com/docs/gitcredentials] */ export type Host = string; /** * The path of the git token. Can be omitted or set to `*`. [https://www.git-scm.com/docs/gitcredentials] */ export type Path = string; /** * An explanation about the purpose of this instance. */ export type Credentials = GitCredentials[]; /** * Name of a Codespace */ export type CodespaceName = string; /** * Display name of a Codespace */ export type CodespaceDisplayName = string; /** * The fully qualified url where the portal can talk back to to the GitHub API. */ export type GitHubApiUrl = string; /** * Username of a user */ export type UsersUsername = string; /** * Avatar url of a user */ export type UsersAvatarUrl = string; /** * Users profile url */ export type UsersProfileUrl = string; /** * An explanation about the purpose of this instance. */ export type TheStableSchema = string; /** * An explanation about the purpose of this instance. */ export type TheInsiderSchema = string; /** * The VSCode dogfood channel. */ export type VscodeChannel = "stable" | "insider"; /** * The VSCode loading screen theme color. */ export type LoadingScreenThemeColor = "light" | "dark"; /** * VSCode extension id */ export type Id = string; /** * Type of the VSCode extension. */ export type Type = "ui" | "workspace" | "web"; /** * The list of the VSCode extensions to preinstall. */ export type DefaultExtensions = VSCodeExtension[]; /** * Id of the auth provider. */ export type Type1 = string; /** * The id of the session. */ export type Id1 = string; /** * The session access token. */ export type AccessToken = string; /** * A token permission scope. */ export type TokenScope = string; /** * List of the permission scopes the token was issued with. */ export type Scopes = TokenScope[]; /** * Account id. */ export type Id2 = string; /** * Account label. */ export type Label = string; /** * Default sessions for the built-in VSCode Auth Provider. */ export type DefaultAuthSessions = VSCodeDefaultAuthSession[]; /** * Home indicator icon. */ export type Icon = string; /** * Home indicator link. */ export type Href = string; /** * Home indicator title. */ export type Title = string; /** * The flag to enable the Settings Sync by default. */ export type EnableSyncByDefault = boolean; /** * Authentication session id to use as default for the Settings Sync Service. Should match an `id` form the `defaultAuthSessions` list. */ export type AuthenticationSessionId = string; /** * The JSON schema to build/validate the GitHub Codespaces Web Editor authorization payload */ export interface WebEditorPlatformInfo { partnerName: PartnerName; managementPortalUrl: ManagementPortalUrl; credentials: Credentials; name: CodespaceName; displayName: CodespaceDisplayName; gitHubApiUrl?: GitHubApiUrl; user: User; favicon?: TheFaviconSchema; vscodeSettings: VscodeSettings; } /** * Credentials to perform git operations. */ export interface GitCredentials { expiration?: Expiration; token: Token; host: Host; path?: Path; } /** * User data. */ export interface User { login: UsersUsername; avatarUrl: UsersAvatarUrl; profileUrl: UsersProfileUrl; } /** * An explanation about the purpose of this instance. */ export interface TheFaviconSchema { stable: TheStableSchema; insider: TheInsiderSchema; [k: string]: unknown; } /** * An explanation about the purpose of this instance. */ export interface VscodeSettings { vscodeChannel?: VscodeChannel; loadingScreenThemeColor?: LoadingScreenThemeColor; defaultSettings?: DefaultSettings; defaultExtensions?: DefaultExtensions; defaultAuthSessions?: DefaultAuthSessions; homeIndicator?: VSCodeHomeIndicator; enableSyncByDefault?: EnableSyncByDefault; authenticationSessionId?: AuthenticationSessionId; } /** * The VSCode workbench settings. */ export interface DefaultSettings { [k: string]: unknown; } /** * Extension id. */ export interface VSCodeExtension { id: Id; kind?: Type; } /** * A VSCode Auth Provider session. */ export interface VSCodeDefaultAuthSession { type: Type1; id: Id1; accessToken: AccessToken; scopes: Scopes; account?: AccountInformation; } /** * Account information */ export interface AccountInformation { id: Id2; label?: Label; } /** * An explanation about the purpose of this instance. */ export interface VSCodeHomeIndicator { icon: Icon; href: Href; title: Title; }