{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "properties": {
    "app_id": {
      "anyOf": [
        {
          "pattern": "^app_[0-7][0123456789abcdefghjkmnpqrstvwxyz]{25}$",
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "built": {
      "properties": {
        "built_at": {
          "format": "date-time",
          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
          "type": "string"
        },
        "pipeline_run_id": {
          "type": [
            "string",
            "null"
          ]
        },
        "source": {
          "enum": [
            "stored",
            "computed"
          ],
          "type": "string"
        }
      },
      "required": [
        "source",
        "built_at",
        "pipeline_run_id"
      ],
      "type": "object"
    },
    "capabilities": {
      "anyOf": [
        {
          "items": {
            "oneOf": [
              {
                "properties": {
                  "actions": {
                    "items": {
                      "enum": [
                        "generate"
                      ],
                      "type": "string"
                    },
                    "minItems": 1,
                    "type": "array"
                  },
                  "capability": {
                    "type": "string"
                  },
                  "credential_owner": {
                    "const": "workspace",
                    "type": "string"
                  },
                  "declared": {
                    "const": true,
                    "type": "boolean"
                  },
                  "executed": {
                    "anyOf": [
                      {
                        "properties": {
                          "completed": {
                            "maximum": 9007199254740991,
                            "minimum": 0,
                            "type": "integer"
                          },
                          "denied": {
                            "maximum": 9007199254740991,
                            "minimum": 0,
                            "type": "integer"
                          },
                          "failed": {
                            "maximum": 9007199254740991,
                            "minimum": 0,
                            "type": "integer"
                          },
                          "requested": {
                            "maximum": 9007199254740991,
                            "minimum": 0,
                            "type": "integer"
                          },
                          "scope": {
                            "const": "product",
                            "type": "string"
                          },
                          "since": {
                            "format": "date-time",
                            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                            "type": "string"
                          },
                          "status": {
                            "const": "known",
                            "type": "string"
                          }
                        },
                        "required": [
                          "status",
                          "scope",
                          "since",
                          "completed",
                          "denied",
                          "failed",
                          "requested"
                        ],
                        "type": "object"
                      },
                      {
                        "properties": {
                          "reason": {
                            "const": "unavailable",
                            "type": "string"
                          },
                          "status": {
                            "const": "unknown",
                            "type": "string"
                          }
                        },
                        "required": [
                          "status",
                          "reason"
                        ],
                        "type": "object"
                      }
                    ]
                  },
                  "id": {
                    "const": "ai.generate",
                    "type": "string"
                  },
                  "layer": {
                    "enum": [
                      "connected",
                      "managed"
                    ],
                    "type": "string"
                  },
                  "observed": {
                    "properties": {
                      "invoked": {
                        "type": [
                          "boolean",
                          "null"
                        ]
                      },
                      "requirement": {
                        "anyOf": [
                          {
                            "properties": {
                              "confidence": {
                                "anyOf": [
                                  {
                                    "enum": [
                                      "high",
                                      "medium",
                                      "low"
                                    ],
                                    "type": "string"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "status": {
                                "enum": [
                                  "known",
                                  "partial"
                                ],
                                "type": "string"
                              }
                            },
                            "required": [
                              "status",
                              "confidence"
                            ],
                            "type": "object"
                          },
                          {
                            "properties": {
                              "confidence": {
                                "type": "null"
                              },
                              "reason": {
                                "enum": [
                                  "no_source_facts",
                                  "invalid_source_facts",
                                  "not_qualified",
                                  "unavailable"
                                ],
                                "type": "string"
                              },
                              "status": {
                                "const": "unknown",
                                "type": "string"
                              }
                            },
                            "required": [
                              "status",
                              "reason",
                              "confidence"
                            ],
                            "type": "object"
                          }
                        ]
                      },
                      "scan": {
                        "anyOf": [
                          {
                            "properties": {
                              "actions": {
                                "items": {
                                  "properties": {
                                    "action": {
                                      "type": "string"
                                    },
                                    "state": {
                                      "enum": [
                                        "used",
                                        "unused"
                                      ],
                                      "type": "string"
                                    }
                                  },
                                  "required": [
                                    "action",
                                    "state"
                                  ],
                                  "type": "object"
                                },
                                "type": "array"
                              },
                              "status": {
                                "const": "known",
                                "type": "string"
                              }
                            },
                            "required": [
                              "status",
                              "actions"
                            ],
                            "type": "object"
                          },
                          {
                            "properties": {
                              "reason": {
                                "enum": [
                                  "scan_unavailable",
                                  "not_qualified",
                                  "unavailable"
                                ],
                                "type": "string"
                              },
                              "status": {
                                "const": "unknown",
                                "type": "string"
                              }
                            },
                            "required": [
                              "status",
                              "reason"
                            ],
                            "type": "object"
                          }
                        ]
                      }
                    },
                    "required": [
                      "scan",
                      "requirement",
                      "invoked"
                    ],
                    "type": "object"
                  },
                  "provider": {
                    "properties": {
                      "allow": {
                        "items": {
                          "type": "string"
                        },
                        "type": "array"
                      },
                      "fallback": {
                        "enum": [
                          "none",
                          "listed"
                        ],
                        "type": "string"
                      },
                      "prefer": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "allow",
                      "fallback"
                    ],
                    "type": "object"
                  },
                  "required": {
                    "type": "boolean"
                  },
                  "scope": {
                    "properties": {
                      "max_tokens_per_call": {
                        "exclusiveMinimum": 0,
                        "maximum": 9007199254740991,
                        "type": "integer"
                      },
                      "models": {
                        "items": {
                          "enum": [
                            "text",
                            "embedding"
                          ],
                          "type": "string"
                        },
                        "minItems": 1,
                        "type": "array"
                      }
                    },
                    "required": [
                      "models",
                      "max_tokens_per_call"
                    ],
                    "type": "object"
                  },
                  "selected": {
                    "anyOf": [
                      {
                        "properties": {
                          "binding_ids": {
                            "items": {
                              "pattern": "^bind_[0-7][0123456789abcdefghjkmnpqrstvwxyz]{25}$",
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "scope": {
                            "const": "product",
                            "type": "string"
                          },
                          "since": {
                            "format": "date-time",
                            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                            "type": "string"
                          },
                          "status": {
                            "const": "known",
                            "type": "string"
                          }
                        },
                        "required": [
                          "status",
                          "scope",
                          "since",
                          "binding_ids"
                        ],
                        "type": "object"
                      },
                      {
                        "properties": {
                          "reason": {
                            "enum": [
                              "unavailable",
                              "binding_not_recorded"
                            ],
                            "type": "string"
                          },
                          "status": {
                            "const": "unknown",
                            "type": "string"
                          }
                        },
                        "required": [
                          "status",
                          "reason"
                        ],
                        "type": "object"
                      },
                      {
                        "properties": {
                          "status": {
                            "const": "not_applicable",
                            "type": "string"
                          }
                        },
                        "required": [
                          "status"
                        ],
                        "type": "object"
                      }
                    ]
                  }
                },
                "required": [
                  "capability",
                  "layer",
                  "declared",
                  "observed",
                  "executed",
                  "id",
                  "required",
                  "actions",
                  "scope",
                  "credential_owner",
                  "provider"
                ],
                "type": "object"
              },
              {
                "properties": {
                  "actions": {
                    "items": {
                      "enum": [
                        "read",
                        "write",
                        "delete",
                        "list"
                      ],
                      "type": "string"
                    },
                    "minItems": 1,
                    "type": "array"
                  },
                  "capability": {
                    "type": "string"
                  },
                  "credential_owner": {
                    "const": "workspace",
                    "type": "string"
                  },
                  "declared": {
                    "const": true,
                    "type": "boolean"
                  },
                  "executed": {
                    "anyOf": [
                      {
                        "properties": {
                          "completed": {
                            "maximum": 9007199254740991,
                            "minimum": 0,
                            "type": "integer"
                          },
                          "denied": {
                            "maximum": 9007199254740991,
                            "minimum": 0,
                            "type": "integer"
                          },
                          "failed": {
                            "maximum": 9007199254740991,
                            "minimum": 0,
                            "type": "integer"
                          },
                          "requested": {
                            "maximum": 9007199254740991,
                            "minimum": 0,
                            "type": "integer"
                          },
                          "scope": {
                            "const": "product",
                            "type": "string"
                          },
                          "since": {
                            "format": "date-time",
                            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                            "type": "string"
                          },
                          "status": {
                            "const": "known",
                            "type": "string"
                          }
                        },
                        "required": [
                          "status",
                          "scope",
                          "since",
                          "completed",
                          "denied",
                          "failed",
                          "requested"
                        ],
                        "type": "object"
                      },
                      {
                        "properties": {
                          "reason": {
                            "const": "unavailable",
                            "type": "string"
                          },
                          "status": {
                            "const": "unknown",
                            "type": "string"
                          }
                        },
                        "required": [
                          "status",
                          "reason"
                        ],
                        "type": "object"
                      }
                    ]
                  },
                  "id": {
                    "const": "storage.object",
                    "type": "string"
                  },
                  "layer": {
                    "enum": [
                      "connected",
                      "managed"
                    ],
                    "type": "string"
                  },
                  "observed": {
                    "properties": {
                      "invoked": {
                        "type": [
                          "boolean",
                          "null"
                        ]
                      },
                      "requirement": {
                        "anyOf": [
                          {
                            "properties": {
                              "confidence": {
                                "anyOf": [
                                  {
                                    "enum": [
                                      "high",
                                      "medium",
                                      "low"
                                    ],
                                    "type": "string"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "status": {
                                "enum": [
                                  "known",
                                  "partial"
                                ],
                                "type": "string"
                              }
                            },
                            "required": [
                              "status",
                              "confidence"
                            ],
                            "type": "object"
                          },
                          {
                            "properties": {
                              "confidence": {
                                "type": "null"
                              },
                              "reason": {
                                "enum": [
                                  "no_source_facts",
                                  "invalid_source_facts",
                                  "not_qualified",
                                  "unavailable"
                                ],
                                "type": "string"
                              },
                              "status": {
                                "const": "unknown",
                                "type": "string"
                              }
                            },
                            "required": [
                              "status",
                              "reason",
                              "confidence"
                            ],
                            "type": "object"
                          }
                        ]
                      },
                      "scan": {
                        "anyOf": [
                          {
                            "properties": {
                              "actions": {
                                "items": {
                                  "properties": {
                                    "action": {
                                      "type": "string"
                                    },
                                    "state": {
                                      "enum": [
                                        "used",
                                        "unused"
                                      ],
                                      "type": "string"
                                    }
                                  },
                                  "required": [
                                    "action",
                                    "state"
                                  ],
                                  "type": "object"
                                },
                                "type": "array"
                              },
                              "status": {
                                "const": "known",
                                "type": "string"
                              }
                            },
                            "required": [
                              "status",
                              "actions"
                            ],
                            "type": "object"
                          },
                          {
                            "properties": {
                              "reason": {
                                "enum": [
                                  "scan_unavailable",
                                  "not_qualified",
                                  "unavailable"
                                ],
                                "type": "string"
                              },
                              "status": {
                                "const": "unknown",
                                "type": "string"
                              }
                            },
                            "required": [
                              "status",
                              "reason"
                            ],
                            "type": "object"
                          }
                        ]
                      }
                    },
                    "required": [
                      "scan",
                      "requirement",
                      "invoked"
                    ],
                    "type": "object"
                  },
                  "provider": {
                    "properties": {
                      "allow": {
                        "items": {
                          "type": "string"
                        },
                        "type": "array"
                      },
                      "fallback": {
                        "enum": [
                          "none",
                          "listed"
                        ],
                        "type": "string"
                      },
                      "prefer": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "allow",
                      "fallback"
                    ],
                    "type": "object"
                  },
                  "required": {
                    "type": "boolean"
                  },
                  "scope": {
                    "properties": {
                      "max_object_bytes": {
                        "exclusiveMinimum": 0,
                        "maximum": 9007199254740991,
                        "type": "integer"
                      },
                      "prefix": {
                        "pattern": "^\\/(?!.*\\.\\.).*$",
                        "type": "string"
                      }
                    },
                    "required": [
                      "prefix",
                      "max_object_bytes"
                    ],
                    "type": "object"
                  },
                  "selected": {
                    "anyOf": [
                      {
                        "properties": {
                          "binding_ids": {
                            "items": {
                              "pattern": "^bind_[0-7][0123456789abcdefghjkmnpqrstvwxyz]{25}$",
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "scope": {
                            "const": "product",
                            "type": "string"
                          },
                          "since": {
                            "format": "date-time",
                            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                            "type": "string"
                          },
                          "status": {
                            "const": "known",
                            "type": "string"
                          }
                        },
                        "required": [
                          "status",
                          "scope",
                          "since",
                          "binding_ids"
                        ],
                        "type": "object"
                      },
                      {
                        "properties": {
                          "reason": {
                            "enum": [
                              "unavailable",
                              "binding_not_recorded"
                            ],
                            "type": "string"
                          },
                          "status": {
                            "const": "unknown",
                            "type": "string"
                          }
                        },
                        "required": [
                          "status",
                          "reason"
                        ],
                        "type": "object"
                      },
                      {
                        "properties": {
                          "status": {
                            "const": "not_applicable",
                            "type": "string"
                          }
                        },
                        "required": [
                          "status"
                        ],
                        "type": "object"
                      }
                    ]
                  }
                },
                "required": [
                  "capability",
                  "layer",
                  "declared",
                  "observed",
                  "executed",
                  "id",
                  "required",
                  "actions",
                  "scope",
                  "credential_owner",
                  "provider"
                ],
                "type": "object"
              },
              {
                "properties": {
                  "actions": {
                    "items": {
                      "enum": [
                        "get",
                        "set",
                        "delete",
                        "list",
                        "increment"
                      ],
                      "type": "string"
                    },
                    "minItems": 1,
                    "type": "array"
                  },
                  "capability": {
                    "type": "string"
                  },
                  "credential_owner": {
                    "const": "platform",
                    "type": "string"
                  },
                  "declared": {
                    "const": true,
                    "type": "boolean"
                  },
                  "executed": {
                    "anyOf": [
                      {
                        "properties": {
                          "completed": {
                            "maximum": 9007199254740991,
                            "minimum": 0,
                            "type": "integer"
                          },
                          "denied": {
                            "maximum": 9007199254740991,
                            "minimum": 0,
                            "type": "integer"
                          },
                          "failed": {
                            "maximum": 9007199254740991,
                            "minimum": 0,
                            "type": "integer"
                          },
                          "requested": {
                            "maximum": 9007199254740991,
                            "minimum": 0,
                            "type": "integer"
                          },
                          "scope": {
                            "const": "product",
                            "type": "string"
                          },
                          "since": {
                            "format": "date-time",
                            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                            "type": "string"
                          },
                          "status": {
                            "const": "known",
                            "type": "string"
                          }
                        },
                        "required": [
                          "status",
                          "scope",
                          "since",
                          "completed",
                          "denied",
                          "failed",
                          "requested"
                        ],
                        "type": "object"
                      },
                      {
                        "properties": {
                          "reason": {
                            "const": "unavailable",
                            "type": "string"
                          },
                          "status": {
                            "const": "unknown",
                            "type": "string"
                          }
                        },
                        "required": [
                          "status",
                          "reason"
                        ],
                        "type": "object"
                      }
                    ]
                  },
                  "id": {
                    "const": "data.kv",
                    "type": "string"
                  },
                  "layer": {
                    "enum": [
                      "connected",
                      "managed"
                    ],
                    "type": "string"
                  },
                  "observed": {
                    "properties": {
                      "invoked": {
                        "type": [
                          "boolean",
                          "null"
                        ]
                      },
                      "requirement": {
                        "anyOf": [
                          {
                            "properties": {
                              "confidence": {
                                "anyOf": [
                                  {
                                    "enum": [
                                      "high",
                                      "medium",
                                      "low"
                                    ],
                                    "type": "string"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "status": {
                                "enum": [
                                  "known",
                                  "partial"
                                ],
                                "type": "string"
                              }
                            },
                            "required": [
                              "status",
                              "confidence"
                            ],
                            "type": "object"
                          },
                          {
                            "properties": {
                              "confidence": {
                                "type": "null"
                              },
                              "reason": {
                                "enum": [
                                  "no_source_facts",
                                  "invalid_source_facts",
                                  "not_qualified",
                                  "unavailable"
                                ],
                                "type": "string"
                              },
                              "status": {
                                "const": "unknown",
                                "type": "string"
                              }
                            },
                            "required": [
                              "status",
                              "reason",
                              "confidence"
                            ],
                            "type": "object"
                          }
                        ]
                      },
                      "scan": {
                        "anyOf": [
                          {
                            "properties": {
                              "actions": {
                                "items": {
                                  "properties": {
                                    "action": {
                                      "type": "string"
                                    },
                                    "state": {
                                      "enum": [
                                        "used",
                                        "unused"
                                      ],
                                      "type": "string"
                                    }
                                  },
                                  "required": [
                                    "action",
                                    "state"
                                  ],
                                  "type": "object"
                                },
                                "type": "array"
                              },
                              "status": {
                                "const": "known",
                                "type": "string"
                              }
                            },
                            "required": [
                              "status",
                              "actions"
                            ],
                            "type": "object"
                          },
                          {
                            "properties": {
                              "reason": {
                                "enum": [
                                  "scan_unavailable",
                                  "not_qualified",
                                  "unavailable"
                                ],
                                "type": "string"
                              },
                              "status": {
                                "const": "unknown",
                                "type": "string"
                              }
                            },
                            "required": [
                              "status",
                              "reason"
                            ],
                            "type": "object"
                          }
                        ]
                      }
                    },
                    "required": [
                      "scan",
                      "requirement",
                      "invoked"
                    ],
                    "type": "object"
                  },
                  "provider": {
                    "properties": {
                      "allow": {
                        "items": {
                          "const": "platform",
                          "type": "string"
                        },
                        "maxItems": 1,
                        "minItems": 1,
                        "type": "array"
                      },
                      "fallback": {
                        "const": "none",
                        "type": "string"
                      },
                      "prefer": {
                        "const": "platform",
                        "type": "string"
                      }
                    },
                    "required": [
                      "allow",
                      "fallback"
                    ],
                    "type": "object"
                  },
                  "required": {
                    "type": "boolean"
                  },
                  "scope": {
                    "properties": {
                      "max_keys": {
                        "exclusiveMinimum": 0,
                        "maximum": 100000,
                        "type": "integer"
                      },
                      "max_value_bytes": {
                        "exclusiveMinimum": 0,
                        "maximum": 65536,
                        "type": "integer"
                      },
                      "prefix": {
                        "pattern": "^\\/(?!.*\\.\\.).*$",
                        "type": "string"
                      }
                    },
                    "required": [
                      "prefix",
                      "max_value_bytes",
                      "max_keys"
                    ],
                    "type": "object"
                  },
                  "selected": {
                    "anyOf": [
                      {
                        "properties": {
                          "binding_ids": {
                            "items": {
                              "pattern": "^bind_[0-7][0123456789abcdefghjkmnpqrstvwxyz]{25}$",
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "scope": {
                            "const": "product",
                            "type": "string"
                          },
                          "since": {
                            "format": "date-time",
                            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                            "type": "string"
                          },
                          "status": {
                            "const": "known",
                            "type": "string"
                          }
                        },
                        "required": [
                          "status",
                          "scope",
                          "since",
                          "binding_ids"
                        ],
                        "type": "object"
                      },
                      {
                        "properties": {
                          "reason": {
                            "enum": [
                              "unavailable",
                              "binding_not_recorded"
                            ],
                            "type": "string"
                          },
                          "status": {
                            "const": "unknown",
                            "type": "string"
                          }
                        },
                        "required": [
                          "status",
                          "reason"
                        ],
                        "type": "object"
                      },
                      {
                        "properties": {
                          "status": {
                            "const": "not_applicable",
                            "type": "string"
                          }
                        },
                        "required": [
                          "status"
                        ],
                        "type": "object"
                      }
                    ]
                  }
                },
                "required": [
                  "capability",
                  "layer",
                  "declared",
                  "observed",
                  "executed",
                  "id",
                  "required",
                  "actions",
                  "scope",
                  "credential_owner",
                  "provider"
                ],
                "type": "object"
              },
              {
                "properties": {
                  "actions": {
                    "items": {
                      "enum": [
                        "send"
                      ],
                      "type": "string"
                    },
                    "minItems": 1,
                    "type": "array"
                  },
                  "capability": {
                    "type": "string"
                  },
                  "credential_owner": {
                    "const": "workspace",
                    "type": "string"
                  },
                  "declared": {
                    "const": true,
                    "type": "boolean"
                  },
                  "executed": {
                    "anyOf": [
                      {
                        "properties": {
                          "completed": {
                            "maximum": 9007199254740991,
                            "minimum": 0,
                            "type": "integer"
                          },
                          "denied": {
                            "maximum": 9007199254740991,
                            "minimum": 0,
                            "type": "integer"
                          },
                          "failed": {
                            "maximum": 9007199254740991,
                            "minimum": 0,
                            "type": "integer"
                          },
                          "requested": {
                            "maximum": 9007199254740991,
                            "minimum": 0,
                            "type": "integer"
                          },
                          "scope": {
                            "const": "product",
                            "type": "string"
                          },
                          "since": {
                            "format": "date-time",
                            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                            "type": "string"
                          },
                          "status": {
                            "const": "known",
                            "type": "string"
                          }
                        },
                        "required": [
                          "status",
                          "scope",
                          "since",
                          "completed",
                          "denied",
                          "failed",
                          "requested"
                        ],
                        "type": "object"
                      },
                      {
                        "properties": {
                          "reason": {
                            "const": "unavailable",
                            "type": "string"
                          },
                          "status": {
                            "const": "unknown",
                            "type": "string"
                          }
                        },
                        "required": [
                          "status",
                          "reason"
                        ],
                        "type": "object"
                      }
                    ]
                  },
                  "id": {
                    "const": "email.send",
                    "type": "string"
                  },
                  "layer": {
                    "enum": [
                      "connected",
                      "managed"
                    ],
                    "type": "string"
                  },
                  "observed": {
                    "properties": {
                      "invoked": {
                        "type": [
                          "boolean",
                          "null"
                        ]
                      },
                      "requirement": {
                        "anyOf": [
                          {
                            "properties": {
                              "confidence": {
                                "anyOf": [
                                  {
                                    "enum": [
                                      "high",
                                      "medium",
                                      "low"
                                    ],
                                    "type": "string"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "status": {
                                "enum": [
                                  "known",
                                  "partial"
                                ],
                                "type": "string"
                              }
                            },
                            "required": [
                              "status",
                              "confidence"
                            ],
                            "type": "object"
                          },
                          {
                            "properties": {
                              "confidence": {
                                "type": "null"
                              },
                              "reason": {
                                "enum": [
                                  "no_source_facts",
                                  "invalid_source_facts",
                                  "not_qualified",
                                  "unavailable"
                                ],
                                "type": "string"
                              },
                              "status": {
                                "const": "unknown",
                                "type": "string"
                              }
                            },
                            "required": [
                              "status",
                              "reason",
                              "confidence"
                            ],
                            "type": "object"
                          }
                        ]
                      },
                      "scan": {
                        "anyOf": [
                          {
                            "properties": {
                              "actions": {
                                "items": {
                                  "properties": {
                                    "action": {
                                      "type": "string"
                                    },
                                    "state": {
                                      "enum": [
                                        "used",
                                        "unused"
                                      ],
                                      "type": "string"
                                    }
                                  },
                                  "required": [
                                    "action",
                                    "state"
                                  ],
                                  "type": "object"
                                },
                                "type": "array"
                              },
                              "status": {
                                "const": "known",
                                "type": "string"
                              }
                            },
                            "required": [
                              "status",
                              "actions"
                            ],
                            "type": "object"
                          },
                          {
                            "properties": {
                              "reason": {
                                "enum": [
                                  "scan_unavailable",
                                  "not_qualified",
                                  "unavailable"
                                ],
                                "type": "string"
                              },
                              "status": {
                                "const": "unknown",
                                "type": "string"
                              }
                            },
                            "required": [
                              "status",
                              "reason"
                            ],
                            "type": "object"
                          }
                        ]
                      }
                    },
                    "required": [
                      "scan",
                      "requirement",
                      "invoked"
                    ],
                    "type": "object"
                  },
                  "provider": {
                    "properties": {
                      "allow": {
                        "items": {
                          "type": "string"
                        },
                        "type": "array"
                      },
                      "fallback": {
                        "enum": [
                          "none",
                          "listed"
                        ],
                        "type": "string"
                      },
                      "prefer": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "allow",
                      "fallback"
                    ],
                    "type": "object"
                  },
                  "required": {
                    "type": "boolean"
                  },
                  "scope": {
                    "properties": {
                      "from_addresses": {
                        "items": {
                          "maxLength": 254,
                          "pattern": "^(?!.*[A-Z])(?:[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*|\"(?:[ !#-[\\]-~]|\\\\[ -~])*\")@(?:[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?\\.)*[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?$",
                          "type": "string"
                        },
                        "maxItems": 32,
                        "minItems": 1,
                        "type": "array"
                      },
                      "max_message_bytes": {
                        "exclusiveMinimum": 0,
                        "maximum": 1048576,
                        "type": "integer"
                      },
                      "max_recipients": {
                        "maximum": 50,
                        "minimum": 1,
                        "type": "integer"
                      },
                      "recipient_domains": {
                        "items": {
                          "maxLength": 253,
                          "pattern": "^(?:\\*|(?:[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?\\.)*[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)$",
                          "type": "string"
                        },
                        "maxItems": 32,
                        "minItems": 1,
                        "type": "array"
                      }
                    },
                    "required": [
                      "from_addresses",
                      "recipient_domains",
                      "max_recipients",
                      "max_message_bytes"
                    ],
                    "type": "object"
                  },
                  "selected": {
                    "anyOf": [
                      {
                        "properties": {
                          "binding_ids": {
                            "items": {
                              "pattern": "^bind_[0-7][0123456789abcdefghjkmnpqrstvwxyz]{25}$",
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "scope": {
                            "const": "product",
                            "type": "string"
                          },
                          "since": {
                            "format": "date-time",
                            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                            "type": "string"
                          },
                          "status": {
                            "const": "known",
                            "type": "string"
                          }
                        },
                        "required": [
                          "status",
                          "scope",
                          "since",
                          "binding_ids"
                        ],
                        "type": "object"
                      },
                      {
                        "properties": {
                          "reason": {
                            "enum": [
                              "unavailable",
                              "binding_not_recorded"
                            ],
                            "type": "string"
                          },
                          "status": {
                            "const": "unknown",
                            "type": "string"
                          }
                        },
                        "required": [
                          "status",
                          "reason"
                        ],
                        "type": "object"
                      },
                      {
                        "properties": {
                          "status": {
                            "const": "not_applicable",
                            "type": "string"
                          }
                        },
                        "required": [
                          "status"
                        ],
                        "type": "object"
                      }
                    ]
                  }
                },
                "required": [
                  "capability",
                  "layer",
                  "declared",
                  "observed",
                  "executed",
                  "id",
                  "required",
                  "actions",
                  "scope",
                  "credential_owner",
                  "provider"
                ],
                "type": "object"
              }
            ]
          },
          "type": "array"
        },
        {
          "properties": {
            "reason": {
              "const": "unavailable",
              "type": "string"
            },
            "status": {
              "const": "unknown",
              "type": "string"
            }
          },
          "required": [
            "status",
            "reason"
          ],
          "type": "object"
        }
      ]
    },
    "current_verification": {
      "anyOf": [
        {
          "anyOf": [
            {
              "properties": {
                "computed_at": {
                  "format": "date-time",
                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                  "type": "string"
                },
                "status": {
                  "enum": [
                    "verified",
                    "degraded",
                    "blocked",
                    "revoked"
                  ],
                  "type": "string"
                }
              },
              "required": [
                "status",
                "computed_at"
              ],
              "type": "object"
            },
            {
              "type": "null"
            }
          ]
        },
        {
          "properties": {
            "reason": {
              "const": "unavailable",
              "type": "string"
            },
            "status": {
              "const": "unknown",
              "type": "string"
            }
          },
          "required": [
            "status",
            "reason"
          ],
          "type": "object"
        }
      ]
    },
    "dependency_recheck": {
      "anyOf": [
        {
          "anyOf": [
            {
              "properties": {
                "checked_at": {
                  "format": "date-time",
                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                  "type": "string"
                },
                "findings": {
                  "items": {
                    "properties": {
                      "advisory_id": {
                        "type": "string"
                      },
                      "cvss": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "fixed_in": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "package": {
                        "type": "string"
                      },
                      "severity": {
                        "enum": [
                          "info",
                          "warning",
                          "error"
                        ],
                        "type": "string"
                      },
                      "version": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "package",
                      "version",
                      "advisory_id",
                      "severity",
                      "cvss",
                      "fixed_in"
                    ],
                    "type": "object"
                  },
                  "maxItems": 50,
                  "type": "array"
                },
                "findings_total": {
                  "maximum": 9007199254740991,
                  "minimum": 0,
                  "type": "integer"
                },
                "snapshot_date": {
                  "anyOf": [
                    {
                      "format": "date-time",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "status": {
                  "enum": [
                    "clean",
                    "findings",
                    "unavailable",
                    "not_covered"
                  ],
                  "type": "string"
                }
              },
              "required": [
                "status",
                "checked_at",
                "snapshot_date",
                "findings",
                "findings_total"
              ],
              "type": "object"
            },
            {
              "type": "null"
            }
          ]
        },
        {
          "properties": {
            "reason": {
              "const": "unavailable",
              "type": "string"
            },
            "status": {
              "const": "unknown",
              "type": "string"
            }
          },
          "required": [
            "status",
            "reason"
          ],
          "type": "object"
        }
      ]
    },
    "descriptor": {
      "properties": {
        "descriptor": {
          "properties": {
            "build_plan": {
              "properties": {
                "build": {
                  "properties": {
                    "command": {
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  },
                  "required": [
                    "command"
                  ],
                  "type": "object"
                },
                "env": {
                  "items": {
                    "enum": [
                      "PORT",
                      "NODE_ENV"
                    ],
                    "type": "string"
                  },
                  "type": "array"
                },
                "health": {
                  "properties": {
                    "path": {
                      "pattern": "^\\/.*",
                      "type": "string"
                    },
                    "timeout_ms": {
                      "exclusiveMinimum": 0,
                      "maximum": 9007199254740991,
                      "type": "integer"
                    }
                  },
                  "required": [
                    "path",
                    "timeout_ms"
                  ],
                  "type": "object"
                },
                "install": {
                  "properties": {
                    "command": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "package_manager": {
                      "anyOf": [
                        {
                          "enum": [
                            "pnpm",
                            "npm",
                            "yarn"
                          ],
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": [
                    "package_manager",
                    "command"
                  ],
                  "type": "object"
                },
                "port": {
                  "maximum": 65535,
                  "minimum": 1,
                  "type": "integer"
                },
                "runtime": {
                  "properties": {
                    "kind": {
                      "enum": [
                        "node",
                        "shell"
                      ],
                      "type": "string"
                    },
                    "version": {
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  },
                  "required": [
                    "kind",
                    "version"
                  ],
                  "type": "object"
                },
                "start": {
                  "properties": {
                    "command": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "command"
                  ],
                  "type": "object"
                },
                "workdir": {
                  "pattern": "^\\/.*",
                  "type": "string"
                }
              },
              "required": [
                "runtime",
                "workdir",
                "install",
                "build",
                "start",
                "port",
                "health",
                "env"
              ],
              "type": "object"
            },
            "entrypoint": {
              "properties": {
                "args": {
                  "items": {
                    "type": "string"
                  },
                  "type": "array"
                },
                "command": {
                  "minLength": 1,
                  "type": "string"
                }
              },
              "required": [
                "command",
                "args"
              ],
              "type": "object"
            },
            "field_sources": {
              "additionalProperties": {
                "enum": [
                  "detected",
                  "developer"
                ],
                "type": "string"
              },
              "propertyNames": {
                "type": "string"
              },
              "type": "object"
            },
            "ports": {
              "items": {
                "properties": {
                  "port": {
                    "maximum": 65535,
                    "minimum": 1,
                    "type": "integer"
                  },
                  "protocol": {
                    "const": "http",
                    "type": "string"
                  }
                },
                "required": [
                  "port",
                  "protocol"
                ],
                "type": "object"
              },
              "type": "array"
            },
            "runtime": {
              "properties": {
                "kind": {
                  "enum": [
                    "node",
                    "shell"
                  ],
                  "type": "string"
                },
                "version": {
                  "anyOf": [
                    {
                      "minLength": 1,
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "required": [
                "kind",
                "version"
              ],
              "type": "object"
            }
          },
          "required": [
            "runtime",
            "entrypoint",
            "ports",
            "field_sources"
          ],
          "type": "object"
        },
        "descriptor_hash": {
          "pattern": "^[0-9a-f]{64}$",
          "type": "string"
        },
        "product_type": {
          "enum": [
            "hosted-app",
            "hosted-api",
            "agent",
            "remote",
            "bridge"
          ],
          "type": "string"
        }
      },
      "required": [
        "product_type",
        "descriptor_hash",
        "descriptor"
      ],
      "type": "object"
    },
    "egress": {
      "properties": {
        "declared": {
          "items": {
            "properties": {
              "host": {
                "type": "string"
              },
              "port": {
                "maximum": 65535,
                "minimum": 1,
                "type": "integer"
              }
            },
            "required": [
              "host",
              "port"
            ],
            "type": "object"
          },
          "type": "array"
        },
        "layer": {
          "const": "native",
          "type": "string"
        }
      },
      "required": [
        "layer",
        "declared"
      ],
      "type": "object"
    },
    "environments": {
      "properties": {
        "production": {
          "properties": {
            "bindings": {
              "anyOf": [
                {
                  "items": {
                    "properties": {
                      "bindings": {
                        "anyOf": [
                          {
                            "items": {
                              "properties": {
                                "binding_id": {
                                  "pattern": "^bind_[0-7][0123456789abcdefghjkmnpqrstvwxyz]{25}$",
                                  "type": "string"
                                },
                                "consecutive_auth_failures": {
                                  "anyOf": [
                                    {
                                      "maximum": 9007199254740991,
                                      "minimum": 0,
                                      "type": "integer"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "credential": {
                                  "anyOf": [
                                    {
                                      "properties": {
                                        "id": {
                                          "pattern": "^cred_[0-7][0123456789abcdefghjkmnpqrstvwxyz]{25}$",
                                          "type": "string"
                                        },
                                        "provider": {
                                          "type": "string"
                                        },
                                        "state": {
                                          "enum": [
                                            "active",
                                            "revoked"
                                          ],
                                          "type": "string"
                                        }
                                      },
                                      "required": [
                                        "id",
                                        "provider",
                                        "state"
                                      ],
                                      "type": "object"
                                    },
                                    {
                                      "properties": {
                                        "reason": {
                                          "const": "unavailable",
                                          "type": "string"
                                        },
                                        "status": {
                                          "const": "unknown",
                                          "type": "string"
                                        }
                                      },
                                      "required": [
                                        "status",
                                        "reason"
                                      ],
                                      "type": "object"
                                    }
                                  ]
                                },
                                "expires_at": {
                                  "format": "date-time",
                                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                                  "type": "string"
                                },
                                "provider": {
                                  "type": "string"
                                },
                                "state": {
                                  "enum": [
                                    "requested",
                                    "active",
                                    "blocked",
                                    "revoked"
                                  ],
                                  "type": "string"
                                },
                                "suspected_invalid": {
                                  "type": [
                                    "boolean",
                                    "null"
                                  ]
                                },
                                "suspected_invalid_since": {
                                  "anyOf": [
                                    {
                                      "format": "date-time",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                }
                              },
                              "required": [
                                "binding_id",
                                "provider",
                                "state",
                                "expires_at",
                                "suspected_invalid",
                                "suspected_invalid_since",
                                "consecutive_auth_failures",
                                "credential"
                              ],
                              "type": "object"
                            },
                            "type": "array"
                          },
                          {
                            "properties": {
                              "reason": {
                                "const": "unavailable",
                                "type": "string"
                              },
                              "status": {
                                "const": "unknown",
                                "type": "string"
                              }
                            },
                            "required": [
                              "status",
                              "reason"
                            ],
                            "type": "object"
                          }
                        ]
                      },
                      "capability": {
                        "type": "string"
                      },
                      "reason": {
                        "const": "unavailable",
                        "type": "string"
                      },
                      "status": {
                        "enum": [
                          "present",
                          "missing",
                          "unknown"
                        ],
                        "type": "string"
                      }
                    },
                    "required": [
                      "capability",
                      "status"
                    ],
                    "type": "object"
                  },
                  "type": "array"
                },
                {
                  "properties": {
                    "reason": {
                      "const": "unavailable",
                      "type": "string"
                    },
                    "status": {
                      "const": "unknown",
                      "type": "string"
                    }
                  },
                  "required": [
                    "status",
                    "reason"
                  ],
                  "type": "object"
                }
              ]
            },
            "deployment": {
              "anyOf": [
                {
                  "anyOf": [
                    {
                      "properties": {
                        "deployment_id": {
                          "pattern": "^dep_[0-7][0123456789abcdefghjkmnpqrstvwxyz]{25}$",
                          "type": "string"
                        },
                        "health": {
                          "anyOf": [
                            {
                              "properties": {
                                "attempts": {
                                  "maximum": 9007199254740991,
                                  "minimum": -9007199254740991,
                                  "type": "integer"
                                },
                                "checked_at": {
                                  "format": "date-time",
                                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                                  "type": "string"
                                },
                                "latency_ms": {
                                  "maximum": 9007199254740991,
                                  "minimum": -9007199254740991,
                                  "type": "integer"
                                },
                                "observed": {
                                  "anyOf": [
                                    {
                                      "properties": {
                                        "consecutive_failures": {
                                          "maximum": 9007199254740991,
                                          "minimum": 0,
                                          "type": "integer"
                                        },
                                        "exit_code": {
                                          "anyOf": [
                                            {
                                              "maximum": 9007199254740991,
                                              "minimum": -9007199254740991,
                                              "type": "integer"
                                            },
                                            {
                                              "type": "null"
                                            }
                                          ]
                                        },
                                        "last_healthy_at": {
                                          "anyOf": [
                                            {
                                              "format": "date-time",
                                              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                                              "type": "string"
                                            },
                                            {
                                              "type": "null"
                                            }
                                          ]
                                        },
                                        "last_status_code": {
                                          "anyOf": [
                                            {
                                              "maximum": 9007199254740991,
                                              "minimum": -9007199254740991,
                                              "type": "integer"
                                            },
                                            {
                                              "type": "null"
                                            }
                                          ]
                                        },
                                        "latency_ms": {
                                          "anyOf": [
                                            {
                                              "maximum": 9007199254740991,
                                              "minimum": 0,
                                              "type": "integer"
                                            },
                                            {
                                              "type": "null"
                                            }
                                          ]
                                        },
                                        "reason_code": {
                                          "anyOf": [
                                            {
                                              "enum": [
                                                "http_status",
                                                "timeout",
                                                "connection_failed",
                                                "process_exited",
                                                "not_registered",
                                                "workload_absent"
                                              ],
                                              "type": "string"
                                            },
                                            {
                                              "type": "null"
                                            }
                                          ]
                                        },
                                        "sampled_at": {
                                          "anyOf": [
                                            {
                                              "format": "date-time",
                                              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                                              "type": "string"
                                            },
                                            {
                                              "type": "null"
                                            }
                                          ]
                                        },
                                        "state": {
                                          "enum": [
                                            "healthy",
                                            "unhealthy",
                                            "not_running",
                                            "missing",
                                            "asleep",
                                            "unknown"
                                          ],
                                          "type": "string"
                                        }
                                      },
                                      "required": [
                                        "state",
                                        "sampled_at",
                                        "last_healthy_at",
                                        "consecutive_failures",
                                        "last_status_code",
                                        "latency_ms",
                                        "exit_code",
                                        "reason_code"
                                      ],
                                      "type": "object"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                }
                              },
                              "required": [
                                "checked_at",
                                "attempts",
                                "latency_ms",
                                "observed"
                              ],
                              "type": "object"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "revision_id": {
                          "pattern": "^rev_[0-7][0123456789abcdefghjkmnpqrstvwxyz]{25}$",
                          "type": "string"
                        }
                      },
                      "required": [
                        "deployment_id",
                        "revision_id",
                        "health"
                      ],
                      "type": "object"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                {
                  "properties": {
                    "reason": {
                      "const": "unavailable",
                      "type": "string"
                    },
                    "status": {
                      "const": "unknown",
                      "type": "string"
                    }
                  },
                  "required": [
                    "status",
                    "reason"
                  ],
                  "type": "object"
                }
              ]
            }
          },
          "required": [
            "deployment",
            "bindings"
          ],
          "type": "object"
        },
        "staging": {
          "properties": {
            "bindings": {
              "anyOf": [
                {
                  "items": {
                    "properties": {
                      "bindings": {
                        "anyOf": [
                          {
                            "items": {
                              "properties": {
                                "binding_id": {
                                  "pattern": "^bind_[0-7][0123456789abcdefghjkmnpqrstvwxyz]{25}$",
                                  "type": "string"
                                },
                                "consecutive_auth_failures": {
                                  "anyOf": [
                                    {
                                      "maximum": 9007199254740991,
                                      "minimum": 0,
                                      "type": "integer"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "credential": {
                                  "anyOf": [
                                    {
                                      "properties": {
                                        "id": {
                                          "pattern": "^cred_[0-7][0123456789abcdefghjkmnpqrstvwxyz]{25}$",
                                          "type": "string"
                                        },
                                        "provider": {
                                          "type": "string"
                                        },
                                        "state": {
                                          "enum": [
                                            "active",
                                            "revoked"
                                          ],
                                          "type": "string"
                                        }
                                      },
                                      "required": [
                                        "id",
                                        "provider",
                                        "state"
                                      ],
                                      "type": "object"
                                    },
                                    {
                                      "properties": {
                                        "reason": {
                                          "const": "unavailable",
                                          "type": "string"
                                        },
                                        "status": {
                                          "const": "unknown",
                                          "type": "string"
                                        }
                                      },
                                      "required": [
                                        "status",
                                        "reason"
                                      ],
                                      "type": "object"
                                    }
                                  ]
                                },
                                "expires_at": {
                                  "format": "date-time",
                                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                                  "type": "string"
                                },
                                "provider": {
                                  "type": "string"
                                },
                                "state": {
                                  "enum": [
                                    "requested",
                                    "active",
                                    "blocked",
                                    "revoked"
                                  ],
                                  "type": "string"
                                },
                                "suspected_invalid": {
                                  "type": [
                                    "boolean",
                                    "null"
                                  ]
                                },
                                "suspected_invalid_since": {
                                  "anyOf": [
                                    {
                                      "format": "date-time",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                }
                              },
                              "required": [
                                "binding_id",
                                "provider",
                                "state",
                                "expires_at",
                                "suspected_invalid",
                                "suspected_invalid_since",
                                "consecutive_auth_failures",
                                "credential"
                              ],
                              "type": "object"
                            },
                            "type": "array"
                          },
                          {
                            "properties": {
                              "reason": {
                                "const": "unavailable",
                                "type": "string"
                              },
                              "status": {
                                "const": "unknown",
                                "type": "string"
                              }
                            },
                            "required": [
                              "status",
                              "reason"
                            ],
                            "type": "object"
                          }
                        ]
                      },
                      "capability": {
                        "type": "string"
                      },
                      "reason": {
                        "const": "unavailable",
                        "type": "string"
                      },
                      "status": {
                        "enum": [
                          "present",
                          "missing",
                          "unknown"
                        ],
                        "type": "string"
                      }
                    },
                    "required": [
                      "capability",
                      "status"
                    ],
                    "type": "object"
                  },
                  "type": "array"
                },
                {
                  "properties": {
                    "reason": {
                      "const": "unavailable",
                      "type": "string"
                    },
                    "status": {
                      "const": "unknown",
                      "type": "string"
                    }
                  },
                  "required": [
                    "status",
                    "reason"
                  ],
                  "type": "object"
                }
              ]
            },
            "deployment": {
              "anyOf": [
                {
                  "anyOf": [
                    {
                      "properties": {
                        "deployment_id": {
                          "pattern": "^dep_[0-7][0123456789abcdefghjkmnpqrstvwxyz]{25}$",
                          "type": "string"
                        },
                        "health": {
                          "anyOf": [
                            {
                              "properties": {
                                "attempts": {
                                  "maximum": 9007199254740991,
                                  "minimum": -9007199254740991,
                                  "type": "integer"
                                },
                                "checked_at": {
                                  "format": "date-time",
                                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                                  "type": "string"
                                },
                                "latency_ms": {
                                  "maximum": 9007199254740991,
                                  "minimum": -9007199254740991,
                                  "type": "integer"
                                },
                                "observed": {
                                  "anyOf": [
                                    {
                                      "properties": {
                                        "consecutive_failures": {
                                          "maximum": 9007199254740991,
                                          "minimum": 0,
                                          "type": "integer"
                                        },
                                        "exit_code": {
                                          "anyOf": [
                                            {
                                              "maximum": 9007199254740991,
                                              "minimum": -9007199254740991,
                                              "type": "integer"
                                            },
                                            {
                                              "type": "null"
                                            }
                                          ]
                                        },
                                        "last_healthy_at": {
                                          "anyOf": [
                                            {
                                              "format": "date-time",
                                              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                                              "type": "string"
                                            },
                                            {
                                              "type": "null"
                                            }
                                          ]
                                        },
                                        "last_status_code": {
                                          "anyOf": [
                                            {
                                              "maximum": 9007199254740991,
                                              "minimum": -9007199254740991,
                                              "type": "integer"
                                            },
                                            {
                                              "type": "null"
                                            }
                                          ]
                                        },
                                        "latency_ms": {
                                          "anyOf": [
                                            {
                                              "maximum": 9007199254740991,
                                              "minimum": 0,
                                              "type": "integer"
                                            },
                                            {
                                              "type": "null"
                                            }
                                          ]
                                        },
                                        "reason_code": {
                                          "anyOf": [
                                            {
                                              "enum": [
                                                "http_status",
                                                "timeout",
                                                "connection_failed",
                                                "process_exited",
                                                "not_registered",
                                                "workload_absent"
                                              ],
                                              "type": "string"
                                            },
                                            {
                                              "type": "null"
                                            }
                                          ]
                                        },
                                        "sampled_at": {
                                          "anyOf": [
                                            {
                                              "format": "date-time",
                                              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                                              "type": "string"
                                            },
                                            {
                                              "type": "null"
                                            }
                                          ]
                                        },
                                        "state": {
                                          "enum": [
                                            "healthy",
                                            "unhealthy",
                                            "not_running",
                                            "missing",
                                            "asleep",
                                            "unknown"
                                          ],
                                          "type": "string"
                                        }
                                      },
                                      "required": [
                                        "state",
                                        "sampled_at",
                                        "last_healthy_at",
                                        "consecutive_failures",
                                        "last_status_code",
                                        "latency_ms",
                                        "exit_code",
                                        "reason_code"
                                      ],
                                      "type": "object"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                }
                              },
                              "required": [
                                "checked_at",
                                "attempts",
                                "latency_ms",
                                "observed"
                              ],
                              "type": "object"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "revision_id": {
                          "pattern": "^rev_[0-7][0123456789abcdefghjkmnpqrstvwxyz]{25}$",
                          "type": "string"
                        }
                      },
                      "required": [
                        "deployment_id",
                        "revision_id",
                        "health"
                      ],
                      "type": "object"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                {
                  "properties": {
                    "reason": {
                      "const": "unavailable",
                      "type": "string"
                    },
                    "status": {
                      "const": "unknown",
                      "type": "string"
                    }
                  },
                  "required": [
                    "status",
                    "reason"
                  ],
                  "type": "object"
                }
              ]
            }
          },
          "required": [
            "deployment",
            "bindings"
          ],
          "type": "object"
        }
      },
      "required": [
        "staging",
        "production"
      ],
      "type": "object"
    },
    "forwarding": {
      "anyOf": [
        {
          "properties": {
            "reason": {
              "const": "not_available",
              "type": "string"
            },
            "status": {
              "const": "unknown",
              "type": "string"
            }
          },
          "required": [
            "status",
            "reason"
          ],
          "type": "object"
        },
        {
          "properties": {
            "status": {
              "const": "none",
              "type": "string"
            }
          },
          "required": [
            "status"
          ],
          "type": "object"
        },
        {
          "properties": {
            "from_product_id": {
              "pattern": "^prod_[0-7][0123456789abcdefghjkmnpqrstvwxyz]{25}$",
              "type": "string"
            },
            "path_prefix": {
              "const": "/api/",
              "type": "string"
            },
            "status": {
              "const": "configured",
              "type": "string"
            },
            "to_product_id": {
              "pattern": "^prod_[0-7][0123456789abcdefghjkmnpqrstvwxyz]{25}$",
              "type": "string"
            }
          },
          "required": [
            "status",
            "from_product_id",
            "to_product_id",
            "path_prefix"
          ],
          "type": "object"
        }
      ]
    },
    "managed_resources": {
      "anyOf": [
        {
          "items": {
            "properties": {
              "created_at": {
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                "type": "string"
              },
              "detached_at": {
                "anyOf": [
                  {
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "environment_type": {
                "enum": [
                  "preview",
                  "staging",
                  "production"
                ],
                "type": "string"
              },
              "handle_mode": {
                "enum": [
                  "capability",
                  "injected"
                ],
                "type": "string"
              },
              "kind": {
                "enum": [
                  "kv"
                ],
                "type": "string"
              },
              "layer": {
                "const": "managed",
                "type": "string"
              },
              "product_id": {
                "pattern": "^prod_[0-7][0123456789abcdefghjkmnpqrstvwxyz]{25}$",
                "type": "string"
              },
              "provision_model": {
                "enum": [
                  "platform_pool",
                  "provider_backed"
                ],
                "type": "string"
              },
              "resource_id": {
                "pattern": "^mres_[0-7][0123456789abcdefghjkmnpqrstvwxyz]{25}$",
                "type": "string"
              },
              "retention_due_at": {
                "anyOf": [
                  {
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "state": {
                "enum": [
                  "requested",
                  "provisioning",
                  "ready",
                  "failed",
                  "detached",
                  "deleted"
                ],
                "type": "string"
              },
              "updated_at": {
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                "type": "string"
              },
              "workspace_id": {
                "anyOf": [
                  {
                    "pattern": "^ws_[0-7][0123456789abcdefghjkmnpqrstvwxyz]{25}$",
                    "type": "string"
                  },
                  {
                    "const": "ws_platform",
                    "type": "string"
                  }
                ]
              }
            },
            "required": [
              "resource_id",
              "workspace_id",
              "product_id",
              "environment_type",
              "kind",
              "provision_model",
              "handle_mode",
              "state",
              "layer",
              "detached_at",
              "retention_due_at",
              "created_at",
              "updated_at"
            ],
            "type": "object"
          },
          "type": "array"
        },
        {
          "properties": {
            "reason": {
              "const": "unavailable",
              "type": "string"
            },
            "status": {
              "const": "unknown",
              "type": "string"
            }
          },
          "required": [
            "status",
            "reason"
          ],
          "type": "object"
        }
      ]
    },
    "observed_undeclared": {
      "anyOf": [
        {
          "items": {
            "properties": {
              "action": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "capability": {
                "type": "string"
              },
              "confidence": {
                "enum": [
                  "high",
                  "medium",
                  "low"
                ],
                "type": "string"
              },
              "sources": {
                "items": {
                  "enum": [
                    "scan",
                    "requirement"
                  ],
                  "type": "string"
                },
                "minItems": 1,
                "type": "array"
              }
            },
            "required": [
              "capability",
              "action",
              "sources",
              "confidence"
            ],
            "type": "object"
          },
          "type": "array"
        },
        {
          "properties": {
            "reason": {
              "enum": [
                "scan_unavailable",
                "not_qualified",
                "unavailable",
                "no_source_facts",
                "invalid_source_facts"
              ],
              "type": "string"
            },
            "status": {
              "const": "unknown",
              "type": "string"
            }
          },
          "required": [
            "status",
            "reason"
          ],
          "type": "object"
        }
      ]
    },
    "packages": {
      "anyOf": [
        {
          "properties": {
            "ecosystems": {
              "items": {
                "const": "npm",
                "type": "string"
              },
              "type": "array"
            },
            "layer": {
              "const": "native",
              "type": "string"
            },
            "list_version": {
              "const": "1.0.0",
              "type": "string"
            },
            "snapshot_date": {
              "anyOf": [
                {
                  "format": "date-time",
                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "status": {
              "const": "known",
              "type": "string"
            },
            "total": {
              "maximum": 9007199254740991,
              "minimum": 0,
              "type": "integer"
            }
          },
          "required": [
            "layer",
            "status",
            "total",
            "ecosystems",
            "list_version",
            "snapshot_date"
          ],
          "type": "object"
        },
        {
          "properties": {
            "reason": {
              "enum": [
                "no_package_list",
                "invalid_package_list",
                "not_qualified",
                "unavailable"
              ],
              "type": "string"
            },
            "status": {
              "const": "unknown",
              "type": "string"
            }
          },
          "required": [
            "status",
            "reason"
          ],
          "type": "object"
        }
      ]
    },
    "product_id": {
      "pattern": "^prod_[0-7][0123456789abcdefghjkmnpqrstvwxyz]{25}$",
      "type": "string"
    },
    "requirements": {
      "anyOf": [
        {
          "properties": {
            "items": {
              "items": {
                "properties": {
                  "action": {
                    "enum": [
                      "declare_capability",
                      "request_resource",
                      "declare_trigger",
                      "migrate_secret",
                      "no_official_capability",
                      "inform"
                    ],
                    "type": "string"
                  },
                  "class": {
                    "enum": [
                      "capability",
                      "managed_resource",
                      "platform_service",
                      "lifecycle_trigger",
                      "secret_migration",
                      "unknown"
                    ],
                    "type": "string"
                  },
                  "confidence": {
                    "enum": [
                      "high",
                      "medium",
                      "low"
                    ],
                    "type": "string"
                  },
                  "evidence": {
                    "items": {
                      "properties": {
                        "kind": {
                          "enum": [
                            "dependency",
                            "import",
                            "env",
                            "route",
                            "script",
                            "env_committed"
                          ],
                          "type": "string"
                        },
                        "value": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "kind",
                        "value"
                      ],
                      "type": "object"
                    },
                    "type": "array"
                  },
                  "id": {
                    "type": "string"
                  },
                  "target": {
                    "properties": {
                      "id": {
                        "type": "string"
                      },
                      "kind": {
                        "enum": [
                          "capability",
                          "managed_resource",
                          "trigger",
                          "platform_service",
                          "none"
                        ],
                        "type": "string"
                      }
                    },
                    "required": [
                      "kind"
                    ],
                    "type": "object"
                  }
                },
                "required": [
                  "id",
                  "class",
                  "target",
                  "action",
                  "confidence",
                  "evidence"
                ],
                "type": "object"
              },
              "type": "array"
            },
            "status": {
              "enum": [
                "known",
                "partial"
              ],
              "type": "string"
            },
            "truncated": {
              "items": {
                "enum": [
                  "dependencies",
                  "scripts",
                  "imports",
                  "env",
                  "routes"
                ],
                "type": "string"
              },
              "type": "array"
            }
          },
          "required": [
            "status",
            "truncated",
            "items"
          ],
          "type": "object"
        },
        {
          "properties": {
            "reason": {
              "enum": [
                "no_source_facts",
                "invalid_source_facts",
                "not_qualified",
                "unavailable"
              ],
              "type": "string"
            },
            "status": {
              "const": "unknown",
              "type": "string"
            }
          },
          "required": [
            "status",
            "reason"
          ],
          "type": "object"
        }
      ]
    },
    "revision_id": {
      "pattern": "^rev_[0-7][0123456789abcdefghjkmnpqrstvwxyz]{25}$",
      "type": "string"
    },
    "schedules": {
      "items": {
        "properties": {
          "cron": {
            "type": "string"
          },
          "path": {
            "type": "string"
          }
        },
        "required": [
          "path",
          "cron"
        ],
        "type": "object"
      },
      "type": "array"
    },
    "schema": {
      "const": "belld.graph",
      "type": "string"
    },
    "version": {
      "const": "1.0.0",
      "type": "string"
    },
    "workspace_id": {
      "pattern": "^ws_[0-7][0123456789abcdefghjkmnpqrstvwxyz]{25}$",
      "type": "string"
    }
  },
  "required": [
    "schema",
    "version",
    "workspace_id",
    "product_id",
    "revision_id",
    "descriptor",
    "capabilities",
    "observed_undeclared",
    "packages",
    "egress",
    "schedules",
    "requirements",
    "forwarding",
    "app_id",
    "built",
    "environments",
    "managed_resources",
    "current_verification",
    "dependency_recheck"
  ],
  "type": "object"
}
