addVersion

addVersion is a method on the ANTVersions class that adds a new version to an ANT. This method requires authentication and a signer to be provided during initialization.

Examples

addVersion

const { id: txId } = await versions.addVersion({
    version: "2.0.0",
    moduleId: "abc123...def789",
    luaSourceId: "ghi012...jkl345",
    notes: "Major update with new features"
});

Parameters

ParameterTypeDescriptionOptional
versionstringThe version identifier (e.g., "2.0.0")false
moduleIdstringThe module ID for the new versionfalse
luaSourceIdstringThe Lua source ID for the new versiontrue
notesstringNotes or description for the new versiontrue

Output

{
  "id": "tx123...abc456"
}

Was this page helpful?