aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/packages/ui/src/types/bindings/config.ts
blob: e9de4f571b83b61670dfe6bdfdc8b1a6eecbac6b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.

export type AssistantConfig = {
  enabled: boolean;
  llmProvider: string;
  ollamaEndpoint: string;
  ollamaModel: string;
  openaiApiKey: string | null;
  openaiEndpoint: string;
  openaiModel: string;
  systemPrompt: string;
  responseLanguage: string;
  ttsEnabled: boolean;
  ttsProvider: string;
};

/**
 * Feature-gated arguments configuration
 */
export type FeatureFlags = {
  /**
   * Demo user: enables demo-related arguments when rules require it
   */
  demoUser: boolean;
  /**
   * Quick Play: enable quick play arguments
   */
  quickPlayEnabled: boolean;
  /**
   * Quick Play singleplayer world path (if provided)
   */
  quickPlayPath: string | null;
  /**
   * Quick Play singleplayer flag
   */
  quickPlaySingleplayer: boolean;
  /**
   * Quick Play multiplayer server address (optional)
   */
  quickPlayMultiplayerServer: string | null;
};

export type LauncherConfig = {
  minMemory: number;
  maxMemory: number;
  javaPath: string;
  width: number;
  height: number;
  downloadThreads: number;
  customBackgroundPath: string | null;
  enableGpuAcceleration: boolean;
  enableVisualEffects: boolean;
  activeEffect: string;
  theme: string;
  logUploadService: string;
  pastebinApiKey: string | null;
  assistant: AssistantConfig;
  useSharedCaches: boolean;
  keepLegacyPerInstanceStorage: boolean;
  featureFlags: FeatureFlags;
};