import type * as ElevenLabs from "../index"; export interface AgentBranchSummary { id: string; name: string; agentId: string; description: string; createdAt: number; lastCommittedAt: number; isArchived: boolean; protectionStatus?: ElevenLabs.BranchProtectionStatus; autoRebase?: boolean; /** Set while the branch is kept in sync with another branch: automatically (`auto_rebase`), or with a chosen branch other than main. Null otherwise. */ syncStatus?: ElevenLabs.BranchSyncStatus; /** Access information for the branch */ accessInfo?: ElevenLabs.ResourceAccessInfo; /** Percentage of traffic live on the branch */ currentLivePercentage?: number; /** ID of the parent branch */ parentBranchId?: string; /** ID of the branch `commits_ahead` and `commits_behind` compare against: the branch it was created from, or the branch it is kept in sync with while `auto_rebase` is on (main when that branch is archived). Null for main itself. */ baseBranchId?: string; /** Whether a draft exists for the branch */ draftExists?: boolean; /** Unix seconds when the caller's draft on this branch was first created, or null when they have no draft. A draft created before last_committed_at was written against a config the branch has since moved past, so it may not reflect the current one. */ draftCreatedAt?: number; /** Whether the caller's draft on this branch was created before the branch's last commit, meaning it was written against a config the branch has since moved past and may not reflect the current one. */ draftIsBehindTip?: boolean; /** Number of calls in the last 7 days */ calls7D?: number; /** Number of commits on this branch not yet on its base branch: the branch it was created from, or the branch it is kept in sync with while `auto_rebase` is on (main when that branch is archived). Relative to their common ancestor. Null if it could not be computed (e.g. no common ancestor, or the branch history exceeds the comparison budget). */ commitsAhead?: number; /** Number of commits on its base branch not yet incorporated into this branch. The base branch is the branch it was created from, or the branch it is kept in sync with while `auto_rebase` is on (main when that branch is archived). Relative to their common ancestor. Null if it could not be computed (e.g. no common ancestor, or the branch history exceeds the comparison budget). */ commitsBehind?: number; /** ID of the branch this branch's tip version was merged into, if any */ mergedIntoBranchId?: string; }