changedOutput schema / (root)
Previous value: -nullNew value: +{
+ "$defs": {
+ "MachineConnectionState": {
+ "enum": [
+ "online",
+ "asleep",
+ "offline"
+ ],
+ "type": "string"
+ },
+ "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"
+ },
+ "MachineSourceKind": {
+ "enum": [
+ "byo",
+ "pool"
+ ],
+ "type": "string"
+ },
+ "MachineSummary": {
+ "allOf": [
+ {
+ "$ref": "#/$defs/MachineSummaryFields"
+ }
+ ]
+ },
+ "MachineSummaryFields": {
+ "description": "Shared machine fields composed into machine response schemas. Composing schemas close their final shape with unevaluatedProperties.",
+ "properties": {
+ "connection_state": {
+ "$ref": "#/$defs/MachineConnectionState",
+ "description": "Whether the machine's daemon is connected now."
+ },
+ "created_at": {
+ "$ref": "#/$defs/Timestamp",
+ "description": "When the machine record was created."
+ },
+ "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."
+ },
+ "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_state": {
+ "$ref": "#/$defs/MachineLifecycleState",
+ "description": "Where the machine is in provisioning or deletion, independent of whether its daemon is connected."
+ },
+ "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"
+ },
+ "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",
+ "deleted_at",
+ "created_at",
+ "updated_at"
+ ],
+ "type": "object"
+ },
+ "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"
+ },
+ "ProjectMachineGrantListItem": {
+ "properties": {
+ "grant": {
+ "$ref": "#/$defs/ProjectMachineGrant",
+ "description": "Grant that gives the project access to the machine."
+ },
+ "machine": {
+ "$ref": "#/$defs/MachineSummary",
+ "description": "Summary of the granted machine."
+ }
+ },
+ "required": [
+ "grant",
+ "machine"
+ ],
+ "type": "object"
+ },
+ "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"
+ },
+ "Timestamp": {
+ "format": "date-time",
+ "type": "string"
+ }
+ },
+ "properties": {
+ "data": {
+ "description": "Project's machine grants on this page, each with its machine.",
+ "items": {
+ "$ref": "#/$defs/ProjectMachineGrantListItem"
+ },
+ "type": "array"
+ },
+ "next_cursor": {
+ "description": "Cursor for the next page, or null when this is the last page.",
+ "type": [
+ "string",
+ "null"
+ ]
+ }
+ },
+ "required": [
+ "data",
+ "next_cursor"
+ ],
+ "type": "object"
+}