@origami-minecraft/devbuilds
Version:
Origami is a terminal-first Minecraft launcher that supports authentication, installation, and launching of Minecraft versions — with built-in support for Microsoft accounts, mod loaders, profile management, and more. Designed for power users, modders, an
67 lines (59 loc) • 1.47 kB
text/typescript
import { MclcUser } from "msmc/types/types";
import { Credentials, IAuthMetadata } from "./account";
import { Options } from "./launcher_options";
export interface LauncherProfile {
name: string;
type: string;
created: string;
lastUsed: string;
lastVersionId: string;
icon?: string;
origami: {
metadata: Metadata;
version: string;
path: string;
jvm: string;
}
}
export interface Metadata {
name: string;
author: string;
description: string;
unstable?: boolean;
jvm?: string;
}
export interface LauncherAccount {
id: string;
auth: IAuthMetadata;
minecraft?: any;
validation: boolean;
access_token: string;
client_token?: string;
uuid: string;
name?: string;
meta?: {
refresh?: string | undefined;
exp?: number;
type: "mojang" | "msa" | "legacy";
xuid?: string;
demo?: boolean;
rawToken?: MclcUser
};
credentials: Credentials
user_properties?: Partial<any> | string;
}
export interface LauncherProfiles {
origami_profiles: Record<string, LauncherProfile>;
selectedProfile?: string;
}
export interface LauncherAccounts {
accounts: Record<string, LauncherAccount>;
selectedAccount?: string;
}
export interface LauncherAccounts {
accounts: Record<string, LauncherAccount>;
selectedAccount?: string;
}
export interface LauncherOptions {
options: Options;
}