{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://finance.entelekron.org/schemas/sandbox-isolation-profile.schema.json",
  "title": "TVKUSD sandbox isolation profile",
  "type": "object",
  "additionalProperties": false,
  "required": ["$schema", "schemaVersion", "controlPlaneId", "canonicalAssetId", "profileId", "status", "asOf", "environmentId", "publicEndpoint", "activeSyntheticAccountCount", "dataBoundary", "networkBoundary", "testAssetBoundary", "promotion", "authority", "notice"],
  "properties": {
    "$schema": {"const": "https://finance.entelekron.org/schemas/sandbox-isolation-profile.schema.json"},
    "schemaVersion": {"type": "string", "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"},
    "controlPlaneId": {"const": "tvk-group:entelekron-financial-infrastructure"},
    "canonicalAssetId": {"const": "tvk-group:tvkusd"},
    "profileId": {"type": "string", "minLength": 1},
    "status": {"const": "not-configured"},
    "asOf": {"type": "string", "format": "date-time"},
    "environmentId": {"type": "null"},
    "publicEndpoint": {"type": "null"},
    "activeSyntheticAccountCount": {"const": 0},
    "dataBoundary": {"$ref": "#/$defs/booleanControls"},
    "networkBoundary": {
      "type": "object", "additionalProperties": false,
      "required": ["productionNetworksAccessible", "productionProvidersAccessible", "allowlistRequired", "outboundDestinationLoggingRequired", "defaultOutboundPolicy"],
      "properties": {"productionNetworksAccessible": {"const": false}, "productionProvidersAccessible": {"const": false}, "allowlistRequired": {"const": true}, "outboundDestinationLoggingRequired": {"const": true}, "defaultOutboundPolicy": {"const": "deny"}}
    },
    "testAssetBoundary": {"$ref": "#/$defs/booleanControls"},
    "promotion": {"$ref": "#/$defs/booleanControls"},
    "authority": {"$ref": "#/$defs/falseControls"},
    "notice": {"type": "string", "minLength": 1}
  },
  "$defs": {
    "booleanControls": {"type": "object", "minProperties": 1, "additionalProperties": {"type": "boolean"}},
    "falseControls": {"type": "object", "minProperties": 1, "additionalProperties": {"const": false}}
  }
}
