{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/arcnm-io/json-schema/arcnm-io-library-entry-public-schema.json",
  "title": "LibraryEntryPublic",
  "description": "Wire shape of a machine-library entry.\n\nClosed contract (fail SAFE): keys this schema does not declare are\ndropped, so a field only ever reaches a caller deliberately.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/arcnm-io-machine-library-api-openapi.yml#/components/schemas/LibraryEntryPublic",
  "properties": {
    "id": {
      "type": "string",
      "title": "Id",
      "description": "Unique identifier of the library entry."
    },
    "org_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Org Id",
      "description": "Owning organisation; null for a platform-shared catalog entry."
    },
    "owner_scope": {
      "type": "string",
      "title": "Owner Scope",
      "description": "'platform' for the shared catalog, 'org' for a private addition."
    },
    "klass": {
      "type": "string",
      "title": "Klass",
      "description": "Machine class (process family)."
    },
    "name": {
      "type": "string",
      "title": "Name",
      "description": "Human-readable catalog name."
    },
    "vendor": {
      "type": "string",
      "title": "Vendor",
      "description": "Machine manufacturer / vendor."
    },
    "model_no": {
      "type": "string",
      "title": "Model No",
      "description": "Vendor model number, or generic-type slug."
    },
    "is_generic": {
      "type": "boolean",
      "title": "Is Generic",
      "description": "True for a class-default type; False for a representative named machine."
    },
    "nominal_hourly_rate_eur": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "title": "Nominal Hourly Rate Eur",
      "description": "Type-default machine-hour rate in EUR/h. Null on the shared platform catalog for integration callers; populated for your own catalog entries."
    },
    "default_capabilities": {
      "anyOf": [
        {
          "additionalProperties": true,
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Default Capabilities",
      "description": "Default capability matrix (axes, envelope, spindle, tolerances). Null on the shared platform catalog for integration callers; populated for your own catalog entries."
    },
    "default_vdi_3258": {
      "anyOf": [
        {
          "additionalProperties": true,
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Default Vdi 3258",
      "description": "Optional VDI 3258 cost structure for (machine, region) rate resolution."
    },
    "nominal_rate_operator_eur_per_h": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "title": "Nominal Rate Operator Eur Per H",
      "description": "Operator wage already contained in nominal_hourly_rate_eur, in EUR/h. 0 means the rate is machine-only and operator labour is billed separately. Null on the shared platform catalog for integration callers, alongside the rate it qualifies."
    },
    "nominal_rate_operator_share": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "title": "Nominal Rate Operator Share",
      "description": "Operator attendance the nominal rate was built at (0-1), and the type's run-attendance default. Null when not declared."
    },
    "valid_from": {
      "type": "string",
      "title": "Valid From",
      "description": "ISO date this entry becomes effective."
    },
    "valid_to": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Valid To",
      "description": "ISO date this entry is superseded; null = open-ended."
    }
  },
  "type": "object",
  "required": [
    "id",
    "owner_scope",
    "klass",
    "name",
    "vendor",
    "model_no",
    "is_generic",
    "valid_from"
  ]
}