This commit is contained in:
@@ -120,6 +120,24 @@ export type ForkBranchRequest = { storyId: string, currentBranchId: string, expe
|
||||
|
||||
export type ForkBranchResult = { branchId: string, playerView: PlayerView, };
|
||||
|
||||
export type BranchSummary = { branchId: string, name: string, headNodeId: string, headLabel: string, sourceNodeId: string | null, isActive: boolean, };
|
||||
|
||||
export type BranchList = { storyId: string, activeBranchId: string, branches: Array<BranchSummary>, };
|
||||
|
||||
export type SwitchBranchRequest = { storyId: string, branchId: string, expectedActiveBranchId: string, };
|
||||
|
||||
export type SwitchBranchResult = { branchId: string, playerView: PlayerView, };
|
||||
|
||||
export type RenameBranchRequest = { storyId: string, branchId: string, name: string, };
|
||||
|
||||
export type LappModelOption = { providerId: string, providerName: string | null, modelId: string, modelName: string | null, };
|
||||
|
||||
export type LappMode = "lapp" | "demo" | "unavailable";
|
||||
|
||||
export type LappSettings = { mode: LappMode, selectedProviderId: string | null, selectedModelId: string | null, availableModels: Array<LappModelOption>, statusMessage: string, };
|
||||
|
||||
export type UpdateLappSettingsRequest = { providerId: string, modelId: string, };
|
||||
|
||||
export type TurnFailureCode = "stale_node" | "invalid_input" | "invalid_model_output" | "provider_unavailable" | "cancelled" | "timed_out" | "internal";
|
||||
|
||||
export type TurnFailure = { code: TurnFailureCode, message: string, retryable: boolean, };
|
||||
|
||||
Reference in New Issue
Block a user