{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/roark/json-schema/roark-resolve-managed-config-response-schema.json",
  "title": "ResolveManagedConfigResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/roark-agent-config-api-openapi.yml#/components/schemas/ResolveManagedConfigResponse",
  "type": "object",
  "properties": {
    "key": {
      "type": "string"
    },
    "channel": {
      "type": "string",
      "enum": [
        "production",
        "staging"
      ],
      "description": "Which channel this session resolved to."
    },
    "revisionId": {
      "type": "string",
      "format": "uuid"
    },
    "document": {
      "type": "object",
      "additionalProperties": {},
      "description": "The config JSON to apply."
    },
    "simulationJobId": {
      "type": [
        "string",
        "null"
      ],
      "format": "uuid",
      "description": "Set when this session is a Roark simulation call. Stamp it (and the revisionId) into your session metadata so analysis attributes the call correctly."
    }
  },
  "required": [
    "key",
    "channel",
    "revisionId",
    "document",
    "simulationJobId"
  ]
}