# CLI commands

AI agent getting started? Read [Agents: start here](https://docs.openeng.io/agents/start-here.md) first.

Commands available in the public openeng CLI.

Source: https://docs.openeng.io/reference/cli/

Use the CLI to read and change engineering data, configure a tool or administer access. [Get set up](https://docs.openeng.io/get-started/setup.md) before running a command.

## How to read this page

Angle brackets name values you supply; square brackets mark optional arguments. Each command lists its capability, admitted actors, inputs and example. Use returned identifiers in place of placeholders.

## Command index

| Command |
| --- |
| [openeng help](#openeng-help) |
| [openeng login](#openeng-login) |
| [openeng logout](#openeng-logout) |
| [openeng whoami](#openeng-whoami) |
| [openeng session human](#openeng-session-human) |
| [openeng session status](#openeng-session-status) |
| [openeng org list](#openeng-org-list) |
| [openeng org attach](#openeng-org-attach) |
| [openeng org create](#openeng-org-create) |
| [openeng org detach](#openeng-org-detach) |
| [openeng org current](#openeng-org-current) |
| [openeng projects list](#openeng-projects-list) |
| [openeng projects create](#openeng-projects-create) |
| [openeng projects rename](#openeng-projects-rename) |
| [openeng rules add](#openeng-rules-add) |
| [openeng rules update](#openeng-rules-update) |
| [openeng rules list](#openeng-rules-list) |
| [openeng rules remove](#openeng-rules-remove) |
| [openeng org-refs create](#openeng-org-refs-create) |
| [openeng org-refs list](#openeng-org-refs-list) |
| [openeng org-refs delete](#openeng-org-refs-delete) |
| [openeng org-refs mark-read-only](#openeng-org-refs-mark-read-only) |
| [openeng locks set](#openeng-locks-set) |
| [openeng ceiling show](#openeng-ceiling-show) |
| [openeng ceiling set](#openeng-ceiling-set) |
| [openeng schema-update request](#openeng-schema-update-request) |
| [openeng schema-update show](#openeng-schema-update-show) |
| [openeng feedback bug](#openeng-feedback-bug) |
| [openeng feedback feature](#openeng-feedback-feature) |
| [openeng attachment add](#openeng-attachment-add) |
| [openeng attachment get](#openeng-attachment-get) |
| [openeng attachment list](#openeng-attachment-list) |
| [openeng links status](#openeng-links-status) |
| [openeng links clear](#openeng-links-clear) |
| [openeng branches impact](#openeng-branches-impact) |
| [openeng hosted-app publish](#openeng-hosted-app-publish) |
| [openeng hosted-app list](#openeng-hosted-app-list) |
| [openeng hosted-app versions](#openeng-hosted-app-versions) |
| [openeng hosted-app revoke](#openeng-hosted-app-revoke) |
| [openeng types list](#openeng-types-list) |
| [openeng types export](#openeng-types-export) |
| [openeng types draft open](#openeng-types-draft-open) |
| [openeng types draft current](#openeng-types-draft-current) |
| [openeng types draft show](#openeng-types-draft-show) |
| [openeng types draft state](#openeng-types-draft-state) |
| [openeng types draft revise](#openeng-types-draft-revise) |
| [openeng types draft try](#openeng-types-draft-try) |
| [openeng types draft validate](#openeng-types-draft-validate) |
| [openeng types draft discard](#openeng-types-draft-discard) |
| [openeng types draft accept](#openeng-types-draft-accept) |
| [openeng connector create](#openeng-connector-create) |
| [openeng connector set-credential](#openeng-connector-set-credential) |
| [openeng connector draft-types](#openeng-connector-draft-types) |
| [openeng connector revoke](#openeng-connector-revoke) |
| [openeng connector run](#openeng-connector-run) |
| [openeng connector runs](#openeng-connector-runs) |
| [openeng link](#openeng-link) |
| [openeng link app-draft](#openeng-link-app-draft) |
| [openeng link app-page](#openeng-link-app-page) |
| [openeng link organisation-page](#openeng-link-organisation-page) |
| [openeng demo seed](#openeng-demo-seed) |
| [openeng skill](#openeng-skill) |
| [openeng types icons](#openeng-types-icons) |
| [openeng objects-sdk startBuild](#openeng-objects-sdk-startbuild) |
| [openeng objects-sdk cancelBuild](#openeng-objects-sdk-cancelbuild) |
| [openeng objects-sdk readBuildRun](#openeng-objects-sdk-readbuildrun) |
| [openeng objects-sdk listBuildRuns](#openeng-objects-sdk-listbuildruns) |
| [openeng objects-sdk readStepRun](#openeng-objects-sdk-readsteprun) |
| [openeng objects-sdk readOutputValues](#openeng-objects-sdk-readoutputvalues) |
| [openeng objects-sdk readStepLog](#openeng-objects-sdk-readsteplog) |
| [openeng objects-sdk checkCase](#openeng-objects-sdk-checkcase) |
| [openeng objects-sdk createObjectSet](#openeng-objects-sdk-createobjectset) |
| [openeng objects-sdk listObjectSets](#openeng-objects-sdk-listobjectsets) |
| [openeng objects-sdk readObjectSet](#openeng-objects-sdk-readobjectset) |
| [openeng objects-sdk updateObjectSet](#openeng-objects-sdk-updateobjectset) |
| [openeng objects-sdk deleteObjectSet](#openeng-objects-sdk-deleteobjectset) |
| [openeng objects-sdk completeAttachmentUpload](#openeng-objects-sdk-completeattachmentupload) |
| [openeng objects-sdk readAttachment](#openeng-objects-sdk-readattachment) |
| [openeng objects-sdk readObject](#openeng-objects-sdk-readobject) |
| [openeng objects-sdk queryObjects](#openeng-objects-sdk-queryobjects) |
| [openeng objects-sdk queryRows](#openeng-objects-sdk-queryrows) |
| [openeng objects-sdk aggregateObjects](#openeng-objects-sdk-aggregateobjects) |
| [openeng objects-sdk discoverVerbs](#openeng-objects-sdk-discoververbs) |
| [openeng objects-sdk readHistory](#openeng-objects-sdk-readhistory) |
| [openeng objects-sdk mutate](#openeng-objects-sdk-mutate) |
| [openeng objects-sdk mutateBatch](#openeng-objects-sdk-mutatebatch) |
| [openeng objects-sdk previewDelete](#openeng-objects-sdk-previewdelete) |
| [openeng objects-sdk recover](#openeng-objects-sdk-recover) |
| [openeng objects-sdk executeVerb](#openeng-objects-sdk-executeverb) |
| [openeng objects-sdk listProjects](#openeng-objects-sdk-listprojects) |
| [openeng objects-sdk listRefs](#openeng-objects-sdk-listrefs) |
| [openeng objects-sdk readCatalogue](#openeng-objects-sdk-readcatalogue) |
| [openeng objects-sdk queryGraph](#openeng-objects-sdk-querygraph) |
| [openeng objects-sdk readStructure](#openeng-objects-sdk-readstructure) |
| [openeng objects-sdk findPaths](#openeng-objects-sdk-findpaths) |
| [openeng objects-sdk readLinkStatus](#openeng-objects-sdk-readlinkstatus) |
| [openeng objects-sdk clearLinks](#openeng-objects-sdk-clearlinks) |
| [openeng objects-sdk setObjectLock](#openeng-objects-sdk-setobjectlock) |
| [openeng objects-sdk readApp](#openeng-objects-sdk-readapp) |
| [openeng objects-sdk listApps](#openeng-objects-sdk-listapps) |
| [openeng objects-sdk searchPeople](#openeng-objects-sdk-searchpeople) |
| [openeng objects-sdk searchObjectReaders](#openeng-objects-sdk-searchobjectreaders) |
| [openeng objects-sdk listSubscribers](#openeng-objects-sdk-listsubscribers) |
| [openeng objects-sdk addSubscriber](#openeng-objects-sdk-addsubscriber) |
| [openeng objects-sdk removeSubscriber](#openeng-objects-sdk-removesubscriber) |
| [openeng objects-sdk listComments](#openeng-objects-sdk-listcomments) |
| [openeng objects-sdk acquireDraft](#openeng-objects-sdk-acquiredraft) |
| [openeng objects-sdk saveDraft](#openeng-objects-sdk-savedraft) |
| [openeng objects-sdk promoteDraft](#openeng-objects-sdk-promotedraft) |
| [openeng objects-sdk releaseDraft](#openeng-objects-sdk-releasedraft) |
| [openeng objects-sdk discardDraft](#openeng-objects-sdk-discarddraft) |
| [openeng objects-sdk breakDraftLock](#openeng-objects-sdk-breakdraftlock) |
| [openeng objects-sdk readDraftLock](#openeng-objects-sdk-readdraftlock) |
| [openeng objects-sdk restoreDraft](#openeng-objects-sdk-restoredraft) |
| [openeng objects-sdk setCommentResolved](#openeng-objects-sdk-setcommentresolved) |
| [openeng objects-sdk addComment](#openeng-objects-sdk-addcomment) |
| [openeng branches-sdk createBranch](#openeng-branches-sdk-createbranch) |
| [openeng branches-sdk merge](#openeng-branches-sdk-merge) |
| [openeng branches-sdk readMergeConflicts](#openeng-branches-sdk-readmergeconflicts) |
| [openeng branches-sdk disposeRef](#openeng-branches-sdk-disposeref) |
| [openeng branches-sdk readPendingProposal](#openeng-branches-sdk-readpendingproposal) |
| [openeng branches-sdk submitProposal](#openeng-branches-sdk-submitproposal) |
| [openeng branches-sdk listProposals](#openeng-branches-sdk-listproposals) |
| [openeng branches-sdk readProposal](#openeng-branches-sdk-readproposal) |
| [openeng branches-sdk refuseProposal](#openeng-branches-sdk-refuseproposal) |
| [openeng branches-sdk approveProposal](#openeng-branches-sdk-approveproposal) |
| [openeng branches-sdk readBranchDiff](#openeng-branches-sdk-readbranchdiff) |
| [openeng branches-sdk readChangeImpact](#openeng-branches-sdk-readchangeimpact) |
| [openeng branches-sdk diffBranches](#openeng-branches-sdk-diffbranches) |
| [openeng branches-sdk readBranchHistory](#openeng-branches-sdk-readbranchhistory) |
| [openeng branches-sdk readRefHead](#openeng-branches-sdk-readrefhead) |
| [openeng branches-sdk inspectBranchOperation](#openeng-branches-sdk-inspectbranchoperation) |
| [openeng branches-sdk abandonBranch](#openeng-branches-sdk-abandonbranch) |
| [openeng branches-sdk requestSchemaUpdate](#openeng-branches-sdk-requestschemaupdate) |
| [openeng branches-sdk readSchemaUpdateRequest](#openeng-branches-sdk-readschemaupdaterequest) |
| [openeng admin-sdk registerEngine](#openeng-admin-sdk-registerengine) |
| [openeng admin-sdk listEngines](#openeng-admin-sdk-listengines) |
| [openeng admin-sdk createFeedback](#openeng-admin-sdk-createfeedback) |
| [openeng admin-sdk listFeedback](#openeng-admin-sdk-listfeedback) |
| [openeng admin-sdk registerClient](#openeng-admin-sdk-registerclient) |
| [openeng admin-sdk listClients](#openeng-admin-sdk-listclients) |
| [openeng admin-sdk revokeClient](#openeng-admin-sdk-revokeclient) |
| [openeng admin-sdk replaceClientKeys](#openeng-admin-sdk-replaceclientkeys) |
| [openeng admin-sdk createServiceIdentity](#openeng-admin-sdk-createserviceidentity) |
| [openeng admin-sdk revokeServiceIdentity](#openeng-admin-sdk-revokeserviceidentity) |
| [openeng admin-sdk revokeServiceCredential](#openeng-admin-sdk-revokeservicecredential) |
| [openeng admin-sdk grantMembership](#openeng-admin-sdk-grantmembership) |
| [openeng admin-sdk revokeMembership](#openeng-admin-sdk-revokemembership) |
| [openeng admin-sdk leaveMembership](#openeng-admin-sdk-leavemembership) |
| [openeng admin-sdk setModelId](#openeng-admin-sdk-setmodelid) |
| [openeng admin-sdk readModelConfigurationStatus](#openeng-admin-sdk-readmodelconfigurationstatus) |
| [openeng admin-sdk readAccount](#openeng-admin-sdk-readaccount) |
| [openeng admin-sdk readDisplayNames](#openeng-admin-sdk-readdisplaynames) |
| [openeng admin-sdk listMembers](#openeng-admin-sdk-listmembers) |
| [openeng admin-sdk changeMembershipRole](#openeng-admin-sdk-changemembershiprole) |
| [openeng admin-sdk listOrganisationMembers](#openeng-admin-sdk-listorganisationmembers) |
| [openeng admin-sdk listServiceIdentities](#openeng-admin-sdk-listserviceidentities) |
| [openeng admin-sdk createInvitation](#openeng-admin-sdk-createinvitation) |
| [openeng admin-sdk listInvitations](#openeng-admin-sdk-listinvitations) |
| [openeng admin-sdk revokeInvitation](#openeng-admin-sdk-revokeinvitation) |
| [openeng admin-sdk readInvitationDomainRule](#openeng-admin-sdk-readinvitationdomainrule) |
| [openeng admin-sdk setInvitationDomainRule](#openeng-admin-sdk-setinvitationdomainrule) |
| [openeng admin-sdk reissueInvitation](#openeng-admin-sdk-reissueinvitation) |
| [openeng admin-sdk createPlatformInvitation](#openeng-admin-sdk-createplatforminvitation) |
| [openeng admin-sdk listPlatformInvitations](#openeng-admin-sdk-listplatforminvitations) |
| [openeng admin-sdk revokePlatformInvitation](#openeng-admin-sdk-revokeplatforminvitation) |
| [openeng admin-sdk reissuePlatformInvitation](#openeng-admin-sdk-reissueplatforminvitation) |
| [openeng admin-sdk readWebOrigin](#openeng-admin-sdk-readweborigin) |
| [openeng admin-sdk readCallerCapabilities](#openeng-admin-sdk-readcallercapabilities) |
| [openeng admin-sdk listAudit](#openeng-admin-sdk-listaudit) |
| [openeng admin-sdk listOrganisationAudit](#openeng-admin-sdk-listorganisationaudit) |
| [openeng admin-sdk addRefRule](#openeng-admin-sdk-addrefrule) |
| [openeng admin-sdk listRefRules](#openeng-admin-sdk-listrefrules) |
| [openeng admin-sdk removeRefRule](#openeng-admin-sdk-removerefrule) |
| [openeng admin-sdk updateRefRule](#openeng-admin-sdk-updaterefrule) |
| [openeng admin-sdk addOrganisationRule](#openeng-admin-sdk-addorganisationrule) |
| [openeng admin-sdk listOrganisationRules](#openeng-admin-sdk-listorganisationrules) |
| [openeng admin-sdk removeOrganisationRule](#openeng-admin-sdk-removeorganisationrule) |
| [openeng admin-sdk updateOrganisationRule](#openeng-admin-sdk-updateorganisationrule) |
| [openeng admin-sdk createOrganisationRef](#openeng-admin-sdk-createorganisationref) |
| [openeng admin-sdk listOrganisationRefs](#openeng-admin-sdk-listorganisationrefs) |
| [openeng admin-sdk deleteOrganisationRef](#openeng-admin-sdk-deleteorganisationref) |
| [openeng admin-sdk markOrganisationRefReadOnly](#openeng-admin-sdk-markorganisationrefreadonly) |
| [openeng admin-sdk readAgentCeiling](#openeng-admin-sdk-readagentceiling) |
| [openeng admin-sdk renameProject](#openeng-admin-sdk-renameproject) |
| [openeng admin-sdk setAgentCeiling](#openeng-admin-sdk-setagentceiling) |
| [openeng admin-sdk createProject](#openeng-admin-sdk-createproject) |
| [openeng admin-sdk createOrganisation](#openeng-admin-sdk-createorganisation) |
| [openeng admin-sdk createConnection](#openeng-admin-sdk-createconnection) |
| [openeng admin-sdk listConnections](#openeng-admin-sdk-listconnections) |
| [openeng admin-sdk readConnectionIdentity](#openeng-admin-sdk-readconnectionidentity) |
| [openeng admin-sdk draftConnectorTypes](#openeng-admin-sdk-draftconnectortypes) |
| [openeng admin-sdk revokeConnection](#openeng-admin-sdk-revokeconnection) |
| [openeng admin-sdk startImportRun](#openeng-admin-sdk-startimportrun) |
| [openeng admin-sdk listImportRuns](#openeng-admin-sdk-listimportruns) |
| [openeng admin-sdk closeImportRun](#openeng-admin-sdk-closeimportrun) |
| [openeng agents-sdk openAgentSession](#openeng-agents-sdk-openagentsession) |
| [openeng agents-sdk listAgentSessions](#openeng-agents-sdk-listagentsessions) |
| [openeng agents-sdk readAgentSession](#openeng-agents-sdk-readagentsession) |
| [openeng agents-sdk sendMessage](#openeng-agents-sdk-sendmessage) |
| [openeng agents-sdk answerPlan](#openeng-agents-sdk-answerplan) |
| [openeng agents-sdk stopRun](#openeng-agents-sdk-stoprun) |
| [openeng agents-sdk closePlan](#openeng-agents-sdk-closeplan) |
| [openeng agents-sdk sendMessageStreamed](#openeng-agents-sdk-sendmessagestreamed) |
| [openeng agents-sdk answerPlanStreamed](#openeng-agents-sdk-answerplanstreamed) |
| [openeng ontology-sdk openChangeSet](#openeng-ontology-sdk-openchangeset) |
| [openeng ontology-sdk readCurrentChangeSet](#openeng-ontology-sdk-readcurrentchangeset) |
| [openeng ontology-sdk readChangeSet](#openeng-ontology-sdk-readchangeset) |
| [openeng ontology-sdk readChangeSetState](#openeng-ontology-sdk-readchangesetstate) |
| [openeng ontology-sdk reviseChangeSet](#openeng-ontology-sdk-revisechangeset) |
| [openeng ontology-sdk validateChangeSet](#openeng-ontology-sdk-validatechangeset) |
| [openeng ontology-sdk discardChangeSet](#openeng-ontology-sdk-discardchangeset) |
| [openeng ontology-sdk acceptChangeSet](#openeng-ontology-sdk-acceptchangeset) |
| [openeng ontology-sdk openAppDraft](#openeng-ontology-sdk-openappdraft) |
| [openeng ontology-sdk readAppDraft](#openeng-ontology-sdk-readappdraft) |
| [openeng ontology-sdk reviseAppDraft](#openeng-ontology-sdk-reviseappdraft) |
| [openeng ontology-sdk acceptAppDraft](#openeng-ontology-sdk-acceptappdraft) |
| [openeng ontology-sdk validateAppDraft](#openeng-ontology-sdk-validateappdraft) |
| [openeng ontology-sdk discardAppDraft](#openeng-ontology-sdk-discardappdraft) |

## openeng help

```text
usage:
  openeng help [<command words>]  (the same as <command words> --help)
  openeng login [--no-open]
  openeng logout
  openeng whoami
  openeng session human
  openeng session status
  openeng org list
  openeng org attach <id>
  openeng org create --name <name> [--idempotency-key <key>]
  openeng org detach
  openeng org current
  openeng projects list
  openeng projects create --name <text>
  openeng projects rename --project <id> --name <text>
  openeng rules add (--project <id>|--organisation) --extent <extent> --pattern <pattern> [settings]
  openeng rules update (--project <id>|--organisation) --rule-id <id> [settings]
  openeng rules list (--project <id>|--organisation)
  openeng rules remove (--project <id>|--organisation) --rule-id <id>
  openeng org-refs create --name <name> [--read-only]
  openeng org-refs list
  openeng org-refs delete --name <name>
  openeng org-refs mark-read-only --name <name>
  openeng locks set --project <id> --ref <ref> --object <id> --lock <lock> --reason <text>
  openeng ceiling show --project <id>
  openeng ceiling set --project <id> --ceiling <contributor|maintainer>
  openeng schema-update request --ref <ref>
  openeng schema-update show --ref <ref>
  openeng feedback bug --title <text> (--body <text> | --body-file <path|->) [context]
  openeng feedback feature --title <text> (--body <text> | --body-file <path|->) [context]
  openeng attachment add <object> <property> <file> --project <id> --ref <ref> --reason <text>
  openeng attachment get <object> <property> [--out <path>] --project <id> --ref <ref>
  openeng attachment list <object> --project <id> --ref <ref>
  openeng links status <object> --project <id> --ref <ref>
  openeng links clear <link>... --version <v>... --project <id> --ref <ref> --reason <text>
  openeng branches impact <ref> --base <base> --project <id>
  openeng hosted-app publish <bundle> --project <id> --key <app key>
  openeng hosted-app list --project <id>
  openeng hosted-app versions <app key> --project <id>
  openeng hosted-app revoke <app key | app id | version id> --project <id>
  openeng types list --project <id>
  openeng types export --project <id>
  openeng types draft open
  openeng types draft current
  openeng types draft show --change-set <id> [--project <id>]
  openeng types draft state --change-set <id>
  openeng types draft revise --change-set <id> --revision <rev> --from <file> [--rail-groups <json>]
  openeng types draft try --type <key> --sample <file> [--change-set <id>]
  openeng types draft validate --change-set <id> --revision <token>
  openeng types draft discard --change-set <id>
  openeng types draft accept --change-set <id> --revision <token>
  openeng connector create --system onshape --stack <s> --name <t> [selection flags]
  openeng connector set-credential <connection>
  openeng connector draft-types <connection>
  openeng connector revoke <connection>
  openeng connector run <connection>
  openeng connector runs <connection>
  openeng link <kind> ...  (openeng link --help)
  openeng link <branch-diff|project> --project <id> --ref <ref>
  openeng link <ontology|change-set> --ref <ref>
  openeng link <object|type|proposal|app> <identifier> --project <id> --ref <ref>
  openeng link app-draft <appKey> --ref <ref>
  openeng link app-page <appKey> <pageKey> --project <id> --ref <ref>
  openeng link organisation-page <page>
  openeng demo seed --project <id> [--size standard|full]
  openeng skill [<topic> | playbook <name>]
  openeng types icons [<text>]
  openeng objects-sdk <method> ...  (openeng objects-sdk <method> --help)
    startBuild cancelBuild readBuildRun listBuildRuns readStepRun readOutputValues readStepLog
    checkCase createObjectSet listObjectSets readObjectSet updateObjectSet deleteObjectSet
    completeAttachmentUpload readAttachment readObject queryObjects queryRows aggregateObjects
    discoverVerbs readHistory mutate mutateBatch previewDelete recover executeVerb listProjects
    listRefs readCatalogue queryGraph readStructure findPaths readLinkStatus clearLinks
    setObjectLock readApp listApps searchPeople searchObjectReaders listSubscribers
    addSubscriber removeSubscriber listComments acquireDraft saveDraft promoteDraft releaseDraft
    discardDraft breakDraftLock readDraftLock restoreDraft setCommentResolved addComment
  openeng branches-sdk <method> ...  (openeng branches-sdk <method> --help)
    createBranch merge readMergeConflicts disposeRef readPendingProposal submitProposal
    listProposals readProposal refuseProposal approveProposal readBranchDiff readChangeImpact
    diffBranches readBranchHistory readRefHead inspectBranchOperation abandonBranch
    requestSchemaUpdate readSchemaUpdateRequest
  openeng admin-sdk <method> ...  (openeng admin-sdk <method> --help)
    registerEngine listEngines createFeedback listFeedback registerClient listClients
    revokeClient replaceClientKeys createServiceIdentity revokeServiceIdentity
    revokeServiceCredential grantMembership revokeMembership leaveMembership setModelId
    readModelConfigurationStatus readAccount readDisplayNames listMembers changeMembershipRole
    listOrganisationMembers listServiceIdentities createInvitation listInvitations
    revokeInvitation readInvitationDomainRule setInvitationDomainRule reissueInvitation
    createPlatformInvitation listPlatformInvitations revokePlatformInvitation
    reissuePlatformInvitation readWebOrigin readCallerCapabilities listAudit
    listOrganisationAudit addRefRule listRefRules removeRefRule updateRefRule
    addOrganisationRule listOrganisationRules removeOrganisationRule updateOrganisationRule
    createOrganisationRef listOrganisationRefs deleteOrganisationRef markOrganisationRefReadOnly
    readAgentCeiling renameProject setAgentCeiling createProject createOrganisation
    createConnection listConnections readConnectionIdentity draftConnectorTypes revokeConnection
    startImportRun listImportRuns closeImportRun
  openeng agents-sdk <method> ...  (openeng agents-sdk <method> --help)
    openAgentSession listAgentSessions readAgentSession sendMessage answerPlan stopRun closePlan
    sendMessageStreamed answerPlanStreamed
  openeng ontology-sdk <method> ...  (openeng ontology-sdk <method> --help)
    openChangeSet readCurrentChangeSet readChangeSet readChangeSetState reviseChangeSet
    validateChangeSet discardChangeSet acceptChangeSet openAppDraft readAppDraft reviseAppDraft
    acceptAppDraft validateAppDraft discardAppDraft
options: --host <unix:/absolute/path | https origin>  --sign-in-origin <loopback origin>
         --json  --help  --version
default host: https://api.openeng.io
to use another host: --host <origin>, or set OPENENG_HOST=<origin>
agents: start with openeng skill, which prints how to work with the platform.
```

## openeng login

```text
openeng login [--no-open]
does:    signs the person in through the browser and stores the session; --no-open prints the sign-in address instead of opening it
example: openeng login
output:  one line naming the principal, the host, the store and the expiry; under --json an object with principalId, hostKey, store and expiresAt
default host: https://api.openeng.io
to use another host: --host <origin>, or set OPENENG_HOST=<origin>
agents: start with openeng skill, which prints how to work with the platform.
```

## openeng logout

```text
openeng logout
does:    ends the session at the host and deletes the stored session
example: openeng logout
output:  one line saying the session is deleted; under --json an object with host, refreshedFirst and entryDeleted
```

## openeng whoami

```text
openeng whoami
does:    prints who the stored session belongs to; sends no request and never prints a token
example: openeng whoami --json
output:  one line naming the principal, host, store, expiry and protocol; under --json an object with principalId, host, store, expiresAt and protocolVersion
```

## openeng session human

```text
openeng session human
does:    asks once for web confirmation, then uses human mode for this CLI session; already-human sessions are unchanged
example: openeng session human --json
output:  server-stored channel, mode and sign-in time; under --json { channel, mode, issuedAt }
```

## openeng session status

```text
openeng session status
does:    reads this session's channel, mode and sign-in time from the server; needs no organisation attachment
example: openeng session status --json
output:  server-stored channel, mode and sign-in time; under --json { channel, mode, issuedAt }
```

## openeng org list

```text
openeng org list
does:    lists the organisations the signed-in person holds a live grant in; needs no attachment
example: openeng org list --json
output:  one line per organisation, its id then its name; under --json an array of objects with id and name
```

## openeng org attach

```text
openeng org attach <id>
does:    attaches the session to the organisation, so later commands act in it; the id comes from openeng org list
example: openeng org attach org_abc123
output:  one line naming the attached organisation; under --json an object with organisation (id and name)
```

## openeng org create

```text
openeng org create --name <name> [--idempotency-key <key>]
does:    creates an organisation; the host generates its identifier, and you cannot choose it
example: openeng org create --name "Acme Robotics"
output:  one line with the name and the new identifier; under --json an object with organisationId
  capability: admin.organisations
```

## openeng org detach

```text
openeng org detach
does:    detaches the session from its organisation; commands that act in an organisation refuse until you attach again
example: openeng org detach
output:  one line saying the session is detached; under --json an object with organisation null
```

## openeng org current

```text
openeng org current
does:    prints the organisation the stored session is attached to; sends no request
example: openeng org current --json
output:  one line, org: <name> (<id>), or not attached; under --json an object with organisation (id and name, or null)
```

## openeng projects list

```text
openeng projects list
does:    lists the projects in the attached organisation that the signed-in person may list
example: openeng projects list --json
output:  one line per project: id, name, namespace and role; under --json an object with scope and value, where value is the array of objects with projectId, name, namespaceId and roleLabel
```

## openeng projects create

```text
openeng projects create --name <text>
does:    creates a project in the attached organisation; the host generates the project and namespace identifiers, and you cannot choose them
example: openeng projects create --name "Rover"
output:  one line with the new project id and namespace id; under --json an object with projectId and namespaceId
```

## openeng projects rename

```text
openeng projects rename --project <id> --name <text>
does:    renames the project; the name is sent as typed, and only an empty name is refused
capability: administer projects on the selected project; a caller without it is told the project was not found
example: openeng projects rename --project project-one --name "Rover"
output:  one line with the project id and its new name; under --json an object with projectId and name
```

## openeng rules add

```text
openeng rules add (--project <id>|--organisation) --extent <ref|rows> --pattern <pattern> [settings]
settings: --consequence <open|merge-only|locked-rows-only> --require-proposal <true|false>
          --required-approvals <0..10> --approver-min-role <contributor|maintainer|owner|null>
          --restrict-deletions <true|false> --approvers '<JSON person-id array>' --bypass '<JSON member array>'
bypass:   [{"kind":"role","roleKey":"owner"},{"kind":"person","personId":"person-id"},
           {"kind":"service","serviceIdentityId":"service-id"},{"kind":"client","clientId":"client-id"}]
does:    adds a project or organisation rule with the supplied settings and defaults for omitted fields
capability: administer projects on the selected project or administer projects in the attached organisation
example: openeng rules add --organisation --extent ref --pattern release-v1 --consequence merge-only
output:  the rule id, pattern and consequence; under --json { scope, value }, with the full RefRule in value
```

## openeng rules update

```text
openeng rules update (--project <id>|--organisation) --rule-id <id> [settings]
settings: --consequence <open|merge-only|locked-rows-only> --require-proposal <true|false>
          --required-approvals <0..10> --approver-min-role <contributor|maintainer|owner|null>
          --restrict-deletions <true|false> --approvers '<JSON person-id array>' --bypass '<JSON member array>'
bypass:   [{"kind":"role","roleKey":"owner"},{"kind":"person","personId":"person-id"},
           {"kind":"service","serviceIdentityId":"service-id"},{"kind":"client","clientId":"client-id"}]
does:    changes settings in place; omitted fields keep their values; lists replace their members
capability: administer projects on the selected project or administer projects in the attached organisation
example: openeng rules update --project project-one --rule-id rule-one --required-approvals 2
output:  the full rule under --json; every update asks an agent-mode session to confirm
```

## openeng rules list

```text
openeng rules list (--project <id>|--organisation)
does:    lists visible ref protection rules for the project or attached organisation
capability: read on the selected project or read in the attached organisation
example: openeng rules list --organisation --json
output:  id, pattern and consequence per rule, or no rules; --json { scope, value }, value is a RefRule array
```

## openeng rules remove

```text
openeng rules remove (--project <id>|--organisation) --rule-id <id>
does:    removes one rule from the project or attached organisation by its identifier
capability: administer projects on the selected project or administer projects in the attached organisation
example: openeng rules remove --organisation --rule-id rule-one
output:  the removed rule id; under --json { scope, value }, with { ruleId } in value
```

## openeng org-refs create

```text
openeng org-refs create --name <name> [--read-only]
does:    creates a ref in the attached organisation, optionally read-only
capability: administer projects in the attached organisation
example: openeng org-refs create --name release-v1 --read-only
output:  the ref name and write state; under --json { scope, value }, with the full OrganisationRef in value
```

## openeng org-refs list

```text
openeng org-refs list
does:    lists visible refs in the attached organisation
capability: read in the attached organisation
example: openeng org-refs list --json
output:  each ref's name and write state, or no refs; under --json { scope, value }, value is an array
```

## openeng org-refs delete

```text
openeng org-refs delete --name <name>
does:    deletes a writable ref from the attached organisation
capability: administer projects in the attached organisation
example: openeng org-refs delete --name review
output:  the deleted ref name; under --json { scope, value }, with { name } in value
```

## openeng org-refs mark-read-only

```text
openeng org-refs mark-read-only --name <name>
does:    marks a ref in the attached organisation read-only
capability: administer projects in the attached organisation
example: openeng org-refs mark-read-only --name release-v1
output:  the ref name and write state; under --json { scope, value }, with the full OrganisationRef in value
```

## openeng locks set

```text
openeng locks set --project <id> --ref <ref> --object <id> --lock <lock> --reason <text>
does:    sets or lifts an object's lock on the selected project ref; --lock is none, merge-only or frozen
reason:  required; say why the lock changes, written first in the save commit message
capability: lock objects on the selected project
example: openeng locks set --project project-one --ref main --object object-one --lock frozen --reason "Freeze the released drawing"
output:  the object identifier and lock; under --json { scope, value }, with { objectId, lock } in value
```

## openeng ceiling show

```text
openeng ceiling show --project <id>
does:    reads the maximum role an agent can hold in the project
capability: read on the selected project
example: openeng ceiling show --project project-one --json
output:  the ceiling role; under --json { scope, value }, with { ceiling } in value
```

## openeng ceiling set

```text
openeng ceiling set --project <id> --ceiling <contributor|maintainer>
does:    sets the maximum role an agent can hold in the project
capability: administer projects on the selected project
example: openeng ceiling set --project project-one --ceiling contributor
output:  the ceiling role; under --json { scope, value }, with { ceiling } in value
```

## openeng schema-update request

```text
openeng schema-update request --ref <ref>
does:    records a schema update request for the ref; execution is separate
capability: write ref on the branch's home project or administer projects for an organisation ref
example: openeng schema-update request --ref project-one/work
output:  the ref and request state; under --json { scope, value }, with the full SchemaUpdateRequest in value
```

## openeng schema-update show

```text
openeng schema-update show --ref <ref>
does:    reads the latest visible schema update request for the ref
capability: none; only the caller's own requests in the token's organisation; no project read required
example: openeng schema-update show --ref project-one/work --json
output:  the ref and state, or no request; under --json { scope, value }, value is SchemaUpdateRequest or null
```

## openeng feedback bug

```text
openeng feedback bug --title <text> (--body <text> | --body-file <path|->) [context]
context: --project <id>  --route <name>  --correlation <id>, each optional
does:    files a bug feedback entry; --body-file - reads the body from standard input
example: openeng feedback bug --title "..." --body-file - --route createFeedback
output:  entry identifier and filing time
```

## openeng feedback feature

```text
openeng feedback feature --title <text> (--body <text> | --body-file <path|->) [context]
context: --project <id>  --route <name>  --correlation <id>, each optional
does:    files a feature feedback entry; --body-file - reads the body from standard input
example: openeng feedback feature --title "..." --body-file - --route createFeedback
output:  entry identifier and filing time
```

## openeng attachment add

```text
openeng attachment add <object> <property> <file> --project <id> --ref <ref> --reason <text>
does:    stages a file and saves its descriptor on the object's attachment property
reason:  required; say why the file is attached, written first in the save commit message
example: openeng attachment add obj_abc drawing ./drawing.pdf --project proj_abc --ref main --reason "Attach the released drawing"
output:  the attachment descriptor as JSON
```

## openeng attachment get

```text
openeng attachment get <object> <property> [--out <path>] --project <id> --ref <ref>
does:    downloads an object's attachment property to --out or the descriptor's name
example: openeng attachment get obj_abc drawing --out ./drawing.pdf --project proj_abc --ref main
output:  the path written
```

## openeng attachment list

```text
openeng attachment list <object> --project <id> --ref <ref>
does:    lists the object's attachment-kind properties
example: openeng attachment list obj_abc --project proj_abc --ref main
output:  one JSON object per attachment property with its descriptor
```

## openeng links status

```text
openeng links status <object> --project <id> --ref <ref>
does:    reads review and bounds states, clearing attribution and upstream versions; bounds show units
example: openeng links status obj_abc --project proj_abc --ref main
output:  head, tracked links and aggregate bounds; --json returns the complete answer
```

## openeng links clear

```text
openeng links clear <link>... --version <v>... --project <id> --ref <ref> --reason <text>
does:    clears 1 to 100 links atomically; supply one upstream version from links status per link, in the same order
reason:  required; say why the links are cleared, written first in the save commit message
example: openeng links clear edg_abc --version <upstream-version> --project proj_abc --ref main --reason "Reviewed the upstream change"
output:  the clearing commit and correlation; upstream-changed requires reading the status and reviewing again
```

## openeng branches impact

```text
openeng branches impact <ref> --base <base> --project <id>
does:    reads review and bounds changes against the merge base, downstream reach and hidden counts
example: openeng branches impact proj_abc/work --base main --project proj_abc
output:  both heads, changes with units, reach and hidden counts; --json returns the complete answer
```

## openeng hosted-app publish

```text
openeng hosted-app publish <bundle> --project <id> --key <app key>
does:    publishes a bundle file as the next version of the project's hosted app under the key, creating the app when the project has none under that key
example: openeng hosted-app publish ./dist/app.js --project proj_abc --key rover-dashboard
output:  the version id, its SHA-256 and its size; for an app that holds the reduced isolation permission, the reduced isolation warning as well
```

## openeng hosted-app list

```text
openeng hosted-app list --project <id>
does:    lists the hosted apps of the project
example: openeng hosted-app list --project proj_abc
output:  one line per app: key, id, state, creation time and creator
```

## openeng hosted-app versions

```text
openeng hosted-app versions <app key> --project <id>
does:    lists the versions of the project's hosted app under the key, newest first
example: openeng hosted-app versions rover-dashboard --project proj_abc
output:  one line per version: id, state, SHA-256, size, publication time and publisher
```

## openeng hosted-app revoke

```text
openeng hosted-app revoke <app key | app id | version id> --project <id>
does:    revokes one version (an argument starting hav_) or the whole app (its key or app_ id); the next call under any launch of it is refused
example: openeng hosted-app revoke hav_abc... --project proj_abc
output:  one line naming what was revoked
```

## openeng types list

```text
openeng types list --project <id>
does:    lists the project's published types
example: openeng types list --project proj_abc123
output:  one line per type: category, key, version and display name; under --json an object with objects, edges and verbs arrays
```

## openeng types export

```text
openeng types export --project <id>
does:    exports the project's published types as the file openeng types draft revise --from reads
example: openeng types export --project proj_abc123 > types.json
output:  one JSON object keyed by type key, each value the first prospective version of an edit; {} when nothing is published
```

## openeng types draft open

```text
openeng types draft open
does:    opens a change set on the attached organisation's namespace, where type edits are drafted
example: openeng types draft open
output:  one line with the change set id and revision; under --json an object with changeSetId and revision
```

## openeng types draft current

```text
openeng types draft current
does:    reads the attached organisation's open change set, if there is one
example: openeng types draft current --json
output:  one line naming the change set and revision, or that none is open; under --json an object with changeSetId, revision and scope, or {scope, value: null} when none is open
```

## openeng types draft show

```text
openeng types draft show --change-set <id> [--project <id>]
does:    prints a change set's prospective types; with --project it prints the delta against that project's published types instead
example: openeng types draft show --change-set cs_abc123 --project proj_abc123
output:  text lines for the revision and each type or delta; under --json an object with revision and changes, and delta where --project is given (railGroups when the change set holds them)
```

## openeng types draft state

```text
openeng types draft state --change-set <id>
does:    reads whether a change set is open, accepted or discarded
example: openeng types draft state --change-set cs_abc123
output:  one line with the state and revision; under --json an object with state and revision
```

## openeng types draft revise

```text
openeng types draft revise --change-set <id> --revision <rev> --from <file> [--rail-groups <json>]
does:    replaces the change set's delta with the JSON object in the file; the host validates it
example: openeng types draft revise --change-set cs_abc123 --revision rev_abc123 --from types.json
output:  one line with the new revision; under --json an object with revision
file: a JSON object keyed by type key; --from gives its path.
changes: required; map of type definitions. See `openeng help ontology-sdk reviseChangeSet` for each entry's fields.
Direction:
The graph places an edge's source before its target. Put the upstream end at source.
parentEnd:
This names the tree parent, independent of direction. A structural edge needs a non-null parentEnd; type validation can accept null, but an edge write cannot store it.
Structural parents:
An object has at most one structural parent in a project. The same object cannot be connected into a structural cycle.
subjectEnd:
No current read or write behaviour uses subjectEnd. Set it to "source".
structureDeclaration.relationships:
This list ranks parent edge types. The first listed edge type with a readable parent offer wins.
structureDeclaration.views:
Declaring any views replaces the relationship picker in the web app. Put the default view first.
Rail and presentation:
Use presentationBindings.rail with group and order to place a type in the rail.
title selects its title property; typeIcon selects its icon. Supply the full group list with --rail-groups.
typeIcon must be a Material Symbols Rounded name from @material-symbols/font-400, such as memory or developer_board; cpu is invalid.
openeng types icons <text> lists valid names and needs no sign-in; the full list is at https://docs.openeng.io/reference/icons/.
Reserved keys:
Do not use __proto__, constructor or prototype as property keys or enumeration members. Validation refuses them with prototype-key.
After acceptance:
An edge's kind, endpoint types, subjectEnd, parentEnd, labels and read or write rules cannot change.
A published type cannot add a required property or remove an enumeration member.
First version:
A new type key starts at version 1.
Example model:
These neutral keys show two object types, a structural has-* edge, a traceability edge, a rail group and two views:
  assembly and goal are object types with a title string; goal also has a title binding and rail group Work.
  goal.structureDeclaration.relationships ranks has-goal before refines; both edges place goal as the child.
  has-goal is structural: source assembly, target goal, parentEnd source.
  refines is traceability: source goal, target goal, parentEnd source.
  goal.structureDeclaration.views lists by-assembly first over has-goal, then refinement over refines.
```

## openeng types draft try

```text
openeng types draft try --type <key> --sample <file> [--change-set <id>]
does:    checks one sample instance against the open change set's version of a type, with the check a write runs; writes nothing
example: openeng types draft try --type part --sample sample.json
output:  a line saying the sample fits, or a count and one line per violation (exit 4); under --json an object with valid and violations, each with path and rule
```

## openeng types draft validate

```text
openeng types draft validate --change-set <id> --revision <token>
does:    asks the host for the violations of a change set at a revision; exits 4 when there is one or more
example: openeng types draft validate --change-set cs_abc123 --revision rev_abc123
output:  a count and one line per violation, or a line saying there are none; under --json an object with violations, an array
```

## openeng types draft discard

```text
openeng types draft discard --change-set <id>
does:    discards a change set and its drafted types
example: openeng types draft discard --change-set cs_abc123
output:  one line naming the discarded change set; under --json an object with scope alone, because the result is empty
```

## openeng types draft accept

```text
openeng types draft accept --change-set <id> --revision <token>
does:    publishes the change set's types at the revision the person reviewed
example: openeng types draft accept --change-set cs_abc123 --revision rev_abc123
output:  one line with the number of type versions published; under --json an object with versionIds, an array
```

## openeng connector create

```text
openeng connector create --system onshape --stack <stack> --name <text> [--company <id>] [--team <id> | --owner <id>] [--label <text>]
does:    creates a connection to an Onshape account, its mirror project and its service identity; the host generates their identifiers
example: openeng connector create --system onshape --stack cad --name "Onshape mirror" --company 5f1b2c3d4e5f6a7b8c9d0e1f
output:  the new connection and project ids and whether the types were drafted; under --json an object with connectionId, mirrorProjectId, types and scope, where types is {outcome: drafted, changeSetId}, {outcome: already-approved}, {outcome: open-change-set, changeSetId} or {outcome: not-drafted, rule}
  --team or --owner limits the import to that upstream team or owner; with neither, the company's documents are imported and --company, the company's own identifier and never a user's, is required
  Everyone with access to this project sees every document this Onshape account can see.
  needs: administer projects and administer service identities in the organisation (the owner role)
```

## openeng connector set-credential

```text
openeng connector set-credential <connection>
does:    stores the Onshape keys for a connection
example: openeng connector set-credential conn_abc123
output:  one line naming the Onshape account and the time the keys were set; under --json an object with upstreamIdentity and setAt
  asks for the Onshape access key and secret key at a terminal prompt, never from a flag or the environment; setting it again replaces the stored credential
  needs: administer projects in the organisation
```

## openeng connector draft-types

```text
openeng connector draft-types <connection>
does:    drafts the connection's types for review
example: openeng connector draft-types conn_abc123
output:  a line saying what was drafted or why not; under --json an object with scope and outcome: {outcome: drafted, changeSetId}, {outcome: already-approved} or {outcome: open-change-set, changeSetId}
  drafts the connector's types as a change set for a person to review and accept with openeng types draft
  needs: administer types in the organisation, and read on the mirror project
```

## openeng connector revoke

```text
openeng connector revoke <connection>
does:    revokes the connection
example: openeng connector revoke conn_abc123
output:  one line naming the revoked connection; under --json an object with scope alone, because the result is empty
  revokes the connection: its running runs end as failed and its service identity can no longer act
  needs: administer projects and administer service identities in the organisation
```

## openeng connector run

```text
openeng connector run <connection>
does:    starts an import run
example: openeng connector run conn_abc123
output:  one line with the run id; under --json an object with runId
  starts a run that imports the connection's source into its mirror project, and answers the run's identifier once its row has committed
  needs: write ref on the mirror project
```

## openeng connector runs

```text
openeng connector runs <connection>
does:    lists the connection's runs
example: openeng connector runs conn_abc123 --json
output:  one line per run: id, state, start and finish times, completeness, counts and failure; under --json an object with scope and value, where value is the array of run records
  lists the connection's runs, newest first, each with its state, counts and failure kind
  needs: read on the mirror project
```

## openeng link

```text
openeng link <branch-diff|project> --project <id> --ref <ref>
openeng link explore --project <id> --ref <ref> (--object <id> | --object-set <id>)
openeng link <ontology|change-set> --ref <ref>
openeng link app-draft <appKey> --ref <ref>
openeng link <object|type|proposal|app> <identifier> --project <id> --ref <ref>
openeng link app-page <appKey> <pageKey> --project <id> --ref <ref>
openeng link organisation-page <page>
object:  the object's type page with the object open; its type comes from the object read
type:    the type's page
explore: Explore with exactly one --object or --object-set seed
branch-diff: the branch comparison page
project: the project page
proposal: the proposal review page
ontology: the organisation's Types workspace
change-set: the organisation's Change set workspace
app:     the published app's first page
app-page: the named page of a published app
app-draft: the app's draft screen in the Types workspace
organisation-page: the named organisation administration page or settings
does:    reads the page's subject before printing its web address for the attached organisation
ref:     --ref takes main or <projectId>/<branch>, the ref the platform returns; match --project when given
refusal: a subject not found by the page's own read prints no address
example: openeng link explore --project proj_abc123 --ref main --object obj_abc123
output:  the address on one line; under --json an object with link
```

## openeng link app-draft

```text
openeng link <branch-diff|project> --project <id> --ref <ref>
openeng link explore --project <id> --ref <ref> (--object <id> | --object-set <id>)
openeng link <ontology|change-set> --ref <ref>
openeng link app-draft <appKey> --ref <ref>
openeng link <object|type|proposal|app> <identifier> --project <id> --ref <ref>
openeng link app-page <appKey> <pageKey> --project <id> --ref <ref>
openeng link organisation-page <page>
object:  the object's type page with the object open; its type comes from the object read
type:    the type's page
explore: Explore with exactly one --object or --object-set seed
branch-diff: the branch comparison page
project: the project page
proposal: the proposal review page
ontology: the organisation's Types workspace
change-set: the organisation's Change set workspace
app:     the published app's first page
app-page: the named page of a published app
app-draft: the app's draft screen in the Types workspace
organisation-page: the named organisation administration page or settings
does:    reads the page's subject before printing its web address for the attached organisation
ref:     --ref takes main or <projectId>/<branch>, the ref the platform returns; match --project when given
refusal: a subject not found by the page's own read prints no address
example: openeng link explore --project proj_abc123 --ref main --object obj_abc123
output:  the address on one line; under --json an object with link
```

## openeng link app-page

```text
openeng link <branch-diff|project> --project <id> --ref <ref>
openeng link explore --project <id> --ref <ref> (--object <id> | --object-set <id>)
openeng link <ontology|change-set> --ref <ref>
openeng link app-draft <appKey> --ref <ref>
openeng link <object|type|proposal|app> <identifier> --project <id> --ref <ref>
openeng link app-page <appKey> <pageKey> --project <id> --ref <ref>
openeng link organisation-page <page>
object:  the object's type page with the object open; its type comes from the object read
type:    the type's page
explore: Explore with exactly one --object or --object-set seed
branch-diff: the branch comparison page
project: the project page
proposal: the proposal review page
ontology: the organisation's Types workspace
change-set: the organisation's Change set workspace
app:     the published app's first page
app-page: the named page of a published app
app-draft: the app's draft screen in the Types workspace
organisation-page: the named organisation administration page or settings
does:    reads the page's subject before printing its web address for the attached organisation
ref:     --ref takes main or <projectId>/<branch>, the ref the platform returns; match --project when given
refusal: a subject not found by the page's own read prints no address
example: openeng link explore --project proj_abc123 --ref main --object obj_abc123
output:  the address on one line; under --json an object with link
```

## openeng link organisation-page

```text
openeng link <branch-diff|project> --project <id> --ref <ref>
openeng link explore --project <id> --ref <ref> (--object <id> | --object-set <id>)
openeng link <ontology|change-set> --ref <ref>
openeng link app-draft <appKey> --ref <ref>
openeng link <object|type|proposal|app> <identifier> --project <id> --ref <ref>
openeng link app-page <appKey> <pageKey> --project <id> --ref <ref>
openeng link organisation-page <page>
object:  the object's type page with the object open; its type comes from the object read
type:    the type's page
explore: Explore with exactly one --object or --object-set seed
branch-diff: the branch comparison page
project: the project page
proposal: the proposal review page
ontology: the organisation's Types workspace
change-set: the organisation's Change set workspace
app:     the published app's first page
app-page: the named page of a published app
app-draft: the app's draft screen in the Types workspace
organisation-page: the named organisation administration page or settings
does:    reads the page's subject before printing its web address for the attached organisation
ref:     --ref takes main or <projectId>/<branch>, the ref the platform returns; match --project when given
refusal: a subject not found by the page's own read prints no address
example: openeng link explore --project proj_abc123 --ref main --object obj_abc123
output:  the address on one line; under --json an object with link
```

## openeng demo seed

```text
openeng demo seed --project <id> [--size standard|full]
does:    plays a generic open-cycle gas turbine plant into a project the signed-in person may list; a repeat completes what is left
example: openeng demo seed --project proj_abc123 --size standard
output:  one line with the counts created and replayed; under --json an object with projectId, world, size, created and replayed
```

## openeng skill

```text
openeng skill [<topic> | playbook <name>]
does:    prints a bundled agent skill; no host or session is needed. An agent starts here.
example: openeng skill conventions
output:  the skill text; under --json an object with skill and, for the main skill, topics (an array of topic names)
Topics:
  openeng skill build-ui
  openeng skill conventions
  openeng skill demo
  openeng skill new-use-case
  openeng skill playbook engineering-requirements
  openeng skill playbook product-lifecycle
  openeng skill playbook project-management
```

## openeng types icons

```text
openeng types icons [<text>]
does:    lists valid type icon names; no host, sign-in or session is needed
example: openeng types icons CHIP
output:  one name per line; under --json an object with a names array
```

## openeng objects-sdk startBuild

```text
openeng objects-sdk startBuild --selector <json> [--input <json> | --input - | --input-file <path>] [--idempotency-key <key>]
route:       startBuild (POST /builds/start)
module:      objects-sdk
capability:  objects.build
actors:      person, agent:apply, app:client
step-up:     person: none; agent:apply: none; app:client: none
idempotent:  yes; a key is minted and printed when --idempotency-key is absent
selector:    object, given as --selector <json>
input:       a JSON object, given as --input <json>, --input - (standard input) or --input-file <path>; {} when none is given
does:        Start a build of the named targets on the selected ref; a wholly current selection returns current and stale counts on the first response, but its replay returns only { kind: "unchanged" } because the counts are not stored. Each step runs on the engine image its function's runtime names. A step whose function holds a Python body is checked against the body's typed signature: an unknown argument, a missing required one or a mismatched type is refused binding-mismatch.
input fields:
  target: required; kinds: outputs | case | build
    kind outputs: outputIds (array of string, required)
    kind case: caseId (string, required)
    kind build: buildId (string, required)
  choice: optional; "run-all" | "run-stale"
selector keys:
  projectId: required; string
  ref: required; string
example input: {"target":{"kind":"outputs","outputIds":[]}}
```

## openeng objects-sdk cancelBuild

```text
openeng objects-sdk cancelBuild --selector <json> [--input <json> | --input - | --input-file <path>]
route:       cancelBuild (POST /builds/cancel)
module:      objects-sdk
capability:  objects.build
actors:      person, agent:apply, app:client
step-up:     person: none; agent:apply: none; app:client: none
idempotent:  no
selector:    project, given as --selector <json>
input:       a JSON object, given as --input <json>, --input - (standard input) or --input-file <path>; {} when none is given
does:        Cancel a build and end its live step tokens.
input fields:
  buildRunId: required; string
selector keys:
  projectId: required; string
example input: {"buildRunId":"<buildRunId>"}
```

## openeng objects-sdk readBuildRun

```text
openeng objects-sdk readBuildRun --selector <json> [--input <json> | --input - | --input-file <path>]
route:       readBuildRun (POST /builds/read)
module:      objects-sdk
capability:  objects.read
actors:      person, service, agent:explore, agent:apply, app:client, app:hosted
step-up:     person: none; service: none; agent:explore: none; agent:apply: none; app:client: none; app:hosted: none
idempotent:  no
selector:    project, given as --selector <json>
input:       a JSON object, given as --input <json>, --input - (standard input) or --input-file <path>; {} when none is given
does:        Read a build and its step states. The state is running while any step run is unfinished, then canceled if a person cancelled any, complete, partial or failed. A read ends step runs past their deadline, and a read by a caller who may start builds starts queued step runs no execution holds.
input fields:
  buildRunId: required; string
selector keys:
  projectId: required; string
example input: {"buildRunId":"<buildRunId>"}
```

## openeng objects-sdk listBuildRuns

```text
openeng objects-sdk listBuildRuns --selector <json> [--input <json> | --input - | --input-file <path>]
route:       listBuildRuns (POST /builds/list)
module:      objects-sdk
capability:  objects.read
actors:      person, service, agent:explore, agent:apply, app:client, app:hosted
step-up:     person: none; service: none; agent:explore: none; agent:apply: none; app:client: none; app:hosted: none
idempotent:  no
selector:    project, given as --selector <json>
input:       a JSON object, given as --input <json>, --input - (standard input) or --input-file <path>; {} when none is given
does:        List the build runs that target an output or a case, or that hold a step run of a step, newest first, a page at a time. A list reads only; it ends no step run and starts none.
input fields:
  objectId: required; string
  continuation: required; string | null
selector keys:
  projectId: required; string
example input: {"objectId":"<objectId>","continuation":null}
```

## openeng objects-sdk readStepRun

```text
openeng objects-sdk readStepRun --selector <json> [--input <json> | --input - | --input-file <path>]
route:       readStepRun (POST /step-runs/read)
module:      objects-sdk
capability:  objects.read
actors:      person, service, agent:explore, agent:apply, app:client, app:hosted
step-up:     person: none; service: none; agent:explore: none; agent:apply: none; app:client: none; app:hosted: none
idempotent:  no
selector:    project, given as --selector <json>
input:       a JSON object, given as --input <json>, --input - (standard input) or --input-file <path>; {} when none is given
does:        Read a step run and its immutable spec and provenance. The spec names each input and holds no input value. A step run waiting for its upstream shows as QUEUED.
input fields:
  stepRunId: required; string
selector keys:
  projectId: required; string
example input: {"stepRunId":"<stepRunId>"}
```

## openeng objects-sdk readOutputValues

```text
openeng objects-sdk readOutputValues --selector <json> [--input <json> | --input - | --input-file <path>]
route:       readOutputValues (POST /outputs/values)
module:      objects-sdk
capability:  objects.read
actors:      person, service, agent:explore, agent:apply, app:client, app:hosted
step-up:     person: none; service: none; agent:explore: none; agent:apply: none; app:client: none; app:hosted: none
idempotent:  no
selector:    object, given as --selector <json>
input:       a JSON object, given as --input <json>, --input - (standard input) or --input-file <path>; {} when none is given
does:        Read indexed output values and their freshness.
input fields:
  outputId: required; string
  keys: required; array of kinds: component | step
    each element is one of these shapes:
      source component:
        sweep: required; map of number
        componentId: required; string
        variable: required; string
      source step:
        sweep: required; map of number
        variable: required; string
  runRef: optional; string
selector keys:
  projectId: required; string
  ref: required; string
example input: {"outputId":"<outputId>","keys":[]}
```

## openeng objects-sdk readStepLog

```text
openeng objects-sdk readStepLog --selector <json> [--input <json> | --input - | --input-file <path>]
route:       readStepLog (POST /step-runs/log)
module:      objects-sdk
capability:  objects.read
actors:      person, service, agent:explore, agent:apply, app:client, app:hosted
step-up:     person: none; service: none; agent:explore: none; agent:apply: none; app:client: none; app:hosted: none
idempotent:  no
selector:    project, given as --selector <json>
input:       a JSON object, given as --input <json>, --input - (standard input) or --input-file <path>; {} when none is given
does:        Read the step log as inert text and its truncation flag.
input fields:
  stepRunId: required; string
selector keys:
  projectId: required; string
example input: {"stepRunId":"<stepRunId>"}
```

## openeng objects-sdk checkCase

```text
openeng objects-sdk checkCase --selector <json> [--input <json> | --input - | --input-file <path>]
route:       checkCase (POST /cases/check)
module:      objects-sdk
capability:  objects.read
actors:      person, service, agent:explore, agent:apply, app:client, app:hosted
step-up:     person: none; service: none; agent:explore: none; agent:apply: none; app:client: none; app:hosted: none
idempotent:  no
selector:    object, given as --selector <json>
input:       a JSON object, given as --input <json>, --input - (standard input) or --input-file <path>; {} when none is given
does:        Check a case and list its object and port violations.
input fields:
  caseId: required; string
selector keys:
  projectId: required; string
  ref: required; string
example input: {"caseId":"<caseId>"}
```

## openeng objects-sdk createObjectSet

```text
openeng objects-sdk createObjectSet --selector <json> [--input <json> | --input - | --input-file <path>] [--idempotency-key <key>]
route:       createObjectSet (POST /object-sets)
module:      objects-sdk
capability:  objects.createObjectSet
actors:      person, app:hosted
step-up:     person: none; app:hosted: none
idempotent:  yes; a key is minted and printed when --idempotency-key is absent
selector:    object, given as --selector <json>
input:       a JSON object, given as --input <json>, --input - (standard input) or --input-file <path>; {} when none is given
does:        Saves a named set of 1 to 200 object addresses in the caller's organisation. Concurrent retries with one key return the same saved set and revision.
input fields:
  name: required; string
  members: required; array of object
    each element has:
      objectId: required; string
      projectId: required; string
selector keys:
  projectId: required; string
  ref: required; string
example input: {"name":"Saved set","members":[{"objectId":"obj_aaaaaaaaaaaaaaaaaaaaaaaaaa","projectId":"<projectId>"}]}
```

## openeng objects-sdk listObjectSets

```text
openeng objects-sdk listObjectSets [--input <json> | --input - | --input-file <path>]
route:       listObjectSets (POST /object-sets/list)
module:      objects-sdk
capability:  objects.listObjectSets
actors:      person, app:hosted
step-up:     person: none; app:hosted: none
idempotent:  no
selector:    none
input:       a JSON object, given as --input <json>, --input - (standard input) or --input-file <path>; {} when none is given
does:        Lists the organisation's saved sets, newest update first, without members or counts.
input fields:
  none
example input: {}
```

## openeng objects-sdk readObjectSet

```text
openeng objects-sdk readObjectSet --selector <json> [--input <json> | --input - | --input-file <path>]
route:       readObjectSet (POST /object-sets/read)
module:      objects-sdk
capability:  objects.readObjectSet
actors:      person, app:hosted
step-up:     person: none; app:hosted: none
idempotent:  no
selector:    object, given as --selector <json>
input:       a JSON object, given as --input <json>, --input - (standard input) or --input-file <path>; {} when none is given
does:        Reads a saved set's visible objects on the selected branch or baseline, a count of missing visible members and one bit for members outside the caller's scope.
input fields:
  setId: required; string
selector keys:
  projectId: required; string
  ref: required; string
example input: {"setId":"ost_aaaaaaaaaaaaaaaaaaaaaaaaaa"}
```

## openeng objects-sdk updateObjectSet

```text
openeng objects-sdk updateObjectSet --selector <json> [--input <json> | --input - | --input-file <path>]
route:       updateObjectSet (POST /object-sets/update)
module:      objects-sdk
capability:  objects.updateObjectSet
actors:      person, app:hosted
step-up:     person: none; app:hosted: none
idempotent:  no
selector:    object, given as --selector <json>
input:       a JSON object, given as --input <json>, --input - (standard input) or --input-file <path>; {} when none is given
does:        Renames a saved set or replaces its readable members at the expected revision. Members outside the caller's scope remain. A success raises the revision by one.
input fields:
  setId: required; string
  revision: required; integer
  name: optional; string
  members: optional; array of object
    each element has:
      objectId: required; string
      projectId: required; string
selector keys:
  projectId: required; string
  ref: required; string
example input: {"setId":"ost_aaaaaaaaaaaaaaaaaaaaaaaaaa","revision":1,"name":"Renamed set"}
```

## openeng objects-sdk deleteObjectSet

```text
openeng objects-sdk deleteObjectSet [--input <json> | --input - | --input-file <path>]
route:       deleteObjectSet (POST /object-sets/delete)
module:      objects-sdk
capability:  objects.deleteObjectSet
actors:      person, app:hosted
step-up:     person: none; app:hosted: none
idempotent:  no
selector:    none
input:       a JSON object, given as --input <json>, --input - (standard input) or --input-file <path>; {} when none is given
does:        Deletes a saved set and every member at the expected revision.
input fields:
  setId: required; string
  revision: required; integer
example input: {"setId":"ost_aaaaaaaaaaaaaaaaaaaaaaaaaa","revision":1}
```

## openeng objects-sdk completeAttachmentUpload

```text
openeng objects-sdk completeAttachmentUpload --selector <json> [--input <json> | --input - | --input-file <path>]
route:       completeAttachmentUpload (POST /attachments/upload/complete)
module:      objects-sdk
capability:  objects.write
actors:      person, service, app:client, agent:apply
step-up:     person: none; service: none; app:client: none; agent:apply: none
idempotent:  no
selector:    existingObject, given as --selector <json>
input:       a JSON object, given as --input <json>, --input - (standard input) or --input-file <path>; {} when none is given
does:        Finishes an upload the caller opened: checks the stored file and stages it for the caller, then answers its descriptor. The object's guard is asked again. A repeated call for the same upload answers the same descriptor. Admits person, service, app:client and agent:apply actors.
input fields:
  uploadId: required; string
selector keys:
  projectId: required; string
  ref: required; string
  objectId: required; string
example input: {"uploadId":"<uploadId>"}
```

## openeng objects-sdk readAttachment

```text
openeng objects-sdk readAttachment --selector <json> [--input <json> | --input - | --input-file <path>]
route:       readAttachment (POST /attachments/read)
module:      objects-sdk
capability:  objects.read
actors:      person, service, app:client, agent:explore, agent:apply
step-up:     person: none; service: none; app:client: none; agent:explore: none; agent:apply: none
idempotent:  no
selector:    object, given as --selector <json>
input:       a JSON object, given as --input <json>, --input - (standard input) or --input-file <path>; {} when none is given
does:        Downloads the attachment held by an object's property at its stored type version. A file within the download threshold is streamed in the answer; a larger file is answered with a redirect whose Location is a short-lived link to the stored file. Admits person, service, app:client, agent:explore and agent:apply actors.
input fields:
  objectId: required; string
  property: required; string
selector keys:
  projectId: required; string
  ref: required; string
example input: {"objectId":"<objectId>","property":"<property>"}
```

## openeng objects-sdk readObject

```text
openeng objects-sdk readObject --selector <json> [--input <json> | --input - | --input-file <path>]
route:       readObject (POST /objects/read)
module:      objects-sdk
capability:  objects.read
actors:      person, service, agent:explore, agent:apply, app:client, app:hosted
step-up:     person: none; service: none; agent:explore: none; agent:apply: none; app:client: none; app:hosted: none
idempotent:  no
selector:    object, given as --selector <json>
input:       a JSON object, given as --input <json>, --input - (standard input) or --input-file <path>; {} when none is given
does:        Reads one object at a branch or baseline. bodyCheck is present exactly when the body holds a block of a checked format; it is absent otherwise.
input fields:
  objectId: required; string
selector keys:
  projectId: required; string
  ref: required; string
example input: {"objectId":"<objectId>"}
```

## openeng objects-sdk queryObjects

```text
openeng objects-sdk queryObjects --selector <json> [--input <json> | --input - | --input-file <path>]
route:       queryObjects (POST /objects/query)
module:      objects-sdk
capability:  objects.query
actors:      person, service, agent:explore, agent:apply, agent:types, app:client, app:hosted
step-up:     person: none; service: none; agent:explore: none; agent:apply: none; agent:types: none; app:client: none; app:hosted: none
idempotent:  no
selector:    object, given as --selector <json>
input:       a JSON object, given as --input <json>, --input - (standard input) or --input-file <path>; {} when none is given
does:        Runs a filtered, ordered, paged query over the objects of a branch or baseline, or pages the union, intersection or difference of two plain object-set descriptions on that ref. A top-level type filter {kind:"type",op:"in",values:["part","system"]} selects any of 1 to 100 published type keys and may be combined with a text filter; continuation binds to the entire selection. Without input.projects, it reads every project the caller can read on the selected branch or baseline; selector.projectId does not narrow the set. To limit it to one project, include "projects":["<projectId>"] in input.
input fields:
  kind objects: typeKey (string | null, required), projects (array of string, optional), filters (array of object, optional), steps (array of object, optional), sort (kinds: property | identity, optional), limit (integer, required), continuation (string | null, required)
    each element is one of these shapes:
      shape:
        kind: required; "property"
        property: required; string
        op: required; "="
        value: required; string | number | boolean
      shape:
        kind: required; "property"
        property: required; string
        op: required; ">" | ">=" | "<" | "<="
        value: required; string | number
      shape:
        kind: required; "property"
        property: required; string
        op: required; "in"
        values: required; array of string | number | boolean
      shape:
        kind: required; "identity"
        op: required; "in"
        values: required; array of string
      shape:
        kind: required; "edge"
        edgeTypeKey: required; string
        direction: required; "outgoing" | "incoming" | "to-children" | "to-parent"
        has: required; boolean
      shape:
        kind: required; "or"
        filters: required; array of object
          each element is one of these shapes:
            shape:
              kind: required; "property"
              property: required; string
              op: required; "="
              value: required; string | number | boolean
            shape:
              kind: required; "property"
              property: required; string
              op: required; ">" | ">=" | "<" | "<="
              value: required; string | number
            shape:
              kind: required; "property"
              property: required; string
              op: required; "in"
              values: required; array of string | number | boolean
            shape:
              kind: required; "identity"
              op: required; "in"
              values: required; array of string
            shape:
              kind: required; "edge"
              edgeTypeKey: required; string
              direction: required; "outgoing" | "incoming" | "to-children" | "to-parent"
              has: required; boolean
      shape:
        kind: required; "text"
        term: required; string
        properties: optional; array of string
      shape:
        kind: required; "type"
        op: required; "in"
        values: required; array of string
    each element has:
      edgeTypeKey: required; string
      direction: required; "outgoing" | "incoming" | "to-children" | "to-parent"
      targetTypeKey: required; string
      filters: optional; array of object
        each element is one of these shapes:
          shape:
            kind: required; "property"
            property: required; string
            op: required; "="
            value: required; string | number | boolean
          shape:
            kind: required; "property"
            property: required; string
            op: required; ">" | ">=" | "<" | "<="
            value: required; string | number
          shape:
            kind: required; "property"
            property: required; string
            op: required; "in"
            values: required; array of string | number | boolean
          shape:
            kind: required; "identity"
            op: required; "in"
            values: required; array of string
          shape:
            kind: required; "edge"
            edgeTypeKey: required; string
            direction: required; "outgoing" | "incoming" | "to-children" | "to-parent"
            has: required; boolean
          shape:
            kind: required; "or"
            filters: required; array of object
              each element is one of these shapes:
                shape:
                  kind: required; "property"
                  property: required; string
                  op: required; "="
                  value: required; string | number | boolean
                shape:
                  kind: required; "property"
                  property: required; string
                  op: required; ">" | ">=" | "<" | "<="
                  value: required; string | number
                shape:
                  kind: required; "property"
                  property: required; string
                  op: required; "in"
                  values: required; array of string | number | boolean
                shape:
                  kind: required; "identity"
                  op: required; "in"
                  values: required; array of string
                shape:
                  kind: required; "edge"
                  edgeTypeKey: required; string
                  direction: required; "outgoing" | "incoming" | "to-children" | "to-parent"
                  has: required; boolean
          shape:
            kind: required; "text"
            term: required; string
            properties: optional; array of string
          shape:
            kind: required; "type"
            op: required; "in"
            values: required; array of string
    the object is one of these shapes:
      kind property:
        property: required; string
        direction: required; "asc" | "desc"
      kind identity:
        direction: required; "asc" | "desc"
  kind set: op ("union" | "intersection" | "difference", required), left (object, required), right (object, required), limit (integer, required), continuation (string | null, required)
    the object has:
      kind: required; "objects"
      typeKey: required; string | null
      projects: optional; array of string
      filters: optional; array of object
        each element is one of these shapes:
          shape:
            kind: required; "property"
            property: required; string
            op: required; "="
            value: required; string | number | boolean
          shape:
            kind: required; "property"
            property: required; string
            op: required; ">" | ">=" | "<" | "<="
            value: required; string | number
          shape:
            kind: required; "property"
            property: required; string
            op: required; "in"
            values: required; array of string | number | boolean
          shape:
            kind: required; "identity"
            op: required; "in"
            values: required; array of string
          shape:
            kind: required; "edge"
            edgeTypeKey: required; string
            direction: required; "outgoing" | "incoming" | "to-children" | "to-parent"
            has: required; boolean
          shape:
            kind: required; "or"
            filters: required; array of object
              each element is one of these shapes:
                shape:
                  kind: required; "property"
                  property: required; string
                  op: required; "="
                  value: required; string | number | boolean
                shape:
                  kind: required; "property"
                  property: required; string
                  op: required; ">" | ">=" | "<" | "<="
                  value: required; string | number
                shape:
                  kind: required; "property"
                  property: required; string
                  op: required; "in"
                  values: required; array of string | number | boolean
                shape:
                  kind: required; "identity"
                  op: required; "in"
                  values: required; array of string
                shape:
                  kind: required; "edge"
                  edgeTypeKey: required; string
                  direction: required; "outgoing" | "incoming" | "to-children" | "to-parent"
                  has: required; boolean
          shape:
            kind: required; "text"
            term: required; string
            properties: optional; array of string
          shape:
            kind: required; "type"
            op: required; "in"
            values: required; array of string
      steps: optional; array of object
        each element has:
          edgeTypeKey: required; string
          direction: required; "outgoing" | "incoming" | "to-children" | "to-parent"
          targetTypeKey: required; string
          filters: optional; array of object
            each element is one of these shapes:
              shape:
                kind: required; "property"
                property: required; string
                op: required; "="
                value: required; string | number | boolean
              shape:
                kind: required; "property"
                property: required; string
                op: required; ">" | ">=" | "<" | "<="
                value: required; string | number
              shape:
                kind: required; "property"
                property: required; string
                op: required; "in"
                values: required; array of string | number | boolean
              shape:
                kind: required; "identity"
                op: required; "in"
                values: required; array of string
              shape:
                kind: required; "edge"
                edgeTypeKey: required; string
                direction: required; "outgoing" | "incoming" | "to-children" | "to-parent"
                has: required; boolean
              shape:
                kind: required; "or"
                filters: required; array of object
                  each element is one of these shapes:
                    shape:
                      kind: required; "property"
                      property: required; string
                      op: required; "="
                      value: required; string | number | boolean
                    shape:
                      kind: required; "property"
                      property: required; string
                      op: required; ">" | ">=" | "<" | "<="
                      value: required; string | number
                    shape:
                      kind: required; "property"
                      property: required; string
                      op: required; "in"
                      values: required; array of string | number | boolean
                    shape:
                      kind: required; "identity"
                      op: required; "in"
                      values: required; array of string
                    shape:
                      kind: required; "edge"
                      edgeTypeKey: required; string
                      direction: required; "outgoing" | "incoming" | "to-children" | "to-parent"
                      has: required; boolean
              shape:
                kind: required; "text"
                term: required; string
                properties: optional; array of string
              shape:
                kind: required; "type"
                op: required; "in"
                values: required; array of string
      sort: optional; kinds: property | identity
        the object is one of these shapes:
          kind property:
            property: required; string
            direction: required; "asc" | "desc"
          kind identity:
            direction: required; "asc" | "desc"
    the object has:
      kind: required; "objects"
      typeKey: required; string | null
      projects: optional; array of string
      filters: optional; array of object
        each element is one of these shapes:
          shape:
            kind: required; "property"
            property: required; string
            op: required; "="
            value: required; string | number | boolean
          shape:
            kind: required; "property"
            property: required; string
            op: required; ">" | ">=" | "<" | "<="
            value: required; string | number
          shape:
            kind: required; "property"
            property: required; string
            op: required; "in"
            values: required; array of string | number | boolean
          shape:
            kind: required; "identity"
            op: required; "in"
            values: required; array of string
          shape:
            kind: required; "edge"
            edgeTypeKey: required; string
            direction: required; "outgoing" | "incoming" | "to-children" | "to-parent"
            has: required; boolean
          shape:
            kind: required; "or"
            filters: required; array of object
              each element is one of these shapes:
                shape:
                  kind: required; "property"
                  property: required; string
                  op: required; "="
                  value: required; string | number | boolean
                shape:
                  kind: required; "property"
                  property: required; string
                  op: required; ">" | ">=" | "<" | "<="
                  value: required; string | number
                shape:
                  kind: required; "property"
                  property: required; string
                  op: required; "in"
                  values: required; array of string | number | boolean
                shape:
                  kind: required; "identity"
                  op: required; "in"
                  values: required; array of string
                shape:
                  kind: required; "edge"
                  edgeTypeKey: required; string
                  direction: required; "outgoing" | "incoming" | "to-children" | "to-parent"
                  has: required; boolean
          shape:
            kind: required; "text"
            term: required; string
            properties: optional; array of string
          shape:
            kind: required; "type"
            op: required; "in"
            values: required; array of string
      steps: optional; array of object
        each element has:
          edgeTypeKey: required; string
          direction: required; "outgoing" | "incoming" | "to-children" | "to-parent"
          targetTypeKey: required; string
          filters: optional; array of object
            each element is one of these shapes:
              shape:
                kind: required; "property"
                property: required; string
                op: required; "="
                value: required; string | number | boolean
              shape:
                kind: required; "property"
                property: required; string
                op: required; ">" | ">=" | "<" | "<="
                value: required; string | number
              shape:
                kind: required; "property"
                property: required; string
                op: required; "in"
                values: required; array of string | number | boolean
              shape:
                kind: required; "identity"
                op: required; "in"
                values: required; array of string
              shape:
                kind: required; "edge"
                edgeTypeKey: required; string
                direction: required; "outgoing" | "incoming" | "to-children" | "to-parent"
                has: required; boolean
              shape:
                kind: required; "or"
                filters: required; array of object
                  each element is one of these shapes:
                    shape:
                      kind: required; "property"
                      property: required; string
                      op: required; "="
                      value: required; string | number | boolean
                    shape:
                      kind: required; "property"
                      property: required; string
                      op: required; ">" | ">=" | "<" | "<="
                      value: required; string | number
                    shape:
                      kind: required; "property"
                      property: required; string
                      op: required; "in"
                      values: required; array of string | number | boolean
                    shape:
                      kind: required; "identity"
                      op: required; "in"
                      values: required; array of string
                    shape:
                      kind: required; "edge"
                      edgeTypeKey: required; string
                      direction: required; "outgoing" | "incoming" | "to-children" | "to-parent"
                      has: required; boolean
              shape:
                kind: required; "text"
                term: required; string
                properties: optional; array of string
              shape:
                kind: required; "type"
                op: required; "in"
                values: required; array of string
      sort: optional; kinds: property | identity
        the object is one of these shapes:
          kind property:
            property: required; string
            direction: required; "asc" | "desc"
          kind identity:
            direction: required; "asc" | "desc"
selector keys:
  projectId: required; string
  ref: required; string
example input: {"kind":"objects","typeKey":null,"limit":1,"continuation":null}
```

## openeng objects-sdk queryRows

```text
openeng objects-sdk queryRows --selector <json> [--input <json> | --input - | --input-file <path>]
route:       queryRows (POST /objects/rows)
module:      objects-sdk
capability:  objects.query
actors:      person, service, agent:explore, agent:apply, agent:types, app:client, app:hosted
step-up:     person: none; service: none; agent:explore: none; agent:apply: none; agent:types: none; app:client: none; app:hosted: none
idempotent:  no
selector:    object, given as --selector <json>
input:       a JSON object, given as --input <json>, --input - (standard input) or --input-file <path>; {} when none is given
does:        Answers rows of named cells over a start set and up to three hops, or groups with counts, sums, minimums, maximums and weighted sums. Each hop names edgeTypeKeys as any or 1 through 8 names; optional targetTypeKeys also takes 1 through 8 names. Empty lists are malformed-query; more than 8 names is over-bound. A final hop may repeat to depth 1 through 3, without filters or targetTypeKeys, and answers groups only; a depth above 3 is over-bound, while 0, non-integers and non-numbers are malformed-query. A parent group key may name a repeat alias and uses its own edgeTypeKeys and optional parents filter. Each parent edge contributes a membership; a child with no matching parent forms no group. Parent keys carry address and readable, including readable: false for unreadable parents; hidden reached objects are counted per level including project, never keyed. After a successful walk, parent reads batch 100 children, at most 60 statements per key or 120 for two keys; an overflowing walk runs none. A weighted sum requires a final repeat hop and names 1 through 8 contributing types in over, an edge weight property and per-path or distinct multiplicity; the start never contributes. On an ancestor return, count and per-path sum or weightedSum refuse cycle-in-reach naming the readable object; distinct measures, min and max admit cycles. Repeat answers carry deeper, unvalued and unweighted; missing values and weights are counted separately. Every measure over a path names ends: visible or all. With any all measure, hidden counts appear per hop, on each group when every key names start, and on the answer otherwise; values still measure readable objects. Hidden counts deduplicate far identities including project per hop. countDistinct cannot be combined with sum, min or max. A property group key cannot mix numeric and nonnumeric declarations across its alias types. Distinct-count answers ordered by a measure or filtered by having, and hidden start-group merges, require complete reads: truncation refuses over-bound instead of returning a bounded prefix. Without input.start.projects, it reads every project the caller can read on the selected ref; selector.projectId does not narrow the set. To limit it to some projects, include "projects":["<projectId>"] in input.start.
input fields:
  kind: required; "graph-query"
  start: required; object
    the object has:
      typeKey: required; string | null
      projects: optional; array of string
      filters: optional; array of object
        each element is one of these shapes:
          shape:
            kind: required; "property"
            property: required; string
            op: required; "="
            value: required; string | number | boolean
          shape:
            kind: required; "property"
            property: required; string
            op: required; ">" | ">=" | "<" | "<="
            value: required; string | number
          shape:
            kind: required; "property"
            property: required; string
            op: required; "in"
            values: required; array of string | number | boolean
          shape:
            kind: required; "identity"
            op: required; "in"
            values: required; array of string
          shape:
            kind: required; "edge"
            edgeTypeKey: required; string
            direction: required; "outgoing" | "incoming" | "to-children" | "to-parent"
            has: required; boolean
          shape:
            kind: required; "or"
            filters: required; array of object
              each element is one of these shapes:
                shape:
                  kind: required; "property"
                  property: required; string
                  op: required; "="
                  value: required; string | number | boolean
                shape:
                  kind: required; "property"
                  property: required; string
                  op: required; ">" | ">=" | "<" | "<="
                  value: required; string | number
                shape:
                  kind: required; "property"
                  property: required; string
                  op: required; "in"
                  values: required; array of string | number | boolean
                shape:
                  kind: required; "identity"
                  op: required; "in"
                  values: required; array of string
                shape:
                  kind: required; "edge"
                  edgeTypeKey: required; string
                  direction: required; "outgoing" | "incoming" | "to-children" | "to-parent"
                  has: required; boolean
          shape:
            kind: required; "text"
            term: required; string
            properties: optional; array of string
          shape:
            kind: required; "type"
            op: required; "in"
            values: required; array of string
  path: optional; array of object
    each element has:
      alias: required; string
      edgeTypeKeys: required; "any" | array of string
      direction: required; "outgoing" | "incoming" | "to-children" | "to-parent"
      targetTypeKeys: optional; array of string
      filters: optional; array of object
        each element is one of these shapes:
          shape:
            kind: required; "property"
            property: required; string
            op: required; "="
            value: required; string | number | boolean
          shape:
            kind: required; "property"
            property: required; string
            op: required; ">" | ">=" | "<" | "<="
            value: required; string | number
          shape:
            kind: required; "property"
            property: required; string
            op: required; "in"
            values: required; array of string | number | boolean
          shape:
            kind: required; "identity"
            op: required; "in"
            values: required; array of string
          shape:
            kind: required; "edge"
            edgeTypeKey: required; string
            direction: required; "outgoing" | "incoming" | "to-children" | "to-parent"
            has: required; boolean
          shape:
            kind: required; "or"
            filters: required; array of object
              each element is one of these shapes:
                shape:
                  kind: required; "property"
                  property: required; string
                  op: required; "="
                  value: required; string | number | boolean
                shape:
                  kind: required; "property"
                  property: required; string
                  op: required; ">" | ">=" | "<" | "<="
                  value: required; string | number
                shape:
                  kind: required; "property"
                  property: required; string
                  op: required; "in"
                  values: required; array of string | number | boolean
                shape:
                  kind: required; "identity"
                  op: required; "in"
                  values: required; array of string
                shape:
                  kind: required; "edge"
                  edgeTypeKey: required; string
                  direction: required; "outgoing" | "incoming" | "to-children" | "to-parent"
                  has: required; boolean
          shape:
            kind: required; "text"
            term: required; string
            properties: optional; array of string
          shape:
            kind: required; "type"
            op: required; "in"
            values: required; array of string
      repeat: optional; object
        the object has:
          depth: required; integer
  answer: required; kinds: rows | groups
    kind rows: columns (array of object, required), order (object, optional), limit (integer, required), continuation (string | null, required)
      each element is one of these shapes:
        shape:
          kind: required; "identity" | "typeKey"
          alias: required; string
        shape:
          kind: required; "property"
          alias: required; string
          property: required; string
        shape:
          kind: required; "edge"
          alias: required; string
          field: required; "identity" | "typeKey"
        shape:
          kind: required; "edge-property"
          alias: required; string
          property: required; string
      the object has:
        alias: required; string
        property: required; string
        direction: required; "asc" | "desc"
    kind groups: keys (array of object, required), measures (array of object, required), having (array of object, optional), order (object, optional), limit (integer, optional)
      each element is one of these shapes:
        shape:
          kind: required; "identity" | "typeKey"
          alias: required; string
        shape:
          kind: required; "property"
          alias: required; string
          property: required; string
        shape:
          kind: required; "parent"
          alias: required; string
          edgeTypeKeys: required; array of string
          parents: optional; array of object
            each element has:
              objectId: required; string
              projectId: required; string
      each element is one of these shapes:
        shape:
          kind: required; "count"
          over: optional; array of string
          ends: optional; "visible" | "all"
        shape:
          kind: required; "countDistinct"
          alias: required; string
          over: optional; array of string
          ends: optional; "visible" | "all"
        shape:
          kind: required; "sum"
          alias: required; string
          property: required; string
          over: optional; array of string
          multiplicity: optional; "per-path" | "distinct"
          ends: optional; "visible" | "all"
        shape:
          kind: required; "min" | "max"
          alias: required; string
          property: required; string
          over: optional; array of string
          ends: optional; "visible" | "all"
        shape:
          kind: required; "weightedSum"
          alias: required; string
          property: optional; string
          weight: required; string
          over: required; array of string
          multiplicity: required; "per-path" | "distinct"
          ends: required; "visible" | "all"
      each element has:
        measure: required; integer
        op: required; "=" | ">" | ">=" | "<" | "<="
        value: required; number
      the object has:
        by: required; "key" | "measure"
        index: required; integer
        direction: required; "asc" | "desc"
selector keys:
  projectId: required; string
  ref: required; string
example input: {"kind":"graph-query","start":{"typeKey":null},"answer":{"kind":"rows","columns":[],"limit":1,"continuation":null}}
```

## openeng objects-sdk aggregateObjects

```text
openeng objects-sdk aggregateObjects --selector <json> [--input <json> | --input - | --input-file <path>]
route:       aggregateObjects (POST /objects/aggregate)
module:      objects-sdk
capability:  objects.aggregate
actors:      person, service, app:client, app:hosted
step-up:     person: none; service: none; app:client: none; app:hosted: none
idempotent:  no
selector:    object, given as --selector <json>
input:       a JSON object, given as --input <json>, --input - (standard input) or --input-file <path>; {} when none is given
does:        Deprecated: use queryRows for graph aggregates. Runs an aggregate over the objects of a branch or baseline: a count, or a minimum, maximum, sum or average of one numeric property, answered as one value (an average also carries its count), or, with groupBy, a count, sum or average grouped by type or by a property's value, or a count grouped by structural parent, answered as groups. Without input.projects, it reads every project the caller can read on the selected branch or baseline; selector.projectId does not narrow the set. To limit it to one project, include "projects":["<projectId>"] in input.
input fields:
  kind: required; "aggregate"
  typeKey: required; string | null
  projects: optional; array of string
  filters: optional; array of object
    each element is one of these shapes:
      shape:
        kind: required; "property"
        property: required; string
        op: required; "="
        value: required; string | number | boolean
      shape:
        kind: required; "property"
        property: required; string
        op: required; ">" | ">=" | "<" | "<="
        value: required; string | number
      shape:
        kind: required; "property"
        property: required; string
        op: required; "in"
        values: required; array of string | number | boolean
      shape:
        kind: required; "identity"
        op: required; "in"
        values: required; array of string
      shape:
        kind: required; "edge"
        edgeTypeKey: required; string
        direction: required; "outgoing" | "incoming" | "to-children" | "to-parent"
        has: required; boolean
      shape:
        kind: required; "or"
        filters: required; array of object
          each element is one of these shapes:
            shape:
              kind: required; "property"
              property: required; string
              op: required; "="
              value: required; string | number | boolean
            shape:
              kind: required; "property"
              property: required; string
              op: required; ">" | ">=" | "<" | "<="
              value: required; string | number
            shape:
              kind: required; "property"
              property: required; string
              op: required; "in"
              values: required; array of string | number | boolean
            shape:
              kind: required; "identity"
              op: required; "in"
              values: required; array of string
            shape:
              kind: required; "edge"
              edgeTypeKey: required; string
              direction: required; "outgoing" | "incoming" | "to-children" | "to-parent"
              has: required; boolean
      shape:
        kind: required; "text"
        term: required; string
        properties: optional; array of string
      shape:
        kind: required; "type"
        op: required; "in"
        values: required; array of string
  steps: optional; array of object
    each element has:
      edgeTypeKey: required; string
      direction: required; "outgoing" | "incoming" | "to-children" | "to-parent"
      targetTypeKey: required; string
      filters: optional; array of object
        each element is one of these shapes:
          shape:
            kind: required; "property"
            property: required; string
            op: required; "="
            value: required; string | number | boolean
          shape:
            kind: required; "property"
            property: required; string
            op: required; ">" | ">=" | "<" | "<="
            value: required; string | number
          shape:
            kind: required; "property"
            property: required; string
            op: required; "in"
            values: required; array of string | number | boolean
          shape:
            kind: required; "identity"
            op: required; "in"
            values: required; array of string
          shape:
            kind: required; "edge"
            edgeTypeKey: required; string
            direction: required; "outgoing" | "incoming" | "to-children" | "to-parent"
            has: required; boolean
          shape:
            kind: required; "or"
            filters: required; array of object
              each element is one of these shapes:
                shape:
                  kind: required; "property"
                  property: required; string
                  op: required; "="
                  value: required; string | number | boolean
                shape:
                  kind: required; "property"
                  property: required; string
                  op: required; ">" | ">=" | "<" | "<="
                  value: required; string | number
                shape:
                  kind: required; "property"
                  property: required; string
                  op: required; "in"
                  values: required; array of string | number | boolean
                shape:
                  kind: required; "identity"
                  op: required; "in"
                  values: required; array of string
                shape:
                  kind: required; "edge"
                  edgeTypeKey: required; string
                  direction: required; "outgoing" | "incoming" | "to-children" | "to-parent"
                  has: required; boolean
          shape:
            kind: required; "text"
            term: required; string
            properties: optional; array of string
          shape:
            kind: required; "type"
            op: required; "in"
            values: required; array of string
  operation: required; "count" | "min" | "max" | "sum" | "average"
  property: optional; string
  groupBy: optional; kinds: type | property | parent
    kind type: no further fields
    kind property: property (string, required)
    kind parent: edgeTypeKeys (array of string, required), multiplicity ("per-path" | "distinct", required), ends ("visible" | "all", required), parents (array of object, optional)
      each element has:
        objectId: required; string
        projectId: required; string
selector keys:
  projectId: required; string
  ref: required; string
example input: {"kind":"aggregate","typeKey":null,"operation":"count"}
```

## openeng objects-sdk discoverVerbs

```text
openeng objects-sdk discoverVerbs --selector <json> [--input <json> | --input - | --input-file <path>]
route:       discoverVerbs (POST /objects/verbs)
module:      objects-sdk
capability:  objects.read
actors:      person, service, agent:explore, agent:apply, app:client, app:hosted
step-up:     person: none; service: none; agent:explore: none; agent:apply: none; app:client: none; app:hosted: none
idempotent:  no
selector:    object, given as --selector <json>
input:       a JSON object, given as --input <json>, --input - (standard input) or --input-file <path>; {} when none is given
does:        Lists the verbs an object may be given.
input fields:
  objectId: required; string
selector keys:
  projectId: required; string
  ref: required; string
example input: {"objectId":"<objectId>"}
```

## openeng objects-sdk readHistory

```text
openeng objects-sdk readHistory --selector <json> [--input <json> | --input - | --input-file <path>]
route:       readHistory (POST /objects/history)
module:      objects-sdk
capability:  objects.history
actors:      person, service, agent:explore, agent:apply, app:client, app:hosted
step-up:     person: none; service: none; agent:explore: none; agent:apply: none; app:client: none; app:hosted: none
idempotent:  no
selector:    object, given as --selector <json>
input:       a JSON object, given as --input <json>, --input - (standard input) or --input-file <path>; {} when none is given
does:        Reads one object's history of changes. Each bodyChanges entry carries lines exactly when either compared side is not markdown.
input fields:
  objectId: required; string
  limit: required; integer
  continuation: required; string | null
selector keys:
  projectId: required; string
  ref: required; string
example input: {"objectId":"<objectId>","limit":1,"continuation":null}
```

## openeng objects-sdk mutate

```text
openeng objects-sdk mutate --selector <json> [--input <json> | --input - | --input-file <path>] [--idempotency-key <key>]
route:       mutate (POST /mutations)
module:      objects-sdk
capability:  objects.write
actors:      person, service, agent:apply, app:client, app:hosted
step-up:     person: none; service: none; agent:apply: none; app:client: none; app:hosted: none
idempotent:  yes; a key is minted and printed when --idempotency-key is absent
selector:    object, given as --selector <json>
input:       a JSON object, given as --input <json>, --input - (standard input) or --input-file <path>; {} when none is given
does:        Creates, changes or deletes an object on the selected writable branch. A protected refusal means the change needs a branch and a merge. For a property update, `from` is the value the caller expects now; a mismatch is refused as `conflict`, and `{"kind": "absent"}` clears the property; a present state is `{"kind": "value", "value": ...}`. The reason is required and is written first in the save's commit message, above the platform's lines, exactly as sent; it is refused as invalid-request when it is missing, empty after trimming white space, holds NUL or holds a lone UTF-16 surrogate.
input fields:
  correlation: optional; minted when absent; kinds: mint | sent
    kind mint: no further fields
    kind sent: correlationId (string, required)
  operation: required; kinds: create-object | update-object | delete-object | create-edge | update-edge | delete-edge
    kind create-object: typeKey (string, required), typeVersion (integer, required), properties (map of any, required)
    kind update-object: objectId (string, required), typeVersion (integer, required), changes (map of object, required)
      each value has:
        from: required; kinds: absent | value
          the object is one of these shapes:
            kind absent:
            kind value:
              value: required; any
        to: required; kinds: absent | value
          the object is one of these shapes:
            kind absent:
            kind value:
              value: required; any
    kind delete-object: objectId (string, required)
    kind create-edge: typeKey (string, required), typeVersion (integer, required), sourceObjectId (string, required), targetObjectId (string, required), properties (map of any, required)
    kind update-edge: edgeId (string, required), typeVersion (integer, required), changes (map of object, required)
      each value has:
        from: required; kinds: absent | value
          the object is one of these shapes:
            kind absent:
            kind value:
              value: required; any
        to: required; kinds: absent | value
          the object is one of these shapes:
            kind absent:
            kind value:
              value: required; any
    kind delete-edge: edgeId (string, required)
  reason: required; string
selector keys:
  projectId: required; string
  ref: required; string
example input: {"operation":{"kind":"create-object","typeKey":"<typeKey>","typeVersion":1,"properties":{}},"reason":"<reason>"}
```

## openeng objects-sdk mutateBatch

```text
openeng objects-sdk mutateBatch --selector <json> [--input <json> | --input - | --input-file <path>] [--idempotency-key <key>]
route:       mutateBatch (POST /mutations/batch)
module:      objects-sdk
capability:  objects.write
actors:      person, service, agent:apply, app:client, app:hosted
step-up:     person: none; service: none; agent:apply: none; app:client: none; app:hosted: none
idempotent:  yes; a key is minted and printed when --idempotency-key is absent
selector:    object, given as --selector <json>
input:       a JSON object, given as --input <json>, --input - (standard input) or --input-file <path>; {} when none is given
does:        Applies a list of object and edge operations in one save and commit, with one audit record. A batch with no change makes no commit; a refused batch writes no engineering data, but its refusal is audited. An edge may name an object created earlier in the same batch. A batch with more operations than the maximum is refused as invalid-request naming input.operations, before any write. For a property update, `from` is the value the caller expects now; a mismatch is refused as `conflict`, and `{"kind": "absent"}` clears the property; a present state is `{"kind": "value", "value": ...}`. The reason is required and is written first in the save's commit message, above the platform's lines, exactly as sent; it is refused as invalid-request when it is missing, empty after trimming white space, holds NUL or holds a lone UTF-16 surrogate.
input fields:
  correlation: optional; minted when absent; kinds: mint | sent
    kind mint: no further fields
    kind sent: correlationId (string, required)
  operations: required; array of kinds: create-object | update-object | delete-object | create-edge | update-edge | delete-edge
    each element is one of these shapes:
      kind create-object:
        typeKey: required; string
        typeVersion: required; integer
        properties: required; map of any
      kind update-object:
        objectId: required; string
        typeVersion: required; integer
        changes: required; map of object
          each value has:
            from: required; kinds: absent | value
              the object is one of these shapes:
                kind absent:
                kind value:
                  value: required; any
            to: required; kinds: absent | value
              the object is one of these shapes:
                kind absent:
                kind value:
                  value: required; any
      kind delete-object:
        objectId: required; string
      kind create-edge:
        typeKey: required; string
        typeVersion: required; integer
        source: required; kinds: existing | created
          the object is one of these shapes:
            kind existing:
              objectId: required; string
            kind created:
              operation: required; integer
        target: required; kinds: existing | created
          the object is one of these shapes:
            kind existing:
              objectId: required; string
            kind created:
              operation: required; integer
        properties: required; map of any
      kind update-edge:
        edgeId: required; string
        typeVersion: required; integer
        changes: required; map of object
          each value has:
            from: required; kinds: absent | value
              the object is one of these shapes:
                kind absent:
                kind value:
                  value: required; any
            to: required; kinds: absent | value
              the object is one of these shapes:
                kind absent:
                kind value:
                  value: required; any
      kind delete-edge:
        edgeId: required; string
  reason: required; string
selector keys:
  projectId: required; string
  ref: required; string
example input: {"operations":[],"reason":"<reason>"}
```

## openeng objects-sdk previewDelete

```text
openeng objects-sdk previewDelete --selector <json> [--input <json> | --input - | --input-file <path>]
route:       previewDelete (POST /objects/delete-preview)
module:      objects-sdk
capability:  objects.write
actors:      person, service, agent:apply, app:client, app:hosted
step-up:     person: none; service: none; agent:apply: none; app:client: none; app:hosted: none
idempotent:  no
selector:    object, given as --selector <json>
input:       a JSON object, given as --input <json>, --input - (standard input) or --input-file <path>; {} when none is given
does:        Previews deleting an object: the links the delete would remove, or the refusal it would meet. Changes nothing.
input fields:
  objectId: required; string
selector keys:
  projectId: required; string
  ref: required; string
example input: {"objectId":"<objectId>"}
```

## openeng objects-sdk recover

```text
openeng objects-sdk recover --selector <json> [--input <json> | --input - | --input-file <path>]
route:       recover (POST /recoveries)
module:      objects-sdk
capability:  objects.recovery
actors:      person, service, app:client, app:hosted
step-up:     person: none; service: none; app:client: none; app:hosted: none
idempotent:  no
selector:    object, given as --selector <json>
input:       a JSON object, given as --input <json>, --input - (standard input) or --input-file <path>; {} when none is given
does:        Finds what an interrupted mutation did and finishes its record.
input fields:
  correlationId: required; string
selector keys:
  projectId: required; string
  ref: required; string
example input: {"correlationId":"<correlationId>"}
```

## openeng objects-sdk executeVerb

```text
openeng objects-sdk executeVerb --selector <json> [--input <json> | --input - | --input-file <path>] [--idempotency-key <key>]
route:       executeVerb (POST /verb-executions)
module:      objects-sdk
capability:  objects.verb
actors:      person, service, agent:apply, app:client, app:hosted
step-up:     person: none; service: none; agent:apply: none; app:client: none; app:hosted: none
idempotent:  yes; a key is minted and printed when --idempotency-key is absent
selector:    object, given as --selector <json>
input:       a JSON object, given as --input <json>, --input - (standard input) or --input-file <path>; {} when none is given
does:        Runs a verb on an object and records its result. The reason is required and is written first in the save's commit message, above the platform's lines, exactly as sent; it is refused as invalid-request when it is missing, empty after trimming white space, holds NUL or holds a lone UTF-16 surrogate.
input fields:
  correlation: optional; minted when absent; kinds: mint | sent
    kind mint: no further fields
    kind sent: correlationId (string, required)
  verb: required; object
    the object has:
      typeKey: required; string
      typeVersion: required; integer
  subjectIds: required; array of string
  input: required; any
  reason: required; string
selector keys:
  projectId: required; string
  ref: required; string
example input: {"verb":{"typeKey":"<typeKey>","typeVersion":1},"subjectIds":[],"input":null,"reason":"<reason>"}
```

## openeng objects-sdk listProjects

```text
openeng objects-sdk listProjects [--input <json> | --input - | --input-file <path>]
route:       listProjects (POST /projects)
module:      objects-sdk
capability:  objects.projects
actors:      person, service, app:client, app:hosted
step-up:     person: none; service: none; app:client: none; app:hosted: none
idempotent:  no
selector:    none
input:       a JSON object, given as --input <json>, --input - (standard input) or --input-file <path>; {} when none is given
does:        Lists every project the caller may read in the organisation the session is attached to, with its namespace.
input fields:
  none
example input: {}
```

## openeng objects-sdk listRefs

```text
openeng objects-sdk listRefs --selector <json> [--input <json> | --input - | --input-file <path>]
route:       listRefs (POST /projects/refs)
module:      objects-sdk
capability:  branches.list
actors:      person, service, agent:explore, agent:apply, app:client, app:hosted
step-up:     person: none; service: none; agent:explore: none; agent:apply: none; app:client: none; app:hosted: none
idempotent:  no
selector:    project, given as --selector <json>
input:       a JSON object, given as --input <json>, --input - (standard input) or --input-file <path>; {} when none is given
does:        Lists the branches of a project, each with its head: readable with a hash, withheld when the caller may not read the branch, or unread after the first 50 refs, including main (so at most 49 branch heads are read). Each row also carries a schema state as a convenience hint; the branch-needs-schema-update refusal on use remains the guard.
input fields:
  none
selector keys:
  projectId: required; string
example input: {}
```

## openeng objects-sdk readCatalogue

```text
openeng objects-sdk readCatalogue --selector <json> [--input <json> | --input - | --input-file <path>]
route:       readCatalogue (POST /projects/catalogue)
module:      objects-sdk
capability:  objects.catalogue
actors:      person, service, agent:explore, agent:apply, agent:types, app:client, app:hosted
step-up:     person: none; service: none; agent:explore: none; agent:apply: none; agent:types: none; app:client: none; app:hosted: none
idempotent:  no
selector:    project, given as --selector <json>
input:       a JSON object, given as --input <json>, --input - (standard input) or --input-file <path>; {} when none is given
does:        Reads the published catalogue of a project's namespace.
input fields:
  none
selector keys:
  projectId: required; string
example input: {}
```

## openeng objects-sdk queryGraph

```text
openeng objects-sdk queryGraph --selector <json> [--input <json> | --input - | --input-file <path>]
route:       queryGraph (POST /objects/graph)
module:      objects-sdk
capability:  objects.traverse
actors:      person, service, agent:explore, agent:apply, app:client, app:hosted
step-up:     person: none; service: none; agent:explore: none; agent:apply: none; app:client: none; app:hosted: none
idempotent:  no
selector:    object, given as --selector <json>
input:       a JSON object, given as --input <json>, --input - (standard input) or --input-file <path>; {} when none is given
does:        Walks the edges from a start of addresses or an object set, and answers the objects reached with every hop among them. Hops follow closeOver or the step's edge types, up to hopLimit. Example: one start address and one hop step of depth 1 reads that object's connections, with a marker for each kind of connection whose far object the caller cannot read. A start takes at most 200 addresses or set members; a walk takes at most 3 steps and 3 total levels. An explicit edgeTypeKeys list holds at most 8 edge types per step; when edgeTypeKeys is absent, the step traverses every edge type. objectLimit is at most 200 and hopLimit at most 400. A continuation reads the next page in the one-object form. For an object-set start, omitting input.start.set.projects reads every project the caller can read on the selected branch or baseline; selector.projectId does not narrow the set. To limit it to one project, include "projects":["<projectId>"] in input.start.set.
input fields:
  kind: required; "graph"
  start: required; kinds: objects | set
    kind objects: objects (array of object, required)
      each element has:
        objectId: required; string
        projectId: required; string
    kind set: set (object, required)
      the object has:
        kind: required; "objects"
        typeKey: required; string | null
        projects: optional; array of string
        filters: optional; array of object
          each element is one of these shapes:
            shape:
              kind: required; "property"
              property: required; string
              op: required; "="
              value: required; string | number | boolean
            shape:
              kind: required; "property"
              property: required; string
              op: required; ">" | ">=" | "<" | "<="
              value: required; string | number
            shape:
              kind: required; "property"
              property: required; string
              op: required; "in"
              values: required; array of string | number | boolean
            shape:
              kind: required; "identity"
              op: required; "in"
              values: required; array of string
            shape:
              kind: required; "edge"
              edgeTypeKey: required; string
              direction: required; "outgoing" | "incoming" | "to-children" | "to-parent"
              has: required; boolean
            shape:
              kind: required; "or"
              filters: required; array of object
                each element is one of these shapes:
                  shape:
                    kind: required; "property"
                    property: required; string
                    op: required; "="
                    value: required; string | number | boolean
                  shape:
                    kind: required; "property"
                    property: required; string
                    op: required; ">" | ">=" | "<" | "<="
                    value: required; string | number
                  shape:
                    kind: required; "property"
                    property: required; string
                    op: required; "in"
                    values: required; array of string | number | boolean
                  shape:
                    kind: required; "identity"
                    op: required; "in"
                    values: required; array of string
                  shape:
                    kind: required; "edge"
                    edgeTypeKey: required; string
                    direction: required; "outgoing" | "incoming" | "to-children" | "to-parent"
                    has: required; boolean
            shape:
              kind: required; "text"
              term: required; string
              properties: optional; array of string
            shape:
              kind: required; "type"
              op: required; "in"
              values: required; array of string
        steps: optional; array of object
          each element has:
            edgeTypeKey: required; string
            direction: required; "outgoing" | "incoming" | "to-children" | "to-parent"
            targetTypeKey: required; string
            filters: optional; array of object
              each element is one of these shapes:
                shape:
                  kind: required; "property"
                  property: required; string
                  op: required; "="
                  value: required; string | number | boolean
                shape:
                  kind: required; "property"
                  property: required; string
                  op: required; ">" | ">=" | "<" | "<="
                  value: required; string | number
                shape:
                  kind: required; "property"
                  property: required; string
                  op: required; "in"
                  values: required; array of string | number | boolean
                shape:
                  kind: required; "identity"
                  op: required; "in"
                  values: required; array of string
                shape:
                  kind: required; "edge"
                  edgeTypeKey: required; string
                  direction: required; "outgoing" | "incoming" | "to-children" | "to-parent"
                  has: required; boolean
                shape:
                  kind: required; "or"
                  filters: required; array of object
                    each element is one of these shapes:
                      shape:
                        kind: required; "property"
                        property: required; string
                        op: required; "="
                        value: required; string | number | boolean
                      shape:
                        kind: required; "property"
                        property: required; string
                        op: required; ">" | ">=" | "<" | "<="
                        value: required; string | number
                      shape:
                        kind: required; "property"
                        property: required; string
                        op: required; "in"
                        values: required; array of string | number | boolean
                      shape:
                        kind: required; "identity"
                        op: required; "in"
                        values: required; array of string
                      shape:
                        kind: required; "edge"
                        edgeTypeKey: required; string
                        direction: required; "outgoing" | "incoming" | "to-children" | "to-parent"
                        has: required; boolean
                shape:
                  kind: required; "text"
                  term: required; string
                  properties: optional; array of string
                shape:
                  kind: required; "type"
                  op: required; "in"
                  values: required; array of string
        sort: optional; kinds: property | identity
          the object is one of these shapes:
            kind property:
              property: required; string
              direction: required; "asc" | "desc"
            kind identity:
              direction: required; "asc" | "desc"
  steps: required; array of object
    each element has:
      edgeTypeKeys: optional; array of string
      direction: optional; "outgoing" | "incoming"
      depth: required; integer
      targetTypeKeys: optional; array of string
  closeOver: optional; array of string
  keep: optional; "all" | "last"
  objectLimit: optional; integer
  hopLimit: optional; integer
  continuation: optional; string | null
selector keys:
  projectId: required; string
  ref: required; string
example input: {"kind":"graph","start":{"kind":"objects","objects":[]},"steps":[]}
```

## openeng objects-sdk readStructure

```text
openeng objects-sdk readStructure --selector <json> [--input <json> | --input - | --input-file <path>]
route:       readStructure (POST /objects/structure)
module:      objects-sdk
capability:  objects.traverse
actors:      person, service, agent:explore, agent:apply, app:client, app:hosted
step-up:     person: none; service: none; agent:explore: none; agent:apply: none; app:client: none; app:hosted: none
idempotent:  no
selector:    object, given as --selector <json>
input:       a JSON object, given as --input <json>, --input - (standard input) or --input-file <path>; {} when none is given
does:        Reads the structure of a type's objects as a tree: every root, one object's subtree or one object's ancestors, each placement an occurrence. Example: a forest anchor with maxDepth 1 reads its roots and their children. maxDepth is at most 32 and occurrenceLimit at most 2000. The answer reports whether it is complete or bounded, and a bounded answer says whether the limit was occurrences, depth or level rows; the route does not page. Narrow the walk with maxDepth and occurrenceLimit. A chosen relationship or one-step view places the type itself, and the types above it follow their own declared relationships.
input fields:
  typeKey: required; string
  structure: required; kinds: declared | relationship | view
    kind declared: no further fields
    kind relationship: edgeTypeKey (string, required)
    kind view: viewKey (string, required)
  anchor: required; kinds: forest | subtree | ancestors
    kind forest: no further fields
    kind subtree: object (object, required)
      the object has:
        objectId: required; string
        projectId: required; string
    kind ancestors: object (object, required)
      the object has:
        objectId: required; string
        projectId: required; string
  maxDepth: optional; integer
  occurrenceLimit: optional; integer
selector keys:
  projectId: required; string
  ref: required; string
example input: {"typeKey":"<typeKey>","structure":{"kind":"declared"},"anchor":{"kind":"forest"}}
```

## openeng objects-sdk findPaths

```text
openeng objects-sdk findPaths --selector <json> [--input <json> | --input - | --input-file <path>]
route:       findPaths (POST /objects/paths)
module:      objects-sdk
capability:  objects.traverse
actors:      person, service, agent:explore, agent:apply, app:client, app:hosted
step-up:     person: none; service: none; agent:explore: none; agent:apply: none; app:client: none; app:hosted: none
idempotent:  no
selector:    object, given as --selector <json>
input:       a JSON object, given as --input <json>, --input - (standard input) or --input-file <path>; {} when none is given
does:        Finds shortest paths between two objects within a length, up to maxPaths; the answer may be bounded.
input fields:
  from: required; object
    the object has:
      objectId: required; string
      projectId: required; string
  to: required; object
    the object has:
      objectId: required; string
      projectId: required; string
  edgeTypeKeys: optional; array of string
  direction: optional; "outgoing" | "incoming"
  maxLength: required; integer
  maxPaths: optional; integer
selector keys:
  projectId: required; string
  ref: required; string
example input: {"from":{"objectId":"<objectId>","projectId":"<projectId>"},"to":{"objectId":"<objectId>","projectId":"<projectId>"},"maxLength":1}
```

## openeng objects-sdk readLinkStatus

```text
openeng objects-sdk readLinkStatus --selector <json> [--input <json> | --input - | --input-file <path>]
route:       readLinkStatus (POST /links/status)
module:      objects-sdk
capability:  links.status
actors:      person, service, agent:explore, agent:apply, app:client, app:hosted
step-up:     person: none; service: none; agent:explore: none; agent:apply: none; app:client: none; app:hosted: none
idempotent:  no
selector:    object, given as --selector <json>
input:       a JSON object, given as --input <json>, --input - (standard input) or --input-file <path>; {} when none is given
does:        Reads an object's tracked links at a stable head: review (cleared, suspect, unreviewed, not-visible or too-many-links), clearing attribution, link bounds and aggregate bounds with units and coverage. Only a readable upstream supplies its opaque upstreamVersion, the precondition for clearing.
input fields:
  objectId: required; string
selector keys:
  projectId: required; string
  ref: required; string
example input: {"objectId":"<objectId>"}
```

## openeng objects-sdk clearLinks

```text
openeng objects-sdk clearLinks --selector <json> [--input <json> | --input - | --input-file <path>] [--idempotency-key <key>]
route:       clearLinks (POST /link-clearings)
module:      objects-sdk
capability:  links.clear
actors:      person, agent:apply, app:client, service
step-up:     person: none; agent:apply: none; app:client: none; service: none
idempotent:  yes; a key is minted and printed when --idempotency-key is absent
selector:    project, given as --selector <json>
input:       a JSON object, given as --input <json>, --input - (standard input) or --input-file <path>; {} when none is given
does:        Clears 1 to 100 links atomically on the named ref. Send each linkId with the upstreamVersion from readLinkStatus as a precondition; upstream-changed requires a fresh read and review. Records the clearer and time without changing bounds. Admits user, `agent:apply`, client and service; `agent:explore` and `agent:types` are refused at admission. An unknown outcome must be recovered by correlation before retrying. The reason is required and is written first in the save's commit message, above the platform's lines, exactly as sent; it is refused as invalid-request when it is missing, empty after trimming white space, holds NUL or holds a lone UTF-16 surrogate.
input fields:
  correlation: optional; minted when absent; kinds: mint | sent
    kind mint: no further fields
    kind sent: correlationId (string, required)
  ref: required; string
  entries: required; array of object
    each element has:
      linkId: required; string
      upstreamVersion: required; string
  reason: required; string
selector keys:
  projectId: required; string
example input: {"ref":"main","entries":[{"linkId":"<linkId>","upstreamVersion":"<upstreamVersion>"}],"reason":"<reason>"}
```

## openeng objects-sdk setObjectLock

```text
openeng objects-sdk setObjectLock --selector <json> [--input <json> | --input - | --input-file <path>]
route:       setObjectLock (POST /object-locks)
module:      objects-sdk
capability:  objects.locks
actors:      person
step-up:     person: person-present when unlocks (lock is "none")
idempotent:  no
selector:    object, given as --selector <json>
input:       a JSON object, given as --input <json>, --input - (standard input) or --input-file <path>; {} when none is given
does:        Sets an object's lock on the selected project branch to none, merge-only or frozen and answers objectId and lock. The lock also applies to its existing structural child edges in that project; none lifts the lock. New children on a writable branch are not thereby frozen. Use a baseline for a fixed snapshot. An unknown lock answers invalid-request at lock. The reason is required and is written first in the save's commit message, above the platform's lines, exactly as sent; it is refused as invalid-request when it is missing, empty after trimming white space, holds NUL or holds a lone UTF-16 surrogate.
input fields:
  objectId: required; string
  lock: required; "none" | "merge-only" | "frozen"
  reason: required; string
selector keys:
  projectId: required; string
  ref: required; string
example input: {"objectId":"<objectId>","lock":"none","reason":"<reason>"}
```

## openeng objects-sdk readApp

```text
openeng objects-sdk readApp [--input <json> | --input - | --input-file <path>]
route:       readApp (POST /apps/read)
module:      objects-sdk
capability:  objects.catalogue
actors:      person, service, agent:explore, agent:apply, agent:types, app:client, app:hosted
step-up:     person: none; service: none; agent:explore: none; agent:apply: none; agent:types: none; app:client: none; app:hosted: none
idempotent:  no
selector:    none
input:       a JSON object, given as --input <json>, --input - (standard input) or --input-file <path>; {} when none is given
does:        Reads a published version of an app, the latest where none is named, with the app's history of versions.
input fields:
  appKey: required; string
  version: optional; integer
example input: {"appKey":"<appKey>"}
```

## openeng objects-sdk listApps

```text
openeng objects-sdk listApps [--input <json> | --input - | --input-file <path>]
route:       listApps (POST /apps)
module:      objects-sdk
capability:  objects.catalogue
actors:      person, service, agent:explore, agent:apply, agent:types, app:client, app:hosted
step-up:     person: none; service: none; agent:explore: none; agent:apply: none; agent:types: none; app:client: none; app:hosted: none
idempotent:  no
selector:    none
input:       a JSON object, given as --input <json>, --input - (standard input) or --input-file <path>; {} when none is given
does:        Lists the organisation's apps, each with its latest version's number, title and rail placement.
input fields:
  none
example input: {}
```

## openeng objects-sdk searchPeople

```text
openeng objects-sdk searchPeople [--input <json> | --input - | --input-file <path>]
route:       searchPeople (POST /people/search)
module:      objects-sdk
capability:  people.search
actors:      person, app:hosted
step-up:     person: none; app:hosted: none
idempotent:  no
selector:    none
input:       a JSON object, given as --input <json>, --input - (standard input) or --input-file <path>; {} when none is given
does:        Finds people in the caller's organisation when every query word starts a word of their name.
input fields:
  query: required; string
example input: {"query":"<query>"}
```

## openeng objects-sdk searchObjectReaders

```text
openeng objects-sdk searchObjectReaders --selector <json> [--input <json> | --input - | --input-file <path>]
route:       searchObjectReaders (POST /objects/readers)
module:      objects-sdk
capability:  people.objectReaders
actors:      person, app:hosted
step-up:     person: none; app:hosted: none
idempotent:  no
selector:    object, given as --selector <json>
input:       a JSON object, given as --input <json>, --input - (standard input) or --input-file <path>; {} when none is given
does:        Finds the people who can read an object on a branch or baseline, by a name prefix.
input fields:
  objectId: required; string
  prefix: optional; string
selector keys:
  projectId: required; string
  ref: required; string
example input: {"objectId":"<objectId>"}
```

## openeng objects-sdk listSubscribers

```text
openeng objects-sdk listSubscribers --selector <json> [--input <json> | --input - | --input-file <path>]
route:       listSubscribers (POST /objects/subscribers)
module:      objects-sdk
capability:  discussion.subscribers
actors:      person, app:hosted
step-up:     person: none; app:hosted: none
idempotent:  no
selector:    object, given as --selector <json>
input:       a JSON object, given as --input <json>, --input - (standard input) or --input-file <path>; {} when none is given
does:        Lists the subscriptions on an object.
input fields:
  objectId: required; string
selector keys:
  projectId: required; string
  ref: required; string
example input: {"objectId":"<objectId>"}
```

## openeng objects-sdk addSubscriber

```text
openeng objects-sdk addSubscriber --selector <json> [--input <json> | --input - | --input-file <path>]
route:       addSubscriber (POST /objects/subscribers/add)
module:      objects-sdk
capability:  discussion.subscriberChange
actors:      person, app:hosted
step-up:     person: none; app:hosted: none
idempotent:  no
selector:    object, given as --selector <json>
input:       a JSON object, given as --input <json>, --input - (standard input) or --input-file <path>; {} when none is given
does:        Adds a person to an object's subscriptions as owner, approver or watcher, when the type's `subscriptionRoles` admits that role. The declaration may set maxima; owner is limited to one. With no declaration, only watchers are admitted.
input fields:
  objectId: required; string
  role: required; "owner" | "approver" | "watcher"
  person: required; object
    the object has:
      kind: required; "person"
      id: required; string
selector keys:
  projectId: required; string
  ref: required; string
example input: {"objectId":"<objectId>","role":"owner","person":{"kind":"person","id":"<id>"}}
```

## openeng objects-sdk removeSubscriber

```text
openeng objects-sdk removeSubscriber --selector <json> [--input <json> | --input - | --input-file <path>]
route:       removeSubscriber (POST /objects/subscribers/remove)
module:      objects-sdk
capability:  discussion.subscriberChange
actors:      person, app:hosted
step-up:     person: none; app:hosted: none
idempotent:  no
selector:    object, given as --selector <json>
input:       a JSON object, given as --input <json>, --input - (standard input) or --input-file <path>; {} when none is given
does:        Removes a person's subscription to an object in a role.
input fields:
  objectId: required; string
  role: required; "owner" | "approver" | "watcher"
  person: required; object
    the object has:
      kind: required; "person"
      id: required; string
selector keys:
  projectId: required; string
  ref: required; string
example input: {"objectId":"<objectId>","role":"owner","person":{"kind":"person","id":"<id>"}}
```

## openeng objects-sdk listComments

```text
openeng objects-sdk listComments --selector <json> [--input <json> | --input - | --input-file <path>]
route:       listComments (POST /objects/comments)
module:      objects-sdk
capability:  discussion.comments
actors:      person, app:hosted
step-up:     person: none; app:hosted: none
idempotent:  no
selector:    object, given as --selector <json>
input:       a JSON object, given as --input <json>, --input - (standard input) or --input-file <path>; {} when none is given
does:        Lists the comments on an object, oldest first, a page at a time.
input fields:
  objectId: required; string
  after: optional; string
selector keys:
  projectId: required; string
  ref: required; string
example input: {"objectId":"<objectId>"}
```

## openeng objects-sdk acquireDraft

```text
openeng objects-sdk acquireDraft --selector <json> [--input <json> | --input - | --input-file <path>]
route:       acquireDraft (POST /objects/drafts/acquire)
module:      objects-sdk
capability:  objects.write
actors:      person, agent:apply, app:client
step-up:     person: none; agent:apply: none; app:client: none
idempotent:  no
selector:    object, given as --selector <json>
input:       a JSON object, given as --input <json>, --input - (standard input) or --input-file <path>; {} when none is given
does:        Acquires the subject’s draft and lock using the body and base hash read on the server from that object on the selected ref.
input fields:
  objectId: required; string
selector keys:
  projectId: required; string
  ref: required; string
example input: {"objectId":"<objectId>"}
```

## openeng objects-sdk saveDraft

```text
openeng objects-sdk saveDraft --selector <json> [--input <json> | --input - | --input-file <path>]
route:       saveDraft (POST /objects/drafts/save)
module:      objects-sdk
capability:  objects.write
actors:      person, agent:apply, app:client
step-up:     person: none; agent:apply: none; app:client: none
idempotent:  no
selector:    object, given as --selector <json>
input:       a JSON object, given as --input <json>, --input - (standard input) or --input-file <path>; {} when none is given
does:        Saves draft blocks after comparing the current draft hash; the server mints an identifier for each added block and answers them in minted. Refuses body-wrong-format when a kind is outside the type's body formats, kinds are mixed, or a non-markdown body has more than one block.
input fields:
  objectId: required; string
  blocks: required; map of kinds: markdown | python | json | yaml | typescript | javascript | plaintext | modelica | sysml | starlark
    each value is one of these shapes:
      kind markdown:
        text: required; string
        position: required; string
      kind python:
        text: required; string
        position: required; string
      kind json:
        text: required; string
        position: required; string
      kind yaml:
        text: required; string
        position: required; string
      kind typescript:
        text: required; string
        position: required; string
      kind javascript:
        text: required; string
        position: required; string
      kind plaintext:
        text: required; string
        position: required; string
      kind modelica:
        text: required; string
        position: required; string
      kind sysml:
        text: required; string
        position: required; string
      kind starlark:
        text: required; string
        position: required; string
  added: required; array of kinds: markdown | python | json | yaml | typescript | javascript | plaintext | modelica | sysml | starlark
    each element is one of these shapes:
      kind markdown:
        text: required; string
        position: required; string
      kind python:
        text: required; string
        position: required; string
      kind json:
        text: required; string
        position: required; string
      kind yaml:
        text: required; string
        position: required; string
      kind typescript:
        text: required; string
        position: required; string
      kind javascript:
        text: required; string
        position: required; string
      kind plaintext:
        text: required; string
        position: required; string
      kind modelica:
        text: required; string
        position: required; string
      kind sysml:
        text: required; string
        position: required; string
      kind starlark:
        text: required; string
        position: required; string
  draftHash: required; string
selector keys:
  projectId: required; string
  ref: required; string
example input: {"objectId":"<objectId>","blocks":{},"added":[],"draftHash":"<draftHash>"}
```

## openeng objects-sdk promoteDraft

```text
openeng objects-sdk promoteDraft --selector <json> [--input <json> | --input - | --input-file <path>]
route:       promoteDraft (POST /objects/drafts/promote)
module:      objects-sdk
capability:  objects.write
actors:      person, agent:apply, app:client
step-up:     person: none; agent:apply: none; app:client: none
idempotent:  no
selector:    object, given as --selector <json>
input:       a JSON object, given as --input <json>, --input - (standard input) or --input-file <path>; {} when none is given
does:        Publishes a checked draft. A draft with no edits returns committed false and records no commit; a recovered promote returns committed true with the current head and makes no second save. The reason is required and is written first in the save's commit message, above the platform's lines, exactly as sent; it is refused as invalid-request when it is missing, empty after trimming white space, holds NUL or holds a lone UTF-16 surrogate.
input fields:
  objectId: required; string
  draftHash: required; string
  reason: required; string
selector keys:
  projectId: required; string
  ref: required; string
example input: {"objectId":"<objectId>","draftHash":"<draftHash>","reason":"<reason>"}
```

## openeng objects-sdk releaseDraft

```text
openeng objects-sdk releaseDraft --selector <json> [--input <json> | --input - | --input-file <path>]
route:       releaseDraft (POST /objects/drafts/release)
module:      objects-sdk
capability:  objects.write
actors:      person, agent:apply, app:client
step-up:     person: none; agent:apply: none; app:client: none
idempotent:  no
selector:    object, given as --selector <json>
input:       a JSON object, given as --input <json>, --input - (standard input) or --input-file <path>; {} when none is given
does:        Releases an unchanged draft.
input fields:
  objectId: required; string
selector keys:
  projectId: required; string
  ref: required; string
example input: {"objectId":"<objectId>"}
```

## openeng objects-sdk discardDraft

```text
openeng objects-sdk discardDraft --selector <json> [--input <json> | --input - | --input-file <path>]
route:       discardDraft (POST /objects/drafts/discard)
module:      objects-sdk
capability:  objects.write
actors:      person, agent:apply, app:client
step-up:     person: none; agent:apply: none; app:client: none
idempotent:  no
selector:    object, given as --selector <json>
input:       a JSON object, given as --input <json>, --input - (standard input) or --input-file <path>; {} when none is given
does:        Discards the holder’s draft.
input fields:
  objectId: required; string
selector keys:
  projectId: required; string
  ref: required; string
example input: {"objectId":"<objectId>"}
```

## openeng objects-sdk breakDraftLock

```text
openeng objects-sdk breakDraftLock --selector <json> [--input <json> | --input - | --input-file <path>]
route:       breakDraftLock (POST /objects/drafts/break)
module:      objects-sdk
capability:  objects.draftAdmin
actors:      person
step-up:     person: person-present
idempotent:  no
selector:    object, given as --selector <json>
input:       a JSON object, given as --input <json>, --input - (standard input) or --input-file <path>; {} when none is given
does:        Breaks a draft lock as a project administrator; person-only objects.draftAdmin capability.
input fields:
  objectId: required; string
selector keys:
  projectId: required; string
  ref: required; string
example input: {"objectId":"<objectId>"}
```

## openeng objects-sdk readDraftLock

```text
openeng objects-sdk readDraftLock --selector <json> [--input <json> | --input - | --input-file <path>]
route:       readDraftLock (POST /objects/drafts/lock)
module:      objects-sdk
capability:  objects.read
actors:      person, service, agent:explore, agent:apply, app:client, app:hosted
step-up:     person: none; service: none; agent:explore: none; agent:apply: none; app:client: none; app:hosted: none
idempotent:  no
selector:    object, given as --selector <json>
input:       a JSON object, given as --input <json>, --input - (standard input) or --input-file <path>; {} when none is given
does:        Returns { kind: "held", holderDisplayName, expiresAt } for a live lock, or { kind: "free" }.
input fields:
  objectId: required; string
selector keys:
  projectId: required; string
  ref: required; string
example input: {"objectId":"<objectId>"}
```

## openeng objects-sdk restoreDraft

```text
openeng objects-sdk restoreDraft [--input <json> | --input - | --input-file <path>]
route:       restoreDraft (POST /draft-restorations)
module:      objects-sdk
capability:  objects.draftAdmin
actors:      person
step-up:     person: none
idempotent:  no
selector:    none
input:       a JSON object, given as --input <json>, --input - (standard input) or --input-file <path>; {} when none is given
does:        Restores a saved draft onto a new branch using its saved body; person-only objects.draftAdmin capability.
input fields:
  trashId: required; string
  newRefName: required; string
example input: {"trashId":"<trashId>","newRefName":"<newRefName>"}
```

## openeng objects-sdk setCommentResolved

```text
openeng objects-sdk setCommentResolved [--input <json> | --input - | --input-file <path>]
route:       setCommentResolved (POST /objects/comments/resolve)
module:      objects-sdk
capability:  discussion.commentWrite
actors:      person
step-up:     person: none
idempotent:  no
selector:    none
input:       a JSON object, given as --input <json>, --input - (standard input) or --input-file <path>; {} when none is given
does:        Resolves or reopens a comment.
input fields:
  commentId: required; string
  resolved: required; boolean
example input: {"commentId":"<commentId>","resolved":false}
```

## openeng objects-sdk addComment

```text
openeng objects-sdk addComment --selector <json> [--input <json> | --input - | --input-file <path>] [--idempotency-key <key>]
route:       addComment (POST /objects/comments/add)
module:      objects-sdk
capability:  discussion.commentWrite
actors:      person, app:hosted
step-up:     person: none; app:hosted: none
idempotent:  yes; a key is minted and printed when --idempotency-key is absent
selector:    object, given as --selector <json>
input:       a JSON object, given as --input <json>, --input - (standard input) or --input-file <path>; {} when none is given
does:        Adds a comment to an object, naming the people it mentions and optionally anchoring a quoted block.
input fields:
  objectId: required; string
  body: required; string
  mentions: required; array of object
    each element has:
      from: required; integer
      to: required; integer
      person: required; object
        the object has:
          kind: required; "person"
          id: required; string
  anchor: optional; object
    the object has:
      blockId: required; string
      from: required; integer
      to: required; integer
      exact: required; string
      prefix: required; string
      suffix: required; string
  correlationId: optional; string
selector keys:
  projectId: required; string
  ref: required; string
example input: {"objectId":"<objectId>","body":"<body>","mentions":[]}
```

## openeng branches-sdk createBranch

```text
openeng branches-sdk createBranch --selector <json> [--input <json> | --input - | --input-file <path>] [--idempotency-key <key>]
route:       createBranch (POST /branches)
module:      branches-sdk
capability:  branches.create
actors:      person, service, agent:explore, agent:apply, app:client
step-up:     person: none; service: none; agent:explore: none; agent:apply: none; app:client: none
idempotent:  yes; a key is minted and printed when --idempotency-key is absent
selector:    project, given as --selector <json>
input:       a JSON object, given as --input <json>, --input - (standard input) or --input-file <path>; {} when none is given
does:        Creates a project branch from a branch, a baseline or an admitted current head. The optional from is tagged kind ref with ref, or kind hash with hash.
input fields:
  correlation: optional; minted when absent; kinds: mint | sent
    kind mint: no further fields
    kind sent: correlationId (string, required)
  name: required; string
  from: optional; kinds: ref | hash
    kind ref: ref (string, required)
    kind hash: hash (string, required)
selector keys:
  projectId: required; string
example input: {"name":"<name>"}
```

## openeng branches-sdk merge

```text
openeng branches-sdk merge --selector <json> [--input <json> | --input - | --input-file <path>] [--idempotency-key <key>]
route:       merge (POST /merges)
module:      branches-sdk
capability:  branches.merge
actors:      person, service, app:client
step-up:     person: person-present; service: none; app:client: none
idempotent:  yes; a key is minted and printed when --idempotency-key is absent
selector:    project, given as --selector <json>
input:       a JSON object, given as --input <json>, --input - (standard input) or --input-file <path>; {} when none is given
does:        Merges a reviewed head of a project branch or an organisation branch or baseline source into main, or into the writable branch the optional target names; absent target means main. For a proposal, send the source branch's current head as sourceHash. Success closes only that source ref's pending proposal for this target. Matching rules may require a proposal and current approvals unless bypassed; approvals-required carries approvals.counted and approvals.required for the subject project. A merge that changes rows a rule protects in another project the caller writes is refused protected, with protection naming the patterns. With no matching rule, writers of every affected project can merge, including Contributors. A merge names exactly one of name and source. name is checked against the source branch's bound head and is refused stale-source when it differs.
input fields:
  correlation: optional; minted when absent; kinds: mint | sent
    kind mint: no further fields
    kind sent: correlationId (string, required)
  sourceHash: required; string
  message: required; string
  name: optional; string
  source: optional; string
  target: optional; string
selector keys:
  projectId: required; string
example input: {"sourceHash":"<sourceHash>","message":"<message>","name":"feature"}
```

## openeng branches-sdk readMergeConflicts

```text
openeng branches-sdk readMergeConflicts --selector <json> [--input <json> | --input - | --input-file <path>]
route:       readMergeConflicts (POST /branches/conflicts)
module:      branches-sdk
capability:  branches.conflicts
actors:      person, service, app:client, app:hosted
step-up:     person: none; service: none; app:client: none; app:hosted: none
idempotent:  no
selector:    project, given as --selector <json>
input:       a JSON object, given as --input <json>, --input - (standard input) or --input-file <path>; {} when none is given
does:        Reads conflicts for the source branch named in input.name, always comparing it with main. For each field, base is the common value before either side changed it, ours is main, and theirs is the source branch. If the merge targeted another branch, this read still compares with main and does not report that merge's conflicts. Body blocks carry oursLines from base to ours and theirsLines from base to theirs, each exactly when either side it compares is not markdown.
input fields:
  name: required; string
selector keys:
  projectId: required; string
example input: {"name":"<name>"}
```

## openeng branches-sdk disposeRef

```text
openeng branches-sdk disposeRef --selector <json> [--input <json> | --input - | --input-file <path>] [--idempotency-key <key>]
route:       disposeRef (POST /branch-disposals)
module:      branches-sdk
capability:  branches.disposal
actors:      person, service, app:client
step-up:     person: person-present; service: none; app:client: none
idempotent:  yes; a key is minted and printed when --idempotency-key is absent
selector:    project, given as --selector <json>
input:       a JSON object, given as --input <json>, --input - (standard input) or --input-file <path>; {} when none is given
does:        Disposes a project branch. A writer can dispose when no matching rule restricts deletions and no proposal is pending, or when no rule matches even with a pending proposal. Otherwise the caller must bypass every matching rule. Success discards the pending proposal after the engine disposal. Merge and disposal admit people, services and client apps; agents and hosted apps are refused. Only drafts in projects the caller can read and write block disposal: the call is refused ref-has-drafts and lists each draft's object and holder; send deleteDrafts true to consent, and the disposal then removes the drafts you may write and keeps each in the draft trash for the people who saved it.
input fields:
  deleteDrafts: optional; boolean
  correlation: optional; minted when absent; kinds: mint | sent
    kind mint: no further fields
    kind sent: correlationId (string, required)
  name: required; string
  atHash: required; string
selector keys:
  projectId: required; string
example input: {"name":"<name>","atHash":"<atHash>"}
```

## openeng branches-sdk readPendingProposal

```text
openeng branches-sdk readPendingProposal --selector <json> [--input <json> | --input - | --input-file <path>]
route:       readPendingProposal (POST /proposals/pending)
module:      branches-sdk
capability:  branches.pendingProposal
actors:      person, app:client, app:hosted
step-up:     person: none; app:client: none; app:hosted: none
idempotent:  no
selector:    project, given as --selector <json>
input:       a JSON object, given as --input <json>, --input - (standard input) or --input-file <path>; {} when none is given
does:        Reads the proposal waiting for review on a branch, if any.
input fields:
  name: required; string
selector keys:
  projectId: required; string
example input: {"name":"<name>"}
```

## openeng branches-sdk submitProposal

```text
openeng branches-sdk submitProposal --selector <json> [--input <json> | --input - | --input-file <path>]
route:       submitProposal (POST /proposals)
module:      branches-sdk
capability:  branches.proposalSubmit
actors:      person, app:client, agent:apply
step-up:     person: none; app:client: none; agent:apply: none
idempotent:  no
selector:    project, given as --selector <json>
input:       a JSON object, given as --input <json>, --input - (standard input) or --input-file <path>; {} when none is given
does:        Submits a branch for review. Optional target names main, a writable organisation ref or a project branch; it defaults to main. A client holding branches.proposalSubmit may submit within the person's project permissions. That grant alone permits no other branch write. An apply run that names any ref other than its plan's is refused write-refused.
input fields:
  name: required; string
  title: required; string
  summary: required; string
  target: optional; string
selector keys:
  projectId: required; string
example input: {"name":"<name>","title":"<title>","summary":"<summary>"}
```

## openeng branches-sdk listProposals

```text
openeng branches-sdk listProposals --selector <json> [--input <json> | --input - | --input-file <path>]
route:       listProposals (POST /proposals/list)
module:      branches-sdk
capability:  branches.proposalList
actors:      person, app:client, app:hosted
step-up:     person: none; app:client: none; app:hosted: none
idempotent:  no
selector:    project, given as --selector <json>
input:       a JSON object, given as --input <json>, --input - (standard input) or --input-file <path>; {} when none is given
does:        Lists the proposals of a project.
input fields:
  state: required; "pending" | "merged" | "refused" | "discarded" | "all"
  cursor: optional; string
selector keys:
  projectId: required; string
example input: {"state":"pending"}
```

## openeng branches-sdk readProposal

```text
openeng branches-sdk readProposal --selector <json> [--input <json> | --input - | --input-file <path>]
route:       readProposal (POST /proposals/read)
module:      branches-sdk
capability:  branches.proposalRead
actors:      person, app:client, app:hosted
step-up:     person: none; app:client: none; app:hosted: none
idempotent:  no
selector:    project, given as --selector <json>
input:       a JSON object, given as --input <json>, --input - (standard input) or --input-file <path>; {} when none is given
does:        Reads one proposal.
input fields:
  proposalId: required; string
selector keys:
  projectId: required; string
example input: {"proposalId":"<proposalId>"}
```

## openeng branches-sdk refuseProposal

```text
openeng branches-sdk refuseProposal --selector <json> [--input <json> | --input - | --input-file <path>]
route:       refuseProposal (POST /proposal-refusals)
module:      branches-sdk
capability:  branches.proposalRefusal
actors:      person, app:client
step-up:     person: none; app:client: none
idempotent:  no
selector:    project, given as --selector <json>
input:       a JSON object, given as --input <json>, --input - (standard input) or --input-file <path>; {} when none is given
does:        Refuses a proposal and returns its branch to its author.
input fields:
  proposalId: required; string
  reason: required; string
selector keys:
  projectId: required; string
example input: {"proposalId":"<proposalId>","reason":"<reason>"}
```

## openeng branches-sdk approveProposal

```text
openeng branches-sdk approveProposal --selector <json> [--input <json> | --input - | --input-file <path>]
route:       approveProposal (POST /proposal-approvals)
module:      branches-sdk
capability:  branches.proposalApproval
actors:      person
step-up:     person: person-present
idempotent:  no
selector:    project, given as --selector <json>
input:       a JSON object, given as --input <json>, --input - (standard input) or --input-file <path>; {} when none is given
does:        Records the caller's approval of a pending proposal at the head hash the caller read; send that hash as headHash. Any person who reads the project and the proposal's target and is not an author may approve; a target the caller cannot read answers not-found. An approval counts toward a rule only while its hash is the branch's head and the approver holds the rule's approver role or is named on it.
input fields:
  proposalId: required; string
  headHash: required; string
selector keys:
  projectId: required; string
example input: {"proposalId":"<proposalId>","headHash":"<headHash>"}
```

## openeng branches-sdk readBranchDiff

```text
openeng branches-sdk readBranchDiff --selector <json> [--input <json> | --input - | --input-file <path>]
route:       readBranchDiff (POST /branches/diff)
module:      branches-sdk
capability:  branches.proposalDiff
actors:      person, service, app:client, app:hosted
step-up:     person: none; service: none; app:client: none; app:hosted: none
idempotent:  no
selector:    project, given as --selector <json>
input:       a JSON object, given as --input <json>, --input - (standard input) or --input-file <path>; {} when none is given
does:        Reads the objects and edges a proposal's branch changes against its target. While the proposal is pending the diff is taken at the branch's current head, and atHash names that head; a closed proposal reads at its reviewed head. A target the caller cannot read answers not-found. Each bodyChanges entry carries lines exactly when either compared side is not markdown.
input fields:
  proposalId: required; string
  cursor: optional; string
selector keys:
  projectId: required; string
example input: {"proposalId":"<proposalId>"}
```

## openeng branches-sdk readChangeImpact

```text
openeng branches-sdk readChangeImpact --selector <json> [--input <json> | --input - | --input-file <path>]
route:       readChangeImpact (POST /branches/impact)
module:      branches-sdk
capability:  branches.impact
actors:      person, service, agent:explore, agent:apply, app:client, app:hosted
step-up:     person: none; service: none; agent:explore: none; agent:apply: none; app:client: none; app:hosted: none
idempotent:  no
selector:    project, given as --selector <json>
input:       a JSON object, given as --input <json>, --input - (standard input) or --input-file <path>; {} when none is given
does:        Reads review, link bounds and aggregate bounds state changes against the branch's merge base, plus downstream reach to depth three and hidden counts. Both ref and base are required. Includes added and removed states and pins both heads; over-bound and head-moved refuse the entire read without a partial answer.
input fields:
  ref: required; string
  base: required; string
selector keys:
  projectId: required; string
example input: {"ref":"project/branch","base":"main"}
```

## openeng branches-sdk diffBranches

```text
openeng branches-sdk diffBranches --selector <json> [--input <json> | --input - | --input-file <path>]
route:       diffBranches (POST /branches/difference)
module:      branches-sdk
capability:  branches.diff
actors:      person, service, agent:explore, agent:apply, app:client, app:hosted
step-up:     person: none; service: none; agent:explore: none; agent:apply: none; app:client: none; app:hosted: none
idempotent:  no
selector:    project, given as --selector <json>
input:       a JSON object, given as --input <json>, --input - (standard input) or --input-file <path>; {} when none is given
does:        Reads the objects and edges one branch or baseline changes against another.
input fields:
  ref: required; string
  base: required; string
  cursor: optional; string
selector keys:
  projectId: required; string
example input: {"ref":"<ref>","base":"<base>"}
```

## openeng branches-sdk readBranchHistory

```text
openeng branches-sdk readBranchHistory --selector <json> [--input <json> | --input - | --input-file <path>]
route:       readBranchHistory (POST /branches/history)
module:      branches-sdk
capability:  branches.history
actors:      person, service, agent:explore, agent:apply, app:client, app:hosted
step-up:     person: none; service: none; agent:explore: none; agent:apply: none; app:client: none; app:hosted: none
idempotent:  no
selector:    project, given as --selector <json>
input:       a JSON object, given as --input <json>, --input - (standard input) or --input-file <path>; {} when none is given
does:        Reads a branch's history of commits.
input fields:
  name: required; string
  cursor: optional; string
selector keys:
  projectId: required; string
example input: {"name":"<name>"}
```

## openeng branches-sdk readRefHead

```text
openeng branches-sdk readRefHead --selector <json> [--input <json> | --input - | --input-file <path>]
route:       readRefHead (POST /branches/head)
module:      branches-sdk
capability:  branches.head
actors:      person, service, agent:explore, agent:apply, agent:types, app:client, app:hosted
step-up:     person: none; service: none; agent:explore: none; agent:apply: none; agent:types: none; app:client: none; app:hosted: none
idempotent:  no
selector:    project, given as --selector <json>
input:       a JSON object, given as --input <json>, --input - (standard input) or --input-file <path>; {} when none is given
does:        Reads the head of a branch or baseline.
input fields:
  name: required; string
selector keys:
  projectId: required; string
example input: {"name":"<name>"}
```

## openeng branches-sdk inspectBranchOperation

```text
openeng branches-sdk inspectBranchOperation --selector <json> [--input <json> | --input - | --input-file <path>]
route:       inspectBranchOperation (POST /branch-inspections)
module:      branches-sdk
capability:  branches.inspection
actors:      person, service, app:client
step-up:     person: none; service: none; app:client: none
idempotent:  no
selector:    project, given as --selector <json>
input:       a JSON object, given as --input <json>, --input - (standard input) or --input-file <path>; {} when none is given
does:        Reads any branch operation record the caller may read; only the caller that started it may settle it.
input fields:
  correlationId: required; string
selector keys:
  projectId: required; string
example input: {"correlationId":"<correlationId>"}
```

## openeng branches-sdk abandonBranch

```text
openeng branches-sdk abandonBranch --selector <json> [--input <json> | --input - | --input-file <path>] [--idempotency-key <key>]
route:       abandonBranch (POST /branch-abandonments)
module:      branches-sdk
capability:  branches.abandonment
actors:      person, service, app:client
step-up:     person: none; service: none; app:client: none
idempotent:  yes; a key is minted and printed when --idempotency-key is absent
selector:    project, given as --selector <json>
input:       a JSON object, given as --input <json>, --input - (standard input) or --input-file <path>; {} when none is given
does:        Refuses branch abandonment because this operation is not available in this release.
input fields:
  correlation: optional; minted when absent; kinds: mint | sent
    kind mint: no further fields
    kind sent: correlationId (string, required)
  name: required; string
  atHash: required; string
selector keys:
  projectId: required; string
example input: {"name":"<name>","atHash":"<atHash>"}
```

## openeng branches-sdk requestSchemaUpdate

```text
openeng branches-sdk requestSchemaUpdate [--input <json> | --input - | --input-file <path>]
route:       requestSchemaUpdate (POST /schema-update-requests)
module:      branches-sdk
capability:  branches.schema-update
actors:      person
step-up:     person: none
idempotent:  no
selector:    none
input:       a JSON object, given as --input <json>, --input - (standard input) or --input-file <path>; {} when none is given
does:        Records a schema update request for a project branch or organisation branch or baseline and answers its state and attribution. Project refs use `<projectId>/<branch>` with a one-segment branch name; the request may name a branch that does not exist. Organisation refs use one segment. The trunk `main` answers invalid-request at `ref`. Execution is separate.
input fields:
  ref: required; string
example input: {"ref":"<ref>"}
```

## openeng branches-sdk readSchemaUpdateRequest

```text
openeng branches-sdk readSchemaUpdateRequest [--input <json> | --input - | --input-file <path>]
route:       readSchemaUpdateRequest (POST /schema-update-requests/read)
module:      branches-sdk
capability:  branches.schema-update
actors:      person
step-up:     person: none
idempotent:  no
selector:    none
input:       a JSON object, given as --input <json>, --input - (standard input) or --input-file <path>; {} when none is given
does:        Reads the caller's latest schema update request for the branch or baseline in the token's organisation, or null. Project read access is not required. Project refs use `<projectId>/<branch>` with a one-segment branch name; organisation refs use one segment. The trunk `main` answers invalid-request at `ref`.
input fields:
  ref: required; string
example input: {"ref":"<ref>"}
```

## openeng admin-sdk registerEngine

```text
openeng admin-sdk registerEngine [--input <json> | --input - | --input-file <path>]
route:       registerEngine (POST /engines/register)
module:      admin-sdk
capability:  admin.engineRegistration
actors:      person
step-up:     person: person-present
idempotent:  no
selector:    none
input:       a JSON object, given as --input <json>, --input - (standard input) or --input-file <path>; {} when none is given
does:        Register an ephemeral engine in the token organisation.
input fields:
  name: required; string
  isolation: required; "ephemeral"
  properties: required; map of string
  runtime: required; object
    the object has:
      image: required; string
example input: {"name":"<name>","isolation":"ephemeral","properties":{},"runtime":{"image":"<image>"}}
```

## openeng admin-sdk listEngines

```text
openeng admin-sdk listEngines [--input <json> | --input - | --input-file <path>]
route:       listEngines (POST /engines/list)
module:      admin-sdk
capability:  admin.engines
actors:      person
step-up:     person: none
idempotent:  no
selector:    none
input:       a JSON object, given as --input <json>, --input - (standard input) or --input-file <path>; {} when none is given
does:        List engines in the token organisation.
input fields:
  none
example input: {}
```

## openeng admin-sdk createFeedback

```text
openeng admin-sdk createFeedback [--input <json> | --input - | --input-file <path>]
route:       createFeedback (POST /feedback)
module:      admin-sdk
capability:  admin.feedback
actors:      person, service
step-up:     person: person-present; service: none
idempotent:  no
selector:    none
input:       a JSON object, given as --input <json>, --input - (standard input) or --input-file <path>; {} when none is given
does:        Files one bug report or feature request in the organisation the session is attached to, answering its identifier and filing time. The title is 1 to 200 characters after trimming, the body 1 to 8,000 characters; an optional projectId names a project the caller reads, and an optional context carries routeName, correlationId, cliVersion and protocolVersion. A route name the host does not know is admitted and recorded as unknown. Not idempotent: a retry files a second entry. A call from an agent-mode session waits until the person confirms it in the browser. A filer may file 100 entries in any 24 hours in one organisation; the next is refused bound-exceeded naming feedback-per-filer.
input fields:
  kind: required; "bug" | "feature"
  title: required; string
  body: required; string
  projectId: optional; string
  context: optional; object
    the object has:
      routeName: optional; string
      correlationId: optional; string
      cliVersion: optional; string
      protocolVersion: optional; integer
example input: {"kind":"bug","title":"<title>","body":"<body>"}
```

## openeng admin-sdk listFeedback

```text
openeng admin-sdk listFeedback [--input <json> | --input - | --input-file <path>]
route:       listFeedback (POST /feedback/list)
module:      admin-sdk
capability:  admin.feedbackList
actors:      person, service
step-up:     person: none; service: none
idempotent:  no
selector:    none
input:       a JSON object, given as --input <json>, --input - (standard input) or --input-file <path>; {} when none is given
does:        Lists feedback entries of the organisation the session is attached to, newest first, at most limit (1 to 50, default 20) per page with an opaque continuation. An organisation administrator lists every entry; any other caller lists only the entries they filed.
input fields:
  limit: optional; integer
  continuation: optional; string
example input: {}
```

## openeng admin-sdk registerClient

```text
openeng admin-sdk registerClient [--input <json> | --input - | --input-file <path>]
route:       registerClient (POST /clients)
module:      admin-sdk
capability:  admin.clientRegistration
actors:      person
step-up:     person: person-present
idempotent:  no
selector:    none
input:       a JSON object, given as --input <json>, --input - (standard input) or --input-file <path>; {} when none is given
does:        Registers a third-party application as a client of the caller's organisation.
input fields:
  displayName: required; string
  clientType: required; "public" | "confidential"
  redirectUris: required; array of string
  scopes: required; array of "objects.read" | "objects.write" | "branches.read" | "branches.write" | "branches.manage" | "builds.run" | "offline_access"
  publicKeySet: optional; object
    the object has:
      keys: required; array of map of nested
example input: {"displayName":"Example client","clientType":"public","redirectUris":["https://example.com/callback"],"scopes":[]}
```

## openeng admin-sdk listClients

```text
openeng admin-sdk listClients [--input <json> | --input - | --input-file <path>]
route:       listClients (POST /clients/list)
module:      admin-sdk
capability:  admin.clients
actors:      person
step-up:     person: none
idempotent:  no
selector:    none
input:       a JSON object, given as --input <json>, --input - (standard input) or --input-file <path>; {} when none is given
does:        Lists the clients of the caller's organisation, for a caller who administers them.
input fields:
  none
example input: {}
```

## openeng admin-sdk revokeClient

```text
openeng admin-sdk revokeClient [--input <json> | --input - | --input-file <path>]
route:       revokeClient (POST /client-revocations)
module:      admin-sdk
capability:  admin.clientRevocation
actors:      person
step-up:     person: none
idempotent:  no
selector:    none
input:       a JSON object, given as --input <json>, --input - (standard input) or --input-file <path>; {} when none is given
does:        Revokes a client; its grants and tokens stop on their next use.
input fields:
  clientId: required; string
example input: {"clientId":"<clientId>"}
```

## openeng admin-sdk replaceClientKeys

```text
openeng admin-sdk replaceClientKeys [--input <json> | --input - | --input-file <path>]
route:       replaceClientKeys (POST /client-keys)
module:      admin-sdk
capability:  admin.clientKeys
actors:      person
step-up:     person: person-present
idempotent:  no
selector:    none
input:       a JSON object, given as --input <json>, --input - (standard input) or --input-file <path>; {} when none is given
does:        Replaces a confidential client's public key set.
input fields:
  clientId: required; string
  publicKeySet: required; object
    the object has:
      keys: required; array of map of nested
example input: {"clientId":"<clientId>","publicKeySet":{"keys":[{"kty":"EC","crv":"P-256","x":"axfR8uEsQkf4vOblY6RA8ncDfYEt6zOg9KE5RdiYwpY","y":"T-NC4v4af5uO5-tKfA-eFivOM1drMV7Oy7ZAaDe_UfU"}]}}
```

## openeng admin-sdk createServiceIdentity

```text
openeng admin-sdk createServiceIdentity [--input <json> | --input - | --input-file <path>]
route:       createServiceIdentity (POST /service-identities)
module:      admin-sdk
capability:  admin.serviceIdentity
actors:      person
step-up:     person: person-present
idempotent:  no
selector:    none
input:       a JSON object, given as --input <json>, --input - (standard input) or --input-file <path>; {} when none is given
does:        Creates a service identity in an organisation.
input fields:
  name: required; string
example input: {"name":"<name>"}
```

## openeng admin-sdk revokeServiceIdentity

```text
openeng admin-sdk revokeServiceIdentity [--input <json> | --input - | --input-file <path>]
route:       revokeServiceIdentity (POST /service-identities/revocation)
module:      admin-sdk
capability:  admin.serviceIdentityRevocation
actors:      person
step-up:     person: none
idempotent:  no
selector:    none
input:       a JSON object, given as --input <json>, --input - (standard input) or --input-file <path>; {} when none is given
does:        Revokes a service identity.
input fields:
  principalId: required; string
example input: {"principalId":"<principalId>"}
```

## openeng admin-sdk revokeServiceCredential

```text
openeng admin-sdk revokeServiceCredential [--input <json> | --input - | --input-file <path>]
route:       revokeServiceCredential (POST /service-credentials/revocation)
module:      admin-sdk
capability:  admin.serviceCredentialRevocation
actors:      person
step-up:     person: none
idempotent:  no
selector:    none
input:       a JSON object, given as --input <json>, --input - (standard input) or --input-file <path>; {} when none is given
does:        Revokes a service identity's credential.
input fields:
  credentialId: required; string
example input: {"credentialId":"<credentialId>"}
```

## openeng admin-sdk grantMembership

```text
openeng admin-sdk grantMembership [--input <json> | --input - | --input-file <path>]
route:       grantMembership (POST /memberships)
module:      admin-sdk
capability:  admin.membership
actors:      person
step-up:     person: person-present
idempotent:  no
selector:    none
input:       a JSON object, given as --input <json>, --input - (standard input) or --input-file <path>; {} when none is given
does:        Grants a principal a role in a scope. An unknown role answers unknown-role with the deployment's roleKeys.
input fields:
  principalId: required; string
  scopeKind: required; "organisation" | "project"
  scopeId: required; string
  roleKey: required; string
example input: {"principalId":"<principalId>","scopeKind":"organisation","scopeId":"<scopeId>","roleKey":"<roleKey>"}
```

## openeng admin-sdk revokeMembership

```text
openeng admin-sdk revokeMembership [--input <json> | --input - | --input-file <path>]
route:       revokeMembership (POST /membership-revocations)
module:      admin-sdk
capability:  admin.membershipRevocation
actors:      person
step-up:     person: none
idempotent:  no
selector:    none
input:       a JSON object, given as --input <json>, --input - (standard input) or --input-file <path>; {} when none is given
does:        Revokes a principal's membership of a scope; at organisation scope, also revokes their memberships in its projects.
input fields:
  principalId: required; string
  scopeKind: required; "organisation" | "project"
  scopeId: required; string
example input: {"principalId":"<principalId>","scopeKind":"organisation","scopeId":"<scopeId>"}
```

## openeng admin-sdk leaveMembership

```text
openeng admin-sdk leaveMembership [--input <json> | --input - | --input-file <path>]
route:       leaveMembership (POST /memberships/leave)
module:      admin-sdk
capability:  admin.membershipRevocation
actors:      person
step-up:     person: none
idempotent:  no
selector:    none
input:       a JSON object, given as --input <json>, --input - (standard input) or --input-file <path>; {} when none is given
does:        Leaves the caller's own membership of a scope; at organisation scope, also removes their project memberships and ends their work, run sessions and open launches. An ended project permits departure.
input fields:
  scopeKind: required; "organisation" | "project"
  scopeId: required; string
example input: {"scopeKind":"organisation","scopeId":"<scopeId>"}
```

## openeng admin-sdk setModelId

```text
openeng admin-sdk setModelId [--input <json> | --input - | --input-file <path>]
route:       setModelId (POST /model-configuration/model)
module:      admin-sdk
capability:  admin.modelId
actors:      person
step-up:     person: none
idempotent:  no
selector:    none
input:       a JSON object, given as --input <json>, --input - (standard input) or --input-file <path>; {} when none is given
does:        Changes the model an organisation's agents use, keeping the key it holds, for a caller who administers agents.
input fields:
  model: required; string
example input: {"model":"<model>"}
```

## openeng admin-sdk readModelConfigurationStatus

```text
openeng admin-sdk readModelConfigurationStatus [--input <json> | --input - | --input-file <path>]
route:       readModelConfigurationStatus (POST /model-configuration/status)
module:      admin-sdk
capability:  admin.modelConfigurationStatus
actors:      person
step-up:     person: none
idempotent:  no
selector:    none
input:       a JSON object, given as --input <json>, --input - (standard input) or --input-file <path>; {} when none is given
does:        Reads whether the caller's organisation has a model configured, and its provider, model and the time it was set, for a caller who administers agents. The key is never answered.
input fields:
  none
example input: {}
```

## openeng admin-sdk readAccount

```text
openeng admin-sdk readAccount [--input <json> | --input - | --input-file <path>]
route:       readAccount (POST /account)
module:      admin-sdk
capability:  admin.account
actors:      person
step-up:     person: none
idempotent:  no
selector:    none
input:       a JSON object, given as --input <json>, --input - (standard input) or --input-file <path>; {} when none is given
does:        Reads the caller's own principal identifier, display name and registered email.
input fields:
  none
example input: {}
```

## openeng admin-sdk readDisplayNames

```text
openeng admin-sdk readDisplayNames [--input <json> | --input - | --input-file <path>]
route:       readDisplayNames (POST /principals/names)
module:      admin-sdk
capability:  admin.displayNames
actors:      person, app:hosted
step-up:     person: none; app:hosted: none
idempotent:  no
selector:    none
input:       a JSON object, given as --input <json>, --input - (standard input) or --input-file <path>; {} when none is given
does:        Reads the display names of principals the caller may see.
input fields:
  principalIds: required; array of string
example input: {"principalIds":[]}
```

## openeng admin-sdk listMembers

```text
openeng admin-sdk listMembers --selector <json> [--input <json> | --input - | --input-file <path>]
route:       listMembers (POST /projects/members)
module:      admin-sdk
capability:  admin.members
actors:      person, app:hosted
step-up:     person: none; app:hosted: none
idempotent:  no
selector:    project, given as --selector <json>
input:       a JSON object, given as --input <json>, --input - (standard input) or --input-file <path>; {} when none is given
does:        Lists the members of a project and the role options, each with its capabilities sorted by name. An empty capabilities list means that the role grants no capability.
input fields:
  none
selector keys:
  projectId: required; string
example input: {}
```

## openeng admin-sdk changeMembershipRole

```text
openeng admin-sdk changeMembershipRole [--input <json> | --input - | --input-file <path>]
route:       changeMembershipRole (POST /membership-roles)
module:      admin-sdk
capability:  admin.membershipRole
actors:      person
step-up:     person: person-present
idempotent:  no
selector:    none
input:       a JSON object, given as --input <json>, --input - (standard input) or --input-file <path>; {} when none is given
does:        Changes a principal's role in a scope; missing membership administration answers `capability-missing`.
input fields:
  principalId: required; string
  scopeKind: required; "organisation" | "project"
  scopeId: required; string
  roleKey: required; string
example input: {"principalId":"<principalId>","scopeKind":"organisation","scopeId":"<scopeId>","roleKey":"<roleKey>"}
```

## openeng admin-sdk listOrganisationMembers

```text
openeng admin-sdk listOrganisationMembers [--input <json> | --input - | --input-file <path>]
route:       listOrganisationMembers (POST /organisation/members)
module:      admin-sdk
capability:  admin.organisationMembers
actors:      person, app:hosted
step-up:     person: none; app:hosted: none
idempotent:  no
selector:    none
input:       a JSON object, given as --input <json>, --input - (standard input) or --input-file <path>; {} when none is given
does:        Lists the memberships of the caller's organisation and of the projects of it the caller may read.
input fields:
  none
example input: {}
```

## openeng admin-sdk listServiceIdentities

```text
openeng admin-sdk listServiceIdentities [--input <json> | --input - | --input-file <path>]
route:       listServiceIdentities (POST /organisation/service-identities)
module:      admin-sdk
capability:  admin.serviceIdentities
actors:      person
step-up:     person: none
idempotent:  no
selector:    none
input:       a JSON object, given as --input <json>, --input - (standard input) or --input-file <path>; {} when none is given
does:        Lists the service identities of the caller's organisation, for a caller who administers them.
input fields:
  none
example input: {}
```

## openeng admin-sdk createInvitation

```text
openeng admin-sdk createInvitation [--input <json> | --input - | --input-file <path>]
route:       createInvitation (POST /invitations)
module:      admin-sdk
capability:  admin.invitation
actors:      person
step-up:     person: person-present
idempotent:  no
selector:    none
input:       a JSON object, given as --input <json>, --input - (standard input) or --input-file <path>; {} when none is given
does:        Invites an address in an organisation role with up to 50 optional projectRoles, each a projectId and roleKey. Every project must belong to the invitation's organisation. The caller must administer members there and on each project. An unknown role answers unknown-role with the deployment's roleKeys; a known role above the caller's answers above-caller-role.
input fields:
  email: required; string
  roleKey: required; string
  projectRoles: optional; array of object
    each element has:
      projectId: required; string
      roleKey: required; string
example input: {"email":"<email>","roleKey":"<roleKey>"}
```

## openeng admin-sdk listInvitations

```text
openeng admin-sdk listInvitations [--input <json> | --input - | --input-file <path>]
route:       listInvitations (POST /invitations/list)
module:      admin-sdk
capability:  admin.invitationList
actors:      person
step-up:     person: none
idempotent:  no
selector:    none
input:       a JSON object, given as --input <json>, --input - (standard input) or --input-file <path>; {} when none is given
does:        Lists pending invitations of the caller's organisation, including each invitation's projectRoles, for a caller who administers its members.
input fields:
  none
example input: {}
```

## openeng admin-sdk revokeInvitation

```text
openeng admin-sdk revokeInvitation [--input <json> | --input - | --input-file <path>]
route:       revokeInvitation (POST /invitation-revocations)
module:      admin-sdk
capability:  admin.invitationRevocation
actors:      person
step-up:     person: none
idempotent:  no
selector:    none
input:       a JSON object, given as --input <json>, --input - (standard input) or --input-file <path>; {} when none is given
does:        Revokes a pending invitation of the caller's organisation, for a caller who administers its members.
input fields:
  invitationId: required; string
example input: {"invitationId":"<invitationId>"}
```

## openeng admin-sdk readInvitationDomainRule

```text
openeng admin-sdk readInvitationDomainRule [--input <json> | --input - | --input-file <path>]
route:       readInvitationDomainRule (POST /invitation-domain-rule/read)
module:      admin-sdk
capability:  admin.invitationDomainRuleRead
actors:      person
step-up:     person: none
idempotent:  no
selector:    none
input:       a JSON object, given as --input <json>, --input - (standard input) or --input-file <path>; {} when none is given
does:        Reads the domains the caller's organisation invites from, for an owner.
input fields:
  none
example input: {}
```

## openeng admin-sdk setInvitationDomainRule

```text
openeng admin-sdk setInvitationDomainRule [--input <json> | --input - | --input-file <path>]
route:       setInvitationDomainRule (POST /invitation-domain-rule)
module:      admin-sdk
capability:  admin.invitationDomainRule
actors:      person
step-up:     person: person-present
idempotent:  no
selector:    none
input:       a JSON object, given as --input <json>, --input - (standard input) or --input-file <path>; {} when none is given
does:        Replaces the domains the caller's organisation invites from, for an owner.
input fields:
  restricted: required; boolean
  domains: required; array of string
example input: {"restricted":false,"domains":[]}
```

## openeng admin-sdk reissueInvitation

```text
openeng admin-sdk reissueInvitation [--input <json> | --input - | --input-file <path>]
route:       reissueInvitation (POST /invitation-reissues)
module:      admin-sdk
capability:  admin.invitationReissue
actors:      person
step-up:     person: person-present
idempotent:  no
selector:    none
input:       a JSON object, given as --input <json>, --input - (standard input) or --input-file <path>; {} when none is given
does:        Replaces the code and the expiry of a pending invitation of the caller's organisation and answers the new link, for a caller who administers its members.
input fields:
  invitationId: required; string
example input: {"invitationId":"<invitationId>"}
```

## openeng admin-sdk createPlatformInvitation

```text
openeng admin-sdk createPlatformInvitation [--input <json> | --input - | --input-file <path>]
route:       createPlatformInvitation (POST /platform-invitations)
module:      admin-sdk
capability:  admin.platformInvitation
actors:      person
step-up:     person: person-present
idempotent:  no
selector:    none
input:       a JSON object, given as --input <json>, --input - (standard input) or --input-file <path>; {} when none is given
does:        Invites an address to create a new organisation, for a platform administrator, and answers the link.
input fields:
  email: required; string
  organisationName: optional; string
example input: {"email":"<email>"}
```

## openeng admin-sdk listPlatformInvitations

```text
openeng admin-sdk listPlatformInvitations [--input <json> | --input - | --input-file <path>]
route:       listPlatformInvitations (POST /platform-invitations/list)
module:      admin-sdk
capability:  admin.platformInvitationList
actors:      person
step-up:     person: none
idempotent:  no
selector:    none
input:       a JSON object, given as --input <json>, --input - (standard input) or --input-file <path>; {} when none is given
does:        Lists the pending platform invitations, for a platform administrator.
input fields:
  none
example input: {}
```

## openeng admin-sdk revokePlatformInvitation

```text
openeng admin-sdk revokePlatformInvitation [--input <json> | --input - | --input-file <path>]
route:       revokePlatformInvitation (POST /platform-invitation-revocations)
module:      admin-sdk
capability:  admin.platformInvitationRevocation
actors:      person
step-up:     person: none
idempotent:  no
selector:    none
input:       a JSON object, given as --input <json>, --input - (standard input) or --input-file <path>; {} when none is given
does:        Revokes a pending platform invitation, for a platform administrator.
input fields:
  invitationId: required; string
example input: {"invitationId":"<invitationId>"}
```

## openeng admin-sdk reissuePlatformInvitation

```text
openeng admin-sdk reissuePlatformInvitation [--input <json> | --input - | --input-file <path>]
route:       reissuePlatformInvitation (POST /platform-invitation-reissues)
module:      admin-sdk
capability:  admin.platformInvitationReissue
actors:      person
step-up:     person: person-present
idempotent:  no
selector:    none
input:       a JSON object, given as --input <json>, --input - (standard input) or --input-file <path>; {} when none is given
does:        Replaces the code and the expiry of a pending platform invitation and answers the new link, for a platform administrator.
input fields:
  invitationId: required; string
example input: {"invitationId":"<invitationId>"}
```

## openeng admin-sdk readWebOrigin

```text
openeng admin-sdk readWebOrigin [--input <json> | --input - | --input-file <path>]
route:       readWebOrigin (POST /web-origin/read)
module:      admin-sdk
capability:  admin.webOrigin
actors:      person, service
step-up:     person: none; service: none
idempotent:  no
selector:    none
input:       a JSON object, given as --input <json>, --input - (standard input) or --input-file <path>; {} when none is given
does:        Reads the origin of the deployment's web application, or null when the host is given none.
input fields:
  none
example input: {}
```

## openeng admin-sdk readCallerCapabilities

```text
openeng admin-sdk readCallerCapabilities [--input <json> | --input - | --input-file <path>]
route:       readCallerCapabilities (POST /caller-capabilities/read)
module:      admin-sdk
capability:  admin.callerCapabilities
actors:      person, app:hosted
step-up:     person: none; app:hosted: none
idempotent:  no
selector:    none
input:       a JSON object, given as --input <json>, --input - (standard input) or --input-file <path>; {} when none is given
does:        Lists the capabilities the caller holds in the token's organisation and its projects, and the platform capability for a platform administrator.
input fields:
  none
example input: {}
```

## openeng admin-sdk listAudit

```text
openeng admin-sdk listAudit --selector <json> [--input <json> | --input - | --input-file <path>]
route:       listAudit (POST /audit)
module:      admin-sdk
capability:  admin.audit
actors:      person, agent:explore, agent:apply, agent:types
step-up:     person: none; agent:explore: none; agent:apply: none; agent:types: none
idempotent:  no
selector:    project, given as --selector <json>
input:       a JSON object, given as --input <json>, --input - (standard input) or --input-file <path>; {} when none is given
does:        Lists the audit records of a project.
input fields:
  limit: required; integer
  cursor: optional; string
selector keys:
  projectId: required; string
example input: {"limit":1}
```

## openeng admin-sdk listOrganisationAudit

```text
openeng admin-sdk listOrganisationAudit [--input <json> | --input - | --input-file <path>]
route:       listOrganisationAudit (POST /organisation-audit)
module:      admin-sdk
capability:  admin.organisationAudit
actors:      person
step-up:     person: none
idempotent:  no
selector:    none
input:       a JSON object, given as --input <json>, --input - (standard input) or --input-file <path>; {} when none is given
does:        Lists the organisation-level actions the caller may read.
input fields:
  limit: required; integer
  verbPrefix: required; string
  cursor: optional; string
example input: {"limit":1,"verbPrefix":"<verbPrefix>"}
```

## openeng admin-sdk addRefRule

```text
openeng admin-sdk addRefRule --selector <json> [--input <json> | --input - | --input-file <path>]
route:       addRefRule (POST /ref-rules)
module:      admin-sdk
capability:  admin.ref-rules
actors:      person
step-up:     person: none
idempotent:  no
selector:    project, given as --selector <json>
input:       a JSON object, given as --input <json>, --input - (standard input) or --input-file <path>; {} when none is given
does:        Adds one of the selected project's rules with extent, pattern and settings, and answers the full rule. Extent is ref or rows; organisation rules take ref only. Settings include consequence (open, merge-only or locked-rows-only), requireProposal, requiredApprovals, approverMinRole, restrictDeletions, approvers and bypass. Omitted settings take the defaults. Only project ref rules may restrict deletions; approvals need a proposal and an approver. An add with the same owner, case-insensitive pattern, extent and consequence returns the existing rule without an audit write if its settings are identical; otherwise it is refused with duplicate-rule. A different consequence can create a separate rule.
input fields:
  extent: required; "ref" | "rows"
  pattern: required; string
  settings: optional; object
    the object has:
      consequence: optional; "open" | "merge-only" | "locked-rows-only"
      requireProposal: optional; boolean
      requiredApprovals: optional; integer
      approverMinRole: optional; "contributor" | "maintainer" | "owner" | null
      restrictDeletions: optional; boolean
      approvers: optional; array of string
      bypass: optional; array of kinds: role | person | service | client
        each element is one of these shapes:
          kind role:
            roleKey: required; "contributor" | "maintainer" | "owner"
          kind person:
            personId: required; string
          kind service:
            serviceIdentityId: required; string
          kind client:
            clientId: required; string
selector keys:
  projectId: required; string
example input: {"extent":"ref","pattern":"<pattern>"}
```

## openeng admin-sdk listRefRules

```text
openeng admin-sdk listRefRules --selector <json> [--input <json> | --input - | --input-file <path>]
route:       listRefRules (POST /projects/ref-rules)
module:      admin-sdk
capability:  admin.ref-rules
actors:      person
step-up:     person: none
idempotent:  no
selector:    project, given as --selector <json>
input:       a JSON object, given as --input <json>, --input - (standard input) or --input-file <path>; {} when none is given
does:        Lists the selected project's visible rules with each identifier, extent and pattern, and every setting and member list.
input fields:
  none
selector keys:
  projectId: required; string
example input: {}
```

## openeng admin-sdk removeRefRule

```text
openeng admin-sdk removeRefRule --selector <json> [--input <json> | --input - | --input-file <path>]
route:       removeRefRule (POST /ref-rule-removals)
module:      admin-sdk
capability:  admin.ref-rules
actors:      person
step-up:     person: person-present
idempotent:  no
selector:    project, given as --selector <json>
input:       a JSON object, given as --input <json>, --input - (standard input) or --input-file <path>; {} when none is given
does:        Removes one of the selected project's rules by identifier and answers its ruleId. An absent, unreadable or other owner's identifier answers not-found.
input fields:
  ruleId: required; string
selector keys:
  projectId: required; string
example input: {"ruleId":"<ruleId>"}
```

## openeng admin-sdk updateRefRule

```text
openeng admin-sdk updateRefRule --selector <json> [--input <json> | --input - | --input-file <path>]
route:       updateRefRule (POST /ref-rule-updates)
module:      admin-sdk
capability:  admin.ref-rules
actors:      person
step-up:     person: person-present
idempotent:  no
selector:    project, given as --selector <json>
input:       a JSON object, given as --input <json>, --input - (standard input) or --input-file <path>; {} when none is given
does:        Changes one of the selected project's rules in place and answers the full rule. Send ruleId and settings only. Omitted settings keep their values; supplied lists replace their members. A consequence already held by another rule on this pattern is refused duplicate-rule. Extent and pattern cannot change. Every update requires step-up confirmation in an agent-mode session. An absent, unreadable or other owner's identifier answers not-found.
input fields:
  ruleId: required; string
  settings: required; object
    the object has:
      consequence: optional; "open" | "merge-only" | "locked-rows-only"
      requireProposal: optional; boolean
      requiredApprovals: optional; integer
      approverMinRole: optional; "contributor" | "maintainer" | "owner" | null
      restrictDeletions: optional; boolean
      approvers: optional; array of string
      bypass: optional; array of kinds: role | person | service | client
        each element is one of these shapes:
          kind role:
            roleKey: required; "contributor" | "maintainer" | "owner"
          kind person:
            personId: required; string
          kind service:
            serviceIdentityId: required; string
          kind client:
            clientId: required; string
selector keys:
  projectId: required; string
example input: {"ruleId":"<ruleId>","settings":{}}
```

## openeng admin-sdk addOrganisationRule

```text
openeng admin-sdk addOrganisationRule [--input <json> | --input - | --input-file <path>]
route:       addOrganisationRule (POST /organisation-ref-rules)
module:      admin-sdk
capability:  admin.organisation-ref-rules
actors:      person
step-up:     person: none
idempotent:  no
selector:    none
input:       a JSON object, given as --input <json>, --input - (standard input) or --input-file <path>; {} when none is given
does:        Adds one of the attached organisation's rules with extent, pattern and settings, and answers the full rule. Extent is ref or rows; organisation rules take ref only. Settings include consequence (open, merge-only or locked-rows-only), requireProposal, requiredApprovals, approverMinRole, restrictDeletions, approvers and bypass. Omitted settings take the defaults. Only project ref rules may restrict deletions; approvals need a proposal and an approver. An add with the same owner, case-insensitive pattern, extent and consequence returns the existing rule without an audit write if its settings are identical; otherwise it is refused with duplicate-rule. A different consequence can create a separate rule.
input fields:
  extent: required; "ref" | "rows"
  pattern: required; string
  settings: optional; object
    the object has:
      consequence: optional; "open" | "merge-only" | "locked-rows-only"
      requireProposal: optional; boolean
      requiredApprovals: optional; integer
      approverMinRole: optional; "contributor" | "maintainer" | "owner" | null
      restrictDeletions: optional; boolean
      approvers: optional; array of string
      bypass: optional; array of kinds: role | person | service | client
        each element is one of these shapes:
          kind role:
            roleKey: required; "contributor" | "maintainer" | "owner"
          kind person:
            personId: required; string
          kind service:
            serviceIdentityId: required; string
          kind client:
            clientId: required; string
example input: {"extent":"ref","pattern":"<pattern>"}
```

## openeng admin-sdk listOrganisationRules

```text
openeng admin-sdk listOrganisationRules [--input <json> | --input - | --input-file <path>]
route:       listOrganisationRules (POST /organisation-ref-rules/list)
module:      admin-sdk
capability:  admin.organisation-ref-rules
actors:      person
step-up:     person: none
idempotent:  no
selector:    none
input:       a JSON object, given as --input <json>, --input - (standard input) or --input-file <path>; {} when none is given
does:        Lists the attached organisation's visible rules with each identifier, extent and pattern, and every setting and member list; read on a project in the organisation is enough.
input fields:
  none
example input: {}
```

## openeng admin-sdk removeOrganisationRule

```text
openeng admin-sdk removeOrganisationRule [--input <json> | --input - | --input-file <path>]
route:       removeOrganisationRule (POST /organisation-ref-rule-removals)
module:      admin-sdk
capability:  admin.organisation-ref-rules
actors:      person
step-up:     person: person-present
idempotent:  no
selector:    none
input:       a JSON object, given as --input <json>, --input - (standard input) or --input-file <path>; {} when none is given
does:        Removes one of the attached organisation's rules by identifier and answers its ruleId. An absent, unreadable or other owner's identifier answers not-found.
input fields:
  ruleId: required; string
example input: {"ruleId":"<ruleId>"}
```

## openeng admin-sdk updateOrganisationRule

```text
openeng admin-sdk updateOrganisationRule [--input <json> | --input - | --input-file <path>]
route:       updateOrganisationRule (POST /organisation-ref-rule-updates)
module:      admin-sdk
capability:  admin.organisation-ref-rules
actors:      person
step-up:     person: person-present
idempotent:  no
selector:    none
input:       a JSON object, given as --input <json>, --input - (standard input) or --input-file <path>; {} when none is given
does:        Changes one of the attached organisation's rules in place and answers the full rule. Send ruleId and settings only. Omitted settings keep their values; supplied lists replace their members. A consequence already held by another rule on this pattern is refused duplicate-rule. Extent and pattern cannot change. Every update requires step-up confirmation in an agent-mode session. An absent, unreadable or other owner's identifier answers not-found.
input fields:
  ruleId: required; string
  settings: required; object
    the object has:
      consequence: optional; "open" | "merge-only" | "locked-rows-only"
      requireProposal: optional; boolean
      requiredApprovals: optional; integer
      approverMinRole: optional; "contributor" | "maintainer" | "owner" | null
      restrictDeletions: optional; boolean
      approvers: optional; array of string
      bypass: optional; array of kinds: role | person | service | client
        each element is one of these shapes:
          kind role:
            roleKey: required; "contributor" | "maintainer" | "owner"
          kind person:
            personId: required; string
          kind service:
            serviceIdentityId: required; string
          kind client:
            clientId: required; string
example input: {"ruleId":"<ruleId>","settings":{}}
```

## openeng admin-sdk createOrganisationRef

```text
openeng admin-sdk createOrganisationRef [--input <json> | --input - | --input-file <path>]
route:       createOrganisationRef (POST /organisation-refs)
module:      admin-sdk
capability:  admin.organisation-refs
actors:      person
step-up:     person: none
idempotent:  no
selector:    none
input:       a JSON object, given as --input <json>, --input - (standard input) or --input-file <path>; {} when none is given
does:        Creates a branch or baseline at the organisation's trunk head and answers its name, readOnly and creation attribution. The optional readOnly flag defaults to false; the name is one non-reserved name segment.
input fields:
  name: required; string
  readOnly: optional; boolean
example input: {"name":"<name>"}
```

## openeng admin-sdk listOrganisationRefs

```text
openeng admin-sdk listOrganisationRefs [--input <json> | --input - | --input-file <path>]
route:       listOrganisationRefs (POST /organisation-refs/list)
module:      admin-sdk
capability:  admin.organisation-refs
actors:      person
step-up:     person: none
idempotent:  no
selector:    none
input:       a JSON object, given as --input <json>, --input - (standard input) or --input-file <path>; {} when none is given
does:        Lists branches and baselines in the attached organisation, including each name, readOnly and creation attribution; read on a project in the organisation is enough.
input fields:
  none
example input: {}
```

## openeng admin-sdk deleteOrganisationRef

```text
openeng admin-sdk deleteOrganisationRef [--input <json> | --input - | --input-file <path>]
route:       deleteOrganisationRef (POST /organisation-ref-deletions)
module:      admin-sdk
capability:  admin.organisation-refs
actors:      person
step-up:     person: person-present
idempotent:  no
selector:    none
input:       a JSON object, given as --input <json>, --input - (standard input) or --input-file <path>; {} when none is given
does:        Deletes a writable branch from the attached organisation and answers its name. A baseline cannot be deleted.
input fields:
  name: required; string
example input: {"name":"<name>"}
```

## openeng admin-sdk markOrganisationRefReadOnly

```text
openeng admin-sdk markOrganisationRefReadOnly [--input <json> | --input - | --input-file <path>]
route:       markOrganisationRefReadOnly (POST /organisation-ref-read-only)
module:      admin-sdk
capability:  admin.organisation-refs
actors:      person
step-up:     person: none
idempotent:  no
selector:    none
input:       a JSON object, given as --input <json>, --input - (standard input) or --input-file <path>; {} when none is given
does:        Marks an organisation branch read-only as a baseline and answers its full record. An absent name answers not-found; an unauthorised caller answers not-permitted.
input fields:
  name: required; string
example input: {"name":"<name>"}
```

## openeng admin-sdk readAgentCeiling

```text
openeng admin-sdk readAgentCeiling --selector <json> [--input <json> | --input - | --input-file <path>]
route:       readAgentCeiling (POST /projects/agent-ceiling)
module:      admin-sdk
capability:  admin.agent-ceiling
actors:      person
step-up:     person: none
idempotent:  no
selector:    project, given as --selector <json>
input:       a JSON object, given as --input <json>, --input - (standard input) or --input-file <path>; {} when none is given
does:        Reads the selected project's maximum agent role as { ceiling }: contributor or maintainer. An absent or unreadable project answers not-found.
input fields:
  none
selector keys:
  projectId: required; string
example input: {}
```

## openeng admin-sdk renameProject

```text
openeng admin-sdk renameProject --selector <json> [--input <json> | --input - | --input-file <path>]
route:       renameProject (POST /projects/rename)
module:      admin-sdk
capability:  admin.projectRename
actors:      person
step-up:     person: person-present
idempotent:  no
selector:    project, given as --selector <json>
input:       a JSON object, given as --input <json>, --input - (standard input) or --input-file <path>; {} when none is given
does:        Changes the selected project's display name and answers its project id and name. An empty name answers invalid-request at name; whitespace is preserved. A reader's rename, an absent project and an unreadable project each answer not-found.
input fields:
  name: required; string
selector keys:
  projectId: required; string
example input: {"name":"<name>"}
```

## openeng admin-sdk setAgentCeiling

```text
openeng admin-sdk setAgentCeiling --selector <json> [--input <json> | --input - | --input-file <path>]
route:       setAgentCeiling (POST /agent-ceiling)
module:      admin-sdk
capability:  admin.agent-ceiling
actors:      person
step-up:     person: person-present
idempotent:  no
selector:    project, given as --selector <json>
input:       a JSON object, given as --input <json>, --input - (standard input) or --input-file <path>; {} when none is given
does:        Sets the selected project's maximum agent role to contributor or maintainer and answers { ceiling }. An unknown role answers invalid-request at ceiling.
input fields:
  ceiling: required; "contributor" | "maintainer"
selector keys:
  projectId: required; string
example input: {"ceiling":"contributor"}
```

## openeng admin-sdk createProject

```text
openeng admin-sdk createProject [--input <json> | --input - | --input-file <path>] [--idempotency-key <key>]
route:       createProject (POST /project-creations)
module:      admin-sdk
capability:  admin.projects
actors:      person
step-up:     person: none
idempotent:  yes; a key is minted and printed when --idempotency-key is absent
selector:    none
input:       a JSON object, given as --input <json>, --input - (standard input) or --input-file <path>; {} when none is given
does:        Creates a project in the organisation the session is attached to and answers it with its namespace.
input fields:
  name: required; string
  correlationId: optional; string
example input: {"name":"<name>"}
```

## openeng admin-sdk createOrganisation

```text
openeng admin-sdk createOrganisation [--input <json> | --input - | --input-file <path>] [--idempotency-key <key>]
route:       createOrganisation (POST /organisation-creations)
module:      admin-sdk
capability:  admin.organisations
actors:      person
step-up:     person: none
idempotent:  yes; a key is minted and printed when --idempotency-key is absent
selector:    none
input:       a JSON object, given as --input <json>, --input - (standard input) or --input-file <path>; {} when none is given
does:        Creates an organisation for the signed-in user, who becomes its owner, and answers it with its namespace.
input fields:
  name: required; string
  correlationId: optional; string
example input: {"name":"<name>"}
```

## openeng admin-sdk createConnection

```text
openeng admin-sdk createConnection [--input <json> | --input - | --input-file <path>]
route:       createConnection (POST /connections)
module:      admin-sdk
capability:  admin.connectionCreation
actors:      person
step-up:     person: none
idempotent:  no
selector:    none
input:       a JSON object, given as --input <json>, --input - (standard input) or --input-file <path>; {} when none is given
does:        Creates a connection to an external source system for the signed-in person: its mirror project and its service identity. The connection commits whether or not its types could be drafted, and the answer says which.
input fields:
  name: required; string
  system: required; "onshape"
  stack: required; string
  companyId: required; string | null
  selection: required; kinds: company | team | owner
    kind company: label (string, optional)
    kind team: teamId (string, required), label (string, optional)
    kind owner: ownerId (string, required), label (string, optional)
example input: {"name":"<name>","system":"onshape","stack":"<stack>","companyId":null,"selection":{"kind":"company"}}
```

## openeng admin-sdk listConnections

```text
openeng admin-sdk listConnections [--input <json> | --input - | --input-file <path>]
route:       listConnections (POST /connections/list)
module:      admin-sdk
capability:  admin.connections
actors:      person
step-up:     person: none
idempotent:  no
selector:    none
input:       a JSON object, given as --input <json>, --input - (standard input) or --input-file <path>; {} when none is given
does:        Lists the connections whose mirror project the caller reads, each with its last run and whether the caller may start a run.
input fields:
  none
example input: {}
```

## openeng admin-sdk readConnectionIdentity

```text
openeng admin-sdk readConnectionIdentity --selector <json> [--input <json> | --input - | --input-file <path>]
route:       readConnectionIdentity (POST /connections/identity)
module:      admin-sdk
capability:  admin.connectionIdentity
actors:      person
step-up:     person: none
idempotent:  no
selector:    connection, given as --selector <json>
input:       a JSON object, given as --input <json>, --input - (standard input) or --input-file <path>; {} when none is given
does:        Reads the upstream account, company and selection of a connection, for a caller who administers projects.
input fields:
  none
selector keys:
  connectionId: required; string
example input: {}
```

## openeng admin-sdk draftConnectorTypes

```text
openeng admin-sdk draftConnectorTypes --selector <json> [--input <json> | --input - | --input-file <path>]
route:       draftConnectorTypes (POST /connections/types)
module:      admin-sdk
capability:  admin.connectorTypes
actors:      person
step-up:     person: none
idempotent:  no
selector:    connection, given as --selector <json>
input:       a JSON object, given as --input <json>, --input - (standard input) or --input-file <path>; {} when none is given
does:        Drafts the connector's types as a change set for a person to review and accept, or answers that they are already approved or already waiting.
input fields:
  none
selector keys:
  connectionId: required; string
example input: {}
```

## openeng admin-sdk revokeConnection

```text
openeng admin-sdk revokeConnection --selector <json> [--input <json> | --input - | --input-file <path>]
route:       revokeConnection (POST /connection-revocations)
module:      admin-sdk
capability:  admin.connectionRevocation
actors:      person
step-up:     person: none
idempotent:  no
selector:    connection, given as --selector <json>
input:       a JSON object, given as --input <json>, --input - (standard input) or --input-file <path>; {} when none is given
does:        Revokes a connection: its running runs end as failed and its service identity can no longer act.
input fields:
  none
selector keys:
  connectionId: required; string
example input: {}
```

## openeng admin-sdk startImportRun

```text
openeng admin-sdk startImportRun --selector <json> [--input <json> | --input - | --input-file <path>]
route:       startImportRun (POST /import-runs)
module:      admin-sdk
capability:  admin.importRunStart
actors:      person
step-up:     person: none
idempotent:  no
selector:    connection, given as --selector <json>
input:       a JSON object, given as --input <json>, --input - (standard input) or --input-file <path>; {} when none is given
does:        Starts a run that imports the connection's source into its mirror project, and answers the run once its row has committed.
input fields:
  none
selector keys:
  connectionId: required; string
example input: {}
```

## openeng admin-sdk listImportRuns

```text
openeng admin-sdk listImportRuns --selector <json> [--input <json> | --input - | --input-file <path>]
route:       listImportRuns (POST /import-runs/list)
module:      admin-sdk
capability:  admin.importRuns
actors:      person
step-up:     person: none
idempotent:  no
selector:    connection, given as --selector <json>
input:       a JSON object, given as --input <json>, --input - (standard input) or --input-file <path>; {} when none is given
does:        Lists the runs of a connection, newest first, or the one run named.
input fields:
  runId: optional; string
selector keys:
  connectionId: required; string
example input: {}
```

## openeng admin-sdk closeImportRun

```text
openeng admin-sdk closeImportRun --selector <json> [--input <json> | --input - | --input-file <path>]
route:       closeImportRun (POST /import-run-closes)
module:      admin-sdk
capability:  admin.importRunClose
actors:      service, person
step-up:     service: none; person: none
idempotent:  no
selector:    connection, given as --selector <json>
input:       a JSON object, given as --input <json>, --input - (standard input) or --input-file <path>; {} when none is given
does:        Ends a running run: the connection's service identity as succeeded or failed, or the person who started it as failed.
input fields:
  outcome succeeded: runId (string, required), commits (array of string, required), complete (boolean, required), sourceCheckpoint (integer | null, required), counts (object, required)
    the object has:
      created: required; integer
      updated: required; integer
      unchanged: required; integer
      withdrawn: required; integer
      carried: required; integer
      overwritten: required; integer
  outcome failed: runId (string, required), failure ("auth" | "timeout" | "size" | "shape" | "upstream-error" | "unreachable" | "allowance-spent" | "duplicate-identifier" | "dangling-reference" | "undeclared-type" | "credential-unreadable" | "connection-revoked" | "abandoned" | "apply-refused" | "apply-conflict" | "apply-unknown" | "duplicate-upstream" | "types-not-approved" | "internal" | "mirror-row-unreadable", required)
selector keys:
  connectionId: required; string
example input: {"runId":"<runId>","outcome":"succeeded","commits":[],"complete":false,"sourceCheckpoint":null,"counts":{"created":1,"updated":1,"unchanged":1,"withdrawn":1,"carried":1,"overwritten":1}}
```

## openeng agents-sdk openAgentSession

```text
openeng agents-sdk openAgentSession --selector <json> [--input <json> | --input - | --input-file <path>]
route:       openAgentSession (POST /agent-sessions)
module:      agents-sdk
capability:  agents.session
actors:      person
step-up:     person: none
idempotent:  no
selector:    project, given as --selector <json>
input:       a JSON object, given as --input <json>, --input - (standard input) or --input-file <path>; {} when none is given
does:        Opens an agent session on a project.
input fields:
  agent: required; "object" | "ontology"
selector keys:
  projectId: required; string
example input: {"agent":"object"}
```

## openeng agents-sdk listAgentSessions

```text
openeng agents-sdk listAgentSessions --selector <json> [--input <json> | --input - | --input-file <path>]
route:       listAgentSessions (POST /agent-sessions/list)
module:      agents-sdk
capability:  agents.sessionList
actors:      person
step-up:     person: none
idempotent:  no
selector:    project, given as --selector <json>
input:       a JSON object, given as --input <json>, --input - (standard input) or --input-file <path>; {} when none is given
does:        Lists every session of the selected agent in the project.
input fields:
  agent: required; "object" | "ontology"
selector keys:
  projectId: required; string
example input: {"agent":"object"}
```

## openeng agents-sdk readAgentSession

```text
openeng agents-sdk readAgentSession --selector <json> [--input <json> | --input - | --input-file <path>]
route:       readAgentSession (POST /agent-sessions/read)
module:      agents-sdk
capability:  agents.sessionRead
actors:      person
step-up:     person: none
idempotent:  no
selector:    project, given as --selector <json>
input:       a JSON object, given as --input <json>, --input - (standard input) or --input-file <path>; {} when none is given
does:        Reads one agent session and its runs.
input fields:
  agentSessionId: required; string
selector keys:
  projectId: required; string
example input: {"agentSessionId":"<agentSessionId>"}
```

## openeng agents-sdk sendMessage

```text
openeng agents-sdk sendMessage --selector <json> [--input <json> | --input - | --input-file <path>]
route:       sendMessage (POST /agent-messages)
module:      agents-sdk
capability:  agents.message
actors:      person
step-up:     person: none
idempotent:  no
selector:    project, given as --selector <json>
input:       a JSON object, given as --input <json>, --input - (standard input) or --input-file <path>; {} when none is given
does:        Sends a message to an agent session and starts a run.
input fields:
  agentSessionId: required; string
  message: required; string
  activeRef: required; string
  viewContext: optional; object
    the object has:
      typeKey: optional; string
      objectId: optional; string
      viewName: optional; string
selector keys:
  projectId: required; string
example input: {"agentSessionId":"<agentSessionId>","message":"<message>","activeRef":"<activeRef>"}
```

## openeng agents-sdk answerPlan

```text
openeng agents-sdk answerPlan --selector <json> [--input <json> | --input - | --input-file <path>]
route:       answerPlan (POST /agent-plan-answers)
module:      agents-sdk
capability:  agents.planAnswer
actors:      person
step-up:     person: none
idempotent:  no
selector:    project, given as --selector <json>
input:       a JSON object, given as --input <json>, --input - (standard input) or --input-file <path>; {} when none is given
does:        Answers the plan a run proposed.
input fields:
  runId: required; string
  verdict: required; "approve" | "reject"
selector keys:
  projectId: required; string
example input: {"runId":"<runId>","verdict":"approve"}
```

## openeng agents-sdk stopRun

```text
openeng agents-sdk stopRun --selector <json> [--input <json> | --input - | --input-file <path>]
route:       stopRun (POST /agent-run-stops)
module:      agents-sdk
capability:  agents.runStop
actors:      person
step-up:     person: none
idempotent:  no
selector:    project, given as --selector <json>
input:       a JSON object, given as --input <json>, --input - (standard input) or --input-file <path>; {} when none is given
does:        Stops a run that is working.
input fields:
  runId: required; string
selector keys:
  projectId: required; string
example input: {"runId":"<runId>"}
```

## openeng agents-sdk closePlan

```text
openeng agents-sdk closePlan --selector <json> [--input <json> | --input - | --input-file <path>]
route:       closePlan (POST /agent-plan-closes)
module:      agents-sdk
capability:  agents.planClose
actors:      person
step-up:     person: none
idempotent:  no
selector:    project, given as --selector <json>
input:       a JSON object, given as --input <json>, --input - (standard input) or --input-file <path>; {} when none is given
does:        Closes a plan that no longer applies.
input fields:
  agentSessionId: required; string
selector keys:
  projectId: required; string
example input: {"agentSessionId":"<agentSessionId>"}
```

## openeng agents-sdk sendMessageStreamed

```text
openeng agents-sdk sendMessageStreamed --selector <json> [--input <json> | --input - | --input-file <path>]
route:       sendMessageStreamed (POST /agent-messages/stream)
module:      agents-sdk
capability:  agents.messageStreamed
actors:      person
step-up:     person: none
idempotent:  no
selector:    project, given as --selector <json>
input:       a JSON object, given as --input <json>, --input - (standard input) or --input-file <path>; {} when none is given
does:        Sends a message to an agent session and streams the run's events.
input fields:
  agentSessionId: required; string
  message: required; string
  activeRef: required; string
  viewContext: optional; object
    the object has:
      typeKey: optional; string
      objectId: optional; string
      viewName: optional; string
selector keys:
  projectId: required; string
example input: {"agentSessionId":"<agentSessionId>","message":"<message>","activeRef":"<activeRef>"}
```

## openeng agents-sdk answerPlanStreamed

```text
openeng agents-sdk answerPlanStreamed --selector <json> [--input <json> | --input - | --input-file <path>]
route:       answerPlanStreamed (POST /agent-plan-answers/stream)
module:      agents-sdk
capability:  agents.planAnswerStreamed
actors:      person
step-up:     person: none
idempotent:  no
selector:    project, given as --selector <json>
input:       a JSON object, given as --input <json>, --input - (standard input) or --input-file <path>; {} when none is given
does:        Answers the plan a run proposed and streams the run's events.
input fields:
  runId: required; string
  verdict: required; "approve" | "reject"
selector keys:
  projectId: required; string
example input: {"runId":"<runId>","verdict":"approve"}
```

## openeng ontology-sdk openChangeSet

```text
openeng ontology-sdk openChangeSet [--input <json> | --input - | --input-file <path>]
route:       openChangeSet (POST /change-sets)
module:      ontology-sdk
capability:  ontology.draft
actors:      person, agent:types
step-up:     person: none; agent:types: none
idempotent:  no
selector:    none
input:       a JSON object, given as --input <json>, --input - (standard input) or --input-file <path>; {} when none is given
does:        Opens the organisation's one change set of the catalogue.
input fields:
  none
example input: {}
```

## openeng ontology-sdk readCurrentChangeSet

```text
openeng ontology-sdk readCurrentChangeSet [--input <json> | --input - | --input-file <path>]
route:       readCurrentChangeSet (POST /change-sets/current)
module:      ontology-sdk
capability:  ontology.draft
actors:      person, agent:types
step-up:     person: none; agent:types: none
idempotent:  no
selector:    none
input:       a JSON object, given as --input <json>, --input - (standard input) or --input-file <path>; {} when none is given
does:        Reads the organisation's open change set, or none.
input fields:
  none
example input: {}
```

## openeng ontology-sdk readChangeSet

```text
openeng ontology-sdk readChangeSet [--input <json> | --input - | --input-file <path>]
route:       readChangeSet (POST /change-sets/read)
module:      ontology-sdk
capability:  ontology.draft
actors:      person, agent:types
step-up:     person: none; agent:types: none
idempotent:  no
selector:    none
input:       a JSON object, given as --input <json>, --input - (standard input) or --input-file <path>; {} when none is given
does:        Reads a change set's changes and the catalogue they apply to.
input fields:
  changeSetId: required; string
example input: {"changeSetId":"<changeSetId>"}
```

## openeng ontology-sdk readChangeSetState

```text
openeng ontology-sdk readChangeSetState [--input <json> | --input - | --input-file <path>]
route:       readChangeSetState (POST /change-sets/state)
module:      ontology-sdk
capability:  ontology.draft
actors:      person, agent:types
step-up:     person: none; agent:types: none
idempotent:  no
selector:    none
input:       a JSON object, given as --input <json>, --input - (standard input) or --input-file <path>; {} when none is given
does:        Reads whether a change set is open, accepted or discarded.
input fields:
  changeSetId: required; string
example input: {"changeSetId":"<changeSetId>"}
```

## openeng ontology-sdk reviseChangeSet

```text
openeng ontology-sdk reviseChangeSet [--input <json> | --input - | --input-file <path>]
route:       reviseChangeSet (POST /change-sets/revisions)
module:      ontology-sdk
capability:  ontology.draft
actors:      person, agent:types
step-up:     person: none; agent:types: none
idempotent:  no
selector:    none
input:       a JSON object, given as --input <json>, --input - (standard input) or --input-file <path>; {} when none is given
does:        Saves the whole set of changes against the revision the caller last read.
input fields:
  changeSetId: required; string
  expectedRevision: required; string
  changes: required; map of kinds: object | edge | verb
    each value is one of these shapes:
      typeCategory object:
        instanceRule: optional; "direct" | "immutable"
        typeKey: required; string
        version: required; integer
        displayName: required; string
        description: required; string | null
        schemaLanguageVersion: required; string
        propertyDefinitions: required; map of any
        requiredPropertyKeys: required; array of string
        presentationBindings: optional; object
          the object has:
            views: optional; object
              the object has:
                object: optional; object
                  the object has:
                    root: required; string
                    elements: required; map of object
                      each value has:
                        type: required; string
                        props: required; map of any
                        children: required; array of string
                        repeat: optional; object
                          (fields nested deeper than shown)
                        on: optional; object
                          (fields nested deeper than shown)
                app: optional; object
                  the object has:
                    root: required; string
                    elements: required; map of object
                      each value has:
                        type: required; string
                        props: required; map of any
                        children: required; array of string
                        repeat: optional; object
                          (fields nested deeper than shown)
                        on: optional; object
                          (fields nested deeper than shown)
                card: optional; object
                  the object has:
                    root: required; string
                    elements: required; map of object
                      each value has:
                        type: required; string
                        props: required; map of any
                        children: required; array of string
                        repeat: optional; object
                          (fields nested deeper than shown)
                        on: optional; object
                          (fields nested deeper than shown)
            title: optional; string
            summary: optional; string
            icon: optional; string
            typeIcon: optional; string
            propertyLabels: optional; map of string
            propertyOrder: optional; array of string
            multiline: optional; array of string
            rail: optional; object
              the object has:
                group: required; string
                order: required; number
        structureDeclaration: optional; object
          the object has:
            relationships: optional; array of string
            views: optional; array of object
              each element has:
                key: required; string
                label: required; string
                steps: required; array of string
                decoration: optional; array of object
                  each element has:
                    key: required; string
                    label: required; string
        bodyFormats: optional; array of "markdown" | "python" | "json" | "yaml" | "typescript" | "javascript" | "plaintext" | "modelica" | "sysml" | "starlark"
        subscriptionRoles: optional; object
          the object has:
            owner: optional; object
              the object has:
                max: optional; number
            approver: optional; object
              the object has:
                max: optional; number
            watcher: optional; object
              the object has:
                max: optional; number
      typeCategory edge:
        typeKey: required; string
        version: required; integer
        displayName: required; string
        sourceObjectType: required; string
        targetObjectType: required; string
        kind: required; "structural" | "traceability"
        subjectEnd: required; "source" | "target"
        parentEnd: required; "source" | "target" | null
        sourceLabel: required; string
        targetLabel: required; string
        schemaLanguageVersion: required; string
        propertyDefinitions: required; map of any
        requiredPropertyKeys: required; array of string
        readRule: required; "both-endpoints" | "either-endpoint"
        writeRule: required; "both-endpoints" | "either-endpoint"
        editorHidden: optional; boolean
        review: optional; object
          the object has:
            upstream: required; "source" | "target"
            significant: optional; array of string
            newLinks: optional; "cleared" | "unreviewed"
            propagation: optional; "direct" | "chain"
            chainDepth: optional; number
      typeCategory verb:
        typeKey: required; string
        version: required; integer
        displayName: required; string
        description: required; string | null
        allowedSubjectTypes: required; kinds: none | types
          the object is one of these shapes:
            kind none:
            kind types:
              types: required; array of string
        inputSchema: required; any
        resultSchema: required; any
        handlerKey: optional; string
        template: optional; object
          the object has:
            query: optional; object
              the object has:
                typeKey: required; string
                filters: optional; array of object
                  each element is one of these shapes:
                    shape:
                      kind: required; "property"
                      property: required; string
                      op: required; "=" | ">" | ">=" | "<" | "<="
                      value: required; kinds: literal | input | subject
                        the object is one of these shapes:
                          slot literal:
                            value: required; any
                          slot input:
                            key: required; string
                          slot subject:
                            property: optional; string
                    shape:
                      kind: required; "property"
                      property: required; string
                      op: required; "in"
                      values: required; array of kinds: literal | input | subject
                        each element is one of these shapes:
                          slot literal:
                            value: required; any
                          slot input:
                            key: required; string
                          slot subject:
                            property: optional; string
                    shape:
                      kind: required; "text"
                      term: required; kinds: literal | input | subject
                        the object is one of these shapes:
                          slot literal:
                            value: required; any
                          slot input:
                            key: required; string
                          slot subject:
                            property: optional; string
                      properties: optional; array of string
                sort: optional; kinds: property | identity
                  the object is one of these shapes:
                    kind property:
                      property: required; string
                      direction: required; "asc" | "desc"
                    kind identity:
                      direction: required; "asc" | "desc"
                limit: required; integer
            operations: required; array of kinds: create-object | update-object | delete-object | create-edge | delete-edge
              each element is one of these shapes:
                kind create-object:
                  typeKey: required; string
                  properties: required; map of kinds: literal | input | subject | item | step
                    each value is one of these shapes:
                      slot literal:
                        value: required; any
                      slot input:
                        key: required; string
                      slot subject:
                        property: optional; string
                      slot item:
                        property: optional; string
                      slot step:
                        index: required; integer
                kind update-object:
                  typeKey: required; string
                  target: required; kinds: input | subject | item | step
                    the object is one of these shapes:
                      slot input:
                        key: required; string
                      slot subject:
                      slot item:
                      slot step:
                        index: required; integer
                  changes: required; map of object
                    each value has:
                      from: required; kinds: literal | input | subject | item | step | absent
                        the object is one of these shapes:
                          slot literal:
                            value: required; any
                          slot input:
                            key: required; string
                          slot subject:
                            property: optional; string
                          slot item:
                            property: optional; string
                          slot step:
                            index: required; integer
                          slot absent:
                      to: required; kinds: literal | input | subject | item | step | absent
                        the object is one of these shapes:
                          slot literal:
                            value: required; any
                          slot input:
                            key: required; string
                          slot subject:
                            property: optional; string
                          slot item:
                            property: optional; string
                          slot step:
                            index: required; integer
                          slot absent:
                kind delete-object:
                  typeKey: required; string
                  target: required; kinds: input | subject | item | step
                    the object is one of these shapes:
                      slot input:
                        key: required; string
                      slot subject:
                      slot item:
                      slot step:
                        index: required; integer
                kind create-edge:
                  typeKey: required; string
                  source: required; kinds: input | subject | item | step
                    the object is one of these shapes:
                      slot input:
                        key: required; string
                      slot subject:
                      slot item:
                      slot step:
                        index: required; integer
                  target: required; kinds: input | subject | item | step
                    the object is one of these shapes:
                      slot input:
                        key: required; string
                      slot subject:
                      slot item:
                      slot step:
                        index: required; integer
                  properties: required; map of kinds: literal | input | subject | item | step
                    each value is one of these shapes:
                      slot literal:
                        value: required; any
                      slot input:
                        key: required; string
                      slot subject:
                        property: optional; string
                      slot item:
                        property: optional; string
                      slot step:
                        index: required; integer
                kind delete-edge:
                  typeKey: required; string
                  target: required; kinds: input | subject | item | step
                    the object is one of these shapes:
                      slot input:
                        key: required; string
                      slot subject:
                      slot item:
                      slot step:
                        index: required; integer
        schemaLanguageVersion: required; string
  railGroups: optional; array of string
example input: {"changeSetId":"<changeSetId>","expectedRevision":"<expectedRevision>","changes":{}}
```

## openeng ontology-sdk validateChangeSet

```text
openeng ontology-sdk validateChangeSet [--input <json> | --input - | --input-file <path>]
route:       validateChangeSet (POST /change-sets/validation)
module:      ontology-sdk
capability:  ontology.draft
actors:      person, agent:types
step-up:     person: none; agent:types: none
idempotent:  no
selector:    none
input:       a JSON object, given as --input <json>, --input - (standard input) or --input-file <path>; {} when none is given
does:        Validates a change set at a revision and lists its violations.
input fields:
  changeSetId: required; string
  revision: required; string
example input: {"changeSetId":"<changeSetId>","revision":"<revision>"}
```

## openeng ontology-sdk discardChangeSet

```text
openeng ontology-sdk discardChangeSet [--input <json> | --input - | --input-file <path>]
route:       discardChangeSet (POST /change-set-discards)
module:      ontology-sdk
capability:  ontology.publish
actors:      person
step-up:     person: none
idempotent:  no
selector:    none
input:       a JSON object, given as --input <json>, --input - (standard input) or --input-file <path>; {} when none is given
does:        Discards an open change set.
input fields:
  changeSetId: required; string
example input: {"changeSetId":"<changeSetId>"}
```

## openeng ontology-sdk acceptChangeSet

```text
openeng ontology-sdk acceptChangeSet [--input <json> | --input - | --input-file <path>] [--idempotency-key <key>]
route:       acceptChangeSet (POST /change-set-acceptances)
module:      ontology-sdk
capability:  ontology.publish
actors:      person
step-up:     person: none
idempotent:  yes; a key is minted and printed when --idempotency-key is absent
selector:    none
input:       a JSON object, given as --input <json>, --input - (standard input) or --input-file <path>; {} when none is given
does:        Publishes a change set's catalogue at the revision the caller reviewed.
input fields:
  changeSetId: required; string
  revision: required; string
  correlationId: optional; string
example input: {"changeSetId":"<changeSetId>","revision":"<revision>"}
```

## openeng ontology-sdk openAppDraft

```text
openeng ontology-sdk openAppDraft [--input <json> | --input - | --input-file <path>]
route:       openAppDraft (POST /app-drafts)
module:      ontology-sdk
capability:  ontology.draft
actors:      person, agent:types
step-up:     person: none; agent:types: none
idempotent:  no
selector:    none
input:       a JSON object, given as --input <json>, --input - (standard input) or --input-file <path>; {} when none is given
does:        Opens the one draft of an app, creating the app where the key has none.
input fields:
  appKey: required; string
example input: {"appKey":"<appKey>"}
```

## openeng ontology-sdk readAppDraft

```text
openeng ontology-sdk readAppDraft [--input <json> | --input - | --input-file <path>]
route:       readAppDraft (POST /app-drafts/read)
module:      ontology-sdk
capability:  ontology.draft
actors:      person, agent:types
step-up:     person: none; agent:types: none
idempotent:  no
selector:    none
input:       a JSON object, given as --input <json>, --input - (standard input) or --input-file <path>; {} when none is given
does:        Reads an app draft's state and its latest revision. The input is tagged kind draft with appDraftId, or kind app with appKey.
input fields:
  kind draft: appDraftId (string, required)
  kind app: appKey (string, required)
example input: {"kind":"draft","appDraftId":"<appDraftId>"}
```

## openeng ontology-sdk reviseAppDraft

```text
openeng ontology-sdk reviseAppDraft [--input <json> | --input - | --input-file <path>]
route:       reviseAppDraft (POST /app-drafts/revisions)
module:      ontology-sdk
capability:  ontology.draft
actors:      person, agent:types
step-up:     person: none; agent:types: none
idempotent:  no
selector:    none
input:       a JSON object, given as --input <json>, --input - (standard input) or --input-file <path>; {} when none is given
does:        Saves a whole app document as the successor of the revision the caller last read.
input fields:
  appDraftId: required; string
  revision: required; integer
  document: required; object
    the object has:
      title: required; string
      rail: optional; object
        the object has:
          group: required; string
          order: required; number
      pages: required; array of object
        each element has:
          key: required; string
          title: required; string
          view: required; object
            the object has:
              root: required; string
              elements: required; map of object
                each value has:
                  type: required; string
                  props: required; map of any
                  children: required; array of string
                  repeat: optional; object
                    the object has:
                      statePath: required; string
                      key: optional; string
                  on: optional; object
                    the object has:
                      press: required; kinds: set-properties | run-verb
                        (fields nested deeper than shown)
example input: {"appDraftId":"<appDraftId>","revision":1,"document":{"title":"Example app","pages":[{"key":"home","title":"Home","view":{"root":"root","elements":{"root":{"type":"AppBody","props":{},"children":["text"]},"text":{"type":"Text","props":{"text":"Example page"},"children":[]}}}}]}}
```

## openeng ontology-sdk acceptAppDraft

```text
openeng ontology-sdk acceptAppDraft [--input <json> | --input - | --input-file <path>]
route:       acceptAppDraft (POST /app-draft-acceptances)
module:      ontology-sdk
capability:  ontology.publish
actors:      person
step-up:     person: none
idempotent:  no
selector:    none
input:       a JSON object, given as --input <json>, --input - (standard input) or --input-file <path>; {} when none is given
does:        Publishes an app draft's revision as the app's next version.
input fields:
  appDraftId: required; string
  revision: required; integer
example input: {"appDraftId":"<appDraftId>","revision":1}
```

## openeng ontology-sdk validateAppDraft

```text
openeng ontology-sdk validateAppDraft [--input <json> | --input - | --input-file <path>]
route:       validateAppDraft (POST /app-drafts/validation)
module:      ontology-sdk
capability:  ontology.draft
actors:      person, agent:types
step-up:     person: none; agent:types: none
idempotent:  no
selector:    none
input:       a JSON object, given as --input <json>, --input - (standard input) or --input-file <path>; {} when none is given
does:        Checks an app draft's revision against the published types and answers the violations it holds.
input fields:
  appDraftId: required; string
  revision: required; integer
example input: {"appDraftId":"<appDraftId>","revision":1}
```

## openeng ontology-sdk discardAppDraft

```text
openeng ontology-sdk discardAppDraft [--input <json> | --input - | --input-file <path>]
route:       discardAppDraft (POST /app-draft-discards)
module:      ontology-sdk
capability:  ontology.publish
actors:      person
step-up:     person: none
idempotent:  no
selector:    none
input:       a JSON object, given as --input <json>, --input - (standard input) or --input-file <path>; {} when none is given
does:        Moves an open app draft to discarded; the app's published versions stay.
input fields:
  appDraftId: required; string
example input: {"appDraftId":"<appDraftId>"}
```
