changedOutput schema / (root)
Previous value: -nullNew value: +{
+ "$defs": {
+ "Machine": {
+ "properties": {
+ "connection_state": {
+ "$ref": "#/$defs/MachineConnectionState",
+ "description": "Whether the machine's daemon is connected now; asleep means suspended but able to be woken."
+ },
+ "connection_state_reason": {
+ "description": "Why the machine's latest daemon session ended, such as daemon_lease_expired.",
+ "type": "string"
+ },
+ "created_at": {
+ "$ref": "#/$defs/Timestamp",
+ "description": "When the machine record was created."
+ },
+ "cwd": {
+ "description": "Default working directory for processes started on the machine.",
+ "type": "string"
+ },
+ "delete_attempts": {
+ "description": "Number of times Omnara has tried to delete this machine.",
+ "format": "int32",
+ "type": "integer"
+ },
+ "deleted_at": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/Timestamp"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "When the machine finished deleting; null while it still exists."
+ },
+ "description": {
+ "description": "Free-form note about the machine; empty if none was set.",
+ "type": "string"
+ },
+ "display_name": {
+ "$ref": "#/$defs/ResourceName",
+ "description": "Machine name; agent configs reference a BYO machine by this as machine_name."
+ },
+ "env": {
+ "additionalProperties": {
+ "type": "string"
+ },
+ "description": "Environment variables set for every process started on the machine.",
+ "type": "object"
+ },
+ "failure_report": {
+ "$ref": "#/$defs/MachineFailureReport",
+ "description": "Latest setup or daemon failure reported from the machine; omitted when none is recorded."
+ },
+ "id": {
+ "$ref": "#/$defs/MachineID",
+ "description": "Identifies the machine."
+ },
+ "last_observed_at": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/Timestamp"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "When the daemon last registered or sent a heartbeat; null if it has never connected."
+ },
+ "lifecycle_reason_code": {
+ "description": "Machine-readable reason for the latest lifecycle change, such as idle_timeout; empty when none.",
+ "type": "string"
+ },
+ "lifecycle_reason_message": {
+ "description": "Human-readable detail for lifecycle_reason_code; empty when none.",
+ "type": "string"
+ },
+ "lifecycle_state": {
+ "$ref": "#/$defs/MachineLifecycleState",
+ "description": "Where the machine is in provisioning or deletion, independent of whether its daemon is connected."
+ },
+ "machine_pool_id": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/MachinePoolID"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Pool the machine was created from; null for BYO machines."
+ },
+ "metadata": {
+ "$ref": "#/$defs/Metadata",
+ "description": "Key-value metadata attached to the machine."
+ },
+ "next_reconcile_after": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/Timestamp"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "When Omnara next works on provisioning or deleting the machine; null when nothing is scheduled."
+ },
+ "org_id": {
+ "$ref": "#/$defs/OrganizationID",
+ "description": "Organization that owns the machine."
+ },
+ "provider": {
+ "description": "Sandbox provider that hosts a pool machine; byo for bring-your-own machines.",
+ "type": "string"
+ },
+ "provision_attempts": {
+ "description": "Number of times Omnara has tried to provision this machine.",
+ "format": "int32",
+ "type": "integer"
+ },
+ "secret_env": {
+ "additionalProperties": {
+ "$ref": "#/$defs/SecretID"
+ },
+ "description": "Environment variable names mapped to secrets whose values are injected when processes start.",
+ "type": "object"
+ },
+ "source_kind": {
+ "$ref": "#/$defs/MachineSourceKind",
+ "description": "Whether the machine is a bring-your-own computer or was created from a machine pool."
+ },
+ "updated_at": {
+ "$ref": "#/$defs/Timestamp",
+ "description": "When the machine record last changed."
+ }
+ },
+ "required": [
+ "id",
+ "org_id",
+ "source_kind",
+ "display_name",
+ "description",
+ "provider",
+ "lifecycle_state",
+ "connection_state",
+ "last_observed_at",
+ "cwd",
+ "env",
+ "secret_env",
+ "lifecycle_reason_code",
+ "lifecycle_reason_message",
+ "next_reconcile_after",
+ "provision_attempts",
+ "delete_attempts",
+ "metadata",
+ "deleted_at",
+ "created_at",
+ "updated_at"
+ ],
+ "type": "object"
+ },
+ "MachineConnectionState": {
+ "enum": [
+ "online",
+ "asleep",
+ "offline"
+ ],
+ "type": "string"
+ },
+ "MachineFailureReport": {
+ "description": "The machine's most recent daemon-reported failure. A single slot, overwritten by newer reports. Runtime crash reports remain as historical diagnostics; recovery may clear other failure stages.",
+ "properties": {
+ "daemon_version": {
+ "description": "Daemon version that was running when a daemon update failed.",
+ "type": "string"
+ },
+ "exit_status": {
+ "description": "Exit status of the failed startup script or daemon install; omitted for other stages.",
+ "type": "integer"
+ },
+ "output_tail": {
+ "description": "End of the failed step's output, for diagnosis.",
+ "type": "string"
+ },
+ "output_truncated": {
+ "description": "True when earlier output was dropped or output capture failed.",
+ "type": "boolean"
+ },
+ "reported_at": {
+ "$ref": "#/$defs/Timestamp",
+ "description": "When the failure was reported."
+ },
+ "stage": {
+ "description": "Setup or daemon step that failed.",
+ "enum": [
+ "startup_script",
+ "daemon_install",
+ "daemon_update",
+ "daemon_runtime",
+ "daemon_uninstall",
+ "daemon_uninstalled"
+ ],
+ "type": "string"
+ },
+ "target_version": {
+ "description": "Version the daemon was trying to update to when the update failed.",
+ "type": "string"
+ }
+ },
+ "required": [
+ "stage",
+ "output_tail",
+ "output_truncated",
+ "reported_at"
+ ],
+ "type": "object"
+ },
+ "MachineID": {
+ "description": "Machine ID (mch_...).",
+ "pattern": "^mch_[a-z2-7]{26}$",
+ "type": "string"
+ },
+ "MachineLifecycleState": {
+ "enum": [
+ "provisioning",
+ "provision_failed",
+ "active",
+ "deleting",
+ "delete_failed",
+ "deleted"
+ ],
+ "type": "string"
+ },
+ "MachinePoolID": {
+ "description": "Machine pool ID (mpo_...).",
+ "pattern": "^mpo_[a-z2-7]{26}$",
+ "type": "string"
+ },
+ "MachineSourceKind": {
+ "enum": [
+ "byo",
+ "pool"
+ ],
+ "type": "string"
+ },
+ "Metadata": {
+ "additionalProperties": {
+ "maxLength": 512,
+ "type": "string"
+ },
+ "description": "Arbitrary key-value labels stored with the resource.",
+ "maxProperties": 16,
+ "propertyNames": {
+ "maxLength": 64,
+ "minLength": 1
+ },
+ "type": "object"
+ },
+ "OrganizationID": {
+ "pattern": "^org_[a-z2-7]{26}$",
+ "type": "string"
+ },
+ "ProjectID": {
+ "description": "Project ID (proj_...).",
+ "pattern": "^proj_[a-z2-7]{26}$",
+ "type": "string"
+ },
+ "ProjectMachineGrant": {
+ "properties": {
+ "created_at": {
+ "$ref": "#/$defs/Timestamp",
+ "description": "When the grant was created."
+ },
+ "description": {
+ "description": "Free-form note about the grant; empty if none was set.",
+ "type": "string"
+ },
+ "id": {
+ "$ref": "#/$defs/ProjectMachineGrantID",
+ "description": "Identifies the machine grant."
+ },
+ "machine_id": {
+ "$ref": "#/$defs/MachineID",
+ "description": "Machine the project's agents may use."
+ },
+ "metadata": {
+ "$ref": "#/$defs/Metadata",
+ "description": "Key-value metadata attached to the grant."
+ },
+ "org_id": {
+ "$ref": "#/$defs/OrganizationID",
+ "description": "Organization that owns the grant."
+ },
+ "project_id": {
+ "$ref": "#/$defs/ProjectID",
+ "description": "Project the grant gives access to."
+ },
+ "project_machine_pool_grant_id": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/ProjectMachinePoolGrantID"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Pool grant that created this grant; null for direct grants."
+ },
+ "source_kind": {
+ "$ref": "#/$defs/ProjectMachineGrantSourceKind",
+ "description": "Whether the grant was made directly or created for a machine from a pool grant."
+ },
+ "updated_at": {
+ "$ref": "#/$defs/Timestamp",
+ "description": "When the grant last changed."
+ }
+ },
+ "required": [
+ "id",
+ "org_id",
+ "project_id",
+ "machine_id",
+ "source_kind",
+ "description",
+ "metadata",
+ "created_at",
+ "updated_at"
+ ],
+ "type": "object"
+ },
+ "ProjectMachineGrantID": {
+ "pattern": "^pmg_[a-z2-7]{26}$",
+ "type": "string"
+ },
+ "ProjectMachineGrantSourceKind": {
+ "enum": [
+ "explicit",
+ "pool"
+ ],
+ "type": "string"
+ },
+ "ProjectMachinePoolGrantID": {
+ "pattern": "^pmpg_[a-z2-7]{26}$",
+ "type": "string"
+ },
+ "ResourceName": {
+ "description": "Human-readable name. Spaces and punctuation are allowed; leading or trailing whitespace and invisible or control characters are not.",
+ "maxLength": 64,
+ "minLength": 1,
+ "type": "string"
+ },
+ "SecretID": {
+ "description": "Secret ID (sec_...).",
+ "pattern": "^sec_[a-z2-7]{26}$",
+ "type": "string"
+ },
+ "Timestamp": {
+ "format": "date-time",
+ "type": "string"
+ }
+ },
+ "properties": {
+ "grant": {
+ "$ref": "#/$defs/ProjectMachineGrant"
+ },
+ "machine": {
+ "$ref": "#/$defs/Machine"
+ }
+ },
+ "required": [
+ "grant",
+ "machine"
+ ],
+ "type": "object"
+}