logo
  • Docs
  • API Reference
    Overview
    Functions
    acceptChangeProposal
    applyChangeSet
    attachConversation
    attachLabel
    commitIsAncestorOf
    commitIsDescendantOf
    createAccount
    createChangeProposal
    createChangeSet
    createCheckpoint
    createConversation
    createConversationMessage
    createHooks
    createLabel
    createLog
    createLspInMemoryEnvironment
    createQuerySync
    createServerProtocolHandler
    createVersion
    createVersionFromCommit
    detachConversation
    detachLabel
    ebEntity
    getTimestamp
    humanId
    mergeVersion
    nanoId
    newLixFile
    nextSequenceNumber
    normalizeDirectoryPath
    normalizeFilePath
    normalizePathSegment
    openLix
    random
    rejectChangeProposal
    selectCommitDiff
    selectVersionDiff
    selectWorkingDiff
    switchAccount
    switchVersion
    transition
    uuidV7
    uuidV7Sync
    validateLixSchema
    validateLixSchemaDefinition
    withWriterKey
    Type Aliases
    Account
    ActiveAccount
    Change
    ChangeAuthor
    DetectedChange
    EntityStateByVersionView
    EntityStateHistoryView
    EntityStateView
    EnvironmentActorHandle
    FromLixSchemaDefinition
    JSONType
    Lix
    LixActiveVersion
    LixChangeProposal
    LixChangeSet
    LixChangeSetElement
    LixCommit
    LixCommitEdge
    LixConversation
    LixConversationMessage
    LixDatabaseSchema
    LixDirectoryDescriptor
    LixEntity
    LixEntityCanonical
    LixEntityConversation
    LixEntityLabel
    LixFile
    LixFileDescriptor
    LixGenerated
    LixHooks
    LixInsertable
    LixKeyValue
    LixLabel
    LixLog
    LixPlugin
    LixSchemaDefinition
    LixSelectable
    LixServerProtocolHandlerContext
    LixUpdateable
    LixVersion
    LixVersionDescriptor
    LixVersionTip
    NewChange
    NewState
    NewStateByVersion
    NewStateByVersionRow
    NewStateRow
    QuerySync
    RenderDiffArgs
    SpawnActorOptions
    State
    StateByVersion
    StateByVersionRow
    StateByVersionRowUpdate
    StateByVersionUpdate
    StateByVersionView
    StateCommitChange
    StateHistory
    StateRow
    StateRowUpdate
    StateUpdate
    StateView
    StateWithTombstonesRow
    StateWithTombstonesView
    StoredSchema
    ToKysely
    Variables
    JSONTypeSchema
    LixAccountSchema
    LixActiveAccountSchema
    LixActiveVersionSchema
    LixChangeAuthorSchema
    LixChangeProposalSchema
    LixChangeSetElementSchema
    LixChangeSetSchema
    LixCommitEdgeSchema
    LixCommitSchema
    LixConversationMessageSchema
    LixConversationSchema
    LixDirectoryDescriptorSchema
    LixFileDescriptorSchema
    LixKeyValueSchema
    LixLabelSchema
    LixLogSchema
    LixSchemaDefinition
    LixStoredSchemaSchema
    LixVersionDescriptorSchema
    LixVersionTipSchema
    mockJsonPlugin
    Classes
    InMemoryEnvironment
    LixObservable
    OpfsSahEnvironment
    Interfaces
    LixEnvironment
    Previous pageLixCommitEdgeSchemaNext pageLixConversationMessageSchema

    #Variable: LixCommitSchema

    const LixCommitSchema: { additionalProperties: false; properties: { author_account_ids: { description: "Commit-level author account identifiers. Explicit per-change overrides live in lix_change_author."; items: { type: "string"; }; type: readonly ["array", "null"]; }; change_ids: { description: "Domain change identifiers contained in this commit. Excludes meta changes; used to derive change_set_elements."; items: { type: "string"; }; type: readonly ["array", "null"]; }; change_set_id: { description: "Identifier of the change set associated with this commit (materialized in cache)"; type: "string"; }; id: { description: "Commit identifier"; type: "string"; x-lix-default: "lix_uuid_v7()"; }; meta_change_ids: { description: "Meta change identifiers (e.g., version tip) associated with this commit and kept separate from domain membership."; items: { type: "string"; }; type: readonly ["array", "null"]; }; parent_commit_ids: { description: "Direct parent commit identifiers; used to derive commit edges and ancestry."; items: { type: "string"; }; type: readonly ["array", "null"]; }; }; required: readonly ["id", "change_set_id"]; type: "object"; x-lix-foreign-keys: readonly [{ mode: "materialized"; properties: readonly ["/change_set_id"]; references: { properties: readonly ["/id"]; schemaKey: "lix_change_set"; }; }]; x-lix-key: "lix_commit"; x-lix-override-lixcols: { lixcol_file_id: ""lix""; lixcol_plugin_key: ""lix_sdk""; lixcol_version_id: ""global""; }; x-lix-primary-key: readonly ["/id"]; x-lix-version: "1.0"; }

    #Type Declaration

    #additionalProperties

    readonly additionalProperties: false = false

    #properties

    readonly properties: { author_account_ids: { description: "Commit-level author account identifiers. Explicit per-change overrides live in lix_change_author."; items: { type: "string"; }; type: readonly ["array", "null"]; }; change_ids: { description: "Domain change identifiers contained in this commit. Excludes meta changes; used to derive change_set_elements."; items: { type: "string"; }; type: readonly ["array", "null"]; }; change_set_id: { description: "Identifier of the change set associated with this commit (materialized in cache)"; type: "string"; }; id: { description: "Commit identifier"; type: "string"; x-lix-default: "lix_uuid_v7()"; }; meta_change_ids: { description: "Meta change identifiers (e.g., version tip) associated with this commit and kept separate from domain membership."; items: { type: "string"; }; type: readonly ["array", "null"]; }; parent_commit_ids: { description: "Direct parent commit identifiers; used to derive commit edges and ancestry."; items: { type: "string"; }; type: readonly ["array", "null"]; }; }

    #properties.author_account_ids

    readonly author_account_ids: { description: "Commit-level author account identifiers. Explicit per-change overrides live in lix_change_author."; items: { type: "string"; }; type: readonly ["array", "null"]; }

    #properties.author_account_ids.description

    readonly description: "Commit-level author account identifiers. Explicit per-change overrides live in lix_change_author." = "Commit-level author account identifiers. Explicit per-change overrides live in lix_change_author."

    #properties.author_account_ids.items

    readonly items: { type: "string"; }

    #properties.author_account_ids.items.type

    readonly type: "string" = "string"

    #properties.author_account_ids.type

    readonly type: readonly ["array", "null"]

    #properties.change_ids

    readonly change_ids: { description: "Domain change identifiers contained in this commit. Excludes meta changes; used to derive change_set_elements."; items: { type: "string"; }; type: readonly ["array", "null"]; }

    #properties.change_ids.description

    readonly description: "Domain change identifiers contained in this commit. Excludes meta changes; used to derive change_set_elements." = "Domain change identifiers contained in this commit. Excludes meta changes; used to derive change_set_elements."

    #properties.change_ids.items

    readonly items: { type: "string"; }

    #properties.change_ids.items.type

    readonly type: "string" = "string"

    #properties.change_ids.type

    readonly type: readonly ["array", "null"]

    #properties.change_set_id

    readonly change_set_id: { description: "Identifier of the change set associated with this commit (materialized in cache)"; type: "string"; }

    #properties.change_set_id.description

    readonly description: "Identifier of the change set associated with this commit (materialized in cache)" = "Identifier of the change set associated with this commit (materialized in cache)"

    #properties.change_set_id.type

    readonly type: "string" = "string"

    #properties.id

    readonly id: { description: "Commit identifier"; type: "string"; x-lix-default: "lix_uuid_v7()"; }

    #properties.id.description

    readonly description: "Commit identifier" = "Commit identifier"

    #properties.id.type

    readonly type: "string" = "string"

    #properties.id.x-lix-default

    readonly x-lix-default: "lix_uuid_v7()" = "lix_uuid_v7()"

    #properties.meta_change_ids

    readonly meta_change_ids: { description: "Meta change identifiers (e.g., version tip) associated with this commit and kept separate from domain membership."; items: { type: "string"; }; type: readonly ["array", "null"]; }

    #properties.meta_change_ids.description

    readonly description: "Meta change identifiers (e.g., version tip) associated with this commit and kept separate from domain membership." = "Meta change identifiers (e.g., version tip) associated with this commit and kept separate from domain membership."

    #properties.meta_change_ids.items

    readonly items: { type: "string"; }

    #properties.meta_change_ids.items.type

    readonly type: "string" = "string"

    #properties.meta_change_ids.type

    readonly type: readonly ["array", "null"]

    #properties.parent_commit_ids

    readonly parent_commit_ids: { description: "Direct parent commit identifiers; used to derive commit edges and ancestry."; items: { type: "string"; }; type: readonly ["array", "null"]; }

    #properties.parent_commit_ids.description

    readonly description: "Direct parent commit identifiers; used to derive commit edges and ancestry." = "Direct parent commit identifiers; used to derive commit edges and ancestry."

    #properties.parent_commit_ids.items

    readonly items: { type: "string"; }

    #properties.parent_commit_ids.items.type

    readonly type: "string" = "string"

    #properties.parent_commit_ids.type

    readonly type: readonly ["array", "null"]

    #required

    readonly required: readonly ["id", "change_set_id"]

    #type

    readonly type: "object" = "object"

    #x-lix-foreign-keys

    readonly x-lix-foreign-keys: readonly [{ mode: "materialized"; properties: readonly ["/change_set_id"]; references: { properties: readonly ["/id"]; schemaKey: "lix_change_set"; }; }]

    #x-lix-key

    readonly x-lix-key: "lix_commit" = "lix_commit"

    #x-lix-override-lixcols

    readonly x-lix-override-lixcols: { lixcol_file_id: ""lix""; lixcol_plugin_key: ""lix_sdk""; lixcol_version_id: ""global""; }

    #x-lix-override-lixcols.lixcol_file_id

    readonly lixcol_file_id: ""lix"" = '"lix"'

    #x-lix-override-lixcols.lixcol_plugin_key

    readonly lixcol_plugin_key: ""lix_sdk"" = '"lix_sdk"'

    #x-lix-override-lixcols.lixcol_version_id

    readonly lixcol_version_id: ""global"" = '"global"'

    #x-lix-primary-key

    readonly x-lix-primary-key: readonly ["/id"]

    #x-lix-version

    readonly x-lix-version: "1.0" = "1.0"