{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/roark/json-schema/roark-resolve-managed-config-request-schema.json",
  "title": "ResolveManagedConfigRequest",
  "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/ResolveManagedConfigRequest",
  "type": "object",
  "properties": {
    "defaults": {
      "type": "object",
      "additionalProperties": {},
      "description": "Your baked-in config. On the first fetch of an unknown key this registers the config and becomes revision 1, so integration is a single call. Ignored once the key exists."
    },
    "session": {
      "type": "object",
      "properties": {
        "sessionId": {
          "type": "string",
          "maxLength": 255,
          "description": "Your session or room identifier, for correlation."
        },
        "callerNumber": {
          "type": "string",
          "maxLength": 32,
          "description": "The number calling your agent (E.164). Required for simulation recognition."
        },
        "calledNumber": {
          "type": "string",
          "maxLength": 32,
          "description": "The number your agent was reached on (E.164)."
        }
      },
      "description": "Session context. When the call was originated by a Roark simulation, Roark recognizes it here and serves the staging revision for this session only; real traffic always gets production."
    }
  }
}