{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/streem-com/main/json-schema/streem-com-streem-api-create-company-room-outcome-config-request-schema.json",
  "title": "streem.api.CreateCompanyRoomOutcomeConfigRequest",
  "x-generated": "2026-10-21",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/streem-com-api-openapi.yml#/components/schemas/streem.api.CreateCompanyRoomOutcomeConfigRequest",
  "type": "object",
  "properties": {
    "company_sid": {
      "type": "string"
    },
    "diagnosis": {
      "$ref": "#/$defs/streem.api.CompanyRoomOutcomeConfig.Section"
    },
    "disposition": {
      "$ref": "#/$defs/streem.api.CompanyRoomOutcomeConfig.Section"
    },
    "custom_fields": {
      "type": "object",
      "additionalProperties": {
        "$ref": "#/$defs/streem.api.CompanyRoomOutcomeConfig.Section"
      }
    }
  },
  "$defs": {
    "streem.api.CompanyRoomOutcomeConfig.Entry": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string"
        },
        "label": {
          "type": "string"
        },
        "call_source_codes": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      }
    },
    "streem.api.CompanyRoomOutcomeConfig.Option": {
      "type": "object",
      "properties": {
        "entry": {
          "$ref": "#/$defs/streem.api.CompanyRoomOutcomeConfig.Entry"
        },
        "properties": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          }
        }
      }
    },
    "streem.api.CompanyRoomOutcomeConfig.Section": {
      "type": "object",
      "properties": {
        "options": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/streem.api.CompanyRoomOutcomeConfig.Option"
          }
        },
        "call_source_codes": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      }
    }
  }
}